vue-data-ui 2.16.5 → 2.16.6

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (92) hide show
  1. package/README.md +2 -2
  2. package/dist/{Arrow-D9B36pfx.js → Arrow-DCqxVwey.js} +1 -1
  3. package/dist/{BaseDraggableDialog-DloHiD4h.js → BaseDraggableDialog-6DIKXIBU.js} +2 -2
  4. package/dist/{BaseIcon-DJab5OQD.js → BaseIcon-Bn996RXm.js} +1 -1
  5. package/dist/{ColorPicker-Br0rMnNb.js → ColorPicker-OFfLkKNb.js} +2 -2
  6. package/dist/{DataTable-B6MXw9cG.js → DataTable-CHBLjKtZ.js} +2 -2
  7. package/dist/{Legend-DoxQwq_u.js → Legend-nBXoxXJH.js} +2 -2
  8. package/dist/{NonSvgPenAndPaper-DhbyLXKW.js → NonSvgPenAndPaper-Cls2idJS.js} +3 -3
  9. package/dist/{PackageVersion-DCreTQN4.js → PackageVersion-Bg_9KCU-.js} +1 -1
  10. package/dist/{PenAndPaper-BS60tkQN.js → PenAndPaper-BPTpbnay.js} +3 -3
  11. package/dist/{Shape-CrstrfQ9.js → Shape-Bnf512BA.js} +1 -1
  12. package/dist/{Slicer-Bd0AkciG.js → Slicer-BrqtJG2E.js} +2 -2
  13. package/dist/{SparkTooltip-B4j_rvhG.js → SparkTooltip-C-rLATAw.js} +1 -1
  14. package/dist/{Title-BQLtfM0P.js → Title-Gi81VwUM.js} +1 -1
  15. package/dist/{Tooltip-5JmGL7sR.js → Tooltip-CJxVw7-T.js} +1 -1
  16. package/dist/{UserOptions-DMGkAAIO.js → UserOptions-CBEK6_jo.js} +137 -129
  17. package/dist/{dom-to-png-g3Q8kjna.js → dom-to-png-CRHNL8VU.js} +1 -1
  18. package/dist/img-BgOg8opa.js +27 -0
  19. package/dist/{index-CZNLCg7T.js → index-DvIXJm6t.js} +1 -1
  20. package/dist/{pdf-DJVOD0cz.js → pdf-DhTxBrbJ.js} +1 -1
  21. package/dist/style.css +1 -1
  22. package/dist/types/vue-data-ui.d.cts +2 -2
  23. package/dist/types/vue-data-ui.d.ts +2 -2
  24. package/dist/{useNestedProp-BcPDA6Xr.js → useNestedProp-DrYHm61t.js} +1 -1
  25. package/dist/{usePrinter-ButWuZVm.js → usePrinter-CWnXbGMb.js} +2 -2
  26. package/dist/{vue-data-ui-BB8Upnjm.js → vue-data-ui-B8EWlMIK.js} +63 -63
  27. package/dist/vue-data-ui.js +1 -1
  28. package/dist/{vue-ui-3d-bar-o8P0DCbz.js → vue-ui-3d-bar-CtlB4p7i.js} +42 -41
  29. package/dist/{vue-ui-accordion-CO4hmfuX.js → vue-ui-accordion-D55kCO5G.js} +3 -3
  30. package/dist/{vue-ui-age-pyramid-C9T5bAEl.js → vue-ui-age-pyramid-DSshyUn-.js} +39 -38
  31. package/dist/{vue-ui-annotator-CyOygaxE.js → vue-ui-annotator-DQSMv_k2.js} +2 -2
  32. package/dist/{vue-ui-bullet-CPT1jdcz.js → vue-ui-bullet-FeScjj7q.js} +23 -22
  33. package/dist/{vue-ui-candlestick-BfZTMGE0.js → vue-ui-candlestick-Drupgyoi.js} +100 -99
  34. package/dist/{vue-ui-carousel-table-Bam9qqkj.js → vue-ui-carousel-table-BTZQRZfO.js} +17 -16
  35. package/dist/{vue-ui-chestnut-BAIMBFaQ.js → vue-ui-chestnut-DLWjPwRL.js} +64 -63
  36. package/dist/{vue-ui-chord-92E1yKdu.js → vue-ui-chord-BgLbFBT9.js} +87 -86
  37. package/dist/{vue-ui-circle-pack-DxXPqA7Z.js → vue-ui-circle-pack-VXcRh2gy.js} +31 -30
  38. package/dist/{vue-ui-cursor-Bvy_o8wb.js → vue-ui-cursor-DWmfnM25.js} +2 -2
  39. package/dist/{vue-ui-dashboard--QRCkp7q.js → vue-ui-dashboard-CGIocEHj.js} +62 -62
  40. package/dist/{vue-ui-digits-Dl8RHLvt.js → vue-ui-digits-BgQch3Fc.js} +2 -2
  41. package/dist/{vue-ui-donut-BxSTOFDt.js → vue-ui-donut-B59bCV5_.js} +74 -73
  42. package/dist/{vue-ui-donut-evolution-DNzTtWnJ.js → vue-ui-donut-evolution-CI8qBIQd.js} +44 -43
  43. package/dist/{vue-ui-dumbbell-D01p3t3P.js → vue-ui-dumbbell-CXv7sk88.js} +9 -8
  44. package/dist/{vue-ui-flow-BMvaRn7E.js → vue-ui-flow-DxF0ELtv.js} +9 -8
  45. package/dist/{vue-ui-funnel-Bd_3wouw.js → vue-ui-funnel-Bco8rqF8.js} +20 -19
  46. package/dist/{vue-ui-galaxy-D4HJH1qq.js → vue-ui-galaxy-CaPJwwOj.js} +22 -21
  47. package/dist/{vue-ui-gauge-CgIlk2pu.js → vue-ui-gauge-D7arhDmb.js} +8 -7
  48. package/dist/{vue-ui-gizmo-C1-QYvsn.js → vue-ui-gizmo-Dwli-Mip.js} +3 -3
  49. package/dist/{vue-ui-heatmap-tUn_BlSp.js → vue-ui-heatmap-Cyn-ahGO.js} +10 -9
  50. package/dist/{vue-ui-history-plot-TfVRzyIK.js → vue-ui-history-plot-C2AEToqx.js} +27 -26
  51. package/dist/{vue-ui-kpi-BuL8MAMD.js → vue-ui-kpi-DKDibSdl.js} +3 -3
  52. package/dist/{vue-ui-mini-loader-DIeG36P8.js → vue-ui-mini-loader-B8OVutUx.js} +2 -2
  53. package/dist/{vue-ui-molecule-8RJNzWIw.js → vue-ui-molecule-BVSrqIGw.js} +22 -21
  54. package/dist/{vue-ui-mood-radar-DftzG_Bi.js → vue-ui-mood-radar-DvlyS3RN.js} +9 -8
  55. package/dist/{vue-ui-nested-donuts-B9JC_0xK.js → vue-ui-nested-donuts-D9ssSus6.js} +89 -88
  56. package/dist/{vue-ui-onion-DTjaH-Bu.js → vue-ui-onion-Buu4VX3u.js} +40 -39
  57. package/dist/{vue-ui-parallel-coordinate-plot-DwqfVqFB.js → vue-ui-parallel-coordinate-plot-DFLUvhxD.js} +29 -28
  58. package/dist/{vue-ui-quadrant-Cv3VWA6d.js → vue-ui-quadrant-BMC7NBGd.js} +90 -89
  59. package/dist/{vue-ui-quick-chart-imc0KrbF.js → vue-ui-quick-chart-DB9RKUkb.js} +59 -58
  60. package/dist/{vue-ui-radar-kNySclk1.js → vue-ui-radar-68NMPxxQ.js} +26 -25
  61. package/dist/{vue-ui-rating-DBhEbgwD.js → vue-ui-rating-swH9kRr3.js} +2 -2
  62. package/dist/{vue-ui-relation-circle-BJQhS0aG.js → vue-ui-relation-circle-CT-EdSjO.js} +11 -10
  63. package/dist/{vue-ui-ridgeline-Bhd1Uwm8.js → vue-ui-ridgeline-DftROPaX.js} +10 -9
  64. package/dist/{vue-ui-rings-C_IT2mi0.js → vue-ui-rings-M-9dPI5D.js} +45 -44
  65. package/dist/{vue-ui-scatter-i8XZreWa.js → vue-ui-scatter-CsGhaFJh.js} +44 -43
  66. package/dist/{vue-ui-skeleton-D9B8DY_k.js → vue-ui-skeleton-BAOt2neL.js} +3 -3
  67. package/dist/{vue-ui-smiley-gmdnUWcW.js → vue-ui-smiley-7_kIgPg-.js} +2 -2
  68. package/dist/{vue-ui-spark-trend-DOF3vl8_.js → vue-ui-spark-trend-DHlQQpwz.js} +3 -3
  69. package/dist/{vue-ui-sparkbar-BVOVq3dA.js → vue-ui-sparkbar-BnHhzuKf.js} +3 -3
  70. package/dist/{vue-ui-sparkgauge-DVO2Z0Rg.js → vue-ui-sparkgauge-WtfkCK8g.js} +3 -3
  71. package/dist/{vue-ui-sparkhistogram-CbV86a2i.js → vue-ui-sparkhistogram-B2u4XLVd.js} +4 -4
  72. package/dist/{vue-ui-sparkline-jDNAVZu-.js → vue-ui-sparkline-DKIyUlSm.js} +3 -3
  73. package/dist/{vue-ui-sparkstackbar-auT8CUXm.js → vue-ui-sparkstackbar-BLGz2qIb.js} +3 -3
  74. package/dist/{vue-ui-stackbar-DmO02We2.js → vue-ui-stackbar-BDpMsTYe.js} +11 -10
  75. package/dist/{vue-ui-strip-plot-B25s87lj.js → vue-ui-strip-plot-5qDcYPnR.js} +22 -21
  76. package/dist/{vue-ui-table-B4xbQdK_.js → vue-ui-table-Bg5HIQ3O.js} +3 -3
  77. package/dist/{vue-ui-table-heatmap-DI57VcvH.js → vue-ui-table-heatmap-DmjNy1q1.js} +26 -25
  78. package/dist/{vue-ui-table-sparkline-DRgsZztN.js → vue-ui-table-sparkline-CnkJkBk5.js} +8 -7
  79. package/dist/{vue-ui-thermometer-DkeT5DV_.js → vue-ui-thermometer-RlD-9mJf.js} +30 -29
  80. package/dist/{vue-ui-timer-uon_DLeH.js → vue-ui-timer-Bes74INL.js} +5 -5
  81. package/dist/{vue-ui-tiremarks-BV0qXRF2.js → vue-ui-tiremarks-DiLS3akQ.js} +29 -28
  82. package/dist/vue-ui-treemap-BG1Omm38.js +953 -0
  83. package/dist/{vue-ui-vertical-bar-CkLS_DGb.js → vue-ui-vertical-bar-CwqQyZFX.js} +39 -38
  84. package/dist/{vue-ui-waffle-B2XiLGQx.js → vue-ui-waffle-Ce3T4BPp.js} +10 -9
  85. package/dist/{vue-ui-wheel-BR1DDpKU.js → vue-ui-wheel-6B0WTkf2.js} +34 -33
  86. package/dist/{vue-ui-word-cloud-BvOT6hu2.js → vue-ui-word-cloud-ByYZCOh7.js} +42 -41
  87. package/dist/{vue-ui-world-BeP91MNX.js → vue-ui-world-B9PxVO4n.js} +8 -7
  88. package/dist/{vue-ui-xy-BaR-ZDba.js → vue-ui-xy-DtJ7qJib.js} +69 -68
  89. package/dist/{vue-ui-xy-canvas-B4ZmECCK.js → vue-ui-xy-canvas-S6YpFgzs.js} +131 -130
  90. package/package.json +1 -1
  91. package/dist/img-CTC5DLKL.js +0 -20
  92. package/dist/vue-ui-treemap-DzJsjtz7.js +0 -952
