vue-data-ui 3.2.8 → 3.3.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 (159) hide show
  1. package/dist/{Arrow-Bb0bGghy.js → Arrow-CKLBHe3L.js} +1 -1
  2. package/dist/{BaseDraggableDialog-CHhZIht2.js → BaseDraggableDialog-q3pgSDTz.js} +2 -2
  3. package/dist/{BaseIcon-Bz-1GQhu.js → BaseIcon-CtqN7W_g.js} +4 -3
  4. package/dist/{ColorPicker-B-WUqMoV.js → ColorPicker-Cr6rUDTP.js} +2 -2
  5. package/dist/{DataTable-BvjacRbw.js → DataTable-BeI6gYJX.js} +2 -2
  6. package/dist/{Legend-BpoFJ8fc.js → Legend-DsogCeTb.js} +2 -2
  7. package/dist/{NonSvgPenAndPaper-l9giyY1Z.js → NonSvgPenAndPaper-BDK_ucTG.js} +3 -3
  8. package/dist/{PackageVersion-C40g0Rfc.js → PackageVersion-C9oklnuy.js} +1 -1
  9. package/dist/{PenAndPaper-CR8q353D.js → PenAndPaper-BxbYiPy4.js} +3 -3
  10. package/dist/{Shape-C_C_OmqR.js → Shape-DJG2zW7b.js} +1 -1
  11. package/dist/{Slicer-BA2GhOmY.js → Slicer-D6T4aUhr.js} +2 -2
  12. package/dist/{SparkTooltip-Dz1PDE_h.js → SparkTooltip-Cp0G9giW.js} +1 -1
  13. package/dist/{Title-DG2nloSB.js → Title-D17CJXko.js} +1 -1
  14. package/dist/{Tooltip-BOXz8skU.js → Tooltip-CtVdvbZi.js} +1 -1
  15. package/dist/{UserOptions-DsTgvAok.js → UserOptions-B3vCIe-u.js} +168 -126
  16. package/dist/components/arrow.js +1 -1
  17. package/dist/components/vue-ui-3d-bar.js +1 -1
  18. package/dist/components/vue-ui-accordion.js +1 -1
  19. package/dist/components/vue-ui-age-pyramid.js +1 -1
  20. package/dist/components/vue-ui-annotator.js +1 -1
  21. package/dist/components/vue-ui-bullet.js +1 -1
  22. package/dist/components/vue-ui-candlestick.js +1 -1
  23. package/dist/components/vue-ui-carousel-table.js +1 -1
  24. package/dist/components/vue-ui-chestnut.js +1 -1
  25. package/dist/components/vue-ui-chord.js +1 -1
  26. package/dist/components/vue-ui-circle-pack.js +1 -1
  27. package/dist/components/vue-ui-cursor.js +1 -1
  28. package/dist/components/vue-ui-dashboard.js +1 -1
  29. package/dist/components/vue-ui-digits.js +1 -1
  30. package/dist/components/vue-ui-donut-evolution.js +1 -1
  31. package/dist/components/vue-ui-donut.js +1 -1
  32. package/dist/components/vue-ui-dumbbell.js +1 -1
  33. package/dist/components/vue-ui-flow.js +1 -1
  34. package/dist/components/vue-ui-funnel.js +1 -1
  35. package/dist/components/vue-ui-galaxy.js +1 -1
  36. package/dist/components/vue-ui-gauge.js +1 -1
  37. package/dist/components/vue-ui-gizmo.js +1 -1
  38. package/dist/components/vue-ui-heatmap.js +1 -1
  39. package/dist/components/vue-ui-history-plot.js +1 -1
  40. package/dist/components/vue-ui-horizontal-bar.js +1 -1
  41. package/dist/components/vue-ui-icon.js +1 -1
  42. package/dist/components/vue-ui-kpi.js +1 -1
  43. package/dist/components/vue-ui-mini-loader.js +1 -1
  44. package/dist/components/vue-ui-molecule.js +1 -1
  45. package/dist/components/vue-ui-mood-radar.js +1 -1
  46. package/dist/components/vue-ui-nested-donuts.js +1 -1
  47. package/dist/components/vue-ui-onion.js +1 -1
  48. package/dist/components/vue-ui-parallel-coordinate-plot.js +1 -1
  49. package/dist/components/vue-ui-quadrant.js +1 -1
  50. package/dist/components/vue-ui-quick-chart.js +1 -1
  51. package/dist/components/vue-ui-radar.js +1 -1
  52. package/dist/components/vue-ui-rating.js +1 -1
  53. package/dist/components/vue-ui-relation-circle.js +1 -1
  54. package/dist/components/vue-ui-ridgeline.js +1 -1
  55. package/dist/components/vue-ui-rings.js +1 -1
  56. package/dist/components/vue-ui-scatter.js +1 -1
  57. package/dist/components/vue-ui-skeleton.js +1 -1
  58. package/dist/components/vue-ui-smiley.js +1 -1
  59. package/dist/components/vue-ui-spark-trend.js +1 -1
  60. package/dist/components/vue-ui-sparkbar.js +1 -1
  61. package/dist/components/vue-ui-sparkgauge.js +1 -1
  62. package/dist/components/vue-ui-sparkhistogram.js +1 -1
  63. package/dist/components/vue-ui-sparkline.js +1 -1
  64. package/dist/components/vue-ui-sparkstackbar.js +1 -1
  65. package/dist/components/vue-ui-stackbar.js +1 -1
  66. package/dist/components/vue-ui-strip-plot.js +1 -1
  67. package/dist/components/vue-ui-table-heatmap.js +1 -1
  68. package/dist/components/vue-ui-table-sparkline.js +1 -1
  69. package/dist/components/vue-ui-table.js +1 -1
  70. package/dist/components/vue-ui-thermometer.js +1 -1
  71. package/dist/components/vue-ui-timer.js +1 -1
  72. package/dist/components/vue-ui-tiremarks.js +1 -1
  73. package/dist/components/vue-ui-treemap.js +1 -1
  74. package/dist/components/vue-ui-vertical-bar.js +1 -1
  75. package/dist/components/vue-ui-waffle.js +1 -1
  76. package/dist/components/vue-ui-wheel.js +1 -1
  77. package/dist/components/vue-ui-word-cloud.js +1 -1
  78. package/dist/components/vue-ui-world.js +1 -1
  79. package/dist/components/vue-ui-xy-canvas.js +1 -1
  80. package/dist/components/vue-ui-xy.js +1 -1
  81. package/dist/{dom-to-png-BgvOdfyW.js → dom-to-png-BiyqJA3t.js} +1 -1
  82. package/dist/{img-DjWwQXVS.js → img-6wPuVVtk.js} +1 -1
  83. package/dist/{lib-BEpWEyMm.js → lib-GIYcnm0E.js} +110 -96
  84. package/dist/{pdf-YD0ShN36.js → pdf-DjbHsnrb.js} +1 -1
  85. package/dist/style.css +1 -1
  86. package/dist/types/vue-data-ui.d.ts +8 -1
  87. package/dist/{useAutoSizeLabelsInsideViewbox-BVJkib7z.js → useAutoSizeLabelsInsideViewbox-Csv3pVmh.js} +1 -1
  88. package/dist/{useNestedProp-BOk-tPdu.js → useNestedProp-mxyyqd0B.js} +291 -246
  89. package/dist/{usePrinter-w23K-ezx.js → usePrinter-DYRFiw7X.js} +2 -2
  90. package/dist/useSvgExport-B7-Vrjtu.js +732 -0
  91. package/dist/vue-data-ui-DLU1snC3.js +326 -0
  92. package/dist/vue-data-ui.js +68 -68
  93. package/dist/{vue-ui-3d-bar-Cf7zHemQ.js → vue-ui-3d-bar-D6xoBrN6.js} +358 -342
  94. package/dist/{vue-ui-accordion-CDIzGCG1.js → vue-ui-accordion-Dch9YrCi.js} +3 -3
  95. package/dist/{vue-ui-age-pyramid-T09D0LHr.js → vue-ui-age-pyramid-D74mAaLA.js} +228 -212
  96. package/dist/{vue-ui-annotator-3bUg-1Zy.js → vue-ui-annotator-DwRwhrgB.js} +7 -7
  97. package/dist/{vue-ui-bullet-DKgdFa2v.js → vue-ui-bullet-D2qVUqWs.js} +197 -179
  98. package/dist/{vue-ui-candlestick-g6PO_L_7.js → vue-ui-candlestick-C81k1_f9.js} +278 -262
  99. package/dist/{vue-ui-carousel-table-Ch2xooE8.js → vue-ui-carousel-table-DBIhnEj-.js} +4 -4
  100. package/dist/{vue-ui-chestnut-B-nzp0b6.js → vue-ui-chestnut-CSM-_IWw.js} +425 -379
  101. package/dist/{vue-ui-chord-BqS8DoTd.js → vue-ui-chord-BFW9nnNh.js} +317 -299
  102. package/dist/{vue-ui-circle-pack-B1axDP9l.js → vue-ui-circle-pack-D6mTG5i0.js} +249 -233
  103. package/dist/{vue-ui-cursor-Detis-4Y.js → vue-ui-cursor-BJmTAMpP.js} +2 -2
  104. package/dist/{vue-ui-dashboard-TXcw45j_.js → vue-ui-dashboard-BdFLsK4u.js} +67 -67
  105. package/dist/{vue-ui-digits-pW7YVqxy.js → vue-ui-digits-DXum1rs6.js} +2 -2
  106. package/dist/{vue-ui-donut-BFpWEe2s.js → vue-ui-donut-CqefukGp.js} +662 -645
  107. package/dist/{vue-ui-donut-evolution-BoVslTri.js → vue-ui-donut-evolution-DFIbK50s.js} +406 -384
  108. package/dist/{vue-ui-dumbbell-CRHvtmq9.js → vue-ui-dumbbell-DIo2ecGY.js} +295 -274
  109. package/dist/vue-ui-flow--kiGWaq4.js +931 -0
  110. package/dist/{vue-ui-funnel-CKUlzitM.js → vue-ui-funnel-B8UHwj15.js} +174 -158
  111. package/dist/{vue-ui-galaxy-DZqCAK9c.js → vue-ui-galaxy-eQZh_y3l.js} +265 -252
  112. package/dist/{vue-ui-gauge-D3bPFF59.js → vue-ui-gauge-DJ-E6L2T.js} +256 -240
  113. package/dist/{vue-ui-gizmo-oVLp367W.js → vue-ui-gizmo-DFxlqPz7.js} +3 -3
  114. package/dist/{vue-ui-heatmap-C1RctcPx.js → vue-ui-heatmap-CcAe5dDN.js} +393 -372
  115. package/dist/{vue-ui-history-plot-CoQYOlF4.js → vue-ui-history-plot-CgKvd7Jx.js} +307 -289
  116. package/dist/{vue-ui-kpi-BZX-tqIm.js → vue-ui-kpi-Ct2iyD49.js} +3 -3
  117. package/dist/{vue-ui-mini-loader-hMqB-KQI.js → vue-ui-mini-loader-ByjcvXBB.js} +2 -2
  118. package/dist/{vue-ui-molecule-D0Kr_w-v.js → vue-ui-molecule-CGDBEAkX.js} +176 -160
  119. package/dist/vue-ui-mood-radar-D9GuK4cI.js +876 -0
  120. package/dist/{vue-ui-nested-donuts-94Gu95Z9.js → vue-ui-nested-donuts-CGKgOTX2.js} +541 -518
  121. package/dist/{vue-ui-onion-Dy_aTvGI.js → vue-ui-onion-C5tE1Woz.js} +318 -289
  122. package/dist/{vue-ui-parallel-coordinate-plot-D_oo5lQW.js → vue-ui-parallel-coordinate-plot-CVhD6IoH.js} +252 -233
  123. package/dist/{vue-ui-quadrant-CRYpRl_q.js → vue-ui-quadrant-BGDCaOXv.js} +294 -276
  124. package/dist/{vue-ui-quick-chart-B1s047tz.js → vue-ui-quick-chart-CjXSB-2S.js} +723 -685
  125. package/dist/{vue-ui-radar-DA7EuchK.js → vue-ui-radar-rhxkROX7.js} +307 -282
  126. package/dist/{vue-ui-rating-z2bsnprP.js → vue-ui-rating-Bo9gSy-z.js} +2 -2
  127. package/dist/{vue-ui-relation-circle-DZ8IiUNu.js → vue-ui-relation-circle-Qo8FKbL2.js} +146 -131
  128. package/dist/{vue-ui-ridgeline-5IWuJgs6.js → vue-ui-ridgeline-ahOApbEC.js} +320 -299
  129. package/dist/{vue-ui-rings-gY2f8mVf.js → vue-ui-rings-DFAVaEBs.js} +323 -310
  130. package/dist/{vue-ui-scatter-OLidvHlx.js → vue-ui-scatter-zjlWyvVd.js} +390 -372
  131. package/dist/{vue-ui-skeleton-BaysGsg0.js → vue-ui-skeleton-CKfOnyd_.js} +3 -3
  132. package/dist/{vue-ui-smiley-Dn2IR0oC.js → vue-ui-smiley-CY7UiJ9C.js} +2 -2
  133. package/dist/{vue-ui-spark-trend-gp5B9uF7.js → vue-ui-spark-trend-DwNYP97M.js} +3 -3
  134. package/dist/{vue-ui-sparkbar-8t63RYc7.js → vue-ui-sparkbar-BkdcYrmg.js} +3 -3
  135. package/dist/{vue-ui-sparkgauge-BWSykUpn.js → vue-ui-sparkgauge-C6Kq_OGV.js} +3 -3
  136. package/dist/{vue-ui-sparkhistogram-BEjxKMG5.js → vue-ui-sparkhistogram-CjB33yXB.js} +4 -4
  137. package/dist/{vue-ui-sparkline-bFF-ZCCH.js → vue-ui-sparkline-DcH4yIEd.js} +3 -3
  138. package/dist/{vue-ui-sparkstackbar-HtAlEtzK.js → vue-ui-sparkstackbar-MKr2u_pO.js} +3 -3
  139. package/dist/{vue-ui-stackbar-CUIWPgfk.js → vue-ui-stackbar-DKV-exfd.js} +355 -337
  140. package/dist/{vue-ui-strip-plot-DwS52yGc.js → vue-ui-strip-plot-ncTrDlNC.js} +368 -352
  141. package/dist/{vue-ui-table-BYqPx7k4.js → vue-ui-table-BdT3lGuv.js} +5 -5
  142. package/dist/{vue-ui-table-heatmap-CRfjUoa1.js → vue-ui-table-heatmap-D929cWB0.js} +5 -5
  143. package/dist/{vue-ui-table-sparkline-Bvf0ZBOi.js → vue-ui-table-sparkline-CkZ_ygR1.js} +4 -4
  144. package/dist/{vue-ui-thermometer-BB7cHec0.js → vue-ui-thermometer-CjBLR6H9.js} +148 -133
  145. package/dist/{vue-ui-timer-BVDKvC4v.js → vue-ui-timer-Bs7eMmiC.js} +5 -5
  146. package/dist/vue-ui-tiremarks-nGOZKRcz.js +423 -0
  147. package/dist/{vue-ui-treemap-nGgRTw0l.js → vue-ui-treemap-SQ2f5wbN.js} +403 -373
  148. package/dist/{vue-ui-vertical-bar-BJOm2JQh.js → vue-ui-vertical-bar-Hh9gAN5j.js} +295 -260
  149. package/dist/{vue-ui-waffle-aCMPaHbw.js → vue-ui-waffle-C7moVBln.js} +396 -377
  150. package/dist/{vue-ui-wheel-D_q23eOk.js → vue-ui-wheel-KrGLMCqW.js} +196 -180
  151. package/dist/{vue-ui-word-cloud-C7TMR4Zq.js → vue-ui-word-cloud-BQSu6kiR.js} +233 -217
  152. package/dist/{vue-ui-world-DtMYYQ6T.js → vue-ui-world-DdoMFJcV.js} +344 -326
  153. package/dist/{vue-ui-xy-Dputm9QT.js → vue-ui-xy-B2fjTYMJ.js} +1601 -1707
  154. package/dist/{vue-ui-xy-canvas-BCeQoXNM.js → vue-ui-xy-canvas-oUXISeU8.js} +10 -10
  155. package/package.json +1 -1
  156. package/dist/vue-data-ui-BcRg499t.js +0 -325
  157. package/dist/vue-ui-flow-CKGjSZoj.js +0 -909
  158. package/dist/vue-ui-mood-radar-C6UCofDb.js +0 -853
  159. package/dist/vue-ui-tiremarks-CBVuu_Zi.js +0 -407
