vue-data-ui 3.4.6 → 3.4.8

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 (115) hide show
  1. package/dist/{PackageVersion-BSldVhnp.js → PackageVersion-D-auaEEJ.js} +1 -1
  2. package/dist/{UserOptions-CnzumGJj.js → UserOptions-CGnQt6Fd.js} +91 -91
  3. package/dist/components/vue-ui-3d-bar.js +1 -1
  4. package/dist/components/vue-ui-age-pyramid.js +1 -1
  5. package/dist/components/vue-ui-bullet.js +1 -1
  6. package/dist/components/vue-ui-candlestick.js +1 -1
  7. package/dist/components/vue-ui-carousel-table.js +1 -1
  8. package/dist/components/vue-ui-chestnut.js +1 -1
  9. package/dist/components/vue-ui-chord.js +1 -1
  10. package/dist/components/vue-ui-circle-pack.js +1 -1
  11. package/dist/components/vue-ui-dashboard.js +1 -1
  12. package/dist/components/vue-ui-donut-evolution.js +1 -1
  13. package/dist/components/vue-ui-donut.js +1 -1
  14. package/dist/components/vue-ui-dumbbell.js +1 -1
  15. package/dist/components/vue-ui-flow.js +1 -1
  16. package/dist/components/vue-ui-funnel.js +1 -1
  17. package/dist/components/vue-ui-galaxy.js +1 -1
  18. package/dist/components/vue-ui-gauge.js +1 -1
  19. package/dist/components/vue-ui-gizmo.js +1 -1
  20. package/dist/components/vue-ui-heatmap.js +1 -1
  21. package/dist/components/vue-ui-history-plot.js +1 -1
  22. package/dist/components/vue-ui-horizontal-bar.js +1 -1
  23. package/dist/components/vue-ui-molecule.js +1 -1
  24. package/dist/components/vue-ui-mood-radar.js +1 -1
  25. package/dist/components/vue-ui-nested-donuts.js +1 -1
  26. package/dist/components/vue-ui-onion.js +1 -1
  27. package/dist/components/vue-ui-parallel-coordinate-plot.js +1 -1
  28. package/dist/components/vue-ui-quadrant.js +1 -1
  29. package/dist/components/vue-ui-quick-chart.js +1 -1
  30. package/dist/components/vue-ui-radar.js +1 -1
  31. package/dist/components/vue-ui-relation-circle.js +1 -1
  32. package/dist/components/vue-ui-ridgeline.js +1 -1
  33. package/dist/components/vue-ui-rings.js +1 -1
  34. package/dist/components/vue-ui-scatter.js +1 -1
  35. package/dist/components/vue-ui-skeleton.js +1 -1
  36. package/dist/components/vue-ui-spark-trend.js +1 -1
  37. package/dist/components/vue-ui-sparkbar.js +1 -1
  38. package/dist/components/vue-ui-sparkgauge.js +1 -1
  39. package/dist/components/vue-ui-sparkhistogram.js +1 -1
  40. package/dist/components/vue-ui-sparkline.js +1 -1
  41. package/dist/components/vue-ui-sparkstackbar.js +1 -1
  42. package/dist/components/vue-ui-stackbar.js +1 -1
  43. package/dist/components/vue-ui-strip-plot.js +1 -1
  44. package/dist/components/vue-ui-table-heatmap.js +1 -1
  45. package/dist/components/vue-ui-table-sparkline.js +1 -1
  46. package/dist/components/vue-ui-table.js +1 -1
  47. package/dist/components/vue-ui-thermometer.js +1 -1
  48. package/dist/components/vue-ui-timer.js +1 -1
  49. package/dist/components/vue-ui-tiremarks.js +1 -1
  50. package/dist/components/vue-ui-treemap.js +1 -1
  51. package/dist/components/vue-ui-vertical-bar.js +1 -1
  52. package/dist/components/vue-ui-waffle.js +1 -1
  53. package/dist/components/vue-ui-wheel.js +1 -1
  54. package/dist/components/vue-ui-word-cloud.js +1 -1
  55. package/dist/components/vue-ui-world.js +1 -1
  56. package/dist/components/vue-ui-xy-canvas.js +1 -1
  57. package/dist/components/vue-ui-xy.js +1 -1
  58. package/dist/style.css +1 -1
  59. package/dist/{vue-data-ui-BCOCglbX.js → vue-data-ui-CzqHcPqG.js} +55 -55
  60. package/dist/vue-data-ui.js +55 -55
  61. package/dist/{vue-ui-3d-bar-E-nuI5P-.js → vue-ui-3d-bar-CwXiD8zD.js} +49 -42
  62. package/dist/{vue-ui-age-pyramid-DfN03uDZ.js → vue-ui-age-pyramid-DlEPlWmV.js} +12 -5
  63. package/dist/{vue-ui-bullet-DVOmSxcg.js → vue-ui-bullet-DtzpeIu4.js} +59 -52
  64. package/dist/{vue-ui-candlestick-C0tlhgvf.js → vue-ui-candlestick-DzoiyaeB.js} +56 -49
  65. package/dist/{vue-ui-carousel-table-Bwf70lBb.js → vue-ui-carousel-table-BqRERrjs.js} +79 -72
  66. package/dist/{vue-ui-chestnut-CzNj08EH.js → vue-ui-chestnut-CzBGckif.js} +77 -70
  67. package/dist/{vue-ui-chord-CQAAGCjj.js → vue-ui-chord-B4waG93A.js} +71 -64
  68. package/dist/{vue-ui-circle-pack-8Ut7fxPJ.js → vue-ui-circle-pack-DiTw_p5r.js} +58 -51
  69. package/dist/{vue-ui-dashboard-CpG2L2Xk.js → vue-ui-dashboard-Bt-MUKqy.js} +56 -56
  70. package/dist/{vue-ui-donut-acdGdmqY.js → vue-ui-donut-Bc492JeS.js} +95 -88
  71. package/dist/{vue-ui-donut-evolution-J2tTLcht.js → vue-ui-donut-evolution-D6TaZK2x.js} +80 -73
  72. package/dist/{vue-ui-dumbbell-DhDvD0DH.js → vue-ui-dumbbell-BlZr68Sq.js} +12 -5
  73. package/dist/{vue-ui-flow-Du9joQEy.js → vue-ui-flow-ByEP18dA.js} +205 -198
  74. package/dist/{vue-ui-funnel-BPccZaVG.js → vue-ui-funnel-BU7d_U6T.js} +98 -91
  75. package/dist/{vue-ui-galaxy-D69X300F.js → vue-ui-galaxy-CpVrxaTr.js} +140 -133
  76. package/dist/{vue-ui-gauge-C_tPaN05.js → vue-ui-gauge-B9Z4EXoj.js} +108 -101
  77. package/dist/{vue-ui-gizmo-Bsc620Bs.js → vue-ui-gizmo-T1paJEJ3.js} +1 -1
  78. package/dist/{vue-ui-heatmap-CRoQ0Xo1.js → vue-ui-heatmap-Uw83eEMz.js} +97 -90
  79. package/dist/{vue-ui-history-plot-PQT8iCyT.js → vue-ui-history-plot-C93VwVCY.js} +41 -34
  80. package/dist/{vue-ui-molecule-C0hQ1BHF.js → vue-ui-molecule-CFMWwXFN.js} +94 -87
  81. package/dist/{vue-ui-mood-radar-DMng4w8x.js → vue-ui-mood-radar-FkVaaOVG.js} +71 -64
  82. package/dist/{vue-ui-nested-donuts-DtnysjV9.js → vue-ui-nested-donuts-Cyi98NXq.js} +93 -86
  83. package/dist/{vue-ui-onion-C0Z5_zay.js → vue-ui-onion-BCENNhsY.js} +82 -75
  84. package/dist/{vue-ui-parallel-coordinate-plot-C0grlzOd.js → vue-ui-parallel-coordinate-plot-Dca9wkD0.js} +116 -109
  85. package/dist/{vue-ui-quadrant-BJGF3wuL.js → vue-ui-quadrant-CEtFEZT3.js} +46 -39
  86. package/dist/{vue-ui-quick-chart-CaR3jp1D.js → vue-ui-quick-chart-bqcp6BIl.js} +171 -164
  87. package/dist/{vue-ui-radar-wYNRX7Uh.js → vue-ui-radar-lgRCmyNP.js} +36 -29
  88. package/dist/{vue-ui-relation-circle-CIwou-3d.js → vue-ui-relation-circle-cRRrbaIT.js} +100 -93
  89. package/dist/{vue-ui-ridgeline-DnzoIClq.js → vue-ui-ridgeline-CaeFJq9a.js} +23 -16
  90. package/dist/{vue-ui-rings-B7zSZa8h.js → vue-ui-rings-DbsYfGjx.js} +55 -48
  91. package/dist/{vue-ui-scatter-Bevyh8s3.js → vue-ui-scatter-DcMnoNrY.js} +189 -182
  92. package/dist/{vue-ui-skeleton-DfuGqFYM.js → vue-ui-skeleton-b5fdgyHv.js} +1 -1
  93. package/dist/{vue-ui-spark-trend-D16UBZxk.js → vue-ui-spark-trend-DrQ26BzL.js} +1 -1
  94. package/dist/{vue-ui-sparkbar-Dl1kY_5e.js → vue-ui-sparkbar-BlvXLcfO.js} +1 -1
  95. package/dist/{vue-ui-sparkgauge-iJIT26xG.js → vue-ui-sparkgauge-CQmNePxu.js} +1 -1
  96. package/dist/{vue-ui-sparkhistogram-Bawjmfxu.js → vue-ui-sparkhistogram-CJatqy8x.js} +1 -1
  97. package/dist/{vue-ui-sparkline-CGVoLIcr.js → vue-ui-sparkline-5m7hFiMq.js} +1 -1
  98. package/dist/{vue-ui-sparkstackbar-CdlGAlFM.js → vue-ui-sparkstackbar-Z5g6L2Hj.js} +1 -1
  99. package/dist/{vue-ui-stackbar-Cjz4PvOG.js → vue-ui-stackbar-WrexTg8_.js} +53 -46
  100. package/dist/{vue-ui-strip-plot-DS84cU6V.js → vue-ui-strip-plot-DqX7yya9.js} +13 -6
  101. package/dist/{vue-ui-table-t9Shp522.js → vue-ui-table-BhrP9BCp.js} +2 -2
  102. package/dist/{vue-ui-table-heatmap-B4rjR34n.js → vue-ui-table-heatmap-BqCEBoUf.js} +1 -1
  103. package/dist/{vue-ui-table-sparkline-CAqqSvhG.js → vue-ui-table-sparkline-BECa8n5_.js} +1 -1
  104. package/dist/{vue-ui-thermometer-CKciCjTK.js → vue-ui-thermometer-BxBGrsSR.js} +83 -76
  105. package/dist/{vue-ui-timer-CNwoVRn5.js → vue-ui-timer-BbHY5Ed5.js} +1 -1
  106. package/dist/{vue-ui-tiremarks-Dxp9rcJi.js → vue-ui-tiremarks-DzL3Sc1f.js} +43 -36
  107. package/dist/{vue-ui-treemap-D4cRZ9SZ.js → vue-ui-treemap-DoHoS5NK.js} +114 -107
  108. package/dist/{vue-ui-vertical-bar-Cz6yCNYK.js → vue-ui-vertical-bar-D0N5btU-.js} +89 -82
  109. package/dist/{vue-ui-waffle-BhQ0m4Ia.js → vue-ui-waffle-CTt7dxCY.js} +41 -34
  110. package/dist/{vue-ui-wheel-Bh_G3WQQ.js → vue-ui-wheel--TIPvQ9I.js} +132 -125
  111. package/dist/{vue-ui-word-cloud-Bk2yP7oQ.js → vue-ui-word-cloud-D5pZq4Jq.js} +116 -109
  112. package/dist/{vue-ui-world-C_eUAzmI.js → vue-ui-world-BERHgePa.js} +71 -64
  113. package/dist/{vue-ui-xy-BDc2EKMr.js → vue-ui-xy-BI5stV8f.js} +163 -156
  114. package/dist/{vue-ui-xy-canvas-BGl_2pHw.js → vue-ui-xy-canvas-DXnLFwW3.js} +1 -1
  115. package/package.json +2 -2
