vue-data-ui 2.16.4 → 2.16.6

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 +2 -2
  2. package/dist/{Arrow-CQWVJ5sZ.js → Arrow-DCqxVwey.js} +1 -1
  3. package/dist/{BaseDraggableDialog-Fz8fA4VM.js → BaseDraggableDialog-6DIKXIBU.js} +2 -2
  4. package/dist/{BaseIcon-CfYrW3zO.js → BaseIcon-Bn996RXm.js} +1 -1
  5. package/dist/{ColorPicker-B2ITT7Lp.js → ColorPicker-OFfLkKNb.js} +2 -2
  6. package/dist/{DataTable-C6IBsdXI.js → DataTable-CHBLjKtZ.js} +2 -2
  7. package/dist/{Legend-bIoNrGWy.js → Legend-nBXoxXJH.js} +2 -2
  8. package/dist/{NonSvgPenAndPaper-BsSwoYpL.js → NonSvgPenAndPaper-Cls2idJS.js} +3 -3
  9. package/dist/{PackageVersion-DfefmcMg.js → PackageVersion-Bg_9KCU-.js} +1 -1
  10. package/dist/{PenAndPaper-CixPm-N0.js → PenAndPaper-BPTpbnay.js} +3 -3
  11. package/dist/{Shape-dKMmmbg5.js → Shape-Bnf512BA.js} +1 -1
  12. package/dist/{Slicer-szgfOkiL.js → Slicer-BrqtJG2E.js} +2 -2
  13. package/dist/{SparkTooltip-D_NmtqzO.js → SparkTooltip-C-rLATAw.js} +1 -1
  14. package/dist/{Title-DTuTBtAe.js → Title-Gi81VwUM.js} +1 -1
  15. package/dist/{Tooltip-CVPiPR9d.js → Tooltip-CJxVw7-T.js} +1 -1
  16. package/dist/{UserOptions-D8SRavqE.js → UserOptions-CBEK6_jo.js} +137 -129
  17. package/dist/{dom-to-png-Br5bL5eX.js → dom-to-png-CRHNL8VU.js} +1 -1
  18. package/dist/img-BgOg8opa.js +27 -0
  19. package/dist/{index-BsirVW_m.js → index-DvIXJm6t.js} +1 -1
  20. package/dist/{pdf-BBk37REU.js → pdf-DhTxBrbJ.js} +1 -1
  21. package/dist/style.css +1 -1
  22. package/dist/types/vue-data-ui.d.cts +2 -2
  23. package/dist/types/vue-data-ui.d.ts +2 -2
  24. package/dist/{useNestedProp-Ej-oqNyf.js → useNestedProp-DrYHm61t.js} +1 -1
  25. package/dist/{usePrinter-Dpd-vZym.js → usePrinter-CWnXbGMb.js} +2 -2
  26. package/dist/{vue-data-ui-Bd_shukQ.js → vue-data-ui-B8EWlMIK.js} +63 -63
  27. package/dist/vue-data-ui.js +1 -1
  28. package/dist/{vue-ui-3d-bar-Baaeejpi.js → vue-ui-3d-bar-CtlB4p7i.js} +42 -41
  29. package/dist/{vue-ui-accordion-D2TcT2US.js → vue-ui-accordion-D55kCO5G.js} +3 -3
  30. package/dist/{vue-ui-age-pyramid-BW2q5yMT.js → vue-ui-age-pyramid-DSshyUn-.js} +39 -38
  31. package/dist/{vue-ui-annotator-DR6dXmoQ.js → vue-ui-annotator-DQSMv_k2.js} +2 -2
  32. package/dist/{vue-ui-bullet-BYvOXGoO.js → vue-ui-bullet-FeScjj7q.js} +23 -22
  33. package/dist/{vue-ui-candlestick-DXGY7-1u.js → vue-ui-candlestick-Drupgyoi.js} +100 -99
  34. package/dist/{vue-ui-carousel-table-DpRdTSdS.js → vue-ui-carousel-table-BTZQRZfO.js} +17 -16
  35. package/dist/{vue-ui-chestnut--uqQw5gd.js → vue-ui-chestnut-DLWjPwRL.js} +64 -63
  36. package/dist/{vue-ui-chord-C6z1Oi8y.js → vue-ui-chord-BgLbFBT9.js} +87 -86
  37. package/dist/{vue-ui-circle-pack-BgtFPkv2.js → vue-ui-circle-pack-VXcRh2gy.js} +31 -30
  38. package/dist/{vue-ui-cursor-C_KZ7SW0.js → vue-ui-cursor-DWmfnM25.js} +2 -2
  39. package/dist/{vue-ui-dashboard-YSzYS59X.js → vue-ui-dashboard-CGIocEHj.js} +62 -62
  40. package/dist/{vue-ui-digits-B6Ej5XbC.js → vue-ui-digits-BgQch3Fc.js} +2 -2
  41. package/dist/{vue-ui-donut-BYouj_X8.js → vue-ui-donut-B59bCV5_.js} +74 -73
  42. package/dist/{vue-ui-donut-evolution-DHIMoo_a.js → vue-ui-donut-evolution-CI8qBIQd.js} +44 -43
  43. package/dist/{vue-ui-dumbbell-rHe7aWF7.js → vue-ui-dumbbell-CXv7sk88.js} +9 -8
  44. package/dist/{vue-ui-flow-hV-6uTPS.js → vue-ui-flow-DxF0ELtv.js} +9 -8
  45. package/dist/{vue-ui-funnel-45FdkG1w.js → vue-ui-funnel-Bco8rqF8.js} +20 -19
  46. package/dist/{vue-ui-galaxy-yg-YRwYP.js → vue-ui-galaxy-CaPJwwOj.js} +22 -21
  47. package/dist/{vue-ui-gauge-Ccf__w06.js → vue-ui-gauge-D7arhDmb.js} +8 -7
  48. package/dist/{vue-ui-gizmo-CxSBWMgK.js → vue-ui-gizmo-Dwli-Mip.js} +3 -3
  49. package/dist/{vue-ui-heatmap-Cz1GzvLQ.js → vue-ui-heatmap-Cyn-ahGO.js} +10 -9
  50. package/dist/{vue-ui-history-plot-DChEbCv0.js → vue-ui-history-plot-C2AEToqx.js} +27 -26
  51. package/dist/{vue-ui-kpi-D1cHw1LD.js → vue-ui-kpi-DKDibSdl.js} +3 -3
  52. package/dist/{vue-ui-mini-loader-FxoEnicn.js → vue-ui-mini-loader-B8OVutUx.js} +2 -2
  53. package/dist/{vue-ui-molecule-BvGzvTQc.js → vue-ui-molecule-BVSrqIGw.js} +22 -21
  54. package/dist/{vue-ui-mood-radar-DomwWh69.js → vue-ui-mood-radar-DvlyS3RN.js} +9 -8
  55. package/dist/{vue-ui-nested-donuts-BrC9S0cw.js → vue-ui-nested-donuts-D9ssSus6.js} +89 -88
  56. package/dist/{vue-ui-onion-YvCPFGpJ.js → vue-ui-onion-Buu4VX3u.js} +40 -39
  57. package/dist/{vue-ui-parallel-coordinate-plot-D_ji0o1R.js → vue-ui-parallel-coordinate-plot-DFLUvhxD.js} +29 -28
  58. package/dist/{vue-ui-quadrant-B1xa2r0Q.js → vue-ui-quadrant-BMC7NBGd.js} +90 -89
  59. package/dist/{vue-ui-quick-chart-ClCOLJ5y.js → vue-ui-quick-chart-DB9RKUkb.js} +59 -58
  60. package/dist/{vue-ui-radar-B460wd0h.js → vue-ui-radar-68NMPxxQ.js} +26 -25
  61. package/dist/{vue-ui-rating-D1_WFLlk.js → vue-ui-rating-swH9kRr3.js} +2 -2
  62. package/dist/{vue-ui-relation-circle-ECKEkE2-.js → vue-ui-relation-circle-CT-EdSjO.js} +11 -10
  63. package/dist/{vue-ui-ridgeline-E-1Lcv1j.js → vue-ui-ridgeline-DftROPaX.js} +10 -9
  64. package/dist/{vue-ui-rings-BsSwSht6.js → vue-ui-rings-M-9dPI5D.js} +45 -44
  65. package/dist/{vue-ui-scatter-CVEd6_m1.js → vue-ui-scatter-CsGhaFJh.js} +44 -43
  66. package/dist/{vue-ui-skeleton-CchtfQiJ.js → vue-ui-skeleton-BAOt2neL.js} +3 -3
  67. package/dist/{vue-ui-smiley-CkedzX6d.js → vue-ui-smiley-7_kIgPg-.js} +2 -2
  68. package/dist/{vue-ui-spark-trend-ByPzMHci.js → vue-ui-spark-trend-DHlQQpwz.js} +3 -3
  69. package/dist/{vue-ui-sparkbar-DoVR95AR.js → vue-ui-sparkbar-BnHhzuKf.js} +3 -3
  70. package/dist/{vue-ui-sparkgauge-B9WEsmn8.js → vue-ui-sparkgauge-WtfkCK8g.js} +3 -3
  71. package/dist/{vue-ui-sparkhistogram-B5Ub1nsA.js → vue-ui-sparkhistogram-B2u4XLVd.js} +4 -4
  72. package/dist/{vue-ui-sparkline-BqHPNt6h.js → vue-ui-sparkline-DKIyUlSm.js} +3 -3
  73. package/dist/{vue-ui-sparkstackbar-BhL0IxK5.js → vue-ui-sparkstackbar-BLGz2qIb.js} +3 -3
  74. package/dist/{vue-ui-stackbar-CuSsigBj.js → vue-ui-stackbar-BDpMsTYe.js} +277 -275
  75. package/dist/{vue-ui-strip-plot-BTqp8p9u.js → vue-ui-strip-plot-5qDcYPnR.js} +22 -21
  76. package/dist/{vue-ui-table-Du7un5Fm.js → vue-ui-table-Bg5HIQ3O.js} +3 -3
  77. package/dist/{vue-ui-table-heatmap-YxGFfRC3.js → vue-ui-table-heatmap-DmjNy1q1.js} +26 -25
  78. package/dist/{vue-ui-table-sparkline-Bbt4GjUn.js → vue-ui-table-sparkline-CnkJkBk5.js} +8 -7
  79. package/dist/{vue-ui-thermometer-Cnc4zVKO.js → vue-ui-thermometer-RlD-9mJf.js} +30 -29
  80. package/dist/{vue-ui-timer-DgVQY-BQ.js → vue-ui-timer-Bes74INL.js} +5 -5
  81. package/dist/{vue-ui-tiremarks-BTHDxycu.js → vue-ui-tiremarks-DiLS3akQ.js} +29 -28
  82. package/dist/vue-ui-treemap-BG1Omm38.js +953 -0
  83. package/dist/{vue-ui-vertical-bar-C5aombcF.js → vue-ui-vertical-bar-CwqQyZFX.js} +39 -38
  84. package/dist/{vue-ui-waffle-DHDmy4xh.js → vue-ui-waffle-Ce3T4BPp.js} +10 -9
  85. package/dist/{vue-ui-wheel-DmPltDq0.js → vue-ui-wheel-6B0WTkf2.js} +34 -33
  86. package/dist/{vue-ui-word-cloud-D15rS85A.js → vue-ui-word-cloud-ByYZCOh7.js} +42 -41
  87. package/dist/{vue-ui-world-9lR_bov_.js → vue-ui-world-B9PxVO4n.js} +8 -7
  88. package/dist/{vue-ui-xy-DnEdi5Hn.js → vue-ui-xy-DtJ7qJib.js} +69 -68
  89. package/dist/{vue-ui-xy-canvas-BaZZ7r1e.js → vue-ui-xy-canvas-S6YpFgzs.js} +131 -130
  90. package/package.json +1 -1
  91. package/dist/img-BOi0vhPf.js +0 -20
  92. package/dist/vue-ui-treemap-B96LGRM_.js +0 -952
