vue-data-ui 3.0.0-next.9 → 3.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (144) hide show
  1. package/README.md +32 -30
  2. package/dist/{Arrow-B6OlqyCG.js → Arrow-r2f8Bpd-.js} +1 -1
  3. package/dist/{BaseDraggableDialog-CA8QOk7L.js → BaseDraggableDialog-CGGcf8d8.js} +4 -4
  4. package/dist/{BaseIcon-DxUUKVlt.js → BaseIcon-CXtL10fo.js} +1 -1
  5. package/dist/{ColorPicker-Bh1dfgXt.js → ColorPicker-H91bBsqM.js} +2 -2
  6. package/dist/{DataTable--paavNqF.js → DataTable-BSSXpM7w.js} +2 -2
  7. package/dist/{Legend-BZ06qU55.js → Legend-BUk0WvWJ.js} +2 -2
  8. package/dist/{NonSvgPenAndPaper-DN9XjEHv.js → NonSvgPenAndPaper-DQDgPoW8.js} +3 -3
  9. package/dist/{PackageVersion-2QvaZf9_.js → PackageVersion-CJ6Vd7V5.js} +3 -3
  10. package/dist/{PenAndPaper-hGgW0EHz.js → PenAndPaper-D3zudcNI.js} +32 -32
  11. package/dist/{RecursiveCircles-Dn3TGoL6.js → RecursiveCircles-BcLb1aRS.js} +15 -13
  12. package/dist/RecursiveLabels-Bgcv0pzu.js +50 -0
  13. package/dist/{RecursiveLinks-ld_gDZH4.js → RecursiveLinks-00zGWPf9.js} +20 -18
  14. package/dist/{Shape-Mr1eIp_G.js → Shape-BRzOzubn.js} +43 -37
  15. package/dist/Slicer-MID8pgT3.js +602 -0
  16. package/dist/{SparkTooltip-Czhz446b.js → SparkTooltip-DATI1fGZ.js} +7 -7
  17. package/dist/{Title-B2dA6-uH.js → Title-BGu6gEd2.js} +1 -1
  18. package/dist/{Tooltip-O_hCvqgF.js → Tooltip-Bh2zYSoM.js} +23 -19
  19. package/dist/{UserOptions-Bk03FRqW.js → UserOptions-Ck8fz9f4.js} +2 -2
  20. package/dist/{dom-to-png-Bt5F9TXw.js → dom-to-png-DhIh24Ti.js} +1 -1
  21. package/dist/{img-C_9wps3s.js → img-DrR839Ot.js} +1 -1
  22. package/dist/{index-CgShIRes.js → index-BtNwOUja.js} +2885 -2010
  23. package/dist/{pdf-CXdbjyRJ.js → pdf-DoShrdT5.js} +1 -1
  24. package/dist/style.css +1 -1
  25. package/dist/types/vue-data-ui.d.cts +753 -65
  26. package/dist/types/vue-data-ui.d.ts +753 -65
  27. package/dist/useAutoSizeLabelsInsideViewbox-FmDQyX4z.js +81 -0
  28. package/dist/useFitSvgText-2crs6Fv5.js +69 -0
  29. package/dist/useLoading-D7YHNtLX.js +29 -0
  30. package/dist/useNestedProp-f2H3m6Yj.js +13 -0
  31. package/dist/usePanZoom-BVca3eMk.js +122 -0
  32. package/dist/{usePrinter-rIrqBbbm.js → usePrinter-DUNjpQNe.js} +2 -2
  33. package/dist/useTimeLabelCollider-CIsgDrl9.js +78 -0
  34. package/dist/{useTimeLabels-DG97x2hL.js → useTimeLabels-DkzmKfZn.js} +208 -156
  35. package/dist/{vue-data-ui-DiwfJSwC.js → vue-data-ui-D7QVxNhO.js} +105 -100
  36. package/dist/vue-data-ui.js +26 -25
  37. package/dist/vue-ui-3d-bar-ITaF-6Kn.js +1323 -0
  38. package/dist/{vue-ui-accordion-hlzscmAS.js → vue-ui-accordion-BKUrAowe.js} +3 -3
  39. package/dist/vue-ui-age-pyramid-DxsuDr6o.js +835 -0
  40. package/dist/{vue-ui-annotator-BHwBUNRO.js → vue-ui-annotator-B06QtxgJ.js} +12 -12
  41. package/dist/vue-ui-bullet-B7Fy45tA.js +571 -0
  42. package/dist/vue-ui-candlestick-Dw0U4uIQ.js +1000 -0
  43. package/dist/{vue-ui-carousel-table-6MTDYf-H.js → vue-ui-carousel-table-DGz0nw28.js} +29 -29
  44. package/dist/{vue-ui-chestnut-Cr6dK21e.js → vue-ui-chestnut-CFfKYm9i.js} +664 -536
  45. package/dist/vue-ui-chord-EhlQhMSs.js +1038 -0
  46. package/dist/vue-ui-circle-pack-BHrrEUUd.js +709 -0
  47. package/dist/{vue-ui-cursor-Ch5yUxNn.js → vue-ui-cursor-Dd-HtWzG.js} +2 -2
  48. package/dist/{vue-ui-dashboard-tVZ9aEHo.js → vue-ui-dashboard-6R8udDY3.js} +64 -64
  49. package/dist/{vue-ui-digits-BOlYLluF.js → vue-ui-digits-zKn3uhGN.js} +2 -2
  50. package/dist/{vue-ui-donut-BKwAnTKA.js → vue-ui-donut-BtnIwS_E.js} +431 -422
  51. package/dist/vue-ui-donut-evolution-DHo1MuMM.js +1076 -0
  52. package/dist/vue-ui-dumbbell-Czi9r9Na.js +1120 -0
  53. package/dist/vue-ui-flow-jOfM0RZY.js +841 -0
  54. package/dist/{vue-ui-funnel-CAV6A--C.js → vue-ui-funnel-tBvVpdhy.js} +16 -16
  55. package/dist/vue-ui-galaxy-IdoY2oqG.js +680 -0
  56. package/dist/vue-ui-gauge-DR6Xm_Hz.js +791 -0
  57. package/dist/vue-ui-gizmo-Dto73UsB.js +210 -0
  58. package/dist/vue-ui-heatmap-zmFv-0z1.js +1078 -0
  59. package/dist/vue-ui-history-plot-ILemyyYw.js +1074 -0
  60. package/dist/{vue-ui-kpi-DjHXc1Z9.js → vue-ui-kpi-hmqSCvxr.js} +26 -26
  61. package/dist/{vue-ui-mini-loader-C68r9wbr.js → vue-ui-mini-loader-CbD-E8ci.js} +2 -2
  62. package/dist/vue-ui-molecule-mTy6YIm6.js +656 -0
  63. package/dist/vue-ui-mood-radar-BEnSYV3Q.js +785 -0
  64. package/dist/vue-ui-nested-donuts-CGE9dmJK.js +1284 -0
  65. package/dist/vue-ui-onion-Dh2J9GV0.js +776 -0
  66. package/dist/vue-ui-parallel-coordinate-plot-xsgmMIJK.js +916 -0
  67. package/dist/{vue-ui-quadrant-ULvVhjjq.js → vue-ui-quadrant-DA0Kw6eq.js} +512 -459
  68. package/dist/vue-ui-quick-chart-DKbxF5Yt.js +1762 -0
  69. package/dist/vue-ui-radar-BFY9bN_h.js +796 -0
  70. package/dist/{vue-ui-rating-CkdVnYpj.js → vue-ui-rating-Bh35aujf.js} +2 -2
  71. package/dist/vue-ui-relation-circle-B-05kQ_l.js +598 -0
  72. package/dist/vue-ui-ridgeline-CuGfF83t.js +1157 -0
  73. package/dist/vue-ui-rings-DrQXXzAM.js +728 -0
  74. package/dist/vue-ui-scatter-CWn9c7e9.js +1178 -0
  75. package/dist/{vue-ui-skeleton-BsBaCvoE.js → vue-ui-skeleton-oG4Bm5nL.js} +13 -13
  76. package/dist/{vue-ui-smiley-B2sBY2Q-.js → vue-ui-smiley-Cnwba_gV.js} +46 -46
  77. package/dist/vue-ui-spark-trend-D9iNCf4o.js +315 -0
  78. package/dist/vue-ui-sparkbar-iJkiubZC.js +351 -0
  79. package/dist/vue-ui-sparkgauge-BH3uA5rh.js +232 -0
  80. package/dist/vue-ui-sparkhistogram-B3kR62pf.js +380 -0
  81. package/dist/vue-ui-sparkline-DczR2ZAf.js +513 -0
  82. package/dist/vue-ui-sparkstackbar-Cg0ItRGH.js +421 -0
  83. package/dist/vue-ui-stackbar-d4PrzcGS.js +1371 -0
  84. package/dist/vue-ui-strip-plot-BXBpN5rl.js +916 -0
  85. package/dist/{vue-ui-table-DaE8lQuo.js → vue-ui-table-BXOLZXuz.js} +17 -17
  86. package/dist/{vue-ui-table-heatmap--dSEG8cU.js → vue-ui-table-heatmap-7YT7VF2H.js} +5 -5
  87. package/dist/{vue-ui-table-sparkline-D4DkGvDP.js → vue-ui-table-sparkline-BfgqajJ2.js} +19 -16
  88. package/dist/vue-ui-thermometer-C7Tg6HLz.js +541 -0
  89. package/dist/{vue-ui-timer-CYXTAh6x.js → vue-ui-timer-Ch5JP1pQ.js} +5 -5
  90. package/dist/vue-ui-tiremarks-fY-4pWAK.js +406 -0
  91. package/dist/vue-ui-treemap-DTSX6suB.js +1035 -0
  92. package/dist/{vue-ui-vertical-bar-CO9eR1ty.js → vue-ui-vertical-bar-C-i2dRnU.js} +104 -102
  93. package/dist/vue-ui-waffle-BbgLlhGH.js +910 -0
  94. package/dist/vue-ui-wheel-waZf462K.js +379 -0
  95. package/dist/vue-ui-word-cloud-DtLK91Dk.js +765 -0
  96. package/dist/{vue-ui-world-P45Plcqw.js → vue-ui-world-Cx4uuwTY.js} +364 -327
  97. package/dist/vue-ui-xy-DDOT8cyx.js +3808 -0
  98. package/dist/{vue-ui-xy-canvas-DgNBgUak.js → vue-ui-xy-canvas-CUCsC8vD.js} +265 -264
  99. package/package.json +4 -4
  100. package/dist/RecursiveLabels-NTMB9w5C.js +0 -49
  101. package/dist/Slicer-3t0HimeE.js +0 -577
  102. package/dist/useLoading-Bt5Doa8m.js +0 -28
  103. package/dist/useNestedProp-BC4Ciblw.js +0 -13
  104. package/dist/usePanZoom-BQMvRXEQ.js +0 -115
  105. package/dist/vue-ui-3d-bar-BqmzX9u4.js +0 -1227
  106. package/dist/vue-ui-age-pyramid-eRPt0BJb.js +0 -746
  107. package/dist/vue-ui-bullet-BSnF2gql.js +0 -513
  108. package/dist/vue-ui-candlestick-kMbNnoYe.js +0 -873
  109. package/dist/vue-ui-chord-Dxy_bfIE.js +0 -949
  110. package/dist/vue-ui-circle-pack-I_p4FPiW.js +0 -673
  111. package/dist/vue-ui-donut-evolution-DQhZJ4Sa.js +0 -903
  112. package/dist/vue-ui-dumbbell-DdN-7b3g.js +0 -753
  113. package/dist/vue-ui-flow-MvORTthN.js +0 -765
  114. package/dist/vue-ui-galaxy-B0PLMAn8.js +0 -617
  115. package/dist/vue-ui-gauge-C4FTzDFt.js +0 -738
  116. package/dist/vue-ui-gizmo-Dl5FHFb4.js +0 -192
  117. package/dist/vue-ui-heatmap-C3dee43W.js +0 -877
  118. package/dist/vue-ui-history-plot-dqv4u1Oa.js +0 -924
  119. package/dist/vue-ui-molecule-DtRAlfhC.js +0 -597
  120. package/dist/vue-ui-mood-radar-BZj2G0zE.js +0 -670
  121. package/dist/vue-ui-nested-donuts-OqJTwMb2.js +0 -1212
  122. package/dist/vue-ui-onion-DXLokGec.js +0 -701
  123. package/dist/vue-ui-parallel-coordinate-plot-tg7QhtIE.js +0 -807
  124. package/dist/vue-ui-quick-chart-4EODniQ3.js +0 -1612
  125. package/dist/vue-ui-radar-Dt5p5oSy.js +0 -741
  126. package/dist/vue-ui-relation-circle-_SysXj9T.js +0 -542
  127. package/dist/vue-ui-ridgeline-Cs5UihNN.js +0 -969
  128. package/dist/vue-ui-rings-Duay-EmS.js +0 -685
  129. package/dist/vue-ui-scatter-C6oGQcbL.js +0 -1045
  130. package/dist/vue-ui-spark-trend-CEAqGu3d.js +0 -291
  131. package/dist/vue-ui-sparkbar-ByPUDc6x.js +0 -301
  132. package/dist/vue-ui-sparkgauge-C-GKwevJ.js +0 -201
  133. package/dist/vue-ui-sparkhistogram-Dz0DdaVW.js +0 -313
  134. package/dist/vue-ui-sparkline-BULntz_U.js +0 -459
  135. package/dist/vue-ui-sparkstackbar-DXjHOeeU.js +0 -381
  136. package/dist/vue-ui-stackbar-CeP9n7zy.js +0 -1207
  137. package/dist/vue-ui-strip-plot-CaFQkWV8.js +0 -761
  138. package/dist/vue-ui-thermometer-BXf14CYH.js +0 -495
  139. package/dist/vue-ui-tiremarks-D6hJ1cd4.js +0 -358
  140. package/dist/vue-ui-treemap-tBurCrdn.js +0 -965
  141. package/dist/vue-ui-waffle-BNzs_BxY.js +0 -863
  142. package/dist/vue-ui-wheel-tydUATi8.js +0 -352
  143. package/dist/vue-ui-word-cloud-DUUc_tj6.js +0 -659
  144. package/dist/vue-ui-xy--HToGdle.js +0 -2982
