vue-data-ui 2.16.5 → 2.17.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (92) hide show
  1. package/README.md +85 -55
  2. package/dist/{Arrow-D9B36pfx.js → Arrow-BAEkZGzL.js} +1 -1
  3. package/dist/{BaseDraggableDialog-DloHiD4h.js → BaseDraggableDialog-ChCkcmj_.js} +2 -2
  4. package/dist/{BaseIcon-DJab5OQD.js → BaseIcon-naqtCxVi.js} +1 -1
  5. package/dist/{ColorPicker-Br0rMnNb.js → ColorPicker-CfIPgxcj.js} +2 -2
  6. package/dist/{DataTable-B6MXw9cG.js → DataTable-D0VYDhfx.js} +2 -2
  7. package/dist/{Legend-DoxQwq_u.js → Legend-Bxlv67uY.js} +2 -2
  8. package/dist/{NonSvgPenAndPaper-DhbyLXKW.js → NonSvgPenAndPaper-b_oVy-Dd.js} +3 -3
  9. package/dist/{PackageVersion-DCreTQN4.js → PackageVersion-5TR4ocqp.js} +1 -1
  10. package/dist/{PenAndPaper-BS60tkQN.js → PenAndPaper-D6AqipIO.js} +32 -32
  11. package/dist/{Shape-CrstrfQ9.js → Shape-DtFT5EJa.js} +1 -1
  12. package/dist/{Slicer-Bd0AkciG.js → Slicer-CL6-MRI6.js} +2 -2
  13. package/dist/{SparkTooltip-B4j_rvhG.js → SparkTooltip-Bcv1aoA5.js} +1 -1
  14. package/dist/{Title-BQLtfM0P.js → Title-B-2bV0SW.js} +1 -1
  15. package/dist/{Tooltip-5JmGL7sR.js → Tooltip-CoQnTnr-.js} +1 -1
  16. package/dist/{UserOptions-DMGkAAIO.js → UserOptions-Dd34lEKb.js} +137 -129
  17. package/dist/{dom-to-png-g3Q8kjna.js → dom-to-png-2AA0wHlX.js} +1 -1
  18. package/dist/img-Y_hYz-ZC.js +27 -0
  19. package/dist/{index-CZNLCg7T.js → index-pPGk-uhD.js} +1 -1
  20. package/dist/{pdf-DJVOD0cz.js → pdf-yfk3d1is.js} +1 -1
  21. package/dist/style.css +1 -1
  22. package/dist/types/vue-data-ui.d.cts +1098 -162
  23. package/dist/types/vue-data-ui.d.ts +1098 -162
  24. package/dist/{useNestedProp-BcPDA6Xr.js → useNestedProp-DjACxgdZ.js} +1 -1
  25. package/dist/{usePrinter-ButWuZVm.js → usePrinter-DDHcrl0A.js} +2 -2
  26. package/dist/vue-data-ui-CIWxgKjd.js +312 -0
  27. package/dist/vue-data-ui.js +1 -1
  28. package/dist/{vue-ui-3d-bar-o8P0DCbz.js → vue-ui-3d-bar-D5Wpdqfk.js} +244 -235
  29. package/dist/{vue-ui-accordion-CO4hmfuX.js → vue-ui-accordion-CVnA550V.js} +3 -3
  30. package/dist/{vue-ui-age-pyramid-C9T5bAEl.js → vue-ui-age-pyramid-BuAl-zC5.js} +167 -158
  31. package/dist/{vue-ui-annotator-CyOygaxE.js → vue-ui-annotator-gl2A20m3.js} +2 -2
  32. package/dist/{vue-ui-bullet-CPT1jdcz.js → vue-ui-bullet-D-VMKpwe.js} +131 -122
  33. package/dist/{vue-ui-candlestick-BfZTMGE0.js → vue-ui-candlestick-1r6YwiUV.js} +248 -239
  34. package/dist/{vue-ui-carousel-table-Bam9qqkj.js → vue-ui-carousel-table-B6UJoNtP.js} +17 -16
  35. package/dist/{vue-ui-chestnut-BAIMBFaQ.js → vue-ui-chestnut-DnlBYpC5.js} +257 -248
  36. package/dist/{vue-ui-chord-92E1yKdu.js → vue-ui-chord-D3kpzYjp.js} +229 -220
  37. package/dist/{vue-ui-circle-pack-DxXPqA7Z.js → vue-ui-circle-pack-CHgdpoYu.js} +200 -191
  38. package/dist/{vue-ui-cursor-Bvy_o8wb.js → vue-ui-cursor-63EAvElT.js} +2 -2
  39. package/dist/{vue-ui-dashboard--QRCkp7q.js → vue-ui-dashboard-Da6CPET-.js} +62 -62
  40. package/dist/{vue-ui-digits-Dl8RHLvt.js → vue-ui-digits-CA8pUKej.js} +2 -2
  41. package/dist/{vue-ui-donut-BxSTOFDt.js → vue-ui-donut-CKa7nFjt.js} +352 -343
  42. package/dist/{vue-ui-donut-evolution-DNzTtWnJ.js → vue-ui-donut-evolution-qeBEA4W8.js} +267 -258
  43. package/dist/{vue-ui-dumbbell-D01p3t3P.js → vue-ui-dumbbell-Bm0PvAKT.js} +146 -137
  44. package/dist/{vue-ui-flow-BMvaRn7E.js → vue-ui-flow-C2dqXvrU.js} +171 -162
  45. package/dist/{vue-ui-funnel-Bd_3wouw.js → vue-ui-funnel-Dvy5rRld.js} +134 -125
  46. package/dist/{vue-ui-galaxy-D4HJH1qq.js → vue-ui-galaxy-Y8LYp5n2.js} +181 -172
  47. package/dist/{vue-ui-gauge-CgIlk2pu.js → vue-ui-gauge-BBo0jWAP.js} +166 -157
  48. package/dist/{vue-ui-gizmo-C1-QYvsn.js → vue-ui-gizmo-DjXfTOWn.js} +3 -3
  49. package/dist/{vue-ui-heatmap-tUn_BlSp.js → vue-ui-heatmap-BbxRpltP.js} +242 -229
  50. package/dist/{vue-ui-history-plot-TfVRzyIK.js → vue-ui-history-plot-ChYf3Nvc.js} +218 -209
  51. package/dist/{vue-ui-kpi-BuL8MAMD.js → vue-ui-kpi-Vfc5-JnE.js} +3 -3
  52. package/dist/{vue-ui-mini-loader-DIeG36P8.js → vue-ui-mini-loader-C0-Nsz8K.js} +2 -2
  53. package/dist/{vue-ui-molecule-8RJNzWIw.js → vue-ui-molecule-B7Yu7vzF.js} +155 -146
  54. package/dist/{vue-ui-mood-radar-DftzG_Bi.js → vue-ui-mood-radar-C8JUTwNw.js} +130 -121
  55. package/dist/{vue-ui-nested-donuts-B9JC_0xK.js → vue-ui-nested-donuts-D0RgFifU.js} +255 -246
  56. package/dist/{vue-ui-onion-DTjaH-Bu.js → vue-ui-onion-D4U7TL_N.js} +150 -141
  57. package/dist/{vue-ui-parallel-coordinate-plot-DwqfVqFB.js → vue-ui-parallel-coordinate-plot-CXMT7Rjr.js} +194 -185
  58. package/dist/{vue-ui-quadrant-Cv3VWA6d.js → vue-ui-quadrant-B13pTVVZ.js} +248 -239
  59. package/dist/{vue-ui-quick-chart-imc0KrbF.js → vue-ui-quick-chart-C0UL4o63.js} +328 -319
  60. package/dist/{vue-ui-radar-kNySclk1.js → vue-ui-radar-XpdiXnhz.js} +165 -156
  61. package/dist/{vue-ui-rating-DBhEbgwD.js → vue-ui-rating-CM8ZrUb1.js} +2 -2
  62. package/dist/{vue-ui-relation-circle-BJQhS0aG.js → vue-ui-relation-circle-CYoFNekk.js} +145 -136
  63. package/dist/{vue-ui-ridgeline-Bhd1Uwm8.js → vue-ui-ridgeline-QUquE6ck.js} +198 -189
  64. package/dist/{vue-ui-rings-C_IT2mi0.js → vue-ui-rings-DwT0IfOh.js} +136 -127
  65. package/dist/{vue-ui-scatter-i8XZreWa.js → vue-ui-scatter-zDpy1udm.js} +207 -199
  66. package/dist/{vue-ui-skeleton-D9B8DY_k.js → vue-ui-skeleton-DJPjyNYn.js} +3 -3
  67. package/dist/{vue-ui-smiley-gmdnUWcW.js → vue-ui-smiley-DoDXl6k0.js} +2 -2
  68. package/dist/{vue-ui-spark-trend-DOF3vl8_.js → vue-ui-spark-trend-CniV6Cpr.js} +3 -3
  69. package/dist/{vue-ui-sparkbar-BVOVq3dA.js → vue-ui-sparkbar-Ds2ITgwn.js} +3 -3
  70. package/dist/{vue-ui-sparkgauge-DVO2Z0Rg.js → vue-ui-sparkgauge-CosfK-kw.js} +3 -3
  71. package/dist/{vue-ui-sparkhistogram-CbV86a2i.js → vue-ui-sparkhistogram-C7O1wPAJ.js} +4 -4
  72. package/dist/{vue-ui-sparkline-jDNAVZu-.js → vue-ui-sparkline-B_iUj3F2.js} +3 -3
  73. package/dist/{vue-ui-sparkstackbar-auT8CUXm.js → vue-ui-sparkstackbar-DBhWrysr.js} +3 -3
  74. package/dist/{vue-ui-stackbar-DmO02We2.js → vue-ui-stackbar-C3aV4IcL.js} +242 -233
  75. package/dist/{vue-ui-strip-plot-B25s87lj.js → vue-ui-strip-plot-Bvr1GAzH.js} +204 -195
  76. package/dist/{vue-ui-table-B4xbQdK_.js → vue-ui-table-DQKKRgyo.js} +3 -3
  77. package/dist/{vue-ui-table-heatmap-DI57VcvH.js → vue-ui-table-heatmap-Dyqj5XJC.js} +26 -25
  78. package/dist/{vue-ui-table-sparkline-DRgsZztN.js → vue-ui-table-sparkline-D4RubyLj.js} +8 -7
  79. package/dist/{vue-ui-thermometer-DkeT5DV_.js → vue-ui-thermometer-B0FKI5cG.js} +149 -140
  80. package/dist/{vue-ui-timer-uon_DLeH.js → vue-ui-timer-DUCBRIl-.js} +5 -5
  81. package/dist/{vue-ui-tiremarks-BV0qXRF2.js → vue-ui-tiremarks-CRt4UQZD.js} +114 -105
  82. package/dist/{vue-ui-treemap-DzJsjtz7.js → vue-ui-treemap-CWP5nYDx.js} +298 -289
  83. package/dist/{vue-ui-vertical-bar-CkLS_DGb.js → vue-ui-vertical-bar-C5fPYltO.js} +294 -285
  84. package/dist/{vue-ui-waffle-B2XiLGQx.js → vue-ui-waffle-BpWLlfpg.js} +190 -181
  85. package/dist/{vue-ui-wheel-BR1DDpKU.js → vue-ui-wheel-CTzuCroy.js} +96 -87
  86. package/dist/{vue-ui-word-cloud-BvOT6hu2.js → vue-ui-word-cloud-BPokdaP1.js} +212 -203
  87. package/dist/{vue-ui-world-BeP91MNX.js → vue-ui-world-CS6k-oil.js} +201 -192
  88. package/dist/{vue-ui-xy-BaR-ZDba.js → vue-ui-xy-CQ425kLR.js} +517 -510
  89. package/dist/{vue-ui-xy-canvas-B4ZmECCK.js → vue-ui-xy-canvas-D2IFwAr7.js} +364 -355
  90. package/package.json +1 -1
  91. package/dist/img-CTC5DLKL.js +0 -20
  92. package/dist/vue-data-ui-BB8Upnjm.js +0 -301