@@ -1,19 +1,19 @@
1
- import { useCssVars as De, defineAsyncComponent as H, computed as se, ref as g, watch as be, shallowRef as Fe, onMounted as Ee, onBeforeUnmount as Ue, createElementBlock as N, openBlock as x, unref as r, normalizeStyle as he, createBlock as ie, createCommentVNode as B, createVNode as we, createSlots as Ge, withCtx as A, renderSlot as F, normalizeProps as Q, guardReactiveProps as ee, normalizeClass as Me, createElementVNode as ke, Fragment as Le, renderList as He, toDisplayString as Pe, createTextVNode as je, nextTick as ze } from "vue";
2
- import { u as qe, c as Oe, ak as Ze, v as Je, t as Ke, p as me, a as Qe, o as et, e as Ae, g as tt, f as ot, X as at, q as lt, r as nt, x as st } from "./index-CZNLCg7T.js";
1
+ import { useCssVars as De, defineAsyncComponent as H, computed as se, ref as g, watch as ye, shallowRef as Fe, onMounted as Ee, onBeforeUnmount as Ue, createElementBlock as N, openBlock as x, unref as r, normalizeStyle as he, createBlock as ie, createCommentVNode as B, createVNode as we, createSlots as Ge, withCtx as A, renderSlot as F, normalizeProps as Q, guardReactiveProps as ee, normalizeClass as Me, createElementVNode as ke, Fragment as Le, renderList as He, toDisplayString as Pe, createTextVNode as je, nextTick as ze } from "vue";
2
+ import { u as qe, c as Oe, ak as Ze, v as Je, t as Ke, p as me, a as Qe, o as et, e as Ae, g as tt, f as ot, X as at, q as lt, r as nt, x as st } from "./index-DvIXJm6t.js";
3
3
  import { t as it, u as rt, d as ut } from "./useResponsive-DfdjqQps.js";
