vue-data-ui 3.25.8 → 3.25.10
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/{BaseScanner-DZvpgOjM.js → BaseScanner-Dzc8VT3j.js} +6 -3
- package/dist/{PackageVersion-ekRvV3aF.js → PackageVersion-CZZayD-D.js} +1 -1
- package/dist/{PenAndPaper-KFzKlvbi.js → PenAndPaper-Cd3nItcO.js} +3 -3
- package/dist/{SlicerPreview-B6iHOC9L.js → SlicerPreview-Ccss7Vsq.js} +2 -2
- package/dist/{SparkTooltip-C-Y-mDrc.js → SparkTooltip-L3SliZbR.js} +1 -1
- package/dist/{UserOptions-2x4VklMW.js → UserOptions-qo_Tsqci.js} +1 -1
- package/dist/components/vue-ui-3d-bar.js +1 -1
- package/dist/components/vue-ui-age-pyramid.js +1 -1
- package/dist/components/vue-ui-annotator.js +1 -1
- package/dist/components/vue-ui-bullet.js +1 -1
- package/dist/components/vue-ui-bump.js +1 -1
- package/dist/components/vue-ui-candlestick.js +1 -1
- package/dist/components/vue-ui-carousel-table.js +1 -1
- package/dist/components/vue-ui-chestnut.js +1 -1
- package/dist/components/vue-ui-chord.js +1 -1
- package/dist/components/vue-ui-circle-pack.js +1 -1
- package/dist/components/vue-ui-cursor.js +1 -1
- package/dist/components/vue-ui-dag.js +1 -1
- package/dist/components/vue-ui-dashboard.js +1 -1
- package/dist/components/vue-ui-digits.js +1 -1
- package/dist/components/vue-ui-donut-evolution.js +1 -1
- package/dist/components/vue-ui-donut.js +1 -1
- package/dist/components/vue-ui-dumbbell.js +1 -1
- package/dist/components/vue-ui-flow.js +1 -1
- package/dist/components/vue-ui-funnel.js +1 -1
- package/dist/components/vue-ui-galaxy.js +1 -1
- package/dist/components/vue-ui-gauge.js +1 -1
- package/dist/components/vue-ui-geo.js +1 -1
- package/dist/components/vue-ui-gizmo.js +1 -1
- package/dist/components/vue-ui-heatmap.js +1 -1
- package/dist/components/vue-ui-hill.js +1 -1
- package/dist/components/vue-ui-history-plot.js +1 -1
- package/dist/components/vue-ui-horizontal-bar.js +1 -1
- package/dist/components/vue-ui-kpi.js +1 -1
- package/dist/components/vue-ui-label.js +1 -1
- package/dist/components/vue-ui-molecule.js +1 -1
- package/dist/components/vue-ui-mood-radar.js +1 -1
- package/dist/components/vue-ui-nested-donuts.js +1 -1
- package/dist/components/vue-ui-onion.js +1 -1
- package/dist/components/vue-ui-parallel-coordinate-plot.js +1 -1
- package/dist/components/vue-ui-quadrant.js +1 -1
- package/dist/components/vue-ui-quick-chart.js +1 -1
- package/dist/components/vue-ui-radar.js +1 -1
- package/dist/components/vue-ui-relation-circle.js +1 -1
- package/dist/components/vue-ui-ridgeline.js +1 -1
- package/dist/components/vue-ui-rings.js +1 -1
- package/dist/components/vue-ui-scatter.js +1 -1
- package/dist/components/vue-ui-skeleton.js +1 -1
- package/dist/components/vue-ui-spark-trend.js +1 -1
- package/dist/components/vue-ui-sparkbar.js +1 -1
- package/dist/components/vue-ui-sparkgauge.js +1 -1
- package/dist/components/vue-ui-sparkhistogram.js +1 -1
- package/dist/components/vue-ui-sparkline.js +1 -1
- package/dist/components/vue-ui-sparkstackbar.js +1 -1
- package/dist/components/vue-ui-stackbar.js +1 -1
- package/dist/components/vue-ui-stackline.js +1 -1
- package/dist/components/vue-ui-strip-plot.js +1 -1
- package/dist/components/vue-ui-table-heatmap.js +1 -1
- package/dist/components/vue-ui-table-sparkline.js +1 -1
- package/dist/components/vue-ui-table.js +1 -1
- package/dist/components/vue-ui-thermometer.js +1 -1
- package/dist/components/vue-ui-timer.js +1 -1
- package/dist/components/vue-ui-tiremarks.js +1 -1
- package/dist/components/vue-ui-treemap.js +1 -1
- package/dist/components/vue-ui-vertical-bar.js +1 -1
- package/dist/components/vue-ui-waffle.js +1 -1
- package/dist/components/vue-ui-wheel.js +1 -1
- package/dist/components/vue-ui-word-cloud.js +1 -1
- package/dist/components/vue-ui-world.js +1 -1
- package/dist/components/vue-ui-xy-canvas.js +1 -1
- package/dist/components/vue-ui-xy.js +1 -1
- package/dist/composables.js +1 -1
- package/dist/{dom-to-png-C6cQJ5Hq.js → dom-to-png-BR4imuKV.js} +1 -1
- package/dist/{geoProjections-CEo3dVaL.js → geoProjections-BYthUA8l.js} +2 -2
- package/dist/{img-DhGApYG0.js → img-BkMKbWsI.js} +1 -1
- package/dist/{package-C4XeEHJx.js → package-CYtJq7s7.js} +1 -1
- package/dist/{pdf-Di5yPEw9.js → pdf-BSOs_GZz.js} +1 -1
- package/dist/{render-common-CQUp12xB.js → render-common-CpHpPc5s.js} +1 -1
- package/dist/ssr/vue-ui-donut.js +1 -1
- package/dist/ssr/vue-ui-xy.js +1 -1
- package/dist/ssr.js +2 -2
- package/dist/style.css +1 -1
- package/dist/types/utils.d.ts +5 -5
- package/dist/types/vue-data-ui.d.ts +5 -5
- package/dist/{usePrinter-DISD7q5m.js → usePrinter-hohanNCX.js} +4 -4
- package/dist/{useTooltipPosition-DifeoeQW.js → useTooltipPosition-BCrtQa9H.js} +1 -1
- package/dist/{vue-data-ui-BChCkqtW.js → vue-data-ui-ChB3aXCO.js} +65 -65
- package/dist/vue-data-ui.js +66 -66
- package/dist/{vue-ui-3d-bar-BkVOy4Y_.js → vue-ui-3d-bar-DcXbkO19.js} +5 -5
- package/dist/{vue-ui-age-pyramid-1_yQ64LX.js → vue-ui-age-pyramid-Cnaxt9NI.js} +263 -251
- package/dist/{vue-ui-annotator-BO5ihHOB.js → vue-ui-annotator-BLYRy--7.js} +12 -12
- package/dist/{vue-ui-bullet-BF1FeBst.js → vue-ui-bullet-DOfD2TSb.js} +4 -4
- package/dist/{vue-ui-bump-ZtKya76Y.js → vue-ui-bump-DL2lDZbE.js} +3 -3
- package/dist/{vue-ui-candlestick-P-clTYIt.js → vue-ui-candlestick-ijujiVJ5.js} +453 -441
- package/dist/{vue-ui-carousel-table-BVS-4A3h.js → vue-ui-carousel-table-DFtWb2-C.js} +3 -3
- package/dist/{vue-ui-chestnut-DHOIbpib.js → vue-ui-chestnut-BGXr0s08.js} +5 -5
- package/dist/{vue-ui-chord-CX_Mc3Fp.js → vue-ui-chord-DgBzLfbv.js} +5 -5
- package/dist/{vue-ui-circle-pack-Caqvblsl.js → vue-ui-circle-pack-88qDJbt0.js} +494 -482
- package/dist/{vue-ui-cursor-BFF4tWUb.js → vue-ui-cursor-CcEB7Ypx.js} +1 -1
- package/dist/{vue-ui-dag-CtG3HUh4.js → vue-ui-dag-BeoFmTDs.js} +6 -6
- package/dist/{vue-ui-dashboard-DASHNFPT.js → vue-ui-dashboard-NOVcGMCa.js} +63 -63
- package/dist/{vue-ui-digits-BQWHzntO.js → vue-ui-digits-BGmT7H1z.js} +1 -1
- package/dist/{vue-ui-donut-DHP_lm0m.js → vue-ui-donut-CP7ilveE.js} +838 -826
- package/dist/{vue-ui-donut-vbqlIlij.js → vue-ui-donut-CtXzuWzy.js} +1 -1
- package/dist/{vue-ui-donut-evolution-Cio3lNLz.js → vue-ui-donut-evolution-D_-y7BZi.js} +6 -6
- package/dist/{vue-ui-dumbbell-C2lQhCfq.js → vue-ui-dumbbell-BR1Cn4wm.js} +4 -4
- package/dist/vue-ui-flow-Bm6TgD8I.js +1229 -0
- package/dist/{vue-ui-funnel-DDncfHgI.js → vue-ui-funnel-CQ0-9nZT.js} +3 -3
- package/dist/vue-ui-galaxy-DUto0BOw.js +1097 -0
- package/dist/{vue-ui-gauge-OQbET2bh.js → vue-ui-gauge-B6pyA6Jh.js} +4 -4
- package/dist/{vue-ui-geo-Ddw87hVT.js → vue-ui-geo-BlG7s8MH.js} +408 -396
- package/dist/{vue-ui-gizmo-DJVWEvWS.js → vue-ui-gizmo-BlyehpxE.js} +2 -2
- package/dist/{vue-ui-heatmap-BKG4xt6j.js → vue-ui-heatmap-DqbWkKAE.js} +405 -393
- package/dist/{vue-ui-hill-BAruBiw6.js → vue-ui-hill-CGE0NdNk.js} +7 -7
- package/dist/vue-ui-history-plot-CaxqIiTb.js +1710 -0
- package/dist/{vue-ui-horizontal-bar-CXT7-P_o.js → vue-ui-horizontal-bar-Ykwe4M1n.js} +401 -389
- package/dist/{vue-ui-kpi-uOGX20hs.js → vue-ui-kpi-B7Nfet0o.js} +1 -1
- package/dist/{vue-ui-label-C1UAzvAu.js → vue-ui-label-Cs4ZlAqr.js} +10 -10
- package/dist/{vue-ui-molecule-BcA064dR.js → vue-ui-molecule-DWq98OSc.js} +347 -335
- package/dist/{vue-ui-mood-radar-CXtC0IqT.js → vue-ui-mood-radar-DDfimq6c.js} +5 -5
- package/dist/{vue-ui-nested-donuts-BFE0oXF_.js → vue-ui-nested-donuts-Bt-r6uXS.js} +360 -348
- package/dist/vue-ui-onion-D8gOhQHP.js +1247 -0
- package/dist/{vue-ui-parallel-coordinate-plot-5kKVnNmE.js → vue-ui-parallel-coordinate-plot-BbPbJiiu.js} +387 -375
- package/dist/{vue-ui-quadrant-BPg8L6Sw.js → vue-ui-quadrant-BJlf3qW1.js} +418 -406
- package/dist/{vue-ui-quick-chart-DQ_rhjqc.js → vue-ui-quick-chart-Cb8x00-X.js} +550 -538
- package/dist/{vue-ui-radar-C65wD7cW.js → vue-ui-radar-30PF-qqr.js} +330 -318
- package/dist/{vue-ui-relation-circle-nZaZcCh1.js → vue-ui-relation-circle-CRiC4PnL.js} +4 -4
- package/dist/{vue-ui-ridgeline-Bsi2hN14.js → vue-ui-ridgeline-CSs4Tq_c.js} +4 -4
- package/dist/{vue-ui-rings-DkCzxDyQ.js → vue-ui-rings-BqRWK5rY.js} +321 -309
- package/dist/{vue-ui-scatter-V01qkcN8.js → vue-ui-scatter-Bsh6jbdW.js} +584 -572
- package/dist/{vue-ui-skeleton-BgYtv_I2.js → vue-ui-skeleton-DbPSsEKV.js} +1 -1
- package/dist/{vue-ui-spark-trend-Dm1OyGyr.js → vue-ui-spark-trend--8QokOII.js} +2 -2
- package/dist/{vue-ui-sparkbar-D3hChHHS.js → vue-ui-sparkbar-DkX9Demg.js} +2 -2
- package/dist/{vue-ui-sparkgauge-CAeJapmG.js → vue-ui-sparkgauge-Ci_xD5B7.js} +2 -2
- package/dist/{vue-ui-sparkhistogram-ZIo_Vg7F.js → vue-ui-sparkhistogram-Qe3ZCPRd.js} +2 -2
- package/dist/{vue-ui-sparkline-BjvSeM83.js → vue-ui-sparkline-BwldgOYW.js} +2 -2
- package/dist/vue-ui-sparkstackbar-Divd0hL_.js +750 -0
- package/dist/vue-ui-stackbar-BWPSGzN-.js +2369 -0
- package/dist/vue-ui-stackline-BQroSnwZ.js +2483 -0
- package/dist/vue-ui-strip-plot-BCUPHkCp.js +1752 -0
- package/dist/{vue-ui-table-C8cvK-x_.js → vue-ui-table-DJeXLYly.js} +2 -2
- package/dist/{vue-ui-table-heatmap-BSUab4fG.js → vue-ui-table-heatmap-D5F5bLx5.js} +2 -2
- package/dist/{vue-ui-table-sparkline-Dam9BFsU.js → vue-ui-table-sparkline-DCm8S2uK.js} +2 -2
- package/dist/{vue-ui-thermometer-zyBeCINd.js → vue-ui-thermometer-xu4R8d2f.js} +4 -4
- package/dist/{vue-ui-timer-CDXczagK.js → vue-ui-timer-i_3bMu3h.js} +1 -1
- package/dist/{vue-ui-tiremarks-CG8LNC9c.js → vue-ui-tiremarks-DGuMI0yH.js} +4 -4
- package/dist/{vue-ui-treemap-DfDRwoZc.js → vue-ui-treemap-Bvl7elni.js} +311 -299
- package/dist/vue-ui-waffle-CVuYg0yU.js +1633 -0
- package/dist/{vue-ui-wheel-DDJIPE_z.js → vue-ui-wheel-DqHD09iA.js} +4 -4
- package/dist/{vue-ui-word-cloud-DBOXRp-e.js → vue-ui-word-cloud-BDCuTQ8Q.js} +385 -372
- package/dist/{vue-ui-world-CiIyp7WH.js → vue-ui-world-B0oVwEDj.js} +474 -462
- package/dist/{vue-ui-xy-s_IZ573M.js → vue-ui-xy-BJJi0E4D.js} +1 -1
- package/dist/{vue-ui-xy-AGYE0Vsz.js → vue-ui-xy-D1dPd68D.js} +1447 -1432
- package/dist/{vue-ui-xy-canvas-MOMyUdJg.js → vue-ui-xy-canvas-R2xbgDOy.js} +523 -511
- package/package.json +3 -3
- package/dist/vue-ui-flow-Dmnz4LCl.js +0 -1217
- package/dist/vue-ui-galaxy-Dw7TyOH0.js +0 -1085
- package/dist/vue-ui-history-plot-BKUg8Gz_.js +0 -1698
- package/dist/vue-ui-onion-DhedgEnV.js +0 -1235
- package/dist/vue-ui-sparkstackbar-DGQcpWK4.js +0 -738
- package/dist/vue-ui-stackbar-D0qmFn5Y.js +0 -2355
- package/dist/vue-ui-stackline-BBtEVl9V.js +0 -2469
- package/dist/vue-ui-strip-plot-CkU-nCt4.js +0 -1740
- package/dist/vue-ui-waffle-D6_cGi1-.js +0 -1621
|
@@ -1,25 +1,25 @@
|
|
|
1
1
|
import { t as e } from "./rolldown-runtime-Dy4uBu1J.js";
|
|
2
|
-
import { $ as t, Ct as n, D as r, Lt as i, Ot as a, Pt as o, S as s, Ut as c, Vt as l, X as u, Yt as ee,
|
|
3
|
-
import { n as
|
|
4
|
-
import { n as
|
|
5
|
-
import { t as
|
|
6
|
-
import { t as
|
|
7
|
-
import { n as
|
|
8
|
-
import { t as
|
|
9
|
-
import { t as
|
|
10
|
-
import { t as
|
|
11
|
-
import { n as
|
|
12
|
-
import { t as
|
|
13
|
-
import { a as d, c as
|
|
14
|
-
import { t as
|
|
15
|
-
import { t as
|
|
16
|
-
import { t as
|
|
17
|
-
import { t as
|
|
18
|
-
import { t as
|
|
19
|
-
import { t as
|
|
20
|
-
import { t as
|
|
21
|
-
import { t as
|
|
22
|
-
import { Teleport as
|
|
2
|
+
import { $ as t, Ct as n, D as r, Lt as i, Ot as a, Pt as o, S as s, Ut as c, Vt as l, X as u, Yt as ee, Z as te, Zt as ne, _ as re, bt as ie, i as ae, jt as oe, lt as se, nt as ce, o as le, pt as ue, q as de, w as fe } from "./lib-Dql7cqyA.js";
|
|
3
|
+
import { n as pe, t as me } from "./useHints-Dq_w2E8B.js";
|
|
4
|
+
import { n as he, r as ge, t as _e } from "./useTimeLabels-d2f-W1L4.js";
|
|
5
|
+
import { t as ve } from "./useConfig-D32D002m.js";
|
|
6
|
+
import { t as ye } from "./usePrinter-hohanNCX.js";
|
|
7
|
+
import { n as be, t as xe } from "./BaseScanner-Dzc8VT3j.js";
|
|
8
|
+
import { t as Se } from "./useNestedProp-Chvyfpl-.js";
|
|
9
|
+
import { t as Ce } from "./useThemeCheck-C43Tcqmk.js";
|
|
10
|
+
import { t as we } from "./img-BkMKbWsI.js";
|
|
11
|
+
import { n as Te } from "./Title-CPHi-evi.js";
|
|
12
|
+
import { t as Ee } from "./_plugin-vue_export-helper-B3ysoDQm.js";
|
|
13
|
+
import { a as d, c as De, i as Oe, l as ke, n as Ae, o as je, r as Me, s as Ne, t as Pe } from "./useResponsive-ZtArZtUf.js";
|
|
14
|
+
import { t as Fe } from "./BaseIcon-D8R6_sKH.js";
|
|
15
|
+
import { t as Ie } from "./SlicerPreview-Ccss7Vsq.js";
|
|
16
|
+
import { t as Le } from "./vue-ui-accordion-DmkL8A59.js";
|
|
17
|
+
import { t as Re } from "./BaseLegendToggle-CXQrLjd-.js";
|
|
18
|
+
import { t as ze } from "./useUserOptionState-DK-_1ddE.js";
|
|
19
|
+
import { t as Be } from "./useChartAccessibility-DYqac8yF.js";
|
|
20
|
+
import { t as Ve } from "./Legend-X4kF4PvW.js";
|
|
21
|
+
import { t as He } from "./vue_ui_xy_canvas-Cb6dg3eK.js";
|
|
22
|
+
import { Teleport as Ue, computed as f, createBlock as p, createCommentVNode as m, createElementBlock as We, createElementVNode as h, createSlots as Ge, createTextVNode as Ke, createVNode as qe, defineAsyncComponent as Je, guardReactiveProps as g, mergeProps as Ye, nextTick as Xe, normalizeClass as Ze, normalizeProps as _, normalizeStyle as Qe, onBeforeUnmount as $e, onMounted as et, openBlock as v, ref as y, renderSlot as b, resolveDynamicComponent as tt, shallowRef as nt, toDisplayString as rt, toRefs as it, unref as x, useSlots as at, watch as S, watchEffect as ot, withCtx as C } from "vue";
|
|
23
23
|
//#region src/components/vue-ui-xy-canvas.vue
|
|
24
24
|
var st = /* @__PURE__ */ e({ default: () => yt }), ct = ["id"], lt = ["id"], ut = {
|
|
25
25
|
class: "sr-only",
|
|
@@ -38,7 +38,7 @@ var st = /* @__PURE__ */ e({ default: () => yt }), ct = ["id"], lt = ["id"], ut
|
|
|
38
38
|
}, mt = ["id"], ht = ["onClick"], gt = {
|
|
39
39
|
key: 4,
|
|
40
40
|
class: "vue-data-ui-watermark"
|
|
41
|
-
}, _t = { key: 0 }, vt = { key: 1 }, yt = /*#__PURE__*/
|
|
41
|
+
}, _t = { key: 0 }, vt = { key: 1 }, yt = /*#__PURE__*/ Ee({
|
|
42
42
|
__name: "vue-ui-xy-canvas",
|
|
43
43
|
props: {
|
|
44
44
|
dataset: {
|
|
@@ -63,17 +63,17 @@ var st = /* @__PURE__ */ e({ default: () => yt }), ct = ["id"], lt = ["id"], ut
|
|
|
63
63
|
"selectX",
|
|
64
64
|
"copyAlt"
|
|
65
65
|
],
|
|
66
|
-
setup(e, { expose:
|
|
67
|
-
let yt = Je(() => import("./Tooltip-hhrkQ3Lk.js")), bt = Je(() => import("./DataTable-oiM9uWrQ.js")), xt = Je(() => import("./UserOptions-
|
|
66
|
+
setup(e, { expose: Ee, emit: st }) {
|
|
67
|
+
let yt = Je(() => import("./Tooltip-hhrkQ3Lk.js")), bt = Je(() => import("./DataTable-oiM9uWrQ.js")), xt = Je(() => import("./UserOptions-qo_Tsqci.js").then((e) => e.n)), St = Je(() => import("./NonSvgPenAndPaper-DFXjpRyl.js")), Ct = Je(() => import("./BaseDraggableDialog-Gm4Q30j0.js").then((e) => e.n)), { vue_ui_xy_canvas: wt } = ve(), { isThemeValid: Tt, warnInvalidTheme: Et } = Ce(), w = e, Dt = y(de()), Ot = y(null), kt = y(null), T = y(null), E = y(1), At = y(1), jt = y(!1), D = y(null), Mt = y(""), Nt = y(null), O = y([]), Pt = y(1), k = y(!0), A = y(!0), Ft = y(null), It = y(0), Lt = y(!1), Rt = y(null), zt = y(null), Bt = y(null), Vt = y(null), Ht = y(0), Ut = y(0), Wt = y(0), Gt = y(null), Kt = y(!1), qt = y(null), Jt = y(null), Yt = y(!1), Xt = y(!1), Zt = y(!1), j = y(null), Qt = y(!1), $t = y(!1), en = y(!1), M = y(null), tn = y({
|
|
68
68
|
x: 0,
|
|
69
69
|
y: 0
|
|
70
|
-
}), N = f(() => Array.isArray(
|
|
71
|
-
|
|
70
|
+
}), N = f(() => Array.isArray(fn.value) && fn.value.length > 0), nn = st, rn = at(), P = y(vn()), F = f(() => P.value.userOptions), I = f(() => P.value.style.chart.tooltip), L = f(() => P.value.style.chart.grid.y.verticalLines), an = f(() => P.value.style.chart.grid.x.horizontalLines), R = f(() => P.value.style.chart.grid.y.axisLabels), z = f(() => P.value.style.chart.grid.x.timeLabels), B = f(() => P.value.style.chart.grid), V = f(() => P.value.style.chart.dataLabels), H = f(() => P.value.style.chart);
|
|
71
|
+
pe({
|
|
72
72
|
config: () => P.value,
|
|
73
|
-
dataset: () =>
|
|
73
|
+
dataset: () => w.dataset,
|
|
74
74
|
component: "VueUiXyCanvas",
|
|
75
75
|
rules: [
|
|
76
|
-
|
|
76
|
+
me.emptyArray,
|
|
77
77
|
{
|
|
78
78
|
test: (e) => e.every((e) => e.series.length < 300),
|
|
79
79
|
message: [
|
|
@@ -92,21 +92,21 @@ var st = /* @__PURE__ */ e({ default: () => yt }), ct = ["id"], lt = ["id"], ut
|
|
|
92
92
|
}
|
|
93
93
|
]
|
|
94
94
|
});
|
|
95
|
-
let
|
|
95
|
+
let on = f(() => {
|
|
96
96
|
let e = H.value.title.text || "XY chart", t = X.value.end - X.value.start;
|
|
97
|
-
return `${e}. ${Y.value.filter((e) => !
|
|
98
|
-
}),
|
|
97
|
+
return `${e}. ${Y.value.filter((e) => !O.value.includes(e.absoluteIndex)).length} series. ${t} visible data points.`;
|
|
98
|
+
}), sn = f(() => {
|
|
99
99
|
if (M.value === null) return "";
|
|
100
100
|
let e = M.value + X.value.start;
|
|
101
|
-
return `${z.value.values.slice(X.value.start, X.value.end)[M.value] ? I.value.useDefaultTimeFormat ? $.value.slice(X.value.start, X.value.end)[M.value]?.text :
|
|
101
|
+
return `${z.value.values.slice(X.value.start, X.value.end)[M.value] ? I.value.useDefaultTimeFormat ? $.value.slice(X.value.start, X.value.end)[M.value]?.text : lr.value[M.value]?.text : $.value[e]?.text ?? `Point ${e + 1}`}. ${Y.value.filter((e) => !O.value.includes(e.absoluteIndex)).map((e) => {
|
|
102
102
|
let t = e.series[M.value], n = t?.value ?? t ?? null;
|
|
103
103
|
return `${e.name}: ${n}`;
|
|
104
104
|
}).join(". ")}.`;
|
|
105
|
-
}),
|
|
105
|
+
}), cn = f(() => F.value.useCursorPointer), ln = f(() => P.value.debug);
|
|
106
106
|
et(() => {
|
|
107
|
-
|
|
107
|
+
rn["chart-background"] && ln.value && console.warn("VueUiXyCanvas does not support the #chart-background slot.");
|
|
108
108
|
});
|
|
109
|
-
let
|
|
109
|
+
let un = f(() => ne({
|
|
110
110
|
defaultConfig: {
|
|
111
111
|
userOptions: { show: !1 },
|
|
112
112
|
table: { show: !1 },
|
|
@@ -140,11 +140,11 @@ var st = /* @__PURE__ */ e({ default: () => yt }), ct = ["id"], lt = ["id"], ut
|
|
|
140
140
|
} }
|
|
141
141
|
},
|
|
142
142
|
userConfig: P.value.skeletonConfig ?? {}
|
|
143
|
-
})), { loading:
|
|
144
|
-
...it(
|
|
143
|
+
})), { loading: dn, FINAL_DATASET: fn } = be({
|
|
144
|
+
...it(w),
|
|
145
145
|
FINAL_CONFIG: P,
|
|
146
|
-
prepareConfig:
|
|
147
|
-
skeletonDataset:
|
|
146
|
+
prepareConfig: vn,
|
|
147
|
+
skeletonDataset: w.config?.skeletonDataset ?? [{
|
|
148
148
|
name: "",
|
|
149
149
|
series: [
|
|
150
150
|
0,
|
|
@@ -182,119 +182,131 @@ var st = /* @__PURE__ */ e({ default: () => yt }), ct = ["id"], lt = ["id"], ut
|
|
|
182
182
|
type: "bar",
|
|
183
183
|
color: "#AAAAAA"
|
|
184
184
|
}],
|
|
185
|
-
skeletonConfig:
|
|
185
|
+
skeletonConfig: ne({
|
|
186
186
|
defaultConfig: P.value,
|
|
187
|
-
userConfig:
|
|
187
|
+
userConfig: un.value
|
|
188
188
|
})
|
|
189
|
-
}), { userOptionsVisible:
|
|
190
|
-
function hn() {
|
|
191
|
-
pn(!0);
|
|
192
|
-
}
|
|
189
|
+
}), { userOptionsVisible: pn, setUserOptionsVisibility: mn, keepUserOptionState: hn } = ze({ config: P.value }), { svgRef: U } = Be({ config: H.value.title });
|
|
193
190
|
function gn() {
|
|
194
|
-
|
|
191
|
+
mn(!0);
|
|
192
|
+
}
|
|
193
|
+
function _n() {
|
|
194
|
+
mn(!1), nn("selectX", {
|
|
195
195
|
dataset: null,
|
|
196
196
|
index: null,
|
|
197
197
|
indexLabel: null
|
|
198
|
-
}),
|
|
198
|
+
}), D.value = null;
|
|
199
199
|
}
|
|
200
|
-
function
|
|
201
|
-
let e =
|
|
202
|
-
userConfig:
|
|
200
|
+
function vn() {
|
|
201
|
+
let e = Se({
|
|
202
|
+
userConfig: w.config,
|
|
203
203
|
defaultConfig: wt
|
|
204
204
|
}), t = {}, n = e.theme;
|
|
205
205
|
if (n) {
|
|
206
206
|
if (!Tt.value(e)) Et(e), t = e;
|
|
207
207
|
else {
|
|
208
|
-
let r =
|
|
209
|
-
userConfig:
|
|
208
|
+
let r = Se({
|
|
209
|
+
userConfig: He[n] || w.config,
|
|
210
210
|
defaultConfig: e
|
|
211
211
|
});
|
|
212
212
|
t = {
|
|
213
|
-
...
|
|
214
|
-
userConfig:
|
|
213
|
+
...Se({
|
|
214
|
+
userConfig: w.config,
|
|
215
215
|
defaultConfig: r
|
|
216
216
|
}),
|
|
217
217
|
customPalette: e.customPalette.length ? e.customPalette : ee[n] || i
|
|
218
218
|
};
|
|
219
219
|
}
|
|
220
220
|
} else t = e;
|
|
221
|
-
return
|
|
221
|
+
return w.config && ie(w.config, "style.chart.grid.y.timeLabels") && (console.warn("VueUiXyCanvas: you are using the deprecated config.style.chart.grid.y.timeLabels. It is recommended to move this configuration to config.style.chart.grid.x.timeLabels."), t.style.chart.grid.x.timeLabels = Se({
|
|
222
222
|
defaultConfig: t.style.chart.grid.x.timeLabels,
|
|
223
|
-
userConfig:
|
|
223
|
+
userConfig: w.config.style.chart.grid.y.timeLabels
|
|
224
224
|
})), t;
|
|
225
225
|
}
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
226
|
+
function yn(e) {
|
|
227
|
+
let t = te(e);
|
|
228
|
+
return t?.style?.chart && delete t.style.chart.tooltip, JSON.stringify(t);
|
|
229
|
+
}
|
|
230
|
+
let bn = yn(w.config);
|
|
231
|
+
S(() => w.config, (e, t) => {
|
|
232
|
+
let n = yn(e), r = n !== bn;
|
|
233
|
+
bn = n;
|
|
234
|
+
let i = vn();
|
|
235
|
+
if (!r) {
|
|
236
|
+
P.value.style.chart.tooltip = i.style.chart.tooltip, W.value.showTooltip = P.value.style.chart.tooltip.show;
|
|
237
|
+
return;
|
|
238
|
+
}
|
|
239
|
+
dn.value || (P.value = i), pn.value = !F.value.showOnChartHover, Lr(), Ht.value += 1, Ut.value += 1, Wt.value += 1, W.value.showTable = P.value.table.show, W.value.showDataLabels = V.value.show, W.value.stacked = H.value.stacked, W.value.showTooltip = I.value.show;
|
|
240
|
+
}, { deep: !0 }), S(() => w.dataset, async (e) => {
|
|
241
|
+
Array.isArray(e) && e.length !== 0 && (await Xe(), U.value && !T.value && (T.value = U.value.getContext("2d", { willReadFrequently: !0 })), k.value = !0, A.value = !0, await Un(), Qn(), Ht.value += 1, Ut.value += 1, Wt.value += 1);
|
|
230
242
|
}, { deep: !0 });
|
|
231
|
-
let
|
|
243
|
+
let xn = y(H.value.aspectRatio), { isPrinting: Sn, isImaging: Cn, generatePdf: wn, generateImage: Tn } = ye({
|
|
232
244
|
elementId: `xy_canvas_${Dt.value}`,
|
|
233
245
|
fileName: H.value.title.text || "vue-ui-xy-canvas",
|
|
234
246
|
options: F.value.print
|
|
235
|
-
}), W =
|
|
247
|
+
}), W = y({
|
|
236
248
|
showTable: P.value.table.show,
|
|
237
249
|
showDataLabels: V.value.show,
|
|
238
250
|
stacked: H.value.stacked,
|
|
239
251
|
showTooltip: I.value.show
|
|
240
252
|
});
|
|
241
|
-
function
|
|
253
|
+
function En(e) {
|
|
242
254
|
Lt.value = e, It.value += 1;
|
|
243
255
|
}
|
|
244
|
-
let
|
|
245
|
-
function
|
|
246
|
-
j.value = e,
|
|
256
|
+
let Dn = f(() => fe(P.value.customPalette)), On = f(() => O.value.length === J.value.length), G = f(() => J.value ? Math.max(...J.value.filter((e, t) => On.value ? !0 : !O.value.includes(e.absoluteIndex)).map((e) => e.series.length)) : 0);
|
|
257
|
+
function kn(e) {
|
|
258
|
+
j.value = e, br();
|
|
247
259
|
}
|
|
248
|
-
let
|
|
249
|
-
function
|
|
250
|
-
if (!
|
|
260
|
+
let An = y(0), jn = y(0);
|
|
261
|
+
function Mn() {
|
|
262
|
+
if (!T.value || !z.value.show) return 0;
|
|
251
263
|
let e = $.value || [], t = X.value.start ?? 0, n = X.value.end ?? 0;
|
|
252
264
|
if (!Math.max(0, n - t)) return 0;
|
|
253
|
-
let r = Math.round(
|
|
254
|
-
|
|
265
|
+
let r = Math.round(E.value / 40 * z.value.fontSizeRatio), i = `${z.value.bold ? "bold " : ""}${r}px ${P.value.style.fontFamily}`;
|
|
266
|
+
T.value.save(), T.value.font = i;
|
|
255
267
|
let a = 0;
|
|
256
268
|
for (let r = t; r < n; r += 1) {
|
|
257
|
-
let t = e[r]?.text ?? `${r + 1}`, n =
|
|
269
|
+
let t = e[r]?.text ?? `${r + 1}`, n = T.value.measureText(String(t));
|
|
258
270
|
n.width > a && (a = n.width);
|
|
259
271
|
}
|
|
260
|
-
|
|
261
|
-
let o = (z.value.rotation || 0) * Math.PI / 180, s = r, c = Math.abs(Math.sin(o)) * a + Math.abs(Math.cos(o)) * s, l = z.value.offsetY || 1, u =
|
|
272
|
+
T.value.restore();
|
|
273
|
+
let o = (z.value.rotation || 0) * Math.PI / 180, s = r, c = Math.abs(Math.sin(o)) * a + Math.abs(Math.cos(o)) * s, l = z.value.offsetY || 1, u = E.value / l;
|
|
262
274
|
return Math.max(0, u + c + 4);
|
|
263
275
|
}
|
|
264
|
-
function
|
|
265
|
-
|
|
276
|
+
function Nn() {
|
|
277
|
+
An.value = Mn();
|
|
266
278
|
}
|
|
267
|
-
function
|
|
268
|
-
|
|
279
|
+
function Pn() {
|
|
280
|
+
jn.value && cancelAnimationFrame(jn.value), jn.value = requestAnimationFrame(() => {
|
|
269
281
|
requestAnimationFrame(() => {
|
|
270
|
-
|
|
282
|
+
Nn();
|
|
271
283
|
});
|
|
272
284
|
});
|
|
273
285
|
}
|
|
274
286
|
$e(() => {
|
|
275
|
-
|
|
287
|
+
jn.value && cancelAnimationFrame(jn.value);
|
|
276
288
|
});
|
|
277
289
|
let K = f(() => {
|
|
278
|
-
let e =
|
|
290
|
+
let e = E.value - E.value * (H.value.paddingProportions.left + H.value.paddingProportions.right), t = At.value * H.value.paddingProportions.top, n = At.value * H.value.paddingProportions.bottom, r = An.value, i = At.value - n - r, a = At.value - (t + n) - r;
|
|
279
291
|
return {
|
|
280
|
-
canvasWidth:
|
|
292
|
+
canvasWidth: E.value,
|
|
281
293
|
canvasHeight: At.value,
|
|
282
|
-
left:
|
|
294
|
+
left: E.value * H.value.paddingProportions.left,
|
|
283
295
|
top: t,
|
|
284
|
-
right:
|
|
296
|
+
right: E.value - E.value * H.value.paddingProportions.right,
|
|
285
297
|
bottom: i,
|
|
286
298
|
width: e,
|
|
287
299
|
height: a,
|
|
288
300
|
slot: e / (X.value.end - X.value.start)
|
|
289
301
|
};
|
|
290
302
|
});
|
|
291
|
-
function
|
|
303
|
+
function Fn(e, t) {
|
|
292
304
|
return e / t;
|
|
293
305
|
}
|
|
294
|
-
function
|
|
306
|
+
function In({ hasAutoScale: e, series: t, min: n, max: r, scale: i, yOffset: a, individualHeight: o, stackIndex: s = null }) {
|
|
295
307
|
return t.map((t, n) => {
|
|
296
|
-
let r = i.min < 0 ? Math.abs(i.min) : 0, c =
|
|
297
|
-
e && (l = i.min, u =
|
|
308
|
+
let r = i.min < 0 ? Math.abs(i.min) : 0, c = Fn(t + r, r + i.max), l, u;
|
|
309
|
+
e && (l = i.min, u = Fn(t - l, i.max - l));
|
|
298
310
|
let ee = 0;
|
|
299
311
|
return ee = s === null ? K.value.bottom - K.value.height * (e ? u : c) : K.value.bottom - a - o * (e ? u : c), {
|
|
300
312
|
x: K.value.left + K.value.slot * n + K.value.slot / 2,
|
|
@@ -304,7 +316,7 @@ var st = /* @__PURE__ */ e({ default: () => yt }), ct = ["id"], lt = ["id"], ut
|
|
|
304
316
|
});
|
|
305
317
|
}
|
|
306
318
|
let q = f(() => {
|
|
307
|
-
let e = H.value.scale.min === null ? Math.min(...J.value.filter((e, t) => !
|
|
319
|
+
let e = H.value.scale.min === null ? Math.min(...J.value.filter((e, t) => !O.value.includes(e.absoluteIndex)).flatMap((e) => e.series.slice(X.value.start, X.value.end))) : H.value.scale.min, t = H.value.scale.max === null ? Math.max(...J.value.filter((e, t) => !O.value.includes(e.absoluteIndex)).flatMap((e) => e.series.slice(X.value.start, X.value.end))) : H.value.scale.max, n = re(e < 0 ? e : 0, t === e ? e + 1 < 0 ? 0 : e + 1 : t < 0 ? 0 : t, H.value.scale.ticks), r = n.min < 0 ? Math.abs(n.min) : 0, i = K.value.bottom - K.value.height * (r / (n.max + r));
|
|
308
320
|
return {
|
|
309
321
|
absoluteMin: r,
|
|
310
322
|
max: t,
|
|
@@ -317,44 +329,44 @@ var st = /* @__PURE__ */ e({ default: () => yt }), ct = ["id"], lt = ["id"], ut
|
|
|
317
329
|
})),
|
|
318
330
|
zero: i
|
|
319
331
|
};
|
|
320
|
-
}),
|
|
332
|
+
}), Ln = f(() => Y.value.map((e) => `
|
|
321
333
|
<div style="display:flex;flex-direction:row;gap:6px;align-items:center;">
|
|
322
334
|
<svg viewBox="0 0 10 10" height="12" width="12">
|
|
323
335
|
<circle cx="5" cy="5" r="5" fill="${e.color}"/>
|
|
324
336
|
</svg>
|
|
325
337
|
<span>${e.name ? e.name + ": " : ""}</span>
|
|
326
|
-
<span>${
|
|
338
|
+
<span>${ae(V.value.formatter, e.series[D.value] ?? "-", u({
|
|
327
339
|
p: e.prefix || "",
|
|
328
|
-
v: e.series[
|
|
340
|
+
v: e.series[D.value] ?? "-",
|
|
329
341
|
s: e.suffix || "",
|
|
330
342
|
r: e.rounding || 0
|
|
331
343
|
}), {
|
|
332
344
|
datapoint: e,
|
|
333
|
-
seriesIndex:
|
|
345
|
+
seriesIndex: D.value
|
|
334
346
|
})}</span>
|
|
335
347
|
</div>
|
|
336
|
-
`)),
|
|
348
|
+
`)), Rn = f(() => H.value.line.cutNullValues), J = f(() => fn.value.map((e, t) => ({
|
|
337
349
|
...e,
|
|
338
350
|
series: a({
|
|
339
|
-
data: l(e.series, [],
|
|
351
|
+
data: l(e.series, [], Rn.value),
|
|
340
352
|
threshold: P.value.downsample.threshold
|
|
341
353
|
}),
|
|
342
354
|
absoluteIndex: t,
|
|
343
|
-
color: s(e.color ||
|
|
344
|
-
}))),
|
|
355
|
+
color: s(e.color || Dn.value[t] || i[t] || i[t % i.length])
|
|
356
|
+
}))), zn = f(() => {
|
|
345
357
|
if (!H.value.zoom.minimap.show) return [];
|
|
346
|
-
let e = J.value.filter((e) => !
|
|
358
|
+
let e = J.value.filter((e) => !O.value.includes(e.absoluteIndex)), t = Math.max(...e.map((e) => e.series.length)), n = [];
|
|
347
359
|
for (let r = 0; r < t; r += 1) n.push(e.map((e) => e.series[r] || 0).reduce((e, t) => (e || 0) + (t || 0), 0));
|
|
348
360
|
let r = Math.min(...n);
|
|
349
361
|
return n.map((e) => e + (r < 0 ? Math.abs(r) : 0));
|
|
350
|
-
}),
|
|
362
|
+
}), Bn = f(() => H.value.zoom.minimap.show ? J.value.map((e) => ({
|
|
351
363
|
...e,
|
|
352
|
-
isVisible: !
|
|
364
|
+
isVisible: !O.value.includes(e.absoluteIndex)
|
|
353
365
|
})) : []);
|
|
354
|
-
|
|
355
|
-
e &&
|
|
366
|
+
S(G, (e) => {
|
|
367
|
+
e && Un();
|
|
356
368
|
});
|
|
357
|
-
let Y = f(() =>
|
|
369
|
+
let Y = f(() => le(J.value.filter((e, t) => !O.value.includes(e.absoluteIndex))).map((e, t) => ({
|
|
358
370
|
...e,
|
|
359
371
|
series: e.series.slice(X.value.start, X.value.end)
|
|
360
372
|
})).map((e, t) => {
|
|
@@ -365,14 +377,14 @@ var st = /* @__PURE__ */ e({ default: () => yt }), ct = ["id"], lt = ["id"], ut
|
|
|
365
377
|
valueMin: n,
|
|
366
378
|
valueMax: r
|
|
367
379
|
}, a = e.scaleSteps || H.value.scale.ticks, o;
|
|
368
|
-
o = e.autoScaling ?
|
|
380
|
+
o = e.autoScaling ? re(i.valueMin, i.valueMax, a) : re(i.valueMin < 0 ? i.valueMin : 0, i.valueMax <= 0 ? 0 : i.valueMax, a);
|
|
369
381
|
let s = W.value.stacked ? K.value.height * (1 - e.cumulatedStackRatio) : 0, c = W.value.stacked ? K.value.height / H.value.stackGap : 0, l = W.value.stacked ? K.value.height * e.stackRatio - c : K.value.height, u = o.min < 0 ? Math.abs(o.min) : 0, ee;
|
|
370
382
|
ee = e.autoScaling && W.value.stacked && r <= 0 ? K.value.bottom - s - l : K.value.bottom - s - l * (u / (o.max + u));
|
|
371
383
|
let te = o.ticks.map((e, t) => ({
|
|
372
384
|
y: K.value.bottom - s - l * (t / (o.ticks.length - 1)),
|
|
373
385
|
x: K.value.left - 8,
|
|
374
386
|
value: e
|
|
375
|
-
})),
|
|
387
|
+
})), ne = In({
|
|
376
388
|
hasAutoScale: W.value.stacked && e.autoScaling,
|
|
377
389
|
series: e.series,
|
|
378
390
|
min: W.value.stacked ? n : q.value.min,
|
|
@@ -384,7 +396,7 @@ var st = /* @__PURE__ */ e({ default: () => yt }), ct = ["id"], lt = ["id"], ut
|
|
|
384
396
|
});
|
|
385
397
|
return {
|
|
386
398
|
...e,
|
|
387
|
-
coordinatesLine:
|
|
399
|
+
coordinatesLine: ne,
|
|
388
400
|
min: n,
|
|
389
401
|
max: r,
|
|
390
402
|
localScale: o,
|
|
@@ -394,81 +406,81 @@ var st = /* @__PURE__ */ e({ default: () => yt }), ct = ["id"], lt = ["id"], ut
|
|
|
394
406
|
yOffset: s,
|
|
395
407
|
individualHeight: l
|
|
396
408
|
};
|
|
397
|
-
})), X =
|
|
409
|
+
})), X = y({
|
|
398
410
|
start: 0,
|
|
399
411
|
end: G.value
|
|
400
|
-
}), Z =
|
|
412
|
+
}), Z = y({
|
|
401
413
|
start: 0,
|
|
402
414
|
end: G.value
|
|
403
|
-
}),
|
|
404
|
-
function
|
|
415
|
+
}), Vn = y(null);
|
|
416
|
+
function Hn() {
|
|
405
417
|
return new Promise((e) => requestAnimationFrame(() => requestAnimationFrame(() => e())));
|
|
406
418
|
}
|
|
407
419
|
$e(() => {
|
|
408
|
-
|
|
420
|
+
Vn.value && cancelAnimationFrame(Vn.value);
|
|
409
421
|
});
|
|
410
|
-
async function
|
|
411
|
-
|
|
412
|
-
await
|
|
422
|
+
async function Un() {
|
|
423
|
+
Kn(), await Xe(), Vn.value && cancelAnimationFrame(Vn.value), Vn.value = requestAnimationFrame(async () => {
|
|
424
|
+
await Hn(), Kn();
|
|
413
425
|
});
|
|
414
426
|
}
|
|
415
|
-
let
|
|
416
|
-
function
|
|
427
|
+
let Wn = f(() => H.value.zoom.preview.enable && (Z.value.start !== X.value.start || Z.value.end !== X.value.end));
|
|
428
|
+
function Gn(e, t) {
|
|
417
429
|
Z.value[e] = t;
|
|
418
430
|
}
|
|
419
|
-
async function
|
|
420
|
-
if (!
|
|
421
|
-
|
|
431
|
+
async function Kn() {
|
|
432
|
+
if (!Yt.value) {
|
|
433
|
+
Yt.value = !0;
|
|
422
434
|
try {
|
|
423
|
-
let { startIndex: e, endIndex: t } = H.value.zoom, n = Math.max(...J.value.map((e) => e.series.length)), r = e ?? 0, i = t == null ? n : Math.min(
|
|
424
|
-
|
|
435
|
+
let { startIndex: e, endIndex: t } = H.value.zoom, n = Math.max(...J.value.map((e) => e.series.length)), r = e ?? 0, i = t == null ? n : Math.min(Yn(t + 1), n);
|
|
436
|
+
Zt.value = !0, X.value.start = r, X.value.end = i, Z.value.start = r, Z.value.end = i, Xn(), Xt.value = !0, await Xe(), Bt.value && (Bt.value.setStartValue(X.value.start), Bt.value.setEndValue(X.value.end));
|
|
425
437
|
} finally {
|
|
426
438
|
queueMicrotask(() => {
|
|
427
|
-
|
|
428
|
-
}),
|
|
439
|
+
Zt.value = !1;
|
|
440
|
+
}), Yt.value = !1;
|
|
429
441
|
}
|
|
430
442
|
}
|
|
431
443
|
}
|
|
432
|
-
function
|
|
433
|
-
|
|
444
|
+
function qn(e) {
|
|
445
|
+
Yt.value || Zt.value || e !== X.value.start && (X.value.start = e, Z.value.start = e, Xn());
|
|
434
446
|
}
|
|
435
|
-
function
|
|
436
|
-
if (
|
|
437
|
-
let t =
|
|
438
|
-
t !== X.value.end && (X.value.end = t, Z.value.end = t,
|
|
447
|
+
function Jn(e) {
|
|
448
|
+
if (Yt.value || Zt.value) return;
|
|
449
|
+
let t = Yn(e);
|
|
450
|
+
t !== X.value.end && (X.value.end = t, Z.value.end = t, Xn());
|
|
439
451
|
}
|
|
440
|
-
function
|
|
452
|
+
function Yn(e) {
|
|
441
453
|
let t = G.value;
|
|
442
454
|
return e > t ? t : e < 0 || e < X.value.start ? H.value.zoom.startIndex === null ? 1 : H.value.zoom.startIndex + 1 : e;
|
|
443
455
|
}
|
|
444
|
-
function
|
|
456
|
+
function Xn() {
|
|
445
457
|
let e = Math.max(1, Math.max(...J.value.map((e) => e.series.length))), t = Math.max(0, Math.min(X.value.start ?? 0, e - 1)), n = Math.max(t + 1, Math.min(X.value.end ?? e, e));
|
|
446
458
|
(!Number.isFinite(t) || !Number.isFinite(n) || n <= t) && (t = 0, n = e), X.value = {
|
|
447
459
|
start: t,
|
|
448
460
|
end: n
|
|
449
461
|
}, Z.value.start = t, Z.value.end = n, Bt.value && (Bt.value.setStartValue(t), Bt.value.setEndValue(n));
|
|
450
462
|
}
|
|
451
|
-
let
|
|
463
|
+
let Zn = f(() => Y.value.filter((e) => [
|
|
452
464
|
"line",
|
|
453
465
|
"plot",
|
|
454
466
|
void 0
|
|
455
467
|
].includes(e.type))), Q = f(() => Y.value.filter((e) => e.type === "bar"));
|
|
456
|
-
function
|
|
468
|
+
function Qn() {
|
|
457
469
|
if (!U.value || !kt.value) return;
|
|
458
470
|
let e = kt.value.offsetWidth, t = kt.value.offsetHeight;
|
|
459
|
-
U.value.width = e * Pt.value * 2, U.value.height = t * Pt.value * 2,
|
|
471
|
+
U.value.width = e * Pt.value * 2, U.value.height = t * Pt.value * 2, E.value = e * Pt.value * 2, At.value = t * Pt.value * 2, T.value?.scale(Pt.value, Pt.value), br();
|
|
460
472
|
}
|
|
461
|
-
|
|
473
|
+
S(N, async (e) => {
|
|
462
474
|
if (!e) {
|
|
463
|
-
Ft.value = null, jt.value = !1,
|
|
475
|
+
Ft.value = null, jt.value = !1, D.value = null, Gt.value = null;
|
|
464
476
|
return;
|
|
465
477
|
}
|
|
466
|
-
await Xe(), U.value && !
|
|
478
|
+
await Xe(), U.value && !T.value && (T.value = U.value.getContext("2d", { willReadFrequently: !0 })), k.value = !0, A.value = !0, await Un(), Qn(), br();
|
|
467
479
|
});
|
|
468
|
-
function
|
|
469
|
-
if (
|
|
480
|
+
function $n() {
|
|
481
|
+
if (T.value && (T.value.clearRect(0, 0, 1e4, 1e4), T.value.fillStyle = H.value.backgroundColor, T.value.fillRect(0, 0, K.value.canvasWidth, K.value.canvasHeight), N.value)) {
|
|
470
482
|
if (W.value.stacked) L.value.show && X.value.end - X.value.start < L.value.hideUnderXLength ? Y.value.forEach((e) => {
|
|
471
|
-
for (let t = 0; t < X.value.end - X.value.start + 1; t += 1) d(
|
|
483
|
+
for (let t = 0; t < X.value.end - X.value.start + 1; t += 1) d(T.value, [{
|
|
472
484
|
x: K.value.left + K.value.slot * t,
|
|
473
485
|
y: K.value.bottom - e.yOffset - e.individualHeight
|
|
474
486
|
}, {
|
|
@@ -476,16 +488,16 @@ var st = /* @__PURE__ */ e({ default: () => yt }), ct = ["id"], lt = ["id"], ut
|
|
|
476
488
|
y: K.value.bottom - e.yOffset
|
|
477
489
|
}], { color: L.value.color });
|
|
478
490
|
}) : L.value.show && X.value.end - X.value.start >= L.value.hideUnderXLength && Y.value.forEach((e) => {
|
|
479
|
-
for (let t = X.value.start; t < X.value.end; t += 1) t % Math.floor((X.value.end - X.value.start) /
|
|
491
|
+
for (let t = X.value.start; t < X.value.end; t += 1) t % Math.floor((X.value.end - X.value.start) / an.value.modulo) === 0 && d(T.value, [{
|
|
480
492
|
x: K.value.left + K.value.slot * (t - X.value.start) + K.value.slot / 2,
|
|
481
493
|
y: K.value.bottom - e.yOffset - e.individualHeight
|
|
482
494
|
}, {
|
|
483
495
|
x: K.value.left + K.value.slot * (t - X.value.start) + K.value.slot / 2,
|
|
484
496
|
y: K.value.bottom - e.yOffset
|
|
485
497
|
}], { color: L.value.color });
|
|
486
|
-
}),
|
|
498
|
+
}), an.value.show && (an.value.alternate ? Y.value.forEach((e) => {
|
|
487
499
|
e.localYLabels.forEach((t, n) => {
|
|
488
|
-
n < e.localYLabels.length - 1 &&
|
|
500
|
+
n < e.localYLabels.length - 1 && Ne(T.value, [
|
|
489
501
|
{
|
|
490
502
|
x: K.value.left,
|
|
491
503
|
y: t.y
|
|
@@ -509,16 +521,16 @@ var st = /* @__PURE__ */ e({ default: () => yt }), ct = ["id"], lt = ["id"], ut
|
|
|
509
521
|
});
|
|
510
522
|
}) : Y.value.forEach((e) => {
|
|
511
523
|
e.localYLabels.slice(X.value.start, X.value.end).forEach((e) => {
|
|
512
|
-
d(
|
|
524
|
+
d(T.value, [{
|
|
513
525
|
x: K.value.left,
|
|
514
526
|
y: e.y
|
|
515
527
|
}, {
|
|
516
528
|
x: K.value.right,
|
|
517
529
|
y: e.y
|
|
518
|
-
}], { color:
|
|
530
|
+
}], { color: an.value.color });
|
|
519
531
|
});
|
|
520
532
|
})), B.value.zeroLine.show && Y.value.forEach((e) => {
|
|
521
|
-
d(
|
|
533
|
+
d(T.value, [{
|
|
522
534
|
x: K.value.left,
|
|
523
535
|
y: e.localZero
|
|
524
536
|
}, {
|
|
@@ -529,13 +541,13 @@ var st = /* @__PURE__ */ e({ default: () => yt }), ct = ["id"], lt = ["id"], ut
|
|
|
529
541
|
lineDash: B.value.zeroLine.dashed ? [10, 10] : [0, 0]
|
|
530
542
|
});
|
|
531
543
|
}), R.value.show && Y.value.forEach((e) => {
|
|
532
|
-
d(
|
|
544
|
+
d(T.value, [{
|
|
533
545
|
x: K.value.left,
|
|
534
546
|
y: K.value.bottom - e.yOffset
|
|
535
547
|
}, {
|
|
536
548
|
x: K.value.left,
|
|
537
549
|
y: K.value.bottom - e.yOffset - e.individualHeight
|
|
538
|
-
}], { color: e.color }), d(
|
|
550
|
+
}], { color: e.color }), d(T.value, [{
|
|
539
551
|
x: K.value.right,
|
|
540
552
|
y: K.value.bottom - e.yOffset
|
|
541
553
|
}, {
|
|
@@ -543,30 +555,30 @@ var st = /* @__PURE__ */ e({ default: () => yt }), ct = ["id"], lt = ["id"], ut
|
|
|
543
555
|
y: K.value.bottom - e.yOffset - e.individualHeight
|
|
544
556
|
}], { color: e.color });
|
|
545
557
|
}), Y.value.forEach((e) => {
|
|
546
|
-
|
|
558
|
+
De(T.value, e.name, E.value / 35, K.value.bottom - e.yOffset - e.individualHeight / 2, {
|
|
547
559
|
align: "center",
|
|
548
560
|
rotation: -90,
|
|
549
561
|
color: e.color,
|
|
550
|
-
font: `${Math.round(
|
|
562
|
+
font: `${Math.round(E.value / 40 * R.value.fontSizeRatio)}px ${P.value.style.fontFamily}`
|
|
551
563
|
});
|
|
552
564
|
});
|
|
553
565
|
else {
|
|
554
|
-
if (L.value.show && X.value.end - X.value.start < L.value.hideUnderXLength) for (let e = 0; e < X.value.end - X.value.start + 1; e += 1) d(
|
|
566
|
+
if (L.value.show && X.value.end - X.value.start < L.value.hideUnderXLength) for (let e = 0; e < X.value.end - X.value.start + 1; e += 1) d(T.value, [{
|
|
555
567
|
x: K.value.left + K.value.slot * e,
|
|
556
568
|
y: K.value.top
|
|
557
569
|
}, {
|
|
558
570
|
x: K.value.left + K.value.slot * e,
|
|
559
571
|
y: K.value.bottom
|
|
560
572
|
}], { color: L.value.color });
|
|
561
|
-
else if (L.value.show && X.value.end - X.value.start >= L.value.hideUnderXLength) for (let e = X.value.start; e < X.value.end; e += 1) e % Math.floor((X.value.end - X.value.start) / z.value.modulo) === 0 && d(
|
|
573
|
+
else if (L.value.show && X.value.end - X.value.start >= L.value.hideUnderXLength) for (let e = X.value.start; e < X.value.end; e += 1) e % Math.floor((X.value.end - X.value.start) / z.value.modulo) === 0 && d(T.value, [{
|
|
562
574
|
x: K.value.left + K.value.slot * (e - X.value.start) + K.value.slot / 2,
|
|
563
575
|
y: K.value.top
|
|
564
576
|
}, {
|
|
565
577
|
x: K.value.left + K.value.slot * (e - X.value.start) + K.value.slot / 2,
|
|
566
578
|
y: K.value.bottom
|
|
567
579
|
}], { color: L.value.color });
|
|
568
|
-
|
|
569
|
-
t < q.value.yLabels.length - 1 &&
|
|
580
|
+
an.value.show && (an.value.alternate ? q.value.yLabels.forEach((e, t) => {
|
|
581
|
+
t < q.value.yLabels.length - 1 && Ne(T.value, [
|
|
570
582
|
{
|
|
571
583
|
x: K.value.left,
|
|
572
584
|
y: e.y
|
|
@@ -588,14 +600,14 @@ var st = /* @__PURE__ */ e({ default: () => yt }), ct = ["id"], lt = ["id"], ut
|
|
|
588
600
|
strokeColor: "transparent"
|
|
589
601
|
});
|
|
590
602
|
}) : q.value.yLabels.forEach((e) => {
|
|
591
|
-
d(
|
|
603
|
+
d(T.value, [{
|
|
592
604
|
x: K.value.left,
|
|
593
605
|
y: e.y
|
|
594
606
|
}, {
|
|
595
607
|
x: K.value.right,
|
|
596
608
|
y: e.y
|
|
597
|
-
}], { color:
|
|
598
|
-
})), B.value.y.showAxis && d(
|
|
609
|
+
}], { color: an.value.color });
|
|
610
|
+
})), B.value.y.showAxis && d(T.value, [{
|
|
599
611
|
x: K.value.left,
|
|
600
612
|
y: K.value.top
|
|
601
613
|
}, {
|
|
@@ -604,7 +616,7 @@ var st = /* @__PURE__ */ e({ default: () => yt }), ct = ["id"], lt = ["id"], ut
|
|
|
604
616
|
}], {
|
|
605
617
|
color: B.value.y.axisColor,
|
|
606
618
|
lineWidth: B.value.y.axisThickness
|
|
607
|
-
}), B.value.x.showAxis && d(
|
|
619
|
+
}), B.value.x.showAxis && d(T.value, [{
|
|
608
620
|
x: K.value.left,
|
|
609
621
|
y: K.value.bottom
|
|
610
622
|
}, {
|
|
@@ -613,7 +625,7 @@ var st = /* @__PURE__ */ e({ default: () => yt }), ct = ["id"], lt = ["id"], ut
|
|
|
613
625
|
}], {
|
|
614
626
|
color: B.value.x.axisColor,
|
|
615
627
|
lineWidth: B.value.x.axisThickness
|
|
616
|
-
}), B.value.zeroLine.show && d(
|
|
628
|
+
}), B.value.zeroLine.show && d(T.value, [{
|
|
617
629
|
x: K.value.left,
|
|
618
630
|
y: q.value.zero
|
|
619
631
|
}, {
|
|
@@ -624,22 +636,22 @@ var st = /* @__PURE__ */ e({ default: () => yt }), ct = ["id"], lt = ["id"], ut
|
|
|
624
636
|
lineDash: B.value.zeroLine.dashed ? [10, 10] : [0, 0]
|
|
625
637
|
});
|
|
626
638
|
}
|
|
627
|
-
B.value.y.axisName &&
|
|
628
|
-
font: `${R.value.bold ? "bold " : ""}${Math.round(
|
|
639
|
+
B.value.y.axisName && De(T.value, B.value.y.axisName, E.value - E.value / 40 * R.value.fontSizeRatio * 1.2, K.value.bottom - K.value.height / 2, {
|
|
640
|
+
font: `${R.value.bold ? "bold " : ""}${Math.round(E.value / 40 * R.value.fontSizeRatio)}px ${P.value.style.fontFamily}`,
|
|
629
641
|
color: H.value.color,
|
|
630
642
|
align: "center",
|
|
631
643
|
rotation: 90
|
|
632
|
-
}), B.value.x.axisName &&
|
|
633
|
-
font: `${R.value.bold ? "bold " : ""}${Math.round(
|
|
644
|
+
}), B.value.x.axisName && De(T.value, B.value.x.axisName, E.value / 2, At.value, {
|
|
645
|
+
font: `${R.value.bold ? "bold " : ""}${Math.round(E.value / 40 * R.value.fontSizeRatio)}px ${P.value.style.fontFamily}`,
|
|
634
646
|
color: H.value.color,
|
|
635
647
|
align: "center"
|
|
636
648
|
});
|
|
637
649
|
}
|
|
638
650
|
}
|
|
639
|
-
function
|
|
651
|
+
function er(e) {
|
|
640
652
|
for (let t = 0; t < e.coordinatesLine.length; t += 1) {
|
|
641
|
-
let n = (
|
|
642
|
-
|
|
653
|
+
let n = (D.value === t || j.value === t ? E.value / 150 : H.value.line.plots.show || e.type === "plot" ? E.value / 200 : 0) * H.value.line.plots.radiusRatio;
|
|
654
|
+
Ae(T.value, {
|
|
643
655
|
x: e.coordinatesLine[t].x,
|
|
644
656
|
y: e.coordinatesLine[t].y
|
|
645
657
|
}, n, {
|
|
@@ -649,27 +661,27 @@ var st = /* @__PURE__ */ e({ default: () => yt }), ct = ["id"], lt = ["id"], ut
|
|
|
649
661
|
});
|
|
650
662
|
}
|
|
651
663
|
}
|
|
652
|
-
function
|
|
664
|
+
function tr() {
|
|
653
665
|
Y.value.forEach((e) => {
|
|
654
|
-
e.showYMarker &&
|
|
666
|
+
e.showYMarker && Sr(e) && De(T.value, ae(V.value.formatter, Sr(e).value, u({
|
|
655
667
|
p: e.prefix || R.value.prefix || "",
|
|
656
|
-
v:
|
|
668
|
+
v: Sr(e).value,
|
|
657
669
|
s: e.suffix || R.value.suffix || "",
|
|
658
670
|
r: e.rounding || R.value.rounding || 0
|
|
659
671
|
}), {
|
|
660
|
-
datapoint:
|
|
672
|
+
datapoint: Sr(e),
|
|
661
673
|
seriesIndex: null
|
|
662
|
-
}), K.value.left - 8 + R.value.offsetX,
|
|
674
|
+
}), K.value.left - 8 + R.value.offsetX, Sr(e).y, {
|
|
663
675
|
align: "right",
|
|
664
|
-
font: `${R.value.bold ? "bold " : ""}${Math.round(
|
|
676
|
+
font: `${R.value.bold ? "bold " : ""}${Math.round(E.value / 40 * R.value.fontSizeRatio)}px ${P.value.style.fontFamily}`,
|
|
665
677
|
color: e.color
|
|
666
678
|
});
|
|
667
679
|
});
|
|
668
680
|
}
|
|
669
|
-
function
|
|
681
|
+
function nr() {
|
|
670
682
|
R.value.show && (W.value.stacked ? Y.value.forEach((e) => {
|
|
671
683
|
e.localYLabels.forEach((t, n) => {
|
|
672
|
-
|
|
684
|
+
De(T.value, ae(V.value.formatter, t.value, u({
|
|
673
685
|
p: e.prefix || B.value.y.axisLabels.prefix || "",
|
|
674
686
|
v: t.value,
|
|
675
687
|
s: e.suffix || B.value.y.axisLabels.suffix || "",
|
|
@@ -679,13 +691,13 @@ var st = /* @__PURE__ */ e({ default: () => yt }), ct = ["id"], lt = ["id"], ut
|
|
|
679
691
|
seriesIndex: n
|
|
680
692
|
}), t.x + R.value.offsetX, t.y, {
|
|
681
693
|
align: "right",
|
|
682
|
-
font: `${R.value.bold ? "bold " : ""}${Math.round(
|
|
694
|
+
font: `${R.value.bold ? "bold " : ""}${Math.round(E.value / 40 * R.value.fontSizeRatio)}px ${P.value.style.fontFamily}`,
|
|
683
695
|
color: e.color,
|
|
684
|
-
globalAlpha: e.showYMarker && ![null, void 0].includes(
|
|
696
|
+
globalAlpha: e.showYMarker && ![null, void 0].includes(D.value ?? j.value) ? .2 : 1
|
|
685
697
|
});
|
|
686
698
|
});
|
|
687
699
|
}) : q.value.yLabels.forEach((e, t) => {
|
|
688
|
-
|
|
700
|
+
De(T.value, ae(V.value.formatter, e.value, u({
|
|
689
701
|
p: R.value.prefix || "",
|
|
690
702
|
v: e.value,
|
|
691
703
|
s: R.value.suffix || "",
|
|
@@ -695,14 +707,14 @@ var st = /* @__PURE__ */ e({ default: () => yt }), ct = ["id"], lt = ["id"], ut
|
|
|
695
707
|
seriesIndex: t
|
|
696
708
|
}), e.x + R.value.offsetX, e.y, {
|
|
697
709
|
align: "right",
|
|
698
|
-
font: `${R.value.bold ? "bold " : ""}${Math.round(
|
|
710
|
+
font: `${R.value.bold ? "bold " : ""}${Math.round(E.value / 40 * R.value.fontSizeRatio)}px ${P.value.style.fontFamily}`,
|
|
699
711
|
color: R.value.color,
|
|
700
|
-
globalAlpha: Y.value.some((e) => e.showYMarker) && ![null, void 0].includes(
|
|
712
|
+
globalAlpha: Y.value.some((e) => e.showYMarker) && ![null, void 0].includes(D.value ?? j.value) ? .2 : 1
|
|
701
713
|
});
|
|
702
714
|
}));
|
|
703
715
|
}
|
|
704
|
-
function
|
|
705
|
-
for (let t = 0; t < e.coordinatesLine.length; t += 1)
|
|
716
|
+
function rr(e) {
|
|
717
|
+
for (let t = 0; t < e.coordinatesLine.length; t += 1) De(T.value, ae(V.value.formatter, e.coordinatesLine[t].value, u({
|
|
706
718
|
p: e.prefix || "",
|
|
707
719
|
v: e.coordinatesLine[t].value,
|
|
708
720
|
s: e.suffix || "",
|
|
@@ -712,72 +724,72 @@ var st = /* @__PURE__ */ e({ default: () => yt }), ct = ["id"], lt = ["id"], ut
|
|
|
712
724
|
seriesIndex: t
|
|
713
725
|
}), e.coordinatesLine[t].x, e.coordinatesLine[t].y + V.value.offsetY, {
|
|
714
726
|
align: "center",
|
|
715
|
-
font: `${V.value.bold ? "bold " : ""}${Math.round(
|
|
727
|
+
font: `${V.value.bold ? "bold " : ""}${Math.round(E.value / 40 * V.value.fontSizeRatio)}px ${P.value.style.fontFamily}`,
|
|
716
728
|
color: V.value.useSerieColor ? e.color : V.value.color,
|
|
717
729
|
strokeColor: H.value.backgroundColor,
|
|
718
730
|
lineWidth: .5
|
|
719
731
|
});
|
|
720
732
|
}
|
|
721
|
-
let $ =
|
|
733
|
+
let $ = y([]), ir = 0;
|
|
722
734
|
ot(() => {
|
|
723
|
-
let e = ++
|
|
735
|
+
let e = ++ir;
|
|
724
736
|
(async () => {
|
|
725
|
-
let t = await
|
|
737
|
+
let t = await _e({
|
|
726
738
|
values: z.value.values,
|
|
727
739
|
maxDatapoints: G.value,
|
|
728
740
|
formatter: z.value.datetimeFormatter,
|
|
729
741
|
start: 0,
|
|
730
742
|
end: G.value
|
|
731
743
|
});
|
|
732
|
-
e ===
|
|
744
|
+
e === ir && ($.value = t);
|
|
733
745
|
})();
|
|
734
746
|
}), ot(() => {
|
|
735
|
-
z.value.show, z.value.rotation, z.value.offsetY, z.value.fontSizeRatio, z.value.bold, X.value.start, X.value.end,
|
|
747
|
+
z.value.show, z.value.rotation, z.value.offsetY, z.value.fontSizeRatio, z.value.bold, X.value.start, X.value.end, E.value, At.value, ($.value || []).map((e) => e?.text ?? "").join("|"), Pn();
|
|
736
748
|
}, { flush: "post" });
|
|
737
|
-
let
|
|
749
|
+
let ar = y({
|
|
738
750
|
months: [],
|
|
739
751
|
shortMonths: [],
|
|
740
752
|
days: [],
|
|
741
753
|
shortDays: []
|
|
742
|
-
}),
|
|
754
|
+
}), or = 0;
|
|
743
755
|
ot(() => {
|
|
744
|
-
let e = ++
|
|
756
|
+
let e = ++or, t = z.value.datetimeFormatter;
|
|
745
757
|
(async () => {
|
|
746
|
-
let n = await
|
|
747
|
-
e ===
|
|
758
|
+
let n = await ge(t.locale).catch(() => ge("en"));
|
|
759
|
+
e === or && (ar.value = n.data);
|
|
748
760
|
})();
|
|
749
761
|
});
|
|
750
|
-
let
|
|
751
|
-
let e = z.value.datetimeFormatter, t =
|
|
762
|
+
let sr = f(() => {
|
|
763
|
+
let e = z.value.datetimeFormatter, t = he({
|
|
752
764
|
useUTC: e.useUTC,
|
|
753
|
-
locale:
|
|
765
|
+
locale: ar.value,
|
|
754
766
|
januaryAsYear: e.januaryAsYear
|
|
755
767
|
});
|
|
756
768
|
return (e, n) => {
|
|
757
769
|
let r = z.value.values?.[e];
|
|
758
770
|
return r == null ? "" : t.formatDate(new Date(r), n);
|
|
759
771
|
};
|
|
760
|
-
}),
|
|
761
|
-
text:
|
|
772
|
+
}), cr = f(() => (z.value.values || []).map((e, t) => ({
|
|
773
|
+
text: sr.value(t, H.value.zoom.timeFormat),
|
|
762
774
|
absoluteIndex: t
|
|
763
|
-
}))),
|
|
764
|
-
text:
|
|
775
|
+
}))), lr = f(() => (z.value.values || []).map((e, t) => ({
|
|
776
|
+
text: sr.value(t, I.value.timeFormat),
|
|
765
777
|
absoluteIndex: t
|
|
766
778
|
})));
|
|
767
|
-
function
|
|
768
|
-
for (let e = X.value.start; e < X.value.end; e += 1) (X.value.end - X.value.start < z.value.modulo || X.value.end - X.value.start >= z.value.modulo && (e % Math.floor((X.value.end - X.value.start) / z.value.modulo) === 0 || (e ===
|
|
779
|
+
function ur() {
|
|
780
|
+
for (let e = X.value.start; e < X.value.end; e += 1) (X.value.end - X.value.start < z.value.modulo || X.value.end - X.value.start >= z.value.modulo && (e % Math.floor((X.value.end - X.value.start) / z.value.modulo) === 0 || (e === D.value + X.value.start || e === j.value) && z.value.showMarker)) && De(T.value, $.value[e] ? $.value[e].text : e + 1, K.value.left + K.value.slot * (e - X.value.start) + K.value.slot / 2, K.value.bottom + E.value / z.value.offsetY, {
|
|
769
781
|
align: z.value.rotation === 0 ? "center" : z.value.rotation > 0 ? "left" : "right",
|
|
770
|
-
font: `${z.value.bold ? "bold " : ""}${Math.round(
|
|
771
|
-
color: z.value.showMarker ? c(z.value.color,
|
|
782
|
+
font: `${z.value.bold ? "bold " : ""}${Math.round(E.value / 40 * z.value.fontSizeRatio)}px ${P.value.style.fontFamily}`,
|
|
783
|
+
color: z.value.showMarker ? c(z.value.color, D.value !== null || j.value !== null ? D.value + X.value.start === e || j.value === e ? 100 : 20 : 100) : z.value.color,
|
|
772
784
|
rotation: z.value.rotation
|
|
773
785
|
});
|
|
774
786
|
}
|
|
775
|
-
function
|
|
776
|
-
d(
|
|
777
|
-
x: K.value.left + K.value.slot * (
|
|
787
|
+
function dr() {
|
|
788
|
+
d(T.value, [{
|
|
789
|
+
x: K.value.left + K.value.slot * (D.value ?? j.value) + K.value.slot / 2,
|
|
778
790
|
y: K.value.top
|
|
779
791
|
}, {
|
|
780
|
-
x: K.value.left + K.value.slot * (
|
|
792
|
+
x: K.value.left + K.value.slot * (D.value ?? j.value) + K.value.slot / 2,
|
|
781
793
|
y: K.value.bottom
|
|
782
794
|
}], {
|
|
783
795
|
color: H.value.selector.color,
|
|
@@ -786,13 +798,13 @@ var st = /* @__PURE__ */ e({ default: () => yt }), ct = ["id"], lt = ["id"], ut
|
|
|
786
798
|
linceCap: "round"
|
|
787
799
|
});
|
|
788
800
|
}
|
|
789
|
-
function
|
|
790
|
-
|
|
801
|
+
function fr() {
|
|
802
|
+
Gt.value && d(T.value, [{
|
|
791
803
|
x: K.value.left,
|
|
792
|
-
y:
|
|
804
|
+
y: Gt.value
|
|
793
805
|
}, {
|
|
794
806
|
x: K.value.right,
|
|
795
|
-
y:
|
|
807
|
+
y: Gt.value
|
|
796
808
|
}], {
|
|
797
809
|
color: H.value.selector.color,
|
|
798
810
|
lineDash: H.value.selector.dashed ? [8, 8] : [0, 0],
|
|
@@ -800,9 +812,9 @@ var st = /* @__PURE__ */ e({ default: () => yt }), ct = ["id"], lt = ["id"], ut
|
|
|
800
812
|
linceCap: "round"
|
|
801
813
|
});
|
|
802
814
|
}
|
|
803
|
-
function
|
|
815
|
+
function pr() {
|
|
804
816
|
Q.value.forEach((e, t) => {
|
|
805
|
-
for (let n = 0; n < e.coordinatesLine.length; n += 1)
|
|
817
|
+
for (let n = 0; n < e.coordinatesLine.length; n += 1) Ne(T.value, [
|
|
806
818
|
{
|
|
807
819
|
x: K.value.left + K.value.slot * n + K.value.slot / 10 + (W.value.stacked ? 0 : K.value.slot / Q.value.length * t - (t === 0 ? 0 : K.value.slot / (5 * Q.value.length) * t)),
|
|
808
820
|
y: W.value.stacked ? e.localZero : q.value.zero
|
|
@@ -836,10 +848,10 @@ var st = /* @__PURE__ */ e({ default: () => yt }), ct = ["id"], lt = ["id"], ut
|
|
|
836
848
|
color: e.color
|
|
837
849
|
}, {
|
|
838
850
|
offset: 1,
|
|
839
|
-
color: H.value.bar.gradient.show ?
|
|
851
|
+
color: H.value.bar.gradient.show ? oe(e.color, .5) : e.color
|
|
840
852
|
}]
|
|
841
853
|
}
|
|
842
|
-
}), W.value.showDataLabels && [!0, void 0].includes(e.dataLabels) &&
|
|
854
|
+
}), W.value.showDataLabels && [!0, void 0].includes(e.dataLabels) && De(T.value, ae(V.value.formatter, e.coordinatesLine[n].value, u({
|
|
843
855
|
p: e.prefix || "",
|
|
844
856
|
v: e.coordinatesLine[n].value,
|
|
845
857
|
s: e.suffix || "",
|
|
@@ -849,14 +861,14 @@ var st = /* @__PURE__ */ e({ default: () => yt }), ct = ["id"], lt = ["id"], ut
|
|
|
849
861
|
seriesIndex: n
|
|
850
862
|
}), K.value.left + K.value.slot * n + K.value.slot / 10 + (W.value.stacked ? 0 : K.value.slot / Q.value.length * t - (t === 0 ? 0 : K.value.slot / (5 * Q.value.length) * t)) + K.value.slot * .4 / (W.value.stacked ? 1 : Q.value.length), (e.coordinatesLine[n].value < 0 ? W.value.stacked ? e.localZero : q.value.zero : e.coordinatesLine[n].y) + V.value.offsetY, {
|
|
851
863
|
align: "center",
|
|
852
|
-
font: `${Math.round(
|
|
864
|
+
font: `${Math.round(E.value / 40 * V.value.fontSizeRatio)}px ${P.value.style.fontFamily}`,
|
|
853
865
|
color: V.value.useSerieColor ? e.color : V.value.color,
|
|
854
866
|
strokeColor: H.value.backgroundColor,
|
|
855
867
|
lineWidth: .8
|
|
856
868
|
});
|
|
857
869
|
});
|
|
858
870
|
}
|
|
859
|
-
function
|
|
871
|
+
function mr(e, t) {
|
|
860
872
|
let n = e.coordinatesLine.map((t, n) => e.series[n] != null && Number.isFinite(t?.y) ? t : null), r = [], i = [], a = [];
|
|
861
873
|
for (let e = 0; e < n.length; e += 1) {
|
|
862
874
|
let o = n[e];
|
|
@@ -898,7 +910,7 @@ var st = /* @__PURE__ */ e({ default: () => yt }), ct = ["id"], lt = ["id"], ut
|
|
|
898
910
|
singles: i
|
|
899
911
|
};
|
|
900
912
|
}
|
|
901
|
-
function
|
|
913
|
+
function hr(e) {
|
|
902
914
|
let t = e.coordinatesLine.map((t, n) => e.series[n] != null && Number.isFinite(t?.y) ? t : null), n = [], r = [];
|
|
903
915
|
for (let e = 0; e < t.length; e += 1) {
|
|
904
916
|
let i = t[e];
|
|
@@ -906,30 +918,30 @@ var st = /* @__PURE__ */ e({ default: () => yt }), ct = ["id"], lt = ["id"], ut
|
|
|
906
918
|
}
|
|
907
919
|
return r.length >= 2 && n.push(r), n;
|
|
908
920
|
}
|
|
909
|
-
function
|
|
910
|
-
if (
|
|
911
|
-
let t =
|
|
912
|
-
for (let n of t) d(
|
|
921
|
+
function gr(e) {
|
|
922
|
+
if (Rn.value) {
|
|
923
|
+
let t = hr(e);
|
|
924
|
+
for (let n of t) d(T.value, n, {
|
|
913
925
|
color: e.color,
|
|
914
926
|
lineWidth: 3
|
|
915
927
|
});
|
|
916
|
-
} else d(
|
|
928
|
+
} else d(T.value, e.coordinatesLine, {
|
|
917
929
|
color: e.color,
|
|
918
930
|
lineWidth: 3
|
|
919
931
|
});
|
|
920
932
|
}
|
|
921
|
-
function
|
|
922
|
-
let t = !!
|
|
933
|
+
function _r(e) {
|
|
934
|
+
let t = !!Rn.value;
|
|
923
935
|
if (e.useArea) {
|
|
924
936
|
let n = W.value.stacked ? e.localZero : q.value.zero;
|
|
925
937
|
if (t) {
|
|
926
|
-
let { polygons: t, singles: r } =
|
|
927
|
-
for (let n of t)
|
|
938
|
+
let { polygons: t, singles: r } = mr(e, n);
|
|
939
|
+
for (let n of t) je(T.value, n, {
|
|
928
940
|
fillColor: c(e.color, H.value.area.opacity),
|
|
929
941
|
strokeColor: "transparent"
|
|
930
942
|
});
|
|
931
|
-
let i =
|
|
932
|
-
for (let t of r)
|
|
943
|
+
let i = E.value / 200 * H.value.line.plots.radiusRatio;
|
|
944
|
+
for (let t of r) Ae(T.value, {
|
|
933
945
|
x: t.x,
|
|
934
946
|
y: t.y
|
|
935
947
|
}, i, {
|
|
@@ -945,7 +957,7 @@ var st = /* @__PURE__ */ e({ default: () => yt }), ct = ["id"], lt = ["id"], ut
|
|
|
945
957
|
x: e.coordinatesLine.at(-1).x,
|
|
946
958
|
y: n
|
|
947
959
|
};
|
|
948
|
-
|
|
960
|
+
je(T.value, [
|
|
949
961
|
t,
|
|
950
962
|
...e.coordinatesLine,
|
|
951
963
|
r
|
|
@@ -954,28 +966,28 @@ var st = /* @__PURE__ */ e({ default: () => yt }), ct = ["id"], lt = ["id"], ut
|
|
|
954
966
|
strokeColor: "transparent"
|
|
955
967
|
});
|
|
956
968
|
}
|
|
957
|
-
|
|
969
|
+
gr(e);
|
|
958
970
|
return;
|
|
959
971
|
}
|
|
960
|
-
|
|
972
|
+
gr(e);
|
|
961
973
|
}
|
|
962
|
-
function
|
|
974
|
+
function vr() {
|
|
963
975
|
Y.value.forEach((e, t) => {
|
|
964
|
-
d(
|
|
976
|
+
d(T.value, [{
|
|
965
977
|
x: K.value.left,
|
|
966
978
|
y: K.value.bottom - e.yOffset
|
|
967
979
|
}, {
|
|
968
980
|
x: K.value.right,
|
|
969
981
|
y: K.value.bottom - e.yOffset
|
|
970
982
|
}], {
|
|
971
|
-
color:
|
|
983
|
+
color: an.value.color,
|
|
972
984
|
lineWidth: 1
|
|
973
985
|
});
|
|
974
986
|
});
|
|
975
987
|
}
|
|
976
|
-
function
|
|
988
|
+
function yr() {
|
|
977
989
|
let { left: e, top: t, width: n, height: r } = K.value, i = X.value.start, a = X.value.end - i, o = n / a, s = Z.value.start - i, c = Z.value.end - i, l = Math.max(0, Math.min(a, s)), u = Math.max(0, Math.min(a, c));
|
|
978
|
-
|
|
990
|
+
Ne(T.value, [
|
|
979
991
|
{
|
|
980
992
|
x: e + l * o,
|
|
981
993
|
y: t
|
|
@@ -1004,70 +1016,70 @@ var st = /* @__PURE__ */ e({ default: () => yt }), ct = ["id"], lt = ["id"], ut
|
|
|
1004
1016
|
lineWidth: H.value.zoom.preview.strokeWidth
|
|
1005
1017
|
});
|
|
1006
1018
|
}
|
|
1007
|
-
function
|
|
1008
|
-
|
|
1009
|
-
(e.type === "line" || !e.type) &&
|
|
1010
|
-
}), U.value && (Ft.value =
|
|
1011
|
-
let t =
|
|
1012
|
-
(e.type === "line" || !e.type || e.type === "plot") && n && Number.isFinite(n.x) && Number.isFinite(n.y) &&
|
|
1019
|
+
function br() {
|
|
1020
|
+
N.value && U.value && T.value && ($n(), k.value ? ((D.value !== null || j.value !== null) && H.value.selector.show && dr(), pr(), W.value.stacked && B.value.x.showAxis && vr(), Zn.value.forEach((e) => {
|
|
1021
|
+
(e.type === "line" || !e.type) && _r(e), A.value && (er(e), W.value.showDataLabels && [!0, void 0].includes(e.dataLabels) && rr(e));
|
|
1022
|
+
}), U.value && (Ft.value = Me(U.value))) : (Ft.value && (T.value.clearRect(0, 0, 1e4, 1e4), T.value.drawImage(Ft.value, 0, 0)), (D.value !== null || j.value !== null) && H.value.selector.show && dr(), (D.value !== null || j.value !== null) && Y.value.forEach((e) => {
|
|
1023
|
+
let t = D.value ?? j.value, n = e.coordinatesLine[t];
|
|
1024
|
+
(e.type === "line" || !e.type || e.type === "plot") && n && Number.isFinite(n.x) && Number.isFinite(n.y) && Ae(T.value, {
|
|
1013
1025
|
x: n.x,
|
|
1014
1026
|
y: n.y
|
|
1015
|
-
},
|
|
1027
|
+
}, E.value / 150 * H.value.line.plots.radiusRatio, {
|
|
1016
1028
|
color: H.value.backgroundColor,
|
|
1017
1029
|
fillStyle: e.color,
|
|
1018
1030
|
strokeColor: "transparent"
|
|
1019
1031
|
});
|
|
1020
|
-
})), z.value.show &&
|
|
1021
|
-
}
|
|
1022
|
-
let
|
|
1023
|
-
|
|
1024
|
-
}, G.value > 200 ? 10 : 1, !
|
|
1025
|
-
function
|
|
1026
|
-
if ([null, void 0].includes(
|
|
1027
|
-
let { y: t, value: n } = e.coordinatesLine[
|
|
1032
|
+
})), z.value.show && ur(), H.value.selector.show && H.value.selector.showHorizontalSelector && fr(), nr(), tr(), H.value.zoom.preview.enable && (X.value.start !== Z.value.start || X.value.end !== Z.value.end) && yr(), k.value = !1);
|
|
1033
|
+
}
|
|
1034
|
+
let xr = Oe(() => {
|
|
1035
|
+
A.value = !0, Qn();
|
|
1036
|
+
}, G.value > 200 ? 10 : 1, !A.value);
|
|
1037
|
+
function Sr(e) {
|
|
1038
|
+
if ([null, void 0].includes(D.value ?? j.value) || !e.coordinatesLine[D.value ?? j.value]) return !1;
|
|
1039
|
+
let { y: t, value: n } = e.coordinatesLine[D.value ?? j.value];
|
|
1028
1040
|
return {
|
|
1029
1041
|
y: t,
|
|
1030
1042
|
value: n
|
|
1031
1043
|
};
|
|
1032
1044
|
}
|
|
1033
|
-
function
|
|
1034
|
-
if (!N.value || !U.value ||
|
|
1045
|
+
function Cr(e) {
|
|
1046
|
+
if (!N.value || !U.value || On.value) return;
|
|
1035
1047
|
let { left: t, top: r } = U.value.getBoundingClientRect(), i = e.clientX - t;
|
|
1036
|
-
if (
|
|
1037
|
-
|
|
1048
|
+
if (Gt.value = (e.clientY - r) * 2, (Gt.value < K.value.top || Gt.value > K.value.bottom) && (Gt.value = null), i * 2 < K.value.left || i * 2 > K.value.right) {
|
|
1049
|
+
Or();
|
|
1038
1050
|
return;
|
|
1039
1051
|
}
|
|
1040
1052
|
let a = i * 2 - K.value.left, o = Math.floor(a / K.value.slot);
|
|
1041
|
-
if (
|
|
1053
|
+
if (D.value = o, M.value = o, jt.value = !0, $t.value = !1, !A.value) return;
|
|
1042
1054
|
let s = "", c = I.value.customFormat, l = Y.value.map((e) => ({
|
|
1043
1055
|
shape: e.shape || null,
|
|
1044
1056
|
name: e.name,
|
|
1045
1057
|
color: e.color,
|
|
1046
1058
|
type: e.type || "line",
|
|
1047
|
-
value: e.series.find((e, t) => t ===
|
|
1059
|
+
value: e.series.find((e, t) => t === D.value)
|
|
1048
1060
|
}));
|
|
1049
1061
|
Nt.value = {
|
|
1050
|
-
timeLabel: z.value.values.slice(X.value.start, X.value.end)[
|
|
1062
|
+
timeLabel: z.value.values.slice(X.value.start, X.value.end)[D.value] ? I.value.useDefaultTimeFormat ? $.value.slice(X.value.start, X.value.end)[D.value]?.text : lr.value[D.value]?.text : "",
|
|
1051
1063
|
datapoint: l,
|
|
1052
|
-
seriesIndex:
|
|
1064
|
+
seriesIndex: D.value,
|
|
1053
1065
|
series: Y.value,
|
|
1054
1066
|
config: P.value
|
|
1055
|
-
},
|
|
1056
|
-
seriesIndex:
|
|
1067
|
+
}, Mr({
|
|
1068
|
+
seriesIndex: D.value,
|
|
1057
1069
|
datapoint: l
|
|
1058
|
-
}), n(c) &&
|
|
1059
|
-
seriesIndex:
|
|
1070
|
+
}), n(c) && se(() => c({
|
|
1071
|
+
seriesIndex: D.value,
|
|
1060
1072
|
datapoint: l,
|
|
1061
1073
|
series: Y.value,
|
|
1062
1074
|
config: P.value
|
|
1063
1075
|
})) ? Mt.value = c({
|
|
1064
|
-
seriesIndex:
|
|
1076
|
+
seriesIndex: D.value,
|
|
1065
1077
|
datapoint: l,
|
|
1066
1078
|
series: Y.value,
|
|
1067
1079
|
config: P.value
|
|
1068
|
-
}) : (z.value.values.slice(X.value.start, X.value.end)[
|
|
1080
|
+
}) : (z.value.values.slice(X.value.start, X.value.end)[D.value] ? s += `<div style="padding-bottom: 6px; margin-bottom: 4px; border-bottom: 1px solid ${I.value.borderColor}; width:100%">${I.value.useDefaultTimeFormat ? $.value.slice(X.value.start, X.value.end)[D.value]?.text : lr.value[D.value]?.text}</div>` : s += `<div style="padding-bottom: 6px; margin-bottom: 4px; border-bottom: 1px solid ${I.value.borderColor}; width:100%">${$.value[D.value + X.value.start]?.text ?? ""}</div>`, s += Ln.value.join(""), Mt.value = s), A.value = !1;
|
|
1069
1081
|
}
|
|
1070
|
-
function
|
|
1082
|
+
function wr(e) {
|
|
1071
1083
|
return Y.value.map((t) => ({
|
|
1072
1084
|
shape: t.shape || null,
|
|
1073
1085
|
name: t.name,
|
|
@@ -1076,12 +1088,12 @@ var st = /* @__PURE__ */ e({ default: () => yt }), ct = ["id"], lt = ["id"], ut
|
|
|
1076
1088
|
value: t.series.find((t, n) => n === e)
|
|
1077
1089
|
}));
|
|
1078
1090
|
}
|
|
1079
|
-
function
|
|
1080
|
-
let t = "", r = I.value.customFormat, i =
|
|
1081
|
-
return
|
|
1091
|
+
function Tr(e) {
|
|
1092
|
+
let t = "", r = I.value.customFormat, i = wr(e);
|
|
1093
|
+
return Mr({
|
|
1082
1094
|
seriesIndex: e,
|
|
1083
1095
|
datapoint: i
|
|
1084
|
-
}), n(r) &&
|
|
1096
|
+
}), n(r) && se(() => r({
|
|
1085
1097
|
seriesIndex: e,
|
|
1086
1098
|
datapoint: i,
|
|
1087
1099
|
series: Y.value,
|
|
@@ -1091,83 +1103,83 @@ var st = /* @__PURE__ */ e({ default: () => yt }), ct = ["id"], lt = ["id"], ut
|
|
|
1091
1103
|
datapoint: i,
|
|
1092
1104
|
series: Y.value,
|
|
1093
1105
|
config: P.value
|
|
1094
|
-
}) : (z.value.values.slice(X.value.start, X.value.end)[e] ? t += `<div style="padding-bottom: 6px; margin-bottom: 4px; border-bottom: 1px solid ${I.value.borderColor}; width:100%">${I.value.useDefaultTimeFormat ? $.value.slice(X.value.start, X.value.end)[e]?.text :
|
|
1106
|
+
}) : (z.value.values.slice(X.value.start, X.value.end)[e] ? t += `<div style="padding-bottom: 6px; margin-bottom: 4px; border-bottom: 1px solid ${I.value.borderColor}; width:100%">${I.value.useDefaultTimeFormat ? $.value.slice(X.value.start, X.value.end)[e]?.text : lr.value[e]?.text}</div>` : t += `<div style="padding-bottom: 6px; margin-bottom: 4px; border-bottom: 1px solid ${I.value.borderColor}; width:100%">${$.value[e + X.value.start]?.text ?? ""}</div>`, t += Ln.value.join(""), t);
|
|
1095
1107
|
}
|
|
1096
|
-
function
|
|
1108
|
+
function Er(e) {
|
|
1097
1109
|
if (!U.value || !K.value?.slot) return;
|
|
1098
1110
|
let t = U.value.getBoundingClientRect(), n = t.width / K.value.canvasWidth, r = t.height / K.value.canvasHeight, i = K.value.left + K.value.slot * e + K.value.slot / 2, a = K.value.top + K.value.height / 2;
|
|
1099
|
-
|
|
1111
|
+
tn.value = {
|
|
1100
1112
|
x: t.left + i * n,
|
|
1101
1113
|
y: t.top + a * r
|
|
1102
1114
|
};
|
|
1103
1115
|
}
|
|
1104
|
-
function
|
|
1105
|
-
|
|
1116
|
+
function Dr(e, { fromKeyboard: t = !1 } = {}) {
|
|
1117
|
+
N.value && !On.value && e != null && (e < 0 || e >= X.value.end - X.value.start || (D.value = e, M.value = e, jt.value = !0, $t.value = t, Mt.value = Tr(e), t && Er(e), A.value = !1, br()));
|
|
1106
1118
|
}
|
|
1107
|
-
function
|
|
1108
|
-
jt.value = !1,
|
|
1119
|
+
function Or() {
|
|
1120
|
+
jt.value = !1, D.value = null, M.value = null, Mt.value = "", Gt.value = null, $t.value = !1, br();
|
|
1109
1121
|
}
|
|
1110
|
-
function
|
|
1111
|
-
|
|
1122
|
+
function kr() {
|
|
1123
|
+
en.value = !0;
|
|
1112
1124
|
}
|
|
1113
|
-
function
|
|
1114
|
-
|
|
1125
|
+
function Ar() {
|
|
1126
|
+
en.value = !1, Or();
|
|
1115
1127
|
}
|
|
1116
|
-
function
|
|
1117
|
-
if (!U.value ||
|
|
1128
|
+
function jr(e) {
|
|
1129
|
+
if (!U.value || $r.value || document.activeElement !== U.value) return;
|
|
1118
1130
|
let t = e.key === "ArrowLeft", n = e.key === "ArrowRight";
|
|
1119
1131
|
if (!t && !n) return;
|
|
1120
1132
|
let r = X.value.end - X.value.start;
|
|
1121
1133
|
if (r <= 0) return;
|
|
1122
1134
|
e.preventDefault(), e.stopPropagation();
|
|
1123
1135
|
let i = M.value;
|
|
1124
|
-
i !== null && i >= 0 && i < r ? n ? (i += 1, i >= r && (i = 0)) : (--i, i < 0 && (i = r - 1)) : i = n ? 0 : r - 1,
|
|
1136
|
+
i !== null && i >= 0 && i < r ? n ? (i += 1, i >= r && (i = 0)) : (--i, i < 0 && (i = r - 1)) : i = n ? 0 : r - 1, Dr(i, { fromKeyboard: !0 });
|
|
1125
1137
|
}
|
|
1126
|
-
function
|
|
1138
|
+
function Mr({ seriesIndex: e, datapoint: t }) {
|
|
1127
1139
|
let n = X.value.start + e;
|
|
1128
|
-
|
|
1140
|
+
nn("selectX", {
|
|
1129
1141
|
dataset: t,
|
|
1130
1142
|
index: n,
|
|
1131
1143
|
indexLabel: ""
|
|
1132
1144
|
});
|
|
1133
1145
|
}
|
|
1134
|
-
|
|
1135
|
-
if ([null, void 0].includes(
|
|
1136
|
-
|
|
1146
|
+
S(() => w.selectedXIndex, (e) => {
|
|
1147
|
+
if ([null, void 0].includes(w.selectedXIndex)) {
|
|
1148
|
+
Or();
|
|
1137
1149
|
return;
|
|
1138
1150
|
}
|
|
1139
1151
|
let t = e - X.value.start;
|
|
1140
|
-
t < 0 || e >= X.value.end ?
|
|
1141
|
-
}, { immediate: !0 }),
|
|
1142
|
-
|
|
1143
|
-
}),
|
|
1144
|
-
|
|
1145
|
-
}, { deep: !0 }),
|
|
1146
|
-
|
|
1147
|
-
}, { deep: !0 }),
|
|
1148
|
-
|
|
1149
|
-
}),
|
|
1150
|
-
e &&
|
|
1151
|
-
}),
|
|
1152
|
-
|
|
1152
|
+
t < 0 || e >= X.value.end ? Or() : Dr(t, { fromKeyboard: !1 });
|
|
1153
|
+
}, { immediate: !0 }), S(() => D.value, (e) => {
|
|
1154
|
+
xr();
|
|
1155
|
+
}), S(() => X.value, (e) => {
|
|
1156
|
+
k.value = !0, br();
|
|
1157
|
+
}, { deep: !0 }), S(() => Z.value, (e) => {
|
|
1158
|
+
br();
|
|
1159
|
+
}, { deep: !0 }), S(() => W.value.showDataLabels, (e) => {
|
|
1160
|
+
k.value = !0, br();
|
|
1161
|
+
}), S(() => Gt.value, (e) => {
|
|
1162
|
+
e && br();
|
|
1163
|
+
}), S(() => W.value.stacked, (e) => {
|
|
1164
|
+
k.value = !0, A.value = !0, xr();
|
|
1153
1165
|
});
|
|
1154
|
-
function
|
|
1155
|
-
|
|
1166
|
+
function Nr() {
|
|
1167
|
+
Or();
|
|
1156
1168
|
}
|
|
1157
|
-
let
|
|
1169
|
+
let Pr = nt(null), Fr = nt(null), Ir = nt(null);
|
|
1158
1170
|
et(() => {
|
|
1159
|
-
|
|
1171
|
+
Kt.value = !0, Lr();
|
|
1160
1172
|
});
|
|
1161
|
-
function
|
|
1162
|
-
if (o(
|
|
1173
|
+
function Lr() {
|
|
1174
|
+
if (o(w.dataset) && ce({
|
|
1163
1175
|
componentName: "VueUiXyCanvas",
|
|
1164
1176
|
type: "dataset",
|
|
1165
|
-
debug:
|
|
1177
|
+
debug: ln.value
|
|
1166
1178
|
}), Xe(() => {
|
|
1167
|
-
U.value && !
|
|
1179
|
+
U.value && !T.value && (T.value = U.value.getContext("2d", { willReadFrequently: !0 })), T.value && N.value && (k.value = !0, A.value = !0, Qn());
|
|
1168
1180
|
}), P.value.responsive) {
|
|
1169
|
-
let e =
|
|
1170
|
-
let { width: e, height: t } =
|
|
1181
|
+
let e = ke(() => {
|
|
1182
|
+
let { width: e, height: t } = Pe({
|
|
1171
1183
|
chart: Ot.value,
|
|
1172
1184
|
title: H.value.title.text ? Rt.value : null,
|
|
1173
1185
|
legend: H.value.legend.show ? zt.value : null,
|
|
@@ -1175,58 +1187,58 @@ var st = /* @__PURE__ */ e({ default: () => yt }), ct = ["id"], lt = ["id"], ut
|
|
|
1175
1187
|
source: Vt.value
|
|
1176
1188
|
});
|
|
1177
1189
|
requestAnimationFrame(() => {
|
|
1178
|
-
|
|
1190
|
+
xn.value = `${e} / ${t}`;
|
|
1179
1191
|
});
|
|
1180
1192
|
});
|
|
1181
|
-
|
|
1193
|
+
Pr.value && (Fr.value && Pr.value.unobserve(Fr.value), Pr.value.disconnect()), Pr.value = new ResizeObserver(e), Fr.value = Ot.value.parentNode, Pr.value.observe(Fr.value);
|
|
1182
1194
|
}
|
|
1183
|
-
|
|
1184
|
-
for (let t of e) t.contentBoxSize && kt.value && (
|
|
1185
|
-
}),
|
|
1195
|
+
Ir.value && Ir.value.disconnect(), Ir.value = new ResizeObserver(async (e) => {
|
|
1196
|
+
for (let t of e) t.contentBoxSize && kt.value && (k.value = !0, xr());
|
|
1197
|
+
}), Ir.value.observe(kt.value), Un();
|
|
1186
1198
|
}
|
|
1187
1199
|
$e(() => {
|
|
1188
|
-
|
|
1200
|
+
Ir.value && Ir.value.disconnect(), Pr.value && (Fr.value && Pr.value.unobserve(Fr.value), Pr.value.disconnect());
|
|
1189
1201
|
});
|
|
1190
|
-
function
|
|
1191
|
-
|
|
1192
|
-
|
|
1193
|
-
}),
|
|
1202
|
+
function Rr() {
|
|
1203
|
+
O.value.length ? O.value = [] : Ur.value.forEach((e, t) => {
|
|
1204
|
+
O.value.push(t);
|
|
1205
|
+
}), k.value = !0, xr(), nn("selectLegend", Y.value);
|
|
1194
1206
|
}
|
|
1195
|
-
function
|
|
1196
|
-
|
|
1207
|
+
function zr(e) {
|
|
1208
|
+
O.value.includes(e) ? O.value = O.value.filter((t) => t !== e) : O.value.push(e), k.value = !0, xr(), nn("selectLegend", Y.value);
|
|
1197
1209
|
}
|
|
1198
|
-
function
|
|
1199
|
-
return J.value.length ? J.value.find((t) => t.name === e) || (
|
|
1210
|
+
function Br(e) {
|
|
1211
|
+
return J.value.length ? J.value.find((t) => t.name === e) || (ln.value && console.warn(`VueUiXyCanvas - Series name not found "${e}"`), null) : (ln.value && console.warn("VueUiXyCanvas - There are no series to show."), null);
|
|
1200
1212
|
}
|
|
1201
|
-
function
|
|
1202
|
-
let t =
|
|
1203
|
-
t !== null &&
|
|
1213
|
+
function Vr(e) {
|
|
1214
|
+
let t = Br(e);
|
|
1215
|
+
t !== null && O.value.includes(t.absoluteIndex) && zr(t.absoluteIndex);
|
|
1204
1216
|
}
|
|
1205
|
-
function
|
|
1206
|
-
let t =
|
|
1207
|
-
t !== null && (
|
|
1217
|
+
function Hr(e) {
|
|
1218
|
+
let t = Br(e);
|
|
1219
|
+
t !== null && (O.value.includes(t.absoluteIndex) || zr(t.absoluteIndex));
|
|
1208
1220
|
}
|
|
1209
|
-
let
|
|
1221
|
+
let Ur = f(() => J.value.map((e, t) => ({
|
|
1210
1222
|
...e,
|
|
1211
1223
|
name: e.name,
|
|
1212
|
-
color: s(e.color) ||
|
|
1224
|
+
color: s(e.color) || Dn.value[t] || i[t] || i[t % i.length],
|
|
1213
1225
|
shape: e.shape || "circle",
|
|
1214
1226
|
prefix: e.prefix || "",
|
|
1215
1227
|
suffix: e.suffix || "",
|
|
1216
1228
|
rounding: e.rounding || 0
|
|
1217
1229
|
})).map((e) => ({
|
|
1218
1230
|
...e,
|
|
1219
|
-
opacity:
|
|
1220
|
-
segregate: () =>
|
|
1221
|
-
isSegregated:
|
|
1222
|
-
}))),
|
|
1231
|
+
opacity: O.value.includes(e.absoluteIndex) ? .5 : 1,
|
|
1232
|
+
segregate: () => zr(e.absoluteIndex),
|
|
1233
|
+
isSegregated: O.value.includes(e.absoluteIndex)
|
|
1234
|
+
}))), Wr = f(() => ({
|
|
1223
1235
|
cy: "donut-div-legend",
|
|
1224
1236
|
backgroundColor: H.value.legend.backgroundColor,
|
|
1225
1237
|
color: H.value.legend.color,
|
|
1226
1238
|
fontSize: H.value.legend.fontSize,
|
|
1227
1239
|
paddingBottom: 12,
|
|
1228
1240
|
fontWeight: H.value.legend.bold ? "bold" : ""
|
|
1229
|
-
})),
|
|
1241
|
+
})), Gr = f(() => {
|
|
1230
1242
|
let e = [""].concat(Y.value.map((e) => e.name), "__SUM__"), t = [];
|
|
1231
1243
|
for (let e = 0; e < G.value; e += 1) {
|
|
1232
1244
|
let n = Y.value.map((t) => t.series[e] ?? 0).reduce((e, t) => e + t, 0);
|
|
@@ -1251,7 +1263,7 @@ var st = /* @__PURE__ */ e({ default: () => yt }), ct = ["id"], lt = ["id"], ut
|
|
|
1251
1263
|
config: n,
|
|
1252
1264
|
colNames: r
|
|
1253
1265
|
};
|
|
1254
|
-
}),
|
|
1266
|
+
}), Kr = f(() => {
|
|
1255
1267
|
if (Y.value.length === 0) return {
|
|
1256
1268
|
head: [],
|
|
1257
1269
|
body: [],
|
|
@@ -1274,39 +1286,39 @@ var st = /* @__PURE__ */ e({ default: () => yt }), ct = ["id"], lt = ["id"], ut
|
|
|
1274
1286
|
body: t
|
|
1275
1287
|
};
|
|
1276
1288
|
});
|
|
1277
|
-
function
|
|
1289
|
+
function qr(e = null) {
|
|
1278
1290
|
let n = [
|
|
1279
1291
|
[H.value.title.text],
|
|
1280
1292
|
[H.value.title.subtitle.text],
|
|
1281
1293
|
[""]
|
|
1282
|
-
], i = ["", ...
|
|
1294
|
+
], i = ["", ...Kr.value.head.map((e) => e.label)], a = Kr.value.body, o = n.concat([i]).concat(a), s = r(o);
|
|
1283
1295
|
e ? e(s) : t({
|
|
1284
1296
|
csvContent: s,
|
|
1285
1297
|
title: H.value.title.text || "vue-ui-xy-canvas"
|
|
1286
1298
|
});
|
|
1287
1299
|
}
|
|
1288
|
-
function
|
|
1300
|
+
function Jr() {
|
|
1289
1301
|
return Y.value;
|
|
1290
1302
|
}
|
|
1291
|
-
function
|
|
1303
|
+
function Yr() {
|
|
1292
1304
|
W.value.showTable = !W.value.showTable;
|
|
1293
1305
|
}
|
|
1294
|
-
function
|
|
1306
|
+
function Xr() {
|
|
1295
1307
|
W.value.showDataLabels = !W.value.showDataLabels;
|
|
1296
1308
|
}
|
|
1297
|
-
function
|
|
1309
|
+
function Zr() {
|
|
1298
1310
|
W.value.stacked = !W.value.stacked;
|
|
1299
1311
|
}
|
|
1300
|
-
function
|
|
1312
|
+
function Qr() {
|
|
1301
1313
|
W.value.showTooltip = !W.value.showTooltip;
|
|
1302
1314
|
}
|
|
1303
|
-
let
|
|
1304
|
-
function
|
|
1305
|
-
|
|
1315
|
+
let $r = y(!1);
|
|
1316
|
+
function ei() {
|
|
1317
|
+
$r.value = !$r.value;
|
|
1306
1318
|
}
|
|
1307
|
-
async function
|
|
1319
|
+
async function ti({ scale: e = 2 } = {}) {
|
|
1308
1320
|
if (!Ot.value) return;
|
|
1309
|
-
let { imageUri: t, base64: n } = await
|
|
1321
|
+
let { imageUri: t, base64: n } = await we({
|
|
1310
1322
|
domElement: Ot.value,
|
|
1311
1323
|
base64: !0,
|
|
1312
1324
|
img: !0,
|
|
@@ -1315,7 +1327,7 @@ var st = /* @__PURE__ */ e({ default: () => yt }), ct = ["id"], lt = ["id"], ut
|
|
|
1315
1327
|
width: r.width,
|
|
1316
1328
|
height: r.height,
|
|
1317
1329
|
aspectRatio: r.height ? r.width / r.height : 0
|
|
1318
|
-
}, a = await
|
|
1330
|
+
}, a = await ue(t, e) ?? i;
|
|
1319
1331
|
return {
|
|
1320
1332
|
imageUri: t,
|
|
1321
1333
|
base64: n,
|
|
@@ -1323,10 +1335,10 @@ var st = /* @__PURE__ */ e({ default: () => yt }), ct = ["id"], lt = ["id"], ut
|
|
|
1323
1335
|
...a
|
|
1324
1336
|
};
|
|
1325
1337
|
}
|
|
1326
|
-
let
|
|
1338
|
+
let ni = f(() => {
|
|
1327
1339
|
let e = P.value.table.useDialog && !P.value.table.show, t = W.value.showTable;
|
|
1328
1340
|
return {
|
|
1329
|
-
component: e ? Ct :
|
|
1341
|
+
component: e ? Ct : Le,
|
|
1330
1342
|
title: `${H.value.title.text}${H.value.title.subtitle.text ? `: ${H.value.title.subtitle.text}` : ""}`,
|
|
1331
1343
|
props: e ? {
|
|
1332
1344
|
backgroundColor: P.value.table.th.backgroundColor,
|
|
@@ -1336,7 +1348,7 @@ var st = /* @__PURE__ */ e({ default: () => yt }), ct = ["id"], lt = ["id"], ut
|
|
|
1336
1348
|
isFullscreen: Lt.value,
|
|
1337
1349
|
fullscreenParent: Ot.value,
|
|
1338
1350
|
forcedWidth: Math.min(800, window.innerWidth * .8),
|
|
1339
|
-
isCursorPointer:
|
|
1351
|
+
isCursorPointer: cn.value
|
|
1340
1352
|
} : {
|
|
1341
1353
|
hideDetails: !0,
|
|
1342
1354
|
config: {
|
|
@@ -1354,25 +1366,25 @@ var st = /* @__PURE__ */ e({ default: () => yt }), ct = ["id"], lt = ["id"], ut
|
|
|
1354
1366
|
}
|
|
1355
1367
|
};
|
|
1356
1368
|
});
|
|
1357
|
-
|
|
1358
|
-
P.value.table.show || (e && P.value.table.useDialog &&
|
|
1369
|
+
S(() => W.value.showTable, (e) => {
|
|
1370
|
+
P.value.table.show || (e && P.value.table.useDialog && qt.value ? qt.value.open() : "close" in qt.value && qt.value.close());
|
|
1359
1371
|
});
|
|
1360
|
-
function
|
|
1361
|
-
W.value.showTable = !1,
|
|
1372
|
+
function ri() {
|
|
1373
|
+
W.value.showTable = !1, Jt.value && Jt.value.setTableIconState(!1);
|
|
1362
1374
|
}
|
|
1363
|
-
function
|
|
1375
|
+
function ii(e) {
|
|
1364
1376
|
if (e?.stage === "start") {
|
|
1365
|
-
|
|
1377
|
+
Qt.value = !0;
|
|
1366
1378
|
return;
|
|
1367
1379
|
}
|
|
1368
1380
|
if (e?.stage === "end") {
|
|
1369
|
-
|
|
1381
|
+
Qt.value = !1;
|
|
1370
1382
|
return;
|
|
1371
1383
|
}
|
|
1372
|
-
|
|
1384
|
+
Tn();
|
|
1373
1385
|
}
|
|
1374
|
-
async function
|
|
1375
|
-
if (
|
|
1386
|
+
async function ai() {
|
|
1387
|
+
if (nn("copyAlt", {
|
|
1376
1388
|
config: P.value,
|
|
1377
1389
|
dataset: Y.value
|
|
1378
1390
|
}), !F.value.callbacks.altCopy) {
|
|
@@ -1384,41 +1396,41 @@ var st = /* @__PURE__ */ e({ default: () => yt }), ct = ["id"], lt = ["id"], ut
|
|
|
1384
1396
|
dataset: Y.value
|
|
1385
1397
|
}));
|
|
1386
1398
|
}
|
|
1387
|
-
return
|
|
1388
|
-
getData:
|
|
1389
|
-
getImage:
|
|
1390
|
-
generateCsv:
|
|
1391
|
-
generatePdf:
|
|
1392
|
-
generateImage:
|
|
1393
|
-
hideSeries:
|
|
1394
|
-
showSeries:
|
|
1395
|
-
toggleTable:
|
|
1396
|
-
toggleLabels:
|
|
1397
|
-
toggleStack:
|
|
1398
|
-
toggleTooltip:
|
|
1399
|
-
toggleAnnotator:
|
|
1400
|
-
toggleFullscreen:
|
|
1401
|
-
copyAlt:
|
|
1402
|
-
}), (t, r) => (
|
|
1399
|
+
return Ee({
|
|
1400
|
+
getData: Jr,
|
|
1401
|
+
getImage: ti,
|
|
1402
|
+
generateCsv: qr,
|
|
1403
|
+
generatePdf: wn,
|
|
1404
|
+
generateImage: Tn,
|
|
1405
|
+
hideSeries: Hr,
|
|
1406
|
+
showSeries: Vr,
|
|
1407
|
+
toggleTable: Yr,
|
|
1408
|
+
toggleLabels: Xr,
|
|
1409
|
+
toggleStack: Zr,
|
|
1410
|
+
toggleTooltip: Qr,
|
|
1411
|
+
toggleAnnotator: ei,
|
|
1412
|
+
toggleFullscreen: En,
|
|
1413
|
+
copyAlt: ai
|
|
1414
|
+
}), (t, r) => (v(), We("div", {
|
|
1403
1415
|
style: Qe(`width:100%; position:relative; ${P.value.responsive ? "height: 100%" : ""}; background:${P.value.style.chart.backgroundColor};`),
|
|
1404
1416
|
ref_key: "xy",
|
|
1405
1417
|
ref: Ot,
|
|
1406
1418
|
id: `xy_canvas_${Dt.value}`,
|
|
1407
1419
|
class: Ze(`vue-data-ui-component vue-ui-xy-canvas ${Lt.value ? "vue-data-ui-wrapper-fullscreen" : ""}`),
|
|
1408
|
-
onMouseenter:
|
|
1409
|
-
onMouseleave:
|
|
1420
|
+
onMouseenter: gn,
|
|
1421
|
+
onMouseleave: _n
|
|
1410
1422
|
}, [
|
|
1411
|
-
|
|
1423
|
+
h("div", {
|
|
1412
1424
|
id: `chart-instructions-${Dt.value}`,
|
|
1413
1425
|
class: "sr-only"
|
|
1414
|
-
}, [
|
|
1415
|
-
|
|
1416
|
-
P.value.style.chart.title.text ? (
|
|
1426
|
+
}, [h("p", null, rt(P.value.a11y.translations.keyboardNavigation), 1)], 8, lt),
|
|
1427
|
+
h("div", ut, rt(sn.value), 1),
|
|
1428
|
+
P.value.style.chart.title.text ? (v(), We("div", {
|
|
1417
1429
|
key: 0,
|
|
1418
1430
|
ref_key: "chartTitle",
|
|
1419
1431
|
ref: Rt,
|
|
1420
1432
|
style: Qe(`width:100%;background:${P.value.style.chart.backgroundColor};`)
|
|
1421
|
-
}, [(
|
|
1433
|
+
}, [(v(), p(Te, {
|
|
1422
1434
|
key: `title_${Ht.value}`,
|
|
1423
1435
|
config: {
|
|
1424
1436
|
title: {
|
|
@@ -1430,16 +1442,16 @@ var st = /* @__PURE__ */ e({ default: () => yt }), ct = ["id"], lt = ["id"], ut
|
|
|
1430
1442
|
...P.value.style.chart.title.subtitle
|
|
1431
1443
|
}
|
|
1432
1444
|
}
|
|
1433
|
-
}, null, 8, ["config"]))], 4)) :
|
|
1434
|
-
|
|
1435
|
-
F.value.show && N.value && (
|
|
1445
|
+
}, null, 8, ["config"]))], 4)) : m("", !0),
|
|
1446
|
+
h("div", { id: `legend-top-${Dt.value}` }, null, 8, dt),
|
|
1447
|
+
F.value.show && N.value && (x(hn) || x(pn)) ? (v(), p(x(xt), {
|
|
1436
1448
|
ref_key: "userOptionsRef",
|
|
1437
|
-
ref:
|
|
1449
|
+
ref: Jt,
|
|
1438
1450
|
key: `user_option_${It.value}`,
|
|
1439
1451
|
backgroundColor: P.value.style.chart.backgroundColor,
|
|
1440
1452
|
color: P.value.style.chart.color,
|
|
1441
|
-
isPrinting:
|
|
1442
|
-
isImaging:
|
|
1453
|
+
isPrinting: x(Sn),
|
|
1454
|
+
isImaging: x(Cn),
|
|
1443
1455
|
uid: Dt.value,
|
|
1444
1456
|
hasTooltip: F.value.buttons.tooltip && I.value.show,
|
|
1445
1457
|
hasPdf: F.value.buttons.pdf,
|
|
@@ -1457,26 +1469,26 @@ var st = /* @__PURE__ */ e({ default: () => yt }), ct = ["id"], lt = ["id"], ut
|
|
|
1457
1469
|
chartElement: Ot.value,
|
|
1458
1470
|
position: F.value.position,
|
|
1459
1471
|
hasAnnotator: F.value.buttons.annotator,
|
|
1460
|
-
isAnnotation:
|
|
1472
|
+
isAnnotation: $r.value,
|
|
1461
1473
|
callbacks: F.value.callbacks,
|
|
1462
1474
|
printScale: F.value.print.scale,
|
|
1463
1475
|
tableDialog: P.value.table.useDialog,
|
|
1464
|
-
isCursorPointer:
|
|
1465
|
-
onToggleFullscreen:
|
|
1466
|
-
onGeneratePdf:
|
|
1467
|
-
onGenerateCsv:
|
|
1468
|
-
onGenerateImage:
|
|
1469
|
-
onToggleTable:
|
|
1470
|
-
onToggleLabels:
|
|
1471
|
-
onToggleStack:
|
|
1472
|
-
onToggleTooltip:
|
|
1473
|
-
onToggleAnnotator:
|
|
1474
|
-
onCopyAlt:
|
|
1475
|
-
style: Qe({ visibility:
|
|
1476
|
+
isCursorPointer: cn.value,
|
|
1477
|
+
onToggleFullscreen: En,
|
|
1478
|
+
onGeneratePdf: x(wn),
|
|
1479
|
+
onGenerateCsv: qr,
|
|
1480
|
+
onGenerateImage: ii,
|
|
1481
|
+
onToggleTable: Yr,
|
|
1482
|
+
onToggleLabels: Xr,
|
|
1483
|
+
onToggleStack: Zr,
|
|
1484
|
+
onToggleTooltip: Qr,
|
|
1485
|
+
onToggleAnnotator: ei,
|
|
1486
|
+
onCopyAlt: ai,
|
|
1487
|
+
style: Qe({ visibility: x(hn) ? x(pn) ? "visible" : "hidden" : "visible" })
|
|
1476
1488
|
}, Ge({ _: 2 }, [
|
|
1477
1489
|
t.$slots.menuIcon ? {
|
|
1478
1490
|
name: "menuIcon",
|
|
1479
|
-
fn:
|
|
1491
|
+
fn: C(({ isOpen: e, color: n }) => [b(t.$slots, "menuIcon", _(g({
|
|
1480
1492
|
isOpen: e,
|
|
1481
1493
|
color: n
|
|
1482
1494
|
})), void 0, !0)]),
|
|
@@ -1484,42 +1496,42 @@ var st = /* @__PURE__ */ e({ default: () => yt }), ct = ["id"], lt = ["id"], ut
|
|
|
1484
1496
|
} : void 0,
|
|
1485
1497
|
t.$slots.optionTooltip ? {
|
|
1486
1498
|
name: "optionTooltip",
|
|
1487
|
-
fn:
|
|
1499
|
+
fn: C(() => [b(t.$slots, "optionTooltip", {}, void 0, !0)]),
|
|
1488
1500
|
key: "1"
|
|
1489
1501
|
} : void 0,
|
|
1490
1502
|
t.$slots.optionPdf ? {
|
|
1491
1503
|
name: "optionPdf",
|
|
1492
|
-
fn:
|
|
1504
|
+
fn: C(() => [b(t.$slots, "optionPdf", {}, void 0, !0)]),
|
|
1493
1505
|
key: "2"
|
|
1494
1506
|
} : void 0,
|
|
1495
1507
|
t.$slots.optionCsv ? {
|
|
1496
1508
|
name: "optionCsv",
|
|
1497
|
-
fn:
|
|
1509
|
+
fn: C(() => [b(t.$slots, "optionCsv", {}, void 0, !0)]),
|
|
1498
1510
|
key: "3"
|
|
1499
1511
|
} : void 0,
|
|
1500
1512
|
t.$slots.optionImg ? {
|
|
1501
1513
|
name: "optionImg",
|
|
1502
|
-
fn:
|
|
1514
|
+
fn: C(() => [b(t.$slots, "optionImg", {}, void 0, !0)]),
|
|
1503
1515
|
key: "4"
|
|
1504
1516
|
} : void 0,
|
|
1505
1517
|
t.$slots.optionTable ? {
|
|
1506
1518
|
name: "optionTable",
|
|
1507
|
-
fn:
|
|
1519
|
+
fn: C(() => [b(t.$slots, "optionTable", {}, void 0, !0)]),
|
|
1508
1520
|
key: "5"
|
|
1509
1521
|
} : void 0,
|
|
1510
1522
|
t.$slots.optionLabels ? {
|
|
1511
1523
|
name: "optionLabels",
|
|
1512
|
-
fn:
|
|
1524
|
+
fn: C(() => [b(t.$slots, "optionLabels", {}, void 0, !0)]),
|
|
1513
1525
|
key: "6"
|
|
1514
1526
|
} : void 0,
|
|
1515
1527
|
t.$slots.optionStack ? {
|
|
1516
1528
|
name: "optionStack",
|
|
1517
|
-
fn:
|
|
1529
|
+
fn: C(() => [b(t.$slots, "optionStack", {}, void 0, !0)]),
|
|
1518
1530
|
key: "7"
|
|
1519
1531
|
} : void 0,
|
|
1520
1532
|
t.$slots.optionFullscreen ? {
|
|
1521
1533
|
name: "optionFullscreen",
|
|
1522
|
-
fn:
|
|
1534
|
+
fn: C(({ toggleFullscreen: e, isFullscreen: n }) => [b(t.$slots, "optionFullscreen", _(g({
|
|
1523
1535
|
toggleFullscreen: e,
|
|
1524
1536
|
isFullscreen: n
|
|
1525
1537
|
})), void 0, !0)]),
|
|
@@ -1527,7 +1539,7 @@ var st = /* @__PURE__ */ e({ default: () => yt }), ct = ["id"], lt = ["id"], ut
|
|
|
1527
1539
|
} : void 0,
|
|
1528
1540
|
t.$slots.optionAnnotator ? {
|
|
1529
1541
|
name: "optionAnnotator",
|
|
1530
|
-
fn:
|
|
1542
|
+
fn: C(({ toggleAnnotator: e, isAnnotator: n }) => [b(t.$slots, "optionAnnotator", _(g({
|
|
1531
1543
|
toggleAnnotator: e,
|
|
1532
1544
|
isAnnotator: n
|
|
1533
1545
|
})), void 0, !0)]),
|
|
@@ -1535,30 +1547,30 @@ var st = /* @__PURE__ */ e({ default: () => yt }), ct = ["id"], lt = ["id"], ut
|
|
|
1535
1547
|
} : void 0,
|
|
1536
1548
|
t.$slots.optionAltCopy ? {
|
|
1537
1549
|
name: "optionAltCopy",
|
|
1538
|
-
fn:
|
|
1550
|
+
fn: C(({ altCopy: e }) => [b(t.$slots, "optionAltCopy", _(g({ altCopy: e })), void 0, !0)]),
|
|
1539
1551
|
key: "10"
|
|
1540
1552
|
} : void 0,
|
|
1541
1553
|
t.$slots["custom-menu-before"] ? {
|
|
1542
1554
|
name: "custom-menu-before",
|
|
1543
|
-
fn:
|
|
1555
|
+
fn: C(() => [b(t.$slots, "custom-menu-before", {}, void 0, !0)]),
|
|
1544
1556
|
key: "11"
|
|
1545
1557
|
} : void 0,
|
|
1546
1558
|
t.$slots["custom-menu-after"] ? {
|
|
1547
1559
|
name: "custom-menu-after",
|
|
1548
|
-
fn:
|
|
1560
|
+
fn: C(() => [b(t.$slots, "custom-menu-after", {}, void 0, !0)]),
|
|
1549
1561
|
key: "12"
|
|
1550
1562
|
} : void 0
|
|
1551
|
-
]), 1032, /* @__PURE__ */ "backgroundColor.color.isPrinting.isImaging.uid.hasTooltip.hasPdf.hasImg.hasXls.hasLabel.hasStack.hasFullscreen.hasAltCopy.hasTable.isFullscreen.isTooltip.isStacked.titles.chartElement.position.hasAnnotator.isAnnotation.callbacks.printScale.tableDialog.isCursorPointer.onGeneratePdf.style".split("."))) :
|
|
1552
|
-
|
|
1563
|
+
]), 1032, /* @__PURE__ */ "backgroundColor.color.isPrinting.isImaging.uid.hasTooltip.hasPdf.hasImg.hasXls.hasLabel.hasStack.hasFullscreen.hasAltCopy.hasTable.isFullscreen.isTooltip.isStacked.titles.chartElement.position.hasAnnotator.isAnnotation.callbacks.printScale.tableDialog.isCursorPointer.onGeneratePdf.style".split("."))) : m("", !0),
|
|
1564
|
+
h("div", {
|
|
1553
1565
|
class: "vue-ui-xy-canvas",
|
|
1554
|
-
style: Qe(`position: relative; aspect-ratio: ${
|
|
1566
|
+
style: Qe(`position: relative; aspect-ratio: ${xn.value}`),
|
|
1555
1567
|
ref_key: "container",
|
|
1556
1568
|
ref: kt
|
|
1557
1569
|
}, [
|
|
1558
|
-
|
|
1570
|
+
h("canvas", {
|
|
1559
1571
|
ref_key: "canvas",
|
|
1560
1572
|
ref: U,
|
|
1561
|
-
"aria-label":
|
|
1573
|
+
"aria-label": on.value,
|
|
1562
1574
|
"aria-describedby": `chart-instructions-${Dt.value}`,
|
|
1563
1575
|
role: "img",
|
|
1564
1576
|
"aria-live": "polite",
|
|
@@ -1567,18 +1579,18 @@ var st = /* @__PURE__ */ e({ default: () => yt }), ct = ["id"], lt = ["id"], ut
|
|
|
1567
1579
|
width: "100%",
|
|
1568
1580
|
height: "100%"
|
|
1569
1581
|
},
|
|
1570
|
-
onMousemove: r[0] ||= (e) =>
|
|
1571
|
-
onMouseleave:
|
|
1572
|
-
onFocus:
|
|
1573
|
-
onBlur:
|
|
1574
|
-
onKeydown:
|
|
1582
|
+
onMousemove: r[0] ||= (e) => Cr(e),
|
|
1583
|
+
onMouseleave: Nr,
|
|
1584
|
+
onFocus: kr,
|
|
1585
|
+
onBlur: Ar,
|
|
1586
|
+
onKeydown: jr
|
|
1575
1587
|
}, null, 40, ft),
|
|
1576
|
-
t.$slots.hint ? (
|
|
1588
|
+
t.$slots.hint ? (v(), We("div", pt, [b(t.$slots, "hint", _(g({
|
|
1577
1589
|
hint: P.value.a11y.translations.keyboardNavigation,
|
|
1578
|
-
isVisible:
|
|
1579
|
-
})), void 0, !0)])) :
|
|
1580
|
-
|
|
1581
|
-
qe(
|
|
1590
|
+
isVisible: en.value
|
|
1591
|
+
})), void 0, !0)])) : m("", !0),
|
|
1592
|
+
b(t.$slots, "skeleton", {}, () => [x(dn) ? (v(), p(xe, { key: 0 })) : m("", !0)], !0),
|
|
1593
|
+
qe(x(yt), {
|
|
1582
1594
|
teleportTo: I.value.teleportTo,
|
|
1583
1595
|
show: W.value.showTooltip && jt.value,
|
|
1584
1596
|
backgroundColor: I.value.backgroundColor,
|
|
@@ -1594,17 +1606,17 @@ var st = /* @__PURE__ */ e({ default: () => yt }), ct = ["id"], lt = ["id"], ut
|
|
|
1594
1606
|
content: Mt.value,
|
|
1595
1607
|
isFullscreen: Lt.value,
|
|
1596
1608
|
backgroundOpacity: I.value.backgroundOpacity,
|
|
1597
|
-
isCustom:
|
|
1609
|
+
isCustom: x(n)(I.value.customFormat),
|
|
1598
1610
|
smooth: I.value.smooth,
|
|
1599
1611
|
backdropFilter: I.value.backdropFilter,
|
|
1600
1612
|
smoothForce: I.value.smoothForce,
|
|
1601
1613
|
smoothSnapThreshold: I.value.smoothSnapThreshold,
|
|
1602
|
-
isA11yMode:
|
|
1603
|
-
a11yPosition:
|
|
1614
|
+
isA11yMode: $t.value,
|
|
1615
|
+
a11yPosition: tn.value
|
|
1604
1616
|
}, {
|
|
1605
|
-
"tooltip-before":
|
|
1606
|
-
tooltip:
|
|
1607
|
-
"tooltip-after":
|
|
1617
|
+
"tooltip-before": C(() => [b(t.$slots, "tooltip-before", _(g({ ...Nt.value })), void 0, !0)]),
|
|
1618
|
+
tooltip: C(() => [b(t.$slots, "tooltip", _(g({ ...Nt.value })), void 0, !0)]),
|
|
1619
|
+
"tooltip-after": C(() => [b(t.$slots, "tooltip-after", _(g({ ...Nt.value })), void 0, !0)]),
|
|
1608
1620
|
_: 3
|
|
1609
1621
|
}, 8, [
|
|
1610
1622
|
"teleportTo",
|
|
@@ -1631,16 +1643,16 @@ var st = /* @__PURE__ */ e({ default: () => yt }), ct = ["id"], lt = ["id"], ut
|
|
|
1631
1643
|
"a11yPosition"
|
|
1632
1644
|
])
|
|
1633
1645
|
], 4),
|
|
1634
|
-
P.value.style.chart.zoom.show && G.value > 6 && N.value &&
|
|
1646
|
+
P.value.style.chart.zoom.show && G.value > 6 && N.value && Xt.value && !x(dn) ? (v(), p(Ie, {
|
|
1635
1647
|
key: 2,
|
|
1636
1648
|
ref_key: "chartSlicer",
|
|
1637
1649
|
ref: Bt,
|
|
1638
1650
|
"data-dom-to-png-ignore-layout": "",
|
|
1639
|
-
allMinimaps:
|
|
1651
|
+
allMinimaps: Bn.value,
|
|
1640
1652
|
background: P.value.style.chart.zoom.color,
|
|
1641
1653
|
borderColor: P.value.style.chart.backgroundColor,
|
|
1642
1654
|
customFormat: P.value.style.chart.zoom.customFormat,
|
|
1643
|
-
cutNullValues:
|
|
1655
|
+
cutNullValues: Rn.value,
|
|
1644
1656
|
enableRangeHandles: P.value.style.chart.zoom.enableRangeHandles,
|
|
1645
1657
|
enableSelectionDrag: P.value.style.chart.zoom.enableSelectionDrag,
|
|
1646
1658
|
end: X.value.end,
|
|
@@ -1649,12 +1661,12 @@ var st = /* @__PURE__ */ e({ default: () => yt }), ct = ["id"], lt = ["id"], ut
|
|
|
1649
1661
|
fontSize: P.value.style.chart.zoom.fontSize,
|
|
1650
1662
|
immediate: !P.value.style.chart.zoom.preview.enable,
|
|
1651
1663
|
inputColor: P.value.style.chart.zoom.color,
|
|
1652
|
-
isPreview:
|
|
1664
|
+
isPreview: Wn.value,
|
|
1653
1665
|
labelLeft: P.value.style.chart.grid.x.timeLabels.values[X.value.start] ? $.value[X.value.start]?.text : "",
|
|
1654
1666
|
labelRight: P.value.style.chart.grid.x.timeLabels.values[X.value.end - 1] ? $.value[X.value.end - 1]?.text : "",
|
|
1655
1667
|
max: G.value,
|
|
1656
1668
|
min: 0,
|
|
1657
|
-
minimap:
|
|
1669
|
+
minimap: zn.value,
|
|
1658
1670
|
minimapCompact: P.value.style.chart.zoom.minimap.compact,
|
|
1659
1671
|
minimapFrameColor: P.value.style.chart.zoom.minimap.frameColor,
|
|
1660
1672
|
minimapIndicatorColor: P.value.style.chart.zoom.minimap.indicatorColor,
|
|
@@ -1662,9 +1674,9 @@ var st = /* @__PURE__ */ e({ default: () => yt }), ct = ["id"], lt = ["id"], ut
|
|
|
1662
1674
|
minimapMerged: P.value.style.chart.zoom.minimap.merged,
|
|
1663
1675
|
minimapSelectedColor: P.value.style.chart.zoom.minimap.selectedColor,
|
|
1664
1676
|
minimapSelectedColorOpacity: P.value.style.chart.zoom.minimap.selectedColorOpacity,
|
|
1665
|
-
minimapSelectedIndex:
|
|
1677
|
+
minimapSelectedIndex: D.value,
|
|
1666
1678
|
minimapSelectionRadius: P.value.style.chart.zoom.minimap.selectionRadius,
|
|
1667
|
-
preciseLabels:
|
|
1679
|
+
preciseLabels: cr.value?.length ? cr.value : $.value,
|
|
1668
1680
|
refreshEndPoint: P.value.style.chart.zoom.endIndex === null ? G.value : P.value.style.chart.zoom.endIndex + 1,
|
|
1669
1681
|
refreshStartPoint: P.value.style.chart.zoom.startIndex === null ? 0 : P.value.style.chart.zoom.startIndex,
|
|
1670
1682
|
selectColor: P.value.style.chart.zoom.highlightColor,
|
|
@@ -1688,84 +1700,84 @@ var st = /* @__PURE__ */ e({ default: () => yt }), ct = ["id"], lt = ["id"], ut
|
|
|
1688
1700
|
handleBorderColor: P.value.style.chart.zoom.minimap.handleBorderColor,
|
|
1689
1701
|
handleFill: P.value.style.chart.zoom.minimap.handleFill,
|
|
1690
1702
|
handleWidth: P.value.style.chart.zoom.minimap.handleWidth,
|
|
1691
|
-
onFutureEnd: r[1] ||= (e) =>
|
|
1692
|
-
onFutureStart: r[2] ||= (e) =>
|
|
1693
|
-
onReset:
|
|
1694
|
-
onTrapMouse:
|
|
1695
|
-
"onUpdate:end":
|
|
1696
|
-
"onUpdate:start":
|
|
1703
|
+
onFutureEnd: r[1] ||= (e) => Gn("end", e),
|
|
1704
|
+
onFutureStart: r[2] ||= (e) => Gn("start", e),
|
|
1705
|
+
onReset: Un,
|
|
1706
|
+
onTrapMouse: kn,
|
|
1707
|
+
"onUpdate:end": Jn,
|
|
1708
|
+
"onUpdate:start": qn
|
|
1697
1709
|
}, {
|
|
1698
|
-
"reset-action":
|
|
1710
|
+
"reset-action": C(({ reset: e }) => [b(t.$slots, "reset-action", _(g({ reset: e })), void 0, !0)]),
|
|
1699
1711
|
_: 3
|
|
1700
|
-
}, 8, /* @__PURE__ */ "allMinimaps.background.borderColor.customFormat.cutNullValues.enableRangeHandles.enableSelectionDrag.end.focusOnDrag.focusRangeRatio.fontSize.immediate.inputColor.isPreview.labelLeft.labelRight.max.minimap.minimapCompact.minimapFrameColor.minimapIndicatorColor.minimapLineColor.minimapMerged.minimapSelectedColor.minimapSelectedColorOpacity.minimapSelectedIndex.minimapSelectionRadius.preciseLabels.refreshEndPoint.refreshStartPoint.selectColor.selectedSeries.smoothMinimap.start.timeLabels.usePreciseLabels.textColor.useResetSlot.valueEnd.valueStart.verticalHandles.maxWidth.minimapLeftInsetRatio.minimapRightInsetRatio.additionalMinimapHeight.handleType.handleIconColor.handleBorderWidth.handleBorderColor.handleFill.handleWidth".split("."))) :
|
|
1701
|
-
|
|
1702
|
-
|
|
1712
|
+
}, 8, /* @__PURE__ */ "allMinimaps.background.borderColor.customFormat.cutNullValues.enableRangeHandles.enableSelectionDrag.end.focusOnDrag.focusRangeRatio.fontSize.immediate.inputColor.isPreview.labelLeft.labelRight.max.minimap.minimapCompact.minimapFrameColor.minimapIndicatorColor.minimapLineColor.minimapMerged.minimapSelectedColor.minimapSelectedColorOpacity.minimapSelectedIndex.minimapSelectionRadius.preciseLabels.refreshEndPoint.refreshStartPoint.selectColor.selectedSeries.smoothMinimap.start.timeLabels.usePreciseLabels.textColor.useResetSlot.valueEnd.valueStart.verticalHandles.maxWidth.minimapLeftInsetRatio.minimapRightInsetRatio.additionalMinimapHeight.handleType.handleIconColor.handleBorderWidth.handleBorderColor.handleFill.handleWidth".split("."))) : m("", !0),
|
|
1713
|
+
h("div", { id: `legend-bottom-${Dt.value}` }, null, 8, mt),
|
|
1714
|
+
Kt.value && (P.value.style.chart.legend.show || t.$slots.legend) ? (v(), p(Ue, {
|
|
1703
1715
|
key: 3,
|
|
1704
1716
|
to: P.value.style.chart.legend.position === "top" ? `#legend-top-${Dt.value}` : `#legend-bottom-${Dt.value}`
|
|
1705
|
-
}, [
|
|
1717
|
+
}, [h("div", {
|
|
1706
1718
|
ref_key: "chartLegend",
|
|
1707
1719
|
ref: zt
|
|
1708
|
-
}, [
|
|
1709
|
-
legendSet:
|
|
1710
|
-
config:
|
|
1720
|
+
}, [b(t.$slots, "legend", { legend: Ur.value }, () => [P.value.style.chart.legend.show && N.value ? (v(), p(Ve, {
|
|
1721
|
+
legendSet: Ur.value,
|
|
1722
|
+
config: Wr.value,
|
|
1711
1723
|
key: `legend_${Wt.value}`,
|
|
1712
|
-
isCursorPointer:
|
|
1713
|
-
onClickMarker: r[3] ||= ({ i: e }) =>
|
|
1724
|
+
isCursorPointer: cn.value,
|
|
1725
|
+
onClickMarker: r[3] ||= ({ i: e }) => zr(e)
|
|
1714
1726
|
}, {
|
|
1715
|
-
item:
|
|
1727
|
+
item: C(({ legend: e, index: t }) => [h("div", {
|
|
1716
1728
|
onClick: (t) => e.segregate(),
|
|
1717
|
-
style: Qe(`opacity:${
|
|
1729
|
+
style: Qe(`opacity:${O.value.includes(t) ? .5 : 1}`)
|
|
1718
1730
|
}, rt(e.name), 13, ht)]),
|
|
1719
|
-
legendToggle:
|
|
1731
|
+
legendToggle: C(() => [Ur.value.length > 2 && P.value.style.chart.legend.selectAllToggle.show && !x(dn) ? (v(), p(Re, {
|
|
1720
1732
|
key: 0,
|
|
1721
1733
|
backgroundColor: P.value.style.chart.legend.selectAllToggle.backgroundColor,
|
|
1722
1734
|
color: P.value.style.chart.legend.selectAllToggle.color,
|
|
1723
1735
|
fontSize: P.value.style.chart.legend.fontSize,
|
|
1724
|
-
checked:
|
|
1725
|
-
isCursorPointer:
|
|
1726
|
-
onToggle:
|
|
1736
|
+
checked: O.value.length > 0,
|
|
1737
|
+
isCursorPointer: cn.value,
|
|
1738
|
+
onToggle: Rr
|
|
1727
1739
|
}, null, 8, [
|
|
1728
1740
|
"backgroundColor",
|
|
1729
1741
|
"color",
|
|
1730
1742
|
"fontSize",
|
|
1731
1743
|
"checked",
|
|
1732
1744
|
"isCursorPointer"
|
|
1733
|
-
])) :
|
|
1745
|
+
])) : m("", !0)]),
|
|
1734
1746
|
_: 1
|
|
1735
1747
|
}, 8, [
|
|
1736
1748
|
"legendSet",
|
|
1737
1749
|
"config",
|
|
1738
1750
|
"isCursorPointer"
|
|
1739
|
-
])) :
|
|
1740
|
-
t.$slots.watermark ? (
|
|
1741
|
-
t.$slots.source ? (
|
|
1751
|
+
])) : m("", !0)], !0)], 512)], 8, ["to"])) : m("", !0),
|
|
1752
|
+
t.$slots.watermark ? (v(), We("div", gt, [b(t.$slots, "watermark", _(g({ isPrinting: x(Sn) || x(Cn) || Qt.value })), void 0, !0)])) : m("", !0),
|
|
1753
|
+
t.$slots.source ? (v(), We("div", {
|
|
1742
1754
|
key: 5,
|
|
1743
1755
|
ref_key: "source",
|
|
1744
1756
|
ref: Vt,
|
|
1745
1757
|
dir: "auto"
|
|
1746
|
-
}, [
|
|
1747
|
-
N.value && F.value.buttons.table ? (
|
|
1758
|
+
}, [b(t.$slots, "source", {}, void 0, !0)], 512)) : m("", !0),
|
|
1759
|
+
N.value && F.value.buttons.table ? (v(), p(tt(ni.value.component), Ye({ key: 6 }, ni.value.props, {
|
|
1748
1760
|
ref_key: "tableUnit",
|
|
1749
|
-
ref:
|
|
1750
|
-
onClose:
|
|
1761
|
+
ref: qt,
|
|
1762
|
+
onClose: ri
|
|
1751
1763
|
}), Ge({
|
|
1752
|
-
content:
|
|
1764
|
+
content: C(() => [(v(), p(x(bt), {
|
|
1753
1765
|
key: `table_${Ut.value}`,
|
|
1754
|
-
colNames:
|
|
1755
|
-
head:
|
|
1756
|
-
body:
|
|
1757
|
-
config:
|
|
1758
|
-
title: P.value.table.useDialog ? "" :
|
|
1766
|
+
colNames: Gr.value.colNames,
|
|
1767
|
+
head: Gr.value.head,
|
|
1768
|
+
body: Gr.value.body,
|
|
1769
|
+
config: Gr.value.config,
|
|
1770
|
+
title: P.value.table.useDialog ? "" : ni.value.title,
|
|
1759
1771
|
withCloseButton: !P.value.table.useDialog,
|
|
1760
|
-
isCursorPointer:
|
|
1761
|
-
onClose:
|
|
1772
|
+
isCursorPointer: cn.value,
|
|
1773
|
+
onClose: ri
|
|
1762
1774
|
}, {
|
|
1763
|
-
th:
|
|
1775
|
+
th: C(({ th: e }) => [e === "__SUM__" ? (v(), We("div", _t, [qe(Fe, {
|
|
1764
1776
|
name: "sigma",
|
|
1765
|
-
stroke:
|
|
1777
|
+
stroke: Gr.value.config.th.color,
|
|
1766
1778
|
size: 16
|
|
1767
|
-
}, null, 8, ["stroke"])])) : (
|
|
1768
|
-
td:
|
|
1779
|
+
}, null, 8, ["stroke"])])) : (v(), We("div", vt, rt(e), 1))]),
|
|
1780
|
+
td: C(({ td: e }) => [Ke(rt(e), 1)]),
|
|
1769
1781
|
_: 1
|
|
1770
1782
|
}, 8, [
|
|
1771
1783
|
"colNames",
|
|
@@ -1779,36 +1791,36 @@ var st = /* @__PURE__ */ e({ default: () => yt }), ct = ["id"], lt = ["id"], ut
|
|
|
1779
1791
|
_: 2
|
|
1780
1792
|
}, [P.value.table.useDialog ? {
|
|
1781
1793
|
name: "title",
|
|
1782
|
-
fn:
|
|
1794
|
+
fn: C(() => [Ke(rt(ni.value.title), 1)]),
|
|
1783
1795
|
key: "0"
|
|
1784
1796
|
} : void 0, P.value.table.useDialog ? {
|
|
1785
1797
|
name: "actions",
|
|
1786
|
-
fn:
|
|
1798
|
+
fn: C(() => [h("button", {
|
|
1787
1799
|
tabindex: "0",
|
|
1788
1800
|
class: "vue-ui-user-options-button",
|
|
1789
|
-
onClick: r[4] ||= (e) =>
|
|
1790
|
-
style: Qe({ cursor:
|
|
1791
|
-
}, [qe(
|
|
1801
|
+
onClick: r[4] ||= (e) => qr(F.value.callbacks.csv),
|
|
1802
|
+
style: Qe({ cursor: cn.value ? "pointer" : "default" })
|
|
1803
|
+
}, [qe(Fe, {
|
|
1792
1804
|
name: "fileCsv",
|
|
1793
|
-
stroke:
|
|
1805
|
+
stroke: ni.value.props.color
|
|
1794
1806
|
}, null, 8, ["stroke"])], 4)]),
|
|
1795
1807
|
key: "1"
|
|
1796
|
-
} : void 0]), 1040)) :
|
|
1797
|
-
F.value.buttons.annotator && Y.value.length ? (
|
|
1808
|
+
} : void 0]), 1040)) : m("", !0),
|
|
1809
|
+
F.value.buttons.annotator && Y.value.length ? (v(), p(x(St), {
|
|
1798
1810
|
key: 7,
|
|
1799
1811
|
parent: Ot.value,
|
|
1800
1812
|
backgroundColor: P.value.style.chart.backgroundColor,
|
|
1801
1813
|
color: P.value.style.chart.color,
|
|
1802
|
-
active:
|
|
1803
|
-
isCursorPointer:
|
|
1804
|
-
onClose:
|
|
1814
|
+
active: $r.value,
|
|
1815
|
+
isCursorPointer: cn.value,
|
|
1816
|
+
onClose: ei
|
|
1805
1817
|
}, {
|
|
1806
|
-
"annotator-action-close":
|
|
1807
|
-
"annotator-action-color":
|
|
1808
|
-
"annotator-action-draw":
|
|
1809
|
-
"annotator-action-undo":
|
|
1810
|
-
"annotator-action-redo":
|
|
1811
|
-
"annotator-action-delete":
|
|
1818
|
+
"annotator-action-close": C(() => [b(t.$slots, "annotator-action-close", {}, void 0, !0)]),
|
|
1819
|
+
"annotator-action-color": C(({ color: e }) => [b(t.$slots, "annotator-action-color", _(g({ color: e })), void 0, !0)]),
|
|
1820
|
+
"annotator-action-draw": C(({ mode: e }) => [b(t.$slots, "annotator-action-draw", _(g({ mode: e })), void 0, !0)]),
|
|
1821
|
+
"annotator-action-undo": C(({ disabled: e }) => [b(t.$slots, "annotator-action-undo", _(g({ disabled: e })), void 0, !0)]),
|
|
1822
|
+
"annotator-action-redo": C(({ disabled: e }) => [b(t.$slots, "annotator-action-redo", _(g({ disabled: e })), void 0, !0)]),
|
|
1823
|
+
"annotator-action-delete": C(({ disabled: e }) => [b(t.$slots, "annotator-action-delete", _(g({ disabled: e })), void 0, !0)]),
|
|
1812
1824
|
_: 3
|
|
1813
1825
|
}, 8, [
|
|
1814
1826
|
"parent",
|
|
@@ -1816,9 +1828,9 @@ var st = /* @__PURE__ */ e({ default: () => yt }), ct = ["id"], lt = ["id"], ut
|
|
|
1816
1828
|
"color",
|
|
1817
1829
|
"active",
|
|
1818
1830
|
"isCursorPointer"
|
|
1819
|
-
])) :
|
|
1831
|
+
])) : m("", !0)
|
|
1820
1832
|
], 46, ct));
|
|
1821
1833
|
}
|
|
1822
|
-
}, [["__scopeId", "data-v-
|
|
1834
|
+
}, [["__scopeId", "data-v-c27832e0"]]);
|
|
1823
1835
|
//#endregion
|
|
1824
1836
|
export { st as n, yt as t };
|