vue-data-ui 3.9.22 → 3.10.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +76 -57
- package/dist/{Arrow-ChEFq9U7.js → Arrow-DWr41GRU.js} +1 -1
- package/dist/{BaseDraggableDialog-BHlNyA0A.js → BaseDraggableDialog-BQYfVNu8.js} +2 -2
- package/dist/{BaseIcon-DtXe9QC_.js → BaseIcon-4uOct8re.js} +29 -22
- package/dist/{BaseZoomControls-Dp7lD8dn.js → BaseZoomControls-Cb-Qq9_R.js} +2 -2
- package/dist/{ColorPicker-CnWVxKGw.js → ColorPicker-Culsjrcr.js} +2 -2
- package/dist/{DataTable-BriHstj2.js → DataTable-DyoDzNNY.js} +16 -16
- package/dist/{Legend-D2xmnFPH.js → Legend-DN5UJOBH.js} +2 -2
- package/dist/{NonSvgPenAndPaper-C7GKy0EX.js → NonSvgPenAndPaper-CNMLfAk3.js} +3 -3
- package/dist/{PackageVersion-DS0AcLc9.js → PackageVersion-D6MO5wwI.js} +1 -1
- package/dist/{PenAndPaper-DBbQVgYt.js → PenAndPaper-LTuSTmWE.js} +3 -3
- package/dist/{Shape-12_eh8zD.js → Shape-PzdCMGsP.js} +1 -1
- package/dist/{Slicer-CdBkrOVw.js → Slicer-DckZxvyx.js} +2 -2
- package/dist/{SlicerPreview-DAWQCjXt.js → SlicerPreview-CSc_cazO.js} +2 -2
- package/dist/{SparkTooltip-D_OsZuuE.js → SparkTooltip-BLTVhvm2.js} +1 -1
- package/dist/{Title-B7pkWzTi.js → Title-NgeRXqRA.js} +1 -1
- package/dist/{Tooltip-DpfUZbt7.js → Tooltip-B6qvABDL.js} +1 -1
- package/dist/{UserOptions-CEsHe7Td.js → UserOptions-CX7Xsusk.js} +7 -7
- package/dist/components/arrow.js +1 -1
- package/dist/components/vue-ui-3d-bar.js +1 -1
- package/dist/components/vue-ui-accordion.js +1 -1
- package/dist/components/vue-ui-age-pyramid.js +1 -1
- package/dist/components/vue-ui-annotator.js +1 -1
- package/dist/components/vue-ui-bullet.js +1 -1
- package/dist/components/vue-ui-bump.js +5 -0
- package/dist/components/vue-ui-candlestick.js +1 -1
- package/dist/components/vue-ui-carousel-table.js +1 -1
- package/dist/components/vue-ui-chestnut.js +1 -1
- package/dist/components/vue-ui-chord.js +1 -1
- package/dist/components/vue-ui-circle-pack.js +1 -1
- package/dist/components/vue-ui-cursor.js +1 -1
- package/dist/components/vue-ui-dag.js +1 -1
- package/dist/components/vue-ui-dashboard.js +1 -1
- package/dist/components/vue-ui-digits.js +1 -1
- package/dist/components/vue-ui-donut-evolution.js +1 -1
- package/dist/components/vue-ui-donut.js +1 -1
- package/dist/components/vue-ui-dumbbell.js +1 -1
- package/dist/components/vue-ui-flow.js +1 -1
- package/dist/components/vue-ui-funnel.js +1 -1
- package/dist/components/vue-ui-galaxy.js +1 -1
- package/dist/components/vue-ui-gauge.js +1 -1
- package/dist/components/vue-ui-geo.js +1 -1
- package/dist/components/vue-ui-gizmo.js +1 -1
- package/dist/components/vue-ui-heatmap.js +1 -1
- package/dist/components/vue-ui-history-plot.js +1 -1
- package/dist/components/vue-ui-horizontal-bar.js +1 -1
- package/dist/components/vue-ui-icon.js +1 -1
- package/dist/components/vue-ui-kpi.js +1 -1
- package/dist/components/vue-ui-mini-loader.js +1 -1
- package/dist/components/vue-ui-molecule.js +1 -1
- package/dist/components/vue-ui-mood-radar.js +1 -1
- package/dist/components/vue-ui-nested-donuts.js +1 -1
- package/dist/components/vue-ui-onion.js +1 -1
- package/dist/components/vue-ui-parallel-coordinate-plot.js +1 -1
- package/dist/components/vue-ui-quadrant.js +1 -1
- package/dist/components/vue-ui-quick-chart.js +1 -1
- package/dist/components/vue-ui-radar.js +1 -1
- package/dist/components/vue-ui-rating.js +1 -1
- package/dist/components/vue-ui-relation-circle.js +1 -1
- package/dist/components/vue-ui-ridgeline.js +1 -1
- package/dist/components/vue-ui-rings.js +1 -1
- package/dist/components/vue-ui-scatter.js +1 -1
- package/dist/components/vue-ui-skeleton.js +1 -1
- package/dist/components/vue-ui-smiley.js +1 -1
- package/dist/components/vue-ui-spark-trend.js +1 -1
- package/dist/components/vue-ui-sparkbar.js +1 -1
- package/dist/components/vue-ui-sparkgauge.js +1 -1
- package/dist/components/vue-ui-sparkhistogram.js +1 -1
- package/dist/components/vue-ui-sparkline.js +1 -1
- package/dist/components/vue-ui-sparkstackbar.js +1 -1
- package/dist/components/vue-ui-stackbar.js +1 -1
- package/dist/components/vue-ui-stackline.js +1 -1
- package/dist/components/vue-ui-strip-plot.js +1 -1
- package/dist/components/vue-ui-table-heatmap.js +1 -1
- package/dist/components/vue-ui-table-sparkline.js +1 -1
- package/dist/components/vue-ui-table.js +1 -1
- package/dist/components/vue-ui-thermometer.js +1 -1
- package/dist/components/vue-ui-timer.js +1 -1
- package/dist/components/vue-ui-tiremarks.js +1 -1
- package/dist/components/vue-ui-treemap.js +1 -1
- package/dist/components/vue-ui-vertical-bar.js +1 -1
- package/dist/components/vue-ui-waffle.js +1 -1
- package/dist/components/vue-ui-wheel.js +1 -1
- package/dist/components/vue-ui-word-cloud.js +1 -1
- package/dist/components/vue-ui-world.js +1 -1
- package/dist/components/vue-ui-xy-canvas.js +1 -1
- package/dist/components/vue-ui-xy.js +1 -1
- package/dist/{dom-to-png-WXGPkYro.js → dom-to-png-CzjUUVZt.js} +1 -1
- package/dist/{img-CqYIrJ8I.js → img-6fNF_rG0.js} +1 -1
- package/dist/{labelUtils-B3mOOEke.js → labelUtils-D6Y-n7cD.js} +1 -1
- package/dist/{lib-2iaAPQ_c.js → lib-CVHM9FhP.js} +188 -140
- package/dist/{pdf-Q5BpWMSa.js → pdf-Dd_6HF9L.js} +1 -1
- package/dist/style.css +1 -1
- package/dist/types/vue-data-ui.d.ts +218 -6
- package/dist/types/vue-ui-bump.d.ts +16 -0
- package/dist/{useAutoSizeLabelsInsideViewbox-DmpzKQ9i.js → useAutoSizeLabelsInsideViewbox-CqeJ1kZA.js} +1 -1
- package/dist/{useNestedProp-gqRzbKJy.js → useNestedProp-Ckf_2P_V.js} +271 -163
- package/dist/{usePrinter-ChVMpU2f.js → usePrinter-1NmjuP-i.js} +2 -2
- package/dist/{useThemeCheck-DGJ31Vi5.js → useThemeCheck-D1ZYXUwG.js} +5 -3
- package/dist/{vue-data-ui-nqF_cACH.js → vue-data-ui-BzP8Tvow.js} +79 -77
- package/dist/vue-data-ui.js +90 -88
- package/dist/{vue-ui-3d-bar-DmrhwUsA.js → vue-ui-3d-bar-CHeF8XHm.js} +222 -218
- package/dist/{vue-ui-accordion-CDvNAvXX.js → vue-ui-accordion-DFKaB_05.js} +3 -3
- package/dist/{vue-ui-age-pyramid-C0hgxDIF.js → vue-ui-age-pyramid-CJSA_Lp7.js} +177 -173
- package/dist/{vue-ui-annotator-koqMAb87.js → vue-ui-annotator-CNkhGqqn.js} +7 -7
- package/dist/{vue-ui-bullet-BXJCZyhh.js → vue-ui-bullet-BGO-5x4w.js} +135 -131
- package/dist/vue-ui-bump-Ds8aQyR-.js +1006 -0
- package/dist/{vue-ui-candlestick-3YdnfK3I.js → vue-ui-candlestick-Chk1Rxwa.js} +304 -300
- package/dist/{vue-ui-carousel-table-5pBU7CnX.js → vue-ui-carousel-table-BX4wS5vL.js} +4 -4
- package/dist/{vue-ui-chestnut-BmjwbHgq.js → vue-ui-chestnut-DRGQVzIZ.js} +326 -322
- package/dist/{vue-ui-chord-C_2QTHYi.js → vue-ui-chord-CzS4uqvo.js} +171 -167
- package/dist/{vue-ui-circle-pack-BeHZwuM4.js → vue-ui-circle-pack-CTo8Eihw.js} +162 -158
- package/dist/{vue-ui-cursor-YR7_jEcG.js → vue-ui-cursor-DQ1eQR4G.js} +3 -3
- package/dist/{vue-ui-dag-h6p8aZFf.js → vue-ui-dag-Vw67oxw7.js} +451 -447
- package/dist/{vue-ui-dashboard-Cl6Jnf6s.js → vue-ui-dashboard-CBX0gXdp.js} +68 -68
- package/dist/{vue-ui-digits-bUDar5q1.js → vue-ui-digits-DnsDASGD.js} +2 -2
- package/dist/{vue-ui-donut-n-wyE9bw.js → vue-ui-donut-8T6Nmsxq.js} +467 -463
- package/dist/{vue-ui-donut-evolution-DoQwbNv4.js → vue-ui-donut-evolution-C2QW-9s6.js} +354 -350
- package/dist/{vue-ui-dumbbell-BWEAHSG8.js → vue-ui-dumbbell-Bn9pd4ij.js} +240 -236
- package/dist/{vue-ui-flow-CRgC7Mlx.js → vue-ui-flow-LxJoqDKq.js} +171 -167
- package/dist/{vue-ui-funnel-CfIPZ_zB.js → vue-ui-funnel-Dijfg4TW.js} +133 -129
- package/dist/{vue-ui-galaxy-Cp_rz8IL.js → vue-ui-galaxy-J7ABN21x.js} +146 -142
- package/dist/{vue-ui-gauge-DjJ8LiGL.js → vue-ui-gauge-DAUj4HG5.js} +175 -171
- package/dist/{vue-ui-geo-DUa0LJdd.js → vue-ui-geo-DZIQ7n5z.js} +123 -119
- package/dist/{vue-ui-gizmo-DDMnc-mn.js → vue-ui-gizmo-iP8kliCe.js} +3 -3
- package/dist/{vue-ui-heatmap-Bu78wjql.js → vue-ui-heatmap-BzJ9NhwA.js} +231 -227
- package/dist/{vue-ui-history-plot-I7RFpR4m.js → vue-ui-history-plot-CiKEQ6JR.js} +252 -248
- package/dist/{vue-ui-horizontal-bar-B76RcVtC.js → vue-ui-horizontal-bar-HXGUUZ4g.js} +325 -321
- package/dist/{vue-ui-kpi-CnmyYRvK.js → vue-ui-kpi-DgSmfw2q.js} +3 -3
- package/dist/{vue-ui-mini-loader-DVEVYQd5.js → vue-ui-mini-loader-D8z1PwRZ.js} +2 -2
- package/dist/{vue-ui-molecule-B0EQor9C.js → vue-ui-molecule-BOOgtokk.js} +183 -179
- package/dist/{vue-ui-mood-radar-BXHszrJ5.js → vue-ui-mood-radar-DZzGx5Dp.js} +162 -158
- package/dist/{vue-ui-nested-donuts-Cs09jqNS.js → vue-ui-nested-donuts-BA1-O-gB.js} +178 -174
- package/dist/{vue-ui-onion-Cd4M3NhO.js → vue-ui-onion-thpUoiBE.js} +185 -181
- package/dist/{vue-ui-parallel-coordinate-plot-B3jKFKQp.js → vue-ui-parallel-coordinate-plot-DR3Ipc9q.js} +195 -191
- package/dist/{vue-ui-quadrant-BGdcyL_G.js → vue-ui-quadrant-CmCVv7Io.js} +243 -239
- package/dist/{vue-ui-quick-chart-RISnAtAO.js → vue-ui-quick-chart-D7CQqjbb.js} +295 -291
- package/dist/{vue-ui-radar-CiyUH5vY.js → vue-ui-radar-C5BYiNeE.js} +168 -164
- package/dist/{vue-ui-rating-CTN4-Xx3.js → vue-ui-rating-W6I6pacT.js} +2 -2
- package/dist/{vue-ui-relation-circle-GJ2m1KJi.js → vue-ui-relation-circle-BkWUI7cy.js} +185 -181
- package/dist/vue-ui-ridgeline-CokXNDQ5.js +1306 -0
- package/dist/{vue-ui-rings-DStX7GN9.js → vue-ui-rings-COs-uwPW.js} +299 -295
- package/dist/{vue-ui-scatter-C06XR1wk.js → vue-ui-scatter-od9j3nbg.js} +354 -350
- package/dist/{vue-ui-skeleton-BhhCaDDt.js → vue-ui-skeleton-199nlzz-.js} +3 -3
- package/dist/{vue-ui-smiley-CxVaJpm8.js → vue-ui-smiley-B23r7AWp.js} +2 -2
- package/dist/{vue-ui-spark-trend-D0C6wQaQ.js → vue-ui-spark-trend-CCh-2vX7.js} +120 -116
- package/dist/{vue-ui-sparkbar-BdiOrr_4.js → vue-ui-sparkbar-TotwU9iC.js} +84 -80
- package/dist/{vue-ui-sparkgauge-Bn69Wf48.js → vue-ui-sparkgauge-ma4q7p0M.js} +81 -77
- package/dist/{vue-ui-sparkhistogram-B2igFeIs.js → vue-ui-sparkhistogram-DkkFMKuS.js} +109 -105
- package/dist/{vue-ui-sparkline-0VCC5bBB.js → vue-ui-sparkline-B9SwcngG.js} +184 -174
- package/dist/{vue-ui-sparkstackbar-DXNNFyVU.js → vue-ui-sparkstackbar-DYz-Vson.js} +99 -95
- package/dist/{vue-ui-stackbar-O6Qnmp0y.js → vue-ui-stackbar-C_Tl2URC.js} +376 -372
- package/dist/{vue-ui-stackline-DXR5bwam.js → vue-ui-stackline-CXpElu5C.js} +347 -343
- package/dist/{vue-ui-strip-plot-Dbkd9HLL.js → vue-ui-strip-plot-DzcjpnIg.js} +248 -244
- package/dist/{vue-ui-table-CY9ofQw5.js → vue-ui-table-D_TQyQhl.js} +5 -5
- package/dist/{vue-ui-table-heatmap-Cl927pNj.js → vue-ui-table-heatmap-8kBdXO2V.js} +6 -6
- package/dist/{vue-ui-table-sparkline-JdC2NOYh.js → vue-ui-table-sparkline-CF5BnI-6.js} +174 -170
- package/dist/{vue-ui-thermometer-9e1IkvL9.js → vue-ui-thermometer-BmmwTeyy.js} +133 -129
- package/dist/{vue-ui-timer-C85qvi3A.js → vue-ui-timer-Bffy4n-P.js} +5 -5
- package/dist/{vue-ui-tiremarks-Dvynr7Ca.js → vue-ui-tiremarks-pMFoFCHr.js} +156 -152
- package/dist/{vue-ui-treemap-B2d4oGJZ.js → vue-ui-treemap-DSaqUKWM.js} +161 -157
- package/dist/{vue-ui-waffle-B3NfAP3B.js → vue-ui-waffle-BavDRJin.js} +185 -181
- package/dist/{vue-ui-wheel-Cti5RCaK.js → vue-ui-wheel-toELK-fC.js} +125 -121
- package/dist/{vue-ui-word-cloud-BGyunVJT.js → vue-ui-word-cloud-DCTGuXdW.js} +179 -175
- package/dist/{vue-ui-world-BjGu6FvN.js → vue-ui-world-7QFSvpGk.js} +6 -6
- package/dist/{vue-ui-xy-BC1zUOGw.js → vue-ui-xy-CTJtVYBG.js} +697 -693
- package/dist/{vue-ui-xy-canvas-ks3CRcLY.js → vue-ui-xy-canvas-eHl--9m7.js} +213 -209
- package/package.json +1 -1
- package/dist/vue-ui-ridgeline-BAukx7WE.js +0 -1302
|
@@ -1,26 +1,26 @@
|
|
|
1
|
-
import { computed as g, defineAsyncComponent as Se, useSlots as
|
|
2
|
-
import { o as sl, g as Ut, l as
|
|
3
|
-
import { f as
|
|
4
|
-
import { t as
|
|
5
|
-
import { u as
|
|
6
|
-
import { u as
|
|
7
|
-
import { u as
|
|
8
|
-
import { u as
|
|
9
|
-
import { u as
|
|
10
|
-
import { u as
|
|
11
|
-
import { u as
|
|
12
|
-
import
|
|
13
|
-
import { _ as
|
|
14
|
-
import
|
|
15
|
-
import
|
|
16
|
-
import { _ as
|
|
17
|
-
function
|
|
1
|
+
import { computed as g, defineAsyncComponent as Se, useSlots as jl, shallowRef as Me, ref as w, onMounted as ol, onBeforeUnmount as al, toRefs as Wl, watch as Ne, createElementBlock as i, openBlock as r, normalizeStyle as I, normalizeClass as Nt, createBlock as Pe, createCommentVNode as f, renderSlot as C, createElementVNode as b, createVNode as Ct, unref as s, withCtx as k, normalizeProps as ee, guardReactiveProps as te, createSlots as Rt, Fragment as _, renderList as j, mergeProps as Vt, toDisplayString as we, withDirectives as wt, vShow as kt, Teleport as ql, resolveDynamicComponent as Ql, createTextVNode as nl, nextTick as Jl } from "vue";
|
|
2
|
+
import { o as sl, g as Ut, l as Kl, c as Zl, t as eo, k as to, U as lo, m as rl, j as Ee, a as ge, d as ie, a3 as ul, av as oo, X as ao, s as xt, h as no, a4 as so, ac as z, a5 as ke, a6 as $, as as il, f as ro, i as uo, a1 as Ht, v as io, r as co, y as vo, ag as cl, aw as ho } from "./lib-CVHM9FhP.js";
|
|
3
|
+
import { f as fo, b as yo } from "./labelUtils-D6Y-n7cD.js";
|
|
4
|
+
import { t as go, u as po } from "./useResponsive-DfdjqQps.js";
|
|
5
|
+
import { u as bo, a as Gt } from "./useNestedProp-Ckf_2P_V.js";
|
|
6
|
+
import { u as mo } from "./usePrinter-1NmjuP-i.js";
|
|
7
|
+
import { u as Co, B as wo } from "./BaseScanner-BMpwQAfz.js";
|
|
8
|
+
import { u as ko } from "./useSvgExport-ByUukOZt.js";
|
|
9
|
+
import { u as xo } from "./useThemeCheck-D1ZYXUwG.js";
|
|
10
|
+
import { u as Ao } from "./useUserOptionState-BIvW1Kz7.js";
|
|
11
|
+
import { u as $o } from "./useChartAccessibility-9icAAmYg.js";
|
|
12
|
+
import _o from "./img-6fNF_rG0.js";
|
|
13
|
+
import { _ as To } from "./Shape-PzdCMGsP.js";
|
|
14
|
+
import Lo from "./Title-NgeRXqRA.js";
|
|
15
|
+
import So from "./Legend-DN5UJOBH.js";
|
|
16
|
+
import { _ as Mo } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
17
|
+
function Po(tt) {
|
|
18
18
|
const {
|
|
19
19
|
FINAL_CONFIG: lt,
|
|
20
|
-
noGhostDonut:
|
|
20
|
+
noGhostDonut: At,
|
|
21
21
|
svg: Re,
|
|
22
22
|
padding: ot,
|
|
23
|
-
labels_inline_fontSize:
|
|
23
|
+
labels_inline_fontSize: $t,
|
|
24
24
|
minSize: at,
|
|
25
25
|
findArcMidpoint: _t,
|
|
26
26
|
calcMarkerOffsetX: Tt,
|
|
@@ -31,17 +31,17 @@ function So(tt) {
|
|
|
31
31
|
} = tt;
|
|
32
32
|
return { smallArcLayoutsClassic: g(() => {
|
|
33
33
|
if (lt.value.type !== "classic") return {};
|
|
34
|
-
const Ve = {}, x =
|
|
34
|
+
const Ve = {}, x = At.value || [];
|
|
35
35
|
if (!x.length) return Ve;
|
|
36
|
-
const D = Re.value.width / 2, L = Re.value.height / 2, Fe = ot.value.top + 16, nt = Re.value.height - ot.value.bottom - 16, Ue =
|
|
36
|
+
const D = Re.value.width / 2, L = Re.value.height / 2, Fe = ot.value.top + 16, nt = Re.value.height - ot.value.bottom - 16, Ue = $t.value, st = Ue / 3, rt = Ue * 1.5, le = 8, pe = 6, He = D - (at.value + pe), Ge = D + (at.value + pe), ut = !!lt.value.style.chart.layout.curvedMarkers;
|
|
37
37
|
function it({ midX: h, midY: y, bandX: p, bandY: c }) {
|
|
38
|
-
if (!
|
|
38
|
+
if (!ut)
|
|
39
39
|
return `M ${h} ${y} L ${h} ${c} L ${p} ${c}`;
|
|
40
40
|
const S = p < D ? -1 : 1, V = p - h, M = c - y, ae = Math.sqrt(V * V + M * M) || 1, be = h - D, e = y - L, ne = Math.sqrt(be * be + e * e) || 1, W = be / ne, ce = e / ne, P = ne + 9;
|
|
41
|
-
function me({ x: Be, y:
|
|
42
|
-
const K = Be - D, Z =
|
|
43
|
-
if (
|
|
44
|
-
const _e = P /
|
|
41
|
+
function me({ x: Be, y: Ae }) {
|
|
42
|
+
const K = Be - D, Z = Ae - L, $e = Math.sqrt(K * K + Z * Z) || 1;
|
|
43
|
+
if ($e >= P) return { x: Be, y: Ae };
|
|
44
|
+
const _e = P / $e;
|
|
45
45
|
return {
|
|
46
46
|
x: D + K * _e,
|
|
47
47
|
y: L + Z * _e
|
|
@@ -50,14 +50,14 @@ function So(tt) {
|
|
|
50
50
|
if (ae < 56) {
|
|
51
51
|
const Be = V / ae;
|
|
52
52
|
let K = -(M / ae), Z = Be;
|
|
53
|
-
const
|
|
53
|
+
const $e = (h + p) * 0.5, _e = (y + c) * 0.5, gt = $e + K, Qe = _e + Z, m = (gt - D) * (gt - D) + (Qe - L) * (Qe - L), n = $e - K, ve = _e - Z;
|
|
54
54
|
(n - D) * (n - D) + (ve - L) * (ve - L) > m && (K = -K, Z = -Z);
|
|
55
55
|
const R = 0.78, H = h + V * R, Dt = y + M * R, O = Math.max(0, Math.min(1, (ae - 18) / 44)), se = O * O * (3 - 2 * O);
|
|
56
|
-
let
|
|
57
|
-
|
|
56
|
+
let re = 2.5 + se * 4, Je = 1 + se * 2.5;
|
|
57
|
+
re *= 0.9;
|
|
58
58
|
const Xe = {
|
|
59
|
-
x: H + K *
|
|
60
|
-
y: Dt + Z *
|
|
59
|
+
x: H + K * re + W * Je,
|
|
60
|
+
y: Dt + Z * re + ce * Je
|
|
61
61
|
}, Ke = me(Xe);
|
|
62
62
|
return `M ${h} ${y} Q ${Ke.x} ${Ke.y} ${p} ${c}`;
|
|
63
63
|
}
|
|
@@ -76,7 +76,7 @@ function So(tt) {
|
|
|
76
76
|
}
|
|
77
77
|
function ct(h) {
|
|
78
78
|
const y = String(h ?? "").split(/\n/g), p = Math.max(0, y.length - 1), c = Ue * 1.2, S = p * c;
|
|
79
|
-
return
|
|
79
|
+
return rt + S;
|
|
80
80
|
}
|
|
81
81
|
function dt({ arc: h, index: y }) {
|
|
82
82
|
const { x: p, y: c } = _t(h.path), S = Tt(h).x, V = Lt(h) - 3.5, M = ct(h.name);
|
|
@@ -180,30 +180,34 @@ function So(tt) {
|
|
|
180
180
|
}), Ve;
|
|
181
181
|
}) };
|
|
182
182
|
}
|
|
183
|
-
const dl = { style: { chart: { backgroundColor: "#1A1A1A", color: "#CCCCCC", layout: { labels: { percentage: { color: "#CCCCCC" }, name: { color: "#CCCCCC" }, hollow: { total: { color: "#CCCCCC", value: { color: "#CCCCCC" } }, average: { color: "#CCCCCC", value: { color: "#CCCCCC" } } } } }, legend: { backgroundColor: "#1A1A1A", color: "#CCCCCC" }, title: { color: "#CCCCCC", subtitle: { color: "#757575" } }, tooltip: { backgroundColor: "#1A1A1A", backgroundOpacity: 70, color: "#CCCCCC", borderColor: "#5A5A5A" } } }, table: { th: { backgroundColor: "#1A1A1A", color: "#CCCCCC" }, td: { backgroundColor: "#1A1A1A", color: "#CCCCCC" } } },
|
|
183
|
+
const dl = { userOptions: { show: !1 }, style: { chart: { useGradient: !1, legend: { show: !1 } } } }, vl = { userOptions: { show: !1 }, style: { chart: { backgroundColor: "#1A1A1A", color: "#CCCCCC", useGradient: !1, layout: { labels: { percentage: { color: "#CCCCCC" }, name: { color: "#CCCCCC" }, hollow: { total: { color: "#CCCCCC", value: { color: "#CCCCCC" } }, average: { color: "#CCCCCC", value: { color: "#CCCCCC" } } } } }, title: { color: "#CCCCCC", subtitle: { color: "#757575" } }, tooltip: { backgroundColor: "#1A1A1A", backgroundOpacity: 70, color: "#CCCCCC", borderColor: "#3A3A3A" }, legend: { show: !1, backgroundColor: "#1A1A1A", color: "#CCCCCC" } } }, table: { th: { backgroundColor: "#1A1A1A", color: "#CCCCCC" }, td: { backgroundColor: "#1A1A1A", color: "#CCCCCC" } } }, hl = { style: { chart: { backgroundColor: "#1A1A1A", color: "#CCCCCC", layout: { labels: { percentage: { color: "#CCCCCC" }, name: { color: "#CCCCCC" }, hollow: { total: { color: "#CCCCCC", value: { color: "#CCCCCC" } }, average: { color: "#CCCCCC", value: { color: "#CCCCCC" } } } } }, legend: { backgroundColor: "#1A1A1A", color: "#CCCCCC" }, title: { color: "#CCCCCC", subtitle: { color: "#757575" } }, tooltip: { backgroundColor: "#1A1A1A", backgroundOpacity: 70, color: "#CCCCCC", borderColor: "#5A5A5A" } } }, table: { th: { backgroundColor: "#1A1A1A", color: "#CCCCCC" }, td: { backgroundColor: "#1A1A1A", color: "#CCCCCC" } } }, fl = { style: { chart: { backgroundColor: "#FFF8E1", color: "#424242", layout: { labels: { percentage: { color: "#424242" }, name: { color: "#424242" }, hollow: { total: { color: "#424242", value: { color: "#424242" } }, average: { color: "#424242", value: { color: "#424242" } } } } }, legend: { backgroundColor: "#FFF8E1", color: "#424242" }, title: { color: "#424242", subtitle: { color: "#757575" } }, tooltip: { backgroundColor: "#FFECB3", backgroundOpacity: 30, color: "#424242", borderColor: "#FF8A65" } } }, table: { th: { backgroundColor: "#FFF8E1", color: "#424242" }, td: { backgroundColor: "#FFF8E1", color: "#424242" } } }, yl = { style: { chart: { backgroundColor: "#1E1E1E", color: "#BDBDBD", layout: { labels: { percentage: { color: "#BDBDBD" }, name: { color: "#BDBDBD" }, hollow: { total: { color: "#BDBDBD", value: { color: "#BDBDBD" } }, average: { color: "#BDBDBD", value: { color: "#BDBDBD" } } } } }, legend: { backgroundColor: "#1E1E1E", color: "#BDBDBD" }, title: { color: "#FFF8E1", subtitle: { color: "#BDBDBD" } }, tooltip: { backgroundColor: "#1E1E1E", backgroundOpacity: 30, color: "#FFF8E1", borderColor: "#FF8A65" } } }, table: { th: { backgroundColor: "#1E1E1E", color: "#BDBDBD" }, td: { backgroundColor: "#1E1E1E", color: "#BDBDBD" } } }, gl = { style: { chart: { backgroundColor: "#f6f6fb", color: "#50606C", layout: { labels: { percentage: { color: "#61747E" }, name: { color: "#8A9892" }, hollow: { total: { color: "#8A9892", value: { color: "#61747E" } }, average: { color: "#8A9892", value: { color: "#61747E" } } } } }, legend: { backgroundColor: "#f6f6fb", color: "#61747E" }, title: { color: "#50606C", subtitle: { color: "#718890" } }, tooltip: { backgroundColor: "#f6f6fb", color: "#50606C" } } }, table: { th: { backgroundColor: "#f6f6fb", color: "#50606C" }, td: { backgroundColor: "#f6f6fb", color: "#50606C" } } }, pl = { style: { chart: { backgroundColor: "#1A1A1A", color: "#99AA99", layout: { labels: { percentage: { color: "#AACCAA" }, name: { color: "#99CC99" }, hollow: { total: { color: "#99CC99", value: { color: "#AACCAA" } }, average: { color: "#99CC99", value: { color: "#AACCAA" } } } } }, legend: { backgroundColor: "#1A1A1A", color: "#99AA99" }, title: { color: "#66CC66", subtitle: { color: "#99AA99" } }, tooltip: { backgroundColor: "#2A2F2A", color: "#AACCAA", borderColor: "#66CC66" } } }, table: { th: { backgroundColor: "#1A1A1A", color: "#99AA99" }, td: { backgroundColor: "#1A1A1A", color: "#AACCAA" } } }, bl = { style: { chart: { backgroundColor: "#fbfafa", color: "#8A9892", layout: { labels: { percentage: { color: "#A0AC94" }, name: { color: "#8A9892" }, hollow: { total: { color: "#8A9892", value: { color: "#A0AC94" } }, average: { color: "#8A9892", value: { color: "#A0AC94" } } } } }, legend: { backgroundColor: "#fbfafa", color: "#99AA99" }, title: { color: "#8A9892", subtitle: { color: "#99AA99" } }, tooltip: { backgroundColor: "#fbfafa", color: "#8A9892" } } }, table: { th: { backgroundColor: "#fbfafa", color: "#8F837A" }, td: { backgroundColor: "#fbfafa", color: "#8F837A" } } }, ml = {
|
|
184
184
|
default: {},
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
185
|
+
minimal: dl,
|
|
186
|
+
minimalDark: vl,
|
|
187
|
+
dark: hl,
|
|
188
|
+
celebration: fl,
|
|
189
|
+
celebrationNight: yl,
|
|
190
|
+
concrete: gl,
|
|
191
|
+
hack: pl,
|
|
192
|
+
zen: bl
|
|
193
|
+
}, fn = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
192
194
|
__proto__: null,
|
|
193
|
-
celebration:
|
|
194
|
-
celebrationNight:
|
|
195
|
-
concrete:
|
|
196
|
-
dark:
|
|
197
|
-
default:
|
|
198
|
-
hack:
|
|
199
|
-
|
|
200
|
-
|
|
195
|
+
celebration: fl,
|
|
196
|
+
celebrationNight: yl,
|
|
197
|
+
concrete: gl,
|
|
198
|
+
dark: hl,
|
|
199
|
+
default: ml,
|
|
200
|
+
hack: pl,
|
|
201
|
+
minimal: dl,
|
|
202
|
+
minimalDark: vl,
|
|
203
|
+
zen: bl
|
|
204
|
+
}, Symbol.toStringTag, { value: "Module" })), Fo = ["id"], Io = ["id"], Do = ["xmlns", "viewBox"], Bo = ["width", "height"], zo = { key: 1 }, Oo = ["id"], Yo = ["stop-color"], Eo = ["offset", "stop-color"], Xo = ["offset", "stop-color"], No = ["stop-color"], Ro = { key: 2 }, Vo = ["id", "cx", "cy"], Uo = ["stop-color", "stop-opacity"], Ho = ["stop-color"], Go = ["id"], jo = ["id"], Wo = ["id"], qo = ["flood-color"], Qo = ["id"], Jo = ["flood-color"], Ko = ["d", "stroke", "filter"], Zo = ["d", "stroke", "filter"], ea = ["cx", "cy", "r", "fill", "filter"], ta = { key: 6 }, la = ["stroke", "d"], oa = ["d", "fill", "stroke", "stroke-width", "filter"], aa = { key: 0 }, na = ["d", "fill", "stroke", "stroke-width", "filter"], sa = { key: 0 }, ra = ["stroke", "d"], ua = { key: 0 }, ia = ["d", "stroke", "stroke-width", "filter"], ca = { key: 1 }, da = ["d", "fill", "stroke", "stroke-width", "filter"], va = ["d", "fill", "stroke", "stroke-width", "filter"], ha = { key: 1 }, fa = ["cx", "cy", "r", "fill", "stroke", "stroke-width"], ya = ["cx", "cy", "r", "fill", "stroke", "stroke-width"], ga = { key: 0 }, pa = ["d", "fill", "stroke", "stroke-width"], ba = ["cx", "cy", "r", "stroke"], ma = ["cx", "cy", "r", "fill"], Ca = ["cx", "cy", "r"], wa = { key: 0 }, ka = ["d", "stroke", "fill", "onMouseenter", "onMouseleave", "onClick"], xa = { key: 1 }, Aa = ["cx", "cy", "r"], $a = ["x", "y", "fill", "font-size"], _a = ["x", "y", "fill", "font-size"], Ta = ["x", "y", "fill", "font-size"], La = ["x", "y", "fill", "font-size"], Sa = ["filter", "opacity"], Ma = { key: 0 }, Pa = ["x", "y"], Fa = { key: 1 }, Ia = ["cx", "cy", "fill", "stroke", "filter", "onClick", "onMouseenter", "onMouseleave"], Da = ["text-anchor", "x", "y", "onClick", "onMouseenter", "onMouseleave", "innerHTML"], Ba = ["text-anchor", "x", "y", "fill", "font-size", "onClick", "onMouseenter", "onMouseleave"], za = ["text-anchor", "x", "y", "fill", "font-size", "onClick", "onMouseenter", "onMouseleave", "innerHTML"], Oa = ["cx", "cy", "fill", "stroke", "filter", "onClick", "onMouseenter", "onMouseleave"], Ya = ["text-anchor", "x", "y", "onClick", "onMouseenter", "onMouseleave", "innerHTML"], Ea = ["text-anchor", "x", "y", "fill", "font-size", "onClick", "onMouseenter", "onMouseleave"], Xa = ["text-anchor", "x", "y", "fill", "font-size", "onClick", "onMouseenter", "onMouseleave", "innerHTML"], Na = { key: 2 }, Ra = ["x", "y", "width"], Va = ["x", "y", "width"], Ua = {
|
|
201
205
|
key: 4,
|
|
202
206
|
class: "vue-data-ui-watermark"
|
|
203
|
-
},
|
|
207
|
+
}, Ha = ["id"], Ga = ["onClick"], ja = {
|
|
204
208
|
key: 7,
|
|
205
209
|
class: "vue-ui-donut-hollow"
|
|
206
|
-
},
|
|
210
|
+
}, Wa = ["innerHTML"], qa = {
|
|
207
211
|
__name: "vue-ui-donut",
|
|
208
212
|
props: {
|
|
209
213
|
config: {
|
|
@@ -220,15 +224,15 @@ const dl = { style: { chart: { backgroundColor: "#1A1A1A", color: "#CCCCCC", lay
|
|
|
220
224
|
}
|
|
221
225
|
},
|
|
222
226
|
emits: ["selectLegend", "selectDatapoint"],
|
|
223
|
-
setup(tt, { expose: lt, emit:
|
|
224
|
-
const Re = Se(() => import("./Tooltip-
|
|
227
|
+
setup(tt, { expose: lt, emit: At }) {
|
|
228
|
+
const Re = Se(() => import("./Tooltip-B6qvABDL.js")), ot = Se(() => import("./BaseIcon-4uOct8re.js")), $t = Se(() => import("./vue-ui-accordion-DFKaB_05.js")), at = Se(() => import("./DataTable-DyoDzNNY.js")), _t = Se(() => import("./PenAndPaper-LTuSTmWE.js")), Tt = Se(() => import("./UserOptions-CX7Xsusk.js")), Lt = Se(() => import("./PackageVersion-D6MO5wwI.js")), St = Se(() => import("./BaseDraggableDialog-BQYfVNu8.js")), { vue_ui_donut: Mt } = bo(), { isThemeValid: Pt, warnInvalidTheme: jt } = xo(), Ve = jl(), x = tt, D = g({
|
|
225
229
|
get() {
|
|
226
230
|
return !!x.dataset && x.dataset.length;
|
|
227
231
|
},
|
|
228
232
|
set(l) {
|
|
229
233
|
return l;
|
|
230
234
|
}
|
|
231
|
-
}), L = Me(null), Fe =
|
|
235
|
+
}), L = Me(null), Fe = w(null), nt = w(null), Ue = w(null), st = Me(null), rt = Me(null), le = Me(null), pe = Me(null), He = Me(null), Ge = Me(null), ut = w(0), it = w(0), ct = w(0), dt = w(!1), Ie = w(null), je = w(null), xe = g({
|
|
232
236
|
get: () => e.value.style.chart.layout.labels.percentage.fontSize,
|
|
233
237
|
set: (l) => l
|
|
234
238
|
}), N = g({
|
|
@@ -244,7 +248,7 @@ const dl = { style: { chart: { backgroundColor: "#1A1A1A", color: "#CCCCCC", lay
|
|
|
244
248
|
We = !1;
|
|
245
249
|
const l = e.value, a = Fe.value, t = de.value;
|
|
246
250
|
if (!l.autoSize || !a || !t) return;
|
|
247
|
-
const [o,
|
|
251
|
+
const [o, u, d, A] = t.getAttribute("viewBox").split(" ").map(Number), T = { x: o, y: u, width: d, height: A }, E = [
|
|
248
252
|
{
|
|
249
253
|
selector: ".vue-data-ui-datalabel-value",
|
|
250
254
|
baseSize: l.style.chart.layout.labels.percentage.fontSize,
|
|
@@ -264,17 +268,17 @@ const dl = { style: { chart: { backgroundColor: "#1A1A1A", color: "#CCCCCC", lay
|
|
|
264
268
|
sizeRef: oe
|
|
265
269
|
}
|
|
266
270
|
];
|
|
267
|
-
E.map((G) => a.querySelectorAll(G.selector).length).reduce((G, Ye) => G + Ye, 0) !== 0 && E.forEach(({ selector: G, baseSize: Ye, minSize:
|
|
268
|
-
a.querySelectorAll(G).forEach((
|
|
269
|
-
const
|
|
270
|
-
el:
|
|
271
|
+
E.map((G) => a.querySelectorAll(G.selector).length).reduce((G, Ye) => G + Ye, 0) !== 0 && E.forEach(({ selector: G, baseSize: Ye, minSize: Vl, sizeRef: Ul }) => {
|
|
272
|
+
a.querySelectorAll(G).forEach((Hl) => {
|
|
273
|
+
const Gl = ro({
|
|
274
|
+
el: Hl,
|
|
271
275
|
bounds: T,
|
|
272
276
|
currentFontSize: Ye,
|
|
273
|
-
minFontSize:
|
|
277
|
+
minFontSize: Vl,
|
|
274
278
|
attempts: 200,
|
|
275
279
|
padding: 1
|
|
276
280
|
});
|
|
277
|
-
|
|
281
|
+
Ul.value = Gl;
|
|
278
282
|
});
|
|
279
283
|
});
|
|
280
284
|
}));
|
|
@@ -305,7 +309,7 @@ const dl = { style: { chart: { backgroundColor: "#1A1A1A", color: "#CCCCCC", lay
|
|
|
305
309
|
type: "dataset",
|
|
306
310
|
debug: y.value
|
|
307
311
|
}), D.value = !1, ce.value = !0) : (x.dataset.forEach((l, a) => {
|
|
308
|
-
|
|
312
|
+
Kl({
|
|
309
313
|
datasetObject: l,
|
|
310
314
|
requiredAttributes: ["name", "values"]
|
|
311
315
|
}).forEach((t) => {
|
|
@@ -326,14 +330,14 @@ const dl = { style: { chart: { backgroundColor: "#1A1A1A", color: "#CCCCCC", lay
|
|
|
326
330
|
debug: y.value
|
|
327
331
|
});
|
|
328
332
|
})), sl(x.dataset) || (ce.value = e.value.loading), e.value.responsive) {
|
|
329
|
-
const l =
|
|
330
|
-
const { width: a, height: t } =
|
|
333
|
+
const l = go(() => {
|
|
334
|
+
const { width: a, height: t } = po({
|
|
331
335
|
chart: L.value,
|
|
332
336
|
title: e.value.style.chart.title.text ? st.value : null,
|
|
333
|
-
legend: e.value.style.chart.legend.show ?
|
|
337
|
+
legend: e.value.style.chart.legend.show ? rt.value : null,
|
|
334
338
|
source: He.value,
|
|
335
339
|
noTitle: Ge.value,
|
|
336
|
-
padding: e.value.autoSize ? void 0 :
|
|
340
|
+
padding: e.value.autoSize ? void 0 : Ae.value
|
|
337
341
|
});
|
|
338
342
|
requestAnimationFrame(() => {
|
|
339
343
|
n.value.width = a, n.value.height = t, B();
|
|
@@ -342,7 +346,7 @@ const dl = { style: { chart: { backgroundColor: "#1A1A1A", color: "#CCCCCC", lay
|
|
|
342
346
|
le.value && (pe.value && le.value.unobserve(pe.value), le.value.disconnect()), le.value = new ResizeObserver(l), pe.value = L.value.parentNode, le.value.observe(pe.value);
|
|
343
347
|
}
|
|
344
348
|
}
|
|
345
|
-
const c =
|
|
349
|
+
const c = w(Zl()), S = w(!1), V = w(""), M = w(null), ae = w(0);
|
|
346
350
|
function be() {
|
|
347
351
|
const l = Gt({
|
|
348
352
|
userConfig: x.config,
|
|
@@ -356,7 +360,7 @@ const dl = { style: { chart: { backgroundColor: "#1A1A1A", color: "#CCCCCC", lay
|
|
|
356
360
|
jt(l), a = l;
|
|
357
361
|
else {
|
|
358
362
|
const o = Gt({
|
|
359
|
-
userConfig:
|
|
363
|
+
userConfig: ml[t] || x.config,
|
|
360
364
|
defaultConfig: l
|
|
361
365
|
});
|
|
362
366
|
a = {
|
|
@@ -364,13 +368,13 @@ const dl = { style: { chart: { backgroundColor: "#1A1A1A", color: "#CCCCCC", lay
|
|
|
364
368
|
userConfig: x.config,
|
|
365
369
|
defaultConfig: o
|
|
366
370
|
}),
|
|
367
|
-
customPalette: l.customPalette.length ? l.customPalette :
|
|
371
|
+
customPalette: l.customPalette.length ? l.customPalette : uo[t] || Ee
|
|
368
372
|
};
|
|
369
373
|
}
|
|
370
374
|
return x.config && Ht(x.config, "events.datapointEnter") ? a.events.datapointEnter = x.config.events.datapointEnter : a.events.datapointEnter = null, x.config && Ht(x.config, "events.datapointLeave") ? a.events.datapointLeave = x.config.events.datapointLeave : a.events.datapointLeave = null, x.config && Ht(x.config, "events.datapointClick") ? a.events.datapointClick = x.config.events.datapointClick : a.events.datapointClick = null, a;
|
|
371
375
|
}
|
|
372
|
-
const e =
|
|
373
|
-
...
|
|
376
|
+
const e = w(be()), { loading: ne, FINAL_DATASET: W, manualLoading: ce, skeletonDataset: vt } = Co({
|
|
377
|
+
...Wl(x),
|
|
374
378
|
FINAL_CONFIG: e,
|
|
375
379
|
prepareConfig: be,
|
|
376
380
|
skeletonDataset: [
|
|
@@ -390,7 +394,7 @@ const dl = { style: { chart: { backgroundColor: "#1A1A1A", color: "#CCCCCC", lay
|
|
|
390
394
|
color: "#CACACA"
|
|
391
395
|
}
|
|
392
396
|
],
|
|
393
|
-
skeletonConfig:
|
|
397
|
+
skeletonConfig: eo({
|
|
394
398
|
defaultConfig: e.value,
|
|
395
399
|
userConfig: {
|
|
396
400
|
useCssAnimation: !1,
|
|
@@ -427,17 +431,17 @@ const dl = { style: { chart: { backgroundColor: "#1A1A1A", color: "#CCCCCC", lay
|
|
|
427
431
|
}
|
|
428
432
|
}
|
|
429
433
|
})
|
|
430
|
-
}), P =
|
|
434
|
+
}), P = w(!0), me = w(0), Ft = w(!1);
|
|
431
435
|
let J = null;
|
|
432
436
|
function De(l = 1e3) {
|
|
433
437
|
return new Promise((a) => {
|
|
434
438
|
const t = performance.now();
|
|
435
|
-
function o(
|
|
436
|
-
const d =
|
|
439
|
+
function o(u) {
|
|
440
|
+
const d = u - t, A = Math.min(
|
|
437
441
|
d / l,
|
|
438
442
|
1
|
|
439
|
-
), T = cl(
|
|
440
|
-
me.value = T,
|
|
443
|
+
), T = cl(A);
|
|
444
|
+
me.value = T, A < 1 ? J = requestAnimationFrame(o) : (me.value = 1, J = null, a());
|
|
441
445
|
}
|
|
442
446
|
J !== null && cancelAnimationFrame(J), me.value = 0, J = requestAnimationFrame(o);
|
|
443
447
|
});
|
|
@@ -458,7 +462,7 @@ const dl = { style: { chart: { backgroundColor: "#1A1A1A", color: "#CCCCCC", lay
|
|
|
458
462
|
},
|
|
459
463
|
{ immediate: !0 }
|
|
460
464
|
);
|
|
461
|
-
const { userOptionsVisible: qe, setUserOptionsVisibility: ht, keepUserOptionState: ft } =
|
|
465
|
+
const { userOptionsVisible: qe, setUserOptionsVisibility: ht, keepUserOptionState: ft } = Ao({ config: e.value }), { svgRef: de } = $o({ config: e.value.style.chart.title });
|
|
462
466
|
function yt() {
|
|
463
467
|
ht(!0);
|
|
464
468
|
}
|
|
@@ -466,9 +470,9 @@ const dl = { style: { chart: { backgroundColor: "#1A1A1A", color: "#CCCCCC", lay
|
|
|
466
470
|
ht(!1);
|
|
467
471
|
}
|
|
468
472
|
Ne(() => x.config, (l) => {
|
|
469
|
-
ne.value || (e.value = be()), qe.value = !e.value.userOptions.showOnChartHover, p(),
|
|
473
|
+
ne.value || (e.value = be()), qe.value = !e.value.userOptions.showOnChartHover, p(), ut.value += 1, it.value += 1, ct.value += 1, m.value.dataLabels.show = e.value.style.chart.layout.labels.dataLabels.show, m.value.showTable = e.value.table.show, m.value.showTooltip = e.value.style.chart.tooltip.show, n.value.height = e.value.style.chart.height, n.value.width = e.value.style.chart.width;
|
|
470
474
|
}, { deep: !0 });
|
|
471
|
-
const
|
|
475
|
+
const Ae = g(() => {
|
|
472
476
|
const { top: l, right: a, bottom: t, left: o } = e.value.style.chart.padding;
|
|
473
477
|
return {
|
|
474
478
|
css: `padding:${l}px ${a}px ${t}px ${o}px`,
|
|
@@ -477,11 +481,11 @@ const dl = { style: { chart: { backgroundColor: "#1A1A1A", color: "#CCCCCC", lay
|
|
|
477
481
|
bottom: t,
|
|
478
482
|
left: o
|
|
479
483
|
};
|
|
480
|
-
}), { isPrinting: K, isImaging: Z, generatePdf:
|
|
484
|
+
}), { isPrinting: K, isImaging: Z, generatePdf: $e, generateImage: _e } = mo({
|
|
481
485
|
elementId: `donut__${c.value}`,
|
|
482
486
|
fileName: e.value.style.chart.title.text || "vue-ui-donut",
|
|
483
487
|
options: e.value.userOptions.print
|
|
484
|
-
}), gt = g(() => e.value.userOptions.show && !e.value.style.chart.title.text), Qe = g(() =>
|
|
488
|
+
}), gt = g(() => e.value.userOptions.show && !e.value.style.chart.title.text), Qe = g(() => to(e.value.customPalette)), m = w({
|
|
485
489
|
dataLabels: {
|
|
486
490
|
show: e.value.style.chart.layout.labels.dataLabels.show
|
|
487
491
|
},
|
|
@@ -497,7 +501,7 @@ const dl = { style: { chart: { backgroundColor: "#1A1A1A", color: "#CCCCCC", lay
|
|
|
497
501
|
showTooltip: e.value.style.chart.tooltip.show
|
|
498
502
|
};
|
|
499
503
|
}, { immediate: !0 });
|
|
500
|
-
const n =
|
|
504
|
+
const n = w({
|
|
501
505
|
height: e.value.style.chart.height,
|
|
502
506
|
width: e.value.style.chart.width
|
|
503
507
|
}), ve = g(() => {
|
|
@@ -505,13 +509,13 @@ const dl = { style: { chart: { backgroundColor: "#1A1A1A", color: "#CCCCCC", lay
|
|
|
505
509
|
return F.value;
|
|
506
510
|
const l = e.value.style.chart.layout.donut.strokeWidth / 512, a = Math.min(n.value.width, n.value.height) * l, t = a > F.value ? F.value : a;
|
|
507
511
|
return Math.max(t, 12 * (1 + l));
|
|
508
|
-
}), It =
|
|
509
|
-
const t = Array.isArray(l.values) ? l.values.reduce((
|
|
512
|
+
}), It = At, R = g(() => W.value.sort((l, a) => {
|
|
513
|
+
const t = Array.isArray(l.values) ? l.values.reduce((u, d) => u + d, 0) : l.value ?? 0, o = Array.isArray(a.values) ? a.values.reduce((u, d) => u + d, 0) : a.value ?? 0;
|
|
510
514
|
return l.ghost && !a.ghost ? 1 : a.ghost && !l.ghost ? -1 : o - t;
|
|
511
515
|
}).map((l, a) => ({
|
|
512
516
|
name: l.name,
|
|
513
|
-
color:
|
|
514
|
-
value:
|
|
517
|
+
color: rl(l.color) || Qe.value[a] || Ee[a] || Ee[a % Ee.length],
|
|
518
|
+
value: lo(l.values.reduce((t, o) => t + o, 0)),
|
|
515
519
|
absoluteValues: l.values,
|
|
516
520
|
comment: l.comment || "",
|
|
517
521
|
patternIndex: a,
|
|
@@ -533,27 +537,27 @@ const dl = { style: { chart: { backgroundColor: "#1A1A1A", color: "#CCCCCC", lay
|
|
|
533
537
|
value: l.value
|
|
534
538
|
}));
|
|
535
539
|
}
|
|
536
|
-
const O =
|
|
537
|
-
function Je({ from: l, to: a, duration: t, onUpdate: o, onDone:
|
|
538
|
-
const
|
|
540
|
+
const O = w([]), se = w(!1), re = w(null);
|
|
541
|
+
function Je({ from: l, to: a, duration: t, onUpdate: o, onDone: u, easing: d = cl }) {
|
|
542
|
+
const A = performance.now();
|
|
539
543
|
function T(E) {
|
|
540
|
-
const X = Math.min((E -
|
|
541
|
-
o(Ye, X), X < 1 ? requestAnimationFrame(T) : (o(a, 1),
|
|
544
|
+
const X = Math.min((E - A) / t, 1), G = d(X), Ye = l + (a - l) * G;
|
|
545
|
+
o(Ye, X), X < 1 ? requestAnimationFrame(T) : (o(a, 1), u && u());
|
|
542
546
|
}
|
|
543
547
|
requestAnimationFrame(T);
|
|
544
548
|
}
|
|
545
549
|
function Xe(l) {
|
|
546
|
-
const a = R.value.find((
|
|
547
|
-
let o = H.value.find((
|
|
550
|
+
const a = R.value.find((u, d) => d === l);
|
|
551
|
+
let o = H.value.find((u, d) => d === l).value;
|
|
548
552
|
if (O.value.includes(l)) {
|
|
549
553
|
let d = function() {
|
|
550
554
|
H.value = H.value.map(
|
|
551
|
-
(T, E) => l === E ? { ...T, value:
|
|
555
|
+
(T, E) => l === E ? { ...T, value: u } : T
|
|
552
556
|
);
|
|
553
|
-
},
|
|
554
|
-
se.value = !0,
|
|
557
|
+
}, A = function() {
|
|
558
|
+
se.value = !0, re.value = l, Je({
|
|
555
559
|
from: o,
|
|
556
|
-
to:
|
|
560
|
+
to: u,
|
|
557
561
|
duration: e.value.serieToggleAnimation.durationMs,
|
|
558
562
|
onUpdate: (T, E) => {
|
|
559
563
|
H.value = H.value.map(
|
|
@@ -561,39 +565,39 @@ const dl = { style: { chart: { backgroundColor: "#1A1A1A", color: "#CCCCCC", lay
|
|
|
561
565
|
), requestAnimationFrame(B);
|
|
562
566
|
},
|
|
563
567
|
onDone: () => {
|
|
564
|
-
d(), se.value = !1,
|
|
568
|
+
d(), se.value = !1, re.value = null;
|
|
565
569
|
}
|
|
566
570
|
});
|
|
567
571
|
};
|
|
568
572
|
O.value = O.value.filter((T) => T !== l);
|
|
569
|
-
const
|
|
570
|
-
e.value.serieToggleAnimation.show && e.value.type === "classic" ?
|
|
573
|
+
const u = a.value;
|
|
574
|
+
e.value.serieToggleAnimation.show && e.value.type === "classic" ? A() : (d(), requestAnimationFrame(B));
|
|
571
575
|
} else if (O.value.length < R.value.length - 1) {
|
|
572
|
-
let
|
|
576
|
+
let u = function() {
|
|
573
577
|
O.value.push(l), H.value = H.value.map(
|
|
574
|
-
(
|
|
578
|
+
(A, T) => l === T ? { ...A, value: 0 } : A
|
|
575
579
|
);
|
|
576
580
|
}, d = function() {
|
|
577
|
-
se.value = !0,
|
|
581
|
+
se.value = !0, re.value = l, Je({
|
|
578
582
|
from: o,
|
|
579
583
|
to: 0,
|
|
580
584
|
duration: e.value.serieToggleAnimation.durationMs,
|
|
581
|
-
onUpdate: (
|
|
585
|
+
onUpdate: (A, T) => {
|
|
582
586
|
H.value = H.value.map(
|
|
583
|
-
(E, X) => l === X ? { ...E, value:
|
|
587
|
+
(E, X) => l === X ? { ...E, value: A } : E
|
|
584
588
|
), requestAnimationFrame(B);
|
|
585
589
|
},
|
|
586
590
|
onDone: () => {
|
|
587
|
-
|
|
591
|
+
u(), requestAnimationFrame(B), se.value = !1, re.value = null;
|
|
588
592
|
}
|
|
589
593
|
});
|
|
590
594
|
};
|
|
591
|
-
e.value.serieToggleAnimation.show && e.value.type === "classic" ? d() :
|
|
595
|
+
e.value.serieToggleAnimation.show && e.value.type === "classic" ? d() : u();
|
|
592
596
|
}
|
|
593
|
-
It("selectLegend",
|
|
594
|
-
name:
|
|
595
|
-
color:
|
|
596
|
-
value:
|
|
597
|
+
It("selectLegend", Ce.value.map((u) => ({
|
|
598
|
+
name: u.name,
|
|
599
|
+
color: u.color,
|
|
600
|
+
value: u.value
|
|
597
601
|
})));
|
|
598
602
|
}
|
|
599
603
|
function Ke(l) {
|
|
@@ -602,27 +606,27 @@ const dl = { style: { chart: { backgroundColor: "#1A1A1A", color: "#CCCCCC", lay
|
|
|
602
606
|
const a = R.value.find((t) => t.name === l);
|
|
603
607
|
return a || (e.value.debug && console.warn(`VueUiDonut - Series name not found "${l}"`), null);
|
|
604
608
|
}
|
|
605
|
-
function
|
|
609
|
+
function Cl(l) {
|
|
606
610
|
const a = Ke(l);
|
|
607
611
|
a !== null && O.value.includes(a.seriesIndex) && Xe(a.seriesIndex);
|
|
608
612
|
}
|
|
609
|
-
function
|
|
613
|
+
function wl(l) {
|
|
610
614
|
const a = Ke(l);
|
|
611
615
|
a !== null && (O.value.includes(a.seriesIndex) || Xe(a.seriesIndex));
|
|
612
616
|
}
|
|
613
|
-
const
|
|
617
|
+
const kl = g(
|
|
614
618
|
() => W.value.reduce(
|
|
615
619
|
(l, a) => l + a.values.reduce((t, o) => t + o, 0),
|
|
616
620
|
0
|
|
617
621
|
)
|
|
618
|
-
),
|
|
622
|
+
), Ce = g(() => {
|
|
619
623
|
if (P.value && !ne.value) {
|
|
620
624
|
const l = me.value, a = R.value.map((o) => ({
|
|
621
625
|
...o,
|
|
622
626
|
value: o.value * l,
|
|
623
627
|
color: o.color,
|
|
624
628
|
ghost: !1
|
|
625
|
-
})), t =
|
|
629
|
+
})), t = kl.value * (1 - l);
|
|
626
630
|
return t > 0 && a.push({
|
|
627
631
|
name: "__ghost__",
|
|
628
632
|
value: t,
|
|
@@ -641,10 +645,10 @@ const dl = { style: { chart: { backgroundColor: "#1A1A1A", color: "#CCCCCC", lay
|
|
|
641
645
|
seriesIndex: a
|
|
642
646
|
})).filter((l, a) => !O.value.includes(a));
|
|
643
647
|
}), Bt = g(() => W.value.map((l, a) => {
|
|
644
|
-
const t = (l.values || []).reduce((
|
|
648
|
+
const t = (l.values || []).reduce((u, d) => u + d, 0), o = t / W.value.map((u) => (u.values || []).reduce((d, A) => d + A, 0)).reduce((u, d) => u + d, 0);
|
|
645
649
|
return {
|
|
646
650
|
name: l.name,
|
|
647
|
-
color:
|
|
651
|
+
color: rl(l.color) || Qe.value[a] || Ee[a] || Ee[a % Ee.length],
|
|
648
652
|
value: t,
|
|
649
653
|
shape: "circle",
|
|
650
654
|
patternIndex: a,
|
|
@@ -660,9 +664,9 @@ const dl = { style: { chart: { backgroundColor: "#1A1A1A", color: "#CCCCCC", lay
|
|
|
660
664
|
v: qt(l),
|
|
661
665
|
s: "%",
|
|
662
666
|
r: e.value.style.chart.legend.roundingPercentage
|
|
663
|
-
})),
|
|
667
|
+
})), u = Et({
|
|
664
668
|
val: t,
|
|
665
|
-
percentage: O.value.includes(a) ? `${
|
|
669
|
+
percentage: O.value.includes(a) ? `${Dl(l.proportion * 100)}%` : o,
|
|
666
670
|
showVal: e.value.style.chart.legend.showValue,
|
|
667
671
|
showPercentage: e.value.style.chart.legend.showPercentage,
|
|
668
672
|
config: e.value.style.chart.legend
|
|
@@ -672,9 +676,9 @@ const dl = { style: { chart: { backgroundColor: "#1A1A1A", color: "#CCCCCC", lay
|
|
|
672
676
|
opacity: O.value.includes(a) ? 0.5 : 1,
|
|
673
677
|
segregate: () => !se.value && Xe(a),
|
|
674
678
|
isSegregated: O.value.includes(a),
|
|
675
|
-
display: `${l.name}${e.value.style.chart.legend.showPercentage || e.value.style.chart.legend.showValue ? ": " : ""}${
|
|
679
|
+
display: `${l.name}${e.value.style.chart.legend.showPercentage || e.value.style.chart.legend.showValue ? ": " : ""}${u}`
|
|
676
680
|
};
|
|
677
|
-
})),
|
|
681
|
+
})), xl = g(() => ({
|
|
678
682
|
cy: "donut-div-legend",
|
|
679
683
|
backgroundColor: e.value.style.chart.legend.backgroundColor,
|
|
680
684
|
color: e.value.style.chart.legend.color,
|
|
@@ -684,7 +688,7 @@ const dl = { style: { chart: { backgroundColor: "#1A1A1A", color: "#CCCCCC", lay
|
|
|
684
688
|
})), F = g(() => {
|
|
685
689
|
const l = e.value.style.chart.layout.donut.radiusRatio, a = Math.max(0.1, Math.min(0.50001, l)), t = Math.min(n.value.width * a, n.value.height * a);
|
|
686
690
|
return Math.max(12, t);
|
|
687
|
-
}), U = g(() =>
|
|
691
|
+
}), U = g(() => ul({ series: Ce.value }, n.value.width / 2, n.value.height / 2, F.value, F.value, 1.99999, 2, 1, 360, 105.25, ve.value)), Al = g(() => Math.abs(Ce.value.map((l) => l.value).reduce((l, a) => l + a, 0)) > 0), $l = g(() => ul({
|
|
688
692
|
series: [
|
|
689
693
|
{
|
|
690
694
|
value: 1,
|
|
@@ -696,9 +700,9 @@ const dl = { style: { chart: { backgroundColor: "#1A1A1A", color: "#CCCCCC", lay
|
|
|
696
700
|
absoluteValues: [1]
|
|
697
701
|
}
|
|
698
702
|
]
|
|
699
|
-
}, n.value.width / 2, n.value.height / 2, F.value, F.value, 1.99999, 2, 1, 360, 105.25, ve.value)),
|
|
700
|
-
const l = Math.max(...
|
|
701
|
-
return
|
|
703
|
+
}, n.value.width / 2, n.value.height / 2, F.value, F.value, 1.99999, 2, 1, 360, 105.25, ve.value)), ue = g(() => U.value.filter((l) => !l.ghost)), v = g(() => {
|
|
704
|
+
const l = Math.max(...Ce.value.map((t) => t.value)), a = Ce.value.map((t) => t.value / l);
|
|
705
|
+
return oo({
|
|
702
706
|
series: a,
|
|
703
707
|
center: {
|
|
704
708
|
x: n.value.width / 2,
|
|
@@ -711,32 +715,32 @@ const dl = { style: { chart: { backgroundColor: "#1A1A1A", color: "#CCCCCC", lay
|
|
|
711
715
|
function Te(l) {
|
|
712
716
|
return l.x > n.value.width / 2 + 6 ? "start" : l.x < n.value.width / 2 - 6 ? "end" : "middle";
|
|
713
717
|
}
|
|
714
|
-
function
|
|
718
|
+
function _l(l) {
|
|
715
719
|
return l.middlePoint.y > n.value.height / 2 ? z({ initX: l.middlePoint.x, initY: l.middlePoint.y, offset: 100, centerX: n.value.width / 2, centerY: n.value.height / 2 }).y : z({ initX: l.middlePoint.x, initY: l.middlePoint.y, offset: 0, centerX: n.value.width / 2, centerY: n.value.height / 2 }).y - 100;
|
|
716
720
|
}
|
|
717
721
|
function q(l) {
|
|
718
722
|
return l.proportion * 100 > e.value.style.chart.layout.labels.dataLabels.hideUnderValue;
|
|
719
723
|
}
|
|
720
|
-
function
|
|
721
|
-
const t = e.value.style.chart.layout.labels.dataLabels.hideUnderValue, o = e.value.style.chart.layout.labels.dataLabels.smallArcClusterThreshold, d = (
|
|
724
|
+
function Tl(l, a) {
|
|
725
|
+
const t = e.value.style.chart.layout.labels.dataLabels.hideUnderValue, o = e.value.style.chart.layout.labels.dataLabels.smallArcClusterThreshold, d = (Sl.value[a] ?? l.proportion ?? 0) * 100;
|
|
722
726
|
return d > t && d <= o;
|
|
723
727
|
}
|
|
724
|
-
const { smallArcLayoutsClassic: Y } =
|
|
728
|
+
const { smallArcLayoutsClassic: Y } = Po({
|
|
725
729
|
FINAL_CONFIG: e,
|
|
726
|
-
noGhostDonut:
|
|
730
|
+
noGhostDonut: ue,
|
|
727
731
|
svg: n,
|
|
728
|
-
padding:
|
|
732
|
+
padding: Ae,
|
|
729
733
|
labels_inline_fontSize: oe,
|
|
730
734
|
minSize: F,
|
|
731
|
-
findArcMidpoint:
|
|
732
|
-
calcMarkerOffsetX:
|
|
733
|
-
calcMarkerOffsetY:
|
|
734
|
-
animatingIndex:
|
|
735
|
+
findArcMidpoint: ho,
|
|
736
|
+
calcMarkerOffsetX: $,
|
|
737
|
+
calcMarkerOffsetY: ke,
|
|
738
|
+
animatingIndex: re,
|
|
735
739
|
segregated: O,
|
|
736
|
-
isSmallArc:
|
|
740
|
+
isSmallArc: Tl
|
|
737
741
|
});
|
|
738
742
|
function Wt(l, a) {
|
|
739
|
-
const t = l.value /
|
|
743
|
+
const t = l.value / Ll(a);
|
|
740
744
|
return isNaN(t) ? 0 : ge(
|
|
741
745
|
e.value.style.chart.layout.labels.percentage.formatter,
|
|
742
746
|
t * 100,
|
|
@@ -748,37 +752,37 @@ const dl = { style: { chart: { backgroundColor: "#1A1A1A", color: "#CCCCCC", lay
|
|
|
748
752
|
{ datapoint: l }
|
|
749
753
|
);
|
|
750
754
|
}
|
|
751
|
-
function
|
|
755
|
+
function Ll(l) {
|
|
752
756
|
return [...l].map((a) => a.value).reduce((a, t) => a + t, 0);
|
|
753
757
|
}
|
|
754
|
-
const Q = g(() =>
|
|
758
|
+
const Q = g(() => Ce.value.map((l) => l.value).reduce((l, a) => l + a, 0)), Sl = g(() => {
|
|
755
759
|
const l = R.value.reduce((a, t) => a + t.value, 0);
|
|
756
760
|
return l <= 0 ? [] : R.value.map((a) => a.value / l);
|
|
757
|
-
}), zt = g(() => Q.value /
|
|
761
|
+
}), zt = g(() => Q.value / Ce.value.length);
|
|
758
762
|
function qt(l) {
|
|
759
763
|
return se.value ? l.proportion * 100 : l.value / Q.value * 100;
|
|
760
764
|
}
|
|
761
|
-
const Ot =
|
|
765
|
+
const Ot = w(null), Ze = w(!1);
|
|
762
766
|
function he({ datapoint: l, seriesIndex: a }) {
|
|
763
767
|
e.value.events.datapointLeave && e.value.events.datapointLeave({ datapoint: l, seriesIndex: a }), S.value = !1, M.value = null;
|
|
764
768
|
}
|
|
765
769
|
function fe({ datapoint: l, relativeIndex: a, seriesIndex: t, show: o = !1 }) {
|
|
766
770
|
e.value.events.datapointEnter && e.value.events.datapointEnter({ datapoint: l, seriesIndex: t }), Ot.value = { datapoint: l, seriesIndex: t, config: e.value, series: R.value }, S.value = o, M.value = a;
|
|
767
|
-
let
|
|
771
|
+
let u = "";
|
|
768
772
|
const d = e.value.style.chart.tooltip.customFormat;
|
|
769
|
-
if (Ze.value = !1,
|
|
773
|
+
if (Ze.value = !1, vo(d))
|
|
770
774
|
try {
|
|
771
|
-
const
|
|
775
|
+
const A = d({
|
|
772
776
|
seriesIndex: t,
|
|
773
777
|
datapoint: l,
|
|
774
778
|
series: R.value,
|
|
775
779
|
config: e.value
|
|
776
780
|
});
|
|
777
|
-
typeof
|
|
781
|
+
typeof A == "string" && (V.value = A, Ze.value = !0);
|
|
778
782
|
} catch {
|
|
779
783
|
console.warn("Custom format cannot be applied."), Ze.value = !1;
|
|
780
784
|
}
|
|
781
|
-
Ze.value || (
|
|
785
|
+
Ze.value || (u += `<div style="width:100%;text-align:center;border-bottom:1px solid ${e.value.style.chart.tooltip.borderColor};padding-bottom:6px;margin-bottom:3px;">${l.name}</div>`, u += `<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="${l.color}"/>${Ve.pattern ? `<circle cx="30" cy="30" r="30" stroke="none" fill="url(#pattern_${c.value}_${t})"/>` : ""}</svg>`, u += `<b>${Et({
|
|
782
786
|
showVal: e.value.style.chart.tooltip.showValue,
|
|
783
787
|
showPercentage: e.value.style.chart.tooltip.showPercentage,
|
|
784
788
|
val: `<span>${ge(
|
|
@@ -811,9 +815,9 @@ const dl = { style: { chart: { backgroundColor: "#1A1A1A", color: "#CCCCCC", lay
|
|
|
811
815
|
}
|
|
812
816
|
),
|
|
813
817
|
config: e.value.style.chart.tooltip
|
|
814
|
-
})}</b></div>`, e.value.style.chart.comments.showInTooltip && l.comment && (
|
|
818
|
+
})}</b></div>`, e.value.style.chart.comments.showInTooltip && l.comment && (u += `<div class="vue-data-ui-tooltip-comment" style="background:${l.color}20; padding: 6px; margin-bottom: 6px; margin-top:6px; border-left: 1px solid ${l.color}">${l.comment}</div>`), V.value = `<div>${u}</div>`);
|
|
815
819
|
}
|
|
816
|
-
function
|
|
820
|
+
function Ml(l, a) {
|
|
817
821
|
const t = Y.value[a];
|
|
818
822
|
if (t)
|
|
819
823
|
return {
|
|
@@ -821,15 +825,15 @@ const dl = { style: { chart: { backgroundColor: "#1A1A1A", color: "#CCCCCC", lay
|
|
|
821
825
|
x: t.labelX,
|
|
822
826
|
y: t.labelY
|
|
823
827
|
};
|
|
824
|
-
const o =
|
|
828
|
+
const o = $(l, !0, 12);
|
|
825
829
|
return {
|
|
826
830
|
textAnchor: o.anchor,
|
|
827
831
|
x: o.x,
|
|
828
|
-
y:
|
|
832
|
+
y: ke(l)
|
|
829
833
|
};
|
|
830
834
|
}
|
|
831
|
-
function
|
|
832
|
-
const { textAnchor: o, x:
|
|
835
|
+
function Pl(l, a, t) {
|
|
836
|
+
const { textAnchor: o, x: u } = Ml(l, a), d = bt(l), A = `
|
|
833
837
|
<tspan
|
|
834
838
|
class="vue-data-ui-datalabel-inline"
|
|
835
839
|
fill="${e.value.style.chart.layout.labels.percentage.color}"
|
|
@@ -849,31 +853,31 @@ const dl = { style: { chart: { backgroundColor: "#1A1A1A", color: "#CCCCCC", lay
|
|
|
849
853
|
` : E += `
|
|
850
854
|
<tspan
|
|
851
855
|
class="${t ? "vue-data-ui-datalabel-inline" : "vue-data-ui-datalabel-name"}"
|
|
852
|
-
x="${
|
|
856
|
+
x="${u}"
|
|
853
857
|
dy="${(t ? oe.value : N.value) * 1.2}"
|
|
854
858
|
fill="${e.value.style.chart.layout.labels.name.color}"
|
|
855
859
|
font-size="${t ? oe.value : N.value}px"
|
|
856
860
|
style="font-weight:${e.value.style.chart.layout.labels.name.bold ? "bold" : ""}"
|
|
857
861
|
>${X}</tspan>
|
|
858
862
|
`;
|
|
859
|
-
}), o === "end" ? `${E}${
|
|
863
|
+
}), o === "end" ? `${E}${A}` : `${A}${E}`;
|
|
860
864
|
}
|
|
861
|
-
function
|
|
862
|
-
const t = v.value[a].middlePoint, o = Te(t),
|
|
865
|
+
function Fl(l, a) {
|
|
866
|
+
const t = v.value[a].middlePoint, o = Te(t), u = z({
|
|
863
867
|
initX: t.x,
|
|
864
868
|
initY: t.y,
|
|
865
869
|
offset: 42,
|
|
866
870
|
centerX: n.value.width / 2,
|
|
867
871
|
centerY: n.value.height / 2
|
|
868
|
-
}), d =
|
|
869
|
-
|
|
870
|
-
const
|
|
872
|
+
}), d = u.x;
|
|
873
|
+
u.y;
|
|
874
|
+
const A = bt(l), T = `
|
|
871
875
|
<tspan
|
|
872
876
|
class="vue-data-ui-datalabel-value"
|
|
873
877
|
fill="${e.value.style.chart.layout.labels.percentage.color}"
|
|
874
878
|
font-size="${xe.value}px"
|
|
875
879
|
style="font-weight:${e.value.style.chart.layout.labels.percentage.bold ? "bold" : "normal"}"
|
|
876
|
-
>${
|
|
880
|
+
>${A}</tspan>
|
|
877
881
|
`, E = String(l.name ?? "").split(/\n/g);
|
|
878
882
|
let X = "";
|
|
879
883
|
return E.forEach((G, Ye) => {
|
|
@@ -899,25 +903,25 @@ const dl = { style: { chart: { backgroundColor: "#1A1A1A", color: "#CCCCCC", lay
|
|
|
899
903
|
function ze(l) {
|
|
900
904
|
return e.value.useBlurOnHover && ![null, void 0].includes(M.value) && M.value !== l ? `url(#blur_${c.value})` : "";
|
|
901
905
|
}
|
|
902
|
-
function
|
|
903
|
-
if (!se.value ||
|
|
906
|
+
function Il(l) {
|
|
907
|
+
if (!se.value || re.value === null || l.seriesIndex !== re.value)
|
|
904
908
|
return 1;
|
|
905
|
-
const a = (l.proportion ?? 0) * 100, t = e.value.style.chart.layout.labels.dataLabels.hideUnderValue,
|
|
906
|
-
return a >=
|
|
909
|
+
const a = (l.proportion ?? 0) * 100, t = e.value.style.chart.layout.labels.dataLabels.hideUnderValue, u = e.value.style.chart.layout.labels.dataLabels.smallArcClusterThreshold + 2, d = t;
|
|
910
|
+
return a >= u ? 1 : a <= d ? 0 : (a - d) / (u - d);
|
|
907
911
|
}
|
|
908
912
|
const Le = g(() => {
|
|
909
|
-
const l =
|
|
913
|
+
const l = Ce.value.map((t) => ({
|
|
910
914
|
name: t.name,
|
|
911
915
|
color: t.color
|
|
912
|
-
})), a =
|
|
916
|
+
})), a = Ce.value.map((t) => t.value);
|
|
913
917
|
return { head: l, body: a };
|
|
914
918
|
});
|
|
915
919
|
function Yt(l = null) {
|
|
916
|
-
|
|
917
|
-
const a = Le.value.head.map((
|
|
918
|
-
|
|
919
|
-
], [Le.value.body[d]], [isNaN(Le.value.body[d] / Q.value) ? "-" : Le.value.body[d] / Q.value * 100]]), t = [[e.value.style.chart.title.text], [e.value.style.chart.title.subtitle.text], [[""], ["val"], ["%"]]].concat(a), o =
|
|
920
|
-
l ? l(o) :
|
|
920
|
+
Jl(() => {
|
|
921
|
+
const a = Le.value.head.map((u, d) => [[
|
|
922
|
+
u.name
|
|
923
|
+
], [Le.value.body[d]], [isNaN(Le.value.body[d] / Q.value) ? "-" : Le.value.body[d] / Q.value * 100]]), t = [[e.value.style.chart.title.text], [e.value.style.chart.title.subtitle.text], [[""], ["val"], ["%"]]].concat(a), o = io(t);
|
|
924
|
+
l ? l(o) : co({ csvContent: o, title: e.value.style.chart.title.text || "vue-ui-donut" });
|
|
921
925
|
});
|
|
922
926
|
}
|
|
923
927
|
const pt = g(() => {
|
|
@@ -925,10 +929,10 @@ const dl = { style: { chart: { backgroundColor: "#1A1A1A", color: "#CCCCCC", lay
|
|
|
925
929
|
' <svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 24 24" stroke-width="1.5" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><path stroke="none" d="M0 0h24v24H0z" fill="none"/><path d="M18 16v2a1 1 0 0 1 -1 1h-11l6 -7l-6 -7h11a1 1 0 0 1 1 1v2" /></svg>',
|
|
926
930
|
ie({ p: e.value.style.chart.layout.labels.dataLabels.prefix, v: Q.value, s: e.value.style.chart.layout.labels.dataLabels.suffix, r: e.value.table.td.roundingValue }),
|
|
927
931
|
"100%"
|
|
928
|
-
], a = Le.value.head.map((
|
|
932
|
+
], a = Le.value.head.map((u, d) => [
|
|
929
933
|
{
|
|
930
|
-
color:
|
|
931
|
-
name:
|
|
934
|
+
color: u.color,
|
|
935
|
+
name: u.name || "-"
|
|
932
936
|
},
|
|
933
937
|
Le.value.body[d],
|
|
934
938
|
isNaN(Le.value.body[d] / Q.value) ? "-" : (Le.value.body[d] / Q.value * 100).toFixed(e.value.table.td.roundingPercentage) + "%"
|
|
@@ -955,13 +959,13 @@ const dl = { style: { chart: { backgroundColor: "#1A1A1A", color: "#CCCCCC", lay
|
|
|
955
959
|
body: a,
|
|
956
960
|
config: t
|
|
957
961
|
};
|
|
958
|
-
}), Oe =
|
|
962
|
+
}), Oe = w(!1);
|
|
959
963
|
function Qt(l) {
|
|
960
964
|
Oe.value = l, ae.value += 1;
|
|
961
965
|
}
|
|
962
966
|
const Jt = g(() => /^((?!chrome|android).)*safari/i.test(navigator.userAgent));
|
|
963
|
-
function
|
|
964
|
-
return
|
|
967
|
+
function Dl(l) {
|
|
968
|
+
return fo({
|
|
965
969
|
num: l,
|
|
966
970
|
rounding: e.value.style.chart.legend.roundingPercentage
|
|
967
971
|
});
|
|
@@ -971,10 +975,10 @@ const dl = { style: { chart: { backgroundColor: "#1A1A1A", color: "#CCCCCC", lay
|
|
|
971
975
|
percentage: a,
|
|
972
976
|
showVal: t,
|
|
973
977
|
showPercentage: o,
|
|
974
|
-
config:
|
|
978
|
+
config: u
|
|
975
979
|
}) {
|
|
976
|
-
return
|
|
977
|
-
config:
|
|
980
|
+
return yo({
|
|
981
|
+
config: u,
|
|
978
982
|
val: l,
|
|
979
983
|
percentage: a,
|
|
980
984
|
showVal: t,
|
|
@@ -994,7 +998,7 @@ const dl = { style: { chart: { backgroundColor: "#1A1A1A", color: "#CCCCCC", lay
|
|
|
994
998
|
}),
|
|
995
999
|
{ datapoint: l }
|
|
996
1000
|
),
|
|
997
|
-
percentage: Wt(l,
|
|
1001
|
+
percentage: Wt(l, ue.value),
|
|
998
1002
|
showVal: e.value.style.chart.layout.labels.value.show,
|
|
999
1003
|
showPercentage: !0,
|
|
1000
1004
|
config: e.value.style.chart.layout.labels.dataLabels
|
|
@@ -1012,15 +1016,15 @@ const dl = { style: { chart: { backgroundColor: "#1A1A1A", color: "#CCCCCC", lay
|
|
|
1012
1016
|
function el() {
|
|
1013
1017
|
m.value.showTooltip = !m.value.showTooltip;
|
|
1014
1018
|
}
|
|
1015
|
-
const mt =
|
|
1019
|
+
const mt = w(!1);
|
|
1016
1020
|
function Xt() {
|
|
1017
1021
|
mt.value = !mt.value;
|
|
1018
1022
|
}
|
|
1019
|
-
async function
|
|
1023
|
+
async function Bl({ scale: l = 2 } = {}) {
|
|
1020
1024
|
if (!L.value) return;
|
|
1021
|
-
const { width: a, height: t } = L.value.getBoundingClientRect(), o = a / t, { imageUri:
|
|
1025
|
+
const { width: a, height: t } = L.value.getBoundingClientRect(), o = a / t, { imageUri: u, base64: d } = await _o({ domElement: L.value, base64: !0, img: !0, scale: l });
|
|
1022
1026
|
return {
|
|
1023
|
-
imageUri:
|
|
1027
|
+
imageUri: u,
|
|
1024
1028
|
base64: d,
|
|
1025
1029
|
title: e.value.style.chart.title.text,
|
|
1026
1030
|
width: a,
|
|
@@ -1028,7 +1032,7 @@ const dl = { style: { chart: { backgroundColor: "#1A1A1A", color: "#CCCCCC", lay
|
|
|
1028
1032
|
aspectRatio: o
|
|
1029
1033
|
};
|
|
1030
1034
|
}
|
|
1031
|
-
function
|
|
1035
|
+
function zl() {
|
|
1032
1036
|
if (!Fe.value) return;
|
|
1033
1037
|
const { x: l, y: a, width: t, height: o } = Fe.value.getBBox();
|
|
1034
1038
|
de.value && de.value.setAttribute("viewBox", `${l} ${a} ${t + Math.min(0, l)} ${o + Math.min(0, a)}`);
|
|
@@ -1036,7 +1040,7 @@ const dl = { style: { chart: { backgroundColor: "#1A1A1A", color: "#CCCCCC", lay
|
|
|
1036
1040
|
const et = g(() => {
|
|
1037
1041
|
const l = e.value.table.useDialog && !e.value.table.show, a = m.value.showTable;
|
|
1038
1042
|
return {
|
|
1039
|
-
component: l ? St :
|
|
1043
|
+
component: l ? St : $t,
|
|
1040
1044
|
title: `${e.value.style.chart.title.text}${e.value.style.chart.title.subtitle.text ? `: ${e.value.style.chart.title.subtitle.text}` : ""}`,
|
|
1041
1045
|
props: l ? {
|
|
1042
1046
|
backgroundColor: e.value.table.th.backgroundColor,
|
|
@@ -1069,39 +1073,39 @@ const dl = { style: { chart: { backgroundColor: "#1A1A1A", color: "#CCCCCC", lay
|
|
|
1069
1073
|
function tl() {
|
|
1070
1074
|
m.value.showTable = !1, je.value && je.value.setTableIconState(!1);
|
|
1071
1075
|
}
|
|
1072
|
-
const
|
|
1076
|
+
const Ol = g(() => Bt.value.map((l) => ({
|
|
1073
1077
|
...l,
|
|
1074
1078
|
name: l.display
|
|
1075
|
-
}))),
|
|
1079
|
+
}))), Yl = g(() => e.value.style.chart.backgroundColor), El = g(() => e.value.style.chart.legend), Xl = g(() => e.value.style.chart.title), { exportSvg: Nl, getSvg: Rl } = ko({
|
|
1076
1080
|
svg: de,
|
|
1077
|
-
title:
|
|
1078
|
-
legend:
|
|
1079
|
-
legendItems:
|
|
1080
|
-
backgroundColor:
|
|
1081
|
+
title: Xl,
|
|
1082
|
+
legend: El,
|
|
1083
|
+
legendItems: Ol,
|
|
1084
|
+
backgroundColor: Yl
|
|
1081
1085
|
});
|
|
1082
1086
|
async function ll({ isCb: l }) {
|
|
1083
1087
|
if (l) {
|
|
1084
|
-
const { blob: a, url: t, text: o, dataUrl:
|
|
1085
|
-
e.value.userOptions.callbacks.svg({ blob: a, url: t, text: o, dataUrl:
|
|
1088
|
+
const { blob: a, url: t, text: o, dataUrl: u } = await Rl();
|
|
1089
|
+
e.value.userOptions.callbacks.svg({ blob: a, url: t, text: o, dataUrl: u });
|
|
1086
1090
|
} else
|
|
1087
|
-
|
|
1091
|
+
Nl();
|
|
1088
1092
|
}
|
|
1089
1093
|
return lt({
|
|
1090
|
-
autoSize:
|
|
1094
|
+
autoSize: zl,
|
|
1091
1095
|
getData: Dt,
|
|
1092
|
-
getImage:
|
|
1093
|
-
generatePdf:
|
|
1096
|
+
getImage: Bl,
|
|
1097
|
+
generatePdf: $e,
|
|
1094
1098
|
generateCsv: Yt,
|
|
1095
1099
|
generateImage: _e,
|
|
1096
1100
|
generateSvg: ll,
|
|
1097
|
-
hideSeries:
|
|
1098
|
-
showSeries:
|
|
1101
|
+
hideSeries: wl,
|
|
1102
|
+
showSeries: Cl,
|
|
1099
1103
|
toggleTable: Kt,
|
|
1100
1104
|
toggleLabels: Zt,
|
|
1101
1105
|
toggleTooltip: el,
|
|
1102
1106
|
toggleAnnotator: Xt,
|
|
1103
1107
|
toggleFullscreen: Qt
|
|
1104
|
-
}), (l, a) => (
|
|
1108
|
+
}), (l, a) => (r(), i("div", {
|
|
1105
1109
|
ref_key: "donutChart",
|
|
1106
1110
|
ref: L,
|
|
1107
1111
|
class: Nt(`vue-data-ui-component vue-ui-donut ${Oe.value ? "vue-data-ui-wrapper-fullscreen" : ""} ${e.value.useCssAnimation ? "" : "vue-ui-dna"}`),
|
|
@@ -1110,7 +1114,7 @@ const dl = { style: { chart: { backgroundColor: "#1A1A1A", color: "#CCCCCC", lay
|
|
|
1110
1114
|
onMouseenter: yt,
|
|
1111
1115
|
onMouseleave: Be
|
|
1112
1116
|
}, [
|
|
1113
|
-
e.value.userOptions.buttons.annotator && s(de) ? (
|
|
1117
|
+
e.value.userOptions.buttons.annotator && s(de) ? (r(), Pe(s(_t), {
|
|
1114
1118
|
key: 0,
|
|
1115
1119
|
color: e.value.style.chart.color,
|
|
1116
1120
|
backgroundColor: e.value.style.chart.backgroundColor,
|
|
@@ -1118,42 +1122,42 @@ const dl = { style: { chart: { backgroundColor: "#1A1A1A", color: "#CCCCCC", lay
|
|
|
1118
1122
|
svgRef: s(de),
|
|
1119
1123
|
onClose: Xt
|
|
1120
1124
|
}, {
|
|
1121
|
-
"annotator-action-close":
|
|
1122
|
-
|
|
1125
|
+
"annotator-action-close": k(() => [
|
|
1126
|
+
C(l.$slots, "annotator-action-close", {}, void 0, !0)
|
|
1123
1127
|
]),
|
|
1124
|
-
"annotator-action-color":
|
|
1125
|
-
|
|
1128
|
+
"annotator-action-color": k(({ color: t }) => [
|
|
1129
|
+
C(l.$slots, "annotator-action-color", ee(te({ color: t })), void 0, !0)
|
|
1126
1130
|
]),
|
|
1127
|
-
"annotator-action-draw":
|
|
1128
|
-
|
|
1131
|
+
"annotator-action-draw": k(({ mode: t }) => [
|
|
1132
|
+
C(l.$slots, "annotator-action-draw", ee(te({ mode: t })), void 0, !0)
|
|
1129
1133
|
]),
|
|
1130
|
-
"annotator-action-undo":
|
|
1131
|
-
|
|
1134
|
+
"annotator-action-undo": k(({ disabled: t }) => [
|
|
1135
|
+
C(l.$slots, "annotator-action-undo", ee(te({ disabled: t })), void 0, !0)
|
|
1132
1136
|
]),
|
|
1133
|
-
"annotator-action-redo":
|
|
1134
|
-
|
|
1137
|
+
"annotator-action-redo": k(({ disabled: t }) => [
|
|
1138
|
+
C(l.$slots, "annotator-action-redo", ee(te({ disabled: t })), void 0, !0)
|
|
1135
1139
|
]),
|
|
1136
|
-
"annotator-action-delete":
|
|
1137
|
-
|
|
1140
|
+
"annotator-action-delete": k(({ disabled: t }) => [
|
|
1141
|
+
C(l.$slots, "annotator-action-delete", ee(te({ disabled: t })), void 0, !0)
|
|
1138
1142
|
]),
|
|
1139
1143
|
_: 3
|
|
1140
1144
|
}, 8, ["color", "backgroundColor", "active", "svgRef"])) : f("", !0),
|
|
1141
|
-
|
|
1142
|
-
gt.value ? (
|
|
1145
|
+
C(l.$slots, "userConfig", {}, void 0, !0),
|
|
1146
|
+
gt.value ? (r(), i("div", {
|
|
1143
1147
|
key: 1,
|
|
1144
1148
|
ref_key: "noTitle",
|
|
1145
1149
|
ref: Ge,
|
|
1146
1150
|
class: "vue-data-ui-no-title-space",
|
|
1147
1151
|
style: "height:36px; width: 100%;background:transparent"
|
|
1148
1152
|
}, null, 512)) : f("", !0),
|
|
1149
|
-
e.value.style.chart.title.text ? (
|
|
1153
|
+
e.value.style.chart.title.text ? (r(), i("div", {
|
|
1150
1154
|
key: 2,
|
|
1151
1155
|
ref_key: "chartTitle",
|
|
1152
1156
|
ref: st,
|
|
1153
1157
|
style: "width:100%;background:transparent;padding-bottom:24px"
|
|
1154
1158
|
}, [
|
|
1155
|
-
(
|
|
1156
|
-
key: `title_${
|
|
1159
|
+
(r(), Pe(Lo, {
|
|
1160
|
+
key: `title_${ut.value}`,
|
|
1157
1161
|
config: {
|
|
1158
1162
|
title: {
|
|
1159
1163
|
cy: "donut-div-title",
|
|
@@ -1168,8 +1172,8 @@ const dl = { style: { chart: { backgroundColor: "#1A1A1A", color: "#CCCCCC", lay
|
|
|
1168
1172
|
], 512)) : f("", !0),
|
|
1169
1173
|
b("div", {
|
|
1170
1174
|
id: `legend-top-${c.value}`
|
|
1171
|
-
}, null, 8,
|
|
1172
|
-
e.value.userOptions.show && D.value && (s(ft) || s(qe)) ? (
|
|
1175
|
+
}, null, 8, Io),
|
|
1176
|
+
e.value.userOptions.show && D.value && (s(ft) || s(qe)) ? (r(), Pe(s(Tt), {
|
|
1173
1177
|
ref_key: "userOptionsRef",
|
|
1174
1178
|
ref: je,
|
|
1175
1179
|
key: `user_option_${ae.value}`,
|
|
@@ -1197,7 +1201,7 @@ const dl = { style: { chart: { backgroundColor: "#1A1A1A", color: "#CCCCCC", lay
|
|
|
1197
1201
|
printScale: e.value.userOptions.print.scale,
|
|
1198
1202
|
tableDialog: e.value.table.useDialog,
|
|
1199
1203
|
onToggleFullscreen: Qt,
|
|
1200
|
-
onGeneratePdf: s(
|
|
1204
|
+
onGeneratePdf: s($e),
|
|
1201
1205
|
onGenerateCsv: Yt,
|
|
1202
1206
|
onGenerateImage: s(_e),
|
|
1203
1207
|
onGenerateSvg: ll,
|
|
@@ -1209,90 +1213,90 @@ const dl = { style: { chart: { backgroundColor: "#1A1A1A", color: "#CCCCCC", lay
|
|
|
1209
1213
|
}, Rt({ _: 2 }, [
|
|
1210
1214
|
l.$slots.menuIcon ? {
|
|
1211
1215
|
name: "menuIcon",
|
|
1212
|
-
fn:
|
|
1213
|
-
|
|
1216
|
+
fn: k(({ isOpen: t, color: o }) => [
|
|
1217
|
+
C(l.$slots, "menuIcon", ee(te({ isOpen: t, color: o })), void 0, !0)
|
|
1214
1218
|
]),
|
|
1215
1219
|
key: "0"
|
|
1216
1220
|
} : void 0,
|
|
1217
1221
|
l.$slots.optionTooltip ? {
|
|
1218
1222
|
name: "optionTooltip",
|
|
1219
|
-
fn:
|
|
1220
|
-
|
|
1223
|
+
fn: k(() => [
|
|
1224
|
+
C(l.$slots, "optionTooltip", {}, void 0, !0)
|
|
1221
1225
|
]),
|
|
1222
1226
|
key: "1"
|
|
1223
1227
|
} : void 0,
|
|
1224
1228
|
l.$slots.optionPdf ? {
|
|
1225
1229
|
name: "optionPdf",
|
|
1226
|
-
fn:
|
|
1227
|
-
|
|
1230
|
+
fn: k(() => [
|
|
1231
|
+
C(l.$slots, "optionPdf", {}, void 0, !0)
|
|
1228
1232
|
]),
|
|
1229
1233
|
key: "2"
|
|
1230
1234
|
} : void 0,
|
|
1231
1235
|
l.$slots.optionCsv ? {
|
|
1232
1236
|
name: "optionCsv",
|
|
1233
|
-
fn:
|
|
1234
|
-
|
|
1237
|
+
fn: k(() => [
|
|
1238
|
+
C(l.$slots, "optionCsv", {}, void 0, !0)
|
|
1235
1239
|
]),
|
|
1236
1240
|
key: "3"
|
|
1237
1241
|
} : void 0,
|
|
1238
1242
|
l.$slots.optionImg ? {
|
|
1239
1243
|
name: "optionImg",
|
|
1240
|
-
fn:
|
|
1241
|
-
|
|
1244
|
+
fn: k(() => [
|
|
1245
|
+
C(l.$slots, "optionImg", {}, void 0, !0)
|
|
1242
1246
|
]),
|
|
1243
1247
|
key: "4"
|
|
1244
1248
|
} : void 0,
|
|
1245
1249
|
l.$slots.optionSvg ? {
|
|
1246
1250
|
name: "optionSvg",
|
|
1247
|
-
fn:
|
|
1248
|
-
|
|
1251
|
+
fn: k(() => [
|
|
1252
|
+
C(l.$slots, "optionSvg", {}, void 0, !0)
|
|
1249
1253
|
]),
|
|
1250
1254
|
key: "5"
|
|
1251
1255
|
} : void 0,
|
|
1252
1256
|
l.$slots.optionTable ? {
|
|
1253
1257
|
name: "optionTable",
|
|
1254
|
-
fn:
|
|
1255
|
-
|
|
1258
|
+
fn: k(() => [
|
|
1259
|
+
C(l.$slots, "optionTable", {}, void 0, !0)
|
|
1256
1260
|
]),
|
|
1257
1261
|
key: "6"
|
|
1258
1262
|
} : void 0,
|
|
1259
1263
|
l.$slots.optionLabels ? {
|
|
1260
1264
|
name: "optionLabels",
|
|
1261
|
-
fn:
|
|
1262
|
-
|
|
1265
|
+
fn: k(() => [
|
|
1266
|
+
C(l.$slots, "optionLabels", {}, void 0, !0)
|
|
1263
1267
|
]),
|
|
1264
1268
|
key: "7"
|
|
1265
1269
|
} : void 0,
|
|
1266
1270
|
l.$slots.optionFullscreen ? {
|
|
1267
1271
|
name: "optionFullscreen",
|
|
1268
|
-
fn:
|
|
1269
|
-
|
|
1272
|
+
fn: k(({ toggleFullscreen: t, isFullscreen: o }) => [
|
|
1273
|
+
C(l.$slots, "optionFullscreen", ee(te({ toggleFullscreen: t, isFullscreen: o })), void 0, !0)
|
|
1270
1274
|
]),
|
|
1271
1275
|
key: "8"
|
|
1272
1276
|
} : void 0,
|
|
1273
1277
|
l.$slots.optionAnnotator ? {
|
|
1274
1278
|
name: "optionAnnotator",
|
|
1275
|
-
fn:
|
|
1276
|
-
|
|
1279
|
+
fn: k(({ toggleAnnotator: t, isAnnotator: o }) => [
|
|
1280
|
+
C(l.$slots, "optionAnnotator", ee(te({ toggleAnnotator: t, isAnnotator: o })), void 0, !0)
|
|
1277
1281
|
]),
|
|
1278
1282
|
key: "9"
|
|
1279
1283
|
} : void 0
|
|
1280
1284
|
]), 1032, ["backgroundColor", "color", "isPrinting", "isImaging", "uid", "hasTooltip", "hasPdf", "hasImg", "hasSvg", "hasXls", "hasTable", "hasLabel", "hasFullscreen", "isFullscreen", "chartElement", "position", "callbacks", "isTooltip", "titles", "hasAnnotator", "isAnnotation", "printScale", "tableDialog", "onGeneratePdf", "onGenerateImage", "style"])) : f("", !0),
|
|
1281
|
-
(
|
|
1285
|
+
(r(), i("svg", {
|
|
1282
1286
|
ref_key: "svgRef",
|
|
1283
1287
|
ref: de,
|
|
1284
|
-
xmlns: s(
|
|
1288
|
+
xmlns: s(ao),
|
|
1285
1289
|
class: Nt({ "vue-data-ui-fullscreen--on": Oe.value, "vue-data-ui-fulscreen--off": !Oe.value, "vue-data-ui-svg": !0 }),
|
|
1286
1290
|
viewBox: `0 0 ${n.value.width <= 0 ? 10 : n.value.width} ${n.value.height <= 0 ? 10 : n.value.height}`,
|
|
1287
|
-
style: I(`max-width:100%; overflow: visible; background:transparent;color:${e.value.style.chart.color};${
|
|
1291
|
+
style: I(`max-width:100%; overflow: visible; background:transparent;color:${e.value.style.chart.color};${Ae.value.css}`)
|
|
1288
1292
|
}, [
|
|
1289
1293
|
b("g", {
|
|
1290
1294
|
ref_key: "G",
|
|
1291
1295
|
ref: Fe,
|
|
1292
1296
|
class: "vue-data-ui-g"
|
|
1293
1297
|
}, [
|
|
1294
|
-
|
|
1295
|
-
l.$slots["chart-background"] ? (
|
|
1298
|
+
Ct(s(Lt)),
|
|
1299
|
+
l.$slots["chart-background"] ? (r(), i("foreignObject", {
|
|
1296
1300
|
key: 0,
|
|
1297
1301
|
x: 0,
|
|
1298
1302
|
y: 0,
|
|
@@ -1302,10 +1306,10 @@ const dl = { style: { chart: { backgroundColor: "#1A1A1A", color: "#CCCCCC", lay
|
|
|
1302
1306
|
pointerEvents: "none"
|
|
1303
1307
|
}
|
|
1304
1308
|
}, [
|
|
1305
|
-
|
|
1306
|
-
], 8,
|
|
1307
|
-
e.value.type === "classic" && !isNaN(ve.value / F.value) ? (
|
|
1308
|
-
e.value.style.chart.useGradient ? (
|
|
1309
|
+
C(l.$slots, "chart-background", {}, void 0, !0)
|
|
1310
|
+
], 8, Bo)) : f("", !0),
|
|
1311
|
+
e.value.type === "classic" && !isNaN(ve.value / F.value) ? (r(), i("defs", zo, [
|
|
1312
|
+
e.value.style.chart.useGradient ? (r(), i("radialGradient", {
|
|
1309
1313
|
key: 0,
|
|
1310
1314
|
id: `gradient_${c.value}`
|
|
1311
1315
|
}, [
|
|
@@ -1313,25 +1317,25 @@ const dl = { style: { chart: { backgroundColor: "#1A1A1A", color: "#CCCCCC", lay
|
|
|
1313
1317
|
offset: "0%",
|
|
1314
1318
|
"stop-color": s(xt)(e.value.style.chart.backgroundColor, 0),
|
|
1315
1319
|
"stop-opacity": "0"
|
|
1316
|
-
}, null, 8,
|
|
1320
|
+
}, null, 8, Yo),
|
|
1317
1321
|
b("stop", {
|
|
1318
1322
|
offset: `${(1 - ve.value / F.value) * 100}%`,
|
|
1319
1323
|
"stop-color": s(xt)("#FFFFFF", 0),
|
|
1320
1324
|
"stop-opacity": "0"
|
|
1321
|
-
}, null, 8,
|
|
1325
|
+
}, null, 8, Eo),
|
|
1322
1326
|
b("stop", {
|
|
1323
1327
|
offset: `${(1 - ve.value / F.value / 2) * 100}%`,
|
|
1324
1328
|
"stop-color": s(xt)("#FFFFFF", e.value.style.chart.gradientIntensity)
|
|
1325
|
-
}, null, 8,
|
|
1329
|
+
}, null, 8, Xo),
|
|
1326
1330
|
b("stop", {
|
|
1327
1331
|
offset: "100%",
|
|
1328
1332
|
"stop-color": s(xt)(e.value.style.chart.backgroundColor, 0),
|
|
1329
1333
|
"stop-opacity": "0"
|
|
1330
|
-
}, null, 8,
|
|
1331
|
-
], 8,
|
|
1334
|
+
}, null, 8, No)
|
|
1335
|
+
], 8, Oo)) : f("", !0)
|
|
1332
1336
|
])) : f("", !0),
|
|
1333
|
-
e.value.type === "polar" ? (
|
|
1334
|
-
(
|
|
1337
|
+
e.value.type === "polar" ? (r(), i("defs", Ro, [
|
|
1338
|
+
(r(!0), i(_, null, j(v.value, (t, o) => (r(), i("radialGradient", {
|
|
1335
1339
|
id: `polar_gradient_${o}_${c.value}`,
|
|
1336
1340
|
cx: (isNaN(t.middlePoint.x / n.value.width * 100) ? 0 : t.middlePoint.x / n.value.width * 100) + "%",
|
|
1337
1341
|
cy: (isNaN(t.middlePoint.y / n.value.height * 100) ? 0 : t.middlePoint.y / n.value.height * 100) + "%",
|
|
@@ -1339,14 +1343,14 @@ const dl = { style: { chart: { backgroundColor: "#1A1A1A", color: "#CCCCCC", lay
|
|
|
1339
1343
|
}, [
|
|
1340
1344
|
b("stop", {
|
|
1341
1345
|
offset: "0%",
|
|
1342
|
-
"stop-color": s(
|
|
1346
|
+
"stop-color": s(no)(U.value[o].color, 0.05),
|
|
1343
1347
|
"stop-opacity": e.value.style.chart.gradientIntensity / 100
|
|
1344
|
-
}, null, 8,
|
|
1348
|
+
}, null, 8, Uo),
|
|
1345
1349
|
b("stop", {
|
|
1346
1350
|
offset: "100%",
|
|
1347
1351
|
"stop-color": U.value[o].color
|
|
1348
|
-
}, null, 8,
|
|
1349
|
-
], 8,
|
|
1352
|
+
}, null, 8, Ho)
|
|
1353
|
+
], 8, Vo))), 256))
|
|
1350
1354
|
])) : f("", !0),
|
|
1351
1355
|
b("defs", null, [
|
|
1352
1356
|
b("filter", {
|
|
@@ -1360,12 +1364,12 @@ const dl = { style: { chart: { backgroundColor: "#1A1A1A", color: "#CCCCCC", lay
|
|
|
1360
1364
|
in: "SourceGraphic",
|
|
1361
1365
|
stdDeviation: 2,
|
|
1362
1366
|
id: `blur_std_${c.value}`
|
|
1363
|
-
}, null, 8,
|
|
1367
|
+
}, null, 8, jo),
|
|
1364
1368
|
a[5] || (a[5] = b("feColorMatrix", {
|
|
1365
1369
|
type: "saturate",
|
|
1366
1370
|
values: "0"
|
|
1367
1371
|
}, null, -1))
|
|
1368
|
-
], 8,
|
|
1372
|
+
], 8, Go),
|
|
1369
1373
|
b("filter", {
|
|
1370
1374
|
id: `shadow_${c.value}`,
|
|
1371
1375
|
"color-interpolation-filters": "sRGB"
|
|
@@ -1376,8 +1380,8 @@ const dl = { style: { chart: { backgroundColor: "#1A1A1A", color: "#CCCCCC", lay
|
|
|
1376
1380
|
stdDeviation: "10",
|
|
1377
1381
|
"flood-opacity": "0.5",
|
|
1378
1382
|
"flood-color": e.value.style.chart.layout.donut.shadowColor
|
|
1379
|
-
}, null, 8,
|
|
1380
|
-
], 8,
|
|
1383
|
+
}, null, 8, qo)
|
|
1384
|
+
], 8, Wo),
|
|
1381
1385
|
b("filter", {
|
|
1382
1386
|
id: `drop_shadow_${c.value}`,
|
|
1383
1387
|
"color-interpolation-filters": "sRGB",
|
|
@@ -1392,13 +1396,13 @@ const dl = { style: { chart: { backgroundColor: "#1A1A1A", color: "#CCCCCC", lay
|
|
|
1392
1396
|
stdDeviation: "3",
|
|
1393
1397
|
"flood-opacity": "1",
|
|
1394
1398
|
"flood-color": e.value.style.chart.layout.donut.shadowColor
|
|
1395
|
-
}, null, 8,
|
|
1396
|
-
], 8,
|
|
1399
|
+
}, null, 8, Jo)
|
|
1400
|
+
], 8, Qo)
|
|
1397
1401
|
]),
|
|
1398
|
-
e.value.type === "classic" ? (
|
|
1399
|
-
q(t) && m.value.dataLabels.show ? (
|
|
1402
|
+
e.value.type === "classic" ? (r(!0), i(_, { key: 3 }, j(U.value.filter((t) => !t.ghost), (t, o) => (r(), i("g", null, [
|
|
1403
|
+
q(t) && m.value.dataLabels.show ? (r(), i("path", {
|
|
1400
1404
|
key: 0,
|
|
1401
|
-
d: s(Y)[o]?.connectorPath || s(
|
|
1405
|
+
d: s(Y)[o]?.connectorPath || s(so)(
|
|
1402
1406
|
t,
|
|
1403
1407
|
{ x: n.value.width / 2, y: n.value.height / 2 },
|
|
1404
1408
|
16,
|
|
@@ -1415,10 +1419,10 @@ const dl = { style: { chart: { backgroundColor: "#1A1A1A", color: "#CCCCCC", lay
|
|
|
1415
1419
|
"stroke-linejoin": "round",
|
|
1416
1420
|
fill: "none",
|
|
1417
1421
|
filter: ze(o)
|
|
1418
|
-
}, null, 8,
|
|
1422
|
+
}, null, 8, Ko)) : f("", !0)
|
|
1419
1423
|
]))), 256)) : f("", !0),
|
|
1420
|
-
e.value.type === "polar" ? (
|
|
1421
|
-
q(t) && m.value.dataLabels.show ? (
|
|
1424
|
+
e.value.type === "polar" ? (r(!0), i(_, { key: 4 }, j(U.value.filter((t) => !t.ghost), (t, o) => (r(), i("g", null, [
|
|
1425
|
+
q(t) && m.value.dataLabels.show ? (r(), i("path", {
|
|
1422
1426
|
key: 0,
|
|
1423
1427
|
d: `M ${s(z)({ initX: v.value[o].middlePoint.x, initY: v.value[o].middlePoint.y, offset: 24, centerX: n.value.width / 2, centerY: n.value.height / 2 }).x},${s(z)({ initX: v.value[o].middlePoint.x, initY: v.value[o].middlePoint.y, offset: 24, centerX: n.value.width / 2, centerY: n.value.height / 2 }).y} ${v.value[o].middlePoint.x},${v.value[o].middlePoint.y}`,
|
|
1424
1428
|
stroke: t.color,
|
|
@@ -1430,60 +1434,60 @@ const dl = { style: { chart: { backgroundColor: "#1A1A1A", color: "#CCCCCC", lay
|
|
|
1430
1434
|
style: I({
|
|
1431
1435
|
transition: P.value || !e.value.serieToggleAnimation.show ? "none" : `all ${e.value.serieToggleAnimation.durationMs}ms ease-in-out`
|
|
1432
1436
|
})
|
|
1433
|
-
}, null, 12,
|
|
1437
|
+
}, null, 12, Zo)) : f("", !0)
|
|
1434
1438
|
]))), 256)) : f("", !0),
|
|
1435
|
-
e.value.type === "classic" && e.value.style.chart.layout.donut.useShadow ? (
|
|
1439
|
+
e.value.type === "classic" && e.value.style.chart.layout.donut.useShadow ? (r(), i("circle", {
|
|
1436
1440
|
key: 5,
|
|
1437
1441
|
cx: n.value.width / 2,
|
|
1438
1442
|
cy: n.value.height / 2,
|
|
1439
1443
|
r: F.value <= 0 ? 10 : F.value,
|
|
1440
1444
|
fill: e.value.style.chart.backgroundColor,
|
|
1441
1445
|
filter: `url(#shadow_${c.value})`
|
|
1442
|
-
}, null, 8,
|
|
1443
|
-
l.$slots.pattern ? (
|
|
1444
|
-
(
|
|
1446
|
+
}, null, 8, ea)) : f("", !0),
|
|
1447
|
+
l.$slots.pattern ? (r(), i("g", ta, [
|
|
1448
|
+
(r(!0), i(_, null, j(tt.dataset, (t, o) => (r(), i("defs", {
|
|
1445
1449
|
key: `pattern-${t.patternIndex}`
|
|
1446
1450
|
}, [
|
|
1447
|
-
|
|
1451
|
+
C(l.$slots, "pattern", Vt({ ref_for: !0 }, { seriesIndex: o, patternId: `pattern_${c.value}_${o}` }), void 0, !0)
|
|
1448
1452
|
]))), 128))
|
|
1449
1453
|
])) : f("", !0),
|
|
1450
|
-
Q.value && e.value.type === "classic" ? (
|
|
1451
|
-
(
|
|
1454
|
+
Q.value && e.value.type === "classic" ? (r(), i(_, { key: 7 }, [
|
|
1455
|
+
(r(!0), i(_, null, j(ue.value, (t, o) => (r(), i("path", {
|
|
1452
1456
|
stroke: e.value.style.chart.backgroundColor,
|
|
1453
1457
|
d: t.arcSlice,
|
|
1454
1458
|
fill: "#FFFFFF"
|
|
1455
|
-
}, null, 8,
|
|
1456
|
-
(
|
|
1459
|
+
}, null, 8, la))), 256)),
|
|
1460
|
+
(r(!0), i(_, null, j(ue.value, (t, o) => (r(), i("path", {
|
|
1457
1461
|
class: "vue-ui-donut-arc-path",
|
|
1458
1462
|
d: t.arcSlice,
|
|
1459
1463
|
fill: t.color,
|
|
1460
1464
|
stroke: e.value.style.chart.layout.donut.borderColorAuto ? e.value.style.chart.backgroundColor : e.value.style.chart.layout.donut.borderColor,
|
|
1461
1465
|
"stroke-width": e.value.style.chart.layout.donut.borderWidth,
|
|
1462
1466
|
filter: ze(o)
|
|
1463
|
-
}, null, 8,
|
|
1464
|
-
l.$slots.pattern ? (
|
|
1465
|
-
(
|
|
1467
|
+
}, null, 8, oa))), 256)),
|
|
1468
|
+
l.$slots.pattern ? (r(), i("g", aa, [
|
|
1469
|
+
(r(!0), i(_, null, j(ue.value, (t, o) => (r(), i("path", {
|
|
1466
1470
|
class: "vue-ui-donut-arc-path",
|
|
1467
1471
|
d: t.arcSlice,
|
|
1468
1472
|
fill: `url(#${t.pattern})`,
|
|
1469
1473
|
stroke: e.value.style.chart.layout.donut.borderColorAuto ? e.value.style.chart.backgroundColor : e.value.style.chart.layout.donut.borderColor,
|
|
1470
1474
|
"stroke-width": e.value.style.chart.layout.donut.borderWidth,
|
|
1471
1475
|
filter: ze(o)
|
|
1472
|
-
}, null, 8,
|
|
1476
|
+
}, null, 8, na))), 256))
|
|
1473
1477
|
])) : f("", !0)
|
|
1474
1478
|
], 64)) : f("", !0),
|
|
1475
|
-
Q.value && e.value.type === "polar" ? (
|
|
1476
|
-
U.value.length > 1 ? (
|
|
1477
|
-
(
|
|
1479
|
+
Q.value && e.value.type === "polar" ? (r(), i(_, { key: 8 }, [
|
|
1480
|
+
U.value.length > 1 ? (r(), i("g", sa, [
|
|
1481
|
+
(r(!0), i(_, null, j(ue.value, (t, o) => (r(), i("path", {
|
|
1478
1482
|
stroke: e.value.style.chart.layout.donut.borderColorAuto ? e.value.style.chart.backgroundColor : e.value.style.chart.layout.donut.borderColor,
|
|
1479
1483
|
d: v.value[o].path,
|
|
1480
1484
|
fill: "#FFFFFF",
|
|
1481
1485
|
style: I({
|
|
1482
1486
|
transition: P.value || !e.value.serieToggleAnimation.show ? "none" : `all ${e.value.serieToggleAnimation.durationMs}ms ease-in-out`
|
|
1483
1487
|
})
|
|
1484
|
-
}, null, 12,
|
|
1485
|
-
e.value.style.chart.layout.donut.useShadow ? (
|
|
1486
|
-
(
|
|
1488
|
+
}, null, 12, ra))), 256)),
|
|
1489
|
+
e.value.style.chart.layout.donut.useShadow ? (r(), i("g", ua, [
|
|
1490
|
+
(r(!0), i(_, null, j(ue.value, (t, o) => (r(), i("path", {
|
|
1487
1491
|
class: "vue-ui-donut-arc-path",
|
|
1488
1492
|
d: v.value[o].path,
|
|
1489
1493
|
fill: "transparent",
|
|
@@ -1493,10 +1497,10 @@ const dl = { style: { chart: { backgroundColor: "#1A1A1A", color: "#CCCCCC", lay
|
|
|
1493
1497
|
style: I({
|
|
1494
1498
|
transition: P.value || !e.value.serieToggleAnimation.show ? "none" : `all ${e.value.serieToggleAnimation.durationMs}ms ease-in-out`
|
|
1495
1499
|
})
|
|
1496
|
-
}, null, 12,
|
|
1500
|
+
}, null, 12, ia))), 256))
|
|
1497
1501
|
])) : f("", !0),
|
|
1498
|
-
l.$slots.pattern ? (
|
|
1499
|
-
(
|
|
1502
|
+
l.$slots.pattern ? (r(), i("g", ca, [
|
|
1503
|
+
(r(!0), i(_, null, j(ue.value, (t, o) => (r(), i("path", {
|
|
1500
1504
|
class: "vue-ui-donut-arc-path",
|
|
1501
1505
|
d: v.value[o].path,
|
|
1502
1506
|
fill: `url(#${t.pattern})`,
|
|
@@ -1507,9 +1511,9 @@ const dl = { style: { chart: { backgroundColor: "#1A1A1A", color: "#CCCCCC", lay
|
|
|
1507
1511
|
transition: P.value || !e.value.serieToggleAnimation.show ? "none" : `all ${e.value.serieToggleAnimation.durationMs}ms ease-in-out`,
|
|
1508
1512
|
transformOrigin: "center"
|
|
1509
1513
|
})
|
|
1510
|
-
}, null, 12,
|
|
1514
|
+
}, null, 12, da))), 256))
|
|
1511
1515
|
])) : f("", !0),
|
|
1512
|
-
(
|
|
1516
|
+
(r(!0), i(_, null, j(ue.value, (t, o) => (r(), i("path", {
|
|
1513
1517
|
class: "vue-ui-donut-arc-path",
|
|
1514
1518
|
d: v.value[o].path,
|
|
1515
1519
|
fill: e.value.style.chart.useGradient ? `url(#polar_gradient_${o}_${c.value})` : t.color,
|
|
@@ -1519,9 +1523,9 @@ const dl = { style: { chart: { backgroundColor: "#1A1A1A", color: "#CCCCCC", lay
|
|
|
1519
1523
|
style: I({
|
|
1520
1524
|
transition: P.value || !e.value.serieToggleAnimation.show ? "none" : `all ${e.value.serieToggleAnimation.durationMs}ms ease-in-out`
|
|
1521
1525
|
})
|
|
1522
|
-
}, null, 12,
|
|
1523
|
-
])) : (
|
|
1524
|
-
l.$slots.pattern ? (
|
|
1526
|
+
}, null, 12, va))), 256))
|
|
1527
|
+
])) : (r(), i("g", ha, [
|
|
1528
|
+
l.$slots.pattern ? (r(), i("circle", {
|
|
1525
1529
|
key: 0,
|
|
1526
1530
|
cx: n.value.width / 2,
|
|
1527
1531
|
cy: n.value.height / 2,
|
|
@@ -1529,7 +1533,7 @@ const dl = { style: { chart: { backgroundColor: "#1A1A1A", color: "#CCCCCC", lay
|
|
|
1529
1533
|
fill: `url(#pattern_${c.value}_${U.value[0].patternIndex})`,
|
|
1530
1534
|
stroke: e.value.style.chart.backgroundColor,
|
|
1531
1535
|
"stroke-width": e.value.style.chart.layout.donut.borderWidth
|
|
1532
|
-
}, null, 8,
|
|
1536
|
+
}, null, 8, fa)) : f("", !0),
|
|
1533
1537
|
b("circle", {
|
|
1534
1538
|
cx: n.value.width / 2,
|
|
1535
1539
|
cy: n.value.height / 2,
|
|
@@ -1537,17 +1541,17 @@ const dl = { style: { chart: { backgroundColor: "#1A1A1A", color: "#CCCCCC", lay
|
|
|
1537
1541
|
fill: e.value.style.chart.useGradient ? `url(#polar_gradient_0_${c.value})` : U.value[0].color,
|
|
1538
1542
|
stroke: e.value.style.chart.backgroundColor,
|
|
1539
1543
|
"stroke-width": e.value.style.chart.layout.donut.borderWidth
|
|
1540
|
-
}, null, 8,
|
|
1544
|
+
}, null, 8, ya)
|
|
1541
1545
|
]))
|
|
1542
|
-
], 64)) : (
|
|
1543
|
-
e.value.type === "classic" && !
|
|
1544
|
-
(
|
|
1546
|
+
], 64)) : (r(), i(_, { key: 9 }, [
|
|
1547
|
+
e.value.type === "classic" && !Al.value ? (r(), i("g", ga, [
|
|
1548
|
+
(r(!0), i(_, null, j($l.value, (t, o) => (r(), i("path", {
|
|
1545
1549
|
class: "vue-ui-donut-arc-path",
|
|
1546
1550
|
d: t.arcSlice,
|
|
1547
1551
|
fill: t.color,
|
|
1548
1552
|
stroke: e.value.style.chart.backgroundColor,
|
|
1549
1553
|
"stroke-width": e.value.style.chart.layout.donut.borderWidth
|
|
1550
|
-
}, null, 8,
|
|
1554
|
+
}, null, 8, pa))), 256))
|
|
1551
1555
|
])) : f("", !0),
|
|
1552
1556
|
b("circle", {
|
|
1553
1557
|
cx: n.value.width / 2,
|
|
@@ -1555,9 +1559,9 @@ const dl = { style: { chart: { backgroundColor: "#1A1A1A", color: "#CCCCCC", lay
|
|
|
1555
1559
|
r: F.value <= 0 ? 10 : F.value,
|
|
1556
1560
|
fill: "transparent",
|
|
1557
1561
|
stroke: e.value.style.chart.backgroundColor
|
|
1558
|
-
}, null, 8,
|
|
1562
|
+
}, null, 8, ba)
|
|
1559
1563
|
], 64)),
|
|
1560
|
-
e.value.style.chart.useGradient && e.value.type === "classic" ? (
|
|
1564
|
+
e.value.style.chart.useGradient && e.value.type === "classic" ? (r(), i("circle", {
|
|
1561
1565
|
key: 10,
|
|
1562
1566
|
cx: n.value.width / 2,
|
|
1563
1567
|
cy: n.value.height / 2,
|
|
@@ -1566,7 +1570,7 @@ const dl = { style: { chart: { backgroundColor: "#1A1A1A", color: "#CCCCCC", lay
|
|
|
1566
1570
|
F.value <= 0 ? 10 : F.value
|
|
1567
1571
|
),
|
|
1568
1572
|
fill: `url(#gradient_${c.value})`
|
|
1569
|
-
}, null, 8,
|
|
1573
|
+
}, null, 8, ma)) : f("", !0),
|
|
1570
1574
|
b("circle", {
|
|
1571
1575
|
ref_key: "circle_hollow",
|
|
1572
1576
|
ref: Ue,
|
|
@@ -1575,23 +1579,23 @@ const dl = { style: { chart: { backgroundColor: "#1A1A1A", color: "#CCCCCC", lay
|
|
|
1575
1579
|
cx: n.value.width / 2,
|
|
1576
1580
|
cy: n.value.height / 2,
|
|
1577
1581
|
r: Math.max(0.1, ve.value * 1.7)
|
|
1578
|
-
}, null, 8,
|
|
1579
|
-
Q.value ? (
|
|
1580
|
-
U.value.length > 1 || e.value.type === "classic" ? (
|
|
1581
|
-
(
|
|
1582
|
+
}, null, 8, Ca),
|
|
1583
|
+
Q.value ? (r(), i(_, { key: 11 }, [
|
|
1584
|
+
U.value.length > 1 || e.value.type === "classic" ? (r(), i("g", wa, [
|
|
1585
|
+
(r(!0), i(_, null, j(U.value.filter((t) => !t.ghost), (t, o) => (r(), i("path", {
|
|
1582
1586
|
d: e.value.type === "classic" ? t.arcSlice : v.value[o].path,
|
|
1583
1587
|
stroke: e.value.style.chart.layout.donut.borderColorAuto ? e.value.style.chart.backgroundColor : e.value.style.chart.layout.donut.borderColor,
|
|
1584
1588
|
fill: M.value === o ? e.value.style.chart.layout.donut.selectedColor : "transparent",
|
|
1585
|
-
onMouseenter: (
|
|
1589
|
+
onMouseenter: (u) => fe({
|
|
1586
1590
|
datapoint: t,
|
|
1587
1591
|
relativeIndex: o,
|
|
1588
1592
|
seriesIndex: t.seriesIndex,
|
|
1589
1593
|
show: !0
|
|
1590
1594
|
}),
|
|
1591
|
-
onMouseleave: (
|
|
1592
|
-
onClick: (
|
|
1593
|
-
}, null, 40,
|
|
1594
|
-
])) : (
|
|
1595
|
+
onMouseleave: (u) => he({ datapoint: t, seriesIndex: t.seriesIndex }),
|
|
1596
|
+
onClick: (u) => ye(t, o)
|
|
1597
|
+
}, null, 40, ka))), 256))
|
|
1598
|
+
])) : (r(), i("g", xa, [
|
|
1595
1599
|
b("circle", {
|
|
1596
1600
|
cx: n.value.width / 2,
|
|
1597
1601
|
cy: n.value.height / 2,
|
|
@@ -1605,16 +1609,16 @@ const dl = { style: { chart: { backgroundColor: "#1A1A1A", color: "#CCCCCC", lay
|
|
|
1605
1609
|
})),
|
|
1606
1610
|
onMouseleave: a[1] || (a[1] = (t) => he({ datapoint: U.value[0], seriesIndex: U.value[0].seriesIndex })),
|
|
1607
1611
|
onClick: a[2] || (a[2] = (t) => ye(U.value[0], l.i))
|
|
1608
|
-
}, null, 40,
|
|
1612
|
+
}, null, 40, Aa)
|
|
1609
1613
|
]))
|
|
1610
1614
|
], 64)) : f("", !0),
|
|
1611
|
-
e.value.type === "classic" ? (
|
|
1615
|
+
e.value.type === "classic" ? (r(), i("g", {
|
|
1612
1616
|
key: 12,
|
|
1613
1617
|
ref_key: "G_hollow",
|
|
1614
1618
|
ref: nt,
|
|
1615
1619
|
class: "vue-data-ui-donut-hollow-labels"
|
|
1616
1620
|
}, [
|
|
1617
|
-
e.value.style.chart.layout.labels.hollow.total.show ? (
|
|
1621
|
+
e.value.style.chart.layout.labels.hollow.total.show ? (r(), i("text", {
|
|
1618
1622
|
key: 0,
|
|
1619
1623
|
"text-anchor": "middle",
|
|
1620
1624
|
x: n.value.width / 2,
|
|
@@ -1622,8 +1626,8 @@ const dl = { style: { chart: { backgroundColor: "#1A1A1A", color: "#CCCCCC", lay
|
|
|
1622
1626
|
fill: e.value.style.chart.layout.labels.hollow.total.color,
|
|
1623
1627
|
"font-size": e.value.style.chart.layout.labels.hollow.total.fontSize,
|
|
1624
1628
|
style: I(`font-weight:${e.value.style.chart.layout.labels.hollow.total.bold ? "bold" : ""}`)
|
|
1625
|
-
},
|
|
1626
|
-
e.value.style.chart.layout.labels.hollow.total.show ? (
|
|
1629
|
+
}, we(e.value.style.chart.layout.labels.hollow.total.text), 13, $a)) : f("", !0),
|
|
1630
|
+
e.value.style.chart.layout.labels.hollow.total.show ? (r(), i("text", {
|
|
1627
1631
|
key: 1,
|
|
1628
1632
|
"text-anchor": "middle",
|
|
1629
1633
|
x: n.value.width / 2,
|
|
@@ -1631,7 +1635,7 @@ const dl = { style: { chart: { backgroundColor: "#1A1A1A", color: "#CCCCCC", lay
|
|
|
1631
1635
|
fill: e.value.style.chart.layout.labels.hollow.total.value.color,
|
|
1632
1636
|
"font-size": e.value.style.chart.layout.labels.hollow.total.value.fontSize,
|
|
1633
1637
|
style: I(`font-weight:${e.value.style.chart.layout.labels.hollow.total.value.bold ? "bold" : ""}`)
|
|
1634
|
-
},
|
|
1638
|
+
}, we(s(ge)(
|
|
1635
1639
|
e.value.style.chart.layout.labels.hollow.total.value.formatter,
|
|
1636
1640
|
Q.value,
|
|
1637
1641
|
s(ie)({
|
|
@@ -1639,8 +1643,8 @@ const dl = { style: { chart: { backgroundColor: "#1A1A1A", color: "#CCCCCC", lay
|
|
|
1639
1643
|
v: Q.value,
|
|
1640
1644
|
s: e.value.style.chart.layout.labels.hollow.total.value.suffix
|
|
1641
1645
|
})
|
|
1642
|
-
)), 13,
|
|
1643
|
-
e.value.style.chart.layout.labels.hollow.average.show ? (
|
|
1646
|
+
)), 13, _a)) : f("", !0),
|
|
1647
|
+
e.value.style.chart.layout.labels.hollow.average.show ? (r(), i("text", {
|
|
1644
1648
|
key: 2,
|
|
1645
1649
|
"text-anchor": "middle",
|
|
1646
1650
|
x: n.value.width / 2,
|
|
@@ -1648,8 +1652,8 @@ const dl = { style: { chart: { backgroundColor: "#1A1A1A", color: "#CCCCCC", lay
|
|
|
1648
1652
|
fill: e.value.style.chart.layout.labels.hollow.average.color,
|
|
1649
1653
|
"font-size": e.value.style.chart.layout.labels.hollow.average.fontSize,
|
|
1650
1654
|
style: I(`font-weight:${e.value.style.chart.layout.labels.hollow.average.bold ? "bold" : ""}`)
|
|
1651
|
-
},
|
|
1652
|
-
e.value.style.chart.layout.labels.hollow.average.show ? (
|
|
1655
|
+
}, we(e.value.style.chart.layout.labels.hollow.average.text), 13, Ta)) : f("", !0),
|
|
1656
|
+
e.value.style.chart.layout.labels.hollow.average.show ? (r(), i("text", {
|
|
1653
1657
|
key: 3,
|
|
1654
1658
|
"text-anchor": "middle",
|
|
1655
1659
|
x: n.value.width / 2,
|
|
@@ -1657,7 +1661,7 @@ const dl = { style: { chart: { backgroundColor: "#1A1A1A", color: "#CCCCCC", lay
|
|
|
1657
1661
|
fill: e.value.style.chart.layout.labels.hollow.average.value.color,
|
|
1658
1662
|
"font-size": e.value.style.chart.layout.labels.hollow.average.value.fontSize,
|
|
1659
1663
|
style: I(`font-weight:${e.value.style.chart.layout.labels.hollow.average.value.bold ? "bold" : ""}`)
|
|
1660
|
-
},
|
|
1664
|
+
}, we(se.value || P.value ? "--" : s(ge)(
|
|
1661
1665
|
e.value.style.chart.layout.labels.hollow.average.value.formatter,
|
|
1662
1666
|
zt.value,
|
|
1663
1667
|
s(ie)({
|
|
@@ -1666,121 +1670,121 @@ const dl = { style: { chart: { backgroundColor: "#1A1A1A", color: "#CCCCCC", lay
|
|
|
1666
1670
|
s: e.value.style.chart.layout.labels.hollow.average.value.suffix,
|
|
1667
1671
|
r: e.value.style.chart.layout.labels.hollow.average.value.rounding
|
|
1668
1672
|
})
|
|
1669
|
-
)), 13,
|
|
1673
|
+
)), 13, La)) : f("", !0)
|
|
1670
1674
|
], 512)) : f("", !0),
|
|
1671
|
-
(
|
|
1675
|
+
(r(!0), i(_, null, j(ue.value.filter((t) => !t.ghost), (t, o) => (r(), i("g", {
|
|
1672
1676
|
filter: ze(o),
|
|
1673
1677
|
class: Nt({ animated: e.value.useCssAnimation }),
|
|
1674
1678
|
key: t.seriesIndex,
|
|
1675
|
-
opacity:
|
|
1679
|
+
opacity: Il(t)
|
|
1676
1680
|
}, [
|
|
1677
|
-
e.value.style.chart.layout.labels.dataLabels.useLabelSlots ? (
|
|
1678
|
-
(
|
|
1679
|
-
x: s(
|
|
1680
|
-
y: s(
|
|
1681
|
+
e.value.style.chart.layout.labels.dataLabels.useLabelSlots ? (r(), i("g", Ma, [
|
|
1682
|
+
(r(), i("foreignObject", {
|
|
1683
|
+
x: s($)(t, !0).anchor === "end" ? s($)(t).x - 120 : s($)(t, !0).anchor === "middle" ? s($)(t).x - 60 : s($)(t).x,
|
|
1684
|
+
y: s(ke)(t) - (Jt.value ? 20 : 0),
|
|
1681
1685
|
width: "120",
|
|
1682
1686
|
height: "60",
|
|
1683
1687
|
style: { overflow: "visible" }
|
|
1684
1688
|
}, [
|
|
1685
1689
|
b("div", null, [
|
|
1686
|
-
|
|
1690
|
+
C(l.$slots, "dataLabel", Vt({ ref_for: !0 }, {
|
|
1687
1691
|
datapoint: t,
|
|
1688
1692
|
isBlur: !e.value.useBlurOnHover || [null, void 0].includes(M.value) || M.value === o,
|
|
1689
1693
|
isSafari: Jt.value,
|
|
1690
1694
|
isVisible: q(t) && m.value.dataLabels.show,
|
|
1691
|
-
textAlign: s(
|
|
1692
|
-
flexAlign: s(
|
|
1693
|
-
percentage: Wt(t,
|
|
1695
|
+
textAlign: s($)(t, !0, 16, !0).anchor,
|
|
1696
|
+
flexAlign: s($)(t, !0, 16).anchor,
|
|
1697
|
+
percentage: Wt(t, ue.value)
|
|
1694
1698
|
}), void 0, !0)
|
|
1695
1699
|
])
|
|
1696
|
-
], 8,
|
|
1697
|
-
])) : (
|
|
1698
|
-
e.value.type === "classic" ? (
|
|
1699
|
-
q(t) && m.value.dataLabels.show ? (
|
|
1700
|
+
], 8, Pa))
|
|
1701
|
+
])) : (r(), i("g", Fa, [
|
|
1702
|
+
e.value.type === "classic" ? (r(), i(_, { key: 0 }, [
|
|
1703
|
+
q(t) && m.value.dataLabels.show ? (r(), i("circle", {
|
|
1700
1704
|
key: 0,
|
|
1701
|
-
cx: s(Y)[o]?.markerX ?? s(
|
|
1702
|
-
cy: s(Y)[o]?.markerY ?? s(
|
|
1705
|
+
cx: s(Y)[o]?.markerX ?? s($)(t).x,
|
|
1706
|
+
cy: s(Y)[o]?.markerY ?? s(ke)(t) - 3.5,
|
|
1703
1707
|
fill: t.color,
|
|
1704
1708
|
stroke: e.value.style.chart.backgroundColor,
|
|
1705
1709
|
"stroke-width": 1,
|
|
1706
1710
|
r: 3,
|
|
1707
1711
|
filter: !e.value.useBlurOnHover || [null, void 0].includes(M.value) || M.value === o ? "" : `url(#blur_${c.value})`,
|
|
1708
|
-
onClick: (
|
|
1709
|
-
onMouseenter: (
|
|
1712
|
+
onClick: (u) => ye(t, o),
|
|
1713
|
+
onMouseenter: (u) => fe({
|
|
1710
1714
|
datapoint: t,
|
|
1711
1715
|
relativeIndex: o,
|
|
1712
1716
|
seriesIndex: t.seriesIndex,
|
|
1713
1717
|
show: !0
|
|
1714
1718
|
}),
|
|
1715
|
-
onMouseleave: (
|
|
1716
|
-
}, null, 40,
|
|
1717
|
-
e.value.style.chart.layout.labels.dataLabels.oneLine || s(Y)[o] ?
|
|
1719
|
+
onMouseleave: (u) => he({ datapoint: t, seriesIndex: t.seriesIndex })
|
|
1720
|
+
}, null, 40, Ia)) : f("", !0),
|
|
1721
|
+
e.value.style.chart.layout.labels.dataLabels.oneLine || s(Y)[o] ? wt((r(), i("text", {
|
|
1718
1722
|
key: 1,
|
|
1719
1723
|
class: "vue-data-ui-datalabel-inline",
|
|
1720
|
-
"text-anchor": s(Y)[o]?.textAnchor || s(
|
|
1721
|
-
x: s(Y)[o]?.labelX ?? s(
|
|
1722
|
-
y: s(Y)[o]?.labelY ?? s(
|
|
1723
|
-
onClick: (
|
|
1724
|
-
onMouseenter: (
|
|
1724
|
+
"text-anchor": s(Y)[o]?.textAnchor || s($)(t, !0, 12).anchor,
|
|
1725
|
+
x: s(Y)[o]?.labelX ?? s($)(t, !0, 12).x,
|
|
1726
|
+
y: s(Y)[o]?.labelY ?? s(ke)(t),
|
|
1727
|
+
onClick: (u) => ye(t, o),
|
|
1728
|
+
onMouseenter: (u) => fe({
|
|
1725
1729
|
datapoint: t,
|
|
1726
1730
|
relativeIndex: o,
|
|
1727
1731
|
seriesIndex: t.seriesIndex,
|
|
1728
1732
|
show: !0
|
|
1729
1733
|
}),
|
|
1730
|
-
onMouseleave: (
|
|
1731
|
-
innerHTML:
|
|
1732
|
-
}, null, 40,
|
|
1733
|
-
[
|
|
1734
|
-
]) : (
|
|
1735
|
-
|
|
1734
|
+
onMouseleave: (u) => he({ datapoint: t, seriesIndex: t.seriesIndex }),
|
|
1735
|
+
innerHTML: Pl(t, o, !!s(Y)[o])
|
|
1736
|
+
}, null, 40, Da)), [
|
|
1737
|
+
[kt, q(t) && m.value.dataLabels.show]
|
|
1738
|
+
]) : (r(), i(_, { key: 2 }, [
|
|
1739
|
+
wt(b("text", {
|
|
1736
1740
|
class: "vue-data-ui-datalabel-value",
|
|
1737
|
-
"text-anchor": s(Y)[o]?.textAnchor || s(
|
|
1738
|
-
x: s(Y)[o]?.labelX ?? s(
|
|
1739
|
-
y: s(Y)[o]?.labelY ?? s(
|
|
1741
|
+
"text-anchor": s(Y)[o]?.textAnchor || s($)(t, !0, 12).anchor,
|
|
1742
|
+
x: s(Y)[o]?.labelX ?? s($)(t, !0, 12).x,
|
|
1743
|
+
y: s(Y)[o]?.labelY ?? s(ke)(t),
|
|
1740
1744
|
fill: e.value.style.chart.layout.labels.percentage.color,
|
|
1741
1745
|
"font-size": xe.value + "px",
|
|
1742
1746
|
style: I(`font-weight:${e.value.style.chart.layout.labels.percentage.bold ? "bold" : ""}`),
|
|
1743
|
-
onClick: (
|
|
1744
|
-
onMouseenter: (
|
|
1747
|
+
onClick: (u) => ye(t, o),
|
|
1748
|
+
onMouseenter: (u) => fe({
|
|
1745
1749
|
datapoint: t,
|
|
1746
1750
|
relativeIndex: o,
|
|
1747
1751
|
seriesIndex: t.seriesIndex,
|
|
1748
1752
|
show: !0
|
|
1749
1753
|
}),
|
|
1750
|
-
onMouseleave: (
|
|
1751
|
-
},
|
|
1752
|
-
[
|
|
1754
|
+
onMouseleave: (u) => he({ datapoint: t, seriesIndex: t.seriesIndex })
|
|
1755
|
+
}, we(bt(t)), 45, Ba), [
|
|
1756
|
+
[kt, q(t) && m.value.dataLabels.show]
|
|
1753
1757
|
]),
|
|
1754
|
-
|
|
1758
|
+
wt(b("text", {
|
|
1755
1759
|
class: "vue-data-ui-datalabel-name",
|
|
1756
|
-
"text-anchor": s(Y)[o]?.textAnchor || s(
|
|
1757
|
-
x: s(Y)[o]?.labelX ?? s(
|
|
1758
|
-
y: (s(Y)[o]?.labelY ?? s(
|
|
1760
|
+
"text-anchor": s(Y)[o]?.textAnchor || s($)(t).anchor,
|
|
1761
|
+
x: s(Y)[o]?.labelX ?? s($)(t, !0, 12).x,
|
|
1762
|
+
y: (s(Y)[o]?.labelY ?? s(ke)(t)) + N.value * 1.2,
|
|
1759
1763
|
fill: e.value.style.chart.layout.labels.name.color,
|
|
1760
1764
|
"font-size": N.value + "px",
|
|
1761
1765
|
style: I(`font-weight:${e.value.style.chart.layout.labels.name.bold ? "bold" : ""}`),
|
|
1762
|
-
onClick: (
|
|
1763
|
-
onMouseenter: (
|
|
1766
|
+
onClick: (u) => ye(t, o),
|
|
1767
|
+
onMouseenter: (u) => fe({
|
|
1764
1768
|
datapoint: t,
|
|
1765
1769
|
relativeIndex: o,
|
|
1766
1770
|
seriesIndex: t.seriesIndex,
|
|
1767
1771
|
show: !0
|
|
1768
1772
|
}),
|
|
1769
|
-
onMouseleave: (
|
|
1773
|
+
onMouseleave: (u) => he({ datapoint: t, seriesIndex: t.seriesIndex }),
|
|
1770
1774
|
innerHTML: s(il)({
|
|
1771
1775
|
content: t.name,
|
|
1772
1776
|
fontSize: N.value,
|
|
1773
1777
|
fill: e.value.style.chart.layout.labels.name.color,
|
|
1774
|
-
x: s(Y)[o]?.labelX ?? s(
|
|
1775
|
-
y: (s(Y)[o]?.labelY ?? s(
|
|
1778
|
+
x: s(Y)[o]?.labelX ?? s($)(t, !0, 12).x,
|
|
1779
|
+
y: (s(Y)[o]?.labelY ?? s(ke)(t)) + N.value
|
|
1776
1780
|
})
|
|
1777
|
-
}, null, 44,
|
|
1778
|
-
[
|
|
1781
|
+
}, null, 44, za), [
|
|
1782
|
+
[kt, q(t) && m.value.dataLabels.show]
|
|
1779
1783
|
])
|
|
1780
1784
|
], 64))
|
|
1781
1785
|
], 64)) : f("", !0),
|
|
1782
|
-
e.value.type === "polar" ? (
|
|
1783
|
-
q(t) && m.value.dataLabels.show ? (
|
|
1786
|
+
e.value.type === "polar" ? (r(), i(_, { key: 1 }, [
|
|
1787
|
+
q(t) && m.value.dataLabels.show ? (r(), i("circle", {
|
|
1784
1788
|
key: 0,
|
|
1785
1789
|
cx: s(z)({ initX: v.value[o].middlePoint.x, initY: v.value[o].middlePoint.y, offset: 24, centerX: n.value.width / 2, centerY: n.value.height / 2 }).x,
|
|
1786
1790
|
cy: s(z)({ initX: v.value[o].middlePoint.x, initY: v.value[o].middlePoint.y, offset: 24, centerX: n.value.width / 2, centerY: n.value.height / 2 }).y,
|
|
@@ -1789,19 +1793,19 @@ const dl = { style: { chart: { backgroundColor: "#1A1A1A", color: "#CCCCCC", lay
|
|
|
1789
1793
|
"stroke-width": 1,
|
|
1790
1794
|
r: 3,
|
|
1791
1795
|
filter: !e.value.useBlurOnHover || [null, void 0].includes(M.value) || M.value === o ? "" : `url(#blur_${c.value})`,
|
|
1792
|
-
onClick: (
|
|
1793
|
-
onMouseenter: (
|
|
1796
|
+
onClick: (u) => ye(t, o),
|
|
1797
|
+
onMouseenter: (u) => fe({
|
|
1794
1798
|
datapoint: t,
|
|
1795
1799
|
relativeIndex: o,
|
|
1796
1800
|
seriesIndex: t.seriesIndex,
|
|
1797
1801
|
show: !0
|
|
1798
1802
|
}),
|
|
1799
|
-
onMouseleave: (
|
|
1803
|
+
onMouseleave: (u) => he({ datapoint: t, seriesIndex: t.seriesIndex }),
|
|
1800
1804
|
style: I({
|
|
1801
1805
|
transition: P.value || !e.value.serieToggleAnimation.show ? "none" : `all ${e.value.serieToggleAnimation.durationMs}ms ease-in-out`
|
|
1802
1806
|
})
|
|
1803
|
-
}, null, 44,
|
|
1804
|
-
e.value.style.chart.layout.labels.dataLabels.oneLine ?
|
|
1807
|
+
}, null, 44, Oa)) : f("", !0),
|
|
1808
|
+
e.value.style.chart.layout.labels.dataLabels.oneLine ? wt((r(), i("text", {
|
|
1805
1809
|
key: 1,
|
|
1806
1810
|
class: "vue-data-ui-datalabel-inline",
|
|
1807
1811
|
"text-anchor": Te(v.value[o].middlePoint),
|
|
@@ -1810,19 +1814,19 @@ const dl = { style: { chart: { backgroundColor: "#1A1A1A", color: "#CCCCCC", lay
|
|
|
1810
1814
|
style: I({
|
|
1811
1815
|
transition: P.value || !e.value.serieToggleAnimation.show ? "none" : `all ${e.value.serieToggleAnimation.durationMs}ms ease-in-out`
|
|
1812
1816
|
}),
|
|
1813
|
-
onClick: (
|
|
1814
|
-
onMouseenter: (
|
|
1817
|
+
onClick: (u) => ye(t, o),
|
|
1818
|
+
onMouseenter: (u) => fe({
|
|
1815
1819
|
datapoint: t,
|
|
1816
1820
|
relativeIndex: o,
|
|
1817
1821
|
seriesIndex: t.seriesIndex,
|
|
1818
1822
|
show: !0
|
|
1819
1823
|
}),
|
|
1820
|
-
onMouseleave: (
|
|
1821
|
-
innerHTML:
|
|
1822
|
-
}, null, 44,
|
|
1823
|
-
[
|
|
1824
|
-
]) : (
|
|
1825
|
-
q(t) && m.value.dataLabels.show ? (
|
|
1824
|
+
onMouseleave: (u) => he({ datapoint: t, seriesIndex: t.seriesIndex }),
|
|
1825
|
+
innerHTML: Fl(t, o)
|
|
1826
|
+
}, null, 44, Ya)), [
|
|
1827
|
+
[kt, q(t) && m.value.dataLabels.show]
|
|
1828
|
+
]) : (r(), i(_, { key: 2 }, [
|
|
1829
|
+
q(t) && m.value.dataLabels.show ? (r(), i("text", {
|
|
1826
1830
|
key: 0,
|
|
1827
1831
|
class: "vue-data-ui-datalabel-value",
|
|
1828
1832
|
"text-anchor": Te(v.value[o].middlePoint),
|
|
@@ -1834,16 +1838,16 @@ const dl = { style: { chart: { backgroundColor: "#1A1A1A", color: "#CCCCCC", lay
|
|
|
1834
1838
|
transition: P.value || !e.value.serieToggleAnimation.show ? "none" : `all ${e.value.serieToggleAnimation.durationMs}ms ease-in-out`,
|
|
1835
1839
|
fontWeight: e.value.style.chart.layout.labels.percentage.bold ? "bold" : "normal"
|
|
1836
1840
|
}),
|
|
1837
|
-
onClick: (
|
|
1838
|
-
onMouseenter: (
|
|
1841
|
+
onClick: (u) => ye(t, o),
|
|
1842
|
+
onMouseenter: (u) => fe({
|
|
1839
1843
|
datapoint: t,
|
|
1840
1844
|
relativeIndex: o,
|
|
1841
1845
|
seriesIndex: t.seriesIndex,
|
|
1842
1846
|
show: !0
|
|
1843
1847
|
}),
|
|
1844
|
-
onMouseleave: (
|
|
1845
|
-
},
|
|
1846
|
-
q(t) && m.value.dataLabels.show ? (
|
|
1848
|
+
onMouseleave: (u) => he({ datapoint: t, seriesIndex: t.seriesIndex })
|
|
1849
|
+
}, we(bt(t)), 45, Ea)) : f("", !0),
|
|
1850
|
+
q(t) && m.value.dataLabels.show ? (r(), i("text", {
|
|
1847
1851
|
key: 1,
|
|
1848
1852
|
class: "vue-data-ui-datalabel-name",
|
|
1849
1853
|
"text-anchor": Te(v.value[o].middlePoint),
|
|
@@ -1855,14 +1859,14 @@ const dl = { style: { chart: { backgroundColor: "#1A1A1A", color: "#CCCCCC", lay
|
|
|
1855
1859
|
transition: P.value || !e.value.serieToggleAnimation.show ? "none" : `all ${e.value.serieToggleAnimation.durationMs}ms ease-in-out`,
|
|
1856
1860
|
fontWeight: e.value.style.chart.layout.labels.name.bold ? "bold" : "normal"
|
|
1857
1861
|
}),
|
|
1858
|
-
onClick: (
|
|
1859
|
-
onMouseenter: (
|
|
1862
|
+
onClick: (u) => ye(t, o),
|
|
1863
|
+
onMouseenter: (u) => fe({
|
|
1860
1864
|
datapoint: t,
|
|
1861
1865
|
relativeIndex: o,
|
|
1862
1866
|
seriesIndex: t.seriesIndex,
|
|
1863
1867
|
show: !0
|
|
1864
1868
|
}),
|
|
1865
|
-
onMouseleave: (
|
|
1869
|
+
onMouseleave: (u) => he({ datapoint: t, seriesIndex: t.seriesIndex }),
|
|
1866
1870
|
innerHTML: s(il)({
|
|
1867
1871
|
content: t.name,
|
|
1868
1872
|
fontSize: xe.value,
|
|
@@ -1870,29 +1874,29 @@ const dl = { style: { chart: { backgroundColor: "#1A1A1A", color: "#CCCCCC", lay
|
|
|
1870
1874
|
x: s(z)({ initX: v.value[o].middlePoint.x, initY: v.value[o].middlePoint.y, offset: 42, centerX: n.value.width / 2, centerY: n.value.height / 2 }).x,
|
|
1871
1875
|
y: s(z)({ initX: v.value[o].middlePoint.x, initY: v.value[o].middlePoint.y, offset: 42, centerX: n.value.width / 2, centerY: n.value.height / 2 }).y + N.value * 1.2
|
|
1872
1876
|
})
|
|
1873
|
-
}, null, 44,
|
|
1877
|
+
}, null, 44, Xa)) : f("", !0)
|
|
1874
1878
|
], 64))
|
|
1875
1879
|
], 64)) : f("", !0)
|
|
1876
1880
|
])),
|
|
1877
|
-
m.value.dataLabels.show && e.value.style.chart.comments.show && t.comment ? (
|
|
1878
|
-
q(t) && e.value.type === "classic" ? (
|
|
1881
|
+
m.value.dataLabels.show && e.value.style.chart.comments.show && t.comment ? (r(), i("g", Na, [
|
|
1882
|
+
q(t) && e.value.type === "classic" ? (r(), i("foreignObject", {
|
|
1879
1883
|
key: 0,
|
|
1880
|
-
x: e.value.style.chart.comments.offsetX + (s(
|
|
1881
|
-
y: s(
|
|
1884
|
+
x: e.value.style.chart.comments.offsetX + (s($)(t, !0).anchor === "end" ? s($)(t).x - e.value.style.chart.comments.width : s($)(t, !0).anchor === "middle" ? s($)(t).x - e.value.style.chart.comments.width / 2 : s($)(t).x),
|
|
1885
|
+
y: s(ke)(t) + 24 + e.value.style.chart.comments.offsetY,
|
|
1882
1886
|
width: e.value.style.chart.comments.width,
|
|
1883
1887
|
height: "200",
|
|
1884
1888
|
style: { overflow: "visible", "pointer-events": "none" }
|
|
1885
1889
|
}, [
|
|
1886
1890
|
b("div", null, [
|
|
1887
|
-
|
|
1888
|
-
plot: { ...t, textAlign: s(
|
|
1891
|
+
C(l.$slots, "plot-comment", {
|
|
1892
|
+
plot: { ...t, textAlign: s($)(t, !0, 16, !0).anchor, flexAlign: s($)(t, !0, 16).anchor, isFirstLoad: P.value }
|
|
1889
1893
|
}, void 0, !0)
|
|
1890
1894
|
])
|
|
1891
|
-
], 8,
|
|
1892
|
-
q(t) && e.value.type === "polar" ? (
|
|
1895
|
+
], 8, Ra)) : f("", !0),
|
|
1896
|
+
q(t) && e.value.type === "polar" ? (r(), i("foreignObject", {
|
|
1893
1897
|
key: 1,
|
|
1894
1898
|
x: e.value.style.chart.comments.offsetX + (Te(v.value[o].middlePoint) === "end" ? s(z)({ initX: v.value[o].middlePoint.x, initY: v.value[o].middlePoint.y, offset: 42, centerX: n.value.width / 2, centerY: n.value.height / 2 }).x - e.value.style.chart.comments.width : Te(v.value[o].middlePoint) === "middle" ? s(z)({ initX: v.value[o].middlePoint.x, initY: v.value[o].middlePoint.y, offset: 42, centerX: n.value.width / 2, centerY: n.value.height / 2 }).x - e.value.style.chart.comments.width / 2 : s(z)({ initX: v.value[o].middlePoint.x, initY: v.value[o].middlePoint.y, offset: 42, centerX: n.value.width / 2, centerY: n.value.height / 2 }).x),
|
|
1895
|
-
y:
|
|
1899
|
+
y: _l(v.value[o]) + e.value.style.chart.comments.offsetY,
|
|
1896
1900
|
width: e.value.style.chart.comments.width,
|
|
1897
1901
|
height: "200",
|
|
1898
1902
|
style: I({
|
|
@@ -1902,48 +1906,48 @@ const dl = { style: { chart: { backgroundColor: "#1A1A1A", color: "#CCCCCC", lay
|
|
|
1902
1906
|
})
|
|
1903
1907
|
}, [
|
|
1904
1908
|
b("div", null, [
|
|
1905
|
-
|
|
1909
|
+
C(l.$slots, "plot-comment", {
|
|
1906
1910
|
plot: { ...t, textAlign: Te(v.value[o].middlePoint), flexAlign: Te(v.value[o].middlePoint), isFirstLoad: P.value }
|
|
1907
1911
|
}, void 0, !0)
|
|
1908
1912
|
])
|
|
1909
|
-
], 12,
|
|
1913
|
+
], 12, Va)) : f("", !0)
|
|
1910
1914
|
])) : f("", !0)
|
|
1911
|
-
], 10,
|
|
1912
|
-
|
|
1915
|
+
], 10, Sa))), 128)),
|
|
1916
|
+
C(l.$slots, "svg", { svg: n.value }, void 0, !0)
|
|
1913
1917
|
], 512)
|
|
1914
|
-
], 14,
|
|
1915
|
-
l.$slots.watermark ? (
|
|
1916
|
-
|
|
1918
|
+
], 14, Do)),
|
|
1919
|
+
l.$slots.watermark ? (r(), i("div", Ua, [
|
|
1920
|
+
C(l.$slots, "watermark", ee(te({ isPrinting: s(K) || s(Z) })), void 0, !0)
|
|
1917
1921
|
])) : f("", !0),
|
|
1918
1922
|
b("div", {
|
|
1919
1923
|
id: `legend-bottom-${c.value}`
|
|
1920
|
-
}, null, 8,
|
|
1921
|
-
dt.value ? (
|
|
1924
|
+
}, null, 8, Ha),
|
|
1925
|
+
dt.value ? (r(), Pe(ql, {
|
|
1922
1926
|
key: 5,
|
|
1923
1927
|
to: e.value.style.chart.legend.position === "top" ? `#legend-top-${c.value}` : `#legend-bottom-${c.value}`
|
|
1924
1928
|
}, [
|
|
1925
1929
|
b("div", {
|
|
1926
1930
|
ref_key: "chartLegend",
|
|
1927
|
-
ref:
|
|
1931
|
+
ref: rt
|
|
1928
1932
|
}, [
|
|
1929
|
-
e.value.style.chart.legend.show ? (
|
|
1933
|
+
e.value.style.chart.legend.show ? (r(), Pe(So, {
|
|
1930
1934
|
key: `legend_${ct.value}`,
|
|
1931
1935
|
legendSet: Bt.value,
|
|
1932
|
-
config:
|
|
1936
|
+
config: xl.value,
|
|
1933
1937
|
onClickMarker: a[3] || (a[3] = ({ i: t }) => Xe(t))
|
|
1934
1938
|
}, Rt({
|
|
1935
|
-
item:
|
|
1939
|
+
item: k(({ legend: t, index: o }) => [
|
|
1936
1940
|
b("div", {
|
|
1937
1941
|
style: I(`opacity:${O.value.includes(o) ? 0.5 : 1}`),
|
|
1938
|
-
onClick: (
|
|
1939
|
-
},
|
|
1942
|
+
onClick: (u) => t.segregate()
|
|
1943
|
+
}, we(t.display), 13, Ga)
|
|
1940
1944
|
]),
|
|
1941
1945
|
_: 2
|
|
1942
1946
|
}, [
|
|
1943
1947
|
l.$slots.pattern ? {
|
|
1944
1948
|
name: "legend-pattern",
|
|
1945
|
-
fn:
|
|
1946
|
-
|
|
1949
|
+
fn: k(({ legend: t, index: o }) => [
|
|
1950
|
+
Ct(To, {
|
|
1947
1951
|
shape: t.shape,
|
|
1948
1952
|
radius: 30,
|
|
1949
1953
|
stroke: "none",
|
|
@@ -1954,25 +1958,25 @@ const dl = { style: { chart: { backgroundColor: "#1A1A1A", color: "#CCCCCC", lay
|
|
|
1954
1958
|
key: "0"
|
|
1955
1959
|
} : void 0
|
|
1956
1960
|
]), 1032, ["legendSet", "config"])) : f("", !0),
|
|
1957
|
-
|
|
1961
|
+
C(l.$slots, "legend", { legend: Bt.value }, void 0, !0)
|
|
1958
1962
|
], 512)
|
|
1959
1963
|
], 8, ["to"])) : f("", !0),
|
|
1960
|
-
l.$slots.source ? (
|
|
1964
|
+
l.$slots.source ? (r(), i("div", {
|
|
1961
1965
|
key: 6,
|
|
1962
1966
|
ref_key: "source",
|
|
1963
1967
|
ref: He,
|
|
1964
1968
|
dir: "auto"
|
|
1965
1969
|
}, [
|
|
1966
|
-
|
|
1970
|
+
C(l.$slots, "source", {}, void 0, !0)
|
|
1967
1971
|
], 512)) : f("", !0),
|
|
1968
|
-
l.$slots.hollow ? (
|
|
1969
|
-
|
|
1972
|
+
l.$slots.hollow ? (r(), i("div", ja, [
|
|
1973
|
+
C(l.$slots, "hollow", ee(te({
|
|
1970
1974
|
total: Q.value,
|
|
1971
1975
|
average: zt.value,
|
|
1972
1976
|
dataset: R.value
|
|
1973
1977
|
})), void 0, !0)
|
|
1974
1978
|
])) : f("", !0),
|
|
1975
|
-
|
|
1979
|
+
Ct(s(Re), {
|
|
1976
1980
|
teleportTo: e.value.style.chart.tooltip.teleportTo,
|
|
1977
1981
|
show: m.value.showTooltip && S.value,
|
|
1978
1982
|
backgroundColor: e.value.style.chart.tooltip.backgroundColor,
|
|
@@ -1993,21 +1997,21 @@ const dl = { style: { chart: { backgroundColor: "#1A1A1A", color: "#CCCCCC", lay
|
|
|
1993
1997
|
smoothForce: e.value.style.chart.tooltip.smoothForce,
|
|
1994
1998
|
smoothSnapThreshold: e.value.style.chart.tooltip.smoothSnapThrehsold
|
|
1995
1999
|
}, {
|
|
1996
|
-
"tooltip-before":
|
|
1997
|
-
|
|
2000
|
+
"tooltip-before": k(() => [
|
|
2001
|
+
C(l.$slots, "tooltip-before", ee(te({ ...Ot.value })), void 0, !0)
|
|
1998
2002
|
]),
|
|
1999
|
-
"tooltip-after":
|
|
2000
|
-
|
|
2003
|
+
"tooltip-after": k(() => [
|
|
2004
|
+
C(l.$slots, "tooltip-after", ee(te({ ...Ot.value })), void 0, !0)
|
|
2001
2005
|
]),
|
|
2002
2006
|
_: 3
|
|
2003
2007
|
}, 8, ["teleportTo", "show", "backgroundColor", "color", "fontSize", "borderRadius", "borderColor", "borderWidth", "backgroundOpacity", "position", "offsetY", "parent", "content", "isCustom", "isFullscreen", "smooth", "backdropFilter", "smoothForce", "smoothSnapThreshold"]),
|
|
2004
|
-
D.value && e.value.userOptions.buttons.table ? (
|
|
2008
|
+
D.value && e.value.userOptions.buttons.table ? (r(), Pe(Ql(et.value.component), Vt({ key: 8 }, et.value.props, {
|
|
2005
2009
|
ref_key: "tableUnit",
|
|
2006
2010
|
ref: Ie,
|
|
2007
2011
|
onClose: tl
|
|
2008
2012
|
}), Rt({
|
|
2009
|
-
content:
|
|
2010
|
-
(
|
|
2013
|
+
content: k(() => [
|
|
2014
|
+
(r(), Pe(s(at), {
|
|
2011
2015
|
key: `table_${it.value}`,
|
|
2012
2016
|
colNames: pt.value.colNames,
|
|
2013
2017
|
head: pt.value.head,
|
|
@@ -2017,14 +2021,14 @@ const dl = { style: { chart: { backgroundColor: "#1A1A1A", color: "#CCCCCC", lay
|
|
|
2017
2021
|
withCloseButton: !e.value.table.useDialog,
|
|
2018
2022
|
onClose: tl
|
|
2019
2023
|
}, {
|
|
2020
|
-
th:
|
|
2024
|
+
th: k(({ th: t }) => [
|
|
2021
2025
|
b("div", {
|
|
2022
2026
|
innerHTML: t,
|
|
2023
2027
|
style: { display: "flex", "align-items": "center" }
|
|
2024
|
-
}, null, 8,
|
|
2028
|
+
}, null, 8, Wa)
|
|
2025
2029
|
]),
|
|
2026
|
-
td:
|
|
2027
|
-
nl(
|
|
2030
|
+
td: k(({ td: t }) => [
|
|
2031
|
+
nl(we(t.name ? t.name : isNaN(Number(t)) ? t.includes("%") ? t : s(ge)(
|
|
2028
2032
|
e.value.style.chart.layout.labels.percentage.formatter,
|
|
2029
2033
|
t,
|
|
2030
2034
|
s(ie)({
|
|
@@ -2050,20 +2054,20 @@ const dl = { style: { chart: { backgroundColor: "#1A1A1A", color: "#CCCCCC", lay
|
|
|
2050
2054
|
}, [
|
|
2051
2055
|
e.value.table.useDialog ? {
|
|
2052
2056
|
name: "title",
|
|
2053
|
-
fn:
|
|
2054
|
-
nl(
|
|
2057
|
+
fn: k(() => [
|
|
2058
|
+
nl(we(et.value.title), 1)
|
|
2055
2059
|
]),
|
|
2056
2060
|
key: "0"
|
|
2057
2061
|
} : void 0,
|
|
2058
2062
|
e.value.table.useDialog ? {
|
|
2059
2063
|
name: "actions",
|
|
2060
|
-
fn:
|
|
2064
|
+
fn: k(() => [
|
|
2061
2065
|
b("button", {
|
|
2062
2066
|
tabindex: "0",
|
|
2063
2067
|
class: "vue-ui-user-options-button",
|
|
2064
2068
|
onClick: a[4] || (a[4] = (t) => Yt(e.value.userOptions.callbacks.csv))
|
|
2065
2069
|
}, [
|
|
2066
|
-
|
|
2070
|
+
Ct(s(ot), {
|
|
2067
2071
|
name: "excel",
|
|
2068
2072
|
stroke: et.value.props.color
|
|
2069
2073
|
}, null, 8, ["stroke"])
|
|
@@ -2072,15 +2076,15 @@ const dl = { style: { chart: { backgroundColor: "#1A1A1A", color: "#CCCCCC", lay
|
|
|
2072
2076
|
key: "1"
|
|
2073
2077
|
} : void 0
|
|
2074
2078
|
]), 1040)) : f("", !0),
|
|
2075
|
-
s(ne) ? (
|
|
2076
|
-
], 46,
|
|
2079
|
+
s(ne) ? (r(), Pe(wo, { key: 9 })) : f("", !0)
|
|
2080
|
+
], 46, Fo));
|
|
2077
2081
|
}
|
|
2078
|
-
},
|
|
2082
|
+
}, Qa = /* @__PURE__ */ Mo(qa, [["__scopeId", "data-v-0bacea64"]]), yn = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
2079
2083
|
__proto__: null,
|
|
2080
|
-
default:
|
|
2084
|
+
default: Qa
|
|
2081
2085
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
2082
2086
|
export {
|
|
2083
|
-
|
|
2084
|
-
|
|
2085
|
-
|
|
2087
|
+
Qa as V,
|
|
2088
|
+
yn as a,
|
|
2089
|
+
fn as v
|
|
2086
2090
|
};
|