vue-data-ui 3.6.0 → 3.7.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 (199) hide show
  1. package/README.md +26 -26
  2. package/dist/{Arrow-BGVin3AS.js → Arrow-CWYIBV-7.js} +1 -1
  3. package/dist/{BaseDraggableDialog-DhKIof09.js → BaseDraggableDialog-CRF94NJQ.js} +2 -2
  4. package/dist/{BaseIcon-DLFL0M4-.js → BaseIcon-CofSxalQ.js} +1 -1
  5. package/dist/{ColorPicker-CjIJvLdc.js → ColorPicker-e1-OSGlQ.js} +10 -10
  6. package/dist/{DataTable-UCyd_BQI.js → DataTable-CHaOCmsE.js} +2 -2
  7. package/dist/{Legend-D9ZTJKjh.js → Legend-Web3GjlR.js} +2 -2
  8. package/dist/{NonSvgPenAndPaper-a2UzZL0y.js → NonSvgPenAndPaper-CjYFLlns.js} +3 -3
  9. package/dist/{PackageVersion-D_4Hr4S4.js → PackageVersion-C82JCJOX.js} +1 -1
  10. package/dist/{PenAndPaper-BJSMejV9.js → PenAndPaper-HCZQTkqi.js} +20 -20
  11. package/dist/{Shape-CNXKB8O0.js → Shape-DE6X_t31.js} +3 -3
  12. package/dist/{Slicer-CJfhtoVn.js → Slicer-BFBBG6xv.js} +23 -23
  13. package/dist/{SlicerPreview-wXjV4LWO.js → SlicerPreview-D76aSViW.js} +2 -2
  14. package/dist/{SparkTooltip-BEewz-_Q.js → SparkTooltip-B2rpVWE1.js} +6 -6
  15. package/dist/{Title-Bb1VWCtR.js → Title-DfFUb9hd.js} +1 -1
  16. package/dist/{Tooltip-oWCO1HKy.js → Tooltip-WD0Ros6G.js} +1 -1
  17. package/dist/{UserOptions-BqmUW9Kp.js → UserOptions-B3I-s3Lw.js} +2 -2
  18. package/dist/components/arrow.js +1 -1
  19. package/dist/components/vue-ui-3d-bar.js +3 -3
  20. package/dist/components/vue-ui-accordion.js +1 -1
  21. package/dist/components/vue-ui-age-pyramid.js +3 -3
  22. package/dist/components/vue-ui-annotator.js +1 -1
  23. package/dist/components/vue-ui-bullet.js +3 -3
  24. package/dist/components/vue-ui-candlestick.js +3 -3
  25. package/dist/components/vue-ui-carousel-table.js +1 -1
  26. package/dist/components/vue-ui-chestnut.js +3 -3
  27. package/dist/components/vue-ui-chord.js +3 -3
  28. package/dist/components/vue-ui-circle-pack.js +3 -3
  29. package/dist/components/vue-ui-cursor.js +1 -1
  30. package/dist/components/vue-ui-dashboard.js +1 -1
  31. package/dist/components/vue-ui-digits.js +1 -1
  32. package/dist/components/vue-ui-donut-evolution.js +2 -2
  33. package/dist/components/vue-ui-donut.js +3 -3
  34. package/dist/components/vue-ui-dumbbell.js +3 -3
  35. package/dist/components/vue-ui-flow.js +3 -3
  36. package/dist/components/vue-ui-funnel.js +2 -2
  37. package/dist/components/vue-ui-galaxy.js +1 -1
  38. package/dist/components/vue-ui-gauge.js +1 -1
  39. package/dist/components/vue-ui-gizmo.js +1 -1
  40. package/dist/components/vue-ui-heatmap.js +1 -1
  41. package/dist/components/vue-ui-history-plot.js +3 -3
  42. package/dist/components/vue-ui-horizontal-bar.js +3 -3
  43. package/dist/components/vue-ui-icon.js +1 -1
  44. package/dist/components/vue-ui-kpi.js +1 -1
  45. package/dist/components/vue-ui-mini-loader.js +1 -1
  46. package/dist/components/vue-ui-molecule.js +3 -3
  47. package/dist/components/vue-ui-mood-radar.js +3 -3
  48. package/dist/components/vue-ui-nested-donuts.js +2 -2
  49. package/dist/components/vue-ui-onion.js +3 -3
  50. package/dist/components/vue-ui-parallel-coordinate-plot.js +1 -1
  51. package/dist/components/vue-ui-quadrant.js +3 -3
  52. package/dist/components/vue-ui-quick-chart.js +3 -3
  53. package/dist/components/vue-ui-radar.js +3 -3
  54. package/dist/components/vue-ui-rating.js +1 -1
  55. package/dist/components/vue-ui-relation-circle.js +3 -3
  56. package/dist/components/vue-ui-ridgeline.js +3 -3
  57. package/dist/components/vue-ui-rings.js +3 -3
  58. package/dist/components/vue-ui-scatter.js +3 -3
  59. package/dist/components/vue-ui-skeleton.js +1 -1
  60. package/dist/components/vue-ui-smiley.js +1 -1
  61. package/dist/components/vue-ui-spark-trend.js +1 -1
  62. package/dist/components/vue-ui-sparkbar.js +2 -2
  63. package/dist/components/vue-ui-sparkgauge.js +3 -3
  64. package/dist/components/vue-ui-sparkhistogram.js +3 -3
  65. package/dist/components/vue-ui-sparkline.js +3 -3
  66. package/dist/components/vue-ui-sparkstackbar.js +2 -2
  67. package/dist/components/vue-ui-stackbar.js +3 -3
  68. package/dist/components/vue-ui-stackline.js +1 -1
  69. package/dist/components/vue-ui-strip-plot.js +3 -3
  70. package/dist/components/vue-ui-table-heatmap.js +1 -1
  71. package/dist/components/vue-ui-table-sparkline.js +2 -2
  72. package/dist/components/vue-ui-table.js +1 -1
  73. package/dist/components/vue-ui-thermometer.js +3 -3
  74. package/dist/components/vue-ui-timer.js +1 -1
  75. package/dist/components/vue-ui-tiremarks.js +2 -2
  76. package/dist/components/vue-ui-treemap.js +3 -3
  77. package/dist/components/vue-ui-vertical-bar.js +1 -1
  78. package/dist/components/vue-ui-waffle.js +2 -2
  79. package/dist/components/vue-ui-wheel.js +1 -1
  80. package/dist/components/vue-ui-word-cloud.js +3 -3
  81. package/dist/components/vue-ui-world.js +1 -1
  82. package/dist/components/vue-ui-xy-canvas.js +3 -3
  83. package/dist/components/vue-ui-xy.js +3 -3
  84. package/dist/{dom-to-png--BNgrTZV.js → dom-to-png-CH2DfsJe.js} +1 -1
  85. package/dist/{img-BecE5qXd.js → img-DUzJeMlr.js} +1 -1
  86. package/dist/{lib-C_mNZmhD.js → lib-C5BH09_g.js} +111 -110
  87. package/dist/{pdf-DuG5j3Wv.js → pdf-BSWQncok.js} +1 -1
  88. package/dist/style.css +1 -1
  89. package/dist/types/vue-data-ui.d.ts +2 -0
  90. package/dist/{useAutoSizeLabelsInsideViewbox-BhzfwQ_k.js → useAutoSizeLabelsInsideViewbox-DOALwU4q.js} +7 -7
  91. package/dist/{useNestedProp-CIoDlpHu.js → useNestedProp-CWo6bftQ.js} +1 -1
  92. package/dist/{usePrinter-DTzqpYKF.js → usePrinter-DCJzEiS8.js} +2 -2
  93. package/dist/useThemeCheck-DGJ31Vi5.js +32 -0
  94. package/dist/{useTimeLabels-BGFjWgrv.js → useTimeLabels-C5qMhpbe.js} +50 -49
  95. package/dist/{vue-data-ui-BWuOXu_s.js → vue-data-ui-d-OXgGG3.js} +78 -78
  96. package/dist/vue-data-ui.js +225 -205
  97. package/dist/{vue-ui-3d-bar-BNQAuLqF.js → vue-ui-3d-bar-BLbSbx2V.js} +546 -517
  98. package/dist/{vue-ui-accordion-SSLXLlNz.js → vue-ui-accordion-DSdZUn2C.js} +3 -3
  99. package/dist/vue-ui-age-pyramid-DQ-xc-if.js +960 -0
  100. package/dist/{vue-ui-annotator-34Ld0u5M.js → vue-ui-annotator-DRaH8hXn.js} +7 -7
  101. package/dist/vue-ui-bullet-BvMdxLkK.js +657 -0
  102. package/dist/{vue-ui-candlestick-BcChw-8c.js → vue-ui-candlestick-DIWeygxV.js} +596 -561
  103. package/dist/{vue-ui-carousel-table-Cp_od0lI.js → vue-ui-carousel-table-DM2HJFMH.js} +48 -48
  104. package/dist/{vue-ui-chestnut-DTaIsP72.js → vue-ui-chestnut-DNOG6dqY.js} +534 -505
  105. package/dist/vue-ui-chord-D2wPt2JV.js +1182 -0
  106. package/dist/vue-ui-circle-pack-D_GDv7OV.js +832 -0
  107. package/dist/{vue-ui-cursor-lW-dVs_k.js → vue-ui-cursor-BMe8ZiV6.js} +2 -2
  108. package/dist/{vue-ui-dashboard-DIymn9Cx.js → vue-ui-dashboard-BMby447A.js} +140 -140
  109. package/dist/{vue-ui-digits-YHA3fA0j.js → vue-ui-digits-D382I0-w.js} +2 -2
  110. package/dist/{vue-ui-donut-BaDmbWLh.js → vue-ui-donut-BqiNPW3q.js} +634 -602
  111. package/dist/vue-ui-donut-evolution-BL7HtdsP.js +1243 -0
  112. package/dist/vue-ui-dumbbell-BlTDnM8L.js +1258 -0
  113. package/dist/vue-ui-flow-BxIv20FH.js +1026 -0
  114. package/dist/vue-ui-funnel-Tnjg4srR.js +743 -0
  115. package/dist/vue-ui-galaxy-CYDVXdNj.js +837 -0
  116. package/dist/vue-ui-gauge-DAcpazK7.js +864 -0
  117. package/dist/{vue-ui-gizmo-E33_xZte.js → vue-ui-gizmo-Bg2TpPwm.js} +3 -3
  118. package/dist/{vue-ui-heatmap-DJXMvFPp.js → vue-ui-heatmap-BPEE_cLi.js} +501 -466
  119. package/dist/vue-ui-history-plot-BhfbLer8.js +1239 -0
  120. package/dist/{vue-ui-kpi-C-XuLBVQ.js → vue-ui-kpi-CKMZDc3n.js} +3 -3
  121. package/dist/{vue-ui-mini-loader-DawncJvl.js → vue-ui-mini-loader-BN72OfS0.js} +2 -2
  122. package/dist/vue-ui-molecule-DnzXYuUi.js +782 -0
  123. package/dist/vue-ui-mood-radar-CXyQEfeM.js +930 -0
  124. package/dist/vue-ui-nested-donuts-Dq8JoU5d.js +1454 -0
  125. package/dist/vue-ui-onion-D0KUHi-Z.js +944 -0
  126. package/dist/vue-ui-parallel-coordinate-plot-DNc2L4Rg.js +1080 -0
  127. package/dist/{vue-ui-quadrant-B2bLWyCm.js → vue-ui-quadrant-Cp8loNVN.js} +510 -481
  128. package/dist/{vue-ui-quick-chart-J_RmCwI_.js → vue-ui-quick-chart-kuTdgAKG.js} +795 -758
  129. package/dist/vue-ui-radar-x2Ry_IGa.js +1013 -0
  130. package/dist/{vue-ui-rating-CBS8zaQd.js → vue-ui-rating-DtzmtJwF.js} +26 -26
  131. package/dist/vue-ui-relation-circle-DbYE9UHq.js +671 -0
  132. package/dist/vue-ui-ridgeline-yaMl8iIE.js +1302 -0
  133. package/dist/vue-ui-rings-BowsO9I8.js +884 -0
  134. package/dist/vue-ui-scatter-C_nz0A4x.js +1619 -0
  135. package/dist/{vue-ui-skeleton-DsrlMELy.js → vue-ui-skeleton-DdXq2gl1.js} +3 -3
  136. package/dist/{vue-ui-smiley-P_8WIBDD.js → vue-ui-smiley-OYyM-ukP.js} +2 -2
  137. package/dist/vue-ui-spark-trend-BLticwHl.js +364 -0
  138. package/dist/vue-ui-sparkbar-DC2sDr9_.js +381 -0
  139. package/dist/vue-ui-sparkgauge-BENUfyuR.js +260 -0
  140. package/dist/vue-ui-sparkhistogram-BY0jsNsc.js +411 -0
  141. package/dist/vue-ui-sparkline-fS36LGCB.js +549 -0
  142. package/dist/vue-ui-sparkstackbar-C59ocU83.js +470 -0
  143. package/dist/vue-ui-stackbar-BtWWtzDp.js +1867 -0
  144. package/dist/vue-ui-stackline-CsGEHOOr.js +1963 -0
  145. package/dist/{vue-ui-strip-plot-CTtivaxm.js → vue-ui-strip-plot-n_rEdwkM.js} +343 -314
  146. package/dist/{vue-ui-table-CHt3AQiq.js → vue-ui-table-Kv2YL5OU.js} +5 -5
  147. package/dist/vue-ui-table-heatmap-vQEFrjCX.js +307 -0
  148. package/dist/{vue-ui-table-sparkline-D5MckwMl.js → vue-ui-table-sparkline-B8CCAdco.js} +292 -263
  149. package/dist/vue-ui-thermometer-C1Hr_LrY.js +613 -0
  150. package/dist/{vue-ui-timer-B-Xa6ALH.js → vue-ui-timer-CmnO99_j.js} +25 -25
  151. package/dist/vue-ui-tiremarks-DbZbhw6Q.js +477 -0
  152. package/dist/vue-ui-treemap-BGMpUu5v.js +1359 -0
  153. package/dist/{vue-ui-vertical-bar-D9XQe_ud.js → vue-ui-vertical-bar-CWlGQoB3.js} +520 -485
  154. package/dist/{vue-ui-waffle-Bk98w86A.js → vue-ui-waffle-BVVrMghT.js} +376 -347
  155. package/dist/vue-ui-wheel-B2pFBeKR.js +690 -0
  156. package/dist/vue-ui-word-cloud-BqKSDn2J.js +904 -0
  157. package/dist/{vue-ui-world-xOY__pp8.js → vue-ui-world-glj9mQAg.js} +57 -57
  158. package/dist/vue-ui-xy-BdXV4naK.js +3455 -0
  159. package/dist/vue-ui-xy-canvas-Cr13t9M5.js +1599 -0
  160. package/dist/vue_ui_vertical_bar-CELc39b8.js +18 -0
  161. package/package.json +5 -5
  162. package/dist/themes-DH-N_ePR.js +0 -54
  163. package/dist/vue-ui-age-pyramid-DsOlpJBh.js +0 -933
  164. package/dist/vue-ui-bullet-Ci4lO4_W.js +0 -630
  165. package/dist/vue-ui-chord-BKC--Nbq.js +0 -1153
  166. package/dist/vue-ui-circle-pack-B3sfU0Vo.js +0 -803
  167. package/dist/vue-ui-donut-evolution-BqUzmyW2.js +0 -1208
  168. package/dist/vue-ui-dumbbell-CWKTrzsm.js +0 -1231
  169. package/dist/vue-ui-flow-SMbuDPdL.js +0 -991
  170. package/dist/vue-ui-funnel-3fRlMBzq.js +0 -716
  171. package/dist/vue-ui-galaxy-CFZ1xYD5.js +0 -808
  172. package/dist/vue-ui-gauge-DJpbjfpL.js +0 -835
  173. package/dist/vue-ui-history-plot-CvPMx5Lg.js +0 -1204
  174. package/dist/vue-ui-molecule-CasngKZI.js +0 -753
  175. package/dist/vue-ui-mood-radar-DGz2TQi4.js +0 -903
  176. package/dist/vue-ui-nested-donuts-Bjjz2sWG.js +0 -1419
  177. package/dist/vue-ui-onion-DwTIY6i1.js +0 -915
  178. package/dist/vue-ui-parallel-coordinate-plot-DedxvtPN.js +0 -1051
  179. package/dist/vue-ui-radar-D1rz2RnH.js +0 -984
  180. package/dist/vue-ui-relation-circle-DUfRwwo1.js +0 -641
  181. package/dist/vue-ui-ridgeline-DKPWMWRc.js +0 -1273
  182. package/dist/vue-ui-rings-BY0EQGLb.js +0 -855
  183. package/dist/vue-ui-scatter-ky9p5Pgh.js +0 -1590
  184. package/dist/vue-ui-spark-trend-DkJn_3FI.js +0 -337
  185. package/dist/vue-ui-sparkbar-qB1fmgej.js +0 -352
  186. package/dist/vue-ui-sparkgauge-BezFN_Rc.js +0 -233
  187. package/dist/vue-ui-sparkhistogram-DGt5b8FR.js +0 -384
  188. package/dist/vue-ui-sparkline-D7Wx1ejg.js +0 -514
  189. package/dist/vue-ui-sparkstackbar-DtO7-yim.js +0 -441
  190. package/dist/vue-ui-stackbar-Dr48I48D.js +0 -1832
  191. package/dist/vue-ui-stackline-Juns5Yh4.js +0 -1928
  192. package/dist/vue-ui-table-heatmap-Cn-56b5F.js +0 -282
  193. package/dist/vue-ui-thermometer-BOidpwAZ.js +0 -584
  194. package/dist/vue-ui-tiremarks-BsTyVS2P.js +0 -450
  195. package/dist/vue-ui-treemap-BWTaY91B.js +0 -1330
  196. package/dist/vue-ui-wheel-nj73b_Dc.js +0 -663
  197. package/dist/vue-ui-word-cloud-Dcaogr-D.js +0 -875
  198. package/dist/vue-ui-xy-BT67faLv.js +0 -3424
  199. package/dist/vue-ui-xy-canvas-BoB7-4QK.js +0 -1564
