vue-data-ui 3.25.8 → 3.25.10
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/{BaseScanner-DZvpgOjM.js → BaseScanner-Dzc8VT3j.js} +6 -3
- package/dist/{PackageVersion-ekRvV3aF.js → PackageVersion-CZZayD-D.js} +1 -1
- package/dist/{PenAndPaper-KFzKlvbi.js → PenAndPaper-Cd3nItcO.js} +3 -3
- package/dist/{SlicerPreview-B6iHOC9L.js → SlicerPreview-Ccss7Vsq.js} +2 -2
- package/dist/{SparkTooltip-C-Y-mDrc.js → SparkTooltip-L3SliZbR.js} +1 -1
- package/dist/{UserOptions-2x4VklMW.js → UserOptions-qo_Tsqci.js} +1 -1
- package/dist/components/vue-ui-3d-bar.js +1 -1
- package/dist/components/vue-ui-age-pyramid.js +1 -1
- package/dist/components/vue-ui-annotator.js +1 -1
- package/dist/components/vue-ui-bullet.js +1 -1
- package/dist/components/vue-ui-bump.js +1 -1
- package/dist/components/vue-ui-candlestick.js +1 -1
- package/dist/components/vue-ui-carousel-table.js +1 -1
- package/dist/components/vue-ui-chestnut.js +1 -1
- package/dist/components/vue-ui-chord.js +1 -1
- package/dist/components/vue-ui-circle-pack.js +1 -1
- package/dist/components/vue-ui-cursor.js +1 -1
- package/dist/components/vue-ui-dag.js +1 -1
- package/dist/components/vue-ui-dashboard.js +1 -1
- package/dist/components/vue-ui-digits.js +1 -1
- package/dist/components/vue-ui-donut-evolution.js +1 -1
- package/dist/components/vue-ui-donut.js +1 -1
- package/dist/components/vue-ui-dumbbell.js +1 -1
- package/dist/components/vue-ui-flow.js +1 -1
- package/dist/components/vue-ui-funnel.js +1 -1
- package/dist/components/vue-ui-galaxy.js +1 -1
- package/dist/components/vue-ui-gauge.js +1 -1
- package/dist/components/vue-ui-geo.js +1 -1
- package/dist/components/vue-ui-gizmo.js +1 -1
- package/dist/components/vue-ui-heatmap.js +1 -1
- package/dist/components/vue-ui-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-kpi.js +1 -1
- package/dist/components/vue-ui-label.js +1 -1
- package/dist/components/vue-ui-molecule.js +1 -1
- package/dist/components/vue-ui-mood-radar.js +1 -1
- package/dist/components/vue-ui-nested-donuts.js +1 -1
- package/dist/components/vue-ui-onion.js +1 -1
- package/dist/components/vue-ui-parallel-coordinate-plot.js +1 -1
- package/dist/components/vue-ui-quadrant.js +1 -1
- package/dist/components/vue-ui-quick-chart.js +1 -1
- package/dist/components/vue-ui-radar.js +1 -1
- package/dist/components/vue-ui-relation-circle.js +1 -1
- package/dist/components/vue-ui-ridgeline.js +1 -1
- package/dist/components/vue-ui-rings.js +1 -1
- package/dist/components/vue-ui-scatter.js +1 -1
- package/dist/components/vue-ui-skeleton.js +1 -1
- package/dist/components/vue-ui-spark-trend.js +1 -1
- package/dist/components/vue-ui-sparkbar.js +1 -1
- package/dist/components/vue-ui-sparkgauge.js +1 -1
- package/dist/components/vue-ui-sparkhistogram.js +1 -1
- package/dist/components/vue-ui-sparkline.js +1 -1
- package/dist/components/vue-ui-sparkstackbar.js +1 -1
- package/dist/components/vue-ui-stackbar.js +1 -1
- package/dist/components/vue-ui-stackline.js +1 -1
- package/dist/components/vue-ui-strip-plot.js +1 -1
- package/dist/components/vue-ui-table-heatmap.js +1 -1
- package/dist/components/vue-ui-table-sparkline.js +1 -1
- package/dist/components/vue-ui-table.js +1 -1
- package/dist/components/vue-ui-thermometer.js +1 -1
- package/dist/components/vue-ui-timer.js +1 -1
- package/dist/components/vue-ui-tiremarks.js +1 -1
- package/dist/components/vue-ui-treemap.js +1 -1
- package/dist/components/vue-ui-vertical-bar.js +1 -1
- package/dist/components/vue-ui-waffle.js +1 -1
- package/dist/components/vue-ui-wheel.js +1 -1
- package/dist/components/vue-ui-word-cloud.js +1 -1
- package/dist/components/vue-ui-world.js +1 -1
- package/dist/components/vue-ui-xy-canvas.js +1 -1
- package/dist/components/vue-ui-xy.js +1 -1
- package/dist/composables.js +1 -1
- package/dist/{dom-to-png-C6cQJ5Hq.js → dom-to-png-BR4imuKV.js} +1 -1
- package/dist/{geoProjections-CEo3dVaL.js → geoProjections-BYthUA8l.js} +2 -2
- package/dist/{img-DhGApYG0.js → img-BkMKbWsI.js} +1 -1
- package/dist/{package-C4XeEHJx.js → package-CYtJq7s7.js} +1 -1
- package/dist/{pdf-Di5yPEw9.js → pdf-BSOs_GZz.js} +1 -1
- package/dist/{render-common-CQUp12xB.js → render-common-CpHpPc5s.js} +1 -1
- 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/utils.d.ts +5 -5
- package/dist/types/vue-data-ui.d.ts +5 -5
- package/dist/{usePrinter-DISD7q5m.js → usePrinter-hohanNCX.js} +4 -4
- package/dist/{useTooltipPosition-DifeoeQW.js → useTooltipPosition-BCrtQa9H.js} +1 -1
- package/dist/{vue-data-ui-BChCkqtW.js → vue-data-ui-ChB3aXCO.js} +65 -65
- package/dist/vue-data-ui.js +66 -66
- package/dist/{vue-ui-3d-bar-BkVOy4Y_.js → vue-ui-3d-bar-DcXbkO19.js} +5 -5
- package/dist/{vue-ui-age-pyramid-1_yQ64LX.js → vue-ui-age-pyramid-Cnaxt9NI.js} +263 -251
- package/dist/{vue-ui-annotator-BO5ihHOB.js → vue-ui-annotator-BLYRy--7.js} +12 -12
- package/dist/{vue-ui-bullet-BF1FeBst.js → vue-ui-bullet-DOfD2TSb.js} +4 -4
- package/dist/{vue-ui-bump-ZtKya76Y.js → vue-ui-bump-DL2lDZbE.js} +3 -3
- package/dist/{vue-ui-candlestick-P-clTYIt.js → vue-ui-candlestick-ijujiVJ5.js} +453 -441
- package/dist/{vue-ui-carousel-table-BVS-4A3h.js → vue-ui-carousel-table-DFtWb2-C.js} +3 -3
- package/dist/{vue-ui-chestnut-DHOIbpib.js → vue-ui-chestnut-BGXr0s08.js} +5 -5
- package/dist/{vue-ui-chord-CX_Mc3Fp.js → vue-ui-chord-DgBzLfbv.js} +5 -5
- package/dist/{vue-ui-circle-pack-Caqvblsl.js → vue-ui-circle-pack-88qDJbt0.js} +494 -482
- package/dist/{vue-ui-cursor-BFF4tWUb.js → vue-ui-cursor-CcEB7Ypx.js} +1 -1
- package/dist/{vue-ui-dag-CtG3HUh4.js → vue-ui-dag-BeoFmTDs.js} +6 -6
- package/dist/{vue-ui-dashboard-DASHNFPT.js → vue-ui-dashboard-NOVcGMCa.js} +63 -63
- package/dist/{vue-ui-digits-BQWHzntO.js → vue-ui-digits-BGmT7H1z.js} +1 -1
- package/dist/{vue-ui-donut-DHP_lm0m.js → vue-ui-donut-CP7ilveE.js} +838 -826
- package/dist/{vue-ui-donut-vbqlIlij.js → vue-ui-donut-CtXzuWzy.js} +1 -1
- package/dist/{vue-ui-donut-evolution-Cio3lNLz.js → vue-ui-donut-evolution-D_-y7BZi.js} +6 -6
- package/dist/{vue-ui-dumbbell-C2lQhCfq.js → vue-ui-dumbbell-BR1Cn4wm.js} +4 -4
- package/dist/vue-ui-flow-Bm6TgD8I.js +1229 -0
- package/dist/{vue-ui-funnel-DDncfHgI.js → vue-ui-funnel-CQ0-9nZT.js} +3 -3
- package/dist/vue-ui-galaxy-DUto0BOw.js +1097 -0
- package/dist/{vue-ui-gauge-OQbET2bh.js → vue-ui-gauge-B6pyA6Jh.js} +4 -4
- package/dist/{vue-ui-geo-Ddw87hVT.js → vue-ui-geo-BlG7s8MH.js} +408 -396
- package/dist/{vue-ui-gizmo-DJVWEvWS.js → vue-ui-gizmo-BlyehpxE.js} +2 -2
- package/dist/{vue-ui-heatmap-BKG4xt6j.js → vue-ui-heatmap-DqbWkKAE.js} +405 -393
- package/dist/{vue-ui-hill-BAruBiw6.js → vue-ui-hill-CGE0NdNk.js} +7 -7
- package/dist/vue-ui-history-plot-CaxqIiTb.js +1710 -0
- package/dist/{vue-ui-horizontal-bar-CXT7-P_o.js → vue-ui-horizontal-bar-Ykwe4M1n.js} +401 -389
- package/dist/{vue-ui-kpi-uOGX20hs.js → vue-ui-kpi-B7Nfet0o.js} +1 -1
- package/dist/{vue-ui-label-C1UAzvAu.js → vue-ui-label-Cs4ZlAqr.js} +10 -10
- package/dist/{vue-ui-molecule-BcA064dR.js → vue-ui-molecule-DWq98OSc.js} +347 -335
- package/dist/{vue-ui-mood-radar-CXtC0IqT.js → vue-ui-mood-radar-DDfimq6c.js} +5 -5
- package/dist/{vue-ui-nested-donuts-BFE0oXF_.js → vue-ui-nested-donuts-Bt-r6uXS.js} +360 -348
- package/dist/vue-ui-onion-D8gOhQHP.js +1247 -0
- package/dist/{vue-ui-parallel-coordinate-plot-5kKVnNmE.js → vue-ui-parallel-coordinate-plot-BbPbJiiu.js} +387 -375
- package/dist/{vue-ui-quadrant-BPg8L6Sw.js → vue-ui-quadrant-BJlf3qW1.js} +418 -406
- package/dist/{vue-ui-quick-chart-DQ_rhjqc.js → vue-ui-quick-chart-Cb8x00-X.js} +550 -538
- package/dist/{vue-ui-radar-C65wD7cW.js → vue-ui-radar-30PF-qqr.js} +330 -318
- package/dist/{vue-ui-relation-circle-nZaZcCh1.js → vue-ui-relation-circle-CRiC4PnL.js} +4 -4
- package/dist/{vue-ui-ridgeline-Bsi2hN14.js → vue-ui-ridgeline-CSs4Tq_c.js} +4 -4
- package/dist/{vue-ui-rings-DkCzxDyQ.js → vue-ui-rings-BqRWK5rY.js} +321 -309
- package/dist/{vue-ui-scatter-V01qkcN8.js → vue-ui-scatter-Bsh6jbdW.js} +584 -572
- package/dist/{vue-ui-skeleton-BgYtv_I2.js → vue-ui-skeleton-DbPSsEKV.js} +1 -1
- package/dist/{vue-ui-spark-trend-Dm1OyGyr.js → vue-ui-spark-trend--8QokOII.js} +2 -2
- package/dist/{vue-ui-sparkbar-D3hChHHS.js → vue-ui-sparkbar-DkX9Demg.js} +2 -2
- package/dist/{vue-ui-sparkgauge-CAeJapmG.js → vue-ui-sparkgauge-Ci_xD5B7.js} +2 -2
- package/dist/{vue-ui-sparkhistogram-ZIo_Vg7F.js → vue-ui-sparkhistogram-Qe3ZCPRd.js} +2 -2
- package/dist/{vue-ui-sparkline-BjvSeM83.js → vue-ui-sparkline-BwldgOYW.js} +2 -2
- package/dist/vue-ui-sparkstackbar-Divd0hL_.js +750 -0
- package/dist/vue-ui-stackbar-BWPSGzN-.js +2369 -0
- package/dist/vue-ui-stackline-BQroSnwZ.js +2483 -0
- package/dist/vue-ui-strip-plot-BCUPHkCp.js +1752 -0
- package/dist/{vue-ui-table-C8cvK-x_.js → vue-ui-table-DJeXLYly.js} +2 -2
- package/dist/{vue-ui-table-heatmap-BSUab4fG.js → vue-ui-table-heatmap-D5F5bLx5.js} +2 -2
- package/dist/{vue-ui-table-sparkline-Dam9BFsU.js → vue-ui-table-sparkline-DCm8S2uK.js} +2 -2
- package/dist/{vue-ui-thermometer-zyBeCINd.js → vue-ui-thermometer-xu4R8d2f.js} +4 -4
- package/dist/{vue-ui-timer-CDXczagK.js → vue-ui-timer-i_3bMu3h.js} +1 -1
- package/dist/{vue-ui-tiremarks-CG8LNC9c.js → vue-ui-tiremarks-DGuMI0yH.js} +4 -4
- package/dist/{vue-ui-treemap-DfDRwoZc.js → vue-ui-treemap-Bvl7elni.js} +311 -299
- package/dist/vue-ui-waffle-CVuYg0yU.js +1633 -0
- package/dist/{vue-ui-wheel-DDJIPE_z.js → vue-ui-wheel-DqHD09iA.js} +4 -4
- package/dist/{vue-ui-word-cloud-DBOXRp-e.js → vue-ui-word-cloud-BDCuTQ8Q.js} +385 -372
- package/dist/{vue-ui-world-CiIyp7WH.js → vue-ui-world-B0oVwEDj.js} +474 -462
- package/dist/{vue-ui-xy-s_IZ573M.js → vue-ui-xy-BJJi0E4D.js} +1 -1
- package/dist/{vue-ui-xy-AGYE0Vsz.js → vue-ui-xy-D1dPd68D.js} +1447 -1432
- package/dist/{vue-ui-xy-canvas-MOMyUdJg.js → vue-ui-xy-canvas-R2xbgDOy.js} +523 -511
- package/package.json +3 -3
- package/dist/vue-ui-flow-Dmnz4LCl.js +0 -1217
- package/dist/vue-ui-galaxy-Dw7TyOH0.js +0 -1085
- package/dist/vue-ui-history-plot-BKUg8Gz_.js +0 -1698
- package/dist/vue-ui-onion-DhedgEnV.js +0 -1235
- package/dist/vue-ui-sparkstackbar-DGQcpWK4.js +0 -738
- package/dist/vue-ui-stackbar-D0qmFn5Y.js +0 -2355
- package/dist/vue-ui-stackline-BBtEVl9V.js +0 -2469
- package/dist/vue-ui-strip-plot-CkU-nCt4.js +0 -1740
- package/dist/vue-ui-waffle-D6_cGi1-.js +0 -1621
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import { t as e } from "./rolldown-runtime-Dy4uBu1J.js";
|
|
2
|
-
import { $ as t, Ct as n, D as r, Ft as i, K as a, Lt as o, Mt as s, Pt as c, S as l, Ut as u, Wt as ee, X as d, Yt as te,
|
|
2
|
+
import { $ as t, Ct as n, D as r, Ft as i, K as a, Lt as o, Mt as s, Pt as c, S as l, Ut as u, Wt as ee, X as d, Yt as te, Z as f, Zt as ne, b as re, f as p, h as ie, ht as ae, i as m, j as oe, nt as se, ot as ce, p as h, q as le, s as ue, st as de, t as fe, tt as pe, w as me } from "./lib-Dql7cqyA.js";
|
|
3
3
|
import { n as he, t as ge } from "./useHints-Dq_w2E8B.js";
|
|
4
4
|
import { t as _e } from "./useConfig-D32D002m.js";
|
|
5
|
-
import { t as ve } from "./usePrinter-
|
|
6
|
-
import { n as ye, t as be } from "./BaseScanner-
|
|
5
|
+
import { t as ve } from "./usePrinter-hohanNCX.js";
|
|
6
|
+
import { n as ye, t as be } from "./BaseScanner-Dzc8VT3j.js";
|
|
7
7
|
import { t as xe } from "./useNestedProp-Chvyfpl-.js";
|
|
8
8
|
import { t as Se } from "./useThemeCheck-C43Tcqmk.js";
|
|
9
9
|
import { t as Ce } from "./useChartExport-iwOqiIWX.js";
|
|
10
|
-
import { t as we } from "./img-
|
|
10
|
+
import { t as we } from "./img-BkMKbWsI.js";
|
|
11
11
|
import { n as Te } from "./Title-CPHi-evi.js";
|
|
12
12
|
import { t as Ee } from "./Shape-CIqU-p2F.js";
|
|
13
13
|
import { t as De } from "./_plugin-vue_export-helper-B3ysoDQm.js";
|
|
@@ -20,19 +20,19 @@ import { t as Pe } from "./useChartAccessibility-DYqac8yF.js";
|
|
|
20
20
|
import { n as Fe, t as Ie } from "./labelUtils-BXX2NzRe.js";
|
|
21
21
|
import { t as Le } from "./vue_ui_donut-BDGqG07h.js";
|
|
22
22
|
import { t as Re } from "./Legend-X4kF4PvW.js";
|
|
23
|
-
import { Fragment as
|
|
23
|
+
import { Fragment as g, Teleport as ze, computed as _, createBlock as v, createCommentVNode as y, createElementBlock as b, createElementVNode as x, createSlots as Be, createTextVNode as Ve, createVNode as He, defineAsyncComponent as Ue, guardReactiveProps as S, mergeProps as We, nextTick as Ge, normalizeClass as Ke, normalizeProps as C, normalizeStyle as w, onBeforeUnmount as qe, onMounted as Je, openBlock as T, ref as E, renderList as D, renderSlot as O, resolveDynamicComponent as Ye, shallowRef as Xe, toDisplayString as k, toRefs as Ze, unref as A, useSlots as Qe, vShow as $e, watch as et, withCtx as j, withDirectives as tt } from "vue";
|
|
24
24
|
//#region src/useSmallArcLayouts.js
|
|
25
25
|
function nt(e) {
|
|
26
26
|
let { FINAL_CONFIG: t, noGhostDonut: n, svg: r, padding: i, labels_inline_fontSize: a, minSize: o, findArcMidpoint: s, calcMarkerOffsetX: c, calcMarkerOffsetY: l, animatingIndex: u, segregated: ee, isSmallArc: d } = e;
|
|
27
|
-
return { smallArcLayoutsClassic:
|
|
27
|
+
return { smallArcLayoutsClassic: _(() => {
|
|
28
28
|
if (t.value.type !== "classic") return {};
|
|
29
29
|
let e = {}, te = n.value || [];
|
|
30
30
|
if (!te.length) return e;
|
|
31
|
-
let f = r.value.width / 2, ne = r.value.height / 2,
|
|
32
|
-
function
|
|
31
|
+
let f = r.value.width / 2, ne = r.value.height / 2, re = i.value.top + 16, p = r.value.height - i.value.bottom - 16, ie = a.value, ae = ie / 3, m = ie * 1.5, oe = f - (o.value + 6), se = f + (o.value + 6), ce = !!t.value.style.chart.layout.curvedMarkers;
|
|
32
|
+
function h({ midX: e, midY: t, bandX: n, bandY: r }) {
|
|
33
33
|
if (!ce) return `M ${e} ${t} L ${e} ${r} L ${n} ${r}`;
|
|
34
34
|
let i = n < f ? -1 : 1, a = n - e, o = r - t, s = Math.sqrt(a * a + o * o) || 1, c = e - f, l = t - ne, u = Math.sqrt(c * c + l * l) || 1, ee = c / u, d = l / u, te = u + 9;
|
|
35
|
-
function
|
|
35
|
+
function re({ x: e, y: t }) {
|
|
36
36
|
let n = e - f, r = t - ne, i = Math.sqrt(n * n + r * r) || 1;
|
|
37
37
|
if (i >= te) return {
|
|
38
38
|
x: e,
|
|
@@ -45,34 +45,34 @@ function nt(e) {
|
|
|
45
45
|
};
|
|
46
46
|
}
|
|
47
47
|
if (s < 56) {
|
|
48
|
-
let i = a / s, c = -(o / s), l = i, u = (e + n) * .5, te = (t + r) * .5,
|
|
49
|
-
(
|
|
50
|
-
let se = .78, ce = e + a * se,
|
|
51
|
-
|
|
52
|
-
let
|
|
53
|
-
x: ce + c *
|
|
54
|
-
y:
|
|
48
|
+
let i = a / s, c = -(o / s), l = i, u = (e + n) * .5, te = (t + r) * .5, p = u + c, ie = te + l, ae = (p - f) * (p - f) + (ie - ne) * (ie - ne), m = u - c, oe = te - l;
|
|
49
|
+
(m - f) * (m - f) + (oe - ne) * (oe - ne) > ae && (c = -c, l = -l);
|
|
50
|
+
let se = .78, ce = e + a * se, h = t + o * se, le = Math.max(0, Math.min(1, (s - 18) / 44)), ue = le * le * (3 - 2 * le), de = 2.5 + ue * 4, fe = 1 + ue * 2.5;
|
|
51
|
+
de *= .9;
|
|
52
|
+
let pe = re({
|
|
53
|
+
x: ce + c * de + ee * fe,
|
|
54
|
+
y: h + l * de + d * fe
|
|
55
55
|
});
|
|
56
|
-
return `M ${e} ${t} Q ${
|
|
56
|
+
return `M ${e} ${t} Q ${pe.x} ${pe.y} ${n} ${r}`;
|
|
57
57
|
}
|
|
58
|
-
let
|
|
59
|
-
|
|
58
|
+
let p = s * .34;
|
|
59
|
+
p < 20 && (p = 20), p > 46 && (p = 46);
|
|
60
60
|
let ie = s * .46;
|
|
61
61
|
ie < 22 && (ie = 22), ie > 70 && (ie = 70);
|
|
62
|
-
let
|
|
63
|
-
x: e + ee *
|
|
64
|
-
y: t + d *
|
|
65
|
-
},
|
|
66
|
-
x: n - i * Math.min(ie, Math.abs(
|
|
62
|
+
let ae = {
|
|
63
|
+
x: e + ee * p,
|
|
64
|
+
y: t + d * p
|
|
65
|
+
}, m = f + i * Math.max(Math.abs(n - f), te), oe = {
|
|
66
|
+
x: n - i * Math.min(ie, Math.abs(m - n) * .75),
|
|
67
67
|
y: r
|
|
68
|
-
}, se =
|
|
69
|
-
return `M ${e} ${t} C ${se.x} ${se.y} ${
|
|
68
|
+
}, se = re(ae), h = re(oe);
|
|
69
|
+
return `M ${e} ${t} C ${se.x} ${se.y} ${h.x} ${h.y} ${n} ${r}`;
|
|
70
70
|
}
|
|
71
|
-
function
|
|
71
|
+
function le(e) {
|
|
72
72
|
let t = String(e ?? "").split(/\n/g), n = Math.max(0, t.length - 1) * (ie * 1.2);
|
|
73
|
-
return
|
|
73
|
+
return m + n;
|
|
74
74
|
}
|
|
75
|
-
function
|
|
75
|
+
function ue({ arc: e, index: t }) {
|
|
76
76
|
let { x: n, y: r } = s(e.path);
|
|
77
77
|
return {
|
|
78
78
|
arc: e,
|
|
@@ -81,47 +81,47 @@ function nt(e) {
|
|
|
81
81
|
midY: r,
|
|
82
82
|
inlineMarkerX: c(e).x,
|
|
83
83
|
inlineMarkerY: l(e) - 3.5,
|
|
84
|
-
labelHeight:
|
|
84
|
+
labelHeight: le(e.name)
|
|
85
85
|
};
|
|
86
86
|
}
|
|
87
|
-
function
|
|
87
|
+
function de(e) {
|
|
88
88
|
let { arc: t } = e, n = t.seriesIndex ?? 0;
|
|
89
89
|
return u.value === n || ee.value.includes(n) ? !1 : d(t, n);
|
|
90
90
|
}
|
|
91
|
-
function
|
|
91
|
+
function fe(e) {
|
|
92
92
|
let t = e.inlineMarkerY < ne, n = e.inlineMarkerX < f;
|
|
93
93
|
return t && n ? "TL" : t && !n ? "TR" : !t && n ? "BL" : "BR";
|
|
94
94
|
}
|
|
95
|
-
function
|
|
95
|
+
function pe(e, t) {
|
|
96
96
|
if (t.startsWith("T")) {
|
|
97
97
|
e.sort((e, t) => e.inlineMarkerY - t.inlineMarkerY || e.index - t.index);
|
|
98
98
|
return;
|
|
99
99
|
}
|
|
100
100
|
e.sort((e, t) => t.inlineMarkerY - e.inlineMarkerY || e.index - t.index);
|
|
101
101
|
}
|
|
102
|
-
function
|
|
102
|
+
function me({ side: e, markerX: t, markerY: n, labelY: r, connectorPath: i }) {
|
|
103
103
|
return {
|
|
104
104
|
side: e,
|
|
105
105
|
labelX: e === "left" ? t - 8 : t + 8,
|
|
106
|
-
labelY: r +
|
|
106
|
+
labelY: r + ae,
|
|
107
107
|
textAnchor: e === "left" ? "end" : "start",
|
|
108
108
|
markerX: t,
|
|
109
109
|
markerY: n,
|
|
110
110
|
connectorPath: i
|
|
111
111
|
};
|
|
112
112
|
}
|
|
113
|
-
function
|
|
113
|
+
function he({ candidateList: t, side: n, bandMarkerX: r, startY: i, direction: a }) {
|
|
114
114
|
let o = i;
|
|
115
115
|
t.forEach((t) => {
|
|
116
116
|
let { index: i, midX: s, midY: c, labelHeight: l } = t, u;
|
|
117
117
|
a === "down" ? (u = o, o += l) : (o -= l, u = o);
|
|
118
|
-
let ee = u, d =
|
|
118
|
+
let ee = u, d = h({
|
|
119
119
|
midX: s,
|
|
120
120
|
midY: c,
|
|
121
121
|
bandX: r,
|
|
122
122
|
bandY: ee
|
|
123
123
|
});
|
|
124
|
-
e[i] =
|
|
124
|
+
e[i] = me({
|
|
125
125
|
side: n,
|
|
126
126
|
markerX: r,
|
|
127
127
|
markerY: ee,
|
|
@@ -130,42 +130,42 @@ function nt(e) {
|
|
|
130
130
|
});
|
|
131
131
|
});
|
|
132
132
|
}
|
|
133
|
-
let
|
|
133
|
+
let ge = te.map((e, t) => ue({
|
|
134
134
|
arc: e,
|
|
135
135
|
index: t
|
|
136
|
-
})).filter(
|
|
136
|
+
})).filter(de), _e = {
|
|
137
137
|
TL: [],
|
|
138
138
|
TR: [],
|
|
139
139
|
BL: [],
|
|
140
140
|
BR: []
|
|
141
141
|
};
|
|
142
|
-
return
|
|
143
|
-
|
|
144
|
-
}), Object.keys(
|
|
145
|
-
|
|
146
|
-
}),
|
|
147
|
-
candidateList:
|
|
142
|
+
return ge.forEach((e) => {
|
|
143
|
+
_e[fe(e)].push(e);
|
|
144
|
+
}), Object.keys(_e).forEach((e) => {
|
|
145
|
+
pe(_e[e], e);
|
|
146
|
+
}), he({
|
|
147
|
+
candidateList: _e.TL,
|
|
148
148
|
side: "left",
|
|
149
149
|
bandMarkerX: oe,
|
|
150
|
-
startY:
|
|
150
|
+
startY: re,
|
|
151
151
|
direction: "down"
|
|
152
|
-
}),
|
|
153
|
-
candidateList:
|
|
152
|
+
}), he({
|
|
153
|
+
candidateList: _e.TR,
|
|
154
154
|
side: "right",
|
|
155
155
|
bandMarkerX: se,
|
|
156
|
-
startY:
|
|
156
|
+
startY: re,
|
|
157
157
|
direction: "down"
|
|
158
|
-
}),
|
|
159
|
-
candidateList:
|
|
158
|
+
}), _e.BL.length > 1 && he({
|
|
159
|
+
candidateList: _e.BL,
|
|
160
160
|
side: "left",
|
|
161
161
|
bandMarkerX: oe,
|
|
162
|
-
startY:
|
|
162
|
+
startY: p,
|
|
163
163
|
direction: "up"
|
|
164
|
-
}),
|
|
165
|
-
candidateList:
|
|
164
|
+
}), _e.BR.length > 1 && he({
|
|
165
|
+
candidateList: _e.BR,
|
|
166
166
|
side: "right",
|
|
167
167
|
bandMarkerX: se,
|
|
168
|
-
startY:
|
|
168
|
+
startY: p,
|
|
169
169
|
direction: "up"
|
|
170
170
|
}), e;
|
|
171
171
|
}) };
|
|
@@ -401,29 +401,29 @@ var rt = /* @__PURE__ */ e({ default: () => vn }), it = ["id"], at = ["id"], ot
|
|
|
401
401
|
"copyAlt"
|
|
402
402
|
],
|
|
403
403
|
setup(e, { expose: De, emit: rt }) {
|
|
404
|
-
let vn = Ue(() => import("./Tooltip-hhrkQ3Lk.js")), yn = Ue(() => import("./BaseIcon-D8R6_sKH.js").then((e) => e.n)), bn = Ue(() => import("./vue-ui-accordion-DmkL8A59.js").then((e) => e.n)), xn = Ue(() => import("./DataTable-oiM9uWrQ.js")), Sn = Ue(() => import("./PenAndPaper-
|
|
404
|
+
let vn = Ue(() => import("./Tooltip-hhrkQ3Lk.js")), yn = Ue(() => import("./BaseIcon-D8R6_sKH.js").then((e) => e.n)), bn = Ue(() => import("./vue-ui-accordion-DmkL8A59.js").then((e) => e.n)), xn = Ue(() => import("./DataTable-oiM9uWrQ.js")), Sn = Ue(() => import("./PenAndPaper-Cd3nItcO.js").then((e) => e.t)), Cn = Ue(() => import("./UserOptions-qo_Tsqci.js").then((e) => e.n)), wn = Ue(() => import("./PackageVersion-CZZayD-D.js").then((e) => e.t)), Tn = Ue(() => import("./BaseDraggableDialog-Gm4Q30j0.js").then((e) => e.n)), { vue_ui_donut: En } = _e(), { isThemeValid: Dn, warnInvalidTheme: On } = Se(), kn = Qe(), M = e, An = _({
|
|
405
405
|
get() {
|
|
406
|
-
return !!
|
|
406
|
+
return !!M.dataset && M.dataset.length;
|
|
407
407
|
},
|
|
408
408
|
set(e) {
|
|
409
409
|
return e;
|
|
410
410
|
}
|
|
411
|
-
}),
|
|
411
|
+
}), jn = Xe(null), Mn = E(null), Nn = E(null), Pn = E(null), Fn = Xe(null), In = Xe(null), Ln = Xe(null), Rn = Xe(null), zn = Xe(null), Bn = Xe(null), Vn = E(0), Hn = E(0), Un = E(0), Wn = E(!1), Gn = E(null), Kn = E(null), qn = E(null), Jn = E({
|
|
412
412
|
x: 0,
|
|
413
413
|
y: 0
|
|
414
|
-
}),
|
|
414
|
+
}), Yn = E("pointer"), Xn = E(!1), Zn = _({
|
|
415
415
|
get: () => I.value.style.chart.layout.labels.percentage.fontSize,
|
|
416
416
|
set: (e) => e
|
|
417
|
-
}), N =
|
|
417
|
+
}), N = _({
|
|
418
418
|
get: () => I.value.style.chart.layout.labels.name.fontSize,
|
|
419
419
|
set: (e) => e
|
|
420
|
-
}),
|
|
420
|
+
}), Qn = _({
|
|
421
421
|
get: () => I.value.style.chart.layout.labels.dataLabels.smallArcClusterFontSize,
|
|
422
422
|
set: (e) => e
|
|
423
|
-
}),
|
|
424
|
-
|
|
425
|
-
|
|
426
|
-
let e = I.value, t =
|
|
423
|
+
}), $n = !1, er = () => {
|
|
424
|
+
I.value.autoSize && !$n && ($n = !0, requestAnimationFrame(() => {
|
|
425
|
+
$n = !1;
|
|
426
|
+
let e = I.value, t = Mn.value, n = Sr.value;
|
|
427
427
|
if (!e.autoSize || !t || !n) return;
|
|
428
428
|
let [r, i, a, o] = n.getAttribute("viewBox").split(" ").map(Number), s = {
|
|
429
429
|
x: r,
|
|
@@ -435,7 +435,7 @@ var rt = /* @__PURE__ */ e({ default: () => vn }), it = ["id"], at = ["id"], ot
|
|
|
435
435
|
selector: ".vue-data-ui-datalabel-value",
|
|
436
436
|
baseSize: L.value.percentage.fontSize,
|
|
437
437
|
minSize: L.value.percentage.minFontSize,
|
|
438
|
-
sizeRef:
|
|
438
|
+
sizeRef: Zn
|
|
439
439
|
},
|
|
440
440
|
{
|
|
441
441
|
selector: ".vue-data-ui-datalabel-name",
|
|
@@ -447,7 +447,7 @@ var rt = /* @__PURE__ */ e({ default: () => vn }), it = ["id"], at = ["id"], ot
|
|
|
447
447
|
selector: ".vue-data-ui-datalabel-inline",
|
|
448
448
|
baseSize: L.value.dataLabels.smallArcClusterFontSize,
|
|
449
449
|
minSize: L.value.name.minFontSize,
|
|
450
|
-
sizeRef:
|
|
450
|
+
sizeRef: Qn
|
|
451
451
|
}
|
|
452
452
|
];
|
|
453
453
|
c.map((e) => t.querySelectorAll(e.selector).length).reduce((e, t) => e + t, 0) !== 0 && c.forEach(({ selector: e, baseSize: n, minSize: r, sizeRef: i }) => {
|
|
@@ -465,83 +465,83 @@ var rt = /* @__PURE__ */ e({ default: () => vn }), it = ["id"], at = ["id"], ot
|
|
|
465
465
|
}));
|
|
466
466
|
};
|
|
467
467
|
Je(async () => {
|
|
468
|
-
|
|
468
|
+
Wn.value = !0, rr(), requestAnimationFrame(er);
|
|
469
469
|
});
|
|
470
|
-
let
|
|
470
|
+
let tr;
|
|
471
471
|
Je(() => {
|
|
472
|
-
|
|
472
|
+
jn.value && (tr = new ResizeObserver((e) => {
|
|
473
473
|
for (let t of e) {
|
|
474
474
|
let { width: e, height: n } = t.contentRect;
|
|
475
475
|
if (e > 0 && n > 0) {
|
|
476
|
-
|
|
476
|
+
er();
|
|
477
477
|
break;
|
|
478
478
|
}
|
|
479
479
|
}
|
|
480
|
-
}),
|
|
480
|
+
}), tr.observe(jn.value.parentElement));
|
|
481
481
|
}), qe(() => {
|
|
482
|
-
|
|
482
|
+
tr?.disconnect();
|
|
483
483
|
}), qe(() => {
|
|
484
|
-
|
|
484
|
+
Ln.value && (Rn.value && Ln.value.unobserve(Rn.value), Ln.value.disconnect());
|
|
485
485
|
});
|
|
486
|
-
let
|
|
487
|
-
function
|
|
488
|
-
if (c(
|
|
486
|
+
let nr = _(() => I.value.debug);
|
|
487
|
+
function rr() {
|
|
488
|
+
if (c(M.dataset) ? (se({
|
|
489
489
|
componentName: "VueUiDonut",
|
|
490
490
|
type: "dataset",
|
|
491
|
-
debug:
|
|
492
|
-
}), An.value = !1,
|
|
493
|
-
|
|
491
|
+
debug: nr.value
|
|
492
|
+
}), An.value = !1, pr.value = !0) : (M.dataset.forEach((e, t) => {
|
|
493
|
+
ae({
|
|
494
494
|
datasetObject: e,
|
|
495
495
|
requiredAttributes: ["name", "values"]
|
|
496
496
|
}).forEach((e) => {
|
|
497
|
-
|
|
497
|
+
se({
|
|
498
498
|
componentName: "VueUiDonut",
|
|
499
499
|
type: "datasetSerieAttribute",
|
|
500
500
|
property: e,
|
|
501
501
|
index: t,
|
|
502
|
-
debug:
|
|
503
|
-
}), An.value = !1,
|
|
502
|
+
debug: nr.value
|
|
503
|
+
}), An.value = !1, pr.value = !0;
|
|
504
504
|
});
|
|
505
|
-
}),
|
|
506
|
-
(!e.name || e.name === "") &&
|
|
505
|
+
}), nr.value && M.dataset.forEach((e, t) => {
|
|
506
|
+
(!e.name || e.name === "") && se({
|
|
507
507
|
componentName: "VueUiDonut",
|
|
508
508
|
type: "datasetAttributeEmpty",
|
|
509
509
|
property: "name",
|
|
510
510
|
index: t
|
|
511
511
|
});
|
|
512
|
-
})), c(
|
|
512
|
+
})), c(M.dataset) || (pr.value = I.value.loading), I.value.responsive) {
|
|
513
513
|
let e = Oe(() => {
|
|
514
514
|
let { width: e, height: t } = ke({
|
|
515
|
-
chart:
|
|
516
|
-
title: I.value.style.chart.title.text ?
|
|
517
|
-
legend: I.value.style.chart.legend.show ?
|
|
518
|
-
source:
|
|
519
|
-
noTitle:
|
|
520
|
-
padding: I.value.autoSize ? void 0 :
|
|
515
|
+
chart: jn.value,
|
|
516
|
+
title: I.value.style.chart.title.text ? Fn.value : null,
|
|
517
|
+
legend: I.value.style.chart.legend.show ? In.value : null,
|
|
518
|
+
source: zn.value,
|
|
519
|
+
noTitle: Bn.value,
|
|
520
|
+
padding: I.value.autoSize ? void 0 : Dr.value
|
|
521
521
|
});
|
|
522
522
|
requestAnimationFrame(() => {
|
|
523
|
-
|
|
523
|
+
H.value.width = e, H.value.height = t, er();
|
|
524
524
|
});
|
|
525
525
|
});
|
|
526
|
-
|
|
526
|
+
Ln.value && (Rn.value && Ln.value.unobserve(Rn.value), Ln.value.disconnect()), Ln.value = new ResizeObserver(e), Rn.value = jn.value.parentNode, Ln.value.observe(Rn.value);
|
|
527
527
|
}
|
|
528
528
|
}
|
|
529
|
-
let P =
|
|
530
|
-
function
|
|
529
|
+
let P = E(le()), ir = E(!1), ar = E(""), F = E(null), or = E(0);
|
|
530
|
+
function sr() {
|
|
531
531
|
let e = xe({
|
|
532
|
-
userConfig:
|
|
532
|
+
userConfig: M.config,
|
|
533
533
|
defaultConfig: En
|
|
534
534
|
}), t = {}, n = e.theme;
|
|
535
535
|
if (!n) t = e;
|
|
536
536
|
else if (!Dn.value(e)) On(e), t = e;
|
|
537
537
|
else {
|
|
538
538
|
let r = xe({
|
|
539
|
-
userConfig: Le[n] ||
|
|
539
|
+
userConfig: Le[n] || M.config,
|
|
540
540
|
defaultConfig: e
|
|
541
541
|
});
|
|
542
542
|
t = {
|
|
543
543
|
...xe({
|
|
544
|
-
userConfig:
|
|
544
|
+
userConfig: M.config,
|
|
545
545
|
defaultConfig: r
|
|
546
546
|
}),
|
|
547
547
|
customPalette: e.customPalette.length ? e.customPalette : te[n] || o
|
|
@@ -549,10 +549,10 @@ var rt = /* @__PURE__ */ e({ default: () => vn }), it = ["id"], at = ["id"], ot
|
|
|
549
549
|
}
|
|
550
550
|
return t;
|
|
551
551
|
}
|
|
552
|
-
let I =
|
|
552
|
+
let I = E(sr()), L = _(() => I.value.style.chart.layout.labels), R = _(() => I.value.style.chart.layout.donut), cr = _(() => I.value.style.chart.layout), z = _(() => I.value.style.chart);
|
|
553
553
|
he({
|
|
554
554
|
config: () => I.value,
|
|
555
|
-
dataset: () =>
|
|
555
|
+
dataset: () => M.dataset,
|
|
556
556
|
component: "VueUiDonut",
|
|
557
557
|
rules: [
|
|
558
558
|
ge.singleSeries,
|
|
@@ -571,7 +571,7 @@ var rt = /* @__PURE__ */ e({ default: () => vn }), it = ["id"], at = ["id"], ot
|
|
|
571
571
|
}
|
|
572
572
|
]
|
|
573
573
|
});
|
|
574
|
-
let
|
|
574
|
+
let lr = _(() => I.value.userOptions.useCursorPointer), ur = _(() => ne({
|
|
575
575
|
defaultConfig: {
|
|
576
576
|
useCssAnimation: !1,
|
|
577
577
|
table: { show: !1 },
|
|
@@ -599,11 +599,11 @@ var rt = /* @__PURE__ */ e({ default: () => vn }), it = ["id"], at = ["id"], ot
|
|
|
599
599
|
} }
|
|
600
600
|
},
|
|
601
601
|
userConfig: I.value.skeletonConfig ?? {}
|
|
602
|
-
})), { loading:
|
|
603
|
-
...Ze(
|
|
602
|
+
})), { loading: dr, FINAL_DATASET: fr, manualLoading: pr, skeletonDataset: mr } = ye({
|
|
603
|
+
...Ze(M),
|
|
604
604
|
FINAL_CONFIG: I,
|
|
605
|
-
prepareConfig:
|
|
606
|
-
skeletonDataset:
|
|
605
|
+
prepareConfig: sr,
|
|
606
|
+
skeletonDataset: M.config?.skeletonDataset ?? [
|
|
607
607
|
{
|
|
608
608
|
name: "",
|
|
609
609
|
values: [3],
|
|
@@ -620,37 +620,49 @@ var rt = /* @__PURE__ */ e({ default: () => vn }), it = ["id"], at = ["id"], ot
|
|
|
620
620
|
color: "#CACACA"
|
|
621
621
|
}
|
|
622
622
|
],
|
|
623
|
-
skeletonConfig:
|
|
623
|
+
skeletonConfig: ne({
|
|
624
624
|
defaultConfig: I.value,
|
|
625
|
-
userConfig:
|
|
625
|
+
userConfig: ur.value
|
|
626
626
|
})
|
|
627
|
-
}), B =
|
|
628
|
-
function
|
|
627
|
+
}), B = E(!0), hr = E(0), gr = E(!1), _r = null;
|
|
628
|
+
function vr(e = 1e3) {
|
|
629
629
|
return new Promise((t) => {
|
|
630
630
|
let n = performance.now();
|
|
631
631
|
function r(i) {
|
|
632
632
|
let a = i - n, o = Math.min(a / e, 1), s = pe(o);
|
|
633
|
-
|
|
633
|
+
hr.value = s, o < 1 ? _r = requestAnimationFrame(r) : (hr.value = 1, _r = null, t());
|
|
634
634
|
}
|
|
635
|
-
|
|
635
|
+
_r !== null && cancelAnimationFrame(_r), hr.value = 0, _r = requestAnimationFrame(r);
|
|
636
636
|
});
|
|
637
637
|
}
|
|
638
|
-
et(() =>
|
|
639
|
-
if (e ||
|
|
640
|
-
let t =
|
|
641
|
-
!t && n ? (
|
|
638
|
+
et(() => dr.value, async (e) => {
|
|
639
|
+
if (e || gr.value) return;
|
|
640
|
+
let t = fr.value === mr, n = I.value.startAnimation?.show;
|
|
641
|
+
!t && n ? (gr.value = !0, await vr(I.value.startAnimation.durationMs || 1e3)) : hr.value = 1, B.value = !1;
|
|
642
642
|
}, { immediate: !0 });
|
|
643
|
-
let { userOptionsVisible:
|
|
644
|
-
function
|
|
645
|
-
|
|
643
|
+
let { userOptionsVisible: yr, setUserOptionsVisibility: br, keepUserOptionState: xr } = Ne({ config: I.value }), { svgRef: Sr } = Pe({ config: z.value.title });
|
|
644
|
+
function Cr() {
|
|
645
|
+
br(!0);
|
|
646
|
+
}
|
|
647
|
+
function wr() {
|
|
648
|
+
br(!1);
|
|
646
649
|
}
|
|
647
|
-
function
|
|
648
|
-
|
|
650
|
+
function Tr(e) {
|
|
651
|
+
let t = f(e);
|
|
652
|
+
return t?.style?.chart && delete t.style.chart.tooltip, JSON.stringify(t);
|
|
649
653
|
}
|
|
650
|
-
|
|
651
|
-
|
|
654
|
+
let Er = Tr(M.config);
|
|
655
|
+
et(() => M.config, (e, t) => {
|
|
656
|
+
let n = Tr(e), r = n !== Er;
|
|
657
|
+
Er = n;
|
|
658
|
+
let i = sr();
|
|
659
|
+
if (!r) {
|
|
660
|
+
I.value.style.chart.tooltip = i.style.chart.tooltip, V.value.showTooltip = I.value.style.chart.tooltip.show;
|
|
661
|
+
return;
|
|
662
|
+
}
|
|
663
|
+
dr.value || (I.value = i), yr.value = !I.value.userOptions.showOnChartHover, rr(), Vn.value += 1, Hn.value += 1, Un.value += 1, V.value.dataLabels.show = L.value.dataLabels.show, V.value.showTable = I.value.table.show, V.value.showTooltip = z.value.tooltip.show, H.value.height = z.value.height, H.value.width = z.value.width;
|
|
652
664
|
}, { deep: !0 });
|
|
653
|
-
let
|
|
665
|
+
let Dr = _(() => {
|
|
654
666
|
let { top: e, right: t, bottom: n, left: r } = z.value.padding;
|
|
655
667
|
return {
|
|
656
668
|
css: `padding:${e}px ${t}px ${n}px ${r}px`,
|
|
@@ -659,36 +671,36 @@ var rt = /* @__PURE__ */ e({ default: () => vn }), it = ["id"], at = ["id"], ot
|
|
|
659
671
|
bottom: n,
|
|
660
672
|
left: r
|
|
661
673
|
};
|
|
662
|
-
}), { isPrinting:
|
|
674
|
+
}), { isPrinting: Or, isImaging: kr, generatePdf: Ar, generateImage: jr } = ve({
|
|
663
675
|
elementId: `donut__${P.value}`,
|
|
664
676
|
fileName: z.value.title.text || "vue-ui-donut",
|
|
665
677
|
options: I.value.userOptions.print
|
|
666
|
-
}),
|
|
678
|
+
}), Mr = _(() => I.value.userOptions.show && !z.value.title.text), Nr = _(() => me(I.value.customPalette)), V = E({
|
|
667
679
|
dataLabels: { show: L.value.dataLabels.show },
|
|
668
680
|
showTable: I.value.table.show,
|
|
669
681
|
showTooltip: z.value.tooltip.show
|
|
670
682
|
});
|
|
671
683
|
et(I, () => {
|
|
672
|
-
|
|
684
|
+
V.value = {
|
|
673
685
|
dataLabels: { show: L.value.dataLabels.show },
|
|
674
686
|
showTable: I.value.table.show,
|
|
675
687
|
showTooltip: z.value.tooltip.show
|
|
676
688
|
};
|
|
677
689
|
}, { immediate: !0 });
|
|
678
|
-
let
|
|
690
|
+
let H = E({
|
|
679
691
|
height: z.value.height,
|
|
680
692
|
width: z.value.width
|
|
681
|
-
}),
|
|
682
|
-
if (I.value.pie) return
|
|
683
|
-
let e = R.value.strokeWidth / 512, t = Math.min(
|
|
693
|
+
}), Pr = _(() => {
|
|
694
|
+
if (I.value.pie) return K.value;
|
|
695
|
+
let e = R.value.strokeWidth / 512, t = Math.min(H.value.width, H.value.height) * e, n = t > K.value ? K.value : t;
|
|
684
696
|
return Math.max(n, 12 * (1 + e));
|
|
685
|
-
}),
|
|
697
|
+
}), Fr = rt, U = _(() => fr.value.sort((e, t) => {
|
|
686
698
|
let n = Array.isArray(e.values) ? e.values.reduce((e, t) => e + t, 0) : e.value ?? 0, r = Array.isArray(t.values) ? t.values.reduce((e, t) => e + t, 0) : t.value ?? 0;
|
|
687
699
|
return e.ghost && !t.ghost ? 1 : t.ghost && !e.ghost ? -1 : r - n;
|
|
688
700
|
}).map((e, t) => ({
|
|
689
701
|
name: e.name,
|
|
690
|
-
color: l(e.color) ||
|
|
691
|
-
value:
|
|
702
|
+
color: l(e.color) || Nr.value[t] || o[t] || o[t % o.length],
|
|
703
|
+
value: re(e.values.reduce((e, t) => e + t, 0)),
|
|
692
704
|
absoluteValues: e.values,
|
|
693
705
|
comment: e.comment || "",
|
|
694
706
|
patternIndex: t,
|
|
@@ -696,29 +708,29 @@ var rt = /* @__PURE__ */ e({ default: () => vn }), it = ["id"], at = ["id"], ot
|
|
|
696
708
|
ghost: !1,
|
|
697
709
|
pattern: `pattern_${P.value}_${t}`
|
|
698
710
|
})));
|
|
699
|
-
et(() =>
|
|
700
|
-
Array.isArray(e) && e.length > 0 && (
|
|
711
|
+
et(() => M.dataset, (e) => {
|
|
712
|
+
Array.isArray(e) && e.length > 0 && (pr.value = !1);
|
|
701
713
|
}, { immediate: !0 });
|
|
702
|
-
let
|
|
703
|
-
et(() =>
|
|
704
|
-
|
|
714
|
+
let W = Xe(U.value);
|
|
715
|
+
et(() => U.value, (e) => {
|
|
716
|
+
W.value = e, requestAnimationFrame(er);
|
|
705
717
|
});
|
|
706
|
-
function
|
|
707
|
-
return
|
|
718
|
+
function Ir() {
|
|
719
|
+
return U.value.map((e) => ({
|
|
708
720
|
name: e.name,
|
|
709
721
|
color: e.color,
|
|
710
722
|
value: e.value
|
|
711
723
|
}));
|
|
712
724
|
}
|
|
713
|
-
let
|
|
714
|
-
function
|
|
715
|
-
|
|
725
|
+
let G = E([]), Lr = E(!1), Rr = E(null);
|
|
726
|
+
function zr() {
|
|
727
|
+
Fr("selectLegend", qr.value.map((e) => ({
|
|
716
728
|
name: e.name,
|
|
717
729
|
color: e.color,
|
|
718
730
|
value: e.value
|
|
719
731
|
})));
|
|
720
732
|
}
|
|
721
|
-
function
|
|
733
|
+
function Br({ from: e, to: t, duration: n, onUpdate: r, onDone: i, easing: a = pe }) {
|
|
722
734
|
let o = performance.now();
|
|
723
735
|
function s(c) {
|
|
724
736
|
let l = Math.min((c - o) / n, 1), u = a(l);
|
|
@@ -726,84 +738,84 @@ var rt = /* @__PURE__ */ e({ default: () => vn }), it = ["id"], at = ["id"], ot
|
|
|
726
738
|
}
|
|
727
739
|
requestAnimationFrame(s);
|
|
728
740
|
}
|
|
729
|
-
function
|
|
730
|
-
|
|
731
|
-
|
|
732
|
-
}),
|
|
741
|
+
function Vr() {
|
|
742
|
+
G.value.length ? G.value = [] : Jr.value.forEach((e, t) => {
|
|
743
|
+
G.value.push(t);
|
|
744
|
+
}), zr();
|
|
733
745
|
}
|
|
734
|
-
function
|
|
735
|
-
let t =
|
|
736
|
-
if (
|
|
737
|
-
|
|
746
|
+
function Hr(e) {
|
|
747
|
+
let t = U.value.find((t, n) => n === e), n = W.value.find((t, n) => n === e).value;
|
|
748
|
+
if (G.value.includes(e)) {
|
|
749
|
+
G.value = G.value.filter((t) => t !== e);
|
|
738
750
|
let r = t.value;
|
|
739
751
|
function i() {
|
|
740
|
-
|
|
752
|
+
W.value = W.value.map((t, n) => e === n ? {
|
|
741
753
|
...t,
|
|
742
754
|
value: r
|
|
743
|
-
} : t),
|
|
755
|
+
} : t), zr();
|
|
744
756
|
}
|
|
745
757
|
function a() {
|
|
746
|
-
|
|
758
|
+
Lr.value = !0, Rr.value = e, Br({
|
|
747
759
|
from: n,
|
|
748
760
|
to: r,
|
|
749
761
|
duration: I.value.serieToggleAnimation.durationMs,
|
|
750
762
|
onUpdate: (t, n) => {
|
|
751
|
-
|
|
763
|
+
W.value = W.value.map((n, r) => e === r ? {
|
|
752
764
|
...n,
|
|
753
765
|
value: t
|
|
754
|
-
} : n), requestAnimationFrame(
|
|
766
|
+
} : n), requestAnimationFrame(er);
|
|
755
767
|
},
|
|
756
768
|
onDone: () => {
|
|
757
|
-
i(),
|
|
769
|
+
i(), Lr.value = !1, Rr.value = null;
|
|
758
770
|
}
|
|
759
771
|
});
|
|
760
772
|
}
|
|
761
|
-
I.value.serieToggleAnimation.show && I.value.type === "classic" ? a() : (i(), requestAnimationFrame(
|
|
762
|
-
} else if (
|
|
773
|
+
I.value.serieToggleAnimation.show && I.value.type === "classic" ? a() : (i(), requestAnimationFrame(er));
|
|
774
|
+
} else if (G.value.length < U.value.length - 1) {
|
|
763
775
|
function t() {
|
|
764
|
-
|
|
776
|
+
G.value.push(e), W.value = W.value.map((t, n) => e === n ? {
|
|
765
777
|
...t,
|
|
766
778
|
value: 0
|
|
767
|
-
} : t),
|
|
779
|
+
} : t), zr();
|
|
768
780
|
}
|
|
769
781
|
function r() {
|
|
770
|
-
|
|
782
|
+
Lr.value = !0, Rr.value = e, Br({
|
|
771
783
|
from: n,
|
|
772
784
|
to: 0,
|
|
773
785
|
duration: I.value.serieToggleAnimation.durationMs,
|
|
774
786
|
onUpdate: (t, n) => {
|
|
775
|
-
|
|
787
|
+
W.value = W.value.map((n, r) => e === r ? {
|
|
776
788
|
...n,
|
|
777
789
|
value: t
|
|
778
|
-
} : n), requestAnimationFrame(
|
|
790
|
+
} : n), requestAnimationFrame(er);
|
|
779
791
|
},
|
|
780
792
|
onDone: () => {
|
|
781
|
-
t(), requestAnimationFrame(
|
|
793
|
+
t(), requestAnimationFrame(er), Lr.value = !1, Rr.value = null;
|
|
782
794
|
}
|
|
783
795
|
});
|
|
784
796
|
}
|
|
785
797
|
I.value.serieToggleAnimation.show && I.value.type === "classic" ? r() : t();
|
|
786
798
|
}
|
|
787
799
|
}
|
|
788
|
-
function
|
|
789
|
-
return
|
|
800
|
+
function Ur(e) {
|
|
801
|
+
return U.value.length ? U.value.find((t) => t.name === e) || (nr.value && console.warn(`VueUiDonut - Series name not found "${e}"`), null) : (nr.value && console.warn("VueUiDonut - There are no series to show."), null);
|
|
790
802
|
}
|
|
791
|
-
function
|
|
792
|
-
let t =
|
|
793
|
-
t !== null &&
|
|
803
|
+
function Wr(e) {
|
|
804
|
+
let t = Ur(e);
|
|
805
|
+
t !== null && G.value.includes(t.seriesIndex) && Hr(t.seriesIndex);
|
|
794
806
|
}
|
|
795
|
-
function
|
|
796
|
-
let t =
|
|
797
|
-
t !== null && (
|
|
807
|
+
function Gr(e) {
|
|
808
|
+
let t = Ur(e);
|
|
809
|
+
t !== null && (G.value.includes(t.seriesIndex) || Hr(t.seriesIndex));
|
|
798
810
|
}
|
|
799
|
-
let
|
|
800
|
-
if (B.value && !
|
|
801
|
-
let e =
|
|
811
|
+
let Kr = _(() => fr.value.reduce((e, t) => e + t.values.reduce((e, t) => e + t, 0), 0)), qr = _(() => {
|
|
812
|
+
if (B.value && !dr.value) {
|
|
813
|
+
let e = hr.value, t = U.value.map((t) => ({
|
|
802
814
|
...t,
|
|
803
815
|
value: t.value * e,
|
|
804
816
|
color: t.color,
|
|
805
817
|
ghost: !1
|
|
806
|
-
})), n =
|
|
818
|
+
})), n = Kr.value * (1 - e);
|
|
807
819
|
return n > 0 && t.push({
|
|
808
820
|
name: "__ghost__",
|
|
809
821
|
value: n,
|
|
@@ -811,20 +823,20 @@ var rt = /* @__PURE__ */ e({ default: () => vn }), it = ["id"], at = ["id"], ot
|
|
|
811
823
|
ghost: !0
|
|
812
824
|
}), t;
|
|
813
825
|
}
|
|
814
|
-
return
|
|
826
|
+
return W.value.forEach((e) => {
|
|
815
827
|
if ([null, void 0].includes(e.values)) return {
|
|
816
828
|
...e,
|
|
817
829
|
values: []
|
|
818
830
|
};
|
|
819
|
-
}),
|
|
831
|
+
}), W.value.map((e, t) => ({
|
|
820
832
|
...e,
|
|
821
833
|
seriesIndex: t
|
|
822
|
-
})).filter((e, t) => !
|
|
823
|
-
}),
|
|
824
|
-
let n = (e.values || []).reduce((e, t) => e + t, 0), r = n /
|
|
834
|
+
})).filter((e, t) => !G.value.includes(t));
|
|
835
|
+
}), Jr = _(() => fr.value.map((e, t) => {
|
|
836
|
+
let n = (e.values || []).reduce((e, t) => e + t, 0), r = n / fr.value.map((e) => (e.values || []).reduce((e, t) => e + t, 0)).reduce((e, t) => e + t, 0);
|
|
825
837
|
return {
|
|
826
838
|
name: e.name,
|
|
827
|
-
color: l(e.color) ||
|
|
839
|
+
color: l(e.color) || Nr.value[t] || o[t] || o[t % o.length],
|
|
828
840
|
value: n,
|
|
829
841
|
shape: "circle",
|
|
830
842
|
patternIndex: t,
|
|
@@ -839,35 +851,35 @@ var rt = /* @__PURE__ */ e({ default: () => vn }), it = ["id"], at = ["id"], ot
|
|
|
839
851
|
}), {
|
|
840
852
|
datapoint: e,
|
|
841
853
|
index: t
|
|
842
|
-
}), r = m(L.value.percentage.formatter,
|
|
843
|
-
v:
|
|
854
|
+
}), r = m(L.value.percentage.formatter, ai(e), d({
|
|
855
|
+
v: ai(e),
|
|
844
856
|
s: "%",
|
|
845
857
|
r: z.value.legend.roundingPercentage
|
|
846
|
-
})), i =
|
|
858
|
+
})), i = xi({
|
|
847
859
|
val: n,
|
|
848
|
-
percentage:
|
|
860
|
+
percentage: G.value.includes(t) ? `${bi(e.proportion * 100)}%` : r,
|
|
849
861
|
showVal: z.value.legend.showValue,
|
|
850
862
|
showPercentage: z.value.legend.showPercentage,
|
|
851
863
|
config: z.value.legend
|
|
852
864
|
});
|
|
853
865
|
return {
|
|
854
866
|
...e,
|
|
855
|
-
opacity:
|
|
856
|
-
segregate: () => !
|
|
857
|
-
isSegregated:
|
|
867
|
+
opacity: G.value.includes(t) ? .5 : 1,
|
|
868
|
+
segregate: () => !Lr.value && Hr(t),
|
|
869
|
+
isSegregated: G.value.includes(t),
|
|
858
870
|
display: `${e.name}${z.value.legend.showPercentage || z.value.legend.showValue ? ": " : ""}${i}`
|
|
859
871
|
};
|
|
860
|
-
})),
|
|
872
|
+
})), Yr = _(() => ({
|
|
861
873
|
cy: "donut-div-legend",
|
|
862
874
|
backgroundColor: z.value.legend.backgroundColor,
|
|
863
875
|
color: z.value.legend.color,
|
|
864
876
|
fontSize: z.value.legend.fontSize,
|
|
865
877
|
paddingBottom: 12,
|
|
866
878
|
fontWeight: z.value.legend.bold ? "bold" : ""
|
|
867
|
-
})),
|
|
868
|
-
let e = R.value.radiusRatio, t = Math.max(.1, Math.min(.50001, e)), n = Math.min(
|
|
879
|
+
})), K = _(() => {
|
|
880
|
+
let e = R.value.radiusRatio, t = Math.max(.1, Math.min(.50001, e)), n = Math.min(H.value.width * t, H.value.height * t);
|
|
869
881
|
return Math.max(12, n);
|
|
870
|
-
}),
|
|
882
|
+
}), q = _(() => s({ series: qr.value }, H.value.width / 2, H.value.height / 2, K.value, K.value, 1.99999, 2, 1, 360, 105.25, Pr.value)), Xr = _(() => Math.abs(qr.value.map((e) => e.value).reduce((e, t) => e + t, 0)) > 0), Zr = _(() => s({ series: [{
|
|
871
883
|
value: 1,
|
|
872
884
|
color: R.value.emptyFill,
|
|
873
885
|
name: "_",
|
|
@@ -875,105 +887,105 @@ var rt = /* @__PURE__ */ e({ default: () => vn }), it = ["id"], at = ["id"], ot
|
|
|
875
887
|
patternIndex: -1,
|
|
876
888
|
ghost: !1,
|
|
877
889
|
absoluteValues: [1]
|
|
878
|
-
}] },
|
|
879
|
-
let e = Math.max(...
|
|
880
|
-
return
|
|
890
|
+
}] }, H.value.width / 2, H.value.height / 2, K.value, K.value, 1.99999, 2, 1, 360, 105.25, Pr.value)), J = _(() => q.value.filter((e) => !e.ghost)), Y = _(() => {
|
|
891
|
+
let e = Math.max(...qr.value.map((e) => e.value)), t = qr.value.map((t) => t.value / e);
|
|
892
|
+
return oe({
|
|
881
893
|
series: t,
|
|
882
894
|
center: {
|
|
883
|
-
x:
|
|
884
|
-
y:
|
|
895
|
+
x: H.value.width / 2,
|
|
896
|
+
y: H.value.height / 2
|
|
885
897
|
},
|
|
886
|
-
maxRadius: Math.min(
|
|
898
|
+
maxRadius: Math.min(H.value.width, H.value.height) / 3,
|
|
887
899
|
hasGhost: B.value
|
|
888
900
|
});
|
|
889
901
|
});
|
|
890
|
-
function
|
|
891
|
-
return e.x >
|
|
902
|
+
function Qr(e) {
|
|
903
|
+
return e.x > H.value.width / 2 + 6 ? "start" : e.x < H.value.width / 2 - 6 ? "end" : "middle";
|
|
892
904
|
}
|
|
893
|
-
function
|
|
894
|
-
return e.middlePoint.y >
|
|
905
|
+
function $r(e) {
|
|
906
|
+
return e.middlePoint.y > H.value.height / 2 ? i({
|
|
895
907
|
initX: e.middlePoint.x,
|
|
896
908
|
initY: e.middlePoint.y,
|
|
897
909
|
offset: 100,
|
|
898
|
-
centerX:
|
|
899
|
-
centerY:
|
|
910
|
+
centerX: H.value.width / 2,
|
|
911
|
+
centerY: H.value.height / 2
|
|
900
912
|
}).y : i({
|
|
901
913
|
initX: e.middlePoint.x,
|
|
902
914
|
initY: e.middlePoint.y,
|
|
903
915
|
offset: 0,
|
|
904
|
-
centerX:
|
|
905
|
-
centerY:
|
|
916
|
+
centerX: H.value.width / 2,
|
|
917
|
+
centerY: H.value.height / 2
|
|
906
918
|
}).y - 100;
|
|
907
919
|
}
|
|
908
|
-
function
|
|
920
|
+
function X(e) {
|
|
909
921
|
return e.proportion * 100 > L.value.dataLabels.hideUnderValue;
|
|
910
922
|
}
|
|
911
|
-
function
|
|
912
|
-
let n = L.value.dataLabels.hideUnderValue, r = L.value.dataLabels.smallArcClusterThreshold, i = (
|
|
923
|
+
function ei(e, t) {
|
|
924
|
+
let n = L.value.dataLabels.hideUnderValue, r = L.value.dataLabels.smallArcClusterThreshold, i = (ri.value[t] ?? e.proportion ?? 0) * 100;
|
|
913
925
|
return i > n && i <= r;
|
|
914
926
|
}
|
|
915
|
-
let { smallArcLayoutsClassic:
|
|
927
|
+
let { smallArcLayoutsClassic: Z } = nt({
|
|
916
928
|
FINAL_CONFIG: I,
|
|
917
|
-
noGhostDonut:
|
|
918
|
-
svg:
|
|
919
|
-
padding:
|
|
920
|
-
labels_inline_fontSize:
|
|
921
|
-
minSize:
|
|
922
|
-
findArcMidpoint:
|
|
929
|
+
noGhostDonut: J,
|
|
930
|
+
svg: H,
|
|
931
|
+
padding: Dr,
|
|
932
|
+
labels_inline_fontSize: Qn,
|
|
933
|
+
minSize: K,
|
|
934
|
+
findArcMidpoint: ce,
|
|
923
935
|
calcMarkerOffsetX: p,
|
|
924
|
-
calcMarkerOffsetY:
|
|
925
|
-
animatingIndex:
|
|
926
|
-
segregated:
|
|
927
|
-
isSmallArc:
|
|
936
|
+
calcMarkerOffsetY: h,
|
|
937
|
+
animatingIndex: Rr,
|
|
938
|
+
segregated: G,
|
|
939
|
+
isSmallArc: ei
|
|
928
940
|
});
|
|
929
|
-
function
|
|
930
|
-
let n = e.value /
|
|
941
|
+
function ti(e, t) {
|
|
942
|
+
let n = e.value / ni(t);
|
|
931
943
|
return isNaN(n) ? 0 : m(L.value.percentage.formatter, n * 100, d({
|
|
932
944
|
v: n * 100,
|
|
933
945
|
s: "%",
|
|
934
946
|
r: L.value.percentage.rounding
|
|
935
947
|
}), { datapoint: e });
|
|
936
948
|
}
|
|
937
|
-
function
|
|
949
|
+
function ni(e) {
|
|
938
950
|
return [...e].map((e) => e.value).reduce((e, t) => e + t, 0);
|
|
939
951
|
}
|
|
940
|
-
let
|
|
941
|
-
let e =
|
|
942
|
-
return e <= 0 ? [] :
|
|
943
|
-
}),
|
|
944
|
-
function
|
|
945
|
-
return
|
|
952
|
+
let Q = _(() => qr.value.map((e) => e.value).reduce((e, t) => e + t, 0)), ri = _(() => {
|
|
953
|
+
let e = U.value.reduce((e, t) => e + t.value, 0);
|
|
954
|
+
return e <= 0 ? [] : U.value.map((t) => t.value / e);
|
|
955
|
+
}), ii = _(() => Q.value / qr.value.length);
|
|
956
|
+
function ai(e) {
|
|
957
|
+
return Lr.value ? e.proportion * 100 : e.value / Q.value * 100;
|
|
946
958
|
}
|
|
947
|
-
let
|
|
948
|
-
function
|
|
959
|
+
let oi = E(null), si = E(!1);
|
|
960
|
+
function ci({ datapoint: e, seriesIndex: t }) {
|
|
949
961
|
I.value.events.datapointLeave && I.value.events.datapointLeave({
|
|
950
962
|
datapoint: e,
|
|
951
963
|
seriesIndex: t
|
|
952
|
-
}),
|
|
964
|
+
}), ir.value = !1, F.value = null, qn.value = null, Yn.value = "pointer";
|
|
953
965
|
}
|
|
954
|
-
function
|
|
966
|
+
function $({ datapoint: e, relativeIndex: t, seriesIndex: r, show: i = !1, triggerMode: a = "pointer" }) {
|
|
955
967
|
I.value.events.datapointEnter && I.value.events.datapointEnter({
|
|
956
968
|
datapoint: e,
|
|
957
969
|
seriesIndex: r
|
|
958
|
-
}),
|
|
970
|
+
}), Yn.value = a, qn.value = t, oi.value = {
|
|
959
971
|
datapoint: e,
|
|
960
972
|
seriesIndex: r,
|
|
961
973
|
config: I.value,
|
|
962
|
-
series:
|
|
963
|
-
},
|
|
974
|
+
series: U.value
|
|
975
|
+
}, ir.value = i, F.value = t;
|
|
964
976
|
let o = "", s = z.value.tooltip.customFormat;
|
|
965
|
-
if (
|
|
977
|
+
if (si.value = !1, n(s)) try {
|
|
966
978
|
let t = s({
|
|
967
979
|
seriesIndex: r,
|
|
968
980
|
datapoint: e,
|
|
969
|
-
series:
|
|
981
|
+
series: U.value,
|
|
970
982
|
config: I.value
|
|
971
983
|
});
|
|
972
|
-
typeof t == "string" && (
|
|
984
|
+
typeof t == "string" && (ar.value = t, si.value = !0);
|
|
973
985
|
} catch {
|
|
974
|
-
console.warn("Custom format cannot be applied."),
|
|
986
|
+
console.warn("Custom format cannot be applied."), si.value = !1;
|
|
975
987
|
}
|
|
976
|
-
|
|
988
|
+
si.value || (o += `<div style="width:100%;text-align:center;border-bottom:1px solid ${z.value.tooltip.borderColor};padding-bottom:6px;margin-bottom:3px;">${e.name}</div>`, o += `<div style="display:flex;flex-direction:row;gap:6px;align-items:center;"><svg viewBox="0 0 60 60" height="14" width="14"><circle cx="30" cy="30" r="30" stroke="none" fill="${e.color}"/>${kn.pattern ? `<circle cx="30" cy="30" r="30" stroke="none" fill="url(#pattern_${P.value}_${r})"/>` : ""}</svg>`, o += `<b>${xi({
|
|
977
989
|
showVal: z.value.tooltip.showValue,
|
|
978
990
|
showPercentage: z.value.tooltip.showPercentage,
|
|
979
991
|
val: `<span>${m(L.value.value.formatter, e.value, d({
|
|
@@ -996,10 +1008,10 @@ var rt = /* @__PURE__ */ e({ default: () => vn }), it = ["id"], at = ["id"], ot
|
|
|
996
1008
|
seriesIndex: r
|
|
997
1009
|
}),
|
|
998
1010
|
config: z.value.tooltip
|
|
999
|
-
})}</b></div>`, z.value.comments.showInTooltip && e.comment && (o += `<div class="vue-data-ui-tooltip-comment" style="background:${e.color}20; padding: 6px; margin-bottom: 6px; margin-top:6px; border-left: 1px solid ${e.color}">${e.comment}</div>`),
|
|
1011
|
+
})}</b></div>`, z.value.comments.showInTooltip && e.comment && (o += `<div class="vue-data-ui-tooltip-comment" style="background:${e.color}20; padding: 6px; margin-bottom: 6px; margin-top:6px; border-left: 1px solid ${e.color}">${e.comment}</div>`), ar.value = `<div>${o}</div>`);
|
|
1000
1012
|
}
|
|
1001
|
-
function
|
|
1002
|
-
let n =
|
|
1013
|
+
function li(e, t) {
|
|
1014
|
+
let n = Z.value[t];
|
|
1003
1015
|
if (n) return {
|
|
1004
1016
|
textAnchor: n.textAnchor,
|
|
1005
1017
|
x: n.labelX,
|
|
@@ -1009,15 +1021,15 @@ var rt = /* @__PURE__ */ e({ default: () => vn }), it = ["id"], at = ["id"], ot
|
|
|
1009
1021
|
return {
|
|
1010
1022
|
textAnchor: r.anchor,
|
|
1011
1023
|
x: r.x,
|
|
1012
|
-
y:
|
|
1024
|
+
y: h(e)
|
|
1013
1025
|
};
|
|
1014
1026
|
}
|
|
1015
|
-
function
|
|
1016
|
-
let { textAnchor: r, x: i } =
|
|
1027
|
+
function ui(e, t, n) {
|
|
1028
|
+
let { textAnchor: r, x: i } = li(e, t), a = Si(e), o = `
|
|
1017
1029
|
<tspan
|
|
1018
1030
|
class="vue-data-ui-datalabel-inline"
|
|
1019
1031
|
fill="${L.value.percentage.color}"
|
|
1020
|
-
font-size="${n ?
|
|
1032
|
+
font-size="${n ? Qn.value : Zn.value}px"
|
|
1021
1033
|
style="font-weight:${L.value.percentage.bold ? "bold" : ""}"
|
|
1022
1034
|
>${a}</tspan>
|
|
1023
1035
|
`, s = String(e.name ?? "").split(/\n/g), c = "";
|
|
@@ -1026,35 +1038,35 @@ var rt = /* @__PURE__ */ e({ default: () => vn }), it = ["id"], at = ["id"], ot
|
|
|
1026
1038
|
<tspan
|
|
1027
1039
|
class="${n ? "vue-data-ui-datalabel-inline" : "vue-data-ui-datalabel-name"}"
|
|
1028
1040
|
fill="${L.value.name.color}"
|
|
1029
|
-
font-size="${n ?
|
|
1041
|
+
font-size="${n ? Qn.value : N.value}px"
|
|
1030
1042
|
style="font-weight:${L.value.name.bold ? "bold" : ""}"
|
|
1031
1043
|
>${e}</tspan>
|
|
1032
1044
|
` : `
|
|
1033
1045
|
<tspan
|
|
1034
1046
|
class="${n ? "vue-data-ui-datalabel-inline" : "vue-data-ui-datalabel-name"}"
|
|
1035
1047
|
x="${i}"
|
|
1036
|
-
dy="${(n ?
|
|
1048
|
+
dy="${(n ? Qn.value : N.value) * 1.2}"
|
|
1037
1049
|
fill="${L.value.name.color}"
|
|
1038
|
-
font-size="${n ?
|
|
1050
|
+
font-size="${n ? Qn.value : N.value}px"
|
|
1039
1051
|
style="font-weight:${L.value.name.bold ? "bold" : ""}"
|
|
1040
1052
|
>${e}</tspan>
|
|
1041
1053
|
`;
|
|
1042
1054
|
}), r === "end" ? `${L.value.name.show ? c : ""}${o}` : `${o}${L.value.name.show ? c : ""}`;
|
|
1043
1055
|
}
|
|
1044
|
-
function
|
|
1045
|
-
let n =
|
|
1056
|
+
function di(e, t) {
|
|
1057
|
+
let n = Y.value[t].middlePoint, r = Qr(n), a = i({
|
|
1046
1058
|
initX: n.x,
|
|
1047
1059
|
initY: n.y,
|
|
1048
1060
|
offset: 42,
|
|
1049
|
-
centerX:
|
|
1050
|
-
centerY:
|
|
1061
|
+
centerX: H.value.width / 2,
|
|
1062
|
+
centerY: H.value.height / 2
|
|
1051
1063
|
}), o = a.x;
|
|
1052
1064
|
a.y;
|
|
1053
|
-
let s =
|
|
1065
|
+
let s = Si(e), c = `
|
|
1054
1066
|
<tspan
|
|
1055
1067
|
class="vue-data-ui-datalabel-value"
|
|
1056
1068
|
fill="${L.value.percentage.color}"
|
|
1057
|
-
font-size="${
|
|
1069
|
+
font-size="${Zn.value}px"
|
|
1058
1070
|
style="font-weight:${L.value.percentage.bold ? "bold" : "normal"}"
|
|
1059
1071
|
>${s}</tspan>
|
|
1060
1072
|
`, l = String(e.name ?? "").split(/\n/g), u = "";
|
|
@@ -1078,27 +1090,27 @@ var rt = /* @__PURE__ */ e({ default: () => vn }), it = ["id"], at = ["id"], ot
|
|
|
1078
1090
|
`;
|
|
1079
1091
|
}), r === "end" ? `${L.value.name.show ? u : ""}${c}` : `${c}${L.value.name.show ? u : ""}`;
|
|
1080
1092
|
}
|
|
1081
|
-
function
|
|
1093
|
+
function fi(e) {
|
|
1082
1094
|
return I.value.useBlurOnHover && ![null, void 0].includes(F.value) && F.value !== e ? `url(#blur_${P.value})` : "";
|
|
1083
1095
|
}
|
|
1084
|
-
function
|
|
1085
|
-
if (!
|
|
1096
|
+
function pi(e) {
|
|
1097
|
+
if (!Lr.value || Rr.value === null || e.seriesIndex !== Rr.value) return 1;
|
|
1086
1098
|
let t = (e.proportion ?? 0) * 100, n = L.value.dataLabels.hideUnderValue, r = L.value.dataLabels.smallArcClusterThreshold + 2, i = n;
|
|
1087
1099
|
return t >= r ? 1 : t <= i ? 0 : (t - i) / (r - i);
|
|
1088
1100
|
}
|
|
1089
|
-
let
|
|
1090
|
-
head:
|
|
1101
|
+
let mi = _(() => ({
|
|
1102
|
+
head: qr.value.map((e) => ({
|
|
1091
1103
|
name: e.name,
|
|
1092
1104
|
color: e.color
|
|
1093
1105
|
})),
|
|
1094
|
-
body:
|
|
1106
|
+
body: qr.value.map((e) => e.value)
|
|
1095
1107
|
}));
|
|
1096
|
-
function
|
|
1108
|
+
function hi(e = null) {
|
|
1097
1109
|
Ge(() => {
|
|
1098
|
-
let n =
|
|
1110
|
+
let n = mi.value.head.map((e, t) => [
|
|
1099
1111
|
[e.name],
|
|
1100
|
-
[
|
|
1101
|
-
[isNaN(
|
|
1112
|
+
[mi.value.body[t]],
|
|
1113
|
+
[isNaN(mi.value.body[t] / Q.value) ? "-" : mi.value.body[t] / Q.value * 100]
|
|
1102
1114
|
]), i = [
|
|
1103
1115
|
[z.value.title.text],
|
|
1104
1116
|
[z.value.title.subtitle.text],
|
|
@@ -1114,23 +1126,23 @@ var rt = /* @__PURE__ */ e({ default: () => vn }), it = ["id"], at = ["id"], ot
|
|
|
1114
1126
|
});
|
|
1115
1127
|
});
|
|
1116
1128
|
}
|
|
1117
|
-
let
|
|
1129
|
+
let gi = _(() => {
|
|
1118
1130
|
let e = [
|
|
1119
1131
|
"__SUM__",
|
|
1120
1132
|
d({
|
|
1121
1133
|
p: L.value.dataLabels.prefix,
|
|
1122
|
-
v:
|
|
1134
|
+
v: Q.value,
|
|
1123
1135
|
s: L.value.dataLabels.suffix,
|
|
1124
1136
|
r: I.value.table.td.roundingValue
|
|
1125
1137
|
}),
|
|
1126
1138
|
"100%"
|
|
1127
|
-
], t =
|
|
1139
|
+
], t = mi.value.head.map((e, t) => [
|
|
1128
1140
|
{
|
|
1129
1141
|
color: e.color,
|
|
1130
1142
|
name: e.name || "-"
|
|
1131
1143
|
},
|
|
1132
|
-
|
|
1133
|
-
isNaN(
|
|
1144
|
+
mi.value.body[t],
|
|
1145
|
+
isNaN(mi.value.body[t] / Q.value) ? "-" : (mi.value.body[t] / Q.value * 100).toFixed(I.value.table.td.roundingPercentage) + "%"
|
|
1134
1146
|
]), n = t.map((e) => e.map((e, t) => t === 0 ? e.name : e)), r = {
|
|
1135
1147
|
th: {
|
|
1136
1148
|
backgroundColor: I.value.table.th.backgroundColor,
|
|
@@ -1155,18 +1167,18 @@ var rt = /* @__PURE__ */ e({ default: () => vn }), it = ["id"], at = ["id"], ot
|
|
|
1155
1167
|
a11yBody: n,
|
|
1156
1168
|
config: r
|
|
1157
1169
|
};
|
|
1158
|
-
}),
|
|
1159
|
-
function
|
|
1160
|
-
|
|
1170
|
+
}), _i = E(!1);
|
|
1171
|
+
function vi(e) {
|
|
1172
|
+
_i.value = e, or.value += 1;
|
|
1161
1173
|
}
|
|
1162
|
-
let
|
|
1163
|
-
function
|
|
1174
|
+
let yi = _(() => /^((?!chrome|android).)*safari/i.test(navigator.userAgent));
|
|
1175
|
+
function bi(e) {
|
|
1164
1176
|
return Fe({
|
|
1165
1177
|
num: e,
|
|
1166
1178
|
rounding: z.value.legend.roundingPercentage
|
|
1167
1179
|
});
|
|
1168
1180
|
}
|
|
1169
|
-
function
|
|
1181
|
+
function xi({ val: e, percentage: t, showVal: n, showPercentage: r, config: i }) {
|
|
1170
1182
|
return Ie({
|
|
1171
1183
|
config: i,
|
|
1172
1184
|
val: e,
|
|
@@ -1175,46 +1187,46 @@ var rt = /* @__PURE__ */ e({ default: () => vn }), it = ["id"], at = ["id"], ot
|
|
|
1175
1187
|
showPercentage: r
|
|
1176
1188
|
});
|
|
1177
1189
|
}
|
|
1178
|
-
function
|
|
1179
|
-
return
|
|
1190
|
+
function Si(e) {
|
|
1191
|
+
return xi({
|
|
1180
1192
|
val: m(L.value.value.formatter, e.value, d({
|
|
1181
1193
|
p: L.value.dataLabels.prefix,
|
|
1182
1194
|
v: e.value,
|
|
1183
1195
|
s: L.value.dataLabels.suffix,
|
|
1184
1196
|
r: L.value.value.rounding
|
|
1185
1197
|
}), { datapoint: e }),
|
|
1186
|
-
percentage:
|
|
1198
|
+
percentage: ti(e, J.value),
|
|
1187
1199
|
showVal: L.value.value.show,
|
|
1188
1200
|
showPercentage: L.value.percentage.show,
|
|
1189
1201
|
config: L.value.dataLabels
|
|
1190
1202
|
});
|
|
1191
1203
|
}
|
|
1192
|
-
function
|
|
1204
|
+
function Ci(e, t) {
|
|
1193
1205
|
I.value.events.datapointClick && I.value.events.datapointClick({
|
|
1194
1206
|
datapoint: e,
|
|
1195
1207
|
seriesIndex: e.seriesIndex
|
|
1196
|
-
}),
|
|
1208
|
+
}), Fr("selectDatapoint", {
|
|
1197
1209
|
datapoint: e,
|
|
1198
1210
|
index: t
|
|
1199
1211
|
});
|
|
1200
1212
|
}
|
|
1201
|
-
function
|
|
1202
|
-
|
|
1213
|
+
function wi() {
|
|
1214
|
+
V.value.showTable = !V.value.showTable;
|
|
1203
1215
|
}
|
|
1204
|
-
function
|
|
1205
|
-
|
|
1216
|
+
function Ti() {
|
|
1217
|
+
V.value.dataLabels.show = !V.value.dataLabels.show;
|
|
1206
1218
|
}
|
|
1207
|
-
function
|
|
1208
|
-
|
|
1219
|
+
function Ei() {
|
|
1220
|
+
V.value.showTooltip = !V.value.showTooltip;
|
|
1209
1221
|
}
|
|
1210
|
-
let
|
|
1211
|
-
function
|
|
1212
|
-
|
|
1222
|
+
let Di = E(!1);
|
|
1223
|
+
function Oi() {
|
|
1224
|
+
Di.value = !Di.value;
|
|
1213
1225
|
}
|
|
1214
|
-
async function
|
|
1215
|
-
if (!
|
|
1216
|
-
let { width: t, height: n } =
|
|
1217
|
-
domElement:
|
|
1226
|
+
async function ki({ scale: e = 2 } = {}) {
|
|
1227
|
+
if (!jn.value) return;
|
|
1228
|
+
let { width: t, height: n } = jn.value.getBoundingClientRect(), r = t / n, { imageUri: i, base64: a } = await we({
|
|
1229
|
+
domElement: jn.value,
|
|
1218
1230
|
base64: !0,
|
|
1219
1231
|
img: !0,
|
|
1220
1232
|
scale: e
|
|
@@ -1228,13 +1240,13 @@ var rt = /* @__PURE__ */ e({ default: () => vn }), it = ["id"], at = ["id"], ot
|
|
|
1228
1240
|
aspectRatio: r
|
|
1229
1241
|
};
|
|
1230
1242
|
}
|
|
1231
|
-
function
|
|
1232
|
-
if (!
|
|
1233
|
-
let { x: e, y: t, width: n, height: r } =
|
|
1234
|
-
|
|
1243
|
+
function Ai() {
|
|
1244
|
+
if (!Mn.value) return;
|
|
1245
|
+
let { x: e, y: t, width: n, height: r } = Mn.value.getBBox();
|
|
1246
|
+
Sr.value && Sr.value.setAttribute("viewBox", `${e} ${t} ${n + Math.min(0, e)} ${r + Math.min(0, t)}`);
|
|
1235
1247
|
}
|
|
1236
|
-
let
|
|
1237
|
-
let e = I.value.table.useDialog && !I.value.table.show, t =
|
|
1248
|
+
let ji = _(() => {
|
|
1249
|
+
let e = I.value.table.useDialog && !I.value.table.show, t = V.value.showTable;
|
|
1238
1250
|
return {
|
|
1239
1251
|
component: e ? Tn : bn,
|
|
1240
1252
|
title: `${z.value.title.text}${z.value.title.subtitle.text ? `: ${z.value.title.subtitle.text}` : ""}`,
|
|
@@ -1243,10 +1255,10 @@ var rt = /* @__PURE__ */ e({ default: () => vn }), it = ["id"], at = ["id"], ot
|
|
|
1243
1255
|
color: I.value.table.th.color,
|
|
1244
1256
|
headerColor: I.value.table.th.color,
|
|
1245
1257
|
headerBg: I.value.table.th.backgroundColor,
|
|
1246
|
-
isFullscreen:
|
|
1247
|
-
fullscreenParent:
|
|
1258
|
+
isFullscreen: _i.value,
|
|
1259
|
+
fullscreenParent: jn.value,
|
|
1248
1260
|
forcedWidth: Math.min(500, window.innerWidth * .8),
|
|
1249
|
-
isCursorPointer:
|
|
1261
|
+
isCursorPointer: lr.value
|
|
1250
1262
|
} : {
|
|
1251
1263
|
hideDetails: !0,
|
|
1252
1264
|
config: {
|
|
@@ -1264,62 +1276,62 @@ var rt = /* @__PURE__ */ e({ default: () => vn }), it = ["id"], at = ["id"], ot
|
|
|
1264
1276
|
}
|
|
1265
1277
|
};
|
|
1266
1278
|
});
|
|
1267
|
-
et(() =>
|
|
1268
|
-
I.value.table.show || (e && I.value.table.useDialog &&
|
|
1279
|
+
et(() => V.value.showTable, (e) => {
|
|
1280
|
+
I.value.table.show || (e && I.value.table.useDialog && Gn.value ? Gn.value.open() : "close" in Gn.value && Gn.value.close());
|
|
1269
1281
|
});
|
|
1270
|
-
function
|
|
1271
|
-
|
|
1282
|
+
function Mi() {
|
|
1283
|
+
V.value.showTable = !1, Kn.value && Kn.value.setTableIconState(!1);
|
|
1272
1284
|
}
|
|
1273
|
-
let
|
|
1285
|
+
let Ni = _(() => Jr.value.map((e) => ({
|
|
1274
1286
|
...e,
|
|
1275
1287
|
name: e.display
|
|
1276
|
-
}))),
|
|
1277
|
-
svg:
|
|
1278
|
-
title:
|
|
1279
|
-
legend:
|
|
1280
|
-
legendItems:
|
|
1281
|
-
backgroundColor:
|
|
1288
|
+
}))), Pi = _(() => z.value.backgroundColor), Fi = _(() => z.value.legend), Ii = _(() => z.value.title), { isCallbackImaging: Li, isCallbackSvg: Ri, generateSvg: zi, onGenerateImage: Bi } = Ce({
|
|
1289
|
+
svg: Sr,
|
|
1290
|
+
title: Ii,
|
|
1291
|
+
legend: Fi,
|
|
1292
|
+
legendItems: Ni,
|
|
1293
|
+
backgroundColor: Pi,
|
|
1282
1294
|
getSvgCallback: () => I.value.userOptions.callbacks.svg,
|
|
1283
|
-
generateImage:
|
|
1295
|
+
generateImage: jr
|
|
1284
1296
|
});
|
|
1285
|
-
async function
|
|
1286
|
-
if (
|
|
1297
|
+
async function Vi() {
|
|
1298
|
+
if (Fr("copyAlt", {
|
|
1287
1299
|
config: I.value,
|
|
1288
|
-
dataset:
|
|
1300
|
+
dataset: W.value
|
|
1289
1301
|
}), !I.value.userOptions.callbacks.altCopy) {
|
|
1290
1302
|
console.warn("Vue Data UI - A callback must be set for `altCopy` in userOptions.");
|
|
1291
1303
|
return;
|
|
1292
1304
|
}
|
|
1293
1305
|
await Promise.resolve(I.value.userOptions.callbacks.altCopy({
|
|
1294
1306
|
config: I.value,
|
|
1295
|
-
dataset:
|
|
1307
|
+
dataset: W.value
|
|
1296
1308
|
}));
|
|
1297
1309
|
}
|
|
1298
|
-
function
|
|
1299
|
-
|
|
1310
|
+
function Hi() {
|
|
1311
|
+
qn.value = null, Xn.value = !0;
|
|
1300
1312
|
}
|
|
1301
|
-
function
|
|
1302
|
-
|
|
1313
|
+
function Ui() {
|
|
1314
|
+
qn.value = null, Yn.value = "pointer", ir.value = !1, F.value = null, Xn.value = !1;
|
|
1303
1315
|
}
|
|
1304
|
-
function
|
|
1305
|
-
if (!
|
|
1316
|
+
function Wi(e) {
|
|
1317
|
+
if (!Sr.value || Di.value || document.activeElement !== Sr.value || !J.value.length) return;
|
|
1306
1318
|
let t = ["ArrowLeft", "ArrowUp"].includes(e.key), n = ["ArrowRight", "ArrowDown"].includes(e.key), r = e.key === "Enter" || e.key === " ", i = e.key === "Escape";
|
|
1307
1319
|
if (!t && !n && !r && !i) return;
|
|
1308
1320
|
if (e.preventDefault(), e.stopPropagation(), i) {
|
|
1309
|
-
|
|
1321
|
+
qn.value = null, Yn.value = "pointer", ir.value = !1, F.value = null;
|
|
1310
1322
|
return;
|
|
1311
1323
|
}
|
|
1312
1324
|
if (r) {
|
|
1313
|
-
if (
|
|
1314
|
-
let e =
|
|
1325
|
+
if (qn.value === null) return;
|
|
1326
|
+
let e = J.value[qn.value];
|
|
1315
1327
|
if (!e) return;
|
|
1316
|
-
|
|
1328
|
+
Ci(e, qn.value);
|
|
1317
1329
|
return;
|
|
1318
1330
|
}
|
|
1319
|
-
let a =
|
|
1320
|
-
s ? n ? (a += 1, a >=
|
|
1321
|
-
let l =
|
|
1322
|
-
l && (
|
|
1331
|
+
let a = qn.value, o = F.value, s = a !== null && a >= 0 && a < J.value.length, c = o !== null && o >= 0 && o < J.value.length;
|
|
1332
|
+
s ? n ? (a += 1, a >= J.value.length && (a = 0)) : t && (--a, a < 0 && (a = J.value.length - 1)) : c ? (a = n ? o + 1 : o - 1, a >= J.value.length && (a = 0), a < 0 && (a = J.value.length - 1)) : a = n ? 0 : J.value.length - 1;
|
|
1333
|
+
let l = J.value[a];
|
|
1334
|
+
l && (qn.value = a, Gi(a), $({
|
|
1323
1335
|
datapoint: l,
|
|
1324
1336
|
relativeIndex: a,
|
|
1325
1337
|
seriesIndex: l.seriesIndex,
|
|
@@ -1327,64 +1339,64 @@ var rt = /* @__PURE__ */ e({ default: () => vn }), it = ["id"], at = ["id"], ot
|
|
|
1327
1339
|
triggerMode: "keyboard"
|
|
1328
1340
|
}));
|
|
1329
1341
|
}
|
|
1330
|
-
function
|
|
1331
|
-
if (!Number.isFinite(e) || !
|
|
1332
|
-
let t =
|
|
1342
|
+
function Gi(e) {
|
|
1343
|
+
if (!Number.isFinite(e) || !Sr.value) return;
|
|
1344
|
+
let t = H.value.width / 2, n = H.value.height / 2;
|
|
1333
1345
|
if (I.value.type === "classic") {
|
|
1334
|
-
let r =
|
|
1346
|
+
let r = J.value[e];
|
|
1335
1347
|
if (!r?.arcSlice) return;
|
|
1336
|
-
let i =
|
|
1348
|
+
let i = ce(r.arcSlice);
|
|
1337
1349
|
if (!i) return;
|
|
1338
1350
|
t = i.x, n = i.y;
|
|
1339
1351
|
} else {
|
|
1340
|
-
let r =
|
|
1352
|
+
let r = Y.value[e]?.middlePoint;
|
|
1341
1353
|
if (!r) return;
|
|
1342
1354
|
t = r.x, n = r.y;
|
|
1343
1355
|
}
|
|
1344
|
-
let r =
|
|
1345
|
-
|
|
1346
|
-
x: r.left + t /
|
|
1347
|
-
y: r.top + n /
|
|
1356
|
+
let r = Sr.value.getBoundingClientRect();
|
|
1357
|
+
Jn.value = {
|
|
1358
|
+
x: r.left + t / H.value.width * r.width,
|
|
1359
|
+
y: r.top + n / H.value.height * r.height
|
|
1348
1360
|
};
|
|
1349
1361
|
}
|
|
1350
|
-
let
|
|
1351
|
-
headers:
|
|
1352
|
-
rows:
|
|
1362
|
+
let Ki = _(() => ({
|
|
1363
|
+
headers: gi.value?.colNames ?? [],
|
|
1364
|
+
rows: gi.value?.a11yBody ?? []
|
|
1353
1365
|
}));
|
|
1354
1366
|
return De({
|
|
1355
|
-
autoSize:
|
|
1356
|
-
getData:
|
|
1357
|
-
getImage:
|
|
1358
|
-
generatePdf:
|
|
1359
|
-
generateCsv:
|
|
1360
|
-
generateImage:
|
|
1361
|
-
generateSvg:
|
|
1362
|
-
hideSeries:
|
|
1363
|
-
showSeries:
|
|
1364
|
-
toggleTable:
|
|
1365
|
-
toggleLabels:
|
|
1366
|
-
toggleTooltip:
|
|
1367
|
-
toggleAnnotator:
|
|
1368
|
-
toggleFullscreen:
|
|
1369
|
-
copyAlt:
|
|
1370
|
-
}), (t, n) => (
|
|
1367
|
+
autoSize: Ai,
|
|
1368
|
+
getData: Ir,
|
|
1369
|
+
getImage: ki,
|
|
1370
|
+
generatePdf: Ar,
|
|
1371
|
+
generateCsv: hi,
|
|
1372
|
+
generateImage: jr,
|
|
1373
|
+
generateSvg: zi,
|
|
1374
|
+
hideSeries: Gr,
|
|
1375
|
+
showSeries: Wr,
|
|
1376
|
+
toggleTable: wi,
|
|
1377
|
+
toggleLabels: Ti,
|
|
1378
|
+
toggleTooltip: Ei,
|
|
1379
|
+
toggleAnnotator: Oi,
|
|
1380
|
+
toggleFullscreen: vi,
|
|
1381
|
+
copyAlt: Vi
|
|
1382
|
+
}), (t, n) => (T(), b("div", {
|
|
1371
1383
|
ref_key: "donutChart",
|
|
1372
|
-
ref:
|
|
1373
|
-
class: Ke(`vue-data-ui-component vue-ui-donut ${
|
|
1374
|
-
style:
|
|
1384
|
+
ref: jn,
|
|
1385
|
+
class: Ke(`vue-data-ui-component vue-ui-donut ${_i.value ? "vue-data-ui-wrapper-fullscreen" : ""} ${I.value.useCssAnimation ? "" : "vue-ui-dna"}`),
|
|
1386
|
+
style: w(`font-family:${I.value.style.fontFamily};width:100%; ${I.value.responsive ? "height:100%;" : ""} text-align:center;background:${z.value.backgroundColor}`),
|
|
1375
1387
|
id: `donut__${P.value}`,
|
|
1376
|
-
onMouseenter:
|
|
1377
|
-
onMouseleave:
|
|
1388
|
+
onMouseenter: Cr,
|
|
1389
|
+
onMouseleave: wr
|
|
1378
1390
|
}, [
|
|
1379
|
-
|
|
1391
|
+
x("div", {
|
|
1380
1392
|
id: `chart-instructions-${P.value}`,
|
|
1381
1393
|
class: "sr-only"
|
|
1382
|
-
}, [
|
|
1383
|
-
|
|
1394
|
+
}, [x("p", null, k(I.value.a11y.translations.keyboardNavigation), 1)], 8, at),
|
|
1395
|
+
Ki.value?.rows?.length ? (T(), v(Me, {
|
|
1384
1396
|
key: 0,
|
|
1385
1397
|
uid: P.value,
|
|
1386
|
-
head:
|
|
1387
|
-
body:
|
|
1398
|
+
head: Ki.value.headers,
|
|
1399
|
+
body: Ki.value.rows,
|
|
1388
1400
|
notice: I.value.a11y.translations.tableAvailable,
|
|
1389
1401
|
caption: I.value.a11y.translations.tableCaption
|
|
1390
1402
|
}, null, 8, [
|
|
@@ -1393,23 +1405,23 @@ var rt = /* @__PURE__ */ e({ default: () => vn }), it = ["id"], at = ["id"], ot
|
|
|
1393
1405
|
"body",
|
|
1394
1406
|
"notice",
|
|
1395
1407
|
"caption"
|
|
1396
|
-
])) :
|
|
1397
|
-
I.value.userOptions.buttons.annotator &&
|
|
1408
|
+
])) : y("", !0),
|
|
1409
|
+
I.value.userOptions.buttons.annotator && A(Sr) ? (T(), v(A(Sn), {
|
|
1398
1410
|
key: 1,
|
|
1399
1411
|
color: z.value.color,
|
|
1400
1412
|
backgroundColor: z.value.backgroundColor,
|
|
1401
|
-
active:
|
|
1402
|
-
svgRef:
|
|
1403
|
-
isCursorPointer:
|
|
1413
|
+
active: Di.value,
|
|
1414
|
+
svgRef: A(Sr),
|
|
1415
|
+
isCursorPointer: lr.value,
|
|
1404
1416
|
palette: I.value.userOptions.annotatorPalette,
|
|
1405
|
-
onClose:
|
|
1417
|
+
onClose: Oi
|
|
1406
1418
|
}, {
|
|
1407
|
-
"annotator-action-close":
|
|
1408
|
-
"annotator-action-color":
|
|
1409
|
-
"annotator-action-draw":
|
|
1410
|
-
"annotator-action-undo":
|
|
1411
|
-
"annotator-action-redo":
|
|
1412
|
-
"annotator-action-delete":
|
|
1419
|
+
"annotator-action-close": j(() => [O(t.$slots, "annotator-action-close", {}, void 0, !0)]),
|
|
1420
|
+
"annotator-action-color": j(({ color: e }) => [O(t.$slots, "annotator-action-color", C(S({ color: e })), void 0, !0)]),
|
|
1421
|
+
"annotator-action-draw": j(({ mode: e }) => [O(t.$slots, "annotator-action-draw", C(S({ mode: e })), void 0, !0)]),
|
|
1422
|
+
"annotator-action-undo": j(({ disabled: e }) => [O(t.$slots, "annotator-action-undo", C(S({ disabled: e })), void 0, !0)]),
|
|
1423
|
+
"annotator-action-redo": j(({ disabled: e }) => [O(t.$slots, "annotator-action-redo", C(S({ disabled: e })), void 0, !0)]),
|
|
1424
|
+
"annotator-action-delete": j(({ disabled: e }) => [O(t.$slots, "annotator-action-delete", C(S({ disabled: e })), void 0, !0)]),
|
|
1413
1425
|
_: 3
|
|
1414
1426
|
}, 8, [
|
|
1415
1427
|
"color",
|
|
@@ -1418,22 +1430,22 @@ var rt = /* @__PURE__ */ e({ default: () => vn }), it = ["id"], at = ["id"], ot
|
|
|
1418
1430
|
"svgRef",
|
|
1419
1431
|
"isCursorPointer",
|
|
1420
1432
|
"palette"
|
|
1421
|
-
])) :
|
|
1422
|
-
|
|
1423
|
-
|
|
1433
|
+
])) : y("", !0),
|
|
1434
|
+
O(t.$slots, "userConfig", {}, void 0, !0),
|
|
1435
|
+
Mr.value ? (T(), b("div", {
|
|
1424
1436
|
key: 2,
|
|
1425
1437
|
ref_key: "noTitle",
|
|
1426
|
-
ref:
|
|
1438
|
+
ref: Bn,
|
|
1427
1439
|
class: "vue-data-ui-no-title-space",
|
|
1428
1440
|
style: "height:36px; width: 100%;background:transparent"
|
|
1429
|
-
}, null, 512)) :
|
|
1430
|
-
z.value.title.text ? (
|
|
1441
|
+
}, null, 512)) : y("", !0),
|
|
1442
|
+
z.value.title.text ? (T(), b("div", {
|
|
1431
1443
|
key: 3,
|
|
1432
1444
|
ref_key: "chartTitle",
|
|
1433
|
-
ref:
|
|
1445
|
+
ref: Fn,
|
|
1434
1446
|
style: "width:100%;background:transparent;padding-bottom:24px"
|
|
1435
|
-
}, [(
|
|
1436
|
-
key: `title_${
|
|
1447
|
+
}, [(T(), v(Te, {
|
|
1448
|
+
key: `title_${Vn.value}`,
|
|
1437
1449
|
config: {
|
|
1438
1450
|
title: {
|
|
1439
1451
|
cy: "donut-div-title",
|
|
@@ -1444,16 +1456,16 @@ var rt = /* @__PURE__ */ e({ default: () => vn }), it = ["id"], at = ["id"], ot
|
|
|
1444
1456
|
...z.value.title.subtitle
|
|
1445
1457
|
}
|
|
1446
1458
|
}
|
|
1447
|
-
}, null, 8, ["config"]))], 512)) :
|
|
1448
|
-
|
|
1449
|
-
I.value.userOptions.show && An.value && (
|
|
1459
|
+
}, null, 8, ["config"]))], 512)) : y("", !0),
|
|
1460
|
+
x("div", { id: `legend-top-${P.value}` }, null, 8, ot),
|
|
1461
|
+
I.value.userOptions.show && An.value && (A(xr) || A(yr)) ? (T(), v(A(Cn), {
|
|
1450
1462
|
ref_key: "userOptionsRef",
|
|
1451
|
-
ref:
|
|
1452
|
-
key: `user_option_${
|
|
1463
|
+
ref: Kn,
|
|
1464
|
+
key: `user_option_${or.value}`,
|
|
1453
1465
|
backgroundColor: z.value.backgroundColor,
|
|
1454
1466
|
color: z.value.color,
|
|
1455
|
-
isPrinting:
|
|
1456
|
-
isImaging:
|
|
1467
|
+
isPrinting: A(Or),
|
|
1468
|
+
isImaging: A(kr),
|
|
1457
1469
|
uid: P.value,
|
|
1458
1470
|
hasTooltip: z.value.tooltip.show && I.value.userOptions.buttons.tooltip,
|
|
1459
1471
|
hasPdf: I.value.userOptions.buttons.pdf,
|
|
@@ -1464,32 +1476,32 @@ var rt = /* @__PURE__ */ e({ default: () => vn }), it = ["id"], at = ["id"], ot
|
|
|
1464
1476
|
hasLabel: I.value.userOptions.buttons.labels,
|
|
1465
1477
|
hasFullscreen: I.value.userOptions.buttons.fullscreen,
|
|
1466
1478
|
hasAltCopy: I.value.userOptions.buttons.altCopy,
|
|
1467
|
-
isFullscreen:
|
|
1468
|
-
chartElement:
|
|
1479
|
+
isFullscreen: _i.value,
|
|
1480
|
+
chartElement: jn.value,
|
|
1469
1481
|
position: I.value.userOptions.position,
|
|
1470
1482
|
callbacks: I.value.userOptions.callbacks,
|
|
1471
|
-
isTooltip:
|
|
1483
|
+
isTooltip: V.value.showTooltip,
|
|
1472
1484
|
titles: { ...I.value.userOptions.buttonTitles },
|
|
1473
1485
|
hasAnnotator: I.value.userOptions.buttons.annotator,
|
|
1474
|
-
isAnnotation:
|
|
1486
|
+
isAnnotation: Di.value,
|
|
1475
1487
|
printScale: I.value.userOptions.print.scale,
|
|
1476
1488
|
tableDialog: I.value.table.useDialog,
|
|
1477
|
-
isCursorPointer:
|
|
1478
|
-
onToggleFullscreen:
|
|
1479
|
-
onGeneratePdf:
|
|
1480
|
-
onGenerateCsv:
|
|
1481
|
-
onGenerateImage:
|
|
1482
|
-
onGenerateSvg:
|
|
1483
|
-
onToggleTable:
|
|
1484
|
-
onToggleLabels:
|
|
1485
|
-
onToggleTooltip:
|
|
1486
|
-
onToggleAnnotator:
|
|
1487
|
-
onCopyAlt:
|
|
1488
|
-
style:
|
|
1489
|
+
isCursorPointer: lr.value,
|
|
1490
|
+
onToggleFullscreen: vi,
|
|
1491
|
+
onGeneratePdf: A(Ar),
|
|
1492
|
+
onGenerateCsv: hi,
|
|
1493
|
+
onGenerateImage: A(Bi),
|
|
1494
|
+
onGenerateSvg: A(zi),
|
|
1495
|
+
onToggleTable: wi,
|
|
1496
|
+
onToggleLabels: Ti,
|
|
1497
|
+
onToggleTooltip: Ei,
|
|
1498
|
+
onToggleAnnotator: Oi,
|
|
1499
|
+
onCopyAlt: Vi,
|
|
1500
|
+
style: w({ visibility: A(xr) ? A(yr) ? "visible" : "hidden" : "visible" })
|
|
1489
1501
|
}, Be({ _: 2 }, [
|
|
1490
1502
|
t.$slots.menuIcon ? {
|
|
1491
1503
|
name: "menuIcon",
|
|
1492
|
-
fn:
|
|
1504
|
+
fn: j(({ isOpen: e, color: n }) => [O(t.$slots, "menuIcon", C(S({
|
|
1493
1505
|
isOpen: e,
|
|
1494
1506
|
color: n
|
|
1495
1507
|
})), void 0, !0)]),
|
|
@@ -1497,42 +1509,42 @@ var rt = /* @__PURE__ */ e({ default: () => vn }), it = ["id"], at = ["id"], ot
|
|
|
1497
1509
|
} : void 0,
|
|
1498
1510
|
t.$slots.optionTooltip ? {
|
|
1499
1511
|
name: "optionTooltip",
|
|
1500
|
-
fn:
|
|
1512
|
+
fn: j(() => [O(t.$slots, "optionTooltip", {}, void 0, !0)]),
|
|
1501
1513
|
key: "1"
|
|
1502
1514
|
} : void 0,
|
|
1503
1515
|
t.$slots.optionPdf ? {
|
|
1504
1516
|
name: "optionPdf",
|
|
1505
|
-
fn:
|
|
1517
|
+
fn: j(() => [O(t.$slots, "optionPdf", {}, void 0, !0)]),
|
|
1506
1518
|
key: "2"
|
|
1507
1519
|
} : void 0,
|
|
1508
1520
|
t.$slots.optionCsv ? {
|
|
1509
1521
|
name: "optionCsv",
|
|
1510
|
-
fn:
|
|
1522
|
+
fn: j(() => [O(t.$slots, "optionCsv", {}, void 0, !0)]),
|
|
1511
1523
|
key: "3"
|
|
1512
1524
|
} : void 0,
|
|
1513
1525
|
t.$slots.optionImg ? {
|
|
1514
1526
|
name: "optionImg",
|
|
1515
|
-
fn:
|
|
1527
|
+
fn: j(() => [O(t.$slots, "optionImg", {}, void 0, !0)]),
|
|
1516
1528
|
key: "4"
|
|
1517
1529
|
} : void 0,
|
|
1518
1530
|
t.$slots.optionSvg ? {
|
|
1519
1531
|
name: "optionSvg",
|
|
1520
|
-
fn:
|
|
1532
|
+
fn: j(() => [O(t.$slots, "optionSvg", {}, void 0, !0)]),
|
|
1521
1533
|
key: "5"
|
|
1522
1534
|
} : void 0,
|
|
1523
1535
|
t.$slots.optionTable ? {
|
|
1524
1536
|
name: "optionTable",
|
|
1525
|
-
fn:
|
|
1537
|
+
fn: j(() => [O(t.$slots, "optionTable", {}, void 0, !0)]),
|
|
1526
1538
|
key: "6"
|
|
1527
1539
|
} : void 0,
|
|
1528
1540
|
t.$slots.optionLabels ? {
|
|
1529
1541
|
name: "optionLabels",
|
|
1530
|
-
fn:
|
|
1542
|
+
fn: j(() => [O(t.$slots, "optionLabels", {}, void 0, !0)]),
|
|
1531
1543
|
key: "7"
|
|
1532
1544
|
} : void 0,
|
|
1533
1545
|
t.$slots.optionFullscreen ? {
|
|
1534
1546
|
name: "optionFullscreen",
|
|
1535
|
-
fn:
|
|
1547
|
+
fn: j(({ toggleFullscreen: e, isFullscreen: n }) => [O(t.$slots, "optionFullscreen", C(S({
|
|
1536
1548
|
toggleFullscreen: e,
|
|
1537
1549
|
isFullscreen: n
|
|
1538
1550
|
})), void 0, !0)]),
|
|
@@ -1540,7 +1552,7 @@ var rt = /* @__PURE__ */ e({ default: () => vn }), it = ["id"], at = ["id"], ot
|
|
|
1540
1552
|
} : void 0,
|
|
1541
1553
|
t.$slots.optionAnnotator ? {
|
|
1542
1554
|
name: "optionAnnotator",
|
|
1543
|
-
fn:
|
|
1555
|
+
fn: j(({ toggleAnnotator: e, isAnnotator: n }) => [O(t.$slots, "optionAnnotator", C(S({
|
|
1544
1556
|
toggleAnnotator: e,
|
|
1545
1557
|
isAnnotator: n
|
|
1546
1558
|
})), void 0, !0)]),
|
|
@@ -1548,91 +1560,91 @@ var rt = /* @__PURE__ */ e({ default: () => vn }), it = ["id"], at = ["id"], ot
|
|
|
1548
1560
|
} : void 0,
|
|
1549
1561
|
t.$slots.optionAltCopy ? {
|
|
1550
1562
|
name: "optionAltCopy",
|
|
1551
|
-
fn:
|
|
1563
|
+
fn: j(({ altCopy: e }) => [O(t.$slots, "optionAltCopy", C(S({ altCopy: e })), void 0, !0)]),
|
|
1552
1564
|
key: "10"
|
|
1553
1565
|
} : void 0,
|
|
1554
1566
|
t.$slots["custom-menu-before"] ? {
|
|
1555
1567
|
name: "custom-menu-before",
|
|
1556
|
-
fn:
|
|
1568
|
+
fn: j(() => [O(t.$slots, "custom-menu-before", {}, void 0, !0)]),
|
|
1557
1569
|
key: "11"
|
|
1558
1570
|
} : void 0,
|
|
1559
1571
|
t.$slots["custom-menu-after"] ? {
|
|
1560
1572
|
name: "custom-menu-after",
|
|
1561
|
-
fn:
|
|
1573
|
+
fn: j(() => [O(t.$slots, "custom-menu-after", {}, void 0, !0)]),
|
|
1562
1574
|
key: "12"
|
|
1563
1575
|
} : void 0
|
|
1564
|
-
]), 1032, /* @__PURE__ */ "backgroundColor.color.isPrinting.isImaging.uid.hasTooltip.hasPdf.hasImg.hasSvg.hasXls.hasTable.hasLabel.hasFullscreen.hasAltCopy.isFullscreen.chartElement.position.callbacks.isTooltip.titles.hasAnnotator.isAnnotation.printScale.tableDialog.isCursorPointer.onGeneratePdf.onGenerateImage.onGenerateSvg.style".split("."))) :
|
|
1565
|
-
|
|
1576
|
+
]), 1032, /* @__PURE__ */ "backgroundColor.color.isPrinting.isImaging.uid.hasTooltip.hasPdf.hasImg.hasSvg.hasXls.hasTable.hasLabel.hasFullscreen.hasAltCopy.isFullscreen.chartElement.position.callbacks.isTooltip.titles.hasAnnotator.isAnnotation.printScale.tableDialog.isCursorPointer.onGeneratePdf.onGenerateImage.onGenerateSvg.style".split("."))) : y("", !0),
|
|
1577
|
+
x("div", st, [(T(), b("svg", {
|
|
1566
1578
|
ref_key: "svgRef",
|
|
1567
|
-
ref:
|
|
1568
|
-
xmlns:
|
|
1579
|
+
ref: Sr,
|
|
1580
|
+
xmlns: A(fe),
|
|
1569
1581
|
"aria-describedby": `chart-instructions-${P.value}`,
|
|
1570
1582
|
class: Ke({
|
|
1571
|
-
"vue-data-ui-fullscreen--on":
|
|
1572
|
-
"vue-data-ui-fulscreen--off": !
|
|
1583
|
+
"vue-data-ui-fullscreen--on": _i.value,
|
|
1584
|
+
"vue-data-ui-fulscreen--off": !_i.value,
|
|
1573
1585
|
"vue-data-ui-svg": !0
|
|
1574
1586
|
}),
|
|
1575
|
-
viewBox: `0 0 ${
|
|
1576
|
-
style:
|
|
1587
|
+
viewBox: `0 0 ${H.value.width <= 0 ? 10 : H.value.width} ${H.value.height <= 0 ? 10 : H.value.height}`,
|
|
1588
|
+
style: w(`max-width:100%; overflow: visible; background:transparent;color:${z.value.color};${Dr.value.css}`),
|
|
1577
1589
|
tabindex: "0",
|
|
1578
|
-
onFocus:
|
|
1579
|
-
onBlur:
|
|
1580
|
-
onKeydown:
|
|
1581
|
-
}, [
|
|
1590
|
+
onFocus: Hi,
|
|
1591
|
+
onBlur: Ui,
|
|
1592
|
+
onKeydown: Wi
|
|
1593
|
+
}, [x("g", {
|
|
1582
1594
|
ref_key: "G",
|
|
1583
|
-
ref:
|
|
1595
|
+
ref: Mn,
|
|
1584
1596
|
class: "vue-data-ui-g"
|
|
1585
1597
|
}, [
|
|
1586
|
-
He(
|
|
1587
|
-
t.$slots["chart-background"] ? (
|
|
1598
|
+
He(A(wn)),
|
|
1599
|
+
t.$slots["chart-background"] ? (T(), b("foreignObject", {
|
|
1588
1600
|
key: 0,
|
|
1589
1601
|
x: 0,
|
|
1590
1602
|
y: 0,
|
|
1591
|
-
width:
|
|
1592
|
-
height:
|
|
1603
|
+
width: H.value.width <= 0 ? 10 : H.value.width,
|
|
1604
|
+
height: H.value.height <= 0 ? 10 : H.value.height,
|
|
1593
1605
|
style: { pointerEvents: "none" }
|
|
1594
|
-
}, [
|
|
1595
|
-
I.value.type === "classic" && !isNaN(
|
|
1606
|
+
}, [O(t.$slots, "chart-background", {}, void 0, !0)], 8, lt)) : y("", !0),
|
|
1607
|
+
I.value.type === "classic" && !isNaN(Pr.value / K.value) ? (T(), b("defs", ut, [z.value.useGradient ? (T(), v(Ae, {
|
|
1596
1608
|
key: 0,
|
|
1597
1609
|
t: "radial",
|
|
1598
1610
|
id: `gradient_${P.value}`,
|
|
1599
1611
|
stops: [
|
|
1600
1612
|
[
|
|
1601
1613
|
"0%",
|
|
1602
|
-
|
|
1614
|
+
A(u)(z.value.backgroundColor, 0),
|
|
1603
1615
|
0
|
|
1604
1616
|
],
|
|
1605
1617
|
[
|
|
1606
|
-
`${(1 -
|
|
1607
|
-
|
|
1618
|
+
`${(1 - Pr.value / K.value) * 100}%`,
|
|
1619
|
+
A(u)("#FFFFFF", 0),
|
|
1608
1620
|
0
|
|
1609
1621
|
],
|
|
1610
1622
|
[
|
|
1611
|
-
`${(1 -
|
|
1612
|
-
|
|
1623
|
+
`${(1 - Pr.value / K.value / 2) * 100}%`,
|
|
1624
|
+
A(u)("#FFFFFF", z.value.gradientIntensity),
|
|
1613
1625
|
1
|
|
1614
1626
|
],
|
|
1615
1627
|
[
|
|
1616
1628
|
"100%",
|
|
1617
|
-
|
|
1629
|
+
A(u)(z.value.backgroundColor, 0),
|
|
1618
1630
|
0
|
|
1619
1631
|
]
|
|
1620
1632
|
]
|
|
1621
|
-
}, null, 8, ["id", "stops"])) :
|
|
1622
|
-
I.value.type === "polar" ? (
|
|
1633
|
+
}, null, 8, ["id", "stops"])) : y("", !0)])) : y("", !0),
|
|
1634
|
+
I.value.type === "polar" ? (T(), b("defs", dt, [(T(!0), b(g, null, D(Y.value, (e, t) => (T(), v(Ae, {
|
|
1623
1635
|
t: "radial",
|
|
1624
1636
|
id: `polar_gradient_${t}_${P.value}`,
|
|
1625
1637
|
key: `pg_${t}_${P.value}`,
|
|
1626
|
-
cx: (isNaN(e.middlePoint.x /
|
|
1627
|
-
cy: (isNaN(e.middlePoint.y /
|
|
1638
|
+
cx: (isNaN(e.middlePoint.x / H.value.width * 100) ? 0 : e.middlePoint.x / H.value.width * 100) + "%",
|
|
1639
|
+
cy: (isNaN(e.middlePoint.y / H.value.height * 100) ? 0 : e.middlePoint.y / H.value.height * 100) + "%",
|
|
1628
1640
|
r: "62%",
|
|
1629
1641
|
stops: [[
|
|
1630
1642
|
"0%",
|
|
1631
|
-
|
|
1643
|
+
A(ee)(q.value[t].color, .05),
|
|
1632
1644
|
z.value.gradientIntensity / 100
|
|
1633
1645
|
], [
|
|
1634
1646
|
"100%",
|
|
1635
|
-
|
|
1647
|
+
q.value[t].color,
|
|
1636
1648
|
1
|
|
1637
1649
|
]]
|
|
1638
1650
|
}, null, 8, [
|
|
@@ -1640,40 +1652,40 @@ var rt = /* @__PURE__ */ e({ default: () => vn }), it = ["id"], at = ["id"], ot
|
|
|
1640
1652
|
"cx",
|
|
1641
1653
|
"cy",
|
|
1642
1654
|
"stops"
|
|
1643
|
-
]))), 128))])) :
|
|
1644
|
-
|
|
1645
|
-
|
|
1655
|
+
]))), 128))])) : y("", !0),
|
|
1656
|
+
x("defs", null, [
|
|
1657
|
+
x("filter", {
|
|
1646
1658
|
id: `blur_${P.value}`,
|
|
1647
1659
|
x: "-50%",
|
|
1648
1660
|
y: "-50%",
|
|
1649
1661
|
width: "200%",
|
|
1650
1662
|
height: "200%"
|
|
1651
|
-
}, [
|
|
1663
|
+
}, [x("feGaussianBlur", {
|
|
1652
1664
|
in: "SourceGraphic",
|
|
1653
1665
|
stdDeviation: 2,
|
|
1654
1666
|
id: `blur_std_${P.value}`
|
|
1655
|
-
}, null, 8, pt), n[5] ||=
|
|
1667
|
+
}, null, 8, pt), n[5] ||= x("feColorMatrix", {
|
|
1656
1668
|
type: "saturate",
|
|
1657
1669
|
values: "0"
|
|
1658
1670
|
}, null, -1)], 8, ft),
|
|
1659
|
-
|
|
1671
|
+
x("filter", {
|
|
1660
1672
|
id: `shadow_${P.value}`,
|
|
1661
1673
|
"color-interpolation-filters": "sRGB"
|
|
1662
|
-
}, [
|
|
1674
|
+
}, [x("feDropShadow", {
|
|
1663
1675
|
dx: "0",
|
|
1664
1676
|
dy: "0",
|
|
1665
1677
|
stdDeviation: "10",
|
|
1666
1678
|
"flood-opacity": "0.5",
|
|
1667
1679
|
"flood-color": R.value.shadowColor
|
|
1668
1680
|
}, null, 8, ht)], 8, mt),
|
|
1669
|
-
|
|
1681
|
+
x("filter", {
|
|
1670
1682
|
id: `drop_shadow_${P.value}`,
|
|
1671
1683
|
"color-interpolation-filters": "sRGB",
|
|
1672
1684
|
x: "-50%",
|
|
1673
1685
|
y: "-50%",
|
|
1674
1686
|
width: "200%",
|
|
1675
1687
|
height: "200%"
|
|
1676
|
-
}, [
|
|
1688
|
+
}, [x("feDropShadow", {
|
|
1677
1689
|
dx: "0",
|
|
1678
1690
|
dy: "0",
|
|
1679
1691
|
stdDeviation: "3",
|
|
@@ -1681,594 +1693,594 @@ var rt = /* @__PURE__ */ e({ default: () => vn }), it = ["id"], at = ["id"], ot
|
|
|
1681
1693
|
"flood-color": R.value.shadowColor
|
|
1682
1694
|
}, null, 8, _t)], 8, gt)
|
|
1683
1695
|
]),
|
|
1684
|
-
I.value.type === "classic" ? (
|
|
1696
|
+
I.value.type === "classic" ? (T(!0), b(g, { key: 3 }, D(q.value.filter((e) => !e.ghost), (e, t) => (T(), b("g", null, [X(e) && V.value.dataLabels.show ? (T(), b("path", {
|
|
1685
1697
|
key: 0,
|
|
1686
|
-
d:
|
|
1687
|
-
x:
|
|
1688
|
-
y:
|
|
1689
|
-
}, 16, 16, !1, !1,
|
|
1698
|
+
d: A(Z)[t]?.connectorPath || A(ie)(e, {
|
|
1699
|
+
x: H.value.width / 2,
|
|
1700
|
+
y: H.value.height / 2
|
|
1701
|
+
}, 16, 16, !1, !1, Pr.value, 12, cr.value.curvedMarkers),
|
|
1690
1702
|
stroke: e.color,
|
|
1691
1703
|
"stroke-width": "1",
|
|
1692
1704
|
"stroke-linecap": "round",
|
|
1693
1705
|
"stroke-linejoin": "round",
|
|
1694
1706
|
fill: "none",
|
|
1695
|
-
filter:
|
|
1696
|
-
}, null, 8, vt)) :
|
|
1697
|
-
I.value.type === "polar" ? (
|
|
1707
|
+
filter: fi(t)
|
|
1708
|
+
}, null, 8, vt)) : y("", !0)]))), 256)) : y("", !0),
|
|
1709
|
+
I.value.type === "polar" ? (T(!0), b(g, { key: 4 }, D(q.value.filter((e) => !e.ghost), (e, t) => (T(), b("g", null, [X(e) && V.value.dataLabels.show ? (T(), b("path", {
|
|
1698
1710
|
key: 0,
|
|
1699
|
-
d: `M ${
|
|
1700
|
-
initX:
|
|
1701
|
-
initY:
|
|
1711
|
+
d: `M ${A(i)({
|
|
1712
|
+
initX: Y.value[t].middlePoint.x,
|
|
1713
|
+
initY: Y.value[t].middlePoint.y,
|
|
1702
1714
|
offset: 24,
|
|
1703
|
-
centerX:
|
|
1704
|
-
centerY:
|
|
1705
|
-
}).x},${
|
|
1706
|
-
initX:
|
|
1707
|
-
initY:
|
|
1715
|
+
centerX: H.value.width / 2,
|
|
1716
|
+
centerY: H.value.height / 2
|
|
1717
|
+
}).x},${A(i)({
|
|
1718
|
+
initX: Y.value[t].middlePoint.x,
|
|
1719
|
+
initY: Y.value[t].middlePoint.y,
|
|
1708
1720
|
offset: 24,
|
|
1709
|
-
centerX:
|
|
1710
|
-
centerY:
|
|
1711
|
-
}).y} ${
|
|
1721
|
+
centerX: H.value.width / 2,
|
|
1722
|
+
centerY: H.value.height / 2
|
|
1723
|
+
}).y} ${Y.value[t].middlePoint.x},${Y.value[t].middlePoint.y}`,
|
|
1712
1724
|
stroke: e.color,
|
|
1713
1725
|
"stroke-width": "1",
|
|
1714
1726
|
"stroke-linecap": "round",
|
|
1715
1727
|
"stroke-linejoin": "round",
|
|
1716
1728
|
fill: "none",
|
|
1717
|
-
filter:
|
|
1718
|
-
style:
|
|
1719
|
-
}, null, 12, yt)) :
|
|
1720
|
-
I.value.type === "classic" && R.value.useShadow ? (
|
|
1729
|
+
filter: fi(t),
|
|
1730
|
+
style: w({ transition: B.value || !I.value.serieToggleAnimation.show ? "none" : `all ${I.value.serieToggleAnimation.durationMs}ms ease-in-out` })
|
|
1731
|
+
}, null, 12, yt)) : y("", !0)]))), 256)) : y("", !0),
|
|
1732
|
+
I.value.type === "classic" && R.value.useShadow ? (T(), b("circle", {
|
|
1721
1733
|
key: 5,
|
|
1722
|
-
cx:
|
|
1723
|
-
cy:
|
|
1724
|
-
r:
|
|
1734
|
+
cx: H.value.width / 2,
|
|
1735
|
+
cy: H.value.height / 2,
|
|
1736
|
+
r: K.value <= 0 ? 10 : K.value,
|
|
1725
1737
|
fill: z.value.backgroundColor,
|
|
1726
1738
|
filter: `url(#shadow_${P.value})`
|
|
1727
|
-
}, null, 8, bt)) :
|
|
1728
|
-
t.$slots.pattern ? (
|
|
1739
|
+
}, null, 8, bt)) : y("", !0),
|
|
1740
|
+
t.$slots.pattern ? (T(), b("g", xt, [(T(!0), b(g, null, D(e.dataset, (e, n) => (T(), b("defs", { key: `pattern-${e.patternIndex}` }, [O(t.$slots, "pattern", We({ ref_for: !0 }, {
|
|
1729
1741
|
seriesIndex: n,
|
|
1730
1742
|
patternId: `pattern_${P.value}_${n}`
|
|
1731
|
-
}), void 0, !0)]))), 128))])) :
|
|
1732
|
-
|
|
1733
|
-
(
|
|
1743
|
+
}), void 0, !0)]))), 128))])) : y("", !0),
|
|
1744
|
+
Q.value && I.value.type === "classic" ? (T(), b(g, { key: 7 }, [
|
|
1745
|
+
(T(!0), b(g, null, D(J.value, (e, t) => (T(), b("path", {
|
|
1734
1746
|
stroke: z.value.backgroundColor,
|
|
1735
1747
|
d: e.arcSlice,
|
|
1736
1748
|
fill: "#FFFFFF"
|
|
1737
1749
|
}, null, 8, St))), 256)),
|
|
1738
|
-
(
|
|
1750
|
+
(T(!0), b(g, null, D(J.value, (e, t) => (T(), b("path", {
|
|
1739
1751
|
class: "vue-ui-donut-arc-path",
|
|
1740
1752
|
d: e.arcSlice,
|
|
1741
1753
|
fill: e.color,
|
|
1742
1754
|
stroke: R.value.borderColorAuto ? z.value.backgroundColor : R.value.borderColor,
|
|
1743
1755
|
"stroke-width": R.value.borderWidth,
|
|
1744
|
-
filter:
|
|
1756
|
+
filter: fi(t)
|
|
1745
1757
|
}, null, 8, Ct))), 256)),
|
|
1746
|
-
t.$slots.pattern ? (
|
|
1758
|
+
t.$slots.pattern ? (T(), b("g", wt, [(T(!0), b(g, null, D(J.value, (e, t) => (T(), b("path", {
|
|
1747
1759
|
class: "vue-ui-donut-arc-path",
|
|
1748
1760
|
d: e.arcSlice,
|
|
1749
1761
|
fill: `url(#${e.pattern})`,
|
|
1750
1762
|
stroke: R.value.borderColorAuto ? z.value.backgroundColor : R.value.borderColor,
|
|
1751
1763
|
"stroke-width": R.value.borderWidth,
|
|
1752
|
-
filter:
|
|
1753
|
-
}, null, 8, Tt))), 256))])) :
|
|
1754
|
-
], 64)) :
|
|
1755
|
-
|
|
1756
|
-
(
|
|
1764
|
+
filter: fi(t)
|
|
1765
|
+
}, null, 8, Tt))), 256))])) : y("", !0)
|
|
1766
|
+
], 64)) : y("", !0),
|
|
1767
|
+
Q.value && I.value.type === "polar" ? (T(), b(g, { key: 8 }, [q.value.length > 1 ? (T(), b("g", Et, [
|
|
1768
|
+
(T(!0), b(g, null, D(J.value, (e, t) => (T(), b("path", {
|
|
1757
1769
|
stroke: R.value.borderColorAuto ? z.value.backgroundColor : R.value.borderColor,
|
|
1758
|
-
d:
|
|
1770
|
+
d: Y.value[t].path,
|
|
1759
1771
|
fill: "#FFFFFF",
|
|
1760
|
-
style:
|
|
1772
|
+
style: w({ transition: B.value || !I.value.serieToggleAnimation.show ? "none" : `all ${I.value.serieToggleAnimation.durationMs}ms ease-in-out` })
|
|
1761
1773
|
}, null, 12, Dt))), 256)),
|
|
1762
|
-
R.value.useShadow ? (
|
|
1774
|
+
R.value.useShadow ? (T(), b("g", Ot, [(T(!0), b(g, null, D(J.value, (e, t) => (T(), b("path", {
|
|
1763
1775
|
class: "vue-ui-donut-arc-path",
|
|
1764
|
-
d:
|
|
1776
|
+
d: Y.value[t].path,
|
|
1765
1777
|
fill: "transparent",
|
|
1766
|
-
stroke: R.value.borderColorAuto ? z.value.backgroundColor :
|
|
1778
|
+
stroke: R.value.borderColorAuto ? z.value.backgroundColor : cr.value.donut.borderColor,
|
|
1767
1779
|
"stroke-width": R.value.borderWidth,
|
|
1768
1780
|
filter: `url(#drop_shadow_${P.value})`,
|
|
1769
|
-
style:
|
|
1770
|
-
}, null, 12, kt))), 256))])) :
|
|
1771
|
-
t.$slots.pattern ? (
|
|
1781
|
+
style: w({ transition: B.value || !I.value.serieToggleAnimation.show ? "none" : `all ${I.value.serieToggleAnimation.durationMs}ms ease-in-out` })
|
|
1782
|
+
}, null, 12, kt))), 256))])) : y("", !0),
|
|
1783
|
+
t.$slots.pattern ? (T(), b("g", At, [(T(!0), b(g, null, D(J.value, (e, t) => (T(), b("path", {
|
|
1772
1784
|
class: "vue-ui-donut-arc-path",
|
|
1773
|
-
d:
|
|
1785
|
+
d: Y.value[t].path,
|
|
1774
1786
|
fill: `url(#${e.pattern})`,
|
|
1775
|
-
stroke: R.value.borderColorAuto ? z.value.backgroundColor :
|
|
1787
|
+
stroke: R.value.borderColorAuto ? z.value.backgroundColor : cr.value.donut.borderColor,
|
|
1776
1788
|
"stroke-width": R.value.borderWidth,
|
|
1777
|
-
filter:
|
|
1778
|
-
style:
|
|
1789
|
+
filter: fi(t),
|
|
1790
|
+
style: w({
|
|
1779
1791
|
transition: B.value || !I.value.serieToggleAnimation.show ? "none" : `all ${I.value.serieToggleAnimation.durationMs}ms ease-in-out`,
|
|
1780
1792
|
transformOrigin: "center"
|
|
1781
1793
|
})
|
|
1782
|
-
}, null, 12, jt))), 256))])) :
|
|
1783
|
-
(
|
|
1794
|
+
}, null, 12, jt))), 256))])) : y("", !0),
|
|
1795
|
+
(T(!0), b(g, null, D(J.value, (e, t) => (T(), b("path", {
|
|
1784
1796
|
class: "vue-ui-donut-arc-path",
|
|
1785
|
-
d:
|
|
1797
|
+
d: Y.value[t].path,
|
|
1786
1798
|
fill: z.value.useGradient ? `url(#polar_gradient_${t}_${P.value})` : e.color,
|
|
1787
1799
|
stroke: R.value.borderColorAuto ? z.value.backgroundColor : R.value.borderColor,
|
|
1788
1800
|
"stroke-width": R.value.borderWidth,
|
|
1789
|
-
filter:
|
|
1790
|
-
style:
|
|
1801
|
+
filter: fi(t),
|
|
1802
|
+
style: w({ transition: B.value || !I.value.serieToggleAnimation.show ? "none" : `all ${I.value.serieToggleAnimation.durationMs}ms ease-in-out` })
|
|
1791
1803
|
}, null, 12, Mt))), 256))
|
|
1792
|
-
])) : (
|
|
1804
|
+
])) : (T(), b("g", Nt, [t.$slots.pattern ? (T(), b("circle", {
|
|
1793
1805
|
key: 0,
|
|
1794
|
-
cx:
|
|
1795
|
-
cy:
|
|
1796
|
-
r:
|
|
1797
|
-
fill: `url(#pattern_${P.value}_${
|
|
1806
|
+
cx: H.value.width / 2,
|
|
1807
|
+
cy: H.value.height / 2,
|
|
1808
|
+
r: K.value,
|
|
1809
|
+
fill: `url(#pattern_${P.value}_${q.value[0].patternIndex})`,
|
|
1798
1810
|
stroke: z.value.backgroundColor,
|
|
1799
1811
|
"stroke-width": R.value.borderWidth
|
|
1800
|
-
}, null, 8, Pt)) :
|
|
1801
|
-
cx:
|
|
1802
|
-
cy:
|
|
1803
|
-
r:
|
|
1804
|
-
fill: z.value.useGradient ? `url(#polar_gradient_0_${P.value})` :
|
|
1812
|
+
}, null, 8, Pt)) : y("", !0), x("circle", {
|
|
1813
|
+
cx: H.value.width / 2,
|
|
1814
|
+
cy: H.value.height / 2,
|
|
1815
|
+
r: K.value,
|
|
1816
|
+
fill: z.value.useGradient ? `url(#polar_gradient_0_${P.value})` : q.value[0].color,
|
|
1805
1817
|
stroke: z.value.backgroundColor,
|
|
1806
1818
|
"stroke-width": R.value.borderWidth
|
|
1807
|
-
}, null, 8, Ft)]))], 64)) : (
|
|
1819
|
+
}, null, 8, Ft)]))], 64)) : (T(), b(g, { key: 9 }, [I.value.type === "classic" && !Xr.value ? (T(), b("g", It, [(T(!0), b(g, null, D(Zr.value, (e, t) => (T(), b("path", {
|
|
1808
1820
|
class: "vue-ui-donut-arc-path",
|
|
1809
1821
|
d: e.arcSlice,
|
|
1810
1822
|
fill: e.color,
|
|
1811
1823
|
stroke: z.value.backgroundColor,
|
|
1812
1824
|
"stroke-width": R.value.borderWidth
|
|
1813
|
-
}, null, 8, Lt))), 256))])) :
|
|
1814
|
-
cx:
|
|
1815
|
-
cy:
|
|
1816
|
-
r:
|
|
1825
|
+
}, null, 8, Lt))), 256))])) : y("", !0), x("circle", {
|
|
1826
|
+
cx: H.value.width / 2,
|
|
1827
|
+
cy: H.value.height / 2,
|
|
1828
|
+
r: K.value <= 0 ? 10 : K.value,
|
|
1817
1829
|
fill: "transparent",
|
|
1818
1830
|
stroke: z.value.backgroundColor
|
|
1819
1831
|
}, null, 8, Rt)], 64)),
|
|
1820
|
-
z.value.useGradient && I.value.type === "classic" ? (
|
|
1832
|
+
z.value.useGradient && I.value.type === "classic" ? (T(), b("circle", {
|
|
1821
1833
|
key: 10,
|
|
1822
|
-
cx:
|
|
1823
|
-
cy:
|
|
1824
|
-
r:
|
|
1834
|
+
cx: H.value.width / 2,
|
|
1835
|
+
cy: H.value.height / 2,
|
|
1836
|
+
r: K.value <= 0 ? 10 : K.value,
|
|
1825
1837
|
fill: `url(#gradient_${P.value})`
|
|
1826
|
-
}, null, 8, zt)) :
|
|
1827
|
-
|
|
1838
|
+
}, null, 8, zt)) : y("", !0),
|
|
1839
|
+
x("circle", {
|
|
1828
1840
|
ref_key: "circle_hollow",
|
|
1829
|
-
ref:
|
|
1841
|
+
ref: Pn,
|
|
1830
1842
|
style: { pointerEvents: "none" },
|
|
1831
1843
|
fill: "none",
|
|
1832
|
-
cx:
|
|
1833
|
-
cy:
|
|
1834
|
-
r: Math.max(.1,
|
|
1844
|
+
cx: H.value.width / 2,
|
|
1845
|
+
cy: H.value.height / 2,
|
|
1846
|
+
r: Math.max(.1, Pr.value * 1.7)
|
|
1835
1847
|
}, null, 8, Bt),
|
|
1836
|
-
|
|
1837
|
-
d: I.value.type === "classic" ? e.arcSlice :
|
|
1848
|
+
Q.value ? (T(), b(g, { key: 11 }, [q.value.length > 1 || I.value.type === "classic" ? (T(), b("g", Vt, [(T(!0), b(g, null, D(q.value.filter((e) => !e.ghost), (e, t) => (T(), b("path", {
|
|
1849
|
+
d: I.value.type === "classic" ? e.arcSlice : Y.value[t].path,
|
|
1838
1850
|
stroke: R.value.borderColorAuto ? z.value.backgroundColor : R.value.borderColor,
|
|
1839
1851
|
fill: F.value === t ? R.value.selectedColor : "transparent",
|
|
1840
|
-
onMouseenter: (n) =>
|
|
1852
|
+
onMouseenter: (n) => $({
|
|
1841
1853
|
datapoint: e,
|
|
1842
1854
|
relativeIndex: t,
|
|
1843
1855
|
seriesIndex: e.seriesIndex,
|
|
1844
1856
|
show: !0
|
|
1845
1857
|
}),
|
|
1846
|
-
onMouseleave: (t) =>
|
|
1858
|
+
onMouseleave: (t) => ci({
|
|
1847
1859
|
datapoint: e,
|
|
1848
1860
|
seriesIndex: e.seriesIndex
|
|
1849
1861
|
}),
|
|
1850
|
-
onClick: (n) =>
|
|
1851
|
-
}, null, 40, Ht))), 256))])) : (
|
|
1852
|
-
cx:
|
|
1853
|
-
cy:
|
|
1854
|
-
r:
|
|
1862
|
+
onClick: (n) => Ci(e, t)
|
|
1863
|
+
}, null, 40, Ht))), 256))])) : (T(), b("g", Ut, [x("circle", {
|
|
1864
|
+
cx: H.value.width / 2,
|
|
1865
|
+
cy: H.value.height / 2,
|
|
1866
|
+
r: K.value,
|
|
1855
1867
|
fill: "transparent",
|
|
1856
|
-
onMouseenter: n[0] ||= (e) =>
|
|
1857
|
-
datapoint:
|
|
1868
|
+
onMouseenter: n[0] ||= (e) => $({
|
|
1869
|
+
datapoint: q.value[0],
|
|
1858
1870
|
relativeIndex: 0,
|
|
1859
|
-
seriesIndex:
|
|
1871
|
+
seriesIndex: q.value[0].seriesIndex,
|
|
1860
1872
|
show: !0
|
|
1861
1873
|
}),
|
|
1862
|
-
onMouseleave: n[1] ||= (e) =>
|
|
1863
|
-
datapoint:
|
|
1864
|
-
seriesIndex:
|
|
1874
|
+
onMouseleave: n[1] ||= (e) => ci({
|
|
1875
|
+
datapoint: q.value[0],
|
|
1876
|
+
seriesIndex: q.value[0].seriesIndex
|
|
1865
1877
|
}),
|
|
1866
|
-
onClick: n[2] ||= (e) =>
|
|
1867
|
-
}, null, 40, Wt)]))], 64)) :
|
|
1868
|
-
I.value.type === "classic" ? (
|
|
1878
|
+
onClick: n[2] ||= (e) => Ci(q.value[0], t.i)
|
|
1879
|
+
}, null, 40, Wt)]))], 64)) : y("", !0),
|
|
1880
|
+
I.value.type === "classic" ? (T(), b("g", {
|
|
1869
1881
|
key: 12,
|
|
1870
1882
|
ref_key: "G_hollow",
|
|
1871
|
-
ref:
|
|
1883
|
+
ref: Nn,
|
|
1872
1884
|
class: "vue-data-ui-donut-hollow-labels"
|
|
1873
1885
|
}, [
|
|
1874
|
-
L.value.hollow.total.show ? (
|
|
1886
|
+
L.value.hollow.total.show ? (T(), b("text", {
|
|
1875
1887
|
key: 0,
|
|
1876
1888
|
"text-anchor": "middle",
|
|
1877
|
-
x:
|
|
1878
|
-
y:
|
|
1889
|
+
x: H.value.width / 2,
|
|
1890
|
+
y: H.value.height / 2 - (L.value.hollow.average.show ? L.value.hollow.total.fontSize : 0) + L.value.hollow.total.offsetY,
|
|
1879
1891
|
fill: L.value.hollow.total.color,
|
|
1880
1892
|
"font-size": L.value.hollow.total.fontSize,
|
|
1881
|
-
style:
|
|
1882
|
-
},
|
|
1883
|
-
L.value.hollow.total.show ? (
|
|
1893
|
+
style: w(`font-weight:${L.value.hollow.total.bold ? "bold" : ""}`)
|
|
1894
|
+
}, k(L.value.hollow.total.text), 13, Gt)) : y("", !0),
|
|
1895
|
+
L.value.hollow.total.show ? (T(), b("text", {
|
|
1884
1896
|
key: 1,
|
|
1885
1897
|
"text-anchor": "middle",
|
|
1886
|
-
x:
|
|
1887
|
-
y:
|
|
1898
|
+
x: H.value.width / 2,
|
|
1899
|
+
y: H.value.height / 2 + L.value.hollow.total.fontSize - (L.value.hollow.average.show ? L.value.hollow.total.fontSize : 0) + L.value.hollow.total.value.offsetY,
|
|
1888
1900
|
fill: L.value.hollow.total.value.color,
|
|
1889
1901
|
"font-size": L.value.hollow.total.value.fontSize,
|
|
1890
|
-
style:
|
|
1891
|
-
},
|
|
1902
|
+
style: w(`font-weight:${L.value.hollow.total.value.bold ? "bold" : ""}`)
|
|
1903
|
+
}, k(A(m)(L.value.hollow.total.value.formatter, Q.value, A(d)({
|
|
1892
1904
|
p: L.value.hollow.total.value.prefix,
|
|
1893
|
-
v:
|
|
1905
|
+
v: Q.value,
|
|
1894
1906
|
s: L.value.hollow.total.value.suffix
|
|
1895
|
-
}))), 13, Kt)) :
|
|
1896
|
-
L.value.hollow.average.show ? (
|
|
1907
|
+
}))), 13, Kt)) : y("", !0),
|
|
1908
|
+
L.value.hollow.average.show ? (T(), b("text", {
|
|
1897
1909
|
key: 2,
|
|
1898
1910
|
"text-anchor": "middle",
|
|
1899
|
-
x:
|
|
1900
|
-
y:
|
|
1911
|
+
x: H.value.width / 2,
|
|
1912
|
+
y: H.value.height / 2 + (L.value.hollow.total.show ? L.value.hollow.average.fontSize : 0) + L.value.hollow.average.offsetY,
|
|
1901
1913
|
fill: L.value.hollow.average.color,
|
|
1902
1914
|
"font-size": L.value.hollow.average.fontSize,
|
|
1903
|
-
style:
|
|
1904
|
-
},
|
|
1905
|
-
L.value.hollow.average.show ? (
|
|
1915
|
+
style: w(`font-weight:${L.value.hollow.average.bold ? "bold" : ""}`)
|
|
1916
|
+
}, k(L.value.hollow.average.text), 13, qt)) : y("", !0),
|
|
1917
|
+
L.value.hollow.average.show ? (T(), b("text", {
|
|
1906
1918
|
key: 3,
|
|
1907
1919
|
"text-anchor": "middle",
|
|
1908
|
-
x:
|
|
1909
|
-
y:
|
|
1920
|
+
x: H.value.width / 2,
|
|
1921
|
+
y: H.value.height / 2 + (L.value.hollow.total.show ? L.value.hollow.average.fontSize : 0) + L.value.hollow.average.fontSize + L.value.hollow.average.value.offsetY,
|
|
1910
1922
|
fill: L.value.hollow.average.value.color,
|
|
1911
1923
|
"font-size": L.value.hollow.average.value.fontSize,
|
|
1912
|
-
style:
|
|
1913
|
-
},
|
|
1924
|
+
style: w(`font-weight:${L.value.hollow.average.value.bold ? "bold" : ""}`)
|
|
1925
|
+
}, k(Lr.value || B.value ? "--" : A(m)(L.value.hollow.average.value.formatter, A(de)(ii.value), A(d)({
|
|
1914
1926
|
p: L.value.hollow.average.value.prefix,
|
|
1915
|
-
v:
|
|
1927
|
+
v: A(de)(ii.value),
|
|
1916
1928
|
s: L.value.hollow.average.value.suffix,
|
|
1917
1929
|
r: L.value.hollow.average.value.rounding
|
|
1918
|
-
}))), 13, Jt)) :
|
|
1919
|
-
], 512)) :
|
|
1920
|
-
(
|
|
1921
|
-
filter:
|
|
1930
|
+
}))), 13, Jt)) : y("", !0)
|
|
1931
|
+
], 512)) : y("", !0),
|
|
1932
|
+
(T(!0), b(g, null, D(J.value.filter((e) => !e.ghost), (e, n) => (T(), b("g", {
|
|
1933
|
+
filter: fi(n),
|
|
1922
1934
|
key: e.seriesIndex,
|
|
1923
|
-
opacity:
|
|
1924
|
-
}, [L.value.dataLabels.useLabelSlots ? (
|
|
1925
|
-
x:
|
|
1926
|
-
y:
|
|
1935
|
+
opacity: pi(e)
|
|
1936
|
+
}, [L.value.dataLabels.useLabelSlots ? (T(), b("g", Xt, [(T(), b("foreignObject", {
|
|
1937
|
+
x: A(p)(e, !0).anchor === "end" ? A(p)(e).x - 120 : A(p)(e, !0).anchor === "middle" ? A(p)(e).x - 60 : A(p)(e).x,
|
|
1938
|
+
y: A(h)(e) - (yi.value ? 20 : 0),
|
|
1927
1939
|
width: "120",
|
|
1928
1940
|
height: "60",
|
|
1929
1941
|
style: { overflow: "visible" }
|
|
1930
|
-
}, [
|
|
1942
|
+
}, [x("div", null, [O(t.$slots, "dataLabel", We({ ref_for: !0 }, {
|
|
1931
1943
|
datapoint: e,
|
|
1932
1944
|
isBlur: !I.value.useBlurOnHover || [null, void 0].includes(F.value) || F.value === n,
|
|
1933
|
-
isSafari:
|
|
1934
|
-
isVisible:
|
|
1935
|
-
textAlign:
|
|
1936
|
-
flexAlign:
|
|
1937
|
-
percentage:
|
|
1938
|
-
}), void 0, !0)])], 8, Zt))])) : (
|
|
1945
|
+
isSafari: yi.value,
|
|
1946
|
+
isVisible: X(e) && V.value.dataLabels.show,
|
|
1947
|
+
textAlign: A(p)(e, !0, 16, !0).anchor,
|
|
1948
|
+
flexAlign: A(p)(e, !0, 16).anchor,
|
|
1949
|
+
percentage: ti(e, J.value)
|
|
1950
|
+
}), void 0, !0)])], 8, Zt))])) : (T(), b("g", Qt, [I.value.type === "classic" ? (T(), b(g, { key: 0 }, [X(e) && V.value.dataLabels.show ? (T(), b("circle", {
|
|
1939
1951
|
key: 0,
|
|
1940
|
-
cx:
|
|
1941
|
-
cy:
|
|
1952
|
+
cx: A(Z)[n]?.markerX ?? A(p)(e).x,
|
|
1953
|
+
cy: A(Z)[n]?.markerY ?? A(h)(e) - 3.5,
|
|
1942
1954
|
fill: e.color,
|
|
1943
1955
|
stroke: z.value.backgroundColor,
|
|
1944
1956
|
"stroke-width": 1,
|
|
1945
1957
|
r: 3,
|
|
1946
1958
|
filter: !I.value.useBlurOnHover || [null, void 0].includes(F.value) || F.value === n ? "" : `url(#blur_${P.value})`,
|
|
1947
|
-
onClick: (t) =>
|
|
1948
|
-
onMouseenter: (t) =>
|
|
1959
|
+
onClick: (t) => Ci(e, n),
|
|
1960
|
+
onMouseenter: (t) => $({
|
|
1949
1961
|
datapoint: e,
|
|
1950
1962
|
relativeIndex: n,
|
|
1951
1963
|
seriesIndex: e.seriesIndex,
|
|
1952
1964
|
show: !0
|
|
1953
1965
|
}),
|
|
1954
|
-
onMouseleave: (t) =>
|
|
1966
|
+
onMouseleave: (t) => ci({
|
|
1955
1967
|
datapoint: e,
|
|
1956
1968
|
seriesIndex: e.seriesIndex
|
|
1957
1969
|
})
|
|
1958
|
-
}, null, 40, $t)) :
|
|
1970
|
+
}, null, 40, $t)) : y("", !0), L.value.dataLabels.oneLine || A(Z)[n] ? tt((T(), b("text", {
|
|
1959
1971
|
key: 1,
|
|
1960
1972
|
class: "vue-data-ui-datalabel-inline",
|
|
1961
|
-
"text-anchor":
|
|
1962
|
-
x:
|
|
1963
|
-
y:
|
|
1964
|
-
onClick: (t) =>
|
|
1965
|
-
onMouseenter: (t) =>
|
|
1973
|
+
"text-anchor": A(Z)[n]?.textAnchor || A(p)(e, !0, 12).anchor,
|
|
1974
|
+
x: A(Z)[n]?.labelX ?? A(p)(e, !0, 12).x,
|
|
1975
|
+
y: A(Z)[n]?.labelY ?? A(h)(e),
|
|
1976
|
+
onClick: (t) => Ci(e, n),
|
|
1977
|
+
onMouseenter: (t) => $({
|
|
1966
1978
|
datapoint: e,
|
|
1967
1979
|
relativeIndex: n,
|
|
1968
1980
|
seriesIndex: e.seriesIndex,
|
|
1969
1981
|
show: !0
|
|
1970
1982
|
}),
|
|
1971
|
-
onMouseleave: (t) =>
|
|
1983
|
+
onMouseleave: (t) => ci({
|
|
1972
1984
|
datapoint: e,
|
|
1973
1985
|
seriesIndex: e.seriesIndex
|
|
1974
1986
|
}),
|
|
1975
|
-
innerHTML:
|
|
1976
|
-
}, null, 40, en)), [[$e,
|
|
1987
|
+
innerHTML: ui(e, n, !!A(Z)[n])
|
|
1988
|
+
}, null, 40, en)), [[$e, X(e) && V.value.dataLabels.show]]) : (T(), b(g, { key: 2 }, [tt(x("text", {
|
|
1977
1989
|
class: "vue-data-ui-datalabel-value",
|
|
1978
|
-
"text-anchor":
|
|
1979
|
-
x:
|
|
1980
|
-
y:
|
|
1990
|
+
"text-anchor": A(Z)[n]?.textAnchor || A(p)(e, !0, 12).anchor,
|
|
1991
|
+
x: A(Z)[n]?.labelX ?? A(p)(e, !0, 12).x,
|
|
1992
|
+
y: A(Z)[n]?.labelY ?? A(h)(e),
|
|
1981
1993
|
fill: L.value.percentage.color,
|
|
1982
|
-
"font-size":
|
|
1983
|
-
style:
|
|
1984
|
-
onClick: (t) =>
|
|
1985
|
-
onMouseenter: (t) =>
|
|
1994
|
+
"font-size": Zn.value + "px",
|
|
1995
|
+
style: w(`font-weight:${L.value.percentage.bold ? "bold" : ""}`),
|
|
1996
|
+
onClick: (t) => Ci(e, n),
|
|
1997
|
+
onMouseenter: (t) => $({
|
|
1986
1998
|
datapoint: e,
|
|
1987
1999
|
relativeIndex: n,
|
|
1988
2000
|
seriesIndex: e.seriesIndex,
|
|
1989
2001
|
show: !0
|
|
1990
2002
|
}),
|
|
1991
|
-
onMouseleave: (t) =>
|
|
2003
|
+
onMouseleave: (t) => ci({
|
|
1992
2004
|
datapoint: e,
|
|
1993
2005
|
seriesIndex: e.seriesIndex
|
|
1994
2006
|
})
|
|
1995
|
-
},
|
|
2007
|
+
}, k(Si(e)), 45, tn), [[$e, X(e) && V.value.dataLabels.show]]), tt(x("text", {
|
|
1996
2008
|
class: "vue-data-ui-datalabel-name",
|
|
1997
|
-
"text-anchor":
|
|
1998
|
-
x:
|
|
1999
|
-
y: (
|
|
2009
|
+
"text-anchor": A(Z)[n]?.textAnchor || A(p)(e).anchor,
|
|
2010
|
+
x: A(Z)[n]?.labelX ?? A(p)(e, !0, 12).x,
|
|
2011
|
+
y: (A(Z)[n]?.labelY ?? A(h)(e)) + N.value * 1.2,
|
|
2000
2012
|
fill: L.value.name.color,
|
|
2001
2013
|
"font-size": N.value + "px",
|
|
2002
|
-
style:
|
|
2003
|
-
onClick: (t) =>
|
|
2004
|
-
onMouseenter: (t) =>
|
|
2014
|
+
style: w(`font-weight:${L.value.name.bold ? "bold" : ""}`),
|
|
2015
|
+
onClick: (t) => Ci(e, n),
|
|
2016
|
+
onMouseenter: (t) => $({
|
|
2005
2017
|
datapoint: e,
|
|
2006
2018
|
relativeIndex: n,
|
|
2007
2019
|
seriesIndex: e.seriesIndex,
|
|
2008
2020
|
show: !0
|
|
2009
2021
|
}),
|
|
2010
|
-
onMouseleave: (t) =>
|
|
2022
|
+
onMouseleave: (t) => ci({
|
|
2011
2023
|
datapoint: e,
|
|
2012
2024
|
seriesIndex: e.seriesIndex
|
|
2013
2025
|
}),
|
|
2014
|
-
innerHTML:
|
|
2026
|
+
innerHTML: A(a)({
|
|
2015
2027
|
content: e.name,
|
|
2016
2028
|
fontSize: N.value,
|
|
2017
2029
|
fill: L.value.name.color,
|
|
2018
|
-
x:
|
|
2019
|
-
y: (
|
|
2030
|
+
x: A(Z)[n]?.labelX ?? A(p)(e, !0, 12).x,
|
|
2031
|
+
y: (A(Z)[n]?.labelY ?? A(h)(e)) + N.value
|
|
2020
2032
|
})
|
|
2021
|
-
}, null, 44, nn), [[$e,
|
|
2033
|
+
}, null, 44, nn), [[$e, X(e, !0, 12) && V.value.dataLabels.show && L.value.name.show]])], 64))], 64)) : y("", !0), I.value.type === "polar" ? (T(), b(g, { key: 1 }, [X(e) && V.value.dataLabels.show ? (T(), b("circle", {
|
|
2022
2034
|
key: 0,
|
|
2023
|
-
cx:
|
|
2024
|
-
initX:
|
|
2025
|
-
initY:
|
|
2035
|
+
cx: A(i)({
|
|
2036
|
+
initX: Y.value[n].middlePoint.x,
|
|
2037
|
+
initY: Y.value[n].middlePoint.y,
|
|
2026
2038
|
offset: 24,
|
|
2027
|
-
centerX:
|
|
2028
|
-
centerY:
|
|
2039
|
+
centerX: H.value.width / 2,
|
|
2040
|
+
centerY: H.value.height / 2
|
|
2029
2041
|
}).x,
|
|
2030
|
-
cy:
|
|
2031
|
-
initX:
|
|
2032
|
-
initY:
|
|
2042
|
+
cy: A(i)({
|
|
2043
|
+
initX: Y.value[n].middlePoint.x,
|
|
2044
|
+
initY: Y.value[n].middlePoint.y,
|
|
2033
2045
|
offset: 24,
|
|
2034
|
-
centerX:
|
|
2035
|
-
centerY:
|
|
2046
|
+
centerX: H.value.width / 2,
|
|
2047
|
+
centerY: H.value.height / 2
|
|
2036
2048
|
}).y,
|
|
2037
2049
|
fill: e.color,
|
|
2038
2050
|
stroke: z.value.backgroundColor,
|
|
2039
2051
|
"stroke-width": 1,
|
|
2040
2052
|
r: 3,
|
|
2041
2053
|
filter: !I.value.useBlurOnHover || [null, void 0].includes(F.value) || F.value === n ? "" : `url(#blur_${P.value})`,
|
|
2042
|
-
onClick: (t) =>
|
|
2043
|
-
onMouseenter: (t) =>
|
|
2054
|
+
onClick: (t) => Ci(e, n),
|
|
2055
|
+
onMouseenter: (t) => $({
|
|
2044
2056
|
datapoint: e,
|
|
2045
2057
|
relativeIndex: n,
|
|
2046
2058
|
seriesIndex: e.seriesIndex,
|
|
2047
2059
|
show: !0
|
|
2048
2060
|
}),
|
|
2049
|
-
onMouseleave: (t) =>
|
|
2061
|
+
onMouseleave: (t) => ci({
|
|
2050
2062
|
datapoint: e,
|
|
2051
2063
|
seriesIndex: e.seriesIndex
|
|
2052
2064
|
}),
|
|
2053
|
-
style:
|
|
2054
|
-
}, null, 44, rn)) :
|
|
2065
|
+
style: w({ transition: B.value || !I.value.serieToggleAnimation.show ? "none" : `all ${I.value.serieToggleAnimation.durationMs}ms ease-in-out` })
|
|
2066
|
+
}, null, 44, rn)) : y("", !0), L.value.dataLabels.oneLine ? tt((T(), b("text", {
|
|
2055
2067
|
key: 1,
|
|
2056
2068
|
class: "vue-data-ui-datalabel-inline",
|
|
2057
|
-
"text-anchor":
|
|
2058
|
-
x:
|
|
2059
|
-
initX:
|
|
2060
|
-
initY:
|
|
2069
|
+
"text-anchor": Qr(Y.value[n].middlePoint),
|
|
2070
|
+
x: A(i)({
|
|
2071
|
+
initX: Y.value[n].middlePoint.x,
|
|
2072
|
+
initY: Y.value[n].middlePoint.y,
|
|
2061
2073
|
offset: 42,
|
|
2062
|
-
centerX:
|
|
2063
|
-
centerY:
|
|
2074
|
+
centerX: H.value.width / 2,
|
|
2075
|
+
centerY: H.value.height / 2
|
|
2064
2076
|
}).x,
|
|
2065
|
-
y:
|
|
2066
|
-
initX:
|
|
2067
|
-
initY:
|
|
2077
|
+
y: A(i)({
|
|
2078
|
+
initX: Y.value[n].middlePoint.x,
|
|
2079
|
+
initY: Y.value[n].middlePoint.y,
|
|
2068
2080
|
offset: 42,
|
|
2069
|
-
centerX:
|
|
2070
|
-
centerY:
|
|
2081
|
+
centerX: H.value.width / 2,
|
|
2082
|
+
centerY: H.value.height / 2
|
|
2071
2083
|
}).y,
|
|
2072
|
-
style:
|
|
2073
|
-
onClick: (t) =>
|
|
2074
|
-
onMouseenter: (t) =>
|
|
2084
|
+
style: w({ transition: B.value || !I.value.serieToggleAnimation.show ? "none" : `all ${I.value.serieToggleAnimation.durationMs}ms ease-in-out` }),
|
|
2085
|
+
onClick: (t) => Ci(e, n),
|
|
2086
|
+
onMouseenter: (t) => $({
|
|
2075
2087
|
datapoint: e,
|
|
2076
2088
|
relativeIndex: n,
|
|
2077
2089
|
seriesIndex: e.seriesIndex,
|
|
2078
2090
|
show: !0
|
|
2079
2091
|
}),
|
|
2080
|
-
onMouseleave: (t) =>
|
|
2092
|
+
onMouseleave: (t) => ci({
|
|
2081
2093
|
datapoint: e,
|
|
2082
2094
|
seriesIndex: e.seriesIndex
|
|
2083
2095
|
}),
|
|
2084
|
-
innerHTML:
|
|
2085
|
-
}, null, 44, an)), [[$e,
|
|
2096
|
+
innerHTML: di(e, n)
|
|
2097
|
+
}, null, 44, an)), [[$e, X(e) && V.value.dataLabels.show]]) : (T(), b(g, { key: 2 }, [X(e) && V.value.dataLabels.show ? (T(), b("text", {
|
|
2086
2098
|
key: 0,
|
|
2087
2099
|
class: "vue-data-ui-datalabel-value",
|
|
2088
|
-
"text-anchor":
|
|
2089
|
-
x:
|
|
2090
|
-
initX:
|
|
2091
|
-
initY:
|
|
2100
|
+
"text-anchor": Qr(Y.value[n].middlePoint),
|
|
2101
|
+
x: A(i)({
|
|
2102
|
+
initX: Y.value[n].middlePoint.x,
|
|
2103
|
+
initY: Y.value[n].middlePoint.y,
|
|
2092
2104
|
offset: 42,
|
|
2093
|
-
centerX:
|
|
2094
|
-
centerY:
|
|
2105
|
+
centerX: H.value.width / 2,
|
|
2106
|
+
centerY: H.value.height / 2
|
|
2095
2107
|
}).x,
|
|
2096
|
-
y:
|
|
2097
|
-
initX:
|
|
2098
|
-
initY:
|
|
2108
|
+
y: A(i)({
|
|
2109
|
+
initX: Y.value[n].middlePoint.x,
|
|
2110
|
+
initY: Y.value[n].middlePoint.y,
|
|
2099
2111
|
offset: 42,
|
|
2100
|
-
centerX:
|
|
2101
|
-
centerY:
|
|
2112
|
+
centerX: H.value.width / 2,
|
|
2113
|
+
centerY: H.value.height / 2
|
|
2102
2114
|
}).y,
|
|
2103
2115
|
fill: L.value.percentage.color,
|
|
2104
|
-
"font-size":
|
|
2105
|
-
style:
|
|
2116
|
+
"font-size": Zn.value,
|
|
2117
|
+
style: w({
|
|
2106
2118
|
transition: B.value || !I.value.serieToggleAnimation.show ? "none" : `all ${I.value.serieToggleAnimation.durationMs}ms ease-in-out`,
|
|
2107
2119
|
fontWeight: L.value.percentage.bold ? "bold" : "normal"
|
|
2108
2120
|
}),
|
|
2109
|
-
onClick: (t) =>
|
|
2110
|
-
onMouseenter: (t) =>
|
|
2121
|
+
onClick: (t) => Ci(e, n),
|
|
2122
|
+
onMouseenter: (t) => $({
|
|
2111
2123
|
datapoint: e,
|
|
2112
2124
|
relativeIndex: n,
|
|
2113
2125
|
seriesIndex: e.seriesIndex,
|
|
2114
2126
|
show: !0
|
|
2115
2127
|
}),
|
|
2116
|
-
onMouseleave: (t) =>
|
|
2128
|
+
onMouseleave: (t) => ci({
|
|
2117
2129
|
datapoint: e,
|
|
2118
2130
|
seriesIndex: e.seriesIndex
|
|
2119
2131
|
})
|
|
2120
|
-
},
|
|
2132
|
+
}, k(Si(e)), 45, on)) : y("", !0), X(e, !0, 12) && V.value.dataLabels.show && L.value.name.show ? (T(), b("text", {
|
|
2121
2133
|
key: 1,
|
|
2122
2134
|
class: "vue-data-ui-datalabel-name",
|
|
2123
|
-
"text-anchor":
|
|
2124
|
-
x:
|
|
2125
|
-
initX:
|
|
2126
|
-
initY:
|
|
2135
|
+
"text-anchor": Qr(Y.value[n].middlePoint),
|
|
2136
|
+
x: A(i)({
|
|
2137
|
+
initX: Y.value[n].middlePoint.x,
|
|
2138
|
+
initY: Y.value[n].middlePoint.y,
|
|
2127
2139
|
offset: 42,
|
|
2128
|
-
centerX:
|
|
2129
|
-
centerY:
|
|
2140
|
+
centerX: H.value.width / 2,
|
|
2141
|
+
centerY: H.value.height / 2
|
|
2130
2142
|
}).x,
|
|
2131
|
-
y:
|
|
2132
|
-
initX:
|
|
2133
|
-
initY:
|
|
2143
|
+
y: A(i)({
|
|
2144
|
+
initX: Y.value[n].middlePoint.x,
|
|
2145
|
+
initY: Y.value[n].middlePoint.y,
|
|
2134
2146
|
offset: 42,
|
|
2135
|
-
centerX:
|
|
2136
|
-
centerY:
|
|
2147
|
+
centerX: H.value.width / 2,
|
|
2148
|
+
centerY: H.value.height / 2
|
|
2137
2149
|
}).y + N.value * 1.2,
|
|
2138
2150
|
fill: L.value.name.color,
|
|
2139
2151
|
"font-size": N.value,
|
|
2140
|
-
style:
|
|
2152
|
+
style: w({
|
|
2141
2153
|
transition: B.value || !I.value.serieToggleAnimation.show ? "none" : `all ${I.value.serieToggleAnimation.durationMs}ms ease-in-out`,
|
|
2142
2154
|
fontWeight: L.value.name.bold ? "bold" : "normal"
|
|
2143
2155
|
}),
|
|
2144
|
-
onClick: (t) =>
|
|
2145
|
-
onMouseenter: (t) =>
|
|
2156
|
+
onClick: (t) => Ci(e, n),
|
|
2157
|
+
onMouseenter: (t) => $({
|
|
2146
2158
|
datapoint: e,
|
|
2147
2159
|
relativeIndex: n,
|
|
2148
2160
|
seriesIndex: e.seriesIndex,
|
|
2149
2161
|
show: !0
|
|
2150
2162
|
}),
|
|
2151
|
-
onMouseleave: (t) =>
|
|
2163
|
+
onMouseleave: (t) => ci({
|
|
2152
2164
|
datapoint: e,
|
|
2153
2165
|
seriesIndex: e.seriesIndex
|
|
2154
2166
|
}),
|
|
2155
|
-
innerHTML:
|
|
2167
|
+
innerHTML: A(a)({
|
|
2156
2168
|
content: e.name,
|
|
2157
2169
|
fontSize: N.value,
|
|
2158
2170
|
fill: L.value.name.color,
|
|
2159
|
-
x:
|
|
2160
|
-
initX:
|
|
2161
|
-
initY:
|
|
2171
|
+
x: A(i)({
|
|
2172
|
+
initX: Y.value[n].middlePoint.x,
|
|
2173
|
+
initY: Y.value[n].middlePoint.y,
|
|
2162
2174
|
offset: 42,
|
|
2163
|
-
centerX:
|
|
2164
|
-
centerY:
|
|
2175
|
+
centerX: H.value.width / 2,
|
|
2176
|
+
centerY: H.value.height / 2
|
|
2165
2177
|
}).x,
|
|
2166
|
-
y:
|
|
2167
|
-
initX:
|
|
2168
|
-
initY:
|
|
2178
|
+
y: A(i)({
|
|
2179
|
+
initX: Y.value[n].middlePoint.x,
|
|
2180
|
+
initY: Y.value[n].middlePoint.y,
|
|
2169
2181
|
offset: 42,
|
|
2170
|
-
centerX:
|
|
2171
|
-
centerY:
|
|
2182
|
+
centerX: H.value.width / 2,
|
|
2183
|
+
centerY: H.value.height / 2
|
|
2172
2184
|
}).y + N.value * 1.2
|
|
2173
2185
|
})
|
|
2174
|
-
}, null, 44, sn)) :
|
|
2186
|
+
}, null, 44, sn)) : y("", !0)], 64))], 64)) : y("", !0)])), V.value.dataLabels.show && z.value.comments.show && e.comment ? (T(), b("g", cn, [X(e) && I.value.type === "classic" ? (T(), b("foreignObject", {
|
|
2175
2187
|
key: 0,
|
|
2176
|
-
x: z.value.comments.offsetX + (
|
|
2177
|
-
y:
|
|
2188
|
+
x: z.value.comments.offsetX + (A(p)(e, !0).anchor === "end" ? A(p)(e).x - z.value.comments.width : A(p)(e, !0).anchor === "middle" ? A(p)(e).x - z.value.comments.width / 2 : A(p)(e).x),
|
|
2189
|
+
y: A(h)(e) + 24 + z.value.comments.offsetY,
|
|
2178
2190
|
width: z.value.comments.width,
|
|
2179
2191
|
height: "200",
|
|
2180
2192
|
style: {
|
|
2181
2193
|
overflow: "visible",
|
|
2182
2194
|
"pointer-events": "none"
|
|
2183
2195
|
}
|
|
2184
|
-
}, [
|
|
2196
|
+
}, [x("div", null, [O(t.$slots, "plot-comment", { plot: {
|
|
2185
2197
|
...e,
|
|
2186
|
-
textAlign:
|
|
2187
|
-
flexAlign:
|
|
2198
|
+
textAlign: A(p)(e, !0, 16, !0).anchor,
|
|
2199
|
+
flexAlign: A(p)(e, !0, 16).anchor,
|
|
2188
2200
|
isFirstLoad: B.value
|
|
2189
|
-
} }, void 0, !0)])], 8, ln)) :
|
|
2201
|
+
} }, void 0, !0)])], 8, ln)) : y("", !0), X(e) && I.value.type === "polar" ? (T(), b("foreignObject", {
|
|
2190
2202
|
key: 1,
|
|
2191
|
-
x: z.value.comments.offsetX + (
|
|
2192
|
-
initX:
|
|
2193
|
-
initY:
|
|
2203
|
+
x: z.value.comments.offsetX + (Qr(Y.value[n].middlePoint) === "end" ? A(i)({
|
|
2204
|
+
initX: Y.value[n].middlePoint.x,
|
|
2205
|
+
initY: Y.value[n].middlePoint.y,
|
|
2194
2206
|
offset: 42,
|
|
2195
|
-
centerX:
|
|
2196
|
-
centerY:
|
|
2197
|
-
}).x - z.value.comments.width :
|
|
2198
|
-
initX:
|
|
2199
|
-
initY:
|
|
2207
|
+
centerX: H.value.width / 2,
|
|
2208
|
+
centerY: H.value.height / 2
|
|
2209
|
+
}).x - z.value.comments.width : Qr(Y.value[n].middlePoint) === "middle" ? A(i)({
|
|
2210
|
+
initX: Y.value[n].middlePoint.x,
|
|
2211
|
+
initY: Y.value[n].middlePoint.y,
|
|
2200
2212
|
offset: 42,
|
|
2201
|
-
centerX:
|
|
2202
|
-
centerY:
|
|
2203
|
-
}).x - z.value.comments.width / 2 :
|
|
2204
|
-
initX:
|
|
2205
|
-
initY:
|
|
2213
|
+
centerX: H.value.width / 2,
|
|
2214
|
+
centerY: H.value.height / 2
|
|
2215
|
+
}).x - z.value.comments.width / 2 : A(i)({
|
|
2216
|
+
initX: Y.value[n].middlePoint.x,
|
|
2217
|
+
initY: Y.value[n].middlePoint.y,
|
|
2206
2218
|
offset: 42,
|
|
2207
|
-
centerX:
|
|
2208
|
-
centerY:
|
|
2219
|
+
centerX: H.value.width / 2,
|
|
2220
|
+
centerY: H.value.height / 2
|
|
2209
2221
|
}).x),
|
|
2210
|
-
y:
|
|
2222
|
+
y: $r(Y.value[n]) + z.value.comments.offsetY,
|
|
2211
2223
|
width: z.value.comments.width,
|
|
2212
2224
|
height: "200",
|
|
2213
|
-
style:
|
|
2225
|
+
style: w({
|
|
2214
2226
|
transition: B.value || !I.value.serieToggleAnimation.show ? "none" : `all ${I.value.serieToggleAnimation.durationMs}ms ease-in-out`,
|
|
2215
2227
|
overflow: "visible",
|
|
2216
2228
|
pointerEvents: "none"
|
|
2217
2229
|
})
|
|
2218
|
-
}, [
|
|
2230
|
+
}, [x("div", null, [O(t.$slots, "plot-comment", { plot: {
|
|
2219
2231
|
...e,
|
|
2220
|
-
textAlign:
|
|
2221
|
-
flexAlign:
|
|
2232
|
+
textAlign: Qr(Y.value[n].middlePoint),
|
|
2233
|
+
flexAlign: Qr(Y.value[n].middlePoint),
|
|
2222
2234
|
isFirstLoad: B.value
|
|
2223
|
-
} }, void 0, !0)])], 12, un)) :
|
|
2224
|
-
|
|
2225
|
-
...
|
|
2226
|
-
datapoints:
|
|
2227
|
-
isPrintingImg:
|
|
2228
|
-
isPrintingSvg:
|
|
2235
|
+
} }, void 0, !0)])], 12, un)) : y("", !0)])) : y("", !0)], 8, Yt))), 128)),
|
|
2236
|
+
O(t.$slots, "svg", { svg: {
|
|
2237
|
+
...H.value,
|
|
2238
|
+
datapoints: q.value,
|
|
2239
|
+
isPrintingImg: A(Or) || A(kr) || A(Li),
|
|
2240
|
+
isPrintingSvg: A(Ri)
|
|
2229
2241
|
} }, void 0, !0)
|
|
2230
|
-
], 512)], 46, ct)), t.$slots.hint ? (
|
|
2242
|
+
], 512)], 46, ct)), t.$slots.hint ? (T(), b("div", dn, [O(t.$slots, "hint", C(S({
|
|
2231
2243
|
hint: I.value.a11y.translations.keyboardNavigation,
|
|
2232
|
-
isVisible:
|
|
2233
|
-
})), void 0, !0)])) :
|
|
2234
|
-
t.$slots.watermark ? (
|
|
2235
|
-
|
|
2236
|
-
|
|
2244
|
+
isVisible: Xn.value
|
|
2245
|
+
})), void 0, !0)])) : y("", !0)]),
|
|
2246
|
+
t.$slots.watermark ? (T(), b("div", fn, [O(t.$slots, "watermark", C(S({ isPrinting: A(Or) || A(kr) || A(Li) || A(Ri) })), void 0, !0)])) : y("", !0),
|
|
2247
|
+
x("div", { id: `legend-bottom-${P.value}` }, null, 8, pn),
|
|
2248
|
+
Wn.value && (z.value.legend.show || t.$slots.legend) ? (T(), v(ze, {
|
|
2237
2249
|
key: 6,
|
|
2238
2250
|
to: z.value.legend.position === "top" ? `#legend-top-${P.value}` : `#legend-bottom-${P.value}`
|
|
2239
|
-
}, [
|
|
2251
|
+
}, [x("div", {
|
|
2240
2252
|
ref_key: "chartLegend",
|
|
2241
|
-
ref:
|
|
2242
|
-
}, [
|
|
2243
|
-
key: `legend_${
|
|
2244
|
-
legendSet:
|
|
2245
|
-
config:
|
|
2246
|
-
onClickMarker: n[3] ||= ({ i: e }) =>
|
|
2247
|
-
isCursorPointer:
|
|
2253
|
+
ref: In
|
|
2254
|
+
}, [O(t.$slots, "legend", { legend: Jr.value }, () => [z.value.legend.show ? (T(), v(Re, {
|
|
2255
|
+
key: `legend_${Un.value}`,
|
|
2256
|
+
legendSet: Jr.value,
|
|
2257
|
+
config: Yr.value,
|
|
2258
|
+
onClickMarker: n[3] ||= ({ i: e }) => Hr(e),
|
|
2259
|
+
isCursorPointer: lr.value
|
|
2248
2260
|
}, Be({
|
|
2249
|
-
item:
|
|
2250
|
-
style:
|
|
2261
|
+
item: j(({ legend: e, index: t }) => [x("div", {
|
|
2262
|
+
style: w(`opacity:${G.value.includes(t) ? .5 : 1}`),
|
|
2251
2263
|
onClick: (t) => e.segregate()
|
|
2252
|
-
},
|
|
2253
|
-
legendToggle:
|
|
2264
|
+
}, k(e.display), 13, mn)]),
|
|
2265
|
+
legendToggle: j(() => [Jr.value.length > 2 && z.value.legend.selectAllToggle.show && !A(dr) ? (T(), v(je, {
|
|
2254
2266
|
key: 0,
|
|
2255
2267
|
backgroundColor: z.value.legend.selectAllToggle.backgroundColor,
|
|
2256
2268
|
color: z.value.legend.selectAllToggle.color,
|
|
2257
2269
|
fontSize: z.value.legend.fontSize,
|
|
2258
|
-
checked:
|
|
2259
|
-
isCursorPointer:
|
|
2260
|
-
onToggle:
|
|
2270
|
+
checked: G.value.length > 0,
|
|
2271
|
+
isCursorPointer: lr.value,
|
|
2272
|
+
onToggle: Vr
|
|
2261
2273
|
}, null, 8, [
|
|
2262
2274
|
"backgroundColor",
|
|
2263
2275
|
"color",
|
|
2264
2276
|
"fontSize",
|
|
2265
2277
|
"checked",
|
|
2266
2278
|
"isCursorPointer"
|
|
2267
|
-
])) :
|
|
2279
|
+
])) : y("", !0)]),
|
|
2268
2280
|
_: 2
|
|
2269
2281
|
}, [t.$slots.pattern ? {
|
|
2270
2282
|
name: "legend-pattern",
|
|
2271
|
-
fn:
|
|
2283
|
+
fn: j(({ legend: e, index: t }) => [He(Ee, {
|
|
2272
2284
|
shape: e.shape,
|
|
2273
2285
|
radius: 30,
|
|
2274
2286
|
stroke: "none",
|
|
@@ -2283,22 +2295,22 @@ var rt = /* @__PURE__ */ e({ default: () => vn }), it = ["id"], at = ["id"], ot
|
|
|
2283
2295
|
"legendSet",
|
|
2284
2296
|
"config",
|
|
2285
2297
|
"isCursorPointer"
|
|
2286
|
-
])) :
|
|
2287
|
-
t.$slots.source ? (
|
|
2298
|
+
])) : y("", !0)], !0)], 512)], 8, ["to"])) : y("", !0),
|
|
2299
|
+
t.$slots.source ? (T(), b("div", {
|
|
2288
2300
|
key: 7,
|
|
2289
2301
|
ref_key: "source",
|
|
2290
|
-
ref:
|
|
2302
|
+
ref: zn,
|
|
2291
2303
|
dir: "auto"
|
|
2292
|
-
}, [
|
|
2293
|
-
t.$slots.hollow ? (
|
|
2294
|
-
total:
|
|
2295
|
-
average:
|
|
2296
|
-
dataset:
|
|
2297
|
-
...
|
|
2298
|
-
})), void 0, !0)])) :
|
|
2299
|
-
He(
|
|
2304
|
+
}, [O(t.$slots, "source", {}, void 0, !0)], 512)) : y("", !0),
|
|
2305
|
+
t.$slots.hollow ? (T(), b("div", hn, [O(t.$slots, "hollow", C(S({
|
|
2306
|
+
total: Q.value,
|
|
2307
|
+
average: ii.value,
|
|
2308
|
+
dataset: U.value,
|
|
2309
|
+
...H.value
|
|
2310
|
+
})), void 0, !0)])) : y("", !0),
|
|
2311
|
+
He(A(vn), {
|
|
2300
2312
|
teleportTo: z.value.tooltip.teleportTo,
|
|
2301
|
-
show:
|
|
2313
|
+
show: V.value.showTooltip && ir.value,
|
|
2302
2314
|
backgroundColor: z.value.tooltip.backgroundColor,
|
|
2303
2315
|
color: z.value.tooltip.color,
|
|
2304
2316
|
fontSize: z.value.tooltip.fontSize,
|
|
@@ -2309,20 +2321,20 @@ var rt = /* @__PURE__ */ e({ default: () => vn }), it = ["id"], at = ["id"], ot
|
|
|
2309
2321
|
position: z.value.tooltip.position,
|
|
2310
2322
|
offsetX: z.value.tooltip.offsetX,
|
|
2311
2323
|
offsetY: z.value.tooltip.offsetY,
|
|
2312
|
-
parent:
|
|
2313
|
-
content:
|
|
2314
|
-
isCustom:
|
|
2315
|
-
isFullscreen:
|
|
2324
|
+
parent: jn.value,
|
|
2325
|
+
content: ar.value,
|
|
2326
|
+
isCustom: si.value,
|
|
2327
|
+
isFullscreen: _i.value,
|
|
2316
2328
|
smooth: z.value.tooltip.smooth,
|
|
2317
2329
|
backdropFilter: z.value.tooltip.backdropFilter,
|
|
2318
2330
|
smoothForce: z.value.tooltip.smoothForce,
|
|
2319
2331
|
smoothSnapThreshold: z.value.tooltip.smoothSnapThrehsold,
|
|
2320
|
-
isA11yMode:
|
|
2321
|
-
a11yPosition:
|
|
2332
|
+
isA11yMode: Yn.value === "keyboard",
|
|
2333
|
+
a11yPosition: Jn.value
|
|
2322
2334
|
}, {
|
|
2323
|
-
"tooltip-before":
|
|
2324
|
-
tooltip:
|
|
2325
|
-
"tooltip-after":
|
|
2335
|
+
"tooltip-before": j(() => [O(t.$slots, "tooltip-before", C(S({ ...oi.value })), void 0, !0)]),
|
|
2336
|
+
tooltip: j(() => [O(t.$slots, "tooltip", C(S({ ...oi.value })), void 0, !0)]),
|
|
2337
|
+
"tooltip-after": j(() => [O(t.$slots, "tooltip-after", C(S({ ...oi.value })), void 0, !0)]),
|
|
2326
2338
|
_: 3
|
|
2327
2339
|
}, 8, [
|
|
2328
2340
|
"teleportTo",
|
|
@@ -2348,32 +2360,32 @@ var rt = /* @__PURE__ */ e({ default: () => vn }), it = ["id"], at = ["id"], ot
|
|
|
2348
2360
|
"isA11yMode",
|
|
2349
2361
|
"a11yPosition"
|
|
2350
2362
|
]),
|
|
2351
|
-
An.value && I.value.userOptions.buttons.table ? (
|
|
2363
|
+
An.value && I.value.userOptions.buttons.table ? (T(), v(Ye(ji.value.component), We({ key: 9 }, ji.value.props, {
|
|
2352
2364
|
ref_key: "tableUnit",
|
|
2353
|
-
ref:
|
|
2354
|
-
onClose:
|
|
2365
|
+
ref: Gn,
|
|
2366
|
+
onClose: Mi
|
|
2355
2367
|
}), Be({
|
|
2356
|
-
content:
|
|
2357
|
-
key: `table_${
|
|
2358
|
-
colNames:
|
|
2359
|
-
head:
|
|
2360
|
-
body:
|
|
2361
|
-
config:
|
|
2362
|
-
title: I.value.table.useDialog ? "" :
|
|
2368
|
+
content: j(() => [(T(), v(A(xn), {
|
|
2369
|
+
key: `table_${Hn.value}`,
|
|
2370
|
+
colNames: gi.value.colNames,
|
|
2371
|
+
head: gi.value.head,
|
|
2372
|
+
body: gi.value.body,
|
|
2373
|
+
config: gi.value.config,
|
|
2374
|
+
title: I.value.table.useDialog ? "" : ji.value.title,
|
|
2363
2375
|
withCloseButton: !I.value.table.useDialog,
|
|
2364
|
-
isCursorPointer:
|
|
2365
|
-
onClose:
|
|
2376
|
+
isCursorPointer: lr.value,
|
|
2377
|
+
onClose: Mi
|
|
2366
2378
|
}, {
|
|
2367
|
-
th:
|
|
2379
|
+
th: j(({ th: e }) => [e === "__SUM__" ? (T(), b("div", gn, [He(A(yn), {
|
|
2368
2380
|
name: "sigma",
|
|
2369
|
-
stroke:
|
|
2381
|
+
stroke: gi.value.config.th.color,
|
|
2370
2382
|
size: 16
|
|
2371
|
-
}, null, 8, ["stroke"])])) : (
|
|
2372
|
-
td:
|
|
2383
|
+
}, null, 8, ["stroke"])])) : (T(), b("div", _n, k(e), 1))]),
|
|
2384
|
+
td: j(({ td: e }) => [Ve(k(e.name ? e.name : isNaN(Number(e)) ? e.includes("%") ? e : A(m)(L.value.percentage.formatter, e, A(d)({
|
|
2373
2385
|
v: e,
|
|
2374
2386
|
s: "%",
|
|
2375
2387
|
r: L.value.percentage.rounding
|
|
2376
|
-
})) :
|
|
2388
|
+
})) : A(m)(L.value.value.formatter, e, A(d)({
|
|
2377
2389
|
p: L.value.dataLabels.prefix,
|
|
2378
2390
|
v: e,
|
|
2379
2391
|
s: L.value.dataLabels.suffix,
|
|
@@ -2392,24 +2404,24 @@ var rt = /* @__PURE__ */ e({ default: () => vn }), it = ["id"], at = ["id"], ot
|
|
|
2392
2404
|
_: 2
|
|
2393
2405
|
}, [I.value.table.useDialog ? {
|
|
2394
2406
|
name: "title",
|
|
2395
|
-
fn:
|
|
2407
|
+
fn: j(() => [Ve(k(ji.value.title), 1)]),
|
|
2396
2408
|
key: "0"
|
|
2397
2409
|
} : void 0, I.value.table.useDialog ? {
|
|
2398
2410
|
name: "actions",
|
|
2399
|
-
fn:
|
|
2411
|
+
fn: j(() => [x("button", {
|
|
2400
2412
|
tabindex: "0",
|
|
2401
2413
|
class: "vue-ui-user-options-button",
|
|
2402
|
-
onClick: n[4] ||= (e) =>
|
|
2403
|
-
style:
|
|
2404
|
-
}, [He(
|
|
2414
|
+
onClick: n[4] ||= (e) => hi(I.value.userOptions.callbacks.csv),
|
|
2415
|
+
style: w({ cursor: lr.value ? "pointer" : "default" })
|
|
2416
|
+
}, [He(A(yn), {
|
|
2405
2417
|
name: "fileCsv",
|
|
2406
|
-
stroke:
|
|
2418
|
+
stroke: ji.value.props.color
|
|
2407
2419
|
}, null, 8, ["stroke"])], 4)]),
|
|
2408
2420
|
key: "1"
|
|
2409
|
-
} : void 0]), 1040)) :
|
|
2410
|
-
|
|
2421
|
+
} : void 0]), 1040)) : y("", !0),
|
|
2422
|
+
O(t.$slots, "skeleton", {}, () => [A(dr) ? (T(), v(be, { key: 0 })) : y("", !0)], !0)
|
|
2411
2423
|
], 46, it));
|
|
2412
2424
|
}
|
|
2413
|
-
}, [["__scopeId", "data-v-
|
|
2425
|
+
}, [["__scopeId", "data-v-f5725be5"]]);
|
|
2414
2426
|
//#endregion
|
|
2415
2427
|
export { rt as n, vn as t };
|