vue-data-ui 3.25.4 → 3.25.6

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 (213) hide show
  1. package/README.md +13 -13
  2. package/dist/{BaseDraggableDialog-BM_R41j8.js → BaseDraggableDialog-Gm4Q30j0.js} +1 -1
  3. package/dist/{BaseIcon-t83PDe9k.js → BaseIcon-D8R6_sKH.js} +5 -5
  4. package/dist/{BaseLegendToggle-__JnV08B.js → BaseLegendToggle-CXQrLjd-.js} +1 -1
  5. package/dist/{BaseZoomControls-Xo16vFa4.js → BaseZoomControls-BTzjVDPM.js} +1 -1
  6. package/dist/{ColorPicker-ZJrR3Olp.js → ColorPicker-CUy15T72.js} +102 -100
  7. package/dist/{DataTable-COIO9gi4.js → DataTable-oiM9uWrQ.js} +1 -1
  8. package/dist/{HillActions-Cl-dNBZR.js → HillActions-Dn8aKOVJ.js} +1 -1
  9. package/dist/{NonSvgPenAndPaper-DS84BAOx.js → NonSvgPenAndPaper-DFXjpRyl.js} +2 -2
  10. package/dist/{PackageVersion-5SWftabm.js → PackageVersion-ur6jKRL5.js} +1 -1
  11. package/dist/{PenAndPaper-B_SdRSKH.js → PenAndPaper-KFzKlvbi.js} +20 -4
  12. package/dist/{SlicerPreview-GvsdvE-h.js → SlicerPreview-B6iHOC9L.js} +1 -1
  13. package/dist/{UserOptions-f3Q0nqrj.js → UserOptions-2x4VklMW.js} +1 -1
  14. package/dist/components/vue-ui-3d-bar.js +1 -1
  15. package/dist/components/vue-ui-accordion.js +1 -1
  16. package/dist/components/vue-ui-age-pyramid.js +1 -1
  17. package/dist/components/vue-ui-annotator.js +1 -1
  18. package/dist/components/vue-ui-bullet.js +1 -1
  19. package/dist/components/vue-ui-bump.js +1 -1
  20. package/dist/components/vue-ui-candlestick.js +1 -1
  21. package/dist/components/vue-ui-carousel-table.js +1 -1
  22. package/dist/components/vue-ui-chestnut.js +1 -1
  23. package/dist/components/vue-ui-chord.js +1 -1
  24. package/dist/components/vue-ui-circle-pack.js +1 -1
  25. package/dist/components/vue-ui-cursor.js +1 -1
  26. package/dist/components/vue-ui-dag.js +1 -1
  27. package/dist/components/vue-ui-dashboard.js +1 -1
  28. package/dist/components/vue-ui-digits.js +1 -1
  29. package/dist/components/vue-ui-donut-evolution.js +1 -1
  30. package/dist/components/vue-ui-donut.js +1 -1
  31. package/dist/components/vue-ui-dumbbell.js +1 -1
  32. package/dist/components/vue-ui-flow.js +1 -1
  33. package/dist/components/vue-ui-funnel.js +1 -1
  34. package/dist/components/vue-ui-galaxy.js +1 -1
  35. package/dist/components/vue-ui-gauge.js +1 -1
  36. package/dist/components/vue-ui-geo.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-hill.js +1 -1
  40. package/dist/components/vue-ui-history-plot.js +1 -1
  41. package/dist/components/vue-ui-horizontal-bar.js +1 -1
  42. package/dist/components/vue-ui-icon.js +1 -1
  43. package/dist/components/vue-ui-kpi.js +1 -1
  44. package/dist/components/vue-ui-label.js +1 -1
  45. package/dist/components/vue-ui-mini-loader.js +1 -1
  46. package/dist/components/vue-ui-molecule.js +1 -1
  47. package/dist/components/vue-ui-mood-radar.js +1 -1
  48. package/dist/components/vue-ui-nested-donuts.js +1 -1
  49. package/dist/components/vue-ui-onion.js +1 -1
  50. package/dist/components/vue-ui-parallel-coordinate-plot.js +1 -1
  51. package/dist/components/vue-ui-quadrant.js +1 -1
  52. package/dist/components/vue-ui-quick-chart.js +1 -1
  53. package/dist/components/vue-ui-radar.js +1 -1
  54. package/dist/components/vue-ui-rating.js +1 -1
  55. package/dist/components/vue-ui-relation-circle.js +1 -1
  56. package/dist/components/vue-ui-ridgeline.js +1 -1
  57. package/dist/components/vue-ui-rings.js +1 -1
  58. package/dist/components/vue-ui-scatter.js +1 -1
  59. package/dist/components/vue-ui-skeleton.js +1 -1
  60. package/dist/components/vue-ui-smiley.js +1 -1
  61. package/dist/components/vue-ui-spark-trend.js +1 -1
  62. package/dist/components/vue-ui-sparkbar.js +1 -1
  63. package/dist/components/vue-ui-sparkgauge.js +1 -1
  64. package/dist/components/vue-ui-sparkhistogram.js +1 -1
  65. package/dist/components/vue-ui-sparkline.js +1 -1
  66. package/dist/components/vue-ui-sparkstackbar.js +1 -1
  67. package/dist/components/vue-ui-stackbar.js +1 -1
  68. package/dist/components/vue-ui-stackline.js +1 -1
  69. package/dist/components/vue-ui-strip-plot.js +1 -1
  70. package/dist/components/vue-ui-table-heatmap.js +1 -1
  71. package/dist/components/vue-ui-table-sparkline.js +1 -1
  72. package/dist/components/vue-ui-table.js +1 -1
  73. package/dist/components/vue-ui-thermometer.js +1 -1
  74. package/dist/components/vue-ui-timer.js +1 -1
  75. package/dist/components/vue-ui-tiremarks.js +1 -1
  76. package/dist/components/vue-ui-treemap.js +1 -1
  77. package/dist/components/vue-ui-vertical-bar.js +1 -1
  78. package/dist/components/vue-ui-waffle.js +1 -1
  79. package/dist/components/vue-ui-wheel.js +1 -1
  80. package/dist/components/vue-ui-word-cloud.js +1 -1
  81. package/dist/components/vue-ui-world.js +1 -1
  82. package/dist/components/vue-ui-xy-canvas.js +1 -1
  83. package/dist/components/vue-ui-xy.js +1 -1
  84. package/dist/{package-DmsdiyeS.js → package-Dx7M6sYy.js} +1 -1
  85. package/dist/{render-common-zoPh9a78.js → render-common-DETHvNhl.js} +1 -1
  86. package/dist/ssr/vue-ui-donut.js +1 -1
  87. package/dist/ssr/vue-ui-xy.js +1 -1
  88. package/dist/ssr.js +2 -2
  89. package/dist/style.css +1 -1
  90. package/dist/types/vue-data-ui.d.ts +80 -1
  91. package/dist/types/vue-ui-annotator.d.ts +58 -2
  92. package/dist/{useConfig-CyCVHo81.js → useConfig-CIQZ6_r7.js} +1339 -1313
  93. package/dist/{useObjectBindings-ByORl1rV.js → useObjectBindings---mHNfbS.js} +2 -2
  94. package/dist/utils.js +1 -1
  95. package/dist/{vue-data-ui-DTj71yB7.js → vue-data-ui-Dh3_EsHb.js} +70 -70
  96. package/dist/vue-data-ui.js +71 -71
  97. package/dist/vue-ui-3d-bar-i1REAKnM.js +1831 -0
  98. package/dist/{vue-ui-accordion-D4zsdacF.js → vue-ui-accordion-BSmBUjwZ.js} +2 -2
  99. package/dist/vue-ui-age-pyramid-DuHblCNO.js +1293 -0
  100. package/dist/vue-ui-annotator-CTQHAPho.js +3325 -0
  101. package/dist/vue-ui-bullet-CYLnKrmM.js +702 -0
  102. package/dist/{vue-ui-bump-BkOtQNWe.js → vue-ui-bump-DhwySwgn.js} +382 -380
  103. package/dist/vue-ui-candlestick-BpiECaDj.js +1859 -0
  104. package/dist/{vue-ui-carousel-table-CRgbs7jR.js → vue-ui-carousel-table-D-T2yA7-.js} +2 -2
  105. package/dist/vue-ui-chestnut-1MsZ9Q3r.js +2016 -0
  106. package/dist/vue-ui-chord-QBQUSe7r.js +1347 -0
  107. package/dist/vue-ui-circle-pack-ZWEwtesD.js +1635 -0
  108. package/dist/{vue-ui-cursor-BHyXRadA.js → vue-ui-cursor-CHQcHAHQ.js} +2 -2
  109. package/dist/{vue-ui-dag-CyVqaLbF.js → vue-ui-dag-C_inEafb.js} +794 -792
  110. package/dist/{vue-ui-dashboard-7I-7wvCP.js → vue-ui-dashboard-Bs2mBur5.js} +74 -72
  111. package/dist/{vue-ui-digits-BBL8uERO.js → vue-ui-digits-DwE4MoXI.js} +2 -2
  112. package/dist/vue-ui-donut-BM9dMHXj.js +2415 -0
  113. package/dist/{vue-ui-donut-DcgUuefk.js → vue-ui-donut-CbOSJmRu.js} +2 -2
  114. package/dist/vue-ui-donut-evolution-C97_RHus.js +1552 -0
  115. package/dist/vue-ui-dumbbell-DwKa5EL5.js +1533 -0
  116. package/dist/vue-ui-flow-DTTr3YL9.js +1217 -0
  117. package/dist/vue-ui-funnel-C4pkBk3D.js +749 -0
  118. package/dist/vue-ui-galaxy-CuAPLOvX.js +1085 -0
  119. package/dist/vue-ui-gauge-DLDULH26.js +934 -0
  120. package/dist/{vue-ui-geo-jR4P4pbt.js → vue-ui-geo-DXIHhp-G.js} +431 -429
  121. package/dist/{vue-ui-gizmo-D6W86s9o.js → vue-ui-gizmo-PuURiePo.js} +2 -2
  122. package/dist/vue-ui-heatmap-mvWLKB99.js +1555 -0
  123. package/dist/{vue-ui-hill-fFq7pm-g.js → vue-ui-hill-DqsVJkmO.js} +472 -470
  124. package/dist/vue-ui-history-plot-BBVLgt9_.js +1698 -0
  125. package/dist/{vue-ui-horizontal-bar-D3Sft4kp.js → vue-ui-horizontal-bar-y8Q8PZwT.js} +513 -511
  126. package/dist/{vue-ui-kpi-fzLsKlyE.js → vue-ui-kpi-B2hf3kpp.js} +2 -2
  127. package/dist/{vue-ui-label-BSgLalWD.js → vue-ui-label-ClMQ5Gez.js} +1 -1
  128. package/dist/{vue-ui-mini-loader-BL2odRfu.js → vue-ui-mini-loader-DtPOVIkK.js} +1 -1
  129. package/dist/vue-ui-molecule-eeW1Pmg8.js +929 -0
  130. package/dist/{vue-ui-mood-radar-bvGx6XgG.js → vue-ui-mood-radar-Dd1qfUiu.js} +378 -376
  131. package/dist/vue-ui-nested-donuts-CUARCr6O.js +1503 -0
  132. package/dist/vue-ui-onion-NoxHP0cG.js +1235 -0
  133. package/dist/{vue-ui-parallel-coordinate-plot-B_QJ4N9o.js → vue-ui-parallel-coordinate-plot-Cp3pCyxK.js} +409 -407
  134. package/dist/vue-ui-quadrant-C3kQtaeX.js +1967 -0
  135. package/dist/{vue-ui-quick-chart-BFscCR59.js → vue-ui-quick-chart-BZq517pL.js} +8 -6
  136. package/dist/vue-ui-radar-DvNrl4uD.js +1374 -0
  137. package/dist/vue-ui-rating-CWFMoYpE.js +359 -0
  138. package/dist/vue-ui-relation-circle-1iS6C0xx.js +905 -0
  139. package/dist/vue-ui-ridgeline-B-EZiPCF.js +1630 -0
  140. package/dist/vue-ui-rings-BXuwrHos.js +1252 -0
  141. package/dist/vue-ui-scatter-ByL-ZZ3B.js +2405 -0
  142. package/dist/{vue-ui-skeleton-zmbcOVEf.js → vue-ui-skeleton-BcU1onF6.js} +698 -698
  143. package/dist/vue-ui-smiley-DJVusLnp.js +376 -0
  144. package/dist/vue-ui-spark-trend-DjS31avb.js +457 -0
  145. package/dist/vue-ui-sparkbar-1Al_TLw1.js +401 -0
  146. package/dist/vue-ui-sparkgauge-CwLo53Y8.js +268 -0
  147. package/dist/vue-ui-sparkhistogram-CGw6SThG.js +589 -0
  148. package/dist/{vue-ui-sparkline-Dv7XrEzO.js → vue-ui-sparkline-CSZGBFfI.js} +511 -511
  149. package/dist/vue-ui-sparkstackbar-B8dloLMp.js +738 -0
  150. package/dist/vue-ui-stackbar-FvNd77t1.js +2355 -0
  151. package/dist/vue-ui-stackline-CP7PkqiG.js +2469 -0
  152. package/dist/vue-ui-strip-plot-DSMlDkv1.js +1740 -0
  153. package/dist/{vue-ui-table-heatmap-Dv_ZKKm3.js → vue-ui-table-heatmap-DnP3pzh2.js} +2 -2
  154. package/dist/vue-ui-table-rwKtnJKt.js +1352 -0
  155. package/dist/vue-ui-table-sparkline-B6wyEAyC.js +738 -0
  156. package/dist/{vue-ui-thermometer-DytlLJ32.js → vue-ui-thermometer-D0_KsB-y.js} +194 -192
  157. package/dist/{vue-ui-timer-CvHP4HoW.js → vue-ui-timer-1Z2zginj.js} +153 -153
  158. package/dist/vue-ui-tiremarks-zbl7aooy.js +540 -0
  159. package/dist/vue-ui-treemap-Drs4gK6L.js +1733 -0
  160. package/dist/vue-ui-waffle-DqUVsVNE.js +1621 -0
  161. package/dist/vue-ui-wheel-DLCBPW9t.js +873 -0
  162. package/dist/vue-ui-word-cloud-8Agk9h6c.js +1710 -0
  163. package/dist/{vue-ui-world-D0_2upjg.js → vue-ui-world-BOBHo7-L.js} +526 -524
  164. package/dist/vue-ui-xy-CSTJzRkk.js +5283 -0
  165. package/dist/{vue-ui-xy-D_5FfaH-.js → vue-ui-xy-Dmk1gQkI.js} +2 -2
  166. package/dist/vue-ui-xy-canvas-DANPuyf4.js +1824 -0
  167. package/dist/{vue_ui_age_pyramid-BY6c-oX_.js → vue_ui_age_pyramid-B2R66DgQ.js} +15 -6
  168. package/package.json +1 -1
  169. package/dist/vue-ui-3d-bar-CH8SpxS2.js +0 -1829
  170. package/dist/vue-ui-age-pyramid-B9MUVi75.js +0 -1241
  171. package/dist/vue-ui-annotator-CmlcWPIm.js +0 -2886
  172. package/dist/vue-ui-bullet-n8KNnDwh.js +0 -700
  173. package/dist/vue-ui-candlestick-Bxlvqk49.js +0 -1857
  174. package/dist/vue-ui-chestnut-ByDKbkG9.js +0 -2014
  175. package/dist/vue-ui-chord-DQRBgVOx.js +0 -1345
  176. package/dist/vue-ui-circle-pack-CBBc0HOe.js +0 -1633
  177. package/dist/vue-ui-donut-DfiocufT.js +0 -2413
  178. package/dist/vue-ui-donut-evolution-BoqO8By2.js +0 -1550
  179. package/dist/vue-ui-dumbbell-7M_oUQdi.js +0 -1529
  180. package/dist/vue-ui-flow-CoylrfnO.js +0 -1215
  181. package/dist/vue-ui-funnel-DaBYHWIC.js +0 -747
  182. package/dist/vue-ui-galaxy-BIebStQ3.js +0 -1083
  183. package/dist/vue-ui-gauge-CwdTmiRP.js +0 -932
  184. package/dist/vue-ui-heatmap-DXYlGwqR.js +0 -1553
  185. package/dist/vue-ui-history-plot-CgIELoD2.js +0 -1696
  186. package/dist/vue-ui-molecule-DeHWkkhy.js +0 -929
  187. package/dist/vue-ui-nested-donuts-CeAV2xPk.js +0 -1501
  188. package/dist/vue-ui-onion-B7oFulsQ.js +0 -1233
  189. package/dist/vue-ui-quadrant-DrKnz37q.js +0 -1965
  190. package/dist/vue-ui-radar-Bzx69q8f.js +0 -1372
  191. package/dist/vue-ui-rating-CimC9FQ9.js +0 -359
  192. package/dist/vue-ui-relation-circle-DIQYyDGb.js +0 -903
  193. package/dist/vue-ui-ridgeline-CPEnM45x.js +0 -1621
  194. package/dist/vue-ui-rings-qPL5Iwji.js +0 -1250
  195. package/dist/vue-ui-scatter-BB0ClTsU.js +0 -2403
  196. package/dist/vue-ui-smiley-DzPkCMN-.js +0 -376
  197. package/dist/vue-ui-spark-trend-Ciq7-k_q.js +0 -457
  198. package/dist/vue-ui-sparkbar-D1M7-naP.js +0 -401
  199. package/dist/vue-ui-sparkgauge-rsqaeR_n.js +0 -268
  200. package/dist/vue-ui-sparkhistogram-C4WXt2Ni.js +0 -589
  201. package/dist/vue-ui-sparkstackbar-DDOXdeV-.js +0 -738
  202. package/dist/vue-ui-stackbar-C_hMnOLb.js +0 -2353
  203. package/dist/vue-ui-stackline-BHGi63lD.js +0 -2467
  204. package/dist/vue-ui-strip-plot-Cygpn-l8.js +0 -1738
  205. package/dist/vue-ui-table-BQna1wL6.js +0 -1352
  206. package/dist/vue-ui-table-sparkline-BCuimtk6.js +0 -738
  207. package/dist/vue-ui-tiremarks-BvjdZwgh.js +0 -538
  208. package/dist/vue-ui-treemap-C5OpqzSc.js +0 -1731
  209. package/dist/vue-ui-waffle-B7T_Zzan.js +0 -1619
  210. package/dist/vue-ui-wheel-D1B0k7IW.js +0 -871
  211. package/dist/vue-ui-word-cloud-C4pX6jop.js +0 -1708
  212. package/dist/vue-ui-xy-Ck41KYqF.js +0 -5281
  213. package/dist/vue-ui-xy-canvas-B_8Mu19r.js +0 -1824