@@ -1,15 +1,15 @@
1
- import { defineAsyncComponent as Q, ref as d, computed as L, useSlots as Va, onMounted as sa, watch as D, nextTick as pe, shallowRef as Ie, onBeforeUnmount as Ga, createElementBlock as ne, openBlock as S, unref as p, normalizeClass as Za, normalizeStyle as ee, createCommentVNode as X, createBlock as N, createElementVNode as ie, createSlots as ja, withCtx as x, renderSlot as k, normalizeProps as B, guardReactiveProps as _, createVNode as qa, toDisplayString as na, createTextVNode as Ja } from "vue";
2
- import { u as Ka, c as Qa, t as el, p as V, a as al, C as me, b as ll, D as Me, i as ae, f as le, d as ia, a5 as tl, G as ol, ad as rl, o as ul, e as sl, x as va, q as nl, r as il, y as vl, s as ve, l as cl } from "./index-CgShIRes.js";
3
- import { d as dl, t as hl, u as yl, c as fl, a as ca, l as C, r as Te, b as R, p as da } from "./useResponsive-DfdjqQps.js";
4
- import { u as ha } from "./useNestedProp-BC4Ciblw.js";
5
- import { u as gl } from "./usePrinter-rIrqBbbm.js";
1
+ import { defineAsyncComponent as K, ref as d, computed as L, useSlots as Va, onMounted as ua, watch as D, nextTick as sa, shallowRef as ze, onBeforeUnmount as Ga, createElementBlock as se, openBlock as S, unref as p, normalizeClass as Za, normalizeStyle as Q, createCommentVNode as X, createBlock as N, createElementVNode as ne, createSlots as ja, withCtx as x, renderSlot as k, normalizeProps as B, guardReactiveProps as _, createVNode as qa, toDisplayString as na, createTextVNode as Ja } from "vue";
2
+ import { u as Ka, c as Qa, a as el, p as V, b as al, C as ge, d as ll, D as $e, k as ee, i as ae, e as ia, a4 as tl, G as ol, ae as rl, o as ul, f as sl, y as va, v as nl, w as il, z as vl, s as ie, l as cl } from "./index-BtNwOUja.js";
3
+ import { d as dl, t as hl, u as yl, c as fl, a as ca, l as C, r as Ie, b as R, p as da } from "./useResponsive-DfdjqQps.js";
4
+ import { u as ha } from "./useNestedProp-f2H3m6Yj.js";
5
+ import { u as gl } from "./usePrinter-DUNjpQNe.js";
6
6
  import { u as pl } from "./useUserOptionState-BIvW1Kz7.js";
7
7
  import { u as ml } from "./useChartAccessibility-9icAAmYg.js";
8
- import bl from "./Legend-BZ06qU55.js";
9
- import xl from "./Title-B2dA6-uH.js";
10
- import { S as Ll } from "./Slicer-3t0HimeE.js";
11
- import { u as kl } from "./useTimeLabels-DG97x2hL.js";
12
- import Cl from "./img-C_9wps3s.js";
8
+ import bl from "./Legend-BUk0WvWJ.js";
9
+ import xl from "./Title-BGu6gEd2.js";
10
+ import { S as Ll } from "./Slicer-MID8pgT3.js";
11
+ import { u as kl } from "./useTimeLabels-DkzmKfZn.js";
12
+ import Cl from "./img-DrR839Ot.js";
13
13
  import { _ as wl } from "./_plugin-vue_export-helper-CHgC5LLL.js";
14
14
  const Sl = ["id"], zl = ["onClick"], $l = {
15
15
  key: 2,
@@ -31,16 +31,16 @@ const Sl = ["id"], zl = ["onClick"], $l = {
31
31
  }
32
32
  },
33
33
  emits: ["selectLegend"],
