vue-data-ui 3.15.12 → 3.16.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (218) hide show
  1. package/README.md +132 -59
  2. package/dist/A11yDataTable-KcVAX2cP.js +54 -0
  3. package/dist/{Arrow-DlPyR6HQ.js → Arrow-Bn-9n3bm.js} +1 -1
  4. package/dist/{BaseDraggableDialog-DSpKTn3R.js → BaseDraggableDialog-CIb-iD9g.js} +2 -2
  5. package/dist/{BaseIcon-CNx8Tzl5.js → BaseIcon-Cb3zzG6s.js} +1 -1
  6. package/dist/{BaseLegendToggle-Y61xahI4.js → BaseLegendToggle-BQVIawmA.js} +1 -1
  7. package/dist/{BaseZoomControls-CoFievy9.js → BaseZoomControls-DievbOeJ.js} +2 -2
  8. package/dist/ColorPicker-B0mV4xzu.js +255 -0
  9. package/dist/{DataTable-Bo1pmAqG.js → DataTable-DT2kIdQ6.js} +2 -2
  10. package/dist/Legend-CS7Xo5LK.js +101 -0
  11. package/dist/{NonSvgPenAndPaper-CGk_xThe.js → NonSvgPenAndPaper-VyJFyJ6X.js} +3 -3
  12. package/dist/{PackageVersion-DN9d0ME5.js → PackageVersion-DPO-OOVI.js} +1 -1
  13. package/dist/{PenAndPaper-DWV1FMIi.js → PenAndPaper-Ct3qJ4lA.js} +109 -101
  14. package/dist/{Shape-CSyWYgXc.js → Shape-BKRUOeKk.js} +1 -1
  15. package/dist/{Slicer-DZJA9IG-.js → Slicer-DUycDH_N.js} +2 -2
  16. package/dist/{SlicerPreview-I2J0UUF_.js → SlicerPreview-DTjwV0iY.js} +2 -2
  17. package/dist/{SparkTooltip-BiseJed3.js → SparkTooltip-BorBpltj.js} +1 -1
  18. package/dist/{Title-BfyrP-jp.js → Title-BeMKE1cj.js} +1 -1
  19. package/dist/{Tooltip-DL3QgjZf.js → Tooltip-Bf-kM3_A.js} +86 -68
  20. package/dist/{UserOptions-CrLqEimB.js → UserOptions-rW2fRf3V.js} +228 -222
  21. package/dist/components/arrow.js +1 -1
  22. package/dist/components/vue-ui-3d-bar.js +1 -1
  23. package/dist/components/vue-ui-accordion.js +1 -1
  24. package/dist/components/vue-ui-age-pyramid.js +1 -1
  25. package/dist/components/vue-ui-annotator.js +1 -1
  26. package/dist/components/vue-ui-bullet.js +1 -1
  27. package/dist/components/vue-ui-bump.js +1 -1
  28. package/dist/components/vue-ui-candlestick.js +1 -1
  29. package/dist/components/vue-ui-carousel-table.js +1 -1
  30. package/dist/components/vue-ui-chestnut.js +1 -1
  31. package/dist/components/vue-ui-chord.js +1 -1
  32. package/dist/components/vue-ui-circle-pack.js +1 -1
  33. package/dist/components/vue-ui-cursor.js +1 -1
  34. package/dist/components/vue-ui-dag.js +1 -1
  35. package/dist/components/vue-ui-dashboard.js +1 -1
  36. package/dist/components/vue-ui-digits.js +1 -1
  37. package/dist/components/vue-ui-donut-evolution.js +1 -1
  38. package/dist/components/vue-ui-donut.js +1 -1
  39. package/dist/components/vue-ui-dumbbell.js +1 -1
  40. package/dist/components/vue-ui-flow.js +1 -1
  41. package/dist/components/vue-ui-funnel.js +1 -1
  42. package/dist/components/vue-ui-galaxy.js +1 -1
  43. package/dist/components/vue-ui-gauge.js +1 -1
  44. package/dist/components/vue-ui-geo.js +1 -1
  45. package/dist/components/vue-ui-gizmo.js +1 -1
  46. package/dist/components/vue-ui-heatmap.js +1 -1
  47. package/dist/components/vue-ui-history-plot.js +1 -1
  48. package/dist/components/vue-ui-horizontal-bar.js +1 -1
  49. package/dist/components/vue-ui-icon.js +1 -1
  50. package/dist/components/vue-ui-kpi.js +1 -1
  51. package/dist/components/vue-ui-mini-loader.js +1 -1
  52. package/dist/components/vue-ui-molecule.js +1 -1
  53. package/dist/components/vue-ui-mood-radar.js +1 -1
  54. package/dist/components/vue-ui-nested-donuts.js +1 -1
  55. package/dist/components/vue-ui-onion.js +1 -1
  56. package/dist/components/vue-ui-parallel-coordinate-plot.js +1 -1
  57. package/dist/components/vue-ui-quadrant.js +1 -1
  58. package/dist/components/vue-ui-quick-chart.js +1 -1
  59. package/dist/components/vue-ui-radar.js +1 -1
  60. package/dist/components/vue-ui-rating.js +1 -1
  61. package/dist/components/vue-ui-relation-circle.js +1 -1
  62. package/dist/components/vue-ui-ridgeline.js +1 -1
  63. package/dist/components/vue-ui-rings.js +1 -1
  64. package/dist/components/vue-ui-scatter.js +1 -1
  65. package/dist/components/vue-ui-skeleton.js +1 -1
  66. package/dist/components/vue-ui-smiley.js +1 -1
  67. package/dist/components/vue-ui-spark-trend.js +1 -1
  68. package/dist/components/vue-ui-sparkbar.js +1 -1
  69. package/dist/components/vue-ui-sparkgauge.js +1 -1
  70. package/dist/components/vue-ui-sparkhistogram.js +1 -1
  71. package/dist/components/vue-ui-sparkline.js +1 -1
  72. package/dist/components/vue-ui-sparkstackbar.js +1 -1
  73. package/dist/components/vue-ui-stackbar.js +1 -1
  74. package/dist/components/vue-ui-stackline.js +1 -1
  75. package/dist/components/vue-ui-strip-plot.js +1 -1
  76. package/dist/components/vue-ui-table-heatmap.js +1 -1
  77. package/dist/components/vue-ui-table-sparkline.js +1 -1
  78. package/dist/components/vue-ui-table.js +1 -1
  79. package/dist/components/vue-ui-thermometer.js +1 -1
  80. package/dist/components/vue-ui-timer.js +1 -1
  81. package/dist/components/vue-ui-tiremarks.js +1 -1
  82. package/dist/components/vue-ui-treemap.js +1 -1
  83. package/dist/components/vue-ui-vertical-bar.js +1 -1
  84. package/dist/components/vue-ui-waffle.js +1 -1
  85. package/dist/components/vue-ui-wheel.js +1 -1
  86. package/dist/components/vue-ui-word-cloud.js +1 -1
  87. package/dist/components/vue-ui-world.js +1 -1
  88. package/dist/components/vue-ui-xy-canvas.js +1 -1
  89. package/dist/components/vue-ui-xy.js +1 -1
  90. package/dist/{dom-to-png-BAqzNjb1.js → dom-to-png-CtxhhdWb.js} +1 -1
  91. package/dist/{exposedLib-H4lmBl1t.js → exposedLib-DlqmhBx3.js} +1 -1
  92. package/dist/{img-BYYzY_QU.js → img-LXxMLmCg.js} +1 -1
  93. package/dist/{labelUtils-CTXUc3V9.js → labelUtils-CqTHa20R.js} +1 -1
  94. package/dist/{lib-GwPnJSrY.js → lib-DBptbyyI.js} +106 -84
  95. package/dist/{pdf-z-YiJeJQ.js → pdf-B4tTdfvl.js} +1 -1
  96. package/dist/style.css +1 -1
  97. package/dist/types/vue-data-ui.d.ts +59 -0
  98. package/dist/{useAutoSizeLabelsInsideViewbox-80fzdfxt.js → useAutoSizeLabelsInsideViewbox-DX7LdvFX.js} +1 -1
  99. package/dist/{useConfig-CIgyKZ6R.js → useConfig-DO94Aj5s.js} +953 -700
  100. package/dist/{useNestedProp-BBT0mbHh.js → useNestedProp-Bf5XFbs8.js} +1 -1
  101. package/dist/{useObjectBindings-BlXBVtRa.js → useObjectBindings-DQ8g8Jwi.js} +1 -1
  102. package/dist/usePrefersMotion-CUKm8_t8.js +15 -0
  103. package/dist/{usePrinter-DiK5R6k-.js → usePrinter-CEpYU3r5.js} +2 -2
  104. package/dist/utils.js +3 -3
  105. package/dist/{vue-data-ui-C2kPofmi.js → vue-data-ui-DXGkXRnC.js} +68 -68
  106. package/dist/vue-data-ui.js +72 -72
  107. package/dist/vue-ui-3d-bar-BaFpQnd5.js +1597 -0
  108. package/dist/{vue-ui-accordion-BGHTqIBt.js → vue-ui-accordion-nvggWcGN.js} +4 -4
  109. package/dist/vue-ui-age-pyramid-CRM498Pc.js +1069 -0
  110. package/dist/{vue-ui-annotator-B1GWVtPp.js → vue-ui-annotator-CkPi9moo.js} +7 -7
  111. package/dist/{vue-ui-bullet-DPoGGtaG.js → vue-ui-bullet-BBiwof3c.js} +158 -150
  112. package/dist/vue-ui-bump-Brxpu4xV.js +1147 -0
  113. package/dist/vue-ui-candlestick-DAnZv77-.js +1587 -0
  114. package/dist/{vue-ui-carousel-table-CmiHTJ8E.js → vue-ui-carousel-table-BHRZBYY0.js} +168 -160
  115. package/dist/vue-ui-chestnut-CbrYnRgm.js +1812 -0
  116. package/dist/vue-ui-chord-CaX_IUVs.js +1326 -0
  117. package/dist/vue-ui-circle-pack-CR3h53sc.js +988 -0
  118. package/dist/{vue-ui-cursor-B4mHR7QC.js → vue-ui-cursor-Cjfazw7Z.js} +4 -4
  119. package/dist/vue-ui-dag-B9vH3c66.js +3047 -0
  120. package/dist/{vue-ui-dashboard-Bo5FX73U.js → vue-ui-dashboard-DWll05qs.js} +70 -70
  121. package/dist/{vue-ui-digits-mpo2IcM5.js → vue-ui-digits-DcM67rMx.js} +76 -66
  122. package/dist/vue-ui-donut-Be5G38P5.js +2229 -0
  123. package/dist/vue-ui-donut-evolution-BLSesj3c.js +1358 -0
  124. package/dist/vue-ui-dumbbell-DIMiCY4r.js +1380 -0
  125. package/dist/vue-ui-flow-zvZylhgr.js +1202 -0
  126. package/dist/{vue-ui-funnel-BRkaEkBb.js → vue-ui-funnel-CSri-oWm.js} +7 -7
  127. package/dist/vue-ui-galaxy-CGykxsAI.js +1012 -0
  128. package/dist/{vue-ui-gauge-J2VYHsQe.js → vue-ui-gauge-D1MNB9Jq.js} +8 -8
  129. package/dist/vue-ui-geo-DdJDGhG2.js +1437 -0
  130. package/dist/{vue-ui-gizmo-DEec3-v9.js → vue-ui-gizmo-BZYRHGFm.js} +77 -68
  131. package/dist/vue-ui-heatmap-CryOx6XK.js +1500 -0
  132. package/dist/vue-ui-history-plot-C85iw9Kl.js +1449 -0
  133. package/dist/vue-ui-horizontal-bar-BoBZOybC.js +1637 -0
  134. package/dist/vue-ui-kpi-DHrolXw6.js +109 -0
  135. package/dist/{vue-ui-mini-loader-CoOHvZUk.js → vue-ui-mini-loader-Bc3fEQ9j.js} +3 -3
  136. package/dist/{vue-ui-molecule-Chq1qWDK.js → vue-ui-molecule-DJ_BQ4DK.js} +6 -6
  137. package/dist/vue-ui-mood-radar-CBE02TpQ.js +1086 -0
  138. package/dist/vue-ui-nested-donuts-YTFtb4CL.js +1595 -0
  139. package/dist/vue-ui-onion-B9l81-PS.js +1124 -0
  140. package/dist/vue-ui-parallel-coordinate-plot-C1e_rs8J.js +1252 -0
  141. package/dist/vue-ui-quadrant-C1qsLCRn.js +1759 -0
  142. package/dist/vue-ui-quick-chart-DFoz3WiA.js +2216 -0
  143. package/dist/vue-ui-radar-Cmo3p-UA.js +1139 -0
  144. package/dist/{vue-ui-rating-zV58MDQh.js → vue-ui-rating-BAHhYt_A.js} +3 -3
  145. package/dist/vue-ui-relation-circle-BqwznVwf.js +782 -0
  146. package/dist/vue-ui-ridgeline-CDk9eXJq.js +1473 -0
  147. package/dist/vue-ui-rings-BRkGoQdL.js +1156 -0
  148. package/dist/vue-ui-scatter-BxDtWASQ.js +1831 -0
  149. package/dist/{vue-ui-skeleton-CbqNz9IE.js → vue-ui-skeleton-D6kTb9aO.js} +4 -4
  150. package/dist/{vue-ui-smiley-BK5EKp9u.js → vue-ui-smiley-CzVaLlpB.js} +3 -3
  151. package/dist/vue-ui-spark-trend-D8Mf2A1w.js +378 -0
  152. package/dist/{vue-ui-sparkbar-DUDWvTo-.js → vue-ui-sparkbar-BbYj56c3.js} +86 -84
  153. package/dist/vue-ui-sparkgauge-DXzOSLRb.js +256 -0
  154. package/dist/vue-ui-sparkhistogram-DMfSx1iH.js +474 -0
  155. package/dist/vue-ui-sparkline-D-rQ9PsC.js +1327 -0
  156. package/dist/vue-ui-sparkstackbar-DK5n8IKP.js +621 -0
  157. package/dist/vue-ui-stackbar-BHthy6jf.js +2070 -0
  158. package/dist/vue-ui-stackline-C6-WNpKD.js +2164 -0
  159. package/dist/vue-ui-strip-plot-CHu-1ilI.js +1183 -0
  160. package/dist/{vue-ui-table-BHuXI4Eq.js → vue-ui-table-DW9JGsLq.js} +6 -6
  161. package/dist/{vue-ui-table-heatmap-y88sBfu3.js → vue-ui-table-heatmap-LYqoBit9.js} +6 -6
  162. package/dist/{vue-ui-table-sparkline-ClpLLKi2.js → vue-ui-table-sparkline-CXK1dFr-.js} +5 -5
  163. package/dist/{vue-ui-thermometer-sjruUGQx.js → vue-ui-thermometer-BN8tflOz.js} +272 -256
  164. package/dist/{vue-ui-timer-CgdgMKIc.js → vue-ui-timer-DGT0UBOF.js} +6 -6
  165. package/dist/{vue-ui-tiremarks-UBDpAIVr.js → vue-ui-tiremarks-BZ-osQqY.js} +204 -191
  166. package/dist/vue-ui-treemap-98KaVRyd.js +1723 -0
  167. package/dist/vue-ui-waffle-Cb7oJnIc.js +1321 -0
  168. package/dist/vue-ui-wheel-sfew1fjw.js +738 -0
  169. package/dist/vue-ui-word-cloud-vq1t9JHr.js +1548 -0
  170. package/dist/{vue-ui-world-D-3wgoTn.js → vue-ui-world-CN0f6elD.js} +8 -8
  171. package/dist/vue-ui-xy-BdzEiImZ.js +3877 -0
  172. package/dist/vue-ui-xy-canvas-CWQzUQzY.js +1810 -0
  173. package/package.json +2 -2
  174. package/dist/ColorPicker-j0ySewhI.js +0 -244
  175. package/dist/Legend-1LMMsPxL.js +0 -90
  176. package/dist/vue-ui-3d-bar-BhNgFaJA.js +0 -1484
  177. package/dist/vue-ui-age-pyramid-CuYRf5v-.js +0 -997
  178. package/dist/vue-ui-bump-C_fKharc.js +0 -1059
  179. package/dist/vue-ui-candlestick-BY-_E7eZ.js +0 -1487
  180. package/dist/vue-ui-chestnut-C-bQYaNI.js +0 -1557
  181. package/dist/vue-ui-chord-uQYQgyGM.js +0 -1220
  182. package/dist/vue-ui-circle-pack-CdbDcuDw.js +0 -907
  183. package/dist/vue-ui-dag-DsHUvjvm.js +0 -2885
  184. package/dist/vue-ui-donut-CzCgCVsx.js +0 -2139
  185. package/dist/vue-ui-donut-evolution-C_ck_TOR.js +0 -1297
  186. package/dist/vue-ui-dumbbell-CVSA90b2.js +0 -1293
  187. package/dist/vue-ui-flow-CsbSaFnu.js +0 -1075
  188. package/dist/vue-ui-galaxy-DWKHDciu.js +0 -914
  189. package/dist/vue-ui-geo-DykhEWVq.js +0 -1331
  190. package/dist/vue-ui-heatmap-BEDirv8T.js +0 -1334
  191. package/dist/vue-ui-history-plot-Bs96PebH.js +0 -1292
  192. package/dist/vue-ui-horizontal-bar-ClQcB9nL.js +0 -1522
  193. package/dist/vue-ui-kpi-DlUEHKuw.js +0 -101
  194. package/dist/vue-ui-mood-radar-A2LBLgUi.js +0 -967
  195. package/dist/vue-ui-nested-donuts-DFX251aT.js +0 -1513
  196. package/dist/vue-ui-onion-CW0YO9Ro.js +0 -1045
  197. package/dist/vue-ui-parallel-coordinate-plot-UFg10bHP.js +0 -1134
  198. package/dist/vue-ui-quadrant-C1pLW2zA.js +0 -1647
  199. package/dist/vue-ui-quick-chart-FaxttnJY.js +0 -2030
  200. package/dist/vue-ui-radar-DE70LPBZ.js +0 -1067
  201. package/dist/vue-ui-relation-circle-iuRXIyRU.js +0 -704
  202. package/dist/vue-ui-ridgeline-CwvDh5pG.js +0 -1385
  203. package/dist/vue-ui-rings-80ZUki42.js +0 -1083
  204. package/dist/vue-ui-scatter-FdAAYJOK.js +0 -1670
  205. package/dist/vue-ui-spark-trend-C68p8-Xp.js +0 -349
  206. package/dist/vue-ui-sparkgauge-DdRtHQDe.js +0 -245
  207. package/dist/vue-ui-sparkhistogram-C9DvzQae.js +0 -396
  208. package/dist/vue-ui-sparkline-B2RDrdiR.js +0 -1273
  209. package/dist/vue-ui-sparkstackbar-BsIOHUE5.js +0 -475
  210. package/dist/vue-ui-stackbar-BZl0kEkb.js +0 -2001
  211. package/dist/vue-ui-stackline-2VKxwFei.js +0 -2099
  212. package/dist/vue-ui-strip-plot-B9nBSRyY.js +0 -1080
  213. package/dist/vue-ui-treemap-BS5EilZf.js +0 -1645
  214. package/dist/vue-ui-waffle-CbX5K9Q2.js +0 -1211
  215. package/dist/vue-ui-wheel-BIJ09H5D.js +0 -723
  216. package/dist/vue-ui-word-cloud-DJmJ-oYT.js +0 -1466
  217. package/dist/vue-ui-xy-canvas-4auyhlTr.js +0 -1717
  218. package/dist/vue-ui-xy-f67V1xjd.js +0 -3713
