vue-data-ui 3.8.4 → 3.9.0
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 +8 -4
- package/dist/{BaseDraggableDialog-C2wzOVzX.js → BaseDraggableDialog-B6wHUQPl.js} +1 -1
- package/dist/{BaseIcon-_2VlkSHq.js → BaseIcon-CQaciFyv.js} +3 -2
- package/dist/BaseScanner-BMpwQAfz.js +30 -0
- package/dist/BaseZoomControls-AMmyXEyM.js +110 -0
- package/dist/{ColorPicker-Y-VfX-24.js → ColorPicker-nZHFmXUV.js} +1 -1
- package/dist/{DataTable-CokMin24.js → DataTable-C8cgUUyx.js} +1 -1
- package/dist/{NonSvgPenAndPaper-ir3Z1ZAu.js → NonSvgPenAndPaper-CVjActC2.js} +2 -2
- package/dist/{PackageVersion-BuD3uLvK.js → PackageVersion-DXy-wfBa.js} +1 -1
- package/dist/{PenAndPaper-CFRubEEG.js → PenAndPaper-DtbXViIl.js} +2 -2
- package/dist/{Slicer-CVcdknEx.js → Slicer-DtlEs698.js} +1 -1
- package/dist/{SlicerPreview-C1EQEgYE.js → SlicerPreview-DmzwkUJ4.js} +1 -1
- package/dist/{Title-DnykBvFl.js → Title-osQjQYc-.js} +1 -1
- package/dist/{UserOptions-M5A9w5GL.js → UserOptions-DeiXBImO.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-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 +5 -0
- 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/geoProjections-D0Vxsz_O.js +154 -0
- package/dist/style.css +1 -1
- package/dist/types/vue-data-ui.d.ts +210 -4
- package/dist/types/vue-ui-geo.d.ts +10 -0
- package/dist/{useNestedProp-CNjAKn-Z.js → useNestedProp-BeKjhKny.js} +100 -19
- package/dist/{vue-data-ui-DXfEvcys.js → vue-data-ui-BDPkTNHQ.js} +113 -108
- package/dist/vue-data-ui.js +101 -98
- package/dist/{vue-ui-3d-bar-BR7AtlR0.js → vue-ui-3d-bar-uKhbCJCE.js} +4 -4
- package/dist/{vue-ui-accordion-WOPRF2Tv.js → vue-ui-accordion-nCaoOi6x.js} +2 -2
- package/dist/{vue-ui-age-pyramid-DUcx-5pl.js → vue-ui-age-pyramid-DLT_gkMY.js} +4 -4
- package/dist/{vue-ui-annotator-BBgWTQxm.js → vue-ui-annotator-3wBuXKBn.js} +4 -4
- package/dist/{vue-ui-bullet-e-E8vgoK.js → vue-ui-bullet-BwOyLfur.js} +4 -4
- package/dist/{vue-ui-candlestick-ofOO-UZd.js → vue-ui-candlestick-DvIJjYgT.js} +5 -5
- package/dist/{vue-ui-carousel-table-Cw9AZ6K_.js → vue-ui-carousel-table-mQdTBiJ6.js} +2 -2
- package/dist/{vue-ui-chestnut-BfxiZIas.js → vue-ui-chestnut-D4aL-SRw.js} +3 -3
- package/dist/{vue-ui-chord-BZplQ2Ah.js → vue-ui-chord-BNyOLiis.js} +4 -4
- package/dist/{vue-ui-circle-pack-65-cbeZq.js → vue-ui-circle-pack-DGjOBC77.js} +4 -4
- package/dist/{vue-ui-cursor-CowLXeRB.js → vue-ui-cursor-JDfWC_4Z.js} +2 -2
- package/dist/{vue-ui-dag-Cnv5koqb.js → vue-ui-dag-C7GVHRdz.js} +706 -809
- package/dist/{vue-ui-dashboard-CH4lfPnJ.js → vue-ui-dashboard-Dhte9CS8.js} +66 -66
- package/dist/{vue-ui-digits-DwsMbBDJ.js → vue-ui-digits-D2zs8kUV.js} +1 -1
- package/dist/{vue-ui-donut-gntDZdB4.js → vue-ui-donut-BnJXrdXi.js} +849 -839
- package/dist/{vue-ui-donut-evolution-DNicvCVK.js → vue-ui-donut-evolution-B7IXs662.js} +5 -5
- package/dist/{vue-ui-dumbbell-CQIJgRxY.js → vue-ui-dumbbell-icb7XI8Y.js} +4 -4
- package/dist/{vue-ui-flow-BUThxO9F.js → vue-ui-flow-BkFZyi2d.js} +4 -4
- package/dist/{vue-ui-funnel-fPcBhjoP.js → vue-ui-funnel-BtCQx40Z.js} +3 -3
- package/dist/{vue-ui-galaxy-ClBzduIz.js → vue-ui-galaxy-DlkNLZDJ.js} +4 -4
- package/dist/{vue-ui-gauge-BnWsuqfT.js → vue-ui-gauge-Cdj0ecH3.js} +4 -4
- package/dist/vue-ui-geo-e3rtm3qo.js +977 -0
- package/dist/{vue-ui-gizmo-B1RWjhoX.js → vue-ui-gizmo-D14h2JTq.js} +3 -3
- package/dist/{vue-ui-heatmap-CdGmGjGH.js → vue-ui-heatmap-rpR42azQ.js} +5 -5
- package/dist/{vue-ui-history-plot-CyUvc35T.js → vue-ui-history-plot-Cecn8Oxm.js} +4 -4
- package/dist/{vue-ui-horizontal-bar-CUwFkoh_.js → vue-ui-horizontal-bar-VKpzt8eG.js} +9 -9
- package/dist/{vue-ui-kpi-BXQvKfTh.js → vue-ui-kpi-C_sejZsA.js} +2 -2
- package/dist/{vue-ui-mini-loader-DFBgplMk.js → vue-ui-mini-loader-BEBv2BjZ.js} +1 -1
- package/dist/{vue-ui-molecule-BTaGK6l7.js → vue-ui-molecule-DlEuruqh.js} +3 -3
- package/dist/{vue-ui-mood-radar-DIxGLyf6.js → vue-ui-mood-radar-BAP8G4Wj.js} +4 -4
- package/dist/{vue-ui-nested-donuts-Buo1qlvt.js → vue-ui-nested-donuts-DSxsX5Vz.js} +4 -4
- package/dist/{vue-ui-onion-CTRuEQxm.js → vue-ui-onion-BcFbjgm_.js} +4 -4
- package/dist/{vue-ui-parallel-coordinate-plot-CX_sxW2v.js → vue-ui-parallel-coordinate-plot-C-qcnEpN.js} +4 -4
- package/dist/{vue-ui-quadrant-DmVXReZH.js → vue-ui-quadrant-ChTRugDc.js} +4 -4
- package/dist/{vue-ui-quick-chart-B9hUcTr6.js → vue-ui-quick-chart-CkRSQBoP.js} +4 -4
- package/dist/{vue-ui-radar-DCIkshOp.js → vue-ui-radar-D7h9MmKX.js} +4 -4
- package/dist/{vue-ui-rating-jjJl1N9l.js → vue-ui-rating-Ci09laQN.js} +1 -1
- package/dist/{vue-ui-relation-circle-CM2duT_R.js → vue-ui-relation-circle-BGSf9_de.js} +4 -4
- package/dist/{vue-ui-ridgeline-y7Fwkr-1.js → vue-ui-ridgeline-BP3OBUSp.js} +4 -4
- package/dist/{vue-ui-rings-B6HLC79S.js → vue-ui-rings-bixIaG84.js} +4 -4
- package/dist/{vue-ui-scatter-BDp469sU.js → vue-ui-scatter-CsbW44rO.js} +4 -4
- package/dist/{vue-ui-skeleton-CTivICoM.js → vue-ui-skeleton-B7FFPfD7.js} +2 -2
- package/dist/{vue-ui-smiley-YLy2xBa-.js → vue-ui-smiley-BW0ksZH3.js} +1 -1
- package/dist/{vue-ui-spark-trend-B2wOWiSY.js → vue-ui-spark-trend-BWiUSAGV.js} +3 -3
- package/dist/{vue-ui-sparkbar-CqwjRMPQ.js → vue-ui-sparkbar-Y1-PvC2Q.js} +3 -3
- package/dist/{vue-ui-sparkgauge-BNv5nBv8.js → vue-ui-sparkgauge-DIOgIo9T.js} +3 -3
- package/dist/{vue-ui-sparkhistogram-ZrALpNpM.js → vue-ui-sparkhistogram-Cc45FboV.js} +3 -3
- package/dist/{vue-ui-sparkline-D7_6htbE.js → vue-ui-sparkline-BkxHQO4g.js} +3 -3
- package/dist/{vue-ui-sparkstackbar-BQD6cbOE.js → vue-ui-sparkstackbar-eL00_vqY.js} +3 -3
- package/dist/{vue-ui-stackbar-C9KeiS-Q.js → vue-ui-stackbar-CCgBPMxT.js} +5 -5
- package/dist/{vue-ui-stackline-qJW5y3GA.js → vue-ui-stackline-CrChjJG1.js} +5 -5
- package/dist/{vue-ui-strip-plot-Bgt_dkJ3.js → vue-ui-strip-plot-ChBPDnF4.js} +4 -4
- package/dist/{vue-ui-table-BvpnTcTk.js → vue-ui-table-Bf7ErBf-.js} +4 -4
- package/dist/{vue-ui-table-heatmap-UkSDagXf.js → vue-ui-table-heatmap-BecLm3ow.js} +2 -2
- package/dist/{vue-ui-table-sparkline-D-UoYPFq.js → vue-ui-table-sparkline-CQf4nxMY.js} +2 -2
- package/dist/{vue-ui-thermometer-CCySf8Ei.js → vue-ui-thermometer-1vtRLqYp.js} +4 -4
- package/dist/{vue-ui-timer-D2-YQFf3.js → vue-ui-timer-C0_Umc6p.js} +4 -4
- package/dist/{vue-ui-tiremarks-NDuNR9MY.js → vue-ui-tiremarks-iijIId_5.js} +4 -4
- package/dist/{vue-ui-treemap-Dzlc-kC5.js → vue-ui-treemap-vE6a19Mm.js} +5 -5
- package/dist/{vue-ui-waffle-CBBfrQqs.js → vue-ui-waffle-C8kR8CpE.js} +4 -4
- package/dist/{vue-ui-wheel-iFV_KfLw.js → vue-ui-wheel-D4OCD06F.js} +4 -4
- package/dist/{vue-ui-word-cloud-DLBK1KRY.js → vue-ui-word-cloud-Zhi8r9_M.js} +4 -4
- package/dist/{vue-ui-world-BinQefwp.js → vue-ui-world-CKdzBshi.js} +430 -579
- package/dist/{vue-ui-xy-BSxvJyZM.js → vue-ui-xy-BOzzwSSP.js} +6 -6
- package/dist/{vue-ui-xy-canvas-Bl4ZS4GS.js → vue-ui-xy-canvas-CLoA6DTt.js} +7 -7
- package/package.json +1 -1
- package/dist/BaseScanner-BgWxam9d.js +0 -29
|
@@ -1,42 +1,42 @@
|
|
|
1
|
-
import { defineAsyncComponent as
|
|
2
|
-
import { o as
|
|
3
|
-
import { t as
|
|
4
|
-
import { u 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
|
|
12
|
-
import { _ as
|
|
13
|
-
import
|
|
14
|
-
import
|
|
15
|
-
import { _ as
|
|
16
|
-
const
|
|
1
|
+
import { defineAsyncComponent as pe, useSlots as ua, computed as f, shallowRef as be, ref as w, onMounted as el, onBeforeUnmount as tl, toRefs as ra, watch as Pe, createElementBlock as i, openBlock as s, normalizeStyle as M, normalizeClass as ft, createBlock as me, createCommentVNode as d, renderSlot as p, createElementVNode as y, createVNode as qe, unref as r, withCtx as C, normalizeProps as Z, guardReactiveProps as ee, createSlots as yt, Fragment as A, renderList as H, mergeProps as gt, toDisplayString as oe, withDirectives as Qe, vShow as Je, Teleport as ia, resolveDynamicComponent as ca, createTextVNode as ll, nextTick as va } from "vue";
|
|
2
|
+
import { o as al, g as pt, k as da, c as ha, t as fa, j as ya, T as ga, l as ol, p as _e, a as q, d as G, a2 as nl, a6 as pa, a7 as ba, a5 as x, a4 as ie, X as ma, s as Ke, h as wa, a3 as ka, a8 as L, a9 as sl, f as Ca, i as xa, a0 as bt, u as $a, q as Aa, x as _a, aa as ul } from "./lib-_nVZfi2t.js";
|
|
3
|
+
import { t as Ta, u as Sa } from "./useResponsive-DfdjqQps.js";
|
|
4
|
+
import { u as Ma, a as mt } from "./useNestedProp-BeKjhKny.js";
|
|
5
|
+
import { u as Pa } from "./usePrinter-DXIMGR61.js";
|
|
6
|
+
import { u as Fa, B as La } from "./BaseScanner-BMpwQAfz.js";
|
|
7
|
+
import { u as Ia } from "./useSvgExport-DrjCWun4.js";
|
|
8
|
+
import { u as Da } from "./useThemeCheck-DGJ31Vi5.js";
|
|
9
|
+
import { u as Ya } from "./useUserOptionState-BIvW1Kz7.js";
|
|
10
|
+
import { u as za } from "./useChartAccessibility-9icAAmYg.js";
|
|
11
|
+
import Ba from "./img-C5q4A7ke.js";
|
|
12
|
+
import { _ as Xa } from "./Shape-BuBasQnO.js";
|
|
13
|
+
import Oa from "./Title-osQjQYc-.js";
|
|
14
|
+
import Ea from "./Legend-PhhPyrZ0.js";
|
|
15
|
+
import { _ as Na } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
16
|
+
const rl = { 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" } } }, il = { 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" } } }, cl = { 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" } } }, vl = { 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" } } }, dl = { 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" } } }, hl = { 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" } } }, fl = {
|
|
17
17
|
default: {},
|
|
18
|
-
dark:
|
|
19
|
-
celebration:
|
|
20
|
-
celebrationNight:
|
|
21
|
-
concrete:
|
|
22
|
-
hack:
|
|
23
|
-
zen:
|
|
24
|
-
},
|
|
18
|
+
dark: rl,
|
|
19
|
+
celebration: il,
|
|
20
|
+
celebrationNight: cl,
|
|
21
|
+
concrete: vl,
|
|
22
|
+
hack: dl,
|
|
23
|
+
zen: hl
|
|
24
|
+
}, $n = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
25
25
|
__proto__: null,
|
|
26
|
-
celebration:
|
|
27
|
-
celebrationNight:
|
|
28
|
-
concrete:
|
|
29
|
-
dark:
|
|
30
|
-
default:
|
|
31
|
-
hack:
|
|
32
|
-
zen:
|
|
33
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
|
26
|
+
celebration: il,
|
|
27
|
+
celebrationNight: cl,
|
|
28
|
+
concrete: vl,
|
|
29
|
+
dark: rl,
|
|
30
|
+
default: fl,
|
|
31
|
+
hack: dl,
|
|
32
|
+
zen: hl
|
|
33
|
+
}, Symbol.toStringTag, { value: "Module" })), Va = ["id"], Ra = ["id"], Ha = ["xmlns", "viewBox"], Ga = ["width", "height"], Ua = { key: 1 }, ja = ["id"], Wa = ["stop-color"], qa = ["offset", "stop-color"], Qa = ["offset", "stop-color"], Ja = ["stop-color"], Ka = { key: 2 }, Za = ["id", "cx", "cy"], eo = ["stop-color", "stop-opacity"], to = ["stop-color"], lo = ["id"], ao = ["id"], oo = ["id"], no = ["flood-color"], so = ["id"], uo = ["flood-color"], ro = ["d", "stroke", "filter"], io = ["d", "stroke", "filter"], co = ["cx", "cy", "r", "fill", "filter"], vo = { key: 6 }, ho = ["stroke", "d"], fo = ["d", "fill", "stroke", "stroke-width", "filter"], yo = { key: 0 }, go = ["d", "fill", "stroke", "stroke-width", "filter"], po = { key: 0 }, bo = ["stroke", "d"], mo = { key: 0 }, wo = ["d", "stroke", "stroke-width", "filter"], ko = { key: 1 }, Co = ["d", "fill", "stroke", "stroke-width", "filter"], xo = ["d", "fill", "stroke", "stroke-width", "filter"], $o = { key: 1 }, Ao = ["cx", "cy", "r", "fill", "stroke", "stroke-width"], _o = ["cx", "cy", "r", "fill", "stroke", "stroke-width"], To = { key: 0 }, So = ["d", "fill", "stroke", "stroke-width"], Mo = ["cx", "cy", "r", "stroke"], Po = ["cx", "cy", "r", "fill"], Fo = ["cx", "cy", "r"], Lo = { key: 0 }, Io = ["d", "stroke", "fill", "onMouseenter", "onMouseleave", "onClick"], Do = { key: 1 }, Yo = ["cx", "cy", "r"], zo = ["x", "y", "fill", "font-size"], Bo = ["x", "y", "fill", "font-size"], Xo = ["x", "y", "fill", "font-size"], Oo = ["x", "y", "fill", "font-size"], Eo = ["filter", "opacity"], No = { key: 0 }, Vo = ["x", "y"], Ro = { key: 1 }, Ho = ["cx", "cy", "fill", "stroke", "filter", "onClick", "onMouseenter", "onMouseleave"], Go = ["text-anchor", "x", "y", "onClick", "onMouseenter", "onMouseleave", "innerHTML"], Uo = ["text-anchor", "x", "y", "fill", "font-size", "onClick", "onMouseenter", "onMouseleave"], jo = ["text-anchor", "x", "y", "fill", "font-size", "onClick", "onMouseenter", "onMouseleave", "innerHTML"], Wo = ["cx", "cy", "fill", "stroke", "filter", "onClick", "onMouseenter", "onMouseleave"], qo = ["text-anchor", "x", "y", "onClick", "onMouseenter", "onMouseleave", "innerHTML"], Qo = ["text-anchor", "x", "y", "fill", "font-size", "onClick", "onMouseenter", "onMouseleave"], Jo = ["text-anchor", "x", "y", "fill", "font-size", "onClick", "onMouseenter", "onMouseleave", "innerHTML"], Ko = { key: 2 }, Zo = ["x", "y", "width"], en = ["x", "y", "width"], tn = {
|
|
34
34
|
key: 4,
|
|
35
35
|
class: "vue-data-ui-watermark"
|
|
36
|
-
},
|
|
36
|
+
}, ln = ["id"], an = ["onClick"], on = {
|
|
37
37
|
key: 7,
|
|
38
38
|
class: "vue-ui-donut-hollow"
|
|
39
|
-
},
|
|
39
|
+
}, nn = ["innerHTML"], sn = {
|
|
40
40
|
__name: "vue-ui-donut",
|
|
41
41
|
props: {
|
|
42
42
|
config: {
|
|
@@ -53,31 +53,31 @@ const sl = { style: { chart: { backgroundColor: "#1A1A1A", color: "#CCCCCC", lay
|
|
|
53
53
|
}
|
|
54
54
|
},
|
|
55
55
|
emits: ["selectLegend", "selectDatapoint"],
|
|
56
|
-
setup(
|
|
57
|
-
const
|
|
56
|
+
setup(wt, { expose: yl, emit: gl }) {
|
|
57
|
+
const pl = pe(() => import("./Tooltip-l2pmtXwi.js")), bl = pe(() => import("./BaseIcon-CQaciFyv.js")), ml = pe(() => import("./vue-ui-accordion-nCaoOi6x.js")), wl = pe(() => import("./DataTable-C8cgUUyx.js")), kl = pe(() => import("./PenAndPaper-DtbXViIl.js")), Cl = pe(() => import("./UserOptions-DeiXBImO.js")), xl = pe(() => import("./PackageVersion-DXy-wfBa.js")), $l = pe(() => import("./BaseDraggableDialog-B6wHUQPl.js")), { vue_ui_donut: Al } = Ma(), { isThemeValid: _l, warnInvalidTheme: Tl } = Da(), Sl = ua(), _ = wt, Oe = f({
|
|
58
58
|
get() {
|
|
59
|
-
return !!
|
|
59
|
+
return !!_.dataset && _.dataset.length;
|
|
60
60
|
},
|
|
61
61
|
set(l) {
|
|
62
62
|
return l;
|
|
63
63
|
}
|
|
64
|
-
}), te =
|
|
64
|
+
}), te = be(null), Ee = w(null), Ml = w(null), Pl = w(null), kt = be(null), Ct = be(null), ce = be(null), Te = be(null), xt = be(null), $t = be(null), At = w(0), _t = w(0), Tt = w(0), St = w(!1), Fe = w(null), Ze = w(null), Se = f({
|
|
65
65
|
get: () => e.value.style.chart.layout.labels.percentage.fontSize,
|
|
66
66
|
set: (l) => l
|
|
67
|
-
}), E =
|
|
67
|
+
}), E = f({
|
|
68
68
|
get: () => e.value.style.chart.layout.labels.name.fontSize,
|
|
69
69
|
set: (l) => l
|
|
70
|
-
}), we =
|
|
70
|
+
}), we = f({
|
|
71
71
|
get: () => e.value.style.chart.layout.labels.dataLabels.smallArcClusterFontSize,
|
|
72
72
|
set: (l) => l
|
|
73
73
|
});
|
|
74
|
-
let
|
|
75
|
-
const
|
|
76
|
-
!e.value.autoSize ||
|
|
77
|
-
|
|
78
|
-
const l = e.value, o =
|
|
74
|
+
let et = !1;
|
|
75
|
+
const ve = () => {
|
|
76
|
+
!e.value.autoSize || et || (et = !0, requestAnimationFrame(() => {
|
|
77
|
+
et = !1;
|
|
78
|
+
const l = e.value, o = Ee.value, t = ke.value;
|
|
79
79
|
if (!l.autoSize || !o || !t) return;
|
|
80
|
-
const [a,
|
|
80
|
+
const [a, u, c, g] = t.getAttribute("viewBox").split(" ").map(Number), $ = { x: a, y: u, width: c, height: g }, S = [
|
|
81
81
|
{
|
|
82
82
|
selector: ".vue-data-ui-datalabel-value",
|
|
83
83
|
baseSize: l.style.chart.layout.labels.percentage.fontSize,
|
|
@@ -97,115 +97,115 @@ const sl = { style: { chart: { backgroundColor: "#1A1A1A", color: "#CCCCCC", lay
|
|
|
97
97
|
sizeRef: we
|
|
98
98
|
}
|
|
99
99
|
];
|
|
100
|
-
|
|
101
|
-
o.querySelectorAll(
|
|
102
|
-
const
|
|
103
|
-
el:
|
|
104
|
-
bounds:
|
|
105
|
-
currentFontSize:
|
|
106
|
-
minFontSize:
|
|
100
|
+
S.map((P) => o.querySelectorAll(P.selector).length).reduce((P, X) => P + X, 0) !== 0 && S.forEach(({ selector: P, baseSize: X, minSize: ye, sizeRef: ge }) => {
|
|
101
|
+
o.querySelectorAll(P).forEach((dt) => {
|
|
102
|
+
const Xe = Ca({
|
|
103
|
+
el: dt,
|
|
104
|
+
bounds: $,
|
|
105
|
+
currentFontSize: X,
|
|
106
|
+
minFontSize: ye,
|
|
107
107
|
attempts: 200,
|
|
108
108
|
padding: 1
|
|
109
109
|
});
|
|
110
|
-
|
|
110
|
+
ge.value = Xe;
|
|
111
111
|
});
|
|
112
112
|
});
|
|
113
113
|
}));
|
|
114
114
|
};
|
|
115
|
-
|
|
116
|
-
|
|
115
|
+
el(async () => {
|
|
116
|
+
St.value = !0, Mt(), requestAnimationFrame(ve);
|
|
117
117
|
});
|
|
118
|
-
let
|
|
119
|
-
|
|
120
|
-
te.value && (
|
|
118
|
+
let tt;
|
|
119
|
+
el(() => {
|
|
120
|
+
te.value && (tt = new ResizeObserver((l) => {
|
|
121
121
|
for (const o of l) {
|
|
122
122
|
const { width: t, height: a } = o.contentRect;
|
|
123
123
|
if (t > 0 && a > 0) {
|
|
124
|
-
|
|
124
|
+
ve();
|
|
125
125
|
break;
|
|
126
126
|
}
|
|
127
127
|
}
|
|
128
|
-
}),
|
|
129
|
-
}),
|
|
130
|
-
|
|
131
|
-
}),
|
|
132
|
-
|
|
128
|
+
}), tt.observe(te.value.parentElement));
|
|
129
|
+
}), tl(() => {
|
|
130
|
+
tt?.disconnect();
|
|
131
|
+
}), tl(() => {
|
|
132
|
+
ce.value && (Te.value && ce.value.unobserve(Te.value), ce.value.disconnect());
|
|
133
133
|
});
|
|
134
|
-
const
|
|
135
|
-
function
|
|
136
|
-
if (
|
|
134
|
+
const lt = f(() => !!e.value.debug);
|
|
135
|
+
function Mt() {
|
|
136
|
+
if (al(_.dataset) ? (pt({
|
|
137
137
|
componentName: "VueUiDonut",
|
|
138
138
|
type: "dataset",
|
|
139
|
-
debug:
|
|
140
|
-
}),
|
|
141
|
-
|
|
139
|
+
debug: lt.value
|
|
140
|
+
}), Oe.value = !1, Ve.value = !0) : (_.dataset.forEach((l, o) => {
|
|
141
|
+
da({
|
|
142
142
|
datasetObject: l,
|
|
143
143
|
requiredAttributes: ["name", "values"]
|
|
144
144
|
}).forEach((t) => {
|
|
145
|
-
|
|
145
|
+
pt({
|
|
146
146
|
componentName: "VueUiDonut",
|
|
147
147
|
type: "datasetSerieAttribute",
|
|
148
148
|
property: t,
|
|
149
149
|
index: o,
|
|
150
|
-
debug:
|
|
151
|
-
}),
|
|
150
|
+
debug: lt.value
|
|
151
|
+
}), Oe.value = !1, Ve.value = !0;
|
|
152
152
|
});
|
|
153
|
-
}),
|
|
154
|
-
(!l.name || l.name === "") &&
|
|
153
|
+
}), _.dataset.forEach((l, o) => {
|
|
154
|
+
(!l.name || l.name === "") && pt({
|
|
155
155
|
componentName: "VueUiDonut",
|
|
156
156
|
type: "datasetAttributeEmpty",
|
|
157
157
|
property: "name",
|
|
158
158
|
index: o,
|
|
159
|
-
debug:
|
|
159
|
+
debug: lt.value
|
|
160
160
|
});
|
|
161
|
-
})),
|
|
162
|
-
const l =
|
|
163
|
-
const { width: o, height: t } =
|
|
161
|
+
})), al(_.dataset) || (Ve.value = e.value.loading), e.value.responsive) {
|
|
162
|
+
const l = Ta(() => {
|
|
163
|
+
const { width: o, height: t } = Sa({
|
|
164
164
|
chart: te.value,
|
|
165
|
-
title: e.value.style.chart.title.text ?
|
|
166
|
-
legend: e.value.style.chart.legend.show ?
|
|
167
|
-
source:
|
|
168
|
-
noTitle:
|
|
169
|
-
padding: e.value.autoSize ? void 0 :
|
|
165
|
+
title: e.value.style.chart.title.text ? kt.value : null,
|
|
166
|
+
legend: e.value.style.chart.legend.show ? Ct.value : null,
|
|
167
|
+
source: xt.value,
|
|
168
|
+
noTitle: $t.value,
|
|
169
|
+
padding: e.value.autoSize ? void 0 : Re.value
|
|
170
170
|
});
|
|
171
171
|
requestAnimationFrame(() => {
|
|
172
|
-
n.value.width = o, n.value.height = t,
|
|
172
|
+
n.value.width = o, n.value.height = t, ve();
|
|
173
173
|
});
|
|
174
174
|
});
|
|
175
|
-
|
|
175
|
+
ce.value && (Te.value && ce.value.unobserve(Te.value), ce.value.disconnect()), ce.value = new ResizeObserver(l), Te.value = te.value.parentNode, ce.value.observe(Te.value);
|
|
176
176
|
}
|
|
177
177
|
}
|
|
178
|
-
const
|
|
179
|
-
function
|
|
180
|
-
const l =
|
|
181
|
-
userConfig:
|
|
182
|
-
defaultConfig:
|
|
178
|
+
const k = w(ha()), at = w(!1), ot = w(""), le = w(null), Pt = w(0);
|
|
179
|
+
function nt() {
|
|
180
|
+
const l = mt({
|
|
181
|
+
userConfig: _.config,
|
|
182
|
+
defaultConfig: Al
|
|
183
183
|
});
|
|
184
184
|
let o = {};
|
|
185
185
|
const t = l.theme;
|
|
186
186
|
if (!t)
|
|
187
187
|
o = l;
|
|
188
|
-
else if (
|
|
189
|
-
|
|
188
|
+
else if (!_l.value(l))
|
|
189
|
+
Tl(l), o = l;
|
|
190
190
|
else {
|
|
191
|
-
const a =
|
|
192
|
-
userConfig:
|
|
191
|
+
const a = mt({
|
|
192
|
+
userConfig: fl[t] || _.config,
|
|
193
193
|
defaultConfig: l
|
|
194
194
|
});
|
|
195
195
|
o = {
|
|
196
|
-
...
|
|
197
|
-
userConfig:
|
|
196
|
+
...mt({
|
|
197
|
+
userConfig: _.config,
|
|
198
198
|
defaultConfig: a
|
|
199
199
|
}),
|
|
200
|
-
customPalette: l.customPalette.length ? l.customPalette :
|
|
200
|
+
customPalette: l.customPalette.length ? l.customPalette : xa[t] || _e
|
|
201
201
|
};
|
|
202
202
|
}
|
|
203
|
-
return
|
|
203
|
+
return _.config && bt(_.config, "events.datapointEnter") ? o.events.datapointEnter = _.config.events.datapointEnter : o.events.datapointEnter = null, _.config && bt(_.config, "events.datapointLeave") ? o.events.datapointLeave = _.config.events.datapointLeave : o.events.datapointLeave = null, _.config && bt(_.config, "events.datapointClick") ? o.events.datapointClick = _.config.events.datapointClick : o.events.datapointClick = null, o;
|
|
204
204
|
}
|
|
205
|
-
const e = w(
|
|
206
|
-
...
|
|
205
|
+
const e = w(nt()), { loading: Ne, FINAL_DATASET: Le, manualLoading: Ve, skeletonDataset: Fl } = Fa({
|
|
206
|
+
...ra(_),
|
|
207
207
|
FINAL_CONFIG: e,
|
|
208
|
-
prepareConfig:
|
|
208
|
+
prepareConfig: nt,
|
|
209
209
|
skeletonDataset: [
|
|
210
210
|
{
|
|
211
211
|
name: "",
|
|
@@ -223,7 +223,7 @@ const sl = { style: { chart: { backgroundColor: "#1A1A1A", color: "#CCCCCC", lay
|
|
|
223
223
|
color: "#CACACA"
|
|
224
224
|
}
|
|
225
225
|
],
|
|
226
|
-
skeletonConfig:
|
|
226
|
+
skeletonConfig: fa({
|
|
227
227
|
defaultConfig: e.value,
|
|
228
228
|
userConfig: {
|
|
229
229
|
useCssAnimation: !1,
|
|
@@ -260,56 +260,48 @@ const sl = { style: { chart: { backgroundColor: "#1A1A1A", color: "#CCCCCC", lay
|
|
|
260
260
|
}
|
|
261
261
|
}
|
|
262
262
|
})
|
|
263
|
-
}),
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
requestAnimationFrame(F);
|
|
277
|
-
}, C * t);
|
|
278
|
-
});
|
|
263
|
+
}), B = w(!0), Ie = w(0), Ft = w(!1);
|
|
264
|
+
let De = null;
|
|
265
|
+
function Ll(l = 1e3) {
|
|
266
|
+
return new Promise((o) => {
|
|
267
|
+
const t = performance.now();
|
|
268
|
+
function a(u) {
|
|
269
|
+
const c = u - t, g = Math.min(
|
|
270
|
+
c / l,
|
|
271
|
+
1
|
|
272
|
+
), $ = ul(g);
|
|
273
|
+
Ie.value = $, g < 1 ? De = requestAnimationFrame(a) : (Ie.value = 1, De = null, o());
|
|
274
|
+
}
|
|
275
|
+
De !== null && cancelAnimationFrame(De), Ie.value = 0, De = requestAnimationFrame(a);
|
|
279
276
|
});
|
|
280
277
|
}
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
() => Oe.value,
|
|
278
|
+
Pe(
|
|
279
|
+
() => Ne.value,
|
|
284
280
|
async (l) => {
|
|
285
|
-
if (l ||
|
|
286
|
-
|
|
281
|
+
if (l || Ft.value)
|
|
282
|
+
return;
|
|
283
|
+
const o = Le.value === Fl, t = e.value.startAnimation?.show;
|
|
287
284
|
if (!o && t) {
|
|
288
|
-
|
|
289
|
-
const a =
|
|
290
|
-
|
|
291
|
-
|
|
292
|
-
|
|
293
|
-
|
|
294
|
-
e.value.startAnimation.durationMs,
|
|
295
|
-
e.value.startAnimation.staggerMs
|
|
296
|
-
);
|
|
297
|
-
}
|
|
298
|
-
X.value = !1;
|
|
285
|
+
Ft.value = !0;
|
|
286
|
+
const a = e.value.startAnimation.durationMs || 1e3;
|
|
287
|
+
await Ll(a);
|
|
288
|
+
} else
|
|
289
|
+
Ie.value = 1;
|
|
290
|
+
B.value = !1;
|
|
299
291
|
},
|
|
300
292
|
{ immediate: !0 }
|
|
301
293
|
);
|
|
302
|
-
const { userOptionsVisible:
|
|
303
|
-
function
|
|
304
|
-
|
|
294
|
+
const { userOptionsVisible: st, setUserOptionsVisibility: Lt, keepUserOptionState: It } = Ya({ config: e.value }), { svgRef: ke } = za({ config: e.value.style.chart.title });
|
|
295
|
+
function Il() {
|
|
296
|
+
Lt(!0);
|
|
305
297
|
}
|
|
306
|
-
function
|
|
307
|
-
|
|
298
|
+
function Dl() {
|
|
299
|
+
Lt(!1);
|
|
308
300
|
}
|
|
309
|
-
|
|
310
|
-
|
|
301
|
+
Pe(() => _.config, (l) => {
|
|
302
|
+
Ne.value || (e.value = nt()), st.value = !e.value.userOptions.showOnChartHover, Mt(), At.value += 1, _t.value += 1, Tt.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;
|
|
311
303
|
}, { deep: !0 });
|
|
312
|
-
const
|
|
304
|
+
const Re = f(() => {
|
|
313
305
|
const { top: l, right: o, bottom: t, left: a } = e.value.style.chart.padding;
|
|
314
306
|
return {
|
|
315
307
|
css: `padding:${l}px ${o}px ${t}px ${a}px`,
|
|
@@ -318,19 +310,19 @@ const sl = { style: { chart: { backgroundColor: "#1A1A1A", color: "#CCCCCC", lay
|
|
|
318
310
|
bottom: t,
|
|
319
311
|
left: a
|
|
320
312
|
};
|
|
321
|
-
}), { isPrinting:
|
|
322
|
-
elementId: `donut__${
|
|
313
|
+
}), { isPrinting: Dt, isImaging: Yt, generatePdf: zt, generateImage: Bt } = Pa({
|
|
314
|
+
elementId: `donut__${k.value}`,
|
|
323
315
|
fileName: e.value.style.chart.title.text || "vue-ui-donut",
|
|
324
316
|
options: e.value.userOptions.print
|
|
325
|
-
}),
|
|
317
|
+
}), Yl = f(() => e.value.userOptions.show && !e.value.style.chart.title.text), Xt = f(() => ya(e.value.customPalette)), m = w({
|
|
326
318
|
dataLabels: {
|
|
327
319
|
show: e.value.style.chart.layout.labels.dataLabels.show
|
|
328
320
|
},
|
|
329
321
|
showTable: e.value.table.show,
|
|
330
322
|
showTooltip: e.value.style.chart.tooltip.show
|
|
331
323
|
});
|
|
332
|
-
|
|
333
|
-
|
|
324
|
+
Pe(e, () => {
|
|
325
|
+
m.value = {
|
|
334
326
|
dataLabels: {
|
|
335
327
|
show: e.value.style.chart.layout.labels.dataLabels.show
|
|
336
328
|
},
|
|
@@ -341,146 +333,151 @@ const sl = { style: { chart: { backgroundColor: "#1A1A1A", color: "#CCCCCC", lay
|
|
|
341
333
|
const n = w({
|
|
342
334
|
height: e.value.style.chart.height,
|
|
343
335
|
width: e.value.style.chart.width
|
|
344
|
-
}), Ce =
|
|
336
|
+
}), Ce = f(() => {
|
|
345
337
|
if (e.value.pie)
|
|
346
|
-
return
|
|
347
|
-
const l = e.value.style.chart.layout.donut.strokeWidth / 512, o = Math.min(n.value.width, n.value.height) * l, t = o >
|
|
338
|
+
return T.value;
|
|
339
|
+
const l = e.value.style.chart.layout.donut.strokeWidth / 512, o = Math.min(n.value.width, n.value.height) * l, t = o > T.value ? T.value : o;
|
|
348
340
|
return Math.max(t, 12 * (1 + l));
|
|
349
|
-
}),
|
|
350
|
-
const t = Array.isArray(l.values) ? l.values.reduce((
|
|
341
|
+
}), Ot = gl, U = f(() => Le.value.sort((l, o) => {
|
|
342
|
+
const t = Array.isArray(l.values) ? l.values.reduce((u, c) => u + c, 0) : l.value ?? 0, a = Array.isArray(o.values) ? o.values.reduce((u, c) => u + c, 0) : o.value ?? 0;
|
|
351
343
|
return l.ghost && !o.ghost ? 1 : o.ghost && !l.ghost ? -1 : a - t;
|
|
352
344
|
}).map((l, o) => ({
|
|
353
345
|
name: l.name,
|
|
354
|
-
color:
|
|
355
|
-
value:
|
|
346
|
+
color: ol(l.color) || Xt.value[o] || _e[o] || _e[o % _e.length],
|
|
347
|
+
value: ga(l.values.reduce((t, a) => t + a, 0)),
|
|
356
348
|
absoluteValues: l.values,
|
|
357
349
|
comment: l.comment || "",
|
|
358
350
|
patternIndex: o,
|
|
359
351
|
seriesIndex: o,
|
|
360
352
|
ghost: !1,
|
|
361
|
-
pattern: `pattern_${
|
|
353
|
+
pattern: `pattern_${k.value}_${o}`
|
|
362
354
|
})));
|
|
363
|
-
|
|
364
|
-
Array.isArray(l) && l.length > 0 && (
|
|
355
|
+
Pe(() => _.dataset, (l) => {
|
|
356
|
+
Array.isArray(l) && l.length > 0 && (Ve.value = !1);
|
|
365
357
|
}, { immediate: !0 });
|
|
366
|
-
const
|
|
367
|
-
|
|
368
|
-
|
|
358
|
+
const Q = be(U.value);
|
|
359
|
+
Pe(() => U.value, (l) => {
|
|
360
|
+
Q.value = l, requestAnimationFrame(ve);
|
|
369
361
|
});
|
|
370
|
-
function
|
|
371
|
-
return
|
|
362
|
+
function zl() {
|
|
363
|
+
return U.value.map((l) => ({
|
|
372
364
|
name: l.name,
|
|
373
365
|
color: l.color,
|
|
374
366
|
value: l.value
|
|
375
367
|
}));
|
|
376
368
|
}
|
|
377
|
-
const
|
|
378
|
-
function
|
|
379
|
-
const
|
|
380
|
-
function
|
|
381
|
-
const
|
|
382
|
-
a(
|
|
369
|
+
const j = w([]), de = w(!1), xe = w(null);
|
|
370
|
+
function Et({ from: l, to: o, duration: t, onUpdate: a, onDone: u, easing: c = ul }) {
|
|
371
|
+
const g = performance.now();
|
|
372
|
+
function $(S) {
|
|
373
|
+
const D = Math.min((S - g) / t, 1), P = c(D), X = l + (o - l) * P;
|
|
374
|
+
a(X, D), D < 1 ? requestAnimationFrame($) : (a(o, 1), u && u());
|
|
383
375
|
}
|
|
384
|
-
requestAnimationFrame(
|
|
376
|
+
requestAnimationFrame($);
|
|
385
377
|
}
|
|
386
|
-
function
|
|
387
|
-
const o =
|
|
388
|
-
let a =
|
|
389
|
-
if (
|
|
390
|
-
let
|
|
391
|
-
|
|
392
|
-
(
|
|
378
|
+
function He(l) {
|
|
379
|
+
const o = U.value.find((u, c) => c === l);
|
|
380
|
+
let a = Q.value.find((u, c) => c === l).value;
|
|
381
|
+
if (j.value.includes(l)) {
|
|
382
|
+
let c = function() {
|
|
383
|
+
Q.value = Q.value.map(
|
|
384
|
+
($, S) => l === S ? { ...$, value: u } : $
|
|
393
385
|
);
|
|
394
|
-
},
|
|
395
|
-
|
|
386
|
+
}, g = function() {
|
|
387
|
+
de.value = !0, xe.value = l, Et({
|
|
396
388
|
from: a,
|
|
397
|
-
to:
|
|
389
|
+
to: u,
|
|
398
390
|
duration: e.value.serieToggleAnimation.durationMs,
|
|
399
|
-
onUpdate: (
|
|
400
|
-
|
|
401
|
-
(
|
|
402
|
-
), requestAnimationFrame(
|
|
391
|
+
onUpdate: ($, S) => {
|
|
392
|
+
Q.value = Q.value.map(
|
|
393
|
+
(D, P) => l === P ? { ...D, value: $ } : D
|
|
394
|
+
), requestAnimationFrame(ve);
|
|
403
395
|
},
|
|
404
396
|
onDone: () => {
|
|
405
|
-
|
|
397
|
+
c(), de.value = !1, xe.value = null;
|
|
406
398
|
}
|
|
407
399
|
});
|
|
408
400
|
};
|
|
409
|
-
|
|
410
|
-
const
|
|
411
|
-
e.value.serieToggleAnimation.show && e.value.type === "classic" ?
|
|
412
|
-
} else if (
|
|
413
|
-
let
|
|
414
|
-
|
|
415
|
-
(
|
|
401
|
+
j.value = j.value.filter(($) => $ !== l);
|
|
402
|
+
const u = o.value;
|
|
403
|
+
e.value.serieToggleAnimation.show && e.value.type === "classic" ? g() : (c(), requestAnimationFrame(ve));
|
|
404
|
+
} else if (j.value.length < U.value.length - 1) {
|
|
405
|
+
let u = function() {
|
|
406
|
+
j.value.push(l), Q.value = Q.value.map(
|
|
407
|
+
(g, $) => l === $ ? { ...g, value: 0 } : g
|
|
416
408
|
);
|
|
417
|
-
},
|
|
418
|
-
|
|
409
|
+
}, c = function() {
|
|
410
|
+
de.value = !0, xe.value = l, Et({
|
|
419
411
|
from: a,
|
|
420
412
|
to: 0,
|
|
421
413
|
duration: e.value.serieToggleAnimation.durationMs,
|
|
422
|
-
onUpdate: (
|
|
423
|
-
|
|
424
|
-
(
|
|
425
|
-
), requestAnimationFrame(
|
|
414
|
+
onUpdate: (g, $) => {
|
|
415
|
+
Q.value = Q.value.map(
|
|
416
|
+
(S, D) => l === D ? { ...S, value: g } : S
|
|
417
|
+
), requestAnimationFrame(ve);
|
|
426
418
|
},
|
|
427
419
|
onDone: () => {
|
|
428
|
-
|
|
420
|
+
u(), requestAnimationFrame(ve), de.value = !1, xe.value = null;
|
|
429
421
|
}
|
|
430
422
|
});
|
|
431
423
|
};
|
|
432
|
-
e.value.serieToggleAnimation.show && e.value.type === "classic" ?
|
|
424
|
+
e.value.serieToggleAnimation.show && e.value.type === "classic" ? c() : u();
|
|
433
425
|
}
|
|
434
|
-
|
|
435
|
-
name:
|
|
436
|
-
color:
|
|
437
|
-
value:
|
|
426
|
+
Ot("selectLegend", re.value.map((u) => ({
|
|
427
|
+
name: u.name,
|
|
428
|
+
color: u.color,
|
|
429
|
+
value: u.value
|
|
438
430
|
})));
|
|
439
431
|
}
|
|
440
|
-
function
|
|
441
|
-
if (!
|
|
432
|
+
function Nt(l) {
|
|
433
|
+
if (!U.value.length)
|
|
442
434
|
return e.value.debug && console.warn("VueUiDonut - There are no series to show."), null;
|
|
443
|
-
const o =
|
|
435
|
+
const o = U.value.find((t) => t.name === l);
|
|
444
436
|
return o || (e.value.debug && console.warn(`VueUiDonut - Series name not found "${l}"`), null);
|
|
445
437
|
}
|
|
446
|
-
function
|
|
447
|
-
const o =
|
|
448
|
-
o !== null &&
|
|
438
|
+
function Bl(l) {
|
|
439
|
+
const o = Nt(l);
|
|
440
|
+
o !== null && j.value.includes(o.seriesIndex) && He(o.seriesIndex);
|
|
449
441
|
}
|
|
450
|
-
function
|
|
451
|
-
const o =
|
|
452
|
-
o !== null && (
|
|
442
|
+
function Xl(l) {
|
|
443
|
+
const o = Nt(l);
|
|
444
|
+
o !== null && (j.value.includes(o.seriesIndex) || He(o.seriesIndex));
|
|
453
445
|
}
|
|
454
|
-
const
|
|
455
|
-
|
|
456
|
-
|
|
457
|
-
|
|
458
|
-
|
|
459
|
-
|
|
446
|
+
const Ol = f(
|
|
447
|
+
() => Le.value.reduce(
|
|
448
|
+
(l, o) => l + o.values.reduce((t, a) => t + a, 0),
|
|
449
|
+
0
|
|
450
|
+
)
|
|
451
|
+
), re = f(() => {
|
|
452
|
+
if (B.value && !Ne.value) {
|
|
453
|
+
const l = Ie.value, o = U.value.map((a) => ({
|
|
454
|
+
...a,
|
|
455
|
+
value: a.value * l,
|
|
456
|
+
color: a.color,
|
|
460
457
|
ghost: !1
|
|
461
|
-
})),
|
|
462
|
-
return
|
|
458
|
+
})), t = Ol.value * (1 - l);
|
|
459
|
+
return t > 0 && o.push({
|
|
463
460
|
name: "__ghost__",
|
|
464
|
-
value:
|
|
461
|
+
value: t,
|
|
465
462
|
color: "transparent",
|
|
466
463
|
ghost: !0
|
|
467
|
-
}),
|
|
464
|
+
}), o;
|
|
468
465
|
} else
|
|
469
|
-
return
|
|
466
|
+
return Q.value.forEach((l) => {
|
|
470
467
|
if ([null, void 0].includes(l.values))
|
|
471
468
|
return {
|
|
472
469
|
...l,
|
|
473
470
|
values: []
|
|
474
471
|
};
|
|
475
|
-
}),
|
|
472
|
+
}), Q.value.map((l, o) => ({
|
|
476
473
|
...l,
|
|
477
474
|
seriesIndex: o
|
|
478
|
-
})).filter((l, o) => !
|
|
479
|
-
}),
|
|
480
|
-
const t = (l.values || []).reduce((
|
|
475
|
+
})).filter((l, o) => !j.value.includes(o));
|
|
476
|
+
}), ut = f(() => Le.value.map((l, o) => {
|
|
477
|
+
const t = (l.values || []).reduce((u, c) => u + c, 0), a = t / Le.value.map((u) => (u.values || []).reduce((c, g) => c + g, 0)).reduce((u, c) => u + c, 0);
|
|
481
478
|
return {
|
|
482
479
|
name: l.name,
|
|
483
|
-
color:
|
|
480
|
+
color: ol(l.color) || Xt.value[o] || _e[o] || _e[o % _e.length],
|
|
484
481
|
value: t,
|
|
485
482
|
shape: "circle",
|
|
486
483
|
patternIndex: o,
|
|
@@ -488,30 +485,30 @@ const sl = { style: { chart: { backgroundColor: "#1A1A1A", color: "#CCCCCC", lay
|
|
|
488
485
|
};
|
|
489
486
|
}).map((l, o) => ({
|
|
490
487
|
...l,
|
|
491
|
-
opacity:
|
|
492
|
-
segregate: () => !
|
|
493
|
-
isSegregated:
|
|
494
|
-
display: `${l.name}${e.value.style.chart.legend.showPercentage || e.value.style.chart.legend.showValue ? ": " : ""}${e.value.style.chart.legend.showValue ?
|
|
488
|
+
opacity: j.value.includes(o) ? 0.5 : 1,
|
|
489
|
+
segregate: () => !de.value && He(o),
|
|
490
|
+
isSegregated: j.value.includes(o),
|
|
491
|
+
display: `${l.name}${e.value.style.chart.legend.showPercentage || e.value.style.chart.legend.showValue ? ": " : ""}${e.value.style.chart.legend.showValue ? q(e.value.style.chart.layout.labels.value.formatter, l.value, G({
|
|
495
492
|
p: e.value.style.chart.layout.labels.dataLabels.prefix,
|
|
496
493
|
v: l.value,
|
|
497
494
|
s: e.value.style.chart.layout.labels.dataLabels.suffix,
|
|
498
495
|
r: e.value.style.chart.legend.roundingValue
|
|
499
|
-
}), { datapoint: l, index: o }) : ""}${e.value.style.chart.legend.showPercentage ?
|
|
500
|
-
v:
|
|
496
|
+
}), { datapoint: l, index: o }) : ""}${e.value.style.chart.legend.showPercentage ? j.value.includes(o) ? `${e.value.style.chart.legend.showValue ? "(" : ""}${Jl(l.proportion * 100)}%${e.value.style.chart.legend.showValue ? ")" : ""}` : `${e.value.style.chart.legend.showValue ? " (" : ""}${isNaN(l.value / V.value) ? "-" : q(e.value.style.chart.layout.labels.percentage.formatter, Vt(l), G({
|
|
497
|
+
v: Vt(l),
|
|
501
498
|
s: "%",
|
|
502
499
|
r: e.value.style.chart.legend.roundingPercentage
|
|
503
500
|
}))}${e.value.style.chart.legend.showValue ? ")" : ""}` : ""}`
|
|
504
|
-
}))),
|
|
501
|
+
}))), El = f(() => ({
|
|
505
502
|
cy: "donut-div-legend",
|
|
506
503
|
backgroundColor: e.value.style.chart.legend.backgroundColor,
|
|
507
504
|
color: e.value.style.chart.legend.color,
|
|
508
505
|
fontSize: e.value.style.chart.legend.fontSize,
|
|
509
506
|
paddingBottom: 12,
|
|
510
507
|
fontWeight: e.value.style.chart.legend.bold ? "bold" : ""
|
|
511
|
-
})),
|
|
508
|
+
})), T = f(() => {
|
|
512
509
|
const l = e.value.style.chart.layout.donut.radiusRatio, o = Math.max(0.1, Math.min(0.50001, l)), t = Math.min(n.value.width * o, n.value.height * o);
|
|
513
510
|
return Math.max(12, t);
|
|
514
|
-
}), O =
|
|
511
|
+
}), O = f(() => nl({ series: re.value }, n.value.width / 2, n.value.height / 2, T.value, T.value, 1.99999, 2, 1, 360, 105.25, Ce.value)), Nl = f(() => Math.abs(re.value.map((l) => l.value).reduce((l, o) => l + o, 0)) > 0), Vl = f(() => nl({
|
|
515
512
|
series: [
|
|
516
513
|
{
|
|
517
514
|
value: 1,
|
|
@@ -523,144 +520,147 @@ const sl = { style: { chart: { backgroundColor: "#1A1A1A", color: "#CCCCCC", lay
|
|
|
523
520
|
absoluteValues: [1]
|
|
524
521
|
}
|
|
525
522
|
]
|
|
526
|
-
}, n.value.width / 2, n.value.height / 2,
|
|
527
|
-
const l = Math.max(...
|
|
528
|
-
return
|
|
523
|
+
}, n.value.width / 2, n.value.height / 2, T.value, T.value, 1.99999, 2, 1, 360, 105.25, Ce.value)), N = f(() => O.value.filter((l) => !l.ghost)), v = f(() => {
|
|
524
|
+
const l = Math.max(...re.value.map((t) => t.value)), o = re.value.map((t) => t.value / l);
|
|
525
|
+
return pa({
|
|
529
526
|
series: o,
|
|
530
527
|
center: {
|
|
531
528
|
x: n.value.width / 2,
|
|
532
529
|
y: n.value.height / 2
|
|
533
530
|
},
|
|
534
531
|
maxRadius: Math.min(n.value.width, n.value.height) / 3,
|
|
535
|
-
hasGhost:
|
|
532
|
+
hasGhost: B.value
|
|
536
533
|
});
|
|
537
534
|
});
|
|
538
|
-
function
|
|
535
|
+
function he(l) {
|
|
539
536
|
return l.x > n.value.width / 2 + 6 ? "start" : l.x < n.value.width / 2 - 6 ? "end" : "middle";
|
|
540
537
|
}
|
|
541
|
-
function
|
|
542
|
-
return l.middlePoint.y > n.value.height / 2 ?
|
|
538
|
+
function Rl(l) {
|
|
539
|
+
return l.middlePoint.y > n.value.height / 2 ? L({ initX: l.middlePoint.x, initY: l.middlePoint.y, offset: 100, centerX: n.value.width / 2, centerY: n.value.height / 2 }).y : L({ initX: l.middlePoint.x, initY: l.middlePoint.y, offset: 0, centerX: n.value.width / 2, centerY: n.value.height / 2 }).y - 100;
|
|
543
540
|
}
|
|
544
|
-
function
|
|
541
|
+
function W(l) {
|
|
545
542
|
return l.proportion * 100 > e.value.style.chart.layout.labels.dataLabels.hideUnderValue;
|
|
546
543
|
}
|
|
547
|
-
function
|
|
548
|
-
const
|
|
549
|
-
return
|
|
544
|
+
function Hl(l, o) {
|
|
545
|
+
const t = e.value.style.chart.layout.labels.dataLabels.hideUnderValue, a = e.value.style.chart.layout.labels.dataLabels.smallArcClusterThreshold, c = (Ul.value[o] ?? l.proportion ?? 0) * 100;
|
|
546
|
+
return c > t && c <= a;
|
|
550
547
|
}
|
|
551
|
-
const
|
|
548
|
+
const I = f(() => {
|
|
552
549
|
if (e.value.type !== "classic") return {};
|
|
553
550
|
const l = {}, o = N.value || [];
|
|
554
551
|
if (!o.length) return l;
|
|
555
|
-
const t = e.value, a = n.value.width / 2,
|
|
556
|
-
function
|
|
557
|
-
if (!
|
|
558
|
-
return `M ${h} ${
|
|
559
|
-
const ae =
|
|
560
|
-
return `M ${h} ${
|
|
552
|
+
const t = e.value, a = n.value.width / 2, u = n.value.height / 2, c = Re.value.top + 16, g = n.value.height - Re.value.bottom - 16, $ = we.value * 1.5, S = 8, D = 24, P = a - (T.value + D), X = a + (T.value + D), ye = !!t.style.chart.layout.curvedMarkers;
|
|
553
|
+
function ge({ midX: h, midY: b, bandX: F, bandY: R }) {
|
|
554
|
+
if (!ye)
|
|
555
|
+
return `M ${h} ${b} L ${h} ${R} L ${F} ${R}`;
|
|
556
|
+
const ae = F < a ? -1 : 1, Y = (h + F) / 2 + ae * 12, z = b + (R - b) * 0.5;
|
|
557
|
+
return `M ${h} ${b} Q ${Y} ${z} ${F} ${R}`;
|
|
561
558
|
}
|
|
562
|
-
const
|
|
563
|
-
const { x:
|
|
559
|
+
const dt = o.map((h, b) => {
|
|
560
|
+
const { x: F, y: R } = ba(h.path), ae = x(h).x, J = ie(h) - 3.5, Y = String(h.name ?? "").split(/\n/g), z = Math.max(0, Y.length - 1), K = we.value * 1.2, Me = z * K, sa = $ + Me;
|
|
564
561
|
return {
|
|
565
562
|
arc: h,
|
|
566
|
-
index:
|
|
567
|
-
midX:
|
|
563
|
+
index: b,
|
|
564
|
+
midX: F,
|
|
568
565
|
midY: R,
|
|
569
566
|
inlineMarkerX: ae,
|
|
570
567
|
inlineMarkerY: J,
|
|
571
|
-
labelHeight:
|
|
568
|
+
labelHeight: sa
|
|
572
569
|
};
|
|
573
|
-
}).filter(({ arc: h }) =>
|
|
574
|
-
|
|
575
|
-
|
|
576
|
-
|
|
570
|
+
}).filter(({ arc: h }) => {
|
|
571
|
+
const b = h.seriesIndex ?? 0;
|
|
572
|
+
return xe.value === b || j.value.includes(b) ? !1 : Hl(h, b);
|
|
573
|
+
}), Xe = [], ht = [], je = [], We = [];
|
|
574
|
+
dt.forEach((h) => {
|
|
575
|
+
const b = h.inlineMarkerY < u, F = h.inlineMarkerX < a;
|
|
576
|
+
b && F ? Xe.push(h) : b && !F ? ht.push(h) : !b && F ? je.push(h) : We.push(h);
|
|
577
577
|
});
|
|
578
|
-
const
|
|
579
|
-
|
|
580
|
-
let
|
|
581
|
-
|
|
582
|
-
const { index:
|
|
583
|
-
midX:
|
|
578
|
+
const Qt = (h, b) => h.inlineMarkerY - b.inlineMarkerY || h.index - b.index, Jt = (h, b) => b.inlineMarkerY - h.inlineMarkerY || h.index - b.index;
|
|
579
|
+
Xe.sort(Qt), ht.sort(Qt), je.sort(Jt), We.sort(Jt);
|
|
580
|
+
let Kt = c;
|
|
581
|
+
Xe.forEach((h) => {
|
|
582
|
+
const { index: b, midX: F, midY: R, labelHeight: ae } = h, J = Kt, Y = P, z = J, K = ge({
|
|
583
|
+
midX: F,
|
|
584
584
|
midY: R,
|
|
585
|
-
bandX:
|
|
586
|
-
bandY:
|
|
585
|
+
bandX: Y,
|
|
586
|
+
bandY: z
|
|
587
587
|
});
|
|
588
|
-
l[
|
|
588
|
+
l[b] = {
|
|
589
589
|
side: "left",
|
|
590
|
-
labelX:
|
|
590
|
+
labelX: Y - S,
|
|
591
591
|
labelY: J,
|
|
592
592
|
textAnchor: "end",
|
|
593
|
-
markerX:
|
|
594
|
-
markerY:
|
|
593
|
+
markerX: Y,
|
|
594
|
+
markerY: z,
|
|
595
595
|
connectorPath: K
|
|
596
|
-
},
|
|
596
|
+
}, Kt += ae;
|
|
597
597
|
});
|
|
598
|
-
let
|
|
599
|
-
if (
|
|
600
|
-
const { index:
|
|
601
|
-
midX:
|
|
598
|
+
let Zt = c;
|
|
599
|
+
if (ht.forEach((h) => {
|
|
600
|
+
const { index: b, midX: F, midY: R, labelHeight: ae } = h, J = Zt, Y = X, z = J, K = ge({
|
|
601
|
+
midX: F,
|
|
602
602
|
midY: R,
|
|
603
|
-
bandX:
|
|
604
|
-
bandY:
|
|
603
|
+
bandX: Y,
|
|
604
|
+
bandY: z
|
|
605
605
|
});
|
|
606
|
-
l[
|
|
606
|
+
l[b] = {
|
|
607
607
|
side: "right",
|
|
608
|
-
labelX:
|
|
608
|
+
labelX: Y + S,
|
|
609
609
|
labelY: J,
|
|
610
610
|
textAnchor: "start",
|
|
611
|
-
markerX:
|
|
612
|
-
markerY:
|
|
611
|
+
markerX: Y,
|
|
612
|
+
markerY: z,
|
|
613
613
|
connectorPath: K
|
|
614
|
-
},
|
|
615
|
-
}),
|
|
616
|
-
let h =
|
|
617
|
-
|
|
618
|
-
const { index:
|
|
614
|
+
}, Zt += ae;
|
|
615
|
+
}), je.length > 1) {
|
|
616
|
+
let h = g;
|
|
617
|
+
je.forEach((b) => {
|
|
618
|
+
const { index: F, midX: R, midY: ae, labelHeight: J } = b;
|
|
619
619
|
h -= J;
|
|
620
|
-
const
|
|
620
|
+
const Y = h, z = P, K = Y, Me = ge({
|
|
621
621
|
midX: R,
|
|
622
622
|
midY: ae,
|
|
623
|
-
bandX:
|
|
623
|
+
bandX: z,
|
|
624
624
|
bandY: K
|
|
625
625
|
});
|
|
626
|
-
l[
|
|
626
|
+
l[F] = {
|
|
627
627
|
side: "left",
|
|
628
|
-
labelX:
|
|
629
|
-
labelY:
|
|
628
|
+
labelX: z - S,
|
|
629
|
+
labelY: Y,
|
|
630
630
|
textAnchor: "end",
|
|
631
|
-
markerX:
|
|
631
|
+
markerX: z,
|
|
632
632
|
markerY: K,
|
|
633
|
-
connectorPath:
|
|
633
|
+
connectorPath: Me
|
|
634
634
|
};
|
|
635
635
|
});
|
|
636
636
|
}
|
|
637
|
-
if (
|
|
638
|
-
let h =
|
|
639
|
-
|
|
640
|
-
const { index:
|
|
637
|
+
if (We.length > 1) {
|
|
638
|
+
let h = g;
|
|
639
|
+
We.forEach((b) => {
|
|
640
|
+
const { index: F, midX: R, midY: ae, labelHeight: J } = b;
|
|
641
641
|
h -= J;
|
|
642
|
-
const
|
|
642
|
+
const Y = h, z = X, K = Y, Me = ge({
|
|
643
643
|
midX: R,
|
|
644
644
|
midY: ae,
|
|
645
|
-
bandX:
|
|
645
|
+
bandX: z,
|
|
646
646
|
bandY: K
|
|
647
647
|
});
|
|
648
|
-
l[
|
|
648
|
+
l[F] = {
|
|
649
649
|
side: "right",
|
|
650
|
-
labelX:
|
|
651
|
-
labelY:
|
|
650
|
+
labelX: z + S,
|
|
651
|
+
labelY: Y,
|
|
652
652
|
textAnchor: "start",
|
|
653
|
-
markerX:
|
|
653
|
+
markerX: z,
|
|
654
654
|
markerY: K,
|
|
655
|
-
connectorPath:
|
|
655
|
+
connectorPath: Me
|
|
656
656
|
};
|
|
657
657
|
});
|
|
658
658
|
}
|
|
659
659
|
return l;
|
|
660
660
|
});
|
|
661
|
-
function
|
|
662
|
-
const t = l.value /
|
|
663
|
-
return isNaN(t) ? 0 :
|
|
661
|
+
function Ye(l, o) {
|
|
662
|
+
const t = l.value / Gl(o);
|
|
663
|
+
return isNaN(t) ? 0 : q(
|
|
664
664
|
e.value.style.chart.layout.labels.percentage.formatter,
|
|
665
665
|
t * 100,
|
|
666
666
|
G({
|
|
@@ -671,35 +671,38 @@ const sl = { style: { chart: { backgroundColor: "#1A1A1A", color: "#CCCCCC", lay
|
|
|
671
671
|
{ datapoint: l }
|
|
672
672
|
);
|
|
673
673
|
}
|
|
674
|
-
function
|
|
674
|
+
function Gl(l) {
|
|
675
675
|
return [...l].map((o) => o.value).reduce((o, t) => o + t, 0);
|
|
676
676
|
}
|
|
677
|
-
const V =
|
|
678
|
-
|
|
679
|
-
return
|
|
677
|
+
const V = f(() => re.value.map((l) => l.value).reduce((l, o) => l + o, 0)), Ul = f(() => {
|
|
678
|
+
const l = U.value.reduce((o, t) => o + t.value, 0);
|
|
679
|
+
return l <= 0 ? [] : U.value.map((o) => o.value / l);
|
|
680
|
+
}), rt = f(() => V.value / re.value.length);
|
|
681
|
+
function Vt(l) {
|
|
682
|
+
return de.value ? l.proportion * 100 : l.value / V.value * 100;
|
|
680
683
|
}
|
|
681
|
-
const
|
|
682
|
-
function
|
|
683
|
-
e.value.events.datapointLeave && e.value.events.datapointLeave({ datapoint: l, seriesIndex: o }),
|
|
684
|
+
const it = w(null), ze = w(!1);
|
|
685
|
+
function ne({ datapoint: l, seriesIndex: o }) {
|
|
686
|
+
e.value.events.datapointLeave && e.value.events.datapointLeave({ datapoint: l, seriesIndex: o }), at.value = !1, le.value = null;
|
|
684
687
|
}
|
|
685
|
-
function
|
|
686
|
-
e.value.events.datapointEnter && e.value.events.datapointEnter({ datapoint: l, seriesIndex: t }),
|
|
687
|
-
let
|
|
688
|
-
const
|
|
689
|
-
if (
|
|
688
|
+
function se({ datapoint: l, relativeIndex: o, seriesIndex: t, show: a = !1 }) {
|
|
689
|
+
e.value.events.datapointEnter && e.value.events.datapointEnter({ datapoint: l, seriesIndex: t }), it.value = { datapoint: l, seriesIndex: t, config: e.value, series: U.value }, at.value = a, le.value = o;
|
|
690
|
+
let u = "";
|
|
691
|
+
const c = e.value.style.chart.tooltip.customFormat;
|
|
692
|
+
if (ze.value = !1, _a(c))
|
|
690
693
|
try {
|
|
691
|
-
const
|
|
694
|
+
const g = c({
|
|
692
695
|
seriesIndex: t,
|
|
693
696
|
datapoint: l,
|
|
694
|
-
series:
|
|
697
|
+
series: U.value,
|
|
695
698
|
config: e.value
|
|
696
699
|
});
|
|
697
|
-
typeof
|
|
700
|
+
typeof g == "string" && (ot.value = g, ze.value = !0);
|
|
698
701
|
} catch {
|
|
699
|
-
console.warn("Custom format cannot be applied."),
|
|
702
|
+
console.warn("Custom format cannot be applied."), ze.value = !1;
|
|
700
703
|
}
|
|
701
|
-
if (!
|
|
702
|
-
if (
|
|
704
|
+
if (!ze.value) {
|
|
705
|
+
if (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}"/>${Sl.pattern ? `<circle cx="30" cy="30" r="30" stroke="none" fill="url(#pattern_${k.value}_${t})"/>` : ""}</svg>`, e.value.style.chart.tooltip.showValue && (u += `<b>${q(
|
|
703
706
|
e.value.style.chart.layout.labels.value.formatter,
|
|
704
707
|
l.value,
|
|
705
708
|
G({
|
|
@@ -714,7 +717,7 @@ const sl = { style: { chart: { backgroundColor: "#1A1A1A", color: "#CCCCCC", lay
|
|
|
714
717
|
seriesIndex: t
|
|
715
718
|
}
|
|
716
719
|
)}</b>`), e.value.style.chart.tooltip.showPercentage) {
|
|
717
|
-
const
|
|
720
|
+
const g = q(
|
|
718
721
|
e.value.style.chart.layout.labels.percentage.formatter,
|
|
719
722
|
l.proportion * 100,
|
|
720
723
|
G({
|
|
@@ -728,28 +731,28 @@ const sl = { style: { chart: { backgroundColor: "#1A1A1A", color: "#CCCCCC", lay
|
|
|
728
731
|
seriesIndex: t
|
|
729
732
|
}
|
|
730
733
|
);
|
|
731
|
-
e.value.style.chart.tooltip.showValue ?
|
|
734
|
+
e.value.style.chart.tooltip.showValue ? u += `<span>(${g})</span></div>` : u += `<b>${g}</b></div>`;
|
|
732
735
|
}
|
|
733
|
-
e.value.style.chart.comments.showInTooltip && l.comment && (
|
|
736
|
+
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>`), ot.value = `<div>${u}</div>`;
|
|
734
737
|
}
|
|
735
738
|
}
|
|
736
|
-
function
|
|
737
|
-
const t =
|
|
739
|
+
function jl(l, o) {
|
|
740
|
+
const t = I.value[o];
|
|
738
741
|
if (t)
|
|
739
742
|
return {
|
|
740
743
|
textAnchor: t.textAnchor,
|
|
741
744
|
x: t.labelX,
|
|
742
745
|
y: t.labelY
|
|
743
746
|
};
|
|
744
|
-
const a =
|
|
747
|
+
const a = x(l, !0, 12);
|
|
745
748
|
return {
|
|
746
749
|
textAnchor: a.anchor,
|
|
747
750
|
x: a.x,
|
|
748
|
-
y:
|
|
751
|
+
y: ie(l)
|
|
749
752
|
};
|
|
750
753
|
}
|
|
751
|
-
function
|
|
752
|
-
const { textAnchor: a, x:
|
|
754
|
+
function Wl(l, o, t) {
|
|
755
|
+
const { textAnchor: a, x: u } = jl(l, o), c = Ye(l, N.value), g = e.value.style.chart.layout.labels.value.show ? ` (${q(
|
|
753
756
|
e.value.style.chart.layout.labels.value.formatter,
|
|
754
757
|
l.value,
|
|
755
758
|
G({
|
|
@@ -759,45 +762,45 @@ const sl = { style: { chart: { backgroundColor: "#1A1A1A", color: "#CCCCCC", lay
|
|
|
759
762
|
r: e.value.style.chart.layout.labels.value.rounding
|
|
760
763
|
}),
|
|
761
764
|
{ datapoint: l }
|
|
762
|
-
)})` : "",
|
|
765
|
+
)})` : "", $ = `${c}${g}`, S = `
|
|
763
766
|
<tspan
|
|
764
767
|
class="vue-data-ui-datalabel-inline"
|
|
765
768
|
fill="${e.value.style.chart.layout.labels.percentage.color}"
|
|
766
769
|
font-size="${t ? we.value : Se.value}px"
|
|
767
770
|
style="font-weight:${e.value.style.chart.layout.labels.percentage.bold ? "bold" : ""}"
|
|
768
|
-
>${
|
|
769
|
-
`,
|
|
770
|
-
let
|
|
771
|
-
return
|
|
772
|
-
|
|
771
|
+
>${$}</tspan>
|
|
772
|
+
`, D = String(l.name ?? "").split(/\n/g);
|
|
773
|
+
let P = "";
|
|
774
|
+
return D.forEach((X, ye) => {
|
|
775
|
+
ye === 0 ? P += `
|
|
773
776
|
<tspan
|
|
774
777
|
class="vue-data-ui-datalabel-name"
|
|
775
778
|
fill="${e.value.style.chart.layout.labels.name.color}"
|
|
776
779
|
font-size="${t ? we.value : E.value}px"
|
|
777
780
|
style="font-weight:${e.value.style.chart.layout.labels.name.bold ? "bold" : ""}"
|
|
778
|
-
>${
|
|
779
|
-
` :
|
|
781
|
+
>${X}</tspan>
|
|
782
|
+
` : P += `
|
|
780
783
|
<tspan
|
|
781
784
|
class="vue-data-ui-datalabel-name"
|
|
782
|
-
x="${
|
|
785
|
+
x="${u}"
|
|
783
786
|
dy="${(t ? we.value : E.value) * 1.2}"
|
|
784
787
|
fill="${e.value.style.chart.layout.labels.name.color}"
|
|
785
788
|
font-size="${t ? we.value : E.value}px"
|
|
786
789
|
style="font-weight:${e.value.style.chart.layout.labels.name.bold ? "bold" : ""}"
|
|
787
|
-
>${
|
|
790
|
+
>${X}</tspan>
|
|
788
791
|
`;
|
|
789
|
-
}), a === "end" ? `${
|
|
792
|
+
}), a === "end" ? `${P}${S}` : `${S}${P}`;
|
|
790
793
|
}
|
|
791
|
-
function
|
|
792
|
-
const t =
|
|
794
|
+
function ql(l, o) {
|
|
795
|
+
const t = v.value[o].middlePoint, a = he(t), u = L({
|
|
793
796
|
initX: t.x,
|
|
794
797
|
initY: t.y,
|
|
795
798
|
offset: 42,
|
|
796
799
|
centerX: n.value.width / 2,
|
|
797
800
|
centerY: n.value.height / 2
|
|
798
|
-
}),
|
|
799
|
-
|
|
800
|
-
const
|
|
801
|
+
}), c = u.x;
|
|
802
|
+
u.y;
|
|
803
|
+
const g = Ye(l, N.value), $ = e.value.style.chart.layout.labels.value.show ? ` (${q(
|
|
801
804
|
e.value.style.chart.layout.labels.value.formatter,
|
|
802
805
|
l.value,
|
|
803
806
|
G({
|
|
@@ -807,65 +810,71 @@ const sl = { style: { chart: { backgroundColor: "#1A1A1A", color: "#CCCCCC", lay
|
|
|
807
810
|
r: e.value.style.chart.layout.labels.value.rounding
|
|
808
811
|
}),
|
|
809
812
|
{ datapoint: l }
|
|
810
|
-
)})` : "",
|
|
813
|
+
)})` : "", S = `${g}${$}`, D = `
|
|
811
814
|
<tspan
|
|
812
815
|
class="vue-data-ui-datalabel-value"
|
|
813
816
|
fill="${e.value.style.chart.layout.labels.percentage.color}"
|
|
814
817
|
font-size="${Se.value}px"
|
|
815
818
|
style="font-weight:${e.value.style.chart.layout.labels.percentage.bold ? "bold" : "normal"}"
|
|
816
|
-
>${
|
|
817
|
-
`,
|
|
818
|
-
let
|
|
819
|
-
return
|
|
820
|
-
|
|
819
|
+
>${S}</tspan>
|
|
820
|
+
`, P = String(l.name ?? "").split(/\n/g);
|
|
821
|
+
let X = "";
|
|
822
|
+
return P.forEach((ye, ge) => {
|
|
823
|
+
ge === 0 ? X += `
|
|
821
824
|
<tspan
|
|
822
825
|
class="vue-data-ui-datalabel-name"
|
|
823
826
|
fill="${e.value.style.chart.layout.labels.name.color}"
|
|
824
827
|
font-size="${E.value}px"
|
|
825
828
|
style="font-weight:${e.value.style.chart.layout.labels.name.bold ? "bold" : "normal"}"
|
|
826
|
-
>${
|
|
827
|
-
` :
|
|
829
|
+
>${ye}</tspan>
|
|
830
|
+
` : X += `
|
|
828
831
|
<tspan
|
|
829
832
|
class="vue-data-ui-datalabel-name"
|
|
830
|
-
x="${
|
|
833
|
+
x="${c}"
|
|
831
834
|
dy="${E.value * 1.2}"
|
|
832
835
|
fill="${e.value.style.chart.layout.labels.name.color}"
|
|
833
836
|
font-size="${E.value}px"
|
|
834
837
|
style="font-weight:${e.value.style.chart.layout.labels.name.bold ? "bold" : "normal"}"
|
|
835
|
-
>${
|
|
838
|
+
>${ye}</tspan>
|
|
836
839
|
`;
|
|
837
|
-
}), a === "end" ? `${
|
|
840
|
+
}), a === "end" ? `${X}${D}` : `${D}${X}`;
|
|
838
841
|
}
|
|
839
842
|
function $e(l) {
|
|
840
|
-
return e.value.useBlurOnHover && ![null, void 0].includes(le.value) && le.value !== l ? `url(#blur_${
|
|
843
|
+
return e.value.useBlurOnHover && ![null, void 0].includes(le.value) && le.value !== l ? `url(#blur_${k.value})` : "";
|
|
841
844
|
}
|
|
842
|
-
|
|
843
|
-
|
|
845
|
+
function Ql(l) {
|
|
846
|
+
if (!de.value || xe.value === null || l.seriesIndex !== xe.value)
|
|
847
|
+
return 1;
|
|
848
|
+
const o = (l.proportion ?? 0) * 100, t = e.value.style.chart.layout.labels.dataLabels.hideUnderValue, u = e.value.style.chart.layout.labels.dataLabels.smallArcClusterThreshold + 2, c = t;
|
|
849
|
+
return o >= u ? 1 : o <= c ? 0 : (o - c) / (u - c);
|
|
850
|
+
}
|
|
851
|
+
const fe = f(() => {
|
|
852
|
+
const l = re.value.map((t) => ({
|
|
844
853
|
name: t.name,
|
|
845
854
|
color: t.color
|
|
846
|
-
})), o =
|
|
855
|
+
})), o = re.value.map((t) => t.value);
|
|
847
856
|
return { head: l, body: o };
|
|
848
857
|
});
|
|
849
|
-
function
|
|
850
|
-
|
|
851
|
-
const o =
|
|
852
|
-
|
|
853
|
-
], [
|
|
854
|
-
l ? l(a) :
|
|
858
|
+
function ct(l = null) {
|
|
859
|
+
va(() => {
|
|
860
|
+
const o = fe.value.head.map((u, c) => [[
|
|
861
|
+
u.name
|
|
862
|
+
], [fe.value.body[c]], [isNaN(fe.value.body[c] / V.value) ? "-" : fe.value.body[c] / V.value * 100]]), t = [[e.value.style.chart.title.text], [e.value.style.chart.title.subtitle.text], [[""], ["val"], ["%"]]].concat(o), a = $a(t);
|
|
863
|
+
l ? l(a) : Aa({ csvContent: a, title: e.value.style.chart.title.text || "vue-ui-donut" });
|
|
855
864
|
});
|
|
856
865
|
}
|
|
857
|
-
const
|
|
866
|
+
const Ge = f(() => {
|
|
858
867
|
const l = [
|
|
859
868
|
' <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>',
|
|
860
869
|
G({ p: e.value.style.chart.layout.labels.dataLabels.prefix, v: V.value, s: e.value.style.chart.layout.labels.dataLabels.suffix, r: e.value.table.td.roundingValue }),
|
|
861
870
|
"100%"
|
|
862
|
-
], o =
|
|
871
|
+
], o = fe.value.head.map((u, c) => [
|
|
863
872
|
{
|
|
864
|
-
color:
|
|
865
|
-
name:
|
|
873
|
+
color: u.color,
|
|
874
|
+
name: u.name || "-"
|
|
866
875
|
},
|
|
867
|
-
|
|
868
|
-
isNaN(
|
|
876
|
+
fe.value.body[c],
|
|
877
|
+
isNaN(fe.value.body[c] / V.value) ? "-" : (fe.value.body[c] / V.value * 100).toFixed(e.value.table.td.roundingPercentage) + "%"
|
|
869
878
|
]), t = {
|
|
870
879
|
th: {
|
|
871
880
|
backgroundColor: e.value.table.th.backgroundColor,
|
|
@@ -890,50 +899,50 @@ const sl = { style: { chart: { backgroundColor: "#1A1A1A", color: "#CCCCCC", lay
|
|
|
890
899
|
config: t
|
|
891
900
|
};
|
|
892
901
|
}), Ae = w(!1);
|
|
893
|
-
function
|
|
894
|
-
Ae.value = l,
|
|
902
|
+
function Rt(l) {
|
|
903
|
+
Ae.value = l, Pt.value += 1;
|
|
895
904
|
}
|
|
896
|
-
const
|
|
897
|
-
function
|
|
905
|
+
const Ht = f(() => /^((?!chrome|android).)*safari/i.test(navigator.userAgent));
|
|
906
|
+
function Jl(l) {
|
|
898
907
|
return l.toFixed(e.value.style.chart.legend.roundingPercentage).split("").map((o) => "-").join("");
|
|
899
908
|
}
|
|
900
|
-
function
|
|
901
|
-
e.value.events.datapointClick && e.value.events.datapointClick({ datapoint: l, seriesIndex: l.seriesIndex }),
|
|
909
|
+
function ue(l, o) {
|
|
910
|
+
e.value.events.datapointClick && e.value.events.datapointClick({ datapoint: l, seriesIndex: l.seriesIndex }), Ot("selectDatapoint", { datapoint: l, index: o });
|
|
902
911
|
}
|
|
903
|
-
function
|
|
904
|
-
|
|
912
|
+
function Gt() {
|
|
913
|
+
m.value.showTable = !m.value.showTable;
|
|
905
914
|
}
|
|
906
|
-
function
|
|
907
|
-
|
|
915
|
+
function Ut() {
|
|
916
|
+
m.value.dataLabels.show = !m.value.dataLabels.show;
|
|
908
917
|
}
|
|
909
|
-
function
|
|
910
|
-
|
|
918
|
+
function jt() {
|
|
919
|
+
m.value.showTooltip = !m.value.showTooltip;
|
|
911
920
|
}
|
|
912
|
-
const
|
|
913
|
-
function
|
|
914
|
-
|
|
921
|
+
const Ue = w(!1);
|
|
922
|
+
function vt() {
|
|
923
|
+
Ue.value = !Ue.value;
|
|
915
924
|
}
|
|
916
|
-
async function
|
|
925
|
+
async function Kl({ scale: l = 2 } = {}) {
|
|
917
926
|
if (!te.value) return;
|
|
918
|
-
const { width: o, height: t } = te.value.getBoundingClientRect(), a = o / t, { imageUri:
|
|
927
|
+
const { width: o, height: t } = te.value.getBoundingClientRect(), a = o / t, { imageUri: u, base64: c } = await Ba({ domElement: te.value, base64: !0, img: !0, scale: l });
|
|
919
928
|
return {
|
|
920
|
-
imageUri:
|
|
921
|
-
base64:
|
|
929
|
+
imageUri: u,
|
|
930
|
+
base64: c,
|
|
922
931
|
title: e.value.style.chart.title.text,
|
|
923
932
|
width: o,
|
|
924
933
|
height: t,
|
|
925
934
|
aspectRatio: a
|
|
926
935
|
};
|
|
927
936
|
}
|
|
928
|
-
function
|
|
929
|
-
if (!
|
|
930
|
-
const { x: l, y: o, width: t, height: a } =
|
|
937
|
+
function Zl() {
|
|
938
|
+
if (!Ee.value) return;
|
|
939
|
+
const { x: l, y: o, width: t, height: a } = Ee.value.getBBox();
|
|
931
940
|
ke.value && ke.value.setAttribute("viewBox", `${l} ${o} ${t + Math.min(0, l)} ${a + Math.min(0, o)}`);
|
|
932
941
|
}
|
|
933
|
-
const
|
|
934
|
-
const l = e.value.table.useDialog && !e.value.table.show, o =
|
|
942
|
+
const Be = f(() => {
|
|
943
|
+
const l = e.value.table.useDialog && !e.value.table.show, o = m.value.showTable;
|
|
935
944
|
return {
|
|
936
|
-
component: l ?
|
|
945
|
+
component: l ? $l : ml,
|
|
937
946
|
title: `${e.value.style.chart.title.text}${e.value.style.chart.title.subtitle.text ? `: ${e.value.style.chart.title.subtitle.text}` : ""}`,
|
|
938
947
|
props: l ? {
|
|
939
948
|
backgroundColor: e.value.table.th.backgroundColor,
|
|
@@ -960,97 +969,97 @@ const sl = { style: { chart: { backgroundColor: "#1A1A1A", color: "#CCCCCC", lay
|
|
|
960
969
|
}
|
|
961
970
|
};
|
|
962
971
|
});
|
|
963
|
-
|
|
964
|
-
e.value.table.show || (l && e.value.table.useDialog &&
|
|
972
|
+
Pe(() => m.value.showTable, (l) => {
|
|
973
|
+
e.value.table.show || (l && e.value.table.useDialog && Fe.value ? Fe.value.open() : "close" in Fe.value && Fe.value.close());
|
|
965
974
|
});
|
|
966
|
-
function
|
|
967
|
-
|
|
975
|
+
function Wt() {
|
|
976
|
+
m.value.showTable = !1, Ze.value && Ze.value.setTableIconState(!1);
|
|
968
977
|
}
|
|
969
|
-
const
|
|
978
|
+
const ea = f(() => ut.value.map((l) => ({
|
|
970
979
|
...l,
|
|
971
980
|
name: l.display
|
|
972
|
-
}))),
|
|
981
|
+
}))), ta = f(() => e.value.style.chart.backgroundColor), la = f(() => e.value.style.chart.legend), aa = f(() => e.value.style.chart.title), { exportSvg: oa, getSvg: na } = Ia({
|
|
973
982
|
svg: ke,
|
|
974
|
-
title:
|
|
975
|
-
legend:
|
|
976
|
-
legendItems:
|
|
977
|
-
backgroundColor:
|
|
983
|
+
title: aa,
|
|
984
|
+
legend: la,
|
|
985
|
+
legendItems: ea,
|
|
986
|
+
backgroundColor: ta
|
|
978
987
|
});
|
|
979
|
-
async function
|
|
988
|
+
async function qt({ isCb: l }) {
|
|
980
989
|
if (l) {
|
|
981
|
-
const { blob: o, url: t, text: a, dataUrl:
|
|
982
|
-
e.value.userOptions.callbacks.svg({ blob: o, url: t, text: a, dataUrl:
|
|
990
|
+
const { blob: o, url: t, text: a, dataUrl: u } = await na();
|
|
991
|
+
e.value.userOptions.callbacks.svg({ blob: o, url: t, text: a, dataUrl: u });
|
|
983
992
|
} else
|
|
984
|
-
|
|
993
|
+
oa();
|
|
985
994
|
}
|
|
986
|
-
return
|
|
987
|
-
autoSize:
|
|
988
|
-
getData:
|
|
989
|
-
getImage:
|
|
990
|
-
generatePdf:
|
|
991
|
-
generateCsv:
|
|
992
|
-
generateImage:
|
|
993
|
-
generateSvg:
|
|
994
|
-
hideSeries:
|
|
995
|
-
showSeries:
|
|
996
|
-
toggleTable:
|
|
997
|
-
toggleLabels:
|
|
998
|
-
toggleTooltip:
|
|
999
|
-
toggleAnnotator:
|
|
1000
|
-
toggleFullscreen:
|
|
995
|
+
return yl({
|
|
996
|
+
autoSize: Zl,
|
|
997
|
+
getData: zl,
|
|
998
|
+
getImage: Kl,
|
|
999
|
+
generatePdf: zt,
|
|
1000
|
+
generateCsv: ct,
|
|
1001
|
+
generateImage: Bt,
|
|
1002
|
+
generateSvg: qt,
|
|
1003
|
+
hideSeries: Xl,
|
|
1004
|
+
showSeries: Bl,
|
|
1005
|
+
toggleTable: Gt,
|
|
1006
|
+
toggleLabels: Ut,
|
|
1007
|
+
toggleTooltip: jt,
|
|
1008
|
+
toggleAnnotator: vt,
|
|
1009
|
+
toggleFullscreen: Rt
|
|
1001
1010
|
}), (l, o) => (s(), i("div", {
|
|
1002
1011
|
ref_key: "donutChart",
|
|
1003
1012
|
ref: te,
|
|
1004
|
-
class:
|
|
1005
|
-
style:
|
|
1006
|
-
id: `donut__${
|
|
1007
|
-
onMouseenter:
|
|
1008
|
-
onMouseleave:
|
|
1013
|
+
class: ft(`vue-data-ui-component vue-ui-donut ${Ae.value ? "vue-data-ui-wrapper-fullscreen" : ""} ${e.value.useCssAnimation ? "" : "vue-ui-dna"}`),
|
|
1014
|
+
style: M(`font-family:${e.value.style.fontFamily};width:100%; ${e.value.responsive ? "height:100%;" : ""} text-align:center;background:${e.value.style.chart.backgroundColor}`),
|
|
1015
|
+
id: `donut__${k.value}`,
|
|
1016
|
+
onMouseenter: Il,
|
|
1017
|
+
onMouseleave: Dl
|
|
1009
1018
|
}, [
|
|
1010
|
-
e.value.userOptions.buttons.annotator &&
|
|
1019
|
+
e.value.userOptions.buttons.annotator && r(ke) ? (s(), me(r(kl), {
|
|
1011
1020
|
key: 0,
|
|
1012
1021
|
color: e.value.style.chart.color,
|
|
1013
1022
|
backgroundColor: e.value.style.chart.backgroundColor,
|
|
1014
|
-
active:
|
|
1015
|
-
svgRef:
|
|
1016
|
-
onClose:
|
|
1023
|
+
active: Ue.value,
|
|
1024
|
+
svgRef: r(ke),
|
|
1025
|
+
onClose: vt
|
|
1017
1026
|
}, {
|
|
1018
|
-
"annotator-action-close":
|
|
1027
|
+
"annotator-action-close": C(() => [
|
|
1019
1028
|
p(l.$slots, "annotator-action-close", {}, void 0, !0)
|
|
1020
1029
|
]),
|
|
1021
|
-
"annotator-action-color":
|
|
1030
|
+
"annotator-action-color": C(({ color: t }) => [
|
|
1022
1031
|
p(l.$slots, "annotator-action-color", Z(ee({ color: t })), void 0, !0)
|
|
1023
1032
|
]),
|
|
1024
|
-
"annotator-action-draw":
|
|
1033
|
+
"annotator-action-draw": C(({ mode: t }) => [
|
|
1025
1034
|
p(l.$slots, "annotator-action-draw", Z(ee({ mode: t })), void 0, !0)
|
|
1026
1035
|
]),
|
|
1027
|
-
"annotator-action-undo":
|
|
1036
|
+
"annotator-action-undo": C(({ disabled: t }) => [
|
|
1028
1037
|
p(l.$slots, "annotator-action-undo", Z(ee({ disabled: t })), void 0, !0)
|
|
1029
1038
|
]),
|
|
1030
|
-
"annotator-action-redo":
|
|
1039
|
+
"annotator-action-redo": C(({ disabled: t }) => [
|
|
1031
1040
|
p(l.$slots, "annotator-action-redo", Z(ee({ disabled: t })), void 0, !0)
|
|
1032
1041
|
]),
|
|
1033
|
-
"annotator-action-delete":
|
|
1042
|
+
"annotator-action-delete": C(({ disabled: t }) => [
|
|
1034
1043
|
p(l.$slots, "annotator-action-delete", Z(ee({ disabled: t })), void 0, !0)
|
|
1035
1044
|
]),
|
|
1036
1045
|
_: 3
|
|
1037
1046
|
}, 8, ["color", "backgroundColor", "active", "svgRef"])) : d("", !0),
|
|
1038
1047
|
p(l.$slots, "userConfig", {}, void 0, !0),
|
|
1039
|
-
|
|
1048
|
+
Yl.value ? (s(), i("div", {
|
|
1040
1049
|
key: 1,
|
|
1041
1050
|
ref_key: "noTitle",
|
|
1042
|
-
ref:
|
|
1051
|
+
ref: $t,
|
|
1043
1052
|
class: "vue-data-ui-no-title-space",
|
|
1044
1053
|
style: "height:36px; width: 100%;background:transparent"
|
|
1045
1054
|
}, null, 512)) : d("", !0),
|
|
1046
1055
|
e.value.style.chart.title.text ? (s(), i("div", {
|
|
1047
1056
|
key: 2,
|
|
1048
1057
|
ref_key: "chartTitle",
|
|
1049
|
-
ref:
|
|
1058
|
+
ref: kt,
|
|
1050
1059
|
style: "width:100%;background:transparent;padding-bottom:24px"
|
|
1051
1060
|
}, [
|
|
1052
|
-
(s(), me(
|
|
1053
|
-
key: `title_${
|
|
1061
|
+
(s(), me(Oa, {
|
|
1062
|
+
key: `title_${At.value}`,
|
|
1054
1063
|
config: {
|
|
1055
1064
|
title: {
|
|
1056
1065
|
cy: "donut-div-title",
|
|
@@ -1063,18 +1072,18 @@ const sl = { style: { chart: { backgroundColor: "#1A1A1A", color: "#CCCCCC", lay
|
|
|
1063
1072
|
}
|
|
1064
1073
|
}, null, 8, ["config"]))
|
|
1065
1074
|
], 512)) : d("", !0),
|
|
1066
|
-
|
|
1067
|
-
id: `legend-top-${
|
|
1068
|
-
}, null, 8,
|
|
1069
|
-
e.value.userOptions.show &&
|
|
1075
|
+
y("div", {
|
|
1076
|
+
id: `legend-top-${k.value}`
|
|
1077
|
+
}, null, 8, Ra),
|
|
1078
|
+
e.value.userOptions.show && Oe.value && (r(It) || r(st)) ? (s(), me(r(Cl), {
|
|
1070
1079
|
ref_key: "userOptionsRef",
|
|
1071
|
-
ref:
|
|
1072
|
-
key: `user_option_${
|
|
1080
|
+
ref: Ze,
|
|
1081
|
+
key: `user_option_${Pt.value}`,
|
|
1073
1082
|
backgroundColor: e.value.style.chart.backgroundColor,
|
|
1074
1083
|
color: e.value.style.chart.color,
|
|
1075
|
-
isPrinting:
|
|
1076
|
-
isImaging:
|
|
1077
|
-
uid:
|
|
1084
|
+
isPrinting: r(Dt),
|
|
1085
|
+
isImaging: r(Yt),
|
|
1086
|
+
uid: k.value,
|
|
1078
1087
|
hasTooltip: e.value.style.chart.tooltip.show && e.value.userOptions.buttons.tooltip,
|
|
1079
1088
|
hasPdf: e.value.userOptions.buttons.pdf,
|
|
1080
1089
|
hasImg: e.value.userOptions.buttons.img,
|
|
@@ -1087,89 +1096,89 @@ const sl = { style: { chart: { backgroundColor: "#1A1A1A", color: "#CCCCCC", lay
|
|
|
1087
1096
|
chartElement: te.value,
|
|
1088
1097
|
position: e.value.userOptions.position,
|
|
1089
1098
|
callbacks: e.value.userOptions.callbacks,
|
|
1090
|
-
isTooltip:
|
|
1099
|
+
isTooltip: m.value.showTooltip,
|
|
1091
1100
|
titles: { ...e.value.userOptions.buttonTitles },
|
|
1092
1101
|
hasAnnotator: e.value.userOptions.buttons.annotator,
|
|
1093
|
-
isAnnotation:
|
|
1102
|
+
isAnnotation: Ue.value,
|
|
1094
1103
|
printScale: e.value.userOptions.print.scale,
|
|
1095
1104
|
tableDialog: e.value.table.useDialog,
|
|
1096
|
-
onToggleFullscreen:
|
|
1097
|
-
onGeneratePdf:
|
|
1098
|
-
onGenerateCsv:
|
|
1099
|
-
onGenerateImage:
|
|
1100
|
-
onGenerateSvg:
|
|
1101
|
-
onToggleTable:
|
|
1102
|
-
onToggleLabels:
|
|
1103
|
-
onToggleTooltip:
|
|
1104
|
-
onToggleAnnotator:
|
|
1105
|
-
style:
|
|
1106
|
-
},
|
|
1105
|
+
onToggleFullscreen: Rt,
|
|
1106
|
+
onGeneratePdf: r(zt),
|
|
1107
|
+
onGenerateCsv: ct,
|
|
1108
|
+
onGenerateImage: r(Bt),
|
|
1109
|
+
onGenerateSvg: qt,
|
|
1110
|
+
onToggleTable: Gt,
|
|
1111
|
+
onToggleLabels: Ut,
|
|
1112
|
+
onToggleTooltip: jt,
|
|
1113
|
+
onToggleAnnotator: vt,
|
|
1114
|
+
style: M({ visibility: r(It) ? r(st) ? "visible" : "hidden" : "visible" })
|
|
1115
|
+
}, yt({ _: 2 }, [
|
|
1107
1116
|
l.$slots.menuIcon ? {
|
|
1108
1117
|
name: "menuIcon",
|
|
1109
|
-
fn:
|
|
1118
|
+
fn: C(({ isOpen: t, color: a }) => [
|
|
1110
1119
|
p(l.$slots, "menuIcon", Z(ee({ isOpen: t, color: a })), void 0, !0)
|
|
1111
1120
|
]),
|
|
1112
1121
|
key: "0"
|
|
1113
1122
|
} : void 0,
|
|
1114
1123
|
l.$slots.optionTooltip ? {
|
|
1115
1124
|
name: "optionTooltip",
|
|
1116
|
-
fn:
|
|
1125
|
+
fn: C(() => [
|
|
1117
1126
|
p(l.$slots, "optionTooltip", {}, void 0, !0)
|
|
1118
1127
|
]),
|
|
1119
1128
|
key: "1"
|
|
1120
1129
|
} : void 0,
|
|
1121
1130
|
l.$slots.optionPdf ? {
|
|
1122
1131
|
name: "optionPdf",
|
|
1123
|
-
fn:
|
|
1132
|
+
fn: C(() => [
|
|
1124
1133
|
p(l.$slots, "optionPdf", {}, void 0, !0)
|
|
1125
1134
|
]),
|
|
1126
1135
|
key: "2"
|
|
1127
1136
|
} : void 0,
|
|
1128
1137
|
l.$slots.optionCsv ? {
|
|
1129
1138
|
name: "optionCsv",
|
|
1130
|
-
fn:
|
|
1139
|
+
fn: C(() => [
|
|
1131
1140
|
p(l.$slots, "optionCsv", {}, void 0, !0)
|
|
1132
1141
|
]),
|
|
1133
1142
|
key: "3"
|
|
1134
1143
|
} : void 0,
|
|
1135
1144
|
l.$slots.optionImg ? {
|
|
1136
1145
|
name: "optionImg",
|
|
1137
|
-
fn:
|
|
1146
|
+
fn: C(() => [
|
|
1138
1147
|
p(l.$slots, "optionImg", {}, void 0, !0)
|
|
1139
1148
|
]),
|
|
1140
1149
|
key: "4"
|
|
1141
1150
|
} : void 0,
|
|
1142
1151
|
l.$slots.optionSvg ? {
|
|
1143
1152
|
name: "optionSvg",
|
|
1144
|
-
fn:
|
|
1153
|
+
fn: C(() => [
|
|
1145
1154
|
p(l.$slots, "optionSvg", {}, void 0, !0)
|
|
1146
1155
|
]),
|
|
1147
1156
|
key: "5"
|
|
1148
1157
|
} : void 0,
|
|
1149
1158
|
l.$slots.optionTable ? {
|
|
1150
1159
|
name: "optionTable",
|
|
1151
|
-
fn:
|
|
1160
|
+
fn: C(() => [
|
|
1152
1161
|
p(l.$slots, "optionTable", {}, void 0, !0)
|
|
1153
1162
|
]),
|
|
1154
1163
|
key: "6"
|
|
1155
1164
|
} : void 0,
|
|
1156
1165
|
l.$slots.optionLabels ? {
|
|
1157
1166
|
name: "optionLabels",
|
|
1158
|
-
fn:
|
|
1167
|
+
fn: C(() => [
|
|
1159
1168
|
p(l.$slots, "optionLabels", {}, void 0, !0)
|
|
1160
1169
|
]),
|
|
1161
1170
|
key: "7"
|
|
1162
1171
|
} : void 0,
|
|
1163
1172
|
l.$slots.optionFullscreen ? {
|
|
1164
1173
|
name: "optionFullscreen",
|
|
1165
|
-
fn:
|
|
1174
|
+
fn: C(({ toggleFullscreen: t, isFullscreen: a }) => [
|
|
1166
1175
|
p(l.$slots, "optionFullscreen", Z(ee({ toggleFullscreen: t, isFullscreen: a })), void 0, !0)
|
|
1167
1176
|
]),
|
|
1168
1177
|
key: "8"
|
|
1169
1178
|
} : void 0,
|
|
1170
1179
|
l.$slots.optionAnnotator ? {
|
|
1171
1180
|
name: "optionAnnotator",
|
|
1172
|
-
fn:
|
|
1181
|
+
fn: C(({ toggleAnnotator: t, isAnnotator: a }) => [
|
|
1173
1182
|
p(l.$slots, "optionAnnotator", Z(ee({ toggleAnnotator: t, isAnnotator: a })), void 0, !0)
|
|
1174
1183
|
]),
|
|
1175
1184
|
key: "9"
|
|
@@ -1178,17 +1187,17 @@ const sl = { style: { chart: { backgroundColor: "#1A1A1A", color: "#CCCCCC", lay
|
|
|
1178
1187
|
(s(), i("svg", {
|
|
1179
1188
|
ref_key: "svgRef",
|
|
1180
1189
|
ref: ke,
|
|
1181
|
-
xmlns:
|
|
1182
|
-
class:
|
|
1190
|
+
xmlns: r(ma),
|
|
1191
|
+
class: ft({ "vue-data-ui-fullscreen--on": Ae.value, "vue-data-ui-fulscreen--off": !Ae.value, "vue-data-ui-svg": !0 }),
|
|
1183
1192
|
viewBox: `0 0 ${n.value.width <= 0 ? 10 : n.value.width} ${n.value.height <= 0 ? 10 : n.value.height}`,
|
|
1184
|
-
style:
|
|
1193
|
+
style: M(`max-width:100%; overflow: visible; background:transparent;color:${e.value.style.chart.color};${Re.value.css}`)
|
|
1185
1194
|
}, [
|
|
1186
|
-
|
|
1195
|
+
y("g", {
|
|
1187
1196
|
ref_key: "G",
|
|
1188
|
-
ref:
|
|
1197
|
+
ref: Ee,
|
|
1189
1198
|
class: "vue-data-ui-g"
|
|
1190
1199
|
}, [
|
|
1191
|
-
|
|
1200
|
+
qe(r(xl)),
|
|
1192
1201
|
l.$slots["chart-background"] ? (s(), i("foreignObject", {
|
|
1193
1202
|
key: 0,
|
|
1194
1203
|
x: 0,
|
|
@@ -1200,102 +1209,102 @@ const sl = { style: { chart: { backgroundColor: "#1A1A1A", color: "#CCCCCC", lay
|
|
|
1200
1209
|
}
|
|
1201
1210
|
}, [
|
|
1202
1211
|
p(l.$slots, "chart-background", {}, void 0, !0)
|
|
1203
|
-
], 8,
|
|
1204
|
-
e.value.type === "classic" && !isNaN(Ce.value /
|
|
1212
|
+
], 8, Ga)) : d("", !0),
|
|
1213
|
+
e.value.type === "classic" && !isNaN(Ce.value / T.value) ? (s(), i("defs", Ua, [
|
|
1205
1214
|
e.value.style.chart.useGradient ? (s(), i("radialGradient", {
|
|
1206
1215
|
key: 0,
|
|
1207
|
-
id: `gradient_${
|
|
1216
|
+
id: `gradient_${k.value}`
|
|
1208
1217
|
}, [
|
|
1209
|
-
|
|
1218
|
+
y("stop", {
|
|
1210
1219
|
offset: "0%",
|
|
1211
|
-
"stop-color":
|
|
1220
|
+
"stop-color": r(Ke)(e.value.style.chart.backgroundColor, 0),
|
|
1212
1221
|
"stop-opacity": "0"
|
|
1213
|
-
}, null, 8,
|
|
1214
|
-
|
|
1215
|
-
offset: `${(1 - Ce.value /
|
|
1216
|
-
"stop-color":
|
|
1222
|
+
}, null, 8, Wa),
|
|
1223
|
+
y("stop", {
|
|
1224
|
+
offset: `${(1 - Ce.value / T.value) * 100}%`,
|
|
1225
|
+
"stop-color": r(Ke)("#FFFFFF", 0),
|
|
1217
1226
|
"stop-opacity": "0"
|
|
1218
|
-
}, null, 8,
|
|
1219
|
-
|
|
1220
|
-
offset: `${(1 - Ce.value /
|
|
1221
|
-
"stop-color":
|
|
1222
|
-
}, null, 8,
|
|
1223
|
-
|
|
1227
|
+
}, null, 8, qa),
|
|
1228
|
+
y("stop", {
|
|
1229
|
+
offset: `${(1 - Ce.value / T.value / 2) * 100}%`,
|
|
1230
|
+
"stop-color": r(Ke)("#FFFFFF", e.value.style.chart.gradientIntensity)
|
|
1231
|
+
}, null, 8, Qa),
|
|
1232
|
+
y("stop", {
|
|
1224
1233
|
offset: "100%",
|
|
1225
|
-
"stop-color":
|
|
1234
|
+
"stop-color": r(Ke)(e.value.style.chart.backgroundColor, 0),
|
|
1226
1235
|
"stop-opacity": "0"
|
|
1227
|
-
}, null, 8,
|
|
1228
|
-
], 8,
|
|
1236
|
+
}, null, 8, Ja)
|
|
1237
|
+
], 8, ja)) : d("", !0)
|
|
1229
1238
|
])) : d("", !0),
|
|
1230
|
-
e.value.type === "polar" ? (s(), i("defs",
|
|
1231
|
-
(s(!0), i(
|
|
1232
|
-
id: `polar_gradient_${a}_${
|
|
1239
|
+
e.value.type === "polar" ? (s(), i("defs", Ka, [
|
|
1240
|
+
(s(!0), i(A, null, H(v.value, (t, a) => (s(), i("radialGradient", {
|
|
1241
|
+
id: `polar_gradient_${a}_${k.value}`,
|
|
1233
1242
|
cx: (isNaN(t.middlePoint.x / n.value.width * 100) ? 0 : t.middlePoint.x / n.value.width * 100) + "%",
|
|
1234
1243
|
cy: (isNaN(t.middlePoint.y / n.value.height * 100) ? 0 : t.middlePoint.y / n.value.height * 100) + "%",
|
|
1235
1244
|
r: "62%"
|
|
1236
1245
|
}, [
|
|
1237
|
-
|
|
1246
|
+
y("stop", {
|
|
1238
1247
|
offset: "0%",
|
|
1239
|
-
"stop-color":
|
|
1248
|
+
"stop-color": r(wa)(O.value[a].color, 0.05),
|
|
1240
1249
|
"stop-opacity": e.value.style.chart.gradientIntensity / 100
|
|
1241
|
-
}, null, 8,
|
|
1242
|
-
|
|
1250
|
+
}, null, 8, eo),
|
|
1251
|
+
y("stop", {
|
|
1243
1252
|
offset: "100%",
|
|
1244
1253
|
"stop-color": O.value[a].color
|
|
1245
|
-
}, null, 8,
|
|
1246
|
-
], 8,
|
|
1254
|
+
}, null, 8, to)
|
|
1255
|
+
], 8, Za))), 256))
|
|
1247
1256
|
])) : d("", !0),
|
|
1248
|
-
|
|
1249
|
-
|
|
1250
|
-
id: `blur_${
|
|
1257
|
+
y("defs", null, [
|
|
1258
|
+
y("filter", {
|
|
1259
|
+
id: `blur_${k.value}`,
|
|
1251
1260
|
x: "-50%",
|
|
1252
1261
|
y: "-50%",
|
|
1253
1262
|
width: "200%",
|
|
1254
1263
|
height: "200%"
|
|
1255
1264
|
}, [
|
|
1256
|
-
|
|
1265
|
+
y("feGaussianBlur", {
|
|
1257
1266
|
in: "SourceGraphic",
|
|
1258
1267
|
stdDeviation: 2,
|
|
1259
|
-
id: `blur_std_${
|
|
1260
|
-
}, null, 8,
|
|
1261
|
-
o[5] || (o[5] =
|
|
1268
|
+
id: `blur_std_${k.value}`
|
|
1269
|
+
}, null, 8, ao),
|
|
1270
|
+
o[5] || (o[5] = y("feColorMatrix", {
|
|
1262
1271
|
type: "saturate",
|
|
1263
1272
|
values: "0"
|
|
1264
1273
|
}, null, -1))
|
|
1265
|
-
], 8,
|
|
1266
|
-
|
|
1267
|
-
id: `shadow_${
|
|
1274
|
+
], 8, lo),
|
|
1275
|
+
y("filter", {
|
|
1276
|
+
id: `shadow_${k.value}`,
|
|
1268
1277
|
"color-interpolation-filters": "sRGB"
|
|
1269
1278
|
}, [
|
|
1270
|
-
|
|
1279
|
+
y("feDropShadow", {
|
|
1271
1280
|
dx: "0",
|
|
1272
1281
|
dy: "0",
|
|
1273
1282
|
stdDeviation: "10",
|
|
1274
1283
|
"flood-opacity": "0.5",
|
|
1275
1284
|
"flood-color": e.value.style.chart.layout.donut.shadowColor
|
|
1276
|
-
}, null, 8,
|
|
1277
|
-
], 8,
|
|
1278
|
-
|
|
1279
|
-
id: `drop_shadow_${
|
|
1285
|
+
}, null, 8, no)
|
|
1286
|
+
], 8, oo),
|
|
1287
|
+
y("filter", {
|
|
1288
|
+
id: `drop_shadow_${k.value}`,
|
|
1280
1289
|
"color-interpolation-filters": "sRGB",
|
|
1281
1290
|
x: "-50%",
|
|
1282
1291
|
y: "-50%",
|
|
1283
1292
|
width: "200%",
|
|
1284
1293
|
height: "200%"
|
|
1285
1294
|
}, [
|
|
1286
|
-
|
|
1295
|
+
y("feDropShadow", {
|
|
1287
1296
|
dx: "0",
|
|
1288
1297
|
dy: "0",
|
|
1289
1298
|
stdDeviation: "3",
|
|
1290
1299
|
"flood-opacity": "1",
|
|
1291
1300
|
"flood-color": e.value.style.chart.layout.donut.shadowColor
|
|
1292
|
-
}, null, 8,
|
|
1293
|
-
], 8,
|
|
1301
|
+
}, null, 8, uo)
|
|
1302
|
+
], 8, so)
|
|
1294
1303
|
]),
|
|
1295
|
-
e.value.type === "classic" ? (s(!0), i(
|
|
1296
|
-
|
|
1304
|
+
e.value.type === "classic" ? (s(!0), i(A, { key: 3 }, H(O.value.filter((t) => !t.ghost), (t, a) => (s(), i("g", null, [
|
|
1305
|
+
W(t) && m.value.dataLabels.show ? (s(), i("path", {
|
|
1297
1306
|
key: 0,
|
|
1298
|
-
d:
|
|
1307
|
+
d: I.value[a]?.connectorPath || r(ka)(
|
|
1299
1308
|
t,
|
|
1300
1309
|
{ x: n.value.width / 2, y: n.value.height / 2 },
|
|
1301
1310
|
16,
|
|
@@ -1312,147 +1321,147 @@ const sl = { style: { chart: { backgroundColor: "#1A1A1A", color: "#CCCCCC", lay
|
|
|
1312
1321
|
"stroke-linejoin": "round",
|
|
1313
1322
|
fill: "none",
|
|
1314
1323
|
filter: $e(a)
|
|
1315
|
-
}, null, 8,
|
|
1324
|
+
}, null, 8, ro)) : d("", !0)
|
|
1316
1325
|
]))), 256)) : d("", !0),
|
|
1317
|
-
e.value.type === "polar" ? (s(!0), i(
|
|
1318
|
-
|
|
1326
|
+
e.value.type === "polar" ? (s(!0), i(A, { key: 4 }, H(O.value.filter((t) => !t.ghost), (t, a) => (s(), i("g", null, [
|
|
1327
|
+
W(t) && m.value.dataLabels.show ? (s(), i("path", {
|
|
1319
1328
|
key: 0,
|
|
1320
|
-
d: `M ${
|
|
1329
|
+
d: `M ${r(L)({ initX: v.value[a].middlePoint.x, initY: v.value[a].middlePoint.y, offset: 24, centerX: n.value.width / 2, centerY: n.value.height / 2 }).x},${r(L)({ initX: v.value[a].middlePoint.x, initY: v.value[a].middlePoint.y, offset: 24, centerX: n.value.width / 2, centerY: n.value.height / 2 }).y} ${v.value[a].middlePoint.x},${v.value[a].middlePoint.y}`,
|
|
1321
1330
|
stroke: t.color,
|
|
1322
1331
|
"stroke-width": "1",
|
|
1323
1332
|
"stroke-linecap": "round",
|
|
1324
1333
|
"stroke-linejoin": "round",
|
|
1325
1334
|
fill: "none",
|
|
1326
1335
|
filter: $e(a),
|
|
1327
|
-
style:
|
|
1328
|
-
transition:
|
|
1336
|
+
style: M({
|
|
1337
|
+
transition: B.value || !e.value.serieToggleAnimation.show ? "none" : `all ${e.value.serieToggleAnimation.durationMs}ms ease-in-out`
|
|
1329
1338
|
})
|
|
1330
|
-
}, null, 12,
|
|
1339
|
+
}, null, 12, io)) : d("", !0)
|
|
1331
1340
|
]))), 256)) : d("", !0),
|
|
1332
1341
|
e.value.type === "classic" && e.value.style.chart.layout.donut.useShadow ? (s(), i("circle", {
|
|
1333
1342
|
key: 5,
|
|
1334
1343
|
cx: n.value.width / 2,
|
|
1335
1344
|
cy: n.value.height / 2,
|
|
1336
|
-
r:
|
|
1345
|
+
r: T.value <= 0 ? 10 : T.value,
|
|
1337
1346
|
fill: e.value.style.chart.backgroundColor,
|
|
1338
|
-
filter: `url(#shadow_${
|
|
1339
|
-
}, null, 8,
|
|
1340
|
-
l.$slots.pattern ? (s(), i("g",
|
|
1341
|
-
(s(!0), i(
|
|
1347
|
+
filter: `url(#shadow_${k.value})`
|
|
1348
|
+
}, null, 8, co)) : d("", !0),
|
|
1349
|
+
l.$slots.pattern ? (s(), i("g", vo, [
|
|
1350
|
+
(s(!0), i(A, null, H(wt.dataset, (t, a) => (s(), i("defs", {
|
|
1342
1351
|
key: `pattern-${t.patternIndex}`
|
|
1343
1352
|
}, [
|
|
1344
|
-
p(l.$slots, "pattern",
|
|
1353
|
+
p(l.$slots, "pattern", gt({ ref_for: !0 }, { seriesIndex: a, patternId: `pattern_${k.value}_${a}` }), void 0, !0)
|
|
1345
1354
|
]))), 128))
|
|
1346
1355
|
])) : d("", !0),
|
|
1347
|
-
V.value && e.value.type === "classic" ? (s(), i(
|
|
1348
|
-
(s(!0), i(
|
|
1356
|
+
V.value && e.value.type === "classic" ? (s(), i(A, { key: 7 }, [
|
|
1357
|
+
(s(!0), i(A, null, H(N.value, (t, a) => (s(), i("path", {
|
|
1349
1358
|
stroke: e.value.style.chart.backgroundColor,
|
|
1350
1359
|
d: t.arcSlice,
|
|
1351
1360
|
fill: "#FFFFFF"
|
|
1352
|
-
}, null, 8,
|
|
1353
|
-
(s(!0), i(
|
|
1361
|
+
}, null, 8, ho))), 256)),
|
|
1362
|
+
(s(!0), i(A, null, H(N.value, (t, a) => (s(), i("path", {
|
|
1354
1363
|
class: "vue-ui-donut-arc-path",
|
|
1355
1364
|
d: t.arcSlice,
|
|
1356
1365
|
fill: t.color,
|
|
1357
1366
|
stroke: e.value.style.chart.layout.donut.borderColorAuto ? e.value.style.chart.backgroundColor : e.value.style.chart.layout.donut.borderColor,
|
|
1358
1367
|
"stroke-width": e.value.style.chart.layout.donut.borderWidth,
|
|
1359
1368
|
filter: $e(a)
|
|
1360
|
-
}, null, 8,
|
|
1361
|
-
l.$slots.pattern ? (s(), i("g",
|
|
1362
|
-
(s(!0), i(
|
|
1369
|
+
}, null, 8, fo))), 256)),
|
|
1370
|
+
l.$slots.pattern ? (s(), i("g", yo, [
|
|
1371
|
+
(s(!0), i(A, null, H(N.value, (t, a) => (s(), i("path", {
|
|
1363
1372
|
class: "vue-ui-donut-arc-path",
|
|
1364
1373
|
d: t.arcSlice,
|
|
1365
1374
|
fill: `url(#${t.pattern})`,
|
|
1366
1375
|
stroke: e.value.style.chart.layout.donut.borderColorAuto ? e.value.style.chart.backgroundColor : e.value.style.chart.layout.donut.borderColor,
|
|
1367
1376
|
"stroke-width": e.value.style.chart.layout.donut.borderWidth,
|
|
1368
1377
|
filter: $e(a)
|
|
1369
|
-
}, null, 8,
|
|
1378
|
+
}, null, 8, go))), 256))
|
|
1370
1379
|
])) : d("", !0)
|
|
1371
1380
|
], 64)) : d("", !0),
|
|
1372
|
-
V.value && e.value.type === "polar" ? (s(), i(
|
|
1373
|
-
O.value.length > 1 ? (s(), i("g",
|
|
1374
|
-
(s(!0), i(
|
|
1381
|
+
V.value && e.value.type === "polar" ? (s(), i(A, { key: 8 }, [
|
|
1382
|
+
O.value.length > 1 ? (s(), i("g", po, [
|
|
1383
|
+
(s(!0), i(A, null, H(N.value, (t, a) => (s(), i("path", {
|
|
1375
1384
|
stroke: e.value.style.chart.layout.donut.borderColorAuto ? e.value.style.chart.backgroundColor : e.value.style.chart.layout.donut.borderColor,
|
|
1376
|
-
d:
|
|
1385
|
+
d: v.value[a].path,
|
|
1377
1386
|
fill: "#FFFFFF",
|
|
1378
|
-
style:
|
|
1379
|
-
transition:
|
|
1387
|
+
style: M({
|
|
1388
|
+
transition: B.value || !e.value.serieToggleAnimation.show ? "none" : `all ${e.value.serieToggleAnimation.durationMs}ms ease-in-out`
|
|
1380
1389
|
})
|
|
1381
|
-
}, null, 12,
|
|
1382
|
-
e.value.style.chart.layout.donut.useShadow ? (s(), i("g",
|
|
1383
|
-
(s(!0), i(
|
|
1390
|
+
}, null, 12, bo))), 256)),
|
|
1391
|
+
e.value.style.chart.layout.donut.useShadow ? (s(), i("g", mo, [
|
|
1392
|
+
(s(!0), i(A, null, H(N.value, (t, a) => (s(), i("path", {
|
|
1384
1393
|
class: "vue-ui-donut-arc-path",
|
|
1385
|
-
d:
|
|
1394
|
+
d: v.value[a].path,
|
|
1386
1395
|
fill: "transparent",
|
|
1387
1396
|
stroke: e.value.style.chart.layout.donut.borderColorAuto ? e.value.style.chart.backgroundColor : e.value.style.chart.layout.donut.borderColor,
|
|
1388
1397
|
"stroke-width": e.value.style.chart.layout.donut.borderWidth,
|
|
1389
|
-
filter: `url(#drop_shadow_${
|
|
1390
|
-
style:
|
|
1391
|
-
transition:
|
|
1398
|
+
filter: `url(#drop_shadow_${k.value})`,
|
|
1399
|
+
style: M({
|
|
1400
|
+
transition: B.value || !e.value.serieToggleAnimation.show ? "none" : `all ${e.value.serieToggleAnimation.durationMs}ms ease-in-out`
|
|
1392
1401
|
})
|
|
1393
|
-
}, null, 12,
|
|
1402
|
+
}, null, 12, wo))), 256))
|
|
1394
1403
|
])) : d("", !0),
|
|
1395
|
-
l.$slots.pattern ? (s(), i("g",
|
|
1396
|
-
(s(!0), i(
|
|
1404
|
+
l.$slots.pattern ? (s(), i("g", ko, [
|
|
1405
|
+
(s(!0), i(A, null, H(N.value, (t, a) => (s(), i("path", {
|
|
1397
1406
|
class: "vue-ui-donut-arc-path",
|
|
1398
|
-
d:
|
|
1407
|
+
d: v.value[a].path,
|
|
1399
1408
|
fill: `url(#${t.pattern})`,
|
|
1400
1409
|
stroke: e.value.style.chart.layout.donut.borderColorAuto ? e.value.style.chart.backgroundColor : e.value.style.chart.layout.donut.borderColor,
|
|
1401
1410
|
"stroke-width": e.value.style.chart.layout.donut.borderWidth,
|
|
1402
1411
|
filter: $e(a),
|
|
1403
|
-
style:
|
|
1404
|
-
transition:
|
|
1412
|
+
style: M({
|
|
1413
|
+
transition: B.value || !e.value.serieToggleAnimation.show ? "none" : `all ${e.value.serieToggleAnimation.durationMs}ms ease-in-out`,
|
|
1405
1414
|
transformOrigin: "center"
|
|
1406
1415
|
})
|
|
1407
|
-
}, null, 12,
|
|
1416
|
+
}, null, 12, Co))), 256))
|
|
1408
1417
|
])) : d("", !0),
|
|
1409
|
-
(s(!0), i(
|
|
1418
|
+
(s(!0), i(A, null, H(N.value, (t, a) => (s(), i("path", {
|
|
1410
1419
|
class: "vue-ui-donut-arc-path",
|
|
1411
|
-
d:
|
|
1412
|
-
fill: e.value.style.chart.useGradient ? `url(#polar_gradient_${a}_${
|
|
1420
|
+
d: v.value[a].path,
|
|
1421
|
+
fill: e.value.style.chart.useGradient ? `url(#polar_gradient_${a}_${k.value})` : t.color,
|
|
1413
1422
|
stroke: e.value.style.chart.layout.donut.borderColorAuto ? e.value.style.chart.backgroundColor : e.value.style.chart.layout.donut.borderColor,
|
|
1414
1423
|
"stroke-width": e.value.style.chart.layout.donut.borderWidth,
|
|
1415
1424
|
filter: $e(a),
|
|
1416
|
-
style:
|
|
1417
|
-
transition:
|
|
1425
|
+
style: M({
|
|
1426
|
+
transition: B.value || !e.value.serieToggleAnimation.show ? "none" : `all ${e.value.serieToggleAnimation.durationMs}ms ease-in-out`
|
|
1418
1427
|
})
|
|
1419
|
-
}, null, 12,
|
|
1420
|
-
])) : (s(), i("g",
|
|
1428
|
+
}, null, 12, xo))), 256))
|
|
1429
|
+
])) : (s(), i("g", $o, [
|
|
1421
1430
|
l.$slots.pattern ? (s(), i("circle", {
|
|
1422
1431
|
key: 0,
|
|
1423
1432
|
cx: n.value.width / 2,
|
|
1424
1433
|
cy: n.value.height / 2,
|
|
1425
|
-
r:
|
|
1426
|
-
fill: `url(#pattern_${
|
|
1434
|
+
r: T.value,
|
|
1435
|
+
fill: `url(#pattern_${k.value}_${O.value[0].patternIndex})`,
|
|
1427
1436
|
stroke: e.value.style.chart.backgroundColor,
|
|
1428
1437
|
"stroke-width": e.value.style.chart.layout.donut.borderWidth
|
|
1429
|
-
}, null, 8,
|
|
1430
|
-
|
|
1438
|
+
}, null, 8, Ao)) : d("", !0),
|
|
1439
|
+
y("circle", {
|
|
1431
1440
|
cx: n.value.width / 2,
|
|
1432
1441
|
cy: n.value.height / 2,
|
|
1433
|
-
r:
|
|
1434
|
-
fill: e.value.style.chart.useGradient ? `url(#polar_gradient_0_${
|
|
1442
|
+
r: T.value,
|
|
1443
|
+
fill: e.value.style.chart.useGradient ? `url(#polar_gradient_0_${k.value})` : O.value[0].color,
|
|
1435
1444
|
stroke: e.value.style.chart.backgroundColor,
|
|
1436
1445
|
"stroke-width": e.value.style.chart.layout.donut.borderWidth
|
|
1437
|
-
}, null, 8,
|
|
1446
|
+
}, null, 8, _o)
|
|
1438
1447
|
]))
|
|
1439
|
-
], 64)) : (s(), i(
|
|
1440
|
-
e.value.type === "classic" && !
|
|
1441
|
-
(s(!0), i(
|
|
1448
|
+
], 64)) : (s(), i(A, { key: 9 }, [
|
|
1449
|
+
e.value.type === "classic" && !Nl.value ? (s(), i("g", To, [
|
|
1450
|
+
(s(!0), i(A, null, H(Vl.value, (t, a) => (s(), i("path", {
|
|
1442
1451
|
class: "vue-ui-donut-arc-path",
|
|
1443
1452
|
d: t.arcSlice,
|
|
1444
1453
|
fill: t.color,
|
|
1445
1454
|
stroke: e.value.style.chart.backgroundColor,
|
|
1446
1455
|
"stroke-width": e.value.style.chart.layout.donut.borderWidth
|
|
1447
|
-
}, null, 8,
|
|
1456
|
+
}, null, 8, So))), 256))
|
|
1448
1457
|
])) : d("", !0),
|
|
1449
|
-
|
|
1458
|
+
y("circle", {
|
|
1450
1459
|
cx: n.value.width / 2,
|
|
1451
1460
|
cy: n.value.height / 2,
|
|
1452
|
-
r:
|
|
1461
|
+
r: T.value <= 0 ? 10 : T.value,
|
|
1453
1462
|
fill: "transparent",
|
|
1454
1463
|
stroke: e.value.style.chart.backgroundColor
|
|
1455
|
-
}, null, 8,
|
|
1464
|
+
}, null, 8, Mo)
|
|
1456
1465
|
], 64)),
|
|
1457
1466
|
e.value.style.chart.useGradient && e.value.type === "classic" ? (s(), i("circle", {
|
|
1458
1467
|
key: 10,
|
|
@@ -1460,55 +1469,55 @@ const sl = { style: { chart: { backgroundColor: "#1A1A1A", color: "#CCCCCC", lay
|
|
|
1460
1469
|
cy: n.value.height / 2,
|
|
1461
1470
|
r: (
|
|
1462
1471
|
/* This might require adjustments */
|
|
1463
|
-
|
|
1472
|
+
T.value <= 0 ? 10 : T.value
|
|
1464
1473
|
),
|
|
1465
|
-
fill: `url(#gradient_${
|
|
1466
|
-
}, null, 8,
|
|
1467
|
-
|
|
1474
|
+
fill: `url(#gradient_${k.value})`
|
|
1475
|
+
}, null, 8, Po)) : d("", !0),
|
|
1476
|
+
y("circle", {
|
|
1468
1477
|
ref_key: "circle_hollow",
|
|
1469
|
-
ref:
|
|
1478
|
+
ref: Pl,
|
|
1470
1479
|
style: { pointerEvents: "none" },
|
|
1471
1480
|
fill: "none",
|
|
1472
1481
|
cx: n.value.width / 2,
|
|
1473
1482
|
cy: n.value.height / 2,
|
|
1474
1483
|
r: Math.max(0.1, Ce.value * 1.7)
|
|
1475
|
-
}, null, 8,
|
|
1476
|
-
V.value ? (s(), i(
|
|
1477
|
-
O.value.length > 1 || e.value.type === "classic" ? (s(), i("g",
|
|
1478
|
-
(s(!0), i(
|
|
1479
|
-
d: e.value.type === "classic" ? t.arcSlice :
|
|
1484
|
+
}, null, 8, Fo),
|
|
1485
|
+
V.value ? (s(), i(A, { key: 11 }, [
|
|
1486
|
+
O.value.length > 1 || e.value.type === "classic" ? (s(), i("g", Lo, [
|
|
1487
|
+
(s(!0), i(A, null, H(O.value.filter((t) => !t.ghost), (t, a) => (s(), i("path", {
|
|
1488
|
+
d: e.value.type === "classic" ? t.arcSlice : v.value[a].path,
|
|
1480
1489
|
stroke: e.value.style.chart.layout.donut.borderColorAuto ? e.value.style.chart.backgroundColor : e.value.style.chart.layout.donut.borderColor,
|
|
1481
1490
|
fill: le.value === a ? e.value.style.chart.layout.donut.selectedColor : "transparent",
|
|
1482
|
-
onMouseenter: (
|
|
1491
|
+
onMouseenter: (u) => se({
|
|
1483
1492
|
datapoint: t,
|
|
1484
1493
|
relativeIndex: a,
|
|
1485
1494
|
seriesIndex: t.seriesIndex,
|
|
1486
1495
|
show: !0
|
|
1487
1496
|
}),
|
|
1488
|
-
onMouseleave: (
|
|
1489
|
-
onClick: (
|
|
1490
|
-
}, null, 40,
|
|
1491
|
-
])) : (s(), i("g",
|
|
1492
|
-
|
|
1497
|
+
onMouseleave: (u) => ne({ datapoint: t, seriesIndex: t.seriesIndex }),
|
|
1498
|
+
onClick: (u) => ue(t, a)
|
|
1499
|
+
}, null, 40, Io))), 256))
|
|
1500
|
+
])) : (s(), i("g", Do, [
|
|
1501
|
+
y("circle", {
|
|
1493
1502
|
cx: n.value.width / 2,
|
|
1494
1503
|
cy: n.value.height / 2,
|
|
1495
|
-
r:
|
|
1504
|
+
r: T.value,
|
|
1496
1505
|
fill: "transparent",
|
|
1497
|
-
onMouseenter: o[0] || (o[0] = (t) =>
|
|
1506
|
+
onMouseenter: o[0] || (o[0] = (t) => se({
|
|
1498
1507
|
datapoint: O.value[0],
|
|
1499
1508
|
relativeIndex: 0,
|
|
1500
1509
|
seriesIndex: O.value[0].seriesIndex,
|
|
1501
1510
|
show: !0
|
|
1502
1511
|
})),
|
|
1503
|
-
onMouseleave: o[1] || (o[1] = (t) =>
|
|
1504
|
-
onClick: o[2] || (o[2] = (t) =>
|
|
1505
|
-
}, null, 40,
|
|
1512
|
+
onMouseleave: o[1] || (o[1] = (t) => ne({ datapoint: O.value[0], seriesIndex: O.value[0].seriesIndex })),
|
|
1513
|
+
onClick: o[2] || (o[2] = (t) => ue(O.value[0], l.i))
|
|
1514
|
+
}, null, 40, Yo)
|
|
1506
1515
|
]))
|
|
1507
1516
|
], 64)) : d("", !0),
|
|
1508
1517
|
e.value.type === "classic" ? (s(), i("g", {
|
|
1509
1518
|
key: 12,
|
|
1510
1519
|
ref_key: "G_hollow",
|
|
1511
|
-
ref:
|
|
1520
|
+
ref: Ml,
|
|
1512
1521
|
class: "vue-data-ui-donut-hollow-labels"
|
|
1513
1522
|
}, [
|
|
1514
1523
|
e.value.style.chart.layout.labels.hollow.total.show ? (s(), i("text", {
|
|
@@ -1518,8 +1527,8 @@ const sl = { style: { chart: { backgroundColor: "#1A1A1A", color: "#CCCCCC", lay
|
|
|
1518
1527
|
y: n.value.height / 2 - (e.value.style.chart.layout.labels.hollow.average.show ? e.value.style.chart.layout.labels.hollow.total.fontSize : 0) + e.value.style.chart.layout.labels.hollow.total.offsetY,
|
|
1519
1528
|
fill: e.value.style.chart.layout.labels.hollow.total.color,
|
|
1520
1529
|
"font-size": e.value.style.chart.layout.labels.hollow.total.fontSize,
|
|
1521
|
-
style:
|
|
1522
|
-
}, oe(e.value.style.chart.layout.labels.hollow.total.text), 13,
|
|
1530
|
+
style: M(`font-weight:${e.value.style.chart.layout.labels.hollow.total.bold ? "bold" : ""}`)
|
|
1531
|
+
}, oe(e.value.style.chart.layout.labels.hollow.total.text), 13, zo)) : d("", !0),
|
|
1523
1532
|
e.value.style.chart.layout.labels.hollow.total.show ? (s(), i("text", {
|
|
1524
1533
|
key: 1,
|
|
1525
1534
|
"text-anchor": "middle",
|
|
@@ -1527,16 +1536,16 @@ const sl = { style: { chart: { backgroundColor: "#1A1A1A", color: "#CCCCCC", lay
|
|
|
1527
1536
|
y: n.value.height / 2 + e.value.style.chart.layout.labels.hollow.total.fontSize - (e.value.style.chart.layout.labels.hollow.average.show ? e.value.style.chart.layout.labels.hollow.total.fontSize : 0) + e.value.style.chart.layout.labels.hollow.total.value.offsetY,
|
|
1528
1537
|
fill: e.value.style.chart.layout.labels.hollow.total.value.color,
|
|
1529
1538
|
"font-size": e.value.style.chart.layout.labels.hollow.total.value.fontSize,
|
|
1530
|
-
style:
|
|
1531
|
-
}, oe(
|
|
1539
|
+
style: M(`font-weight:${e.value.style.chart.layout.labels.hollow.total.value.bold ? "bold" : ""}`)
|
|
1540
|
+
}, oe(r(q)(
|
|
1532
1541
|
e.value.style.chart.layout.labels.hollow.total.value.formatter,
|
|
1533
1542
|
V.value,
|
|
1534
|
-
|
|
1543
|
+
r(G)({
|
|
1535
1544
|
p: e.value.style.chart.layout.labels.hollow.total.value.prefix,
|
|
1536
1545
|
v: V.value,
|
|
1537
1546
|
s: e.value.style.chart.layout.labels.hollow.total.value.suffix
|
|
1538
1547
|
})
|
|
1539
|
-
)), 13,
|
|
1548
|
+
)), 13, Bo)) : d("", !0),
|
|
1540
1549
|
e.value.style.chart.layout.labels.hollow.average.show ? (s(), i("text", {
|
|
1541
1550
|
key: 2,
|
|
1542
1551
|
"text-anchor": "middle",
|
|
@@ -1544,8 +1553,8 @@ const sl = { style: { chart: { backgroundColor: "#1A1A1A", color: "#CCCCCC", lay
|
|
|
1544
1553
|
y: n.value.height / 2 + (e.value.style.chart.layout.labels.hollow.total.show ? e.value.style.chart.layout.labels.hollow.average.fontSize : 0) + e.value.style.chart.layout.labels.hollow.average.offsetY,
|
|
1545
1554
|
fill: e.value.style.chart.layout.labels.hollow.average.color,
|
|
1546
1555
|
"font-size": e.value.style.chart.layout.labels.hollow.average.fontSize,
|
|
1547
|
-
style:
|
|
1548
|
-
}, oe(e.value.style.chart.layout.labels.hollow.average.text), 13,
|
|
1556
|
+
style: M(`font-weight:${e.value.style.chart.layout.labels.hollow.average.bold ? "bold" : ""}`)
|
|
1557
|
+
}, oe(e.value.style.chart.layout.labels.hollow.average.text), 13, Xo)) : d("", !0),
|
|
1549
1558
|
e.value.style.chart.layout.labels.hollow.average.show ? (s(), i("text", {
|
|
1550
1559
|
key: 3,
|
|
1551
1560
|
"text-anchor": "middle",
|
|
@@ -1553,343 +1562,344 @@ const sl = { style: { chart: { backgroundColor: "#1A1A1A", color: "#CCCCCC", lay
|
|
|
1553
1562
|
y: n.value.height / 2 + (e.value.style.chart.layout.labels.hollow.total.show ? e.value.style.chart.layout.labels.hollow.average.fontSize : 0) + e.value.style.chart.layout.labels.hollow.average.fontSize + e.value.style.chart.layout.labels.hollow.average.value.offsetY,
|
|
1554
1563
|
fill: e.value.style.chart.layout.labels.hollow.average.value.color,
|
|
1555
1564
|
"font-size": e.value.style.chart.layout.labels.hollow.average.value.fontSize,
|
|
1556
|
-
style:
|
|
1557
|
-
}, oe(
|
|
1565
|
+
style: M(`font-weight:${e.value.style.chart.layout.labels.hollow.average.value.bold ? "bold" : ""}`)
|
|
1566
|
+
}, oe(de.value || B.value ? "--" : r(q)(
|
|
1558
1567
|
e.value.style.chart.layout.labels.hollow.average.value.formatter,
|
|
1559
|
-
|
|
1560
|
-
|
|
1568
|
+
rt.value,
|
|
1569
|
+
r(G)({
|
|
1561
1570
|
p: e.value.style.chart.layout.labels.hollow.average.value.prefix,
|
|
1562
|
-
v:
|
|
1571
|
+
v: rt.value,
|
|
1563
1572
|
s: e.value.style.chart.layout.labels.hollow.average.value.suffix,
|
|
1564
1573
|
r: e.value.style.chart.layout.labels.hollow.average.value.rounding
|
|
1565
1574
|
})
|
|
1566
|
-
)), 13,
|
|
1575
|
+
)), 13, Oo)) : d("", !0)
|
|
1567
1576
|
], 512)) : d("", !0),
|
|
1568
|
-
(s(!0), i(
|
|
1577
|
+
(s(!0), i(A, null, H(N.value.filter((t) => !t.ghost), (t, a) => (s(), i("g", {
|
|
1569
1578
|
filter: $e(a),
|
|
1570
|
-
class:
|
|
1571
|
-
key: t.seriesIndex
|
|
1579
|
+
class: ft({ animated: e.value.useCssAnimation }),
|
|
1580
|
+
key: t.seriesIndex,
|
|
1581
|
+
opacity: Ql(t)
|
|
1572
1582
|
}, [
|
|
1573
|
-
e.value.style.chart.layout.labels.dataLabels.useLabelSlots ? (s(), i("g",
|
|
1583
|
+
e.value.style.chart.layout.labels.dataLabels.useLabelSlots ? (s(), i("g", No, [
|
|
1574
1584
|
(s(), i("foreignObject", {
|
|
1575
|
-
x:
|
|
1576
|
-
y:
|
|
1585
|
+
x: r(x)(t, !0).anchor === "end" ? r(x)(t).x - 120 : r(x)(t, !0).anchor === "middle" ? r(x)(t).x - 60 : r(x)(t).x,
|
|
1586
|
+
y: r(ie)(t) - (Ht.value ? 20 : 0),
|
|
1577
1587
|
width: "120",
|
|
1578
1588
|
height: "60",
|
|
1579
1589
|
style: { overflow: "visible" }
|
|
1580
1590
|
}, [
|
|
1581
|
-
|
|
1582
|
-
p(l.$slots, "dataLabel",
|
|
1591
|
+
y("div", null, [
|
|
1592
|
+
p(l.$slots, "dataLabel", gt({ ref_for: !0 }, {
|
|
1583
1593
|
datapoint: t,
|
|
1584
1594
|
isBlur: !e.value.useBlurOnHover || [null, void 0].includes(le.value) || le.value === a,
|
|
1585
|
-
isSafari:
|
|
1586
|
-
isVisible:
|
|
1587
|
-
textAlign:
|
|
1588
|
-
flexAlign:
|
|
1589
|
-
percentage:
|
|
1595
|
+
isSafari: Ht.value,
|
|
1596
|
+
isVisible: W(t) && m.value.dataLabels.show,
|
|
1597
|
+
textAlign: r(x)(t, !0, 16, !0).anchor,
|
|
1598
|
+
flexAlign: r(x)(t, !0, 16).anchor,
|
|
1599
|
+
percentage: Ye(t, N.value)
|
|
1590
1600
|
}), void 0, !0)
|
|
1591
1601
|
])
|
|
1592
|
-
], 8,
|
|
1593
|
-
])) : (s(), i("g",
|
|
1594
|
-
e.value.type === "classic" ? (s(), i(
|
|
1595
|
-
|
|
1602
|
+
], 8, Vo))
|
|
1603
|
+
])) : (s(), i("g", Ro, [
|
|
1604
|
+
e.value.type === "classic" ? (s(), i(A, { key: 0 }, [
|
|
1605
|
+
W(t) && m.value.dataLabels.show ? (s(), i("circle", {
|
|
1596
1606
|
key: 0,
|
|
1597
|
-
cx:
|
|
1598
|
-
cy:
|
|
1607
|
+
cx: I.value[a]?.markerX ?? r(x)(t).x,
|
|
1608
|
+
cy: I.value[a]?.markerY ?? r(ie)(t) - 3.5,
|
|
1599
1609
|
fill: t.color,
|
|
1600
1610
|
stroke: e.value.style.chart.backgroundColor,
|
|
1601
1611
|
"stroke-width": 1,
|
|
1602
1612
|
r: 3,
|
|
1603
|
-
filter: !e.value.useBlurOnHover || [null, void 0].includes(le.value) || le.value === a ? "" : `url(#blur_${
|
|
1604
|
-
onClick: (
|
|
1605
|
-
onMouseenter: (
|
|
1613
|
+
filter: !e.value.useBlurOnHover || [null, void 0].includes(le.value) || le.value === a ? "" : `url(#blur_${k.value})`,
|
|
1614
|
+
onClick: (u) => ue(t, a),
|
|
1615
|
+
onMouseenter: (u) => se({
|
|
1606
1616
|
datapoint: t,
|
|
1607
1617
|
relativeIndex: a,
|
|
1608
1618
|
seriesIndex: t.seriesIndex,
|
|
1609
1619
|
show: !0
|
|
1610
1620
|
}),
|
|
1611
|
-
onMouseleave: (
|
|
1612
|
-
}, null, 40,
|
|
1613
|
-
e.value.style.chart.layout.labels.dataLabels.oneLine ||
|
|
1621
|
+
onMouseleave: (u) => ne({ datapoint: t, seriesIndex: t.seriesIndex })
|
|
1622
|
+
}, null, 40, Ho)) : d("", !0),
|
|
1623
|
+
e.value.style.chart.layout.labels.dataLabels.oneLine || I.value[a] ? Qe((s(), i("text", {
|
|
1614
1624
|
key: 1,
|
|
1615
1625
|
class: "vue-data-ui-datalabel-inline",
|
|
1616
|
-
"text-anchor":
|
|
1617
|
-
x:
|
|
1618
|
-
y:
|
|
1619
|
-
onClick: (
|
|
1620
|
-
onMouseenter: (
|
|
1626
|
+
"text-anchor": I.value[a]?.textAnchor || r(x)(t, !0, 12).anchor,
|
|
1627
|
+
x: I.value[a]?.labelX ?? r(x)(t, !0, 12).x,
|
|
1628
|
+
y: I.value[a]?.labelY ?? r(ie)(t),
|
|
1629
|
+
onClick: (u) => ue(t, a),
|
|
1630
|
+
onMouseenter: (u) => se({
|
|
1621
1631
|
datapoint: t,
|
|
1622
1632
|
relativeIndex: a,
|
|
1623
1633
|
seriesIndex: t.seriesIndex,
|
|
1624
1634
|
show: !0
|
|
1625
1635
|
}),
|
|
1626
|
-
onMouseleave: (
|
|
1627
|
-
innerHTML:
|
|
1628
|
-
}, null, 40,
|
|
1629
|
-
[
|
|
1630
|
-
]) : (s(), i(
|
|
1631
|
-
|
|
1636
|
+
onMouseleave: (u) => ne({ datapoint: t, seriesIndex: t.seriesIndex }),
|
|
1637
|
+
innerHTML: Wl(t, a, !!I.value[a])
|
|
1638
|
+
}, null, 40, Go)), [
|
|
1639
|
+
[Je, W(t) && m.value.dataLabels.show]
|
|
1640
|
+
]) : (s(), i(A, { key: 2 }, [
|
|
1641
|
+
Qe(y("text", {
|
|
1632
1642
|
class: "vue-data-ui-datalabel-value",
|
|
1633
|
-
"text-anchor":
|
|
1634
|
-
x:
|
|
1635
|
-
y:
|
|
1643
|
+
"text-anchor": I.value[a]?.textAnchor || r(x)(t, !0, 12).anchor,
|
|
1644
|
+
x: I.value[a]?.labelX ?? r(x)(t, !0, 12).x,
|
|
1645
|
+
y: I.value[a]?.labelY ?? r(ie)(t),
|
|
1636
1646
|
fill: e.value.style.chart.layout.labels.percentage.color,
|
|
1637
1647
|
"font-size": Se.value + "px",
|
|
1638
|
-
style:
|
|
1639
|
-
onClick: (
|
|
1640
|
-
onMouseenter: (
|
|
1648
|
+
style: M(`font-weight:${e.value.style.chart.layout.labels.percentage.bold ? "bold" : ""}`),
|
|
1649
|
+
onClick: (u) => ue(t, a),
|
|
1650
|
+
onMouseenter: (u) => se({
|
|
1641
1651
|
datapoint: t,
|
|
1642
1652
|
relativeIndex: a,
|
|
1643
1653
|
seriesIndex: t.seriesIndex,
|
|
1644
1654
|
show: !0
|
|
1645
1655
|
}),
|
|
1646
|
-
onMouseleave: (
|
|
1647
|
-
}, oe(
|
|
1656
|
+
onMouseleave: (u) => ne({ datapoint: t, seriesIndex: t.seriesIndex })
|
|
1657
|
+
}, oe(Ye(t, N.value)) + " " + oe(e.value.style.chart.layout.labels.value.show ? `(${r(q)(
|
|
1648
1658
|
e.value.style.chart.layout.labels.value.formatter,
|
|
1649
1659
|
t.value,
|
|
1650
|
-
|
|
1660
|
+
r(G)({
|
|
1651
1661
|
p: e.value.style.chart.layout.labels.dataLabels.prefix,
|
|
1652
1662
|
v: t.value,
|
|
1653
1663
|
s: e.value.style.chart.layout.labels.dataLabels.suffix,
|
|
1654
1664
|
r: e.value.style.chart.layout.labels.value.rounding
|
|
1655
1665
|
}),
|
|
1656
1666
|
{ datapoint: t }
|
|
1657
|
-
)})` : ""), 45,
|
|
1658
|
-
[
|
|
1667
|
+
)})` : ""), 45, Uo), [
|
|
1668
|
+
[Je, W(t) && m.value.dataLabels.show]
|
|
1659
1669
|
]),
|
|
1660
|
-
|
|
1670
|
+
Qe(y("text", {
|
|
1661
1671
|
class: "vue-data-ui-datalabel-name",
|
|
1662
|
-
"text-anchor":
|
|
1663
|
-
x:
|
|
1664
|
-
y: (
|
|
1672
|
+
"text-anchor": I.value[a]?.textAnchor || r(x)(t).anchor,
|
|
1673
|
+
x: I.value[a]?.labelX ?? r(x)(t, !0, 12).x,
|
|
1674
|
+
y: (I.value[a]?.labelY ?? r(ie)(t)) + E.value * 1.2,
|
|
1665
1675
|
fill: e.value.style.chart.layout.labels.name.color,
|
|
1666
1676
|
"font-size": E.value + "px",
|
|
1667
|
-
style:
|
|
1668
|
-
onClick: (
|
|
1669
|
-
onMouseenter: (
|
|
1677
|
+
style: M(`font-weight:${e.value.style.chart.layout.labels.name.bold ? "bold" : ""}`),
|
|
1678
|
+
onClick: (u) => ue(t, a),
|
|
1679
|
+
onMouseenter: (u) => se({
|
|
1670
1680
|
datapoint: t,
|
|
1671
1681
|
relativeIndex: a,
|
|
1672
1682
|
seriesIndex: t.seriesIndex,
|
|
1673
1683
|
show: !0
|
|
1674
1684
|
}),
|
|
1675
|
-
onMouseleave: (
|
|
1676
|
-
innerHTML:
|
|
1685
|
+
onMouseleave: (u) => ne({ datapoint: t, seriesIndex: t.seriesIndex }),
|
|
1686
|
+
innerHTML: r(sl)({
|
|
1677
1687
|
content: t.name,
|
|
1678
1688
|
fontSize: E.value,
|
|
1679
1689
|
fill: e.value.style.chart.layout.labels.name.color,
|
|
1680
|
-
x:
|
|
1681
|
-
y: (
|
|
1690
|
+
x: I.value[a]?.labelX ?? r(x)(t, !0, 12).x,
|
|
1691
|
+
y: (I.value[a]?.labelY ?? r(ie)(t)) + E.value
|
|
1682
1692
|
})
|
|
1683
|
-
}, null, 44,
|
|
1684
|
-
[
|
|
1693
|
+
}, null, 44, jo), [
|
|
1694
|
+
[Je, W(t) && m.value.dataLabels.show]
|
|
1685
1695
|
])
|
|
1686
1696
|
], 64))
|
|
1687
1697
|
], 64)) : d("", !0),
|
|
1688
|
-
e.value.type === "polar" ? (s(), i(
|
|
1689
|
-
|
|
1698
|
+
e.value.type === "polar" ? (s(), i(A, { key: 1 }, [
|
|
1699
|
+
W(t) && m.value.dataLabels.show ? (s(), i("circle", {
|
|
1690
1700
|
key: 0,
|
|
1691
|
-
cx:
|
|
1692
|
-
cy:
|
|
1701
|
+
cx: r(L)({ initX: v.value[a].middlePoint.x, initY: v.value[a].middlePoint.y, offset: 24, centerX: n.value.width / 2, centerY: n.value.height / 2 }).x,
|
|
1702
|
+
cy: r(L)({ initX: v.value[a].middlePoint.x, initY: v.value[a].middlePoint.y, offset: 24, centerX: n.value.width / 2, centerY: n.value.height / 2 }).y,
|
|
1693
1703
|
fill: t.color,
|
|
1694
1704
|
stroke: e.value.style.chart.backgroundColor,
|
|
1695
1705
|
"stroke-width": 1,
|
|
1696
1706
|
r: 3,
|
|
1697
|
-
filter: !e.value.useBlurOnHover || [null, void 0].includes(le.value) || le.value === a ? "" : `url(#blur_${
|
|
1698
|
-
onClick: (
|
|
1699
|
-
onMouseenter: (
|
|
1707
|
+
filter: !e.value.useBlurOnHover || [null, void 0].includes(le.value) || le.value === a ? "" : `url(#blur_${k.value})`,
|
|
1708
|
+
onClick: (u) => ue(t, a),
|
|
1709
|
+
onMouseenter: (u) => se({
|
|
1700
1710
|
datapoint: t,
|
|
1701
1711
|
relativeIndex: a,
|
|
1702
1712
|
seriesIndex: t.seriesIndex,
|
|
1703
1713
|
show: !0
|
|
1704
1714
|
}),
|
|
1705
|
-
onMouseleave: (
|
|
1706
|
-
style:
|
|
1707
|
-
transition:
|
|
1715
|
+
onMouseleave: (u) => ne({ datapoint: t, seriesIndex: t.seriesIndex }),
|
|
1716
|
+
style: M({
|
|
1717
|
+
transition: B.value || !e.value.serieToggleAnimation.show ? "none" : `all ${e.value.serieToggleAnimation.durationMs}ms ease-in-out`
|
|
1708
1718
|
})
|
|
1709
|
-
}, null, 44,
|
|
1710
|
-
e.value.style.chart.layout.labels.dataLabels.oneLine ?
|
|
1719
|
+
}, null, 44, Wo)) : d("", !0),
|
|
1720
|
+
e.value.style.chart.layout.labels.dataLabels.oneLine ? Qe((s(), i("text", {
|
|
1711
1721
|
key: 1,
|
|
1712
1722
|
class: "vue-data-ui-datalabel-inline",
|
|
1713
|
-
"text-anchor":
|
|
1714
|
-
x:
|
|
1715
|
-
y:
|
|
1716
|
-
style:
|
|
1717
|
-
transition:
|
|
1723
|
+
"text-anchor": he(v.value[a].middlePoint),
|
|
1724
|
+
x: r(L)({ initX: v.value[a].middlePoint.x, initY: v.value[a].middlePoint.y, offset: 42, centerX: n.value.width / 2, centerY: n.value.height / 2 }).x,
|
|
1725
|
+
y: r(L)({ initX: v.value[a].middlePoint.x, initY: v.value[a].middlePoint.y, offset: 42, centerX: n.value.width / 2, centerY: n.value.height / 2 }).y,
|
|
1726
|
+
style: M({
|
|
1727
|
+
transition: B.value || !e.value.serieToggleAnimation.show ? "none" : `all ${e.value.serieToggleAnimation.durationMs}ms ease-in-out`
|
|
1718
1728
|
}),
|
|
1719
|
-
onClick: (
|
|
1720
|
-
onMouseenter: (
|
|
1729
|
+
onClick: (u) => ue(t, a),
|
|
1730
|
+
onMouseenter: (u) => se({
|
|
1721
1731
|
datapoint: t,
|
|
1722
1732
|
relativeIndex: a,
|
|
1723
1733
|
seriesIndex: t.seriesIndex,
|
|
1724
1734
|
show: !0
|
|
1725
1735
|
}),
|
|
1726
|
-
onMouseleave: (
|
|
1727
|
-
innerHTML:
|
|
1728
|
-
}, null, 44,
|
|
1729
|
-
[
|
|
1730
|
-
]) : (s(), i(
|
|
1731
|
-
|
|
1736
|
+
onMouseleave: (u) => ne({ datapoint: t, seriesIndex: t.seriesIndex }),
|
|
1737
|
+
innerHTML: ql(t, a)
|
|
1738
|
+
}, null, 44, qo)), [
|
|
1739
|
+
[Je, W(t) && m.value.dataLabels.show]
|
|
1740
|
+
]) : (s(), i(A, { key: 2 }, [
|
|
1741
|
+
W(t) && m.value.dataLabels.show ? (s(), i("text", {
|
|
1732
1742
|
key: 0,
|
|
1733
1743
|
class: "vue-data-ui-datalabel-value",
|
|
1734
|
-
"text-anchor":
|
|
1735
|
-
x:
|
|
1736
|
-
y:
|
|
1744
|
+
"text-anchor": he(v.value[a].middlePoint),
|
|
1745
|
+
x: r(L)({ initX: v.value[a].middlePoint.x, initY: v.value[a].middlePoint.y, offset: 42, centerX: n.value.width / 2, centerY: n.value.height / 2 }).x,
|
|
1746
|
+
y: r(L)({ initX: v.value[a].middlePoint.x, initY: v.value[a].middlePoint.y, offset: 42, centerX: n.value.width / 2, centerY: n.value.height / 2 }).y,
|
|
1737
1747
|
fill: e.value.style.chart.layout.labels.percentage.color,
|
|
1738
1748
|
"font-size": Se.value,
|
|
1739
|
-
style:
|
|
1740
|
-
transition:
|
|
1749
|
+
style: M({
|
|
1750
|
+
transition: B.value || !e.value.serieToggleAnimation.show ? "none" : `all ${e.value.serieToggleAnimation.durationMs}ms ease-in-out`,
|
|
1741
1751
|
fontWeight: e.value.style.chart.layout.labels.percentage.bold ? "bold" : "normal"
|
|
1742
1752
|
}),
|
|
1743
|
-
onClick: (
|
|
1744
|
-
onMouseenter: (
|
|
1753
|
+
onClick: (u) => ue(t, a),
|
|
1754
|
+
onMouseenter: (u) => se({
|
|
1745
1755
|
datapoint: t,
|
|
1746
1756
|
relativeIndex: a,
|
|
1747
1757
|
seriesIndex: t.seriesIndex,
|
|
1748
1758
|
show: !0
|
|
1749
1759
|
}),
|
|
1750
|
-
onMouseleave: (
|
|
1751
|
-
}, oe(
|
|
1760
|
+
onMouseleave: (u) => ne({ datapoint: t, seriesIndex: t.seriesIndex })
|
|
1761
|
+
}, oe(Ye(t, N.value)) + " " + oe(e.value.style.chart.layout.labels.value.show ? `(${r(q)(
|
|
1752
1762
|
e.value.style.chart.layout.labels.value.formatter,
|
|
1753
1763
|
t.value,
|
|
1754
|
-
|
|
1764
|
+
r(G)({
|
|
1755
1765
|
p: e.value.style.chart.layout.labels.dataLabels.prefix,
|
|
1756
1766
|
v: t.value,
|
|
1757
1767
|
s: e.value.style.chart.layout.labels.dataLabels.suffix,
|
|
1758
1768
|
r: e.value.style.chart.layout.labels.value.rounding
|
|
1759
1769
|
}),
|
|
1760
1770
|
{ datapoint: t }
|
|
1761
|
-
)})` : ""), 45,
|
|
1762
|
-
|
|
1771
|
+
)})` : ""), 45, Qo)) : d("", !0),
|
|
1772
|
+
W(t) && m.value.dataLabels.show ? (s(), i("text", {
|
|
1763
1773
|
key: 1,
|
|
1764
1774
|
class: "vue-data-ui-datalabel-name",
|
|
1765
|
-
"text-anchor":
|
|
1766
|
-
x:
|
|
1767
|
-
y:
|
|
1775
|
+
"text-anchor": he(v.value[a].middlePoint),
|
|
1776
|
+
x: r(L)({ initX: v.value[a].middlePoint.x, initY: v.value[a].middlePoint.y, offset: 42, centerX: n.value.width / 2, centerY: n.value.height / 2 }).x,
|
|
1777
|
+
y: r(L)({ initX: v.value[a].middlePoint.x, initY: v.value[a].middlePoint.y, offset: 42, centerX: n.value.width / 2, centerY: n.value.height / 2 }).y + E.value * 1.2,
|
|
1768
1778
|
fill: e.value.style.chart.layout.labels.name.color,
|
|
1769
1779
|
"font-size": E.value,
|
|
1770
|
-
style:
|
|
1771
|
-
transition:
|
|
1780
|
+
style: M({
|
|
1781
|
+
transition: B.value || !e.value.serieToggleAnimation.show ? "none" : `all ${e.value.serieToggleAnimation.durationMs}ms ease-in-out`,
|
|
1772
1782
|
fontWeight: e.value.style.chart.layout.labels.name.bold ? "bold" : "normal"
|
|
1773
1783
|
}),
|
|
1774
|
-
onClick: (
|
|
1775
|
-
onMouseenter: (
|
|
1784
|
+
onClick: (u) => ue(t, a),
|
|
1785
|
+
onMouseenter: (u) => se({
|
|
1776
1786
|
datapoint: t,
|
|
1777
1787
|
relativeIndex: a,
|
|
1778
1788
|
seriesIndex: t.seriesIndex,
|
|
1779
1789
|
show: !0
|
|
1780
1790
|
}),
|
|
1781
|
-
onMouseleave: (
|
|
1782
|
-
innerHTML:
|
|
1791
|
+
onMouseleave: (u) => ne({ datapoint: t, seriesIndex: t.seriesIndex }),
|
|
1792
|
+
innerHTML: r(sl)({
|
|
1783
1793
|
content: t.name,
|
|
1784
1794
|
fontSize: Se.value,
|
|
1785
1795
|
fill: e.value.style.chart.layout.labels.name.color,
|
|
1786
|
-
x:
|
|
1787
|
-
y:
|
|
1796
|
+
x: r(L)({ initX: v.value[a].middlePoint.x, initY: v.value[a].middlePoint.y, offset: 42, centerX: n.value.width / 2, centerY: n.value.height / 2 }).x,
|
|
1797
|
+
y: r(L)({ initX: v.value[a].middlePoint.x, initY: v.value[a].middlePoint.y, offset: 42, centerX: n.value.width / 2, centerY: n.value.height / 2 }).y + E.value * 1.2
|
|
1788
1798
|
})
|
|
1789
|
-
}, null, 44,
|
|
1799
|
+
}, null, 44, Jo)) : d("", !0)
|
|
1790
1800
|
], 64))
|
|
1791
1801
|
], 64)) : d("", !0)
|
|
1792
1802
|
])),
|
|
1793
|
-
|
|
1794
|
-
|
|
1803
|
+
m.value.dataLabels.show && e.value.style.chart.comments.show && t.comment ? (s(), i("g", Ko, [
|
|
1804
|
+
W(t) && e.value.type === "classic" ? (s(), i("foreignObject", {
|
|
1795
1805
|
key: 0,
|
|
1796
|
-
x: e.value.style.chart.comments.offsetX + (
|
|
1797
|
-
y:
|
|
1806
|
+
x: e.value.style.chart.comments.offsetX + (r(x)(t, !0).anchor === "end" ? r(x)(t).x - e.value.style.chart.comments.width : r(x)(t, !0).anchor === "middle" ? r(x)(t).x - e.value.style.chart.comments.width / 2 : r(x)(t).x),
|
|
1807
|
+
y: r(ie)(t) + 24 + e.value.style.chart.comments.offsetY,
|
|
1798
1808
|
width: e.value.style.chart.comments.width,
|
|
1799
1809
|
height: "200",
|
|
1800
1810
|
style: { overflow: "visible", "pointer-events": "none" }
|
|
1801
1811
|
}, [
|
|
1802
|
-
|
|
1812
|
+
y("div", null, [
|
|
1803
1813
|
p(l.$slots, "plot-comment", {
|
|
1804
|
-
plot: { ...t, textAlign:
|
|
1814
|
+
plot: { ...t, textAlign: r(x)(t, !0, 16, !0).anchor, flexAlign: r(x)(t, !0, 16).anchor, isFirstLoad: B.value }
|
|
1805
1815
|
}, void 0, !0)
|
|
1806
1816
|
])
|
|
1807
|
-
], 8,
|
|
1808
|
-
|
|
1817
|
+
], 8, Zo)) : d("", !0),
|
|
1818
|
+
W(t) && e.value.type === "polar" ? (s(), i("foreignObject", {
|
|
1809
1819
|
key: 1,
|
|
1810
|
-
x: e.value.style.chart.comments.offsetX + (
|
|
1811
|
-
y:
|
|
1820
|
+
x: e.value.style.chart.comments.offsetX + (he(v.value[a].middlePoint) === "end" ? r(L)({ initX: v.value[a].middlePoint.x, initY: v.value[a].middlePoint.y, offset: 42, centerX: n.value.width / 2, centerY: n.value.height / 2 }).x - e.value.style.chart.comments.width : he(v.value[a].middlePoint) === "middle" ? r(L)({ initX: v.value[a].middlePoint.x, initY: v.value[a].middlePoint.y, offset: 42, centerX: n.value.width / 2, centerY: n.value.height / 2 }).x - e.value.style.chart.comments.width / 2 : r(L)({ initX: v.value[a].middlePoint.x, initY: v.value[a].middlePoint.y, offset: 42, centerX: n.value.width / 2, centerY: n.value.height / 2 }).x),
|
|
1821
|
+
y: Rl(v.value[a]) + e.value.style.chart.comments.offsetY,
|
|
1812
1822
|
width: e.value.style.chart.comments.width,
|
|
1813
1823
|
height: "200",
|
|
1814
|
-
style:
|
|
1815
|
-
transition:
|
|
1824
|
+
style: M({
|
|
1825
|
+
transition: B.value || !e.value.serieToggleAnimation.show ? "none" : `all ${e.value.serieToggleAnimation.durationMs}ms ease-in-out`,
|
|
1816
1826
|
overflow: "visible",
|
|
1817
1827
|
pointerEvents: "none"
|
|
1818
1828
|
})
|
|
1819
1829
|
}, [
|
|
1820
|
-
|
|
1830
|
+
y("div", null, [
|
|
1821
1831
|
p(l.$slots, "plot-comment", {
|
|
1822
|
-
plot: { ...t, textAlign:
|
|
1832
|
+
plot: { ...t, textAlign: he(v.value[a].middlePoint), flexAlign: he(v.value[a].middlePoint), isFirstLoad: B.value }
|
|
1823
1833
|
}, void 0, !0)
|
|
1824
1834
|
])
|
|
1825
|
-
], 12,
|
|
1835
|
+
], 12, en)) : d("", !0)
|
|
1826
1836
|
])) : d("", !0)
|
|
1827
|
-
], 10,
|
|
1837
|
+
], 10, Eo))), 128)),
|
|
1828
1838
|
p(l.$slots, "svg", { svg: n.value }, void 0, !0)
|
|
1829
1839
|
], 512)
|
|
1830
|
-
], 14,
|
|
1831
|
-
l.$slots.watermark ? (s(), i("div",
|
|
1832
|
-
p(l.$slots, "watermark", Z(ee({ isPrinting:
|
|
1840
|
+
], 14, Ha)),
|
|
1841
|
+
l.$slots.watermark ? (s(), i("div", tn, [
|
|
1842
|
+
p(l.$slots, "watermark", Z(ee({ isPrinting: r(Dt) || r(Yt) })), void 0, !0)
|
|
1833
1843
|
])) : d("", !0),
|
|
1834
|
-
|
|
1835
|
-
id: `legend-bottom-${
|
|
1836
|
-
}, null, 8,
|
|
1837
|
-
|
|
1844
|
+
y("div", {
|
|
1845
|
+
id: `legend-bottom-${k.value}`
|
|
1846
|
+
}, null, 8, ln),
|
|
1847
|
+
St.value ? (s(), me(ia, {
|
|
1838
1848
|
key: 5,
|
|
1839
|
-
to: e.value.style.chart.legend.position === "top" ? `#legend-top-${
|
|
1849
|
+
to: e.value.style.chart.legend.position === "top" ? `#legend-top-${k.value}` : `#legend-bottom-${k.value}`
|
|
1840
1850
|
}, [
|
|
1841
|
-
|
|
1851
|
+
y("div", {
|
|
1842
1852
|
ref_key: "chartLegend",
|
|
1843
|
-
ref:
|
|
1853
|
+
ref: Ct
|
|
1844
1854
|
}, [
|
|
1845
|
-
e.value.style.chart.legend.show ? (s(), me(
|
|
1846
|
-
key: `legend_${
|
|
1847
|
-
legendSet:
|
|
1848
|
-
config:
|
|
1849
|
-
onClickMarker: o[3] || (o[3] = ({ i: t }) =>
|
|
1850
|
-
},
|
|
1851
|
-
item:
|
|
1852
|
-
|
|
1853
|
-
style:
|
|
1854
|
-
onClick: (
|
|
1855
|
-
}, oe(t.display), 13,
|
|
1855
|
+
e.value.style.chart.legend.show ? (s(), me(Ea, {
|
|
1856
|
+
key: `legend_${Tt.value}`,
|
|
1857
|
+
legendSet: ut.value,
|
|
1858
|
+
config: El.value,
|
|
1859
|
+
onClickMarker: o[3] || (o[3] = ({ i: t }) => He(t))
|
|
1860
|
+
}, yt({
|
|
1861
|
+
item: C(({ legend: t, index: a }) => [
|
|
1862
|
+
y("div", {
|
|
1863
|
+
style: M(`opacity:${j.value.includes(a) ? 0.5 : 1}`),
|
|
1864
|
+
onClick: (u) => t.segregate()
|
|
1865
|
+
}, oe(t.display), 13, an)
|
|
1856
1866
|
]),
|
|
1857
1867
|
_: 2
|
|
1858
1868
|
}, [
|
|
1859
1869
|
l.$slots.pattern ? {
|
|
1860
1870
|
name: "legend-pattern",
|
|
1861
|
-
fn:
|
|
1862
|
-
|
|
1871
|
+
fn: C(({ legend: t, index: a }) => [
|
|
1872
|
+
qe(Xa, {
|
|
1863
1873
|
shape: t.shape,
|
|
1864
1874
|
radius: 30,
|
|
1865
1875
|
stroke: "none",
|
|
1866
1876
|
plot: { x: 30, y: 30 },
|
|
1867
|
-
fill: `url(#pattern_${
|
|
1877
|
+
fill: `url(#pattern_${k.value}_${a})`
|
|
1868
1878
|
}, null, 8, ["shape", "fill"])
|
|
1869
1879
|
]),
|
|
1870
1880
|
key: "0"
|
|
1871
1881
|
} : void 0
|
|
1872
1882
|
]), 1032, ["legendSet", "config"])) : d("", !0),
|
|
1873
|
-
p(l.$slots, "legend", { legend:
|
|
1883
|
+
p(l.$slots, "legend", { legend: ut.value }, void 0, !0)
|
|
1874
1884
|
], 512)
|
|
1875
1885
|
], 8, ["to"])) : d("", !0),
|
|
1876
1886
|
l.$slots.source ? (s(), i("div", {
|
|
1877
1887
|
key: 6,
|
|
1878
1888
|
ref_key: "source",
|
|
1879
|
-
ref:
|
|
1889
|
+
ref: xt,
|
|
1880
1890
|
dir: "auto"
|
|
1881
1891
|
}, [
|
|
1882
1892
|
p(l.$slots, "source", {}, void 0, !0)
|
|
1883
1893
|
], 512)) : d("", !0),
|
|
1884
|
-
l.$slots.hollow ? (s(), i("div",
|
|
1894
|
+
l.$slots.hollow ? (s(), i("div", on, [
|
|
1885
1895
|
p(l.$slots, "hollow", Z(ee({
|
|
1886
1896
|
total: V.value,
|
|
1887
|
-
average:
|
|
1888
|
-
dataset:
|
|
1897
|
+
average: rt.value,
|
|
1898
|
+
dataset: U.value
|
|
1889
1899
|
})), void 0, !0)
|
|
1890
1900
|
])) : d("", !0),
|
|
1891
|
-
|
|
1892
|
-
show:
|
|
1901
|
+
qe(r(pl), {
|
|
1902
|
+
show: m.value.showTooltip && at.value,
|
|
1893
1903
|
backgroundColor: e.value.style.chart.tooltip.backgroundColor,
|
|
1894
1904
|
color: e.value.style.chart.tooltip.color,
|
|
1895
1905
|
fontSize: e.value.style.chart.tooltip.fontSize,
|
|
@@ -1900,57 +1910,57 @@ const sl = { style: { chart: { backgroundColor: "#1A1A1A", color: "#CCCCCC", lay
|
|
|
1900
1910
|
position: e.value.style.chart.tooltip.position,
|
|
1901
1911
|
offsetY: e.value.style.chart.tooltip.offsetY,
|
|
1902
1912
|
parent: te.value,
|
|
1903
|
-
content:
|
|
1904
|
-
isCustom:
|
|
1913
|
+
content: ot.value,
|
|
1914
|
+
isCustom: ze.value,
|
|
1905
1915
|
isFullscreen: Ae.value,
|
|
1906
1916
|
smooth: e.value.style.chart.tooltip.smooth,
|
|
1907
1917
|
backdropFilter: e.value.style.chart.tooltip.backdropFilter,
|
|
1908
1918
|
smoothForce: e.value.style.chart.tooltip.smoothForce,
|
|
1909
1919
|
smoothSnapThreshold: e.value.style.chart.tooltip.smoothSnapThrehsold
|
|
1910
1920
|
}, {
|
|
1911
|
-
"tooltip-before":
|
|
1912
|
-
p(l.$slots, "tooltip-before", Z(ee({ ...
|
|
1921
|
+
"tooltip-before": C(() => [
|
|
1922
|
+
p(l.$slots, "tooltip-before", Z(ee({ ...it.value })), void 0, !0)
|
|
1913
1923
|
]),
|
|
1914
|
-
"tooltip-after":
|
|
1915
|
-
p(l.$slots, "tooltip-after", Z(ee({ ...
|
|
1924
|
+
"tooltip-after": C(() => [
|
|
1925
|
+
p(l.$slots, "tooltip-after", Z(ee({ ...it.value })), void 0, !0)
|
|
1916
1926
|
]),
|
|
1917
1927
|
_: 3
|
|
1918
1928
|
}, 8, ["show", "backgroundColor", "color", "fontSize", "borderRadius", "borderColor", "borderWidth", "backgroundOpacity", "position", "offsetY", "parent", "content", "isCustom", "isFullscreen", "smooth", "backdropFilter", "smoothForce", "smoothSnapThreshold"]),
|
|
1919
|
-
|
|
1929
|
+
Oe.value && e.value.userOptions.buttons.table ? (s(), me(ca(Be.value.component), gt({ key: 8 }, Be.value.props, {
|
|
1920
1930
|
ref_key: "tableUnit",
|
|
1921
|
-
ref:
|
|
1922
|
-
onClose:
|
|
1923
|
-
}),
|
|
1924
|
-
content:
|
|
1925
|
-
(s(), me(
|
|
1926
|
-
key: `table_${
|
|
1927
|
-
colNames:
|
|
1928
|
-
head:
|
|
1929
|
-
body:
|
|
1930
|
-
config:
|
|
1931
|
-
title: e.value.table.useDialog ? "" :
|
|
1931
|
+
ref: Fe,
|
|
1932
|
+
onClose: Wt
|
|
1933
|
+
}), yt({
|
|
1934
|
+
content: C(() => [
|
|
1935
|
+
(s(), me(r(wl), {
|
|
1936
|
+
key: `table_${_t.value}`,
|
|
1937
|
+
colNames: Ge.value.colNames,
|
|
1938
|
+
head: Ge.value.head,
|
|
1939
|
+
body: Ge.value.body,
|
|
1940
|
+
config: Ge.value.config,
|
|
1941
|
+
title: e.value.table.useDialog ? "" : Be.value.title,
|
|
1932
1942
|
withCloseButton: !e.value.table.useDialog,
|
|
1933
|
-
onClose:
|
|
1943
|
+
onClose: Wt
|
|
1934
1944
|
}, {
|
|
1935
|
-
th:
|
|
1936
|
-
|
|
1945
|
+
th: C(({ th: t }) => [
|
|
1946
|
+
y("div", {
|
|
1937
1947
|
innerHTML: t,
|
|
1938
1948
|
style: { display: "flex", "align-items": "center" }
|
|
1939
|
-
}, null, 8,
|
|
1949
|
+
}, null, 8, nn)
|
|
1940
1950
|
]),
|
|
1941
|
-
td:
|
|
1942
|
-
|
|
1951
|
+
td: C(({ td: t }) => [
|
|
1952
|
+
ll(oe(t.name ? t.name : isNaN(Number(t)) ? t.includes("%") ? t : r(q)(
|
|
1943
1953
|
e.value.style.chart.layout.labels.percentage.formatter,
|
|
1944
1954
|
t,
|
|
1945
|
-
|
|
1955
|
+
r(G)({
|
|
1946
1956
|
v: t,
|
|
1947
1957
|
s: "%",
|
|
1948
1958
|
r: e.value.style.chart.layout.labels.percentage.rounding
|
|
1949
1959
|
})
|
|
1950
|
-
) :
|
|
1960
|
+
) : r(q)(
|
|
1951
1961
|
e.value.style.chart.layout.labels.value.formatter,
|
|
1952
1962
|
t,
|
|
1953
|
-
|
|
1963
|
+
r(G)({
|
|
1954
1964
|
p: e.value.style.chart.layout.labels.dataLabels.prefix,
|
|
1955
1965
|
v: t,
|
|
1956
1966
|
s: e.value.style.chart.layout.labels.dataLabels.suffix,
|
|
@@ -1965,37 +1975,37 @@ const sl = { style: { chart: { backgroundColor: "#1A1A1A", color: "#CCCCCC", lay
|
|
|
1965
1975
|
}, [
|
|
1966
1976
|
e.value.table.useDialog ? {
|
|
1967
1977
|
name: "title",
|
|
1968
|
-
fn:
|
|
1969
|
-
|
|
1978
|
+
fn: C(() => [
|
|
1979
|
+
ll(oe(Be.value.title), 1)
|
|
1970
1980
|
]),
|
|
1971
1981
|
key: "0"
|
|
1972
1982
|
} : void 0,
|
|
1973
1983
|
e.value.table.useDialog ? {
|
|
1974
1984
|
name: "actions",
|
|
1975
|
-
fn:
|
|
1976
|
-
|
|
1985
|
+
fn: C(() => [
|
|
1986
|
+
y("button", {
|
|
1977
1987
|
tabindex: "0",
|
|
1978
1988
|
class: "vue-ui-user-options-button",
|
|
1979
|
-
onClick: o[4] || (o[4] = (t) =>
|
|
1989
|
+
onClick: o[4] || (o[4] = (t) => ct(e.value.userOptions.callbacks.csv))
|
|
1980
1990
|
}, [
|
|
1981
|
-
|
|
1991
|
+
qe(r(bl), {
|
|
1982
1992
|
name: "excel",
|
|
1983
|
-
stroke:
|
|
1993
|
+
stroke: Be.value.props.color
|
|
1984
1994
|
}, null, 8, ["stroke"])
|
|
1985
1995
|
])
|
|
1986
1996
|
]),
|
|
1987
1997
|
key: "1"
|
|
1988
1998
|
} : void 0
|
|
1989
1999
|
]), 1040)) : d("", !0),
|
|
1990
|
-
|
|
1991
|
-
], 46,
|
|
2000
|
+
r(Ne) ? (s(), me(La, { key: 9 })) : d("", !0)
|
|
2001
|
+
], 46, Va));
|
|
1992
2002
|
}
|
|
1993
|
-
},
|
|
2003
|
+
}, un = /* @__PURE__ */ Na(sn, [["__scopeId", "data-v-ace639e3"]]), An = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
1994
2004
|
__proto__: null,
|
|
1995
|
-
default:
|
|
2005
|
+
default: un
|
|
1996
2006
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
1997
2007
|
export {
|
|
1998
|
-
|
|
1999
|
-
|
|
2000
|
-
|
|
2008
|
+
un as V,
|
|
2009
|
+
An as a,
|
|
2010
|
+
$n as v
|
|
2001
2011
|
};
|