@bridge-ui/vue 0.17.3 → 0.19.0
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/ai/skills/bridge-ui-components/SKILL.md +36 -35
- package/ai/skills/bridge-ui-setup/SKILL.md +1 -1
- package/dist/Components/CalendarMonth/composables/useCalendarMonth.d.ts +1 -1
- package/dist/Components/ChartAxis/ChartAxis.vue_vue_type_script_setup_true_lang.js +1 -0
- package/dist/Components/ChartAxis/chartAxis.types.d.ts +17 -7
- package/dist/Components/ChartAxis/composables/useChartAxis.d.ts +2 -2
- package/dist/Components/ChartAxis/composables/useChartAxis.js +15 -10
- package/dist/Components/ChartBar/ChartBar.js +5 -0
- package/dist/Components/ChartBar/ChartBar.vue.d.ts +16 -0
- package/dist/Components/ChartBar/ChartBar.vue_vue_type_script_setup_true_lang.js +64 -0
- package/dist/Components/ChartBar/chartBar.types.d.ts +66 -0
- package/dist/Components/ChartBar/composables/useChartBar.d.ts +26 -0
- package/dist/Components/ChartBar/composables/useChartBar.js +13 -0
- package/dist/Components/ChartBar/index.d.ts +4 -0
- package/dist/Components/ChartBar/index.js +4 -0
- package/dist/Components/ChartBarSeries/ChartBarSeries.js +5 -0
- package/dist/Components/ChartBarSeries/ChartBarSeries.vue.d.ts +6 -0
- package/dist/Components/ChartBarSeries/ChartBarSeries.vue_vue_type_script_setup_true_lang.js +28 -0
- package/dist/Components/ChartBarSeries/chartBarSeries.types.d.ts +67 -0
- package/dist/Components/ChartBarSeries/composables/useChartBarSeries.d.ts +5 -0
- package/dist/Components/ChartBarSeries/composables/useChartBarSeries.js +23 -0
- package/dist/Components/ChartBarSeries/index.d.ts +4 -0
- package/dist/Components/ChartBarSeries/index.js +3 -0
- package/dist/Components/ChartFunnel/ChartFunnel.js +5 -0
- package/dist/Components/ChartFunnel/ChartFunnel.vue.d.ts +16 -0
- package/dist/Components/ChartFunnel/ChartFunnel.vue_vue_type_script_setup_true_lang.js +59 -0
- package/dist/Components/ChartFunnel/chartFunnel.types.d.ts +54 -0
- package/dist/Components/ChartFunnel/composables/useChartFunnel.d.ts +29 -0
- package/dist/Components/ChartFunnel/composables/useChartFunnel.js +68 -0
- package/dist/Components/ChartFunnel/index.d.ts +4 -0
- package/dist/Components/ChartFunnel/index.js +4 -0
- package/dist/Components/ChartLegend/ChartLegend.vue.d.ts +2 -0
- package/dist/Components/ChartLegend/ChartLegend.vue_vue_type_script_setup_true_lang.js +33 -13
- package/dist/Components/ChartLegend/chartLegend.types.d.ts +41 -5
- package/dist/Components/ChartLegend/composables/useChartLegend.d.ts +9 -5
- package/dist/Components/ChartLegend/composables/useChartLegend.js +88 -54
- package/dist/Components/ChartLine/ChartLine.js +5 -0
- package/dist/Components/ChartLine/ChartLine.vue.d.ts +20 -0
- package/dist/Components/ChartLine/ChartLine.vue_vue_type_script_setup_true_lang.js +77 -0
- package/dist/Components/ChartLine/chartLine.types.d.ts +79 -0
- package/dist/Components/ChartLine/composables/useChartLine.d.ts +26 -0
- package/dist/Components/ChartLine/composables/useChartLine.js +13 -0
- package/dist/Components/ChartLine/index.d.ts +4 -0
- package/dist/Components/ChartLine/index.js +4 -0
- package/dist/Components/ChartLineSeries/ChartLineSeries.js +5 -0
- package/dist/Components/ChartLineSeries/ChartLineSeries.vue.d.ts +10 -0
- package/dist/Components/ChartLineSeries/ChartLineSeries.vue_vue_type_script_setup_true_lang.js +45 -0
- package/dist/Components/ChartLineSeries/chartLineSeries.types.d.ts +96 -0
- package/dist/Components/ChartLineSeries/composables/useChartLineSeries.d.ts +5 -0
- package/dist/Components/ChartLineSeries/composables/useChartLineSeries.js +28 -0
- package/dist/Components/ChartLineSeries/index.d.ts +4 -0
- package/dist/Components/ChartLineSeries/index.js +3 -0
- package/dist/Components/ChartPie/ChartPie.js +5 -0
- package/dist/Components/ChartPie/ChartPie.vue.d.ts +15 -0
- package/dist/Components/ChartPie/ChartPie.vue_vue_type_script_setup_true_lang.js +76 -0
- package/dist/Components/ChartPie/chartPie.types.d.ts +92 -0
- package/dist/Components/ChartPie/composables/useChartPie.d.ts +30 -0
- package/dist/Components/ChartPie/composables/useChartPie.js +81 -0
- package/dist/Components/ChartPie/index.d.ts +4 -0
- package/dist/Components/ChartPie/index.js +4 -0
- package/dist/Components/ChartScatter/ChartScatter.js +5 -0
- package/dist/Components/{Chart/Chart.vue.d.ts → ChartScatter/ChartScatter.vue.d.ts} +3 -2
- package/dist/Components/ChartScatter/ChartScatter.vue_vue_type_script_setup_true_lang.js +49 -0
- package/dist/Components/ChartScatter/chartScatter.types.d.ts +23 -0
- package/dist/Components/ChartScatter/composables/useChartScatter.d.ts +29 -0
- package/dist/Components/ChartScatter/composables/useChartScatter.js +108 -0
- package/dist/Components/ChartScatter/index.d.ts +4 -0
- package/dist/Components/ChartScatter/index.js +4 -0
- package/dist/Components/ChartScatterSeries/ChartScatterSeries.js +5 -0
- package/dist/Components/ChartScatterSeries/ChartScatterSeries.vue.d.ts +4 -0
- package/dist/Components/ChartScatterSeries/ChartScatterSeries.vue_vue_type_script_setup_true_lang.js +22 -0
- package/dist/Components/ChartScatterSeries/chartScatterSeries.types.d.ts +45 -0
- package/dist/Components/ChartScatterSeries/composables/useChartScatterSeries.d.ts +4 -0
- package/dist/Components/ChartScatterSeries/composables/useChartScatterSeries.js +19 -0
- package/dist/Components/ChartScatterSeries/index.d.ts +4 -0
- package/dist/Components/ChartScatterSeries/index.js +3 -0
- package/dist/Components/ChartTooltip/ChartTooltip.vue_vue_type_script_setup_true_lang.js +22 -10
- package/dist/Components/ChartTooltip/chartTooltip.types.d.ts +28 -9
- package/dist/Components/ChartTooltip/composables/useChartTooltip.d.ts +4 -1
- package/dist/Components/ChartTooltip/composables/useChartTooltip.js +81 -63
- package/dist/Components/Heading/Heading.js +5 -0
- package/dist/Components/Heading/Heading.vue.d.ts +11 -0
- package/dist/Components/Heading/Heading.vue_vue_type_script_setup_true_lang.js +29 -0
- package/dist/Components/Heading/composables/useHeading.d.ts +10 -0
- package/dist/Components/Heading/composables/useHeading.js +56 -0
- package/dist/Components/Heading/heading.types.d.ts +56 -0
- package/dist/Components/Heading/index.d.ts +3 -0
- package/dist/Components/Heading/index.js +3 -0
- package/dist/Components/ResizablePanel/composables/useResizablePanel.d.ts +1 -1
- package/dist/Components/Spinner/composables/useSpinner.d.ts +1 -1
- package/dist/Components/Text/Text.js +5 -0
- package/dist/Components/Text/Text.vue.d.ts +11 -0
- package/dist/Components/Text/Text.vue_vue_type_script_setup_true_lang.js +33 -0
- package/dist/Components/Text/composables/useText.d.ts +9 -0
- package/dist/Components/Text/composables/useText.js +56 -0
- package/dist/Components/Text/index.d.ts +3 -0
- package/dist/Components/Text/index.js +3 -0
- package/dist/Components/Text/text.types.d.ts +76 -0
- package/dist/Utils/Charts/ChartFrame.js +5 -0
- package/dist/Utils/Charts/ChartFrame.vue.d.ts +24 -0
- package/dist/Utils/Charts/ChartFrame.vue_vue_type_script_setup_true_lang.js +41 -0
- package/dist/{Components/Chart → Utils/Charts}/chart.types.d.ts +33 -18
- package/dist/Utils/Charts/chartInjectionKey.d.ts +151 -0
- package/dist/{Components/Chart → Utils/Charts}/chartInjectionKey.js +2 -2
- package/dist/Utils/Charts/echarts/bar.d.ts +6 -0
- package/dist/Utils/Charts/echarts/bar.js +23 -0
- package/dist/Utils/Charts/echarts/cartesian.d.ts +15 -0
- package/dist/Utils/Charts/echarts/cartesian.js +290 -0
- package/dist/Utils/Charts/echarts/funnel.d.ts +15 -0
- package/dist/Utils/Charts/echarts/funnel.js +79 -0
- package/dist/Utils/Charts/echarts/line.d.ts +5 -0
- package/dist/Utils/Charts/echarts/line.js +20 -0
- package/dist/Utils/Charts/echarts/part.d.ts +19 -0
- package/dist/Utils/Charts/echarts/part.js +45 -0
- package/dist/Utils/Charts/echarts/pie.d.ts +14 -0
- package/dist/Utils/Charts/echarts/pie.js +76 -0
- package/dist/Utils/Charts/echarts/plot.d.ts +44 -0
- package/dist/Utils/Charts/echarts/plot.js +52 -0
- package/dist/Utils/Charts/echarts/scatter.d.ts +14 -0
- package/dist/Utils/Charts/echarts/scatter.js +161 -0
- package/dist/Utils/Charts/index.d.ts +6 -0
- package/dist/Utils/Charts/index.js +6 -0
- package/dist/Utils/Charts/useChartCartesian.d.ts +59 -0
- package/dist/Utils/Charts/useChartCartesian.js +169 -0
- package/dist/Utils/Charts/useChartPart.d.ts +45 -0
- package/dist/Utils/Charts/useChartPart.js +97 -0
- package/dist/Utils/Charts/useChartRegistry.d.ts +13 -0
- package/dist/Utils/Charts/useChartRegistry.js +40 -0
- package/dist/Utils/Charts/useChartRoot.d.ts +156 -0
- package/dist/Utils/Charts/useChartRoot.js +342 -0
- package/dist/Utils/Charts/useChartSeries.d.ts +10 -0
- package/dist/Utils/Charts/useChartSeries.js +22 -0
- package/dist/augments.d.ts +33 -7
- package/dist/index.d.ts +4 -0
- package/dist/index.js +90 -86
- package/docs/README.md +8 -1
- package/docs/components/BridgeUIProvider.md +1 -1
- package/docs/components/Card.md +15 -0
- package/docs/components/Chart.md +118 -151
- package/docs/components/ChartBar.md +190 -0
- package/docs/components/ChartFunnel.md +62 -0
- package/docs/components/ChartLine.md +192 -0
- package/docs/components/ChartPie.md +138 -0
- package/docs/components/ChartScatter.md +102 -0
- package/docs/components/Heading.md +85 -0
- package/docs/components/Text.md +118 -0
- package/package.json +2 -2
- package/dist/Components/Chart/Chart.js +0 -5
- package/dist/Components/Chart/Chart.vue_vue_type_script_setup_true_lang.js +0 -52
- package/dist/Components/Chart/chartInjectionKey.d.ts +0 -94
- package/dist/Components/Chart/composables/useChart.d.ts +0 -40
- package/dist/Components/Chart/composables/useChart.js +0 -346
- package/dist/Components/Chart/echartsChart.d.ts +0 -14
- package/dist/Components/Chart/echartsChart.js +0 -199
- package/dist/Components/Chart/index.d.ts +0 -4
- package/dist/Components/Chart/index.js +0 -4
- package/dist/Components/ChartSeries/ChartSeries.js +0 -5
- package/dist/Components/ChartSeries/ChartSeries.vue.d.ts +0 -4
- package/dist/Components/ChartSeries/ChartSeries.vue_vue_type_script_setup_true_lang.js +0 -24
- package/dist/Components/ChartSeries/chartSeries.types.d.ts +0 -37
- package/dist/Components/ChartSeries/composables/useChartSeries.d.ts +0 -10
- package/dist/Components/ChartSeries/composables/useChartSeries.js +0 -29
- package/dist/Components/ChartSeries/index.d.ts +0 -3
- package/dist/Components/ChartSeries/index.js +0 -3
|
@@ -0,0 +1,79 @@
|
|
|
1
|
+
import { labelStyle as e, mountEchartsPlot as t, readItemLayout as n } from "./plot.js";
|
|
2
|
+
import { createEchartsPartFamily as r, formatSliceLabel as i } from "./part.js";
|
|
3
|
+
import { get as a, isArray as o, isNumber as s } from "es-toolkit/compat";
|
|
4
|
+
import { FunnelChart as c } from "echarts/charts";
|
|
5
|
+
import { TooltipComponent as l } from "echarts/components";
|
|
6
|
+
import { use as u } from "echarts/core";
|
|
7
|
+
import { SVGRenderer as d } from "echarts/renderers";
|
|
8
|
+
//#region src/Utils/Charts/echarts/funnel.ts
|
|
9
|
+
u([
|
|
10
|
+
c,
|
|
11
|
+
d,
|
|
12
|
+
l
|
|
13
|
+
]);
|
|
14
|
+
function f(e) {
|
|
15
|
+
return !e.labels || e.labelPosition !== "outside" ? {
|
|
16
|
+
left: "4%",
|
|
17
|
+
width: "92%"
|
|
18
|
+
} : {
|
|
19
|
+
width: "60%",
|
|
20
|
+
left: e.align === "right" ? "36%" : "4%"
|
|
21
|
+
};
|
|
22
|
+
}
|
|
23
|
+
function p(t) {
|
|
24
|
+
let { theme: n, labels: r, slices: a, labelPosition: o } = t, s = r && o === "outside", c = t.align === "right" ? "left" : "right", l = {
|
|
25
|
+
show: r,
|
|
26
|
+
...e(n),
|
|
27
|
+
formatter: i(a),
|
|
28
|
+
color: s ? n.textColor : "#fff",
|
|
29
|
+
position: s ? c : "inside"
|
|
30
|
+
};
|
|
31
|
+
return {
|
|
32
|
+
animation: t.animation,
|
|
33
|
+
tooltip: {
|
|
34
|
+
show: !0,
|
|
35
|
+
trigger: "item",
|
|
36
|
+
showContent: !1
|
|
37
|
+
},
|
|
38
|
+
textStyle: {
|
|
39
|
+
fontSize: n.fontSize,
|
|
40
|
+
fontFamily: n.fontFamily
|
|
41
|
+
},
|
|
42
|
+
series: [{
|
|
43
|
+
label: l,
|
|
44
|
+
gap: 2,
|
|
45
|
+
top: 4,
|
|
46
|
+
bottom: 4,
|
|
47
|
+
sort: "none",
|
|
48
|
+
type: "funnel",
|
|
49
|
+
...f(t),
|
|
50
|
+
emphasis: { label: l },
|
|
51
|
+
funnelAlign: t.align,
|
|
52
|
+
labelLine: {
|
|
53
|
+
show: s,
|
|
54
|
+
lineStyle: { color: n.axisColor }
|
|
55
|
+
},
|
|
56
|
+
data: a.map((e) => ({
|
|
57
|
+
id: e.id,
|
|
58
|
+
name: e.label,
|
|
59
|
+
value: e.value,
|
|
60
|
+
itemStyle: { color: e.color }
|
|
61
|
+
}))
|
|
62
|
+
}]
|
|
63
|
+
};
|
|
64
|
+
}
|
|
65
|
+
function m(e, t) {
|
|
66
|
+
let r = a(n(e, t), "points");
|
|
67
|
+
if (!o(r) || r.length < 2) return null;
|
|
68
|
+
let [i, c] = r, l = a(i, 0), u = a(c, 0), d = a(i, 1);
|
|
69
|
+
return !s(l) || !s(u) || !s(d) ? null : {
|
|
70
|
+
y: d,
|
|
71
|
+
x: (l + u) / 2
|
|
72
|
+
};
|
|
73
|
+
}
|
|
74
|
+
var h = r(p, m);
|
|
75
|
+
function g(e) {
|
|
76
|
+
return t(e, h);
|
|
77
|
+
}
|
|
78
|
+
//#endregion
|
|
79
|
+
export { p as buildEchartsFunnelOption, g as mountEchartsFunnel };
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import { ChartCartesianRenderOptions, ChartHandle, ChartMountOptions } from '@bridge-ui/core/Domain';
|
|
2
|
+
/**
|
|
3
|
+
* Mounts a line plot (tree-shaken: line series only).
|
|
4
|
+
*/
|
|
5
|
+
export declare function mountEchartsLine(options: ChartMountOptions<ChartCartesianRenderOptions>): ChartHandle<ChartCartesianRenderOptions>;
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { mountEchartsPlot as e } from "./plot.js";
|
|
2
|
+
import { echartsCartesianFamily as t } from "./cartesian.js";
|
|
3
|
+
import { LineChart as n } from "echarts/charts";
|
|
4
|
+
import { GridComponent as r, MarkLineComponent as i, TooltipComponent as a, VisualMapPiecewiseComponent as o } from "echarts/components";
|
|
5
|
+
import { use as s } from "echarts/core";
|
|
6
|
+
import { SVGRenderer as c } from "echarts/renderers";
|
|
7
|
+
//#region src/Utils/Charts/echarts/line.ts
|
|
8
|
+
s([
|
|
9
|
+
n,
|
|
10
|
+
r,
|
|
11
|
+
c,
|
|
12
|
+
a,
|
|
13
|
+
i,
|
|
14
|
+
o
|
|
15
|
+
]);
|
|
16
|
+
function l(n) {
|
|
17
|
+
return e(n, t);
|
|
18
|
+
}
|
|
19
|
+
//#endregion
|
|
20
|
+
export { l as mountEchartsLine };
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { ECharts } from 'echarts/core';
|
|
2
|
+
import { ChartAnchor, ChartBaseRenderOptions, ChartPartRenderSlice } from '@bridge-ui/core/Domain';
|
|
3
|
+
import { EchartsPlotFamily } from './plot';
|
|
4
|
+
/**
|
|
5
|
+
* Render options with slices (pie, funnel).
|
|
6
|
+
*/
|
|
7
|
+
type PartOptions = ChartBaseRenderOptions & {
|
|
8
|
+
slices: ChartPartRenderSlice[];
|
|
9
|
+
};
|
|
10
|
+
/**
|
|
11
|
+
* Plot label formatter: the precomputed text of each slice.
|
|
12
|
+
*/
|
|
13
|
+
export declare function formatSliceLabel(slices: ChartPartRenderSlice[]): (params: unknown) => string;
|
|
14
|
+
/**
|
|
15
|
+
* Item-trigger pieces shared by pie and funnel plots: one series whose data
|
|
16
|
+
* index is the active index.
|
|
17
|
+
*/
|
|
18
|
+
export declare function createEchartsPartFamily<Options extends PartOptions>(build: EchartsPlotFamily<Options>["build"], getAnchor: (chart: ECharts, index: number) => null | ChartAnchor): EchartsPlotFamily<Options>;
|
|
19
|
+
export {};
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
import { get as e, isNil as t, isNumber as n } from "es-toolkit/compat";
|
|
2
|
+
//#region src/Utils/Charts/echarts/part.ts
|
|
3
|
+
function r(e, n) {
|
|
4
|
+
e.dispatchAction({
|
|
5
|
+
seriesIndex: 0,
|
|
6
|
+
type: "downplay"
|
|
7
|
+
}), !t(n) && n >= 0 && e.dispatchAction({
|
|
8
|
+
seriesIndex: 0,
|
|
9
|
+
dataIndex: n,
|
|
10
|
+
type: "highlight"
|
|
11
|
+
});
|
|
12
|
+
}
|
|
13
|
+
function i(t) {
|
|
14
|
+
return (n) => e(t, [Number(e(n, "dataIndex")), "labelText"]) ?? "";
|
|
15
|
+
}
|
|
16
|
+
function a(i, a) {
|
|
17
|
+
return {
|
|
18
|
+
build: i,
|
|
19
|
+
getAnchor: (e, t, n) => n < 0 || n >= t.slices.length ? null : a(e, n),
|
|
20
|
+
highlight: (e, n, i) => {
|
|
21
|
+
r(e, t(i) ? null : n.slices.findIndex((e) => e.id === i));
|
|
22
|
+
},
|
|
23
|
+
attach: (t, r) => {
|
|
24
|
+
t.on("mouseover", (t) => {
|
|
25
|
+
let i = e(t, "dataIndex");
|
|
26
|
+
r(n(i) ? i : null);
|
|
27
|
+
}), t.on("mouseout", () => {
|
|
28
|
+
r(null);
|
|
29
|
+
});
|
|
30
|
+
},
|
|
31
|
+
showActive: (e, n, i) => {
|
|
32
|
+
if (r(e, i), t(i)) {
|
|
33
|
+
e.dispatchAction({ type: "hideTip" });
|
|
34
|
+
return;
|
|
35
|
+
}
|
|
36
|
+
e.dispatchAction({
|
|
37
|
+
seriesIndex: 0,
|
|
38
|
+
type: "showTip",
|
|
39
|
+
dataIndex: i
|
|
40
|
+
});
|
|
41
|
+
}
|
|
42
|
+
};
|
|
43
|
+
}
|
|
44
|
+
//#endregion
|
|
45
|
+
export { a as createEchartsPartFamily, i as formatSliceLabel };
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { PieSeriesOption } from 'echarts/charts';
|
|
2
|
+
import { TooltipComponentOption } from 'echarts/components';
|
|
3
|
+
import { ComposeOption } from 'echarts/core';
|
|
4
|
+
import { ChartHandle, ChartMountOptions, ChartPieRenderOptions } from '@bridge-ui/core/Domain';
|
|
5
|
+
type EChartsPieOption = ComposeOption<PieSeriesOption | TooltipComponentOption>;
|
|
6
|
+
/**
|
|
7
|
+
* Builds the ECharts option for a pie or donut plot.
|
|
8
|
+
*/
|
|
9
|
+
export declare function buildEchartsPieOption(options: ChartPieRenderOptions): EChartsPieOption;
|
|
10
|
+
/**
|
|
11
|
+
* Mounts a pie / donut plot (tree-shaken: pie series only).
|
|
12
|
+
*/
|
|
13
|
+
export declare function mountEchartsPie(options: ChartMountOptions<ChartPieRenderOptions>): ChartHandle<ChartPieRenderOptions>;
|
|
14
|
+
export {};
|
|
@@ -0,0 +1,76 @@
|
|
|
1
|
+
import { labelStyle as e, mountEchartsPlot as t, readItemLayout as n } from "./plot.js";
|
|
2
|
+
import { createEchartsPartFamily as r, formatSliceLabel as i } from "./part.js";
|
|
3
|
+
import { get as a, isNumber as o } from "es-toolkit/compat";
|
|
4
|
+
import { PieChart as s } from "echarts/charts";
|
|
5
|
+
import { TooltipComponent as c } from "echarts/components";
|
|
6
|
+
import { use as l } from "echarts/core";
|
|
7
|
+
import { SVGRenderer as u } from "echarts/renderers";
|
|
8
|
+
//#region src/Utils/Charts/echarts/pie.ts
|
|
9
|
+
l([
|
|
10
|
+
s,
|
|
11
|
+
u,
|
|
12
|
+
c
|
|
13
|
+
]);
|
|
14
|
+
var d = 70, f = 92;
|
|
15
|
+
function p(t) {
|
|
16
|
+
let { theme: n, labels: r, slices: a, labelPosition: o } = t, s = r && o === "outside", c = s ? d : f, l = t.variant === "donut", u = Math.min(1, Math.max(0, t.thickness)), p = l ? Math.round(c * (1 - u)) : 0, m = {
|
|
17
|
+
show: r,
|
|
18
|
+
...e(n),
|
|
19
|
+
formatter: i(a),
|
|
20
|
+
color: s ? n.textColor : "#fff",
|
|
21
|
+
position: s ? "outside" : "inside"
|
|
22
|
+
};
|
|
23
|
+
return {
|
|
24
|
+
animation: t.animation,
|
|
25
|
+
tooltip: {
|
|
26
|
+
show: !0,
|
|
27
|
+
trigger: "item",
|
|
28
|
+
showContent: !1
|
|
29
|
+
},
|
|
30
|
+
textStyle: {
|
|
31
|
+
fontSize: n.fontSize,
|
|
32
|
+
fontFamily: n.fontFamily
|
|
33
|
+
},
|
|
34
|
+
series: [{
|
|
35
|
+
label: m,
|
|
36
|
+
type: "pie",
|
|
37
|
+
center: ["50%", "50%"],
|
|
38
|
+
avoidLabelOverlap: !0,
|
|
39
|
+
minAngle: t.minAngle,
|
|
40
|
+
radius: [`${p}%`, `${c}%`],
|
|
41
|
+
roseType: t.rose ?? void 0,
|
|
42
|
+
emphasis: {
|
|
43
|
+
label: m,
|
|
44
|
+
scale: !0,
|
|
45
|
+
scaleSize: 4
|
|
46
|
+
},
|
|
47
|
+
itemStyle: { borderRadius: t.cornerRadius },
|
|
48
|
+
padAngle: a.length > 1 ? t.padAngle : 0,
|
|
49
|
+
labelLine: {
|
|
50
|
+
show: s,
|
|
51
|
+
lineStyle: { color: n.axisColor }
|
|
52
|
+
},
|
|
53
|
+
data: a.map((e) => ({
|
|
54
|
+
id: e.id,
|
|
55
|
+
name: e.label,
|
|
56
|
+
value: e.value,
|
|
57
|
+
itemStyle: { color: e.color }
|
|
58
|
+
}))
|
|
59
|
+
}]
|
|
60
|
+
};
|
|
61
|
+
}
|
|
62
|
+
function m(e, t) {
|
|
63
|
+
let r = n(e, t), i = a(r, "cx"), s = a(r, "cy"), c = a(r, "r"), l = a(r, "startAngle"), u = a(r, "endAngle");
|
|
64
|
+
if (!o(i) || !o(s) || !o(c) || !o(l) || !o(u)) return null;
|
|
65
|
+
let d = (l + u) / 2;
|
|
66
|
+
return {
|
|
67
|
+
x: i + c * Math.cos(d),
|
|
68
|
+
y: s + c * Math.sin(d)
|
|
69
|
+
};
|
|
70
|
+
}
|
|
71
|
+
var h = r(p, m);
|
|
72
|
+
function g(e) {
|
|
73
|
+
return t(e, h);
|
|
74
|
+
}
|
|
75
|
+
//#endregion
|
|
76
|
+
export { p as buildEchartsPieOption, g as mountEchartsPie };
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
import { ECharts, EChartsCoreOption } from 'echarts/core';
|
|
2
|
+
import { ChartAnchor, ChartBaseRenderOptions, ChartHandle, ChartMountOptions, ChartRenderTheme } from '@bridge-ui/core/Domain';
|
|
3
|
+
/**
|
|
4
|
+
* Family-specific pieces of a plot.
|
|
5
|
+
*/
|
|
6
|
+
export type EchartsPlotFamily<Options extends ChartBaseRenderOptions> = {
|
|
7
|
+
/**
|
|
8
|
+
* Wires pointer events to `emit` (the active index, `null` on leave).
|
|
9
|
+
*/
|
|
10
|
+
attach: (chart: ECharts, emit: (index: null | number) => void, getOptions: () => Options) => void;
|
|
11
|
+
/**
|
|
12
|
+
* Builds the ECharts option.
|
|
13
|
+
*/
|
|
14
|
+
build: (options: Options) => EChartsCoreOption;
|
|
15
|
+
/**
|
|
16
|
+
* Tooltip anchor for the item at `index`.
|
|
17
|
+
*/
|
|
18
|
+
getAnchor: (chart: ECharts, options: Options, index: number) => null | ChartAnchor;
|
|
19
|
+
/**
|
|
20
|
+
* Emphasizes a legend item (`null` clears).
|
|
21
|
+
*/
|
|
22
|
+
highlight: (chart: ECharts, options: Options, id: null | string) => void;
|
|
23
|
+
/**
|
|
24
|
+
* Shows the pointer for keyboard navigation (`null` clears).
|
|
25
|
+
*/
|
|
26
|
+
showActive: (chart: ECharts, options: Options, index: null | number) => void;
|
|
27
|
+
};
|
|
28
|
+
/**
|
|
29
|
+
* Label style shared by axes and plot labels.
|
|
30
|
+
*/
|
|
31
|
+
export declare function labelStyle(theme: ChartRenderTheme): {
|
|
32
|
+
color: string;
|
|
33
|
+
fontSize: number;
|
|
34
|
+
fontFamily: string;
|
|
35
|
+
};
|
|
36
|
+
/**
|
|
37
|
+
* Item layout computed by ECharts for a single-series plot (pie slice
|
|
38
|
+
* sector, funnel trapezoid). Reads the internal model; `null` when missing.
|
|
39
|
+
*/
|
|
40
|
+
export declare function readItemLayout(chart: ECharts, dataIndex: number): null | Record<string, unknown>;
|
|
41
|
+
/**
|
|
42
|
+
* Mounts a plot into `options.element` and returns its handle.
|
|
43
|
+
*/
|
|
44
|
+
export declare function mountEchartsPlot<Options extends ChartBaseRenderOptions>(options: ChartMountOptions<Options>, family: EchartsPlotFamily<Options>): ChartHandle<Options>;
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
import { get as e, isFunction as t, isNil as n } from "es-toolkit/compat";
|
|
2
|
+
import { init as r } from "echarts/core";
|
|
3
|
+
//#region src/Utils/Charts/echarts/plot.ts
|
|
4
|
+
function i(e) {
|
|
5
|
+
return {
|
|
6
|
+
color: e.textColor,
|
|
7
|
+
fontSize: e.fontSize,
|
|
8
|
+
fontFamily: e.fontFamily
|
|
9
|
+
};
|
|
10
|
+
}
|
|
11
|
+
function a(r, i) {
|
|
12
|
+
let a = e(r, "getModel");
|
|
13
|
+
if (!t(a)) return null;
|
|
14
|
+
let o = a.call(r)?.getSeriesByIndex?.(0)?.getData?.()?.getItemLayout?.(i);
|
|
15
|
+
return n(o) ? null : o;
|
|
16
|
+
}
|
|
17
|
+
function o(e, t) {
|
|
18
|
+
let i = e, a = null, o = null, s = !1, c = (t) => {
|
|
19
|
+
s || t === o || (o = t, e.onActiveIndexChange(t));
|
|
20
|
+
}, l = () => n(a) ? i.width <= 0 || i.height <= 0 ? null : (a = r(e.element, null, {
|
|
21
|
+
renderer: "svg",
|
|
22
|
+
width: i.width,
|
|
23
|
+
height: i.height
|
|
24
|
+
}), t.attach(a, c, () => i), a.getZr().on("globalout", () => {
|
|
25
|
+
c(null);
|
|
26
|
+
}), a) : a, u = () => {
|
|
27
|
+
let e = l();
|
|
28
|
+
if (n(e)) return;
|
|
29
|
+
let { width: r, height: a } = i;
|
|
30
|
+
(e.getWidth() !== r || e.getHeight() !== a) && e.resize({
|
|
31
|
+
width: r,
|
|
32
|
+
height: a
|
|
33
|
+
}), e.setOption(t.build(i), { replaceMerge: ["series"] });
|
|
34
|
+
};
|
|
35
|
+
return u(), {
|
|
36
|
+
update: (e) => {
|
|
37
|
+
i = e, u();
|
|
38
|
+
},
|
|
39
|
+
destroy: () => {
|
|
40
|
+
a?.dispose(), a = null;
|
|
41
|
+
},
|
|
42
|
+
getAnchor: (e) => n(a) ? null : t.getAnchor(a, i, e),
|
|
43
|
+
highlight: (e) => {
|
|
44
|
+
n(a) || t.highlight(a, i, e);
|
|
45
|
+
},
|
|
46
|
+
setActiveIndex: (e) => {
|
|
47
|
+
n(a) || (s = !0, o = e, t.showActive(a, i, e), s = !1);
|
|
48
|
+
}
|
|
49
|
+
};
|
|
50
|
+
}
|
|
51
|
+
//#endregion
|
|
52
|
+
export { i as labelStyle, o as mountEchartsPlot, a as readItemLayout };
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { ScatterSeriesOption } from 'echarts/charts';
|
|
2
|
+
import { GridComponentOption, TooltipComponentOption } from 'echarts/components';
|
|
3
|
+
import { ComposeOption } from 'echarts/core';
|
|
4
|
+
import { ChartHandle, ChartMountOptions, ChartScatterRenderOptions } from '@bridge-ui/core/Domain';
|
|
5
|
+
type EChartsScatterOption = ComposeOption<GridComponentOption | ScatterSeriesOption | TooltipComponentOption>;
|
|
6
|
+
/**
|
|
7
|
+
* Builds the ECharts option for a scatter plot.
|
|
8
|
+
*/
|
|
9
|
+
export declare function buildEchartsScatterOption(options: ChartScatterRenderOptions): EChartsScatterOption;
|
|
10
|
+
/**
|
|
11
|
+
* Mounts a scatter plot (tree-shaken: scatter series only).
|
|
12
|
+
*/
|
|
13
|
+
export declare function mountEchartsScatter(options: ChartMountOptions<ChartScatterRenderOptions>): ChartHandle<ChartScatterRenderOptions>;
|
|
14
|
+
export {};
|
|
@@ -0,0 +1,161 @@
|
|
|
1
|
+
import { labelStyle as e, mountEchartsPlot as t } from "./plot.js";
|
|
2
|
+
import { get as n, isArray as r, isEmpty as i, isNil as a, isNumber as o } from "es-toolkit/compat";
|
|
3
|
+
import { findChartScatterRange as s, isChartValue as c, scaleChartBubbleSize as l } from "@bridge-ui/core/Domain";
|
|
4
|
+
import { ScatterChart as u } from "echarts/charts";
|
|
5
|
+
import { GridComponent as d, TooltipComponent as f } from "echarts/components";
|
|
6
|
+
import { use as p } from "echarts/core";
|
|
7
|
+
import { SVGRenderer as m } from "echarts/renderers";
|
|
8
|
+
//#region src/Utils/Charts/echarts/scatter.ts
|
|
9
|
+
p([
|
|
10
|
+
u,
|
|
11
|
+
d,
|
|
12
|
+
m,
|
|
13
|
+
f
|
|
14
|
+
]);
|
|
15
|
+
var h = .7;
|
|
16
|
+
function g(e, t, n) {
|
|
17
|
+
let i = r(n) ? n[2] : void 0, o = t.symbolSize ?? e.symbolSize;
|
|
18
|
+
return !c(i) || a(e.sizeDomain) ? o : l({
|
|
19
|
+
value: i,
|
|
20
|
+
range: e.bubbleSize,
|
|
21
|
+
domain: e.sizeDomain
|
|
22
|
+
});
|
|
23
|
+
}
|
|
24
|
+
function _(e) {
|
|
25
|
+
return i(e.colorRanges) ? e.data : e.data.map((t) => {
|
|
26
|
+
let n = c(t[1]) ? s(e, t[1]) : void 0;
|
|
27
|
+
return a(n) ? t : {
|
|
28
|
+
value: t,
|
|
29
|
+
itemStyle: { color: n.color }
|
|
30
|
+
};
|
|
31
|
+
});
|
|
32
|
+
}
|
|
33
|
+
function v(t, n) {
|
|
34
|
+
let { theme: r } = t;
|
|
35
|
+
return {
|
|
36
|
+
scale: !0,
|
|
37
|
+
min: n.min,
|
|
38
|
+
max: n.max,
|
|
39
|
+
name: n.label,
|
|
40
|
+
type: "value",
|
|
41
|
+
show: n.hidden !== !0,
|
|
42
|
+
splitNumber: n.tickCount,
|
|
43
|
+
nameTextStyle: e(r),
|
|
44
|
+
axisLine: { lineStyle: { color: r.axisColor } },
|
|
45
|
+
splitLine: {
|
|
46
|
+
show: n.grid ?? !0,
|
|
47
|
+
lineStyle: { color: r.gridColor }
|
|
48
|
+
},
|
|
49
|
+
axisLabel: {
|
|
50
|
+
...e(r),
|
|
51
|
+
formatter: a(n.formatTick) ? void 0 : (e) => n.formatTick?.(Number(e)) ?? String(e)
|
|
52
|
+
}
|
|
53
|
+
};
|
|
54
|
+
}
|
|
55
|
+
function y(e) {
|
|
56
|
+
let { theme: t } = e, n = Math.round(t.fontSize * 2.25), r = !a(e.sizeDomain);
|
|
57
|
+
return {
|
|
58
|
+
animation: e.animation,
|
|
59
|
+
tooltip: {
|
|
60
|
+
show: !0,
|
|
61
|
+
trigger: "item",
|
|
62
|
+
showContent: !1
|
|
63
|
+
},
|
|
64
|
+
yAxis: {
|
|
65
|
+
...v(e, e.yAxis),
|
|
66
|
+
nameLocation: "end"
|
|
67
|
+
},
|
|
68
|
+
textStyle: {
|
|
69
|
+
fontSize: t.fontSize,
|
|
70
|
+
fontFamily: t.fontFamily
|
|
71
|
+
},
|
|
72
|
+
xAxis: {
|
|
73
|
+
...v(e, e.xAxis),
|
|
74
|
+
nameGap: n,
|
|
75
|
+
nameLocation: "middle"
|
|
76
|
+
},
|
|
77
|
+
grid: {
|
|
78
|
+
left: 4,
|
|
79
|
+
outerBoundsMode: "same",
|
|
80
|
+
outerBoundsContain: "axisLabel",
|
|
81
|
+
top: a(e.yAxis.label) ? 12 : n,
|
|
82
|
+
right: r ? e.bubbleSize[1] / 2 : 12,
|
|
83
|
+
bottom: a(e.xAxis.label) ? 4 : n
|
|
84
|
+
},
|
|
85
|
+
series: e.series.map((t) => ({
|
|
86
|
+
id: t.id,
|
|
87
|
+
type: "scatter",
|
|
88
|
+
name: t.name,
|
|
89
|
+
data: _(t),
|
|
90
|
+
emphasis: {
|
|
91
|
+
scale: 1.2,
|
|
92
|
+
focus: "series"
|
|
93
|
+
},
|
|
94
|
+
symbolSize: (n) => g(e, t, n),
|
|
95
|
+
itemStyle: {
|
|
96
|
+
color: t.color,
|
|
97
|
+
opacity: r ? h : 1
|
|
98
|
+
}
|
|
99
|
+
}))
|
|
100
|
+
};
|
|
101
|
+
}
|
|
102
|
+
function b(e, t, n) {
|
|
103
|
+
let r = e.points.findIndex((e) => e.seriesIndex === t && e.dataIndex === n);
|
|
104
|
+
return r === -1 ? null : r;
|
|
105
|
+
}
|
|
106
|
+
var x = {
|
|
107
|
+
build: y,
|
|
108
|
+
highlight: (e, t, n) => {
|
|
109
|
+
e.dispatchAction({ type: "downplay" }), a(n) || e.dispatchAction({
|
|
110
|
+
seriesId: n,
|
|
111
|
+
type: "highlight"
|
|
112
|
+
});
|
|
113
|
+
},
|
|
114
|
+
attach: (e, t, r) => {
|
|
115
|
+
e.on("mouseover", (e) => {
|
|
116
|
+
let i = n(e, "seriesIndex"), a = n(e, "dataIndex");
|
|
117
|
+
o(i) && o(a) && t(b(r(), i, a));
|
|
118
|
+
}), e.on("mouseout", () => {
|
|
119
|
+
t(null);
|
|
120
|
+
});
|
|
121
|
+
},
|
|
122
|
+
showActive: (e, t, n) => {
|
|
123
|
+
e.dispatchAction({ type: "downplay" });
|
|
124
|
+
let r = a(n) ? void 0 : t.points[n];
|
|
125
|
+
if (a(r)) {
|
|
126
|
+
e.dispatchAction({ type: "hideTip" });
|
|
127
|
+
return;
|
|
128
|
+
}
|
|
129
|
+
let i = {
|
|
130
|
+
dataIndex: r.dataIndex,
|
|
131
|
+
seriesIndex: r.seriesIndex
|
|
132
|
+
};
|
|
133
|
+
e.dispatchAction({
|
|
134
|
+
...i,
|
|
135
|
+
type: "highlight"
|
|
136
|
+
}), e.dispatchAction({
|
|
137
|
+
...i,
|
|
138
|
+
type: "showTip"
|
|
139
|
+
});
|
|
140
|
+
},
|
|
141
|
+
getAnchor: (e, t, n) => {
|
|
142
|
+
let i = t.points[n], s = a(i) ? void 0 : t.series[i.seriesIndex];
|
|
143
|
+
if (a(i) || a(s)) return null;
|
|
144
|
+
let c = e.convertToPixel({ seriesIndex: i.seriesIndex }, [i.x, i.y]);
|
|
145
|
+
if (!r(c) || !o(c[0]) || !o(c[1])) return null;
|
|
146
|
+
let l = g(t, s, a(i.size) ? [i.x, i.y] : [
|
|
147
|
+
i.x,
|
|
148
|
+
i.y,
|
|
149
|
+
i.size
|
|
150
|
+
]);
|
|
151
|
+
return {
|
|
152
|
+
x: c[0],
|
|
153
|
+
y: c[1] - l / 2
|
|
154
|
+
};
|
|
155
|
+
}
|
|
156
|
+
};
|
|
157
|
+
function S(e) {
|
|
158
|
+
return t(e, x);
|
|
159
|
+
}
|
|
160
|
+
//#endregion
|
|
161
|
+
export { y as buildEchartsScatterOption, S as mountEchartsScatter };
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
export type { ChartCategoryColors, ChartClasses, ChartColorOverrides, ChartColorRangeOption, ChartColorValue, ChartCustomProps, ChartRootOwnProps, ChartSizeOverrides, ChartSlots, } from './chart.types';
|
|
2
|
+
export { default as ChartFrame } from './ChartFrame.vue';
|
|
3
|
+
export { CHART_INJECTION_KEY, useChartContext, type ChartBarSeriesRegistration, type ChartContextValue, type ChartFamily, type ChartLegendItem, type ChartLegendPosition, type ChartLineSeriesRegistration, type ChartScatterSeriesRegistration, type ChartSeriesRegistration, } from './chartInjectionKey';
|
|
4
|
+
export { useChartRegistry } from './useChartRegistry';
|
|
5
|
+
export { chartRootBridgeKeys, toChartLegendItems, useChartColors, useChartContextValue, useChartFrame, useChartPlot, useChartRoot, type ChartFrameState, type ChartRootMerged, type ChartRootName, type ChartRootState, } from './useChartRoot';
|
|
6
|
+
export { useChartSeries } from './useChartSeries';
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import e from "./ChartFrame.js";
|
|
2
|
+
import { CHART_INJECTION_KEY as t, useChartContext as n } from "./chartInjectionKey.js";
|
|
3
|
+
import { useChartRegistry as r } from "./useChartRegistry.js";
|
|
4
|
+
import { chartRootBridgeKeys as i, toChartLegendItems as a, useChartColors as o, useChartContextValue as s, useChartFrame as c, useChartPlot as l, useChartRoot as u } from "./useChartRoot.js";
|
|
5
|
+
import { useChartSeries as d } from "./useChartSeries.js";
|
|
6
|
+
export { t as CHART_INJECTION_KEY, e as ChartFrame, i as chartRootBridgeKeys, a as toChartLegendItems, o as useChartColors, n as useChartContext, s as useChartContextValue, c as useChartFrame, l as useChartPlot, r as useChartRegistry, u as useChartRoot, d as useChartSeries };
|
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
import { ChartCartesianRenderOptions, ChartCurve, ChartHandle, ChartMountOptions, ChartOrientation, ChartStep } from '@bridge-ui/core/Domain';
|
|
2
|
+
import { ChartCategoryColors, ChartRootOwnProps } from './chart.types';
|
|
3
|
+
import { ChartRootMerged } from './useChartRoot';
|
|
4
|
+
/**
|
|
5
|
+
* Props shared by `ChartLine` and `ChartBar` (each root exposes its subset).
|
|
6
|
+
*/
|
|
7
|
+
export type ChartCartesianOwnProps = ChartRootOwnProps & {
|
|
8
|
+
area?: boolean;
|
|
9
|
+
areaOpacity?: number;
|
|
10
|
+
categories: Date[] | string[];
|
|
11
|
+
categoryColors?: ChartCategoryColors;
|
|
12
|
+
curve?: ChartCurve;
|
|
13
|
+
formatDate?: (date: Date) => string;
|
|
14
|
+
formatLabel?: (value: number) => string;
|
|
15
|
+
labels?: boolean;
|
|
16
|
+
orientation?: ChartOrientation;
|
|
17
|
+
radius?: number;
|
|
18
|
+
showPoints?: boolean;
|
|
19
|
+
sparkline?: boolean;
|
|
20
|
+
stack?: string;
|
|
21
|
+
step?: ChartStep;
|
|
22
|
+
};
|
|
23
|
+
/**
|
|
24
|
+
* Merged cartesian props after registry defaults.
|
|
25
|
+
*/
|
|
26
|
+
export type ChartCartesianMerged = ChartRootMerged & Pick<ChartCartesianOwnProps, "area" | "step" | "curve" | "labels" | "radius" | "showPoints" | "areaOpacity" | "orientation">;
|
|
27
|
+
/**
|
|
28
|
+
* Line / bar root: series registry, category (or time) axis, stacks, and the
|
|
29
|
+
* shared chart frame.
|
|
30
|
+
*/
|
|
31
|
+
export declare function useChartCartesian(props: ChartCartesianOwnProps, { kind, mount, libDefaults, componentName, }: {
|
|
32
|
+
componentName: "ChartBar" | "ChartLine";
|
|
33
|
+
kind: "bar" | "line";
|
|
34
|
+
libDefaults: Partial<ChartCartesianMerged>;
|
|
35
|
+
mount: (options: ChartMountOptions<ChartCartesianRenderOptions>) => ChartHandle<ChartCartesianRenderOptions>;
|
|
36
|
+
}): {
|
|
37
|
+
frame: {
|
|
38
|
+
label: import('vue').ComputedRef<string>;
|
|
39
|
+
table: import('vue').ComputedRef<import('@bridge-ui/core/Domain').ChartTable>;
|
|
40
|
+
isEmpty: import('vue').ComputedRef<boolean>;
|
|
41
|
+
hostBind: import('vue').ComputedRef<import('vue').HTMLAttributes>;
|
|
42
|
+
plotBind: import('vue').ComputedRef<import('vue').HTMLAttributes>;
|
|
43
|
+
rootBind: import('vue').ComputedRef<import('vue').HTMLAttributes>;
|
|
44
|
+
liveBind: import('vue').ComputedRef<import('vue').HTMLAttributes>;
|
|
45
|
+
emptyBind: import('vue').ComputedRef<import('vue').HTMLAttributes>;
|
|
46
|
+
isLoading: import('vue').ComputedRef<boolean>;
|
|
47
|
+
tableBind: import('vue').ComputedRef<import('vue').HTMLAttributes>;
|
|
48
|
+
centerBind: import('vue').ComputedRef<import('vue').HTMLAttributes>;
|
|
49
|
+
loadingBind: import('vue').ComputedRef<import('vue').HTMLAttributes>;
|
|
50
|
+
announcement: import('vue').ComputedRef<string>;
|
|
51
|
+
emptyMessage: import('vue').ComputedRef<string>;
|
|
52
|
+
rootRef: import('vue').ShallowRef<HTMLDivElement | null, HTMLDivElement | null>;
|
|
53
|
+
plotRef: import('vue').ShallowRef<HTMLDivElement | null, HTMLDivElement | null>;
|
|
54
|
+
hostRef: import('vue').ShallowRef<HTMLDivElement | null, HTMLDivElement | null>;
|
|
55
|
+
};
|
|
56
|
+
merged: import('vue').ComputedRef<ChartCartesianMerged>;
|
|
57
|
+
context: import('vue').ComputedRef<import('./chartInjectionKey').ChartContextValue>;
|
|
58
|
+
options: import('vue').ComputedRef<ChartCartesianRenderOptions | null>;
|
|
59
|
+
};
|