vue-data-ui 2.16.5 → 2.17.0

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