vue-data-ui 2.16.6 → 2.17.1

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 (94) hide show
  1. package/README.md +84 -53
  2. package/dist/{Arrow-DCqxVwey.js → Arrow-BDCVJzQB.js} +1 -1
  3. package/dist/{BaseDraggableDialog-6DIKXIBU.js → BaseDraggableDialog-BvuWrldK.js} +2 -2
  4. package/dist/{BaseIcon-Bn996RXm.js → BaseIcon-D9Tz8ARD.js} +1 -1
  5. package/dist/{ColorPicker-OFfLkKNb.js → ColorPicker-wGf46G2G.js} +2 -2
  6. package/dist/{DataTable-CHBLjKtZ.js → DataTable-Dt-TIOyY.js} +2 -2
  7. package/dist/{Legend-nBXoxXJH.js → Legend-3LNqqLDg.js} +2 -2
  8. package/dist/{NonSvgPenAndPaper-Cls2idJS.js → NonSvgPenAndPaper-iDdMuUEo.js} +3 -3
  9. package/dist/{PackageVersion-Bg_9KCU-.js → PackageVersion-C-4Ee8BQ.js} +1 -1
  10. package/dist/{PenAndPaper-BPTpbnay.js → PenAndPaper-Cde-wJ3N.js} +32 -32
  11. package/dist/{Shape-Bnf512BA.js → Shape-C75836Jl.js} +1 -1
  12. package/dist/{Slicer-BrqtJG2E.js → Slicer-CpSu7plp.js} +2 -2
  13. package/dist/{SparkTooltip-C-rLATAw.js → SparkTooltip-B_GXa2tb.js} +1 -1
  14. package/dist/{Title-Gi81VwUM.js → Title-DpERl1yr.js} +1 -1
  15. package/dist/{Tooltip-CJxVw7-T.js → Tooltip-DA0bYKFG.js} +1 -1
  16. package/dist/{UserOptions-CBEK6_jo.js → UserOptions-DTEJ3UM_.js} +2 -2
  17. package/dist/{dom-to-png-CRHNL8VU.js → dom-to-png-DWDGYXFL.js} +1 -1
  18. package/dist/{img-BgOg8opa.js → img-utitT2Gd.js} +1 -1
  19. package/dist/{index-DvIXJm6t.js → index-CobsZUkv.js} +22 -8
  20. package/dist/{pdf-DhTxBrbJ.js → pdf-DWZ8IB56.js} +1 -1
  21. package/dist/style.css +1 -1
  22. package/dist/types/vue-data-ui.d.cts +999 -160
  23. package/dist/types/vue-data-ui.d.ts +999 -160
  24. package/dist/{useNestedProp-DrYHm61t.js → useNestedProp-BwL5wmVa.js} +1 -1
  25. package/dist/{usePrinter-CWnXbGMb.js → usePrinter-DPh6U_Qk.js} +2 -2
  26. package/dist/vue-data-ui-D7ZgRDQ_.js +312 -0
  27. package/dist/vue-data-ui.js +1 -1
  28. package/dist/{vue-ui-3d-bar-CtlB4p7i.js → vue-ui-3d-bar-ORUAjkg7.js} +246 -231
  29. package/dist/{vue-ui-accordion-D55kCO5G.js → vue-ui-accordion-UewqY6OI.js} +3 -3
  30. package/dist/{vue-ui-age-pyramid-DSshyUn-.js → vue-ui-age-pyramid-Yl4aRpNc.js} +225 -210
  31. package/dist/{vue-ui-annotator-DQSMv_k2.js → vue-ui-annotator-B1gqiBqq.js} +2 -2
  32. package/dist/{vue-ui-bullet-FeScjj7q.js → vue-ui-bullet-C307lCPt.js} +168 -153
  33. package/dist/{vue-ui-candlestick-Drupgyoi.js → vue-ui-candlestick-BE6PcEdh.js} +218 -203
  34. package/dist/{vue-ui-carousel-table-BTZQRZfO.js → vue-ui-carousel-table-Cpvjr677.js} +4 -4
  35. package/dist/{vue-ui-chestnut-DLWjPwRL.js → vue-ui-chestnut-CUw74AgC.js} +412 -397
  36. package/dist/{vue-ui-chord-BgLbFBT9.js → vue-ui-chord-CCPGeAiY.js} +202 -187
  37. package/dist/{vue-ui-circle-pack-VXcRh2gy.js → vue-ui-circle-pack-dfyPiQmy.js} +222 -207
  38. package/dist/{vue-ui-cursor-DWmfnM25.js → vue-ui-cursor-C2zmfeoD.js} +2 -2
  39. package/dist/{vue-ui-dashboard-CGIocEHj.js → vue-ui-dashboard-CotAqRbX.js} +62 -62
  40. package/dist/{vue-ui-digits-BgQch3Fc.js → vue-ui-digits-7qJFCuoI.js} +2 -2
  41. package/dist/{vue-ui-donut-B59bCV5_.js → vue-ui-donut-D41WeqQU.js} +420 -411
  42. package/dist/{vue-ui-donut-evolution-CI8qBIQd.js → vue-ui-donut-evolution-Deg0dsYg.js} +352 -340
  43. package/dist/{vue-ui-dumbbell-CXv7sk88.js → vue-ui-dumbbell-DDwNoTPG.js} +214 -199
  44. package/dist/{vue-ui-flow-DxF0ELtv.js → vue-ui-flow-6oR7IMyi.js} +215 -200
  45. package/dist/{vue-ui-funnel-Bco8rqF8.js → vue-ui-funnel-BnXtOJmh.js} +212 -197
  46. package/dist/{vue-ui-galaxy-CaPJwwOj.js → vue-ui-galaxy-75XC8SpV.js} +213 -201
  47. package/dist/{vue-ui-gauge-D7arhDmb.js → vue-ui-gauge-w31j915C.js} +218 -203
  48. package/dist/{vue-ui-gizmo-Dwli-Mip.js → vue-ui-gizmo-bZqk6oZS.js} +3 -3
  49. package/dist/{vue-ui-heatmap-Cyn-ahGO.js → vue-ui-heatmap-BfU62tMW.js} +242 -223
  50. package/dist/{vue-ui-history-plot-C2AEToqx.js → vue-ui-history-plot-CFfco-Yj.js} +267 -252
  51. package/dist/{vue-ui-kpi-DKDibSdl.js → vue-ui-kpi-DaJ1U3wf.js} +3 -3
  52. package/dist/{vue-ui-mini-loader-B8OVutUx.js → vue-ui-mini-loader-CF_2jAI8.js} +2 -2
  53. package/dist/{vue-ui-molecule-BVSrqIGw.js → vue-ui-molecule-Tdk3Gd8M.js} +207 -192
  54. package/dist/{vue-ui-mood-radar-DvlyS3RN.js → vue-ui-mood-radar-Dg5wS7W5.js} +204 -189
  55. package/dist/{vue-ui-nested-donuts-D9ssSus6.js → vue-ui-nested-donuts-CpRe0sQB.js} +248 -240
  56. package/dist/{vue-ui-onion-Buu4VX3u.js → vue-ui-onion-B8o4ft2v.js} +184 -169
  57. package/dist/{vue-ui-parallel-coordinate-plot-DFLUvhxD.js → vue-ui-parallel-coordinate-plot-zW-CNqWC.js} +192 -177
  58. package/dist/{vue-ui-quadrant-BMC7NBGd.js → vue-ui-quadrant-DiRtZ16w.js} +259 -244
  59. package/dist/{vue-ui-quick-chart-DB9RKUkb.js → vue-ui-quick-chart-BRlYC_yT.js} +324 -309
  60. package/dist/{vue-ui-radar-68NMPxxQ.js → vue-ui-radar-DKgX1Ibx.js} +195 -180
  61. package/dist/{vue-ui-rating-swH9kRr3.js → vue-ui-rating-DlklKr-X.js} +2 -2
  62. package/dist/{vue-ui-relation-circle-CT-EdSjO.js → vue-ui-relation-circle-MHiAp8dC.js} +186 -171
  63. package/dist/{vue-ui-ridgeline-DftROPaX.js → vue-ui-ridgeline-DA8verAe.js} +227 -212
  64. package/dist/{vue-ui-rings-M-9dPI5D.js → vue-ui-rings-Dh6lFqun.js} +214 -202
  65. package/dist/{vue-ui-scatter-CsGhaFJh.js → vue-ui-scatter-CLC5sTOi.js} +270 -256
  66. package/dist/{vue-ui-skeleton-BAOt2neL.js → vue-ui-skeleton-8s4xts8z.js} +3 -3
  67. package/dist/{vue-ui-smiley-7_kIgPg-.js → vue-ui-smiley-utuzw8uI.js} +2 -2
  68. package/dist/{vue-ui-spark-trend-DHlQQpwz.js → vue-ui-spark-trend-BODEqGRr.js} +3 -3
  69. package/dist/{vue-ui-sparkbar-BnHhzuKf.js → vue-ui-sparkbar-B8MB-kn9.js} +3 -3
  70. package/dist/{vue-ui-sparkgauge-WtfkCK8g.js → vue-ui-sparkgauge-CuD7kTS3.js} +3 -3
  71. package/dist/{vue-ui-sparkhistogram-B2u4XLVd.js → vue-ui-sparkhistogram-BYJszvna.js} +4 -4
  72. package/dist/{vue-ui-sparkline-DKIyUlSm.js → vue-ui-sparkline-D77GyWzG.js} +3 -3
  73. package/dist/{vue-ui-sparkstackbar-BLGz2qIb.js → vue-ui-sparkstackbar-DNb1yD64.js} +3 -3
  74. package/dist/{vue-ui-stackbar-BDpMsTYe.js → vue-ui-stackbar-C6rjCYDD.js} +251 -236
  75. package/dist/{vue-ui-strip-plot-5qDcYPnR.js → vue-ui-strip-plot-B6cYojHQ.js} +239 -224
  76. package/dist/{vue-ui-table-Bg5HIQ3O.js → vue-ui-table-IC7SmWVd.js} +3 -3
  77. package/dist/{vue-ui-table-heatmap-DmjNy1q1.js → vue-ui-table-heatmap-DHFpJMpA.js} +5 -5
  78. package/dist/{vue-ui-table-sparkline-CnkJkBk5.js → vue-ui-table-sparkline-D7wz-sCj.js} +4 -4
  79. package/dist/{vue-ui-thermometer-RlD-9mJf.js → vue-ui-thermometer-D-oiVT3n.js} +168 -153
  80. package/dist/{vue-ui-timer-Bes74INL.js → vue-ui-timer-C9jVyX5l.js} +5 -5
  81. package/dist/vue-ui-tiremarks-B1bM9Aoo.js +358 -0
  82. package/dist/{vue-ui-treemap-BG1Omm38.js → vue-ui-treemap-DX48YlU5.js} +374 -362
  83. package/dist/{vue-ui-vertical-bar-CwqQyZFX.js → vue-ui-vertical-bar-6SjKPQWR.js} +252 -237
  84. package/dist/{vue-ui-waffle-Ce3T4BPp.js → vue-ui-waffle-CYao9MMw.js} +232 -220
  85. package/dist/vue-ui-wheel-USuDhMwW.js +352 -0
  86. package/dist/vue-ui-word-cloud-TOBTs7yF.js +659 -0
  87. package/dist/{vue-ui-world-B9PxVO4n.js → vue-ui-world-C2qikqBa.js} +237 -222
  88. package/dist/{vue-ui-xy-DtJ7qJib.js → vue-ui-xy-DxwgKoO-.js} +557 -544
  89. package/dist/{vue-ui-xy-canvas-S6YpFgzs.js → vue-ui-xy-canvas-N69OpVn8.js} +395 -380
  90. package/package.json +1 -1
  91. package/dist/vue-data-ui-B8EWlMIK.js +0 -301
  92. package/dist/vue-ui-tiremarks-DiLS3akQ.js +0 -343
  93. package/dist/vue-ui-wheel-6B0WTkf2.js +0 -337
  94. package/dist/vue-ui-word-cloud-ByYZCOh7.js +0 -644