@@ -1,871 +0,0 @@
1
- import { t as e } from "./rolldown-runtime-Dy4uBu1J.js";
2
- import { Mt as t, Pt as n, Wt as r, X as i, Zt as a, b as o, i as s, jt as c, nt as l, q as u, t as d } from "./lib-Dql7cqyA.js";
3
- import { n as f, t as p } from "./useHints-Dq_w2E8B.js";
4
- import { t as m } from "./useConfig-CyCVHo81.js";
5
- import { t as h } from "./usePrinter-DISD7q5m.js";
6
- import { n as g, t as _ } from "./BaseScanner-DZvpgOjM.js";
7
- import { t as v } from "./useNestedProp-Chvyfpl-.js";
8
- import { t as y } from "./useThemeCheck-C43Tcqmk.js";
9
- import { t as b } from "./useChartExport-iwOqiIWX.js";
10
- import { t as x } from "./img-DhGApYG0.js";
11
- import { n as ee } from "./Title-CPHi-evi.js";
12
- import { t as S } from "./_plugin-vue_export-helper-B3ysoDQm.js";
13
- import { l as C, t as te } from "./useResponsive-ZtArZtUf.js";
14
- import { t as ne } from "./useUserOptionState-DK-_1ddE.js";
15
- import { t as re } from "./useChartAccessibility-DYqac8yF.js";
16
- import { t as ie } from "./usePrefersMotion-BC-CsqR1.js";
17
- import { t as ae } from "./vue_ui_wheel-DZ_nR--t.js";
18
- import { Fragment as w, computed as T, createBlock as E, createCommentVNode as D, createElementBlock as O, createElementVNode as oe, createSlots as se, createVNode as ce, defineAsyncComponent as le, guardReactiveProps as k, normalizeClass as A, normalizeProps as j, normalizeStyle as ue, onBeforeUnmount as de, onMounted as fe, openBlock as M, ref as N, renderList as P, renderSlot as F, shallowRef as pe, toDisplayString as me, toRefs as he, unref as I, useCssVars as ge, watch as _e, withCtx as L } from "vue";
19
- //#region src/components/vue-ui-wheel.vue
20
- var ve = /* @__PURE__ */ e({ default: () => ze }), ye = ["id"], be = [
21
- "xmlns",
22
- "viewBox",
23
- "aria-labelledby",
24
- "aria-describedby"
25
- ], xe = ["id"], Se = ["id"], Ce = [
26
- "x",
27
- "y",
28
- "width",
29
- "height"
30
- ], we = [
31
- "d",
32
- "stroke",
33
- "stroke-width"
34
- ], Te = [
35
- "cx",
36
- "cy",
37
- "r",
38
- "stroke",
39
- "stroke-width"
40
- ], Ee = { key: 0 }, De = [
41
- "x1",
42
- "y1",
43
- "x2",
44
- "y2",
45
- "stroke",
46
- "stroke-width",
47
- "stroke-linecap"
48
- ], Oe = [
49
- "x1",
50
- "y1",
51
- "x2",
52
- "y2",
53
- "stroke",
54
- "stroke-width",
55
- "stroke-linecap"
56
- ], ke = { key: 1 }, Ae = [
57
- "d",
58
- "fill",
59
- "stroke",
60
- "stroke-width"
61
- ], je = [
62
- "d",
63
- "fill",
64
- "stroke",
65
- "stroke-width"
66
- ], Me = [
67
- "d",
68
- "fill",
69
- "stroke",
70
- "stroke-width"
71
- ], Ne = [
72
- "x1",
73
- "x2",
74
- "y1",
75
- "y2",
76
- "stroke",
77
- "stroke-width",
78
- "stroke-linecap"
79
- ], Pe = [
80
- "d",
81
- "fill",
82
- "stroke",
83
- "stroke-width"
84
- ], Fe = ["aria-label"], Ie = [
85
- "x",
86
- "y",
87
- "height"
88
- ], Le = [
89
- "x",
90
- "y",
91
- "font-size",
92
- "fill",
93
- "font-weight",
94
- "stroke",
95
- "stroke-width"
96
- ], Re = {
97
- key: 4,
98
- class: "vue-data-ui-watermark"
99
- }, ze = /*#__PURE__*/ S({
100
- __name: "vue-ui-wheel",
101
- props: {
102
- config: {
103
- type: Object,
104
- default() {
105
- return {};
106
- }
107
- },
108
- dataset: {
109
- type: Object,
110
- default() {
111
- return {};
112
- }
113
- }
114
- },
115
- emits: ["copyAlt"],
116
- setup(e, { expose: S, emit: ve }) {
117
- ge((e) => ({
118
- v79c1e0f9: Pt.value,
119
- v52b4fc9f: Ft.value,
120
- v52b4df32: It.value
121
- }));
122
- let ze = le(() => import("./PenAndPaper-B_SdRSKH.js").then((e) => e.t)), Be = le(() => import("./UserOptions-f3Q0nqrj.js").then((e) => e.n)), Ve = le(() => import("./PackageVersion-5SWftabm.js").then((e) => e.t)), { vue_ui_wheel: He } = m(), { isThemeValid: Ue, warnInvalidTheme: We } = y(), R = ie(), z = e, Ge = ve, Ke = T(() => !!z.dataset && Object.keys(z.dataset).length), B = N(u()), qe = N(null), Je = N(0), V = N(null), Ye = N(null), Xe = N(null), Ze = N(null), Qe = N(0), H = N(ot());
123
- f({
124
- config: () => H.value,
125
- dataset: () => z.dataset,
126
- component: "VueUiWheel",
127
- rules: [p.noHint]
128
- });
129
- let $e = T(() => H.value.userOptions.useCursorPointer), et = T(() => a({
130
- defaultConfig: {
131
- userOptions: { show: !1 },
132
- style: { chart: {
133
- backgroundColor: "#99999930",
134
- animation: { use: !1 },
135
- layout: {
136
- wheel: { ticks: {
137
- activeColor: "#6A6A6A80",
138
- inactiveColor: "#CACACA80"
139
- } },
140
- innerCircle: { stroke: "#CACACA80" }
141
- }
142
- } }
143
- },
144
- userConfig: H.value.skeletonConfig ?? {}
145
- })), { loading: tt, FINAL_DATASET: U } = g({
146
- ...he(z),
147
- FINAL_CONFIG: H,
148
- prepareConfig: ot,
149
- skeletonDataset: z.config?.skeletonDataset ?? { percentage: 50 },
150
- skeletonConfig: a({
151
- defaultConfig: H.value,
152
- userConfig: et.value
153
- })
154
- }), { userOptionsVisible: nt, setUserOptionsVisibility: rt, keepUserOptionState: it } = ne({ config: H.value }), { svgRef: at } = re({ config: H.value.style.chart.title });
155
- function ot() {
156
- let e = v({
157
- userConfig: z.config,
158
- defaultConfig: He
159
- }), t = e.theme;
160
- if (!t) return e;
161
- if (!Ue.value(e)) return We(e), e;
162
- let n = v({
163
- userConfig: ae[t] || z.config,
164
- defaultConfig: e
165
- });
166
- return v({
167
- userConfig: z.config,
168
- defaultConfig: n
169
- });
170
- }
171
- _e(() => z.config, (e) => {
172
- H.value = ot(), nt.value = !H.value.userOptions.showOnChartHover, mt(), Qe.value += 1;
173
- }, { deep: !0 });
174
- let { isPrinting: st, isImaging: ct, generatePdf: lt, generateImage: ut } = h({
175
- elementId: B.value,
176
- fileName: H.value.style.chart.title.text || "vue-ui-wheel",
177
- options: H.value.userOptions.print
178
- }), dt = T(() => H.value.userOptions.show && !H.value.style.chart.title.text), W = N({
179
- size: 360,
180
- height: 360,
181
- width: 360
182
- }), G = N(H.value.style.chart.layout.percentage.fontSize), K = T(() => ({
183
- radius: Math.min(W.value.width, W.value.height) * .9 / 2 * H.value.style.chart.layout.wheel.radiusRatio,
184
- centerX: W.value.width / 2,
185
- centerY: W.value.height / 2
186
- }));
187
- function ft(e, t = 1) {
188
- let n = 29.85;
189
- return {
190
- x: K.value.centerX + K.value.radius * Math.cos(n + e * Math.PI / 180) * t,
191
- y: K.value.centerY + K.value.radius * Math.sin(n + e * Math.PI / 180) * t
192
- };
193
- }
194
- let q = N(H.value.style.chart.animation.use && !R.value ? 0 : U.value.percentage || 0);
195
- _e(() => U.value, (e) => {
196
- H.value.style.chart.animation.use && !R.value ? Et(e.percentage) : q.value = e.percentage || 0;
197
- }, { deep: !0 });
198
- let J = pe(null), Y = pe(null);
199
- fe(() => {
200
- mt();
201
- });
202
- let pt = T(() => H.value.debug);
203
- function mt() {
204
- if (n(z.dataset) && l({
205
- componentName: "VueUiWheel",
206
- type: "dataset",
207
- debug: pt.value
208
- }), H.value.responsive) {
209
- let e = C(() => {
210
- let { width: e, height: t } = te({
211
- chart: V.value,
212
- title: H.value.style.chart.title.text ? Ye.value : null,
213
- source: Xe.value,
214
- noTitle: Ze.value
215
- });
216
- requestAnimationFrame(() => {
217
- W.value.width = e, W.value.height = t, G.value = H.value.style.chart.layout.percentage.fontSize / 360 * Math.min(e, t);
218
- });
219
- });
220
- J.value && (Y.value && J.value.unobserve(Y.value), J.value.disconnect()), J.value = new ResizeObserver(e), Y.value = V.value.parentNode, J.value.observe(Y.value);
221
- }
222
- Et(U.value.percentage || 0), H.value.style.chart.animation.use && !R.value || (q.value = U.value.percentage || 0);
223
- }
224
- de(() => {
225
- J.value && (Y.value && J.value.unobserve(Y.value), J.value.disconnect());
226
- });
227
- function ht([e, t, n], r) {
228
- let i = Math.cos(r), a = Math.sin(r);
229
- return [
230
- e,
231
- t * i - n * a,
232
- t * a + n * i
233
- ];
234
- }
235
- function gt([e, t, n], r) {
236
- let i = r / (r - n);
237
- return [
238
- e * i,
239
- t * i,
240
- n,
241
- i
242
- ];
243
- }
244
- function _t(e, t) {
245
- let n = e.replace("#", ""), r = parseInt(n.substring(0, 2), 16), i = parseInt(n.substring(2, 4), 16), a = parseInt(n.substring(4, 6), 16), o = 1 - Math.min(1, Math.max(0, H.value.style.chart.layout.wheel.ticks.shadeColorRatio3d)) * t, s = Math.max(0, Math.min(255, Math.round(r * o))), c = Math.max(0, Math.min(255, Math.round(i * o))), l = Math.max(0, Math.min(255, Math.round(a * o)));
246
- return `#${s.toString(16).padStart(2, "0")}${c.toString(16).padStart(2, "0")}${l.toString(16).padStart(2, "0")}`;
247
- }
248
- function vt({ cx: e, cy: t, radius: n, innerRatio: i = .8, count: a = 120, startDeg: o = 0, axDeg: s = 50, f: c = 520, baseStroke: l = 5, activeColor: u, inactiveColor: d, getActive: f }) {
249
- let p = s * Math.PI / 180, m = n, h = n * i, g = [];
250
- for (let n = 0; n < a; n += 1) {
251
- let i = (n / a * 360 + o) * Math.PI / 180, s = e + m * Math.cos(i), _ = t + m * Math.sin(i), v = e + h * Math.cos(i), y = t + h * Math.sin(i), b = [
252
- s - e,
253
- _ - t,
254
- 0
255
- ], x = [
256
- v - e,
257
- y - t,
258
- 0
259
- ], [ee, S, C] = ht(b, p), [te, ne, re] = ht(x, p), [ie, ae, , w] = gt([
260
- ee,
261
- S,
262
- C
263
- ], c), [T, E, , D] = gt([
264
- te,
265
- ne,
266
- re
267
- ], c), O = e + ie, oe = t + ae, se = e + T, ce = t + E, le = (Math.max(C, re) - -m * Math.sin(p)) / (2 * m * Math.sin(p) || 1), k = !f || f(n), A = H.value.style.chart.layout.wheel.ticks.gradient.show ? r(u, n * Q.value / Z.value * (H.value.style.chart.layout.wheel.ticks.gradient.shiftHueIntensity / 100)) : u, j = _t(k ? A : d, le), ue = Math.max(1.25, l * w * (Math.min(W.value.width, W.value.height) / 360));
268
- g.push({
269
- i: n,
270
- x1: O,
271
- y1: oe,
272
- x2: se,
273
- y2: ce,
274
- stroke: ue,
275
- color: j,
276
- z: Math.max(C, re)
277
- });
278
- }
279
- return g.sort((e, t) => e.z - t.z), g;
280
- }
281
- let yt = T(() => {
282
- if (!H.value.layout === "3d") return null;
283
- let e = Z.value, t = H.value.style.chart.layout.wheel.ticks.gradient.show ? r(H.value.style.chart.layout.wheel.ticks.activeColor, 0) : H.value.style.chart.layout.wheel.ticks.activeColor, n = H.value.style.chart.layout.wheel.ticks.inactiveColor, i = H.value.style.chart.layout.wheel.ticks.strokeWidth;
284
- return vt({
285
- cx: K.value.centerX,
286
- cy: K.value.centerY,
287
- radius: K.value.radius,
288
- innerRatio: H.value.style.chart.layout.wheel.ticks.sizeRatio,
289
- count: e,
290
- startDeg: -90,
291
- axDeg: H.value.style.chart.layout.wheel.tiltAngle3d,
292
- f: Math.min(W.value.width, W.value.height) * 1.45,
293
- baseStroke: i,
294
- activeColor: t,
295
- inactiveColor: n,
296
- getActive: (e) => q.value > e * Q.value
297
- });
298
- });
299
- function bt({ cx: e, cy: t, r: n, count: r = 180, startDeg: i = -90, axDeg: a = 50, f: o }) {
300
- let s = a * Math.PI / 180, c = [], l = 0;
301
- for (let a = 0; a < r; a += 1) {
302
- let u = (a / r * 360 + i) * Math.PI / 180, [d, f, p] = ht([
303
- n * Math.cos(u),
304
- n * Math.sin(u),
305
- 0
306
- ], s), [m, h, , g] = gt([
307
- d,
308
- f,
309
- p
310
- ], o);
311
- l += g, c.push([e + m, t + h]);
312
- }
313
- let u = `M ${c[0][0]} ${c[0][1]}`;
314
- for (let e = 1; e < c.length; e += 1) u += ` L ${c[e][0]} ${c[e][1]}`;
315
- u += " Z";
316
- let d = l / r;
317
- return {
318
- d: u,
319
- avgScale: d,
320
- pts: c
321
- };
322
- }
323
- let X = T(() => {
324
- if (H.value.layout !== "3d") return null;
325
- let e = Math.min(W.value.width, W.value.height) * 1.45, t = H.value.style.chart.layout.wheel.tiltAngle3d, n = K.value.radius, { pts: r, avgScale: i } = (() => {
326
- let r = n, i = t, { d: a, avgScale: o, pts: s } = bt({
327
- cx: K.value.centerX,
328
- cy: K.value.centerY,
329
- r,
330
- startDeg: -90,
331
- axDeg: i,
332
- f: e
333
- });
334
- return {
335
- pts: s,
336
- avgScale: o
337
- };
338
- })(), a = Infinity, o = Infinity, s = -Infinity, c = -Infinity;
339
- for (let [e, t] of r) e < a && (a = e), t < o && (o = t), e > s && (s = e), t > c && (c = t);
340
- let l = H.value.style.chart.layout.wheel.ticks.strokeWidth / 360 * Math.min(W.value.width, W.value.height), u = H.value.style.chart.layout.innerCircle.strokeWidth || 0, d = .5 * Math.max(l, u * (i || 1)), f = Math.max(0, Number(H.value.style.chart.layout.wheel.ticks.depth3d) || 0), p = d;
341
- return {
342
- x: a - p,
343
- y: o - f - p,
344
- w: s - a + 2 * p,
345
- h: c - (o - f) + 2 * p
346
- };
347
- });
348
- function xt(e) {
349
- let t = Math.min(W.value.width, W.value.height) * 1.45, { d: n, avgScale: r } = bt({
350
- cx: K.value.centerX,
351
- cy: K.value.centerY,
352
- r: e,
353
- startDeg: -90,
354
- axDeg: H.value.style.chart.layout.wheel.tiltAngle3d,
355
- f: t
356
- }), i = (H.value.style.chart.layout.innerCircle.strokeWidth || 1) * r;
357
- return {
358
- d: n,
359
- stroke: H.value.style.chart.layout.innerCircle.stroke,
360
- strokeWidth: i
361
- };
362
- }
363
- let St = T(() => xt(Math.max(0, K.value.radius * .8 * H.value.style.chart.layout.innerCircle.radiusRatio)));
364
- function Ct({ cx: e, cy: t, r: n, aRad: r, ax: i, f: a }) {
365
- let [o, s, c] = ht([
366
- n * Math.cos(r),
367
- n * Math.sin(r),
368
- 0
369
- ], i), [l, u, , d] = gt([
370
- o,
371
- s,
372
- c
373
- ], a);
374
- return {
375
- x: e + l,
376
- y: t + u,
377
- z: c,
378
- s: d
379
- };
380
- }
381
- function wt({ cx: e, cy: t, radius: n, innerRatio: i = .8, count: a = 120, startDeg: o = -87, axDeg: s = 45, f: c = 600, activeColor: l, inactiveColor: u, getActive: d, Y: f = 0 }) {
382
- let p = s * Math.PI / 180, m = n, h = n * i, g = 2 * Math.PI / a, _ = [];
383
- for (let n = 0; n < a; n += 1) {
384
- let i = o * Math.PI / 180 + g * n, s = i + g * Math.min(1, H.value.style.chart.layout.wheel.ticks.spacingRatio3d), v = Ct({
385
- cx: e,
386
- cy: t + f,
387
- r: m,
388
- aRad: i,
389
- ax: p,
390
- f: c
391
- }), y = Ct({
392
- cx: e,
393
- cy: t + f,
394
- r: m,
395
- aRad: s,
396
- ax: p,
397
- f: c
398
- }), b = Ct({
399
- cx: e,
400
- cy: t + f,
401
- r: h,
402
- aRad: s,
403
- ax: p,
404
- f: c
405
- }), x = Ct({
406
- cx: e,
407
- cy: t + f,
408
- r: h,
409
- aRad: i,
410
- ax: p,
411
- f: c
412
- }), ee = (v.z + y.z + x.z + b.z) / 4, S = _t(!d || d(n) ? H.value.style.chart.layout.wheel.ticks.gradient.show ? r(H.value.style.chart.layout.wheel.ticks.activeColor, 100 / a * n / 100 * (H.value.style.chart.layout.wheel.ticks.gradient.shiftHueIntensity / 100)) : l : u, (() => {
413
- let e = m * Math.sin(p) || 1;
414
- return (ee - -e) / (2 * e);
415
- })()), C = `M ${v.x} ${v.y} L ${y.x} ${y.y} L ${b.x} ${b.y} L ${x.x} ${x.y} Z`;
416
- _.push({
417
- i: n,
418
- d: C,
419
- fill: S,
420
- z: ee
421
- });
422
- }
423
- return _.sort((e, t) => e.z - t.z), _;
424
- }
425
- let Tt = T(() => {
426
- if (H.value.layout !== "3d") return null;
427
- let e = Z.value;
428
- return (t) => wt({
429
- cx: K.value.centerX,
430
- cy: K.value.centerY,
431
- radius: K.value.radius,
432
- innerRatio: H.value.style.chart.layout.wheel.ticks.sizeRatio,
433
- count: e,
434
- startDeg: -90,
435
- axDeg: H.value.style.chart.layout.wheel.tiltAngle3d,
436
- f: Math.min(W.value.width, W.value.height) * 1.45,
437
- activeColor: H.value.style.chart.layout.wheel.ticks.activeColor,
438
- inactiveColor: H.value.style.chart.layout.wheel.ticks.inactiveColor,
439
- getActive: (t) => q.value > 100 / e * t,
440
- Y: t
441
- });
442
- });
443
- function Et(e) {
444
- let t = H.value.style.chart.animation.speed, n = Math.abs(e - q.value) / (t * 120);
445
- function r() {
446
- q.value < e ? q.value = Math.min(q.value + n, e) : q.value > e && (q.value = Math.max(q.value - n, e)), q.value !== e && requestAnimationFrame(r);
447
- }
448
- r();
449
- }
450
- let Z = T(() => (pt.value && H.value.style.chart.layout.wheel.ticks.quantity < 12 && console.warn("VueUiWheel - The min number of ticks is 12"), pt.value && H.value.style.chart.layout.wheel.ticks.quantity > 200 && console.warn("VueUiWheel - The max number of ticks is 200"), Math.max(12, Math.min(H.value.style.chart.layout.wheel.ticks.quantity, 200)))), Q = T(() => 100 / Z.value), Dt = T(() => {
451
- let e = [];
452
- for (let t = 0; t < Z.value; t += 1) {
453
- let n = q.value > t * Q.value ? H.value.style.chart.layout.wheel.ticks.activeColor : H.value.style.chart.layout.wheel.ticks.inactiveColor, { x: i, y: a } = ft(W.value.size / Z.value * t), { x: o, y: s } = ft(W.value.size / Z.value * t, H.value.style.chart.layout.wheel.ticks.sizeRatio);
454
- e.push({
455
- x1: i,
456
- y1: a,
457
- x2: o,
458
- y2: s,
459
- color: H.value.style.chart.layout.wheel.ticks.gradient.show ? r(n, t * Q.value / Z.value * (H.value.style.chart.layout.wheel.ticks.gradient.shiftHueIntensity / 100)) : n
460
- });
461
- }
462
- return e;
463
- }), Ot = T(() => t({ series: Dt.value.map((e) => ({
464
- name: "",
465
- value: 1,
466
- color: e.color
467
- })) }, K.value.centerX, K.value.centerY, K.value.radius, K.value.radius, 1.99999, 2, 1, 360, 105.25, K.value.radius * (1 - H.value.style.chart.layout.wheel.ticks.sizeRatio))), kt = N(!1);
468
- function At(e) {
469
- kt.value = e, Je.value += 1;
470
- }
471
- let jt = N(!1);
472
- function Mt() {
473
- jt.value = !jt.value;
474
- }
475
- async function Nt({ scale: e = 2 } = {}) {
476
- if (!V.value) return;
477
- let { width: t, height: n } = V.value.getBoundingClientRect(), r = t / n, { imageUri: i, base64: a } = await x({
478
- domElement: V.value,
479
- base64: !0,
480
- img: !0,
481
- scale: e
482
- });
483
- return {
484
- imageUri: i,
485
- base64: a,
486
- title: H.value.style.chart.title.text,
487
- width: t,
488
- height: n,
489
- aspectRatio: r
490
- };
491
- }
492
- let Pt = T(() => H.value.style.chart.layout.wheel.ticks.strokeWidth * 2), Ft = T(() => H.value.style.chart.layout.wheel.ticks.strokeWidth * 2 * .75), It = T(() => H.value.style.chart.layout.wheel.ticks.strokeWidth), $ = T(() => Math.max(1, Math.min(20, H.value.style.chart.layout.wheel.ticks.depth3d))), Lt = T(() => H.value.style.chart.backgroundColor), Rt = T(() => H.value.style.chart.title), { isCallbackImaging: zt, isCallbackSvg: Bt, generateSvg: Vt, onGenerateImage: Ht } = b({
493
- svg: at,
494
- title: Rt,
495
- legend: null,
496
- legendItems: null,
497
- backgroundColor: Lt,
498
- stretchTitle: !0,
499
- getSvgCallback: () => H.value.userOptions.callbacks.svg,
500
- generateImage: ut
501
- });
502
- async function Ut() {
503
- if (Ge("copyAlt", {
504
- config: H.value,
505
- dataset: U.value
506
- }), !H.value.userOptions.callbacks.altCopy) {
507
- console.warn("Vue Data UI - A callback must be set for `altCopy` in userOptions.");
508
- return;
509
- }
510
- await Promise.resolve(H.value.userOptions.callbacks.altCopy({
511
- config: H.value,
512
- dataset: U.value
513
- }));
514
- }
515
- let Wt = T(() => `${B.value}-title`), Gt = T(() => `${B.value}-desc`), Kt = T(() => s(H.value.style.chart.layout.percentage.formatter, o(q.value), i({
516
- v: o(q.value),
517
- s: "%",
518
- r: H.value.style.chart.layout.percentage.rounding
519
- }))), qt = T(() => H.value.style.chart.title.text || ""), Jt = T(() => tt.value ? "..." : `${Kt.value}`);
520
- return S({
521
- getImage: Nt,
522
- generatePdf: lt,
523
- generateImage: ut,
524
- generateSvg: Vt,
525
- toggleAnnotator: Mt,
526
- toggleFullscreen: At,
527
- copyAlt: Ut
528
- }), (e, t) => (M(), O("div", {
529
- class: A(["vue-ui-wheel", {
530
- "vue-data-ui-component": !0,
531
- "vue-ui-wheel-3d-wrap": H.value.layout === "3d"
532
- }]),
533
- ref_key: "wheelChart",
534
- ref: V,
535
- id: B.value,
536
- style: ue(`font-family:${H.value.style.fontFamily};width:100%; text-align:center;background:${H.value.style.chart.backgroundColor};${H.value.responsive ? "height:100%" : ""}`),
537
- onMouseenter: t[0] ||= () => I(rt)(!0),
538
- onMouseleave: t[1] ||= () => I(rt)(!1)
539
- }, [
540
- H.value.userOptions.buttons.annotator ? (M(), E(I(ze), {
541
- key: 0,
542
- svgRef: I(at),
543
- backgroundColor: H.value.style.chart.backgroundColor,
544
- color: H.value.style.chart.color,
545
- active: jt.value,
546
- isCursorPointer: $e.value,
547
- onClose: Mt
548
- }, {
549
- "annotator-action-close": L(() => [F(e.$slots, "annotator-action-close", {}, void 0, !0)]),
550
- "annotator-action-color": L(({ color: t }) => [F(e.$slots, "annotator-action-color", j(k({ color: t })), void 0, !0)]),
551
- "annotator-action-draw": L(({ mode: t }) => [F(e.$slots, "annotator-action-draw", j(k({ mode: t })), void 0, !0)]),
552
- "annotator-action-undo": L(({ disabled: t }) => [F(e.$slots, "annotator-action-undo", j(k({ disabled: t })), void 0, !0)]),
553
- "annotator-action-redo": L(({ disabled: t }) => [F(e.$slots, "annotator-action-redo", j(k({ disabled: t })), void 0, !0)]),
554
- "annotator-action-delete": L(({ disabled: t }) => [F(e.$slots, "annotator-action-delete", j(k({ disabled: t })), void 0, !0)]),
555
- _: 3
556
- }, 8, [
557
- "svgRef",
558
- "backgroundColor",
559
- "color",
560
- "active",
561
- "isCursorPointer"
562
- ])) : D("", !0),
563
- dt.value ? (M(), O("div", {
564
- key: 1,
565
- ref_key: "noTitle",
566
- ref: Ze,
567
- class: "vue-data-ui-no-title-space",
568
- style: "height:36px; width: 100%;background:transparent"
569
- }, null, 512)) : D("", !0),
570
- H.value.style.chart.title.text ? (M(), O("div", {
571
- key: 2,
572
- ref_key: "chartTitle",
573
- ref: Ye,
574
- style: "width:100%;background:transparent;padding-bottom:12px"
575
- }, [(M(), E(ee, {
576
- key: `title_${Qe.value}`,
577
- config: {
578
- title: {
579
- cy: "wheel-title",
580
- ...H.value.style.chart.title
581
- },
582
- subtitle: {
583
- cy: "wheel-subtitle",
584
- ...H.value.style.chart.title.subtitle
585
- }
586
- }
587
- }, null, 8, ["config"]))], 512)) : D("", !0),
588
- H.value.userOptions.show && Ke.value && (I(it) || I(nt)) ? (M(), E(I(Be), {
589
- ref_key: "details",
590
- ref: qe,
591
- key: `user_options_${Je.value}`,
592
- backgroundColor: H.value.style.chart.backgroundColor,
593
- color: H.value.style.chart.color,
594
- isPrinting: I(st),
595
- isImaging: I(ct),
596
- uid: B.value,
597
- hasPdf: H.value.userOptions.buttons.pdf,
598
- hasImg: H.value.userOptions.buttons.img,
599
- hasSvg: H.value.userOptions.buttons.svg,
600
- hasFullscreen: H.value.userOptions.buttons.fullscreen,
601
- hasAltCopy: H.value.userOptions.buttons.altCopy,
602
- hasXls: !1,
603
- isFullscreen: kt.value,
604
- position: H.value.userOptions.position,
605
- titles: { ...H.value.userOptions.buttonTitles },
606
- hasAnnotator: H.value.userOptions.buttons.annotator,
607
- isAnnotation: jt.value,
608
- chartElement: V.value,
609
- callbacks: H.value.userOptions.callbacks,
610
- printScale: H.value.userOptions.print.scale,
611
- isCursorPointer: $e.value,
612
- onToggleFullscreen: At,
613
- onGeneratePdf: I(lt),
614
- onGenerateImage: I(Ht),
615
- onGenerateSvg: I(Vt),
616
- onToggleAnnotator: Mt,
617
- onCopyAlt: Ut,
618
- style: ue({ visibility: I(it) ? I(nt) ? "visible" : "hidden" : "visible" })
619
- }, se({ _: 2 }, [
620
- e.$slots.menuIcon ? {
621
- name: "menuIcon",
622
- fn: L(({ isOpen: t, color: n }) => [F(e.$slots, "menuIcon", j(k({
623
- isOpen: t,
624
- color: n
625
- })), void 0, !0)]),
626
- key: "0"
627
- } : void 0,
628
- e.$slots.optionPdf ? {
629
- name: "optionPdf",
630
- fn: L(() => [F(e.$slots, "optionPdf", {}, void 0, !0)]),
631
- key: "1"
632
- } : void 0,
633
- e.$slots.optionImg ? {
634
- name: "optionImg",
635
- fn: L(() => [F(e.$slots, "optionImg", {}, void 0, !0)]),
636
- key: "2"
637
- } : void 0,
638
- e.$slots.optionSvg ? {
639
- name: "optionSvg",
640
- fn: L(() => [F(e.$slots, "optionSvg", {}, void 0, !0)]),
641
- key: "3"
642
- } : void 0,
643
- e.$slots.optionFullscreen ? {
644
- name: "optionFullscreen",
645
- fn: L(({ toggleFullscreen: t, isFullscreen: n }) => [F(e.$slots, "optionFullscreen", j(k({
646
- toggleFullscreen: t,
647
- isFullscreen: n
648
- })), void 0, !0)]),
649
- key: "4"
650
- } : void 0,
651
- e.$slots.optionAnnotator ? {
652
- name: "optionAnnotator",
653
- fn: L(({ toggleAnnotator: t, isAnnotator: n }) => [F(e.$slots, "optionAnnotator", j(k({
654
- toggleAnnotator: t,
655
- isAnnotator: n
656
- })), void 0, !0)]),
657
- key: "5"
658
- } : void 0,
659
- e.$slots.optionAltCopy ? {
660
- name: "optionAltCopy",
661
- fn: L(({ altCopy: t }) => [F(e.$slots, "optionAltCopy", j(k({ altCopy: t })), void 0, !0)]),
662
- key: "6"
663
- } : void 0,
664
- e.$slots["custom-menu-before"] ? {
665
- name: "custom-menu-before",
666
- fn: L(() => [F(e.$slots, "custom-menu-before", {}, void 0, !0)]),
667
- key: "7"
668
- } : void 0,
669
- e.$slots["custom-menu-after"] ? {
670
- name: "custom-menu-after",
671
- fn: L(() => [F(e.$slots, "custom-menu-after", {}, void 0, !0)]),
672
- key: "8"
673
- } : void 0
674
- ]), 1032, [
675
- "backgroundColor",
676
- "color",
677
- "isPrinting",
678
- "isImaging",
679
- "uid",
680
- "hasPdf",
681
- "hasImg",
682
- "hasSvg",
683
- "hasFullscreen",
684
- "hasAltCopy",
685
- "isFullscreen",
686
- "position",
687
- "titles",
688
- "hasAnnotator",
689
- "isAnnotation",
690
- "chartElement",
691
- "callbacks",
692
- "printScale",
693
- "isCursorPointer",
694
- "onGeneratePdf",
695
- "onGenerateImage",
696
- "onGenerateSvg",
697
- "style"
698
- ])) : D("", !0),
699
- (M(), O("svg", {
700
- ref_key: "svgRef",
701
- ref: at,
702
- xmlns: I(d),
703
- class: A({
704
- "vue-data-ui-fullscreen--on": kt.value,
705
- "vue-data-ui-fulscreen--off": !kt.value,
706
- "vue-ui-wheel-3d-svg": H.value.layout === "3d"
707
- }),
708
- viewBox: H.value.layout === "3d" && !H.value.responsive ? `${X.value?.x - 10} ${X.value?.y ?? 0} ${X.value?.w + 20 ?? Math.max(10, W.value.width)} ${X.value?.h ?? Math.max(10, W.value.height)}` : `0 0 ${Math.max(10, W.value.width)} ${Math.max(10, W.value.height)}`,
709
- style: ue(`max-width:100%;overflow:visible;background:transparent;color:${H.value.style.chart.color}`),
710
- role: "img",
711
- "aria-labelledby": Wt.value,
712
- "aria-describedby": Gt.value
713
- }, [
714
- oe("title", { id: Wt.value }, me(qt.value), 9, xe),
715
- oe("desc", { id: Gt.value }, me(Jt.value), 9, Se),
716
- ce(I(Ve)),
717
- e.$slots["chart-background"] ? (M(), O("foreignObject", {
718
- key: 0,
719
- x: H.value.layout === "3d" && !H.value.responsive ? X.value?.x - 10 : 0,
720
- y: H.value.layout === "3d" && !H.value.responsive ? X.value?.y ?? 0 : 0,
721
- width: H.value.layout === "3d" && !H.value.responsive ? X.value?.w + 20 ?? Math.max(10, W.value.width) : Math.max(10, W.value.width),
722
- height: H.value.layout === "3d" && !H.value.responsive ? X.value?.h ?? Math.max(10, W.value.height) : Math.max(10, W.value.height),
723
- style: { pointerEvents: "none" }
724
- }, [F(e.$slots, "chart-background", {}, void 0, !0)], 8, Ce)) : D("", !0),
725
- H.value.layout === "3d" && St.value ? (M(), O("path", {
726
- key: 1,
727
- class: "vue-ui-wheel-inner-circle",
728
- d: St.value.d,
729
- stroke: H.value.style.chart.layout.innerCircle.stroke,
730
- "stroke-width": H.value.style.chart.layout.innerCircle.strokeWidth,
731
- fill: "none"
732
- }, null, 8, we)) : H.value.style.chart.layout.innerCircle.show ? (M(), O("circle", {
733
- key: 2,
734
- class: "vue-ui-wheel-inner-circle",
735
- cx: K.value.centerX,
736
- cy: K.value.centerY,
737
- r: Math.max(0, K.value.radius * H.value.style.chart.layout.innerCircle.radiusRatio * .8),
738
- stroke: H.value.style.chart.layout.innerCircle.stroke,
739
- "stroke-width": H.value.style.chart.layout.innerCircle.strokeWidth,
740
- fill: "none"
741
- }, null, 8, Te)) : D("", !0),
742
- H.value.layout === "3d" ? (M(), O(w, { key: 3 }, [H.value.style.chart.layout.wheel.ticks.type === "classic" ? (M(), O("g", Ee, [(M(!0), O(w, null, P($.value, (e) => (M(), O("g", null, [(M(!0), O(w, null, P(yt.value || [], (t) => (M(), O("line", {
743
- key: t.i,
744
- x1: t.x1,
745
- y1: t.y1 - e,
746
- x2: t.x2,
747
- y2: t.y2 - e,
748
- stroke: I(c)(t.color, .25 * e / 5),
749
- "stroke-width": H.value.style.chart.layout.wheel.ticks.strokeWidth / 360 * Math.min(W.value.width, W.value.height),
750
- "stroke-linecap": H.value.style.chart.layout.wheel.ticks.rounded ? "round" : "butt",
751
- class: A({
752
- "vue-ui-wheel-tick": !0,
753
- "vue-ui-tick-animated": H.value.style.chart.animation.use && !I(R) && t.i * Q.value <= q.value
754
- })
755
- }, null, 10, De))), 128))]))), 256)), (M(!0), O(w, null, P(yt.value || [], (e) => (M(), O("line", {
756
- key: e.i,
757
- x1: e.x1,
758
- y1: e.y1 - $.value,
759
- x2: e.x2,
760
- y2: e.y2 - $.value,
761
- stroke: e.color,
762
- "stroke-width": H.value.style.chart.layout.wheel.ticks.strokeWidth / 360 * Math.min(W.value.width, W.value.height),
763
- "stroke-linecap": H.value.style.chart.layout.wheel.ticks.rounded ? "round" : "butt",
764
- class: A({
765
- "vue-ui-wheel-tick": !0,
766
- "vue-ui-tick-animated": H.value.style.chart.animation.use && !I(R) && e.i * Q.value <= q.value
767
- })
768
- }, null, 10, Oe))), 128))])) : (M(), O("g", ke, [(M(!0), O(w, null, P($.value, (e) => (M(), O("g", null, [(M(!0), O(w, null, P(Tt.value(-e) || [], (e) => (M(), O("path", {
769
- key: e.i,
770
- d: e.d,
771
- fill: H.value.style.chart.layout.wheel.ticks.inactiveColor,
772
- stroke: H.value.style.chart.layout.wheel.ticks.stroke,
773
- "stroke-width": H.value.style.chart.layout.wheel.ticks.strokeWidth,
774
- "stroke-linecap": "round",
775
- "stroke-linejoin": "round",
776
- class: "vue-ui-wheel-tick"
777
- }, null, 8, Ae))), 128)), (M(!0), O(w, null, P(Tt.value(-e) || [], (t) => (M(), O("path", {
778
- key: t.i,
779
- d: t.d,
780
- fill: I(c)(t.fill, .5 * e / $.value),
781
- stroke: H.value.style.chart.layout.wheel.ticks.stroke,
782
- "stroke-width": H.value.style.chart.layout.wheel.ticks.strokeWidth,
783
- "stroke-linecap": "round",
784
- "stroke-linejoin": "round",
785
- class: A({
786
- "vue-ui-wheel-tick": !0,
787
- "vue-ui-tick-animated-3d": H.value.style.chart.animation.use && !I(R) && t.i * Q.value <= q.value
788
- })
789
- }, null, 10, je))), 128))]))), 256)), oe("g", null, [(M(!0), O(w, null, P(Tt.value(-$.value) || [], (e) => (M(), O("path", {
790
- key: e.i,
791
- d: e.d,
792
- fill: e.fill,
793
- stroke: H.value.style.chart.layout.wheel.ticks.stroke,
794
- "stroke-width": H.value.style.chart.layout.wheel.ticks.strokeWidth,
795
- "stroke-linecap": "round",
796
- "stroke-linejoin": "round",
797
- class: A({
798
- "vue-ui-wheel-tick": !0,
799
- "vue-ui-tick-animated-3d": H.value.style.chart.animation.use && !I(R) && e.i * Q.value <= q.value
800
- })
801
- }, null, 10, Me))), 128))])]))], 64)) : (M(), O(w, { key: 4 }, [H.value.style.chart.layout.wheel.ticks.type === "classic" ? (M(!0), O(w, { key: 0 }, P(Dt.value, (e, t) => (M(), O("line", {
802
- x1: e.x1,
803
- x2: e.x2,
804
- y1: e.y1,
805
- y2: e.y2,
806
- stroke: e.color,
807
- "stroke-width": H.value.style.chart.layout.wheel.ticks.strokeWidth / 360 * Math.min(W.value.width, W.value.height),
808
- "stroke-linecap": H.value.style.chart.layout.wheel.ticks.rounded ? "round" : "butt",
809
- class: A({
810
- "vue-ui-wheel-tick": !0,
811
- "vue-ui-tick-animated": H.value.style.chart.animation.use && !I(R) && t * Q.value <= q.value
812
- })
813
- }, null, 10, Ne))), 256)) : (M(!0), O(w, { key: 1 }, P(Ot.value, (e, t) => (M(), O("path", {
814
- d: e.arcSlice,
815
- fill: e.color,
816
- class: A({
817
- "vue-ui-wheel-tick": !0,
818
- "vue-ui-tick-animated": H.value.style.chart.animation.use && !I(R) && t * Q.value <= q.value
819
- }),
820
- stroke: H.value.style.chart.layout.wheel.ticks.stroke,
821
- "stroke-width": H.value.style.chart.layout.wheel.ticks.strokeWidth
822
- }, null, 10, Pe))), 256))], 64)),
823
- H.value.style.chart.layout.percentage.show ? (M(), O("g", {
824
- key: 5,
825
- role: "status",
826
- "aria-live": "polite",
827
- "aria-label": I(tt) ? "..." : Kt.value
828
- }, [I(tt) ? (M(), O("rect", {
829
- key: 0,
830
- x: K.value.centerX - 40,
831
- y: K.value.centerY - G.value / 2,
832
- width: 80,
833
- height: G.value,
834
- fill: "#6A6A6A80",
835
- rx: "3"
836
- }, null, 8, Ie)) : (M(), O("text", {
837
- key: 1,
838
- "aria-hidden": "true",
839
- x: K.value.centerX + H.value.style.chart.layout.percentage.offsetX,
840
- y: K.value.centerY + G.value / 3 + H.value.style.chart.layout.percentage.offsetY,
841
- "font-size": G.value,
842
- fill: H.value.style.chart.layout.wheel.ticks.gradient.show ? I(r)(H.value.style.chart.layout.wheel.ticks.activeColor, q.value / 100 * (H.value.style.chart.layout.wheel.ticks.gradient.shiftHueIntensity / 100)) : H.value.style.chart.layout.wheel.ticks.activeColor,
843
- "text-anchor": "middle",
844
- "font-weight": H.value.style.chart.layout.percentage.bold ? "bold" : "normal",
845
- style: { "font-variant-numeric": "tabluar-nums" },
846
- stroke: H.value.style.chart.layout.percentage.stroke,
847
- "stroke-width": H.value.style.chart.layout.percentage.strokeWidth,
848
- "stroke-linecap": "round",
849
- "stroke-linejoin": "round",
850
- "paint-order": "stroke fill",
851
- class: A({ "vue-ui-wheel-label": H.value.layout === "3d" })
852
- }, me(Kt.value), 11, Le))], 8, Fe)) : D("", !0),
853
- F(e.$slots, "svg", { svg: {
854
- ...W.value,
855
- isPrintingImg: I(st) || I(ct) || I(zt),
856
- isPrintingSvg: I(Bt)
857
- } }, void 0, !0)
858
- ], 14, be)),
859
- e.$slots.watermark ? (M(), O("div", Re, [F(e.$slots, "watermark", j(k({ isPrinting: I(st) || I(ct) || I(zt) || I(Bt) })), void 0, !0)])) : D("", !0),
860
- e.$slots.source ? (M(), O("div", {
861
- key: 5,
862
- ref_key: "source",
863
- ref: Xe,
864
- dir: "auto"
865
- }, [F(e.$slots, "source", {}, void 0, !0)], 512)) : D("", !0),
866
- F(e.$slots, "skeleton", {}, () => [I(tt) ? (M(), E(_, { key: 0 })) : D("", !0)], !0)
867
- ], 46, ye));
868
- }
869
- }, [["__scopeId", "data-v-8b3cd2bd"]]);
870
- //#endregion
871
- export { ve as n, ze as t };