4
- import { u as Ne } from "./useNestedProp-BcPDA6Xr.js";
5
- import { u as ct } from "./usePrinter-ButWuZVm.js";
4
+ import { u as Ne } from "./useNestedProp-DrYHm61t.js";
5
+ import { u as ct } from "./usePrinter-CWnXbGMb.js";
6
6
  import { u as dt } from "./useUserOptionState-BIvW1Kz7.js";
7
7
  import { u as vt } from "./useChartAccessibility-9icAAmYg.js";
8
8
  import { u as ht } from "./usePanZoom-BQMvRXEQ.js";
9
- import mt from "./Title-BQLtfM0P.js";
9
+ import mt from "./Title-Gi81VwUM.js";
10
10
  import { _ as ft } from "./_plugin-vue_export-helper-CHgC5LLL.js";
11
11
  function pt(w, p) {
12
12
  const { width: u, height: f } = w, m = p.getImageData(0, 0, u, f).data;
13
13
  let l = u, a = f, s = 0, k = 0, d = !1;
14
14
  for (let h = 0; h < f; h += 1)
15
- for (let y = 0; y < u; y += 1)
16
- m[(h * u + y) * 4 + 3] > 1 && (d = !0, y < l && (l = y), y > s && (s = y), h < a && (a = h), h > k && (k = h));
15
+ for (let b = 0; b < u; b += 1)
16
+ m[(h * u + b) * 4 + 3] > 1 && (d = !0, b < l && (l = b), b > s && (s = b), h < a && (a = h), h > k && (k = h));
17
17
  return d ? [l, a, s, k] : [0, 0, 0, 0];
18
18
  }
