vue-data-ui 3.5.0 → 3.5.1

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 (144) hide show
  1. package/README.md +26 -0
  2. package/dist/{ColorPicker-J5wOPCeB.js → ColorPicker-ChuwChMo.js} +58 -56
  3. package/dist/{NonSvgPenAndPaper-C7TRn0_3.js → NonSvgPenAndPaper-DVgKKLIf.js} +1 -1
  4. package/dist/{PackageVersion-Cyx_s25h.js → PackageVersion-DQvyATVa.js} +1 -1
  5. package/dist/PenAndPaper-SZQIAgkg.js +388 -0
  6. package/dist/{Title-l36lOBMx.js → Title-isbiM8i8.js} +1 -1
  7. package/dist/components/vue-ui-3d-bar.js +1 -1
  8. package/dist/components/vue-ui-accordion.js +1 -1
  9. package/dist/components/vue-ui-age-pyramid.js +1 -1
  10. package/dist/components/vue-ui-annotator.js +1 -1
  11. package/dist/components/vue-ui-bullet.js +1 -1
  12. package/dist/components/vue-ui-candlestick.js +1 -1
  13. package/dist/components/vue-ui-carousel-table.js +1 -1
  14. package/dist/components/vue-ui-chestnut.js +1 -1
  15. package/dist/components/vue-ui-chord.js +1 -1
  16. package/dist/components/vue-ui-circle-pack.js +1 -1
  17. package/dist/components/vue-ui-cursor.js +1 -1
  18. package/dist/components/vue-ui-dashboard.js +1 -1
  19. package/dist/components/vue-ui-digits.js +1 -1
  20. package/dist/components/vue-ui-donut-evolution.js +1 -1
  21. package/dist/components/vue-ui-donut.js +1 -1
  22. package/dist/components/vue-ui-dumbbell.js +1 -1
  23. package/dist/components/vue-ui-flow.js +1 -1
  24. package/dist/components/vue-ui-funnel.js +1 -1
  25. package/dist/components/vue-ui-galaxy.js +1 -1
  26. package/dist/components/vue-ui-gauge.js +1 -1
  27. package/dist/components/vue-ui-gizmo.js +1 -1
  28. package/dist/components/vue-ui-heatmap.js +1 -1
  29. package/dist/components/vue-ui-history-plot.js +1 -1
  30. package/dist/components/vue-ui-horizontal-bar.js +1 -1
  31. package/dist/components/vue-ui-kpi.js +1 -1
  32. package/dist/components/vue-ui-mini-loader.js +1 -1
  33. package/dist/components/vue-ui-molecule.js +1 -1
  34. package/dist/components/vue-ui-mood-radar.js +1 -1
  35. package/dist/components/vue-ui-nested-donuts.js +1 -1
  36. package/dist/components/vue-ui-onion.js +1 -1
  37. package/dist/components/vue-ui-parallel-coordinate-plot.js +1 -1
  38. package/dist/components/vue-ui-quadrant.js +1 -1
  39. package/dist/components/vue-ui-quick-chart.js +1 -1
  40. package/dist/components/vue-ui-radar.js +1 -1
  41. package/dist/components/vue-ui-rating.js +1 -1
  42. package/dist/components/vue-ui-relation-circle.js +1 -1
  43. package/dist/components/vue-ui-ridgeline.js +1 -1
  44. package/dist/components/vue-ui-rings.js +1 -1
  45. package/dist/components/vue-ui-scatter.js +1 -1
  46. package/dist/components/vue-ui-skeleton.js +1 -1
  47. package/dist/components/vue-ui-smiley.js +1 -1
  48. package/dist/components/vue-ui-spark-trend.js +1 -1
  49. package/dist/components/vue-ui-sparkbar.js +1 -1
  50. package/dist/components/vue-ui-sparkgauge.js +1 -1
  51. package/dist/components/vue-ui-sparkhistogram.js +1 -1
  52. package/dist/components/vue-ui-sparkline.js +1 -1
  53. package/dist/components/vue-ui-sparkstackbar.js +1 -1
  54. package/dist/components/vue-ui-stackbar.js +1 -1
  55. package/dist/components/vue-ui-strip-plot.js +1 -1
  56. package/dist/components/vue-ui-table-heatmap.js +1 -1
  57. package/dist/components/vue-ui-table-sparkline.js +1 -1
  58. package/dist/components/vue-ui-table.js +1 -1
  59. package/dist/components/vue-ui-thermometer.js +1 -1
  60. package/dist/components/vue-ui-timer.js +1 -1
  61. package/dist/components/vue-ui-tiremarks.js +1 -1
  62. package/dist/components/vue-ui-treemap.js +1 -1
  63. package/dist/components/vue-ui-vertical-bar.js +1 -1
  64. package/dist/components/vue-ui-waffle.js +1 -1
  65. package/dist/components/vue-ui-wheel.js +1 -1
  66. package/dist/components/vue-ui-word-cloud.js +1 -1
  67. package/dist/components/vue-ui-world.js +1 -1
  68. package/dist/components/vue-ui-xy-canvas.js +1 -1
  69. package/dist/components/vue-ui-xy.js +1 -1
  70. package/dist/style.css +1 -1
  71. package/dist/types/vue-data-ui.d.ts +17 -8
  72. package/dist/{useNestedProp-BjZe1Y85.js → useNestedProp-DjGXw6S9.js} +22 -8
  73. package/dist/{vue-data-ui-DxgRqCAo.js → vue-data-ui-B_RxfmEm.js} +63 -63
  74. package/dist/vue-data-ui.js +64 -64
  75. package/dist/{vue-ui-3d-bar-DmNJp8SY.js → vue-ui-3d-bar-CMNYyVa2.js} +454 -434
  76. package/dist/{vue-ui-accordion-CZ0thhxa.js → vue-ui-accordion-CqhVCfc2.js} +1 -1
  77. package/dist/{vue-ui-age-pyramid-CPAP3sNY.js → vue-ui-age-pyramid-Vqa9iYXE.js} +180 -160
  78. package/dist/{vue-ui-annotator-BylDgUVb.js → vue-ui-annotator-nNv10fBm.js} +3 -3
  79. package/dist/{vue-ui-bullet-Ce6uvCQJ.js → vue-ui-bullet-BWEBeYV5.js} +190 -170
  80. package/dist/{vue-ui-candlestick-DewevWV_.js → vue-ui-candlestick-BoLzL0g1.js} +201 -181
  81. package/dist/{vue-ui-carousel-table-Dv1CDfE5.js → vue-ui-carousel-table-Bi6wvUUU.js} +2 -2
  82. package/dist/{vue-ui-chestnut-D9sdFZ4E.js → vue-ui-chestnut-BGz1TLXG.js} +375 -355
  83. package/dist/vue-ui-chord-CebhS7ln.js +1153 -0
  84. package/dist/{vue-ui-circle-pack-Be74QB_0.js → vue-ui-circle-pack-7PJVyKjp.js} +289 -269
  85. package/dist/{vue-ui-cursor-ik59bfC4.js → vue-ui-cursor-qYLAwvzn.js} +1 -1
  86. package/dist/vue-ui-dashboard-DcmMvhgM.js +432 -0
  87. package/dist/{vue-ui-digits-ByNNcWXi.js → vue-ui-digits-DyE8eU1m.js} +1 -1
  88. package/dist/{vue-ui-donut-BRGFcgxS.js → vue-ui-donut-CxZcJFTo.js} +462 -442
  89. package/dist/{vue-ui-donut-evolution-DJ0C-7jH.js → vue-ui-donut-evolution-BVYL-BUJ.js} +293 -273
  90. package/dist/{vue-ui-dumbbell-iQJ0BUhm.js → vue-ui-dumbbell-QxZn86A3.js} +210 -190
  91. package/dist/{vue-ui-flow-CTYFoib3.js → vue-ui-flow-DEI5LRch.js} +339 -319
  92. package/dist/{vue-ui-funnel-CG55Xcdy.js → vue-ui-funnel-B_A5orFg.js} +218 -198
  93. package/dist/{vue-ui-galaxy-BQrxjKZJ.js → vue-ui-galaxy-CUoDRr-O.js} +201 -181
  94. package/dist/{vue-ui-gauge-Tc-0NI0Y.js → vue-ui-gauge-46tSRZN5.js} +311 -291
  95. package/dist/{vue-ui-gizmo-P8h-gnLd.js → vue-ui-gizmo-BOgbsXao.js} +2 -2
  96. package/dist/{vue-ui-heatmap-BZimPzsL.js → vue-ui-heatmap-DKKjl1A2.js} +303 -283
  97. package/dist/{vue-ui-history-plot-BVzbuqYY.js → vue-ui-history-plot-C6p_aThr.js} +229 -209
  98. package/dist/{vue-ui-kpi-BGGff8LM.js → vue-ui-kpi-B1yJ83aF.js} +2 -2
  99. package/dist/{vue-ui-mini-loader-CSF-7TJL.js → vue-ui-mini-loader-BudcNBg-.js} +1 -1
  100. package/dist/{vue-ui-molecule-BALqwB8c.js → vue-ui-molecule-L90GnHee.js} +156 -136
  101. package/dist/{vue-ui-mood-radar-QJ5nlZby.js → vue-ui-mood-radar-Dhigm5rw.js} +266 -246
  102. package/dist/{vue-ui-nested-donuts-CmUabkkQ.js → vue-ui-nested-donuts-D0MCLs5n.js} +506 -486
  103. package/dist/{vue-ui-onion-DAOCf3f8.js → vue-ui-onion-B7yPJ3gL.js} +220 -200
  104. package/dist/{vue-ui-parallel-coordinate-plot-D8jTuFjq.js → vue-ui-parallel-coordinate-plot-DY21ivNe.js} +235 -215
  105. package/dist/{vue-ui-quadrant-CO52mSRY.js → vue-ui-quadrant-b0vMRaq-.js} +463 -443
  106. package/dist/{vue-ui-quick-chart-DEaVSldE.js → vue-ui-quick-chart-VK2EN7sh.js} +288 -268
  107. package/dist/{vue-ui-radar-C5V4hhbW.js → vue-ui-radar-B5Vkoz9M.js} +331 -311
  108. package/dist/{vue-ui-rating-CiMoFM_c.js → vue-ui-rating-BH4DW1ZY.js} +1 -1
  109. package/dist/{vue-ui-relation-circle-CbMM0Jka.js → vue-ui-relation-circle-XHbE-ZUX.js} +228 -208
  110. package/dist/{vue-ui-ridgeline-CXCIRDq6.js → vue-ui-ridgeline-CAMNq-p_.js} +242 -222
  111. package/dist/{vue-ui-rings-BpUcyqo7.js → vue-ui-rings-ImGOqm_J.js} +189 -169
  112. package/dist/{vue-ui-scatter--Dxe-hfO.js → vue-ui-scatter-CterNJYe.js} +275 -255
  113. package/dist/{vue-ui-skeleton-BWq-VDzg.js → vue-ui-skeleton-CykXHWj-.js} +2 -2
  114. package/dist/{vue-ui-smiley-sGFRbn31.js → vue-ui-smiley-DnGm6qrK.js} +1 -1
  115. package/dist/{vue-ui-spark-trend-T4J_YOa_.js → vue-ui-spark-trend-N1AsNQJA.js} +2 -2
  116. package/dist/{vue-ui-sparkbar-DnKP55Vu.js → vue-ui-sparkbar-Bvsi5DTT.js} +2 -2
  117. package/dist/{vue-ui-sparkgauge-BDQLP-zi.js → vue-ui-sparkgauge-DyJmWCWT.js} +2 -2
  118. package/dist/{vue-ui-sparkhistogram-Dm7QXrA-.js → vue-ui-sparkhistogram-5eKrkmSb.js} +143 -140
  119. package/dist/{vue-ui-sparkline-tXGDLHRy.js → vue-ui-sparkline-ChKAzlVq.js} +2 -2
  120. package/dist/{vue-ui-sparkstackbar-M53Nt07M.js → vue-ui-sparkstackbar-BXNy6nuw.js} +2 -2
  121. package/dist/vue-ui-stackbar-1IwvUYBO.js +1827 -0
  122. package/dist/{vue-ui-strip-plot-BX9i3wMn.js → vue-ui-strip-plot-B1wGxP8-.js} +245 -225
  123. package/dist/{vue-ui-table-7r02N9R9.js → vue-ui-table-DSsIrT4L.js} +3 -3
  124. package/dist/{vue-ui-table-heatmap-BqCEBoUf.js → vue-ui-table-heatmap-DXFHy7-E.js} +1 -1
  125. package/dist/{vue-ui-table-sparkline-DZaAh10E.js → vue-ui-table-sparkline-DpqY_4ay.js} +2 -2
  126. package/dist/vue-ui-thermometer-CMKvSA8p.js +584 -0
  127. package/dist/{vue-ui-timer-Ds-MJoW2.js → vue-ui-timer-BpdCY_wg.js} +3 -3
  128. package/dist/vue-ui-tiremarks-CNipzVli.js +450 -0
  129. package/dist/{vue-ui-treemap-BEvl8hiw.js → vue-ui-treemap-DPE8SY0_.js} +453 -433
  130. package/dist/{vue-ui-vertical-bar-D8dtM8sw.js → vue-ui-vertical-bar-ZU1GCbX0.js} +323 -303
  131. package/dist/{vue-ui-waffle-B3q-2SCR.js → vue-ui-waffle-z7nuSuSV.js} +219 -199
  132. package/dist/vue-ui-wheel-DLRoRjeM.js +663 -0
  133. package/dist/{vue-ui-word-cloud-ChT7uLbN.js → vue-ui-word-cloud-D2r5E3pP.js} +248 -228
  134. package/dist/{vue-ui-world-CdP4g_3_.js → vue-ui-world-goXYnTyM.js} +287 -267
  135. package/dist/{vue-ui-xy-B68qQ-gX.js → vue-ui-xy-NDDbNbds.js} +389 -369
  136. package/dist/{vue-ui-xy-canvas-DDngEA1s.js → vue-ui-xy-canvas-2a6NlQe3.js} +4 -4
  137. package/package.json +4 -4
  138. package/dist/PenAndPaper-DSvu9dwa.js +0 -373
  139. package/dist/vue-ui-chord-BG4dxKNA.js +0 -1133
  140. package/dist/vue-ui-dashboard-C4BLwHey.js +0 -412
  141. package/dist/vue-ui-stackbar-CkBOjryQ.js +0 -1724
  142. package/dist/vue-ui-thermometer-CFPt3MOv.js +0 -564
  143. package/dist/vue-ui-tiremarks-2eIQ6vxu.js +0 -430
  144. package/dist/vue-ui-wheel-BpirIgAG.js +0 -643
