ag-common 0.0.654 → 0.0.655
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -100,7 +100,7 @@ const LineChart = (p) => {
|
|
|
100
100
|
p2.x1 !== p2.x2 && (react_1.default.createElement("line", { strokeOpacity: legendItems.part.find((f) => f.name === p2.name) ? 1 : 0.3, x1: `${p2.x1}%`, x2: `${p2.x2}%`, y1: `${p2.y1}%`, y2: `${p2.y2}%`, style: { stroke: p.colours[p2.name] } }))));
|
|
101
101
|
})));
|
|
102
102
|
return (react_1.default.createElement(Base, { className: p.className, "data-type": "lcb", onMouseLeave: () => UT.setPos(undefined), style: style },
|
|
103
|
-
react_1.default.createElement(UT.Comp, { pos: UT.pos }, (p2) => (react_1.default.createElement(TooltipContent_1.TooltipContent, Object.assign({}, p2, { colours: p.colours, data: p.data, lt: lt2, tt: tt2, legendItems: legendItems })))),
|
|
103
|
+
react_1.default.createElement(UT.Comp, { pos: UT.pos }, (p2) => (react_1.default.createElement(TooltipContent_1.TooltipContent, Object.assign({}, p2, { colours: p.colours, data: p.data, lt: lt2, tt: tt2, legendItems: legendItems, style: style })))),
|
|
104
104
|
react_1.default.createElement(FlexRow_1.FlexRow, { noWrap: true },
|
|
105
105
|
react_1.default.createElement(LegendY_1.LegendY, { data: p.data, style: style }),
|
|
106
106
|
SvgC),
|
|
@@ -4,4 +4,5 @@ import type { ILegendItems } from './getLegendItems';
|
|
|
4
4
|
import type { ILineChartTooltip } from './types';
|
|
5
5
|
export declare const TooltipContent: (p: ILineChartTooltip & {
|
|
6
6
|
legendItems: ILegendItems;
|
|
7
|
-
|
|
7
|
+
style: IVarStyles;
|
|
8
|
+
}) => React.JSX.Element;
|
|
@@ -31,10 +31,10 @@ const Total = styled_1.default.span `
|
|
|
31
31
|
text-decoration: underline;
|
|
32
32
|
}
|
|
33
33
|
`;
|
|
34
|
-
const TooltipContent = (p
|
|
34
|
+
const TooltipContent = (p) => {
|
|
35
35
|
var _a, _b, _c, _d;
|
|
36
36
|
const name = (_d = (_a = p.tt) === null || _a === void 0 ? void 0 : _a.call(p, (_c = (_b = p.selectedXs) === null || _b === void 0 ? void 0 : _b[0].x) !== null && _c !== void 0 ? _c : 0)) !== null && _d !== void 0 ? _d : '';
|
|
37
|
-
return (react_1.default.createElement(Base, { style: Object.assign(Object.assign({}, style), { border: `solid 1px ${style.borderColor}` }) },
|
|
37
|
+
return (react_1.default.createElement(Base, { style: Object.assign(Object.assign({}, p.style), { border: `solid 1px ${p.style.borderColor}` }) },
|
|
38
38
|
react_1.default.createElement(Title, null, name),
|
|
39
39
|
react_1.default.createElement(Row, null,
|
|
40
40
|
react_1.default.createElement("span", null, "total"),
|
package/package.json
CHANGED