vue-data-ui 3.1.13 → 3.1.15

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/dist/{Arrow-CVLA4XvK.js → Arrow-BwVAy_Jw.js} +1 -1
  2. package/dist/{BaseDraggableDialog-R8VpARJu.js → BaseDraggableDialog-TS2ANP8W.js} +2 -2
  3. package/dist/{BaseIcon-CBGEVS_a.js → BaseIcon-Dj9csjZa.js} +1 -1
  4. package/dist/{ColorPicker-YzV_LGZx.js → ColorPicker-BKecww2B.js} +2 -2
  5. package/dist/{DataTable-DQRJv8EE.js → DataTable-DAc2s9Wi.js} +2 -2
  6. package/dist/{Legend-CC3LegoH.js → Legend-C3Kvktr3.js} +2 -2
  7. package/dist/{NonSvgPenAndPaper-CmIOGkib.js → NonSvgPenAndPaper-yA6HCA0i.js} +3 -3
  8. package/dist/{PackageVersion-bFI66Iee.js → PackageVersion-DL0EOwRR.js} +1 -1
  9. package/dist/{PenAndPaper-CHT5QaP8.js → PenAndPaper-CcoAkH79.js} +3 -3
  10. package/dist/{Shape-BWIW_Vmn.js → Shape-CziAQ1KL.js} +1 -1
  11. package/dist/Slicer-BMgEyKMg.js +995 -0
  12. package/dist/{SparkTooltip-BP53cKq5.js → SparkTooltip-BGqC2VSH.js} +1 -1
  13. package/dist/{Title-BKsDkvCV.js → Title-DRhv9bCG.js} +1 -1
  14. package/dist/{Tooltip-BA5KTZ2e.js → Tooltip-B46L8jx5.js} +1 -1
  15. package/dist/{UserOptions-usqWO4wC.js → UserOptions-CmhyvH7T.js} +2 -2
  16. package/dist/{dom-to-png-BnO878iN.js → dom-to-png-B2G1VN03.js} +1 -1
  17. package/dist/{img-CVbbqgGH.js → img-CRdZ0dzP.js} +1 -1
  18. package/dist/{index-CdN9MkL7.js → index-BS0jZusk.js} +871 -835
  19. package/dist/{pdf-D8ryJvtA.js → pdf-Gz1SfU0n.js} +1 -1
  20. package/dist/style.css +1 -1
  21. package/dist/types/vue-data-ui.d.cts +4 -0
  22. package/dist/types/vue-data-ui.d.ts +4 -0
  23. package/dist/{useAutoSizeLabelsInsideViewbox-CXgpnPOp.js → useAutoSizeLabelsInsideViewbox-BPbMPvCk.js} +1 -1
  24. package/dist/{useNestedProp-oNhYagej.js → useNestedProp-BMfS1Wmb.js} +1 -1
  25. package/dist/{usePrinter-CLVErK_G.js → usePrinter-CsKq2kgt.js} +2 -2
  26. package/dist/{vue-data-ui-ESVJfqTI.js → vue-data-ui-BfnOSsYj.js} +64 -64
  27. package/dist/vue-data-ui.js +9 -9
  28. package/dist/{vue-ui-3d-bar-BEColjG7.js → vue-ui-3d-bar-BR_dgJX1.js} +6 -6
  29. package/dist/{vue-ui-accordion-BoGANFKn.js → vue-ui-accordion-CEzzDwYU.js} +3 -3
  30. package/dist/{vue-ui-age-pyramid-D4hV5Mm5.js → vue-ui-age-pyramid-CqzjgMzW.js} +6 -6
  31. package/dist/{vue-ui-annotator-Bd14Ihi4.js → vue-ui-annotator-OWSjXDfI.js} +2 -2
  32. package/dist/{vue-ui-bullet-B3HG400j.js → vue-ui-bullet-BkiVGK4U.js} +7 -7
  33. package/dist/{vue-ui-candlestick-B6l4oAdh.js → vue-ui-candlestick-CE9w-lrK.js} +140 -138
  34. package/dist/{vue-ui-carousel-table-vCbymZEo.js → vue-ui-carousel-table-DzMkFu9a.js} +4 -4
  35. package/dist/{vue-ui-chestnut-BQ6iufUt.js → vue-ui-chestnut-CwW3t_5M.js} +5 -5
  36. package/dist/{vue-ui-chord-DW8T8npL.js → vue-ui-chord-C273Dy7g.js} +8 -8
  37. package/dist/{vue-ui-circle-pack-DjWtxYMQ.js → vue-ui-circle-pack-DVsgg20A.js} +6 -6
  38. package/dist/{vue-ui-cursor-CtBfAk5K.js → vue-ui-cursor-6wDMRfxj.js} +2 -2
  39. package/dist/{vue-ui-dashboard-CWuz7g2D.js → vue-ui-dashboard-Dr3da_KZ.js} +67 -67
  40. package/dist/{vue-ui-digits-D1b_EIv1.js → vue-ui-digits-CJl9xG57.js} +2 -2
  41. package/dist/{vue-ui-donut-BwdvzYGF.js → vue-ui-donut-CKvoDpr0.js} +8 -8
  42. package/dist/{vue-ui-donut-evolution-DXbshH8-.js → vue-ui-donut-evolution-B8z5HW6k.js} +62 -60
  43. package/dist/{vue-ui-dumbbell-Bt2y7QMw.js → vue-ui-dumbbell-C-aWCVEj.js} +7 -7
  44. package/dist/{vue-ui-flow-CiG_qIh_.js → vue-ui-flow-Cg0W7WX3.js} +7 -7
  45. package/dist/{vue-ui-funnel-BGCE6fqp.js → vue-ui-funnel-CfzyjhfB.js} +6 -6
  46. package/dist/{vue-ui-galaxy-BCEyVfRW.js → vue-ui-galaxy-CzswoWLZ.js} +7 -7
  47. package/dist/{vue-ui-gauge-Cfq8G4nD.js → vue-ui-gauge-BguKCg0e.js} +7 -7
  48. package/dist/{vue-ui-gizmo-CBOoJgxB.js → vue-ui-gizmo-mhU06gyJ.js} +3 -3
  49. package/dist/{vue-ui-heatmap-BefuX3hT.js → vue-ui-heatmap-BtAAQWmE.js} +7 -7
  50. package/dist/{vue-ui-history-plot-BqLyfnJn.js → vue-ui-history-plot-Clrvd4ZQ.js} +7 -7
  51. package/dist/{vue-ui-kpi-6IbtwB7F.js → vue-ui-kpi-DGpQpP2W.js} +3 -3
  52. package/dist/{vue-ui-mini-loader-BwbFaE7B.js → vue-ui-mini-loader-2zvIBunp.js} +2 -2
  53. package/dist/{vue-ui-molecule-BbhQfFdx.js → vue-ui-molecule-DKgiZcBp.js} +5 -5
  54. package/dist/{vue-ui-mood-radar-B-wVmA-t.js → vue-ui-mood-radar-ka0RoCHN.js} +7 -7
  55. package/dist/{vue-ui-nested-donuts-qKtWmJsI.js → vue-ui-nested-donuts-CvROIWCn.js} +7 -7
  56. package/dist/{vue-ui-onion-BpbpizLk.js → vue-ui-onion-x5qCIJUe.js} +8 -8
  57. package/dist/{vue-ui-parallel-coordinate-plot-BFK9LT6V.js → vue-ui-parallel-coordinate-plot-BaNQTR7G.js} +8 -8
  58. package/dist/{vue-ui-quadrant-D6_0xe-_.js → vue-ui-quadrant-Bde3xKLu.js} +8 -8
  59. package/dist/{vue-ui-quick-chart-Du7852v9.js → vue-ui-quick-chart-BpHyBn7x.js} +115 -113
  60. package/dist/{vue-ui-radar-kEKg-NL7.js → vue-ui-radar-DP3ErImt.js} +8 -8
  61. package/dist/{vue-ui-rating-7yatRVbx.js → vue-ui-rating-DCL2xb9w.js} +2 -2
  62. package/dist/{vue-ui-relation-circle-_1W7NdYE.js → vue-ui-relation-circle-COt79-GJ.js} +7 -7
  63. package/dist/{vue-ui-ridgeline-BSAVhIDE.js → vue-ui-ridgeline-Dcrii6_n.js} +8 -8
  64. package/dist/{vue-ui-rings-jK9EjGrJ.js → vue-ui-rings-CiDYRQIj.js} +8 -8
  65. package/dist/{vue-ui-scatter-BPthb9-8.js → vue-ui-scatter-D8bk6KJw.js} +8 -8
  66. package/dist/{vue-ui-skeleton-VW0h-sRm.js → vue-ui-skeleton-DZN6Q2RW.js} +3 -3
  67. package/dist/{vue-ui-smiley-DLOiHo-v.js → vue-ui-smiley-a9aOACpQ.js} +2 -2
  68. package/dist/{vue-ui-spark-trend-BIYEAoE_.js → vue-ui-spark-trend-D2ySMA8w.js} +3 -3
  69. package/dist/{vue-ui-sparkbar-BfTF_hnD.js → vue-ui-sparkbar-CPKbBS4x.js} +3 -3
  70. package/dist/{vue-ui-sparkgauge-chrEmdPw.js → vue-ui-sparkgauge-YgppX8cI.js} +3 -3
  71. package/dist/{vue-ui-sparkhistogram-Dr0-iYVk.js → vue-ui-sparkhistogram-BT-Pb999.js} +4 -4
  72. package/dist/{vue-ui-sparkline-B-R7lTuD.js → vue-ui-sparkline-DE_nT4bC.js} +3 -3
  73. package/dist/{vue-ui-sparkstackbar-CGTlNpJY.js → vue-ui-sparkstackbar-3MV7U6sR.js} +3 -3
  74. package/dist/{vue-ui-stackbar-Dl2ks6xV.js → vue-ui-stackbar-wfRiGYFu.js} +54 -52
  75. package/dist/{vue-ui-strip-plot-DyCzm2FQ.js → vue-ui-strip-plot-BYDBbI0O.js} +7 -7
  76. package/dist/{vue-ui-table-heatmap-Cy56aBvN.js → vue-ui-table-heatmap-hOIbFD6k.js} +5 -5
  77. package/dist/{vue-ui-table-sparkline-BYoEkczS.js → vue-ui-table-sparkline-DNnOTTBh.js} +4 -4
  78. package/dist/{vue-ui-table-CMxWcytp.js → vue-ui-table-xG0KcrLD.js} +4 -4
  79. package/dist/{vue-ui-thermometer-B7wec2mE.js → vue-ui-thermometer-C8kZDjnk.js} +7 -7
  80. package/dist/{vue-ui-timer-CE61Pm8_.js → vue-ui-timer-BZxcYfbP.js} +5 -5
  81. package/dist/{vue-ui-tiremarks-BKfbwgE0.js → vue-ui-tiremarks-D5mpDWUN.js} +6 -6
  82. package/dist/{vue-ui-treemap-CDgTxZQG.js → vue-ui-treemap-RPa_dvoO.js} +8 -8
  83. package/dist/{vue-ui-vertical-bar-BDU24Fw1.js → vue-ui-vertical-bar-OwkTXcnm.js} +9 -9
  84. package/dist/{vue-ui-waffle-hdT1HxNy.js → vue-ui-waffle-DveHx6kc.js} +8 -8
  85. package/dist/{vue-ui-wheel-CB5VCBnY.js → vue-ui-wheel-Cyk4SL64.js} +6 -6
  86. package/dist/{vue-ui-word-cloud-BGmRwhgL.js → vue-ui-word-cloud-BNmS-vjj.js} +6 -6
  87. package/dist/{vue-ui-world-Dgo59nPi.js → vue-ui-world-BhB1K_eL.js} +6 -6
  88. package/dist/vue-ui-xy-CfuSMzgb.js +4510 -0
  89. package/dist/{vue-ui-xy-canvas--NNe3yOn.js → vue-ui-xy-canvas-BFgpcPZ3.js} +132 -130
  90. package/package.json +1 -1
  91. package/dist/Slicer-C7BMIgYA.js +0 -972
  92. package/dist/vue-ui-xy-C9oTa60U.js +0 -4530
