vue-data-ui 3.22.7 → 3.22.8
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{Arrow-DaGI9u-b.js → Arrow-DdymhUfY.js} +1 -1
- package/dist/{BaseDraggableDialog-1wwwdwV2.js → BaseDraggableDialog-DcfGlH8A.js} +2 -2
- package/dist/{BaseIcon-_-BX7be3.js → BaseIcon-C2qlyHc7.js} +1 -1
- package/dist/{BaseLegendToggle-CHnlKalt.js → BaseLegendToggle-DtQ8vyfr.js} +1 -1
- package/dist/{BaseZoomControls-C9bdZSCj.js → BaseZoomControls-C6zonwhr.js} +2 -2
- package/dist/{ColorPicker-TB3KhY3j.js → ColorPicker-CK2-h611.js} +2 -2
- package/dist/{DataTable-CVF7DoZn.js → DataTable-D9NvewTT.js} +2 -2
- package/dist/{Legend-kAr7Vqqu.js → Legend-ROt6ugzW.js} +2 -2
- package/dist/{NonSvgPenAndPaper-CEiv7_gM.js → NonSvgPenAndPaper-BHHNsVVP.js} +3 -3
- package/dist/{PackageVersion-Dse0n05o.js → PackageVersion-DW7zwRcm.js} +1 -1
- package/dist/{PenAndPaper-gaV1QPpP.js → PenAndPaper-pcgwlYr2.js} +3 -3
- package/dist/{Shape-CiQIxyyT.js → Shape-UpH0a4Ur.js} +3 -3
- package/dist/{Slicer-6FOtg9py.js → Slicer-BZ5VnOOS.js} +19 -19
- package/dist/{SlicerPreview-DUywypFu.js → SlicerPreview-BQFeCw0m.js} +351 -351
- package/dist/{SparkTooltip-B-qsPj68.js → SparkTooltip-BTLN-Kex.js} +6 -6
- package/dist/{Title-PiTKr6sp.js → Title-CcNiYzEo.js} +1 -1
- package/dist/{Tooltip-B8yYfISA.js → Tooltip-CxOrWlFy.js} +1 -1
- package/dist/{UserOptions-BL9VlHop.js → UserOptions-16uF1ayB.js} +2 -2
- package/dist/components/arrow.js +1 -1
- package/dist/components/vue-ui-3d-bar.js +1 -1
- package/dist/components/vue-ui-accordion.js +1 -1
- package/dist/components/vue-ui-age-pyramid.js +1 -1
- package/dist/components/vue-ui-annotator.js +1 -1
- package/dist/components/vue-ui-bullet.js +1 -1
- package/dist/components/vue-ui-bump.js +1 -1
- package/dist/components/vue-ui-candlestick.js +1 -1
- package/dist/components/vue-ui-carousel-table.js +1 -1
- package/dist/components/vue-ui-chestnut.js +1 -1
- package/dist/components/vue-ui-chord.js +1 -1
- package/dist/components/vue-ui-circle-pack.js +1 -1
- package/dist/components/vue-ui-cursor.js +1 -1
- package/dist/components/vue-ui-dag.js +1 -1
- package/dist/components/vue-ui-dashboard.js +1 -1
- package/dist/components/vue-ui-digits.js +1 -1
- package/dist/components/vue-ui-donut-evolution.js +1 -1
- package/dist/components/vue-ui-donut.js +1 -1
- package/dist/components/vue-ui-dumbbell.js +1 -1
- package/dist/components/vue-ui-flow.js +1 -1
- package/dist/components/vue-ui-funnel.js +1 -1
- package/dist/components/vue-ui-galaxy.js +1 -1
- package/dist/components/vue-ui-gauge.js +1 -1
- package/dist/components/vue-ui-geo.js +1 -1
- package/dist/components/vue-ui-gizmo.js +1 -1
- package/dist/components/vue-ui-heatmap.js +1 -1
- package/dist/components/vue-ui-history-plot.js +1 -1
- package/dist/components/vue-ui-horizontal-bar.js +1 -1
- package/dist/components/vue-ui-icon.js +1 -1
- package/dist/components/vue-ui-kpi.js +1 -1
- package/dist/components/vue-ui-mini-loader.js +1 -1
- package/dist/components/vue-ui-molecule.js +1 -1
- package/dist/components/vue-ui-mood-radar.js +1 -1
- package/dist/components/vue-ui-nested-donuts.js +1 -1
- package/dist/components/vue-ui-onion.js +1 -1
- package/dist/components/vue-ui-parallel-coordinate-plot.js +1 -1
- package/dist/components/vue-ui-quadrant.js +1 -1
- package/dist/components/vue-ui-quick-chart.js +1 -1
- package/dist/components/vue-ui-radar.js +1 -1
- package/dist/components/vue-ui-rating.js +1 -1
- package/dist/components/vue-ui-relation-circle.js +1 -1
- package/dist/components/vue-ui-ridgeline.js +1 -1
- package/dist/components/vue-ui-rings.js +1 -1
- package/dist/components/vue-ui-scatter.js +1 -1
- package/dist/components/vue-ui-skeleton.js +1 -1
- package/dist/components/vue-ui-smiley.js +1 -1
- package/dist/components/vue-ui-spark-trend.js +1 -1
- package/dist/components/vue-ui-sparkbar.js +1 -1
- package/dist/components/vue-ui-sparkgauge.js +1 -1
- package/dist/components/vue-ui-sparkhistogram.js +1 -1
- package/dist/components/vue-ui-sparkline.js +1 -1
- package/dist/components/vue-ui-sparkstackbar.js +1 -1
- package/dist/components/vue-ui-stackbar.js +1 -1
- package/dist/components/vue-ui-stackline.js +1 -1
- package/dist/components/vue-ui-strip-plot.js +1 -1
- package/dist/components/vue-ui-table-heatmap.js +1 -1
- package/dist/components/vue-ui-table-sparkline.js +1 -1
- package/dist/components/vue-ui-table.js +1 -1
- package/dist/components/vue-ui-thermometer.js +1 -1
- package/dist/components/vue-ui-timer.js +1 -1
- package/dist/components/vue-ui-tiremarks.js +1 -1
- package/dist/components/vue-ui-treemap.js +1 -1
- package/dist/components/vue-ui-vertical-bar.js +1 -1
- package/dist/components/vue-ui-waffle.js +1 -1
- package/dist/components/vue-ui-wheel.js +1 -1
- package/dist/components/vue-ui-word-cloud.js +1 -1
- package/dist/components/vue-ui-world.js +1 -1
- package/dist/components/vue-ui-xy-canvas.js +1 -1
- package/dist/components/vue-ui-xy.js +1 -1
- package/dist/{dom-to-png-BZjYWNEg.js → dom-to-png-BbwhsRIr.js} +1 -1
- package/dist/exposedLib-VXFp3Z2c.js +19 -0
- package/dist/{geoProjections-Czak6Jn1.js → geoProjections-BbN7z57k.js} +172 -15
- package/dist/{img-B_abIg0o.js → img-DnP3eXuv.js} +1 -1
- package/dist/{labelUtils-CTDRZdP1.js → labelUtils-DBEh078l.js} +1 -1
- package/dist/{lib-EAmk-PgA.js → lib-JqW18y5I.js} +36 -30
- package/dist/{package-DeMimPej.js → package-gp9pYCfN.js} +1 -1
- package/dist/{pdf-B6qrdEqB.js → pdf-hj3gzrE7.js} +1 -1
- package/dist/{render-common-DMai0gHB.js → render-common-CLn1VXJ9.js} +20 -20
- package/dist/ssr/vue-ui-donut.js +1 -1
- package/dist/ssr/vue-ui-xy.js +1 -1
- package/dist/ssr.js +2 -2
- package/dist/style.css +1 -1
- package/dist/types/utils.d.ts +18 -0
- package/dist/{useAutoSizeLabelsInsideViewbox-CyOGrdD_.js → useAutoSizeLabelsInsideViewbox-BGnDfZdg.js} +1 -1
- package/dist/{useNestedProp-D8XqxgOU.js → useNestedProp-DIuuzG1r.js} +1 -1
- package/dist/{usePrinter-DnGzpp6Q.js → usePrinter-CqqHmnBI.js} +2 -2
- package/dist/utils.js +24 -24
- package/dist/{vue-data-ui-D6qVWloL.js → vue-data-ui-AZZ9Cq-4.js} +68 -68
- package/dist/vue-data-ui.js +77 -77
- package/dist/vue-ui-3d-bar-B3HxJmDI.js +1757 -0
- package/dist/{vue-ui-accordion-Dzz8XhX3.js → vue-ui-accordion-YyosvEPo.js} +3 -3
- package/dist/vue-ui-age-pyramid-DTAOc7fn.js +1238 -0
- package/dist/{vue-ui-annotator-DXZumSP8.js → vue-ui-annotator-CfJXeAOE.js} +67 -67
- package/dist/vue-ui-bullet-CCLnrOLm.js +710 -0
- package/dist/vue-ui-bump-Rq7efdoe.js +1249 -0
- package/dist/vue-ui-candlestick-D-Z9pEaA.js +1829 -0
- package/dist/vue-ui-carousel-table-Lx5Zk4dG.js +455 -0
- package/dist/vue-ui-chestnut-RfWMGUD-.js +2010 -0
- package/dist/vue-ui-chord-Db1O_diJ.js +1391 -0
- package/dist/vue-ui-circle-pack-B4Ro7UuI.js +1608 -0
- package/dist/{vue-ui-cursor-DLJcFwRZ.js → vue-ui-cursor-DLP7wxsw.js} +61 -61
- package/dist/{vue-ui-dag-DemsIecS.js → vue-ui-dag-DL3zq0F2.js} +43 -43
- package/dist/{vue-ui-dashboard-DWHD_wNN.js → vue-ui-dashboard-C2ozZ-LI.js} +69 -69
- package/dist/{vue-ui-digits-sIKc85vS.js → vue-ui-digits-ThFVNO3l.js} +3 -3
- package/dist/{vue-ui-donut-Dp6GW0dw.js → vue-ui-donut-BuTd6dt4.js} +201 -201
- package/dist/{vue-ui-donut-CLheJPcO.js → vue-ui-donut-C3Rt6j-I.js} +592 -592
- package/dist/{vue-ui-donut-evolution-zmRPpJLj.js → vue-ui-donut-evolution-DY46UPF_.js} +442 -442
- package/dist/{vue-ui-dumbbell-bSbgHd0U.js → vue-ui-dumbbell-wK7vUB0x.js} +238 -238
- package/dist/{vue-ui-flow-q_M7O1BK.js → vue-ui-flow-BTUNfWb7.js} +119 -119
- package/dist/{vue-ui-funnel-BEZUEuuh.js → vue-ui-funnel-BhoHzyHa.js} +162 -162
- package/dist/{vue-ui-galaxy-DCCWmIyH.js → vue-ui-galaxy-DJ2uNYcN.js} +342 -342
- package/dist/{vue-ui-gauge-B1ljgfE1.js → vue-ui-gauge-Cf4NqvrO.js} +55 -55
- package/dist/{vue-ui-geo-CM59rpnj.js → vue-ui-geo-ovHu_Sc9.js} +14 -14
- package/dist/{vue-ui-gizmo-D2RL6IVp.js → vue-ui-gizmo-DDxEj-qe.js} +62 -62
- package/dist/{vue-ui-heatmap-BX6PQxML.js → vue-ui-heatmap-Npqnvb1r.js} +163 -163
- package/dist/{vue-ui-history-plot-DaHAeQph.js → vue-ui-history-plot-C3Kjy2tc.js} +371 -371
- package/dist/vue-ui-horizontal-bar-D1rCsgqt.js +1683 -0
- package/dist/{vue-ui-kpi-DLbP7lJR.js → vue-ui-kpi-BrlfYO-j.js} +4 -4
- package/dist/{vue-ui-mini-loader-DPHzHsM7.js → vue-ui-mini-loader-D5we7V_W.js} +2 -2
- package/dist/vue-ui-molecule-CExCqZ08.js +925 -0
- package/dist/{vue-ui-mood-radar-CCWaPr0P.js → vue-ui-mood-radar-DlVh6hwx.js} +45 -45
- package/dist/vue-ui-nested-donuts-3TRV8pN-.js +1487 -0
- package/dist/vue-ui-onion-DwKK9DXn.js +1200 -0
- package/dist/vue-ui-parallel-coordinate-plot-DSp_cwU-.js +1416 -0
- package/dist/{vue-ui-quadrant-T_UmRAAy.js → vue-ui-quadrant-ByVg-NBs.js} +58 -58
- package/dist/vue-ui-quick-chart-WMzSJxGZ.js +2469 -0
- package/dist/{vue-ui-radar-CHjeGOMC.js → vue-ui-radar-DE-me6OC.js} +79 -79
- package/dist/vue-ui-rating-CzD3EQ3G.js +343 -0
- package/dist/{vue-ui-relation-circle-DRZGQ_UX.js → vue-ui-relation-circle-L7-dTqet.js} +167 -167
- package/dist/vue-ui-ridgeline-Cp3YP0xe.js +1622 -0
- package/dist/vue-ui-rings-WzWiEo9W.js +1246 -0
- package/dist/vue-ui-scatter-DwrAydha.js +2413 -0
- package/dist/{vue-ui-skeleton-Fmue6DAG.js → vue-ui-skeleton-CuFm4PtB.js} +58 -58
- package/dist/{vue-ui-smiley-BVMI5vUy.js → vue-ui-smiley-D4NnZ1mg.js} +16 -16
- package/dist/{vue-ui-spark-trend-DfZeLiWA.js → vue-ui-spark-trend-C38ysZ-c.js} +99 -99
- package/dist/{vue-ui-sparkbar-Cl1e49sw.js → vue-ui-sparkbar-B03ndcUe.js} +30 -30
- package/dist/{vue-ui-sparkgauge-DDNNBIdf.js → vue-ui-sparkgauge-DgPc4vPT.js} +48 -48
- package/dist/{vue-ui-sparkhistogram-ny_liYa6.js → vue-ui-sparkhistogram-D02ff7ZI.js} +72 -72
- package/dist/vue-ui-sparkline-DlTfNQj8.js +1547 -0
- package/dist/{vue-ui-sparkstackbar-BfF5-Wg2.js → vue-ui-sparkstackbar-DrmiWFlw.js} +110 -110
- package/dist/{vue-ui-stackbar-B-2Me3d-.js → vue-ui-stackbar-BVdApDnY.js} +82 -82
- package/dist/{vue-ui-stackline-CdvVPQUM.js → vue-ui-stackline-QzQQ7lTy.js} +636 -636
- package/dist/vue-ui-strip-plot-C-TFNvgz.js +1729 -0
- package/dist/{vue-ui-table-Dr1dK3d_.js → vue-ui-table-Q3brrivC.js} +62 -62
- package/dist/{vue-ui-table-heatmap-D-Qrm3oX.js → vue-ui-table-heatmap-D0pZbBOH.js} +14 -14
- package/dist/vue-ui-table-sparkline-Q6BHPKUn.js +712 -0
- package/dist/{vue-ui-thermometer-BUrtIfuo.js → vue-ui-thermometer-Bg0RR6m4.js} +115 -115
- package/dist/{vue-ui-timer-B5bkNNHS.js → vue-ui-timer-BdzKpoRj.js} +5 -5
- package/dist/{vue-ui-tiremarks-Bn8b-ZSz.js → vue-ui-tiremarks-DWb69ofh.js} +13 -13
- package/dist/{vue-ui-treemap-LMWiicop.js → vue-ui-treemap-uUz07Prw.js} +457 -457
- package/dist/vue-ui-waffle-Pi9e7Ae7.js +1362 -0
- package/dist/{vue-ui-wheel-CeVwXtEX.js → vue-ui-wheel-DTfvWYA7.js} +130 -130
- package/dist/{vue-ui-word-cloud-D81-qJLw.js → vue-ui-word-cloud-DqfljAqH.js} +27 -27
- package/dist/vue-ui-world-BtBrH92Z.js +3016 -0
- package/dist/{vue-ui-xy-C2p9H2IX.js → vue-ui-xy-Bvgy2do1.js} +714 -714
- package/dist/{vue-ui-xy-OhwS0kcZ.js → vue-ui-xy-D5KsuNR2.js} +116 -116
- package/dist/{vue-ui-xy-canvas-DLKDdH35.js → vue-ui-xy-canvas-BfgeE3TW.js} +58 -58
- package/package.json +1 -1
- package/dist/exposedLib-Be0ifkti.js +0 -19
- package/dist/vue-ui-3d-bar-CjNuWXoA.js +0 -1757
- package/dist/vue-ui-age-pyramid-CC7Dxli-.js +0 -1238
- package/dist/vue-ui-bullet-Dde6FhbR.js +0 -710
- package/dist/vue-ui-bump-C5pni1JV.js +0 -1249
- package/dist/vue-ui-candlestick-Ctw65O4_.js +0 -1829
- package/dist/vue-ui-carousel-table-BEUvhUH0.js +0 -455
- package/dist/vue-ui-chestnut-C3IbAdkQ.js +0 -2010
- package/dist/vue-ui-chord-5eCWG4br.js +0 -1391
- package/dist/vue-ui-circle-pack-Cq4lkmee.js +0 -1608
- package/dist/vue-ui-horizontal-bar-CTW6l4n3.js +0 -1683
- package/dist/vue-ui-molecule-aD0SMTiX.js +0 -925
- package/dist/vue-ui-nested-donuts--BCPWkl7.js +0 -1487
- package/dist/vue-ui-onion-s4iMCGAP.js +0 -1200
- package/dist/vue-ui-parallel-coordinate-plot-CfgvpyoC.js +0 -1416
- package/dist/vue-ui-quick-chart-D1OWBgQJ.js +0 -2469
- package/dist/vue-ui-rating-Bek8Tgr-.js +0 -343
- package/dist/vue-ui-ridgeline-DIODGiu8.js +0 -1622
- package/dist/vue-ui-rings-CcdUSXGG.js +0 -1246
- package/dist/vue-ui-scatter-CixnqLoi.js +0 -2413
- package/dist/vue-ui-sparkline-BNxdO-Bx.js +0 -1547
- package/dist/vue-ui-strip-plot-CRXPXA5V.js +0 -1729
- package/dist/vue-ui-table-sparkline-C31Q32My.js +0 -712
- package/dist/vue-ui-waffle-B_L3gkky.js +0 -1362
- package/dist/vue-ui-world-B7npRmTa.js +0 -14264
|
@@ -1,38 +1,38 @@
|
|
|
1
1
|
import { t as e } from "./rolldown-runtime-Dy4uBu1J.js";
|
|
2
|
-
import {
|
|
3
|
-
import { t as
|
|
4
|
-
import { t as
|
|
5
|
-
import { n as
|
|
6
|
-
import { t as
|
|
7
|
-
import { t as
|
|
8
|
-
import { t as
|
|
9
|
-
import { t as
|
|
10
|
-
import { n as
|
|
11
|
-
import { t as
|
|
12
|
-
import { t as
|
|
13
|
-
import { c as
|
|
14
|
-
import { t as
|
|
15
|
-
import { t as
|
|
16
|
-
import { t as
|
|
17
|
-
import { t as
|
|
18
|
-
import { t as
|
|
19
|
-
import { n as
|
|
20
|
-
import { t as
|
|
21
|
-
import { t as
|
|
22
|
-
import { Fragment as
|
|
2
|
+
import { $ as t, At as n, Dt as r, G as i, J as a, Kt as o, Mt as s, Q as c, Rt as l, S as u, T as ee, W as te, Wt as ne, Z as d, b as re, d as f, dt as p, i as m, it as ie, k as ae, kt as oe, o as se, p as ce, rt as le, t as ue, u as h, v as de, yt as fe, zt as pe } from "./lib-JqW18y5I.js";
|
|
3
|
+
import { t as me } from "./useConfig-DYM3f6EI.js";
|
|
4
|
+
import { t as he } from "./usePrinter-CqqHmnBI.js";
|
|
5
|
+
import { n as ge, t as g } from "./BaseScanner-DZvpgOjM.js";
|
|
6
|
+
import { t as _e } from "./useSvgExport-SVIsDot8.js";
|
|
7
|
+
import { t as ve } from "./useNestedProp-DIuuzG1r.js";
|
|
8
|
+
import { t as ye } from "./useThemeCheck-C43Tcqmk.js";
|
|
9
|
+
import { t as be } from "./img-DnP3eXuv.js";
|
|
10
|
+
import { n as xe } from "./Title-CcNiYzEo.js";
|
|
11
|
+
import { t as Se } from "./Shape-UpH0a4Ur.js";
|
|
12
|
+
import { t as Ce } from "./_plugin-vue_export-helper-B3ysoDQm.js";
|
|
13
|
+
import { c as we } from "./canvas-lib-BOP_HS11.js";
|
|
14
|
+
import { t as Te } from "./useResponsive-BfnK0KxU.js";
|
|
15
|
+
import { t as Ee } from "./BaseLegendToggle-DtQ8vyfr.js";
|
|
16
|
+
import { t as De } from "./A11yDataTable-DdRsVULz.js";
|
|
17
|
+
import { t as Oe } from "./useUserOptionState-DK-_1ddE.js";
|
|
18
|
+
import { t as ke } from "./useChartAccessibility-DYqac8yF.js";
|
|
19
|
+
import { n as Ae, t as je } from "./labelUtils-DBEh078l.js";
|
|
20
|
+
import { t as Me } from "./vue_ui_donut-BDGqG07h.js";
|
|
21
|
+
import { t as Ne } from "./Legend-ROt6ugzW.js";
|
|
22
|
+
import { Fragment as _, Teleport as Pe, computed as v, createBlock as Fe, createCommentVNode as y, createElementBlock as b, createElementVNode as x, createSlots as Ie, createTextVNode as Le, createVNode as Re, defineAsyncComponent as ze, guardReactiveProps as S, mergeProps as Be, nextTick as Ve, normalizeClass as He, normalizeProps as C, normalizeStyle as w, onBeforeUnmount as Ue, onMounted as We, openBlock as T, ref as E, renderList as D, renderSlot as O, resolveDynamicComponent as Ge, shallowRef as Ke, toDisplayString as qe, toRefs as Je, unref as k, useSlots as Ye, vShow as Xe, watch as Ze, withCtx as A, withDirectives as Qe } from "vue";
|
|
23
23
|
//#region src/useSmallArcLayouts.js
|
|
24
|
-
function
|
|
24
|
+
function $e(e) {
|
|
25
25
|
let { FINAL_CONFIG: t, noGhostDonut: n, svg: r, padding: i, labels_inline_fontSize: a, minSize: o, findArcMidpoint: s, calcMarkerOffsetX: c, calcMarkerOffsetY: l, animatingIndex: u, segregated: ee, isSmallArc: te } = e;
|
|
26
|
-
return { smallArcLayoutsClassic:
|
|
26
|
+
return { smallArcLayoutsClassic: v(() => {
|
|
27
27
|
if (t.value.type !== "classic") return {};
|
|
28
28
|
let e = {}, ne = n.value || [];
|
|
29
29
|
if (!ne.length) return e;
|
|
30
|
-
let d = r.value.width / 2,
|
|
31
|
-
function
|
|
32
|
-
if (!
|
|
33
|
-
let i = n < d ? -1 : 1, a = n - e, o = r - t, s = Math.sqrt(a * a + o * o) || 1, c = e - d, l = t -
|
|
34
|
-
function
|
|
35
|
-
let n = e - d, r = t -
|
|
30
|
+
let d = r.value.width / 2, re = r.value.height / 2, f = i.value.top + 16, p = r.value.height - i.value.bottom - 16, m = a.value, ie = m / 3, ae = m * 1.5, oe = d - (o.value + 6), se = d + (o.value + 6), ce = !!t.value.style.chart.layout.curvedMarkers;
|
|
31
|
+
function le({ midX: e, midY: t, bandX: n, bandY: r }) {
|
|
32
|
+
if (!ce) return `M ${e} ${t} L ${e} ${r} L ${n} ${r}`;
|
|
33
|
+
let i = n < d ? -1 : 1, a = n - e, o = r - t, s = Math.sqrt(a * a + o * o) || 1, c = e - d, l = t - re, u = Math.sqrt(c * c + l * l) || 1, ee = c / u, te = l / u, ne = u + 9;
|
|
34
|
+
function f({ x: e, y: t }) {
|
|
35
|
+
let n = e - d, r = t - re, i = Math.sqrt(n * n + r * r) || 1;
|
|
36
36
|
if (i >= ne) return {
|
|
37
37
|
x: e,
|
|
38
38
|
y: t
|
|
@@ -40,38 +40,38 @@ function Qe(e) {
|
|
|
40
40
|
let a = ne / i;
|
|
41
41
|
return {
|
|
42
42
|
x: d + n * a,
|
|
43
|
-
y:
|
|
43
|
+
y: re + r * a
|
|
44
44
|
};
|
|
45
45
|
}
|
|
46
46
|
if (s < 56) {
|
|
47
|
-
let i = a / s, c = -(o / s), l = i, u = (e + n) * .5, ne = (t + r) * .5,
|
|
48
|
-
(
|
|
49
|
-
let
|
|
50
|
-
|
|
51
|
-
let
|
|
52
|
-
x:
|
|
53
|
-
y:
|
|
47
|
+
let i = a / s, c = -(o / s), l = i, u = (e + n) * .5, ne = (t + r) * .5, p = u + c, m = ne + l, ie = (p - d) * (p - d) + (m - re) * (m - re), ae = u - c, oe = ne - l;
|
|
48
|
+
(ae - d) * (ae - d) + (oe - re) * (oe - re) > ie && (c = -c, l = -l);
|
|
49
|
+
let se = .78, ce = e + a * se, le = t + o * se, ue = Math.max(0, Math.min(1, (s - 18) / 44)), h = ue * ue * (3 - 2 * ue), de = 2.5 + h * 4, fe = 1 + h * 2.5;
|
|
50
|
+
de *= .9;
|
|
51
|
+
let pe = f({
|
|
52
|
+
x: ce + c * de + ee * fe,
|
|
53
|
+
y: le + l * de + te * fe
|
|
54
54
|
});
|
|
55
|
-
return `M ${e} ${t} Q ${
|
|
55
|
+
return `M ${e} ${t} Q ${pe.x} ${pe.y} ${n} ${r}`;
|
|
56
56
|
}
|
|
57
|
-
let
|
|
58
|
-
|
|
59
|
-
let
|
|
60
|
-
|
|
61
|
-
let
|
|
62
|
-
x: e + ee *
|
|
63
|
-
y: t + te *
|
|
64
|
-
},
|
|
65
|
-
x: n - i * Math.min(
|
|
57
|
+
let p = s * .34;
|
|
58
|
+
p < 20 && (p = 20), p > 46 && (p = 46);
|
|
59
|
+
let m = s * .46;
|
|
60
|
+
m < 22 && (m = 22), m > 70 && (m = 70);
|
|
61
|
+
let ie = {
|
|
62
|
+
x: e + ee * p,
|
|
63
|
+
y: t + te * p
|
|
64
|
+
}, ae = d + i * Math.max(Math.abs(n - d), ne), oe = {
|
|
65
|
+
x: n - i * Math.min(m, Math.abs(ae - n) * .75),
|
|
66
66
|
y: r
|
|
67
|
-
},
|
|
68
|
-
return `M ${e} ${t} C ${
|
|
67
|
+
}, se = f(ie), le = f(oe);
|
|
68
|
+
return `M ${e} ${t} C ${se.x} ${se.y} ${le.x} ${le.y} ${n} ${r}`;
|
|
69
69
|
}
|
|
70
|
-
function
|
|
70
|
+
function ue(e) {
|
|
71
71
|
let t = String(e ?? "").split(/\n/g);
|
|
72
|
-
return
|
|
72
|
+
return ae + Math.max(0, t.length - 1) * (m * 1.2);
|
|
73
73
|
}
|
|
74
|
-
function
|
|
74
|
+
function h({ arc: e, index: t }) {
|
|
75
75
|
let { x: n, y: r } = s(e.path);
|
|
76
76
|
return {
|
|
77
77
|
arc: e,
|
|
@@ -80,47 +80,47 @@ function Qe(e) {
|
|
|
80
80
|
midY: r,
|
|
81
81
|
inlineMarkerX: c(e).x,
|
|
82
82
|
inlineMarkerY: l(e) - 3.5,
|
|
83
|
-
labelHeight:
|
|
83
|
+
labelHeight: ue(e.name)
|
|
84
84
|
};
|
|
85
85
|
}
|
|
86
|
-
function
|
|
86
|
+
function de(e) {
|
|
87
87
|
let { arc: t } = e, n = t.seriesIndex ?? 0;
|
|
88
88
|
return u.value === n || ee.value.includes(n) ? !1 : te(t, n);
|
|
89
89
|
}
|
|
90
|
-
function
|
|
91
|
-
let t = e.inlineMarkerY <
|
|
90
|
+
function fe(e) {
|
|
91
|
+
let t = e.inlineMarkerY < re, n = e.inlineMarkerX < d;
|
|
92
92
|
return t && n ? "TL" : t && !n ? "TR" : !t && n ? "BL" : "BR";
|
|
93
93
|
}
|
|
94
|
-
function
|
|
94
|
+
function pe(e, t) {
|
|
95
95
|
if (t.startsWith("T")) {
|
|
96
96
|
e.sort((e, t) => e.inlineMarkerY - t.inlineMarkerY || e.index - t.index);
|
|
97
97
|
return;
|
|
98
98
|
}
|
|
99
99
|
e.sort((e, t) => t.inlineMarkerY - e.inlineMarkerY || e.index - t.index);
|
|
100
100
|
}
|
|
101
|
-
function
|
|
101
|
+
function me({ side: e, markerX: t, markerY: n, labelY: r, connectorPath: i }) {
|
|
102
102
|
return {
|
|
103
103
|
side: e,
|
|
104
104
|
labelX: e === "left" ? t - 8 : t + 8,
|
|
105
|
-
labelY: r +
|
|
105
|
+
labelY: r + ie,
|
|
106
106
|
textAnchor: e === "left" ? "end" : "start",
|
|
107
107
|
markerX: t,
|
|
108
108
|
markerY: n,
|
|
109
109
|
connectorPath: i
|
|
110
110
|
};
|
|
111
111
|
}
|
|
112
|
-
function
|
|
112
|
+
function he({ candidateList: t, side: n, bandMarkerX: r, startY: i, direction: a }) {
|
|
113
113
|
let o = i;
|
|
114
114
|
t.forEach((t) => {
|
|
115
115
|
let { index: i, midX: s, midY: c, labelHeight: l } = t, u;
|
|
116
116
|
a === "down" ? (u = o, o += l) : (o -= l, u = o);
|
|
117
|
-
let ee = u, te =
|
|
117
|
+
let ee = u, te = le({
|
|
118
118
|
midX: s,
|
|
119
119
|
midY: c,
|
|
120
120
|
bandX: r,
|
|
121
121
|
bandY: ee
|
|
122
122
|
});
|
|
123
|
-
e[i] =
|
|
123
|
+
e[i] = me({
|
|
124
124
|
side: n,
|
|
125
125
|
markerX: r,
|
|
126
126
|
markerY: ee,
|
|
@@ -129,164 +129,164 @@ function Qe(e) {
|
|
|
129
129
|
});
|
|
130
130
|
});
|
|
131
131
|
}
|
|
132
|
-
let
|
|
132
|
+
let ge = ne.map((e, t) => h({
|
|
133
133
|
arc: e,
|
|
134
134
|
index: t
|
|
135
|
-
})).filter(
|
|
135
|
+
})).filter(de), g = {
|
|
136
136
|
TL: [],
|
|
137
137
|
TR: [],
|
|
138
138
|
BL: [],
|
|
139
139
|
BR: []
|
|
140
140
|
};
|
|
141
|
-
return
|
|
142
|
-
|
|
143
|
-
}), Object.keys(
|
|
144
|
-
|
|
145
|
-
}),
|
|
146
|
-
candidateList:
|
|
141
|
+
return ge.forEach((e) => {
|
|
142
|
+
g[fe(e)].push(e);
|
|
143
|
+
}), Object.keys(g).forEach((e) => {
|
|
144
|
+
pe(g[e], e);
|
|
145
|
+
}), he({
|
|
146
|
+
candidateList: g.TL,
|
|
147
147
|
side: "left",
|
|
148
|
-
bandMarkerX:
|
|
149
|
-
startY:
|
|
148
|
+
bandMarkerX: oe,
|
|
149
|
+
startY: f,
|
|
150
150
|
direction: "down"
|
|
151
|
-
}),
|
|
152
|
-
candidateList:
|
|
151
|
+
}), he({
|
|
152
|
+
candidateList: g.TR,
|
|
153
153
|
side: "right",
|
|
154
|
-
bandMarkerX:
|
|
155
|
-
startY:
|
|
154
|
+
bandMarkerX: se,
|
|
155
|
+
startY: f,
|
|
156
156
|
direction: "down"
|
|
157
|
-
}),
|
|
158
|
-
candidateList:
|
|
157
|
+
}), g.BL.length > 1 && he({
|
|
158
|
+
candidateList: g.BL,
|
|
159
159
|
side: "left",
|
|
160
|
-
bandMarkerX:
|
|
161
|
-
startY:
|
|
160
|
+
bandMarkerX: oe,
|
|
161
|
+
startY: p,
|
|
162
162
|
direction: "up"
|
|
163
|
-
}),
|
|
164
|
-
candidateList:
|
|
163
|
+
}), g.BR.length > 1 && he({
|
|
164
|
+
candidateList: g.BR,
|
|
165
165
|
side: "right",
|
|
166
|
-
bandMarkerX:
|
|
167
|
-
startY:
|
|
166
|
+
bandMarkerX: se,
|
|
167
|
+
startY: p,
|
|
168
168
|
direction: "up"
|
|
169
169
|
}), e;
|
|
170
170
|
}) };
|
|
171
171
|
}
|
|
172
172
|
//#endregion
|
|
173
173
|
//#region src/components/vue-ui-donut.vue
|
|
174
|
-
var
|
|
174
|
+
var et = /* @__PURE__ */ e({ default: () => Sn }), tt = ["id"], nt = ["id"], rt = ["id"], it = { style: { position: "relative" } }, at = [
|
|
175
175
|
"xmlns",
|
|
176
176
|
"aria-describedby",
|
|
177
177
|
"viewBox"
|
|
178
|
-
],
|
|
178
|
+
], ot = ["width", "height"], st = { key: 1 }, ct = ["id"], lt = ["stop-color"], ut = ["offset", "stop-color"], dt = ["offset", "stop-color"], ft = ["stop-color"], pt = { key: 2 }, mt = [
|
|
179
179
|
"id",
|
|
180
180
|
"cx",
|
|
181
181
|
"cy"
|
|
182
|
-
],
|
|
182
|
+
], ht = ["stop-color", "stop-opacity"], gt = ["stop-color"], _t = ["id"], vt = ["id"], yt = ["id"], bt = ["flood-color"], xt = ["id"], St = ["flood-color"], Ct = [
|
|
183
183
|
"d",
|
|
184
184
|
"stroke",
|
|
185
185
|
"filter"
|
|
186
|
-
],
|
|
186
|
+
], wt = [
|
|
187
187
|
"d",
|
|
188
188
|
"stroke",
|
|
189
189
|
"filter"
|
|
190
|
-
],
|
|
190
|
+
], Tt = [
|
|
191
191
|
"cx",
|
|
192
192
|
"cy",
|
|
193
193
|
"r",
|
|
194
194
|
"fill",
|
|
195
195
|
"filter"
|
|
196
|
-
],
|
|
196
|
+
], Et = { key: 6 }, Dt = ["stroke", "d"], Ot = [
|
|
197
197
|
"d",
|
|
198
198
|
"fill",
|
|
199
199
|
"stroke",
|
|
200
200
|
"stroke-width",
|
|
201
201
|
"filter"
|
|
202
|
-
],
|
|
202
|
+
], kt = { key: 0 }, At = [
|
|
203
203
|
"d",
|
|
204
204
|
"fill",
|
|
205
205
|
"stroke",
|
|
206
206
|
"stroke-width",
|
|
207
207
|
"filter"
|
|
208
|
-
],
|
|
208
|
+
], jt = { key: 0 }, Mt = ["stroke", "d"], Nt = { key: 0 }, Pt = [
|
|
209
209
|
"d",
|
|
210
210
|
"stroke",
|
|
211
211
|
"stroke-width",
|
|
212
212
|
"filter"
|
|
213
|
-
],
|
|
213
|
+
], Ft = { key: 1 }, It = [
|
|
214
214
|
"d",
|
|
215
215
|
"fill",
|
|
216
216
|
"stroke",
|
|
217
217
|
"stroke-width",
|
|
218
218
|
"filter"
|
|
219
|
-
],
|
|
219
|
+
], Lt = [
|
|
220
220
|
"d",
|
|
221
221
|
"fill",
|
|
222
222
|
"stroke",
|
|
223
223
|
"stroke-width",
|
|
224
224
|
"filter"
|
|
225
|
-
],
|
|
225
|
+
], Rt = { key: 1 }, zt = [
|
|
226
226
|
"cx",
|
|
227
227
|
"cy",
|
|
228
228
|
"r",
|
|
229
229
|
"fill",
|
|
230
230
|
"stroke",
|
|
231
231
|
"stroke-width"
|
|
232
|
-
],
|
|
232
|
+
], Bt = [
|
|
233
233
|
"cx",
|
|
234
234
|
"cy",
|
|
235
235
|
"r",
|
|
236
236
|
"fill",
|
|
237
237
|
"stroke",
|
|
238
238
|
"stroke-width"
|
|
239
|
-
],
|
|
239
|
+
], Vt = { key: 0 }, Ht = [
|
|
240
240
|
"d",
|
|
241
241
|
"fill",
|
|
242
242
|
"stroke",
|
|
243
243
|
"stroke-width"
|
|
244
|
-
],
|
|
244
|
+
], Ut = [
|
|
245
245
|
"cx",
|
|
246
246
|
"cy",
|
|
247
247
|
"r",
|
|
248
248
|
"stroke"
|
|
249
|
-
],
|
|
249
|
+
], Wt = [
|
|
250
250
|
"cx",
|
|
251
251
|
"cy",
|
|
252
252
|
"r",
|
|
253
253
|
"fill"
|
|
254
|
-
],
|
|
254
|
+
], Gt = [
|
|
255
255
|
"cx",
|
|
256
256
|
"cy",
|
|
257
257
|
"r"
|
|
258
|
-
],
|
|
258
|
+
], Kt = { key: 0 }, qt = [
|
|
259
259
|
"d",
|
|
260
260
|
"stroke",
|
|
261
261
|
"fill",
|
|
262
262
|
"onMouseenter",
|
|
263
263
|
"onMouseleave",
|
|
264
264
|
"onClick"
|
|
265
|
-
],
|
|
265
|
+
], Jt = { key: 1 }, Yt = [
|
|
266
266
|
"cx",
|
|
267
267
|
"cy",
|
|
268
268
|
"r"
|
|
269
|
-
],
|
|
269
|
+
], Xt = [
|
|
270
270
|
"x",
|
|
271
271
|
"y",
|
|
272
272
|
"fill",
|
|
273
273
|
"font-size"
|
|
274
|
-
],
|
|
274
|
+
], Zt = [
|
|
275
275
|
"x",
|
|
276
276
|
"y",
|
|
277
277
|
"fill",
|
|
278
278
|
"font-size"
|
|
279
|
-
],
|
|
279
|
+
], Qt = [
|
|
280
280
|
"x",
|
|
281
281
|
"y",
|
|
282
282
|
"fill",
|
|
283
283
|
"font-size"
|
|
284
|
-
],
|
|
284
|
+
], $t = [
|
|
285
285
|
"x",
|
|
286
286
|
"y",
|
|
287
287
|
"fill",
|
|
288
288
|
"font-size"
|
|
289
|
-
],
|
|
289
|
+
], en = ["filter", "opacity"], tn = { key: 0 }, nn = ["x", "y"], rn = { key: 1 }, an = [
|
|
290
290
|
"cx",
|
|
291
291
|
"cy",
|
|
292
292
|
"fill",
|
|
@@ -295,7 +295,7 @@ var $e = /* @__PURE__ */ e({ default: () => xn }), et = ["id"], tt = ["id"], nt
|
|
|
295
295
|
"onClick",
|
|
296
296
|
"onMouseenter",
|
|
297
297
|
"onMouseleave"
|
|
298
|
-
],
|
|
298
|
+
], on = [
|
|
299
299
|
"text-anchor",
|
|
300
300
|
"x",
|
|
301
301
|
"y",
|
|
@@ -303,7 +303,7 @@ var $e = /* @__PURE__ */ e({ default: () => xn }), et = ["id"], tt = ["id"], nt
|
|
|
303
303
|
"onMouseenter",
|
|
304
304
|
"onMouseleave",
|
|
305
305
|
"innerHTML"
|
|
306
|
-
],
|
|
306
|
+
], sn = [
|
|
307
307
|
"text-anchor",
|
|
308
308
|
"x",
|
|
309
309
|
"y",
|
|
@@ -312,7 +312,7 @@ var $e = /* @__PURE__ */ e({ default: () => xn }), et = ["id"], tt = ["id"], nt
|
|
|
312
312
|
"onClick",
|
|
313
313
|
"onMouseenter",
|
|
314
314
|
"onMouseleave"
|
|
315
|
-
],
|
|
315
|
+
], cn = [
|
|
316
316
|
"text-anchor",
|
|
317
317
|
"x",
|
|
318
318
|
"y",
|
|
@@ -322,7 +322,7 @@ var $e = /* @__PURE__ */ e({ default: () => xn }), et = ["id"], tt = ["id"], nt
|
|
|
322
322
|
"onMouseenter",
|
|
323
323
|
"onMouseleave",
|
|
324
324
|
"innerHTML"
|
|
325
|
-
],
|
|
325
|
+
], ln = [
|
|
326
326
|
"cx",
|
|
327
327
|
"cy",
|
|
328
328
|
"fill",
|
|
@@ -331,7 +331,7 @@ var $e = /* @__PURE__ */ e({ default: () => xn }), et = ["id"], tt = ["id"], nt
|
|
|
331
331
|
"onClick",
|
|
332
332
|
"onMouseenter",
|
|
333
333
|
"onMouseleave"
|
|
334
|
-
],
|
|
334
|
+
], un = [
|
|
335
335
|
"text-anchor",
|
|
336
336
|
"x",
|
|
337
337
|
"y",
|
|
@@ -339,7 +339,7 @@ var $e = /* @__PURE__ */ e({ default: () => xn }), et = ["id"], tt = ["id"], nt
|
|
|
339
339
|
"onMouseenter",
|
|
340
340
|
"onMouseleave",
|
|
341
341
|
"innerHTML"
|
|
342
|
-
],
|
|
342
|
+
], dn = [
|
|
343
343
|
"text-anchor",
|
|
344
344
|
"x",
|
|
345
345
|
"y",
|
|
@@ -348,7 +348,7 @@ var $e = /* @__PURE__ */ e({ default: () => xn }), et = ["id"], tt = ["id"], nt
|
|
|
348
348
|
"onClick",
|
|
349
349
|
"onMouseenter",
|
|
350
350
|
"onMouseleave"
|
|
351
|
-
],
|
|
351
|
+
], fn = [
|
|
352
352
|
"text-anchor",
|
|
353
353
|
"x",
|
|
354
354
|
"y",
|
|
@@ -358,15 +358,15 @@ var $e = /* @__PURE__ */ e({ default: () => xn }), et = ["id"], tt = ["id"], nt
|
|
|
358
358
|
"onMouseenter",
|
|
359
359
|
"onMouseleave",
|
|
360
360
|
"innerHTML"
|
|
361
|
-
],
|
|
361
|
+
], pn = { key: 2 }, mn = [
|
|
362
362
|
"x",
|
|
363
363
|
"y",
|
|
364
364
|
"width"
|
|
365
|
-
],
|
|
365
|
+
], hn = [
|
|
366
366
|
"x",
|
|
367
367
|
"y",
|
|
368
368
|
"width"
|
|
369
|
-
],
|
|
369
|
+
], gn = {
|
|
370
370
|
key: 0,
|
|
371
371
|
style: {
|
|
372
372
|
position: "absolute",
|
|
@@ -376,13 +376,13 @@ var $e = /* @__PURE__ */ e({ default: () => xn }), et = ["id"], tt = ["id"], nt
|
|
|
376
376
|
},
|
|
377
377
|
"data-dom-to-png-ignore": "",
|
|
378
378
|
"aria-hidden": "true"
|
|
379
|
-
},
|
|
379
|
+
}, _n = {
|
|
380
380
|
key: 5,
|
|
381
381
|
class: "vue-data-ui-watermark"
|
|
382
|
-
},
|
|
382
|
+
}, vn = ["id"], yn = ["onClick"], bn = {
|
|
383
383
|
key: 8,
|
|
384
384
|
class: "vue-ui-donut-hollow"
|
|
385
|
-
},
|
|
385
|
+
}, xn = ["innerHTML"], Sn = /*#__PURE__*/ Ce({
|
|
386
386
|
__name: "vue-ui-donut",
|
|
387
387
|
props: {
|
|
388
388
|
config: {
|
|
@@ -403,30 +403,30 @@ var $e = /* @__PURE__ */ e({ default: () => xn }), et = ["id"], tt = ["id"], nt
|
|
|
403
403
|
"selectDatapoint",
|
|
404
404
|
"copyAlt"
|
|
405
405
|
],
|
|
406
|
-
setup(e, { expose:
|
|
407
|
-
let
|
|
406
|
+
setup(e, { expose: Ce, emit: et }) {
|
|
407
|
+
let Sn = ze(() => import("./Tooltip-CxOrWlFy.js")), Cn = ze(() => import("./BaseIcon-C2qlyHc7.js").then((e) => e.n)), wn = ze(() => import("./vue-ui-accordion-YyosvEPo.js").then((e) => e.n)), Tn = ze(() => import("./DataTable-D9NvewTT.js")), En = ze(() => import("./PenAndPaper-pcgwlYr2.js").then((e) => e.t)), Dn = ze(() => import("./UserOptions-16uF1ayB.js").then((e) => e.n)), On = ze(() => import("./PackageVersion-DW7zwRcm.js").then((e) => e.t)), kn = ze(() => import("./BaseDraggableDialog-DcfGlH8A.js").then((e) => e.n)), { vue_ui_donut: An } = me(), { isThemeValid: jn, warnInvalidTheme: Mn } = ye(), Nn = Ye(), j = e, Pn = v({
|
|
408
408
|
get() {
|
|
409
|
-
return !!
|
|
409
|
+
return !!j.dataset && j.dataset.length;
|
|
410
410
|
},
|
|
411
411
|
set(e) {
|
|
412
412
|
return e;
|
|
413
413
|
}
|
|
414
|
-
}),
|
|
414
|
+
}), M = Ke(null), Fn = E(null), In = E(null), Ln = E(null), Rn = Ke(null), zn = Ke(null), Bn = Ke(null), Vn = Ke(null), Hn = Ke(null), Un = Ke(null), Wn = E(0), Gn = E(0), Kn = E(0), qn = E(!1), Jn = E(null), Yn = E(null), Xn = E(!1), Zn = E(!1), N = E(null), Qn = E({
|
|
415
415
|
x: 0,
|
|
416
416
|
y: 0
|
|
417
|
-
}), $n =
|
|
417
|
+
}), $n = E("pointer"), er = E(!1), tr = v({
|
|
418
418
|
get: () => L.value.style.chart.layout.labels.percentage.fontSize,
|
|
419
419
|
set: (e) => e
|
|
420
|
-
}), P =
|
|
420
|
+
}), P = v({
|
|
421
421
|
get: () => L.value.style.chart.layout.labels.name.fontSize,
|
|
422
422
|
set: (e) => e
|
|
423
|
-
}), nr =
|
|
423
|
+
}), nr = v({
|
|
424
424
|
get: () => L.value.style.chart.layout.labels.dataLabels.smallArcClusterFontSize,
|
|
425
425
|
set: (e) => e
|
|
426
426
|
}), rr = !1, ir = () => {
|
|
427
427
|
!L.value.autoSize || rr || (rr = !0, requestAnimationFrame(() => {
|
|
428
428
|
rr = !1;
|
|
429
|
-
let e = L.value, t =
|
|
429
|
+
let e = L.value, t = Fn.value, n = z.value;
|
|
430
430
|
if (!e.autoSize || !t || !n) return;
|
|
431
431
|
let [r, i, a, o] = n.getAttribute("viewBox").split(" ").map(Number), s = {
|
|
432
432
|
x: r,
|
|
@@ -455,7 +455,7 @@ var $e = /* @__PURE__ */ e({ default: () => xn }), et = ["id"], tt = ["id"], nt
|
|
|
455
455
|
];
|
|
456
456
|
c.map((e) => t.querySelectorAll(e.selector).length).reduce((e, t) => e + t, 0) !== 0 && c.forEach(({ selector: e, baseSize: n, minSize: r, sizeRef: i }) => {
|
|
457
457
|
t.querySelectorAll(e).forEach((e) => {
|
|
458
|
-
i.value =
|
|
458
|
+
i.value = se({
|
|
459
459
|
el: e,
|
|
460
460
|
bounds: s,
|
|
461
461
|
currentFontSize: n,
|
|
@@ -467,12 +467,12 @@ var $e = /* @__PURE__ */ e({ default: () => xn }), et = ["id"], tt = ["id"], nt
|
|
|
467
467
|
});
|
|
468
468
|
}));
|
|
469
469
|
};
|
|
470
|
-
|
|
471
|
-
|
|
470
|
+
We(async () => {
|
|
471
|
+
qn.value = !0, sr(), requestAnimationFrame(ir);
|
|
472
472
|
});
|
|
473
473
|
let ar;
|
|
474
|
-
|
|
475
|
-
|
|
474
|
+
We(() => {
|
|
475
|
+
M.value && (ar = new ResizeObserver((e) => {
|
|
476
476
|
for (let t of e) {
|
|
477
477
|
let { width: e, height: n } = t.contentRect;
|
|
478
478
|
if (e > 0 && n > 0) {
|
|
@@ -480,80 +480,80 @@ var $e = /* @__PURE__ */ e({ default: () => xn }), et = ["id"], tt = ["id"], nt
|
|
|
480
480
|
break;
|
|
481
481
|
}
|
|
482
482
|
}
|
|
483
|
-
}), ar.observe(
|
|
484
|
-
}),
|
|
483
|
+
}), ar.observe(M.value.parentElement));
|
|
484
|
+
}), Ue(() => {
|
|
485
485
|
ar?.disconnect();
|
|
486
|
-
}),
|
|
487
|
-
|
|
486
|
+
}), Ue(() => {
|
|
487
|
+
Bn.value && (Vn.value && Bn.value.unobserve(Vn.value), Bn.value.disconnect());
|
|
488
488
|
});
|
|
489
|
-
let or =
|
|
489
|
+
let or = v(() => !!L.value.debug);
|
|
490
490
|
function sr() {
|
|
491
|
-
if (
|
|
491
|
+
if (oe(j.dataset) ? (t({
|
|
492
492
|
componentName: "VueUiDonut",
|
|
493
493
|
type: "dataset",
|
|
494
494
|
debug: or.value
|
|
495
|
-
}),
|
|
496
|
-
|
|
495
|
+
}), Pn.value = !1, gr.value = !0) : (j.dataset.forEach((e, n) => {
|
|
496
|
+
p({
|
|
497
497
|
datasetObject: e,
|
|
498
498
|
requiredAttributes: ["name", "values"]
|
|
499
499
|
}).forEach((e) => {
|
|
500
|
-
|
|
500
|
+
t({
|
|
501
501
|
componentName: "VueUiDonut",
|
|
502
502
|
type: "datasetSerieAttribute",
|
|
503
503
|
property: e,
|
|
504
|
-
index:
|
|
504
|
+
index: n,
|
|
505
505
|
debug: or.value
|
|
506
|
-
}),
|
|
506
|
+
}), Pn.value = !1, gr.value = !0;
|
|
507
507
|
});
|
|
508
|
-
}),
|
|
509
|
-
(!e.name || e.name === "") &&
|
|
508
|
+
}), j.dataset.forEach((e, n) => {
|
|
509
|
+
(!e.name || e.name === "") && t({
|
|
510
510
|
componentName: "VueUiDonut",
|
|
511
511
|
type: "datasetAttributeEmpty",
|
|
512
512
|
property: "name",
|
|
513
|
-
index:
|
|
513
|
+
index: n,
|
|
514
514
|
debug: or.value
|
|
515
515
|
});
|
|
516
|
-
})),
|
|
517
|
-
let e =
|
|
518
|
-
let { width: e, height: t } =
|
|
519
|
-
chart:
|
|
520
|
-
title: L.value.style.chart.title.text ?
|
|
521
|
-
legend: L.value.style.chart.legend.show ?
|
|
522
|
-
source:
|
|
523
|
-
noTitle:
|
|
516
|
+
})), oe(j.dataset) || (gr.value = L.value.loading), L.value.responsive) {
|
|
517
|
+
let e = we(() => {
|
|
518
|
+
let { width: e, height: t } = Te({
|
|
519
|
+
chart: M.value,
|
|
520
|
+
title: L.value.style.chart.title.text ? Rn.value : null,
|
|
521
|
+
legend: L.value.style.chart.legend.show ? zn.value : null,
|
|
522
|
+
source: Hn.value,
|
|
523
|
+
noTitle: Un.value,
|
|
524
524
|
padding: L.value.autoSize ? void 0 : Dr.value
|
|
525
525
|
});
|
|
526
526
|
requestAnimationFrame(() => {
|
|
527
527
|
V.value.width = e, V.value.height = t, ir();
|
|
528
528
|
});
|
|
529
529
|
});
|
|
530
|
-
|
|
530
|
+
Bn.value && (Vn.value && Bn.value.unobserve(Vn.value), Bn.value.disconnect()), Bn.value = new ResizeObserver(e), Vn.value = M.value.parentNode, Bn.value.observe(Vn.value);
|
|
531
531
|
}
|
|
532
532
|
}
|
|
533
|
-
let F =
|
|
533
|
+
let F = E(i()), cr = E(!1), lr = E(""), I = E(null), ur = E(0);
|
|
534
534
|
function dr() {
|
|
535
|
-
let e =
|
|
536
|
-
userConfig:
|
|
537
|
-
defaultConfig:
|
|
535
|
+
let e = ve({
|
|
536
|
+
userConfig: j.config,
|
|
537
|
+
defaultConfig: An
|
|
538
538
|
}), t = {}, n = e.theme;
|
|
539
539
|
if (!n) t = e;
|
|
540
|
-
else if (!
|
|
540
|
+
else if (!jn.value(e)) Mn(e), t = e;
|
|
541
541
|
else {
|
|
542
|
-
let r =
|
|
543
|
-
userConfig:
|
|
542
|
+
let r = ve({
|
|
543
|
+
userConfig: Me[n] || j.config,
|
|
544
544
|
defaultConfig: e
|
|
545
545
|
});
|
|
546
546
|
t = {
|
|
547
|
-
...
|
|
548
|
-
userConfig:
|
|
547
|
+
...ve({
|
|
548
|
+
userConfig: j.config,
|
|
549
549
|
defaultConfig: r
|
|
550
550
|
}),
|
|
551
|
-
customPalette: e.customPalette.length ? e.customPalette :
|
|
551
|
+
customPalette: e.customPalette.length ? e.customPalette : ne[n] || s
|
|
552
552
|
};
|
|
553
553
|
}
|
|
554
554
|
return t;
|
|
555
555
|
}
|
|
556
|
-
let L =
|
|
556
|
+
let L = E(dr()), fr = v(() => L.value.userOptions.useCursorPointer), pr = v(() => o({
|
|
557
557
|
defaultConfig: {
|
|
558
558
|
useCssAnimation: !1,
|
|
559
559
|
table: { show: !1 },
|
|
@@ -581,11 +581,11 @@ var $e = /* @__PURE__ */ e({ default: () => xn }), et = ["id"], tt = ["id"], nt
|
|
|
581
581
|
} }
|
|
582
582
|
},
|
|
583
583
|
userConfig: L.value.skeletonConfig ?? {}
|
|
584
|
-
})), { loading: mr, FINAL_DATASET: hr, manualLoading: gr, skeletonDataset: _r } =
|
|
585
|
-
...
|
|
584
|
+
})), { loading: mr, FINAL_DATASET: hr, manualLoading: gr, skeletonDataset: _r } = ge({
|
|
585
|
+
...Je(j),
|
|
586
586
|
FINAL_CONFIG: L,
|
|
587
587
|
prepareConfig: dr,
|
|
588
|
-
skeletonDataset:
|
|
588
|
+
skeletonDataset: j.config?.skeletonDataset ?? [
|
|
589
589
|
{
|
|
590
590
|
name: "",
|
|
591
591
|
values: [3],
|
|
@@ -602,37 +602,37 @@ var $e = /* @__PURE__ */ e({ default: () => xn }), et = ["id"], tt = ["id"], nt
|
|
|
602
602
|
color: "#CACACA"
|
|
603
603
|
}
|
|
604
604
|
],
|
|
605
|
-
skeletonConfig:
|
|
605
|
+
skeletonConfig: o({
|
|
606
606
|
defaultConfig: L.value,
|
|
607
607
|
userConfig: pr.value
|
|
608
608
|
})
|
|
609
|
-
}), R =
|
|
609
|
+
}), R = E(!0), vr = E(0), yr = E(!1), br = null;
|
|
610
610
|
function xr(e = 1e3) {
|
|
611
611
|
return new Promise((t) => {
|
|
612
612
|
let n = performance.now();
|
|
613
613
|
function r(i) {
|
|
614
614
|
let a = i - n, o = Math.min(a / e, 1);
|
|
615
|
-
vr.value =
|
|
615
|
+
vr.value = c(o), o < 1 ? br = requestAnimationFrame(r) : (vr.value = 1, br = null, t());
|
|
616
616
|
}
|
|
617
617
|
br !== null && cancelAnimationFrame(br), vr.value = 0, br = requestAnimationFrame(r);
|
|
618
618
|
});
|
|
619
619
|
}
|
|
620
|
-
|
|
620
|
+
Ze(() => mr.value, async (e) => {
|
|
621
621
|
if (e || yr.value) return;
|
|
622
622
|
let t = hr.value === _r, n = L.value.startAnimation?.show;
|
|
623
623
|
!t && n ? (yr.value = !0, await xr(L.value.startAnimation.durationMs || 1e3)) : vr.value = 1, R.value = !1;
|
|
624
624
|
}, { immediate: !0 });
|
|
625
|
-
let { userOptionsVisible: Sr, setUserOptionsVisibility: Cr, keepUserOptionState: wr } =
|
|
625
|
+
let { userOptionsVisible: Sr, setUserOptionsVisibility: Cr, keepUserOptionState: wr } = Oe({ config: L.value }), { svgRef: z } = ke({ config: L.value.style.chart.title });
|
|
626
626
|
function Tr() {
|
|
627
627
|
Cr(!0);
|
|
628
628
|
}
|
|
629
629
|
function Er() {
|
|
630
630
|
Cr(!1);
|
|
631
631
|
}
|
|
632
|
-
|
|
633
|
-
mr.value || (L.value = dr()), Sr.value = !L.value.userOptions.showOnChartHover, sr(),
|
|
632
|
+
Ze(() => j.config, (e) => {
|
|
633
|
+
mr.value || (L.value = dr()), Sr.value = !L.value.userOptions.showOnChartHover, sr(), Wn.value += 1, Gn.value += 1, Kn.value += 1, B.value.dataLabels.show = L.value.style.chart.layout.labels.dataLabels.show, B.value.showTable = L.value.table.show, B.value.showTooltip = L.value.style.chart.tooltip.show, V.value.height = L.value.style.chart.height, V.value.width = L.value.style.chart.width;
|
|
634
634
|
}, { deep: !0 });
|
|
635
|
-
let Dr =
|
|
635
|
+
let Dr = v(() => {
|
|
636
636
|
let { top: e, right: t, bottom: n, left: r } = L.value.style.chart.padding;
|
|
637
637
|
return {
|
|
638
638
|
css: `padding:${e}px ${t}px ${n}px ${r}px`,
|
|
@@ -641,36 +641,36 @@ var $e = /* @__PURE__ */ e({ default: () => xn }), et = ["id"], tt = ["id"], nt
|
|
|
641
641
|
bottom: n,
|
|
642
642
|
left: r
|
|
643
643
|
};
|
|
644
|
-
}), { isPrinting: Or, isImaging: kr, generatePdf: Ar, generateImage: jr } =
|
|
644
|
+
}), { isPrinting: Or, isImaging: kr, generatePdf: Ar, generateImage: jr } = he({
|
|
645
645
|
elementId: `donut__${F.value}`,
|
|
646
646
|
fileName: L.value.style.chart.title.text || "vue-ui-donut",
|
|
647
647
|
options: L.value.userOptions.print
|
|
648
|
-
}), Mr =
|
|
648
|
+
}), Mr = v(() => L.value.userOptions.show && !L.value.style.chart.title.text), Nr = v(() => u(L.value.customPalette)), B = E({
|
|
649
649
|
dataLabels: { show: L.value.style.chart.layout.labels.dataLabels.show },
|
|
650
650
|
showTable: L.value.table.show,
|
|
651
651
|
showTooltip: L.value.style.chart.tooltip.show
|
|
652
652
|
});
|
|
653
|
-
|
|
653
|
+
Ze(L, () => {
|
|
654
654
|
B.value = {
|
|
655
655
|
dataLabels: { show: L.value.style.chart.layout.labels.dataLabels.show },
|
|
656
656
|
showTable: L.value.table.show,
|
|
657
657
|
showTooltip: L.value.style.chart.tooltip.show
|
|
658
658
|
};
|
|
659
659
|
}, { immediate: !0 });
|
|
660
|
-
let V =
|
|
660
|
+
let V = E({
|
|
661
661
|
height: L.value.style.chart.height,
|
|
662
662
|
width: L.value.style.chart.width
|
|
663
|
-
}), Pr =
|
|
663
|
+
}), Pr = v(() => {
|
|
664
664
|
if (L.value.pie) return G.value;
|
|
665
665
|
let e = L.value.style.chart.layout.donut.strokeWidth / 512, t = Math.min(V.value.width, V.value.height) * e, n = t > G.value ? G.value : t;
|
|
666
666
|
return Math.max(n, 12 * (1 + e));
|
|
667
|
-
}), Fr =
|
|
667
|
+
}), Fr = et, H = v(() => hr.value.sort((e, t) => {
|
|
668
668
|
let n = Array.isArray(e.values) ? e.values.reduce((e, t) => e + t, 0) : e.value ?? 0, r = Array.isArray(t.values) ? t.values.reduce((e, t) => e + t, 0) : t.value ?? 0;
|
|
669
669
|
return e.ghost && !t.ghost ? 1 : t.ghost && !e.ghost ? -1 : r - n;
|
|
670
670
|
}).map((e, t) => ({
|
|
671
671
|
name: e.name,
|
|
672
|
-
color:
|
|
673
|
-
value:
|
|
672
|
+
color: re(e.color) || Nr.value[t] || s[t] || s[t % s.length],
|
|
673
|
+
value: de(e.values.reduce((e, t) => e + t, 0)),
|
|
674
674
|
absoluteValues: e.values,
|
|
675
675
|
comment: e.comment || "",
|
|
676
676
|
patternIndex: t,
|
|
@@ -678,11 +678,11 @@ var $e = /* @__PURE__ */ e({ default: () => xn }), et = ["id"], tt = ["id"], nt
|
|
|
678
678
|
ghost: !1,
|
|
679
679
|
pattern: `pattern_${F.value}_${t}`
|
|
680
680
|
})));
|
|
681
|
-
|
|
681
|
+
Ze(() => j.dataset, (e) => {
|
|
682
682
|
Array.isArray(e) && e.length > 0 && (gr.value = !1);
|
|
683
683
|
}, { immediate: !0 });
|
|
684
|
-
let U =
|
|
685
|
-
|
|
684
|
+
let U = Ke(H.value);
|
|
685
|
+
Ze(() => H.value, (e) => {
|
|
686
686
|
U.value = e, requestAnimationFrame(ir);
|
|
687
687
|
});
|
|
688
688
|
function Ir() {
|
|
@@ -692,7 +692,7 @@ var $e = /* @__PURE__ */ e({ default: () => xn }), et = ["id"], tt = ["id"], nt
|
|
|
692
692
|
value: e.value
|
|
693
693
|
}));
|
|
694
694
|
}
|
|
695
|
-
let W =
|
|
695
|
+
let W = E([]), Lr = E(!1), Rr = E(null);
|
|
696
696
|
function zr() {
|
|
697
697
|
Fr("selectLegend", qr.value.map((e) => ({
|
|
698
698
|
name: e.name,
|
|
@@ -700,7 +700,7 @@ var $e = /* @__PURE__ */ e({ default: () => xn }), et = ["id"], tt = ["id"], nt
|
|
|
700
700
|
value: e.value
|
|
701
701
|
})));
|
|
702
702
|
}
|
|
703
|
-
function Br({ from: e, to: t, duration: n, onUpdate: r, onDone: i, easing: a =
|
|
703
|
+
function Br({ from: e, to: t, duration: n, onUpdate: r, onDone: i, easing: a = c }) {
|
|
704
704
|
let o = performance.now();
|
|
705
705
|
function s(c) {
|
|
706
706
|
let l = Math.min((c - o) / n, 1), u = a(l);
|
|
@@ -778,7 +778,7 @@ var $e = /* @__PURE__ */ e({ default: () => xn }), et = ["id"], tt = ["id"], nt
|
|
|
778
778
|
let t = Ur(e);
|
|
779
779
|
t !== null && (W.value.includes(t.seriesIndex) || Hr(t.seriesIndex));
|
|
780
780
|
}
|
|
781
|
-
let Kr =
|
|
781
|
+
let Kr = v(() => hr.value.reduce((e, t) => e + t.values.reduce((e, t) => e + t, 0), 0)), qr = v(() => {
|
|
782
782
|
if (R.value && !mr.value) {
|
|
783
783
|
let e = vr.value, t = H.value.map((t) => ({
|
|
784
784
|
...t,
|
|
@@ -801,18 +801,18 @@ var $e = /* @__PURE__ */ e({ default: () => xn }), et = ["id"], tt = ["id"], nt
|
|
|
801
801
|
...e,
|
|
802
802
|
seriesIndex: t
|
|
803
803
|
})).filter((e, t) => !W.value.includes(t));
|
|
804
|
-
}), Jr =
|
|
804
|
+
}), Jr = v(() => hr.value.map((e, t) => {
|
|
805
805
|
let n = (e.values || []).reduce((e, t) => e + t, 0), r = n / hr.value.map((e) => (e.values || []).reduce((e, t) => e + t, 0)).reduce((e, t) => e + t, 0);
|
|
806
806
|
return {
|
|
807
807
|
name: e.name,
|
|
808
|
-
color:
|
|
808
|
+
color: re(e.color) || Nr.value[t] || s[t] || s[t % s.length],
|
|
809
809
|
value: n,
|
|
810
810
|
shape: "circle",
|
|
811
811
|
patternIndex: t,
|
|
812
812
|
proportion: r
|
|
813
813
|
};
|
|
814
814
|
}).map((e, t) => {
|
|
815
|
-
let n =
|
|
815
|
+
let n = m(L.value.style.chart.layout.labels.value.formatter, e.value, a({
|
|
816
816
|
p: L.value.style.chart.layout.labels.dataLabels.prefix,
|
|
817
817
|
v: e.value,
|
|
818
818
|
s: L.value.style.chart.layout.labels.dataLabels.suffix,
|
|
@@ -820,7 +820,7 @@ var $e = /* @__PURE__ */ e({ default: () => xn }), et = ["id"], tt = ["id"], nt
|
|
|
820
820
|
}), {
|
|
821
821
|
datapoint: e,
|
|
822
822
|
index: t
|
|
823
|
-
}), r =
|
|
823
|
+
}), r = m(L.value.style.chart.layout.labels.percentage.formatter, ai(e), a({
|
|
824
824
|
v: ai(e),
|
|
825
825
|
s: "%",
|
|
826
826
|
r: L.value.style.chart.legend.roundingPercentage
|
|
@@ -838,17 +838,17 @@ var $e = /* @__PURE__ */ e({ default: () => xn }), et = ["id"], tt = ["id"], nt
|
|
|
838
838
|
isSegregated: W.value.includes(t),
|
|
839
839
|
display: `${e.name}${L.value.style.chart.legend.showPercentage || L.value.style.chart.legend.showValue ? ": " : ""}${i}`
|
|
840
840
|
};
|
|
841
|
-
})), Yr =
|
|
841
|
+
})), Yr = v(() => ({
|
|
842
842
|
cy: "donut-div-legend",
|
|
843
843
|
backgroundColor: L.value.style.chart.legend.backgroundColor,
|
|
844
844
|
color: L.value.style.chart.legend.color,
|
|
845
845
|
fontSize: L.value.style.chart.legend.fontSize,
|
|
846
846
|
paddingBottom: 12,
|
|
847
847
|
fontWeight: L.value.style.chart.legend.bold ? "bold" : ""
|
|
848
|
-
})), G =
|
|
848
|
+
})), G = v(() => {
|
|
849
849
|
let e = L.value.style.chart.layout.donut.radiusRatio, t = Math.max(.1, Math.min(.50001, e)), n = Math.min(V.value.width * t, V.value.height * t);
|
|
850
850
|
return Math.max(12, n);
|
|
851
|
-
}), K =
|
|
851
|
+
}), K = v(() => r({ series: qr.value }, V.value.width / 2, V.value.height / 2, G.value, G.value, 1.99999, 2, 1, 360, 105.25, Pr.value)), Xr = v(() => Math.abs(qr.value.map((e) => e.value).reduce((e, t) => e + t, 0)) > 0), Zr = v(() => r({ series: [{
|
|
852
852
|
value: 1,
|
|
853
853
|
color: L.value.style.chart.layout.donut.emptyFill,
|
|
854
854
|
name: "_",
|
|
@@ -856,9 +856,9 @@ var $e = /* @__PURE__ */ e({ default: () => xn }), et = ["id"], tt = ["id"], nt
|
|
|
856
856
|
patternIndex: -1,
|
|
857
857
|
ghost: !1,
|
|
858
858
|
absoluteValues: [1]
|
|
859
|
-
}] }, V.value.width / 2, V.value.height / 2, G.value, G.value, 1.99999, 2, 1, 360, 105.25, Pr.value)), q =
|
|
859
|
+
}] }, V.value.width / 2, V.value.height / 2, G.value, G.value, 1.99999, 2, 1, 360, 105.25, Pr.value)), q = v(() => K.value.filter((e) => !e.ghost)), J = v(() => {
|
|
860
860
|
let e = Math.max(...qr.value.map((e) => e.value));
|
|
861
|
-
return
|
|
861
|
+
return ae({
|
|
862
862
|
series: qr.value.map((t) => t.value / e),
|
|
863
863
|
center: {
|
|
864
864
|
x: V.value.width / 2,
|
|
@@ -872,13 +872,13 @@ var $e = /* @__PURE__ */ e({ default: () => xn }), et = ["id"], tt = ["id"], nt
|
|
|
872
872
|
return e.x > V.value.width / 2 + 6 ? "start" : e.x < V.value.width / 2 - 6 ? "end" : "middle";
|
|
873
873
|
}
|
|
874
874
|
function $r(e) {
|
|
875
|
-
return e.middlePoint.y > V.value.height / 2 ?
|
|
875
|
+
return e.middlePoint.y > V.value.height / 2 ? n({
|
|
876
876
|
initX: e.middlePoint.x,
|
|
877
877
|
initY: e.middlePoint.y,
|
|
878
878
|
offset: 100,
|
|
879
879
|
centerX: V.value.width / 2,
|
|
880
880
|
centerY: V.value.height / 2
|
|
881
|
-
}).y :
|
|
881
|
+
}).y : n({
|
|
882
882
|
initX: e.middlePoint.x,
|
|
883
883
|
initY: e.middlePoint.y,
|
|
884
884
|
offset: 0,
|
|
@@ -893,15 +893,15 @@ var $e = /* @__PURE__ */ e({ default: () => xn }), et = ["id"], tt = ["id"], nt
|
|
|
893
893
|
let n = L.value.style.chart.layout.labels.dataLabels.hideUnderValue, r = L.value.style.chart.layout.labels.dataLabels.smallArcClusterThreshold, i = (ri.value[t] ?? e.proportion ?? 0) * 100;
|
|
894
894
|
return i > n && i <= r;
|
|
895
895
|
}
|
|
896
|
-
let { smallArcLayoutsClassic: X } =
|
|
896
|
+
let { smallArcLayoutsClassic: X } = $e({
|
|
897
897
|
FINAL_CONFIG: L,
|
|
898
898
|
noGhostDonut: q,
|
|
899
899
|
svg: V,
|
|
900
900
|
padding: Dr,
|
|
901
901
|
labels_inline_fontSize: nr,
|
|
902
902
|
minSize: G,
|
|
903
|
-
findArcMidpoint:
|
|
904
|
-
calcMarkerOffsetX:
|
|
903
|
+
findArcMidpoint: le,
|
|
904
|
+
calcMarkerOffsetX: h,
|
|
905
905
|
calcMarkerOffsetY: f,
|
|
906
906
|
animatingIndex: Rr,
|
|
907
907
|
segregated: W,
|
|
@@ -909,7 +909,7 @@ var $e = /* @__PURE__ */ e({ default: () => xn }), et = ["id"], tt = ["id"], nt
|
|
|
909
909
|
});
|
|
910
910
|
function ti(e, t) {
|
|
911
911
|
let n = e.value / ni(t);
|
|
912
|
-
return isNaN(n) ? 0 :
|
|
912
|
+
return isNaN(n) ? 0 : m(L.value.style.chart.layout.labels.percentage.formatter, n * 100, a({
|
|
913
913
|
v: n * 100,
|
|
914
914
|
s: "%",
|
|
915
915
|
r: L.value.style.chart.layout.labels.percentage.rounding
|
|
@@ -918,33 +918,33 @@ var $e = /* @__PURE__ */ e({ default: () => xn }), et = ["id"], tt = ["id"], nt
|
|
|
918
918
|
function ni(e) {
|
|
919
919
|
return [...e].map((e) => e.value).reduce((e, t) => e + t, 0);
|
|
920
920
|
}
|
|
921
|
-
let Z =
|
|
921
|
+
let Z = v(() => qr.value.map((e) => e.value).reduce((e, t) => e + t, 0)), ri = v(() => {
|
|
922
922
|
let e = H.value.reduce((e, t) => e + t.value, 0);
|
|
923
923
|
return e <= 0 ? [] : H.value.map((t) => t.value / e);
|
|
924
|
-
}), ii =
|
|
924
|
+
}), ii = v(() => Z.value / qr.value.length);
|
|
925
925
|
function ai(e) {
|
|
926
926
|
return Lr.value ? e.proportion * 100 : e.value / Z.value * 100;
|
|
927
927
|
}
|
|
928
|
-
let oi =
|
|
928
|
+
let oi = E(null), si = E(!1);
|
|
929
929
|
function ci({ datapoint: e, seriesIndex: t }) {
|
|
930
930
|
L.value.events.datapointLeave && L.value.events.datapointLeave({
|
|
931
931
|
datapoint: e,
|
|
932
932
|
seriesIndex: t
|
|
933
|
-
}), cr.value = !1, I.value = null,
|
|
933
|
+
}), cr.value = !1, I.value = null, N.value = null, $n.value = "pointer";
|
|
934
934
|
}
|
|
935
935
|
function Q({ datapoint: e, relativeIndex: t, seriesIndex: n, show: r = !1, triggerMode: i = "pointer" }) {
|
|
936
936
|
L.value.events.datapointEnter && L.value.events.datapointEnter({
|
|
937
937
|
datapoint: e,
|
|
938
938
|
seriesIndex: n
|
|
939
|
-
}), $n.value = i,
|
|
939
|
+
}), $n.value = i, N.value = t, oi.value = {
|
|
940
940
|
datapoint: e,
|
|
941
941
|
seriesIndex: n,
|
|
942
942
|
config: L.value,
|
|
943
943
|
series: H.value
|
|
944
944
|
}, cr.value = r, I.value = t;
|
|
945
|
-
let
|
|
946
|
-
if (si.value = !1,
|
|
947
|
-
let t =
|
|
945
|
+
let o = "", s = L.value.style.chart.tooltip.customFormat;
|
|
946
|
+
if (si.value = !1, fe(s)) try {
|
|
947
|
+
let t = s({
|
|
948
948
|
seriesIndex: n,
|
|
949
949
|
datapoint: e,
|
|
950
950
|
series: H.value,
|
|
@@ -954,10 +954,10 @@ var $e = /* @__PURE__ */ e({ default: () => xn }), et = ["id"], tt = ["id"], nt
|
|
|
954
954
|
} catch {
|
|
955
955
|
console.warn("Custom format cannot be applied."), si.value = !1;
|
|
956
956
|
}
|
|
957
|
-
si.value || (
|
|
957
|
+
si.value || (o += `<div style="width:100%;text-align:center;border-bottom:1px solid ${L.value.style.chart.tooltip.borderColor};padding-bottom:6px;margin-bottom:3px;">${e.name}</div>`, o += `<div style="display:flex;flex-direction:row;gap:6px;align-items:center;"><svg viewBox="0 0 60 60" height="14" width="14"><circle cx="30" cy="30" r="30" stroke="none" fill="${e.color}"/>${Nn.pattern ? `<circle cx="30" cy="30" r="30" stroke="none" fill="url(#pattern_${F.value}_${n})"/>` : ""}</svg>`, o += `<b>${xi({
|
|
958
958
|
showVal: L.value.style.chart.tooltip.showValue,
|
|
959
959
|
showPercentage: L.value.style.chart.tooltip.showPercentage,
|
|
960
|
-
val: `<span>${
|
|
960
|
+
val: `<span>${m(L.value.style.chart.layout.labels.value.formatter, e.value, a({
|
|
961
961
|
p: L.value.style.chart.layout.labels.dataLabels.prefix,
|
|
962
962
|
v: e.value,
|
|
963
963
|
s: L.value.style.chart.layout.labels.dataLabels.suffix,
|
|
@@ -967,7 +967,7 @@ var $e = /* @__PURE__ */ e({ default: () => xn }), et = ["id"], tt = ["id"], nt
|
|
|
967
967
|
relativeIndex: t,
|
|
968
968
|
seriesIndex: n
|
|
969
969
|
})}</span>`,
|
|
970
|
-
percentage:
|
|
970
|
+
percentage: m(L.value.style.chart.layout.labels.percentage.formatter, e.proportion * 100, a({
|
|
971
971
|
v: e.proportion * 100,
|
|
972
972
|
s: "%",
|
|
973
973
|
r: L.value.style.chart.tooltip.roundingPercentage
|
|
@@ -977,7 +977,7 @@ var $e = /* @__PURE__ */ e({ default: () => xn }), et = ["id"], tt = ["id"], nt
|
|
|
977
977
|
seriesIndex: n
|
|
978
978
|
}),
|
|
979
979
|
config: L.value.style.chart.tooltip
|
|
980
|
-
})}</b></div>`, L.value.style.chart.comments.showInTooltip && e.comment && (
|
|
980
|
+
})}</b></div>`, L.value.style.chart.comments.showInTooltip && e.comment && (o += `<div class="vue-data-ui-tooltip-comment" style="background:${e.color}20; padding: 6px; margin-bottom: 6px; margin-top:6px; border-left: 1px solid ${e.color}">${e.comment}</div>`), lr.value = `<div>${o}</div>`);
|
|
981
981
|
}
|
|
982
982
|
function li(e, t) {
|
|
983
983
|
let n = X.value[t];
|
|
@@ -986,7 +986,7 @@ var $e = /* @__PURE__ */ e({ default: () => xn }), et = ["id"], tt = ["id"], nt
|
|
|
986
986
|
x: n.labelX,
|
|
987
987
|
y: n.labelY
|
|
988
988
|
};
|
|
989
|
-
let r =
|
|
989
|
+
let r = h(e, !0, 12);
|
|
990
990
|
return {
|
|
991
991
|
textAnchor: r.anchor,
|
|
992
992
|
x: r.x,
|
|
@@ -1023,41 +1023,41 @@ var $e = /* @__PURE__ */ e({ default: () => xn }), et = ["id"], tt = ["id"], nt
|
|
|
1023
1023
|
}), r === "end" ? `${L.value.style.chart.layout.labels.name.show ? c : ""}${o}` : `${o}${L.value.style.chart.layout.labels.name.show ? c : ""}`;
|
|
1024
1024
|
}
|
|
1025
1025
|
function di(e, t) {
|
|
1026
|
-
let
|
|
1027
|
-
initX:
|
|
1028
|
-
initY:
|
|
1026
|
+
let r = J.value[t].middlePoint, i = Qr(r), a = n({
|
|
1027
|
+
initX: r.x,
|
|
1028
|
+
initY: r.y,
|
|
1029
1029
|
offset: 42,
|
|
1030
1030
|
centerX: V.value.width / 2,
|
|
1031
1031
|
centerY: V.value.height / 2
|
|
1032
|
-
}),
|
|
1033
|
-
|
|
1034
|
-
let
|
|
1032
|
+
}), o = a.x;
|
|
1033
|
+
a.y;
|
|
1034
|
+
let s = Si(e), c = `
|
|
1035
1035
|
<tspan
|
|
1036
1036
|
class="vue-data-ui-datalabel-value"
|
|
1037
1037
|
fill="${L.value.style.chart.layout.labels.percentage.color}"
|
|
1038
1038
|
font-size="${tr.value}px"
|
|
1039
1039
|
style="font-weight:${L.value.style.chart.layout.labels.percentage.bold ? "bold" : "normal"}"
|
|
1040
|
-
>${
|
|
1041
|
-
`,
|
|
1042
|
-
return
|
|
1043
|
-
t === 0 ?
|
|
1040
|
+
>${s}</tspan>
|
|
1041
|
+
`, l = String(e.name ?? "").split(/\n/g), u = "";
|
|
1042
|
+
return l.forEach((e, t) => {
|
|
1043
|
+
t === 0 ? u += `
|
|
1044
1044
|
<tspan
|
|
1045
1045
|
class="vue-data-ui-datalabel-name"
|
|
1046
1046
|
fill="${L.value.style.chart.layout.labels.name.color}"
|
|
1047
1047
|
font-size="${P.value}px"
|
|
1048
1048
|
style="font-weight:${L.value.style.chart.layout.labels.name.bold ? "bold" : "normal"}"
|
|
1049
1049
|
>${e}</tspan>
|
|
1050
|
-
` :
|
|
1050
|
+
` : u += `
|
|
1051
1051
|
<tspan
|
|
1052
1052
|
class="vue-data-ui-datalabel-name"
|
|
1053
|
-
x="${
|
|
1053
|
+
x="${o}"
|
|
1054
1054
|
dy="${P.value * 1.2}"
|
|
1055
1055
|
fill="${L.value.style.chart.layout.labels.name.color}"
|
|
1056
1056
|
font-size="${P.value}px"
|
|
1057
1057
|
style="font-weight:${L.value.style.chart.layout.labels.name.bold ? "bold" : "normal"}"
|
|
1058
1058
|
>${e}</tspan>
|
|
1059
1059
|
`;
|
|
1060
|
-
}),
|
|
1060
|
+
}), i === "end" ? `${L.value.style.chart.layout.labels.name.show ? u : ""}${c}` : `${c}${L.value.style.chart.layout.labels.name.show ? u : ""}`;
|
|
1061
1061
|
}
|
|
1062
1062
|
function fi(e) {
|
|
1063
1063
|
return L.value.useBlurOnHover && ![null, void 0].includes(I.value) && I.value !== e ? `url(#blur_${F.value})` : "";
|
|
@@ -1067,7 +1067,7 @@ var $e = /* @__PURE__ */ e({ default: () => xn }), et = ["id"], tt = ["id"], nt
|
|
|
1067
1067
|
let t = (e.proportion ?? 0) * 100, n = L.value.style.chart.layout.labels.dataLabels.hideUnderValue, r = L.value.style.chart.layout.labels.dataLabels.smallArcClusterThreshold + 2, i = n;
|
|
1068
1068
|
return t >= r ? 1 : t <= i ? 0 : (t - i) / (r - i);
|
|
1069
1069
|
}
|
|
1070
|
-
let mi =
|
|
1070
|
+
let mi = v(() => ({
|
|
1071
1071
|
head: qr.value.map((e) => ({
|
|
1072
1072
|
name: e.name,
|
|
1073
1073
|
color: e.color
|
|
@@ -1075,12 +1075,12 @@ var $e = /* @__PURE__ */ e({ default: () => xn }), et = ["id"], tt = ["id"], nt
|
|
|
1075
1075
|
body: qr.value.map((e) => e.value)
|
|
1076
1076
|
}));
|
|
1077
1077
|
function hi(e = null) {
|
|
1078
|
-
|
|
1078
|
+
Ve(() => {
|
|
1079
1079
|
let t = mi.value.head.map((e, t) => [
|
|
1080
1080
|
[e.name],
|
|
1081
1081
|
[mi.value.body[t]],
|
|
1082
1082
|
[isNaN(mi.value.body[t] / Z.value) ? "-" : mi.value.body[t] / Z.value * 100]
|
|
1083
|
-
]), n =
|
|
1083
|
+
]), n = ee([
|
|
1084
1084
|
[L.value.style.chart.title.text],
|
|
1085
1085
|
[L.value.style.chart.title.subtitle.text],
|
|
1086
1086
|
[
|
|
@@ -1089,16 +1089,16 @@ var $e = /* @__PURE__ */ e({ default: () => xn }), et = ["id"], tt = ["id"], nt
|
|
|
1089
1089
|
["%"]
|
|
1090
1090
|
]
|
|
1091
1091
|
].concat(t));
|
|
1092
|
-
e ? e(n) :
|
|
1092
|
+
e ? e(n) : d({
|
|
1093
1093
|
csvContent: n,
|
|
1094
1094
|
title: L.value.style.chart.title.text || "vue-ui-donut"
|
|
1095
1095
|
});
|
|
1096
1096
|
});
|
|
1097
1097
|
}
|
|
1098
|
-
let gi =
|
|
1098
|
+
let gi = v(() => {
|
|
1099
1099
|
let e = [
|
|
1100
1100
|
" <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>",
|
|
1101
|
-
|
|
1101
|
+
a({
|
|
1102
1102
|
p: L.value.style.chart.layout.labels.dataLabels.prefix,
|
|
1103
1103
|
v: Z.value,
|
|
1104
1104
|
s: L.value.style.chart.layout.labels.dataLabels.suffix,
|
|
@@ -1136,19 +1136,19 @@ var $e = /* @__PURE__ */ e({ default: () => xn }), et = ["id"], tt = ["id"], nt
|
|
|
1136
1136
|
a11yBody: n,
|
|
1137
1137
|
config: r
|
|
1138
1138
|
};
|
|
1139
|
-
}), _i =
|
|
1139
|
+
}), _i = E(!1);
|
|
1140
1140
|
function vi(e) {
|
|
1141
1141
|
_i.value = e, ur.value += 1;
|
|
1142
1142
|
}
|
|
1143
|
-
let yi =
|
|
1143
|
+
let yi = v(() => /^((?!chrome|android).)*safari/i.test(navigator.userAgent));
|
|
1144
1144
|
function bi(e) {
|
|
1145
|
-
return
|
|
1145
|
+
return Ae({
|
|
1146
1146
|
num: e,
|
|
1147
1147
|
rounding: L.value.style.chart.legend.roundingPercentage
|
|
1148
1148
|
});
|
|
1149
1149
|
}
|
|
1150
1150
|
function xi({ val: e, percentage: t, showVal: n, showPercentage: r, config: i }) {
|
|
1151
|
-
return
|
|
1151
|
+
return je({
|
|
1152
1152
|
config: i,
|
|
1153
1153
|
val: e,
|
|
1154
1154
|
percentage: t,
|
|
@@ -1158,7 +1158,7 @@ var $e = /* @__PURE__ */ e({ default: () => xn }), et = ["id"], tt = ["id"], nt
|
|
|
1158
1158
|
}
|
|
1159
1159
|
function Si(e) {
|
|
1160
1160
|
return xi({
|
|
1161
|
-
val:
|
|
1161
|
+
val: m(L.value.style.chart.layout.labels.value.formatter, e.value, a({
|
|
1162
1162
|
p: L.value.style.chart.layout.labels.dataLabels.prefix,
|
|
1163
1163
|
v: e.value,
|
|
1164
1164
|
s: L.value.style.chart.layout.labels.dataLabels.suffix,
|
|
@@ -1188,14 +1188,14 @@ var $e = /* @__PURE__ */ e({ default: () => xn }), et = ["id"], tt = ["id"], nt
|
|
|
1188
1188
|
function Ti() {
|
|
1189
1189
|
B.value.showTooltip = !B.value.showTooltip;
|
|
1190
1190
|
}
|
|
1191
|
-
let Ei =
|
|
1191
|
+
let Ei = E(!1);
|
|
1192
1192
|
function Di() {
|
|
1193
1193
|
Ei.value = !Ei.value;
|
|
1194
1194
|
}
|
|
1195
1195
|
async function Oi({ scale: e = 2 } = {}) {
|
|
1196
|
-
if (!
|
|
1197
|
-
let { width: t, height: n } =
|
|
1198
|
-
domElement:
|
|
1196
|
+
if (!M.value) return;
|
|
1197
|
+
let { width: t, height: n } = M.value.getBoundingClientRect(), r = t / n, { imageUri: i, base64: a } = await be({
|
|
1198
|
+
domElement: M.value,
|
|
1199
1199
|
base64: !0,
|
|
1200
1200
|
img: !0,
|
|
1201
1201
|
scale: e
|
|
@@ -1210,14 +1210,14 @@ var $e = /* @__PURE__ */ e({ default: () => xn }), et = ["id"], tt = ["id"], nt
|
|
|
1210
1210
|
};
|
|
1211
1211
|
}
|
|
1212
1212
|
function ki() {
|
|
1213
|
-
if (!
|
|
1214
|
-
let { x: e, y: t, width: n, height: r } =
|
|
1213
|
+
if (!Fn.value) return;
|
|
1214
|
+
let { x: e, y: t, width: n, height: r } = Fn.value.getBBox();
|
|
1215
1215
|
z.value && z.value.setAttribute("viewBox", `${e} ${t} ${n + Math.min(0, e)} ${r + Math.min(0, t)}`);
|
|
1216
1216
|
}
|
|
1217
|
-
let Ai =
|
|
1217
|
+
let Ai = v(() => {
|
|
1218
1218
|
let e = L.value.table.useDialog && !L.value.table.show, t = B.value.showTable;
|
|
1219
1219
|
return {
|
|
1220
|
-
component: e ?
|
|
1220
|
+
component: e ? kn : wn,
|
|
1221
1221
|
title: `${L.value.style.chart.title.text}${L.value.style.chart.title.subtitle.text ? `: ${L.value.style.chart.title.subtitle.text}` : ""}`,
|
|
1222
1222
|
props: e ? {
|
|
1223
1223
|
backgroundColor: L.value.table.th.backgroundColor,
|
|
@@ -1225,7 +1225,7 @@ var $e = /* @__PURE__ */ e({ default: () => xn }), et = ["id"], tt = ["id"], nt
|
|
|
1225
1225
|
headerColor: L.value.table.th.color,
|
|
1226
1226
|
headerBg: L.value.table.th.backgroundColor,
|
|
1227
1227
|
isFullscreen: _i.value,
|
|
1228
|
-
fullscreenParent:
|
|
1228
|
+
fullscreenParent: M.value,
|
|
1229
1229
|
forcedWidth: Math.min(500, window.innerWidth * .8),
|
|
1230
1230
|
isCursorPointer: fr.value
|
|
1231
1231
|
} : {
|
|
@@ -1245,24 +1245,24 @@ var $e = /* @__PURE__ */ e({ default: () => xn }), et = ["id"], tt = ["id"], nt
|
|
|
1245
1245
|
}
|
|
1246
1246
|
};
|
|
1247
1247
|
});
|
|
1248
|
-
|
|
1249
|
-
L.value.table.show || (e && L.value.table.useDialog &&
|
|
1248
|
+
Ze(() => B.value.showTable, (e) => {
|
|
1249
|
+
L.value.table.show || (e && L.value.table.useDialog && Jn.value ? Jn.value.open() : "close" in Jn.value && Jn.value.close());
|
|
1250
1250
|
});
|
|
1251
1251
|
function ji() {
|
|
1252
|
-
B.value.showTable = !1,
|
|
1252
|
+
B.value.showTable = !1, Yn.value && Yn.value.setTableIconState(!1);
|
|
1253
1253
|
}
|
|
1254
|
-
let Mi =
|
|
1254
|
+
let Mi = v(() => Jr.value.map((e) => ({
|
|
1255
1255
|
...e,
|
|
1256
1256
|
name: e.display
|
|
1257
|
-
}))), Ni =
|
|
1257
|
+
}))), Ni = v(() => L.value.style.chart.backgroundColor), Pi = v(() => L.value.style.chart.legend), { exportSvg: Fi, getSvg: Ii } = _e({
|
|
1258
1258
|
svg: z,
|
|
1259
|
-
title:
|
|
1259
|
+
title: v(() => L.value.style.chart.title),
|
|
1260
1260
|
legend: Pi,
|
|
1261
1261
|
legendItems: Mi,
|
|
1262
1262
|
backgroundColor: Ni
|
|
1263
1263
|
});
|
|
1264
1264
|
async function Li({ isCb: e }) {
|
|
1265
|
-
|
|
1265
|
+
Zn.value = !0, await Ve();
|
|
1266
1266
|
try {
|
|
1267
1267
|
if (e) {
|
|
1268
1268
|
let { blob: e, url: t, text: n, dataUrl: r } = await Ii();
|
|
@@ -1274,16 +1274,16 @@ var $e = /* @__PURE__ */ e({ default: () => xn }), et = ["id"], tt = ["id"], nt
|
|
|
1274
1274
|
}));
|
|
1275
1275
|
} else await Promise.resolve(Fi());
|
|
1276
1276
|
} finally {
|
|
1277
|
-
|
|
1277
|
+
Zn.value = !1;
|
|
1278
1278
|
}
|
|
1279
1279
|
}
|
|
1280
1280
|
function Ri(e) {
|
|
1281
1281
|
if (e?.stage === "start") {
|
|
1282
|
-
|
|
1282
|
+
Xn.value = !0;
|
|
1283
1283
|
return;
|
|
1284
1284
|
}
|
|
1285
1285
|
if (e?.stage === "end") {
|
|
1286
|
-
|
|
1286
|
+
Xn.value = !1;
|
|
1287
1287
|
return;
|
|
1288
1288
|
}
|
|
1289
1289
|
jr();
|
|
@@ -1302,30 +1302,30 @@ var $e = /* @__PURE__ */ e({ default: () => xn }), et = ["id"], tt = ["id"], nt
|
|
|
1302
1302
|
}));
|
|
1303
1303
|
}
|
|
1304
1304
|
function Bi() {
|
|
1305
|
-
|
|
1305
|
+
N.value = null, er.value = !0;
|
|
1306
1306
|
}
|
|
1307
1307
|
function Vi() {
|
|
1308
|
-
|
|
1308
|
+
N.value = null, $n.value = "pointer", cr.value = !1, I.value = null, er.value = !1;
|
|
1309
1309
|
}
|
|
1310
1310
|
function Hi(e) {
|
|
1311
1311
|
if (!z.value || Ei.value || document.activeElement !== z.value || !q.value.length) return;
|
|
1312
1312
|
let t = ["ArrowLeft", "ArrowUp"].includes(e.key), n = ["ArrowRight", "ArrowDown"].includes(e.key), r = e.key === "Enter" || e.key === " ", i = e.key === "Escape";
|
|
1313
1313
|
if (!t && !n && !r && !i) return;
|
|
1314
1314
|
if (e.preventDefault(), e.stopPropagation(), i) {
|
|
1315
|
-
|
|
1315
|
+
N.value = null, $n.value = "pointer", cr.value = !1, I.value = null;
|
|
1316
1316
|
return;
|
|
1317
1317
|
}
|
|
1318
1318
|
if (r) {
|
|
1319
|
-
if (
|
|
1320
|
-
let e = q.value[
|
|
1319
|
+
if (N.value === null) return;
|
|
1320
|
+
let e = q.value[N.value];
|
|
1321
1321
|
if (!e) return;
|
|
1322
|
-
$(e,
|
|
1322
|
+
$(e, N.value);
|
|
1323
1323
|
return;
|
|
1324
1324
|
}
|
|
1325
|
-
let a =
|
|
1325
|
+
let a = N.value, o = I.value, s = a !== null && a >= 0 && a < q.value.length, c = o !== null && o >= 0 && o < q.value.length;
|
|
1326
1326
|
s ? n ? (a += 1, a >= q.value.length && (a = 0)) : t && (--a, a < 0 && (a = q.value.length - 1)) : c ? (a = n ? o + 1 : o - 1, a >= q.value.length && (a = 0), a < 0 && (a = q.value.length - 1)) : a = n ? 0 : q.value.length - 1;
|
|
1327
1327
|
let l = q.value[a];
|
|
1328
|
-
l && (
|
|
1328
|
+
l && (N.value = a, Ui(a), Q({
|
|
1329
1329
|
datapoint: l,
|
|
1330
1330
|
relativeIndex: a,
|
|
1331
1331
|
seriesIndex: l.seriesIndex,
|
|
@@ -1339,7 +1339,7 @@ var $e = /* @__PURE__ */ e({ default: () => xn }), et = ["id"], tt = ["id"], nt
|
|
|
1339
1339
|
if (L.value.type === "classic") {
|
|
1340
1340
|
let r = q.value[e];
|
|
1341
1341
|
if (!r?.arcSlice) return;
|
|
1342
|
-
let i =
|
|
1342
|
+
let i = le(r.arcSlice);
|
|
1343
1343
|
if (!i) return;
|
|
1344
1344
|
t = i.x, n = i.y;
|
|
1345
1345
|
} else {
|
|
@@ -1353,11 +1353,11 @@ var $e = /* @__PURE__ */ e({ default: () => xn }), et = ["id"], tt = ["id"], nt
|
|
|
1353
1353
|
y: r.top + n / V.value.height * r.height
|
|
1354
1354
|
};
|
|
1355
1355
|
}
|
|
1356
|
-
let Wi =
|
|
1356
|
+
let Wi = v(() => ({
|
|
1357
1357
|
headers: gi.value?.colNames ?? [],
|
|
1358
1358
|
rows: gi.value?.a11yBody ?? []
|
|
1359
1359
|
}));
|
|
1360
|
-
return
|
|
1360
|
+
return Ce({
|
|
1361
1361
|
autoSize: ki,
|
|
1362
1362
|
getData: Ir,
|
|
1363
1363
|
getImage: Oi,
|
|
@@ -1373,20 +1373,20 @@ var $e = /* @__PURE__ */ e({ default: () => xn }), et = ["id"], tt = ["id"], nt
|
|
|
1373
1373
|
toggleAnnotator: Di,
|
|
1374
1374
|
toggleFullscreen: vi,
|
|
1375
1375
|
copyAlt: zi
|
|
1376
|
-
}), (t,
|
|
1376
|
+
}), (t, r) => (T(), b("div", {
|
|
1377
1377
|
ref_key: "donutChart",
|
|
1378
|
-
ref:
|
|
1379
|
-
class:
|
|
1380
|
-
style:
|
|
1378
|
+
ref: M,
|
|
1379
|
+
class: He(`vue-data-ui-component vue-ui-donut ${_i.value ? "vue-data-ui-wrapper-fullscreen" : ""} ${L.value.useCssAnimation ? "" : "vue-ui-dna"}`),
|
|
1380
|
+
style: w(`font-family:${L.value.style.fontFamily};width:100%; ${L.value.responsive ? "height:100%;" : ""} text-align:center;background:${L.value.style.chart.backgroundColor}`),
|
|
1381
1381
|
id: `donut__${F.value}`,
|
|
1382
1382
|
onMouseenter: Tr,
|
|
1383
1383
|
onMouseleave: Er
|
|
1384
1384
|
}, [
|
|
1385
|
-
|
|
1385
|
+
x("div", {
|
|
1386
1386
|
id: `chart-instructions-${F.value}`,
|
|
1387
1387
|
class: "sr-only"
|
|
1388
|
-
}, [
|
|
1389
|
-
Wi.value?.rows?.length ? (
|
|
1388
|
+
}, [x("p", null, qe(L.value.a11y.translations.keyboardNavigation), 1)], 8, nt),
|
|
1389
|
+
Wi.value?.rows?.length ? (T(), Fe(De, {
|
|
1390
1390
|
key: 0,
|
|
1391
1391
|
uid: F.value,
|
|
1392
1392
|
head: Wi.value.headers,
|
|
@@ -1399,22 +1399,22 @@ var $e = /* @__PURE__ */ e({ default: () => xn }), et = ["id"], tt = ["id"], nt
|
|
|
1399
1399
|
"body",
|
|
1400
1400
|
"notice",
|
|
1401
1401
|
"caption"
|
|
1402
|
-
])) :
|
|
1403
|
-
L.value.userOptions.buttons.annotator &&
|
|
1402
|
+
])) : y("", !0),
|
|
1403
|
+
L.value.userOptions.buttons.annotator && k(z) ? (T(), Fe(k(En), {
|
|
1404
1404
|
key: 1,
|
|
1405
1405
|
color: L.value.style.chart.color,
|
|
1406
1406
|
backgroundColor: L.value.style.chart.backgroundColor,
|
|
1407
1407
|
active: Ei.value,
|
|
1408
|
-
svgRef:
|
|
1408
|
+
svgRef: k(z),
|
|
1409
1409
|
isCursorPointer: fr.value,
|
|
1410
1410
|
onClose: Di
|
|
1411
1411
|
}, {
|
|
1412
|
-
"annotator-action-close":
|
|
1413
|
-
"annotator-action-color":
|
|
1414
|
-
"annotator-action-draw":
|
|
1415
|
-
"annotator-action-undo":
|
|
1416
|
-
"annotator-action-redo":
|
|
1417
|
-
"annotator-action-delete":
|
|
1412
|
+
"annotator-action-close": A(() => [O(t.$slots, "annotator-action-close", {}, void 0, !0)]),
|
|
1413
|
+
"annotator-action-color": A(({ color: e }) => [O(t.$slots, "annotator-action-color", C(S({ color: e })), void 0, !0)]),
|
|
1414
|
+
"annotator-action-draw": A(({ mode: e }) => [O(t.$slots, "annotator-action-draw", C(S({ mode: e })), void 0, !0)]),
|
|
1415
|
+
"annotator-action-undo": A(({ disabled: e }) => [O(t.$slots, "annotator-action-undo", C(S({ disabled: e })), void 0, !0)]),
|
|
1416
|
+
"annotator-action-redo": A(({ disabled: e }) => [O(t.$slots, "annotator-action-redo", C(S({ disabled: e })), void 0, !0)]),
|
|
1417
|
+
"annotator-action-delete": A(({ disabled: e }) => [O(t.$slots, "annotator-action-delete", C(S({ disabled: e })), void 0, !0)]),
|
|
1418
1418
|
_: 3
|
|
1419
1419
|
}, 8, [
|
|
1420
1420
|
"color",
|
|
@@ -1422,22 +1422,22 @@ var $e = /* @__PURE__ */ e({ default: () => xn }), et = ["id"], tt = ["id"], nt
|
|
|
1422
1422
|
"active",
|
|
1423
1423
|
"svgRef",
|
|
1424
1424
|
"isCursorPointer"
|
|
1425
|
-
])) :
|
|
1426
|
-
|
|
1427
|
-
Mr.value ? (
|
|
1425
|
+
])) : y("", !0),
|
|
1426
|
+
O(t.$slots, "userConfig", {}, void 0, !0),
|
|
1427
|
+
Mr.value ? (T(), b("div", {
|
|
1428
1428
|
key: 2,
|
|
1429
1429
|
ref_key: "noTitle",
|
|
1430
|
-
ref:
|
|
1430
|
+
ref: Un,
|
|
1431
1431
|
class: "vue-data-ui-no-title-space",
|
|
1432
1432
|
style: "height:36px; width: 100%;background:transparent"
|
|
1433
|
-
}, null, 512)) :
|
|
1434
|
-
L.value.style.chart.title.text ? (
|
|
1433
|
+
}, null, 512)) : y("", !0),
|
|
1434
|
+
L.value.style.chart.title.text ? (T(), b("div", {
|
|
1435
1435
|
key: 3,
|
|
1436
1436
|
ref_key: "chartTitle",
|
|
1437
|
-
ref:
|
|
1437
|
+
ref: Rn,
|
|
1438
1438
|
style: "width:100%;background:transparent;padding-bottom:24px"
|
|
1439
|
-
}, [(
|
|
1440
|
-
key: `title_${
|
|
1439
|
+
}, [(T(), Fe(xe, {
|
|
1440
|
+
key: `title_${Wn.value}`,
|
|
1441
1441
|
config: {
|
|
1442
1442
|
title: {
|
|
1443
1443
|
cy: "donut-div-title",
|
|
@@ -1448,16 +1448,16 @@ var $e = /* @__PURE__ */ e({ default: () => xn }), et = ["id"], tt = ["id"], nt
|
|
|
1448
1448
|
...L.value.style.chart.title.subtitle
|
|
1449
1449
|
}
|
|
1450
1450
|
}
|
|
1451
|
-
}, null, 8, ["config"]))], 512)) :
|
|
1452
|
-
|
|
1453
|
-
L.value.userOptions.show &&
|
|
1451
|
+
}, null, 8, ["config"]))], 512)) : y("", !0),
|
|
1452
|
+
x("div", { id: `legend-top-${F.value}` }, null, 8, rt),
|
|
1453
|
+
L.value.userOptions.show && Pn.value && (k(wr) || k(Sr)) ? (T(), Fe(k(Dn), {
|
|
1454
1454
|
ref_key: "userOptionsRef",
|
|
1455
|
-
ref:
|
|
1455
|
+
ref: Yn,
|
|
1456
1456
|
key: `user_option_${ur.value}`,
|
|
1457
1457
|
backgroundColor: L.value.style.chart.backgroundColor,
|
|
1458
1458
|
color: L.value.style.chart.color,
|
|
1459
|
-
isPrinting:
|
|
1460
|
-
isImaging:
|
|
1459
|
+
isPrinting: k(Or),
|
|
1460
|
+
isImaging: k(kr),
|
|
1461
1461
|
uid: F.value,
|
|
1462
1462
|
hasTooltip: L.value.style.chart.tooltip.show && L.value.userOptions.buttons.tooltip,
|
|
1463
1463
|
hasPdf: L.value.userOptions.buttons.pdf,
|
|
@@ -1469,7 +1469,7 @@ var $e = /* @__PURE__ */ e({ default: () => xn }), et = ["id"], tt = ["id"], nt
|
|
|
1469
1469
|
hasFullscreen: L.value.userOptions.buttons.fullscreen,
|
|
1470
1470
|
hasAltCopy: L.value.userOptions.buttons.altCopy,
|
|
1471
1471
|
isFullscreen: _i.value,
|
|
1472
|
-
chartElement:
|
|
1472
|
+
chartElement: M.value,
|
|
1473
1473
|
position: L.value.userOptions.position,
|
|
1474
1474
|
callbacks: L.value.userOptions.callbacks,
|
|
1475
1475
|
isTooltip: B.value.showTooltip,
|
|
@@ -1480,7 +1480,7 @@ var $e = /* @__PURE__ */ e({ default: () => xn }), et = ["id"], tt = ["id"], nt
|
|
|
1480
1480
|
tableDialog: L.value.table.useDialog,
|
|
1481
1481
|
isCursorPointer: fr.value,
|
|
1482
1482
|
onToggleFullscreen: vi,
|
|
1483
|
-
onGeneratePdf:
|
|
1483
|
+
onGeneratePdf: k(Ar),
|
|
1484
1484
|
onGenerateCsv: hi,
|
|
1485
1485
|
onGenerateImage: Ri,
|
|
1486
1486
|
onGenerateSvg: Li,
|
|
@@ -1489,11 +1489,11 @@ var $e = /* @__PURE__ */ e({ default: () => xn }), et = ["id"], tt = ["id"], nt
|
|
|
1489
1489
|
onToggleTooltip: Ti,
|
|
1490
1490
|
onToggleAnnotator: Di,
|
|
1491
1491
|
onCopyAlt: zi,
|
|
1492
|
-
style:
|
|
1493
|
-
},
|
|
1492
|
+
style: w({ visibility: k(wr) ? k(Sr) ? "visible" : "hidden" : "visible" })
|
|
1493
|
+
}, Ie({ _: 2 }, [
|
|
1494
1494
|
t.$slots.menuIcon ? {
|
|
1495
1495
|
name: "menuIcon",
|
|
1496
|
-
fn:
|
|
1496
|
+
fn: A(({ isOpen: e, color: n }) => [O(t.$slots, "menuIcon", C(S({
|
|
1497
1497
|
isOpen: e,
|
|
1498
1498
|
color: n
|
|
1499
1499
|
})), void 0, !0)]),
|
|
@@ -1501,42 +1501,42 @@ var $e = /* @__PURE__ */ e({ default: () => xn }), et = ["id"], tt = ["id"], nt
|
|
|
1501
1501
|
} : void 0,
|
|
1502
1502
|
t.$slots.optionTooltip ? {
|
|
1503
1503
|
name: "optionTooltip",
|
|
1504
|
-
fn:
|
|
1504
|
+
fn: A(() => [O(t.$slots, "optionTooltip", {}, void 0, !0)]),
|
|
1505
1505
|
key: "1"
|
|
1506
1506
|
} : void 0,
|
|
1507
1507
|
t.$slots.optionPdf ? {
|
|
1508
1508
|
name: "optionPdf",
|
|
1509
|
-
fn:
|
|
1509
|
+
fn: A(() => [O(t.$slots, "optionPdf", {}, void 0, !0)]),
|
|
1510
1510
|
key: "2"
|
|
1511
1511
|
} : void 0,
|
|
1512
1512
|
t.$slots.optionCsv ? {
|
|
1513
1513
|
name: "optionCsv",
|
|
1514
|
-
fn:
|
|
1514
|
+
fn: A(() => [O(t.$slots, "optionCsv", {}, void 0, !0)]),
|
|
1515
1515
|
key: "3"
|
|
1516
1516
|
} : void 0,
|
|
1517
1517
|
t.$slots.optionImg ? {
|
|
1518
1518
|
name: "optionImg",
|
|
1519
|
-
fn:
|
|
1519
|
+
fn: A(() => [O(t.$slots, "optionImg", {}, void 0, !0)]),
|
|
1520
1520
|
key: "4"
|
|
1521
1521
|
} : void 0,
|
|
1522
1522
|
t.$slots.optionSvg ? {
|
|
1523
1523
|
name: "optionSvg",
|
|
1524
|
-
fn:
|
|
1524
|
+
fn: A(() => [O(t.$slots, "optionSvg", {}, void 0, !0)]),
|
|
1525
1525
|
key: "5"
|
|
1526
1526
|
} : void 0,
|
|
1527
1527
|
t.$slots.optionTable ? {
|
|
1528
1528
|
name: "optionTable",
|
|
1529
|
-
fn:
|
|
1529
|
+
fn: A(() => [O(t.$slots, "optionTable", {}, void 0, !0)]),
|
|
1530
1530
|
key: "6"
|
|
1531
1531
|
} : void 0,
|
|
1532
1532
|
t.$slots.optionLabels ? {
|
|
1533
1533
|
name: "optionLabels",
|
|
1534
|
-
fn:
|
|
1534
|
+
fn: A(() => [O(t.$slots, "optionLabels", {}, void 0, !0)]),
|
|
1535
1535
|
key: "7"
|
|
1536
1536
|
} : void 0,
|
|
1537
1537
|
t.$slots.optionFullscreen ? {
|
|
1538
1538
|
name: "optionFullscreen",
|
|
1539
|
-
fn:
|
|
1539
|
+
fn: A(({ toggleFullscreen: e, isFullscreen: n }) => [O(t.$slots, "optionFullscreen", C(S({
|
|
1540
1540
|
toggleFullscreen: e,
|
|
1541
1541
|
isFullscreen: n
|
|
1542
1542
|
})), void 0, !0)]),
|
|
@@ -1544,7 +1544,7 @@ var $e = /* @__PURE__ */ e({ default: () => xn }), et = ["id"], tt = ["id"], nt
|
|
|
1544
1544
|
} : void 0,
|
|
1545
1545
|
t.$slots.optionAnnotator ? {
|
|
1546
1546
|
name: "optionAnnotator",
|
|
1547
|
-
fn:
|
|
1547
|
+
fn: A(({ toggleAnnotator: e, isAnnotator: n }) => [O(t.$slots, "optionAnnotator", C(S({
|
|
1548
1548
|
toggleAnnotator: e,
|
|
1549
1549
|
isAnnotator: n
|
|
1550
1550
|
})), void 0, !0)]),
|
|
@@ -1552,130 +1552,130 @@ var $e = /* @__PURE__ */ e({ default: () => xn }), et = ["id"], tt = ["id"], nt
|
|
|
1552
1552
|
} : void 0,
|
|
1553
1553
|
t.$slots.optionAltCopy ? {
|
|
1554
1554
|
name: "optionAltCopy",
|
|
1555
|
-
fn:
|
|
1555
|
+
fn: A(({ altCopy: e }) => [O(t.$slots, "optionAltCopy", C(S({ altCopy: e })), void 0, !0)]),
|
|
1556
1556
|
key: "10"
|
|
1557
1557
|
} : void 0,
|
|
1558
1558
|
t.$slots["custom-menu-before"] ? {
|
|
1559
1559
|
name: "custom-menu-before",
|
|
1560
|
-
fn:
|
|
1560
|
+
fn: A(() => [O(t.$slots, "custom-menu-before", {}, void 0, !0)]),
|
|
1561
1561
|
key: "11"
|
|
1562
1562
|
} : void 0,
|
|
1563
1563
|
t.$slots["custom-menu-after"] ? {
|
|
1564
1564
|
name: "custom-menu-after",
|
|
1565
|
-
fn:
|
|
1565
|
+
fn: A(() => [O(t.$slots, "custom-menu-after", {}, void 0, !0)]),
|
|
1566
1566
|
key: "12"
|
|
1567
1567
|
} : void 0
|
|
1568
|
-
]), 1032, /* @__PURE__ */ "backgroundColor.color.isPrinting.isImaging.uid.hasTooltip.hasPdf.hasImg.hasSvg.hasXls.hasTable.hasLabel.hasFullscreen.hasAltCopy.isFullscreen.chartElement.position.callbacks.isTooltip.titles.hasAnnotator.isAnnotation.printScale.tableDialog.isCursorPointer.onGeneratePdf.style".split("."))) :
|
|
1569
|
-
|
|
1568
|
+
]), 1032, /* @__PURE__ */ "backgroundColor.color.isPrinting.isImaging.uid.hasTooltip.hasPdf.hasImg.hasSvg.hasXls.hasTable.hasLabel.hasFullscreen.hasAltCopy.isFullscreen.chartElement.position.callbacks.isTooltip.titles.hasAnnotator.isAnnotation.printScale.tableDialog.isCursorPointer.onGeneratePdf.style".split("."))) : y("", !0),
|
|
1569
|
+
x("div", it, [(T(), b("svg", {
|
|
1570
1570
|
ref_key: "svgRef",
|
|
1571
1571
|
ref: z,
|
|
1572
|
-
xmlns:
|
|
1572
|
+
xmlns: k(ue),
|
|
1573
1573
|
"aria-describedby": `chart-instructions-${F.value}`,
|
|
1574
|
-
class:
|
|
1574
|
+
class: He({
|
|
1575
1575
|
"vue-data-ui-fullscreen--on": _i.value,
|
|
1576
1576
|
"vue-data-ui-fulscreen--off": !_i.value,
|
|
1577
1577
|
"vue-data-ui-svg": !0
|
|
1578
1578
|
}),
|
|
1579
1579
|
viewBox: `0 0 ${V.value.width <= 0 ? 10 : V.value.width} ${V.value.height <= 0 ? 10 : V.value.height}`,
|
|
1580
|
-
style:
|
|
1580
|
+
style: w(`max-width:100%; overflow: visible; background:transparent;color:${L.value.style.chart.color};${Dr.value.css}`),
|
|
1581
1581
|
tabindex: "0",
|
|
1582
1582
|
onFocus: Bi,
|
|
1583
1583
|
onBlur: Vi,
|
|
1584
1584
|
onKeydown: Hi
|
|
1585
|
-
}, [
|
|
1585
|
+
}, [x("g", {
|
|
1586
1586
|
ref_key: "G",
|
|
1587
|
-
ref:
|
|
1587
|
+
ref: Fn,
|
|
1588
1588
|
class: "vue-data-ui-g"
|
|
1589
1589
|
}, [
|
|
1590
|
-
|
|
1591
|
-
t.$slots["chart-background"] ? (
|
|
1590
|
+
Re(k(On)),
|
|
1591
|
+
t.$slots["chart-background"] ? (T(), b("foreignObject", {
|
|
1592
1592
|
key: 0,
|
|
1593
1593
|
x: 0,
|
|
1594
1594
|
y: 0,
|
|
1595
1595
|
width: V.value.width <= 0 ? 10 : V.value.width,
|
|
1596
1596
|
height: V.value.height <= 0 ? 10 : V.value.height,
|
|
1597
1597
|
style: { pointerEvents: "none" }
|
|
1598
|
-
}, [
|
|
1599
|
-
L.value.type === "classic" && !isNaN(Pr.value / G.value) ? (
|
|
1598
|
+
}, [O(t.$slots, "chart-background", {}, void 0, !0)], 8, ot)) : y("", !0),
|
|
1599
|
+
L.value.type === "classic" && !isNaN(Pr.value / G.value) ? (T(), b("defs", st, [L.value.style.chart.useGradient ? (T(), b("radialGradient", {
|
|
1600
1600
|
key: 0,
|
|
1601
1601
|
id: `gradient_${F.value}`
|
|
1602
1602
|
}, [
|
|
1603
|
-
|
|
1603
|
+
x("stop", {
|
|
1604
1604
|
offset: "0%",
|
|
1605
|
-
"stop-color":
|
|
1605
|
+
"stop-color": k(l)(L.value.style.chart.backgroundColor, 0),
|
|
1606
1606
|
"stop-opacity": "0"
|
|
1607
|
-
}, null, 8,
|
|
1608
|
-
|
|
1607
|
+
}, null, 8, lt),
|
|
1608
|
+
x("stop", {
|
|
1609
1609
|
offset: `${(1 - Pr.value / G.value) * 100}%`,
|
|
1610
|
-
"stop-color":
|
|
1610
|
+
"stop-color": k(l)("#FFFFFF", 0),
|
|
1611
1611
|
"stop-opacity": "0"
|
|
1612
|
-
}, null, 8, lt),
|
|
1613
|
-
S("stop", {
|
|
1614
|
-
offset: `${(1 - Pr.value / G.value / 2) * 100}%`,
|
|
1615
|
-
"stop-color": A(r)("#FFFFFF", L.value.style.chart.gradientIntensity)
|
|
1616
1612
|
}, null, 8, ut),
|
|
1617
|
-
|
|
1613
|
+
x("stop", {
|
|
1614
|
+
offset: `${(1 - Pr.value / G.value / 2) * 100}%`,
|
|
1615
|
+
"stop-color": k(l)("#FFFFFF", L.value.style.chart.gradientIntensity)
|
|
1616
|
+
}, null, 8, dt),
|
|
1617
|
+
x("stop", {
|
|
1618
1618
|
offset: "100%",
|
|
1619
|
-
"stop-color":
|
|
1619
|
+
"stop-color": k(l)(L.value.style.chart.backgroundColor, 0),
|
|
1620
1620
|
"stop-opacity": "0"
|
|
1621
|
-
}, null, 8,
|
|
1622
|
-
], 8,
|
|
1623
|
-
L.value.type === "polar" ? (
|
|
1621
|
+
}, null, 8, ft)
|
|
1622
|
+
], 8, ct)) : y("", !0)])) : y("", !0),
|
|
1623
|
+
L.value.type === "polar" ? (T(), b("defs", pt, [(T(!0), b(_, null, D(J.value, (e, t) => (T(), b("radialGradient", {
|
|
1624
1624
|
id: `polar_gradient_${t}_${F.value}`,
|
|
1625
1625
|
cx: (isNaN(e.middlePoint.x / V.value.width * 100) ? 0 : e.middlePoint.x / V.value.width * 100) + "%",
|
|
1626
1626
|
cy: (isNaN(e.middlePoint.y / V.value.height * 100) ? 0 : e.middlePoint.y / V.value.height * 100) + "%",
|
|
1627
1627
|
r: "62%"
|
|
1628
|
-
}, [
|
|
1628
|
+
}, [x("stop", {
|
|
1629
1629
|
offset: "0%",
|
|
1630
|
-
"stop-color":
|
|
1630
|
+
"stop-color": k(pe)(K.value[t].color, .05),
|
|
1631
1631
|
"stop-opacity": L.value.style.chart.gradientIntensity / 100
|
|
1632
|
-
}, null, 8,
|
|
1632
|
+
}, null, 8, ht), x("stop", {
|
|
1633
1633
|
offset: "100%",
|
|
1634
1634
|
"stop-color": K.value[t].color
|
|
1635
|
-
}, null, 8,
|
|
1636
|
-
|
|
1637
|
-
|
|
1635
|
+
}, null, 8, gt)], 8, mt))), 256))])) : y("", !0),
|
|
1636
|
+
x("defs", null, [
|
|
1637
|
+
x("filter", {
|
|
1638
1638
|
id: `blur_${F.value}`,
|
|
1639
1639
|
x: "-50%",
|
|
1640
1640
|
y: "-50%",
|
|
1641
1641
|
width: "200%",
|
|
1642
1642
|
height: "200%"
|
|
1643
|
-
}, [
|
|
1643
|
+
}, [x("feGaussianBlur", {
|
|
1644
1644
|
in: "SourceGraphic",
|
|
1645
1645
|
stdDeviation: 2,
|
|
1646
1646
|
id: `blur_std_${F.value}`
|
|
1647
|
-
}, null, 8,
|
|
1647
|
+
}, null, 8, vt), r[5] ||= x("feColorMatrix", {
|
|
1648
1648
|
type: "saturate",
|
|
1649
1649
|
values: "0"
|
|
1650
|
-
}, null, -1)], 8,
|
|
1651
|
-
|
|
1650
|
+
}, null, -1)], 8, _t),
|
|
1651
|
+
x("filter", {
|
|
1652
1652
|
id: `shadow_${F.value}`,
|
|
1653
1653
|
"color-interpolation-filters": "sRGB"
|
|
1654
|
-
}, [
|
|
1654
|
+
}, [x("feDropShadow", {
|
|
1655
1655
|
dx: "0",
|
|
1656
1656
|
dy: "0",
|
|
1657
1657
|
stdDeviation: "10",
|
|
1658
1658
|
"flood-opacity": "0.5",
|
|
1659
1659
|
"flood-color": L.value.style.chart.layout.donut.shadowColor
|
|
1660
|
-
}, null, 8,
|
|
1661
|
-
|
|
1660
|
+
}, null, 8, bt)], 8, yt),
|
|
1661
|
+
x("filter", {
|
|
1662
1662
|
id: `drop_shadow_${F.value}`,
|
|
1663
1663
|
"color-interpolation-filters": "sRGB",
|
|
1664
1664
|
x: "-50%",
|
|
1665
1665
|
y: "-50%",
|
|
1666
1666
|
width: "200%",
|
|
1667
1667
|
height: "200%"
|
|
1668
|
-
}, [
|
|
1668
|
+
}, [x("feDropShadow", {
|
|
1669
1669
|
dx: "0",
|
|
1670
1670
|
dy: "0",
|
|
1671
1671
|
stdDeviation: "3",
|
|
1672
1672
|
"flood-opacity": "1",
|
|
1673
1673
|
"flood-color": L.value.style.chart.layout.donut.shadowColor
|
|
1674
|
-
}, null, 8,
|
|
1674
|
+
}, null, 8, St)], 8, xt)
|
|
1675
1675
|
]),
|
|
1676
|
-
L.value.type === "classic" ? (
|
|
1676
|
+
L.value.type === "classic" ? (T(!0), b(_, { key: 3 }, D(K.value.filter((e) => !e.ghost), (e, t) => (T(), b("g", null, [Y(e) && B.value.dataLabels.show ? (T(), b("path", {
|
|
1677
1677
|
key: 0,
|
|
1678
|
-
d:
|
|
1678
|
+
d: k(X)[t]?.connectorPath || k(ce)(e, {
|
|
1679
1679
|
x: V.value.width / 2,
|
|
1680
1680
|
y: V.value.height / 2
|
|
1681
1681
|
}, 16, 16, !1, !1, Pr.value, 12, L.value.style.chart.layout.curvedMarkers),
|
|
@@ -1685,16 +1685,16 @@ var $e = /* @__PURE__ */ e({ default: () => xn }), et = ["id"], tt = ["id"], nt
|
|
|
1685
1685
|
"stroke-linejoin": "round",
|
|
1686
1686
|
fill: "none",
|
|
1687
1687
|
filter: fi(t)
|
|
1688
|
-
}, null, 8,
|
|
1689
|
-
L.value.type === "polar" ? (
|
|
1688
|
+
}, null, 8, Ct)) : y("", !0)]))), 256)) : y("", !0),
|
|
1689
|
+
L.value.type === "polar" ? (T(!0), b(_, { key: 4 }, D(K.value.filter((e) => !e.ghost), (e, t) => (T(), b("g", null, [Y(e) && B.value.dataLabels.show ? (T(), b("path", {
|
|
1690
1690
|
key: 0,
|
|
1691
|
-
d: `M ${
|
|
1691
|
+
d: `M ${k(n)({
|
|
1692
1692
|
initX: J.value[t].middlePoint.x,
|
|
1693
1693
|
initY: J.value[t].middlePoint.y,
|
|
1694
1694
|
offset: 24,
|
|
1695
1695
|
centerX: V.value.width / 2,
|
|
1696
1696
|
centerY: V.value.height / 2
|
|
1697
|
-
}).x},${
|
|
1697
|
+
}).x},${k(n)({
|
|
1698
1698
|
initX: J.value[t].middlePoint.x,
|
|
1699
1699
|
initY: J.value[t].middlePoint.y,
|
|
1700
1700
|
offset: 24,
|
|
@@ -1707,81 +1707,81 @@ var $e = /* @__PURE__ */ e({ default: () => xn }), et = ["id"], tt = ["id"], nt
|
|
|
1707
1707
|
"stroke-linejoin": "round",
|
|
1708
1708
|
fill: "none",
|
|
1709
1709
|
filter: fi(t),
|
|
1710
|
-
style:
|
|
1711
|
-
}, null, 12,
|
|
1712
|
-
L.value.type === "classic" && L.value.style.chart.layout.donut.useShadow ? (
|
|
1710
|
+
style: w({ transition: R.value || !L.value.serieToggleAnimation.show ? "none" : `all ${L.value.serieToggleAnimation.durationMs}ms ease-in-out` })
|
|
1711
|
+
}, null, 12, wt)) : y("", !0)]))), 256)) : y("", !0),
|
|
1712
|
+
L.value.type === "classic" && L.value.style.chart.layout.donut.useShadow ? (T(), b("circle", {
|
|
1713
1713
|
key: 5,
|
|
1714
1714
|
cx: V.value.width / 2,
|
|
1715
1715
|
cy: V.value.height / 2,
|
|
1716
1716
|
r: G.value <= 0 ? 10 : G.value,
|
|
1717
1717
|
fill: L.value.style.chart.backgroundColor,
|
|
1718
1718
|
filter: `url(#shadow_${F.value})`
|
|
1719
|
-
}, null, 8,
|
|
1720
|
-
t.$slots.pattern ? (
|
|
1719
|
+
}, null, 8, Tt)) : y("", !0),
|
|
1720
|
+
t.$slots.pattern ? (T(), b("g", Et, [(T(!0), b(_, null, D(e.dataset, (e, n) => (T(), b("defs", { key: `pattern-${e.patternIndex}` }, [O(t.$slots, "pattern", Be({ ref_for: !0 }, {
|
|
1721
1721
|
seriesIndex: n,
|
|
1722
1722
|
patternId: `pattern_${F.value}_${n}`
|
|
1723
|
-
}), void 0, !0)]))), 128))])) :
|
|
1724
|
-
Z.value && L.value.type === "classic" ? (
|
|
1725
|
-
(
|
|
1723
|
+
}), void 0, !0)]))), 128))])) : y("", !0),
|
|
1724
|
+
Z.value && L.value.type === "classic" ? (T(), b(_, { key: 7 }, [
|
|
1725
|
+
(T(!0), b(_, null, D(q.value, (e, t) => (T(), b("path", {
|
|
1726
1726
|
stroke: L.value.style.chart.backgroundColor,
|
|
1727
1727
|
d: e.arcSlice,
|
|
1728
1728
|
fill: "#FFFFFF"
|
|
1729
|
-
}, null, 8,
|
|
1730
|
-
(
|
|
1729
|
+
}, null, 8, Dt))), 256)),
|
|
1730
|
+
(T(!0), b(_, null, D(q.value, (e, t) => (T(), b("path", {
|
|
1731
1731
|
class: "vue-ui-donut-arc-path",
|
|
1732
1732
|
d: e.arcSlice,
|
|
1733
1733
|
fill: e.color,
|
|
1734
1734
|
stroke: L.value.style.chart.layout.donut.borderColorAuto ? L.value.style.chart.backgroundColor : L.value.style.chart.layout.donut.borderColor,
|
|
1735
1735
|
"stroke-width": L.value.style.chart.layout.donut.borderWidth,
|
|
1736
1736
|
filter: fi(t)
|
|
1737
|
-
}, null, 8,
|
|
1738
|
-
t.$slots.pattern ? (
|
|
1737
|
+
}, null, 8, Ot))), 256)),
|
|
1738
|
+
t.$slots.pattern ? (T(), b("g", kt, [(T(!0), b(_, null, D(q.value, (e, t) => (T(), b("path", {
|
|
1739
1739
|
class: "vue-ui-donut-arc-path",
|
|
1740
1740
|
d: e.arcSlice,
|
|
1741
1741
|
fill: `url(#${e.pattern})`,
|
|
1742
1742
|
stroke: L.value.style.chart.layout.donut.borderColorAuto ? L.value.style.chart.backgroundColor : L.value.style.chart.layout.donut.borderColor,
|
|
1743
1743
|
"stroke-width": L.value.style.chart.layout.donut.borderWidth,
|
|
1744
1744
|
filter: fi(t)
|
|
1745
|
-
}, null, 8,
|
|
1746
|
-
], 64)) :
|
|
1747
|
-
Z.value && L.value.type === "polar" ? (
|
|
1748
|
-
(
|
|
1745
|
+
}, null, 8, At))), 256))])) : y("", !0)
|
|
1746
|
+
], 64)) : y("", !0),
|
|
1747
|
+
Z.value && L.value.type === "polar" ? (T(), b(_, { key: 8 }, [K.value.length > 1 ? (T(), b("g", jt, [
|
|
1748
|
+
(T(!0), b(_, null, D(q.value, (e, t) => (T(), b("path", {
|
|
1749
1749
|
stroke: L.value.style.chart.layout.donut.borderColorAuto ? L.value.style.chart.backgroundColor : L.value.style.chart.layout.donut.borderColor,
|
|
1750
1750
|
d: J.value[t].path,
|
|
1751
1751
|
fill: "#FFFFFF",
|
|
1752
|
-
style:
|
|
1753
|
-
}, null, 12,
|
|
1754
|
-
L.value.style.chart.layout.donut.useShadow ? (
|
|
1752
|
+
style: w({ transition: R.value || !L.value.serieToggleAnimation.show ? "none" : `all ${L.value.serieToggleAnimation.durationMs}ms ease-in-out` })
|
|
1753
|
+
}, null, 12, Mt))), 256)),
|
|
1754
|
+
L.value.style.chart.layout.donut.useShadow ? (T(), b("g", Nt, [(T(!0), b(_, null, D(q.value, (e, t) => (T(), b("path", {
|
|
1755
1755
|
class: "vue-ui-donut-arc-path",
|
|
1756
1756
|
d: J.value[t].path,
|
|
1757
1757
|
fill: "transparent",
|
|
1758
1758
|
stroke: L.value.style.chart.layout.donut.borderColorAuto ? L.value.style.chart.backgroundColor : L.value.style.chart.layout.donut.borderColor,
|
|
1759
1759
|
"stroke-width": L.value.style.chart.layout.donut.borderWidth,
|
|
1760
1760
|
filter: `url(#drop_shadow_${F.value})`,
|
|
1761
|
-
style:
|
|
1762
|
-
}, null, 12,
|
|
1763
|
-
t.$slots.pattern ? (
|
|
1761
|
+
style: w({ transition: R.value || !L.value.serieToggleAnimation.show ? "none" : `all ${L.value.serieToggleAnimation.durationMs}ms ease-in-out` })
|
|
1762
|
+
}, null, 12, Pt))), 256))])) : y("", !0),
|
|
1763
|
+
t.$slots.pattern ? (T(), b("g", Ft, [(T(!0), b(_, null, D(q.value, (e, t) => (T(), b("path", {
|
|
1764
1764
|
class: "vue-ui-donut-arc-path",
|
|
1765
1765
|
d: J.value[t].path,
|
|
1766
1766
|
fill: `url(#${e.pattern})`,
|
|
1767
1767
|
stroke: L.value.style.chart.layout.donut.borderColorAuto ? L.value.style.chart.backgroundColor : L.value.style.chart.layout.donut.borderColor,
|
|
1768
1768
|
"stroke-width": L.value.style.chart.layout.donut.borderWidth,
|
|
1769
1769
|
filter: fi(t),
|
|
1770
|
-
style:
|
|
1770
|
+
style: w({
|
|
1771
1771
|
transition: R.value || !L.value.serieToggleAnimation.show ? "none" : `all ${L.value.serieToggleAnimation.durationMs}ms ease-in-out`,
|
|
1772
1772
|
transformOrigin: "center"
|
|
1773
1773
|
})
|
|
1774
|
-
}, null, 12,
|
|
1775
|
-
(
|
|
1774
|
+
}, null, 12, It))), 256))])) : y("", !0),
|
|
1775
|
+
(T(!0), b(_, null, D(q.value, (e, t) => (T(), b("path", {
|
|
1776
1776
|
class: "vue-ui-donut-arc-path",
|
|
1777
1777
|
d: J.value[t].path,
|
|
1778
1778
|
fill: L.value.style.chart.useGradient ? `url(#polar_gradient_${t}_${F.value})` : e.color,
|
|
1779
1779
|
stroke: L.value.style.chart.layout.donut.borderColorAuto ? L.value.style.chart.backgroundColor : L.value.style.chart.layout.donut.borderColor,
|
|
1780
1780
|
"stroke-width": L.value.style.chart.layout.donut.borderWidth,
|
|
1781
1781
|
filter: fi(t),
|
|
1782
|
-
style:
|
|
1783
|
-
}, null, 12,
|
|
1784
|
-
])) : (
|
|
1782
|
+
style: w({ transition: R.value || !L.value.serieToggleAnimation.show ? "none" : `all ${L.value.serieToggleAnimation.durationMs}ms ease-in-out` })
|
|
1783
|
+
}, null, 12, Lt))), 256))
|
|
1784
|
+
])) : (T(), b("g", Rt, [t.$slots.pattern ? (T(), b("circle", {
|
|
1785
1785
|
key: 0,
|
|
1786
1786
|
cx: V.value.width / 2,
|
|
1787
1787
|
cy: V.value.height / 2,
|
|
@@ -1789,43 +1789,43 @@ var $e = /* @__PURE__ */ e({ default: () => xn }), et = ["id"], tt = ["id"], nt
|
|
|
1789
1789
|
fill: `url(#pattern_${F.value}_${K.value[0].patternIndex})`,
|
|
1790
1790
|
stroke: L.value.style.chart.backgroundColor,
|
|
1791
1791
|
"stroke-width": L.value.style.chart.layout.donut.borderWidth
|
|
1792
|
-
}, null, 8,
|
|
1792
|
+
}, null, 8, zt)) : y("", !0), x("circle", {
|
|
1793
1793
|
cx: V.value.width / 2,
|
|
1794
1794
|
cy: V.value.height / 2,
|
|
1795
1795
|
r: G.value,
|
|
1796
1796
|
fill: L.value.style.chart.useGradient ? `url(#polar_gradient_0_${F.value})` : K.value[0].color,
|
|
1797
1797
|
stroke: L.value.style.chart.backgroundColor,
|
|
1798
1798
|
"stroke-width": L.value.style.chart.layout.donut.borderWidth
|
|
1799
|
-
}, null, 8,
|
|
1799
|
+
}, null, 8, Bt)]))], 64)) : (T(), b(_, { key: 9 }, [L.value.type === "classic" && !Xr.value ? (T(), b("g", Vt, [(T(!0), b(_, null, D(Zr.value, (e, t) => (T(), b("path", {
|
|
1800
1800
|
class: "vue-ui-donut-arc-path",
|
|
1801
1801
|
d: e.arcSlice,
|
|
1802
1802
|
fill: e.color,
|
|
1803
1803
|
stroke: L.value.style.chart.backgroundColor,
|
|
1804
1804
|
"stroke-width": L.value.style.chart.layout.donut.borderWidth
|
|
1805
|
-
}, null, 8,
|
|
1805
|
+
}, null, 8, Ht))), 256))])) : y("", !0), x("circle", {
|
|
1806
1806
|
cx: V.value.width / 2,
|
|
1807
1807
|
cy: V.value.height / 2,
|
|
1808
1808
|
r: G.value <= 0 ? 10 : G.value,
|
|
1809
1809
|
fill: "transparent",
|
|
1810
1810
|
stroke: L.value.style.chart.backgroundColor
|
|
1811
|
-
}, null, 8,
|
|
1812
|
-
L.value.style.chart.useGradient && L.value.type === "classic" ? (
|
|
1811
|
+
}, null, 8, Ut)], 64)),
|
|
1812
|
+
L.value.style.chart.useGradient && L.value.type === "classic" ? (T(), b("circle", {
|
|
1813
1813
|
key: 10,
|
|
1814
1814
|
cx: V.value.width / 2,
|
|
1815
1815
|
cy: V.value.height / 2,
|
|
1816
1816
|
r: G.value <= 0 ? 10 : G.value,
|
|
1817
1817
|
fill: `url(#gradient_${F.value})`
|
|
1818
|
-
}, null, 8,
|
|
1819
|
-
|
|
1818
|
+
}, null, 8, Wt)) : y("", !0),
|
|
1819
|
+
x("circle", {
|
|
1820
1820
|
ref_key: "circle_hollow",
|
|
1821
|
-
ref:
|
|
1821
|
+
ref: Ln,
|
|
1822
1822
|
style: { pointerEvents: "none" },
|
|
1823
1823
|
fill: "none",
|
|
1824
1824
|
cx: V.value.width / 2,
|
|
1825
1825
|
cy: V.value.height / 2,
|
|
1826
1826
|
r: Math.max(.1, Pr.value * 1.7)
|
|
1827
|
-
}, null, 8,
|
|
1828
|
-
Z.value ? (
|
|
1827
|
+
}, null, 8, Gt),
|
|
1828
|
+
Z.value ? (T(), b(_, { key: 11 }, [K.value.length > 1 || L.value.type === "classic" ? (T(), b("g", Kt, [(T(!0), b(_, null, D(K.value.filter((e) => !e.ghost), (e, t) => (T(), b("path", {
|
|
1829
1829
|
d: L.value.type === "classic" ? e.arcSlice : J.value[t].path,
|
|
1830
1830
|
stroke: L.value.style.chart.layout.donut.borderColorAuto ? L.value.style.chart.backgroundColor : L.value.style.chart.layout.donut.borderColor,
|
|
1831
1831
|
fill: I.value === t ? L.value.style.chart.layout.donut.selectedColor : "transparent",
|
|
@@ -1840,107 +1840,107 @@ var $e = /* @__PURE__ */ e({ default: () => xn }), et = ["id"], tt = ["id"], nt
|
|
|
1840
1840
|
seriesIndex: e.seriesIndex
|
|
1841
1841
|
}),
|
|
1842
1842
|
onClick: (n) => $(e, t)
|
|
1843
|
-
}, null, 40,
|
|
1843
|
+
}, null, 40, qt))), 256))])) : (T(), b("g", Jt, [x("circle", {
|
|
1844
1844
|
cx: V.value.width / 2,
|
|
1845
1845
|
cy: V.value.height / 2,
|
|
1846
1846
|
r: G.value,
|
|
1847
1847
|
fill: "transparent",
|
|
1848
|
-
onMouseenter:
|
|
1848
|
+
onMouseenter: r[0] ||= (e) => Q({
|
|
1849
1849
|
datapoint: K.value[0],
|
|
1850
1850
|
relativeIndex: 0,
|
|
1851
1851
|
seriesIndex: K.value[0].seriesIndex,
|
|
1852
1852
|
show: !0
|
|
1853
1853
|
}),
|
|
1854
|
-
onMouseleave:
|
|
1854
|
+
onMouseleave: r[1] ||= (e) => ci({
|
|
1855
1855
|
datapoint: K.value[0],
|
|
1856
1856
|
seriesIndex: K.value[0].seriesIndex
|
|
1857
1857
|
}),
|
|
1858
|
-
onClick:
|
|
1859
|
-
}, null, 40,
|
|
1860
|
-
L.value.type === "classic" ? (
|
|
1858
|
+
onClick: r[2] ||= (e) => $(K.value[0], t.i)
|
|
1859
|
+
}, null, 40, Yt)]))], 64)) : y("", !0),
|
|
1860
|
+
L.value.type === "classic" ? (T(), b("g", {
|
|
1861
1861
|
key: 12,
|
|
1862
1862
|
ref_key: "G_hollow",
|
|
1863
|
-
ref:
|
|
1863
|
+
ref: In,
|
|
1864
1864
|
class: "vue-data-ui-donut-hollow-labels"
|
|
1865
1865
|
}, [
|
|
1866
|
-
L.value.style.chart.layout.labels.hollow.total.show ? (
|
|
1866
|
+
L.value.style.chart.layout.labels.hollow.total.show ? (T(), b("text", {
|
|
1867
1867
|
key: 0,
|
|
1868
1868
|
"text-anchor": "middle",
|
|
1869
1869
|
x: V.value.width / 2,
|
|
1870
1870
|
y: V.value.height / 2 - (L.value.style.chart.layout.labels.hollow.average.show ? L.value.style.chart.layout.labels.hollow.total.fontSize : 0) + L.value.style.chart.layout.labels.hollow.total.offsetY,
|
|
1871
1871
|
fill: L.value.style.chart.layout.labels.hollow.total.color,
|
|
1872
1872
|
"font-size": L.value.style.chart.layout.labels.hollow.total.fontSize,
|
|
1873
|
-
style:
|
|
1874
|
-
},
|
|
1875
|
-
L.value.style.chart.layout.labels.hollow.total.show ? (
|
|
1873
|
+
style: w(`font-weight:${L.value.style.chart.layout.labels.hollow.total.bold ? "bold" : ""}`)
|
|
1874
|
+
}, qe(L.value.style.chart.layout.labels.hollow.total.text), 13, Xt)) : y("", !0),
|
|
1875
|
+
L.value.style.chart.layout.labels.hollow.total.show ? (T(), b("text", {
|
|
1876
1876
|
key: 1,
|
|
1877
1877
|
"text-anchor": "middle",
|
|
1878
1878
|
x: V.value.width / 2,
|
|
1879
1879
|
y: V.value.height / 2 + L.value.style.chart.layout.labels.hollow.total.fontSize - (L.value.style.chart.layout.labels.hollow.average.show ? L.value.style.chart.layout.labels.hollow.total.fontSize : 0) + L.value.style.chart.layout.labels.hollow.total.value.offsetY,
|
|
1880
1880
|
fill: L.value.style.chart.layout.labels.hollow.total.value.color,
|
|
1881
1881
|
"font-size": L.value.style.chart.layout.labels.hollow.total.value.fontSize,
|
|
1882
|
-
style:
|
|
1883
|
-
},
|
|
1882
|
+
style: w(`font-weight:${L.value.style.chart.layout.labels.hollow.total.value.bold ? "bold" : ""}`)
|
|
1883
|
+
}, qe(k(m)(L.value.style.chart.layout.labels.hollow.total.value.formatter, Z.value, k(a)({
|
|
1884
1884
|
p: L.value.style.chart.layout.labels.hollow.total.value.prefix,
|
|
1885
1885
|
v: Z.value,
|
|
1886
1886
|
s: L.value.style.chart.layout.labels.hollow.total.value.suffix
|
|
1887
|
-
}))), 13,
|
|
1888
|
-
L.value.style.chart.layout.labels.hollow.average.show ? (
|
|
1887
|
+
}))), 13, Zt)) : y("", !0),
|
|
1888
|
+
L.value.style.chart.layout.labels.hollow.average.show ? (T(), b("text", {
|
|
1889
1889
|
key: 2,
|
|
1890
1890
|
"text-anchor": "middle",
|
|
1891
1891
|
x: V.value.width / 2,
|
|
1892
1892
|
y: V.value.height / 2 + (L.value.style.chart.layout.labels.hollow.total.show ? L.value.style.chart.layout.labels.hollow.average.fontSize : 0) + L.value.style.chart.layout.labels.hollow.average.offsetY,
|
|
1893
1893
|
fill: L.value.style.chart.layout.labels.hollow.average.color,
|
|
1894
1894
|
"font-size": L.value.style.chart.layout.labels.hollow.average.fontSize,
|
|
1895
|
-
style:
|
|
1896
|
-
},
|
|
1897
|
-
L.value.style.chart.layout.labels.hollow.average.show ? (
|
|
1895
|
+
style: w(`font-weight:${L.value.style.chart.layout.labels.hollow.average.bold ? "bold" : ""}`)
|
|
1896
|
+
}, qe(L.value.style.chart.layout.labels.hollow.average.text), 13, Qt)) : y("", !0),
|
|
1897
|
+
L.value.style.chart.layout.labels.hollow.average.show ? (T(), b("text", {
|
|
1898
1898
|
key: 3,
|
|
1899
1899
|
"text-anchor": "middle",
|
|
1900
1900
|
x: V.value.width / 2,
|
|
1901
1901
|
y: V.value.height / 2 + (L.value.style.chart.layout.labels.hollow.total.show ? L.value.style.chart.layout.labels.hollow.average.fontSize : 0) + L.value.style.chart.layout.labels.hollow.average.fontSize + L.value.style.chart.layout.labels.hollow.average.value.offsetY,
|
|
1902
1902
|
fill: L.value.style.chart.layout.labels.hollow.average.value.color,
|
|
1903
1903
|
"font-size": L.value.style.chart.layout.labels.hollow.average.value.fontSize,
|
|
1904
|
-
style:
|
|
1905
|
-
},
|
|
1904
|
+
style: w(`font-weight:${L.value.style.chart.layout.labels.hollow.average.value.bold ? "bold" : ""}`)
|
|
1905
|
+
}, qe(Lr.value || R.value ? "--" : k(m)(L.value.style.chart.layout.labels.hollow.average.value.formatter, k(ie)(ii.value), k(a)({
|
|
1906
1906
|
p: L.value.style.chart.layout.labels.hollow.average.value.prefix,
|
|
1907
|
-
v:
|
|
1907
|
+
v: k(ie)(ii.value),
|
|
1908
1908
|
s: L.value.style.chart.layout.labels.hollow.average.value.suffix,
|
|
1909
1909
|
r: L.value.style.chart.layout.labels.hollow.average.value.rounding
|
|
1910
|
-
}))), 13,
|
|
1911
|
-
], 512)) :
|
|
1912
|
-
(
|
|
1913
|
-
filter: fi(
|
|
1914
|
-
class:
|
|
1910
|
+
}))), 13, $t)) : y("", !0)
|
|
1911
|
+
], 512)) : y("", !0),
|
|
1912
|
+
(T(!0), b(_, null, D(q.value.filter((e) => !e.ghost), (e, r) => (T(), b("g", {
|
|
1913
|
+
filter: fi(r),
|
|
1914
|
+
class: He({ animated: L.value.useCssAnimation }),
|
|
1915
1915
|
key: e.seriesIndex,
|
|
1916
1916
|
opacity: pi(e)
|
|
1917
|
-
}, [L.value.style.chart.layout.labels.dataLabels.useLabelSlots ? (
|
|
1918
|
-
x:
|
|
1919
|
-
y:
|
|
1917
|
+
}, [L.value.style.chart.layout.labels.dataLabels.useLabelSlots ? (T(), b("g", tn, [(T(), b("foreignObject", {
|
|
1918
|
+
x: k(h)(e, !0).anchor === "end" ? k(h)(e).x - 120 : k(h)(e, !0).anchor === "middle" ? k(h)(e).x - 60 : k(h)(e).x,
|
|
1919
|
+
y: k(f)(e) - (yi.value ? 20 : 0),
|
|
1920
1920
|
width: "120",
|
|
1921
1921
|
height: "60",
|
|
1922
1922
|
style: { overflow: "visible" }
|
|
1923
|
-
}, [
|
|
1923
|
+
}, [x("div", null, [O(t.$slots, "dataLabel", Be({ ref_for: !0 }, {
|
|
1924
1924
|
datapoint: e,
|
|
1925
|
-
isBlur: !L.value.useBlurOnHover || [null, void 0].includes(I.value) || I.value ===
|
|
1925
|
+
isBlur: !L.value.useBlurOnHover || [null, void 0].includes(I.value) || I.value === r,
|
|
1926
1926
|
isSafari: yi.value,
|
|
1927
1927
|
isVisible: Y(e) && B.value.dataLabels.show,
|
|
1928
|
-
textAlign:
|
|
1929
|
-
flexAlign:
|
|
1928
|
+
textAlign: k(h)(e, !0, 16, !0).anchor,
|
|
1929
|
+
flexAlign: k(h)(e, !0, 16).anchor,
|
|
1930
1930
|
percentage: ti(e, q.value)
|
|
1931
|
-
}), void 0, !0)])], 8,
|
|
1931
|
+
}), void 0, !0)])], 8, nn))])) : (T(), b("g", rn, [L.value.type === "classic" ? (T(), b(_, { key: 0 }, [Y(e) && B.value.dataLabels.show ? (T(), b("circle", {
|
|
1932
1932
|
key: 0,
|
|
1933
|
-
cx:
|
|
1934
|
-
cy:
|
|
1933
|
+
cx: k(X)[r]?.markerX ?? k(h)(e).x,
|
|
1934
|
+
cy: k(X)[r]?.markerY ?? k(f)(e) - 3.5,
|
|
1935
1935
|
fill: e.color,
|
|
1936
1936
|
stroke: L.value.style.chart.backgroundColor,
|
|
1937
1937
|
"stroke-width": 1,
|
|
1938
1938
|
r: 3,
|
|
1939
|
-
filter: !L.value.useBlurOnHover || [null, void 0].includes(I.value) || I.value ===
|
|
1940
|
-
onClick: (t) => $(e,
|
|
1939
|
+
filter: !L.value.useBlurOnHover || [null, void 0].includes(I.value) || I.value === r ? "" : `url(#blur_${F.value})`,
|
|
1940
|
+
onClick: (t) => $(e, r),
|
|
1941
1941
|
onMouseenter: (t) => Q({
|
|
1942
1942
|
datapoint: e,
|
|
1943
|
-
relativeIndex:
|
|
1943
|
+
relativeIndex: r,
|
|
1944
1944
|
seriesIndex: e.seriesIndex,
|
|
1945
1945
|
show: !0
|
|
1946
1946
|
}),
|
|
@@ -1948,16 +1948,16 @@ var $e = /* @__PURE__ */ e({ default: () => xn }), et = ["id"], tt = ["id"], nt
|
|
|
1948
1948
|
datapoint: e,
|
|
1949
1949
|
seriesIndex: e.seriesIndex
|
|
1950
1950
|
})
|
|
1951
|
-
}, null, 40,
|
|
1951
|
+
}, null, 40, an)) : y("", !0), L.value.style.chart.layout.labels.dataLabels.oneLine || k(X)[r] ? Qe((T(), b("text", {
|
|
1952
1952
|
key: 1,
|
|
1953
1953
|
class: "vue-data-ui-datalabel-inline",
|
|
1954
|
-
"text-anchor":
|
|
1955
|
-
x:
|
|
1956
|
-
y:
|
|
1957
|
-
onClick: (t) => $(e,
|
|
1954
|
+
"text-anchor": k(X)[r]?.textAnchor || k(h)(e, !0, 12).anchor,
|
|
1955
|
+
x: k(X)[r]?.labelX ?? k(h)(e, !0, 12).x,
|
|
1956
|
+
y: k(X)[r]?.labelY ?? k(f)(e),
|
|
1957
|
+
onClick: (t) => $(e, r),
|
|
1958
1958
|
onMouseenter: (t) => Q({
|
|
1959
1959
|
datapoint: e,
|
|
1960
|
-
relativeIndex:
|
|
1960
|
+
relativeIndex: r,
|
|
1961
1961
|
seriesIndex: e.seriesIndex,
|
|
1962
1962
|
show: !0
|
|
1963
1963
|
}),
|
|
@@ -1965,19 +1965,19 @@ var $e = /* @__PURE__ */ e({ default: () => xn }), et = ["id"], tt = ["id"], nt
|
|
|
1965
1965
|
datapoint: e,
|
|
1966
1966
|
seriesIndex: e.seriesIndex
|
|
1967
1967
|
}),
|
|
1968
|
-
innerHTML: ui(e,
|
|
1969
|
-
}, null, 40,
|
|
1968
|
+
innerHTML: ui(e, r, !!k(X)[r])
|
|
1969
|
+
}, null, 40, on)), [[Xe, Y(e) && B.value.dataLabels.show]]) : (T(), b(_, { key: 2 }, [Qe(x("text", {
|
|
1970
1970
|
class: "vue-data-ui-datalabel-value",
|
|
1971
|
-
"text-anchor":
|
|
1972
|
-
x:
|
|
1973
|
-
y:
|
|
1971
|
+
"text-anchor": k(X)[r]?.textAnchor || k(h)(e, !0, 12).anchor,
|
|
1972
|
+
x: k(X)[r]?.labelX ?? k(h)(e, !0, 12).x,
|
|
1973
|
+
y: k(X)[r]?.labelY ?? k(f)(e),
|
|
1974
1974
|
fill: L.value.style.chart.layout.labels.percentage.color,
|
|
1975
1975
|
"font-size": tr.value + "px",
|
|
1976
|
-
style:
|
|
1977
|
-
onClick: (t) => $(e,
|
|
1976
|
+
style: w(`font-weight:${L.value.style.chart.layout.labels.percentage.bold ? "bold" : ""}`),
|
|
1977
|
+
onClick: (t) => $(e, r),
|
|
1978
1978
|
onMouseenter: (t) => Q({
|
|
1979
1979
|
datapoint: e,
|
|
1980
|
-
relativeIndex:
|
|
1980
|
+
relativeIndex: r,
|
|
1981
1981
|
seriesIndex: e.seriesIndex,
|
|
1982
1982
|
show: !0
|
|
1983
1983
|
}),
|
|
@@ -1985,18 +1985,18 @@ var $e = /* @__PURE__ */ e({ default: () => xn }), et = ["id"], tt = ["id"], nt
|
|
|
1985
1985
|
datapoint: e,
|
|
1986
1986
|
seriesIndex: e.seriesIndex
|
|
1987
1987
|
})
|
|
1988
|
-
},
|
|
1988
|
+
}, qe(Si(e)), 45, sn), [[Xe, Y(e) && B.value.dataLabels.show]]), Qe(x("text", {
|
|
1989
1989
|
class: "vue-data-ui-datalabel-name",
|
|
1990
|
-
"text-anchor":
|
|
1991
|
-
x:
|
|
1992
|
-
y: (
|
|
1990
|
+
"text-anchor": k(X)[r]?.textAnchor || k(h)(e).anchor,
|
|
1991
|
+
x: k(X)[r]?.labelX ?? k(h)(e, !0, 12).x,
|
|
1992
|
+
y: (k(X)[r]?.labelY ?? k(f)(e)) + P.value * 1.2,
|
|
1993
1993
|
fill: L.value.style.chart.layout.labels.name.color,
|
|
1994
1994
|
"font-size": P.value + "px",
|
|
1995
|
-
style:
|
|
1996
|
-
onClick: (t) => $(e,
|
|
1995
|
+
style: w(`font-weight:${L.value.style.chart.layout.labels.name.bold ? "bold" : ""}`),
|
|
1996
|
+
onClick: (t) => $(e, r),
|
|
1997
1997
|
onMouseenter: (t) => Q({
|
|
1998
1998
|
datapoint: e,
|
|
1999
|
-
relativeIndex:
|
|
1999
|
+
relativeIndex: r,
|
|
2000
2000
|
seriesIndex: e.seriesIndex,
|
|
2001
2001
|
show: !0
|
|
2002
2002
|
}),
|
|
@@ -2004,25 +2004,25 @@ var $e = /* @__PURE__ */ e({ default: () => xn }), et = ["id"], tt = ["id"], nt
|
|
|
2004
2004
|
datapoint: e,
|
|
2005
2005
|
seriesIndex: e.seriesIndex
|
|
2006
2006
|
}),
|
|
2007
|
-
innerHTML:
|
|
2007
|
+
innerHTML: k(te)({
|
|
2008
2008
|
content: e.name,
|
|
2009
2009
|
fontSize: P.value,
|
|
2010
2010
|
fill: L.value.style.chart.layout.labels.name.color,
|
|
2011
|
-
x:
|
|
2012
|
-
y: (
|
|
2011
|
+
x: k(X)[r]?.labelX ?? k(h)(e, !0, 12).x,
|
|
2012
|
+
y: (k(X)[r]?.labelY ?? k(f)(e)) + P.value
|
|
2013
2013
|
})
|
|
2014
|
-
}, null, 44,
|
|
2014
|
+
}, null, 44, cn), [[Xe, Y(e, !0, 12) && B.value.dataLabels.show && L.value.style.chart.layout.labels.name.show]])], 64))], 64)) : y("", !0), L.value.type === "polar" ? (T(), b(_, { key: 1 }, [Y(e) && B.value.dataLabels.show ? (T(), b("circle", {
|
|
2015
2015
|
key: 0,
|
|
2016
|
-
cx:
|
|
2017
|
-
initX: J.value[
|
|
2018
|
-
initY: J.value[
|
|
2016
|
+
cx: k(n)({
|
|
2017
|
+
initX: J.value[r].middlePoint.x,
|
|
2018
|
+
initY: J.value[r].middlePoint.y,
|
|
2019
2019
|
offset: 24,
|
|
2020
2020
|
centerX: V.value.width / 2,
|
|
2021
2021
|
centerY: V.value.height / 2
|
|
2022
2022
|
}).x,
|
|
2023
|
-
cy:
|
|
2024
|
-
initX: J.value[
|
|
2025
|
-
initY: J.value[
|
|
2023
|
+
cy: k(n)({
|
|
2024
|
+
initX: J.value[r].middlePoint.x,
|
|
2025
|
+
initY: J.value[r].middlePoint.y,
|
|
2026
2026
|
offset: 24,
|
|
2027
2027
|
centerX: V.value.width / 2,
|
|
2028
2028
|
centerY: V.value.height / 2
|
|
@@ -2031,11 +2031,11 @@ var $e = /* @__PURE__ */ e({ default: () => xn }), et = ["id"], tt = ["id"], nt
|
|
|
2031
2031
|
stroke: L.value.style.chart.backgroundColor,
|
|
2032
2032
|
"stroke-width": 1,
|
|
2033
2033
|
r: 3,
|
|
2034
|
-
filter: !L.value.useBlurOnHover || [null, void 0].includes(I.value) || I.value ===
|
|
2035
|
-
onClick: (t) => $(e,
|
|
2034
|
+
filter: !L.value.useBlurOnHover || [null, void 0].includes(I.value) || I.value === r ? "" : `url(#blur_${F.value})`,
|
|
2035
|
+
onClick: (t) => $(e, r),
|
|
2036
2036
|
onMouseenter: (t) => Q({
|
|
2037
2037
|
datapoint: e,
|
|
2038
|
-
relativeIndex:
|
|
2038
|
+
relativeIndex: r,
|
|
2039
2039
|
seriesIndex: e.seriesIndex,
|
|
2040
2040
|
show: !0
|
|
2041
2041
|
}),
|
|
@@ -2043,30 +2043,30 @@ var $e = /* @__PURE__ */ e({ default: () => xn }), et = ["id"], tt = ["id"], nt
|
|
|
2043
2043
|
datapoint: e,
|
|
2044
2044
|
seriesIndex: e.seriesIndex
|
|
2045
2045
|
}),
|
|
2046
|
-
style:
|
|
2047
|
-
}, null, 44,
|
|
2046
|
+
style: w({ transition: R.value || !L.value.serieToggleAnimation.show ? "none" : `all ${L.value.serieToggleAnimation.durationMs}ms ease-in-out` })
|
|
2047
|
+
}, null, 44, ln)) : y("", !0), L.value.style.chart.layout.labels.dataLabels.oneLine ? Qe((T(), b("text", {
|
|
2048
2048
|
key: 1,
|
|
2049
2049
|
class: "vue-data-ui-datalabel-inline",
|
|
2050
|
-
"text-anchor": Qr(J.value[
|
|
2051
|
-
x:
|
|
2052
|
-
initX: J.value[
|
|
2053
|
-
initY: J.value[
|
|
2050
|
+
"text-anchor": Qr(J.value[r].middlePoint),
|
|
2051
|
+
x: k(n)({
|
|
2052
|
+
initX: J.value[r].middlePoint.x,
|
|
2053
|
+
initY: J.value[r].middlePoint.y,
|
|
2054
2054
|
offset: 42,
|
|
2055
2055
|
centerX: V.value.width / 2,
|
|
2056
2056
|
centerY: V.value.height / 2
|
|
2057
2057
|
}).x,
|
|
2058
|
-
y:
|
|
2059
|
-
initX: J.value[
|
|
2060
|
-
initY: J.value[
|
|
2058
|
+
y: k(n)({
|
|
2059
|
+
initX: J.value[r].middlePoint.x,
|
|
2060
|
+
initY: J.value[r].middlePoint.y,
|
|
2061
2061
|
offset: 42,
|
|
2062
2062
|
centerX: V.value.width / 2,
|
|
2063
2063
|
centerY: V.value.height / 2
|
|
2064
2064
|
}).y,
|
|
2065
|
-
style:
|
|
2066
|
-
onClick: (t) => $(e,
|
|
2065
|
+
style: w({ transition: R.value || !L.value.serieToggleAnimation.show ? "none" : `all ${L.value.serieToggleAnimation.durationMs}ms ease-in-out` }),
|
|
2066
|
+
onClick: (t) => $(e, r),
|
|
2067
2067
|
onMouseenter: (t) => Q({
|
|
2068
2068
|
datapoint: e,
|
|
2069
|
-
relativeIndex:
|
|
2069
|
+
relativeIndex: r,
|
|
2070
2070
|
seriesIndex: e.seriesIndex,
|
|
2071
2071
|
show: !0
|
|
2072
2072
|
}),
|
|
@@ -2074,35 +2074,35 @@ var $e = /* @__PURE__ */ e({ default: () => xn }), et = ["id"], tt = ["id"], nt
|
|
|
2074
2074
|
datapoint: e,
|
|
2075
2075
|
seriesIndex: e.seriesIndex
|
|
2076
2076
|
}),
|
|
2077
|
-
innerHTML: di(e,
|
|
2078
|
-
}, null, 44,
|
|
2077
|
+
innerHTML: di(e, r)
|
|
2078
|
+
}, null, 44, un)), [[Xe, Y(e) && B.value.dataLabels.show]]) : (T(), b(_, { key: 2 }, [Y(e) && B.value.dataLabels.show ? (T(), b("text", {
|
|
2079
2079
|
key: 0,
|
|
2080
2080
|
class: "vue-data-ui-datalabel-value",
|
|
2081
|
-
"text-anchor": Qr(J.value[
|
|
2082
|
-
x:
|
|
2083
|
-
initX: J.value[
|
|
2084
|
-
initY: J.value[
|
|
2081
|
+
"text-anchor": Qr(J.value[r].middlePoint),
|
|
2082
|
+
x: k(n)({
|
|
2083
|
+
initX: J.value[r].middlePoint.x,
|
|
2084
|
+
initY: J.value[r].middlePoint.y,
|
|
2085
2085
|
offset: 42,
|
|
2086
2086
|
centerX: V.value.width / 2,
|
|
2087
2087
|
centerY: V.value.height / 2
|
|
2088
2088
|
}).x,
|
|
2089
|
-
y:
|
|
2090
|
-
initX: J.value[
|
|
2091
|
-
initY: J.value[
|
|
2089
|
+
y: k(n)({
|
|
2090
|
+
initX: J.value[r].middlePoint.x,
|
|
2091
|
+
initY: J.value[r].middlePoint.y,
|
|
2092
2092
|
offset: 42,
|
|
2093
2093
|
centerX: V.value.width / 2,
|
|
2094
2094
|
centerY: V.value.height / 2
|
|
2095
2095
|
}).y,
|
|
2096
2096
|
fill: L.value.style.chart.layout.labels.percentage.color,
|
|
2097
2097
|
"font-size": tr.value,
|
|
2098
|
-
style:
|
|
2098
|
+
style: w({
|
|
2099
2099
|
transition: R.value || !L.value.serieToggleAnimation.show ? "none" : `all ${L.value.serieToggleAnimation.durationMs}ms ease-in-out`,
|
|
2100
2100
|
fontWeight: L.value.style.chart.layout.labels.percentage.bold ? "bold" : "normal"
|
|
2101
2101
|
}),
|
|
2102
|
-
onClick: (t) => $(e,
|
|
2102
|
+
onClick: (t) => $(e, r),
|
|
2103
2103
|
onMouseenter: (t) => Q({
|
|
2104
2104
|
datapoint: e,
|
|
2105
|
-
relativeIndex:
|
|
2105
|
+
relativeIndex: r,
|
|
2106
2106
|
seriesIndex: e.seriesIndex,
|
|
2107
2107
|
show: !0
|
|
2108
2108
|
}),
|
|
@@ -2110,34 +2110,34 @@ var $e = /* @__PURE__ */ e({ default: () => xn }), et = ["id"], tt = ["id"], nt
|
|
|
2110
2110
|
datapoint: e,
|
|
2111
2111
|
seriesIndex: e.seriesIndex
|
|
2112
2112
|
})
|
|
2113
|
-
},
|
|
2113
|
+
}, qe(Si(e)), 45, dn)) : y("", !0), Y(e, !0, 12) && B.value.dataLabels.show && L.value.style.chart.layout.labels.name.show ? (T(), b("text", {
|
|
2114
2114
|
key: 1,
|
|
2115
2115
|
class: "vue-data-ui-datalabel-name",
|
|
2116
|
-
"text-anchor": Qr(J.value[
|
|
2117
|
-
x:
|
|
2118
|
-
initX: J.value[
|
|
2119
|
-
initY: J.value[
|
|
2116
|
+
"text-anchor": Qr(J.value[r].middlePoint),
|
|
2117
|
+
x: k(n)({
|
|
2118
|
+
initX: J.value[r].middlePoint.x,
|
|
2119
|
+
initY: J.value[r].middlePoint.y,
|
|
2120
2120
|
offset: 42,
|
|
2121
2121
|
centerX: V.value.width / 2,
|
|
2122
2122
|
centerY: V.value.height / 2
|
|
2123
2123
|
}).x,
|
|
2124
|
-
y:
|
|
2125
|
-
initX: J.value[
|
|
2126
|
-
initY: J.value[
|
|
2124
|
+
y: k(n)({
|
|
2125
|
+
initX: J.value[r].middlePoint.x,
|
|
2126
|
+
initY: J.value[r].middlePoint.y,
|
|
2127
2127
|
offset: 42,
|
|
2128
2128
|
centerX: V.value.width / 2,
|
|
2129
2129
|
centerY: V.value.height / 2
|
|
2130
2130
|
}).y + P.value * 1.2,
|
|
2131
2131
|
fill: L.value.style.chart.layout.labels.name.color,
|
|
2132
2132
|
"font-size": P.value,
|
|
2133
|
-
style:
|
|
2133
|
+
style: w({
|
|
2134
2134
|
transition: R.value || !L.value.serieToggleAnimation.show ? "none" : `all ${L.value.serieToggleAnimation.durationMs}ms ease-in-out`,
|
|
2135
2135
|
fontWeight: L.value.style.chart.layout.labels.name.bold ? "bold" : "normal"
|
|
2136
2136
|
}),
|
|
2137
|
-
onClick: (t) => $(e,
|
|
2137
|
+
onClick: (t) => $(e, r),
|
|
2138
2138
|
onMouseenter: (t) => Q({
|
|
2139
2139
|
datapoint: e,
|
|
2140
|
-
relativeIndex:
|
|
2140
|
+
relativeIndex: r,
|
|
2141
2141
|
seriesIndex: e.seriesIndex,
|
|
2142
2142
|
show: !0
|
|
2143
2143
|
}),
|
|
@@ -2145,105 +2145,105 @@ var $e = /* @__PURE__ */ e({ default: () => xn }), et = ["id"], tt = ["id"], nt
|
|
|
2145
2145
|
datapoint: e,
|
|
2146
2146
|
seriesIndex: e.seriesIndex
|
|
2147
2147
|
}),
|
|
2148
|
-
innerHTML:
|
|
2148
|
+
innerHTML: k(te)({
|
|
2149
2149
|
content: e.name,
|
|
2150
2150
|
fontSize: P.value,
|
|
2151
2151
|
fill: L.value.style.chart.layout.labels.name.color,
|
|
2152
|
-
x:
|
|
2153
|
-
initX: J.value[
|
|
2154
|
-
initY: J.value[
|
|
2152
|
+
x: k(n)({
|
|
2153
|
+
initX: J.value[r].middlePoint.x,
|
|
2154
|
+
initY: J.value[r].middlePoint.y,
|
|
2155
2155
|
offset: 42,
|
|
2156
2156
|
centerX: V.value.width / 2,
|
|
2157
2157
|
centerY: V.value.height / 2
|
|
2158
2158
|
}).x,
|
|
2159
|
-
y:
|
|
2160
|
-
initX: J.value[
|
|
2161
|
-
initY: J.value[
|
|
2159
|
+
y: k(n)({
|
|
2160
|
+
initX: J.value[r].middlePoint.x,
|
|
2161
|
+
initY: J.value[r].middlePoint.y,
|
|
2162
2162
|
offset: 42,
|
|
2163
2163
|
centerX: V.value.width / 2,
|
|
2164
2164
|
centerY: V.value.height / 2
|
|
2165
2165
|
}).y + P.value * 1.2
|
|
2166
2166
|
})
|
|
2167
|
-
}, null, 44,
|
|
2167
|
+
}, null, 44, fn)) : y("", !0)], 64))], 64)) : y("", !0)])), B.value.dataLabels.show && L.value.style.chart.comments.show && e.comment ? (T(), b("g", pn, [Y(e) && L.value.type === "classic" ? (T(), b("foreignObject", {
|
|
2168
2168
|
key: 0,
|
|
2169
|
-
x: L.value.style.chart.comments.offsetX + (
|
|
2170
|
-
y:
|
|
2169
|
+
x: L.value.style.chart.comments.offsetX + (k(h)(e, !0).anchor === "end" ? k(h)(e).x - L.value.style.chart.comments.width : k(h)(e, !0).anchor === "middle" ? k(h)(e).x - L.value.style.chart.comments.width / 2 : k(h)(e).x),
|
|
2170
|
+
y: k(f)(e) + 24 + L.value.style.chart.comments.offsetY,
|
|
2171
2171
|
width: L.value.style.chart.comments.width,
|
|
2172
2172
|
height: "200",
|
|
2173
2173
|
style: {
|
|
2174
2174
|
overflow: "visible",
|
|
2175
2175
|
"pointer-events": "none"
|
|
2176
2176
|
}
|
|
2177
|
-
}, [
|
|
2177
|
+
}, [x("div", null, [O(t.$slots, "plot-comment", { plot: {
|
|
2178
2178
|
...e,
|
|
2179
|
-
textAlign:
|
|
2180
|
-
flexAlign:
|
|
2179
|
+
textAlign: k(h)(e, !0, 16, !0).anchor,
|
|
2180
|
+
flexAlign: k(h)(e, !0, 16).anchor,
|
|
2181
2181
|
isFirstLoad: R.value
|
|
2182
|
-
} }, void 0, !0)])], 8,
|
|
2182
|
+
} }, void 0, !0)])], 8, mn)) : y("", !0), Y(e) && L.value.type === "polar" ? (T(), b("foreignObject", {
|
|
2183
2183
|
key: 1,
|
|
2184
|
-
x: L.value.style.chart.comments.offsetX + (Qr(J.value[
|
|
2185
|
-
initX: J.value[
|
|
2186
|
-
initY: J.value[
|
|
2184
|
+
x: L.value.style.chart.comments.offsetX + (Qr(J.value[r].middlePoint) === "end" ? k(n)({
|
|
2185
|
+
initX: J.value[r].middlePoint.x,
|
|
2186
|
+
initY: J.value[r].middlePoint.y,
|
|
2187
2187
|
offset: 42,
|
|
2188
2188
|
centerX: V.value.width / 2,
|
|
2189
2189
|
centerY: V.value.height / 2
|
|
2190
|
-
}).x - L.value.style.chart.comments.width : Qr(J.value[
|
|
2191
|
-
initX: J.value[
|
|
2192
|
-
initY: J.value[
|
|
2190
|
+
}).x - L.value.style.chart.comments.width : Qr(J.value[r].middlePoint) === "middle" ? k(n)({
|
|
2191
|
+
initX: J.value[r].middlePoint.x,
|
|
2192
|
+
initY: J.value[r].middlePoint.y,
|
|
2193
2193
|
offset: 42,
|
|
2194
2194
|
centerX: V.value.width / 2,
|
|
2195
2195
|
centerY: V.value.height / 2
|
|
2196
|
-
}).x - L.value.style.chart.comments.width / 2 :
|
|
2197
|
-
initX: J.value[
|
|
2198
|
-
initY: J.value[
|
|
2196
|
+
}).x - L.value.style.chart.comments.width / 2 : k(n)({
|
|
2197
|
+
initX: J.value[r].middlePoint.x,
|
|
2198
|
+
initY: J.value[r].middlePoint.y,
|
|
2199
2199
|
offset: 42,
|
|
2200
2200
|
centerX: V.value.width / 2,
|
|
2201
2201
|
centerY: V.value.height / 2
|
|
2202
2202
|
}).x),
|
|
2203
|
-
y: $r(J.value[
|
|
2203
|
+
y: $r(J.value[r]) + L.value.style.chart.comments.offsetY,
|
|
2204
2204
|
width: L.value.style.chart.comments.width,
|
|
2205
2205
|
height: "200",
|
|
2206
|
-
style:
|
|
2206
|
+
style: w({
|
|
2207
2207
|
transition: R.value || !L.value.serieToggleAnimation.show ? "none" : `all ${L.value.serieToggleAnimation.durationMs}ms ease-in-out`,
|
|
2208
2208
|
overflow: "visible",
|
|
2209
2209
|
pointerEvents: "none"
|
|
2210
2210
|
})
|
|
2211
|
-
}, [
|
|
2211
|
+
}, [x("div", null, [O(t.$slots, "plot-comment", { plot: {
|
|
2212
2212
|
...e,
|
|
2213
|
-
textAlign: Qr(J.value[
|
|
2214
|
-
flexAlign: Qr(J.value[
|
|
2213
|
+
textAlign: Qr(J.value[r].middlePoint),
|
|
2214
|
+
flexAlign: Qr(J.value[r].middlePoint),
|
|
2215
2215
|
isFirstLoad: R.value
|
|
2216
|
-
} }, void 0, !0)])], 12,
|
|
2217
|
-
|
|
2216
|
+
} }, void 0, !0)])], 12, hn)) : y("", !0)])) : y("", !0)], 10, en))), 128)),
|
|
2217
|
+
O(t.$slots, "svg", { svg: {
|
|
2218
2218
|
...V.value,
|
|
2219
2219
|
datapoints: K.value,
|
|
2220
|
-
isPrintingImg:
|
|
2221
|
-
isPrintingSvg:
|
|
2220
|
+
isPrintingImg: k(Or) || k(kr) || Xn.value,
|
|
2221
|
+
isPrintingSvg: Zn.value
|
|
2222
2222
|
} }, void 0, !0)
|
|
2223
|
-
], 512)], 46,
|
|
2223
|
+
], 512)], 46, at)), t.$slots.hint ? (T(), b("div", gn, [O(t.$slots, "hint", C(S({
|
|
2224
2224
|
hint: L.value.a11y.translations.keyboardNavigation,
|
|
2225
2225
|
isVisible: er.value
|
|
2226
|
-
})), void 0, !0)])) :
|
|
2227
|
-
t.$slots.watermark ? (
|
|
2228
|
-
|
|
2229
|
-
|
|
2226
|
+
})), void 0, !0)])) : y("", !0)]),
|
|
2227
|
+
t.$slots.watermark ? (T(), b("div", _n, [O(t.$slots, "watermark", C(S({ isPrinting: k(Or) || k(kr) || Xn.value || Zn.value })), void 0, !0)])) : y("", !0),
|
|
2228
|
+
x("div", { id: `legend-bottom-${F.value}` }, null, 8, vn),
|
|
2229
|
+
qn.value && (L.value.style.chart.legend.show || t.$slots.legend) ? (T(), Fe(Pe, {
|
|
2230
2230
|
key: 6,
|
|
2231
2231
|
to: L.value.style.chart.legend.position === "top" ? `#legend-top-${F.value}` : `#legend-bottom-${F.value}`
|
|
2232
|
-
}, [
|
|
2232
|
+
}, [x("div", {
|
|
2233
2233
|
ref_key: "chartLegend",
|
|
2234
|
-
ref:
|
|
2235
|
-
}, [
|
|
2236
|
-
key: `legend_${
|
|
2234
|
+
ref: zn
|
|
2235
|
+
}, [O(t.$slots, "legend", { legend: Jr.value }, () => [L.value.style.chart.legend.show ? (T(), Fe(Ne, {
|
|
2236
|
+
key: `legend_${Kn.value}`,
|
|
2237
2237
|
legendSet: Jr.value,
|
|
2238
2238
|
config: Yr.value,
|
|
2239
|
-
onClickMarker:
|
|
2239
|
+
onClickMarker: r[3] ||= ({ i: e }) => Hr(e),
|
|
2240
2240
|
isCursorPointer: fr.value
|
|
2241
|
-
},
|
|
2242
|
-
item:
|
|
2243
|
-
style:
|
|
2241
|
+
}, Ie({
|
|
2242
|
+
item: A(({ legend: e, index: t }) => [x("div", {
|
|
2243
|
+
style: w(`opacity:${W.value.includes(t) ? .5 : 1}`),
|
|
2244
2244
|
onClick: (t) => e.segregate()
|
|
2245
|
-
},
|
|
2246
|
-
legendToggle:
|
|
2245
|
+
}, qe(e.display), 13, yn)]),
|
|
2246
|
+
legendToggle: A(() => [Jr.value.length > 2 && L.value.style.chart.legend.selectAllToggle.show && !k(mr) ? (T(), Fe(Ee, {
|
|
2247
2247
|
key: 0,
|
|
2248
2248
|
backgroundColor: L.value.style.chart.legend.selectAllToggle.backgroundColor,
|
|
2249
2249
|
color: L.value.style.chart.legend.selectAllToggle.color,
|
|
@@ -2257,11 +2257,11 @@ var $e = /* @__PURE__ */ e({ default: () => xn }), et = ["id"], tt = ["id"], nt
|
|
|
2257
2257
|
"fontSize",
|
|
2258
2258
|
"checked",
|
|
2259
2259
|
"isCursorPointer"
|
|
2260
|
-
])) :
|
|
2260
|
+
])) : y("", !0)]),
|
|
2261
2261
|
_: 2
|
|
2262
2262
|
}, [t.$slots.pattern ? {
|
|
2263
2263
|
name: "legend-pattern",
|
|
2264
|
-
fn:
|
|
2264
|
+
fn: A(({ legend: e, index: t }) => [Re(Se, {
|
|
2265
2265
|
shape: e.shape,
|
|
2266
2266
|
radius: 30,
|
|
2267
2267
|
stroke: "none",
|
|
@@ -2276,20 +2276,20 @@ var $e = /* @__PURE__ */ e({ default: () => xn }), et = ["id"], tt = ["id"], nt
|
|
|
2276
2276
|
"legendSet",
|
|
2277
2277
|
"config",
|
|
2278
2278
|
"isCursorPointer"
|
|
2279
|
-
])) :
|
|
2280
|
-
t.$slots.source ? (
|
|
2279
|
+
])) : y("", !0)], !0)], 512)], 8, ["to"])) : y("", !0),
|
|
2280
|
+
t.$slots.source ? (T(), b("div", {
|
|
2281
2281
|
key: 7,
|
|
2282
2282
|
ref_key: "source",
|
|
2283
|
-
ref:
|
|
2283
|
+
ref: Hn,
|
|
2284
2284
|
dir: "auto"
|
|
2285
|
-
}, [
|
|
2286
|
-
t.$slots.hollow ? (
|
|
2285
|
+
}, [O(t.$slots, "source", {}, void 0, !0)], 512)) : y("", !0),
|
|
2286
|
+
t.$slots.hollow ? (T(), b("div", bn, [O(t.$slots, "hollow", C(S({
|
|
2287
2287
|
total: Z.value,
|
|
2288
2288
|
average: ii.value,
|
|
2289
2289
|
dataset: H.value,
|
|
2290
2290
|
...V.value
|
|
2291
|
-
})), void 0, !0)])) :
|
|
2292
|
-
|
|
2291
|
+
})), void 0, !0)])) : y("", !0),
|
|
2292
|
+
Re(k(Sn), {
|
|
2293
2293
|
teleportTo: L.value.style.chart.tooltip.teleportTo,
|
|
2294
2294
|
show: B.value.showTooltip && cr.value,
|
|
2295
2295
|
backgroundColor: L.value.style.chart.tooltip.backgroundColor,
|
|
@@ -2302,7 +2302,7 @@ var $e = /* @__PURE__ */ e({ default: () => xn }), et = ["id"], tt = ["id"], nt
|
|
|
2302
2302
|
position: L.value.style.chart.tooltip.position,
|
|
2303
2303
|
offsetX: L.value.style.chart.tooltip.offsetX,
|
|
2304
2304
|
offsetY: L.value.style.chart.tooltip.offsetY,
|
|
2305
|
-
parent:
|
|
2305
|
+
parent: M.value,
|
|
2306
2306
|
content: lr.value,
|
|
2307
2307
|
isCustom: si.value,
|
|
2308
2308
|
isFullscreen: _i.value,
|
|
@@ -2313,9 +2313,9 @@ var $e = /* @__PURE__ */ e({ default: () => xn }), et = ["id"], tt = ["id"], nt
|
|
|
2313
2313
|
isA11yMode: $n.value === "keyboard",
|
|
2314
2314
|
a11yPosition: Qn.value
|
|
2315
2315
|
}, {
|
|
2316
|
-
"tooltip-before":
|
|
2317
|
-
tooltip:
|
|
2318
|
-
"tooltip-after":
|
|
2316
|
+
"tooltip-before": A(() => [O(t.$slots, "tooltip-before", C(S({ ...oi.value })), void 0, !0)]),
|
|
2317
|
+
tooltip: A(() => [O(t.$slots, "tooltip", C(S({ ...oi.value })), void 0, !0)]),
|
|
2318
|
+
"tooltip-after": A(() => [O(t.$slots, "tooltip-after", C(S({ ...oi.value })), void 0, !0)]),
|
|
2319
2319
|
_: 3
|
|
2320
2320
|
}, 8, [
|
|
2321
2321
|
"teleportTo",
|
|
@@ -2341,13 +2341,13 @@ var $e = /* @__PURE__ */ e({ default: () => xn }), et = ["id"], tt = ["id"], nt
|
|
|
2341
2341
|
"isA11yMode",
|
|
2342
2342
|
"a11yPosition"
|
|
2343
2343
|
]),
|
|
2344
|
-
|
|
2344
|
+
Pn.value && L.value.userOptions.buttons.table ? (T(), Fe(Ge(Ai.value.component), Be({ key: 9 }, Ai.value.props, {
|
|
2345
2345
|
ref_key: "tableUnit",
|
|
2346
|
-
ref:
|
|
2346
|
+
ref: Jn,
|
|
2347
2347
|
onClose: ji
|
|
2348
|
-
}),
|
|
2349
|
-
content:
|
|
2350
|
-
key: `table_${
|
|
2348
|
+
}), Ie({
|
|
2349
|
+
content: A(() => [(T(), Fe(k(Tn), {
|
|
2350
|
+
key: `table_${Gn.value}`,
|
|
2351
2351
|
colNames: gi.value.colNames,
|
|
2352
2352
|
head: gi.value.head,
|
|
2353
2353
|
body: gi.value.body,
|
|
@@ -2357,18 +2357,18 @@ var $e = /* @__PURE__ */ e({ default: () => xn }), et = ["id"], tt = ["id"], nt
|
|
|
2357
2357
|
isCursorPointer: fr.value,
|
|
2358
2358
|
onClose: ji
|
|
2359
2359
|
}, {
|
|
2360
|
-
th:
|
|
2360
|
+
th: A(({ th: e }) => [x("div", {
|
|
2361
2361
|
innerHTML: e,
|
|
2362
2362
|
style: {
|
|
2363
2363
|
display: "flex",
|
|
2364
2364
|
"align-items": "center"
|
|
2365
2365
|
}
|
|
2366
|
-
}, null, 8,
|
|
2367
|
-
td:
|
|
2366
|
+
}, null, 8, xn)]),
|
|
2367
|
+
td: A(({ td: e }) => [Le(qe(e.name ? e.name : isNaN(Number(e)) ? e.includes("%") ? e : k(m)(L.value.style.chart.layout.labels.percentage.formatter, e, k(a)({
|
|
2368
2368
|
v: e,
|
|
2369
2369
|
s: "%",
|
|
2370
2370
|
r: L.value.style.chart.layout.labels.percentage.rounding
|
|
2371
|
-
})) :
|
|
2371
|
+
})) : k(m)(L.value.style.chart.layout.labels.value.formatter, e, k(a)({
|
|
2372
2372
|
p: L.value.style.chart.layout.labels.dataLabels.prefix,
|
|
2373
2373
|
v: e,
|
|
2374
2374
|
s: L.value.style.chart.layout.labels.dataLabels.suffix,
|
|
@@ -2387,24 +2387,24 @@ var $e = /* @__PURE__ */ e({ default: () => xn }), et = ["id"], tt = ["id"], nt
|
|
|
2387
2387
|
_: 2
|
|
2388
2388
|
}, [L.value.table.useDialog ? {
|
|
2389
2389
|
name: "title",
|
|
2390
|
-
fn:
|
|
2390
|
+
fn: A(() => [Le(qe(Ai.value.title), 1)]),
|
|
2391
2391
|
key: "0"
|
|
2392
2392
|
} : void 0, L.value.table.useDialog ? {
|
|
2393
2393
|
name: "actions",
|
|
2394
|
-
fn:
|
|
2394
|
+
fn: A(() => [x("button", {
|
|
2395
2395
|
tabindex: "0",
|
|
2396
2396
|
class: "vue-ui-user-options-button",
|
|
2397
|
-
onClick:
|
|
2398
|
-
style:
|
|
2399
|
-
}, [
|
|
2397
|
+
onClick: r[4] ||= (e) => hi(L.value.userOptions.callbacks.csv),
|
|
2398
|
+
style: w({ cursor: fr.value ? "pointer" : "default" })
|
|
2399
|
+
}, [Re(k(Cn), {
|
|
2400
2400
|
name: "fileCsv",
|
|
2401
2401
|
stroke: Ai.value.props.color
|
|
2402
2402
|
}, null, 8, ["stroke"])], 4)]),
|
|
2403
2403
|
key: "1"
|
|
2404
|
-
} : void 0]), 1040)) :
|
|
2405
|
-
|
|
2406
|
-
], 46,
|
|
2404
|
+
} : void 0]), 1040)) : y("", !0),
|
|
2405
|
+
O(t.$slots, "skeleton", {}, () => [k(mr) ? (T(), Fe(g, { key: 0 })) : y("", !0)], !0)
|
|
2406
|
+
], 46, tt));
|
|
2407
2407
|
}
|
|
2408
2408
|
}, [["__scopeId", "data-v-568e9c77"]]);
|
|
2409
2409
|
//#endregion
|
|
2410
|
-
export {
|
|
2410
|
+
export { et as n, Sn as t };
|