vue-data-ui 3.22.6 → 3.22.7
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/{Arrow-Ds4xmpiQ.js → Arrow-DaGI9u-b.js} +1 -1
- package/dist/{BaseDraggableDialog-VbypEaAa.js → BaseDraggableDialog-1wwwdwV2.js} +2 -2
- package/dist/{BaseIcon-DcUvOfxf.js → BaseIcon-_-BX7be3.js} +1 -1
- package/dist/{BaseLegendToggle-DFwIY5bE.js → BaseLegendToggle-CHnlKalt.js} +1 -1
- package/dist/{BaseZoomControls-DwolSINF.js → BaseZoomControls-C9bdZSCj.js} +2 -2
- package/dist/{ColorPicker-UVDPcrjE.js → ColorPicker-TB3KhY3j.js} +2 -2
- package/dist/{DataTable-CXfvIulC.js → DataTable-CVF7DoZn.js} +2 -2
- package/dist/{Legend-D-635Kag.js → Legend-kAr7Vqqu.js} +2 -2
- package/dist/{NonSvgPenAndPaper-pR_1qp3s.js → NonSvgPenAndPaper-CEiv7_gM.js} +29 -29
- package/dist/{PackageVersion-Da7hl-34.js → PackageVersion-Dse0n05o.js} +1 -1
- package/dist/{PenAndPaper-Bk2-E7V4.js → PenAndPaper-gaV1QPpP.js} +18 -18
- package/dist/{Shape-BSetplwm.js → Shape-CiQIxyyT.js} +1 -1
- package/dist/{Slicer-ClIGOuoX.js → Slicer-6FOtg9py.js} +2 -2
- package/dist/{SlicerPreview-D1n9AW39.js → SlicerPreview-DUywypFu.js} +4 -4
- package/dist/{SparkTooltip-CjDAyolg.js → SparkTooltip-B-qsPj68.js} +1 -1
- package/dist/{Title-C-p0ilWB.js → Title-PiTKr6sp.js} +1 -1
- package/dist/{Tooltip-YabpoXo1.js → Tooltip-B8yYfISA.js} +1 -1
- package/dist/{UserOptions-BO4VFL8O.js → UserOptions-BL9VlHop.js} +2 -2
- package/dist/components/arrow.js +1 -1
- package/dist/components/vue-ui-3d-bar.js +1 -1
- package/dist/components/vue-ui-accordion.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-icon.js +1 -1
- package/dist/components/vue-ui-kpi.js +1 -1
- package/dist/components/vue-ui-mini-loader.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-rating.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-smiley.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/{dom-to-png-CVJfsfwL.js → dom-to-png-BZjYWNEg.js} +1 -1
- package/dist/exposedLib-Be0ifkti.js +19 -0
- package/dist/{img-B_y5qDdm.js → img-B_abIg0o.js} +1 -1
- package/dist/{labelUtils-CyVwqXSh.js → labelUtils-CTDRZdP1.js} +1 -1
- package/dist/{lib-DRBJCmHW.js → lib-EAmk-PgA.js} +14 -1
- package/dist/{package-DyQ_PQis.js → package-DeMimPej.js} +1 -1
- package/dist/{pdf-CG02qhAH.js → pdf-B6qrdEqB.js} +1 -1
- package/dist/{render-common-CUAlQvAQ.js → render-common-DMai0gHB.js} +2 -2
- package/dist/ssr/vue-ui-donut.js +1 -1
- package/dist/ssr/vue-ui-xy.js +1 -1
- package/dist/ssr.js +2 -2
- package/dist/style.css +1 -1
- package/dist/{useAutoSizeLabelsInsideViewbox-DPMOys9n.js → useAutoSizeLabelsInsideViewbox-CyOGrdD_.js} +1 -1
- package/dist/{useNestedProp-BEo2N1Db.js → useNestedProp-D8XqxgOU.js} +1 -1
- package/dist/{usePrinter-CRp5IW3v.js → usePrinter-DnGzpp6Q.js} +2 -2
- package/dist/utils.js +10 -10
- package/dist/{vue-data-ui-Bpu4kxlm.js → vue-data-ui-D6qVWloL.js} +68 -68
- package/dist/vue-data-ui.js +72 -72
- package/dist/vue-ui-3d-bar-CjNuWXoA.js +1757 -0
- package/dist/{vue-ui-accordion-CfMrbDoq.js → vue-ui-accordion-Dzz8XhX3.js} +3 -3
- package/dist/{vue-ui-age-pyramid-BF5ZuuyI.js → vue-ui-age-pyramid-CC7Dxli-.js} +21 -21
- package/dist/{vue-ui-annotator-CG6rhFpy.js → vue-ui-annotator-DXZumSP8.js} +67 -67
- package/dist/{vue-ui-bullet-C_oBS1cr.js → vue-ui-bullet-Dde6FhbR.js} +17 -17
- package/dist/{vue-ui-bump-BZB1Na8h.js → vue-ui-bump-C5pni1JV.js} +243 -243
- package/dist/{vue-ui-candlestick-8d_1xO8X.js → vue-ui-candlestick-Ctw65O4_.js} +449 -446
- package/dist/{vue-ui-carousel-table-BfZNcwmY.js → vue-ui-carousel-table-BEUvhUH0.js} +42 -42
- package/dist/vue-ui-chestnut-C3IbAdkQ.js +2010 -0
- package/dist/vue-ui-chord-5eCWG4br.js +1391 -0
- package/dist/{vue-ui-circle-pack-BLh8HnGK.js → vue-ui-circle-pack-Cq4lkmee.js} +31 -31
- package/dist/{vue-ui-cursor-DVsEm_4l.js → vue-ui-cursor-DLJcFwRZ.js} +3 -3
- package/dist/{vue-ui-dag-Cfi0b9qm.js → vue-ui-dag-DemsIecS.js} +23 -23
- package/dist/{vue-ui-dashboard-F_NZ1xoQ.js → vue-ui-dashboard-DWHD_wNN.js} +69 -69
- package/dist/{vue-ui-digits-BfP1kbj3.js → vue-ui-digits-sIKc85vS.js} +3 -3
- package/dist/{vue-ui-donut-BwAyvV3-.js → vue-ui-donut-CLheJPcO.js} +414 -414
- package/dist/{vue-ui-donut-DlVRnVr_.js → vue-ui-donut-Dp6GW0dw.js} +85 -85
- package/dist/{vue-ui-donut-evolution-D1k4u6cA.js → vue-ui-donut-evolution-zmRPpJLj.js} +419 -419
- package/dist/vue-ui-dumbbell-bSbgHd0U.js +1530 -0
- package/dist/{vue-ui-flow-D_7Idmmw.js → vue-ui-flow-q_M7O1BK.js} +83 -83
- package/dist/vue-ui-funnel-BEZUEuuh.js +777 -0
- package/dist/{vue-ui-galaxy-Bjxbg5_B.js → vue-ui-galaxy-DCCWmIyH.js} +250 -250
- package/dist/{vue-ui-gauge-Dt0H7DgC.js → vue-ui-gauge-B1ljgfE1.js} +216 -216
- package/dist/{vue-ui-geo-89DEQb5l.js → vue-ui-geo-CM59rpnj.js} +17 -17
- package/dist/{vue-ui-gizmo-CQyLK18v.js → vue-ui-gizmo-D2RL6IVp.js} +62 -62
- package/dist/{vue-ui-heatmap-o6MvoxBK.js → vue-ui-heatmap-BX6PQxML.js} +245 -245
- package/dist/vue-ui-history-plot-DaHAeQph.js +1715 -0
- package/dist/{vue-ui-horizontal-bar-CwB4sc6M.js → vue-ui-horizontal-bar-CTW6l4n3.js} +274 -274
- package/dist/{vue-ui-kpi-4C-j92D-.js → vue-ui-kpi-DLbP7lJR.js} +3 -3
- package/dist/{vue-ui-mini-loader-Bj4Wv-i8.js → vue-ui-mini-loader-DPHzHsM7.js} +2 -2
- package/dist/vue-ui-molecule-aD0SMTiX.js +925 -0
- package/dist/{vue-ui-mood-radar-B5W35Fvp.js → vue-ui-mood-radar-CCWaPr0P.js} +29 -29
- package/dist/{vue-ui-nested-donuts-wfesrzle.js → vue-ui-nested-donuts--BCPWkl7.js} +104 -104
- package/dist/{vue-ui-onion-B8-psLbF.js → vue-ui-onion-s4iMCGAP.js} +39 -39
- package/dist/vue-ui-parallel-coordinate-plot-CfgvpyoC.js +1416 -0
- package/dist/vue-ui-quadrant-T_UmRAAy.js +1978 -0
- package/dist/vue-ui-quick-chart-D1OWBgQJ.js +2469 -0
- package/dist/{vue-ui-radar-5fQ5AAWD.js → vue-ui-radar-CHjeGOMC.js} +78 -78
- package/dist/{vue-ui-rating-CKWHDKOT.js → vue-ui-rating-Bek8Tgr-.js} +33 -33
- package/dist/vue-ui-relation-circle-DRZGQ_UX.js +924 -0
- package/dist/{vue-ui-ridgeline-DVbYznRz.js → vue-ui-ridgeline-DIODGiu8.js} +101 -101
- package/dist/vue-ui-rings-CcdUSXGG.js +1246 -0
- package/dist/vue-ui-scatter-CixnqLoi.js +2413 -0
- package/dist/{vue-ui-skeleton-BkxB6Dik.js → vue-ui-skeleton-Fmue6DAG.js} +3 -3
- package/dist/{vue-ui-smiley-C4g0iaF7.js → vue-ui-smiley-BVMI5vUy.js} +9 -9
- package/dist/{vue-ui-spark-trend-0FELlq4x.js → vue-ui-spark-trend-DfZeLiWA.js} +98 -98
- package/dist/{vue-ui-sparkbar-D-i_VLO6.js → vue-ui-sparkbar-Cl1e49sw.js} +87 -87
- package/dist/{vue-ui-sparkgauge-CWw6w_ng.js → vue-ui-sparkgauge-DDNNBIdf.js} +48 -48
- package/dist/{vue-ui-sparkhistogram-DuGpkfma.js → vue-ui-sparkhistogram-ny_liYa6.js} +104 -104
- package/dist/{vue-ui-sparkline-Bi06lHQd.js → vue-ui-sparkline-BNxdO-Bx.js} +268 -268
- package/dist/vue-ui-sparkstackbar-BfF5-Wg2.js +662 -0
- package/dist/vue-ui-stackbar-B-2Me3d-.js +2332 -0
- package/dist/{vue-ui-stackline-C0NHBUaE.js → vue-ui-stackline-CdvVPQUM.js} +697 -694
- package/dist/{vue-ui-strip-plot-_6LL45i9.js → vue-ui-strip-plot-CRXPXA5V.js} +368 -368
- package/dist/{vue-ui-table-DBlZswRi.js → vue-ui-table-Dr1dK3d_.js} +25 -25
- package/dist/{vue-ui-table-heatmap-3xYIDKcP.js → vue-ui-table-heatmap-D-Qrm3oX.js} +5 -5
- package/dist/{vue-ui-table-sparkline-BH5PzEnJ.js → vue-ui-table-sparkline-C31Q32My.js} +201 -201
- package/dist/{vue-ui-thermometer-BxMzAqoT.js → vue-ui-thermometer-BUrtIfuo.js} +119 -119
- package/dist/{vue-ui-timer-ONSitYDm.js → vue-ui-timer-B5bkNNHS.js} +29 -29
- package/dist/{vue-ui-tiremarks-DWXM-9nR.js → vue-ui-tiremarks-Bn8b-ZSz.js} +14 -14
- package/dist/vue-ui-treemap-LMWiicop.js +1713 -0
- package/dist/{vue-ui-waffle-afa8HSxz.js → vue-ui-waffle-B_L3gkky.js} +306 -306
- package/dist/{vue-ui-wheel-DRP7X8S2.js → vue-ui-wheel-CeVwXtEX.js} +36 -36
- package/dist/{vue-ui-word-cloud-AKpMO97a.js → vue-ui-word-cloud-D81-qJLw.js} +37 -37
- package/dist/{vue-ui-world-CqS-HhZl.js → vue-ui-world-B7npRmTa.js} +399 -399
- package/dist/{vue-ui-xy-Bmd11BxR.js → vue-ui-xy-C2p9H2IX.js} +1438 -1436
- package/dist/{vue-ui-xy-DJ8YKPgs.js → vue-ui-xy-OhwS0kcZ.js} +218 -218
- package/dist/{vue-ui-xy-canvas-DO_PDGKf.js → vue-ui-xy-canvas-DLKDdH35.js} +420 -417
- package/package.json +1 -1
- package/dist/exposedLib-CjwriUaG.js +0 -19
- package/dist/vue-ui-3d-bar-BAH0jNtT.js +0 -1757
- package/dist/vue-ui-chestnut-Cx8T3NEl.js +0 -2010
- package/dist/vue-ui-chord-B-sauvLo.js +0 -1391
- package/dist/vue-ui-dumbbell-DgmvPpK2.js +0 -1530
- package/dist/vue-ui-funnel-BYCFV5TD.js +0 -777
- package/dist/vue-ui-history-plot-B7zuCfdg.js +0 -1715
- package/dist/vue-ui-molecule-BDrRmwmm.js +0 -925
- package/dist/vue-ui-parallel-coordinate-plot-DBpHCFxa.js +0 -1416
- package/dist/vue-ui-quadrant-BzyGOJR2.js +0 -1978
- package/dist/vue-ui-quick-chart-so_8PzvS.js +0 -2469
- package/dist/vue-ui-relation-circle-Bd_ONHCz.js +0 -924
- package/dist/vue-ui-rings-c-yLWFHr.js +0 -1246
- package/dist/vue-ui-scatter-QhmE7n1H.js +0 -2413
- package/dist/vue-ui-sparkstackbar-DrKgBUmt.js +0 -662
- package/dist/vue-ui-stackbar-DDvuDGQ_.js +0 -2329
- package/dist/vue-ui-treemap-B03c4RIy.js +0 -1713
|
@@ -1,28 +1,28 @@
|
|
|
1
|
-
import { $ as e,
|
|
1
|
+
import { $ as e, Et as t, Gt as n, Lt as r, O as i, Rt as a, U as o, Ut as s, W as c, b as l, d as u, i as d, jt as f, kt as p, p as m, q as h, t as g, u as _, v } from "./lib-EAmk-PgA.js";
|
|
2
2
|
import { t as y } from "./useConfig-DYM3f6EI.js";
|
|
3
3
|
import { t as b } from "./vue_ui_donut-BDGqG07h.js";
|
|
4
|
-
import { _ as x, a as S, c as C, d as w, g as T, i as E, l as D, n as O, o as k, p as A, r as j, s as ee, t as te, u as M, v as N } from "./render-common-
|
|
4
|
+
import { _ as x, a as S, c as C, d as w, g as T, i as E, l as D, n as O, o as k, p as A, r as j, s as ee, t as te, u as M, v as N } from "./render-common-DMai0gHB.js";
|
|
5
5
|
//#region src/svg/vue-ui-donut/create.js
|
|
6
6
|
var { vue_ui_donut: ne } = y();
|
|
7
7
|
function re({ config: e = {} } = {}) {
|
|
8
|
-
let
|
|
9
|
-
userConfig:
|
|
8
|
+
let t = e ?? {}, r = n({
|
|
9
|
+
userConfig: t,
|
|
10
10
|
defaultConfig: ne
|
|
11
|
-
}),
|
|
12
|
-
if (!
|
|
13
|
-
...
|
|
14
|
-
customPalette:
|
|
11
|
+
}), i = r.theme;
|
|
12
|
+
if (!i) return {
|
|
13
|
+
...r,
|
|
14
|
+
customPalette: r.customPalette?.length ? r.customPalette : f
|
|
15
15
|
};
|
|
16
|
-
let
|
|
17
|
-
userConfig:
|
|
18
|
-
defaultConfig:
|
|
19
|
-
userConfig: b[
|
|
20
|
-
defaultConfig:
|
|
16
|
+
let a = n({
|
|
17
|
+
userConfig: t,
|
|
18
|
+
defaultConfig: n({
|
|
19
|
+
userConfig: b[i] || {},
|
|
20
|
+
defaultConfig: r
|
|
21
21
|
})
|
|
22
22
|
});
|
|
23
23
|
return {
|
|
24
|
-
...
|
|
25
|
-
customPalette:
|
|
24
|
+
...a,
|
|
25
|
+
customPalette: a.customPalette?.length ? a.customPalette : s[i] || f
|
|
26
26
|
};
|
|
27
27
|
}
|
|
28
28
|
function P(e, t = 0) {
|
|
@@ -38,27 +38,27 @@ function ie(e) {
|
|
|
38
38
|
function ae(e, t) {
|
|
39
39
|
return String(e?.name ?? e?.label ?? `Serie ${t + 1}`);
|
|
40
40
|
}
|
|
41
|
-
function oe(e = [],
|
|
42
|
-
let
|
|
41
|
+
function oe(e = [], t) {
|
|
42
|
+
let n = Array.isArray(t.customPalette) ? t.customPalette : f;
|
|
43
43
|
return (Array.isArray(e) ? e : []).map((e, t) => ({
|
|
44
44
|
source: e,
|
|
45
45
|
sourceIndex: t,
|
|
46
46
|
value: ie(e)
|
|
47
47
|
})).filter((e) => Number.isFinite(e.value)).sort((e, t) => e.source?.ghost && !t.source?.ghost ? 1 : t.source?.ghost && !e.source?.ghost ? -1 : t.value - e.value).map((e, t) => {
|
|
48
|
-
let
|
|
48
|
+
let r = e.source, i = e.value, a = (r?.color ? l(r.color) : "") || n[t % n.length];
|
|
49
49
|
return {
|
|
50
|
-
...
|
|
51
|
-
id:
|
|
52
|
-
name: ae(
|
|
50
|
+
...r,
|
|
51
|
+
id: r?.id ?? `donut_serie_${t}`,
|
|
52
|
+
name: ae(r, t),
|
|
53
53
|
value: i,
|
|
54
54
|
absoluteValue: Math.abs(i),
|
|
55
|
-
absoluteValues: Array.isArray(
|
|
55
|
+
absoluteValues: Array.isArray(r?.values) ? r.values : [i],
|
|
56
56
|
color: a,
|
|
57
57
|
index: t,
|
|
58
58
|
sourceIndex: e.sourceIndex,
|
|
59
|
-
patternIndex:
|
|
60
|
-
seriesIndex:
|
|
61
|
-
ghost: !!
|
|
59
|
+
patternIndex: r?.patternIndex ?? t,
|
|
60
|
+
seriesIndex: r?.seriesIndex ?? t,
|
|
61
|
+
ghost: !!r?.ghost
|
|
62
62
|
};
|
|
63
63
|
}).filter((e) => Number.isFinite(e.absoluteValue));
|
|
64
64
|
}
|
|
@@ -117,7 +117,7 @@ function le({ dataset: e = [], config: t = {}, width: n = 512, height: r = 512,
|
|
|
117
117
|
}
|
|
118
118
|
//#endregion
|
|
119
119
|
//#region src/svg/vue-ui-donut/render.js
|
|
120
|
-
var ue =
|
|
120
|
+
var ue = c();
|
|
121
121
|
function I() {
|
|
122
122
|
return ue;
|
|
123
123
|
}
|
|
@@ -209,21 +209,21 @@ function me(e, t) {
|
|
|
209
209
|
innerRadius: V(n) ? 0 : Math.max(0, T - A)
|
|
210
210
|
};
|
|
211
211
|
}
|
|
212
|
-
function he(e,
|
|
213
|
-
let
|
|
214
|
-
return
|
|
212
|
+
function he(e, n) {
|
|
213
|
+
let r = x(S(e.config, "layout.donut.rotation", 105.25), 105.25);
|
|
214
|
+
return t({ series: n }, e.center.x, e.center.y, e.radius, e.radius, 1.99999, 2, 1, 360, r, V(e.config) ? e.radius : e.thickness).map((e, t) => ({
|
|
215
215
|
...e,
|
|
216
|
-
index:
|
|
217
|
-
color: k(e.color, t
|
|
216
|
+
index: t,
|
|
217
|
+
color: k(e.color, n[t]?.color),
|
|
218
218
|
value: x(e.value, 0),
|
|
219
|
-
name: String(e.name ?? t
|
|
220
|
-
patternIndex: e.patternIndex ?? t
|
|
221
|
-
seriesIndex: e.seriesIndex ?? t
|
|
219
|
+
name: String(e.name ?? n[t]?.name ?? `Serie ${t + 1}`),
|
|
220
|
+
patternIndex: e.patternIndex ?? n[t]?.patternIndex ?? t,
|
|
221
|
+
seriesIndex: e.seriesIndex ?? n[t]?.seriesIndex ?? t
|
|
222
222
|
}));
|
|
223
223
|
}
|
|
224
224
|
function ge(e, t) {
|
|
225
225
|
let n = Math.max(1, ...t.map((e) => Math.abs(x(e.value, 0))));
|
|
226
|
-
return
|
|
226
|
+
return i({
|
|
227
227
|
series: t.map((e) => Math.abs(x(e.value, 0)) / n),
|
|
228
228
|
center: e.center,
|
|
229
229
|
maxRadius: Math.min(e.drawingArea.width, e.drawingArea.height) / 3,
|
|
@@ -271,12 +271,12 @@ function ve(e) {
|
|
|
271
271
|
})), M("g", { "data-layer": "title" }, d.join(""));
|
|
272
272
|
}
|
|
273
273
|
function ye(e, t) {
|
|
274
|
-
let { config: n } = e,
|
|
274
|
+
let { config: n } = e, i = [], o = !!S(n, "useGradient", !1), s = !!S(n, "layout.donut.useShadow", !1);
|
|
275
275
|
if (o) {
|
|
276
276
|
let o = E(n, "type", "classic"), s = x(S(n, "gradientIntensity", 30), 30);
|
|
277
277
|
if (o === "classic" && Number.isFinite(e.thickness / e.radius)) {
|
|
278
278
|
let t = V(n) ? 1 : e.thickness / e.radius;
|
|
279
|
-
|
|
279
|
+
i.push(M("radialGradient", { id: H(e) }, [
|
|
280
280
|
w("stop", {
|
|
281
281
|
offset: "0%",
|
|
282
282
|
"stop-color": r(L(n), 0),
|
|
@@ -300,14 +300,14 @@ function ye(e, t) {
|
|
|
300
300
|
}
|
|
301
301
|
o === "polar" && t.forEach((t, n) => {
|
|
302
302
|
let r = e.polarAreas?.[n];
|
|
303
|
-
r?.middlePoint &&
|
|
303
|
+
r?.middlePoint && i.push(M("radialGradient", {
|
|
304
304
|
id: U(e, n),
|
|
305
305
|
cx: `${v(r.middlePoint.x / e.width * 100)}%`,
|
|
306
306
|
cy: `${v(r.middlePoint.y / e.height * 100)}%`,
|
|
307
307
|
r: "62%"
|
|
308
308
|
}, [w("stop", {
|
|
309
309
|
offset: "0%",
|
|
310
|
-
"stop-color":
|
|
310
|
+
"stop-color": a(t.color, .05),
|
|
311
311
|
"stop-opacity": s / 100
|
|
312
312
|
}), w("stop", {
|
|
313
313
|
offset: "100%",
|
|
@@ -316,8 +316,8 @@ function ye(e, t) {
|
|
|
316
316
|
});
|
|
317
317
|
}
|
|
318
318
|
if (s) {
|
|
319
|
-
let t = k(S(n, "layout.donut.shadowColor", "#000000"), "#000000"), r = x(S(n, "layout.donut.shadowOpacity", .2), .2),
|
|
320
|
-
|
|
319
|
+
let t = k(S(n, "layout.donut.shadowColor", "#000000"), "#000000"), r = x(S(n, "layout.donut.shadowOpacity", .2), .2), a = x(S(n, "layout.donut.shadowBlur", 6), 6), o = x(S(n, "layout.donut.shadowOffsetY", 3), 3);
|
|
320
|
+
i.push(M("filter", {
|
|
321
321
|
id: W(e),
|
|
322
322
|
x: "-50%",
|
|
323
323
|
y: "-50%",
|
|
@@ -326,12 +326,12 @@ function ye(e, t) {
|
|
|
326
326
|
}, [w("feDropShadow", {
|
|
327
327
|
dx: 0,
|
|
328
328
|
dy: o,
|
|
329
|
-
stdDeviation:
|
|
329
|
+
stdDeviation: a,
|
|
330
330
|
"flood-color": t,
|
|
331
331
|
"flood-opacity": r
|
|
332
332
|
})].join("")));
|
|
333
333
|
}
|
|
334
|
-
return
|
|
334
|
+
return i.length ? M("defs", { "data-layer": "definitions" }, i.join("")) : "";
|
|
335
335
|
}
|
|
336
336
|
function be(e, t) {
|
|
337
337
|
return t.color;
|
|
@@ -394,7 +394,7 @@ function q(e, t, n = "layout.labels.value.rounding") {
|
|
|
394
394
|
s: a.suffix ?? "",
|
|
395
395
|
r: x(S(r, n, o.rounding ?? 0), o.rounding ?? 0)
|
|
396
396
|
});
|
|
397
|
-
return
|
|
397
|
+
return d(o.formatter, t.value, s, { datapoint: t });
|
|
398
398
|
}
|
|
399
399
|
function J(e, t) {
|
|
400
400
|
let { config: n } = e, r = S(n, "layout.labels.percentage", {}), i = x(t.proportion, 0) * 100, a = h({
|
|
@@ -402,7 +402,7 @@ function J(e, t) {
|
|
|
402
402
|
s: "%",
|
|
403
403
|
r: x(r.rounding, 0)
|
|
404
404
|
});
|
|
405
|
-
return
|
|
405
|
+
return d(r.formatter, i, a, { datapoint: t });
|
|
406
406
|
}
|
|
407
407
|
function Y(e, t) {
|
|
408
408
|
let n = S(e.config, "layout.labels", {}), r = !!n.name?.show, i = !!(n.value?.show ?? !0), a = !!(n.percentage?.show ?? !0);
|
|
@@ -434,7 +434,7 @@ function Q(e) {
|
|
|
434
434
|
return !!S(e.config, "layout.curvedMarkers", S(e.config, "layout.donut.curvedMarkers", !1));
|
|
435
435
|
}
|
|
436
436
|
function Ee(e, t) {
|
|
437
|
-
let n = S(e.config, "layout.labels.dataLabels", {}), r = {}, i = e.center.x, a = e.center.y, o = x(n.smallArcClusterFontSize ?? n.fontSize, 10), s = o / 3, c = o * 1.5, l = e.drawingArea.top + 16,
|
|
437
|
+
let n = S(e.config, "layout.labels.dataLabels", {}), r = {}, i = e.center.x, a = e.center.y, o = x(n.smallArcClusterFontSize ?? n.fontSize, 10), s = o / 3, c = o * 1.5, l = e.drawingArea.top + 16, d = e.drawingArea.bottom - 16, f = i - (e.radius + 6), p = i + (e.radius + 6), m = Q(e);
|
|
438
438
|
function h(e) {
|
|
439
439
|
return {
|
|
440
440
|
x: v(e.center?.endX ?? e.endX),
|
|
@@ -490,7 +490,7 @@ function Ee(e, t) {
|
|
|
490
490
|
midX: n.x,
|
|
491
491
|
midY: n.y,
|
|
492
492
|
inlineMarkerX: _(e).x,
|
|
493
|
-
inlineMarkerY:
|
|
493
|
+
inlineMarkerY: u(e) - 3.5,
|
|
494
494
|
labelHeight: y(e.name)
|
|
495
495
|
};
|
|
496
496
|
}
|
|
@@ -549,7 +549,7 @@ function Ee(e, t) {
|
|
|
549
549
|
}), E({
|
|
550
550
|
candidateList: D.TL,
|
|
551
551
|
side: "left",
|
|
552
|
-
bandMarkerX:
|
|
552
|
+
bandMarkerX: f,
|
|
553
553
|
startY: l,
|
|
554
554
|
direction: "down"
|
|
555
555
|
}), E({
|
|
@@ -561,19 +561,19 @@ function Ee(e, t) {
|
|
|
561
561
|
}), D.BL.length > 1 && E({
|
|
562
562
|
candidateList: D.BL,
|
|
563
563
|
side: "left",
|
|
564
|
-
bandMarkerX:
|
|
565
|
-
startY:
|
|
564
|
+
bandMarkerX: f,
|
|
565
|
+
startY: d,
|
|
566
566
|
direction: "up"
|
|
567
567
|
}), D.BR.length > 1 && E({
|
|
568
568
|
candidateList: D.BR,
|
|
569
569
|
side: "right",
|
|
570
570
|
bandMarkerX: p,
|
|
571
|
-
startY:
|
|
571
|
+
startY: d,
|
|
572
572
|
direction: "up"
|
|
573
573
|
}), r;
|
|
574
574
|
}
|
|
575
575
|
function De({ state: t, arc: n, arcIndex: r, smallArcLayout: i, fontSize: a }) {
|
|
576
|
-
let o = S(t.config, "layout.labels", {}), s = o.percentage ?? {}, c = o.name ?? {}, l = i?.labelX ?? _(n, !0, 12).x,
|
|
576
|
+
let o = S(t.config, "layout.labels", {}), s = o.percentage ?? {}, c = o.name ?? {}, l = i?.labelX ?? _(n, !0, 12).x, d = i?.labelY ?? u(n), f = i?.textAnchor ?? _(n, !0, 12).anchor, { name: p } = Y(t, n), m = we(t, n), h = String(p).split(/\n/g), g = p ? h.map((n, r) => M("tspan", {
|
|
577
577
|
class: "vue-data-ui-datalabel-name",
|
|
578
578
|
x: r === 0 ? void 0 : l,
|
|
579
579
|
dy: r === 0 ? void 0 : a * 1.2,
|
|
@@ -590,8 +590,8 @@ function De({ state: t, arc: n, arcIndex: r, smallArcLayout: i, fontSize: a }) {
|
|
|
590
590
|
"data-cy": `donut-label-inline-${r}`,
|
|
591
591
|
class: "vue-data-ui-datalabel-inline",
|
|
592
592
|
x: l,
|
|
593
|
-
y:
|
|
594
|
-
"text-anchor":
|
|
593
|
+
y: d,
|
|
594
|
+
"text-anchor": f
|
|
595
595
|
}, `${g}${v}`);
|
|
596
596
|
}
|
|
597
597
|
function Oe(e, t) {
|
|
@@ -619,7 +619,7 @@ function Oe(e, t) {
|
|
|
619
619
|
arcIndex: n,
|
|
620
620
|
smallArcLayout: {
|
|
621
621
|
labelX: _(t, !1, a + i / 2).x,
|
|
622
|
-
labelY:
|
|
622
|
+
labelY: u(t, a, a),
|
|
623
623
|
textAnchor: _(t).anchor
|
|
624
624
|
},
|
|
625
625
|
fontSize: i
|
|
@@ -627,7 +627,7 @@ function Oe(e, t) {
|
|
|
627
627
|
}), s.length ? M("g", { "data-layer": "data-labels" }, s.join("")) : "";
|
|
628
628
|
}
|
|
629
629
|
function ke(e, t, n = 42) {
|
|
630
|
-
return
|
|
630
|
+
return p({
|
|
631
631
|
initX: t.middlePoint.x,
|
|
632
632
|
initY: t.middlePoint.y,
|
|
633
633
|
offset: n,
|
|
@@ -655,52 +655,52 @@ function je(t, n, r, i) {
|
|
|
655
655
|
return i === "end" ? `${d}${u}` : `${u}${d}`;
|
|
656
656
|
}
|
|
657
657
|
function Me(t, n, r) {
|
|
658
|
-
let i = S(t.config, "layout.labels", {}), a = i.dataLabels ?? {},
|
|
658
|
+
let i = S(t.config, "layout.labels", {}), a = i.dataLabels ?? {}, s = i.value ?? {}, c = i.percentage ?? {}, l = i.name ?? {};
|
|
659
659
|
if (!E(t.config, "dataLabels.show", a.show ?? !0) || !a.show) return "";
|
|
660
|
-
let u = !!a.oneLine, d = x(
|
|
660
|
+
let u = !!a.oneLine, d = x(s.fontSize, a.fontSize ?? 12), f = x(l.fontSize, a.fontSize ?? 12), p = [];
|
|
661
661
|
return n.forEach((n, i) => {
|
|
662
662
|
let a = r[i];
|
|
663
663
|
if (!a || !Z(t, n)) return;
|
|
664
|
-
let
|
|
664
|
+
let s = ke(t, a, 42), m = Ae(t, s);
|
|
665
665
|
if (u) {
|
|
666
666
|
p.push(M("text", {
|
|
667
667
|
"data-cy": "polar-label-inline",
|
|
668
668
|
class: "vue-data-ui-datalabel-inline",
|
|
669
|
-
x:
|
|
670
|
-
y:
|
|
669
|
+
x: s.x,
|
|
670
|
+
y: s.y,
|
|
671
671
|
"text-anchor": m
|
|
672
|
-
}, je(t, n,
|
|
672
|
+
}, je(t, n, s.x, m)));
|
|
673
673
|
return;
|
|
674
674
|
}
|
|
675
675
|
p.push(M("text", {
|
|
676
676
|
"data-cy": "polar-label-value",
|
|
677
677
|
class: "vue-data-ui-datalabel-value",
|
|
678
|
-
x:
|
|
679
|
-
y:
|
|
678
|
+
x: s.x,
|
|
679
|
+
y: s.y,
|
|
680
680
|
"font-size": d,
|
|
681
|
-
"font-weight":
|
|
681
|
+
"font-weight": c.bold ? "700" : "400",
|
|
682
682
|
"text-anchor": m,
|
|
683
683
|
fill: valueFill
|
|
684
684
|
}, te({
|
|
685
685
|
content: X(t, n),
|
|
686
|
-
x:
|
|
686
|
+
x: s.x,
|
|
687
687
|
fontSize: d,
|
|
688
688
|
fill: valueFill,
|
|
689
689
|
textAnchor: m
|
|
690
690
|
}))), l.show && p.push(M("text", {
|
|
691
691
|
"data-cy": "polar-label-name",
|
|
692
692
|
class: "vue-data-ui-datalabel-name",
|
|
693
|
-
x:
|
|
694
|
-
y:
|
|
693
|
+
x: s.x,
|
|
694
|
+
y: s.y + f * 1.2,
|
|
695
695
|
"font-size": f,
|
|
696
696
|
"font-weight": l.bold ? "700" : "400",
|
|
697
697
|
"text-anchor": m,
|
|
698
698
|
fill: k(l.color, j(t.config))
|
|
699
|
-
},
|
|
699
|
+
}, o({
|
|
700
700
|
content: e(String(n.name ?? "")),
|
|
701
701
|
fontSize: f,
|
|
702
702
|
fill: k(l.color, j(t.config)),
|
|
703
|
-
x:
|
|
703
|
+
x: s.x
|
|
704
704
|
})));
|
|
705
705
|
}), p.length ? M("g", { "data-layer": "polar-data-labels" }, p.join("")) : "";
|
|
706
706
|
}
|
|
@@ -727,7 +727,7 @@ function Pe(e, t) {
|
|
|
727
727
|
})), i.push(w("circle", {
|
|
728
728
|
"data-cy": `donut-label-marker-${a}`,
|
|
729
729
|
cx: o?.markerX ?? _(t).x,
|
|
730
|
-
cy: o?.markerY ??
|
|
730
|
+
cy: o?.markerY ?? u(t) - 3.5,
|
|
731
731
|
r: x(n.markerRadius, 3),
|
|
732
732
|
fill: t.color,
|
|
733
733
|
stroke: L(e.config),
|
|
@@ -740,18 +740,18 @@ function Fe(e, t, n) {
|
|
|
740
740
|
if (!E(e.config, "dataLabels.show", r.show ?? !0) || !r.show) return "";
|
|
741
741
|
let i = [];
|
|
742
742
|
return t.forEach((t, a) => {
|
|
743
|
-
let
|
|
744
|
-
if (!
|
|
745
|
-
let
|
|
746
|
-
initX:
|
|
747
|
-
initY:
|
|
743
|
+
let o = n[a];
|
|
744
|
+
if (!o?.middlePoint || !Z(e, t)) return;
|
|
745
|
+
let s = p({
|
|
746
|
+
initX: o.middlePoint.x,
|
|
747
|
+
initY: o.middlePoint.y,
|
|
748
748
|
offset: 24,
|
|
749
749
|
centerX: e.center.x,
|
|
750
750
|
centerY: e.center.y
|
|
751
751
|
});
|
|
752
752
|
i.push(w("path", {
|
|
753
753
|
"data-cy": `polar-marker-${a}`,
|
|
754
|
-
d: `M ${
|
|
754
|
+
d: `M ${s.x},${s.y} ${o.middlePoint.x},${o.middlePoint.y}`,
|
|
755
755
|
stroke: t.color,
|
|
756
756
|
"stroke-width": x(r.markerStrokeWidth, 1),
|
|
757
757
|
"stroke-linecap": "round",
|
|
@@ -759,8 +759,8 @@ function Fe(e, t, n) {
|
|
|
759
759
|
fill: "none"
|
|
760
760
|
})), i.push(w("circle", {
|
|
761
761
|
"data-cy": `polar-label-marker-${a}`,
|
|
762
|
-
cx:
|
|
763
|
-
cy:
|
|
762
|
+
cx: s.x,
|
|
763
|
+
cy: s.y,
|
|
764
764
|
r: x(r.markerRadius, 3),
|
|
765
765
|
fill: t.color,
|
|
766
766
|
stroke: L(e.config),
|
|
@@ -778,7 +778,7 @@ function Ie(e, t, n) {
|
|
|
778
778
|
if (E(e.config, "type", "classic") !== "classic" || V(e.config) || !t) return "";
|
|
779
779
|
let r = S(e.config, "layout.labels.hollow", {}), i = r.total ?? {}, a = r.average ?? {}, o = [];
|
|
780
780
|
if (i.show) {
|
|
781
|
-
let n = x(i.fontSize, 14), r = !!a.show, s = e.center.y - (r ? n : 0) + x(i.offsetY, 0), c = i.value ?? {}, l = x(c.fontSize, n), u =
|
|
781
|
+
let n = x(i.fontSize, 14), r = !!a.show, s = e.center.y - (r ? n : 0) + x(i.offsetY, 0), c = i.value ?? {}, l = x(c.fontSize, n), u = d(c.formatter, t, h({
|
|
782
782
|
p: c.prefix ?? "",
|
|
783
783
|
v: t,
|
|
784
784
|
s: c.suffix ?? "",
|
|
@@ -801,7 +801,7 @@ function Ie(e, t, n) {
|
|
|
801
801
|
}));
|
|
802
802
|
}
|
|
803
803
|
if (a.show) {
|
|
804
|
-
let r = x(a.fontSize, 14), s = !!i.show, c = t / Math.max(1, n.length), l = a.value ?? {}, u = x(l.fontSize, r),
|
|
804
|
+
let r = x(a.fontSize, 14), s = !!i.show, c = t / Math.max(1, n.length), l = a.value ?? {}, u = x(l.fontSize, r), f = d(l.formatter, c, h({
|
|
805
805
|
p: l.prefix ?? "",
|
|
806
806
|
v: c,
|
|
807
807
|
s: l.suffix ?? "",
|
|
@@ -814,7 +814,7 @@ function Ie(e, t, n) {
|
|
|
814
814
|
fill: k(a.color, j(e.config)),
|
|
815
815
|
"font-size": r,
|
|
816
816
|
"font-weight": a.bold ? "700" : "400"
|
|
817
|
-
})), o.push($(
|
|
817
|
+
})), o.push($(f, {
|
|
818
818
|
"data-cy": "hollow-average-value",
|
|
819
819
|
x: e.center.x,
|
|
820
820
|
y: e.center.y + (s ? r : 0) + r + x(l.offsetY, 0),
|
|
@@ -832,7 +832,7 @@ function Le(e, t) {
|
|
|
832
832
|
let { config: n, center: r } = e, i = S(n, "layout.donut.labels.total", S(n, "layout.labels.total", {}));
|
|
833
833
|
if (!i.show || !Number.isFinite(t) || t <= 0) return "";
|
|
834
834
|
let a = S(n, "layout.labels.dataLabels", {}), o = x(i.fontSize, 20), s = k(i.color, j(n));
|
|
835
|
-
return N(
|
|
835
|
+
return N(d(i.formatter, t, h({
|
|
836
836
|
p: a.prefix ?? "",
|
|
837
837
|
v: t,
|
|
838
838
|
s: a.suffix ?? "",
|
|
@@ -858,7 +858,7 @@ function ze(e, t) {
|
|
|
858
858
|
s: i.suffix ?? "",
|
|
859
859
|
r: x(n.roundingValue, a.rounding ?? 0)
|
|
860
860
|
});
|
|
861
|
-
return
|
|
861
|
+
return d(a.formatter, t.value, o, {
|
|
862
862
|
datapoint: t,
|
|
863
863
|
serie: t
|
|
864
864
|
});
|
|
@@ -869,7 +869,7 @@ function Be(e, t) {
|
|
|
869
869
|
s: "%",
|
|
870
870
|
r: x(n.roundingPercentage, r.rounding ?? 0)
|
|
871
871
|
});
|
|
872
|
-
return
|
|
872
|
+
return d(r.formatter, i, a, {
|
|
873
873
|
datapoint: t,
|
|
874
874
|
serie: t
|
|
875
875
|
});
|