34
- setup(Oe, { expose: ya, emit: fa }) {
35
- const ga = Q(() => import("./vue-ui-accordion-hlzscmAS.js")), pa = Q(() => import("./DataTable--paavNqF.js")), ma = Q(() => import("./NonSvgPenAndPaper-DN9XjEHv.js")), ba = Q(() => import("./vue-ui-skeleton-BsBaCvoE.js")), xa = Q(() => import("./Tooltip-O_hCvqgF.js")), La = Q(() => import("./UserOptions-Bk03FRqW.js")), { vue_ui_xy_canvas: ka } = Ka(), g = Oe, be = d(Qa()), P = d(null), te = d(null), s = d(null), y = d(1), E = d(1), ce = d(!1), c = d(null), de = d(""), Re = d(null), $ = d([]), G = d(1), H = d(!0), Z = d(!0), xe = d(null), Pe = d(0), Ee = d(0), he = d(!1), Fe = d(null), Ae = d(null), De = d(null), Ne = d(null), Le = d(0), ke = d(0), Ce = d(0), M = d(null), we = L(() => !!g.dataset && g.dataset.length), Ca = fa, wa = Va();
36
- sa(() => {
34
+ setup(Me, { expose: ya, emit: fa }) {
35
+ const ga = K(() => import("./vue-ui-accordion-BKUrAowe.js")), pa = K(() => import("./DataTable-BSSXpM7w.js")), ma = K(() => import("./NonSvgPenAndPaper-DQDgPoW8.js")), ba = K(() => import("./vue-ui-skeleton-oG4Bm5nL.js")), xa = K(() => import("./Tooltip-Bh2zYSoM.js")), La = K(() => import("./UserOptions-Ck8fz9f4.js")), { vue_ui_xy_canvas: ka } = Ka(), g = Me, pe = d(Qa()), P = d(null), le = d(null), n = d(null), y = d(1), F = d(1), ve = d(!1), c = d(null), ce = d(""), Te = d(null), $ = d([]), G = d(1), H = d(!0), Z = d(!0), me = d(null), Oe = d(0), Re = d(0), de = d(!1), Pe = d(null), Fe = d(null), Ee = d(null), Ae = d(null), be = d(0), xe = d(0), Le = d(0), M = d(null), ke = L(() => !!g.dataset && g.dataset.length), Ca = fa, wa = Va();
36
+ ua(() => {
37
37
  wa["chart-background"] && console.warn("VueUiXyCanvas does not support the #chart-background slot.");
38
38
  });
39
39
  const a = L({
40
- get: () => Ue(),
40
+ get: () => He(),
41
41
  set: (e) => e
42
- }), { userOptionsVisible: Se, setUserOptionsVisibility: He, keepUserOptionState: Ye } = pl({ config: a.value }), { svgRef: T } = ml({ config: a.value.style.chart.title });
43
- function Ue() {
42
+ }), { userOptionsVisible: Ce, setUserOptionsVisibility: De, keepUserOptionState: Ne } = pl({ config: a.value }), { svgRef: T } = ml({ config: a.value.style.chart.title });
43
+ function He() {
44
44
  const e = ha({
45
45
  userConfig: g.config,
46
46
  defaultConfig: ka
@@ -52,15 +52,15 @@ const Sl = ["id"], zl = ["onClick"], $l = {
52
52
  defaultConfig: e
53
53
  }),
54
54
  customPalette: el[e.theme] || V
55
- } : l = e, g.config && me(g.config, "style.chart.scale.min") ? l.style.chart.scale.min = g.config.style.chart.scale.min : l.style.chart.scale.min = null, g.config && me(g.config, "style.chart.scale.max") ? l.style.chart.scale.max = g.config.style.chart.scale.max : l.style.chart.scale.max = null, g.config && me(g.config, "style.chart.zoom.startIndex") ? l.style.chart.zoom.startIndex = g.config.style.chart.zoom.startIndex : l.style.chart.zoom.startIndex = null, g.config && me(g.config, "style.chart.zoom.endIndex") ? l.style.chart.zoom.endIndex = g.config.style.chart.zoom.endIndex : l.style.chart.zoom.endIndex = null, l;
55
+ } : l = e, g.config && ge(g.config, "style.chart.scale.min") ? l.style.chart.scale.min = g.config.style.chart.scale.min : l.style.chart.scale.min = null, g.config && ge(g.config, "style.chart.scale.max") ? l.style.chart.scale.max = g.config.style.chart.scale.max : l.style.chart.scale.max = null, g.config && ge(g.config, "style.chart.zoom.startIndex") ? l.style.chart.zoom.startIndex = g.config.style.chart.zoom.startIndex : l.style.chart.zoom.startIndex = null, g.config && ge(g.config, "style.chart.zoom.endIndex") ? l.style.chart.zoom.endIndex = g.config.style.chart.zoom.endIndex : l.style.chart.zoom.endIndex = null, l;
56
56
  }
57
57
  D(() => g.config, (e) => {
58
- a.value = Ue(), Se.value = !a.value.userOptions.showOnChartHover, ze(), Le.value += 1, ke.value += 1, Ce.value += 1, u.value.showTable = a.value.table.show, u.value.showDataLabels = a.value.style.chart.dataLabels.show, u.value.stacked = a.value.style.chart.stacked, u.value.showTooltip = a.value.style.chart.tooltip.show;
58
+ a.value = He(), Ce.value = !a.value.userOptions.showOnChartHover, we(), be.value += 1, xe.value += 1, Le.value += 1, u.value.showTable = a.value.table.show, u.value.showDataLabels = a.value.style.chart.dataLabels.show, u.value.stacked = a.value.style.chart.stacked, u.value.showTooltip = a.value.style.chart.tooltip.show;
59
59
  }, { deep: !0 }), D(() => g.dataset, () => {
60
- ze(), Le.value += 1, ke.value += 1, Ce.value += 1;
60
+ we(), be.value += 1, xe.value += 1, Le.value += 1;
61
61
  }, { deep: !0 });
62
- const We = d(a.value.style.chart.aspectRatio), { isPrinting: Xe, isImaging: Be, generatePdf: _e, generateImage: Ve } = gl({
63
- elementId: `xy_canvas_${be.value}`,
62
+ const Ye = d(a.value.style.chart.aspectRatio), { isPrinting: Ue, isImaging: We, generatePdf: Xe, generateImage: Be } = gl({
63
+ elementId: `xy_canvas_${pe.value}`,
64
64
  fileName: a.value.style.chart.title.text || "vue-ui-xy-canvas",
65
65
  options: a.value.userOptions.print
66
66
  }), u = d({
@@ -69,33 +69,33 @@ const Sl = ["id"], zl = ["onClick"], $l = {
69
69
  stacked: a.value.style.chart.stacked,
70
70
  showTooltip: a.value.style.chart.tooltip.show
71
71
  });
72
- function Ge(e) {
73
- he.value = e, Ee.value += 1;
72
+ function _e(e) {
73
+ de.value = e, Re.value += 1;
74
74
  }
75
- const Ze = L(() => ll(a.value.customPalette)), I = L(() => j.value ? Math.max(...j.value.filter((e, l) => !$.value.includes(e.absoluteIndex)).map((e) => e.series.length)) : 0), t = L(() => {
75
+ const Ve = L(() => ll(a.value.customPalette)), I = L(() => j.value ? Math.max(...j.value.filter((e, l) => !$.value.includes(e.absoluteIndex)).map((e) => e.series.length)) : 0), t = L(() => {
76
76
  const e = y.value - y.value * (a.value.style.chart.paddingProportions.left + a.value.style.chart.paddingProportions.right);
77
77
  return {
78
78
  canvasWidth: y.value,
79
- canvasHeight: E.value,
79
+ canvasHeight: F.value,
80
80
  left: y.value * a.value.style.chart.paddingProportions.left,
81
- top: E.value * a.value.style.chart.paddingProportions.top,
81
+ top: F.value * a.value.style.chart.paddingProportions.top,
82
82
  right: y.value - y.value * a.value.style.chart.paddingProportions.right,
83
- bottom: E.value - E.value * a.value.style.chart.paddingProportions.bottom,
83
+ bottom: F.value - F.value * a.value.style.chart.paddingProportions.bottom,
84
84
  width: e,
85
- height: E.value - E.value * (a.value.style.chart.paddingProportions.top + a.value.style.chart.paddingProportions.bottom),
85
+ height: F.value - F.value * (a.value.style.chart.paddingProportions.top + a.value.style.chart.paddingProportions.bottom),
86
86
  slot: e / (r.value.end - r.value.start)
87
87
  };
88
88
  });
89
- function je(e, l) {
89
+ function Ge(e, l) {
90
90
  return e / l;
91
91
  }
92
- function Sa({ hasAutoScale: e, series: l, min: o, max: n, scale: i, yOffset: b, individualHeight: v, stackIndex: f = null }) {
92
+ function Sa({ hasAutoScale: e, series: l, min: o, max: s, scale: i, yOffset: b, individualHeight: v, stackIndex: f = null }) {
93
93
  return l.map((U, z) => {
94
- const A = i.min < 0 ? Math.abs(i.min) : 0, W = je(U + A, A + i.max);
95
- let ue, se;
96
- e && (ue = i.min, se = je(U - ue, i.max - ue));
94
+ const A = i.min < 0 ? Math.abs(i.min) : 0, W = Ge(U + A, A + i.max);
95
+ let re, ue;
96
+ e && (re = i.min, ue = Ge(U - re, i.max - re));
97
97
  let O = 0;
98
- return f === null ? O = t.value.bottom - t.value.height * (e ? se : W) : O = t.value.bottom - b - v * (e ? se : W), {
98
+ return f === null ? O = t.value.bottom - t.value.height * (e ? ue : W) : O = t.value.bottom - b - v * (e ? ue : W), {
99
99
  x: t.value.left + t.value.slot * z + t.value.slot / 2,
100
100
  y: O,
101
101
  value: U
@@ -103,13 +103,13 @@ const Sl = ["id"], zl = ["onClick"], $l = {
103
103
  });
104
104
  }
105
105
  const m = L(() => {
106
- const e = a.value.style.chart.scale.min !== null ? a.value.style.chart.scale.min : Math.min(...j.value.filter((v, f) => !$.value.includes(v.absoluteIndex)).flatMap((v) => v.series.slice(r.value.start, r.value.end))), l = a.value.style.chart.scale.max !== null ? a.value.style.chart.scale.max : Math.max(...j.value.filter((v, f) => !$.value.includes(v.absoluteIndex)).flatMap((v) => v.series.slice(r.value.start, r.value.end))), o = Me(e < 0 ? e : 0, l === e ? e + 1 < 0 ? 0 : e + 1 : l < 0 ? 0 : l, a.value.style.chart.scale.ticks), n = o.min < 0 ? Math.abs(o.min) : 0, i = t.value.bottom - t.value.height * (n / (o.max + n)), b = o.ticks.map((v) => ({
107
- y: t.value.bottom - t.value.height * ((v + n) / (o.max + n)),
106
+ const e = a.value.style.chart.scale.min !== null ? a.value.style.chart.scale.min : Math.min(...j.value.filter((v, f) => !$.value.includes(v.absoluteIndex)).flatMap((v) => v.series.slice(r.value.start, r.value.end))), l = a.value.style.chart.scale.max !== null ? a.value.style.chart.scale.max : Math.max(...j.value.filter((v, f) => !$.value.includes(v.absoluteIndex)).flatMap((v) => v.series.slice(r.value.start, r.value.end))), o = $e(e < 0 ? e : 0, l === e ? e + 1 < 0 ? 0 : e + 1 : l < 0 ? 0 : l, a.value.style.chart.scale.ticks), s = o.min < 0 ? Math.abs(o.min) : 0, i = t.value.bottom - t.value.height * (s / (o.max + s)), b = o.ticks.map((v) => ({
107
+ y: t.value.bottom - t.value.height * ((v + s) / (o.max + s)),
108
108
  x: t.value.left - 8,
109
109
  value: v
110
110
  }));
111
111
  return {
112
- absoluteMin: n,
112
+ absoluteMin: s,
113
113
  max: l,
114
114
  min: e,
115
115
  scale: o,
@@ -122,10 +122,10 @@ const Sl = ["id"], zl = ["onClick"], $l = {
122
122
  <circle cx="5" cy="5" r="5" fill="${e.color}"/>
123
123
  </svg>
124
124
  <span>${e.name ? e.name + ": " : ""}</span>
125
- <span>${ae(
125
+ <span>${ee(
126
126
  a.value.style.chart.dataLabels.formatter,
127
127
  e.series[c.value],
128
- le({
128
+ ae({
129
129
  p: e.prefix || "",
130
130
  v: e.series[c.value],
131
131
  s: e.suffix || "",
@@ -141,35 +141,35 @@ const Sl = ["id"], zl = ["onClick"], $l = {
141
141
  threshold: a.value.downsample.threshold
142
142
  }),
143
143
  absoluteIndex: l,
144
- color: ia(e.color || Ze.value[l] || V[l] || V[l % V.length])
144
+ color: ia(e.color || Ve.value[l] || V[l] || V[l % V.length])
145
145
  })));
146
146
  D(I, (e) => {
147
- e && qe();
147
+ e && Ze();
148
148
  });
149
149
  const h = L(() => rl(j.value.filter((e, l) => !$.value.includes(e.absoluteIndex))).map((e, l) => ({
150
150
  ...e,
151
151
  series: e.series.slice(r.value.start, r.value.end)
152
152
  })).map((e, l) => {
153
- let o = [null, void 0].includes(e.scaleMin) ? Math.min(...e.series) || 0 : e.scaleMin, n = [null, void 0].includes(e.scaleMax) ? Math.max(...e.series) || 1 : e.scaleMax;
154
- o === n && (o = o >= 0 ? n - 1 : o, n = n >= 0 ? n : o + 1), e.series.filter((O) => ![null, void 0].includes(O)).map((O) => (O - o) / (n - o));
153
+ let o = [null, void 0].includes(e.scaleMin) ? Math.min(...e.series) || 0 : e.scaleMin, s = [null, void 0].includes(e.scaleMax) ? Math.max(...e.series) || 1 : e.scaleMax;
154
+ o === s && (o = o >= 0 ? s - 1 : o, s = s >= 0 ? s : o + 1), e.series.filter((O) => ![null, void 0].includes(O)).map((O) => (O - o) / (s - o));
155
155
  const i = {
156
156
  valueMin: o,
157
- valueMax: n
157
+ valueMax: s
158
158
  }, b = e.scaleSteps || a.value.style.chart.scale.ticks;
159
159
  let v;
160
- e.autoScaling ? v = Me(i.valueMin, i.valueMax, b) : v = Me(i.valueMin < 0 ? i.valueMin : 0, i.valueMax <= 0 ? 0 : i.valueMax, b);
160
+ e.autoScaling ? v = $e(i.valueMin, i.valueMax, b) : v = $e(i.valueMin < 0 ? i.valueMin : 0, i.valueMax <= 0 ? 0 : i.valueMax, b);
161
161
  const f = u.value.stacked ? t.value.height * (1 - e.cumulatedStackRatio) : 0, U = u.value.stacked ? t.value.height / a.value.style.chart.stackGap : 0, z = u.value.stacked ? t.value.height * e.stackRatio - U : t.value.height, A = v.min < 0 ? Math.abs(v.min) : 0;
162
162
  let W;
163
- e.autoScaling && u.value.stacked && n <= 0 ? W = t.value.bottom - f - z : W = t.value.bottom - f - z * (A / (v.max + A));
164
- const ue = v.ticks.map((O, _a) => ({
163
+ e.autoScaling && u.value.stacked && s <= 0 ? W = t.value.bottom - f - z : W = t.value.bottom - f - z * (A / (v.max + A));
164
+ const re = v.ticks.map((O, _a) => ({
165
165
  y: t.value.bottom - f - z * (_a / (v.ticks.length - 1)),
166
166
  x: t.value.left - 8,
167
167
  value: O
168
- })), se = Sa({
168
+ })), ue = Sa({
169
169
  hasAutoScale: u.value.stacked && e.autoScaling,
170
170
  series: e.series,
171
171
  min: u.value.stacked ? o : m.value.min,
172
- max: u.value.stacked ? n : m.value.max,
172
+ max: u.value.stacked ? s : m.value.max,
173
173
  scale: u.value.stacked ? v : m.value.scale,
174
174
  yOffset: f,
175
175
  individualHeight: z,
@@ -177,13 +177,13 @@ const Sl = ["id"], zl = ["onClick"], $l = {
177
177
  });
178
178
  return {
179
179
  ...e,
180
- coordinatesLine: se,
180
+ coordinatesLine: ue,
181
181
  min: o,
182
- max: n,
182
+ max: s,
183
183
  localScale: v,
184
184
  localZero: W,
185
185
  localMin: A,
186
- localYLabels: ue,
186
+ localYLabels: re,
187
187
  yOffset: f,
188
188
  individualHeight: z
189
189
  };
@@ -191,15 +191,14 @@ const Sl = ["id"], zl = ["onClick"], $l = {
191
191
  start: 0,
192
192
  end: I.value
193
193
  });
194
- function qe() {
195
- Je();
194
+ function Ze() {
195
+ qe();
196
196
  }
197
- const q = d(null);
198
- async function Je() {
199
- (a.value.style.chart.zoom.startIndex !== null || a.value.style.chart.zoom.endIndex !== null) && q.value ? (a.value.style.chart.zoom.startIndex !== null && (await pe(), await pe(), q.value && q.value.setStartValue(a.value.style.chart.zoom.startIndex)), a.value.style.chart.zoom.endIndex !== null && (await pe(), await pe(), q.value && q.value.setEndValue($a(a.value.style.chart.zoom.endIndex + 1)))) : (r.value = {
200
- start: 0,
201
- end: I.value
202
- }, Pe.value += 1);
197
+ const je = d(null);
198
+ async function qe() {
199
+ await sa(), await sa();
200
+ const { startIndex: e, endIndex: l } = a.value.style.chart.zoom, o = je.value, s = I.value;
201
+ (e != null || l != null) && o ? (e != null && o.setStartValue(e), l != null && o.setEndValue($a(l + 1))) : (r.value = { start: 0, end: s }, Oe.value += 1);
203
202
  }
204
203
  function $a(e) {
205
204
  const l = I.value;
@@ -209,15 +208,15 @@ const Sl = ["id"], zl = ["onClick"], $l = {
209
208
  function Ma() {
210
209
  if (!T.value)
211
210
  return;
212
- const e = te.value.offsetWidth, l = te.value.offsetHeight;
213
- T.value.width = e * G.value * 2, T.value.height = l * G.value * 2, y.value = e * G.value * 2, E.value = l * G.value * 2, s.value.scale(G.value, G.value), oe();
211
+ const e = le.value.offsetWidth, l = le.value.offsetHeight;
212
+ T.value.width = e * G.value * 2, T.value.height = l * G.value * 2, y.value = e * G.value * 2, F.value = l * G.value * 2, n.value.scale(G.value, G.value), te();
214
213
  }
215
214
  function Ta() {
216
- if (s.value.clearRect(0, 0, 1e4, 1e4), s.value.fillStyle = a.value.style.chart.backgroundColor, s.value.fillRect(0, 0, t.value.canvasWidth, t.value.canvasHeight), u.value.stacked)
215
+ if (n.value.clearRect(0, 0, 1e4, 1e4), n.value.fillStyle = a.value.style.chart.backgroundColor, n.value.fillRect(0, 0, t.value.canvasWidth, t.value.canvasHeight), u.value.stacked)
217
216
  a.value.style.chart.grid.y.verticalLines.show && r.value.end - r.value.start < a.value.style.chart.grid.y.verticalLines.hideUnderXLength ? h.value.forEach((e) => {
218
217
  for (let l = 0; l < r.value.end - r.value.start + 1; l += 1)
219
218
  C(
220
- s.value,
219
+ n.value,
221
220
  [
222
221
  {
223
222
  x: t.value.left + t.value.slot * l,
@@ -235,7 +234,7 @@ const Sl = ["id"], zl = ["onClick"], $l = {
235
234
  }) : a.value.style.chart.grid.y.verticalLines.show && r.value.end - r.value.start >= a.value.style.chart.grid.y.verticalLines.hideUnderXLength && h.value.forEach((e) => {
236
235
  for (let l = r.value.start; l < r.value.end; l += 1)
237
236
  l % Math.floor((r.value.end - r.value.start) / a.value.style.chart.grid.y.timeLabels.modulo) === 0 && C(
238
- s.value,
237
+ n.value,
239
238
  [
240
239
  {
241
240
  x: t.value.left + t.value.slot * (l - r.value.start) + t.value.slot / 2,
@@ -252,8 +251,8 @@ const Sl = ["id"], zl = ["onClick"], $l = {
252
251
  );
253
252
  }), a.value.style.chart.grid.x.horizontalLines.show && (a.value.style.chart.grid.x.horizontalLines.alternate ? h.value.forEach((e) => {
254
253
  e.localYLabels.forEach((l, o) => {
255
- o < e.localYLabels.length - 1 && Te(
256
- s.value,
254
+ o < e.localYLabels.length - 1 && Ie(
255
+ n.value,
257
256
  [
258
257
  { x: t.value.left, y: l.y },
259
258
  { x: t.value.right, y: l.y },
@@ -261,7 +260,7 @@ const Sl = ["id"], zl = ["onClick"], $l = {
261
260
  { x: t.value.left, y: e.localYLabels[o + 1].y }
262
261
  ],
263
262
  {
264
- fillColor: o % 2 === 0 ? "transparent" : ve(a.value.style.chart.grid.x.horizontalLines.color, a.value.style.chart.grid.x.horizontalLines.opacity),
263
+ fillColor: o % 2 === 0 ? "transparent" : ie(a.value.style.chart.grid.x.horizontalLines.color, a.value.style.chart.grid.x.horizontalLines.opacity),
265
264
  strokeColor: "transparent"
266
265
  }
267
266
  );
@@ -269,7 +268,7 @@ const Sl = ["id"], zl = ["onClick"], $l = {
269
268
  }) : h.value.forEach((e) => {
270
269
  e.localYLabels.slice(r.value.start, r.value.end).forEach((l) => {
271
270
  C(
272
- s.value,
271
+ n.value,
273
272
  [
274
273
  { x: t.value.left, y: l.y },
275
274
  { x: t.value.right, y: l.y }
@@ -281,7 +280,7 @@ const Sl = ["id"], zl = ["onClick"], $l = {
281
280
  });
282
281
  })), a.value.style.chart.grid.zeroLine.show && h.value.forEach((e) => {
283
282
  C(
284
- s.value,
283
+ n.value,
285
284
  [
286
285
  { x: t.value.left, y: e.localZero },
287
286
  { x: t.value.right, y: e.localZero }
@@ -293,7 +292,7 @@ const Sl = ["id"], zl = ["onClick"], $l = {
293
292
  );
294
293
  }), a.value.style.chart.grid.y.axisLabels.show && h.value.forEach((e) => {
295
294
  C(
296
- s.value,
295
+ n.value,
297
296
  [
298
297
  { x: t.value.left, y: t.value.bottom - e.yOffset },
299
298
  { x: t.value.left, y: t.value.bottom - e.yOffset - e.individualHeight }
@@ -302,7 +301,7 @@ const Sl = ["id"], zl = ["onClick"], $l = {
302
301
  color: e.color
303
302
  }
304
303
  ), C(
305
- s.value,
304
+ n.value,
306
305
  [
307
306
  { x: t.value.right, y: t.value.bottom - e.yOffset },
308
307
  { x: t.value.right, y: t.value.bottom - e.yOffset - e.individualHeight }
@@ -313,7 +312,7 @@ const Sl = ["id"], zl = ["onClick"], $l = {
313
312
  );
314
313
  }), h.value.forEach((e) => {
315
314
  R(
316
- s.value,
315
+ n.value,
317
316
  e.name,
318
317
  y.value / 35,
319
318
  t.value.bottom - e.yOffset - e.individualHeight / 2,
@@ -329,7 +328,7 @@ const Sl = ["id"], zl = ["onClick"], $l = {
329
328
  if (a.value.style.chart.grid.y.verticalLines.show && r.value.end - r.value.start < a.value.style.chart.grid.y.verticalLines.hideUnderXLength)
330
329
  for (let e = 0; e < r.value.end - r.value.start + 1; e += 1)
331
330
  C(
332
- s.value,
331
+ n.value,
333
332
  [
334
333
  { x: t.value.left + t.value.slot * e, y: t.value.top },
335
334
  { x: t.value.left + t.value.slot * e, y: t.value.bottom }
@@ -341,7 +340,7 @@ const Sl = ["id"], zl = ["onClick"], $l = {
341
340
  else if (a.value.style.chart.grid.y.verticalLines.show && r.value.end - r.value.start >= a.value.style.chart.grid.y.verticalLines.hideUnderXLength)
342
341
  for (let e = r.value.start; e < r.value.end; e += 1)
343
342
  e % Math.floor((r.value.end - r.value.start) / a.value.style.chart.grid.y.timeLabels.modulo) === 0 && C(
344
- s.value,
343
+ n.value,
345
344
  [
346
345
  { x: t.value.left + t.value.slot * (e - r.value.start) + t.value.slot / 2, y: t.value.top },
347
346
  { x: t.value.left + t.value.slot * (e - r.value.start) + t.value.slot / 2, y: t.value.bottom }
@@ -351,8 +350,8 @@ const Sl = ["id"], zl = ["onClick"], $l = {
351
350
  }
352
351
  );
353
352
  a.value.style.chart.grid.x.horizontalLines.show && (a.value.style.chart.grid.x.horizontalLines.alternate ? m.value.yLabels.forEach((e, l) => {
354
- l < m.value.yLabels.length - 1 && Te(
355
- s.value,
353
+ l < m.value.yLabels.length - 1 && Ie(
354
+ n.value,
356
355
  [
357
356
  { x: t.value.left, y: e.y },
358
357
  { x: t.value.right, y: e.y },
@@ -360,13 +359,13 @@ const Sl = ["id"], zl = ["onClick"], $l = {
360
359
  { x: t.value.left, y: m.value.yLabels[l + 1].y }
361
360
  ],
362
361
  {
363
- fillColor: l % 2 === 0 ? "transparent" : ve(a.value.style.chart.grid.x.horizontalLines.color, a.value.style.chart.grid.x.horizontalLines.opacity),
362
+ fillColor: l % 2 === 0 ? "transparent" : ie(a.value.style.chart.grid.x.horizontalLines.color, a.value.style.chart.grid.x.horizontalLines.opacity),
364
363
  strokeColor: "transparent"
365
364
  }
366
365
  );
367
366
  }) : m.value.yLabels.forEach((e) => {
368
367
  C(
369
- s.value,
368
+ n.value,
370
369
  [
371
370
  { x: t.value.left, y: e.y },
372
371
  { x: t.value.right, y: e.y }
@@ -376,7 +375,7 @@ const Sl = ["id"], zl = ["onClick"], $l = {
376
375
  }
377
376
  );
378
377
  })), a.value.style.chart.grid.y.showAxis && C(
379
- s.value,
378
+ n.value,
380
379
  [
381
380
  { x: t.value.left, y: t.value.top },
382
381
  { x: t.value.left, y: t.value.bottom }
@@ -386,7 +385,7 @@ const Sl = ["id"], zl = ["onClick"], $l = {
386
385
  lineWidth: a.value.style.chart.grid.y.axisThickness
387
386
  }
388
387
  ), a.value.style.chart.grid.x.showAxis && C(
389
- s.value,
388
+ n.value,
390
389
  [
391
390
  { x: t.value.left, y: t.value.bottom },
392
391
  { x: t.value.right, y: t.value.bottom }
@@ -396,7 +395,7 @@ const Sl = ["id"], zl = ["onClick"], $l = {
396
395
  lineWidth: a.value.style.chart.grid.x.axisThickness
397
396
  }
398
397
  ), a.value.style.chart.grid.zeroLine.show && C(
399
- s.value,
398
+ n.value,
400
399
  [
401
400
  { x: t.value.left, y: m.value.zero },
402
401
  { x: t.value.right, y: m.value.zero }
@@ -408,7 +407,7 @@ const Sl = ["id"], zl = ["onClick"], $l = {
408
407
  );
409
408
  }
410
409
  a.value.style.chart.grid.y.axisName && R(
411
- s.value,
410
+ n.value,
412
411
  a.value.style.chart.grid.y.axisName,
413
412
  y.value - y.value / 40 * a.value.style.chart.grid.y.axisLabels.fontSizeRatio * 1.2,
414
413
  t.value.bottom - t.value.height / 2,
@@ -419,10 +418,10 @@ const Sl = ["id"], zl = ["onClick"], $l = {
419
418
  rotation: 90
420
419
  }
421
420
  ), a.value.style.chart.grid.x.axisName && R(
422
- s.value,
421
+ n.value,
423
422
  a.value.style.chart.grid.x.axisName,
424
423
  y.value / 2,
425
- E.value,
424
+ F.value,
426
425
  {
427
426
  font: `${a.value.style.chart.grid.y.axisLabels.bold ? "bold " : ""}${Math.round(y.value / 40 * a.value.style.chart.grid.y.axisLabels.fontSizeRatio)}px ${a.value.style.fontFamily}`,
428
427
  color: a.value.style.chart.color,
@@ -434,7 +433,7 @@ const Sl = ["id"], zl = ["onClick"], $l = {
434
433
  for (let l = 0; l < e.coordinatesLine.length; l += 1) {
435
434
  const o = (c.value === l ? y.value / 150 : a.value.style.chart.line.plots.show ? y.value / 200 : 0) * a.value.style.chart.line.plots.radiusRatio;
436
435
  ca(
437
- s.value,
436
+ n.value,
438
437
  { x: e.coordinatesLine[l].x, y: e.coordinatesLine[l].y },
439
438
  o,
440
439
  {
@@ -446,21 +445,21 @@ const Sl = ["id"], zl = ["onClick"], $l = {
446
445
  }
447
446
  function Ra() {
448
447
  h.value.forEach((e) => {
449
- e.showYMarker && re(e) && R(
450
- s.value,
451
- ae(
448
+ e.showYMarker && oe(e) && R(
449
+ n.value,
450
+ ee(
452
451
  a.value.style.chart.dataLabels.formatter,
453
- re(e).value,
454
- le({
452
+ oe(e).value,
453
+ ae({
455
454
  p: e.prefix || a.value.style.chart.grid.y.axisLabels.prefix || "",
456
- v: re(e).value,
455
+ v: oe(e).value,
457
456
  s: e.suffix || a.value.style.chart.grid.y.axisLabels.suffix || "",
458
457
  r: e.rounding || a.value.style.chart.grid.y.axisLabels.rounding || 0
459
458
  }),
460
- { datapoint: re(e), seriesIndex: null }
459
+ { datapoint: oe(e), seriesIndex: null }
461
460
  ),
462
461
  t.value.left - 8 + a.value.style.chart.grid.y.axisLabels.offsetX,
463
- re(e).y,
462
+ oe(e).y,
464
463
  {
465
464
  align: "right",
466
465
  font: `${a.value.style.chart.grid.y.axisLabels.bold ? "bold " : ""}${Math.round(y.value / 40 * a.value.style.chart.grid.y.axisLabels.fontSizeRatio)}px ${a.value.style.fontFamily}`,
@@ -473,11 +472,11 @@ const Sl = ["id"], zl = ["onClick"], $l = {
473
472
  a.value.style.chart.grid.y.axisLabels.show && (u.value.stacked ? h.value.forEach((e) => {
474
473
  e.localYLabels.forEach((l, o) => {
475
474
  R(
476
- s.value,
477
- ae(
475
+ n.value,
476
+ ee(
478
477
  a.value.style.chart.dataLabels.formatter,
479
478
  l.value,
480
- le({
479
+ ae({
481
480
  p: e.prefix || a.value.style.chart.grid.y.axisLabels.prefix || "",
482
481
  v: l.value,
483
482
  s: e.suffix || a.value.style.chart.grid.y.axisLabels.suffix || "",
@@ -497,11 +496,11 @@ const Sl = ["id"], zl = ["onClick"], $l = {
497
496
  });
498
497
  }) : m.value.yLabels.forEach((e, l) => {
499
498
  R(
500
- s.value,
501
- ae(
499
+ n.value,
500
+ ee(
502
501
  a.value.style.chart.dataLabels.formatter,
503
502
  e.value,
504
- le({
503
+ ae({
505
504
  p: a.value.style.chart.grid.y.axisLabels.prefix || "",
506
505
  v: e.value,
507
506
  s: a.value.style.chart.grid.y.axisLabels.suffix || "",
@@ -520,14 +519,14 @@ const Sl = ["id"], zl = ["onClick"], $l = {
520
519
  );
521
520
  }));
522
521
  }
523
- function Ea(e) {
522
+ function Fa(e) {
524
523
  for (let l = 0; l < e.coordinatesLine.length; l += 1)
525
524
  R(
526
- s.value,
527
- ae(
525
+ n.value,
526
+ ee(
528
527
  a.value.style.chart.dataLabels.formatter,
529
528
  e.coordinatesLine[l].value,
530
- le({
529
+ ae({
531
530
  p: e.prefix || "",
532
531
  v: e.coordinatesLine[l].value,
533
532
  s: e.suffix || "",
@@ -551,24 +550,24 @@ const Sl = ["id"], zl = ["onClick"], $l = {
551
550
  start: 0,
552
551
  end: a.value.style.chart.grid.y.timeLabels.values.length
553
552
  }));
554
- function Fa() {
553
+ function Ea() {
555
554
  for (let e = r.value.start; e < r.value.end; e += 1)
556
555
  (r.value.end - r.value.start < a.value.style.chart.grid.y.timeLabels.modulo || r.value.end - r.value.start >= a.value.style.chart.grid.y.timeLabels.modulo && (e % Math.floor((r.value.end - r.value.start) / a.value.style.chart.grid.y.timeLabels.modulo) === 0 || e === c.value + r.value.start && a.value.style.chart.grid.y.timeLabels.showMarker)) && R(
557
- s.value,
556
+ n.value,
558
557
  Y.value[e] ? Y.value[e].text : e + 1,
559
558
  t.value.left + t.value.slot * (e - r.value.start) + t.value.slot / 2,
560
559
  t.value.bottom + y.value / a.value.style.chart.grid.y.timeLabels.offsetY,
561
560
  {
562
561
  align: a.value.style.chart.grid.y.timeLabels.rotation === 0 ? "center" : a.value.style.chart.grid.y.timeLabels.rotation > 0 ? "left" : "right",
563
562
  font: `${a.value.style.chart.grid.y.timeLabels.bold ? "bold " : ""}${Math.round(y.value / 40 * a.value.style.chart.grid.y.timeLabels.fontSizeRatio)}px ${a.value.style.fontFamily}`,
564
- color: a.value.style.chart.grid.y.timeLabels.showMarker ? ve(a.value.style.chart.grid.y.timeLabels.color, c.value !== null ? c.value + r.value.start === e ? 100 : 20 : 100) : a.value.style.chart.grid.y.timeLabels.color,
563
+ color: a.value.style.chart.grid.y.timeLabels.showMarker ? ie(a.value.style.chart.grid.y.timeLabels.color, c.value !== null ? c.value + r.value.start === e ? 100 : 20 : 100) : a.value.style.chart.grid.y.timeLabels.color,
565
564
  rotation: a.value.style.chart.grid.y.timeLabels.rotation
566
565
  }
567
566
  );
568
567
  }
569
- function Ke() {
568
+ function Je() {
570
569
  C(
571
- s.value,
570
+ n.value,
572
571
  [
573
572
  { x: t.value.left + t.value.slot * c.value + t.value.slot / 2, y: t.value.top },
574
573
  { x: t.value.left + t.value.slot * c.value + t.value.slot / 2, y: t.value.bottom }
@@ -582,7 +581,7 @@ const Sl = ["id"], zl = ["onClick"], $l = {
582
581
  }
583
582
  function Aa() {
584
583
  M.value && C(
585
- s.value,
584
+ n.value,
586
585
  [
587
586
  { x: t.value.left, y: M.value },
588
587
  { x: t.value.right, y: M.value }
@@ -597,8 +596,8 @@ const Sl = ["id"], zl = ["onClick"], $l = {
597
596
  function Da() {
598
597
  w.value.forEach((e, l) => {
599
598
  for (let o = 0; o < e.coordinatesLine.length; o += 1)
600
- Te(
601
- s.value,
599
+ Ie(
600
+ n.value,
602
601
  [
603
602
  {
604
603
  x: t.value.left + t.value.slot * o + t.value.slot / 10 + (u.value.stacked ? 0 : t.value.slot / w.value.length * l - (l === 0 ? 0 : t.value.slot / (5 * w.value.length) * l)),
@@ -636,11 +635,11 @@ const Sl = ["id"], zl = ["onClick"], $l = {
636
635
  }
637
636
  }
638
637
  ), u.value.showDataLabels && [!0, void 0].includes(e.dataLabels) && R(
639
- s.value,
640
- ae(
638
+ n.value,
639
+ ee(
641
640
  a.value.style.chart.dataLabels.formatter,
642
641
  e.coordinatesLine[o].value,
643
- le({
642
+ ae({
644
643
  p: e.prefix || "",
645
644
  v: e.coordinatesLine[o].value,
646
645
  s: e.suffix || "",
@@ -662,20 +661,20 @@ const Sl = ["id"], zl = ["onClick"], $l = {
662
661
  }
663
662
  function Na(e) {
664
663
  e.useArea ? u.value.stacked ? da(
665
- s.value,
664
+ n.value,
666
665
  [{ x: e.coordinatesLine[0].x, y: e.localZero }, ...e.coordinatesLine, { x: e.coordinatesLine.at(-1).x, y: e.localZero }],
667
666
  {
668
- fillColor: ve(e.color, a.value.style.chart.area.opacity),
667
+ fillColor: ie(e.color, a.value.style.chart.area.opacity),
669
668
  strokeColor: "transparent"
670
669
  }
671
670
  ) : da(
672
- s.value,
671
+ n.value,
673
672
  [{ x: e.coordinatesLine[0].x, y: m.value.zero }, ...e.coordinatesLine, { x: e.coordinatesLine.at(-1).x, y: m.value.zero }],
674
673
  {
675
- fillColor: ve(e.color, a.value.style.chart.area.opacity),
674
+ fillColor: ie(e.color, a.value.style.chart.area.opacity),
676
675
  strokeColor: "transparent"
677
676
  }
678
- ) : C(s.value, e.coordinatesLine, {
677
+ ) : C(n.value, e.coordinatesLine, {
679
678
  color: e.color,
680
679
  lineWidth: 3
681
680
  });
@@ -683,7 +682,7 @@ const Sl = ["id"], zl = ["onClick"], $l = {
683
682
  function Ha() {
684
683
  h.value.forEach((e, l) => {
685
684
  C(
686
- s.value,
685
+ n.value,
687
686
  [
688
687
  { x: t.value.left, y: t.value.bottom - e.yOffset },
689
688
  { x: t.value.right, y: t.value.bottom - e.yOffset }
@@ -695,14 +694,14 @@ const Sl = ["id"], zl = ["onClick"], $l = {
695
694
  );
696
695
  });
697
696
  }
698
- function oe() {
699
- Ta(), H.value ? (c.value !== null && a.value.style.chart.selector.show && Ke(), Da(), u.value.stacked && a.value.style.chart.grid.x.showAxis && Ha(), Ia.value.forEach((e) => {
700
- (e.type === "line" || !e.type) && Na(e), Z.value && (Oa(e), u.value.showDataLabels && [!0, void 0].includes(e.dataLabels) && Ea(e));
701
- }), xe.value = fl(T.value)) : (xe.value && (s.value.clearRect(0, 0, 1e4, 1e4), s.value.drawImage(xe.value, 0, 0)), c.value !== null && a.value.style.chart.selector.show && Ke(), c.value !== null && h.value.forEach((e) => {
697
+ function te() {
698
+ Ta(), H.value ? (c.value !== null && a.value.style.chart.selector.show && Je(), Da(), u.value.stacked && a.value.style.chart.grid.x.showAxis && Ha(), Ia.value.forEach((e) => {
699
+ (e.type === "line" || !e.type) && Na(e), Z.value && (Oa(e), u.value.showDataLabels && [!0, void 0].includes(e.dataLabels) && Fa(e));
700
+ }), me.value = fl(T.value)) : (me.value && (n.value.clearRect(0, 0, 1e4, 1e4), n.value.drawImage(me.value, 0, 0)), c.value !== null && a.value.style.chart.selector.show && Je(), c.value !== null && h.value.forEach((e) => {
702
701
  if (e.type === "line" || !e.type || e.type === "plot") {
703
702
  if (!e.coordinatesLine[c.value]) return;
704
703
  e.coordinatesLine[c.value].x !== void 0 && e.coordinatesLine[c.value].y !== void 0 && ca(
705
- s.value,
704
+ n.value,
706
705
  {
707
706
  x: e.coordinatesLine[c.value].x,
708
707
  y: e.coordinatesLine[c.value].y
@@ -714,24 +713,24 @@ const Sl = ["id"], zl = ["onClick"], $l = {
714
713
  }
715
714
  );
716
715
  }
717
- })), a.value.style.chart.grid.y.timeLabels.show && Fa(), a.value.style.chart.selector.show && a.value.style.chart.selector.showHorizontalSelector && Aa(), Pa(), Ra(), H.value = !1;
716
+ })), a.value.style.chart.grid.y.timeLabels.show && Ea(), a.value.style.chart.selector.show && a.value.style.chart.selector.showHorizontalSelector && Aa(), Pa(), Ra(), H.value = !1;
718
717
  }
719
- const ye = dl(() => {
718
+ const he = dl(() => {
720
719
  Z.value = !0, Ma();
721
720
  }, I.value > 200 ? 10 : 1, !Z.value);
722
- function re(e) {
721
+ function oe(e) {
723
722
  if ([null, void 0].includes(c.value) || !e.coordinatesLine[c.value]) return !1;
724
723
  const { y: l, value: o } = e.coordinatesLine[c.value];
725
724
  return { y: l, value: o };
726
725
  }
727
726
  function Ya(e) {
728
- const { left: l, top: o } = T.value.getBoundingClientRect(), n = e.clientX - l;
729
- if (M.value = (e.clientY - o) * 2, (M.value < t.value.top || M.value > t.value.bottom) && (M.value = null), n * 2 < t.value.left || n * 2 > t.value.right) {
730
- ce.value = !1, c.value = null;
727
+ const { left: l, top: o } = T.value.getBoundingClientRect(), s = e.clientX - l;
728
+ if (M.value = (e.clientY - o) * 2, (M.value < t.value.top || M.value > t.value.bottom) && (M.value = null), s * 2 < t.value.left || s * 2 > t.value.right) {
729
+ ve.value = !1, c.value = null;
731
730
  return;
732
731
  }
733
- const i = n * 2 - t.value.left;
734
- if (c.value = Math.floor(i / t.value.slot), ce.value = !0, !Z.value) return;
732
+ const i = s * 2 - t.value.left;
733
+ if (c.value = Math.floor(i / t.value.slot), ve.value = !0, !Z.value) return;
735
734
  let b = "";
736
735
  const v = a.value.style.chart.tooltip.customFormat;
737
736
  va(v) && vl(() => v({
@@ -745,7 +744,7 @@ const Sl = ["id"], zl = ["onClick"], $l = {
745
744
  })),
746
745
  series: h.value,
747
746
  config: a.value
748
- })) ? de.value = v({
747
+ })) ? ce.value = v({
749
748
  seriesIndex: c.value,
750
749
  datapoint: h.value.map((f) => ({
751
750
  shape: f.shape || null,
@@ -756,62 +755,62 @@ const Sl = ["id"], zl = ["onClick"], $l = {
756
755
  })),
757
756
  series: h.value,
758
757
  config: a.value
759
- }) : (a.value.style.chart.grid.y.timeLabels.values.slice(r.value.start, r.value.end)[c.value] && (b += `<div style="padding-bottom: 6px; margin-bottom: 4px; border-bottom: 1px solid ${a.value.style.chart.tooltip.borderColor}; width:100%">${Y.value.slice(r.value.start, r.value.end)[c.value].text}</div>`), b += za.value.join(""), de.value = b), Z.value = !1;
758
+ }) : (a.value.style.chart.grid.y.timeLabels.values.slice(r.value.start, r.value.end)[c.value] && (b += `<div style="padding-bottom: 6px; margin-bottom: 4px; border-bottom: 1px solid ${a.value.style.chart.tooltip.borderColor}; width:100%">${Y.value.slice(r.value.start, r.value.end)[c.value].text}</div>`), b += za.value.join(""), ce.value = b), Z.value = !1;
760
759
  }
761
760
  D(() => c.value, (e) => {
762
- ye();
761
+ he();
763
762
  }), D(() => r.value, (e) => {
764
- H.value = !0, oe();
763
+ H.value = !0, te();
765
764
  }, {
766
765
  deep: !0
767
766
  }), D(() => u.value.showDataLabels, (e) => {
768
- H.value = !0, oe();
767
+ H.value = !0, te();
769
768
  }), D(() => M.value, (e) => {
770
- e && oe();
769
+ e && te();
771
770
  }), D(() => u.value.stacked, (e) => {
772
- H.value = !0, Z.value = !0, ye();
771
+ H.value = !0, Z.value = !0, he();
773
772
  });
774
773
  function Ua() {
775
- ce.value = !1, c.value = null, de.value = "", M.value = null, oe();
774
+ ve.value = !1, c.value = null, ce.value = "", M.value = null, te();
776
775
  }
777
- const F = Ie(null), J = Ie(null), K = Ie(null);
778
- sa(() => {
779
- ze();
776
+ const E = ze(null), q = ze(null), J = ze(null);
777
+ ua(() => {
778
+ we();
780
779
  });
781
- function ze() {
780
+ function we() {
782
781
  if (ul(g.dataset) ? sl({
783
782
  componentName: "VueUiXyCanvas",
784
783
  type: "dataset"
785
- }) : T.value && (s.value = T.value.getContext("2d", { willReadFrequently: !0 })), a.value.responsive) {
784
+ }) : T.value && (n.value = T.value.getContext("2d", { willReadFrequently: !0 })), a.value.responsive) {
786
785
  const e = hl(() => {
787
786
  const { width: l, height: o } = yl({
788
787
  chart: P.value,
789
- title: a.value.style.chart.title.text ? Fe.value : null,
790
- legend: a.value.style.chart.legend.show ? Ae.value : null,
791
- slicer: a.value.style.chart.zoom.show && I.value > 1 ? De.value : null,
792
- source: Ne.value
788
+ title: a.value.style.chart.title.text ? Pe.value : null,
789
+ legend: a.value.style.chart.legend.show ? Fe.value : null,
790
+ slicer: a.value.style.chart.zoom.show && I.value > 1 ? Ee.value : null,
791
+ source: Ae.value
793
792
  });
794
793
  requestAnimationFrame(() => {
795
- We.value = `${l} / ${o}`;
794
+ Ye.value = `${l} / ${o}`;
796
795
  });
797
796
  });
798
- F.value && (J.value && F.value.unobserve(J.value), F.value.disconnect()), F.value = new ResizeObserver(e), J.value = P.value.parentNode, F.value.observe(J.value);
797
+ E.value && (q.value && E.value.unobserve(q.value), E.value.disconnect()), E.value = new ResizeObserver(e), q.value = P.value.parentNode, E.value.observe(q.value);
799
798
  }
800
- K.value && K.value.disconnect(), K.value = new ResizeObserver((e) => {
799
+ J.value && J.value.disconnect(), J.value = new ResizeObserver((e) => {
801
800
  for (const l of e)
802
- l.contentBoxSize && te.value && (H.value = !0, ye());
803
- }), K.value.observe(te.value), Je();
801
+ l.contentBoxSize && le.value && (H.value = !0, he());
802
+ }), J.value.observe(le.value), qe();
804
803
  }
805
804
  Ga(() => {
806
- K.value && K.value.disconnect(), F.value && (J.value && F.value.unobserve(J.value), F.value.disconnect());
805
+ J.value && J.value.disconnect(), E.value && (q.value && E.value.unobserve(q.value), E.value.disconnect());
807
806
  });
808
- function Qe(e) {
809
- Ca("selectLegend", h.value.find((l) => l.absoluteIndex === e)), $.value.includes(e) ? $.value = $.value.filter((l) => l !== e) : $.value.push(e), H.value = !0, ye();
807
+ function Ke(e) {
808
+ Ca("selectLegend", h.value.find((l) => l.absoluteIndex === e)), $.value.includes(e) ? $.value = $.value.filter((l) => l !== e) : $.value.push(e), H.value = !0, he();
810
809
  }
811
- const ea = L(() => j.value.map((e, l) => ({
810
+ const Qe = L(() => j.value.map((e, l) => ({
812
811
  ...e,
813
812
  name: e.name,
814
- color: ia(e.color) || Ze.value[l] || V[l] || V[l % V.length],
813
+ color: ia(e.color) || Ve.value[l] || V[l] || V[l % V.length],
815
814
  shape: e.shape || "circle",
816
815
  prefix: e.prefix || "",
817
816
  suffix: e.suffix || "",
@@ -819,7 +818,7 @@ const Sl = ["id"], zl = ["onClick"], $l = {
819
818
  })).map((e) => ({
820
819
  ...e,
821
820
  opacity: $.value.includes(e.absoluteIndex) ? 0.5 : 1,
822
- segregate: () => Qe(e.absoluteIndex),
821
+ segregate: () => Ke(e.absoluteIndex),
823
822
  isSegregated: $.value.includes(e.absoluteIndex)
824
823
  }))), Wa = L(() => ({
825
824
  cy: "donut-div-legend",
@@ -828,7 +827,7 @@ const Sl = ["id"], zl = ["onClick"], $l = {
828
827
  fontSize: a.value.style.chart.legend.fontSize,
829
828
  paddingBottom: 12,
830
829
  fontWeight: a.value.style.chart.legend.bold ? "bold" : ""
831
- })), fe = L(() => {
830
+ })), ye = L(() => {
832
831
  const e = [""].concat(h.value.map((i) => i.name)).concat(' <svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 24 24" stroke-width="1.5" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><path stroke="none" d="M0 0h24v24H0z" fill="none"/><path d="M18 16v2a1 1 0 0 1 -1 1h-11l6 -7l-6 -7h11a1 1 0 0 1 1 1v2" /></svg>');
833
832
  let l = [];
834
833
  for (let i = 0; i < I.value; i += 1) {
@@ -847,9 +846,9 @@ const Sl = ["id"], zl = ["onClick"], $l = {
847
846
  outline: a.value.table.td.outline
848
847
  },
849
848
  breakpoint: a.value.table.responsiveBreakpoint
850
- }, n = [a.value.table.columnNames.period].concat(h.value.map((i) => i.name)).concat(a.value.table.columnNames.total);
851
- return { head: e, body: l.slice(0, r.value.end - r.value.start), config: o, colNames: n };
852
- }), aa = L(() => {
849
+ }, s = [a.value.table.columnNames.period].concat(h.value.map((i) => i.name)).concat(a.value.table.columnNames.total);
850
+ return { head: e, body: l.slice(0, r.value.end - r.value.start), config: o, colNames: s };
851
+ }), ea = L(() => {
853
852
  if (h.value.length === 0) return { head: [], body: [], config: {}, columnNames: [] };
854
853
  const e = h.value.map((o) => ({
855
854
  label: o.name,
@@ -857,77 +856,77 @@ const Sl = ["id"], zl = ["onClick"], $l = {
857
856
  type: o.type
858
857
  })), l = [];
859
858
  for (let o = r.value.start; o < r.value.end; o += 1) {
860
- const n = [a.value.style.chart.grid.y.timeLabels.values[o] ? Y.value[o].text : o + 1];
859
+ const s = [a.value.style.chart.grid.y.timeLabels.values[o] ? Y.value[o].text : o + 1];
861
860
  h.value.forEach((i) => {
862
- n.push(Number((i.series[o] || 0).toFixed(a.value.table.rounding)));
863
- }), l.push(n);
861
+ s.push(Number((i.series[o] || 0).toFixed(a.value.table.rounding)));
862
+ }), l.push(s);
864
863
  }
865
864
  return { head: e, body: l };
866
865
  });
867
- function la(e = null) {
868
- const l = [[a.value.style.chart.title.text], [a.value.style.chart.title.subtitle.text], [""]], o = ["", ...aa.value.head.map((v) => v.label)], n = aa.value.body, i = l.concat([o]).concat(n), b = nl(i);
866
+ function aa(e = null) {
867
+ const l = [[a.value.style.chart.title.text], [a.value.style.chart.title.subtitle.text], [""]], o = ["", ...ea.value.head.map((v) => v.label)], s = ea.value.body, i = l.concat([o]).concat(s), b = nl(i);
869
868
  e ? e(b) : il({ csvContent: b, title: a.value.style.chart.title.text || "vue-ui-xy-canvas" });
870
869
  }
871
870
  function Xa() {
872
871
  return h.value;
873
872
  }
874
- function ta() {
873
+ function la() {
875
874
  u.value.showTable = !u.value.showTable;
876
875
  }
877
- function oa() {
876
+ function ta() {
878
877
  u.value.showDataLabels = !u.value.showDataLabels;
879
878
  }
880
- function ra() {
879
+ function oa() {
881
880
  u.value.stacked = !u.value.stacked;
882
881
  }
883
- function ua() {
882
+ function ra() {
884
883
  u.value.showTooltip = !u.value.showTooltip;
885
884
  }
886
- const ge = d(!1);
887
- function $e() {
888
- ge.value = !ge.value;
885
+ const fe = d(!1);
886
+ function Se() {
887
+ fe.value = !fe.value;
889
888
  }
890
889
  async function Ba({ scale: e = 2 } = {}) {
891
890
  if (!P.value) return;
892
- const { width: l, height: o } = P.value.getBoundingClientRect(), n = l / o, { imageUri: i, base64: b } = await Cl({ domElement: P.value, base64: !0, img: !0, scale: e });
891
+ const { width: l, height: o } = P.value.getBoundingClientRect(), s = l / o, { imageUri: i, base64: b } = await Cl({ domElement: P.value, base64: !0, img: !0, scale: e });
893
892
  return {
894
893
  imageUri: i,
895
894
  base64: b,
896
895
  title: a.value.style.chart.title.text,
897
896
  width: l,
898
897
  height: o,
899
- aspectRatio: n
898
+ aspectRatio: s
900
899
  };
901
900
  }
902
901
  return ya({
903
902
  getData: Xa,
904
903
  getImage: Ba,
905
- generateCsv: la,
906
- generatePdf: _e,
907
- generateImage: Ve,
908
- toggleTable: ta,
909
- toggleLabels: oa,
910
- toggleStack: ra,
911
- toggleTooltip: ua,
912
- toggleAnnotator: $e,
913
- toggleFullscreen: Ge
914
- }), (e, l) => (S(), ne("div", {
915
- style: ee(`width:100%; position:relative; ${a.value.responsive ? "height: 100%" : ""}`),
904
+ generateCsv: aa,
905
+ generatePdf: Xe,
906
+ generateImage: Be,
907
+ toggleTable: la,
908
+ toggleLabels: ta,
909
+ toggleStack: oa,
910
+ toggleTooltip: ra,
911
+ toggleAnnotator: Se,
912
+ toggleFullscreen: _e
913
+ }), (e, l) => (S(), se("div", {
914
+ style: Q(`width:100%; position:relative; ${a.value.responsive ? "height: 100%" : ""}`),
916
915
  ref_key: "xy",
917
916
  ref: P,
918
- id: `xy_canvas_${be.value}`,
919
- class: Za(`vue-ui-donut ${he.value ? "vue-data-ui-wrapper-fullscreen" : ""}`),
920
- onMouseenter: l[5] || (l[5] = () => p(He)(!0)),
921
- onMouseleave: l[6] || (l[6] = () => p(He)(!1))
917
+ id: `xy_canvas_${pe.value}`,
918
+ class: Za(`vue-ui-donut ${de.value ? "vue-data-ui-wrapper-fullscreen" : ""}`),
919
+ onMouseenter: l[5] || (l[5] = () => p(De)(!0)),
920
+ onMouseleave: l[6] || (l[6] = () => p(De)(!1))
922
921
  }, [
923
- a.value.style.chart.title.text ? (S(), ne("div", {
922
+ a.value.style.chart.title.text ? (S(), se("div", {
924
923
  key: 0,
925
924
  ref_key: "chartTitle",
926
- ref: Fe,
927
- style: ee(`width:100%;background:${a.value.style.chart.backgroundColor};`)
925
+ ref: Pe,
926
+ style: Q(`width:100%;background:${a.value.style.chart.backgroundColor};`)
928
927
  }, [
929
928
  (S(), N(xl, {
930
- key: `title_${Le.value}`,
929
+ key: `title_${be.value}`,
931
930
  config: {
932
931
  title: {
933
932
  cy: "xy-canvas-title",
@@ -940,49 +939,49 @@ const Sl = ["id"], zl = ["onClick"], $l = {
940
939
  }
941
940
  }, null, 8, ["config"]))
942
941
  ], 4)) : X("", !0),
943
- a.value.userOptions.show && we.value && (p(Ye) || p(Se)) ? (S(), N(p(La), {
942
+ a.value.userOptions.show && ke.value && (p(Ne) || p(Ce)) ? (S(), N(p(La), {
944
943
  ref: "details",
945
- key: `user_option_${Ee.value}`,
944
+ key: `user_option_${Re.value}`,
946
945
  backgroundColor: a.value.style.chart.backgroundColor,
947
946
  color: a.value.style.chart.color,
948
- isPrinting: p(Xe),
949
- isImaging: p(Be),
950
- uid: be.value,
947
+ isPrinting: p(Ue),
948
+ isImaging: p(We),
949
+ uid: pe.value,
951
950
  hasTooltip: a.value.userOptions.buttons.tooltip && a.value.style.chart.tooltip.show,
952
951
  hasPdf: a.value.userOptions.buttons.pdf,
953
952
  hasImg: a.value.userOptions.buttons.img,
954
953
  hasXls: a.value.userOptions.buttons.csv,
955
954
  hasLabel: a.value.userOptions.buttons.labels,
956
- hasStack: Oe.dataset.length > 1 && a.value.userOptions.buttons.stack,
955
+ hasStack: Me.dataset.length > 1 && a.value.userOptions.buttons.stack,
957
956
  hasFullscreen: a.value.userOptions.buttons.fullscreen,
958
957
  hasTable: r.value.end - r.value.start < 200 && a.value.userOptions.buttons.table,
959
- isFullscreen: he.value,
958
+ isFullscreen: de.value,
960
959
  isTooltip: u.value.showTooltip,
961
960
  isStacked: u.value.stacked,
962
961
  titles: { ...a.value.userOptions.buttonTitles },
963
962
  chartElement: P.value,
964
963
  position: a.value.userOptions.position,
965
964
  hasAnnotator: a.value.userOptions.buttons.annotator,
966
- isAnnotation: ge.value,
965
+ isAnnotation: fe.value,
967
966
  callbacks: a.value.userOptions.callbacks,
968
967
  printScale: a.value.userOptions.print.scale,
969
- onToggleFullscreen: Ge,
970
- onGeneratePdf: p(_e),
971
- onGenerateCsv: la,
972
- onGenerateImage: p(Ve),
973
- onToggleTable: ta,
974
- onToggleLabels: oa,
975
- onToggleStack: ra,
976
- onToggleTooltip: ua,
977
- onToggleAnnotator: $e,
978
- style: ee({
979
- visibility: p(Ye) ? p(Se) ? "visible" : "hidden" : "visible"
968
+ onToggleFullscreen: _e,
969
+ onGeneratePdf: p(Xe),
970
+ onGenerateCsv: aa,
971
+ onGenerateImage: p(Be),
972
+ onToggleTable: la,
973
+ onToggleLabels: ta,
974
+ onToggleStack: oa,
975
+ onToggleTooltip: ra,
976
+ onToggleAnnotator: Se,
977
+ style: Q({
978
+ visibility: p(Ne) ? p(Ce) ? "visible" : "hidden" : "visible"
980
979
  })
981
980
  }, ja({ _: 2 }, [
982
981
  e.$slots.menuIcon ? {
983
982
  name: "menuIcon",
984
- fn: x(({ isOpen: o, color: n }) => [
985
- k(e.$slots, "menuIcon", B(_({ isOpen: o, color: n })), void 0, !0)
983
+ fn: x(({ isOpen: o, color: s }) => [
984
+ k(e.$slots, "menuIcon", B(_({ isOpen: o, color: s })), void 0, !0)
986
985
  ]),
987
986
  key: "0"
988
987
  } : void 0,
@@ -1037,26 +1036,26 @@ const Sl = ["id"], zl = ["onClick"], $l = {
1037
1036
  } : void 0,
1038
1037
  e.$slots.optionFullscreen ? {
1039
1038
  name: "optionFullscreen",
1040
- fn: x(({ toggleFullscreen: o, isFullscreen: n }) => [
1041
- k(e.$slots, "optionFullscreen", B(_({ toggleFullscreen: o, isFullscreen: n })), void 0, !0)
1039
+ fn: x(({ toggleFullscreen: o, isFullscreen: s }) => [
1040
+ k(e.$slots, "optionFullscreen", B(_({ toggleFullscreen: o, isFullscreen: s })), void 0, !0)
1042
1041
  ]),
1043
1042
  key: "8"
1044
1043
  } : void 0,
1045
1044
  e.$slots.optionAnnotator ? {
1046
1045
  name: "optionAnnotator",
1047
- fn: x(({ toggleAnnotator: o, isAnnotator: n }) => [
1048
- k(e.$slots, "optionAnnotator", B(_({ toggleAnnotator: o, isAnnotator: n })), void 0, !0)
1046
+ fn: x(({ toggleAnnotator: o, isAnnotator: s }) => [
1047
+ k(e.$slots, "optionAnnotator", B(_({ toggleAnnotator: o, isAnnotator: s })), void 0, !0)
1049
1048
  ]),
1050
1049
  key: "9"
1051
1050
  } : void 0
1052
1051
  ]), 1032, ["backgroundColor", "color", "isPrinting", "isImaging", "uid", "hasTooltip", "hasPdf", "hasImg", "hasXls", "hasLabel", "hasStack", "hasFullscreen", "hasTable", "isFullscreen", "isTooltip", "isStacked", "titles", "chartElement", "position", "hasAnnotator", "isAnnotation", "callbacks", "printScale", "onGeneratePdf", "onGenerateImage", "style"])) : X("", !0),
1053
- ie("div", {
1052
+ ne("div", {
1054
1053
  class: "vue-ui-xy-canvas",
1055
- style: ee(`position: relative; aspect-ratio: ${We.value}`),
1054
+ style: Q(`position: relative; aspect-ratio: ${Ye.value}`),
1056
1055
  ref_key: "container",
1057
- ref: te
1056
+ ref: le
1058
1057
  }, [
1059
- we.value ? (S(), ne("canvas", {
1058
+ ke.value ? (S(), se("canvas", {
1060
1059
  key: 0,
1061
1060
  ref_key: "canvas",
1062
1061
  ref: T,
@@ -1082,7 +1081,7 @@ const Sl = ["id"], zl = ["onClick"], $l = {
1082
1081
  }
1083
1082
  }, null, 8, ["config"])),
1084
1083
  qa(p(xa), {
1085
- show: u.value.showTooltip && ce.value,
1084
+ show: u.value.showTooltip && ve.value,
1086
1085
  backgroundColor: a.value.style.chart.tooltip.backgroundColor,
1087
1086
  color: a.value.style.chart.tooltip.color,
1088
1087
  fontSize: a.value.style.chart.tooltip.fontSize,
@@ -1092,30 +1091,32 @@ const Sl = ["id"], zl = ["onClick"], $l = {
1092
1091
  position: a.value.style.chart.tooltip.position,
1093
1092
  offsetY: a.value.style.chart.tooltip.offsetY,
1094
1093
  parent: p(T),
1095
- content: de.value,
1096
- isFullscreen: he.value,
1094
+ content: ce.value,
1095
+ isFullscreen: de.value,
1097
1096
  backgroundOpacity: a.value.style.chart.tooltip.backgroundOpacity,
1098
- isCustom: p(va)(a.value.style.chart.tooltip.customFormat)
1097
+ isCustom: p(va)(a.value.style.chart.tooltip.customFormat),
1098
+ smooth: a.value.style.chart.tooltip.smooth,
1099
+ backdropFilter: a.value.style.chart.tooltip.backdropFilter
1099
1100
  }, {
1100
1101
  "tooltip-before": x(() => [
1101
- k(e.$slots, "tooltip-before", B(_({ ...Re.value })), void 0, !0)
1102
+ k(e.$slots, "tooltip-before", B(_({ ...Te.value })), void 0, !0)
1102
1103
  ]),
1103
1104
  "tooltip-after": x(() => [
1104
- k(e.$slots, "tooltip-after", B(_({ ...Re.value })), void 0, !0)
1105
+ k(e.$slots, "tooltip-after", B(_({ ...Te.value })), void 0, !0)
1105
1106
  ]),
1106
1107
  _: 3
1107
- }, 8, ["show", "backgroundColor", "color", "fontSize", "borderRadius", "borderColor", "borderWidth", "position", "offsetY", "parent", "content", "isFullscreen", "backgroundOpacity", "isCustom"])
1108
+ }, 8, ["show", "backgroundColor", "color", "fontSize", "borderRadius", "borderColor", "borderWidth", "position", "offsetY", "parent", "content", "isFullscreen", "backgroundOpacity", "isCustom", "smooth", "backdropFilter"])
1108
1109
  ], 4),
1109
- ie("div", {
1110
+ ne("div", {
1110
1111
  ref_key: "chartSlicer",
1111
- ref: De,
1112
- style: ee(`width:100%;background:${a.value.style.chart.backgroundColor}`),
1112
+ ref: Ee,
1113
+ style: Q(`width:100%;background:${a.value.style.chart.backgroundColor}`),
1113
1114
  "data-dom-to-png-ignore": ""
1114
1115
  }, [
1115
1116
  a.value.style.chart.zoom.show && I.value > 1 ? (S(), N(Ll, {
1116
1117
  ref_key: "slicerComponent",
1117
- ref: q,
1118
- key: `slicer_${Pe.value}`,
1118
+ ref: je,
1119
+ key: `slicer_${Oe.value}`,
1119
1120
  background: a.value.style.chart.zoom.color,
1120
1121
  borderColor: a.value.style.chart.backgroundColor,
1121
1122
  fontSize: a.value.style.chart.zoom.fontSize,
@@ -1137,7 +1138,7 @@ const Sl = ["id"], zl = ["onClick"], $l = {
1137
1138
  refreshEndPoint: a.value.style.chart.zoom.endIndex !== null ? a.value.style.chart.zoom.endIndex + 1 : I.value,
1138
1139
  enableRangeHandles: a.value.style.chart.zoom.enableRangeHandles,
1139
1140
  enableSelectionDrag: a.value.style.chart.zoom.enableSelectionDrag,
1140
- onReset: qe
1141
+ onReset: Ze
1141
1142
  }, {
1142
1143
  "reset-action": x(({ reset: o }) => [
1143
1144
  k(e.$slots, "reset-action", B(_({ reset: o })), void 0, !0)
@@ -1145,35 +1146,35 @@ const Sl = ["id"], zl = ["onClick"], $l = {
1145
1146
  _: 3
1146
1147
  }, 8, ["background", "borderColor", "fontSize", "useResetSlot", "labelLeft", "labelRight", "textColor", "inputColor", "selectColor", "max", "valueStart", "valueEnd", "start", "end", "refreshStartPoint", "refreshEndPoint", "enableRangeHandles", "enableSelectionDrag"])) : X("", !0)
1147
1148
  ], 4),
1148
- ie("div", {
1149
+ ne("div", {
1149
1150
  ref_key: "chartLegend",
1150
- ref: Ae
1151
+ ref: Fe
1151
1152
  }, [
1152
- a.value.style.chart.legend.show && we.value ? (S(), N(bl, {
1153
- legendSet: ea.value,
1153
+ a.value.style.chart.legend.show && ke.value ? (S(), N(bl, {
1154
+ legendSet: Qe.value,
1154
1155
  config: Wa.value,
1155
- key: `legend_${Ce.value}`,
1156
- onClickMarker: l[3] || (l[3] = ({ i: o }) => Qe(o))
1156
+ key: `legend_${Le.value}`,
1157
+ onClickMarker: l[3] || (l[3] = ({ i: o }) => Ke(o))
1157
1158
  }, {
1158
- item: x(({ legend: o, index: n }) => [
1159
- ie("div", {
1159
+ item: x(({ legend: o, index: s }) => [
1160
+ ne("div", {
1160
1161
  onClick: (i) => o.segregate(),
1161
- style: ee(`opacity:${$.value.includes(n) ? 0.5 : 1}`)
1162
+ style: Q(`opacity:${$.value.includes(s) ? 0.5 : 1}`)
1162
1163
  }, na(o.name), 13, zl)
1163
1164
  ]),
1164
1165
  _: 1
1165
1166
  }, 8, ["legendSet", "config"])) : k(e.$slots, "legend", {
1166
1167
  key: 1,
1167
- legend: ea.value
1168
+ legend: Qe.value
1168
1169
  }, void 0, !0)
1169
1170
  ], 512),
1170
- e.$slots.watermark ? (S(), ne("div", $l, [
1171
- k(e.$slots, "watermark", B(_({ isPrinting: p(Xe) || p(Be) })), void 0, !0)
1171
+ e.$slots.watermark ? (S(), se("div", $l, [
1172
+ k(e.$slots, "watermark", B(_({ isPrinting: p(Ue) || p(We) })), void 0, !0)
1172
1173
  ])) : X("", !0),
1173
- e.$slots.source ? (S(), ne("div", {
1174
+ e.$slots.source ? (S(), se("div", {
1174
1175
  key: 3,
1175
1176
  ref_key: "source",
1176
- ref: Ne,
1177
+ ref: Ae,
1177
1178
  dir: "auto"
1178
1179
  }, [
1179
1180
  k(e.$slots, "source", {}, void 0, !0)
@@ -1196,16 +1197,16 @@ const Sl = ["id"], zl = ["onClick"], $l = {
1196
1197
  }, {
1197
1198
  content: x(() => [
1198
1199
  (S(), N(p(pa), {
1199
- key: `table_${ke.value}`,
1200
- colNames: fe.value.colNames,
1201
- head: fe.value.head,
1202
- body: fe.value.body,
1203
- config: fe.value.config,
1200
+ key: `table_${xe.value}`,
1201
+ colNames: ye.value.colNames,
1202
+ head: ye.value.head,
1203
+ body: ye.value.body,
1204
+ config: ye.value.config,
1204
1205
  title: `${a.value.style.chart.title.text}${a.value.style.chart.title.subtitle.text ? ` : ${a.value.style.chart.title.subtitle.text}` : ""}`,
1205
1206
  onClose: l[4] || (l[4] = (o) => u.value.showTable = !1)
1206
1207
  }, {
1207
1208
  th: x(({ th: o }) => [
1208
- ie("div", { innerHTML: o }, null, 8, Il)
1209
+ ne("div", { innerHTML: o }, null, 8, Il)
1209
1210
  ]),
1210
1211
  td: x(({ td: o }) => [
1211
1212
  Ja(na(o), 1)
@@ -1220,12 +1221,12 @@ const Sl = ["id"], zl = ["onClick"], $l = {
1220
1221
  parent: P.value,
1221
1222
  backgroundColor: a.value.style.chart.backgroundColor,
1222
1223
  color: a.value.style.chart.color,
1223
- active: ge.value,
1224
- onClose: $e
1224
+ active: fe.value,
1225
+ onClose: Se
1225
1226
  }, null, 8, ["parent", "backgroundColor", "color", "active"])) : X("", !0)
1226
1227
  ], 46, Sl));
1227
1228
  }
1228
- }, Xl = /* @__PURE__ */ wl(Ml, [["__scopeId", "data-v-8ed41bd5"]]);
1229
+ }, Xl = /* @__PURE__ */ wl(Ml, [["__scopeId", "data-v-69531ac6"]]);
1229
1230
  export {
1230
1231
  Xl as default
1231
1232
  };