@@ -1,15 +1,15 @@
1
1
  import { defineAsyncComponent as S, computed as f, ref as y, watch as Re, shallowRef as Oe, onMounted as ht, onBeforeUnmount as pt, nextTick as D, createElementBlock as u, openBlock as s, unref as r, normalizeStyle as ie, normalizeClass as Ne, createBlock as I, createCommentVNode as h, createElementVNode as v, createVNode as Pe, createSlots as ft, withCtx as x, renderSlot as g, normalizeProps as T, guardReactiveProps as L, Fragment as F, renderList as R, toDisplayString as q, createTextVNode as gt } from "vue";
2
- import { u as xt, c as mt, a as bt, C as J, o as kt, e as O, D as wt, v as W, f as $, X as _t, w as K, s as Ct, E as Ve, q as $t, r as At, x as zt, y as St } from "./index-BsirVW_m.js";
2
+ import { u as xt, c as mt, a as bt, C as J, o as kt, e as O, D as wt, v as W, f as $, X as _t, w as K, s as Ct, E as Ve, q as $t, r as At, x as zt, y as St } from "./index-DvIXJm6t.js";
3
3
  import { t as It, u as Tt } from "./useResponsive-DfdjqQps.js";
4
- import { u as Me } from "./useNestedProp-Ej-oqNyf.js";
5
- import { u as Lt } from "./usePrinter-Dpd-vZym.js";
4
+ import { u as Me } from "./useNestedProp-DrYHm61t.js";
5
+ import { u as Lt } from "./usePrinter-CWnXbGMb.js";
6
6
  import { u as Ft } from "./useUserOptionState-BIvW1Kz7.js";
7
7
  import { u as Rt } from "./useChartAccessibility-9icAAmYg.js";
8
- import Ot from "./Title-DTuTBtAe.js";
9
- import { S as Nt } from "./Slicer-szgfOkiL.js";
8
+ import Ot from "./Title-Gi81VwUM.js";
9
+ import { S as Nt } from "./Slicer-BrqtJG2E.js";
10
10
  import { u as Pt } from "./useTimeLabels-Mrr0jrpL.js";
11
11
  import { _ as Vt } from "./_plugin-vue_export-helper-CHgC5LLL.js";
