vue-data-ui 3.23.10 → 3.23.12
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +40 -40
- package/dist/{Arrow-bwmME0jw.js → Arrow-DrF4NNJO.js} +1 -1
- package/dist/{BaseDraggableDialog-DBVHlhQZ.js → BaseDraggableDialog-Dr_Q6Yt5.js} +2 -2
- package/dist/{BaseIcon-B4n7br_R.js → BaseIcon-BbElSC8_.js} +1 -1
- package/dist/{BaseLegendToggle-wRhcG_-q.js → BaseLegendToggle-CtEdLr4R.js} +1 -1
- package/dist/{BaseZoomControls-BZjzzyQo.js → BaseZoomControls-Cvq4UmNG.js} +2 -2
- package/dist/{ColorPicker-B9kUMLSz.js → ColorPicker-ChOgAmCi.js} +2 -2
- package/dist/{DataTable-DMsScfkx.js → DataTable-CmyEubtT.js} +2 -2
- package/dist/{HillActions-IWPfuceW.js → HillActions-3HneGJhS.js} +1 -1
- package/dist/{Legend-DWEFXq9E.js → Legend-BJtY2RA9.js} +2 -2
- package/dist/{NonSvgPenAndPaper-Crs4-xWz.js → NonSvgPenAndPaper-DmxzHJtV.js} +3 -3
- package/dist/{PackageVersion-DNTJUKh1.js → PackageVersion-CT8FfP7h.js} +1 -1
- package/dist/{PenAndPaper-DJ607Hx6.js → PenAndPaper-CIa1F5Jq.js} +3 -3
- package/dist/{Shape-BAhF1ToV.js → Shape-BAL5bQmA.js} +1 -1
- package/dist/{SlicerPreview-sXtk2ZZ2.js → SlicerPreview-BRRyc1p7.js} +426 -426
- package/dist/{SparkTooltip-BE50SZQH.js → SparkTooltip-Bou05CV_.js} +1 -1
- package/dist/{Title-BGLPsoA9.js → Title-CaVA8EIw.js} +1 -1
- package/dist/{Tooltip-DO4-MVhc.js → Tooltip-CVxJe3UW.js} +1 -1
- package/dist/{UserOptions-HQyukyl2.js → UserOptions-WH7-49V0.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-hill.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-Cg_3vpOo.js → dom-to-png-COvyU2SG.js} +1 -1
- package/dist/exposedLib-DrUEXSyf.js +28 -0
- package/dist/{img-tU9mMt9W.js → img-Bkzj3lDD.js} +1 -1
- package/dist/{labelUtils-C_lMnQRs.js → labelUtils-iX76cA2-.js} +1 -1
- package/dist/{lib-AT2PUyyh.js → lib-Dqr_-I6Y.js} +165 -162
- package/dist/{package-enC-Nivt.js → package-CXgp_UWC.js} +1 -1
- package/dist/{pdf-ColHHJFH.js → pdf-Bk_9lTdQ.js} +1 -1
- package/dist/{render-common-CqcoYfCA.js → render-common-D9TESN6N.js} +12 -12
- 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 -2
- package/dist/types/vue-ui-dag.d.ts +2 -0
- package/dist/{useNestedProp-CW0vJS1B.js → useNestedProp-CulPqtou.js} +1 -1
- package/dist/{usePrinter-BFS7d6eb.js → usePrinter-CEiH1b6R.js} +2 -2
- package/dist/utils.js +9 -9
- package/dist/{vue-data-ui-DD7J3yor.js → vue-data-ui-BTHfxD0A.js} +69 -69
- package/dist/vue-data-ui.js +73 -73
- package/dist/vue-ui-3d-bar-qYgLQzCk.js +1829 -0
- package/dist/{vue-ui-accordion-DJNjilyy.js → vue-ui-accordion-C6L7glHU.js} +3 -3
- package/dist/{vue-ui-age-pyramid-DI8b5E2H.js → vue-ui-age-pyramid-DlDqWHMv.js} +27 -27
- package/dist/{vue-ui-annotator-7ZVfFskI.js → vue-ui-annotator-BwIu0JUV.js} +9 -9
- package/dist/vue-ui-bullet-KPROgHpN.js +700 -0
- package/dist/{vue-ui-bump-DzB3WQnq.js → vue-ui-bump-_ccDjRda.js} +237 -237
- package/dist/{vue-ui-candlestick--YWEtek_.js → vue-ui-candlestick-C_21KIXE.js} +245 -245
- package/dist/{vue-ui-carousel-table-Dn3RZU0p.js → vue-ui-carousel-table--JukD8gC.js} +108 -108
- package/dist/{vue-ui-chestnut-BIsXeXiU.js → vue-ui-chestnut-BWvgfxnY.js} +86 -86
- package/dist/vue-ui-chord-CGkWt2XK.js +1345 -0
- package/dist/vue-ui-circle-pack-BWaN2mEB.js +1633 -0
- package/dist/{vue-ui-cursor-C-P2D5i6.js → vue-ui-cursor-YbxnsOd1.js} +3 -3
- package/dist/{vue-ui-dag-CThnMMWA.js → vue-ui-dag-B-X2eE3W.js} +923 -885
- package/dist/{vue-ui-dashboard-D0NNTRO3.js → vue-ui-dashboard-DgayqETw.js} +69 -69
- package/dist/{vue-ui-digits-9tGjGzZh.js → vue-ui-digits-1ULOKtDh.js} +3 -3
- package/dist/{vue-ui-donut-EZu8p7HF.js → vue-ui-donut-Bz2ZI_vO.js} +85 -85
- package/dist/{vue-ui-donut-DLN9uPOi.js → vue-ui-donut-Ci2MsJLu.js} +64 -64
- package/dist/{vue-ui-donut-evolution-mu-iGTIn.js → vue-ui-donut-evolution-Bo54mlFQ.js} +347 -347
- package/dist/{vue-ui-dumbbell-Dvldi3Oo.js → vue-ui-dumbbell-D2bJ_P7K.js} +229 -229
- package/dist/vue-ui-flow-D9m-k3tM.js +1214 -0
- package/dist/vue-ui-funnel-DyETq2KE.js +747 -0
- package/dist/{vue-ui-galaxy-D6eYN8Ut.js → vue-ui-galaxy-pjGKZLrq.js} +64 -64
- package/dist/vue-ui-gauge-BO5lLCyJ.js +932 -0
- package/dist/{vue-ui-geo-CQqNemR6.js → vue-ui-geo-DpyLvk_B.js} +34 -34
- package/dist/{vue-ui-gizmo-ClunTUxX.js → vue-ui-gizmo-CUl8dgmV.js} +10 -10
- package/dist/{vue-ui-heatmap-B_pSQNzO.js → vue-ui-heatmap-CiV3kCrx.js} +472 -472
- package/dist/{vue-ui-hill-Byp0Tnny.js → vue-ui-hill-CkMtYGo2.js} +10 -10
- package/dist/vue-ui-history-plot-X2gQI4TY.js +1695 -0
- package/dist/vue-ui-horizontal-bar-DVT1wthh.js +1708 -0
- package/dist/{vue-ui-kpi-BKw5t-rX.js → vue-ui-kpi-CWPmkLKR.js} +3 -3
- package/dist/{vue-ui-mini-loader-BNm0MQDw.js → vue-ui-mini-loader-BVSIAFYi.js} +2 -2
- package/dist/{vue-ui-molecule-DRwQV5hN.js → vue-ui-molecule-DnW5HYZP.js} +176 -176
- package/dist/{vue-ui-mood-radar-Bj3KTWYj.js → vue-ui-mood-radar-FovwTDLw.js} +20 -20
- package/dist/{vue-ui-nested-donuts-83Wh2w6z.js → vue-ui-nested-donuts-DHCOlxTO.js} +104 -104
- package/dist/vue-ui-onion-CzAEqZ0B.js +1233 -0
- package/dist/vue-ui-parallel-coordinate-plot-BZN75P6u.js +1430 -0
- package/dist/{vue-ui-quadrant-_J-Qr7-K.js → vue-ui-quadrant-CNeP5WEC.js} +32 -32
- package/dist/{vue-ui-quick-chart-DcOUq4ym.js → vue-ui-quick-chart-Bnj8oh82.js} +153 -153
- package/dist/{vue-ui-radar-FlRlsoAd.js → vue-ui-radar-DMyMAtx7.js} +41 -41
- package/dist/{vue-ui-rating-eCxEZD8C.js → vue-ui-rating-dBCk6ECe.js} +26 -26
- package/dist/vue-ui-relation-circle-DFj5V39I.js +903 -0
- package/dist/vue-ui-ridgeline-BaplQZZK.js +1614 -0
- package/dist/vue-ui-rings-B9QJ1Rnb.js +1250 -0
- package/dist/vue-ui-scatter-UH0wqUO5.js +2403 -0
- package/dist/{vue-ui-skeleton-CNOam3kC.js → vue-ui-skeleton-DkoEclfa.js} +3 -3
- package/dist/{vue-ui-smiley-YdyidjBH.js → vue-ui-smiley-D1pW2Fdy.js} +23 -23
- package/dist/{vue-ui-spark-trend-CS5GLtYL.js → vue-ui-spark-trend-BW8WYOva.js} +23 -23
- package/dist/{vue-ui-sparkbar-DDHwgP4k.js → vue-ui-sparkbar-ADRsH-GZ.js} +24 -24
- package/dist/{vue-ui-sparkgauge-BcQu9V3h.js → vue-ui-sparkgauge-BYs1L6I7.js} +61 -61
- package/dist/{vue-ui-sparkhistogram-CPsA5P6c.js → vue-ui-sparkhistogram-D1Paq9X0.js} +15 -15
- package/dist/vue-ui-sparkline-D2Hf_NP-.js +1584 -0
- package/dist/{vue-ui-sparkstackbar-4tsTxMe2.js → vue-ui-sparkstackbar-Uy6Q0X15.js} +207 -207
- package/dist/vue-ui-stackbar-Vt9AjazE.js +2332 -0
- package/dist/{vue-ui-stackline-BNCWO_jG.js → vue-ui-stackline-CBIGhWpn.js} +605 -605
- package/dist/{vue-ui-strip-plot-2Y1c02Ek.js → vue-ui-strip-plot-DhZV1Sl6.js} +57 -57
- package/dist/vue-ui-table-DqMxdgj4.js +1352 -0
- package/dist/{vue-ui-table-heatmap-BacaEjQy.js → vue-ui-table-heatmap-CglQqfWH.js} +84 -84
- package/dist/{vue-ui-table-sparkline-B8oAU5yr.js → vue-ui-table-sparkline-2KZ2UoEA.js} +11 -11
- package/dist/vue-ui-thermometer-mVP2GqO7.js +756 -0
- package/dist/{vue-ui-timer-CWZgSpP8.js → vue-ui-timer-CGrqG8H3.js} +12 -12
- package/dist/{vue-ui-tiremarks-LLVCPyg9.js → vue-ui-tiremarks-DyFUPB5s.js} +12 -12
- package/dist/{vue-ui-treemap-ehBl9JMC.js → vue-ui-treemap-BVFHSTfq.js} +44 -44
- package/dist/vue-ui-waffle-DNZsc5x0.js +1619 -0
- package/dist/{vue-ui-wheel-C4OHPrtC.js → vue-ui-wheel-Cg4oNFmH.js} +28 -28
- package/dist/{vue-ui-word-cloud-CDHn3Kwa.js → vue-ui-word-cloud-CUf1h_L1.js} +32 -32
- package/dist/{vue-ui-world-ao1xf04I.js → vue-ui-world-CIcrI3zP.js} +116 -116
- package/dist/{vue-ui-xy-DmJDCl3c.js → vue-ui-xy-8V-CU7No.js} +99 -99
- package/dist/{vue-ui-xy-_U3wmtCf.js → vue-ui-xy-CJ5ZixIL.js} +304 -304
- package/dist/vue-ui-xy-canvas-BHpBO5dS.js +1823 -0
- package/package.json +1 -1
- package/dist/exposedLib-vfRiIvq_.js +0 -28
- package/dist/vue-ui-3d-bar-DgrcdAgz.js +0 -1829
- package/dist/vue-ui-bullet-Dyd5F1Wa.js +0 -700
- package/dist/vue-ui-chord-BimXqVsF.js +0 -1345
- package/dist/vue-ui-circle-pack-DKQEhL-L.js +0 -1633
- package/dist/vue-ui-flow-DYZBT5Cb.js +0 -1214
- package/dist/vue-ui-funnel--NaxO0cZ.js +0 -747
- package/dist/vue-ui-gauge-DTIEl2Xb.js +0 -932
- package/dist/vue-ui-history-plot-CMu8ST1E.js +0 -1695
- package/dist/vue-ui-horizontal-bar-BQn7WxQ-.js +0 -1708
- package/dist/vue-ui-onion-C27GpneA.js +0 -1233
- package/dist/vue-ui-parallel-coordinate-plot-BklOszr1.js +0 -1430
- package/dist/vue-ui-relation-circle-DnsxHv7t.js +0 -903
- package/dist/vue-ui-ridgeline-TopTLyaE.js +0 -1614
- package/dist/vue-ui-rings-obVfb09j.js +0 -1250
- package/dist/vue-ui-scatter-BHSuA506.js +0 -2403
- package/dist/vue-ui-sparkline-CnbO-GkM.js +0 -1584
- package/dist/vue-ui-stackbar-2_SrMFNT.js +0 -2332
- package/dist/vue-ui-table-DJZxHo5N.js +0 -1352
- package/dist/vue-ui-thermometer-BGtxNU9T.js +0 -756
- package/dist/vue-ui-waffle-DpBAXbhh.js +0 -1610
- package/dist/vue-ui-xy-canvas-Bx-9y53V.js +0 -1823
|
@@ -1,28 +1,28 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { Ht as e, It as t, Jt as n, K as r, Pt as i, S as a, Ut as o, X as s, Xt as c, b as l, f as u, h as d, i as f, j as p, jt as m, p as h, q as g, rt as _, t as v } from "./lib-Dqr_-I6Y.js";
|
|
2
2
|
import { t as y } from "./useConfig-DwdGsXTx.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-D9TESN6N.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 = c({
|
|
9
|
+
userConfig: r,
|
|
10
10
|
defaultConfig: ne
|
|
11
|
-
}),
|
|
12
|
-
if (!
|
|
11
|
+
}), a = i.theme;
|
|
12
|
+
if (!a) return {
|
|
13
13
|
...i,
|
|
14
|
-
customPalette: i.customPalette?.length ? i.customPalette :
|
|
14
|
+
customPalette: i.customPalette?.length ? i.customPalette : t
|
|
15
15
|
};
|
|
16
|
-
let
|
|
17
|
-
userConfig: b[
|
|
16
|
+
let o = c({
|
|
17
|
+
userConfig: b[a] || {},
|
|
18
18
|
defaultConfig: i
|
|
19
|
-
}),
|
|
20
|
-
userConfig:
|
|
21
|
-
defaultConfig:
|
|
19
|
+
}), s = c({
|
|
20
|
+
userConfig: r,
|
|
21
|
+
defaultConfig: o
|
|
22
22
|
});
|
|
23
23
|
return {
|
|
24
|
-
...
|
|
25
|
-
customPalette:
|
|
24
|
+
...s,
|
|
25
|
+
customPalette: s.customPalette?.length ? s.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, o = (n?.color ? a(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(
|
|
56
|
-
color:
|
|
55
|
+
absoluteValues: Array.isArray(n?.values) ? n.values : [i],
|
|
56
|
+
color: o,
|
|
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 = g();
|
|
121
121
|
function I() {
|
|
122
122
|
return ue;
|
|
123
123
|
}
|
|
@@ -271,9 +271,9 @@ function ve(e) {
|
|
|
271
271
|
})), M("g", { "data-layer": "title" }, d.join(""));
|
|
272
272
|
}
|
|
273
273
|
function ye(t, n) {
|
|
274
|
-
let { config: r } = t, i = [], a = !!S(r, "useGradient", !1),
|
|
274
|
+
let { config: r } = t, i = [], a = !!S(r, "useGradient", !1), s = !!S(r, "layout.donut.useShadow", !1);
|
|
275
275
|
if (a) {
|
|
276
|
-
let a = E(r, "type", "classic"),
|
|
276
|
+
let a = E(r, "type", "classic"), s = x(S(r, "gradientIntensity", 30), 30);
|
|
277
277
|
if (a === "classic" && Number.isFinite(t.thickness / t.radius)) {
|
|
278
278
|
let n = V(r) ? 1 : t.thickness / t.radius;
|
|
279
279
|
i.push(M("radialGradient", { id: H(t) }, [
|
|
@@ -289,7 +289,7 @@ function ye(t, n) {
|
|
|
289
289
|
}),
|
|
290
290
|
w("stop", {
|
|
291
291
|
offset: `${(1 - n / 2) * 100}%`,
|
|
292
|
-
"stop-color": e("#FFFFFF",
|
|
292
|
+
"stop-color": e("#FFFFFF", s)
|
|
293
293
|
}),
|
|
294
294
|
w("stop", {
|
|
295
295
|
offset: "100%",
|
|
@@ -307,15 +307,15 @@ function ye(t, n) {
|
|
|
307
307
|
r: "62%"
|
|
308
308
|
}, [w("stop", {
|
|
309
309
|
offset: "0%",
|
|
310
|
-
"stop-color":
|
|
311
|
-
"stop-opacity":
|
|
310
|
+
"stop-color": o(e.color, .05),
|
|
311
|
+
"stop-opacity": s / 100
|
|
312
312
|
}), w("stop", {
|
|
313
313
|
offset: "100%",
|
|
314
314
|
"stop-color": e.color
|
|
315
315
|
})].join("")));
|
|
316
316
|
});
|
|
317
317
|
}
|
|
318
|
-
if (
|
|
318
|
+
if (s) {
|
|
319
319
|
let e = k(S(r, "layout.donut.shadowColor", "#000000"), "#000000"), n = x(S(r, "layout.donut.shadowOpacity", .2), .2), a = x(S(r, "layout.donut.shadowBlur", 6), 6), o = x(S(r, "layout.donut.shadowOffsetY", 3), 3);
|
|
320
320
|
i.push(M("filter", {
|
|
321
321
|
id: W(t),
|
|
@@ -388,16 +388,16 @@ function Ce(e, t, n) {
|
|
|
388
388
|
}), M("g", { "data-layer": "polar-slices" }, a.join(""));
|
|
389
389
|
}
|
|
390
390
|
function q(e, t, n = "layout.labels.value.rounding") {
|
|
391
|
-
let { config: r } = e, i = S(r, "layout.labels", {}), a = i.dataLabels ?? {}, o = i.value ?? {},
|
|
391
|
+
let { config: r } = e, i = S(r, "layout.labels", {}), a = i.dataLabels ?? {}, o = i.value ?? {}, c = s({
|
|
392
392
|
p: a.prefix ?? "",
|
|
393
393
|
v: t.value,
|
|
394
394
|
s: a.suffix ?? "",
|
|
395
395
|
r: x(S(r, n, o.rounding ?? 0), o.rounding ?? 0)
|
|
396
396
|
});
|
|
397
|
-
return f(o.formatter, t.value,
|
|
397
|
+
return f(o.formatter, t.value, c, { datapoint: t });
|
|
398
398
|
}
|
|
399
399
|
function J(e, t) {
|
|
400
|
-
let { config: n } = e, r = S(n, "layout.labels.percentage", {}), i = x(t.proportion, 0) * 100, a =
|
|
400
|
+
let { config: n } = e, r = S(n, "layout.labels.percentage", {}), i = x(t.proportion, 0) * 100, a = s({
|
|
401
401
|
v: i,
|
|
402
402
|
s: "%",
|
|
403
403
|
r: x(r.rounding, 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, d = e.drawingArea.top + 16, f = e.drawingArea.bottom - 16, p = i - (e.radius + 6), m = i + (e.radius + 6),
|
|
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, d = e.drawingArea.top + 16, f = e.drawingArea.bottom - 16, p = i - (e.radius + 6), m = i + (e.radius + 6), g = Q(e);
|
|
438
438
|
function _(e) {
|
|
439
439
|
return {
|
|
440
440
|
x: l(e.center?.endX ?? e.endX),
|
|
@@ -442,15 +442,15 @@ function Ee(e, t) {
|
|
|
442
442
|
};
|
|
443
443
|
}
|
|
444
444
|
function v({ midX: e, midY: t, bandX: n, bandY: r }) {
|
|
445
|
-
if (!
|
|
446
|
-
let o = n < i ? -1 : 1, s = n - e, c = r - t, l = Math.sqrt(s * s + c * c) || 1, u = e - i, d = t - a, f = Math.sqrt(u * u + d * d) || 1, p = u / f, m = d / f,
|
|
445
|
+
if (!g) return `M ${e} ${t} L ${e} ${r} L ${n} ${r}`;
|
|
446
|
+
let o = n < i ? -1 : 1, s = n - e, c = r - t, l = Math.sqrt(s * s + c * c) || 1, u = e - i, d = t - a, f = Math.sqrt(u * u + d * d) || 1, p = u / f, m = d / f, h = f + 9;
|
|
447
447
|
function _({ x: e, y: t }) {
|
|
448
448
|
let n = e - i, r = t - a, o = Math.sqrt(n * n + r * r) || 1;
|
|
449
|
-
if (o >=
|
|
449
|
+
if (o >= h) return {
|
|
450
450
|
x: e,
|
|
451
451
|
y: t
|
|
452
452
|
};
|
|
453
|
-
let s =
|
|
453
|
+
let s = h / o;
|
|
454
454
|
return {
|
|
455
455
|
x: i + n * s,
|
|
456
456
|
y: a + r * s
|
|
@@ -472,7 +472,7 @@ function Ee(e, t) {
|
|
|
472
472
|
let b = _({
|
|
473
473
|
x: e + p * v,
|
|
474
474
|
y: t + m * v
|
|
475
|
-
}), x = i + o * Math.max(Math.abs(n - i),
|
|
475
|
+
}), x = i + o * Math.max(Math.abs(n - i), h), S = _({
|
|
476
476
|
x: n - o * Math.min(y, Math.abs(x - n) * .75),
|
|
477
477
|
y: r
|
|
478
478
|
});
|
|
@@ -490,7 +490,7 @@ function Ee(e, t) {
|
|
|
490
490
|
midX: n.x,
|
|
491
491
|
midY: n.y,
|
|
492
492
|
inlineMarkerX: u(e).x,
|
|
493
|
-
inlineMarkerY:
|
|
493
|
+
inlineMarkerY: h(e) - 3.5,
|
|
494
494
|
labelHeight: y(e.name)
|
|
495
495
|
};
|
|
496
496
|
}
|
|
@@ -573,26 +573,26 @@ function Ee(e, t) {
|
|
|
573
573
|
}), r;
|
|
574
574
|
}
|
|
575
575
|
function De({ state: e, arc: t, arcIndex: n, smallArcLayout: r, fontSize: i }) {
|
|
576
|
-
let a = S(e.config, "layout.labels", {}), o = a.percentage ?? {}, s = a.name ?? {}, c = r?.labelX ?? u(t, !0, 12).x, l = r?.labelY ??
|
|
576
|
+
let a = S(e.config, "layout.labels", {}), o = a.percentage ?? {}, s = a.name ?? {}, c = r?.labelX ?? u(t, !0, 12).x, l = r?.labelY ?? h(t), d = r?.textAnchor ?? u(t, !0, 12).anchor, { name: f } = Y(e, t), p = we(e, t), m = String(f).split(/\n/g), g = f ? m.map((t, n) => M("tspan", {
|
|
577
577
|
class: "vue-data-ui-datalabel-name",
|
|
578
578
|
x: n === 0 ? void 0 : c,
|
|
579
579
|
dy: n === 0 ? void 0 : i * 1.2,
|
|
580
580
|
fill: k(s.color, j(e.config)),
|
|
581
581
|
"font-size": i,
|
|
582
582
|
"font-weight": s.bold ? "700" : "400"
|
|
583
|
-
},
|
|
583
|
+
}, _(t + (n === m.length - 1 ? " " : "")))).join("") : "", v = p ? M("tspan", {
|
|
584
584
|
class: "vue-data-ui-datalabel-value",
|
|
585
585
|
fill: k(o.color, j(e.config)),
|
|
586
586
|
"font-size": i,
|
|
587
587
|
"font-weight": o.bold ? "700" : "400"
|
|
588
|
-
},
|
|
588
|
+
}, _(p)) : "";
|
|
589
589
|
return M("text", {
|
|
590
590
|
"data-cy": `donut-label-inline-${n}`,
|
|
591
591
|
class: "vue-data-ui-datalabel-inline",
|
|
592
592
|
x: c,
|
|
593
593
|
y: l,
|
|
594
594
|
"text-anchor": d
|
|
595
|
-
}, `${
|
|
595
|
+
}, `${g}${v}`);
|
|
596
596
|
}
|
|
597
597
|
function Oe(e, t) {
|
|
598
598
|
let n = S(e.config, "layout.labels", {}), r = n.dataLabels ?? {};
|
|
@@ -619,7 +619,7 @@ function Oe(e, t) {
|
|
|
619
619
|
arcIndex: n,
|
|
620
620
|
smallArcLayout: {
|
|
621
621
|
labelX: u(t, !1, a + i / 2).x,
|
|
622
|
-
labelY:
|
|
622
|
+
labelY: h(t, a, a),
|
|
623
623
|
textAnchor: u(t).anchor
|
|
624
624
|
},
|
|
625
625
|
fontSize: i
|
|
@@ -644,22 +644,22 @@ function je(e, t, n, r) {
|
|
|
644
644
|
fill: k(a.color, j(e.config)),
|
|
645
645
|
"font-size": s,
|
|
646
646
|
"font-weight": a.bold ? "700" : "400"
|
|
647
|
-
},
|
|
647
|
+
}, _(String(X(e, t).replace(/\n/g, " / ")))), u = o.show ? String(t.name ?? "").split(/\n/g).map((t, r) => M("tspan", {
|
|
648
648
|
class: "vue-data-ui-datalabel-name",
|
|
649
649
|
x: r === 0 ? void 0 : n,
|
|
650
650
|
dy: r === 0 ? void 0 : c * 1.2,
|
|
651
651
|
fill: k(o.color, j(e.config)),
|
|
652
652
|
"font-size": c,
|
|
653
653
|
"font-weight": o.bold ? "700" : "400"
|
|
654
|
-
},
|
|
654
|
+
}, _(t))).join("") : "";
|
|
655
655
|
return r === "end" ? `${u}${l}` : `${l}${u}`;
|
|
656
656
|
}
|
|
657
|
-
function Me(e, t,
|
|
657
|
+
function Me(e, t, n) {
|
|
658
658
|
let i = S(e.config, "layout.labels", {}), a = i.dataLabels ?? {}, o = i.value ?? {}, s = i.percentage ?? {}, c = i.name ?? {};
|
|
659
659
|
if (!E(e.config, "dataLabels.show", a.show ?? !0) || !a.show) return "";
|
|
660
660
|
let l = !!a.oneLine, u = x(o.fontSize, a.fontSize ?? 12), d = x(c.fontSize, a.fontSize ?? 12), f = [];
|
|
661
661
|
return t.forEach((t, i) => {
|
|
662
|
-
let a =
|
|
662
|
+
let a = n[i];
|
|
663
663
|
if (!a || !Z(e, t)) return;
|
|
664
664
|
let o = ke(e, a, 42), p = Ae(e, o);
|
|
665
665
|
if (l) {
|
|
@@ -696,8 +696,8 @@ function Me(e, t, r) {
|
|
|
696
696
|
"font-weight": c.bold ? "700" : "400",
|
|
697
697
|
"text-anchor": p,
|
|
698
698
|
fill: k(c.color, j(e.config))
|
|
699
|
-
},
|
|
700
|
-
content:
|
|
699
|
+
}, r({
|
|
700
|
+
content: _(String(t.name ?? "")),
|
|
701
701
|
fontSize: d,
|
|
702
702
|
fill: k(c.color, j(e.config)),
|
|
703
703
|
x: o.x
|
|
@@ -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 ?? u(t).x,
|
|
730
|
-
cy: o?.markerY ??
|
|
730
|
+
cy: o?.markerY ?? h(t) - 3.5,
|
|
731
731
|
r: x(n.markerRadius, 3),
|
|
732
732
|
fill: t.color,
|
|
733
733
|
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,
|
|
781
|
+
let n = x(i.fontSize, 14), r = !!a.show, c = e.center.y - (r ? n : 0) + x(i.offsetY, 0), l = i.value ?? {}, u = x(l.fontSize, n), d = f(l.formatter, t, s({
|
|
782
782
|
p: l.prefix ?? "",
|
|
783
783
|
v: t,
|
|
784
784
|
s: l.suffix ?? "",
|
|
@@ -787,7 +787,7 @@ function Ie(e, t, n) {
|
|
|
787
787
|
o.push($(i.text ?? "", {
|
|
788
788
|
"data-cy": "hollow-total-name",
|
|
789
789
|
x: e.center.x,
|
|
790
|
-
y:
|
|
790
|
+
y: c,
|
|
791
791
|
fill: k(i.color, j(e.config)),
|
|
792
792
|
"font-size": n,
|
|
793
793
|
"font-weight": i.bold ? "700" : "400"
|
|
@@ -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),
|
|
804
|
+
let r = x(a.fontSize, 14), c = !!i.show, l = t / Math.max(1, n.length), u = a.value ?? {}, d = x(u.fontSize, r), p = f(u.formatter, l, s({
|
|
805
805
|
p: u.prefix ?? "",
|
|
806
806
|
v: l,
|
|
807
807
|
s: u.suffix ?? "",
|
|
@@ -810,14 +810,14 @@ function Ie(e, t, n) {
|
|
|
810
810
|
o.push($(a.text ?? "", {
|
|
811
811
|
"data-cy": "hollow-average-name",
|
|
812
812
|
x: e.center.x,
|
|
813
|
-
y: e.center.y + (
|
|
813
|
+
y: e.center.y + (c ? r : 0) + x(a.offsetY, 0),
|
|
814
814
|
fill: k(a.color, j(e.config)),
|
|
815
815
|
"font-size": r,
|
|
816
816
|
"font-weight": a.bold ? "700" : "400"
|
|
817
817
|
})), o.push($(p, {
|
|
818
818
|
"data-cy": "hollow-average-value",
|
|
819
819
|
x: e.center.x,
|
|
820
|
-
y: e.center.y + (
|
|
820
|
+
y: e.center.y + (c ? r : 0) + r + x(u.offsetY, 0),
|
|
821
821
|
fill: k(u.color, k(a.color, j(e.config))),
|
|
822
822
|
"font-size": d,
|
|
823
823
|
"font-weight": u.bold ? "700" : "400"
|
|
@@ -831,7 +831,7 @@ function Ie(e, t, n) {
|
|
|
831
831
|
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
|
-
let a = S(n, "layout.labels.dataLabels", {}), o = x(i.fontSize, 20),
|
|
834
|
+
let a = S(n, "layout.labels.dataLabels", {}), o = x(i.fontSize, 20), c = k(i.color, j(n)), l = f(i.formatter, t, s({
|
|
835
835
|
p: a.prefix ?? "",
|
|
836
836
|
v: t,
|
|
837
837
|
s: a.suffix ?? "",
|
|
@@ -844,7 +844,7 @@ function Le(e, t) {
|
|
|
844
844
|
"font-size": o,
|
|
845
845
|
"font-weight": i.bold ? "700" : "400",
|
|
846
846
|
"text-anchor": "middle",
|
|
847
|
-
fill:
|
|
847
|
+
fill: c
|
|
848
848
|
});
|
|
849
849
|
}
|
|
850
850
|
function Re(e, t) {
|
|
@@ -852,7 +852,7 @@ function Re(e, t) {
|
|
|
852
852
|
return n ? x(t.value, 0) / n * 100 : 0;
|
|
853
853
|
}
|
|
854
854
|
function ze(e, t) {
|
|
855
|
-
let n = S(e.config, "legend", {}), r = S(e.config, "layout.labels", {}), i = r.dataLabels ?? {}, a = r.value ?? {}, o =
|
|
855
|
+
let n = S(e.config, "legend", {}), r = S(e.config, "layout.labels", {}), i = r.dataLabels ?? {}, a = r.value ?? {}, o = s({
|
|
856
856
|
p: i.prefix ?? "",
|
|
857
857
|
v: t.value,
|
|
858
858
|
s: i.suffix ?? "",
|
|
@@ -864,7 +864,7 @@ function ze(e, t) {
|
|
|
864
864
|
});
|
|
865
865
|
}
|
|
866
866
|
function Be(e, t) {
|
|
867
|
-
let n = S(e.config, "legend", {}), r = S(e.config, "layout.labels", {}).percentage ?? {}, i = Re(e, t), a =
|
|
867
|
+
let n = S(e.config, "legend", {}), r = S(e.config, "layout.labels", {}).percentage ?? {}, i = Re(e, t), a = s({
|
|
868
868
|
v: i,
|
|
869
869
|
s: "%",
|
|
870
870
|
r: x(n.roundingPercentage, r.rounding ?? 0)
|
|
@@ -931,7 +931,7 @@ function We(e, t) {
|
|
|
931
931
|
}
|
|
932
932
|
function Ge(e, t, n) {
|
|
933
933
|
let r = `${E(e.config, "title.text", "Donut chart") || e.svgTitle || "Donut chart"}. ${t.length} series. Total ${l(n)}.`;
|
|
934
|
-
return M("title", {},
|
|
934
|
+
return M("title", {}, _(r));
|
|
935
935
|
}
|
|
936
936
|
async function Ke(e) {
|
|
937
937
|
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({
|