vue-data-ui 2.4.45 → 2.4.47

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 (155) hide show
  1. package/dist/{Arrow-DExBMFtJ.js → Arrow-C-PQX3ZC.js} +1 -1
  2. package/dist/{Arrow-dxEccWUa.cjs → Arrow-C3u-U00V.cjs} +1 -1
  3. package/dist/{BaseIcon-DUokibJ1.cjs → BaseIcon-8y_okNW6.cjs} +1 -1
  4. package/dist/{BaseIcon-DpLJi6ci.js → BaseIcon-BeAMtwQX.js} +1 -1
  5. package/dist/{DataTable-aoauqoko.cjs → DataTable-CfxOc-In.cjs} +1 -1
  6. package/dist/{DataTable-NGi-FgLM.js → DataTable-D7JlgAbC.js} +2 -2
  7. package/dist/{Legend-DRozxv9L.js → Legend-CEhIHRJc.js} +1 -1
  8. package/dist/{Legend-DHE2CFkm.cjs → Legend-DDuxh17p.cjs} +1 -1
  9. package/dist/{PackageVersion-CTMY4zeY.js → PackageVersion-8Ql1gdmo.js} +1 -1
  10. package/dist/{PackageVersion-1JWV5loe.cjs → PackageVersion-Df1iPzMk.cjs} +1 -1
  11. package/dist/{PenAndPaper-C6mnwE-L.cjs → PenAndPaper-CvGft3ku.cjs} +1 -1
  12. package/dist/{PenAndPaper-DJ_d10S-.js → PenAndPaper-b1ZmLra1.js} +3 -3
  13. package/dist/{Shape-C-sY_hlc.js → Shape-CvBLjLSE.js} +1 -1
  14. package/dist/{Shape-rA2az7tR.cjs → Shape-D3F3Ki5y.cjs} +1 -1
  15. package/dist/{Slicer-CJsmloDN.cjs → Slicer-CHKuuOOo.cjs} +1 -1
  16. package/dist/{Slicer-D4SO7odF.js → Slicer-CRXNOGCh.js} +2 -2
  17. package/dist/{Title-DkbnpMvf.cjs → Title-URF9hufV.cjs} +1 -1
  18. package/dist/{Title-Coit3NcT.js → Title-_dfoh5WC.js} +1 -1
  19. package/dist/{Tooltip-B8L4NDsX.cjs → Tooltip-87gbw8Ir.cjs} +1 -1
  20. package/dist/{Tooltip-BBgfUr4a.js → Tooltip-CAkj2Rmy.js} +1 -1
  21. package/dist/{index-Cm2_6s9o.js → index-BUHajhqq.js} +42 -26
  22. package/dist/index-KYU_8xrX.cjs +9 -0
  23. package/dist/style.css +1 -1
  24. package/dist/types/vue-data-ui.d.cts +9 -0
  25. package/dist/types/vue-data-ui.d.ts +9 -0
  26. package/dist/{useNestedProp-zkJOoemW.cjs → useNestedProp-C-g0SLHN.cjs} +1 -1
  27. package/dist/{useNestedProp-BYPZJNhi.js → useNestedProp-a0uhe7rJ.js} +1 -1
  28. package/dist/{usePrinter-ardO_DNo.cjs → usePrinter-4Zj_RZ5v.cjs} +1 -1
  29. package/dist/{usePrinter-Cx8U1e30.js → usePrinter-DLHRtlhI.js} +1 -1
  30. package/dist/{vue-data-ui-B8Lvjc4V.cjs → vue-data-ui-CPc7dZQe.cjs} +1 -1
  31. package/dist/{vue-data-ui-Blpxr4_M.js → vue-data-ui-zjfs-rk-.js} +60 -60
  32. package/dist/vue-data-ui.cjs +1 -1
  33. package/dist/vue-data-ui.js +1 -1
  34. package/dist/{vue-ui-3d-bar-DvitE1K_.js → vue-ui-3d-bar-B60j7yco.js} +9 -9
  35. package/dist/{vue-ui-3d-bar-CqmOoIA2.cjs → vue-ui-3d-bar-zI1BF0gA.cjs} +1 -1
  36. package/dist/{vue-ui-accordion-CxrNF8BI.js → vue-ui-accordion-2QOotHrr.js} +3 -3
  37. package/dist/{vue-ui-accordion-JS5d0ZPi.cjs → vue-ui-accordion-C0oMKEv0.cjs} +1 -1
  38. package/dist/{vue-ui-age-pyramid-Ti2L5N92.js → vue-ui-age-pyramid-BT7HUZpj.js} +10 -10
  39. package/dist/{vue-ui-age-pyramid-CRP36JDm.cjs → vue-ui-age-pyramid-hZLKWqN9.cjs} +1 -1
  40. package/dist/{vue-ui-annotator-DtL3BbOJ.cjs → vue-ui-annotator-Da8-IgfK.cjs} +1 -1
  41. package/dist/{vue-ui-annotator-HNK_5tWo.js → vue-ui-annotator-ZpGqgGMp.js} +1 -1
  42. package/dist/{vue-ui-bullet-DEUwbTdx.cjs → vue-ui-bullet-BfkujrD0.cjs} +1 -1
  43. package/dist/{vue-ui-bullet-D3WmBrm4.js → vue-ui-bullet-Da56_P30.js} +8 -8
  44. package/dist/{vue-ui-candlestick-B5okP_Jf.js → vue-ui-candlestick-CblCXKhS.js} +11 -11
  45. package/dist/{vue-ui-candlestick-C5bTH9oE.cjs → vue-ui-candlestick-fM3nUsgr.cjs} +1 -1
  46. package/dist/{vue-ui-carousel-table-BgKL0rnF.js → vue-ui-carousel-table-B1U41lku.js} +4 -4
  47. package/dist/{vue-ui-carousel-table-Bt2xx2b5.cjs → vue-ui-carousel-table-D3rcSdcC.cjs} +1 -1
  48. package/dist/{vue-ui-chestnut-DDsFxoUr.js → vue-ui-chestnut-Cnvf2Aav.js} +8 -8
  49. package/dist/{vue-ui-chestnut-D5XfSvCG.cjs → vue-ui-chestnut-CtMm9Hev.cjs} +1 -1
  50. package/dist/{vue-ui-cursor-CSBJgZLu.cjs → vue-ui-cursor-C-7zi0ol.cjs} +1 -1
  51. package/dist/{vue-ui-cursor-B2NOd5i-.js → vue-ui-cursor-TzS0sCy1.js} +2 -2
  52. package/dist/{vue-ui-dashboard-u-Gt08KE.js → vue-ui-dashboard-Ajvddjlt.js} +2 -2
  53. package/dist/{vue-ui-dashboard-C6MJN9kG.cjs → vue-ui-dashboard-DdMkGnE7.cjs} +1 -1
  54. package/dist/{vue-ui-digits-DCXyjW_e.js → vue-ui-digits-CBPttkF2.js} +2 -2
  55. package/dist/{vue-ui-digits-B4fzfTox.cjs → vue-ui-digits-DwB-tHKl.cjs} +1 -1
  56. package/dist/{vue-ui-donut-CaJSY2gj.cjs → vue-ui-donut-Cz6xpVSC.cjs} +1 -1
  57. package/dist/{vue-ui-donut-BvASz63R.js → vue-ui-donut-DidXxdXO.js} +11 -11
  58. package/dist/{vue-ui-donut-evolution-DcPk33e8.js → vue-ui-donut-evolution-B0xdulgT.js} +11 -11
  59. package/dist/{vue-ui-donut-evolution-DrnLlHPS.cjs → vue-ui-donut-evolution-Dj73srrD.cjs} +1 -1
  60. package/dist/{vue-ui-dumbbell-8v-xIlsx.cjs → vue-ui-dumbbell-BdwXaRk2.cjs} +1 -1
  61. package/dist/{vue-ui-dumbbell-D918XYc8.js → vue-ui-dumbbell-Cimude8K.js} +10 -10
  62. package/dist/{vue-ui-flow-DQ5q2b1Y.js → vue-ui-flow-D2ekJwov.js} +9 -9
  63. package/dist/{vue-ui-flow-BBmnTxVE.cjs → vue-ui-flow-DMNNOEJy.cjs} +1 -1
  64. package/dist/{vue-ui-funnel-v5WCHaw6.js → vue-ui-funnel-BsKFz_A9.js} +8 -8
  65. package/dist/{vue-ui-funnel-CmERxe4h.cjs → vue-ui-funnel-DLmzVrrA.cjs} +1 -1
  66. package/dist/{vue-ui-galaxy-8xWYo-xy.cjs → vue-ui-galaxy-CnZYKQA2.cjs} +1 -1
  67. package/dist/{vue-ui-galaxy-COSx0c89.js → vue-ui-galaxy-WAy90dGq.js} +11 -11
  68. package/dist/vue-ui-gauge-DhqOgkfq.cjs +1 -0
  69. package/dist/vue-ui-gauge-Xvk_SGCc.js +662 -0
  70. package/dist/{vue-ui-gizmo-DUO_TpvK.cjs → vue-ui-gizmo-B6qoNeBK.cjs} +1 -1
  71. package/dist/{vue-ui-gizmo-ByuFn-0N.js → vue-ui-gizmo-D-djUfJw.js} +3 -3
  72. package/dist/{vue-ui-heatmap-DiON-CAI.cjs → vue-ui-heatmap-CitZU9av.cjs} +1 -1
  73. package/dist/{vue-ui-heatmap-UoKourVZ.js → vue-ui-heatmap-jmKDOYnr.js} +10 -10
  74. package/dist/{vue-ui-history-plot-CkxvdQeV.js → vue-ui-history-plot-BoR791Gc.js} +11 -11
  75. package/dist/{vue-ui-history-plot-CjVySabp.cjs → vue-ui-history-plot-EzFdtBwU.cjs} +1 -1
  76. package/dist/{vue-ui-kpi-BRwkUBxs.js → vue-ui-kpi-CB47PO72.js} +3 -3
  77. package/dist/{vue-ui-kpi-DYHGPjrp.cjs → vue-ui-kpi-CMXhw4Ll.cjs} +1 -1
  78. package/dist/{vue-ui-mini-loader-Cbl4ydLu.js → vue-ui-mini-loader-D4dKItUb.js} +2 -2
  79. package/dist/{vue-ui-mini-loader-oviO8Ueo.cjs → vue-ui-mini-loader-DJx2b1Hs.cjs} +1 -1
  80. package/dist/{vue-ui-molecule-DM_mX72q.js → vue-ui-molecule-C_VM1ZP2.js} +11 -11
  81. package/dist/{vue-ui-molecule-CX1M509E.cjs → vue-ui-molecule-CnERhdxF.cjs} +1 -1
  82. package/dist/{vue-ui-mood-radar-fuqAjpvg.cjs → vue-ui-mood-radar-BBlokNSE.cjs} +1 -1
  83. package/dist/{vue-ui-mood-radar-Bzsba8qo.js → vue-ui-mood-radar-BESMMSxA.js} +11 -11
  84. package/dist/{vue-ui-nested-donuts-DfHtC4XP.cjs → vue-ui-nested-donuts-C0IAo5oO.cjs} +1 -1
  85. package/dist/{vue-ui-nested-donuts-BG84mskb.js → vue-ui-nested-donuts-r1v-A7E3.js} +11 -11
  86. package/dist/{vue-ui-onion-DpFx1Oy9.js → vue-ui-onion-CZuFxIOX.js} +11 -11
  87. package/dist/{vue-ui-onion-gt77JCbM.cjs → vue-ui-onion-PaHP7qHI.cjs} +1 -1
  88. package/dist/{vue-ui-parallel-coordinate-plot-CQG_anr7.js → vue-ui-parallel-coordinate-plot-BeAArg3p.js} +12 -12
  89. package/dist/{vue-ui-parallel-coordinate-plot-xJTddxji.cjs → vue-ui-parallel-coordinate-plot-Bwu4Q1dB.cjs} +1 -1
  90. package/dist/{vue-ui-quadrant-D0YgwhwW.cjs → vue-ui-quadrant-BLpgNZs9.cjs} +1 -1
  91. package/dist/{vue-ui-quadrant-Cddob9c3.js → vue-ui-quadrant-D5m9y_Vd.js} +12 -12
  92. package/dist/{vue-ui-quick-chart-CLzNpIFU.cjs → vue-ui-quick-chart-CZ6gBVVk.cjs} +1 -1
  93. package/dist/{vue-ui-quick-chart-DTEubspa.js → vue-ui-quick-chart-Ci4RKL62.js} +9 -9
  94. package/dist/{vue-ui-radar--uexaa6p.js → vue-ui-radar-03mjX9gn.js} +12 -12
  95. package/dist/{vue-ui-radar-BTh9qZ2p.cjs → vue-ui-radar-Ca1AvJAF.cjs} +1 -1
  96. package/dist/{vue-ui-rating-BQuZA9UU.js → vue-ui-rating-CSSdVGTk.js} +2 -2
  97. package/dist/{vue-ui-rating-Dyjk2dub.cjs → vue-ui-rating-Dilq1rrJ.cjs} +1 -1
  98. package/dist/{vue-ui-relation-circle-C8NYrTHA.js → vue-ui-relation-circle-B3J9KW9u.js} +7 -7
  99. package/dist/{vue-ui-relation-circle-FtGlV4Ne.cjs → vue-ui-relation-circle-DsckG4af.cjs} +1 -1
  100. package/dist/{vue-ui-rings-ClJRYeFC.cjs → vue-ui-rings-6g022zEh.cjs} +1 -1
  101. package/dist/{vue-ui-rings-FEIPR_dS.js → vue-ui-rings-COAgson6.js} +11 -11
  102. package/dist/{vue-ui-scatter-vYxSs8Gf.cjs → vue-ui-scatter-B3t_Q_4g.cjs} +1 -1
  103. package/dist/{vue-ui-scatter-CzbgC6ep.js → vue-ui-scatter-BrdWaLV6.js} +12 -12
  104. package/dist/{vue-ui-screenshot-IaxgY5qE.js → vue-ui-screenshot-CWMAfSH3.js} +1 -1
  105. package/dist/{vue-ui-screenshot-CVQCw0B1.cjs → vue-ui-screenshot-NpTxyR66.cjs} +1 -1
  106. package/dist/{vue-ui-skeleton-BUS6A44x.js → vue-ui-skeleton-BXPvqUO_.js} +3 -3
  107. package/dist/{vue-ui-skeleton-DleyAXe1.cjs → vue-ui-skeleton-D6mdHYxB.cjs} +1 -1
  108. package/dist/{vue-ui-smiley-BTTXNPGY.cjs → vue-ui-smiley-BIAA0JuB.cjs} +1 -1
  109. package/dist/{vue-ui-smiley-5CVa-rQU.js → vue-ui-smiley-TNgEIMFs.js} +2 -2
  110. package/dist/{vue-ui-spark-trend-CZAgof3m.cjs → vue-ui-spark-trend-BWb59zfs.cjs} +1 -1
  111. package/dist/{vue-ui-spark-trend-D9ww-Cv5.js → vue-ui-spark-trend-Xtb0H-Ra.js} +5 -5
  112. package/dist/{vue-ui-sparkbar-DKeLvkHa.js → vue-ui-sparkbar-CO0RYq4S.js} +4 -4
  113. package/dist/{vue-ui-sparkbar-BFsdfuNO.cjs → vue-ui-sparkbar-mgvNuWjK.cjs} +1 -1
  114. package/dist/{vue-ui-sparkgauge-B_bIpe_O.cjs → vue-ui-sparkgauge-CfgH_pIo.cjs} +1 -1
  115. package/dist/{vue-ui-sparkgauge-DLpPuJdG.js → vue-ui-sparkgauge-Cn17RyPJ.js} +4 -4
  116. package/dist/{vue-ui-sparkhistogram-RoW45LV8.cjs → vue-ui-sparkhistogram-BU1jgcm9.cjs} +1 -1
  117. package/dist/{vue-ui-sparkhistogram-BA8QV7Cu.js → vue-ui-sparkhistogram-yTF-QJCM.js} +5 -5
  118. package/dist/{vue-ui-sparkline-BggHSfaz.cjs → vue-ui-sparkline-3ym-6DFE.cjs} +1 -1
  119. package/dist/{vue-ui-sparkline-BwOtPPij.js → vue-ui-sparkline-D80w9cUt.js} +4 -4
  120. package/dist/{vue-ui-sparkstackbar-Uv_p8v9c.cjs → vue-ui-sparkstackbar-C1zVZqZh.cjs} +1 -1
  121. package/dist/{vue-ui-sparkstackbar-DCS6RRgN.js → vue-ui-sparkstackbar-DhQNOgjS.js} +5 -5
  122. package/dist/{vue-ui-stackbar-zcfxba5s.js → vue-ui-stackbar-C_b754Op.js} +12 -12
  123. package/dist/{vue-ui-stackbar-BqKNaGrf.cjs → vue-ui-stackbar-yiVhLavI.cjs} +1 -1
  124. package/dist/{vue-ui-strip-plot-J5SSJPyl.cjs → vue-ui-strip-plot-CK-U0tNX.cjs} +1 -1
  125. package/dist/{vue-ui-strip-plot-NykStkP9.js → vue-ui-strip-plot-CqP7E3Fr.js} +11 -11
  126. package/dist/{vue-ui-table-DhRjI7oG.js → vue-ui-table-BLPLqFFd.js} +1 -1
  127. package/dist/{vue-ui-table-heatmap-GvLTOGcB.cjs → vue-ui-table-heatmap-2Qm41w8P.cjs} +1 -1
  128. package/dist/{vue-ui-table-heatmap-CT5nGoW-.js → vue-ui-table-heatmap-jWG59f0S.js} +4 -4
  129. package/dist/{vue-ui-table-sparkline-Ba_Ucvgb.js → vue-ui-table-sparkline-BEeO-aWa.js} +5 -5
  130. package/dist/{vue-ui-table-sparkline-CBFEknMF.cjs → vue-ui-table-sparkline-C0vzS1F3.cjs} +1 -1
  131. package/dist/{vue-ui-table-DWPKVbYC.cjs → vue-ui-table-x2Ylaftx.cjs} +1 -1
  132. package/dist/{vue-ui-thermometer-C11VSZfb.js → vue-ui-thermometer-CS4v4vKk.js} +7 -7
  133. package/dist/{vue-ui-thermometer-sqA0TGTi.cjs → vue-ui-thermometer-DVPaZfi5.cjs} +1 -1
  134. package/dist/{vue-ui-timer-CcBNysNG.cjs → vue-ui-timer-Bu17pe7S.cjs} +1 -1
  135. package/dist/{vue-ui-timer-lwjayVn0.js → vue-ui-timer-op_p9xjL.js} +5 -5
  136. package/dist/{vue-ui-tiremarks-FBnh0R_Z.cjs → vue-ui-tiremarks-CoKFLMWh.cjs} +1 -1
  137. package/dist/{vue-ui-tiremarks-Jz80HKpg.js → vue-ui-tiremarks-CzNBUmn2.js} +7 -7
  138. package/dist/{vue-ui-treemap-B_qVGTnP.js → vue-ui-treemap-DLDn1gQ2.js} +11 -11
  139. package/dist/{vue-ui-treemap-7YFJ-Pb9.cjs → vue-ui-treemap-DXU0BagE.cjs} +1 -1
  140. package/dist/{vue-ui-vertical-bar-DGuvFK2h.cjs → vue-ui-vertical-bar-BlG3HwaX.cjs} +1 -1
  141. package/dist/{vue-ui-vertical-bar-5MwcqOTN.js → vue-ui-vertical-bar-BqTIL5Np.js} +11 -11
  142. package/dist/{vue-ui-waffle-C0F8eexl.cjs → vue-ui-waffle-CaTFfTmj.cjs} +1 -1
  143. package/dist/{vue-ui-waffle-B0JbRRUv.js → vue-ui-waffle-DFjArEi_.js} +11 -11
  144. package/dist/{vue-ui-wheel-DP9XwVGM.cjs → vue-ui-wheel-B22xmLY4.cjs} +1 -1
  145. package/dist/{vue-ui-wheel-pQBqSI5z.js → vue-ui-wheel-C95mjUTI.js} +7 -7
  146. package/dist/{vue-ui-word-cloud-CmKH64gk.cjs → vue-ui-word-cloud-05iWIjGT.cjs} +1 -1
  147. package/dist/{vue-ui-word-cloud-D39_9P7v.js → vue-ui-word-cloud-Byx-M5Jn.js} +10 -10
  148. package/dist/{vue-ui-xy-DRYbR_nu.js → vue-ui-xy-C8YrIKK6.js} +14 -14
  149. package/dist/{vue-ui-xy-canvas-DZib_307.js → vue-ui-xy-canvas-Cg0PIT5i.js} +11 -11
  150. package/dist/{vue-ui-xy-canvas-CywB2tWN.cjs → vue-ui-xy-canvas-os8jbTXb.cjs} +1 -1
  151. package/dist/{vue-ui-xy-2m8k1EUB.cjs → vue-ui-xy-lPnzrWt8.cjs} +1 -1
  152. package/package.json +1 -1
  153. package/dist/index-DuDeHJyK.cjs +0 -9
  154. package/dist/vue-ui-gauge-CWnGYcFD.js +0 -610
  155. package/dist/vue-ui-gauge-CYth7Lci.cjs +0 -1