12
- const Mt = ["id"], Et = ["xmlns", "viewBox"], Bt = ["x", "y", "width", "height"], Ut = { key: 1 }, Dt = ["id"], Wt = ["stop-color"], Gt = ["stop-color"], Ht = ["stop-color"], jt = ["id"], Xt = ["stop-color"], Yt = ["stop-color"], qt = ["stop-color"], Jt = { key: 0 }, Kt = ["x1", "x2", "y1", "y2", "stroke", "stroke-width"], Qt = ["x1", "x2", "y1", "y2", "stroke", "stroke-width"], Zt = { key: 1 }, el = ["x1", "x2", "y1", "y2", "stroke", "stroke-width"], tl = ["x", "y", "font-size", "fill", "font-weight"], ll = { key: 2 }, ol = ["transform", "text-anchor", "font-size", "fill", "font-weight"], al = { key: 3 }, sl = ["transform", "text-anchor", "font-size", "fill", "font-weight"], ul = ["x1", "x2", "y1", "y2", "stroke", "stroke-width"], il = { key: 0 }, nl = ["cx", "cy", "r", "fill"], rl = ["cx", "cy", "r", "fill"], dl = { key: 1 }, vl = ["x1", "x2", "y1", "y2", "stroke", "stroke-width"], yl = ["x1", "x2", "y1", "y2", "stroke", "stroke-width"], cl = ["x", "y", "height", "width", "fill", "rx"], hl = ["x", "y", "height", "width", "fill", "rx", "stroke", "stroke-width"], pl = ["x", "y", "height", "width", "fill", "onMouseover"], fl = {
12
+ const Mt = ["id"], Et = ["xmlns", "viewBox"], Bt = ["x", "y", "width", "height"], Ut = { key: 1 }, Dt = ["id"], Wt = ["stop-color"], Gt = ["stop-color"], Ht = ["stop-color"], jt = ["id"], Xt = ["stop-color"], Yt = ["stop-color"], qt = ["stop-color"], Jt = { key: 0 }, Kt = ["x1", "x2", "y1", "y2", "stroke", "stroke-width"], Qt = ["x1", "x2", "y1", "y2", "stroke", "stroke-width"], Zt = { key: 1 }, el = ["x1", "x2", "y1", "y2", "stroke", "stroke-width"], tl = ["x", "y", "font-size", "fill", "font-weight"], ll = { key: 2 }, al = ["transform", "text-anchor", "font-size", "fill", "font-weight"], ol = { key: 3 }, sl = ["transform", "text-anchor", "font-size", "fill", "font-weight"], ul = ["x1", "x2", "y1", "y2", "stroke", "stroke-width"], il = { key: 0 }, nl = ["cx", "cy", "r", "fill"], rl = ["cx", "cy", "r", "fill"], dl = { key: 1 }, vl = ["x1", "x2", "y1", "y2", "stroke", "stroke-width"], yl = ["x1", "x2", "y1", "y2", "stroke", "stroke-width"], cl = ["x", "y", "height", "width", "fill", "rx"], hl = ["x", "y", "height", "width", "fill", "rx", "stroke", "stroke-width"], pl = ["x", "y", "height", "width", "fill", "onMouseover"], fl = {
13
13
  key: 5,
14
14
  class: "vue-data-ui-watermark"
15
15
  }, gl = ["innerHTML"], xl = {
@@ -29,7 +29,7 @@ const Mt = ["id"], Et = ["xmlns", "viewBox"], Bt = ["x", "y", "width", "height"]
29
29
  }
30
30
  },
31
31
  setup(Ee, { expose: Be }) {
32
- const Ue = S(() => import("./vue-ui-accordion-D2TcT2US.js")), De = S(() => import("./DataTable-C6IBsdXI.js")), We = S(() => import("./PackageVersion-DfefmcMg.js")), Ge = S(() => import("./PenAndPaper-CixPm-N0.js")), He = S(() => import("./vue-ui-skeleton-CchtfQiJ.js")), je = S(() => import("./Tooltip-CVPiPR9d.js")), Xe = S(() => import("./UserOptions-D8SRavqE.js")), { vue_ui_candlestick: Ye } = xt(), i = Ee, E = f(() => !!i.dataset && i.dataset.length), k = y(mt()), qe = y(null), Q = y(!1), Z = y(""), ee = y(void 0), ne = y(0), B = y(null), re = y(null), de = y(null), ve = y(null), ye = y(null), ce = y(null), G = y(0), he = y(0), pe = y(0), e = f({
32
+ const Ue = S(() => import("./vue-ui-accordion-D55kCO5G.js")), De = S(() => import("./DataTable-CHBLjKtZ.js")), We = S(() => import("./PackageVersion-Bg_9KCU-.js")), Ge = S(() => import("./PenAndPaper-BPTpbnay.js")), He = S(() => import("./vue-ui-skeleton-BAOt2neL.js")), je = S(() => import("./Tooltip-CJxVw7-T.js")), Xe = S(() => import("./UserOptions-CBEK6_jo.js")), { vue_ui_candlestick: Ye } = xt(), i = Ee, E = f(() => !!i.dataset && i.dataset.length), k = y(mt()), qe = y(null), Q = y(!1), Z = y(""), ee = y(void 0), ne = y(0), B = y(null), re = y(null), de = y(null), ve = y(null), ye = y(null), ce = y(null), G = y(0), he = y(0), pe = y(0), e = f({
33
33
  get: () => me(),
34
34
  set: (t) => t
35
35
  }), { userOptionsVisible: te, setUserOptionsVisibility: fe, keepUserOptionState: ge } = Ft({ config: e.value }), { svgRef: xe } = Rt({ config: e.value.style.title });
@@ -38,13 +38,13 @@ const Mt = ["id"], Et = ["xmlns", "viewBox"], Bt = ["x", "y", "width", "height"]
38
38
  userConfig: i.config,
39
39
  defaultConfig: Ye
40
40
  });
41
- let o = {};
42
- return t.theme ? o = {
41
+ let a = {};
42
+ return t.theme ? a = {
43
43
  ...Me({
44
44
  userConfig: bt.vue_ui_candlestick[t.theme] || i.config,
45
45
  defaultConfig: t
46
46
  })
47
- } : o = t, i.config && J(i.config, "style.zoom.startIndex") ? o.style.zoom.startIndex = i.config.style.zoom.startIndex : o.style.zoom.startIndex = null, i.config && J(i.config, "style.zoom.endIndex") ? o.style.zoom.endIndex = i.config.style.zoom.endIndex : o.style.zoom.endIndex = null, i.config && J(i.config, "style.layout.grid.yAxis.scale.min") ? o.style.layout.grid.yAxis.scale.min = i.config.style.layout.grid.yAxis.scale.min : o.style.layout.grid.yAxis.scale.min = null, i.config && J(i.config, "style.layout.grid.yAxis.scale.max") ? o.style.layout.grid.yAxis.scale.max = i.config.style.layout.grid.yAxis.scale.max : o.style.layout.grid.yAxis.scale.max = null, o;
47
+ } : a = t, i.config && J(i.config, "style.zoom.startIndex") ? a.style.zoom.startIndex = i.config.style.zoom.startIndex : a.style.zoom.startIndex = null, i.config && J(i.config, "style.zoom.endIndex") ? a.style.zoom.endIndex = i.config.style.zoom.endIndex : a.style.zoom.endIndex = null, i.config && J(i.config, "style.layout.grid.yAxis.scale.min") ? a.style.layout.grid.yAxis.scale.min = i.config.style.layout.grid.yAxis.scale.min : a.style.layout.grid.yAxis.scale.min = null, i.config && J(i.config, "style.layout.grid.yAxis.scale.max") ? a.style.layout.grid.yAxis.scale.max = i.config.style.layout.grid.yAxis.scale.max : a.style.layout.grid.yAxis.scale.max = null, a;
48
48
  }