@@ -1,723 +0,0 @@
1
- import { useCssVars as Xt, defineAsyncComponent as we, computed as y, ref as C, toRefs as Nt, watch as Ve, shallowRef as Ge, onMounted as Ut, onBeforeUnmount as Lt, openBlock as s, createElementBlock as n, unref as c, normalizeStyle as Ce, normalizeClass as D, createBlock as re, withCtx as I, renderSlot as p, normalizeProps as _, guardReactiveProps as R, createCommentVNode as z, createSlots as jt, createVNode as Bt, Fragment as P, renderList as F, createElementVNode as Et, toDisplayString as Yt, nextTick as Vt } from "vue";
2
- import { j as Gt, t as He, o as Ht, q as qt, v as Q, a3 as Zt, X as Kt, x as qe, k as Jt, K as Ze, l as Qt } from "./lib-GwPnJSrY.js";
3
- import { t as ea, u as ta } from "./useResponsive-DfdjqQps.js";
4
- import { u as aa } from "./useConfig-CIgyKZ6R.js";
5
- import { u as la, B as oa } from "./BaseScanner-BhhkKVoj.js";
6
- import { u as sa } from "./usePrinter-DiK5R6k-.js";
7
- import { u as na } from "./useSvgExport-ByUukOZt.js";
8
- import { u as be } from "./useNestedProp-BBT0mbHh.js";
9
- import { u as ua } from "./useThemeCheck-D1ZYXUwG.js";
10
- import { u as ia } from "./useUserOptionState-BIvW1Kz7.js";
11
- import { u as ra } from "./useChartAccessibility-9icAAmYg.js";
12
- import ca from "./img-BYYzY_QU.js";
13
- import ha from "./Title-BfyrP-jp.js";
14
- import va from "./vue_ui_wheel-LqBz3lv4.js";
15
- import { _ as da } from "./_plugin-vue_export-helper-CHgC5LLL.js";
16
- const ya = ["id"], ka = ["xmlns", "viewBox"], fa = ["x", "y", "width", "height"], ga = ["d", "stroke", "stroke-width"], pa = ["cx", "cy", "r", "stroke", "stroke-width"], ma = { key: 0 }, wa = ["x1", "y1", "x2", "y2", "stroke", "stroke-width", "stroke-linecap"], Ca = ["x1", "y1", "x2", "y2", "stroke", "stroke-width", "stroke-linecap"], ba = { key: 1 }, xa = ["d", "fill", "stroke", "stroke-width"], Ma = ["d", "fill", "stroke", "stroke-width"], $a = ["d", "fill", "stroke", "stroke-width"], Aa = ["x1", "x2", "y1", "y2", "stroke", "stroke-width", "stroke-linecap"], Sa = ["d", "fill", "stroke", "stroke-width"], Ia = { key: 5 }, Pa = ["x", "y", "height"], Oa = ["x", "y", "font-size", "fill", "font-weight", "stroke", "stroke-width"], _a = {
17
- key: 4,
18
- class: "vue-data-ui-watermark"
19
- }, Ra = {
20
- __name: "vue-ui-wheel",
21
- props: {
22
- config: {
23
- type: Object,
24
- default() {
25
- return {};
26
- }
27
- },
28
- dataset: {
29
- type: Object,
30
- default() {
31
- return {};
32
- }
33
- }
34
- },
35
- emits: ["copyAlt"],
36
- setup(Ke, { expose: Je, emit: Qe }) {
37
- Xt((t) => ({
38
- d91dc42a: gt.value,
39
- v6c92ce11: pt.value,
40
- v6c92b0a4: mt.value
41
- }));
42
- const et = we(() => import("./PenAndPaper-DWV1FMIi.js")), tt = we(() => import("./UserOptions-CrLqEimB.js")), at = we(() => import("./PackageVersion-DN9d0ME5.js")), { vue_ui_wheel: lt } = aa(), { isThemeValid: ot, warnInvalidTheme: st } = ua(), T = Ke, nt = Qe, ut = y(() => !!T.dataset && Object.keys(T.dataset).length), ce = C(Gt()), it = C(null), xe = C(0), L = C(null), Me = C(null), $e = C(null), Ae = C(null), Se = C(0), ee = C(!1), te = C(!1), e = C(de()), Ie = y(() => e.value.userOptions.useCursorPointer), rt = y(() => He({
43
- defaultConfig: {
44
- userOptions: { show: !1 },
45
- style: {
46
- chart: {
47
- backgroundColor: "#99999930",
48
- animation: { use: !1 },
49
- layout: {
50
- wheel: {
51
- ticks: {
52
- activeColor: "#6A6A6A80",
53
- inactiveColor: "#CACACA80"
54
- }
55
- },
56
- innerCircle: {
57
- stroke: "#CACACA80"
58
- }
59
- }
60
- }
61
- }
62
- },
63
- userConfig: e.value.skeletonConfig ?? {}
64
- })), { loading: Pe, FINAL_DATASET: V } = la({
65
- ...Nt(T),
66
- FINAL_CONFIG: e,
67
- prepareConfig: de,
68
- skeletonDataset: T.config?.skeletonDataset ?? { percentage: 50 },
69
- skeletonConfig: He({
70
- defaultConfig: e.value,
71
- userConfig: rt.value
72
- })
73
- }), { userOptionsVisible: he, setUserOptionsVisibility: Oe, keepUserOptionState: _e } = ia({ config: e.value }), { svgRef: ve } = ra({ config: e.value.style.chart.title });
74
- function de() {
75
- const t = be({
76
- userConfig: T.config,
77
- defaultConfig: lt
78
- }), o = t.theme;
79
- if (!o) return t;
80
- if (!ot.value(t))
81
- return st(t), t;
82
- const a = be({
83
- userConfig: va[o] || T.config,
84
- defaultConfig: t
85
- });
86
- return be({
87
- userConfig: T.config,
88
- defaultConfig: a
89
- });
90
- }
91
- Ve(() => T.config, (t) => {
92
- e.value = de(), he.value = !e.value.userOptions.showOnChartHover, We(), Se.value += 1;
93
- }, { deep: !0 });
94
- const { isPrinting: ye, isImaging: ke, generatePdf: Re, generateImage: ze } = sa({
95
- elementId: ce.value,
96
- fileName: e.value.style.chart.title.text || "vue-ui-wheel",
97
- options: e.value.userOptions.print
98
- }), ct = y(() => e.value.userOptions.show && !e.value.style.chart.title.text), u = C({
99
- size: 360,
100
- height: 360,
101
- width: 360
102
- }), G = C(e.value.style.chart.layout.percentage.fontSize), r = y(() => ({
103
- radius: Math.min(u.value.width, u.value.height) * 0.9 / 2 * e.value.style.chart.layout.wheel.radiusRatio,
104
- centerX: u.value.width / 2,
105
- centerY: u.value.height / 2
106
- }));
107
- function Te(t, o = 1) {
108
- return {
109
- x: r.value.centerX + r.value.radius * Math.cos(29.85 + t * Math.PI / 180) * o,
110
- y: r.value.centerY + r.value.radius * Math.sin(29.85 + t * Math.PI / 180) * o
111
- };
112
- }
113
- const d = C(e.value.style.chart.animation.use ? 0 : V.value.percentage || 0);
114
- Ve(() => V.value, (t) => {
115
- e.value.style.chart.animation.use ? Ue(t.percentage) : d.value = t.percentage || 0;
116
- }, { deep: !0 });
117
- const X = Ge(null), B = Ge(null);
118
- Ut(() => {
119
- We();
120
- });
121
- const ht = y(() => !!e.value.debug);
122
- function We() {
123
- if (Ht(T.dataset) && qt({
124
- componentName: "VueUiWheel",
125
- type: "dataset",
126
- debug: ht.value
127
- }), e.value.responsive) {
128
- const t = ea(() => {
129
- const { width: o, height: a } = ta({
130
- chart: L.value,
131
- title: e.value.style.chart.title.text ? Me.value : null,
132
- source: $e.value,
133
- noTitle: Ae.value
134
- });
135
- requestAnimationFrame(() => {
136
- u.value.width = o, u.value.height = a, G.value = e.value.style.chart.layout.percentage.fontSize / 360 * Math.min(o, a);
137
- });
138
- });
139
- X.value && (B.value && X.value.unobserve(B.value), X.value.disconnect()), X.value = new ResizeObserver(t), B.value = L.value.parentNode, X.value.observe(B.value);
140
- }
141
- Ue(V.value.percentage || 0);
142
- }
143
- Lt(() => {
144
- X.value && (B.value && X.value.unobserve(B.value), X.value.disconnect());
145
- });
146
- function ae([t, o, a], l) {
147
- const i = Math.cos(l), v = Math.sin(l);
148
- return [t, o * i - a * v, o * v + a * i];
149
- }
150
- function le([t, o, a], l) {
151
- const i = l / (l - a);
152
- return [t * i, o * i, a, i];
153
- }
154
- function De(t, o) {
155
- 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), k = 1 - Math.min(1, Math.max(0, e.value.style.chart.layout.wheel.ticks.shadeColorRatio3d)) * o, f = Math.max(0, Math.min(255, Math.round(l * k))), M = Math.max(0, Math.min(255, Math.round(i * k))), $ = Math.max(0, Math.min(255, Math.round(v * k)));
156
- return `#${f.toString(16).padStart(2, "0")}${M.toString(16).padStart(2, "0")}${$.toString(16).padStart(2, "0")}`;
157
- }
158
- function vt({
159
- cx: t,
160
- cy: o,
161
- radius: a,
162
- innerRatio: l = 0.8,
163
- count: i = 120,
164
- startDeg: v = 0,
165
- axDeg: b = 50,
166
- f: k = 520,
167
- baseStroke: f = 5,
168
- activeColor: M,
169
- inactiveColor: $,
170
- getActive: S
171
- }) {
172
- const h = b * Math.PI / 180, m = a, A = a * l, x = [];
173
- for (let w = 0; w < i; w += 1) {
174
- const g = (w / i * 360 + v) * Math.PI / 180, W = t + m * Math.cos(g), Y = o + m * Math.sin(g), j = t + A * Math.cos(g), H = o + A * Math.sin(g), q = [W - t, Y - o, 0], Z = [j - t, H - o, 0], [ue, Ye, K] = ae(q, h), [pe, me, J] = ae(Z, h), [ie, $t, , At] = le([ue, Ye, K], k), [St, It] = le([pe, me, J], k), Pt = t + ie, Ot = o + $t, _t = t + St, Rt = o + It, zt = (Math.max(K, J) - -m * Math.sin(h)) / (2 * m * Math.sin(h) || 1), Tt = S ? S(w) : !0, Wt = e.value.style.chart.layout.wheel.ticks.gradient.show ? Q(M, w * O.value / U.value * (e.value.style.chart.layout.wheel.ticks.gradient.shiftHueIntensity / 100)) : M, Dt = De(Tt ? Wt : $, zt), Ft = Math.max(1.25, f * At * (Math.min(u.value.width, u.value.height) / 360));
175
- x.push({ i: w, x1: Pt, y1: Ot, x2: _t, y2: Rt, stroke: Ft, color: Dt, z: Math.max(K, J) });
176
- }
177
- return x.sort((w, g) => w.z - g.z), x;
178
- }
179
- const Fe = y(() => {
180
- if (!e.value.layout === "3d") return null;
181
- const t = U.value, o = e.value.style.chart.layout.wheel.ticks.gradient.show ? Q(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;
182
- return vt({
183
- cx: r.value.centerX,
184
- cy: r.value.centerY,
185
- radius: r.value.radius,
186
- innerRatio: e.value.style.chart.layout.wheel.ticks.sizeRatio,
187
- count: t,
188
- startDeg: -90,
189
- axDeg: e.value.style.chart.layout.wheel.tiltAngle3d,
190
- f: Math.min(u.value.width, u.value.height) * 1.45,
191
- baseStroke: l,
192
- activeColor: o,
193
- inactiveColor: a,
194
- getActive: (i) => d.value > i * O.value
195
- });
196
- });
197
- function Xe({ cx: t, cy: o, r: a, count: l = 180, startDeg: i = -90, axDeg: v = 50, f: b }) {
198
- const k = v * Math.PI / 180, f = [];
199
- let M = 0;
200
- for (let h = 0; h < l; h += 1) {
201
- const m = (h / l * 360 + i) * Math.PI / 180, A = [a * Math.cos(m), a * Math.sin(m), 0], [x, w, g] = ae(A, k), [W, Y, , j] = le([x, w, g], b);
202
- M += j, f.push([t + W, o + Y]);
203
- }
204
- let $ = `M ${f[0][0]} ${f[0][1]}`;
205
- for (let h = 1; h < f.length; h += 1)
206
- $ += ` L ${f[h][0]} ${f[h][1]}`;
207
- $ += " Z";
208
- const S = M / l;
209
- return { d: $, avgScale: S, pts: f };
210
- }
211
- const N = y(() => {
212
- if (e.value.layout !== "3d") return null;
213
- const t = Math.min(u.value.width, u.value.height) * 1.45, o = e.value.style.chart.layout.wheel.tiltAngle3d, a = r.value.radius, { pts: l, avgScale: i } = (() => {
214
- const A = a, x = o, { avgScale: w, pts: g } = Xe({
215
- cx: r.value.centerX,
216
- cy: r.value.centerY,
217
- r: A,
218
- startDeg: -90,
219
- axDeg: x,
220
- f: t
221
- });
222
- return { pts: g, avgScale: w };
223
- })();
224
- let v = 1 / 0, b = 1 / 0, k = -1 / 0, f = -1 / 0;
225
- for (const [A, x] of l)
226
- A < v && (v = A), x < b && (b = x), A > k && (k = A), x > f && (f = x);
227
- const M = e.value.style.chart.layout.wheel.ticks.strokeWidth / 360 * Math.min(u.value.width, u.value.height), $ = e.value.style.chart.layout.innerCircle.strokeWidth || 0, S = 0.5 * Math.max(M, $ * (i || 1)), h = Math.max(0, Number(e.value.style.chart.layout.wheel.ticks.depth3d) || 0), m = S;
228
- return {
229
- x: v - m,
230
- y: b - h - m,
231
- w: k - v + 2 * m,
232
- h: f - (b - h) + 2 * m
233
- };
234
- });
235
- function dt(t) {
236
- const o = Math.min(u.value.width, u.value.height) * 1.45, { d: a, avgScale: l } = Xe({
237
- cx: r.value.centerX,
238
- cy: r.value.centerY,
239
- r: t,
240
- startDeg: -90,
241
- axDeg: e.value.style.chart.layout.wheel.tiltAngle3d,
242
- f: o
243
- }), v = (e.value.style.chart.layout.innerCircle.strokeWidth || 1) * l;
244
- return {
245
- d: a,
246
- stroke: e.value.style.chart.layout.innerCircle.stroke,
247
- strokeWidth: v
248
- };
249
- }
250
- const Ne = y(() => dt(Math.max(0, r.value.radius * 0.8 * e.value.style.chart.layout.innerCircle.radiusRatio)));
251
- function oe({ cx: t, cy: o, r: a, aRad: l, ax: i, f: v }) {
252
- const b = [a * Math.cos(l), a * Math.sin(l), 0], [k, f, M] = ae(b, i), [$, S, , h] = le([k, f, M], v);
253
- return { x: t + $, y: o + S, z: M, s: h };
254
- }
255
- function yt({
256
- cx: t,
257
- cy: o,
258
- radius: a,
259
- innerRatio: l = 0.8,
260
- count: i = 120,
261
- startDeg: v = -87,
262
- axDeg: b = 45,
263
- f: k = 600,
264
- activeColor: f,
265
- inactiveColor: M,
266
- getActive: $,
267
- Y: S = 0
268
- }) {
269
- const h = b * Math.PI / 180, m = a, A = a * l, x = 2 * Math.PI / i, w = [];
270
- for (let g = 0; g < i; g += 1) {
271
- const W = v * Math.PI / 180 + x * g, Y = W + x * Math.min(1, e.value.style.chart.layout.wheel.ticks.spacingRatio3d), j = oe({ cx: t, cy: o + S, r: m, aRad: W, ax: h, f: k }), H = oe({ cx: t, cy: o + S, r: m, aRad: Y, ax: h, f: k }), q = oe({ cx: t, cy: o + S, r: A, aRad: Y, ax: h, f: k }), Z = oe({ cx: t, cy: o + S, r: A, aRad: W, ax: h, f: k }), ue = (j.z + H.z + Z.z + q.z) / 4, K = ($ ? $(g) : !0) ? e.value.style.chart.layout.wheel.ticks.gradient.show ? Q(
272
- e.value.style.chart.layout.wheel.ticks.activeColor,
273
- g * (100 / i) / 100 * (e.value.style.chart.layout.wheel.ticks.gradient.shiftHueIntensity / 100)
274
- ) : f : M, pe = (() => {
275
- const ie = m * Math.sin(h) || 1;
276
- return (ue - -ie) / (2 * ie);
277
- })(), me = De(K, pe), J = `M ${j.x} ${j.y} L ${H.x} ${H.y} L ${q.x} ${q.y} L ${Z.x} ${Z.y} Z`;
278
- w.push({ i: g, d: J, fill: me, z: ue });
279
- }
280
- return w.sort((g, W) => g.z - W.z), w;
281
- }
282
- const fe = y(() => {
283
- if (e.value.layout !== "3d") return null;
284
- const t = U.value;
285
- return (o) => yt({
286
- cx: r.value.centerX,
287
- cy: r.value.centerY,
288
- radius: r.value.radius,
289
- innerRatio: e.value.style.chart.layout.wheel.ticks.sizeRatio,
290
- count: t,
291
- startDeg: -90,
292
- axDeg: e.value.style.chart.layout.wheel.tiltAngle3d,
293
- f: Math.min(u.value.width, u.value.height) * 1.45,
294
- activeColor: e.value.style.chart.layout.wheel.ticks.activeColor,
295
- inactiveColor: e.value.style.chart.layout.wheel.ticks.inactiveColor,
296
- getActive: (a) => d.value > a * (100 / t),
297
- Y: o
298
- });
299
- });
300
- function Ue(t) {
301
- let o = e.value.style.chart.animation.speed;
302
- const a = Math.abs(t - d.value) / (o * 120);
303
- function l() {
304
- 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);
305
- }
306
- l();
307
- }
308
- const U = y(() => (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)))), O = y(() => 100 / U.value), Le = y(() => {
309
- const t = [];
310
- for (let o = 0; o < U.value; o += 1) {
311
- const a = d.value > o * O.value ? e.value.style.chart.layout.wheel.ticks.activeColor : e.value.style.chart.layout.wheel.ticks.inactiveColor, { x: l, y: i } = Te(u.value.size / U.value * o), { x: v, y: b } = Te(u.value.size / U.value * o, e.value.style.chart.layout.wheel.ticks.sizeRatio);
312
- t.push({
313
- x1: l,
314
- y1: i,
315
- x2: v,
316
- y2: b,
317
- color: e.value.style.chart.layout.wheel.ticks.gradient.show ? Q(a, o * O.value / U.value * (e.value.style.chart.layout.wheel.ticks.gradient.shiftHueIntensity / 100)) : a
318
- });
319
- }
320
- return t;
321
- }), kt = y(() => Zt({ series: Le.value.map((t) => ({
322
- name: "",
323
- value: 1,
324
- color: t.color
325
- })) }, 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))), se = C(!1);
326
- function je(t) {
327
- se.value = t, xe.value += 1;
328
- }
329
- const ne = C(!1);
330
- function ge() {
331
- ne.value = !ne.value;
332
- }
333
- async function ft({ scale: t = 2 } = {}) {
334
- if (!L.value) return;
335
- const { width: o, height: a } = L.value.getBoundingClientRect(), l = o / a, { imageUri: i, base64: v } = await ca({ domElement: L.value, base64: !0, img: !0, scale: t });
336
- return {
337
- imageUri: i,
338
- base64: v,
339
- title: e.value.style.chart.title.text,
340
- width: o,
341
- height: a,
342
- aspectRatio: l
343
- };
344
- }
345
- const gt = y(() => e.value.style.chart.layout.wheel.ticks.strokeWidth * 2), pt = y(() => e.value.style.chart.layout.wheel.ticks.strokeWidth * 2 * 0.75), mt = y(() => e.value.style.chart.layout.wheel.ticks.strokeWidth), E = y(() => Math.max(1, Math.min(20, e.value.style.chart.layout.wheel.ticks.depth3d))), wt = y(() => e.value.style.chart.backgroundColor), Ct = y(() => e.value.style.chart.title), { exportSvg: bt, getSvg: xt } = na({
346
- svg: ve,
347
- title: Ct,
348
- backgroundColor: wt,
349
- stretchTitle: !0
350
- });
351
- async function Be({ isCb: t }) {
352
- te.value = !0, await Vt();
353
- try {
354
- if (t) {
355
- const { blob: o, url: a, text: l, dataUrl: i } = await xt();
356
- await Promise.resolve(e.value.userOptions.callbacks.svg({ blob: o, url: a, text: l, dataUrl: i }));
357
- } else
358
- await Promise.resolve(bt());
359
- } finally {
360
- te.value = !1;
361
- }
362
- }
363
- function Mt(t) {
364
- if (t?.stage === "start") {
365
- ee.value = !0;
366
- return;
367
- }
368
- if (t?.stage === "end") {
369
- ee.value = !1;
370
- return;
371
- }
372
- ze();
373
- }
374
- async function Ee() {
375
- if (nt("copyAlt", {
376
- config: e.value,
377
- dataset: V.value
378
- }), !e.value.userOptions.callbacks.altCopy) {
379
- console.warn("Vue Data UI - A callback must be set for `altCopy` in userOptions.");
380
- return;
381
- }
382
- await Promise.resolve(e.value.userOptions.callbacks.altCopy({
383
- config: e.value,
384
- dataset: V.value
385
- }));
386
- }
387
- return Je({
388
- getImage: ft,
389
- generatePdf: Re,
390
- generateImage: ze,
391
- generateSvg: Be,
392
- toggleAnnotator: ge,
393
- toggleFullscreen: je,
394
- copyAlt: Ee
395
- }), (t, o) => (s(), n("div", {
396
- class: D(["vue-ui-wheel", { "vue-data-ui-component": !0, "vue-ui-wheel-3d-wrap": e.value.layout === "3d" }]),
397
- ref_key: "wheelChart",
398
- ref: L,
399
- id: ce.value,
400
- style: Ce(`font-family:${e.value.style.fontFamily};width:100%; text-align:center;background:${e.value.style.chart.backgroundColor};${e.value.responsive ? "height:100%" : ""}`),
401
- onMouseenter: o[0] || (o[0] = () => c(Oe)(!0)),
402
- onMouseleave: o[1] || (o[1] = () => c(Oe)(!1))
403
- }, [
404
- e.value.userOptions.buttons.annotator ? (s(), re(c(et), {
405
- key: 0,
406
- svgRef: c(ve),
407
- backgroundColor: e.value.style.chart.backgroundColor,
408
- color: e.value.style.chart.color,
409
- active: ne.value,
410
- isCursorPointer: Ie.value,
411
- onClose: ge
412
- }, {
413
- "annotator-action-close": I(() => [
414
- p(t.$slots, "annotator-action-close", {}, void 0, !0)
415
- ]),
416
- "annotator-action-color": I(({ color: a }) => [
417
- p(t.$slots, "annotator-action-color", _(R({ color: a })), void 0, !0)
418
- ]),
419
- "annotator-action-draw": I(({ mode: a }) => [
420
- p(t.$slots, "annotator-action-draw", _(R({ mode: a })), void 0, !0)
421
- ]),
422
- "annotator-action-undo": I(({ disabled: a }) => [
423
- p(t.$slots, "annotator-action-undo", _(R({ disabled: a })), void 0, !0)
424
- ]),
425
- "annotator-action-redo": I(({ disabled: a }) => [
426
- p(t.$slots, "annotator-action-redo", _(R({ disabled: a })), void 0, !0)
427
- ]),
428
- "annotator-action-delete": I(({ disabled: a }) => [
429
- p(t.$slots, "annotator-action-delete", _(R({ disabled: a })), void 0, !0)
430
- ]),
431
- _: 3
432
- }, 8, ["svgRef", "backgroundColor", "color", "active", "isCursorPointer"])) : z("", !0),
433
- ct.value ? (s(), n("div", {
434
- key: 1,
435
- ref_key: "noTitle",
436
- ref: Ae,
437
- class: "vue-data-ui-no-title-space",
438
- style: "height:36px; width: 100%;background:transparent"
439
- }, null, 512)) : z("", !0),
440
- e.value.style.chart.title.text ? (s(), n("div", {
441
- key: 2,
442
- ref_key: "chartTitle",
443
- ref: Me,
444
- style: "width:100%;background:transparent;padding-bottom:12px"
445
- }, [
446
- (s(), re(ha, {
447
- key: `title_${Se.value}`,
448
- config: {
449
- title: {
450
- cy: "wheel-title",
451
- ...e.value.style.chart.title
452
- },
453
- subtitle: {
454
- cy: "wheel-subtitle",
455
- ...e.value.style.chart.title.subtitle
456
- }
457
- }
458
- }, null, 8, ["config"]))
459
- ], 512)) : z("", !0),
460
- e.value.userOptions.show && ut.value && (c(_e) || c(he)) ? (s(), re(c(tt), {
461
- ref_key: "details",
462
- ref: it,
463
- key: `user_options_${xe.value}`,
464
- backgroundColor: e.value.style.chart.backgroundColor,
465
- color: e.value.style.chart.color,
466
- isPrinting: c(ye),
467
- isImaging: c(ke),
468
- uid: ce.value,
469
- hasPdf: e.value.userOptions.buttons.pdf,
470
- hasImg: e.value.userOptions.buttons.img,
471
- hasSvg: e.value.userOptions.buttons.svg,
472
- hasFullscreen: e.value.userOptions.buttons.fullscreen,
473
- hasAltCopy: e.value.userOptions.buttons.altCopy,
474
- hasXls: !1,
475
- isFullscreen: se.value,
476
- position: e.value.userOptions.position,
477
- titles: { ...e.value.userOptions.buttonTitles },
478
- hasAnnotator: e.value.userOptions.buttons.annotator,
479
- isAnnotation: ne.value,
480
- chartElement: L.value,
481
- callbacks: e.value.userOptions.callbacks,
482
- printScale: e.value.userOptions.print.scale,
483
- isCursorPointer: Ie.value,
484
- onToggleFullscreen: je,
485
- onGeneratePdf: c(Re),
486
- onGenerateImage: Mt,
487
- onGenerateSvg: Be,
488
- onToggleAnnotator: ge,
489
- onCopyAlt: Ee,
490
- style: Ce({
491
- visibility: c(_e) ? c(he) ? "visible" : "hidden" : "visible"
492
- })
493
- }, jt({ _: 2 }, [
494
- t.$slots.menuIcon ? {
495
- name: "menuIcon",
496
- fn: I(({ isOpen: a, color: l }) => [
497
- p(t.$slots, "menuIcon", _(R({ isOpen: a, color: l })), void 0, !0)
498
- ]),
499
- key: "0"
500
- } : void 0,
501
- t.$slots.optionPdf ? {
502
- name: "optionPdf",
503
- fn: I(() => [
504
- p(t.$slots, "optionPdf", {}, void 0, !0)
505
- ]),
506
- key: "1"
507
- } : void 0,
508
- t.$slots.optionImg ? {
509
- name: "optionImg",
510
- fn: I(() => [
511
- p(t.$slots, "optionImg", {}, void 0, !0)
512
- ]),
513
- key: "2"
514
- } : void 0,
515
- t.$slots.optionSvg ? {
516
- name: "optionSvg",
517
- fn: I(() => [
518
- p(t.$slots, "optionSvg", {}, void 0, !0)
519
- ]),
520
- key: "3"
521
- } : void 0,
522
- t.$slots.optionFullscreen ? {
523
- name: "optionFullscreen",
524
- fn: I(({ toggleFullscreen: a, isFullscreen: l }) => [
525
- p(t.$slots, "optionFullscreen", _(R({ toggleFullscreen: a, isFullscreen: l })), void 0, !0)
526
- ]),
527
- key: "4"
528
- } : void 0,
529
- t.$slots.optionAnnotator ? {
530
- name: "optionAnnotator",
531
- fn: I(({ toggleAnnotator: a, isAnnotator: l }) => [
532
- p(t.$slots, "optionAnnotator", _(R({ toggleAnnotator: a, isAnnotator: l })), void 0, !0)
533
- ]),
534
- key: "5"
535
- } : void 0,
536
- t.$slots.optionAltCopy ? {
537
- name: "optionAltCopy",
538
- fn: I(({ altCopy: a }) => [
539
- p(t.$slots, "optionAltCopy", _(R({ altCopy: a })), void 0, !0)
540
- ]),
541
- key: "6"
542
- } : void 0
543
- ]), 1032, ["backgroundColor", "color", "isPrinting", "isImaging", "uid", "hasPdf", "hasImg", "hasSvg", "hasFullscreen", "hasAltCopy", "isFullscreen", "position", "titles", "hasAnnotator", "isAnnotation", "chartElement", "callbacks", "printScale", "isCursorPointer", "onGeneratePdf", "style"])) : z("", !0),
544
- (s(), n("svg", {
545
- ref_key: "svgRef",
546
- ref: ve,
547
- xmlns: c(Kt),
548
- class: D({ "vue-data-ui-fullscreen--on": se.value, "vue-data-ui-fulscreen--off": !se.value, "vue-ui-wheel-3d-svg": e.value.layout === "3d" }),
549
- viewBox: e.value.layout === "3d" && !e.value.responsive ? `${N.value?.x - 10} ${N.value?.y ?? 0} ${N.value?.w + 20} ${N.value?.h ?? Math.max(10, u.value.height)}` : `0 0 ${Math.max(10, u.value.width)} ${Math.max(10, u.value.height)}`,
550
- style: Ce(`max-width:100%;overflow:visible;background:transparent;color:${e.value.style.chart.color}`)
551
- }, [
552
- Bt(c(at)),
553
- t.$slots["chart-background"] ? (s(), n("foreignObject", {
554
- key: 0,
555
- x: e.value.layout === "3d" && !e.value.responsive ? N.value?.x - 10 : 0,
556
- y: e.value.layout === "3d" && !e.value.responsive ? N.value?.y ?? 0 : 0,
557
- width: e.value.layout === "3d" && !e.value.responsive ? N.value?.w + 20 : Math.max(10, u.value.width),
558
- height: e.value.layout === "3d" && !e.value.responsive ? N.value?.h ?? Math.max(10, u.value.height) : Math.max(10, u.value.height),
559
- style: {
560
- pointerEvents: "none"
561
- }
562
- }, [
563
- p(t.$slots, "chart-background", {}, void 0, !0)
564
- ], 8, fa)) : z("", !0),
565
- e.value.layout === "3d" && Ne.value ? (s(), n("path", {
566
- key: 1,
567
- class: "vue-ui-wheel-inner-circle",
568
- d: Ne.value.d,
569
- stroke: e.value.style.chart.layout.innerCircle.stroke,
570
- "stroke-width": e.value.style.chart.layout.innerCircle.strokeWidth,
571
- fill: "none"
572
- }, null, 8, ga)) : e.value.style.chart.layout.innerCircle.show ? (s(), n("circle", {
573
- key: 2,
574
- class: "vue-ui-wheel-inner-circle",
575
- cx: r.value.centerX,
576
- cy: r.value.centerY,
577
- r: Math.max(0, r.value.radius * e.value.style.chart.layout.innerCircle.radiusRatio * 0.8),
578
- stroke: e.value.style.chart.layout.innerCircle.stroke,
579
- "stroke-width": e.value.style.chart.layout.innerCircle.strokeWidth,
580
- fill: "none"
581
- }, null, 8, pa)) : z("", !0),
582
- e.value.layout === "3d" ? (s(), n(P, { key: 3 }, [
583
- e.value.style.chart.layout.wheel.ticks.type === "classic" ? (s(), n("g", ma, [
584
- (s(!0), n(P, null, F(E.value, (a) => (s(), n("g", null, [
585
- (s(!0), n(P, null, F(Fe.value || [], (l) => (s(), n("line", {
586
- key: l.i,
587
- x1: l.x1,
588
- y1: l.y1 - a,
589
- x2: l.x2,
590
- y2: l.y2 - a,
591
- stroke: c(qe)(l.color, 0.25 * a / 5),
592
- "stroke-width": e.value.style.chart.layout.wheel.ticks.strokeWidth / 360 * Math.min(u.value.width, u.value.height),
593
- "stroke-linecap": e.value.style.chart.layout.wheel.ticks.rounded ? "round" : "butt",
594
- class: D({ "vue-ui-wheel-tick": !0, "vue-ui-tick-animated": e.value.style.chart.animation.use && l.i * O.value <= d.value })
595
- }, null, 10, wa))), 128))
596
- ]))), 256)),
597
- (s(!0), n(P, null, F(Fe.value || [], (a) => (s(), n("line", {
598
- key: a.i,
599
- x1: a.x1,
600
- y1: a.y1 - E.value,
601
- x2: a.x2,
602
- y2: a.y2 - E.value,
603
- stroke: a.color,
604
- "stroke-width": e.value.style.chart.layout.wheel.ticks.strokeWidth / 360 * Math.min(u.value.width, u.value.height),
605
- "stroke-linecap": e.value.style.chart.layout.wheel.ticks.rounded ? "round" : "butt",
606
- class: D({ "vue-ui-wheel-tick": !0, "vue-ui-tick-animated": e.value.style.chart.animation.use && a.i * O.value <= d.value })
607
- }, null, 10, Ca))), 128))
608
- ])) : (s(), n("g", ba, [
609
- (s(!0), n(P, null, F(E.value, (a) => (s(), n("g", null, [
610
- (s(!0), n(P, null, F(fe.value(-a) || [], (l) => (s(), n("path", {
611
- key: l.i,
612
- d: l.d,
613
- fill: e.value.style.chart.layout.wheel.ticks.inactiveColor,
614
- stroke: e.value.style.chart.layout.wheel.ticks.stroke,
615
- "stroke-width": e.value.style.chart.layout.wheel.ticks.strokeWidth,
616
- "stroke-linecap": "round",
617
- "stroke-linejoin": "round",
618
- class: "vue-ui-wheel-tick"
619
- }, null, 8, xa))), 128)),
620
- (s(!0), n(P, null, F(fe.value(-a) || [], (l) => (s(), n("path", {
621
- key: l.i,
622
- d: l.d,
623
- fill: c(qe)(l.fill, 0.5 * a / E.value),
624
- stroke: e.value.style.chart.layout.wheel.ticks.stroke,
625
- "stroke-width": e.value.style.chart.layout.wheel.ticks.strokeWidth,
626
- "stroke-linecap": "round",
627
- "stroke-linejoin": "round",
628
- class: D({ "vue-ui-wheel-tick": !0, "vue-ui-tick-animated-3d": e.value.style.chart.animation.use && l.i * O.value <= d.value })
629
- }, null, 10, Ma))), 128))
630
- ]))), 256)),
631
- Et("g", null, [
632
- (s(!0), n(P, null, F(fe.value(-E.value) || [], (a) => (s(), n("path", {
633
- key: a.i,
634
- d: a.d,
635
- fill: a.fill,
636
- stroke: e.value.style.chart.layout.wheel.ticks.stroke,
637
- "stroke-width": e.value.style.chart.layout.wheel.ticks.strokeWidth,
638
- "stroke-linecap": "round",
639
- "stroke-linejoin": "round",
640
- class: D({ "vue-ui-wheel-tick": !0, "vue-ui-tick-animated-3d": e.value.style.chart.animation.use && a.i * O.value <= d.value })
641
- }, null, 10, $a))), 128))
642
- ])
643
- ]))
644
- ], 64)) : (s(), n(P, { key: 4 }, [
645
- e.value.style.chart.layout.wheel.ticks.type === "classic" ? (s(!0), n(P, { key: 0 }, F(Le.value, (a, l) => (s(), n("line", {
646
- x1: a.x1,
647
- x2: a.x2,
648
- y1: a.y1,
649
- y2: a.y2,
650
- stroke: a.color,
651
- "stroke-width": e.value.style.chart.layout.wheel.ticks.strokeWidth / 360 * Math.min(u.value.width, u.value.height),
652
- "stroke-linecap": e.value.style.chart.layout.wheel.ticks.rounded ? "round" : "butt",
653
- class: D({ "vue-ui-wheel-tick": !0, "vue-ui-tick-animated": e.value.style.chart.animation.use && l * O.value <= d.value })
654
- }, null, 10, Aa))), 256)) : (s(!0), n(P, { key: 1 }, F(kt.value, (a, l) => (s(), n("path", {
655
- d: a.arcSlice,
656
- fill: a.color,
657
- class: D({ "vue-ui-wheel-tick": !0, "vue-ui-tick-animated": e.value.style.chart.animation.use && l * O.value <= d.value }),
658
- stroke: e.value.style.chart.layout.wheel.ticks.stroke,
659
- "stroke-width": e.value.style.chart.layout.wheel.ticks.strokeWidth
660
- }, null, 10, Sa))), 256))
661
- ], 64)),
662
- e.value.style.chart.layout.percentage.show ? (s(), n("g", Ia, [
663
- c(Pe) ? (s(), n("rect", {
664
- key: 0,
665
- x: r.value.centerX - 40,
666
- y: r.value.centerY - G.value / 2,
667
- width: 80,
668
- height: G.value,
669
- fill: "#6A6A6A80",
670
- rx: "3"
671
- }, null, 8, Pa)) : (s(), n("text", {
672
- key: 1,
673
- x: r.value.centerX + e.value.style.chart.layout.percentage.offsetX,
674
- y: r.value.centerY + G.value / 3 + e.value.style.chart.layout.percentage.offsetY,
675
- "font-size": G.value,
676
- fill: e.value.style.chart.layout.wheel.ticks.gradient.show ? c(Q)(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,
677
- "text-anchor": "middle",
678
- "font-weight": e.value.style.chart.layout.percentage.bold ? "bold" : "normal",
679
- style: { "font-variant-numeric": "tabluar-nums" },
680
- stroke: e.value.style.chart.layout.percentage.stroke,
681
- "stroke-width": e.value.style.chart.layout.percentage.strokeWidth,
682
- "stroke-linecap": "round",
683
- "stroke-linejoin": "round",
684
- "paint-order": "stroke fill",
685
- class: D({ "vue-ui-wheel-label": e.value.layout === "3d" })
686
- }, Yt(c(Jt)(
687
- e.value.style.chart.layout.percentage.formatter,
688
- c(Ze)(d.value),
689
- c(Qt)({
690
- v: c(Ze)(d.value),
691
- s: "%",
692
- r: e.value.style.chart.layout.percentage.rounding
693
- })
694
- )), 11, Oa))
695
- ])) : z("", !0),
696
- p(t.$slots, "svg", {
697
- svg: {
698
- ...u.value,
699
- isPrintingImg: c(ye) | c(ke) | ee.value,
700
- isPrintingSvg: te.value
701
- }
702
- }, void 0, !0)
703
- ], 14, ka)),
704
- t.$slots.watermark ? (s(), n("div", _a, [
705
- p(t.$slots, "watermark", _(R({ isPrinting: c(ye) || c(ke) || ee.value || te.value })), void 0, !0)
706
- ])) : z("", !0),
707
- t.$slots.source ? (s(), n("div", {
708
- key: 5,
709
- ref_key: "source",
710
- ref: $e,
711
- dir: "auto"
712
- }, [
713
- p(t.$slots, "source", {}, void 0, !0)
714
- ], 512)) : z("", !0),
715
- p(t.$slots, "skeleton", {}, () => [
716
- c(Pe) ? (s(), re(oa, { key: 0 })) : z("", !0)
717
- ], !0)
718
- ], 46, ya));
719
- }
720
- }, qa = /* @__PURE__ */ da(Ra, [["__scopeId", "data-v-564e76f1"]]);
721
- export {
722
- qa as default
723
- };