vue-data-ui 3.0.0-next.7 → 3.0.0-next.70

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 (136) hide show
  1. package/dist/{Arrow-Bl8urcli.js → Arrow-fzydFjfE.js} +1 -1
  2. package/dist/{BaseDraggableDialog-CyhpaZU5.js → BaseDraggableDialog-BwazM8ka.js} +2 -2
  3. package/dist/{BaseIcon-BCZfTCeM.js → BaseIcon-BnbvQjs5.js} +1 -1
  4. package/dist/{ColorPicker-CSJf42vx.js → ColorPicker-DR1Yr4kR.js} +2 -2
  5. package/dist/{DataTable-mQ6Wd-rR.js → DataTable-CKpA_OA_.js} +2 -2
  6. package/dist/{Legend-B2hrDh4G.js → Legend-ChXhJNzd.js} +2 -2
  7. package/dist/{NonSvgPenAndPaper-DQ8KsK4W.js → NonSvgPenAndPaper-CPOpM7Os.js} +3 -3
  8. package/dist/{PackageVersion-CeEYZfaH.js → PackageVersion-CBHvscRY.js} +1 -1
  9. package/dist/{PenAndPaper-DhSxfUrQ.js → PenAndPaper-BCcfYvgR.js} +3 -3
  10. package/dist/{Shape-C2qH26wh.js → Shape-C1rNfsMY.js} +43 -37
  11. package/dist/Slicer-D8a4Wv1q.js +602 -0
  12. package/dist/{SparkTooltip-BcHgW6YX.js → SparkTooltip-BUdf02cs.js} +1 -1
  13. package/dist/{Title-B7Xb3YuE.js → Title-feqCv0Si.js} +1 -1
  14. package/dist/{Tooltip-BidRoM5E.js → Tooltip-DQbksria.js} +23 -19
  15. package/dist/{UserOptions-0tvMM8PF.js → UserOptions-CGnAZpYs.js} +2 -2
  16. package/dist/{dom-to-png-CTrlbKHr.js → dom-to-png-DTPmkDTK.js} +1 -1
  17. package/dist/{img-D72yZNUg.js → img-_RMhslMZ.js} +1 -1
  18. package/dist/{index-Cg-RjxqH.js → index-CnY41r21.js} +2103 -1411
  19. package/dist/{pdf-DgX01_wu.js → pdf-C02XBmhm.js} +1 -1
  20. package/dist/style.css +1 -1
  21. package/dist/types/vue-data-ui.d.cts +600 -22
  22. package/dist/types/vue-data-ui.d.ts +600 -22
  23. package/dist/useAutoSizeLabelsInsideViewbox-DVYZBwNc.js +81 -0
  24. package/dist/useFitSvgText-2crs6Fv5.js +69 -0
  25. package/dist/useLoading-D7YHNtLX.js +29 -0
  26. package/dist/useNestedProp-DtUATNAU.js +13 -0
  27. package/dist/usePanZoom-BVca3eMk.js +122 -0
  28. package/dist/{usePrinter-BUzmyQf9.js → usePrinter-CJ1uZx0D.js} +2 -2
  29. package/dist/useTimeLabelCollider-CIsgDrl9.js +78 -0
  30. package/dist/{useTimeLabels-Mrr0jrpL.js → useTimeLabels-DkzmKfZn.js} +211 -152
  31. package/dist/{vue-data-ui-DpO93ey5.js → vue-data-ui-DDBabVWX.js} +105 -100
  32. package/dist/vue-data-ui.js +23 -22
  33. package/dist/vue-ui-3d-bar-CtPXePUa.js +1323 -0
  34. package/dist/{vue-ui-accordion-CRomxzaL.js → vue-ui-accordion-CnLY8CrQ.js} +3 -3
  35. package/dist/vue-ui-age-pyramid-CvrNLE47.js +834 -0
  36. package/dist/{vue-ui-annotator-BAOxPiFx.js → vue-ui-annotator-NuSwWka4.js} +2 -2
  37. package/dist/vue-ui-bullet-CpIVgkPB.js +571 -0
  38. package/dist/vue-ui-candlestick-DGWKUeJp.js +999 -0
  39. package/dist/{vue-ui-carousel-table-DVGlPZIa.js → vue-ui-carousel-table-DWbQS8F3.js} +29 -29
  40. package/dist/{vue-ui-chestnut-P1v4ffD0.js → vue-ui-chestnut-K4-oOYff.js} +5 -5
  41. package/dist/vue-ui-chord-DqmP8yTR.js +1038 -0
  42. package/dist/{vue-ui-circle-pack-FXmemXgl.js → vue-ui-circle-pack-D_ufubH5.js} +24 -24
  43. package/dist/{vue-ui-cursor-CdvMgIrP.js → vue-ui-cursor-B0tP4woK.js} +2 -2
  44. package/dist/{vue-ui-dashboard-Vke0452J.js → vue-ui-dashboard-D_7qyx3P.js} +62 -62
  45. package/dist/{vue-ui-digits-BVhyYqCs.js → vue-ui-digits-pUQErY07.js} +2 -2
  46. package/dist/{vue-ui-donut-BpIivKcf.js → vue-ui-donut-Dl__PVfq.js} +320 -308
  47. package/dist/vue-ui-donut-evolution-BCGGTZZI.js +1075 -0
  48. package/dist/vue-ui-dumbbell-KzCa3k9g.js +1119 -0
  49. package/dist/vue-ui-flow-B1AOqk14.js +841 -0
  50. package/dist/{vue-ui-funnel-BbFmbsft.js → vue-ui-funnel-DCl9v71X.js} +16 -16
  51. package/dist/{vue-ui-galaxy-Cn6vHbaw.js → vue-ui-galaxy-0rAzDHe5.js} +60 -58
  52. package/dist/vue-ui-gauge-Cg4qAOEf.js +791 -0
  53. package/dist/vue-ui-gizmo-CQmMkODw.js +210 -0
  54. package/dist/vue-ui-heatmap-CgkgUDI0.js +1078 -0
  55. package/dist/vue-ui-history-plot-CYvkTszV.js +1073 -0
  56. package/dist/{vue-ui-kpi-jN_yMnLj.js → vue-ui-kpi-BDuOZbc2.js} +26 -26
  57. package/dist/{vue-ui-mini-loader-rYr76x8g.js → vue-ui-mini-loader-BZaU_YD-.js} +2 -2
  58. package/dist/{vue-ui-molecule-BWZHOQLi.js → vue-ui-molecule-HYjHgVuN.js} +53 -51
  59. package/dist/vue-ui-mood-radar-4pYtL93A.js +785 -0
  60. package/dist/vue-ui-nested-donuts-BVbvVm19.js +1286 -0
  61. package/dist/vue-ui-onion-DQg97Dwm.js +776 -0
  62. package/dist/vue-ui-parallel-coordinate-plot-KQ4FTUda.js +915 -0
  63. package/dist/{vue-ui-quadrant-BFFzfDw3.js → vue-ui-quadrant-D8OU7TFs.js} +512 -459
  64. package/dist/vue-ui-quick-chart-BOKDoHdK.js +1761 -0
  65. package/dist/vue-ui-radar-2hTf-Qrf.js +796 -0
  66. package/dist/{vue-ui-rating-BAauyqTn.js → vue-ui-rating-QriKDSO7.js} +2 -2
  67. package/dist/vue-ui-relation-circle-DqLiKEHw.js +598 -0
  68. package/dist/vue-ui-ridgeline-CvFlsavM.js +1153 -0
  69. package/dist/vue-ui-rings-B2ges9Ud.js +728 -0
  70. package/dist/vue-ui-scatter-DQJeFlv4.js +1178 -0
  71. package/dist/{vue-ui-skeleton-CUOhCY4p.js → vue-ui-skeleton-Bghm5obp.js} +3 -3
  72. package/dist/{vue-ui-smiley-B6SqWMov.js → vue-ui-smiley-C3SkDNoz.js} +26 -26
  73. package/dist/vue-ui-spark-trend-dd8h3N7H.js +315 -0
  74. package/dist/vue-ui-sparkbar-BTj8M7fY.js +351 -0
  75. package/dist/vue-ui-sparkgauge-BBQAo-W1.js +232 -0
  76. package/dist/vue-ui-sparkhistogram-C4ZEcb8S.js +380 -0
  77. package/dist/vue-ui-sparkline-Bm3GpqJx.js +489 -0
  78. package/dist/vue-ui-sparkstackbar-Dde4iayd.js +421 -0
  79. package/dist/vue-ui-stackbar-DPvfNjwH.js +1370 -0
  80. package/dist/vue-ui-strip-plot-iZIN9U90.js +915 -0
  81. package/dist/{vue-ui-table-Dwjl3L0p.js → vue-ui-table-C4EoviSd.js} +11 -11
  82. package/dist/{vue-ui-table-heatmap-DazTE3fa.js → vue-ui-table-heatmap-D-eqO3LU.js} +5 -5
  83. package/dist/{vue-ui-table-sparkline-BXMPUEpN.js → vue-ui-table-sparkline-CD7IH49g.js} +14 -14
  84. package/dist/vue-ui-thermometer-BKEFH2Xt.js +541 -0
  85. package/dist/{vue-ui-timer-yLvNAZL_.js → vue-ui-timer-hhKj1gPp.js} +5 -5
  86. package/dist/vue-ui-tiremarks-CmNwCnVC.js +406 -0
  87. package/dist/vue-ui-treemap-BL7T8x_B.js +1035 -0
  88. package/dist/{vue-ui-vertical-bar-BrYCoVym.js → vue-ui-vertical-bar-CGn_OX3P.js} +71 -69
  89. package/dist/vue-ui-waffle-qfT-wDhI.js +910 -0
  90. package/dist/vue-ui-wheel-B8J8C3AN.js +379 -0
  91. package/dist/vue-ui-word-cloud-B6oHFfEK.js +765 -0
  92. package/dist/{vue-ui-world-B4Dqrk4l.js → vue-ui-world-BEv_oTrC.js} +11 -9
  93. package/dist/vue-ui-xy-DPBrciAR.js +3771 -0
  94. package/dist/{vue-ui-xy-canvas-D7fL36kT.js → vue-ui-xy-canvas-BXT3mXj5.js} +265 -264
  95. package/package.json +1 -1
  96. package/dist/Slicer-BD8Z8VCW.js +0 -577
  97. package/dist/useLoading-Bt5Doa8m.js +0 -28
  98. package/dist/useNestedProp-C_G5E08Y.js +0 -13
  99. package/dist/usePanZoom-BQMvRXEQ.js +0 -115
  100. package/dist/vue-ui-3d-bar-D8imUwEz.js +0 -1227
  101. package/dist/vue-ui-age-pyramid-CV7gtFOC.js +0 -746
  102. package/dist/vue-ui-bullet-BtuMMBF7.js +0 -513
  103. package/dist/vue-ui-candlestick-BsRtXKrv.js +0 -873
  104. package/dist/vue-ui-chord-CIuzYmpM.js +0 -949
  105. package/dist/vue-ui-donut-evolution-BRlsCA4U.js +0 -903
  106. package/dist/vue-ui-dumbbell-D87Dumjh.js +0 -753
  107. package/dist/vue-ui-flow-D_L_xssL.js +0 -765
  108. package/dist/vue-ui-gauge-Ds4terqY.js +0 -738
  109. package/dist/vue-ui-gizmo-BTncpI62.js +0 -192
  110. package/dist/vue-ui-heatmap-B6GpjeWC.js +0 -877
  111. package/dist/vue-ui-history-plot-DTDzEeGq.js +0 -924
  112. package/dist/vue-ui-mood-radar-CPfS6f1L.js +0 -670
  113. package/dist/vue-ui-nested-donuts-Bsd2kGoJ.js +0 -1177
  114. package/dist/vue-ui-onion-BQ4nISXW.js +0 -701
  115. package/dist/vue-ui-parallel-coordinate-plot-BoHgVgbn.js +0 -807
  116. package/dist/vue-ui-quick-chart-oNMTeOAL.js +0 -1612
  117. package/dist/vue-ui-radar-98mXFZe-.js +0 -741
  118. package/dist/vue-ui-relation-circle-6oDCSxkO.js +0 -542
  119. package/dist/vue-ui-ridgeline-CugMGjOU.js +0 -969
  120. package/dist/vue-ui-rings-bsGXaD2m.js +0 -685
  121. package/dist/vue-ui-scatter-7ssLliGg.js +0 -1045
  122. package/dist/vue-ui-spark-trend-jauInkkN.js +0 -291
  123. package/dist/vue-ui-sparkbar-DXByIxQH.js +0 -301
  124. package/dist/vue-ui-sparkgauge-BMrV2gDi.js +0 -201
  125. package/dist/vue-ui-sparkhistogram-CoNM4G7o.js +0 -313
  126. package/dist/vue-ui-sparkline-DrN3_wS0.js +0 -459
  127. package/dist/vue-ui-sparkstackbar-W1a0JQi9.js +0 -381
  128. package/dist/vue-ui-stackbar-D1-gbUgE.js +0 -1207
  129. package/dist/vue-ui-strip-plot-KhfvrVuN.js +0 -761
  130. package/dist/vue-ui-thermometer-Cn6lJRs3.js +0 -495
  131. package/dist/vue-ui-tiremarks-BYsWePfK.js +0 -358
  132. package/dist/vue-ui-treemap-Ce7RVFG3.js +0 -965
  133. package/dist/vue-ui-waffle-CCrR2T1G.js +0 -863
  134. package/dist/vue-ui-wheel-BuxjnrDN.js +0 -352
  135. package/dist/vue-ui-word-cloud-C6fawHJE.js +0 -659
  136. package/dist/vue-ui-xy-ubRnv9iJ.js +0 -2980
