vue-data-ui 2.16.6 → 2.17.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 +83 -53
- package/dist/{Arrow-DCqxVwey.js → Arrow-BAEkZGzL.js} +1 -1
- package/dist/{BaseDraggableDialog-6DIKXIBU.js → BaseDraggableDialog-ChCkcmj_.js} +2 -2
- package/dist/{BaseIcon-Bn996RXm.js → BaseIcon-naqtCxVi.js} +1 -1
- package/dist/{ColorPicker-OFfLkKNb.js → ColorPicker-CfIPgxcj.js} +2 -2
- package/dist/{DataTable-CHBLjKtZ.js → DataTable-D0VYDhfx.js} +2 -2
- package/dist/{Legend-nBXoxXJH.js → Legend-Bxlv67uY.js} +2 -2
- package/dist/{NonSvgPenAndPaper-Cls2idJS.js → NonSvgPenAndPaper-b_oVy-Dd.js} +3 -3
- package/dist/{PackageVersion-Bg_9KCU-.js → PackageVersion-5TR4ocqp.js} +1 -1
- package/dist/{PenAndPaper-BPTpbnay.js → PenAndPaper-D6AqipIO.js} +32 -32
- package/dist/{Shape-Bnf512BA.js → Shape-DtFT5EJa.js} +1 -1
- package/dist/{Slicer-BrqtJG2E.js → Slicer-CL6-MRI6.js} +2 -2
- package/dist/{SparkTooltip-C-rLATAw.js → SparkTooltip-Bcv1aoA5.js} +1 -1
- package/dist/{Title-Gi81VwUM.js → Title-B-2bV0SW.js} +1 -1
- package/dist/{Tooltip-CJxVw7-T.js → Tooltip-CoQnTnr-.js} +1 -1
- package/dist/{UserOptions-CBEK6_jo.js → UserOptions-Dd34lEKb.js} +2 -2
- package/dist/{dom-to-png-CRHNL8VU.js → dom-to-png-2AA0wHlX.js} +1 -1
- package/dist/{img-BgOg8opa.js → img-Y_hYz-ZC.js} +1 -1
- package/dist/{index-DvIXJm6t.js → index-pPGk-uhD.js} +1 -1
- package/dist/{pdf-DhTxBrbJ.js → pdf-yfk3d1is.js} +1 -1
- package/dist/style.css +1 -1
- package/dist/types/vue-data-ui.d.cts +1096 -160
- package/dist/types/vue-data-ui.d.ts +1096 -160
- package/dist/{useNestedProp-DrYHm61t.js → useNestedProp-DjACxgdZ.js} +1 -1
- package/dist/{usePrinter-CWnXbGMb.js → usePrinter-DDHcrl0A.js} +2 -2
- package/dist/vue-data-ui-CIWxgKjd.js +312 -0
- package/dist/vue-data-ui.js +1 -1
- package/dist/{vue-ui-3d-bar-CtlB4p7i.js → vue-ui-3d-bar-D5Wpdqfk.js} +228 -220
- package/dist/{vue-ui-accordion-D55kCO5G.js → vue-ui-accordion-CVnA550V.js} +3 -3
- package/dist/{vue-ui-age-pyramid-DSshyUn-.js → vue-ui-age-pyramid-BuAl-zC5.js} +179 -171
- package/dist/{vue-ui-annotator-DQSMv_k2.js → vue-ui-annotator-gl2A20m3.js} +2 -2
- package/dist/{vue-ui-bullet-FeScjj7q.js → vue-ui-bullet-D-VMKpwe.js} +127 -119
- package/dist/{vue-ui-candlestick-Drupgyoi.js → vue-ui-candlestick-1r6YwiUV.js} +194 -186
- package/dist/{vue-ui-carousel-table-BTZQRZfO.js → vue-ui-carousel-table-B6UJoNtP.js} +4 -4
- package/dist/{vue-ui-chestnut-DLWjPwRL.js → vue-ui-chestnut-DnlBYpC5.js} +226 -218
- package/dist/{vue-ui-chord-BgLbFBT9.js → vue-ui-chord-D3kpzYjp.js} +175 -167
- package/dist/{vue-ui-circle-pack-VXcRh2gy.js → vue-ui-circle-pack-CHgdpoYu.js} +188 -180
- package/dist/{vue-ui-cursor-DWmfnM25.js → vue-ui-cursor-63EAvElT.js} +2 -2
- package/dist/{vue-ui-dashboard-CGIocEHj.js → vue-ui-dashboard-Da6CPET-.js} +62 -62
- package/dist/{vue-ui-digits-BgQch3Fc.js → vue-ui-digits-CA8pUKej.js} +2 -2
- package/dist/{vue-ui-donut-B59bCV5_.js → vue-ui-donut-CKa7nFjt.js} +329 -321
- package/dist/{vue-ui-donut-evolution-CI8qBIQd.js → vue-ui-donut-evolution-qeBEA4W8.js} +245 -237
- package/dist/{vue-ui-dumbbell-CXv7sk88.js → vue-ui-dumbbell-Bm0PvAKT.js} +144 -136
- package/dist/{vue-ui-flow-DxF0ELtv.js → vue-ui-flow-C2dqXvrU.js} +169 -161
- package/dist/{vue-ui-funnel-Bco8rqF8.js → vue-ui-funnel-Dvy5rRld.js} +132 -124
- package/dist/{vue-ui-galaxy-CaPJwwOj.js → vue-ui-galaxy-Y8LYp5n2.js} +168 -160
- package/dist/{vue-ui-gauge-D7arhDmb.js → vue-ui-gauge-BBo0jWAP.js} +164 -156
- package/dist/{vue-ui-gizmo-Dwli-Mip.js → vue-ui-gizmo-DjXfTOWn.js} +3 -3
- package/dist/{vue-ui-heatmap-Cyn-ahGO.js → vue-ui-heatmap-BbxRpltP.js} +240 -228
- package/dist/{vue-ui-history-plot-C2AEToqx.js → vue-ui-history-plot-ChYf3Nvc.js} +214 -206
- package/dist/{vue-ui-kpi-DKDibSdl.js → vue-ui-kpi-Vfc5-JnE.js} +3 -3
- package/dist/{vue-ui-mini-loader-B8OVutUx.js → vue-ui-mini-loader-C0-Nsz8K.js} +2 -2
- package/dist/{vue-ui-molecule-BVSrqIGw.js → vue-ui-molecule-B7Yu7vzF.js} +158 -150
- package/dist/{vue-ui-mood-radar-DvlyS3RN.js → vue-ui-mood-radar-C8JUTwNw.js} +128 -120
- package/dist/{vue-ui-nested-donuts-D9ssSus6.js → vue-ui-nested-donuts-D0RgFifU.js} +196 -188
- package/dist/{vue-ui-onion-Buu4VX3u.js → vue-ui-onion-D4U7TL_N.js} +166 -158
- package/dist/{vue-ui-parallel-coordinate-plot-DFLUvhxD.js → vue-ui-parallel-coordinate-plot-CXMT7Rjr.js} +186 -178
- package/dist/{vue-ui-quadrant-BMC7NBGd.js → vue-ui-quadrant-B13pTVVZ.js} +182 -174
- package/dist/{vue-ui-quick-chart-DB9RKUkb.js → vue-ui-quick-chart-C0UL4o63.js} +305 -297
- package/dist/{vue-ui-radar-68NMPxxQ.js → vue-ui-radar-XpdiXnhz.js} +167 -159
- package/dist/{vue-ui-rating-swH9kRr3.js → vue-ui-rating-CM8ZrUb1.js} +2 -2
- package/dist/{vue-ui-relation-circle-CT-EdSjO.js → vue-ui-relation-circle-CYoFNekk.js} +144 -136
- package/dist/{vue-ui-ridgeline-DftROPaX.js → vue-ui-ridgeline-QUquE6ck.js} +196 -188
- package/dist/{vue-ui-rings-M-9dPI5D.js → vue-ui-rings-DwT0IfOh.js} +145 -137
- package/dist/{vue-ui-scatter-CsGhaFJh.js → vue-ui-scatter-zDpy1udm.js} +179 -172
- package/dist/{vue-ui-skeleton-BAOt2neL.js → vue-ui-skeleton-DJPjyNYn.js} +3 -3
- package/dist/{vue-ui-smiley-7_kIgPg-.js → vue-ui-smiley-DoDXl6k0.js} +2 -2
- package/dist/{vue-ui-spark-trend-DHlQQpwz.js → vue-ui-spark-trend-CniV6Cpr.js} +3 -3
- package/dist/{vue-ui-sparkbar-BnHhzuKf.js → vue-ui-sparkbar-Ds2ITgwn.js} +3 -3
- package/dist/{vue-ui-sparkgauge-WtfkCK8g.js → vue-ui-sparkgauge-CosfK-kw.js} +3 -3
- package/dist/{vue-ui-sparkhistogram-B2u4XLVd.js → vue-ui-sparkhistogram-C7O1wPAJ.js} +4 -4
- package/dist/{vue-ui-sparkline-DKIyUlSm.js → vue-ui-sparkline-B_iUj3F2.js} +3 -3
- package/dist/{vue-ui-sparkstackbar-BLGz2qIb.js → vue-ui-sparkstackbar-DBhWrysr.js} +3 -3
- package/dist/{vue-ui-stackbar-BDpMsTYe.js → vue-ui-stackbar-C3aV4IcL.js} +240 -232
- package/dist/{vue-ui-strip-plot-5qDcYPnR.js → vue-ui-strip-plot-Bvr1GAzH.js} +204 -196
- package/dist/{vue-ui-table-Bg5HIQ3O.js → vue-ui-table-DQKKRgyo.js} +3 -3
- package/dist/{vue-ui-table-heatmap-DmjNy1q1.js → vue-ui-table-heatmap-Dyqj5XJC.js} +5 -5
- package/dist/{vue-ui-table-sparkline-CnkJkBk5.js → vue-ui-table-sparkline-D4RubyLj.js} +4 -4
- package/dist/{vue-ui-thermometer-RlD-9mJf.js → vue-ui-thermometer-B0FKI5cG.js} +145 -137
- package/dist/{vue-ui-timer-Bes74INL.js → vue-ui-timer-DUCBRIl-.js} +5 -5
- package/dist/{vue-ui-tiremarks-DiLS3akQ.js → vue-ui-tiremarks-CRt4UQZD.js} +108 -100
- package/dist/vue-ui-treemap-CWP5nYDx.js +961 -0
- package/dist/{vue-ui-vertical-bar-CwqQyZFX.js → vue-ui-vertical-bar-C5fPYltO.js} +278 -270
- package/dist/{vue-ui-waffle-Ce3T4BPp.js → vue-ui-waffle-BpWLlfpg.js} +188 -180
- package/dist/{vue-ui-wheel-6B0WTkf2.js → vue-ui-wheel-CTzuCroy.js} +112 -104
- package/dist/{vue-ui-word-cloud-ByYZCOh7.js → vue-ui-word-cloud-BPokdaP1.js} +198 -190
- package/dist/{vue-ui-world-B9PxVO4n.js → vue-ui-world-CS6k-oil.js} +199 -191
- package/dist/{vue-ui-xy-DtJ7qJib.js → vue-ui-xy-CQ425kLR.js} +550 -544
- package/dist/{vue-ui-xy-canvas-S6YpFgzs.js → vue-ui-xy-canvas-D2IFwAr7.js} +306 -298
- package/package.json +1 -1
- package/dist/vue-data-ui-B8EWlMIK.js +0 -301
- package/dist/vue-ui-treemap-BG1Omm38.js +0 -953
|
@@ -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 Be, 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 p, withCtx as I, toDisplayString as M, createSlots as qe, renderSlot as w, normalizeProps as W, guardReactiveProps as j, createVNode as He, Fragment as g, 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 F, O as at, X as lt, s as Z, n as rt, i as J, f as K, E as Q } from "./index-pPGk-uhD.js";
|
|
3
|
+
import { t as st, u as ot } from "./useResponsive-DfdjqQps.js";
|
|
4
|
+
import { u as ze } from "./useNestedProp-DjACxgdZ.js";
|
|
5
|
+
import { u as ut } from "./usePrinter-DDHcrl0A.js";
|
|
6
|
+
import { u as nt } from "./useUserOptionState-BIvW1Kz7.js";
|
|
7
|
+
import { u as it } from "./useChartAccessibility-9icAAmYg.js";
|
|
8
|
+
import ct from "./Title-B-2bV0SW.js";
|
|
9
|
+
import vt from "./img-Y_hYz-ZC.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"], Ft = ["id", "d"], Ct = ["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"], Dt = ["cx", "cy", "fill", "r", "stroke-width", "stroke"], Bt = ["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
|
|
30
|
+
setup(L, { expose: Fe }) {
|
|
31
|
+
const Ce = G(() => import("./PenAndPaper-D6AqipIO.js")), Oe = G(() => import("./vue-ui-skeleton-DJPjyNYn.js")), Me = G(() => import("./UserOptions-Dd34lEKb.js")), Pe = G(() => import("./PackageVersion-5TR4ocqp.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), b = m(Je()), Xe = m(null), ee = m(0), P = 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: D, setUserOptionsVisibility: oe, keepUserOptionState: ue } =
|
|
34
|
-
|
|
34
|
+
}), { userOptionsVisible: D, setUserOptionsVisibility: oe, keepUserOptionState: ue } = nt({ config: e.value }), { svgRef: ne } = it({ config: e.value.style.chart.title });
|
|
35
|
+
be(() => d.config, (t) => {
|
|
35
36
|
e.value = ie(), D.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
|
+
const { isPrinting: ce, isImaging: ve, generatePdf: de, generateImage: he } = ut({
|
|
51
52
|
elementId: `vue-ui-gauge_${b.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)), C = y(() => {
|
|
56
|
+
if (!R.value || Se(d.dataset.series || {}))
|
|
56
57
|
return {
|
|
57
58
|
value: 0,
|
|
58
59
|
series: [
|
|
@@ -71,11 +72,11 @@ 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
|
-
}), k =
|
|
79
|
+
}), k = m(512), l = m({
|
|
79
80
|
height: 358.4,
|
|
80
81
|
width: k.value,
|
|
81
82
|
top: 0,
|
|
@@ -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,8 +106,8 @@ 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},${_} ${je},${Te} ${
|
|
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), _ = o + v.value.pointerSize * l.value.pointerSize * 0.9 * Math.sin(a), x = l.value.pointerRadius, je = t + x * Math.cos(a + Math.PI / 2), Te = o + x * Math.sin(a + Math.PI / 2), Le = t + x * Math.cos(a - Math.PI / 2), De = o + x * Math.sin(a - Math.PI / 2);
|
|
110
|
+
return isNaN(r) ? null : `M ${r},${_} ${je},${Te} ${Le},${De} Z`;
|
|
110
111
|
}), B = y(() => {
|
|
111
112
|
for (let t = 0; t < C.value.series.length; t += 1) {
|
|
112
113
|
const { color: o, from: a, to: r } = C.value.series[t];
|
|
@@ -114,40 +115,40 @@ const vt = ["id"], dt = { key: 0 }, ht = ["xmlns", "viewBox"], yt = ["width", "h
|
|
|
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: P.value,
|
|
151
152
|
title: e.value.style.chart.title.text ? te.value : null,
|
|
152
153
|
legend: ae.value,
|
|
153
154
|
source: le.value,
|
|
@@ -175,19 +176,19 @@ const vt = ["id"], dt = { key: 0 }, ht = ["xmlns", "viewBox"], yt = ["width", "h
|
|
|
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 = P.value.parentNode, z.value.observe(X.value);
|
|
179
180
|
}
|
|
180
181
|
}
|
|
181
|
-
|
|
182
|
+
Be(() => {
|
|
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
|
-
(C.value.series || []).forEach((
|
|
189
|
-
o.push(
|
|
190
|
-
}),
|
|
189
|
+
(C.value.series || []).forEach((x) => {
|
|
190
|
+
o.push(x.from || 0), o.push(x.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
194
|
function _() {
|
|
@@ -216,7 +217,7 @@ 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
|
+
)), Ae = y(() => H(
|
|
220
221
|
{ series: C.value.series },
|
|
221
222
|
l.value.width / 2,
|
|
222
223
|
v.value.base,
|
|
@@ -228,7 +229,7 @@ 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
|
-
)), O = y(() => h.value.map((t) => v.value.arcs * e.value.style.chart.layout.segmentNames.offsetRatio * (t.nameOffsetRatio || 1))),
|
|
232
|
+
)), O = y(() => h.value.map((t) => v.value.arcs * e.value.style.chart.layout.segmentNames.offsetRatio * (t.nameOffsetRatio || 1))), pe = y(() => {
|
|
232
233
|
const { x: t, y: o } = F({
|
|
233
234
|
initX: h.value[0].firstSeparator.x,
|
|
234
235
|
initY: h.value[0].firstSeparator.y,
|
|
@@ -259,14 +260,14 @@ const vt = ["id"], dt = { key: 0 }, ht = ["xmlns", "viewBox"], yt = ["width", "h
|
|
|
259
260
|
});
|
|
260
261
|
return { x1: o, y1: a, x2: r, y2: _ };
|
|
261
262
|
}));
|
|
262
|
-
function
|
|
263
|
-
if (t.reduce((_,
|
|
263
|
+
function Re(t) {
|
|
264
|
+
if (t.reduce((_, x) => _ + x, 0) > 100)
|
|
264
265
|
throw new Error("Total % must not exceed 100");
|
|
265
266
|
const a = 50;
|
|
266
267
|
let r = 0;
|
|
267
268
|
return t.map((_) => (r += _, `${r / 100 * a - _ / 4}%`));
|
|
268
269
|
}
|
|
269
|
-
const
|
|
270
|
+
const Ee = y(() => Re(h.value.map((t) => t.proportion * 100))), Ge = y(() => H(
|
|
270
271
|
{ series: C.value.series },
|
|
271
272
|
l.value.width / 2,
|
|
272
273
|
v.value.base,
|
|
@@ -278,38 +279,45 @@ 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 (!P.value) return;
|
|
302
|
+
const { imageUri: o, base64: a } = await vt({ domElement: P.value, base64: !0, img: !0, scale: t });
|
|
303
|
+
return { imageUri: o, base64: a };
|
|
304
|
+
}
|
|
305
|
+
return Fe({
|
|
306
|
+
getImage: We,
|
|
300
307
|
generatePdf: de,
|
|
301
308
|
generateImage: he,
|
|
302
|
-
toggleAnnotator: V
|
|
309
|
+
toggleAnnotator: V,
|
|
310
|
+
toggleFullscreen: ke
|
|
303
311
|
}), (t, o) => (s(), u("div", {
|
|
304
|
-
class:
|
|
312
|
+
class: we(`vue-ui-gauge ${Y.value ? "vue-data-ui-wrapper-fullscreen" : ""}`),
|
|
305
313
|
ref_key: "gaugeChart",
|
|
306
|
-
ref:
|
|
314
|
+
ref: P,
|
|
307
315
|
id: `vue-ui-gauge_${b.value}`,
|
|
308
316
|
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
317
|
onMouseenter: o[0] || (o[0] = () => n(oe)(!0)),
|
|
310
318
|
onMouseleave: o[1] || (o[1] = () => n(oe)(!1))
|
|
311
319
|
}, [
|
|
312
|
-
e.value.userOptions.buttons.annotator ? (s(),
|
|
320
|
+
e.value.userOptions.buttons.annotator ? (s(), U(n(Ce), {
|
|
313
321
|
key: 0,
|
|
314
322
|
svgRef: n(ne),
|
|
315
323
|
backgroundColor: e.value.style.chart.backgroundColor,
|
|
@@ -317,7 +325,7 @@ const vt = ["id"], dt = { key: 0 }, ht = ["xmlns", "viewBox"], yt = ["width", "h
|
|
|
317
325
|
active: E.value,
|
|
318
326
|
onClose: V
|
|
319
327
|
}, null, 8, ["svgRef", "backgroundColor", "color", "active"])) : c("", !0),
|
|
320
|
-
|
|
328
|
+
Ie.value ? (s(), u("div", {
|
|
321
329
|
key: 1,
|
|
322
330
|
ref_key: "noTitle",
|
|
323
331
|
ref: re,
|
|
@@ -330,7 +338,7 @@ const vt = ["id"], dt = { key: 0 }, ht = ["xmlns", "viewBox"], yt = ["width", "h
|
|
|
330
338
|
ref: te,
|
|
331
339
|
style: "width:100%;background:transparent;padding-bottom:12px"
|
|
332
340
|
}, [
|
|
333
|
-
(s(),
|
|
341
|
+
(s(), U(ct, {
|
|
334
342
|
key: `title_${se.value}`,
|
|
335
343
|
config: {
|
|
336
344
|
title: {
|
|
@@ -343,15 +351,15 @@ const vt = ["id"], dt = { key: 0 }, ht = ["xmlns", "viewBox"], yt = ["width", "h
|
|
|
343
351
|
}
|
|
344
352
|
}
|
|
345
353
|
}, {
|
|
346
|
-
default:
|
|
347
|
-
e.value.translations.base && L.dataset.base ? (s(), u("span",
|
|
354
|
+
default: I(() => [
|
|
355
|
+
e.value.translations.base && L.dataset.base ? (s(), u("span", yt, M(e.value.translations.base) + ": " + M(L.dataset.base), 1)) : c("", !0)
|
|
348
356
|
]),
|
|
349
357
|
_: 1
|
|
350
358
|
}, 8, ["config"]))
|
|
351
359
|
], 512)) : c("", !0),
|
|
352
|
-
e.value.userOptions.show &&
|
|
360
|
+
e.value.userOptions.show && R.value && (n(ue) || n(D)) ? (s(), U(n(Me), {
|
|
353
361
|
ref_key: "details",
|
|
354
|
-
ref:
|
|
362
|
+
ref: Xe,
|
|
355
363
|
key: `user_options_${ee.value}`,
|
|
356
364
|
backgroundColor: e.value.style.chart.backgroundColor,
|
|
357
365
|
color: e.value.style.chart.color,
|
|
@@ -362,68 +370,68 @@ const vt = ["id"], dt = { key: 0 }, ht = ["xmlns", "viewBox"], yt = ["width", "h
|
|
|
362
370
|
hasPdf: e.value.userOptions.buttons.pdf,
|
|
363
371
|
hasImg: e.value.userOptions.buttons.img,
|
|
364
372
|
hasFullscreen: e.value.userOptions.buttons.fullscreen,
|
|
365
|
-
isFullscreen:
|
|
373
|
+
isFullscreen: Y.value,
|
|
366
374
|
titles: { ...e.value.userOptions.buttonTitles },
|
|
367
|
-
chartElement:
|
|
375
|
+
chartElement: P.value,
|
|
368
376
|
callbacks: e.value.userOptions.callbacks,
|
|
369
377
|
printScale: e.value.userOptions.print.scale,
|
|
370
378
|
position: e.value.userOptions.position,
|
|
371
379
|
hasAnnotator: e.value.userOptions.buttons.annotator,
|
|
372
380
|
isAnnotation: E.value,
|
|
373
|
-
onToggleFullscreen:
|
|
381
|
+
onToggleFullscreen: ke,
|
|
374
382
|
onGeneratePdf: n(de),
|
|
375
383
|
onGenerateImage: n(he),
|
|
376
384
|
onToggleAnnotator: V,
|
|
377
385
|
style: q({
|
|
378
386
|
visibility: n(ue) ? n(D) ? "visible" : "hidden" : "visible"
|
|
379
387
|
})
|
|
380
|
-
},
|
|
388
|
+
}, qe({ _: 2 }, [
|
|
381
389
|
t.$slots.menuIcon ? {
|
|
382
390
|
name: "menuIcon",
|
|
383
|
-
fn:
|
|
384
|
-
|
|
391
|
+
fn: I(({ isOpen: a, color: r }) => [
|
|
392
|
+
w(t.$slots, "menuIcon", W(j({ isOpen: a, color: r })), void 0, !0)
|
|
385
393
|
]),
|
|
386
394
|
key: "0"
|
|
387
395
|
} : void 0,
|
|
388
396
|
t.$slots.optionPdf ? {
|
|
389
397
|
name: "optionPdf",
|
|
390
|
-
fn:
|
|
391
|
-
|
|
398
|
+
fn: I(() => [
|
|
399
|
+
w(t.$slots, "optionPdf", {}, void 0, !0)
|
|
392
400
|
]),
|
|
393
401
|
key: "1"
|
|
394
402
|
} : void 0,
|
|
395
403
|
t.$slots.optionImg ? {
|
|
396
404
|
name: "optionImg",
|
|
397
|
-
fn:
|
|
398
|
-
|
|
405
|
+
fn: I(() => [
|
|
406
|
+
w(t.$slots, "optionImg", {}, void 0, !0)
|
|
399
407
|
]),
|
|
400
408
|
key: "2"
|
|
401
409
|
} : void 0,
|
|
402
410
|
t.$slots.optionFullscreen ? {
|
|
403
411
|
name: "optionFullscreen",
|
|
404
|
-
fn:
|
|
405
|
-
|
|
412
|
+
fn: I(({ toggleFullscreen: a, isFullscreen: r }) => [
|
|
413
|
+
w(t.$slots, "optionFullscreen", W(j({ toggleFullscreen: a, isFullscreen: r })), void 0, !0)
|
|
406
414
|
]),
|
|
407
415
|
key: "3"
|
|
408
416
|
} : void 0,
|
|
409
417
|
t.$slots.optionAnnotator ? {
|
|
410
418
|
name: "optionAnnotator",
|
|
411
|
-
fn:
|
|
412
|
-
|
|
419
|
+
fn: I(({ toggleAnnotator: a, isAnnotator: r }) => [
|
|
420
|
+
w(t.$slots, "optionAnnotator", W(j({ toggleAnnotator: a, isAnnotator: r })), void 0, !0)
|
|
413
421
|
]),
|
|
414
422
|
key: "4"
|
|
415
423
|
} : void 0
|
|
416
424
|
]), 1032, ["backgroundColor", "color", "isImaging", "isPrinting", "uid", "hasPdf", "hasImg", "hasFullscreen", "isFullscreen", "titles", "chartElement", "callbacks", "printScale", "position", "hasAnnotator", "isAnnotation", "onGeneratePdf", "onGenerateImage", "style"])) : c("", !0),
|
|
417
|
-
|
|
425
|
+
R.value ? (s(), u("svg", {
|
|
418
426
|
key: 4,
|
|
419
427
|
ref_key: "svgRef",
|
|
420
428
|
ref: ne,
|
|
421
|
-
xmlns: n(
|
|
422
|
-
class:
|
|
429
|
+
xmlns: n(lt),
|
|
430
|
+
class: we({ "vue-data-ui-fullscreen--on": Y.value, "vue-data-ui-fulscreen--off": !Y.value }),
|
|
423
431
|
viewBox: `0 0 ${l.value.width <= 0 ? 10 : l.value.width} ${l.value.height <= 0 ? 10 : l.value.height}`,
|
|
424
432
|
style: q(`max-width:100%;overflow:hidden !important;background:transparent;color:${e.value.style.chart.color}`)
|
|
425
433
|
}, [
|
|
426
|
-
|
|
434
|
+
He(n(Pe)),
|
|
427
435
|
t.$slots["chart-background"] ? (s(), u("foreignObject", {
|
|
428
436
|
key: 0,
|
|
429
437
|
x: 0,
|
|
@@ -434,10 +442,10 @@ const vt = ["id"], dt = { key: 0 }, ht = ["xmlns", "viewBox"], yt = ["width", "h
|
|
|
434
442
|
pointerEvents: "none"
|
|
435
443
|
}
|
|
436
444
|
}, [
|
|
437
|
-
|
|
438
|
-
], 8,
|
|
439
|
-
|
|
440
|
-
|
|
445
|
+
w(t.$slots, "chart-background", {}, void 0, !0)
|
|
446
|
+
], 8, mt)) : c("", !0),
|
|
447
|
+
p("defs", null, [
|
|
448
|
+
p("radialGradient", {
|
|
441
449
|
id: `gradient_${b.value}`,
|
|
442
450
|
cx: "50%",
|
|
443
451
|
cy: "50%",
|
|
@@ -445,37 +453,37 @@ const vt = ["id"], dt = { key: 0 }, ht = ["xmlns", "viewBox"], yt = ["width", "h
|
|
|
445
453
|
fx: "50%",
|
|
446
454
|
fy: "50%"
|
|
447
455
|
}, [
|
|
448
|
-
|
|
456
|
+
p("stop", {
|
|
449
457
|
offset: "0%",
|
|
450
458
|
"stop-color": n(Z)("#FFFFFF", 1)
|
|
451
|
-
}, null, 8,
|
|
452
|
-
|
|
459
|
+
}, null, 8, gt),
|
|
460
|
+
p("stop", {
|
|
453
461
|
offset: "80%",
|
|
454
462
|
"stop-color": n(Z)("#FFFFFF", e.value.style.chart.layout.track.gradientIntensity)
|
|
455
|
-
}, null, 8,
|
|
456
|
-
|
|
463
|
+
}, null, 8, kt),
|
|
464
|
+
p("stop", {
|
|
457
465
|
offset: "100%",
|
|
458
466
|
"stop-color": n(Z)("#FFFFFF", 1)
|
|
459
|
-
}, null, 8,
|
|
460
|
-
], 8,
|
|
467
|
+
}, null, 8, bt)
|
|
468
|
+
], 8, pt)
|
|
461
469
|
]),
|
|
462
|
-
|
|
463
|
-
|
|
470
|
+
p("defs", null, [
|
|
471
|
+
p("filter", {
|
|
464
472
|
id: `blur_${b.value}`,
|
|
465
473
|
x: "-50%",
|
|
466
474
|
y: "-50%",
|
|
467
475
|
width: "200%",
|
|
468
476
|
height: "200%"
|
|
469
477
|
}, [
|
|
470
|
-
|
|
478
|
+
p("feGaussianBlur", {
|
|
471
479
|
in: "SourceGraphic",
|
|
472
480
|
stdDeviation: 100 / e.value.style.chart.layout.track.gradientIntensity
|
|
473
|
-
}, null, 8,
|
|
474
|
-
], 8,
|
|
481
|
+
}, null, 8, wt)
|
|
482
|
+
], 8, _t)
|
|
475
483
|
]),
|
|
476
|
-
t.$slots.pattern ? (s(), u("g",
|
|
484
|
+
t.$slots.pattern ? (s(), u("g", xt, [
|
|
477
485
|
(s(!0), u(g, null, S(h.value, (a, r) => (s(), u("defs", null, [
|
|
478
|
-
|
|
486
|
+
w(t.$slots, "pattern", A({ ref_for: !0 }, { seriesIndex: r, patternId: `pattern_${b.value}_${r}` }), void 0, !0)
|
|
479
487
|
]))), 256))
|
|
480
488
|
])) : c("", !0),
|
|
481
489
|
(s(!0), u(g, null, S(h.value, (a, r) => (s(), u("path", {
|
|
@@ -484,76 +492,76 @@ const vt = ["id"], dt = { key: 0 }, ht = ["xmlns", "viewBox"], yt = ["width", "h
|
|
|
484
492
|
fill: a.color,
|
|
485
493
|
stroke: e.value.style.chart.backgroundColor,
|
|
486
494
|
"stroke-linecap": "round"
|
|
487
|
-
}, null, 8,
|
|
495
|
+
}, null, 8, St))), 128)),
|
|
488
496
|
t.$slots.pattern ? (s(!0), u(g, { key: 2 }, S(h.value, (a, r) => (s(), u("path", {
|
|
489
497
|
key: `arc_${r}`,
|
|
490
498
|
d: a.arcSlice,
|
|
491
499
|
fill: `url(#pattern_${b.value}_${r})`,
|
|
492
500
|
stroke: e.value.style.chart.backgroundColor,
|
|
493
501
|
"stroke-linecap": "round"
|
|
494
|
-
}, null, 8,
|
|
502
|
+
}, null, 8, $t))), 128)) : c("", !0),
|
|
495
503
|
e.value.style.chart.layout.indicatorArc.show ? (s(), u("path", {
|
|
496
504
|
key: 3,
|
|
497
|
-
d:
|
|
505
|
+
d: Ue.value,
|
|
498
506
|
fill: e.value.style.chart.layout.indicatorArc.fill
|
|
499
|
-
}, null, 8,
|
|
507
|
+
}, null, 8, zt)) : c("", !0),
|
|
500
508
|
e.value.style.chart.layout.segmentNames.show && e.value.style.chart.layout.segmentNames.curved ? (s(), u(g, { key: 4 }, [
|
|
501
509
|
(s(!0), u(g, null, S(h.value, (a, r) => (s(), u("path", {
|
|
502
510
|
id: `curve_${b.value}_${r}`,
|
|
503
511
|
d: `M ${i.value.x1},${i.value.y1} m -${O.value[r]},0 a ${O.value[r]},${O.value[r]} 0 1,1 ${2 * O.value[r]},0 a ${O.value[r]},${O.value[r]} 0 1,1 -${2 * O.value[r]},0`,
|
|
504
512
|
fill: "transparent"
|
|
505
|
-
}, null, 8,
|
|
513
|
+
}, null, 8, Ft))), 256)),
|
|
506
514
|
(s(!0), u(g, null, S(h.value, (a, r) => (s(), u("text", {
|
|
507
515
|
fill: e.value.style.chart.layout.segmentNames.useSerieColor ? a.color : e.value.style.chart.layout.segmentNames.color,
|
|
508
516
|
"font-size": l.value.segmentFontSize,
|
|
509
517
|
"font-weight": e.value.style.chart.layout.segmentNames.bold ? "bold" : "normal",
|
|
510
518
|
"text-anchor": "middle"
|
|
511
519
|
}, [
|
|
512
|
-
|
|
520
|
+
p("textPath", {
|
|
513
521
|
href: `#curve_${b.value}_${r}`,
|
|
514
|
-
startOffset:
|
|
515
|
-
}, M(a.name || ""), 9,
|
|
516
|
-
], 8,
|
|
522
|
+
startOffset: Ee.value[r]
|
|
523
|
+
}, M(a.name || ""), 9, Ot)
|
|
524
|
+
], 8, Ct))), 256))
|
|
517
525
|
], 64)) : c("", !0),
|
|
518
|
-
e.value.style.chart.layout.segmentNames.show && !e.value.style.chart.layout.segmentNames.curved ? (s(!0), u(g, { key: 5 }, S(
|
|
526
|
+
e.value.style.chart.layout.segmentNames.show && !e.value.style.chart.layout.segmentNames.curved ? (s(!0), u(g, { key: 5 }, S(Ae.value, (a, r) => (s(), u("text", {
|
|
519
527
|
x: a.center.endX,
|
|
520
528
|
y: a.center.endY,
|
|
521
|
-
"text-anchor": n(
|
|
529
|
+
"text-anchor": n(rt)(a, !1, 12).anchor,
|
|
522
530
|
fill: e.value.style.chart.layout.segmentNames.useSerieColor ? a.color : e.value.style.chart.layout.segmentNames.color,
|
|
523
531
|
"font-size": l.value.segmentFontSize,
|
|
524
532
|
"font-weight": e.value.style.chart.layout.segmentNames.bold ? "bold" : "normal"
|
|
525
|
-
}, M(a.name || ""), 9,
|
|
526
|
-
e.value.style.chart.layout.track.useGradient ? (s(!0), u(g, { key: 6 }, S(
|
|
533
|
+
}, M(a.name || ""), 9, Mt))), 256)) : c("", !0),
|
|
534
|
+
e.value.style.chart.layout.track.useGradient ? (s(!0), u(g, { key: 6 }, S(Ge.value, (a, r) => (s(), u("path", {
|
|
527
535
|
key: `arc_${r}`,
|
|
528
536
|
d: a.arcSlice,
|
|
529
537
|
fill: "#FFFFFF",
|
|
530
538
|
stroke: "none",
|
|
531
539
|
"stroke-linecap": "round",
|
|
532
540
|
filter: `url(#blur_${b.value})`
|
|
533
|
-
}, null, 8,
|
|
541
|
+
}, null, 8, Pt))), 128)) : c("", !0),
|
|
534
542
|
e.value.style.chart.layout.segmentSeparators.show ? (s(), u(g, { key: 7 }, [
|
|
535
|
-
|
|
543
|
+
p("line", A(pe.value, {
|
|
536
544
|
stroke: e.value.style.chart.backgroundColor,
|
|
537
545
|
"stroke-width": e.value.style.chart.layout.segmentSeparators.strokeWidth + 2,
|
|
538
546
|
"stroke-linecap": "round"
|
|
539
|
-
}), null, 16,
|
|
540
|
-
|
|
547
|
+
}), null, 16, Nt),
|
|
548
|
+
p("line", A(pe.value, {
|
|
541
549
|
stroke: e.value.style.chart.layout.segmentSeparators.stroke,
|
|
542
550
|
"stroke-width": e.value.style.chart.layout.segmentSeparators.strokeWidth,
|
|
543
551
|
"stroke-linecap": "round"
|
|
544
|
-
}), null, 16,
|
|
545
|
-
(s(!0), u(g, null, S(ge.value, (a) => (s(), u("line",
|
|
552
|
+
}), null, 16, Xt),
|
|
553
|
+
(s(!0), u(g, null, S(ge.value, (a) => (s(), u("line", A({ ref_for: !0 }, a, {
|
|
546
554
|
stroke: e.value.style.chart.backgroundColor,
|
|
547
555
|
"stroke-width": e.value.style.chart.layout.segmentSeparators.strokeWidth + 2,
|
|
548
556
|
"stroke-linecap": "round"
|
|
549
|
-
}), null, 16,
|
|
550
|
-
(s(!0), u(g, null, S(ge.value, (a) => (s(), u("line",
|
|
557
|
+
}), null, 16, It))), 256)),
|
|
558
|
+
(s(!0), u(g, null, S(ge.value, (a) => (s(), u("line", A({ ref_for: !0 }, a, {
|
|
551
559
|
stroke: e.value.style.chart.layout.segmentSeparators.stroke,
|
|
552
560
|
"stroke-width": e.value.style.chart.layout.segmentSeparators.strokeWidth,
|
|
553
561
|
"stroke-linecap": "round"
|
|
554
|
-
}), null, 16,
|
|
562
|
+
}), null, 16, Yt))), 256))
|
|
555
563
|
], 64)) : c("", !0),
|
|
556
|
-
e.value.style.chart.layout.markers.show ? (s(), u("g",
|
|
564
|
+
e.value.style.chart.layout.markers.show ? (s(), u("g", At, [
|
|
557
565
|
(s(!0), u(g, null, S(h.value, (a, r) => (s(), u("text", {
|
|
558
566
|
x: n(F)({
|
|
559
567
|
centerX: i.value.x1,
|
|
@@ -582,7 +590,7 @@ const vt = ["id"], dt = { key: 0 }, ht = ["xmlns", "viewBox"], yt = ["width", "h
|
|
|
582
590
|
s: e.value.style.chart.layout.markers.suffix,
|
|
583
591
|
r: e.value.style.chart.layout.markers.roundingValue
|
|
584
592
|
})
|
|
585
|
-
)), 9,
|
|
593
|
+
)), 9, Rt))), 256))
|
|
586
594
|
])) : c("", !0),
|
|
587
595
|
e.value.style.chart.layout.markers.show ? (s(), u("text", {
|
|
588
596
|
key: 9,
|
|
@@ -606,16 +614,16 @@ const vt = ["id"], dt = { key: 0 }, ht = ["xmlns", "viewBox"], yt = ["width", "h
|
|
|
606
614
|
fill: e.value.style.chart.layout.markers.color
|
|
607
615
|
}, M(n(J)(
|
|
608
616
|
e.value.style.chart.layout.markers.formatter,
|
|
609
|
-
|
|
617
|
+
N.value,
|
|
610
618
|
n(K)({
|
|
611
619
|
p: e.value.style.chart.layout.markers.prefix,
|
|
612
|
-
v:
|
|
620
|
+
v: N.value,
|
|
613
621
|
s: e.value.style.chart.layout.markers.suffix,
|
|
614
622
|
r: e.value.style.chart.layout.markers.roundingValue
|
|
615
623
|
})
|
|
616
|
-
)), 9,
|
|
624
|
+
)), 9, Et)) : c("", !0),
|
|
617
625
|
e.value.style.chart.layout.pointer.show ? (s(), u(g, { key: 10 }, [
|
|
618
|
-
e.value.style.chart.layout.pointer.type === "rounded" ? (s(), u("g",
|
|
626
|
+
e.value.style.chart.layout.pointer.type === "rounded" ? (s(), u("g", Gt, [
|
|
619
627
|
isNaN(i.value.x2) ? c("", !0) : (s(), u("line", {
|
|
620
628
|
key: 0,
|
|
621
629
|
x1: i.value.x1,
|
|
@@ -625,7 +633,7 @@ const vt = ["id"], dt = { key: 0 }, ht = ["xmlns", "viewBox"], yt = ["width", "h
|
|
|
625
633
|
stroke: e.value.style.chart.layout.pointer.stroke,
|
|
626
634
|
"stroke-width": l.value.pointerStrokeWidth,
|
|
627
635
|
"stroke-linecap": "round"
|
|
628
|
-
}, null, 8,
|
|
636
|
+
}, null, 8, Ut)),
|
|
629
637
|
isNaN(i.value.x2) ? c("", !0) : (s(), u("line", {
|
|
630
638
|
key: 1,
|
|
631
639
|
x1: i.value.x1,
|
|
@@ -635,7 +643,7 @@ const vt = ["id"], dt = { key: 0 }, ht = ["xmlns", "viewBox"], yt = ["width", "h
|
|
|
635
643
|
stroke: e.value.style.chart.layout.pointer.useRatingColor ? B.value : e.value.style.chart.layout.pointer.color,
|
|
636
644
|
"stroke-linecap": "round",
|
|
637
645
|
"stroke-width": l.value.pointerStrokeWidth * 0.7
|
|
638
|
-
}, null, 8,
|
|
646
|
+
}, null, 8, Wt)),
|
|
639
647
|
!isNaN(i.value.x2) && e.value.style.chart.layout.track.useGradient ? (s(), u("line", {
|
|
640
648
|
key: 2,
|
|
641
649
|
x1: i.value.x1,
|
|
@@ -646,8 +654,8 @@ const vt = ["id"], dt = { key: 0 }, ht = ["xmlns", "viewBox"], yt = ["width", "h
|
|
|
646
654
|
"stroke-linecap": "round",
|
|
647
655
|
"stroke-width": l.value.pointerStrokeWidth * 0.3,
|
|
648
656
|
filter: `url(#blur_${b.value})`
|
|
649
|
-
}, null, 8,
|
|
650
|
-
])) : (s(), u("g",
|
|
657
|
+
}, null, 8, jt)) : c("", !0)
|
|
658
|
+
])) : (s(), u("g", Tt, [
|
|
651
659
|
ye.value ? (s(), u("path", {
|
|
652
660
|
key: 0,
|
|
653
661
|
d: ye.value,
|
|
@@ -655,16 +663,16 @@ const vt = ["id"], dt = { key: 0 }, ht = ["xmlns", "viewBox"], yt = ["width", "h
|
|
|
655
663
|
stroke: e.value.style.chart.layout.pointer.stroke,
|
|
656
664
|
"stroke-width": e.value.style.chart.layout.pointer.circle.strokeWidth,
|
|
657
665
|
"stroke-linejoin": "round"
|
|
658
|
-
}, null, 8,
|
|
666
|
+
}, null, 8, Lt)) : c("", !0)
|
|
659
667
|
])),
|
|
660
|
-
|
|
668
|
+
p("circle", {
|
|
661
669
|
cx: l.value.width / 2,
|
|
662
670
|
cy: v.value.base,
|
|
663
671
|
fill: e.value.style.chart.layout.pointer.circle.color,
|
|
664
672
|
r: l.value.pointerRadius <= 0 ? 1e-4 : l.value.pointerRadius,
|
|
665
673
|
"stroke-width": e.value.style.chart.layout.pointer.circle.strokeWidth,
|
|
666
674
|
stroke: e.value.style.chart.layout.pointer.circle.stroke
|
|
667
|
-
}, null, 8,
|
|
675
|
+
}, null, 8, Dt)
|
|
668
676
|
], 64)) : c("", !0),
|
|
669
677
|
e.value.style.chart.legend.show ? (s(), u("text", {
|
|
670
678
|
key: 11,
|
|
@@ -683,13 +691,13 @@ const vt = ["id"], dt = { key: 0 }, ht = ["xmlns", "viewBox"], yt = ["width", "h
|
|
|
683
691
|
s: e.value.style.chart.legend.suffix,
|
|
684
692
|
r: e.value.style.chart.legend.roundingValue
|
|
685
693
|
})
|
|
686
|
-
)), 9,
|
|
687
|
-
|
|
688
|
-
], 14,
|
|
689
|
-
t.$slots.watermark ? (s(), u("div",
|
|
690
|
-
|
|
694
|
+
)), 9, Bt)) : c("", !0),
|
|
695
|
+
w(t.$slots, "svg", { svg: l.value }, void 0, !0)
|
|
696
|
+
], 14, ft)) : c("", !0),
|
|
697
|
+
t.$slots.watermark ? (s(), u("div", Vt, [
|
|
698
|
+
w(t.$slots, "watermark", W(j({ isPrinting: n(ce) || n(ve) })), void 0, !0)
|
|
691
699
|
])) : c("", !0),
|
|
692
|
-
|
|
700
|
+
R.value ? c("", !0) : (s(), U(n(Oe), {
|
|
693
701
|
key: 6,
|
|
694
702
|
config: {
|
|
695
703
|
type: "gauge",
|
|
@@ -701,11 +709,11 @@ const vt = ["id"], dt = { key: 0 }, ht = ["xmlns", "viewBox"], yt = ["width", "h
|
|
|
701
709
|
}
|
|
702
710
|
}
|
|
703
711
|
}, null, 8, ["config"])),
|
|
704
|
-
|
|
712
|
+
p("div", {
|
|
705
713
|
ref_key: "chartLegend",
|
|
706
714
|
ref: ae
|
|
707
715
|
}, [
|
|
708
|
-
|
|
716
|
+
w(t.$slots, "legend", { legend: C.value }, void 0, !0)
|
|
709
717
|
], 512),
|
|
710
718
|
t.$slots.source ? (s(), u("div", {
|
|
711
719
|
key: 7,
|
|
@@ -713,11 +721,11 @@ const vt = ["id"], dt = { key: 0 }, ht = ["xmlns", "viewBox"], yt = ["width", "h
|
|
|
713
721
|
ref: le,
|
|
714
722
|
dir: "auto"
|
|
715
723
|
}, [
|
|
716
|
-
|
|
724
|
+
w(t.$slots, "source", {}, void 0, !0)
|
|
717
725
|
], 512)) : c("", !0)
|
|
718
|
-
], 46,
|
|
726
|
+
], 46, ht));
|
|
719
727
|
}
|
|
720
|
-
},
|
|
728
|
+
}, sa = /* @__PURE__ */ dt(qt, [["__scopeId", "data-v-0642c848"]]);
|
|
721
729
|
export {
|
|
722
|
-
|
|
730
|
+
sa as default
|
|
723
731
|
};
|