vue-data-ui 3.16.0 → 3.16.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/dist/ColorPicker-B0mV4xzu.js +255 -0
- package/dist/{NonSvgPenAndPaper-vqweC0WU.js → NonSvgPenAndPaper-VyJFyJ6X.js} +1 -1
- package/dist/{PackageVersion-IIGK_e2C.js → PackageVersion-DPO-OOVI.js} +1 -1
- package/dist/{PenAndPaper-DARlvvKW.js → PenAndPaper-Ct3qJ4lA.js} +109 -101
- package/dist/{UserOptions-DWHf8jyO.js → UserOptions-rW2fRf3V.js} +2 -2
- package/dist/components/vue-ui-3d-bar.js +1 -1
- package/dist/components/vue-ui-age-pyramid.js +1 -1
- package/dist/components/vue-ui-annotator.js +1 -1
- package/dist/components/vue-ui-bullet.js +1 -1
- package/dist/components/vue-ui-bump.js +1 -1
- package/dist/components/vue-ui-candlestick.js +1 -1
- package/dist/components/vue-ui-carousel-table.js +1 -1
- package/dist/components/vue-ui-chestnut.js +1 -1
- package/dist/components/vue-ui-chord.js +1 -1
- package/dist/components/vue-ui-circle-pack.js +1 -1
- package/dist/components/vue-ui-cursor.js +1 -1
- package/dist/components/vue-ui-dag.js +1 -1
- package/dist/components/vue-ui-dashboard.js +1 -1
- package/dist/components/vue-ui-digits.js +1 -1
- package/dist/components/vue-ui-donut-evolution.js +1 -1
- package/dist/components/vue-ui-donut.js +1 -1
- package/dist/components/vue-ui-dumbbell.js +1 -1
- package/dist/components/vue-ui-flow.js +1 -1
- package/dist/components/vue-ui-funnel.js +1 -1
- package/dist/components/vue-ui-galaxy.js +1 -1
- package/dist/components/vue-ui-gauge.js +1 -1
- package/dist/components/vue-ui-geo.js +1 -1
- package/dist/components/vue-ui-gizmo.js +1 -1
- package/dist/components/vue-ui-heatmap.js +1 -1
- package/dist/components/vue-ui-history-plot.js +1 -1
- package/dist/components/vue-ui-horizontal-bar.js +1 -1
- package/dist/components/vue-ui-kpi.js +1 -1
- package/dist/components/vue-ui-molecule.js +1 -1
- package/dist/components/vue-ui-mood-radar.js +1 -1
- package/dist/components/vue-ui-nested-donuts.js +1 -1
- package/dist/components/vue-ui-onion.js +1 -1
- package/dist/components/vue-ui-parallel-coordinate-plot.js +1 -1
- package/dist/components/vue-ui-quadrant.js +1 -1
- package/dist/components/vue-ui-quick-chart.js +1 -1
- package/dist/components/vue-ui-radar.js +1 -1
- package/dist/components/vue-ui-relation-circle.js +1 -1
- package/dist/components/vue-ui-ridgeline.js +1 -1
- package/dist/components/vue-ui-rings.js +1 -1
- package/dist/components/vue-ui-scatter.js +1 -1
- package/dist/components/vue-ui-skeleton.js +1 -1
- package/dist/components/vue-ui-spark-trend.js +1 -1
- package/dist/components/vue-ui-sparkbar.js +1 -1
- package/dist/components/vue-ui-sparkgauge.js +1 -1
- package/dist/components/vue-ui-sparkhistogram.js +1 -1
- package/dist/components/vue-ui-sparkline.js +1 -1
- package/dist/components/vue-ui-sparkstackbar.js +1 -1
- package/dist/components/vue-ui-stackbar.js +1 -1
- package/dist/components/vue-ui-stackline.js +1 -1
- package/dist/components/vue-ui-strip-plot.js +1 -1
- package/dist/components/vue-ui-table-heatmap.js +1 -1
- package/dist/components/vue-ui-table-sparkline.js +1 -1
- package/dist/components/vue-ui-table.js +1 -1
- package/dist/components/vue-ui-thermometer.js +1 -1
- package/dist/components/vue-ui-timer.js +1 -1
- package/dist/components/vue-ui-tiremarks.js +1 -1
- package/dist/components/vue-ui-treemap.js +1 -1
- package/dist/components/vue-ui-vertical-bar.js +1 -1
- package/dist/components/vue-ui-waffle.js +1 -1
- package/dist/components/vue-ui-wheel.js +1 -1
- package/dist/components/vue-ui-word-cloud.js +1 -1
- package/dist/components/vue-ui-world.js +1 -1
- package/dist/components/vue-ui-xy-canvas.js +1 -1
- package/dist/components/vue-ui-xy.js +1 -1
- package/dist/style.css +1 -1
- package/dist/types/vue-data-ui.d.ts +1 -0
- package/dist/{vue-data-ui-CykQ4SW2.js → vue-data-ui-DXGkXRnC.js} +63 -63
- package/dist/vue-data-ui.js +63 -63
- package/dist/{vue-ui-3d-bar-D5KRiVmZ.js → vue-ui-3d-bar-BaFpQnd5.js} +1 -1
- package/dist/{vue-ui-age-pyramid-QfZ1J5Xx.js → vue-ui-age-pyramid-CRM498Pc.js} +342 -341
- package/dist/{vue-ui-annotator-CpSMITlP.js → vue-ui-annotator-CkPi9moo.js} +1 -1
- package/dist/{vue-ui-bullet-B-mo7tzz.js → vue-ui-bullet-BBiwof3c.js} +1 -1
- package/dist/{vue-ui-bump-NfZcJ9Q0.js → vue-ui-bump-Brxpu4xV.js} +1 -1
- package/dist/{vue-ui-candlestick-CGU-0rrF.js → vue-ui-candlestick-DAnZv77-.js} +240 -239
- package/dist/{vue-ui-carousel-table-BsdD3wU7.js → vue-ui-carousel-table-BHRZBYY0.js} +1 -1
- package/dist/{vue-ui-chestnut-JpoNeiHD.js → vue-ui-chestnut-CbrYnRgm.js} +1 -1
- package/dist/{vue-ui-chord-CxhxjRQz.js → vue-ui-chord-CaX_IUVs.js} +1 -1
- package/dist/{vue-ui-circle-pack-DbxOzzk2.js → vue-ui-circle-pack-CR3h53sc.js} +1 -1
- package/dist/{vue-ui-cursor-CZGKKkeT.js → vue-ui-cursor-Cjfazw7Z.js} +1 -1
- package/dist/{vue-ui-dag-gal2eIv-.js → vue-ui-dag-B9vH3c66.js} +1 -1
- package/dist/{vue-ui-dashboard-ClnkPMc5.js → vue-ui-dashboard-DWll05qs.js} +62 -62
- package/dist/{vue-ui-digits-DColgbmH.js → vue-ui-digits-DcM67rMx.js} +1 -1
- package/dist/{vue-ui-donut-Bckj-DX2.js → vue-ui-donut-Be5G38P5.js} +395 -394
- package/dist/{vue-ui-donut-evolution-B6HtvZVs.js → vue-ui-donut-evolution-BLSesj3c.js} +265 -264
- package/dist/{vue-ui-dumbbell-r3Jv9uut.js → vue-ui-dumbbell-DIMiCY4r.js} +1 -1
- package/dist/{vue-ui-flow-BxfLqYXa.js → vue-ui-flow-zvZylhgr.js} +1 -1
- package/dist/{vue-ui-funnel-B6Gevxqh.js → vue-ui-funnel-CSri-oWm.js} +1 -1
- package/dist/{vue-ui-galaxy-BJr1ddJZ.js → vue-ui-galaxy-CGykxsAI.js} +1 -1
- package/dist/{vue-ui-gauge-Q-Slhgwx.js → vue-ui-gauge-D1MNB9Jq.js} +1 -1
- package/dist/{vue-ui-geo-Dow4oyTv.js → vue-ui-geo-DdJDGhG2.js} +1 -1
- package/dist/{vue-ui-gizmo-zpVjAoDG.js → vue-ui-gizmo-BZYRHGFm.js} +1 -1
- package/dist/{vue-ui-heatmap-mKX5Bzql.js → vue-ui-heatmap-CryOx6XK.js} +494 -482
- package/dist/{vue-ui-history-plot-D6kiRkhD.js → vue-ui-history-plot-C85iw9Kl.js} +1 -1
- package/dist/{vue-ui-horizontal-bar-FKkR13e7.js → vue-ui-horizontal-bar-BoBZOybC.js} +430 -429
- package/dist/{vue-ui-kpi-CMRe29m5.js → vue-ui-kpi-DHrolXw6.js} +1 -1
- package/dist/{vue-ui-molecule-7eT7D17p.js → vue-ui-molecule-DJ_BQ4DK.js} +1 -1
- package/dist/{vue-ui-mood-radar-DsC0X_C2.js → vue-ui-mood-radar-CBE02TpQ.js} +1 -1
- package/dist/{vue-ui-nested-donuts-FbiXKFZX.js → vue-ui-nested-donuts-YTFtb4CL.js} +284 -283
- package/dist/{vue-ui-onion-CjWiTq2x.js → vue-ui-onion-B9l81-PS.js} +1 -1
- package/dist/{vue-ui-parallel-coordinate-plot-kl1jgKIX.js → vue-ui-parallel-coordinate-plot-C1e_rs8J.js} +1 -1
- package/dist/{vue-ui-quadrant-CyalzEfW.js → vue-ui-quadrant-C1qsLCRn.js} +556 -555
- package/dist/{vue-ui-quick-chart-DgWwf7SJ.js → vue-ui-quick-chart-DFoz3WiA.js} +360 -359
- package/dist/{vue-ui-radar-Bw9veQKf.js → vue-ui-radar-Cmo3p-UA.js} +1 -1
- package/dist/{vue-ui-relation-circle-D4-9g-5t.js → vue-ui-relation-circle-BqwznVwf.js} +1 -1
- package/dist/{vue-ui-ridgeline-BZy69VT6.js → vue-ui-ridgeline-CDk9eXJq.js} +1 -1
- package/dist/{vue-ui-rings-LDs6OFnx.js → vue-ui-rings-BRkGoQdL.js} +1 -1
- package/dist/{vue-ui-scatter-i_hakuFa.js → vue-ui-scatter-BxDtWASQ.js} +479 -466
- package/dist/{vue-ui-skeleton-F2qaXsQ2.js → vue-ui-skeleton-D6kTb9aO.js} +1 -1
- package/dist/{vue-ui-spark-trend-ZIMooBi3.js → vue-ui-spark-trend-D8Mf2A1w.js} +1 -1
- package/dist/{vue-ui-sparkbar-BYRKG_Mm.js → vue-ui-sparkbar-BbYj56c3.js} +1 -1
- package/dist/{vue-ui-sparkgauge-BM0mnDHp.js → vue-ui-sparkgauge-DXzOSLRb.js} +1 -1
- package/dist/{vue-ui-sparkhistogram-z4-7Q6J8.js → vue-ui-sparkhistogram-DMfSx1iH.js} +1 -1
- package/dist/{vue-ui-sparkline-9m1__jVp.js → vue-ui-sparkline-D-rQ9PsC.js} +439 -438
- package/dist/{vue-ui-sparkstackbar-uM98VUDw.js → vue-ui-sparkstackbar-DK5n8IKP.js} +1 -1
- package/dist/{vue-ui-stackbar-DcSJuwTC.js → vue-ui-stackbar-BHthy6jf.js} +212 -211
- package/dist/{vue-ui-stackline-Dl_FfJAO.js → vue-ui-stackline-C6-WNpKD.js} +363 -362
- package/dist/{vue-ui-strip-plot-CcV8bOkg.js → vue-ui-strip-plot-CHu-1ilI.js} +1 -1
- package/dist/{vue-ui-table-Dx-N-eF1.js → vue-ui-table-DW9JGsLq.js} +2 -2
- package/dist/{vue-ui-table-heatmap-CVxNZzGe.js → vue-ui-table-heatmap-LYqoBit9.js} +1 -1
- package/dist/{vue-ui-table-sparkline-DdtbqaUL.js → vue-ui-table-sparkline-CXK1dFr-.js} +1 -1
- package/dist/{vue-ui-thermometer-Clwz-wUE.js → vue-ui-thermometer-BN8tflOz.js} +1 -1
- package/dist/{vue-ui-timer-BYVk_bvz.js → vue-ui-timer-DGT0UBOF.js} +1 -1
- package/dist/{vue-ui-tiremarks-D5TSv5yw.js → vue-ui-tiremarks-BZ-osQqY.js} +1 -1
- package/dist/{vue-ui-treemap-C0zhPMxE.js → vue-ui-treemap-98KaVRyd.js} +388 -387
- package/dist/{vue-ui-waffle-BtjLPkLm.js → vue-ui-waffle-Cb7oJnIc.js} +1 -1
- package/dist/{vue-ui-wheel-DSlnowV4.js → vue-ui-wheel-sfew1fjw.js} +1 -1
- package/dist/{vue-ui-word-cloud-DFdiRCqc.js → vue-ui-word-cloud-vq1t9JHr.js} +1 -1
- package/dist/{vue-ui-world-CymT7_Ep.js → vue-ui-world-CN0f6elD.js} +1 -1
- package/dist/{vue-ui-xy-B9Q4FR0g.js → vue-ui-xy-BdzEiImZ.js} +956 -955
- package/dist/{vue-ui-xy-canvas-CrnBxoa0.js → vue-ui-xy-canvas-CWQzUQzY.js} +113 -113
- package/package.json +1 -1
- package/dist/ColorPicker-DQ5sdRrl.js +0 -244
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { computed as
|
|
2
|
-
import { o as yl, q as Kt, r as ua, j as ra, t as gl, n as ia, p as Re, K as ca, s as pl, k as pe, l as ve, a4 as ml, ax as va, X as da, u as St, v as ha, a5 as fa, ae as
|
|
1
|
+
import { computed as m, defineAsyncComponent as Me, useSlots as aa, shallowRef as Ie, ref as b, onMounted as vl, onBeforeUnmount as dl, toRefs as oa, watch as je, openBlock as u, createElementBlock as i, normalizeStyle as L, normalizeClass as qt, createElementVNode as w, toDisplayString as ye, createBlock as ge, createCommentVNode as d, unref as s, withCtx as _, renderSlot as k, normalizeProps as K, guardReactiveProps as Q, createSlots as Wt, createVNode as At, Fragment as P, renderList as J, mergeProps as jt, withDirectives as Tt, vShow as Pt, Teleport as na, resolveDynamicComponent as sa, createTextVNode as hl, nextTick as fl } from "vue";
|
|
2
|
+
import { o as yl, q as Kt, r as ua, j as ra, t as gl, n as ia, p as Re, K as ca, s as pl, k as pe, l as ve, a4 as ml, ax as va, X as da, u as St, v as ha, a5 as fa, ae as X, G as bl, a6 as we, a7 as A, as as wl, C as ya, m as ga, a0 as pa, a1 as ma, T as ba, ay as kl, ai as xl } from "./lib-DBptbyyI.js";
|
|
3
3
|
import { f as wa, b as ka } from "./labelUtils-CqTHa20R.js";
|
|
4
4
|
import { t as xa, u as $a } from "./useResponsive-DfdjqQps.js";
|
|
5
5
|
import { u as Ca } from "./useConfig-DO94Aj5s.js";
|
|
@@ -33,37 +33,37 @@ function Na(it) {
|
|
|
33
33
|
segregated: Yt,
|
|
34
34
|
isSmallArc: Dt
|
|
35
35
|
} = it;
|
|
36
|
-
return { smallArcLayoutsClassic:
|
|
36
|
+
return { smallArcLayoutsClassic: m(() => {
|
|
37
37
|
if (ct.value.type !== "classic") return {};
|
|
38
38
|
const Qe = {}, E = Lt.value || [];
|
|
39
39
|
if (!E.length) return Qe;
|
|
40
|
-
const
|
|
41
|
-
function pt({ midX: h, midY:
|
|
40
|
+
const B = Ke.value.width / 2, M = Ke.value.height / 2, Fe = vt.value.top + 16, ht = Ke.value.height - vt.value.bottom - 16, Je = Mt.value, ft = Je / 3, yt = Je * 1.5, ne = 8, me = 6, Ze = B - (dt.value + me), et = B + (dt.value + me), gt = !!ct.value.style.chart.layout.curvedMarkers;
|
|
41
|
+
function pt({ midX: h, midY: g, bandX: f, bandY: C }) {
|
|
42
42
|
if (!gt)
|
|
43
|
-
return `M ${h} ${
|
|
44
|
-
const
|
|
43
|
+
return `M ${h} ${g} L ${h} ${C} L ${f} ${C}`;
|
|
44
|
+
const I = f < B ? -1 : 1, F = f - h, le = C - g, ae = Math.sqrt(F * F + le * le) || 1, ke = h - B, p = g - M, oe = Math.sqrt(ke * ke + p * p) || 1, se = ke / oe, z = p / oe, Oe = oe + 9;
|
|
45
45
|
function e({ x: _e, y: de }) {
|
|
46
|
-
const re = _e -
|
|
46
|
+
const re = _e - B, Z = de - M, Ae = Math.sqrt(re * re + Z * Z) || 1;
|
|
47
47
|
if (Ae >= Oe) return { x: _e, y: de };
|
|
48
48
|
const Te = Oe / Ae;
|
|
49
49
|
return {
|
|
50
|
-
x:
|
|
51
|
-
y:
|
|
50
|
+
x: B + re * Te,
|
|
51
|
+
y: M + Z * Te
|
|
52
52
|
};
|
|
53
53
|
}
|
|
54
54
|
if (ae < 56) {
|
|
55
|
-
const _e =
|
|
55
|
+
const _e = F / ae;
|
|
56
56
|
let re = -(le / ae), Z = _e;
|
|
57
|
-
const Ae = (h + f) * 0.5, Te = (
|
|
58
|
-
(He -
|
|
59
|
-
const at = 0.78, $t = h +
|
|
57
|
+
const Ae = (h + f) * 0.5, Te = (g + C) * 0.5, W = Ae + re, kt = Te + Z, Xt = (W - B) * (W - B) + (kt - M) * (kt - M), He = Ae - re, Ge = Te - Z;
|
|
58
|
+
(He - B) * (He - B) + (Ge - M) * (Ge - M) > Xt && (re = -re, Z = -Z);
|
|
59
|
+
const at = 0.78, $t = h + F * at, Nt = g + le * at, qe = Math.max(0, Math.min(1, (ae - 18) / 44)), x = qe * qe * (3 - 2 * qe);
|
|
60
60
|
let n = 2.5 + x * 4, he = 1 + x * 2.5;
|
|
61
61
|
n *= 0.9;
|
|
62
62
|
const ot = {
|
|
63
63
|
x: $t + re * n + se * he,
|
|
64
|
-
y: Nt + Z * n +
|
|
65
|
-
},
|
|
66
|
-
return `M ${h} ${
|
|
64
|
+
y: Nt + Z * n + z * he
|
|
65
|
+
}, U = e(ot);
|
|
66
|
+
return `M ${h} ${g} Q ${U.x} ${U.y} ${f} ${C}`;
|
|
67
67
|
}
|
|
68
68
|
let $e = ae * 0.34;
|
|
69
69
|
$e < 20 && ($e = 20), $e > 46 && ($e = 46);
|
|
@@ -71,112 +71,112 @@ function Na(it) {
|
|
|
71
71
|
ue < 22 && (ue = 22), ue > 70 && (ue = 70);
|
|
72
72
|
const Ye = {
|
|
73
73
|
x: h + se * $e,
|
|
74
|
-
y:
|
|
75
|
-
}, Ue =
|
|
76
|
-
x: f -
|
|
74
|
+
y: g + z * $e
|
|
75
|
+
}, Ue = B + I * Math.max(Math.abs(f - B), Oe), Bt = {
|
|
76
|
+
x: f - I * Math.min(ue, Math.abs(Ue - f) * 0.75),
|
|
77
77
|
y: C
|
|
78
|
-
},
|
|
79
|
-
return `M ${h} ${
|
|
78
|
+
}, Y = e(Ye), Ce = e(Bt);
|
|
79
|
+
return `M ${h} ${g} C ${Y.x} ${Y.y} ${Ce.x} ${Ce.y} ${f} ${C}`;
|
|
80
80
|
}
|
|
81
81
|
function mt(h) {
|
|
82
|
-
const
|
|
83
|
-
return yt +
|
|
82
|
+
const g = String(h ?? "").split(/\n/g), f = Math.max(0, g.length - 1), C = Je * 1.2, I = f * C;
|
|
83
|
+
return yt + I;
|
|
84
84
|
}
|
|
85
|
-
function bt({ arc: h, index:
|
|
86
|
-
const { x: f, y: C } = It(h.path),
|
|
85
|
+
function bt({ arc: h, index: g }) {
|
|
86
|
+
const { x: f, y: C } = It(h.path), I = Ft(h).x, F = zt(h) - 3.5, le = mt(h.name);
|
|
87
87
|
return {
|
|
88
88
|
arc: h,
|
|
89
|
-
index:
|
|
89
|
+
index: g,
|
|
90
90
|
midX: f,
|
|
91
91
|
midY: C,
|
|
92
|
-
inlineMarkerX:
|
|
93
|
-
inlineMarkerY:
|
|
92
|
+
inlineMarkerX: I,
|
|
93
|
+
inlineMarkerY: F,
|
|
94
94
|
labelHeight: le
|
|
95
95
|
};
|
|
96
96
|
}
|
|
97
97
|
function ze(h) {
|
|
98
|
-
const { arc:
|
|
99
|
-
return Ot.value === f || Yt.value.includes(f) ? !1 : Dt(
|
|
98
|
+
const { arc: g } = h, f = g.seriesIndex ?? 0;
|
|
99
|
+
return Ot.value === f || Yt.value.includes(f) ? !1 : Dt(g, f);
|
|
100
100
|
}
|
|
101
101
|
function tt(h) {
|
|
102
|
-
const
|
|
103
|
-
return
|
|
102
|
+
const g = h.inlineMarkerY < M, f = h.inlineMarkerX < B;
|
|
103
|
+
return g && f ? "TL" : g && !f ? "TR" : !g && f ? "BL" : "BR";
|
|
104
104
|
}
|
|
105
|
-
function
|
|
106
|
-
if (
|
|
107
|
-
h.sort((C,
|
|
105
|
+
function Ve(h, g) {
|
|
106
|
+
if (g.startsWith("T")) {
|
|
107
|
+
h.sort((C, I) => C.inlineMarkerY - I.inlineMarkerY || C.index - I.index);
|
|
108
108
|
return;
|
|
109
109
|
}
|
|
110
|
-
h.sort((C,
|
|
110
|
+
h.sort((C, I) => I.inlineMarkerY - C.inlineMarkerY || C.index - I.index);
|
|
111
111
|
}
|
|
112
|
-
function
|
|
112
|
+
function Ee({ side: h, markerX: g, markerY: f, labelY: C, connectorPath: I }) {
|
|
113
113
|
return {
|
|
114
114
|
side: h,
|
|
115
|
-
labelX: h === "left" ?
|
|
115
|
+
labelX: h === "left" ? g - ne : g + ne,
|
|
116
116
|
labelY: C + ft,
|
|
117
117
|
textAnchor: h === "left" ? "end" : "start",
|
|
118
|
-
markerX:
|
|
118
|
+
markerX: g,
|
|
119
119
|
markerY: f,
|
|
120
|
-
connectorPath:
|
|
120
|
+
connectorPath: I
|
|
121
121
|
};
|
|
122
122
|
}
|
|
123
|
-
function
|
|
123
|
+
function H({
|
|
124
124
|
candidateList: h,
|
|
125
|
-
side:
|
|
125
|
+
side: g,
|
|
126
126
|
bandMarkerX: f,
|
|
127
127
|
startY: C,
|
|
128
|
-
direction:
|
|
128
|
+
direction: I
|
|
129
129
|
}) {
|
|
130
|
-
let
|
|
130
|
+
let F = C;
|
|
131
131
|
h.forEach((le) => {
|
|
132
|
-
const { index: ae, midX: ke, midY:
|
|
132
|
+
const { index: ae, midX: ke, midY: p, labelHeight: oe } = le;
|
|
133
133
|
let se;
|
|
134
|
-
|
|
135
|
-
const
|
|
134
|
+
I === "down" ? (se = F, F += oe) : (F -= oe, se = F);
|
|
135
|
+
const z = se, lt = pt({
|
|
136
136
|
midX: ke,
|
|
137
|
-
midY:
|
|
137
|
+
midY: p,
|
|
138
138
|
bandX: f,
|
|
139
|
-
bandY:
|
|
139
|
+
bandY: z
|
|
140
140
|
});
|
|
141
|
-
Qe[ae] =
|
|
142
|
-
side:
|
|
141
|
+
Qe[ae] = Ee({
|
|
142
|
+
side: g,
|
|
143
143
|
markerX: f,
|
|
144
|
-
markerY:
|
|
144
|
+
markerY: z,
|
|
145
145
|
labelY: se,
|
|
146
146
|
connectorPath: lt
|
|
147
147
|
});
|
|
148
148
|
});
|
|
149
149
|
}
|
|
150
|
-
const wt = E.map((h,
|
|
150
|
+
const wt = E.map((h, g) => bt({ arc: h, index: g })).filter(ze), G = {
|
|
151
151
|
TL: [],
|
|
152
152
|
TR: [],
|
|
153
153
|
BL: [],
|
|
154
154
|
BR: []
|
|
155
155
|
};
|
|
156
156
|
return wt.forEach((h) => {
|
|
157
|
-
|
|
158
|
-
}), Object.keys(
|
|
159
|
-
|
|
160
|
-
}),
|
|
161
|
-
candidateList:
|
|
157
|
+
G[tt(h)].push(h);
|
|
158
|
+
}), Object.keys(G).forEach((h) => {
|
|
159
|
+
Ve(G[h], h);
|
|
160
|
+
}), H({
|
|
161
|
+
candidateList: G.TL,
|
|
162
162
|
side: "left",
|
|
163
163
|
bandMarkerX: Ze,
|
|
164
164
|
startY: Fe,
|
|
165
165
|
direction: "down"
|
|
166
|
-
}),
|
|
167
|
-
candidateList:
|
|
166
|
+
}), H({
|
|
167
|
+
candidateList: G.TR,
|
|
168
168
|
side: "right",
|
|
169
169
|
bandMarkerX: et,
|
|
170
170
|
startY: Fe,
|
|
171
171
|
direction: "down"
|
|
172
|
-
}),
|
|
173
|
-
candidateList:
|
|
172
|
+
}), G.BL.length > 1 && H({
|
|
173
|
+
candidateList: G.BL,
|
|
174
174
|
side: "left",
|
|
175
175
|
bandMarkerX: Ze,
|
|
176
176
|
startY: ht,
|
|
177
177
|
direction: "up"
|
|
178
|
-
}),
|
|
179
|
-
candidateList:
|
|
178
|
+
}), G.BR.length > 1 && H({
|
|
179
|
+
candidateList: G.BR,
|
|
180
180
|
side: "right",
|
|
181
181
|
bandMarkerX: et,
|
|
182
182
|
startY: ht,
|
|
@@ -184,7 +184,7 @@ function Na(it) {
|
|
|
184
184
|
}), Qe;
|
|
185
185
|
}) };
|
|
186
186
|
}
|
|
187
|
-
const Ra = ["id"],
|
|
187
|
+
const Ra = ["id"], Va = ["id"], Ea = ["id"], Ua = { style: { position: "relative" } }, Ha = ["xmlns", "aria-describedby", "viewBox"], Ga = ["width", "height"], qa = { key: 1 }, Wa = ["id"], ja = ["stop-color"], Ka = ["offset", "stop-color"], Qa = ["offset", "stop-color"], Ja = ["stop-color"], Za = { key: 2 }, eo = ["id", "cx", "cy"], to = ["stop-color", "stop-opacity"], lo = ["stop-color"], ao = ["id"], oo = ["id"], no = ["id"], so = ["flood-color"], uo = ["id"], ro = ["flood-color"], io = ["d", "stroke", "filter"], co = ["d", "stroke", "filter"], vo = ["cx", "cy", "r", "fill", "filter"], ho = { key: 6 }, fo = ["stroke", "d"], yo = ["d", "fill", "stroke", "stroke-width", "filter"], go = { key: 0 }, po = ["d", "fill", "stroke", "stroke-width", "filter"], mo = { key: 0 }, bo = ["stroke", "d"], wo = { key: 0 }, ko = ["d", "stroke", "stroke-width", "filter"], xo = { key: 1 }, $o = ["d", "fill", "stroke", "stroke-width", "filter"], Co = ["d", "fill", "stroke", "stroke-width", "filter"], _o = { key: 1 }, Ao = ["cx", "cy", "r", "fill", "stroke", "stroke-width"], To = ["cx", "cy", "r", "fill", "stroke", "stroke-width"], Po = { key: 0 }, So = ["d", "fill", "stroke", "stroke-width"], Lo = ["cx", "cy", "r", "stroke"], Mo = ["cx", "cy", "r", "fill"], Io = ["cx", "cy", "r"], Fo = { key: 0 }, zo = ["d", "stroke", "fill", "onMouseenter", "onMouseleave", "onClick"], Oo = { key: 1 }, Yo = ["cx", "cy", "r"], Do = ["x", "y", "fill", "font-size"], Bo = ["x", "y", "fill", "font-size"], Xo = ["x", "y", "fill", "font-size"], No = ["x", "y", "fill", "font-size"], Ro = ["filter", "opacity"], Vo = { key: 0 }, Eo = ["x", "y"], Uo = { key: 1 }, Ho = ["cx", "cy", "fill", "stroke", "filter", "onClick", "onMouseenter", "onMouseleave"], Go = ["text-anchor", "x", "y", "onClick", "onMouseenter", "onMouseleave", "innerHTML"], qo = ["text-anchor", "x", "y", "fill", "font-size", "onClick", "onMouseenter", "onMouseleave"], Wo = ["text-anchor", "x", "y", "fill", "font-size", "onClick", "onMouseenter", "onMouseleave", "innerHTML"], jo = ["cx", "cy", "fill", "stroke", "filter", "onClick", "onMouseenter", "onMouseleave"], Ko = ["text-anchor", "x", "y", "onClick", "onMouseenter", "onMouseleave", "innerHTML"], Qo = ["text-anchor", "x", "y", "fill", "font-size", "onClick", "onMouseenter", "onMouseleave"], Jo = ["text-anchor", "x", "y", "fill", "font-size", "onClick", "onMouseenter", "onMouseleave", "innerHTML"], Zo = { key: 2 }, en = ["x", "y", "width"], tn = ["x", "y", "width"], ln = {
|
|
188
188
|
key: 0,
|
|
189
189
|
style: { position: "absolute", top: "100%", left: "0", width: "100%" },
|
|
190
190
|
"data-dom-to-png-ignore": "",
|
|
@@ -213,35 +213,35 @@ const Ra = ["id"], Ea = ["id"], Va = ["id"], Ua = { style: { position: "relative
|
|
|
213
213
|
},
|
|
214
214
|
emits: ["selectLegend", "selectDatapoint", "copyAlt"],
|
|
215
215
|
setup(it, { expose: ct, emit: Lt }) {
|
|
216
|
-
const Ke = Me(() => import("./Tooltip-Bf-kM3_A.js")), vt = Me(() => import("./BaseIcon-Cb3zzG6s.js")), Mt = Me(() => import("./vue-ui-accordion-nvggWcGN.js")), dt = Me(() => import("./DataTable-DT2kIdQ6.js")), It = Me(() => import("./PenAndPaper-
|
|
216
|
+
const Ke = Me(() => import("./Tooltip-Bf-kM3_A.js")), vt = Me(() => import("./BaseIcon-Cb3zzG6s.js")), Mt = Me(() => import("./vue-ui-accordion-nvggWcGN.js")), dt = Me(() => import("./DataTable-DT2kIdQ6.js")), It = Me(() => import("./PenAndPaper-Ct3qJ4lA.js")), Ft = Me(() => import("./UserOptions-rW2fRf3V.js")), zt = Me(() => import("./PackageVersion-DPO-OOVI.js")), Ot = Me(() => import("./BaseDraggableDialog-CIb-iD9g.js")), { vue_ui_donut: Yt } = Ca(), { isThemeValid: Dt, warnInvalidTheme: Jt } = Sa(), Qe = aa(), E = it, B = m({
|
|
217
217
|
get() {
|
|
218
218
|
return !!E.dataset && E.dataset.length;
|
|
219
219
|
},
|
|
220
220
|
set(t) {
|
|
221
221
|
return t;
|
|
222
222
|
}
|
|
223
|
-
}),
|
|
223
|
+
}), M = Ie(null), Fe = b(null), ht = b(null), Je = b(null), ft = Ie(null), yt = Ie(null), ne = Ie(null), me = Ie(null), Ze = Ie(null), et = Ie(null), gt = b(0), pt = b(0), mt = b(0), bt = b(!1), ze = b(null), tt = b(null), Ve = b(!1), Ee = b(!1), H = b(null), wt = b({ x: 0, y: 0 }), G = b("pointer"), h = b(!1), g = m({
|
|
224
224
|
get: () => e.value.style.chart.layout.labels.percentage.fontSize,
|
|
225
225
|
set: (t) => t
|
|
226
|
-
}), f =
|
|
226
|
+
}), f = m({
|
|
227
227
|
get: () => e.value.style.chart.layout.labels.name.fontSize,
|
|
228
228
|
set: (t) => t
|
|
229
|
-
}), C =
|
|
229
|
+
}), C = m({
|
|
230
230
|
get: () => e.value.style.chart.layout.labels.dataLabels.smallArcClusterFontSize,
|
|
231
231
|
set: (t) => t
|
|
232
232
|
});
|
|
233
|
-
let
|
|
234
|
-
const
|
|
235
|
-
!e.value.autoSize ||
|
|
236
|
-
|
|
237
|
-
const t = e.value, o = Fe.value, l =
|
|
233
|
+
let I = !1;
|
|
234
|
+
const F = () => {
|
|
235
|
+
!e.value.autoSize || I || (I = !0, requestAnimationFrame(() => {
|
|
236
|
+
I = !1;
|
|
237
|
+
const t = e.value, o = Fe.value, l = W.value;
|
|
238
238
|
if (!t.autoSize || !o || !l) return;
|
|
239
|
-
const [a, r, c,
|
|
239
|
+
const [a, r, c, y] = l.getAttribute("viewBox").split(" ").map(Number), $ = { x: a, y: r, width: c, height: y }, D = [
|
|
240
240
|
{
|
|
241
241
|
selector: ".vue-data-ui-datalabel-value",
|
|
242
242
|
baseSize: t.style.chart.layout.labels.percentage.fontSize,
|
|
243
243
|
minSize: t.style.chart.layout.labels.percentage.minFontSize,
|
|
244
|
-
sizeRef:
|
|
244
|
+
sizeRef: g
|
|
245
245
|
},
|
|
246
246
|
{
|
|
247
247
|
selector: ".vue-data-ui-datalabel-name",
|
|
@@ -256,8 +256,8 @@ const Ra = ["id"], Ea = ["id"], Va = ["id"], Ua = { style: { position: "relative
|
|
|
256
256
|
sizeRef: C
|
|
257
257
|
}
|
|
258
258
|
];
|
|
259
|
-
|
|
260
|
-
o.querySelectorAll(
|
|
259
|
+
D.map((V) => o.querySelectorAll(V.selector).length).reduce((V, Ne) => V + Ne, 0) !== 0 && D.forEach(({ selector: V, baseSize: Ne, minSize: Zl, sizeRef: ea }) => {
|
|
260
|
+
o.querySelectorAll(V).forEach((ta) => {
|
|
261
261
|
const la = ya({
|
|
262
262
|
el: ta,
|
|
263
263
|
bounds: $,
|
|
@@ -272,31 +272,31 @@ const Ra = ["id"], Ea = ["id"], Va = ["id"], Ua = { style: { position: "relative
|
|
|
272
272
|
}));
|
|
273
273
|
};
|
|
274
274
|
vl(async () => {
|
|
275
|
-
bt.value = !0, ke(), requestAnimationFrame(
|
|
275
|
+
bt.value = !0, ke(), requestAnimationFrame(F);
|
|
276
276
|
});
|
|
277
277
|
let le;
|
|
278
278
|
vl(() => {
|
|
279
|
-
|
|
279
|
+
M.value && (le = new ResizeObserver((t) => {
|
|
280
280
|
for (const o of t) {
|
|
281
281
|
const { width: l, height: a } = o.contentRect;
|
|
282
282
|
if (l > 0 && a > 0) {
|
|
283
|
-
|
|
283
|
+
F();
|
|
284
284
|
break;
|
|
285
285
|
}
|
|
286
286
|
}
|
|
287
|
-
}), le.observe(
|
|
287
|
+
}), le.observe(M.value.parentElement));
|
|
288
288
|
}), dl(() => {
|
|
289
289
|
le?.disconnect();
|
|
290
290
|
}), dl(() => {
|
|
291
291
|
ne.value && (me.value && ne.value.unobserve(me.value), ne.value.disconnect());
|
|
292
292
|
});
|
|
293
|
-
const ae =
|
|
293
|
+
const ae = m(() => !!e.value.debug);
|
|
294
294
|
function ke() {
|
|
295
295
|
if (yl(E.dataset) ? (Kt({
|
|
296
296
|
componentName: "VueUiDonut",
|
|
297
297
|
type: "dataset",
|
|
298
298
|
debug: ae.value
|
|
299
|
-
}),
|
|
299
|
+
}), B.value = !1, Ue.value = !0) : (E.dataset.forEach((t, o) => {
|
|
300
300
|
ua({
|
|
301
301
|
datasetObject: t,
|
|
302
302
|
requiredAttributes: ["name", "values"]
|
|
@@ -307,7 +307,7 @@ const Ra = ["id"], Ea = ["id"], Va = ["id"], Ua = { style: { position: "relative
|
|
|
307
307
|
property: l,
|
|
308
308
|
index: o,
|
|
309
309
|
debug: ae.value
|
|
310
|
-
}),
|
|
310
|
+
}), B.value = !1, Ue.value = !0;
|
|
311
311
|
});
|
|
312
312
|
}), E.dataset.forEach((t, o) => {
|
|
313
313
|
(!t.name || t.name === "") && Kt({
|
|
@@ -320,7 +320,7 @@ const Ra = ["id"], Ea = ["id"], Va = ["id"], Ua = { style: { position: "relative
|
|
|
320
320
|
})), yl(E.dataset) || (Ue.value = e.value.loading), e.value.responsive) {
|
|
321
321
|
const t = xa(() => {
|
|
322
322
|
const { width: o, height: l } = $a({
|
|
323
|
-
chart:
|
|
323
|
+
chart: M.value,
|
|
324
324
|
title: e.value.style.chart.title.text ? ft.value : null,
|
|
325
325
|
legend: e.value.style.chart.legend.show ? yt.value : null,
|
|
326
326
|
source: Ze.value,
|
|
@@ -328,13 +328,13 @@ const Ra = ["id"], Ea = ["id"], Va = ["id"], Ua = { style: { position: "relative
|
|
|
328
328
|
padding: e.value.autoSize ? void 0 : He.value
|
|
329
329
|
});
|
|
330
330
|
requestAnimationFrame(() => {
|
|
331
|
-
n.value.width = o, n.value.height = l,
|
|
331
|
+
n.value.width = o, n.value.height = l, F();
|
|
332
332
|
});
|
|
333
333
|
});
|
|
334
|
-
ne.value && (me.value && ne.value.unobserve(me.value), ne.value.disconnect()), ne.value = new ResizeObserver(t), me.value =
|
|
334
|
+
ne.value && (me.value && ne.value.unobserve(me.value), ne.value.disconnect()), ne.value = new ResizeObserver(t), me.value = M.value.parentNode, ne.value.observe(me.value);
|
|
335
335
|
}
|
|
336
336
|
}
|
|
337
|
-
const
|
|
337
|
+
const p = b(ra()), oe = b(!1), se = b(""), z = b(null), lt = b(0);
|
|
338
338
|
function Oe() {
|
|
339
339
|
const t = Qt({
|
|
340
340
|
userConfig: E.config,
|
|
@@ -361,7 +361,7 @@ const Ra = ["id"], Ea = ["id"], Va = ["id"], Ua = { style: { position: "relative
|
|
|
361
361
|
}
|
|
362
362
|
return o;
|
|
363
363
|
}
|
|
364
|
-
const e = b(Oe()), xe =
|
|
364
|
+
const e = b(Oe()), xe = m(() => e.value.userOptions.useCursorPointer), $e = m(() => gl({
|
|
365
365
|
defaultConfig: {
|
|
366
366
|
useCssAnimation: !1,
|
|
367
367
|
table: { show: !1 },
|
|
@@ -422,17 +422,17 @@ const Ra = ["id"], Ea = ["id"], Va = ["id"], Ua = { style: { position: "relative
|
|
|
422
422
|
defaultConfig: e.value,
|
|
423
423
|
userConfig: $e.value
|
|
424
424
|
})
|
|
425
|
-
}),
|
|
425
|
+
}), Y = b(!0), Ce = b(0), _e = b(!1);
|
|
426
426
|
let de = null;
|
|
427
427
|
function re(t = 1e3) {
|
|
428
428
|
return new Promise((o) => {
|
|
429
429
|
const l = performance.now();
|
|
430
430
|
function a(r) {
|
|
431
|
-
const c = r - l,
|
|
431
|
+
const c = r - l, y = Math.min(
|
|
432
432
|
c / t,
|
|
433
433
|
1
|
|
434
|
-
), $ = xl(
|
|
435
|
-
Ce.value = $,
|
|
434
|
+
), $ = xl(y);
|
|
435
|
+
Ce.value = $, y < 1 ? de = requestAnimationFrame(a) : (Ce.value = 1, de = null, o());
|
|
436
436
|
}
|
|
437
437
|
de !== null && cancelAnimationFrame(de), Ce.value = 0, de = requestAnimationFrame(a);
|
|
438
438
|
});
|
|
@@ -449,11 +449,11 @@ const Ra = ["id"], Ea = ["id"], Va = ["id"], Ua = { style: { position: "relative
|
|
|
449
449
|
await re(a);
|
|
450
450
|
} else
|
|
451
451
|
Ce.value = 1;
|
|
452
|
-
|
|
452
|
+
Y.value = !1;
|
|
453
453
|
},
|
|
454
454
|
{ immediate: !0 }
|
|
455
455
|
);
|
|
456
|
-
const { userOptionsVisible: Z, setUserOptionsVisibility: Ae, keepUserOptionState: Te } = La({ config: e.value }), { svgRef:
|
|
456
|
+
const { userOptionsVisible: Z, setUserOptionsVisibility: Ae, keepUserOptionState: Te } = La({ config: e.value }), { svgRef: W } = Ma({ config: e.value.style.chart.title });
|
|
457
457
|
function kt() {
|
|
458
458
|
Ae(!0);
|
|
459
459
|
}
|
|
@@ -463,7 +463,7 @@ const Ra = ["id"], Ea = ["id"], Va = ["id"], Ua = { style: { position: "relative
|
|
|
463
463
|
je(() => E.config, (t) => {
|
|
464
464
|
ue.value || (e.value = Oe()), Z.value = !e.value.userOptions.showOnChartHover, ke(), gt.value += 1, pt.value += 1, mt.value += 1, x.value.dataLabels.show = e.value.style.chart.layout.labels.dataLabels.show, x.value.showTable = e.value.table.show, x.value.showTooltip = e.value.style.chart.tooltip.show, n.value.height = e.value.style.chart.height, n.value.width = e.value.style.chart.width;
|
|
465
465
|
}, { deep: !0 });
|
|
466
|
-
const He =
|
|
466
|
+
const He = m(() => {
|
|
467
467
|
const { top: t, right: o, bottom: l, left: a } = e.value.style.chart.padding;
|
|
468
468
|
return {
|
|
469
469
|
css: `padding:${t}px ${o}px ${l}px ${a}px`,
|
|
@@ -473,10 +473,10 @@ const Ra = ["id"], Ea = ["id"], Va = ["id"], Ua = { style: { position: "relative
|
|
|
473
473
|
left: a
|
|
474
474
|
};
|
|
475
475
|
}), { isPrinting: Ge, isImaging: xt, generatePdf: at, generateImage: $t } = _a({
|
|
476
|
-
elementId: `donut__${
|
|
476
|
+
elementId: `donut__${p.value}`,
|
|
477
477
|
fileName: e.value.style.chart.title.text || "vue-ui-donut",
|
|
478
478
|
options: e.value.userOptions.print
|
|
479
|
-
}), Nt =
|
|
479
|
+
}), Nt = m(() => e.value.userOptions.show && !e.value.style.chart.title.text), qe = m(() => ia(e.value.customPalette)), x = b({
|
|
480
480
|
dataLabels: {
|
|
481
481
|
show: e.value.style.chart.layout.labels.dataLabels.show
|
|
482
482
|
},
|
|
@@ -495,12 +495,12 @@ const Ra = ["id"], Ea = ["id"], Va = ["id"], Ua = { style: { position: "relative
|
|
|
495
495
|
const n = b({
|
|
496
496
|
height: e.value.style.chart.height,
|
|
497
497
|
width: e.value.style.chart.width
|
|
498
|
-
}), he =
|
|
498
|
+
}), he = m(() => {
|
|
499
499
|
if (e.value.pie)
|
|
500
|
-
return
|
|
501
|
-
const t = e.value.style.chart.layout.donut.strokeWidth / 512, o = Math.min(n.value.width, n.value.height) * t, l = o >
|
|
500
|
+
return O.value;
|
|
501
|
+
const t = e.value.style.chart.layout.donut.strokeWidth / 512, o = Math.min(n.value.width, n.value.height) * t, l = o > O.value ? O.value : o;
|
|
502
502
|
return Math.max(l, 12 * (1 + t));
|
|
503
|
-
}), ot = Lt,
|
|
503
|
+
}), ot = Lt, U = m(() => Ye.value.sort((t, o) => {
|
|
504
504
|
const l = Array.isArray(t.values) ? t.values.reduce((r, c) => r + c, 0) : t.value ?? 0, a = Array.isArray(o.values) ? o.values.reduce((r, c) => r + c, 0) : o.value ?? 0;
|
|
505
505
|
return t.ghost && !o.ghost ? 1 : o.ghost && !t.ghost ? -1 : a - l;
|
|
506
506
|
}).map((t, o) => ({
|
|
@@ -512,79 +512,79 @@ const Ra = ["id"], Ea = ["id"], Va = ["id"], Ua = { style: { position: "relative
|
|
|
512
512
|
patternIndex: o,
|
|
513
513
|
seriesIndex: o,
|
|
514
514
|
ghost: !1,
|
|
515
|
-
pattern: `pattern_${
|
|
515
|
+
pattern: `pattern_${p.value}_${o}`
|
|
516
516
|
})));
|
|
517
517
|
je(() => E.dataset, (t) => {
|
|
518
518
|
Array.isArray(t) && t.length > 0 && (Ue.value = !1);
|
|
519
519
|
}, { immediate: !0 });
|
|
520
|
-
const
|
|
521
|
-
je(() =>
|
|
522
|
-
|
|
520
|
+
const j = Ie(U.value);
|
|
521
|
+
je(() => U.value, (t) => {
|
|
522
|
+
j.value = t, requestAnimationFrame(F);
|
|
523
523
|
});
|
|
524
524
|
function $l() {
|
|
525
|
-
return
|
|
525
|
+
return U.value.map((t) => ({
|
|
526
526
|
name: t.name,
|
|
527
527
|
color: t.color,
|
|
528
528
|
value: t.value
|
|
529
529
|
}));
|
|
530
530
|
}
|
|
531
|
-
const
|
|
531
|
+
const N = b([]), Pe = b(!1), De = b(null);
|
|
532
532
|
function Zt({ from: t, to: o, duration: l, onUpdate: a, onDone: r, easing: c = xl }) {
|
|
533
|
-
const
|
|
534
|
-
function $(
|
|
535
|
-
const
|
|
536
|
-
a(Ne,
|
|
533
|
+
const y = performance.now();
|
|
534
|
+
function $(D) {
|
|
535
|
+
const S = Math.min((D - y) / l, 1), V = c(S), Ne = t + (o - t) * V;
|
|
536
|
+
a(Ne, S), S < 1 ? requestAnimationFrame($) : (a(o, 1), r && r());
|
|
537
537
|
}
|
|
538
538
|
requestAnimationFrame($);
|
|
539
539
|
}
|
|
540
540
|
function Cl() {
|
|
541
|
-
|
|
542
|
-
|
|
541
|
+
N.value.length ? N.value = [] : nt.value.forEach((t, o) => {
|
|
542
|
+
N.value.push(o);
|
|
543
543
|
});
|
|
544
544
|
}
|
|
545
545
|
function Ct(t) {
|
|
546
|
-
const o =
|
|
547
|
-
let a =
|
|
548
|
-
if (
|
|
546
|
+
const o = U.value.find((r, c) => c === t);
|
|
547
|
+
let a = j.value.find((r, c) => c === t).value;
|
|
548
|
+
if (N.value.includes(t)) {
|
|
549
549
|
let c = function() {
|
|
550
|
-
|
|
551
|
-
($,
|
|
550
|
+
j.value = j.value.map(
|
|
551
|
+
($, D) => t === D ? { ...$, value: r } : $
|
|
552
552
|
);
|
|
553
|
-
},
|
|
553
|
+
}, y = function() {
|
|
554
554
|
Pe.value = !0, De.value = t, Zt({
|
|
555
555
|
from: a,
|
|
556
556
|
to: r,
|
|
557
557
|
duration: e.value.serieToggleAnimation.durationMs,
|
|
558
|
-
onUpdate: ($,
|
|
559
|
-
|
|
560
|
-
(
|
|
561
|
-
), requestAnimationFrame(
|
|
558
|
+
onUpdate: ($, D) => {
|
|
559
|
+
j.value = j.value.map(
|
|
560
|
+
(S, V) => t === V ? { ...S, value: $ } : S
|
|
561
|
+
), requestAnimationFrame(F);
|
|
562
562
|
},
|
|
563
563
|
onDone: () => {
|
|
564
564
|
c(), Pe.value = !1, De.value = null;
|
|
565
565
|
}
|
|
566
566
|
});
|
|
567
567
|
};
|
|
568
|
-
|
|
568
|
+
N.value = N.value.filter(($) => $ !== t);
|
|
569
569
|
const r = o.value;
|
|
570
|
-
e.value.serieToggleAnimation.show && e.value.type === "classic" ?
|
|
571
|
-
} else if (
|
|
570
|
+
e.value.serieToggleAnimation.show && e.value.type === "classic" ? y() : (c(), requestAnimationFrame(F));
|
|
571
|
+
} else if (N.value.length < U.value.length - 1) {
|
|
572
572
|
let r = function() {
|
|
573
|
-
|
|
574
|
-
(
|
|
573
|
+
N.value.push(t), j.value = j.value.map(
|
|
574
|
+
(y, $) => t === $ ? { ...y, value: 0 } : y
|
|
575
575
|
);
|
|
576
576
|
}, c = function() {
|
|
577
577
|
Pe.value = !0, De.value = t, Zt({
|
|
578
578
|
from: a,
|
|
579
579
|
to: 0,
|
|
580
580
|
duration: e.value.serieToggleAnimation.durationMs,
|
|
581
|
-
onUpdate: (
|
|
582
|
-
|
|
583
|
-
(
|
|
584
|
-
), requestAnimationFrame(
|
|
581
|
+
onUpdate: (y, $) => {
|
|
582
|
+
j.value = j.value.map(
|
|
583
|
+
(D, S) => t === S ? { ...D, value: y } : D
|
|
584
|
+
), requestAnimationFrame(F);
|
|
585
585
|
},
|
|
586
586
|
onDone: () => {
|
|
587
|
-
r(), requestAnimationFrame(
|
|
587
|
+
r(), requestAnimationFrame(F), Pe.value = !1, De.value = null;
|
|
588
588
|
}
|
|
589
589
|
});
|
|
590
590
|
};
|
|
@@ -597,27 +597,27 @@ const Ra = ["id"], Ea = ["id"], Va = ["id"], Ua = { style: { position: "relative
|
|
|
597
597
|
})));
|
|
598
598
|
}
|
|
599
599
|
function el(t) {
|
|
600
|
-
if (!
|
|
600
|
+
if (!U.value.length)
|
|
601
601
|
return e.value.debug && console.warn("VueUiDonut - There are no series to show."), null;
|
|
602
|
-
const o =
|
|
602
|
+
const o = U.value.find((l) => l.name === t);
|
|
603
603
|
return o || (e.value.debug && console.warn(`VueUiDonut - Series name not found "${t}"`), null);
|
|
604
604
|
}
|
|
605
605
|
function _l(t) {
|
|
606
606
|
const o = el(t);
|
|
607
|
-
o !== null &&
|
|
607
|
+
o !== null && N.value.includes(o.seriesIndex) && Ct(o.seriesIndex);
|
|
608
608
|
}
|
|
609
609
|
function Al(t) {
|
|
610
610
|
const o = el(t);
|
|
611
|
-
o !== null && (
|
|
611
|
+
o !== null && (N.value.includes(o.seriesIndex) || Ct(o.seriesIndex));
|
|
612
612
|
}
|
|
613
|
-
const Tl =
|
|
613
|
+
const Tl = m(
|
|
614
614
|
() => Ye.value.reduce(
|
|
615
615
|
(t, o) => t + o.values.reduce((l, a) => l + a, 0),
|
|
616
616
|
0
|
|
617
617
|
)
|
|
618
|
-
), be =
|
|
619
|
-
if (
|
|
620
|
-
const t = Ce.value, o =
|
|
618
|
+
), be = m(() => {
|
|
619
|
+
if (Y.value && !ue.value) {
|
|
620
|
+
const t = Ce.value, o = U.value.map((a) => ({
|
|
621
621
|
...a,
|
|
622
622
|
value: a.value * t,
|
|
623
623
|
color: a.color,
|
|
@@ -630,18 +630,18 @@ const Ra = ["id"], Ea = ["id"], Va = ["id"], Ua = { style: { position: "relative
|
|
|
630
630
|
ghost: !0
|
|
631
631
|
}), o;
|
|
632
632
|
} else
|
|
633
|
-
return
|
|
633
|
+
return j.value.forEach((t) => {
|
|
634
634
|
if ([null, void 0].includes(t.values))
|
|
635
635
|
return {
|
|
636
636
|
...t,
|
|
637
637
|
values: []
|
|
638
638
|
};
|
|
639
|
-
}),
|
|
639
|
+
}), j.value.map((t, o) => ({
|
|
640
640
|
...t,
|
|
641
641
|
seriesIndex: o
|
|
642
|
-
})).filter((t, o) => !
|
|
643
|
-
}), nt =
|
|
644
|
-
const l = (t.values || []).reduce((r, c) => r + c, 0), a = l / Ye.value.map((r) => (r.values || []).reduce((c,
|
|
642
|
+
})).filter((t, o) => !N.value.includes(o));
|
|
643
|
+
}), nt = m(() => Ye.value.map((t, o) => {
|
|
644
|
+
const l = (t.values || []).reduce((r, c) => r + c, 0), a = l / Ye.value.map((r) => (r.values || []).reduce((c, y) => c + y, 0)).reduce((r, c) => r + c, 0);
|
|
645
645
|
return {
|
|
646
646
|
name: t.name,
|
|
647
647
|
color: pl(t.color) || qe.value[o] || Re[o] || Re[o % Re.length],
|
|
@@ -662,29 +662,29 @@ const Ra = ["id"], Ea = ["id"], Va = ["id"], Ua = { style: { position: "relative
|
|
|
662
662
|
r: e.value.style.chart.legend.roundingPercentage
|
|
663
663
|
})), r = Ut({
|
|
664
664
|
val: l,
|
|
665
|
-
percentage:
|
|
665
|
+
percentage: N.value.includes(o) ? `${Xl(t.proportion * 100)}%` : a,
|
|
666
666
|
showVal: e.value.style.chart.legend.showValue,
|
|
667
667
|
showPercentage: e.value.style.chart.legend.showPercentage,
|
|
668
668
|
config: e.value.style.chart.legend
|
|
669
669
|
});
|
|
670
670
|
return {
|
|
671
671
|
...t,
|
|
672
|
-
opacity:
|
|
672
|
+
opacity: N.value.includes(o) ? 0.5 : 1,
|
|
673
673
|
segregate: () => !Pe.value && Ct(o),
|
|
674
|
-
isSegregated:
|
|
674
|
+
isSegregated: N.value.includes(o),
|
|
675
675
|
display: `${t.name}${e.value.style.chart.legend.showPercentage || e.value.style.chart.legend.showValue ? ": " : ""}${r}`
|
|
676
676
|
};
|
|
677
|
-
})), Pl =
|
|
677
|
+
})), Pl = m(() => ({
|
|
678
678
|
cy: "donut-div-legend",
|
|
679
679
|
backgroundColor: e.value.style.chart.legend.backgroundColor,
|
|
680
680
|
color: e.value.style.chart.legend.color,
|
|
681
681
|
fontSize: e.value.style.chart.legend.fontSize,
|
|
682
682
|
paddingBottom: 12,
|
|
683
683
|
fontWeight: e.value.style.chart.legend.bold ? "bold" : ""
|
|
684
|
-
})),
|
|
684
|
+
})), O = m(() => {
|
|
685
685
|
const t = e.value.style.chart.layout.donut.radiusRatio, o = Math.max(0.1, Math.min(0.50001, t)), l = Math.min(n.value.width * o, n.value.height * o);
|
|
686
686
|
return Math.max(12, l);
|
|
687
|
-
}),
|
|
687
|
+
}), q = m(() => ml({ series: be.value }, n.value.width / 2, n.value.height / 2, O.value, O.value, 1.99999, 2, 1, 360, 105.25, he.value)), Sl = m(() => Math.abs(be.value.map((t) => t.value).reduce((t, o) => t + o, 0)) > 0), Ll = m(() => ml({
|
|
688
688
|
series: [
|
|
689
689
|
{
|
|
690
690
|
value: 1,
|
|
@@ -696,7 +696,7 @@ const Ra = ["id"], Ea = ["id"], Va = ["id"], Ua = { style: { position: "relative
|
|
|
696
696
|
absoluteValues: [1]
|
|
697
697
|
}
|
|
698
698
|
]
|
|
699
|
-
}, n.value.width / 2, n.value.height / 2,
|
|
699
|
+
}, n.value.width / 2, n.value.height / 2, O.value, O.value, 1.99999, 2, 1, 360, 105.25, he.value)), T = m(() => q.value.filter((t) => !t.ghost)), v = m(() => {
|
|
700
700
|
const t = Math.max(...be.value.map((l) => l.value)), o = be.value.map((l) => l.value / t);
|
|
701
701
|
return va({
|
|
702
702
|
series: o,
|
|
@@ -705,14 +705,14 @@ const Ra = ["id"], Ea = ["id"], Va = ["id"], Ua = { style: { position: "relative
|
|
|
705
705
|
y: n.value.height / 2
|
|
706
706
|
},
|
|
707
707
|
maxRadius: Math.min(n.value.width, n.value.height) / 3,
|
|
708
|
-
hasGhost:
|
|
708
|
+
hasGhost: Y.value
|
|
709
709
|
});
|
|
710
710
|
});
|
|
711
711
|
function Se(t) {
|
|
712
712
|
return t.x > n.value.width / 2 + 6 ? "start" : t.x < n.value.width / 2 - 6 ? "end" : "middle";
|
|
713
713
|
}
|
|
714
714
|
function Ml(t) {
|
|
715
|
-
return t.middlePoint.y > n.value.height / 2 ?
|
|
715
|
+
return t.middlePoint.y > n.value.height / 2 ? X({ initX: t.middlePoint.x, initY: t.middlePoint.y, offset: 100, centerX: n.value.width / 2, centerY: n.value.height / 2 }).y : X({ initX: t.middlePoint.x, initY: t.middlePoint.y, offset: 0, centerX: n.value.width / 2, centerY: n.value.height / 2 }).y - 100;
|
|
716
716
|
}
|
|
717
717
|
function ee(t) {
|
|
718
718
|
return t.proportion * 100 > e.value.style.chart.layout.labels.dataLabels.hideUnderValue;
|
|
@@ -721,18 +721,18 @@ const Ra = ["id"], Ea = ["id"], Va = ["id"], Ua = { style: { position: "relative
|
|
|
721
721
|
const l = e.value.style.chart.layout.labels.dataLabels.hideUnderValue, a = e.value.style.chart.layout.labels.dataLabels.smallArcClusterThreshold, c = (zl.value[o] ?? t.proportion ?? 0) * 100;
|
|
722
722
|
return c > l && c <= a;
|
|
723
723
|
}
|
|
724
|
-
const { smallArcLayoutsClassic:
|
|
724
|
+
const { smallArcLayoutsClassic: R } = Na({
|
|
725
725
|
FINAL_CONFIG: e,
|
|
726
|
-
noGhostDonut:
|
|
726
|
+
noGhostDonut: T,
|
|
727
727
|
svg: n,
|
|
728
728
|
padding: He,
|
|
729
729
|
labels_inline_fontSize: C,
|
|
730
|
-
minSize:
|
|
730
|
+
minSize: O,
|
|
731
731
|
findArcMidpoint: kl,
|
|
732
732
|
calcMarkerOffsetX: A,
|
|
733
733
|
calcMarkerOffsetY: we,
|
|
734
734
|
animatingIndex: De,
|
|
735
|
-
segregated:
|
|
735
|
+
segregated: N,
|
|
736
736
|
isSmallArc: Il
|
|
737
737
|
});
|
|
738
738
|
function tl(t, o) {
|
|
@@ -751,34 +751,34 @@ const Ra = ["id"], Ea = ["id"], Va = ["id"], Ua = { style: { position: "relative
|
|
|
751
751
|
function Fl(t) {
|
|
752
752
|
return [...t].map((o) => o.value).reduce((o, l) => o + l, 0);
|
|
753
753
|
}
|
|
754
|
-
const te =
|
|
755
|
-
const t =
|
|
756
|
-
return t <= 0 ? [] :
|
|
757
|
-
}), Rt =
|
|
754
|
+
const te = m(() => be.value.map((t) => t.value).reduce((t, o) => t + o, 0)), zl = m(() => {
|
|
755
|
+
const t = U.value.reduce((o, l) => o + l.value, 0);
|
|
756
|
+
return t <= 0 ? [] : U.value.map((o) => o.value / t);
|
|
757
|
+
}), Rt = m(() => te.value / be.value.length);
|
|
758
758
|
function ll(t) {
|
|
759
759
|
return Pe.value ? t.proportion * 100 : t.value / te.value * 100;
|
|
760
760
|
}
|
|
761
|
-
const
|
|
761
|
+
const Vt = b(null), st = b(!1);
|
|
762
762
|
function fe({ datapoint: t, seriesIndex: o }) {
|
|
763
|
-
e.value.events.datapointLeave && e.value.events.datapointLeave({ datapoint: t, seriesIndex: o }), oe.value = !1,
|
|
763
|
+
e.value.events.datapointLeave && e.value.events.datapointLeave({ datapoint: t, seriesIndex: o }), oe.value = !1, z.value = null, H.value = null, G.value = "pointer";
|
|
764
764
|
}
|
|
765
765
|
function ie({ datapoint: t, relativeIndex: o, seriesIndex: l, show: a = !1, triggerMode: r = "pointer" }) {
|
|
766
|
-
e.value.events.datapointEnter && e.value.events.datapointEnter({ datapoint: t, seriesIndex: l }),
|
|
766
|
+
e.value.events.datapointEnter && e.value.events.datapointEnter({ datapoint: t, seriesIndex: l }), G.value = r, H.value = o, Vt.value = { datapoint: t, seriesIndex: l, config: e.value, series: U.value }, oe.value = a, z.value = o;
|
|
767
767
|
let c = "";
|
|
768
|
-
const
|
|
769
|
-
if (st.value = !1, ba(
|
|
768
|
+
const y = e.value.style.chart.tooltip.customFormat;
|
|
769
|
+
if (st.value = !1, ba(y))
|
|
770
770
|
try {
|
|
771
|
-
const $ =
|
|
771
|
+
const $ = y({
|
|
772
772
|
seriesIndex: l,
|
|
773
773
|
datapoint: t,
|
|
774
|
-
series:
|
|
774
|
+
series: U.value,
|
|
775
775
|
config: e.value
|
|
776
776
|
});
|
|
777
777
|
typeof $ == "string" && (se.value = $, st.value = !0);
|
|
778
778
|
} catch {
|
|
779
779
|
console.warn("Custom format cannot be applied."), st.value = !1;
|
|
780
780
|
}
|
|
781
|
-
st.value || (c += `<div style="width:100%;text-align:center;border-bottom:1px solid ${e.value.style.chart.tooltip.borderColor};padding-bottom:6px;margin-bottom:3px;">${t.name}</div>`, c += `<div style="display:flex;flex-direction:row;gap:6px;align-items:center;"><svg viewBox="0 0 60 60" height="14" width="14"><circle cx="30" cy="30" r="30" stroke="none" fill="${t.color}"/>${Qe.pattern ? `<circle cx="30" cy="30" r="30" stroke="none" fill="url(#pattern_${
|
|
781
|
+
st.value || (c += `<div style="width:100%;text-align:center;border-bottom:1px solid ${e.value.style.chart.tooltip.borderColor};padding-bottom:6px;margin-bottom:3px;">${t.name}</div>`, c += `<div style="display:flex;flex-direction:row;gap:6px;align-items:center;"><svg viewBox="0 0 60 60" height="14" width="14"><circle cx="30" cy="30" r="30" stroke="none" fill="${t.color}"/>${Qe.pattern ? `<circle cx="30" cy="30" r="30" stroke="none" fill="url(#pattern_${p.value}_${l})"/>` : ""}</svg>`, c += `<b>${Ut({
|
|
782
782
|
showVal: e.value.style.chart.tooltip.showValue,
|
|
783
783
|
showPercentage: e.value.style.chart.tooltip.showPercentage,
|
|
784
784
|
val: `<span>${pe(
|
|
@@ -814,7 +814,7 @@ const Ra = ["id"], Ea = ["id"], Va = ["id"], Ua = { style: { position: "relative
|
|
|
814
814
|
})}</b></div>`, e.value.style.chart.comments.showInTooltip && t.comment && (c += `<div class="vue-data-ui-tooltip-comment" style="background:${t.color}20; padding: 6px; margin-bottom: 6px; margin-top:6px; border-left: 1px solid ${t.color}">${t.comment}</div>`), se.value = `<div>${c}</div>`);
|
|
815
815
|
}
|
|
816
816
|
function Ol(t, o) {
|
|
817
|
-
const l =
|
|
817
|
+
const l = R.value[o];
|
|
818
818
|
if (l)
|
|
819
819
|
return {
|
|
820
820
|
textAnchor: l.textAnchor,
|
|
@@ -829,24 +829,24 @@ const Ra = ["id"], Ea = ["id"], Va = ["id"], Ua = { style: { position: "relative
|
|
|
829
829
|
};
|
|
830
830
|
}
|
|
831
831
|
function Yl(t, o, l) {
|
|
832
|
-
const { textAnchor: a, x: r } = Ol(t, o), c = _t(t),
|
|
832
|
+
const { textAnchor: a, x: r } = Ol(t, o), c = _t(t), y = `
|
|
833
833
|
<tspan
|
|
834
834
|
class="vue-data-ui-datalabel-inline"
|
|
835
835
|
fill="${e.value.style.chart.layout.labels.percentage.color}"
|
|
836
|
-
font-size="${l ? C.value :
|
|
836
|
+
font-size="${l ? C.value : g.value}px"
|
|
837
837
|
style="font-weight:${e.value.style.chart.layout.labels.percentage.bold ? "bold" : ""}"
|
|
838
838
|
>${c}</tspan>
|
|
839
839
|
`, $ = String(t.name ?? "").split(/\n/g);
|
|
840
|
-
let
|
|
841
|
-
return $.forEach((
|
|
842
|
-
|
|
840
|
+
let D = "";
|
|
841
|
+
return $.forEach((S, V) => {
|
|
842
|
+
V === 0 ? D += `
|
|
843
843
|
<tspan
|
|
844
844
|
class="${l ? "vue-data-ui-datalabel-inline" : "vue-data-ui-datalabel-name"}"
|
|
845
845
|
fill="${e.value.style.chart.layout.labels.name.color}"
|
|
846
846
|
font-size="${l ? C.value : f.value}px"
|
|
847
847
|
style="font-weight:${e.value.style.chart.layout.labels.name.bold ? "bold" : ""}"
|
|
848
|
-
>${
|
|
849
|
-
` :
|
|
848
|
+
>${S}</tspan>
|
|
849
|
+
` : D += `
|
|
850
850
|
<tspan
|
|
851
851
|
class="${l ? "vue-data-ui-datalabel-inline" : "vue-data-ui-datalabel-name"}"
|
|
852
852
|
x="${r}"
|
|
@@ -854,12 +854,12 @@ const Ra = ["id"], Ea = ["id"], Va = ["id"], Ua = { style: { position: "relative
|
|
|
854
854
|
fill="${e.value.style.chart.layout.labels.name.color}"
|
|
855
855
|
font-size="${l ? C.value : f.value}px"
|
|
856
856
|
style="font-weight:${e.value.style.chart.layout.labels.name.bold ? "bold" : ""}"
|
|
857
|
-
>${
|
|
857
|
+
>${S}</tspan>
|
|
858
858
|
`;
|
|
859
|
-
}), a === "end" ? `${e.value.style.chart.layout.labels.name.show ?
|
|
859
|
+
}), a === "end" ? `${e.value.style.chart.layout.labels.name.show ? D : ""}${y}` : `${y}${e.value.style.chart.layout.labels.name.show ? D : ""}`;
|
|
860
860
|
}
|
|
861
861
|
function Dl(t, o) {
|
|
862
|
-
const l = v.value[o].middlePoint, a = Se(l), r =
|
|
862
|
+
const l = v.value[o].middlePoint, a = Se(l), r = X({
|
|
863
863
|
initX: l.x,
|
|
864
864
|
initY: l.y,
|
|
865
865
|
offset: 42,
|
|
@@ -867,24 +867,24 @@ const Ra = ["id"], Ea = ["id"], Va = ["id"], Ua = { style: { position: "relative
|
|
|
867
867
|
centerY: n.value.height / 2
|
|
868
868
|
}), c = r.x;
|
|
869
869
|
r.y;
|
|
870
|
-
const
|
|
870
|
+
const y = _t(t), $ = `
|
|
871
871
|
<tspan
|
|
872
872
|
class="vue-data-ui-datalabel-value"
|
|
873
873
|
fill="${e.value.style.chart.layout.labels.percentage.color}"
|
|
874
|
-
font-size="${
|
|
874
|
+
font-size="${g.value}px"
|
|
875
875
|
style="font-weight:${e.value.style.chart.layout.labels.percentage.bold ? "bold" : "normal"}"
|
|
876
|
-
>${
|
|
877
|
-
`,
|
|
878
|
-
let
|
|
879
|
-
return
|
|
880
|
-
Ne === 0 ?
|
|
876
|
+
>${y}</tspan>
|
|
877
|
+
`, D = String(t.name ?? "").split(/\n/g);
|
|
878
|
+
let S = "";
|
|
879
|
+
return D.forEach((V, Ne) => {
|
|
880
|
+
Ne === 0 ? S += `
|
|
881
881
|
<tspan
|
|
882
882
|
class="vue-data-ui-datalabel-name"
|
|
883
883
|
fill="${e.value.style.chart.layout.labels.name.color}"
|
|
884
884
|
font-size="${f.value}px"
|
|
885
885
|
style="font-weight:${e.value.style.chart.layout.labels.name.bold ? "bold" : "normal"}"
|
|
886
|
-
>${
|
|
887
|
-
` :
|
|
886
|
+
>${V}</tspan>
|
|
887
|
+
` : S += `
|
|
888
888
|
<tspan
|
|
889
889
|
class="vue-data-ui-datalabel-name"
|
|
890
890
|
x="${c}"
|
|
@@ -892,12 +892,12 @@ const Ra = ["id"], Ea = ["id"], Va = ["id"], Ua = { style: { position: "relative
|
|
|
892
892
|
fill="${e.value.style.chart.layout.labels.name.color}"
|
|
893
893
|
font-size="${f.value}px"
|
|
894
894
|
style="font-weight:${e.value.style.chart.layout.labels.name.bold ? "bold" : "normal"}"
|
|
895
|
-
>${
|
|
895
|
+
>${V}</tspan>
|
|
896
896
|
`;
|
|
897
|
-
}), a === "end" ? `${e.value.style.chart.layout.labels.name.show ?
|
|
897
|
+
}), a === "end" ? `${e.value.style.chart.layout.labels.name.show ? S : ""}${$}` : `${$}${e.value.style.chart.layout.labels.name.show ? S : ""}`;
|
|
898
898
|
}
|
|
899
899
|
function Be(t) {
|
|
900
|
-
return e.value.useBlurOnHover && ![null, void 0].includes(
|
|
900
|
+
return e.value.useBlurOnHover && ![null, void 0].includes(z.value) && z.value !== t ? `url(#blur_${p.value})` : "";
|
|
901
901
|
}
|
|
902
902
|
function Bl(t) {
|
|
903
903
|
if (!Pe.value || De.value === null || t.seriesIndex !== De.value)
|
|
@@ -905,14 +905,14 @@ const Ra = ["id"], Ea = ["id"], Va = ["id"], Ua = { style: { position: "relative
|
|
|
905
905
|
const o = (t.proportion ?? 0) * 100, l = e.value.style.chart.layout.labels.dataLabels.hideUnderValue, r = e.value.style.chart.layout.labels.dataLabels.smallArcClusterThreshold + 2, c = l;
|
|
906
906
|
return o >= r ? 1 : o <= c ? 0 : (o - c) / (r - c);
|
|
907
907
|
}
|
|
908
|
-
const Le =
|
|
908
|
+
const Le = m(() => {
|
|
909
909
|
const t = be.value.map((l) => ({
|
|
910
910
|
name: l.name,
|
|
911
911
|
color: l.color
|
|
912
912
|
})), o = be.value.map((l) => l.value);
|
|
913
913
|
return { head: t, body: o };
|
|
914
914
|
});
|
|
915
|
-
function
|
|
915
|
+
function Et(t = null) {
|
|
916
916
|
fl(() => {
|
|
917
917
|
const o = Le.value.head.map((r, c) => [[
|
|
918
918
|
r.name
|
|
@@ -920,19 +920,19 @@ const Ra = ["id"], Ea = ["id"], Va = ["id"], Ua = { style: { position: "relative
|
|
|
920
920
|
t ? t(a) : ma({ csvContent: a, title: e.value.style.chart.title.text || "vue-ui-donut" });
|
|
921
921
|
});
|
|
922
922
|
}
|
|
923
|
-
const We =
|
|
923
|
+
const We = m(() => {
|
|
924
924
|
const t = [
|
|
925
925
|
' <svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 24 24" stroke-width="1.5" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><path stroke="none" d="M0 0h24v24H0z" fill="none"/><path d="M18 16v2a1 1 0 0 1 -1 1h-11l6 -7l-6 -7h11a1 1 0 0 1 1 1v2" /></svg>',
|
|
926
926
|
ve({ p: e.value.style.chart.layout.labels.dataLabels.prefix, v: te.value, s: e.value.style.chart.layout.labels.dataLabels.suffix, r: e.value.table.td.roundingValue }),
|
|
927
927
|
"100%"
|
|
928
|
-
], o = Le.value.head.map((c,
|
|
928
|
+
], o = Le.value.head.map((c, y) => [
|
|
929
929
|
{
|
|
930
930
|
color: c.color,
|
|
931
931
|
name: c.name || "-"
|
|
932
932
|
},
|
|
933
|
-
Le.value.body[
|
|
934
|
-
isNaN(Le.value.body[
|
|
935
|
-
]), l = o.map((c) => c.map((
|
|
933
|
+
Le.value.body[y],
|
|
934
|
+
isNaN(Le.value.body[y] / te.value) ? "-" : (Le.value.body[y] / te.value * 100).toFixed(e.value.table.td.roundingPercentage) + "%"
|
|
935
|
+
]), l = o.map((c) => c.map((y, $) => $ === 0 ? y.name : y)), a = {
|
|
936
936
|
th: {
|
|
937
937
|
backgroundColor: e.value.table.th.backgroundColor,
|
|
938
938
|
color: e.value.table.th.color,
|
|
@@ -960,7 +960,7 @@ const Ra = ["id"], Ea = ["id"], Va = ["id"], Ua = { style: { position: "relative
|
|
|
960
960
|
function al(t) {
|
|
961
961
|
Xe.value = t, lt.value += 1;
|
|
962
962
|
}
|
|
963
|
-
const ol =
|
|
963
|
+
const ol = m(() => /^((?!chrome|android).)*safari/i.test(navigator.userAgent));
|
|
964
964
|
function Xl(t) {
|
|
965
965
|
return wa({
|
|
966
966
|
num: t,
|
|
@@ -995,7 +995,7 @@ const Ra = ["id"], Ea = ["id"], Va = ["id"], Ua = { style: { position: "relative
|
|
|
995
995
|
}),
|
|
996
996
|
{ datapoint: t }
|
|
997
997
|
),
|
|
998
|
-
percentage: tl(t,
|
|
998
|
+
percentage: tl(t, T.value),
|
|
999
999
|
showVal: e.value.style.chart.layout.labels.value.show,
|
|
1000
1000
|
showPercentage: e.value.style.chart.layout.labels.percentage.show,
|
|
1001
1001
|
config: e.value.style.chart.layout.labels.dataLabels
|
|
@@ -1018,8 +1018,8 @@ const Ra = ["id"], Ea = ["id"], Va = ["id"], Ua = { style: { position: "relative
|
|
|
1018
1018
|
ut.value = !ut.value;
|
|
1019
1019
|
}
|
|
1020
1020
|
async function Nl({ scale: t = 2 } = {}) {
|
|
1021
|
-
if (!
|
|
1022
|
-
const { width: o, height: l } =
|
|
1021
|
+
if (!M.value) return;
|
|
1022
|
+
const { width: o, height: l } = M.value.getBoundingClientRect(), a = o / l, { imageUri: r, base64: c } = await Ia({ domElement: M.value, base64: !0, img: !0, scale: t });
|
|
1023
1023
|
return {
|
|
1024
1024
|
imageUri: r,
|
|
1025
1025
|
base64: c,
|
|
@@ -1032,9 +1032,9 @@ const Ra = ["id"], Ea = ["id"], Va = ["id"], Ua = { style: { position: "relative
|
|
|
1032
1032
|
function Rl() {
|
|
1033
1033
|
if (!Fe.value) return;
|
|
1034
1034
|
const { x: t, y: o, width: l, height: a } = Fe.value.getBBox();
|
|
1035
|
-
|
|
1035
|
+
W.value && W.value.setAttribute("viewBox", `${t} ${o} ${l + Math.min(0, t)} ${a + Math.min(0, o)}`);
|
|
1036
1036
|
}
|
|
1037
|
-
const rt =
|
|
1037
|
+
const rt = m(() => {
|
|
1038
1038
|
const t = e.value.table.useDialog && !e.value.table.show, o = x.value.showTable;
|
|
1039
1039
|
return {
|
|
1040
1040
|
component: t ? Ot : Mt,
|
|
@@ -1045,7 +1045,7 @@ const Ra = ["id"], Ea = ["id"], Va = ["id"], Ua = { style: { position: "relative
|
|
|
1045
1045
|
headerColor: e.value.table.th.color,
|
|
1046
1046
|
headerBg: e.value.table.th.backgroundColor,
|
|
1047
1047
|
isFullscreen: Xe.value,
|
|
1048
|
-
fullscreenParent:
|
|
1048
|
+
fullscreenParent: M.value,
|
|
1049
1049
|
forcedWidth: Math.min(500, window.innerWidth * 0.8),
|
|
1050
1050
|
isCursorPointer: xe.value
|
|
1051
1051
|
} : {
|
|
@@ -1071,18 +1071,18 @@ const Ra = ["id"], Ea = ["id"], Va = ["id"], Ua = { style: { position: "relative
|
|
|
1071
1071
|
function rl() {
|
|
1072
1072
|
x.value.showTable = !1, tt.value && tt.value.setTableIconState(!1);
|
|
1073
1073
|
}
|
|
1074
|
-
const
|
|
1074
|
+
const Vl = m(() => nt.value.map((t) => ({
|
|
1075
1075
|
...t,
|
|
1076
1076
|
name: t.display
|
|
1077
|
-
}))),
|
|
1078
|
-
svg:
|
|
1077
|
+
}))), El = m(() => e.value.style.chart.backgroundColor), Ul = m(() => e.value.style.chart.legend), Hl = m(() => e.value.style.chart.title), { exportSvg: Gl, getSvg: ql } = Pa({
|
|
1078
|
+
svg: W,
|
|
1079
1079
|
title: Hl,
|
|
1080
1080
|
legend: Ul,
|
|
1081
|
-
legendItems:
|
|
1082
|
-
backgroundColor:
|
|
1081
|
+
legendItems: Vl,
|
|
1082
|
+
backgroundColor: El
|
|
1083
1083
|
});
|
|
1084
1084
|
async function il({ isCb: t }) {
|
|
1085
|
-
|
|
1085
|
+
Ee.value = !0, await fl();
|
|
1086
1086
|
try {
|
|
1087
1087
|
if (t) {
|
|
1088
1088
|
const { blob: o, url: l, text: a, dataUrl: r } = await ql();
|
|
@@ -1090,16 +1090,16 @@ const Ra = ["id"], Ea = ["id"], Va = ["id"], Ua = { style: { position: "relative
|
|
|
1090
1090
|
} else
|
|
1091
1091
|
await Promise.resolve(Gl());
|
|
1092
1092
|
} finally {
|
|
1093
|
-
|
|
1093
|
+
Ee.value = !1;
|
|
1094
1094
|
}
|
|
1095
1095
|
}
|
|
1096
1096
|
function Wl(t) {
|
|
1097
1097
|
if (t?.stage === "start") {
|
|
1098
|
-
|
|
1098
|
+
Ve.value = !0;
|
|
1099
1099
|
return;
|
|
1100
1100
|
}
|
|
1101
1101
|
if (t?.stage === "end") {
|
|
1102
|
-
|
|
1102
|
+
Ve.value = !1;
|
|
1103
1103
|
return;
|
|
1104
1104
|
}
|
|
1105
1105
|
$t();
|
|
@@ -1107,53 +1107,54 @@ const Ra = ["id"], Ea = ["id"], Va = ["id"], Ua = { style: { position: "relative
|
|
|
1107
1107
|
async function cl() {
|
|
1108
1108
|
if (ot("copyAlt", {
|
|
1109
1109
|
config: e.value,
|
|
1110
|
-
dataset:
|
|
1110
|
+
dataset: j.value
|
|
1111
1111
|
}), !e.value.userOptions.callbacks.altCopy) {
|
|
1112
1112
|
console.warn("Vue Data UI - A callback must be set for `altCopy` in userOptions.");
|
|
1113
1113
|
return;
|
|
1114
1114
|
}
|
|
1115
1115
|
await Promise.resolve(e.value.userOptions.callbacks.altCopy({
|
|
1116
1116
|
config: e.value,
|
|
1117
|
-
dataset:
|
|
1117
|
+
dataset: j.value
|
|
1118
1118
|
}));
|
|
1119
1119
|
}
|
|
1120
1120
|
function jl() {
|
|
1121
|
-
|
|
1121
|
+
H.value = null, h.value = !0;
|
|
1122
1122
|
}
|
|
1123
1123
|
function Kl() {
|
|
1124
|
-
|
|
1124
|
+
H.value = null, G.value = "pointer", oe.value = !1, z.value = null, h.value = !1;
|
|
1125
1125
|
}
|
|
1126
1126
|
function Ql(t) {
|
|
1127
|
-
if (!
|
|
1127
|
+
if (!W.value || ut.value || document.activeElement !== W.value || !T.value.length) return;
|
|
1128
1128
|
const o = ["ArrowLeft", "ArrowUp"].includes(t.key), l = ["ArrowRight", "ArrowDown"].includes(t.key), a = t.key === "Enter" || t.key === " ", r = t.key === "Escape";
|
|
1129
1129
|
if (!o && !l && !a && !r) return;
|
|
1130
1130
|
if (t.preventDefault(), t.stopPropagation(), r) {
|
|
1131
|
-
|
|
1131
|
+
H.value = null, G.value = "pointer", oe.value = !1, z.value = null;
|
|
1132
1132
|
return;
|
|
1133
1133
|
}
|
|
1134
1134
|
if (a) {
|
|
1135
|
-
if (
|
|
1136
|
-
const
|
|
1137
|
-
if (
|
|
1138
|
-
ce(
|
|
1135
|
+
if (H.value === null) return;
|
|
1136
|
+
const V = T.value[H.value];
|
|
1137
|
+
if (!V) return;
|
|
1138
|
+
ce(V, H.value);
|
|
1139
1139
|
return;
|
|
1140
1140
|
}
|
|
1141
|
-
let c =
|
|
1142
|
-
|
|
1143
|
-
|
|
1144
|
-
|
|
1145
|
-
|
|
1141
|
+
let c = H.value;
|
|
1142
|
+
const y = z.value, $ = c !== null && c >= 0 && c < T.value.length, D = y !== null && y >= 0 && y < T.value.length;
|
|
1143
|
+
$ ? l ? (c += 1, c >= T.value.length && (c = 0)) : o && (c -= 1, c < 0 && (c = T.value.length - 1)) : D ? (c = l ? y + 1 : y - 1, c >= T.value.length && (c = 0), c < 0 && (c = T.value.length - 1)) : l ? c = 0 : c = T.value.length - 1;
|
|
1144
|
+
const S = T.value[c];
|
|
1145
|
+
S && (H.value = c, Jl(c), ie({
|
|
1146
|
+
datapoint: S,
|
|
1146
1147
|
relativeIndex: c,
|
|
1147
|
-
seriesIndex:
|
|
1148
|
+
seriesIndex: S.seriesIndex,
|
|
1148
1149
|
show: !0,
|
|
1149
1150
|
triggerMode: "keyboard"
|
|
1150
1151
|
}));
|
|
1151
1152
|
}
|
|
1152
1153
|
function Jl(t) {
|
|
1153
|
-
if (!Number.isFinite(t) || !
|
|
1154
|
+
if (!Number.isFinite(t) || !W.value) return;
|
|
1154
1155
|
let o = n.value.width / 2, l = n.value.height / 2;
|
|
1155
1156
|
if (e.value.type === "classic") {
|
|
1156
|
-
const r =
|
|
1157
|
+
const r = T.value[t];
|
|
1157
1158
|
if (!r?.arcSlice) return;
|
|
1158
1159
|
const c = kl(r.arcSlice);
|
|
1159
1160
|
if (!c) return;
|
|
@@ -1163,13 +1164,13 @@ const Ra = ["id"], Ea = ["id"], Va = ["id"], Ua = { style: { position: "relative
|
|
|
1163
1164
|
if (!r) return;
|
|
1164
1165
|
o = r.x, l = r.y;
|
|
1165
1166
|
}
|
|
1166
|
-
const a =
|
|
1167
|
+
const a = W.value.getBoundingClientRect();
|
|
1167
1168
|
wt.value = {
|
|
1168
1169
|
x: a.left + o / n.value.width * a.width,
|
|
1169
1170
|
y: a.top + l / n.value.height * a.height
|
|
1170
1171
|
};
|
|
1171
1172
|
}
|
|
1172
|
-
const Gt =
|
|
1173
|
+
const Gt = m(() => {
|
|
1173
1174
|
const t = We.value?.colNames ?? [], o = We.value?.a11yBody ?? [];
|
|
1174
1175
|
return { headers: t, rows: o };
|
|
1175
1176
|
});
|
|
@@ -1178,7 +1179,7 @@ const Ra = ["id"], Ea = ["id"], Va = ["id"], Ua = { style: { position: "relative
|
|
|
1178
1179
|
getData: $l,
|
|
1179
1180
|
getImage: Nl,
|
|
1180
1181
|
generatePdf: at,
|
|
1181
|
-
generateCsv:
|
|
1182
|
+
generateCsv: Et,
|
|
1182
1183
|
generateImage: $t,
|
|
1183
1184
|
generateSvg: il,
|
|
1184
1185
|
hideSeries: Al,
|
|
@@ -1191,33 +1192,33 @@ const Ra = ["id"], Ea = ["id"], Va = ["id"], Ua = { style: { position: "relative
|
|
|
1191
1192
|
copyAlt: cl
|
|
1192
1193
|
}), (t, o) => (u(), i("div", {
|
|
1193
1194
|
ref_key: "donutChart",
|
|
1194
|
-
ref:
|
|
1195
|
+
ref: M,
|
|
1195
1196
|
class: qt(`vue-data-ui-component vue-ui-donut ${Xe.value ? "vue-data-ui-wrapper-fullscreen" : ""} ${e.value.useCssAnimation ? "" : "vue-ui-dna"}`),
|
|
1196
|
-
style:
|
|
1197
|
-
id: `donut__${
|
|
1197
|
+
style: L(`font-family:${e.value.style.fontFamily};width:100%; ${e.value.responsive ? "height:100%;" : ""} text-align:center;background:${e.value.style.chart.backgroundColor}`),
|
|
1198
|
+
id: `donut__${p.value}`,
|
|
1198
1199
|
onMouseenter: kt,
|
|
1199
1200
|
onMouseleave: Xt
|
|
1200
1201
|
}, [
|
|
1201
1202
|
w("div", {
|
|
1202
|
-
id: `chart-instructions-${
|
|
1203
|
+
id: `chart-instructions-${p.value}`,
|
|
1203
1204
|
class: "sr-only"
|
|
1204
1205
|
}, [
|
|
1205
1206
|
w("p", null, ye(e.value.a11y.translations.keyboardNavigation), 1)
|
|
1206
|
-
], 8,
|
|
1207
|
+
], 8, Va),
|
|
1207
1208
|
Gt.value?.rows?.length ? (u(), ge(Da, {
|
|
1208
1209
|
key: 0,
|
|
1209
|
-
uid:
|
|
1210
|
+
uid: p.value,
|
|
1210
1211
|
head: Gt.value.headers,
|
|
1211
1212
|
body: Gt.value.rows,
|
|
1212
1213
|
notice: e.value.a11y.translations.tableAvailable,
|
|
1213
1214
|
caption: e.value.a11y.translations.tableCaption
|
|
1214
1215
|
}, null, 8, ["uid", "head", "body", "notice", "caption"])) : d("", !0),
|
|
1215
|
-
e.value.userOptions.buttons.annotator && s(
|
|
1216
|
+
e.value.userOptions.buttons.annotator && s(W) ? (u(), ge(s(It), {
|
|
1216
1217
|
key: 1,
|
|
1217
1218
|
color: e.value.style.chart.color,
|
|
1218
1219
|
backgroundColor: e.value.style.chart.backgroundColor,
|
|
1219
1220
|
active: ut.value,
|
|
1220
|
-
svgRef: s(
|
|
1221
|
+
svgRef: s(W),
|
|
1221
1222
|
isCursorPointer: xe.value,
|
|
1222
1223
|
onClose: Ht
|
|
1223
1224
|
}, {
|
|
@@ -1270,9 +1271,9 @@ const Ra = ["id"], Ea = ["id"], Va = ["id"], Ua = { style: { position: "relative
|
|
|
1270
1271
|
}, null, 8, ["config"]))
|
|
1271
1272
|
], 512)) : d("", !0),
|
|
1272
1273
|
w("div", {
|
|
1273
|
-
id: `legend-top-${
|
|
1274
|
-
}, null, 8,
|
|
1275
|
-
e.value.userOptions.show &&
|
|
1274
|
+
id: `legend-top-${p.value}`
|
|
1275
|
+
}, null, 8, Ea),
|
|
1276
|
+
e.value.userOptions.show && B.value && (s(Te) || s(Z)) ? (u(), ge(s(Ft), {
|
|
1276
1277
|
ref_key: "userOptionsRef",
|
|
1277
1278
|
ref: tt,
|
|
1278
1279
|
key: `user_option_${lt.value}`,
|
|
@@ -1280,7 +1281,7 @@ const Ra = ["id"], Ea = ["id"], Va = ["id"], Ua = { style: { position: "relative
|
|
|
1280
1281
|
color: e.value.style.chart.color,
|
|
1281
1282
|
isPrinting: s(Ge),
|
|
1282
1283
|
isImaging: s(xt),
|
|
1283
|
-
uid:
|
|
1284
|
+
uid: p.value,
|
|
1284
1285
|
hasTooltip: e.value.style.chart.tooltip.show && e.value.userOptions.buttons.tooltip,
|
|
1285
1286
|
hasPdf: e.value.userOptions.buttons.pdf,
|
|
1286
1287
|
hasImg: e.value.userOptions.buttons.img,
|
|
@@ -1291,7 +1292,7 @@ const Ra = ["id"], Ea = ["id"], Va = ["id"], Ua = { style: { position: "relative
|
|
|
1291
1292
|
hasFullscreen: e.value.userOptions.buttons.fullscreen,
|
|
1292
1293
|
hasAltCopy: e.value.userOptions.buttons.altCopy,
|
|
1293
1294
|
isFullscreen: Xe.value,
|
|
1294
|
-
chartElement:
|
|
1295
|
+
chartElement: M.value,
|
|
1295
1296
|
position: e.value.userOptions.position,
|
|
1296
1297
|
callbacks: e.value.userOptions.callbacks,
|
|
1297
1298
|
isTooltip: x.value.showTooltip,
|
|
@@ -1303,7 +1304,7 @@ const Ra = ["id"], Ea = ["id"], Va = ["id"], Ua = { style: { position: "relative
|
|
|
1303
1304
|
isCursorPointer: xe.value,
|
|
1304
1305
|
onToggleFullscreen: al,
|
|
1305
1306
|
onGeneratePdf: s(at),
|
|
1306
|
-
onGenerateCsv:
|
|
1307
|
+
onGenerateCsv: Et,
|
|
1307
1308
|
onGenerateImage: Wl,
|
|
1308
1309
|
onGenerateSvg: il,
|
|
1309
1310
|
onToggleTable: nl,
|
|
@@ -1311,7 +1312,7 @@ const Ra = ["id"], Ea = ["id"], Va = ["id"], Ua = { style: { position: "relative
|
|
|
1311
1312
|
onToggleTooltip: ul,
|
|
1312
1313
|
onToggleAnnotator: Ht,
|
|
1313
1314
|
onCopyAlt: cl,
|
|
1314
|
-
style:
|
|
1315
|
+
style: L({ visibility: s(Te) ? s(Z) ? "visible" : "hidden" : "visible" })
|
|
1315
1316
|
}, Wt({ _: 2 }, [
|
|
1316
1317
|
t.$slots.menuIcon ? {
|
|
1317
1318
|
name: "menuIcon",
|
|
@@ -1394,12 +1395,12 @@ const Ra = ["id"], Ea = ["id"], Va = ["id"], Ua = { style: { position: "relative
|
|
|
1394
1395
|
w("div", Ua, [
|
|
1395
1396
|
(u(), i("svg", {
|
|
1396
1397
|
ref_key: "svgRef",
|
|
1397
|
-
ref:
|
|
1398
|
+
ref: W,
|
|
1398
1399
|
xmlns: s(da),
|
|
1399
|
-
"aria-describedby": `chart-instructions-${
|
|
1400
|
+
"aria-describedby": `chart-instructions-${p.value}`,
|
|
1400
1401
|
class: qt({ "vue-data-ui-fullscreen--on": Xe.value, "vue-data-ui-fulscreen--off": !Xe.value, "vue-data-ui-svg": !0 }),
|
|
1401
1402
|
viewBox: `0 0 ${n.value.width <= 0 ? 10 : n.value.width} ${n.value.height <= 0 ? 10 : n.value.height}`,
|
|
1402
|
-
style:
|
|
1403
|
+
style: L(`max-width:100%; overflow: visible; background:transparent;color:${e.value.style.chart.color};${He.value.css}`),
|
|
1403
1404
|
tabindex: "0",
|
|
1404
1405
|
onFocus: jl,
|
|
1405
1406
|
onBlur: Kl,
|
|
@@ -1423,10 +1424,10 @@ const Ra = ["id"], Ea = ["id"], Va = ["id"], Ua = { style: { position: "relative
|
|
|
1423
1424
|
}, [
|
|
1424
1425
|
k(t.$slots, "chart-background", {}, void 0, !0)
|
|
1425
1426
|
], 8, Ga)) : d("", !0),
|
|
1426
|
-
e.value.type === "classic" && !isNaN(he.value /
|
|
1427
|
+
e.value.type === "classic" && !isNaN(he.value / O.value) ? (u(), i("defs", qa, [
|
|
1427
1428
|
e.value.style.chart.useGradient ? (u(), i("radialGradient", {
|
|
1428
1429
|
key: 0,
|
|
1429
|
-
id: `gradient_${
|
|
1430
|
+
id: `gradient_${p.value}`
|
|
1430
1431
|
}, [
|
|
1431
1432
|
w("stop", {
|
|
1432
1433
|
offset: "0%",
|
|
@@ -1434,12 +1435,12 @@ const Ra = ["id"], Ea = ["id"], Va = ["id"], Ua = { style: { position: "relative
|
|
|
1434
1435
|
"stop-opacity": "0"
|
|
1435
1436
|
}, null, 8, ja),
|
|
1436
1437
|
w("stop", {
|
|
1437
|
-
offset: `${(1 - he.value /
|
|
1438
|
+
offset: `${(1 - he.value / O.value) * 100}%`,
|
|
1438
1439
|
"stop-color": s(St)("#FFFFFF", 0),
|
|
1439
1440
|
"stop-opacity": "0"
|
|
1440
1441
|
}, null, 8, Ka),
|
|
1441
1442
|
w("stop", {
|
|
1442
|
-
offset: `${(1 - he.value /
|
|
1443
|
+
offset: `${(1 - he.value / O.value / 2) * 100}%`,
|
|
1443
1444
|
"stop-color": s(St)("#FFFFFF", e.value.style.chart.gradientIntensity)
|
|
1444
1445
|
}, null, 8, Qa),
|
|
1445
1446
|
w("stop", {
|
|
@@ -1450,26 +1451,26 @@ const Ra = ["id"], Ea = ["id"], Va = ["id"], Ua = { style: { position: "relative
|
|
|
1450
1451
|
], 8, Wa)) : d("", !0)
|
|
1451
1452
|
])) : d("", !0),
|
|
1452
1453
|
e.value.type === "polar" ? (u(), i("defs", Za, [
|
|
1453
|
-
(u(!0), i(
|
|
1454
|
-
id: `polar_gradient_${a}_${
|
|
1454
|
+
(u(!0), i(P, null, J(v.value, (l, a) => (u(), i("radialGradient", {
|
|
1455
|
+
id: `polar_gradient_${a}_${p.value}`,
|
|
1455
1456
|
cx: (isNaN(l.middlePoint.x / n.value.width * 100) ? 0 : l.middlePoint.x / n.value.width * 100) + "%",
|
|
1456
1457
|
cy: (isNaN(l.middlePoint.y / n.value.height * 100) ? 0 : l.middlePoint.y / n.value.height * 100) + "%",
|
|
1457
1458
|
r: "62%"
|
|
1458
1459
|
}, [
|
|
1459
1460
|
w("stop", {
|
|
1460
1461
|
offset: "0%",
|
|
1461
|
-
"stop-color": s(ha)(
|
|
1462
|
+
"stop-color": s(ha)(q.value[a].color, 0.05),
|
|
1462
1463
|
"stop-opacity": e.value.style.chart.gradientIntensity / 100
|
|
1463
1464
|
}, null, 8, to),
|
|
1464
1465
|
w("stop", {
|
|
1465
1466
|
offset: "100%",
|
|
1466
|
-
"stop-color":
|
|
1467
|
+
"stop-color": q.value[a].color
|
|
1467
1468
|
}, null, 8, lo)
|
|
1468
1469
|
], 8, eo))), 256))
|
|
1469
1470
|
])) : d("", !0),
|
|
1470
1471
|
w("defs", null, [
|
|
1471
1472
|
w("filter", {
|
|
1472
|
-
id: `blur_${
|
|
1473
|
+
id: `blur_${p.value}`,
|
|
1473
1474
|
x: "-50%",
|
|
1474
1475
|
y: "-50%",
|
|
1475
1476
|
width: "200%",
|
|
@@ -1478,7 +1479,7 @@ const Ra = ["id"], Ea = ["id"], Va = ["id"], Ua = { style: { position: "relative
|
|
|
1478
1479
|
w("feGaussianBlur", {
|
|
1479
1480
|
in: "SourceGraphic",
|
|
1480
1481
|
stdDeviation: 2,
|
|
1481
|
-
id: `blur_std_${
|
|
1482
|
+
id: `blur_std_${p.value}`
|
|
1482
1483
|
}, null, 8, oo),
|
|
1483
1484
|
o[5] || (o[5] = w("feColorMatrix", {
|
|
1484
1485
|
type: "saturate",
|
|
@@ -1486,7 +1487,7 @@ const Ra = ["id"], Ea = ["id"], Va = ["id"], Ua = { style: { position: "relative
|
|
|
1486
1487
|
}, null, -1))
|
|
1487
1488
|
], 8, ao),
|
|
1488
1489
|
w("filter", {
|
|
1489
|
-
id: `shadow_${
|
|
1490
|
+
id: `shadow_${p.value}`,
|
|
1490
1491
|
"color-interpolation-filters": "sRGB"
|
|
1491
1492
|
}, [
|
|
1492
1493
|
w("feDropShadow", {
|
|
@@ -1498,7 +1499,7 @@ const Ra = ["id"], Ea = ["id"], Va = ["id"], Ua = { style: { position: "relative
|
|
|
1498
1499
|
}, null, 8, so)
|
|
1499
1500
|
], 8, no),
|
|
1500
1501
|
w("filter", {
|
|
1501
|
-
id: `drop_shadow_${
|
|
1502
|
+
id: `drop_shadow_${p.value}`,
|
|
1502
1503
|
"color-interpolation-filters": "sRGB",
|
|
1503
1504
|
x: "-50%",
|
|
1504
1505
|
y: "-50%",
|
|
@@ -1514,10 +1515,10 @@ const Ra = ["id"], Ea = ["id"], Va = ["id"], Ua = { style: { position: "relative
|
|
|
1514
1515
|
}, null, 8, ro)
|
|
1515
1516
|
], 8, uo)
|
|
1516
1517
|
]),
|
|
1517
|
-
e.value.type === "classic" ? (u(!0), i(
|
|
1518
|
+
e.value.type === "classic" ? (u(!0), i(P, { key: 3 }, J(q.value.filter((l) => !l.ghost), (l, a) => (u(), i("g", null, [
|
|
1518
1519
|
ee(l) && x.value.dataLabels.show ? (u(), i("path", {
|
|
1519
1520
|
key: 0,
|
|
1520
|
-
d: s(
|
|
1521
|
+
d: s(R)[a]?.connectorPath || s(fa)(
|
|
1521
1522
|
l,
|
|
1522
1523
|
{ x: n.value.width / 2, y: n.value.height / 2 },
|
|
1523
1524
|
16,
|
|
@@ -1536,18 +1537,18 @@ const Ra = ["id"], Ea = ["id"], Va = ["id"], Ua = { style: { position: "relative
|
|
|
1536
1537
|
filter: Be(a)
|
|
1537
1538
|
}, null, 8, io)) : d("", !0)
|
|
1538
1539
|
]))), 256)) : d("", !0),
|
|
1539
|
-
e.value.type === "polar" ? (u(!0), i(
|
|
1540
|
+
e.value.type === "polar" ? (u(!0), i(P, { key: 4 }, J(q.value.filter((l) => !l.ghost), (l, a) => (u(), i("g", null, [
|
|
1540
1541
|
ee(l) && x.value.dataLabels.show ? (u(), i("path", {
|
|
1541
1542
|
key: 0,
|
|
1542
|
-
d: `M ${s(
|
|
1543
|
+
d: `M ${s(X)({ initX: v.value[a].middlePoint.x, initY: v.value[a].middlePoint.y, offset: 24, centerX: n.value.width / 2, centerY: n.value.height / 2 }).x},${s(X)({ initX: v.value[a].middlePoint.x, initY: v.value[a].middlePoint.y, offset: 24, centerX: n.value.width / 2, centerY: n.value.height / 2 }).y} ${v.value[a].middlePoint.x},${v.value[a].middlePoint.y}`,
|
|
1543
1544
|
stroke: l.color,
|
|
1544
1545
|
"stroke-width": "1",
|
|
1545
1546
|
"stroke-linecap": "round",
|
|
1546
1547
|
"stroke-linejoin": "round",
|
|
1547
1548
|
fill: "none",
|
|
1548
1549
|
filter: Be(a),
|
|
1549
|
-
style:
|
|
1550
|
-
transition:
|
|
1550
|
+
style: L({
|
|
1551
|
+
transition: Y.value || !e.value.serieToggleAnimation.show ? "none" : `all ${e.value.serieToggleAnimation.durationMs}ms ease-in-out`
|
|
1551
1552
|
})
|
|
1552
1553
|
}, null, 12, co)) : d("", !0)
|
|
1553
1554
|
]))), 256)) : d("", !0),
|
|
@@ -1555,24 +1556,24 @@ const Ra = ["id"], Ea = ["id"], Va = ["id"], Ua = { style: { position: "relative
|
|
|
1555
1556
|
key: 5,
|
|
1556
1557
|
cx: n.value.width / 2,
|
|
1557
1558
|
cy: n.value.height / 2,
|
|
1558
|
-
r:
|
|
1559
|
+
r: O.value <= 0 ? 10 : O.value,
|
|
1559
1560
|
fill: e.value.style.chart.backgroundColor,
|
|
1560
|
-
filter: `url(#shadow_${
|
|
1561
|
+
filter: `url(#shadow_${p.value})`
|
|
1561
1562
|
}, null, 8, vo)) : d("", !0),
|
|
1562
1563
|
t.$slots.pattern ? (u(), i("g", ho, [
|
|
1563
|
-
(u(!0), i(
|
|
1564
|
+
(u(!0), i(P, null, J(it.dataset, (l, a) => (u(), i("defs", {
|
|
1564
1565
|
key: `pattern-${l.patternIndex}`
|
|
1565
1566
|
}, [
|
|
1566
|
-
k(t.$slots, "pattern", jt({ ref_for: !0 }, { seriesIndex: a, patternId: `pattern_${
|
|
1567
|
+
k(t.$slots, "pattern", jt({ ref_for: !0 }, { seriesIndex: a, patternId: `pattern_${p.value}_${a}` }), void 0, !0)
|
|
1567
1568
|
]))), 128))
|
|
1568
1569
|
])) : d("", !0),
|
|
1569
|
-
te.value && e.value.type === "classic" ? (u(), i(
|
|
1570
|
-
(u(!0), i(
|
|
1570
|
+
te.value && e.value.type === "classic" ? (u(), i(P, { key: 7 }, [
|
|
1571
|
+
(u(!0), i(P, null, J(T.value, (l, a) => (u(), i("path", {
|
|
1571
1572
|
stroke: e.value.style.chart.backgroundColor,
|
|
1572
1573
|
d: l.arcSlice,
|
|
1573
1574
|
fill: "#FFFFFF"
|
|
1574
1575
|
}, null, 8, fo))), 256)),
|
|
1575
|
-
(u(!0), i(
|
|
1576
|
+
(u(!0), i(P, null, J(T.value, (l, a) => (u(), i("path", {
|
|
1576
1577
|
class: "vue-ui-donut-arc-path",
|
|
1577
1578
|
d: l.arcSlice,
|
|
1578
1579
|
fill: l.color,
|
|
@@ -1581,7 +1582,7 @@ const Ra = ["id"], Ea = ["id"], Va = ["id"], Ua = { style: { position: "relative
|
|
|
1581
1582
|
filter: Be(a)
|
|
1582
1583
|
}, null, 8, yo))), 256)),
|
|
1583
1584
|
t.$slots.pattern ? (u(), i("g", go, [
|
|
1584
|
-
(u(!0), i(
|
|
1585
|
+
(u(!0), i(P, null, J(T.value, (l, a) => (u(), i("path", {
|
|
1585
1586
|
class: "vue-ui-donut-arc-path",
|
|
1586
1587
|
d: l.arcSlice,
|
|
1587
1588
|
fill: `url(#${l.pattern})`,
|
|
@@ -1591,52 +1592,52 @@ const Ra = ["id"], Ea = ["id"], Va = ["id"], Ua = { style: { position: "relative
|
|
|
1591
1592
|
}, null, 8, po))), 256))
|
|
1592
1593
|
])) : d("", !0)
|
|
1593
1594
|
], 64)) : d("", !0),
|
|
1594
|
-
te.value && e.value.type === "polar" ? (u(), i(
|
|
1595
|
-
|
|
1596
|
-
(u(!0), i(
|
|
1595
|
+
te.value && e.value.type === "polar" ? (u(), i(P, { key: 8 }, [
|
|
1596
|
+
q.value.length > 1 ? (u(), i("g", mo, [
|
|
1597
|
+
(u(!0), i(P, null, J(T.value, (l, a) => (u(), i("path", {
|
|
1597
1598
|
stroke: e.value.style.chart.layout.donut.borderColorAuto ? e.value.style.chart.backgroundColor : e.value.style.chart.layout.donut.borderColor,
|
|
1598
1599
|
d: v.value[a].path,
|
|
1599
1600
|
fill: "#FFFFFF",
|
|
1600
|
-
style:
|
|
1601
|
-
transition:
|
|
1601
|
+
style: L({
|
|
1602
|
+
transition: Y.value || !e.value.serieToggleAnimation.show ? "none" : `all ${e.value.serieToggleAnimation.durationMs}ms ease-in-out`
|
|
1602
1603
|
})
|
|
1603
1604
|
}, null, 12, bo))), 256)),
|
|
1604
1605
|
e.value.style.chart.layout.donut.useShadow ? (u(), i("g", wo, [
|
|
1605
|
-
(u(!0), i(
|
|
1606
|
+
(u(!0), i(P, null, J(T.value, (l, a) => (u(), i("path", {
|
|
1606
1607
|
class: "vue-ui-donut-arc-path",
|
|
1607
1608
|
d: v.value[a].path,
|
|
1608
1609
|
fill: "transparent",
|
|
1609
1610
|
stroke: e.value.style.chart.layout.donut.borderColorAuto ? e.value.style.chart.backgroundColor : e.value.style.chart.layout.donut.borderColor,
|
|
1610
1611
|
"stroke-width": e.value.style.chart.layout.donut.borderWidth,
|
|
1611
|
-
filter: `url(#drop_shadow_${
|
|
1612
|
-
style:
|
|
1613
|
-
transition:
|
|
1612
|
+
filter: `url(#drop_shadow_${p.value})`,
|
|
1613
|
+
style: L({
|
|
1614
|
+
transition: Y.value || !e.value.serieToggleAnimation.show ? "none" : `all ${e.value.serieToggleAnimation.durationMs}ms ease-in-out`
|
|
1614
1615
|
})
|
|
1615
1616
|
}, null, 12, ko))), 256))
|
|
1616
1617
|
])) : d("", !0),
|
|
1617
1618
|
t.$slots.pattern ? (u(), i("g", xo, [
|
|
1618
|
-
(u(!0), i(
|
|
1619
|
+
(u(!0), i(P, null, J(T.value, (l, a) => (u(), i("path", {
|
|
1619
1620
|
class: "vue-ui-donut-arc-path",
|
|
1620
1621
|
d: v.value[a].path,
|
|
1621
1622
|
fill: `url(#${l.pattern})`,
|
|
1622
1623
|
stroke: e.value.style.chart.layout.donut.borderColorAuto ? e.value.style.chart.backgroundColor : e.value.style.chart.layout.donut.borderColor,
|
|
1623
1624
|
"stroke-width": e.value.style.chart.layout.donut.borderWidth,
|
|
1624
1625
|
filter: Be(a),
|
|
1625
|
-
style:
|
|
1626
|
-
transition:
|
|
1626
|
+
style: L({
|
|
1627
|
+
transition: Y.value || !e.value.serieToggleAnimation.show ? "none" : `all ${e.value.serieToggleAnimation.durationMs}ms ease-in-out`,
|
|
1627
1628
|
transformOrigin: "center"
|
|
1628
1629
|
})
|
|
1629
1630
|
}, null, 12, $o))), 256))
|
|
1630
1631
|
])) : d("", !0),
|
|
1631
|
-
(u(!0), i(
|
|
1632
|
+
(u(!0), i(P, null, J(T.value, (l, a) => (u(), i("path", {
|
|
1632
1633
|
class: "vue-ui-donut-arc-path",
|
|
1633
1634
|
d: v.value[a].path,
|
|
1634
|
-
fill: e.value.style.chart.useGradient ? `url(#polar_gradient_${a}_${
|
|
1635
|
+
fill: e.value.style.chart.useGradient ? `url(#polar_gradient_${a}_${p.value})` : l.color,
|
|
1635
1636
|
stroke: e.value.style.chart.layout.donut.borderColorAuto ? e.value.style.chart.backgroundColor : e.value.style.chart.layout.donut.borderColor,
|
|
1636
1637
|
"stroke-width": e.value.style.chart.layout.donut.borderWidth,
|
|
1637
1638
|
filter: Be(a),
|
|
1638
|
-
style:
|
|
1639
|
-
transition:
|
|
1639
|
+
style: L({
|
|
1640
|
+
transition: Y.value || !e.value.serieToggleAnimation.show ? "none" : `all ${e.value.serieToggleAnimation.durationMs}ms ease-in-out`
|
|
1640
1641
|
})
|
|
1641
1642
|
}, null, 12, Co))), 256))
|
|
1642
1643
|
])) : (u(), i("g", _o, [
|
|
@@ -1644,23 +1645,23 @@ const Ra = ["id"], Ea = ["id"], Va = ["id"], Ua = { style: { position: "relative
|
|
|
1644
1645
|
key: 0,
|
|
1645
1646
|
cx: n.value.width / 2,
|
|
1646
1647
|
cy: n.value.height / 2,
|
|
1647
|
-
r:
|
|
1648
|
-
fill: `url(#pattern_${
|
|
1648
|
+
r: O.value,
|
|
1649
|
+
fill: `url(#pattern_${p.value}_${q.value[0].patternIndex})`,
|
|
1649
1650
|
stroke: e.value.style.chart.backgroundColor,
|
|
1650
1651
|
"stroke-width": e.value.style.chart.layout.donut.borderWidth
|
|
1651
1652
|
}, null, 8, Ao)) : d("", !0),
|
|
1652
1653
|
w("circle", {
|
|
1653
1654
|
cx: n.value.width / 2,
|
|
1654
1655
|
cy: n.value.height / 2,
|
|
1655
|
-
r:
|
|
1656
|
-
fill: e.value.style.chart.useGradient ? `url(#polar_gradient_0_${
|
|
1656
|
+
r: O.value,
|
|
1657
|
+
fill: e.value.style.chart.useGradient ? `url(#polar_gradient_0_${p.value})` : q.value[0].color,
|
|
1657
1658
|
stroke: e.value.style.chart.backgroundColor,
|
|
1658
1659
|
"stroke-width": e.value.style.chart.layout.donut.borderWidth
|
|
1659
1660
|
}, null, 8, To)
|
|
1660
1661
|
]))
|
|
1661
|
-
], 64)) : (u(), i(
|
|
1662
|
+
], 64)) : (u(), i(P, { key: 9 }, [
|
|
1662
1663
|
e.value.type === "classic" && !Sl.value ? (u(), i("g", Po, [
|
|
1663
|
-
(u(!0), i(
|
|
1664
|
+
(u(!0), i(P, null, J(Ll.value, (l, a) => (u(), i("path", {
|
|
1664
1665
|
class: "vue-ui-donut-arc-path",
|
|
1665
1666
|
d: l.arcSlice,
|
|
1666
1667
|
fill: l.color,
|
|
@@ -1671,7 +1672,7 @@ const Ra = ["id"], Ea = ["id"], Va = ["id"], Ua = { style: { position: "relative
|
|
|
1671
1672
|
w("circle", {
|
|
1672
1673
|
cx: n.value.width / 2,
|
|
1673
1674
|
cy: n.value.height / 2,
|
|
1674
|
-
r:
|
|
1675
|
+
r: O.value <= 0 ? 10 : O.value,
|
|
1675
1676
|
fill: "transparent",
|
|
1676
1677
|
stroke: e.value.style.chart.backgroundColor
|
|
1677
1678
|
}, null, 8, Lo)
|
|
@@ -1682,9 +1683,9 @@ const Ra = ["id"], Ea = ["id"], Va = ["id"], Ua = { style: { position: "relative
|
|
|
1682
1683
|
cy: n.value.height / 2,
|
|
1683
1684
|
r: (
|
|
1684
1685
|
/* This might require adjustments */
|
|
1685
|
-
|
|
1686
|
+
O.value <= 0 ? 10 : O.value
|
|
1686
1687
|
),
|
|
1687
|
-
fill: `url(#gradient_${
|
|
1688
|
+
fill: `url(#gradient_${p.value})`
|
|
1688
1689
|
}, null, 8, Mo)) : d("", !0),
|
|
1689
1690
|
w("circle", {
|
|
1690
1691
|
ref_key: "circle_hollow",
|
|
@@ -1695,12 +1696,12 @@ const Ra = ["id"], Ea = ["id"], Va = ["id"], Ua = { style: { position: "relative
|
|
|
1695
1696
|
cy: n.value.height / 2,
|
|
1696
1697
|
r: Math.max(0.1, he.value * 1.7)
|
|
1697
1698
|
}, null, 8, Io),
|
|
1698
|
-
te.value ? (u(), i(
|
|
1699
|
-
|
|
1700
|
-
(u(!0), i(
|
|
1699
|
+
te.value ? (u(), i(P, { key: 11 }, [
|
|
1700
|
+
q.value.length > 1 || e.value.type === "classic" ? (u(), i("g", Fo, [
|
|
1701
|
+
(u(!0), i(P, null, J(q.value.filter((l) => !l.ghost), (l, a) => (u(), i("path", {
|
|
1701
1702
|
d: e.value.type === "classic" ? l.arcSlice : v.value[a].path,
|
|
1702
1703
|
stroke: e.value.style.chart.layout.donut.borderColorAuto ? e.value.style.chart.backgroundColor : e.value.style.chart.layout.donut.borderColor,
|
|
1703
|
-
fill:
|
|
1704
|
+
fill: z.value === a ? e.value.style.chart.layout.donut.selectedColor : "transparent",
|
|
1704
1705
|
onMouseenter: (r) => ie({
|
|
1705
1706
|
datapoint: l,
|
|
1706
1707
|
relativeIndex: a,
|
|
@@ -1714,16 +1715,16 @@ const Ra = ["id"], Ea = ["id"], Va = ["id"], Ua = { style: { position: "relative
|
|
|
1714
1715
|
w("circle", {
|
|
1715
1716
|
cx: n.value.width / 2,
|
|
1716
1717
|
cy: n.value.height / 2,
|
|
1717
|
-
r:
|
|
1718
|
+
r: O.value,
|
|
1718
1719
|
fill: "transparent",
|
|
1719
1720
|
onMouseenter: o[0] || (o[0] = (l) => ie({
|
|
1720
|
-
datapoint:
|
|
1721
|
+
datapoint: q.value[0],
|
|
1721
1722
|
relativeIndex: 0,
|
|
1722
|
-
seriesIndex:
|
|
1723
|
+
seriesIndex: q.value[0].seriesIndex,
|
|
1723
1724
|
show: !0
|
|
1724
1725
|
})),
|
|
1725
|
-
onMouseleave: o[1] || (o[1] = (l) => fe({ datapoint:
|
|
1726
|
-
onClick: o[2] || (o[2] = (l) => ce(
|
|
1726
|
+
onMouseleave: o[1] || (o[1] = (l) => fe({ datapoint: q.value[0], seriesIndex: q.value[0].seriesIndex })),
|
|
1727
|
+
onClick: o[2] || (o[2] = (l) => ce(q.value[0], t.i))
|
|
1727
1728
|
}, null, 40, Yo)
|
|
1728
1729
|
]))
|
|
1729
1730
|
], 64)) : d("", !0),
|
|
@@ -1740,7 +1741,7 @@ const Ra = ["id"], Ea = ["id"], Va = ["id"], Ua = { style: { position: "relative
|
|
|
1740
1741
|
y: n.value.height / 2 - (e.value.style.chart.layout.labels.hollow.average.show ? e.value.style.chart.layout.labels.hollow.total.fontSize : 0) + e.value.style.chart.layout.labels.hollow.total.offsetY,
|
|
1741
1742
|
fill: e.value.style.chart.layout.labels.hollow.total.color,
|
|
1742
1743
|
"font-size": e.value.style.chart.layout.labels.hollow.total.fontSize,
|
|
1743
|
-
style:
|
|
1744
|
+
style: L(`font-weight:${e.value.style.chart.layout.labels.hollow.total.bold ? "bold" : ""}`)
|
|
1744
1745
|
}, ye(e.value.style.chart.layout.labels.hollow.total.text), 13, Do)) : d("", !0),
|
|
1745
1746
|
e.value.style.chart.layout.labels.hollow.total.show ? (u(), i("text", {
|
|
1746
1747
|
key: 1,
|
|
@@ -1749,7 +1750,7 @@ const Ra = ["id"], Ea = ["id"], Va = ["id"], Ua = { style: { position: "relative
|
|
|
1749
1750
|
y: n.value.height / 2 + e.value.style.chart.layout.labels.hollow.total.fontSize - (e.value.style.chart.layout.labels.hollow.average.show ? e.value.style.chart.layout.labels.hollow.total.fontSize : 0) + e.value.style.chart.layout.labels.hollow.total.value.offsetY,
|
|
1750
1751
|
fill: e.value.style.chart.layout.labels.hollow.total.value.color,
|
|
1751
1752
|
"font-size": e.value.style.chart.layout.labels.hollow.total.value.fontSize,
|
|
1752
|
-
style:
|
|
1753
|
+
style: L(`font-weight:${e.value.style.chart.layout.labels.hollow.total.value.bold ? "bold" : ""}`)
|
|
1753
1754
|
}, ye(s(pe)(
|
|
1754
1755
|
e.value.style.chart.layout.labels.hollow.total.value.formatter,
|
|
1755
1756
|
te.value,
|
|
@@ -1766,7 +1767,7 @@ const Ra = ["id"], Ea = ["id"], Va = ["id"], Ua = { style: { position: "relative
|
|
|
1766
1767
|
y: n.value.height / 2 + (e.value.style.chart.layout.labels.hollow.total.show ? e.value.style.chart.layout.labels.hollow.average.fontSize : 0) + e.value.style.chart.layout.labels.hollow.average.offsetY,
|
|
1767
1768
|
fill: e.value.style.chart.layout.labels.hollow.average.color,
|
|
1768
1769
|
"font-size": e.value.style.chart.layout.labels.hollow.average.fontSize,
|
|
1769
|
-
style:
|
|
1770
|
+
style: L(`font-weight:${e.value.style.chart.layout.labels.hollow.average.bold ? "bold" : ""}`)
|
|
1770
1771
|
}, ye(e.value.style.chart.layout.labels.hollow.average.text), 13, Xo)) : d("", !0),
|
|
1771
1772
|
e.value.style.chart.layout.labels.hollow.average.show ? (u(), i("text", {
|
|
1772
1773
|
key: 3,
|
|
@@ -1775,8 +1776,8 @@ const Ra = ["id"], Ea = ["id"], Va = ["id"], Ua = { style: { position: "relative
|
|
|
1775
1776
|
y: n.value.height / 2 + (e.value.style.chart.layout.labels.hollow.total.show ? e.value.style.chart.layout.labels.hollow.average.fontSize : 0) + e.value.style.chart.layout.labels.hollow.average.fontSize + e.value.style.chart.layout.labels.hollow.average.value.offsetY,
|
|
1776
1777
|
fill: e.value.style.chart.layout.labels.hollow.average.value.color,
|
|
1777
1778
|
"font-size": e.value.style.chart.layout.labels.hollow.average.value.fontSize,
|
|
1778
|
-
style:
|
|
1779
|
-
}, ye(Pe.value ||
|
|
1779
|
+
style: L(`font-weight:${e.value.style.chart.layout.labels.hollow.average.value.bold ? "bold" : ""}`)
|
|
1780
|
+
}, ye(Pe.value || Y.value ? "--" : s(pe)(
|
|
1780
1781
|
e.value.style.chart.layout.labels.hollow.average.value.formatter,
|
|
1781
1782
|
s(bl)(Rt.value),
|
|
1782
1783
|
s(ve)({
|
|
@@ -1787,13 +1788,13 @@ const Ra = ["id"], Ea = ["id"], Va = ["id"], Ua = { style: { position: "relative
|
|
|
1787
1788
|
})
|
|
1788
1789
|
)), 13, No)) : d("", !0)
|
|
1789
1790
|
], 512)) : d("", !0),
|
|
1790
|
-
(u(!0), i(
|
|
1791
|
+
(u(!0), i(P, null, J(T.value.filter((l) => !l.ghost), (l, a) => (u(), i("g", {
|
|
1791
1792
|
filter: Be(a),
|
|
1792
1793
|
class: qt({ animated: e.value.useCssAnimation }),
|
|
1793
1794
|
key: l.seriesIndex,
|
|
1794
1795
|
opacity: Bl(l)
|
|
1795
1796
|
}, [
|
|
1796
|
-
e.value.style.chart.layout.labels.dataLabels.useLabelSlots ? (u(), i("g",
|
|
1797
|
+
e.value.style.chart.layout.labels.dataLabels.useLabelSlots ? (u(), i("g", Vo, [
|
|
1797
1798
|
(u(), i("foreignObject", {
|
|
1798
1799
|
x: s(A)(l, !0).anchor === "end" ? s(A)(l).x - 120 : s(A)(l, !0).anchor === "middle" ? s(A)(l).x - 60 : s(A)(l).x,
|
|
1799
1800
|
y: s(we)(l) - (ol.value ? 20 : 0),
|
|
@@ -1804,26 +1805,26 @@ const Ra = ["id"], Ea = ["id"], Va = ["id"], Ua = { style: { position: "relative
|
|
|
1804
1805
|
w("div", null, [
|
|
1805
1806
|
k(t.$slots, "dataLabel", jt({ ref_for: !0 }, {
|
|
1806
1807
|
datapoint: l,
|
|
1807
|
-
isBlur: !e.value.useBlurOnHover || [null, void 0].includes(
|
|
1808
|
+
isBlur: !e.value.useBlurOnHover || [null, void 0].includes(z.value) || z.value === a,
|
|
1808
1809
|
isSafari: ol.value,
|
|
1809
1810
|
isVisible: ee(l) && x.value.dataLabels.show,
|
|
1810
1811
|
textAlign: s(A)(l, !0, 16, !0).anchor,
|
|
1811
1812
|
flexAlign: s(A)(l, !0, 16).anchor,
|
|
1812
|
-
percentage: tl(l,
|
|
1813
|
+
percentage: tl(l, T.value)
|
|
1813
1814
|
}), void 0, !0)
|
|
1814
1815
|
])
|
|
1815
|
-
], 8,
|
|
1816
|
+
], 8, Eo))
|
|
1816
1817
|
])) : (u(), i("g", Uo, [
|
|
1817
|
-
e.value.type === "classic" ? (u(), i(
|
|
1818
|
+
e.value.type === "classic" ? (u(), i(P, { key: 0 }, [
|
|
1818
1819
|
ee(l) && x.value.dataLabels.show ? (u(), i("circle", {
|
|
1819
1820
|
key: 0,
|
|
1820
|
-
cx: s(
|
|
1821
|
-
cy: s(
|
|
1821
|
+
cx: s(R)[a]?.markerX ?? s(A)(l).x,
|
|
1822
|
+
cy: s(R)[a]?.markerY ?? s(we)(l) - 3.5,
|
|
1822
1823
|
fill: l.color,
|
|
1823
1824
|
stroke: e.value.style.chart.backgroundColor,
|
|
1824
1825
|
"stroke-width": 1,
|
|
1825
1826
|
r: 3,
|
|
1826
|
-
filter: !e.value.useBlurOnHover || [null, void 0].includes(
|
|
1827
|
+
filter: !e.value.useBlurOnHover || [null, void 0].includes(z.value) || z.value === a ? "" : `url(#blur_${p.value})`,
|
|
1827
1828
|
onClick: (r) => ce(l, a),
|
|
1828
1829
|
onMouseenter: (r) => ie({
|
|
1829
1830
|
datapoint: l,
|
|
@@ -1833,12 +1834,12 @@ const Ra = ["id"], Ea = ["id"], Va = ["id"], Ua = { style: { position: "relative
|
|
|
1833
1834
|
}),
|
|
1834
1835
|
onMouseleave: (r) => fe({ datapoint: l, seriesIndex: l.seriesIndex })
|
|
1835
1836
|
}, null, 40, Ho)) : d("", !0),
|
|
1836
|
-
e.value.style.chart.layout.labels.dataLabels.oneLine || s(
|
|
1837
|
+
e.value.style.chart.layout.labels.dataLabels.oneLine || s(R)[a] ? Tt((u(), i("text", {
|
|
1837
1838
|
key: 1,
|
|
1838
1839
|
class: "vue-data-ui-datalabel-inline",
|
|
1839
|
-
"text-anchor": s(
|
|
1840
|
-
x: s(
|
|
1841
|
-
y: s(
|
|
1840
|
+
"text-anchor": s(R)[a]?.textAnchor || s(A)(l, !0, 12).anchor,
|
|
1841
|
+
x: s(R)[a]?.labelX ?? s(A)(l, !0, 12).x,
|
|
1842
|
+
y: s(R)[a]?.labelY ?? s(we)(l),
|
|
1842
1843
|
onClick: (r) => ce(l, a),
|
|
1843
1844
|
onMouseenter: (r) => ie({
|
|
1844
1845
|
datapoint: l,
|
|
@@ -1847,18 +1848,18 @@ const Ra = ["id"], Ea = ["id"], Va = ["id"], Ua = { style: { position: "relative
|
|
|
1847
1848
|
show: !0
|
|
1848
1849
|
}),
|
|
1849
1850
|
onMouseleave: (r) => fe({ datapoint: l, seriesIndex: l.seriesIndex }),
|
|
1850
|
-
innerHTML: Yl(l, a, !!s(
|
|
1851
|
+
innerHTML: Yl(l, a, !!s(R)[a])
|
|
1851
1852
|
}, null, 40, Go)), [
|
|
1852
1853
|
[Pt, ee(l) && x.value.dataLabels.show]
|
|
1853
|
-
]) : (u(), i(
|
|
1854
|
+
]) : (u(), i(P, { key: 2 }, [
|
|
1854
1855
|
Tt(w("text", {
|
|
1855
1856
|
class: "vue-data-ui-datalabel-value",
|
|
1856
|
-
"text-anchor": s(
|
|
1857
|
-
x: s(
|
|
1858
|
-
y: s(
|
|
1857
|
+
"text-anchor": s(R)[a]?.textAnchor || s(A)(l, !0, 12).anchor,
|
|
1858
|
+
x: s(R)[a]?.labelX ?? s(A)(l, !0, 12).x,
|
|
1859
|
+
y: s(R)[a]?.labelY ?? s(we)(l),
|
|
1859
1860
|
fill: e.value.style.chart.layout.labels.percentage.color,
|
|
1860
|
-
"font-size":
|
|
1861
|
-
style:
|
|
1861
|
+
"font-size": g.value + "px",
|
|
1862
|
+
style: L(`font-weight:${e.value.style.chart.layout.labels.percentage.bold ? "bold" : ""}`),
|
|
1862
1863
|
onClick: (r) => ce(l, a),
|
|
1863
1864
|
onMouseenter: (r) => ie({
|
|
1864
1865
|
datapoint: l,
|
|
@@ -1872,12 +1873,12 @@ const Ra = ["id"], Ea = ["id"], Va = ["id"], Ua = { style: { position: "relative
|
|
|
1872
1873
|
]),
|
|
1873
1874
|
Tt(w("text", {
|
|
1874
1875
|
class: "vue-data-ui-datalabel-name",
|
|
1875
|
-
"text-anchor": s(
|
|
1876
|
-
x: s(
|
|
1877
|
-
y: (s(
|
|
1876
|
+
"text-anchor": s(R)[a]?.textAnchor || s(A)(l).anchor,
|
|
1877
|
+
x: s(R)[a]?.labelX ?? s(A)(l, !0, 12).x,
|
|
1878
|
+
y: (s(R)[a]?.labelY ?? s(we)(l)) + f.value * 1.2,
|
|
1878
1879
|
fill: e.value.style.chart.layout.labels.name.color,
|
|
1879
1880
|
"font-size": f.value + "px",
|
|
1880
|
-
style:
|
|
1881
|
+
style: L(`font-weight:${e.value.style.chart.layout.labels.name.bold ? "bold" : ""}`),
|
|
1881
1882
|
onClick: (r) => ce(l, a),
|
|
1882
1883
|
onMouseenter: (r) => ie({
|
|
1883
1884
|
datapoint: l,
|
|
@@ -1890,24 +1891,24 @@ const Ra = ["id"], Ea = ["id"], Va = ["id"], Ua = { style: { position: "relative
|
|
|
1890
1891
|
content: l.name,
|
|
1891
1892
|
fontSize: f.value,
|
|
1892
1893
|
fill: e.value.style.chart.layout.labels.name.color,
|
|
1893
|
-
x: s(
|
|
1894
|
-
y: (s(
|
|
1894
|
+
x: s(R)[a]?.labelX ?? s(A)(l, !0, 12).x,
|
|
1895
|
+
y: (s(R)[a]?.labelY ?? s(we)(l)) + f.value
|
|
1895
1896
|
})
|
|
1896
1897
|
}, null, 44, Wo), [
|
|
1897
1898
|
[Pt, ee(l) && x.value.dataLabels.show && e.value.style.chart.layout.labels.name.show]
|
|
1898
1899
|
])
|
|
1899
1900
|
], 64))
|
|
1900
1901
|
], 64)) : d("", !0),
|
|
1901
|
-
e.value.type === "polar" ? (u(), i(
|
|
1902
|
+
e.value.type === "polar" ? (u(), i(P, { key: 1 }, [
|
|
1902
1903
|
ee(l) && x.value.dataLabels.show ? (u(), i("circle", {
|
|
1903
1904
|
key: 0,
|
|
1904
|
-
cx: s(
|
|
1905
|
-
cy: s(
|
|
1905
|
+
cx: s(X)({ initX: v.value[a].middlePoint.x, initY: v.value[a].middlePoint.y, offset: 24, centerX: n.value.width / 2, centerY: n.value.height / 2 }).x,
|
|
1906
|
+
cy: s(X)({ initX: v.value[a].middlePoint.x, initY: v.value[a].middlePoint.y, offset: 24, centerX: n.value.width / 2, centerY: n.value.height / 2 }).y,
|
|
1906
1907
|
fill: l.color,
|
|
1907
1908
|
stroke: e.value.style.chart.backgroundColor,
|
|
1908
1909
|
"stroke-width": 1,
|
|
1909
1910
|
r: 3,
|
|
1910
|
-
filter: !e.value.useBlurOnHover || [null, void 0].includes(
|
|
1911
|
+
filter: !e.value.useBlurOnHover || [null, void 0].includes(z.value) || z.value === a ? "" : `url(#blur_${p.value})`,
|
|
1911
1912
|
onClick: (r) => ce(l, a),
|
|
1912
1913
|
onMouseenter: (r) => ie({
|
|
1913
1914
|
datapoint: l,
|
|
@@ -1916,18 +1917,18 @@ const Ra = ["id"], Ea = ["id"], Va = ["id"], Ua = { style: { position: "relative
|
|
|
1916
1917
|
show: !0
|
|
1917
1918
|
}),
|
|
1918
1919
|
onMouseleave: (r) => fe({ datapoint: l, seriesIndex: l.seriesIndex }),
|
|
1919
|
-
style:
|
|
1920
|
-
transition:
|
|
1920
|
+
style: L({
|
|
1921
|
+
transition: Y.value || !e.value.serieToggleAnimation.show ? "none" : `all ${e.value.serieToggleAnimation.durationMs}ms ease-in-out`
|
|
1921
1922
|
})
|
|
1922
1923
|
}, null, 44, jo)) : d("", !0),
|
|
1923
1924
|
e.value.style.chart.layout.labels.dataLabels.oneLine ? Tt((u(), i("text", {
|
|
1924
1925
|
key: 1,
|
|
1925
1926
|
class: "vue-data-ui-datalabel-inline",
|
|
1926
1927
|
"text-anchor": Se(v.value[a].middlePoint),
|
|
1927
|
-
x: s(
|
|
1928
|
-
y: s(
|
|
1929
|
-
style:
|
|
1930
|
-
transition:
|
|
1928
|
+
x: s(X)({ initX: v.value[a].middlePoint.x, initY: v.value[a].middlePoint.y, offset: 42, centerX: n.value.width / 2, centerY: n.value.height / 2 }).x,
|
|
1929
|
+
y: s(X)({ initX: v.value[a].middlePoint.x, initY: v.value[a].middlePoint.y, offset: 42, centerX: n.value.width / 2, centerY: n.value.height / 2 }).y,
|
|
1930
|
+
style: L({
|
|
1931
|
+
transition: Y.value || !e.value.serieToggleAnimation.show ? "none" : `all ${e.value.serieToggleAnimation.durationMs}ms ease-in-out`
|
|
1931
1932
|
}),
|
|
1932
1933
|
onClick: (r) => ce(l, a),
|
|
1933
1934
|
onMouseenter: (r) => ie({
|
|
@@ -1940,17 +1941,17 @@ const Ra = ["id"], Ea = ["id"], Va = ["id"], Ua = { style: { position: "relative
|
|
|
1940
1941
|
innerHTML: Dl(l, a)
|
|
1941
1942
|
}, null, 44, Ko)), [
|
|
1942
1943
|
[Pt, ee(l) && x.value.dataLabels.show]
|
|
1943
|
-
]) : (u(), i(
|
|
1944
|
+
]) : (u(), i(P, { key: 2 }, [
|
|
1944
1945
|
ee(l) && x.value.dataLabels.show ? (u(), i("text", {
|
|
1945
1946
|
key: 0,
|
|
1946
1947
|
class: "vue-data-ui-datalabel-value",
|
|
1947
1948
|
"text-anchor": Se(v.value[a].middlePoint),
|
|
1948
|
-
x: s(
|
|
1949
|
-
y: s(
|
|
1949
|
+
x: s(X)({ initX: v.value[a].middlePoint.x, initY: v.value[a].middlePoint.y, offset: 42, centerX: n.value.width / 2, centerY: n.value.height / 2 }).x,
|
|
1950
|
+
y: s(X)({ initX: v.value[a].middlePoint.x, initY: v.value[a].middlePoint.y, offset: 42, centerX: n.value.width / 2, centerY: n.value.height / 2 }).y,
|
|
1950
1951
|
fill: e.value.style.chart.layout.labels.percentage.color,
|
|
1951
|
-
"font-size":
|
|
1952
|
-
style:
|
|
1953
|
-
transition:
|
|
1952
|
+
"font-size": g.value,
|
|
1953
|
+
style: L({
|
|
1954
|
+
transition: Y.value || !e.value.serieToggleAnimation.show ? "none" : `all ${e.value.serieToggleAnimation.durationMs}ms ease-in-out`,
|
|
1954
1955
|
fontWeight: e.value.style.chart.layout.labels.percentage.bold ? "bold" : "normal"
|
|
1955
1956
|
}),
|
|
1956
1957
|
onClick: (r) => ce(l, a),
|
|
@@ -1966,12 +1967,12 @@ const Ra = ["id"], Ea = ["id"], Va = ["id"], Ua = { style: { position: "relative
|
|
|
1966
1967
|
key: 1,
|
|
1967
1968
|
class: "vue-data-ui-datalabel-name",
|
|
1968
1969
|
"text-anchor": Se(v.value[a].middlePoint),
|
|
1969
|
-
x: s(
|
|
1970
|
-
y: s(
|
|
1970
|
+
x: s(X)({ initX: v.value[a].middlePoint.x, initY: v.value[a].middlePoint.y, offset: 42, centerX: n.value.width / 2, centerY: n.value.height / 2 }).x,
|
|
1971
|
+
y: s(X)({ initX: v.value[a].middlePoint.x, initY: v.value[a].middlePoint.y, offset: 42, centerX: n.value.width / 2, centerY: n.value.height / 2 }).y + f.value * 1.2,
|
|
1971
1972
|
fill: e.value.style.chart.layout.labels.name.color,
|
|
1972
1973
|
"font-size": f.value,
|
|
1973
|
-
style:
|
|
1974
|
-
transition:
|
|
1974
|
+
style: L({
|
|
1975
|
+
transition: Y.value || !e.value.serieToggleAnimation.show ? "none" : `all ${e.value.serieToggleAnimation.durationMs}ms ease-in-out`,
|
|
1975
1976
|
fontWeight: e.value.style.chart.layout.labels.name.bold ? "bold" : "normal"
|
|
1976
1977
|
}),
|
|
1977
1978
|
onClick: (r) => ce(l, a),
|
|
@@ -1986,8 +1987,8 @@ const Ra = ["id"], Ea = ["id"], Va = ["id"], Ua = { style: { position: "relative
|
|
|
1986
1987
|
content: l.name,
|
|
1987
1988
|
fontSize: f.value,
|
|
1988
1989
|
fill: e.value.style.chart.layout.labels.name.color,
|
|
1989
|
-
x: s(
|
|
1990
|
-
y: s(
|
|
1990
|
+
x: s(X)({ initX: v.value[a].middlePoint.x, initY: v.value[a].middlePoint.y, offset: 42, centerX: n.value.width / 2, centerY: n.value.height / 2 }).x,
|
|
1991
|
+
y: s(X)({ initX: v.value[a].middlePoint.x, initY: v.value[a].middlePoint.y, offset: 42, centerX: n.value.width / 2, centerY: n.value.height / 2 }).y + f.value * 1.2
|
|
1991
1992
|
})
|
|
1992
1993
|
}, null, 44, Jo)) : d("", !0)
|
|
1993
1994
|
], 64))
|
|
@@ -2004,25 +2005,25 @@ const Ra = ["id"], Ea = ["id"], Va = ["id"], Ua = { style: { position: "relative
|
|
|
2004
2005
|
}, [
|
|
2005
2006
|
w("div", null, [
|
|
2006
2007
|
k(t.$slots, "plot-comment", {
|
|
2007
|
-
plot: { ...l, textAlign: s(A)(l, !0, 16, !0).anchor, flexAlign: s(A)(l, !0, 16).anchor, isFirstLoad:
|
|
2008
|
+
plot: { ...l, textAlign: s(A)(l, !0, 16, !0).anchor, flexAlign: s(A)(l, !0, 16).anchor, isFirstLoad: Y.value }
|
|
2008
2009
|
}, void 0, !0)
|
|
2009
2010
|
])
|
|
2010
2011
|
], 8, en)) : d("", !0),
|
|
2011
2012
|
ee(l) && e.value.type === "polar" ? (u(), i("foreignObject", {
|
|
2012
2013
|
key: 1,
|
|
2013
|
-
x: e.value.style.chart.comments.offsetX + (Se(v.value[a].middlePoint) === "end" ? s(
|
|
2014
|
+
x: e.value.style.chart.comments.offsetX + (Se(v.value[a].middlePoint) === "end" ? s(X)({ initX: v.value[a].middlePoint.x, initY: v.value[a].middlePoint.y, offset: 42, centerX: n.value.width / 2, centerY: n.value.height / 2 }).x - e.value.style.chart.comments.width : Se(v.value[a].middlePoint) === "middle" ? s(X)({ initX: v.value[a].middlePoint.x, initY: v.value[a].middlePoint.y, offset: 42, centerX: n.value.width / 2, centerY: n.value.height / 2 }).x - e.value.style.chart.comments.width / 2 : s(X)({ initX: v.value[a].middlePoint.x, initY: v.value[a].middlePoint.y, offset: 42, centerX: n.value.width / 2, centerY: n.value.height / 2 }).x),
|
|
2014
2015
|
y: Ml(v.value[a]) + e.value.style.chart.comments.offsetY,
|
|
2015
2016
|
width: e.value.style.chart.comments.width,
|
|
2016
2017
|
height: "200",
|
|
2017
|
-
style:
|
|
2018
|
-
transition:
|
|
2018
|
+
style: L({
|
|
2019
|
+
transition: Y.value || !e.value.serieToggleAnimation.show ? "none" : `all ${e.value.serieToggleAnimation.durationMs}ms ease-in-out`,
|
|
2019
2020
|
overflow: "visible",
|
|
2020
2021
|
pointerEvents: "none"
|
|
2021
2022
|
})
|
|
2022
2023
|
}, [
|
|
2023
2024
|
w("div", null, [
|
|
2024
2025
|
k(t.$slots, "plot-comment", {
|
|
2025
|
-
plot: { ...l, textAlign: Se(v.value[a].middlePoint), flexAlign: Se(v.value[a].middlePoint), isFirstLoad:
|
|
2026
|
+
plot: { ...l, textAlign: Se(v.value[a].middlePoint), flexAlign: Se(v.value[a].middlePoint), isFirstLoad: Y.value }
|
|
2026
2027
|
}, void 0, !0)
|
|
2027
2028
|
])
|
|
2028
2029
|
], 12, tn)) : d("", !0)
|
|
@@ -2031,8 +2032,8 @@ const Ra = ["id"], Ea = ["id"], Va = ["id"], Ua = { style: { position: "relative
|
|
|
2031
2032
|
k(t.$slots, "svg", {
|
|
2032
2033
|
svg: {
|
|
2033
2034
|
...n.value,
|
|
2034
|
-
isPrintingImg: s(Ge) | s(xt) |
|
|
2035
|
-
isPrintingSvg:
|
|
2035
|
+
isPrintingImg: s(Ge) | s(xt) | Ve.value,
|
|
2036
|
+
isPrintingSvg: Ee.value
|
|
2036
2037
|
}
|
|
2037
2038
|
}, void 0, !0)
|
|
2038
2039
|
], 512)
|
|
@@ -2042,14 +2043,14 @@ const Ra = ["id"], Ea = ["id"], Va = ["id"], Ua = { style: { position: "relative
|
|
|
2042
2043
|
])) : d("", !0)
|
|
2043
2044
|
]),
|
|
2044
2045
|
t.$slots.watermark ? (u(), i("div", an, [
|
|
2045
|
-
k(t.$slots, "watermark", K(Q({ isPrinting: s(Ge) || s(xt) ||
|
|
2046
|
+
k(t.$slots, "watermark", K(Q({ isPrinting: s(Ge) || s(xt) || Ve.value || Ee.value })), void 0, !0)
|
|
2046
2047
|
])) : d("", !0),
|
|
2047
2048
|
w("div", {
|
|
2048
|
-
id: `legend-bottom-${
|
|
2049
|
+
id: `legend-bottom-${p.value}`
|
|
2049
2050
|
}, null, 8, on),
|
|
2050
2051
|
bt.value ? (u(), ge(na, {
|
|
2051
2052
|
key: 6,
|
|
2052
|
-
to: e.value.style.chart.legend.position === "top" ? `#legend-top-${
|
|
2053
|
+
to: e.value.style.chart.legend.position === "top" ? `#legend-top-${p.value}` : `#legend-bottom-${p.value}`
|
|
2053
2054
|
}, [
|
|
2054
2055
|
w("div", {
|
|
2055
2056
|
ref_key: "chartLegend",
|
|
@@ -2064,7 +2065,7 @@ const Ra = ["id"], Ea = ["id"], Va = ["id"], Ua = { style: { position: "relative
|
|
|
2064
2065
|
}, Wt({
|
|
2065
2066
|
item: _(({ legend: l, index: a }) => [
|
|
2066
2067
|
w("div", {
|
|
2067
|
-
style:
|
|
2068
|
+
style: L(`opacity:${N.value.includes(a) ? 0.5 : 1}`),
|
|
2068
2069
|
onClick: (r) => l.segregate()
|
|
2069
2070
|
}, ye(l.display), 13, nn)
|
|
2070
2071
|
]),
|
|
@@ -2074,7 +2075,7 @@ const Ra = ["id"], Ea = ["id"], Va = ["id"], Ua = { style: { position: "relative
|
|
|
2074
2075
|
backgroundColor: e.value.style.chart.legend.selectAllToggle.backgroundColor,
|
|
2075
2076
|
color: e.value.style.chart.legend.selectAllToggle.color,
|
|
2076
2077
|
fontSize: e.value.style.chart.legend.fontSize,
|
|
2077
|
-
checked:
|
|
2078
|
+
checked: N.value.length > 0,
|
|
2078
2079
|
isCursorPointer: xe.value,
|
|
2079
2080
|
onToggle: Cl
|
|
2080
2081
|
}, null, 8, ["backgroundColor", "color", "fontSize", "checked", "isCursorPointer"])) : d("", !0)
|
|
@@ -2089,7 +2090,7 @@ const Ra = ["id"], Ea = ["id"], Va = ["id"], Ua = { style: { position: "relative
|
|
|
2089
2090
|
radius: 30,
|
|
2090
2091
|
stroke: "none",
|
|
2091
2092
|
plot: { x: 30, y: 30 },
|
|
2092
|
-
fill: `url(#pattern_${
|
|
2093
|
+
fill: `url(#pattern_${p.value}_${a})`
|
|
2093
2094
|
}, null, 8, ["shape", "fill"])
|
|
2094
2095
|
]),
|
|
2095
2096
|
key: "0"
|
|
@@ -2110,7 +2111,7 @@ const Ra = ["id"], Ea = ["id"], Va = ["id"], Ua = { style: { position: "relative
|
|
|
2110
2111
|
k(t.$slots, "hollow", K(Q({
|
|
2111
2112
|
total: te.value,
|
|
2112
2113
|
average: Rt.value,
|
|
2113
|
-
dataset:
|
|
2114
|
+
dataset: U.value
|
|
2114
2115
|
})), void 0, !0)
|
|
2115
2116
|
])) : d("", !0),
|
|
2116
2117
|
At(s(Ke), {
|
|
@@ -2125,7 +2126,7 @@ const Ra = ["id"], Ea = ["id"], Va = ["id"], Ua = { style: { position: "relative
|
|
|
2125
2126
|
backgroundOpacity: e.value.style.chart.tooltip.backgroundOpacity,
|
|
2126
2127
|
position: e.value.style.chart.tooltip.position,
|
|
2127
2128
|
offsetY: e.value.style.chart.tooltip.offsetY,
|
|
2128
|
-
parent:
|
|
2129
|
+
parent: M.value,
|
|
2129
2130
|
content: se.value,
|
|
2130
2131
|
isCustom: st.value,
|
|
2131
2132
|
isFullscreen: Xe.value,
|
|
@@ -2133,18 +2134,18 @@ const Ra = ["id"], Ea = ["id"], Va = ["id"], Ua = { style: { position: "relative
|
|
|
2133
2134
|
backdropFilter: e.value.style.chart.tooltip.backdropFilter,
|
|
2134
2135
|
smoothForce: e.value.style.chart.tooltip.smoothForce,
|
|
2135
2136
|
smoothSnapThreshold: e.value.style.chart.tooltip.smoothSnapThrehsold,
|
|
2136
|
-
isA11yMode:
|
|
2137
|
+
isA11yMode: G.value === "keyboard",
|
|
2137
2138
|
a11yPosition: wt.value
|
|
2138
2139
|
}, {
|
|
2139
2140
|
"tooltip-before": _(() => [
|
|
2140
|
-
k(t.$slots, "tooltip-before", K(Q({ ...
|
|
2141
|
+
k(t.$slots, "tooltip-before", K(Q({ ...Vt.value })), void 0, !0)
|
|
2141
2142
|
]),
|
|
2142
2143
|
"tooltip-after": _(() => [
|
|
2143
|
-
k(t.$slots, "tooltip-after", K(Q({ ...
|
|
2144
|
+
k(t.$slots, "tooltip-after", K(Q({ ...Vt.value })), void 0, !0)
|
|
2144
2145
|
]),
|
|
2145
2146
|
_: 3
|
|
2146
2147
|
}, 8, ["teleportTo", "show", "backgroundColor", "color", "fontSize", "borderRadius", "borderColor", "borderWidth", "backgroundOpacity", "position", "offsetY", "parent", "content", "isCustom", "isFullscreen", "smooth", "backdropFilter", "smoothForce", "smoothSnapThreshold", "isA11yMode", "a11yPosition"]),
|
|
2147
|
-
|
|
2148
|
+
B.value && e.value.userOptions.buttons.table ? (u(), ge(sa(rt.value.component), jt({ key: 9 }, rt.value.props, {
|
|
2148
2149
|
ref_key: "tableUnit",
|
|
2149
2150
|
ref: ze,
|
|
2150
2151
|
onClose: rl
|
|
@@ -2205,8 +2206,8 @@ const Ra = ["id"], Ea = ["id"], Va = ["id"], Ua = { style: { position: "relative
|
|
|
2205
2206
|
w("button", {
|
|
2206
2207
|
tabindex: "0",
|
|
2207
2208
|
class: "vue-ui-user-options-button",
|
|
2208
|
-
onClick: o[4] || (o[4] = (l) =>
|
|
2209
|
-
style:
|
|
2209
|
+
onClick: o[4] || (o[4] = (l) => Et(e.value.userOptions.callbacks.csv)),
|
|
2210
|
+
style: L({ cursor: xe.value ? "pointer" : "default" })
|
|
2210
2211
|
}, [
|
|
2211
2212
|
At(s(vt), {
|
|
2212
2213
|
name: "fileCsv",
|
|
@@ -2222,7 +2223,7 @@ const Ra = ["id"], Ea = ["id"], Va = ["id"], Ua = { style: { position: "relative
|
|
|
2222
2223
|
], !0)
|
|
2223
2224
|
], 46, Ra));
|
|
2224
2225
|
}
|
|
2225
|
-
}, Ln = /* @__PURE__ */ Xa(rn, [["__scopeId", "data-v-
|
|
2226
|
+
}, Ln = /* @__PURE__ */ Xa(rn, [["__scopeId", "data-v-af8588d0"]]);
|
|
2226
2227
|
export {
|
|
2227
2228
|
Ln as default
|
|
2228
2229
|
};
|