@@ -1,4 +1,4 @@
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 q, 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";
1
+ import { useCssVars as At, computed as f, defineAsyncComponent as ge, ref as S, toRefs as _t, 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 z, createBlock as se, createCommentVNode as I, createSlots as Pt, withCtx as E, renderSlot as R, normalizeProps as oe, guardReactiveProps as ne, createVNode as zt, Fragment as A, renderList as O, createElementVNode as Ot, toDisplayString as Wt } from "vue";
2
2
  import { c as Tt, t as Dt, o as Ft, f as Xt, i as Z, T as Nt, X as Lt, S as Ee, a as Ut, x as je, d as Bt } from "./lib-C_mNZmhD.js";
3
3
  import { t as Et, u as jt } from "./useResponsive-DfdjqQps.js";
4
4
  import { u as Yt, a as Ye } from "./useNestedProp-BjZe1Y85.js";
@@ -11,7 +11,7 @@ import Kt from "./img-BecE5qXd.js";
11
11
  import Qt from "./Title-l36lOBMx.js";
12
12
  import { t as ea } from "./themes-AUNCOb2G.js";
13
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
+ 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 }, ia = ["x1", "y1", "x2", "y2", "stroke", "stroke-width", "stroke-linecap"], ra = ["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 = {
15
15
  key: 4,
16
16
  class: "vue-data-ui-watermark"
17
17
  }, wa = {
@@ -31,13 +31,13 @@ const aa = ["id"], la = ["xmlns", "viewBox"], sa = ["x", "y", "width", "height"]
31
31
  }