@@ -1,803 +0,0 @@
1
- import { useCssVars as xt, computed as x, defineAsyncComponent as B, ref as m, toRefs as Ct, watch as ne, shallowRef as Ge, onMounted as $t, onBeforeUnmount as _t, watchEffect as zt, createElementBlock as w, openBlock as p, unref as i, normalizeStyle as se, normalizeClass as We, createBlock as G, createCommentVNode as _, renderSlot as b, withCtx as g, normalizeProps as S, guardReactiveProps as O, createSlots as je, createVNode as qe, Fragment as ue, renderList as Tt, createElementVNode as z, mergeProps as ke, toDisplayString as W, resolveDynamicComponent as St, createTextVNode as Xe, nextTick as Ye } from "vue";
2
- import { u as Ot, a as Ze } from "./useNestedProp-CIoDlpHu.js";
3
- import { c as Je, t as Dt, b as we, p as re, o as It, f as Pt, e as Ft, h as At, U as Ke, d as xe, X as Mt, S as Et, J as Q, K as Nt, P as Rt, Q as Bt, a as Qe } from "./lib-C_mNZmhD.js";
4
- import { t as Lt, u as Ut } from "./useResponsive-DfdjqQps.js";
5
- import { u as Vt } from "./usePrinter-DTzqpYKF.js";
6
- import { u as Ht, B as Gt } from "./BaseScanner-BgWxam9d.js";
7
- import { u as Wt } from "./useUserOptionState-BIvW1Kz7.js";
8
- import { u as jt } from "./useChartAccessibility-9icAAmYg.js";
9
- import qt from "./img-BecE5qXd.js";
10
- import Xt from "./Title-Bb1VWCtR.js";
11
- import { t as Yt } from "./themes-DH-N_ePR.js";
12
- import { u as Zt } from "./useSvgExport-DrjCWun4.js";
13
- import { _ as Jt } from "./_plugin-vue_export-helper-CHgC5LLL.js";
14
- function et(u, c = 0) {
15
- const f = u.reduce((o, { x: s, r: d }) => Math.min(o, s - d - c), 1 / 0), y = u.reduce((o, { x: s, r: d }) => Math.max(o, s + d + c), -1 / 0), v = u.reduce((o, { y: s, r: d }) => Math.min(o, s - d - c), 1 / 0), n = u.reduce((o, { y: s, r: d }) => Math.max(o, s + d + c), -1 / 0);
16
- return [f, v, y - f, n - v];
17
- }
18
- function Kt(u, c, f) {
19
- const y = u._, v = u.next._, n = y.r + v.r, o = (y.x * v.r + v.x * y.r) / n, s = (y.y * v.r + v.y * y.r) / n;
20
- return Math.max(Math.abs(o * f), Math.abs(s * c));
21
- }
22
- function tt(u, c, f) {
23
- const y = Kt, v = u.length;
24
- if (!v) return u;
25
- let n, o, s;
26
- if (n = u[0], n.x = 0, n.y = 0, !(v > 1) || (o = u[1], n.x = -o.r, o.x = n.r, o.y = 0, !(v > 2))) return u;
27
- at(o, n, s = u[2]), n = new ie(n), o = new ie(o), s = new ie(s), n.next = s.previous = o, o.next = n.previous = s, s.next = o.previous = n;
28
- e: for (let d = 3; d < v; ++d) {
29
- at(n._, o._, s = u[d]), s = new ie(s);
30
- let C = o.next, $ = n.previous, ee = o._.r, te = n._.r;
31
- do
32
- if (ee <= te) {
33
- if (lt(C._, s._)) {
34
- o = C, n.next = o, o.previous = n, --d;
35
- continue e;
36
- }
37
- ee += C._.r, C = C.next;
38
- } else {
39
- if (lt($._, s._)) {
40
- n = $, n.next = o, o.previous = n, --d;
41
- continue e;
42
- }
43
- te += $._.r, $ = $.previous;
44
- }
45
- while (C !== $.next);
46
- s.previous = n, s.next = o, n.next = o.previous = o = s;
47
- let j = y(n, f, c), D;
48
- for (; (s = s.next) !== o; )
49
- (D = y(s, f, c)) < j && (n = s, j = D);
50
- o = n.next;
51
- }
52
- return u;
53
- }
54
- function at(u, c, f) {
55
- const y = u.x - c.x, v = u.y - c.y, n = y * y + v * v;
56
- if (n) {
57
- const o = (c.r + f.r) ** 2, s = (u.r + f.r) ** 2;
58
- if (o > s) {
59
- const d = (n + s - o) / (2 * n), C = Math.sqrt(Math.max(0, s / n - d * d));
60
- f.x = u.x - d * y - C * v, f.y = u.y - d * v + C * y;
61
- } else {
62
- const d = (n + o - s) / (2 * n), C = Math.sqrt(Math.max(0, o / n - d * d));
63
- f.x = c.x + d * y - C * v, f.y = c.y + d * v + C * y;
64
- }
65
- } else
66
- f.x = c.x + f.r, f.y = c.y;
67
- }
68
- function lt(u, c) {
69
- const f = u.r + c.r - 1e-6, y = c.x - u.x, v = c.y - u.y;
70
- return f > 0 && f * f > y * y + v * v;
71
- }
72
- class ie {
73
- constructor(c) {
74
- this._ = c, this.next = null, this.previous = null;
75
- }
76
- }
77
- const Qt = ["id"], ea = ["xmlns", "viewBox", "height", "width"], ta = ["x", "y", "width", "height"], aa = ["id"], la = ["stop-color"], oa = ["stop-color"], na = ["stop-color"], sa = { key: 0 }, ua = ["x", "y", "width", "height", "stroke", "stroke-width", "fill", "rx", "onMouseenter", "onMouseout", "onClick"], ra = ["x", "y", "width", "height", "stroke", "stroke-width", "fill", "rx"], ia = ["opacity", "x", "y", "font-size", "fill", "font-weight"], ca = ["opacity", "x", "y", "font-size", "fill", "font-weight"], va = ["cx", "cy", "r", "opacity", "stroke", "stroke-width", "fill"], da = {
78
- key: 0,
79
- style: { pointerEvents: "none" }
80
- }, ha = { key: 1 }, fa = ["opacity", "x", "y", "font-size", "fill", "font-weight"], ma = ["opacity", "x", "y", "font-size", "fill", "font-weight"], pa = {
81
- key: 4,
82
- class: "vue-data-ui-watermark"
83
- }, ya = ["innerHTML"], ba = {
84
- __name: "vue-ui-circle-pack",
85
- props: {
86
- config: {
87
- type: Object,
88
- default() {
89
- return {};
90
- }
91
- },
92
- dataset: {
93
- type: Array,
94
- default() {
95
- return [];
96
- }
97
- }
98
- },
99
- emits: ["selectDatapoint"],
100
- setup(u, { expose: c, emit: f }) {
101
- xt((t) => ({
102
- v35c9c350: V.value,
103
- v432f6b49: me.value
104
- }));
105
- const y = B(() => import("./BaseIcon-DLFL0M4-.js")), v = B(() => import("./vue-ui-accordion-SSLXLlNz.js")), n = B(() => import("./DataTable-UCyd_BQI.js")), o = B(() => import("./UserOptions-BqmUW9Kp.js")), s = B(() => import("./PenAndPaper-BJSMejV9.js")), d = B(() => import("./PackageVersion-D_4Hr4S4.js")), C = B(() => import("./BaseDraggableDialog-DhKIof09.js")), $ = u, ee = f, { vue_ui_circle_pack: te } = Ot(), j = x(() => !!$.dataset && $.dataset.length), D = m(Je()), T = m(null), Ce = m(null), $e = m(null), _e = m(0), ze = m(0), Te = m(0), ot = m(null), q = m(null), ce = m(null), e = m(he()), { loading: Se, FINAL_DATASET: Oe } = Ht({
106
- ...Ct($),
107
- FINAL_CONFIG: e,
108
- prepareConfig: he,
109
- skeletonDataset: [
110
- { name: "_", value: 13, color: "#F2F2F2" },
111
- { name: "_", value: 8, color: "#DBDBDB" },
112
- { name: "_", value: 5, color: "#ADADAD" },
113
- { name: "_", value: 3, color: "#969696" },
114
- { name: "_", value: 2, color: "#808080" },
115
- { name: "_", value: 1, color: "#696969" }
116
- ],
117
- skeletonConfig: Dt({
118
- defaultConfig: e.value,
119
- userConfig: {
120
- userOptions: { show: !1 },
121
- table: { show: !1 },
122
- style: {
123
- chart: {
124
- backgroundColor: "#99999930",
125
- circles: {
126
- stroke: "#6A6A6A",
127
- labels: {
128
- name: { show: !1 },
129
- value: { show: !1 }
130
- }
131
- }
132
- }
133
- }
134
- }
135
- })
136
- }), { svgRef: ve } = jt({ config: e.value.style.chart.title }), {
137
- userOptionsVisible: de,
138
- setUserOptionsVisibility: De,
139
- keepUserOptionState: Ie
140
- } = Wt({ config: e.value });
141
- function he() {
142
- const t = Ze({
143
- userConfig: $.config,
144
- defaultConfig: te
145
- });
146
- return t.theme ? {
147
- ...Ze({
148
- userConfig: Yt.vue_ui_circle_pack[t.theme] || $.config,
149
- defaultConfig: t
150
- }),
151
- customPalette: we[t.theme] || re
152
- } : t;
153
- }
154
- ne(() => $.config, (t) => {
155
- e.value = he(), de.value = !e.value.userOptions.showOnChartHover, fe(), _e.value += 1, ze.value += 1, M.value.showTable = e.value.table.show;
156
- }, { deep: !0 });
157
- const { isPrinting: Pe, isImaging: Fe, generatePdf: Ae, generateImage: Me } = Vt({
158
- elementId: `vue-ui-circle-pack_${D.value}`,
159
- fileName: e.value.style.chart.title.text || "vue-ui-circle-pack",
160
- options: e.value.userOptions.print
161
- }), nt = x(() => e.value.userOptions.show && !e.value.style.chart.title.text), M = m({
162
- showTable: e.value.table.show
163
- });
164
- ne(e, () => {
165
- M.value = {
166
- showTable: e.value.table.show
167
- };
168
- }, { immediate: !0 });
169
- const I = Ge(null), L = Ge(null), E = m({ h: 10, w: 10 }), Ee = m(0), N = m([0, 0, 100, 100]), X = m({ h: 0, w: 0 }), st = x(() => e.value.debug);
170
- async function fe() {
171
- It($.dataset) && Pt({
172
- componentName: "VueUiCirclePack",
173
- type: "dataset",
174
- debug: st.value
175
- }), E.value = { h: 10, w: 10 }, N.value = [0, 0, 100, 100], X.value = { h: 0, w: 0 }, U.value = await tt(ae.value), P.value = et(U.value, 1).join(" "), X.value = Ne(T.value);
176
- const t = Lt(() => {
177
- const { width: l, height: a, heightTitle: r, heightNoTitle: k } = Ut({
178
- chart: T.value,
179
- title: Ce.value,
180
- noTitle: $e.value
181
- }), R = Math.max(10, l), ge = Math.max(10, a - 12);
182
- Ee.value = e.value.style.chart.title.text ? r : k, requestAnimationFrame(() => {
183
- E.value.w = R, E.value.h = ge - Ee.value, Ye(async () => {
184
- const kt = ae.value.map((wt) => ({ ...wt }));
185
- U.value = await tt(kt, E.value.h, E.value.w), N.value = et(U.value, 1), P.value = N.value.join(" "), X.value = Ne(T.value);
186
- });
187
- });
188
- });
189
- I.value && (L.value && I.value.unobserve(L.value), I.value.disconnect()), I.value = new ResizeObserver(t), L.value = T.value.parentNode, I.value.observe(L.value);
190
- }
191
- $t(fe), _t(() => {
192
- I.value && (L.value && I.value.unobserve(L.value), I.value.disconnect());
193
- });
194
- function Ne(t) {
195
- if (!t || !t.parentElement)
196
- return console.warn("Component or parent element is missing."), { w: 0, h: 0 };
197
- const l = t.parentElement;
198
- if (l.offsetWidth > 0 && l.offsetHeight > 0)
199
- return { w: l.offsetWidth, h: l.offsetHeight };
200
- const a = window.getComputedStyle(l), r = a.width, k = a.height;
201
- return r !== "auto" && k !== "auto" && parseFloat(r) > 0 && parseFloat(k) > 0 ? { w: parseFloat(r), h: parseFloat(k) } : { w: 0, h: 0 };
202
- }
203
- ne(() => Oe.value, async (t) => {
204
- await fe();
205
- }, { deep: !0 });
206
- const ut = x(() => Ft(e.value.customPalette)), ae = x(() => Oe.value.map((t, l) => {
207
- const a = At(t.color) || ut.value[l] || we[e.value.theme || "default"][l % we[e.value.theme || "default"].length] || re[l] || re[l % re.length];
208
- return {
209
- ...t,
210
- r: t.value,
211
- id: Je(),
212
- color: a
213
- };
214
- }).filter((t) => ![null, void 0, 1 / 0, -1 / 0].includes(t.value))), U = m([]), P = m("0 0 100 100"), Y = x(() => Math.max(...U.value.map((t) => t.r)));
215
- function Re(t, l) {
216
- return l / Y.value * t;
217
- }
218
- function rt(t, l) {
219
- h.value = null, e.value.events.datapointLeave && e.value.events.datapointLeave({ datapoint: t, seriesIndex: l });
220
- }
221
- function it(t, l) {
222
- ee("selectDatapoint", t), e.value.events.datapointClick && e.value.events.datapointClick({ datapoint: t, seriesIndex: l });
223
- }
224
- function ct(t, l) {
225
- vt(t), e.value.events.datapointEnter && e.value.events.datapointEnter({ datapoint: t, seriesIndex: l });
226
- }
227
- const h = m(null);
228
- function vt(t) {
229
- e.value.style.chart.circles.zoom.show && (h.value = t);
230
- }
231
- const V = x(() => h.value ? h.value.r : 0), me = x(() => A.value ? V.value : h.value ? h.value.r > N.value[3] / 6 * e.value.style.chart.circles.zoom.zoomRatio ? h.value.r : N.value[3] / 6 * e.value.style.chart.circles.zoom.zoomRatio : 0), F = m(0), dt = x(() => ({
232
- pointerEvents: "none",
233
- opacity: F.value,
234
- filter: `drop-shadow(0px 0px 6px ${Ke(h.value.color, e.value.style.chart.circles.zoom.shadowForce)})`
235
- })), Z = m(V.value);
236
- zt(() => {
237
- Z.value = V.value, F.value = 0;
238
- let t = null;
239
- function l(a) {
240
- t || (t = a);
241
- const r = (a - t) / e.value.style.chart.circles.zoom.animationFrameMs;
242
- r < 1 ? (Z.value = V.value + (me.value - V.value) * r, F.value = 0 + e.value.style.chart.circles.zoom.opacity * r, requestAnimationFrame(l)) : (Z.value = me.value, F.value = e.value.style.chart.circles.zoom.opacity);
243
- }
244
- requestAnimationFrame(l);
245
- });
246
- const J = x(() => ({
247
- name: e.value.style.chart.circles.zoom.label.name.fontSize * N.value[3] / 300,
248
- value: e.value.style.chart.circles.zoom.label.value.fontSize * N.value[3] / 300
249
- }));
250
- function pe(t) {
251
- return Qe(
252
- e.value.style.chart.circles.labels.value.formatter,
253
- t.value,
254
- xe({
255
- p: e.value.style.chart.circles.labels.value.prefix,
256
- v: t.value,
257
- s: e.value.style.chart.circles.labels.value.suffix,
258
- r: e.value.style.chart.circles.labels.value.rounding
259
- })
260
- );
261
- }
262
- function ht() {
263
- return Qe(
264
- e.value.style.chart.circles.zoom.label.value.formatter,
265
- h.value.value,
266
- xe({
267
- p: e.value.style.chart.circles.zoom.label.value.prefix,
268
- v: h.value.value,
269
- s: e.value.style.chart.circles.zoom.label.value.suffix,
270
- r: e.value.style.chart.circles.zoom.label.value.rounding
271
- })
272
- );
273
- }
274
- function Be(t) {
275
- if (!t)
276
- return 0;
277
- const l = t.r / pe(t).length * (pe(t).length === 1 ? 1 : 2);
278
- return Math.min(t.r / 2.5, l);
279
- }
280
- const H = m(!1);
281
- function Le(t) {
282
- H.value = t, Te.value += 1;
283
- }
284
- const A = m(!1);
285
- function ye() {
286
- A.value = !A.value;
287
- }
288
- const le = x(() => {
289
- const t = ae.value.map((a) => ({
290
- name: a.name,
291
- value: a.value,
292
- color: a.color
293
- })).toSorted((a, r) => r.value - a.value), l = t.map((a) => a.value);
294
- return { head: t, body: l };
295
- });
296
- function be(t = null) {
297
- Ye(() => {
298
- const l = le.value.head.map((k, R) => [[
299
- k.name
300
- ], [le.value.body[R]]]), a = [[e.value.style.chart.title.text], [e.value.style.chart.title.subtitle.text], [[""], [e.value.table.columnNames.value]]].concat(l), r = Rt(a);
301
- t ? t(r) : Bt({ csvContent: r, title: e.value.style.chart.title.text || "vue-ui-circle-pack" });
302
- });
303
- }
304
- const oe = x(() => {
305
- const t = [
306
- e.value.table.columnNames.datapoint,
307
- e.value.table.columnNames.value
308
- ], l = le.value.head.map((k, R) => {
309
- const ge = xe({
310
- p: e.value.style.chart.circles.labels.value.prefix,
311
- v: le.value.body[R],
312
- s: e.value.style.chart.circles.labels.value.suffix,
313
- r: e.value.style.chart.circles.labels.value.rounding
314
- });
315
- return [
316
- {
317
- color: k.color,
318
- name: k.name
319
- },
320
- ge
321
- ];
322
- }), a = {
323
- th: {
324
- backgroundColor: e.value.table.th.backgroundColor,
325
- color: e.value.table.th.color,
326
- outline: e.value.table.th.outline
327
- },
328
- td: {
329
- backgroundColor: e.value.table.td.backgroundColor,
330
- color: e.value.table.td.color,
331
- outline: e.value.table.td.outline
332
- },
333
- breakpoint: e.value.table.responsiveBreakpoint
334
- };
335
- return {
336
- colNames: [
337
- e.value.table.columnNames.datapoint,
338
- e.value.table.columnNames.value
339
- ],
340
- head: t,
341
- body: l,
342
- config: a
343
- };
344
- });
345
- function Ue() {
346
- M.value.showTable = !M.value.showTable;
347
- }
348
- function ft() {
349
- return ae.value;
350
- }
351
- async function mt({ scale: t = 2 } = {}) {
352
- if (!T.value) return;
353
- const { width: l, height: a } = T.value.getBoundingClientRect(), r = l / a, { imageUri: k, base64: R } = await qt({ domElement: T.value, base64: !0, img: !0, scale: t });
354
- return {
355
- imageUri: k,
356
- base64: R,
357
- title: e.value.style.chart.title.text,
358
- width: l,
359
- height: a,
360
- aspectRatio: r
361
- };
362
- }
363
- const K = x(() => {
364
- const t = e.value.table.useDialog && !e.value.table.show, l = M.value.showTable;
365
- return {
366
- component: t ? C : v,
367
- title: `${e.value.style.chart.title.text}${e.value.style.chart.title.subtitle.text ? `: ${e.value.style.chart.title.subtitle.text}` : ""}`,
368
- props: t ? {
369
- backgroundColor: e.value.table.th.backgroundColor,
370
- color: e.value.table.th.color,
371
- headerColor: e.value.table.th.color,
372
- headerBg: e.value.table.th.backgroundColor,
373
- isFullscreen: H.value,
374
- fullscreenParent: T.value,
375
- forcedWidth: Math.min(500, window.innerWidth * 0.8)
376
- } : {
377
- hideDetails: !0,
378
- config: {
379
- open: l,
380
- maxHeight: 1e4,
381
- body: {
382
- backgroundColor: e.value.style.chart.backgroundColor,
383
- color: e.value.style.chart.color
384
- },
385
- head: {
386
- backgroundColor: e.value.style.chart.backgroundColor,
387
- color: e.value.style.chart.color
388
- }
389
- }
390
- }
391
- };
392
- });
393
- ne(() => M.value.showTable, (t) => {
394
- e.value.table.show || (t && e.value.table.useDialog && q.value ? q.value.open() : "close" in q.value && q.value.close());
395
- });
396
- function Ve() {
397
- M.value.showTable = !1, ce.value && ce.value.setTableIconState(!1);
398
- }
399
- const pt = x(() => e.value.style.chart.backgroundColor), yt = x(() => e.value.style.chart.title), { exportSvg: bt, getSvg: gt } = Zt({
400
- svg: ve,
401
- title: yt,
402
- backgroundColor: pt
403
- });
404
- async function He({ isCb: t }) {
405
- if (t) {
406
- const { blob: l, url: a, text: r, dataUrl: k } = await gt();
407
- e.value.userOptions.callbacks.svg({ blob: l, url: a, text: r, dataUrl: k });
408
- } else
409
- bt();
410
- }
411
- return c({
412
- getData: ft,
413
- getImage: mt,
414
- generateCsv: be,
415
- generatePdf: Ae,
416
- generateImage: Me,
417
- generateSvg: He,
418
- toggleTable: Ue,
419
- toggleAnnotator: ye,
420
- toggleFullscreen: Le
421
- }), (t, l) => (p(), w("div", {
422
- id: `vue-ui-circle-pack_${D.value}`,
423
- class: We(`vue-data-ui-component vue-ui-circle-pack ${H.value ? "vue-data-ui-wrapper-fullscreen" : ""} ${i(Se) ? "loading" : ""}`),
424
- ref_key: "circlePackChart",
425
- ref: T,
426
- style: se(`font-family:${e.value.style.fontFamily};text-align:center;background:${e.value.style.chart.backgroundColor}; height: ${X.value.h}px; width:${X.value.w}px`),
427
- onMouseenter: l[1] || (l[1] = () => i(De)(!0)),
428
- onMouseleave: l[2] || (l[2] = () => i(De)(!1))
429
- }, [
430
- e.value.userOptions.buttons.annotator ? (p(), G(i(s), {
431
- key: 0,
432
- svgRef: i(ve),
433
- backgroundColor: e.value.style.chart.backgroundColor,
434
- color: e.value.style.chart.color,
435
- active: A.value,
436
- scale: Y.value / 100,
437
- onClose: ye
438
- }, {
439
- "annotator-action-close": g(() => [
440
- b(t.$slots, "annotator-action-close", {}, void 0, !0)
441
- ]),
442
- "annotator-action-color": g(({ color: a }) => [
443
- b(t.$slots, "annotator-action-color", S(O({ color: a })), void 0, !0)
444
- ]),
445
- "annotator-action-draw": g(({ mode: a }) => [
446
- b(t.$slots, "annotator-action-draw", S(O({ mode: a })), void 0, !0)
447
- ]),
448
- "annotator-action-undo": g(({ disabled: a }) => [
449
- b(t.$slots, "annotator-action-undo", S(O({ disabled: a })), void 0, !0)
450
- ]),
451
- "annotator-action-redo": g(({ disabled: a }) => [
452
- b(t.$slots, "annotator-action-redo", S(O({ disabled: a })), void 0, !0)
453
- ]),
454
- "annotator-action-delete": g(({ disabled: a }) => [
455
- b(t.$slots, "annotator-action-delete", S(O({ disabled: a })), void 0, !0)
456
- ]),
457
- _: 3
458
- }, 8, ["svgRef", "backgroundColor", "color", "active", "scale"])) : _("", !0),
459
- b(t.$slots, "userConfig", {}, void 0, !0),
460
- nt.value ? (p(), w("div", {
461
- key: 1,
462
- ref_key: "noTitle",
463
- ref: $e,
464
- class: "vue-data-ui-no-title-space",
465
- style: "height:36px; width: 100%;background:transparent"
466
- }, null, 512)) : _("", !0),
467
- e.value.style.chart.title.text ? (p(), w("div", {
468
- key: 2,
469
- ref_key: "chartTitle",
470
- ref: Ce,
471
- style: "width:100%;background:transparent;padding-bottom:12px"
472
- }, [
473
- (p(), G(Xt, {
474
- key: `title_${_e.value}`,
475
- config: {
476
- title: {
477
- cy: "donut-div-title",
478
- ...e.value.style.chart.title
479
- },
480
- subtitle: {
481
- cy: "donut-div-subtitle",
482
- ...e.value.style.chart.title.subtitle
483
- }
484
- }
485
- }, null, 8, ["config"]))
486
- ], 512)) : _("", !0),
487
- e.value.userOptions.show && j.value && (i(Ie) || i(de)) ? (p(), G(i(o), {
488
- ref_key: "userOptionsRef",
489
- ref: ce,
490
- key: `user_option_${Te.value}`,
491
- backgroundColor: e.value.style.chart.backgroundColor,
492
- color: e.value.style.chart.color,
493
- isPrinting: i(Pe),
494
- isImaging: i(Fe),
495
- uid: D.value,
496
- hasTooltip: !1,
497
- hasLabel: !1,
498
- hasPdf: e.value.userOptions.buttons.pdf,
499
- hasImg: e.value.userOptions.buttons.img,
500
- hasSvg: e.value.userOptions.buttons.svg,
501
- hasXls: e.value.userOptions.buttons.csv,
502
- hasTable: e.value.userOptions.buttons.table,
503
- hasFullscreen: e.value.userOptions.buttons.fullscreen,
504
- isFullscreen: H.value,
505
- chartElement: T.value,
506
- position: e.value.userOptions.position,
507
- callbacks: e.value.userOptions.callbacks,
508
- printScale: e.value.userOptions.print.scale,
509
- titles: { ...e.value.userOptions.buttonTitles },
510
- hasAnnotator: e.value.userOptions.buttons.annotator,
511
- isAnnotation: A.value,
512
- tableDialog: e.value.table.useDialog,
513
- onToggleFullscreen: Le,
514
- onGeneratePdf: i(Ae),
515
- onGenerateCsv: be,
516
- onGenerateImage: i(Me),
517
- onGenerateSvg: He,
518
- onToggleTable: Ue,
519
- onToggleAnnotator: ye,
520
- style: se({ visibility: i(Ie) ? i(de) ? "visible" : "hidden" : "visible" })
521
- }, je({ _: 2 }, [
522
- t.$slots.menuIcon ? {
523
- name: "menuIcon",
524
- fn: g(({ isOpen: a, color: r }) => [
525
- b(t.$slots, "menuIcon", S(O({ isOpen: a, color: r })), void 0, !0)
526
- ]),
527
- key: "0"
528
- } : void 0,
529
- t.$slots.optionPdf ? {
530
- name: "optionPdf",
531
- fn: g(() => [
532
- b(t.$slots, "optionPdf", {}, void 0, !0)
533
- ]),
534
- key: "1"
535
- } : void 0,
536
- t.$slots.optionCsv ? {
537
- name: "optionCsv",
538
- fn: g(() => [
539
- b(t.$slots, "optionCsv", {}, void 0, !0)
540
- ]),
541
- key: "2"
542
- } : void 0,
543
- t.$slots.optionImg ? {
544
- name: "optionImg",
545
- fn: g(() => [
546
- b(t.$slots, "optionImg", {}, void 0, !0)
547
- ]),
548
- key: "3"
549
- } : void 0,
550
- t.$slots.optionSvg ? {
551
- name: "optionSvg",
552
- fn: g(() => [
553
- b(t.$slots, "optionSvg", {}, void 0, !0)
554
- ]),
555
- key: "4"
556
- } : void 0,
557
- t.$slots.optionTable ? {
558
- name: "optionTable",
559
- fn: g(() => [
560
- b(t.$slots, "optionTable", {}, void 0, !0)
561
- ]),
562
- key: "5"
563
- } : void 0,
564
- t.$slots.optionFullscreen ? {
565
- name: "optionFullscreen",
566
- fn: g(({ toggleFullscreen: a, isFullscreen: r }) => [
567
- b(t.$slots, "optionFullscreen", S(O({ toggleFullscreen: a, isFullscreen: r })), void 0, !0)
568
- ]),
569
- key: "6"
570
- } : void 0,
571
- t.$slots.optionAnnotator ? {
572
- name: "optionAnnotator",
573
- fn: g(({ toggleAnnotator: a, isAnnotator: r }) => [
574
- b(t.$slots, "optionAnnotator", S(O({ toggleAnnotator: a, isAnnotator: r })), void 0, !0)
575
- ]),
576
- key: "7"
577
- } : void 0
578
- ]), 1032, ["backgroundColor", "color", "isPrinting", "isImaging", "uid", "hasPdf", "hasImg", "hasSvg", "hasXls", "hasTable", "hasFullscreen", "isFullscreen", "chartElement", "position", "callbacks", "printScale", "titles", "hasAnnotator", "isAnnotation", "tableDialog", "onGeneratePdf", "onGenerateImage", "style"])) : _("", !0),
579
- (p(), w("svg", {
580
- ref_key: "svgRef",
581
- ref: ve,
582
- xmlns: i(Mt),
583
- viewBox: P.value,
584
- height: Math.max(10, E.value.h),
585
- width: Math.max(10, E.value.w),
586
- class: We({ "vue-data-ui-fullscreen--on": H.value, "vue-data-ui-fulscreen--off": !H.value }),
587
- style: se(`max-width:100%;overflow:visible;background:transparent;color:${e.value.style.chart.color};background:${e.value.style.chart.backgroundColor};`)
588
- }, [
589
- qe(i(d)),
590
- t.$slots["chart-background"] ? (p(), w("foreignObject", {
591
- key: 0,
592
- x: P.value.x,
593
- y: P.value.y,
594
- width: P.value.width,
595
- height: P.value.height,
596
- style: {
597
- pointerEvents: "none"
598
- }
599
- }, [
600
- b(t.$slots, "chart-background", {}, void 0, !0)
601
- ], 8, ta)) : _("", !0),
602
- (p(!0), w(ue, null, Tt(U.value, (a, r) => (p(), w(ue, null, [
603
- z("defs", null, [
604
- z("radialGradient", {
605
- id: a.id,
606
- fy: "30%"
607
- }, [
608
- z("stop", {
609
- offset: "10%",
610
- "stop-color": i(Et)(a.color, e.value.style.chart.circles.gradient.intensity / 100)
611
- }, null, 8, la),
612
- z("stop", {
613
- offset: "90%",
614
- "stop-color": i(Ke)(a.color, 0.1)
615
- }, null, 8, oa),
616
- z("stop", {
617
- offset: "100%",
618
- "stop-color": a.color
619
- }, null, 8, na)
620
- ], 8, aa)
621
- ]),
622
- t.$slots.pattern ? (p(), w("g", sa, [
623
- z("defs", null, [
624
- b(t.$slots, "pattern", ke({ ref_for: !0 }, { ...a, patternId: `pattern_${D.value}_${a.id}` }), void 0, !0)
625
- ])
626
- ])) : _("", !0),
627
- z("rect", {
628
- x: a.x - a.r,
629
- y: a.y - a.r,
630
- width: a.r * 2,
631
- height: a.r * 2,
632
- stroke: e.value.style.chart.circles.stroke,
633
- "stroke-width": e.value.style.chart.circles.strokeWidth * Y.value / 100,
634
- fill: e.value.style.chart.circles.gradient.show ? `url(#${a.id})` : a.color,
635
- rx: a.r,
636
- onMouseenter: (k) => ct(a, r),
637
- onMouseout: (k) => rt(a, r),
638
- onClick: (k) => it(a, r)
639
- }, null, 40, ua),
640
- t.$slots.pattern ? (p(), w("rect", {
641
- key: 1,
642
- x: a.x - a.r,
643
- y: a.y - a.r,
644
- width: a.r * 2,
645
- height: a.r * 2,
646
- stroke: e.value.style.chart.circles.stroke,
647
- "stroke-width": e.value.style.chart.circles.strokeWidth * Y.value / 100,
648
- fill: `url(#pattern_${D.value}_${a.id})`,
649
- rx: a.r,
650
- style: {
651
- pointerEvents: "none"
652
- }
653
- }, null, 8, ra)) : _("", !0),
654
- t.$slots["data-label"] ? b(t.$slots, "data-label", ke({
655
- key: 2,
656
- ref_for: !0
657
- }, { ...a, createTSpans: i(Nt), fontSize: { name: a.r / 3 * e.value.style.chart.circles.labels.name.fontSizeRatio, value: Be(a) * 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 : i(Q)(a.color) }), void 0, !0) : (p(), w(ue, { key: 3 }, [
658
- e.value.style.chart.circles.labels.name.show && a.name ? (p(), w("text", {
659
- key: 0,
660
- style: {
661
- pointerEvents: "none",
662
- transition: "opacity 0.2s ease-in-out"
663
- },
664
- opacity: h.value && !A.value ? 0.2 : 1,
665
- x: a.x,
666
- y: a.y + Re(a.r, e.value.style.chart.circles.labels.name.offsetY) - a.r / 10,
667
- "font-size": a.r / 3 * e.value.style.chart.circles.labels.name.fontSizeRatio,
668
- fill: e.value.style.chart.circles.labels.name.color ? e.value.style.chart.circles.labels.name.color : i(Q)(a.color),
669
- "font-weight": e.value.style.chart.circles.labels.name.bold ? "bold" : "normal",
670
- "text-anchor": "middle"
671
- }, W(a.name), 9, ia)) : _("", !0),
672
- e.value.style.chart.circles.labels.value.show ? (p(), w("text", {
673
- key: 1,
674
- style: {
675
- pointerEvents: "none",
676
- transition: "opacity 0.2s ease-in-out"
677
- },
678
- opacity: h.value && !A.value ? 0.2 : 1,
679
- x: a.x,
680
- y: a.y + Re(a.r, e.value.style.chart.circles.labels.value.offsetY) + a.r / 2.5,
681
- "font-size": Be(a) * e.value.style.chart.circles.labels.value.fontSizeRatio,
682
- fill: e.value.style.chart.circles.labels.value.color ? e.value.style.chart.circles.labels.value.color : i(Q)(a.color),
683
- "font-weight": e.value.style.chart.circles.labels.value.bold ? "bold" : "normal",
684
- "text-anchor": "middle"
685
- }, W(pe(a)), 9, ca)) : _("", !0)
686
- ], 64))
687
- ], 64))), 256)),
688
- h.value && e.value.style.chart.circles.zoom.show && !A.value ? (p(), w(ue, { key: 1 }, [
689
- z("circle", {
690
- style: se(dt.value),
691
- cx: h.value.x,
692
- cy: h.value.y,
693
- r: Z.value,
694
- opacity: F.value,
695
- stroke: e.value.style.chart.circles.stroke,
696
- "stroke-width": e.value.style.chart.circles.strokeWidth * Y.value / 100,
697
- fill: e.value.style.chart.circles.gradient.show ? `url(#${h.value.id})` : h.value.color
698
- }, null, 12, va),
699
- t.$slots["zoom-label"] ? (p(), w("g", da, [
700
- b(t.$slots, "zoom-label", S(O({ ...h.value, zoomOpacity: F.value, currentRadius: Z.value, fontSize: J.value })), void 0, !0)
701
- ])) : (p(), w("g", ha, [
702
- z("text", {
703
- style: {
704
- pointerEvents: "none"
705
- },
706
- opacity: F.value,
707
- x: h.value.x,
708
- y: h.value.y + e.value.style.chart.circles.zoom.label.name.offsetY - J.value.name / 4,
709
- "text-anchor": "middle",
710
- "font-size": J.value.name,
711
- fill: e.value.style.chart.circles.zoom.label.name.color ? e.value.style.chart.circles.zoom.label.name.color : i(Q)(h.value.color),
712
- "font-weight": e.value.style.chart.circles.zoom.label.name.bold ? "bold" : "normal"
713
- }, W(h.value.name), 9, fa),
714
- z("text", {
715
- style: {
716
- pointerEvents: "none"
717
- },
718
- opacity: F.value,
719
- x: h.value.x,
720
- y: h.value.y + J.value.value + e.value.style.chart.circles.zoom.label.value.offsetY,
721
- "text-anchor": "middle",
722
- "font-size": J.value.value,
723
- fill: e.value.style.chart.circles.zoom.label.value.color ? e.value.style.chart.circles.zoom.label.value.color : i(Q)(h.value.color),
724
- "font-weight": e.value.style.chart.circles.zoom.label.value.bold ? "bold" : "normal"
725
- }, W(ht()), 9, ma)
726
- ]))
727
- ], 64)) : _("", !0),
728
- b(t.$slots, "svg", {
729
- svg: { ...P.value }
730
- }, void 0, !0)
731
- ], 14, ea)),
732
- t.$slots.watermark ? (p(), w("div", pa, [
733
- b(t.$slots, "watermark", S(O({ isPrinting: i(Pe) || i(Fe) })), void 0, !0)
734
- ])) : _("", !0),
735
- t.$slots.source ? (p(), w("div", {
736
- key: 5,
737
- ref_key: "source",
738
- ref: ot,
739
- dir: "auto"
740
- }, [
741
- b(t.$slots, "source", {}, void 0, !0)
742
- ], 512)) : _("", !0),
743
- j.value && e.value.userOptions.buttons.table ? (p(), G(St(K.value.component), ke({ key: 6 }, K.value.props, {
744
- ref_key: "tableUnit",
745
- ref: q,
746
- onClose: Ve
747
- }), je({
748
- content: g(() => [
749
- (p(), G(i(n), {
750
- key: `table_${ze.value}`,
751
- colNames: oe.value.colNames,
752
- head: oe.value.head,
753
- body: oe.value.body,
754
- config: oe.value.config,
755
- title: e.value.table.useDialog ? "" : K.value.title,
756
- withCloseButton: !e.value.table.useDialog,
757
- onClose: Ve
758
- }, {
759
- th: g(({ th: a }) => [
760
- z("div", {
761
- innerHTML: a,
762
- style: { display: "flex", "align-items": "center" }
763
- }, null, 8, ya)
764
- ]),
765
- td: g(({ td: a }) => [
766
- Xe(W(a.name || a), 1)
767
- ]),
768
- _: 1
769
- }, 8, ["colNames", "head", "body", "config", "title", "withCloseButton"]))
770
- ]),
771
- _: 2
772
- }, [
773
- e.value.table.useDialog ? {
774
- name: "title",
775
- fn: g(() => [
776
- Xe(W(K.value.title), 1)
777
- ]),
778
- key: "0"
779
- } : void 0,
780
- e.value.table.useDialog ? {
781
- name: "actions",
782
- fn: g(() => [
783
- z("button", {
784
- tabindex: "0",
785
- class: "vue-ui-user-options-button",
786
- onClick: l[0] || (l[0] = (a) => be(e.value.userOptions.callbacks.csv))
787
- }, [
788
- qe(i(y), {
789
- name: "excel",
790
- stroke: K.value.props.color
791
- }, null, 8, ["stroke"])
792
- ])
793
- ]),
794
- key: "1"
795
- } : void 0
796
- ]), 1040)) : _("", !0),
797
- i(Se) ? (p(), G(Gt, { key: 7 })) : _("", !0)
798
- ], 46, Qt));
799
- }
800
- }, Pa = /* @__PURE__ */ Jt(ba, [["__scopeId", "data-v-bc6669a4"]]);
801
- export {
802
- Pa as default
803
- };