@@ -1,67 +1,68 @@
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-CZNLCg7T.js";
3
- import { u as He } from "./useNestedProp-BcPDA6Xr.js";
4
- import { u as xt } from "./usePrinter-ButWuZVm.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-BQLtfM0P.js";
9
- import { _ as Tt } from "./_plugin-vue_export-helper-CHgC5LLL.js";
1
+ import { useCssVars as at, computed as w, defineAsyncComponent as L, ref as b, watch as Ee, shallowRef as Me, onMounted as ot, onBeforeUnmount as st, watchEffect as nt, createElementBlock as g, openBlock as y, unref as u, normalizeStyle as le, normalizeClass as Re, createBlock as V, 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 z, 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 He } from "./index-pPGk-uhD.js";
3
+ import { u as Ue } from "./useNestedProp-DjACxgdZ.js";
4
+ import { u as wt } from "./usePrinter-DDHcrl0A.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-B-2bV0SW.js";
9
+ import Pt from "./img-Y_hYz-ZC.js";
10
+ import { _ as St } from "./_plugin-vue_export-helper-CHgC5LLL.js";
10
11
  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
+ const h = 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);
12
13
  return [h, c, m - h, 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, h) {
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 * h), Math.abs(n * i));
17
18
  }
18
- function Ue(r, i, h) {
19
- const m = Pt, c = r.length;
19
+ function Ge(r, i, h) {
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, h, i), C;
45
+ for (; (n = n.next) !== a; )
46
+ (C = m(n, h, i)) < P && (o = n, P = C);
46
47
  a = o.next;
47
48
  }