32
32
  },
33
33
  setup(Ge, { expose: He }) {
34
- $t((t) => ({
35
- v67722b6e: ut.value,
36
- v3e8c19ef: rt.value,
37
- v3e8bfc82: it.value
34
+ At((t) => ({
35
+ v33916bed: ut.value,
36
+ v2d12b493: it.value,
37
+ v2d129726: rt.value
38
38
  }));
39
- const Ve = ge(() => import("./PenAndPaper-DSvu9dwa.js")), qe = ge(() => import("./UserOptions-CnzumGJj.js")), Ze = ge(() => import("./PackageVersion-BSldVhnp.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),
39
+ const Ve = ge(() => import("./PenAndPaper-DSvu9dwa.js")), qe = ge(() => import("./UserOptions-CGnQt6Fd.js")), Ze = ge(() => import("./PackageVersion-D-auaEEJ.js")), { vue_ui_wheel: Je } = Yt(), F = Ge, Ke = f(() => !!F.dataset && Object.keys(F.dataset).length), ue = S(Tt()), Qe = S(null), pe = S(0), X = S(null), me = S(null), we = S(null), be = S(null), xe = S(0), e = S(he()), { loading: Me, FINAL_DATASET: ie } = Gt({
40
+ ..._t(F),
41
41
  FINAL_CONFIG: e,
42
42
  prepareConfig: he,
43
43
  skeletonDataset: { percentage: 50 },
@@ -64,7 +64,7 @@ const aa = ["id"], la = ["xmlns", "viewBox"], sa = ["x", "y", "width", "height"]
64
64
  }
65
65
  }
66
66
  })
67
- }), { userOptionsVisible: ie, setUserOptionsVisibility: Ce, keepUserOptionState: _e } = Zt({ config: e.value }), { svgRef: ce } = Jt({ config: e.value.style.chart.title });
67
+ }), { userOptionsVisible: re, setUserOptionsVisibility: Ce, keepUserOptionState: Se } = Zt({ config: e.value }), { svgRef: ce } = Jt({ config: e.value.style.chart.title });
68
68
  function he() {
69
69
  const t = Ye({
70
70
  userConfig: F.config,
@@ -78,29 +78,29 @@ const aa = ["id"], la = ["xmlns", "viewBox"], sa = ["x", "y", "width", "height"]
78
78
  } : t;
79
79
  }
80
80
  Ue(() => F.config, (t) => {
81
- e.value = he(), ie.value = !e.value.userOptions.showOnChartHover, Pe(), xe.value += 1;
81
+ e.value = he(), re.value = !e.value.userOptions.showOnChartHover, Pe(), xe.value += 1;
82
82
  }, { deep: !0 });
83
- const { isPrinting: Ae, isImaging: $e, generatePdf: Se, generateImage: Ie } = Vt({
83
+ const { isPrinting: $e, isImaging: Ae, generatePdf: _e, generateImage: Ie } = Vt({
84
84
  elementId: ue.value,
85
85
  fileName: e.value.style.chart.title.text || "vue-ui-wheel",
86
86
  options: e.value.userOptions.print
87
- }), et = f(() => 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 = S({
88
88
  size: 360,
89
89
  height: 360,
90
90
  width: 360
91
- }), E = _(e.value.style.chart.layout.percentage.fontSize), i = f(() => ({
91
+ }), j = S(e.value.style.chart.layout.percentage.fontSize), r = f(() => ({
92
92
  radius: Math.min(u.value.width, u.value.height) * 0.9 / 2 * e.value.style.chart.layout.wheel.radiusRatio,
93
93
  centerX: u.value.width / 2,
94
94
  centerY: u.value.height / 2
95
95
  }));
96
96
  function Re(t, s = 1) {
97
97
  return {
98
- x: i.value.centerX + i.value.radius * Math.cos(29.85 + t * Math.PI / 180) * s,
99
- y: i.value.centerY + i.value.radius * Math.sin(29.85 + t * Math.PI / 180) * s
98
+ x: r.value.centerX + r.value.radius * Math.cos(29.85 + t * Math.PI / 180) * s,
99
+ y: r.value.centerY + r.value.radius * Math.sin(29.85 + t * Math.PI / 180) * s
100
100
  };
101
101
  }
102
- const d = _(e.value.style.chart.animation.use ? 0 : re.value.percentage || 0);
103
- Ue(() => re.value, (t) => {
102
+ const d = S(e.value.style.chart.animation.use ? 0 : ie.value.percentage || 0);
103
+ Ue(() => ie.value, (t) => {
104
104
  e.value.style.chart.animation.use ? De(t.percentage) : d.value = t.percentage || 0;
105
105
  }, { deep: !0 });
106
106
  const W = Be(null), L = Be(null);
@@ -122,26 +122,26 @@ const aa = ["id"], la = ["xmlns", "viewBox"], sa = ["x", "y", "width", "height"]
122
122
  noTitle: be.value
123
123
  });
124
124
  requestAnimationFrame(() => {
125
- u.value.width = s, u.value.height = a, E.value = e.value.style.chart.layout.percentage.fontSize / 360 * Math.min(s, a);
125
+ u.value.width = s, u.value.height = a, j.value = e.value.style.chart.layout.percentage.fontSize / 360 * Math.min(s, a);
126
126
  });
127
127
  });
128
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);
129
129
  }
130
- De(re.value.percentage || 0);
130
+ De(ie.value.percentage || 0);
131
131
  }
132
132
  Rt(() => {
133
133
  W.value && (L.value && W.value.unobserve(L.value), W.value.disconnect());
134
134
  });
135
135
  function J([t, s, a], l) {
136
- const r = Math.cos(l), v = Math.sin(l);
137
- return [t, s * r - a * v, s * v + a * r];
136
+ const i = Math.cos(l), v = Math.sin(l);
137
+ return [t, s * i - a * v, s * v + a * i];
138
138
  }