@@ -1,738 +0,0 @@
1
- import { defineAsyncComponent as G, computed as y, ref as m, watch as be, shallowRef as _e, onMounted as De, onBeforeUnmount as Ve, createElementBlock as u, openBlock as s, unref as n, normalizeStyle as q, normalizeClass as we, createBlock as U, createCommentVNode as c, createElementVNode as g, withCtx as I, toDisplayString as P, createSlots as qe, renderSlot as x, normalizeProps as W, guardReactiveProps as j, createVNode as He, Fragment as k, renderList as S, mergeProps as A } from "vue";
2
- import { u as Ze, c as Je, t as Ke, p as xe, a as Qe, b as et, o as Se, d as tt, e as T, g as $e, m as H, N as C, O as at, X as lt, s as Z, n as rt, i as J, f as K, E as Q } from "./index-Cg-RjxqH.js";
3
- import { t as st, u as ot } from "./useResponsive-DfdjqQps.js";
4
- import { u as ze } from "./useNestedProp-C_G5E08Y.js";
5
- import { u as ut } from "./usePrinter-BUzmyQf9.js";
6
- import { u as nt } from "./useUserOptionState-BIvW1Kz7.js";
7
- import { u as it } from "./useChartAccessibility-9icAAmYg.js";
8
- import ct from "./Title-B7Xb3YuE.js";
9
- import vt from "./img-D72yZNUg.js";
10
- import { _ as dt } from "./_plugin-vue_export-helper-CHgC5LLL.js";
11
- const ht = ["id"], yt = { key: 0 }, ft = ["xmlns", "viewBox"], mt = ["width", "height"], pt = ["id"], gt = ["stop-color"], kt = ["stop-color"], bt = ["stop-color"], _t = ["id"], wt = ["stdDeviation"], xt = { key: 1 }, St = ["d", "fill", "stroke"], $t = ["d", "fill", "stroke"], zt = ["d", "fill"], Ct = ["id", "d"], Ft = ["fill", "font-size", "font-weight"], Ot = ["href", "startOffset"], Mt = ["x", "y", "text-anchor", "fill", "font-size", "font-weight"], Pt = ["d", "filter"], Nt = ["stroke", "stroke-width"], Xt = ["stroke", "stroke-width"], It = ["stroke", "stroke-width"], Yt = ["stroke", "stroke-width"], At = { key: 8 }, Rt = ["x", "y", "text-anchor", "font-size", "font-weight", "fill"], Et = ["x", "y", "font-size", "font-weight", "fill"], Gt = { key: 0 }, Ut = ["x1", "y1", "x2", "y2", "stroke", "stroke-width"], Wt = ["x1", "y1", "x2", "y2", "stroke", "stroke-width"], jt = ["x1", "y1", "x2", "y2", "stroke-width", "filter"], Tt = { key: 1 }, Lt = ["d", "fill", "stroke", "stroke-width"], Bt = ["cx", "cy", "fill", "r", "stroke-width", "stroke"], Dt = ["x", "y", "font-size", "fill"], Vt = {
12
- key: 5,
13
- class: "vue-data-ui-watermark"
14
- }, qt = {
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(L, { expose: Ce }) {
31
- const Fe = G(() => import("./PenAndPaper-DhSxfUrQ.js")), Oe = G(() => import("./vue-ui-skeleton-CUOhCY4p.js")), Me = G(() => import("./UserOptions-0tvMM8PF.js")), Pe = G(() => import("./PackageVersion-CeEYZfaH.js")), { vue_ui_gauge: Ne } = Ze(), d = L, R = y(() => !!d.dataset && Object.keys(d.dataset).length > 0 && d.dataset.series && d.dataset.series.length), w = m(Je()), Xe = m(null), ee = m(0), F = m(null), te = m(null), ae = m(null), le = m(null), re = m(null), se = m(0), e = y({
32
- get: () => ie(),
33
- set: (t) => t
34
- }), { userOptionsVisible: B, setUserOptionsVisibility: oe, keepUserOptionState: ue } = nt({ config: e.value }), { svgRef: ne } = it({ config: e.value.style.chart.title });
35
- be(() => d.config, (t) => {
36
- e.value = ie(), B.value = !e.value.userOptions.showOnChartHover, fe(), se.value += 1;
37
- }, { deep: !0 });
38
- function ie() {
39
- const t = ze({
40
- userConfig: d.config,
41
- defaultConfig: Ne
42
- });
43
- return t.theme ? {
44
- ...ze({
45
- userConfig: Qe.vue_ui_gauge[t.theme] || d.config,
46
- defaultConfig: t
47
- }),
48
- customPalette: Ke[t.theme] || xe
49
- } : t;
50
- }
51
- const { isPrinting: ce, isImaging: ve, generatePdf: de, generateImage: he } = ut({
52
- elementId: `vue-ui-gauge_${w.value}`,
53
- fileName: e.value.style.chart.title.text || "vue-ui-gauge",
54
- options: e.value.userOptions.print
55
- }), Ie = y(() => e.value.userOptions.show && !e.value.style.chart.title.text), Ye = y(() => et(e.value.customPalette)), O = y(() => {
56
- if (!R.value || Se(d.dataset.series || {}))
57
- return {
58
- value: 0,
59
- series: [
60
- {
61
- from: 0,
62
- to: 0
63
- }
64
- ]
65
- };
66
- const t = [];
67
- (d.dataset.series || []).forEach((a) => {
68
- t.push(a.from || 1e-7), t.push(a.to || 1e-7);
69
- });
70
- const o = Math.max(...t);
71
- return {
72
- ...d.dataset,
73
- series: (d.dataset.series || []).map((a, r) => ({
74
- ...a,
75
- color: tt(a.color) || Ye.value[r] || xe[r],
76
- value: ((a.to || 0) - (a.from || 0)) / o * 100
77
- }))
78
- };
79
- }), b = m(512), l = m({
80
- height: 358.4,
81
- width: b.value,
82
- top: 0,
83
- bottom: 358.4,
84
- centerX: 179.2,
85
- centerY: b.value / 2,
86
- labelFontSize: 18,
87
- legendFontSize: e.value.style.chart.legend.fontSize,
88
- pointerRadius: e.value.style.chart.layout.pointer.circle.radius,
89
- trackSize: e.value.style.chart.layout.track.size,
90
- pointerSize: e.value.style.chart.layout.pointer.size,
91
- pointerStrokeWidth: e.value.style.chart.layout.pointer.strokeWidth,
92
- markerOffset: e.value.style.chart.layout.markers.offsetY + 3,
93
- segmentFontSize: e.value.style.chart.layout.segmentNames.fontSize
94
- }), N = m(0), $ = m(0), f = m(
95
- e.value.style.chart.animation.use ? Math.min(...d.dataset.series.map((t) => t.from)) : d.dataset.value
96
- );
97
- be(() => d.dataset.value, () => {
98
- me(d.dataset.value);
99
- });
100
- const i = y(() => {
101
- const t = l.value.width / 2, o = v.value.base, a = Math.PI * ((f.value + 0 - $.value) / (N.value - $.value)) + Math.PI;
102
- return {
103
- x1: t,
104
- y1: o,
105
- x2: t + v.value.pointerSize * l.value.pointerSize * 0.9 * Math.cos(a),
106
- y2: o + v.value.pointerSize * l.value.pointerSize * 0.9 * Math.sin(a)
107
- };
108
- }), ye = y(() => {
109
- const t = l.value.width / 2, o = v.value.base, a = Math.PI * ((f.value + 0 - $.value) / (N.value - $.value)) + Math.PI, r = t + v.value.pointerSize * l.value.pointerSize * 0.9 * Math.cos(a), p = o + v.value.pointerSize * l.value.pointerSize * 0.9 * Math.sin(a), _ = l.value.pointerRadius, je = t + _ * Math.cos(a + Math.PI / 2), Te = o + _ * Math.sin(a + Math.PI / 2), Le = t + _ * Math.cos(a - Math.PI / 2), Be = o + _ * Math.sin(a - Math.PI / 2);
110
- return isNaN(r) ? null : `M ${r},${p} ${je},${Te} ${Le},${Be} Z`;
111
- }), D = y(() => {
112
- for (let t = 0; t < O.value.series.length; t += 1) {
113
- const { color: o, from: a, to: r } = O.value.series[t];
114
- if (f.value >= a && f.value <= r)
115
- return o;
116
- }
117
- return "#2D353C";
118
- }), z = _e(null), X = _e(null);
119
- function fe() {
120
- if (Se(d.dataset) ? T({
121
- componentName: "VueUiGauge",
122
- type: "dataset"
123
- }) : ($e({
124
- datasetObject: d.dataset,
125
- requiredAttributes: ["value", "series"]
126
- }).forEach((t) => {
127
- T({
128
- componentName: "VueUiGauge",
129
- type: "datasetAttribute",
130
- property: t
131
- });
132
- }), Object.hasOwn(d.dataset, "series") && (d.dataset.series.length ? d.dataset.series.forEach((t, o) => {
133
- $e({
134
- datasetObject: t,
135
- requiredAttributes: ["from", "to"]
136
- }).forEach((a) => {
137
- T({
138
- componentName: "VueUiGauge",
139
- type: "datasetSerieAttribute",
140
- property: a,
141
- index: o
142
- });
143
- });
144
- }) : T({
145
- componentName: "VueUiGauge",
146
- type: "datasetAttributeEmpty",
147
- property: "series"
148
- }))), me(d.dataset.value || 0), e.value.responsive) {
149
- const t = st(() => {
150
- const { width: o, height: a } = ot({
151
- chart: F.value,
152
- title: e.value.style.chart.title.text ? te.value : null,
153
- legend: ae.value,
154
- source: le.value,
155
- noTitle: re.value
156
- });
157
- requestAnimationFrame(() => {
158
- l.value.width = o, l.value.height = a, l.value.centerX = o / 2, l.value.centerY = b.value / 2 / 358.4 * a, l.value.bottom = a, l.value.labelFontSize = 18 / b.value * Math.min(a, o) < 10 ? 10 : 18 / b.value * Math.min(a, o), l.value.legendFontSize = e.value.style.chart.legend.fontSize / b.value * Math.min(a, o) < 14 ? 14 : e.value.style.chart.legend.fontSize / b.value * Math.min(a, o), l.value.pointerRadius = e.value.style.chart.layout.pointer.circle.radius / b.value * Math.min(a, o), l.value.trackSize = e.value.style.chart.layout.track.size / b.value * Math.min(a, o), l.value.pointerStrokeWidth = Q({
159
- relator: Math.min(o, a),
160
- adjuster: b.value,
161
- source: e.value.style.chart.layout.pointer.strokeWidth,
162
- threshold: 2,
163
- fallback: 2
164
- }), l.value.markerOffset = Q({
165
- relator: Math.max(o, a),
166
- adjuster: b.value,
167
- source: e.value.style.chart.layout.markers.offsetY + 3,
168
- threshold: 2,
169
- fallback: 2
170
- }), l.value.segmentFontSize = Q({
171
- relator: Math.min(o, a),
172
- adjuster: b.value,
173
- source: e.value.style.chart.layout.segmentNames.fontSize,
174
- threshold: 8,
175
- fallback: 8
176
- });
177
- });
178
- });
179
- z.value && (X.value && z.value.unobserve(X.value), z.value.disconnect()), z.value = new ResizeObserver(t), X.value = F.value.parentNode, z.value.observe(X.value);
180
- }
181
- }
182
- De(() => {
183
- fe();
184
- }), Ve(() => {
185
- z.value && (X.value && z.value.unobserve(X.value), z.value.disconnect());
186
- });
187
- function me(t) {
188
- const o = [];
189
- (O.value.series || []).forEach((_) => {
190
- o.push(_.from || 0), o.push(_.to || 0);
191
- }), N.value = Math.max(...o), $.value = Math.min(...o);
192
- let a = e.value.style.chart.animation.speed;
193
- const r = Math.abs(t - f.value) / (a * 60);
194
- function p() {
195
- f.value < t ? f.value = Math.min(f.value + r, t) : f.value > t && (f.value = Math.max(f.value - r, t)), f.value !== t && requestAnimationFrame(p);
196
- }
197
- p();
198
- }
199
- const v = y(() => {
200
- const t = e.value.responsive ? Math.min(l.value.width, l.value.height) : l.value.width, o = 2.5 / e.value.style.chart.layout.radiusRatio;
201
- return {
202
- arcs: t / o,
203
- gradients: t / (o * 1.1),
204
- base: e.value.responsive ? l.value.height / 2 : l.value.height * 0.7,
205
- ratingBase: e.value.responsive ? l.value.height / 2 + l.value.height / 4 : l.value.height * 0.9,
206
- pointerSize: e.value.responsive ? Math.min(l.value.width, l.value.height) / 3 : l.value.width / 3.2
207
- };
208
- }), h = y(() => H(
209
- { series: O.value.series },
210
- l.value.width / 2,
211
- v.value.base,
212
- v.value.arcs,
213
- v.value.arcs,
214
- 1,
215
- 1,
216
- 1,
217
- 180,
218
- 109.9495,
219
- 40 * l.value.trackSize
220
- )), Ae = y(() => H(
221
- { series: O.value.series },
222
- l.value.width / 2,
223
- v.value.base,
224
- v.value.arcs * e.value.style.chart.layout.segmentNames.offsetRatio,
225
- v.value.arcs * e.value.style.chart.layout.segmentNames.offsetRatio,
226
- 1,
227
- 1,
228
- 1,
229
- 180,
230
- 109.9495,
231
- 40 * l.value.trackSize
232
- )), M = y(() => h.value.map((t) => v.value.arcs * e.value.style.chart.layout.segmentNames.offsetRatio * (t.nameOffsetRatio || 1))), pe = y(() => {
233
- const { x: t, y: o } = C({
234
- initX: h.value[0].firstSeparator.x,
235
- initY: h.value[0].firstSeparator.y,
236
- centerX: i.value.x1,
237
- centerY: i.value.y1,
238
- offset: -e.value.style.chart.layout.segmentSeparators.offsetIn
239
- }), { x: a, y: r } = C({
240
- initX: h.value[0].startX,
241
- initY: h.value[0].startY,
242
- centerX: i.value.x1,
243
- centerY: i.value.y1,
244
- offset: e.value.style.chart.layout.segmentSeparators.offsetOut
245
- });
246
- return { x1: t, y1: o, x2: a, y2: r };
247
- }), ge = y(() => h.value.map((t) => {
248
- const { x: o, y: a } = C({
249
- initX: t.separator.x,
250
- initY: t.separator.y,
251
- centerX: i.value.x1,
252
- centerY: i.value.y1,
253
- offset: -e.value.style.chart.layout.segmentSeparators.offsetIn
254
- }), { x: r, y: p } = C({
255
- initX: t.endX,
256
- initY: t.endY,
257
- centerX: i.value.x1,
258
- centerY: i.value.y1,
259
- offset: e.value.style.chart.layout.segmentSeparators.offsetOut
260
- });
261
- return { x1: o, y1: a, x2: r, y2: p };
262
- }));
263
- function Re(t) {
264
- if (t.reduce((p, _) => p + _, 0) > 100)
265
- throw new Error("Total % must not exceed 100");
266
- const a = 50;
267
- let r = 0;
268
- return t.map((p) => (r += p, `${r / 100 * a - p / 4}%`));
269
- }
270
- const Ee = y(() => Re(h.value.map((t) => t.proportion * 100))), Ge = y(() => H(
271
- { series: O.value.series },
272
- l.value.width / 2,
273
- v.value.base,
274
- v.value.gradients,
275
- v.value.gradients,
276
- 0.95,
277
- 1,
278
- 1,
279
- 180,
280
- 110.02,
281
- 2 * l.value.trackSize
282
- )), Ue = y(() => {
283
- const t = $.value >= 0 ? -$.value : Math.abs($.value);
284
- return at(
285
- {
286
- radius: e.value.style.chart.layout.indicatorArc.radius * l.value.trackSize,
287
- centerX: l.value.width / 2,
288
- centerY: v.value.base,
289
- percentage: (f.value + t) / (N.value + t)
290
- }
291
- );
292
- }), Y = m(!1);
293
- function ke(t) {
294
- Y.value = t, ee.value += 1;
295
- }
296
- const E = m(!1);
297
- function V() {
298
- E.value = !E.value;
299
- }
300
- async function We({ scale: t = 2 } = {}) {
301
- if (!F.value) return;
302
- const { width: o, height: a } = F.value.getBoundingClientRect(), r = o / a, { imageUri: p, base64: _ } = await vt({ domElement: F.value, base64: !0, img: !0, scale: t });
303
- return {
304
- imageUri: p,
305
- base64: _,
306
- title: e.value.style.chart.title.text,
307
- width: o,
308
- height: a,
309
- aspectRatio: r
310
- };
311
- }
312
- return Ce({
313
- getImage: We,
314
- generatePdf: de,
315
- generateImage: he,
316
- toggleAnnotator: V,
317
- toggleFullscreen: ke
318
- }), (t, o) => (s(), u("div", {
319
- class: we(`vue-ui-gauge ${Y.value ? "vue-data-ui-wrapper-fullscreen" : ""}`),
320
- ref_key: "gaugeChart",
321
- ref: F,
322
- id: `vue-ui-gauge_${w.value}`,
323
- style: q(`font-family:${e.value.style.fontFamily};width:100%; text-align:center;background:${e.value.style.chart.backgroundColor};${e.value.responsive ? "height: 100%" : ""}`),
324
- onMouseenter: o[0] || (o[0] = () => n(oe)(!0)),
325
- onMouseleave: o[1] || (o[1] = () => n(oe)(!1))
326
- }, [
327
- e.value.userOptions.buttons.annotator ? (s(), U(n(Fe), {
328
- key: 0,
329
- svgRef: n(ne),
330
- backgroundColor: e.value.style.chart.backgroundColor,
331
- color: e.value.style.chart.color,
332
- active: E.value,
333
- onClose: V
334
- }, null, 8, ["svgRef", "backgroundColor", "color", "active"])) : c("", !0),
335
- Ie.value ? (s(), u("div", {
336
- key: 1,
337
- ref_key: "noTitle",
338
- ref: re,
339
- class: "vue-data-ui-no-title-space",
340
- style: "height:36px; width: 100%;background:transparent"
341
- }, null, 512)) : c("", !0),
342
- e.value.style.chart.title.text ? (s(), u("div", {
343
- key: 2,
344
- ref_key: "chartTitle",
345
- ref: te,
346
- style: "width:100%;background:transparent;padding-bottom:12px"
347
- }, [
348
- (s(), U(ct, {
349
- key: `title_${se.value}`,
350
- config: {
351
- title: {
352
- cy: "gauge-div-title",
353
- ...e.value.style.chart.title
354
- },
355
- subtitle: {
356
- cy: "gauge-div-subtitle",
357
- ...e.value.style.chart.title.subtitle
358
- }
359
- }
360
- }, {
361
- default: I(() => [
362
- e.value.translations.base && L.dataset.base ? (s(), u("span", yt, P(e.value.translations.base) + ": " + P(L.dataset.base), 1)) : c("", !0)
363
- ]),
364
- _: 1
365
- }, 8, ["config"]))
366
- ], 512)) : c("", !0),
367
- e.value.userOptions.show && R.value && (n(ue) || n(B)) ? (s(), U(n(Me), {
368
- ref_key: "details",
369
- ref: Xe,
370
- key: `user_options_${ee.value}`,
371
- backgroundColor: e.value.style.chart.backgroundColor,
372
- color: e.value.style.chart.color,
373
- isImaging: n(ve),
374
- isPrinting: n(ce),
375
- uid: w.value,
376
- hasXls: !1,
377
- hasPdf: e.value.userOptions.buttons.pdf,
378
- hasImg: e.value.userOptions.buttons.img,
379
- hasFullscreen: e.value.userOptions.buttons.fullscreen,
380
- isFullscreen: Y.value,
381
- titles: { ...e.value.userOptions.buttonTitles },
382
- chartElement: F.value,
383
- callbacks: e.value.userOptions.callbacks,
384
- printScale: e.value.userOptions.print.scale,
385
- position: e.value.userOptions.position,
386
- hasAnnotator: e.value.userOptions.buttons.annotator,
387
- isAnnotation: E.value,
388
- onToggleFullscreen: ke,
389
- onGeneratePdf: n(de),
390
- onGenerateImage: n(he),
391
- onToggleAnnotator: V,
392
- style: q({
393
- visibility: n(ue) ? n(B) ? "visible" : "hidden" : "visible"
394
- })
395
- }, qe({ _: 2 }, [
396
- t.$slots.menuIcon ? {
397
- name: "menuIcon",
398
- fn: I(({ isOpen: a, color: r }) => [
399
- x(t.$slots, "menuIcon", W(j({ isOpen: a, color: r })), void 0, !0)
400
- ]),
401
- key: "0"
402
- } : void 0,
403
- t.$slots.optionPdf ? {
404
- name: "optionPdf",
405
- fn: I(() => [
406
- x(t.$slots, "optionPdf", {}, void 0, !0)
407
- ]),
408
- key: "1"
409
- } : void 0,
410
- t.$slots.optionImg ? {
411
- name: "optionImg",
412
- fn: I(() => [
413
- x(t.$slots, "optionImg", {}, void 0, !0)
414
- ]),
415
- key: "2"
416
- } : void 0,
417
- t.$slots.optionFullscreen ? {
418
- name: "optionFullscreen",
419
- fn: I(({ toggleFullscreen: a, isFullscreen: r }) => [
420
- x(t.$slots, "optionFullscreen", W(j({ toggleFullscreen: a, isFullscreen: r })), void 0, !0)
421
- ]),
422
- key: "3"
423
- } : void 0,
424
- t.$slots.optionAnnotator ? {
425
- name: "optionAnnotator",
426
- fn: I(({ toggleAnnotator: a, isAnnotator: r }) => [
427
- x(t.$slots, "optionAnnotator", W(j({ toggleAnnotator: a, isAnnotator: r })), void 0, !0)
428
- ]),
429
- key: "4"
430
- } : void 0
431
- ]), 1032, ["backgroundColor", "color", "isImaging", "isPrinting", "uid", "hasPdf", "hasImg", "hasFullscreen", "isFullscreen", "titles", "chartElement", "callbacks", "printScale", "position", "hasAnnotator", "isAnnotation", "onGeneratePdf", "onGenerateImage", "style"])) : c("", !0),
432
- R.value ? (s(), u("svg", {
433
- key: 4,
434
- ref_key: "svgRef",
435
- ref: ne,
436
- xmlns: n(lt),
437
- class: we({ "vue-data-ui-fullscreen--on": Y.value, "vue-data-ui-fulscreen--off": !Y.value }),
438
- viewBox: `0 0 ${l.value.width <= 0 ? 10 : l.value.width} ${l.value.height <= 0 ? 10 : l.value.height}`,
439
- style: q(`max-width:100%;overflow:hidden !important;background:transparent;color:${e.value.style.chart.color}`)
440
- }, [
441
- He(n(Pe)),
442
- t.$slots["chart-background"] ? (s(), u("foreignObject", {
443
- key: 0,
444
- x: 0,
445
- y: 0,
446
- width: l.value.width <= 0 ? 10 : l.value.width,
447
- height: l.value.height <= 0 ? 10 : l.value.height,
448
- style: {
449
- pointerEvents: "none"
450
- }
451
- }, [
452
- x(t.$slots, "chart-background", {}, void 0, !0)
453
- ], 8, mt)) : c("", !0),
454
- g("defs", null, [
455
- g("radialGradient", {
456
- id: `gradient_${w.value}`,
457
- cx: "50%",
458
- cy: "50%",
459
- r: "50%",
460
- fx: "50%",
461
- fy: "50%"
462
- }, [
463
- g("stop", {
464
- offset: "0%",
465
- "stop-color": n(Z)("#FFFFFF", 1)
466
- }, null, 8, gt),
467
- g("stop", {
468
- offset: "80%",
469
- "stop-color": n(Z)("#FFFFFF", e.value.style.chart.layout.track.gradientIntensity)
470
- }, null, 8, kt),
471
- g("stop", {
472
- offset: "100%",
473
- "stop-color": n(Z)("#FFFFFF", 1)
474
- }, null, 8, bt)
475
- ], 8, pt)
476
- ]),
477
- g("defs", null, [
478
- g("filter", {
479
- id: `blur_${w.value}`,
480
- x: "-50%",
481
- y: "-50%",
482
- width: "200%",
483
- height: "200%"
484
- }, [
485
- g("feGaussianBlur", {
486
- in: "SourceGraphic",
487
- stdDeviation: 100 / e.value.style.chart.layout.track.gradientIntensity
488
- }, null, 8, wt)
489
- ], 8, _t)
490
- ]),
491
- t.$slots.pattern ? (s(), u("g", xt, [
492
- (s(!0), u(k, null, S(h.value, (a, r) => (s(), u("defs", null, [
493
- x(t.$slots, "pattern", A({ ref_for: !0 }, { seriesIndex: r, patternId: `pattern_${w.value}_${r}` }), void 0, !0)
494
- ]))), 256))
495
- ])) : c("", !0),
496
- (s(!0), u(k, null, S(h.value, (a, r) => (s(), u("path", {
497
- key: `arc_${r}`,
498
- d: a.arcSlice,
499
- fill: a.color,
500
- stroke: e.value.style.chart.backgroundColor,
501
- "stroke-linecap": "round"
502
- }, null, 8, St))), 128)),
503
- t.$slots.pattern ? (s(!0), u(k, { key: 2 }, S(h.value, (a, r) => (s(), u("path", {
504
- key: `arc_${r}`,
505
- d: a.arcSlice,
506
- fill: `url(#pattern_${w.value}_${r})`,
507
- stroke: e.value.style.chart.backgroundColor,
508
- "stroke-linecap": "round"
509
- }, null, 8, $t))), 128)) : c("", !0),
510
- e.value.style.chart.layout.indicatorArc.show ? (s(), u("path", {
511
- key: 3,
512
- d: Ue.value,
513
- fill: e.value.style.chart.layout.indicatorArc.fill
514
- }, null, 8, zt)) : c("", !0),
515
- e.value.style.chart.layout.segmentNames.show && e.value.style.chart.layout.segmentNames.curved ? (s(), u(k, { key: 4 }, [
516
- (s(!0), u(k, null, S(h.value, (a, r) => (s(), u("path", {
517
- id: `curve_${w.value}_${r}`,
518
- d: `M ${i.value.x1},${i.value.y1} m -${M.value[r]},0 a ${M.value[r]},${M.value[r]} 0 1,1 ${2 * M.value[r]},0 a ${M.value[r]},${M.value[r]} 0 1,1 -${2 * M.value[r]},0`,
519
- fill: "transparent"
520
- }, null, 8, Ct))), 256)),
521
- (s(!0), u(k, null, S(h.value, (a, r) => (s(), u("text", {
522
- fill: e.value.style.chart.layout.segmentNames.useSerieColor ? a.color : e.value.style.chart.layout.segmentNames.color,
523
- "font-size": l.value.segmentFontSize,
524
- "font-weight": e.value.style.chart.layout.segmentNames.bold ? "bold" : "normal",
525
- "text-anchor": "middle"
526
- }, [
527
- g("textPath", {
528
- href: `#curve_${w.value}_${r}`,
529
- startOffset: Ee.value[r]
530
- }, P(a.name || ""), 9, Ot)
531
- ], 8, Ft))), 256))
532
- ], 64)) : c("", !0),
533
- e.value.style.chart.layout.segmentNames.show && !e.value.style.chart.layout.segmentNames.curved ? (s(!0), u(k, { key: 5 }, S(Ae.value, (a, r) => (s(), u("text", {
534
- x: a.center.endX,
535
- y: a.center.endY,
536
- "text-anchor": n(rt)(a, !1, 12).anchor,
537
- fill: e.value.style.chart.layout.segmentNames.useSerieColor ? a.color : e.value.style.chart.layout.segmentNames.color,
538
- "font-size": l.value.segmentFontSize,
539
- "font-weight": e.value.style.chart.layout.segmentNames.bold ? "bold" : "normal"
540
- }, P(a.name || ""), 9, Mt))), 256)) : c("", !0),
541
- e.value.style.chart.layout.track.useGradient ? (s(!0), u(k, { key: 6 }, S(Ge.value, (a, r) => (s(), u("path", {
542
- key: `arc_${r}`,
543
- d: a.arcSlice,
544
- fill: "#FFFFFF",
545
- stroke: "none",
546
- "stroke-linecap": "round",
547
- filter: `url(#blur_${w.value})`
548
- }, null, 8, Pt))), 128)) : c("", !0),
549
- e.value.style.chart.layout.segmentSeparators.show ? (s(), u(k, { key: 7 }, [
550
- g("line", A(pe.value, {
551
- stroke: e.value.style.chart.backgroundColor,
552
- "stroke-width": e.value.style.chart.layout.segmentSeparators.strokeWidth + 2,
553
- "stroke-linecap": "round"
554
- }), null, 16, Nt),
555
- g("line", A(pe.value, {
556
- stroke: e.value.style.chart.layout.segmentSeparators.stroke,
557
- "stroke-width": e.value.style.chart.layout.segmentSeparators.strokeWidth,
558
- "stroke-linecap": "round"
559
- }), null, 16, Xt),
560
- (s(!0), u(k, null, S(ge.value, (a) => (s(), u("line", A({ ref_for: !0 }, a, {
561
- stroke: e.value.style.chart.backgroundColor,
562
- "stroke-width": e.value.style.chart.layout.segmentSeparators.strokeWidth + 2,
563
- "stroke-linecap": "round"
564
- }), null, 16, It))), 256)),
565
- (s(!0), u(k, null, S(ge.value, (a) => (s(), u("line", A({ ref_for: !0 }, a, {
566
- stroke: e.value.style.chart.layout.segmentSeparators.stroke,
567
- "stroke-width": e.value.style.chart.layout.segmentSeparators.strokeWidth,
568
- "stroke-linecap": "round"
569
- }), null, 16, Yt))), 256))
570
- ], 64)) : c("", !0),
571
- e.value.style.chart.layout.markers.show ? (s(), u("g", At, [
572
- (s(!0), u(k, null, S(h.value, (a, r) => (s(), u("text", {
573
- x: n(C)({
574
- centerX: i.value.x1,
575
- centerY: v.value.base,
576
- initX: a.center.startX,
577
- initY: a.center.startY,
578
- offset: l.value.markerOffset
579
- }).x,
580
- y: n(C)({
581
- centerX: i.value.x1,
582
- centerY: v.value.base,
583
- initX: a.center.startX,
584
- initY: a.center.startY,
585
- offset: l.value.markerOffset
586
- }).y,
587
- "text-anchor": a.center.startX < i.value.x1 - 5 ? "end" : a.center.startX > i.value.x1 + 5 ? "start" : "middle",
588
- "font-size": l.value.labelFontSize * e.value.style.chart.layout.markers.fontSizeRatio,
589
- "font-weight": `${e.value.style.chart.layout.markers.bold ? "bold" : "normal"}`,
590
- fill: e.value.style.chart.layout.markers.color
591
- }, P(n(J)(
592
- e.value.style.chart.layout.markers.formatter,
593
- a.from,
594
- n(K)({
595
- p: e.value.style.chart.layout.markers.prefix,
596
- v: a.from,
597
- s: e.value.style.chart.layout.markers.suffix,
598
- r: e.value.style.chart.layout.markers.roundingValue
599
- })
600
- )), 9, Rt))), 256))
601
- ])) : c("", !0),
602
- e.value.style.chart.layout.markers.show ? (s(), u("text", {
603
- key: 9,
604
- x: n(C)({
605
- centerX: l.value.width / 2,
606
- centerY: v.value.base,
607
- initX: h.value.at(-1).endX,
608
- initY: h.value.at(-1).endY,
609
- offset: l.value.markerOffset
610
- }).x,
611
- y: n(C)({
612
- centerX: l.value.width / 2,
613
- centerY: v.value.base,
614
- initX: h.value.at(-1).endX,
615
- initY: h.value.at(-1).endY,
616
- offset: l.value.markerOffset
617
- }).y,
618
- "text-anchor": "start",
619
- "font-size": l.value.labelFontSize * e.value.style.chart.layout.markers.fontSizeRatio,
620
- "font-weight": `${e.value.style.chart.layout.markers.bold ? "bold" : "normal"}`,
621
- fill: e.value.style.chart.layout.markers.color
622
- }, P(n(J)(
623
- e.value.style.chart.layout.markers.formatter,
624
- N.value,
625
- n(K)({
626
- p: e.value.style.chart.layout.markers.prefix,
627
- v: N.value,
628
- s: e.value.style.chart.layout.markers.suffix,
629
- r: e.value.style.chart.layout.markers.roundingValue
630
- })
631
- )), 9, Et)) : c("", !0),
632
- e.value.style.chart.layout.pointer.show ? (s(), u(k, { key: 10 }, [
633
- e.value.style.chart.layout.pointer.type === "rounded" ? (s(), u("g", Gt, [
634
- isNaN(i.value.x2) ? c("", !0) : (s(), u("line", {
635
- key: 0,
636
- x1: i.value.x1,
637
- y1: i.value.y1,
638
- x2: i.value.x2,
639
- y2: i.value.y2,
640
- stroke: e.value.style.chart.layout.pointer.stroke,
641
- "stroke-width": l.value.pointerStrokeWidth,
642
- "stroke-linecap": "round"
643
- }, null, 8, Ut)),
644
- isNaN(i.value.x2) ? c("", !0) : (s(), u("line", {
645
- key: 1,
646
- x1: i.value.x1,
647
- y1: i.value.y1,
648
- x2: i.value.x2,
649
- y2: i.value.y2,
650
- stroke: e.value.style.chart.layout.pointer.useRatingColor ? D.value : e.value.style.chart.layout.pointer.color,
651
- "stroke-linecap": "round",
652
- "stroke-width": l.value.pointerStrokeWidth * 0.7
653
- }, null, 8, Wt)),
654
- !isNaN(i.value.x2) && e.value.style.chart.layout.track.useGradient ? (s(), u("line", {
655
- key: 2,
656
- x1: i.value.x1,
657
- y1: i.value.y1,
658
- x2: i.value.x2,
659
- y2: i.value.y2,
660
- stroke: "white",
661
- "stroke-linecap": "round",
662
- "stroke-width": l.value.pointerStrokeWidth * 0.3,
663
- filter: `url(#blur_${w.value})`
664
- }, null, 8, jt)) : c("", !0)
665
- ])) : (s(), u("g", Tt, [
666
- ye.value ? (s(), u("path", {
667
- key: 0,
668
- d: ye.value,
669
- fill: e.value.style.chart.layout.pointer.useRatingColor ? D.value : e.value.style.chart.layout.pointer.color,
670
- stroke: e.value.style.chart.layout.pointer.stroke,
671
- "stroke-width": e.value.style.chart.layout.pointer.circle.strokeWidth,
672
- "stroke-linejoin": "round"
673
- }, null, 8, Lt)) : c("", !0)
674
- ])),
675
- g("circle", {
676
- cx: l.value.width / 2,
677
- cy: v.value.base,
678
- fill: e.value.style.chart.layout.pointer.circle.color,
679
- r: l.value.pointerRadius <= 0 ? 1e-4 : l.value.pointerRadius,
680
- "stroke-width": e.value.style.chart.layout.pointer.circle.strokeWidth,
681
- stroke: e.value.style.chart.layout.pointer.circle.stroke
682
- }, null, 8, Bt)
683
- ], 64)) : c("", !0),
684
- e.value.style.chart.legend.show ? (s(), u("text", {
685
- key: 11,
686
- x: l.value.width / 2,
687
- y: v.value.ratingBase,
688
- "text-anchor": "middle",
689
- "font-size": l.value.legendFontSize,
690
- "font-weight": "bold",
691
- fill: e.value.style.chart.legend.useRatingColor ? D.value : e.value.style.chart.legend.color
692
- }, P(n(J)(
693
- e.value.style.chart.legend.formatter,
694
- f.value,
695
- n(K)({
696
- p: e.value.style.chart.legend.prefix + (e.value.style.chart.legend.showPlusSymbol && f.value > 0 ? "+" : ""),
697
- v: f.value,
698
- s: e.value.style.chart.legend.suffix,
699
- r: e.value.style.chart.legend.roundingValue
700
- })
701
- )), 9, Dt)) : c("", !0),
702
- x(t.$slots, "svg", { svg: l.value }, void 0, !0)
703
- ], 14, ft)) : c("", !0),
704
- t.$slots.watermark ? (s(), u("div", Vt, [
705
- x(t.$slots, "watermark", W(j({ isPrinting: n(ce) || n(ve) })), void 0, !0)
706
- ])) : c("", !0),
707
- R.value ? c("", !0) : (s(), U(n(Oe), {
708
- key: 6,
709
- config: {
710
- type: "gauge",
711
- style: {
712
- backgroundColor: e.value.style.chart.backgroundColor,
713
- gauge: {
714
- color: "#CCCCCC"
715
- }
716
- }
717
- }
718
- }, null, 8, ["config"])),
719
- g("div", {
720
- ref_key: "chartLegend",
721
- ref: ae
722
- }, [
723
- x(t.$slots, "legend", { legend: O.value }, void 0, !0)
724
- ], 512),
725
- t.$slots.source ? (s(), u("div", {
726
- key: 7,
727
- ref_key: "source",
728
- ref: le,
729
- dir: "auto"
730
- }, [
731
- x(t.$slots, "source", {}, void 0, !0)
732
- ], 512)) : c("", !0)
733
- ], 46, ht));
734
- }
735
- }, sa = /* @__PURE__ */ dt(qt, [["__scopeId", "data-v-4b47d12e"]]);
736
- export {
737
- sa as default
738
- };