@@ -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-DvIXJm6t.js";
3
- import { u as He } from "./useNestedProp-DrYHm61t.js";
4
- import { u as xt } from "./usePrinter-CWnXbGMb.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-Gi81VwUM.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, ag as gt, q as kt, r as xt, i as Be } from "./index-CobsZUkv.js";
3
+ import { u as He } from "./useNestedProp-BwL5wmVa.js";
4
+ import { u as wt } from "./usePrinter-DPh6U_Qk.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-DpERl1yr.js";
9
+ import Pt from "./img-utitT2Gd.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 Ge(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
+ je(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
+ je(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 je(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 St = ["id"], Ot = ["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"], Gt = {
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
+ }, jt = { 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 St = ["id"], Ot = ["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
- "1dff024b": D.value,
99
- "2fe3a5f8": ue.value
97
+ setup(r, { expose: i, emit: f }) {
98
+ at((t) => ({
99
+ "05e4027a": L.value,
100
+ "85bc3108": ue.value
100
101
  }));
101
- const m = L(() => import("./vue-ui-accordion-D55kCO5G.js")), c = L(() => import("./DataTable-CHBLjKtZ.js")), o = L(() => import("./PackageVersion-Bg_9KCU-.js")), a = L(() => import("./PenAndPaper-BPTpbnay.js")), s = L(() => import("./vue-ui-skeleton-BAOt2neL.js")), v = L(() => import("./UserOptions-CBEK6_jo.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-UewqY6OI.js")), c = V(() => import("./DataTable-Dt-TIOyY.js")), o = V(() => import("./PackageVersion-C-4Ee8BQ.js")), a = V(() => import("./PenAndPaper-Cde-wJ3N.js")), n = V(() => import("./vue-ui-skeleton-8s4xts8z.js")), v = V(() => import("./UserOptions-DTEJ3UM_.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 St = ["id"], Ot = ["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
- }), S = 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), O.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 Ge(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), O.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 Ge(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
- S.value && (M.value && S.value.unobserve(M.value), S.value.disconnect()), S.value = new ResizeObserver(t), M.value = $.value.parentNode, S.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
- S.value && (M.value && S.value.unobserve(M.value), S.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([]), O = b("0 0 100 100"), B = w(() => Math.max(...A.value.map((t) => t.r)));
176
- function Se(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
+ })), G = b(L.value);
189
+ nt(() => {
190
+ G.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 ? (G.value = L.value + (ue.value - L.value) * h, I.value = 0 + e.value.style.chart.circles.zoom.opacity * h, requestAnimationFrame(s)) : (G.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 j = 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 St = ["id"], Ot = ["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({
@@ -226,48 +227,48 @@ const St = ["id"], Ot = ["xmlns", "viewBox", "height", "width"], It = ["x", "y",
226
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 St = ["id"], Ot = ["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 St = ["id"], Ot = ["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 St = ["id"], Ot = ["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,70 +383,70 @@ const St = ["id"], Ot = ["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,
375
390
  printScale: e.value.userOptions.print.scale,
376
391
  titles: { ...e.value.userOptions.buttonTitles },
377
392
  hasAnnotator: e.value.userOptions.buttons.annotator,
378
393
  isAnnotation: F.value,
379
- onToggleFullscreen: Ke,
394
+ onToggleFullscreen: Ie,
380
395
  onGeneratePdf: u(_e),
381
- onGenerateCsv: Ie,
396
+ onGenerateCsv: Fe,
382
397
  onGenerateImage: u($e),
383
- onToggleTable: Fe,
398
+ onToggleTable: Ne,
384
399
  onToggleAnnotator: ce,
385
400
  style: le({
386
401
  visibility: u(xe) ? u(ne) ? "visible" : "hidden" : "visible"
387
402
  })
388
- }, nt({ _: 2 }, [
403
+ }, rt({ _: 2 }, [
389
404
  t.$slots.menuIcon ? {
390
405
  name: "menuIcon",
391
- fn: _(({ isOpen: l, color: f }) => [
392
- 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)
393
408
  ]),
394
409
  key: "0"
395
410
  } : void 0,
396
411
  t.$slots.optionPdf ? {
397
412
  name: "optionPdf",
398
- fn: _(() => [
413
+ fn: $(() => [
399
414
  x(t.$slots, "optionPdf", {}, void 0, !0)
400
415
  ]),
401
416
  key: "1"
402
417
  } : void 0,
403
418
  t.$slots.optionCsv ? {
404
419
  name: "optionCsv",
405
- fn: _(() => [
420
+ fn: $(() => [
406
421
  x(t.$slots, "optionCsv", {}, void 0, !0)
407
422
  ]),
408
423
  key: "2"
409
424
  } : void 0,
410
425
  t.$slots.optionImg ? {
411
426
  name: "optionImg",
412
- fn: _(() => [
427
+ fn: $(() => [
413
428
  x(t.$slots, "optionImg", {}, void 0, !0)
414
429
  ]),
415
430
  key: "3"
416
431
  } : void 0,
417
432
  t.$slots.optionTable ? {
418
433
  name: "optionTable",
419
- fn: _(() => [
434
+ fn: $(() => [
420
435
  x(t.$slots, "optionTable", {}, void 0, !0)
421
436
  ]),
422
437
  key: "4"
423
438
  } : void 0,
424
439
  t.$slots.optionFullscreen ? {
425
440
  name: "optionFullscreen",
426
- fn: _(({ toggleFullscreen: l, isFullscreen: f }) => [
427
- 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)
428
443
  ]),
429
444
  key: "5"
430
445
  } : void 0,
431
446
  t.$slots.optionAnnotator ? {
432
447
  name: "optionAnnotator",
433
- fn: _(({ toggleAnnotator: l, isAnnotator: f }) => [
434
- 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)
435
450
  ]),
436
451
  key: "6"
437
452
  } : void 0
@@ -440,14 +455,14 @@ const St = ["id"], Ot = ["xmlns", "viewBox", "height", "width"], It = ["x", "y",
440
455
  key: 4,
441
456
  ref_key: "svgRef",
442
457
  ref: ge,
443
- xmlns: u(mt),
458
+ xmlns: u(pt),
444
459
  viewBox: O.value,
445
- height: E.value.h,
446
- width: E.value.w,
447
- class: Ee({ "vue-data-ui-fullscreen--on": j.value, "vue-data-ui-fulscreen--off": !j.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 }),
448
463
  style: le(`max-width:100%;overflow:visible;background:transparent;color:${e.value.style.chart.color};background:${e.value.style.chart.backgroundColor};`)
449
464
  }, [
450
- rt(u(o)),
465
+ ut(u(o)),
451
466
  t.$slots["chart-background"] ? (y(), g("foreignObject", {
452
467
  key: 0,
453
468
  x: O.value.x,
@@ -459,45 +474,45 @@ const St = ["id"], Ot = ["xmlns", "viewBox", "height", "width"], It = ["x", "y",
459
474
  }
460
475
  }, [
461
476
  x(t.$slots, "chart-background", {}, void 0, !0)
462
- ], 8, It)) : k("", !0),
463
- (y(!0), g(ae, null, ut(A.value, (l) => (y(), g(ae, null, [
464
- C("defs", null, [
465
- 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", {
466
481
  id: l.id,
467
482
  fy: "30%"
468
483
  }, [
469
- C("stop", {
484
+ _("stop", {
470
485
  offset: "10%",
471
- "stop-color": u(pt)(l.color, e.value.style.chart.circles.gradient.intensity / 100)
472
- }, null, 8, Nt),
473
- C("stop", {
486
+ "stop-color": u(bt)(l.color, e.value.style.chart.circles.gradient.intensity / 100)
487
+ }, null, 8, Et),
488
+ _("stop", {
474
489
  offset: "90%",
475
- "stop-color": u(Le)(l.color, 0.1)
490
+ "stop-color": u(Ve)(l.color, 0.1)
476
491
  }, null, 8, Mt),
477
- C("stop", {
492
+ _("stop", {
478
493
  offset: "100%",
479
494
  "stop-color": l.color
480
- }, null, 8, Et)
481
- ], 8, Ft)
495
+ }, null, 8, At)
496
+ ], 8, Rt)
482
497
  ]),
483
- t.$slots.pattern ? (y(), g("g", Rt, [
484
- C("defs", null, [
485
- 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)
486
501
  ])
487
502
  ])) : k("", !0),
488
- C("rect", {
503
+ _("rect", {
489
504
  x: l.x - l.r,
490
505
  y: l.y - l.r,
491
506
  width: l.r * 2,
492
507
  height: l.r * 2,
493
508
  stroke: e.value.style.chart.circles.stroke,
494
- "stroke-width": e.value.style.chart.circles.strokeWidth * B.value / 100,
509
+ "stroke-width": e.value.style.chart.circles.strokeWidth * U.value / 100,
495
510
  fill: e.value.style.chart.circles.gradient.show ? `url(#${l.id})` : l.color,
496
511
  rx: l.r,
497
- onMouseenter: () => Ye(l),
498
- onMouseout: n[0] || (n[0] = (f) => d.value = null),
499
- onClick: (f) => T("selectDatapoint", l)
500
- }, 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),
501
516
  t.$slots.pattern ? (y(), g("rect", {
502
517
  key: 1,
503
518
  x: l.x - l.r,
@@ -505,17 +520,17 @@ const St = ["id"], Ot = ["xmlns", "viewBox", "height", "width"], It = ["x", "y",
505
520
  width: l.r * 2,
506
521
  height: l.r * 2,
507
522
  stroke: e.value.style.chart.circles.stroke,
508
- "stroke-width": e.value.style.chart.circles.strokeWidth * B.value / 100,
523
+ "stroke-width": e.value.style.chart.circles.strokeWidth * U.value / 100,
509
524
  fill: `url(#pattern_${P.value}_${l.id})`,
510
525
  rx: l.r,
511
526
  style: {
512
527
  pointerEvents: "none"
513
528
  }
514
- }, null, 8, Dt)) : k("", !0),
515
- 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({
516
531
  key: 2,
517
532
  ref_for: !0
518
- }, { ...l, createTSpans: u(bt), 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 }, [
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 }, [
519
534
  e.value.style.chart.circles.labels.name.show && l.name ? (y(), g("text", {
520
535
  key: 0,
521
536
  style: {
@@ -529,7 +544,7 @@ const St = ["id"], Ot = ["xmlns", "viewBox", "height", "width"], It = ["x", "y",
529
544
  fill: e.value.style.chart.circles.labels.name.color ? e.value.style.chart.circles.labels.name.color : u(Z)(l.color),
530
545
  "font-weight": e.value.style.chart.circles.labels.name.bold ? "bold" : "normal",
531
546
  "text-anchor": "middle"
532
- }, Y(l.name), 9, Lt)) : k("", !0),
547
+ }, Y(l.name), 9, Bt)) : k("", !0),
533
548
  e.value.style.chart.circles.labels.value.show ? (y(), g("text", {
534
549
  key: 1,
535
550
  style: {
@@ -543,54 +558,54 @@ const St = ["id"], Ot = ["xmlns", "viewBox", "height", "width"], It = ["x", "y",
543
558
  fill: e.value.style.chart.circles.labels.value.color ? e.value.style.chart.circles.labels.value.color : u(Z)(l.color),
544
559
  "font-weight": e.value.style.chart.circles.labels.value.bold ? "bold" : "normal",
545
560
  "text-anchor": "middle"
546
- }, Y(ie(l)), 9, Vt)) : k("", !0)
561
+ }, Y(ie(l)), 9, Ht)) : k("", !0)
547
562
  ], 64))
548
563
  ], 64))), 256)),
549
564
  d.value && e.value.style.chart.circles.zoom.show && !F.value ? (y(), g(ae, { key: 1 }, [
550
- C("circle", {
551
- style: le(Ze.value),
565
+ _("circle", {
566
+ style: le(Je.value),
552
567
  cx: d.value.x,
553
568
  cy: d.value.y,
554
- r: U.value,
569
+ r: G.value,
555
570
  opacity: I.value,
556
571
  stroke: e.value.style.chart.circles.stroke,
557
- "stroke-width": e.value.style.chart.circles.strokeWidth * B.value / 100,
572
+ "stroke-width": e.value.style.chart.circles.strokeWidth * U.value / 100,
558
573
  fill: e.value.style.chart.circles.gradient.show ? `url(#${d.value.id})` : d.value.color
559
- }, null, 12, Ht),
560
- t.$slots["zoom-label"] ? (y(), g("g", Bt, [
561
- x(t.$slots, "zoom-label", W(X({ ...d.value, zoomOpacity: I.value, currentRadius: U.value, fontSize: G.value })), void 0, !0)
562
- ])) : (y(), g("g", Ut, [
563
- C("text", {
574
+ }, null, 12, Ut),
575
+ t.$slots["zoom-label"] ? (y(), g("g", Gt, [
576
+ x(t.$slots, "zoom-label", W(X({ ...d.value, zoomOpacity: I.value, currentRadius: G.value, fontSize: j.value })), void 0, !0)
577
+ ])) : (y(), g("g", jt, [
578
+ _("text", {
564
579
  style: {
565
580
  pointerEvents: "none"
566
581
  },
567
582
  opacity: I.value,
568
583
  x: d.value.x,
569
- y: d.value.y + e.value.style.chart.circles.zoom.label.name.offsetY - G.value.name / 4,
584
+ y: d.value.y + e.value.style.chart.circles.zoom.label.name.offsetY - j.value.name / 4,
570
585
  "text-anchor": "middle",
571
- "font-size": G.value.name,
586
+ "font-size": j.value.name,
572
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),
573
588
  "font-weight": e.value.style.chart.circles.zoom.label.name.bold ? "bold" : "normal"
574
- }, Y(d.value.name), 9, Gt),
575
- C("text", {
589
+ }, Y(d.value.name), 9, qt),
590
+ _("text", {
576
591
  style: {
577
592
  pointerEvents: "none"
578
593
  },
579
594
  opacity: I.value,
580
595
  x: d.value.x,
581
- y: d.value.y + G.value.value + e.value.style.chart.circles.zoom.label.value.offsetY,
596
+ y: d.value.y + j.value.value + e.value.style.chart.circles.zoom.label.value.offsetY,
582
597
  "text-anchor": "middle",
583
- "font-size": G.value.value,
598
+ "font-size": j.value.value,
584
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),
585
600
  "font-weight": e.value.style.chart.circles.zoom.label.value.bold ? "bold" : "normal"
586
- }, Y(Je()), 9, jt)
601
+ }, Y(Ke()), 9, Wt)
587
602
  ]))
588
603
  ], 64)) : k("", !0),
589
604
  x(t.$slots, "svg", {
590
605
  svg: { ...O.value }
591
606
  }, void 0, !0)
592
- ], 14, Ot)) : k("", !0),
593
- N.value ? k("", !0) : (y(), V(u(s), {
607
+ ], 14, Ft)) : k("", !0),
608
+ N.value ? k("", !0) : (y(), B(u(n), {
594
609
  key: 5,
595
610
  config: {
596
611
  type: "circlePack",
@@ -599,18 +614,18 @@ const St = ["id"], Ot = ["xmlns", "viewBox", "height", "width"], It = ["x", "y",
599
614
  }
600
615
  }
601
616
  })),
602
- t.$slots.watermark ? (y(), g("div", qt, [
617
+ t.$slots.watermark ? (y(), g("div", Xt, [
603
618
  x(t.$slots, "watermark", W(X({ isPrinting: u(Ce) || u(ze) })), void 0, !0)
604
619
  ])) : k("", !0),
605
620
  t.$slots.source ? (y(), g("div", {
606
621
  key: 7,
607
622
  ref_key: "source",
608
- ref: qe,
623
+ ref: We,
609
624
  dir: "auto"
610
625
  }, [
611
626
  x(t.$slots, "source", {}, void 0, !0)
612
627
  ], 512)) : k("", !0),
613
- N.value ? (y(), V(u(m), {
628
+ N.value ? (y(), B(u(m), {
614
629
  key: 8,
615
630
  hideDetails: "",
616
631
  config: {
@@ -626,33 +641,33 @@ const St = ["id"], Ot = ["xmlns", "viewBox", "height", "width"], It = ["x", "y",
626
641
  }
627
642
  }
628
643
  }, {
629
- content: _(() => [
630
- (y(), V(u(c), {
644
+ content: $(() => [
645
+ (y(), B(u(c), {
631
646
  key: `table_${pe.value}`,
632
647
  colNames: te.value.colNames,
633
648
  head: te.value.head,
634
649
  body: te.value.body,
635
650
  config: te.value.config,
636
651
  title: `${e.value.style.chart.title.text}${e.value.style.chart.title.subtitle.text ? ` : ${e.value.style.chart.title.subtitle.text}` : ""}`,
637
- onClose: n[1] || (n[1] = (l) => H.value.showTable = !1)
652
+ onClose: s[1] || (s[1] = (l) => H.value.showTable = !1)
638
653
  }, {
639
- th: _(({ th: l }) => [
640
- C("div", {
654
+ th: $(({ th: l }) => [
655
+ _("div", {
641
656
  innerHTML: l,
642
657
  style: { display: "flex", "align-items": "center" }
643
- }, null, 8, Wt)
658
+ }, null, 8, Yt)
644
659
  ]),
645
- td: _(({ td: l }) => [
646
- it(Y(l.name || l), 1)
660
+ td: $(({ td: l }) => [
661
+ ct(Y(l.name || l), 1)
647
662
  ]),
648
663
  _: 1
649
664
  }, 8, ["colNames", "head", "body", "config", "title"]))
650
665
  ]),
651
666
  _: 1
652
667
  }, 8, ["config"])) : k("", !0)
653
- ], 46, St));
668
+ ], 46, It));
654
669
  }
655
- }, ol = /* @__PURE__ */ Tt(Xt, [["__scopeId", "data-v-b8cf5822"]]);
670
+ }, rl = /* @__PURE__ */ St(Zt, [["__scopeId", "data-v-542d122d"]]);
656
671
  export {
657
- ol as default
672
+ rl as default
658
673
  };