vue-data-ui 3.0.0-next.0 → 3.0.0-next.2

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 (102) hide show
  1. package/README.md +108 -67
  2. package/dist/{Arrow-CzFtSJ1v.js → Arrow-Dck2Ea5K.js} +1 -1
  3. package/dist/{BaseDraggableDialog-0S5xhs2P.js → BaseDraggableDialog-CatHZ1ns.js} +2 -2
  4. package/dist/{BaseIcon-DoDjTdD5.js → BaseIcon-BmZ4MREl.js} +1 -1
  5. package/dist/{ColorPicker-BGRchgqQ.js → ColorPicker-C1MXyD9Q.js} +2 -2
  6. package/dist/{DataTable-BBbOgI-a.js → DataTable-CgL0Rz0x.js} +2 -2
  7. package/dist/{Legend-Q4bOb-Nf.js → Legend-CYbP3Kfg.js} +12 -11
  8. package/dist/{NonSvgPenAndPaper-DNKRvsBB.js → NonSvgPenAndPaper-CcbcJm_U.js} +3 -3
  9. package/dist/{PackageVersion-D0VPY8-5.js → PackageVersion-CAkNkiIG.js} +1 -1
  10. package/dist/{PenAndPaper-DhBJsnob.js → PenAndPaper-Cx1-5zdD.js} +32 -32
  11. package/dist/{Shape-DbsLJ-SE.js → Shape-DBXkGxKt.js} +1 -1
  12. package/dist/{Slicer-DZEFp2GU.js → Slicer-nrMi5hzj.js} +2 -2
  13. package/dist/{SparkTooltip-CoOJR62O.js → SparkTooltip-fNzL4pIU.js} +1 -1
  14. package/dist/{Title-D29apS4l.js → Title-pVYRzQXY.js} +1 -1
  15. package/dist/Tooltip-NwATo4ZJ.js +157 -0
  16. package/dist/{UserOptions-Bdit7AWO.js → UserOptions-DAsRxxrf.js} +137 -129
  17. package/dist/{dom-to-png-BdPIrHOF.js → dom-to-png-BF_4H_6u.js} +1 -1
  18. package/dist/img-ku4zevVD.js +33 -0
  19. package/dist/{index-DMqAxz7R.js → index-BzfnuLnw.js} +1199 -1135
  20. package/dist/pdf-CguiIsUc.js +58 -0
  21. package/dist/style.css +1 -1
  22. package/dist/types/vue-data-ui.d.cts +1051 -217
  23. package/dist/types/vue-data-ui.d.ts +1051 -217
  24. package/dist/useLoading-Bt5Doa8m.js +28 -0
  25. package/dist/{useNestedProp-YgN3FV_8.js → useNestedProp-DorElw91.js} +1 -1
  26. package/dist/{usePrinter-COkTjv6C.js → usePrinter-C9qkgv0r.js} +2 -2
  27. package/dist/vue-data-ui-DQef_oFO.js +314 -0
  28. package/dist/vue-data-ui.js +13 -13
  29. package/dist/{vue-ui-3d-bar-Ojgjl20n.js → vue-ui-3d-bar-DPSamIA-.js} +261 -245
  30. package/dist/{vue-ui-accordion-P6eFHGQp.js → vue-ui-accordion-DgZK-qDz.js} +3 -3
  31. package/dist/{vue-ui-age-pyramid-IcMpAhiw.js → vue-ui-age-pyramid-DVeGKvf9.js} +233 -217
  32. package/dist/{vue-ui-annotator-Bk7d86-x.js → vue-ui-annotator-6ikkK-FK.js} +2 -2
  33. package/dist/{vue-ui-bullet-DCvWbCPk.js → vue-ui-bullet-Bg4hfFk2.js} +172 -156
  34. package/dist/{vue-ui-candlestick-DCf-88Yv.js → vue-ui-candlestick-Bi59FGXn.js} +271 -254
  35. package/dist/{vue-ui-carousel-table-DEsl0XUh.js → vue-ui-carousel-table-DitKhrFT.js} +17 -16
  36. package/dist/{vue-ui-chestnut-Cg10-3wu.js → vue-ui-chestnut-D8wGAZod.js} +419 -403
  37. package/dist/{vue-ui-chord-BWYzR6vf.js → vue-ui-chord-C-uTVCDP.js} +256 -240
  38. package/dist/{vue-ui-circle-pack-CO2Ra2-5.js → vue-ui-circle-pack-CPy6xcxv.js} +230 -214
  39. package/dist/{vue-ui-cursor-BbYHJDbV.js → vue-ui-cursor-Dd7vUd0q.js} +2 -2
  40. package/dist/{vue-ui-dashboard-DkCnNuse.js → vue-ui-dashboard-CKurbu8M.js} +62 -62
  41. package/dist/{vue-ui-digits-DRsphHt2.js → vue-ui-digits-DfdZI11G.js} +2 -2
  42. package/dist/{vue-ui-donut-evolution-B5F2-0bh.js → vue-ui-donut-evolution-CKbLO8yR.js} +370 -357
  43. package/dist/vue-ui-donut-tECBFvud.js +1532 -0
  44. package/dist/{vue-ui-dumbbell-DqqSxoSh.js → vue-ui-dumbbell-DI5Lj3r_.js} +216 -200
  45. package/dist/{vue-ui-flow-CTIcUJgV.js → vue-ui-flow-CjU48s9z.js} +217 -201
  46. package/dist/{vue-ui-funnel-k7KD7Xoc.js → vue-ui-funnel-DM_5vHZ4.js} +213 -197
  47. package/dist/{vue-ui-galaxy-C9EHaP4I.js → vue-ui-galaxy-ocvZgZJx.js} +215 -202
  48. package/dist/{vue-ui-gauge-CBiM_1-n.js → vue-ui-gauge-DajNoY-D.js} +220 -204
  49. package/dist/{vue-ui-gizmo-CAc7b2oK.js → vue-ui-gizmo-DTnzeQbm.js} +3 -3
  50. package/dist/{vue-ui-heatmap-B3ubrP2v.js → vue-ui-heatmap-CfBS8jQe.js} +244 -224
  51. package/dist/{vue-ui-history-plot-XCqccO3b.js → vue-ui-history-plot-BuOPWQoP.js} +268 -252
  52. package/dist/{vue-ui-kpi-DTGMDjaZ.js → vue-ui-kpi-DLGHOIRj.js} +3 -3
  53. package/dist/{vue-ui-mini-loader-Cn_7nvVq.js → vue-ui-mini-loader-CHAHi4c9.js} +2 -2
  54. package/dist/{vue-ui-molecule-BugMXFAK.js → vue-ui-molecule-R5-oDFeW.js} +204 -188
  55. package/dist/{vue-ui-mood-radar-Cv4dHZPL.js → vue-ui-mood-radar-Ddf2gaES.js} +206 -190
  56. package/dist/vue-ui-nested-donuts-CksklV83.js +1177 -0
  57. package/dist/{vue-ui-onion-Bha2hRAb.js → vue-ui-onion-D2n4zUkV.js} +196 -180
  58. package/dist/{vue-ui-parallel-coordinate-plot-DWJ2DWx4.js → vue-ui-parallel-coordinate-plot-CNWQqlxf.js} +194 -178
  59. package/dist/{vue-ui-quadrant-BKHZoTml.js → vue-ui-quadrant-CxNj2FEx.js} +321 -305
  60. package/dist/{vue-ui-quick-chart-D_k3lbU8.js → vue-ui-quick-chart-Bm_VmhJR.js} +347 -331
  61. package/dist/{vue-ui-radar-Co4EOjSk.js → vue-ui-radar-DSYMQJ6K.js} +193 -177
  62. package/dist/{vue-ui-rating-dtNN0EdX.js → vue-ui-rating-BiQpwXnc.js} +2 -2
  63. package/dist/{vue-ui-relation-circle-CR4UpQzM.js → vue-ui-relation-circle-Cdxe78Bm.js} +188 -172
  64. package/dist/{vue-ui-ridgeline-BKX97EnR.js → vue-ui-ridgeline-DpeM2hRi.js} +212 -196
  65. package/dist/{vue-ui-rings-EPTwyt6D.js → vue-ui-rings-BenmQHKv.js} +223 -210
  66. package/dist/{vue-ui-scatter-BlxzblSR.js → vue-ui-scatter-mDMY1H6U.js} +288 -273
  67. package/dist/{vue-ui-skeleton-CjN2ZdgT.js → vue-ui-skeleton-Ch_XkFuP.js} +3 -3
  68. package/dist/{vue-ui-smiley-DdF_ErYG.js → vue-ui-smiley-DTig5lTU.js} +2 -2
  69. package/dist/{vue-ui-spark-trend-RdOlCuT9.js → vue-ui-spark-trend-BkDsp8E0.js} +3 -3
  70. package/dist/{vue-ui-sparkbar-DWufRGcN.js → vue-ui-sparkbar-CgqoyBOm.js} +3 -3
  71. package/dist/{vue-ui-sparkgauge-IP1O3qyT.js → vue-ui-sparkgauge-B4jR_Y62.js} +3 -3
  72. package/dist/{vue-ui-sparkhistogram-Cnv9xZ8H.js → vue-ui-sparkhistogram-DfxjglLy.js} +4 -4
  73. package/dist/{vue-ui-sparkline-CYgeD5V3.js → vue-ui-sparkline-M3QR8xJE.js} +3 -3
  74. package/dist/{vue-ui-sparkstackbar-BCwoK9xd.js → vue-ui-sparkstackbar-B2Ls-Mb8.js} +3 -3
  75. package/dist/{vue-ui-stackbar-CqFIvfrK.js → vue-ui-stackbar-DIHkn6__.js} +497 -474
  76. package/dist/{vue-ui-strip-plot-Dq-kDRai.js → vue-ui-strip-plot-B_ZLbu2D.js} +241 -225
  77. package/dist/{vue-ui-table-vaIdQnPl.js → vue-ui-table-BhymhDOh.js} +3 -3
  78. package/dist/{vue-ui-table-heatmap-U_Td0cdh.js → vue-ui-table-heatmap-DokRh4dS.js} +26 -25
  79. package/dist/{vue-ui-table-sparkline-DkOaHx5L.js → vue-ui-table-sparkline-DxBZGKZJ.js} +8 -7
  80. package/dist/{vue-ui-thermometer-CzckBZgs.js → vue-ui-thermometer-e2L6IdF-.js} +170 -154
  81. package/dist/{vue-ui-timer-DSdUshUs.js → vue-ui-timer-BG2EwK3o.js} +5 -5
  82. package/dist/vue-ui-tiremarks-nzQH7woJ.js +358 -0
  83. package/dist/vue-ui-treemap-CZxyi6fl.js +965 -0
  84. package/dist/{vue-ui-vertical-bar-Dd4sYeAC.js → vue-ui-vertical-bar-DahdX1Sn.js} +382 -360
  85. package/dist/{vue-ui-waffle-DusUVY6y.js → vue-ui-waffle-D399D4UE.js} +234 -221
  86. package/dist/vue-ui-wheel-DtcwtHzJ.js +352 -0
  87. package/dist/{vue-ui-word-cloud-_7uYjJ5A.js → vue-ui-word-cloud-CTDceQsf.js} +249 -233
  88. package/dist/{vue-ui-world-COIyBHII.js → vue-ui-world-BjNSbqMZ.js} +239 -223
  89. package/dist/vue-ui-xy-BkTP-JpK.js +2958 -0
  90. package/dist/{vue-ui-xy-canvas-CuYRyub2.js → vue-ui-xy-canvas-BKAowbe0.js} +447 -431
  91. package/package.json +2 -2
  92. package/dist/Tooltip-hVZUY_s5.js +0 -149
  93. package/dist/img-BeMVTwmF.js +0 -20
  94. package/dist/pdf-DPxOdzfi.js +0 -51
  95. package/dist/useMouse-AicQS8Vf.js +0 -13
  96. package/dist/vue-data-ui-nceqWRts.js +0 -301
  97. package/dist/vue-ui-donut-DSE7ubVv.js +0 -1315
  98. package/dist/vue-ui-nested-donuts-CYe0Are_.js +0 -1154
  99. package/dist/vue-ui-tiremarks-B2WWklqG.js +0 -342
  100. package/dist/vue-ui-treemap-D1dgDhjG.js +0 -952
  101. package/dist/vue-ui-wheel-ClsKBh52.js +0 -336
  102. package/dist/vue-ui-xy-C_OUyzTC.js +0 -3135
