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,82 +1,83 @@
1
- import { useCssVars as lt, computed as w, defineAsyncComponent as L, ref as b, watch as Ne, shallowRef as Me, onMounted as at, onBeforeUnmount as ot, watchEffect as st, createElementBlock as g, openBlock as y, unref as u, normalizeStyle as le, normalizeClass as Ee, createBlock as V, createCommentVNode as k, renderSlot as x, createSlots as nt, withCtx as _, normalizeProps as W, guardReactiveProps as X, createVNode as rt, Fragment as ae, renderList as ut, createElementVNode as C, mergeProps as Re, toDisplayString as Y, createTextVNode as it, nextTick as Ae } from "vue";
2
- import { u as ct, c as De, t as de, p as oe, a as vt, o as dt, e as ht, b as ft, d as yt, h as Le, f as he, X as mt, l as pt, F as Z, ag as bt, q as gt, r as kt, i as Ve } from "./index-DMqAxz7R.js";
3
- import { u as He } from "./useNestedProp-YgN3FV_8.js";
4
- import { u as xt } from "./usePrinter-COkTjv6C.js";
5
- import { u as wt } from "./useUserOptionState-BIvW1Kz7.js";
6
- import { u as Ct } from "./useChartAccessibility-9icAAmYg.js";
7
- import { t as zt, u as _t } from "./useResponsive-DfdjqQps.js";
8
- import $t from "./Title-D29apS4l.js";
9
- import { _ as Tt } from "./_plugin-vue_export-helper-CHgC5LLL.js";
10
- function Be(r, i = 0) {
11
- const h = r.reduce((a, { x: s, r: v }) => Math.min(a, s - v - i), 1 / 0), m = r.reduce((a, { x: s, r: v }) => Math.max(a, s + v + i), -1 / 0), c = r.reduce((a, { y: s, r: v }) => Math.min(a, s - v - i), 1 / 0), o = r.reduce((a, { y: s, r: v }) => Math.max(a, s + v + i), -1 / 0);
12
- return [h, c, m - h, o - c];
1
+ import { useCssVars as at, computed as z, defineAsyncComponent as V, ref as b, watch as Re, shallowRef as Ee, onMounted as ot, onBeforeUnmount as st, watchEffect as nt, createElementBlock as g, openBlock as y, unref as u, normalizeStyle as le, normalizeClass as Me, createBlock as B, createCommentVNode as k, renderSlot as x, createSlots as rt, withCtx as $, normalizeProps as W, guardReactiveProps as X, createVNode as ut, Fragment as ae, renderList as it, createElementVNode as _, mergeProps as Ae, toDisplayString as Y, createTextVNode as ct, nextTick as De } from "vue";
2
+ import { u as vt, c as Le, t as de, p as oe, a as dt, o as ht, e as ft, b as yt, d as mt, h as Ve, f as he, X as pt, l as bt, F as Z, aj as gt, q as kt, r as xt, i as Be } from "./index-BzfnuLnw.js";
3
+ import { u as He } from "./useNestedProp-DorElw91.js";
4
+ import { u as wt } from "./usePrinter-C9qkgv0r.js";
5
+ import { u as Ct } from "./useUserOptionState-BIvW1Kz7.js";
6
+ import { u as zt } from "./useChartAccessibility-9icAAmYg.js";
7
+ import { t as _t, u as $t } from "./useResponsive-DfdjqQps.js";
8
+ import Tt from "./Title-pVYRzQXY.js";
9
+ import Pt from "./img-ku4zevVD.js";
10
+ import { _ as St } from "./_plugin-vue_export-helper-CHgC5LLL.js";
11
+ function Ue(r, i = 0) {
12
+ const f = r.reduce((a, { x: n, r: v }) => Math.min(a, n - v - i), 1 / 0), m = r.reduce((a, { x: n, r: v }) => Math.max(a, n + v + i), -1 / 0), c = r.reduce((a, { y: n, r: v }) => Math.min(a, n - v - i), 1 / 0), o = r.reduce((a, { y: n, r: v }) => Math.max(a, n + v + i), -1 / 0);
13
+ return [f, c, m - f, o - c];
13
14
  }
14
- function Pt(r, i, h) {
15
- const m = r._, c = r.next._, o = m.r + c.r, a = (m.x * c.r + c.x * m.r) / o, s = (m.y * c.r + c.y * m.r) / o;
16
- return Math.max(Math.abs(a * h), Math.abs(s * i));
15
+ function Ot(r, i, f) {
16
+ const m = r._, c = r.next._, o = m.r + c.r, a = (m.x * c.r + c.x * m.r) / o, n = (m.y * c.r + c.y * m.r) / o;
17
+ return Math.max(Math.abs(a * f), Math.abs(n * i));
17
18
  }
18
- function Ue(r, i, h) {
19
- const m = Pt, c = r.length;
19
+ function je(r, i, f) {
20
+ const m = Ot, c = r.length;
20
21
  if (!c) return r;
21
- let o, a, s;
22
+ let o, a, n;
22
23
  if (o = r[0], o.x = 0, o.y = 0, !(c > 1) || (a = r[1], o.x = -a.r, a.x = o.r, a.y = 0, !(c > 2))) return r;
23
- Ge(a, o, s = r[2]), o = new se(o), a = new se(a), s = new se(s), o.next = s.previous = a, a.next = o.previous = s, s.next = a.previous = o;
24
+ Ge(a, o, n = r[2]), o = new se(o), a = new se(a), n = new se(n), o.next = n.previous = a, a.next = o.previous = n, n.next = a.previous = o;
24
25
  e: for (let v = 3; v < c; ++v) {
25
- Ge(o._, a._, s = r[v]), s = new se(s);
26
+ Ge(o._, a._, n = r[v]), n = new se(n);
26
27
  let p = a.next, T = o.previous, J = a._.r, N = o._.r;
27
28
  do
28
29
  if (J <= N) {
29
- if (je(p._, s._)) {
30
+ if (qe(p._, n._)) {
30
31
  a = p, o.next = a, a.previous = o, --v;
31
32
  continue e;
32
33
  }
33
34
  J += p._.r, p = p.next;
34
35
  } else {
35
- if (je(T._, s._)) {
36
+ if (qe(T._, n._)) {
36
37
  o = T, o.next = a, a.previous = o, --v;
37
38
  continue e;
38
39
  }
39
40
  N += T._.r, T = T.previous;
40
41
  }
41
42
  while (p !== T.next);
42
- s.previous = o, s.next = a, o.next = a.previous = a = s;
43
- let P = m(o, h, i), $;
44
- for (; (s = s.next) !== a; )
45
- ($ = m(s, h, i)) < P && (o = s, P = $);
43
+ n.previous = o, n.next = a, o.next = a.previous = a = n;
44
+ let P = m(o, f, i), w;
45
+ for (; (n = n.next) !== a; )
46
+ (w = m(n, f, i)) < P && (o = n, P = w);
46
47
  a = o.next;
47
48
  }
48
49
  return r;
49
50
  }
50
- function Ge(r, i, h) {
51
+ function Ge(r, i, f) {
51
52
  const m = r.x - i.x, c = r.y - i.y, o = m * m + c * c;
52
53
  if (o) {
53
- const a = (i.r + h.r) ** 2, s = (r.r + h.r) ** 2;
54
- if (a > s) {
55
- const v = (o + s - a) / (2 * o), p = Math.sqrt(Math.max(0, s / o - v * v));
56
- h.x = r.x - v * m - p * c, h.y = r.y - v * c + p * m;
54
+ const a = (i.r + f.r) ** 2, n = (r.r + f.r) ** 2;
55
+ if (a > n) {
56
+ const v = (o + n - a) / (2 * o), p = Math.sqrt(Math.max(0, n / o - v * v));
57
+ f.x = r.x - v * m - p * c, f.y = r.y - v * c + p * m;
57
58
  } else {
58
- const v = (o + a - s) / (2 * o), p = Math.sqrt(Math.max(0, a / o - v * v));
59
- h.x = i.x + v * m - p * c, h.y = i.y + v * c + p * m;
59
+ const v = (o + a - n) / (2 * o), p = Math.sqrt(Math.max(0, a / o - v * v));
60
+ f.x = i.x + v * m - p * c, f.y = i.y + v * c + p * m;
60
61
  }
61
62
  } else
62
- h.x = i.x + h.r, h.y = i.y;
63
+ f.x = i.x + f.r, f.y = i.y;
63
64
  }
64
- function je(r, i) {
65
- const h = r.r + i.r - 1e-6, m = i.x - r.x, c = i.y - r.y;
66
- return h > 0 && h * h > m * m + c * c;
65
+ function qe(r, i) {
66
+ const f = r.r + i.r - 1e-6, m = i.x - r.x, c = i.y - r.y;
67
+ return f > 0 && f * f > m * m + c * c;
67
68
  }
68
69
  class se {
69
70
  constructor(i) {
70
71
  this._ = i, this.next = null, this.previous = null;
71
72
  }
72
73
  }
73
- const Ot = ["id"], St = ["xmlns", "viewBox", "height", "width"], It = ["x", "y", "width", "height"], Ft = ["id"], Nt = ["stop-color"], Mt = ["stop-color"], Et = ["stop-color"], Rt = { key: 0 }, At = ["x", "y", "width", "height", "stroke", "stroke-width", "fill", "rx", "onMouseenter", "onClick"], Dt = ["x", "y", "width", "height", "stroke", "stroke-width", "fill", "rx"], Lt = ["opacity", "x", "y", "font-size", "fill", "font-weight"], Vt = ["opacity", "x", "y", "font-size", "fill", "font-weight"], Ht = ["cx", "cy", "r", "opacity", "stroke", "stroke-width", "fill"], Bt = {
74
+ const It = ["id"], Ft = ["xmlns", "viewBox", "height", "width"], Nt = ["x", "y", "width", "height"], Rt = ["id"], Et = ["stop-color"], Mt = ["stop-color"], At = ["stop-color"], Dt = { key: 0 }, Lt = ["x", "y", "width", "height", "stroke", "stroke-width", "fill", "rx", "onMouseenter", "onClick"], Vt = ["x", "y", "width", "height", "stroke", "stroke-width", "fill", "rx"], Bt = ["opacity", "x", "y", "font-size", "fill", "font-weight"], Ht = ["opacity", "x", "y", "font-size", "fill", "font-weight"], Ut = ["cx", "cy", "r", "opacity", "stroke", "stroke-width", "fill"], jt = {
74
75
  key: 0,
75
76
  style: { pointerEvents: "none" }
76
- }, Ut = { key: 1 }, Gt = ["opacity", "x", "y", "font-size", "fill", "font-weight"], jt = ["opacity", "x", "y", "font-size", "fill", "font-weight"], qt = {
77
+ }, Gt = { key: 1 }, qt = ["opacity", "x", "y", "font-size", "fill", "font-weight"], Wt = ["opacity", "x", "y", "font-size", "fill", "font-weight"], Xt = {
77
78
  key: 6,
78
79
  class: "vue-data-ui-watermark"
79
- }, Wt = ["innerHTML"], Xt = {
80
+ }, Yt = ["innerHTML"], Zt = {
80
81
  __name: "vue-ui-circle-pack",
81
82
  props: {
82
83
  config: {
@@ -93,19 +94,19 @@ const Ot = ["id"], St = ["xmlns", "viewBox", "height", "width"], It = ["x", "y",
93
94
  }
94
95
  },
95
96
  emits: ["selectDatapoint"],
96
- setup(r, { expose: i, emit: h }) {
97
- lt((t) => ({
98
- "3044b7fa": D.value,
99
- 76538273: ue.value
97
+ setup(r, { expose: i, emit: f }) {
98
+ at((t) => ({
99
+ "1096c176": L.value,
100
+ "329ac07e": ue.value
100
101
  }));
101
- const m = L(() => import("./vue-ui-accordion-P6eFHGQp.js")), c = L(() => import("./DataTable-BBbOgI-a.js")), o = L(() => import("./PackageVersion-D0VPY8-5.js")), a = L(() => import("./PenAndPaper-DhBJsnob.js")), s = L(() => import("./vue-ui-skeleton-CjN2ZdgT.js")), v = L(() => import("./UserOptions-Bdit7AWO.js")), p = r, T = h, { vue_ui_circle_pack: J } = ct(), N = w(() => !!p.dataset && p.dataset.length), P = b(De()), $ = b(null), fe = b(null), ye = b(null), me = b(0), pe = b(0), be = b(0), qe = b(null), e = w({
102
+ const m = V(() => import("./vue-ui-accordion-DgZK-qDz.js")), c = V(() => import("./DataTable-CgL0Rz0x.js")), o = V(() => import("./PackageVersion-CAkNkiIG.js")), a = V(() => import("./PenAndPaper-Cx1-5zdD.js")), n = V(() => import("./vue-ui-skeleton-Ch_XkFuP.js")), v = V(() => import("./UserOptions-DAsRxxrf.js")), p = r, T = f, { vue_ui_circle_pack: J } = vt(), N = z(() => !!p.dataset && p.dataset.length), P = b(Le()), w = b(null), fe = b(null), ye = b(null), me = b(0), pe = b(0), be = b(0), We = b(null), e = z({
102
103
  get: () => we(),
103
104
  set: (t) => t
104
- }), { svgRef: ge } = Ct({ config: e.value.style.chart.title }), {
105
+ }), { svgRef: ge } = zt({ config: e.value.style.chart.title }), {
105
106
  userOptionsVisible: ne,
106
107
  setUserOptionsVisibility: ke,
107
108
  keepUserOptionState: xe
108
- } = wt({ config: e.value });
109
+ } = Ct({ config: e.value });
109
110
  function we() {
110
111
  const t = He({
111
112
  userConfig: p.config,
@@ -113,94 +114,94 @@ const Ot = ["id"], St = ["xmlns", "viewBox", "height", "width"], It = ["x", "y",
113
114
  });
114
115
  return t.theme ? {
115
116
  ...He({
116
- userConfig: vt.vue_ui_circle_pack[t.theme] || p.config,
117
+ userConfig: dt.vue_ui_circle_pack[t.theme] || p.config,
117
118
  defaultConfig: t
118
119
  }),
119
120
  customPalette: de[t.theme] || oe
120
121
  } : t;
121
122
  }
122
- Ne(() => p.config, (t) => {
123
+ Re(() => p.config, (t) => {
123
124
  e.value = we(), ne.value = !e.value.userOptions.showOnChartHover, re(), me.value += 1, pe.value += 1, H.value.showTable = e.value.table.show;
124
125
  }, { deep: !0 });
125
- const { isPrinting: Ce, isImaging: ze, generatePdf: _e, generateImage: $e } = xt({
126
+ const { isPrinting: Ce, isImaging: ze, generatePdf: _e, generateImage: $e } = wt({
126
127
  elementId: `vue-ui-circle-pack_${P.value}`,
127
128
  fileName: e.value.style.chart.title.text || "vue-ui-circle-pack",
128
129
  options: e.value.userOptions.print
129
- }), We = w(() => e.value.userOptions.show && !e.value.style.chart.title.text), H = b({
130
+ }), Xe = z(() => e.value.userOptions.show && !e.value.style.chart.title.text), H = b({
130
131
  showTable: e.value.table.show
131
- }), O = Me(null), M = Me(null), E = b({ h: 10, w: 10 }), Te = b(0), R = b([0, 0, 100, 100]), K = b({ h: 0, w: 0 });
132
+ }), S = Ee(null), E = Ee(null), M = b({ h: 10, w: 10 }), Te = b(0), A = b([0, 0, 100, 100]), K = b({ h: 0, w: 0 });
132
133
  async function re() {
133
- dt(p.dataset) && ht({
134
+ ht(p.dataset) && ft({
134
135
  componentName: "VueUiCirclePack",
135
136
  type: "dataset"
136
- }), A.value = await Ue(Q.value), S.value = Be(A.value, 1).join(" "), K.value = Pe($.value);
137
- const t = zt(() => {
138
- const { width: n, height: l, heightTitle: f, heightNoTitle: z } = _t({
139
- chart: $.value,
137
+ }), D.value = await je(Q.value), O.value = Ue(D.value, 1).join(" "), K.value = Pe(w.value);
138
+ const t = _t(() => {
139
+ const { width: s, height: l, heightTitle: h, heightNoTitle: C } = $t({
140
+ chart: w.value,
140
141
  title: fe.value,
141
142
  noTitle: ye.value
142
- }), q = n || 10, ve = l && l > 10 ? l : 10;
143
- Te.value = e.value.style.chart.title.text ? f : z, requestAnimationFrame(() => {
144
- E.value.w = q, E.value.h = ve - Te.value, Ae(async () => {
145
- const et = Q.value.map((tt) => ({ ...tt }));
146
- A.value = await Ue(et, E.value.h, E.value.w), R.value = Be(A.value, 1), S.value = R.value.join(" "), K.value = Pe($.value);
143
+ }), R = s || 10, ve = l && l > 10 ? l : 10;
144
+ Te.value = e.value.style.chart.title.text ? h : C, requestAnimationFrame(() => {
145
+ M.value.w = R, M.value.h = ve - Te.value, De(async () => {
146
+ const tt = Q.value.map((lt) => ({ ...lt }));
147
+ D.value = await je(tt, M.value.h, M.value.w), A.value = Ue(D.value, 1), O.value = A.value.join(" "), K.value = Pe(w.value);
147
148
  });
148
149
  });
149
150
  });
150
- O.value && (M.value && O.value.unobserve(M.value), O.value.disconnect()), O.value = new ResizeObserver(t), M.value = $.value.parentNode, O.value.observe(M.value);
151
+ S.value && (E.value && S.value.unobserve(E.value), S.value.disconnect()), S.value = new ResizeObserver(t), E.value = w.value.parentNode, S.value.observe(E.value);
151
152
  }
152
- at(re), ot(() => {
153
- O.value && (M.value && O.value.unobserve(M.value), O.value.disconnect());
153
+ ot(re), st(() => {
154
+ S.value && (E.value && S.value.unobserve(E.value), S.value.disconnect());
154
155
  });
155
156
  function Pe(t) {
156
157
  if (!t || !t.parentElement)
157
158
  return console.warn("Component or parent element is missing."), { w: 0, h: 0 };
158
- const n = t.parentElement;
159
- if (n.offsetWidth > 0 && n.offsetHeight > 0)
160
- return { w: n.offsetWidth, h: n.offsetHeight };
161
- const l = window.getComputedStyle(n), f = l.width, z = l.height;
162
- return f !== "auto" && z !== "auto" && parseFloat(f) > 0 && parseFloat(z) > 0 ? { w: parseFloat(f), h: parseFloat(z) } : { w: 0, h: 0 };
159
+ const s = t.parentElement;
160
+ if (s.offsetWidth > 0 && s.offsetHeight > 0)
161
+ return { w: s.offsetWidth, h: s.offsetHeight };
162
+ const l = window.getComputedStyle(s), h = l.width, C = l.height;
163
+ return h !== "auto" && C !== "auto" && parseFloat(h) > 0 && parseFloat(C) > 0 ? { w: parseFloat(h), h: parseFloat(C) } : { w: 0, h: 0 };
163
164
  }
164
- Ne(() => p.dataset, async (t) => {
165
+ Re(() => p.dataset, async (t) => {
165
166
  await re();
166
167
  }, { deep: !0 });
167
- const Xe = w(() => ft(e.value.customPalette)), Q = w(() => p.dataset.map((t, n) => {
168
- const l = yt(t.color) || Xe.value[n] || de[e.value.theme || "default"][n % de[e.value.theme || "default"].length] || oe[n] || oe[n % oe.length];
168
+ const Ye = z(() => yt(e.value.customPalette)), Q = z(() => p.dataset.map((t, s) => {
169
+ const l = mt(t.color) || Ye.value[s] || de[e.value.theme || "default"][s % de[e.value.theme || "default"].length] || oe[s] || oe[s % oe.length];
169
170
  return {
170
171
  ...t,
171
172
  r: t.value,
172
- id: De(),
173
+ id: Le(),
173
174
  color: l
174
175
  };
175
- }).filter((t) => ![null, void 0, 1 / 0, -1 / 0].includes(t.value))), A = b([]), S = b("0 0 100 100"), B = w(() => Math.max(...A.value.map((t) => t.r)));
176
- function Oe(t, n) {
177
- return n / B.value * t;
176
+ }).filter((t) => ![null, void 0, 1 / 0, -1 / 0].includes(t.value))), D = b([]), O = b("0 0 100 100"), U = z(() => Math.max(...D.value.map((t) => t.r)));
177
+ function Se(t, s) {
178
+ return s / U.value * t;
178
179
  }
179
180
  const d = b(null);
180
- function Ye(t) {
181
+ function Ze(t) {
181
182
  e.value.style.chart.circles.zoom.show && (d.value = t);
182
183
  }
183
- const D = w(() => d.value ? d.value.r : 0), ue = w(() => F.value ? D.value : d.value ? d.value.r > R.value[3] / 6 * e.value.style.chart.circles.zoom.zoomRatio ? d.value.r : R.value[3] / 6 * e.value.style.chart.circles.zoom.zoomRatio : 0), I = b(0), Ze = w(() => ({
184
+ const L = z(() => d.value ? d.value.r : 0), ue = z(() => F.value ? L.value : d.value ? d.value.r > A.value[3] / 6 * e.value.style.chart.circles.zoom.zoomRatio ? d.value.r : A.value[3] / 6 * e.value.style.chart.circles.zoom.zoomRatio : 0), I = b(0), Je = z(() => ({
184
185
  pointerEvents: "none",
185
186
  opacity: I.value,
186
- filter: `drop-shadow(0px 0px 6px ${Le(d.value.color, e.value.style.chart.circles.zoom.shadowForce)})`
187
- })), U = b(D.value);
188
- st(() => {
189
- U.value = D.value, I.value = 0;
187
+ filter: `drop-shadow(0px 0px 6px ${Ve(d.value.color, e.value.style.chart.circles.zoom.shadowForce)})`
188
+ })), j = b(L.value);
189
+ nt(() => {
190
+ j.value = L.value, I.value = 0;
190
191
  let t = null;
191
- function n(l) {
192
+ function s(l) {
192
193
  t || (t = l);
193
- const f = (l - t) / e.value.style.chart.circles.zoom.animationFrameMs;
194
- f < 1 ? (U.value = D.value + (ue.value - D.value) * f, I.value = 0 + e.value.style.chart.circles.zoom.opacity * f, requestAnimationFrame(n)) : (U.value = ue.value, I.value = e.value.style.chart.circles.zoom.opacity);
194
+ const h = (l - t) / e.value.style.chart.circles.zoom.animationFrameMs;
195
+ h < 1 ? (j.value = L.value + (ue.value - L.value) * h, I.value = 0 + e.value.style.chart.circles.zoom.opacity * h, requestAnimationFrame(s)) : (j.value = ue.value, I.value = e.value.style.chart.circles.zoom.opacity);
195
196
  }
196
- requestAnimationFrame(n);
197
+ requestAnimationFrame(s);
197
198
  });
198
- const G = w(() => ({
199
- name: e.value.style.chart.circles.zoom.label.name.fontSize * R.value[3] / 300,
200
- value: e.value.style.chart.circles.zoom.label.value.fontSize * R.value[3] / 300
199
+ const G = z(() => ({
200
+ name: e.value.style.chart.circles.zoom.label.name.fontSize * A.value[3] / 300,
201
+ value: e.value.style.chart.circles.zoom.label.value.fontSize * A.value[3] / 300
201
202
  }));
202
203
  function ie(t) {
203
- return Ve(
204
+ return Be(
204
205
  e.value.style.chart.circles.labels.value.formatter,
205
206
  t.value,
206
207
  he({
@@ -211,8 +212,8 @@ const Ot = ["id"], St = ["xmlns", "viewBox", "height", "width"], It = ["x", "y",
211
212
  })
212
213
  );
213
214
  }
214
- function Je() {
215
- return Ve(
215
+ function Ke() {
216
+ return Be(
216
217
  e.value.style.chart.circles.zoom.label.value.formatter,
217
218
  d.value.value,
218
219
  he({
@@ -223,51 +224,51 @@ const Ot = ["id"], St = ["xmlns", "viewBox", "height", "width"], It = ["x", "y",
223
224
  })
224
225
  );
225
226
  }
226
- function Se(t) {
227
+ function Oe(t) {
227
228
  if (!t)
228
229
  return 0;
229
- const n = t.r / ie(t).length * (ie(t).length === 1 ? 1 : 2);
230
- return Math.min(t.r / 2.5, n);
230
+ const s = t.r / ie(t).length * (ie(t).length === 1 ? 1 : 2);
231
+ return Math.min(t.r / 2.5, s);
231
232
  }
232
- const j = b(!1);
233
- function Ke(t) {
234
- j.value = t, be.value += 1;
233
+ const q = b(!1);
234
+ function Ie(t) {
235
+ q.value = t, be.value += 1;
235
236
  }
236
237
  const F = b(!1);
237
238
  function ce() {
238
239
  F.value = !F.value;
239
240
  }
240
- const ee = w(() => {
241
+ const ee = z(() => {
241
242
  const t = Q.value.map((l) => ({
242
243
  name: l.name,
243
244
  value: l.value,
244
245
  color: l.color
245
- })).toSorted((l, f) => f.value - l.value), n = t.map((l) => l.value);
246
- return { head: t, body: n };
246
+ })).toSorted((l, h) => h.value - l.value), s = t.map((l) => l.value);
247
+ return { head: t, body: s };
247
248
  });
248
- function Ie(t = null) {
249
- Ae(() => {
250
- const n = ee.value.head.map((z, q) => [[
251
- z.name
252
- ], [ee.value.body[q]]]), l = [[e.value.style.chart.title.text], [e.value.style.chart.title.subtitle.text], [[""], [e.value.table.columnNames.value]]].concat(n), f = gt(l);
253
- t ? t(f) : kt({ csvContent: f, title: e.value.style.chart.title.text || "vue-ui-circle-pack" });
249
+ function Fe(t = null) {
250
+ De(() => {
251
+ const s = ee.value.head.map((C, R) => [[
252
+ C.name
253
+ ], [ee.value.body[R]]]), l = [[e.value.style.chart.title.text], [e.value.style.chart.title.subtitle.text], [[""], [e.value.table.columnNames.value]]].concat(s), h = kt(l);
254
+ t ? t(h) : xt({ csvContent: h, title: e.value.style.chart.title.text || "vue-ui-circle-pack" });
254
255
  });
255
256
  }
256
- const te = w(() => {
257
+ const te = z(() => {
257
258
  const t = [
258
259
  e.value.table.columnNames.datapoint,
259
260
  e.value.table.columnNames.value
260
- ], n = ee.value.head.map((z, q) => {
261
+ ], s = ee.value.head.map((C, R) => {
261
262
  const ve = he({
262
263
  p: e.value.style.chart.circles.labels.value.prefix,
263
- v: ee.value.body[q],
264
+ v: ee.value.body[R],
264
265
  s: e.value.style.chart.circles.labels.value.suffix,
265
266
  r: e.value.style.chart.circles.labels.value.rounding
266
267
  });
267
268
  return [
268
269
  {
269
- color: z.color,
270
- name: z.name
270
+ color: C.color,
271
+ name: C.name
271
272
  },
272
273
  ve
273
274
  ];
@@ -290,43 +291,57 @@ const Ot = ["id"], St = ["xmlns", "viewBox", "height", "width"], It = ["x", "y",
290
291
  e.value.table.columnNames.value
291
292
  ],
292
293
  head: t,
293
- body: n,
294
+ body: s,
294
295
  config: l
295
296
  };
296
297
  });
297
- function Fe() {
298
+ function Ne() {
298
299
  H.value.showTable = !H.value.showTable;
299
300
  }
300
301
  function Qe() {
301
302
  return Q.value;
302
303
  }
304
+ async function et({ scale: t = 2 } = {}) {
305
+ if (!w.value) return;
306
+ const { width: s, height: l } = w.value.getBoundingClientRect(), h = s / l, { imageUri: C, base64: R } = await Pt({ domElement: w.value, base64: !0, img: !0, scale: t });
307
+ return {
308
+ imageUri: C,
309
+ base64: R,
310
+ title: e.value.style.chart.title.text,
311
+ width: s,
312
+ height: l,
313
+ aspectRatio: h
314
+ };
315
+ }
303
316
  return i({
304
317
  getData: Qe,
305
- generateCsv: Ie,
318
+ getImage: et,
319
+ generateCsv: Fe,
306
320
  generatePdf: _e,
307
321
  generateImage: $e,
308
- toggleTable: Fe,
309
- toggleAnnotator: ce
310
- }), (t, n) => (y(), g("div", {
322
+ toggleTable: Ne,
323
+ toggleAnnotator: ce,
324
+ toggleFullscreen: Ie
325
+ }), (t, s) => (y(), g("div", {
311
326
  id: `vue-ui-circle-pack_${P.value}`,
312
- class: Ee(`vue-ui-circle-pack ${j.value ? "vue-data-ui-wrapper-fullscreen" : ""}`),
327
+ class: Me(`vue-ui-circle-pack ${q.value ? "vue-data-ui-wrapper-fullscreen" : ""}`),
313
328
  ref_key: "circlePackChart",
314
- ref: $,
329
+ ref: w,
315
330
  style: le(`font-family:${e.value.style.fontFamily};text-align:center;background:${e.value.style.chart.backgroundColor}; height: ${K.value.h}px; width:${K.value.w}px`),
316
- onMouseenter: n[2] || (n[2] = () => u(ke)(!0)),
317
- onMouseleave: n[3] || (n[3] = () => u(ke)(!1))
331
+ onMouseenter: s[2] || (s[2] = () => u(ke)(!0)),
332
+ onMouseleave: s[3] || (s[3] = () => u(ke)(!1))
318
333
  }, [
319
- e.value.userOptions.buttons.annotator ? (y(), V(u(a), {
334
+ e.value.userOptions.buttons.annotator ? (y(), B(u(a), {
320
335
  key: 0,
321
336
  svgRef: u(ge),
322
337
  backgroundColor: e.value.style.chart.backgroundColor,
323
338
  color: e.value.style.chart.color,
324
339
  active: F.value,
325
- scale: B.value / 100,
340
+ scale: U.value / 100,
326
341
  onClose: ce
327
342
  }, null, 8, ["svgRef", "backgroundColor", "color", "active", "scale"])) : k("", !0),
328
343
  x(t.$slots, "userConfig", {}, void 0, !0),
329
- We.value ? (y(), g("div", {
344
+ Xe.value ? (y(), g("div", {
330
345
  key: 1,
331
346
  ref_key: "noTitle",
332
347
  ref: ye,
@@ -339,7 +354,7 @@ const Ot = ["id"], St = ["xmlns", "viewBox", "height", "width"], It = ["x", "y",
339
354
  ref: fe,
340
355
  style: "width:100%;background:transparent;padding-bottom:12px"
341
356
  }, [
342
- (y(), V($t, {
357
+ (y(), B(Tt, {
343
358
  key: `title_${me.value}`,
344
359
  config: {
345
360
  title: {
@@ -353,7 +368,7 @@ const Ot = ["id"], St = ["xmlns", "viewBox", "height", "width"], It = ["x", "y",
353
368
  }
354
369
  }, null, 8, ["config"]))
355
370
  ], 512)) : k("", !0),
356
- e.value.userOptions.show && N.value && (u(xe) || u(ne)) ? (y(), V(u(v), {
371
+ e.value.userOptions.show && N.value && (u(xe) || u(ne)) ? (y(), B(u(v), {
357
372
  ref: "details",
358
373
  key: `user_option_${be.value}`,
359
374
  backgroundColor: e.value.style.chart.backgroundColor,
@@ -368,135 +383,136 @@ const Ot = ["id"], St = ["xmlns", "viewBox", "height", "width"], It = ["x", "y",
368
383
  hasXls: e.value.userOptions.buttons.csv,
369
384
  hasTable: e.value.userOptions.buttons.table,
370
385
  hasFullscreen: e.value.userOptions.buttons.fullscreen,
371
- isFullscreen: j.value,
372
- chartElement: $.value,
386
+ isFullscreen: q.value,
387
+ chartElement: w.value,
373
388
  position: e.value.userOptions.position,
374
389
  callbacks: e.value.userOptions.callbacks,
390
+ printScale: e.value.userOptions.print.scale,
375
391
  titles: { ...e.value.userOptions.buttonTitles },
376
392
  hasAnnotator: e.value.userOptions.buttons.annotator,
377
393
  isAnnotation: F.value,
378
- onToggleFullscreen: Ke,
394
+ onToggleFullscreen: Ie,
379
395
  onGeneratePdf: u(_e),
380
- onGenerateCsv: Ie,
396
+ onGenerateCsv: Fe,
381
397
  onGenerateImage: u($e),
382
- onToggleTable: Fe,
398
+ onToggleTable: Ne,
383
399
  onToggleAnnotator: ce,
384
400
  style: le({
385
401
  visibility: u(xe) ? u(ne) ? "visible" : "hidden" : "visible"
386
402
  })
387
- }, nt({ _: 2 }, [
403
+ }, rt({ _: 2 }, [
388
404
  t.$slots.menuIcon ? {
389
405
  name: "menuIcon",
390
- fn: _(({ isOpen: l, color: f }) => [
391
- x(t.$slots, "menuIcon", W(X({ isOpen: l, color: f })), void 0, !0)
406
+ fn: $(({ isOpen: l, color: h }) => [
407
+ x(t.$slots, "menuIcon", W(X({ isOpen: l, color: h })), void 0, !0)
392
408
  ]),
393
409
  key: "0"
394
410
  } : void 0,
395
411
  t.$slots.optionPdf ? {
396
412
  name: "optionPdf",
397
- fn: _(() => [
413
+ fn: $(() => [
398
414
  x(t.$slots, "optionPdf", {}, void 0, !0)
399
415
  ]),
400
416
  key: "1"
401
417
  } : void 0,
402
418
  t.$slots.optionCsv ? {
403
419
  name: "optionCsv",
404
- fn: _(() => [
420
+ fn: $(() => [
405
421
  x(t.$slots, "optionCsv", {}, void 0, !0)
406
422
  ]),
407
423
  key: "2"
408
424
  } : void 0,
409
425
  t.$slots.optionImg ? {
410
426
  name: "optionImg",
411
- fn: _(() => [
427
+ fn: $(() => [
412
428
  x(t.$slots, "optionImg", {}, void 0, !0)
413
429
  ]),
414
430
  key: "3"
415
431
  } : void 0,
416
432
  t.$slots.optionTable ? {
417
433
  name: "optionTable",
418
- fn: _(() => [
434
+ fn: $(() => [
419
435
  x(t.$slots, "optionTable", {}, void 0, !0)
420
436
  ]),
421
437
  key: "4"
422
438
  } : void 0,
423
439
  t.$slots.optionFullscreen ? {
424
440
  name: "optionFullscreen",
425
- fn: _(({ toggleFullscreen: l, isFullscreen: f }) => [
426
- x(t.$slots, "optionFullscreen", W(X({ toggleFullscreen: l, isFullscreen: f })), void 0, !0)
441
+ fn: $(({ toggleFullscreen: l, isFullscreen: h }) => [
442
+ x(t.$slots, "optionFullscreen", W(X({ toggleFullscreen: l, isFullscreen: h })), void 0, !0)
427
443
  ]),
428
444
  key: "5"
429
445
  } : void 0,
430
446
  t.$slots.optionAnnotator ? {
431
447
  name: "optionAnnotator",
432
- fn: _(({ toggleAnnotator: l, isAnnotator: f }) => [
433
- x(t.$slots, "optionAnnotator", W(X({ toggleAnnotator: l, isAnnotator: f })), void 0, !0)
448
+ fn: $(({ toggleAnnotator: l, isAnnotator: h }) => [
449
+ x(t.$slots, "optionAnnotator", W(X({ toggleAnnotator: l, isAnnotator: h })), void 0, !0)
434
450
  ]),
435
451
  key: "6"
436
452
  } : void 0
437
- ]), 1032, ["backgroundColor", "color", "isPrinting", "isImaging", "uid", "hasPdf", "hasImg", "hasXls", "hasTable", "hasFullscreen", "isFullscreen", "chartElement", "position", "callbacks", "titles", "hasAnnotator", "isAnnotation", "onGeneratePdf", "onGenerateImage", "style"])) : k("", !0),
453
+ ]), 1032, ["backgroundColor", "color", "isPrinting", "isImaging", "uid", "hasPdf", "hasImg", "hasXls", "hasTable", "hasFullscreen", "isFullscreen", "chartElement", "position", "callbacks", "printScale", "titles", "hasAnnotator", "isAnnotation", "onGeneratePdf", "onGenerateImage", "style"])) : k("", !0),
438
454
  N.value ? (y(), g("svg", {
439
455
  key: 4,
440
456
  ref_key: "svgRef",
441
457
  ref: ge,
442
- xmlns: u(mt),
443
- viewBox: S.value,
444
- height: E.value.h,
445
- width: E.value.w,
446
- class: Ee({ "vue-data-ui-fullscreen--on": j.value, "vue-data-ui-fulscreen--off": !j.value }),
458
+ xmlns: u(pt),
459
+ viewBox: O.value,
460
+ height: M.value.h,
461
+ width: M.value.w,
462
+ class: Me({ "vue-data-ui-fullscreen--on": q.value, "vue-data-ui-fulscreen--off": !q.value }),
447
463
  style: le(`max-width:100%;overflow:visible;background:transparent;color:${e.value.style.chart.color};background:${e.value.style.chart.backgroundColor};`)
448
464
  }, [
449
- rt(u(o)),
465
+ ut(u(o)),
450
466
  t.$slots["chart-background"] ? (y(), g("foreignObject", {
451
467
  key: 0,
452
- x: S.value.x,
453
- y: S.value.y,
454
- width: S.value.width,
455
- height: S.value.height,
468
+ x: O.value.x,
469
+ y: O.value.y,
470
+ width: O.value.width,
471
+ height: O.value.height,
456
472
  style: {
457
473
  pointerEvents: "none"
458
474
  }
459
475
  }, [
460
476
  x(t.$slots, "chart-background", {}, void 0, !0)
461
- ], 8, It)) : k("", !0),
462
- (y(!0), g(ae, null, ut(A.value, (l) => (y(), g(ae, null, [
463
- C("defs", null, [
464
- C("radialGradient", {
477
+ ], 8, Nt)) : k("", !0),
478
+ (y(!0), g(ae, null, it(D.value, (l) => (y(), g(ae, null, [
479
+ _("defs", null, [
480
+ _("radialGradient", {
465
481
  id: l.id,
466
482
  fy: "30%"
467
483
  }, [
468
- C("stop", {
484
+ _("stop", {
469
485
  offset: "10%",
470
- "stop-color": u(pt)(l.color, e.value.style.chart.circles.gradient.intensity / 100)
471
- }, null, 8, Nt),
472
- C("stop", {
486
+ "stop-color": u(bt)(l.color, e.value.style.chart.circles.gradient.intensity / 100)
487
+ }, null, 8, Et),
488
+ _("stop", {
473
489
  offset: "90%",
474
- "stop-color": u(Le)(l.color, 0.1)
490
+ "stop-color": u(Ve)(l.color, 0.1)
475
491
  }, null, 8, Mt),
476
- C("stop", {
492
+ _("stop", {
477
493
  offset: "100%",
478
494
  "stop-color": l.color
479
- }, null, 8, Et)
480
- ], 8, Ft)
495
+ }, null, 8, At)
496
+ ], 8, Rt)
481
497
  ]),
482
- t.$slots.pattern ? (y(), g("g", Rt, [
483
- C("defs", null, [
484
- x(t.$slots, "pattern", Re({ ref_for: !0 }, { ...l, patternId: `pattern_${P.value}_${l.id}` }), void 0, !0)
498
+ t.$slots.pattern ? (y(), g("g", Dt, [
499
+ _("defs", null, [
500
+ x(t.$slots, "pattern", Ae({ ref_for: !0 }, { ...l, patternId: `pattern_${P.value}_${l.id}` }), void 0, !0)
485
501
  ])
486
502
  ])) : k("", !0),
487
- C("rect", {
503
+ _("rect", {
488
504
  x: l.x - l.r,
489
505
  y: l.y - l.r,
490
506
  width: l.r * 2,
491
507
  height: l.r * 2,
492
508
  stroke: e.value.style.chart.circles.stroke,
493
- "stroke-width": e.value.style.chart.circles.strokeWidth * B.value / 100,
509
+ "stroke-width": e.value.style.chart.circles.strokeWidth * U.value / 100,
494
510
  fill: e.value.style.chart.circles.gradient.show ? `url(#${l.id})` : l.color,
495
511
  rx: l.r,
496
- onMouseenter: () => Ye(l),
497
- onMouseout: n[0] || (n[0] = (f) => d.value = null),
498
- onClick: (f) => T("selectDatapoint", l)
499
- }, null, 40, At),
512
+ onMouseenter: () => Ze(l),
513
+ onMouseout: s[0] || (s[0] = (h) => d.value = null),
514
+ onClick: (h) => T("selectDatapoint", l)
515
+ }, null, 40, Lt),
500
516
  t.$slots.pattern ? (y(), g("rect", {
501
517
  key: 1,
502
518
  x: l.x - l.r,
@@ -504,17 +520,17 @@ const Ot = ["id"], St = ["xmlns", "viewBox", "height", "width"], It = ["x", "y",
504
520
  width: l.r * 2,
505
521
  height: l.r * 2,
506
522
  stroke: e.value.style.chart.circles.stroke,
507
- "stroke-width": e.value.style.chart.circles.strokeWidth * B.value / 100,
523
+ "stroke-width": e.value.style.chart.circles.strokeWidth * U.value / 100,
508
524
  fill: `url(#pattern_${P.value}_${l.id})`,
509
525
  rx: l.r,
510
526
  style: {
511
527
  pointerEvents: "none"
512
528
  }
513
- }, null, 8, Dt)) : k("", !0),
514
- t.$slots["data-label"] ? x(t.$slots, "data-label", Re({
529
+ }, null, 8, Vt)) : k("", !0),
530
+ t.$slots["data-label"] ? x(t.$slots, "data-label", Ae({
515
531
  key: 2,
516
532
  ref_for: !0
517
- }, { ...l, createTSpans: u(bt), fontSize: { name: l.r / 3 * e.value.style.chart.circles.labels.name.fontSizeRatio, value: Se(l) * e.value.style.chart.circles.labels.value.fontSizeRatio }, color: e.value.style.chart.circles.labels.name.color ? e.value.style.chart.circles.labels.name.color : u(Z)(l.color) }), void 0, !0) : (y(), g(ae, { key: 3 }, [
533
+ }, { ...l, createTSpans: u(gt), fontSize: { name: l.r / 3 * e.value.style.chart.circles.labels.name.fontSizeRatio, value: Oe(l) * e.value.style.chart.circles.labels.value.fontSizeRatio }, color: e.value.style.chart.circles.labels.name.color ? e.value.style.chart.circles.labels.name.color : u(Z)(l.color) }), void 0, !0) : (y(), g(ae, { key: 3 }, [
518
534
  e.value.style.chart.circles.labels.name.show && l.name ? (y(), g("text", {
519
535
  key: 0,
520
536
  style: {
@@ -523,12 +539,12 @@ const Ot = ["id"], St = ["xmlns", "viewBox", "height", "width"], It = ["x", "y",
523
539
  },
524
540
  opacity: d.value && !F.value ? 0.2 : 1,
525
541
  x: l.x,
526
- y: l.y + Oe(l.r, e.value.style.chart.circles.labels.name.offsetY) - l.r / 10,
542
+ y: l.y + Se(l.r, e.value.style.chart.circles.labels.name.offsetY) - l.r / 10,
527
543
  "font-size": l.r / 3 * e.value.style.chart.circles.labels.name.fontSizeRatio,
528
544
  fill: e.value.style.chart.circles.labels.name.color ? e.value.style.chart.circles.labels.name.color : u(Z)(l.color),
529
545
  "font-weight": e.value.style.chart.circles.labels.name.bold ? "bold" : "normal",
530
546
  "text-anchor": "middle"
531
- }, Y(l.name), 9, Lt)) : k("", !0),
547
+ }, Y(l.name), 9, Bt)) : k("", !0),
532
548
  e.value.style.chart.circles.labels.value.show ? (y(), g("text", {
533
549
  key: 1,
534
550
  style: {
@@ -537,29 +553,29 @@ const Ot = ["id"], St = ["xmlns", "viewBox", "height", "width"], It = ["x", "y",
537
553
  },
538
554
  opacity: d.value && !F.value ? 0.2 : 1,
539
555
  x: l.x,
540
- y: l.y + Oe(l.r, e.value.style.chart.circles.labels.value.offsetY) + l.r / 2.5,
541
- "font-size": Se(l) * e.value.style.chart.circles.labels.value.fontSizeRatio,
556
+ y: l.y + Se(l.r, e.value.style.chart.circles.labels.value.offsetY) + l.r / 2.5,
557
+ "font-size": Oe(l) * e.value.style.chart.circles.labels.value.fontSizeRatio,
542
558
  fill: e.value.style.chart.circles.labels.value.color ? e.value.style.chart.circles.labels.value.color : u(Z)(l.color),
543
559
  "font-weight": e.value.style.chart.circles.labels.value.bold ? "bold" : "normal",
544
560
  "text-anchor": "middle"
545
- }, Y(ie(l)), 9, Vt)) : k("", !0)
561
+ }, Y(ie(l)), 9, Ht)) : k("", !0)
546
562
  ], 64))
547
563
  ], 64))), 256)),
548
564
  d.value && e.value.style.chart.circles.zoom.show && !F.value ? (y(), g(ae, { key: 1 }, [
549
- C("circle", {
550
- style: le(Ze.value),
565
+ _("circle", {
566
+ style: le(Je.value),
551
567
  cx: d.value.x,
552
568
  cy: d.value.y,
553
- r: U.value,
569
+ r: j.value,
554
570
  opacity: I.value,
555
571
  stroke: e.value.style.chart.circles.stroke,
556
- "stroke-width": e.value.style.chart.circles.strokeWidth * B.value / 100,
572
+ "stroke-width": e.value.style.chart.circles.strokeWidth * U.value / 100,
557
573
  fill: e.value.style.chart.circles.gradient.show ? `url(#${d.value.id})` : d.value.color
558
- }, null, 12, Ht),
559
- t.$slots["zoom-label"] ? (y(), g("g", Bt, [
560
- x(t.$slots, "zoom-label", W(X({ ...d.value, zoomOpacity: I.value, currentRadius: U.value, fontSize: G.value })), void 0, !0)
561
- ])) : (y(), g("g", Ut, [
562
- C("text", {
574
+ }, null, 12, Ut),
575
+ t.$slots["zoom-label"] ? (y(), g("g", jt, [
576
+ x(t.$slots, "zoom-label", W(X({ ...d.value, zoomOpacity: I.value, currentRadius: j.value, fontSize: G.value })), void 0, !0)
577
+ ])) : (y(), g("g", Gt, [
578
+ _("text", {
563
579
  style: {
564
580
  pointerEvents: "none"
565
581
  },
@@ -570,8 +586,8 @@ const Ot = ["id"], St = ["xmlns", "viewBox", "height", "width"], It = ["x", "y",
570
586
  "font-size": G.value.name,
571
587
  fill: e.value.style.chart.circles.zoom.label.name.color ? e.value.style.chart.circles.zoom.label.name.color : u(Z)(d.value.color),
572
588
  "font-weight": e.value.style.chart.circles.zoom.label.name.bold ? "bold" : "normal"
573
- }, Y(d.value.name), 9, Gt),
574
- C("text", {
589
+ }, Y(d.value.name), 9, qt),
590
+ _("text", {
575
591
  style: {
576
592
  pointerEvents: "none"
577
593
  },
@@ -582,14 +598,14 @@ const Ot = ["id"], St = ["xmlns", "viewBox", "height", "width"], It = ["x", "y",
582
598
  "font-size": G.value.value,
583
599
  fill: e.value.style.chart.circles.zoom.label.value.color ? e.value.style.chart.circles.zoom.label.value.color : u(Z)(d.value.color),
584
600
  "font-weight": e.value.style.chart.circles.zoom.label.value.bold ? "bold" : "normal"
585
- }, Y(Je()), 9, jt)
601
+ }, Y(Ke()), 9, Wt)
586
602
  ]))
587
603
  ], 64)) : k("", !0),
588
604
  x(t.$slots, "svg", {
589
- svg: { ...S.value }
605
+ svg: { ...O.value }
590
606
  }, void 0, !0)
591
- ], 14, St)) : k("", !0),
592
- N.value ? k("", !0) : (y(), V(u(s), {
607
+ ], 14, Ft)) : k("", !0),
608
+ N.value ? k("", !0) : (y(), B(u(n), {
593
609
  key: 5,
594
610
  config: {
595
611
  type: "circlePack",
@@ -598,18 +614,18 @@ const Ot = ["id"], St = ["xmlns", "viewBox", "height", "width"], It = ["x", "y",
598
614
  }
599
615
  }
600
616
  })),
601
- t.$slots.watermark ? (y(), g("div", qt, [
617
+ t.$slots.watermark ? (y(), g("div", Xt, [
602
618
  x(t.$slots, "watermark", W(X({ isPrinting: u(Ce) || u(ze) })), void 0, !0)
603
619
  ])) : k("", !0),
604
620
  t.$slots.source ? (y(), g("div", {
605
621
  key: 7,
606
622
  ref_key: "source",
607
- ref: qe,
623
+ ref: We,
608
624
  dir: "auto"
609
625
  }, [
610
626
  x(t.$slots, "source", {}, void 0, !0)
611
627
  ], 512)) : k("", !0),
612
- N.value ? (y(), V(u(m), {
628
+ N.value ? (y(), B(u(m), {
613
629
  key: 8,
614
630
  hideDetails: "",
615
631
  config: {
@@ -625,33 +641,33 @@ const Ot = ["id"], St = ["xmlns", "viewBox", "height", "width"], It = ["x", "y",
625
641
  }
626
642
  }
627
643
  }, {
628
- content: _(() => [
629
- (y(), V(u(c), {
644
+ content: $(() => [
645
+ (y(), B(u(c), {
630
646
  key: `table_${pe.value}`,
631
647
  colNames: te.value.colNames,
632
648
  head: te.value.head,
633
649
  body: te.value.body,
634
650
  config: te.value.config,
635
651
  title: `${e.value.style.chart.title.text}${e.value.style.chart.title.subtitle.text ? ` : ${e.value.style.chart.title.subtitle.text}` : ""}`,
636
- onClose: n[1] || (n[1] = (l) => H.value.showTable = !1)
652
+ onClose: s[1] || (s[1] = (l) => H.value.showTable = !1)
637
653
  }, {
638
- th: _(({ th: l }) => [
639
- C("div", {
654
+ th: $(({ th: l }) => [
655
+ _("div", {
640
656
  innerHTML: l,
641
657
  style: { display: "flex", "align-items": "center" }
642
- }, null, 8, Wt)
658
+ }, null, 8, Yt)
643
659
  ]),
644
- td: _(({ td: l }) => [
645
- it(Y(l.name || l), 1)
660
+ td: $(({ td: l }) => [
661
+ ct(Y(l.name || l), 1)
646
662
  ]),
647
663
  _: 1
648
664
  }, 8, ["colNames", "head", "body", "config", "title"]))
649
665
  ]),
650
666
  _: 1
651
667
  }, 8, ["config"])) : k("", !0)
652
- ], 46, Ot));
668
+ ], 46, It));
653
669
  }
654
- }, ol = /* @__PURE__ */ Tt(Xt, [["__scopeId", "data-v-b02f724d"]]);
670
+ }, rl = /* @__PURE__ */ St(Zt, [["__scopeId", "data-v-49649767"]]);
655
671
  export {
656
- ol as default
672
+ rl as default
657
673
  };