vue-data-ui 2.16.6 → 2.17.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (92) hide show
  1. package/README.md +83 -53
  2. package/dist/{Arrow-DCqxVwey.js → Arrow-BAEkZGzL.js} +1 -1
  3. package/dist/{BaseDraggableDialog-6DIKXIBU.js → BaseDraggableDialog-ChCkcmj_.js} +2 -2
  4. package/dist/{BaseIcon-Bn996RXm.js → BaseIcon-naqtCxVi.js} +1 -1
  5. package/dist/{ColorPicker-OFfLkKNb.js → ColorPicker-CfIPgxcj.js} +2 -2
  6. package/dist/{DataTable-CHBLjKtZ.js → DataTable-D0VYDhfx.js} +2 -2
  7. package/dist/{Legend-nBXoxXJH.js → Legend-Bxlv67uY.js} +2 -2
  8. package/dist/{NonSvgPenAndPaper-Cls2idJS.js → NonSvgPenAndPaper-b_oVy-Dd.js} +3 -3
  9. package/dist/{PackageVersion-Bg_9KCU-.js → PackageVersion-5TR4ocqp.js} +1 -1
  10. package/dist/{PenAndPaper-BPTpbnay.js → PenAndPaper-D6AqipIO.js} +32 -32
  11. package/dist/{Shape-Bnf512BA.js → Shape-DtFT5EJa.js} +1 -1
  12. package/dist/{Slicer-BrqtJG2E.js → Slicer-CL6-MRI6.js} +2 -2
  13. package/dist/{SparkTooltip-C-rLATAw.js → SparkTooltip-Bcv1aoA5.js} +1 -1
  14. package/dist/{Title-Gi81VwUM.js → Title-B-2bV0SW.js} +1 -1
  15. package/dist/{Tooltip-CJxVw7-T.js → Tooltip-CoQnTnr-.js} +1 -1
  16. package/dist/{UserOptions-CBEK6_jo.js → UserOptions-Dd34lEKb.js} +2 -2
  17. package/dist/{dom-to-png-CRHNL8VU.js → dom-to-png-2AA0wHlX.js} +1 -1
  18. package/dist/{img-BgOg8opa.js → img-Y_hYz-ZC.js} +1 -1
  19. package/dist/{index-DvIXJm6t.js → index-pPGk-uhD.js} +1 -1
  20. package/dist/{pdf-DhTxBrbJ.js → pdf-yfk3d1is.js} +1 -1
  21. package/dist/style.css +1 -1
  22. package/dist/types/vue-data-ui.d.cts +1096 -160
  23. package/dist/types/vue-data-ui.d.ts +1096 -160
  24. package/dist/{useNestedProp-DrYHm61t.js → useNestedProp-DjACxgdZ.js} +1 -1
  25. package/dist/{usePrinter-CWnXbGMb.js → usePrinter-DDHcrl0A.js} +2 -2
  26. package/dist/vue-data-ui-CIWxgKjd.js +312 -0
  27. package/dist/vue-data-ui.js +1 -1
  28. package/dist/{vue-ui-3d-bar-CtlB4p7i.js → vue-ui-3d-bar-D5Wpdqfk.js} +228 -220
  29. package/dist/{vue-ui-accordion-D55kCO5G.js → vue-ui-accordion-CVnA550V.js} +3 -3
  30. package/dist/{vue-ui-age-pyramid-DSshyUn-.js → vue-ui-age-pyramid-BuAl-zC5.js} +179 -171
  31. package/dist/{vue-ui-annotator-DQSMv_k2.js → vue-ui-annotator-gl2A20m3.js} +2 -2
  32. package/dist/{vue-ui-bullet-FeScjj7q.js → vue-ui-bullet-D-VMKpwe.js} +127 -119
  33. package/dist/{vue-ui-candlestick-Drupgyoi.js → vue-ui-candlestick-1r6YwiUV.js} +194 -186
  34. package/dist/{vue-ui-carousel-table-BTZQRZfO.js → vue-ui-carousel-table-B6UJoNtP.js} +4 -4
  35. package/dist/{vue-ui-chestnut-DLWjPwRL.js → vue-ui-chestnut-DnlBYpC5.js} +226 -218
  36. package/dist/{vue-ui-chord-BgLbFBT9.js → vue-ui-chord-D3kpzYjp.js} +175 -167
  37. package/dist/{vue-ui-circle-pack-VXcRh2gy.js → vue-ui-circle-pack-CHgdpoYu.js} +188 -180
  38. package/dist/{vue-ui-cursor-DWmfnM25.js → vue-ui-cursor-63EAvElT.js} +2 -2
  39. package/dist/{vue-ui-dashboard-CGIocEHj.js → vue-ui-dashboard-Da6CPET-.js} +62 -62
  40. package/dist/{vue-ui-digits-BgQch3Fc.js → vue-ui-digits-CA8pUKej.js} +2 -2
  41. package/dist/{vue-ui-donut-B59bCV5_.js → vue-ui-donut-CKa7nFjt.js} +329 -321
  42. package/dist/{vue-ui-donut-evolution-CI8qBIQd.js → vue-ui-donut-evolution-qeBEA4W8.js} +245 -237
  43. package/dist/{vue-ui-dumbbell-CXv7sk88.js → vue-ui-dumbbell-Bm0PvAKT.js} +144 -136
  44. package/dist/{vue-ui-flow-DxF0ELtv.js → vue-ui-flow-C2dqXvrU.js} +169 -161
  45. package/dist/{vue-ui-funnel-Bco8rqF8.js → vue-ui-funnel-Dvy5rRld.js} +132 -124
  46. package/dist/{vue-ui-galaxy-CaPJwwOj.js → vue-ui-galaxy-Y8LYp5n2.js} +168 -160
  47. package/dist/{vue-ui-gauge-D7arhDmb.js → vue-ui-gauge-BBo0jWAP.js} +164 -156
  48. package/dist/{vue-ui-gizmo-Dwli-Mip.js → vue-ui-gizmo-DjXfTOWn.js} +3 -3
  49. package/dist/{vue-ui-heatmap-Cyn-ahGO.js → vue-ui-heatmap-BbxRpltP.js} +240 -228
  50. package/dist/{vue-ui-history-plot-C2AEToqx.js → vue-ui-history-plot-ChYf3Nvc.js} +214 -206
  51. package/dist/{vue-ui-kpi-DKDibSdl.js → vue-ui-kpi-Vfc5-JnE.js} +3 -3
  52. package/dist/{vue-ui-mini-loader-B8OVutUx.js → vue-ui-mini-loader-C0-Nsz8K.js} +2 -2
  53. package/dist/{vue-ui-molecule-BVSrqIGw.js → vue-ui-molecule-B7Yu7vzF.js} +158 -150
  54. package/dist/{vue-ui-mood-radar-DvlyS3RN.js → vue-ui-mood-radar-C8JUTwNw.js} +128 -120
  55. package/dist/{vue-ui-nested-donuts-D9ssSus6.js → vue-ui-nested-donuts-D0RgFifU.js} +196 -188
  56. package/dist/{vue-ui-onion-Buu4VX3u.js → vue-ui-onion-D4U7TL_N.js} +166 -158
  57. package/dist/{vue-ui-parallel-coordinate-plot-DFLUvhxD.js → vue-ui-parallel-coordinate-plot-CXMT7Rjr.js} +186 -178
  58. package/dist/{vue-ui-quadrant-BMC7NBGd.js → vue-ui-quadrant-B13pTVVZ.js} +182 -174
  59. package/dist/{vue-ui-quick-chart-DB9RKUkb.js → vue-ui-quick-chart-C0UL4o63.js} +305 -297
  60. package/dist/{vue-ui-radar-68NMPxxQ.js → vue-ui-radar-XpdiXnhz.js} +167 -159
  61. package/dist/{vue-ui-rating-swH9kRr3.js → vue-ui-rating-CM8ZrUb1.js} +2 -2
  62. package/dist/{vue-ui-relation-circle-CT-EdSjO.js → vue-ui-relation-circle-CYoFNekk.js} +144 -136
  63. package/dist/{vue-ui-ridgeline-DftROPaX.js → vue-ui-ridgeline-QUquE6ck.js} +196 -188
  64. package/dist/{vue-ui-rings-M-9dPI5D.js → vue-ui-rings-DwT0IfOh.js} +145 -137
  65. package/dist/{vue-ui-scatter-CsGhaFJh.js → vue-ui-scatter-zDpy1udm.js} +179 -172
  66. package/dist/{vue-ui-skeleton-BAOt2neL.js → vue-ui-skeleton-DJPjyNYn.js} +3 -3
  67. package/dist/{vue-ui-smiley-7_kIgPg-.js → vue-ui-smiley-DoDXl6k0.js} +2 -2
  68. package/dist/{vue-ui-spark-trend-DHlQQpwz.js → vue-ui-spark-trend-CniV6Cpr.js} +3 -3
  69. package/dist/{vue-ui-sparkbar-BnHhzuKf.js → vue-ui-sparkbar-Ds2ITgwn.js} +3 -3
  70. package/dist/{vue-ui-sparkgauge-WtfkCK8g.js → vue-ui-sparkgauge-CosfK-kw.js} +3 -3
  71. package/dist/{vue-ui-sparkhistogram-B2u4XLVd.js → vue-ui-sparkhistogram-C7O1wPAJ.js} +4 -4
  72. package/dist/{vue-ui-sparkline-DKIyUlSm.js → vue-ui-sparkline-B_iUj3F2.js} +3 -3
  73. package/dist/{vue-ui-sparkstackbar-BLGz2qIb.js → vue-ui-sparkstackbar-DBhWrysr.js} +3 -3
  74. package/dist/{vue-ui-stackbar-BDpMsTYe.js → vue-ui-stackbar-C3aV4IcL.js} +240 -232
  75. package/dist/{vue-ui-strip-plot-5qDcYPnR.js → vue-ui-strip-plot-Bvr1GAzH.js} +204 -196
  76. package/dist/{vue-ui-table-Bg5HIQ3O.js → vue-ui-table-DQKKRgyo.js} +3 -3
  77. package/dist/{vue-ui-table-heatmap-DmjNy1q1.js → vue-ui-table-heatmap-Dyqj5XJC.js} +5 -5
  78. package/dist/{vue-ui-table-sparkline-CnkJkBk5.js → vue-ui-table-sparkline-D4RubyLj.js} +4 -4
  79. package/dist/{vue-ui-thermometer-RlD-9mJf.js → vue-ui-thermometer-B0FKI5cG.js} +145 -137
  80. package/dist/{vue-ui-timer-Bes74INL.js → vue-ui-timer-DUCBRIl-.js} +5 -5
  81. package/dist/{vue-ui-tiremarks-DiLS3akQ.js → vue-ui-tiremarks-CRt4UQZD.js} +108 -100
  82. package/dist/vue-ui-treemap-CWP5nYDx.js +961 -0
  83. package/dist/{vue-ui-vertical-bar-CwqQyZFX.js → vue-ui-vertical-bar-C5fPYltO.js} +278 -270
  84. package/dist/{vue-ui-waffle-Ce3T4BPp.js → vue-ui-waffle-BpWLlfpg.js} +188 -180
  85. package/dist/{vue-ui-wheel-6B0WTkf2.js → vue-ui-wheel-CTzuCroy.js} +112 -104
  86. package/dist/{vue-ui-word-cloud-ByYZCOh7.js → vue-ui-word-cloud-BPokdaP1.js} +198 -190
  87. package/dist/{vue-ui-world-B9PxVO4n.js → vue-ui-world-CS6k-oil.js} +199 -191
  88. package/dist/{vue-ui-xy-DtJ7qJib.js → vue-ui-xy-CQ425kLR.js} +550 -544
  89. package/dist/{vue-ui-xy-canvas-S6YpFgzs.js → vue-ui-xy-canvas-D2IFwAr7.js} +306 -298
  90. package/package.json +1 -1
  91. package/dist/vue-data-ui-B8EWlMIK.js +0 -301
  92. package/dist/vue-ui-treemap-BG1Omm38.js +0 -953