139
139
  function K([t, s, a], l) {
140
- const r = l / (l - a);
141
- return [t * r, s * r, a, r];
140
+ const i = l / (l - a);
141
+ return [t * i, s * i, a, i];
142
142
  }
143
143
  function ze(t, s) {
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)));
144
+ const a = t.replace("#", ""), l = parseInt(a.substring(0, 2), 16), i = 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(i * y))), M = Math.max(0, Math.min(255, Math.round(v * y)));
145
145
  return `#${k.toString(16).padStart(2, "0")}${x.toString(16).padStart(2, "0")}${M.toString(16).padStart(2, "0")}`;
146
146
  }
147
147
  function at({
@@ -149,19 +149,19 @@ const aa = ["id"], la = ["xmlns", "viewBox"], sa = ["x", "y", "width", "height"]
149
149
  cy: s,
150
150
  radius: a,
151
151
  innerRatio: l = 0.8,
152
- count: r = 120,
152
+ count: i = 120,
153
153
  startDeg: v = 0,
154
154
  axDeg: w = 50,
155
155
  f: y = 520,
156
156
  baseStroke: k = 5,
157
157
  activeColor: x,
158
158
  inactiveColor: M,
159
- getActive: A
159
+ getActive: $
160
160
  }) {
161
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, V] = J(G, h), [le, yt, , kt] = K([ae, Le, H], y), [gt, ft, , ba] = K([ye, ke, V], y), pt = t + le, mt = s + yt, wt = t + gt, bt = s + ft, xt = (Math.max(H, V) - -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, V) });
162
+ for (let m = 0; m < i; m += 1) {
163
+ const g = (m / i * 360 + v) * Math.PI / 180, P = t + p * Math.cos(g), B = s + p * Math.sin(g), N = t + C * Math.cos(g), Y = s + C * Math.sin(g), G = [P - t, B - s, 0], H = [N - t, Y - s, 0], [ae, Le, V] = J(G, h), [ye, ke, q] = J(H, h), [le, yt, , kt] = K([ae, Le, V], y), [gt, ft, , ba] = K([ye, ke, q], y), pt = t + le, mt = s + yt, wt = t + gt, bt = s + ft, xt = (Math.max(V, q) - -p * Math.sin(h)) / (2 * p * Math.sin(h) || 1), Mt = $ ? $(m) : !0, Ct = e.value.style.chart.layout.wheel.ticks.gradient.show ? Z(x, m * _.value / D.value * (e.value.style.chart.layout.wheel.ticks.gradient.shiftHueIntensity / 100)) : x, St = ze(Mt ? Ct : M, xt), $t = 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: $t, color: St, z: Math.max(V, q) });
165
165
  }
166
166
  return b.sort((m, g) => m.z - g.z), b;
167
167
  }
@@ -169,9 +169,9 @@ const aa = ["id"], la = ["xmlns", "viewBox"], sa = ["x", "y", "width", "height"]
169
169
  if (!e.value.layout === "3d") return null;
170
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
171
  return at({
172
- cx: i.value.centerX,
173
- cy: i.value.centerY,
174
- radius: i.value.radius,
172
+ cx: r.value.centerX,
173
+ cy: r.value.centerY,
174
+ radius: r.value.radius,
175
175
  innerRatio: e.value.style.chart.layout.wheel.ticks.sizeRatio,
176
176
  count: t,
177
177
  startDeg: -90,
@@ -180,29 +180,29 @@ const aa = ["id"], la = ["xmlns", "viewBox"], sa = ["x", "y", "width", "height"]
180
180
  baseStroke: l,
181
181
  activeColor: s,
182
182
  inactiveColor: a,
183
- getActive: (r) => d.value > r * S.value
183
+ getActive: (i) => d.value > i * _.value
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
+ function We({ cx: t, cy: s, r: a, count: l = 180, startDeg: i = -90, axDeg: v = 50, f: w }) {
187
187
  const y = v * Math.PI / 180, k = [];
188
188
  let x = 0;
189
189
  for (let h = 0; h < l; h += 1) {
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]);
190
+ const p = (h / l * 360 + i) * Math.PI / 180, C = [a * Math.cos(p), a * Math.sin(p), 0], [b, m, g] = J(C, y), [P, B, , N] = K([b, m, g], w);
191
+ x += N, k.push([t + P, s + B]);
192
192
  }
193
193
  let M = `M ${k[0][0]} ${k[0][1]}`;
194
194
  for (let h = 1; h < k.length; h += 1)
195
195
  M += ` L ${k[h][0]} ${k[h][1]}`;
196
196
  M += " Z";
197
- const A = x / l;
198
- return { d: M, avgScale: A, pts: k };
197
+ const $ = x / l;
198
+ return { d: M, avgScale: $, pts: k };
199
199
  }
