vue-data-ui 3.5.0 → 3.5.2

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 (144) hide show
  1. package/README.md +26 -0
  2. package/dist/{ColorPicker-J5wOPCeB.js → ColorPicker-ChuwChMo.js} +58 -56
  3. package/dist/{NonSvgPenAndPaper-C7TRn0_3.js → NonSvgPenAndPaper-DVgKKLIf.js} +1 -1
  4. package/dist/{PackageVersion-Cyx_s25h.js → PackageVersion-Y7t79Jtq.js} +1 -1
  5. package/dist/PenAndPaper-SZQIAgkg.js +388 -0
  6. package/dist/{Title-l36lOBMx.js → Title-BzH_LEA3.js} +1 -1
  7. package/dist/components/vue-ui-3d-bar.js +1 -1
  8. package/dist/components/vue-ui-accordion.js +1 -1
  9. package/dist/components/vue-ui-age-pyramid.js +1 -1
  10. package/dist/components/vue-ui-annotator.js +1 -1
  11. package/dist/components/vue-ui-bullet.js +1 -1
  12. package/dist/components/vue-ui-candlestick.js +1 -1
  13. package/dist/components/vue-ui-carousel-table.js +1 -1
  14. package/dist/components/vue-ui-chestnut.js +1 -1
  15. package/dist/components/vue-ui-chord.js +1 -1
  16. package/dist/components/vue-ui-circle-pack.js +1 -1
  17. package/dist/components/vue-ui-cursor.js +1 -1
  18. package/dist/components/vue-ui-dashboard.js +1 -1
  19. package/dist/components/vue-ui-digits.js +1 -1
  20. package/dist/components/vue-ui-donut-evolution.js +1 -1
  21. package/dist/components/vue-ui-donut.js +1 -1
  22. package/dist/components/vue-ui-dumbbell.js +1 -1
  23. package/dist/components/vue-ui-flow.js +1 -1
  24. package/dist/components/vue-ui-funnel.js +1 -1
  25. package/dist/components/vue-ui-galaxy.js +1 -1
  26. package/dist/components/vue-ui-gauge.js +1 -1
  27. package/dist/components/vue-ui-gizmo.js +1 -1
  28. package/dist/components/vue-ui-heatmap.js +1 -1
  29. package/dist/components/vue-ui-history-plot.js +1 -1
  30. package/dist/components/vue-ui-horizontal-bar.js +1 -1
  31. package/dist/components/vue-ui-kpi.js +1 -1
  32. package/dist/components/vue-ui-mini-loader.js +1 -1
  33. package/dist/components/vue-ui-molecule.js +1 -1
  34. package/dist/components/vue-ui-mood-radar.js +1 -1
  35. package/dist/components/vue-ui-nested-donuts.js +1 -1
  36. package/dist/components/vue-ui-onion.js +1 -1
  37. package/dist/components/vue-ui-parallel-coordinate-plot.js +1 -1
  38. package/dist/components/vue-ui-quadrant.js +1 -1
  39. package/dist/components/vue-ui-quick-chart.js +1 -1
  40. package/dist/components/vue-ui-radar.js +1 -1
  41. package/dist/components/vue-ui-rating.js +1 -1
  42. package/dist/components/vue-ui-relation-circle.js +1 -1
  43. package/dist/components/vue-ui-ridgeline.js +1 -1
  44. package/dist/components/vue-ui-rings.js +1 -1
  45. package/dist/components/vue-ui-scatter.js +1 -1
  46. package/dist/components/vue-ui-skeleton.js +1 -1
  47. package/dist/components/vue-ui-smiley.js +1 -1
  48. package/dist/components/vue-ui-spark-trend.js +1 -1
  49. package/dist/components/vue-ui-sparkbar.js +1 -1
  50. package/dist/components/vue-ui-sparkgauge.js +1 -1
  51. package/dist/components/vue-ui-sparkhistogram.js +1 -1
  52. package/dist/components/vue-ui-sparkline.js +1 -1
  53. package/dist/components/vue-ui-sparkstackbar.js +1 -1
  54. package/dist/components/vue-ui-stackbar.js +1 -1
  55. package/dist/components/vue-ui-strip-plot.js +1 -1
  56. package/dist/components/vue-ui-table-heatmap.js +1 -1
  57. package/dist/components/vue-ui-table-sparkline.js +1 -1
  58. package/dist/components/vue-ui-table.js +1 -1
  59. package/dist/components/vue-ui-thermometer.js +1 -1
  60. package/dist/components/vue-ui-timer.js +1 -1
  61. package/dist/components/vue-ui-tiremarks.js +1 -1
  62. package/dist/components/vue-ui-treemap.js +1 -1
  63. package/dist/components/vue-ui-vertical-bar.js +1 -1
  64. package/dist/components/vue-ui-waffle.js +1 -1
  65. package/dist/components/vue-ui-wheel.js +1 -1
  66. package/dist/components/vue-ui-word-cloud.js +1 -1
  67. package/dist/components/vue-ui-world.js +1 -1
  68. package/dist/components/vue-ui-xy-canvas.js +1 -1
  69. package/dist/components/vue-ui-xy.js +1 -1
  70. package/dist/style.css +1 -1
  71. package/dist/types/vue-data-ui.d.ts +17 -8
  72. package/dist/{useNestedProp-BjZe1Y85.js → useNestedProp-CReNavA0.js} +23 -9
  73. package/dist/{vue-data-ui-DxgRqCAo.js → vue-data-ui-BRaq4hRp.js} +63 -63
  74. package/dist/vue-data-ui.js +64 -64
  75. package/dist/{vue-ui-3d-bar-DmNJp8SY.js → vue-ui-3d-bar-BB4ii8Nt.js} +454 -434
  76. package/dist/{vue-ui-accordion-CZ0thhxa.js → vue-ui-accordion-BmFTVF1a.js} +1 -1
  77. package/dist/{vue-ui-age-pyramid-CPAP3sNY.js → vue-ui-age-pyramid-8bUepd28.js} +180 -160
  78. package/dist/{vue-ui-annotator-BylDgUVb.js → vue-ui-annotator-CcpaXBNK.js} +3 -3
  79. package/dist/{vue-ui-bullet-Ce6uvCQJ.js → vue-ui-bullet-BvT4scFv.js} +190 -170
  80. package/dist/{vue-ui-candlestick-DewevWV_.js → vue-ui-candlestick-CMP7UL6z.js} +201 -181
  81. package/dist/{vue-ui-carousel-table-Dv1CDfE5.js → vue-ui-carousel-table-CzOcKsDj.js} +2 -2
  82. package/dist/{vue-ui-chestnut-D9sdFZ4E.js → vue-ui-chestnut-S787oASt.js} +375 -355
  83. package/dist/vue-ui-chord-Dl9Y4mcz.js +1153 -0
  84. package/dist/{vue-ui-circle-pack-Be74QB_0.js → vue-ui-circle-pack-CU09BzOV.js} +289 -269
  85. package/dist/{vue-ui-cursor-ik59bfC4.js → vue-ui-cursor-C3yD_TUr.js} +1 -1
  86. package/dist/vue-ui-dashboard-BfEcVRxQ.js +432 -0
  87. package/dist/{vue-ui-digits-ByNNcWXi.js → vue-ui-digits-pRh179Gg.js} +1 -1
  88. package/dist/{vue-ui-donut-BRGFcgxS.js → vue-ui-donut-B_tEm4dT.js} +462 -442
  89. package/dist/{vue-ui-donut-evolution-DJ0C-7jH.js → vue-ui-donut-evolution-DiGhMwMO.js} +293 -273
  90. package/dist/{vue-ui-dumbbell-iQJ0BUhm.js → vue-ui-dumbbell-BlF3CLbN.js} +210 -190
  91. package/dist/{vue-ui-flow-CTYFoib3.js → vue-ui-flow-BQi5L8mJ.js} +339 -319
  92. package/dist/{vue-ui-funnel-CG55Xcdy.js → vue-ui-funnel-CM_6Sare.js} +218 -198
  93. package/dist/{vue-ui-galaxy-BQrxjKZJ.js → vue-ui-galaxy-BnZA62Li.js} +201 -181
  94. package/dist/{vue-ui-gauge-Tc-0NI0Y.js → vue-ui-gauge-DAk72bez.js} +311 -291
  95. package/dist/{vue-ui-gizmo-P8h-gnLd.js → vue-ui-gizmo-BQzQlUJ8.js} +2 -2
  96. package/dist/{vue-ui-heatmap-BZimPzsL.js → vue-ui-heatmap-C9MhHWpp.js} +303 -283
  97. package/dist/{vue-ui-history-plot-BVzbuqYY.js → vue-ui-history-plot-BYQh3E8U.js} +229 -209
  98. package/dist/{vue-ui-kpi-BGGff8LM.js → vue-ui-kpi-jcrPjW4C.js} +2 -2
  99. package/dist/{vue-ui-mini-loader-CSF-7TJL.js → vue-ui-mini-loader-DTM98mRN.js} +1 -1
  100. package/dist/{vue-ui-molecule-BALqwB8c.js → vue-ui-molecule-Bd1OXvl3.js} +156 -136
  101. package/dist/{vue-ui-mood-radar-QJ5nlZby.js → vue-ui-mood-radar-DuoiTsYn.js} +266 -246
  102. package/dist/{vue-ui-nested-donuts-CmUabkkQ.js → vue-ui-nested-donuts-BTswQFjz.js} +506 -486
  103. package/dist/{vue-ui-onion-DAOCf3f8.js → vue-ui-onion-D-1U2Qgl.js} +220 -200
  104. package/dist/{vue-ui-parallel-coordinate-plot-D8jTuFjq.js → vue-ui-parallel-coordinate-plot-D-7VFHas.js} +235 -215
  105. package/dist/{vue-ui-quadrant-CO52mSRY.js → vue-ui-quadrant-CeM23s0z.js} +463 -443
  106. package/dist/{vue-ui-quick-chart-DEaVSldE.js → vue-ui-quick-chart-C0RMQzjC.js} +288 -268
  107. package/dist/{vue-ui-radar-C5V4hhbW.js → vue-ui-radar-BSfxyur3.js} +331 -311
  108. package/dist/{vue-ui-rating-CiMoFM_c.js → vue-ui-rating-tj97undO.js} +1 -1
  109. package/dist/{vue-ui-relation-circle-CbMM0Jka.js → vue-ui-relation-circle-C7uV2mIj.js} +228 -208
  110. package/dist/{vue-ui-ridgeline-CXCIRDq6.js → vue-ui-ridgeline-CYMfTlwI.js} +242 -222
  111. package/dist/{vue-ui-rings-BpUcyqo7.js → vue-ui-rings-C96aj57d.js} +189 -169
  112. package/dist/{vue-ui-scatter--Dxe-hfO.js → vue-ui-scatter-CtvOXUnx.js} +275 -255
  113. package/dist/{vue-ui-skeleton-BWq-VDzg.js → vue-ui-skeleton-87TORm6s.js} +2 -2
  114. package/dist/{vue-ui-smiley-sGFRbn31.js → vue-ui-smiley-B74geHT3.js} +1 -1
  115. package/dist/{vue-ui-spark-trend-T4J_YOa_.js → vue-ui-spark-trend-6_Ibziyv.js} +2 -2
  116. package/dist/{vue-ui-sparkbar-DnKP55Vu.js → vue-ui-sparkbar-BDCocMLI.js} +2 -2
  117. package/dist/{vue-ui-sparkgauge-BDQLP-zi.js → vue-ui-sparkgauge-CQ4Zk9-f.js} +2 -2
  118. package/dist/{vue-ui-sparkhistogram-Dm7QXrA-.js → vue-ui-sparkhistogram-BlTV9wfn.js} +143 -140
  119. package/dist/{vue-ui-sparkline-tXGDLHRy.js → vue-ui-sparkline-DWESyiqL.js} +2 -2
  120. package/dist/{vue-ui-sparkstackbar-M53Nt07M.js → vue-ui-sparkstackbar-DK_7X8mL.js} +2 -2
  121. package/dist/vue-ui-stackbar-BWuw8ff4.js +1827 -0
  122. package/dist/{vue-ui-strip-plot-BX9i3wMn.js → vue-ui-strip-plot-C1N2n39d.js} +245 -225
  123. package/dist/{vue-ui-table-7r02N9R9.js → vue-ui-table-CcuoPHgI.js} +3 -3
  124. package/dist/{vue-ui-table-heatmap-BqCEBoUf.js → vue-ui-table-heatmap-C9EMEM3Z.js} +1 -1
  125. package/dist/{vue-ui-table-sparkline-DZaAh10E.js → vue-ui-table-sparkline-BAxmZRff.js} +2 -2
  126. package/dist/vue-ui-thermometer-CDrM-WFq.js +584 -0
  127. package/dist/{vue-ui-timer-Ds-MJoW2.js → vue-ui-timer-BVsUQJz_.js} +3 -3
  128. package/dist/vue-ui-tiremarks-BQH2pNkG.js +450 -0
  129. package/dist/{vue-ui-treemap-BEvl8hiw.js → vue-ui-treemap-6WLoCHsH.js} +453 -433
  130. package/dist/{vue-ui-vertical-bar-D8dtM8sw.js → vue-ui-vertical-bar-B3gfBqD_.js} +323 -303
  131. package/dist/{vue-ui-waffle-B3q-2SCR.js → vue-ui-waffle-Bhlqo4xM.js} +219 -199
  132. package/dist/vue-ui-wheel-CqHw1WuW.js +663 -0
  133. package/dist/{vue-ui-word-cloud-ChT7uLbN.js → vue-ui-word-cloud-CKuWZGLv.js} +248 -228
  134. package/dist/{vue-ui-world-CdP4g_3_.js → vue-ui-world-C8KVyDim.js} +287 -267
  135. package/dist/{vue-ui-xy-B68qQ-gX.js → vue-ui-xy-Cz2qIEfi.js} +389 -369
  136. package/dist/{vue-ui-xy-canvas-DDngEA1s.js → vue-ui-xy-canvas-y4h7gEFp.js} +4 -4
  137. package/package.json +4 -4
  138. package/dist/PenAndPaper-DSvu9dwa.js +0 -373
  139. package/dist/vue-ui-chord-BG4dxKNA.js +0 -1133
  140. package/dist/vue-ui-dashboard-C4BLwHey.js +0 -412
  141. package/dist/vue-ui-stackbar-CkBOjryQ.js +0 -1724
  142. package/dist/vue-ui-thermometer-CFPt3MOv.js +0 -564
  143. package/dist/vue-ui-tiremarks-2eIQ6vxu.js +0 -430
  144. package/dist/vue-ui-wheel-BpirIgAG.js +0 -643
