vue-data-ui 2.16.5 → 2.17.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 (92) hide show
  1. package/README.md +85 -55
  2. package/dist/{Arrow-D9B36pfx.js → Arrow-BAEkZGzL.js} +1 -1
  3. package/dist/{BaseDraggableDialog-DloHiD4h.js → BaseDraggableDialog-ChCkcmj_.js} +2 -2
  4. package/dist/{BaseIcon-DJab5OQD.js → BaseIcon-naqtCxVi.js} +1 -1
  5. package/dist/{ColorPicker-Br0rMnNb.js → ColorPicker-CfIPgxcj.js} +2 -2
  6. package/dist/{DataTable-B6MXw9cG.js → DataTable-D0VYDhfx.js} +2 -2
  7. package/dist/{Legend-DoxQwq_u.js → Legend-Bxlv67uY.js} +2 -2
  8. package/dist/{NonSvgPenAndPaper-DhbyLXKW.js → NonSvgPenAndPaper-b_oVy-Dd.js} +3 -3
  9. package/dist/{PackageVersion-DCreTQN4.js → PackageVersion-5TR4ocqp.js} +1 -1
  10. package/dist/{PenAndPaper-BS60tkQN.js → PenAndPaper-D6AqipIO.js} +32 -32
  11. package/dist/{Shape-CrstrfQ9.js → Shape-DtFT5EJa.js} +1 -1
  12. package/dist/{Slicer-Bd0AkciG.js → Slicer-CL6-MRI6.js} +2 -2
  13. package/dist/{SparkTooltip-B4j_rvhG.js → SparkTooltip-Bcv1aoA5.js} +1 -1
  14. package/dist/{Title-BQLtfM0P.js → Title-B-2bV0SW.js} +1 -1
  15. package/dist/{Tooltip-5JmGL7sR.js → Tooltip-CoQnTnr-.js} +1 -1
  16. package/dist/{UserOptions-DMGkAAIO.js → UserOptions-Dd34lEKb.js} +137 -129
  17. package/dist/{dom-to-png-g3Q8kjna.js → dom-to-png-2AA0wHlX.js} +1 -1
  18. package/dist/img-Y_hYz-ZC.js +27 -0
  19. package/dist/{index-CZNLCg7T.js → index-pPGk-uhD.js} +1 -1
  20. package/dist/{pdf-DJVOD0cz.js → pdf-yfk3d1is.js} +1 -1
  21. package/dist/style.css +1 -1
  22. package/dist/types/vue-data-ui.d.cts +1098 -162
  23. package/dist/types/vue-data-ui.d.ts +1098 -162
  24. package/dist/{useNestedProp-BcPDA6Xr.js → useNestedProp-DjACxgdZ.js} +1 -1
  25. package/dist/{usePrinter-ButWuZVm.js → usePrinter-DDHcrl0A.js} +2 -2
  26. package/dist/vue-data-ui-CIWxgKjd.js +312 -0
  27. package/dist/vue-data-ui.js +1 -1
  28. package/dist/{vue-ui-3d-bar-o8P0DCbz.js → vue-ui-3d-bar-D5Wpdqfk.js} +244 -235
  29. package/dist/{vue-ui-accordion-CO4hmfuX.js → vue-ui-accordion-CVnA550V.js} +3 -3
  30. package/dist/{vue-ui-age-pyramid-C9T5bAEl.js → vue-ui-age-pyramid-BuAl-zC5.js} +167 -158
  31. package/dist/{vue-ui-annotator-CyOygaxE.js → vue-ui-annotator-gl2A20m3.js} +2 -2
  32. package/dist/{vue-ui-bullet-CPT1jdcz.js → vue-ui-bullet-D-VMKpwe.js} +131 -122
  33. package/dist/{vue-ui-candlestick-BfZTMGE0.js → vue-ui-candlestick-1r6YwiUV.js} +248 -239
  34. package/dist/{vue-ui-carousel-table-Bam9qqkj.js → vue-ui-carousel-table-B6UJoNtP.js} +17 -16
  35. package/dist/{vue-ui-chestnut-BAIMBFaQ.js → vue-ui-chestnut-DnlBYpC5.js} +257 -248
  36. package/dist/{vue-ui-chord-92E1yKdu.js → vue-ui-chord-D3kpzYjp.js} +229 -220
  37. package/dist/{vue-ui-circle-pack-DxXPqA7Z.js → vue-ui-circle-pack-CHgdpoYu.js} +200 -191
  38. package/dist/{vue-ui-cursor-Bvy_o8wb.js → vue-ui-cursor-63EAvElT.js} +2 -2
  39. package/dist/{vue-ui-dashboard--QRCkp7q.js → vue-ui-dashboard-Da6CPET-.js} +62 -62
  40. package/dist/{vue-ui-digits-Dl8RHLvt.js → vue-ui-digits-CA8pUKej.js} +2 -2
  41. package/dist/{vue-ui-donut-BxSTOFDt.js → vue-ui-donut-CKa7nFjt.js} +352 -343
  42. package/dist/{vue-ui-donut-evolution-DNzTtWnJ.js → vue-ui-donut-evolution-qeBEA4W8.js} +267 -258
  43. package/dist/{vue-ui-dumbbell-D01p3t3P.js → vue-ui-dumbbell-Bm0PvAKT.js} +146 -137
  44. package/dist/{vue-ui-flow-BMvaRn7E.js → vue-ui-flow-C2dqXvrU.js} +171 -162
  45. package/dist/{vue-ui-funnel-Bd_3wouw.js → vue-ui-funnel-Dvy5rRld.js} +134 -125
  46. package/dist/{vue-ui-galaxy-D4HJH1qq.js → vue-ui-galaxy-Y8LYp5n2.js} +181 -172
  47. package/dist/{vue-ui-gauge-CgIlk2pu.js → vue-ui-gauge-BBo0jWAP.js} +166 -157
  48. package/dist/{vue-ui-gizmo-C1-QYvsn.js → vue-ui-gizmo-DjXfTOWn.js} +3 -3
  49. package/dist/{vue-ui-heatmap-tUn_BlSp.js → vue-ui-heatmap-BbxRpltP.js} +242 -229
  50. package/dist/{vue-ui-history-plot-TfVRzyIK.js → vue-ui-history-plot-ChYf3Nvc.js} +218 -209
  51. package/dist/{vue-ui-kpi-BuL8MAMD.js → vue-ui-kpi-Vfc5-JnE.js} +3 -3
  52. package/dist/{vue-ui-mini-loader-DIeG36P8.js → vue-ui-mini-loader-C0-Nsz8K.js} +2 -2
  53. package/dist/{vue-ui-molecule-8RJNzWIw.js → vue-ui-molecule-B7Yu7vzF.js} +155 -146
  54. package/dist/{vue-ui-mood-radar-DftzG_Bi.js → vue-ui-mood-radar-C8JUTwNw.js} +130 -121
  55. package/dist/{vue-ui-nested-donuts-B9JC_0xK.js → vue-ui-nested-donuts-D0RgFifU.js} +255 -246
  56. package/dist/{vue-ui-onion-DTjaH-Bu.js → vue-ui-onion-D4U7TL_N.js} +150 -141
  57. package/dist/{vue-ui-parallel-coordinate-plot-DwqfVqFB.js → vue-ui-parallel-coordinate-plot-CXMT7Rjr.js} +194 -185
  58. package/dist/{vue-ui-quadrant-Cv3VWA6d.js → vue-ui-quadrant-B13pTVVZ.js} +248 -239
  59. package/dist/{vue-ui-quick-chart-imc0KrbF.js → vue-ui-quick-chart-C0UL4o63.js} +328 -319
  60. package/dist/{vue-ui-radar-kNySclk1.js → vue-ui-radar-XpdiXnhz.js} +165 -156
  61. package/dist/{vue-ui-rating-DBhEbgwD.js → vue-ui-rating-CM8ZrUb1.js} +2 -2
  62. package/dist/{vue-ui-relation-circle-BJQhS0aG.js → vue-ui-relation-circle-CYoFNekk.js} +145 -136
  63. package/dist/{vue-ui-ridgeline-Bhd1Uwm8.js → vue-ui-ridgeline-QUquE6ck.js} +198 -189
  64. package/dist/{vue-ui-rings-C_IT2mi0.js → vue-ui-rings-DwT0IfOh.js} +136 -127
  65. package/dist/{vue-ui-scatter-i8XZreWa.js → vue-ui-scatter-zDpy1udm.js} +207 -199
  66. package/dist/{vue-ui-skeleton-D9B8DY_k.js → vue-ui-skeleton-DJPjyNYn.js} +3 -3
  67. package/dist/{vue-ui-smiley-gmdnUWcW.js → vue-ui-smiley-DoDXl6k0.js} +2 -2
  68. package/dist/{vue-ui-spark-trend-DOF3vl8_.js → vue-ui-spark-trend-CniV6Cpr.js} +3 -3
  69. package/dist/{vue-ui-sparkbar-BVOVq3dA.js → vue-ui-sparkbar-Ds2ITgwn.js} +3 -3
  70. package/dist/{vue-ui-sparkgauge-DVO2Z0Rg.js → vue-ui-sparkgauge-CosfK-kw.js} +3 -3
  71. package/dist/{vue-ui-sparkhistogram-CbV86a2i.js → vue-ui-sparkhistogram-C7O1wPAJ.js} +4 -4
  72. package/dist/{vue-ui-sparkline-jDNAVZu-.js → vue-ui-sparkline-B_iUj3F2.js} +3 -3
  73. package/dist/{vue-ui-sparkstackbar-auT8CUXm.js → vue-ui-sparkstackbar-DBhWrysr.js} +3 -3
  74. package/dist/{vue-ui-stackbar-DmO02We2.js → vue-ui-stackbar-C3aV4IcL.js} +242 -233
  75. package/dist/{vue-ui-strip-plot-B25s87lj.js → vue-ui-strip-plot-Bvr1GAzH.js} +204 -195
  76. package/dist/{vue-ui-table-B4xbQdK_.js → vue-ui-table-DQKKRgyo.js} +3 -3
  77. package/dist/{vue-ui-table-heatmap-DI57VcvH.js → vue-ui-table-heatmap-Dyqj5XJC.js} +26 -25
  78. package/dist/{vue-ui-table-sparkline-DRgsZztN.js → vue-ui-table-sparkline-D4RubyLj.js} +8 -7
  79. package/dist/{vue-ui-thermometer-DkeT5DV_.js → vue-ui-thermometer-B0FKI5cG.js} +149 -140
  80. package/dist/{vue-ui-timer-uon_DLeH.js → vue-ui-timer-DUCBRIl-.js} +5 -5
  81. package/dist/{vue-ui-tiremarks-BV0qXRF2.js → vue-ui-tiremarks-CRt4UQZD.js} +114 -105
  82. package/dist/{vue-ui-treemap-DzJsjtz7.js → vue-ui-treemap-CWP5nYDx.js} +298 -289
  83. package/dist/{vue-ui-vertical-bar-CkLS_DGb.js → vue-ui-vertical-bar-C5fPYltO.js} +294 -285
  84. package/dist/{vue-ui-waffle-B2XiLGQx.js → vue-ui-waffle-BpWLlfpg.js} +190 -181
  85. package/dist/{vue-ui-wheel-BR1DDpKU.js → vue-ui-wheel-CTzuCroy.js} +96 -87
  86. package/dist/{vue-ui-word-cloud-BvOT6hu2.js → vue-ui-word-cloud-BPokdaP1.js} +212 -203
  87. package/dist/{vue-ui-world-BeP91MNX.js → vue-ui-world-CS6k-oil.js} +201 -192
  88. package/dist/{vue-ui-xy-BaR-ZDba.js → vue-ui-xy-CQ425kLR.js} +517 -510
  89. package/dist/{vue-ui-xy-canvas-B4ZmECCK.js → vue-ui-xy-canvas-D2IFwAr7.js} +364 -355
  90. package/package.json +1 -1
  91. package/dist/img-CTC5DLKL.js +0 -20
  92. package/dist/vue-data-ui-BB8Upnjm.js +0 -301