19
19
  function Ie({
@@ -31,8 +31,8 @@ function Ie({
31
31
  for (let _ = 0; _ < s; _ += 1)
32
32
  for (let Y = 0; Y < a; Y += 1)
33
33
  d[(_ * a + Y) * 4 + 3] > 1 && h.push([Y, _]);
34
- const [y, E, P, I] = pt(f, c);
35
- return c.restore(), { w: a, h: s, wordMask: h, minX: y, minY: E, maxX: P, maxY: I };
34
+ const [b, E, P, I] = pt(f, c);
35
+ return c.restore(), { w: a, h: s, wordMask: h, minX: b, minY: E, maxX: P, maxY: I };
36
36
  }
37
37
  function _e({ mask: w, maskW: p, maskH: u, wx: f, wy: c, wordMask: m }) {
38
38
  for (let l = 0; l < m.length; l += 1) {
@@ -58,18 +58,18 @@ function gt({ wordMask: w, w: p, h: u, dilation: f }) {
58
58
  }
59
59
  return Array.from(m).map((l) => l.split(",").map(Number));
60
60
  }
61
- function yt({
61
+ function bt({
62
62
  words: w,
63
63
  proximity: p = 0,
64
64
  svg: u,
65
65
  strictPixelPadding: f
66
66
  }) {
67
- const { width: c, height: m } = u, l = Math.round(c), a = Math.round(m), s = 1, k = u.minFontSize, d = Math.min(u.maxFontSize, 100), h = w.map((S) => S.value), y = Math.min(...h), E = Math.max(...h), P = new Uint8Array(l * a), I = document.createElement("canvas"), _ = I.getContext("2d", { willReadFrequently: !0 });
67
+ const { width: c, height: m } = u, l = Math.round(c), a = Math.round(m), s = 1, k = u.minFontSize, d = Math.min(u.maxFontSize, 100), h = w.map((S) => S.value), b = Math.min(...h), E = Math.max(...h), P = new Uint8Array(l * a), I = document.createElement("canvas"), _ = I.getContext("2d", { willReadFrequently: !0 });
68
68
  I.width = l, I.height = a;
69
69
  const Y = 6, re = 2, te = 2, e = 1, G = Math.floor(l / 2), oe = Math.floor(a / 2), ae = [...w].sort((S, z) => z.value - S.value), j = [];
70
70
  for (const S of ae) {
71
71
  let z = k;
72
- E !== y && (z = (S.value - y) / (E - y) * (d - k) + k), z = Math.max(k, Math.min(d, z));
72
+ E !== b && (z = (S.value - b) / (E - b) * (d - k) + k), z = Math.max(k, Math.min(d, z));
73
73
  let R = !1, n = z;
74
74
  for (; !R && n >= s; ) {
75
75
  let { w: X, h: V, wordMask: C, minX: W, minY: q, maxX: Z, maxY: J } = Ie({
@@ -85,9 +85,9 @@ function yt({
85
85
  for (; O < Math.max(l, a) && !R && U < 1e4; ) {
86
86
  for (let v = 0; v < 360; v += Y) {
87
87
  U += 1;
88
- const M = Math.round(G + O * Math.cos(v * Math.PI / 180) - X / 2), b = Math.round(oe + O * Math.sin(v * Math.PI / 180) - V / 2);
89
- if (!(M < 0 || b < 0 || M + X > l || b + V > a) && _e({ mask: P, maskW: l, maskH: a, wx: M, wy: b, wordMask: C })) {
90
- j.push({ ...S, x: M - l / 2, y: b - a / 2, fontSize: n, width: X, height: V, angle: 0, minX: W, minY: q, maxX: Z, maxY: J }), Re({ mask: P, maskW: l, maskH: a, wx: M, wy: b, wordMask: C }), R = !0;
88
+ const M = Math.round(G + O * Math.cos(v * Math.PI / 180) - X / 2), y = Math.round(oe + O * Math.sin(v * Math.PI / 180) - V / 2);
89
+ if (!(M < 0 || y < 0 || M + X > l || y + V > a) && _e({ mask: P, maskW: l, maskH: a, wx: M, wy: y, wordMask: C })) {
90
+ j.push({ ...S, x: M - l / 2, y: y - a / 2, fontSize: n, width: X, height: V, angle: 0, minX: W, minY: q, maxX: Z, maxY: J }), Re({ mask: P, maskW: l, maskH: a, wx: M, wy: y, wordMask: C }), R = !0;
91
91
  break;
92
92
  }
93
93
  }
@@ -109,9 +109,9 @@ function yt({
109
109
  for (; O < Math.max(l, a) && !R && U < 25e3; ) {
110
110
  for (let v = 0; v < 360; v += te) {
111
111
  U += 1;
112
- const M = Math.round(G + O * Math.cos(v * Math.PI / 180) - X / 2), b = Math.round(oe + O * Math.sin(v * Math.PI / 180) - V / 2);
113
- if (!(M < 0 || b < 0 || M + X > l || b + V > a) && _e({ mask: P, maskW: l, maskH: a, wx: M, wy: b, wordMask: C })) {
114
- j.push({ ...S, x: M - l / 2, y: b - a / 2, fontSize: n, width: X, height: V, angle: 0, minX: W, minY: q, maxX: Z, maxY: J }), Re({ mask: P, maskW: l, maskH: a, wx: M, wy: b, wordMask: C }), R = !0;
112
+ const M = Math.round(G + O * Math.cos(v * Math.PI / 180) - X / 2), y = Math.round(oe + O * Math.sin(v * Math.PI / 180) - V / 2);
113
+ if (!(M < 0 || y < 0 || M + X > l || y + V > a) && _e({ mask: P, maskW: l, maskH: a, wx: M, wy: y, wordMask: C })) {
114
+ j.push({ ...S, x: M - l / 2, y: y - a / 2, fontSize: n, width: X, height: V, angle: 0, minX: W, minY: q, maxX: Z, maxY: J }), Re({ mask: P, maskW: l, maskH: a, wx: M, wy: y, wordMask: C }), R = !0;
115
115
  break;
116
116
  }
117
117
  }
@@ -121,7 +121,7 @@ function yt({
121
121
  }
122
122
  return j.sort((S, z) => z.fontSize - S.fontSize);
123
123
  }
124
- const bt = ["id"], wt = ["xmlns", "viewBox"], kt = ["width", "height"], Ct = ["transform"], xt = ["x", "y", "width", "height", "onMouseover"], $t = ["fill", "font-weight", "x", "y", "font-size", "transform"], Tt = {
124
+ const yt = ["id"], wt = ["xmlns", "viewBox"], kt = ["width", "height"], Ct = ["transform"], xt = ["x", "y", "width", "height", "onMouseover"], $t = ["fill", "font-weight", "x", "y", "font-size", "transform"], Tt = {
125
125
  key: 4,
126
126
  class: "vue-data-ui-watermark"
127
127
  }, St = {
@@ -146,16 +146,16 @@ const bt = ["id"], wt = ["xmlns", "viewBox"], kt = ["width", "height"], Ct = ["t
146
146
  },
147
147
  setup(w, { expose: p }) {
148
148
  De((t) => ({
149
- "6e3cfc0f": t.slicerColor
149
+ "059fb00e": t.slicerColor
150
150
  }));
151
- const u = H(() => import("./vue-ui-accordion-CO4hmfuX.js")), f = H(() => import("./BaseIcon-DJab5OQD.js")), c = H(() => import("./DataTable-B6MXw9cG.js")), m = H(() => import("./PackageVersion-DCreTQN4.js")), l = H(() => import("./PenAndPaper-BS60tkQN.js")), a = H(() => import("./Tooltip-5JmGL7sR.js")), s = H(() => import("./UserOptions-DMGkAAIO.js")), { vue_ui_word_cloud: k } = qe(), d = w, h = se({
151
+ const u = H(() => import("./vue-ui-accordion-D55kCO5G.js")), f = H(() => import("./BaseIcon-Bn996RXm.js")), c = H(() => import("./DataTable-CHBLjKtZ.js")), m = H(() => import("./PackageVersion-Bg_9KCU-.js")), l = H(() => import("./PenAndPaper-BPTpbnay.js")), a = H(() => import("./Tooltip-CJxVw7-T.js")), s = H(() => import("./UserOptions-CBEK6_jo.js")), { vue_ui_word_cloud: k } = qe(), d = w, h = se({
152
152
  get() {
153
153
  return !!d.dataset && d.dataset.length;
154
154
  },
155
155
  set(t) {
156
156
  return t;
157
157
  }
158
- }), y = g(Oe()), E = g(0), P = g(null), I = g(null), _ = g(null), Y = g(0), re = g(0), te = g(!1), e = se({
158
+ }), b = g(Oe()), E = g(0), P = g(null), I = g(null), _ = g(null), Y = g(0), re = g(0), te = g(!1), e = se({
159
159
  get: () => R(),
160
160
  set: (t) => t
161
161
  }), G = g(oe());
@@ -165,7 +165,7 @@ const bt = ["id"], wt = ["xmlns", "viewBox"], kt = ["width", "height"], Ct = ["t
165
165
  value: Je(t.value)
166
166
  }));
167
167
  }
168
- be(() => d.dataset, () => {
168
+ ye(() => d.dataset, () => {
169
169
  G.value = oe(), fe();
170
170
  });
171
171
  const { userOptionsVisible: ae, setUserOptionsVisibility: j, keepUserOptionState: S } = dt({ config: e.value }), { svgRef: z } = vt({ config: e.value.style.chart.title });
@@ -182,7 +182,7 @@ const bt = ["id"], wt = ["xmlns", "viewBox"], kt = ["width", "height"], Ct = ["t
182
182
  customPalette: Ke[t.theme] || me
183
183
  } : t;
184
184
  }
185
- be(() => d.config, (t) => {
185
+ ye(() => d.config, (t) => {
186
186
  e.value = R(), ae.value = !e.value.userOptions.showOnChartHover, q(), Y.value += 1, re.value += 1, v.value.showTable = e.value.table.show, v.value.showTooltip = e.value.style.chart.tooltip.show;
187
187
  }, { deep: !0 });
188
188
  const n = g({
@@ -226,7 +226,7 @@ const bt = ["id"], wt = ["xmlns", "viewBox"], kt = ["width", "height"], Ct = ["t
226
226
  C.value && (W.value && C.value.unobserve(W.value), C.value.disconnect());
227
227
  });
228
228
  const { isPrinting: Z, isImaging: J, generatePdf: O, generateImage: U } = ct({
229
- elementId: `wordCloud_${y.value}`,
229
+ elementId: `wordCloud_${b.value}`,
230
230
  fileName: e.value.style.chart.title.text || "vue-ui-word-cloud",
231
231
  options: e.value.userOptions.print
232
232
  }), v = g({
@@ -240,8 +240,8 @@ const bt = ["id"], wt = ["xmlns", "viewBox"], kt = ["width", "height"], Ct = ["t
240
240
  height: i
241
241
  };
242
242
  }
243
- const b = g([]);
244
- be(() => d.dataset, fe, { immediate: !0 });
243
+ const y = g([]);
244
+ ye(() => d.dataset, fe, { immediate: !0 });
245
245
  function fe() {
246
246
  const t = [...G.value].map((T) => T.value), i = Math.max(...t), o = Math.min(...t), $ = [...G.value].map((T, D) => {
247
247
  let L = (T.value - o) / (i - o) * (n.value.maxFontSize - n.value.minFontSize) + n.value.minFontSize;
@@ -256,7 +256,7 @@ const bt = ["id"], wt = ["xmlns", "viewBox"], kt = ["width", "height"], Ct = ["t
256
256
  color: e.value.style.chart.words.usePalette ? e.value.customPalette[D] || e.value.customPalette[D % e.value.customPalette.length] || me[D] || me[D % me.length] : e.value.style.chart.words.color
257
257
  };
258
258
  });
259
- b.value = yt({
259
+ y.value = bt({
260
260
  words: $,
261
261
  svg: n.value,
262
262
  proximity: e.value.style.chart.words.proximity,
@@ -264,10 +264,10 @@ const bt = ["id"], wt = ["xmlns", "viewBox"], kt = ["width", "height"], Ct = ["t
264
264
  });
265
265
  }
266
266
  const ue = se(() => {
267
- const t = b.value.map((o) => ({
267
+ const t = y.value.map((o) => ({
268
268
  name: o.name,
269
269
  color: o.color
270
- })), i = b.value.map((o) => o.value);
270
+ })), i = y.value.map((o) => o.value);
271
271
  return { head: t, body: i };
272
272
  });
273
273
  function Ce(t = null) {
@@ -318,7 +318,7 @@ const bt = ["id"], wt = ["xmlns", "viewBox"], kt = ["width", "height"], Ct = ["t
318
318
  de.value = t, E.value += 1;
319
319
  }
320
320
  function Ve() {
321
- return b.value;
321
+ return y.value;
322
322
  }
323
323
  function xe() {
324
324
  v.value.showTable = !v.value.showTable;
@@ -345,10 +345,10 @@ const bt = ["id"], wt = ["xmlns", "viewBox"], kt = ["width", "height"], Ct = ["t
345
345
  toggleTooltip: $e,
346
346
  toggleAnnotator: pe
347
347
  });
348
- const K = g(null), ne = g(!1), ge = g(""), ye = g(null);
348
+ const K = g(null), ne = g(!1), ge = g(""), be = g(null);
349
349
  function Ye(t) {
350
350
  if (!v.value.showTooltip) return;
351
- K.value = t.id, ye.value = { datapoint: t, config: e.value };
351
+ K.value = t.id, be.value = { datapoint: t, config: e.value };
352
352
  const i = e.value.style.chart.tooltip.customFormat;
353
353
  if (ne.value = !1, st(i))
354
354
  try {
@@ -370,7 +370,7 @@ const bt = ["id"], wt = ["xmlns", "viewBox"], kt = ["width", "height"], Ct = ["t
370
370
  class: "vue-ui-word-cloud",
371
371
  ref_key: "wordCloudChart",
372
372
  ref: P,
373
- id: `wordCloud_${y.value}`,
373
+ id: `wordCloud_${b.value}`,
374
374
  style: he(`width: 100%; font-family:${e.value.style.fontFamily};background:${e.value.style.chart.backgroundColor};${e.value.responsive ? "height:100%" : ""}`),
375
375
  onMouseenter: i[3] || (i[3] = () => r(j)(!0)),
376
376
  onMouseleave: i[4] || (i[4] = () => r(j)(!1))
@@ -408,7 +408,7 @@ const bt = ["id"], wt = ["xmlns", "viewBox"], kt = ["width", "height"], Ct = ["t
408
408
  color: e.value.style.chart.color,
409
409
  isPrinting: r(Z),
410
410
  isImaging: r(J),
411
- uid: y.value,
411
+ uid: b.value,
412
412
  hasPdf: e.value.userOptions.buttons.pdf,
413
413
  hasXls: e.value.userOptions.buttons.csv,
414
414
  hasImg: e.value.userOptions.buttons.img,
@@ -423,6 +423,7 @@ const bt = ["id"], wt = ["xmlns", "viewBox"], kt = ["width", "height"], Ct = ["t
423
423
  hasAnnotator: e.value.userOptions.buttons.annotator,
424
424
  isAnnotation: le.value,
425
425
  callbacks: e.value.userOptions.callbacks,
426
+ printScale: e.value.userOptions.print.scale,
426
427
  onToggleFullscreen: Xe,
427
428
  onGeneratePdf: r(O),
428
429
  onGenerateCsv: Ce,
@@ -483,7 +484,7 @@ const bt = ["id"], wt = ["xmlns", "viewBox"], kt = ["width", "height"], Ct = ["t
483
484
  ]),
484
485
  key: "6"
485
486
  } : void 0
486
- ]), 1032, ["backgroundColor", "color", "isPrinting", "isImaging", "uid", "hasPdf", "hasXls", "hasImg", "hasTable", "hasFullscreen", "isFullscreen", "titles", "chartElement", "position", "hasTooltip", "isTooltip", "hasAnnotator", "isAnnotation", "callbacks", "onGeneratePdf", "onGenerateImage", "style"])) : B("", !0),
487
+ ]), 1032, ["backgroundColor", "color", "isPrinting", "isImaging", "uid", "hasPdf", "hasXls", "hasImg", "hasTable", "hasFullscreen", "isFullscreen", "titles", "chartElement", "position", "hasTooltip", "isTooltip", "hasAnnotator", "isAnnotation", "callbacks", "printScale", "onGeneratePdf", "onGenerateImage", "style"])) : B("", !0),
487
488
  h.value ? (x(), N("svg", {
488
489
  key: 3,
489
490
  ref_key: "svgRef",
@@ -509,7 +510,7 @@ const bt = ["id"], wt = ["xmlns", "viewBox"], kt = ["width", "height"], Ct = ["t
509
510
  ke("g", {
510
511
  transform: `translate(${(n.value.width <= 0 ? 10 : n.value.width) / 2}, ${(n.value.height <= 0 ? 10 : n.value.height) / 2})`
511
512
  }, [
512
- (x(!0), N(Le, null, He(b.value, (o, $) => (x(), N("g", null, [
513
+ (x(!0), N(Le, null, He(y.value, (o, $) => (x(), N("g", null, [
513
514
  o.minX !== void 0 ? (x(), N("rect", {
514
515
  key: 0,
515
516
  x: o.x + o.minX,
@@ -580,10 +581,10 @@ const bt = ["id"], wt = ["xmlns", "viewBox"], kt = ["width", "height"], Ct = ["t
580
581
  isCustom: ne.value
581
582
  }, {
582
583
  "tooltip-before": A(() => [
583
- F(t.$slots, "tooltip-before", Q(ee({ ...ye.value })), void 0, !0)
584
+ F(t.$slots, "tooltip-before", Q(ee({ ...be.value })), void 0, !0)
584
585
  ]),
585
586
  "tooltip-after": A(() => [
586
- F(t.$slots, "tooltip-after", Q(ee({ ...ye.value })), void 0, !0)
587
+ F(t.$slots, "tooltip-after", Q(ee({ ...be.value })), void 0, !0)
587
588
  ]),
588
589
  _: 3
589
590
  }, 8, ["show", "backgroundColor", "color", "fontSize", "borderRadius", "borderColor", "borderWidth", "backgroundOpacity", "position", "offsetY", "parent", "content", "isCustom"]),
@@ -635,9 +636,9 @@ const bt = ["id"], wt = ["xmlns", "viewBox"], kt = ["width", "height"], Ct = ["t
635
636
  ]),
636
637
  _: 1
637
638
  }, 8, ["config"])) : B("", !0)
638
- ], 44, bt));
639
+ ], 44, yt));
639
640
  }
640
- }, Wt = /* @__PURE__ */ ft(Mt, [["__scopeId", "data-v-be758984"]]);
641
+ }, Wt = /* @__PURE__ */ ft(Mt, [["__scopeId", "data-v-7d85eb5b"]]);
641
642
  export {
642
643
  Wt as default
643
644
  };