vue-data-ui 3.22.13 → 3.23.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (224) hide show
  1. package/LICENSE +1 -1
  2. package/README.md +13 -1
  3. package/dist/{Arrow-DKx74WtM.js → Arrow-o2qHNvrC.js} +1 -1
  4. package/dist/{BaseDraggableDialog-3n8udWmh.js → BaseDraggableDialog-qTnfhLBz.js} +2 -2
  5. package/dist/{BaseIcon-CP5RWnqt.js → BaseIcon-91MZoczJ.js} +4 -3
  6. package/dist/{BaseLegendToggle-DsWphmIb.js → BaseLegendToggle-CtAPwzr2.js} +1 -1
  7. package/dist/{BaseZoomControls-C9_ygNN4.js → BaseZoomControls-rdzlicuz.js} +2 -2
  8. package/dist/{ColorPicker-3N_HVgXs.js → ColorPicker-CIAkdPrj.js} +2 -2
  9. package/dist/{DataTable-DzPEVvSo.js → DataTable-D4tM9s5Y.js} +2 -2
  10. package/dist/HillActions-BWhxHlrj.js +187 -0
  11. package/dist/{Legend-C0xAnJdO.js → Legend-CQTRlzK-.js} +2 -2
  12. package/dist/{NonSvgPenAndPaper-B_mE5UbR.js → NonSvgPenAndPaper-Cawacw1W.js} +19 -19
  13. package/dist/{PackageVersion-B6Hokxw9.js → PackageVersion--QCMh5k_.js} +1 -1
  14. package/dist/{PenAndPaper-CSMVXpg2.js → PenAndPaper-cE4J8-rA.js} +11 -11
  15. package/dist/{Shape-BfnXr1nJ.js → Shape-BPMV94Ij.js} +3 -3
  16. package/dist/{Slicer-C6qNUmZ4.js → Slicer-5yIrdoJv.js} +15 -15
  17. package/dist/SlicerPreview-DvjLV2TW.js +1689 -0
  18. package/dist/{SparkTooltip-uoUiL_P8.js → SparkTooltip-BaYtEKS6.js} +6 -6
  19. package/dist/Title-BODtwViI.js +87 -0
  20. package/dist/{Tooltip-CA1rtSyl.js → Tooltip-CMTGxeYO.js} +1 -1
  21. package/dist/{UserOptions-DzAFK9cY.js → UserOptions-3ujTo3LD.js} +2 -2
  22. package/dist/components/arrow.js +1 -1
  23. package/dist/components/vue-ui-3d-bar.js +1 -1
  24. package/dist/components/vue-ui-accordion.js +1 -1
  25. package/dist/components/vue-ui-age-pyramid.js +1 -1
  26. package/dist/components/vue-ui-annotator.js +1 -1
  27. package/dist/components/vue-ui-bullet.js +1 -1
  28. package/dist/components/vue-ui-bump.js +1 -1
  29. package/dist/components/vue-ui-candlestick.js +1 -1
  30. package/dist/components/vue-ui-carousel-table.js +1 -1
  31. package/dist/components/vue-ui-chestnut.js +1 -1
  32. package/dist/components/vue-ui-chord.js +1 -1
  33. package/dist/components/vue-ui-circle-pack.js +1 -1
  34. package/dist/components/vue-ui-cursor.js +1 -1
  35. package/dist/components/vue-ui-dag.js +1 -1
  36. package/dist/components/vue-ui-dashboard.js +1 -1
  37. package/dist/components/vue-ui-digits.js +1 -1
  38. package/dist/components/vue-ui-donut-evolution.js +1 -1
  39. package/dist/components/vue-ui-donut.js +1 -1
  40. package/dist/components/vue-ui-dumbbell.js +1 -1
  41. package/dist/components/vue-ui-flow.js +1 -1
  42. package/dist/components/vue-ui-funnel.js +1 -1
  43. package/dist/components/vue-ui-galaxy.js +1 -1
  44. package/dist/components/vue-ui-gauge.js +1 -1
  45. package/dist/components/vue-ui-geo.js +1 -1
  46. package/dist/components/vue-ui-gizmo.js +1 -1
  47. package/dist/components/vue-ui-heatmap.js +1 -1
  48. package/dist/components/vue-ui-hill.js +2 -0
  49. package/dist/components/vue-ui-history-plot.js +1 -1
  50. package/dist/components/vue-ui-horizontal-bar.js +1 -1
  51. package/dist/components/vue-ui-icon.js +1 -1
  52. package/dist/components/vue-ui-kpi.js +1 -1
  53. package/dist/components/vue-ui-mini-loader.js +1 -1
  54. package/dist/components/vue-ui-molecule.js +1 -1
  55. package/dist/components/vue-ui-mood-radar.js +1 -1
  56. package/dist/components/vue-ui-nested-donuts.js +1 -1
  57. package/dist/components/vue-ui-onion.js +1 -1
  58. package/dist/components/vue-ui-parallel-coordinate-plot.js +1 -1
  59. package/dist/components/vue-ui-quadrant.js +1 -1
  60. package/dist/components/vue-ui-quick-chart.js +1 -1
  61. package/dist/components/vue-ui-radar.js +1 -1
  62. package/dist/components/vue-ui-rating.js +1 -1
  63. package/dist/components/vue-ui-relation-circle.js +1 -1
  64. package/dist/components/vue-ui-ridgeline.js +1 -1
  65. package/dist/components/vue-ui-rings.js +1 -1
  66. package/dist/components/vue-ui-scatter.js +1 -1
  67. package/dist/components/vue-ui-skeleton.js +1 -1
  68. package/dist/components/vue-ui-smiley.js +1 -1
  69. package/dist/components/vue-ui-spark-trend.js +1 -1
  70. package/dist/components/vue-ui-sparkbar.js +1 -1
  71. package/dist/components/vue-ui-sparkgauge.js +1 -1
  72. package/dist/components/vue-ui-sparkhistogram.js +1 -1
  73. package/dist/components/vue-ui-sparkline.js +1 -1
  74. package/dist/components/vue-ui-sparkstackbar.js +1 -1
  75. package/dist/components/vue-ui-stackbar.js +1 -1
  76. package/dist/components/vue-ui-stackline.js +1 -1
  77. package/dist/components/vue-ui-strip-plot.js +1 -1
  78. package/dist/components/vue-ui-table-heatmap.js +1 -1
  79. package/dist/components/vue-ui-table-sparkline.js +1 -1
  80. package/dist/components/vue-ui-table.js +1 -1
  81. package/dist/components/vue-ui-thermometer.js +1 -1
  82. package/dist/components/vue-ui-timer.js +1 -1
  83. package/dist/components/vue-ui-tiremarks.js +1 -1
  84. package/dist/components/vue-ui-treemap.js +1 -1
  85. package/dist/components/vue-ui-vertical-bar.js +1 -1
  86. package/dist/components/vue-ui-waffle.js +1 -1
  87. package/dist/components/vue-ui-wheel.js +1 -1
  88. package/dist/components/vue-ui-word-cloud.js +1 -1
  89. package/dist/components/vue-ui-world.js +1 -1
  90. package/dist/components/vue-ui-xy-canvas.js +1 -1
  91. package/dist/components/vue-ui-xy.js +1 -1
  92. package/dist/{dom-to-png-BdAFKZQg.js → dom-to-png-4tdMNGPX.js} +1 -1
  93. package/dist/exposedLib-DWLRqRhv.js +25 -0
  94. package/dist/{img-Bikk1dGb.js → img-DIQG5q8T.js} +1 -1
  95. package/dist/{labelUtils-BUhssos9.js → labelUtils-C5lnc_xc.js} +1 -1
  96. package/dist/{lib-CFm_J26b.js → lib-BuMGJ_a0.js} +216 -173
  97. package/dist/{package-DmDydylu.js → package-BMc_ZieJ.js} +1 -1
  98. package/dist/{pdf-zmz3l2uy.js → pdf-Cnz4NKM9.js} +1 -1
  99. package/dist/{render-common-BIG8JYGK.js → render-common-Ktg2LZFG.js} +21 -21
  100. package/dist/ssr/vue-ui-donut.js +1 -1
  101. package/dist/ssr/vue-ui-xy.js +1 -1
  102. package/dist/ssr.js +2 -2
  103. package/dist/style.css +1 -1
  104. package/dist/types/vue-data-ui.d.ts +493 -0
  105. package/dist/types/vue-ui-hill.d.ts +90 -0
  106. package/dist/useAutoSizeLabelsInsideViewbox-DvDwcwi_.js +122 -0
  107. package/dist/{useConfig-C0V0eG7L.js → useConfig-BilxnBNr.js} +767 -476
  108. package/dist/useHints-Dq_w2E8B.js +66 -0
  109. package/dist/{useNestedProp-BY6DNN3i.js → useNestedProp--NSEmhOH.js} +1 -1
  110. package/dist/{useObjectBindings-Djwpii4d.js → useObjectBindings-Cwq7NcQz.js} +3 -2
  111. package/dist/{usePrinter-BH-xle1O.js → usePrinter-BFvi4jVy.js} +2 -2
  112. package/dist/useTransitions-g_zBREk2.js +39 -0
  113. package/dist/utils.js +14 -14
  114. package/dist/{vue-data-ui-rkzh6EkO.js → vue-data-ui-EsawKe_W.js} +85 -81
  115. package/dist/vue-data-ui.js +77 -76
  116. package/dist/vue-ui-3d-bar-RSUS2xpL.js +1849 -0
  117. package/dist/{vue-ui-accordion-UA88lv4d.js → vue-ui-accordion-61MlW-Ge.js} +4 -4
  118. package/dist/vue-ui-age-pyramid-CgnPWA93.js +1263 -0
  119. package/dist/vue-ui-annotator-DBRT85HG.js +2913 -0
  120. package/dist/vue-ui-bullet-Bc3-WaN1.js +724 -0
  121. package/dist/{vue-ui-bump-BS7RCf0Z.js → vue-ui-bump-Dvv3iSKr.js} +332 -295
  122. package/dist/{vue-ui-candlestick-BZSGDKrM.js → vue-ui-candlestick-DvvsrIdp.js} +464 -440
  123. package/dist/vue-ui-carousel-table-DtsNVim8.js +463 -0
  124. package/dist/vue-ui-chestnut-ArloORzP.js +2068 -0
  125. package/dist/{vue-ui-chord-D6G7ceE-.js → vue-ui-chord-xX5gWZy8.js} +430 -424
  126. package/dist/vue-ui-circle-pack-D8wykmqg.js +1638 -0
  127. package/dist/{vue-ui-cursor-BpN5MsXM.js → vue-ui-cursor-CxgE6Phh.js} +61 -61
  128. package/dist/{vue-ui-dag-BzgOgXzU.js → vue-ui-dag-C9Sf9vH7.js} +924 -916
  129. package/dist/vue-ui-dashboard-bGmaglAj.js +520 -0
  130. package/dist/{vue-ui-digits-OMPrn8fb.js → vue-ui-digits-DgDE-_Fn.js} +58 -50
  131. package/dist/vue-ui-donut-B_n6wF6B.js +2440 -0
  132. package/dist/{vue-ui-donut-Cp5NbZ1r.js → vue-ui-donut-Bmo149AR.js} +113 -113
  133. package/dist/{vue-ui-donut-evolution-DHVi5rOn.js → vue-ui-donut-evolution-D6vH_hfx.js} +528 -447
  134. package/dist/vue-ui-dumbbell-BX4Ao_wR.js +1582 -0
  135. package/dist/{vue-ui-flow-BusUK3H0.js → vue-ui-flow-Bshw8pT_.js} +415 -407
  136. package/dist/vue-ui-funnel-CjYosIik.js +797 -0
  137. package/dist/vue-ui-galaxy-CvXgy-dy.js +1111 -0
  138. package/dist/vue-ui-gauge-CByT0_vF.js +953 -0
  139. package/dist/{vue-ui-geo-CyFgFKlh.js → vue-ui-geo-C-gSZL2q.js} +378 -363
  140. package/dist/{vue-ui-gizmo-DdeXwCQp.js → vue-ui-gizmo-CJdxyPID.js} +57 -49
  141. package/dist/{vue-ui-heatmap-D8-qJ7fg.js → vue-ui-heatmap-DEEKv8ip.js} +498 -490
  142. package/dist/vue-ui-hill-D7LYAgAL.js +1768 -0
  143. package/dist/{vue-ui-history-plot-C2Aqk2ON.js → vue-ui-history-plot-BhcU94Pt.js} +553 -556
  144. package/dist/vue-ui-horizontal-bar-CfFye5tL.js +1733 -0
  145. package/dist/vue-ui-kpi-DCBnNfTb.js +104 -0
  146. package/dist/vue-ui-mini-loader-CtWpqnLW.js +133 -0
  147. package/dist/vue-ui-molecule-D3igGyOy.js +958 -0
  148. package/dist/{vue-ui-mood-radar-BiOjxFEN.js → vue-ui-mood-radar-sl6DMxqR.js} +349 -341
  149. package/dist/{vue-ui-nested-donuts-Cl1HVvDp.js → vue-ui-nested-donuts-aS4YzaB3.js} +449 -413
  150. package/dist/vue-ui-onion-EhPTZpW_.js +1258 -0
  151. package/dist/vue-ui-parallel-coordinate-plot-DE9wTmQQ.js +1455 -0
  152. package/dist/{vue-ui-quadrant-B21LkUc8.js → vue-ui-quadrant-SaY_RPSE.js} +625 -617
  153. package/dist/vue-ui-quick-chart-CJ9rejnj.js +2389 -0
  154. package/dist/{vue-ui-radar-CyzAyVos.js → vue-ui-radar-CaNen5Fj.js} +356 -310
  155. package/dist/vue-ui-rating--K7rX2an.js +360 -0
  156. package/dist/vue-ui-relation-circle-FLs8vOxQ.js +925 -0
  157. package/dist/vue-ui-ridgeline-Beg5hshN.js +1663 -0
  158. package/dist/{vue-ui-rings-FtcdX8xl.js → vue-ui-rings-BevKD8P-.js} +449 -423
  159. package/dist/{vue-ui-scatter-Cp_-2ahf.js → vue-ui-scatter-CNA7jF-o.js} +721 -702
  160. package/dist/{vue-ui-skeleton-COytVrfN.js → vue-ui-skeleton-B9ZP1w-i.js} +395 -387
  161. package/dist/{vue-ui-smiley-Da2jgkb7.js → vue-ui-smiley-DYnqqk6u.js} +128 -120
  162. package/dist/{vue-ui-spark-trend-DC2KUlEY.js → vue-ui-spark-trend-R0ebpg-G.js} +132 -117
  163. package/dist/{vue-ui-sparkbar-DdxQOFIF.js → vue-ui-sparkbar-DYC3By0v.js} +119 -111
  164. package/dist/{vue-ui-sparkgauge-DTA-fORH.js → vue-ui-sparkgauge-Bw6no-In.js} +76 -68
  165. package/dist/vue-ui-sparkhistogram-DvRKy8rq.js +590 -0
  166. package/dist/{vue-ui-sparkline-DcR_N-zT.js → vue-ui-sparkline-Dz1uzBos.js} +389 -364
  167. package/dist/vue-ui-sparkstackbar-DlnPdZih.js +692 -0
  168. package/dist/vue-ui-stackbar-B-THcavY.js +2350 -0
  169. package/dist/vue-ui-stackline-3dBPoI0h.js +2464 -0
  170. package/dist/{vue-ui-strip-plot-NLCwYvyw.js → vue-ui-strip-plot-ACeYOoHj.js} +505 -484
  171. package/dist/vue-ui-table-heatmap-DVwMqzje.js +364 -0
  172. package/dist/{vue-ui-table-AM9brdwU.js → vue-ui-table-rFy16bp0.js} +512 -504
  173. package/dist/{vue-ui-table-sparkline-BE6DAvur.js → vue-ui-table-sparkline-CABJzK8p.js} +207 -181
  174. package/dist/vue-ui-thermometer-CVQ-H69Q.js +777 -0
  175. package/dist/{vue-ui-timer-BZM5ITG9.js → vue-ui-timer-Bm8LpsnI.js} +66 -58
  176. package/dist/{vue-ui-tiremarks-BCncDpHX.js → vue-ui-tiremarks-DB3f5qiz.js} +127 -119
  177. package/dist/vue-ui-treemap-DP0Sx8Y8.js +1760 -0
  178. package/dist/vue-ui-waffle-iPpdk1Bm.js +1412 -0
  179. package/dist/vue-ui-wheel-BJkEYfLj.js +892 -0
  180. package/dist/{vue-ui-word-cloud-D7R7nhk1.js → vue-ui-word-cloud-B2sxtel9.js} +440 -432
  181. package/dist/{vue-ui-world-DZBt-07p.js → vue-ui-world-BBQZLnzm.js} +343 -335
  182. package/dist/vue-ui-xy-ChZg7AtI.js +1364 -0
  183. package/dist/{vue-ui-xy-CluEZ7lS.js → vue-ui-xy-DZj5DT-q.js} +1633 -1587
  184. package/dist/{vue-ui-xy-canvas-7YSYRdwr.js → vue-ui-xy-canvas-BN2u0bOJ.js} +456 -430
  185. package/dist/vue_ui_hill-dnltu0L-.js +368 -0
  186. package/package.json +2 -2
  187. package/dist/SlicerPreview-Cw6WMVhG.js +0 -1689
  188. package/dist/Title-BuPs74IB.js +0 -87
  189. package/dist/exposedLib-Ciw6TGtP.js +0 -25
  190. package/dist/useAutoSizeLabelsInsideViewbox-C9RNjsGv.js +0 -50
  191. package/dist/useMountedDelay-BAjrhRJb.js +0 -14
  192. package/dist/vue-ui-3d-bar-D5xHEWr1.js +0 -1824
  193. package/dist/vue-ui-age-pyramid-CAJg01c7.js +0 -1246
  194. package/dist/vue-ui-annotator-q3ZKx6ua.js +0 -2905
  195. package/dist/vue-ui-bullet-ByeaWGfI.js +0 -709
  196. package/dist/vue-ui-carousel-table-DO5NRXvX.js +0 -455
  197. package/dist/vue-ui-chestnut-BfeSPeEh.js +0 -2042
  198. package/dist/vue-ui-circle-pack-Cqmlw7AV.js +0 -1610
  199. package/dist/vue-ui-dashboard-DLvGJXJY.js +0 -512
  200. package/dist/vue-ui-donut-ZIRebAWc.js +0 -2418
  201. package/dist/vue-ui-dumbbell-gDYjU2oF.js +0 -1564
  202. package/dist/vue-ui-funnel-BtaYaU0r.js +0 -781
  203. package/dist/vue-ui-galaxy-BMp-HzDh.js +0 -1076
  204. package/dist/vue-ui-gauge-CBou0cFE.js +0 -925
  205. package/dist/vue-ui-horizontal-bar-BuwxI7d1.js +0 -1689
  206. package/dist/vue-ui-kpi-ByxoO01r.js +0 -96
  207. package/dist/vue-ui-mini-loader-D9pprk2c.js +0 -125
  208. package/dist/vue-ui-molecule-BqJJq49_.js +0 -932
  209. package/dist/vue-ui-onion-CRQOxurS.js +0 -1199
  210. package/dist/vue-ui-parallel-coordinate-plot-Dhn18RtR.js +0 -1412
  211. package/dist/vue-ui-quick-chart-DAhSXYnp.js +0 -2443
  212. package/dist/vue-ui-rating-DbxK-ftN.js +0 -352
  213. package/dist/vue-ui-relation-circle-Cb33DMZo.js +0 -917
  214. package/dist/vue-ui-ridgeline-D7aArzQk.js +0 -1627
  215. package/dist/vue-ui-sparkhistogram-D1oFTrvt.js +0 -575
  216. package/dist/vue-ui-sparkstackbar-BlFio0lP.js +0 -674
  217. package/dist/vue-ui-stackbar-Cu13EdVa.js +0 -2322
  218. package/dist/vue-ui-stackline-DKL0o_-3.js +0 -2427
  219. package/dist/vue-ui-table-heatmap-CSI482KG.js +0 -338
  220. package/dist/vue-ui-thermometer-D6Czx7Fb.js +0 -769
  221. package/dist/vue-ui-treemap-BOEYCOdk.js +0 -1727
  222. package/dist/vue-ui-waffle-BrM8IHdG.js +0 -1367
  223. package/dist/vue-ui-wheel-BNsajigQ.js +0 -884
  224. package/dist/vue-ui-xy-Dt_1bSBT.js +0 -1364