200
200
  const T = f(() => {
201
201
  if (e.value.layout !== "3d") return null;
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 t = Math.min(u.value.width, u.value.height) * 1.45, s = e.value.style.chart.layout.wheel.tiltAngle3d, a = r.value.radius, { pts: l, avgScale: i } = (() => {
203
203
  const C = a, b = s, { avgScale: m, pts: g } = We({
204
- cx: i.value.centerX,
205
- cy: i.value.centerY,
204
+ cx: r.value.centerX,
205
+ cy: r.value.centerY,
206
206
  r: C,
207
207
  startDeg: -90,
208
208
  axDeg: b,
@@ -213,7 +213,7 @@ const aa = ["id"], la = ["xmlns", "viewBox"], sa = ["x", "y", "width", "height"]
213
213
  let v = 1 / 0, w = 1 / 0, y = -1 / 0, k = -1 / 0;
214
214
  for (const [C, b] of l)
215
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
+ 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, $ = 0.5 * Math.max(x, M * (i || 1)), h = Math.max(0, Number(e.value.style.chart.layout.wheel.ticks.depth3d) || 0), p = $;
217
217
  return {
218
218
  x: v - p,
219
219
  y: w - h - p,
@@ -223,8 +223,8 @@ const aa = ["id"], la = ["xmlns", "viewBox"], sa = ["x", "y", "width", "height"]
223
223
  });
224
224
  function lt(t) {
225
225
  const s = Math.min(u.value.width, u.value.height) * 1.45, { d: a, avgScale: l } = We({
226
- cx: i.value.centerX,
227
- cy: i.value.centerY,
226
+ cx: r.value.centerX,
227
+ cy: r.value.centerY,
228
228
  r: t,
229
229
  startDeg: -90,
230
230
  axDeg: e.value.style.chart.layout.wheel.tiltAngle3d,
@@ -236,45 +236,45 @@ const aa = ["id"], la = ["xmlns", "viewBox"], sa = ["x", "y", "width", "height"]
236
236
  strokeWidth: v
237
237
  };
238
238
  }
239
- const Te = f(() => lt(Math.max(0, i.value.radius * 0.8 * e.value.style.chart.layout.innerCircle.radiusRatio)));
240
- function Q({ cx: t, cy: s, r: a, aRad: l, ax: r, f: v }) {
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 };
239
+ const Te = f(() => lt(Math.max(0, r.value.radius * 0.8 * e.value.style.chart.layout.innerCircle.radiusRatio)));
240
+ function Q({ cx: t, cy: s, r: a, aRad: l, ax: i, f: v }) {
241
+ const w = [a * Math.cos(l), a * Math.sin(l), 0], [y, k, x] = J(w, i), [M, $, , h] = K([y, k, x], v);
242
+ return { x: t + M, y: s + $, z: x, s: h };
243
243
  }
244
244
  function st({
245
245
  cx: t,
246
246
  cy: s,
247
247
  radius: a,
248
248
  innerRatio: l = 0.8,
249
- count: r = 120,
249
+ count: i = 120,
250
250
  startDeg: v = -87,
251
251
  axDeg: w = 45,
252
252
  f: y = 600,
253
253
  activeColor: k,
254
254
  inactiveColor: x,
255
255
  getActive: M,
256
- Y: A = 0
256
+ Y: $ = 0
257
257
  }) {
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(
258
+ const h = w * Math.PI / 180, p = a, C = a * l, b = 2 * Math.PI / i, m = [];
259
+ for (let g = 0; g < i; g += 1) {
260
+ const P = v * Math.PI / 180 + b * g, B = P + b * Math.min(1, e.value.style.chart.layout.wheel.ticks.spacingRatio3d), N = Q({ cx: t, cy: s + $, r: p, aRad: P, ax: h, f: y }), Y = Q({ cx: t, cy: s + $, r: p, aRad: B, ax: h, f: y }), G = Q({ cx: t, cy: s + $, r: C, aRad: B, ax: h, f: y }), H = Q({ cx: t, cy: s + $, r: C, aRad: P, ax: h, f: y }), ae = (N.z + Y.z + H.z + G.z) / 4, V = (M ? M(g) : !0) ? e.value.style.chart.layout.wheel.ticks.gradient.show ? Z(
261
261
  e.value.style.chart.layout.wheel.ticks.activeColor,
262
- g * (100 / r) / 100 * (e.value.style.chart.layout.wheel.ticks.gradient.shiftHueIntensity / 100)
262
+ g * (100 / i) / 100 * (e.value.style.chart.layout.wheel.ticks.gradient.shiftHueIntensity / 100)
263
263
  ) : k : x, ye = (() => {
264
264
  const le = p * Math.sin(h) || 1;
265
265
  return (ae - -le) / (2 * le);
266
- })(), ke = ze(H, ye), V = `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: V, fill: ke, z: ae });
266
+ })(), ke = ze(V, ye), q = `M ${N.x} ${N.y} L ${Y.x} ${Y.y} L ${G.x} ${G.y} L ${H.x} ${H.y} Z`;
267
+ m.push({ i: g, d: q, fill: ke, z: ae });
268
268
  }
269
- return m.sort((g, R) => g.z - R.z), m;
269
+ return m.sort((g, P) => g.z - P.z), m;
270
270
  }
271
271
  const ve = f(() => {
272
272
  if (e.value.layout !== "3d") return null;
273
273
  const t = D.value;
274
274
  return (s) => st({
275
- cx: i.value.centerX,
276
- cy: i.value.centerY,
277
- radius: i.value.radius,
275
+ cx: r.value.centerX,
276
+ cy: r.value.centerY,
277
+ radius: r.value.radius,
278
278
  innerRatio: e.value.style.chart.layout.wheel.ticks.sizeRatio,
279
279
  count: t,
280
280
  startDeg: -90,
@@ -294,16 +294,16 @@ const aa = ["id"], la = ["xmlns", "viewBox"], sa = ["x", "y", "width", "height"]
294
294
  }
295
295
  l();
296
296
  }
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
+ 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)))), _ = f(() => 100 / D.value), Fe = f(() => {
298
298
  const t = [];
299
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
+ const a = d.value > s * _.value ? e.value.style.chart.layout.wheel.ticks.activeColor : e.value.style.chart.layout.wheel.ticks.inactiveColor, { x: l, y: i } = 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);
301
301
  t.push({
302
302
  x1: l,
303
- y1: r,
303
+ y1: i,
304
304
  x2: v,
305
305
  y2: w,
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
+ color: e.value.style.chart.layout.wheel.ticks.gradient.show ? Z(a, s * _.value / D.value * (e.value.style.chart.layout.wheel.ticks.gradient.shiftHueIntensity / 100)) : a
307
307
  });
308
308
  }
309
309
  return t;
@@ -311,19 +311,19 @@ const aa = ["id"], la = ["xmlns", "viewBox"], sa = ["x", "y", "width", "height"]
311
311
  name: "",
312
312
  value: 1,
313
313
  color: t.color
314
- })) }, i.value.centerX, i.value.centerY, i.value.radius, i.value.radius, 1.99999, 2, 1, 360, 105.25, i.value.radius * (1 - e.value.style.chart.layout.wheel.ticks.sizeRatio))), ee = _(!1);
314
+ })) }, r.value.centerX, r.value.centerY, r.value.radius, r.value.radius, 1.99999, 2, 1, 360, 105.25, r.value.radius * (1 - e.value.style.chart.layout.wheel.ticks.sizeRatio))), ee = S(!1);
315
315
  function Xe(t) {
316
316
  ee.value = t, pe.value += 1;
317
317
  }
318
- const te = _(!1);
318
+ const te = S(!1);
319
319
  function de() {
320
320
  te.value = !te.value;
321
321
  }
322
322
  async function nt({ scale: t = 2 } = {}) {
323
323
  if (!X.value) return;
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
+ const { width: s, height: a } = X.value.getBoundingClientRect(), l = s / a, { imageUri: i, base64: v } = await Kt({ domElement: X.value, base64: !0, img: !0, scale: t });
325
325
  return {
326
- imageUri: r,
326
+ imageUri: i,
327
327
  base64: v,
328
328
  title: e.value.style.chart.title.text,
329
329
  width: s,
@@ -331,7 +331,7 @@ const aa = ["id"], la = ["xmlns", "viewBox"], sa = ["x", "y", "width", "height"]
331
331
  aspectRatio: l
332
332
  };
333
333
  }
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 } = qt({
334
+ const ut = f(() => e.value.style.chart.layout.wheel.ticks.strokeWidth * 2), it = f(() => e.value.style.chart.layout.wheel.ticks.strokeWidth * 2 * 0.75), rt = 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 } = qt({
335
335
  svg: ce,
336
336
  title: ht,
337
337
  backgroundColor: ct,
@@ -339,20 +339,20 @@ const aa = ["id"], la = ["xmlns", "viewBox"], sa = ["x", "y", "width", "height"]
339
339
  });
340
340
  async function Ne({ isCb: t }) {
341
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 });
342
+ const { blob: s, url: a, text: l, dataUrl: i } = await dt();
343
+ e.value.userOptions.callbacks.svg({ blob: s, url: a, text: l, dataUrl: i });
344
344
  } else
345
345
  vt();
346
346
  }
347
347
  return He({
348
348
  getImage: nt,
349
- generatePdf: Se,
349
+ generatePdf: _e,
350
350
  generateImage: Ie,
351
351
  generateSvg: Ne,
352
352
  toggleAnnotator: de,
353
353
  toggleFullscreen: Xe
354
354
  }), (t, s) => (o(), n("div", {
355
- class: P(["vue-ui-wheel", { "vue-data-ui-component": !0, "vue-ui-wheel-3d-wrap": e.value.layout === "3d" }]),
355
+ class: z(["vue-ui-wheel", { "vue-data-ui-component": !0, "vue-ui-wheel-3d-wrap": e.value.layout === "3d" }]),
356
356
  ref_key: "wheelChart",
357
357
  ref: X,
358
358
  id: ue.value,
@@ -395,14 +395,14 @@ const aa = ["id"], la = ["xmlns", "viewBox"], sa = ["x", "y", "width", "height"]
395
395
  }
396
396
  }, null, 8, ["config"]))
397
397
  ], 512)) : I("", !0),
398
- e.value.userOptions.show && Ke.value && (c(_e) || c(ie)) ? (o(), se(c(qe), {
398
+ e.value.userOptions.show && Ke.value && (c(Se) || c(re)) ? (o(), se(c(qe), {
399
399
  ref_key: "details",
400
400
  ref: Qe,
401
401
  key: `user_options_${pe.value}`,
402
402
  backgroundColor: e.value.style.chart.backgroundColor,
403
403
  color: e.value.style.chart.color,
404
- isPrinting: c(Ae),
405
- isImaging: c($e),
404
+ isPrinting: c($e),
405
+ isImaging: c(Ae),
406
406
  uid: ue.value,
407
407
  hasPdf: e.value.userOptions.buttons.pdf,
408
408
  hasImg: e.value.userOptions.buttons.img,
@@ -418,55 +418,62 @@ const aa = ["id"], la = ["xmlns", "viewBox"], sa = ["x", "y", "width", "height"]
418
418
  callbacks: e.value.userOptions.callbacks,
419
419
  printScale: e.value.userOptions.print.scale,
420
420
  onToggleFullscreen: Xe,
421
- onGeneratePdf: c(Se),
421
+ onGeneratePdf: c(_e),
422
422
  onGenerateImage: c(Ie),
423
423
  onGenerateSvg: Ne,
424
424
  onToggleAnnotator: de,
425
425
  style: fe({
426
- visibility: c(_e) ? c(ie) ? "visible" : "hidden" : "visible"
426
+ visibility: c(Se) ? c(re) ? "visible" : "hidden" : "visible"
427
427
  })
428
428
  }, Pt({ _: 2 }, [
429
429
  t.$slots.menuIcon ? {
430
430
  name: "menuIcon",
431
- fn: q(({ isOpen: a, color: l }) => [
432
- z(t.$slots, "menuIcon", oe(ne({ isOpen: a, color: l })), void 0, !0)
431
+ fn: E(({ isOpen: a, color: l }) => [
432
+ R(t.$slots, "menuIcon", oe(ne({ isOpen: a, color: l })), void 0, !0)
433
433
  ]),
434
434
  key: "0"
435
435
  } : void 0,
436
436
  t.$slots.optionPdf ? {
437
437
  name: "optionPdf",
438
- fn: q(() => [
439
- z(t.$slots, "optionPdf", {}, void 0, !0)
438
+ fn: E(() => [
439
+ R(t.$slots, "optionPdf", {}, void 0, !0)
440
440
  ]),
441
441
  key: "1"
442
442
  } : void 0,
443
443
  t.$slots.optionImg ? {
444
444
  name: "optionImg",
445
- fn: q(() => [
446
- z(t.$slots, "optionImg", {}, void 0, !0)
445
+ fn: E(() => [
446
+ R(t.$slots, "optionImg", {}, void 0, !0)
447
447
  ]),
448
448
  key: "2"
449
449
  } : void 0,
450
+ t.$slots.optionSvg ? {
451
+ name: "optionSvg",
452
+ fn: E(() => [
453
+ R(t.$slots, "optionSvg", {}, void 0, !0)
454
+ ]),
455
+ key: "3"
456
+ } : void 0,
450
457
  t.$slots.optionFullscreen ? {
451
458
  name: "optionFullscreen",
452
- fn: q(({ toggleFullscreen: a, isFullscreen: l }) => [
453
- z(t.$slots, "optionFullscreen", oe(ne({ toggleFullscreen: a, isFullscreen: l })), void 0, !0)
459
+ fn: E(({ toggleFullscreen: a, isFullscreen: l }) => [
460
+ R(t.$slots, "optionFullscreen", oe(ne({ toggleFullscreen: a, isFullscreen: l })), void 0, !0)
454
461
  ]),
455
- key: "3"
462
+ key: "4"
456
463
  } : void 0,
457
464
  t.$slots.optionAnnotator ? {
458
465
  name: "optionAnnotator",
459
- fn: q(({ toggleAnnotator: a, isAnnotator: l }) => [
460
- z(t.$slots, "optionAnnotator", oe(ne({ toggleAnnotator: a, isAnnotator: l })), void 0, !0)
466
+ fn: E(({ toggleAnnotator: a, isAnnotator: l }) => [
467
+ R(t.$slots, "optionAnnotator", oe(ne({ toggleAnnotator: a, isAnnotator: l })), void 0, !0)
461
468
  ]),
462
- key: "4"
469
+ key: "5"
463
470
  } : void 0
464
471
  ]), 1032, ["backgroundColor", "color", "isPrinting", "isImaging", "uid", "hasPdf", "hasImg", "hasSvg", "hasFullscreen", "isFullscreen", "position", "titles", "hasAnnotator", "isAnnotation", "chartElement", "callbacks", "printScale", "onGeneratePdf", "onGenerateImage", "style"])) : I("", !0),
465
472
  (o(), n("svg", {
466
473
  ref_key: "svgRef",
467
474
  ref: ce,
468
475
  xmlns: c(Lt),
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" }),
476
+ class: z({ "vue-data-ui-fullscreen--on": ee.value, "vue-data-ui-fulscreen--off": !ee.value, "vue-ui-wheel-3d-svg": e.value.layout === "3d" }),
470
477
  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)}`,
471
478
  style: fe(`max-width:100%;overflow:visible;background:transparent;color:${e.value.style.chart.color}`)
472
479
  }, [
@@ -481,7 +488,7 @@ const aa = ["id"], la = ["xmlns", "viewBox"], sa = ["x", "y", "width", "height"]
481
488
  pointerEvents: "none"
482
489
  }
483
490
  }, [
484
- z(t.$slots, "chart-background", {}, void 0, !0)
491
+ R(t.$slots, "chart-background", {}, void 0, !0)
485
492
  ], 8, sa)) : I("", !0),
486
493
  e.value.layout === "3d" && Te.value ? (o(), n("path", {
487
494
  key: 1,
@@ -493,17 +500,17 @@ const aa = ["id"], la = ["xmlns", "viewBox"], sa = ["x", "y", "width", "height"]
493
500
  }, null, 8, oa)) : e.value.style.chart.layout.innerCircle.show ? (o(), n("circle", {
494
501
  key: 2,
495
502
  class: "vue-ui-wheel-inner-circle",
496
- cx: i.value.centerX,
497
- cy: i.value.centerY,
498
- r: Math.max(0, i.value.radius * e.value.style.chart.layout.innerCircle.radiusRatio * 0.8),
503
+ cx: r.value.centerX,
504
+ cy: r.value.centerY,
505
+ r: Math.max(0, r.value.radius * e.value.style.chart.layout.innerCircle.radiusRatio * 0.8),
499
506
  stroke: e.value.style.chart.layout.innerCircle.stroke,
500
507
  "stroke-width": e.value.style.chart.layout.innerCircle.strokeWidth,
501
508
  fill: "none"
502
509
  }, null, 8, na)) : I("", !0),
503
- e.value.layout === "3d" ? (o(), n($, { key: 3 }, [
510
+ e.value.layout === "3d" ? (o(), n(A, { key: 3 }, [
504
511
  e.value.style.chart.layout.wheel.ticks.type === "classic" ? (o(), n("g", ua, [
505
- (o(!0), n($, null, O(U.value, (a) => (o(), n("g", null, [
506
- (o(!0), n($, null, O(Oe.value || [], (l) => (o(), n("line", {
512
+ (o(!0), n(A, null, O(U.value, (a) => (o(), n("g", null, [
513
+ (o(!0), n(A, null, O(Oe.value || [], (l) => (o(), n("line", {
507
514
  key: l.i,
508
515
  x1: l.x1,
509
516
  y1: l.y1 - a,
@@ -512,10 +519,10 @@ const aa = ["id"], la = ["xmlns", "viewBox"], sa = ["x", "y", "width", "height"]
512
519
  stroke: c(Ee)(l.color, 0.25 * a / 5),
513
520
  "stroke-width": e.value.style.chart.layout.wheel.ticks.strokeWidth / 360 * Math.min(u.value.width, u.value.height),
514
521
  "stroke-linecap": e.value.style.chart.layout.wheel.ticks.rounded ? "round" : "butt",
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))
522
+ class: z({ "vue-ui-wheel-tick": !0, "vue-ui-tick-animated": e.value.style.chart.animation.use && l.i * _.value <= d.value })
523
+ }, null, 10, ia))), 128))
517
524
  ]))), 256)),
518
- (o(!0), n($, null, O(Oe.value || [], (a) => (o(), n("line", {
525
+ (o(!0), n(A, null, O(Oe.value || [], (a) => (o(), n("line", {
519
526
  key: a.i,
520
527
  x1: a.x1,
521
528
  y1: a.y1 - U.value,
@@ -524,11 +531,11 @@ const aa = ["id"], la = ["xmlns", "viewBox"], sa = ["x", "y", "width", "height"]
524
531
  stroke: a.color,
525
532
  "stroke-width": e.value.style.chart.layout.wheel.ticks.strokeWidth / 360 * Math.min(u.value.width, u.value.height),
526
533
  "stroke-linecap": e.value.style.chart.layout.wheel.ticks.rounded ? "round" : "butt",
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))
534
+ class: z({ "vue-ui-wheel-tick": !0, "vue-ui-tick-animated": e.value.style.chart.animation.use && a.i * _.value <= d.value })
535
+ }, null, 10, ra))), 128))
529
536
  ])) : (o(), n("g", ca, [
530
- (o(!0), n($, null, O(U.value, (a) => (o(), n("g", null, [
531
- (o(!0), n($, null, O(ve.value(-a) || [], (l) => (o(), n("path", {
537
+ (o(!0), n(A, null, O(U.value, (a) => (o(), n("g", null, [
538
+ (o(!0), n(A, null, O(ve.value(-a) || [], (l) => (o(), n("path", {
532
539
  key: l.i,
533
540
  d: l.d,
534
541
  fill: e.value.style.chart.layout.wheel.ticks.inactiveColor,
@@ -538,7 +545,7 @@ const aa = ["id"], la = ["xmlns", "viewBox"], sa = ["x", "y", "width", "height"]
538
545
  "stroke-linejoin": "round",
539
546
  class: "vue-ui-wheel-tick"
540
547
  }, null, 8, ha))), 128)),
541
- (o(!0), n($, null, O(ve.value(-a) || [], (l) => (o(), n("path", {
548
+ (o(!0), n(A, null, O(ve.value(-a) || [], (l) => (o(), n("path", {
542
549
  key: l.i,
543
550
  d: l.d,
544
551
  fill: c(Ee)(l.fill, 0.5 * a / U.value),
@@ -546,11 +553,11 @@ const aa = ["id"], la = ["xmlns", "viewBox"], sa = ["x", "y", "width", "height"]
546
553
  "stroke-width": e.value.style.chart.layout.wheel.ticks.strokeWidth,
547
554
  "stroke-linecap": "round",
548
555
  "stroke-linejoin": "round",
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 })
556
+ class: z({ "vue-ui-wheel-tick": !0, "vue-ui-tick-animated-3d": e.value.style.chart.animation.use && l.i * _.value <= d.value })
550
557
  }, null, 10, va))), 128))
551
558
  ]))), 256)),
552
559
  Ot("g", null, [
553
- (o(!0), n($, null, O(ve.value(-U.value) || [], (a) => (o(), n("path", {
560
+ (o(!0), n(A, null, O(ve.value(-U.value) || [], (a) => (o(), n("path", {
554
561
  key: a.i,
555
562
  d: a.d,
556
563
  fill: a.fill,
@@ -558,12 +565,12 @@ const aa = ["id"], la = ["xmlns", "viewBox"], sa = ["x", "y", "width", "height"]
558
565
  "stroke-width": e.value.style.chart.layout.wheel.ticks.strokeWidth,
559
566
  "stroke-linecap": "round",
560
567
  "stroke-linejoin": "round",
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 })
568
+ class: z({ "vue-ui-wheel-tick": !0, "vue-ui-tick-animated-3d": e.value.style.chart.animation.use && a.i * _.value <= d.value })
562
569
  }, null, 10, da))), 128))
563
570
  ])
564
571
  ]))
565
- ], 64)) : (o(), n($, { key: 4 }, [
566
- e.value.style.chart.layout.wheel.ticks.type === "classic" ? (o(!0), n($, { key: 0 }, O(Fe.value, (a, l) => (o(), n("line", {
572
+ ], 64)) : (o(), n(A, { key: 4 }, [
573
+ e.value.style.chart.layout.wheel.ticks.type === "classic" ? (o(!0), n(A, { key: 0 }, O(Fe.value, (a, l) => (o(), n("line", {
567
574
  x1: a.x1,
568
575
  x2: a.x2,
569
576
  y1: a.y1,
@@ -571,11 +578,11 @@ const aa = ["id"], la = ["xmlns", "viewBox"], sa = ["x", "y", "width", "height"]
571
578
  stroke: a.color,
572
579
  "stroke-width": e.value.style.chart.layout.wheel.ticks.strokeWidth / 360 * Math.min(u.value.width, u.value.height),
573
580
  "stroke-linecap": e.value.style.chart.layout.wheel.ticks.rounded ? "round" : "butt",
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", {
581
+ class: z({ "vue-ui-wheel-tick": !0, "vue-ui-tick-animated": e.value.style.chart.animation.use && l * _.value <= d.value })
582
+ }, null, 10, ya))), 256)) : (o(!0), n(A, { key: 1 }, O(ot.value, (a, l) => (o(), n("path", {
576
583
  d: a.arcSlice,
577
584
  fill: a.color,
578
- class: P({ "vue-ui-wheel-tick": !0, "vue-ui-tick-animated": e.value.style.chart.animation.use && l * S.value <= d.value }),
585
+ class: z({ "vue-ui-wheel-tick": !0, "vue-ui-tick-animated": e.value.style.chart.animation.use && l * _.value <= d.value }),
579
586
  stroke: e.value.style.chart.layout.wheel.ticks.stroke,
580
587
  "stroke-width": e.value.style.chart.layout.wheel.ticks.strokeWidth
581
588
  }, null, 10, ka))), 256))
@@ -583,17 +590,17 @@ const aa = ["id"], la = ["xmlns", "viewBox"], sa = ["x", "y", "width", "height"]
583
590
  e.value.style.chart.layout.percentage.show ? (o(), n("g", ga, [
584
591
  c(Me) ? (o(), n("rect", {
585
592
  key: 0,
586
- x: i.value.centerX - 40,
587
- y: i.value.centerY - E.value / 2,
593
+ x: r.value.centerX - 40,
594
+ y: r.value.centerY - j.value / 2,
588
595
  width: 80,
589
- height: E.value,
596
+ height: j.value,
590
597
  fill: "#6A6A6A80",
591
598
  rx: "3"
592
599
  }, null, 8, fa)) : (o(), n("text", {
593
600
  key: 1,
594
- x: i.value.centerX + e.value.style.chart.layout.percentage.offsetX,
595
- y: i.value.centerY + E.value / 3 + e.value.style.chart.layout.percentage.offsetY,
596
- "font-size": E.value,
601
+ x: r.value.centerX + e.value.style.chart.layout.percentage.offsetX,
602
+ y: r.value.centerY + j.value / 3 + e.value.style.chart.layout.percentage.offsetY,
603
+ "font-size": j.value,
597
604
  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,
598
605
  "text-anchor": "middle",
599
606
  "font-weight": e.value.style.chart.layout.percentage.bold ? "bold" : "normal",
@@ -603,7 +610,7 @@ const aa = ["id"], la = ["xmlns", "viewBox"], sa = ["x", "y", "width", "height"]
603
610
  "stroke-linecap": "round",
604
611
  "stroke-linejoin": "round",
605
612
  "paint-order": "stroke fill",
606
- class: P({ "vue-ui-wheel-label": e.value.layout === "3d" })
613
+ class: z({ "vue-ui-wheel-label": e.value.layout === "3d" })
607
614
  }, Wt(c(Ut)(
608
615
  e.value.style.chart.layout.percentage.formatter,
609
616
  c(je)(d.value),
@@ -614,10 +621,10 @@ const aa = ["id"], la = ["xmlns", "viewBox"], sa = ["x", "y", "width", "height"]
614
621
  })
615
622
  )), 11, pa))
616
623
  ])) : I("", !0),
617
- z(t.$slots, "svg", { svg: u.value }, void 0, !0)
624
+ R(t.$slots, "svg", { svg: u.value }, void 0, !0)
618
625
  ], 14, la)),
619
626
  t.$slots.watermark ? (o(), n("div", ma, [
620
- z(t.$slots, "watermark", oe(ne({ isPrinting: c(Ae) || c($e) })), void 0, !0)
627
+ R(t.$slots, "watermark", oe(ne({ isPrinting: c($e) || c(Ae) })), void 0, !0)
621
628
  ])) : I("", !0),
622
629
  t.$slots.source ? (o(), n("div", {
623
630
  key: 5,
@@ -625,12 +632,12 @@ const aa = ["id"], la = ["xmlns", "viewBox"], sa = ["x", "y", "width", "height"]
625
632
  ref: we,
626
633
  dir: "auto"
627
634
  }, [
628
- z(t.$slots, "source", {}, void 0, !0)
635
+ R(t.$slots, "source", {}, void 0, !0)
629
636
  ], 512)) : I("", !0),
630
637
  c(Me) ? (o(), se(Ht, { key: 6 })) : I("", !0)
631
638
  ], 46, aa));
632
639
  }
633
- }, Da = /* @__PURE__ */ ta(wa, [["__scopeId", "data-v-9b607460"]]);
640
+ }, Da = /* @__PURE__ */ ta(wa, [["__scopeId", "data-v-2f64f3fe"]]);
634
641
  export {
635
642
  Da as default
636
643
  };