vue-data-ui 2.16.6 → 2.17.1
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 +84 -53
- package/dist/{Arrow-DCqxVwey.js → Arrow-BDCVJzQB.js} +1 -1
- package/dist/{BaseDraggableDialog-6DIKXIBU.js → BaseDraggableDialog-BvuWrldK.js} +2 -2
- package/dist/{BaseIcon-Bn996RXm.js → BaseIcon-D9Tz8ARD.js} +1 -1
- package/dist/{ColorPicker-OFfLkKNb.js → ColorPicker-wGf46G2G.js} +2 -2
- package/dist/{DataTable-CHBLjKtZ.js → DataTable-Dt-TIOyY.js} +2 -2
- package/dist/{Legend-nBXoxXJH.js → Legend-3LNqqLDg.js} +2 -2
- package/dist/{NonSvgPenAndPaper-Cls2idJS.js → NonSvgPenAndPaper-iDdMuUEo.js} +3 -3
- package/dist/{PackageVersion-Bg_9KCU-.js → PackageVersion-C-4Ee8BQ.js} +1 -1
- package/dist/{PenAndPaper-BPTpbnay.js → PenAndPaper-Cde-wJ3N.js} +32 -32
- package/dist/{Shape-Bnf512BA.js → Shape-C75836Jl.js} +1 -1
- package/dist/{Slicer-BrqtJG2E.js → Slicer-CpSu7plp.js} +2 -2
- package/dist/{SparkTooltip-C-rLATAw.js → SparkTooltip-B_GXa2tb.js} +1 -1
- package/dist/{Title-Gi81VwUM.js → Title-DpERl1yr.js} +1 -1
- package/dist/{Tooltip-CJxVw7-T.js → Tooltip-DA0bYKFG.js} +1 -1
- package/dist/{UserOptions-CBEK6_jo.js → UserOptions-DTEJ3UM_.js} +2 -2
- package/dist/{dom-to-png-CRHNL8VU.js → dom-to-png-DWDGYXFL.js} +1 -1
- package/dist/{img-BgOg8opa.js → img-utitT2Gd.js} +1 -1
- package/dist/{index-DvIXJm6t.js → index-CobsZUkv.js} +22 -8
- package/dist/{pdf-DhTxBrbJ.js → pdf-DWZ8IB56.js} +1 -1
- package/dist/style.css +1 -1
- package/dist/types/vue-data-ui.d.cts +999 -160
- package/dist/types/vue-data-ui.d.ts +999 -160
- package/dist/{useNestedProp-DrYHm61t.js → useNestedProp-BwL5wmVa.js} +1 -1
- package/dist/{usePrinter-CWnXbGMb.js → usePrinter-DPh6U_Qk.js} +2 -2
- package/dist/vue-data-ui-D7ZgRDQ_.js +312 -0
- package/dist/vue-data-ui.js +1 -1
- package/dist/{vue-ui-3d-bar-CtlB4p7i.js → vue-ui-3d-bar-ORUAjkg7.js} +246 -231
- package/dist/{vue-ui-accordion-D55kCO5G.js → vue-ui-accordion-UewqY6OI.js} +3 -3
- package/dist/{vue-ui-age-pyramid-DSshyUn-.js → vue-ui-age-pyramid-Yl4aRpNc.js} +225 -210
- package/dist/{vue-ui-annotator-DQSMv_k2.js → vue-ui-annotator-B1gqiBqq.js} +2 -2
- package/dist/{vue-ui-bullet-FeScjj7q.js → vue-ui-bullet-C307lCPt.js} +168 -153
- package/dist/{vue-ui-candlestick-Drupgyoi.js → vue-ui-candlestick-BE6PcEdh.js} +218 -203
- package/dist/{vue-ui-carousel-table-BTZQRZfO.js → vue-ui-carousel-table-Cpvjr677.js} +4 -4
- package/dist/{vue-ui-chestnut-DLWjPwRL.js → vue-ui-chestnut-CUw74AgC.js} +412 -397
- package/dist/{vue-ui-chord-BgLbFBT9.js → vue-ui-chord-CCPGeAiY.js} +202 -187
- package/dist/{vue-ui-circle-pack-VXcRh2gy.js → vue-ui-circle-pack-dfyPiQmy.js} +222 -207
- package/dist/{vue-ui-cursor-DWmfnM25.js → vue-ui-cursor-C2zmfeoD.js} +2 -2
- package/dist/{vue-ui-dashboard-CGIocEHj.js → vue-ui-dashboard-CotAqRbX.js} +62 -62
- package/dist/{vue-ui-digits-BgQch3Fc.js → vue-ui-digits-7qJFCuoI.js} +2 -2
- package/dist/{vue-ui-donut-B59bCV5_.js → vue-ui-donut-D41WeqQU.js} +420 -411
- package/dist/{vue-ui-donut-evolution-CI8qBIQd.js → vue-ui-donut-evolution-Deg0dsYg.js} +352 -340
- package/dist/{vue-ui-dumbbell-CXv7sk88.js → vue-ui-dumbbell-DDwNoTPG.js} +214 -199
- package/dist/{vue-ui-flow-DxF0ELtv.js → vue-ui-flow-6oR7IMyi.js} +215 -200
- package/dist/{vue-ui-funnel-Bco8rqF8.js → vue-ui-funnel-BnXtOJmh.js} +212 -197
- package/dist/{vue-ui-galaxy-CaPJwwOj.js → vue-ui-galaxy-75XC8SpV.js} +213 -201
- package/dist/{vue-ui-gauge-D7arhDmb.js → vue-ui-gauge-w31j915C.js} +218 -203
- package/dist/{vue-ui-gizmo-Dwli-Mip.js → vue-ui-gizmo-bZqk6oZS.js} +3 -3
- package/dist/{vue-ui-heatmap-Cyn-ahGO.js → vue-ui-heatmap-BfU62tMW.js} +242 -223
- package/dist/{vue-ui-history-plot-C2AEToqx.js → vue-ui-history-plot-CFfco-Yj.js} +267 -252
- package/dist/{vue-ui-kpi-DKDibSdl.js → vue-ui-kpi-DaJ1U3wf.js} +3 -3
- package/dist/{vue-ui-mini-loader-B8OVutUx.js → vue-ui-mini-loader-CF_2jAI8.js} +2 -2
- package/dist/{vue-ui-molecule-BVSrqIGw.js → vue-ui-molecule-Tdk3Gd8M.js} +207 -192
- package/dist/{vue-ui-mood-radar-DvlyS3RN.js → vue-ui-mood-radar-Dg5wS7W5.js} +204 -189
- package/dist/{vue-ui-nested-donuts-D9ssSus6.js → vue-ui-nested-donuts-CpRe0sQB.js} +248 -240
- package/dist/{vue-ui-onion-Buu4VX3u.js → vue-ui-onion-B8o4ft2v.js} +184 -169
- package/dist/{vue-ui-parallel-coordinate-plot-DFLUvhxD.js → vue-ui-parallel-coordinate-plot-zW-CNqWC.js} +192 -177
- package/dist/{vue-ui-quadrant-BMC7NBGd.js → vue-ui-quadrant-DiRtZ16w.js} +259 -244
- package/dist/{vue-ui-quick-chart-DB9RKUkb.js → vue-ui-quick-chart-BRlYC_yT.js} +324 -309
- package/dist/{vue-ui-radar-68NMPxxQ.js → vue-ui-radar-DKgX1Ibx.js} +195 -180
- package/dist/{vue-ui-rating-swH9kRr3.js → vue-ui-rating-DlklKr-X.js} +2 -2
- package/dist/{vue-ui-relation-circle-CT-EdSjO.js → vue-ui-relation-circle-MHiAp8dC.js} +186 -171
- package/dist/{vue-ui-ridgeline-DftROPaX.js → vue-ui-ridgeline-DA8verAe.js} +227 -212
- package/dist/{vue-ui-rings-M-9dPI5D.js → vue-ui-rings-Dh6lFqun.js} +214 -202
- package/dist/{vue-ui-scatter-CsGhaFJh.js → vue-ui-scatter-CLC5sTOi.js} +270 -256
- package/dist/{vue-ui-skeleton-BAOt2neL.js → vue-ui-skeleton-8s4xts8z.js} +3 -3
- package/dist/{vue-ui-smiley-7_kIgPg-.js → vue-ui-smiley-utuzw8uI.js} +2 -2
- package/dist/{vue-ui-spark-trend-DHlQQpwz.js → vue-ui-spark-trend-BODEqGRr.js} +3 -3
- package/dist/{vue-ui-sparkbar-BnHhzuKf.js → vue-ui-sparkbar-B8MB-kn9.js} +3 -3
- package/dist/{vue-ui-sparkgauge-WtfkCK8g.js → vue-ui-sparkgauge-CuD7kTS3.js} +3 -3
- package/dist/{vue-ui-sparkhistogram-B2u4XLVd.js → vue-ui-sparkhistogram-BYJszvna.js} +4 -4
- package/dist/{vue-ui-sparkline-DKIyUlSm.js → vue-ui-sparkline-D77GyWzG.js} +3 -3
- package/dist/{vue-ui-sparkstackbar-BLGz2qIb.js → vue-ui-sparkstackbar-DNb1yD64.js} +3 -3
- package/dist/{vue-ui-stackbar-BDpMsTYe.js → vue-ui-stackbar-C6rjCYDD.js} +251 -236
- package/dist/{vue-ui-strip-plot-5qDcYPnR.js → vue-ui-strip-plot-B6cYojHQ.js} +239 -224
- package/dist/{vue-ui-table-Bg5HIQ3O.js → vue-ui-table-IC7SmWVd.js} +3 -3
- package/dist/{vue-ui-table-heatmap-DmjNy1q1.js → vue-ui-table-heatmap-DHFpJMpA.js} +5 -5
- package/dist/{vue-ui-table-sparkline-CnkJkBk5.js → vue-ui-table-sparkline-D7wz-sCj.js} +4 -4
- package/dist/{vue-ui-thermometer-RlD-9mJf.js → vue-ui-thermometer-D-oiVT3n.js} +168 -153
- package/dist/{vue-ui-timer-Bes74INL.js → vue-ui-timer-C9jVyX5l.js} +5 -5
- package/dist/vue-ui-tiremarks-B1bM9Aoo.js +358 -0
- package/dist/{vue-ui-treemap-BG1Omm38.js → vue-ui-treemap-DX48YlU5.js} +374 -362
- package/dist/{vue-ui-vertical-bar-CwqQyZFX.js → vue-ui-vertical-bar-6SjKPQWR.js} +252 -237
- package/dist/{vue-ui-waffle-Ce3T4BPp.js → vue-ui-waffle-CYao9MMw.js} +232 -220
- package/dist/vue-ui-wheel-USuDhMwW.js +352 -0
- package/dist/vue-ui-word-cloud-TOBTs7yF.js +659 -0
- package/dist/{vue-ui-world-B9PxVO4n.js → vue-ui-world-C2qikqBa.js} +237 -222
- package/dist/{vue-ui-xy-DtJ7qJib.js → vue-ui-xy-DxwgKoO-.js} +557 -544
- package/dist/{vue-ui-xy-canvas-S6YpFgzs.js → vue-ui-xy-canvas-N69OpVn8.js} +395 -380
- package/package.json +1 -1
- package/dist/vue-data-ui-B8EWlMIK.js +0 -301
- package/dist/vue-ui-tiremarks-DiLS3akQ.js +0 -343
- package/dist/vue-ui-wheel-6B0WTkf2.js +0 -337
- package/dist/vue-ui-word-cloud-ByYZCOh7.js +0 -644
|
@@ -1,16 +1,17 @@
|
|
|
1
|
-
import { defineAsyncComponent as G, computed as y, ref as
|
|
2
|
-
import { u as
|
|
3
|
-
import { t as
|
|
4
|
-
import { u as
|
|
5
|
-
import { u as
|
|
6
|
-
import { u as
|
|
7
|
-
import { u as
|
|
8
|
-
import
|
|
9
|
-
import
|
|
10
|
-
|
|
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-CobsZUkv.js";
|
|
3
|
+
import { t as st, u as ot } from "./useResponsive-DfdjqQps.js";
|
|
4
|
+
import { u as ze } from "./useNestedProp-BwL5wmVa.js";
|
|
5
|
+
import { u as ut } from "./usePrinter-DPh6U_Qk.js";
|
|
6
|
+
import { u as nt } from "./useUserOptionState-BIvW1Kz7.js";
|
|
7
|
+
import { u as it } from "./useChartAccessibility-9icAAmYg.js";
|
|
8
|
+
import ct from "./Title-DpERl1yr.js";
|
|
9
|
+
import vt from "./img-utitT2Gd.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 = {
|
|
11
12
|
key: 5,
|
|
12
13
|
class: "vue-data-ui-watermark"
|
|
13
|
-
},
|
|
14
|
+
}, qt = {
|
|
14
15
|
__name: "vue-ui-gauge",
|
|
15
16
|
props: {
|
|
16
17
|
config: {
|
|
@@ -26,33 +27,33 @@ const vt = ["id"], dt = { key: 0 }, ht = ["xmlns", "viewBox"], yt = ["width", "h
|
|
|
26
27
|
}
|
|
27
28
|
}
|
|
28
29
|
},
|
|
29
|
-
setup(L, { expose:
|
|
30
|
-
const Fe = G(() => import("./PenAndPaper-
|
|
30
|
+
setup(L, { expose: Ce }) {
|
|
31
|
+
const Fe = G(() => import("./PenAndPaper-Cde-wJ3N.js")), Oe = G(() => import("./vue-ui-skeleton-8s4xts8z.js")), Me = G(() => import("./UserOptions-DTEJ3UM_.js")), Pe = G(() => import("./PackageVersion-C-4Ee8BQ.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({
|
|
31
32
|
get: () => ie(),
|
|
32
33
|
set: (t) => t
|
|
33
|
-
}), { userOptionsVisible:
|
|
34
|
-
|
|
35
|
-
e.value = ie(),
|
|
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;
|
|
36
37
|
}, { deep: !0 });
|
|
37
38
|
function ie() {
|
|
38
|
-
const t =
|
|
39
|
+
const t = ze({
|
|
39
40
|
userConfig: d.config,
|
|
40
|
-
defaultConfig:
|
|
41
|
+
defaultConfig: Ne
|
|
41
42
|
});
|
|
42
43
|
return t.theme ? {
|
|
43
|
-
|
|
44
|
-
userConfig:
|
|
44
|
+
...ze({
|
|
45
|
+
userConfig: Qe.vue_ui_gauge[t.theme] || d.config,
|
|
45
46
|
defaultConfig: t
|
|
46
47
|
}),
|
|
47
|
-
customPalette:
|
|
48
|
+
customPalette: Ke[t.theme] || xe
|
|
48
49
|
} : t;
|
|
49
50
|
}
|
|
50
|
-
const { isPrinting: ce, isImaging: ve, generatePdf: de, generateImage: he } =
|
|
51
|
-
elementId: `vue-ui-gauge_${
|
|
51
|
+
const { isPrinting: ce, isImaging: ve, generatePdf: de, generateImage: he } = ut({
|
|
52
|
+
elementId: `vue-ui-gauge_${w.value}`,
|
|
52
53
|
fileName: e.value.style.chart.title.text || "vue-ui-gauge",
|
|
53
54
|
options: e.value.userOptions.print
|
|
54
|
-
}),
|
|
55
|
-
if (!
|
|
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 || {}))
|
|
56
57
|
return {
|
|
57
58
|
value: 0,
|
|
58
59
|
series: [
|
|
@@ -71,17 +72,17 @@ const vt = ["id"], dt = { key: 0 }, ht = ["xmlns", "viewBox"], yt = ["width", "h
|
|
|
71
72
|
...d.dataset,
|
|
72
73
|
series: (d.dataset.series || []).map((a, r) => ({
|
|
73
74
|
...a,
|
|
74
|
-
color:
|
|
75
|
+
color: tt(a.color) || Ye.value[r] || xe[r],
|
|
75
76
|
value: ((a.to || 0) - (a.from || 0)) / o * 100
|
|
76
77
|
}))
|
|
77
78
|
};
|
|
78
|
-
}),
|
|
79
|
+
}), b = m(512), l = m({
|
|
79
80
|
height: 358.4,
|
|
80
|
-
width:
|
|
81
|
+
width: b.value,
|
|
81
82
|
top: 0,
|
|
82
83
|
bottom: 358.4,
|
|
83
84
|
centerX: 179.2,
|
|
84
|
-
centerY:
|
|
85
|
+
centerY: b.value / 2,
|
|
85
86
|
labelFontSize: 18,
|
|
86
87
|
legendFontSize: e.value.style.chart.legend.fontSize,
|
|
87
88
|
pointerRadius: e.value.style.chart.layout.pointer.circle.radius,
|
|
@@ -90,14 +91,14 @@ const vt = ["id"], dt = { key: 0 }, ht = ["xmlns", "viewBox"], yt = ["width", "h
|
|
|
90
91
|
pointerStrokeWidth: e.value.style.chart.layout.pointer.strokeWidth,
|
|
91
92
|
markerOffset: e.value.style.chart.layout.markers.offsetY + 3,
|
|
92
93
|
segmentFontSize: e.value.style.chart.layout.segmentNames.fontSize
|
|
93
|
-
}),
|
|
94
|
+
}), N = m(0), $ = m(0), f = m(
|
|
94
95
|
e.value.style.chart.animation.use ? Math.min(...d.dataset.series.map((t) => t.from)) : d.dataset.value
|
|
95
96
|
);
|
|
96
|
-
|
|
97
|
-
|
|
97
|
+
be(() => d.dataset.value, () => {
|
|
98
|
+
me(d.dataset.value);
|
|
98
99
|
});
|
|
99
100
|
const i = y(() => {
|
|
100
|
-
const t = l.value.width / 2, o = v.value.base, a = Math.PI * ((f.value + 0 - $.value) / (
|
|
101
|
+
const t = l.value.width / 2, o = v.value.base, a = Math.PI * ((f.value + 0 - $.value) / (N.value - $.value)) + Math.PI;
|
|
101
102
|
return {
|
|
102
103
|
x1: t,
|
|
103
104
|
y1: o,
|
|
@@ -105,95 +106,95 @@ const vt = ["id"], dt = { key: 0 }, ht = ["xmlns", "viewBox"], yt = ["width", "h
|
|
|
105
106
|
y2: o + v.value.pointerSize * l.value.pointerSize * 0.9 * Math.sin(a)
|
|
106
107
|
};
|
|
107
108
|
}), ye = y(() => {
|
|
108
|
-
const t = l.value.width / 2, o = v.value.base, a = Math.PI * ((f.value + 0 - $.value) / (
|
|
109
|
-
return isNaN(r) ? null : `M ${r},${
|
|
110
|
-
}),
|
|
111
|
-
for (let t = 0; t <
|
|
112
|
-
const { color: o, from: a, to: r } =
|
|
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];
|
|
113
114
|
if (f.value >= a && f.value <= r)
|
|
114
115
|
return o;
|
|
115
116
|
}
|
|
116
117
|
return "#2D353C";
|
|
117
|
-
}), z =
|
|
118
|
+
}), z = _e(null), X = _e(null);
|
|
118
119
|
function fe() {
|
|
119
|
-
if (
|
|
120
|
+
if (Se(d.dataset) ? T({
|
|
120
121
|
componentName: "VueUiGauge",
|
|
121
122
|
type: "dataset"
|
|
122
|
-
}) : (
|
|
123
|
+
}) : ($e({
|
|
123
124
|
datasetObject: d.dataset,
|
|
124
125
|
requiredAttributes: ["value", "series"]
|
|
125
126
|
}).forEach((t) => {
|
|
126
|
-
|
|
127
|
+
T({
|
|
127
128
|
componentName: "VueUiGauge",
|
|
128
129
|
type: "datasetAttribute",
|
|
129
130
|
property: t
|
|
130
131
|
});
|
|
131
132
|
}), Object.hasOwn(d.dataset, "series") && (d.dataset.series.length ? d.dataset.series.forEach((t, o) => {
|
|
132
|
-
|
|
133
|
+
$e({
|
|
133
134
|
datasetObject: t,
|
|
134
135
|
requiredAttributes: ["from", "to"]
|
|
135
136
|
}).forEach((a) => {
|
|
136
|
-
|
|
137
|
+
T({
|
|
137
138
|
componentName: "VueUiGauge",
|
|
138
139
|
type: "datasetSerieAttribute",
|
|
139
140
|
property: a,
|
|
140
141
|
index: o
|
|
141
142
|
});
|
|
142
143
|
});
|
|
143
|
-
}) :
|
|
144
|
+
}) : T({
|
|
144
145
|
componentName: "VueUiGauge",
|
|
145
146
|
type: "datasetAttributeEmpty",
|
|
146
147
|
property: "series"
|
|
147
|
-
}))),
|
|
148
|
-
const t =
|
|
149
|
-
const { width: o, height: a } =
|
|
150
|
-
chart:
|
|
148
|
+
}))), me(d.dataset.value || 0), e.value.responsive) {
|
|
149
|
+
const t = st(() => {
|
|
150
|
+
const { width: o, height: a } = ot({
|
|
151
|
+
chart: F.value,
|
|
151
152
|
title: e.value.style.chart.title.text ? te.value : null,
|
|
152
153
|
legend: ae.value,
|
|
153
154
|
source: le.value,
|
|
154
155
|
noTitle: re.value
|
|
155
156
|
});
|
|
156
157
|
requestAnimationFrame(() => {
|
|
157
|
-
l.value.width = o, l.value.height = a, l.value.centerX = o / 2, l.value.centerY =
|
|
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({
|
|
158
159
|
relator: Math.min(o, a),
|
|
159
|
-
adjuster:
|
|
160
|
+
adjuster: b.value,
|
|
160
161
|
source: e.value.style.chart.layout.pointer.strokeWidth,
|
|
161
162
|
threshold: 2,
|
|
162
163
|
fallback: 2
|
|
163
164
|
}), l.value.markerOffset = Q({
|
|
164
165
|
relator: Math.max(o, a),
|
|
165
|
-
adjuster:
|
|
166
|
+
adjuster: b.value,
|
|
166
167
|
source: e.value.style.chart.layout.markers.offsetY + 3,
|
|
167
168
|
threshold: 2,
|
|
168
169
|
fallback: 2
|
|
169
170
|
}), l.value.segmentFontSize = Q({
|
|
170
171
|
relator: Math.min(o, a),
|
|
171
|
-
adjuster:
|
|
172
|
+
adjuster: b.value,
|
|
172
173
|
source: e.value.style.chart.layout.segmentNames.fontSize,
|
|
173
174
|
threshold: 8,
|
|
174
175
|
fallback: 8
|
|
175
176
|
});
|
|
176
177
|
});
|
|
177
178
|
});
|
|
178
|
-
z.value && (
|
|
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);
|
|
179
180
|
}
|
|
180
181
|
}
|
|
181
182
|
De(() => {
|
|
182
183
|
fe();
|
|
183
|
-
}),
|
|
184
|
-
z.value && (
|
|
184
|
+
}), Ve(() => {
|
|
185
|
+
z.value && (X.value && z.value.unobserve(X.value), z.value.disconnect());
|
|
185
186
|
});
|
|
186
|
-
function
|
|
187
|
+
function me(t) {
|
|
187
188
|
const o = [];
|
|
188
|
-
(
|
|
189
|
-
o.push(
|
|
190
|
-
}),
|
|
189
|
+
(O.value.series || []).forEach((_) => {
|
|
190
|
+
o.push(_.from || 0), o.push(_.to || 0);
|
|
191
|
+
}), N.value = Math.max(...o), $.value = Math.min(...o);
|
|
191
192
|
let a = e.value.style.chart.animation.speed;
|
|
192
193
|
const r = Math.abs(t - f.value) / (a * 60);
|
|
193
|
-
function
|
|
194
|
-
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(
|
|
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);
|
|
195
196
|
}
|
|
196
|
-
|
|
197
|
+
p();
|
|
197
198
|
}
|
|
198
199
|
const v = y(() => {
|
|
199
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;
|
|
@@ -205,7 +206,7 @@ const vt = ["id"], dt = { key: 0 }, ht = ["xmlns", "viewBox"], yt = ["width", "h
|
|
|
205
206
|
pointerSize: e.value.responsive ? Math.min(l.value.width, l.value.height) / 3 : l.value.width / 3.2
|
|
206
207
|
};
|
|
207
208
|
}), h = y(() => H(
|
|
208
|
-
{ series:
|
|
209
|
+
{ series: O.value.series },
|
|
209
210
|
l.value.width / 2,
|
|
210
211
|
v.value.base,
|
|
211
212
|
v.value.arcs,
|
|
@@ -216,8 +217,8 @@ const vt = ["id"], dt = { key: 0 }, ht = ["xmlns", "viewBox"], yt = ["width", "h
|
|
|
216
217
|
180,
|
|
217
218
|
109.9495,
|
|
218
219
|
40 * l.value.trackSize
|
|
219
|
-
)),
|
|
220
|
-
{ series:
|
|
220
|
+
)), Ae = y(() => H(
|
|
221
|
+
{ series: O.value.series },
|
|
221
222
|
l.value.width / 2,
|
|
222
223
|
v.value.base,
|
|
223
224
|
v.value.arcs * e.value.style.chart.layout.segmentNames.offsetRatio,
|
|
@@ -228,14 +229,14 @@ const vt = ["id"], dt = { key: 0 }, ht = ["xmlns", "viewBox"], yt = ["width", "h
|
|
|
228
229
|
180,
|
|
229
230
|
109.9495,
|
|
230
231
|
40 * l.value.trackSize
|
|
231
|
-
)),
|
|
232
|
-
const { x: t, y: o } =
|
|
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({
|
|
233
234
|
initX: h.value[0].firstSeparator.x,
|
|
234
235
|
initY: h.value[0].firstSeparator.y,
|
|
235
236
|
centerX: i.value.x1,
|
|
236
237
|
centerY: i.value.y1,
|
|
237
238
|
offset: -e.value.style.chart.layout.segmentSeparators.offsetIn
|
|
238
|
-
}), { x: a, y: r } =
|
|
239
|
+
}), { x: a, y: r } = C({
|
|
239
240
|
initX: h.value[0].startX,
|
|
240
241
|
initY: h.value[0].startY,
|
|
241
242
|
centerX: i.value.x1,
|
|
@@ -244,30 +245,30 @@ const vt = ["id"], dt = { key: 0 }, ht = ["xmlns", "viewBox"], yt = ["width", "h
|
|
|
244
245
|
});
|
|
245
246
|
return { x1: t, y1: o, x2: a, y2: r };
|
|
246
247
|
}), ge = y(() => h.value.map((t) => {
|
|
247
|
-
const { x: o, y: a } =
|
|
248
|
+
const { x: o, y: a } = C({
|
|
248
249
|
initX: t.separator.x,
|
|
249
250
|
initY: t.separator.y,
|
|
250
251
|
centerX: i.value.x1,
|
|
251
252
|
centerY: i.value.y1,
|
|
252
253
|
offset: -e.value.style.chart.layout.segmentSeparators.offsetIn
|
|
253
|
-
}), { x: r, y:
|
|
254
|
+
}), { x: r, y: p } = C({
|
|
254
255
|
initX: t.endX,
|
|
255
256
|
initY: t.endY,
|
|
256
257
|
centerX: i.value.x1,
|
|
257
258
|
centerY: i.value.y1,
|
|
258
259
|
offset: e.value.style.chart.layout.segmentSeparators.offsetOut
|
|
259
260
|
});
|
|
260
|
-
return { x1: o, y1: a, x2: r, y2:
|
|
261
|
+
return { x1: o, y1: a, x2: r, y2: p };
|
|
261
262
|
}));
|
|
262
|
-
function
|
|
263
|
-
if (t.reduce((
|
|
263
|
+
function Re(t) {
|
|
264
|
+
if (t.reduce((p, _) => p + _, 0) > 100)
|
|
264
265
|
throw new Error("Total % must not exceed 100");
|
|
265
266
|
const a = 50;
|
|
266
267
|
let r = 0;
|
|
267
|
-
return t.map((
|
|
268
|
+
return t.map((p) => (r += p, `${r / 100 * a - p / 4}%`));
|
|
268
269
|
}
|
|
269
|
-
const
|
|
270
|
-
{ series:
|
|
270
|
+
const Ee = y(() => Re(h.value.map((t) => t.proportion * 100))), Ge = y(() => H(
|
|
271
|
+
{ series: O.value.series },
|
|
271
272
|
l.value.width / 2,
|
|
272
273
|
v.value.base,
|
|
273
274
|
v.value.gradients,
|
|
@@ -278,38 +279,52 @@ const vt = ["id"], dt = { key: 0 }, ht = ["xmlns", "viewBox"], yt = ["width", "h
|
|
|
278
279
|
180,
|
|
279
280
|
110.02,
|
|
280
281
|
2 * l.value.trackSize
|
|
281
|
-
)),
|
|
282
|
+
)), Ue = y(() => {
|
|
282
283
|
const t = $.value >= 0 ? -$.value : Math.abs($.value);
|
|
283
|
-
return
|
|
284
|
+
return at(
|
|
284
285
|
{
|
|
285
286
|
radius: e.value.style.chart.layout.indicatorArc.radius * l.value.trackSize,
|
|
286
287
|
centerX: l.value.width / 2,
|
|
287
288
|
centerY: v.value.base,
|
|
288
|
-
percentage: (f.value + t) / (
|
|
289
|
+
percentage: (f.value + t) / (N.value + t)
|
|
289
290
|
}
|
|
290
291
|
);
|
|
291
|
-
}),
|
|
292
|
-
function
|
|
293
|
-
|
|
292
|
+
}), Y = m(!1);
|
|
293
|
+
function ke(t) {
|
|
294
|
+
Y.value = t, ee.value += 1;
|
|
294
295
|
}
|
|
295
|
-
const E =
|
|
296
|
+
const E = m(!1);
|
|
296
297
|
function V() {
|
|
297
298
|
E.value = !E.value;
|
|
298
299
|
}
|
|
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,
|
|
300
314
|
generatePdf: de,
|
|
301
315
|
generateImage: he,
|
|
302
|
-
toggleAnnotator: V
|
|
316
|
+
toggleAnnotator: V,
|
|
317
|
+
toggleFullscreen: ke
|
|
303
318
|
}), (t, o) => (s(), u("div", {
|
|
304
|
-
class:
|
|
319
|
+
class: we(`vue-ui-gauge ${Y.value ? "vue-data-ui-wrapper-fullscreen" : ""}`),
|
|
305
320
|
ref_key: "gaugeChart",
|
|
306
|
-
ref:
|
|
307
|
-
id: `vue-ui-gauge_${
|
|
321
|
+
ref: F,
|
|
322
|
+
id: `vue-ui-gauge_${w.value}`,
|
|
308
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%" : ""}`),
|
|
309
324
|
onMouseenter: o[0] || (o[0] = () => n(oe)(!0)),
|
|
310
325
|
onMouseleave: o[1] || (o[1] = () => n(oe)(!1))
|
|
311
326
|
}, [
|
|
312
|
-
e.value.userOptions.buttons.annotator ? (s(),
|
|
327
|
+
e.value.userOptions.buttons.annotator ? (s(), U(n(Fe), {
|
|
313
328
|
key: 0,
|
|
314
329
|
svgRef: n(ne),
|
|
315
330
|
backgroundColor: e.value.style.chart.backgroundColor,
|
|
@@ -317,7 +332,7 @@ const vt = ["id"], dt = { key: 0 }, ht = ["xmlns", "viewBox"], yt = ["width", "h
|
|
|
317
332
|
active: E.value,
|
|
318
333
|
onClose: V
|
|
319
334
|
}, null, 8, ["svgRef", "backgroundColor", "color", "active"])) : c("", !0),
|
|
320
|
-
|
|
335
|
+
Ie.value ? (s(), u("div", {
|
|
321
336
|
key: 1,
|
|
322
337
|
ref_key: "noTitle",
|
|
323
338
|
ref: re,
|
|
@@ -330,7 +345,7 @@ const vt = ["id"], dt = { key: 0 }, ht = ["xmlns", "viewBox"], yt = ["width", "h
|
|
|
330
345
|
ref: te,
|
|
331
346
|
style: "width:100%;background:transparent;padding-bottom:12px"
|
|
332
347
|
}, [
|
|
333
|
-
(s(),
|
|
348
|
+
(s(), U(ct, {
|
|
334
349
|
key: `title_${se.value}`,
|
|
335
350
|
config: {
|
|
336
351
|
title: {
|
|
@@ -343,87 +358,87 @@ const vt = ["id"], dt = { key: 0 }, ht = ["xmlns", "viewBox"], yt = ["width", "h
|
|
|
343
358
|
}
|
|
344
359
|
}
|
|
345
360
|
}, {
|
|
346
|
-
default:
|
|
347
|
-
e.value.translations.base && L.dataset.base ? (s(), u("span",
|
|
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)
|
|
348
363
|
]),
|
|
349
364
|
_: 1
|
|
350
365
|
}, 8, ["config"]))
|
|
351
366
|
], 512)) : c("", !0),
|
|
352
|
-
e.value.userOptions.show &&
|
|
367
|
+
e.value.userOptions.show && R.value && (n(ue) || n(B)) ? (s(), U(n(Me), {
|
|
353
368
|
ref_key: "details",
|
|
354
|
-
ref:
|
|
369
|
+
ref: Xe,
|
|
355
370
|
key: `user_options_${ee.value}`,
|
|
356
371
|
backgroundColor: e.value.style.chart.backgroundColor,
|
|
357
372
|
color: e.value.style.chart.color,
|
|
358
373
|
isImaging: n(ve),
|
|
359
374
|
isPrinting: n(ce),
|
|
360
|
-
uid:
|
|
375
|
+
uid: w.value,
|
|
361
376
|
hasXls: !1,
|
|
362
377
|
hasPdf: e.value.userOptions.buttons.pdf,
|
|
363
378
|
hasImg: e.value.userOptions.buttons.img,
|
|
364
379
|
hasFullscreen: e.value.userOptions.buttons.fullscreen,
|
|
365
|
-
isFullscreen:
|
|
380
|
+
isFullscreen: Y.value,
|
|
366
381
|
titles: { ...e.value.userOptions.buttonTitles },
|
|
367
|
-
chartElement:
|
|
382
|
+
chartElement: F.value,
|
|
368
383
|
callbacks: e.value.userOptions.callbacks,
|
|
369
384
|
printScale: e.value.userOptions.print.scale,
|
|
370
385
|
position: e.value.userOptions.position,
|
|
371
386
|
hasAnnotator: e.value.userOptions.buttons.annotator,
|
|
372
387
|
isAnnotation: E.value,
|
|
373
|
-
onToggleFullscreen:
|
|
388
|
+
onToggleFullscreen: ke,
|
|
374
389
|
onGeneratePdf: n(de),
|
|
375
390
|
onGenerateImage: n(he),
|
|
376
391
|
onToggleAnnotator: V,
|
|
377
392
|
style: q({
|
|
378
|
-
visibility: n(ue) ? n(
|
|
393
|
+
visibility: n(ue) ? n(B) ? "visible" : "hidden" : "visible"
|
|
379
394
|
})
|
|
380
|
-
},
|
|
395
|
+
}, qe({ _: 2 }, [
|
|
381
396
|
t.$slots.menuIcon ? {
|
|
382
397
|
name: "menuIcon",
|
|
383
|
-
fn:
|
|
384
|
-
x(t.$slots, "menuIcon", j(
|
|
398
|
+
fn: I(({ isOpen: a, color: r }) => [
|
|
399
|
+
x(t.$slots, "menuIcon", W(j({ isOpen: a, color: r })), void 0, !0)
|
|
385
400
|
]),
|
|
386
401
|
key: "0"
|
|
387
402
|
} : void 0,
|
|
388
403
|
t.$slots.optionPdf ? {
|
|
389
404
|
name: "optionPdf",
|
|
390
|
-
fn:
|
|
405
|
+
fn: I(() => [
|
|
391
406
|
x(t.$slots, "optionPdf", {}, void 0, !0)
|
|
392
407
|
]),
|
|
393
408
|
key: "1"
|
|
394
409
|
} : void 0,
|
|
395
410
|
t.$slots.optionImg ? {
|
|
396
411
|
name: "optionImg",
|
|
397
|
-
fn:
|
|
412
|
+
fn: I(() => [
|
|
398
413
|
x(t.$slots, "optionImg", {}, void 0, !0)
|
|
399
414
|
]),
|
|
400
415
|
key: "2"
|
|
401
416
|
} : void 0,
|
|
402
417
|
t.$slots.optionFullscreen ? {
|
|
403
418
|
name: "optionFullscreen",
|
|
404
|
-
fn:
|
|
405
|
-
x(t.$slots, "optionFullscreen", j(
|
|
419
|
+
fn: I(({ toggleFullscreen: a, isFullscreen: r }) => [
|
|
420
|
+
x(t.$slots, "optionFullscreen", W(j({ toggleFullscreen: a, isFullscreen: r })), void 0, !0)
|
|
406
421
|
]),
|
|
407
422
|
key: "3"
|
|
408
423
|
} : void 0,
|
|
409
424
|
t.$slots.optionAnnotator ? {
|
|
410
425
|
name: "optionAnnotator",
|
|
411
|
-
fn:
|
|
412
|
-
x(t.$slots, "optionAnnotator", j(
|
|
426
|
+
fn: I(({ toggleAnnotator: a, isAnnotator: r }) => [
|
|
427
|
+
x(t.$slots, "optionAnnotator", W(j({ toggleAnnotator: a, isAnnotator: r })), void 0, !0)
|
|
413
428
|
]),
|
|
414
429
|
key: "4"
|
|
415
430
|
} : void 0
|
|
416
431
|
]), 1032, ["backgroundColor", "color", "isImaging", "isPrinting", "uid", "hasPdf", "hasImg", "hasFullscreen", "isFullscreen", "titles", "chartElement", "callbacks", "printScale", "position", "hasAnnotator", "isAnnotation", "onGeneratePdf", "onGenerateImage", "style"])) : c("", !0),
|
|
417
|
-
|
|
432
|
+
R.value ? (s(), u("svg", {
|
|
418
433
|
key: 4,
|
|
419
434
|
ref_key: "svgRef",
|
|
420
435
|
ref: ne,
|
|
421
|
-
xmlns: n(
|
|
422
|
-
class:
|
|
436
|
+
xmlns: n(lt),
|
|
437
|
+
class: we({ "vue-data-ui-fullscreen--on": Y.value, "vue-data-ui-fulscreen--off": !Y.value }),
|
|
423
438
|
viewBox: `0 0 ${l.value.width <= 0 ? 10 : l.value.width} ${l.value.height <= 0 ? 10 : l.value.height}`,
|
|
424
439
|
style: q(`max-width:100%;overflow:hidden !important;background:transparent;color:${e.value.style.chart.color}`)
|
|
425
440
|
}, [
|
|
426
|
-
|
|
441
|
+
He(n(Pe)),
|
|
427
442
|
t.$slots["chart-background"] ? (s(), u("foreignObject", {
|
|
428
443
|
key: 0,
|
|
429
444
|
x: 0,
|
|
@@ -435,134 +450,134 @@ const vt = ["id"], dt = { key: 0 }, ht = ["xmlns", "viewBox"], yt = ["width", "h
|
|
|
435
450
|
}
|
|
436
451
|
}, [
|
|
437
452
|
x(t.$slots, "chart-background", {}, void 0, !0)
|
|
438
|
-
], 8,
|
|
439
|
-
|
|
440
|
-
|
|
441
|
-
id: `gradient_${
|
|
453
|
+
], 8, mt)) : c("", !0),
|
|
454
|
+
g("defs", null, [
|
|
455
|
+
g("radialGradient", {
|
|
456
|
+
id: `gradient_${w.value}`,
|
|
442
457
|
cx: "50%",
|
|
443
458
|
cy: "50%",
|
|
444
459
|
r: "50%",
|
|
445
460
|
fx: "50%",
|
|
446
461
|
fy: "50%"
|
|
447
462
|
}, [
|
|
448
|
-
|
|
463
|
+
g("stop", {
|
|
449
464
|
offset: "0%",
|
|
450
465
|
"stop-color": n(Z)("#FFFFFF", 1)
|
|
451
|
-
}, null, 8,
|
|
452
|
-
|
|
466
|
+
}, null, 8, gt),
|
|
467
|
+
g("stop", {
|
|
453
468
|
offset: "80%",
|
|
454
469
|
"stop-color": n(Z)("#FFFFFF", e.value.style.chart.layout.track.gradientIntensity)
|
|
455
|
-
}, null, 8,
|
|
456
|
-
|
|
470
|
+
}, null, 8, kt),
|
|
471
|
+
g("stop", {
|
|
457
472
|
offset: "100%",
|
|
458
473
|
"stop-color": n(Z)("#FFFFFF", 1)
|
|
459
|
-
}, null, 8,
|
|
460
|
-
], 8,
|
|
474
|
+
}, null, 8, bt)
|
|
475
|
+
], 8, pt)
|
|
461
476
|
]),
|
|
462
|
-
|
|
463
|
-
|
|
464
|
-
id: `blur_${
|
|
477
|
+
g("defs", null, [
|
|
478
|
+
g("filter", {
|
|
479
|
+
id: `blur_${w.value}`,
|
|
465
480
|
x: "-50%",
|
|
466
481
|
y: "-50%",
|
|
467
482
|
width: "200%",
|
|
468
483
|
height: "200%"
|
|
469
484
|
}, [
|
|
470
|
-
|
|
485
|
+
g("feGaussianBlur", {
|
|
471
486
|
in: "SourceGraphic",
|
|
472
487
|
stdDeviation: 100 / e.value.style.chart.layout.track.gradientIntensity
|
|
473
|
-
}, null, 8,
|
|
474
|
-
], 8,
|
|
488
|
+
}, null, 8, wt)
|
|
489
|
+
], 8, _t)
|
|
475
490
|
]),
|
|
476
|
-
t.$slots.pattern ? (s(), u("g",
|
|
477
|
-
(s(!0), u(
|
|
478
|
-
x(t.$slots, "pattern",
|
|
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)
|
|
479
494
|
]))), 256))
|
|
480
495
|
])) : c("", !0),
|
|
481
|
-
(s(!0), u(
|
|
496
|
+
(s(!0), u(k, null, S(h.value, (a, r) => (s(), u("path", {
|
|
482
497
|
key: `arc_${r}`,
|
|
483
498
|
d: a.arcSlice,
|
|
484
499
|
fill: a.color,
|
|
485
500
|
stroke: e.value.style.chart.backgroundColor,
|
|
486
501
|
"stroke-linecap": "round"
|
|
487
|
-
}, null, 8,
|
|
488
|
-
t.$slots.pattern ? (s(!0), u(
|
|
502
|
+
}, null, 8, St))), 128)),
|
|
503
|
+
t.$slots.pattern ? (s(!0), u(k, { key: 2 }, S(h.value, (a, r) => (s(), u("path", {
|
|
489
504
|
key: `arc_${r}`,
|
|
490
505
|
d: a.arcSlice,
|
|
491
|
-
fill: `url(#pattern_${
|
|
506
|
+
fill: `url(#pattern_${w.value}_${r})`,
|
|
492
507
|
stroke: e.value.style.chart.backgroundColor,
|
|
493
508
|
"stroke-linecap": "round"
|
|
494
|
-
}, null, 8,
|
|
509
|
+
}, null, 8, $t))), 128)) : c("", !0),
|
|
495
510
|
e.value.style.chart.layout.indicatorArc.show ? (s(), u("path", {
|
|
496
511
|
key: 3,
|
|
497
|
-
d:
|
|
512
|
+
d: Ue.value,
|
|
498
513
|
fill: e.value.style.chart.layout.indicatorArc.fill
|
|
499
|
-
}, null, 8,
|
|
500
|
-
e.value.style.chart.layout.segmentNames.show && e.value.style.chart.layout.segmentNames.curved ? (s(), u(
|
|
501
|
-
(s(!0), u(
|
|
502
|
-
id: `curve_${
|
|
503
|
-
d: `M ${i.value.x1},${i.value.y1} m -${
|
|
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`,
|
|
504
519
|
fill: "transparent"
|
|
505
|
-
}, null, 8,
|
|
506
|
-
(s(!0), u(
|
|
520
|
+
}, null, 8, Ct))), 256)),
|
|
521
|
+
(s(!0), u(k, null, S(h.value, (a, r) => (s(), u("text", {
|
|
507
522
|
fill: e.value.style.chart.layout.segmentNames.useSerieColor ? a.color : e.value.style.chart.layout.segmentNames.color,
|
|
508
523
|
"font-size": l.value.segmentFontSize,
|
|
509
524
|
"font-weight": e.value.style.chart.layout.segmentNames.bold ? "bold" : "normal",
|
|
510
525
|
"text-anchor": "middle"
|
|
511
526
|
}, [
|
|
512
|
-
|
|
513
|
-
href: `#curve_${
|
|
514
|
-
startOffset:
|
|
515
|
-
},
|
|
516
|
-
], 8,
|
|
527
|
+
g("textPath", {
|
|
528
|
+
href: `#curve_${w.value}_${r}`,
|
|
529
|
+
startOffset: Ee.value[r]
|
|
530
|
+
}, P(a.name || ""), 9, Ot)
|
|
531
|
+
], 8, Ft))), 256))
|
|
517
532
|
], 64)) : c("", !0),
|
|
518
|
-
e.value.style.chart.layout.segmentNames.show && !e.value.style.chart.layout.segmentNames.curved ? (s(!0), u(
|
|
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", {
|
|
519
534
|
x: a.center.endX,
|
|
520
535
|
y: a.center.endY,
|
|
521
|
-
"text-anchor": n(
|
|
536
|
+
"text-anchor": n(rt)(a, !1, 12).anchor,
|
|
522
537
|
fill: e.value.style.chart.layout.segmentNames.useSerieColor ? a.color : e.value.style.chart.layout.segmentNames.color,
|
|
523
538
|
"font-size": l.value.segmentFontSize,
|
|
524
539
|
"font-weight": e.value.style.chart.layout.segmentNames.bold ? "bold" : "normal"
|
|
525
|
-
},
|
|
526
|
-
e.value.style.chart.layout.track.useGradient ? (s(!0), u(
|
|
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", {
|
|
527
542
|
key: `arc_${r}`,
|
|
528
543
|
d: a.arcSlice,
|
|
529
544
|
fill: "#FFFFFF",
|
|
530
545
|
stroke: "none",
|
|
531
546
|
"stroke-linecap": "round",
|
|
532
|
-
filter: `url(#blur_${
|
|
533
|
-
}, null, 8,
|
|
534
|
-
e.value.style.chart.layout.segmentSeparators.show ? (s(), u(
|
|
535
|
-
|
|
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, {
|
|
536
551
|
stroke: e.value.style.chart.backgroundColor,
|
|
537
552
|
"stroke-width": e.value.style.chart.layout.segmentSeparators.strokeWidth + 2,
|
|
538
553
|
"stroke-linecap": "round"
|
|
539
|
-
}), null, 16,
|
|
540
|
-
|
|
554
|
+
}), null, 16, Nt),
|
|
555
|
+
g("line", A(pe.value, {
|
|
541
556
|
stroke: e.value.style.chart.layout.segmentSeparators.stroke,
|
|
542
557
|
"stroke-width": e.value.style.chart.layout.segmentSeparators.strokeWidth,
|
|
543
558
|
"stroke-linecap": "round"
|
|
544
|
-
}), null, 16,
|
|
545
|
-
(s(!0), u(
|
|
559
|
+
}), null, 16, Xt),
|
|
560
|
+
(s(!0), u(k, null, S(ge.value, (a) => (s(), u("line", A({ ref_for: !0 }, a, {
|
|
546
561
|
stroke: e.value.style.chart.backgroundColor,
|
|
547
562
|
"stroke-width": e.value.style.chart.layout.segmentSeparators.strokeWidth + 2,
|
|
548
563
|
"stroke-linecap": "round"
|
|
549
|
-
}), null, 16,
|
|
550
|
-
(s(!0), u(
|
|
564
|
+
}), null, 16, It))), 256)),
|
|
565
|
+
(s(!0), u(k, null, S(ge.value, (a) => (s(), u("line", A({ ref_for: !0 }, a, {
|
|
551
566
|
stroke: e.value.style.chart.layout.segmentSeparators.stroke,
|
|
552
567
|
"stroke-width": e.value.style.chart.layout.segmentSeparators.strokeWidth,
|
|
553
568
|
"stroke-linecap": "round"
|
|
554
|
-
}), null, 16,
|
|
569
|
+
}), null, 16, Yt))), 256))
|
|
555
570
|
], 64)) : c("", !0),
|
|
556
|
-
e.value.style.chart.layout.markers.show ? (s(), u("g",
|
|
557
|
-
(s(!0), u(
|
|
558
|
-
x: n(
|
|
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)({
|
|
559
574
|
centerX: i.value.x1,
|
|
560
575
|
centerY: v.value.base,
|
|
561
576
|
initX: a.center.startX,
|
|
562
577
|
initY: a.center.startY,
|
|
563
578
|
offset: l.value.markerOffset
|
|
564
579
|
}).x,
|
|
565
|
-
y: n(
|
|
580
|
+
y: n(C)({
|
|
566
581
|
centerX: i.value.x1,
|
|
567
582
|
centerY: v.value.base,
|
|
568
583
|
initX: a.center.startX,
|
|
@@ -573,7 +588,7 @@ const vt = ["id"], dt = { key: 0 }, ht = ["xmlns", "viewBox"], yt = ["width", "h
|
|
|
573
588
|
"font-size": l.value.labelFontSize * e.value.style.chart.layout.markers.fontSizeRatio,
|
|
574
589
|
"font-weight": `${e.value.style.chart.layout.markers.bold ? "bold" : "normal"}`,
|
|
575
590
|
fill: e.value.style.chart.layout.markers.color
|
|
576
|
-
},
|
|
591
|
+
}, P(n(J)(
|
|
577
592
|
e.value.style.chart.layout.markers.formatter,
|
|
578
593
|
a.from,
|
|
579
594
|
n(K)({
|
|
@@ -582,18 +597,18 @@ const vt = ["id"], dt = { key: 0 }, ht = ["xmlns", "viewBox"], yt = ["width", "h
|
|
|
582
597
|
s: e.value.style.chart.layout.markers.suffix,
|
|
583
598
|
r: e.value.style.chart.layout.markers.roundingValue
|
|
584
599
|
})
|
|
585
|
-
)), 9,
|
|
600
|
+
)), 9, Rt))), 256))
|
|
586
601
|
])) : c("", !0),
|
|
587
602
|
e.value.style.chart.layout.markers.show ? (s(), u("text", {
|
|
588
603
|
key: 9,
|
|
589
|
-
x: n(
|
|
604
|
+
x: n(C)({
|
|
590
605
|
centerX: l.value.width / 2,
|
|
591
606
|
centerY: v.value.base,
|
|
592
607
|
initX: h.value.at(-1).endX,
|
|
593
608
|
initY: h.value.at(-1).endY,
|
|
594
609
|
offset: l.value.markerOffset
|
|
595
610
|
}).x,
|
|
596
|
-
y: n(
|
|
611
|
+
y: n(C)({
|
|
597
612
|
centerX: l.value.width / 2,
|
|
598
613
|
centerY: v.value.base,
|
|
599
614
|
initX: h.value.at(-1).endX,
|
|
@@ -604,18 +619,18 @@ const vt = ["id"], dt = { key: 0 }, ht = ["xmlns", "viewBox"], yt = ["width", "h
|
|
|
604
619
|
"font-size": l.value.labelFontSize * e.value.style.chart.layout.markers.fontSizeRatio,
|
|
605
620
|
"font-weight": `${e.value.style.chart.layout.markers.bold ? "bold" : "normal"}`,
|
|
606
621
|
fill: e.value.style.chart.layout.markers.color
|
|
607
|
-
},
|
|
622
|
+
}, P(n(J)(
|
|
608
623
|
e.value.style.chart.layout.markers.formatter,
|
|
609
|
-
|
|
624
|
+
N.value,
|
|
610
625
|
n(K)({
|
|
611
626
|
p: e.value.style.chart.layout.markers.prefix,
|
|
612
|
-
v:
|
|
627
|
+
v: N.value,
|
|
613
628
|
s: e.value.style.chart.layout.markers.suffix,
|
|
614
629
|
r: e.value.style.chart.layout.markers.roundingValue
|
|
615
630
|
})
|
|
616
|
-
)), 9,
|
|
617
|
-
e.value.style.chart.layout.pointer.show ? (s(), u(
|
|
618
|
-
e.value.style.chart.layout.pointer.type === "rounded" ? (s(), u("g",
|
|
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, [
|
|
619
634
|
isNaN(i.value.x2) ? c("", !0) : (s(), u("line", {
|
|
620
635
|
key: 0,
|
|
621
636
|
x1: i.value.x1,
|
|
@@ -625,17 +640,17 @@ const vt = ["id"], dt = { key: 0 }, ht = ["xmlns", "viewBox"], yt = ["width", "h
|
|
|
625
640
|
stroke: e.value.style.chart.layout.pointer.stroke,
|
|
626
641
|
"stroke-width": l.value.pointerStrokeWidth,
|
|
627
642
|
"stroke-linecap": "round"
|
|
628
|
-
}, null, 8,
|
|
643
|
+
}, null, 8, Ut)),
|
|
629
644
|
isNaN(i.value.x2) ? c("", !0) : (s(), u("line", {
|
|
630
645
|
key: 1,
|
|
631
646
|
x1: i.value.x1,
|
|
632
647
|
y1: i.value.y1,
|
|
633
648
|
x2: i.value.x2,
|
|
634
649
|
y2: i.value.y2,
|
|
635
|
-
stroke: e.value.style.chart.layout.pointer.useRatingColor ?
|
|
650
|
+
stroke: e.value.style.chart.layout.pointer.useRatingColor ? D.value : e.value.style.chart.layout.pointer.color,
|
|
636
651
|
"stroke-linecap": "round",
|
|
637
652
|
"stroke-width": l.value.pointerStrokeWidth * 0.7
|
|
638
|
-
}, null, 8,
|
|
653
|
+
}, null, 8, Wt)),
|
|
639
654
|
!isNaN(i.value.x2) && e.value.style.chart.layout.track.useGradient ? (s(), u("line", {
|
|
640
655
|
key: 2,
|
|
641
656
|
x1: i.value.x1,
|
|
@@ -645,26 +660,26 @@ const vt = ["id"], dt = { key: 0 }, ht = ["xmlns", "viewBox"], yt = ["width", "h
|
|
|
645
660
|
stroke: "white",
|
|
646
661
|
"stroke-linecap": "round",
|
|
647
662
|
"stroke-width": l.value.pointerStrokeWidth * 0.3,
|
|
648
|
-
filter: `url(#blur_${
|
|
649
|
-
}, null, 8,
|
|
650
|
-
])) : (s(), u("g",
|
|
663
|
+
filter: `url(#blur_${w.value})`
|
|
664
|
+
}, null, 8, jt)) : c("", !0)
|
|
665
|
+
])) : (s(), u("g", Tt, [
|
|
651
666
|
ye.value ? (s(), u("path", {
|
|
652
667
|
key: 0,
|
|
653
668
|
d: ye.value,
|
|
654
|
-
fill: e.value.style.chart.layout.pointer.useRatingColor ?
|
|
669
|
+
fill: e.value.style.chart.layout.pointer.useRatingColor ? D.value : e.value.style.chart.layout.pointer.color,
|
|
655
670
|
stroke: e.value.style.chart.layout.pointer.stroke,
|
|
656
671
|
"stroke-width": e.value.style.chart.layout.pointer.circle.strokeWidth,
|
|
657
672
|
"stroke-linejoin": "round"
|
|
658
|
-
}, null, 8,
|
|
673
|
+
}, null, 8, Lt)) : c("", !0)
|
|
659
674
|
])),
|
|
660
|
-
|
|
675
|
+
g("circle", {
|
|
661
676
|
cx: l.value.width / 2,
|
|
662
677
|
cy: v.value.base,
|
|
663
678
|
fill: e.value.style.chart.layout.pointer.circle.color,
|
|
664
679
|
r: l.value.pointerRadius <= 0 ? 1e-4 : l.value.pointerRadius,
|
|
665
680
|
"stroke-width": e.value.style.chart.layout.pointer.circle.strokeWidth,
|
|
666
681
|
stroke: e.value.style.chart.layout.pointer.circle.stroke
|
|
667
|
-
}, null, 8,
|
|
682
|
+
}, null, 8, Bt)
|
|
668
683
|
], 64)) : c("", !0),
|
|
669
684
|
e.value.style.chart.legend.show ? (s(), u("text", {
|
|
670
685
|
key: 11,
|
|
@@ -673,8 +688,8 @@ const vt = ["id"], dt = { key: 0 }, ht = ["xmlns", "viewBox"], yt = ["width", "h
|
|
|
673
688
|
"text-anchor": "middle",
|
|
674
689
|
"font-size": l.value.legendFontSize,
|
|
675
690
|
"font-weight": "bold",
|
|
676
|
-
fill: e.value.style.chart.legend.useRatingColor ?
|
|
677
|
-
},
|
|
691
|
+
fill: e.value.style.chart.legend.useRatingColor ? D.value : e.value.style.chart.legend.color
|
|
692
|
+
}, P(n(J)(
|
|
678
693
|
e.value.style.chart.legend.formatter,
|
|
679
694
|
f.value,
|
|
680
695
|
n(K)({
|
|
@@ -683,13 +698,13 @@ const vt = ["id"], dt = { key: 0 }, ht = ["xmlns", "viewBox"], yt = ["width", "h
|
|
|
683
698
|
s: e.value.style.chart.legend.suffix,
|
|
684
699
|
r: e.value.style.chart.legend.roundingValue
|
|
685
700
|
})
|
|
686
|
-
)), 9,
|
|
701
|
+
)), 9, Dt)) : c("", !0),
|
|
687
702
|
x(t.$slots, "svg", { svg: l.value }, void 0, !0)
|
|
688
|
-
], 14,
|
|
689
|
-
t.$slots.watermark ? (s(), u("div",
|
|
690
|
-
x(t.$slots, "watermark", j(
|
|
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)
|
|
691
706
|
])) : c("", !0),
|
|
692
|
-
|
|
707
|
+
R.value ? c("", !0) : (s(), U(n(Oe), {
|
|
693
708
|
key: 6,
|
|
694
709
|
config: {
|
|
695
710
|
type: "gauge",
|
|
@@ -701,11 +716,11 @@ const vt = ["id"], dt = { key: 0 }, ht = ["xmlns", "viewBox"], yt = ["width", "h
|
|
|
701
716
|
}
|
|
702
717
|
}
|
|
703
718
|
}, null, 8, ["config"])),
|
|
704
|
-
|
|
719
|
+
g("div", {
|
|
705
720
|
ref_key: "chartLegend",
|
|
706
721
|
ref: ae
|
|
707
722
|
}, [
|
|
708
|
-
x(t.$slots, "legend", { legend:
|
|
723
|
+
x(t.$slots, "legend", { legend: O.value }, void 0, !0)
|
|
709
724
|
], 512),
|
|
710
725
|
t.$slots.source ? (s(), u("div", {
|
|
711
726
|
key: 7,
|
|
@@ -715,9 +730,9 @@ const vt = ["id"], dt = { key: 0 }, ht = ["xmlns", "viewBox"], yt = ["width", "h
|
|
|
715
730
|
}, [
|
|
716
731
|
x(t.$slots, "source", {}, void 0, !0)
|
|
717
732
|
], 512)) : c("", !0)
|
|
718
|
-
], 46,
|
|
733
|
+
], 46, ht));
|
|
719
734
|
}
|
|
720
|
-
},
|
|
735
|
+
}, sa = /* @__PURE__ */ dt(qt, [["__scopeId", "data-v-820009be"]]);
|
|
721
736
|
export {
|
|
722
|
-
|
|
737
|
+
sa as default
|
|
723
738
|
};
|