vue-data-ui 3.7.9 → 3.7.11

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 (152) hide show
  1. package/README.md +2 -2
  2. package/dist/{BaseDraggableDialog-B8FpOTTF.js → BaseDraggableDialog-BDY-Jn9S.js} +1 -1
  3. package/dist/{BaseIcon-5acZpJev.js → BaseIcon-Dl4VBlHV.js} +6 -2
  4. package/dist/{ColorPicker-BojTf32H.js → ColorPicker-BrMbLQds.js} +1 -1
  5. package/dist/{DataTable-ScRMrNB6.js → DataTable-Ho3Bf5oq.js} +1 -1
  6. package/dist/{NonSvgPenAndPaper-Bajn2Y5l.js → NonSvgPenAndPaper-MX5IsudW.js} +2 -2
  7. package/dist/{PackageVersion-D2zuSCLX.js → PackageVersion-Dpr5vAal.js} +1 -1
  8. package/dist/{PenAndPaper-Bfbd6BHc.js → PenAndPaper-kymjF6_b.js} +2 -2
  9. package/dist/{RecursiveCircles-BcLb1aRS.js → RecursiveCircles-CM4bn2Vg.js} +33 -30
  10. package/dist/RecursiveLabels-DxmctYbA.js +55 -0
  11. package/dist/{RecursiveLinks-00zGWPf9.js → RecursiveLinks-Da489v6n.js} +31 -19
  12. package/dist/{Slicer-DX5CaF9H.js → Slicer-DScoMPmj.js} +1 -1
  13. package/dist/{SlicerPreview-CeJ3ecDs.js → SlicerPreview-B1QUTxTZ.js} +1 -1
  14. package/dist/{Title-CmZh1pjz.js → Title-BwhstTFA.js} +1 -1
  15. package/dist/{UserOptions-D-GV6kfB.js → UserOptions-DgscxIaa.js} +194 -151
  16. package/dist/components/vue-ui-3d-bar.js +1 -1
  17. package/dist/components/vue-ui-accordion.js +1 -1
  18. package/dist/components/vue-ui-age-pyramid.js +1 -1
  19. package/dist/components/vue-ui-annotator.js +1 -1
  20. package/dist/components/vue-ui-bullet.js +1 -1
  21. package/dist/components/vue-ui-candlestick.js +1 -1
  22. package/dist/components/vue-ui-carousel-table.js +1 -1
  23. package/dist/components/vue-ui-chestnut.js +1 -1
  24. package/dist/components/vue-ui-chord.js +1 -1
  25. package/dist/components/vue-ui-circle-pack.js +1 -1
  26. package/dist/components/vue-ui-cursor.js +1 -1
  27. package/dist/components/vue-ui-dashboard.js +1 -1
  28. package/dist/components/vue-ui-digits.js +1 -1
  29. package/dist/components/vue-ui-donut-evolution.js +1 -1
  30. package/dist/components/vue-ui-donut.js +1 -1
  31. package/dist/components/vue-ui-dumbbell.js +1 -1
  32. package/dist/components/vue-ui-flow.js +1 -1
  33. package/dist/components/vue-ui-funnel.js +1 -1
  34. package/dist/components/vue-ui-galaxy.js +1 -1
  35. package/dist/components/vue-ui-gauge.js +1 -1
  36. package/dist/components/vue-ui-gizmo.js +1 -1
  37. package/dist/components/vue-ui-heatmap.js +1 -1
  38. package/dist/components/vue-ui-history-plot.js +1 -1
  39. package/dist/components/vue-ui-horizontal-bar.js +1 -1
  40. package/dist/components/vue-ui-icon.js +1 -1
  41. package/dist/components/vue-ui-kpi.js +1 -1
  42. package/dist/components/vue-ui-mini-loader.js +1 -1
  43. package/dist/components/vue-ui-molecule.js +1 -1
  44. package/dist/components/vue-ui-mood-radar.js +1 -1
  45. package/dist/components/vue-ui-nested-donuts.js +1 -1
  46. package/dist/components/vue-ui-onion.js +1 -1
  47. package/dist/components/vue-ui-parallel-coordinate-plot.js +1 -1
  48. package/dist/components/vue-ui-quadrant.js +1 -1
  49. package/dist/components/vue-ui-quick-chart.js +1 -1
  50. package/dist/components/vue-ui-radar.js +1 -1
  51. package/dist/components/vue-ui-rating.js +1 -1
  52. package/dist/components/vue-ui-relation-circle.js +1 -1
  53. package/dist/components/vue-ui-ridgeline.js +1 -1
  54. package/dist/components/vue-ui-rings.js +1 -1
  55. package/dist/components/vue-ui-scatter.js +1 -1
  56. package/dist/components/vue-ui-skeleton.js +1 -1
  57. package/dist/components/vue-ui-smiley.js +1 -1
  58. package/dist/components/vue-ui-spark-trend.js +1 -1
  59. package/dist/components/vue-ui-sparkbar.js +1 -1
  60. package/dist/components/vue-ui-sparkgauge.js +1 -1
  61. package/dist/components/vue-ui-sparkhistogram.js +1 -1
  62. package/dist/components/vue-ui-sparkline.js +1 -1
  63. package/dist/components/vue-ui-sparkstackbar.js +1 -1
  64. package/dist/components/vue-ui-stackbar.js +1 -1
  65. package/dist/components/vue-ui-stackline.js +1 -1
  66. package/dist/components/vue-ui-strip-plot.js +1 -1
  67. package/dist/components/vue-ui-table-heatmap.js +1 -1
  68. package/dist/components/vue-ui-table-sparkline.js +1 -1
  69. package/dist/components/vue-ui-table.js +1 -1
  70. package/dist/components/vue-ui-thermometer.js +1 -1
  71. package/dist/components/vue-ui-timer.js +1 -1
  72. package/dist/components/vue-ui-tiremarks.js +1 -1
  73. package/dist/components/vue-ui-treemap.js +1 -1
  74. package/dist/components/vue-ui-vertical-bar.js +1 -1
  75. package/dist/components/vue-ui-waffle.js +1 -1
  76. package/dist/components/vue-ui-wheel.js +1 -1
  77. package/dist/components/vue-ui-word-cloud.js +1 -1
  78. package/dist/components/vue-ui-world.js +1 -1
  79. package/dist/components/vue-ui-xy-canvas.js +1 -1
  80. package/dist/components/vue-ui-xy.js +1 -1
  81. package/dist/style.css +1 -1
  82. package/dist/types/vue-data-ui.d.ts +11 -1
  83. package/dist/{useNestedProp-xVOMUtFl.js → useNestedProp-BjZ1Lg9E.js} +179 -172
  84. package/dist/usePanZoom-DZtyJi5q.js +127 -0
  85. package/dist/{vue-data-ui-DZK-7Yx5.js → vue-data-ui-CxlARzL0.js} +114 -111
  86. package/dist/vue-data-ui.js +67 -67
  87. package/dist/{vue-ui-3d-bar-DO8GurA_.js → vue-ui-3d-bar-CPqG0nkm.js} +3 -3
  88. package/dist/{vue-ui-accordion-Cxz5Cxwj.js → vue-ui-accordion-BXTVRRX7.js} +2 -2
  89. package/dist/{vue-ui-age-pyramid-CK7PpmzU.js → vue-ui-age-pyramid-Ci_nYeGy.js} +3 -3
  90. package/dist/{vue-ui-annotator-DyoPgq71.js → vue-ui-annotator-CmCG1U2b.js} +4 -4
  91. package/dist/{vue-ui-bullet-DQ8RujAn.js → vue-ui-bullet-aChvEdJw.js} +3 -3
  92. package/dist/{vue-ui-candlestick-DGFySyJf.js → vue-ui-candlestick-BVT5S4A7.js} +4 -4
  93. package/dist/{vue-ui-carousel-table-JxoqQnNA.js → vue-ui-carousel-table-R9y3ZMj5.js} +2 -2
  94. package/dist/{vue-ui-chestnut-D9jJm6rb.js → vue-ui-chestnut-SUJ8HIBI.js} +2 -2
  95. package/dist/{vue-ui-chord-DPN3Fwm7.js → vue-ui-chord-CjBMnwsa.js} +3 -3
  96. package/dist/{vue-ui-circle-pack-BozsdDqp.js → vue-ui-circle-pack-CFm8eA1x.js} +3 -3
  97. package/dist/{vue-ui-cursor-BUgTz119.js → vue-ui-cursor-4Ldkkd2T.js} +1 -1
  98. package/dist/{vue-ui-dashboard-ntPdgRZR.js → vue-ui-dashboard-DlzUYi_J.js} +66 -66
  99. package/dist/{vue-ui-digits-BGIYOfXp.js → vue-ui-digits-uszbkbEK.js} +1 -1
  100. package/dist/{vue-ui-donut-CwcL0B7h.js → vue-ui-donut-BCq_iYNW.js} +4 -4
  101. package/dist/{vue-ui-donut-evolution-B-5PeTiF.js → vue-ui-donut-evolution-CJ3hcXal.js} +4 -4
  102. package/dist/{vue-ui-dumbbell-BpRrh_Li.js → vue-ui-dumbbell-Czmk8zMs.js} +3 -3
  103. package/dist/{vue-ui-flow-CVAqaYNz.js → vue-ui-flow-MfiSTtxE.js} +3 -3
  104. package/dist/{vue-ui-funnel-AUONOn8i.js → vue-ui-funnel-al95vFQ1.js} +3 -3
  105. package/dist/{vue-ui-galaxy-CilgiQ8O.js → vue-ui-galaxy-zlloUYDn.js} +3 -3
  106. package/dist/{vue-ui-gauge-CwfYnW0H.js → vue-ui-gauge-UPQhTDCY.js} +3 -3
  107. package/dist/{vue-ui-gizmo-ylawNFfS.js → vue-ui-gizmo-CLs6Xv3_.js} +2 -2
  108. package/dist/{vue-ui-heatmap-Ds7paMOa.js → vue-ui-heatmap-BbazGNWj.js} +4 -4
  109. package/dist/{vue-ui-history-plot-Bg1xXaPb.js → vue-ui-history-plot-BmiY0vD2.js} +3 -3
  110. package/dist/{vue-ui-horizontal-bar-D4fJhwhe.js → vue-ui-horizontal-bar-BEIR3lGE.js} +8 -8
  111. package/dist/{vue-ui-kpi-CdTb340S.js → vue-ui-kpi-Bkxvv0Re.js} +2 -2
  112. package/dist/{vue-ui-mini-loader-AdFMCD9m.js → vue-ui-mini-loader-oYhRTSA7.js} +1 -1
  113. package/dist/{vue-ui-molecule-BtdwWTBN.js → vue-ui-molecule-CSlSiwbF.js} +263 -247
  114. package/dist/{vue-ui-mood-radar-BuAl5l8_.js → vue-ui-mood-radar-DdKg5Jq8.js} +3 -3
  115. package/dist/{vue-ui-nested-donuts-B_4SY6Fv.js → vue-ui-nested-donuts-DHt0XTLx.js} +3 -3
  116. package/dist/{vue-ui-onion-BPDXH_KT.js → vue-ui-onion-DwMcFdqy.js} +3 -3
  117. package/dist/{vue-ui-parallel-coordinate-plot-CvJWNuGi.js → vue-ui-parallel-coordinate-plot-BVFJeYJp.js} +5 -5
  118. package/dist/{vue-ui-quadrant-CsNUMCAf.js → vue-ui-quadrant-cW0fRzL_.js} +3 -3
  119. package/dist/{vue-ui-quick-chart-BVHExcyO.js → vue-ui-quick-chart-BCZBZBRm.js} +3 -3
  120. package/dist/{vue-ui-radar-JA9GM1hs.js → vue-ui-radar-ypC88ouR.js} +3 -3
  121. package/dist/{vue-ui-rating-LYeiyamN.js → vue-ui-rating-BALFx0aJ.js} +1 -1
  122. package/dist/{vue-ui-relation-circle-et8nSv3K.js → vue-ui-relation-circle-CF3mp1_8.js} +3 -3
  123. package/dist/{vue-ui-ridgeline-D6L0QodO.js → vue-ui-ridgeline-Ck-tYacP.js} +3 -3
  124. package/dist/{vue-ui-rings-C-NPPZN9.js → vue-ui-rings-CsaXHfbR.js} +3 -3
  125. package/dist/{vue-ui-scatter-HIueYGgk.js → vue-ui-scatter-CwhL1Z6V.js} +3 -3
  126. package/dist/{vue-ui-skeleton-CDvWjjvT.js → vue-ui-skeleton-kiUPhnKb.js} +2 -2
  127. package/dist/{vue-ui-smiley-DI2YHo7_.js → vue-ui-smiley-DABDSgAF.js} +1 -1
  128. package/dist/{vue-ui-spark-trend-BSOVrCEk.js → vue-ui-spark-trend-CP-hXjfZ.js} +2 -2
  129. package/dist/{vue-ui-sparkbar-DaprJTqM.js → vue-ui-sparkbar-CGVL2WyD.js} +2 -2
  130. package/dist/{vue-ui-sparkgauge-eSRxebIu.js → vue-ui-sparkgauge-DMahN0oG.js} +2 -2
  131. package/dist/{vue-ui-sparkhistogram-DRx-JoYq.js → vue-ui-sparkhistogram-DIm-dhdu.js} +2 -2
  132. package/dist/{vue-ui-sparkline-BVe4LWkU.js → vue-ui-sparkline-B6F6FrEk.js} +2 -2
  133. package/dist/{vue-ui-sparkstackbar-DDGQ9uMY.js → vue-ui-sparkstackbar-rpuQ620h.js} +24 -21
  134. package/dist/{vue-ui-stackbar-iP02IXUA.js → vue-ui-stackbar-C7S5g-tW.js} +4 -4
  135. package/dist/{vue-ui-stackline-B2mdBy6-.js → vue-ui-stackline-U099Cb9P.js} +4 -4
  136. package/dist/{vue-ui-strip-plot-B_r0DhOo.js → vue-ui-strip-plot-mYX2KEoI.js} +3 -3
  137. package/dist/{vue-ui-table-Bh4ymroj.js → vue-ui-table-CJpEycgN.js} +4 -4
  138. package/dist/{vue-ui-table-heatmap-CWPVPHU5.js → vue-ui-table-heatmap-BHqtF71-.js} +2 -2
  139. package/dist/{vue-ui-table-sparkline-CnZgAbZi.js → vue-ui-table-sparkline-D4L1lJzA.js} +2 -2
  140. package/dist/{vue-ui-thermometer-EYtAEuYR.js → vue-ui-thermometer-B__EImnG.js} +3 -3
  141. package/dist/{vue-ui-timer-N9Sh6YWG.js → vue-ui-timer-DAXW8dMO.js} +4 -4
  142. package/dist/{vue-ui-tiremarks-CR8nCXfb.js → vue-ui-tiremarks-DP5deFrA.js} +3 -3
  143. package/dist/{vue-ui-treemap-ubsPya59.js → vue-ui-treemap-CpimSaxC.js} +4 -4
  144. package/dist/{vue-ui-waffle-Bxu6ZXFr.js → vue-ui-waffle-BVGVNq11.js} +3 -3
  145. package/dist/{vue-ui-wheel-Bmy5D-bu.js → vue-ui-wheel-B3O0lEj4.js} +3 -3
  146. package/dist/{vue-ui-word-cloud-DXW_2Hj8.js → vue-ui-word-cloud-67I78EbL.js} +351 -334
  147. package/dist/{vue-ui-world-B2H2E1l2.js → vue-ui-world-DjA_217m.js} +2 -2
  148. package/dist/{vue-ui-xy-CS1Gu1gs.js → vue-ui-xy-Cj3a2gNF.js} +5 -5
  149. package/dist/{vue-ui-xy-canvas-VnX4al_h.js → vue-ui-xy-canvas-3x-UDcCu.js} +6 -6
  150. package/package.json +6 -6
  151. package/dist/RecursiveLabels-Bgcv0pzu.js +0 -50
  152. package/dist/usePanZoom-BVca3eMk.js +0 -122
