vue-data-ui 3.4.7 → 3.4.9

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 (115) hide show
  1. package/dist/{PackageVersion-QNVkHOgG.js → PackageVersion-CTUqGqWV.js} +1 -1
  2. package/dist/{UserOptions-CnzumGJj.js → UserOptions-CGnQt6Fd.js} +91 -91
  3. package/dist/components/vue-ui-3d-bar.js +1 -1
  4. package/dist/components/vue-ui-age-pyramid.js +1 -1
  5. package/dist/components/vue-ui-bullet.js +1 -1
  6. package/dist/components/vue-ui-candlestick.js +1 -1
  7. package/dist/components/vue-ui-carousel-table.js +1 -1
  8. package/dist/components/vue-ui-chestnut.js +1 -1
  9. package/dist/components/vue-ui-chord.js +1 -1
  10. package/dist/components/vue-ui-circle-pack.js +1 -1
  11. package/dist/components/vue-ui-dashboard.js +1 -1
  12. package/dist/components/vue-ui-donut-evolution.js +1 -1
  13. package/dist/components/vue-ui-donut.js +1 -1
  14. package/dist/components/vue-ui-dumbbell.js +1 -1
  15. package/dist/components/vue-ui-flow.js +1 -1
  16. package/dist/components/vue-ui-funnel.js +1 -1
  17. package/dist/components/vue-ui-galaxy.js +1 -1
  18. package/dist/components/vue-ui-gauge.js +1 -1
  19. package/dist/components/vue-ui-gizmo.js +1 -1
  20. package/dist/components/vue-ui-heatmap.js +1 -1
  21. package/dist/components/vue-ui-history-plot.js +1 -1
  22. package/dist/components/vue-ui-horizontal-bar.js +1 -1
  23. package/dist/components/vue-ui-molecule.js +1 -1
  24. package/dist/components/vue-ui-mood-radar.js +1 -1
  25. package/dist/components/vue-ui-nested-donuts.js +1 -1
  26. package/dist/components/vue-ui-onion.js +1 -1
  27. package/dist/components/vue-ui-parallel-coordinate-plot.js +1 -1
  28. package/dist/components/vue-ui-quadrant.js +1 -1
  29. package/dist/components/vue-ui-quick-chart.js +1 -1
  30. package/dist/components/vue-ui-radar.js +1 -1
  31. package/dist/components/vue-ui-relation-circle.js +1 -1
  32. package/dist/components/vue-ui-ridgeline.js +1 -1
  33. package/dist/components/vue-ui-rings.js +1 -1
  34. package/dist/components/vue-ui-scatter.js +1 -1
  35. package/dist/components/vue-ui-skeleton.js +1 -1
  36. package/dist/components/vue-ui-spark-trend.js +1 -1
  37. package/dist/components/vue-ui-sparkbar.js +1 -1
  38. package/dist/components/vue-ui-sparkgauge.js +1 -1
  39. package/dist/components/vue-ui-sparkhistogram.js +1 -1
  40. package/dist/components/vue-ui-sparkline.js +1 -1
  41. package/dist/components/vue-ui-sparkstackbar.js +1 -1
  42. package/dist/components/vue-ui-stackbar.js +1 -1
  43. package/dist/components/vue-ui-strip-plot.js +1 -1
  44. package/dist/components/vue-ui-table-heatmap.js +1 -1
  45. package/dist/components/vue-ui-table-sparkline.js +1 -1
  46. package/dist/components/vue-ui-table.js +1 -1
  47. package/dist/components/vue-ui-thermometer.js +1 -1
  48. package/dist/components/vue-ui-timer.js +1 -1
  49. package/dist/components/vue-ui-tiremarks.js +1 -1
  50. package/dist/components/vue-ui-treemap.js +1 -1
  51. package/dist/components/vue-ui-vertical-bar.js +1 -1
  52. package/dist/components/vue-ui-waffle.js +1 -1
  53. package/dist/components/vue-ui-wheel.js +1 -1
  54. package/dist/components/vue-ui-word-cloud.js +1 -1
  55. package/dist/components/vue-ui-world.js +1 -1
  56. package/dist/components/vue-ui-xy-canvas.js +1 -1
  57. package/dist/components/vue-ui-xy.js +1 -1
  58. package/dist/style.css +1 -1
  59. package/dist/{vue-data-ui-BFwmY6si.js → vue-data-ui-DjxWWa78.js} +55 -55
  60. package/dist/vue-data-ui.js +55 -55
  61. package/dist/{vue-ui-3d-bar-D1GoJWeg.js → vue-ui-3d-bar-CLE7f9pl.js} +49 -42
  62. package/dist/{vue-ui-age-pyramid-BDGFSsA5.js → vue-ui-age-pyramid-D73uIOPm.js} +12 -5
  63. package/dist/{vue-ui-bullet-C3GtE3bF.js → vue-ui-bullet-Bybo0xK2.js} +59 -52
  64. package/dist/{vue-ui-candlestick-BlzmB2vM.js → vue-ui-candlestick-D_FyMdqH.js} +56 -49
  65. package/dist/{vue-ui-carousel-table-TKa7KYZ0.js → vue-ui-carousel-table-BvMlNdVo.js} +79 -72
  66. package/dist/{vue-ui-chestnut-DNxARRsx.js → vue-ui-chestnut-DA0g0bDV.js} +77 -70
  67. package/dist/{vue-ui-chord-BM7tZig3.js → vue-ui-chord-CDgzolI-.js} +71 -64
  68. package/dist/{vue-ui-circle-pack-BZU75WUb.js → vue-ui-circle-pack-BPDm-ro5.js} +58 -51
  69. package/dist/{vue-ui-dashboard-pNXFzQu4.js → vue-ui-dashboard-CeJwbiON.js} +56 -56
  70. package/dist/{vue-ui-donut-CRvfqCUO.js → vue-ui-donut-DjQXHBJE.js} +95 -88
  71. package/dist/{vue-ui-donut-evolution-CCdIWlyZ.js → vue-ui-donut-evolution-Ca3Svr0B.js} +80 -73
  72. package/dist/{vue-ui-dumbbell-CLmwZyrf.js → vue-ui-dumbbell-CxCE2luV.js} +12 -5
  73. package/dist/{vue-ui-flow-BY8XQXKF.js → vue-ui-flow-DEvwXd4W.js} +205 -198
  74. package/dist/{vue-ui-funnel-BmxhWoVW.js → vue-ui-funnel-Bgcx7xia.js} +98 -91
  75. package/dist/{vue-ui-galaxy-BgtKffX5.js → vue-ui-galaxy-BWr1EMob.js} +140 -133
  76. package/dist/{vue-ui-gauge-DLpK4-Cd.js → vue-ui-gauge-DQricvo2.js} +108 -101
  77. package/dist/{vue-ui-gizmo-CCNboEnL.js → vue-ui-gizmo-C-fKe3io.js} +1 -1
  78. package/dist/{vue-ui-heatmap-BSDmuvq8.js → vue-ui-heatmap-B-o_i7Hu.js} +97 -90
  79. package/dist/{vue-ui-history-plot-s8wYm7fn.js → vue-ui-history-plot-DzQ9DPUJ.js} +41 -34
  80. package/dist/{vue-ui-molecule-BYWE2ONy.js → vue-ui-molecule-I2OhrCR2.js} +94 -87
  81. package/dist/{vue-ui-mood-radar-BOvaA1Jq.js → vue-ui-mood-radar-BAT7kZUy.js} +71 -64
  82. package/dist/{vue-ui-nested-donuts-BUGkuN56.js → vue-ui-nested-donuts-CjhJDAQi.js} +93 -86
  83. package/dist/{vue-ui-onion-CPshjlgf.js → vue-ui-onion-DTY2p87s.js} +82 -75
  84. package/dist/{vue-ui-parallel-coordinate-plot-orQotxDr.js → vue-ui-parallel-coordinate-plot-C8aWTcNn.js} +116 -109
  85. package/dist/{vue-ui-quadrant-CM3iH31f.js → vue-ui-quadrant-DGnasrCR.js} +46 -39
  86. package/dist/{vue-ui-quick-chart-BhO2YQn0.js → vue-ui-quick-chart-Cam_sWet.js} +171 -164
  87. package/dist/{vue-ui-radar-CNZVFG-v.js → vue-ui-radar-DNI9WI2R.js} +36 -29
  88. package/dist/{vue-ui-relation-circle-BX48Cgx3.js → vue-ui-relation-circle-Dj1jhcsl.js} +100 -93
  89. package/dist/{vue-ui-ridgeline-MQAF9nvq.js → vue-ui-ridgeline-adIls6bj.js} +23 -16
  90. package/dist/{vue-ui-rings-BPhLSCUX.js → vue-ui-rings-CnTMFK6R.js} +55 -48
  91. package/dist/{vue-ui-scatter-C3dD6T6q.js → vue-ui-scatter-fzR2c0St.js} +189 -182
  92. package/dist/{vue-ui-skeleton-Be8xm0gy.js → vue-ui-skeleton-DUdI2uOO.js} +1 -1
  93. package/dist/{vue-ui-spark-trend-suNsujGP.js → vue-ui-spark-trend-DxpRfUJz.js} +1 -1
  94. package/dist/{vue-ui-sparkbar-BjD2kUth.js → vue-ui-sparkbar-B44oER5n.js} +1 -1
  95. package/dist/{vue-ui-sparkgauge-C816ocz6.js → vue-ui-sparkgauge-ix12NZ7M.js} +1 -1
  96. package/dist/{vue-ui-sparkhistogram-CAgfueUq.js → vue-ui-sparkhistogram-Cs-QDYBR.js} +1 -1
  97. package/dist/{vue-ui-sparkline-BmVwG9vw.js → vue-ui-sparkline-Cb8ZmyUq.js} +1 -1
  98. package/dist/{vue-ui-sparkstackbar-DoFTW_u_.js → vue-ui-sparkstackbar-BiRZ51OU.js} +1 -1
  99. package/dist/{vue-ui-stackbar-C1qHHSuI.js → vue-ui-stackbar-DubS6Pg8.js} +55 -47
  100. package/dist/{vue-ui-strip-plot-Ccz9BiSl.js → vue-ui-strip-plot-BjG-Jxnb.js} +13 -6
  101. package/dist/{vue-ui-table-IKsrsEUh.js → vue-ui-table-DdBdLrAL.js} +2 -2
  102. package/dist/{vue-ui-table-heatmap-B4rjR34n.js → vue-ui-table-heatmap-BqCEBoUf.js} +1 -1
  103. package/dist/{vue-ui-table-sparkline-B71QVMkq.js → vue-ui-table-sparkline-EpCo2Be5.js} +1 -1
  104. package/dist/{vue-ui-thermometer-fY5WxAbX.js → vue-ui-thermometer-DTnfnf9z.js} +83 -76
  105. package/dist/{vue-ui-timer-BBdNJ0fK.js → vue-ui-timer-Br3wp8hG.js} +1 -1
  106. package/dist/{vue-ui-tiremarks-Co0t61HH.js → vue-ui-tiremarks-CrC_tlIx.js} +43 -36
  107. package/dist/{vue-ui-treemap-ujTn_36A.js → vue-ui-treemap-kyuyi2ES.js} +114 -107
  108. package/dist/{vue-ui-vertical-bar-BNp-Vl0q.js → vue-ui-vertical-bar-yfbEfLqy.js} +89 -82
  109. package/dist/{vue-ui-waffle-CRPYb9mZ.js → vue-ui-waffle-m-9sqQik.js} +41 -34
  110. package/dist/{vue-ui-wheel-BvycoQ3Z.js → vue-ui-wheel-BasM7FWt.js} +132 -125
  111. package/dist/{vue-ui-word-cloud-Cjs46-dC.js → vue-ui-word-cloud-vNwswYZD.js} +116 -109
  112. package/dist/{vue-ui-world-BTLAdJeD.js → vue-ui-world-BsCNyZy_.js} +71 -64
  113. package/dist/{vue-ui-xy-CBRHUbAn.js → vue-ui-xy-CIrw1lWQ.js} +163 -156
  114. package/dist/{vue-ui-xy-canvas-BGl_2pHw.js → vue-ui-xy-canvas-DXnLFwW3.js} +1 -1
  115. package/package.json +1 -1