@@ -1,643 +0,0 @@
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
- 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
- import { t as Et, u as jt } from "./useResponsive-DfdjqQps.js";
4
- import { u as Yt, a as Ye } from "./useNestedProp-BjZe1Y85.js";
5
- import { u as Gt, B as Ht } from "./BaseScanner-BgWxam9d.js";
6
- import { u as Vt } from "./usePrinter-DTzqpYKF.js";
7
- import { u as qt } from "./useSvgExport-DrjCWun4.js";
8
- import { u as Zt } from "./useUserOptionState-BIvW1Kz7.js";
9
- import { u as Jt } from "./useChartAccessibility-9icAAmYg.js";
10
- import Kt from "./img-BecE5qXd.js";
11
- import Qt from "./Title-l36lOBMx.js";
12
- import { t as ea } from "./themes-AUNCOb2G.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 }, 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
- key: 4,
16
- class: "vue-data-ui-watermark"
17
- }, wa = {
18
- __name: "vue-ui-wheel",
19
- props: {
20
- config: {
21
- type: Object,
22
- default() {
23
- return {};
24
- }
25
- },
26
- dataset: {
27
- type: Object,
28
- default() {
29
- return {};
30
- }
31
- }
32
- },
33
- setup(Ge, { expose: He }) {
34
- At((t) => ({
35
- v33916bed: ut.value,
36
- v2d12b493: it.value,
37
- v2d129726: rt.value
38
- }));
39
- const Ve = ge(() => import("./PenAndPaper-DSvu9dwa.js")), qe = ge(() => import("./UserOptions-CGnQt6Fd.js")), Ze = ge(() => import("./PackageVersion-Cyx_s25h.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
- FINAL_CONFIG: e,
42
- prepareConfig: he,
43
- skeletonDataset: { percentage: 50 },
44
- skeletonConfig: Dt({
45
- defaultConfig: e.value,
46
- userConfig: {
47
- userOptions: { show: !1 },
48
- style: {
49
- chart: {
50
- backgroundColor: "#99999930",
51
- animation: { use: !1 },
52
- layout: {
53
- wheel: {
54
- ticks: {
55
- activeColor: "#6A6A6A80",
56
- inactiveColor: "#CACACA80"
57
- }
58
- },
59
- innerCircle: {
60
- stroke: "#CACACA80"
61
- }
62
- }
63
- }
64
- }
65
- }
66
- })
67
- }), { userOptionsVisible: re, setUserOptionsVisibility: Ce, keepUserOptionState: Se } = Zt({ config: e.value }), { svgRef: ce } = Jt({ config: e.value.style.chart.title });
68
- function he() {
69
- const t = Ye({
70
- userConfig: F.config,
71
- defaultConfig: Je
72
- });
73
- return t.theme ? {
74
- ...Ye({
75
- userConfig: ea.vue_ui_wheel[t.theme] || F.config,
76
- defaultConfig: t
77
- })
78
- } : t;
79
- }
80
- Ue(() => F.config, (t) => {
81
- e.value = he(), re.value = !e.value.userOptions.showOnChartHover, Pe(), xe.value += 1;
82
- }, { deep: !0 });
83
- const { isPrinting: $e, isImaging: Ae, generatePdf: _e, generateImage: Ie } = Vt({
84
- elementId: ue.value,
85
- fileName: e.value.style.chart.title.text || "vue-ui-wheel",
86
- options: e.value.userOptions.print
87
- }), et = f(() => e.value.userOptions.show && !e.value.style.chart.title.text), u = S({
88
- size: 360,
89
- height: 360,
90
- width: 360
91
- }), j = S(e.value.style.chart.layout.percentage.fontSize), r = f(() => ({
92
- radius: Math.min(u.value.width, u.value.height) * 0.9 / 2 * e.value.style.chart.layout.wheel.radiusRatio,
93
- centerX: u.value.width / 2,
94
- centerY: u.value.height / 2
95
- }));
96
- function Re(t, s = 1) {
97
- return {
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
- };
101
- }
102
- const d = S(e.value.style.chart.animation.use ? 0 : ie.value.percentage || 0);
103
- Ue(() => ie.value, (t) => {
104
- e.value.style.chart.animation.use ? De(t.percentage) : d.value = t.percentage || 0;
105
- }, { deep: !0 });
106
- const W = Be(null), L = Be(null);
107
- It(() => {
108
- Pe();
109
- });
110
- const tt = f(() => !!e.value.debug);
111
- function Pe() {
112
- if (Ft(F.dataset) && Xt({
113
- componentName: "VueUiWheel",
114
- type: "dataset",
115
- debug: tt.value
116
- }), e.value.responsive) {
117
- const t = Et(() => {
118
- const { width: s, height: a } = jt({
119
- chart: X.value,
120
- title: e.value.style.chart.title.text ? me.value : null,
121
- source: we.value,
122
- noTitle: be.value
123
- });
124
- requestAnimationFrame(() => {
125
- u.value.width = s, u.value.height = a, j.value = e.value.style.chart.layout.percentage.fontSize / 360 * Math.min(s, a);
126
- });
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);
129
- }
130
- De(ie.value.percentage || 0);
131
- }
132
- Rt(() => {
133
- W.value && (L.value && W.value.unobserve(L.value), W.value.disconnect());
134
- });
135
- function J([t, s, a], l) {
136
- const i = Math.cos(l), v = Math.sin(l);
137
- return [t, s * i - a * v, s * v + a * i];
138
- }
139
- function K([t, s, a], l) {
140
- const i = l / (l - a);
141
- return [t * i, s * i, a, i];
142
- }
143
- function ze(t, s) {
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
- return `#${k.toString(16).padStart(2, "0")}${x.toString(16).padStart(2, "0")}${M.toString(16).padStart(2, "0")}`;
146
- }
147
- function at({
148
- cx: t,
149
- cy: s,
150
- radius: a,
151
- innerRatio: l = 0.8,
152
- count: i = 120,
153
- startDeg: v = 0,
154
- axDeg: w = 50,
155
- f: y = 520,
156
- baseStroke: k = 5,
157
- activeColor: x,
158
- inactiveColor: M,
159
- getActive: $
160
- }) {
161
- const h = w * Math.PI / 180, p = a, C = a * l, b = [];
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
- }
166
- return b.sort((m, g) => m.z - g.z), b;
167
- }
168
- const Oe = f(() => {
169
- if (!e.value.layout === "3d") return null;
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({
172
- cx: r.value.centerX,
173
- cy: r.value.centerY,
174
- radius: r.value.radius,
175
- innerRatio: e.value.style.chart.layout.wheel.ticks.sizeRatio,
176
- count: t,
177
- startDeg: -90,
178
- axDeg: e.value.style.chart.layout.wheel.tiltAngle3d,
179
- f: Math.min(u.value.width, u.value.height) * 1.45,
180
- baseStroke: l,
181
- activeColor: s,
182
- inactiveColor: a,
183
- getActive: (i) => d.value > i * _.value
184
- });
185
- });
186
- function We({ cx: t, cy: s, r: a, count: l = 180, startDeg: i = -90, axDeg: v = 50, f: w }) {
187
- const y = v * Math.PI / 180, k = [];
188
- let x = 0;
189
- for (let h = 0; h < l; h += 1) {
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
- }
193
- let M = `M ${k[0][0]} ${k[0][1]}`;
194
- for (let h = 1; h < k.length; h += 1)
195
- M += ` L ${k[h][0]} ${k[h][1]}`;
196
- M += " Z";
197
- const $ = x / l;
198
- return { d: M, avgScale: $, pts: k };
199
- }
200
- const T = f(() => {
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 = r.value.radius, { pts: l, avgScale: i } = (() => {
203
- const C = a, b = s, { avgScale: m, pts: g } = We({
204
- cx: r.value.centerX,
205
- cy: r.value.centerY,
206
- r: C,
207
- startDeg: -90,
208
- axDeg: b,
209
- f: t
210
- });
211
- return { pts: g, avgScale: m };
212
- })();
213
- let v = 1 / 0, w = 1 / 0, y = -1 / 0, k = -1 / 0;
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, $ = 0.5 * Math.max(x, M * (i || 1)), h = Math.max(0, Number(e.value.style.chart.layout.wheel.ticks.depth3d) || 0), p = $;
217
- return {
218
- x: v - p,
219
- y: w - h - p,
220
- w: y - v + 2 * p,
221
- h: k - (w - h) + 2 * p
222
- };
223
- });
224
- function lt(t) {
225
- const s = Math.min(u.value.width, u.value.height) * 1.45, { d: a, avgScale: l } = We({
226
- cx: r.value.centerX,
227
- cy: r.value.centerY,
228
- r: t,
229
- startDeg: -90,
230
- axDeg: e.value.style.chart.layout.wheel.tiltAngle3d,
231
- f: s
232
- }), v = (e.value.style.chart.layout.innerCircle.strokeWidth || 1) * l;
233
- return {
234
- d: a,
235
- stroke: e.value.style.chart.layout.innerCircle.stroke,
236
- strokeWidth: v
237
- };
238
- }
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
- }
244
- function st({
245
- cx: t,
246
- cy: s,
247
- radius: a,
248
- innerRatio: l = 0.8,
249
- count: i = 120,
250
- startDeg: v = -87,
251
- axDeg: w = 45,
252
- f: y = 600,
253
- activeColor: k,
254
- inactiveColor: x,
255
- getActive: M,
256
- Y: $ = 0
257
- }) {
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
- e.value.style.chart.layout.wheel.ticks.activeColor,
262
- g * (100 / i) / 100 * (e.value.style.chart.layout.wheel.ticks.gradient.shiftHueIntensity / 100)
263
- ) : k : x, ye = (() => {
264
- const le = p * Math.sin(h) || 1;
265
- return (ae - -le) / (2 * le);
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
- }
269
- return m.sort((g, P) => g.z - P.z), m;
270
- }
271
- const ve = f(() => {
272
- if (e.value.layout !== "3d") return null;
273
- const t = D.value;
274
- return (s) => st({
275
- cx: r.value.centerX,
276
- cy: r.value.centerY,
277
- radius: r.value.radius,
278
- innerRatio: e.value.style.chart.layout.wheel.ticks.sizeRatio,
279
- count: t,
280
- startDeg: -90,
281
- axDeg: e.value.style.chart.layout.wheel.tiltAngle3d,
282
- f: Math.min(u.value.width, u.value.height) * 1.45,
283
- activeColor: e.value.style.chart.layout.wheel.ticks.activeColor,
284
- inactiveColor: e.value.style.chart.layout.wheel.ticks.inactiveColor,
285
- getActive: (a) => d.value > a * (100 / t),
286
- Y: s
287
- });
288
- });
289
- function De(t) {
290
- let s = e.value.style.chart.animation.speed;
291
- const a = Math.abs(t - d.value) / (s * 120);
292
- function l() {
293
- d.value < t ? d.value = Math.min(d.value + a, t) : d.value > t && (d.value = Math.max(d.value - a, t)), d.value !== t && requestAnimationFrame(l);
294
- }
295
- l();
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)))), _ = f(() => 100 / D.value), Fe = f(() => {
298
- const t = [];
299
- for (let s = 0; s < D.value; s += 1) {
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
- t.push({
302
- x1: l,
303
- y1: i,
304
- x2: v,
305
- y2: w,
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
- });
308
- }
309
- return t;
310
- }), ot = f(() => Nt({ series: Fe.value.map((t) => ({
311
- name: "",
312
- value: 1,
313
- color: t.color
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
- function Xe(t) {
316
- ee.value = t, pe.value += 1;
317
- }
318
- const te = S(!1);
319
- function de() {
320
- te.value = !te.value;
321
- }
322
- async function nt({ scale: t = 2 } = {}) {
323
- if (!X.value) return;
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
- return {
326
- imageUri: i,
327
- base64: v,
328
- title: e.value.style.chart.title.text,
329
- width: s,
330
- height: a,
331
- aspectRatio: l
332
- };
333
- }
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
- 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: i } = await dt();
343
- e.value.userOptions.callbacks.svg({ blob: s, url: a, text: l, dataUrl: i });
344
- } else
345
- vt();
346
- }
347
- return He({
348
- getImage: nt,
349
- generatePdf: _e,
350
- generateImage: Ie,
351
- generateSvg: Ne,
352
- toggleAnnotator: de,
353
- toggleFullscreen: Xe
354
- }), (t, s) => (o(), n("div", {
355
- class: z(["vue-ui-wheel", { "vue-data-ui-component": !0, "vue-ui-wheel-3d-wrap": e.value.layout === "3d" }]),
356
- ref_key: "wheelChart",
357
- ref: X,
358
- id: ue.value,
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%" : ""}`),
360
- onMouseenter: s[0] || (s[0] = () => c(Ce)(!0)),
361
- onMouseleave: s[1] || (s[1] = () => c(Ce)(!1))
362
- }, [
363
- e.value.userOptions.buttons.annotator ? (o(), se(c(Ve), {
364
- key: 0,
365
- svgRef: c(ce),
366
- backgroundColor: e.value.style.chart.backgroundColor,
367
- color: e.value.style.chart.color,
368
- active: te.value,
369
- onClose: de
370
- }, null, 8, ["svgRef", "backgroundColor", "color", "active"])) : I("", !0),
371
- et.value ? (o(), n("div", {
372
- key: 1,
373
- ref_key: "noTitle",
374
- ref: be,
375
- class: "vue-data-ui-no-title-space",
376
- style: "height:36px; width: 100%;background:transparent"
377
- }, null, 512)) : I("", !0),
378
- e.value.style.chart.title.text ? (o(), n("div", {
379
- key: 2,
380
- ref_key: "chartTitle",
381
- ref: me,
382
- style: "width:100%;background:transparent;padding-bottom:12px"
383
- }, [
384
- (o(), se(Qt, {
385
- key: `title_${xe.value}`,
386
- config: {
387
- title: {
388
- cy: "wheel-title",
389
- ...e.value.style.chart.title
390
- },
391
- subtitle: {
392
- cy: "wheel-subtitle",
393
- ...e.value.style.chart.title.subtitle
394
- }
395
- }
396
- }, null, 8, ["config"]))
397
- ], 512)) : I("", !0),
398
- e.value.userOptions.show && Ke.value && (c(Se) || c(re)) ? (o(), se(c(qe), {
399
- ref_key: "details",
400
- ref: Qe,
401
- key: `user_options_${pe.value}`,
402
- backgroundColor: e.value.style.chart.backgroundColor,
403
- color: e.value.style.chart.color,
404
- isPrinting: c($e),
405
- isImaging: c(Ae),
406
- uid: ue.value,
407
- hasPdf: e.value.userOptions.buttons.pdf,
408
- hasImg: e.value.userOptions.buttons.img,
409
- hasSvg: e.value.userOptions.buttons.svg,
410
- hasFullscreen: e.value.userOptions.buttons.fullscreen,
411
- hasXls: !1,
412
- isFullscreen: ee.value,
413
- position: e.value.userOptions.position,
414
- titles: { ...e.value.userOptions.buttonTitles },
415
- hasAnnotator: e.value.userOptions.buttons.annotator,
416
- isAnnotation: te.value,
417
- chartElement: X.value,
418
- callbacks: e.value.userOptions.callbacks,
419
- printScale: e.value.userOptions.print.scale,
420
- onToggleFullscreen: Xe,
421
- onGeneratePdf: c(_e),
422
- onGenerateImage: c(Ie),
423
- onGenerateSvg: Ne,
424
- onToggleAnnotator: de,
425
- style: fe({
426
- visibility: c(Se) ? c(re) ? "visible" : "hidden" : "visible"
427
- })
428
- }, Pt({ _: 2 }, [
429
- t.$slots.menuIcon ? {
430
- name: "menuIcon",
431
- fn: E(({ isOpen: a, color: l }) => [
432
- R(t.$slots, "menuIcon", oe(ne({ isOpen: a, color: l })), void 0, !0)
433
- ]),
434
- key: "0"
435
- } : void 0,
436
- t.$slots.optionPdf ? {
437
- name: "optionPdf",
438
- fn: E(() => [
439
- R(t.$slots, "optionPdf", {}, void 0, !0)
440
- ]),
441
- key: "1"
442
- } : void 0,
443
- t.$slots.optionImg ? {
444
- name: "optionImg",
445
- fn: E(() => [
446
- R(t.$slots, "optionImg", {}, void 0, !0)
447
- ]),
448
- key: "2"
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,
457
- t.$slots.optionFullscreen ? {
458
- name: "optionFullscreen",
459
- fn: E(({ toggleFullscreen: a, isFullscreen: l }) => [
460
- R(t.$slots, "optionFullscreen", oe(ne({ toggleFullscreen: a, isFullscreen: l })), void 0, !0)
461
- ]),
462
- key: "4"
463
- } : void 0,
464
- t.$slots.optionAnnotator ? {
465
- name: "optionAnnotator",
466
- fn: E(({ toggleAnnotator: a, isAnnotator: l }) => [
467
- R(t.$slots, "optionAnnotator", oe(ne({ toggleAnnotator: a, isAnnotator: l })), void 0, !0)
468
- ]),
469
- key: "5"
470
- } : void 0
471
- ]), 1032, ["backgroundColor", "color", "isPrinting", "isImaging", "uid", "hasPdf", "hasImg", "hasSvg", "hasFullscreen", "isFullscreen", "position", "titles", "hasAnnotator", "isAnnotation", "chartElement", "callbacks", "printScale", "onGeneratePdf", "onGenerateImage", "style"])) : I("", !0),
472
- (o(), n("svg", {
473
- ref_key: "svgRef",
474
- ref: ce,
475
- xmlns: c(Lt),
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" }),
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)}`,
478
- style: fe(`max-width:100%;overflow:visible;background:transparent;color:${e.value.style.chart.color}`)
479
- }, [
480
- zt(c(Ze)),
481
- t.$slots["chart-background"] ? (o(), n("foreignObject", {
482
- key: 0,
483
- x: e.value.layout === "3d" && !e.value.responsive ? T.value?.x - 10 : 0,
484
- y: e.value.layout === "3d" && !e.value.responsive ? T.value?.y ?? 0 : 0,
485
- width: e.value.layout === "3d" && !e.value.responsive ? T.value?.w + 20 : Math.max(10, u.value.width),
486
- height: e.value.layout === "3d" && !e.value.responsive ? T.value?.h ?? Math.max(10, u.value.height) : Math.max(10, u.value.height),
487
- style: {
488
- pointerEvents: "none"
489
- }
490
- }, [
491
- R(t.$slots, "chart-background", {}, void 0, !0)
492
- ], 8, sa)) : I("", !0),
493
- e.value.layout === "3d" && Te.value ? (o(), n("path", {
494
- key: 1,
495
- class: "vue-ui-wheel-inner-circle",
496
- d: Te.value.d,
497
- stroke: e.value.style.chart.layout.innerCircle.stroke,
498
- "stroke-width": e.value.style.chart.layout.innerCircle.strokeWidth,
499
- fill: "none"
500
- }, null, 8, oa)) : e.value.style.chart.layout.innerCircle.show ? (o(), n("circle", {
501
- key: 2,
502
- class: "vue-ui-wheel-inner-circle",
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),
506
- stroke: e.value.style.chart.layout.innerCircle.stroke,
507
- "stroke-width": e.value.style.chart.layout.innerCircle.strokeWidth,
508
- fill: "none"
509
- }, null, 8, na)) : I("", !0),
510
- e.value.layout === "3d" ? (o(), n(A, { key: 3 }, [
511
- e.value.style.chart.layout.wheel.ticks.type === "classic" ? (o(), n("g", ua, [
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", {
514
- key: l.i,
515
- x1: l.x1,
516
- y1: l.y1 - a,
517
- x2: l.x2,
518
- y2: l.y2 - a,
519
- stroke: c(Ee)(l.color, 0.25 * a / 5),
520
- "stroke-width": e.value.style.chart.layout.wheel.ticks.strokeWidth / 360 * Math.min(u.value.width, u.value.height),
521
- "stroke-linecap": e.value.style.chart.layout.wheel.ticks.rounded ? "round" : "butt",
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))
524
- ]))), 256)),
525
- (o(!0), n(A, null, O(Oe.value || [], (a) => (o(), n("line", {
526
- key: a.i,
527
- x1: a.x1,
528
- y1: a.y1 - U.value,
529
- x2: a.x2,
530
- y2: a.y2 - U.value,
531
- stroke: a.color,
532
- "stroke-width": e.value.style.chart.layout.wheel.ticks.strokeWidth / 360 * Math.min(u.value.width, u.value.height),
533
- "stroke-linecap": e.value.style.chart.layout.wheel.ticks.rounded ? "round" : "butt",
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))
536
- ])) : (o(), n("g", ca, [
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", {
539
- key: l.i,
540
- d: l.d,
541
- fill: e.value.style.chart.layout.wheel.ticks.inactiveColor,
542
- stroke: e.value.style.chart.layout.wheel.ticks.stroke,
543
- "stroke-width": e.value.style.chart.layout.wheel.ticks.strokeWidth,
544
- "stroke-linecap": "round",
545
- "stroke-linejoin": "round",
546
- class: "vue-ui-wheel-tick"
547
- }, null, 8, ha))), 128)),
548
- (o(!0), n(A, null, O(ve.value(-a) || [], (l) => (o(), n("path", {
549
- key: l.i,
550
- d: l.d,
551
- fill: c(Ee)(l.fill, 0.5 * a / U.value),
552
- stroke: e.value.style.chart.layout.wheel.ticks.stroke,
553
- "stroke-width": e.value.style.chart.layout.wheel.ticks.strokeWidth,
554
- "stroke-linecap": "round",
555
- "stroke-linejoin": "round",
556
- class: z({ "vue-ui-wheel-tick": !0, "vue-ui-tick-animated-3d": e.value.style.chart.animation.use && l.i * _.value <= d.value })
557
- }, null, 10, va))), 128))
558
- ]))), 256)),
559
- Ot("g", null, [
560
- (o(!0), n(A, null, O(ve.value(-U.value) || [], (a) => (o(), n("path", {
561
- key: a.i,
562
- d: a.d,
563
- fill: a.fill,
564
- stroke: e.value.style.chart.layout.wheel.ticks.stroke,
565
- "stroke-width": e.value.style.chart.layout.wheel.ticks.strokeWidth,
566
- "stroke-linecap": "round",
567
- "stroke-linejoin": "round",
568
- class: z({ "vue-ui-wheel-tick": !0, "vue-ui-tick-animated-3d": e.value.style.chart.animation.use && a.i * _.value <= d.value })
569
- }, null, 10, da))), 128))
570
- ])
571
- ]))
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", {
574
- x1: a.x1,
575
- x2: a.x2,
576
- y1: a.y1,
577
- y2: a.y2,
578
- stroke: a.color,
579
- "stroke-width": e.value.style.chart.layout.wheel.ticks.strokeWidth / 360 * Math.min(u.value.width, u.value.height),
580
- "stroke-linecap": e.value.style.chart.layout.wheel.ticks.rounded ? "round" : "butt",
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", {
583
- d: a.arcSlice,
584
- fill: a.color,
585
- class: z({ "vue-ui-wheel-tick": !0, "vue-ui-tick-animated": e.value.style.chart.animation.use && l * _.value <= d.value }),
586
- stroke: e.value.style.chart.layout.wheel.ticks.stroke,
587
- "stroke-width": e.value.style.chart.layout.wheel.ticks.strokeWidth
588
- }, null, 10, ka))), 256))
589
- ], 64)),
590
- e.value.style.chart.layout.percentage.show ? (o(), n("g", ga, [
591
- c(Me) ? (o(), n("rect", {
592
- key: 0,
593
- x: r.value.centerX - 40,
594
- y: r.value.centerY - j.value / 2,
595
- width: 80,
596
- height: j.value,
597
- fill: "#6A6A6A80",
598
- rx: "3"
599
- }, null, 8, fa)) : (o(), n("text", {
600
- key: 1,
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,
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,
605
- "text-anchor": "middle",
606
- "font-weight": e.value.style.chart.layout.percentage.bold ? "bold" : "normal",
607
- style: { "font-variant-numeric": "tabluar-nums" },
608
- stroke: e.value.style.chart.layout.percentage.stroke,
609
- "stroke-width": e.value.style.chart.layout.percentage.strokeWidth,
610
- "stroke-linecap": "round",
611
- "stroke-linejoin": "round",
612
- "paint-order": "stroke fill",
613
- class: z({ "vue-ui-wheel-label": e.value.layout === "3d" })
614
- }, Wt(c(Ut)(
615
- e.value.style.chart.layout.percentage.formatter,
616
- c(je)(d.value),
617
- c(Bt)({
618
- v: c(je)(d.value),
619
- s: "%",
620
- r: e.value.style.chart.layout.percentage.rounding
621
- })
622
- )), 11, pa))
623
- ])) : I("", !0),
624
- R(t.$slots, "svg", { svg: u.value }, void 0, !0)
625
- ], 14, la)),
626
- t.$slots.watermark ? (o(), n("div", ma, [
627
- R(t.$slots, "watermark", oe(ne({ isPrinting: c($e) || c(Ae) })), void 0, !0)
628
- ])) : I("", !0),
629
- t.$slots.source ? (o(), n("div", {
630
- key: 5,
631
- ref_key: "source",
632
- ref: we,
633
- dir: "auto"
634
- }, [
635
- R(t.$slots, "source", {}, void 0, !0)
636
- ], 512)) : I("", !0),
637
- c(Me) ? (o(), se(Ht, { key: 6 })) : I("", !0)
638
- ], 46, aa));
639
- }
640
- }, Da = /* @__PURE__ */ ta(wa, [["__scopeId", "data-v-2f64f3fe"]]);
641
- export {
642
- Da as default
643
- };