vue-data-ui 3.5.2 → 3.7.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 (199) hide show
  1. package/README.md +36 -27
  2. package/dist/{Arrow-BGVin3AS.js → Arrow-CWYIBV-7.js} +1 -1
  3. package/dist/{BaseDraggableDialog-ymf2sfB8.js → BaseDraggableDialog-CRF94NJQ.js} +2 -2
  4. package/dist/{BaseIcon-BmMbm4d0.js → BaseIcon-CofSxalQ.js} +6 -5
  5. package/dist/{ColorPicker-ChuwChMo.js → ColorPicker-e1-OSGlQ.js} +10 -10
  6. package/dist/{DataTable-BT7VF2ua.js → DataTable-CHaOCmsE.js} +2 -2
  7. package/dist/{Legend-G6GMcdAc.js → Legend-Web3GjlR.js} +10 -10
  8. package/dist/{NonSvgPenAndPaper-DVgKKLIf.js → NonSvgPenAndPaper-CjYFLlns.js} +3 -3
  9. package/dist/{PackageVersion-Y7t79Jtq.js → PackageVersion-Bq_mtsqr.js} +1 -1
  10. package/dist/{PenAndPaper-SZQIAgkg.js → PenAndPaper-HCZQTkqi.js} +20 -20
  11. package/dist/{Shape-CNXKB8O0.js → Shape-DE6X_t31.js} +3 -3
  12. package/dist/{Slicer-D2wm0coO.js → Slicer-BFBBG6xv.js} +23 -23
  13. package/dist/{SlicerPreview-ij72TAs6.js → SlicerPreview-D76aSViW.js} +2 -2
  14. package/dist/{SparkTooltip-BEewz-_Q.js → SparkTooltip-B2rpVWE1.js} +6 -6
  15. package/dist/{Title-BzH_LEA3.js → Title-DfFUb9hd.js} +1 -1
  16. package/dist/{Tooltip-oWCO1HKy.js → Tooltip-WD0Ros6G.js} +1 -1
  17. package/dist/{UserOptions-CGnQt6Fd.js → UserOptions-B3I-s3Lw.js} +2 -2
  18. package/dist/components/arrow.js +1 -1
  19. package/dist/components/vue-ui-3d-bar.js +3 -3
  20. package/dist/components/vue-ui-accordion.js +1 -1
  21. package/dist/components/vue-ui-age-pyramid.js +3 -3
  22. package/dist/components/vue-ui-annotator.js +1 -1
  23. package/dist/components/vue-ui-bullet.js +3 -3
  24. package/dist/components/vue-ui-candlestick.js +3 -3
  25. package/dist/components/vue-ui-carousel-table.js +1 -1
  26. package/dist/components/vue-ui-chestnut.js +3 -3
  27. package/dist/components/vue-ui-chord.js +3 -3
  28. package/dist/components/vue-ui-circle-pack.js +3 -3
  29. package/dist/components/vue-ui-cursor.js +1 -1
  30. package/dist/components/vue-ui-dashboard.js +1 -1
  31. package/dist/components/vue-ui-digits.js +1 -1
  32. package/dist/components/vue-ui-donut-evolution.js +2 -2
  33. package/dist/components/vue-ui-donut.js +3 -3
  34. package/dist/components/vue-ui-dumbbell.js +3 -3
  35. package/dist/components/vue-ui-flow.js +3 -3
  36. package/dist/components/vue-ui-funnel.js +2 -2
  37. package/dist/components/vue-ui-galaxy.js +1 -1
  38. package/dist/components/vue-ui-gauge.js +1 -1
  39. package/dist/components/vue-ui-gizmo.js +1 -1
  40. package/dist/components/vue-ui-heatmap.js +1 -1
  41. package/dist/components/vue-ui-history-plot.js +3 -3
  42. package/dist/components/vue-ui-horizontal-bar.js +3 -3
  43. package/dist/components/vue-ui-icon.js +1 -1
  44. package/dist/components/vue-ui-kpi.js +1 -1
  45. package/dist/components/vue-ui-mini-loader.js +1 -1
  46. package/dist/components/vue-ui-molecule.js +3 -3
  47. package/dist/components/vue-ui-mood-radar.js +3 -3
  48. package/dist/components/vue-ui-nested-donuts.js +2 -2
  49. package/dist/components/vue-ui-onion.js +3 -3
  50. package/dist/components/vue-ui-parallel-coordinate-plot.js +1 -1
  51. package/dist/components/vue-ui-quadrant.js +3 -3
  52. package/dist/components/vue-ui-quick-chart.js +3 -3
  53. package/dist/components/vue-ui-radar.js +3 -3
  54. package/dist/components/vue-ui-rating.js +1 -1
  55. package/dist/components/vue-ui-relation-circle.js +3 -3
  56. package/dist/components/vue-ui-ridgeline.js +3 -3
  57. package/dist/components/vue-ui-rings.js +3 -3
  58. package/dist/components/vue-ui-scatter.js +3 -3
  59. package/dist/components/vue-ui-skeleton.js +1 -1
  60. package/dist/components/vue-ui-smiley.js +1 -1
  61. package/dist/components/vue-ui-spark-trend.js +1 -1
  62. package/dist/components/vue-ui-sparkbar.js +2 -2
  63. package/dist/components/vue-ui-sparkgauge.js +3 -3
  64. package/dist/components/vue-ui-sparkhistogram.js +3 -3
  65. package/dist/components/vue-ui-sparkline.js +3 -3
  66. package/dist/components/vue-ui-sparkstackbar.js +2 -2
  67. package/dist/components/vue-ui-stackbar.js +3 -3
  68. package/dist/components/vue-ui-stackline.js +5 -0
  69. package/dist/components/vue-ui-strip-plot.js +3 -3
  70. package/dist/components/vue-ui-table-heatmap.js +1 -1
  71. package/dist/components/vue-ui-table-sparkline.js +2 -2
  72. package/dist/components/vue-ui-table.js +1 -1
  73. package/dist/components/vue-ui-thermometer.js +3 -3
  74. package/dist/components/vue-ui-timer.js +1 -1
  75. package/dist/components/vue-ui-tiremarks.js +2 -2
  76. package/dist/components/vue-ui-treemap.js +3 -3
  77. package/dist/components/vue-ui-vertical-bar.js +1 -1
  78. package/dist/components/vue-ui-waffle.js +2 -2
  79. package/dist/components/vue-ui-wheel.js +1 -1
  80. package/dist/components/vue-ui-word-cloud.js +3 -3
  81. package/dist/components/vue-ui-world.js +1 -1
  82. package/dist/components/vue-ui-xy-canvas.js +3 -3
  83. package/dist/components/vue-ui-xy.js +3 -3
  84. package/dist/{dom-to-png--BNgrTZV.js → dom-to-png-CH2DfsJe.js} +1 -1
  85. package/dist/{img-BecE5qXd.js → img-DUzJeMlr.js} +1 -1
  86. package/dist/{lib-C_mNZmhD.js → lib-C5BH09_g.js} +111 -110
  87. package/dist/{pdf-DuG5j3Wv.js → pdf-BSWQncok.js} +1 -1
  88. package/dist/style.css +1 -1
  89. package/dist/types/vue-data-ui.d.ts +303 -9
  90. package/dist/types/vue-ui-stackline.d.ts +18 -0
  91. package/dist/{useAutoSizeLabelsInsideViewbox-BhzfwQ_k.js → useAutoSizeLabelsInsideViewbox-DOALwU4q.js} +7 -7
  92. package/dist/{useNestedProp-CReNavA0.js → useNestedProp-CWo6bftQ.js} +535 -329
  93. package/dist/{usePrinter-DTzqpYKF.js → usePrinter-DCJzEiS8.js} +2 -2
  94. package/dist/useThemeCheck-DGJ31Vi5.js +32 -0
  95. package/dist/{useTimeLabels-BGFjWgrv.js → useTimeLabels-C5qMhpbe.js} +50 -49
  96. package/dist/{vue-data-ui-BRaq4hRp.js → vue-data-ui-ByLTJx5V.js} +79 -77
  97. package/dist/vue-data-ui.js +226 -204
  98. package/dist/{vue-ui-3d-bar-BB4ii8Nt.js → vue-ui-3d-bar-Dkds4k5N.js} +546 -517
  99. package/dist/{vue-ui-accordion-BmFTVF1a.js → vue-ui-accordion-DSdZUn2C.js} +3 -3
  100. package/dist/vue-ui-age-pyramid-C-fwZRYE.js +960 -0
  101. package/dist/{vue-ui-annotator-CcpaXBNK.js → vue-ui-annotator-DRaH8hXn.js} +7 -7
  102. package/dist/vue-ui-bullet-BKVJRjGh.js +657 -0
  103. package/dist/{vue-ui-candlestick-CMP7UL6z.js → vue-ui-candlestick-BKFWHU4O.js} +596 -561
  104. package/dist/{vue-ui-carousel-table-CzOcKsDj.js → vue-ui-carousel-table-VmPH6y2g.js} +48 -48
  105. package/dist/{vue-ui-chestnut-S787oASt.js → vue-ui-chestnut-DpMHe-OI.js} +534 -505
  106. package/dist/vue-ui-chord-Djdr0PY_.js +1182 -0
  107. package/dist/vue-ui-circle-pack-CyUqNJQt.js +832 -0
  108. package/dist/{vue-ui-cursor-C3yD_TUr.js → vue-ui-cursor-BMe8ZiV6.js} +2 -2
  109. package/dist/{vue-ui-dashboard-BfEcVRxQ.js → vue-ui-dashboard-eBXj-KCw.js} +140 -140
  110. package/dist/{vue-ui-digits-pRh179Gg.js → vue-ui-digits-D382I0-w.js} +2 -2
  111. package/dist/{vue-ui-donut-B_tEm4dT.js → vue-ui-donut-BLb0kj_P.js} +634 -602
  112. package/dist/vue-ui-donut-evolution-BqrldXpI.js +1243 -0
  113. package/dist/vue-ui-dumbbell-BuZT5a-d.js +1258 -0
  114. package/dist/vue-ui-flow-LLp6ntEP.js +1026 -0
  115. package/dist/vue-ui-funnel-pILUR-OG.js +743 -0
  116. package/dist/vue-ui-galaxy-X6yiw8kx.js +837 -0
  117. package/dist/vue-ui-gauge-DBh-vFb9.js +864 -0
  118. package/dist/{vue-ui-gizmo-BQzQlUJ8.js → vue-ui-gizmo-DtyEukIP.js} +3 -3
  119. package/dist/{vue-ui-heatmap-C9MhHWpp.js → vue-ui-heatmap-mkD6QkXo.js} +501 -466
  120. package/dist/vue-ui-history-plot-CyTaBaxA.js +1239 -0
  121. package/dist/{vue-ui-kpi-jcrPjW4C.js → vue-ui-kpi-CKMZDc3n.js} +3 -3
  122. package/dist/{vue-ui-mini-loader-DTM98mRN.js → vue-ui-mini-loader-BN72OfS0.js} +2 -2
  123. package/dist/vue-ui-molecule-UzQ3o5HW.js +782 -0
  124. package/dist/vue-ui-mood-radar-C2zkRLGy.js +930 -0
  125. package/dist/vue-ui-nested-donuts-B5OpvmJ9.js +1454 -0
  126. package/dist/vue-ui-onion-DbhIOGtF.js +944 -0
  127. package/dist/vue-ui-parallel-coordinate-plot-Dv_T4mWW.js +1080 -0
  128. package/dist/{vue-ui-quadrant-CeM23s0z.js → vue-ui-quadrant-CG6_CWsQ.js} +510 -481
  129. package/dist/{vue-ui-quick-chart-C0RMQzjC.js → vue-ui-quick-chart-DOeRhk7r.js} +795 -758
  130. package/dist/vue-ui-radar-DdHa9Hsh.js +1013 -0
  131. package/dist/{vue-ui-rating-tj97undO.js → vue-ui-rating-DtzmtJwF.js} +26 -26
  132. package/dist/vue-ui-relation-circle-B5lL4l9w.js +670 -0
  133. package/dist/vue-ui-ridgeline-3pk4Mlft.js +1302 -0
  134. package/dist/vue-ui-rings-DhyrjrZi.js +884 -0
  135. package/dist/vue-ui-scatter-DKCD70mi.js +1619 -0
  136. package/dist/{vue-ui-skeleton-87TORm6s.js → vue-ui-skeleton-CzzdmraB.js} +3 -3
  137. package/dist/{vue-ui-smiley-B74geHT3.js → vue-ui-smiley-OYyM-ukP.js} +2 -2
  138. package/dist/vue-ui-spark-trend-BMTcxeCT.js +364 -0
  139. package/dist/vue-ui-sparkbar-DVk1JiPL.js +381 -0
  140. package/dist/vue-ui-sparkgauge-Cq9Nw_xu.js +260 -0
  141. package/dist/vue-ui-sparkhistogram-PFHlCE_k.js +411 -0
  142. package/dist/vue-ui-sparkline-BHHwO_cV.js +549 -0
  143. package/dist/vue-ui-sparkstackbar-BosVkkiC.js +470 -0
  144. package/dist/vue-ui-stackbar-Djk5CPUy.js +1867 -0
  145. package/dist/vue-ui-stackline-mU4CSol9.js +1963 -0
  146. package/dist/{vue-ui-strip-plot-C1N2n39d.js → vue-ui-strip-plot-CZQSL0GK.js} +343 -314
  147. package/dist/{vue-ui-table-CcuoPHgI.js → vue-ui-table-DMM090pe.js} +5 -5
  148. package/dist/vue-ui-table-heatmap-vQEFrjCX.js +307 -0
  149. package/dist/{vue-ui-table-sparkline-BAxmZRff.js → vue-ui-table-sparkline-CQJc0mJY.js} +292 -263
  150. package/dist/vue-ui-thermometer-D1uxoVeZ.js +613 -0
  151. package/dist/{vue-ui-timer-BVsUQJz_.js → vue-ui-timer-jTnS3ES5.js} +25 -25
  152. package/dist/vue-ui-tiremarks-Bv-oIFVV.js +477 -0
  153. package/dist/vue-ui-treemap-B9MVtunp.js +1359 -0
  154. package/dist/{vue-ui-vertical-bar-B3gfBqD_.js → vue-ui-vertical-bar-BSbDj5qZ.js} +520 -485
  155. package/dist/{vue-ui-waffle-Bhlqo4xM.js → vue-ui-waffle-DIALVfvc.js} +376 -347
  156. package/dist/vue-ui-wheel-aUhrFpGk.js +690 -0
  157. package/dist/vue-ui-word-cloud-DZmMWsUu.js +904 -0
  158. package/dist/{vue-ui-world-C8KVyDim.js → vue-ui-world-CVLlgp2f.js} +57 -57
  159. package/dist/vue-ui-xy-Cy7mOurZ.js +3455 -0
  160. package/dist/vue-ui-xy-canvas-Cr13t9M5.js +1599 -0
  161. package/dist/vue_ui_vertical_bar-CELc39b8.js +18 -0
  162. package/package.json +5 -5
  163. package/dist/themes-AUNCOb2G.js +0 -53
  164. package/dist/vue-ui-age-pyramid-8bUepd28.js +0 -933
  165. package/dist/vue-ui-bullet-BvT4scFv.js +0 -630
  166. package/dist/vue-ui-chord-Dl9Y4mcz.js +0 -1153
  167. package/dist/vue-ui-circle-pack-CU09BzOV.js +0 -803
  168. package/dist/vue-ui-donut-evolution-DiGhMwMO.js +0 -1208
  169. package/dist/vue-ui-dumbbell-BlF3CLbN.js +0 -1231
  170. package/dist/vue-ui-flow-BQi5L8mJ.js +0 -991
  171. package/dist/vue-ui-funnel-CM_6Sare.js +0 -716
  172. package/dist/vue-ui-galaxy-BnZA62Li.js +0 -808
  173. package/dist/vue-ui-gauge-DAk72bez.js +0 -835
  174. package/dist/vue-ui-history-plot-BYQh3E8U.js +0 -1204
  175. package/dist/vue-ui-molecule-Bd1OXvl3.js +0 -753
  176. package/dist/vue-ui-mood-radar-DuoiTsYn.js +0 -903
  177. package/dist/vue-ui-nested-donuts-BTswQFjz.js +0 -1419
  178. package/dist/vue-ui-onion-D-1U2Qgl.js +0 -915
  179. package/dist/vue-ui-parallel-coordinate-plot-D-7VFHas.js +0 -1051
  180. package/dist/vue-ui-radar-BSfxyur3.js +0 -984
  181. package/dist/vue-ui-relation-circle-C7uV2mIj.js +0 -641
  182. package/dist/vue-ui-ridgeline-CYMfTlwI.js +0 -1273
  183. package/dist/vue-ui-rings-C96aj57d.js +0 -855
  184. package/dist/vue-ui-scatter-CtvOXUnx.js +0 -1590
  185. package/dist/vue-ui-spark-trend-6_Ibziyv.js +0 -337
  186. package/dist/vue-ui-sparkbar-BDCocMLI.js +0 -352
  187. package/dist/vue-ui-sparkgauge-CQ4Zk9-f.js +0 -233
  188. package/dist/vue-ui-sparkhistogram-BlTV9wfn.js +0 -384
  189. package/dist/vue-ui-sparkline-DWESyiqL.js +0 -514
  190. package/dist/vue-ui-sparkstackbar-DK_7X8mL.js +0 -441
  191. package/dist/vue-ui-stackbar-BWuw8ff4.js +0 -1827
  192. package/dist/vue-ui-table-heatmap-C9EMEM3Z.js +0 -282
  193. package/dist/vue-ui-thermometer-CDrM-WFq.js +0 -584
  194. package/dist/vue-ui-tiremarks-BQH2pNkG.js +0 -450
  195. package/dist/vue-ui-treemap-6WLoCHsH.js +0 -1330
  196. package/dist/vue-ui-wheel-CqHw1WuW.js +0 -663
  197. package/dist/vue-ui-word-cloud-CKuWZGLv.js +0 -875
  198. package/dist/vue-ui-xy-Cz2qIEfi.js +0 -3424
  199. package/dist/vue-ui-xy-canvas-y4h7gEFp.js +0 -1564