@@ -1,4 +1,4 @@
1
- import { defineAsyncComponent as G, ref as v, computed as c, onMounted as ze, toRefs as Ne, watch as ce, onBeforeUnmount as Ee, createElementBlock as n, openBlock as o, unref as r, normalizeStyle as V, normalizeClass as he, createBlock as x, createCommentVNode as u, createElementVNode as _, createSlots as Ue, withCtx as C, renderSlot as m, normalizeProps as F, guardReactiveProps as T, createVNode as We, Fragment as j, renderList as q, toDisplayString as H, Teleport as De } from "vue";
1
+ import { defineAsyncComponent as G, ref as v, computed as c, onMounted as ze, toRefs as Ne, watch as ce, onBeforeUnmount as Ee, createElementBlock as n, openBlock as o, unref as r, normalizeStyle as V, normalizeClass as he, createBlock as _, createCommentVNode as u, createElementVNode as C, createSlots as Ue, withCtx as b, renderSlot as m, normalizeProps as F, guardReactiveProps as T, createVNode as We, Fragment as j, renderList as q, toDisplayString as H, Teleport as De } from "vue";
2
2
  import { u as Ge, a as de } from "./useNestedProp-BjZe1Y85.js";
3
3
  import { c as Ve, t as je, S as qe, m as Xe, h as Ye, a as M, d as R, X as Je, o as ge, f as fe, g as Ke } from "./lib-C_mNZmhD.js";
