vue-data-ui 3.22.5 → 3.22.6
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-CgzmXCW_.js → Arrow-Ds4xmpiQ.js} +1 -1
- package/dist/{BaseDraggableDialog-DjzNWkiE.js → BaseDraggableDialog-VbypEaAa.js} +2 -2
- package/dist/{BaseIcon-xBuW2jjI.js → BaseIcon-DcUvOfxf.js} +1 -1
- package/dist/{BaseLegendToggle-C4Usj0LI.js → BaseLegendToggle-DFwIY5bE.js} +1 -1
- package/dist/{BaseZoomControls-Cg9o2J-q.js → BaseZoomControls-DwolSINF.js} +2 -2
- package/dist/{ColorPicker-Usv7badH.js → ColorPicker-UVDPcrjE.js} +2 -2
- package/dist/{DataTable-PidUPOit.js → DataTable-CXfvIulC.js} +2 -2
- package/dist/{Legend-DXOzbXb-.js → Legend-D-635Kag.js} +2 -2
- package/dist/{NonSvgPenAndPaper-OIs8I25K.js → NonSvgPenAndPaper-pR_1qp3s.js} +29 -29
- package/dist/{PackageVersion-CqE8ssFu.js → PackageVersion-Da7hl-34.js} +1 -1
- package/dist/{PenAndPaper-ISUbDKXq.js → PenAndPaper-Bk2-E7V4.js} +18 -18
- package/dist/{Shape-BnF9aMPX.js → Shape-BSetplwm.js} +1 -1
- package/dist/{Slicer-hEvKOLw3.js → Slicer-ClIGOuoX.js} +2 -2
- package/dist/{SlicerPreview-BDI-aCXE.js → SlicerPreview-D1n9AW39.js} +4 -4
- package/dist/{SparkTooltip-DaWSTzfA.js → SparkTooltip-CjDAyolg.js} +1 -1
- package/dist/{Title-DDEEO-Nr.js → Title-C-p0ilWB.js} +1 -1
- package/dist/{Tooltip-BhKov422.js → Tooltip-YabpoXo1.js} +1 -1
- package/dist/{UserOptions-BxT1XHzN.js → UserOptions-BO4VFL8O.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-ZOysoMwu.js → dom-to-png-CVJfsfwL.js} +1 -1
- package/dist/exposedLib-CjwriUaG.js +19 -0
- package/dist/{img-B29J8tV5.js → img-B_y5qDdm.js} +1 -1
- package/dist/{labelUtils-BFcL_t-A.js → labelUtils-CyVwqXSh.js} +1 -1
- package/dist/{lib-CuwHGt1j.js → lib-DRBJCmHW.js} +6 -9
- package/dist/{package-YOcaZtwF.js → package-DyQ_PQis.js} +1 -1
- package/dist/{pdf-ymYt9Lee.js → pdf-CG02qhAH.js} +1 -1
- package/dist/{render-common-B80rr2N_.js → render-common-CUAlQvAQ.js} +22 -22
- 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/types/vue-data-ui.d.ts +13 -0
- package/dist/types/vue-ui-treemap.d.ts +3 -0
- package/dist/{useAutoSizeLabelsInsideViewbox-DzAZ-MeY.js → useAutoSizeLabelsInsideViewbox-DPMOys9n.js} +1 -1
- package/dist/{useConfig-pVLia3dt.js → useConfig-DYM3f6EI.js} +5 -3
- package/dist/{useNestedProp-BjkuFaz1.js → useNestedProp-BEo2N1Db.js} +1 -1
- package/dist/{useObjectBindings-C1XuDxFr.js → useObjectBindings-CD31syQb.js} +1 -1
- package/dist/{usePrinter-C0wAS8yc.js → usePrinter-CRp5IW3v.js} +2 -2
- package/dist/utils.js +10 -10
- package/dist/{vue-data-ui-mqURXOql.js → vue-data-ui-Bpu4kxlm.js} +68 -68
- package/dist/vue-data-ui.js +73 -73
- package/dist/vue-ui-3d-bar-BAH0jNtT.js +1757 -0
- package/dist/{vue-ui-accordion-B64IJyPU.js → vue-ui-accordion-CfMrbDoq.js} +4 -4
- package/dist/vue-ui-age-pyramid-BF5ZuuyI.js +1238 -0
- package/dist/{vue-ui-annotator-CU4CdKMm.js → vue-ui-annotator-CG6rhFpy.js} +68 -68
- package/dist/{vue-ui-bullet-RGCGF_cO.js → vue-ui-bullet-C_oBS1cr.js} +18 -18
- package/dist/{vue-ui-bump-CiUmHi6k.js → vue-ui-bump-BZB1Na8h.js} +243 -243
- package/dist/{vue-ui-candlestick-BJUk5fMm.js → vue-ui-candlestick-8d_1xO8X.js} +27 -27
- package/dist/{vue-ui-carousel-table-BksIDurC.js → vue-ui-carousel-table-BfZNcwmY.js} +43 -43
- package/dist/vue-ui-chestnut-Cx8T3NEl.js +2010 -0
- package/dist/vue-ui-chord-B-sauvLo.js +1391 -0
- package/dist/{vue-ui-circle-pack-DddaioRm.js → vue-ui-circle-pack-BLh8HnGK.js} +32 -32
- package/dist/{vue-ui-cursor-D2-hWt_G.js → vue-ui-cursor-DVsEm_4l.js} +4 -4
- package/dist/{vue-ui-dag-Dp7pV6Ps.js → vue-ui-dag-Cfi0b9qm.js} +24 -24
- package/dist/{vue-ui-dashboard-D91C5cXo.js → vue-ui-dashboard-F_NZ1xoQ.js} +70 -70
- package/dist/{vue-ui-digits-CMA3U4ZS.js → vue-ui-digits-BfP1kbj3.js} +4 -4
- package/dist/vue-ui-donut-BwAyvV3-.js +2410 -0
- package/dist/{vue-ui-donut-DpiS28CQ.js → vue-ui-donut-DlVRnVr_.js} +120 -120
- package/dist/{vue-ui-donut-evolution-2B61hvv2.js → vue-ui-donut-evolution-D1k4u6cA.js} +419 -419
- package/dist/vue-ui-dumbbell-DgmvPpK2.js +1530 -0
- package/dist/{vue-ui-flow-7Yfsu6AY.js → vue-ui-flow-D_7Idmmw.js} +84 -84
- package/dist/vue-ui-funnel-BYCFV5TD.js +777 -0
- package/dist/vue-ui-galaxy-Bjxbg5_B.js +1077 -0
- package/dist/{vue-ui-gauge-yo4G5HMt.js → vue-ui-gauge-Dt0H7DgC.js} +217 -217
- package/dist/{vue-ui-geo-BOHI6oMZ.js → vue-ui-geo-89DEQb5l.js} +18 -18
- package/dist/{vue-ui-gizmo-DI-35oK-.js → vue-ui-gizmo-CQyLK18v.js} +62 -62
- package/dist/{vue-ui-heatmap-DBVM90VE.js → vue-ui-heatmap-o6MvoxBK.js} +247 -247
- package/dist/vue-ui-history-plot-B7zuCfdg.js +1715 -0
- package/dist/{vue-ui-horizontal-bar-XBrvSxtJ.js → vue-ui-horizontal-bar-CwB4sc6M.js} +275 -275
- package/dist/{vue-ui-kpi-55wwhSBh.js → vue-ui-kpi-4C-j92D-.js} +4 -4
- package/dist/{vue-ui-mini-loader-nOsOsA2V.js → vue-ui-mini-loader-Bj4Wv-i8.js} +3 -3
- package/dist/vue-ui-molecule-BDrRmwmm.js +925 -0
- package/dist/{vue-ui-mood-radar-izcbwGOc.js → vue-ui-mood-radar-B5W35Fvp.js} +30 -30
- package/dist/{vue-ui-nested-donuts-DRJ1QT2n.js → vue-ui-nested-donuts-wfesrzle.js} +105 -105
- package/dist/{vue-ui-onion-xTZOmmtb.js → vue-ui-onion-B8-psLbF.js} +40 -40
- package/dist/vue-ui-parallel-coordinate-plot-DBpHCFxa.js +1416 -0
- package/dist/vue-ui-quadrant-BzyGOJR2.js +1978 -0
- package/dist/{vue-ui-quick-chart-CJ1xQgYc.js → vue-ui-quick-chart-so_8PzvS.js} +663 -663
- package/dist/{vue-ui-radar-C26C6p7e.js → vue-ui-radar-5fQ5AAWD.js} +63 -63
- package/dist/{vue-ui-rating-CRziryE2.js → vue-ui-rating-CKWHDKOT.js} +34 -34
- package/dist/vue-ui-relation-circle-Bd_ONHCz.js +924 -0
- package/dist/{vue-ui-ridgeline-BbJa5C-d.js → vue-ui-ridgeline-DVbYznRz.js} +102 -102
- package/dist/vue-ui-rings-c-yLWFHr.js +1246 -0
- package/dist/{vue-ui-scatter-D9Iw5xlb.js → vue-ui-scatter-QhmE7n1H.js} +87 -87
- package/dist/{vue-ui-skeleton-C4D0i9ho.js → vue-ui-skeleton-BkxB6Dik.js} +4 -4
- package/dist/{vue-ui-smiley-BTvDy8Fm.js → vue-ui-smiley-C4g0iaF7.js} +10 -10
- package/dist/{vue-ui-spark-trend-CMb7UI2t.js → vue-ui-spark-trend-0FELlq4x.js} +98 -98
- package/dist/{vue-ui-sparkbar-DEawjWhg.js → vue-ui-sparkbar-D-i_VLO6.js} +87 -87
- package/dist/{vue-ui-sparkgauge-mubHGQF_.js → vue-ui-sparkgauge-CWw6w_ng.js} +48 -48
- package/dist/{vue-ui-sparkhistogram-D8N-jNBt.js → vue-ui-sparkhistogram-DuGpkfma.js} +105 -105
- package/dist/{vue-ui-sparkline-D4p0PS3-.js → vue-ui-sparkline-Bi06lHQd.js} +252 -252
- package/dist/vue-ui-sparkstackbar-DrKgBUmt.js +662 -0
- package/dist/{vue-ui-stackbar-BzHSHKqe.js → vue-ui-stackbar-DDvuDGQ_.js} +85 -85
- package/dist/vue-ui-stackline-C0NHBUaE.js +2416 -0
- package/dist/{vue-ui-strip-plot-pPiVqFYo.js → vue-ui-strip-plot-_6LL45i9.js} +369 -369
- package/dist/{vue-ui-table-BzqQKuL-.js → vue-ui-table-DBlZswRi.js} +26 -26
- package/dist/{vue-ui-table-heatmap-D38YSxhJ.js → vue-ui-table-heatmap-3xYIDKcP.js} +6 -6
- package/dist/{vue-ui-table-sparkline-BnavmY2R.js → vue-ui-table-sparkline-BH5PzEnJ.js} +201 -201
- package/dist/{vue-ui-thermometer-ePIxpTuE.js → vue-ui-thermometer-BxMzAqoT.js} +119 -119
- package/dist/{vue-ui-timer-BQZxD91f.js → vue-ui-timer-ONSitYDm.js} +30 -30
- package/dist/{vue-ui-tiremarks-CDOlCWS8.js → vue-ui-tiremarks-DWXM-9nR.js} +15 -15
- package/dist/vue-ui-treemap-B03c4RIy.js +1713 -0
- package/dist/{vue-ui-waffle-BpZrFfUb.js → vue-ui-waffle-afa8HSxz.js} +160 -160
- package/dist/{vue-ui-wheel-DRfyK9q9.js → vue-ui-wheel-DRP7X8S2.js} +37 -37
- package/dist/{vue-ui-word-cloud-D0JUA9I9.js → vue-ui-word-cloud-AKpMO97a.js} +38 -38
- package/dist/{vue-ui-world-Dx-41fUM.js → vue-ui-world-CqS-HhZl.js} +400 -400
- package/dist/{vue-ui-xy-BLSGO4Lm.js → vue-ui-xy-Bmd11BxR.js} +656 -656
- package/dist/{vue-ui-xy-DpRqQ09J.js → vue-ui-xy-DJ8YKPgs.js} +244 -244
- package/dist/{vue-ui-xy-canvas-CjbjJ70r.js → vue-ui-xy-canvas-DO_PDGKf.js} +47 -47
- package/package.json +1 -1
- package/dist/exposedLib-C2U48XK7.js +0 -19
- package/dist/vue-ui-3d-bar-BZ1Slxfu.js +0 -1757
- package/dist/vue-ui-age-pyramid-uUVFZo8M.js +0 -1238
- package/dist/vue-ui-chestnut-B3OHA5rg.js +0 -2010
- package/dist/vue-ui-chord-DETV2viY.js +0 -1391
- package/dist/vue-ui-donut-DObpw5zP.js +0 -2410
- package/dist/vue-ui-dumbbell-Cmr65TNE.js +0 -1530
- package/dist/vue-ui-funnel-BLRBDW1a.js +0 -777
- package/dist/vue-ui-galaxy-B9cxOcoE.js +0 -1077
- package/dist/vue-ui-history-plot-BiWpOHKE.js +0 -1715
- package/dist/vue-ui-molecule-DB3rmTw1.js +0 -925
- package/dist/vue-ui-parallel-coordinate-plot-BxQ7D2_o.js +0 -1416
- package/dist/vue-ui-quadrant-BvAmtyAE.js +0 -1978
- package/dist/vue-ui-relation-circle-Dl1aWFAI.js +0 -924
- package/dist/vue-ui-rings-CyrvskTi.js +0 -1246
- package/dist/vue-ui-sparkstackbar-DnrZkIIc.js +0 -662
- package/dist/vue-ui-stackline-CWSvsW1n.js +0 -2416
- package/dist/vue-ui-treemap-DrZlX_7n.js +0 -1587
|
@@ -1,28 +1,28 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { t as y } from "./useConfig-
|
|
1
|
+
import { $ as e, At as t, Ht as n, It as r, Lt as i, O as a, Ot as o, Tt as s, U as c, W as l, Wt as u, b as d, d as f, i as p, p as m, q as h, t as g, u as _, v } from "./lib-DRBJCmHW.js";
|
|
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-CUAlQvAQ.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 r = e ?? {}, i = u({
|
|
9
|
+
userConfig: r,
|
|
10
10
|
defaultConfig: ne
|
|
11
|
-
}),
|
|
12
|
-
if (!
|
|
13
|
-
...
|
|
14
|
-
customPalette:
|
|
11
|
+
}), a = i.theme;
|
|
12
|
+
if (!a) return {
|
|
13
|
+
...i,
|
|
14
|
+
customPalette: i.customPalette?.length ? i.customPalette : t
|
|
15
15
|
};
|
|
16
|
-
let
|
|
17
|
-
userConfig:
|
|
18
|
-
defaultConfig:
|
|
19
|
-
userConfig: b[
|
|
20
|
-
defaultConfig:
|
|
16
|
+
let o = u({
|
|
17
|
+
userConfig: r,
|
|
18
|
+
defaultConfig: u({
|
|
19
|
+
userConfig: b[a] || {},
|
|
20
|
+
defaultConfig: i
|
|
21
21
|
})
|
|
22
22
|
});
|
|
23
23
|
return {
|
|
24
|
-
...
|
|
25
|
-
customPalette:
|
|
24
|
+
...o,
|
|
25
|
+
customPalette: o.customPalette?.length ? o.customPalette : n[a] || t
|
|
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 = [], n) {
|
|
42
|
+
let r = Array.isArray(n.customPalette) ? n.customPalette : t;
|
|
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 n = e.source, i = e.value, a = (n?.color ? d(n.color) : "") || r[t % r.length];
|
|
49
49
|
return {
|
|
50
|
-
...
|
|
51
|
-
id:
|
|
52
|
-
name: ae(
|
|
50
|
+
...n,
|
|
51
|
+
id: n?.id ?? `donut_serie_${t}`,
|
|
52
|
+
name: ae(n, t),
|
|
53
53
|
value: i,
|
|
54
54
|
absoluteValue: Math.abs(i),
|
|
55
|
-
absoluteValues: Array.isArray(
|
|
55
|
+
absoluteValues: Array.isArray(n?.values) ? n.values : [i],
|
|
56
56
|
color: a,
|
|
57
57
|
index: t,
|
|
58
58
|
sourceIndex: e.sourceIndex,
|
|
59
|
-
patternIndex:
|
|
60
|
-
seriesIndex:
|
|
61
|
-
ghost: !!
|
|
59
|
+
patternIndex: n?.patternIndex ?? t,
|
|
60
|
+
seriesIndex: n?.seriesIndex ?? t,
|
|
61
|
+
ghost: !!n?.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 = l();
|
|
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(
|
|
213
|
-
let
|
|
214
|
-
return
|
|
212
|
+
function he(e, t) {
|
|
213
|
+
let n = x(S(e.config, "layout.donut.rotation", 105.25), 105.25);
|
|
214
|
+
return s({ series: t }, e.center.x, e.center.y, e.radius, e.radius, 1.99999, 2, 1, 360, n, V(e.config) ? e.radius : e.thickness).map((e, n) => ({
|
|
215
215
|
...e,
|
|
216
|
-
index:
|
|
217
|
-
color: k(e.color, n
|
|
216
|
+
index: n,
|
|
217
|
+
color: k(e.color, t[n]?.color),
|
|
218
218
|
value: x(e.value, 0),
|
|
219
|
-
name: String(e.name ?? n
|
|
220
|
-
patternIndex: e.patternIndex ?? n
|
|
221
|
-
seriesIndex: e.seriesIndex ?? n
|
|
219
|
+
name: String(e.name ?? t[n]?.name ?? `Serie ${n + 1}`),
|
|
220
|
+
patternIndex: e.patternIndex ?? t[n]?.patternIndex ?? n,
|
|
221
|
+
seriesIndex: e.seriesIndex ?? t[n]?.seriesIndex ?? n
|
|
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 a({
|
|
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,29 +271,29 @@ function ve(e) {
|
|
|
271
271
|
})), M("g", { "data-layer": "title" }, d.join(""));
|
|
272
272
|
}
|
|
273
273
|
function ye(e, t) {
|
|
274
|
-
let { config:
|
|
274
|
+
let { config: n } = e, a = [], o = !!S(n, "useGradient", !1), s = !!S(n, "layout.donut.useShadow", !1);
|
|
275
275
|
if (o) {
|
|
276
|
-
let o = E(
|
|
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
|
-
let t = V(
|
|
278
|
+
let t = V(n) ? 1 : e.thickness / e.radius;
|
|
279
279
|
a.push(M("radialGradient", { id: H(e) }, [
|
|
280
280
|
w("stop", {
|
|
281
281
|
offset: "0%",
|
|
282
|
-
"stop-color":
|
|
282
|
+
"stop-color": r(L(n), 0),
|
|
283
283
|
"stop-opacity": 0
|
|
284
284
|
}),
|
|
285
285
|
w("stop", {
|
|
286
286
|
offset: `${(1 - t) * 100}%`,
|
|
287
|
-
"stop-color":
|
|
287
|
+
"stop-color": r("#FFFFFF", 0),
|
|
288
288
|
"stop-opacity": 0
|
|
289
289
|
}),
|
|
290
290
|
w("stop", {
|
|
291
291
|
offset: `${(1 - t / 2) * 100}%`,
|
|
292
|
-
"stop-color":
|
|
292
|
+
"stop-color": r("#FFFFFF", s)
|
|
293
293
|
}),
|
|
294
294
|
w("stop", {
|
|
295
295
|
offset: "100%",
|
|
296
|
-
"stop-color":
|
|
296
|
+
"stop-color": r(L(n), 0),
|
|
297
297
|
"stop-opacity": 0
|
|
298
298
|
})
|
|
299
299
|
].join("")));
|
|
@@ -316,7 +316,7 @@ function ye(e, t) {
|
|
|
316
316
|
});
|
|
317
317
|
}
|
|
318
318
|
if (s) {
|
|
319
|
-
let t = k(S(
|
|
319
|
+
let t = k(S(n, "layout.donut.shadowColor", "#000000"), "#000000"), r = x(S(n, "layout.donut.shadowOpacity", .2), .2), i = x(S(n, "layout.donut.shadowBlur", 6), 6), o = x(S(n, "layout.donut.shadowOffsetY", 3), 3);
|
|
320
320
|
a.push(M("filter", {
|
|
321
321
|
id: W(e),
|
|
322
322
|
x: "-50%",
|
|
@@ -328,7 +328,7 @@ function ye(e, t) {
|
|
|
328
328
|
dy: o,
|
|
329
329
|
stdDeviation: i,
|
|
330
330
|
"flood-color": t,
|
|
331
|
-
"flood-opacity":
|
|
331
|
+
"flood-opacity": r
|
|
332
332
|
})].join("")));
|
|
333
333
|
}
|
|
334
334
|
return a.length ? M("defs", { "data-layer": "definitions" }, a.join("")) : "";
|
|
@@ -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 p(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 p(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,
|
|
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, u = e.drawingArea.bottom - 16, d = 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: f(e) - 3.5,
|
|
494
494
|
labelHeight: y(e.name)
|
|
495
495
|
};
|
|
496
496
|
}
|
|
@@ -549,49 +549,49 @@ function Ee(e, t) {
|
|
|
549
549
|
}), E({
|
|
550
550
|
candidateList: D.TL,
|
|
551
551
|
side: "left",
|
|
552
|
-
bandMarkerX:
|
|
553
|
-
startY:
|
|
552
|
+
bandMarkerX: d,
|
|
553
|
+
startY: l,
|
|
554
554
|
direction: "down"
|
|
555
555
|
}), E({
|
|
556
556
|
candidateList: D.TR,
|
|
557
557
|
side: "right",
|
|
558
558
|
bandMarkerX: p,
|
|
559
|
-
startY:
|
|
559
|
+
startY: l,
|
|
560
560
|
direction: "down"
|
|
561
561
|
}), D.BL.length > 1 && E({
|
|
562
562
|
candidateList: D.BL,
|
|
563
563
|
side: "left",
|
|
564
|
-
bandMarkerX:
|
|
565
|
-
startY:
|
|
564
|
+
bandMarkerX: d,
|
|
565
|
+
startY: u,
|
|
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: u,
|
|
572
572
|
direction: "up"
|
|
573
573
|
}), r;
|
|
574
574
|
}
|
|
575
|
-
function De({ state:
|
|
576
|
-
let
|
|
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, u = i?.labelY ?? f(n), d = 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
|
-
x:
|
|
579
|
-
dy:
|
|
580
|
-
fill: k(
|
|
581
|
-
"font-size":
|
|
582
|
-
"font-weight":
|
|
583
|
-
},
|
|
578
|
+
x: r === 0 ? void 0 : l,
|
|
579
|
+
dy: r === 0 ? void 0 : a * 1.2,
|
|
580
|
+
fill: k(c.color, j(t.config)),
|
|
581
|
+
"font-size": a,
|
|
582
|
+
"font-weight": c.bold ? "700" : "400"
|
|
583
|
+
}, e(n + (r === h.length - 1 ? " " : "")))).join("") : "", v = m ? M("tspan", {
|
|
584
584
|
class: "vue-data-ui-datalabel-value",
|
|
585
|
-
fill: k(
|
|
586
|
-
"font-size":
|
|
587
|
-
"font-weight":
|
|
588
|
-
},
|
|
585
|
+
fill: k(s.color, j(t.config)),
|
|
586
|
+
"font-size": a,
|
|
587
|
+
"font-weight": s.bold ? "700" : "400"
|
|
588
|
+
}, e(m)) : "";
|
|
589
589
|
return M("text", {
|
|
590
|
-
"data-cy": `donut-label-inline-${
|
|
590
|
+
"data-cy": `donut-label-inline-${r}`,
|
|
591
591
|
class: "vue-data-ui-datalabel-inline",
|
|
592
|
-
x:
|
|
593
|
-
y:
|
|
594
|
-
"text-anchor":
|
|
592
|
+
x: l,
|
|
593
|
+
y: u,
|
|
594
|
+
"text-anchor": d
|
|
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: f(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 o({
|
|
631
631
|
initX: t.middlePoint.x,
|
|
632
632
|
initY: t.middlePoint.y,
|
|
633
633
|
offset: n,
|
|
@@ -638,38 +638,38 @@ function ke(e, t, n = 42) {
|
|
|
638
638
|
function Ae(e, t) {
|
|
639
639
|
return t.x < e.center.x ? "end" : t.x > e.center.x ? "start" : "middle";
|
|
640
640
|
}
|
|
641
|
-
function je(
|
|
642
|
-
let
|
|
641
|
+
function je(t, n, r, i) {
|
|
642
|
+
let a = S(t.config, "layout.labels", {}), o = a.percentage ?? {}, s = a.name ?? {}, c = x(o.fontSize, a.dataLabels?.fontSize ?? 12), l = x(s.fontSize, a.dataLabels?.fontSize ?? 12), u = M("tspan", {
|
|
643
643
|
class: "vue-data-ui-datalabel-value",
|
|
644
|
-
fill: k(
|
|
645
|
-
"font-size": s,
|
|
646
|
-
"font-weight": a.bold ? "700" : "400"
|
|
647
|
-
}, u(String(X(e, t).replace(/\n/g, " / ")))), d = o.show ? String(t.name ?? "").split(/\n/g).map((t, r) => M("tspan", {
|
|
648
|
-
class: "vue-data-ui-datalabel-name",
|
|
649
|
-
x: r === 0 ? void 0 : n,
|
|
650
|
-
dy: r === 0 ? void 0 : c * 1.2,
|
|
651
|
-
fill: k(o.color, j(e.config)),
|
|
644
|
+
fill: k(o.color, j(t.config)),
|
|
652
645
|
"font-size": c,
|
|
653
646
|
"font-weight": o.bold ? "700" : "400"
|
|
654
|
-
},
|
|
655
|
-
|
|
656
|
-
|
|
657
|
-
|
|
658
|
-
|
|
659
|
-
|
|
660
|
-
|
|
661
|
-
|
|
662
|
-
|
|
663
|
-
|
|
664
|
-
|
|
665
|
-
|
|
647
|
+
}, e(String(X(t, n).replace(/\n/g, " / ")))), d = s.show ? String(n.name ?? "").split(/\n/g).map((n, i) => M("tspan", {
|
|
648
|
+
class: "vue-data-ui-datalabel-name",
|
|
649
|
+
x: i === 0 ? void 0 : r,
|
|
650
|
+
dy: i === 0 ? void 0 : l * 1.2,
|
|
651
|
+
fill: k(s.color, j(t.config)),
|
|
652
|
+
"font-size": l,
|
|
653
|
+
"font-weight": s.bold ? "700" : "400"
|
|
654
|
+
}, e(n))).join("") : "";
|
|
655
|
+
return i === "end" ? `${d}${u}` : `${u}${d}`;
|
|
656
|
+
}
|
|
657
|
+
function Me(t, n, r) {
|
|
658
|
+
let i = S(t.config, "layout.labels", {}), a = i.dataLabels ?? {}, o = i.value ?? {}, s = i.percentage ?? {}, l = i.name ?? {};
|
|
659
|
+
if (!E(t.config, "dataLabels.show", a.show ?? !0) || !a.show) return "";
|
|
660
|
+
let u = !!a.oneLine, d = x(o.fontSize, a.fontSize ?? 12), f = x(l.fontSize, a.fontSize ?? 12), p = [];
|
|
661
|
+
return n.forEach((n, i) => {
|
|
662
|
+
let a = r[i];
|
|
663
|
+
if (!a || !Z(t, n)) return;
|
|
664
|
+
let o = ke(t, a, 42), m = Ae(t, o);
|
|
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
669
|
x: o.x,
|
|
670
670
|
y: o.y,
|
|
671
671
|
"text-anchor": m
|
|
672
|
-
}, je(
|
|
672
|
+
}, je(t, n, o.x, m)));
|
|
673
673
|
return;
|
|
674
674
|
}
|
|
675
675
|
p.push(M("text", {
|
|
@@ -682,24 +682,24 @@ function Me(e, t, n) {
|
|
|
682
682
|
"text-anchor": m,
|
|
683
683
|
fill: valueFill
|
|
684
684
|
}, te({
|
|
685
|
-
content: X(
|
|
685
|
+
content: X(t, n),
|
|
686
686
|
x: o.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
693
|
x: o.x,
|
|
694
694
|
y: o.y + f * 1.2,
|
|
695
695
|
"font-size": f,
|
|
696
|
-
"font-weight":
|
|
696
|
+
"font-weight": l.bold ? "700" : "400",
|
|
697
697
|
"text-anchor": m,
|
|
698
|
-
fill: k(
|
|
699
|
-
},
|
|
700
|
-
content:
|
|
698
|
+
fill: k(l.color, j(t.config))
|
|
699
|
+
}, c({
|
|
700
|
+
content: e(String(n.name ?? "")),
|
|
701
701
|
fontSize: f,
|
|
702
|
-
fill: k(
|
|
702
|
+
fill: k(l.color, j(t.config)),
|
|
703
703
|
x: o.x
|
|
704
704
|
})));
|
|
705
705
|
}), p.length ? M("g", { "data-layer": "polar-data-labels" }, p.join("")) : "";
|
|
@@ -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 ?? f(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 s = n[a];
|
|
744
|
+
if (!s?.middlePoint || !Z(e, t)) return;
|
|
745
|
+
let c = o({
|
|
746
|
+
initX: s.middlePoint.x,
|
|
747
|
+
initY: s.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 ${c.x},${c.y} ${s.middlePoint.x},${s.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: c.x,
|
|
763
|
+
cy: c.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 = p(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), d = p(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($(d, {
|
|
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(p(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 p(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 p(r.formatter, i, a, {
|
|
873
873
|
datapoint: t,
|
|
874
874
|
serie: t
|
|
875
875
|
});
|
|
@@ -929,8 +929,8 @@ function We(e, t) {
|
|
|
929
929
|
series: t.map((e) => ({ ...e }))
|
|
930
930
|
}) ?? "" : n ?? "";
|
|
931
931
|
}
|
|
932
|
-
function Ge(
|
|
933
|
-
return M("title", {},
|
|
932
|
+
function Ge(t, n, r) {
|
|
933
|
+
return M("title", {}, e(`${E(t.config, "title.text", "Donut chart") || t.svgTitle || "Donut chart"}. ${n.length} series. Total ${v(r)}.`));
|
|
934
934
|
}
|
|
935
935
|
async function Ke(e) {
|
|
936
936
|
let t = e.config, n = x(e.width, S(t, "width", 512)), r = x(e.height, S(t, "height", 512)), i = R(e), a = z(i), o = me({
|