@@ -1,22 +1,23 @@
1
- import { useCssVars as De, defineAsyncComponent as H, computed as se, ref as g, watch as ye, shallowRef as Fe, onMounted as Ee, onBeforeUnmount as Ue, createElementBlock as N, openBlock as x, unref as r, normalizeStyle as he, createBlock as ie, createCommentVNode as B, createVNode as we, createSlots as Ge, withCtx as A, renderSlot as F, normalizeProps as Q, guardReactiveProps as ee, normalizeClass as Me, createElementVNode as ke, Fragment as Le, renderList as He, toDisplayString as Pe, createTextVNode as je, nextTick as ze } from "vue";
2
- import { u as qe, c as Oe, ak as Ze, v as Je, t as Ke, p as me, a as Qe, o as et, e as Ae, g as tt, f as ot, X as at, q as lt, r as nt, x as st } from "./index-DvIXJm6t.js";
3
- import { t as it, u as rt, d as ut } from "./useResponsive-DfdjqQps.js";
4
- import { u as Ne } from "./useNestedProp-DrYHm61t.js";
5
- import { u as ct } from "./usePrinter-CWnXbGMb.js";
6
- import { u as dt } from "./useUserOptionState-BIvW1Kz7.js";
7
- import { u as vt } from "./useChartAccessibility-9icAAmYg.js";
8
- import { u as ht } from "./usePanZoom-BQMvRXEQ.js";
9
- import mt from "./Title-Gi81VwUM.js";
10
- import { _ as ft } from "./_plugin-vue_export-helper-CHgC5LLL.js";
11
- function pt(w, p) {
1
+ import { useCssVars as Ue, defineAsyncComponent as H, computed as se, ref as g, watch as ye, shallowRef as Me, onMounted as De, onBeforeUnmount as Ge, createElementBlock as I, openBlock as x, unref as r, normalizeStyle as he, createBlock as ie, createCommentVNode as B, createVNode as we, createSlots as Le, withCtx as A, renderSlot as M, normalizeProps as Q, guardReactiveProps as ee, normalizeClass as Pe, createElementVNode as ke, Fragment as He, renderList as je, toDisplayString as ze, createTextVNode as qe, nextTick as Oe } from "vue";
2
+ import { u as Ze, c as Ae, ak as Je, v as Ke, t as Qe, p as me, a as et, o as tt, e as Ie, g as ot, f as at, X as lt, q as nt, r as st, x as it } from "./index-pPGk-uhD.js";
3
+ import { t as rt, u as ut, d as ct } from "./useResponsive-DfdjqQps.js";
4
+ import { u as Ne } from "./useNestedProp-DjACxgdZ.js";
5
+ import { u as dt } from "./usePrinter-DDHcrl0A.js";
6
+ import { u as vt } from "./useUserOptionState-BIvW1Kz7.js";
7
+ import { u as ht } from "./useChartAccessibility-9icAAmYg.js";
8
+ import { u as mt } from "./usePanZoom-BQMvRXEQ.js";
9
+ import ft from "./Title-B-2bV0SW.js";
10
+ import pt from "./img-Y_hYz-ZC.js";
11
+ import { _ as gt } from "./_plugin-vue_export-helper-CHgC5LLL.js";
12
+ function bt(w, p) {
12
13
  const { width: u, height: f } = w, m = p.getImageData(0, 0, u, f).data;
13
- let l = u, a = f, s = 0, k = 0, d = !1;
14
+ let l = u, a = f, i = 0, k = 0, d = !1;
14
15
  for (let h = 0; h < f; h += 1)
15
16
  for (let b = 0; b < u; b += 1)
16
- m[(h * u + b) * 4 + 3] > 1 && (d = !0, b < l && (l = b), b > s && (s = b), h < a && (a = h), h > k && (k = h));
17
- return d ? [l, a, s, k] : [0, 0, 0, 0];
17
+ m[(h * u + b) * 4 + 3] > 1 && (d = !0, b < l && (l = b), b > i && (i = b), h < a && (a = h), h > k && (k = h));
18
+ return d ? [l, a, i, k] : [0, 0, 0, 0];
18
19
  }
19
- function Ie({
20
+ function _e({
20
21
  word: w,
21
22
  fontSize: p,
22
23
  pad: u,
@@ -25,93 +26,93 @@ function Ie({
25
26
  svg: m
26
27
  }) {
27
28
  c.save(), c.font = `${m.style && m.style.bold ? "bold " : ""}${p}px Arial`;
28
- const l = c.measureText(w.name), a = Math.ceil(l.width) + 2 + (u ? u * 2 : 0), s = Math.ceil(p) + 2 + (u ? u * 2 : 0);
29
- f.width = a, f.height = s, c.clearRect(0, 0, a, s), c.font = `${m.style && m.style.bold ? "bold " : ""}${p}px Arial`, c.textAlign = "center", c.textBaseline = "middle", c.fillStyle = "black", c.fillText(w.name, a / 2, s / 2);
30
- const d = c.getImageData(0, 0, a, s).data, h = [];
31
- for (let _ = 0; _ < s; _ += 1)
29
+ const l = c.measureText(w.name), a = Math.ceil(l.width) + 2 + (u ? u * 2 : 0), i = Math.ceil(p) + 2 + (u ? u * 2 : 0);
30
+ f.width = a, f.height = i, c.clearRect(0, 0, a, i), c.font = `${m.style && m.style.bold ? "bold " : ""}${p}px Arial`, c.textAlign = "center", c.textBaseline = "middle", c.fillStyle = "black", c.fillText(w.name, a / 2, i / 2);
31
+ const d = c.getImageData(0, 0, a, i).data, h = [];
32
+ for (let _ = 0; _ < i; _ += 1)
32
33
  for (let Y = 0; Y < a; Y += 1)
33
34
  d[(_ * a + Y) * 4 + 3] > 1 && h.push([Y, _]);
34
- const [b, E, P, I] = pt(f, c);
35
- return c.restore(), { w: a, h: s, wordMask: h, minX: b, minY: E, maxX: P, maxY: I };
35
+ const [b, U, S, N] = bt(f, c);
36
+ return c.restore(), { w: a, h: i, wordMask: h, minX: b, minY: U, maxX: S, maxY: N };
36
37
  }
37
- function _e({ mask: w, maskW: p, maskH: u, wx: f, wy: c, wordMask: m }) {
38
+ function Re({ mask: w, maskW: p, maskH: u, wx: f, wy: c, wordMask: m }) {
38
39
  for (let l = 0; l < m.length; l += 1) {
39
- const a = f + m[l][0], s = c + m[l][1];
40
- if (a < 0 || s < 0 || a >= p || s >= u || w[s * p + a]) return !1;
40
+ const a = f + m[l][0], i = c + m[l][1];
41
+ if (a < 0 || i < 0 || a >= p || i >= u || w[i * p + a]) return !1;
41
42
  }
42
43
  return !0;
43
44
  }
44
- function Re({ mask: w, maskW: p, maskH: u, wx: f, wy: c, wordMask: m }) {
45
+ function Xe({ mask: w, maskW: p, maskH: u, wx: f, wy: c, wordMask: m }) {
45
46
  for (let l = 0; l < m.length; l += 1) {
46
- const a = f + m[l][0], s = c + m[l][1];
47
- a >= 0 && s >= 0 && a < p && s < u && (w[s * p + a] = 1);
47
+ const a = f + m[l][0], i = c + m[l][1];
48
+ a >= 0 && i >= 0 && a < p && i < u && (w[i * p + a] = 1);
48
49
  }
49
50
  }
50
- function gt({ wordMask: w, w: p, h: u, dilation: f }) {
51
+ function yt({ wordMask: w, w: p, h: u, dilation: f }) {
51
52
  const c = new Set(w.map(([l, a]) => `${l},${a}`)), m = new Set(c);
52
53
  for (let [l, a] of w)
53
- for (let s = -f; s <= f; s += 1)
54
+ for (let i = -f; i <= f; i += 1)
54
55
  for (let k = -f; k <= f; k += 1) {
55
- if (s === 0 && k === 0) continue;
56
- const d = l + s, h = a + k;
56
+ if (i === 0 && k === 0) continue;
57
+ const d = l + i, h = a + k;
57
58
  d >= 0 && d < p && h >= 0 && h < u && m.add(`${d},${h}`);
58
59
  }
59
60
  return Array.from(m).map((l) => l.split(",").map(Number));
60
61
  }
61
- function bt({
62
+ function wt({
62
63
  words: w,
63
64
  proximity: p = 0,
64
65
  svg: u,
65
66
  strictPixelPadding: f
66
67
  }) {
67
- const { width: c, height: m } = u, l = Math.round(c), a = Math.round(m), s = 1, k = u.minFontSize, d = Math.min(u.maxFontSize, 100), h = w.map((S) => S.value), b = Math.min(...h), E = Math.max(...h), P = new Uint8Array(l * a), I = document.createElement("canvas"), _ = I.getContext("2d", { willReadFrequently: !0 });
68
- I.width = l, I.height = a;
69
- const Y = 6, re = 2, te = 2, e = 1, G = Math.floor(l / 2), oe = Math.floor(a / 2), ae = [...w].sort((S, z) => z.value - S.value), j = [];
70
- for (const S of ae) {
68
+ const { width: c, height: m } = u, l = Math.round(c), a = Math.round(m), i = 1, k = u.minFontSize, d = Math.min(u.maxFontSize, 100), h = w.map((F) => F.value), b = Math.min(...h), U = Math.max(...h), S = new Uint8Array(l * a), N = document.createElement("canvas"), _ = N.getContext("2d", { willReadFrequently: !0 });
69
+ N.width = l, N.height = a;
70
+ const Y = 6, re = 2, te = 2, e = 1, G = Math.floor(l / 2), oe = Math.floor(a / 2), ae = [...w].sort((F, z) => z.value - F.value), j = [];
71
+ for (const F of ae) {
71
72
  let z = k;
72
- E !== b && (z = (S.value - b) / (E - b) * (d - k) + k), z = Math.max(k, Math.min(d, z));
73
- let R = !1, n = z;
74
- for (; !R && n >= s; ) {
75
- let { w: X, h: V, wordMask: C, minX: W, minY: q, maxX: Z, maxY: J } = Ie({
76
- word: S,
77
- fontSize: n,
73
+ U !== b && (z = (F.value - b) / (U - b) * (d - k) + k), z = Math.max(k, Math.min(d, z));
74
+ let R = !1, s = z;
75
+ for (; !R && s >= i; ) {
76
+ let { w: X, h: V, wordMask: C, minX: W, minY: q, maxX: Z, maxY: J } = _e({
77
+ word: F,
78
+ fontSize: s,
78
79
  pad: p,
79
- canvas: I,
80
+ canvas: N,
80
81
  ctx: _,
81
82
  svg: u
82
83
  });
83
- f && (C = gt({ wordMask: C, w: X, h: V, dilation: 1 }));
84
- let O = 0, U = 0;
85
- for (; O < Math.max(l, a) && !R && U < 1e4; ) {
84
+ f && (C = yt({ wordMask: C, w: X, h: V, dilation: 1 }));
85
+ let O = 0, D = 0;
86
+ for (; O < Math.max(l, a) && !R && D < 1e4; ) {
86
87
  for (let v = 0; v < 360; v += Y) {
87
- U += 1;
88
- const M = Math.round(G + O * Math.cos(v * Math.PI / 180) - X / 2), y = Math.round(oe + O * Math.sin(v * Math.PI / 180) - V / 2);
89
- if (!(M < 0 || y < 0 || M + X > l || y + V > a) && _e({ mask: P, maskW: l, maskH: a, wx: M, wy: y, wordMask: C })) {
90
- j.push({ ...S, x: M - l / 2, y: y - a / 2, fontSize: n, width: X, height: V, angle: 0, minX: W, minY: q, maxX: Z, maxY: J }), Re({ mask: P, maskW: l, maskH: a, wx: M, wy: y, wordMask: C }), R = !0;
88
+ D += 1;
89
+ const P = Math.round(G + O * Math.cos(v * Math.PI / 180) - X / 2), y = Math.round(oe + O * Math.sin(v * Math.PI / 180) - V / 2);
90
+ if (!(P < 0 || y < 0 || P + X > l || y + V > a) && Re({ mask: S, maskW: l, maskH: a, wx: P, wy: y, wordMask: C })) {
91
+ j.push({ ...F, x: P - l / 2, y: y - a / 2, fontSize: s, width: X, height: V, angle: 0, minX: W, minY: q, maxX: Z, maxY: J }), Xe({ mask: S, maskW: l, maskH: a, wx: P, wy: y, wordMask: C }), R = !0;
91
92
  break;
92
93
  }
93
94
  }
94
95
  O += re;
95
96
  }
96
- R || (n -= 1);
97
+ R || (s -= 1);
97
98
  }
98
- if (!R && n < s) {
99
- n = s;
100
- const { w: X, h: V, wordMask: C, minX: W, minY: q, maxX: Z, maxY: J } = Ie({
101
- word: S,
102
- fontSize: n,
99
+ if (!R && s < i) {
100
+ s = i;
101
+ const { w: X, h: V, wordMask: C, minX: W, minY: q, maxX: Z, maxY: J } = _e({
102
+ word: F,
103
+ fontSize: s,
103
104
  pad: p,
104
- canvas: I,
105
+ canvas: N,
105
106
  ctx: _,
106
107
  svg: u
107
108
  });
108
- let O = 0, U = 0;
109
- for (; O < Math.max(l, a) && !R && U < 25e3; ) {
109
+ let O = 0, D = 0;
110
+ for (; O < Math.max(l, a) && !R && D < 25e3; ) {
110
111
  for (let v = 0; v < 360; v += te) {
111
- U += 1;
112
- const M = Math.round(G + O * Math.cos(v * Math.PI / 180) - X / 2), y = Math.round(oe + O * Math.sin(v * Math.PI / 180) - V / 2);
113
- if (!(M < 0 || y < 0 || M + X > l || y + V > a) && _e({ mask: P, maskW: l, maskH: a, wx: M, wy: y, wordMask: C })) {
114
- j.push({ ...S, x: M - l / 2, y: y - a / 2, fontSize: n, width: X, height: V, angle: 0, minX: W, minY: q, maxX: Z, maxY: J }), Re({ mask: P, maskW: l, maskH: a, wx: M, wy: y, wordMask: C }), R = !0;
112
+ D += 1;
113
+ const P = Math.round(G + O * Math.cos(v * Math.PI / 180) - X / 2), y = Math.round(oe + O * Math.sin(v * Math.PI / 180) - V / 2);
114
+ if (!(P < 0 || y < 0 || P + X > l || y + V > a) && Re({ mask: S, maskW: l, maskH: a, wx: P, wy: y, wordMask: C })) {
115
+ j.push({ ...F, x: P - l / 2, y: y - a / 2, fontSize: s, width: X, height: V, angle: 0, minX: W, minY: q, maxX: Z, maxY: J }), Xe({ mask: S, maskW: l, maskH: a, wx: P, wy: y, wordMask: C }), R = !0;
115
116
  break;
116
117
  }
117
118
  }
@@ -119,16 +120,16 @@ function bt({
119
120
  }
120
121
  }
121
122
  }
122
- return j.sort((S, z) => z.fontSize - S.fontSize);
123
+ return j.sort((F, z) => z.fontSize - F.fontSize);
123
124
  }
124
- const yt = ["id"], wt = ["xmlns", "viewBox"], kt = ["width", "height"], Ct = ["transform"], xt = ["x", "y", "width", "height", "onMouseover"], $t = ["fill", "font-weight", "x", "y", "font-size", "transform"], Tt = {
125
+ const kt = ["id"], Ct = ["xmlns", "viewBox"], xt = ["width", "height"], $t = ["transform"], Tt = ["x", "y", "width", "height", "onMouseover"], St = ["fill", "font-weight", "x", "y", "font-size", "transform"], Ft = {
125
126
  key: 4,
126
127
  class: "vue-data-ui-watermark"
127
- }, St = {
128
+ }, Mt = {
128
129
  key: 5,
129
130
  "data-dom-to-png-ignore": "",
130
131
  class: "reset-wrapper"
131
- }, Ft = ["innerHTML"], Mt = {
132
+ }, Pt = ["innerHTML"], zt = {
132
133
  __name: "vue-ui-word-cloud",
133
134
  props: {
134
135
  config: {
@@ -145,30 +146,30 @@ const yt = ["id"], wt = ["xmlns", "viewBox"], kt = ["width", "height"], Ct = ["t
145
146
  }
146
147
  },
147
148
  setup(w, { expose: p }) {
148
- De((t) => ({
149
- "059fb00e": t.slicerColor
149
+ Ue((t) => ({
150
+ "6bfb0274": t.slicerColor
150
151
  }));
151
- const u = H(() => import("./vue-ui-accordion-D55kCO5G.js")), f = H(() => import("./BaseIcon-Bn996RXm.js")), c = H(() => import("./DataTable-CHBLjKtZ.js")), m = H(() => import("./PackageVersion-Bg_9KCU-.js")), l = H(() => import("./PenAndPaper-BPTpbnay.js")), a = H(() => import("./Tooltip-CJxVw7-T.js")), s = H(() => import("./UserOptions-CBEK6_jo.js")), { vue_ui_word_cloud: k } = qe(), d = w, h = se({
152
+ const u = H(() => import("./vue-ui-accordion-CVnA550V.js")), f = H(() => import("./BaseIcon-naqtCxVi.js")), c = H(() => import("./DataTable-D0VYDhfx.js")), m = H(() => import("./PackageVersion-5TR4ocqp.js")), l = H(() => import("./PenAndPaper-D6AqipIO.js")), a = H(() => import("./Tooltip-CoQnTnr-.js")), i = H(() => import("./UserOptions-Dd34lEKb.js")), { vue_ui_word_cloud: k } = Ze(), d = w, h = se({
152
153
  get() {
153
154
  return !!d.dataset && d.dataset.length;
154
155
  },
155
156
  set(t) {
156
157
  return t;
157
158
  }
158
- }), b = g(Oe()), E = g(0), P = g(null), I = g(null), _ = g(null), Y = g(0), re = g(0), te = g(!1), e = se({
159
+ }), b = g(Ae()), U = g(0), S = g(null), N = g(null), _ = g(null), Y = g(0), re = g(0), te = g(!1), e = se({
159
160
  get: () => R(),
160
161
  set: (t) => t
161
162
  }), G = g(oe());
162
163
  function oe() {
163
- return typeof d.dataset == "string" ? Ze(d.dataset) : d.dataset.map((t, i) => ({
164
+ return typeof d.dataset == "string" ? Je(d.dataset) : d.dataset.map((t, n) => ({
164
165
  ...t,
165
- value: Je(t.value)
166
+ value: Ke(t.value)
166
167
  }));
167
168
  }
168
169
  ye(() => d.dataset, () => {
169
170
  G.value = oe(), fe();
170
171
  });
171
- const { userOptionsVisible: ae, setUserOptionsVisibility: j, keepUserOptionState: S } = dt({ config: e.value }), { svgRef: z } = vt({ config: e.value.style.chart.title });
172
+ const { userOptionsVisible: ae, setUserOptionsVisibility: j, keepUserOptionState: F } = vt({ config: e.value }), { svgRef: z } = ht({ config: e.value.style.chart.title });
172
173
  function R() {
173
174
  const t = Ne({
174
175
  userConfig: d.config,
@@ -176,56 +177,56 @@ const yt = ["id"], wt = ["xmlns", "viewBox"], kt = ["width", "height"], Ct = ["t
176
177
  });
177
178
  return t.theme ? {
178
179
  ...Ne({
179
- userConfig: Qe.vue_ui_word_cloud[t.theme] || d.config,
180
+ userConfig: et.vue_ui_word_cloud[t.theme] || d.config,
180
181
  defaultConfig: t
181
182
  }),
182
- customPalette: Ke[t.theme] || me
183
+ customPalette: Qe[t.theme] || me
183
184
  } : t;
184
185
  }
185
186
  ye(() => d.config, (t) => {
186
187
  e.value = R(), ae.value = !e.value.userOptions.showOnChartHover, q(), Y.value += 1, re.value += 1, v.value.showTable = e.value.table.show, v.value.showTooltip = e.value.style.chart.tooltip.show;
187
188
  }, { deep: !0 });
188
- const n = g({
189
+ const s = g({
189
190
  width: e.value.style.chart.width,
190
191
  height: e.value.style.chart.height,
191
192
  maxFontSize: e.value.style.chart.words.maxFontSize,
192
193
  minFontSize: e.value.style.chart.words.minFontSize,
193
194
  bold: e.value.style.chart.words.bold
194
- }), X = ut(() => {
195
+ }), X = ct(() => {
195
196
  fe();
196
- }, 10), V = it(() => {
197
- const { width: t, height: i } = rt({
198
- chart: P.value,
199
- title: e.value.style.chart.title.text ? I.value : null,
197
+ }, 10), V = rt(() => {
198
+ const { width: t, height: n } = ut({
199
+ chart: S.value,
200
+ title: e.value.style.chart.title.text ? N.value : null,
200
201
  source: _.value
201
202
  });
202
203
  requestAnimationFrame(() => {
203
- n.value.width = t, n.value.height = i, ze(X);
204
+ s.value.width = t, s.value.height = n, Oe(X);
204
205
  });
205
- }), C = Fe(null), W = Fe(null);
206
- Ee(q);
206
+ }), C = Me(null), W = Me(null);
207
+ De(q);
207
208
  function q() {
208
- et(d.dataset) ? Ae({
209
+ tt(d.dataset) ? Ie({
209
210
  componentName: "VueUiWordCloud",
210
211
  type: "dataset"
211
- }) : G.value.forEach((t, i) => {
212
- tt({
212
+ }) : G.value.forEach((t, n) => {
213
+ ot({
213
214
  datasetObject: t,
214
215
  requiredAttributes: ["name", "value"]
215
216
  }).forEach((o) => {
216
- h.value = !1, Ae({
217
+ h.value = !1, Ie({
217
218
  componentName: "VueUiWordCloud",
218
219
  type: "datasetSerieAttribute",
219
220
  property: o,
220
- index: i
221
+ index: n
221
222
  });
222
223
  });
223
- }), e.value.responsive && (C.value && (W.value && C.value.unobserve(W.value), C.value.disconnect()), C.value = new ResizeObserver(V), W.value = P.value.parentNode, C.value.observe(W.value));
224
+ }), e.value.responsive && (C.value && (W.value && C.value.unobserve(W.value), C.value.disconnect()), C.value = new ResizeObserver(V), W.value = S.value.parentNode, C.value.observe(W.value));
224
225
  }
225
- Ue(() => {
226
+ Ge(() => {
226
227
  C.value && (W.value && C.value.unobserve(W.value), C.value.disconnect());
227
228
  });
228
- const { isPrinting: Z, isImaging: J, generatePdf: O, generateImage: U } = ct({
229
+ const { isPrinting: Z, isImaging: J, generatePdf: O, generateImage: D } = dt({
229
230
  elementId: `wordCloud_${b.value}`,
230
231
  fileName: e.value.style.chart.title.text || "vue-ui-word-cloud",
231
232
  options: e.value.userOptions.print
@@ -233,32 +234,32 @@ const yt = ["id"], wt = ["xmlns", "viewBox"], kt = ["width", "height"], Ct = ["t
233
234
  showTable: e.value.table.show,
234
235
  showTooltip: e.value.style.chart.tooltip.show
235
236
  });
236
- function M(t, i, o = "Arial") {
237
+ function P(t, n, o = "Arial") {
237
238
  const T = document.createElement("canvas").getContext("2d");
238
- return T.font = `${i}px ${e.value.style.chart.words.bold ? "bold" : "normal"} ${o}`, {
239
+ return T.font = `${n}px ${e.value.style.chart.words.bold ? "bold" : "normal"} ${o}`, {
239
240
  width: T.measureText(t).width + e.value.style.chart.words.proximity,
240
- height: i
241
+ height: n
241
242
  };
242
243
  }
243
244
  const y = g([]);
244
245
  ye(() => d.dataset, fe, { immediate: !0 });
245
246
  function fe() {
246
- const t = [...G.value].map((T) => T.value), i = Math.max(...t), o = Math.min(...t), $ = [...G.value].map((T, D) => {
247
- let L = (T.value - o) / (i - o) * (n.value.maxFontSize - n.value.minFontSize) + n.value.minFontSize;
248
- L = isNaN(L) ? n.value.minFontSize : L;
249
- const Se = M(T.name, L);
247
+ const t = [...G.value].map((T) => T.value), n = Math.max(...t), o = Math.min(...t), $ = [...G.value].map((T, E) => {
248
+ let L = (T.value - o) / (n - o) * (s.value.maxFontSize - s.value.minFontSize) + s.value.minFontSize;
249
+ L = isNaN(L) ? s.value.minFontSize : L;
250
+ const Fe = P(T.name, L);
250
251
  return {
251
252
  ...T,
252
- id: Oe(),
253
+ id: Ae(),
253
254
  fontSize: L,
254
- width: Se.width,
255
- height: Se.height,
256
- color: e.value.style.chart.words.usePalette ? e.value.customPalette[D] || e.value.customPalette[D % e.value.customPalette.length] || me[D] || me[D % me.length] : e.value.style.chart.words.color
255
+ width: Fe.width,
256
+ height: Fe.height,
257
+ color: e.value.style.chart.words.usePalette ? e.value.customPalette[E] || e.value.customPalette[E % e.value.customPalette.length] || me[E] || me[E % me.length] : e.value.style.chart.words.color
257
258
  };
258
259
  });
259
- y.value = bt({
260
+ y.value = wt({
260
261
  words: $,
261
- svg: n.value,
262
+ svg: s.value,
262
263
  proximity: e.value.style.chart.words.proximity,
263
264
  strictPixelPadding: e.value.strictPixelPadding
264
265
  });
@@ -267,23 +268,23 @@ const yt = ["id"], wt = ["xmlns", "viewBox"], kt = ["width", "height"], Ct = ["t
267
268
  const t = y.value.map((o) => ({
268
269
  name: o.name,
269
270
  color: o.color
270
- })), i = y.value.map((o) => o.value);
271
- return { head: t, body: i };
271
+ })), n = y.value.map((o) => o.value);
272
+ return { head: t, body: n };
272
273
  });
273
274
  function Ce(t = null) {
274
- ze(() => {
275
- const i = ue.value.head.map((T, D) => [[
275
+ Oe(() => {
276
+ const n = ue.value.head.map((T, E) => [[
276
277
  T.name
277
- ], [ue.value.body[D]]]), o = [[e.value.style.chart.title.text], [e.value.style.chart.title.subtitle.text], [[""], [e.value.table.columnNames.value]]].concat(i), $ = lt(o);
278
- t ? t($) : nt({ csvContent: $, title: e.value.style.chart.title.text || "vue-ui-word-cloud" });
278
+ ], [ue.value.body[E]]]), o = [[e.value.style.chart.title.text], [e.value.style.chart.title.subtitle.text], [[""], [e.value.table.columnNames.value]]].concat(n), $ = nt(o);
279
+ t ? t($) : st({ csvContent: $, title: e.value.style.chart.title.text || "vue-ui-word-cloud" });
279
280
  });
280
281
  }
281
282
  const ce = se(() => {
282
283
  const t = [
283
284
  e.value.table.columnNames.series,
284
285
  e.value.table.columnNames.value
285
- ], i = ue.value.head.map((T, D) => {
286
- const L = ot({ p: e.value.table.td.prefix, v: ue.value.body[D], s: e.value.table.td.suffix, r: e.value.table.td.roundingValue });
286
+ ], n = ue.value.head.map((T, E) => {
287
+ const L = at({ p: e.value.table.td.prefix, v: ue.value.body[E], s: e.value.table.td.suffix, r: e.value.table.td.roundingValue });
287
288
  return [
288
289
  {
289
290
  color: T.color,
@@ -310,49 +311,56 @@ const yt = ["id"], wt = ["xmlns", "viewBox"], kt = ["width", "height"], Ct = ["t
310
311
  e.value.table.columnNames.value
311
312
  ],
312
313
  head: t,
313
- body: i,
314
+ body: n,
314
315
  config: o
315
316
  };
316
317
  }), de = g(!1);
317
- function Xe(t) {
318
- de.value = t, E.value += 1;
318
+ function xe(t) {
319
+ de.value = t, U.value += 1;
319
320
  }
320
321
  function Ve() {
321
322
  return y.value;
322
323
  }
323
- function xe() {
324
+ function $e() {
324
325
  v.value.showTable = !v.value.showTable;
325
326
  }
326
- function $e() {
327
+ function Te() {
327
328
  v.value.showTooltip = !v.value.showTooltip;
328
329
  }
329
330
  const le = g(!1);
330
331
  function pe() {
331
332
  le.value = !le.value;
332
333
  }
333
- const We = se(() => !le.value && e.value.style.chart.zoom.show), { viewBox: ve, resetZoom: Te, isZoom: Be } = ht(z, {
334
+ const We = se(() => !le.value && e.value.style.chart.zoom.show), { viewBox: ve, resetZoom: Se, isZoom: Be } = mt(z, {
334
335
  x: 0,
335
336
  y: 0,
336
- width: n.value.width <= 0 ? 10 : n.value.width,
337
- height: n.value.height <= 0 ? 10 : n.value.height
337
+ width: s.value.width <= 0 ? 10 : s.value.width,
338
+ height: s.value.height <= 0 ? 10 : s.value.height
338
339
  }, 1, We);
340
+ async function Ye({ scale: t = 2 } = {}) {
341
+ if (!S.value) return;
342
+ const { imageUri: n, base64: o } = await pt({ domElement: S.value, base64: !0, img: !0, scale: t });
343
+ return { imageUri: n, base64: o };
344
+ }
339
345
  p({
340
346
  getData: Ve,
347
+ getImage: Ye,
341
348
  generateCsv: Ce,
342
349
  generatePdf: O,
343
- generateImage: U,
344
- toggleTable: xe,
345
- toggleTooltip: $e,
346
- toggleAnnotator: pe
350
+ generateImage: D,
351
+ toggleTable: $e,
352
+ toggleTooltip: Te,
353
+ toggleAnnotator: pe,
354
+ toggleFullscreen: xe
347
355
  });
348
356
  const K = g(null), ne = g(!1), ge = g(""), be = g(null);
349
- function Ye(t) {
357
+ function Ee(t) {
350
358
  if (!v.value.showTooltip) return;
351
359
  K.value = t.id, be.value = { datapoint: t, config: e.value };
352
- const i = e.value.style.chart.tooltip.customFormat;
353
- if (ne.value = !1, st(i))
360
+ const n = e.value.style.chart.tooltip.customFormat;
361
+ if (ne.value = !1, it(n))
354
362
  try {
355
- const o = i({
363
+ const o = n({
356
364
  datapoint: t,
357
365
  config: e.value
358
366
  });
@@ -366,14 +374,14 @@ const yt = ["id"], wt = ["xmlns", "viewBox"], kt = ["width", "height"], Ct = ["t
366
374
  }
367
375
  te.value = !0;
368
376
  }
369
- return (t, i) => (x(), N("div", {
377
+ return (t, n) => (x(), I("div", {
370
378
  class: "vue-ui-word-cloud",
371
379
  ref_key: "wordCloudChart",
372
- ref: P,
380
+ ref: S,
373
381
  id: `wordCloud_${b.value}`,
374
382
  style: he(`width: 100%; font-family:${e.value.style.fontFamily};background:${e.value.style.chart.backgroundColor};${e.value.responsive ? "height:100%" : ""}`),
375
- onMouseenter: i[3] || (i[3] = () => r(j)(!0)),
376
- onMouseleave: i[4] || (i[4] = () => r(j)(!1))
383
+ onMouseenter: n[3] || (n[3] = () => r(j)(!0)),
384
+ onMouseleave: n[4] || (n[4] = () => r(j)(!1))
377
385
  }, [
378
386
  e.value.userOptions.buttons.annotator ? (x(), ie(r(l), {
379
387
  key: 0,
@@ -383,13 +391,13 @@ const yt = ["id"], wt = ["xmlns", "viewBox"], kt = ["width", "height"], Ct = ["t
383
391
  active: le.value,
384
392
  onClose: pe
385
393
  }, null, 8, ["svgRef", "backgroundColor", "color", "active"])) : B("", !0),
386
- e.value.style.chart.title.text ? (x(), N("div", {
394
+ e.value.style.chart.title.text ? (x(), I("div", {
387
395
  key: 1,
388
396
  ref_key: "chartTitle",
389
- ref: I,
397
+ ref: N,
390
398
  style: "width:100%;background:transparent;padding-bottom:24px"
391
399
  }, [
392
- (x(), ie(mt, {
400
+ (x(), ie(ft, {
393
401
  key: `title_${Y.value}`,
394
402
  config: {
395
403
  title: {
@@ -401,9 +409,9 @@ const yt = ["id"], wt = ["xmlns", "viewBox"], kt = ["width", "height"], Ct = ["t
401
409
  }
402
410
  }, null, 8, ["config"]))
403
411
  ], 512)) : B("", !0),
404
- e.value.userOptions.show && h.value && (r(S) || r(ae)) ? (x(), ie(r(s), {
412
+ e.value.userOptions.show && h.value && (r(F) || r(ae)) ? (x(), ie(r(i), {
405
413
  ref: "details",
406
- key: `user_option_${E.value}`,
414
+ key: `user_option_${U.value}`,
407
415
  backgroundColor: e.value.style.chart.backgroundColor,
408
416
  color: e.value.style.chart.color,
409
417
  isPrinting: r(Z),
@@ -416,7 +424,7 @@ const yt = ["id"], wt = ["xmlns", "viewBox"], kt = ["width", "height"], Ct = ["t
416
424
  hasFullscreen: e.value.userOptions.buttons.fullscreen,
417
425
  isFullscreen: de.value,
418
426
  titles: { ...e.value.userOptions.buttonTitles },
419
- chartElement: P.value,
427
+ chartElement: S.value,
420
428
  position: e.value.userOptions.position,
421
429
  hasTooltip: e.value.style.chart.tooltip.show && e.value.userOptions.buttons.tooltip,
422
430
  isTooltip: v.value.showTooltip,
@@ -424,94 +432,94 @@ const yt = ["id"], wt = ["xmlns", "viewBox"], kt = ["width", "height"], Ct = ["t
424
432
  isAnnotation: le.value,
425
433
  callbacks: e.value.userOptions.callbacks,
426
434
  printScale: e.value.userOptions.print.scale,
427
- onToggleFullscreen: Xe,
435
+ onToggleFullscreen: xe,
428
436
  onGeneratePdf: r(O),
429
437
  onGenerateCsv: Ce,
430
- onGenerateImage: r(U),
431
- onToggleTable: xe,
432
- onToggleTooltip: $e,
438
+ onGenerateImage: r(D),
439
+ onToggleTable: $e,
440
+ onToggleTooltip: Te,
433
441
  onToggleAnnotator: pe,
434
442
  style: he({
435
- visibility: r(S) ? r(ae) ? "visible" : "hidden" : "visible"
443
+ visibility: r(F) ? r(ae) ? "visible" : "hidden" : "visible"
436
444
  })
437
- }, Ge({ _: 2 }, [
445
+ }, Le({ _: 2 }, [
438
446
  t.$slots.menuIcon ? {
439
447
  name: "menuIcon",
440
448
  fn: A(({ isOpen: o, color: $ }) => [
441
- F(t.$slots, "menuIcon", Q(ee({ isOpen: o, color: $ })), void 0, !0)
449
+ M(t.$slots, "menuIcon", Q(ee({ isOpen: o, color: $ })), void 0, !0)
442
450
  ]),
443
451
  key: "0"
444
452
  } : void 0,
445
453
  t.$slots.optionPdf ? {
446
454
  name: "optionPdf",
447
455
  fn: A(() => [
448
- F(t.$slots, "optionPdf", {}, void 0, !0)
456
+ M(t.$slots, "optionPdf", {}, void 0, !0)
449
457
  ]),
450
458
  key: "1"
451
459
  } : void 0,
452
460
  t.$slots.optionCsv ? {
453
461
  name: "optionCsv",
454
462
  fn: A(() => [
455
- F(t.$slots, "optionCsv", {}, void 0, !0)
463
+ M(t.$slots, "optionCsv", {}, void 0, !0)
456
464
  ]),
457
465
  key: "2"
458
466
  } : void 0,
459
467
  t.$slots.optionImg ? {
460
468
  name: "optionImg",
461
469
  fn: A(() => [
462
- F(t.$slots, "optionImg", {}, void 0, !0)
470
+ M(t.$slots, "optionImg", {}, void 0, !0)
463
471
  ]),
464
472
  key: "3"
465
473
  } : void 0,
466
474
  t.$slots.optionTable ? {
467
475
  name: "optionTable",
468
476
  fn: A(() => [
469
- F(t.$slots, "optionTable", {}, void 0, !0)
477
+ M(t.$slots, "optionTable", {}, void 0, !0)
470
478
  ]),
471
479
  key: "4"
472
480
  } : void 0,
473
481
  t.$slots.optionFullscreen ? {
474
482
  name: "optionFullscreen",
475
483
  fn: A(({ toggleFullscreen: o, isFullscreen: $ }) => [
476
- F(t.$slots, "optionFullscreen", Q(ee({ toggleFullscreen: o, isFullscreen: $ })), void 0, !0)
484
+ M(t.$slots, "optionFullscreen", Q(ee({ toggleFullscreen: o, isFullscreen: $ })), void 0, !0)
477
485
  ]),
478
486
  key: "5"
479
487
  } : void 0,
480
488
  t.$slots.optionAnnotator ? {
481
489
  name: "optionAnnotator",
482
490
  fn: A(({ toggleAnnotator: o, isAnnotator: $ }) => [
483
- F(t.$slots, "optionAnnotator", Q(ee({ toggleAnnotator: o, isAnnotator: $ })), void 0, !0)
491
+ M(t.$slots, "optionAnnotator", Q(ee({ toggleAnnotator: o, isAnnotator: $ })), void 0, !0)
484
492
  ]),
485
493
  key: "6"
486
494
  } : void 0
487
495
  ]), 1032, ["backgroundColor", "color", "isPrinting", "isImaging", "uid", "hasPdf", "hasXls", "hasImg", "hasTable", "hasFullscreen", "isFullscreen", "titles", "chartElement", "position", "hasTooltip", "isTooltip", "hasAnnotator", "isAnnotation", "callbacks", "printScale", "onGeneratePdf", "onGenerateImage", "style"])) : B("", !0),
488
- h.value ? (x(), N("svg", {
496
+ h.value ? (x(), I("svg", {
489
497
  key: 3,
490
498
  ref_key: "svgRef",
491
499
  ref: z,
492
- class: Me({ "vue-data-ui-fullscreen--on": de.value, "vue-data-ui-fulscreen--off": !de.value }),
493
- xmlns: r(at),
500
+ class: Pe({ "vue-data-ui-fullscreen--on": de.value, "vue-data-ui-fulscreen--off": !de.value }),
501
+ xmlns: r(lt),
494
502
  viewBox: `${r(ve).x} ${r(ve).y} ${r(ve).width} ${r(ve).height}`,
495
503
  style: "overflow:hidden;background:transparent;"
496
504
  }, [
497
505
  we(r(m)),
498
- t.$slots["chart-background"] ? (x(), N("foreignObject", {
506
+ t.$slots["chart-background"] ? (x(), I("foreignObject", {
499
507
  key: 0,
500
508
  x: 0,
501
509
  y: 0,
502
- width: n.value.width <= 0 ? 10 : n.value.width,
503
- height: n.value.height <= 0 ? 10 : n.value.height,
510
+ width: s.value.width <= 0 ? 10 : s.value.width,
511
+ height: s.value.height <= 0 ? 10 : s.value.height,
504
512
  style: {
505
513
  pointerEvents: "none"
506
514
  }
507
515
  }, [
508
- F(t.$slots, "chart-background", {}, void 0, !0)
509
- ], 8, kt)) : B("", !0),
516
+ M(t.$slots, "chart-background", {}, void 0, !0)
517
+ ], 8, xt)) : B("", !0),
510
518
  ke("g", {
511
- transform: `translate(${(n.value.width <= 0 ? 10 : n.value.width) / 2}, ${(n.value.height <= 0 ? 10 : n.value.height) / 2})`
519
+ transform: `translate(${(s.value.width <= 0 ? 10 : s.value.width) / 2}, ${(s.value.height <= 0 ? 10 : s.value.height) / 2})`
512
520
  }, [
513
- (x(!0), N(Le, null, He(y.value, (o, $) => (x(), N("g", null, [
514
- o.minX !== void 0 ? (x(), N("rect", {
521
+ (x(!0), I(He, null, je(y.value, (o, $) => (x(), I("g", null, [
522
+ o.minX !== void 0 ? (x(), I("rect", {
515
523
  key: 0,
516
524
  x: o.x + o.minX,
517
525
  y: o.y + o.minY * 1.25,
@@ -519,12 +527,12 @@ const yt = ["id"], wt = ["xmlns", "viewBox"], kt = ["width", "height"], Ct = ["t
519
527
  height: o.maxY - o.minY,
520
528
  fill: "transparent",
521
529
  "pointer-events": "visiblePainted",
522
- onMouseover: (T) => Ye(o),
523
- onMouseleave: i[0] || (i[0] = (T) => {
530
+ onMouseover: (T) => Ee(o),
531
+ onMouseleave: n[0] || (n[0] = (T) => {
524
532
  K.value = null, te.value = !1;
525
533
  })
526
- }, null, 40, xt)) : B("", !0),
527
- (x(), N("text", {
534
+ }, null, 40, Tt)) : B("", !0),
535
+ (x(), I("text", {
528
536
  fill: o.color,
529
537
  "font-weight": e.value.style.chart.words.bold ? "bold" : "normal",
530
538
  key: $,
@@ -532,22 +540,22 @@ const yt = ["id"], wt = ["xmlns", "viewBox"], kt = ["width", "height"], Ct = ["t
532
540
  y: o.y,
533
541
  "font-size": o.fontSize,
534
542
  transform: `translate(${o.width / 2}, ${o.height / 2})`,
535
- class: Me({ animated: e.value.useCssAnimation, "word-selected": K.value && K.value === o.id && v.value.showTooltip, "word-not-selected": K.value && K.value !== o.id && v.value.showTooltip }),
543
+ class: Pe({ animated: e.value.useCssAnimation, "word-selected": K.value && K.value === o.id && v.value.showTooltip, "word-not-selected": K.value && K.value !== o.id && v.value.showTooltip }),
536
544
  "text-anchor": "middle",
537
545
  "dominant-baseline": "central",
538
546
  style: he(`animation-delay:${$ * e.value.animationDelayMs}ms !important; pointer-events:none;`)
539
- }, Pe(o.name), 15, $t))
547
+ }, ze(o.name), 15, St))
540
548
  ]))), 256))
541
- ], 8, Ct),
542
- F(t.$slots, "svg", {
543
- svg: { height: n.value.height, width: n.value.width }
549
+ ], 8, $t),
550
+ M(t.$slots, "svg", {
551
+ svg: { height: s.value.height, width: s.value.width }
544
552
  }, void 0, !0)
545
- ], 10, wt)) : B("", !0),
546
- t.$slots.watermark ? (x(), N("div", Tt, [
547
- F(t.$slots, "watermark", Q(ee({ isPrinting: r(Z) || r(J) })), void 0, !0)
553
+ ], 10, Ct)) : B("", !0),
554
+ t.$slots.watermark ? (x(), I("div", Ft, [
555
+ M(t.$slots, "watermark", Q(ee({ isPrinting: r(Z) || r(J) })), void 0, !0)
548
556
  ])) : B("", !0),
549
- r(Be) ? (x(), N("div", St, [
550
- F(t.$slots, "reset-action", { reset: r(Te) }, () => [
557
+ r(Be) ? (x(), I("div", Mt, [
558
+ M(t.$slots, "reset-action", { reset: r(Se) }, () => [
551
559
  ke("button", {
552
560
  "data-cy-reset": "",
553
561
  tabindex: "0",
@@ -556,7 +564,7 @@ const yt = ["id"], wt = ["xmlns", "viewBox"], kt = ["width", "height"], Ct = ["t
556
564
  style: he({
557
565
  background: e.value.style.chart.backgroundColor
558
566
  }),
559
- onClick: i[1] || (i[1] = (o) => r(Te)(!0))
567
+ onClick: n[1] || (n[1] = (o) => r(Se)(!0))
560
568
  }, [
561
569
  we(r(f), {
562
570
  name: "refresh",
@@ -576,25 +584,25 @@ const yt = ["id"], wt = ["xmlns", "viewBox"], kt = ["width", "height"], Ct = ["t
576
584
  backgroundOpacity: e.value.style.chart.tooltip.backgroundOpacity,
577
585
  position: e.value.style.chart.tooltip.position,
578
586
  offsetY: e.value.style.chart.tooltip.offsetY,
579
- parent: P.value,
587
+ parent: S.value,
580
588
  content: ge.value,
581
589
  isCustom: ne.value
582
590
  }, {
583
591
  "tooltip-before": A(() => [
584
- F(t.$slots, "tooltip-before", Q(ee({ ...be.value })), void 0, !0)
592
+ M(t.$slots, "tooltip-before", Q(ee({ ...be.value })), void 0, !0)
585
593
  ]),
586
594
  "tooltip-after": A(() => [
587
- F(t.$slots, "tooltip-after", Q(ee({ ...be.value })), void 0, !0)
595
+ M(t.$slots, "tooltip-after", Q(ee({ ...be.value })), void 0, !0)
588
596
  ]),
589
597
  _: 3
590
598
  }, 8, ["show", "backgroundColor", "color", "fontSize", "borderRadius", "borderColor", "borderWidth", "backgroundOpacity", "position", "offsetY", "parent", "content", "isCustom"]),
591
- t.$slots.source ? (x(), N("div", {
599
+ t.$slots.source ? (x(), I("div", {
592
600
  key: 6,
593
601
  ref_key: "source",
594
602
  ref: _,
595
603
  dir: "auto"
596
604
  }, [
597
- F(t.$slots, "source", {}, void 0, !0)
605
+ M(t.$slots, "source", {}, void 0, !0)
598
606
  ], 512)) : B("", !0),
599
607
  h.value ? (x(), ie(r(u), {
600
608
  key: 7,
@@ -620,25 +628,25 @@ const yt = ["id"], wt = ["xmlns", "viewBox"], kt = ["width", "height"], Ct = ["t
620
628
  body: ce.value.body,
621
629
  config: ce.value.config,
622
630
  title: `${e.value.style.chart.title.text}${e.value.style.chart.title.subtitle.text ? ` : ${e.value.style.chart.title.subtitle.text}` : ""}`,
623
- onClose: i[2] || (i[2] = (o) => v.value.showTable = !1)
631
+ onClose: n[2] || (n[2] = (o) => v.value.showTable = !1)
624
632
  }, {
625
633
  th: A(({ th: o }) => [
626
634
  ke("div", {
627
635
  innerHTML: o,
628
636
  style: { display: "flex", "align-items": "center" }
629
- }, null, 8, Ft)
637
+ }, null, 8, Pt)
630
638
  ]),
631
639
  td: A(({ td: o }) => [
632
- je(Pe(o.name || o), 1)
640
+ qe(ze(o.name || o), 1)
633
641
  ]),
634
642
  _: 1
635
643
  }, 8, ["colNames", "head", "body", "config", "title"]))
636
644
  ]),
637
645
  _: 1
638
646
  }, 8, ["config"])) : B("", !0)
639
- ], 44, yt));
647
+ ], 44, kt));
640
648
  }
641
- }, Wt = /* @__PURE__ */ ft(Mt, [["__scopeId", "data-v-7d85eb5b"]]);
649
+ }, Et = /* @__PURE__ */ gt(zt, [["__scopeId", "data-v-da476032"]]);
642
650
  export {
643
- Wt as default
651
+ Et as default
644
652
  };