48
49
  return r;
49
50
  }
50
- function Ge(r, i, h) {
51
+ function je(r, i, h) {
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));
54
+ const a = (i.r + h.r) ** 2, n = (r.r + h.r) ** 2;
55
+ if (a > n) {
56
+ const v = (o + n - a) / (2 * o), p = Math.sqrt(Math.max(0, n / o - v * v));
56
57
  h.x = r.x - v * m - p * c, h.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
+ const v = (o + a - n) / (2 * o), p = Math.sqrt(Math.max(0, a / o - v * v));
59
60
  h.x = i.x + v * m - p * c, h.y = i.y + v * c + p * m;
60
61
  }
61
62
  } else
62
63
  h.x = i.x + h.r, h.y = i.y;
63
64
  }
64
- function je(r, i) {
65
+ function qe(r, i) {
65
66
  const h = r.r + i.r - 1e-6, m = i.x - r.x, c = i.y - r.y;
66
67
  return h > 0 && h * h > m * m + c * c;
67
68
  }
@@ -70,13 +71,13 @@ class se {
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"], Et = ["id"], Mt = ["stop-color"], Rt = ["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"], Ht = ["opacity", "x", "y", "font-size", "fill", "font-weight"], Ut = ["opacity", "x", "y", "font-size", "fill", "font-weight"], Bt = ["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: {
@@ -94,113 +95,113 @@ const Ot = ["id"], St = ["xmlns", "viewBox", "height", "width"], It = ["x", "y",
94
95
  },
95
96
  emits: ["selectDatapoint"],
96
97
  setup(r, { expose: i, emit: h }) {
97
- lt((t) => ({
98
- "3044b7fa": D.value,
99
- 76538273: ue.value
98
+ at((t) => ({
99
+ cbb2c5fc: D.value,
100
+ a809ed0a: ue.value
100
101
  }));
101
- const m = L(() => import("./vue-ui-accordion-CO4hmfuX.js")), c = L(() => import("./DataTable-B6MXw9cG.js")), o = L(() => import("./PackageVersion-DCreTQN4.js")), a = L(() => import("./PenAndPaper-BS60tkQN.js")), s = L(() => import("./vue-ui-skeleton-D9B8DY_k.js")), v = L(() => import("./UserOptions-DMGkAAIO.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 = L(() => import("./vue-ui-accordion-CVnA550V.js")), c = L(() => import("./DataTable-D0VYDhfx.js")), o = L(() => import("./PackageVersion-5TR4ocqp.js")), a = L(() => import("./PenAndPaper-D6AqipIO.js")), n = L(() => import("./vue-ui-skeleton-DJPjyNYn.js")), v = L(() => import("./UserOptions-Dd34lEKb.js")), p = r, T = h, { vue_ui_circle_pack: J } = vt(), N = w(() => !!p.dataset && p.dataset.length), P = b(Le()), C = b(null), fe = b(null), ye = b(null), me = b(0), pe = b(0), be = b(0), We = b(null), e = w({
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
- const t = He({
111
+ const t = Ue({
111
112
  userConfig: p.config,
112
113
  defaultConfig: J
113
114
  });
114
115
  return t.theme ? {
115
- ...He({
116
- userConfig: vt.vue_ui_circle_pack[t.theme] || p.config,
116
+ ...Ue({
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
+ Ee(() => 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 = w(() => 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 = Me(null), E = Me(null), M = b({ h: 10, w: 10 }), Te = b(0), R = 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
+ }), A.value = await Ge(Q.value), O.value = Be(A.value, 1).join(" "), K.value = Pe(C.value);
138
+ const t = _t(() => {
139
+ const { width: s, height: l, heightTitle: f, heightNoTitle: _ } = $t({
140
+ chart: C.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
+ }), q = s || 10, ve = l && l > 10 ? l : 10;
144
+ Te.value = e.value.style.chart.title.text ? f : _, requestAnimationFrame(() => {
145
+ M.value.w = q, M.value.h = ve - Te.value, De(async () => {
146
+ const tt = Q.value.map((lt) => ({ ...lt }));
147
+ A.value = await Ge(tt, M.value.h, M.value.w), R.value = Be(A.value, 1), O.value = R.value.join(" "), K.value = Pe(C.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 = C.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), f = l.width, _ = l.height;
163
+ return f !== "auto" && _ !== "auto" && parseFloat(f) > 0 && parseFloat(_) > 0 ? { w: parseFloat(f), h: parseFloat(_) } : { w: 0, h: 0 };
163
164
  }
164
- Ne(() => p.dataset, async (t) => {
165
+ Ee(() => 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 = w(() => yt(e.value.customPalette)), Q = w(() => 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))), A = b([]), O = b("0 0 100 100"), U = w(() => Math.max(...A.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 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), Je = w(() => ({
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
+ })), B = b(D.value);
189
+ nt(() => {
190
+ B.value = D.value, I.value = 0;
190
191
  let t = null;
191
- function n(l) {
192
+ function s(l) {
192
193
  t || (t = l);
193
194
  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);
195
+ f < 1 ? (B.value = D.value + (ue.value - D.value) * f, I.value = 0 + e.value.style.chart.circles.zoom.opacity * f, requestAnimationFrame(s)) : (B.value = ue.value, I.value = e.value.style.chart.circles.zoom.opacity);
195
196
  }
196
- requestAnimationFrame(n);
197
+ requestAnimationFrame(s);
197
198
  });
198
199
  const G = w(() => ({
199
200
  name: e.value.style.chart.circles.zoom.label.name.fontSize * R.value[3] / 300,
200
201
  value: e.value.style.chart.circles.zoom.label.value.fontSize * R.value[3] / 300
201
202
  }));
202
203
  function ie(t) {
203
- return Ve(
204
+ return He(
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 He(
216
217
  e.value.style.chart.circles.zoom.label.value.formatter,
217
218
  d.value.value,
218
219
  he({
@@ -223,14 +224,14 @@ 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
233
  const j = b(!1);
233
- function Ke(t) {
234
+ function Ie(t) {
234
235
  j.value = t, be.value += 1;
235
236
  }
236
237
  const F = b(!1);
@@ -242,22 +243,22 @@ const Ot = ["id"], St = ["xmlns", "viewBox", "height", "width"], It = ["x", "y",
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, f) => f.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((_, q) => [[
252
+ _.name
253
+ ], [ee.value.body[q]]]), l = [[e.value.style.chart.title.text], [e.value.style.chart.title.subtitle.text], [[""], [e.value.table.columnNames.value]]].concat(s), f = kt(l);
254
+ t ? t(f) : xt({ csvContent: f, title: e.value.style.chart.title.text || "vue-ui-circle-pack" });
254
255
  });
255
256
  }
256
257
  const te = w(() => {
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((_, q) => {
261
262
  const ve = he({
262
263
  p: e.value.style.chart.circles.labels.value.prefix,
263
264
  v: ee.value.body[q],
@@ -266,8 +267,8 @@ const Ot = ["id"], St = ["xmlns", "viewBox", "height", "width"], It = ["x", "y",
266
267
  });
267
268
  return [
268
269
  {
269
- color: z.color,
270
- name: z.name
270
+ color: _.color,
271
+ name: _.name
271
272
  },
272
273
  ve
273
274
  ];
@@ -290,31 +291,38 @@ 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 (!C.value) return;
306
+ const { imageUri: s, base64: l } = await Pt({ domElement: C.value, base64: !0, img: !0, scale: t });
307
+ return { imageUri: s, base64: l };
308
+ }
303
309
  return i({
304
310
  getData: Qe,
305
- generateCsv: Ie,
311
+ getImage: et,
312
+ generateCsv: Fe,
306
313
  generatePdf: _e,
307
314
  generateImage: $e,
308
- toggleTable: Fe,
309
- toggleAnnotator: ce
310
- }), (t, n) => (y(), g("div", {
315
+ toggleTable: Ne,
316
+ toggleAnnotator: ce,
317
+ toggleFullscreen: Ie
318
+ }), (t, s) => (y(), g("div", {
311
319
  id: `vue-ui-circle-pack_${P.value}`,
312
- class: Ee(`vue-ui-circle-pack ${j.value ? "vue-data-ui-wrapper-fullscreen" : ""}`),
320
+ class: Re(`vue-ui-circle-pack ${j.value ? "vue-data-ui-wrapper-fullscreen" : ""}`),
313
321
  ref_key: "circlePackChart",
314
- ref: $,
322
+ ref: C,
315
323
  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))
324
+ onMouseenter: s[2] || (s[2] = () => u(ke)(!0)),
325
+ onMouseleave: s[3] || (s[3] = () => u(ke)(!1))
318
326
  }, [
319
327
  e.value.userOptions.buttons.annotator ? (y(), V(u(a), {
320
328
  key: 0,
@@ -322,11 +330,11 @@ const Ot = ["id"], St = ["xmlns", "viewBox", "height", "width"], It = ["x", "y",
322
330
  backgroundColor: e.value.style.chart.backgroundColor,
323
331
  color: e.value.style.chart.color,
324
332
  active: F.value,
325
- scale: B.value / 100,
333
+ scale: U.value / 100,
326
334
  onClose: ce
327
335
  }, null, 8, ["svgRef", "backgroundColor", "color", "active", "scale"])) : k("", !0),
328
336
  x(t.$slots, "userConfig", {}, void 0, !0),
329
- We.value ? (y(), g("div", {
337
+ Xe.value ? (y(), g("div", {
330
338
  key: 1,
331
339
  ref_key: "noTitle",
332
340
  ref: ye,
@@ -339,7 +347,7 @@ const Ot = ["id"], St = ["xmlns", "viewBox", "height", "width"], It = ["x", "y",
339
347
  ref: fe,
340
348
  style: "width:100%;background:transparent;padding-bottom:12px"
341
349
  }, [
342
- (y(), V($t, {
350
+ (y(), V(Tt, {
343
351
  key: `title_${me.value}`,
344
352
  config: {
345
353
  title: {
@@ -369,134 +377,135 @@ const Ot = ["id"], St = ["xmlns", "viewBox", "height", "width"], It = ["x", "y",
369
377
  hasTable: e.value.userOptions.buttons.table,
370
378
  hasFullscreen: e.value.userOptions.buttons.fullscreen,
371
379
  isFullscreen: j.value,
372
- chartElement: $.value,
380
+ chartElement: C.value,
373
381
  position: e.value.userOptions.position,
374
382
  callbacks: e.value.userOptions.callbacks,
383
+ printScale: e.value.userOptions.print.scale,
375
384
  titles: { ...e.value.userOptions.buttonTitles },
376
385
  hasAnnotator: e.value.userOptions.buttons.annotator,
377
386
  isAnnotation: F.value,
378
- onToggleFullscreen: Ke,
387
+ onToggleFullscreen: Ie,
379
388
  onGeneratePdf: u(_e),
380
- onGenerateCsv: Ie,
389
+ onGenerateCsv: Fe,
381
390
  onGenerateImage: u($e),
382
- onToggleTable: Fe,
391
+ onToggleTable: Ne,
383
392
  onToggleAnnotator: ce,
384
393
  style: le({
385
394
  visibility: u(xe) ? u(ne) ? "visible" : "hidden" : "visible"
386
395
  })
387
- }, nt({ _: 2 }, [
396
+ }, rt({ _: 2 }, [
388
397
  t.$slots.menuIcon ? {
389
398
  name: "menuIcon",
390
- fn: _(({ isOpen: l, color: f }) => [
399
+ fn: $(({ isOpen: l, color: f }) => [
391
400
  x(t.$slots, "menuIcon", W(X({ isOpen: l, color: f })), void 0, !0)
392
401
  ]),
393
402
  key: "0"
394
403
  } : void 0,
395
404
  t.$slots.optionPdf ? {
396
405
  name: "optionPdf",
397
- fn: _(() => [
406
+ fn: $(() => [
398
407
  x(t.$slots, "optionPdf", {}, void 0, !0)
399
408
  ]),
400
409
  key: "1"
401
410
  } : void 0,
402
411
  t.$slots.optionCsv ? {
403
412
  name: "optionCsv",
404
- fn: _(() => [
413
+ fn: $(() => [
405
414
  x(t.$slots, "optionCsv", {}, void 0, !0)
406
415
  ]),
407
416
  key: "2"
408
417
  } : void 0,
409
418
  t.$slots.optionImg ? {
410
419
  name: "optionImg",
411
- fn: _(() => [
420
+ fn: $(() => [
412
421
  x(t.$slots, "optionImg", {}, void 0, !0)
413
422
  ]),
414
423
  key: "3"
415
424
  } : void 0,
416
425
  t.$slots.optionTable ? {
417
426
  name: "optionTable",
418
- fn: _(() => [
427
+ fn: $(() => [
419
428
  x(t.$slots, "optionTable", {}, void 0, !0)
420
429
  ]),
421
430
  key: "4"
422
431
  } : void 0,
423
432
  t.$slots.optionFullscreen ? {
424
433
  name: "optionFullscreen",
425
- fn: _(({ toggleFullscreen: l, isFullscreen: f }) => [
434
+ fn: $(({ toggleFullscreen: l, isFullscreen: f }) => [
426
435
  x(t.$slots, "optionFullscreen", W(X({ toggleFullscreen: l, isFullscreen: f })), void 0, !0)
427
436
  ]),
428
437
  key: "5"
429
438
  } : void 0,
430
439
  t.$slots.optionAnnotator ? {
431
440
  name: "optionAnnotator",
432
- fn: _(({ toggleAnnotator: l, isAnnotator: f }) => [
441
+ fn: $(({ toggleAnnotator: l, isAnnotator: f }) => [
433
442
  x(t.$slots, "optionAnnotator", W(X({ toggleAnnotator: l, isAnnotator: f })), void 0, !0)
434
443
  ]),
435
444
  key: "6"
436
445
  } : 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),
446
+ ]), 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
447
  N.value ? (y(), g("svg", {
439
448
  key: 4,
440
449
  ref_key: "svgRef",
441
450
  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 }),
451
+ xmlns: u(pt),
452
+ viewBox: O.value,
453
+ height: M.value.h,
454
+ width: M.value.w,
455
+ class: Re({ "vue-data-ui-fullscreen--on": j.value, "vue-data-ui-fulscreen--off": !j.value }),
447
456
  style: le(`max-width:100%;overflow:visible;background:transparent;color:${e.value.style.chart.color};background:${e.value.style.chart.backgroundColor};`)
448
457
  }, [
449
- rt(u(o)),
458
+ ut(u(o)),
450
459
  t.$slots["chart-background"] ? (y(), g("foreignObject", {
451
460
  key: 0,
452
- x: S.value.x,
453
- y: S.value.y,
454
- width: S.value.width,
455
- height: S.value.height,
461
+ x: O.value.x,
462
+ y: O.value.y,
463
+ width: O.value.width,
464
+ height: O.value.height,
456
465
  style: {
457
466
  pointerEvents: "none"
458
467
  }
459
468
  }, [
460
469
  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", {
470
+ ], 8, Nt)) : k("", !0),
471
+ (y(!0), g(ae, null, it(A.value, (l) => (y(), g(ae, null, [
472
+ z("defs", null, [
473
+ z("radialGradient", {
465
474
  id: l.id,
466
475
  fy: "30%"
467
476
  }, [
468
- C("stop", {
477
+ z("stop", {
469
478
  offset: "10%",
470
- "stop-color": u(pt)(l.color, e.value.style.chart.circles.gradient.intensity / 100)
471
- }, null, 8, Nt),
472
- C("stop", {
473
- offset: "90%",
474
- "stop-color": u(Le)(l.color, 0.1)
479
+ "stop-color": u(bt)(l.color, e.value.style.chart.circles.gradient.intensity / 100)
475
480
  }, null, 8, Mt),
476
- C("stop", {
481
+ z("stop", {
482
+ offset: "90%",
483
+ "stop-color": u(Ve)(l.color, 0.1)
484
+ }, null, 8, Rt),
485
+ z("stop", {
477
486
  offset: "100%",
478
487
  "stop-color": l.color
479
- }, null, 8, Et)
480
- ], 8, Ft)
488
+ }, null, 8, At)
489
+ ], 8, Et)
481
490
  ]),
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)
491
+ t.$slots.pattern ? (y(), g("g", Dt, [
492
+ z("defs", null, [
493
+ x(t.$slots, "pattern", Ae({ ref_for: !0 }, { ...l, patternId: `pattern_${P.value}_${l.id}` }), void 0, !0)
485
494
  ])
486
495
  ])) : k("", !0),
487
- C("rect", {
496
+ z("rect", {
488
497
  x: l.x - l.r,
489
498
  y: l.y - l.r,
490
499
  width: l.r * 2,
491
500
  height: l.r * 2,
492
501
  stroke: e.value.style.chart.circles.stroke,
493
- "stroke-width": e.value.style.chart.circles.strokeWidth * B.value / 100,
502
+ "stroke-width": e.value.style.chart.circles.strokeWidth * U.value / 100,
494
503
  fill: e.value.style.chart.circles.gradient.show ? `url(#${l.id})` : l.color,
495
504
  rx: l.r,
496
- onMouseenter: () => Ye(l),
497
- onMouseout: n[0] || (n[0] = (f) => d.value = null),
505
+ onMouseenter: () => Ze(l),
506
+ onMouseout: s[0] || (s[0] = (f) => d.value = null),
498
507
  onClick: (f) => T("selectDatapoint", l)
499
- }, null, 40, At),
508
+ }, null, 40, Lt),
500
509
  t.$slots.pattern ? (y(), g("rect", {
501
510
  key: 1,
502
511
  x: l.x - l.r,
@@ -504,17 +513,17 @@ const Ot = ["id"], St = ["xmlns", "viewBox", "height", "width"], It = ["x", "y",
504
513
  width: l.r * 2,
505
514
  height: l.r * 2,
506
515
  stroke: e.value.style.chart.circles.stroke,
507
- "stroke-width": e.value.style.chart.circles.strokeWidth * B.value / 100,
516
+ "stroke-width": e.value.style.chart.circles.strokeWidth * U.value / 100,
508
517
  fill: `url(#pattern_${P.value}_${l.id})`,
509
518
  rx: l.r,
510
519
  style: {
511
520
  pointerEvents: "none"
512
521
  }
513
- }, null, 8, Dt)) : k("", !0),
514
- t.$slots["data-label"] ? x(t.$slots, "data-label", Re({
522
+ }, null, 8, Vt)) : k("", !0),
523
+ t.$slots["data-label"] ? x(t.$slots, "data-label", Ae({
515
524
  key: 2,
516
525
  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 }, [
526
+ }, { ...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
527
  e.value.style.chart.circles.labels.name.show && l.name ? (y(), g("text", {
519
528
  key: 0,
520
529
  style: {
@@ -523,12 +532,12 @@ const Ot = ["id"], St = ["xmlns", "viewBox", "height", "width"], It = ["x", "y",
523
532
  },
524
533
  opacity: d.value && !F.value ? 0.2 : 1,
525
534
  x: l.x,
526
- y: l.y + Oe(l.r, e.value.style.chart.circles.labels.name.offsetY) - l.r / 10,
535
+ y: l.y + Se(l.r, e.value.style.chart.circles.labels.name.offsetY) - l.r / 10,
527
536
  "font-size": l.r / 3 * e.value.style.chart.circles.labels.name.fontSizeRatio,
528
537
  fill: e.value.style.chart.circles.labels.name.color ? e.value.style.chart.circles.labels.name.color : u(Z)(l.color),
529
538
  "font-weight": e.value.style.chart.circles.labels.name.bold ? "bold" : "normal",
530
539
  "text-anchor": "middle"
531
- }, Y(l.name), 9, Lt)) : k("", !0),
540
+ }, Y(l.name), 9, Ht)) : k("", !0),
532
541
  e.value.style.chart.circles.labels.value.show ? (y(), g("text", {
533
542
  key: 1,
534
543
  style: {
@@ -537,29 +546,29 @@ const Ot = ["id"], St = ["xmlns", "viewBox", "height", "width"], It = ["x", "y",
537
546
  },
538
547
  opacity: d.value && !F.value ? 0.2 : 1,
539
548
  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,
549
+ y: l.y + Se(l.r, e.value.style.chart.circles.labels.value.offsetY) + l.r / 2.5,
550
+ "font-size": Oe(l) * e.value.style.chart.circles.labels.value.fontSizeRatio,
542
551
  fill: e.value.style.chart.circles.labels.value.color ? e.value.style.chart.circles.labels.value.color : u(Z)(l.color),
543
552
  "font-weight": e.value.style.chart.circles.labels.value.bold ? "bold" : "normal",
544
553
  "text-anchor": "middle"
545
- }, Y(ie(l)), 9, Vt)) : k("", !0)
554
+ }, Y(ie(l)), 9, Ut)) : k("", !0)
546
555
  ], 64))
547
556
  ], 64))), 256)),
548
557
  d.value && e.value.style.chart.circles.zoom.show && !F.value ? (y(), g(ae, { key: 1 }, [
549
- C("circle", {
550
- style: le(Ze.value),
558
+ z("circle", {
559
+ style: le(Je.value),
551
560
  cx: d.value.x,
552
561
  cy: d.value.y,
553
- r: U.value,
562
+ r: B.value,
554
563
  opacity: I.value,
555
564
  stroke: e.value.style.chart.circles.stroke,
556
- "stroke-width": e.value.style.chart.circles.strokeWidth * B.value / 100,
565
+ "stroke-width": e.value.style.chart.circles.strokeWidth * U.value / 100,
557
566
  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", {
567
+ }, null, 12, Bt),
568
+ t.$slots["zoom-label"] ? (y(), g("g", Gt, [
569
+ x(t.$slots, "zoom-label", W(X({ ...d.value, zoomOpacity: I.value, currentRadius: B.value, fontSize: G.value })), void 0, !0)
570
+ ])) : (y(), g("g", jt, [
571
+ z("text", {
563
572
  style: {
564
573
  pointerEvents: "none"
565
574
  },
@@ -570,8 +579,8 @@ const Ot = ["id"], St = ["xmlns", "viewBox", "height", "width"], It = ["x", "y",
570
579
  "font-size": G.value.name,
571
580
  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
581
  "font-weight": e.value.style.chart.circles.zoom.label.name.bold ? "bold" : "normal"
573
- }, Y(d.value.name), 9, Gt),
574
- C("text", {
582
+ }, Y(d.value.name), 9, qt),
583
+ z("text", {
575
584
  style: {
576
585
  pointerEvents: "none"
577
586
  },
@@ -582,14 +591,14 @@ const Ot = ["id"], St = ["xmlns", "viewBox", "height", "width"], It = ["x", "y",
582
591
  "font-size": G.value.value,
583
592
  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
593
  "font-weight": e.value.style.chart.circles.zoom.label.value.bold ? "bold" : "normal"
585
- }, Y(Je()), 9, jt)
594
+ }, Y(Ke()), 9, Wt)
586
595
  ]))
587
596
  ], 64)) : k("", !0),
588
597
  x(t.$slots, "svg", {
589
- svg: { ...S.value }
598
+ svg: { ...O.value }
590
599
  }, void 0, !0)
591
- ], 14, St)) : k("", !0),
592
- N.value ? k("", !0) : (y(), V(u(s), {
600
+ ], 14, Ft)) : k("", !0),
601
+ N.value ? k("", !0) : (y(), V(u(n), {
593
602
  key: 5,
594
603
  config: {
595
604
  type: "circlePack",
@@ -598,13 +607,13 @@ const Ot = ["id"], St = ["xmlns", "viewBox", "height", "width"], It = ["x", "y",
598
607
  }
599
608
  }
600
609
  })),
601
- t.$slots.watermark ? (y(), g("div", qt, [
610
+ t.$slots.watermark ? (y(), g("div", Xt, [
602
611
  x(t.$slots, "watermark", W(X({ isPrinting: u(Ce) || u(ze) })), void 0, !0)
603
612
  ])) : k("", !0),
604
613
  t.$slots.source ? (y(), g("div", {
605
614
  key: 7,
606
615
  ref_key: "source",
607
- ref: qe,
616
+ ref: We,
608
617
  dir: "auto"
609
618
  }, [
610
619
  x(t.$slots, "source", {}, void 0, !0)
@@ -625,7 +634,7 @@ const Ot = ["id"], St = ["xmlns", "viewBox", "height", "width"], It = ["x", "y",
625
634
  }
626
635
  }
627
636
  }, {
628
- content: _(() => [
637
+ content: $(() => [
629
638
  (y(), V(u(c), {
630
639
  key: `table_${pe.value}`,
631
640
  colNames: te.value.colNames,
@@ -633,25 +642,25 @@ const Ot = ["id"], St = ["xmlns", "viewBox", "height", "width"], It = ["x", "y",
633
642
  body: te.value.body,
634
643
  config: te.value.config,
635
644
  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)
645
+ onClose: s[1] || (s[1] = (l) => H.value.showTable = !1)
637
646
  }, {
638
- th: _(({ th: l }) => [
639
- C("div", {
647
+ th: $(({ th: l }) => [
648
+ z("div", {
640
649
  innerHTML: l,
641
650
  style: { display: "flex", "align-items": "center" }
642
- }, null, 8, Wt)
651
+ }, null, 8, Yt)
643
652
  ]),
644
- td: _(({ td: l }) => [
645
- it(Y(l.name || l), 1)
653
+ td: $(({ td: l }) => [
654
+ ct(Y(l.name || l), 1)
646
655
  ]),
647
656
  _: 1
648
657
  }, 8, ["colNames", "head", "body", "config", "title"]))
649
658
  ]),
650
659
  _: 1
651
660
  }, 8, ["config"])) : k("", !0)
652
- ], 46, Ot));
661
+ ], 46, It));
653
662
  }
654
- }, ol = /* @__PURE__ */ Tt(Xt, [["__scopeId", "data-v-b02f724d"]]);
663
+ }, rl = /* @__PURE__ */ St(Zt, [["__scopeId", "data-v-b5aade3d"]]);
655
664
  export {
656
- ol as default
665
+ rl as default
657
666
  };