@@ -1,835 +0,0 @@
1
- import { defineAsyncComponent as K, computed as d, ref as y, toRefs as at, watch as Q, shallowRef as ze, onMounted as lt, onBeforeUnmount as ot, createElementBlock as r, openBlock as s, unref as u, normalizeStyle as ee, normalizeClass as Ce, createBlock as W, createCommentVNode as c, createElementVNode as k, withCtx as b, renderSlot as h, normalizeProps as C, guardReactiveProps as F, toDisplayString as T, createSlots as st, createVNode as rt, Fragment as S, renderList as z, mergeProps as L, nextTick as nt } from "vue";
2
- import { c as ut, t as it, b as ct, p as Fe, e as vt, o as Ae, h as dt, f as D, g as Oe, T as te, _ as M, a6 as ht, x as ft, X as yt, s as ae, M as gt, Y as mt, a as le, d as oe, R as se } from "./lib-C_mNZmhD.js";
3
- import { t as pt, u as kt } from "./useResponsive-DfdjqQps.js";
4
- import { u as bt, B as St } from "./BaseScanner-BgWxam9d.js";
5
- import { u as _t } from "./usePrinter-DTzqpYKF.js";
6
- import { u as wt, a as Me } from "./useNestedProp-CReNavA0.js";
7
- import { u as xt } from "./useSvgExport-DrjCWun4.js";
8
- import { u as $t } from "./useUserOptionState-BIvW1Kz7.js";
9
- import { u as zt } from "./useChartAccessibility-9icAAmYg.js";
10
- import { u as Ct } from "./useAutoSizeLabelsInsideViewbox-BhzfwQ_k.js";
11
- import Ft from "./img-BecE5qXd.js";
12
- import { t as At } from "./themes-AUNCOb2G.js";
13
- import Ot from "./Title-BzH_LEA3.js";
14
- import { _ as Mt } from "./_plugin-vue_export-helper-CHgC5LLL.js";
15
- const Nt = ["id"], Pt = { key: 0 }, It = ["xmlns", "viewBox"], Xt = ["width", "height"], Rt = ["id"], Yt = ["stop-color"], Tt = ["stop-color"], Et = ["stop-color"], Lt = ["id"], Gt = ["stdDeviation"], Bt = { key: 1 }, Ut = ["d", "fill", "stroke"], jt = ["d", "fill", "stroke"], Wt = ["d", "fill"], Dt = ["id", "d"], Vt = ["fill", "font-size", "font-weight"], Ht = ["href", "startOffset"], qt = ["text-anchor", "fill", "font-size", "font-weight", "innerHTML"], Zt = ["d", "filter"], Jt = ["stroke", "stroke-width"], Kt = ["stroke", "stroke-width"], Qt = ["stroke", "stroke-width"], ea = ["stroke", "stroke-width"], ta = { key: 8 }, aa = ["x", "y", "text-anchor", "font-size", "font-weight", "fill"], la = ["x", "y", "font-size", "font-weight", "fill"], oa = { key: 0 }, sa = ["x1", "y1", "x2", "y2", "stroke", "stroke-width"], ra = ["x1", "y1", "x2", "y2", "stroke", "stroke-width"], na = ["x1", "y1", "x2", "y2", "stroke-width", "filter"], ua = { key: 1 }, ia = ["d", "fill", "stroke", "stroke-width"], ca = ["cx", "cy", "fill", "r", "stroke-width", "stroke"], va = ["x", "y", "font-size", "fill"], da = {
16
- key: 4,
17
- class: "vue-data-ui-watermark"
18
- }, ha = {
19
- __name: "vue-ui-gauge",
20
- props: {
21
- config: {
22
- type: Object,
23
- default() {
24
- return {};
25
- }
26
- },
27
- dataset: {
28
- type: Object,
29
- default() {
30
- return {};
31
- }
32
- }
33
- },
34
- setup(Ne, { expose: Pe }) {
35
- const Ie = K(() => import("./PenAndPaper-SZQIAgkg.js")), Xe = K(() => import("./UserOptions-CGnQt6Fd.js")), Re = K(() => import("./PackageVersion-Y7t79Jtq.js")), { vue_ui_gauge: Ye } = wt(), p = Ne, Te = d(() => !!p.dataset && Object.keys(p.dataset).length > 0 && p.dataset.series && p.dataset.series.length), x = y(ut()), Ee = y(null), re = y(0), N = y(null), ne = y(null), ue = y(null), ie = y(null), ce = y(null), ve = y(0), e = y(H()), { loading: de, FINAL_DATASET: $, manualLoading: X } = bt({
36
- ...at(p),
37
- FINAL_CONFIG: e,
38
- prepareConfig: H,
39
- callback: () => {
40
- Promise.resolve().then(async () => {
41
- await nt();
42
- });
43
- },
44
- skeletonDataset: {
45
- value: 0,
46
- series: [
47
- { from: -1, to: 0, name: "_", color: "#A1A1A1" },
48
- { from: 0, to: 1, name: "__", color: "#CACACA" }
49
- ]
50
- },
51
- skeletonConfig: it({
52
- defaultConfig: e.value,
53
- userConfig: {
54
- userOptions: { show: !1 },
55
- style: {
56
- chart: {
57
- backgroundColor: "#99999930",
58
- animation: { use: !1 },
59
- layout: {
60
- markers: { show: !1 },
61
- segmentSeparators: { stroke: "#6A6A6A" },
62
- segmentNames: { show: !1 },
63
- indicatorArc: { fill: "#6A6A6A50" },
64
- pointer: {
65
- stroke: "#6A6A6A",
66
- useRatingColor: !0,
67
- circle: {
68
- stroke: "#6A6A6A",
69
- color: "#6A6A6A"
70
- }
71
- }
72
- },
73
- legend: {
74
- show: !1
75
- }
76
- }
77
- }
78
- }
79
- })
80
- }), { userOptionsVisible: V, setUserOptionsVisibility: he, keepUserOptionState: fe } = $t({ config: e.value }), { svgRef: G } = zt({ config: e.value.style.chart.title });
81
- Q(() => p.config, (t) => {
82
- de.value || (e.value = H()), V.value = !e.value.userOptions.showOnChartHover, Z(), ve.value += 1;
83
- }, { deep: !0 }), Q(() => p.dataset, (t) => {
84
- Z(), t && Object.keys(t).length > 0 && (X.value = e.value?.loading ?? !1);
85
- }, { deep: !0, immediate: !1 });
86
- function H() {
87
- const t = Me({
88
- userConfig: p.config,
89
- defaultConfig: Ye
90
- });
91
- return t.theme ? {
92
- ...Me({
93
- userConfig: At.vue_ui_gauge[t.theme] || p.config,
94
- defaultConfig: t
95
- }),
96
- customPalette: ct[t.theme] || Fe
97
- } : t;
98
- }
99
- const { isPrinting: ye, isImaging: ge, generatePdf: me, generateImage: pe } = _t({
100
- elementId: `vue-ui-gauge_${x.value}`,
101
- fileName: e.value.style.chart.title.text || "vue-ui-gauge",
102
- options: e.value.userOptions.print
103
- }), Le = d(() => e.value.userOptions.show && !e.value.style.chart.title.text), Ge = d(() => vt(e.value.customPalette)), P = d(() => {
104
- if (Ae($.value.series || {}))
105
- return {
106
- value: 0,
107
- series: [
108
- {
109
- from: 0,
110
- to: 0
111
- }
112
- ]
113
- };
114
- const t = [];
115
- ($.value.series || []).forEach((a) => {
116
- t.push(a.from || 1e-7), t.push(a.to || 1e-7);
117
- });
118
- const n = Math.max(...t);
119
- return {
120
- ...$.value,
121
- series: ($.value.series || []).map((a, l) => ({
122
- ...a,
123
- color: dt(a.color) || Ge.value[l] || Fe[l],
124
- value: ((a.to || 0) - (a.from || 0)) / n * 100
125
- }))
126
- };
127
- }), _ = y(512), o = y({
128
- height: 358.4,
129
- width: _.value,
130
- top: 0,
131
- bottom: 358.4,
132
- centerX: 179.2,
133
- centerY: _.value / 2,
134
- labelFontSize: 18,
135
- legendFontSize: e.value.style.chart.legend.fontSize,
136
- pointerRadius: e.value.style.chart.layout.pointer.circle.radius,
137
- trackSize: e.value.style.chart.layout.track.size,
138
- pointerSize: e.value.style.chart.layout.pointer.size,
139
- pointerStrokeWidth: e.value.style.chart.layout.pointer.strokeWidth,
140
- markerOffset: e.value.style.chart.layout.markers.offsetY + 3,
141
- segmentFontSize: e.value.style.chart.layout.segmentNames.fontSize
142
- }), R = y(0), A = y(0), g = y(
143
- e.value.style.chart.animation.use ? Math.min(...$.value.series.map((t) => t.from)) : $.value.value
144
- );
145
- Q(() => $.value.value, () => {
146
- Se($.value.value);
147
- });
148
- const i = d(() => {
149
- const t = o.value.width / 2, n = v.value.base, a = Math.PI * ((g.value + 0 - A.value) / (R.value - A.value)) + Math.PI;
150
- return {
151
- x1: t,
152
- y1: n,
153
- x2: t + v.value.pointerSize * o.value.pointerSize * 0.9 * Math.cos(a),
154
- y2: n + v.value.pointerSize * o.value.pointerSize * 0.9 * Math.sin(a)
155
- };
156
- }), ke = d(() => {
157
- const t = o.value.width / 2, n = v.value.base, a = Math.PI * ((g.value + 0 - A.value) / (R.value - A.value)) + Math.PI, l = t + v.value.pointerSize * o.value.pointerSize * 0.9 * Math.cos(a), m = n + v.value.pointerSize * o.value.pointerSize * 0.9 * Math.sin(a), w = o.value.pointerRadius, Ke = t + w * Math.cos(a + Math.PI / 2), Qe = n + w * Math.sin(a + Math.PI / 2), et = t + w * Math.cos(a - Math.PI / 2), tt = n + w * Math.sin(a - Math.PI / 2);
158
- return isNaN(l) ? null : `M ${l},${m} ${Ke},${Qe} ${et},${tt} Z`;
159
- }), q = d(() => {
160
- for (let t = 0; t < P.value.series.length; t += 1) {
161
- const { color: n, from: a, to: l } = P.value.series[t];
162
- if (g.value >= a && g.value <= l)
163
- return n;
164
- }
165
- return "#2D353C";
166
- }), O = ze(null), Y = ze(null), B = d({
167
- get: () => o.value.segmentFontSize,
168
- set: (t) => t
169
- }), { autoSizeLabels: be } = Ct({
170
- svgRef: G,
171
- fontSize: o.value.segmentFontSize,
172
- minFontSize: e.value.style.chart.layout.segmentNames.minFontSize,
173
- sizeRef: B,
174
- labelClass: ".vue-ui-gauge-label-flat"
175
- }), U = d(() => !!e.value.debug);
176
- function Z() {
177
- let t = !1;
178
- if (Ae(p.dataset) ? (D({
179
- componentName: "VueUiGauge",
180
- type: "dataset",
181
- debug: U.value
182
- }), X.value = !0, t = !0) : (Oe({
183
- datasetObject: p.dataset,
184
- requiredAttributes: ["value", "series"]
185
- }).forEach((n) => {
186
- D({
187
- componentName: "VueUiGauge",
188
- type: "datasetAttribute",
189
- property: n,
190
- debug: U.value
191
- }), X.value = !0, t = !0;
192
- }), Object.hasOwn(p.dataset, "series") && (p.dataset.series.length ? p.dataset.series.forEach((n, a) => {
193
- Oe({
194
- datasetObject: n,
195
- requiredAttributes: ["from", "to"]
196
- }).forEach((l) => {
197
- D({
198
- componentName: "VueUiGauge",
199
- type: "datasetSerieAttribute",
200
- property: l,
201
- index: a,
202
- debug: U.value
203
- }), X.value = !0, t = !0;
204
- });
205
- }) : (D({
206
- componentName: "VueUiGauge",
207
- type: "datasetAttributeEmpty",
208
- property: "series",
209
- debug: U.value
210
- }), X.value = !0, t = !0))), X.value = t, Se($.value.value || 0), e.value.responsive) {
211
- const n = pt(() => {
212
- let { width: a, height: l } = kt({
213
- chart: N.value,
214
- title: e.value.style.chart.title.text ? ne.value : null,
215
- legend: ue.value,
216
- source: ie.value,
217
- noTitle: ce.value
218
- });
219
- l -= 12, requestAnimationFrame(() => {
220
- o.value.width = a, o.value.height = l, o.value.centerX = a / 2, o.value.centerY = _.value / 2 / 358.4 * l, o.value.bottom = l, o.value.labelFontSize = 18 / _.value * Math.min(l, a) < 10 ? 10 : 18 / _.value * Math.min(l, a), o.value.legendFontSize = e.value.style.chart.legend.fontSize / _.value * Math.min(l, a) < 14 ? 14 : e.value.style.chart.legend.fontSize / _.value * Math.min(l, a), o.value.pointerRadius = e.value.style.chart.layout.pointer.circle.radius / _.value * Math.min(l, a), o.value.trackSize = e.value.style.chart.layout.track.size / _.value * Math.min(l, a), o.value.pointerStrokeWidth = se({
221
- relator: Math.min(a, l),
222
- adjuster: _.value,
223
- source: e.value.style.chart.layout.pointer.strokeWidth,
224
- threshold: 2,
225
- fallback: 2
226
- }), o.value.markerOffset = se({
227
- relator: Math.max(a, l),
228
- adjuster: _.value,
229
- source: e.value.style.chart.layout.markers.offsetY + 3,
230
- threshold: 2,
231
- fallback: 2
232
- }), o.value.segmentFontSize = se({
233
- relator: Math.min(a, l),
234
- adjuster: _.value,
235
- source: e.value.style.chart.layout.segmentNames.fontSize,
236
- threshold: 8,
237
- fallback: 8
238
- });
239
- }), be();
240
- });
241
- O.value && (Y.value && O.value.unobserve(Y.value), O.value.disconnect()), O.value = new ResizeObserver(n), Y.value = N.value.parentNode, O.value.observe(Y.value);
242
- }
243
- be();
244
- }
245
- lt(() => {
246
- Z();
247
- }), ot(() => {
248
- O.value && (Y.value && O.value.unobserve(Y.value), O.value.disconnect());
249
- });
250
- function Se(t) {
251
- const n = [];
252
- (P.value.series || []).forEach((w) => {
253
- n.push(w.from || 0), n.push(w.to || 0);
254
- }), R.value = Math.max(...n), A.value = Math.min(...n);
255
- let a = e.value.style.chart.animation.speed;
256
- const l = Math.abs(t - g.value) / (a * 60);
257
- function m() {
258
- g.value < t ? g.value = Math.min(g.value + l, t) : g.value > t && (g.value = Math.max(g.value - l, t)), g.value !== t && requestAnimationFrame(m);
259
- }
260
- m();
261
- }
262
- const v = d(() => {
263
- const t = e.value.responsive ? Math.min(o.value.width, o.value.height) : o.value.width, n = 2.5 / e.value.style.chart.layout.radiusRatio;
264
- return {
265
- arcs: t / n,
266
- gradients: t / (n * 1.1),
267
- base: e.value.responsive ? o.value.height / 1.618 : o.value.height * 0.7,
268
- ratingBase: e.value.responsive ? o.value.height / 2 + o.value.height / 4 : o.value.height * 0.9,
269
- pointerSize: e.value.responsive ? Math.min(o.value.width, o.value.height) / 3 : o.value.width / 3.2
270
- };
271
- }), f = d(() => te(
272
- { series: P.value.series },
273
- o.value.width / 2,
274
- v.value.base,
275
- v.value.arcs,
276
- v.value.arcs,
277
- 1,
278
- 1,
279
- 1,
280
- 180,
281
- 109.9495,
282
- 40 * o.value.trackSize
283
- )), Be = d(() => te(
284
- { series: P.value.series },
285
- o.value.width / 2,
286
- v.value.base,
287
- v.value.arcs * e.value.style.chart.layout.segmentNames.offsetRatio,
288
- v.value.arcs * e.value.style.chart.layout.segmentNames.offsetRatio,
289
- 1,
290
- 1,
291
- 1,
292
- 180,
293
- 109.9495,
294
- 40 * o.value.trackSize
295
- )), I = d(() => f.value.map((t) => v.value.arcs * e.value.style.chart.layout.segmentNames.offsetRatio * (t.nameOffsetRatio || 1))), _e = d(() => {
296
- const { x: t, y: n } = M({
297
- initX: f.value[0].firstSeparator.x,
298
- initY: f.value[0].firstSeparator.y,
299
- centerX: i.value.x1,
300
- centerY: i.value.y1,
301
- offset: -e.value.style.chart.layout.segmentSeparators.offsetIn
302
- }), { x: a, y: l } = M({
303
- initX: f.value[0].startX,
304
- initY: f.value[0].startY,
305
- centerX: i.value.x1,
306
- centerY: i.value.y1,
307
- offset: e.value.style.chart.layout.segmentSeparators.offsetOut
308
- });
309
- return { x1: t, y1: n, x2: a, y2: l };
310
- }), we = d(() => f.value.map((t) => {
311
- const { x: n, y: a } = M({
312
- initX: t.separator.x,
313
- initY: t.separator.y,
314
- centerX: i.value.x1,
315
- centerY: i.value.y1,
316
- offset: -e.value.style.chart.layout.segmentSeparators.offsetIn
317
- }), { x: l, y: m } = M({
318
- initX: t.endX,
319
- initY: t.endY,
320
- centerX: i.value.x1,
321
- centerY: i.value.y1,
322
- offset: e.value.style.chart.layout.segmentSeparators.offsetOut
323
- });
324
- return { x1: n, y1: a, x2: l, y2: m };
325
- }));
326
- function Ue(t) {
327
- if (t.reduce((m, w) => m + w, 0) > 100)
328
- throw new Error("Total % must not exceed 100");
329
- const a = 50;
330
- let l = 0;
331
- return t.map((m) => (l += m, `${l / 100 * a - m / 4}%`));
332
- }
333
- const je = d(() => Ue(f.value.map((t) => t.proportion * 100))), We = d(() => te(
334
- { series: P.value.series },
335
- o.value.width / 2,
336
- v.value.base,
337
- v.value.gradients,
338
- v.value.gradients,
339
- 0.95,
340
- 1,
341
- 1,
342
- 180,
343
- 110.02,
344
- 2 * o.value.trackSize
345
- )), De = d(() => {
346
- const t = A.value >= 0 ? -A.value : Math.abs(A.value);
347
- return ht({
348
- radius: e.value.style.chart.layout.indicatorArc.radius * o.value.trackSize,
349
- centerX: o.value.width / 2,
350
- centerY: v.value.base,
351
- percentage: ft((g.value + t) / (R.value + t))
352
- });
353
- }), E = y(!1);
354
- function xe(t) {
355
- E.value = t, re.value += 1;
356
- }
357
- const j = y(!1);
358
- function J() {
359
- j.value = !j.value;
360
- }
361
- async function Ve({ scale: t = 2 } = {}) {
362
- if (!N.value) return;
363
- const { width: n, height: a } = N.value.getBoundingClientRect(), l = n / a, { imageUri: m, base64: w } = await Ft({ domElement: N.value, base64: !0, img: !0, scale: t });
364
- return {
365
- imageUri: m,
366
- base64: w,
367
- title: e.value.style.chart.title.text,
368
- width: n,
369
- height: a,
370
- aspectRatio: l
371
- };
372
- }
373
- const He = d(() => e.value.style.chart.backgroundColor), qe = d(() => e.value.style.chart.title), { exportSvg: Ze, getSvg: Je } = xt({
374
- svg: G,
375
- title: qe,
376
- backgroundColor: He
377
- });
378
- async function $e({ isCb: t }) {
379
- if (t) {
380
- const { blob: n, url: a, text: l, dataUrl: m } = await Je();
381
- e.value.userOptions.callbacks.svg({ blob: n, url: a, text: l, dataUrl: m });
382
- } else
383
- Ze();
384
- }
385
- return Pe({
386
- getImage: Ve,
387
- generatePdf: me,
388
- generateImage: pe,
389
- generateSvg: $e,
390
- toggleAnnotator: J,
391
- toggleFullscreen: xe
392
- }), (t, n) => (s(), r("div", {
393
- class: Ce(`vue-data-ui-component vue-ui-gauge ${E.value ? "vue-data-ui-wrapper-fullscreen" : ""}`),
394
- ref_key: "gaugeChart",
395
- ref: N,
396
- id: `vue-ui-gauge_${x.value}`,
397
- style: ee(`font-family:${e.value.style.fontFamily};width:100%; text-align:center;background:${e.value.style.chart.backgroundColor};${e.value.responsive ? "height: 100%" : ""}`),
398
- onMouseenter: n[0] || (n[0] = () => u(he)(!0)),
399
- onMouseleave: n[1] || (n[1] = () => u(he)(!1))
400
- }, [
401
- e.value.userOptions.buttons.annotator ? (s(), W(u(Ie), {
402
- key: 0,
403
- svgRef: u(G),
404
- backgroundColor: e.value.style.chart.backgroundColor,
405
- color: e.value.style.chart.color,
406
- active: j.value,
407
- onClose: J
408
- }, {
409
- "annotator-action-close": b(() => [
410
- h(t.$slots, "annotator-action-close", {}, void 0, !0)
411
- ]),
412
- "annotator-action-color": b(({ color: a }) => [
413
- h(t.$slots, "annotator-action-color", C(F({ color: a })), void 0, !0)
414
- ]),
415
- "annotator-action-draw": b(({ mode: a }) => [
416
- h(t.$slots, "annotator-action-draw", C(F({ mode: a })), void 0, !0)
417
- ]),
418
- "annotator-action-undo": b(({ disabled: a }) => [
419
- h(t.$slots, "annotator-action-undo", C(F({ disabled: a })), void 0, !0)
420
- ]),
421
- "annotator-action-redo": b(({ disabled: a }) => [
422
- h(t.$slots, "annotator-action-redo", C(F({ disabled: a })), void 0, !0)
423
- ]),
424
- "annotator-action-delete": b(({ disabled: a }) => [
425
- h(t.$slots, "annotator-action-delete", C(F({ disabled: a })), void 0, !0)
426
- ]),
427
- _: 3
428
- }, 8, ["svgRef", "backgroundColor", "color", "active"])) : c("", !0),
429
- Le.value ? (s(), r("div", {
430
- key: 1,
431
- ref_key: "noTitle",
432
- ref: ce,
433
- class: "vue-data-ui-no-title-space",
434
- style: "height:36px; width: 100%;background:transparent"
435
- }, null, 512)) : c("", !0),
436
- e.value.style.chart.title.text ? (s(), r("div", {
437
- key: 2,
438
- ref_key: "chartTitle",
439
- ref: ne,
440
- style: "width:100%;background:transparent;padding-bottom:12px"
441
- }, [
442
- (s(), W(Ot, {
443
- key: `title_${ve.value}`,
444
- config: {
445
- title: {
446
- cy: "gauge-div-title",
447
- ...e.value.style.chart.title
448
- },
449
- subtitle: {
450
- cy: "gauge-div-subtitle",
451
- ...e.value.style.chart.title.subtitle
452
- }
453
- }
454
- }, {
455
- default: b(() => [
456
- e.value.translations.base && u($).base ? (s(), r("span", Pt, T(e.value.translations.base) + ": " + T(u($).base), 1)) : c("", !0)
457
- ]),
458
- _: 1
459
- }, 8, ["config"]))
460
- ], 512)) : c("", !0),
461
- e.value.userOptions.show && Te.value && (u(fe) || u(V)) ? (s(), W(u(Xe), {
462
- ref_key: "details",
463
- ref: Ee,
464
- key: `user_options_${re.value}`,
465
- backgroundColor: e.value.style.chart.backgroundColor,
466
- color: e.value.style.chart.color,
467
- isImaging: u(ge),
468
- isPrinting: u(ye),
469
- uid: x.value,
470
- hasXls: !1,
471
- hasPdf: e.value.userOptions.buttons.pdf,
472
- hasImg: e.value.userOptions.buttons.img,
473
- hasSvg: e.value.userOptions.buttons.svg,
474
- hasFullscreen: e.value.userOptions.buttons.fullscreen,
475
- isFullscreen: E.value,
476
- titles: { ...e.value.userOptions.buttonTitles },
477
- chartElement: N.value,
478
- callbacks: e.value.userOptions.callbacks,
479
- printScale: e.value.userOptions.print.scale,
480
- position: e.value.userOptions.position,
481
- hasAnnotator: e.value.userOptions.buttons.annotator,
482
- isAnnotation: j.value,
483
- onToggleFullscreen: xe,
484
- onGeneratePdf: u(me),
485
- onGenerateImage: u(pe),
486
- onGenerateSvg: $e,
487
- onToggleAnnotator: J,
488
- style: ee({
489
- visibility: u(fe) ? u(V) ? "visible" : "hidden" : "visible"
490
- })
491
- }, st({ _: 2 }, [
492
- t.$slots.menuIcon ? {
493
- name: "menuIcon",
494
- fn: b(({ isOpen: a, color: l }) => [
495
- h(t.$slots, "menuIcon", C(F({ isOpen: a, color: l })), void 0, !0)
496
- ]),
497
- key: "0"
498
- } : void 0,
499
- t.$slots.optionPdf ? {
500
- name: "optionPdf",
501
- fn: b(() => [
502
- h(t.$slots, "optionPdf", {}, void 0, !0)
503
- ]),
504
- key: "1"
505
- } : void 0,
506
- t.$slots.optionImg ? {
507
- name: "optionImg",
508
- fn: b(() => [
509
- h(t.$slots, "optionImg", {}, void 0, !0)
510
- ]),
511
- key: "2"
512
- } : void 0,
513
- t.$slots.optionSvg ? {
514
- name: "optionSvg",
515
- fn: b(() => [
516
- h(t.$slots, "optionSvg", {}, void 0, !0)
517
- ]),
518
- key: "3"
519
- } : void 0,
520
- t.$slots.optionFullscreen ? {
521
- name: "optionFullscreen",
522
- fn: b(({ toggleFullscreen: a, isFullscreen: l }) => [
523
- h(t.$slots, "optionFullscreen", C(F({ toggleFullscreen: a, isFullscreen: l })), void 0, !0)
524
- ]),
525
- key: "4"
526
- } : void 0,
527
- t.$slots.optionAnnotator ? {
528
- name: "optionAnnotator",
529
- fn: b(({ toggleAnnotator: a, isAnnotator: l }) => [
530
- h(t.$slots, "optionAnnotator", C(F({ toggleAnnotator: a, isAnnotator: l })), void 0, !0)
531
- ]),
532
- key: "5"
533
- } : void 0
534
- ]), 1032, ["backgroundColor", "color", "isImaging", "isPrinting", "uid", "hasPdf", "hasImg", "hasSvg", "hasFullscreen", "isFullscreen", "titles", "chartElement", "callbacks", "printScale", "position", "hasAnnotator", "isAnnotation", "onGeneratePdf", "onGenerateImage", "style"])) : c("", !0),
535
- (s(), r("svg", {
536
- ref_key: "svgRef",
537
- ref: G,
538
- xmlns: u(yt),
539
- class: Ce({ "vue-data-ui-fullscreen--on": E.value, "vue-data-ui-fulscreen--off": !E.value }),
540
- viewBox: `0 0 ${o.value.width <= 0 ? 10 : o.value.width} ${o.value.height <= 0 ? 10 : o.value.height}`,
541
- style: ee(`max-width:100%;overflow:hidden !important;background:transparent;color:${e.value.style.chart.color}`)
542
- }, [
543
- rt(u(Re)),
544
- t.$slots["chart-background"] ? (s(), r("foreignObject", {
545
- key: 0,
546
- x: 0,
547
- y: 0,
548
- width: o.value.width <= 0 ? 10 : o.value.width,
549
- height: o.value.height <= 0 ? 10 : o.value.height,
550
- style: {
551
- pointerEvents: "none"
552
- }
553
- }, [
554
- h(t.$slots, "chart-background", {}, void 0, !0)
555
- ], 8, Xt)) : c("", !0),
556
- k("defs", null, [
557
- k("radialGradient", {
558
- id: `gradient_${x.value}`,
559
- cx: "50%",
560
- cy: "50%",
561
- r: "50%",
562
- fx: "50%",
563
- fy: "50%"
564
- }, [
565
- k("stop", {
566
- offset: "0%",
567
- "stop-color": u(ae)("#FFFFFF", 1)
568
- }, null, 8, Yt),
569
- k("stop", {
570
- offset: "80%",
571
- "stop-color": u(ae)("#FFFFFF", e.value.style.chart.layout.track.gradientIntensity)
572
- }, null, 8, Tt),
573
- k("stop", {
574
- offset: "100%",
575
- "stop-color": u(ae)("#FFFFFF", 1)
576
- }, null, 8, Et)
577
- ], 8, Rt)
578
- ]),
579
- k("defs", null, [
580
- k("filter", {
581
- id: `blur_${x.value}`,
582
- x: "-50%",
583
- y: "-50%",
584
- width: "200%",
585
- height: "200%"
586
- }, [
587
- k("feGaussianBlur", {
588
- in: "SourceGraphic",
589
- stdDeviation: 100 / e.value.style.chart.layout.track.gradientIntensity
590
- }, null, 8, Gt)
591
- ], 8, Lt)
592
- ]),
593
- t.$slots.pattern ? (s(), r("g", Bt, [
594
- (s(!0), r(S, null, z(f.value, (a, l) => (s(), r("defs", null, [
595
- h(t.$slots, "pattern", L({ ref_for: !0 }, { seriesIndex: l, patternId: `pattern_${x.value}_${l}` }), void 0, !0)
596
- ]))), 256))
597
- ])) : c("", !0),
598
- (s(!0), r(S, null, z(f.value, (a, l) => (s(), r("path", {
599
- key: `arc_${l}`,
600
- d: a.arcSlice,
601
- fill: a.color,
602
- stroke: e.value.style.chart.backgroundColor,
603
- "stroke-linecap": "round"
604
- }, null, 8, Ut))), 128)),
605
- t.$slots.pattern ? (s(!0), r(S, { key: 2 }, z(f.value, (a, l) => (s(), r("path", {
606
- key: `arc_${l}`,
607
- d: a.arcSlice,
608
- fill: `url(#pattern_${x.value}_${l})`,
609
- stroke: e.value.style.chart.backgroundColor,
610
- "stroke-linecap": "round"
611
- }, null, 8, jt))), 128)) : c("", !0),
612
- e.value.style.chart.layout.indicatorArc.show ? (s(), r("path", {
613
- key: 3,
614
- d: De.value,
615
- fill: e.value.style.chart.layout.indicatorArc.fill
616
- }, null, 8, Wt)) : c("", !0),
617
- e.value.style.chart.layout.segmentNames.show && e.value.style.chart.layout.segmentNames.curved ? (s(), r(S, { key: 4 }, [
618
- (s(!0), r(S, null, z(f.value, (a, l) => (s(), r("path", {
619
- id: `curve_${x.value}_${l}`,
620
- d: `M ${i.value.x1},${i.value.y1} m -${I.value[l]},0 a ${I.value[l]},${I.value[l]} 0 1,1 ${2 * I.value[l]},0 a ${I.value[l]},${I.value[l]} 0 1,1 -${2 * I.value[l]},0`,
621
- fill: "transparent"
622
- }, null, 8, Dt))), 256)),
623
- (s(!0), r(S, null, z(f.value, (a, l) => (s(), r("text", {
624
- fill: e.value.style.chart.layout.segmentNames.useSerieColor ? a.color : e.value.style.chart.layout.segmentNames.color,
625
- "font-size": B.value,
626
- "font-weight": e.value.style.chart.layout.segmentNames.bold ? "bold" : "normal",
627
- "text-anchor": "middle"
628
- }, [
629
- k("textPath", {
630
- href: `#curve_${x.value}_${l}`,
631
- startOffset: je.value[l]
632
- }, T(a.name || ""), 9, Ht)
633
- ], 8, Vt))), 256))
634
- ], 64)) : c("", !0),
635
- e.value.style.chart.layout.segmentNames.show && !e.value.style.chart.layout.segmentNames.curved ? (s(!0), r(S, { key: 5 }, z(Be.value, (a, l) => (s(), r("text", {
636
- class: "vue-ui-gauge-label-flat",
637
- "text-anchor": u(mt)(a, !1, 12).anchor,
638
- fill: e.value.style.chart.layout.segmentNames.useSerieColor ? a.color : e.value.style.chart.layout.segmentNames.color,
639
- "font-size": B.value,
640
- "font-weight": e.value.style.chart.layout.segmentNames.bold ? "bold" : "normal",
641
- innerHTML: u(gt)({
642
- content: String(a.name ?? ""),
643
- fontSize: B.value,
644
- fill: e.value.style.chart.layout.segmentNames.useSerieColor ? a.color : e.value.style.chart.layout.segmentNames.color,
645
- x: a.center.endX,
646
- y: a.center.endY
647
- })
648
- }, null, 8, qt))), 256)) : c("", !0),
649
- e.value.style.chart.layout.track.useGradient ? (s(!0), r(S, { key: 6 }, z(We.value, (a, l) => (s(), r("path", {
650
- key: `arc_${l}`,
651
- d: a.arcSlice,
652
- fill: "#FFFFFF",
653
- stroke: "none",
654
- "stroke-linecap": "round",
655
- filter: `url(#blur_${x.value})`
656
- }, null, 8, Zt))), 128)) : c("", !0),
657
- e.value.style.chart.layout.segmentSeparators.show ? (s(), r(S, { key: 7 }, [
658
- k("line", L(_e.value, {
659
- stroke: e.value.style.chart.backgroundColor,
660
- "stroke-width": e.value.style.chart.layout.segmentSeparators.strokeWidth + 2,
661
- "stroke-linecap": "round"
662
- }), null, 16, Jt),
663
- k("line", L(_e.value, {
664
- stroke: e.value.style.chart.layout.segmentSeparators.stroke,
665
- "stroke-width": e.value.style.chart.layout.segmentSeparators.strokeWidth,
666
- "stroke-linecap": "round"
667
- }), null, 16, Kt),
668
- (s(!0), r(S, null, z(we.value, (a) => (s(), r("line", L({ ref_for: !0 }, a, {
669
- stroke: e.value.style.chart.backgroundColor,
670
- "stroke-width": e.value.style.chart.layout.segmentSeparators.strokeWidth + 2,
671
- "stroke-linecap": "round"
672
- }), null, 16, Qt))), 256)),
673
- (s(!0), r(S, null, z(we.value, (a) => (s(), r("line", L({ ref_for: !0 }, a, {
674
- stroke: e.value.style.chart.layout.segmentSeparators.stroke,
675
- "stroke-width": e.value.style.chart.layout.segmentSeparators.strokeWidth,
676
- "stroke-linecap": "round"
677
- }), null, 16, ea))), 256))
678
- ], 64)) : c("", !0),
679
- e.value.style.chart.layout.markers.show ? (s(), r("g", ta, [
680
- (s(!0), r(S, null, z(f.value, (a, l) => (s(), r("text", {
681
- x: u(M)({
682
- centerX: i.value.x1,
683
- centerY: v.value.base,
684
- initX: a.center.startX,
685
- initY: a.center.startY,
686
- offset: o.value.markerOffset
687
- }).x,
688
- y: u(M)({
689
- centerX: i.value.x1,
690
- centerY: v.value.base,
691
- initX: a.center.startX,
692
- initY: a.center.startY,
693
- offset: o.value.markerOffset
694
- }).y,
695
- "text-anchor": a.center.startX < i.value.x1 - 5 ? "end" : a.center.startX > i.value.x1 + 5 ? "start" : "middle",
696
- "font-size": o.value.labelFontSize * e.value.style.chart.layout.markers.fontSizeRatio,
697
- "font-weight": `${e.value.style.chart.layout.markers.bold ? "bold" : "normal"}`,
698
- fill: e.value.style.chart.layout.markers.color
699
- }, T(u(le)(
700
- e.value.style.chart.layout.markers.formatter,
701
- a.from,
702
- u(oe)({
703
- p: e.value.style.chart.layout.markers.prefix,
704
- v: a.from,
705
- s: e.value.style.chart.layout.markers.suffix,
706
- r: e.value.style.chart.layout.markers.roundingValue
707
- })
708
- )), 9, aa))), 256))
709
- ])) : c("", !0),
710
- e.value.style.chart.layout.markers.show ? (s(), r("text", {
711
- key: 9,
712
- x: u(M)({
713
- centerX: o.value.width / 2,
714
- centerY: v.value.base,
715
- initX: f.value.at(-1).endX,
716
- initY: f.value.at(-1).endY,
717
- offset: o.value.markerOffset
718
- }).x,
719
- y: u(M)({
720
- centerX: o.value.width / 2,
721
- centerY: v.value.base,
722
- initX: f.value.at(-1).endX,
723
- initY: f.value.at(-1).endY,
724
- offset: o.value.markerOffset
725
- }).y,
726
- "text-anchor": "start",
727
- "font-size": o.value.labelFontSize * e.value.style.chart.layout.markers.fontSizeRatio,
728
- "font-weight": `${e.value.style.chart.layout.markers.bold ? "bold" : "normal"}`,
729
- fill: e.value.style.chart.layout.markers.color
730
- }, T(u(le)(
731
- e.value.style.chart.layout.markers.formatter,
732
- R.value,
733
- u(oe)({
734
- p: e.value.style.chart.layout.markers.prefix,
735
- v: R.value,
736
- s: e.value.style.chart.layout.markers.suffix,
737
- r: e.value.style.chart.layout.markers.roundingValue
738
- })
739
- )), 9, la)) : c("", !0),
740
- e.value.style.chart.layout.pointer.show ? (s(), r(S, { key: 10 }, [
741
- e.value.style.chart.layout.pointer.type === "rounded" ? (s(), r("g", oa, [
742
- isNaN(i.value.x2) ? c("", !0) : (s(), r("line", {
743
- key: 0,
744
- x1: i.value.x1,
745
- y1: i.value.y1,
746
- x2: i.value.x2,
747
- y2: i.value.y2,
748
- stroke: e.value.style.chart.layout.pointer.stroke,
749
- "stroke-width": o.value.pointerStrokeWidth,
750
- "stroke-linecap": "round"
751
- }, null, 8, sa)),
752
- isNaN(i.value.x2) ? c("", !0) : (s(), r("line", {
753
- key: 1,
754
- x1: i.value.x1,
755
- y1: i.value.y1,
756
- x2: i.value.x2,
757
- y2: i.value.y2,
758
- stroke: e.value.style.chart.layout.pointer.useRatingColor ? q.value : e.value.style.chart.layout.pointer.color,
759
- "stroke-linecap": "round",
760
- "stroke-width": o.value.pointerStrokeWidth * 0.7
761
- }, null, 8, ra)),
762
- !isNaN(i.value.x2) && e.value.style.chart.layout.track.useGradient ? (s(), r("line", {
763
- key: 2,
764
- x1: i.value.x1,
765
- y1: i.value.y1,
766
- x2: i.value.x2,
767
- y2: i.value.y2,
768
- stroke: "white",
769
- "stroke-linecap": "round",
770
- "stroke-width": o.value.pointerStrokeWidth * 0.3,
771
- filter: `url(#blur_${x.value})`
772
- }, null, 8, na)) : c("", !0)
773
- ])) : (s(), r("g", ua, [
774
- ke.value ? (s(), r("path", {
775
- key: 0,
776
- d: ke.value,
777
- fill: e.value.style.chart.layout.pointer.useRatingColor ? q.value : e.value.style.chart.layout.pointer.color,
778
- stroke: e.value.style.chart.layout.pointer.stroke,
779
- "stroke-width": e.value.style.chart.layout.pointer.circle.strokeWidth,
780
- "stroke-linejoin": "round"
781
- }, null, 8, ia)) : c("", !0)
782
- ])),
783
- k("circle", {
784
- cx: o.value.width / 2,
785
- cy: v.value.base,
786
- fill: e.value.style.chart.layout.pointer.circle.color,
787
- r: o.value.pointerRadius <= 0 ? 1e-4 : o.value.pointerRadius,
788
- "stroke-width": e.value.style.chart.layout.pointer.circle.strokeWidth,
789
- stroke: e.value.style.chart.layout.pointer.circle.stroke
790
- }, null, 8, ca)
791
- ], 64)) : c("", !0),
792
- e.value.style.chart.legend.show ? (s(), r("text", {
793
- key: 11,
794
- x: o.value.width / 2,
795
- y: v.value.ratingBase,
796
- "text-anchor": "middle",
797
- "font-size": o.value.legendFontSize,
798
- "font-weight": "bold",
799
- fill: e.value.style.chart.legend.useRatingColor ? q.value : e.value.style.chart.legend.color
800
- }, T(u(le)(
801
- e.value.style.chart.legend.formatter,
802
- g.value,
803
- u(oe)({
804
- p: e.value.style.chart.legend.prefix + (e.value.style.chart.legend.showPlusSymbol && g.value > 0 ? "+" : ""),
805
- v: g.value,
806
- s: e.value.style.chart.legend.suffix,
807
- r: e.value.style.chart.legend.roundingValue
808
- })
809
- )), 9, va)) : c("", !0),
810
- h(t.$slots, "svg", { svg: o.value }, void 0, !0)
811
- ], 14, It)),
812
- t.$slots.watermark ? (s(), r("div", da, [
813
- h(t.$slots, "watermark", C(F({ isPrinting: u(ye) || u(ge) })), void 0, !0)
814
- ])) : c("", !0),
815
- k("div", {
816
- ref_key: "chartLegend",
817
- ref: ue
818
- }, [
819
- h(t.$slots, "legend", { legend: P.value }, void 0, !0)
820
- ], 512),
821
- t.$slots.source ? (s(), r("div", {
822
- key: 5,
823
- ref_key: "source",
824
- ref: ie,
825
- dir: "auto"
826
- }, [
827
- h(t.$slots, "source", {}, void 0, !0)
828
- ], 512)) : c("", !0),
829
- u(de) ? (s(), W(St, { key: 6 })) : c("", !0)
830
- ], 46, Nt));
831
- }
832
- }, Fa = /* @__PURE__ */ Mt(ha, [["__scopeId", "data-v-90ebd1c4"]]);
833
- export {
834
- Fa as default
835
- };