@@ -1,23 +1,24 @@
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-DMqAxz7R.js";
3
- import { t as it, u as rt, d as ut } from "./useResponsive-DfdjqQps.js";
4
- import { u as Ne } from "./useNestedProp-YgN3FV_8.js";
5
- import { u as ct } from "./usePrinter-COkTjv6C.js";
6
- import { u as dt } from "./useUserOptionState-BIvW1Kz7.js";
7
- import { u as vt } from "./useChartAccessibility-9icAAmYg.js";
8
- import { u as ht } from "./usePanZoom-BQMvRXEQ.js";
9
- import mt from "./Title-D29apS4l.js";
10
- import { _ as ft } from "./_plugin-vue_export-helper-CHgC5LLL.js";
11
- function pt(w, p) {
12
- const { width: u, height: f } = w, m = p.getImageData(0, 0, u, f).data;
13
- let l = u, a = f, s = 0, k = 0, d = !1;
1
+ import { useCssVars as Ue, defineAsyncComponent as H, computed as se, ref as g, watch as be, shallowRef as Me, onMounted as De, onBeforeUnmount as Ge, createElementBlock as N, openBlock as T, unref as r, normalizeStyle as he, createBlock as ie, createCommentVNode as Y, createVNode as we, createSlots as Le, withCtx as A, renderSlot as M, normalizeProps as Q, guardReactiveProps as ee, normalizeClass as Pe, createElementVNode as ke, Fragment as He, renderList as je, toDisplayString as ze, createTextVNode as qe, nextTick as Oe } from "vue";
2
+ import { u as Ze, c as Ae, al as Je, v as Ke, t as Qe, p as me, a as et, o as tt, e as Ie, g as ot, f as at, X as lt, q as nt, r as st, x as it } from "./index-BzfnuLnw.js";
3
+ import { t as rt, u as ut, d as ct } from "./useResponsive-DfdjqQps.js";
4
+ import { u as Ne } from "./useNestedProp-DorElw91.js";
5
+ import { u as dt } from "./usePrinter-C9qkgv0r.js";
6
+ import { u as vt } from "./useUserOptionState-BIvW1Kz7.js";
7
+ import { u as ht } from "./useChartAccessibility-9icAAmYg.js";
8
+ import { u as mt } from "./usePanZoom-BQMvRXEQ.js";
9
+ import ft from "./Title-pVYRzQXY.js";
10
+ import pt from "./img-ku4zevVD.js";
11
+ import { _ as gt } from "./_plugin-vue_export-helper-CHgC5LLL.js";
12
+ function yt(C, p) {
13
+ const { width: u, height: f } = C, m = p.getImageData(0, 0, u, f).data;
14
+ let l = u, a = f, i = 0, x = 0, d = !1;
14
15
  for (let h = 0; h < f; h += 1)
15
16
  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));
