vue-data-ui 3.0.0-next.9 → 3.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +32 -30
- package/dist/{Arrow-B6OlqyCG.js → Arrow-r2f8Bpd-.js} +1 -1
- package/dist/{BaseDraggableDialog-CA8QOk7L.js → BaseDraggableDialog-CGGcf8d8.js} +4 -4
- package/dist/{BaseIcon-DxUUKVlt.js → BaseIcon-CXtL10fo.js} +1 -1
- package/dist/{ColorPicker-Bh1dfgXt.js → ColorPicker-H91bBsqM.js} +2 -2
- package/dist/{DataTable--paavNqF.js → DataTable-BSSXpM7w.js} +2 -2
- package/dist/{Legend-BZ06qU55.js → Legend-BUk0WvWJ.js} +2 -2
- package/dist/{NonSvgPenAndPaper-DN9XjEHv.js → NonSvgPenAndPaper-DQDgPoW8.js} +3 -3
- package/dist/{PackageVersion-2QvaZf9_.js → PackageVersion-CJ6Vd7V5.js} +3 -3
- package/dist/{PenAndPaper-hGgW0EHz.js → PenAndPaper-D3zudcNI.js} +32 -32
- package/dist/{RecursiveCircles-Dn3TGoL6.js → RecursiveCircles-BcLb1aRS.js} +15 -13
- package/dist/RecursiveLabels-Bgcv0pzu.js +50 -0
- package/dist/{RecursiveLinks-ld_gDZH4.js → RecursiveLinks-00zGWPf9.js} +20 -18
- package/dist/{Shape-Mr1eIp_G.js → Shape-BRzOzubn.js} +43 -37
- package/dist/Slicer-MID8pgT3.js +602 -0
- package/dist/{SparkTooltip-Czhz446b.js → SparkTooltip-DATI1fGZ.js} +7 -7
- package/dist/{Title-B2dA6-uH.js → Title-BGu6gEd2.js} +1 -1
- package/dist/{Tooltip-O_hCvqgF.js → Tooltip-Bh2zYSoM.js} +23 -19
- package/dist/{UserOptions-Bk03FRqW.js → UserOptions-Ck8fz9f4.js} +2 -2
- package/dist/{dom-to-png-Bt5F9TXw.js → dom-to-png-DhIh24Ti.js} +1 -1
- package/dist/{img-C_9wps3s.js → img-DrR839Ot.js} +1 -1
- package/dist/{index-CgShIRes.js → index-BtNwOUja.js} +2885 -2010
- package/dist/{pdf-CXdbjyRJ.js → pdf-DoShrdT5.js} +1 -1
- package/dist/style.css +1 -1
- package/dist/types/vue-data-ui.d.cts +753 -65
- package/dist/types/vue-data-ui.d.ts +753 -65
- package/dist/useAutoSizeLabelsInsideViewbox-FmDQyX4z.js +81 -0
- package/dist/useFitSvgText-2crs6Fv5.js +69 -0
- package/dist/useLoading-D7YHNtLX.js +29 -0
- package/dist/useNestedProp-f2H3m6Yj.js +13 -0
- package/dist/usePanZoom-BVca3eMk.js +122 -0
- package/dist/{usePrinter-rIrqBbbm.js → usePrinter-DUNjpQNe.js} +2 -2
- package/dist/useTimeLabelCollider-CIsgDrl9.js +78 -0
- package/dist/{useTimeLabels-DG97x2hL.js → useTimeLabels-DkzmKfZn.js} +208 -156
- package/dist/{vue-data-ui-DiwfJSwC.js → vue-data-ui-D7QVxNhO.js} +105 -100
- package/dist/vue-data-ui.js +26 -25
- package/dist/vue-ui-3d-bar-ITaF-6Kn.js +1323 -0
- package/dist/{vue-ui-accordion-hlzscmAS.js → vue-ui-accordion-BKUrAowe.js} +3 -3
- package/dist/vue-ui-age-pyramid-DxsuDr6o.js +835 -0
- package/dist/{vue-ui-annotator-BHwBUNRO.js → vue-ui-annotator-B06QtxgJ.js} +12 -12
- package/dist/vue-ui-bullet-B7Fy45tA.js +571 -0
- package/dist/vue-ui-candlestick-Dw0U4uIQ.js +1000 -0
- package/dist/{vue-ui-carousel-table-6MTDYf-H.js → vue-ui-carousel-table-DGz0nw28.js} +29 -29
- package/dist/{vue-ui-chestnut-Cr6dK21e.js → vue-ui-chestnut-CFfKYm9i.js} +664 -536
- package/dist/vue-ui-chord-EhlQhMSs.js +1038 -0
- package/dist/vue-ui-circle-pack-BHrrEUUd.js +709 -0
- package/dist/{vue-ui-cursor-Ch5yUxNn.js → vue-ui-cursor-Dd-HtWzG.js} +2 -2
- package/dist/{vue-ui-dashboard-tVZ9aEHo.js → vue-ui-dashboard-6R8udDY3.js} +64 -64
- package/dist/{vue-ui-digits-BOlYLluF.js → vue-ui-digits-zKn3uhGN.js} +2 -2
- package/dist/{vue-ui-donut-BKwAnTKA.js → vue-ui-donut-BtnIwS_E.js} +431 -422
- package/dist/vue-ui-donut-evolution-DHo1MuMM.js +1076 -0
- package/dist/vue-ui-dumbbell-Czi9r9Na.js +1120 -0
- package/dist/vue-ui-flow-jOfM0RZY.js +841 -0
- package/dist/{vue-ui-funnel-CAV6A--C.js → vue-ui-funnel-tBvVpdhy.js} +16 -16
- package/dist/vue-ui-galaxy-IdoY2oqG.js +680 -0
- package/dist/vue-ui-gauge-DR6Xm_Hz.js +791 -0
- package/dist/vue-ui-gizmo-Dto73UsB.js +210 -0
- package/dist/vue-ui-heatmap-zmFv-0z1.js +1078 -0
- package/dist/vue-ui-history-plot-ILemyyYw.js +1074 -0
- package/dist/{vue-ui-kpi-DjHXc1Z9.js → vue-ui-kpi-hmqSCvxr.js} +26 -26
- package/dist/{vue-ui-mini-loader-C68r9wbr.js → vue-ui-mini-loader-CbD-E8ci.js} +2 -2
- package/dist/vue-ui-molecule-mTy6YIm6.js +656 -0
- package/dist/vue-ui-mood-radar-BEnSYV3Q.js +785 -0
- package/dist/vue-ui-nested-donuts-CGE9dmJK.js +1284 -0
- package/dist/vue-ui-onion-Dh2J9GV0.js +776 -0
- package/dist/vue-ui-parallel-coordinate-plot-xsgmMIJK.js +916 -0
- package/dist/{vue-ui-quadrant-ULvVhjjq.js → vue-ui-quadrant-DA0Kw6eq.js} +512 -459
- package/dist/vue-ui-quick-chart-DKbxF5Yt.js +1762 -0
- package/dist/vue-ui-radar-BFY9bN_h.js +796 -0
- package/dist/{vue-ui-rating-CkdVnYpj.js → vue-ui-rating-Bh35aujf.js} +2 -2
- package/dist/vue-ui-relation-circle-B-05kQ_l.js +598 -0
- package/dist/vue-ui-ridgeline-CuGfF83t.js +1157 -0
- package/dist/vue-ui-rings-DrQXXzAM.js +728 -0
- package/dist/vue-ui-scatter-CWn9c7e9.js +1178 -0
- package/dist/{vue-ui-skeleton-BsBaCvoE.js → vue-ui-skeleton-oG4Bm5nL.js} +13 -13
- package/dist/{vue-ui-smiley-B2sBY2Q-.js → vue-ui-smiley-Cnwba_gV.js} +46 -46
- package/dist/vue-ui-spark-trend-D9iNCf4o.js +315 -0
- package/dist/vue-ui-sparkbar-iJkiubZC.js +351 -0
- package/dist/vue-ui-sparkgauge-BH3uA5rh.js +232 -0
- package/dist/vue-ui-sparkhistogram-B3kR62pf.js +380 -0
- package/dist/vue-ui-sparkline-DczR2ZAf.js +513 -0
- package/dist/vue-ui-sparkstackbar-Cg0ItRGH.js +421 -0
- package/dist/vue-ui-stackbar-d4PrzcGS.js +1371 -0
- package/dist/vue-ui-strip-plot-BXBpN5rl.js +916 -0
- package/dist/{vue-ui-table-DaE8lQuo.js → vue-ui-table-BXOLZXuz.js} +17 -17
- package/dist/{vue-ui-table-heatmap--dSEG8cU.js → vue-ui-table-heatmap-7YT7VF2H.js} +5 -5
- package/dist/{vue-ui-table-sparkline-D4DkGvDP.js → vue-ui-table-sparkline-BfgqajJ2.js} +19 -16
- package/dist/vue-ui-thermometer-C7Tg6HLz.js +541 -0
- package/dist/{vue-ui-timer-CYXTAh6x.js → vue-ui-timer-Ch5JP1pQ.js} +5 -5
- package/dist/vue-ui-tiremarks-fY-4pWAK.js +406 -0
- package/dist/vue-ui-treemap-DTSX6suB.js +1035 -0
- package/dist/{vue-ui-vertical-bar-CO9eR1ty.js → vue-ui-vertical-bar-C-i2dRnU.js} +104 -102
- package/dist/vue-ui-waffle-BbgLlhGH.js +910 -0
- package/dist/vue-ui-wheel-waZf462K.js +379 -0
- package/dist/vue-ui-word-cloud-DtLK91Dk.js +765 -0
- package/dist/{vue-ui-world-P45Plcqw.js → vue-ui-world-Cx4uuwTY.js} +364 -327
- package/dist/vue-ui-xy-DDOT8cyx.js +3808 -0
- package/dist/{vue-ui-xy-canvas-DgNBgUak.js → vue-ui-xy-canvas-CUCsC8vD.js} +265 -264
- package/package.json +4 -4
- package/dist/RecursiveLabels-NTMB9w5C.js +0 -49
- package/dist/Slicer-3t0HimeE.js +0 -577
- package/dist/useLoading-Bt5Doa8m.js +0 -28
- package/dist/useNestedProp-BC4Ciblw.js +0 -13
- package/dist/usePanZoom-BQMvRXEQ.js +0 -115
- package/dist/vue-ui-3d-bar-BqmzX9u4.js +0 -1227
- package/dist/vue-ui-age-pyramid-eRPt0BJb.js +0 -746
- package/dist/vue-ui-bullet-BSnF2gql.js +0 -513
- package/dist/vue-ui-candlestick-kMbNnoYe.js +0 -873
- package/dist/vue-ui-chord-Dxy_bfIE.js +0 -949
- package/dist/vue-ui-circle-pack-I_p4FPiW.js +0 -673
- package/dist/vue-ui-donut-evolution-DQhZJ4Sa.js +0 -903
- package/dist/vue-ui-dumbbell-DdN-7b3g.js +0 -753
- package/dist/vue-ui-flow-MvORTthN.js +0 -765
- package/dist/vue-ui-galaxy-B0PLMAn8.js +0 -617
- package/dist/vue-ui-gauge-C4FTzDFt.js +0 -738
- package/dist/vue-ui-gizmo-Dl5FHFb4.js +0 -192
- package/dist/vue-ui-heatmap-C3dee43W.js +0 -877
- package/dist/vue-ui-history-plot-dqv4u1Oa.js +0 -924
- package/dist/vue-ui-molecule-DtRAlfhC.js +0 -597
- package/dist/vue-ui-mood-radar-BZj2G0zE.js +0 -670
- package/dist/vue-ui-nested-donuts-OqJTwMb2.js +0 -1212
- package/dist/vue-ui-onion-DXLokGec.js +0 -701
- package/dist/vue-ui-parallel-coordinate-plot-tg7QhtIE.js +0 -807
- package/dist/vue-ui-quick-chart-4EODniQ3.js +0 -1612
- package/dist/vue-ui-radar-Dt5p5oSy.js +0 -741
- package/dist/vue-ui-relation-circle-_SysXj9T.js +0 -542
- package/dist/vue-ui-ridgeline-Cs5UihNN.js +0 -969
- package/dist/vue-ui-rings-Duay-EmS.js +0 -685
- package/dist/vue-ui-scatter-C6oGQcbL.js +0 -1045
- package/dist/vue-ui-spark-trend-CEAqGu3d.js +0 -291
- package/dist/vue-ui-sparkbar-ByPUDc6x.js +0 -301
- package/dist/vue-ui-sparkgauge-C-GKwevJ.js +0 -201
- package/dist/vue-ui-sparkhistogram-Dz0DdaVW.js +0 -313
- package/dist/vue-ui-sparkline-BULntz_U.js +0 -459
- package/dist/vue-ui-sparkstackbar-DXjHOeeU.js +0 -381
- package/dist/vue-ui-stackbar-CeP9n7zy.js +0 -1207
- package/dist/vue-ui-strip-plot-CaFQkWV8.js +0 -761
- package/dist/vue-ui-thermometer-BXf14CYH.js +0 -495
- package/dist/vue-ui-tiremarks-D6hJ1cd4.js +0 -358
- package/dist/vue-ui-treemap-tBurCrdn.js +0 -965
- package/dist/vue-ui-waffle-BNzs_BxY.js +0 -863
- package/dist/vue-ui-wheel-tydUATi8.js +0 -352
- package/dist/vue-ui-word-cloud-DUUc_tj6.js +0 -659
- package/dist/vue-ui-xy--HToGdle.js +0 -2982
|
@@ -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-CgShIRes.js";
|
|
3
|
-
import { t as st, u as ot } from "./useResponsive-DfdjqQps.js";
|
|
4
|
-
import { u as ze } from "./useNestedProp-BC4Ciblw.js";
|
|
5
|
-
import { u as ut } from "./usePrinter-rIrqBbbm.js";
|
|
6
|
-
import { u as nt } from "./useUserOptionState-BIvW1Kz7.js";
|
|
7
|
-
import { u as it } from "./useChartAccessibility-9icAAmYg.js";
|
|
8
|
-
import ct from "./Title-B2dA6-uH.js";
|
|
9
|
-
import vt from "./img-C_9wps3s.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-hGgW0EHz.js")), Oe = G(() => import("./vue-ui-skeleton-BsBaCvoE.js")), Me = G(() => import("./UserOptions-Bk03FRqW.js")), Pe = G(() => import("./PackageVersion-2QvaZf9_.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
|
-
};
|