@@ -1,610 +0,0 @@
1
- import { computed as y, ref as d, watch as ie, onMounted as Pe, onBeforeUnmount as Ne, openBlock as s, createElementBlock as r, normalizeClass as ce, normalizeStyle as ve, createBlock as Y, createCommentVNode as v, withCtx as N, toDisplayString as z, unref as i, createSlots as Oe, renderSlot as x, normalizeProps as L, guardReactiveProps as D, createVNode as Ie, createElementVNode as g, Fragment as F, renderList as O } from "vue";
2
- import { u as Xe, c as Ae, t as Ye, a as Re, p as he, b as Ge, o as de, d as Ee, e as R, g as fe, m as U, X as Te, s as B, k as je, I as G, i as W, f as V, F as q } from "./index-Cm2_6s9o.js";
3
- import { t as Le, u as De } from "./useResponsive-CoxXLe23.js";
4
- import { u as Ue, U as Be } from "./usePrinter-Cx8U1e30.js";
5
- import We from "./vue-ui-skeleton-BUS6A44x.js";
6
- import { _ as Ve } from "./Title-Coit3NcT.js";
7
- import { u as ye } from "./useNestedProp-BYPZJNhi.js";
8
- import { _ as qe } from "./PackageVersion-CTMY4zeY.js";
9
- import { P as He } from "./PenAndPaper-DJ_d10S-.js";
10
- import { _ as Ze } from "./_plugin-vue_export-helper-CHgC5LLL.js";
11
- const Je = ["id"], Ke = { key: 0 }, Qe = ["xmlns", "viewBox"], et = ["id"], tt = ["stop-color"], at = ["stop-color"], lt = ["stop-color"], ot = ["id"], st = ["stdDeviation"], rt = ["d", "fill", "stroke"], ut = ["id", "d"], nt = ["fill", "font-size", "font-weight"], it = ["href", "startOffset"], ct = ["x", "y", "text-anchor", "fill", "font-size", "font-weight"], vt = ["d", "filter"], ht = { key: 3 }, dt = ["x", "y", "text-anchor", "font-size", "font-weight", "fill"], ft = ["x", "y", "font-size", "font-weight", "fill"], yt = { key: 5 }, mt = ["x1", "y1", "x2", "y2", "stroke", "stroke-width"], gt = ["x1", "y1", "x2", "y2", "stroke", "stroke-width"], pt = ["x1", "y1", "x2", "y2", "stroke-width", "filter"], kt = { key: 6 }, bt = ["d", "fill", "stroke", "stroke-width"], _t = ["cx", "cy", "fill", "r", "stroke-width", "stroke"], xt = ["x", "y", "font-size", "fill"], wt = {
12
- key: 5,
13
- class: "vue-data-ui-watermark"
14
- }, St = {
15
- __name: "vue-ui-gauge",
16
- props: {
17
- config: {
18
- type: Object,
19
- default() {
20
- return {};
21
- }
22
- },
23
- dataset: {
24
- type: Object,
25
- default() {
26
- return {};
27
- }
28
- }
29
- },
30
- setup(E, { expose: me }) {
31
- const c = E, { vue_ui_gauge: ge } = Xe(), I = y(() => !!c.dataset && Object.keys(c.dataset).length > 0 && c.dataset.series && c.dataset.series.length), k = d(Ae()), pe = d(null), H = d(0), $ = d(null), Z = d(null), J = d(null), K = d(null), Q = d(null), ee = d(0), e = y({
32
- get: () => te(),
33
- set: (a) => a
34
- });
35
- ie(() => c.config, (a) => {
36
- e.value = te(), ue(), ee.value += 1;
37
- }, { deep: !0 });
38
- function te() {
39
- const a = ye({
40
- userConfig: c.config,
41
- defaultConfig: ge
42
- });
43
- return a.theme ? {
44
- ...ye({
45
- userConfig: Ye.vue_ui_gauge[a.theme] || c.config,
46
- defaultConfig: a
47
- }),
48
- customPalette: Re[a.theme] || he
49
- } : a;
50
- }
51
- const { isPrinting: ae, isImaging: le, generatePdf: oe, generateImage: se } = Ue({
52
- elementId: `vue-ui-gauge_${k.value}`,
53
- fileName: e.value.style.chart.title.text || "vue-ui-gauge"
54
- }), ke = y(() => e.value.userOptions.show && !e.value.style.chart.title.text), be = y(() => Ge(e.value.customPalette)), w = y(() => {
55
- if (!I.value || de(c.dataset.series || {}))
56
- return {
57
- value: 0,
58
- series: [
59
- {
60
- from: 0,
61
- to: 0
62
- }
63
- ]
64
- };
65
- const a = [];
66
- (c.dataset.series || []).forEach((t) => {
67
- a.push(t.from || 1e-7), a.push(t.to || 1e-7);
68
- });
69
- const o = Math.max(...a);
70
- return {
71
- ...c.dataset,
72
- series: (c.dataset.series || []).map((t, u) => ({
73
- ...t,
74
- color: Ee(t.color) || be.value[u] || he[u],
75
- value: ((t.to || 0) - (t.from || 0)) / o * 100
76
- }))
77
- };
78
- }), m = d(512), l = d({
79
- height: 358.4,
80
- width: m.value,
81
- top: 0,
82
- bottom: 358.4,
83
- centerX: 179.2,
84
- centerY: m.value / 2,
85
- labelFontSize: 18,
86
- legendFontSize: e.value.style.chart.legend.fontSize,
87
- pointerRadius: e.value.style.chart.layout.pointer.circle.radius,
88
- trackSize: e.value.style.chart.layout.track.size,
89
- pointerSize: e.value.style.chart.layout.pointer.size,
90
- pointerStrokeWidth: e.value.style.chart.layout.pointer.strokeWidth,
91
- markerOffset: e.value.style.chart.layout.markers.offsetY + 3,
92
- segmentFontSize: e.value.style.chart.layout.segmentNames.fontSize
93
- }), C = d(0), M = d(0), f = d(e.value.style.chart.animation.use ? 0 : c.dataset.value);
94
- ie(() => c.dataset.value, () => {
95
- ne(c.dataset.value);
96
- });
97
- const h = y(() => {
98
- const a = l.value.width / 2, o = n.value.base, t = Math.PI * ((f.value + 0 - M.value) / (C.value - M.value)) + Math.PI;
99
- return {
100
- x1: a,
101
- y1: o,
102
- x2: a + n.value.pointerSize * l.value.pointerSize * 0.9 * Math.cos(t),
103
- y2: o + n.value.pointerSize * l.value.pointerSize * 0.9 * Math.sin(t)
104
- };
105
- }), re = y(() => {
106
- const a = l.value.width / 2, o = n.value.base, t = Math.PI * ((f.value + 0 - M.value) / (C.value - M.value)) + Math.PI, u = a + n.value.pointerSize * l.value.pointerSize * 0.9 * Math.cos(t), b = o + n.value.pointerSize * l.value.pointerSize * 0.9 * Math.sin(t), p = l.value.pointerRadius, Fe = a + p * Math.cos(t + Math.PI / 2), $e = o + p * Math.sin(t + Math.PI / 2), Ce = a + p * Math.cos(t - Math.PI / 2), Me = o + p * Math.sin(t - Math.PI / 2);
107
- return isNaN(u) ? null : `M ${u},${b} ${Fe},${$e} ${Ce},${Me} Z`;
108
- }), T = y(() => {
109
- for (let a = 0; a < w.value.series.length; a += 1) {
110
- const { color: o, from: t, to: u } = w.value.series[a];
111
- if (f.value >= t && f.value <= u)
112
- return o;
113
- }
114
- return "#2D353C";
115
- }), X = d(null);
116
- function ue() {
117
- if (de(c.dataset) ? R({
118
- componentName: "VueUiGauge",
119
- type: "dataset"
120
- }) : (fe({
121
- datasetObject: c.dataset,
122
- requiredAttributes: ["value", "series"]
123
- }).forEach((a) => {
124
- R({
125
- componentName: "VueUiGauge",
126
- type: "datasetAttribute",
127
- property: a
128
- });
129
- }), Object.hasOwn(c.dataset, "series") && (c.dataset.series.length ? c.dataset.series.forEach((a, o) => {
130
- fe({
131
- datasetObject: a,
132
- requiredAttributes: ["from", "to"]
133
- }).forEach((t) => {
134
- R({
135
- componentName: "VueUiGauge",
136
- type: "datasetSerieAttribute",
137
- property: t,
138
- index: o
139
- });
140
- });
141
- }) : R({
142
- componentName: "VueUiGauge",
143
- type: "datasetAttributeEmpty",
144
- property: "series"
145
- }))), ne(c.dataset.value || 0), e.value.responsive) {
146
- const a = Le(() => {
147
- const { width: o, height: t } = De({
148
- chart: $.value,
149
- title: e.value.style.chart.title.text ? Z.value : null,
150
- legend: J.value,
151
- source: K.value,
152
- noTitle: Q.value
153
- });
154
- l.value.width = o, l.value.height = t, l.value.centerX = o / 2, l.value.centerY = m.value / 2 / 358.4 * t, l.value.bottom = t, l.value.labelFontSize = 18 / m.value * Math.min(t, o) < 10 ? 10 : 18 / m.value * Math.min(t, o), l.value.legendFontSize = e.value.style.chart.legend.fontSize / m.value * Math.min(t, o) < 14 ? 14 : e.value.style.chart.legend.fontSize / m.value * Math.min(t, o), l.value.pointerRadius = e.value.style.chart.layout.pointer.circle.radius / m.value * Math.min(t, o), l.value.trackSize = e.value.style.chart.layout.track.size / m.value * Math.min(t, o), l.value.pointerStrokeWidth = q({
155
- relator: Math.min(o, t),
156
- adjuster: m.value,
157
- source: e.value.style.chart.layout.pointer.strokeWidth,
158
- threshold: 2,
159
- fallback: 2
160
- }), l.value.markerOffset = q({
161
- relator: Math.max(o, t),
162
- adjuster: m.value,
163
- source: e.value.style.chart.layout.markers.offsetY + 3,
164
- threshold: 2,
165
- fallback: 2
166
- }), l.value.segmentFontSize = q({
167
- relator: Math.min(o, t),
168
- adjuster: m.value,
169
- source: e.value.style.chart.layout.segmentNames.fontSize,
170
- threshold: 8,
171
- fallback: 8
172
- });
173
- });
174
- X.value = new ResizeObserver(a), X.value.observe($.value.parentNode);
175
- }
176
- }
177
- Pe(() => {
178
- ue();
179
- }), Ne(() => {
180
- X.value && X.value.disconnect();
181
- });
182
- function ne(a) {
183
- const o = [];
184
- (w.value.series || []).forEach((p) => {
185
- o.push(p.from || 0), o.push(p.to || 0);
186
- }), C.value = Math.max(...o), M.value = Math.min(...o);
187
- let t = e.value.style.chart.animation.speed;
188
- const u = Math.abs(a - f.value) / (t * 60);
189
- function b() {
190
- f.value < a ? f.value = Math.min(f.value + u, a) : f.value > a && (f.value = Math.max(f.value - u, a)), f.value !== a && requestAnimationFrame(b);
191
- }
192
- b();
193
- }
194
- const n = y(() => {
195
- const a = e.value.responsive ? Math.min(l.value.width, l.value.height) : l.value.width;
196
- return {
197
- arcs: a / 2.5,
198
- gradients: a / 2.75,
199
- base: e.value.responsive ? l.value.height / 2 : l.value.height * 0.7,
200
- ratingBase: e.value.responsive ? l.value.height / 2 + l.value.height / 4 : l.value.height * 0.9,
201
- pointerSize: e.value.responsive ? Math.min(l.value.width, l.value.height) / 3 : l.value.width / 3.2
202
- };
203
- }), _ = y(() => U(
204
- { series: w.value.series },
205
- l.value.width / 2,
206
- n.value.base,
207
- n.value.arcs,
208
- n.value.arcs,
209
- 1,
210
- 1,
211
- 1,
212
- 180,
213
- 109.9495,
214
- 40 * l.value.trackSize
215
- )), _e = y(() => U(
216
- { series: w.value.series },
217
- l.value.width / 2,
218
- n.value.base,
219
- n.value.arcs * e.value.style.chart.layout.segmentNames.offsetRatio,
220
- n.value.arcs * e.value.style.chart.layout.segmentNames.offsetRatio,
221
- 1,
222
- 1,
223
- 1,
224
- 180,
225
- 109.9495,
226
- 40 * l.value.trackSize
227
- )), S = y(() => n.value.arcs * e.value.style.chart.layout.segmentNames.offsetRatio);
228
- function xe(a) {
229
- if (a.reduce((b, p) => b + p, 0) > 100)
230
- throw new Error("Total % must not exceed 100");
231
- const t = 50;
232
- let u = 0;
233
- return a.map((b) => (u += b, `${u / 100 * t - b / 4}%`));
234
- }
235
- const we = y(() => xe(_.value.map((a) => a.proportion * 100))), Se = y(() => U(
236
- { series: w.value.series },
237
- l.value.width / 2,
238
- n.value.base,
239
- n.value.gradients,
240
- n.value.gradients,
241
- 0.95,
242
- 1,
243
- 1,
244
- 180,
245
- 110.02,
246
- 2 * l.value.trackSize
247
- )), P = d(!1);
248
- function ze(a) {
249
- P.value = a, H.value += 1;
250
- }
251
- const A = d(!1);
252
- function j() {
253
- A.value = !A.value;
254
- }
255
- return me({
256
- generatePdf: oe,
257
- generateImage: se,
258
- toggleAnnotator: j
259
- }), (a, o) => (s(), r("div", {
260
- class: ce(`vue-ui-gauge ${P.value ? "vue-data-ui-wrapper-fullscreen" : ""}`),
261
- ref_key: "gaugeChart",
262
- ref: $,
263
- id: `vue-ui-gauge_${k.value}`,
264
- style: ve(`font-family:${e.value.style.fontFamily};width:100%; text-align:center;background:${e.value.style.chart.backgroundColor};${e.value.responsive ? "height: 100%" : ""}`)
265
- }, [
266
- e.value.userOptions.buttons.annotator ? (s(), Y(He, {
267
- key: 0,
268
- parent: $.value,
269
- backgroundColor: e.value.style.chart.backgroundColor,
270
- color: e.value.style.chart.color,
271
- active: A.value,
272
- onClose: j
273
- }, null, 8, ["parent", "backgroundColor", "color", "active"])) : v("", !0),
274
- ke.value ? (s(), r("div", {
275
- key: 1,
276
- ref_key: "noTitle",
277
- ref: Q,
278
- class: "vue-data-ui-no-title-space",
279
- style: "height:36px; width: 100%;background:transparent"
280
- }, null, 512)) : v("", !0),
281
- e.value.style.chart.title.text ? (s(), r("div", {
282
- key: 2,
283
- ref_key: "chartTitle",
284
- ref: Z,
285
- style: "width:100%;background:transparent;padding-bottom:12px"
286
- }, [
287
- (s(), Y(Ve, {
288
- key: `title_${ee.value}`,
289
- config: {
290
- title: {
291
- cy: "gauge-div-title",
292
- ...e.value.style.chart.title
293
- },
294
- subtitle: {
295
- cy: "gauge-div-subtitle",
296
- ...e.value.style.chart.title.subtitle
297
- }
298
- }
299
- }, {
300
- default: N(() => [
301
- e.value.translations.base && E.dataset.base ? (s(), r("span", Ke, z(e.value.translations.base) + ": " + z(E.dataset.base), 1)) : v("", !0)
302
- ]),
303
- _: 1
304
- }, 8, ["config"]))
305
- ], 512)) : v("", !0),
306
- e.value.userOptions.show && I.value ? (s(), Y(Be, {
307
- ref_key: "details",
308
- ref: pe,
309
- key: `user_options_${H.value}`,
310
- backgroundColor: e.value.style.chart.backgroundColor,
311
- color: e.value.style.chart.color,
312
- isImaging: i(le),
313
- isPrinting: i(ae),
314
- uid: k.value,
315
- hasXls: !1,
316
- hasPdf: e.value.userOptions.buttons.pdf,
317
- hasImg: e.value.userOptions.buttons.img,
318
- hasFullscreen: e.value.userOptions.buttons.fullscreen,
319
- isFullscreen: P.value,
320
- titles: { ...e.value.userOptions.buttonTitles },
321
- chartElement: $.value,
322
- position: e.value.userOptions.position,
323
- hasAnnotator: e.value.userOptions.buttons.annotator,
324
- isAnnotation: A.value,
325
- onToggleFullscreen: ze,
326
- onGeneratePdf: i(oe),
327
- onGenerateImage: i(se),
328
- onToggleAnnotator: j
329
- }, Oe({ _: 2 }, [
330
- a.$slots.optionPdf ? {
331
- name: "optionPdf",
332
- fn: N(() => [
333
- x(a.$slots, "optionPdf", {}, void 0, !0)
334
- ]),
335
- key: "0"
336
- } : void 0,
337
- a.$slots.optionImg ? {
338
- name: "optionImg",
339
- fn: N(() => [
340
- x(a.$slots, "optionImg", {}, void 0, !0)
341
- ]),
342
- key: "1"
343
- } : void 0,
344
- a.$slots.optionFullscreen ? {
345
- name: "optionFullscreen",
346
- fn: N(({ toggleFullscreen: t, isFullscreen: u }) => [
347
- x(a.$slots, "optionFullscreen", L(D({ toggleFullscreen: t, isFullscreen: u })), void 0, !0)
348
- ]),
349
- key: "2"
350
- } : void 0,
351
- a.$slots.optionAnnotator ? {
352
- name: "optionAnnotator",
353
- fn: N(({ toggleAnnotator: t, isAnnotator: u }) => [
354
- x(a.$slots, "optionAnnotator", L(D({ toggleAnnotator: t, isAnnotator: u })), void 0, !0)
355
- ]),
356
- key: "3"
357
- } : void 0
358
- ]), 1032, ["backgroundColor", "color", "isImaging", "isPrinting", "uid", "hasPdf", "hasImg", "hasFullscreen", "isFullscreen", "titles", "chartElement", "position", "hasAnnotator", "isAnnotation", "onGeneratePdf", "onGenerateImage"])) : v("", !0),
359
- I.value ? (s(), r("svg", {
360
- key: 4,
361
- xmlns: i(Te),
362
- class: ce({ "vue-data-ui-fullscreen--on": P.value, "vue-data-ui-fulscreen--off": !P.value }),
363
- viewBox: `0 0 ${l.value.width <= 0 ? 10 : l.value.width} ${l.value.height <= 0 ? 10 : l.value.height}`,
364
- style: ve(`max-width:100%;overflow:hidden !important;background:transparent;color:${e.value.style.chart.color}`)
365
- }, [
366
- Ie(qe),
367
- g("defs", null, [
368
- g("radialGradient", {
369
- id: `gradient_${k.value}`,
370
- cx: "50%",
371
- cy: "50%",
372
- r: "50%",
373
- fx: "50%",
374
- fy: "50%"
375
- }, [
376
- g("stop", {
377
- offset: "0%",
378
- "stop-color": i(B)("#FFFFFF", 1)
379
- }, null, 8, tt),
380
- g("stop", {
381
- offset: "80%",
382
- "stop-color": i(B)("#FFFFFF", e.value.style.chart.layout.track.gradientIntensity)
383
- }, null, 8, at),
384
- g("stop", {
385
- offset: "100%",
386
- "stop-color": i(B)("#FFFFFF", 1)
387
- }, null, 8, lt)
388
- ], 8, et)
389
- ]),
390
- g("defs", null, [
391
- g("filter", {
392
- id: `blur_${k.value}`,
393
- x: "-50%",
394
- y: "-50%",
395
- width: "200%",
396
- height: "200%"
397
- }, [
398
- g("feGaussianBlur", {
399
- in: "SourceGraphic",
400
- stdDeviation: 100 / e.value.style.chart.layout.track.gradientIntensity
401
- }, null, 8, st)
402
- ], 8, ot)
403
- ]),
404
- (s(!0), r(F, null, O(_.value, (t, u) => (s(), r("path", {
405
- key: `arc_${u}`,
406
- d: t.arcSlice,
407
- fill: t.color,
408
- stroke: e.value.style.chart.backgroundColor,
409
- "stroke-linecap": "round"
410
- }, null, 8, rt))), 128)),
411
- e.value.style.chart.layout.segmentNames.show && e.value.style.chart.layout.segmentNames.curved ? (s(), r(F, { key: 0 }, [
412
- g("path", {
413
- id: `curve_${k.value}`,
414
- d: `M ${h.value.x1},${h.value.y1} m -${S.value},0 a ${S.value},${S.value} 0 1,1 ${2 * S.value},0 a ${S.value},${S.value} 0 1,1 -${2 * S.value},0`,
415
- fill: "transparent"
416
- }, null, 8, ut),
417
- (s(!0), r(F, null, O(_.value, (t, u) => (s(), r("text", {
418
- fill: e.value.style.chart.layout.segmentNames.useSerieColor ? t.color : e.value.style.chart.layout.segmentNames.color,
419
- "font-size": l.value.segmentFontSize,
420
- "font-weight": e.value.style.chart.layout.segmentNames.bold ? "bold" : "normal",
421
- "text-anchor": "middle"
422
- }, [
423
- g("textPath", {
424
- href: `#curve_${k.value}`,
425
- startOffset: we.value[u]
426
- }, z(t.name || ""), 9, it)
427
- ], 8, nt))), 256))
428
- ], 64)) : v("", !0),
429
- e.value.style.chart.layout.segmentNames.show && !e.value.style.chart.layout.segmentNames.curved ? (s(!0), r(F, { key: 1 }, O(_e.value, (t, u) => (s(), r("text", {
430
- x: t.center.endX,
431
- y: t.center.endY,
432
- "text-anchor": i(je)(t, !1, 12).anchor,
433
- fill: e.value.style.chart.layout.segmentNames.useSerieColor ? t.color : e.value.style.chart.layout.segmentNames.color,
434
- "font-size": l.value.segmentFontSize,
435
- "font-weight": e.value.style.chart.layout.segmentNames.bold ? "bold" : "normal"
436
- }, z(t.name || ""), 9, ct))), 256)) : v("", !0),
437
- e.value.style.chart.layout.track.useGradient ? (s(!0), r(F, { key: 2 }, O(Se.value, (t, u) => (s(), r("path", {
438
- key: `arc_${u}`,
439
- d: t.arcSlice,
440
- fill: "#FFFFFF",
441
- stroke: "none",
442
- "stroke-linecap": "round",
443
- filter: `url(#blur_${k.value})`
444
- }, null, 8, vt))), 128)) : v("", !0),
445
- e.value.style.chart.layout.markers.show ? (s(), r("g", ht, [
446
- (s(!0), r(F, null, O(_.value, (t, u) => (s(), r("text", {
447
- x: i(G)({
448
- centerX: l.value.width / 2,
449
- centerY: n.value.base,
450
- initX: t.center.startX,
451
- initY: t.center.startY,
452
- offset: l.value.markerOffset
453
- }).x,
454
- y: i(G)({
455
- centerX: l.value.width / 2,
456
- centerY: n.value.base,
457
- initX: t.center.startX,
458
- initY: t.center.startY,
459
- offset: l.value.markerOffset
460
- }).y,
461
- "text-anchor": t.center.startX < l.value.width / 2 - 5 ? "end" : t.center.startX > l.value.width / 2 + 5 ? "start" : "middle",
462
- "font-size": l.value.labelFontSize * e.value.style.chart.layout.markers.fontSizeRatio,
463
- "font-weight": `${e.value.style.chart.layout.markers.bold ? "bold" : "normal"}`,
464
- fill: e.value.style.chart.layout.markers.color
465
- }, z(i(W)(
466
- e.value.style.chart.layout.markers.formatter,
467
- t.from,
468
- i(V)({
469
- p: e.value.style.chart.layout.markers.prefix,
470
- v: t.from,
471
- s: e.value.style.chart.layout.markers.suffix,
472
- r: e.value.style.chart.layout.markers.roundingValue
473
- })
474
- )), 9, dt))), 256))
475
- ])) : v("", !0),
476
- e.value.style.chart.layout.markers.show ? (s(), r("text", {
477
- key: 4,
478
- x: i(G)({
479
- centerX: l.value.width / 2,
480
- centerY: n.value.base,
481
- initX: _.value.at(-1).endX,
482
- initY: _.value.at(-1).endY,
483
- offset: l.value.markerOffset
484
- }).x,
485
- y: i(G)({
486
- centerX: l.value.width / 2,
487
- centerY: n.value.base,
488
- initX: _.value.at(-1).endX,
489
- initY: _.value.at(-1).endY,
490
- offset: l.value.markerOffset
491
- }).y,
492
- "text-anchor": "start",
493
- "font-size": l.value.labelFontSize * e.value.style.chart.layout.markers.fontSizeRatio,
494
- "font-weight": `${e.value.style.chart.layout.markers.bold ? "bold" : "normal"}`,
495
- fill: e.value.style.chart.layout.markers.color
496
- }, z(i(W)(
497
- e.value.style.chart.layout.markers.formatter,
498
- C.value,
499
- i(V)({
500
- p: e.value.style.chart.layout.markers.prefix,
501
- v: C.value,
502
- s: e.value.style.chart.layout.markers.suffix,
503
- r: e.value.style.chart.layout.markers.roundingValue
504
- })
505
- )), 9, ft)) : v("", !0),
506
- e.value.style.chart.layout.pointer.type === "rounded" ? (s(), r("g", yt, [
507
- isNaN(h.value.x2) ? v("", !0) : (s(), r("line", {
508
- key: 0,
509
- x1: h.value.x1,
510
- y1: h.value.y1,
511
- x2: h.value.x2,
512
- y2: h.value.y2,
513
- stroke: e.value.style.chart.layout.pointer.stroke,
514
- "stroke-width": l.value.pointerStrokeWidth,
515
- "stroke-linecap": "round"
516
- }, null, 8, mt)),
517
- isNaN(h.value.x2) ? v("", !0) : (s(), r("line", {
518
- key: 1,
519
- x1: h.value.x1,
520
- y1: h.value.y1,
521
- x2: h.value.x2,
522
- y2: h.value.y2,
523
- stroke: e.value.style.chart.layout.pointer.useRatingColor ? T.value : e.value.style.chart.layout.pointer.color,
524
- "stroke-linecap": "round",
525
- "stroke-width": l.value.pointerStrokeWidth * 0.7
526
- }, null, 8, gt)),
527
- !isNaN(h.value.x2) && e.value.style.chart.layout.track.useGradient ? (s(), r("line", {
528
- key: 2,
529
- x1: h.value.x1,
530
- y1: h.value.y1,
531
- x2: h.value.x2,
532
- y2: h.value.y2,
533
- stroke: "white",
534
- "stroke-linecap": "round",
535
- "stroke-width": l.value.pointerStrokeWidth * 0.3,
536
- filter: `url(#blur_${k.value})`
537
- }, null, 8, pt)) : v("", !0)
538
- ])) : (s(), r("g", kt, [
539
- re.value ? (s(), r("path", {
540
- key: 0,
541
- d: re.value,
542
- fill: e.value.style.chart.layout.pointer.useRatingColor ? T.value : e.value.style.chart.layout.pointer.color,
543
- stroke: e.value.style.chart.layout.pointer.stroke,
544
- "stroke-width": e.value.style.chart.layout.pointer.circle.strokeWidth,
545
- "stroke-linejoin": "round"
546
- }, null, 8, bt)) : v("", !0)
547
- ])),
548
- g("circle", {
549
- cx: l.value.width / 2,
550
- cy: n.value.base,
551
- fill: e.value.style.chart.layout.pointer.circle.color,
552
- r: l.value.pointerRadius <= 0 ? 1e-4 : l.value.pointerRadius,
553
- "stroke-width": e.value.style.chart.layout.pointer.circle.strokeWidth,
554
- stroke: e.value.style.chart.layout.pointer.circle.stroke
555
- }, null, 8, _t),
556
- e.value.style.chart.legend.show ? (s(), r("text", {
557
- key: 7,
558
- x: l.value.width / 2,
559
- y: n.value.ratingBase,
560
- "text-anchor": "middle",
561
- "font-size": l.value.legendFontSize,
562
- "font-weight": "bold",
563
- fill: e.value.style.chart.legend.useRatingColor ? T.value : e.value.style.chart.legend.color
564
- }, z(i(W)(
565
- e.value.style.chart.legend.formatter,
566
- f.value,
567
- i(V)({
568
- p: e.value.style.chart.legend.prefix + (e.value.style.chart.legend.showPlusSymbol && f.value > 0 ? "+" : ""),
569
- v: f.value,
570
- s: e.value.style.chart.legend.suffix,
571
- r: e.value.style.chart.legend.roundingValue
572
- })
573
- )), 9, xt)) : v("", !0),
574
- x(a.$slots, "svg", { svg: l.value }, void 0, !0)
575
- ], 14, Qe)) : v("", !0),
576
- a.$slots.watermark ? (s(), r("div", wt, [
577
- x(a.$slots, "watermark", L(D({ isPrinting: i(ae) || i(le) })), void 0, !0)
578
- ])) : v("", !0),
579
- I.value ? v("", !0) : (s(), Y(We, {
580
- key: 6,
581
- config: {
582
- type: "gauge",
583
- style: {
584
- backgroundColor: e.value.style.chart.backgroundColor,
585
- gauge: {
586
- color: "#CCCCCC"
587
- }
588
- }
589
- }
590
- }, null, 8, ["config"])),
591
- g("div", {
592
- ref_key: "chartLegend",
593
- ref: J
594
- }, [
595
- x(a.$slots, "legend", { legend: w.value }, void 0, !0)
596
- ], 512),
597
- a.$slots.source ? (s(), r("div", {
598
- key: 7,
599
- ref_key: "source",
600
- ref: K,
601
- dir: "auto"
602
- }, [
603
- x(a.$slots, "source", {}, void 0, !0)
604
- ], 512)) : v("", !0)
605
- ], 14, Je));
606
- }
607
- }, At = /* @__PURE__ */ Ze(St, [["__scopeId", "data-v-e228171b"]]);
608
- export {
609
- At as default
610
- };
@@ -1 +0,0 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),r=require("./index-DuDeHJyK.cjs"),G=require("./useResponsive-BJ7DTGpm.cjs"),T=require("./usePrinter-ardO_DNo.cjs"),ne=require("./vue-ui-skeleton-DleyAXe1.cjs"),se=require("./Title-DkbnpMvf.cjs"),j=require("./useNestedProp-zkJOoemW.cjs"),ue=require("./PackageVersion-1JWV5loe.cjs"),ie=require("./PenAndPaper-C6mnwE-L.cjs"),ce=require("./_plugin-vue_export-helper-BHFhmbuH.cjs"),ve=["id"],de={key:0},he=["xmlns","viewBox"],fe=["id"],me=["stop-color"],ye=["stop-color"],pe=["stop-color"],ge=["id"],ke=["stdDeviation"],be=["d","fill","stroke"],_e=["id","d"],xe=["fill","font-size","font-weight"],we=["href","startOffset"],Se=["x","y","text-anchor","fill","font-size","font-weight"],Ce=["d","filter"],Ne={key:3},Be=["x","y","text-anchor","font-size","font-weight","fill"],ze=["x","y","font-size","font-weight","fill"],Fe={key:5},Pe=["x1","y1","x2","y2","stroke","stroke-width"],Ee=["x1","y1","x2","y2","stroke","stroke-width"],$e=["x1","y1","x2","y2","stroke-width","filter"],Me={key:6},Oe=["d","fill","stroke","stroke-width"],Ve=["cx","cy","fill","r","stroke-width","stroke"],Ie=["x","y","font-size","fill"],Ae={key:5,class:"vue-data-ui-watermark"},Xe={__name:"vue-ui-gauge",props:{config:{type:Object,default(){return{}}},dataset:{type:Object,default(){return{}}}},setup(N,{expose:q}){const i=N,{vue_ui_gauge:U}=r.useConfig(),w=e.computed(()=>!!i.dataset&&Object.keys(i.dataset).length>0&&i.dataset.series&&i.dataset.series.length),f=e.ref(r.createUid()),W=e.ref(null),F=e.ref(0),k=e.ref(null),P=e.ref(null),E=e.ref(null),$=e.ref(null),M=e.ref(null),O=e.ref(0),t=e.computed({get:()=>V(),set:l=>l});e.watch(()=>i.config,l=>{t.value=V(),Y(),O.value+=1},{deep:!0});function V(){const l=j.useNestedProp({userConfig:i.config,defaultConfig:U});return l.theme?{...j.useNestedProp({userConfig:r.themes.vue_ui_gauge[l.theme]||i.config,defaultConfig:l}),customPalette:r.themePalettes[l.theme]||r.palette}:l}const{isPrinting:I,isImaging:A,generatePdf:X,generateImage:R}=T.usePrinter({elementId:`vue-ui-gauge_${f.value}`,fileName:t.value.style.chart.title.text||"vue-ui-gauge"}),H=e.computed(()=>t.value.userOptions.show&&!t.value.style.chart.title.text),Z=e.computed(()=>r.convertCustomPalette(t.value.customPalette)),p=e.computed(()=>{if(!w.value||r.objectIsEmpty(i.dataset.series||{}))return{value:0,series:[{from:0,to:0}]};const l=[];(i.dataset.series||[]).forEach(a=>{l.push(a.from||1e-7),l.push(a.to||1e-7)});const n=Math.max(...l);return{...i.dataset,series:(i.dataset.series||[]).map((a,s)=>({...a,color:r.convertColorToHex(a.color)||Z.value[s]||r.palette[s],value:((a.to||0)-(a.from||0))/n*100}))}}),d=e.ref(512),o=e.ref({height:358.4,width:d.value,top:0,bottom:358.4,centerX:179.2,centerY:d.value/2,labelFontSize:18,legendFontSize:t.value.style.chart.legend.fontSize,pointerRadius:t.value.style.chart.layout.pointer.circle.radius,trackSize:t.value.style.chart.layout.track.size,pointerSize:t.value.style.chart.layout.pointer.size,pointerStrokeWidth:t.value.style.chart.layout.pointer.strokeWidth,markerOffset:t.value.style.chart.layout.markers.offsetY+3,segmentFontSize:t.value.style.chart.layout.segmentNames.fontSize}),b=e.ref(0),_=e.ref(0),v=e.ref(t.value.style.chart.animation.use?0:i.dataset.value);e.watch(()=>i.dataset.value,()=>{L(i.dataset.value)});const c=e.computed(()=>{const l=o.value.width/2,n=u.value.base,a=Math.PI*((v.value+0-_.value)/(b.value-_.value))+Math.PI;return{x1:l,y1:n,x2:l+u.value.pointerSize*o.value.pointerSize*.9*Math.cos(a),y2:n+u.value.pointerSize*o.value.pointerSize*.9*Math.sin(a)}}),D=e.computed(()=>{const l=o.value.width/2,n=u.value.base,a=Math.PI*((v.value+0-_.value)/(b.value-_.value))+Math.PI,s=l+u.value.pointerSize*o.value.pointerSize*.9*Math.cos(a),m=n+u.value.pointerSize*o.value.pointerSize*.9*Math.sin(a),h=o.value.pointerRadius,ae=l+h*Math.cos(a+Math.PI/2),le=n+h*Math.sin(a+Math.PI/2),oe=l+h*Math.cos(a-Math.PI/2),re=n+h*Math.sin(a-Math.PI/2);return isNaN(s)?null:`M ${s},${m} ${ae},${le} ${oe},${re} Z`}),B=e.computed(()=>{for(let l=0;l<p.value.series.length;l+=1){const{color:n,from:a,to:s}=p.value.series[l];if(v.value>=a&&v.value<=s)return n}return"#2D353C"}),S=e.ref(null);function Y(){if(r.objectIsEmpty(i.dataset)?r.error({componentName:"VueUiGauge",type:"dataset"}):(r.getMissingDatasetAttributes({datasetObject:i.dataset,requiredAttributes:["value","series"]}).forEach(l=>{r.error({componentName:"VueUiGauge",type:"datasetAttribute",property:l})}),Object.hasOwn(i.dataset,"series")&&(i.dataset.series.length?i.dataset.series.forEach((l,n)=>{r.getMissingDatasetAttributes({datasetObject:l,requiredAttributes:["from","to"]}).forEach(a=>{r.error({componentName:"VueUiGauge",type:"datasetSerieAttribute",property:a,index:n})})}):r.error({componentName:"VueUiGauge",type:"datasetAttributeEmpty",property:"series"}))),L(i.dataset.value||0),t.value.responsive){const l=G.throttle(()=>{const{width:n,height:a}=G.useResponsive({chart:k.value,title:t.value.style.chart.title.text?P.value:null,legend:E.value,source:$.value,noTitle:M.value});o.value.width=n,o.value.height=a,o.value.centerX=n/2,o.value.centerY=d.value/2/358.4*a,o.value.bottom=a,o.value.labelFontSize=18/d.value*Math.min(a,n)<10?10:18/d.value*Math.min(a,n),o.value.legendFontSize=t.value.style.chart.legend.fontSize/d.value*Math.min(a,n)<14?14:t.value.style.chart.legend.fontSize/d.value*Math.min(a,n),o.value.pointerRadius=t.value.style.chart.layout.pointer.circle.radius/d.value*Math.min(a,n),o.value.trackSize=t.value.style.chart.layout.track.size/d.value*Math.min(a,n),o.value.pointerStrokeWidth=r.translateSize({relator:Math.min(n,a),adjuster:d.value,source:t.value.style.chart.layout.pointer.strokeWidth,threshold:2,fallback:2}),o.value.markerOffset=r.translateSize({relator:Math.max(n,a),adjuster:d.value,source:t.value.style.chart.layout.markers.offsetY+3,threshold:2,fallback:2}),o.value.segmentFontSize=r.translateSize({relator:Math.min(n,a),adjuster:d.value,source:t.value.style.chart.layout.segmentNames.fontSize,threshold:8,fallback:8})});S.value=new ResizeObserver(l),S.value.observe(k.value.parentNode)}}e.onMounted(()=>{Y()}),e.onBeforeUnmount(()=>{S.value&&S.value.disconnect()});function L(l){const n=[];(p.value.series||[]).forEach(h=>{n.push(h.from||0),n.push(h.to||0)}),b.value=Math.max(...n),_.value=Math.min(...n);let a=t.value.style.chart.animation.speed;const s=Math.abs(l-v.value)/(a*60);function m(){v.value<l?v.value=Math.min(v.value+s,l):v.value>l&&(v.value=Math.max(v.value-s,l)),v.value!==l&&requestAnimationFrame(m)}m()}const u=e.computed(()=>{const l=t.value.responsive?Math.min(o.value.width,o.value.height):o.value.width;return{arcs:l/2.5,gradients:l/2.75,base:t.value.responsive?o.value.height/2:o.value.height*.7,ratingBase:t.value.responsive?o.value.height/2+o.value.height/4:o.value.height*.9,pointerSize:t.value.responsive?Math.min(o.value.width,o.value.height)/3:o.value.width/3.2}}),y=e.computed(()=>r.makeDonut({series:p.value.series},o.value.width/2,u.value.base,u.value.arcs,u.value.arcs,1,1,1,180,109.9495,40*o.value.trackSize)),J=e.computed(()=>r.makeDonut({series:p.value.series},o.value.width/2,u.value.base,u.value.arcs*t.value.style.chart.layout.segmentNames.offsetRatio,u.value.arcs*t.value.style.chart.layout.segmentNames.offsetRatio,1,1,1,180,109.9495,40*o.value.trackSize)),g=e.computed(()=>u.value.arcs*t.value.style.chart.layout.segmentNames.offsetRatio);function K(l){if(l.reduce((m,h)=>m+h,0)>100)throw new Error("Total % must not exceed 100");const a=50;let s=0;return l.map(m=>(s+=m,`${s/100*a-m/4}%`))}const Q=e.computed(()=>K(y.value.map(l=>l.proportion*100))),ee=e.computed(()=>r.makeDonut({series:p.value.series},o.value.width/2,u.value.base,u.value.gradients,u.value.gradients,.95,1,1,180,110.02,2*o.value.trackSize)),x=e.ref(!1);function te(l){x.value=l,F.value+=1}const C=e.ref(!1);function z(){C.value=!C.value}return q({generatePdf:X,generateImage:R,toggleAnnotator:z}),(l,n)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(`vue-ui-gauge ${x.value?"vue-data-ui-wrapper-fullscreen":""}`),ref_key:"gaugeChart",ref:k,id:`vue-ui-gauge_${f.value}`,style:e.normalizeStyle(`font-family:${t.value.style.fontFamily};width:100%; text-align:center;background:${t.value.style.chart.backgroundColor};${t.value.responsive?"height: 100%":""}`)},[t.value.userOptions.buttons.annotator?(e.openBlock(),e.createBlock(ie.PenAndPaper,{key:0,parent:k.value,backgroundColor:t.value.style.chart.backgroundColor,color:t.value.style.chart.color,active:C.value,onClose:z},null,8,["parent","backgroundColor","color","active"])):e.createCommentVNode("",!0),H.value?(e.openBlock(),e.createElementBlock("div",{key:1,ref_key:"noTitle",ref:M,class:"vue-data-ui-no-title-space",style:"height:36px; width: 100%;background:transparent"},null,512)):e.createCommentVNode("",!0),t.value.style.chart.title.text?(e.openBlock(),e.createElementBlock("div",{key:2,ref_key:"chartTitle",ref:P,style:"width:100%;background:transparent;padding-bottom:12px"},[(e.openBlock(),e.createBlock(se._sfc_main,{key:`title_${O.value}`,config:{title:{cy:"gauge-div-title",...t.value.style.chart.title},subtitle:{cy:"gauge-div-subtitle",...t.value.style.chart.title.subtitle}}},{default:e.withCtx(()=>[t.value.translations.base&&N.dataset.base?(e.openBlock(),e.createElementBlock("span",de,e.toDisplayString(t.value.translations.base)+": "+e.toDisplayString(N.dataset.base),1)):e.createCommentVNode("",!0)]),_:1},8,["config"]))],512)):e.createCommentVNode("",!0),t.value.userOptions.show&&w.value?(e.openBlock(),e.createBlock(T.UserOptions,{ref_key:"details",ref:W,key:`user_options_${F.value}`,backgroundColor:t.value.style.chart.backgroundColor,color:t.value.style.chart.color,isImaging:e.unref(A),isPrinting:e.unref(I),uid:f.value,hasXls:!1,hasPdf:t.value.userOptions.buttons.pdf,hasImg:t.value.userOptions.buttons.img,hasFullscreen:t.value.userOptions.buttons.fullscreen,isFullscreen:x.value,titles:{...t.value.userOptions.buttonTitles},chartElement:k.value,position:t.value.userOptions.position,hasAnnotator:t.value.userOptions.buttons.annotator,isAnnotation:C.value,onToggleFullscreen:te,onGeneratePdf:e.unref(X),onGenerateImage:e.unref(R),onToggleAnnotator:z},e.createSlots({_:2},[l.$slots.optionPdf?{name:"optionPdf",fn:e.withCtx(()=>[e.renderSlot(l.$slots,"optionPdf",{},void 0,!0)]),key:"0"}:void 0,l.$slots.optionImg?{name:"optionImg",fn:e.withCtx(()=>[e.renderSlot(l.$slots,"optionImg",{},void 0,!0)]),key:"1"}:void 0,l.$slots.optionFullscreen?{name:"optionFullscreen",fn:e.withCtx(({toggleFullscreen:a,isFullscreen:s})=>[e.renderSlot(l.$slots,"optionFullscreen",e.normalizeProps(e.guardReactiveProps({toggleFullscreen:a,isFullscreen:s})),void 0,!0)]),key:"2"}:void 0,l.$slots.optionAnnotator?{name:"optionAnnotator",fn:e.withCtx(({toggleAnnotator:a,isAnnotator:s})=>[e.renderSlot(l.$slots,"optionAnnotator",e.normalizeProps(e.guardReactiveProps({toggleAnnotator:a,isAnnotator:s})),void 0,!0)]),key:"3"}:void 0]),1032,["backgroundColor","color","isImaging","isPrinting","uid","hasPdf","hasImg","hasFullscreen","isFullscreen","titles","chartElement","position","hasAnnotator","isAnnotation","onGeneratePdf","onGenerateImage"])):e.createCommentVNode("",!0),w.value?(e.openBlock(),e.createElementBlock("svg",{key:4,xmlns:e.unref(r.XMLNS),class:e.normalizeClass({"vue-data-ui-fullscreen--on":x.value,"vue-data-ui-fulscreen--off":!x.value}),viewBox:`0 0 ${o.value.width<=0?10:o.value.width} ${o.value.height<=0?10:o.value.height}`,style:e.normalizeStyle(`max-width:100%;overflow:hidden !important;background:transparent;color:${t.value.style.chart.color}`)},[e.createVNode(ue._sfc_main),e.createElementVNode("defs",null,[e.createElementVNode("radialGradient",{id:`gradient_${f.value}`,cx:"50%",cy:"50%",r:"50%",fx:"50%",fy:"50%"},[e.createElementVNode("stop",{offset:"0%","stop-color":e.unref(r.setOpacity)("#FFFFFF",1)},null,8,me),e.createElementVNode("stop",{offset:"80%","stop-color":e.unref(r.setOpacity)("#FFFFFF",t.value.style.chart.layout.track.gradientIntensity)},null,8,ye),e.createElementVNode("stop",{offset:"100%","stop-color":e.unref(r.setOpacity)("#FFFFFF",1)},null,8,pe)],8,fe)]),e.createElementVNode("defs",null,[e.createElementVNode("filter",{id:`blur_${f.value}`,x:"-50%",y:"-50%",width:"200%",height:"200%"},[e.createElementVNode("feGaussianBlur",{in:"SourceGraphic",stdDeviation:100/t.value.style.chart.layout.track.gradientIntensity},null,8,ke)],8,ge)]),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(y.value,(a,s)=>(e.openBlock(),e.createElementBlock("path",{key:`arc_${s}`,d:a.arcSlice,fill:a.color,stroke:t.value.style.chart.backgroundColor,"stroke-linecap":"round"},null,8,be))),128)),t.value.style.chart.layout.segmentNames.show&&t.value.style.chart.layout.segmentNames.curved?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[e.createElementVNode("path",{id:`curve_${f.value}`,d:`M ${c.value.x1},${c.value.y1} m -${g.value},0 a ${g.value},${g.value} 0 1,1 ${2*g.value},0 a ${g.value},${g.value} 0 1,1 -${2*g.value},0`,fill:"transparent"},null,8,_e),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(y.value,(a,s)=>(e.openBlock(),e.createElementBlock("text",{fill:t.value.style.chart.layout.segmentNames.useSerieColor?a.color:t.value.style.chart.layout.segmentNames.color,"font-size":o.value.segmentFontSize,"font-weight":t.value.style.chart.layout.segmentNames.bold?"bold":"normal","text-anchor":"middle"},[e.createElementVNode("textPath",{href:`#curve_${f.value}`,startOffset:Q.value[s]},e.toDisplayString(a.name||""),9,we)],8,xe))),256))],64)):e.createCommentVNode("",!0),t.value.style.chart.layout.segmentNames.show&&!t.value.style.chart.layout.segmentNames.curved?(e.openBlock(!0),e.createElementBlock(e.Fragment,{key:1},e.renderList(J.value,(a,s)=>(e.openBlock(),e.createElementBlock("text",{x:a.center.endX,y:a.center.endY,"text-anchor":e.unref(r.calcMarkerOffsetX)(a,!1,12).anchor,fill:t.value.style.chart.layout.segmentNames.useSerieColor?a.color:t.value.style.chart.layout.segmentNames.color,"font-size":o.value.segmentFontSize,"font-weight":t.value.style.chart.layout.segmentNames.bold?"bold":"normal"},e.toDisplayString(a.name||""),9,Se))),256)):e.createCommentVNode("",!0),t.value.style.chart.layout.track.useGradient?(e.openBlock(!0),e.createElementBlock(e.Fragment,{key:2},e.renderList(ee.value,(a,s)=>(e.openBlock(),e.createElementBlock("path",{key:`arc_${s}`,d:a.arcSlice,fill:"#FFFFFF",stroke:"none","stroke-linecap":"round",filter:`url(#blur_${f.value})`},null,8,Ce))),128)):e.createCommentVNode("",!0),t.value.style.chart.layout.markers.show?(e.openBlock(),e.createElementBlock("g",Ne,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(y.value,(a,s)=>(e.openBlock(),e.createElementBlock("text",{x:e.unref(r.offsetFromCenterPoint)({centerX:o.value.width/2,centerY:u.value.base,initX:a.center.startX,initY:a.center.startY,offset:o.value.markerOffset}).x,y:e.unref(r.offsetFromCenterPoint)({centerX:o.value.width/2,centerY:u.value.base,initX:a.center.startX,initY:a.center.startY,offset:o.value.markerOffset}).y,"text-anchor":a.center.startX<o.value.width/2-5?"end":a.center.startX>o.value.width/2+5?"start":"middle","font-size":o.value.labelFontSize*t.value.style.chart.layout.markers.fontSizeRatio,"font-weight":`${t.value.style.chart.layout.markers.bold?"bold":"normal"}`,fill:t.value.style.chart.layout.markers.color},e.toDisplayString(e.unref(r.applyDataLabel)(t.value.style.chart.layout.markers.formatter,a.from,e.unref(r.dataLabel)({p:t.value.style.chart.layout.markers.prefix,v:a.from,s:t.value.style.chart.layout.markers.suffix,r:t.value.style.chart.layout.markers.roundingValue}))),9,Be))),256))])):e.createCommentVNode("",!0),t.value.style.chart.layout.markers.show?(e.openBlock(),e.createElementBlock("text",{key:4,x:e.unref(r.offsetFromCenterPoint)({centerX:o.value.width/2,centerY:u.value.base,initX:y.value.at(-1).endX,initY:y.value.at(-1).endY,offset:o.value.markerOffset}).x,y:e.unref(r.offsetFromCenterPoint)({centerX:o.value.width/2,centerY:u.value.base,initX:y.value.at(-1).endX,initY:y.value.at(-1).endY,offset:o.value.markerOffset}).y,"text-anchor":"start","font-size":o.value.labelFontSize*t.value.style.chart.layout.markers.fontSizeRatio,"font-weight":`${t.value.style.chart.layout.markers.bold?"bold":"normal"}`,fill:t.value.style.chart.layout.markers.color},e.toDisplayString(e.unref(r.applyDataLabel)(t.value.style.chart.layout.markers.formatter,b.value,e.unref(r.dataLabel)({p:t.value.style.chart.layout.markers.prefix,v:b.value,s:t.value.style.chart.layout.markers.suffix,r:t.value.style.chart.layout.markers.roundingValue}))),9,ze)):e.createCommentVNode("",!0),t.value.style.chart.layout.pointer.type==="rounded"?(e.openBlock(),e.createElementBlock("g",Fe,[isNaN(c.value.x2)?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("line",{key:0,x1:c.value.x1,y1:c.value.y1,x2:c.value.x2,y2:c.value.y2,stroke:t.value.style.chart.layout.pointer.stroke,"stroke-width":o.value.pointerStrokeWidth,"stroke-linecap":"round"},null,8,Pe)),isNaN(c.value.x2)?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("line",{key:1,x1:c.value.x1,y1:c.value.y1,x2:c.value.x2,y2:c.value.y2,stroke:t.value.style.chart.layout.pointer.useRatingColor?B.value:t.value.style.chart.layout.pointer.color,"stroke-linecap":"round","stroke-width":o.value.pointerStrokeWidth*.7},null,8,Ee)),!isNaN(c.value.x2)&&t.value.style.chart.layout.track.useGradient?(e.openBlock(),e.createElementBlock("line",{key:2,x1:c.value.x1,y1:c.value.y1,x2:c.value.x2,y2:c.value.y2,stroke:"white","stroke-linecap":"round","stroke-width":o.value.pointerStrokeWidth*.3,filter:`url(#blur_${f.value})`},null,8,$e)):e.createCommentVNode("",!0)])):(e.openBlock(),e.createElementBlock("g",Me,[D.value?(e.openBlock(),e.createElementBlock("path",{key:0,d:D.value,fill:t.value.style.chart.layout.pointer.useRatingColor?B.value:t.value.style.chart.layout.pointer.color,stroke:t.value.style.chart.layout.pointer.stroke,"stroke-width":t.value.style.chart.layout.pointer.circle.strokeWidth,"stroke-linejoin":"round"},null,8,Oe)):e.createCommentVNode("",!0)])),e.createElementVNode("circle",{cx:o.value.width/2,cy:u.value.base,fill:t.value.style.chart.layout.pointer.circle.color,r:o.value.pointerRadius<=0?1e-4:o.value.pointerRadius,"stroke-width":t.value.style.chart.layout.pointer.circle.strokeWidth,stroke:t.value.style.chart.layout.pointer.circle.stroke},null,8,Ve),t.value.style.chart.legend.show?(e.openBlock(),e.createElementBlock("text",{key:7,x:o.value.width/2,y:u.value.ratingBase,"text-anchor":"middle","font-size":o.value.legendFontSize,"font-weight":"bold",fill:t.value.style.chart.legend.useRatingColor?B.value:t.value.style.chart.legend.color},e.toDisplayString(e.unref(r.applyDataLabel)(t.value.style.chart.legend.formatter,v.value,e.unref(r.dataLabel)({p:t.value.style.chart.legend.prefix+(t.value.style.chart.legend.showPlusSymbol&&v.value>0?"+":""),v:v.value,s:t.value.style.chart.legend.suffix,r:t.value.style.chart.legend.roundingValue}))),9,Ie)):e.createCommentVNode("",!0),e.renderSlot(l.$slots,"svg",{svg:o.value},void 0,!0)],14,he)):e.createCommentVNode("",!0),l.$slots.watermark?(e.openBlock(),e.createElementBlock("div",Ae,[e.renderSlot(l.$slots,"watermark",e.normalizeProps(e.guardReactiveProps({isPrinting:e.unref(I)||e.unref(A)})),void 0,!0)])):e.createCommentVNode("",!0),w.value?e.createCommentVNode("",!0):(e.openBlock(),e.createBlock(ne.default,{key:6,config:{type:"gauge",style:{backgroundColor:t.value.style.chart.backgroundColor,gauge:{color:"#CCCCCC"}}}},null,8,["config"])),e.createElementVNode("div",{ref_key:"chartLegend",ref:E},[e.renderSlot(l.$slots,"legend",{legend:p.value},void 0,!0)],512),l.$slots.source?(e.openBlock(),e.createElementBlock("div",{key:7,ref_key:"source",ref:$,dir:"auto"},[e.renderSlot(l.$slots,"source",{},void 0,!0)],512)):e.createCommentVNode("",!0)],14,ve))}},Re=ce._export_sfc(Xe,[["__scopeId","data-v-e228171b"]]);exports.default=Re;