@@ -1,19 +1,20 @@
1
- import { useCssVars as bt, computed as m, defineAsyncComponent as ke, ref as _, toRefs as Mt, watch as Le, shallowRef as Ue, onMounted as Ct, onBeforeUnmount as _t, createElementBlock as n, openBlock as o, unref as c, normalizeStyle as fe, normalizeClass as P, createBlock as se, createCommentVNode as S, createSlots as At, withCtx as V, renderSlot as z, normalizeProps as oe, guardReactiveProps as ne, createVNode as $t, Fragment as $, renderList as O, createElementVNode as It, toDisplayString as St } from "vue";
2
- import { c as Rt, t as Pt, o as zt, f as Ot, i as Z, n as Wt, X as Dt, m as je, a as Tt, q as Be, d as Ft } from "./lib-BEpWEyMm.js";
3
- import { t as Xt, u as Nt } from "./useResponsive-DfdjqQps.js";
4
- import { u as Lt, a as Ee } from "./useNestedProp-BOk-tPdu.js";
5
- import { u as Ut } from "./usePrinter-w23K-ezx.js";
6
- import { u as jt } from "./useUserOptionState-BIvW1Kz7.js";
7
- import { u as Bt } from "./useChartAccessibility-9icAAmYg.js";
8
- import { t as Et } from "./themes-Dw-dDudK.js";
9
- import Yt from "./Title-DG2nloSB.js";
10
- import Ht from "./img-DjWwQXVS.js";
11
- import { u as qt, B as Gt } from "./BaseScanner-BgWxam9d.js";
12
- import { _ as Vt } from "./_plugin-vue_export-helper-CHgC5LLL.js";
13
- const Zt = ["id"], Jt = ["xmlns", "viewBox"], Kt = ["x", "y", "width", "height"], Qt = ["d", "stroke", "stroke-width"], ea = ["cx", "cy", "r", "stroke", "stroke-width"], ta = { key: 0 }, aa = ["x1", "y1", "x2", "y2", "stroke", "stroke-width", "stroke-linecap"], la = ["x1", "y1", "x2", "y2", "stroke", "stroke-width", "stroke-linecap"], sa = { key: 1 }, oa = ["d", "fill", "stroke", "stroke-width"], na = ["d", "fill", "stroke", "stroke-width"], ua = ["d", "fill", "stroke", "stroke-width"], ia = ["x1", "x2", "y1", "y2", "stroke", "stroke-width", "stroke-linecap"], ra = ["d", "fill", "stroke", "stroke-width"], ca = { key: 5 }, ha = ["x", "y", "height"], va = ["x", "y", "font-size", "fill", "font-weight", "stroke", "stroke-width"], da = {
1
+ import { useCssVars as $t, computed as f, defineAsyncComponent as ge, ref as _, toRefs as St, watch as Ue, shallowRef as Be, onMounted as It, onBeforeUnmount as Rt, createElementBlock as n, openBlock as o, unref as c, normalizeStyle as fe, normalizeClass as P, createBlock as se, createCommentVNode as I, createSlots as Pt, withCtx as V, renderSlot as z, normalizeProps as oe, guardReactiveProps as ne, createVNode as zt, Fragment as $, renderList as O, createElementVNode as Ot, toDisplayString as Wt } from "vue";
2
+ import { c as Tt, t as Dt, o as Ft, f as Xt, i as Z, n as Nt, X as Lt, m as Ee, a as Ut, q as je, d as Bt } from "./lib-GIYcnm0E.js";
3
+ import { t as Et, u as jt } from "./useResponsive-DfdjqQps.js";
4
+ import { u as Yt, a as Ye } from "./useNestedProp-mxyyqd0B.js";
5
+ import { u as Gt, B as Ht } from "./BaseScanner-BgWxam9d.js";
6
+ import { u as qt } from "./usePrinter-DYRFiw7X.js";
7
+ import { u as Vt } from "./useSvgExport-B7-Vrjtu.js";
8
+ import { u as Zt } from "./useUserOptionState-BIvW1Kz7.js";
9
+ import { u as Jt } from "./useChartAccessibility-9icAAmYg.js";
10
+ import Kt from "./img-6wPuVVtk.js";
11
+ import Qt from "./Title-D17CJXko.js";
12
+ import { t as ea } from "./themes-Dw-dDudK.js";
13
+ import { _ as ta } from "./_plugin-vue_export-helper-CHgC5LLL.js";
14
+ const aa = ["id"], la = ["xmlns", "viewBox"], sa = ["x", "y", "width", "height"], oa = ["d", "stroke", "stroke-width"], na = ["cx", "cy", "r", "stroke", "stroke-width"], ua = { key: 0 }, ra = ["x1", "y1", "x2", "y2", "stroke", "stroke-width", "stroke-linecap"], ia = ["x1", "y1", "x2", "y2", "stroke", "stroke-width", "stroke-linecap"], ca = { key: 1 }, ha = ["d", "fill", "stroke", "stroke-width"], va = ["d", "fill", "stroke", "stroke-width"], da = ["d", "fill", "stroke", "stroke-width"], ya = ["x1", "x2", "y1", "y2", "stroke", "stroke-width", "stroke-linecap"], ka = ["d", "fill", "stroke", "stroke-width"], ga = { key: 5 }, fa = ["x", "y", "height"], pa = ["x", "y", "font-size", "fill", "font-weight", "stroke", "stroke-width"], ma = {
14
15
  key: 4,
15
16
  class: "vue-data-ui-watermark"
16
- }, ya = {
17
+ }, wa = {
17
18
  __name: "vue-ui-wheel",
18
19
  props: {
19
20
  config: {
@@ -29,18 +30,18 @@ const Zt = ["id"], Jt = ["xmlns", "viewBox"], Kt = ["x", "y", "width", "height"]
29
30
  }
30
31
  }
31
32
  },
32
- setup(Ye, { expose: He }) {
33
- bt((t) => ({
34
- v8bf8e800: nt.value,
35
- v13a3bd66: ut.value,
36
- v13a39ff9: it.value
33
+ setup(Ge, { expose: He }) {
34
+ $t((t) => ({
35
+ v67722b6e: ut.value,
36
+ v3e8c19ef: rt.value,
37
+ v3e8bfc82: it.value
37
38
  }));
38
- const qe = ke(() => import("./PenAndPaper-CR8q353D.js")), Ge = ke(() => import("./UserOptions-DsTgvAok.js")), Ve = ke(() => import("./PackageVersion-C40g0Rfc.js")), { vue_ui_wheel: Ze } = Lt(), F = Ye, Je = m(() => !!F.dataset && Object.keys(F.dataset).length), ue = _(Rt()), Ke = _(null), pe = _(0), X = _(null), ge = _(null), me = _(null), we = _(null), xe = _(0), e = _(ce()), { loading: be, FINAL_DATASET: ie } = qt({
39
- ...Mt(F),
39
+ const qe = ge(() => import("./PenAndPaper-BxbYiPy4.js")), Ve = ge(() => import("./UserOptions-B3vCIe-u.js")), Ze = ge(() => import("./PackageVersion-C9oklnuy.js")), { vue_ui_wheel: Je } = Yt(), F = Ge, Ke = f(() => !!F.dataset && Object.keys(F.dataset).length), ue = _(Tt()), Qe = _(null), pe = _(0), X = _(null), me = _(null), we = _(null), be = _(null), xe = _(0), e = _(he()), { loading: Me, FINAL_DATASET: re } = Gt({
40
+ ...St(F),
40
41
  FINAL_CONFIG: e,
41
- prepareConfig: ce,
42
+ prepareConfig: he,
42
43
  skeletonDataset: { percentage: 50 },
43
- skeletonConfig: Pt({
44
+ skeletonConfig: Dt({
44
45
  defaultConfig: e.value,
45
46
  userConfig: {
46
47
  userOptions: { show: !1 },
@@ -63,31 +64,31 @@ const Zt = ["id"], Jt = ["xmlns", "viewBox"], Kt = ["x", "y", "width", "height"]
63
64
  }
64
65
  }
65
66
  })
66
- }), { userOptionsVisible: re, setUserOptionsVisibility: Me, keepUserOptionState: Ce } = jt({ config: e.value }), { svgRef: _e } = Bt({ config: e.value.style.chart.title });
67
- function ce() {
68
- const t = Ee({
67
+ }), { userOptionsVisible: ie, setUserOptionsVisibility: Ce, keepUserOptionState: _e } = Zt({ config: e.value }), { svgRef: ce } = Jt({ config: e.value.style.chart.title });
68
+ function he() {
69
+ const t = Ye({
69
70
  userConfig: F.config,
70
- defaultConfig: Ze
71
+ defaultConfig: Je
71
72
  });
72
73
  return t.theme ? {
73
- ...Ee({
74
- userConfig: Et.vue_ui_wheel[t.theme] || F.config,
74
+ ...Ye({
75
+ userConfig: ea.vue_ui_wheel[t.theme] || F.config,
75
76
  defaultConfig: t
76
77
  })
77
78
  } : t;
78
79
  }
79
- Le(() => F.config, (t) => {
80
- e.value = ce(), re.value = !e.value.userOptions.showOnChartHover, Pe(), xe.value += 1;
80
+ Ue(() => F.config, (t) => {
81
+ e.value = he(), ie.value = !e.value.userOptions.showOnChartHover, Pe(), xe.value += 1;
81
82
  }, { deep: !0 });
82
- const { isPrinting: Ae, isImaging: $e, generatePdf: Ie, generateImage: Se } = Ut({
83
+ const { isPrinting: Ae, isImaging: $e, generatePdf: Se, generateImage: Ie } = qt({
83
84
  elementId: ue.value,
84
85
  fileName: e.value.style.chart.title.text || "vue-ui-wheel",
85
86
  options: e.value.userOptions.print
86
- }), Qe = m(() => e.value.userOptions.show && !e.value.style.chart.title.text), u = _({
87
+ }), et = f(() => e.value.userOptions.show && !e.value.style.chart.title.text), u = _({
87
88
  size: 360,
88
89
  height: 360,
89
90
  width: 360
90
- }), B = _(e.value.style.chart.layout.percentage.fontSize), i = m(() => ({
91
+ }), E = _(e.value.style.chart.layout.percentage.fontSize), i = f(() => ({
91
92
  radius: Math.min(u.value.width, u.value.height) * 0.9 / 2 * e.value.style.chart.layout.wheel.radiusRatio,
92
93
  centerX: u.value.width / 2,
93
94
  centerY: u.value.height / 2
@@ -98,37 +99,37 @@ const Zt = ["id"], Jt = ["xmlns", "viewBox"], Kt = ["x", "y", "width", "height"]
98
99
  y: i.value.centerY + i.value.radius * Math.sin(29.85 + t * Math.PI / 180) * s
99
100
  };
100
101
  }
101
- const d = _(e.value.style.chart.animation.use ? 0 : ie.value.percentage || 0);
102
- Le(() => ie.value, (t) => {
103
- e.value.style.chart.animation.use ? Te(t.percentage) : d.value = t.percentage || 0;
102
+ const d = _(e.value.style.chart.animation.use ? 0 : re.value.percentage || 0);
103
+ Ue(() => re.value, (t) => {
104
+ e.value.style.chart.animation.use ? De(t.percentage) : d.value = t.percentage || 0;
104
105
  }, { deep: !0 });
105
- const W = Ue(null), L = Ue(null);
106
- Ct(() => {
106
+ const W = Be(null), L = Be(null);
107
+ It(() => {
107
108
  Pe();
108
109
  });
109
- const et = m(() => !!e.value.debug);
110
+ const tt = f(() => !!e.value.debug);
110
111
  function Pe() {
111
- if (zt(F.dataset) && Ot({
112
+ if (Ft(F.dataset) && Xt({
112
113
  componentName: "VueUiWheel",
113
114
  type: "dataset",
114
- debug: et.value
115
+ debug: tt.value
115
116
  }), e.value.responsive) {
116
- const t = Xt(() => {
117
- const { width: s, height: a } = Nt({
117
+ const t = Et(() => {
118
+ const { width: s, height: a } = jt({
118
119
  chart: X.value,
119
- title: e.value.style.chart.title.text ? ge.value : null,
120
- source: me.value,
121
- noTitle: we.value
120
+ title: e.value.style.chart.title.text ? me.value : null,
121
+ source: we.value,
122
+ noTitle: be.value
122
123
  });
123
124
  requestAnimationFrame(() => {
124
- u.value.width = s, u.value.height = a, B.value = e.value.style.chart.layout.percentage.fontSize / 360 * Math.min(s, a);
125
+ u.value.width = s, u.value.height = a, E.value = e.value.style.chart.layout.percentage.fontSize / 360 * Math.min(s, a);
125
126
  });
126
127
  });
127
128
  W.value && (L.value && W.value.unobserve(L.value), W.value.disconnect()), W.value = new ResizeObserver(t), L.value = X.value.parentNode, W.value.observe(L.value);
128
129
  }
129
- Te(ie.value.percentage || 0);
130
+ De(re.value.percentage || 0);
130
131
  }
131
- _t(() => {
132
+ Rt(() => {
132
133
  W.value && (L.value && W.value.unobserve(L.value), W.value.disconnect());
133
134
  });
134
135
  function J([t, s, a], l) {
@@ -140,10 +141,10 @@ const Zt = ["id"], Jt = ["xmlns", "viewBox"], Kt = ["x", "y", "width", "height"]
140
141
  return [t * r, s * r, a, r];
141
142
  }
142
143
  function ze(t, s) {
143
- const a = t.replace("#", ""), l = parseInt(a.substring(0, 2), 16), r = parseInt(a.substring(2, 4), 16), v = parseInt(a.substring(4, 6), 16), y = 1 - Math.min(1, Math.max(0, e.value.style.chart.layout.wheel.ticks.shadeColorRatio3d)) * s, k = Math.max(0, Math.min(255, Math.round(l * y))), b = Math.max(0, Math.min(255, Math.round(r * y))), M = Math.max(0, Math.min(255, Math.round(v * y)));
144
- return `#${k.toString(16).padStart(2, "0")}${b.toString(16).padStart(2, "0")}${M.toString(16).padStart(2, "0")}`;
144
+ const a = t.replace("#", ""), l = parseInt(a.substring(0, 2), 16), r = parseInt(a.substring(2, 4), 16), v = parseInt(a.substring(4, 6), 16), y = 1 - Math.min(1, Math.max(0, e.value.style.chart.layout.wheel.ticks.shadeColorRatio3d)) * s, k = Math.max(0, Math.min(255, Math.round(l * y))), x = Math.max(0, Math.min(255, Math.round(r * y))), M = Math.max(0, Math.min(255, Math.round(v * y)));
145
+ return `#${k.toString(16).padStart(2, "0")}${x.toString(16).padStart(2, "0")}${M.toString(16).padStart(2, "0")}`;
145
146
  }
146
- function tt({
147
+ function at({
147
148
  cx: t,
148
149
  cy: s,
149
150
  radius: a,
@@ -153,21 +154,21 @@ const Zt = ["id"], Jt = ["xmlns", "viewBox"], Kt = ["x", "y", "width", "height"]
153
154
  axDeg: w = 50,
154
155
  f: y = 520,
155
156
  baseStroke: k = 5,
156
- activeColor: b,
157
+ activeColor: x,
157
158
  inactiveColor: M,
158
159
  getActive: A
159
160
  }) {
160
- const h = w * Math.PI / 180, p = a, C = a * l, x = [];
161
- for (let g = 0; g < r; g += 1) {
162
- const f = (g / r * 360 + v) * Math.PI / 180, R = t + p * Math.cos(f), j = s + p * Math.sin(f), N = t + C * Math.cos(f), E = s + C * Math.sin(f), Y = [R - t, j - s, 0], H = [N - t, E - s, 0], [ae, Ne, q] = J(Y, h), [de, ye, G] = J(H, h), [le, rt, , ct] = K([ae, Ne, q], y), [ht, vt, , ka] = K([de, ye, G], y), dt = t + le, yt = s + rt, kt = t + ht, ft = s + vt, pt = (Math.max(q, G) - -p * Math.sin(h)) / (2 * p * Math.sin(h) || 1), gt = A ? A(g) : !0, mt = e.value.style.chart.layout.wheel.ticks.gradient.show ? Z(b, g * I.value / T.value * (e.value.style.chart.layout.wheel.ticks.gradient.shiftHueIntensity / 100)) : b, wt = ze(gt ? mt : M, pt), xt = Math.max(1.25, k * ct * (Math.min(u.value.width, u.value.height) / 360));
163
- x.push({ i: g, x1: dt, y1: yt, x2: kt, y2: ft, stroke: xt, color: wt, z: Math.max(q, G) });
161
+ const h = w * Math.PI / 180, p = a, C = a * l, b = [];
162
+ for (let m = 0; m < r; m += 1) {
163
+ const g = (m / r * 360 + v) * Math.PI / 180, R = t + p * Math.cos(g), B = s + p * Math.sin(g), N = t + C * Math.cos(g), j = s + C * Math.sin(g), Y = [R - t, B - s, 0], G = [N - t, j - s, 0], [ae, Le, H] = J(Y, h), [ye, ke, q] = J(G, h), [le, yt, , kt] = K([ae, Le, H], y), [gt, ft, , ba] = K([ye, ke, q], y), pt = t + le, mt = s + yt, wt = t + gt, bt = s + ft, xt = (Math.max(H, q) - -p * Math.sin(h)) / (2 * p * Math.sin(h) || 1), Mt = A ? A(m) : !0, Ct = e.value.style.chart.layout.wheel.ticks.gradient.show ? Z(x, m * S.value / D.value * (e.value.style.chart.layout.wheel.ticks.gradient.shiftHueIntensity / 100)) : x, _t = ze(Mt ? Ct : M, xt), At = Math.max(1.25, k * kt * (Math.min(u.value.width, u.value.height) / 360));
164
+ b.push({ i: m, x1: pt, y1: mt, x2: wt, y2: bt, stroke: At, color: _t, z: Math.max(H, q) });
164
165
  }
165
- return x.sort((g, f) => g.z - f.z), x;
166
+ return b.sort((m, g) => m.z - g.z), b;
166
167
  }
167
- const Oe = m(() => {
168
+ const Oe = f(() => {
168
169
  if (!e.value.layout === "3d") return null;
169
- const t = T.value, s = e.value.style.chart.layout.wheel.ticks.gradient.show ? Z(e.value.style.chart.layout.wheel.ticks.activeColor, 0) : e.value.style.chart.layout.wheel.ticks.activeColor, a = e.value.style.chart.layout.wheel.ticks.inactiveColor, l = e.value.style.chart.layout.wheel.ticks.strokeWidth;
170
- return tt({
170
+ const t = D.value, s = e.value.style.chart.layout.wheel.ticks.gradient.show ? Z(e.value.style.chart.layout.wheel.ticks.activeColor, 0) : e.value.style.chart.layout.wheel.ticks.activeColor, a = e.value.style.chart.layout.wheel.ticks.inactiveColor, l = e.value.style.chart.layout.wheel.ticks.strokeWidth;
171
+ return at({
171
172
  cx: i.value.centerX,
172
173
  cy: i.value.centerY,
173
174
  radius: i.value.radius,
@@ -179,40 +180,40 @@ const Zt = ["id"], Jt = ["xmlns", "viewBox"], Kt = ["x", "y", "width", "height"]
179
180
  baseStroke: l,
180
181
  activeColor: s,
181
182
  inactiveColor: a,
182
- getActive: (r) => d.value > r * I.value
183
+ getActive: (r) => d.value > r * S.value
183
184
  });
184
185
  });
185
186
  function We({ cx: t, cy: s, r: a, count: l = 180, startDeg: r = -90, axDeg: v = 50, f: w }) {
186
187
  const y = v * Math.PI / 180, k = [];
187
- let b = 0;
188
+ let x = 0;
188
189
  for (let h = 0; h < l; h += 1) {
189
- const p = (h / l * 360 + r) * Math.PI / 180, C = [a * Math.cos(p), a * Math.sin(p), 0], [x, g, f] = J(C, y), [R, j, , N] = K([x, g, f], w);
190
- b += N, k.push([t + R, s + j]);
190
+ const p = (h / l * 360 + r) * Math.PI / 180, C = [a * Math.cos(p), a * Math.sin(p), 0], [b, m, g] = J(C, y), [R, B, , N] = K([b, m, g], w);
191
+ x += N, k.push([t + R, s + B]);
191
192
  }
192
193
  let M = `M ${k[0][0]} ${k[0][1]}`;
193
194
  for (let h = 1; h < k.length; h += 1)
194
195
  M += ` L ${k[h][0]} ${k[h][1]}`;
195
196
  M += " Z";
196
- const A = b / l;
197
+ const A = x / l;
197
198
  return { d: M, avgScale: A, pts: k };
198
199
  }
199
- const D = m(() => {
200
+ const T = f(() => {
200
201
  if (e.value.layout !== "3d") return null;
201
202
  const t = Math.min(u.value.width, u.value.height) * 1.45, s = e.value.style.chart.layout.wheel.tiltAngle3d, a = i.value.radius, { pts: l, avgScale: r } = (() => {
202
- const C = a, x = s, { avgScale: g, pts: f } = We({
203
+ const C = a, b = s, { avgScale: m, pts: g } = We({
203
204
  cx: i.value.centerX,
204
205
  cy: i.value.centerY,
205
206
  r: C,
206
207
  startDeg: -90,
207
- axDeg: x,
208
+ axDeg: b,
208
209
  f: t
209
210
  });
210
- return { pts: f, avgScale: g };
211
+ return { pts: g, avgScale: m };
211
212
  })();
212
213
  let v = 1 / 0, w = 1 / 0, y = -1 / 0, k = -1 / 0;
213
- for (const [C, x] of l)
214
- C < v && (v = C), x < w && (w = x), C > y && (y = C), x > k && (k = x);
215
- const b = e.value.style.chart.layout.wheel.ticks.strokeWidth / 360 * Math.min(u.value.width, u.value.height), M = e.value.style.chart.layout.innerCircle.strokeWidth || 0, A = 0.5 * Math.max(b, M * (r || 1)), h = Math.max(0, Number(e.value.style.chart.layout.wheel.ticks.depth3d) || 0), p = A;
214
+ for (const [C, b] of l)
215
+ C < v && (v = C), b < w && (w = b), C > y && (y = C), b > k && (k = b);
216
+ const x = e.value.style.chart.layout.wheel.ticks.strokeWidth / 360 * Math.min(u.value.width, u.value.height), M = e.value.style.chart.layout.innerCircle.strokeWidth || 0, A = 0.5 * Math.max(x, M * (r || 1)), h = Math.max(0, Number(e.value.style.chart.layout.wheel.ticks.depth3d) || 0), p = A;
216
217
  return {
217
218
  x: v - p,
218
219
  y: w - h - p,
@@ -220,7 +221,7 @@ const Zt = ["id"], Jt = ["xmlns", "viewBox"], Kt = ["x", "y", "width", "height"]
220
221
  h: k - (w - h) + 2 * p
221
222
  };
222
223
  });
223
- function at(t) {
224
+ function lt(t) {
224
225
  const s = Math.min(u.value.width, u.value.height) * 1.45, { d: a, avgScale: l } = We({
225
226
  cx: i.value.centerX,
226
227
  cy: i.value.centerY,
@@ -235,12 +236,12 @@ const Zt = ["id"], Jt = ["xmlns", "viewBox"], Kt = ["x", "y", "width", "height"]
235
236
  strokeWidth: v
236
237
  };
237
238
  }
238
- const De = m(() => at(Math.max(0, i.value.radius * 0.8 * e.value.style.chart.layout.innerCircle.radiusRatio)));
239
+ const Te = f(() => lt(Math.max(0, i.value.radius * 0.8 * e.value.style.chart.layout.innerCircle.radiusRatio)));
239
240
  function Q({ cx: t, cy: s, r: a, aRad: l, ax: r, f: v }) {
240
- const w = [a * Math.cos(l), a * Math.sin(l), 0], [y, k, b] = J(w, r), [M, A, , h] = K([y, k, b], v);
241
- return { x: t + M, y: s + A, z: b, s: h };
241
+ const w = [a * Math.cos(l), a * Math.sin(l), 0], [y, k, x] = J(w, r), [M, A, , h] = K([y, k, x], v);
242
+ return { x: t + M, y: s + A, z: x, s: h };
242
243
  }
243
- function lt({
244
+ function st({
244
245
  cx: t,
245
246
  cy: s,
246
247
  radius: a,
@@ -250,27 +251,27 @@ const Zt = ["id"], Jt = ["xmlns", "viewBox"], Kt = ["x", "y", "width", "height"]
250
251
  axDeg: w = 45,
251
252
  f: y = 600,
252
253
  activeColor: k,
253
- inactiveColor: b,
254
+ inactiveColor: x,
254
255
  getActive: M,
255
256
  Y: A = 0
256
257
  }) {
257
- const h = w * Math.PI / 180, p = a, C = a * l, x = 2 * Math.PI / r, g = [];
258
- for (let f = 0; f < r; f += 1) {
259
- const R = v * Math.PI / 180 + x * f, j = R + x * Math.min(1, e.value.style.chart.layout.wheel.ticks.spacingRatio3d), N = Q({ cx: t, cy: s + A, r: p, aRad: R, ax: h, f: y }), E = Q({ cx: t, cy: s + A, r: p, aRad: j, ax: h, f: y }), Y = Q({ cx: t, cy: s + A, r: C, aRad: j, ax: h, f: y }), H = Q({ cx: t, cy: s + A, r: C, aRad: R, ax: h, f: y }), ae = (N.z + E.z + H.z + Y.z) / 4, q = (M ? M(f) : !0) ? e.value.style.chart.layout.wheel.ticks.gradient.show ? Z(
258
+ const h = w * Math.PI / 180, p = a, C = a * l, b = 2 * Math.PI / r, m = [];
259
+ for (let g = 0; g < r; g += 1) {
260
+ const R = v * Math.PI / 180 + b * g, B = R + b * Math.min(1, e.value.style.chart.layout.wheel.ticks.spacingRatio3d), N = Q({ cx: t, cy: s + A, r: p, aRad: R, ax: h, f: y }), j = Q({ cx: t, cy: s + A, r: p, aRad: B, ax: h, f: y }), Y = Q({ cx: t, cy: s + A, r: C, aRad: B, ax: h, f: y }), G = Q({ cx: t, cy: s + A, r: C, aRad: R, ax: h, f: y }), ae = (N.z + j.z + G.z + Y.z) / 4, H = (M ? M(g) : !0) ? e.value.style.chart.layout.wheel.ticks.gradient.show ? Z(
260
261
  e.value.style.chart.layout.wheel.ticks.activeColor,
261
- f * (100 / r) / 100 * (e.value.style.chart.layout.wheel.ticks.gradient.shiftHueIntensity / 100)
262
- ) : k : b, de = (() => {
262
+ g * (100 / r) / 100 * (e.value.style.chart.layout.wheel.ticks.gradient.shiftHueIntensity / 100)
263
+ ) : k : x, ye = (() => {
263
264
  const le = p * Math.sin(h) || 1;
264
265
  return (ae - -le) / (2 * le);
265
- })(), ye = ze(q, de), G = `M ${N.x} ${N.y} L ${E.x} ${E.y} L ${Y.x} ${Y.y} L ${H.x} ${H.y} Z`;
266
- g.push({ i: f, d: G, fill: ye, z: ae });
266
+ })(), ke = ze(H, ye), q = `M ${N.x} ${N.y} L ${j.x} ${j.y} L ${Y.x} ${Y.y} L ${G.x} ${G.y} Z`;
267
+ m.push({ i: g, d: q, fill: ke, z: ae });
267
268
  }
268
- return g.sort((f, R) => f.z - R.z), g;
269
+ return m.sort((g, R) => g.z - R.z), m;
269
270
  }
270
- const he = m(() => {
271
+ const ve = f(() => {
271
272
  if (e.value.layout !== "3d") return null;
272
- const t = T.value;
273
- return (s) => lt({
273
+ const t = D.value;
274
+ return (s) => st({
274
275
  cx: i.value.centerX,
275
276
  cy: i.value.centerY,
276
277
  radius: i.value.radius,
@@ -285,7 +286,7 @@ const Zt = ["id"], Jt = ["xmlns", "viewBox"], Kt = ["x", "y", "width", "height"]
285
286
  Y: s
286
287
  });
287
288
  });
288
- function Te(t) {
289
+ function De(t) {
289
290
  let s = e.value.style.chart.animation.speed;
290
291
  const a = Math.abs(t - d.value) / (s * 120);
291
292
  function l() {
@@ -293,20 +294,20 @@ const Zt = ["id"], Jt = ["xmlns", "viewBox"], Kt = ["x", "y", "width", "height"]
293
294
  }
294
295
  l();
295
296
  }
296
- const T = m(() => (e.value.debug && e.value.style.chart.layout.wheel.ticks.quantity < 12 && console.warn("VueUiWheel - The min number of ticks is 12"), e.value.debug && e.value.style.chart.layout.wheel.ticks.quantity > 200 && console.warn("VueUiWheel - The max number of ticks is 200"), Math.max(12, Math.min(e.value.style.chart.layout.wheel.ticks.quantity, 200)))), I = m(() => 100 / T.value), Fe = m(() => {
297
+ const D = f(() => (e.value.debug && e.value.style.chart.layout.wheel.ticks.quantity < 12 && console.warn("VueUiWheel - The min number of ticks is 12"), e.value.debug && e.value.style.chart.layout.wheel.ticks.quantity > 200 && console.warn("VueUiWheel - The max number of ticks is 200"), Math.max(12, Math.min(e.value.style.chart.layout.wheel.ticks.quantity, 200)))), S = f(() => 100 / D.value), Fe = f(() => {
297
298
  const t = [];
298
- for (let s = 0; s < T.value; s += 1) {
299
- const a = d.value > s * I.value ? e.value.style.chart.layout.wheel.ticks.activeColor : e.value.style.chart.layout.wheel.ticks.inactiveColor, { x: l, y: r } = Re(u.value.size / T.value * s), { x: v, y: w } = Re(u.value.size / T.value * s, e.value.style.chart.layout.wheel.ticks.sizeRatio);
299
+ for (let s = 0; s < D.value; s += 1) {
300
+ const a = d.value > s * S.value ? e.value.style.chart.layout.wheel.ticks.activeColor : e.value.style.chart.layout.wheel.ticks.inactiveColor, { x: l, y: r } = Re(u.value.size / D.value * s), { x: v, y: w } = Re(u.value.size / D.value * s, e.value.style.chart.layout.wheel.ticks.sizeRatio);
300
301
  t.push({
301
302
  x1: l,
302
303
  y1: r,
303
304
  x2: v,
304
305
  y2: w,
305
- color: e.value.style.chart.layout.wheel.ticks.gradient.show ? Z(a, s * I.value / T.value * (e.value.style.chart.layout.wheel.ticks.gradient.shiftHueIntensity / 100)) : a
306
+ color: e.value.style.chart.layout.wheel.ticks.gradient.show ? Z(a, s * S.value / D.value * (e.value.style.chart.layout.wheel.ticks.gradient.shiftHueIntensity / 100)) : a
306
307
  });
307
308
  }
308
309
  return t;
309
- }), st = m(() => Wt({ series: Fe.value.map((t) => ({
310
+ }), ot = f(() => Nt({ series: Fe.value.map((t) => ({
310
311
  name: "",
311
312
  value: 1,
312
313
  color: t.color
@@ -315,12 +316,12 @@ const Zt = ["id"], Jt = ["xmlns", "viewBox"], Kt = ["x", "y", "width", "height"]
315
316
  ee.value = t, pe.value += 1;
316
317
  }
317
318
  const te = _(!1);
318
- function ve() {
319
+ function de() {
319
320
  te.value = !te.value;
320
321
  }
321
- async function ot({ scale: t = 2 } = {}) {
322
+ async function nt({ scale: t = 2 } = {}) {
322
323
  if (!X.value) return;
323
- const { width: s, height: a } = X.value.getBoundingClientRect(), l = s / a, { imageUri: r, base64: v } = await Ht({ domElement: X.value, base64: !0, img: !0, scale: t });
324
+ const { width: s, height: a } = X.value.getBoundingClientRect(), l = s / a, { imageUri: r, base64: v } = await Kt({ domElement: X.value, base64: !0, img: !0, scale: t });
324
325
  return {
325
326
  imageUri: r,
326
327
  base64: v,
@@ -330,12 +331,25 @@ const Zt = ["id"], Jt = ["xmlns", "viewBox"], Kt = ["x", "y", "width", "height"]
330
331
  aspectRatio: l
331
332
  };
332
333
  }
333
- const nt = m(() => e.value.style.chart.layout.wheel.ticks.strokeWidth * 2), ut = m(() => e.value.style.chart.layout.wheel.ticks.strokeWidth * 2 * 0.75), it = m(() => e.value.style.chart.layout.wheel.ticks.strokeWidth), U = m(() => Math.max(1, Math.min(20, e.value.style.chart.layout.wheel.ticks.depth3d)));
334
+ const ut = f(() => e.value.style.chart.layout.wheel.ticks.strokeWidth * 2), rt = f(() => e.value.style.chart.layout.wheel.ticks.strokeWidth * 2 * 0.75), it = f(() => e.value.style.chart.layout.wheel.ticks.strokeWidth), U = f(() => Math.max(1, Math.min(20, e.value.style.chart.layout.wheel.ticks.depth3d))), ct = f(() => e.value.style.chart.backgroundColor), ht = f(() => e.value.style.chart.title), { exportSvg: vt, getSvg: dt } = Vt({
335
+ svg: ce,
336
+ title: ht,
337
+ backgroundColor: ct,
338
+ stretchTitle: !0
339
+ });
340
+ async function Ne({ isCb: t }) {
341
+ if (t) {
342
+ const { blob: s, url: a, text: l, dataUrl: r } = await dt();
343
+ e.value.userOptions.callbacks.svg({ blob: s, url: a, text: l, dataUrl: r });
344
+ } else
345
+ vt();
346
+ }
334
347
  return He({
335
- getImage: ot,
336
- generatePdf: Ie,
337
- generateImage: Se,
338
- toggleAnnotator: ve,
348
+ getImage: nt,
349
+ generatePdf: Se,
350
+ generateImage: Ie,
351
+ generateSvg: Ne,
352
+ toggleAnnotator: de,
339
353
  toggleFullscreen: Xe
340
354
  }), (t, s) => (o(), n("div", {
341
355
  class: P(["vue-ui-wheel", { "vue-data-ui-component": !0, "vue-ui-wheel-3d-wrap": e.value.layout === "3d" }]),
@@ -343,31 +357,31 @@ const Zt = ["id"], Jt = ["xmlns", "viewBox"], Kt = ["x", "y", "width", "height"]
343
357
  ref: X,
344
358
  id: ue.value,
345
359
  style: fe(`font-family:${e.value.style.fontFamily};width:100%; text-align:center;background:${e.value.style.chart.backgroundColor};${e.value.responsive ? "height:100%" : ""}`),
346
- onMouseenter: s[0] || (s[0] = () => c(Me)(!0)),
347
- onMouseleave: s[1] || (s[1] = () => c(Me)(!1))
360
+ onMouseenter: s[0] || (s[0] = () => c(Ce)(!0)),
361
+ onMouseleave: s[1] || (s[1] = () => c(Ce)(!1))
348
362
  }, [
349
363
  e.value.userOptions.buttons.annotator ? (o(), se(c(qe), {
350
364
  key: 0,
351
- svgRef: c(_e),
365
+ svgRef: c(ce),
352
366
  backgroundColor: e.value.style.chart.backgroundColor,
353
367
  color: e.value.style.chart.color,
354
368
  active: te.value,
355
- onClose: ve
356
- }, null, 8, ["svgRef", "backgroundColor", "color", "active"])) : S("", !0),
357
- Qe.value ? (o(), n("div", {
369
+ onClose: de
370
+ }, null, 8, ["svgRef", "backgroundColor", "color", "active"])) : I("", !0),
371
+ et.value ? (o(), n("div", {
358
372
  key: 1,
359
373
  ref_key: "noTitle",
360
- ref: we,
374
+ ref: be,
361
375
  class: "vue-data-ui-no-title-space",
362
376
  style: "height:36px; width: 100%;background:transparent"
363
- }, null, 512)) : S("", !0),
377
+ }, null, 512)) : I("", !0),
364
378
  e.value.style.chart.title.text ? (o(), n("div", {
365
379
  key: 2,
366
380
  ref_key: "chartTitle",
367
- ref: ge,
381
+ ref: me,
368
382
  style: "width:100%;background:transparent;padding-bottom:12px"
369
383
  }, [
370
- (o(), se(Yt, {
384
+ (o(), se(Qt, {
371
385
  key: `title_${xe.value}`,
372
386
  config: {
373
387
  title: {
@@ -380,10 +394,10 @@ const Zt = ["id"], Jt = ["xmlns", "viewBox"], Kt = ["x", "y", "width", "height"]
380
394
  }
381
395
  }
382
396
  }, null, 8, ["config"]))
383
- ], 512)) : S("", !0),
384
- e.value.userOptions.show && Je.value && (c(Ce) || c(re)) ? (o(), se(c(Ge), {
397
+ ], 512)) : I("", !0),
398
+ e.value.userOptions.show && Ke.value && (c(_e) || c(ie)) ? (o(), se(c(Ve), {
385
399
  ref_key: "details",
386
- ref: Ke,
400
+ ref: Qe,
387
401
  key: `user_options_${pe.value}`,
388
402
  backgroundColor: e.value.style.chart.backgroundColor,
389
403
  color: e.value.style.chart.color,
@@ -392,6 +406,7 @@ const Zt = ["id"], Jt = ["xmlns", "viewBox"], Kt = ["x", "y", "width", "height"]
392
406
  uid: ue.value,
393
407
  hasPdf: e.value.userOptions.buttons.pdf,
394
408
  hasImg: e.value.userOptions.buttons.img,
409
+ hasSvg: e.value.userOptions.buttons.svg,
395
410
  hasFullscreen: e.value.userOptions.buttons.fullscreen,
396
411
  hasXls: !1,
397
412
  isFullscreen: ee.value,
@@ -403,13 +418,14 @@ const Zt = ["id"], Jt = ["xmlns", "viewBox"], Kt = ["x", "y", "width", "height"]
403
418
  callbacks: e.value.userOptions.callbacks,
404
419
  printScale: e.value.userOptions.print.scale,
405
420
  onToggleFullscreen: Xe,
406
- onGeneratePdf: c(Ie),
407
- onGenerateImage: c(Se),
408
- onToggleAnnotator: ve,
421
+ onGeneratePdf: c(Se),
422
+ onGenerateImage: c(Ie),
423
+ onGenerateSvg: Ne,
424
+ onToggleAnnotator: de,
409
425
  style: fe({
410
- visibility: c(Ce) ? c(re) ? "visible" : "hidden" : "visible"
426
+ visibility: c(_e) ? c(ie) ? "visible" : "hidden" : "visible"
411
427
  })
412
- }, At({ _: 2 }, [
428
+ }, Pt({ _: 2 }, [
413
429
  t.$slots.menuIcon ? {
414
430
  name: "menuIcon",
415
431
  fn: V(({ isOpen: a, color: l }) => [
@@ -445,36 +461,36 @@ const Zt = ["id"], Jt = ["xmlns", "viewBox"], Kt = ["x", "y", "width", "height"]
445
461
  ]),
446
462
  key: "4"
447
463
  } : void 0
448
- ]), 1032, ["backgroundColor", "color", "isPrinting", "isImaging", "uid", "hasPdf", "hasImg", "hasFullscreen", "isFullscreen", "position", "titles", "hasAnnotator", "isAnnotation", "chartElement", "callbacks", "printScale", "onGeneratePdf", "onGenerateImage", "style"])) : S("", !0),
464
+ ]), 1032, ["backgroundColor", "color", "isPrinting", "isImaging", "uid", "hasPdf", "hasImg", "hasSvg", "hasFullscreen", "isFullscreen", "position", "titles", "hasAnnotator", "isAnnotation", "chartElement", "callbacks", "printScale", "onGeneratePdf", "onGenerateImage", "style"])) : I("", !0),
449
465
  (o(), n("svg", {
450
466
  ref_key: "svgRef",
451
- ref: _e,
452
- xmlns: c(Dt),
467
+ ref: ce,
468
+ xmlns: c(Lt),
453
469
  class: P({ "vue-data-ui-fullscreen--on": ee.value, "vue-data-ui-fulscreen--off": !ee.value, "vue-ui-wheel-3d-svg": e.value.layout === "3d" }),
454
- viewBox: e.value.layout === "3d" && !e.value.responsive ? `${D.value?.x - 10} ${D.value?.y ?? 0} ${D.value?.w + 20} ${D.value?.h ?? Math.max(10, u.value.height)}` : `0 0 ${Math.max(10, u.value.width)} ${Math.max(10, u.value.height)}`,
470
+ viewBox: e.value.layout === "3d" && !e.value.responsive ? `${T.value?.x - 10} ${T.value?.y ?? 0} ${T.value?.w + 20} ${T.value?.h ?? Math.max(10, u.value.height)}` : `0 0 ${Math.max(10, u.value.width)} ${Math.max(10, u.value.height)}`,
455
471
  style: fe(`max-width:100%;overflow:visible;background:transparent;color:${e.value.style.chart.color}`)
456
472
  }, [
457
- $t(c(Ve)),
473
+ zt(c(Ze)),
458
474
  t.$slots["chart-background"] ? (o(), n("foreignObject", {
459
475
  key: 0,
460
- x: e.value.layout === "3d" && !e.value.responsive ? D.value?.x - 10 : 0,
461
- y: e.value.layout === "3d" && !e.value.responsive ? D.value?.y ?? 0 : 0,
462
- width: e.value.layout === "3d" && !e.value.responsive ? D.value?.w + 20 : Math.max(10, u.value.width),
463
- height: e.value.layout === "3d" && !e.value.responsive ? D.value?.h ?? Math.max(10, u.value.height) : Math.max(10, u.value.height),
476
+ x: e.value.layout === "3d" && !e.value.responsive ? T.value?.x - 10 : 0,
477
+ y: e.value.layout === "3d" && !e.value.responsive ? T.value?.y ?? 0 : 0,
478
+ width: e.value.layout === "3d" && !e.value.responsive ? T.value?.w + 20 : Math.max(10, u.value.width),
479
+ height: e.value.layout === "3d" && !e.value.responsive ? T.value?.h ?? Math.max(10, u.value.height) : Math.max(10, u.value.height),
464
480
  style: {
465
481
  pointerEvents: "none"
466
482
  }
467
483
  }, [
468
484
  z(t.$slots, "chart-background", {}, void 0, !0)
469
- ], 8, Kt)) : S("", !0),
470
- e.value.layout === "3d" && De.value ? (o(), n("path", {
485
+ ], 8, sa)) : I("", !0),
486
+ e.value.layout === "3d" && Te.value ? (o(), n("path", {
471
487
  key: 1,
472
488
  class: "vue-ui-wheel-inner-circle",
473
- d: De.value.d,
489
+ d: Te.value.d,
474
490
  stroke: e.value.style.chart.layout.innerCircle.stroke,
475
491
  "stroke-width": e.value.style.chart.layout.innerCircle.strokeWidth,
476
492
  fill: "none"
477
- }, null, 8, Qt)) : e.value.style.chart.layout.innerCircle.show ? (o(), n("circle", {
493
+ }, null, 8, oa)) : e.value.style.chart.layout.innerCircle.show ? (o(), n("circle", {
478
494
  key: 2,
479
495
  class: "vue-ui-wheel-inner-circle",
480
496
  cx: i.value.centerX,
@@ -483,9 +499,9 @@ const Zt = ["id"], Jt = ["xmlns", "viewBox"], Kt = ["x", "y", "width", "height"]
483
499
  stroke: e.value.style.chart.layout.innerCircle.stroke,
484
500
  "stroke-width": e.value.style.chart.layout.innerCircle.strokeWidth,
485
501
  fill: "none"
486
- }, null, 8, ea)) : S("", !0),
502
+ }, null, 8, na)) : I("", !0),
487
503
  e.value.layout === "3d" ? (o(), n($, { key: 3 }, [
488
- e.value.style.chart.layout.wheel.ticks.type === "classic" ? (o(), n("g", ta, [
504
+ e.value.style.chart.layout.wheel.ticks.type === "classic" ? (o(), n("g", ua, [
489
505
  (o(!0), n($, null, O(U.value, (a) => (o(), n("g", null, [
490
506
  (o(!0), n($, null, O(Oe.value || [], (l) => (o(), n("line", {
491
507
  key: l.i,
@@ -493,11 +509,11 @@ const Zt = ["id"], Jt = ["xmlns", "viewBox"], Kt = ["x", "y", "width", "height"]
493
509
  y1: l.y1 - a,
494
510
  x2: l.x2,
495
511
  y2: l.y2 - a,
496
- stroke: c(je)(l.color, 0.25 * a / 5),
512
+ stroke: c(Ee)(l.color, 0.25 * a / 5),
497
513
  "stroke-width": e.value.style.chart.layout.wheel.ticks.strokeWidth / 360 * Math.min(u.value.width, u.value.height),
498
514
  "stroke-linecap": e.value.style.chart.layout.wheel.ticks.rounded ? "round" : "butt",
499
- class: P({ "vue-ui-wheel-tick": !0, "vue-ui-tick-animated": e.value.style.chart.animation.use && l.i * I.value <= d.value })
500
- }, null, 10, aa))), 128))
515
+ class: P({ "vue-ui-wheel-tick": !0, "vue-ui-tick-animated": e.value.style.chart.animation.use && l.i * S.value <= d.value })
516
+ }, null, 10, ra))), 128))
501
517
  ]))), 256)),
502
518
  (o(!0), n($, null, O(Oe.value || [], (a) => (o(), n("line", {
503
519
  key: a.i,
@@ -508,11 +524,11 @@ const Zt = ["id"], Jt = ["xmlns", "viewBox"], Kt = ["x", "y", "width", "height"]
508
524
  stroke: a.color,
509
525
  "stroke-width": e.value.style.chart.layout.wheel.ticks.strokeWidth / 360 * Math.min(u.value.width, u.value.height),
510
526
  "stroke-linecap": e.value.style.chart.layout.wheel.ticks.rounded ? "round" : "butt",
511
- class: P({ "vue-ui-wheel-tick": !0, "vue-ui-tick-animated": e.value.style.chart.animation.use && a.i * I.value <= d.value })
512
- }, null, 10, la))), 128))
513
- ])) : (o(), n("g", sa, [
527
+ class: P({ "vue-ui-wheel-tick": !0, "vue-ui-tick-animated": e.value.style.chart.animation.use && a.i * S.value <= d.value })
528
+ }, null, 10, ia))), 128))
529
+ ])) : (o(), n("g", ca, [
514
530
  (o(!0), n($, null, O(U.value, (a) => (o(), n("g", null, [
515
- (o(!0), n($, null, O(he.value(-a) || [], (l) => (o(), n("path", {
531
+ (o(!0), n($, null, O(ve.value(-a) || [], (l) => (o(), n("path", {
516
532
  key: l.i,
517
533
  d: l.d,
518
534
  fill: e.value.style.chart.layout.wheel.ticks.inactiveColor,
@@ -521,20 +537,20 @@ const Zt = ["id"], Jt = ["xmlns", "viewBox"], Kt = ["x", "y", "width", "height"]
521
537
  "stroke-linecap": "round",
522
538
  "stroke-linejoin": "round",
523
539
  class: "vue-ui-wheel-tick"
524
- }, null, 8, oa))), 128)),
525
- (o(!0), n($, null, O(he.value(-a) || [], (l) => (o(), n("path", {
540
+ }, null, 8, ha))), 128)),
541
+ (o(!0), n($, null, O(ve.value(-a) || [], (l) => (o(), n("path", {
526
542
  key: l.i,
527
543
  d: l.d,
528
- fill: c(je)(l.fill, 0.5 * a / U.value),
544
+ fill: c(Ee)(l.fill, 0.5 * a / U.value),
529
545
  stroke: e.value.style.chart.layout.wheel.ticks.stroke,
530
546
  "stroke-width": e.value.style.chart.layout.wheel.ticks.strokeWidth,
531
547
  "stroke-linecap": "round",
532
548
  "stroke-linejoin": "round",
533
- class: P({ "vue-ui-wheel-tick": !0, "vue-ui-tick-animated-3d": e.value.style.chart.animation.use && l.i * I.value <= d.value })
534
- }, null, 10, na))), 128))
549
+ class: P({ "vue-ui-wheel-tick": !0, "vue-ui-tick-animated-3d": e.value.style.chart.animation.use && l.i * S.value <= d.value })
550
+ }, null, 10, va))), 128))
535
551
  ]))), 256)),
536
- It("g", null, [
537
- (o(!0), n($, null, O(he.value(-U.value) || [], (a) => (o(), n("path", {
552
+ Ot("g", null, [
553
+ (o(!0), n($, null, O(ve.value(-U.value) || [], (a) => (o(), n("path", {
538
554
  key: a.i,
539
555
  d: a.d,
540
556
  fill: a.fill,
@@ -542,8 +558,8 @@ const Zt = ["id"], Jt = ["xmlns", "viewBox"], Kt = ["x", "y", "width", "height"]
542
558
  "stroke-width": e.value.style.chart.layout.wheel.ticks.strokeWidth,
543
559
  "stroke-linecap": "round",
544
560
  "stroke-linejoin": "round",
545
- class: P({ "vue-ui-wheel-tick": !0, "vue-ui-tick-animated-3d": e.value.style.chart.animation.use && a.i * I.value <= d.value })
546
- }, null, 10, ua))), 128))
561
+ class: P({ "vue-ui-wheel-tick": !0, "vue-ui-tick-animated-3d": e.value.style.chart.animation.use && a.i * S.value <= d.value })
562
+ }, null, 10, da))), 128))
547
563
  ])
548
564
  ]))
549
565
  ], 64)) : (o(), n($, { key: 4 }, [
@@ -555,29 +571,29 @@ const Zt = ["id"], Jt = ["xmlns", "viewBox"], Kt = ["x", "y", "width", "height"]
555
571
  stroke: a.color,
556
572
  "stroke-width": e.value.style.chart.layout.wheel.ticks.strokeWidth / 360 * Math.min(u.value.width, u.value.height),
557
573
  "stroke-linecap": e.value.style.chart.layout.wheel.ticks.rounded ? "round" : "butt",
558
- class: P({ "vue-ui-wheel-tick": !0, "vue-ui-tick-animated": e.value.style.chart.animation.use && l * I.value <= d.value })
559
- }, null, 10, ia))), 256)) : (o(!0), n($, { key: 1 }, O(st.value, (a, l) => (o(), n("path", {
574
+ class: P({ "vue-ui-wheel-tick": !0, "vue-ui-tick-animated": e.value.style.chart.animation.use && l * S.value <= d.value })
575
+ }, null, 10, ya))), 256)) : (o(!0), n($, { key: 1 }, O(ot.value, (a, l) => (o(), n("path", {
560
576
  d: a.arcSlice,
561
577
  fill: a.color,
562
- class: P({ "vue-ui-wheel-tick": !0, "vue-ui-tick-animated": e.value.style.chart.animation.use && l * I.value <= d.value }),
578
+ class: P({ "vue-ui-wheel-tick": !0, "vue-ui-tick-animated": e.value.style.chart.animation.use && l * S.value <= d.value }),
563
579
  stroke: e.value.style.chart.layout.wheel.ticks.stroke,
564
580
  "stroke-width": e.value.style.chart.layout.wheel.ticks.strokeWidth
565
- }, null, 10, ra))), 256))
581
+ }, null, 10, ka))), 256))
566
582
  ], 64)),
567
- e.value.style.chart.layout.percentage.show ? (o(), n("g", ca, [
568
- c(be) ? (o(), n("rect", {
583
+ e.value.style.chart.layout.percentage.show ? (o(), n("g", ga, [
584
+ c(Me) ? (o(), n("rect", {
569
585
  key: 0,
570
586
  x: i.value.centerX - 40,
571
- y: i.value.centerY - B.value / 2,
587
+ y: i.value.centerY - E.value / 2,
572
588
  width: 80,
573
- height: B.value,
589
+ height: E.value,
574
590
  fill: "#6A6A6A80",
575
591
  rx: "3"
576
- }, null, 8, ha)) : (o(), n("text", {
592
+ }, null, 8, fa)) : (o(), n("text", {
577
593
  key: 1,
578
594
  x: i.value.centerX + e.value.style.chart.layout.percentage.offsetX,
579
- y: i.value.centerY + B.value / 3 + e.value.style.chart.layout.percentage.offsetY,
580
- "font-size": B.value,
595
+ y: i.value.centerY + E.value / 3 + e.value.style.chart.layout.percentage.offsetY,
596
+ "font-size": E.value,
581
597
  fill: e.value.style.chart.layout.wheel.ticks.gradient.show ? c(Z)(e.value.style.chart.layout.wheel.ticks.activeColor, d.value / 100 * (e.value.style.chart.layout.wheel.ticks.gradient.shiftHueIntensity / 100)) : e.value.style.chart.layout.wheel.ticks.activeColor,
582
598
  "text-anchor": "middle",
583
599
  "font-weight": e.value.style.chart.layout.percentage.bold ? "bold" : "normal",
@@ -588,33 +604,33 @@ const Zt = ["id"], Jt = ["xmlns", "viewBox"], Kt = ["x", "y", "width", "height"]
588
604
  "stroke-linejoin": "round",
589
605
  "paint-order": "stroke fill",
590
606
  class: P({ "vue-ui-wheel-label": e.value.layout === "3d" })
591
- }, St(c(Tt)(
607
+ }, Wt(c(Ut)(
592
608
  e.value.style.chart.layout.percentage.formatter,
593
- c(Be)(d.value),
594
- c(Ft)({
595
- v: c(Be)(d.value),
609
+ c(je)(d.value),
610
+ c(Bt)({
611
+ v: c(je)(d.value),
596
612
  s: "%",
597
613
  r: e.value.style.chart.layout.percentage.rounding
598
614
  })
599
- )), 11, va))
600
- ])) : S("", !0),
615
+ )), 11, pa))
616
+ ])) : I("", !0),
601
617
  z(t.$slots, "svg", { svg: u.value }, void 0, !0)
602
- ], 14, Jt)),
603
- t.$slots.watermark ? (o(), n("div", da, [
618
+ ], 14, la)),
619
+ t.$slots.watermark ? (o(), n("div", ma, [
604
620
  z(t.$slots, "watermark", oe(ne({ isPrinting: c(Ae) || c($e) })), void 0, !0)
605
- ])) : S("", !0),
621
+ ])) : I("", !0),
606
622
  t.$slots.source ? (o(), n("div", {
607
623
  key: 5,
608
624
  ref_key: "source",
609
- ref: me,
625
+ ref: we,
610
626
  dir: "auto"
611
627
  }, [
612
628
  z(t.$slots, "source", {}, void 0, !0)
613
- ], 512)) : S("", !0),
614
- c(be) ? (o(), se(Gt, { key: 6 })) : S("", !0)
615
- ], 46, Zt));
629
+ ], 512)) : I("", !0),
630
+ c(Me) ? (o(), se(Ht, { key: 6 })) : I("", !0)
631
+ ], 46, aa));
616
632
  }
617
- }, Sa = /* @__PURE__ */ Vt(ya, [["__scopeId", "data-v-0e59272e"]]);
633
+ }, Da = /* @__PURE__ */ ta(wa, [["__scopeId", "data-v-9b607460"]]);
618
634
  export {
619
- Sa as default
635
+ Da as default
620
636
  };