@@ -1,17 +1,17 @@
1
- import { defineAsyncComponent as ee, ref as c, computed as L, useSlots as ea, onMounted as dl, watch as D, nextTick as hl, shallowRef as Me, onBeforeUnmount as la, createElementBlock as de, openBlock as S, unref as p, normalizeClass as aa, normalizeStyle as le, createCommentVNode as H, createElementVNode as Y, createBlock as F, createSlots as yl, withCtx as b, renderSlot as k, normalizeProps as V, guardReactiveProps as G, createVNode as fl, Teleport as ta, toDisplayString as Oe, resolveDynamicComponent as oa, mergeProps as ua, createTextVNode as gl } from "vue";
2
- import { u as ra, c as sa, a as na, p as Z, b as ia, C as xe, d as va, D as Re, k as ae, i as te, e as pl, a6 as ca, G as da, ag as ha, o as ya, f as fa, y as bl, v as ga, w as pa, z as ba, s as he, l as ma } from "./index-CdN9MkL7.js";
3
- import { d as xa, t as La, u as ka, c as Ca, a as ml, l as C, r as De, b as P, p as xl } from "./useResponsive-DfdjqQps.js";
4
- import { u as Ll } from "./useNestedProp-oNhYagej.js";
5
- import { u as wa } from "./usePrinter-CLVErK_G.js";
1
+ import { defineAsyncComponent as ee, ref as c, computed as L, useSlots as ea, onMounted as dl, watch as D, nextTick as hl, shallowRef as Me, onBeforeUnmount as la, createElementBlock as de, openBlock as S, unref as p, normalizeClass as aa, normalizeStyle as le, createCommentVNode as H, createElementVNode as Y, createBlock as F, createSlots as yl, withCtx as m, renderSlot as k, normalizeProps as V, guardReactiveProps as G, createVNode as fl, Teleport as ta, toDisplayString as Oe, resolveDynamicComponent as oa, mergeProps as ua, createTextVNode as gl } from "vue";
2
+ import { u as sa, c as ra, a as na, p as Z, b as ia, C as xe, d as va, D as Re, k as ae, i as te, e as pl, a7 as ca, G as da, ah as ha, o as ya, f as fa, y as ml, v as ga, w as pa, z as ma, s as he, l as ba } from "./index-BS0jZusk.js";
3
+ import { d as xa, t as La, u as ka, c as Ca, a as bl, l as C, r as De, b as P, p as xl } from "./useResponsive-DfdjqQps.js";
4
+ import { u as Ll } from "./useNestedProp-BMfS1Wmb.js";
5
+ import { u as wa } from "./usePrinter-CsKq2kgt.js";
6
6
  import { u as Sa } from "./useUserOptionState-BIvW1Kz7.js";
7
7
  import { u as za } from "./useChartAccessibility-9icAAmYg.js";
8
- import $a from "./Legend-CC3LegoH.js";
9
- import Ta from "./Title-BKsDkvCV.js";
10
- import { S as Ia } from "./Slicer-C7BMIgYA.js";
11
- import Ma from "./vue-ui-accordion-BoGANFKn.js";
8
+ import $a from "./Legend-C3Kvktr3.js";
9
+ import Ta from "./Title-DRhv9bCG.js";
10
+ import { S as Ia } from "./Slicer-BMgEyKMg.js";
11
+ import Ma from "./vue-ui-accordion-CEzzDwYU.js";
12
12
  import { u as Oa } from "./useTimeLabels-BGFjWgrv.js";
13
- import Ra from "./img-CVbbqgGH.js";
14
- import Da from "./BaseIcon-CBGEVS_a.js";
13
+ import Ra from "./img-CRdZ0dzP.js";
14
+ import Da from "./BaseIcon-Dj9csjZa.js";
15
15
  import { _ as Fa } from "./_plugin-vue_export-helper-CHgC5LLL.js";
