vue-data-ui 2.12.8-beta.3 → 2.13.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +10 -4
- package/dist/{Arrow-kQyQXUUg.js → Arrow-B2y3GYgv.js} +1 -1
- package/dist/{BaseDraggableDialog-DLRFrsDT.js → BaseDraggableDialog-B3CZVeze.js} +2 -2
- package/dist/{BaseIcon-DaR0sIWZ.js → BaseIcon-P7wV92Er.js} +1 -1
- package/dist/{ColorPicker-Bj3sq9o7.js → ColorPicker-C7b6TR_9.js} +2 -2
- package/dist/{DataTable-BBqbcutV.js → DataTable-DBkfb6pd.js} +2 -2
- package/dist/{Legend-DRqzYrP9.js → Legend-DcDRW3Xd.js} +2 -2
- package/dist/{NonSvgPenAndPaper-CQIC2PMP.js → NonSvgPenAndPaper-DYA_rF1x.js} +3 -3
- package/dist/{PackageVersion-ClpqQxYT.js → PackageVersion-C5fpg4GN.js} +2 -2
- package/dist/{PenAndPaper-B-T7XvxF.js → PenAndPaper-BRkuVFb4.js} +3 -3
- package/dist/{Shape-DEWxbZ-l.js → Shape-CnD-h_98.js} +1 -1
- package/dist/{Slicer-o6jJH5bw.js → Slicer-CxdgZOQ7.js} +2 -2
- package/dist/{SparkTooltip-LPnbBoFu.js → SparkTooltip-BIAMOmfJ.js} +1 -1
- package/dist/{Title-apr_T9tg.js → Title-DoWqzga-.js} +1 -1
- package/dist/{Tooltip-BuHsMAfp.js → Tooltip-DYCBNM-_.js} +1 -1
- package/dist/{UserOptions-OVNxxnq5.js → UserOptions-B3q-xfQV.js} +16 -11
- package/dist/dom-to-png-4VVH9Qna.js +247 -0
- package/dist/img-Dy6IrSzX.js +20 -0
- package/dist/{index-CH_mJIWj.js → index-BXbyT0Qn.js} +6 -2
- package/dist/{pdf-Jun3ogRn.js → pdf-ZrUvUcH9.js} +1 -1
- package/dist/style.css +1 -1
- package/dist/types/vue-data-ui.d.cts +20 -3
- package/dist/types/vue-data-ui.d.ts +20 -3
- package/dist/{useNestedProp-rMR-JeOJ.js → useNestedProp-DVZpeH84.js} +1 -1
- package/dist/{usePrinter-DJ7WfWUs.js → usePrinter-aKh5-HcK.js} +2 -2
- package/dist/{vue-data-ui-D7AaTKU6.js → vue-data-ui-DUHiuRmY.js} +63 -63
- package/dist/vue-data-ui.js +1 -1
- package/dist/{vue-ui-3d-bar-BfLLrwWi.js → vue-ui-3d-bar-C3cqHCNp.js} +173 -173
- package/dist/{vue-ui-accordion-Ds4zkPIx.js → vue-ui-accordion-CXsjHe1y.js} +3 -3
- package/dist/{vue-ui-age-pyramid-C7ca5TG5.js → vue-ui-age-pyramid-B2EpIzV9.js} +179 -179
- package/dist/{vue-ui-annotator-DG2z1gw8.js → vue-ui-annotator-Czvbjx_j.js} +2 -2
- package/dist/{vue-ui-bullet-Dh25QAEH.js → vue-ui-bullet-ClY1tgTT.js} +6 -6
- package/dist/{vue-ui-candlestick-7Yo_kEV0.js → vue-ui-candlestick-BQ1RVdoH.js} +113 -113
- package/dist/{vue-ui-carousel-table-Det9Kwmy.js → vue-ui-carousel-table-UQjCOJJV.js} +94 -94
- package/dist/{vue-ui-chestnut-DLlFv6Uj.js → vue-ui-chestnut-DmEa8kef.js} +452 -452
- package/dist/{vue-ui-chord-BXlv5Z2x.js → vue-ui-chord-CEDZ-UcP.js} +17 -17
- package/dist/{vue-ui-circle-pack-DdRcdWmx.js → vue-ui-circle-pack-Bx_mLhCR.js} +116 -116
- package/dist/{vue-ui-cursor-Djtg6Ppw.js → vue-ui-cursor-D27qwk90.js} +2 -2
- package/dist/{vue-ui-dashboard-C4MDDCl6.js → vue-ui-dashboard-DKsYxh6J.js} +62 -62
- package/dist/{vue-ui-digits-8Ox6q1Ov.js → vue-ui-digits-CdDTbIAN.js} +2 -2
- package/dist/{vue-ui-donut-Hk4EaVhb.js → vue-ui-donut-DS-DfHIm.js} +149 -149
- package/dist/{vue-ui-donut-evolution-DzgYokPU.js → vue-ui-donut-evolution-XMEmv1DK.js} +109 -109
- package/dist/{vue-ui-dumbbell-CAC44_Hu.js → vue-ui-dumbbell-DAm5A4u3.js} +65 -65
- package/dist/{vue-ui-flow-CYWiZjrP.js → vue-ui-flow-CTbmqqmV.js} +12 -12
- package/dist/{vue-ui-funnel-C2eqxh_8.js → vue-ui-funnel-CihunDsZ.js} +65 -65
- package/dist/{vue-ui-galaxy-BBfg84E4.js → vue-ui-galaxy-CJHycmpt.js} +82 -82
- package/dist/{vue-ui-gauge-BJgJgef_.js → vue-ui-gauge-Bsc9wIKK.js} +5 -5
- package/dist/{vue-ui-gizmo-DBclpybR.js → vue-ui-gizmo-D6AciZZe.js} +3 -3
- package/dist/{vue-ui-heatmap-D65wOgqe.js → vue-ui-heatmap-in5WwNRr.js} +221 -221
- package/dist/{vue-ui-history-plot-CHhDy7Da.js → vue-ui-history-plot-C9IEmAmm.js} +232 -232
- package/dist/{vue-ui-kpi-uT6fsAaO.js → vue-ui-kpi-fDPWRpRZ.js} +3 -3
- package/dist/{vue-ui-mini-loader-CKVlBiYB.js → vue-ui-mini-loader-BeJRaP7N.js} +2 -2
- package/dist/{vue-ui-molecule-BwtHZtGN.js → vue-ui-molecule-BJbwA0F6.js} +30 -30
- package/dist/{vue-ui-mood-radar-Vf4_-R-m.js → vue-ui-mood-radar--YEOJ6q6.js} +75 -75
- package/dist/{vue-ui-nested-donuts-BVkSns4S.js → vue-ui-nested-donuts-BswKH0D6.js} +16 -16
- package/dist/{vue-ui-onion-UzMmwtvF.js → vue-ui-onion-BAw8X4iu.js} +70 -70
- package/dist/{vue-ui-parallel-coordinate-plot-Dk5T3ZAr.js → vue-ui-parallel-coordinate-plot-CYkzOe_Q.js} +11 -11
- package/dist/{vue-ui-quadrant-Ck7xALez.js → vue-ui-quadrant-BupqUnMn.js} +11 -11
- package/dist/{vue-ui-quick-chart-B62Pa0nG.js → vue-ui-quick-chart-BzpDL6CR.js} +5 -5
- package/dist/{vue-ui-radar-DMfv2hSb.js → vue-ui-radar-zPrbIZv5.js} +283 -282
- package/dist/{vue-ui-rating-CFYHJrxj.js → vue-ui-rating-DqCOz2LB.js} +2 -2
- package/dist/{vue-ui-relation-circle-RWlfC5BI.js → vue-ui-relation-circle-DQp_zboM.js} +5 -5
- package/dist/{vue-ui-ridgeline-Bh93VzcO.js → vue-ui-ridgeline-DoJfX7Ii.js} +100 -100
- package/dist/{vue-ui-rings-CyX30Ccv.js → vue-ui-rings-Bk4QJYsW.js} +96 -96
- package/dist/{vue-ui-scatter-BEDnWByj.js → vue-ui-scatter-RxF0N8Zj.js} +164 -164
- package/dist/{vue-ui-skeleton-C6PWt_m5.js → vue-ui-skeleton-Fxr752Oi.js} +3 -3
- package/dist/{vue-ui-smiley-79itAe84.js → vue-ui-smiley-CNScIHKI.js} +2 -2
- package/dist/{vue-ui-spark-trend-AaA4KuaH.js → vue-ui-spark-trend-CyMzdoJ9.js} +3 -3
- package/dist/{vue-ui-sparkbar-CYBZeaor.js → vue-ui-sparkbar-DMTRPWwC.js} +3 -3
- package/dist/{vue-ui-sparkgauge-ElGarXVS.js → vue-ui-sparkgauge-itAGdTj_.js} +3 -3
- package/dist/{vue-ui-sparkhistogram-C_LV99i1.js → vue-ui-sparkhistogram-CZx5cF_r.js} +4 -4
- package/dist/{vue-ui-sparkline-DwzCA8d6.js → vue-ui-sparkline-POYMl6cO.js} +3 -3
- package/dist/{vue-ui-sparkstackbar-CobB11uw.js → vue-ui-sparkstackbar-C0EE8xrA.js} +3 -3
- package/dist/{vue-ui-stackbar-B4SxM5Ix.js → vue-ui-stackbar-B6ytrTFL.js} +37 -37
- package/dist/{vue-ui-strip-plot-9VK_Y3SC.js → vue-ui-strip-plot-u39z36tT.js} +80 -80
- package/dist/{vue-ui-table-DFTE1OH5.js → vue-ui-table-Cvmrm0sZ.js} +3 -3
- package/dist/{vue-ui-table-heatmap-DvyJx0j7.js → vue-ui-table-heatmap-BOFRFilm.js} +57 -57
- package/dist/{vue-ui-table-sparkline-SGsBnQTK.js → vue-ui-table-sparkline-CMhk8rpj.js} +72 -72
- package/dist/{vue-ui-thermometer-DEMS6HXl.js → vue-ui-thermometer-Cxznchnu.js} +5 -5
- package/dist/{vue-ui-timer-CQ71yJ_N.js → vue-ui-timer-Du0Cskiy.js} +5 -5
- package/dist/{vue-ui-tiremarks-CsN_QtUK.js → vue-ui-tiremarks-BzC40iBw.js} +5 -5
- package/dist/{vue-ui-treemap-B0CPNusH.js → vue-ui-treemap-D5Nk7usb.js} +297 -297
- package/dist/{vue-ui-vertical-bar-Cxv-ahMT.js → vue-ui-vertical-bar-BivMp4WH.js} +81 -81
- package/dist/{vue-ui-waffle-TgNNo9UX.js → vue-ui-waffle-DI0Ul1Tb.js} +50 -50
- package/dist/{vue-ui-wheel-Bq0ZLc-R.js → vue-ui-wheel-BfHsxhQq.js} +5 -5
- package/dist/{vue-ui-word-cloud-D28awCaT.js → vue-ui-word-cloud-ytYbdQKa.js} +67 -67
- package/dist/{vue-ui-world-BhUsfhY5.js → vue-ui-world-CiYvMEKb.js} +55 -55
- package/dist/{vue-ui-xy-CEFkua9H.js → vue-ui-xy-DxgCkZEV.js} +201 -182
- package/dist/{vue-ui-xy-canvas-oHhzL0ui.js → vue-ui-xy-canvas-R0tICTKy.js} +80 -80
- package/package.json +1 -1
- package/dist/dom-to-png-C0Ct8ClX.js +0 -243
- package/dist/img-P0SFFw37.js +0 -19
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
import { defineAsyncComponent as K, useSlots as Mt, computed as
|
|
2
|
-
import { u as Xt, o as It, e as ut, g as Dt, c as Vt, b as Bt, d as nt, p as Z, m as Gt, _ as Rt, f as N, X as Wt, s as ve, w as Et, j as Ut, M as L, i as D, k as ce, n as w, t as jt, a as Ht, q as qt, r as Jt, x as Kt, S as rt } from "./index-
|
|
1
|
+
import { defineAsyncComponent as K, useSlots as Mt, computed as p, shallowRef as W, ref as _, onMounted as tt, onBeforeUnmount as Nt, watch as lt, createElementBlock as r, openBlock as o, normalizeStyle as b, normalizeClass as _e, createBlock as Q, createCommentVNode as i, renderSlot as g, createElementVNode as f, createVNode as xe, unref as u, createSlots as at, withCtx as C, normalizeProps as oe, guardReactiveProps as se, Fragment as m, renderList as S, mergeProps as ot, toDisplayString as P, createTextVNode as st, nextTick as Yt } from "vue";
|
|
2
|
+
import { u as Xt, o as It, e as ut, g as Dt, c as Vt, b as Bt, d as nt, p as Z, m as Gt, _ as Rt, f as N, X as Wt, s as ve, w as Et, j as Ut, M as L, i as D, k as ce, n as w, t as jt, a as Ht, q as qt, r as Jt, x as Kt, S as rt } from "./index-BXbyT0Qn.js";
|
|
3
3
|
import { t as Qt, u as Zt } from "./useResponsive-JZ9xq-JV.js";
|
|
4
|
-
import { u as it } from "./useNestedProp-
|
|
5
|
-
import { u as el } from "./usePrinter-
|
|
4
|
+
import { u as it } from "./useNestedProp-DVZpeH84.js";
|
|
5
|
+
import { u as el } from "./usePrinter-aKh5-HcK.js";
|
|
6
6
|
import { u as tl } from "./useUserOptionState-BIvW1Kz7.js";
|
|
7
7
|
import { u as ll } from "./useChartAccessibility-9icAAmYg.js";
|
|
8
|
-
import al from "./Legend-
|
|
9
|
-
import ol from "./Title-
|
|
10
|
-
import { _ as sl } from "./Shape-
|
|
8
|
+
import al from "./Legend-DcDRW3Xd.js";
|
|
9
|
+
import ol from "./Title-DoWqzga-.js";
|
|
10
|
+
import { _ as sl } from "./Shape-CnD-h_98.js";
|
|
11
11
|
import { _ as ul } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
12
12
|
const nl = ["id"], rl = ["xmlns", "viewBox"], il = ["width", "height"], vl = { key: 1 }, cl = ["id"], dl = ["stop-color"], hl = ["offset", "stop-color"], yl = ["offset", "stop-color"], fl = ["stop-color"], pl = { key: 2 }, gl = ["id", "cx", "cy"], ml = ["stop-color", "stop-opacity"], bl = ["stop-color"], wl = ["id"], kl = ["id"], _l = ["id"], xl = ["flood-color"], $l = ["id"], Cl = ["flood-color"], Tl = ["d", "stroke", "filter"], Pl = ["d", "stroke", "filter"], Al = ["cx", "cy", "r", "fill", "filter"], Fl = { key: 6 }, Sl = ["stroke", "d"], Ll = { key: 0 }, zl = ["d", "fill", "stroke", "stroke-width", "filter"], Ol = ["d", "fill", "stroke", "stroke-width", "filter"], Ml = { key: 0 }, Nl = ["stroke", "d"], Yl = { key: 0 }, Xl = ["d", "stroke", "stroke-width", "filter"], Il = { key: 1 }, Dl = ["d", "fill", "stroke", "stroke-width", "filter"], Vl = ["d", "fill", "stroke", "stroke-width", "filter"], Bl = { key: 1 }, Gl = ["cx", "cy", "r", "fill", "stroke", "stroke-width"], Rl = ["cx", "cy", "r", "fill", "stroke", "stroke-width"], Wl = ["cx", "cy", "r", "stroke"], El = ["cx", "cy", "r", "fill"], Ul = { key: 0 }, jl = ["d", "fill", "onMouseenter", "onClick"], Hl = { key: 1 }, ql = ["cx", "cy", "r"], Jl = ["x", "y", "fill", "font-size"], Kl = ["x", "y", "fill", "font-size"], Ql = ["x", "y", "fill", "font-size"], Zl = ["x", "y", "fill", "font-size"], ea = ["filter"], ta = { key: 0 }, la = ["x", "y"], aa = { key: 1 }, oa = ["cx", "cy", "fill", "stroke", "filter", "onClick"], sa = ["cx", "cy", "fill", "stroke", "filter", "onClick"], ua = ["text-anchor", "x", "y", "fill", "font-size", "onClick"], na = ["text-anchor", "x", "y", "fill", "font-size", "onClick"], ra = ["text-anchor", "x", "y", "fill", "font-size", "onClick"], ia = ["text-anchor", "x", "y", "fill", "font-size", "onClick"], va = { key: 2 }, ca = ["x", "y", "width"], da = ["x", "y", "width"], ha = {
|
|
13
13
|
key: 5,
|
|
@@ -33,7 +33,7 @@ const nl = ["id"], rl = ["xmlns", "viewBox"], il = ["width", "height"], vl = { k
|
|
|
33
33
|
},
|
|
34
34
|
emits: ["selectLegend", "selectDatapoint"],
|
|
35
35
|
setup($e, { expose: vt, emit: ct }) {
|
|
36
|
-
const dt = K(() => import("./vue-ui-accordion-
|
|
36
|
+
const dt = K(() => import("./vue-ui-accordion-CXsjHe1y.js")), ht = K(() => import("./DataTable-DBkfb6pd.js")), yt = K(() => import("./PackageVersion-C5fpg4GN.js")), ft = K(() => import("./PenAndPaper-BRkuVFb4.js")), pt = K(() => import("./vue-ui-skeleton-Fxr752Oi.js")), gt = K(() => import("./Tooltip-DYCBNM-_.js")), mt = K(() => import("./UserOptions-B3q-xfQV.js")), { vue_ui_donut: bt } = Xt(), wt = Mt(), z = $e, ue = p({
|
|
37
37
|
get() {
|
|
38
38
|
return !!z.dataset && z.dataset.length;
|
|
39
39
|
},
|
|
@@ -79,7 +79,7 @@ const nl = ["id"], rl = ["xmlns", "viewBox"], il = ["width", "height"], vl = { k
|
|
|
79
79
|
E.value && (ee.value && E.value.unobserve(ee.value), E.value.disconnect()), E.value = new ResizeObserver(l), ee.value = ne.value.parentNode, E.value.observe(ee.value);
|
|
80
80
|
}
|
|
81
81
|
}
|
|
82
|
-
const
|
|
82
|
+
const y = _(Vt()), kt = _(null), de = _(!1), pe = _(""), O = _(null), Oe = _(0);
|
|
83
83
|
function Me() {
|
|
84
84
|
const l = it({
|
|
85
85
|
userConfig: z.config,
|
|
@@ -93,7 +93,7 @@ const nl = ["id"], rl = ["xmlns", "viewBox"], il = ["width", "height"], vl = { k
|
|
|
93
93
|
customPalette: jt[l.theme] || Z
|
|
94
94
|
} : l;
|
|
95
95
|
}
|
|
96
|
-
const e =
|
|
96
|
+
const e = p({
|
|
97
97
|
get: () => Me(),
|
|
98
98
|
set: (l) => l
|
|
99
99
|
}), T = _(!0), B = W([]);
|
|
@@ -101,13 +101,13 @@ const nl = ["id"], rl = ["xmlns", "viewBox"], il = ["width", "height"], vl = { k
|
|
|
101
101
|
return new Promise((a) => {
|
|
102
102
|
const v = l.length;
|
|
103
103
|
B.value = Array(v).fill(0);
|
|
104
|
-
let
|
|
104
|
+
let d = 0;
|
|
105
105
|
l.forEach((k, $) => {
|
|
106
106
|
setTimeout(() => {
|
|
107
107
|
const R = performance.now();
|
|
108
108
|
function I(ie) {
|
|
109
109
|
const fe = Math.min((ie - R) / s, 1), Ot = rt(fe);
|
|
110
|
-
B.value[$] = k * Ot, B.value = [...B.value], fe < 1 ? requestAnimationFrame(I) : (B.value[$] = k, B.value = [...B.value],
|
|
110
|
+
B.value[$] = k * Ot, B.value = [...B.value], fe < 1 ? requestAnimationFrame(I) : (B.value[$] = k, B.value = [...B.value], d += 1, d === v && a());
|
|
111
111
|
}
|
|
112
112
|
requestAnimationFrame(I);
|
|
113
113
|
}, $ * t);
|
|
@@ -130,9 +130,9 @@ const nl = ["id"], rl = ["xmlns", "viewBox"], il = ["width", "height"], vl = { k
|
|
|
130
130
|
Ne(!1);
|
|
131
131
|
}
|
|
132
132
|
lt(() => z.config, (l) => {
|
|
133
|
-
e.value = Me(), ge.value = !e.value.userOptions.showOnChartHover, ze(), Fe.value += 1, Se.value += 1, Le.value += 1,
|
|
133
|
+
e.value = Me(), ge.value = !e.value.userOptions.showOnChartHover, ze(), Fe.value += 1, Se.value += 1, Le.value += 1, h.value.dataLabels.show = e.value.style.chart.layout.labels.dataLabels.show, h.value.showTable = e.value.table.show, h.value.showTooltip = e.value.style.chart.tooltip.show;
|
|
134
134
|
}, { deep: !0 });
|
|
135
|
-
const Xe =
|
|
135
|
+
const Xe = p(() => {
|
|
136
136
|
const { top: l, right: s, bottom: t, left: a } = e.value.style.chart.padding;
|
|
137
137
|
return {
|
|
138
138
|
css: `padding:${l}px ${s}px ${t}px ${a}px`,
|
|
@@ -142,10 +142,10 @@ const nl = ["id"], rl = ["xmlns", "viewBox"], il = ["width", "height"], vl = { k
|
|
|
142
142
|
left: a
|
|
143
143
|
};
|
|
144
144
|
}), { isPrinting: Ie, isImaging: De, generatePdf: Ve, generateImage: Be } = el({
|
|
145
|
-
elementId: `donut__${
|
|
145
|
+
elementId: `donut__${y.value}`,
|
|
146
146
|
fileName: e.value.style.chart.title.text || "vue-ui-donut",
|
|
147
147
|
options: e.value.userOptions.print
|
|
148
|
-
}), Ct =
|
|
148
|
+
}), Ct = p(() => e.value.userOptions.show && !e.value.style.chart.title.text), Ge = p(() => Bt(e.value.customPalette)), h = _({
|
|
149
149
|
dataLabels: {
|
|
150
150
|
show: e.value.style.chart.layout.labels.dataLabels.show
|
|
151
151
|
},
|
|
@@ -154,10 +154,10 @@ const nl = ["id"], rl = ["xmlns", "viewBox"], il = ["width", "height"], vl = { k
|
|
|
154
154
|
}), n = _({
|
|
155
155
|
height: 360,
|
|
156
156
|
width: 512
|
|
157
|
-
}), te =
|
|
157
|
+
}), te = p(() => {
|
|
158
158
|
const l = e.value.style.chart.layout.donut.strokeWidth / 512, s = Math.min(n.value.width, n.value.height) * l, t = s > x.value ? x.value : s;
|
|
159
159
|
return Math.max(t, 3);
|
|
160
|
-
}), Re = ct, G =
|
|
160
|
+
}), Re = ct, G = p(() => z.dataset.map((l, s) => ({
|
|
161
161
|
name: l.name,
|
|
162
162
|
color: nt(l.color) || Ge.value[s] || Z[s] || Z[s % Z.length],
|
|
163
163
|
value: l.values.reduce((t, a) => t + a, 0),
|
|
@@ -166,7 +166,7 @@ const nl = ["id"], rl = ["xmlns", "viewBox"], il = ["width", "height"], vl = { k
|
|
|
166
166
|
patternIndex: s,
|
|
167
167
|
seriesIndex: s,
|
|
168
168
|
ghost: !1,
|
|
169
|
-
pattern: `pattern_${
|
|
169
|
+
pattern: `pattern_${y.value}_${s}`
|
|
170
170
|
}))), M = W(G.value);
|
|
171
171
|
lt(() => G.value, (l) => M.value = l);
|
|
172
172
|
function Tt() {
|
|
@@ -177,19 +177,19 @@ const nl = ["id"], rl = ["xmlns", "viewBox"], il = ["width", "height"], vl = { k
|
|
|
177
177
|
}));
|
|
178
178
|
}
|
|
179
179
|
const V = _([]), q = _(!1);
|
|
180
|
-
function We({ from: l, to: s, duration: t, onUpdate: a, onDone: v, easing:
|
|
180
|
+
function We({ from: l, to: s, duration: t, onUpdate: a, onDone: v, easing: d = rt }) {
|
|
181
181
|
const k = performance.now();
|
|
182
182
|
function $(R) {
|
|
183
|
-
const I = Math.min((R - k) / t, 1), ie =
|
|
183
|
+
const I = Math.min((R - k) / t, 1), ie = d(I), fe = l + (s - l) * ie;
|
|
184
184
|
a(fe, I), I < 1 ? requestAnimationFrame($) : (a(s, 1), v && v());
|
|
185
185
|
}
|
|
186
186
|
requestAnimationFrame($);
|
|
187
187
|
}
|
|
188
188
|
function Ee(l) {
|
|
189
|
-
const s = G.value.find((v,
|
|
190
|
-
let a = M.value.find((v,
|
|
189
|
+
const s = G.value.find((v, d) => d === l);
|
|
190
|
+
let a = M.value.find((v, d) => d === l).value;
|
|
191
191
|
if (V.value.includes(l)) {
|
|
192
|
-
let
|
|
192
|
+
let d = function() {
|
|
193
193
|
M.value = M.value.map(
|
|
194
194
|
($, R) => l === R ? { ...$, value: v } : $
|
|
195
195
|
);
|
|
@@ -204,19 +204,19 @@ const nl = ["id"], rl = ["xmlns", "viewBox"], il = ["width", "height"], vl = { k
|
|
|
204
204
|
);
|
|
205
205
|
},
|
|
206
206
|
onDone: () => {
|
|
207
|
-
|
|
207
|
+
d(), q.value = !1;
|
|
208
208
|
}
|
|
209
209
|
});
|
|
210
210
|
};
|
|
211
211
|
V.value = V.value.filter(($) => $ !== l);
|
|
212
212
|
const v = s.value;
|
|
213
|
-
e.value.serieToggleAnimation.show && e.value.type === "classic" ? k() :
|
|
213
|
+
e.value.serieToggleAnimation.show && e.value.type === "classic" ? k() : d();
|
|
214
214
|
} else if (V.value.length < G.value.length - 1) {
|
|
215
215
|
let v = function() {
|
|
216
216
|
V.value.push(l), M.value = M.value.map(
|
|
217
217
|
(k, $) => l === $ ? { ...k, value: 0 } : k
|
|
218
218
|
);
|
|
219
|
-
},
|
|
219
|
+
}, d = function() {
|
|
220
220
|
q.value = !0, We({
|
|
221
221
|
from: a,
|
|
222
222
|
to: 0,
|
|
@@ -231,7 +231,7 @@ const nl = ["id"], rl = ["xmlns", "viewBox"], il = ["width", "height"], vl = { k
|
|
|
231
231
|
}
|
|
232
232
|
});
|
|
233
233
|
};
|
|
234
|
-
e.value.serieToggleAnimation.show && e.value.type === "classic" ?
|
|
234
|
+
e.value.serieToggleAnimation.show && e.value.type === "classic" ? d() : v();
|
|
235
235
|
}
|
|
236
236
|
Re("selectLegend", U.value.map((v) => ({
|
|
237
237
|
name: v.name,
|
|
@@ -239,7 +239,7 @@ const nl = ["id"], rl = ["xmlns", "viewBox"], il = ["width", "height"], vl = { k
|
|
|
239
239
|
value: v.value
|
|
240
240
|
})));
|
|
241
241
|
}
|
|
242
|
-
const Pt =
|
|
242
|
+
const Pt = p(() => z.dataset.reduce((l, s) => l + s.values.reduce((t, a) => t + a, 0), 0)), U = p(() => {
|
|
243
243
|
if (T.value) {
|
|
244
244
|
const l = B.value.map((t, a) => ({
|
|
245
245
|
...G.value[a],
|
|
@@ -264,7 +264,7 @@ const nl = ["id"], rl = ["xmlns", "viewBox"], il = ["width", "height"], vl = { k
|
|
|
264
264
|
...l,
|
|
265
265
|
seriesIndex: s
|
|
266
266
|
})).filter((l, s) => !V.value.includes(s));
|
|
267
|
-
}), Ue =
|
|
267
|
+
}), Ue = p(() => z.dataset.map((l, s) => ({
|
|
268
268
|
name: l.name,
|
|
269
269
|
color: nt(l.color) || Ge.value[s] || Z[s] || Z[s % Z.length],
|
|
270
270
|
value: (l.values || []).reduce((t, a) => t + a, 0),
|
|
@@ -276,17 +276,17 @@ const nl = ["id"], rl = ["xmlns", "viewBox"], il = ["width", "height"], vl = { k
|
|
|
276
276
|
opacity: V.value.includes(s) ? 0.5 : 1,
|
|
277
277
|
segregate: () => !q.value && Ee(s),
|
|
278
278
|
isSegregated: V.value.includes(s)
|
|
279
|
-
}))), At =
|
|
279
|
+
}))), At = p(() => ({
|
|
280
280
|
cy: "donut-div-legend",
|
|
281
281
|
backgroundColor: e.value.style.chart.legend.backgroundColor,
|
|
282
282
|
color: e.value.style.chart.legend.color,
|
|
283
283
|
fontSize: e.value.style.chart.legend.fontSize,
|
|
284
284
|
paddingBottom: 12,
|
|
285
285
|
fontWeight: e.value.style.chart.legend.bold ? "bold" : ""
|
|
286
|
-
})), x =
|
|
286
|
+
})), x = p(() => {
|
|
287
287
|
const l = Math.min(n.value.width / 3, n.value.height / 3);
|
|
288
288
|
return l < 55 ? 55 : l;
|
|
289
|
-
}), A =
|
|
289
|
+
}), A = p(() => Gt({ series: U.value }, n.value.width / 2, n.value.height / 2, x.value, x.value, 1.99999, 2, 1, 360, 105.25, te.value)), Y = p(() => A.value.filter((l) => !l.ghost)), c = p(() => {
|
|
290
290
|
const l = Math.max(...U.value.map((t) => t.value)), s = U.value.map((t) => t.value / l);
|
|
291
291
|
return Rt({
|
|
292
292
|
series: s,
|
|
@@ -323,14 +323,14 @@ const nl = ["id"], rl = ["xmlns", "viewBox"], il = ["width", "height"], vl = { k
|
|
|
323
323
|
function St(l) {
|
|
324
324
|
return [...l].map((s) => s.value).reduce((s, t) => s + t, 0);
|
|
325
325
|
}
|
|
326
|
-
const F =
|
|
326
|
+
const F = p(() => U.value.map((l) => l.value).reduce((l, s) => l + s, 0)), je = p(() => F.value / U.value.length), He = p(() => (l) => q.value ? l.proportion * 100 : l.value / F.value * 100), we = _(null), re = _(!1);
|
|
327
327
|
function qe({ datapoint: l, relativeIndex: s, seriesIndex: t, show: a = !1 }) {
|
|
328
328
|
we.value = { datapoint: l, seriesIndex: t, config: e.value, series: G.value }, de.value = a, O.value = s;
|
|
329
329
|
let v = "";
|
|
330
|
-
const
|
|
331
|
-
if (re.value = !1, Kt(
|
|
330
|
+
const d = e.value.style.chart.tooltip.customFormat;
|
|
331
|
+
if (re.value = !1, Kt(d))
|
|
332
332
|
try {
|
|
333
|
-
const k =
|
|
333
|
+
const k = d({
|
|
334
334
|
seriesIndex: t,
|
|
335
335
|
datapoint: l,
|
|
336
336
|
series: G.value,
|
|
@@ -341,7 +341,7 @@ const nl = ["id"], rl = ["xmlns", "viewBox"], il = ["width", "height"], vl = { k
|
|
|
341
341
|
console.warn("Custom format cannot be applied."), re.value = !1;
|
|
342
342
|
}
|
|
343
343
|
if (!re.value) {
|
|
344
|
-
if (v += `<div style="width:100%;text-align:center;border-bottom:1px solid ${e.value.style.chart.tooltip.borderColor};padding-bottom:6px;margin-bottom:3px;">${l.name}</div>`, v += `<div style="display:flex;flex-direction:row;gap:6px;align-items:center;"><svg viewBox="0 0 60 60" height="14" width="14"><circle cx="30" cy="30" r="30" stroke="none" fill="${l.color}"/>${wt.pattern ? `<circle cx="30" cy="30" r="30" stroke="none" fill="url(#pattern_${
|
|
344
|
+
if (v += `<div style="width:100%;text-align:center;border-bottom:1px solid ${e.value.style.chart.tooltip.borderColor};padding-bottom:6px;margin-bottom:3px;">${l.name}</div>`, v += `<div style="display:flex;flex-direction:row;gap:6px;align-items:center;"><svg viewBox="0 0 60 60" height="14" width="14"><circle cx="30" cy="30" r="30" stroke="none" fill="${l.color}"/>${wt.pattern ? `<circle cx="30" cy="30" r="30" stroke="none" fill="url(#pattern_${y.value}_${t})"/>` : ""}</svg>`, e.value.style.chart.tooltip.showValue && (v += `<b>${D(
|
|
345
345
|
e.value.style.chart.layout.labels.value.formatter,
|
|
346
346
|
l.value,
|
|
347
347
|
N({
|
|
@@ -376,35 +376,35 @@ const nl = ["id"], rl = ["xmlns", "viewBox"], il = ["width", "height"], vl = { k
|
|
|
376
376
|
}
|
|
377
377
|
}
|
|
378
378
|
function J(l) {
|
|
379
|
-
return e.value.useBlurOnHover && ![null, void 0].includes(O.value) && O.value !== l ? `url(#blur_${
|
|
379
|
+
return e.value.useBlurOnHover && ![null, void 0].includes(O.value) && O.value !== l ? `url(#blur_${y.value})` : "";
|
|
380
380
|
}
|
|
381
|
-
const j =
|
|
381
|
+
const j = p(() => {
|
|
382
382
|
const l = U.value.map((t) => ({
|
|
383
383
|
name: t.name,
|
|
384
384
|
color: t.color
|
|
385
385
|
})), s = U.value.map((t) => t.value);
|
|
386
386
|
return { head: l, body: s };
|
|
387
387
|
});
|
|
388
|
-
function Je() {
|
|
388
|
+
function Je(l = null) {
|
|
389
389
|
Yt(() => {
|
|
390
|
-
const
|
|
391
|
-
|
|
392
|
-
], [j.value.body[
|
|
393
|
-
Jt({ csvContent:
|
|
390
|
+
const s = j.value.head.map((v, d) => [[
|
|
391
|
+
v.name
|
|
392
|
+
], [j.value.body[d]], [isNaN(j.value.body[d] / F.value) ? "-" : j.value.body[d] / F.value * 100]]), t = [[e.value.style.chart.title.text], [e.value.style.chart.title.subtitle.text], [[""], ["val"], ["%"]]].concat(s), a = qt(t);
|
|
393
|
+
l ? l(a) : Jt({ csvContent: a, title: e.value.style.chart.title.text || "vue-ui-donut" });
|
|
394
394
|
});
|
|
395
395
|
}
|
|
396
|
-
const he =
|
|
396
|
+
const he = p(() => {
|
|
397
397
|
const l = [
|
|
398
398
|
' <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>',
|
|
399
399
|
N({ p: e.value.style.chart.layout.labels.dataLabels.prefix, v: F.value, s: e.value.style.chart.layout.labels.dataLabels.suffix, r: e.value.table.td.roundingValue }),
|
|
400
400
|
"100%"
|
|
401
|
-
], s = j.value.head.map((v,
|
|
401
|
+
], s = j.value.head.map((v, d) => [
|
|
402
402
|
{
|
|
403
403
|
color: v.color,
|
|
404
404
|
name: v.name
|
|
405
405
|
},
|
|
406
|
-
j.value.body[
|
|
407
|
-
isNaN(j.value.body[
|
|
406
|
+
j.value.body[d],
|
|
407
|
+
isNaN(j.value.body[d] / F.value) ? "-" : (j.value.body[d] / F.value * 100).toFixed(e.value.table.td.roundingPercentage) + "%"
|
|
408
408
|
]), t = {
|
|
409
409
|
th: {
|
|
410
410
|
backgroundColor: e.value.table.th.backgroundColor,
|
|
@@ -432,7 +432,7 @@ const nl = ["id"], rl = ["xmlns", "viewBox"], il = ["width", "height"], vl = { k
|
|
|
432
432
|
function Lt(l) {
|
|
433
433
|
ae.value = l, Oe.value += 1;
|
|
434
434
|
}
|
|
435
|
-
const Ke =
|
|
435
|
+
const Ke = p(() => /^((?!chrome|android).)*safari/i.test(navigator.userAgent));
|
|
436
436
|
function zt(l) {
|
|
437
437
|
return l.toFixed(e.value.style.chart.legend.roundingPercentage).split("").map((s) => "-").join("");
|
|
438
438
|
}
|
|
@@ -440,13 +440,13 @@ const nl = ["id"], rl = ["xmlns", "viewBox"], il = ["width", "height"], vl = { k
|
|
|
440
440
|
Re("selectDatapoint", { datapoint: l, index: s });
|
|
441
441
|
}
|
|
442
442
|
function Qe() {
|
|
443
|
-
|
|
443
|
+
h.value.showTable = !h.value.showTable;
|
|
444
444
|
}
|
|
445
445
|
function Ze() {
|
|
446
|
-
|
|
446
|
+
h.value.dataLabels.show = !h.value.dataLabels.show;
|
|
447
447
|
}
|
|
448
448
|
function et() {
|
|
449
|
-
|
|
449
|
+
h.value.showTooltip = !h.value.showTooltip;
|
|
450
450
|
}
|
|
451
451
|
const ye = _(!1);
|
|
452
452
|
function ke() {
|
|
@@ -466,7 +466,7 @@ const nl = ["id"], rl = ["xmlns", "viewBox"], il = ["width", "height"], vl = { k
|
|
|
466
466
|
ref: ne,
|
|
467
467
|
class: _e(`vue-ui-donut ${ae.value ? "vue-data-ui-wrapper-fullscreen" : ""} ${e.value.useCssAnimation ? "" : "vue-ui-dna"}`),
|
|
468
468
|
style: b(`font-family:${e.value.style.fontFamily};width:100%; ${e.value.responsive ? "height:100%;" : ""} text-align:center;background:${e.value.style.chart.backgroundColor}`),
|
|
469
|
-
id: `donut__${
|
|
469
|
+
id: `donut__${y.value}`,
|
|
470
470
|
onMouseenter: xt,
|
|
471
471
|
onMouseleave: $t
|
|
472
472
|
}, [
|
|
@@ -478,7 +478,7 @@ const nl = ["id"], rl = ["xmlns", "viewBox"], il = ["width", "height"], vl = { k
|
|
|
478
478
|
svgRef: u(me),
|
|
479
479
|
onClose: ke
|
|
480
480
|
}, null, 8, ["color", "backgroundColor", "active", "svgRef"])) : i("", !0),
|
|
481
|
-
|
|
481
|
+
g(l.$slots, "userConfig", {}, void 0, !0),
|
|
482
482
|
Ct.value ? (o(), r("div", {
|
|
483
483
|
key: 1,
|
|
484
484
|
ref_key: "noTitle",
|
|
@@ -514,7 +514,7 @@ const nl = ["id"], rl = ["xmlns", "viewBox"], il = ["width", "height"], vl = { k
|
|
|
514
514
|
color: e.value.style.chart.color,
|
|
515
515
|
isPrinting: u(Ie),
|
|
516
516
|
isImaging: u(De),
|
|
517
|
-
uid:
|
|
517
|
+
uid: y.value,
|
|
518
518
|
hasTooltip: e.value.style.chart.tooltip.show && e.value.userOptions.buttons.tooltip,
|
|
519
519
|
hasPdf: e.value.userOptions.buttons.pdf,
|
|
520
520
|
hasImg: e.value.userOptions.buttons.img,
|
|
@@ -526,7 +526,7 @@ const nl = ["id"], rl = ["xmlns", "viewBox"], il = ["width", "height"], vl = { k
|
|
|
526
526
|
chartElement: ne.value,
|
|
527
527
|
position: e.value.userOptions.position,
|
|
528
528
|
callbacks: e.value.userOptions.callbacks,
|
|
529
|
-
isTooltip:
|
|
529
|
+
isTooltip: h.value.showTooltip,
|
|
530
530
|
titles: { ...e.value.userOptions.buttonTitles },
|
|
531
531
|
hasAnnotator: e.value.userOptions.buttons.annotator,
|
|
532
532
|
isAnnotation: ye.value,
|
|
@@ -545,63 +545,63 @@ const nl = ["id"], rl = ["xmlns", "viewBox"], il = ["width", "height"], vl = { k
|
|
|
545
545
|
l.$slots.menuIcon ? {
|
|
546
546
|
name: "menuIcon",
|
|
547
547
|
fn: C(({ isOpen: t, color: a }) => [
|
|
548
|
-
|
|
548
|
+
g(l.$slots, "menuIcon", oe(se({ isOpen: t, color: a })), void 0, !0)
|
|
549
549
|
]),
|
|
550
550
|
key: "0"
|
|
551
551
|
} : void 0,
|
|
552
552
|
l.$slots.optionTooltip ? {
|
|
553
553
|
name: "optionTooltip",
|
|
554
554
|
fn: C(() => [
|
|
555
|
-
|
|
555
|
+
g(l.$slots, "optionTooltip", {}, void 0, !0)
|
|
556
556
|
]),
|
|
557
557
|
key: "1"
|
|
558
558
|
} : void 0,
|
|
559
559
|
l.$slots.optionPdf ? {
|
|
560
560
|
name: "optionPdf",
|
|
561
561
|
fn: C(() => [
|
|
562
|
-
|
|
562
|
+
g(l.$slots, "optionPdf", {}, void 0, !0)
|
|
563
563
|
]),
|
|
564
564
|
key: "2"
|
|
565
565
|
} : void 0,
|
|
566
566
|
l.$slots.optionCsv ? {
|
|
567
567
|
name: "optionCsv",
|
|
568
568
|
fn: C(() => [
|
|
569
|
-
|
|
569
|
+
g(l.$slots, "optionCsv", {}, void 0, !0)
|
|
570
570
|
]),
|
|
571
571
|
key: "3"
|
|
572
572
|
} : void 0,
|
|
573
573
|
l.$slots.optionImg ? {
|
|
574
574
|
name: "optionImg",
|
|
575
575
|
fn: C(() => [
|
|
576
|
-
|
|
576
|
+
g(l.$slots, "optionImg", {}, void 0, !0)
|
|
577
577
|
]),
|
|
578
578
|
key: "4"
|
|
579
579
|
} : void 0,
|
|
580
580
|
l.$slots.optionTable ? {
|
|
581
581
|
name: "optionTable",
|
|
582
582
|
fn: C(() => [
|
|
583
|
-
|
|
583
|
+
g(l.$slots, "optionTable", {}, void 0, !0)
|
|
584
584
|
]),
|
|
585
585
|
key: "5"
|
|
586
586
|
} : void 0,
|
|
587
587
|
l.$slots.optionLabels ? {
|
|
588
588
|
name: "optionLabels",
|
|
589
589
|
fn: C(() => [
|
|
590
|
-
|
|
590
|
+
g(l.$slots, "optionLabels", {}, void 0, !0)
|
|
591
591
|
]),
|
|
592
592
|
key: "6"
|
|
593
593
|
} : void 0,
|
|
594
594
|
l.$slots.optionFullscreen ? {
|
|
595
595
|
name: "optionFullscreen",
|
|
596
596
|
fn: C(({ toggleFullscreen: t, isFullscreen: a }) => [
|
|
597
|
-
|
|
597
|
+
g(l.$slots, "optionFullscreen", oe(se({ toggleFullscreen: t, isFullscreen: a })), void 0, !0)
|
|
598
598
|
]),
|
|
599
599
|
key: "7"
|
|
600
600
|
} : void 0,
|
|
601
601
|
l.$slots.optionAnnotator ? {
|
|
602
602
|
name: "optionAnnotator",
|
|
603
603
|
fn: C(({ toggleAnnotator: t, isAnnotator: a }) => [
|
|
604
|
-
|
|
604
|
+
g(l.$slots, "optionAnnotator", oe(se({ toggleAnnotator: t, isAnnotator: a })), void 0, !0)
|
|
605
605
|
]),
|
|
606
606
|
key: "8"
|
|
607
607
|
} : void 0
|
|
@@ -626,28 +626,28 @@ const nl = ["id"], rl = ["xmlns", "viewBox"], il = ["width", "height"], vl = { k
|
|
|
626
626
|
pointerEvents: "none"
|
|
627
627
|
}
|
|
628
628
|
}, [
|
|
629
|
-
|
|
629
|
+
g(l.$slots, "chart-background", {}, void 0, !0)
|
|
630
630
|
], 8, il)) : i("", !0),
|
|
631
631
|
e.value.type === "classic" && !isNaN(te.value / x.value) ? (o(), r("defs", vl, [
|
|
632
632
|
e.value.style.chart.useGradient ? (o(), r("radialGradient", {
|
|
633
633
|
key: 0,
|
|
634
|
-
id: `gradient_${
|
|
634
|
+
id: `gradient_${y.value}`
|
|
635
635
|
}, [
|
|
636
|
-
|
|
636
|
+
f("stop", {
|
|
637
637
|
offset: "0%",
|
|
638
638
|
"stop-color": u(ve)(e.value.style.chart.backgroundColor, 0),
|
|
639
639
|
"stop-opacity": "0"
|
|
640
640
|
}, null, 8, dl),
|
|
641
|
-
|
|
641
|
+
f("stop", {
|
|
642
642
|
offset: `${(1 - te.value / x.value) * 100}%`,
|
|
643
643
|
"stop-color": u(ve)("#FFFFFF", 0),
|
|
644
644
|
"stop-opacity": "0"
|
|
645
645
|
}, null, 8, hl),
|
|
646
|
-
|
|
646
|
+
f("stop", {
|
|
647
647
|
offset: `${(1 - te.value / x.value / 2) * 100}%`,
|
|
648
648
|
"stop-color": u(ve)("#FFFFFF", e.value.style.chart.gradientIntensity)
|
|
649
649
|
}, null, 8, yl),
|
|
650
|
-
|
|
650
|
+
f("stop", {
|
|
651
651
|
offset: "100%",
|
|
652
652
|
"stop-color": u(ve)(e.value.style.chart.backgroundColor, 0),
|
|
653
653
|
"stop-opacity": "0"
|
|
@@ -655,46 +655,46 @@ const nl = ["id"], rl = ["xmlns", "viewBox"], il = ["width", "height"], vl = { k
|
|
|
655
655
|
], 8, cl)) : i("", !0)
|
|
656
656
|
])) : i("", !0),
|
|
657
657
|
e.value.type === "polar" ? (o(), r("defs", pl, [
|
|
658
|
-
(o(!0), r(
|
|
659
|
-
id: `polar_gradient_${a}_${
|
|
658
|
+
(o(!0), r(m, null, S(c.value, (t, a) => (o(), r("radialGradient", {
|
|
659
|
+
id: `polar_gradient_${a}_${y.value}`,
|
|
660
660
|
cx: (isNaN(t.middlePoint.x / n.value.width * 100) ? 0 : t.middlePoint.x / n.value.width * 100) + "%",
|
|
661
661
|
cy: (isNaN(t.middlePoint.y / n.value.height * 100) ? 0 : t.middlePoint.y / n.value.height * 100) + "%",
|
|
662
662
|
r: "62%"
|
|
663
663
|
}, [
|
|
664
|
-
|
|
664
|
+
f("stop", {
|
|
665
665
|
offset: "0%",
|
|
666
666
|
"stop-color": u(Et)(A.value[a].color, 0.05),
|
|
667
667
|
"stop-opacity": e.value.style.chart.gradientIntensity / 100
|
|
668
668
|
}, null, 8, ml),
|
|
669
|
-
|
|
669
|
+
f("stop", {
|
|
670
670
|
offset: "100%",
|
|
671
671
|
"stop-color": A.value[a].color
|
|
672
672
|
}, null, 8, bl)
|
|
673
673
|
], 8, gl))), 256))
|
|
674
674
|
])) : i("", !0),
|
|
675
|
-
|
|
676
|
-
|
|
677
|
-
id: `blur_${
|
|
675
|
+
f("defs", null, [
|
|
676
|
+
f("filter", {
|
|
677
|
+
id: `blur_${y.value}`,
|
|
678
678
|
x: "-50%",
|
|
679
679
|
y: "-50%",
|
|
680
680
|
width: "200%",
|
|
681
681
|
height: "200%"
|
|
682
682
|
}, [
|
|
683
|
-
|
|
683
|
+
f("feGaussianBlur", {
|
|
684
684
|
in: "SourceGraphic",
|
|
685
685
|
stdDeviation: 2,
|
|
686
|
-
id: `blur_std_${
|
|
686
|
+
id: `blur_std_${y.value}`
|
|
687
687
|
}, null, 8, kl),
|
|
688
|
-
s[6] || (s[6] =
|
|
688
|
+
s[6] || (s[6] = f("feColorMatrix", {
|
|
689
689
|
type: "saturate",
|
|
690
690
|
values: "0"
|
|
691
691
|
}, null, -1))
|
|
692
692
|
], 8, wl),
|
|
693
|
-
|
|
694
|
-
id: `shadow_${
|
|
693
|
+
f("filter", {
|
|
694
|
+
id: `shadow_${y.value}`,
|
|
695
695
|
"color-interpolation-filters": "sRGB"
|
|
696
696
|
}, [
|
|
697
|
-
|
|
697
|
+
f("feDropShadow", {
|
|
698
698
|
dx: "0",
|
|
699
699
|
dy: "0",
|
|
700
700
|
stdDeviation: "10",
|
|
@@ -702,15 +702,15 @@ const nl = ["id"], rl = ["xmlns", "viewBox"], il = ["width", "height"], vl = { k
|
|
|
702
702
|
"flood-color": e.value.style.chart.layout.donut.shadowColor
|
|
703
703
|
}, null, 8, xl)
|
|
704
704
|
], 8, _l),
|
|
705
|
-
|
|
706
|
-
id: `drop_shadow_${
|
|
705
|
+
f("filter", {
|
|
706
|
+
id: `drop_shadow_${y.value}`,
|
|
707
707
|
"color-interpolation-filters": "sRGB",
|
|
708
708
|
x: "-50%",
|
|
709
709
|
y: "-50%",
|
|
710
710
|
width: "200%",
|
|
711
711
|
height: "200%"
|
|
712
712
|
}, [
|
|
713
|
-
|
|
713
|
+
f("feDropShadow", {
|
|
714
714
|
dx: "0",
|
|
715
715
|
dy: "0",
|
|
716
716
|
stdDeviation: "3",
|
|
@@ -719,8 +719,8 @@ const nl = ["id"], rl = ["xmlns", "viewBox"], il = ["width", "height"], vl = { k
|
|
|
719
719
|
}, null, 8, Cl)
|
|
720
720
|
], 8, $l)
|
|
721
721
|
]),
|
|
722
|
-
e.value.type === "classic" ? (o(!0), r(
|
|
723
|
-
X(t) &&
|
|
722
|
+
e.value.type === "classic" ? (o(!0), r(m, { key: 3 }, S(A.value.filter((t) => !t.ghost), (t, a) => (o(), r("g", null, [
|
|
723
|
+
X(t) && h.value.dataLabels.show ? (o(), r("path", {
|
|
724
724
|
key: 0,
|
|
725
725
|
d: u(Ut)(t, { x: n.value.width / 2, y: n.value.height / 2 }, 16, 16, !1, !1, te.value, 12, e.value.style.chart.layout.curvedMarkers),
|
|
726
726
|
stroke: t.color,
|
|
@@ -731,8 +731,8 @@ const nl = ["id"], rl = ["xmlns", "viewBox"], il = ["width", "height"], vl = { k
|
|
|
731
731
|
filter: J(a)
|
|
732
732
|
}, null, 8, Tl)) : i("", !0)
|
|
733
733
|
]))), 256)) : i("", !0),
|
|
734
|
-
e.value.type === "polar" ? (o(!0), r(
|
|
735
|
-
X(t) &&
|
|
734
|
+
e.value.type === "polar" ? (o(!0), r(m, { key: 4 }, S(A.value.filter((t) => !t.ghost), (t, a) => (o(), r("g", null, [
|
|
735
|
+
X(t) && h.value.dataLabels.show ? (o(), r("path", {
|
|
736
736
|
key: 0,
|
|
737
737
|
d: `M ${u(L)({ initX: c.value[a].middlePoint.x, initY: c.value[a].middlePoint.y, offset: 24, centerX: n.value.width / 2, centerY: n.value.height / 2 }).x},${u(L)({ initX: c.value[a].middlePoint.x, initY: c.value[a].middlePoint.y, offset: 24, centerX: n.value.width / 2, centerY: n.value.height / 2 }).y} ${c.value[a].middlePoint.x},${c.value[a].middlePoint.y}`,
|
|
738
738
|
stroke: t.color,
|
|
@@ -752,23 +752,23 @@ const nl = ["id"], rl = ["xmlns", "viewBox"], il = ["width", "height"], vl = { k
|
|
|
752
752
|
cy: n.value.height / 2,
|
|
753
753
|
r: x.value <= 0 ? 10 : x.value,
|
|
754
754
|
fill: e.value.style.chart.backgroundColor,
|
|
755
|
-
filter: `url(#shadow_${
|
|
755
|
+
filter: `url(#shadow_${y.value})`
|
|
756
756
|
}, null, 8, Al)) : i("", !0),
|
|
757
757
|
l.$slots.pattern ? (o(), r("g", Fl, [
|
|
758
|
-
(o(!0), r(
|
|
758
|
+
(o(!0), r(m, null, S($e.dataset, (t, a) => (o(), r("defs", {
|
|
759
759
|
key: `pattern-${t.patternIndex}`
|
|
760
760
|
}, [
|
|
761
|
-
|
|
761
|
+
g(l.$slots, "pattern", ot({ ref_for: !0 }, { seriesIndex: a, patternId: `pattern_${y.value}_${a}` }), void 0, !0)
|
|
762
762
|
]))), 128))
|
|
763
763
|
])) : i("", !0),
|
|
764
|
-
F.value && e.value.type === "classic" ? (o(), r(
|
|
765
|
-
(o(!0), r(
|
|
764
|
+
F.value && e.value.type === "classic" ? (o(), r(m, { key: 7 }, [
|
|
765
|
+
(o(!0), r(m, null, S(Y.value, (t, a) => (o(), r("path", {
|
|
766
766
|
stroke: e.value.style.chart.backgroundColor,
|
|
767
767
|
d: t.arcSlice,
|
|
768
768
|
fill: "#FFFFFF"
|
|
769
769
|
}, null, 8, Sl))), 256)),
|
|
770
770
|
l.$slots.pattern ? (o(), r("g", Ll, [
|
|
771
|
-
(o(!0), r(
|
|
771
|
+
(o(!0), r(m, null, S(Y.value, (t, a) => (o(), r("path", {
|
|
772
772
|
class: "vue-ui-donut-arc-path",
|
|
773
773
|
d: t.arcSlice,
|
|
774
774
|
fill: `url(#${t.pattern})`,
|
|
@@ -777,7 +777,7 @@ const nl = ["id"], rl = ["xmlns", "viewBox"], il = ["width", "height"], vl = { k
|
|
|
777
777
|
filter: J(a)
|
|
778
778
|
}, null, 8, zl))), 256))
|
|
779
779
|
])) : i("", !0),
|
|
780
|
-
(o(!0), r(
|
|
780
|
+
(o(!0), r(m, null, S(Y.value, (t, a) => (o(), r("path", {
|
|
781
781
|
class: "vue-ui-donut-arc-path",
|
|
782
782
|
d: t.arcSlice,
|
|
783
783
|
fill: u(ve)(t.color, 80),
|
|
@@ -786,9 +786,9 @@ const nl = ["id"], rl = ["xmlns", "viewBox"], il = ["width", "height"], vl = { k
|
|
|
786
786
|
filter: J(a)
|
|
787
787
|
}, null, 8, Ol))), 256))
|
|
788
788
|
], 64)) : i("", !0),
|
|
789
|
-
F.value && e.value.type === "polar" ? (o(), r(
|
|
789
|
+
F.value && e.value.type === "polar" ? (o(), r(m, { key: 8 }, [
|
|
790
790
|
A.value.length > 1 ? (o(), r("g", Ml, [
|
|
791
|
-
(o(!0), r(
|
|
791
|
+
(o(!0), r(m, null, S(Y.value, (t, a) => (o(), r("path", {
|
|
792
792
|
stroke: e.value.style.chart.backgroundColor,
|
|
793
793
|
d: c.value[a].path,
|
|
794
794
|
fill: "#FFFFFF",
|
|
@@ -797,20 +797,20 @@ const nl = ["id"], rl = ["xmlns", "viewBox"], il = ["width", "height"], vl = { k
|
|
|
797
797
|
})
|
|
798
798
|
}, null, 12, Nl))), 256)),
|
|
799
799
|
e.value.style.chart.layout.donut.useShadow ? (o(), r("g", Yl, [
|
|
800
|
-
(o(!0), r(
|
|
800
|
+
(o(!0), r(m, null, S(Y.value, (t, a) => (o(), r("path", {
|
|
801
801
|
class: "vue-ui-donut-arc-path",
|
|
802
802
|
d: c.value[a].path,
|
|
803
803
|
fill: "transparent",
|
|
804
804
|
stroke: e.value.style.chart.backgroundColor,
|
|
805
805
|
"stroke-width": e.value.style.chart.layout.donut.borderWidth,
|
|
806
|
-
filter: `url(#drop_shadow_${
|
|
806
|
+
filter: `url(#drop_shadow_${y.value})`,
|
|
807
807
|
style: b({
|
|
808
808
|
transition: T.value || !e.value.serieToggleAnimation.show ? "none" : `all ${e.value.serieToggleAnimation.durationMs}ms ease-in-out`
|
|
809
809
|
})
|
|
810
810
|
}, null, 12, Xl))), 256))
|
|
811
811
|
])) : i("", !0),
|
|
812
812
|
l.$slots.pattern ? (o(), r("g", Il, [
|
|
813
|
-
(o(!0), r(
|
|
813
|
+
(o(!0), r(m, null, S(Y.value, (t, a) => (o(), r("path", {
|
|
814
814
|
class: "vue-ui-donut-arc-path",
|
|
815
815
|
d: c.value[a].path,
|
|
816
816
|
fill: `url(#${t.pattern})`,
|
|
@@ -822,10 +822,10 @@ const nl = ["id"], rl = ["xmlns", "viewBox"], il = ["width", "height"], vl = { k
|
|
|
822
822
|
})
|
|
823
823
|
}, null, 12, Dl))), 256))
|
|
824
824
|
])) : i("", !0),
|
|
825
|
-
(o(!0), r(
|
|
825
|
+
(o(!0), r(m, null, S(Y.value, (t, a) => (o(), r("path", {
|
|
826
826
|
class: "vue-ui-donut-arc-path",
|
|
827
827
|
d: c.value[a].path,
|
|
828
|
-
fill: e.value.style.chart.useGradient ? `url(#polar_gradient_${a}_${
|
|
828
|
+
fill: e.value.style.chart.useGradient ? `url(#polar_gradient_${a}_${y.value})` : t.color,
|
|
829
829
|
stroke: e.value.style.chart.backgroundColor,
|
|
830
830
|
"stroke-width": e.value.style.chart.layout.donut.borderWidth,
|
|
831
831
|
filter: J(a),
|
|
@@ -839,15 +839,15 @@ const nl = ["id"], rl = ["xmlns", "viewBox"], il = ["width", "height"], vl = { k
|
|
|
839
839
|
cx: n.value.width / 2,
|
|
840
840
|
cy: n.value.height / 2,
|
|
841
841
|
r: x.value,
|
|
842
|
-
fill: `url(#pattern_${
|
|
842
|
+
fill: `url(#pattern_${y.value}_${A.value[0].patternIndex})`,
|
|
843
843
|
stroke: e.value.style.chart.backgroundColor,
|
|
844
844
|
"stroke-width": e.value.style.chart.layout.donut.borderWidth
|
|
845
845
|
}, null, 8, Gl)) : i("", !0),
|
|
846
|
-
|
|
846
|
+
f("circle", {
|
|
847
847
|
cx: n.value.width / 2,
|
|
848
848
|
cy: n.value.height / 2,
|
|
849
849
|
r: x.value,
|
|
850
|
-
fill: e.value.style.chart.useGradient ? `url(#polar_gradient_0_${
|
|
850
|
+
fill: e.value.style.chart.useGradient ? `url(#polar_gradient_0_${y.value})` : A.value[0].color,
|
|
851
851
|
stroke: e.value.style.chart.backgroundColor,
|
|
852
852
|
"stroke-width": e.value.style.chart.layout.donut.borderWidth
|
|
853
853
|
}, null, 8, Rl)
|
|
@@ -868,11 +868,11 @@ const nl = ["id"], rl = ["xmlns", "viewBox"], il = ["width", "height"], vl = { k
|
|
|
868
868
|
/* This might require adjustments */
|
|
869
869
|
x.value <= 0 ? 10 : x.value
|
|
870
870
|
),
|
|
871
|
-
fill: `url(#gradient_${
|
|
871
|
+
fill: `url(#gradient_${y.value})`
|
|
872
872
|
}, null, 8, El)) : i("", !0),
|
|
873
|
-
F.value ? (o(), r(
|
|
873
|
+
F.value ? (o(), r(m, { key: 11 }, [
|
|
874
874
|
A.value.length > 1 || e.value.type === "classic" ? (o(), r("g", Ul, [
|
|
875
|
-
(o(!0), r(
|
|
875
|
+
(o(!0), r(m, null, S(A.value.filter((t) => !t.ghost), (t, a) => (o(), r("path", {
|
|
876
876
|
d: e.value.type === "classic" ? t.arcSlice : c.value[a].path,
|
|
877
877
|
fill: O.value === a ? "rgba(0,0,0,0.1)" : "transparent",
|
|
878
878
|
onMouseenter: (v) => qe({
|
|
@@ -887,7 +887,7 @@ const nl = ["id"], rl = ["xmlns", "viewBox"], il = ["width", "height"], vl = { k
|
|
|
887
887
|
onClick: (v) => H(t, a)
|
|
888
888
|
}, null, 40, jl))), 256))
|
|
889
889
|
])) : (o(), r("g", Hl, [
|
|
890
|
-
|
|
890
|
+
f("circle", {
|
|
891
891
|
cx: n.value.width / 2,
|
|
892
892
|
cy: n.value.height / 2,
|
|
893
893
|
r: x.value,
|
|
@@ -905,7 +905,7 @@ const nl = ["id"], rl = ["xmlns", "viewBox"], il = ["width", "height"], vl = { k
|
|
|
905
905
|
}, null, 40, ql)
|
|
906
906
|
]))
|
|
907
907
|
], 64)) : i("", !0),
|
|
908
|
-
e.value.type === "classic" ? (o(), r(
|
|
908
|
+
e.value.type === "classic" ? (o(), r(m, { key: 12 }, [
|
|
909
909
|
e.value.style.chart.layout.labels.hollow.total.show ? (o(), r("text", {
|
|
910
910
|
key: 0,
|
|
911
911
|
"text-anchor": "middle",
|
|
@@ -960,7 +960,7 @@ const nl = ["id"], rl = ["xmlns", "viewBox"], il = ["width", "height"], vl = { k
|
|
|
960
960
|
})
|
|
961
961
|
)), 13, Zl)) : i("", !0)
|
|
962
962
|
], 64)) : i("", !0),
|
|
963
|
-
(o(!0), r(
|
|
963
|
+
(o(!0), r(m, null, S(Y.value.filter((t) => !t.ghost), (t, a) => (o(), r("g", {
|
|
964
964
|
filter: J(a),
|
|
965
965
|
class: _e({ animated: e.value.useCssAnimation })
|
|
966
966
|
}, [
|
|
@@ -972,12 +972,12 @@ const nl = ["id"], rl = ["xmlns", "viewBox"], il = ["width", "height"], vl = { k
|
|
|
972
972
|
height: "60",
|
|
973
973
|
style: { overflow: "visible" }
|
|
974
974
|
}, [
|
|
975
|
-
|
|
976
|
-
|
|
975
|
+
f("div", null, [
|
|
976
|
+
g(l.$slots, "dataLabel", ot({ ref_for: !0 }, {
|
|
977
977
|
datapoint: t,
|
|
978
978
|
isBlur: !e.value.useBlurOnHover || [null, void 0].includes(O.value) || O.value === a,
|
|
979
979
|
isSafari: Ke.value,
|
|
980
|
-
isVisible: X(t) &&
|
|
980
|
+
isVisible: X(t) && h.value.dataLabels.show,
|
|
981
981
|
textAlign: u(w)(t, !0, 16, !0).anchor,
|
|
982
982
|
flexAlign: u(w)(t, !0, 16).anchor,
|
|
983
983
|
percentage: be(t, Y.value)
|
|
@@ -985,8 +985,8 @@ const nl = ["id"], rl = ["xmlns", "viewBox"], il = ["width", "height"], vl = { k
|
|
|
985
985
|
])
|
|
986
986
|
], 8, la))
|
|
987
987
|
])) : (o(), r("g", aa, [
|
|
988
|
-
e.value.type === "classic" ? (o(), r(
|
|
989
|
-
X(t) &&
|
|
988
|
+
e.value.type === "classic" ? (o(), r(m, { key: 0 }, [
|
|
989
|
+
X(t) && h.value.dataLabels.show ? (o(), r("circle", {
|
|
990
990
|
key: 0,
|
|
991
991
|
cx: u(w)(t).x,
|
|
992
992
|
cy: u(ce)(t) - 3.5,
|
|
@@ -994,12 +994,12 @@ const nl = ["id"], rl = ["xmlns", "viewBox"], il = ["width", "height"], vl = { k
|
|
|
994
994
|
stroke: e.value.style.chart.backgroundColor,
|
|
995
995
|
"stroke-width": 1,
|
|
996
996
|
r: 3,
|
|
997
|
-
filter: !e.value.useBlurOnHover || [null, void 0].includes(O.value) || O.value === a ? "" : `url(#blur_${
|
|
997
|
+
filter: !e.value.useBlurOnHover || [null, void 0].includes(O.value) || O.value === a ? "" : `url(#blur_${y.value})`,
|
|
998
998
|
onClick: (v) => H(t, a)
|
|
999
999
|
}, null, 8, oa)) : i("", !0)
|
|
1000
1000
|
], 64)) : i("", !0),
|
|
1001
|
-
e.value.type === "polar" ? (o(), r(
|
|
1002
|
-
X(t) &&
|
|
1001
|
+
e.value.type === "polar" ? (o(), r(m, { key: 1 }, [
|
|
1002
|
+
X(t) && h.value.dataLabels.show ? (o(), r("circle", {
|
|
1003
1003
|
key: 0,
|
|
1004
1004
|
cx: u(L)({ initX: c.value[a].middlePoint.x, initY: c.value[a].middlePoint.y, offset: 24, centerX: n.value.width / 2, centerY: n.value.height / 2 }).x,
|
|
1005
1005
|
cy: u(L)({ initX: c.value[a].middlePoint.x, initY: c.value[a].middlePoint.y, offset: 24, centerX: n.value.width / 2, centerY: n.value.height / 2 }).y,
|
|
@@ -1007,15 +1007,15 @@ const nl = ["id"], rl = ["xmlns", "viewBox"], il = ["width", "height"], vl = { k
|
|
|
1007
1007
|
stroke: e.value.style.chart.backgroundColor,
|
|
1008
1008
|
"stroke-width": 1,
|
|
1009
1009
|
r: 3,
|
|
1010
|
-
filter: !e.value.useBlurOnHover || [null, void 0].includes(O.value) || O.value === a ? "" : `url(#blur_${
|
|
1010
|
+
filter: !e.value.useBlurOnHover || [null, void 0].includes(O.value) || O.value === a ? "" : `url(#blur_${y.value})`,
|
|
1011
1011
|
onClick: (v) => H(t, a),
|
|
1012
1012
|
style: b({
|
|
1013
1013
|
transition: T.value || !e.value.serieToggleAnimation.show ? "none" : `all ${e.value.serieToggleAnimation.durationMs}ms ease-in-out`
|
|
1014
1014
|
})
|
|
1015
1015
|
}, null, 12, sa)) : i("", !0)
|
|
1016
1016
|
], 64)) : i("", !0),
|
|
1017
|
-
e.value.type === "classic" ? (o(), r(
|
|
1018
|
-
X(t) &&
|
|
1017
|
+
e.value.type === "classic" ? (o(), r(m, { key: 2 }, [
|
|
1018
|
+
X(t) && h.value.dataLabels.show ? (o(), r("text", {
|
|
1019
1019
|
key: 0,
|
|
1020
1020
|
"text-anchor": u(w)(t, !0, 12).anchor,
|
|
1021
1021
|
x: u(w)(t, !0, 12).x,
|
|
@@ -1035,7 +1035,7 @@ const nl = ["id"], rl = ["xmlns", "viewBox"], il = ["width", "height"], vl = { k
|
|
|
1035
1035
|
}),
|
|
1036
1036
|
{ datapoint: t }
|
|
1037
1037
|
)})` : ""), 13, ua)) : i("", !0),
|
|
1038
|
-
X(t) &&
|
|
1038
|
+
X(t) && h.value.dataLabels.show ? (o(), r("text", {
|
|
1039
1039
|
key: 1,
|
|
1040
1040
|
"text-anchor": u(w)(t).anchor,
|
|
1041
1041
|
x: u(w)(t, !0, 12).x,
|
|
@@ -1046,8 +1046,8 @@ const nl = ["id"], rl = ["xmlns", "viewBox"], il = ["width", "height"], vl = { k
|
|
|
1046
1046
|
onClick: (v) => H(t, a)
|
|
1047
1047
|
}, P(t.name), 13, na)) : i("", !0)
|
|
1048
1048
|
], 64)) : i("", !0),
|
|
1049
|
-
e.value.type === "polar" ? (o(), r(
|
|
1050
|
-
X(t) &&
|
|
1049
|
+
e.value.type === "polar" ? (o(), r(m, { key: 3 }, [
|
|
1050
|
+
X(t) && h.value.dataLabels.show ? (o(), r("text", {
|
|
1051
1051
|
key: 0,
|
|
1052
1052
|
"text-anchor": le(c.value[a].middlePoint),
|
|
1053
1053
|
x: u(L)({ initX: c.value[a].middlePoint.x, initY: c.value[a].middlePoint.y, offset: 42, centerX: n.value.width / 2, centerY: n.value.height / 2 }).x,
|
|
@@ -1070,7 +1070,7 @@ const nl = ["id"], rl = ["xmlns", "viewBox"], il = ["width", "height"], vl = { k
|
|
|
1070
1070
|
}),
|
|
1071
1071
|
{ datapoint: t }
|
|
1072
1072
|
)})` : ""), 13, ra)) : i("", !0),
|
|
1073
|
-
X(t) &&
|
|
1073
|
+
X(t) && h.value.dataLabels.show ? (o(), r("text", {
|
|
1074
1074
|
key: 1,
|
|
1075
1075
|
"text-anchor": le(c.value[a].middlePoint),
|
|
1076
1076
|
x: u(L)({ initX: c.value[a].middlePoint.x, initY: c.value[a].middlePoint.y, offset: 42, centerX: n.value.width / 2, centerY: n.value.height / 2 }).x,
|
|
@@ -1085,7 +1085,7 @@ const nl = ["id"], rl = ["xmlns", "viewBox"], il = ["width", "height"], vl = { k
|
|
|
1085
1085
|
}, P(t.name), 13, ia)) : i("", !0)
|
|
1086
1086
|
], 64)) : i("", !0)
|
|
1087
1087
|
])),
|
|
1088
|
-
|
|
1088
|
+
h.value.dataLabels.show && e.value.style.chart.comments.show && t.comment ? (o(), r("g", va, [
|
|
1089
1089
|
X(t) && e.value.type === "classic" ? (o(), r("foreignObject", {
|
|
1090
1090
|
key: 0,
|
|
1091
1091
|
x: e.value.style.chart.comments.offsetX + (u(w)(t, !0).anchor === "end" ? u(w)(t).x - e.value.style.chart.comments.width : u(w)(t, !0).anchor === "middle" ? u(w)(t).x - e.value.style.chart.comments.width / 2 : u(w)(t).x),
|
|
@@ -1094,8 +1094,8 @@ const nl = ["id"], rl = ["xmlns", "viewBox"], il = ["width", "height"], vl = { k
|
|
|
1094
1094
|
height: "200",
|
|
1095
1095
|
style: { overflow: "visible", "pointer-events": "none" }
|
|
1096
1096
|
}, [
|
|
1097
|
-
|
|
1098
|
-
|
|
1097
|
+
f("div", null, [
|
|
1098
|
+
g(l.$slots, "plot-comment", {
|
|
1099
1099
|
plot: { ...t, textAlign: u(w)(t, !0, 16, !0).anchor, flexAlign: u(w)(t, !0, 16).anchor, isFirstLoad: T.value }
|
|
1100
1100
|
}, void 0, !0)
|
|
1101
1101
|
])
|
|
@@ -1112,18 +1112,18 @@ const nl = ["id"], rl = ["xmlns", "viewBox"], il = ["width", "height"], vl = { k
|
|
|
1112
1112
|
pointerEvents: "none"
|
|
1113
1113
|
})
|
|
1114
1114
|
}, [
|
|
1115
|
-
|
|
1116
|
-
|
|
1115
|
+
f("div", null, [
|
|
1116
|
+
g(l.$slots, "plot-comment", {
|
|
1117
1117
|
plot: { ...t, textAlign: le(c.value[a].middlePoint), flexAlign: le(c.value[a].middlePoint), isFirstLoad: T.value }
|
|
1118
1118
|
}, void 0, !0)
|
|
1119
1119
|
])
|
|
1120
1120
|
], 12, da)) : i("", !0)
|
|
1121
1121
|
])) : i("", !0)
|
|
1122
1122
|
], 10, ea))), 256)),
|
|
1123
|
-
|
|
1123
|
+
g(l.$slots, "svg", { svg: n.value }, void 0, !0)
|
|
1124
1124
|
], 14, rl)) : i("", !0),
|
|
1125
1125
|
l.$slots.watermark ? (o(), r("div", ha, [
|
|
1126
|
-
|
|
1126
|
+
g(l.$slots, "watermark", oe(se({ isPrinting: u(Ie) || u(De) })), void 0, !0)
|
|
1127
1127
|
])) : i("", !0),
|
|
1128
1128
|
ue.value ? i("", !0) : (o(), Q(u(pt), {
|
|
1129
1129
|
key: 6,
|
|
@@ -1138,7 +1138,7 @@ const nl = ["id"], rl = ["xmlns", "viewBox"], il = ["width", "height"], vl = { k
|
|
|
1138
1138
|
}
|
|
1139
1139
|
}
|
|
1140
1140
|
}, null, 8, ["config"])),
|
|
1141
|
-
|
|
1141
|
+
f("div", {
|
|
1142
1142
|
ref_key: "chartLegend",
|
|
1143
1143
|
ref: Te
|
|
1144
1144
|
}, [
|
|
@@ -1149,7 +1149,7 @@ const nl = ["id"], rl = ["xmlns", "viewBox"], il = ["width", "height"], vl = { k
|
|
|
1149
1149
|
onClickMarker: s[4] || (s[4] = ({ i: t }) => Ee(t))
|
|
1150
1150
|
}, at({
|
|
1151
1151
|
item: C(({ legend: t, index: a }) => [
|
|
1152
|
-
|
|
1152
|
+
f("div", {
|
|
1153
1153
|
style: b(`opacity:${V.value.includes(a) ? 0.5 : 1}`),
|
|
1154
1154
|
onClick: (v) => t.segregate()
|
|
1155
1155
|
}, [
|
|
@@ -1188,13 +1188,13 @@ const nl = ["id"], rl = ["xmlns", "viewBox"], il = ["width", "height"], vl = { k
|
|
|
1188
1188
|
radius: 30,
|
|
1189
1189
|
stroke: "none",
|
|
1190
1190
|
plot: { x: 30, y: 30 },
|
|
1191
|
-
fill: `url(#pattern_${
|
|
1191
|
+
fill: `url(#pattern_${y.value}_${a})`
|
|
1192
1192
|
}, null, 8, ["shape", "fill"])
|
|
1193
1193
|
]),
|
|
1194
1194
|
key: "0"
|
|
1195
1195
|
} : void 0
|
|
1196
1196
|
]), 1032, ["legendSet", "config"])) : i("", !0),
|
|
1197
|
-
|
|
1197
|
+
g(l.$slots, "legend", { legend: Ue.value }, void 0, !0)
|
|
1198
1198
|
], 512),
|
|
1199
1199
|
l.$slots.source ? (o(), r("div", {
|
|
1200
1200
|
key: 7,
|
|
@@ -1202,10 +1202,10 @@ const nl = ["id"], rl = ["xmlns", "viewBox"], il = ["width", "height"], vl = { k
|
|
|
1202
1202
|
ref: Pe,
|
|
1203
1203
|
dir: "auto"
|
|
1204
1204
|
}, [
|
|
1205
|
-
|
|
1205
|
+
g(l.$slots, "source", {}, void 0, !0)
|
|
1206
1206
|
], 512)) : i("", !0),
|
|
1207
1207
|
xe(u(gt), {
|
|
1208
|
-
show:
|
|
1208
|
+
show: h.value.showTooltip && de.value,
|
|
1209
1209
|
backgroundColor: e.value.style.chart.tooltip.backgroundColor,
|
|
1210
1210
|
color: e.value.style.chart.tooltip.color,
|
|
1211
1211
|
fontSize: e.value.style.chart.tooltip.fontSize,
|
|
@@ -1221,10 +1221,10 @@ const nl = ["id"], rl = ["xmlns", "viewBox"], il = ["width", "height"], vl = { k
|
|
|
1221
1221
|
isFullscreen: ae.value
|
|
1222
1222
|
}, {
|
|
1223
1223
|
"tooltip-before": C(() => [
|
|
1224
|
-
|
|
1224
|
+
g(l.$slots, "tooltip-before", oe(se({ ...we.value })), void 0, !0)
|
|
1225
1225
|
]),
|
|
1226
1226
|
"tooltip-after": C(() => [
|
|
1227
|
-
|
|
1227
|
+
g(l.$slots, "tooltip-after", oe(se({ ...we.value })), void 0, !0)
|
|
1228
1228
|
]),
|
|
1229
1229
|
_: 3
|
|
1230
1230
|
}, 8, ["show", "backgroundColor", "color", "fontSize", "borderRadius", "borderColor", "borderWidth", "backgroundOpacity", "position", "offsetY", "parent", "content", "isCustom", "isFullscreen"]),
|
|
@@ -1232,7 +1232,7 @@ const nl = ["id"], rl = ["xmlns", "viewBox"], il = ["width", "height"], vl = { k
|
|
|
1232
1232
|
key: 8,
|
|
1233
1233
|
hideDetails: "",
|
|
1234
1234
|
config: {
|
|
1235
|
-
open:
|
|
1235
|
+
open: h.value.showTable,
|
|
1236
1236
|
maxHeight: 1e4,
|
|
1237
1237
|
body: {
|
|
1238
1238
|
backgroundColor: e.value.style.chart.backgroundColor,
|
|
@@ -1252,10 +1252,10 @@ const nl = ["id"], rl = ["xmlns", "viewBox"], il = ["width", "height"], vl = { k
|
|
|
1252
1252
|
body: he.value.body,
|
|
1253
1253
|
config: he.value.config,
|
|
1254
1254
|
title: `${e.value.style.chart.title.text}${e.value.style.chart.title.subtitle.text ? ` : ${e.value.style.chart.title.subtitle.text}` : ""}`,
|
|
1255
|
-
onClose: s[5] || (s[5] = (t) =>
|
|
1255
|
+
onClose: s[5] || (s[5] = (t) => h.value.showTable = !1)
|
|
1256
1256
|
}, {
|
|
1257
1257
|
th: C(({ th: t }) => [
|
|
1258
|
-
|
|
1258
|
+
f("div", {
|
|
1259
1259
|
innerHTML: t,
|
|
1260
1260
|
style: { display: "flex", "align-items": "center" }
|
|
1261
1261
|
}, null, 8, ga)
|
|
@@ -1287,7 +1287,7 @@ const nl = ["id"], rl = ["xmlns", "viewBox"], il = ["width", "height"], vl = { k
|
|
|
1287
1287
|
}, 8, ["config"])) : i("", !0)
|
|
1288
1288
|
], 46, nl));
|
|
1289
1289
|
}
|
|
1290
|
-
}, Sa = /* @__PURE__ */ ul(ma, [["__scopeId", "data-v-
|
|
1290
|
+
}, Sa = /* @__PURE__ */ ul(ma, [["__scopeId", "data-v-e6ceb7ec"]]);
|
|
1291
1291
|
export {
|
|
1292
1292
|
Sa as default
|
|
1293
1293
|
};
|