17
- return d ? [l, a, s, k] : [0, 0, 0, 0];
17
+ m[(h * u + y) * 4 + 3] > 1 && (d = !0, y < l && (l = y), y > i && (i = y), h < a && (a = h), h > x && (x = h));
18
+ return d ? [l, a, i, x] : [0, 0, 0, 0];
18
19
  }
19
- function Ie({
20
- word: w,
20
+ function _e({
21
+ word: C,
21
22
  fontSize: p,
22
23
  pad: u,
23
24
  canvas: f,
@@ -25,93 +26,93 @@ function Ie({
25
26
  svg: m
26
27
  }) {
27
28
  c.save(), c.font = `${m.style && m.style.bold ? "bold " : ""}${p}px Arial`;
28
- const l = c.measureText(w.name), a = Math.ceil(l.width) + 2 + (u ? u * 2 : 0), s = Math.ceil(p) + 2 + (u ? u * 2 : 0);
29
- f.width = a, f.height = s, c.clearRect(0, 0, a, s), c.font = `${m.style && m.style.bold ? "bold " : ""}${p}px Arial`, c.textAlign = "center", c.textBaseline = "middle", c.fillStyle = "black", c.fillText(w.name, a / 2, s / 2);
30
- const d = c.getImageData(0, 0, a, s).data, h = [];
31
- for (let _ = 0; _ < s; _ += 1)
32
- for (let Y = 0; Y < a; Y += 1)
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 };
29
+ const l = c.measureText(C.name), a = Math.ceil(l.width) + 2 + (u ? u * 2 : 0), i = Math.ceil(p) + 2 + (u ? u * 2 : 0);
30
+ f.width = a, f.height = i, c.clearRect(0, 0, a, i), c.font = `${m.style && m.style.bold ? "bold " : ""}${p}px Arial`, c.textAlign = "center", c.textBaseline = "middle", c.fillStyle = "black", c.fillText(C.name, a / 2, i / 2);
31
+ const d = c.getImageData(0, 0, a, i).data, h = [];
32
+ for (let R = 0; R < i; R += 1)
33
+ for (let E = 0; E < a; E += 1)
34
+ d[(R * a + E) * 4 + 3] > 1 && h.push([E, R]);
35
+ const [y, U, S, _] = yt(f, c);
36
+ return c.restore(), { w: a, h: i, wordMask: h, minX: y, minY: U, maxX: S, maxY: _ };
36
37
  }
37
- function _e({ mask: w, maskW: p, maskH: u, wx: f, wy: c, wordMask: m }) {
38
+ function Re({ mask: C, maskW: p, maskH: u, wx: f, wy: c, wordMask: m }) {
38
39
  for (let l = 0; l < m.length; l += 1) {
39
- const a = f + m[l][0], s = c + m[l][1];
40
- if (a < 0 || s < 0 || a >= p || s >= u || w[s * p + a]) return !1;
40
+ const a = f + m[l][0], i = c + m[l][1];
41
+ if (a < 0 || i < 0 || a >= p || i >= u || C[i * p + a]) return !1;
41
42
  }
42
43
  return !0;
43
44
  }
44
- function Re({ mask: w, maskW: p, maskH: u, wx: f, wy: c, wordMask: m }) {
45
+ function Xe({ mask: C, maskW: p, maskH: u, wx: f, wy: c, wordMask: m }) {
45
46
  for (let l = 0; l < m.length; l += 1) {
46
- const a = f + m[l][0], s = c + m[l][1];
47
- a >= 0 && s >= 0 && a < p && s < u && (w[s * p + a] = 1);
47
+ const a = f + m[l][0], i = c + m[l][1];
48
+ a >= 0 && i >= 0 && a < p && i < u && (C[i * p + a] = 1);
48
49
  }
49
50
  }
50
- function gt({ wordMask: w, w: p, h: u, dilation: f }) {
51
- const c = new Set(w.map(([l, a]) => `${l},${a}`)), m = new Set(c);
52
- for (let [l, a] of w)
53
- for (let s = -f; s <= f; s += 1)
54
- for (let k = -f; k <= f; k += 1) {
55
- if (s === 0 && k === 0) continue;
56
- const d = l + s, h = a + k;
51
+ function bt({ wordMask: C, w: p, h: u, dilation: f }) {
52
+ const c = new Set(C.map(([l, a]) => `${l},${a}`)), m = new Set(c);
53
+ for (let [l, a] of C)
54
+ for (let i = -f; i <= f; i += 1)
55
+ for (let x = -f; x <= f; x += 1) {
56
+ if (i === 0 && x === 0) continue;
57
+ const d = l + i, h = a + x;
57
58
  d >= 0 && d < p && h >= 0 && h < u && m.add(`${d},${h}`);
58
59
  }
59
60
  return Array.from(m).map((l) => l.split(",").map(Number));
60
61
  }
61
- function yt({
62
- words: w,
62
+ function wt({
63
+ words: C,
63
64
  proximity: p = 0,
64
65
  svg: u,
65
66
  strictPixelPadding: f
66
67
  }) {
67
- const { width: c, height: m } = u, l = Math.round(c), a = Math.round(m), s = 1, k = u.minFontSize, d = Math.min(u.maxFontSize, 100), h = w.map((S) => S.value), y = Math.min(...h), E = Math.max(...h), P = new Uint8Array(l * a), I = document.createElement("canvas"), _ = I.getContext("2d", { willReadFrequently: !0 });
68
- I.width = l, I.height = a;
69
- const Y = 6, re = 2, te = 2, e = 1, G = Math.floor(l / 2), oe = Math.floor(a / 2), ae = [...w].sort((S, z) => z.value - S.value), j = [];
70
- for (const S of ae) {
71
- let z = k;
72
- E !== y && (z = (S.value - y) / (E - y) * (d - k) + k), z = Math.max(k, Math.min(d, z));
73
- let R = !1, n = z;
74
- for (; !R && n >= s; ) {
75
- let { w: X, h: V, wordMask: C, minX: W, minY: q, maxX: Z, maxY: J } = Ie({
76
- word: S,
77
- fontSize: n,
68
+ const { width: c, height: m } = u, l = Math.round(c), a = Math.round(m), i = 1, x = u.minFontSize, d = Math.min(u.maxFontSize, 100), h = C.map((F) => F.value), y = Math.min(...h), U = Math.max(...h), S = new Uint8Array(l * a), _ = document.createElement("canvas"), R = _.getContext("2d", { willReadFrequently: !0 });
69
+ _.width = l, _.height = a;
70
+ const E = 6, re = 2, te = 2, e = 1, G = Math.floor(l / 2), oe = Math.floor(a / 2), ae = [...C].sort((F, z) => z.value - F.value), j = [];
71
+ for (const F of ae) {
72
+ let z = x;
73
+ U !== y && (z = (F.value - y) / (U - y) * (d - x) + x), z = Math.max(x, Math.min(d, z));
74
+ let X = !1, s = z;
75
+ for (; !X && s >= i; ) {
76
+ let { w: V, h: W, wordMask: $, minX: B, minY: q, maxX: Z, maxY: J } = _e({
77
+ word: F,
78
+ fontSize: s,
78
79
  pad: p,
79
- canvas: I,
80
- ctx: _,
80
+ canvas: _,
81
+ ctx: R,
81
82
  svg: u
82
83
  });
83
- f && (C = gt({ wordMask: C, w: X, h: V, dilation: 1 }));
84
- let O = 0, U = 0;
85
- for (; O < Math.max(l, a) && !R && U < 1e4; ) {
86
- for (let v = 0; v < 360; v += Y) {
87
- U += 1;
88
- const M = Math.round(G + O * Math.cos(v * Math.PI / 180) - X / 2), 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;
84
+ f && ($ = bt({ wordMask: $, w: V, h: W, dilation: 1 }));
85
+ let O = 0, D = 0;
86
+ for (; O < Math.max(l, a) && !X && D < 1e4; ) {
87
+ for (let v = 0; v < 360; v += E) {
88
+ D += 1;
89
+ const P = Math.round(G + O * Math.cos(v * Math.PI / 180) - V / 2), b = Math.round(oe + O * Math.sin(v * Math.PI / 180) - W / 2);
90
+ if (!(P < 0 || b < 0 || P + V > l || b + W > a) && Re({ mask: S, maskW: l, maskH: a, wx: P, wy: b, wordMask: $ })) {
91
+ j.push({ ...F, x: P - l / 2, y: b - a / 2, fontSize: s, width: V, height: W, angle: 0, minX: B, minY: q, maxX: Z, maxY: J }), Xe({ mask: S, maskW: l, maskH: a, wx: P, wy: b, wordMask: $ }), X = !0;
91
92
  break;
92
93
  }
93
94
  }
94
95
  O += re;
95
96
  }
96
- R || (n -= 1);
97
+ X || (s -= 1);
97
98
  }
98
- if (!R && n < s) {
99
- n = s;
100
- const { w: X, h: V, wordMask: C, minX: W, minY: q, maxX: Z, maxY: J } = Ie({
101
- word: S,
102
- fontSize: n,
99
+ if (!X && s < i) {
100
+ s = i;
101
+ const { w: V, h: W, wordMask: $, minX: B, minY: q, maxX: Z, maxY: J } = _e({
102
+ word: F,
103
+ fontSize: s,
103
104
  pad: p,
104
- canvas: I,
105
- ctx: _,
105
+ canvas: _,
106
+ ctx: R,
106
107
  svg: u
107
108
  });
108
- let O = 0, U = 0;
109
- for (; O < Math.max(l, a) && !R && U < 25e3; ) {
109
+ let O = 0, D = 0;
110
+ for (; O < Math.max(l, a) && !X && D < 25e3; ) {
110
111
  for (let v = 0; v < 360; v += te) {
111
- U += 1;
112
- const M = Math.round(G + O * Math.cos(v * Math.PI / 180) - X / 2), 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
+ D += 1;
113
+ const P = Math.round(G + O * Math.cos(v * Math.PI / 180) - V / 2), b = Math.round(oe + O * Math.sin(v * Math.PI / 180) - W / 2);
114
+ if (!(P < 0 || b < 0 || P + V > l || b + W > a) && Re({ mask: S, maskW: l, maskH: a, wx: P, wy: b, wordMask: $ })) {
115
+ j.push({ ...F, x: P - l / 2, y: b - a / 2, fontSize: s, width: V, height: W, angle: 0, minX: B, minY: q, maxX: Z, maxY: J }), Xe({ mask: S, maskW: l, maskH: a, wx: P, wy: b, wordMask: $ }), X = !0;
115
116
  break;
116
117
  }
117
118
  }
@@ -119,16 +120,16 @@ function yt({
119
120
  }
120
121
  }
121
122
  }
122
- return j.sort((S, z) => z.fontSize - S.fontSize);
123
+ return j.sort((F, z) => z.fontSize - F.fontSize);
123
124
  }
124
- const 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 = {
125
+ const kt = ["id"], Ct = ["xmlns", "viewBox"], xt = ["width", "height"], $t = ["transform"], Tt = ["x", "y", "width", "height", "onMouseover"], St = ["fill", "font-weight", "x", "y", "font-size", "transform"], Ft = {
125
126
  key: 4,
126
127
  class: "vue-data-ui-watermark"
127
- }, St = {
128
+ }, Mt = {
128
129
  key: 5,
129
130
  "data-dom-to-png-ignore": "",
130
131
  class: "reset-wrapper"
131
- }, Ft = ["innerHTML"], Mt = {
132
+ }, Pt = ["innerHTML"], zt = {
132
133
  __name: "vue-ui-word-cloud",
133
134
  props: {
134
135
  config: {
@@ -144,88 +145,88 @@ const bt = ["id"], wt = ["xmlns", "viewBox"], kt = ["width", "height"], Ct = ["t
144
145
  }
145
146
  }
146
147
  },
147
- setup(w, { expose: p }) {
148
- De((t) => ({
149
- "6e3cfc0f": t.slicerColor
148
+ setup(C, { expose: p }) {
149
+ Ue((t) => ({
150
+ "50cddfce": t.slicerColor
150
151
  }));
151
- const u = H(() => import("./vue-ui-accordion-P6eFHGQp.js")), f = H(() => import("./BaseIcon-DoDjTdD5.js")), c = H(() => import("./DataTable-BBbOgI-a.js")), m = H(() => import("./PackageVersion-D0VPY8-5.js")), l = H(() => import("./PenAndPaper-DhBJsnob.js")), a = H(() => import("./Tooltip-hVZUY_s5.js")), s = H(() => import("./UserOptions-Bdit7AWO.js")), { vue_ui_word_cloud: k } = qe(), d = w, h = se({
152
+ const u = H(() => import("./vue-ui-accordion-DgZK-qDz.js")), f = H(() => import("./BaseIcon-BmZ4MREl.js")), c = H(() => import("./DataTable-CgL0Rz0x.js")), m = H(() => import("./PackageVersion-CAkNkiIG.js")), l = H(() => import("./PenAndPaper-Cx1-5zdD.js")), a = H(() => import("./Tooltip-NwATo4ZJ.js")), i = H(() => import("./UserOptions-DAsRxxrf.js")), { vue_ui_word_cloud: x } = Ze(), d = C, h = se({
152
153
  get() {
153
154
  return !!d.dataset && d.dataset.length;
154
155
  },
155
156
  set(t) {
156
157
  return t;
157
158
  }
158
- }), 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({
159
- get: () => R(),
159
+ }), y = g(Ae()), U = g(0), S = g(null), _ = g(null), R = g(null), E = g(0), re = g(0), te = g(!1), e = se({
160
+ get: () => X(),
160
161
  set: (t) => t
161
162
  }), G = g(oe());
162
163
  function oe() {
163
- return typeof d.dataset == "string" ? Ze(d.dataset) : d.dataset.map((t, i) => ({
164
+ return typeof d.dataset == "string" ? Je(d.dataset) : d.dataset.map((t, n) => ({
164
165
  ...t,
165
- value: Je(t.value)
166
+ value: Ke(t.value)
166
167
  }));
167
168
  }
168
169
  be(() => d.dataset, () => {
169
170
  G.value = oe(), fe();
170
171
  });
171
- const { userOptionsVisible: ae, setUserOptionsVisibility: j, keepUserOptionState: S } = dt({ config: e.value }), { svgRef: z } = vt({ config: e.value.style.chart.title });
172
- function R() {
172
+ const { userOptionsVisible: ae, setUserOptionsVisibility: j, keepUserOptionState: F } = vt({ config: e.value }), { svgRef: z } = ht({ config: e.value.style.chart.title });
173
+ function X() {
173
174
  const t = Ne({
174
175
  userConfig: d.config,
175
- defaultConfig: k
176
+ defaultConfig: x
176
177
  });
177
178
  return t.theme ? {
178
179
  ...Ne({
179
- userConfig: Qe.vue_ui_word_cloud[t.theme] || d.config,
180
+ userConfig: et.vue_ui_word_cloud[t.theme] || d.config,
180
181
  defaultConfig: t
181
182
  }),
182
- customPalette: Ke[t.theme] || me
183
+ customPalette: Qe[t.theme] || me
183
184
  } : t;
184
185
  }
185
186
  be(() => d.config, (t) => {
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
+ e.value = X(), ae.value = !e.value.userOptions.showOnChartHover, q(), E.value += 1, re.value += 1, v.value.showTable = e.value.table.show, v.value.showTooltip = e.value.style.chart.tooltip.show;
187
188
  }, { deep: !0 });
188
- const n = g({
189
+ const s = g({
189
190
  width: e.value.style.chart.width,
190
191
  height: e.value.style.chart.height,
191
192
  maxFontSize: e.value.style.chart.words.maxFontSize,
192
193
  minFontSize: e.value.style.chart.words.minFontSize,
193
194
  bold: e.value.style.chart.words.bold
194
- }), X = ut(() => {
195
+ }), V = ct(() => {
195
196
  fe();
196
- }, 10), V = it(() => {
197
- const { width: t, height: i } = rt({
198
- chart: P.value,
199
- title: e.value.style.chart.title.text ? I.value : null,
200
- source: _.value
197
+ }, 10), W = rt(() => {
198
+ const { width: t, height: n } = ut({
199
+ chart: S.value,
200
+ title: e.value.style.chart.title.text ? _.value : null,
201
+ source: R.value
201
202
  });
202
203
  requestAnimationFrame(() => {
203
- n.value.width = t, n.value.height = i, ze(X);
204
+ s.value.width = t, s.value.height = n, Oe(V);
204
205
  });
205
- }), C = Fe(null), W = Fe(null);
206
- Ee(q);
206
+ }), $ = Me(null), B = Me(null);
207
+ De(q);
207
208
  function q() {
208
- et(d.dataset) ? Ae({
209
+ tt(d.dataset) ? Ie({
209
210
  componentName: "VueUiWordCloud",
210
211
  type: "dataset"
211
- }) : G.value.forEach((t, i) => {
212
- tt({
212
+ }) : G.value.forEach((t, n) => {
213
+ ot({
213
214
  datasetObject: t,
214
215
  requiredAttributes: ["name", "value"]
215
216
  }).forEach((o) => {
216
- h.value = !1, Ae({
217
+ h.value = !1, Ie({
217
218
  componentName: "VueUiWordCloud",
218
219
  type: "datasetSerieAttribute",
219
220
  property: o,
220
- index: i
221
+ index: n
221
222
  });
222
223
  });
223
- }), e.value.responsive && (C.value && (W.value && C.value.unobserve(W.value), C.value.disconnect()), C.value = new ResizeObserver(V), W.value = P.value.parentNode, C.value.observe(W.value));
224
+ }), e.value.responsive && ($.value && (B.value && $.value.unobserve(B.value), $.value.disconnect()), $.value = new ResizeObserver(W), B.value = S.value.parentNode, $.value.observe(B.value));
224
225
  }
225
- Ue(() => {
226
- C.value && (W.value && C.value.unobserve(W.value), C.value.disconnect());
226
+ Ge(() => {
227
+ $.value && (B.value && $.value.unobserve(B.value), $.value.disconnect());
227
228
  });
228
- const { isPrinting: Z, isImaging: J, generatePdf: O, generateImage: U } = ct({
229
+ const { isPrinting: Z, isImaging: J, generatePdf: O, generateImage: D } = dt({
229
230
  elementId: `wordCloud_${y.value}`,
230
231
  fileName: e.value.style.chart.title.text || "vue-ui-word-cloud",
231
232
  options: e.value.userOptions.print
@@ -233,32 +234,32 @@ const bt = ["id"], wt = ["xmlns", "viewBox"], kt = ["width", "height"], Ct = ["t
233
234
  showTable: e.value.table.show,
234
235
  showTooltip: e.value.style.chart.tooltip.show
235
236
  });
236
- function M(t, i, o = "Arial") {
237
- const T = document.createElement("canvas").getContext("2d");
238
- return T.font = `${i}px ${e.value.style.chart.words.bold ? "bold" : "normal"} ${o}`, {
239
- width: T.measureText(t).width + e.value.style.chart.words.proximity,
240
- height: i
237
+ function P(t, n, o = "Arial") {
238
+ const k = document.createElement("canvas").getContext("2d");
239
+ return k.font = `${n}px ${e.value.style.chart.words.bold ? "bold" : "normal"} ${o}`, {
240
+ width: k.measureText(t).width + e.value.style.chart.words.proximity,
241
+ height: n
241
242
  };
242
243
  }
243
244
  const b = g([]);
244
245
  be(() => d.dataset, fe, { immediate: !0 });
245
246
  function fe() {
246
- const t = [...G.value].map((T) => T.value), i = Math.max(...t), o = Math.min(...t), $ = [...G.value].map((T, D) => {
247
- let L = (T.value - o) / (i - o) * (n.value.maxFontSize - n.value.minFontSize) + n.value.minFontSize;
248
- L = isNaN(L) ? n.value.minFontSize : L;
249
- const Se = M(T.name, L);
247
+ const t = [...G.value].map((k) => k.value), n = Math.max(...t), o = Math.min(...t), w = [...G.value].map((k, I) => {
248
+ let L = (k.value - o) / (n - o) * (s.value.maxFontSize - s.value.minFontSize) + s.value.minFontSize;
249
+ L = isNaN(L) ? s.value.minFontSize : L;
250
+ const Fe = P(k.name, L);
250
251
  return {
251
- ...T,
252
- id: Oe(),
252
+ ...k,
253
+ id: Ae(),
253
254
  fontSize: L,
254
- width: Se.width,
255
- height: Se.height,
256
- color: e.value.style.chart.words.usePalette ? e.value.customPalette[D] || e.value.customPalette[D % e.value.customPalette.length] || me[D] || me[D % me.length] : e.value.style.chart.words.color
255
+ width: Fe.width,
256
+ height: Fe.height,
257
+ color: e.value.style.chart.words.usePalette ? e.value.customPalette[I] || e.value.customPalette[I % e.value.customPalette.length] || me[I] || me[I % me.length] : e.value.style.chart.words.color
257
258
  };
258
259
  });
259
- b.value = yt({
260
- words: $,
261
- svg: n.value,
260
+ b.value = wt({
261
+ words: w,
262
+ svg: s.value,
262
263
  proximity: e.value.style.chart.words.proximity,
263
264
  strictPixelPadding: e.value.strictPixelPadding
264
265
  });
@@ -267,27 +268,27 @@ const bt = ["id"], wt = ["xmlns", "viewBox"], kt = ["width", "height"], Ct = ["t
267
268
  const t = b.value.map((o) => ({
268
269
  name: o.name,
269
270
  color: o.color
270
- })), i = b.value.map((o) => o.value);
271
- return { head: t, body: i };
271
+ })), n = b.value.map((o) => o.value);
272
+ return { head: t, body: n };
272
273
  });
273
274
  function Ce(t = null) {
274
- ze(() => {
275
- const i = ue.value.head.map((T, D) => [[
276
- T.name
277
- ], [ue.value.body[D]]]), o = [[e.value.style.chart.title.text], [e.value.style.chart.title.subtitle.text], [[""], [e.value.table.columnNames.value]]].concat(i), $ = lt(o);
278
- t ? t($) : nt({ csvContent: $, title: e.value.style.chart.title.text || "vue-ui-word-cloud" });
275
+ Oe(() => {
276
+ const n = ue.value.head.map((k, I) => [[
277
+ k.name
278
+ ], [ue.value.body[I]]]), o = [[e.value.style.chart.title.text], [e.value.style.chart.title.subtitle.text], [[""], [e.value.table.columnNames.value]]].concat(n), w = nt(o);
279
+ t ? t(w) : st({ csvContent: w, title: e.value.style.chart.title.text || "vue-ui-word-cloud" });
279
280
  });
280
281
  }
281
282
  const ce = se(() => {
282
283
  const t = [
283
284
  e.value.table.columnNames.series,
284
285
  e.value.table.columnNames.value
285
- ], i = ue.value.head.map((T, D) => {
286
- const L = ot({ p: e.value.table.td.prefix, v: ue.value.body[D], s: e.value.table.td.suffix, r: e.value.table.td.roundingValue });
286
+ ], n = ue.value.head.map((k, I) => {
287
+ const L = at({ p: e.value.table.td.prefix, v: ue.value.body[I], s: e.value.table.td.suffix, r: e.value.table.td.roundingValue });
287
288
  return [
288
289
  {
289
- color: T.color,
290
- name: T.name
290
+ color: k.color,
291
+ name: k.name
291
292
  },
292
293
  L
293
294
  ];
@@ -310,49 +311,63 @@ const bt = ["id"], wt = ["xmlns", "viewBox"], kt = ["width", "height"], Ct = ["t
310
311
  e.value.table.columnNames.value
311
312
  ],
312
313
  head: t,
313
- body: i,
314
+ body: n,
314
315
  config: o
315
316
  };
316
317
  }), de = g(!1);
317
- function Xe(t) {
318
- de.value = t, E.value += 1;
318
+ function xe(t) {
319
+ de.value = t, U.value += 1;
319
320
  }
320
321
  function Ve() {
321
322
  return b.value;
322
323
  }
323
- function xe() {
324
+ function $e() {
324
325
  v.value.showTable = !v.value.showTable;
325
326
  }
326
- function $e() {
327
+ function Te() {
327
328
  v.value.showTooltip = !v.value.showTooltip;
328
329
  }
329
330
  const le = g(!1);
330
331
  function pe() {
331
332
  le.value = !le.value;
332
333
  }
333
- const We = se(() => !le.value && e.value.style.chart.zoom.show), { viewBox: ve, resetZoom: Te, isZoom: Be } = ht(z, {
334
+ const We = se(() => !le.value && e.value.style.chart.zoom.show), { viewBox: ve, resetZoom: Se, isZoom: Be } = mt(z, {
334
335
  x: 0,
335
336
  y: 0,
336
- width: n.value.width <= 0 ? 10 : n.value.width,
337
- height: n.value.height <= 0 ? 10 : n.value.height
337
+ width: s.value.width <= 0 ? 10 : s.value.width,
338
+ height: s.value.height <= 0 ? 10 : s.value.height
338
339
  }, 1, We);
340
+ async function Ye({ scale: t = 2 } = {}) {
341
+ if (!S.value) return;
342
+ const { width: n, height: o } = S.value.getBoundingClientRect(), w = n / o, { imageUri: k, base64: I } = await pt({ domElement: S.value, base64: !0, img: !0, scale: t });
343
+ return {
344
+ imageUri: k,
345
+ base64: I,
346
+ title: e.value.style.chart.title.text,
347
+ width: n,
348
+ height: o,
349
+ aspectRatio: w
350
+ };
351
+ }
339
352
  p({
340
353
  getData: Ve,
354
+ getImage: Ye,
341
355
  generateCsv: Ce,
342
356
  generatePdf: O,
343
- generateImage: U,
344
- toggleTable: xe,
345
- toggleTooltip: $e,
346
- toggleAnnotator: pe
357
+ generateImage: D,
358
+ toggleTable: $e,
359
+ toggleTooltip: Te,
360
+ toggleAnnotator: pe,
361
+ toggleFullscreen: xe
347
362
  });
348
363
  const K = g(null), ne = g(!1), ge = g(""), ye = g(null);
349
- function Ye(t) {
364
+ function Ee(t) {
350
365
  if (!v.value.showTooltip) return;
351
366
  K.value = t.id, ye.value = { datapoint: t, config: e.value };
352
- const i = e.value.style.chart.tooltip.customFormat;
353
- if (ne.value = !1, st(i))
367
+ const n = e.value.style.chart.tooltip.customFormat;
368
+ if (ne.value = !1, it(n))
354
369
  try {
355
- const o = i({
370
+ const o = n({
356
371
  datapoint: t,
357
372
  config: e.value
358
373
  });
@@ -366,31 +381,31 @@ const bt = ["id"], wt = ["xmlns", "viewBox"], kt = ["width", "height"], Ct = ["t
366
381
  }
367
382
  te.value = !0;
368
383
  }
369
- return (t, i) => (x(), N("div", {
384
+ return (t, n) => (T(), N("div", {
370
385
  class: "vue-ui-word-cloud",
371
386
  ref_key: "wordCloudChart",
372
- ref: P,
387
+ ref: S,
373
388
  id: `wordCloud_${y.value}`,
374
389
  style: he(`width: 100%; font-family:${e.value.style.fontFamily};background:${e.value.style.chart.backgroundColor};${e.value.responsive ? "height:100%" : ""}`),
375
- onMouseenter: i[3] || (i[3] = () => r(j)(!0)),
376
- onMouseleave: i[4] || (i[4] = () => r(j)(!1))
390
+ onMouseenter: n[3] || (n[3] = () => r(j)(!0)),
391
+ onMouseleave: n[4] || (n[4] = () => r(j)(!1))
377
392
  }, [
378
- e.value.userOptions.buttons.annotator ? (x(), ie(r(l), {
393
+ e.value.userOptions.buttons.annotator ? (T(), ie(r(l), {
379
394
  key: 0,
380
395
  svgRef: r(z),
381
396
  backgroundColor: e.value.style.chart.backgroundColor,
382
397
  color: e.value.style.chart.color,
383
398
  active: le.value,
384
399
  onClose: pe
385
- }, null, 8, ["svgRef", "backgroundColor", "color", "active"])) : B("", !0),
386
- e.value.style.chart.title.text ? (x(), N("div", {
400
+ }, null, 8, ["svgRef", "backgroundColor", "color", "active"])) : Y("", !0),
401
+ e.value.style.chart.title.text ? (T(), N("div", {
387
402
  key: 1,
388
403
  ref_key: "chartTitle",
389
- ref: I,
404
+ ref: _,
390
405
  style: "width:100%;background:transparent;padding-bottom:24px"
391
406
  }, [
392
- (x(), ie(mt, {
393
- key: `title_${Y.value}`,
407
+ (T(), ie(ft, {
408
+ key: `title_${E.value}`,
394
409
  config: {
395
410
  title: {
396
411
  ...e.value.style.chart.title
@@ -400,10 +415,10 @@ const bt = ["id"], wt = ["xmlns", "viewBox"], kt = ["width", "height"], Ct = ["t
400
415
  }
401
416
  }
402
417
  }, null, 8, ["config"]))
403
- ], 512)) : B("", !0),
404
- e.value.userOptions.show && h.value && (r(S) || r(ae)) ? (x(), ie(r(s), {
418
+ ], 512)) : Y("", !0),
419
+ e.value.userOptions.show && h.value && (r(F) || r(ae)) ? (T(), ie(r(i), {
405
420
  ref: "details",
406
- key: `user_option_${E.value}`,
421
+ key: `user_option_${U.value}`,
407
422
  backgroundColor: e.value.style.chart.backgroundColor,
408
423
  color: e.value.style.chart.color,
409
424
  isPrinting: r(Z),
@@ -416,101 +431,102 @@ const bt = ["id"], wt = ["xmlns", "viewBox"], kt = ["width", "height"], Ct = ["t
416
431
  hasFullscreen: e.value.userOptions.buttons.fullscreen,
417
432
  isFullscreen: de.value,
418
433
  titles: { ...e.value.userOptions.buttonTitles },
419
- chartElement: P.value,
434
+ chartElement: S.value,
420
435
  position: e.value.userOptions.position,
421
436
  hasTooltip: e.value.style.chart.tooltip.show && e.value.userOptions.buttons.tooltip,
422
437
  isTooltip: v.value.showTooltip,
423
438
  hasAnnotator: e.value.userOptions.buttons.annotator,
424
439
  isAnnotation: le.value,
425
440
  callbacks: e.value.userOptions.callbacks,
426
- onToggleFullscreen: Xe,
441
+ printScale: e.value.userOptions.print.scale,
442
+ onToggleFullscreen: xe,
427
443
  onGeneratePdf: r(O),
428
444
  onGenerateCsv: Ce,
429
- onGenerateImage: r(U),
430
- onToggleTable: xe,
431
- onToggleTooltip: $e,
445
+ onGenerateImage: r(D),
446
+ onToggleTable: $e,
447
+ onToggleTooltip: Te,
432
448
  onToggleAnnotator: pe,
433
449
  style: he({
434
- visibility: r(S) ? r(ae) ? "visible" : "hidden" : "visible"
450
+ visibility: r(F) ? r(ae) ? "visible" : "hidden" : "visible"
435
451
  })
436
- }, Ge({ _: 2 }, [
452
+ }, Le({ _: 2 }, [
437
453
  t.$slots.menuIcon ? {
438
454
  name: "menuIcon",
439
- fn: A(({ isOpen: o, color: $ }) => [
440
- F(t.$slots, "menuIcon", Q(ee({ isOpen: o, color: $ })), void 0, !0)
455
+ fn: A(({ isOpen: o, color: w }) => [
456
+ M(t.$slots, "menuIcon", Q(ee({ isOpen: o, color: w })), void 0, !0)
441
457
  ]),
442
458
  key: "0"
443
459
  } : void 0,
444
460
  t.$slots.optionPdf ? {
445
461
  name: "optionPdf",
446
462
  fn: A(() => [
447
- F(t.$slots, "optionPdf", {}, void 0, !0)
463
+ M(t.$slots, "optionPdf", {}, void 0, !0)
448
464
  ]),
449
465
  key: "1"
450
466
  } : void 0,
451
467
  t.$slots.optionCsv ? {
452
468
  name: "optionCsv",
453
469
  fn: A(() => [
454
- F(t.$slots, "optionCsv", {}, void 0, !0)
470
+ M(t.$slots, "optionCsv", {}, void 0, !0)
455
471
  ]),
456
472
  key: "2"
457
473
  } : void 0,
458
474
  t.$slots.optionImg ? {
459
475
  name: "optionImg",
460
476
  fn: A(() => [
461
- F(t.$slots, "optionImg", {}, void 0, !0)
477
+ M(t.$slots, "optionImg", {}, void 0, !0)
462
478
  ]),
463
479
  key: "3"
464
480
  } : void 0,
465
481
  t.$slots.optionTable ? {
466
482
  name: "optionTable",
467
483
  fn: A(() => [
468
- F(t.$slots, "optionTable", {}, void 0, !0)
484
+ M(t.$slots, "optionTable", {}, void 0, !0)
469
485
  ]),
470
486
  key: "4"
471
487
  } : void 0,
472
488
  t.$slots.optionFullscreen ? {
473
489
  name: "optionFullscreen",
474
- fn: A(({ toggleFullscreen: o, isFullscreen: $ }) => [
475
- F(t.$slots, "optionFullscreen", Q(ee({ toggleFullscreen: o, isFullscreen: $ })), void 0, !0)
490
+ fn: A(({ toggleFullscreen: o, isFullscreen: w }) => [
491
+ M(t.$slots, "optionFullscreen", Q(ee({ toggleFullscreen: o, isFullscreen: w })), void 0, !0)
476
492
  ]),
477
493
  key: "5"
478
494
  } : void 0,
479
495
  t.$slots.optionAnnotator ? {
480
496
  name: "optionAnnotator",
481
- fn: A(({ toggleAnnotator: o, isAnnotator: $ }) => [
482
- F(t.$slots, "optionAnnotator", Q(ee({ toggleAnnotator: o, isAnnotator: $ })), void 0, !0)
497
+ fn: A(({ toggleAnnotator: o, isAnnotator: w }) => [
498
+ M(t.$slots, "optionAnnotator", Q(ee({ toggleAnnotator: o, isAnnotator: w })), void 0, !0)
483
499
  ]),
484
500
  key: "6"
485
501
  } : 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
- h.value ? (x(), N("svg", {
502
+ ]), 1032, ["backgroundColor", "color", "isPrinting", "isImaging", "uid", "hasPdf", "hasXls", "hasImg", "hasTable", "hasFullscreen", "isFullscreen", "titles", "chartElement", "position", "hasTooltip", "isTooltip", "hasAnnotator", "isAnnotation", "callbacks", "printScale", "onGeneratePdf", "onGenerateImage", "style"])) : Y("", !0),
503
+ h.value ? (T(), N("svg", {
488
504
  key: 3,
489
505
  ref_key: "svgRef",
490
506
  ref: z,
491
- class: Me({ "vue-data-ui-fullscreen--on": de.value, "vue-data-ui-fulscreen--off": !de.value }),
492
- xmlns: r(at),
507
+ class: Pe({ "vue-data-ui-fullscreen--on": de.value, "vue-data-ui-fulscreen--off": !de.value }),
508
+ xmlns: r(lt),
493
509
  viewBox: `${r(ve).x} ${r(ve).y} ${r(ve).width} ${r(ve).height}`,
494
510
  style: "overflow:hidden;background:transparent;"
495
511
  }, [
496
512
  we(r(m)),
497
- t.$slots["chart-background"] ? (x(), N("foreignObject", {
513
+ t.$slots["chart-background"] ? (T(), N("foreignObject", {
498
514
  key: 0,
499
515
  x: 0,
500
516
  y: 0,
501
- width: n.value.width <= 0 ? 10 : n.value.width,
502
- height: n.value.height <= 0 ? 10 : n.value.height,
517
+ width: s.value.width <= 0 ? 10 : s.value.width,
518
+ height: s.value.height <= 0 ? 10 : s.value.height,
503
519
  style: {
504
520
  pointerEvents: "none"
505
521
  }
506
522
  }, [
507
- F(t.$slots, "chart-background", {}, void 0, !0)
508
- ], 8, kt)) : B("", !0),
523
+ M(t.$slots, "chart-background", {}, void 0, !0)
524
+ ], 8, xt)) : Y("", !0),
509
525
  ke("g", {
510
- transform: `translate(${(n.value.width <= 0 ? 10 : n.value.width) / 2}, ${(n.value.height <= 0 ? 10 : n.value.height) / 2})`
526
+ transform: `translate(${(s.value.width <= 0 ? 10 : s.value.width) / 2}, ${(s.value.height <= 0 ? 10 : s.value.height) / 2})`
511
527
  }, [
512
- (x(!0), N(Le, null, He(b.value, (o, $) => (x(), N("g", null, [
513
- o.minX !== void 0 ? (x(), N("rect", {
528
+ (T(!0), N(He, null, je(b.value, (o, w) => (T(), N("g", null, [
529
+ o.minX !== void 0 ? (T(), N("rect", {
514
530
  key: 0,
515
531
  x: o.x + o.minX,
516
532
  y: o.y + o.minY * 1.25,
@@ -518,35 +534,35 @@ const bt = ["id"], wt = ["xmlns", "viewBox"], kt = ["width", "height"], Ct = ["t
518
534
  height: o.maxY - o.minY,
519
535
  fill: "transparent",
520
536
  "pointer-events": "visiblePainted",
521
- onMouseover: (T) => Ye(o),
522
- onMouseleave: i[0] || (i[0] = (T) => {
537
+ onMouseover: (k) => Ee(o),
538
+ onMouseleave: n[0] || (n[0] = (k) => {
523
539
  K.value = null, te.value = !1;
524
540
  })
525
- }, null, 40, xt)) : B("", !0),
526
- (x(), N("text", {
541
+ }, null, 40, Tt)) : Y("", !0),
542
+ (T(), N("text", {
527
543
  fill: o.color,
528
544
  "font-weight": e.value.style.chart.words.bold ? "bold" : "normal",
529
- key: $,
545
+ key: w,
530
546
  x: o.x,
531
547
  y: o.y,
532
548
  "font-size": o.fontSize,
533
549
  transform: `translate(${o.width / 2}, ${o.height / 2})`,
534
- class: Me({ animated: e.value.useCssAnimation, "word-selected": K.value && K.value === o.id && v.value.showTooltip, "word-not-selected": K.value && K.value !== o.id && v.value.showTooltip }),
550
+ class: Pe({ animated: e.value.useCssAnimation, "word-selected": K.value && K.value === o.id && v.value.showTooltip, "word-not-selected": K.value && K.value !== o.id && v.value.showTooltip }),
535
551
  "text-anchor": "middle",
536
552
  "dominant-baseline": "central",
537
- style: he(`animation-delay:${$ * e.value.animationDelayMs}ms !important; pointer-events:none;`)
538
- }, Pe(o.name), 15, $t))
553
+ style: he(`animation-delay:${w * e.value.animationDelayMs}ms !important; pointer-events:none;`)
554
+ }, ze(o.name), 15, St))
539
555
  ]))), 256))
540
- ], 8, Ct),
541
- F(t.$slots, "svg", {
542
- svg: { height: n.value.height, width: n.value.width }
556
+ ], 8, $t),
557
+ M(t.$slots, "svg", {
558
+ svg: { height: s.value.height, width: s.value.width }
543
559
  }, void 0, !0)
544
- ], 10, wt)) : B("", !0),
545
- t.$slots.watermark ? (x(), N("div", Tt, [
546
- F(t.$slots, "watermark", Q(ee({ isPrinting: r(Z) || r(J) })), void 0, !0)
547
- ])) : B("", !0),
548
- r(Be) ? (x(), N("div", St, [
549
- F(t.$slots, "reset-action", { reset: r(Te) }, () => [
560
+ ], 10, Ct)) : Y("", !0),
561
+ t.$slots.watermark ? (T(), N("div", Ft, [
562
+ M(t.$slots, "watermark", Q(ee({ isPrinting: r(Z) || r(J) })), void 0, !0)
563
+ ])) : Y("", !0),
564
+ r(Be) ? (T(), N("div", Mt, [
565
+ M(t.$slots, "reset-action", { reset: r(Se) }, () => [
550
566
  ke("button", {
551
567
  "data-cy-reset": "",
552
568
  tabindex: "0",
@@ -555,7 +571,7 @@ const bt = ["id"], wt = ["xmlns", "viewBox"], kt = ["width", "height"], Ct = ["t
555
571
  style: he({
556
572
  background: e.value.style.chart.backgroundColor
557
573
  }),
558
- onClick: i[1] || (i[1] = (o) => r(Te)(!0))
574
+ onClick: n[1] || (n[1] = (o) => r(Se)(!0))
559
575
  }, [
560
576
  we(r(f), {
561
577
  name: "refresh",
@@ -563,7 +579,7 @@ const bt = ["id"], wt = ["xmlns", "viewBox"], kt = ["width", "height"], Ct = ["t
563
579
  }, null, 8, ["stroke"])
564
580
  ], 4)
565
581
  ], !0)
566
- ])) : B("", !0),
582
+ ])) : Y("", !0),
567
583
  we(r(a), {
568
584
  show: v.value.showTooltip && te.value,
569
585
  backgroundColor: e.value.style.chart.tooltip.backgroundColor,
@@ -575,27 +591,27 @@ const bt = ["id"], wt = ["xmlns", "viewBox"], kt = ["width", "height"], Ct = ["t
575
591
  backgroundOpacity: e.value.style.chart.tooltip.backgroundOpacity,
576
592
  position: e.value.style.chart.tooltip.position,
577
593
  offsetY: e.value.style.chart.tooltip.offsetY,
578
- parent: P.value,
594
+ parent: S.value,
579
595
  content: ge.value,
580
596
  isCustom: ne.value
581
597
  }, {
582
598
  "tooltip-before": A(() => [
583
- F(t.$slots, "tooltip-before", Q(ee({ ...ye.value })), void 0, !0)
599
+ M(t.$slots, "tooltip-before", Q(ee({ ...ye.value })), void 0, !0)
584
600
  ]),
585
601
  "tooltip-after": A(() => [
586
- F(t.$slots, "tooltip-after", Q(ee({ ...ye.value })), void 0, !0)
602
+ M(t.$slots, "tooltip-after", Q(ee({ ...ye.value })), void 0, !0)
587
603
  ]),
588
604
  _: 3
589
605
  }, 8, ["show", "backgroundColor", "color", "fontSize", "borderRadius", "borderColor", "borderWidth", "backgroundOpacity", "position", "offsetY", "parent", "content", "isCustom"]),
590
- t.$slots.source ? (x(), N("div", {
606
+ t.$slots.source ? (T(), N("div", {
591
607
  key: 6,
592
608
  ref_key: "source",
593
- ref: _,
609
+ ref: R,
594
610
  dir: "auto"
595
611
  }, [
596
- F(t.$slots, "source", {}, void 0, !0)
597
- ], 512)) : B("", !0),
598
- h.value ? (x(), ie(r(u), {
612
+ M(t.$slots, "source", {}, void 0, !0)
613
+ ], 512)) : Y("", !0),
614
+ h.value ? (T(), ie(r(u), {
599
615
  key: 7,
600
616
  hideDetails: "",
601
617
  config: {
@@ -612,32 +628,32 @@ const bt = ["id"], wt = ["xmlns", "viewBox"], kt = ["width", "height"], Ct = ["t
612
628
  }
613
629
  }, {
614
630
  content: A(() => [
615
- (x(), ie(r(c), {
631
+ (T(), ie(r(c), {
616
632
  key: `table_${re.value}`,
617
633
  colNames: ce.value.colNames,
618
634
  head: ce.value.head,
619
635
  body: ce.value.body,
620
636
  config: ce.value.config,
621
637
  title: `${e.value.style.chart.title.text}${e.value.style.chart.title.subtitle.text ? ` : ${e.value.style.chart.title.subtitle.text}` : ""}`,
622
- onClose: i[2] || (i[2] = (o) => v.value.showTable = !1)
638
+ onClose: n[2] || (n[2] = (o) => v.value.showTable = !1)
623
639
  }, {
624
640
  th: A(({ th: o }) => [
625
641
  ke("div", {
626
642
  innerHTML: o,
627
643
  style: { display: "flex", "align-items": "center" }
628
- }, null, 8, Ft)
644
+ }, null, 8, Pt)
629
645
  ]),
630
646
  td: A(({ td: o }) => [
631
- je(Pe(o.name || o), 1)
647
+ qe(ze(o.name || o), 1)
632
648
  ]),
633
649
  _: 1
634
650
  }, 8, ["colNames", "head", "body", "config", "title"]))
635
651
  ]),
636
652
  _: 1
637
- }, 8, ["config"])) : B("", !0)
638
- ], 44, bt));
653
+ }, 8, ["config"])) : Y("", !0)
654
+ ], 44, kt));
639
655
  }
640
- }, Wt = /* @__PURE__ */ ft(Mt, [["__scopeId", "data-v-be758984"]]);
656
+ }, Et = /* @__PURE__ */ gt(zt, [["__scopeId", "data-v-8c6de0fa"]]);
641
657
  export {
642
- Wt as default
658
+ Et as default
643
659
  };