49
49
  Re(() => i.config, (t) => {
50
50
  e.value = me(), te.value = !e.value.userOptions.showOnChartHover, be(), G.value += 1, pe.value += 1, he.value += 1, _.value.showTable = e.value.table.show, _.value.showTooltip = e.value.style.tooltip.show;
@@ -66,7 +66,7 @@ const Mt = ["id"], Et = ["xmlns", "viewBox"], Bt = ["x", "y", "width", "height"]
66
66
  type: "dataset"
67
67
  }), e.value.responsive) {
68
68
  const t = It(() => {
69
- const { width: o, height: l } = Tt({
69
+ const { width: a, height: l } = Tt({
70
70
  chart: B.value,
71
71
  title: e.value.style.title.text ? re.value : null,
72
72
  slicer: ve.value,
@@ -75,14 +75,14 @@ const Mt = ["id"], Et = ["xmlns", "viewBox"], Bt = ["x", "y", "width", "height"]
75
75
  noTitle: ce.value
76
76
  });
77
77
  requestAnimationFrame(() => {
78
- c.value.width = o, c.value.height = l, e.value.responsiveProportionalSizing ? (c.value.xAxisFontSize = Ve({
79
- relator: Math.min(o, l),
78
+ c.value.width = a, c.value.height = l, e.value.responsiveProportionalSizing ? (c.value.xAxisFontSize = Ve({
79
+ relator: Math.min(a, l),
80
80
  adjuster: e.value.style.width,
81
81
  source: e.value.style.layout.grid.xAxis.dataLabels.fontSize,
82
82
  threshold: 6,
83
83
  fallback: 6
84
84
  }), c.value.yAxisFontSize = Ve({
85
- relator: Math.min(o, l),
85
+ relator: Math.min(a, l),
86
86
  adjuster: e.value.style.width,
87
87
  source: e.value.style.layout.grid.yAxis.dataLabels.fontSize,
88
88
  threshold: 6,
@@ -105,52 +105,52 @@ const Mt = ["id"], Et = ["xmlns", "viewBox"], Bt = ["x", "y", "width", "height"]
105
105
  showTable: e.value.table.show,
106
106
  showTooltip: e.value.style.tooltip.show
107
107
  }), n = f(() => {
108
- const { top: t, right: o, bottom: l, left: a } = e.value.style.layout.padding;
108
+ const { top: t, right: a, bottom: l, left: o } = e.value.style.layout.padding;
109
109
  return {
110
110
  top: t,
111
- right: c.value.width - o,
112
- left: a,
111
+ right: c.value.width - a,
112
+ left: o,
113
113
  bottom: c.value.height - l,
114
- width: c.value.width - a - o,
114
+ width: c.value.width - o - a,
115
115
  height: c.value.height - t - l
116
116
  };
117
117
  }), U = f(() => i.dataset.length), p = y({
118
118
  start: 0,
119
119
  end: U.value
120
- }), $e = f(() => i.dataset.map((t, o) => ({
120
+ }), $e = f(() => i.dataset.map((t, a) => ({
121
121
  ...t,
122
- absoluteIndex: o
123
- })).slice(p.value.start, p.value.end)), le = f(() => (i.dataset.forEach((t, o) => {
122
+ absoluteIndex: a
123
+ })).slice(p.value.start, p.value.end)), le = f(() => (i.dataset.forEach((t, a) => {
124
124
  [null, void 0].includes(t[0]) && O({
125
125
  componentName: "VueUiCandlestick",
126
126
  type: "datasetAttribute",
127
127
  property: "period (index 0)",
128
- index: o
128
+ index: a
129
129
  }), [null, void 0].includes(t[1]) && O({
130
130
  componentName: "VueUiCandlestick",
131
131
  type: "datasetAttribute",
132
132
  property: "open (index 1)",
133
- index: o
133
+ index: a
134
134
  }), [null, void 0].includes(t[2]) && O({
135
135
  componentName: "VueUiCandlestick",
136
136
  type: "datasetAttribute",
137
137
  property: "high (index 2)",
138
- index: o
138
+ index: a
139
139
  }), [null, void 0].includes(t[3]) && O({
140
140
  componentName: "VueUiCandlestick",
141
141
  type: "datasetAttribute",
142
142
  property: "low (index 3)",
143
- index: o
143
+ index: a
144
144
  }), [null, void 0].includes(t[4]) && O({
145
145
  componentName: "VueUiCandlestick",
146
146
  type: "datasetAttribute",
147
147
  property: "last (index 4)",
148
- index: o
148
+ index: a
149
149
  }), [null, void 0].includes(t[5]) && O({
150
150
  componentName: "VueUiCandlestick",
151
151
  type: "datasetAttribute",
152
152
  property: "volume (index 5)",
153
- index: o
153
+ index: a
154
154
  });
155
155
  }), $e.value.map((t) => ({
156
156
  absoluteIndex: t.absoluteIndex,
@@ -161,26 +161,26 @@ const Mt = ["id"], Et = ["xmlns", "viewBox"], Bt = ["x", "y", "width", "height"]
161
161
  last: t[4],
162
162
  volume: t[5]
163
163
  })))), d = f(() => n.value.width / $e.value.length), Ae = f(() => {
164
- const t = e.value.style.layout.grid.yAxis.scale.max === null ? Math.max(...le.value.map((l) => l.high)) : e.value.style.layout.grid.yAxis.scale.max, o = e.value.style.layout.grid.yAxis.scale.min === null ? 0 : e.value.style.layout.grid.yAxis.scale.min;
164
+ const t = e.value.style.layout.grid.yAxis.scale.max === null ? Math.max(...le.value.map((l) => l.high)) : e.value.style.layout.grid.yAxis.scale.max, a = e.value.style.layout.grid.yAxis.scale.min === null ? 0 : e.value.style.layout.grid.yAxis.scale.min;
165
165
  return {
166
166
  max: t,
167
- min: o
167
+ min: a
168
168
  };
169
169
  }), w = f(() => wt(Ae.value.min, Ae.value.max, e.value.style.layout.grid.yAxis.dataLabels.steps));
170
- function H(t, o) {
170
+ function H(t, a) {
171
171
  return {
172
172
  ...t,
173
- x: W(n.value.left + o * d.value + d.value / 2),
173
+ x: W(n.value.left + a * d.value + d.value / 2),
174
174
  y: W(n.value.top + (1 - (t - w.value.min) / (w.value.max - w.value.min)) * n.value.height),
175
175
  value: W(t)
176
176
  };
177
177
  }
178
- const m = f(() => le.value.map((t, o) => {
179
- const l = H(t.open, o), a = H(t.high, o), C = H(t.low, o), b = H(t.last, o), z = t.last > t.open;
178
+ const m = f(() => le.value.map((t, a) => {
179
+ const l = H(t.open, a), o = H(t.high, a), C = H(t.low, a), b = H(t.last, a), z = t.last > t.open;
180
180
  return {
181
181
  period: t.period,
182
182
  open: l,
183
- high: a,
183
+ high: o,
184
184
  low: C,
185
185
  last: b,
186
186
  volume: t.volume,
@@ -206,10 +206,10 @@ const Mt = ["id"], Et = ["xmlns", "viewBox"], Bt = ["x", "y", "width", "height"]
206
206
  } : {
207
207
  start: i.dataset[p.value.start] ? i.dataset[p.value.start][0] : i.dataset[0][0],
208
208
  end: i.dataset[p.value.end - 1] ? i.dataset[p.value.end - 1][0] : i.dataset.at(-1)[0]
209
- }), oe = y(null);
210
- function et(t, o) {
211
- ee.value = t, oe.value = {
212
- datapoint: o,
209
+ }), ae = y(null);
210
+ function et(t, a) {
211
+ ee.value = t, ae.value = {
212
+ datapoint: a,
213
213
  seriesIndex: t,
214
214
  series: m.value,
215
215
  config: e.value
@@ -217,49 +217,49 @@ const Mt = ["id"], Et = ["xmlns", "viewBox"], Bt = ["x", "y", "width", "height"]
217
217
  const l = e.value.style.tooltip.customFormat;
218
218
  if (zt(l) && St(() => l({
219
219
  seriesIndex: t,
220
- datapoint: o,
220
+ datapoint: a,
221
221
  series: m.value,
222
222
  config: e.value
223
223
  })))
224
224
  Z.value = l({
225
225
  seriesIndex: t,
226
- datapoint: o,
226
+ datapoint: a,
227
227
  series: m.value,
228
228
  config: e.value
229
229
  });
230
230
  else if (e.value.style.tooltip.show) {
231
- let a = "";
232
- const { period: C, open: b, high: z, low: se, last: ue, volume: Y, isBullish: Fe } = m.value[t], { period: ml, open: at, high: st, low: ut, last: it, volume: nt } = e.value.translations, rt = e.value.style.layout.grid.xAxis.dataLabels.datetimeFormatter.enable ? P.value[t].text : C;
233
- a += `<div><svg style="margin-right:6px" viewBox="0 0 12 12" height="12" width="12"><rect x="0" y="0" height="12" width="12" rx="${e.value.style.layout.candle.borderRadius * 3}" stroke="${e.value.style.layout.candle.stroke}" stroke-width="${e.value.style.layout.candle.strokeWidth}"
234
- fill="${e.value.style.layout.candle.gradient.show ? Fe ? `url(#bullish_gradient_${k.value})` : `url(#bearish_gradient_${k.value})` : Fe ? e.value.style.layout.candle.colors.bullish : e.value.style.layout.candle.colors.bearish}"/></svg>${rt}</div>`, a += `${nt} : <b>${isNaN(Y) ? "-" : Number(Y.toFixed(e.value.style.tooltip.roundingValue)).toLocaleString()}</b>`, a += `<div style="margin-top:6px;padding-top:6px;border-top:1px solid ${e.value.style.tooltip.borderColor}">`;
231
+ let o = "";
232
+ const { period: C, open: b, high: z, low: se, last: ue, volume: Y, isBullish: Fe } = m.value[t], { period: ml, open: ot, high: st, low: ut, last: it, volume: nt } = e.value.translations, rt = e.value.style.layout.grid.xAxis.dataLabels.datetimeFormatter.enable ? P.value[t].text : C;
233
+ o += `<div><svg style="margin-right:6px" viewBox="0 0 12 12" height="12" width="12"><rect x="0" y="0" height="12" width="12" rx="${e.value.style.layout.candle.borderRadius * 3}" stroke="${e.value.style.layout.candle.stroke}" stroke-width="${e.value.style.layout.candle.strokeWidth}"
234
+ fill="${e.value.style.layout.candle.gradient.show ? Fe ? `url(#bullish_gradient_${k.value})` : `url(#bearish_gradient_${k.value})` : Fe ? e.value.style.layout.candle.colors.bullish : e.value.style.layout.candle.colors.bearish}"/></svg>${rt}</div>`, o += `${nt} : <b>${isNaN(Y) ? "-" : Number(Y.toFixed(e.value.style.tooltip.roundingValue)).toLocaleString()}</b>`, o += `<div style="margin-top:6px;padding-top:6px;border-top:1px solid ${e.value.style.tooltip.borderColor}">`;
235
235
  const dt = $({
236
236
  p: e.value.style.tooltip.prefix,
237
237
  v: b.value,
238
238
  s: e.value.style.tooltip.suffix,
239
239
  r: e.value.style.tooltip.roundingValue
240
240
  });
241
- a += `<div>${at}: <b>${dt}</b></div>`;
241
+ o += `<div>${ot}: <b>${dt}</b></div>`;
242
242
  const vt = $({
243
243
  p: e.value.style.tooltip.prefix,
244
244
  v: z.value,
245
245
  s: e.value.style.tooltip.suffix,
246
246
  r: e.value.style.tooltip.roundingValue
247
247
  });
248
- a += `<div>${st}: <b>${vt}</b></div>`;
248
+ o += `<div>${st}: <b>${vt}</b></div>`;
249
249
  const yt = $({
250
250
  p: e.value.style.tooltip.prefix,
251
251
  v: se.value,
252
252
  s: e.value.style.tooltip.suffix,
253
253
  r: e.value.style.tooltip.roundingValue
254
254
  });
255
- a += `<div>${ut}: <b>${yt}</b></div>`;
255
+ o += `<div>${ut}: <b>${yt}</b></div>`;
256
256
  const ct = $({
257
257
  p: e.value.style.tooltip.prefix,
258
258
  v: ue.value,
259
259
  s: e.value.style.tooltip.suffix,
260
260
  r: e.value.style.tooltip.roundingValue
261
261
  });
262
- a += `<div>${it}: <b>${ct}</b></div>`, a += "</div>", Z.value = `<div style="text-align:right">${a}</div>`;
262
+ o += `<div>${it}: <b>${ct}</b></div>`, o += "</div>", Z.value = `<div style="text-align:right">${o}</div>`;
263
263
  }
264
264
  Q.value = !0;
265
265
  }
@@ -274,54 +274,54 @@ const Mt = ["id"], Et = ["xmlns", "viewBox"], Bt = ["x", "y", "width", "height"]
274
274
  }, G.value += 1);
275
275
  }
276
276
  function lt(t) {
277
- const o = U.value;
278
- return t > o ? o : t < 0 || e.value.style.zoom.startIndex !== null && t < e.value.style.zoom.startIndex ? e.value.style.zoom.startIndex !== null ? e.value.style.zoom.startIndex + 1 : 1 : t;
277
+ const a = U.value;
278
+ return t > a ? a : t < 0 || e.value.style.zoom.startIndex !== null && t < e.value.style.zoom.startIndex ? e.value.style.zoom.startIndex !== null ? e.value.style.zoom.startIndex + 1 : 1 : t;
279
279
  }
280
280
  function Ie(t = null) {
281
281
  D(() => {
282
- const o = [e.value.translations.period, e.value.translations.open, e.value.translations.high, e.value.translations.low, e.value.translations.last, e.value.translations.volume], l = m.value.map((b, z) => [
282
+ const a = [e.value.translations.period, e.value.translations.open, e.value.translations.high, e.value.translations.low, e.value.translations.last, e.value.translations.volume], l = m.value.map((b, z) => [
283
283
  e.value.style.layout.grid.xAxis.dataLabels.datetimeFormatter.enable ? P.value[z].text : b.period,
284
284
  b.open.value,
285
285
  b.high.value,
286
286
  b.low.value,
287
287
  b.last.value,
288
288
  b.volume
289
- ]), a = [[e.value.style.title.text], [e.value.style.title.subtitle.text], [[""], [""], [""]]].concat([o]).concat(l), C = $t(a);
289
+ ]), o = [[e.value.style.title.text], [e.value.style.title.subtitle.text], [[""], [""], [""]]].concat([a]).concat(l), C = $t(o);
290
290
  t ? t(C) : At({ csvContent: C, title: e.value.style.title.text || "vue-ui-candlestick" });
291
291
  });
292
292
  }
293
293
  const j = f(() => {
294
- const t = m.value.map((a, C) => {
295
- const b = e.value.style.layout.grid.xAxis.dataLabels.datetimeFormatter.enable ? P.value[C].text : a.period, z = $({
294
+ const t = m.value.map((o, C) => {
295
+ const b = e.value.style.layout.grid.xAxis.dataLabels.datetimeFormatter.enable ? P.value[C].text : o.period, z = $({
296
296
  p: e.value.table.td.prefix,
297
- v: a.open.value,
297
+ v: o.open.value,
298
298
  s: e.value.table.td.suffix,
299
299
  r: e.value.table.td.roundingValue
300
300
  }), se = $({
301
301
  p: e.value.table.td.prefix,
302
- v: a.high.value,
302
+ v: o.high.value,
303
303
  s: e.value.table.td.suffix,
304
304
  r: e.value.table.td.roundingValue
305
305
  }), ue = $({
306
306
  p: e.value.table.td.prefix,
307
- v: a.low.value,
307
+ v: o.low.value,
308
308
  s: e.value.table.td.suffix,
309
309
  r: e.value.table.td.roundingValue
310
310
  }), Y = $({
311
311
  p: e.value.table.td.prefix,
312
- v: a.last.value,
312
+ v: o.last.value,
313
313
  s: e.value.table.td.suffix,
314
314
  r: e.value.table.td.roundingValue
315
315
  });
316
316
  return [
317
- `<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 12 12" height="12" width="12" style="margin-right: 6px"><rect x="0" y="0" height="12" width="12" :rx="${e.value.style.layout.candle.borderRadius * 3}" fill="${e.value.style.layout.candle.gradient.show ? a.isBullish ? `url(#bullish_gradient_${k.value}` : `url(#bearish_gradient_${k.value})` : a.isBullish ? e.value.style.layout.candle.colors.bullish : e.value.style.layout.candle.colors.bearish}"/></svg> ${b}`,
317
+ `<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 12 12" height="12" width="12" style="margin-right: 6px"><rect x="0" y="0" height="12" width="12" :rx="${e.value.style.layout.candle.borderRadius * 3}" fill="${e.value.style.layout.candle.gradient.show ? o.isBullish ? `url(#bullish_gradient_${k.value}` : `url(#bearish_gradient_${k.value})` : o.isBullish ? e.value.style.layout.candle.colors.bullish : e.value.style.layout.candle.colors.bearish}"/></svg> ${b}`,
318
318
  z,
319
319
  se,
320
320
  ue,
321
321
  Y,
322
- `${isNaN(a.volume) ? "-" : a.volume.toLocaleString()}`
322
+ `${isNaN(o.volume) ? "-" : o.volume.toLocaleString()}`
323
323
  ];
324
- }), o = {
324
+ }), a = {
325
325
  th: {
326
326
  backgroundColor: e.value.table.th.backgroundColor,
327
327
  color: e.value.table.th.color,
@@ -341,9 +341,9 @@ const Mt = ["id"], Et = ["xmlns", "viewBox"], Bt = ["x", "y", "width", "height"]
341
341
  e.value.translations.last,
342
342
  e.value.translations.volume
343
343
  ];
344
- return { head: l, body: t, config: o, colNames: l };
344
+ return { head: l, body: t, config: a, colNames: l };
345
345
  }), M = y(!1);
346
- function ot(t) {
346
+ function at(t) {
347
347
  M.value = t, ne.value += 1;
348
348
  }
349
349
  function Te() {
@@ -353,7 +353,7 @@ const Mt = ["id"], Et = ["xmlns", "viewBox"], Bt = ["x", "y", "width", "height"]
353
353
  _.value.showTooltip = !_.value.showTooltip;
354
354
  }
355
355
  const X = y(!1);
356
- function ae() {
356
+ function oe() {
357
357
  X.value = !X.value;
358
358
  }
359
359
  return Be({
@@ -362,15 +362,15 @@ const Mt = ["id"], Et = ["xmlns", "viewBox"], Bt = ["x", "y", "width", "height"]
362
362
  generateImage: Ce,
363
363
  toggleTable: Te,
364
364
  toggleTooltip: Le,
365
- toggleAnnotator: ae
366
- }), (t, o) => (s(), u("div", {
365
+ toggleAnnotator: oe
366
+ }), (t, a) => (s(), u("div", {
367
367
  ref_key: "candlestickChart",
368
368
  ref: B,
369
369
  class: Ne(`vue-ui-candlestick ${M.value ? "vue-data-ui-wrapper-fullscreen" : ""} ${e.value.useCssAnimation ? "" : "vue-ui-dna"}`),
370
370
  style: ie(`position:relative;font-family:${e.value.style.fontFamily}; text-align:center;background:${e.value.style.backgroundColor}; ${e.value.responsive ? "height: 100%" : ""}`),
371
371
  id: `vue-ui-candlestick_${k.value}`,
372
- onMouseenter: o[4] || (o[4] = () => r(fe)(!0)),
373
- onMouseleave: o[5] || (o[5] = () => r(fe)(!1))
372
+ onMouseenter: a[4] || (a[4] = () => r(fe)(!0)),
373
+ onMouseleave: a[5] || (a[5] = () => r(fe)(!1))
374
374
  }, [
375
375
  e.value.userOptions.buttons.annotator ? (s(), I(r(Ge), {
376
376
  key: 0,
@@ -378,7 +378,7 @@ const Mt = ["id"], Et = ["xmlns", "viewBox"], Bt = ["x", "y", "width", "height"]
378
378
  backgroundColor: e.value.style.backgroundColor,
379
379
  color: e.value.style.color,
380
380
  active: X.value,
381
- onClose: ae
381
+ onClose: oe
382
382
  }, null, 8, ["svgRef", "backgroundColor", "color", "active"])) : h("", !0),
383
383
  Je.value ? (s(), u("div", {
384
384
  key: 1,
@@ -430,21 +430,22 @@ const Mt = ["id"], Et = ["xmlns", "viewBox"], Bt = ["x", "y", "width", "height"]
430
430
  hasAnnotator: e.value.userOptions.buttons.annotator,
431
431
  isAnnotation: X.value,
432
432
  callbacks: e.value.userOptions.callbacks,
433
- onToggleFullscreen: ot,
433
+ printScale: e.value.userOptions.print.scale,
434
+ onToggleFullscreen: at,
434
435
  onGeneratePdf: r(_e),
435
436
  onGenerateCsv: Ie,
436
437
  onGenerateImage: r(Ce),
437
438
  onToggleTable: Te,
438
439
  onToggleTooltip: Le,
439
- onToggleAnnotator: ae,
440
+ onToggleAnnotator: oe,
440
441
  style: ie({
441
442
  visibility: r(ge) ? r(te) ? "visible" : "hidden" : "visible"
442
443
  })
443
444
  }, ft({ _: 2 }, [
444
445
  t.$slots.menuIcon ? {
445
446
  name: "menuIcon",
446
- fn: x(({ isOpen: l, color: a }) => [
447
- g(t.$slots, "menuIcon", T(L({ isOpen: l, color: a })), void 0, !0)
447
+ fn: x(({ isOpen: l, color: o }) => [
448
+ g(t.$slots, "menuIcon", T(L({ isOpen: l, color: o })), void 0, !0)
448
449
  ]),
449
450
  key: "0"
450
451
  } : void 0,
@@ -485,19 +486,19 @@ const Mt = ["id"], Et = ["xmlns", "viewBox"], Bt = ["x", "y", "width", "height"]
485
486
  } : void 0,
486
487
  t.$slots.optionFullscreen ? {
487
488
  name: "optionFullscreen",
488
- fn: x(({ toggleFullscreen: l, isFullscreen: a }) => [
489
- g(t.$slots, "optionFullscreen", T(L({ toggleFullscreen: l, isFullscreen: a })), void 0, !0)
489
+ fn: x(({ toggleFullscreen: l, isFullscreen: o }) => [
490
+ g(t.$slots, "optionFullscreen", T(L({ toggleFullscreen: l, isFullscreen: o })), void 0, !0)
490
491
  ]),
491
492
  key: "6"
492
493
  } : void 0,
493
494
  t.$slots.optionAnnotator ? {
494
495
  name: "optionAnnotator",
495
- fn: x(({ toggleAnnotator: l, isAnnotator: a }) => [
496
- g(t.$slots, "optionAnnotator", T(L({ toggleAnnotator: l, isAnnotator: a })), void 0, !0)
496
+ fn: x(({ toggleAnnotator: l, isAnnotator: o }) => [
497
+ g(t.$slots, "optionAnnotator", T(L({ toggleAnnotator: l, isAnnotator: o })), void 0, !0)
497
498
  ]),
498
499
  key: "7"
499
500
  } : void 0
500
- ]), 1032, ["backgroundColor", "color", "isImaging", "isPrinting", "uid", "hasTooltip", "hasPdf", "hasImg", "hasXls", "hasTable", "hasFullscreen", "isFullscreen", "isTooltip", "titles", "chartElement", "position", "hasAnnotator", "isAnnotation", "callbacks", "onGeneratePdf", "onGenerateImage", "style"])) : h("", !0),
501
+ ]), 1032, ["backgroundColor", "color", "isImaging", "isPrinting", "uid", "hasTooltip", "hasPdf", "hasImg", "hasXls", "hasTable", "hasFullscreen", "isFullscreen", "isTooltip", "titles", "chartElement", "position", "hasAnnotator", "isAnnotation", "callbacks", "printScale", "onGeneratePdf", "onGenerateImage", "style"])) : h("", !0),
501
502
  E.value ? (s(), u("svg", {
502
503
  key: 4,
503
504
  ref_key: "svgRef",
@@ -580,7 +581,7 @@ const Mt = ["id"], Et = ["xmlns", "viewBox"], Bt = ["x", "y", "width", "height"]
580
581
  }, null, 8, Qt)
581
582
  ])) : h("", !0),
582
583
  e.value.style.layout.grid.yAxis.dataLabels.show ? (s(), u("g", Zt, [
583
- (s(!0), u(F, null, R(Qe.value, (l, a) => (s(), u("g", null, [
584
+ (s(!0), u(F, null, R(Qe.value, (l, o) => (s(), u("g", null, [
584
585
  l.value >= w.value.min && l.value <= w.value.max ? (s(), u("line", {
585
586
  key: 0,
586
587
  x1: n.value.left,
@@ -608,20 +609,20 @@ const Mt = ["id"], Et = ["xmlns", "viewBox"], Bt = ["x", "y", "width", "height"]
608
609
  ]))), 256))
609
610
  ])) : h("", !0),
610
611
  e.value.style.layout.grid.xAxis.dataLabels.show && !e.value.style.layout.grid.xAxis.dataLabels.datetimeFormatter.enable ? (s(), u("g", ll, [
611
- (s(!0), u(F, null, R(Ze.value, (l, a) => (s(), u("g", null, [
612
+ (s(!0), u(F, null, R(Ze.value, (l, o) => (s(), u("g", null, [
612
613
  v("text", {
613
- transform: `translate(${n.value.left + d.value * a + d.value / 2}, ${n.value.bottom + c.value.xAxisFontSize * 2 + e.value.style.layout.grid.xAxis.dataLabels.offsetY}), rotate(${e.value.style.layout.grid.xAxis.dataLabels.rotation})`,
614
+ transform: `translate(${n.value.left + d.value * o + d.value / 2}, ${n.value.bottom + c.value.xAxisFontSize * 2 + e.value.style.layout.grid.xAxis.dataLabels.offsetY}), rotate(${e.value.style.layout.grid.xAxis.dataLabels.rotation})`,
614
615
  "text-anchor": e.value.style.layout.grid.xAxis.dataLabels.rotation > 0 ? "start" : e.value.style.layout.grid.xAxis.dataLabels.rotation < 0 ? "end" : "middle",
615
616
  "font-size": c.value.xAxisFontSize,
616
617
  fill: e.value.style.layout.grid.xAxis.dataLabels.color,
617
618
  "font-weight": e.value.style.layout.grid.xAxis.dataLabels.bold ? "bold" : "normal"
618
- }, q(l), 9, ol)
619
+ }, q(l), 9, al)
619
620
  ]))), 256))
620
621
  ])) : h("", !0),
621
- e.value.style.layout.grid.xAxis.dataLabels.show && e.value.style.layout.grid.xAxis.dataLabels.datetimeFormatter.enable ? (s(), u("g", al, [
622
- (s(!0), u(F, null, R(P.value, (l, a) => (s(), u("g", null, [
622
+ e.value.style.layout.grid.xAxis.dataLabels.show && e.value.style.layout.grid.xAxis.dataLabels.datetimeFormatter.enable ? (s(), u("g", ol, [
623
+ (s(!0), u(F, null, R(P.value, (l, o) => (s(), u("g", null, [
623
624
  v("text", {
624
- transform: `translate(${n.value.left + d.value * a + d.value / 2}, ${n.value.bottom + c.value.xAxisFontSize * 2 + e.value.style.layout.grid.xAxis.dataLabels.offsetY}), rotate(${e.value.style.layout.grid.xAxis.dataLabels.rotation})`,
625
+ transform: `translate(${n.value.left + d.value * o + d.value / 2}, ${n.value.bottom + c.value.xAxisFontSize * 2 + e.value.style.layout.grid.xAxis.dataLabels.offsetY}), rotate(${e.value.style.layout.grid.xAxis.dataLabels.rotation})`,
625
626
  "text-anchor": e.value.style.layout.grid.xAxis.dataLabels.rotation > 0 ? "start" : e.value.style.layout.grid.xAxis.dataLabels.rotation < 0 ? "end" : "middle",
626
627
  "font-size": c.value.xAxisFontSize,
627
628
  fill: e.value.style.layout.grid.xAxis.dataLabels.color,
@@ -630,7 +631,7 @@ const Mt = ["id"], Et = ["xmlns", "viewBox"], Bt = ["x", "y", "width", "height"]
630
631
  ]))), 256))
631
632
  ])) : h("", !0),
632
633
  v("g", null, [
633
- (s(!0), u(F, null, R(m.value, (l, a) => (s(), u("g", null, [
634
+ (s(!0), u(F, null, R(m.value, (l, o) => (s(), u("g", null, [
634
635
  v("line", {
635
636
  x1: l.open.x,
636
637
  x2: l.open.x,
@@ -677,7 +678,7 @@ const Mt = ["id"], Et = ["xmlns", "viewBox"], Bt = ["x", "y", "width", "height"]
677
678
  ]))), 256))
678
679
  ]),
679
680
  v("g", null, [
680
- (s(!0), u(F, null, R(m.value, (l, a) => (s(), u("rect", {
681
+ (s(!0), u(F, null, R(m.value, (l, o) => (s(), u("rect", {
681
682
  x: l.open.x - d.value / 2 + d.value * (1 - e.value.style.layout.candle.widthRatio) / 2,
682
683
  y: l.isBullish ? l.last.y : l.open.y,
683
684
  height: Math.abs(l.last.y - l.open.y) <= 0 ? 1e-4 : Math.abs(l.last.y - l.open.y),
@@ -686,7 +687,7 @@ const Mt = ["id"], Et = ["xmlns", "viewBox"], Bt = ["x", "y", "width", "height"]
686
687
  rx: e.value.style.layout.candle.borderRadius,
687
688
  stroke: "none"
688
689
  }, null, 8, cl))), 256)),
689
- (s(!0), u(F, null, R(m.value, (l, a) => (s(), u("rect", {
690
+ (s(!0), u(F, null, R(m.value, (l, o) => (s(), u("rect", {
690
691
  x: l.open.x - d.value / 2 + d.value * (1 - e.value.style.layout.candle.widthRatio) / 2,
691
692
  y: l.isBullish ? l.last.y : l.open.y,
692
693
  height: Math.abs(l.last.y - l.open.y) <= 0 ? 1e-4 : Math.abs(l.last.y - l.open.y),
@@ -700,14 +701,14 @@ const Mt = ["id"], Et = ["xmlns", "viewBox"], Bt = ["x", "y", "width", "height"]
700
701
  }, null, 8, hl))), 256))
701
702
  ]),
702
703
  v("g", null, [
703
- (s(!0), u(F, null, R(m.value, (l, a) => (s(), u("rect", {
704
- x: n.value.left + a * d.value,
704
+ (s(!0), u(F, null, R(m.value, (l, o) => (s(), u("rect", {
705
+ x: n.value.left + o * d.value,
705
706
  y: n.value.top,
706
707
  height: n.value.height <= 0 ? 1e-4 : n.value.height,
707
708
  width: d.value <= 0 ? 1e-4 : d.value,
708
- fill: ee.value === a ? r(Ct)(e.value.style.layout.selector.color, e.value.style.layout.selector.opacity) : "transparent",
709
- onMouseover: (C) => et(a, l),
710
- onMouseleave: o[0] || (o[0] = (C) => {
709
+ fill: ee.value === o ? r(Ct)(e.value.style.layout.selector.color, e.value.style.layout.selector.opacity) : "transparent",
710
+ onMouseover: (C) => et(o, l),
711
+ onMouseleave: a[0] || (a[0] = (C) => {
711
712
  ee.value = void 0, Q.value = !1;
712
713
  })
713
714
  }, null, 40, pl))), 256))
@@ -758,9 +759,9 @@ const Mt = ["id"], Et = ["xmlns", "viewBox"], Bt = ["x", "y", "width", "height"]
758
759
  valueStart: p.value.start,
759
760
  valueEnd: p.value.end,
760
761
  start: p.value.start,
761
- "onUpdate:start": o[1] || (o[1] = (l) => p.value.start = l),
762
+ "onUpdate:start": a[1] || (a[1] = (l) => p.value.start = l),
762
763
  end: p.value.end,
763
- "onUpdate:end": o[2] || (o[2] = (l) => p.value.end = l),
764
+ "onUpdate:end": a[2] || (a[2] = (l) => p.value.end = l),
764
765
  refreshStartPoint: e.value.style.zoom.startIndex !== null ? e.value.style.zoom.startIndex : 0,
765
766
  refreshEndPoint: e.value.style.zoom.endIndex !== null ? e.value.style.zoom.endIndex + 1 : U.value,
766
767
  enableRangeHandles: e.value.style.zoom.enableRangeHandles,
@@ -804,10 +805,10 @@ const Mt = ["id"], Et = ["xmlns", "viewBox"], Bt = ["x", "y", "width", "height"]
804
805
  isCustom: e.value.style.tooltip.customFormat && typeof e.value.style.tooltip.customFormat == "function"
805
806
  }, {
806
807
  "tooltip-before": x(() => [
807
- g(t.$slots, "tooltip-before", T(L({ ...oe.value })), void 0, !0)
808
+ g(t.$slots, "tooltip-before", T(L({ ...ae.value })), void 0, !0)
808
809
  ]),
809
810
  "tooltip-after": x(() => [
810
- g(t.$slots, "tooltip-after", T(L({ ...oe.value })), void 0, !0)
811
+ g(t.$slots, "tooltip-after", T(L({ ...ae.value })), void 0, !0)
811
812
  ]),
812
813
  _: 3
813
814
  }, 8, ["show", "backgroundColor", "color", "borderRadius", "borderColor", "borderWidth", "fontSize", "backgroundOpacity", "position", "offsetY", "parent", "content", "isFullscreen", "isCustom"]),
@@ -835,7 +836,7 @@ const Mt = ["id"], Et = ["xmlns", "viewBox"], Bt = ["x", "y", "width", "height"]
835
836
  body: j.value.body,
836
837
  config: j.value.config,
837
838
  title: `${e.value.style.title.text}${e.value.style.title.subtitle.text ? ` : ${e.value.style.title.subtitle.text}` : ""}`,
838
- onClose: o[3] || (o[3] = (l) => _.value.showTable = !1)
839
+ onClose: a[3] || (a[3] = (l) => _.value.showTable = !1)
839
840
  }, {
840
841
  th: x(({ th: l }) => [
841
842
  gt(q(l), 1)
@@ -850,7 +851,7 @@ const Mt = ["id"], Et = ["xmlns", "viewBox"], Bt = ["x", "y", "width", "height"]
850
851
  }, 8, ["config"])) : h("", !0)
851
852
  ], 46, Mt));
852
853
  }
853
- }, Ll = /* @__PURE__ */ Vt(xl, [["__scopeId", "data-v-7e73d8b0"]]);
854
+ }, Ll = /* @__PURE__ */ Vt(xl, [["__scopeId", "data-v-1e1e32d3"]]);
854
855
  export {
855
856
  Ll as default
856
857
  };