@@ -1,97 +1,97 @@
1
- import { useCssVars as dt, defineAsyncComponent as j, computed as q, ref as m, toRefs as mt, watch as le, shallowRef as Ee, onMounted as ht, onBeforeUnmount as ft, createElementBlock as B, openBlock as w, unref as s, normalizeStyle as ye, createBlock as ne, createCommentVNode as W, createVNode as ke, createSlots as Xe, withCtx as S, renderSlot as T, normalizeProps as se, guardReactiveProps as ie, normalizeClass as Ue, createElementVNode as we, Fragment as pt, renderList as gt, toDisplayString as Me, resolveDynamicComponent as bt, mergeProps as yt, createTextVNode as Le, nextTick as Ye } from "vue";
1
+ import { useCssVars as dt, defineAsyncComponent as H, computed as Z, ref as m, toRefs as mt, watch as se, shallowRef as Ee, onMounted as ht, onBeforeUnmount as ft, createElementBlock as B, openBlock as x, unref as s, normalizeStyle as ye, createBlock as ie, createCommentVNode as X, createVNode as ke, withCtx as p, renderSlot as g, normalizeProps as R, guardReactiveProps as V, createSlots as Xe, normalizeClass as Ue, createElementVNode as we, Fragment as pt, renderList as gt, toDisplayString as Me, resolveDynamicComponent as bt, mergeProps as yt, createTextVNode as Le, nextTick as Ye } from "vue";
2
2
  import { d as kt, t as wt, u as Ct } from "./useResponsive-DfdjqQps.js";
3
3
  import { c as Ge, t as xt, ar as $t, x as St, b as Tt, p as Ce, o as je, f as qe, g as Ft, d as Mt, X as Pt, P as Ot, Q as At, G as It } from "./lib-C_mNZmhD.js";
4
- import { u as zt, a as He } from "./useNestedProp-BjZe1Y85.js";
4
+ import { u as zt, a as He } from "./useNestedProp-DjGXw6S9.js";
5
5
  import { u as Dt, B as Nt } from "./BaseScanner-BgWxam9d.js";
6
6
  import { u as Bt } from "./usePrinter-DTzqpYKF.js";
7
- import { u as _t } from "./useSvgExport-DrjCWun4.js";
8
- import { u as Rt } from "./useUserOptionState-BIvW1Kz7.js";
9
- import { u as Vt } from "./useChartAccessibility-9icAAmYg.js";
10
- import Wt from "./img-BecE5qXd.js";
11
- import Et from "./Title-l36lOBMx.js";
7
+ import { u as Rt } from "./useSvgExport-DrjCWun4.js";
8
+ import { u as Vt } from "./useUserOptionState-BIvW1Kz7.js";
9
+ import { u as Wt } from "./useChartAccessibility-9icAAmYg.js";
10
+ import _t from "./img-BecE5qXd.js";
11
+ import Et from "./Title-isbiM8i8.js";
12
12
  import { t as Xt } from "./themes-AUNCOb2G.js";
13
13
  import { u as Ut } from "./usePanZoom-BVca3eMk.js";
14
14
  import { _ as Lt } from "./_plugin-vue_export-helper-CHgC5LLL.js";