@@ -1,884 +0,0 @@
1
- import { t as e } from "./rolldown-runtime-Dy4uBu1J.js";
2
- import { At as t, Bt as n, Dt as r, K as i, Ot as a, Y as o, et as s, i as c, qt as l, t as u, y as d } from "./lib-CFm_J26b.js";
3
- import { t as f } from "./useConfig-C0V0eG7L.js";
4
- import { t as p } from "./usePrinter-BH-xle1O.js";
5
- import { n as m, t as h } from "./BaseScanner-DZvpgOjM.js";
6
- import { t as g } from "./useSvgExport-Ba9qBr9M.js";
7
- import { t as _ } from "./useNestedProp-BY6DNN3i.js";
8
- import { t as v } from "./useThemeCheck-C43Tcqmk.js";
9
- import { t as y } from "./img-Bikk1dGb.js";
10
- import { n as b } from "./Title-BuPs74IB.js";
11
- import { t as x } from "./_plugin-vue_export-helper-B3ysoDQm.js";
12
- import { l as S, t as ee } from "./useResponsive-ZtArZtUf.js";
13
- import { t as C } from "./useUserOptionState-DK-_1ddE.js";
14
- import { t as te } from "./useChartAccessibility-DYqac8yF.js";
15
- import { t as ne } from "./usePrefersMotion-BC-CsqR1.js";
16
- import { t as re } from "./vue_ui_wheel-DZ_nR--t.js";
17
- import { Fragment as w, computed as T, createBlock as E, createCommentVNode as D, createElementBlock as O, createElementVNode as ie, createSlots as ae, createVNode as oe, defineAsyncComponent as se, guardReactiveProps as k, nextTick as ce, normalizeClass as A, normalizeProps as j, normalizeStyle as le, onBeforeUnmount as ue, onMounted as de, openBlock as M, ref as N, renderList as P, renderSlot as F, shallowRef as fe, toDisplayString as pe, toRefs as me, unref as I, useCssVars as he, watch as ge, withCtx as L } from "vue";
18
- //#region src/components/vue-ui-wheel.vue
19
- var _e = /* @__PURE__ */ e({ default: () => Re }), ve = ["id"], ye = [
20
- "xmlns",
21
- "viewBox",
22
- "aria-labelledby",
23
- "aria-describedby"
24
- ], be = ["id"], xe = ["id"], Se = [
25
- "x",
26
- "y",
27
- "width",
28
- "height"
29
- ], Ce = [
30
- "d",
31
- "stroke",
32
- "stroke-width"
33
- ], we = [
34
- "cx",
35
- "cy",
36
- "r",
37
- "stroke",
38
- "stroke-width"
39
- ], Te = { key: 0 }, Ee = [
40
- "x1",
41
- "y1",
42
- "x2",
43
- "y2",
44
- "stroke",
45
- "stroke-width",
46
- "stroke-linecap"
47
- ], De = [
48
- "x1",
49
- "y1",
50
- "x2",
51
- "y2",
52
- "stroke",
53
- "stroke-width",
54
- "stroke-linecap"
55
- ], Oe = { key: 1 }, ke = [
56
- "d",
57
- "fill",
58
- "stroke",
59
- "stroke-width"
60
- ], Ae = [
61
- "d",
62
- "fill",
63
- "stroke",
64
- "stroke-width"
65
- ], je = [
66
- "d",
67
- "fill",
68
- "stroke",
69
- "stroke-width"
70
- ], Me = [
71
- "x1",
72
- "x2",
73
- "y1",
74
- "y2",
75
- "stroke",
76
- "stroke-width",
77
- "stroke-linecap"
78
- ], Ne = [
79
- "d",
80
- "fill",
81
- "stroke",
82
- "stroke-width"
83
- ], Pe = ["aria-label"], Fe = [
84
- "x",
85
- "y",
86
- "height"
87
- ], Ie = [
88
- "x",
89
- "y",
90
- "font-size",
91
- "fill",
92
- "font-weight",
93
- "stroke",
94
- "stroke-width"
95
- ], Le = {
96
- key: 4,
97
- class: "vue-data-ui-watermark"
98
- }, Re = /*#__PURE__*/ x({
99
- __name: "vue-ui-wheel",
100
- props: {
101
- config: {
102
- type: Object,
103
- default() {
104
- return {};
105
- }
106
- },
107
- dataset: {
108
- type: Object,
109
- default() {
110
- return {};
111
- }
112
- }
113
- },
114
- emits: ["copyAlt"],
115
- setup(e, { expose: x, emit: _e }) {
116
- he((e) => ({
117
- v6c761863: Ft.value,
118
- c5f7f2ee: It.value,
119
- c5f82dc8: Lt.value
120
- }));
121
- let Re = se(() => import("./PenAndPaper-CSMVXpg2.js").then((e) => e.t)), ze = se(() => import("./UserOptions-DzAFK9cY.js").then((e) => e.n)), Be = se(() => import("./PackageVersion-B6Hokxw9.js").then((e) => e.t)), { vue_ui_wheel: Ve } = f(), { isThemeValid: He, warnInvalidTheme: Ue } = v(), R = ne(), z = e, We = _e, Ge = T(() => !!z.dataset && Object.keys(z.dataset).length), B = N(i()), Ke = N(null), qe = N(0), V = N(null), Je = N(null), Ye = N(null), Xe = N(null), Ze = N(0), Qe = N(!1), $e = N(!1), H = N(st()), et = T(() => H.value.userOptions.useCursorPointer), tt = T(() => l({
122
- defaultConfig: {
123
- userOptions: { show: !1 },
124
- style: { chart: {
125
- backgroundColor: "#99999930",
126
- animation: { use: !1 },
127
- layout: {
128
- wheel: { ticks: {
129
- activeColor: "#6A6A6A80",
130
- inactiveColor: "#CACACA80"
131
- } },
132
- innerCircle: { stroke: "#CACACA80" }
133
- }
134
- } }
135
- },
136
- userConfig: H.value.skeletonConfig ?? {}
137
- })), { loading: nt, FINAL_DATASET: U } = m({
138
- ...me(z),
139
- FINAL_CONFIG: H,
140
- prepareConfig: st,
141
- skeletonDataset: z.config?.skeletonDataset ?? { percentage: 50 },
142
- skeletonConfig: l({
143
- defaultConfig: H.value,
144
- userConfig: tt.value
145
- })
146
- }), { userOptionsVisible: rt, setUserOptionsVisibility: it, keepUserOptionState: at } = C({ config: H.value }), { svgRef: ot } = te({ config: H.value.style.chart.title });
147
- function st() {
148
- let e = _({
149
- userConfig: z.config,
150
- defaultConfig: Ve
151
- }), t = e.theme;
152
- if (!t) return e;
153
- if (!He.value(e)) return Ue(e), e;
154
- let n = _({
155
- userConfig: re[t] || z.config,
156
- defaultConfig: e
157
- });
158
- return _({
159
- userConfig: z.config,
160
- defaultConfig: n
161
- });
162
- }
163
- ge(() => z.config, (e) => {
164
- H.value = st(), rt.value = !H.value.userOptions.showOnChartHover, ht(), Ze.value += 1;
165
- }, { deep: !0 });
166
- let { isPrinting: ct, isImaging: lt, generatePdf: ut, generateImage: dt } = p({
167
- elementId: B.value,
168
- fileName: H.value.style.chart.title.text || "vue-ui-wheel",
169
- options: H.value.userOptions.print
170
- }), ft = T(() => H.value.userOptions.show && !H.value.style.chart.title.text), W = N({
171
- size: 360,
172
- height: 360,
173
- width: 360
174
- }), G = N(H.value.style.chart.layout.percentage.fontSize), K = T(() => ({
175
- radius: Math.min(W.value.width, W.value.height) * .9 / 2 * H.value.style.chart.layout.wheel.radiusRatio,
176
- centerX: W.value.width / 2,
177
- centerY: W.value.height / 2
178
- }));
179
- function pt(e, t = 1) {
180
- let n = 29.85;
181
- return {
182
- x: K.value.centerX + K.value.radius * Math.cos(n + e * Math.PI / 180) * t,
183
- y: K.value.centerY + K.value.radius * Math.sin(n + e * Math.PI / 180) * t
184
- };
185
- }
186
- let q = N(H.value.style.chart.animation.use && !R.value ? 0 : U.value.percentage || 0);
187
- ge(() => U.value, (e) => {
188
- H.value.style.chart.animation.use && !R.value ? Dt(e.percentage) : q.value = e.percentage || 0;
189
- }, { deep: !0 });
190
- let J = fe(null), Y = fe(null);
191
- de(() => {
192
- ht();
193
- });
194
- let mt = T(() => !!H.value.debug);
195
- function ht() {
196
- if (t(z.dataset) && s({
197
- componentName: "VueUiWheel",
198
- type: "dataset",
199
- debug: mt.value
200
- }), H.value.responsive) {
201
- let e = S(() => {
202
- let { width: e, height: t } = ee({
203
- chart: V.value,
204
- title: H.value.style.chart.title.text ? Je.value : null,
205
- source: Ye.value,
206
- noTitle: Xe.value
207
- });
208
- requestAnimationFrame(() => {
209
- W.value.width = e, W.value.height = t, G.value = H.value.style.chart.layout.percentage.fontSize / 360 * Math.min(e, t);
210
- });
211
- });
212
- 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);
213
- }
214
- Dt(U.value.percentage || 0), H.value.style.chart.animation.use && !R.value || (q.value = U.value.percentage || 0);
215
- }
216
- ue(() => {
217
- J.value && (Y.value && J.value.unobserve(Y.value), J.value.disconnect());
218
- });
219
- function gt([e, t, n], r) {
220
- let i = Math.cos(r), a = Math.sin(r);
221
- return [
222
- e,
223
- t * i - n * a,
224
- t * a + n * i
225
- ];
226
- }
227
- function _t([e, t, n], r) {
228
- let i = r / (r - n);
229
- return [
230
- e * i,
231
- t * i,
232
- n,
233
- i
234
- ];
235
- }
236
- function vt(e, t) {
237
- 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)));
238
- return `#${s.toString(16).padStart(2, "0")}${c.toString(16).padStart(2, "0")}${l.toString(16).padStart(2, "0")}`;
239
- }
240
- function yt({ cx: e, cy: t, radius: r, innerRatio: i = .8, count: a = 120, startDeg: o = 0, axDeg: s = 50, f: c = 520, baseStroke: l = 5, activeColor: u, inactiveColor: d, getActive: f }) {
241
- let p = s * Math.PI / 180, m = r, h = r * i, g = [];
242
- for (let r = 0; r < a; r += 1) {
243
- let i = (r / 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 = [
244
- s - e,
245
- _ - t,
246
- 0
247
- ], x = [
248
- v - e,
249
- y - t,
250
- 0
251
- ], [S, ee, C] = gt(b, p), [te, ne, re] = gt(x, p), [w, T, , E] = _t([
252
- S,
253
- ee,
254
- C
255
- ], c), [D, O, , ie] = _t([
256
- te,
257
- ne,
258
- re
259
- ], c), ae = e + w, oe = t + T, se = e + D, k = t + O, ce = (Math.max(C, re) - -m * Math.sin(p)) / (2 * m * Math.sin(p) || 1), A = !f || f(r), j = H.value.style.chart.layout.wheel.ticks.gradient.show ? n(u, r * Q.value / Z.value * (H.value.style.chart.layout.wheel.ticks.gradient.shiftHueIntensity / 100)) : u, le = vt(A ? j : d, ce), ue = Math.max(1.25, l * E * (Math.min(W.value.width, W.value.height) / 360));
260
- g.push({
261
- i: r,
262
- x1: ae,
263
- y1: oe,
264
- x2: se,
265
- y2: k,
266
- stroke: ue,
267
- color: le,
268
- z: Math.max(C, re)
269
- });
270
- }
271
- return g.sort((e, t) => e.z - t.z), g;
272
- }
273
- let bt = T(() => {
274
- if (!H.value.layout === "3d") return null;
275
- let e = Z.value, t = H.value.style.chart.layout.wheel.ticks.gradient.show ? n(H.value.style.chart.layout.wheel.ticks.activeColor, 0) : H.value.style.chart.layout.wheel.ticks.activeColor, r = H.value.style.chart.layout.wheel.ticks.inactiveColor, i = H.value.style.chart.layout.wheel.ticks.strokeWidth;
276
- return yt({
277
- cx: K.value.centerX,
278
- cy: K.value.centerY,
279
- radius: K.value.radius,
280
- innerRatio: H.value.style.chart.layout.wheel.ticks.sizeRatio,
281
- count: e,
282
- startDeg: -90,
283
- axDeg: H.value.style.chart.layout.wheel.tiltAngle3d,
284
- f: Math.min(W.value.width, W.value.height) * 1.45,
285
- baseStroke: i,
286
- activeColor: t,
287
- inactiveColor: r,
288
- getActive: (e) => q.value > e * Q.value
289
- });
290
- });
291
- function xt({ cx: e, cy: t, r: n, count: r = 180, startDeg: i = -90, axDeg: a = 50, f: o }) {
292
- let s = a * Math.PI / 180, c = [], l = 0;
293
- for (let a = 0; a < r; a += 1) {
294
- let u = (a / r * 360 + i) * Math.PI / 180, [d, f, p] = gt([
295
- n * Math.cos(u),
296
- n * Math.sin(u),
297
- 0
298
- ], s), [m, h, , g] = _t([
299
- d,
300
- f,
301
- p
302
- ], o);
303
- l += g, c.push([e + m, t + h]);
304
- }
305
- let u = `M ${c[0][0]} ${c[0][1]}`;
306
- for (let e = 1; e < c.length; e += 1) u += ` L ${c[e][0]} ${c[e][1]}`;
307
- u += " Z";
308
- let d = l / r;
309
- return {
310
- d: u,
311
- avgScale: d,
312
- pts: c
313
- };
314
- }
315
- let X = T(() => {
316
- if (H.value.layout !== "3d") return null;
317
- 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 } = (() => {
318
- let r = n, i = t, { d: a, avgScale: o, pts: s } = xt({
319
- cx: K.value.centerX,
320
- cy: K.value.centerY,
321
- r,
322
- startDeg: -90,
323
- axDeg: i,
324
- f: e
325
- });
326
- return {
327
- pts: s,
328
- avgScale: o
329
- };
330
- })(), a = Infinity, o = Infinity, s = -Infinity, c = -Infinity;
331
- for (let [e, t] of r) e < a && (a = e), t < o && (o = t), e > s && (s = e), t > c && (c = t);
332
- 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;
333
- return {
334
- x: a - p,
335
- y: o - f - p,
336
- w: s - a + 2 * p,
337
- h: c - (o - f) + 2 * p
338
- };
339
- });
340
- function St(e) {
341
- let t = Math.min(W.value.width, W.value.height) * 1.45, { d: n, avgScale: r } = xt({
342
- cx: K.value.centerX,
343
- cy: K.value.centerY,
344
- r: e,
345
- startDeg: -90,
346
- axDeg: H.value.style.chart.layout.wheel.tiltAngle3d,
347
- f: t
348
- }), i = (H.value.style.chart.layout.innerCircle.strokeWidth || 1) * r;
349
- return {
350
- d: n,
351
- stroke: H.value.style.chart.layout.innerCircle.stroke,
352
- strokeWidth: i
353
- };
354
- }
355
- let Ct = T(() => St(Math.max(0, K.value.radius * .8 * H.value.style.chart.layout.innerCircle.radiusRatio)));
356
- function wt({ cx: e, cy: t, r: n, aRad: r, ax: i, f: a }) {
357
- let [o, s, c] = gt([
358
- n * Math.cos(r),
359
- n * Math.sin(r),
360
- 0
361
- ], i), [l, u, , d] = _t([
362
- o,
363
- s,
364
- c
365
- ], a);
366
- return {
367
- x: e + l,
368
- y: t + u,
369
- z: c,
370
- s: d
371
- };
372
- }
373
- function Tt({ cx: e, cy: t, radius: r, innerRatio: i = .8, count: a = 120, startDeg: o = -87, axDeg: s = 45, f: c = 600, activeColor: l, inactiveColor: u, getActive: d, Y: f = 0 }) {
374
- let p = s * Math.PI / 180, m = r, h = r * i, g = 2 * Math.PI / a, _ = [];
375
- for (let r = 0; r < a; r += 1) {
376
- let i = o * Math.PI / 180 + g * r, s = i + g * Math.min(1, H.value.style.chart.layout.wheel.ticks.spacingRatio3d), v = wt({
377
- cx: e,
378
- cy: t + f,
379
- r: m,
380
- aRad: i,
381
- ax: p,
382
- f: c
383
- }), y = wt({
384
- cx: e,
385
- cy: t + f,
386
- r: m,
387
- aRad: s,
388
- ax: p,
389
- f: c
390
- }), b = wt({
391
- cx: e,
392
- cy: t + f,
393
- r: h,
394
- aRad: s,
395
- ax: p,
396
- f: c
397
- }), x = wt({
398
- cx: e,
399
- cy: t + f,
400
- r: h,
401
- aRad: i,
402
- ax: p,
403
- f: c
404
- }), S = (v.z + y.z + x.z + b.z) / 4, ee = vt(!d || d(r) ? H.value.style.chart.layout.wheel.ticks.gradient.show ? n(H.value.style.chart.layout.wheel.ticks.activeColor, 100 / a * r / 100 * (H.value.style.chart.layout.wheel.ticks.gradient.shiftHueIntensity / 100)) : l : u, (() => {
405
- let e = m * Math.sin(p) || 1;
406
- return (S - -e) / (2 * e);
407
- })()), C = `M ${v.x} ${v.y} L ${y.x} ${y.y} L ${b.x} ${b.y} L ${x.x} ${x.y} Z`;
408
- _.push({
409
- i: r,
410
- d: C,
411
- fill: ee,
412
- z: S
413
- });
414
- }
415
- return _.sort((e, t) => e.z - t.z), _;
416
- }
417
- let Et = T(() => {
418
- if (H.value.layout !== "3d") return null;
419
- let e = Z.value;
420
- return (t) => Tt({
421
- cx: K.value.centerX,
422
- cy: K.value.centerY,
423
- radius: K.value.radius,
424
- innerRatio: H.value.style.chart.layout.wheel.ticks.sizeRatio,
425
- count: e,
426
- startDeg: -90,
427
- axDeg: H.value.style.chart.layout.wheel.tiltAngle3d,
428
- f: Math.min(W.value.width, W.value.height) * 1.45,
429
- activeColor: H.value.style.chart.layout.wheel.ticks.activeColor,
430
- inactiveColor: H.value.style.chart.layout.wheel.ticks.inactiveColor,
431
- getActive: (t) => q.value > 100 / e * t,
432
- Y: t
433
- });
434
- });
435
- function Dt(e) {
436
- let t = H.value.style.chart.animation.speed, n = Math.abs(e - q.value) / (t * 120);
437
- function r() {
438
- 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);
439
- }
440
- r();
441
- }
442
- let Z = T(() => (H.value.debug && H.value.style.chart.layout.wheel.ticks.quantity < 12 && console.warn("VueUiWheel - The min number of ticks is 12"), H.value.debug && 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), Ot = T(() => {
443
- let e = [];
444
- for (let t = 0; t < Z.value; t += 1) {
445
- let r = 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 } = pt(W.value.size / Z.value * t), { x: o, y: s } = pt(W.value.size / Z.value * t, H.value.style.chart.layout.wheel.ticks.sizeRatio);
446
- e.push({
447
- x1: i,
448
- y1: a,
449
- x2: o,
450
- y2: s,
451
- color: H.value.style.chart.layout.wheel.ticks.gradient.show ? n(r, t * Q.value / Z.value * (H.value.style.chart.layout.wheel.ticks.gradient.shiftHueIntensity / 100)) : r
452
- });
453
- }
454
- return e;
455
- }), kt = T(() => a({ series: Ot.value.map((e) => ({
456
- name: "",
457
- value: 1,
458
- color: e.color
459
- })) }, 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))), At = N(!1);
460
- function jt(e) {
461
- At.value = e, qe.value += 1;
462
- }
463
- let Mt = N(!1);
464
- function Nt() {
465
- Mt.value = !Mt.value;
466
- }
467
- async function Pt({ scale: e = 2 } = {}) {
468
- if (!V.value) return;
469
- let { width: t, height: n } = V.value.getBoundingClientRect(), r = t / n, { imageUri: i, base64: a } = await y({
470
- domElement: V.value,
471
- base64: !0,
472
- img: !0,
473
- scale: e
474
- });
475
- return {
476
- imageUri: i,
477
- base64: a,
478
- title: H.value.style.chart.title.text,
479
- width: t,
480
- height: n,
481
- aspectRatio: r
482
- };
483
- }
484
- let Ft = T(() => H.value.style.chart.layout.wheel.ticks.strokeWidth * 2), It = T(() => H.value.style.chart.layout.wheel.ticks.strokeWidth * 2 * .75), Lt = T(() => H.value.style.chart.layout.wheel.ticks.strokeWidth), $ = T(() => Math.max(1, Math.min(20, H.value.style.chart.layout.wheel.ticks.depth3d))), Rt = T(() => H.value.style.chart.backgroundColor), { exportSvg: zt, getSvg: Bt } = g({
485
- svg: ot,
486
- title: T(() => H.value.style.chart.title),
487
- backgroundColor: Rt,
488
- stretchTitle: !0
489
- });
490
- async function Vt({ isCb: e }) {
491
- $e.value = !0, await ce();
492
- try {
493
- if (e) {
494
- let { blob: e, url: t, text: n, dataUrl: r } = await Bt();
495
- await Promise.resolve(H.value.userOptions.callbacks.svg({
496
- blob: e,
497
- url: t,
498
- text: n,
499
- dataUrl: r
500
- }));
501
- } else await Promise.resolve(zt());
502
- } finally {
503
- $e.value = !1;
504
- }
505
- }
506
- function Ht(e) {
507
- if (e?.stage === "start") {
508
- Qe.value = !0;
509
- return;
510
- }
511
- if (e?.stage === "end") {
512
- Qe.value = !1;
513
- return;
514
- }
515
- dt();
516
- }
517
- async function Ut() {
518
- if (We("copyAlt", {
519
- config: H.value,
520
- dataset: U.value
521
- }), !H.value.userOptions.callbacks.altCopy) {
522
- console.warn("Vue Data UI - A callback must be set for `altCopy` in userOptions.");
523
- return;
524
- }
525
- await Promise.resolve(H.value.userOptions.callbacks.altCopy({
526
- config: H.value,
527
- dataset: U.value
528
- }));
529
- }
530
- let Wt = T(() => `${B.value}-title`), Gt = T(() => `${B.value}-desc`), Kt = T(() => c(H.value.style.chart.layout.percentage.formatter, d(q.value), o({
531
- v: d(q.value),
532
- s: "%",
533
- r: H.value.style.chart.layout.percentage.rounding
534
- }))), qt = T(() => H.value.style.chart.title.text || ""), Jt = T(() => nt.value ? "..." : `${Kt.value}`);
535
- return x({
536
- getImage: Pt,
537
- generatePdf: ut,
538
- generateImage: dt,
539
- generateSvg: Vt,
540
- toggleAnnotator: Nt,
541
- toggleFullscreen: jt,
542
- copyAlt: Ut
543
- }), (e, t) => (M(), O("div", {
544
- class: A(["vue-ui-wheel", {
545
- "vue-data-ui-component": !0,
546
- "vue-ui-wheel-3d-wrap": H.value.layout === "3d"
547
- }]),
548
- ref_key: "wheelChart",
549
- ref: V,
550
- id: B.value,
551
- style: le(`font-family:${H.value.style.fontFamily};width:100%; text-align:center;background:${H.value.style.chart.backgroundColor};${H.value.responsive ? "height:100%" : ""}`),
552
- onMouseenter: t[0] ||= () => I(it)(!0),
553
- onMouseleave: t[1] ||= () => I(it)(!1)
554
- }, [
555
- H.value.userOptions.buttons.annotator ? (M(), E(I(Re), {
556
- key: 0,
557
- svgRef: I(ot),
558
- backgroundColor: H.value.style.chart.backgroundColor,
559
- color: H.value.style.chart.color,
560
- active: Mt.value,
561
- isCursorPointer: et.value,
562
- onClose: Nt
563
- }, {
564
- "annotator-action-close": L(() => [F(e.$slots, "annotator-action-close", {}, void 0, !0)]),
565
- "annotator-action-color": L(({ color: t }) => [F(e.$slots, "annotator-action-color", j(k({ color: t })), void 0, !0)]),
566
- "annotator-action-draw": L(({ mode: t }) => [F(e.$slots, "annotator-action-draw", j(k({ mode: t })), void 0, !0)]),
567
- "annotator-action-undo": L(({ disabled: t }) => [F(e.$slots, "annotator-action-undo", j(k({ disabled: t })), void 0, !0)]),
568
- "annotator-action-redo": L(({ disabled: t }) => [F(e.$slots, "annotator-action-redo", j(k({ disabled: t })), void 0, !0)]),
569
- "annotator-action-delete": L(({ disabled: t }) => [F(e.$slots, "annotator-action-delete", j(k({ disabled: t })), void 0, !0)]),
570
- _: 3
571
- }, 8, [
572
- "svgRef",
573
- "backgroundColor",
574
- "color",
575
- "active",
576
- "isCursorPointer"
577
- ])) : D("", !0),
578
- ft.value ? (M(), O("div", {
579
- key: 1,
580
- ref_key: "noTitle",
581
- ref: Xe,
582
- class: "vue-data-ui-no-title-space",
583
- style: "height:36px; width: 100%;background:transparent"
584
- }, null, 512)) : D("", !0),
585
- H.value.style.chart.title.text ? (M(), O("div", {
586
- key: 2,
587
- ref_key: "chartTitle",
588
- ref: Je,
589
- style: "width:100%;background:transparent;padding-bottom:12px"
590
- }, [(M(), E(b, {
591
- key: `title_${Ze.value}`,
592
- config: {
593
- title: {
594
- cy: "wheel-title",
595
- ...H.value.style.chart.title
596
- },
597
- subtitle: {
598
- cy: "wheel-subtitle",
599
- ...H.value.style.chart.title.subtitle
600
- }
601
- }
602
- }, null, 8, ["config"]))], 512)) : D("", !0),
603
- H.value.userOptions.show && Ge.value && (I(at) || I(rt)) ? (M(), E(I(ze), {
604
- ref_key: "details",
605
- ref: Ke,
606
- key: `user_options_${qe.value}`,
607
- backgroundColor: H.value.style.chart.backgroundColor,
608
- color: H.value.style.chart.color,
609
- isPrinting: I(ct),
610
- isImaging: I(lt),
611
- uid: B.value,
612
- hasPdf: H.value.userOptions.buttons.pdf,
613
- hasImg: H.value.userOptions.buttons.img,
614
- hasSvg: H.value.userOptions.buttons.svg,
615
- hasFullscreen: H.value.userOptions.buttons.fullscreen,
616
- hasAltCopy: H.value.userOptions.buttons.altCopy,
617
- hasXls: !1,
618
- isFullscreen: At.value,
619
- position: H.value.userOptions.position,
620
- titles: { ...H.value.userOptions.buttonTitles },
621
- hasAnnotator: H.value.userOptions.buttons.annotator,
622
- isAnnotation: Mt.value,
623
- chartElement: V.value,
624
- callbacks: H.value.userOptions.callbacks,
625
- printScale: H.value.userOptions.print.scale,
626
- isCursorPointer: et.value,
627
- onToggleFullscreen: jt,
628
- onGeneratePdf: I(ut),
629
- onGenerateImage: Ht,
630
- onGenerateSvg: Vt,
631
- onToggleAnnotator: Nt,
632
- onCopyAlt: Ut,
633
- style: le({ visibility: I(at) ? I(rt) ? "visible" : "hidden" : "visible" })
634
- }, ae({ _: 2 }, [
635
- e.$slots.menuIcon ? {
636
- name: "menuIcon",
637
- fn: L(({ isOpen: t, color: n }) => [F(e.$slots, "menuIcon", j(k({
638
- isOpen: t,
639
- color: n
640
- })), void 0, !0)]),
641
- key: "0"
642
- } : void 0,
643
- e.$slots.optionPdf ? {
644
- name: "optionPdf",
645
- fn: L(() => [F(e.$slots, "optionPdf", {}, void 0, !0)]),
646
- key: "1"
647
- } : void 0,
648
- e.$slots.optionImg ? {
649
- name: "optionImg",
650
- fn: L(() => [F(e.$slots, "optionImg", {}, void 0, !0)]),
651
- key: "2"
652
- } : void 0,
653
- e.$slots.optionSvg ? {
654
- name: "optionSvg",
655
- fn: L(() => [F(e.$slots, "optionSvg", {}, void 0, !0)]),
656
- key: "3"
657
- } : void 0,
658
- e.$slots.optionFullscreen ? {
659
- name: "optionFullscreen",
660
- fn: L(({ toggleFullscreen: t, isFullscreen: n }) => [F(e.$slots, "optionFullscreen", j(k({
661
- toggleFullscreen: t,
662
- isFullscreen: n
663
- })), void 0, !0)]),
664
- key: "4"
665
- } : void 0,
666
- e.$slots.optionAnnotator ? {
667
- name: "optionAnnotator",
668
- fn: L(({ toggleAnnotator: t, isAnnotator: n }) => [F(e.$slots, "optionAnnotator", j(k({
669
- toggleAnnotator: t,
670
- isAnnotator: n
671
- })), void 0, !0)]),
672
- key: "5"
673
- } : void 0,
674
- e.$slots.optionAltCopy ? {
675
- name: "optionAltCopy",
676
- fn: L(({ altCopy: t }) => [F(e.$slots, "optionAltCopy", j(k({ altCopy: t })), void 0, !0)]),
677
- key: "6"
678
- } : void 0,
679
- e.$slots["custom-menu-before"] ? {
680
- name: "custom-menu-before",
681
- fn: L(() => [F(e.$slots, "custom-menu-before", {}, void 0, !0)]),
682
- key: "7"
683
- } : void 0,
684
- e.$slots["custom-menu-after"] ? {
685
- name: "custom-menu-after",
686
- fn: L(() => [F(e.$slots, "custom-menu-after", {}, void 0, !0)]),
687
- key: "8"
688
- } : void 0
689
- ]), 1032, [
690
- "backgroundColor",
691
- "color",
692
- "isPrinting",
693
- "isImaging",
694
- "uid",
695
- "hasPdf",
696
- "hasImg",
697
- "hasSvg",
698
- "hasFullscreen",
699
- "hasAltCopy",
700
- "isFullscreen",
701
- "position",
702
- "titles",
703
- "hasAnnotator",
704
- "isAnnotation",
705
- "chartElement",
706
- "callbacks",
707
- "printScale",
708
- "isCursorPointer",
709
- "onGeneratePdf",
710
- "style"
711
- ])) : D("", !0),
712
- (M(), O("svg", {
713
- ref_key: "svgRef",
714
- ref: ot,
715
- xmlns: I(u),
716
- class: A({
717
- "vue-data-ui-fullscreen--on": At.value,
718
- "vue-data-ui-fulscreen--off": !At.value,
719
- "vue-ui-wheel-3d-svg": H.value.layout === "3d"
720
- }),
721
- 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)}`,
722
- style: le(`max-width:100%;overflow:visible;background:transparent;color:${H.value.style.chart.color}`),
723
- role: "img",
724
- "aria-labelledby": Wt.value,
725
- "aria-describedby": Gt.value
726
- }, [
727
- ie("title", { id: Wt.value }, pe(qt.value), 9, be),
728
- ie("desc", { id: Gt.value }, pe(Jt.value), 9, xe),
729
- oe(I(Be)),
730
- e.$slots["chart-background"] ? (M(), O("foreignObject", {
731
- key: 0,
732
- x: H.value.layout === "3d" && !H.value.responsive ? X.value?.x - 10 : 0,
733
- y: H.value.layout === "3d" && !H.value.responsive ? X.value?.y ?? 0 : 0,
734
- width: H.value.layout === "3d" && !H.value.responsive ? X.value?.w + 20 ?? Math.max(10, W.value.width) : Math.max(10, W.value.width),
735
- height: H.value.layout === "3d" && !H.value.responsive ? X.value?.h ?? Math.max(10, W.value.height) : Math.max(10, W.value.height),
736
- style: { pointerEvents: "none" }
737
- }, [F(e.$slots, "chart-background", {}, void 0, !0)], 8, Se)) : D("", !0),
738
- H.value.layout === "3d" && Ct.value ? (M(), O("path", {
739
- key: 1,
740
- class: "vue-ui-wheel-inner-circle",
741
- d: Ct.value.d,
742
- stroke: H.value.style.chart.layout.innerCircle.stroke,
743
- "stroke-width": H.value.style.chart.layout.innerCircle.strokeWidth,
744
- fill: "none"
745
- }, null, 8, Ce)) : H.value.style.chart.layout.innerCircle.show ? (M(), O("circle", {
746
- key: 2,
747
- class: "vue-ui-wheel-inner-circle",
748
- cx: K.value.centerX,
749
- cy: K.value.centerY,
750
- r: Math.max(0, K.value.radius * H.value.style.chart.layout.innerCircle.radiusRatio * .8),
751
- stroke: H.value.style.chart.layout.innerCircle.stroke,
752
- "stroke-width": H.value.style.chart.layout.innerCircle.strokeWidth,
753
- fill: "none"
754
- }, null, 8, we)) : D("", !0),
755
- H.value.layout === "3d" ? (M(), O(w, { key: 3 }, [H.value.style.chart.layout.wheel.ticks.type === "classic" ? (M(), O("g", Te, [(M(!0), O(w, null, P($.value, (e) => (M(), O("g", null, [(M(!0), O(w, null, P(bt.value || [], (t) => (M(), O("line", {
756
- key: t.i,
757
- x1: t.x1,
758
- y1: t.y1 - e,
759
- x2: t.x2,
760
- y2: t.y2 - e,
761
- stroke: I(r)(t.color, .25 * e / 5),
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) && t.i * Q.value <= q.value
767
- })
768
- }, null, 10, Ee))), 128))]))), 256)), (M(!0), O(w, null, P(bt.value || [], (e) => (M(), O("line", {
769
- key: e.i,
770
- x1: e.x1,
771
- y1: e.y1 - $.value,
772
- x2: e.x2,
773
- y2: e.y2 - $.value,
774
- stroke: e.color,
775
- "stroke-width": H.value.style.chart.layout.wheel.ticks.strokeWidth / 360 * Math.min(W.value.width, W.value.height),
776
- "stroke-linecap": H.value.style.chart.layout.wheel.ticks.rounded ? "round" : "butt",
777
- class: A({
778
- "vue-ui-wheel-tick": !0,
779
- "vue-ui-tick-animated": H.value.style.chart.animation.use && !I(R) && e.i * Q.value <= q.value
780
- })
781
- }, null, 10, De))), 128))])) : (M(), O("g", Oe, [(M(!0), O(w, null, P($.value, (e) => (M(), O("g", null, [(M(!0), O(w, null, P(Et.value(-e) || [], (e) => (M(), O("path", {
782
- key: e.i,
783
- d: e.d,
784
- fill: H.value.style.chart.layout.wheel.ticks.inactiveColor,
785
- stroke: H.value.style.chart.layout.wheel.ticks.stroke,
786
- "stroke-width": H.value.style.chart.layout.wheel.ticks.strokeWidth,
787
- "stroke-linecap": "round",
788
- "stroke-linejoin": "round",
789
- class: "vue-ui-wheel-tick"
790
- }, null, 8, ke))), 128)), (M(!0), O(w, null, P(Et.value(-e) || [], (t) => (M(), O("path", {
791
- key: t.i,
792
- d: t.d,
793
- fill: I(r)(t.fill, .5 * e / $.value),
794
- stroke: H.value.style.chart.layout.wheel.ticks.stroke,
795
- "stroke-width": H.value.style.chart.layout.wheel.ticks.strokeWidth,
796
- "stroke-linecap": "round",
797
- "stroke-linejoin": "round",
798
- class: A({
799
- "vue-ui-wheel-tick": !0,
800
- "vue-ui-tick-animated-3d": H.value.style.chart.animation.use && !I(R) && t.i * Q.value <= q.value
801
- })
802
- }, null, 10, Ae))), 128))]))), 256)), ie("g", null, [(M(!0), O(w, null, P(Et.value(-$.value) || [], (e) => (M(), O("path", {
803
- key: e.i,
804
- d: e.d,
805
- fill: e.fill,
806
- stroke: H.value.style.chart.layout.wheel.ticks.stroke,
807
- "stroke-width": H.value.style.chart.layout.wheel.ticks.strokeWidth,
808
- "stroke-linecap": "round",
809
- "stroke-linejoin": "round",
810
- class: A({
811
- "vue-ui-wheel-tick": !0,
812
- "vue-ui-tick-animated-3d": H.value.style.chart.animation.use && !I(R) && e.i * Q.value <= q.value
813
- })
814
- }, null, 10, je))), 128))])]))], 64)) : (M(), O(w, { key: 4 }, [H.value.style.chart.layout.wheel.ticks.type === "classic" ? (M(!0), O(w, { key: 0 }, P(Ot.value, (e, t) => (M(), O("line", {
815
- x1: e.x1,
816
- x2: e.x2,
817
- y1: e.y1,
818
- y2: e.y2,
819
- stroke: e.color,
820
- "stroke-width": H.value.style.chart.layout.wheel.ticks.strokeWidth / 360 * Math.min(W.value.width, W.value.height),
821
- "stroke-linecap": H.value.style.chart.layout.wheel.ticks.rounded ? "round" : "butt",
822
- class: A({
823
- "vue-ui-wheel-tick": !0,
824
- "vue-ui-tick-animated": H.value.style.chart.animation.use && !I(R) && t * Q.value <= q.value
825
- })
826
- }, null, 10, Me))), 256)) : (M(!0), O(w, { key: 1 }, P(kt.value, (e, t) => (M(), O("path", {
827
- d: e.arcSlice,
828
- fill: e.color,
829
- class: A({
830
- "vue-ui-wheel-tick": !0,
831
- "vue-ui-tick-animated": H.value.style.chart.animation.use && !I(R) && t * Q.value <= q.value
832
- }),
833
- stroke: H.value.style.chart.layout.wheel.ticks.stroke,
834
- "stroke-width": H.value.style.chart.layout.wheel.ticks.strokeWidth
835
- }, null, 10, Ne))), 256))], 64)),
836
- H.value.style.chart.layout.percentage.show ? (M(), O("g", {
837
- key: 5,
838
- role: "status",
839
- "aria-live": "polite",
840
- "aria-label": I(nt) ? "..." : Kt.value
841
- }, [I(nt) ? (M(), O("rect", {
842
- key: 0,
843
- x: K.value.centerX - 40,
844
- y: K.value.centerY - G.value / 2,
845
- width: 80,
846
- height: G.value,
847
- fill: "#6A6A6A80",
848
- rx: "3"
849
- }, null, 8, Fe)) : (M(), O("text", {
850
- key: 1,
851
- "aria-hidden": "true",
852
- x: K.value.centerX + H.value.style.chart.layout.percentage.offsetX,
853
- y: K.value.centerY + G.value / 3 + H.value.style.chart.layout.percentage.offsetY,
854
- "font-size": G.value,
855
- fill: H.value.style.chart.layout.wheel.ticks.gradient.show ? I(n)(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,
856
- "text-anchor": "middle",
857
- "font-weight": H.value.style.chart.layout.percentage.bold ? "bold" : "normal",
858
- style: { "font-variant-numeric": "tabluar-nums" },
859
- stroke: H.value.style.chart.layout.percentage.stroke,
860
- "stroke-width": H.value.style.chart.layout.percentage.strokeWidth,
861
- "stroke-linecap": "round",
862
- "stroke-linejoin": "round",
863
- "paint-order": "stroke fill",
864
- class: A({ "vue-ui-wheel-label": H.value.layout === "3d" })
865
- }, pe(Kt.value), 11, Ie))], 8, Pe)) : D("", !0),
866
- F(e.$slots, "svg", { svg: {
867
- ...W.value,
868
- isPrintingImg: I(ct) || I(lt) || Qe.value,
869
- isPrintingSvg: $e.value
870
- } }, void 0, !0)
871
- ], 14, ye)),
872
- e.$slots.watermark ? (M(), O("div", Le, [F(e.$slots, "watermark", j(k({ isPrinting: I(ct) || I(lt) || Qe.value || $e.value })), void 0, !0)])) : D("", !0),
873
- e.$slots.source ? (M(), O("div", {
874
- key: 5,
875
- ref_key: "source",
876
- ref: Ye,
877
- dir: "auto"
878
- }, [F(e.$slots, "source", {}, void 0, !0)], 512)) : D("", !0),
879
- F(e.$slots, "skeleton", {}, () => [I(nt) ? (M(), E(h, { key: 0 })) : D("", !0)], !0)
880
- ], 46, ve));
881
- }
882
- }, [["__scopeId", "data-v-c58856ab"]]);
883
- //#endregion
884
- export { _e as n, Re as t };