@@ -1,250 +1,250 @@
1
- import { useCssVars as Ft, defineAsyncComponent as ee, computed as te, ref as h, toRefs as St, watch as be, shallowRef as He, onMounted as Tt, onBeforeUnmount as Mt, createElementBlock as G, openBlock as F, unref as r, normalizeStyle as Te, createBlock as ce, createCommentVNode as q, createVNode as Me, withCtx as y, renderSlot as C, normalizeProps as R, guardReactiveProps as W, createSlots as Ze, normalizeClass as Je, createElementVNode as ye, Fragment as Ot, renderList as zt, toDisplayString as Ee, resolveDynamicComponent as Pt, mergeProps as It, createTextVNode as Ke, nextTick as Qe } from "vue";
2
- import { d as et, u as Dt } from "./useResponsive-DfdjqQps.js";
3
- import { c as Et, t as Bt, ap as _t, M as Nt, i as Rt, p as Oe, o as tt, g as ot, k as Wt, d as Vt, X as Xt, u as Yt, q as Ut, x as Lt } from "./lib-DUaaQGCv.js";
4
- import { u as jt, a as Be } from "./useNestedProp-xVOMUtFl.js";
1
+ import { useCssVars as St, defineAsyncComponent as ee, computed as te, ref as h, toRefs as Tt, watch as be, shallowRef as He, onMounted as zt, onBeforeUnmount as Mt, createElementBlock as j, openBlock as S, unref as r, normalizeStyle as Te, createBlock as ce, createCommentVNode as G, createVNode as ze, withCtx as g, renderSlot as b, normalizeProps as B, guardReactiveProps as _, createSlots as Je, normalizeClass as Ke, createElementVNode as ye, Fragment as Ot, renderList as Pt, toDisplayString as Ee, resolveDynamicComponent as It, mergeProps as Dt, createTextVNode as Qe, nextTick as et } from "vue";
2
+ import { d as tt, u as Et } from "./useResponsive-DfdjqQps.js";
3
+ import { c as Bt, t as _t, ap as Nt, M as Rt, i as Wt, p as Me, o as ot, g as at, k as Vt, d as Xt, X as Zt, u as Yt, q as Ut, x as Lt } from "./lib-DUaaQGCv.js";
4
+ import { u as jt, a as Be } from "./useNestedProp-BjZ1Lg9E.js";
5
5
  import { u as Gt, B as qt } from "./BaseScanner-BgWxam9d.js";
6
6
  import { u as Ht } from "./usePrinter-BdVu83IN.js";