15
- function Yt(C, b) {
16
- const { width: v, height: h } = C, f = b.getImageData(0, 0, v, h).data;
17
- let l = v, o = h, i = 0, x = 0, F = !1;
15
+ function Yt($, k) {
16
+ const { width: v, height: h } = $, f = k.getImageData(0, 0, v, h).data;
17
+ let l = v, o = h, i = 0, S = 0, F = !1;
18
18
  for (let r = 0; r < h; r += 1)
19
- for (let y = 0; y < v; y += 1)
20
- f[(r * v + y) * 4 + 3] > 1 && (F = !0, y < l && (l = y), y > i && (i = y), r < o && (o = r), r > x && (x = r));
21
- return F ? [l, o, i, x] : [0, 0, 0, 0];
19
+ for (let w = 0; w < v; w += 1)
20
+ f[(r * v + w) * 4 + 3] > 1 && (F = !0, w < l && (l = w), w > i && (i = w), r < o && (o = r), r > S && (S = r));
21
+ return F ? [l, o, i, S] : [0, 0, 0, 0];
22
22
  }
23
23
  function Ze({
24
- word: C,
25
- fontSize: b,
24
+ word: $,
25
+ fontSize: k,
26
26
  pad: v,
27
27
  canvas: h,
28
28
  ctx: d,
29
29
  svg: f
30
30
  }) {
31
- d.save(), d.font = `${f.style && f.style.bold ? "bold " : ""}${b}px Arial`;
32
- const l = d.measureText(C.name), o = Math.ceil(l.width) + 2 + (v ? v * 2 : 0), i = Math.ceil(b) + 2 + (v ? v * 2 : 0);
33
- h.width = o, h.height = i, d.clearRect(0, 0, o, i), d.font = `${f.style && f.style.bold ? "bold " : ""}${b}px Arial`, d.textAlign = "center", d.textBaseline = "middle", d.fillStyle = "black", d.fillText(C.name, o / 2, i / 2);
31
+ d.save(), d.font = `${f.style && f.style.bold ? "bold " : ""}${k}px Arial`;
32
+ const l = d.measureText($.name), o = Math.ceil(l.width) + 2 + (v ? v * 2 : 0), i = Math.ceil(k) + 2 + (v ? v * 2 : 0);
33
+ h.width = o, h.height = i, d.clearRect(0, 0, o, i), d.font = `${f.style && f.style.bold ? "bold " : ""}${k}px Arial`, d.textAlign = "center", d.textBaseline = "middle", d.fillStyle = "black", d.fillText($.name, o / 2, i / 2);
34
34
  const F = d.getImageData(0, 0, o, i).data, r = [];
35
- for (let _ = 0; _ < i; _ += 1)
36
- for (let U = 0; U < o; U += 1)
37
- F[(_ * o + U) * 4 + 3] > 1 && r.push([U, _]);
38
- const [y, E, X, k] = Yt(h, d);
39
- return d.restore(), { w: o, h: i, wordMask: r, minX: y, minY: E, maxX: X, maxY: k };
35
+ for (let W = 0; W < i; W += 1)
36
+ for (let Y = 0; Y < o; Y += 1)
37
+ F[(W * o + Y) * 4 + 3] > 1 && r.push([Y, W]);
38
+ const [w, U, L, C] = Yt(h, d);
39
+ return d.restore(), { w: o, h: i, wordMask: r, minX: w, minY: U, maxX: L, maxY: C };
40
40
  }
41
- function Qe({ mask: C, maskW: b, maskH: v, wx: h, wy: d, wordMask: f }) {
41
+ function Qe({ mask: $, maskW: k, maskH: v, wx: h, wy: d, wordMask: f }) {
42
42
  for (let l = 0; l < f.length; l += 1) {
43
43
  const o = h + f[l][0], i = d + f[l][1];
44
- if (o < 0 || i < 0 || o >= b || i >= v || C[i * b + o]) return !1;
44
+ if (o < 0 || i < 0 || o >= k || i >= v || $[i * k + o]) return !1;
45
45
  }
46
46
  return !0;
47
47
  }
48
- function Je({ mask: C, maskW: b, maskH: v, wx: h, wy: d, wordMask: f }) {
48
+ function Je({ mask: $, maskW: k, maskH: v, wx: h, wy: d, wordMask: f }) {
49
49
  for (let l = 0; l < f.length; l += 1) {
50
50
  const o = h + f[l][0], i = d + f[l][1];
51
- o >= 0 && i >= 0 && o < b && i < v && (C[i * b + o] = 1);
51
+ o >= 0 && i >= 0 && o < k && i < v && ($[i * k + o] = 1);
52
52
  }
53
53
  }
54
- function Gt({ wordMask: C, w: b, h: v, dilation: h }) {
55
- const d = new Set(C.map(([l, o]) => `${l},${o}`)), f = new Set(d);
56
- for (let [l, o] of C)
54
+ function Gt({ wordMask: $, w: k, h: v, dilation: h }) {
55
+ const d = new Set($.map(([l, o]) => `${l},${o}`)), f = new Set(d);
56
+ for (let [l, o] of $)
57
57
  for (let i = -h; i <= h; i += 1)
58
- for (let x = -h; x <= h; x += 1) {
59
- if (i === 0 && x === 0) continue;
60
- const F = l + i, r = o + x;
61
- F >= 0 && F < b && r >= 0 && r < v && f.add(`${F},${r}`);
58
+ for (let S = -h; S <= h; S += 1) {
59
+ if (i === 0 && S === 0) continue;
60
+ const F = l + i, r = o + S;
61
+ F >= 0 && F < k && r >= 0 && r < v && f.add(`${F},${r}`);
62
62
  }
63
63
  return Array.from(f).map((l) => l.split(",").map(Number));
64
64
  }
65
65
  function jt({
66
- words: C,
67
- proximity: b = 0,
66
+ words: $,
67
+ proximity: k = 0,
68
68
  svg: v,
69
69
  strictPixelPadding: h
70
70
  }) {
71
- const { width: d, height: f } = v, l = Math.round(d), o = Math.round(f), i = 1, x = v.minFontSize, F = Math.min(v.maxFontSize, 100), r = C.map(($) => $.value), y = Math.min(...r), E = Math.max(...r), X = new Uint8Array(l * o), k = document.createElement("canvas"), _ = k.getContext("2d", { willReadFrequently: !0 });
72
- k.width = l, k.height = o;
73
- const U = 6, me = 2, he = 2, ue = 1, Y = Math.floor(l / 2), K = Math.floor(o / 2), e = [...C].sort(($, R) => R.value - $.value), ee = [];
74
- for (const $ of e) {
75
- let R = x;
76
- E !== y && (R = ($.value - y) / (E - y) * (F - x) + x), R = Math.max(x, Math.min(F, R));
77
- let O = !1, I = R;
71
+ const { width: d, height: f } = v, l = Math.round(d), o = Math.round(f), i = 1, S = v.minFontSize, F = Math.min(v.maxFontSize, 100), r = $.map((T) => T.value), w = Math.min(...r), U = Math.max(...r), L = new Uint8Array(l * o), C = document.createElement("canvas"), W = C.getContext("2d", { willReadFrequently: !0 });
72
+ C.width = l, C.height = o;
73
+ const Y = 6, me = 2, he = 2, ue = 1, j = Math.floor(l / 2), te = Math.floor(o / 2), e = [...$].sort((T, _) => _.value - T.value), ae = [];
74
+ for (const T of e) {
75
+ let _ = S;
76
+ U !== w && (_ = (T.value - w) / (U - w) * (F - S) + S), _ = Math.max(S, Math.min(F, _));
77
+ let O = !1, I = _;
78
78
  for (; !O && I >= i; ) {
79
- let { w: A, h: z, wordMask: V, minX: G, minY: H, maxX: Z, maxY: Q } = Ze({
80
- word: $,
79
+ let { w: A, h: z, wordMask: E, minX: q, minY: Q, maxX: J, maxY: K } = Ze({
80
+ word: T,
81
81
  fontSize: I,
82
- pad: b,
83
- canvas: k,
84
- ctx: _,
82
+ pad: k,
83
+ canvas: C,
84
+ ctx: W,
85
85
  svg: v
86
86
  });
87
- h && (V = Gt({ wordMask: V, w: A, h: z, dilation: 1 }));
88
- let D = 0, L = 0;
89
- for (; D < Math.max(l, o) && !O && L < 1e4; ) {
90
- for (let u = 0; u < 360; u += U) {
91
- L += 1;
92
- const M = Math.round(Y + D * Math.cos(u * Math.PI / 180) - A / 2), p = Math.round(K + D * Math.sin(u * Math.PI / 180) - z / 2);
93
- if (!(M < 0 || p < 0 || M + A > l || p + z > o) && Qe({ mask: X, maskW: l, maskH: o, wx: M, wy: p, wordMask: V })) {
94
- ee.push({ ...$, x: M - l / 2, y: p - o / 2, fontSize: I, width: A, height: z, angle: 0, minX: G, minY: H, maxX: Z, maxY: Q }), Je({ mask: X, maskW: l, maskH: o, wx: M, wy: p, wordMask: V }), O = !0;
87
+ h && (E = Gt({ wordMask: E, w: A, h: z, dilation: 1 }));
88
+ let D = 0, G = 0;
89
+ for (; D < Math.max(l, o) && !O && G < 1e4; ) {
90
+ for (let u = 0; u < 360; u += Y) {
91
+ G += 1;
92
+ const M = Math.round(j + D * Math.cos(u * Math.PI / 180) - A / 2), b = Math.round(te + D * Math.sin(u * Math.PI / 180) - z / 2);
93
+ if (!(M < 0 || b < 0 || M + A > l || b + z > o) && Qe({ mask: L, maskW: l, maskH: o, wx: M, wy: b, wordMask: E })) {
94
+ ae.push({ ...T, x: M - l / 2, y: b - o / 2, fontSize: I, width: A, height: z, angle: 0, minX: q, minY: Q, maxX: J, maxY: K }), Je({ mask: L, maskW: l, maskH: o, wx: M, wy: b, wordMask: E }), O = !0;
95
95
  break;
96
96
  }
97
97
  }
@@ -101,21 +101,21 @@ function jt({
101
101
  }
102
102
  if (!O && I < i) {
103
103
  I = i;
104
- const { w: A, h: z, wordMask: V, minX: G, minY: H, maxX: Z, maxY: Q } = Ze({
105
- word: $,
104
+ const { w: A, h: z, wordMask: E, minX: q, minY: Q, maxX: J, maxY: K } = Ze({
105
+ word: T,
106
106
  fontSize: I,
107
- pad: b,
108
- canvas: k,
109
- ctx: _,
107
+ pad: k,
108
+ canvas: C,
109
+ ctx: W,
110
110
  svg: v
111
111
  });
112
- let D = 0, L = 0;
113
- for (; D < Math.max(l, o) && !O && L < 25e3; ) {
112
+ let D = 0, G = 0;
113
+ for (; D < Math.max(l, o) && !O && G < 25e3; ) {
114
114
  for (let u = 0; u < 360; u += he) {
115
- L += 1;
116
- const M = Math.round(Y + D * Math.cos(u * Math.PI / 180) - A / 2), p = Math.round(K + D * Math.sin(u * Math.PI / 180) - z / 2);
117
- if (!(M < 0 || p < 0 || M + A > l || p + z > o) && Qe({ mask: X, maskW: l, maskH: o, wx: M, wy: p, wordMask: V })) {
118
- ee.push({ ...$, x: M - l / 2, y: p - o / 2, fontSize: I, width: A, height: z, angle: 0, minX: G, minY: H, maxX: Z, maxY: Q }), Je({ mask: X, maskW: l, maskH: o, wx: M, wy: p, wordMask: V }), O = !0;
115
+ G += 1;
116
+ const M = Math.round(j + D * Math.cos(u * Math.PI / 180) - A / 2), b = Math.round(te + D * Math.sin(u * Math.PI / 180) - z / 2);
117
+ if (!(M < 0 || b < 0 || M + A > l || b + z > o) && Qe({ mask: L, maskW: l, maskH: o, wx: M, wy: b, wordMask: E })) {
118
+ ae.push({ ...T, x: M - l / 2, y: b - o / 2, fontSize: I, width: A, height: z, angle: 0, minX: q, minY: Q, maxX: J, maxY: K }), Je({ mask: L, maskW: l, maskH: o, wx: M, wy: b, wordMask: E }), O = !0;
119
119
  break;
120
120
  }
121
121
  }
@@ -123,7 +123,7 @@ function jt({
123
123
  }
124
124
  }
125
125
  }
126
- return ee.sort(($, R) => R.fontSize - $.fontSize);
126
+ return ae.sort((T, _) => _.fontSize - T.fontSize);
127
127
  }
128
128
  const qt = ["id"], Ht = ["xmlns", "viewBox"], Zt = ["width", "height"], Qt = ["transform"], Jt = ["x", "y", "width", "height", "onMouseover", "onMouseleave", "onClick"], Kt = ["fill", "font-weight", "x", "y", "font-size", "transform", "stroke", "stroke-width"], ea = {
129
129
  key: 3,
@@ -148,21 +148,21 @@ const qt = ["id"], Ht = ["xmlns", "viewBox"], Zt = ["width", "height"], Qt = ["t
148
148
  }
149
149
  }
150
150
  },
151
- setup(C, { expose: b }) {
151
+ setup($, { expose: k }) {
152
152
  dt((t) => ({
153
- v7d239f85: t.slicerColor
153
+ v9ba3ec0e: t.slicerColor
154
154
  }));
155
- const v = j(() => import("./Tooltip-oWCO1HKy.js")), h = j(() => import("./BaseIcon-BmMbm4d0.js")), d = j(() => import("./vue-ui-accordion-CZ0thhxa.js")), f = j(() => import("./DataTable-BT7VF2ua.js")), l = j(() => import("./PenAndPaper-DSvu9dwa.js")), o = j(() => import("./UserOptions-CGnQt6Fd.js")), i = j(() => import("./PackageVersion-Cyx_s25h.js")), x = j(() => import("./BaseDraggableDialog-ymf2sfB8.js")), { vue_ui_word_cloud: F } = zt(), r = C, y = q({
155
+ const v = H(() => import("./Tooltip-oWCO1HKy.js")), h = H(() => import("./BaseIcon-BmMbm4d0.js")), d = H(() => import("./vue-ui-accordion-CqhVCfc2.js")), f = H(() => import("./DataTable-BT7VF2ua.js")), l = H(() => import("./PenAndPaper-SZQIAgkg.js")), o = H(() => import("./UserOptions-CGnQt6Fd.js")), i = H(() => import("./PackageVersion-DQvyATVa.js")), S = H(() => import("./BaseDraggableDialog-ymf2sfB8.js")), { vue_ui_word_cloud: F } = zt(), r = $, w = Z({
156
156
  get() {
157
157
  return !!r.dataset && r.dataset.length;
158
158
  },
159
159
  set(t) {
160
160
  return t;
161
161
  }
162
- }), E = m(Ge()), X = m(0), k = m(null), _ = m(null), U = m(null), me = m(0), he = m(0), ue = m(!1), Y = m(null), K = m(null), e = m(H()), { loading: ee, FINAL_DATASET: $, manualLoading: R } = Dt({
162
+ }), U = m(Ge()), L = m(0), C = m(null), W = m(null), Y = m(null), me = m(0), he = m(0), ue = m(!1), j = m(null), te = m(null), e = m(Q()), { loading: ae, FINAL_DATASET: T, manualLoading: _ } = Dt({
163
163
  ...mt(r),
164
164
  FINAL_CONFIG: e,
165
- prepareConfig: H,
165
+ prepareConfig: Q,
166
166
  skeletonDataset: [
167
167
  { name: "Lorem", value: 6 },
168
168
  { name: "ipsum", value: 3 },
@@ -236,16 +236,16 @@ const qt = ["id"], Ht = ["xmlns", "viewBox"], Zt = ["width", "height"], Qt = ["t
236
236
  })
237
237
  }), O = m(I());
238
238
  function I() {
239
- return typeof $.value == "string" ? $t($.value) : $.value.map((t, n) => ({
239
+ return typeof T.value == "string" ? $t(T.value) : T.value.map((t, n) => ({
240
240
  ...t,
241
241
  value: St(t.value)
242
242
  }));
243
243
  }
244
- le(() => r.dataset, () => {
245
- O.value = I(), xe(), Q();
244
+ se(() => r.dataset, () => {
245
+ O.value = I(), xe(), K();
246
246
  });
247
- const { userOptionsVisible: A, setUserOptionsVisibility: z, keepUserOptionState: V } = Rt({ config: e.value }), { svgRef: G } = Vt({ config: e.value.style.chart.title });
248
- function H() {
247
+ const { userOptionsVisible: A, setUserOptionsVisibility: z, keepUserOptionState: E } = Vt({ config: e.value }), { svgRef: q } = Wt({ config: e.value.style.chart.title });
248
+ function Q() {
249
249
  const t = He({
250
250
  userConfig: r.config,
251
251
  defaultConfig: F
@@ -258,26 +258,26 @@ const qt = ["id"], Ht = ["xmlns", "viewBox"], Zt = ["width", "height"], Qt = ["t
258
258
  customPalette: Tt[t.theme] || Ce
259
259
  } : t;
260
260
  }
261
- const Z = m({ x: 0, y: 0 });
262
- function Q() {
261
+ const J = m({ x: 0, y: 0 });
262
+ function K() {
263
263
  const t = {
264
264
  x: 0,
265
265
  y: 0,
266
266
  width: Math.max(10, u.value.width),
267
267
  height: Math.max(10, u.value.height)
268
268
  };
269
- ot(t), Z.value = {
269
+ ot(t), J.value = {
270
270
  x: t.x + t.width / 2,
271
271
  y: t.y + t.height / 2
272
272
  }, be();
273
273
  }
274
274
  const D = kt(() => {
275
275
  xe();
276
- }, 10), L = m(!1);
277
- le(() => L.value, (t) => {
278
- t === !1 && (D(), Q());
279
- }), le(() => r.config, (t) => {
280
- e.value = H(), A.value = !e.value.userOptions.showOnChartHover, Oe(), me.value += 1, he.value += 1, P.value.showTable = e.value.table.show, P.value.showTooltip = e.value.style.chart.tooltip.show;
276
+ }, 10), G = m(!1);
277
+ se(() => G.value, (t) => {
278
+ t === !1 && (D(), K());
279
+ }), se(() => r.config, (t) => {
280
+ e.value = Q(), A.value = !e.value.userOptions.showOnChartHover, Oe(), me.value += 1, he.value += 1, P.value.showTable = e.value.table.show, P.value.showTooltip = e.value.style.chart.tooltip.show;
281
281
  }, { deep: !0 });
282
282
  const u = m({
283
283
  width: e.value.style.chart.width,
@@ -286,18 +286,18 @@ const qt = ["id"], Ht = ["xmlns", "viewBox"], Zt = ["width", "height"], Qt = ["t
286
286
  minFontSize: e.value.style.chart.words.minFontSize,
287
287
  bold: e.value.style.chart.words.bold
288
288
  }), M = wt(() => {
289
- L.value = !0;
289
+ G.value = !0;
290
290
  const { width: t, height: n } = Ct({
291
- chart: k.value,
292
- title: e.value.style.chart.title.text ? _.value : null,
293
- source: U.value
291
+ chart: C.value,
292
+ title: e.value.style.chart.title.text ? W.value : null,
293
+ source: Y.value
294
294
  });
295
295
  requestAnimationFrame(async () => {
296
- u.value.width = Math.max(10, t), u.value.height = Math.max(10, n - 12), await Ye(), L.value = !1;
296
+ u.value.width = Math.max(10, t), u.value.height = Math.max(10, n - 12), await Ye(), G.value = !1;
297
297
  });
298
- }), p = Ee(null), te = Ee(null);
298
+ }), b = Ee(null), oe = Ee(null);
299
299
  ht(Oe);
300
- const Pe = q(() => !!e.value.debug);
300
+ const Pe = Z(() => !!e.value.debug);
301
301
  function Oe() {
302
302
  je(r.dataset) ? qe({
303
303
  componentName: "VueUiWordCloud",
@@ -308,7 +308,7 @@ const qt = ["id"], Ht = ["xmlns", "viewBox"], Zt = ["width", "height"], Qt = ["t
308
308
  datasetObject: t,
309
309
  requiredAttributes: ["name", "value"]
310
310
  }).forEach((a) => {
311
- y.value = !1, qe({
311
+ w.value = !1, qe({
312
312
  componentName: "VueUiWordCloud",
313
313
  type: "datasetSerieAttribute",
314
314
  property: a,
@@ -316,45 +316,45 @@ const qt = ["id"], Ht = ["xmlns", "viewBox"], Zt = ["width", "height"], Qt = ["t
316
316
  debug: Pe.value
317
317
  });
318
318
  });
319
- }), je(r.dataset) || (R.value = e.value.loading), e.value.responsive && (p.value && (te.value && p.value.unobserve(te.value), p.value.disconnect()), p.value = new ResizeObserver(M), te.value = k.value.parentNode, p.value.observe(te.value)), Q();
319
+ }), je(r.dataset) || (_.value = e.value.loading), e.value.responsive && (b.value && (oe.value && b.value.unobserve(oe.value), b.value.disconnect()), b.value = new ResizeObserver(M), oe.value = C.value.parentNode, b.value.observe(oe.value)), K();
320
320
  }
321
321
  ft(() => {
322
- p.value && (te.value && p.value.unobserve(te.value), p.value.disconnect());
322
+ b.value && (oe.value && b.value.unobserve(oe.value), b.value.disconnect());
323
323
  });
324
324
  const { isPrinting: Ae, isImaging: Ie, generatePdf: ze, generateImage: De } = Bt({
325
- elementId: `wordCloud_${E.value}`,
325
+ elementId: `wordCloud_${U.value}`,
326
326
  fileName: e.value.style.chart.title.text || "vue-ui-word-cloud",
327
327
  options: e.value.userOptions.print
328
328
  }), P = m({
329
329
  showTable: e.value.table.show,
330
330
  showTooltip: e.value.style.chart.tooltip.show
331
331
  });
332
- le(e, () => {
332
+ se(e, () => {
333
333
  P.value = {
334
334
  showTable: e.value.table.show,
335
335
  showTooltip: e.value.style.chart.tooltip.show
336
336
  };
337
337
  }, { immediate: !0 });
338
338
  function Ke(t, n, a = "Arial") {
339
- const g = document.createElement("canvas").getContext("2d");
340
- return g.font = `${n}px ${e.value.style.chart.words.bold ? "bold" : "normal"} ${a}`, {
341
- width: g.measureText(t).width + e.value.style.chart.words.proximity,
339
+ const y = document.createElement("canvas").getContext("2d");
340
+ return y.font = `${n}px ${e.value.style.chart.words.bold ? "bold" : "normal"} ${a}`, {
341
+ width: y.measureText(t).width + e.value.style.chart.words.proximity,
342
342
  height: n
343
343
  };
344
344
  }
345
345
  const re = m([]);
346
- le(() => r.dataset, xe, { immediate: !0 });
346
+ se(() => r.dataset, xe, { immediate: !0 });
347
347
  function xe() {
348
- const t = [...O.value].map((g) => g.value), n = Math.max(...t), a = Math.min(...t), c = [...O.value].map((g, N) => {
349
- let J = (g.value - a) / (n - a) * (u.value.maxFontSize - u.value.minFontSize) + u.value.minFontSize;
350
- J = isNaN(J) ? u.value.minFontSize : J;
351
- const We = Ke(g.name, J);
348
+ const t = [...O.value].map((y) => y.value), n = Math.max(...t), a = Math.min(...t), c = [...O.value].map((y, N) => {
349
+ let ee = (y.value - a) / (n - a) * (u.value.maxFontSize - u.value.minFontSize) + u.value.minFontSize;
350
+ ee = isNaN(ee) ? u.value.minFontSize : ee;
351
+ const _e = Ke(y.name, ee);
352
352
  return {
353
- ...g,
353
+ ...y,
354
354
  id: Ge(),
355
- fontSize: J,
356
- width: We.width,
357
- height: We.height,
355
+ fontSize: ee,
356
+ width: _e.width,
357
+ height: _e.height,
358
358
  color: e.value.style.chart.words.usePalette ? e.value.customPalette[N] || e.value.customPalette[N % e.value.customPalette.length] || Ce[N] || Ce[N % Ce.length] : e.value.style.chart.words.color
359
359
  };
360
360
  });
@@ -365,7 +365,7 @@ const qt = ["id"], Ht = ["xmlns", "viewBox"], Zt = ["width", "height"], Qt = ["t
365
365
  strictPixelPadding: e.value.strictPixelPadding
366
366
  });
367
367
  }
368
- const fe = q(() => {
368
+ const fe = Z(() => {
369
369
  const t = re.value.map((a) => ({
370
370
  name: a.name,
371
371
  color: a.color
@@ -374,24 +374,24 @@ const qt = ["id"], Ht = ["xmlns", "viewBox"], Zt = ["width", "height"], Qt = ["t
374
374
  });
375
375
  function $e(t = null) {
376
376
  Ye(() => {
377
- const n = fe.value.head.map((g, N) => [[
378
- g.name
377
+ const n = fe.value.head.map((y, N) => [[
378
+ y.name
379
379
  ], [fe.value.body[N]]]), a = [[e.value.style.chart.title.text], [e.value.style.chart.title.subtitle.text], [[""], [e.value.table.columnNames.value]]].concat(n), c = Ot(a);
380
380
  t ? t(c) : At({ csvContent: c, title: e.value.style.chart.title.text || "vue-ui-word-cloud" });
381
381
  });
382
382
  }
383
- const pe = q(() => {
383
+ const pe = Z(() => {
384
384
  const t = [
385
385
  e.value.table.columnNames.series,
386
386
  e.value.table.columnNames.value
387
- ], n = fe.value.head.map((g, N) => {
388
- const J = Mt({ p: e.value.table.td.prefix, v: fe.value.body[N], s: e.value.table.td.suffix, r: e.value.table.td.roundingValue });
387
+ ], n = fe.value.head.map((y, N) => {
388
+ const ee = Mt({ p: e.value.table.td.prefix, v: fe.value.body[N], s: e.value.table.td.suffix, r: e.value.table.td.roundingValue });
389
389
  return [
390
390
  {
391
- color: g.color,
392
- name: g.name
391
+ color: y.color,
392
+ name: y.name
393
393
  },
394
- J
394
+ ee
395
395
  ];
396
396
  }), a = {
397
397
  th: {
@@ -415,9 +415,9 @@ const qt = ["id"], Ht = ["xmlns", "viewBox"], Zt = ["width", "height"], Qt = ["t
415
415
  body: n,
416
416
  config: a
417
417
  };
418
- }), ae = m(!1);
418
+ }), le = m(!1);
419
419
  function Ne(t) {
420
- ae.value = t, X.value += 1;
420
+ le.value = t, L.value += 1;
421
421
  }
422
422
  function et() {
423
423
  return re.value;
@@ -425,24 +425,24 @@ const qt = ["id"], Ht = ["xmlns", "viewBox"], Zt = ["width", "height"], Qt = ["t
425
425
  function Be() {
426
426
  P.value.showTable = !P.value.showTable;
427
427
  }
428
- function _e() {
428
+ function Re() {
429
429
  P.value.showTooltip = !P.value.showTooltip;
430
430
  }
431
431
  const ce = m(!1);
432
432
  function Se() {
433
433
  ce.value = !ce.value;
434
434
  }
435
- const tt = q(() => !ce.value && e.value.style.chart.zoom.show), { viewBox: ge, resetZoom: be, isZoom: at, setInitialViewBox: ot } = Ut(G, {
435
+ const tt = Z(() => !ce.value && e.value.style.chart.zoom.show), { viewBox: ge, resetZoom: be, isZoom: at, setInitialViewBox: ot } = Ut(q, {
436
436
  x: 0,
437
437
  y: 0,
438
438
  width: u.value.width <= 0 ? 10 : u.value.width,
439
439
  height: u.value.height <= 0 ? 10 : u.value.height
440
440
  }, 1, tt);
441
441
  async function lt({ scale: t = 2 } = {}) {
442
- if (!k.value) return;
443
- const { width: n, height: a } = k.value.getBoundingClientRect(), c = n / a, { imageUri: g, base64: N } = await Wt({ domElement: k.value, base64: !0, img: !0, scale: t });
442
+ if (!C.value) return;
443
+ const { width: n, height: a } = C.value.getBoundingClientRect(), c = n / a, { imageUri: y, base64: N } = await _t({ domElement: C.value, base64: !0, img: !0, scale: t });
444
444
  return {
445
- imageUri: g,
445
+ imageUri: y,
446
446
  base64: N,
447
447
  title: e.value.style.chart.title.text,
448
448
  width: n,
@@ -450,18 +450,18 @@ const qt = ["id"], Ht = ["xmlns", "viewBox"], Zt = ["width", "height"], Qt = ["t
450
450
  aspectRatio: c
451
451
  };
452
452
  }
453
- const ve = q(() => {
453
+ const ve = Z(() => {
454
454
  const t = e.value.table.useDialog && !e.value.table.show, n = P.value.showTable;
455
455
  return {
456
- component: t ? x : d,
456
+ component: t ? S : d,
457
457
  title: `${e.value.style.chart.title.text}${e.value.style.chart.title.subtitle.text ? `: ${e.value.style.chart.title.subtitle.text}` : ""}`,
458
458
  props: t ? {
459
459
  backgroundColor: e.value.table.th.backgroundColor,
460
460
  color: e.value.table.th.color,
461
461
  headerColor: e.value.table.th.color,
462
462
  headerBg: e.value.table.th.backgroundColor,
463
- isFullscreen: ae.value,
464
- fullscreenParent: k.value,
463
+ isFullscreen: le.value,
464
+ fullscreenParent: C.value,
465
465
  forcedWidth: Math.min(500, window.innerWidth * 0.8)
466
466
  } : {
467
467
  hideDetails: !0,
@@ -480,47 +480,47 @@ const qt = ["id"], Ht = ["xmlns", "viewBox"], Zt = ["width", "height"], Qt = ["t
480
480
  }
481
481
  };
482
482
  });
483
- le(() => P.value.showTable, (t) => {
484
- e.value.table.show || (t && e.value.table.useDialog && Y.value ? Y.value.open() : "close" in Y.value && Y.value.close());
483
+ se(() => P.value.showTable, (t) => {
484
+ e.value.table.show || (t && e.value.table.useDialog && j.value ? j.value.open() : "close" in j.value && j.value.close());
485
485
  });
486
- function Re() {
487
- P.value.showTable = !1, K.value && K.value.setTableIconState(!1);
486
+ function Ve() {
487
+ P.value.showTable = !1, te.value && te.value.setTableIconState(!1);
488
488
  }
489
- const nt = q(() => e.value.style.chart.backgroundColor), st = q(() => e.value.style.chart.title), { exportSvg: it, getSvg: ut } = _t({
490
- svg: G,
489
+ const nt = Z(() => e.value.style.chart.backgroundColor), st = Z(() => e.value.style.chart.title), { exportSvg: it, getSvg: ut } = Rt({
490
+ svg: q,
491
491
  title: st,
492
492
  backgroundColor: nt
493
493
  });
494
- async function Ve({ isCb: t }) {
494
+ async function We({ isCb: t }) {
495
495
  if (t) {
496
- const { blob: n, url: a, text: c, dataUrl: g } = await ut();
497
- e.value.userOptions.callbacks.svg({ blob: n, url: a, text: c, dataUrl: g });
496
+ const { blob: n, url: a, text: c, dataUrl: y } = await ut();
497
+ e.value.userOptions.callbacks.svg({ blob: n, url: a, text: c, dataUrl: y });
498
498
  } else
499
499
  it();
500
500
  }
501
- b({
501
+ k({
502
502
  getData: et,
503
503
  getImage: lt,
504
504
  generateCsv: $e,
505
505
  generatePdf: ze,
506
506
  generateImage: De,
507
- generateSvg: Ve,
507
+ generateSvg: We,
508
508
  resetZoom: be,
509
509
  toggleTable: Be,
510
- toggleTooltip: _e,
510
+ toggleTooltip: Re,
511
511
  toggleAnnotator: Se,
512
512
  toggleFullscreen: Ne
513
513
  });
514
- const oe = m(null), de = m(!1), Te = m(""), Fe = m(null);
514
+ const ne = m(null), de = m(!1), Te = m(""), Fe = m(null);
515
515
  function rt(t, n) {
516
- oe.value = null, ue.value = !1, e.value.events.datapointLeave && e.value.events.datapointLeave({ datapoint: t, seriesIndex: n });
516
+ ne.value = null, ue.value = !1, e.value.events.datapointLeave && e.value.events.datapointLeave({ datapoint: t, seriesIndex: n });
517
517
  }
518
518
  function ct(t, n) {
519
519
  e.value.events.datapointClick && e.value.events.datapointClick({ datapoint: t, seriesIndex: n });
520
520
  }
521
521
  function vt(t, n) {
522
522
  if (e.value.events.datapointEnter && e.value.events.datapointEnter({ datapoint: t, seriesIndex: n }), !P.value.showTooltip) return;
523
- oe.value = t.id, Fe.value = { datapoint: t, config: e.value };
523
+ ne.value = t.id, Fe.value = { datapoint: t, config: e.value };
524
524
  const a = e.value.style.chart.tooltip.customFormat;
525
525
  if (de.value = !1, It(a))
526
526
  try {
@@ -538,30 +538,50 @@ const qt = ["id"], Ht = ["xmlns", "viewBox"], Zt = ["width", "height"], Qt = ["t
538
538
  }
539
539
  ue.value = !0;
540
540
  }
541
- return (t, n) => (w(), B("div", {
541
+ return (t, n) => (x(), B("div", {
542
542
  class: "vue-data-ui-component vue-ui-word-cloud",
543
543
  ref_key: "wordCloudChart",
544
- ref: k,
545
- id: `wordCloud_${E.value}`,
544
+ ref: C,
545
+ id: `wordCloud_${U.value}`,
546
546
  style: ye(`width: 100%; font-family:${e.value.style.fontFamily};background:${e.value.style.chart.backgroundColor};${e.value.responsive ? "height:100%" : ""}`),
547
547
  onMouseenter: n[2] || (n[2] = () => s(z)(!0)),
548
548
  onMouseleave: n[3] || (n[3] = () => s(z)(!1))
549
549
  }, [
550
- e.value.userOptions.buttons.annotator ? (w(), ne(s(l), {
550
+ e.value.userOptions.buttons.annotator ? (x(), ie(s(l), {
551
551
  key: 0,
552
- svgRef: s(G),
552
+ svgRef: s(q),
553
553
  backgroundColor: e.value.style.chart.backgroundColor,
554
554
  color: e.value.style.chart.color,
555
555
  active: ce.value,
556
556
  onClose: Se
557
- }, null, 8, ["svgRef", "backgroundColor", "color", "active"])) : W("", !0),
558
- e.value.style.chart.title.text ? (w(), B("div", {
557
+ }, {
558
+ "annotator-action-close": p(() => [
559
+ g(t.$slots, "annotator-action-close", {}, void 0, !0)
560
+ ]),
561
+ "annotator-action-color": p(({ color: a }) => [
562
+ g(t.$slots, "annotator-action-color", R(V({ color: a })), void 0, !0)
563
+ ]),
564
+ "annotator-action-draw": p(({ mode: a }) => [
565
+ g(t.$slots, "annotator-action-draw", R(V({ mode: a })), void 0, !0)
566
+ ]),
567
+ "annotator-action-undo": p(({ disabled: a }) => [
568
+ g(t.$slots, "annotator-action-undo", R(V({ disabled: a })), void 0, !0)
569
+ ]),
570
+ "annotator-action-redo": p(({ disabled: a }) => [
571
+ g(t.$slots, "annotator-action-redo", R(V({ disabled: a })), void 0, !0)
572
+ ]),
573
+ "annotator-action-delete": p(({ disabled: a }) => [
574
+ g(t.$slots, "annotator-action-delete", R(V({ disabled: a })), void 0, !0)
575
+ ]),
576
+ _: 3
577
+ }, 8, ["svgRef", "backgroundColor", "color", "active"])) : X("", !0),
578
+ e.value.style.chart.title.text ? (x(), B("div", {
559
579
  key: 1,
560
580
  ref_key: "chartTitle",
561
- ref: _,
581
+ ref: W,
562
582
  style: "width:100%;background:transparent;padding-bottom:24px"
563
583
  }, [
564
- (w(), ne(Et, {
584
+ (x(), ie(Et, {
565
585
  key: `title_${me.value}`,
566
586
  config: {
567
587
  title: {
@@ -572,25 +592,25 @@ const qt = ["id"], Ht = ["xmlns", "viewBox"], Zt = ["width", "height"], Qt = ["t
572
592
  }
573
593
  }
574
594
  }, null, 8, ["config"]))
575
- ], 512)) : W("", !0),
576
- e.value.userOptions.show && y.value && (s(V) || s(A)) ? (w(), ne(s(o), {
595
+ ], 512)) : X("", !0),
596
+ e.value.userOptions.show && w.value && (s(E) || s(A)) ? (x(), ie(s(o), {
577
597
  ref_key: "userOptionsRef",
578
- ref: K,
579
- key: `user_option_${X.value}`,
598
+ ref: te,
599
+ key: `user_option_${L.value}`,
580
600
  backgroundColor: e.value.style.chart.backgroundColor,
581
601
  color: e.value.style.chart.color,
582
602
  isPrinting: s(Ae),
583
603
  isImaging: s(Ie),
584
- uid: E.value,
604
+ uid: U.value,
585
605
  hasPdf: e.value.userOptions.buttons.pdf,
586
606
  hasXls: e.value.userOptions.buttons.csv,
587
607
  hasImg: e.value.userOptions.buttons.img,
588
608
  hasSvg: e.value.userOptions.buttons.svg,
589
609
  hasTable: e.value.userOptions.buttons.table,
590
610
  hasFullscreen: e.value.userOptions.buttons.fullscreen,
591
- isFullscreen: ae.value,
611
+ isFullscreen: le.value,
592
612
  titles: { ...e.value.userOptions.buttonTitles },
593
- chartElement: k.value,
613
+ chartElement: C.value,
594
614
  position: e.value.userOptions.position,
595
615
  hasTooltip: e.value.style.chart.tooltip.show && e.value.userOptions.buttons.tooltip,
596
616
  isTooltip: P.value.showTooltip,
@@ -603,81 +623,81 @@ const qt = ["id"], Ht = ["xmlns", "viewBox"], Zt = ["width", "height"], Qt = ["t
603
623
  onGeneratePdf: s(ze),
604
624
  onGenerateCsv: $e,
605
625
  onGenerateImage: s(De),
606
- onGenerateSvg: Ve,
626
+ onGenerateSvg: We,
607
627
  onToggleTable: Be,
608
- onToggleTooltip: _e,
628
+ onToggleTooltip: Re,
609
629
  onToggleAnnotator: Se,
610
630
  style: ye({
611
- visibility: s(V) ? s(A) ? "visible" : "hidden" : "visible"
631
+ visibility: s(E) ? s(A) ? "visible" : "hidden" : "visible"
612
632
  })
613
633
  }, Xe({ _: 2 }, [
614
634
  t.$slots.menuIcon ? {
615
635
  name: "menuIcon",
616
- fn: S(({ isOpen: a, color: c }) => [
617
- T(t.$slots, "menuIcon", se(ie({ isOpen: a, color: c })), void 0, !0)
636
+ fn: p(({ isOpen: a, color: c }) => [
637
+ g(t.$slots, "menuIcon", R(V({ isOpen: a, color: c })), void 0, !0)
618
638
  ]),
619
639
  key: "0"
620
640
  } : void 0,
621
641
  t.$slots.optionPdf ? {
622
642
  name: "optionPdf",
623
- fn: S(() => [
624
- T(t.$slots, "optionPdf", {}, void 0, !0)
643
+ fn: p(() => [
644
+ g(t.$slots, "optionPdf", {}, void 0, !0)
625
645
  ]),
626
646
  key: "1"
627
647
  } : void 0,
628
648
  t.$slots.optionCsv ? {
629
649
  name: "optionCsv",
630
- fn: S(() => [
631
- T(t.$slots, "optionCsv", {}, void 0, !0)
650
+ fn: p(() => [
651
+ g(t.$slots, "optionCsv", {}, void 0, !0)
632
652
  ]),
633
653
  key: "2"
634
654
  } : void 0,
635
655
  t.$slots.optionImg ? {
636
656
  name: "optionImg",
637
- fn: S(() => [
638
- T(t.$slots, "optionImg", {}, void 0, !0)
657
+ fn: p(() => [
658
+ g(t.$slots, "optionImg", {}, void 0, !0)
639
659
  ]),
640
660
  key: "3"
641
661
  } : void 0,
642
662
  t.$slots.optionSvg ? {
643
663
  name: "optionSvg",
644
- fn: S(() => [
645
- T(t.$slots, "optionSvg", {}, void 0, !0)
664
+ fn: p(() => [
665
+ g(t.$slots, "optionSvg", {}, void 0, !0)
646
666
  ]),
647
667
  key: "4"
648
668
  } : void 0,
649
669
  t.$slots.optionTable ? {
650
670
  name: "optionTable",
651
- fn: S(() => [
652
- T(t.$slots, "optionTable", {}, void 0, !0)
671
+ fn: p(() => [
672
+ g(t.$slots, "optionTable", {}, void 0, !0)
653
673
  ]),
654
674
  key: "5"
655
675
  } : void 0,
656
676
  t.$slots.optionFullscreen ? {
657
677
  name: "optionFullscreen",
658
- fn: S(({ toggleFullscreen: a, isFullscreen: c }) => [
659
- T(t.$slots, "optionFullscreen", se(ie({ toggleFullscreen: a, isFullscreen: c })), void 0, !0)
678
+ fn: p(({ toggleFullscreen: a, isFullscreen: c }) => [
679
+ g(t.$slots, "optionFullscreen", R(V({ toggleFullscreen: a, isFullscreen: c })), void 0, !0)
660
680
  ]),
661
681
  key: "6"
662
682
  } : void 0,
663
683
  t.$slots.optionAnnotator ? {
664
684
  name: "optionAnnotator",
665
- fn: S(({ toggleAnnotator: a, isAnnotator: c }) => [
666
- T(t.$slots, "optionAnnotator", se(ie({ toggleAnnotator: a, isAnnotator: c })), void 0, !0)
685
+ fn: p(({ toggleAnnotator: a, isAnnotator: c }) => [
686
+ g(t.$slots, "optionAnnotator", R(V({ toggleAnnotator: a, isAnnotator: c })), void 0, !0)
667
687
  ]),
668
688
  key: "7"
669
689
  } : void 0
670
- ]), 1032, ["backgroundColor", "color", "isPrinting", "isImaging", "uid", "hasPdf", "hasXls", "hasImg", "hasSvg", "hasTable", "hasFullscreen", "isFullscreen", "titles", "chartElement", "position", "hasTooltip", "isTooltip", "hasAnnotator", "isAnnotation", "callbacks", "printScale", "tableDialog", "onGeneratePdf", "onGenerateImage", "style"])) : W("", !0),
671
- (w(), B("svg", {
690
+ ]), 1032, ["backgroundColor", "color", "isPrinting", "isImaging", "uid", "hasPdf", "hasXls", "hasImg", "hasSvg", "hasTable", "hasFullscreen", "isFullscreen", "titles", "chartElement", "position", "hasTooltip", "isTooltip", "hasAnnotator", "isAnnotation", "callbacks", "printScale", "tableDialog", "onGeneratePdf", "onGenerateImage", "style"])) : X("", !0),
691
+ (x(), B("svg", {
672
692
  ref_key: "svgRef",
673
- ref: G,
674
- class: Ue({ "vue-data-ui-fullscreen--on": ae.value, "vue-data-ui-fulscreen--off": !ae.value }),
693
+ ref: q,
694
+ class: Ue({ "vue-data-ui-fullscreen--on": le.value, "vue-data-ui-fulscreen--off": !le.value }),
675
695
  xmlns: s(Pt),
676
696
  viewBox: `${s(ge).x} ${s(ge).y} ${s(ge).width} ${s(ge).height}`,
677
697
  style: "overflow:hidden;background:transparent;"
678
698
  }, [
679
699
  ke(s(i)),
680
- t.$slots["chart-background"] ? (w(), B("foreignObject", {
700
+ t.$slots["chart-background"] ? (x(), B("foreignObject", {
681
701
  key: 0,
682
702
  x: 0,
683
703
  y: 0,
@@ -687,13 +707,13 @@ const qt = ["id"], Ht = ["xmlns", "viewBox"], Zt = ["width", "height"], Qt = ["t
687
707
  pointerEvents: "none"
688
708
  }
689
709
  }, [
690
- T(t.$slots, "chart-background", {}, void 0, !0)
691
- ], 8, Zt)) : W("", !0),
710
+ g(t.$slots, "chart-background", {}, void 0, !0)
711
+ ], 8, Zt)) : X("", !0),
692
712
  we("g", {
693
- transform: `translate(${Z.value.x}, ${Z.value.y})`
713
+ transform: `translate(${J.value.x}, ${J.value.y})`
694
714
  }, [
695
- (w(!0), B(pt, null, gt(re.value, (a, c) => (w(), B("g", null, [
696
- a.minX !== void 0 ? (w(), B("rect", {
715
+ (x(!0), B(pt, null, gt(re.value, (a, c) => (x(), B("g", null, [
716
+ a.minX !== void 0 ? (x(), B("rect", {
697
717
  key: 0,
698
718
  x: a.x + a.minX,
699
719
  y: a.y + a.minY * 1.25,
@@ -701,11 +721,11 @@ const qt = ["id"], Ht = ["xmlns", "viewBox"], Zt = ["width", "height"], Qt = ["t
701
721
  height: a.maxY - a.minY,
702
722
  fill: "transparent",
703
723
  "pointer-events": "visiblePainted",
704
- onMouseover: (g) => vt(a, c),
705
- onMouseleave: (g) => rt(a, c),
706
- onClick: (g) => ct(a, c)
707
- }, null, 40, Jt)) : W("", !0),
708
- (w(), B("text", {
724
+ onMouseover: (y) => vt(a, c),
725
+ onMouseleave: (y) => rt(a, c),
726
+ onClick: (y) => ct(a, c)
727
+ }, null, 40, Jt)) : X("", !0),
728
+ (x(), B("text", {
709
729
  fill: a.color,
710
730
  "font-weight": e.value.style.chart.words.bold ? "bold" : "normal",
711
731
  key: c,
@@ -713,32 +733,32 @@ const qt = ["id"], Ht = ["xmlns", "viewBox"], Zt = ["width", "height"], Qt = ["t
713
733
  y: a.y,
714
734
  "font-size": a.fontSize,
715
735
  transform: `translate(${a.width / 2}, ${a.height / 2})`,
716
- class: Ue({ animated: e.value.useCssAnimation && !s(ee) }),
736
+ class: Ue({ animated: e.value.useCssAnimation && !s(ae) }),
717
737
  "text-anchor": "middle",
718
738
  "dominant-baseline": "central",
719
739
  "paint-order": "stroke fill",
720
- stroke: !oe.value || oe.value === a.id ? e.value.style.chart.words.selectedStroke : void 0,
740
+ stroke: !ne.value || ne.value === a.id ? e.value.style.chart.words.selectedStroke : void 0,
721
741
  "stroke-width": a.height * 0.05,
722
742
  "stroke-linecap": "round",
723
743
  "stroke-linejoin": "round",
724
744
  style: ye(`
725
745
  animation-delay:${c * e.value.animationDelayMs}ms !important;
726
746
  pointer-events:none;
727
- fill-opacity:${!oe.value || oe.value === a.id ? 1 : e.value.style.chart.words.hoverOpacity} !important;
747
+ fill-opacity:${!ne.value || ne.value === a.id ? 1 : e.value.style.chart.words.hoverOpacity} !important;
728
748
  transition:fill-opacity 0.3s ease-in-out !important;
729
749
  `)
730
750
  }, Me(a.name), 15, Kt))
731
751
  ]))), 256))
732
752
  ], 8, Qt),
733
- T(t.$slots, "svg", {
753
+ g(t.$slots, "svg", {
734
754
  svg: { height: u.value.height, width: u.value.width }
735
755
  }, void 0, !0)
736
756
  ], 10, Ht)),
737
- t.$slots.watermark ? (w(), B("div", ea, [
738
- T(t.$slots, "watermark", se(ie({ isPrinting: s(Ae) || s(Ie) })), void 0, !0)
739
- ])) : W("", !0),
740
- s(at) ? (w(), B("div", ta, [
741
- T(t.$slots, "reset-action", { reset: s(be) }, () => [
757
+ t.$slots.watermark ? (x(), B("div", ea, [
758
+ g(t.$slots, "watermark", R(V({ isPrinting: s(Ae) || s(Ie) })), void 0, !0)
759
+ ])) : X("", !0),
760
+ s(at) ? (x(), B("div", ta, [
761
+ g(t.$slots, "reset-action", { reset: s(be) }, () => [
742
762
  we("button", {
743
763
  "data-cy-reset": "",
744
764
  tabindex: "0",
@@ -755,7 +775,7 @@ const qt = ["id"], Ht = ["xmlns", "viewBox"], Zt = ["width", "height"], Qt = ["t
755
775
  }, null, 8, ["stroke"])
756
776
  ], 4)
757
777
  ], !0)
758
- ])) : W("", !0),
778
+ ])) : X("", !0),
759
779
  ke(s(v), {
760
780
  show: P.value.showTooltip && ue.value,
761
781
  backgroundColor: e.value.style.chart.tooltip.backgroundColor,
@@ -767,38 +787,38 @@ const qt = ["id"], Ht = ["xmlns", "viewBox"], Zt = ["width", "height"], Qt = ["t
767
787
  backgroundOpacity: e.value.style.chart.tooltip.backgroundOpacity,
768
788
  position: e.value.style.chart.tooltip.position,
769
789
  offsetY: e.value.style.chart.tooltip.offsetY,
770
- parent: k.value,
790
+ parent: C.value,
771
791
  content: Te.value,
772
792
  isCustom: de.value,
773
- isFullscreen: ae.value,
793
+ isFullscreen: le.value,
774
794
  smooth: e.value.style.chart.tooltip.smooth,
775
795
  backdropFilter: e.value.style.chart.tooltip.backdropFilter,
776
796
  smoothForce: e.value.style.chart.tooltip.smoothForce,
777
797
  smoothSnapThreshold: e.value.style.chart.tooltip.smoothSnapThreshold
778
798
  }, {
779
- "tooltip-before": S(() => [
780
- T(t.$slots, "tooltip-before", se(ie({ ...Fe.value })), void 0, !0)
799
+ "tooltip-before": p(() => [
800
+ g(t.$slots, "tooltip-before", R(V({ ...Fe.value })), void 0, !0)
781
801
  ]),
782
- "tooltip-after": S(() => [
783
- T(t.$slots, "tooltip-after", se(ie({ ...Fe.value })), void 0, !0)
802
+ "tooltip-after": p(() => [
803
+ g(t.$slots, "tooltip-after", R(V({ ...Fe.value })), void 0, !0)
784
804
  ]),
785
805
  _: 3
786
806
  }, 8, ["show", "backgroundColor", "color", "fontSize", "borderRadius", "borderColor", "borderWidth", "backgroundOpacity", "position", "offsetY", "parent", "content", "isCustom", "isFullscreen", "smooth", "backdropFilter", "smoothForce", "smoothSnapThreshold"]),
787
- t.$slots.source ? (w(), B("div", {
807
+ t.$slots.source ? (x(), B("div", {
788
808
  key: 5,
789
809
  ref_key: "source",
790
- ref: U,
810
+ ref: Y,
791
811
  dir: "auto"
792
812
  }, [
793
- T(t.$slots, "source", {}, void 0, !0)
794
- ], 512)) : W("", !0),
795
- y.value && e.value.userOptions.buttons.table ? (w(), ne(bt(ve.value.component), yt({ key: 6 }, ve.value.props, {
813
+ g(t.$slots, "source", {}, void 0, !0)
814
+ ], 512)) : X("", !0),
815
+ w.value && e.value.userOptions.buttons.table ? (x(), ie(bt(ve.value.component), yt({ key: 6 }, ve.value.props, {
796
816
  ref_key: "tableUnit",
797
- ref: Y,
798
- onClose: Re
817
+ ref: j,
818
+ onClose: Ve
799
819
  }), Xe({
800
- content: S(() => [
801
- (w(), ne(s(f), {
820
+ content: p(() => [
821
+ (x(), ie(s(f), {
802
822
  key: `table_${he.value}`,
803
823
  colNames: pe.value.colNames,
804
824
  head: pe.value.head,
@@ -806,15 +826,15 @@ const qt = ["id"], Ht = ["xmlns", "viewBox"], Zt = ["width", "height"], Qt = ["t
806
826
  config: pe.value.config,
807
827
  title: e.value.table.useDialog ? "" : ve.value.title,
808
828
  withCloseButton: !e.value.table.useDialog,
809
- onClose: Re
829
+ onClose: Ve
810
830
  }, {
811
- th: S(({ th: a }) => [
831
+ th: p(({ th: a }) => [
812
832
  we("div", {
813
833
  innerHTML: a,
814
834
  style: { display: "flex", "align-items": "center" }
815
835
  }, null, 8, aa)
816
836
  ]),
817
- td: S(({ td: a }) => [
837
+ td: p(({ td: a }) => [
818
838
  Le(Me(a.name || a), 1)
819
839
  ]),
820
840
  _: 1
@@ -824,14 +844,14 @@ const qt = ["id"], Ht = ["xmlns", "viewBox"], Zt = ["width", "height"], Qt = ["t
824
844
  }, [
825
845
  e.value.table.useDialog ? {
826
846
  name: "title",
827
- fn: S(() => [
847
+ fn: p(() => [
828
848
  Le(Me(ve.value.title), 1)
829
849
  ]),
830
850
  key: "0"
831
851
  } : void 0,
832
852
  e.value.table.useDialog ? {
833
853
  name: "actions",
834
- fn: S(() => [
854
+ fn: p(() => [
835
855
  we("button", {
836
856
  tabindex: "0",
837
857
  class: "vue-ui-user-options-button",
@@ -845,11 +865,11 @@ const qt = ["id"], Ht = ["xmlns", "viewBox"], Zt = ["width", "height"], Qt = ["t
845
865
  ]),
846
866
  key: "1"
847
867
  } : void 0
848
- ]), 1040)) : W("", !0),
849
- s(ee) ? (w(), ne(Nt, { key: 7 })) : W("", !0)
868
+ ]), 1040)) : X("", !0),
869
+ s(ae) ? (x(), ie(Nt, { key: 7 })) : X("", !0)
850
870
  ], 44, qt));
851
871
  }
852
- }, ba = /* @__PURE__ */ Lt(oa, [["__scopeId", "data-v-3264f881"]]);
872
+ }, ba = /* @__PURE__ */ Lt(oa, [["__scopeId", "data-v-dd613095"]]);
853
873
  export {
854
874
  ba as default
855
875
  };