@ledgerhq/lumen-ui-react-visualization 0.1.17 → 0.1.19
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.
- package/dist/lib/Components/Axis/XAxis/XAxis.d.ts.map +1 -1
- package/dist/lib/Components/Axis/XAxis/XAxis.js +14 -14
- package/dist/lib/Components/Axis/YAxis/YAxis.d.ts.map +1 -1
- package/dist/lib/Components/Axis/YAxis/YAxis.js +30 -30
- package/dist/lib/Components/CartesianChart/CartesianChart.d.ts +1 -1
- package/dist/lib/Components/CartesianChart/CartesianChart.d.ts.map +1 -1
- package/dist/lib/Components/CartesianChart/CartesianChart.js +82 -75
- package/dist/lib/Components/CartesianChart/ChartEmptyLabel/ChartEmptyLabel.d.ts +11 -0
- package/dist/lib/Components/CartesianChart/ChartEmptyLabel/ChartEmptyLabel.d.ts.map +1 -0
- package/dist/lib/Components/CartesianChart/ChartEmptyLabel/ChartEmptyLabel.js +21 -0
- package/dist/lib/Components/CartesianChart/RevealClip/RevealClipDefs.d.ts.map +1 -1
- package/dist/lib/Components/CartesianChart/RevealClip/RevealClipDefs.js +11 -10
- package/dist/lib/Components/CartesianChart/RevealClip/types.d.ts +1 -1
- package/dist/lib/Components/CartesianChart/RevealClip/types.d.ts.map +1 -1
- package/dist/lib/Components/CartesianChart/hooks/useDataFingerprint.d.ts +9 -0
- package/dist/lib/Components/CartesianChart/hooks/useDataFingerprint.d.ts.map +1 -0
- package/dist/lib/Components/CartesianChart/hooks/useDataFingerprint.js +8 -0
- package/dist/lib/Components/CartesianChart/{RevealClip/utils.d.ts → hooks/useRevealClipAnimation.d.ts} +2 -5
- package/dist/lib/Components/CartesianChart/hooks/useRevealClipAnimation.d.ts.map +1 -0
- package/dist/lib/Components/CartesianChart/hooks/useRevealClipAnimation.js +20 -0
- package/dist/lib/Components/CartesianChart/hooks/useShimmerAnimation.d.ts +18 -0
- package/dist/lib/Components/CartesianChart/hooks/useShimmerAnimation.d.ts.map +1 -0
- package/dist/lib/Components/CartesianChart/hooks/useShimmerAnimation.js +14 -0
- package/dist/lib/Components/CartesianChart/types.d.ts +11 -0
- package/dist/lib/Components/CartesianChart/types.d.ts.map +1 -1
- package/dist/lib/Components/Line/Line.d.ts +1 -1
- package/dist/lib/Components/Line/Line.d.ts.map +1 -1
- package/dist/lib/Components/Line/Line.js +33 -33
- package/dist/lib/Components/Line/constants.d.ts +4 -0
- package/dist/lib/Components/Line/constants.d.ts.map +1 -0
- package/dist/lib/Components/Line/constants.js +7 -0
- package/dist/lib/Components/Line/index.d.ts +1 -1
- package/dist/lib/Components/Line/index.d.ts.map +1 -1
- package/dist/lib/Components/Line/types.d.ts +8 -0
- package/dist/lib/Components/Line/types.d.ts.map +1 -1
- package/dist/lib/Components/Line/utils.d.ts +3 -3
- package/dist/lib/Components/Line/utils.d.ts.map +1 -1
- package/dist/lib/Components/Line/utils.js +31 -18
- package/dist/lib/Components/LineChart/LineChart.d.ts +1 -1
- package/dist/lib/Components/LineChart/LineChart.d.ts.map +1 -1
- package/dist/lib/Components/LineChart/LineChart.js +141 -70
- package/dist/lib/Components/LineChart/LineChartEmptyState/LineChartEmptyState.d.ts +9 -0
- package/dist/lib/Components/LineChart/LineChartEmptyState/LineChartEmptyState.d.ts.map +1 -0
- package/dist/lib/Components/LineChart/LineChartEmptyState/LineChartEmptyState.js +51 -0
- package/dist/lib/Components/LineChart/LineChartEmptyState/index.d.ts +3 -0
- package/dist/lib/Components/LineChart/LineChartEmptyState/index.d.ts.map +1 -0
- package/dist/lib/Components/LineChart/LineChartEmptyState/types.d.ts +3 -0
- package/dist/lib/Components/LineChart/LineChartEmptyState/types.d.ts.map +1 -0
- package/dist/lib/Components/LineChart/LineChartEmptyState/utils.d.ts +14 -0
- package/dist/lib/Components/LineChart/LineChartEmptyState/utils.d.ts.map +1 -0
- package/dist/lib/Components/LineChart/LineChartEmptyState/utils.js +9 -0
- package/dist/lib/Components/LineChart/__stories__/chartStoryFixtures.d.ts +36 -3
- package/dist/lib/Components/LineChart/__stories__/chartStoryFixtures.d.ts.map +1 -1
- package/dist/lib/Components/LineChart/types.d.ts +28 -1
- package/dist/lib/Components/LineChart/types.d.ts.map +1 -1
- package/dist/lib/Components/LineChart/utils.d.ts +43 -0
- package/dist/lib/Components/LineChart/utils.d.ts.map +1 -0
- package/dist/lib/Components/LineChart/utils.js +37 -0
- package/dist/lib/Components/ReferenceLine/ReferenceLine.d.ts.map +1 -1
- package/dist/lib/Components/ReferenceLine/ReferenceLine.js +16 -16
- package/dist/lib/Components/ReferenceLine/constants.d.ts +3 -3
- package/dist/lib/Components/ReferenceLine/constants.d.ts.map +1 -1
- package/dist/lib/Components/ReferenceLine/constants.js +5 -5
- package/dist/lib/Components/ReferenceLine/utils.d.ts.map +1 -1
- package/dist/lib/Components/ReferenceLine/utils.js +15 -14
- package/dist/lib/Components/Scrubber/Scrubber.d.ts.map +1 -1
- package/dist/lib/Components/Scrubber/Scrubber.js +34 -29
- package/dist/lib/Components/Scrubber/ScrubberProvider.d.ts.map +1 -1
- package/dist/lib/Components/Scrubber/ScrubberProvider.js +68 -67
- package/dist/lib/Components/Scrubber/utils.d.ts.map +1 -1
- package/dist/lib/Components/Scrubber/utils.js +30 -32
- package/dist/lib/utils/index.d.ts +1 -1
- package/dist/lib/utils/index.d.ts.map +1 -1
- package/dist/lib/utils/numbers.d.ts +13 -0
- package/dist/lib/utils/numbers.d.ts.map +1 -0
- package/dist/lib/utils/numbers.js +5 -0
- package/dist/lib/utils/ticks/ticks.d.ts +1 -11
- package/dist/lib/utils/ticks/ticks.d.ts.map +1 -1
- package/dist/lib/utils/ticks/ticks.js +19 -21
- package/dist/lib/utils/types.d.ts +19 -1
- package/dist/lib/utils/types.d.ts.map +1 -1
- package/dist/node_modules/d3-shape/src/curve/monotone.js +69 -0
- package/dist/node_modules/d3-shape/src/curve/natural.js +41 -0
- package/dist/node_modules/d3-shape/src/curve/step.js +51 -0
- package/dist/package.json +2 -2
- package/package.json +3 -3
- package/dist/lib/Components/CartesianChart/RevealClip/utils.d.ts.map +0 -1
- package/dist/lib/Components/CartesianChart/RevealClip/utils.js +0 -23
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"XAxis.d.ts","sourceRoot":"","sources":["../../../../../src/lib/Components/Axis/XAxis/XAxis.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"XAxis.d.ts","sourceRoot":"","sources":["../../../../../src/lib/Components/Axis/XAxis/XAxis.tsx"],"names":[],"mappings":"AAOA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,SAAS,CAAC;AAE1C,wBAAgB,KAAK,CAAC,EACpB,aAAuB,EACvB,QAAmB,EACnB,QAAgB,EAChB,QAAgB,EAChB,YAAoB,EACpB,KAAK,EAAE,SAAS,EAChB,kBAAkB,GACnB,EAAE,UAAU,kDAqFZ"}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { jsxs as A, jsx as a } from "react/jsx-runtime";
|
|
2
2
|
import { useMemo as C } from "react";
|
|
3
|
-
import { buildTicksData as
|
|
4
|
-
import { TICK_MARK_SIZE as y, TICK_LABEL_OFFSET as
|
|
5
|
-
import { useCartesianChartContext as
|
|
3
|
+
import { buildTicksData as $ } from "../../../utils/ticks/ticks.js";
|
|
4
|
+
import { TICK_MARK_SIZE as y, TICK_LABEL_OFFSET as S } from "../Axis.constants.js";
|
|
5
|
+
import { useCartesianChartContext as T } from "../../CartesianChart/context/cartesianChartContext.js";
|
|
6
6
|
import { cssVar as o } from "../../../../libs/design-core/dist/lib/cssVar/cssVar.js";
|
|
7
7
|
function W({
|
|
8
8
|
gridLineStyle: h = "solid",
|
|
@@ -13,15 +13,15 @@ function W({
|
|
|
13
13
|
ticks: d,
|
|
14
14
|
tickLabelFormatter: m
|
|
15
15
|
}) {
|
|
16
|
-
const { getXScale: v, getXAxisConfig: b, drawingArea: e } =
|
|
17
|
-
() =>
|
|
18
|
-
[
|
|
16
|
+
const { getXScale: v, getXAxisConfig: b, drawingArea: e } = T(), i = v(), x = b(), n = C(
|
|
17
|
+
() => i ? $(i, x, d, m) : [],
|
|
18
|
+
[i, x, d, m]
|
|
19
19
|
);
|
|
20
|
-
if (!
|
|
20
|
+
if (!i || e.width <= 0)
|
|
21
21
|
return null;
|
|
22
|
-
const f = l === "top", s = f ? e.y : e.y + e.height, p = f ? -1 : 1, k = s + p * (y +
|
|
22
|
+
const f = l === "top", s = f ? e.y : e.y + e.height, p = f ? -1 : 1, k = s + p * (y + S);
|
|
23
23
|
return /* @__PURE__ */ A("g", { "data-testid": "x-axis", children: [
|
|
24
|
-
u && n.
|
|
24
|
+
u && n.map((t, r) => /* @__PURE__ */ a(
|
|
25
25
|
"line",
|
|
26
26
|
{
|
|
27
27
|
x1: t.position,
|
|
@@ -34,7 +34,7 @@ function W({
|
|
|
34
34
|
strokeWidth: o("var(--stroke-1)"),
|
|
35
35
|
strokeDasharray: h === "dashed" ? "3 3" : void 0
|
|
36
36
|
},
|
|
37
|
-
`grid-${t.value}-${
|
|
37
|
+
`grid-${t.value}-${r}`
|
|
38
38
|
)),
|
|
39
39
|
c && /* @__PURE__ */ a(
|
|
40
40
|
"line",
|
|
@@ -49,7 +49,7 @@ function W({
|
|
|
49
49
|
strokeLinecap: "square"
|
|
50
50
|
}
|
|
51
51
|
),
|
|
52
|
-
g && n.map((t,
|
|
52
|
+
g && n.map((t, r) => /* @__PURE__ */ a(
|
|
53
53
|
"line",
|
|
54
54
|
{
|
|
55
55
|
x1: t.position,
|
|
@@ -59,9 +59,9 @@ function W({
|
|
|
59
59
|
style: { stroke: o("var(--border-muted)") },
|
|
60
60
|
strokeWidth: o("var(--stroke-1)")
|
|
61
61
|
},
|
|
62
|
-
`tick-${t.value}-${
|
|
62
|
+
`tick-${t.value}-${r}`
|
|
63
63
|
)),
|
|
64
|
-
n.map((t,
|
|
64
|
+
n.map((t, r) => /* @__PURE__ */ a(
|
|
65
65
|
"text",
|
|
66
66
|
{
|
|
67
67
|
x: t.position,
|
|
@@ -75,7 +75,7 @@ function W({
|
|
|
75
75
|
},
|
|
76
76
|
children: t.label
|
|
77
77
|
},
|
|
78
|
-
`label-${t.value}-${
|
|
78
|
+
`label-${t.value}-${r}`
|
|
79
79
|
))
|
|
80
80
|
] });
|
|
81
81
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"YAxis.d.ts","sourceRoot":"","sources":["../../../../../src/lib/Components/Axis/YAxis/YAxis.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"YAxis.d.ts","sourceRoot":"","sources":["../../../../../src/lib/Components/Axis/YAxis/YAxis.tsx"],"names":[],"mappings":"AAOA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,SAAS,CAAC;AAE1C,wBAAgB,KAAK,CAAC,EACpB,aAAuB,EACvB,QAAkB,EAClB,QAAgB,EAChB,QAAgB,EAChB,YAAoB,EACpB,KAAK,EAAE,SAAS,EAChB,kBAAkB,GACnB,EAAE,UAAU,kDAqFZ"}
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { jsxs as A, jsx as
|
|
1
|
+
import { jsxs as A, jsx as i } from "react/jsx-runtime";
|
|
2
2
|
import { useMemo as C } from "react";
|
|
3
|
-
import { buildTicksData as S
|
|
4
|
-
import { TICK_MARK_SIZE as
|
|
5
|
-
import { useCartesianChartContext as
|
|
6
|
-
import { cssVar as
|
|
3
|
+
import { buildTicksData as S } from "../../../utils/ticks/ticks.js";
|
|
4
|
+
import { TICK_MARK_SIZE as p, TICK_LABEL_OFFSET as $ } from "../Axis.constants.js";
|
|
5
|
+
import { useCartesianChartContext as D } from "../../CartesianChart/context/cartesianChartContext.js";
|
|
6
|
+
import { cssVar as r } from "../../../../libs/design-core/dist/lib/cssVar/cssVar.js";
|
|
7
7
|
function W({
|
|
8
|
-
gridLineStyle:
|
|
8
|
+
gridLineStyle: c = "solid",
|
|
9
9
|
position: l = "start",
|
|
10
10
|
showGrid: h = !1,
|
|
11
11
|
showLine: u = !1,
|
|
@@ -13,15 +13,15 @@ function W({
|
|
|
13
13
|
ticks: d,
|
|
14
14
|
tickLabelFormatter: x
|
|
15
15
|
}) {
|
|
16
|
-
const { getYScale: g, getYAxisConfig:
|
|
17
|
-
() =>
|
|
18
|
-
[
|
|
16
|
+
const { getYScale: g, getYAxisConfig: b, drawingArea: e } = D(), a = g(), m = b(), n = C(
|
|
17
|
+
() => a ? S(a, m, d, x) : [],
|
|
18
|
+
[a, m, d, x]
|
|
19
19
|
);
|
|
20
|
-
if (!
|
|
20
|
+
if (!a || e.height <= 0)
|
|
21
21
|
return null;
|
|
22
|
-
const
|
|
22
|
+
const y = l === "start", s = y ? e.x : e.x + e.width, f = y ? -1 : 1, k = s + f * (p + $);
|
|
23
23
|
return /* @__PURE__ */ A("g", { "data-testid": "y-axis", children: [
|
|
24
|
-
h && n.
|
|
24
|
+
h && n.map((t, o) => /* @__PURE__ */ i(
|
|
25
25
|
"line",
|
|
26
26
|
{
|
|
27
27
|
x1: e.x,
|
|
@@ -29,49 +29,49 @@ function W({
|
|
|
29
29
|
x2: e.x + e.width,
|
|
30
30
|
y2: t.position,
|
|
31
31
|
style: {
|
|
32
|
-
stroke:
|
|
32
|
+
stroke: r("var(--border-muted-subtle-transparent)")
|
|
33
33
|
},
|
|
34
|
-
strokeWidth:
|
|
35
|
-
strokeDasharray:
|
|
34
|
+
strokeWidth: r("var(--stroke-1)"),
|
|
35
|
+
strokeDasharray: c === "dashed" ? "3 3" : void 0
|
|
36
36
|
},
|
|
37
37
|
`grid-${t.value}-${o}`
|
|
38
38
|
)),
|
|
39
|
-
u && /* @__PURE__ */
|
|
39
|
+
u && /* @__PURE__ */ i(
|
|
40
40
|
"line",
|
|
41
41
|
{
|
|
42
|
-
x1:
|
|
42
|
+
x1: s,
|
|
43
43
|
y1: e.y,
|
|
44
|
-
x2:
|
|
44
|
+
x2: s,
|
|
45
45
|
y2: e.y + e.height,
|
|
46
|
-
style: { stroke:
|
|
47
|
-
strokeWidth:
|
|
46
|
+
style: { stroke: r("var(--border-muted)") },
|
|
47
|
+
strokeWidth: r("var(--stroke-1)"),
|
|
48
48
|
shapeRendering: "crispEdges",
|
|
49
49
|
strokeLinecap: "square"
|
|
50
50
|
}
|
|
51
51
|
),
|
|
52
|
-
v && n.map((t, o) => /* @__PURE__ */
|
|
52
|
+
v && n.map((t, o) => /* @__PURE__ */ i(
|
|
53
53
|
"line",
|
|
54
54
|
{
|
|
55
|
-
x1:
|
|
55
|
+
x1: s,
|
|
56
56
|
y1: t.position,
|
|
57
|
-
x2:
|
|
57
|
+
x2: s + f * p,
|
|
58
58
|
y2: t.position,
|
|
59
|
-
style: { stroke:
|
|
60
|
-
strokeWidth:
|
|
59
|
+
style: { stroke: r("var(--border-muted)") },
|
|
60
|
+
strokeWidth: r("var(--stroke-1)")
|
|
61
61
|
},
|
|
62
62
|
`tick-${t.value}-${o}`
|
|
63
63
|
)),
|
|
64
|
-
n.map((t, o) => /* @__PURE__ */
|
|
64
|
+
n.map((t, o) => /* @__PURE__ */ i(
|
|
65
65
|
"text",
|
|
66
66
|
{
|
|
67
|
-
x:
|
|
67
|
+
x: k,
|
|
68
68
|
y: t.position,
|
|
69
69
|
textAnchor: l === "start" ? "end" : "start",
|
|
70
70
|
dominantBaseline: "central",
|
|
71
71
|
style: {
|
|
72
|
-
fill:
|
|
73
|
-
fontSize:
|
|
74
|
-
fontFamily:
|
|
72
|
+
fill: r("var(--text-muted)"),
|
|
73
|
+
fontSize: r("var(--font-style-body-4-size)"),
|
|
74
|
+
fontFamily: r("var(--font-family-font)")
|
|
75
75
|
},
|
|
76
76
|
children: t.label
|
|
77
77
|
},
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import { CartesianChartProps } from './types';
|
|
2
|
-
export declare function CartesianChart({ series, xAxis, yAxis, width, height, inset, axisPadding, ariaLabel, enableScrubbing, onScrubberPositionChange, animate, magnetRadius, children, }: CartesianChartProps): import("react/jsx-runtime").JSX.Element;
|
|
2
|
+
export declare function CartesianChart({ series, xAxis, yAxis, width, height, inset, axisPadding, ariaLabel, ariaBusy, overlay: htmlOverlay, enableScrubbing, onScrubberPositionChange, animate, magnetRadius, children, }: CartesianChartProps): import("react/jsx-runtime").JSX.Element;
|
|
3
3
|
//# sourceMappingURL=CartesianChart.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"CartesianChart.d.ts","sourceRoot":"","sources":["../../../../src/lib/Components/CartesianChart/CartesianChart.tsx"],"names":[],"mappings":"AAMA,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,SAAS,CAAC;AASnD,wBAAgB,cAAc,CAAC,EAC7B,MAAM,EACN,KAAK,EACL,KAAK,EACL,KAAc,EACd,MAAuB,EACvB,KAAK,EACL,WAAW,EACX,SAAmB,EACnB,eAAuB,EACvB,wBAAwB,EACxB,OAAc,EACd,YAAY,EACZ,QAAQ,GACT,EAAE,mBAAmB,
|
|
1
|
+
{"version":3,"file":"CartesianChart.d.ts","sourceRoot":"","sources":["../../../../src/lib/Components/CartesianChart/CartesianChart.tsx"],"names":[],"mappings":"AAMA,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,SAAS,CAAC;AASnD,wBAAgB,cAAc,CAAC,EAC7B,MAAM,EACN,KAAK,EACL,KAAK,EACL,KAAc,EACd,MAAuB,EACvB,KAAK,EACL,WAAW,EACX,SAAmB,EACnB,QAAgB,EAChB,OAAO,EAAE,WAAW,EACpB,eAAuB,EACvB,wBAAwB,EACxB,OAAc,EACd,YAAY,EACZ,QAAQ,GACT,EAAE,mBAAmB,2CA4GrB"}
|
|
@@ -1,99 +1,106 @@
|
|
|
1
|
-
import { jsx as t } from "react/jsx-runtime";
|
|
2
|
-
import { useRef as
|
|
3
|
-
import { ScrubberProvider as
|
|
4
|
-
import { resolveInset as
|
|
5
|
-
import { useBuildChartContext as
|
|
6
|
-
import { CartesianChartProvider as
|
|
7
|
-
import { MagneticPointsProvider as
|
|
8
|
-
import { RevealClipDefs as
|
|
9
|
-
function
|
|
10
|
-
series:
|
|
11
|
-
xAxis:
|
|
12
|
-
yAxis:
|
|
1
|
+
import { jsx as t, jsxs as H, Fragment as L } from "react/jsx-runtime";
|
|
2
|
+
import { useRef as b, useState as T, useCallback as V, useEffect as _, useMemo as R } from "react";
|
|
3
|
+
import { ScrubberProvider as j } from "../Scrubber/ScrubberProvider.js";
|
|
4
|
+
import { resolveInset as k, resolveAxisPadding as B, DEFAULT_HEIGHT as D, OVERFLOW_OFFSET as U, OVERFLOW_BUFFER as s } from "./utils.js";
|
|
5
|
+
import { useBuildChartContext as G } from "./context/useBuildChartContext.js";
|
|
6
|
+
import { CartesianChartProvider as S } from "./context/cartesianChartContext.js";
|
|
7
|
+
import { MagneticPointsProvider as q } from "../Point/pointContext/MagneticPointsProvider.js";
|
|
8
|
+
import { RevealClipDefs as J } from "./RevealClip/RevealClipDefs.js";
|
|
9
|
+
function te({
|
|
10
|
+
series: d,
|
|
11
|
+
xAxis: y,
|
|
12
|
+
yAxis: C,
|
|
13
13
|
width: e = "100%",
|
|
14
|
-
height: l =
|
|
14
|
+
height: l = D,
|
|
15
15
|
inset: c,
|
|
16
|
-
axisPadding:
|
|
16
|
+
axisPadding: v,
|
|
17
17
|
ariaLabel: x = "Chart",
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
18
|
+
ariaBusy: F = !1,
|
|
19
|
+
overlay: E,
|
|
20
|
+
enableScrubbing: n = !1,
|
|
21
|
+
onScrubberPositionChange: O,
|
|
22
|
+
animate: P = !0,
|
|
23
|
+
magnetRadius: W,
|
|
24
|
+
children: A
|
|
23
25
|
}) {
|
|
24
|
-
const
|
|
26
|
+
const a = b(null), f = b(null), [w, I] = T(
|
|
25
27
|
typeof e == "number" ? e : void 0
|
|
26
|
-
), r = typeof e != "number", u =
|
|
27
|
-
const [g] =
|
|
28
|
-
g &&
|
|
28
|
+
), r = typeof e != "number", u = V((i) => {
|
|
29
|
+
const [g] = i;
|
|
30
|
+
g && I(g.contentRect.width);
|
|
29
31
|
}, []);
|
|
30
|
-
|
|
31
|
-
if (!r || !
|
|
32
|
+
_(() => {
|
|
33
|
+
if (!r || !a.current || typeof ResizeObserver > "u")
|
|
32
34
|
return;
|
|
33
|
-
const
|
|
34
|
-
return
|
|
35
|
+
const i = new ResizeObserver(u);
|
|
36
|
+
return i.observe(a.current), () => i.disconnect();
|
|
35
37
|
}, [r, u]);
|
|
36
|
-
const o = typeof e == "number" ? e :
|
|
37
|
-
() =>
|
|
38
|
-
[
|
|
39
|
-
), p =
|
|
40
|
-
series:
|
|
41
|
-
xAxis:
|
|
42
|
-
yAxis:
|
|
38
|
+
const o = typeof e == "number" ? e : w ?? 0, m = o > 0 ? o + s.left + s.right : 0, h = l + s.top + s.bottom, M = R(() => k(c), [c]), z = R(
|
|
39
|
+
() => B(v),
|
|
40
|
+
[v]
|
|
41
|
+
), p = G({
|
|
42
|
+
series: d,
|
|
43
|
+
xAxis: y,
|
|
44
|
+
yAxis: C,
|
|
43
45
|
width: m,
|
|
44
46
|
height: h,
|
|
45
|
-
inset:
|
|
46
|
-
axisPadding:
|
|
47
|
+
inset: M,
|
|
48
|
+
axisPadding: z
|
|
47
49
|
});
|
|
48
50
|
return /* @__PURE__ */ t(
|
|
49
51
|
"div",
|
|
50
52
|
{
|
|
51
|
-
ref: r ?
|
|
53
|
+
ref: r ? a : void 0,
|
|
52
54
|
"data-testid": "chart-container",
|
|
53
55
|
style: {
|
|
54
56
|
width: r ? e : o,
|
|
55
57
|
height: l,
|
|
56
|
-
overflow: "visible"
|
|
58
|
+
overflow: "visible",
|
|
59
|
+
position: "relative"
|
|
57
60
|
},
|
|
58
|
-
children: o > 0 && /* @__PURE__ */
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
{
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
61
|
+
children: o > 0 && /* @__PURE__ */ H(L, { children: [
|
|
62
|
+
/* @__PURE__ */ t(
|
|
63
|
+
"svg",
|
|
64
|
+
{
|
|
65
|
+
ref: f,
|
|
66
|
+
"data-testid": "chart-svg",
|
|
67
|
+
width: m,
|
|
68
|
+
height: h,
|
|
69
|
+
role: "img",
|
|
70
|
+
"aria-label": x || "Chart",
|
|
71
|
+
"aria-busy": F || void 0,
|
|
72
|
+
tabIndex: n ? 0 : void 0,
|
|
73
|
+
style: {
|
|
74
|
+
display: "block",
|
|
75
|
+
overflow: "visible",
|
|
76
|
+
outline: n ? "none" : void 0,
|
|
77
|
+
...U
|
|
78
|
+
},
|
|
79
|
+
children: /* @__PURE__ */ t(S, { value: p, children: /* @__PURE__ */ t(q, { children: /* @__PURE__ */ t(
|
|
80
|
+
j,
|
|
81
|
+
{
|
|
82
|
+
svgRef: f,
|
|
83
|
+
enableScrubbing: n,
|
|
84
|
+
onScrubberPositionChange: O,
|
|
85
|
+
magnetRadius: W,
|
|
86
|
+
children: /* @__PURE__ */ t(
|
|
87
|
+
J,
|
|
88
|
+
{
|
|
89
|
+
drawingArea: p.drawingArea,
|
|
90
|
+
series: d,
|
|
91
|
+
animate: P,
|
|
92
|
+
children: A
|
|
93
|
+
}
|
|
94
|
+
)
|
|
95
|
+
}
|
|
96
|
+
) }) })
|
|
97
|
+
}
|
|
98
|
+
),
|
|
99
|
+
E
|
|
100
|
+
] })
|
|
94
101
|
}
|
|
95
102
|
);
|
|
96
103
|
}
|
|
97
104
|
export {
|
|
98
|
-
|
|
105
|
+
te as CartesianChart
|
|
99
106
|
};
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { PropsWithChildren } from 'react';
|
|
2
|
+
type ChartEmptyLabelProps = PropsWithChildren;
|
|
3
|
+
/**
|
|
4
|
+
* Centred HTML overlay label shown when a chart has no data (and is not
|
|
5
|
+
* loading). Rendered through the `overlay` prop of `CartesianChart` so it shares
|
|
6
|
+
* the chart's positioned container and aligns with the chart footprint. Shared
|
|
7
|
+
* across cartesian charts.
|
|
8
|
+
*/
|
|
9
|
+
export declare function ChartEmptyLabel({ children }: Readonly<ChartEmptyLabelProps>): import("react/jsx-runtime").JSX.Element;
|
|
10
|
+
export {};
|
|
11
|
+
//# sourceMappingURL=ChartEmptyLabel.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ChartEmptyLabel.d.ts","sourceRoot":"","sources":["../../../../../src/lib/Components/CartesianChart/ChartEmptyLabel/ChartEmptyLabel.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,OAAO,CAAC;AAE/C,KAAK,oBAAoB,GAAG,iBAAiB,CAAC;AAE9C;;;;;GAKG;AACH,wBAAgB,eAAe,CAAC,EAAE,QAAQ,EAAE,EAAE,QAAQ,CAAC,oBAAoB,CAAC,2CAc3E"}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { jsx as e } from "react/jsx-runtime";
|
|
2
|
+
function n({ children: t }) {
|
|
3
|
+
return /* @__PURE__ */ e(
|
|
4
|
+
"div",
|
|
5
|
+
{
|
|
6
|
+
"aria-hidden": "true",
|
|
7
|
+
className: "pointer-events-none absolute inset-0 flex items-center justify-center",
|
|
8
|
+
children: /* @__PURE__ */ e(
|
|
9
|
+
"span",
|
|
10
|
+
{
|
|
11
|
+
"data-testid": "chart-empty-label",
|
|
12
|
+
className: "animate-fade-in rounded-xs bg-muted px-12 py-6 body-3 text-muted",
|
|
13
|
+
children: t
|
|
14
|
+
}
|
|
15
|
+
)
|
|
16
|
+
}
|
|
17
|
+
);
|
|
18
|
+
}
|
|
19
|
+
export {
|
|
20
|
+
n as ChartEmptyLabel
|
|
21
|
+
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"RevealClipDefs.d.ts","sourceRoot":"","sources":["../../../../../src/lib/Components/CartesianChart/RevealClip/RevealClipDefs.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"RevealClipDefs.d.ts","sourceRoot":"","sources":["../../../../../src/lib/Components/CartesianChart/RevealClip/RevealClipDefs.tsx"],"names":[],"mappings":"AAMA,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,SAAS,CAAC;AAKnD,wBAAgB,cAAc,CAAC,EAC7B,QAAQ,EACR,WAAW,EACX,MAAM,EACN,OAAc,EACd,WAAW,GACZ,EAAE,mBAAmB,2CA4CrB"}
|
|
@@ -1,27 +1,28 @@
|
|
|
1
1
|
import { jsx as i, Fragment as d, jsxs as F } from "react/jsx-runtime";
|
|
2
2
|
import { useMemo as x } from "react";
|
|
3
|
+
import { useDataFingerprint as D } from "../hooks/useDataFingerprint.js";
|
|
4
|
+
import { useRevealClipAnimation as y } from "../hooks/useRevealClipAnimation.js";
|
|
3
5
|
import { OVERFLOW_BUFFER as t } from "../utils.js";
|
|
4
|
-
import { RevealClipContext as
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
function O({
|
|
6
|
+
import { RevealClipContext as E } from "./context.js";
|
|
7
|
+
const R = 0.8, v = "linear";
|
|
8
|
+
function S({
|
|
8
9
|
children: n,
|
|
9
10
|
drawingArea: e,
|
|
10
11
|
series: l,
|
|
11
12
|
animate: s = !0,
|
|
12
13
|
transitions: r
|
|
13
14
|
}) {
|
|
14
|
-
const m = !s, c = r?.enter?.duration ??
|
|
15
|
+
const m = !s, c = r?.enter?.duration ?? R, p = r?.enter?.easing ?? v, a = D(l), { clipId: o, animationStyle: f, keyframe: h } = y({
|
|
15
16
|
duration: c,
|
|
16
17
|
easing: p,
|
|
17
18
|
drawingArea: e
|
|
18
|
-
}),
|
|
19
|
+
}), u = x(
|
|
19
20
|
() => ({
|
|
20
21
|
clipPathAttr: `url(#${o})`
|
|
21
22
|
}),
|
|
22
23
|
[o]
|
|
23
24
|
);
|
|
24
|
-
return m ? /* @__PURE__ */ i(d, { children: n }) : /* @__PURE__ */ F(
|
|
25
|
+
return m ? /* @__PURE__ */ i(d, { children: n }) : /* @__PURE__ */ F(E.Provider, { value: u, children: [
|
|
25
26
|
/* @__PURE__ */ i("defs", { children: /* @__PURE__ */ i("clipPath", { id: o, children: /* @__PURE__ */ i(
|
|
26
27
|
"rect",
|
|
27
28
|
{
|
|
@@ -29,13 +30,13 @@ function O({
|
|
|
29
30
|
y: e.y - t.top,
|
|
30
31
|
height: e.height + t.top + t.bottom,
|
|
31
32
|
width: e.width + t.left + t.right,
|
|
32
|
-
style: { animation:
|
|
33
|
+
style: { animation: f }
|
|
33
34
|
}
|
|
34
35
|
) }) }),
|
|
35
|
-
/* @__PURE__ */ i("style", { children:
|
|
36
|
+
/* @__PURE__ */ i("style", { children: h }),
|
|
36
37
|
n
|
|
37
38
|
] }, a);
|
|
38
39
|
}
|
|
39
40
|
export {
|
|
40
|
-
|
|
41
|
+
S as RevealClipDefs
|
|
41
42
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../../src/lib/Components/CartesianChart/RevealClip/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAEvC,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../../src/lib/Components/CartesianChart/RevealClip/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAEvC,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,EAAE,MAAM,sBAAsB,CAAC;AAEhE,MAAM,MAAM,qBAAqB,GAAG;IAClC;;OAEG;IACH,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB;;OAEG;IACH,MAAM,CAAC,EAAE,MAAM,CAAC;CACjB,CAAC;AAEF,MAAM,MAAM,mBAAmB,GAAG;IAChC,QAAQ,EAAE,SAAS,CAAC;IACpB;;OAEG;IACH,WAAW,EAAE,WAAW,CAAC;IACzB;;;OAGG;IACH,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB;;;OAGG;IACH,WAAW,CAAC,EAAE;QAAE,KAAK,CAAC,EAAE,qBAAqB,CAAA;KAAE,CAAC;IAChD;;;OAGG;IACH,MAAM,EAAE,MAAM,EAAE,CAAC;CAClB,CAAC"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { Series } from '../../../utils/types';
|
|
2
|
+
/**
|
|
3
|
+
* Stable signature of every series' data points, memoized on the `series`
|
|
4
|
+
* reference. Used to key the reveal-clip provider so the reveal animation only
|
|
5
|
+
* replays when the underlying data actually changes — not on unrelated
|
|
6
|
+
* re-renders such as scrubbing or hover.
|
|
7
|
+
*/
|
|
8
|
+
export declare const useDataFingerprint: (series: Series[]) => string;
|
|
9
|
+
//# sourceMappingURL=useDataFingerprint.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useDataFingerprint.d.ts","sourceRoot":"","sources":["../../../../../src/lib/Components/CartesianChart/hooks/useDataFingerprint.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,sBAAsB,CAAC;AAEnD;;;;;GAKG;AACH,eAAO,MAAM,kBAAkB,GAAI,QAAQ,MAAM,EAAE,KAAG,MAKrD,CAAC"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { DrawingArea
|
|
1
|
+
import { DrawingArea } from '../../../utils/types';
|
|
2
2
|
type RevealClipAnimationConfig = {
|
|
3
3
|
duration: number;
|
|
4
4
|
easing: string;
|
|
@@ -10,8 +10,5 @@ type RevealClipAnimationResult = {
|
|
|
10
10
|
keyframe: string;
|
|
11
11
|
};
|
|
12
12
|
export declare const useRevealClipAnimation: ({ duration, easing, drawingArea, }: RevealClipAnimationConfig) => RevealClipAnimationResult;
|
|
13
|
-
export declare const useComputeDataFingerprint: ({ series, }: {
|
|
14
|
-
series: Series[];
|
|
15
|
-
}) => string;
|
|
16
13
|
export {};
|
|
17
|
-
//# sourceMappingURL=
|
|
14
|
+
//# sourceMappingURL=useRevealClipAnimation.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useRevealClipAnimation.d.ts","sourceRoot":"","sources":["../../../../../src/lib/Components/CartesianChart/hooks/useRevealClipAnimation.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,sBAAsB,CAAC;AAGxD,KAAK,yBAAyB,GAAG;IAC/B,QAAQ,EAAE,MAAM,CAAC;IACjB,MAAM,EAAE,MAAM,CAAC;IACf,WAAW,EAAE,WAAW,CAAC;CAC1B,CAAC;AAEF,KAAK,yBAAyB,GAAG;IAC/B,MAAM,EAAE,MAAM,CAAC;IACf,cAAc,EAAE,MAAM,CAAC;IACvB,QAAQ,EAAE,MAAM,CAAC;CAClB,CAAC;AAEF,eAAO,MAAM,sBAAsB,GAAI,oCAIpC,yBAAyB,KAAG,yBAY9B,CAAC"}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { useId as l, useMemo as a } from "react";
|
|
2
|
+
import { OVERFLOW_BUFFER as r } from "../utils.js";
|
|
3
|
+
const f = ({
|
|
4
|
+
duration: o,
|
|
5
|
+
easing: i,
|
|
6
|
+
drawingArea: m
|
|
7
|
+
}) => {
|
|
8
|
+
const e = l(), t = `reveal-clip-${e.replaceAll(":", "")}`;
|
|
9
|
+
return a(
|
|
10
|
+
() => ({
|
|
11
|
+
clipId: e,
|
|
12
|
+
animationStyle: `${t} ${o}s ${i} forwards`,
|
|
13
|
+
keyframe: `@keyframes ${t} { from { width: 0; } to { width: ${m.width + r.left + r.right}px; } }`
|
|
14
|
+
}),
|
|
15
|
+
[e, t, o, i, m.width]
|
|
16
|
+
);
|
|
17
|
+
};
|
|
18
|
+
export {
|
|
19
|
+
f as useRevealClipAnimation
|
|
20
|
+
};
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
type ShimmerAnimationResult = {
|
|
2
|
+
/**
|
|
3
|
+
* Value for the CSS `animation` shorthand, applied via `style` on the
|
|
4
|
+
* element that should shimmer.
|
|
5
|
+
*/
|
|
6
|
+
animationStyle: string;
|
|
7
|
+
/**
|
|
8
|
+
* `@keyframes` definition to inject inside an SVG `<style>` element.
|
|
9
|
+
*/
|
|
10
|
+
keyframe: string;
|
|
11
|
+
};
|
|
12
|
+
/**
|
|
13
|
+
* Self-contained shimmer (opacity pulse) for SVG content. Shared by the initial
|
|
14
|
+
* loading placeholder and the transition-loading line.
|
|
15
|
+
*/
|
|
16
|
+
export declare const useShimmerAnimation: () => ShimmerAnimationResult;
|
|
17
|
+
export {};
|
|
18
|
+
//# sourceMappingURL=useShimmerAnimation.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useShimmerAnimation.d.ts","sourceRoot":"","sources":["../../../../../src/lib/Components/CartesianChart/hooks/useShimmerAnimation.ts"],"names":[],"mappings":"AAKA,KAAK,sBAAsB,GAAG;IAC5B;;;OAGG;IACH,cAAc,EAAE,MAAM,CAAC;IACvB;;OAEG;IACH,QAAQ,EAAE,MAAM,CAAC;CAClB,CAAC;AAEF;;;GAGG;AACH,eAAO,MAAM,mBAAmB,QAAO,sBAatC,CAAC"}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { useId as i, useMemo as o } from "react";
|
|
2
|
+
const t = 2, m = "cubic-bezier(0.4, 0, 0.6, 1)", a = () => {
|
|
3
|
+
const e = `shimmer-pulse-${i().replaceAll(":", "")}`;
|
|
4
|
+
return o(
|
|
5
|
+
() => ({
|
|
6
|
+
animationStyle: `${e} ${t}s ${m} infinite`,
|
|
7
|
+
keyframe: `@keyframes ${e} { 0%, 100% { opacity: 1; } 50% { opacity: 0.5; } } @media (prefers-reduced-motion: reduce) { @keyframes ${e} { 0%, 100% { opacity: 1; } } }`
|
|
8
|
+
}),
|
|
9
|
+
[e]
|
|
10
|
+
);
|
|
11
|
+
};
|
|
12
|
+
export {
|
|
13
|
+
a as useShimmerAnimation
|
|
14
|
+
};
|
|
@@ -43,6 +43,17 @@ export type CartesianChartProps = {
|
|
|
43
43
|
* @default 'Chart'
|
|
44
44
|
*/
|
|
45
45
|
ariaLabel?: string;
|
|
46
|
+
/**
|
|
47
|
+
* Sets `aria-busy` on the chart SVG to signal that its content is loading.
|
|
48
|
+
* @default false
|
|
49
|
+
*/
|
|
50
|
+
ariaBusy?: boolean;
|
|
51
|
+
/**
|
|
52
|
+
* HTML content rendered as an absolutely-positioned overlay above the chart
|
|
53
|
+
* SVG, within the same positioned container (so it aligns with the chart
|
|
54
|
+
* footprint). Used for e.g. an empty-state label.
|
|
55
|
+
*/
|
|
56
|
+
overlay?: ReactNode;
|
|
46
57
|
/**
|
|
47
58
|
* SVG content rendered inside the chart's context provider.
|
|
48
59
|
*/
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../src/lib/Components/CartesianChart/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAEvC,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,EAAE,MAAM,mBAAmB,CAAC;AAC5D,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,SAAS,CAAC;AAE7C,MAAM,MAAM,mBAAmB,GAAG;IAChC;;OAEG;IACH,MAAM,EAAE,MAAM,EAAE,CAAC;IACjB;;OAEG;IACH,KAAK,CAAC,EAAE,OAAO,CAAC,aAAa,CAAC,CAAC;IAC/B;;OAEG;IACH,KAAK,CAAC,EAAE,OAAO,CAAC,aAAa,CAAC,CAAC;IAC/B;;;;;OAKG;IACH,KAAK,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC;IACxB;;;OAGG;IACH,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB;;;;;OAKG;IACH,KAAK,CAAC,EAAE,MAAM,GAAG,OAAO,CAAC,UAAU,CAAC,CAAC;IACrC;;;OAGG;IACH,WAAW,CAAC,EAAE,OAAO,CAAC,UAAU,CAAC,CAAC;IAClC;;;OAGG;IACH,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB;;OAEG;IACH,QAAQ,CAAC,EAAE,SAAS,CAAC;IACrB;;;;OAIG;IACH,eAAe,CAAC,EAAE,OAAO,CAAC;IAC1B;;;OAGG;IACH,wBAAwB,CAAC,EAAE,CAAC,KAAK,EAAE,MAAM,GAAG,SAAS,KAAK,IAAI,CAAC;IAC/D;;;;OAIG;IACH,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB;;;;;OAKG;IACH,YAAY,CAAC,EAAE,MAAM,CAAC;CACvB,CAAC"}
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../src/lib/Components/CartesianChart/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAEvC,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,EAAE,MAAM,mBAAmB,CAAC;AAC5D,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,SAAS,CAAC;AAE7C,MAAM,MAAM,mBAAmB,GAAG;IAChC;;OAEG;IACH,MAAM,EAAE,MAAM,EAAE,CAAC;IACjB;;OAEG;IACH,KAAK,CAAC,EAAE,OAAO,CAAC,aAAa,CAAC,CAAC;IAC/B;;OAEG;IACH,KAAK,CAAC,EAAE,OAAO,CAAC,aAAa,CAAC,CAAC;IAC/B;;;;;OAKG;IACH,KAAK,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC;IACxB;;;OAGG;IACH,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB;;;;;OAKG;IACH,KAAK,CAAC,EAAE,MAAM,GAAG,OAAO,CAAC,UAAU,CAAC,CAAC;IACrC;;;OAGG;IACH,WAAW,CAAC,EAAE,OAAO,CAAC,UAAU,CAAC,CAAC;IAClC;;;OAGG;IACH,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB;;;OAGG;IACH,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB;;;;OAIG;IACH,OAAO,CAAC,EAAE,SAAS,CAAC;IACpB;;OAEG;IACH,QAAQ,CAAC,EAAE,SAAS,CAAC;IACrB;;;;OAIG;IACH,eAAe,CAAC,EAAE,OAAO,CAAC;IAC1B;;;OAGG;IACH,wBAAwB,CAAC,EAAE,CAAC,KAAK,EAAE,MAAM,GAAG,SAAS,KAAK,IAAI,CAAC;IAC/D;;;;OAIG;IACH,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB;;;;;OAKG;IACH,YAAY,CAAC,EAAE,MAAM,CAAC;CACvB,CAAC"}
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import { LineProps } from './types';
|
|
2
|
-
export declare function Line({ seriesId, stroke, showArea, areaType: _areaType, }: LineProps): import("react/jsx-runtime").JSX.Element | null;
|
|
2
|
+
export declare function Line({ seriesId, stroke, showArea, areaType: _areaType, curve, }: LineProps): import("react/jsx-runtime").JSX.Element | null;
|
|
3
3
|
//# sourceMappingURL=Line.d.ts.map
|