7
- import { u as Zt } from "./useSvgExport-DrjCWun4.js";
8
- import { u as Jt } from "./useThemeCheck-DGJ31Vi5.js";
9
- import { u as Kt } from "./useUserOptionState-BIvW1Kz7.js";
10
- import { u as Qt } from "./useChartAccessibility-9icAAmYg.js";
11
- import eo from "./img-BYzbY8TZ.js";
12
- import to from "./Title-CmZh1pjz.js";
13
- import { u as oo } from "./usePanZoom-BVca3eMk.js";
14
- import { _ as ao } from "./_plugin-vue_export-helper-CHgC5LLL.js";
15
- function lo(A, x) {
16
- const { width: f, height: p } = A, g = x.getImageData(0, 0, f, p).data;
17
- let d = f, c = p, l = 0, v = 0, S = !1;
18
- for (let b = 0; b < p; b += 1)
19
- for (let T = 0; T < f; T += 1)
20
- g[(b * f + T) * 4 + 3] > 1 && (S = !0, T < d && (d = T), T > l && (l = T), b < c && (c = b), b > v && (v = b));
21
- return S ? [d, c, l, v] : [0, 0, 0, 0];
7
+ import { u as Jt } from "./useSvgExport-DrjCWun4.js";
8
+ import { u as Kt } from "./useThemeCheck-DGJ31Vi5.js";
9
+ import { u as Qt } from "./useUserOptionState-BIvW1Kz7.js";
10
+ import { u as eo } from "./useChartAccessibility-9icAAmYg.js";
11
+ import to from "./img-BYzbY8TZ.js";
12
+ import oo from "./Title-BwhstTFA.js";
13
+ import { u as ao } from "./usePanZoom-DZtyJi5q.js";
14
+ import { _ as lo } from "./_plugin-vue_export-helper-CHgC5LLL.js";
15
+ function no($, x) {
16
+ const { width: f, height: y } = $, C = x.getImageData(0, 0, f, y).data;
17
+ let d = f, c = y, l = 0, v = 0, T = !1;
18
+ for (let k = 0; k < y; k += 1)
19
+ for (let z = 0; z < f; z += 1)
20
+ C[(k * f + z) * 4 + 3] > 1 && (T = !0, z < d && (d = z), z > l && (l = z), k < c && (c = k), k > v && (v = k));
21
+ return T ? [d, c, l, v] : [0, 0, 0, 0];
22
22
  }
23
- function at({
24
- word: A,
23
+ function lt({
24
+ word: $,
25
25
  fontSize: x,
26
26
  pad: f,
27
- canvas: p,
27
+ canvas: y,
28
28
  ctx: m,
29
- svg: g
29
+ svg: C
30
30
  }) {
31
- m.save(), m.font = `${g.style && g.style.bold ? "bold " : ""}${x}px Arial`;
32
- const d = m.measureText(A.name), c = Math.ceil(d.width) + 2 + (f ? f * 2 : 0), l = Math.ceil(x) + 2 + (f ? f * 2 : 0);
33
- p.width = c, p.height = l, m.clearRect(0, 0, c, l), m.font = `${g.style && g.style.bold ? "bold " : ""}${x}px Arial`, m.textAlign = "center", m.textBaseline = "middle", m.fillStyle = "black", m.fillText(A.name, c / 2, l / 2);
34
- const S = m.getImageData(0, 0, c, l).data, b = [];
31
+ m.save(), m.font = `${C.style && C.style.bold ? "bold " : ""}${x}px Arial`;
32
+ const d = m.measureText($.name), c = Math.ceil(d.width) + 2 + (f ? f * 2 : 0), l = Math.ceil(x) + 2 + (f ? f * 2 : 0);
33
+ y.width = c, y.height = l, m.clearRect(0, 0, c, l), m.font = `${C.style && C.style.bold ? "bold " : ""}${x}px Arial`, m.textAlign = "center", m.textBaseline = "middle", m.fillStyle = "black", m.fillText($.name, c / 2, l / 2);
34
+ const T = m.getImageData(0, 0, c, l).data, k = [];
35
35
  for (let I = 0; I < l; I += 1)
36
- for (let k = 0; k < c; k += 1)
37
- S[(I * c + k) * 4 + 3] > 1 && b.push([k, I]);
38
- const [T, $, H, J] = lo(p, m);
39
- return m.restore(), { w: c, h: l, wordMask: b, minX: T, minY: $, maxX: H, maxY: J };
36
+ for (let w = 0; w < c; w += 1)
37
+ T[(I * c + w) * 4 + 3] > 1 && k.push([w, I]);
38
+ const [z, F, q, J] = no(y, m);
39
+ return m.restore(), { w: c, h: l, wordMask: k, minX: z, minY: F, maxX: q, maxY: J };
40
40
  }
41
- function lt({ mask: A, maskW: x, maskH: f, wx: p, wy: m, wordMask: g }) {
42
- for (let d = 0; d < g.length; d += 1) {
43
- const c = p + g[d][0], l = m + g[d][1];
44
- if (c < 0 || l < 0 || c >= x || l >= f || A[l * x + c]) return !1;
41
+ function nt({ mask: $, maskW: x, maskH: f, wx: y, wy: m, wordMask: C }) {
42
+ for (let d = 0; d < C.length; d += 1) {
43
+ const c = y + C[d][0], l = m + C[d][1];
44
+ if (c < 0 || l < 0 || c >= x || l >= f || $[l * x + c]) return !1;
45
45
  }
46
46
  return !0;
47
47
  }
48
- function nt({ mask: A, maskW: x, maskH: f, wx: p, wy: m, wordMask: g }) {
49
- for (let d = 0; d < g.length; d += 1) {
50
- const c = p + g[d][0], l = m + g[d][1];
51
- c >= 0 && l >= 0 && c < x && l < f && (A[l * x + c] = 1);
48
+ function st({ mask: $, maskW: x, maskH: f, wx: y, wy: m, wordMask: C }) {
49
+ for (let d = 0; d < C.length; d += 1) {
50
+ const c = y + C[d][0], l = m + C[d][1];
51
+ c >= 0 && l >= 0 && c < x && l < f && ($[l * x + c] = 1);
52
52
  }
53
53
  }
54
- function no({ wordMask: A, w: x, h: f, dilation: p }) {
55
- const m = new Set(A.map(([d, c]) => `${d},${c}`)), g = new Set(m);
56
- for (let [d, c] of A)
57
- for (let l = -p; l <= p; l += 1)
58
- for (let v = -p; v <= p; v += 1) {
54
+ function so({ wordMask: $, w: x, h: f, dilation: y }) {
55
+ const m = new Set($.map(([d, c]) => `${d},${c}`)), C = new Set(m);
56
+ for (let [d, c] of $)
57
+ for (let l = -y; l <= y; l += 1)
58
+ for (let v = -y; v <= y; v += 1) {
59
59
  if (l === 0 && v === 0) continue;
60
- const S = d + l, b = c + v;
61
- S >= 0 && S < x && b >= 0 && b < f && g.add(`${S},${b}`);
60
+ const T = d + l, k = c + v;
61
+ T >= 0 && T < x && k >= 0 && k < f && C.add(`${T},${k}`);
62
62
  }
63
- return Array.from(g).map((d) => d.split(",").map(Number));
63
+ return Array.from(C).map((d) => d.split(",").map(Number));
64
64
  }
65
- async function so({
66
- words: A,
65
+ async function ro({
66
+ words: $,
67
67
  proximity: x = 0,
68
68
  svg: f,
69
- strictPixelPadding: p,
69
+ strictPixelPadding: y,
70
70
  onProgress: m
71
71
  }) {
72
- function g() {
73
- return new Promise((w) => setTimeout(w, 0));
72
+ function C() {
73
+ return new Promise((A) => setTimeout(A, 0));
74
74
  }
75
- const { width: d, height: c } = f, l = Math.round(d), v = Math.round(c), S = 1, b = f.minFontSize, T = Math.min(f.maxFontSize, 100), $ = A.map((w) => w.value), H = Math.min(...$), J = Math.max(...$), I = new Uint8Array(l * v), k = document.createElement("canvas"), de = k.getContext("2d", { willReadFrequently: !0 });
76
- k.width = l, k.height = v;
77
- const Ce = 6, ke = 2, we = 2, ve = 1, K = Math.floor(l / 2), se = Math.floor(v / 2), he = [...A.map((w, D) => ({
78
- ...w,
75
+ const { width: d, height: c } = f, l = Math.round(d), v = Math.round(c), T = 1, k = f.minFontSize, z = Math.min(f.maxFontSize, 100), F = $.map((A) => A.value), q = Math.min(...F), J = Math.max(...F), I = new Uint8Array(l * v), w = document.createElement("canvas"), de = w.getContext("2d", { willReadFrequently: !0 });
76
+ w.width = l, w.height = v;
77
+ const Ce = 6, ke = 2, we = 2, ve = 1, K = Math.floor(l / 2), se = Math.floor(v / 2), he = [...$.map((A, D) => ({
78
+ ...A,
79
79
  __wcIndex: D,
80
- id: w.id != null ? w.id : `${w.name}__${D}`
81
- }))].sort((w, D) => D.value - w.value), e = [];
82
- for (const w of he) {
80
+ id: A.id != null ? A.id : `${A.name}__${D}`
81
+ }))].sort((A, D) => D.value - A.value), e = [];
82
+ for (const A of he) {
83
83
  const D = e.length;
84
- let re = b;
85
- J !== H && (re = (w.value - H) / (J - H) * (T - b) + b), re = Math.max(
86
- b,
87
- Math.min(T, re)
84
+ let re = k;
85
+ J !== q && (re = (A.value - q) / (J - q) * (z - k) + k), re = Math.max(
86
+ k,
87
+ Math.min(z, re)
88
88
  );
89
- let E = !1, B = re;
90
- for (; !E && B >= S; ) {
89
+ let E = !1, N = re;
90
+ for (; !E && N >= T; ) {
91
91
  let {
92
92
  w: M,
93
- h: _,
93
+ h: R,
94
94
  wordMask: V,
95
95
  minX: Q,
96
96
  minY: oe,
97
97
  maxX: ae,
98
98
  maxY: le
99
- } = at({
100
- word: w,
101
- fontSize: B,
99
+ } = lt({
100
+ word: A,
101
+ fontSize: N,
102
102
  pad: x,
103
- canvas: k,
103
+ canvas: w,
104
104
  ctx: de,
105
105
  svg: f
106
106
  });
107
- p && (V = no({ wordMask: V, w: M, h: _, dilation: 2 }));
108
- let N = 0, X = 0;
109
- for (; N < Math.max(l, v) && !E && X < 1e4; ) {
107
+ y && (V = so({ wordMask: V, w: M, h: R, dilation: 2 }));
108
+ let W = 0, X = 0;
109
+ for (; W < Math.max(l, v) && !E && X < 1e4; ) {
110
110
  for (let s = 0; s < 360; s += Ce) {
111
111
  X += 1;
112
112
  const O = Math.round(
113
- K + N * Math.cos(s * Math.PI / 180) - M / 2
114
- ), z = Math.round(
115
- se + N * Math.sin(s * Math.PI / 180) - _ / 2
113
+ K + W * Math.cos(s * Math.PI / 180) - M / 2
114
+ ), P = Math.round(
115
+ se + W * Math.sin(s * Math.PI / 180) - R / 2
116
116
  );
117
- if (!(O < 0 || z < 0 || O + M > l || z + _ > v) && lt({
117
+ if (!(O < 0 || P < 0 || O + M > l || P + R > v) && nt({
118
118
  mask: I,
119
119
  maskW: l,
120
120
  maskH: v,
121
121
  wx: O,
122
- wy: z,
122
+ wy: P,
123
123
  wordMask: V
124
124
  })) {
125
- const { __wcIndex: Y, ...U } = w;
125
+ const { __wcIndex: Z, ...Y } = A;
126
126
  e.push({
127
- ...U,
127
+ ...Y,
128
128
  x: O - l / 2,
129
- y: z - v / 2,
130
- fontSize: B,
129
+ y: P - v / 2,
130
+ fontSize: N,
131
131
  width: M,
132
- height: _,
132
+ height: R,
133
133
  angle: 0,
134
134
  minX: Q,
135
135
  minY: oe,
136
136
  maxX: ae,
137
137
  maxY: le
138
- }), nt({
138
+ }), st({
139
139
  mask: I,
140
140
  maskW: l,
141
141
  maskH: v,
142
142
  wx: O,
143
- wy: z,
143
+ wy: P,
144
144
  wordMask: V
145
145
  }), E = !0;
146
146
  break;
147
147
  }
148
148
  }
149
- N += ke;
149
+ W += ke;
150
150
  }
151
- E || (B -= 1);
151
+ E || (N -= 1);
152
152
  }
153
- if (!E && B < S) {
154
- B = S;
153
+ if (!E && N < T) {
154
+ N = T;
155
155
  const {
156
156
  w: M,
157
- h: _,
157
+ h: R,
158
158
  wordMask: V,
159
159
  minX: Q,
160
160
  minY: oe,
161
161
  maxX: ae,
162
162
  maxY: le
163
- } = at({
164
- word: w,
165
- fontSize: B,
163
+ } = lt({
164
+ word: A,
165
+ fontSize: N,
166
166
  pad: x,
167
- canvas: k,
167
+ canvas: w,
168
168
  ctx: de,
169
169
  svg: f
170
170
  });
171
- let N = 0, X = 0;
172
- for (; N < Math.max(l, v) && !E && X < 25e3; ) {
171
+ let W = 0, X = 0;
172
+ for (; W < Math.max(l, v) && !E && X < 25e3; ) {
173
173
  for (let s = 0; s < 360; s += we) {
174
174
  X += 1;
175
175
  const O = Math.round(
176
- K + N * Math.cos(s * Math.PI / 180) - M / 2
177
- ), z = Math.round(
178
- se + N * Math.sin(s * Math.PI / 180) - _ / 2
176
+ K + W * Math.cos(s * Math.PI / 180) - M / 2
177
+ ), P = Math.round(
178
+ se + W * Math.sin(s * Math.PI / 180) - R / 2
179
179
  );
180
- if (!(O < 0 || z < 0 || O + M > l || z + _ > v) && lt({
180
+ if (!(O < 0 || P < 0 || O + M > l || P + R > v) && nt({
181
181
  mask: I,
182
182
  maskW: l,
183
183
  maskH: v,
184
184
  wx: O,
185
- wy: z,
185
+ wy: P,
186
186
  wordMask: V
187
187
  })) {
188
- const { __wcIndex: Y, ...U } = w;
188
+ const { __wcIndex: Z, ...Y } = A;
189
189
  e.push({
190
- ...U,
190
+ ...Y,
191
191
  x: O - l / 2,
192
- y: z - v / 2,
193
- fontSize: B,
192
+ y: P - v / 2,
193
+ fontSize: N,
194
194
  width: M,
195
- height: _,
195
+ height: R,
196
196
  angle: 0,
197
197
  minX: Q,
198
198
  minY: oe,
199
199
  maxX: ae,
200
200
  maxY: le
201
- }), nt({
201
+ }), st({
202
202
  mask: I,
203
203
  maskW: l,
204
204
  maskH: v,
205
205
  wx: O,
206
- wy: z,
206
+ wy: P,
207
207
  wordMask: V
208
208
  }), E = !0;
209
209
  break;
210
210
  }
211
211
  }
212
- N += ve;
212
+ W += ve;
213
213
  }
214
214
  }
215
215
  if (m && e.length > D) {
216
216
  const M = e[e.length - 1];
217
217
  m({ word: M, all: e });
218
218
  }
219
- await g();
219
+ await C();
220
220
  }
221
- return e.sort((w, D) => D.fontSize - w.fontSize);
221
+ return e.sort((A, D) => D.fontSize - A.fontSize);
222
222
  }
223
- const st = { style: { chart: { backgroundColor: "#1A1A1A", color: "#CCCCCC", title: { color: "#CCCCCC", subtitle: { color: "#757575" } }, words: { selectedStroke: "#1A1A1A" }, tooltip: { backgroundColor: "#1A1A1A", backgroundOpacity: 70, color: "#CCCCCC", borderColor: "#5A5A5A" } } }, table: { th: { backgroundColor: "#1A1A1A", color: "#CCCCCC" }, td: { backgroundColor: "#1A1A1A", color: "#CCCCCC" } } }, rt = { style: { chart: { backgroundColor: "#FFF8E1", color: "#424242", title: { color: "#424242", subtitle: { color: "#757575" } }, words: { selectedStroke: "#FFF8E1" }, tooltip: { backgroundColor: "#FFECB3", backgroundOpacity: 30, color: "#424242", borderColor: "#FF8A65" }, zoom: { color: "#5D4037", highlightColor: "#FF8A65" } } }, table: { th: { backgroundColor: "#FFF8E1", color: "#424242" }, td: { backgroundColor: "#FFF8E1", color: "#424242" } } }, it = { style: { chart: { backgroundColor: "#1E1E1E", color: "#BDBDBD", title: { color: "#FFF8E1", subtitle: { color: "#BDBDBD" } }, words: { selectedStroke: "#1E1E1E" }, tooltip: { backgroundColor: "#1E1E1E", backgroundOpacity: 30, color: "#FFF8E1", borderColor: "#FF8A65" }, zoom: { color: "#5D4037", highlightColor: "#FF8A65" } } }, table: { th: { backgroundColor: "#1E1E1E", color: "#BDBDBD" }, td: { backgroundColor: "#1E1E1E", color: "#BDBDBD" } } }, ut = { style: { chart: { backgroundColor: "#1A1A1A", color: "#99AA99", title: { color: "#66CC66", subtitle: { color: "#99AA99" } }, words: { selectedStroke: "#1A1A1A" } } }, table: { th: { backgroundColor: "#1A1A1A", color: "#99AA99" }, td: { backgroundColor: "#1A1A1A", color: "#AACCAA" } } }, ct = { style: { chart: { backgroundColor: "#fbfafa", color: "#8A9892", title: { color: "#8A9892", subtitle: { color: "#99AA99" } }, words: { selectedStroke: "#fbfafa" } } }, table: { th: { backgroundColor: "#fbfafa", color: "#8F837A" }, td: { backgroundColor: "#fbfafa", color: "#8F837A" } } }, dt = { style: { chart: { backgroundColor: "#f6f6fb", color: "#50606C", title: { color: "#50606C", subtitle: { color: "#718890" } }, words: { selectedStroke: "#f6f6fb" } } }, table: { th: { backgroundColor: "#f6f6fb", color: "#50606C" }, td: { backgroundColor: "#f6f6fb", color: "#50606C" } } }, vt = {
223
+ const rt = { style: { chart: { backgroundColor: "#1A1A1A", color: "#CCCCCC", title: { color: "#CCCCCC", subtitle: { color: "#757575" } }, words: { selectedStroke: "#1A1A1A" }, tooltip: { backgroundColor: "#1A1A1A", backgroundOpacity: 70, color: "#CCCCCC", borderColor: "#5A5A5A" } } }, table: { th: { backgroundColor: "#1A1A1A", color: "#CCCCCC" }, td: { backgroundColor: "#1A1A1A", color: "#CCCCCC" } } }, it = { style: { chart: { backgroundColor: "#FFF8E1", color: "#424242", title: { color: "#424242", subtitle: { color: "#757575" } }, words: { selectedStroke: "#FFF8E1" }, tooltip: { backgroundColor: "#FFECB3", backgroundOpacity: 30, color: "#424242", borderColor: "#FF8A65" }, zoom: { color: "#5D4037", highlightColor: "#FF8A65" } } }, table: { th: { backgroundColor: "#FFF8E1", color: "#424242" }, td: { backgroundColor: "#FFF8E1", color: "#424242" } } }, ut = { style: { chart: { backgroundColor: "#1E1E1E", color: "#BDBDBD", title: { color: "#FFF8E1", subtitle: { color: "#BDBDBD" } }, words: { selectedStroke: "#1E1E1E" }, tooltip: { backgroundColor: "#1E1E1E", backgroundOpacity: 30, color: "#FFF8E1", borderColor: "#FF8A65" }, zoom: { color: "#5D4037", highlightColor: "#FF8A65" } } }, table: { th: { backgroundColor: "#1E1E1E", color: "#BDBDBD" }, td: { backgroundColor: "#1E1E1E", color: "#BDBDBD" } } }, ct = { style: { chart: { backgroundColor: "#1A1A1A", color: "#99AA99", title: { color: "#66CC66", subtitle: { color: "#99AA99" } }, words: { selectedStroke: "#1A1A1A" } } }, table: { th: { backgroundColor: "#1A1A1A", color: "#99AA99" }, td: { backgroundColor: "#1A1A1A", color: "#AACCAA" } } }, dt = { style: { chart: { backgroundColor: "#fbfafa", color: "#8A9892", title: { color: "#8A9892", subtitle: { color: "#99AA99" } }, words: { selectedStroke: "#fbfafa" } } }, table: { th: { backgroundColor: "#fbfafa", color: "#8F837A" }, td: { backgroundColor: "#fbfafa", color: "#8F837A" } } }, vt = { style: { chart: { backgroundColor: "#f6f6fb", color: "#50606C", title: { color: "#50606C", subtitle: { color: "#718890" } }, words: { selectedStroke: "#f6f6fb" } } }, table: { th: { backgroundColor: "#f6f6fb", color: "#50606C" }, td: { backgroundColor: "#f6f6fb", color: "#50606C" } } }, ht = {
224
224
  default: {},
225
- dark: st,
226
- celebration: rt,
227
- celebrationNight: it,
228
- hack: ut,
229
- zen: ct,
230
- concrete: dt
231
- }, Do = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
225
+ dark: rt,
226
+ celebration: it,
227
+ celebrationNight: ut,
228
+ hack: ct,
229
+ zen: dt,
230
+ concrete: vt
231
+ }, Eo = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
232
232
  __proto__: null,
233
- celebration: rt,
234
- celebrationNight: it,
235
- concrete: dt,
236
- dark: st,
237
- default: vt,
238
- hack: ut,
239
- zen: ct
240
- }, Symbol.toStringTag, { value: "Module" })), ro = ["id", "data-resizing", "data-relayout"], io = ["xmlns", "viewBox"], uo = ["width", "height"], co = ["transform"], vo = ["transform"], ho = ["x", "y", "width", "height", "onMouseover", "onMouseleave", "onClick"], mo = ["fill", "font-weight", "font-size", "transform", "stroke", "stroke-width"], fo = {
233
+ celebration: it,
234
+ celebrationNight: ut,
235
+ concrete: vt,
236
+ dark: rt,
237
+ default: ht,
238
+ hack: ct,
239
+ zen: dt
240
+ }, Symbol.toStringTag, { value: "Module" })), io = ["id", "data-resizing", "data-relayout"], uo = ["xmlns", "viewBox"], co = ["width", "height"], vo = ["transform"], ho = ["transform"], mo = ["x", "y", "width", "height", "onMouseover", "onMouseleave", "onClick"], fo = ["fill", "font-weight", "font-size", "transform", "stroke", "stroke-width"], po = {
241
241
  key: 3,
242
242
  class: "vue-data-ui-watermark"
243
- }, po = {
243
+ }, go = {
244
244
  key: 4,
245
245
  "data-dom-to-png-ignore": "",
246
246
  class: "reset-wrapper"
247
- }, go = ["innerHTML"], bo = {
247
+ }, bo = ["innerHTML"], yo = {
248
248
  __name: "vue-ui-word-cloud",
249
249
  props: {
250
250
  config: {
@@ -260,21 +260,26 @@ const st = { style: { chart: { backgroundColor: "#1A1A1A", color: "#CCCCCC", tit
260
260
  }
261
261
  }
262
262
  },
263
- setup(A, { expose: x }) {
264
- Ft((t) => ({
265
- v85c97b12: t.slicerColor
263
+ setup($, { expose: x }) {
264
+ St((t) => ({
265
+ v6142108c: t.slicerColor
266
266
  }));
267
- const f = ee(() => import("./Tooltip-De7i-i20.js")), p = ee(() => import("./BaseIcon-5acZpJev.js")), m = ee(() => import("./vue-ui-accordion-Cxz5Cxwj.js")), g = ee(() => import("./DataTable-ScRMrNB6.js")), d = ee(() => import("./PenAndPaper-Bfbd6BHc.js")), c = ee(() => import("./UserOptions-D-GV6kfB.js")), l = ee(() => import("./PackageVersion-D2zuSCLX.js")), v = ee(() => import("./BaseDraggableDialog-B8FpOTTF.js")), { vue_ui_word_cloud: S } = jt(), { isThemeValid: b, warnInvalidTheme: T } = Jt(), $ = A, H = te({
267
+ const f = ee(() => import("./Tooltip-De7i-i20.js")), y = ee(() => import("./BaseIcon-Dl4VBlHV.js")), m = ee(() => import("./vue-ui-accordion-BXTVRRX7.js")), C = ee(() => import("./DataTable-Ho3Bf5oq.js")), d = ee(() => import("./PenAndPaper-kymjF6_b.js")), c = ee(() => import("./UserOptions-DgscxIaa.js")), l = ee(() => import("./PackageVersion-Dpr5vAal.js")), v = ee(() => import("./BaseDraggableDialog-BDY-Jn9S.js")), { vue_ui_word_cloud: T } = jt(), { isThemeValid: k, warnInvalidTheme: z } = Kt(), F = $, q = te({
268
268
  get() {
269
- return !!$.dataset && $.dataset.length;
269
+ return !!F.dataset && F.dataset.length;
270
270
  },
271
271
  set(t) {
272
272
  return t;
273
273
  }
274
- }), J = h(Et()), I = h(0), k = h(null), de = h(null), Ce = h(null), ke = h(0), we = h(0), ve = h(!1), K = h(null), se = h(null), xe = h(!1), he = h(!1), e = h(oe()), { loading: w, FINAL_DATASET: D, manualLoading: re } = Gt({
275
- ...St($),
274
+ }), J = h(Bt()), I = h(0), w = h(null), de = h(null), Ce = h(null), ke = h(0), we = h(0), ve = h(!1), K = h(null), se = h(null), Ae = h(!1), he = h(!1), e = h(oe()), { loading: A, FINAL_DATASET: D, manualLoading: re } = Gt({
275
+ ...Tt(F),
276
276
  FINAL_CONFIG: e,
277
277
  prepareConfig: oe,
278
+ callback: () => {
279
+ Promise.resolve().then(() => {
280
+ p.value.showTable = e.value.table.show, p.value.showTooltip = e.value.style.chart.tooltip.show, p.value.showZoom = e.value.style.chart.zoom.show;
281
+ });
282
+ },
278
283
  skeletonDataset: [
279
284
  { name: "Lorem", value: 6 },
280
285
  { name: "ipsum", value: 3 },
@@ -325,7 +330,7 @@ const st = { style: { chart: { backgroundColor: "#1A1A1A", color: "#CCCCCC", tit
325
330
  { name: "fames", value: 1 },
326
331
  { name: "ante", value: 1 }
327
332
  ],
328
- skeletonConfig: Bt({
333
+ skeletonConfig: _t({
329
334
  defaultConfig: e.value,
330
335
  userConfig: {
331
336
  userOptions: { show: !1 },
@@ -346,32 +351,32 @@ const st = { style: { chart: { backgroundColor: "#1A1A1A", color: "#CCCCCC", tit
346
351
  }
347
352
  }
348
353
  })
349
- }), E = h(B());
350
- function B() {
351
- return typeof D.value == "string" ? _t(D.value) : D.value.map((t, a) => ({
354
+ }), E = h(N());
355
+ function N() {
356
+ return typeof D.value == "string" ? Nt(D.value) : D.value.map((t, a) => ({
352
357
  ...t,
353
- value: Nt(t.value)
358
+ value: Rt(t.value)
354
359
  }));
355
360
  }
356
- const { userOptionsVisible: M, setUserOptionsVisibility: _, keepUserOptionState: V } = Kt({ config: e.value }), { svgRef: Q } = Qt({ config: e.value.style.chart.title });
361
+ const { userOptionsVisible: M, setUserOptionsVisibility: R, keepUserOptionState: V } = Qt({ config: e.value }), { svgRef: Q } = eo({ config: e.value.style.chart.title });
357
362
  function oe() {
358
363
  const t = Be({
359
- userConfig: $.config,
360
- defaultConfig: S
364
+ userConfig: F.config,
365
+ defaultConfig: T
361
366
  }), a = t.theme;
362
367
  if (!a) return t;
363
- if (!b.value(t))
364
- return T(t), t;
368
+ if (!k.value(t))
369
+ return z(t), t;
365
370
  const o = Be({
366
- userConfig: vt[a] || $.config,
371
+ userConfig: ht[a] || F.config,
367
372
  defaultConfig: t
368
373
  }), n = Be({
369
- userConfig: $.config,
374
+ userConfig: F.config,
370
375
  defaultConfig: o
371
376
  });
372
377
  return {
373
378
  ...n,
374
- customPalette: n.customPalette.length ? n.customPalette : Rt[a] || Oe
379
+ customPalette: n.customPalette.length ? n.customPalette : Wt[a] || Me
375
380
  };
376
381
  }
377
382
  const ae = h({ x: 0, y: 0 });
@@ -382,18 +387,18 @@ const st = { style: { chart: { backgroundColor: "#1A1A1A", color: "#CCCCCC", tit
382
387
  width: Math.max(10, s.value.width),
383
388
  height: Math.max(10, s.value.height)
384
389
  };
385
- gt(t), ae.value = {
390
+ bt(t), ae.value = {
386
391
  x: t.x + t.width / 2,
387
392
  y: t.y + t.height / 2
388
393
  }, Se();
389
394
  }
390
- const N = et(() => {
391
- Ye();
395
+ const W = tt(() => {
396
+ Ze();
392
397
  }, 100), X = h(!1);
393
398
  be(() => X.value, (t) => {
394
- t === !1 && (he.value = !0, N(), le());
395
- }), be(() => $.config, (t) => {
396
- e.value = oe(), M.value = !e.value.userOptions.showOnChartHover, Ne(), ke.value += 1, we.value += 1, P.value.showTable = e.value.table.show, P.value.showTooltip = e.value.style.chart.tooltip.show;
399
+ t === !1 && (he.value = !0, W(), le());
400
+ }), be(() => F.config, (t) => {
401
+ e.value = oe(), M.value = !e.value.userOptions.showOnChartHover, Ne(), ke.value += 1, we.value += 1, p.value.showTable = e.value.table.show, p.value.showTooltip = e.value.style.chart.tooltip.show, p.value.showZoom = e.value.style.chart.zoom.show;
397
402
  }, { deep: !0 });
398
403
  const s = h({
399
404
  width: e.value.style.chart.width,
@@ -401,31 +406,31 @@ const st = { style: { chart: { backgroundColor: "#1A1A1A", color: "#CCCCCC", tit
401
406
  maxFontSize: e.value.style.chart.words.maxFontSize,
402
407
  minFontSize: e.value.style.chart.words.minFontSize,
403
408
  bold: e.value.style.chart.words.bold
404
- }), O = et(() => {
405
- const { width: t, height: a } = Dt({
406
- chart: k.value,
409
+ }), O = tt(() => {
410
+ const { width: t, height: a } = Et({
411
+ chart: w.value,
407
412
  title: e.value.style.chart.title.text ? de.value : null,
408
413
  source: Ce.value
409
414
  });
410
415
  requestAnimationFrame(async () => {
411
- s.value.width = Math.max(10, t), s.value.height = Math.max(10, a - 12), await Qe(), X.value = !1;
416
+ s.value.width = Math.max(10, t), s.value.height = Math.max(10, a - 12), await et(), X.value = !1;
412
417
  });
413
- }, 100), z = () => {
418
+ }, 100), P = () => {
414
419
  X.value = !0, O();
415
- }, Y = He(null), U = He(null);
416
- Tt(Ne);
420
+ }, Z = He(null), Y = He(null);
421
+ zt(Ne);
417
422
  const _e = te(() => !!e.value.debug);
418
423
  function Ne() {
419
- tt($.dataset) ? ot({
424
+ ot(F.dataset) ? at({
420
425
  componentName: "VueUiWordCloud",
421
426
  type: "dataset",
422
427
  debug: _e.value
423
428
  }) : E.value.forEach((t, a) => {
424
- Wt({
429
+ Vt({
425
430
  datasetObject: t,
426
431
  requiredAttributes: ["name", "value"]
427
432
  }).forEach((o) => {
428
- H.value = !1, ot({
433
+ q.value = !1, at({
429
434
  componentName: "VueUiWordCloud",
430
435
  type: "datasetSerieAttribute",
431
436
  property: o,
@@ -433,80 +438,78 @@ const st = { style: { chart: { backgroundColor: "#1A1A1A", color: "#CCCCCC", tit
433
438
  debug: _e.value
434
439
  });
435
440
  });
436
- }), tt($.dataset) || (re.value = e.value.loading), e.value.responsive && (Y.value && (U.value && Y.value.unobserve(U.value), Y.value.disconnect()), Y.value = new ResizeObserver(z), U.value = k.value.parentNode, Y.value.observe(U.value)), le();
441
+ }), ot(F.dataset) || (re.value = e.value.loading), e.value.responsive && (Z.value && (Y.value && Z.value.unobserve(Y.value), Z.value.disconnect()), Z.value = new ResizeObserver(P), Y.value = w.value.parentNode, Z.value.observe(Y.value)), le();
437
442
  }
438
443
  Mt(() => {
439
- Y.value && (U.value && Y.value.unobserve(U.value), Y.value.disconnect());
444
+ Z.value && (Y.value && Z.value.unobserve(Y.value), Z.value.disconnect());
440
445
  });
441
446
  const { isPrinting: Re, isImaging: We, generatePdf: Ve, generateImage: Xe } = Ht({
442
447
  elementId: `wordCloud_${J.value}`,
443
448
  fileName: e.value.style.chart.title.text || "vue-ui-word-cloud",
444
449
  options: e.value.userOptions.print
445
- }), P = h({
450
+ }), p = h({
446
451
  showTable: e.value.table.show,
447
- showTooltip: e.value.style.chart.tooltip.show
452
+ showTooltip: e.value.style.chart.tooltip.show,
453
+ showZoom: e.value.style.chart.zoom.show
448
454
  });
449
455
  be(e, () => {
450
- P.value = {
451
- showTable: e.value.table.show,
452
- showTooltip: e.value.style.chart.tooltip.show
453
- };
456
+ p.value.showTable = e.value.table.show, p.value.showTooltip = e.value.style.chart.tooltip.show, p.value.showZoom = e.value.style.chart.zoom.show;
454
457
  }, { immediate: !0 });
455
- function ht(t, a, o = "Arial") {
458
+ function mt(t, a, o = "Arial") {
456
459
  const i = document.createElement("canvas").getContext("2d");
457
460
  return i.font = `${a}px ${e.value.style.chart.words.bold ? "bold" : "normal"} ${o}`, {
458
461
  width: i.measureText(t).width + e.value.style.chart.words.proximity,
459
462
  height: a
460
463
  };
461
464
  }
462
- const L = h([]), me = /* @__PURE__ */ new Map();
463
- function Ye() {
465
+ const U = h([]), me = /* @__PURE__ */ new Map();
466
+ function Ze() {
464
467
  const t = [...E.value].map((i) => i.value), a = Math.max(...t), o = Math.min(...t), n = [...E.value].map((i, u) => {
465
- let j = (i.value - o) / (a - o) * (s.value.maxFontSize - s.value.minFontSize) + s.value.minFontSize;
466
- j = isNaN(j) ? s.value.minFontSize : j;
467
- const ne = ht(i.name, j);
468
+ let L = (i.value - o) / (a - o) * (s.value.maxFontSize - s.value.minFontSize) + s.value.minFontSize;
469
+ L = isNaN(L) ? s.value.minFontSize : L;
470
+ const ne = mt(i.name, L);
468
471
  return {
469
472
  ...i,
470
473
  id: i.id ?? `${i.name}__${u}`,
471
- fontSize: j,
474
+ fontSize: L,
472
475
  width: ne.width,
473
476
  height: ne.height,
474
- color: e.value.style.chart.words.usePalette ? e.value.customPalette[u] || e.value.customPalette[u % e.value.customPalette.length] || Oe[u] || Oe[u % Oe.length] : e.value.style.chart.words.color
477
+ color: e.value.style.chart.words.usePalette ? e.value.customPalette[u] || e.value.customPalette[u % e.value.customPalette.length] || Me[u] || Me[u % Me.length] : e.value.style.chart.words.color
475
478
  };
476
479
  });
477
- L.value.length = 0, me.clear(), so({
480
+ U.value.length = 0, me.clear(), ro({
478
481
  words: n,
479
482
  svg: s.value,
480
483
  proximity: e.value.style.chart.words.proximity,
481
484
  strictPixelPadding: e.value.strictPixelPadding,
482
485
  onProgress: ({ all: i }) => {
483
486
  for (const u of i) {
484
- const j = u.id;
485
- let ne = me.get(j);
487
+ const L = u.id;
488
+ let ne = me.get(L);
486
489
  if (ne === void 0)
487
- ne = L.value.length, me.set(j, ne), L.value.push({ ...u });
490
+ ne = U.value.length, me.set(L, ne), U.value.push({ ...u });
488
491
  else {
489
- const Z = L.value[ne];
490
- Z.x = u.x, Z.y = u.y, Z.width = u.width, Z.height = u.height, Z.fontSize = u.fontSize, Z.minX = u.minX, Z.minY = u.minY, Z.maxX = u.maxX, Z.maxY = u.maxY;
492
+ const H = U.value[ne];
493
+ H.x = u.x, H.y = u.y, H.width = u.width, H.height = u.height, H.fontSize = u.fontSize, H.minX = u.minX, H.minY = u.minY, H.maxX = u.maxX, H.maxY = u.maxY;
491
494
  }
492
495
  }
493
496
  }
494
- }), L.value.sort((i, u) => u.fontSize - i.fontSize), me.clear(), L.value.forEach((i, u) => {
497
+ }), U.value.sort((i, u) => u.fontSize - i.fontSize), me.clear(), U.value.forEach((i, u) => {
495
498
  me.set(i.id, u);
496
- }), xe.value = !0, he.value = !1;
499
+ }), Ae.value = !0, he.value = !1;
497
500
  }
498
- const Ae = te(() => {
499
- const t = L.value.map((o) => ({
501
+ const xe = te(() => {
502
+ const t = U.value.map((o) => ({
500
503
  name: o.name,
501
504
  color: o.color
502
- })), a = L.value.map((o) => o.value);
505
+ })), a = U.value.map((o) => o.value);
503
506
  return { head: t, body: a };
504
507
  });
505
- function ze(t = null) {
506
- Qe(() => {
507
- const a = Ae.value.head.map((i, u) => [[
508
+ function Oe(t = null) {
509
+ et(() => {
510
+ const a = xe.value.head.map((i, u) => [[
508
511
  i.name
509
- ], [Ae.value.body[u]]]), o = [[e.value.style.chart.title.text], [e.value.style.chart.title.subtitle.text], [[""], [e.value.table.columnNames.value]]].concat(a), n = Yt(o);
512
+ ], [xe.value.body[u]]]), o = [[e.value.style.chart.title.text], [e.value.style.chart.title.subtitle.text], [[""], [e.value.table.columnNames.value]]].concat(a), n = Yt(o);
510
513
  t ? t(n) : Ut({ csvContent: n, title: e.value.style.chart.title.text || "vue-ui-word-cloud" });
511
514
  });
512
515
  }
@@ -514,14 +517,14 @@ const st = { style: { chart: { backgroundColor: "#1A1A1A", color: "#CCCCCC", tit
514
517
  const t = [
515
518
  e.value.table.columnNames.series,
516
519
  e.value.table.columnNames.value
517
- ], a = Ae.value.head.map((i, u) => {
518
- const j = Vt({ p: e.value.table.td.prefix, v: Ae.value.body[u], s: e.value.table.td.suffix, r: e.value.table.td.roundingValue });
520
+ ], a = xe.value.head.map((i, u) => {
521
+ const L = Xt({ p: e.value.table.td.prefix, v: xe.value.body[u], s: e.value.table.td.suffix, r: e.value.table.td.roundingValue });
519
522
  return [
520
523
  {
521
524
  color: i.color,
522
525
  name: i.name
523
526
  },
524
- j
527
+ L
525
528
  ];
526
529
  }), o = {
527
530
  th: {
@@ -546,34 +549,37 @@ const st = { style: { chart: { backgroundColor: "#1A1A1A", color: "#CCCCCC", tit
546
549
  config: o
547
550
  };
548
551
  }), ie = h(!1);
549
- function Ue(t) {
552
+ function Ye(t) {
550
553
  ie.value = t, I.value += 1;
551
554
  }
552
- function mt() {
553
- return L.value;
555
+ function ft() {
556
+ return U.value;
554
557
  }
555
- function Le() {
556
- P.value.showTable = !P.value.showTable;
558
+ function Ue() {
559
+ p.value.showTable = !p.value.showTable;
557
560
  }
558
- function je() {
559
- P.value.showTooltip = !P.value.showTooltip;
561
+ function Le() {
562
+ p.value.showTooltip = !p.value.showTooltip;
560
563
  }
561
564
  const fe = h(!1);
562
565
  function Pe() {
563
566
  fe.value = !fe.value;
564
567
  }
565
- const ft = te(() => !fe.value && e.value.style.chart.zoom.show), { viewBox: Fe, resetZoom: Se, isZoom: pt, setInitialViewBox: gt } = oo(Q, {
568
+ function je() {
569
+ p.value.showZoom = !p.value.showZoom;
570
+ }
571
+ const pt = te(() => !fe.value && p.value.showZoom), { viewBox: Fe, resetZoom: Se, isZoom: gt, setInitialViewBox: bt } = ao(Q, {
566
572
  x: 0,
567
573
  y: 0,
568
574
  width: s.value.width <= 0 ? 10 : s.value.width,
569
575
  height: s.value.height <= 0 ? 10 : s.value.height
570
- }, 1, ft);
571
- be(() => $.dataset, () => {
572
- E.value = B(), e.value.responsive || (Ye(), le());
576
+ }, 1, pt);
577
+ be(() => F.dataset, () => {
578
+ E.value = N(), e.value.responsive || (Ze(), le());
573
579
  }, { immediate: !0 });
574
- async function bt({ scale: t = 2 } = {}) {
575
- if (!k.value) return;
576
- const { width: a, height: o } = k.value.getBoundingClientRect(), n = a / o, { imageUri: i, base64: u } = await eo({ domElement: k.value, base64: !0, img: !0, scale: t });
580
+ async function yt({ scale: t = 2 } = {}) {
581
+ if (!w.value) return;
582
+ const { width: a, height: o } = w.value.getBoundingClientRect(), n = a / o, { imageUri: i, base64: u } = await to({ domElement: w.value, base64: !0, img: !0, scale: t });
577
583
  return {
578
584
  imageUri: i,
579
585
  base64: u,
@@ -584,7 +590,7 @@ const st = { style: { chart: { backgroundColor: "#1A1A1A", color: "#CCCCCC", tit
584
590
  };
585
591
  }
586
592
  const pe = te(() => {
587
- const t = e.value.table.useDialog && !e.value.table.show, a = P.value.showTable;
593
+ const t = e.value.table.useDialog && !e.value.table.show, a = p.value.showTable;
588
594
  return {
589
595
  component: t ? v : m,
590
596
  title: `${e.value.style.chart.title.text}${e.value.style.chart.title.subtitle.text ? `: ${e.value.style.chart.title.subtitle.text}` : ""}`,
@@ -594,7 +600,7 @@ const st = { style: { chart: { backgroundColor: "#1A1A1A", color: "#CCCCCC", tit
594
600
  headerColor: e.value.table.th.color,
595
601
  headerBg: e.value.table.th.backgroundColor,
596
602
  isFullscreen: ie.value,
597
- fullscreenParent: k.value,
603
+ fullscreenParent: w.value,
598
604
  forcedWidth: Math.min(500, window.innerWidth * 0.8)
599
605
  } : {
600
606
  hideDetails: !0,
@@ -613,46 +619,47 @@ const st = { style: { chart: { backgroundColor: "#1A1A1A", color: "#CCCCCC", tit
613
619
  }
614
620
  };
615
621
  });
616
- be(() => P.value.showTable, (t) => {
622
+ be(() => p.value.showTable, (t) => {
617
623
  e.value.table.show || (t && e.value.table.useDialog && K.value ? K.value.open() : "close" in K.value && K.value.close());
618
624
  });
619
625
  function Ge() {
620
- P.value.showTable = !1, se.value && se.value.setTableIconState(!1);
626
+ p.value.showTable = !1, se.value && se.value.setTableIconState(!1);
621
627
  }
622
- const yt = te(() => e.value.style.chart.backgroundColor), Ct = te(() => e.value.style.chart.title), { exportSvg: kt, getSvg: wt } = Zt({
628
+ const Ct = te(() => e.value.style.chart.backgroundColor), kt = te(() => e.value.style.chart.title), { exportSvg: wt, getSvg: At } = Jt({
623
629
  svg: Q,
624
- title: Ct,
625
- backgroundColor: yt
630
+ title: kt,
631
+ backgroundColor: Ct
626
632
  });
627
633
  async function qe({ isCb: t }) {
628
634
  if (t) {
629
- const { blob: a, url: o, text: n, dataUrl: i } = await wt();
635
+ const { blob: a, url: o, text: n, dataUrl: i } = await At();
630
636
  e.value.userOptions.callbacks.svg({ blob: a, url: o, text: n, dataUrl: i });
631
637
  } else
632
- kt();
638
+ wt();
633
639
  }
634
640
  x({
635
- getData: mt,
636
- getImage: bt,
637
- generateCsv: ze,
641
+ getData: ft,
642
+ getImage: yt,
643
+ generateCsv: Oe,
638
644
  generatePdf: Ve,
639
645
  generateImage: Xe,
640
646
  generateSvg: qe,
641
647
  resetZoom: Se,
642
- toggleTable: Le,
643
- toggleTooltip: je,
648
+ toggleTable: Ue,
649
+ toggleTooltip: Le,
644
650
  toggleAnnotator: Pe,
645
- toggleFullscreen: Ue
651
+ toggleFullscreen: Ye,
652
+ toggleZoom: je
646
653
  });
647
654
  const ue = h(null), ge = h(!1), Ie = h(""), De = h(null);
648
655
  function xt(t, a) {
649
656
  ue.value = null, ve.value = !1, e.value.events.datapointLeave && e.value.events.datapointLeave({ datapoint: t, seriesIndex: a });
650
657
  }
651
- function At(t, a) {
658
+ function $t(t, a) {
652
659
  e.value.events.datapointClick && e.value.events.datapointClick({ datapoint: t, seriesIndex: a });
653
660
  }
654
- function $t(t, a) {
655
- if (e.value.events.datapointEnter && e.value.events.datapointEnter({ datapoint: t, seriesIndex: a }), !P.value.showTooltip) return;
661
+ function Ft(t, a) {
662
+ if (e.value.events.datapointEnter && e.value.events.datapointEnter({ datapoint: t, seriesIndex: a }), !p.value.showTooltip) return;
656
663
  ue.value = t.id, De.value = { datapoint: t, config: e.value };
657
664
  const o = e.value.style.chart.tooltip.customFormat;
658
665
  if (ge.value = !1, Lt(o))
@@ -671,18 +678,18 @@ const st = { style: { chart: { backgroundColor: "#1A1A1A", color: "#CCCCCC", tit
671
678
  }
672
679
  ve.value = !0;
673
680
  }
674
- return (t, a) => (F(), G("div", {
681
+ return (t, a) => (S(), j("div", {
675
682
  class: "vue-data-ui-component vue-ui-word-cloud",
676
683
  ref_key: "wordCloudChart",
677
- ref: k,
684
+ ref: w,
678
685
  id: `wordCloud_${J.value}`,
679
686
  "data-resizing": X.value,
680
687
  "data-relayout": he.value,
681
688
  style: Te(`width: 100%; font-family:${e.value.style.fontFamily};background:${e.value.style.chart.backgroundColor};${e.value.responsive ? "height:100%" : ""}`),
682
- onMouseenter: a[2] || (a[2] = () => r(_)(!0)),
683
- onMouseleave: a[3] || (a[3] = () => r(_)(!1))
689
+ onMouseenter: a[2] || (a[2] = () => r(R)(!0)),
690
+ onMouseleave: a[3] || (a[3] = () => r(R)(!1))
684
691
  }, [
685
- e.value.userOptions.buttons.annotator ? (F(), ce(r(d), {
692
+ e.value.userOptions.buttons.annotator ? (S(), ce(r(d), {
686
693
  key: 0,
687
694
  svgRef: r(Q),
688
695
  backgroundColor: e.value.style.chart.backgroundColor,
@@ -690,33 +697,33 @@ const st = { style: { chart: { backgroundColor: "#1A1A1A", color: "#CCCCCC", tit
690
697
  active: fe.value,
691
698
  onClose: Pe
692
699
  }, {
693
- "annotator-action-close": y(() => [
694
- C(t.$slots, "annotator-action-close", {}, void 0, !0)
700
+ "annotator-action-close": g(() => [
701
+ b(t.$slots, "annotator-action-close", {}, void 0, !0)
695
702
  ]),
696
- "annotator-action-color": y(({ color: o }) => [
697
- C(t.$slots, "annotator-action-color", R(W({ color: o })), void 0, !0)
703
+ "annotator-action-color": g(({ color: o }) => [
704
+ b(t.$slots, "annotator-action-color", B(_({ color: o })), void 0, !0)
698
705
  ]),
699
- "annotator-action-draw": y(({ mode: o }) => [
700
- C(t.$slots, "annotator-action-draw", R(W({ mode: o })), void 0, !0)
706
+ "annotator-action-draw": g(({ mode: o }) => [
707
+ b(t.$slots, "annotator-action-draw", B(_({ mode: o })), void 0, !0)
701
708
  ]),
702
- "annotator-action-undo": y(({ disabled: o }) => [
703
- C(t.$slots, "annotator-action-undo", R(W({ disabled: o })), void 0, !0)
709
+ "annotator-action-undo": g(({ disabled: o }) => [
710
+ b(t.$slots, "annotator-action-undo", B(_({ disabled: o })), void 0, !0)
704
711
  ]),
705
- "annotator-action-redo": y(({ disabled: o }) => [
706
- C(t.$slots, "annotator-action-redo", R(W({ disabled: o })), void 0, !0)
712
+ "annotator-action-redo": g(({ disabled: o }) => [
713
+ b(t.$slots, "annotator-action-redo", B(_({ disabled: o })), void 0, !0)
707
714
  ]),
708
- "annotator-action-delete": y(({ disabled: o }) => [
709
- C(t.$slots, "annotator-action-delete", R(W({ disabled: o })), void 0, !0)
715
+ "annotator-action-delete": g(({ disabled: o }) => [
716
+ b(t.$slots, "annotator-action-delete", B(_({ disabled: o })), void 0, !0)
710
717
  ]),
711
718
  _: 3
712
- }, 8, ["svgRef", "backgroundColor", "color", "active"])) : q("", !0),
713
- e.value.style.chart.title.text ? (F(), G("div", {
719
+ }, 8, ["svgRef", "backgroundColor", "color", "active"])) : G("", !0),
720
+ e.value.style.chart.title.text ? (S(), j("div", {
714
721
  key: 1,
715
722
  ref_key: "chartTitle",
716
723
  ref: de,
717
724
  style: "width:100%;background:transparent;padding-bottom:24px"
718
725
  }, [
719
- (F(), ce(to, {
726
+ (S(), ce(oo, {
720
727
  key: `title_${ke.value}`,
721
728
  config: {
722
729
  title: {
@@ -727,8 +734,8 @@ const st = { style: { chart: { backgroundColor: "#1A1A1A", color: "#CCCCCC", tit
727
734
  }
728
735
  }
729
736
  }, null, 8, ["config"]))
730
- ], 512)) : q("", !0),
731
- e.value.userOptions.show && H.value && (r(V) || r(M)) ? (F(), ce(r(c), {
737
+ ], 512)) : G("", !0),
738
+ e.value.userOptions.show && q.value && (r(V) || r(M)) ? (S(), ce(r(c), {
732
739
  ref_key: "userOptionsRef",
733
740
  ref: se,
734
741
  key: `user_option_${I.value}`,
@@ -745,94 +752,104 @@ const st = { style: { chart: { backgroundColor: "#1A1A1A", color: "#CCCCCC", tit
745
752
  hasFullscreen: e.value.userOptions.buttons.fullscreen,
746
753
  isFullscreen: ie.value,
747
754
  titles: { ...e.value.userOptions.buttonTitles },
748
- chartElement: k.value,
755
+ chartElement: w.value,
749
756
  position: e.value.userOptions.position,
750
757
  hasTooltip: e.value.style.chart.tooltip.show && e.value.userOptions.buttons.tooltip,
751
- isTooltip: P.value.showTooltip,
758
+ isTooltip: p.value.showTooltip,
752
759
  hasAnnotator: e.value.userOptions.buttons.annotator,
753
760
  isAnnotation: fe.value,
754
761
  callbacks: e.value.userOptions.callbacks,
755
762
  printScale: e.value.userOptions.print.scale,
756
763
  tableDialog: e.value.table.useDialog,
757
- onToggleFullscreen: Ue,
764
+ hasZoom: e.value.userOptions.buttons.zoom,
765
+ isZoom: p.value.showZoom,
766
+ onToggleFullscreen: Ye,
758
767
  onGeneratePdf: r(Ve),
759
- onGenerateCsv: ze,
768
+ onGenerateCsv: Oe,
760
769
  onGenerateImage: r(Xe),
761
770
  onGenerateSvg: qe,
762
- onToggleTable: Le,
763
- onToggleTooltip: je,
771
+ onToggleTable: Ue,
772
+ onToggleTooltip: Le,
764
773
  onToggleAnnotator: Pe,
774
+ onToggleZoom: je,
765
775
  style: Te({
766
776
  visibility: r(V) ? r(M) ? "visible" : "hidden" : "visible"
767
777
  })
768
- }, Ze({ _: 2 }, [
778
+ }, Je({ _: 2 }, [
769
779
  t.$slots.menuIcon ? {
770
780
  name: "menuIcon",
771
- fn: y(({ isOpen: o, color: n }) => [
772
- C(t.$slots, "menuIcon", R(W({ isOpen: o, color: n })), void 0, !0)
781
+ fn: g(({ isOpen: o, color: n }) => [
782
+ b(t.$slots, "menuIcon", B(_({ isOpen: o, color: n })), void 0, !0)
773
783
  ]),
774
784
  key: "0"
775
785
  } : void 0,
776
786
  t.$slots.optionPdf ? {
777
787
  name: "optionPdf",
778
- fn: y(() => [
779
- C(t.$slots, "optionPdf", {}, void 0, !0)
788
+ fn: g(() => [
789
+ b(t.$slots, "optionPdf", {}, void 0, !0)
780
790
  ]),
781
791
  key: "1"
782
792
  } : void 0,
783
793
  t.$slots.optionCsv ? {
784
794
  name: "optionCsv",
785
- fn: y(() => [
786
- C(t.$slots, "optionCsv", {}, void 0, !0)
795
+ fn: g(() => [
796
+ b(t.$slots, "optionCsv", {}, void 0, !0)
787
797
  ]),
788
798
  key: "2"
789
799
  } : void 0,
790
800
  t.$slots.optionImg ? {
791
801
  name: "optionImg",
792
- fn: y(() => [
793
- C(t.$slots, "optionImg", {}, void 0, !0)
802
+ fn: g(() => [
803
+ b(t.$slots, "optionImg", {}, void 0, !0)
794
804
  ]),
795
805
  key: "3"
796
806
  } : void 0,
797
807
  t.$slots.optionSvg ? {
798
808
  name: "optionSvg",
799
- fn: y(() => [
800
- C(t.$slots, "optionSvg", {}, void 0, !0)
809
+ fn: g(() => [
810
+ b(t.$slots, "optionSvg", {}, void 0, !0)
801
811
  ]),
802
812
  key: "4"
803
813
  } : void 0,
804
814
  t.$slots.optionTable ? {
805
815
  name: "optionTable",
806
- fn: y(() => [
807
- C(t.$slots, "optionTable", {}, void 0, !0)
816
+ fn: g(() => [
817
+ b(t.$slots, "optionTable", {}, void 0, !0)
808
818
  ]),
809
819
  key: "5"
810
820
  } : void 0,
811
821
  t.$slots.optionFullscreen ? {
812
822
  name: "optionFullscreen",
813
- fn: y(({ toggleFullscreen: o, isFullscreen: n }) => [
814
- C(t.$slots, "optionFullscreen", R(W({ toggleFullscreen: o, isFullscreen: n })), void 0, !0)
823
+ fn: g(({ toggleFullscreen: o, isFullscreen: n }) => [
824
+ b(t.$slots, "optionFullscreen", B(_({ toggleFullscreen: o, isFullscreen: n })), void 0, !0)
815
825
  ]),
816
826
  key: "6"
817
827
  } : void 0,
818
828
  t.$slots.optionAnnotator ? {
819
829
  name: "optionAnnotator",
820
- fn: y(({ toggleAnnotator: o, isAnnotator: n }) => [
821
- C(t.$slots, "optionAnnotator", R(W({ toggleAnnotator: o, isAnnotator: n })), void 0, !0)
830
+ fn: g(({ toggleAnnotator: o, isAnnotator: n }) => [
831
+ b(t.$slots, "optionAnnotator", B(_({ toggleAnnotator: o, isAnnotator: n })), void 0, !0)
822
832
  ]),
823
833
  key: "7"
834
+ } : void 0,
835
+ t.$slots.optionZoom ? {
836
+ name: "optionZoom",
837
+ fn: g(({ toggleZoom: o, isZoomLocked: n }) => [
838
+ b(t.$slots, "optionZoom", B(_({ toggleZoom: o, isZoomLocked: n })), void 0, !0)
839
+ ]),
840
+ key: "8"
824
841
  } : void 0
825
- ]), 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"])) : q("", !0),
826
- (F(), G("svg", {
842
+ ]), 1032, ["backgroundColor", "color", "isPrinting", "isImaging", "uid", "hasPdf", "hasXls", "hasImg", "hasSvg", "hasTable", "hasFullscreen", "isFullscreen", "titles", "chartElement", "position", "hasTooltip", "isTooltip", "hasAnnotator", "isAnnotation", "callbacks", "printScale", "tableDialog", "hasZoom", "isZoom", "onGeneratePdf", "onGenerateImage", "style"])) : G("", !0),
843
+ (S(), j("svg", {
827
844
  ref_key: "svgRef",
828
845
  ref: Q,
829
- class: Je({ "vue-data-ui-fullscreen--on": ie.value, "vue-data-ui-fulscreen--off": !ie.value }),
830
- xmlns: r(Xt),
846
+ class: Ke({ "vue-data-ui-fullscreen--on": ie.value, "vue-data-ui-fulscreen--off": !ie.value }),
847
+ xmlns: r(Zt),
831
848
  viewBox: `${r(Fe).x} ${r(Fe).y} ${r(Fe).width} ${r(Fe).height}`,
832
849
  style: "overflow:hidden;background:transparent;"
833
850
  }, [
834
- Me(r(l)),
835
- t.$slots["chart-background"] ? (F(), G("foreignObject", {
851
+ ze(r(l)),
852
+ t.$slots["chart-background"] ? (S(), j("foreignObject", {
836
853
  key: 0,
837
854
  x: 0,
838
855
  y: 0,
@@ -842,18 +859,18 @@ const st = { style: { chart: { backgroundColor: "#1A1A1A", color: "#CCCCCC", tit
842
859
  pointerEvents: "none"
843
860
  }
844
861
  }, [
845
- C(t.$slots, "chart-background", {}, void 0, !0)
846
- ], 8, uo)) : q("", !0),
862
+ b(t.$slots, "chart-background", {}, void 0, !0)
863
+ ], 8, co)) : G("", !0),
847
864
  ye("g", {
848
865
  transform: `translate(${ae.value.x}, ${ae.value.y})`,
849
- class: Je({ "wc-finalized": xe.value })
866
+ class: Ke({ "wc-finalized": Ae.value })
850
867
  }, [
851
- (F(!0), G(Ot, null, zt(L.value, (o, n) => (F(), G("g", {
868
+ (S(!0), j(Ot, null, Pt(U.value, (o, n) => (S(), j("g", {
852
869
  key: o.id,
853
870
  class: "vue-ui-word-cloud-word",
854
871
  transform: `translate(${o.x}, ${o.y})`
855
872
  }, [
856
- o.minX !== void 0 ? (F(), G("rect", {
873
+ o.minX !== void 0 ? (S(), j("rect", {
857
874
  key: 0,
858
875
  x: o.minX,
859
876
  y: o.minY * 1.25,
@@ -861,10 +878,10 @@ const st = { style: { chart: { backgroundColor: "#1A1A1A", color: "#CCCCCC", tit
861
878
  height: o.maxY - o.minY,
862
879
  fill: "transparent",
863
880
  "pointer-events": "visiblePainted",
864
- onMouseover: (i) => $t(o, n),
881
+ onMouseover: (i) => Ft(o, n),
865
882
  onMouseleave: (i) => xt(o, n),
866
- onClick: (i) => At(o, n)
867
- }, null, 40, ho)) : q("", !0),
883
+ onClick: (i) => $t(o, n)
884
+ }, null, 40, mo)) : G("", !0),
868
885
  ye("text", {
869
886
  fill: o.color,
870
887
  "font-weight": e.value.style.chart.words.bold ? "bold" : "normal",
@@ -881,20 +898,20 @@ const st = { style: { chart: { backgroundColor: "#1A1A1A", color: "#CCCCCC", tit
881
898
  "stroke-linejoin": "round",
882
899
  style: Te(`
883
900
  pointer-events:none;
884
- fill-opacity:${!ue.value || ue.value === o.id || !xe.value ? 1 : e.value.style.chart.words.hoverOpacity} !important;
901
+ fill-opacity:${!ue.value || ue.value === o.id || !Ae.value ? 1 : e.value.style.chart.words.hoverOpacity} !important;
885
902
  `)
886
- }, Ee(o.name), 13, mo)
887
- ], 8, vo))), 128))
888
- ], 10, co),
889
- C(t.$slots, "svg", {
903
+ }, Ee(o.name), 13, fo)
904
+ ], 8, ho))), 128))
905
+ ], 10, vo),
906
+ b(t.$slots, "svg", {
890
907
  svg: { height: s.value.height, width: s.value.width }
891
908
  }, void 0, !0)
892
- ], 10, io)),
893
- t.$slots.watermark ? (F(), G("div", fo, [
894
- C(t.$slots, "watermark", R(W({ isPrinting: r(Re) || r(We) })), void 0, !0)
895
- ])) : q("", !0),
896
- r(pt) ? (F(), G("div", po, [
897
- C(t.$slots, "reset-action", { reset: r(Se) }, () => [
909
+ ], 10, uo)),
910
+ t.$slots.watermark ? (S(), j("div", po, [
911
+ b(t.$slots, "watermark", B(_({ isPrinting: r(Re) || r(We) })), void 0, !0)
912
+ ])) : G("", !0),
913
+ r(gt) ? (S(), j("div", go, [
914
+ b(t.$slots, "reset-action", { reset: r(Se) }, () => [
898
915
  ye("button", {
899
916
  "data-cy-reset": "",
900
917
  tabindex: "0",
@@ -905,15 +922,15 @@ const st = { style: { chart: { backgroundColor: "#1A1A1A", color: "#CCCCCC", tit
905
922
  }),
906
923
  onClick: a[0] || (a[0] = (o) => r(Se)(!0))
907
924
  }, [
908
- Me(r(p), {
925
+ ze(r(y), {
909
926
  name: "refresh",
910
927
  stroke: e.value.style.chart.color
911
928
  }, null, 8, ["stroke"])
912
929
  ], 4)
913
930
  ], !0)
914
- ])) : q("", !0),
915
- Me(r(f), {
916
- show: P.value.showTooltip && ve.value,
931
+ ])) : G("", !0),
932
+ ze(r(f), {
933
+ show: p.value.showTooltip && ve.value,
917
934
  backgroundColor: e.value.style.chart.tooltip.backgroundColor,
918
935
  color: e.value.style.chart.tooltip.color,
919
936
  fontSize: e.value.style.chart.tooltip.fontSize,
@@ -923,7 +940,7 @@ const st = { style: { chart: { backgroundColor: "#1A1A1A", color: "#CCCCCC", tit
923
940
  backgroundOpacity: e.value.style.chart.tooltip.backgroundOpacity,
924
941
  position: e.value.style.chart.tooltip.position,
925
942
  offsetY: e.value.style.chart.tooltip.offsetY,
926
- parent: k.value,
943
+ parent: w.value,
927
944
  content: Ie.value,
928
945
  isCustom: ge.value,
929
946
  isFullscreen: ie.value,
@@ -932,29 +949,29 @@ const st = { style: { chart: { backgroundColor: "#1A1A1A", color: "#CCCCCC", tit
932
949
  smoothForce: e.value.style.chart.tooltip.smoothForce,
933
950
  smoothSnapThreshold: e.value.style.chart.tooltip.smoothSnapThreshold
934
951
  }, {
935
- "tooltip-before": y(() => [
936
- C(t.$slots, "tooltip-before", R(W({ ...De.value })), void 0, !0)
952
+ "tooltip-before": g(() => [
953
+ b(t.$slots, "tooltip-before", B(_({ ...De.value })), void 0, !0)
937
954
  ]),
938
- "tooltip-after": y(() => [
939
- C(t.$slots, "tooltip-after", R(W({ ...De.value })), void 0, !0)
955
+ "tooltip-after": g(() => [
956
+ b(t.$slots, "tooltip-after", B(_({ ...De.value })), void 0, !0)
940
957
  ]),
941
958
  _: 3
942
959
  }, 8, ["show", "backgroundColor", "color", "fontSize", "borderRadius", "borderColor", "borderWidth", "backgroundOpacity", "position", "offsetY", "parent", "content", "isCustom", "isFullscreen", "smooth", "backdropFilter", "smoothForce", "smoothSnapThreshold"]),
943
- t.$slots.source ? (F(), G("div", {
960
+ t.$slots.source ? (S(), j("div", {
944
961
  key: 5,
945
962
  ref_key: "source",
946
963
  ref: Ce,
947
964
  dir: "auto"
948
965
  }, [
949
- C(t.$slots, "source", {}, void 0, !0)
950
- ], 512)) : q("", !0),
951
- H.value && e.value.userOptions.buttons.table ? (F(), ce(Pt(pe.value.component), It({ key: 6 }, pe.value.props, {
966
+ b(t.$slots, "source", {}, void 0, !0)
967
+ ], 512)) : G("", !0),
968
+ q.value && e.value.userOptions.buttons.table ? (S(), ce(It(pe.value.component), Dt({ key: 6 }, pe.value.props, {
952
969
  ref_key: "tableUnit",
953
970
  ref: K,
954
971
  onClose: Ge
955
- }), Ze({
956
- content: y(() => [
957
- (F(), ce(r(g), {
972
+ }), Je({
973
+ content: g(() => [
974
+ (S(), ce(r(C), {
958
975
  key: `table_${we.value}`,
959
976
  colNames: $e.value.colNames,
960
977
  head: $e.value.head,
@@ -964,14 +981,14 @@ const st = { style: { chart: { backgroundColor: "#1A1A1A", color: "#CCCCCC", tit
964
981
  withCloseButton: !e.value.table.useDialog,
965
982
  onClose: Ge
966
983
  }, {
967
- th: y(({ th: o }) => [
984
+ th: g(({ th: o }) => [
968
985
  ye("div", {
969
986
  innerHTML: o,
970
987
  style: { display: "flex", "align-items": "center" }
971
- }, null, 8, go)
988
+ }, null, 8, bo)
972
989
  ]),
973
- td: y(({ td: o }) => [
974
- Ke(Ee(o.name || o), 1)
990
+ td: g(({ td: o }) => [
991
+ Qe(Ee(o.name || o), 1)
975
992
  ]),
976
993
  _: 1
977
994
  }, 8, ["colNames", "head", "body", "config", "title", "withCloseButton"]))
@@ -980,20 +997,20 @@ const st = { style: { chart: { backgroundColor: "#1A1A1A", color: "#CCCCCC", tit
980
997
  }, [
981
998
  e.value.table.useDialog ? {
982
999
  name: "title",
983
- fn: y(() => [
984
- Ke(Ee(pe.value.title), 1)
1000
+ fn: g(() => [
1001
+ Qe(Ee(pe.value.title), 1)
985
1002
  ]),
986
1003
  key: "0"
987
1004
  } : void 0,
988
1005
  e.value.table.useDialog ? {
989
1006
  name: "actions",
990
- fn: y(() => [
1007
+ fn: g(() => [
991
1008
  ye("button", {
992
1009
  tabindex: "0",
993
1010
  class: "vue-ui-user-options-button",
994
- onClick: a[1] || (a[1] = (o) => ze(e.value.userOptions.callbacks.csv))
1011
+ onClick: a[1] || (a[1] = (o) => Oe(e.value.userOptions.callbacks.csv))
995
1012
  }, [
996
- Me(r(p), {
1013
+ ze(r(y), {
997
1014
  name: "excel",
998
1015
  stroke: pe.value.props.color
999
1016
  }, null, 8, ["stroke"])
@@ -1001,16 +1018,16 @@ const st = { style: { chart: { backgroundColor: "#1A1A1A", color: "#CCCCCC", tit
1001
1018
  ]),
1002
1019
  key: "1"
1003
1020
  } : void 0
1004
- ]), 1040)) : q("", !0),
1005
- r(w) ? (F(), ce(qt, { key: 7 })) : q("", !0)
1006
- ], 44, ro));
1021
+ ]), 1040)) : G("", !0),
1022
+ r(A) ? (S(), ce(qt, { key: 7 })) : G("", !0)
1023
+ ], 44, io));
1007
1024
  }
1008
- }, yo = /* @__PURE__ */ ao(bo, [["__scopeId", "data-v-3516630b"]]), Eo = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
1025
+ }, Co = /* @__PURE__ */ lo(yo, [["__scopeId", "data-v-7164e284"]]), Bo = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
1009
1026
  __proto__: null,
1010
- default: yo
1027
+ default: Co
1011
1028
  }, Symbol.toStringTag, { value: "Module" }));
1012
1029
  export {
1013
- Do as a,
1014
- Eo as b,
1015
- yo as v
1030
+ Eo as a,
1031
+ Bo as b,
1032
+ Co as v
1016
1033
  };