@@ -1,19 +1,20 @@
1
- import { defineAsyncComponent as K, ref as d, computed as x, useSlots as Ba, onMounted as ra, watch as A, nextTick as pe, shallowRef as Ie, onBeforeUnmount as Va, createElementBlock as ne, openBlock as z, unref as p, normalizeClass as Ga, normalizeStyle as Q, createCommentVNode as W, createBlock as D, createElementVNode as ie, createSlots as Za, withCtx as b, renderSlot as L, normalizeProps as X, guardReactiveProps as _, createVNode as ja, toDisplayString as sa, createTextVNode as qa } from "vue";
2
- import { u as Ja, c as Ka, t as Qa, p as B, a as el, C as me, b as al, D as Me, i as ee, f as ae, d as na, a2 as ll, G as tl, aj as ol, o as ul, e as rl, x as ia, q as sl, r as nl, y as il, s as ve, l as vl } from "./index-CZNLCg7T.js";
3
- import { d as cl, t as dl, u as hl, c as yl, a as va, l as k, r as Te, b as R, p as ca } from "./useResponsive-DfdjqQps.js";
4
- import { u as da } from "./useNestedProp-BcPDA6Xr.js";
5
- import { u as fl } from "./usePrinter-ButWuZVm.js";
6
- import { u as gl } from "./useUserOptionState-BIvW1Kz7.js";
7
- import { u as pl } from "./useChartAccessibility-9icAAmYg.js";
8
- import ml from "./Legend-DoxQwq_u.js";
9
- import bl from "./Title-BQLtfM0P.js";
10
- import { S as xl } from "./Slicer-Bd0AkciG.js";
11
- import { u as Ll } from "./useTimeLabels-Mrr0jrpL.js";
12
- import { _ as kl } from "./_plugin-vue_export-helper-CHgC5LLL.js";
13
- const Cl = ["id"], wl = ["onClick"], zl = {
1
+ import { defineAsyncComponent as Q, ref as d, computed as x, useSlots as Va, onMounted as sa, watch as A, 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 D, createElementVNode as ie, createSlots as ja, withCtx as b, renderSlot as L, normalizeProps as _, guardReactiveProps as B, 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, a2 as tl, G as ol, aj 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-pPGk-uhD.js";
3
+ import { d as dl, t as hl, u as yl, c as fl, a as ca, l as k, r as Te, b as R, p as da } from "./useResponsive-DfdjqQps.js";
4
+ import { u as ha } from "./useNestedProp-DjACxgdZ.js";
5
+ import { u as gl } from "./usePrinter-DDHcrl0A.js";
6
+ import { u as pl } from "./useUserOptionState-BIvW1Kz7.js";
7
+ import { u as ml } from "./useChartAccessibility-9icAAmYg.js";
8
+ import bl from "./Legend-Bxlv67uY.js";
9
+ import xl from "./Title-B-2bV0SW.js";
10
+ import { S as Ll } from "./Slicer-CL6-MRI6.js";
11
+ import { u as kl } from "./useTimeLabels-Mrr0jrpL.js";
12
+ import Cl from "./img-Y_hYz-ZC.js";
13
+ import { _ as wl } from "./_plugin-vue_export-helper-CHgC5LLL.js";
14
+ const Sl = ["id"], zl = ["onClick"], $l = {
14
15
  key: 2,
15
16
  class: "vue-data-ui-watermark"
16
- }, Sl = ["innerHTML"], $l = {
17
+ }, Il = ["innerHTML"], Ml = {
17
18
  __name: "vue-ui-xy-canvas",
18
19
  props: {
19
20
  dataset: {
@@ -30,48 +31,48 @@ const Cl = ["id"], wl = ["onClick"], zl = {
30
31
  }
31
32
  },
32
33
  emits: ["selectLegend"],
33
- setup(Oe, { expose: ha, emit: ya }) {
34
- const fa = K(() => import("./vue-ui-accordion-CO4hmfuX.js")), ga = K(() => import("./DataTable-B6MXw9cG.js")), pa = K(() => import("./NonSvgPenAndPaper-DhbyLXKW.js")), ma = K(() => import("./vue-ui-skeleton-D9B8DY_k.js")), ba = K(() => import("./Tooltip-5JmGL7sR.js")), xa = K(() => import("./UserOptions-DMGkAAIO.js")), { vue_ui_xy_canvas: La } = Ja(), g = Oe, be = d(Ka()), le = d(null), te = d(null), s = d(null), y = d(1), P = d(1), ce = d(!1), c = d(null), de = d(""), Re = d(null), $ = d([]), V = d(1), N = d(!0), G = d(!0), xe = d(null), Pe = d(0), Fe = d(0), he = d(!1), Ee = d(null), Ae = d(null), De = d(null), Ne = d(null), Le = d(0), ke = d(0), Ce = d(0), M = d(null), we = x(() => !!g.dataset && g.dataset.length), ka = ya, Ca = Ba();
35
- ra(() => {
36
- Ca["chart-background"] && console.warn("VueUiXyCanvas does not support the #chart-background slot.");
34
+ setup(Oe, { expose: ya, emit: fa }) {
35
+ const ga = Q(() => import("./vue-ui-accordion-CVnA550V.js")), pa = Q(() => import("./DataTable-D0VYDhfx.js")), ma = Q(() => import("./NonSvgPenAndPaper-b_oVy-Dd.js")), ba = Q(() => import("./vue-ui-skeleton-DJPjyNYn.js")), xa = Q(() => import("./Tooltip-CoQnTnr-.js")), La = Q(() => import("./UserOptions-Dd34lEKb.js")), { vue_ui_xy_canvas: ka } = Ka(), g = Oe, be = d(Qa()), N = d(null), te = d(null), s = d(null), y = d(1), P = 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 = x(() => !!g.dataset && g.dataset.length), Ca = fa, wa = Va();
36
+ sa(() => {
37
+ wa["chart-background"] && console.warn("VueUiXyCanvas does not support the #chart-background slot.");
37
38
  });
38
39
  const a = x({
39
40
  get: () => Ue(),
40
41
  set: (e) => e
41
- }), { userOptionsVisible: ze, setUserOptionsVisibility: He, keepUserOptionState: Ye } = gl({ config: a.value }), { svgRef: T } = pl({ config: a.value.style.chart.title });
42
+ }), { userOptionsVisible: Se, setUserOptionsVisibility: He, keepUserOptionState: Ye } = pl({ config: a.value }), { svgRef: T } = ml({ config: a.value.style.chart.title });
42
43
  function Ue() {
43
- const e = da({
44
+ const e = ha({
44
45
  userConfig: g.config,
45
- defaultConfig: La
46
+ defaultConfig: ka
46
47
  });
47
- let t = {};
48
- return e.theme ? t = {
49
- ...da({
50
- userConfig: el.vue_ui_xy_canvas[e.theme] || g.config,
48
+ let l = {};
49
+ return e.theme ? l = {
50
+ ...ha({
51
+ userConfig: al.vue_ui_xy_canvas[e.theme] || g.config,
51
52
  defaultConfig: e
52
53
  }),
53
- customPalette: Qa[e.theme] || B
54
- } : t = e, g.config && me(g.config, "style.chart.scale.min") ? t.style.chart.scale.min = g.config.style.chart.scale.min : t.style.chart.scale.min = null, g.config && me(g.config, "style.chart.scale.max") ? t.style.chart.scale.max = g.config.style.chart.scale.max : t.style.chart.scale.max = null, g.config && me(g.config, "style.chart.zoom.startIndex") ? t.style.chart.zoom.startIndex = g.config.style.chart.zoom.startIndex : t.style.chart.zoom.startIndex = null, g.config && me(g.config, "style.chart.zoom.endIndex") ? t.style.chart.zoom.endIndex = g.config.style.chart.zoom.endIndex : t.style.chart.zoom.endIndex = null, t;
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
56
  }
56
57
  A(() => g.config, (e) => {
57
- a.value = Ue(), ze.value = !a.value.userOptions.showOnChartHover, Se(), Le.value += 1, ke.value += 1, Ce.value += 1, r.value.showTable = a.value.table.show, r.value.showDataLabels = a.value.style.chart.dataLabels.show, r.value.stacked = a.value.style.chart.stacked, r.value.showTooltip = a.value.style.chart.tooltip.show;
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
59
  }, { deep: !0 }), A(() => g.dataset, () => {
59
- Se(), Le.value += 1, ke.value += 1, Ce.value += 1;
60
+ ze(), Le.value += 1, ke.value += 1, Ce.value += 1;
60
61
  }, { deep: !0 });
61
- const We = d(a.value.style.chart.aspectRatio), { isPrinting: Xe, isImaging: _e, generatePdf: Be, generateImage: Ve } = fl({
62
+ const We = d(a.value.style.chart.aspectRatio), { isPrinting: Xe, isImaging: _e, generatePdf: Be, generateImage: Ve } = gl({
62
63
  elementId: `xy_canvas_${be.value}`,
63
64
  fileName: a.value.style.chart.title.text || "vue-ui-xy-canvas",
64
65
  options: a.value.userOptions.print
65
- }), r = d({
66
+ }), u = d({
66
67
  showTable: a.value.table.show,
67
68
  showDataLabels: a.value.style.chart.dataLabels.show,
68
69
  stacked: a.value.style.chart.stacked,
69
70
  showTooltip: a.value.style.chart.tooltip.show
70
71
  });
71
- function wa(e) {
72
- he.value = e, Fe.value += 1;
72
+ function Ge(e) {
73
+ he.value = e, Ee.value += 1;
73
74
  }
74
- const Ge = x(() => al(a.value.customPalette)), I = x(() => Z.value ? Math.max(...Z.value.filter((e, t) => !$.value.includes(e.absoluteIndex)).map((e) => e.series.length)) : 0), l = x(() => {
75
+ const Ze = x(() => ll(a.value.customPalette)), I = x(() => j.value ? Math.max(...j.value.filter((e, l) => !$.value.includes(e.absoluteIndex)).map((e) => e.series.length)) : 0), t = x(() => {
75
76
  const e = y.value - y.value * (a.value.style.chart.paddingProportions.left + a.value.style.chart.paddingProportions.right);
76
77
  return {
77
78
  canvasWidth: y.value,
@@ -82,49 +83,49 @@ const Cl = ["id"], wl = ["onClick"], zl = {
82
83
  bottom: P.value - P.value * a.value.style.chart.paddingProportions.bottom,
83
84
  width: e,
84
85
  height: P.value - P.value * (a.value.style.chart.paddingProportions.top + a.value.style.chart.paddingProportions.bottom),
85
- slot: e / (u.value.end - u.value.start)
86
+ slot: e / (r.value.end - r.value.start)
86
87
  };
87
88
  });
88
- function Ze(e, t) {
89
- return e / t;
89
+ function je(e, l) {
90
+ return e / l;
90
91
  }
91
- function za({ hasAutoScale: e, series: t, min: o, max: n, scale: v, yOffset: C, individualHeight: i, stackIndex: f = null }) {
92
- return t.map((Y, S) => {
93
- const E = v.min < 0 ? Math.abs(v.min) : 0, U = Ze(Y + E, E + v.max);
94
- let re, se;
95
- e && (re = v.min, se = Ze(Y - re, v.max - re));
92
+ function Sa({ hasAutoScale: e, series: l, min: o, max: n, scale: v, yOffset: C, individualHeight: i, stackIndex: f = null }) {
93
+ return l.map((U, z) => {
94
+ const F = v.min < 0 ? Math.abs(v.min) : 0, W = je(U + F, F + v.max);
95
+ let ue, se;
96
+ e && (ue = v.min, se = je(U - ue, v.max - ue));
96
97
  let O = 0;
97
- return f === null ? O = l.value.bottom - l.value.height * (e ? se : U) : O = l.value.bottom - C - i * (e ? se : U), {
98
- x: l.value.left + l.value.slot * S + l.value.slot / 2,
98
+ return f === null ? O = t.value.bottom - t.value.height * (e ? se : W) : O = t.value.bottom - C - i * (e ? se : W), {
99
+ x: t.value.left + t.value.slot * z + t.value.slot / 2,
99
100
  y: O,
100
- value: Y
101
+ value: U
101
102
  };
102
103
  });
103
104
  }
104
105
  const m = x(() => {
105
- const e = a.value.style.chart.scale.min !== null ? a.value.style.chart.scale.min : Math.min(...Z.value.filter((i, f) => !$.value.includes(i.absoluteIndex)).flatMap((i) => i.series.slice(u.value.start, u.value.end))), t = a.value.style.chart.scale.max !== null ? a.value.style.chart.scale.max : Math.max(...Z.value.filter((i, f) => !$.value.includes(i.absoluteIndex)).flatMap((i) => i.series.slice(u.value.start, u.value.end))), o = Me(e < 0 ? e : 0, t === e ? e + 1 < 0 ? 0 : e + 1 : t < 0 ? 0 : t, a.value.style.chart.scale.ticks), n = o.min < 0 ? Math.abs(o.min) : 0, v = l.value.bottom - l.value.height * (n / (o.max + n)), C = o.ticks.map((i) => ({
106
- y: l.value.bottom - l.value.height * ((i + n) / (o.max + n)),
107
- x: l.value.left - 8,
106
+ const e = a.value.style.chart.scale.min !== null ? a.value.style.chart.scale.min : Math.min(...j.value.filter((i, f) => !$.value.includes(i.absoluteIndex)).flatMap((i) => i.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((i, f) => !$.value.includes(i.absoluteIndex)).flatMap((i) => i.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, v = t.value.bottom - t.value.height * (n / (o.max + n)), C = o.ticks.map((i) => ({
107
+ y: t.value.bottom - t.value.height * ((i + n) / (o.max + n)),
108
+ x: t.value.left - 8,
108
109
  value: i
109
110
  }));
110
111
  return {
111
112
  absoluteMin: n,
112
- max: t,
113
+ max: l,
113
114
  min: e,
114
115
  scale: o,
115
116
  yLabels: C,
116
117
  zero: v
117
118
  };
118
- }), Sa = x(() => h.value.map((e) => `
119
+ }), za = x(() => h.value.map((e) => `
119
120
  <div style="display:flex;flex-direction:row;gap:6px;align-items:center;">
120
121
  <svg viewBox="0 0 10 10" height="12" width="12">
121
122
  <circle cx="5" cy="5" r="5" fill="${e.color}"/>
122
123
  </svg>
123
124
  <span>${e.name ? e.name + ": " : ""}</span>
124
- <span>${ee(
125
+ <span>${ae(
125
126
  a.value.style.chart.dataLabels.formatter,
126
127
  e.series[c.value],
127
- ae({
128
+ le({
128
129
  p: e.prefix || "",
129
130
  v: e.series[c.value],
130
131
  s: e.suffix || "",
@@ -133,22 +134,22 @@ const Cl = ["id"], wl = ["onClick"], zl = {
133
134
  { datapoint: e, seriesIndex: c.value }
134
135
  )}</span>
135
136
  </div>
136
- `)), Z = x(() => g.dataset.map((e, t) => ({
137
+ `)), j = x(() => g.dataset.map((e, l) => ({
137
138
  ...e,
138
- series: ll({
139
- data: tl(e.series),
139
+ series: tl({
140
+ data: ol(e.series),
140
141
  threshold: a.value.downsample.threshold
141
142
  }),
142
- absoluteIndex: t,
143
- color: na(e.color || Ge.value[t] || B[t] || B[t % B.length])
143
+ absoluteIndex: l,
144
+ color: ia(e.color || Ze.value[l] || V[l] || V[l % V.length])
144
145
  })));
145
146
  A(I, (e) => {
146
- e && je();
147
+ e && qe();
147
148
  });
148
- const h = x(() => ol(Z.value.filter((e, t) => !$.value.includes(e.absoluteIndex))).map((e, t) => ({
149
+ const h = x(() => rl(j.value.filter((e, l) => !$.value.includes(e.absoluteIndex))).map((e, l) => ({
149
150
  ...e,
150
- series: e.series.slice(u.value.start, u.value.end)
151
- })).map((e, t) => {
151
+ series: e.series.slice(r.value.start, r.value.end)
152
+ })).map((e, l) => {
152
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;
153
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));
154
155
  const v = {
@@ -157,22 +158,22 @@ const Cl = ["id"], wl = ["onClick"], zl = {
157
158
  }, C = e.scaleSteps || a.value.style.chart.scale.ticks;
158
159
  let i;
159
160
  e.autoScaling ? i = Me(v.valueMin, v.valueMax, C) : i = Me(v.valueMin < 0 ? v.valueMin : 0, v.valueMax <= 0 ? 0 : v.valueMax, C);
160
- const f = r.value.stacked ? l.value.height * (1 - e.cumulatedStackRatio) : 0, Y = r.value.stacked ? l.value.height / a.value.style.chart.stackGap : 0, S = r.value.stacked ? l.value.height * e.stackRatio - Y : l.value.height, E = i.min < 0 ? Math.abs(i.min) : 0;
161
- let U;
162
- e.autoScaling && r.value.stacked && n <= 0 ? U = l.value.bottom - f - S : U = l.value.bottom - f - S * (E / (i.max + E));
163
- const re = i.ticks.map((O, _a) => ({
164
- y: l.value.bottom - f - S * (_a / (i.ticks.length - 1)),
165
- x: l.value.left - 8,
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, F = i.min < 0 ? Math.abs(i.min) : 0;
162
+ let W;
163
+ e.autoScaling && u.value.stacked && n <= 0 ? W = t.value.bottom - f - z : W = t.value.bottom - f - z * (F / (i.max + F));
164
+ const ue = i.ticks.map((O, Ba) => ({
165
+ y: t.value.bottom - f - z * (Ba / (i.ticks.length - 1)),
166
+ x: t.value.left - 8,
166
167
  value: O
167
- })), se = za({
168
- hasAutoScale: r.value.stacked && e.autoScaling,
168
+ })), se = Sa({
169
+ hasAutoScale: u.value.stacked && e.autoScaling,
169
170
  series: e.series,
170
- min: r.value.stacked ? o : m.value.min,
171
- max: r.value.stacked ? n : m.value.max,
172
- scale: r.value.stacked ? i : m.value.scale,
171
+ min: u.value.stacked ? o : m.value.min,
172
+ max: u.value.stacked ? n : m.value.max,
173
+ scale: u.value.stacked ? i : m.value.scale,
173
174
  yOffset: f,
174
- individualHeight: S,
175
- stackIndex: r.value.stacked ? t : null
175
+ individualHeight: z,
176
+ stackIndex: u.value.stacked ? l : null
176
177
  });
177
178
  return {
178
179
  ...e,
@@ -180,69 +181,69 @@ const Cl = ["id"], wl = ["onClick"], zl = {
180
181
  min: o,
181
182
  max: n,
182
183
  localScale: i,
183
- localZero: U,
184
- localMin: E,
185
- localYLabels: re,
184
+ localZero: W,
185
+ localMin: F,
186
+ localYLabels: ue,
186
187
  yOffset: f,
187
- individualHeight: S
188
+ individualHeight: z
188
189
  };
189
- })), u = d({
190
+ })), r = d({
190
191
  start: 0,
191
192
  end: I.value
192
193
  });
193
- function je() {
194
- qe();
194
+ function qe() {
195
+ Je();
195
196
  }
196
- const j = d(null);
197
- async function qe() {
198
- (a.value.style.chart.zoom.startIndex !== null || a.value.style.chart.zoom.endIndex !== null) && j.value ? (a.value.style.chart.zoom.startIndex !== null && (await pe(), await pe(), j.value && j.value.setStartValue(a.value.style.chart.zoom.startIndex)), a.value.style.chart.zoom.endIndex !== null && (await pe(), await pe(), j.value && j.value.setEndValue($a(a.value.style.chart.zoom.endIndex + 1)))) : (u.value = {
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 = {
199
200
  start: 0,
200
201
  end: I.value
201
202
  }, Pe.value += 1);
202
203
  }
203
204
  function $a(e) {
204
- const t = I.value;
205
- return e > t ? t : e < 0 || a.value.style.chart.zoom.startIndex !== null && e < a.value.style.chart.zoom.startIndex ? a.value.style.chart.zoom.startIndex !== null ? a.value.style.chart.zoom.startIndex + 1 : 1 : e;
205
+ const l = I.value;
206
+ return e > l ? l : e < 0 || a.value.style.chart.zoom.startIndex !== null && e < a.value.style.chart.zoom.startIndex ? a.value.style.chart.zoom.startIndex !== null ? a.value.style.chart.zoom.startIndex + 1 : 1 : e;
206
207
  }
207
208
  const Ia = x(() => h.value.filter((e) => ["line", "plot", void 0].includes(e.type))), w = x(() => h.value.filter((e) => e.type === "bar"));
208
209
  function Ma() {
209
210
  if (!T.value)
210
211
  return;
211
- const e = te.value.offsetWidth, t = te.value.offsetHeight;
212
- T.value.width = e * V.value * 2, T.value.height = t * V.value * 2, y.value = e * V.value * 2, P.value = t * V.value * 2, s.value.scale(V.value, V.value), oe();
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, P.value = l * G.value * 2, s.value.scale(G.value, G.value), oe();
213
214
  }
214
215
  function Ta() {
215
- if (s.value.clearRect(0, 0, 1e4, 1e4), s.value.fillStyle = a.value.style.chart.backgroundColor, s.value.fillRect(0, 0, l.value.canvasWidth, l.value.canvasHeight), r.value.stacked)
216
- a.value.style.chart.grid.y.verticalLines.show && u.value.end - u.value.start < a.value.style.chart.grid.y.verticalLines.hideUnderXLength ? h.value.forEach((e) => {
217
- for (let t = 0; t < u.value.end - u.value.start + 1; t += 1)
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)
217
+ 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
+ for (let l = 0; l < r.value.end - r.value.start + 1; l += 1)
218
219
  k(
219
220
  s.value,
220
221
  [
221
222
  {
222
- x: l.value.left + l.value.slot * t,
223
- y: l.value.bottom - e.yOffset - e.individualHeight
223
+ x: t.value.left + t.value.slot * l,
224
+ y: t.value.bottom - e.yOffset - e.individualHeight
224
225
  },
225
226
  {
226
- x: l.value.left + l.value.slot * t,
227
- y: l.value.bottom - e.yOffset
227
+ x: t.value.left + t.value.slot * l,
228
+ y: t.value.bottom - e.yOffset
228
229
  }
229
230
  ],
230
231
  {
231
232
  color: a.value.style.chart.grid.y.verticalLines.color
232
233
  }
233
234
  );
234
- }) : a.value.style.chart.grid.y.verticalLines.show && u.value.end - u.value.start >= a.value.style.chart.grid.y.verticalLines.hideUnderXLength && h.value.forEach((e) => {
235
- for (let t = u.value.start; t < u.value.end; t += 1)
236
- t % Math.floor((u.value.end - u.value.start) / a.value.style.chart.grid.y.timeLabels.modulo) === 0 && k(
235
+ }) : 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
+ for (let l = r.value.start; l < r.value.end; l += 1)
237
+ l % Math.floor((r.value.end - r.value.start) / a.value.style.chart.grid.y.timeLabels.modulo) === 0 && k(
237
238
  s.value,
238
239
  [
239
240
  {
240
- x: l.value.left + l.value.slot * (t - u.value.start) + l.value.slot / 2,
241
- y: l.value.bottom - e.yOffset - e.individualHeight
241
+ x: t.value.left + t.value.slot * (l - r.value.start) + t.value.slot / 2,
242
+ y: t.value.bottom - e.yOffset - e.individualHeight
242
243
  },
243
244
  {
244
- x: l.value.left + l.value.slot * (t - u.value.start) + l.value.slot / 2,
245
- y: l.value.bottom - e.yOffset
245
+ x: t.value.left + t.value.slot * (l - r.value.start) + t.value.slot / 2,
246
+ y: t.value.bottom - e.yOffset
246
247
  }
247
248
  ],
248
249
  {
@@ -250,14 +251,14 @@ const Cl = ["id"], wl = ["onClick"], zl = {
250
251
  }
251
252
  );
252
253
  }), a.value.style.chart.grid.x.horizontalLines.show && (a.value.style.chart.grid.x.horizontalLines.alternate ? h.value.forEach((e) => {
253
- e.localYLabels.forEach((t, o) => {
254
+ e.localYLabels.forEach((l, o) => {
254
255
  o < e.localYLabels.length - 1 && Te(
255
256
  s.value,
256
257
  [
257
- { x: l.value.left, y: t.y },
258
- { x: l.value.right, y: t.y },
259
- { x: l.value.right, y: e.localYLabels[o + 1].y },
260
- { x: l.value.left, y: e.localYLabels[o + 1].y }
258
+ { x: t.value.left, y: l.y },
259
+ { x: t.value.right, y: l.y },
260
+ { x: t.value.right, y: e.localYLabels[o + 1].y },
261
+ { x: t.value.left, y: e.localYLabels[o + 1].y }
261
262
  ],
262
263
  {
263
264
  fillColor: o % 2 === 0 ? "transparent" : ve(a.value.style.chart.grid.x.horizontalLines.color, a.value.style.chart.grid.x.horizontalLines.opacity),
@@ -266,12 +267,12 @@ const Cl = ["id"], wl = ["onClick"], zl = {
266
267
  );
267
268
  });
268
269
  }) : h.value.forEach((e) => {
269
- e.localYLabels.slice(u.value.start, u.value.end).forEach((t) => {
270
+ e.localYLabels.slice(r.value.start, r.value.end).forEach((l) => {
270
271
  k(
271
272
  s.value,
272
273
  [
273
- { x: l.value.left, y: t.y },
274
- { x: l.value.right, y: t.y }
274
+ { x: t.value.left, y: l.y },
275
+ { x: t.value.right, y: l.y }
275
276
  ],
276
277
  {
277
278
  color: a.value.style.chart.grid.x.horizontalLines.color
@@ -282,8 +283,8 @@ const Cl = ["id"], wl = ["onClick"], zl = {
282
283
  k(
283
284
  s.value,
284
285
  [
285
- { x: l.value.left, y: e.localZero },
286
- { x: l.value.right, y: e.localZero }
286
+ { x: t.value.left, y: e.localZero },
287
+ { x: t.value.right, y: e.localZero }
287
288
  ],
288
289
  {
289
290
  color: a.value.style.chart.grid.zeroLine.color,
@@ -294,8 +295,8 @@ const Cl = ["id"], wl = ["onClick"], zl = {
294
295
  k(
295
296
  s.value,
296
297
  [
297
- { x: l.value.left, y: l.value.bottom - e.yOffset },
298
- { x: l.value.left, y: l.value.bottom - e.yOffset - e.individualHeight }
298
+ { x: t.value.left, y: t.value.bottom - e.yOffset },
299
+ { x: t.value.left, y: t.value.bottom - e.yOffset - e.individualHeight }
299
300
  ],
300
301
  {
301
302
  color: e.color
@@ -303,8 +304,8 @@ const Cl = ["id"], wl = ["onClick"], zl = {
303
304
  ), k(
304
305
  s.value,
305
306
  [
306
- { x: l.value.right, y: l.value.bottom - e.yOffset },
307
- { x: l.value.right, y: l.value.bottom - e.yOffset - e.individualHeight }
307
+ { x: t.value.right, y: t.value.bottom - e.yOffset },
308
+ { x: t.value.right, y: t.value.bottom - e.yOffset - e.individualHeight }
308
309
  ],
309
310
  {
310
311
  color: e.color
@@ -315,7 +316,7 @@ const Cl = ["id"], wl = ["onClick"], zl = {
315
316
  s.value,
316
317
  e.name,
317
318
  y.value / 35,
318
- l.value.bottom - e.yOffset - e.individualHeight / 2,
319
+ t.value.bottom - e.yOffset - e.individualHeight / 2,
319
320
  {
320
321
  align: "center",
321
322
  rotation: -90,
@@ -325,41 +326,41 @@ const Cl = ["id"], wl = ["onClick"], zl = {
325
326
  );
326
327
  });
327
328
  else {
328
- if (a.value.style.chart.grid.y.verticalLines.show && u.value.end - u.value.start < a.value.style.chart.grid.y.verticalLines.hideUnderXLength)
329
- for (let e = 0; e < u.value.end - u.value.start + 1; e += 1)
329
+ if (a.value.style.chart.grid.y.verticalLines.show && r.value.end - r.value.start < a.value.style.chart.grid.y.verticalLines.hideUnderXLength)
330
+ for (let e = 0; e < r.value.end - r.value.start + 1; e += 1)
330
331
  k(
331
332
  s.value,
332
333
  [
333
- { x: l.value.left + l.value.slot * e, y: l.value.top },
334
- { x: l.value.left + l.value.slot * e, y: l.value.bottom }
334
+ { x: t.value.left + t.value.slot * e, y: t.value.top },
335
+ { x: t.value.left + t.value.slot * e, y: t.value.bottom }
335
336
  ],
336
337
  {
337
338
  color: a.value.style.chart.grid.y.verticalLines.color
338
339
  }
339
340
  );
340
- else if (a.value.style.chart.grid.y.verticalLines.show && u.value.end - u.value.start >= a.value.style.chart.grid.y.verticalLines.hideUnderXLength)
341
- for (let e = u.value.start; e < u.value.end; e += 1)
342
- e % Math.floor((u.value.end - u.value.start) / a.value.style.chart.grid.y.timeLabels.modulo) === 0 && k(
341
+ 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
+ for (let e = r.value.start; e < r.value.end; e += 1)
343
+ e % Math.floor((r.value.end - r.value.start) / a.value.style.chart.grid.y.timeLabels.modulo) === 0 && k(
343
344
  s.value,
344
345
  [
345
- { x: l.value.left + l.value.slot * (e - u.value.start) + l.value.slot / 2, y: l.value.top },
346
- { x: l.value.left + l.value.slot * (e - u.value.start) + l.value.slot / 2, y: l.value.bottom }
346
+ { x: t.value.left + t.value.slot * (e - r.value.start) + t.value.slot / 2, y: t.value.top },
347
+ { x: t.value.left + t.value.slot * (e - r.value.start) + t.value.slot / 2, y: t.value.bottom }
347
348
  ],
348
349
  {
349
350
  color: a.value.style.chart.grid.y.verticalLines.color
350
351
  }
351
352
  );
352
- a.value.style.chart.grid.x.horizontalLines.show && (a.value.style.chart.grid.x.horizontalLines.alternate ? m.value.yLabels.forEach((e, t) => {
353
- t < m.value.yLabels.length - 1 && Te(
353
+ 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(
354
355
  s.value,
355
356
  [
356
- { x: l.value.left, y: e.y },
357
- { x: l.value.right, y: e.y },
358
- { x: l.value.right, y: m.value.yLabels[t + 1].y },
359
- { x: l.value.left, y: m.value.yLabels[t + 1].y }
357
+ { x: t.value.left, y: e.y },
358
+ { x: t.value.right, y: e.y },
359
+ { x: t.value.right, y: m.value.yLabels[l + 1].y },
360
+ { x: t.value.left, y: m.value.yLabels[l + 1].y }
360
361
  ],
361
362
  {
362
- fillColor: t % 2 === 0 ? "transparent" : ve(a.value.style.chart.grid.x.horizontalLines.color, a.value.style.chart.grid.x.horizontalLines.opacity),
363
+ fillColor: l % 2 === 0 ? "transparent" : ve(a.value.style.chart.grid.x.horizontalLines.color, a.value.style.chart.grid.x.horizontalLines.opacity),
363
364
  strokeColor: "transparent"
364
365
  }
365
366
  );
@@ -367,8 +368,8 @@ const Cl = ["id"], wl = ["onClick"], zl = {
367
368
  k(
368
369
  s.value,
369
370
  [
370
- { x: l.value.left, y: e.y },
371
- { x: l.value.right, y: e.y }
371
+ { x: t.value.left, y: e.y },
372
+ { x: t.value.right, y: e.y }
372
373
  ],
373
374
  {
374
375
  color: a.value.style.chart.grid.x.horizontalLines.color
@@ -377,8 +378,8 @@ const Cl = ["id"], wl = ["onClick"], zl = {
377
378
  })), a.value.style.chart.grid.y.showAxis && k(
378
379
  s.value,
379
380
  [
380
- { x: l.value.left, y: l.value.top },
381
- { x: l.value.left, y: l.value.bottom }
381
+ { x: t.value.left, y: t.value.top },
382
+ { x: t.value.left, y: t.value.bottom }
382
383
  ],
383
384
  {
384
385
  color: a.value.style.chart.grid.y.axisColor,
@@ -387,8 +388,8 @@ const Cl = ["id"], wl = ["onClick"], zl = {
387
388
  ), a.value.style.chart.grid.x.showAxis && k(
388
389
  s.value,
389
390
  [
390
- { x: l.value.left, y: l.value.bottom },
391
- { x: l.value.right, y: l.value.bottom }
391
+ { x: t.value.left, y: t.value.bottom },
392
+ { x: t.value.right, y: t.value.bottom }
392
393
  ],
393
394
  {
394
395
  color: a.value.style.chart.grid.x.axisColor,
@@ -397,8 +398,8 @@ const Cl = ["id"], wl = ["onClick"], zl = {
397
398
  ), a.value.style.chart.grid.zeroLine.show && k(
398
399
  s.value,
399
400
  [
400
- { x: l.value.left, y: m.value.zero },
401
- { x: l.value.right, y: m.value.zero }
401
+ { x: t.value.left, y: m.value.zero },
402
+ { x: t.value.right, y: m.value.zero }
402
403
  ],
403
404
  {
404
405
  color: a.value.style.chart.grid.zeroLine.color,
@@ -410,7 +411,7 @@ const Cl = ["id"], wl = ["onClick"], zl = {
410
411
  s.value,
411
412
  a.value.style.chart.grid.y.axisName,
412
413
  y.value - y.value / 40 * a.value.style.chart.grid.y.axisLabels.fontSizeRatio * 1.2,
413
- l.value.bottom - l.value.height / 2,
414
+ t.value.bottom - t.value.height / 2,
414
415
  {
415
416
  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}`,
416
417
  color: a.value.style.chart.color,
@@ -430,11 +431,11 @@ const Cl = ["id"], wl = ["onClick"], zl = {
430
431
  );
431
432
  }
432
433
  function Oa(e) {
433
- for (let t = 0; t < e.coordinatesLine.length; t += 1) {
434
- const o = (c.value === t ? y.value / 150 : a.value.style.chart.line.plots.show ? y.value / 200 : 0) * a.value.style.chart.line.plots.radiusRatio;
435
- va(
434
+ for (let l = 0; l < e.coordinatesLine.length; l += 1) {
435
+ 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
+ ca(
436
437
  s.value,
437
- { x: e.coordinatesLine[t].x, y: e.coordinatesLine[t].y },
438
+ { x: e.coordinatesLine[l].x, y: e.coordinatesLine[l].y },
438
439
  o,
439
440
  {
440
441
  color: a.value.style.chart.backgroundColor,
@@ -445,21 +446,21 @@ const Cl = ["id"], wl = ["onClick"], zl = {
445
446
  }
446
447
  function Ra() {
447
448
  h.value.forEach((e) => {
448
- e.showYMarker && ue(e) && R(
449
+ e.showYMarker && re(e) && R(
449
450
  s.value,
450
- ee(
451
+ ae(
451
452
  a.value.style.chart.dataLabels.formatter,
452
- ue(e).value,
453
- ae({
453
+ re(e).value,
454
+ le({
454
455
  p: e.prefix || a.value.style.chart.grid.y.axisLabels.prefix || "",
455
- v: ue(e).value,
456
+ v: re(e).value,
456
457
  s: e.suffix || a.value.style.chart.grid.y.axisLabels.suffix || "",
457
458
  r: e.rounding || a.value.style.chart.grid.y.axisLabels.rounding || 0
458
459
  }),
459
- { datapoint: ue(e), seriesIndex: null }
460
+ { datapoint: re(e), seriesIndex: null }
460
461
  ),
461
- l.value.left - 8 + a.value.style.chart.grid.y.axisLabels.offsetX,
462
- ue(e).y,
462
+ t.value.left - 8 + a.value.style.chart.grid.y.axisLabels.offsetX,
463
+ re(e).y,
463
464
  {
464
465
  align: "right",
465
466
  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}`,
@@ -469,23 +470,23 @@ const Cl = ["id"], wl = ["onClick"], zl = {
469
470
  });
470
471
  }
471
472
  function Pa() {
472
- a.value.style.chart.grid.y.axisLabels.show && (r.value.stacked ? h.value.forEach((e) => {
473
- e.localYLabels.forEach((t, o) => {
473
+ a.value.style.chart.grid.y.axisLabels.show && (u.value.stacked ? h.value.forEach((e) => {
474
+ e.localYLabels.forEach((l, o) => {
474
475
  R(
475
476
  s.value,
476
- ee(
477
+ ae(
477
478
  a.value.style.chart.dataLabels.formatter,
478
- t.value,
479
- ae({
479
+ l.value,
480
+ le({
480
481
  p: e.prefix || a.value.style.chart.grid.y.axisLabels.prefix || "",
481
- v: t.value,
482
+ v: l.value,
482
483
  s: e.suffix || a.value.style.chart.grid.y.axisLabels.suffix || "",
483
484
  r: e.rounding || a.value.style.chart.grid.y.axisLabels.rounding || 0
484
485
  }),
485
- { datapoint: t, seriesIndex: o }
486
+ { datapoint: l, seriesIndex: o }
486
487
  ),
487
- t.x + a.value.style.chart.grid.y.axisLabels.offsetX,
488
- t.y,
488
+ l.x + a.value.style.chart.grid.y.axisLabels.offsetX,
489
+ l.y,
489
490
  {
490
491
  align: "right",
491
492
  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}`,
@@ -494,19 +495,19 @@ const Cl = ["id"], wl = ["onClick"], zl = {
494
495
  }
495
496
  );
496
497
  });
497
- }) : m.value.yLabels.forEach((e, t) => {
498
+ }) : m.value.yLabels.forEach((e, l) => {
498
499
  R(
499
500
  s.value,
500
- ee(
501
+ ae(
501
502
  a.value.style.chart.dataLabels.formatter,
502
503
  e.value,
503
- ae({
504
+ le({
504
505
  p: a.value.style.chart.grid.y.axisLabels.prefix || "",
505
506
  v: e.value,
506
507
  s: a.value.style.chart.grid.y.axisLabels.suffix || "",
507
508
  r: a.value.style.chart.grid.y.axisLabels.rounding || 0
508
509
  }),
509
- { datapoint: e, seriesIndex: t }
510
+ { datapoint: e, seriesIndex: l }
510
511
  ),
511
512
  e.x + a.value.style.chart.grid.y.axisLabels.offsetX,
512
513
  e.y,
@@ -519,23 +520,23 @@ const Cl = ["id"], wl = ["onClick"], zl = {
519
520
  );
520
521
  }));
521
522
  }
522
- function Fa(e) {
523
- for (let t = 0; t < e.coordinatesLine.length; t += 1)
523
+ function Ea(e) {
524
+ for (let l = 0; l < e.coordinatesLine.length; l += 1)
524
525
  R(
525
526
  s.value,
526
- ee(
527
+ ae(
527
528
  a.value.style.chart.dataLabels.formatter,
528
- e.coordinatesLine[t].value,
529
- ae({
529
+ e.coordinatesLine[l].value,
530
+ le({
530
531
  p: e.prefix || "",
531
- v: e.coordinatesLine[t].value,
532
+ v: e.coordinatesLine[l].value,
532
533
  s: e.suffix || "",
533
534
  r: e.rounding || 0
534
535
  }),
535
- { datapoint: e.coordinatesLine[t], seriesIndex: t }
536
+ { datapoint: e.coordinatesLine[l], seriesIndex: l }
536
537
  ),
537
- e.coordinatesLine[t].x,
538
- e.coordinatesLine[t].y + a.value.style.chart.dataLabels.offsetY,
538
+ e.coordinatesLine[l].x,
539
+ e.coordinatesLine[l].y + a.value.style.chart.dataLabels.offsetY,
539
540
  {
540
541
  align: "center",
541
542
  font: `${a.value.style.chart.dataLabels.bold ? "bold " : ""}${Math.round(y.value / 40 * a.value.style.chart.dataLabels.fontSizeRatio)}px ${a.value.style.fontFamily}`,
@@ -543,34 +544,34 @@ const Cl = ["id"], wl = ["onClick"], zl = {
543
544
  }
544
545
  );
545
546
  }
546
- const H = x(() => Ll({
547
+ const Y = x(() => kl({
547
548
  values: a.value.style.chart.grid.y.timeLabels.values,
548
549
  maxDatapoints: I.value,
549
550
  formatter: a.value.style.chart.grid.y.timeLabels.datetimeFormatter,
550
551
  start: 0,
551
552
  end: a.value.style.chart.grid.y.timeLabels.values.length
552
553
  }));
553
- function Ea() {
554
- for (let e = u.value.start; e < u.value.end; e += 1)
555
- (u.value.end - u.value.start < a.value.style.chart.grid.y.timeLabels.modulo || u.value.end - u.value.start >= a.value.style.chart.grid.y.timeLabels.modulo && (e % Math.floor((u.value.end - u.value.start) / a.value.style.chart.grid.y.timeLabels.modulo) === 0 || e === c.value + u.value.start && a.value.style.chart.grid.y.timeLabels.showMarker)) && R(
554
+ function Fa() {
555
+ for (let e = r.value.start; e < r.value.end; e += 1)
556
+ (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(
556
557
  s.value,
557
- H.value[e] ? H.value[e].text : e + 1,
558
- l.value.left + l.value.slot * (e - u.value.start) + l.value.slot / 2,
559
- l.value.bottom + y.value / a.value.style.chart.grid.y.timeLabels.offsetY,
558
+ Y.value[e] ? Y.value[e].text : e + 1,
559
+ t.value.left + t.value.slot * (e - r.value.start) + t.value.slot / 2,
560
+ t.value.bottom + y.value / a.value.style.chart.grid.y.timeLabels.offsetY,
560
561
  {
561
562
  align: a.value.style.chart.grid.y.timeLabels.rotation === 0 ? "center" : a.value.style.chart.grid.y.timeLabels.rotation > 0 ? "left" : "right",
562
563
  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}`,
563
- color: a.value.style.chart.grid.y.timeLabels.showMarker ? ve(a.value.style.chart.grid.y.timeLabels.color, c.value !== null ? c.value + u.value.start === e ? 100 : 20 : 100) : a.value.style.chart.grid.y.timeLabels.color,
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,
564
565
  rotation: a.value.style.chart.grid.y.timeLabels.rotation
565
566
  }
566
567
  );
567
568
  }
568
- function Je() {
569
+ function Ke() {
569
570
  k(
570
571
  s.value,
571
572
  [
572
- { x: l.value.left + l.value.slot * c.value + l.value.slot / 2, y: l.value.top },
573
- { x: l.value.left + l.value.slot * c.value + l.value.slot / 2, y: l.value.bottom }
573
+ { x: t.value.left + t.value.slot * c.value + t.value.slot / 2, y: t.value.top },
574
+ { x: t.value.left + t.value.slot * c.value + t.value.slot / 2, y: t.value.bottom }
574
575
  ],
575
576
  {
576
577
  color: a.value.style.chart.selector.color,
@@ -583,8 +584,8 @@ const Cl = ["id"], wl = ["onClick"], zl = {
583
584
  M.value && k(
584
585
  s.value,
585
586
  [
586
- { x: l.value.left, y: M.value },
587
- { x: l.value.right, y: M.value }
587
+ { x: t.value.left, y: M.value },
588
+ { x: t.value.right, y: M.value }
588
589
  ],
589
590
  {
590
591
  color: a.value.style.chart.selector.color,
@@ -594,25 +595,25 @@ const Cl = ["id"], wl = ["onClick"], zl = {
594
595
  );
595
596
  }
596
597
  function Da() {
597
- w.value.forEach((e, t) => {
598
+ w.value.forEach((e, l) => {
598
599
  for (let o = 0; o < e.coordinatesLine.length; o += 1)
599
600
  Te(
600
601
  s.value,
601
602
  [
602
603
  {
603
- x: l.value.left + l.value.slot * o + l.value.slot / 10 + (r.value.stacked ? 0 : l.value.slot / w.value.length * t - (t === 0 ? 0 : l.value.slot / (5 * w.value.length) * t)),
604
- y: r.value.stacked ? e.localZero : m.value.zero
604
+ 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)),
605
+ y: u.value.stacked ? e.localZero : m.value.zero
605
606
  },
606
607
  {
607
- x: l.value.left + l.value.slot * o + l.value.slot / 10 + (r.value.stacked ? 0 : l.value.slot / w.value.length * t - (t === 0 ? 0 : l.value.slot / (5 * w.value.length) * t)) + l.value.slot * 0.8 / (r.value.stacked ? 1 : w.value.length),
608
- y: r.value.stacked ? e.localZero : m.value.zero
608
+ 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)) + t.value.slot * 0.8 / (u.value.stacked ? 1 : w.value.length),
609
+ y: u.value.stacked ? e.localZero : m.value.zero
609
610
  },
610
611
  {
611
- x: l.value.left + l.value.slot * o + l.value.slot / 10 + (r.value.stacked ? 0 : l.value.slot / w.value.length * t - (t === 0 ? 0 : l.value.slot / (5 * w.value.length) * t)) + l.value.slot * 0.8 / (r.value.stacked ? 1 : w.value.length),
612
+ 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)) + t.value.slot * 0.8 / (u.value.stacked ? 1 : w.value.length),
612
613
  y: e.coordinatesLine[o].y
613
614
  },
614
615
  {
615
- x: l.value.left + l.value.slot * o + l.value.slot / 10 + (r.value.stacked ? 0 : l.value.slot / w.value.length * t - (t === 0 ? 0 : l.value.slot / (5 * w.value.length) * t)),
616
+ 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)),
616
617
  y: e.coordinatesLine[o].y
617
618
  }
618
619
  ],
@@ -626,20 +627,20 @@ const Cl = ["id"], wl = ["onClick"], zl = {
626
627
  },
627
628
  end: {
628
629
  x: e.coordinatesLine[o].x,
629
- y: r.value.stacked ? e.localZero : m.value.zero
630
+ y: u.value.stacked ? e.localZero : m.value.zero
630
631
  },
631
632
  stops: [
632
633
  { offset: 0, color: e.color },
633
- { offset: 1, color: a.value.style.chart.bar.gradient.show ? vl(e.color, 0.5) : e.color }
634
+ { offset: 1, color: a.value.style.chart.bar.gradient.show ? cl(e.color, 0.5) : e.color }
634
635
  ]
635
636
  }
636
637
  }
637
- ), r.value.showDataLabels && [!0, void 0].includes(e.dataLabels) && R(
638
+ ), u.value.showDataLabels && [!0, void 0].includes(e.dataLabels) && R(
638
639
  s.value,
639
- ee(
640
+ ae(
640
641
  a.value.style.chart.dataLabels.formatter,
641
642
  e.coordinatesLine[o].value,
642
- ae({
643
+ le({
643
644
  p: e.prefix || "",
644
645
  v: e.coordinatesLine[o].value,
645
646
  s: e.suffix || "",
@@ -647,8 +648,8 @@ const Cl = ["id"], wl = ["onClick"], zl = {
647
648
  }),
648
649
  { datapoint: e.coordinatesLine[o], seriesIndex: o }
649
650
  ),
650
- l.value.left + l.value.slot * o + l.value.slot / 10 + (r.value.stacked ? 0 : l.value.slot / w.value.length * t - (t === 0 ? 0 : l.value.slot / (5 * w.value.length) * t)) + l.value.slot * 0.4 / (r.value.stacked ? 1 : w.value.length),
651
- (e.coordinatesLine[o].value < 0 ? r.value.stacked ? e.localZero : m.value.zero : e.coordinatesLine[o].y) + a.value.style.chart.dataLabels.offsetY,
651
+ 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)) + t.value.slot * 0.4 / (u.value.stacked ? 1 : w.value.length),
652
+ (e.coordinatesLine[o].value < 0 ? u.value.stacked ? e.localZero : m.value.zero : e.coordinatesLine[o].y) + a.value.style.chart.dataLabels.offsetY,
652
653
  {
653
654
  align: "center",
654
655
  font: `${Math.round(y.value / 40 * a.value.style.chart.dataLabels.fontSizeRatio)}px ${a.value.style.fontFamily}`,
@@ -660,14 +661,14 @@ const Cl = ["id"], wl = ["onClick"], zl = {
660
661
  });
661
662
  }
662
663
  function Na(e) {
663
- e.useArea ? r.value.stacked ? ca(
664
+ e.useArea ? u.value.stacked ? da(
664
665
  s.value,
665
666
  [{ x: e.coordinatesLine[0].x, y: e.localZero }, ...e.coordinatesLine, { x: e.coordinatesLine.at(-1).x, y: e.localZero }],
666
667
  {
667
668
  fillColor: ve(e.color, a.value.style.chart.area.opacity),
668
669
  strokeColor: "transparent"
669
670
  }
670
- ) : ca(
671
+ ) : da(
671
672
  s.value,
672
673
  [{ x: e.coordinatesLine[0].x, y: m.value.zero }, ...e.coordinatesLine, { x: e.coordinatesLine.at(-1).x, y: m.value.zero }],
673
674
  {
@@ -680,12 +681,12 @@ const Cl = ["id"], wl = ["onClick"], zl = {
680
681
  });
681
682
  }
682
683
  function Ha() {
683
- h.value.forEach((e, t) => {
684
+ h.value.forEach((e, l) => {
684
685
  k(
685
686
  s.value,
686
687
  [
687
- { x: l.value.left, y: l.value.bottom - e.yOffset },
688
- { x: l.value.right, y: l.value.bottom - e.yOffset }
688
+ { x: t.value.left, y: t.value.bottom - e.yOffset },
689
+ { x: t.value.right, y: t.value.bottom - e.yOffset }
689
690
  ],
690
691
  {
691
692
  color: a.value.style.chart.grid.x.horizontalLines.color,
@@ -695,12 +696,12 @@ const Cl = ["id"], wl = ["onClick"], zl = {
695
696
  });
696
697
  }
697
698
  function oe() {
698
- Ta(), N.value ? (c.value !== null && a.value.style.chart.selector.show && Je(), Da(), r.value.stacked && a.value.style.chart.grid.x.showAxis && Ha(), Ia.value.forEach((e) => {
699
- (e.type === "line" || !e.type) && Na(e), G.value && (Oa(e), r.value.showDataLabels && [!0, void 0].includes(e.dataLabels) && Fa(e));
700
- }), xe.value = yl(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 && Je(), c.value !== null && h.value.forEach((e) => {
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) => {
701
702
  if (e.type === "line" || !e.type || e.type === "plot") {
702
703
  if (!e.coordinatesLine[c.value]) return;
703
- e.coordinatesLine[c.value].x !== void 0 && e.coordinatesLine[c.value].y !== void 0 && va(
704
+ e.coordinatesLine[c.value].x !== void 0 && e.coordinatesLine[c.value].y !== void 0 && ca(
704
705
  s.value,
705
706
  {
706
707
  x: e.coordinatesLine[c.value].x,
@@ -713,34 +714,34 @@ const Cl = ["id"], wl = ["onClick"], zl = {
713
714
  }
714
715
  );
715
716
  }
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(), N.value = !1;
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;
717
718
  }
718
- const ye = cl(() => {
719
- G.value = !0, Ma();
720
- }, I.value > 200 ? 10 : 1, !G.value);
721
- function ue(e) {
719
+ const ye = dl(() => {
720
+ Z.value = !0, Ma();
721
+ }, I.value > 200 ? 10 : 1, !Z.value);
722
+ function re(e) {
722
723
  if ([null, void 0].includes(c.value) || !e.coordinatesLine[c.value]) return !1;
723
- const { y: t, value: o } = e.coordinatesLine[c.value];
724
- return { y: t, value: o };
724
+ const { y: l, value: o } = e.coordinatesLine[c.value];
725
+ return { y: l, value: o };
725
726
  }
726
727
  function Ya(e) {
727
- const { left: t, top: o } = T.value.getBoundingClientRect(), n = e.clientX - t;
728
- if (M.value = (e.clientY - o) * 2, (M.value < l.value.top || M.value > l.value.bottom) && (M.value = null), n * 2 < l.value.left || n * 2 > l.value.right) {
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) {
729
730
  ce.value = !1, c.value = null;
730
731
  return;
731
732
  }
732
- const v = n * 2 - l.value.left;
733
- if (c.value = Math.floor(v / l.value.slot), ce.value = !0, !G.value) return;
733
+ const v = n * 2 - t.value.left;
734
+ if (c.value = Math.floor(v / t.value.slot), ce.value = !0, !Z.value) return;
734
735
  let C = "";
735
736
  const i = a.value.style.chart.tooltip.customFormat;
736
- ia(i) && il(() => i({
737
+ va(i) && vl(() => i({
737
738
  seriesIndex: c.value,
738
739
  datapoint: h.value.map((f) => ({
739
740
  shape: f.shape || null,
740
741
  name: f.name,
741
742
  color: f.color,
742
743
  type: f.type || "line",
743
- value: f.series.find((Y, S) => S === c.value)
744
+ value: f.series.find((U, z) => z === c.value)
744
745
  })),
745
746
  series: h.value,
746
747
  config: a.value
@@ -751,66 +752,66 @@ const Cl = ["id"], wl = ["onClick"], zl = {
751
752
  name: f.name,
752
753
  color: f.color,
753
754
  type: f.type || "line",
754
- value: f.series.find((Y, S) => S === c.value)
755
+ value: f.series.find((U, z) => z === c.value)
755
756
  })),
756
757
  series: h.value,
757
758
  config: a.value
758
- }) : (a.value.style.chart.grid.y.timeLabels.values.slice(u.value.start, u.value.end)[c.value] && (C += `<div style="padding-bottom: 6px; margin-bottom: 4px; border-bottom: 1px solid ${a.value.style.chart.tooltip.borderColor}; width:100%">${H.value.slice(u.value.start, u.value.end)[c.value].text}</div>`), C += Sa.value.join(""), de.value = C), G.value = !1;
759
+ }) : (a.value.style.chart.grid.y.timeLabels.values.slice(r.value.start, r.value.end)[c.value] && (C += `<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>`), C += za.value.join(""), de.value = C), Z.value = !1;
759
760
  }
760
761
  A(() => c.value, (e) => {
761
762
  ye();
762
- }), A(() => u.value, (e) => {
763
- N.value = !0, oe();
763
+ }), A(() => r.value, (e) => {
764
+ H.value = !0, oe();
764
765
  }, {
765
766
  deep: !0
766
- }), A(() => r.value.showDataLabels, (e) => {
767
- N.value = !0, oe();
767
+ }), A(() => u.value.showDataLabels, (e) => {
768
+ H.value = !0, oe();
768
769
  }), A(() => M.value, (e) => {
769
770
  e && oe();
770
- }), A(() => r.value.stacked, (e) => {
771
- N.value = !0, G.value = !0, ye();
771
+ }), A(() => u.value.stacked, (e) => {
772
+ H.value = !0, Z.value = !0, ye();
772
773
  });
773
774
  function Ua() {
774
775
  ce.value = !1, c.value = null, de.value = "", M.value = null, oe();
775
776
  }
776
- const F = Ie(null), q = Ie(null), J = Ie(null);
777
- ra(() => {
778
- Se();
777
+ const E = Ie(null), J = Ie(null), K = Ie(null);
778
+ sa(() => {
779
+ ze();
779
780
  });
780
- function Se() {
781
- if (ul(g.dataset) ? rl({
781
+ function ze() {
782
+ if (ul(g.dataset) ? sl({
782
783
  componentName: "VueUiXyCanvas",
783
784
  type: "dataset"
784
785
  }) : T.value && (s.value = T.value.getContext("2d", { willReadFrequently: !0 })), a.value.responsive) {
785
- const e = dl(() => {
786
- const { width: t, height: o } = hl({
787
- chart: le.value,
788
- title: a.value.style.chart.title.text ? Ee.value : null,
786
+ const e = hl(() => {
787
+ const { width: l, height: o } = yl({
788
+ chart: N.value,
789
+ title: a.value.style.chart.title.text ? Fe.value : null,
789
790
  legend: a.value.style.chart.legend.show ? Ae.value : null,
790
791
  slicer: a.value.style.chart.zoom.show && I.value > 1 ? De.value : null,
791
792
  source: Ne.value
792
793
  });
793
794
  requestAnimationFrame(() => {
794
- We.value = `${t} / ${o}`;
795
+ We.value = `${l} / ${o}`;
795
796
  });
796
797
  });
797
- F.value && (q.value && F.value.unobserve(q.value), F.value.disconnect()), F.value = new ResizeObserver(e), q.value = le.value.parentNode, F.value.observe(q.value);
798
+ E.value && (J.value && E.value.unobserve(J.value), E.value.disconnect()), E.value = new ResizeObserver(e), J.value = N.value.parentNode, E.value.observe(J.value);
798
799
  }
799
- J.value && J.value.disconnect(), J.value = new ResizeObserver((e) => {
800
- for (const t of e)
801
- t.contentBoxSize && te.value && (N.value = !0, ye());
802
- }), J.value.observe(te.value), qe();
800
+ K.value && K.value.disconnect(), K.value = new ResizeObserver((e) => {
801
+ for (const l of e)
802
+ l.contentBoxSize && te.value && (H.value = !0, ye());
803
+ }), K.value.observe(te.value), Je();
803
804
  }
804
- Va(() => {
805
- J.value && J.value.disconnect(), F.value && (q.value && F.value.unobserve(q.value), F.value.disconnect());
805
+ Ga(() => {
806
+ K.value && K.value.disconnect(), E.value && (J.value && E.value.unobserve(J.value), E.value.disconnect());
806
807
  });
807
- function Ke(e) {
808
- ka("selectLegend", h.value.find((t) => t.absoluteIndex === e)), $.value.includes(e) ? $.value = $.value.filter((t) => t !== e) : $.value.push(e), N.value = !0, ye();
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();
809
810
  }
810
- const Qe = x(() => Z.value.map((e, t) => ({
811
+ const ea = x(() => j.value.map((e, l) => ({
811
812
  ...e,
812
813
  name: e.name,
813
- color: na(e.color) || Ge.value[t] || B[t] || B[t % B.length],
814
+ color: ia(e.color) || Ze.value[l] || V[l] || V[l % V.length],
814
815
  shape: e.shape || "circle",
815
816
  prefix: e.prefix || "",
816
817
  suffix: e.suffix || "",
@@ -818,7 +819,7 @@ const Cl = ["id"], wl = ["onClick"], zl = {
818
819
  })).map((e) => ({
819
820
  ...e,
820
821
  opacity: $.value.includes(e.absoluteIndex) ? 0.5 : 1,
821
- segregate: () => Ke(e.absoluteIndex),
822
+ segregate: () => Qe(e.absoluteIndex),
822
823
  isSegregated: $.value.includes(e.absoluteIndex)
823
824
  }))), Wa = x(() => ({
824
825
  cy: "donut-div-legend",
@@ -829,10 +830,10 @@ const Cl = ["id"], wl = ["onClick"], zl = {
829
830
  fontWeight: a.value.style.chart.legend.bold ? "bold" : ""
830
831
  })), fe = x(() => {
831
832
  const e = [""].concat(h.value.map((v) => v.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>');
832
- let t = [];
833
+ let l = [];
833
834
  for (let v = 0; v < I.value; v += 1) {
834
835
  const C = h.value.map((i) => i.series[v] ?? 0).reduce((i, f) => i + f, 0);
835
- t.push([a.value.style.chart.grid.y.timeLabels.values.slice(u.value.start, u.value.end)[v] ? H.value.slice(u.value.start, u.value.end)[v].text : v + 1].concat(h.value.map((i) => (i.series[v] ?? 0).toFixed(a.value.table.rounding))).concat((C ?? 0).toFixed(a.value.table.rounding)));
836
+ l.push([a.value.style.chart.grid.y.timeLabels.values.slice(r.value.start, r.value.end)[v] ? Y.value.slice(r.value.start, r.value.end)[v].text : v + 1].concat(h.value.map((i) => (i.series[v] ?? 0).toFixed(a.value.table.rounding))).concat((C ?? 0).toFixed(a.value.table.rounding)));
836
837
  }
837
838
  const o = {
838
839
  th: {
@@ -847,71 +848,78 @@ const Cl = ["id"], wl = ["onClick"], zl = {
847
848
  },
848
849
  breakpoint: a.value.table.responsiveBreakpoint
849
850
  }, n = [a.value.table.columnNames.period].concat(h.value.map((v) => v.name)).concat(a.value.table.columnNames.total);
850
- return { head: e, body: t.slice(0, u.value.end - u.value.start), config: o, colNames: n };
851
- }), ea = x(() => {
851
+ return { head: e, body: l.slice(0, r.value.end - r.value.start), config: o, colNames: n };
852
+ }), aa = x(() => {
852
853
  if (h.value.length === 0) return { head: [], body: [], config: {}, columnNames: [] };
853
854
  const e = h.value.map((o) => ({
854
855
  label: o.name,
855
856
  color: o.color,
856
857
  type: o.type
857
- })), t = [];
858
- for (let o = u.value.start; o < u.value.end; o += 1) {
859
- const n = [a.value.style.chart.grid.y.timeLabels.values[o] ? H.value[o].text : o + 1];
858
+ })), l = [];
859
+ 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];
860
861
  h.value.forEach((v) => {
861
862
  n.push(Number((v.series[o] || 0).toFixed(a.value.table.rounding)));
862
- }), t.push(n);
863
+ }), l.push(n);
863
864
  }
864
- return { head: e, body: t };
865
+ return { head: e, body: l };
865
866
  });
866
- function aa(e = null) {
867
- const t = [[a.value.style.chart.title.text], [a.value.style.chart.title.subtitle.text], [""]], o = ["", ...ea.value.head.map((i) => i.label)], n = ea.value.body, v = t.concat([o]).concat(n), C = sl(v);
868
- e ? e(C) : nl({ csvContent: C, title: a.value.style.chart.title.text || "vue-ui-xy-canvas" });
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((i) => i.label)], n = aa.value.body, v = l.concat([o]).concat(n), C = nl(v);
869
+ e ? e(C) : il({ csvContent: C, title: a.value.style.chart.title.text || "vue-ui-xy-canvas" });
869
870
  }
870
871
  function Xa() {
871
872
  return h.value;
872
873
  }
873
- function la() {
874
- r.value.showTable = !r.value.showTable;
875
- }
876
874
  function ta() {
877
- r.value.showDataLabels = !r.value.showDataLabels;
875
+ u.value.showTable = !u.value.showTable;
878
876
  }
879
877
  function oa() {
880
- r.value.stacked = !r.value.stacked;
878
+ u.value.showDataLabels = !u.value.showDataLabels;
879
+ }
880
+ function ra() {
881
+ u.value.stacked = !u.value.stacked;
881
882
  }
882
883
  function ua() {
883
- r.value.showTooltip = !r.value.showTooltip;
884
+ u.value.showTooltip = !u.value.showTooltip;
884
885
  }
885
886
  const ge = d(!1);
886
887
  function $e() {
887
888
  ge.value = !ge.value;
888
889
  }
889
- return ha({
890
+ async function _a({ scale: e = 2 } = {}) {
891
+ if (!N.value) return;
892
+ const { imageUri: l, base64: o } = await Cl({ domElement: N.value, base64: !0, img: !0, scale: e });
893
+ return { imageUri: l, base64: o };
894
+ }
895
+ return ya({
890
896
  getData: Xa,
891
- generateCsv: aa,
897
+ getImage: _a,
898
+ generateCsv: la,
892
899
  generatePdf: Be,
893
900
  generateImage: Ve,
894
- toggleTable: la,
895
- toggleLabels: ta,
896
- toggleStack: oa,
901
+ toggleTable: ta,
902
+ toggleLabels: oa,
903
+ toggleStack: ra,
897
904
  toggleTooltip: ua,
898
- toggleAnnotator: $e
899
- }), (e, t) => (z(), ne("div", {
900
- style: Q(`width:100%; position:relative; ${a.value.responsive ? "height: 100%" : ""}`),
905
+ toggleAnnotator: $e,
906
+ toggleFullscreen: Ge
907
+ }), (e, l) => (S(), ne("div", {
908
+ style: ee(`width:100%; position:relative; ${a.value.responsive ? "height: 100%" : ""}`),
901
909
  ref_key: "xy",
902
- ref: le,
910
+ ref: N,
903
911
  id: `xy_canvas_${be.value}`,
904
- class: Ga(`vue-ui-donut ${he.value ? "vue-data-ui-wrapper-fullscreen" : ""}`),
905
- onMouseenter: t[5] || (t[5] = () => p(He)(!0)),
906
- onMouseleave: t[6] || (t[6] = () => p(He)(!1))
912
+ class: Za(`vue-ui-donut ${he.value ? "vue-data-ui-wrapper-fullscreen" : ""}`),
913
+ onMouseenter: l[5] || (l[5] = () => p(He)(!0)),
914
+ onMouseleave: l[6] || (l[6] = () => p(He)(!1))
907
915
  }, [
908
- a.value.style.chart.title.text ? (z(), ne("div", {
916
+ a.value.style.chart.title.text ? (S(), ne("div", {
909
917
  key: 0,
910
918
  ref_key: "chartTitle",
911
- ref: Ee,
912
- style: Q(`width:100%;background:${a.value.style.chart.backgroundColor};`)
919
+ ref: Fe,
920
+ style: ee(`width:100%;background:${a.value.style.chart.backgroundColor};`)
913
921
  }, [
914
- (z(), D(bl, {
922
+ (S(), D(xl, {
915
923
  key: `title_${Le.value}`,
916
924
  config: {
917
925
  title: {
@@ -924,10 +932,10 @@ const Cl = ["id"], wl = ["onClick"], zl = {
924
932
  }
925
933
  }
926
934
  }, null, 8, ["config"]))
927
- ], 4)) : W("", !0),
928
- a.value.userOptions.show && we.value && (p(Ye) || p(ze)) ? (z(), D(p(xa), {
935
+ ], 4)) : X("", !0),
936
+ a.value.userOptions.show && we.value && (p(Ye) || p(Se)) ? (S(), D(p(La), {
929
937
  ref: "details",
930
- key: `user_option_${Fe.value}`,
938
+ key: `user_option_${Ee.value}`,
931
939
  backgroundColor: a.value.style.chart.backgroundColor,
932
940
  color: a.value.style.chart.color,
933
941
  isPrinting: p(Xe),
@@ -940,33 +948,34 @@ const Cl = ["id"], wl = ["onClick"], zl = {
940
948
  hasLabel: a.value.userOptions.buttons.labels,
941
949
  hasStack: Oe.dataset.length > 1 && a.value.userOptions.buttons.stack,
942
950
  hasFullscreen: a.value.userOptions.buttons.fullscreen,
943
- hasTable: u.value.end - u.value.start < 200 && a.value.userOptions.buttons.table,
951
+ hasTable: r.value.end - r.value.start < 200 && a.value.userOptions.buttons.table,
944
952
  isFullscreen: he.value,
945
- isTooltip: r.value.showTooltip,
946
- isStacked: r.value.stacked,
953
+ isTooltip: u.value.showTooltip,
954
+ isStacked: u.value.stacked,
947
955
  titles: { ...a.value.userOptions.buttonTitles },
948
- chartElement: le.value,
956
+ chartElement: N.value,
949
957
  position: a.value.userOptions.position,
950
958
  hasAnnotator: a.value.userOptions.buttons.annotator,
951
959
  isAnnotation: ge.value,
952
960
  callbacks: a.value.userOptions.callbacks,
953
- onToggleFullscreen: wa,
961
+ printScale: a.value.userOptions.print.scale,
962
+ onToggleFullscreen: Ge,
954
963
  onGeneratePdf: p(Be),
955
- onGenerateCsv: aa,
964
+ onGenerateCsv: la,
956
965
  onGenerateImage: p(Ve),
957
- onToggleTable: la,
958
- onToggleLabels: ta,
959
- onToggleStack: oa,
966
+ onToggleTable: ta,
967
+ onToggleLabels: oa,
968
+ onToggleStack: ra,
960
969
  onToggleTooltip: ua,
961
970
  onToggleAnnotator: $e,
962
- style: Q({
963
- visibility: p(Ye) ? p(ze) ? "visible" : "hidden" : "visible"
971
+ style: ee({
972
+ visibility: p(Ye) ? p(Se) ? "visible" : "hidden" : "visible"
964
973
  })
965
- }, Za({ _: 2 }, [
974
+ }, ja({ _: 2 }, [
966
975
  e.$slots.menuIcon ? {
967
976
  name: "menuIcon",
968
977
  fn: b(({ isOpen: o, color: n }) => [
969
- L(e.$slots, "menuIcon", X(_({ isOpen: o, color: n })), void 0, !0)
978
+ L(e.$slots, "menuIcon", _(B({ isOpen: o, color: n })), void 0, !0)
970
979
  ]),
971
980
  key: "0"
972
981
  } : void 0,
@@ -1022,32 +1031,32 @@ const Cl = ["id"], wl = ["onClick"], zl = {
1022
1031
  e.$slots.optionFullscreen ? {
1023
1032
  name: "optionFullscreen",
1024
1033
  fn: b(({ toggleFullscreen: o, isFullscreen: n }) => [
1025
- L(e.$slots, "optionFullscreen", X(_({ toggleFullscreen: o, isFullscreen: n })), void 0, !0)
1034
+ L(e.$slots, "optionFullscreen", _(B({ toggleFullscreen: o, isFullscreen: n })), void 0, !0)
1026
1035
  ]),
1027
1036
  key: "8"
1028
1037
  } : void 0,
1029
1038
  e.$slots.optionAnnotator ? {
1030
1039
  name: "optionAnnotator",
1031
1040
  fn: b(({ toggleAnnotator: o, isAnnotator: n }) => [
1032
- L(e.$slots, "optionAnnotator", X(_({ toggleAnnotator: o, isAnnotator: n })), void 0, !0)
1041
+ L(e.$slots, "optionAnnotator", _(B({ toggleAnnotator: o, isAnnotator: n })), void 0, !0)
1033
1042
  ]),
1034
1043
  key: "9"
1035
1044
  } : void 0
1036
- ]), 1032, ["backgroundColor", "color", "isPrinting", "isImaging", "uid", "hasTooltip", "hasPdf", "hasImg", "hasXls", "hasLabel", "hasStack", "hasFullscreen", "hasTable", "isFullscreen", "isTooltip", "isStacked", "titles", "chartElement", "position", "hasAnnotator", "isAnnotation", "callbacks", "onGeneratePdf", "onGenerateImage", "style"])) : W("", !0),
1045
+ ]), 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),
1037
1046
  ie("div", {
1038
1047
  class: "vue-ui-xy-canvas",
1039
- style: Q(`position: relative; aspect-ratio: ${We.value}`),
1048
+ style: ee(`position: relative; aspect-ratio: ${We.value}`),
1040
1049
  ref_key: "container",
1041
1050
  ref: te
1042
1051
  }, [
1043
- we.value ? (z(), ne("canvas", {
1052
+ we.value ? (S(), ne("canvas", {
1044
1053
  key: 0,
1045
1054
  ref_key: "canvas",
1046
1055
  ref: T,
1047
1056
  style: { width: "100%", height: "100%" },
1048
- onMousemove: t[0] || (t[0] = (o) => Ya(o)),
1057
+ onMousemove: l[0] || (l[0] = (o) => Ya(o)),
1049
1058
  onMouseleave: Ua
1050
- }, null, 544)) : (z(), D(p(ma), {
1059
+ }, null, 544)) : (S(), D(p(ba), {
1051
1060
  key: 1,
1052
1061
  config: {
1053
1062
  type: "line",
@@ -1065,8 +1074,8 @@ const Cl = ["id"], wl = ["onClick"], zl = {
1065
1074
  }
1066
1075
  }
1067
1076
  }, null, 8, ["config"])),
1068
- ja(p(ba), {
1069
- show: r.value.showTooltip && ce.value,
1077
+ qa(p(xa), {
1078
+ show: u.value.showTooltip && ce.value,
1070
1079
  backgroundColor: a.value.style.chart.tooltip.backgroundColor,
1071
1080
  color: a.value.style.chart.tooltip.color,
1072
1081
  fontSize: a.value.style.chart.tooltip.fontSize,
@@ -1079,13 +1088,13 @@ const Cl = ["id"], wl = ["onClick"], zl = {
1079
1088
  content: de.value,
1080
1089
  isFullscreen: he.value,
1081
1090
  backgroundOpacity: a.value.style.chart.tooltip.backgroundOpacity,
1082
- isCustom: p(ia)(a.value.style.chart.tooltip.customFormat)
1091
+ isCustom: p(va)(a.value.style.chart.tooltip.customFormat)
1083
1092
  }, {
1084
1093
  "tooltip-before": b(() => [
1085
- L(e.$slots, "tooltip-before", X(_({ ...Re.value })), void 0, !0)
1094
+ L(e.$slots, "tooltip-before", _(B({ ...Re.value })), void 0, !0)
1086
1095
  ]),
1087
1096
  "tooltip-after": b(() => [
1088
- L(e.$slots, "tooltip-after", X(_({ ...Re.value })), void 0, !0)
1097
+ L(e.$slots, "tooltip-after", _(B({ ...Re.value })), void 0, !0)
1089
1098
  ]),
1090
1099
  _: 3
1091
1100
  }, 8, ["show", "backgroundColor", "color", "fontSize", "borderRadius", "borderColor", "borderWidth", "position", "offsetY", "parent", "content", "isFullscreen", "backgroundOpacity", "isCustom"])
@@ -1093,80 +1102,80 @@ const Cl = ["id"], wl = ["onClick"], zl = {
1093
1102
  ie("div", {
1094
1103
  ref_key: "chartSlicer",
1095
1104
  ref: De,
1096
- style: Q(`width:100%;background:${a.value.style.chart.backgroundColor}`),
1105
+ style: ee(`width:100%;background:${a.value.style.chart.backgroundColor}`),
1097
1106
  "data-dom-to-png-ignore": ""
1098
1107
  }, [
1099
- a.value.style.chart.zoom.show && I.value > 1 ? (z(), D(xl, {
1108
+ a.value.style.chart.zoom.show && I.value > 1 ? (S(), D(Ll, {
1100
1109
  ref_key: "slicerComponent",
1101
- ref: j,
1110
+ ref: q,
1102
1111
  key: `slicer_${Pe.value}`,
1103
1112
  background: a.value.style.chart.zoom.color,
1104
1113
  borderColor: a.value.style.chart.backgroundColor,
1105
1114
  fontSize: a.value.style.chart.zoom.fontSize,
1106
1115
  useResetSlot: a.value.style.chart.zoom.useResetSlot,
1107
- labelLeft: a.value.style.chart.grid.y.timeLabels.values[u.value.start] ? H.value[u.value.start].text : "",
1108
- labelRight: a.value.style.chart.grid.y.timeLabels.values[u.value.end - 1] ? H.value[u.value.end - 1].text : "",
1116
+ labelLeft: a.value.style.chart.grid.y.timeLabels.values[r.value.start] ? Y.value[r.value.start].text : "",
1117
+ labelRight: a.value.style.chart.grid.y.timeLabels.values[r.value.end - 1] ? Y.value[r.value.end - 1].text : "",
1109
1118
  textColor: a.value.style.chart.color,
1110
1119
  inputColor: a.value.style.chart.zoom.color,
1111
1120
  selectColor: a.value.style.chart.zoom.highlightColor,
1112
1121
  max: I.value,
1113
1122
  min: 0,
1114
- valueStart: u.value.start,
1115
- valueEnd: u.value.end,
1116
- start: u.value.start,
1117
- "onUpdate:start": t[1] || (t[1] = (o) => u.value.start = o),
1118
- end: u.value.end,
1119
- "onUpdate:end": t[2] || (t[2] = (o) => u.value.end = o),
1123
+ valueStart: r.value.start,
1124
+ valueEnd: r.value.end,
1125
+ start: r.value.start,
1126
+ "onUpdate:start": l[1] || (l[1] = (o) => r.value.start = o),
1127
+ end: r.value.end,
1128
+ "onUpdate:end": l[2] || (l[2] = (o) => r.value.end = o),
1120
1129
  refreshStartPoint: a.value.style.chart.zoom.startIndex !== null ? a.value.style.chart.zoom.startIndex : 0,
1121
1130
  refreshEndPoint: a.value.style.chart.zoom.endIndex !== null ? a.value.style.chart.zoom.endIndex + 1 : I.value,
1122
1131
  enableRangeHandles: a.value.style.chart.zoom.enableRangeHandles,
1123
1132
  enableSelectionDrag: a.value.style.chart.zoom.enableSelectionDrag,
1124
- onReset: je
1133
+ onReset: qe
1125
1134
  }, {
1126
1135
  "reset-action": b(({ reset: o }) => [
1127
- L(e.$slots, "reset-action", X(_({ reset: o })), void 0, !0)
1136
+ L(e.$slots, "reset-action", _(B({ reset: o })), void 0, !0)
1128
1137
  ]),
1129
1138
  _: 3
1130
- }, 8, ["background", "borderColor", "fontSize", "useResetSlot", "labelLeft", "labelRight", "textColor", "inputColor", "selectColor", "max", "valueStart", "valueEnd", "start", "end", "refreshStartPoint", "refreshEndPoint", "enableRangeHandles", "enableSelectionDrag"])) : W("", !0)
1139
+ }, 8, ["background", "borderColor", "fontSize", "useResetSlot", "labelLeft", "labelRight", "textColor", "inputColor", "selectColor", "max", "valueStart", "valueEnd", "start", "end", "refreshStartPoint", "refreshEndPoint", "enableRangeHandles", "enableSelectionDrag"])) : X("", !0)
1131
1140
  ], 4),
1132
1141
  ie("div", {
1133
1142
  ref_key: "chartLegend",
1134
1143
  ref: Ae
1135
1144
  }, [
1136
- a.value.style.chart.legend.show && we.value ? (z(), D(ml, {
1137
- legendSet: Qe.value,
1145
+ a.value.style.chart.legend.show && we.value ? (S(), D(bl, {
1146
+ legendSet: ea.value,
1138
1147
  config: Wa.value,
1139
1148
  key: `legend_${Ce.value}`,
1140
- onClickMarker: t[3] || (t[3] = ({ i: o }) => Ke(o))
1149
+ onClickMarker: l[3] || (l[3] = ({ i: o }) => Qe(o))
1141
1150
  }, {
1142
1151
  item: b(({ legend: o, index: n }) => [
1143
1152
  ie("div", {
1144
1153
  onClick: (v) => o.segregate(),
1145
- style: Q(`opacity:${$.value.includes(n) ? 0.5 : 1}`)
1146
- }, sa(o.name), 13, wl)
1154
+ style: ee(`opacity:${$.value.includes(n) ? 0.5 : 1}`)
1155
+ }, na(o.name), 13, zl)
1147
1156
  ]),
1148
1157
  _: 1
1149
1158
  }, 8, ["legendSet", "config"])) : L(e.$slots, "legend", {
1150
1159
  key: 1,
1151
- legend: Qe.value
1160
+ legend: ea.value
1152
1161
  }, void 0, !0)
1153
1162
  ], 512),
1154
- e.$slots.watermark ? (z(), ne("div", zl, [
1155
- L(e.$slots, "watermark", X(_({ isPrinting: p(Xe) || p(_e) })), void 0, !0)
1156
- ])) : W("", !0),
1157
- e.$slots.source ? (z(), ne("div", {
1163
+ e.$slots.watermark ? (S(), ne("div", $l, [
1164
+ L(e.$slots, "watermark", _(B({ isPrinting: p(Xe) || p(_e) })), void 0, !0)
1165
+ ])) : X("", !0),
1166
+ e.$slots.source ? (S(), ne("div", {
1158
1167
  key: 3,
1159
1168
  ref_key: "source",
1160
1169
  ref: Ne,
1161
1170
  dir: "auto"
1162
1171
  }, [
1163
1172
  L(e.$slots, "source", {}, void 0, !0)
1164
- ], 512)) : W("", !0),
1165
- u.value.end - u.value.start < 200 ? (z(), D(p(fa), {
1173
+ ], 512)) : X("", !0),
1174
+ r.value.end - r.value.start < 200 ? (S(), D(p(ga), {
1166
1175
  key: 4,
1167
1176
  hideDetails: "",
1168
1177
  config: {
1169
- open: r.value.showTable,
1178
+ open: u.value.showTable,
1170
1179
  maxHeight: 1e4,
1171
1180
  body: {
1172
1181
  backgroundColor: a.value.style.chart.backgroundColor,
@@ -1179,37 +1188,37 @@ const Cl = ["id"], wl = ["onClick"], zl = {
1179
1188
  }
1180
1189
  }, {
1181
1190
  content: b(() => [
1182
- (z(), D(p(ga), {
1191
+ (S(), D(p(pa), {
1183
1192
  key: `table_${ke.value}`,
1184
1193
  colNames: fe.value.colNames,
1185
1194
  head: fe.value.head,
1186
1195
  body: fe.value.body,
1187
1196
  config: fe.value.config,
1188
1197
  title: `${a.value.style.chart.title.text}${a.value.style.chart.title.subtitle.text ? ` : ${a.value.style.chart.title.subtitle.text}` : ""}`,
1189
- onClose: t[4] || (t[4] = (o) => r.value.showTable = !1)
1198
+ onClose: l[4] || (l[4] = (o) => u.value.showTable = !1)
1190
1199
  }, {
1191
1200
  th: b(({ th: o }) => [
1192
- ie("div", { innerHTML: o }, null, 8, Sl)
1201
+ ie("div", { innerHTML: o }, null, 8, Il)
1193
1202
  ]),
1194
1203
  td: b(({ td: o }) => [
1195
- qa(sa(o), 1)
1204
+ Ja(na(o), 1)
1196
1205
  ]),
1197
1206
  _: 1
1198
1207
  }, 8, ["colNames", "head", "body", "config", "title"]))
1199
1208
  ]),
1200
1209
  _: 1
1201
- }, 8, ["config"])) : W("", !0),
1202
- a.value.userOptions.buttons.annotator && h.value.length ? (z(), D(p(pa), {
1210
+ }, 8, ["config"])) : X("", !0),
1211
+ a.value.userOptions.buttons.annotator && h.value.length ? (S(), D(p(ma), {
1203
1212
  key: 5,
1204
- parent: le.value,
1213
+ parent: N.value,
1205
1214
  backgroundColor: a.value.style.chart.backgroundColor,
1206
1215
  color: a.value.style.chart.color,
1207
1216
  active: ge.value,
1208
1217
  onClose: $e
1209
- }, null, 8, ["parent", "backgroundColor", "color", "active"])) : W("", !0)
1210
- ], 46, Cl));
1218
+ }, null, 8, ["parent", "backgroundColor", "color", "active"])) : X("", !0)
1219
+ ], 46, Sl));
1211
1220
  }
1212
- }, Yl = /* @__PURE__ */ kl($l, [["__scopeId", "data-v-2541a32d"]]);
1221
+ }, Xl = /* @__PURE__ */ wl(Ml, [["__scopeId", "data-v-7122b61f"]]);
1213
1222
  export {
1214
- Yl as default
1223
+ Xl as default
1215
1224
  };