vue-data-ui 3.0.0-next.47 → 3.0.0-next.48
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.
- package/dist/{Arrow-BHgPVuF5.js → Arrow-D3nEZk4q.js} +1 -1
- package/dist/{BaseDraggableDialog-CHKA2DkB.js → BaseDraggableDialog-BBwi1IGy.js} +2 -2
- package/dist/{BaseIcon-CVvqI_Vz.js → BaseIcon-BGtgi82S.js} +1 -1
- package/dist/{ColorPicker-Dsb6xLiB.js → ColorPicker-CJ6y-Ab8.js} +2 -2
- package/dist/{DataTable-Cu4ONs-C.js → DataTable-DbBalCD-.js} +2 -2
- package/dist/{Legend-BFdpVM3f.js → Legend-DM-BhdcB.js} +2 -2
- package/dist/{NonSvgPenAndPaper-Bu810bZ_.js → NonSvgPenAndPaper-CBSd7d-6.js} +3 -3
- package/dist/{PackageVersion-Dj1nIbYu.js → PackageVersion-VPyaIWwy.js} +1 -1
- package/dist/{PenAndPaper-C6CBX4Sw.js → PenAndPaper-B5OpT2xv.js} +3 -3
- package/dist/{Shape-BYDrMsk2.js → Shape-idLNAydx.js} +1 -1
- package/dist/{Slicer-a2s9l8L1.js → Slicer-hvUrqAwc.js} +2 -2
- package/dist/{SparkTooltip-KMLWgEAl.js → SparkTooltip-BI3m0T_i.js} +1 -1
- package/dist/{Title-cYv28OdE.js → Title-Do0D6df3.js} +1 -1
- package/dist/{Tooltip-pVlR-1jt.js → Tooltip-BsEMtsH3.js} +1 -1
- package/dist/{UserOptions-BI-GdWdR.js → UserOptions-DqFHidPX.js} +2 -2
- package/dist/{dom-to-png-Bzu62hX8.js → dom-to-png-DtidZQbo.js} +1 -1
- package/dist/{img-Ckro3NYj.js → img-NbLG7gNz.js} +1 -1
- package/dist/{index-CZvYLNd2.js → index-C6ej-Des.js} +24 -9
- package/dist/{pdf-D9PBRUEG.js → pdf-BCoIogCD.js} +1 -1
- package/dist/style.css +1 -1
- package/dist/types/vue-data-ui.d.cts +27 -18
- package/dist/types/vue-data-ui.d.ts +27 -18
- package/dist/useAutoSizeLabelsInsideViewbox-BFZebobZ.js +41 -0
- package/dist/{useNestedProp-UUiB4gNW.js → useNestedProp-CAffSKg3.js} +1 -1
- package/dist/{usePrinter-xp6x8667.js → usePrinter-eFqrYDjm.js} +2 -2
- package/dist/{vue-data-ui-DDKJZmyJ.js → vue-data-ui-DdWPbjgC.js} +64 -64
- package/dist/vue-data-ui.js +1 -1
- package/dist/{vue-ui-3d-bar-BqSQlty4.js → vue-ui-3d-bar-BeEwpOrN.js} +6 -6
- package/dist/{vue-ui-accordion-CJtprJZE.js → vue-ui-accordion-Dri5xOZg.js} +3 -3
- package/dist/{vue-ui-age-pyramid-Coomx370.js → vue-ui-age-pyramid-Gtg3EM7s.js} +6 -6
- package/dist/{vue-ui-annotator-B10lhcjh.js → vue-ui-annotator-DzJe5FVW.js} +2 -2
- package/dist/{vue-ui-bullet-CNZ_aq4R.js → vue-ui-bullet-CbKpSSIy.js} +7 -7
- package/dist/{vue-ui-candlestick-DM4fbKYW.js → vue-ui-candlestick-Do8JViGD.js} +7 -7
- package/dist/{vue-ui-carousel-table-D1DepNH9.js → vue-ui-carousel-table-DDixroq4.js} +4 -4
- package/dist/{vue-ui-chestnut-DWukJ4lH.js → vue-ui-chestnut-BGQ5o44u.js} +5 -5
- package/dist/{vue-ui-chord-z6UwiTE4.js → vue-ui-chord-BzrdZEJn.js} +8 -8
- package/dist/{vue-ui-circle-pack-CVmc5ACN.js → vue-ui-circle-pack-D0O4n3GH.js} +6 -6
- package/dist/{vue-ui-cursor-J8G71ncU.js → vue-ui-cursor-sK-TUZ3s.js} +2 -2
- package/dist/{vue-ui-dashboard-Cnc_NX23.js → vue-ui-dashboard-BQVxldca.js} +62 -62
- package/dist/{vue-ui-digits-B0Ck4kpp.js → vue-ui-digits-DKMxVSMt.js} +2 -2
- package/dist/{vue-ui-donut-Dwj53WCt.js → vue-ui-donut-DxpVU_x_.js} +8 -8
- package/dist/{vue-ui-donut-evolution-EWzabDbY.js → vue-ui-donut-evolution-D7CRCGCB.js} +8 -8
- package/dist/{vue-ui-dumbbell-DxCYAzk0.js → vue-ui-dumbbell-DHZnwOtV.js} +7 -7
- package/dist/{vue-ui-flow-DXKJIrIE.js → vue-ui-flow-EXrdGGTJ.js} +7 -7
- package/dist/{vue-ui-funnel-Cj84UcRt.js → vue-ui-funnel-J6lOcTNQ.js} +6 -6
- package/dist/{vue-ui-galaxy-BgswPvfl.js → vue-ui-galaxy-vizBAlVx.js} +5 -5
- package/dist/vue-ui-gauge-DYJrydxk.js +791 -0
- package/dist/{vue-ui-gizmo-9zMdj0XL.js → vue-ui-gizmo-CnMFc2H_.js} +3 -3
- package/dist/{vue-ui-heatmap-SQy7SlRv.js → vue-ui-heatmap-CnRTKFm9.js} +47 -47
- package/dist/{vue-ui-history-plot-BLr3cDMF.js → vue-ui-history-plot-1SfEx6cE.js} +7 -7
- package/dist/{vue-ui-kpi-B6ZjLnIp.js → vue-ui-kpi-C4z3NxHx.js} +3 -3
- package/dist/{vue-ui-mini-loader-Cea2H0vU.js → vue-ui-mini-loader-Bc_uyj6D.js} +2 -2
- package/dist/{vue-ui-molecule-CSFYPlaG.js → vue-ui-molecule-DKDInMgg.js} +17 -17
- package/dist/{vue-ui-mood-radar-CN__8UZK.js → vue-ui-mood-radar-CVqEc6YO.js} +7 -7
- package/dist/{vue-ui-nested-donuts-CB6YMcdq.js → vue-ui-nested-donuts-65s7IwMu.js} +9 -9
- package/dist/vue-ui-onion-BjJUisXu.js +776 -0
- package/dist/{vue-ui-parallel-coordinate-plot-D9bjwDOd.js → vue-ui-parallel-coordinate-plot-DLdklB0O.js} +8 -8
- package/dist/{vue-ui-quadrant-Kwctvtob.js → vue-ui-quadrant-ViGM0YPy.js} +8 -8
- package/dist/{vue-ui-quick-chart-Bn5aNviA.js → vue-ui-quick-chart-D_0ziD6j.js} +6 -6
- package/dist/{vue-ui-radar-ZBMHkVaV.js → vue-ui-radar-DYCg95w6.js} +7 -7
- package/dist/{vue-ui-rating-C9kcqLH5.js → vue-ui-rating-XD_TiTw8.js} +2 -2
- package/dist/{vue-ui-relation-circle-uE7VllfK.js → vue-ui-relation-circle-hkWH7Rjr.js} +6 -6
- package/dist/{vue-ui-ridgeline-BpYT8aSl.js → vue-ui-ridgeline-CoKkxlCx.js} +8 -8
- package/dist/{vue-ui-rings-DCTW_aDf.js → vue-ui-rings-qAfIfnPF.js} +8 -8
- package/dist/{vue-ui-scatter-C8U7JJVH.js → vue-ui-scatter-t2uN8dPK.js} +8 -8
- package/dist/{vue-ui-skeleton-CcuLFdSr.js → vue-ui-skeleton-TtAlvjAj.js} +3 -3
- package/dist/{vue-ui-smiley-BJnu6nQA.js → vue-ui-smiley-BATWmI5L.js} +2 -2
- package/dist/{vue-ui-spark-trend-Bf0ZxwmM.js → vue-ui-spark-trend-BUZstP13.js} +3 -3
- package/dist/{vue-ui-sparkbar-CryzO3ek.js → vue-ui-sparkbar-B6dFK-Tp.js} +3 -3
- package/dist/{vue-ui-sparkgauge-D8QdTrpS.js → vue-ui-sparkgauge-uFlVeRbC.js} +12 -12
- package/dist/{vue-ui-sparkhistogram-CDW1BBIe.js → vue-ui-sparkhistogram-ESsxBRTw.js} +4 -4
- package/dist/{vue-ui-sparkline-CEdAQDrl.js → vue-ui-sparkline-VCKNPag-.js} +3 -3
- package/dist/{vue-ui-sparkstackbar-D9vdEPYT.js → vue-ui-sparkstackbar-71Bz9DGJ.js} +3 -3
- package/dist/{vue-ui-stackbar-GZldxkz6.js → vue-ui-stackbar-DnDJWHZM.js} +9 -9
- package/dist/{vue-ui-strip-plot-Zat2zDLv.js → vue-ui-strip-plot-Dz6LqM6T.js} +7 -7
- package/dist/{vue-ui-table-BfdG3UsG.js → vue-ui-table-CYcu_oe0.js} +3 -3
- package/dist/{vue-ui-table-heatmap-EStrNR7J.js → vue-ui-table-heatmap-Y53ndTSj.js} +19 -19
- package/dist/{vue-ui-table-sparkline--1EBEEAj.js → vue-ui-table-sparkline-aNmaRCKf.js} +4 -4
- package/dist/{vue-ui-thermometer-D0wus6Kr.js → vue-ui-thermometer-BAxNO5uO.js} +6 -6
- package/dist/{vue-ui-timer-D8lencSe.js → vue-ui-timer-Dj8Oqv3O.js} +5 -5
- package/dist/{vue-ui-tiremarks-CFPbV8d_.js → vue-ui-tiremarks-DXqqNQjW.js} +6 -6
- package/dist/{vue-ui-treemap-yuliJD7V.js → vue-ui-treemap-BWh-cJCN.js} +8 -8
- package/dist/{vue-ui-vertical-bar-Dyfg-IjL.js → vue-ui-vertical-bar-CdZhO6C6.js} +9 -9
- package/dist/{vue-ui-waffle-vpUG24j8.js → vue-ui-waffle-COMsqqNa.js} +8 -8
- package/dist/{vue-ui-wheel-DiqAjHS6.js → vue-ui-wheel-Ilqm9s4Q.js} +6 -6
- package/dist/{vue-ui-word-cloud-BI6HLypL.js → vue-ui-word-cloud-B7BUvab1.js} +6 -6
- package/dist/{vue-ui-world-DojcWljK.js → vue-ui-world-DrEbMGph.js} +6 -6
- package/dist/{vue-ui-xy-gEEYQHX4.js → vue-ui-xy-Cz7D4LMw.js} +9 -9
- package/dist/{vue-ui-xy-canvas-BXYWA5oG.js → vue-ui-xy-canvas-DFVZdHur.js} +8 -8
- package/package.json +1 -1
- package/dist/vue-ui-gauge-BuOviUss.js +0 -812
- package/dist/vue-ui-onion-DJRxsxuq.js +0 -703
|
@@ -1,812 +0,0 @@
|
|
|
1
|
-
import { defineAsyncComponent as ae, computed as h, ref as f, toRefs as at, watch as le, shallowRef as Me, onMounted as lt, onBeforeUnmount as st, createElementBlock as o, openBlock as r, unref as n, normalizeStyle as se, normalizeClass as Ne, createBlock as W, createCommentVNode as c, createElementVNode as k, withCtx as R, toDisplayString as Y, createSlots as rt, renderSlot as S, normalizeProps as D, guardReactiveProps as q, createVNode as ot, Fragment as b, renderList as x, mergeProps as L, nextTick as ut } from "vue";
|
|
2
|
-
import { u as nt, c as it, v as ct, t as vt, p as Pe, a as ht, b as dt, o as Ie, d as ft, e as V, g as Xe, N as yt, m as re, O as F, P as mt, w as gt, X as pt, s as oe, I as kt, n as bt, i as ue, f as ne, E as ie } from "./index-CZvYLNd2.js";
|
|
3
|
-
import { t as _t, u as wt } from "./useResponsive-DfdjqQps.js";
|
|
4
|
-
import { u as Re } from "./useNestedProp-UUiB4gNW.js";
|
|
5
|
-
import { u as St } from "./usePrinter-xp6x8667.js";
|
|
6
|
-
import { u as xt } from "./useUserOptionState-BIvW1Kz7.js";
|
|
7
|
-
import { u as zt } from "./useChartAccessibility-9icAAmYg.js";
|
|
8
|
-
import $t from "./Title-cYv28OdE.js";
|
|
9
|
-
import At from "./img-Ckro3NYj.js";
|
|
10
|
-
import { u as Ft, B as Ct } from "./BaseScanner-DIK2NTdp.js";
|
|
11
|
-
import { _ as Ot } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
12
|
-
const Mt = ["id"], Nt = { key: 0 }, Pt = ["xmlns", "viewBox"], It = ["width", "height"], Xt = ["id"], Rt = ["stop-color"], Yt = ["stop-color"], Et = ["stop-color"], Tt = ["id"], Lt = ["stdDeviation"], Gt = { key: 1 }, Bt = ["d", "fill", "stroke"], jt = ["d", "fill", "stroke"], Ut = ["d", "fill"], Wt = ["id", "d"], Dt = ["fill", "font-size", "font-weight"], qt = ["href", "startOffset"], Vt = ["text-anchor", "fill", "font-size", "font-weight", "innerHTML"], Ht = ["d", "filter"], Zt = ["stroke", "stroke-width"], Jt = ["stroke", "stroke-width"], Kt = ["stroke", "stroke-width"], Qt = ["stroke", "stroke-width"], ea = { key: 8 }, ta = ["x", "y", "text-anchor", "font-size", "font-weight", "fill"], aa = ["x", "y", "font-size", "font-weight", "fill"], la = { key: 0 }, sa = ["x1", "y1", "x2", "y2", "stroke", "stroke-width"], ra = ["x1", "y1", "x2", "y2", "stroke", "stroke-width"], oa = ["x1", "y1", "x2", "y2", "stroke-width", "filter"], ua = { key: 1 }, na = ["d", "fill", "stroke", "stroke-width"], ia = ["cx", "cy", "fill", "r", "stroke-width", "stroke"], ca = ["x", "y", "font-size", "fill"], va = {
|
|
13
|
-
key: 4,
|
|
14
|
-
class: "vue-data-ui-watermark"
|
|
15
|
-
}, ha = {
|
|
16
|
-
__name: "vue-ui-gauge",
|
|
17
|
-
props: {
|
|
18
|
-
config: {
|
|
19
|
-
type: Object,
|
|
20
|
-
default() {
|
|
21
|
-
return {};
|
|
22
|
-
}
|
|
23
|
-
},
|
|
24
|
-
dataset: {
|
|
25
|
-
type: Object,
|
|
26
|
-
default() {
|
|
27
|
-
return {};
|
|
28
|
-
}
|
|
29
|
-
}
|
|
30
|
-
},
|
|
31
|
-
setup(H, { expose: Ye }) {
|
|
32
|
-
const Ee = ae(() => import("./PenAndPaper-C6CBX4Sw.js")), Te = ae(() => import("./UserOptions-BI-GdWdR.js")), Le = ae(() => import("./PackageVersion-Dj1nIbYu.js")), { vue_ui_gauge: Ge } = nt(), g = H, Be = h(() => !!g.dataset && Object.keys(g.dataset).length > 0 && g.dataset.series && g.dataset.series.length), w = f(it()), je = f(null), ce = f(0), C = f(null), ve = f(null), he = f(null), de = f(null), fe = f(null), ye = f(0), e = f(K()), { loading: me, FINAL_DATASET: z, manualLoading: P } = Ft({
|
|
33
|
-
...at(g),
|
|
34
|
-
FINAL_CONFIG: e,
|
|
35
|
-
prepareConfig: K,
|
|
36
|
-
callback: () => {
|
|
37
|
-
Promise.resolve().then(async () => {
|
|
38
|
-
await ut();
|
|
39
|
-
});
|
|
40
|
-
},
|
|
41
|
-
skeletonDataset: {
|
|
42
|
-
value: 0,
|
|
43
|
-
series: [
|
|
44
|
-
{ from: -1, to: 0, name: "_", color: "#A1A1A1" },
|
|
45
|
-
{ from: 0, to: 1, name: "__", color: "#CACACA" }
|
|
46
|
-
]
|
|
47
|
-
},
|
|
48
|
-
skeletonConfig: ct({
|
|
49
|
-
defaultConfig: e.value,
|
|
50
|
-
userConfig: {
|
|
51
|
-
userOptions: { show: !1 },
|
|
52
|
-
style: {
|
|
53
|
-
chart: {
|
|
54
|
-
backgroundColor: "#99999930",
|
|
55
|
-
animation: { use: !1 },
|
|
56
|
-
layout: {
|
|
57
|
-
markers: { show: !1 },
|
|
58
|
-
segmentSeparators: { stroke: "#6A6A6A" },
|
|
59
|
-
segmentNames: { show: !1 },
|
|
60
|
-
indicatorArc: { fill: "#6A6A6A50" },
|
|
61
|
-
pointer: {
|
|
62
|
-
stroke: "#6A6A6A",
|
|
63
|
-
useRatingColor: !0,
|
|
64
|
-
circle: {
|
|
65
|
-
stroke: "#6A6A6A",
|
|
66
|
-
color: "#6A6A6A"
|
|
67
|
-
}
|
|
68
|
-
}
|
|
69
|
-
},
|
|
70
|
-
legend: {
|
|
71
|
-
show: !1
|
|
72
|
-
}
|
|
73
|
-
}
|
|
74
|
-
}
|
|
75
|
-
}
|
|
76
|
-
})
|
|
77
|
-
}), { userOptionsVisible: Z, setUserOptionsVisibility: ge, keepUserOptionState: pe } = xt({ config: e.value }), { svgRef: J } = zt({ config: e.value.style.chart.title });
|
|
78
|
-
le(() => g.config, (t) => {
|
|
79
|
-
me.value || (e.value = K()), Z.value = !e.value.userOptions.showOnChartHover, ee(), ye.value += 1;
|
|
80
|
-
}, { deep: !0 }), le(() => g.dataset, (t) => {
|
|
81
|
-
ee(), t && Object.keys(t).length > 0 && (P.value = e.value?.loading ?? !1);
|
|
82
|
-
}, { deep: !0, immediate: !1 });
|
|
83
|
-
function K() {
|
|
84
|
-
const t = Re({
|
|
85
|
-
userConfig: g.config,
|
|
86
|
-
defaultConfig: Ge
|
|
87
|
-
});
|
|
88
|
-
return t.theme ? {
|
|
89
|
-
...Re({
|
|
90
|
-
userConfig: ht.vue_ui_gauge[t.theme] || g.config,
|
|
91
|
-
defaultConfig: t
|
|
92
|
-
}),
|
|
93
|
-
customPalette: vt[t.theme] || Pe
|
|
94
|
-
} : t;
|
|
95
|
-
}
|
|
96
|
-
const { isPrinting: ke, isImaging: be, generatePdf: _e, generateImage: we } = St({
|
|
97
|
-
elementId: `vue-ui-gauge_${w.value}`,
|
|
98
|
-
fileName: e.value.style.chart.title.text || "vue-ui-gauge",
|
|
99
|
-
options: e.value.userOptions.print
|
|
100
|
-
}), Ue = h(() => e.value.userOptions.show && !e.value.style.chart.title.text), We = h(() => dt(e.value.customPalette)), O = h(() => {
|
|
101
|
-
if (Ie(z.value.series || {}))
|
|
102
|
-
return {
|
|
103
|
-
value: 0,
|
|
104
|
-
series: [
|
|
105
|
-
{
|
|
106
|
-
from: 0,
|
|
107
|
-
to: 0
|
|
108
|
-
}
|
|
109
|
-
]
|
|
110
|
-
};
|
|
111
|
-
const t = [];
|
|
112
|
-
(z.value.series || []).forEach((a) => {
|
|
113
|
-
t.push(a.from || 1e-7), t.push(a.to || 1e-7);
|
|
114
|
-
});
|
|
115
|
-
const u = Math.max(...t);
|
|
116
|
-
return {
|
|
117
|
-
...z.value,
|
|
118
|
-
series: (z.value.series || []).map((a, l) => ({
|
|
119
|
-
...a,
|
|
120
|
-
color: ft(a.color) || We.value[l] || Pe[l],
|
|
121
|
-
value: ((a.to || 0) - (a.from || 0)) / u * 100
|
|
122
|
-
}))
|
|
123
|
-
};
|
|
124
|
-
}), _ = f(512), s = f({
|
|
125
|
-
height: 358.4,
|
|
126
|
-
width: _.value,
|
|
127
|
-
top: 0,
|
|
128
|
-
bottom: 358.4,
|
|
129
|
-
centerX: 179.2,
|
|
130
|
-
centerY: _.value / 2,
|
|
131
|
-
labelFontSize: 18,
|
|
132
|
-
legendFontSize: e.value.style.chart.legend.fontSize,
|
|
133
|
-
pointerRadius: e.value.style.chart.layout.pointer.circle.radius,
|
|
134
|
-
trackSize: e.value.style.chart.layout.track.size,
|
|
135
|
-
pointerSize: e.value.style.chart.layout.pointer.size,
|
|
136
|
-
pointerStrokeWidth: e.value.style.chart.layout.pointer.strokeWidth,
|
|
137
|
-
markerOffset: e.value.style.chart.layout.markers.offsetY + 3,
|
|
138
|
-
segmentFontSize: e.value.style.chart.layout.segmentNames.fontSize
|
|
139
|
-
}), I = f(0), $ = f(0), y = f(
|
|
140
|
-
e.value.style.chart.animation.use ? Math.min(...z.value.series.map((t) => t.from)) : z.value.value
|
|
141
|
-
);
|
|
142
|
-
le(() => z.value.value, () => {
|
|
143
|
-
$e(z.value.value);
|
|
144
|
-
});
|
|
145
|
-
const i = h(() => {
|
|
146
|
-
const t = s.value.width / 2, u = v.value.base, a = Math.PI * ((y.value + 0 - $.value) / (I.value - $.value)) + Math.PI;
|
|
147
|
-
return {
|
|
148
|
-
x1: t,
|
|
149
|
-
y1: u,
|
|
150
|
-
x2: t + v.value.pointerSize * s.value.pointerSize * 0.9 * Math.cos(a),
|
|
151
|
-
y2: u + v.value.pointerSize * s.value.pointerSize * 0.9 * Math.sin(a)
|
|
152
|
-
};
|
|
153
|
-
}), Se = h(() => {
|
|
154
|
-
const t = s.value.width / 2, u = v.value.base, a = Math.PI * ((y.value + 0 - $.value) / (I.value - $.value)) + Math.PI, l = t + v.value.pointerSize * s.value.pointerSize * 0.9 * Math.cos(a), m = u + v.value.pointerSize * s.value.pointerSize * 0.9 * Math.sin(a), p = s.value.pointerRadius, U = t + p * Math.cos(a + Math.PI / 2), Oe = u + p * Math.sin(a + Math.PI / 2), N = t + p * Math.cos(a - Math.PI / 2), T = u + p * Math.sin(a - Math.PI / 2);
|
|
155
|
-
return isNaN(l) ? null : `M ${l},${m} ${U},${Oe} ${N},${T} Z`;
|
|
156
|
-
}), Q = h(() => {
|
|
157
|
-
for (let t = 0; t < O.value.series.length; t += 1) {
|
|
158
|
-
const { color: u, from: a, to: l } = O.value.series[t];
|
|
159
|
-
if (y.value >= a && y.value <= l)
|
|
160
|
-
return u;
|
|
161
|
-
}
|
|
162
|
-
return "#2D353C";
|
|
163
|
-
}), A = Me(null), X = Me(null), G = h(() => !!e.value.debug);
|
|
164
|
-
function ee() {
|
|
165
|
-
let t = !1;
|
|
166
|
-
if (Ie(g.dataset) ? (V({
|
|
167
|
-
componentName: "VueUiGauge",
|
|
168
|
-
type: "dataset",
|
|
169
|
-
debug: G.value
|
|
170
|
-
}), P.value = !0, t = !0) : (Xe({
|
|
171
|
-
datasetObject: g.dataset,
|
|
172
|
-
requiredAttributes: ["value", "series"]
|
|
173
|
-
}).forEach((u) => {
|
|
174
|
-
V({
|
|
175
|
-
componentName: "VueUiGauge",
|
|
176
|
-
type: "datasetAttribute",
|
|
177
|
-
property: u,
|
|
178
|
-
debug: G.value
|
|
179
|
-
}), P.value = !0, t = !0;
|
|
180
|
-
}), Object.hasOwn(g.dataset, "series") && (g.dataset.series.length ? g.dataset.series.forEach((u, a) => {
|
|
181
|
-
Xe({
|
|
182
|
-
datasetObject: u,
|
|
183
|
-
requiredAttributes: ["from", "to"]
|
|
184
|
-
}).forEach((l) => {
|
|
185
|
-
V({
|
|
186
|
-
componentName: "VueUiGauge",
|
|
187
|
-
type: "datasetSerieAttribute",
|
|
188
|
-
property: l,
|
|
189
|
-
index: a,
|
|
190
|
-
debug: G.value
|
|
191
|
-
}), P.value = !0, t = !0;
|
|
192
|
-
});
|
|
193
|
-
}) : (V({
|
|
194
|
-
componentName: "VueUiGauge",
|
|
195
|
-
type: "datasetAttributeEmpty",
|
|
196
|
-
property: "series",
|
|
197
|
-
debug: G.value
|
|
198
|
-
}), P.value = !0, t = !0))), P.value = t, $e(z.value.value || 0), e.value.responsive) {
|
|
199
|
-
const u = _t(() => {
|
|
200
|
-
let { width: a, height: l } = wt({
|
|
201
|
-
chart: C.value,
|
|
202
|
-
title: e.value.style.chart.title.text ? ve.value : null,
|
|
203
|
-
legend: he.value,
|
|
204
|
-
source: de.value,
|
|
205
|
-
noTitle: fe.value
|
|
206
|
-
});
|
|
207
|
-
l -= 12, requestAnimationFrame(() => {
|
|
208
|
-
s.value.width = a, s.value.height = l, s.value.centerX = a / 2, s.value.centerY = _.value / 2 / 358.4 * l, s.value.bottom = l, s.value.labelFontSize = 18 / _.value * Math.min(l, a) < 10 ? 10 : 18 / _.value * Math.min(l, a), s.value.legendFontSize = e.value.style.chart.legend.fontSize / _.value * Math.min(l, a) < 14 ? 14 : e.value.style.chart.legend.fontSize / _.value * Math.min(l, a), s.value.pointerRadius = e.value.style.chart.layout.pointer.circle.radius / _.value * Math.min(l, a), s.value.trackSize = e.value.style.chart.layout.track.size / _.value * Math.min(l, a), s.value.pointerStrokeWidth = ie({
|
|
209
|
-
relator: Math.min(a, l),
|
|
210
|
-
adjuster: _.value,
|
|
211
|
-
source: e.value.style.chart.layout.pointer.strokeWidth,
|
|
212
|
-
threshold: 2,
|
|
213
|
-
fallback: 2
|
|
214
|
-
}), s.value.markerOffset = ie({
|
|
215
|
-
relator: Math.max(a, l),
|
|
216
|
-
adjuster: _.value,
|
|
217
|
-
source: e.value.style.chart.layout.markers.offsetY + 3,
|
|
218
|
-
threshold: 2,
|
|
219
|
-
fallback: 2
|
|
220
|
-
}), s.value.segmentFontSize = ie({
|
|
221
|
-
relator: Math.min(a, l),
|
|
222
|
-
adjuster: _.value,
|
|
223
|
-
source: e.value.style.chart.layout.segmentNames.fontSize,
|
|
224
|
-
threshold: 8,
|
|
225
|
-
fallback: 8
|
|
226
|
-
});
|
|
227
|
-
}), ze();
|
|
228
|
-
});
|
|
229
|
-
A.value && (X.value && A.value.unobserve(X.value), A.value.disconnect()), A.value = new ResizeObserver(u), X.value = C.value.parentNode, A.value.observe(X.value);
|
|
230
|
-
}
|
|
231
|
-
requestAnimationFrame(ze);
|
|
232
|
-
}
|
|
233
|
-
lt(() => {
|
|
234
|
-
ee();
|
|
235
|
-
}), st(() => {
|
|
236
|
-
A.value && (X.value && A.value.unobserve(X.value), A.value.disconnect());
|
|
237
|
-
});
|
|
238
|
-
const B = h({
|
|
239
|
-
get: () => s.value.segmentFontSize,
|
|
240
|
-
set: (t) => t
|
|
241
|
-
});
|
|
242
|
-
let xe = !1;
|
|
243
|
-
function ze() {
|
|
244
|
-
xe || requestAnimationFrame(() => {
|
|
245
|
-
xe = !1, e.value;
|
|
246
|
-
const t = J.value, [u, a, l, m] = t.getAttribute("viewBox").split(" ").map(Number), p = { x: u, y: a, width: l, height: m }, U = [
|
|
247
|
-
{
|
|
248
|
-
selector: ".vue-ui-gauge-label-flat",
|
|
249
|
-
baseSize: s.value.segmentFontSize,
|
|
250
|
-
minSize: e.value.style.chart.layout.segmentNames.minFontSize,
|
|
251
|
-
sizeRef: B
|
|
252
|
-
}
|
|
253
|
-
];
|
|
254
|
-
U.map((N) => t.querySelectorAll(N.selector).length).reduce((N, T) => N + T, 0) !== 0 && U.forEach(({ selector: N, baseSize: T, minSize: Ke, sizeRef: Qe }) => {
|
|
255
|
-
t.querySelectorAll(N).forEach((et) => {
|
|
256
|
-
const tt = yt({
|
|
257
|
-
el: et,
|
|
258
|
-
bounds: p,
|
|
259
|
-
currentFontSize: T,
|
|
260
|
-
minFontSize: Ke,
|
|
261
|
-
attempts: 200,
|
|
262
|
-
padding: 1
|
|
263
|
-
});
|
|
264
|
-
Qe.value = tt;
|
|
265
|
-
});
|
|
266
|
-
});
|
|
267
|
-
});
|
|
268
|
-
}
|
|
269
|
-
function $e(t) {
|
|
270
|
-
const u = [];
|
|
271
|
-
(O.value.series || []).forEach((p) => {
|
|
272
|
-
u.push(p.from || 0), u.push(p.to || 0);
|
|
273
|
-
}), I.value = Math.max(...u), $.value = Math.min(...u);
|
|
274
|
-
let a = e.value.style.chart.animation.speed;
|
|
275
|
-
const l = Math.abs(t - y.value) / (a * 60);
|
|
276
|
-
function m() {
|
|
277
|
-
y.value < t ? y.value = Math.min(y.value + l, t) : y.value > t && (y.value = Math.max(y.value - l, t)), y.value !== t && requestAnimationFrame(m);
|
|
278
|
-
}
|
|
279
|
-
m();
|
|
280
|
-
}
|
|
281
|
-
const v = h(() => {
|
|
282
|
-
const t = e.value.responsive ? Math.min(s.value.width, s.value.height) : s.value.width, u = 2.5 / e.value.style.chart.layout.radiusRatio;
|
|
283
|
-
return {
|
|
284
|
-
arcs: t / u,
|
|
285
|
-
gradients: t / (u * 1.1),
|
|
286
|
-
base: e.value.responsive ? s.value.height / 1.618 : s.value.height * 0.7,
|
|
287
|
-
ratingBase: e.value.responsive ? s.value.height / 2 + s.value.height / 4 : s.value.height * 0.9,
|
|
288
|
-
pointerSize: e.value.responsive ? Math.min(s.value.width, s.value.height) / 3 : s.value.width / 3.2
|
|
289
|
-
};
|
|
290
|
-
}), d = h(() => re(
|
|
291
|
-
{ series: O.value.series },
|
|
292
|
-
s.value.width / 2,
|
|
293
|
-
v.value.base,
|
|
294
|
-
v.value.arcs,
|
|
295
|
-
v.value.arcs,
|
|
296
|
-
1,
|
|
297
|
-
1,
|
|
298
|
-
1,
|
|
299
|
-
180,
|
|
300
|
-
109.9495,
|
|
301
|
-
40 * s.value.trackSize
|
|
302
|
-
)), De = h(() => re(
|
|
303
|
-
{ series: O.value.series },
|
|
304
|
-
s.value.width / 2,
|
|
305
|
-
v.value.base,
|
|
306
|
-
v.value.arcs * e.value.style.chart.layout.segmentNames.offsetRatio,
|
|
307
|
-
v.value.arcs * e.value.style.chart.layout.segmentNames.offsetRatio,
|
|
308
|
-
1,
|
|
309
|
-
1,
|
|
310
|
-
1,
|
|
311
|
-
180,
|
|
312
|
-
109.9495,
|
|
313
|
-
40 * s.value.trackSize
|
|
314
|
-
)), M = h(() => d.value.map((t) => v.value.arcs * e.value.style.chart.layout.segmentNames.offsetRatio * (t.nameOffsetRatio || 1))), Ae = h(() => {
|
|
315
|
-
const { x: t, y: u } = F({
|
|
316
|
-
initX: d.value[0].firstSeparator.x,
|
|
317
|
-
initY: d.value[0].firstSeparator.y,
|
|
318
|
-
centerX: i.value.x1,
|
|
319
|
-
centerY: i.value.y1,
|
|
320
|
-
offset: -e.value.style.chart.layout.segmentSeparators.offsetIn
|
|
321
|
-
}), { x: a, y: l } = F({
|
|
322
|
-
initX: d.value[0].startX,
|
|
323
|
-
initY: d.value[0].startY,
|
|
324
|
-
centerX: i.value.x1,
|
|
325
|
-
centerY: i.value.y1,
|
|
326
|
-
offset: e.value.style.chart.layout.segmentSeparators.offsetOut
|
|
327
|
-
});
|
|
328
|
-
return { x1: t, y1: u, x2: a, y2: l };
|
|
329
|
-
}), Fe = h(() => d.value.map((t) => {
|
|
330
|
-
const { x: u, y: a } = F({
|
|
331
|
-
initX: t.separator.x,
|
|
332
|
-
initY: t.separator.y,
|
|
333
|
-
centerX: i.value.x1,
|
|
334
|
-
centerY: i.value.y1,
|
|
335
|
-
offset: -e.value.style.chart.layout.segmentSeparators.offsetIn
|
|
336
|
-
}), { x: l, y: m } = F({
|
|
337
|
-
initX: t.endX,
|
|
338
|
-
initY: t.endY,
|
|
339
|
-
centerX: i.value.x1,
|
|
340
|
-
centerY: i.value.y1,
|
|
341
|
-
offset: e.value.style.chart.layout.segmentSeparators.offsetOut
|
|
342
|
-
});
|
|
343
|
-
return { x1: u, y1: a, x2: l, y2: m };
|
|
344
|
-
}));
|
|
345
|
-
function qe(t) {
|
|
346
|
-
if (t.reduce((m, p) => m + p, 0) > 100)
|
|
347
|
-
throw new Error("Total % must not exceed 100");
|
|
348
|
-
const a = 50;
|
|
349
|
-
let l = 0;
|
|
350
|
-
return t.map((m) => (l += m, `${l / 100 * a - m / 4}%`));
|
|
351
|
-
}
|
|
352
|
-
const Ve = h(() => qe(d.value.map((t) => t.proportion * 100))), He = h(() => re(
|
|
353
|
-
{ series: O.value.series },
|
|
354
|
-
s.value.width / 2,
|
|
355
|
-
v.value.base,
|
|
356
|
-
v.value.gradients,
|
|
357
|
-
v.value.gradients,
|
|
358
|
-
0.95,
|
|
359
|
-
1,
|
|
360
|
-
1,
|
|
361
|
-
180,
|
|
362
|
-
110.02,
|
|
363
|
-
2 * s.value.trackSize
|
|
364
|
-
)), Ze = h(() => {
|
|
365
|
-
const t = $.value >= 0 ? -$.value : Math.abs($.value);
|
|
366
|
-
return mt({
|
|
367
|
-
radius: e.value.style.chart.layout.indicatorArc.radius * s.value.trackSize,
|
|
368
|
-
centerX: s.value.width / 2,
|
|
369
|
-
centerY: v.value.base,
|
|
370
|
-
percentage: gt((y.value + t) / (I.value + t))
|
|
371
|
-
});
|
|
372
|
-
}), E = f(!1);
|
|
373
|
-
function Ce(t) {
|
|
374
|
-
E.value = t, ce.value += 1;
|
|
375
|
-
}
|
|
376
|
-
const j = f(!1);
|
|
377
|
-
function te() {
|
|
378
|
-
j.value = !j.value;
|
|
379
|
-
}
|
|
380
|
-
async function Je({ scale: t = 2 } = {}) {
|
|
381
|
-
if (!C.value) return;
|
|
382
|
-
const { width: u, height: a } = C.value.getBoundingClientRect(), l = u / a, { imageUri: m, base64: p } = await At({ domElement: C.value, base64: !0, img: !0, scale: t });
|
|
383
|
-
return {
|
|
384
|
-
imageUri: m,
|
|
385
|
-
base64: p,
|
|
386
|
-
title: e.value.style.chart.title.text,
|
|
387
|
-
width: u,
|
|
388
|
-
height: a,
|
|
389
|
-
aspectRatio: l
|
|
390
|
-
};
|
|
391
|
-
}
|
|
392
|
-
return Ye({
|
|
393
|
-
getImage: Je,
|
|
394
|
-
generatePdf: _e,
|
|
395
|
-
generateImage: we,
|
|
396
|
-
toggleAnnotator: te,
|
|
397
|
-
toggleFullscreen: Ce
|
|
398
|
-
}), (t, u) => (r(), o("div", {
|
|
399
|
-
class: Ne(`vue-ui-gauge ${E.value ? "vue-data-ui-wrapper-fullscreen" : ""}`),
|
|
400
|
-
ref_key: "gaugeChart",
|
|
401
|
-
ref: C,
|
|
402
|
-
id: `vue-ui-gauge_${w.value}`,
|
|
403
|
-
style: se(`font-family:${e.value.style.fontFamily};width:100%; text-align:center;background:${e.value.style.chart.backgroundColor};${e.value.responsive ? "height: 100%" : ""}`),
|
|
404
|
-
onMouseenter: u[0] || (u[0] = () => n(ge)(!0)),
|
|
405
|
-
onMouseleave: u[1] || (u[1] = () => n(ge)(!1))
|
|
406
|
-
}, [
|
|
407
|
-
e.value.userOptions.buttons.annotator ? (r(), W(n(Ee), {
|
|
408
|
-
key: 0,
|
|
409
|
-
svgRef: n(J),
|
|
410
|
-
backgroundColor: e.value.style.chart.backgroundColor,
|
|
411
|
-
color: e.value.style.chart.color,
|
|
412
|
-
active: j.value,
|
|
413
|
-
onClose: te
|
|
414
|
-
}, null, 8, ["svgRef", "backgroundColor", "color", "active"])) : c("", !0),
|
|
415
|
-
Ue.value ? (r(), o("div", {
|
|
416
|
-
key: 1,
|
|
417
|
-
ref_key: "noTitle",
|
|
418
|
-
ref: fe,
|
|
419
|
-
class: "vue-data-ui-no-title-space",
|
|
420
|
-
style: "height:36px; width: 100%;background:transparent"
|
|
421
|
-
}, null, 512)) : c("", !0),
|
|
422
|
-
e.value.style.chart.title.text ? (r(), o("div", {
|
|
423
|
-
key: 2,
|
|
424
|
-
ref_key: "chartTitle",
|
|
425
|
-
ref: ve,
|
|
426
|
-
style: "width:100%;background:transparent;padding-bottom:12px"
|
|
427
|
-
}, [
|
|
428
|
-
(r(), W($t, {
|
|
429
|
-
key: `title_${ye.value}`,
|
|
430
|
-
config: {
|
|
431
|
-
title: {
|
|
432
|
-
cy: "gauge-div-title",
|
|
433
|
-
...e.value.style.chart.title
|
|
434
|
-
},
|
|
435
|
-
subtitle: {
|
|
436
|
-
cy: "gauge-div-subtitle",
|
|
437
|
-
...e.value.style.chart.title.subtitle
|
|
438
|
-
}
|
|
439
|
-
}
|
|
440
|
-
}, {
|
|
441
|
-
default: R(() => [
|
|
442
|
-
e.value.translations.base && H.dataset.base ? (r(), o("span", Nt, Y(e.value.translations.base) + ": " + Y(H.dataset.base), 1)) : c("", !0)
|
|
443
|
-
]),
|
|
444
|
-
_: 1
|
|
445
|
-
}, 8, ["config"]))
|
|
446
|
-
], 512)) : c("", !0),
|
|
447
|
-
e.value.userOptions.show && Be.value && (n(pe) || n(Z)) ? (r(), W(n(Te), {
|
|
448
|
-
ref_key: "details",
|
|
449
|
-
ref: je,
|
|
450
|
-
key: `user_options_${ce.value}`,
|
|
451
|
-
backgroundColor: e.value.style.chart.backgroundColor,
|
|
452
|
-
color: e.value.style.chart.color,
|
|
453
|
-
isImaging: n(be),
|
|
454
|
-
isPrinting: n(ke),
|
|
455
|
-
uid: w.value,
|
|
456
|
-
hasXls: !1,
|
|
457
|
-
hasPdf: e.value.userOptions.buttons.pdf,
|
|
458
|
-
hasImg: e.value.userOptions.buttons.img,
|
|
459
|
-
hasFullscreen: e.value.userOptions.buttons.fullscreen,
|
|
460
|
-
isFullscreen: E.value,
|
|
461
|
-
titles: { ...e.value.userOptions.buttonTitles },
|
|
462
|
-
chartElement: C.value,
|
|
463
|
-
callbacks: e.value.userOptions.callbacks,
|
|
464
|
-
printScale: e.value.userOptions.print.scale,
|
|
465
|
-
position: e.value.userOptions.position,
|
|
466
|
-
hasAnnotator: e.value.userOptions.buttons.annotator,
|
|
467
|
-
isAnnotation: j.value,
|
|
468
|
-
onToggleFullscreen: Ce,
|
|
469
|
-
onGeneratePdf: n(_e),
|
|
470
|
-
onGenerateImage: n(we),
|
|
471
|
-
onToggleAnnotator: te,
|
|
472
|
-
style: se({
|
|
473
|
-
visibility: n(pe) ? n(Z) ? "visible" : "hidden" : "visible"
|
|
474
|
-
})
|
|
475
|
-
}, rt({ _: 2 }, [
|
|
476
|
-
t.$slots.menuIcon ? {
|
|
477
|
-
name: "menuIcon",
|
|
478
|
-
fn: R(({ isOpen: a, color: l }) => [
|
|
479
|
-
S(t.$slots, "menuIcon", D(q({ isOpen: a, color: l })), void 0, !0)
|
|
480
|
-
]),
|
|
481
|
-
key: "0"
|
|
482
|
-
} : void 0,
|
|
483
|
-
t.$slots.optionPdf ? {
|
|
484
|
-
name: "optionPdf",
|
|
485
|
-
fn: R(() => [
|
|
486
|
-
S(t.$slots, "optionPdf", {}, void 0, !0)
|
|
487
|
-
]),
|
|
488
|
-
key: "1"
|
|
489
|
-
} : void 0,
|
|
490
|
-
t.$slots.optionImg ? {
|
|
491
|
-
name: "optionImg",
|
|
492
|
-
fn: R(() => [
|
|
493
|
-
S(t.$slots, "optionImg", {}, void 0, !0)
|
|
494
|
-
]),
|
|
495
|
-
key: "2"
|
|
496
|
-
} : void 0,
|
|
497
|
-
t.$slots.optionFullscreen ? {
|
|
498
|
-
name: "optionFullscreen",
|
|
499
|
-
fn: R(({ toggleFullscreen: a, isFullscreen: l }) => [
|
|
500
|
-
S(t.$slots, "optionFullscreen", D(q({ toggleFullscreen: a, isFullscreen: l })), void 0, !0)
|
|
501
|
-
]),
|
|
502
|
-
key: "3"
|
|
503
|
-
} : void 0,
|
|
504
|
-
t.$slots.optionAnnotator ? {
|
|
505
|
-
name: "optionAnnotator",
|
|
506
|
-
fn: R(({ toggleAnnotator: a, isAnnotator: l }) => [
|
|
507
|
-
S(t.$slots, "optionAnnotator", D(q({ toggleAnnotator: a, isAnnotator: l })), void 0, !0)
|
|
508
|
-
]),
|
|
509
|
-
key: "4"
|
|
510
|
-
} : void 0
|
|
511
|
-
]), 1032, ["backgroundColor", "color", "isImaging", "isPrinting", "uid", "hasPdf", "hasImg", "hasFullscreen", "isFullscreen", "titles", "chartElement", "callbacks", "printScale", "position", "hasAnnotator", "isAnnotation", "onGeneratePdf", "onGenerateImage", "style"])) : c("", !0),
|
|
512
|
-
(r(), o("svg", {
|
|
513
|
-
ref_key: "svgRef",
|
|
514
|
-
ref: J,
|
|
515
|
-
xmlns: n(pt),
|
|
516
|
-
class: Ne({ "vue-data-ui-fullscreen--on": E.value, "vue-data-ui-fulscreen--off": !E.value }),
|
|
517
|
-
viewBox: `0 0 ${s.value.width <= 0 ? 10 : s.value.width} ${s.value.height <= 0 ? 10 : s.value.height}`,
|
|
518
|
-
style: se(`max-width:100%;overflow:hidden !important;background:transparent;color:${e.value.style.chart.color}`)
|
|
519
|
-
}, [
|
|
520
|
-
ot(n(Le)),
|
|
521
|
-
t.$slots["chart-background"] ? (r(), o("foreignObject", {
|
|
522
|
-
key: 0,
|
|
523
|
-
x: 0,
|
|
524
|
-
y: 0,
|
|
525
|
-
width: s.value.width <= 0 ? 10 : s.value.width,
|
|
526
|
-
height: s.value.height <= 0 ? 10 : s.value.height,
|
|
527
|
-
style: {
|
|
528
|
-
pointerEvents: "none"
|
|
529
|
-
}
|
|
530
|
-
}, [
|
|
531
|
-
S(t.$slots, "chart-background", {}, void 0, !0)
|
|
532
|
-
], 8, It)) : c("", !0),
|
|
533
|
-
k("defs", null, [
|
|
534
|
-
k("radialGradient", {
|
|
535
|
-
id: `gradient_${w.value}`,
|
|
536
|
-
cx: "50%",
|
|
537
|
-
cy: "50%",
|
|
538
|
-
r: "50%",
|
|
539
|
-
fx: "50%",
|
|
540
|
-
fy: "50%"
|
|
541
|
-
}, [
|
|
542
|
-
k("stop", {
|
|
543
|
-
offset: "0%",
|
|
544
|
-
"stop-color": n(oe)("#FFFFFF", 1)
|
|
545
|
-
}, null, 8, Rt),
|
|
546
|
-
k("stop", {
|
|
547
|
-
offset: "80%",
|
|
548
|
-
"stop-color": n(oe)("#FFFFFF", e.value.style.chart.layout.track.gradientIntensity)
|
|
549
|
-
}, null, 8, Yt),
|
|
550
|
-
k("stop", {
|
|
551
|
-
offset: "100%",
|
|
552
|
-
"stop-color": n(oe)("#FFFFFF", 1)
|
|
553
|
-
}, null, 8, Et)
|
|
554
|
-
], 8, Xt)
|
|
555
|
-
]),
|
|
556
|
-
k("defs", null, [
|
|
557
|
-
k("filter", {
|
|
558
|
-
id: `blur_${w.value}`,
|
|
559
|
-
x: "-50%",
|
|
560
|
-
y: "-50%",
|
|
561
|
-
width: "200%",
|
|
562
|
-
height: "200%"
|
|
563
|
-
}, [
|
|
564
|
-
k("feGaussianBlur", {
|
|
565
|
-
in: "SourceGraphic",
|
|
566
|
-
stdDeviation: 100 / e.value.style.chart.layout.track.gradientIntensity
|
|
567
|
-
}, null, 8, Lt)
|
|
568
|
-
], 8, Tt)
|
|
569
|
-
]),
|
|
570
|
-
t.$slots.pattern ? (r(), o("g", Gt, [
|
|
571
|
-
(r(!0), o(b, null, x(d.value, (a, l) => (r(), o("defs", null, [
|
|
572
|
-
S(t.$slots, "pattern", L({ ref_for: !0 }, { seriesIndex: l, patternId: `pattern_${w.value}_${l}` }), void 0, !0)
|
|
573
|
-
]))), 256))
|
|
574
|
-
])) : c("", !0),
|
|
575
|
-
(r(!0), o(b, null, x(d.value, (a, l) => (r(), o("path", {
|
|
576
|
-
key: `arc_${l}`,
|
|
577
|
-
d: a.arcSlice,
|
|
578
|
-
fill: a.color,
|
|
579
|
-
stroke: e.value.style.chart.backgroundColor,
|
|
580
|
-
"stroke-linecap": "round"
|
|
581
|
-
}, null, 8, Bt))), 128)),
|
|
582
|
-
t.$slots.pattern ? (r(!0), o(b, { key: 2 }, x(d.value, (a, l) => (r(), o("path", {
|
|
583
|
-
key: `arc_${l}`,
|
|
584
|
-
d: a.arcSlice,
|
|
585
|
-
fill: `url(#pattern_${w.value}_${l})`,
|
|
586
|
-
stroke: e.value.style.chart.backgroundColor,
|
|
587
|
-
"stroke-linecap": "round"
|
|
588
|
-
}, null, 8, jt))), 128)) : c("", !0),
|
|
589
|
-
e.value.style.chart.layout.indicatorArc.show ? (r(), o("path", {
|
|
590
|
-
key: 3,
|
|
591
|
-
d: Ze.value,
|
|
592
|
-
fill: e.value.style.chart.layout.indicatorArc.fill
|
|
593
|
-
}, null, 8, Ut)) : c("", !0),
|
|
594
|
-
e.value.style.chart.layout.segmentNames.show && e.value.style.chart.layout.segmentNames.curved ? (r(), o(b, { key: 4 }, [
|
|
595
|
-
(r(!0), o(b, null, x(d.value, (a, l) => (r(), o("path", {
|
|
596
|
-
id: `curve_${w.value}_${l}`,
|
|
597
|
-
d: `M ${i.value.x1},${i.value.y1} m -${M.value[l]},0 a ${M.value[l]},${M.value[l]} 0 1,1 ${2 * M.value[l]},0 a ${M.value[l]},${M.value[l]} 0 1,1 -${2 * M.value[l]},0`,
|
|
598
|
-
fill: "transparent"
|
|
599
|
-
}, null, 8, Wt))), 256)),
|
|
600
|
-
(r(!0), o(b, null, x(d.value, (a, l) => (r(), o("text", {
|
|
601
|
-
fill: e.value.style.chart.layout.segmentNames.useSerieColor ? a.color : e.value.style.chart.layout.segmentNames.color,
|
|
602
|
-
"font-size": B.value,
|
|
603
|
-
"font-weight": e.value.style.chart.layout.segmentNames.bold ? "bold" : "normal",
|
|
604
|
-
"text-anchor": "middle"
|
|
605
|
-
}, [
|
|
606
|
-
k("textPath", {
|
|
607
|
-
href: `#curve_${w.value}_${l}`,
|
|
608
|
-
startOffset: Ve.value[l]
|
|
609
|
-
}, Y(a.name || ""), 9, qt)
|
|
610
|
-
], 8, Dt))), 256))
|
|
611
|
-
], 64)) : c("", !0),
|
|
612
|
-
e.value.style.chart.layout.segmentNames.show && !e.value.style.chart.layout.segmentNames.curved ? (r(!0), o(b, { key: 5 }, x(De.value, (a, l) => (r(), o("text", {
|
|
613
|
-
class: "vue-ui-gauge-label-flat",
|
|
614
|
-
"text-anchor": n(bt)(a, !1, 12).anchor,
|
|
615
|
-
fill: e.value.style.chart.layout.segmentNames.useSerieColor ? a.color : e.value.style.chart.layout.segmentNames.color,
|
|
616
|
-
"font-size": B.value,
|
|
617
|
-
"font-weight": e.value.style.chart.layout.segmentNames.bold ? "bold" : "normal",
|
|
618
|
-
innerHTML: n(kt)({
|
|
619
|
-
content: String(a.name ?? ""),
|
|
620
|
-
fontSize: B.value,
|
|
621
|
-
fill: e.value.style.chart.layout.segmentNames.useSerieColor ? a.color : e.value.style.chart.layout.segmentNames.color,
|
|
622
|
-
x: a.center.endX,
|
|
623
|
-
y: a.center.endY
|
|
624
|
-
})
|
|
625
|
-
}, null, 8, Vt))), 256)) : c("", !0),
|
|
626
|
-
e.value.style.chart.layout.track.useGradient ? (r(!0), o(b, { key: 6 }, x(He.value, (a, l) => (r(), o("path", {
|
|
627
|
-
key: `arc_${l}`,
|
|
628
|
-
d: a.arcSlice,
|
|
629
|
-
fill: "#FFFFFF",
|
|
630
|
-
stroke: "none",
|
|
631
|
-
"stroke-linecap": "round",
|
|
632
|
-
filter: `url(#blur_${w.value})`
|
|
633
|
-
}, null, 8, Ht))), 128)) : c("", !0),
|
|
634
|
-
e.value.style.chart.layout.segmentSeparators.show ? (r(), o(b, { key: 7 }, [
|
|
635
|
-
k("line", L(Ae.value, {
|
|
636
|
-
stroke: e.value.style.chart.backgroundColor,
|
|
637
|
-
"stroke-width": e.value.style.chart.layout.segmentSeparators.strokeWidth + 2,
|
|
638
|
-
"stroke-linecap": "round"
|
|
639
|
-
}), null, 16, Zt),
|
|
640
|
-
k("line", L(Ae.value, {
|
|
641
|
-
stroke: e.value.style.chart.layout.segmentSeparators.stroke,
|
|
642
|
-
"stroke-width": e.value.style.chart.layout.segmentSeparators.strokeWidth,
|
|
643
|
-
"stroke-linecap": "round"
|
|
644
|
-
}), null, 16, Jt),
|
|
645
|
-
(r(!0), o(b, null, x(Fe.value, (a) => (r(), o("line", L({ ref_for: !0 }, a, {
|
|
646
|
-
stroke: e.value.style.chart.backgroundColor,
|
|
647
|
-
"stroke-width": e.value.style.chart.layout.segmentSeparators.strokeWidth + 2,
|
|
648
|
-
"stroke-linecap": "round"
|
|
649
|
-
}), null, 16, Kt))), 256)),
|
|
650
|
-
(r(!0), o(b, null, x(Fe.value, (a) => (r(), o("line", L({ ref_for: !0 }, a, {
|
|
651
|
-
stroke: e.value.style.chart.layout.segmentSeparators.stroke,
|
|
652
|
-
"stroke-width": e.value.style.chart.layout.segmentSeparators.strokeWidth,
|
|
653
|
-
"stroke-linecap": "round"
|
|
654
|
-
}), null, 16, Qt))), 256))
|
|
655
|
-
], 64)) : c("", !0),
|
|
656
|
-
e.value.style.chart.layout.markers.show ? (r(), o("g", ea, [
|
|
657
|
-
(r(!0), o(b, null, x(d.value, (a, l) => (r(), o("text", {
|
|
658
|
-
x: n(F)({
|
|
659
|
-
centerX: i.value.x1,
|
|
660
|
-
centerY: v.value.base,
|
|
661
|
-
initX: a.center.startX,
|
|
662
|
-
initY: a.center.startY,
|
|
663
|
-
offset: s.value.markerOffset
|
|
664
|
-
}).x,
|
|
665
|
-
y: n(F)({
|
|
666
|
-
centerX: i.value.x1,
|
|
667
|
-
centerY: v.value.base,
|
|
668
|
-
initX: a.center.startX,
|
|
669
|
-
initY: a.center.startY,
|
|
670
|
-
offset: s.value.markerOffset
|
|
671
|
-
}).y,
|
|
672
|
-
"text-anchor": a.center.startX < i.value.x1 - 5 ? "end" : a.center.startX > i.value.x1 + 5 ? "start" : "middle",
|
|
673
|
-
"font-size": s.value.labelFontSize * e.value.style.chart.layout.markers.fontSizeRatio,
|
|
674
|
-
"font-weight": `${e.value.style.chart.layout.markers.bold ? "bold" : "normal"}`,
|
|
675
|
-
fill: e.value.style.chart.layout.markers.color
|
|
676
|
-
}, Y(n(ue)(
|
|
677
|
-
e.value.style.chart.layout.markers.formatter,
|
|
678
|
-
a.from,
|
|
679
|
-
n(ne)({
|
|
680
|
-
p: e.value.style.chart.layout.markers.prefix,
|
|
681
|
-
v: a.from,
|
|
682
|
-
s: e.value.style.chart.layout.markers.suffix,
|
|
683
|
-
r: e.value.style.chart.layout.markers.roundingValue
|
|
684
|
-
})
|
|
685
|
-
)), 9, ta))), 256))
|
|
686
|
-
])) : c("", !0),
|
|
687
|
-
e.value.style.chart.layout.markers.show ? (r(), o("text", {
|
|
688
|
-
key: 9,
|
|
689
|
-
x: n(F)({
|
|
690
|
-
centerX: s.value.width / 2,
|
|
691
|
-
centerY: v.value.base,
|
|
692
|
-
initX: d.value.at(-1).endX,
|
|
693
|
-
initY: d.value.at(-1).endY,
|
|
694
|
-
offset: s.value.markerOffset
|
|
695
|
-
}).x,
|
|
696
|
-
y: n(F)({
|
|
697
|
-
centerX: s.value.width / 2,
|
|
698
|
-
centerY: v.value.base,
|
|
699
|
-
initX: d.value.at(-1).endX,
|
|
700
|
-
initY: d.value.at(-1).endY,
|
|
701
|
-
offset: s.value.markerOffset
|
|
702
|
-
}).y,
|
|
703
|
-
"text-anchor": "start",
|
|
704
|
-
"font-size": s.value.labelFontSize * e.value.style.chart.layout.markers.fontSizeRatio,
|
|
705
|
-
"font-weight": `${e.value.style.chart.layout.markers.bold ? "bold" : "normal"}`,
|
|
706
|
-
fill: e.value.style.chart.layout.markers.color
|
|
707
|
-
}, Y(n(ue)(
|
|
708
|
-
e.value.style.chart.layout.markers.formatter,
|
|
709
|
-
I.value,
|
|
710
|
-
n(ne)({
|
|
711
|
-
p: e.value.style.chart.layout.markers.prefix,
|
|
712
|
-
v: I.value,
|
|
713
|
-
s: e.value.style.chart.layout.markers.suffix,
|
|
714
|
-
r: e.value.style.chart.layout.markers.roundingValue
|
|
715
|
-
})
|
|
716
|
-
)), 9, aa)) : c("", !0),
|
|
717
|
-
e.value.style.chart.layout.pointer.show ? (r(), o(b, { key: 10 }, [
|
|
718
|
-
e.value.style.chart.layout.pointer.type === "rounded" ? (r(), o("g", la, [
|
|
719
|
-
isNaN(i.value.x2) ? c("", !0) : (r(), o("line", {
|
|
720
|
-
key: 0,
|
|
721
|
-
x1: i.value.x1,
|
|
722
|
-
y1: i.value.y1,
|
|
723
|
-
x2: i.value.x2,
|
|
724
|
-
y2: i.value.y2,
|
|
725
|
-
stroke: e.value.style.chart.layout.pointer.stroke,
|
|
726
|
-
"stroke-width": s.value.pointerStrokeWidth,
|
|
727
|
-
"stroke-linecap": "round"
|
|
728
|
-
}, null, 8, sa)),
|
|
729
|
-
isNaN(i.value.x2) ? c("", !0) : (r(), o("line", {
|
|
730
|
-
key: 1,
|
|
731
|
-
x1: i.value.x1,
|
|
732
|
-
y1: i.value.y1,
|
|
733
|
-
x2: i.value.x2,
|
|
734
|
-
y2: i.value.y2,
|
|
735
|
-
stroke: e.value.style.chart.layout.pointer.useRatingColor ? Q.value : e.value.style.chart.layout.pointer.color,
|
|
736
|
-
"stroke-linecap": "round",
|
|
737
|
-
"stroke-width": s.value.pointerStrokeWidth * 0.7
|
|
738
|
-
}, null, 8, ra)),
|
|
739
|
-
!isNaN(i.value.x2) && e.value.style.chart.layout.track.useGradient ? (r(), o("line", {
|
|
740
|
-
key: 2,
|
|
741
|
-
x1: i.value.x1,
|
|
742
|
-
y1: i.value.y1,
|
|
743
|
-
x2: i.value.x2,
|
|
744
|
-
y2: i.value.y2,
|
|
745
|
-
stroke: "white",
|
|
746
|
-
"stroke-linecap": "round",
|
|
747
|
-
"stroke-width": s.value.pointerStrokeWidth * 0.3,
|
|
748
|
-
filter: `url(#blur_${w.value})`
|
|
749
|
-
}, null, 8, oa)) : c("", !0)
|
|
750
|
-
])) : (r(), o("g", ua, [
|
|
751
|
-
Se.value ? (r(), o("path", {
|
|
752
|
-
key: 0,
|
|
753
|
-
d: Se.value,
|
|
754
|
-
fill: e.value.style.chart.layout.pointer.useRatingColor ? Q.value : e.value.style.chart.layout.pointer.color,
|
|
755
|
-
stroke: e.value.style.chart.layout.pointer.stroke,
|
|
756
|
-
"stroke-width": e.value.style.chart.layout.pointer.circle.strokeWidth,
|
|
757
|
-
"stroke-linejoin": "round"
|
|
758
|
-
}, null, 8, na)) : c("", !0)
|
|
759
|
-
])),
|
|
760
|
-
k("circle", {
|
|
761
|
-
cx: s.value.width / 2,
|
|
762
|
-
cy: v.value.base,
|
|
763
|
-
fill: e.value.style.chart.layout.pointer.circle.color,
|
|
764
|
-
r: s.value.pointerRadius <= 0 ? 1e-4 : s.value.pointerRadius,
|
|
765
|
-
"stroke-width": e.value.style.chart.layout.pointer.circle.strokeWidth,
|
|
766
|
-
stroke: e.value.style.chart.layout.pointer.circle.stroke
|
|
767
|
-
}, null, 8, ia)
|
|
768
|
-
], 64)) : c("", !0),
|
|
769
|
-
e.value.style.chart.legend.show ? (r(), o("text", {
|
|
770
|
-
key: 11,
|
|
771
|
-
x: s.value.width / 2,
|
|
772
|
-
y: v.value.ratingBase,
|
|
773
|
-
"text-anchor": "middle",
|
|
774
|
-
"font-size": s.value.legendFontSize,
|
|
775
|
-
"font-weight": "bold",
|
|
776
|
-
fill: e.value.style.chart.legend.useRatingColor ? Q.value : e.value.style.chart.legend.color
|
|
777
|
-
}, Y(n(ue)(
|
|
778
|
-
e.value.style.chart.legend.formatter,
|
|
779
|
-
y.value,
|
|
780
|
-
n(ne)({
|
|
781
|
-
p: e.value.style.chart.legend.prefix + (e.value.style.chart.legend.showPlusSymbol && y.value > 0 ? "+" : ""),
|
|
782
|
-
v: y.value,
|
|
783
|
-
s: e.value.style.chart.legend.suffix,
|
|
784
|
-
r: e.value.style.chart.legend.roundingValue
|
|
785
|
-
})
|
|
786
|
-
)), 9, ca)) : c("", !0),
|
|
787
|
-
S(t.$slots, "svg", { svg: s.value }, void 0, !0)
|
|
788
|
-
], 14, Pt)),
|
|
789
|
-
t.$slots.watermark ? (r(), o("div", va, [
|
|
790
|
-
S(t.$slots, "watermark", D(q({ isPrinting: n(ke) || n(be) })), void 0, !0)
|
|
791
|
-
])) : c("", !0),
|
|
792
|
-
k("div", {
|
|
793
|
-
ref_key: "chartLegend",
|
|
794
|
-
ref: he
|
|
795
|
-
}, [
|
|
796
|
-
S(t.$slots, "legend", { legend: O.value }, void 0, !0)
|
|
797
|
-
], 512),
|
|
798
|
-
t.$slots.source ? (r(), o("div", {
|
|
799
|
-
key: 5,
|
|
800
|
-
ref_key: "source",
|
|
801
|
-
ref: de,
|
|
802
|
-
dir: "auto"
|
|
803
|
-
}, [
|
|
804
|
-
S(t.$slots, "source", {}, void 0, !0)
|
|
805
|
-
], 512)) : c("", !0),
|
|
806
|
-
n(me) ? (r(), W(Ct, { key: 6 })) : c("", !0)
|
|
807
|
-
], 46, Mt));
|
|
808
|
-
}
|
|
809
|
-
}, xa = /* @__PURE__ */ Ot(ha, [["__scopeId", "data-v-98e99a00"]]);
|
|
810
|
-
export {
|
|
811
|
-
xa as default
|
|
812
|
-
};
|