16
16
  const Pa = ["id"], Ea = ["id"], Aa = ["id"], Na = ["onClick"], Ha = {
17
17
  key: 3,
@@ -34,7 +34,7 @@ const Pa = ["id"], Ea = ["id"], Aa = ["id"], Na = ["onClick"], Ha = {
34
34
  },
35
35
  emits: ["selectLegend"],
36
36
  setup(Fe, { expose: kl, emit: Cl }) {
37
- const wl = ee(() => import("./DataTable-DQRJv8EE.js")), Sl = ee(() => import("./NonSvgPenAndPaper-CmIOGkib.js")), zl = ee(() => import("./vue-ui-skeleton-VW0h-sRm.js")), $l = ee(() => import("./Tooltip-BA5KTZ2e.js")), Tl = ee(() => import("./UserOptions-usqWO4wC.js")), Il = ee(() => import("./BaseDraggableDialog-R8VpARJu.js")), { vue_ui_xy_canvas: Ml } = ra(), g = Fe, _ = c(sa()), I = c(null), oe = c(null), n = c(null), y = c(1), E = c(1), ye = c(!1), d = c(null), fe = c(""), Pe = c(null), $ = c([]), j = c(1), B = c(!0), q = c(!0), Le = c(null), Ee = c(0), Ae = c(0), ue = c(!1), Ne = c(null), He = c(null), Ye = c(null), _e = c(null), ke = c(0), Ce = c(0), we = c(0), M = c(null), Be = c(!1), re = c(null), Se = c(null), ge = L(() => !!g.dataset && g.dataset.length), Ol = Cl, Rl = ea();
37
+ const wl = ee(() => import("./DataTable-DAc2s9Wi.js")), Sl = ee(() => import("./NonSvgPenAndPaper-yA6HCA0i.js")), zl = ee(() => import("./vue-ui-skeleton-DZN6Q2RW.js")), $l = ee(() => import("./Tooltip-B46L8jx5.js")), Tl = ee(() => import("./UserOptions-CmhyvH7T.js")), Il = ee(() => import("./BaseDraggableDialog-TS2ANP8W.js")), { vue_ui_xy_canvas: Ml } = sa(), g = Fe, _ = c(ra()), I = c(null), oe = c(null), n = c(null), y = c(1), E = c(1), ye = c(!1), d = c(null), fe = c(""), Pe = c(null), $ = c([]), j = c(1), B = c(!0), q = c(!0), Le = c(null), Ee = c(0), Ae = c(0), ue = c(!1), Ne = c(null), He = c(null), Ye = c(null), _e = c(null), ke = c(0), Ce = c(0), we = c(0), M = c(null), Be = c(!1), se = c(null), Se = c(null), ge = L(() => !!g.dataset && g.dataset.length), Ol = Cl, Rl = ea();
38
38
  dl(() => {
39
39
  Rl["chart-background"] && console.warn("VueUiXyCanvas does not support the #chart-background slot.");
40
40
  });
@@ -57,7 +57,7 @@ const Pa = ["id"], Ea = ["id"], Aa = ["id"], Na = ["onClick"], Ha = {
57
57
  } : a = e, g.config && xe(g.config, "style.chart.scale.min") ? a.style.chart.scale.min = g.config.style.chart.scale.min : a.style.chart.scale.min = null, g.config && xe(g.config, "style.chart.scale.max") ? a.style.chart.scale.max = g.config.style.chart.scale.max : a.style.chart.scale.max = null, g.config && xe(g.config, "style.chart.zoom.startIndex") ? a.style.chart.zoom.startIndex = g.config.style.chart.zoom.startIndex : a.style.chart.zoom.startIndex = null, g.config && xe(g.config, "style.chart.zoom.endIndex") ? a.style.chart.zoom.endIndex = g.config.style.chart.zoom.endIndex : a.style.chart.zoom.endIndex = null, a;
58
58
  }
59
59
  D(() => g.config, (e) => {
60
- l.value = Xe(), ze.value = !l.value.userOptions.showOnChartHover, $e(), ke.value += 1, Ce.value += 1, we.value += 1, r.value.showTable = l.value.table.show, r.value.showDataLabels = l.value.style.chart.dataLabels.show, r.value.stacked = l.value.style.chart.stacked, r.value.showTooltip = l.value.style.chart.tooltip.show;
60
+ l.value = Xe(), ze.value = !l.value.userOptions.showOnChartHover, $e(), ke.value += 1, Ce.value += 1, we.value += 1, s.value.showTable = l.value.table.show, s.value.showDataLabels = l.value.style.chart.dataLabels.show, s.value.stacked = l.value.style.chart.stacked, s.value.showTooltip = l.value.style.chart.tooltip.show;
61
61
  }, { deep: !0 }), D(() => g.dataset, () => {
62
62
  $e(), ke.value += 1, Ce.value += 1, we.value += 1;
63
63
  }, { deep: !0 });
@@ -65,7 +65,7 @@ const Pa = ["id"], Ea = ["id"], Aa = ["id"], Na = ["onClick"], Ha = {
65
65
  elementId: `xy_canvas_${_.value}`,
66
66
  fileName: l.value.style.chart.title.text || "vue-ui-xy-canvas",
67
67
  options: l.value.userOptions.print
68
- }), r = c({
68
+ }), s = c({
69
69
  showTable: l.value.table.show,
70
70
  showDataLabels: l.value.style.chart.dataLabels.show,
71
71
  stacked: l.value.style.chart.stacked,
@@ -91,7 +91,7 @@ const Pa = ["id"], Ea = ["id"], Aa = ["id"], Na = ["onClick"], Ha = {
91
91
  function Qe(e, a) {
92
92
  return e / a;
93
93
  }
94
- function Dl({ hasAutoScale: e, series: a, min: o, max: s, scale: i, yOffset: x, individualHeight: v, stackIndex: f = null }) {
94
+ function Dl({ hasAutoScale: e, series: a, min: o, max: r, scale: i, yOffset: x, individualHeight: v, stackIndex: f = null }) {
95
95
  return a.map((W, z) => {
96
96
  const N = i.min < 0 ? Math.abs(i.min) : 0, X = Qe(W + N, N + i.max);
97
97
  let ve, ce;
@@ -104,14 +104,14 @@ const Pa = ["id"], Ea = ["id"], Aa = ["id"], Na = ["onClick"], Ha = {
104
104
  };
105
105
  });
106
106
  }
107
- const m = L(() => {
108
- const e = l.value.style.chart.scale.min !== null ? l.value.style.chart.scale.min : Math.min(...J.value.filter((v, f) => !$.value.includes(v.absoluteIndex)).flatMap((v) => v.series.slice(u.value.start, u.value.end))), a = l.value.style.chart.scale.max !== null ? l.value.style.chart.scale.max : Math.max(...J.value.filter((v, f) => !$.value.includes(v.absoluteIndex)).flatMap((v) => v.series.slice(u.value.start, u.value.end))), o = Re(e < 0 ? e : 0, a === e ? e + 1 < 0 ? 0 : e + 1 : a < 0 ? 0 : a, l.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)), x = o.ticks.map((v) => ({
109
- y: t.value.bottom - t.value.height * ((v + s) / (o.max + s)),
107
+ const b = L(() => {
108
+ const e = l.value.style.chart.scale.min !== null ? l.value.style.chart.scale.min : Math.min(...J.value.filter((v, f) => !$.value.includes(v.absoluteIndex)).flatMap((v) => v.series.slice(u.value.start, u.value.end))), a = l.value.style.chart.scale.max !== null ? l.value.style.chart.scale.max : Math.max(...J.value.filter((v, f) => !$.value.includes(v.absoluteIndex)).flatMap((v) => v.series.slice(u.value.start, u.value.end))), o = Re(e < 0 ? e : 0, a === e ? e + 1 < 0 ? 0 : e + 1 : a < 0 ? 0 : a, l.value.style.chart.scale.ticks), r = o.min < 0 ? Math.abs(o.min) : 0, i = t.value.bottom - t.value.height * (r / (o.max + r)), x = o.ticks.map((v) => ({
109
+ y: t.value.bottom - t.value.height * ((v + r) / (o.max + r)),
110
110
  x: t.value.left - 8,
111
111
  value: v
112
112
  }));
113
113
  return {
114
- absoluteMin: s,
114
+ absoluteMin: r,
115
115
  max: a,
116
116
  min: e,
117
117
  scale: o,
@@ -152,36 +152,36 @@ const Pa = ["id"], Ea = ["id"], Aa = ["id"], Na = ["onClick"], Ha = {
152
152
  ...e,
153
153
  series: e.series.slice(u.value.start, u.value.end)
154
154
  })).map((e, a) => {
155
- 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;
156
- o === s && (o = o >= 0 ? s - 1 : o, s = s >= 0 ? s : o + 1), e.series.filter((R) => ![null, void 0].includes(R)).map((R) => (R - o) / (s - o));
155
+ let o = [null, void 0].includes(e.scaleMin) ? Math.min(...e.series) || 0 : e.scaleMin, r = [null, void 0].includes(e.scaleMax) ? Math.max(...e.series) || 1 : e.scaleMax;
156
+ o === r && (o = o >= 0 ? r - 1 : o, r = r >= 0 ? r : o + 1), e.series.filter((R) => ![null, void 0].includes(R)).map((R) => (R - o) / (r - o));
157
157
  const i = {
158
158
  valueMin: o,
159
- valueMax: s
159
+ valueMax: r
160
160
  }, x = e.scaleSteps || l.value.style.chart.scale.ticks;
161
161
  let v;
162
162
  e.autoScaling ? v = Re(i.valueMin, i.valueMax, x) : v = Re(i.valueMin < 0 ? i.valueMin : 0, i.valueMax <= 0 ? 0 : i.valueMax, x);
163
- const f = r.value.stacked ? t.value.height * (1 - e.cumulatedStackRatio) : 0, W = r.value.stacked ? t.value.height / l.value.style.chart.stackGap : 0, z = r.value.stacked ? t.value.height * e.stackRatio - W : t.value.height, N = v.min < 0 ? Math.abs(v.min) : 0;
163
+ const f = s.value.stacked ? t.value.height * (1 - e.cumulatedStackRatio) : 0, W = s.value.stacked ? t.value.height / l.value.style.chart.stackGap : 0, z = s.value.stacked ? t.value.height * e.stackRatio - W : t.value.height, N = v.min < 0 ? Math.abs(v.min) : 0;
164
164
  let X;
165
- e.autoScaling && r.value.stacked && s <= 0 ? X = t.value.bottom - f - z : X = t.value.bottom - f - z * (N / (v.max + N));
165
+ e.autoScaling && s.value.stacked && r <= 0 ? X = t.value.bottom - f - z : X = t.value.bottom - f - z * (N / (v.max + N));
166
166
  const ve = v.ticks.map((R, Ql) => ({
167
167
  y: t.value.bottom - f - z * (Ql / (v.ticks.length - 1)),
168
168
  x: t.value.left - 8,
169
169
  value: R
170
170
  })), ce = Dl({
171
- hasAutoScale: r.value.stacked && e.autoScaling,
171
+ hasAutoScale: s.value.stacked && e.autoScaling,
172
172
  series: e.series,
173
- min: r.value.stacked ? o : m.value.min,
174
- max: r.value.stacked ? s : m.value.max,
175
- scale: r.value.stacked ? v : m.value.scale,
173
+ min: s.value.stacked ? o : b.value.min,
174
+ max: s.value.stacked ? r : b.value.max,
175
+ scale: s.value.stacked ? v : b.value.scale,
176
176
  yOffset: f,
177
177
  individualHeight: z,
178
- stackIndex: r.value.stacked ? a : null
178
+ stackIndex: s.value.stacked ? a : null
179
179
  });
180
180
  return {
181
181
  ...e,
182
182
  coordinatesLine: ce,
183
183
  min: o,
184
- max: s,
184
+ max: r,
185
185
  localScale: v,
186
186
  localZero: X,
187
187
  localMin: N,
@@ -199,8 +199,8 @@ const Pa = ["id"], Ea = ["id"], Aa = ["id"], Na = ["onClick"], Ha = {
199
199
  const ll = c(null);
200
200
  async function al() {
201
201
  await hl(), await hl();
202
- const { startIndex: e, endIndex: a } = l.value.style.chart.zoom, o = ll.value, s = T.value;
203
- u.value = { start: 0, end: s }, (e != null || a != null) && o ? (e != null ? o.setStartValue(e) : (u.value.start = 0, o.setStartValue(0)), a != null ? o.setEndValue(Pl(a + 1)) : (u.value.end = s, o.setEndValue(s))) : (u.value = { start: 0, end: s }, Ee.value += 1);
202
+ const { startIndex: e, endIndex: a } = l.value.style.chart.zoom, o = ll.value, r = T.value;
203
+ u.value = { start: 0, end: r }, (e != null || a != null) && o ? (e != null ? o.setStartValue(e) : (u.value.start = 0, o.setStartValue(0)), a != null ? o.setEndValue(Pl(a + 1)) : (u.value.end = r, o.setEndValue(r))) : (u.value = { start: 0, end: r }, Ee.value += 1);
204
204
  }
205
205
  function Pl(e) {
206
206
  const a = T.value;
@@ -211,10 +211,10 @@ const Pa = ["id"], Ea = ["id"], Aa = ["id"], Na = ["onClick"], Ha = {
211
211
  if (!O.value)
212
212
  return;
213
213
  const e = oe.value.offsetWidth, a = oe.value.offsetHeight;
214
- O.value.width = e * j.value * 2, O.value.height = a * j.value * 2, y.value = e * j.value * 2, E.value = a * j.value * 2, n.value.scale(j.value, j.value), se();
214
+ O.value.width = e * j.value * 2, O.value.height = a * j.value * 2, y.value = e * j.value * 2, E.value = a * j.value * 2, n.value.scale(j.value, j.value), re();
215
215
  }
216
216
  function Nl() {
217
- if (n.value.clearRect(0, 0, 1e4, 1e4), n.value.fillStyle = l.value.style.chart.backgroundColor, n.value.fillRect(0, 0, t.value.canvasWidth, t.value.canvasHeight), r.value.stacked)
217
+ if (n.value.clearRect(0, 0, 1e4, 1e4), n.value.fillStyle = l.value.style.chart.backgroundColor, n.value.fillRect(0, 0, t.value.canvasWidth, t.value.canvasHeight), s.value.stacked)
218
218
  l.value.style.chart.grid.y.verticalLines.show && u.value.end - u.value.start < l.value.style.chart.grid.y.verticalLines.hideUnderXLength ? h.value.forEach((e) => {
219
219
  for (let a = 0; a < u.value.end - u.value.start + 1; a += 1)
220
220
  C(
@@ -351,21 +351,21 @@ const Pa = ["id"], Ea = ["id"], Aa = ["id"], Na = ["onClick"], Ha = {
351
351
  color: l.value.style.chart.grid.y.verticalLines.color
352
352
  }
353
353
  );
354
- l.value.style.chart.grid.x.horizontalLines.show && (l.value.style.chart.grid.x.horizontalLines.alternate ? m.value.yLabels.forEach((e, a) => {
355
- a < m.value.yLabels.length - 1 && De(
354
+ l.value.style.chart.grid.x.horizontalLines.show && (l.value.style.chart.grid.x.horizontalLines.alternate ? b.value.yLabels.forEach((e, a) => {
355
+ a < b.value.yLabels.length - 1 && De(
356
356
  n.value,
357
357
  [
358
358
  { x: t.value.left, y: e.y },
359
359
  { x: t.value.right, y: e.y },
360
- { x: t.value.right, y: m.value.yLabels[a + 1].y },
361
- { x: t.value.left, y: m.value.yLabels[a + 1].y }
360
+ { x: t.value.right, y: b.value.yLabels[a + 1].y },
361
+ { x: t.value.left, y: b.value.yLabels[a + 1].y }
362
362
  ],
363
363
  {
364
364
  fillColor: a % 2 === 0 ? "transparent" : he(l.value.style.chart.grid.x.horizontalLines.color, l.value.style.chart.grid.x.horizontalLines.opacity),
365
365
  strokeColor: "transparent"
366
366
  }
367
367
  );
368
- }) : m.value.yLabels.forEach((e) => {
368
+ }) : b.value.yLabels.forEach((e) => {
369
369
  C(
370
370
  n.value,
371
371
  [
@@ -399,8 +399,8 @@ const Pa = ["id"], Ea = ["id"], Aa = ["id"], Na = ["onClick"], Ha = {
399
399
  ), l.value.style.chart.grid.zeroLine.show && C(
400
400
  n.value,
401
401
  [
402
- { x: t.value.left, y: m.value.zero },
403
- { x: t.value.right, y: m.value.zero }
402
+ { x: t.value.left, y: b.value.zero },
403
+ { x: t.value.right, y: b.value.zero }
404
404
  ],
405
405
  {
406
406
  color: l.value.style.chart.grid.zeroLine.color,
@@ -434,7 +434,7 @@ const Pa = ["id"], Ea = ["id"], Aa = ["id"], Na = ["onClick"], Ha = {
434
434
  function Hl(e) {
435
435
  for (let a = 0; a < e.coordinatesLine.length; a += 1) {
436
436
  const o = (d.value === a ? y.value / 150 : l.value.style.chart.line.plots.show ? y.value / 200 : 0) * l.value.style.chart.line.plots.radiusRatio;
437
- ml(
437
+ bl(
438
438
  n.value,
439
439
  { x: e.coordinatesLine[a].x, y: e.coordinatesLine[a].y },
440
440
  o,
@@ -471,7 +471,7 @@ const Pa = ["id"], Ea = ["id"], Aa = ["id"], Na = ["onClick"], Ha = {
471
471
  });
472
472
  }
473
473
  function _l() {
474
- l.value.style.chart.grid.y.axisLabels.show && (r.value.stacked ? h.value.forEach((e) => {
474
+ l.value.style.chart.grid.y.axisLabels.show && (s.value.stacked ? h.value.forEach((e) => {
475
475
  e.localYLabels.forEach((a, o) => {
476
476
  P(
477
477
  n.value,
@@ -496,7 +496,7 @@ const Pa = ["id"], Ea = ["id"], Aa = ["id"], Na = ["onClick"], Ha = {
496
496
  }
497
497
  );
498
498
  });
499
- }) : m.value.yLabels.forEach((e, a) => {
499
+ }) : b.value.yLabels.forEach((e, a) => {
500
500
  P(
501
501
  n.value,
502
502
  ae(
@@ -602,19 +602,19 @@ const Pa = ["id"], Ea = ["id"], Aa = ["id"], Na = ["onClick"], Ha = {
602
602
  n.value,
603
603
  [
604
604
  {
605
- x: t.value.left + t.value.slot * o + t.value.slot / 10 + (r.value.stacked ? 0 : t.value.slot / w.value.length * a - (a === 0 ? 0 : t.value.slot / (5 * w.value.length) * a)),
606
- y: r.value.stacked ? e.localZero : m.value.zero
605
+ x: t.value.left + t.value.slot * o + t.value.slot / 10 + (s.value.stacked ? 0 : t.value.slot / w.value.length * a - (a === 0 ? 0 : t.value.slot / (5 * w.value.length) * a)),
606
+ y: s.value.stacked ? e.localZero : b.value.zero
607
607
  },
608
608
  {
609
- x: t.value.left + t.value.slot * o + t.value.slot / 10 + (r.value.stacked ? 0 : t.value.slot / w.value.length * a - (a === 0 ? 0 : t.value.slot / (5 * w.value.length) * a)) + t.value.slot * 0.8 / (r.value.stacked ? 1 : w.value.length),
610
- y: r.value.stacked ? e.localZero : m.value.zero
609
+ x: t.value.left + t.value.slot * o + t.value.slot / 10 + (s.value.stacked ? 0 : t.value.slot / w.value.length * a - (a === 0 ? 0 : t.value.slot / (5 * w.value.length) * a)) + t.value.slot * 0.8 / (s.value.stacked ? 1 : w.value.length),
610
+ y: s.value.stacked ? e.localZero : b.value.zero
611
611
  },
612
612
  {
613
- x: t.value.left + t.value.slot * o + t.value.slot / 10 + (r.value.stacked ? 0 : t.value.slot / w.value.length * a - (a === 0 ? 0 : t.value.slot / (5 * w.value.length) * a)) + t.value.slot * 0.8 / (r.value.stacked ? 1 : w.value.length),
613
+ x: t.value.left + t.value.slot * o + t.value.slot / 10 + (s.value.stacked ? 0 : t.value.slot / w.value.length * a - (a === 0 ? 0 : t.value.slot / (5 * w.value.length) * a)) + t.value.slot * 0.8 / (s.value.stacked ? 1 : w.value.length),
614
614
  y: e.coordinatesLine[o].y
615
615
  },
616
616
  {
617
- x: t.value.left + t.value.slot * o + t.value.slot / 10 + (r.value.stacked ? 0 : t.value.slot / w.value.length * a - (a === 0 ? 0 : t.value.slot / (5 * w.value.length) * a)),
617
+ x: t.value.left + t.value.slot * o + t.value.slot / 10 + (s.value.stacked ? 0 : t.value.slot / w.value.length * a - (a === 0 ? 0 : t.value.slot / (5 * w.value.length) * a)),
618
618
  y: e.coordinatesLine[o].y
619
619
  }
620
620
  ],
@@ -628,15 +628,15 @@ const Pa = ["id"], Ea = ["id"], Aa = ["id"], Na = ["onClick"], Ha = {
628
628
  },
629
629
  end: {
630
630
  x: e.coordinatesLine[o].x,
631
- y: r.value.stacked ? e.localZero : m.value.zero
631
+ y: s.value.stacked ? e.localZero : b.value.zero
632
632
  },
633
633
  stops: [
634
634
  { offset: 0, color: e.color },
635
- { offset: 1, color: l.value.style.chart.bar.gradient.show ? ma(e.color, 0.5) : e.color }
635
+ { offset: 1, color: l.value.style.chart.bar.gradient.show ? ba(e.color, 0.5) : e.color }
636
636
  ]
637
637
  }
638
638
  }
639
- ), r.value.showDataLabels && [!0, void 0].includes(e.dataLabels) && P(
639
+ ), s.value.showDataLabels && [!0, void 0].includes(e.dataLabels) && P(
640
640
  n.value,
641
641
  ae(
642
642
  l.value.style.chart.dataLabels.formatter,
@@ -649,8 +649,8 @@ const Pa = ["id"], Ea = ["id"], Aa = ["id"], Na = ["onClick"], Ha = {
649
649
  }),
650
650
  { datapoint: e.coordinatesLine[o], seriesIndex: o }
651
651
  ),
652
- t.value.left + t.value.slot * o + t.value.slot / 10 + (r.value.stacked ? 0 : t.value.slot / w.value.length * a - (a === 0 ? 0 : t.value.slot / (5 * w.value.length) * a)) + t.value.slot * 0.4 / (r.value.stacked ? 1 : w.value.length),
653
- (e.coordinatesLine[o].value < 0 ? r.value.stacked ? e.localZero : m.value.zero : e.coordinatesLine[o].y) + l.value.style.chart.dataLabels.offsetY,
652
+ t.value.left + t.value.slot * o + t.value.slot / 10 + (s.value.stacked ? 0 : t.value.slot / w.value.length * a - (a === 0 ? 0 : t.value.slot / (5 * w.value.length) * a)) + t.value.slot * 0.4 / (s.value.stacked ? 1 : w.value.length),
653
+ (e.coordinatesLine[o].value < 0 ? s.value.stacked ? e.localZero : b.value.zero : e.coordinatesLine[o].y) + l.value.style.chart.dataLabels.offsetY,
654
654
  {
655
655
  align: "center",
656
656
  font: `${Math.round(y.value / 40 * l.value.style.chart.dataLabels.fontSizeRatio)}px ${l.value.style.fontFamily}`,
@@ -662,7 +662,7 @@ const Pa = ["id"], Ea = ["id"], Aa = ["id"], Na = ["onClick"], Ha = {
662
662
  });
663
663
  }
664
664
  function Vl(e) {
665
- e.useArea ? r.value.stacked ? xl(
665
+ e.useArea ? s.value.stacked ? xl(
666
666
  n.value,
667
667
  [{ x: e.coordinatesLine[0].x, y: e.localZero }, ...e.coordinatesLine, { x: e.coordinatesLine.at(-1).x, y: e.localZero }],
668
668
  {
@@ -671,7 +671,7 @@ const Pa = ["id"], Ea = ["id"], Aa = ["id"], Na = ["onClick"], Ha = {
671
671
  }
672
672
  ) : xl(
673
673
  n.value,
674
- [{ x: e.coordinatesLine[0].x, y: m.value.zero }, ...e.coordinatesLine, { x: e.coordinatesLine.at(-1).x, y: m.value.zero }],
674
+ [{ x: e.coordinatesLine[0].x, y: b.value.zero }, ...e.coordinatesLine, { x: e.coordinatesLine.at(-1).x, y: b.value.zero }],
675
675
  {
676
676
  fillColor: he(e.color, l.value.style.chart.area.opacity),
677
677
  strokeColor: "transparent"
@@ -696,13 +696,13 @@ const Pa = ["id"], Ea = ["id"], Aa = ["id"], Na = ["onClick"], Ha = {
696
696
  );
697
697
  });
698
698
  }
699
- function se() {
700
- Nl(), B.value ? (d.value !== null && l.value.style.chart.selector.show && tl(), Xl(), r.value.stacked && l.value.style.chart.grid.x.showAxis && Gl(), El.value.forEach((e) => {
701
- (e.type === "line" || !e.type) && Vl(e), q.value && (Hl(e), r.value.showDataLabels && [!0, void 0].includes(e.dataLabels) && Bl(e));
699
+ function re() {
700
+ Nl(), B.value ? (d.value !== null && l.value.style.chart.selector.show && tl(), Xl(), s.value.stacked && l.value.style.chart.grid.x.showAxis && Gl(), El.value.forEach((e) => {
701
+ (e.type === "line" || !e.type) && Vl(e), q.value && (Hl(e), s.value.showDataLabels && [!0, void 0].includes(e.dataLabels) && Bl(e));
702
702
  }), Le.value = Ca(O.value)) : (Le.value && (n.value.clearRect(0, 0, 1e4, 1e4), n.value.drawImage(Le.value, 0, 0)), d.value !== null && l.value.style.chart.selector.show && tl(), d.value !== null && h.value.forEach((e) => {
703
703
  if (e.type === "line" || !e.type || e.type === "plot") {
704
704
  if (!e.coordinatesLine[d.value]) return;
705
- e.coordinatesLine[d.value].x !== void 0 && e.coordinatesLine[d.value].y !== void 0 && ml(
705
+ e.coordinatesLine[d.value].x !== void 0 && e.coordinatesLine[d.value].y !== void 0 && bl(
706
706
  n.value,
707
707
  {
708
708
  x: e.coordinatesLine[d.value].x,
@@ -726,16 +726,16 @@ const Pa = ["id"], Ea = ["id"], Aa = ["id"], Na = ["onClick"], Ha = {
726
726
  return { y: a, value: o };
727
727
  }
728
728
  function Zl(e) {
729
- const { left: a, top: o } = O.value.getBoundingClientRect(), s = e.clientX - a;
730
- 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
+ const { left: a, top: o } = O.value.getBoundingClientRect(), r = e.clientX - a;
730
+ if (M.value = (e.clientY - o) * 2, (M.value < t.value.top || M.value > t.value.bottom) && (M.value = null), r * 2 < t.value.left || r * 2 > t.value.right) {
731
731
  ye.value = !1, d.value = null;
732
732
  return;
733
733
  }
734
- const i = s * 2 - t.value.left;
734
+ const i = r * 2 - t.value.left;
735
735
  if (d.value = Math.floor(i / t.value.slot), ye.value = !0, !q.value) return;
736
736
  let x = "";
737
737
  const v = l.value.style.chart.tooltip.customFormat;
738
- bl(v) && ba(() => v({
738
+ ml(v) && ma(() => v({
739
739
  seriesIndex: d.value,
740
740
  datapoint: h.value.map((f) => ({
741
741
  shape: f.shape || null,
@@ -762,18 +762,18 @@ const Pa = ["id"], Ea = ["id"], Aa = ["id"], Na = ["onClick"], Ha = {
762
762
  D(() => d.value, (e) => {
763
763
  pe();
764
764
  }), D(() => u.value, (e) => {
765
- B.value = !0, se();
765
+ B.value = !0, re();
766
766
  }, {
767
767
  deep: !0
768
- }), D(() => r.value.showDataLabels, (e) => {
769
- B.value = !0, se();
768
+ }), D(() => s.value.showDataLabels, (e) => {
769
+ B.value = !0, re();
770
770
  }), D(() => M.value, (e) => {
771
- e && se();
772
- }), D(() => r.value.stacked, (e) => {
771
+ e && re();
772
+ }), D(() => s.value.stacked, (e) => {
773
773
  B.value = !0, q.value = !0, pe();
774
774
  });
775
775
  function jl() {
776
- ye.value = !1, d.value = null, fe.value = "", M.value = null, se();
776
+ ye.value = !1, d.value = null, fe.value = "", M.value = null, re();
777
777
  }
778
778
  const A = Me(null), K = Me(null), Q = Me(null);
779
779
  dl(() => {
@@ -829,7 +829,7 @@ const Pa = ["id"], Ea = ["id"], Aa = ["id"], Na = ["onClick"], Ha = {
829
829
  fontSize: l.value.style.chart.legend.fontSize,
830
830
  paddingBottom: 12,
831
831
  fontWeight: l.value.style.chart.legend.bold ? "bold" : ""
832
- })), be = L(() => {
832
+ })), me = L(() => {
833
833
  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>');
834
834
  let a = [];
835
835
  for (let i = 0; i < T.value; i += 1) {
@@ -848,9 +848,9 @@ const Pa = ["id"], Ea = ["id"], Aa = ["id"], Na = ["onClick"], Ha = {
848
848
  outline: l.value.table.td.outline
849
849
  },
850
850
  breakpoint: l.value.table.responsiveBreakpoint
851
- }, s = [l.value.table.columnNames.period].concat(h.value.map((i) => i.name)).concat(l.value.table.columnNames.total);
852
- return { head: e, body: a.slice(0, u.value.end - u.value.start), config: o, colNames: s };
853
- }), rl = L(() => {
851
+ }, r = [l.value.table.columnNames.period].concat(h.value.map((i) => i.name)).concat(l.value.table.columnNames.total);
852
+ return { head: e, body: a.slice(0, u.value.end - u.value.start), config: o, colNames: r };
853
+ }), sl = L(() => {
854
854
  if (h.value.length === 0) return { head: [], body: [], config: {}, columnNames: [] };
855
855
  const e = h.value.map((o) => ({
856
856
  label: o.name,
@@ -858,50 +858,50 @@ const Pa = ["id"], Ea = ["id"], Aa = ["id"], Na = ["onClick"], Ha = {
858
858
  type: o.type
859
859
  })), a = [];
860
860
  for (let o = u.value.start; o < u.value.end; o += 1) {
861
- const s = [l.value.style.chart.grid.y.timeLabels.values[o] ? U.value[o].text : o + 1];
861
+ const r = [l.value.style.chart.grid.y.timeLabels.values[o] ? U.value[o].text : o + 1];
862
862
  h.value.forEach((i) => {
863
- s.push(Number((i.series[o] || 0).toFixed(l.value.table.rounding)));
864
- }), a.push(s);
863
+ r.push(Number((i.series[o] || 0).toFixed(l.value.table.rounding)));
864
+ }), a.push(r);
865
865
  }
866
866
  return { head: e, body: a };
867
867
  });
868
868
  function Te(e = null) {
869
- const a = [[l.value.style.chart.title.text], [l.value.style.chart.title.subtitle.text], [""]], o = ["", ...rl.value.head.map((v) => v.label)], s = rl.value.body, i = a.concat([o]).concat(s), x = ga(i);
869
+ const a = [[l.value.style.chart.title.text], [l.value.style.chart.title.subtitle.text], [""]], o = ["", ...sl.value.head.map((v) => v.label)], r = sl.value.body, i = a.concat([o]).concat(r), x = ga(i);
870
870
  e ? e(x) : pa({ csvContent: x, title: l.value.style.chart.title.text || "vue-ui-xy-canvas" });
871
871
  }
872
872
  function Jl() {
873
873
  return h.value;
874
874
  }
875
- function sl() {
876
- r.value.showTable = !r.value.showTable;
875
+ function rl() {
876
+ s.value.showTable = !s.value.showTable;
877
877
  }
878
878
  function nl() {
879
- r.value.showDataLabels = !r.value.showDataLabels;
879
+ s.value.showDataLabels = !s.value.showDataLabels;
880
880
  }
881
881
  function il() {
882
- r.value.stacked = !r.value.stacked;
882
+ s.value.stacked = !s.value.stacked;
883
883
  }
884
884
  function vl() {
885
- r.value.showTooltip = !r.value.showTooltip;
885
+ s.value.showTooltip = !s.value.showTooltip;
886
886
  }
887
- const me = c(!1);
887
+ const be = c(!1);
888
888
  function Ie() {
889
- me.value = !me.value;
889
+ be.value = !be.value;
890
890
  }
891
891
  async function Kl({ scale: e = 2 } = {}) {
892
892
  if (!I.value) return;
893
- const { width: a, height: o } = I.value.getBoundingClientRect(), s = a / o, { imageUri: i, base64: x } = await Ra({ domElement: I.value, base64: !0, img: !0, scale: e });
893
+ const { width: a, height: o } = I.value.getBoundingClientRect(), r = a / o, { imageUri: i, base64: x } = await Ra({ domElement: I.value, base64: !0, img: !0, scale: e });
894
894
  return {
895
895
  imageUri: i,
896
896
  base64: x,
897
897
  title: l.value.style.chart.title.text,
898
898
  width: a,
899
899
  height: o,
900
- aspectRatio: s
900
+ aspectRatio: r
901
901
  };
902
902
  }
903
903
  const ie = L(() => {
904
- const e = l.value.table.useDialog && !l.value.table.show, a = r.value.showTable;
904
+ const e = l.value.table.useDialog && !l.value.table.show, a = s.value.showTable;
905
905
  return {
906
906
  component: e ? Il : Ma,
907
907
  title: `${l.value.style.chart.title.text}${l.value.style.chart.title.subtitle.text ? `: ${l.value.style.chart.title.subtitle.text}` : ""}`,
@@ -930,11 +930,11 @@ const Pa = ["id"], Ea = ["id"], Aa = ["id"], Na = ["onClick"], Ha = {
930
930
  }
931
931
  };
932
932
  });
933
- D(() => r.value.showTable, (e) => {
934
- l.value.table.show || (e && l.value.table.useDialog && re.value ? re.value.open() : "close" in re.value && re.value.close());
933
+ D(() => s.value.showTable, (e) => {
934
+ l.value.table.show || (e && l.value.table.useDialog && se.value ? se.value.open() : "close" in se.value && se.value.close());
935
935
  });
936
936
  function cl() {
937
- r.value.showTable = !1, Se.value && Se.value.setTableIconState(!1);
937
+ s.value.showTable = !1, Se.value && Se.value.setTableIconState(!1);
938
938
  }
939
939
  return kl({
940
940
  getData: Jl,
@@ -942,7 +942,7 @@ const Pa = ["id"], Ea = ["id"], Aa = ["id"], Na = ["onClick"], Ha = {
942
942
  generateCsv: Te,
943
943
  generatePdf: je,
944
944
  generateImage: qe,
945
- toggleTable: sl,
945
+ toggleTable: rl,
946
946
  toggleLabels: nl,
947
947
  toggleStack: il,
948
948
  toggleTooltip: vl,
@@ -998,13 +998,13 @@ const Pa = ["id"], Ea = ["id"], Aa = ["id"], Na = ["onClick"], Ha = {
998
998
  hasFullscreen: l.value.userOptions.buttons.fullscreen,
999
999
  hasTable: u.value.end - u.value.start <= 730 && l.value.userOptions.buttons.table,
1000
1000
  isFullscreen: ue.value,
1001
- isTooltip: r.value.showTooltip,
1002
- isStacked: r.value.stacked,
1001
+ isTooltip: s.value.showTooltip,
1002
+ isStacked: s.value.stacked,
1003
1003
  titles: { ...l.value.userOptions.buttonTitles },
1004
1004
  chartElement: I.value,
1005
1005
  position: l.value.userOptions.position,
1006
1006
  hasAnnotator: l.value.userOptions.buttons.annotator,
1007
- isAnnotation: me.value,
1007
+ isAnnotation: be.value,
1008
1008
  callbacks: l.value.userOptions.callbacks,
1009
1009
  printScale: l.value.userOptions.print.scale,
1010
1010
  tableDialog: l.value.table.useDialog,
@@ -1012,7 +1012,7 @@ const Pa = ["id"], Ea = ["id"], Aa = ["id"], Na = ["onClick"], Ha = {
1012
1012
  onGeneratePdf: p(je),
1013
1013
  onGenerateCsv: Te,
1014
1014
  onGenerateImage: p(qe),
1015
- onToggleTable: sl,
1015
+ onToggleTable: rl,
1016
1016
  onToggleLabels: nl,
1017
1017
  onToggleStack: il,
1018
1018
  onToggleTooltip: vl,
@@ -1023,71 +1023,71 @@ const Pa = ["id"], Ea = ["id"], Aa = ["id"], Na = ["onClick"], Ha = {
1023
1023
  }, yl({ _: 2 }, [
1024
1024
  e.$slots.menuIcon ? {
1025
1025
  name: "menuIcon",
1026
- fn: b(({ isOpen: o, color: s }) => [
1027
- k(e.$slots, "menuIcon", V(G({ isOpen: o, color: s })), void 0, !0)
1026
+ fn: m(({ isOpen: o, color: r }) => [
1027
+ k(e.$slots, "menuIcon", V(G({ isOpen: o, color: r })), void 0, !0)
1028
1028
  ]),
1029
1029
  key: "0"
1030
1030
  } : void 0,
1031
1031
  e.$slots.optionTooltip ? {
1032
1032
  name: "optionTooltip",
1033
- fn: b(() => [
1033
+ fn: m(() => [
1034
1034
  k(e.$slots, "optionTooltip", {}, void 0, !0)
1035
1035
  ]),
1036
1036
  key: "1"
1037
1037
  } : void 0,
1038
1038
  e.$slots.optionPdf ? {
1039
1039
  name: "optionPdf",
1040
- fn: b(() => [
1040
+ fn: m(() => [
1041
1041
  k(e.$slots, "optionPdf", {}, void 0, !0)
1042
1042
  ]),
1043
1043
  key: "2"
1044
1044
  } : void 0,
1045
1045
  e.$slots.optionCsv ? {
1046
1046
  name: "optionCsv",
1047
- fn: b(() => [
1047
+ fn: m(() => [
1048
1048
  k(e.$slots, "optionCsv", {}, void 0, !0)
1049
1049
  ]),
1050
1050
  key: "3"
1051
1051
  } : void 0,
1052
1052
  e.$slots.optionImg ? {
1053
1053
  name: "optionImg",
1054
- fn: b(() => [
1054
+ fn: m(() => [
1055
1055
  k(e.$slots, "optionImg", {}, void 0, !0)
1056
1056
  ]),
1057
1057
  key: "4"
1058
1058
  } : void 0,
1059
1059
  e.$slots.optionTable ? {
1060
1060
  name: "optionTable",
1061
- fn: b(() => [
1061
+ fn: m(() => [
1062
1062
  k(e.$slots, "optionTable", {}, void 0, !0)
1063
1063
  ]),
1064
1064
  key: "5"
1065
1065
  } : void 0,
1066
1066
  e.$slots.optionLabels ? {
1067
1067
  name: "optionLabels",
1068
- fn: b(() => [
1068
+ fn: m(() => [
1069
1069
  k(e.$slots, "optionLabels", {}, void 0, !0)
1070
1070
  ]),
1071
1071
  key: "6"
1072
1072
  } : void 0,
1073
1073
  e.$slots.optionStack ? {
1074
1074
  name: "optionStack",
1075
- fn: b(() => [
1075
+ fn: m(() => [
1076
1076
  k(e.$slots, "optionStack", {}, void 0, !0)
1077
1077
  ]),
1078
1078
  key: "7"
1079
1079
  } : void 0,
1080
1080
  e.$slots.optionFullscreen ? {
1081
1081
  name: "optionFullscreen",
1082
- fn: b(({ toggleFullscreen: o, isFullscreen: s }) => [
1083
- k(e.$slots, "optionFullscreen", V(G({ toggleFullscreen: o, isFullscreen: s })), void 0, !0)
1082
+ fn: m(({ toggleFullscreen: o, isFullscreen: r }) => [
1083
+ k(e.$slots, "optionFullscreen", V(G({ toggleFullscreen: o, isFullscreen: r })), void 0, !0)
1084
1084
  ]),
1085
1085
  key: "8"
1086
1086
  } : void 0,
1087
1087
  e.$slots.optionAnnotator ? {
1088
1088
  name: "optionAnnotator",
1089
- fn: b(({ toggleAnnotator: o, isAnnotator: s }) => [
1090
- k(e.$slots, "optionAnnotator", V(G({ toggleAnnotator: o, isAnnotator: s })), void 0, !0)
1089
+ fn: m(({ toggleAnnotator: o, isAnnotator: r }) => [
1090
+ k(e.$slots, "optionAnnotator", V(G({ toggleAnnotator: o, isAnnotator: r })), void 0, !0)
1091
1091
  ]),
1092
1092
  key: "9"
1093
1093
  } : void 0
@@ -1124,7 +1124,7 @@ const Pa = ["id"], Ea = ["id"], Aa = ["id"], Na = ["onClick"], Ha = {
1124
1124
  }
1125
1125
  }, null, 8, ["config"])),
1126
1126
  fl(p($l), {
1127
- show: r.value.showTooltip && ye.value,
1127
+ show: s.value.showTooltip && ye.value,
1128
1128
  backgroundColor: l.value.style.chart.tooltip.backgroundColor,
1129
1129
  color: l.value.style.chart.tooltip.color,
1130
1130
  fontSize: l.value.style.chart.tooltip.fontSize,
@@ -1137,16 +1137,16 @@ const Pa = ["id"], Ea = ["id"], Aa = ["id"], Na = ["onClick"], Ha = {
1137
1137
  content: fe.value,
1138
1138
  isFullscreen: ue.value,
1139
1139
  backgroundOpacity: l.value.style.chart.tooltip.backgroundOpacity,
1140
- isCustom: p(bl)(l.value.style.chart.tooltip.customFormat),
1140
+ isCustom: p(ml)(l.value.style.chart.tooltip.customFormat),
1141
1141
  smooth: l.value.style.chart.tooltip.smooth,
1142
1142
  backdropFilter: l.value.style.chart.tooltip.backdropFilter,
1143
1143
  smoothForce: l.value.style.chart.tooltip.smoothForce,
1144
1144
  smoothSnapThreshold: l.value.style.chart.tooltip.smoothSnapThreshold
1145
1145
  }, {
1146
- "tooltip-before": b(() => [
1146
+ "tooltip-before": m(() => [
1147
1147
  k(e.$slots, "tooltip-before", V(G({ ...Pe.value })), void 0, !0)
1148
1148
  ]),
1149
- "tooltip-after": b(() => [
1149
+ "tooltip-after": m(() => [
1150
1150
  k(e.$slots, "tooltip-after", V(G({ ...Pe.value })), void 0, !0)
1151
1151
  ]),
1152
1152
  _: 3
@@ -1183,13 +1183,15 @@ const Pa = ["id"], Ea = ["id"], Aa = ["id"], Na = ["onClick"], Ha = {
1183
1183
  refreshEndPoint: l.value.style.chart.zoom.endIndex !== null ? l.value.style.chart.zoom.endIndex + 1 : T.value,
1184
1184
  enableRangeHandles: l.value.style.chart.zoom.enableRangeHandles,
1185
1185
  enableSelectionDrag: l.value.style.chart.zoom.enableSelectionDrag,
1186
+ focusOnDrag: l.value.style.chart.zoom.focusOnDrag,
1187
+ focusRangeRatio: l.value.style.chart.zoom.focusRangeRatio,
1186
1188
  onReset: el
1187
1189
  }, {
1188
- "reset-action": b(({ reset: o }) => [
1190
+ "reset-action": m(({ reset: o }) => [
1189
1191
  k(e.$slots, "reset-action", V(G({ reset: o })), void 0, !0)
1190
1192
  ]),
1191
1193
  _: 3
1192
- }, 8, ["background", "borderColor", "fontSize", "useResetSlot", "labelLeft", "labelRight", "textColor", "inputColor", "selectColor", "max", "valueStart", "valueEnd", "start", "end", "refreshStartPoint", "refreshEndPoint", "enableRangeHandles", "enableSelectionDrag"])) : H("", !0)
1194
+ }, 8, ["background", "borderColor", "fontSize", "useResetSlot", "labelLeft", "labelRight", "textColor", "inputColor", "selectColor", "max", "valueStart", "valueEnd", "start", "end", "refreshStartPoint", "refreshEndPoint", "enableRangeHandles", "enableSelectionDrag", "focusOnDrag", "focusRangeRatio"])) : H("", !0)
1193
1195
  ], 4),
1194
1196
  Y("div", {
1195
1197
  id: `legend-bottom-${_.value}`
@@ -1208,10 +1210,10 @@ const Pa = ["id"], Ea = ["id"], Aa = ["id"], Na = ["onClick"], Ha = {
1208
1210
  key: `legend_${we.value}`,
1209
1211
  onClickMarker: a[3] || (a[3] = ({ i: o }) => ol(o))
1210
1212
  }, {
1211
- item: b(({ legend: o, index: s }) => [
1213
+ item: m(({ legend: o, index: r }) => [
1212
1214
  Y("div", {
1213
1215
  onClick: (i) => o.segregate(),
1214
- style: le(`opacity:${$.value.includes(s) ? 0.5 : 1}`)
1216
+ style: le(`opacity:${$.value.includes(r) ? 0.5 : 1}`)
1215
1217
  }, Oe(o.name), 13, Na)
1216
1218
  ]),
1217
1219
  _: 1
@@ -1234,24 +1236,24 @@ const Pa = ["id"], Ea = ["id"], Aa = ["id"], Na = ["onClick"], Ha = {
1234
1236
  ], 512)) : H("", !0),
1235
1237
  ge.value && l.value.userOptions.buttons.table ? (S(), F(oa(ie.value.component), ua({ key: 5 }, ie.value.props, {
1236
1238
  ref_key: "tableUnit",
1237
- ref: re,
1239
+ ref: se,
1238
1240
  onClose: cl
1239
1241
  }), yl({
1240
- content: b(() => [
1242
+ content: m(() => [
1241
1243
  (S(), F(p(wl), {
1242
1244
  key: `table_${Ce.value}`,
1243
- colNames: be.value.colNames,
1244
- head: be.value.head,
1245
- body: be.value.body,
1246
- config: be.value.config,
1245
+ colNames: me.value.colNames,
1246
+ head: me.value.head,
1247
+ body: me.value.body,
1248
+ config: me.value.config,
1247
1249
  title: l.value.table.useDialog ? "" : ie.value.title,
1248
1250
  withCloseButton: !l.value.table.useDialog,
1249
1251
  onClose: cl
1250
1252
  }, {
1251
- th: b(({ th: o }) => [
1253
+ th: m(({ th: o }) => [
1252
1254
  Y("div", { innerHTML: o }, null, 8, Ya)
1253
1255
  ]),
1254
- td: b(({ td: o }) => [
1256
+ td: m(({ td: o }) => [
1255
1257
  gl(Oe(o), 1)
1256
1258
  ]),
1257
1259
  _: 1
@@ -1261,14 +1263,14 @@ const Pa = ["id"], Ea = ["id"], Aa = ["id"], Na = ["onClick"], Ha = {
1261
1263
  }, [
1262
1264
  l.value.table.useDialog ? {
1263
1265
  name: "title",
1264
- fn: b(() => [
1266
+ fn: m(() => [
1265
1267
  gl(Oe(ie.value.title), 1)
1266
1268
  ]),
1267
1269
  key: "0"
1268
1270
  } : void 0,
1269
1271
  l.value.table.useDialog ? {
1270
1272
  name: "actions",
1271
- fn: b(() => [
1273
+ fn: m(() => [
1272
1274
  Y("button", {
1273
1275
  tabindex: "0",
1274
1276
  class: "vue-ui-user-options-button",
@@ -1288,12 +1290,12 @@ const Pa = ["id"], Ea = ["id"], Aa = ["id"], Na = ["onClick"], Ha = {
1288
1290
  parent: I.value,
1289
1291
  backgroundColor: l.value.style.chart.backgroundColor,
1290
1292
  color: l.value.style.chart.color,
1291
- active: me.value,
1293
+ active: be.value,
1292
1294
  onClose: Ie
1293
1295
  }, null, 8, ["parent", "backgroundColor", "color", "active"])) : H("", !0)
1294
1296
  ], 46, Pa));
1295
1297
  }
1296
- }, tt = /* @__PURE__ */ Fa(_a, [["__scopeId", "data-v-0db6c29f"]]);
1298
+ }, tt = /* @__PURE__ */ Fa(_a, [["__scopeId", "data-v-c6565152"]]);
1297
1299
  export {
1298
1300
  tt as default
1299
1301
  };