vue-data-ui 2.17.0 → 2.17.2
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 +2 -1
- package/dist/{Arrow-BAEkZGzL.js → Arrow-Dr2lyXds.js} +1 -1
- package/dist/{BaseDraggableDialog-ChCkcmj_.js → BaseDraggableDialog-DQ6yA8di.js} +2 -2
- package/dist/{BaseIcon-naqtCxVi.js → BaseIcon-C2f-EcZc.js} +1 -1
- package/dist/{ColorPicker-CfIPgxcj.js → ColorPicker-D-JmDe31.js} +2 -2
- package/dist/{DataTable-D0VYDhfx.js → DataTable-6BxhjBzt.js} +2 -2
- package/dist/{Legend-Bxlv67uY.js → Legend-1R-B-7st.js} +11 -11
- package/dist/{NonSvgPenAndPaper-b_oVy-Dd.js → NonSvgPenAndPaper-CLNy5uCL.js} +3 -3
- package/dist/{PackageVersion-5TR4ocqp.js → PackageVersion-CIX1W_aa.js} +1 -1
- package/dist/{PenAndPaper-D6AqipIO.js → PenAndPaper-CqJ4wudB.js} +3 -3
- package/dist/{Shape-DtFT5EJa.js → Shape-DJKQgAbU.js} +1 -1
- package/dist/{Slicer-CL6-MRI6.js → Slicer-Dju6LE-h.js} +2 -2
- package/dist/{SparkTooltip-Bcv1aoA5.js → SparkTooltip-D2mROH3o.js} +1 -1
- package/dist/{Title-B-2bV0SW.js → Title-BQb7X_OR.js} +1 -1
- package/dist/{Tooltip-CoQnTnr-.js → Tooltip-BTnTpPdO.js} +1 -1
- package/dist/{UserOptions-Dd34lEKb.js → UserOptions-lneAyZKu.js} +2 -2
- package/dist/{dom-to-png-2AA0wHlX.js → dom-to-png-C-9BWdwN.js} +1 -1
- package/dist/{img-Y_hYz-ZC.js → img-D0DpKcFX.js} +1 -1
- package/dist/{index-pPGk-uhD.js → index-JzUbx__y.js} +22 -8
- package/dist/{pdf-yfk3d1is.js → pdf-BgVDfZPT.js} +1 -1
- package/dist/style.css +1 -1
- package/dist/types/vue-data-ui.d.cts +65 -160
- package/dist/types/vue-data-ui.d.ts +65 -160
- package/dist/{useNestedProp-DjACxgdZ.js → useNestedProp-D_jd2dz9.js} +1 -1
- package/dist/{usePrinter-DDHcrl0A.js → usePrinter-CsyliflB.js} +2 -2
- package/dist/{vue-data-ui-CIWxgKjd.js → vue-data-ui-BMv8hEcb.js} +99 -97
- package/dist/vue-data-ui.js +1 -1
- package/dist/{vue-ui-3d-bar-D5Wpdqfk.js → vue-ui-3d-bar-CrdssfKx.js} +41 -34
- package/dist/{vue-ui-accordion-CVnA550V.js → vue-ui-accordion-CcTUbiHq.js} +3 -3
- package/dist/{vue-ui-age-pyramid-BuAl-zC5.js → vue-ui-age-pyramid-ZYFAAcwc.js} +134 -127
- package/dist/{vue-ui-annotator-gl2A20m3.js → vue-ui-annotator-BEgBoRWQ.js} +2 -2
- package/dist/{vue-ui-bullet-D-VMKpwe.js → vue-ui-bullet-DYzLfkYB.js} +90 -83
- package/dist/{vue-ui-candlestick-1r6YwiUV.js → vue-ui-candlestick-Cdu2ozig.js} +101 -94
- package/dist/{vue-ui-carousel-table-B6UJoNtP.js → vue-ui-carousel-table-Dce2wfVw.js} +4 -4
- package/dist/{vue-ui-chestnut-DnlBYpC5.js → vue-ui-chestnut-CCMAbLrw.js} +270 -263
- package/dist/{vue-ui-chord-D3kpzYjp.js → vue-ui-chord-B8Sl_FwD.js} +60 -53
- package/dist/{vue-ui-circle-pack-CHgdpoYu.js → vue-ui-circle-pack-BX6_ToJl.js} +121 -114
- package/dist/{vue-ui-cursor-63EAvElT.js → vue-ui-cursor-CyaF0qp7.js} +2 -2
- package/dist/{vue-ui-dashboard-Da6CPET-.js → vue-ui-dashboard-BmL_vnj5.js} +62 -62
- package/dist/{vue-ui-digits-CA8pUKej.js → vue-ui-digits-BRKjd-LQ.js} +2 -2
- package/dist/vue-ui-donut-LZR-vpdS.js +1338 -0
- package/dist/{vue-ui-donut-evolution-qeBEA4W8.js → vue-ui-donut-evolution-dax3dN9r.js} +215 -211
- package/dist/{vue-ui-dumbbell-Bm0PvAKT.js → vue-ui-dumbbell-C7ZNBVSy.js} +117 -110
- package/dist/{vue-ui-flow-C2dqXvrU.js → vue-ui-flow-BeLwkeHo.js} +105 -98
- package/dist/{vue-ui-funnel-Dvy5rRld.js → vue-ui-funnel-BywaRLZR.js} +138 -131
- package/dist/{vue-ui-galaxy-Y8LYp5n2.js → vue-ui-galaxy-DYavEd4o.js} +150 -146
- package/dist/{vue-ui-gauge-BBo0jWAP.js → vue-ui-gauge-DwQRlRWp.js} +125 -118
- package/dist/{vue-ui-gizmo-DjXfTOWn.js → vue-ui-gizmo-CjRczit6.js} +3 -3
- package/dist/{vue-ui-heatmap-BbxRpltP.js → vue-ui-heatmap-cRy0tcES.js} +155 -148
- package/dist/{vue-ui-history-plot-ChYf3Nvc.js → vue-ui-history-plot-D8aTdU23.js} +141 -134
- package/dist/{vue-ui-kpi-Vfc5-JnE.js → vue-ui-kpi-B10h_Hbt.js} +3 -3
- package/dist/{vue-ui-mini-loader-C0-Nsz8K.js → vue-ui-mini-loader-DNhr_0fr.js} +2 -2
- package/dist/{vue-ui-molecule-B7Yu7vzF.js → vue-ui-molecule-4MeyWn0c.js} +141 -134
- package/dist/{vue-ui-mood-radar-C8JUTwNw.js → vue-ui-mood-radar-DJmgRVT2.js} +126 -119
- package/dist/vue-ui-nested-donuts-CgaPLxV2.js +1177 -0
- package/dist/{vue-ui-onion-D4U7TL_N.js → vue-ui-onion-swDxtTT3.js} +88 -81
- package/dist/{vue-ui-parallel-coordinate-plot-CXMT7Rjr.js → vue-ui-parallel-coordinate-plot-DayzzOmK.js} +123 -116
- package/dist/{vue-ui-quadrant-B13pTVVZ.js → vue-ui-quadrant-CLf81ioF.js} +151 -144
- package/dist/{vue-ui-quick-chart-C0UL4o63.js → vue-ui-quick-chart-smKrpIwq.js} +39 -32
- package/dist/{vue-ui-radar-XpdiXnhz.js → vue-ui-radar-D8CIvG2q.js} +58 -51
- package/dist/{vue-ui-rating-CM8ZrUb1.js → vue-ui-rating-YZivkWBI.js} +2 -2
- package/dist/{vue-ui-relation-circle-CYoFNekk.js → vue-ui-relation-circle-DsEYbNs_.js} +127 -120
- package/dist/{vue-ui-ridgeline-QUquE6ck.js → vue-ui-ridgeline-Do6C5lMY.js} +98 -91
- package/dist/{vue-ui-rings-DwT0IfOh.js → vue-ui-rings-CMryJR1g.js} +208 -204
- package/dist/{vue-ui-scatter-zDpy1udm.js → vue-ui-scatter-BtLKWQbX.js} +172 -165
- package/dist/{vue-ui-skeleton-DJPjyNYn.js → vue-ui-skeleton-B4KQLEQy.js} +3 -3
- package/dist/{vue-ui-smiley-DoDXl6k0.js → vue-ui-smiley-CZBuA-1x.js} +2 -2
- package/dist/{vue-ui-spark-trend-CniV6Cpr.js → vue-ui-spark-trend-CdgyexDu.js} +3 -3
- package/dist/{vue-ui-sparkbar-Ds2ITgwn.js → vue-ui-sparkbar-DuZulYgD.js} +3 -3
- package/dist/{vue-ui-sparkgauge-CosfK-kw.js → vue-ui-sparkgauge-Di0FmUXs.js} +3 -3
- package/dist/{vue-ui-sparkhistogram-C7O1wPAJ.js → vue-ui-sparkhistogram-CHNHz9Gm.js} +4 -4
- package/dist/{vue-ui-sparkline-B_iUj3F2.js → vue-ui-sparkline-TaWMi8gF.js} +3 -3
- package/dist/{vue-ui-sparkstackbar-DBhWrysr.js → vue-ui-sparkstackbar-Bv2HEegT.js} +3 -3
- package/dist/{vue-ui-stackbar-C3aV4IcL.js → vue-ui-stackbar-Bk3Bbzjk.js} +61 -54
- package/dist/{vue-ui-strip-plot-Bvr1GAzH.js → vue-ui-strip-plot-BNMDY4GI.js} +116 -109
- package/dist/{vue-ui-table-DQKKRgyo.js → vue-ui-table-JG0B8HuS.js} +3 -3
- package/dist/{vue-ui-table-heatmap-Dyqj5XJC.js → vue-ui-table-heatmap-CCdWeNZj.js} +5 -5
- package/dist/{vue-ui-table-sparkline-D4RubyLj.js → vue-ui-table-sparkline-C1u_b0RG.js} +4 -4
- package/dist/{vue-ui-thermometer-B0FKI5cG.js → vue-ui-thermometer-DkldIXw7.js} +88 -81
- package/dist/{vue-ui-timer-DUCBRIl-.js → vue-ui-timer-0KDTN-Gt.js} +5 -5
- package/dist/{vue-ui-tiremarks-CRt4UQZD.js → vue-ui-tiremarks-FPtGzTGi.js} +127 -120
- package/dist/vue-ui-treemap-BA5wC5Bs.js +965 -0
- package/dist/{vue-ui-vertical-bar-C5fPYltO.js → vue-ui-vertical-bar-DUJWYMRn.js} +233 -226
- package/dist/{vue-ui-waffle-BpWLlfpg.js → vue-ui-waffle-BIngg99N.js} +183 -179
- package/dist/{vue-ui-wheel-CTzuCroy.js → vue-ui-wheel-l5U2UH9c.js} +121 -114
- package/dist/{vue-ui-word-cloud-BPokdaP1.js → vue-ui-word-cloud-CTKuxhFY.js} +152 -145
- package/dist/{vue-ui-world-CS6k-oil.js → vue-ui-world-Dx5O9Is5.js} +77 -70
- package/dist/{vue-ui-xy-CQ425kLR.js → vue-ui-xy-JjA1CMAo.js} +229 -222
- package/dist/{vue-ui-xy-canvas-D2IFwAr7.js → vue-ui-xy-canvas-CH82b2Lp.js} +154 -147
- package/package.json +1 -1
- package/dist/vue-ui-donut-CKa7nFjt.js +0 -1324
- package/dist/vue-ui-nested-donuts-D0RgFifU.js +0 -1163
- package/dist/vue-ui-treemap-CWP5nYDx.js +0 -961
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
import { defineAsyncComponent as G, computed as y, ref as m, watch as be, shallowRef as _e, onMounted as
|
|
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
|
|
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-JzUbx__y.js";
|
|
3
3
|
import { t as st, u as ot } from "./useResponsive-DfdjqQps.js";
|
|
4
|
-
import { u as ze } from "./useNestedProp-
|
|
5
|
-
import { u as ut } from "./usePrinter-
|
|
4
|
+
import { u as ze } from "./useNestedProp-D_jd2dz9.js";
|
|
5
|
+
import { u as ut } from "./usePrinter-CsyliflB.js";
|
|
6
6
|
import { u as nt } from "./useUserOptionState-BIvW1Kz7.js";
|
|
7
7
|
import { u as it } from "./useChartAccessibility-9icAAmYg.js";
|
|
8
|
-
import ct from "./Title-
|
|
9
|
-
import vt from "./img-
|
|
8
|
+
import ct from "./Title-BQb7X_OR.js";
|
|
9
|
+
import vt from "./img-D0DpKcFX.js";
|
|
10
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"],
|
|
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
12
|
key: 5,
|
|
13
13
|
class: "vue-data-ui-watermark"
|
|
14
14
|
}, qt = {
|
|
@@ -27,13 +27,13 @@ const ht = ["id"], yt = { key: 0 }, ft = ["xmlns", "viewBox"], mt = ["width", "h
|
|
|
27
27
|
}
|
|
28
28
|
}
|
|
29
29
|
},
|
|
30
|
-
setup(L, { expose:
|
|
31
|
-
const
|
|
30
|
+
setup(L, { expose: Ce }) {
|
|
31
|
+
const Fe = G(() => import("./PenAndPaper-CqJ4wudB.js")), Oe = G(() => import("./vue-ui-skeleton-B4KQLEQy.js")), Me = G(() => import("./UserOptions-lneAyZKu.js")), Pe = G(() => import("./PackageVersion-CIX1W_aa.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
32
|
get: () => ie(),
|
|
33
33
|
set: (t) => t
|
|
34
|
-
}), { userOptionsVisible:
|
|
34
|
+
}), { userOptionsVisible: B, setUserOptionsVisibility: oe, keepUserOptionState: ue } = nt({ config: e.value }), { svgRef: ne } = it({ config: e.value.style.chart.title });
|
|
35
35
|
be(() => d.config, (t) => {
|
|
36
|
-
e.value = ie(),
|
|
36
|
+
e.value = ie(), B.value = !e.value.userOptions.showOnChartHover, fe(), se.value += 1;
|
|
37
37
|
}, { deep: !0 });
|
|
38
38
|
function ie() {
|
|
39
39
|
const t = ze({
|
|
@@ -49,10 +49,10 @@ const ht = ["id"], yt = { key: 0 }, ft = ["xmlns", "viewBox"], mt = ["width", "h
|
|
|
49
49
|
} : t;
|
|
50
50
|
}
|
|
51
51
|
const { isPrinting: ce, isImaging: ve, generatePdf: de, generateImage: he } = ut({
|
|
52
|
-
elementId: `vue-ui-gauge_${
|
|
52
|
+
elementId: `vue-ui-gauge_${w.value}`,
|
|
53
53
|
fileName: e.value.style.chart.title.text || "vue-ui-gauge",
|
|
54
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)),
|
|
55
|
+
}), Ie = y(() => e.value.userOptions.show && !e.value.style.chart.title.text), Ye = y(() => et(e.value.customPalette)), O = y(() => {
|
|
56
56
|
if (!R.value || Se(d.dataset.series || {}))
|
|
57
57
|
return {
|
|
58
58
|
value: 0,
|
|
@@ -76,13 +76,13 @@ const ht = ["id"], yt = { key: 0 }, ft = ["xmlns", "viewBox"], mt = ["width", "h
|
|
|
76
76
|
value: ((a.to || 0) - (a.from || 0)) / o * 100
|
|
77
77
|
}))
|
|
78
78
|
};
|
|
79
|
-
}),
|
|
79
|
+
}), b = m(512), l = m({
|
|
80
80
|
height: 358.4,
|
|
81
|
-
width:
|
|
81
|
+
width: b.value,
|
|
82
82
|
top: 0,
|
|
83
83
|
bottom: 358.4,
|
|
84
84
|
centerX: 179.2,
|
|
85
|
-
centerY:
|
|
85
|
+
centerY: b.value / 2,
|
|
86
86
|
labelFontSize: 18,
|
|
87
87
|
legendFontSize: e.value.style.chart.legend.fontSize,
|
|
88
88
|
pointerRadius: e.value.style.chart.layout.pointer.circle.radius,
|
|
@@ -106,11 +106,11 @@ const ht = ["id"], yt = { key: 0 }, ft = ["xmlns", "viewBox"], mt = ["width", "h
|
|
|
106
106
|
y2: o + v.value.pointerSize * l.value.pointerSize * 0.9 * Math.sin(a)
|
|
107
107
|
};
|
|
108
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),
|
|
110
|
-
return isNaN(r) ? null : `M ${r},${
|
|
111
|
-
}),
|
|
112
|
-
for (let t = 0; t <
|
|
113
|
-
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];
|
|
114
114
|
if (f.value >= a && f.value <= r)
|
|
115
115
|
return o;
|
|
116
116
|
}
|
|
@@ -148,53 +148,53 @@ const ht = ["id"], yt = { key: 0 }, ft = ["xmlns", "viewBox"], mt = ["width", "h
|
|
|
148
148
|
}))), me(d.dataset.value || 0), e.value.responsive) {
|
|
149
149
|
const t = st(() => {
|
|
150
150
|
const { width: o, height: a } = ot({
|
|
151
|
-
chart:
|
|
151
|
+
chart: F.value,
|
|
152
152
|
title: e.value.style.chart.title.text ? te.value : null,
|
|
153
153
|
legend: ae.value,
|
|
154
154
|
source: le.value,
|
|
155
155
|
noTitle: re.value
|
|
156
156
|
});
|
|
157
157
|
requestAnimationFrame(() => {
|
|
158
|
-
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({
|
|
159
159
|
relator: Math.min(o, a),
|
|
160
|
-
adjuster:
|
|
160
|
+
adjuster: b.value,
|
|
161
161
|
source: e.value.style.chart.layout.pointer.strokeWidth,
|
|
162
162
|
threshold: 2,
|
|
163
163
|
fallback: 2
|
|
164
164
|
}), l.value.markerOffset = Q({
|
|
165
165
|
relator: Math.max(o, a),
|
|
166
|
-
adjuster:
|
|
166
|
+
adjuster: b.value,
|
|
167
167
|
source: e.value.style.chart.layout.markers.offsetY + 3,
|
|
168
168
|
threshold: 2,
|
|
169
169
|
fallback: 2
|
|
170
170
|
}), l.value.segmentFontSize = Q({
|
|
171
171
|
relator: Math.min(o, a),
|
|
172
|
-
adjuster:
|
|
172
|
+
adjuster: b.value,
|
|
173
173
|
source: e.value.style.chart.layout.segmentNames.fontSize,
|
|
174
174
|
threshold: 8,
|
|
175
175
|
fallback: 8
|
|
176
176
|
});
|
|
177
177
|
});
|
|
178
178
|
});
|
|
179
|
-
z.value && (X.value && z.value.unobserve(X.value), z.value.disconnect()), z.value = new ResizeObserver(t), X.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);
|
|
180
180
|
}
|
|
181
181
|
}
|
|
182
|
-
|
|
182
|
+
De(() => {
|
|
183
183
|
fe();
|
|
184
184
|
}), Ve(() => {
|
|
185
185
|
z.value && (X.value && z.value.unobserve(X.value), z.value.disconnect());
|
|
186
186
|
});
|
|
187
187
|
function me(t) {
|
|
188
188
|
const o = [];
|
|
189
|
-
(
|
|
190
|
-
o.push(
|
|
189
|
+
(O.value.series || []).forEach((_) => {
|
|
190
|
+
o.push(_.from || 0), o.push(_.to || 0);
|
|
191
191
|
}), N.value = Math.max(...o), $.value = Math.min(...o);
|
|
192
192
|
let a = e.value.style.chart.animation.speed;
|
|
193
193
|
const r = Math.abs(t - f.value) / (a * 60);
|
|
194
|
-
function
|
|
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(
|
|
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
196
|
}
|
|
197
|
-
|
|
197
|
+
p();
|
|
198
198
|
}
|
|
199
199
|
const v = y(() => {
|
|
200
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;
|
|
@@ -206,7 +206,7 @@ const ht = ["id"], yt = { key: 0 }, ft = ["xmlns", "viewBox"], mt = ["width", "h
|
|
|
206
206
|
pointerSize: e.value.responsive ? Math.min(l.value.width, l.value.height) / 3 : l.value.width / 3.2
|
|
207
207
|
};
|
|
208
208
|
}), h = y(() => H(
|
|
209
|
-
{ series:
|
|
209
|
+
{ series: O.value.series },
|
|
210
210
|
l.value.width / 2,
|
|
211
211
|
v.value.base,
|
|
212
212
|
v.value.arcs,
|
|
@@ -218,7 +218,7 @@ const ht = ["id"], yt = { key: 0 }, ft = ["xmlns", "viewBox"], mt = ["width", "h
|
|
|
218
218
|
109.9495,
|
|
219
219
|
40 * l.value.trackSize
|
|
220
220
|
)), Ae = y(() => H(
|
|
221
|
-
{ series:
|
|
221
|
+
{ series: O.value.series },
|
|
222
222
|
l.value.width / 2,
|
|
223
223
|
v.value.base,
|
|
224
224
|
v.value.arcs * e.value.style.chart.layout.segmentNames.offsetRatio,
|
|
@@ -229,14 +229,14 @@ const ht = ["id"], yt = { key: 0 }, ft = ["xmlns", "viewBox"], mt = ["width", "h
|
|
|
229
229
|
180,
|
|
230
230
|
109.9495,
|
|
231
231
|
40 * l.value.trackSize
|
|
232
|
-
)),
|
|
233
|
-
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({
|
|
234
234
|
initX: h.value[0].firstSeparator.x,
|
|
235
235
|
initY: h.value[0].firstSeparator.y,
|
|
236
236
|
centerX: i.value.x1,
|
|
237
237
|
centerY: i.value.y1,
|
|
238
238
|
offset: -e.value.style.chart.layout.segmentSeparators.offsetIn
|
|
239
|
-
}), { x: a, y: r } =
|
|
239
|
+
}), { x: a, y: r } = C({
|
|
240
240
|
initX: h.value[0].startX,
|
|
241
241
|
initY: h.value[0].startY,
|
|
242
242
|
centerX: i.value.x1,
|
|
@@ -245,30 +245,30 @@ const ht = ["id"], yt = { key: 0 }, ft = ["xmlns", "viewBox"], mt = ["width", "h
|
|
|
245
245
|
});
|
|
246
246
|
return { x1: t, y1: o, x2: a, y2: r };
|
|
247
247
|
}), ge = y(() => h.value.map((t) => {
|
|
248
|
-
const { x: o, y: a } =
|
|
248
|
+
const { x: o, y: a } = C({
|
|
249
249
|
initX: t.separator.x,
|
|
250
250
|
initY: t.separator.y,
|
|
251
251
|
centerX: i.value.x1,
|
|
252
252
|
centerY: i.value.y1,
|
|
253
253
|
offset: -e.value.style.chart.layout.segmentSeparators.offsetIn
|
|
254
|
-
}), { x: r, y:
|
|
254
|
+
}), { x: r, y: p } = C({
|
|
255
255
|
initX: t.endX,
|
|
256
256
|
initY: t.endY,
|
|
257
257
|
centerX: i.value.x1,
|
|
258
258
|
centerY: i.value.y1,
|
|
259
259
|
offset: e.value.style.chart.layout.segmentSeparators.offsetOut
|
|
260
260
|
});
|
|
261
|
-
return { x1: o, y1: a, x2: r, y2:
|
|
261
|
+
return { x1: o, y1: a, x2: r, y2: p };
|
|
262
262
|
}));
|
|
263
263
|
function Re(t) {
|
|
264
|
-
if (t.reduce((
|
|
264
|
+
if (t.reduce((p, _) => p + _, 0) > 100)
|
|
265
265
|
throw new Error("Total % must not exceed 100");
|
|
266
266
|
const a = 50;
|
|
267
267
|
let r = 0;
|
|
268
|
-
return t.map((
|
|
268
|
+
return t.map((p) => (r += p, `${r / 100 * a - p / 4}%`));
|
|
269
269
|
}
|
|
270
270
|
const Ee = y(() => Re(h.value.map((t) => t.proportion * 100))), Ge = y(() => H(
|
|
271
|
-
{ series:
|
|
271
|
+
{ series: O.value.series },
|
|
272
272
|
l.value.width / 2,
|
|
273
273
|
v.value.base,
|
|
274
274
|
v.value.gradients,
|
|
@@ -298,11 +298,18 @@ const ht = ["id"], yt = { key: 0 }, ft = ["xmlns", "viewBox"], mt = ["width", "h
|
|
|
298
298
|
E.value = !E.value;
|
|
299
299
|
}
|
|
300
300
|
async function We({ scale: t = 2 } = {}) {
|
|
301
|
-
if (!
|
|
302
|
-
const {
|
|
303
|
-
return {
|
|
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
|
+
};
|
|
304
311
|
}
|
|
305
|
-
return
|
|
312
|
+
return Ce({
|
|
306
313
|
getImage: We,
|
|
307
314
|
generatePdf: de,
|
|
308
315
|
generateImage: he,
|
|
@@ -311,13 +318,13 @@ const ht = ["id"], yt = { key: 0 }, ft = ["xmlns", "viewBox"], mt = ["width", "h
|
|
|
311
318
|
}), (t, o) => (s(), u("div", {
|
|
312
319
|
class: we(`vue-ui-gauge ${Y.value ? "vue-data-ui-wrapper-fullscreen" : ""}`),
|
|
313
320
|
ref_key: "gaugeChart",
|
|
314
|
-
ref:
|
|
315
|
-
id: `vue-ui-gauge_${
|
|
321
|
+
ref: F,
|
|
322
|
+
id: `vue-ui-gauge_${w.value}`,
|
|
316
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%" : ""}`),
|
|
317
324
|
onMouseenter: o[0] || (o[0] = () => n(oe)(!0)),
|
|
318
325
|
onMouseleave: o[1] || (o[1] = () => n(oe)(!1))
|
|
319
326
|
}, [
|
|
320
|
-
e.value.userOptions.buttons.annotator ? (s(), U(n(
|
|
327
|
+
e.value.userOptions.buttons.annotator ? (s(), U(n(Fe), {
|
|
321
328
|
key: 0,
|
|
322
329
|
svgRef: n(ne),
|
|
323
330
|
backgroundColor: e.value.style.chart.backgroundColor,
|
|
@@ -352,12 +359,12 @@ const ht = ["id"], yt = { key: 0 }, ft = ["xmlns", "viewBox"], mt = ["width", "h
|
|
|
352
359
|
}
|
|
353
360
|
}, {
|
|
354
361
|
default: I(() => [
|
|
355
|
-
e.value.translations.base && L.dataset.base ? (s(), u("span", yt,
|
|
362
|
+
e.value.translations.base && L.dataset.base ? (s(), u("span", yt, P(e.value.translations.base) + ": " + P(L.dataset.base), 1)) : c("", !0)
|
|
356
363
|
]),
|
|
357
364
|
_: 1
|
|
358
365
|
}, 8, ["config"]))
|
|
359
366
|
], 512)) : c("", !0),
|
|
360
|
-
e.value.userOptions.show && R.value && (n(ue) || n(
|
|
367
|
+
e.value.userOptions.show && R.value && (n(ue) || n(B)) ? (s(), U(n(Me), {
|
|
361
368
|
ref_key: "details",
|
|
362
369
|
ref: Xe,
|
|
363
370
|
key: `user_options_${ee.value}`,
|
|
@@ -365,14 +372,14 @@ const ht = ["id"], yt = { key: 0 }, ft = ["xmlns", "viewBox"], mt = ["width", "h
|
|
|
365
372
|
color: e.value.style.chart.color,
|
|
366
373
|
isImaging: n(ve),
|
|
367
374
|
isPrinting: n(ce),
|
|
368
|
-
uid:
|
|
375
|
+
uid: w.value,
|
|
369
376
|
hasXls: !1,
|
|
370
377
|
hasPdf: e.value.userOptions.buttons.pdf,
|
|
371
378
|
hasImg: e.value.userOptions.buttons.img,
|
|
372
379
|
hasFullscreen: e.value.userOptions.buttons.fullscreen,
|
|
373
380
|
isFullscreen: Y.value,
|
|
374
381
|
titles: { ...e.value.userOptions.buttonTitles },
|
|
375
|
-
chartElement:
|
|
382
|
+
chartElement: F.value,
|
|
376
383
|
callbacks: e.value.userOptions.callbacks,
|
|
377
384
|
printScale: e.value.userOptions.print.scale,
|
|
378
385
|
position: e.value.userOptions.position,
|
|
@@ -383,41 +390,41 @@ const ht = ["id"], yt = { key: 0 }, ft = ["xmlns", "viewBox"], mt = ["width", "h
|
|
|
383
390
|
onGenerateImage: n(he),
|
|
384
391
|
onToggleAnnotator: V,
|
|
385
392
|
style: q({
|
|
386
|
-
visibility: n(ue) ? n(
|
|
393
|
+
visibility: n(ue) ? n(B) ? "visible" : "hidden" : "visible"
|
|
387
394
|
})
|
|
388
395
|
}, qe({ _: 2 }, [
|
|
389
396
|
t.$slots.menuIcon ? {
|
|
390
397
|
name: "menuIcon",
|
|
391
398
|
fn: I(({ isOpen: a, color: r }) => [
|
|
392
|
-
|
|
399
|
+
x(t.$slots, "menuIcon", W(j({ isOpen: a, color: r })), void 0, !0)
|
|
393
400
|
]),
|
|
394
401
|
key: "0"
|
|
395
402
|
} : void 0,
|
|
396
403
|
t.$slots.optionPdf ? {
|
|
397
404
|
name: "optionPdf",
|
|
398
405
|
fn: I(() => [
|
|
399
|
-
|
|
406
|
+
x(t.$slots, "optionPdf", {}, void 0, !0)
|
|
400
407
|
]),
|
|
401
408
|
key: "1"
|
|
402
409
|
} : void 0,
|
|
403
410
|
t.$slots.optionImg ? {
|
|
404
411
|
name: "optionImg",
|
|
405
412
|
fn: I(() => [
|
|
406
|
-
|
|
413
|
+
x(t.$slots, "optionImg", {}, void 0, !0)
|
|
407
414
|
]),
|
|
408
415
|
key: "2"
|
|
409
416
|
} : void 0,
|
|
410
417
|
t.$slots.optionFullscreen ? {
|
|
411
418
|
name: "optionFullscreen",
|
|
412
419
|
fn: I(({ toggleFullscreen: a, isFullscreen: r }) => [
|
|
413
|
-
|
|
420
|
+
x(t.$slots, "optionFullscreen", W(j({ toggleFullscreen: a, isFullscreen: r })), void 0, !0)
|
|
414
421
|
]),
|
|
415
422
|
key: "3"
|
|
416
423
|
} : void 0,
|
|
417
424
|
t.$slots.optionAnnotator ? {
|
|
418
425
|
name: "optionAnnotator",
|
|
419
426
|
fn: I(({ toggleAnnotator: a, isAnnotator: r }) => [
|
|
420
|
-
|
|
427
|
+
x(t.$slots, "optionAnnotator", W(j({ toggleAnnotator: a, isAnnotator: r })), void 0, !0)
|
|
421
428
|
]),
|
|
422
429
|
key: "4"
|
|
423
430
|
} : void 0
|
|
@@ -442,61 +449,61 @@ const ht = ["id"], yt = { key: 0 }, ft = ["xmlns", "viewBox"], mt = ["width", "h
|
|
|
442
449
|
pointerEvents: "none"
|
|
443
450
|
}
|
|
444
451
|
}, [
|
|
445
|
-
|
|
452
|
+
x(t.$slots, "chart-background", {}, void 0, !0)
|
|
446
453
|
], 8, mt)) : c("", !0),
|
|
447
|
-
|
|
448
|
-
|
|
449
|
-
id: `gradient_${
|
|
454
|
+
g("defs", null, [
|
|
455
|
+
g("radialGradient", {
|
|
456
|
+
id: `gradient_${w.value}`,
|
|
450
457
|
cx: "50%",
|
|
451
458
|
cy: "50%",
|
|
452
459
|
r: "50%",
|
|
453
460
|
fx: "50%",
|
|
454
461
|
fy: "50%"
|
|
455
462
|
}, [
|
|
456
|
-
|
|
463
|
+
g("stop", {
|
|
457
464
|
offset: "0%",
|
|
458
465
|
"stop-color": n(Z)("#FFFFFF", 1)
|
|
459
466
|
}, null, 8, gt),
|
|
460
|
-
|
|
467
|
+
g("stop", {
|
|
461
468
|
offset: "80%",
|
|
462
469
|
"stop-color": n(Z)("#FFFFFF", e.value.style.chart.layout.track.gradientIntensity)
|
|
463
470
|
}, null, 8, kt),
|
|
464
|
-
|
|
471
|
+
g("stop", {
|
|
465
472
|
offset: "100%",
|
|
466
473
|
"stop-color": n(Z)("#FFFFFF", 1)
|
|
467
474
|
}, null, 8, bt)
|
|
468
475
|
], 8, pt)
|
|
469
476
|
]),
|
|
470
|
-
|
|
471
|
-
|
|
472
|
-
id: `blur_${
|
|
477
|
+
g("defs", null, [
|
|
478
|
+
g("filter", {
|
|
479
|
+
id: `blur_${w.value}`,
|
|
473
480
|
x: "-50%",
|
|
474
481
|
y: "-50%",
|
|
475
482
|
width: "200%",
|
|
476
483
|
height: "200%"
|
|
477
484
|
}, [
|
|
478
|
-
|
|
485
|
+
g("feGaussianBlur", {
|
|
479
486
|
in: "SourceGraphic",
|
|
480
487
|
stdDeviation: 100 / e.value.style.chart.layout.track.gradientIntensity
|
|
481
488
|
}, null, 8, wt)
|
|
482
489
|
], 8, _t)
|
|
483
490
|
]),
|
|
484
491
|
t.$slots.pattern ? (s(), u("g", xt, [
|
|
485
|
-
(s(!0), u(
|
|
486
|
-
|
|
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)
|
|
487
494
|
]))), 256))
|
|
488
495
|
])) : c("", !0),
|
|
489
|
-
(s(!0), u(
|
|
496
|
+
(s(!0), u(k, null, S(h.value, (a, r) => (s(), u("path", {
|
|
490
497
|
key: `arc_${r}`,
|
|
491
498
|
d: a.arcSlice,
|
|
492
499
|
fill: a.color,
|
|
493
500
|
stroke: e.value.style.chart.backgroundColor,
|
|
494
501
|
"stroke-linecap": "round"
|
|
495
502
|
}, null, 8, St))), 128)),
|
|
496
|
-
t.$slots.pattern ? (s(!0), u(
|
|
503
|
+
t.$slots.pattern ? (s(!0), u(k, { key: 2 }, S(h.value, (a, r) => (s(), u("path", {
|
|
497
504
|
key: `arc_${r}`,
|
|
498
505
|
d: a.arcSlice,
|
|
499
|
-
fill: `url(#pattern_${
|
|
506
|
+
fill: `url(#pattern_${w.value}_${r})`,
|
|
500
507
|
stroke: e.value.style.chart.backgroundColor,
|
|
501
508
|
"stroke-linecap": "round"
|
|
502
509
|
}, null, 8, $t))), 128)) : c("", !0),
|
|
@@ -505,72 +512,72 @@ const ht = ["id"], yt = { key: 0 }, ft = ["xmlns", "viewBox"], mt = ["width", "h
|
|
|
505
512
|
d: Ue.value,
|
|
506
513
|
fill: e.value.style.chart.layout.indicatorArc.fill
|
|
507
514
|
}, null, 8, zt)) : c("", !0),
|
|
508
|
-
e.value.style.chart.layout.segmentNames.show && e.value.style.chart.layout.segmentNames.curved ? (s(), u(
|
|
509
|
-
(s(!0), u(
|
|
510
|
-
id: `curve_${
|
|
511
|
-
d: `M ${i.value.x1},${i.value.y1} m -${
|
|
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`,
|
|
512
519
|
fill: "transparent"
|
|
513
|
-
}, null, 8,
|
|
514
|
-
(s(!0), u(
|
|
520
|
+
}, null, 8, Ct))), 256)),
|
|
521
|
+
(s(!0), u(k, null, S(h.value, (a, r) => (s(), u("text", {
|
|
515
522
|
fill: e.value.style.chart.layout.segmentNames.useSerieColor ? a.color : e.value.style.chart.layout.segmentNames.color,
|
|
516
523
|
"font-size": l.value.segmentFontSize,
|
|
517
524
|
"font-weight": e.value.style.chart.layout.segmentNames.bold ? "bold" : "normal",
|
|
518
525
|
"text-anchor": "middle"
|
|
519
526
|
}, [
|
|
520
|
-
|
|
521
|
-
href: `#curve_${
|
|
527
|
+
g("textPath", {
|
|
528
|
+
href: `#curve_${w.value}_${r}`,
|
|
522
529
|
startOffset: Ee.value[r]
|
|
523
|
-
},
|
|
524
|
-
], 8,
|
|
530
|
+
}, P(a.name || ""), 9, Ot)
|
|
531
|
+
], 8, Ft))), 256))
|
|
525
532
|
], 64)) : c("", !0),
|
|
526
|
-
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", {
|
|
527
534
|
x: a.center.endX,
|
|
528
535
|
y: a.center.endY,
|
|
529
536
|
"text-anchor": n(rt)(a, !1, 12).anchor,
|
|
530
537
|
fill: e.value.style.chart.layout.segmentNames.useSerieColor ? a.color : e.value.style.chart.layout.segmentNames.color,
|
|
531
538
|
"font-size": l.value.segmentFontSize,
|
|
532
539
|
"font-weight": e.value.style.chart.layout.segmentNames.bold ? "bold" : "normal"
|
|
533
|
-
},
|
|
534
|
-
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", {
|
|
535
542
|
key: `arc_${r}`,
|
|
536
543
|
d: a.arcSlice,
|
|
537
544
|
fill: "#FFFFFF",
|
|
538
545
|
stroke: "none",
|
|
539
546
|
"stroke-linecap": "round",
|
|
540
|
-
filter: `url(#blur_${
|
|
547
|
+
filter: `url(#blur_${w.value})`
|
|
541
548
|
}, null, 8, Pt))), 128)) : c("", !0),
|
|
542
|
-
e.value.style.chart.layout.segmentSeparators.show ? (s(), u(
|
|
543
|
-
|
|
549
|
+
e.value.style.chart.layout.segmentSeparators.show ? (s(), u(k, { key: 7 }, [
|
|
550
|
+
g("line", A(pe.value, {
|
|
544
551
|
stroke: e.value.style.chart.backgroundColor,
|
|
545
552
|
"stroke-width": e.value.style.chart.layout.segmentSeparators.strokeWidth + 2,
|
|
546
553
|
"stroke-linecap": "round"
|
|
547
554
|
}), null, 16, Nt),
|
|
548
|
-
|
|
555
|
+
g("line", A(pe.value, {
|
|
549
556
|
stroke: e.value.style.chart.layout.segmentSeparators.stroke,
|
|
550
557
|
"stroke-width": e.value.style.chart.layout.segmentSeparators.strokeWidth,
|
|
551
558
|
"stroke-linecap": "round"
|
|
552
559
|
}), null, 16, Xt),
|
|
553
|
-
(s(!0), u(
|
|
560
|
+
(s(!0), u(k, null, S(ge.value, (a) => (s(), u("line", A({ ref_for: !0 }, a, {
|
|
554
561
|
stroke: e.value.style.chart.backgroundColor,
|
|
555
562
|
"stroke-width": e.value.style.chart.layout.segmentSeparators.strokeWidth + 2,
|
|
556
563
|
"stroke-linecap": "round"
|
|
557
564
|
}), null, 16, It))), 256)),
|
|
558
|
-
(s(!0), u(
|
|
565
|
+
(s(!0), u(k, null, S(ge.value, (a) => (s(), u("line", A({ ref_for: !0 }, a, {
|
|
559
566
|
stroke: e.value.style.chart.layout.segmentSeparators.stroke,
|
|
560
567
|
"stroke-width": e.value.style.chart.layout.segmentSeparators.strokeWidth,
|
|
561
568
|
"stroke-linecap": "round"
|
|
562
569
|
}), null, 16, Yt))), 256))
|
|
563
570
|
], 64)) : c("", !0),
|
|
564
571
|
e.value.style.chart.layout.markers.show ? (s(), u("g", At, [
|
|
565
|
-
(s(!0), u(
|
|
566
|
-
x: n(
|
|
572
|
+
(s(!0), u(k, null, S(h.value, (a, r) => (s(), u("text", {
|
|
573
|
+
x: n(C)({
|
|
567
574
|
centerX: i.value.x1,
|
|
568
575
|
centerY: v.value.base,
|
|
569
576
|
initX: a.center.startX,
|
|
570
577
|
initY: a.center.startY,
|
|
571
578
|
offset: l.value.markerOffset
|
|
572
579
|
}).x,
|
|
573
|
-
y: n(
|
|
580
|
+
y: n(C)({
|
|
574
581
|
centerX: i.value.x1,
|
|
575
582
|
centerY: v.value.base,
|
|
576
583
|
initX: a.center.startX,
|
|
@@ -581,7 +588,7 @@ const ht = ["id"], yt = { key: 0 }, ft = ["xmlns", "viewBox"], mt = ["width", "h
|
|
|
581
588
|
"font-size": l.value.labelFontSize * e.value.style.chart.layout.markers.fontSizeRatio,
|
|
582
589
|
"font-weight": `${e.value.style.chart.layout.markers.bold ? "bold" : "normal"}`,
|
|
583
590
|
fill: e.value.style.chart.layout.markers.color
|
|
584
|
-
},
|
|
591
|
+
}, P(n(J)(
|
|
585
592
|
e.value.style.chart.layout.markers.formatter,
|
|
586
593
|
a.from,
|
|
587
594
|
n(K)({
|
|
@@ -594,14 +601,14 @@ const ht = ["id"], yt = { key: 0 }, ft = ["xmlns", "viewBox"], mt = ["width", "h
|
|
|
594
601
|
])) : c("", !0),
|
|
595
602
|
e.value.style.chart.layout.markers.show ? (s(), u("text", {
|
|
596
603
|
key: 9,
|
|
597
|
-
x: n(
|
|
604
|
+
x: n(C)({
|
|
598
605
|
centerX: l.value.width / 2,
|
|
599
606
|
centerY: v.value.base,
|
|
600
607
|
initX: h.value.at(-1).endX,
|
|
601
608
|
initY: h.value.at(-1).endY,
|
|
602
609
|
offset: l.value.markerOffset
|
|
603
610
|
}).x,
|
|
604
|
-
y: n(
|
|
611
|
+
y: n(C)({
|
|
605
612
|
centerX: l.value.width / 2,
|
|
606
613
|
centerY: v.value.base,
|
|
607
614
|
initX: h.value.at(-1).endX,
|
|
@@ -612,7 +619,7 @@ const ht = ["id"], yt = { key: 0 }, ft = ["xmlns", "viewBox"], mt = ["width", "h
|
|
|
612
619
|
"font-size": l.value.labelFontSize * e.value.style.chart.layout.markers.fontSizeRatio,
|
|
613
620
|
"font-weight": `${e.value.style.chart.layout.markers.bold ? "bold" : "normal"}`,
|
|
614
621
|
fill: e.value.style.chart.layout.markers.color
|
|
615
|
-
},
|
|
622
|
+
}, P(n(J)(
|
|
616
623
|
e.value.style.chart.layout.markers.formatter,
|
|
617
624
|
N.value,
|
|
618
625
|
n(K)({
|
|
@@ -622,7 +629,7 @@ const ht = ["id"], yt = { key: 0 }, ft = ["xmlns", "viewBox"], mt = ["width", "h
|
|
|
622
629
|
r: e.value.style.chart.layout.markers.roundingValue
|
|
623
630
|
})
|
|
624
631
|
)), 9, Et)) : c("", !0),
|
|
625
|
-
e.value.style.chart.layout.pointer.show ? (s(), u(
|
|
632
|
+
e.value.style.chart.layout.pointer.show ? (s(), u(k, { key: 10 }, [
|
|
626
633
|
e.value.style.chart.layout.pointer.type === "rounded" ? (s(), u("g", Gt, [
|
|
627
634
|
isNaN(i.value.x2) ? c("", !0) : (s(), u("line", {
|
|
628
635
|
key: 0,
|
|
@@ -640,7 +647,7 @@ const ht = ["id"], yt = { key: 0 }, ft = ["xmlns", "viewBox"], mt = ["width", "h
|
|
|
640
647
|
y1: i.value.y1,
|
|
641
648
|
x2: i.value.x2,
|
|
642
649
|
y2: i.value.y2,
|
|
643
|
-
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,
|
|
644
651
|
"stroke-linecap": "round",
|
|
645
652
|
"stroke-width": l.value.pointerStrokeWidth * 0.7
|
|
646
653
|
}, null, 8, Wt)),
|
|
@@ -653,26 +660,26 @@ const ht = ["id"], yt = { key: 0 }, ft = ["xmlns", "viewBox"], mt = ["width", "h
|
|
|
653
660
|
stroke: "white",
|
|
654
661
|
"stroke-linecap": "round",
|
|
655
662
|
"stroke-width": l.value.pointerStrokeWidth * 0.3,
|
|
656
|
-
filter: `url(#blur_${
|
|
663
|
+
filter: `url(#blur_${w.value})`
|
|
657
664
|
}, null, 8, jt)) : c("", !0)
|
|
658
665
|
])) : (s(), u("g", Tt, [
|
|
659
666
|
ye.value ? (s(), u("path", {
|
|
660
667
|
key: 0,
|
|
661
668
|
d: ye.value,
|
|
662
|
-
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,
|
|
663
670
|
stroke: e.value.style.chart.layout.pointer.stroke,
|
|
664
671
|
"stroke-width": e.value.style.chart.layout.pointer.circle.strokeWidth,
|
|
665
672
|
"stroke-linejoin": "round"
|
|
666
673
|
}, null, 8, Lt)) : c("", !0)
|
|
667
674
|
])),
|
|
668
|
-
|
|
675
|
+
g("circle", {
|
|
669
676
|
cx: l.value.width / 2,
|
|
670
677
|
cy: v.value.base,
|
|
671
678
|
fill: e.value.style.chart.layout.pointer.circle.color,
|
|
672
679
|
r: l.value.pointerRadius <= 0 ? 1e-4 : l.value.pointerRadius,
|
|
673
680
|
"stroke-width": e.value.style.chart.layout.pointer.circle.strokeWidth,
|
|
674
681
|
stroke: e.value.style.chart.layout.pointer.circle.stroke
|
|
675
|
-
}, null, 8,
|
|
682
|
+
}, null, 8, Bt)
|
|
676
683
|
], 64)) : c("", !0),
|
|
677
684
|
e.value.style.chart.legend.show ? (s(), u("text", {
|
|
678
685
|
key: 11,
|
|
@@ -681,8 +688,8 @@ const ht = ["id"], yt = { key: 0 }, ft = ["xmlns", "viewBox"], mt = ["width", "h
|
|
|
681
688
|
"text-anchor": "middle",
|
|
682
689
|
"font-size": l.value.legendFontSize,
|
|
683
690
|
"font-weight": "bold",
|
|
684
|
-
fill: e.value.style.chart.legend.useRatingColor ?
|
|
685
|
-
},
|
|
691
|
+
fill: e.value.style.chart.legend.useRatingColor ? D.value : e.value.style.chart.legend.color
|
|
692
|
+
}, P(n(J)(
|
|
686
693
|
e.value.style.chart.legend.formatter,
|
|
687
694
|
f.value,
|
|
688
695
|
n(K)({
|
|
@@ -691,11 +698,11 @@ const ht = ["id"], yt = { key: 0 }, ft = ["xmlns", "viewBox"], mt = ["width", "h
|
|
|
691
698
|
s: e.value.style.chart.legend.suffix,
|
|
692
699
|
r: e.value.style.chart.legend.roundingValue
|
|
693
700
|
})
|
|
694
|
-
)), 9,
|
|
695
|
-
|
|
701
|
+
)), 9, Dt)) : c("", !0),
|
|
702
|
+
x(t.$slots, "svg", { svg: l.value }, void 0, !0)
|
|
696
703
|
], 14, ft)) : c("", !0),
|
|
697
704
|
t.$slots.watermark ? (s(), u("div", Vt, [
|
|
698
|
-
|
|
705
|
+
x(t.$slots, "watermark", W(j({ isPrinting: n(ce) || n(ve) })), void 0, !0)
|
|
699
706
|
])) : c("", !0),
|
|
700
707
|
R.value ? c("", !0) : (s(), U(n(Oe), {
|
|
701
708
|
key: 6,
|
|
@@ -709,11 +716,11 @@ const ht = ["id"], yt = { key: 0 }, ft = ["xmlns", "viewBox"], mt = ["width", "h
|
|
|
709
716
|
}
|
|
710
717
|
}
|
|
711
718
|
}, null, 8, ["config"])),
|
|
712
|
-
|
|
719
|
+
g("div", {
|
|
713
720
|
ref_key: "chartLegend",
|
|
714
721
|
ref: ae
|
|
715
722
|
}, [
|
|
716
|
-
|
|
723
|
+
x(t.$slots, "legend", { legend: O.value }, void 0, !0)
|
|
717
724
|
], 512),
|
|
718
725
|
t.$slots.source ? (s(), u("div", {
|
|
719
726
|
key: 7,
|
|
@@ -721,11 +728,11 @@ const ht = ["id"], yt = { key: 0 }, ft = ["xmlns", "viewBox"], mt = ["width", "h
|
|
|
721
728
|
ref: le,
|
|
722
729
|
dir: "auto"
|
|
723
730
|
}, [
|
|
724
|
-
|
|
731
|
+
x(t.$slots, "source", {}, void 0, !0)
|
|
725
732
|
], 512)) : c("", !0)
|
|
726
733
|
], 46, ht));
|
|
727
734
|
}
|
|
728
|
-
}, sa = /* @__PURE__ */ dt(qt, [["__scopeId", "data-v-
|
|
735
|
+
}, sa = /* @__PURE__ */ dt(qt, [["__scopeId", "data-v-820009be"]]);
|
|
729
736
|
export {
|
|
730
737
|
sa as default
|
|
731
738
|
};
|