4
4
  import { t as Qe, u as Ze } from "./useResponsive-DfdjqQps.js";
@@ -20,11 +20,11 @@ const ct = ["id"], ht = {
20
20
  }, dt = ["id"], gt = ["xmlns", "viewBox"], ft = ["width", "height"], mt = { key: 1 }, yt = ["x", "y", "height", "width", "fill", "stroke"], pt = ["x", "y", "height", "width", "rx", "fill", "stroke", "stroke-width"], bt = ["x", "y", "height", "width", "fill", "stroke", "stroke-width"], kt = ["x", "y", "font-size", "font-weight", "fill"], wt = ["x", "y", "height", "width", "rx", "fill", "stroke", "stroke-width"], xt = { key: 3 }, _t = ["x", "y", "fill", "font-size", "font-weight"], Ct = { key: 4 }, At = ["x1", "x2", "y1", "y2", "stroke"], Lt = {
21
21
  key: 4,
22
22
  class: "vue-data-ui-watermark"
23
- }, $t = ["id"], Ot = {
23
+ }, $t = ["id"], St = {
24
24
  key: 0,
25
25
  class: "vue-ui-bullet-legend-item",
26
26
  dir: "auto"
27
- }, St = { style: { "margin-right": "2px" } }, Bt = {
27
+ }, Ot = { style: { "margin-right": "2px" } }, Bt = {
28
28
  __name: "vue-ui-bullet",
29
29
  props: {
30
30
  config: {
@@ -41,7 +41,7 @@ const ct = ["id"], ht = {
41
41
  }
42
42
  },
43
43
  setup(me, { expose: ye }) {
44
- const pe = G(() => import("./PackageVersion-QNVkHOgG.js")), be = G(() => import("./PenAndPaper-DSvu9dwa.js")), ke = G(() => import("./UserOptions-CnzumGJj.js")), { vue_ui_bullet: we } = Ge(), O = me, y = v(null), X = v(null), Y = v(0), J = v(null), K = v(null), xe = v(0), A = v(null), S = v(null), Q = v(!1), b = c({
44
+ const pe = G(() => import("./PackageVersion-CTUqGqWV.js")), be = G(() => import("./PenAndPaper-DSvu9dwa.js")), ke = G(() => import("./UserOptions-CGnQt6Fd.js")), { vue_ui_bullet: we } = Ge(), S = me, y = v(null), X = v(null), Y = v(0), J = v(null), K = v(null), xe = v(0), A = v(null), O = v(null), Q = v(!1), k = c({
45
45
  get: () => i.value.hasOwnProperty("value"),
46
46
  set: (t) => t
47
47
  }), L = c(() => i.value.segments ? Array.isArray(i.value.segments) ? i.value.segments.length ? !0 : (console.warn(`VueUiBullet: dataset segments is empty. Provide segments with this datastructure:
@@ -55,7 +55,7 @@ segments: [
55
55
  },
56
56
  {...}
57
57
  ]
58
- `), b.value = !1, !1) : (console.warn(`VueUiBullet: dataset segments must be an array of objects with this datastructure:
58
+ `), k.value = !1, !1) : (console.warn(`VueUiBullet: dataset segments must be an array of objects with this datastructure:
59
59
 
60
60
  segments: [
61
61
  {
@@ -66,7 +66,7 @@ segments: [
66
66
  },
67
67
  {...}
68
68
  ]
69
- `), b.value = !1, !1) : (console.warn(`VueUiBullet: dataset segments is empty. Provide segments with this datastructure:
69
+ `), k.value = !1, !1) : (console.warn(`VueUiBullet: dataset segments is empty. Provide segments with this datastructure:
70
70
 
71
71
  segments: [
72
72
  {
@@ -77,7 +77,7 @@ segments: [
77
77
  },
78
78
  {...}
79
79
  ]
80
- `), b.value = !1, !1)), Z = c(() => !!e.value.debug);
80
+ `), k.value = !1, !1)), Z = c(() => !!e.value.debug);
81
81
  function ee() {
82
82
  if (ge(i.value) ? (fe({
83
83
  componentName: "VueUiBullet",
@@ -88,7 +88,7 @@ segments: [
88
88
  datasetObject: t,
89
89
  requiredAttributes: ["name", "from", "to"]
90
90
  }).forEach((a) => {
91
- b.value = !1, fe({
91
+ k.value = !1, fe({
92
92
  componentName: "VueUiBullet segment",
93
93
  type: "datasetSerieAttribute",
94
94
  property: a,
@@ -96,7 +96,7 @@ segments: [
96
96
  debug: Z.value
97
97
  });
98
98
  });
99
- }) : (b.value = !1, B.value = !0), ge(i.value) || (B.value = e.value.loading), e.value.responsive) {
99
+ }) : (k.value = !1, B.value = !0), ge(i.value) || (B.value = e.value.loading), e.value.responsive) {
100
100
  const t = Qe(() => {
101
101
  const { width: s, height: a } = Ze({
102
102
  chart: y.value,
@@ -108,9 +108,9 @@ segments: [
108
108
  I.value.width = s, I.value.height = a - 12;
109
109
  });
110
110
  });
111
- A.value && (S.value && A.value.unobserve(S.value), A.value.disconnect()), A.value = new ResizeObserver(t), S.value = y.value.parentNode, A.value.observe(S.value);
111
+ A.value && (O.value && A.value.unobserve(O.value), A.value.disconnect()), A.value = new ResizeObserver(t), O.value = y.value.parentNode, A.value.observe(O.value);
112
112
  }
113
- e.value.style.chart.animation.show && !k.value && se(i.value.value || 0);
113
+ e.value.style.chart.animation.show && !w.value && se(i.value.value || 0);
114
114
  }
115
115
  ze(() => {
116
116
  Q.value = !0, ee();
@@ -118,18 +118,18 @@ segments: [
118
118
  const p = v(Ve());
119
119
  function z() {
120
120
  const t = de({
121
- userConfig: O.config,
121
+ userConfig: S.config,
122
122
  defaultConfig: we
123
123
  });
124
124
  return t.theme ? {
125
125
  ...de({
126
- userConfig: lt.vue_ui_bullet[t.theme] || O.config,
126
+ userConfig: lt.vue_ui_bullet[t.theme] || S.config,
127
127
  defaultConfig: t
128
128
  })
129
129
  } : t;
130
130
  }
131
- const e = v(z()), { loading: k, FINAL_DATASET: i, manualLoading: B } = nt({
132
- ...Ne(O),
131
+ const e = v(z()), { loading: w, FINAL_DATASET: i, manualLoading: B } = nt({
132
+ ...Ne(S),
133
133
  FINAL_CONFIG: e,
134
134
  prepareConfig: z,
135
135
  skeletonDataset: {
@@ -177,23 +177,23 @@ segments: [
177
177
  }
178
178
  })
179
179
  }), { userOptionsVisible: N, setUserOptionsVisibility: te, keepUserOptionState: ae } = tt({ config: e.value }), { svgRef: E } = at({ config: e.value.style.chart.title });
180
- ce(() => O.config, (t) => {
181
- k.value || (e.value = z()), N.value = !e.value.userOptions.showOnChartHover, ee(), Y.value += 1;
180
+ ce(() => S.config, (t) => {
181
+ w.value || (e.value = z()), N.value = !e.value.userOptions.showOnChartHover, ee(), Y.value += 1;
182
182
  }, { deep: !0 });
183
183
  const I = v({
184
184
  width: e.value.style.chart.width,
185
185
  height: e.value.style.chart.height
186
186
  }), _e = c(() => I.value.width), Ce = c(() => I.value.height), l = c(() => {
187
- const t = Ce.value, s = _e.value, a = e.value.style.chart.padding.left, h = s - e.value.style.chart.padding.right, w = e.value.style.chart.padding.top, d = t - e.value.style.chart.padding.bottom;
187
+ const t = Ce.value, s = _e.value, a = e.value.style.chart.padding.left, h = s - e.value.style.chart.padding.right, x = e.value.style.chart.padding.top, d = t - e.value.style.chart.padding.bottom;
188
188
  return {
189
189
  height: Math.max(1e-3, t),
190
190
  width: Math.max(1e-3, s),
191
191
  left: a,
192
192
  right: h,
193
- top: w,
193
+ top: x,
194
194
  bottom: d,
195
195
  chartWidth: Math.max(1e-3, h - a),
196
- chartHeight: Math.max(1e-3, d - w)
196
+ chartHeight: Math.max(1e-3, d - x)
197
197
  };
198
198
  }), Ae = c(() => {
199
199
  if (!L.value) return [];
@@ -206,10 +206,10 @@ segments: [
206
206
  max: Math.max(...i.value.segments.map((t) => t.to))
207
207
  } : { min: 0, max: 1 }), g = v(Le());
208
208
  ce(() => i.value, (t) => {
209
- t.hasOwnProperty("value") && (B.value = !1), e.value.style.chart.animation.show && !k.value ? se(t.value || 0) : g.value = t.value || 0;
209
+ t.hasOwnProperty("value") && (B.value = !1), e.value.style.chart.animation.show && !w.value ? se(t.value || 0) : g.value = t.value || 0;
210
210
  }, { deep: !0 });
211
211
  function Le() {
212
- return e.value.style.chart.animation.show && !k.value ? U.value.min : i.value.value || 0;
212
+ return e.value.style.chart.animation.show && !w.value ? U.value.min : i.value.value || 0;
213
213
  }
214
214
  const le = v(null);
215
215
  function se(t) {
@@ -229,7 +229,7 @@ segments: [
229
229
  x: l.value.left + (i.value.target + s) / (t.max + s) * l.value.chartWidth - e.value.style.chart.target.width / 2
230
230
  }, h = {
231
231
  width: (g.value + s) / (t.max + s) * l.value.chartWidth
232
- }, w = t.ticks.map((d) => ({
232
+ }, x = t.ticks.map((d) => ({
233
233
  value: d,
234
234
  y: l.value.bottom + e.value.style.chart.segments.dataLabels.fontSize + 3 + e.value.style.chart.segments.dataLabels.offsetY,
235
235
  x: l.value.left + (d + s) / (t.max + s) * l.value.chartWidth
@@ -238,7 +238,7 @@ segments: [
238
238
  scale: t,
239
239
  target: a,
240
240
  value: h,
241
- ticks: w,
241
+ ticks: x,
242
242
  chunks: i.value.segments.map((d, Re) => ({
243
243
  ...d,
244
244
  color: d.color ? Ye(d.color) : Ae.value[Re],
@@ -285,11 +285,11 @@ segments: [
285
285
  elementId: `bullet_${p.value}`,
286
286
  fileName: e.value.style.chart.title.text || "vue-ui-bullet",
287
287
  options: e.value.userOptions.print
288
- }), Oe = c(() => e.value.userOptions.show && !e.value.style.chart.title.text), $ = v(!1);
288
+ }), Se = c(() => e.value.userOptions.show && !e.value.style.chart.title.text), $ = v(!1);
289
289
  function ie(t) {
290
290
  $.value = t, xe.value += 1;
291
291
  }
292
- function Se() {
292
+ function Oe() {
293
293
  return f.value;
294
294
  }
295
295
  const P = v(!1);
@@ -298,9 +298,9 @@ segments: [
298
298
  }
299
299
  async function Be({ scale: t = 2 } = {}) {
300
300
  if (!y.value) return;
301
- const { width: s, height: a } = y.value.getBoundingClientRect(), h = s / a, { imageUri: w, base64: d } = await rt({ domElement: y.value, base64: !0, img: !0, scale: t });
301
+ const { width: s, height: a } = y.value.getBoundingClientRect(), h = s / a, { imageUri: x, base64: d } = await rt({ domElement: y.value, base64: !0, img: !0, scale: t });
302
302
  return {
303
- imageUri: w,
303
+ imageUri: x,
304
304
  base64: d,
305
305
  title: e.value.style.chart.title.text,
306
306
  width: s,
@@ -322,7 +322,7 @@ segments: [
322
322
  t ? e.value.userOptions.callbacks.svg(Me()) : He();
323
323
  }
324
324
  return ye({
325
- getData: Se,
325
+ getData: Oe,
326
326
  getImage: Be,
327
327
  generatePdf: ne,
328
328
  generateImage: ue,
@@ -338,7 +338,7 @@ segments: [
338
338
  onMouseenter: s[0] || (s[0] = () => r(te)(!0)),
339
339
  onMouseleave: s[1] || (s[1] = () => r(te)(!1))
340
340
  }, [
341
- e.value.userOptions.buttons.annotator ? (o(), x(r(be), {
341
+ e.value.userOptions.buttons.annotator ? (o(), _(r(be), {
342
342
  key: 0,
343
343
  svgRef: r(E),
344
344
  backgroundColor: e.value.style.chart.backgroundColor,
@@ -346,14 +346,14 @@ segments: [
346
346
  active: P.value,
347
347
  onClose: D
348
348
  }, null, 8, ["svgRef", "backgroundColor", "color", "active"])) : u("", !0),
349
- Oe.value ? (o(), n("div", ht, null, 512)) : u("", !0),
349
+ Se.value ? (o(), n("div", ht, null, 512)) : u("", !0),
350
350
  e.value.style.chart.title.text ? (o(), n("div", {
351
351
  key: 2,
352
352
  ref_key: "chartTitle",
353
353
  ref: X,
354
354
  style: "width:100%;background:transparent;"
355
355
  }, [
356
- (o(), x(ot, {
356
+ (o(), _(ot, {
357
357
  lineHeight: "1.3rem",
358
358
  key: `title_${Y.value}`,
359
359
  config: {
@@ -368,10 +368,10 @@ segments: [
368
368
  }
369
369
  }, null, 8, ["config"]))
370
370
  ], 512)) : u("", !0),
371
- _("div", {
371
+ C("div", {
372
372
  id: `legend-top-${p.value}`
373
373
  }, null, 8, dt),
374
- e.value.userOptions.show && b.value && (r(ae) || r(N)) ? (o(), x(r(ke), {
374
+ e.value.userOptions.show && k.value && (r(ae) || r(N)) ? (o(), _(r(ke), {
375
375
  key: 3,
376
376
  ref: "details",
377
377
  backgroundColor: e.value.style.chart.backgroundColor,
@@ -406,38 +406,45 @@ segments: [
406
406
  }, Ue({ _: 2 }, [
407
407
  t.$slots.menuIcon ? {
408
408
  name: "menuIcon",
409
- fn: C(({ isOpen: a, color: h }) => [
409
+ fn: b(({ isOpen: a, color: h }) => [
410
410
  m(t.$slots, "menuIcon", F(T({ isOpen: a, color: h })), void 0, !0)
411
411
  ]),
412
412
  key: "0"
413
413
  } : void 0,
414
414
  t.$slots.optionPdf ? {
415
415
  name: "optionPdf",
416
- fn: C(() => [
416
+ fn: b(() => [
417
417
  m(t.$slots, "optionPdf", {}, void 0, !0)
418
418
  ]),
419
419
  key: "1"
420
420
  } : void 0,
421
421
  t.$slots.optionImg ? {
422
422
  name: "optionImg",
423
- fn: C(() => [
423
+ fn: b(() => [
424
424
  m(t.$slots, "optionImg", {}, void 0, !0)
425
425
  ]),
426
426
  key: "2"
427
427
  } : void 0,
428
+ t.$slots.optionSvg ? {
429
+ name: "optionSvg",
430
+ fn: b(() => [
431
+ m(t.$slots, "optionSvg", {}, void 0, !0)
432
+ ]),
433
+ key: "3"
434
+ } : void 0,
428
435
  t.$slots.optionFullscreen ? {
429
436
  name: "optionFullscreen",
430
- fn: C(({ toggleFullscreen: a, isFullscreen: h }) => [
437
+ fn: b(({ toggleFullscreen: a, isFullscreen: h }) => [
431
438
  m(t.$slots, "optionFullscreen", F(T({ toggleFullscreen: a, isFullscreen: h })), void 0, !0)
432
439
  ]),
433
- key: "3"
440
+ key: "4"
434
441
  } : void 0,
435
442
  t.$slots.optionAnnotator ? {
436
443
  name: "optionAnnotator",
437
- fn: C(({ toggleAnnotator: a, isAnnotator: h }) => [
444
+ fn: b(({ toggleAnnotator: a, isAnnotator: h }) => [
438
445
  m(t.$slots, "optionAnnotator", F(T({ toggleAnnotator: a, isAnnotator: h })), void 0, !0)
439
446
  ]),
440
- key: "4"
447
+ key: "5"
441
448
  } : void 0
442
449
  ]), 1032, ["backgroundColor", "color", "isPrinting", "isImaging", "uid", "hasPdf", "hasImg", "hasSvg", "hasFullscreen", "isFullscreen", "chartElement", "position", "titles", "hasAnnotator", "isAnnotation", "callbacks", "printScale", "onGeneratePdf", "onGenerateImage", "style"])) : u("", !0),
443
450
  (o(), n("svg", {
@@ -483,7 +490,7 @@ segments: [
483
490
  stroke: e.value.style.chart.target.stroke,
484
491
  "stroke-width": e.value.style.chart.target.strokeWidth
485
492
  }, null, 8, pt)) : u("", !0),
486
- _("rect", {
493
+ C("rect", {
487
494
  x: l.value.left,
488
495
  y: l.value.top + (l.value.chartHeight - l.value.chartHeight * e.value.style.chart.valueBar.heightRatio) / 2,
489
496
  height: l.value.chartHeight * e.value.style.chart.valueBar.heightRatio,
@@ -558,27 +565,27 @@ segments: [
558
565
  t.$slots.watermark ? (o(), n("div", Lt, [
559
566
  m(t.$slots, "watermark", F(T({ isPrinting: r(oe) || r(re) })), void 0, !0)
560
567
  ])) : u("", !0),
561
- _("div", {
568
+ C("div", {
562
569
  id: `legend-bottom-${p.value}`
563
570
  }, null, 8, $t),
564
- Q.value ? (o(), x(De, {
571
+ Q.value ? (o(), _(De, {
565
572
  key: 5,
566
573
  to: e.value.style.chart.legend.position === "top" ? `#legend-top-${p.value}` : `#legend-bottom-${p.value}`
567
574
  }, [
568
- _("div", {
575
+ C("div", {
569
576
  ref_key: "chartLegend",
570
577
  ref: J
571
578
  }, [
572
- e.value.style.chart.legend.show ? (o(), x(st, {
579
+ e.value.style.chart.legend.show ? (o(), _(st, {
573
580
  key: 0,
574
581
  clickable: !1,
575
582
  legendSet: W.value,
576
583
  config: $e.value
577
584
  }, {
578
- item: C(({ legend: a }) => [
579
- r(k) ? u("", !0) : (o(), n("div", Ot, [
580
- _("span", St, H(a.name) + ":", 1),
581
- _("span", null, H(a.value), 1)
585
+ item: b(({ legend: a }) => [
586
+ r(w) ? u("", !0) : (o(), n("div", St, [
587
+ C("span", Ot, H(a.name) + ":", 1),
588
+ C("span", null, H(a.value), 1)
582
589
  ]))
583
590
  ]),
584
591
  _: 1
@@ -594,10 +601,10 @@ segments: [
594
601
  }, [
595
602
  m(t.$slots, "source", {}, void 0, !0)
596
603
  ], 512)) : u("", !0),
597
- r(k) ? (o(), x(ut, { key: 7 })) : u("", !0)
604
+ r(w) ? (o(), _(ut, { key: 7 })) : u("", !0)
598
605
  ], 46, ct));
599
606
  }
600
- }, Vt = /* @__PURE__ */ vt(Bt, [["__scopeId", "data-v-fd9177ca"]]);
607
+ }, Vt = /* @__PURE__ */ vt(Bt, [["__scopeId", "data-v-6daaa51f"]]);
601
608
  export {
602
609
  Vt as default
603
610
  };