vue-data-ui 3.1.15 → 3.1.16
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-BwVAy_Jw.js → Arrow-5vUlLOBt.js} +1 -1
- package/dist/{BaseDraggableDialog-TS2ANP8W.js → BaseDraggableDialog-RzeiqHjP.js} +2 -2
- package/dist/{BaseIcon-Dj9csjZa.js → BaseIcon-wGdAhoaF.js} +1 -1
- package/dist/{ColorPicker-BKecww2B.js → ColorPicker-DNOgu-Rw.js} +2 -2
- package/dist/{DataTable-DAc2s9Wi.js → DataTable-JX5MWop0.js} +2 -2
- package/dist/{Legend-C3Kvktr3.js → Legend-QXKyEiPD.js} +2 -2
- package/dist/{NonSvgPenAndPaper-yA6HCA0i.js → NonSvgPenAndPaper-BG4C0Flj.js} +3 -3
- package/dist/{PackageVersion-DL0EOwRR.js → PackageVersion-BSXHahdf.js} +1 -1
- package/dist/{PenAndPaper-CcoAkH79.js → PenAndPaper-ScGkrINJ.js} +3 -3
- package/dist/{Shape-CziAQ1KL.js → Shape-B5nsWKct.js} +1 -1
- package/dist/{Slicer-BMgEyKMg.js → Slicer-BP5JybRr.js} +2 -2
- package/dist/{SparkTooltip-BGqC2VSH.js → SparkTooltip-qH7jdTTV.js} +1 -1
- package/dist/{Title-DRhv9bCG.js → Title-Cs26H3hX.js} +1 -1
- package/dist/{Tooltip-B46L8jx5.js → Tooltip-BAx7Btsw.js} +1 -1
- package/dist/{UserOptions-CmhyvH7T.js → UserOptions-BLVLaZDQ.js} +2 -2
- package/dist/{dom-to-png-B2G1VN03.js → dom-to-png-8xSfWIE3.js} +1 -1
- package/dist/{img-CRdZ0dzP.js → img-DYi-2xfu.js} +1 -1
- package/dist/{index-BS0jZusk.js → index-D6OjIQeq.js} +1 -1
- package/dist/{pdf-Gz1SfU0n.js → pdf-BE8YApaL.js} +1 -1
- package/dist/style.css +1 -1
- package/dist/{useAutoSizeLabelsInsideViewbox-BPbMPvCk.js → useAutoSizeLabelsInsideViewbox-CeJVwNle.js} +1 -1
- package/dist/{useNestedProp-BMfS1Wmb.js → useNestedProp-QUe0ze7N.js} +1 -1
- package/dist/{usePrinter-CsKq2kgt.js → usePrinter-BZ8rT5v2.js} +2 -2
- package/dist/{vue-data-ui-BfnOSsYj.js → vue-data-ui-C8k4Y_oL.js} +64 -64
- package/dist/vue-data-ui.js +1 -1
- package/dist/{vue-ui-3d-bar-BR_dgJX1.js → vue-ui-3d-bar-Bt5Fz91G.js} +6 -6
- package/dist/{vue-ui-accordion-CEzzDwYU.js → vue-ui-accordion-Cq060UfJ.js} +3 -3
- package/dist/{vue-ui-age-pyramid-CqzjgMzW.js → vue-ui-age-pyramid-8y3q3bso.js} +6 -6
- package/dist/{vue-ui-annotator-OWSjXDfI.js → vue-ui-annotator-CiYwSoCc.js} +2 -2
- package/dist/{vue-ui-bullet-BkiVGK4U.js → vue-ui-bullet-1eQWn7Q3.js} +7 -7
- package/dist/{vue-ui-candlestick-CE9w-lrK.js → vue-ui-candlestick-CIlTxwGr.js} +7 -7
- package/dist/{vue-ui-carousel-table-DzMkFu9a.js → vue-ui-carousel-table-CgwL2hyg.js} +4 -4
- package/dist/{vue-ui-chestnut-CwW3t_5M.js → vue-ui-chestnut-DlpqIPgH.js} +5 -5
- package/dist/{vue-ui-chord-C273Dy7g.js → vue-ui-chord-EjxXbSFh.js} +8 -8
- package/dist/{vue-ui-circle-pack-DVsgg20A.js → vue-ui-circle-pack-DTCERNzf.js} +6 -6
- package/dist/{vue-ui-cursor-6wDMRfxj.js → vue-ui-cursor-DvUoY7hb.js} +2 -2
- package/dist/{vue-ui-dashboard-Dr3da_KZ.js → vue-ui-dashboard-CXhJYlHM.js} +67 -67
- package/dist/{vue-ui-digits-CJl9xG57.js → vue-ui-digits-BIyBotSz.js} +2 -2
- package/dist/{vue-ui-donut-CKvoDpr0.js → vue-ui-donut-BQZwtNJm.js} +8 -8
- package/dist/{vue-ui-donut-evolution-B8z5HW6k.js → vue-ui-donut-evolution-UXTR4300.js} +8 -8
- package/dist/{vue-ui-dumbbell-C-aWCVEj.js → vue-ui-dumbbell-g6zDDlZe.js} +7 -7
- package/dist/{vue-ui-flow-Cg0W7WX3.js → vue-ui-flow-Ca_dZjw9.js} +7 -7
- package/dist/{vue-ui-funnel-CfzyjhfB.js → vue-ui-funnel-Om9LCUCJ.js} +6 -6
- package/dist/{vue-ui-galaxy-CzswoWLZ.js → vue-ui-galaxy-BLUw06YE.js} +7 -7
- package/dist/{vue-ui-gauge-BguKCg0e.js → vue-ui-gauge-CK-pZBWT.js} +7 -7
- package/dist/{vue-ui-gizmo-mhU06gyJ.js → vue-ui-gizmo-BSxlb7sM.js} +3 -3
- package/dist/{vue-ui-heatmap-BtAAQWmE.js → vue-ui-heatmap-DZg46_w0.js} +7 -7
- package/dist/{vue-ui-history-plot-Clrvd4ZQ.js → vue-ui-history-plot-D8sq7qDo.js} +7 -7
- package/dist/{vue-ui-kpi-DGpQpP2W.js → vue-ui-kpi-CK4Sz-AD.js} +3 -3
- package/dist/{vue-ui-mini-loader-2zvIBunp.js → vue-ui-mini-loader-D-potdmP.js} +2 -2
- package/dist/{vue-ui-molecule-DKgiZcBp.js → vue-ui-molecule-B36nPur5.js} +5 -5
- package/dist/{vue-ui-mood-radar-ka0RoCHN.js → vue-ui-mood-radar-DaacpsBj.js} +7 -7
- package/dist/{vue-ui-nested-donuts-CvROIWCn.js → vue-ui-nested-donuts-UgIV0zrL.js} +7 -7
- package/dist/{vue-ui-onion-x5qCIJUe.js → vue-ui-onion-DWUFUuVG.js} +8 -8
- package/dist/{vue-ui-parallel-coordinate-plot-BaNQTR7G.js → vue-ui-parallel-coordinate-plot-DleqNzzO.js} +8 -8
- package/dist/{vue-ui-quadrant-Bde3xKLu.js → vue-ui-quadrant-B_dlGzjJ.js} +8 -8
- package/dist/{vue-ui-quick-chart-BpHyBn7x.js → vue-ui-quick-chart-Dyo1b6H6.js} +6 -6
- package/dist/{vue-ui-radar-DP3ErImt.js → vue-ui-radar-NbR2uHg4.js} +8 -8
- package/dist/{vue-ui-rating-DCL2xb9w.js → vue-ui-rating-CryvFvr7.js} +2 -2
- package/dist/{vue-ui-relation-circle-COt79-GJ.js → vue-ui-relation-circle-DF6dE4zW.js} +7 -7
- package/dist/{vue-ui-ridgeline-Dcrii6_n.js → vue-ui-ridgeline-8-dQ3bbv.js} +8 -8
- package/dist/{vue-ui-rings-CiDYRQIj.js → vue-ui-rings-B147Pr4Q.js} +8 -8
- package/dist/{vue-ui-scatter-D8bk6KJw.js → vue-ui-scatter-yKBu-zLG.js} +8 -8
- package/dist/{vue-ui-skeleton-DZN6Q2RW.js → vue-ui-skeleton-C-jwsbrt.js} +3 -3
- package/dist/{vue-ui-smiley-a9aOACpQ.js → vue-ui-smiley-DFJ2-pxP.js} +2 -2
- package/dist/{vue-ui-spark-trend-D2ySMA8w.js → vue-ui-spark-trend-BU0OIb8g.js} +3 -3
- package/dist/{vue-ui-sparkbar-CPKbBS4x.js → vue-ui-sparkbar-DRsv3ulD.js} +3 -3
- package/dist/{vue-ui-sparkgauge-YgppX8cI.js → vue-ui-sparkgauge-BfoO71Ji.js} +3 -3
- package/dist/{vue-ui-sparkhistogram-BT-Pb999.js → vue-ui-sparkhistogram-DJtyI7Bl.js} +4 -4
- package/dist/{vue-ui-sparkline-DE_nT4bC.js → vue-ui-sparkline-dHdyjp0m.js} +3 -3
- package/dist/{vue-ui-sparkstackbar-3MV7U6sR.js → vue-ui-sparkstackbar-DQhZm6u2.js} +3 -3
- package/dist/{vue-ui-stackbar-wfRiGYFu.js → vue-ui-stackbar-BEoSEdhL.js} +9 -9
- package/dist/{vue-ui-strip-plot-BYDBbI0O.js → vue-ui-strip-plot-CNqY9uEA.js} +7 -7
- package/dist/{vue-ui-table-heatmap-hOIbFD6k.js → vue-ui-table-heatmap-DDR4_yLN.js} +5 -5
- package/dist/{vue-ui-table-sparkline-DNnOTTBh.js → vue-ui-table-sparkline-qFmRMBGM.js} +4 -4
- package/dist/{vue-ui-table-xG0KcrLD.js → vue-ui-table-ywthhZy0.js} +4 -4
- package/dist/{vue-ui-thermometer-C8kZDjnk.js → vue-ui-thermometer-Dk534ePJ.js} +7 -7
- package/dist/{vue-ui-timer-BZxcYfbP.js → vue-ui-timer-UVZZcr4T.js} +5 -5
- package/dist/{vue-ui-tiremarks-D5mpDWUN.js → vue-ui-tiremarks-BaFMrJSV.js} +6 -6
- package/dist/{vue-ui-treemap-RPa_dvoO.js → vue-ui-treemap-CuHOtSzw.js} +8 -8
- package/dist/{vue-ui-vertical-bar-OwkTXcnm.js → vue-ui-vertical-bar-C-_UEN9K.js} +9 -9
- package/dist/{vue-ui-waffle-DveHx6kc.js → vue-ui-waffle-BTUdTAI_.js} +8 -8
- package/dist/{vue-ui-wheel-Cyk4SL64.js → vue-ui-wheel-BaqvZwV1.js} +6 -6
- package/dist/{vue-ui-word-cloud-BNmS-vjj.js → vue-ui-word-cloud-Iry997aF.js} +6 -6
- package/dist/{vue-ui-world-BhB1K_eL.js → vue-ui-world-B-iFEOiQ.js} +6 -6
- package/dist/{vue-ui-xy-CfuSMzgb.js → vue-ui-xy-LlykHLgF.js} +1069 -1041
- package/dist/{vue-ui-xy-canvas-BFgpcPZ3.js → vue-ui-xy-canvas-CvkmWMXw.js} +10 -10
- package/package.json +1 -1
|
@@ -1,17 +1,17 @@
|
|
|
1
|
-
import { useCssVars as Yo, computed as x, ref as y, onMounted as Ll, onBeforeUnmount as gl, watch as ht, onUpdated as
|
|
2
|
-
import { c as
|
|
1
|
+
import { useCssVars as Yo, computed as x, ref as y, onMounted as Ll, onBeforeUnmount as gl, watch as ht, onUpdated as ho, nextTick as Cl, createElementBlock as i, openBlock as n, createElementVNode as k, createCommentVNode as g, renderSlot as te, normalizeStyle as L, createVNode as ml, withDirectives as Oa, unref as h, Fragment as b, renderList as M, normalizeProps as Xt, mergeProps as Yt, normalizeClass as Ze, withKeys as fo, vModelText as mo, toDisplayString as re, defineAsyncComponent as Dt, useSlots as Go, getCurrentInstance as Uo, toRefs as qo, watchEffect as go, createBlock as ct, createSlots as xo, withCtx as we, guardReactiveProps as dl, Teleport as Zo, resolveDynamicComponent as Ko, vModelCheckbox as Jo, createTextVNode as bo } from "vue";
|
|
2
|
+
import { c as xa, y as ba, X as Qo, F as dt, $ as ya, V as pa, a0 as ka, U as wa, a1 as yo, u as jo, f as Na, t as en, d as tn, D as Kl, af as hl, e as po, p as ko, ag as fa, ac as j, a7 as Pa, ah as ln, h as q, ai as an, aj as wo, ak as So, k as ze, al as on, z as nn, _ as $o, R as wt, i as lt, x as fl, s as vt, aa as ue, L as un, am as ma, I as sn, an as Wt, C as qe, a as rn, b as cn, o as _o, v as vn, w as dn, E as Ml } from "./index-D6OjIQeq.js";
|
|
3
3
|
import { t as Jl, d as hn, u as fn } from "./useResponsive-DfdjqQps.js";
|
|
4
|
-
import { u as mn } from "./usePrinter-
|
|
4
|
+
import { u as mn } from "./usePrinter-BZ8rT5v2.js";
|
|
5
5
|
import { u as gn, B as xn } from "./BaseScanner-BgWxam9d.js";
|
|
6
|
-
import { u as
|
|
7
|
-
import { u as Fa } from "./useNestedProp-
|
|
6
|
+
import { u as Mo, a as bn, l as yn } from "./useTimeLabels-BGFjWgrv.js";
|
|
7
|
+
import { u as Fa } from "./useNestedProp-QUe0ze7N.js";
|
|
8
8
|
import { u as pn } from "./useTimeLabelCollider-CIsgDrl9.js";
|
|
9
|
-
import kn from "./img-
|
|
10
|
-
import wn from "./Title-
|
|
11
|
-
import { _ as
|
|
12
|
-
import Sn from "./BaseIcon-
|
|
13
|
-
import { _ as
|
|
14
|
-
import $n from "./vue-ui-accordion-
|
|
9
|
+
import kn from "./img-DYi-2xfu.js";
|
|
10
|
+
import wn from "./Title-Cs26H3hX.js";
|
|
11
|
+
import { _ as ga } from "./Shape-B5nsWKct.js";
|
|
12
|
+
import Sn from "./BaseIcon-wGdAhoaF.js";
|
|
13
|
+
import { _ as Lo } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
14
|
+
import $n from "./vue-ui-accordion-Cq060UfJ.js";
|
|
15
15
|
const _n = {
|
|
16
16
|
class: "vue-data-ui-slicer-labels",
|
|
17
17
|
style: { position: "relative", "z-index": "1", "pointer-events": "none" }
|
|
@@ -22,7 +22,7 @@ const _n = {
|
|
|
22
22
|
key: 0,
|
|
23
23
|
class: "minimap",
|
|
24
24
|
style: { width: "100%" }
|
|
25
|
-
}, Cn = ["xmlns", "viewBox"], An = ["id"], zn = ["stop-color"], Tn = ["width", "height", "stroke"], In = ["d", "stroke"], Nn = ["d", "fill"], Pn = ["x", "y", "width", "height", "fill"], Fn = ["d", "stroke"], Rn = ["cx", "cy", "fill", "stroke"], On = ["x", "width", "height", "fill", "rx"], Vn = ["x", "width", "height", "rx", "fill"], Bn = ["x", "width", "height", "fill", "rx"], En = ["x2", "y1", "y2", "stroke"], Hn = { key: "merged-tree" }, Dn = ["d", "fill"], Wn = ["d", "stroke"], Xn = ["cx", "cy", "stroke", "fill"], Yn = ["cx", "cy", "stroke", "fill"], Gn = { key: "split-tree" }, Un = ["x", "y", "width", "height", "fill"], qn = ["d", "stroke"], Zn = ["x", "height", "fill", "stroke"], Kn = ["x", "height", "fill", "stroke"], Jn = { key: "merged-tree" }, Qn = ["cx", "cy", "stroke", "fill"], jn = ["cx", "cy", "fill"],
|
|
25
|
+
}, Cn = ["xmlns", "viewBox"], An = ["id"], zn = ["stop-color"], Tn = ["width", "height", "stroke"], In = ["d", "stroke"], Nn = ["d", "fill"], Pn = ["x", "y", "width", "height", "fill"], Fn = ["d", "stroke"], Rn = ["cx", "cy", "fill", "stroke"], On = ["x", "width", "height", "fill", "rx"], Vn = ["x", "width", "height", "rx", "fill"], Bn = ["x", "width", "height", "fill", "rx"], En = ["x2", "y1", "y2", "stroke"], Hn = { key: "merged-tree" }, Dn = ["d", "fill"], Wn = ["d", "stroke"], Xn = ["cx", "cy", "stroke", "fill"], Yn = ["cx", "cy", "stroke", "fill"], Gn = { key: "split-tree" }, Un = ["x", "y", "width", "height", "fill"], qn = ["d", "stroke"], Zn = ["x", "height", "fill", "stroke"], Kn = ["x", "height", "fill", "stroke"], Jn = { key: "merged-tree" }, Qn = ["cx", "cy", "stroke", "fill"], jn = ["cx", "cy", "fill"], ei = ["cx", "cy", "stroke", "fill"], ti = ["cx", "cy", "fill"], li = { key: 11 }, ai = ["d", "stroke"], oi = ["cx", "cy", "fill", "stroke"], ni = ["cx", "cy", "stroke", "fill"], ii = ["cx", "cy", "fill"], ui = ["cx", "cy", "stroke", "fill"], si = ["cx", "cy", "fill"], ri = ["x", "height", "width", "onMouseenter"], ci = ["min", "max"], vi = ["min", "max"], Ra = 48, di = {
|
|
26
26
|
__name: "SlicerPreview",
|
|
27
27
|
props: {
|
|
28
28
|
immediate: {
|
|
@@ -188,30 +188,30 @@ const _n = {
|
|
|
188
188
|
}
|
|
189
189
|
},
|
|
190
190
|
emits: ["futureStart", "futureEnd", "update:start", "update:end", "reset", "trapMouse"],
|
|
191
|
-
setup(
|
|
191
|
+
setup($, { expose: Sa, emit: $a }) {
|
|
192
192
|
Yo((v) => ({
|
|
193
193
|
"7bb0ba06": Il.value,
|
|
194
194
|
"5a1d2b71": ne.value,
|
|
195
195
|
b078bfbc: mt.value,
|
|
196
|
-
"3a526ca1":
|
|
196
|
+
"3a526ca1": $.selectColor,
|
|
197
197
|
"9964c2a2": Nl.value
|
|
198
198
|
}));
|
|
199
|
-
const d =
|
|
199
|
+
const d = $, Le = y(null), he = y(d.min), ge = y(d.max), fe = x(() => !!d.minimap.length), Al = y(xa()), St = y(!1), It = x(() => fe.value && d.minimapCompact), zl = y(0), Gt = Jl((v) => Ce("futureStart", v), 0), xl = Jl((v) => Ce("futureEnd", v), 0), Ut = x({
|
|
200
200
|
get: () => he.value,
|
|
201
201
|
set(v) {
|
|
202
202
|
const m = Math.min(v, ge.value - 1);
|
|
203
|
-
m !== he.value && (he.value = m, el.value && (el.value.value = String(m)), d.immediate ?
|
|
203
|
+
m !== he.value && (he.value = m, el.value && (el.value.value = String(m)), d.immediate ? Ce("update:start", Number(m)) : St.value && Gt(m));
|
|
204
204
|
}
|
|
205
205
|
}), $t = x({
|
|
206
206
|
get: () => ge.value,
|
|
207
207
|
set(v) {
|
|
208
208
|
const m = Math.max(v, he.value + 1);
|
|
209
|
-
m !== ge.value && (ge.value = m, t.value && (t.value.value = String(m)), d.immediate ?
|
|
209
|
+
m !== ge.value && (ge.value = m, t.value && (t.value.value = String(m)), d.immediate ? Ce("update:end", Number(m)) : St.value && xl(m));
|
|
210
210
|
}
|
|
211
211
|
});
|
|
212
212
|
Ll(() => {
|
|
213
213
|
const v = () => {
|
|
214
|
-
|
|
214
|
+
Le.value && (zl.value = Le.value.getBoundingClientRect().width);
|
|
215
215
|
};
|
|
216
216
|
v();
|
|
217
217
|
const m = Jl(v, 50);
|
|
@@ -221,9 +221,9 @@ const _n = {
|
|
|
221
221
|
});
|
|
222
222
|
let Be = null;
|
|
223
223
|
function Te() {
|
|
224
|
-
clearTimeout(Be), d.immediate || (
|
|
224
|
+
clearTimeout(Be), d.immediate || (Ce("update:start", Number(he.value)), Ce("update:end", Number(ge.value))), St.value = !1;
|
|
225
225
|
}
|
|
226
|
-
const Ke = x(() => d.refreshEndPoint === null ? d.max : d.refreshEndPoint),
|
|
226
|
+
const Ke = x(() => d.refreshEndPoint === null ? d.max : d.refreshEndPoint), Ce = $a, ft = x(() => {
|
|
227
227
|
if (It.value) {
|
|
228
228
|
const m = Math.max(1, at.value - 1);
|
|
229
229
|
return Nt.value / m * 100;
|
|
@@ -238,12 +238,12 @@ const _n = {
|
|
|
238
238
|
const v = Math.max(1, d.max - d.min);
|
|
239
239
|
return (ge.value - d.min) / v * 100;
|
|
240
240
|
}), Tl = x(() => (ft.value + _t.value) / 2), qt = x(() => {
|
|
241
|
-
if (!
|
|
241
|
+
if (!Le.value) return !1;
|
|
242
242
|
const v = Math.max(1, d.max - d.min);
|
|
243
|
-
return
|
|
243
|
+
return Le.value.getBoundingClientRect().width * ((he.value - d.min) / v) - pl.value / 2 < 0;
|
|
244
244
|
}), Zt = x(() => {
|
|
245
|
-
if (!
|
|
246
|
-
const v = Math.max(1, d.max - d.min), m =
|
|
245
|
+
if (!Le.value) return !1;
|
|
246
|
+
const v = Math.max(1, d.max - d.min), m = Le.value.getBoundingClientRect().width;
|
|
247
247
|
return m * ((ge.value - d.min) / v) + c.value / 2 > m;
|
|
248
248
|
}), Se = x(() => {
|
|
249
249
|
const v = Zt.value ? `calc(${Tl.value}% - ${Vt.value.width}px - 2px)` : qt.value ? `calc(${Tl.value}% - 8px)` : `calc(${Tl.value}% - ${Vt.value.width / 2}px - 4px)`;
|
|
@@ -263,8 +263,8 @@ const _n = {
|
|
|
263
263
|
v.push(m);
|
|
264
264
|
return v;
|
|
265
265
|
});
|
|
266
|
-
function
|
|
267
|
-
|
|
266
|
+
function E() {
|
|
267
|
+
Ce("reset");
|
|
268
268
|
}
|
|
269
269
|
ht(
|
|
270
270
|
() => d.min,
|
|
@@ -277,7 +277,7 @@ const _n = {
|
|
|
277
277
|
Number(he.value) > Number(v) && (he.value = Number(v)), Number(ge.value) > Number(v) && (ge.value = Number(v));
|
|
278
278
|
}
|
|
279
279
|
);
|
|
280
|
-
const Kt = y(null),
|
|
280
|
+
const Kt = y(null), W = y({
|
|
281
281
|
width: 1,
|
|
282
282
|
height: 1
|
|
283
283
|
}), le = y(null);
|
|
@@ -286,7 +286,7 @@ const _n = {
|
|
|
286
286
|
const v = Jl(() => {
|
|
287
287
|
if (!Kt.value) return;
|
|
288
288
|
const { width: m, height: f } = fn({ chart: Kt.value }), A = Math.max(0, Math.round(m)), z = Math.max(0, Math.round(f - 47));
|
|
289
|
-
(A !==
|
|
289
|
+
(A !== W.value.width || z !== W.value.height) && (W.value.width = A, W.value.height = z);
|
|
290
290
|
}, 50);
|
|
291
291
|
le.value = new ResizeObserver(v), le.value.observe(Kt.value);
|
|
292
292
|
}
|
|
@@ -305,11 +305,11 @@ const _n = {
|
|
|
305
305
|
const Ee = x(() => jl(he.value)), Pe = x(() => Jt(ge.value)), bl = x(() => Math.max(...d.allMinimaps.map((v) => v.series.length))), ae = x(() => {
|
|
306
306
|
if (!d.minimap.length) return 0;
|
|
307
307
|
const v = Math.max(1, bl.value - (d.minimapCompact ? 1 : 0));
|
|
308
|
-
return
|
|
308
|
+
return W.value.width / v;
|
|
309
309
|
}), ce = x(() => d.allMinimaps.length ? d.allMinimaps.filter((v) => v.type === "bar").length : 0), Z = x(() => ae.value / (ce.value || 1) * 0.8);
|
|
310
310
|
function Pl(v, m, f) {
|
|
311
|
-
const A = Z.value, z = Math.max(1, ce.value),
|
|
312
|
-
return f === 0 ? v + A / 2 * m : f ===
|
|
311
|
+
const A = Z.value, z = Math.max(1, ce.value), D = bl.value - 1;
|
|
312
|
+
return f === 0 ? v + A / 2 * m : f === D ? v - A / 2 * (z - m) : v - z * A / 2 + m * A;
|
|
313
313
|
}
|
|
314
314
|
function Fl(v, m) {
|
|
315
315
|
return [0, bl.value - 1].includes(m) ? Z.value / 2 : Z.value;
|
|
@@ -320,8 +320,8 @@ const _n = {
|
|
|
320
320
|
for (const m of d.allMinimaps)
|
|
321
321
|
m?.isVisible && Array.isArray(m?.series) && v.push(...m.series.filter(Number.isFinite));
|
|
322
322
|
return v.length ? { min: Math.min(...v), max: Math.max(...v) } : { min: 0, max: 1 };
|
|
323
|
-
}), He = x(() => Rl.value.min), gt = x(() => Rl.value.max),
|
|
324
|
-
const m = Math.max(1,
|
|
323
|
+
}), He = x(() => Rl.value.min), gt = x(() => Rl.value.max), X = x(() => He.value < 0 && gt.value > 0 || gt.value <= 0 ? He.value : 0), ea = x(() => Math.max(1e-9, Math.max(Math.abs(He.value), Math.abs(gt.value)))), Ol = x(() => He.value < 0 && gt.value > 0), yl = (v) => {
|
|
324
|
+
const m = Math.max(1, W.value.height);
|
|
325
325
|
if (Ol.value) {
|
|
326
326
|
const f = ea.value;
|
|
327
327
|
return (1 - (Math.max(-1, Math.min(1, v / f)) + 1) / 2) * m;
|
|
@@ -329,18 +329,18 @@ const _n = {
|
|
|
329
329
|
const f = Math.min(0, He.value), A = Math.max(0, gt.value);
|
|
330
330
|
return m - (v - f) / Math.max(1e-9, A - f) * m;
|
|
331
331
|
}
|
|
332
|
-
},
|
|
332
|
+
}, $e = x(() => yl(0));
|
|
333
333
|
function ot(v, m, f) {
|
|
334
|
-
const A = (
|
|
334
|
+
const A = (D, ke, S) => Math.max(ke, Math.min(S, D));
|
|
335
335
|
if (m <= 0) {
|
|
336
|
-
const
|
|
337
|
-
return (ke) => f - (ke - v) /
|
|
336
|
+
const D = Math.max(1e-9, 0 - v);
|
|
337
|
+
return (ke) => f - (ke - v) / D * f;
|
|
338
338
|
} else if (v >= 0) {
|
|
339
|
-
const
|
|
340
|
-
return (ke) => f - (ke - 0) /
|
|
339
|
+
const D = Math.max(1e-9, m - 0);
|
|
340
|
+
return (ke) => f - (ke - 0) / D * f;
|
|
341
341
|
} else {
|
|
342
|
-
const
|
|
343
|
-
return (ke) => (1 - (A(ke /
|
|
342
|
+
const D = Math.max(1e-9, Math.max(Math.abs(v), Math.abs(m)));
|
|
343
|
+
return (ke) => (1 - (A(ke / D, -1, 1) + 1) / 2) * f;
|
|
344
344
|
}
|
|
345
345
|
}
|
|
346
346
|
function Qt(v, m = !1) {
|
|
@@ -357,31 +357,31 @@ const _n = {
|
|
|
357
357
|
fullMarkers: [],
|
|
358
358
|
selectionMarkers: []
|
|
359
359
|
};
|
|
360
|
-
const f = Math.max(1,
|
|
361
|
-
const At = d.cutNullValues ?
|
|
360
|
+
const f = Math.max(1, W.value.height), A = ot(He.value, gt.value, f), z = v.length, D = Math.min(Math.max(0, Ee.value), Math.max(0, z - 1)), ke = Math.min(z, Math.max(D + 1, Pe.value)), S = v.map((Me, ul) => {
|
|
361
|
+
const At = d.cutNullValues ? Me : Me === null ? 0 : Me, na = Number.isFinite(At), La = ae.value * ul + (d.minimapCompact ? 0 : ae.value / 2), Ca = A(0);
|
|
362
362
|
return {
|
|
363
|
-
x:
|
|
363
|
+
x: La,
|
|
364
364
|
y: na ? A(At) : NaN,
|
|
365
365
|
v: At,
|
|
366
366
|
value: na ? At : null,
|
|
367
|
-
y0:
|
|
368
|
-
i:
|
|
367
|
+
y0: Ca,
|
|
368
|
+
i: ul
|
|
369
369
|
};
|
|
370
|
-
}), wl = (
|
|
370
|
+
}), wl = (Me) => Me >= 0 && Me < S.length && Number.isFinite(S[Me]?.value), st = S.filter((Me) => Number.isFinite(Me.value) && !wl(Me.i - 1) && !wl(Me.i + 1)), Bt = st.filter((Me) => Me.i >= D && Me.i < ke), Ct = S.slice(D, ke), oa = S.length >= 2 ? d.smoothMinimap || m ? d.cutNullValues ? ya(S) : pa(S) : d.cutNullValues ? ka(S) : wa(S) : "", il = Ct.length >= 2 ? d.smoothMinimap || m ? d.cutNullValues ? ya(Ct) : pa(Ct) : d.cutNullValues ? ka(Ct) : wa(Ct) : "";
|
|
371
371
|
return {
|
|
372
372
|
fullSet: oa,
|
|
373
|
-
points:
|
|
374
|
-
selectionSet:
|
|
373
|
+
points: S,
|
|
374
|
+
selectionSet: il,
|
|
375
375
|
sliced: Ct,
|
|
376
|
-
firstPlot:
|
|
377
|
-
lastPlot:
|
|
378
|
-
hasFull:
|
|
376
|
+
firstPlot: S[D] || null,
|
|
377
|
+
lastPlot: S[Math.max(0, ke - 1)] || null,
|
|
378
|
+
hasFull: S.length >= 2,
|
|
379
379
|
hasSelection: Ct.length >= 2,
|
|
380
380
|
fullMarkers: st,
|
|
381
381
|
selectionMarkers: Bt
|
|
382
382
|
};
|
|
383
383
|
}
|
|
384
|
-
const
|
|
384
|
+
const H = x(() => d.minimap.length ? Qt(d.minimap) : []), Je = x(() => d.allMinimaps.length ? d.allMinimaps.map((v, m) => {
|
|
385
385
|
const f = Qt(v?.series || [], !!v.smooth), A = v?.id ?? v?.name ?? m;
|
|
386
386
|
return {
|
|
387
387
|
key: typeof A == "object" ? JSON.stringify(A) : String(A),
|
|
@@ -408,7 +408,7 @@ const _n = {
|
|
|
408
408
|
return It.value ? Math.max(Ee.value, Pe.value - 1) : $t.value;
|
|
409
409
|
},
|
|
410
410
|
set(v) {
|
|
411
|
-
It.value ?
|
|
411
|
+
It.value ? _e(Vl(v + 1)) : _e(v);
|
|
412
412
|
}
|
|
413
413
|
});
|
|
414
414
|
function C(v) {
|
|
@@ -425,7 +425,7 @@ const _n = {
|
|
|
425
425
|
function Bl(v) {
|
|
426
426
|
xt.value = v;
|
|
427
427
|
const m = Ee.value, f = Pe.value;
|
|
428
|
-
v >= m && v < f && !tt.value &&
|
|
428
|
+
v >= m && v < f && !tt.value && Ce("trapMouse", v - m);
|
|
429
429
|
}
|
|
430
430
|
const el = y(null), t = y(null);
|
|
431
431
|
function p(v) {
|
|
@@ -445,7 +445,7 @@ const _n = {
|
|
|
445
445
|
}));
|
|
446
446
|
}
|
|
447
447
|
let xe = 0;
|
|
448
|
-
function
|
|
448
|
+
function _e(v) {
|
|
449
449
|
St.value = !0;
|
|
450
450
|
const m = p(v);
|
|
451
451
|
Number.isFinite(m) && (cancelAnimationFrame(xe), xe = requestAnimationFrame(() => {
|
|
@@ -455,15 +455,15 @@ const _n = {
|
|
|
455
455
|
gl(() => {
|
|
456
456
|
cancelAnimationFrame(tl), cancelAnimationFrame(xe);
|
|
457
457
|
});
|
|
458
|
-
const bt = x(() => d.valueEnd - d.valueStart),
|
|
458
|
+
const bt = x(() => d.valueEnd - d.valueStart), _a = x(() => bt.value < d.max - d.min), Pt = y(!1);
|
|
459
459
|
let yt = y(null);
|
|
460
|
-
const Qe = x(() => (zl.value - 48) / (d.max - d.min) * bt.value), w = x(() => Math.max(1, zl.value - Ra - Qe.value)), We = x(() => Math.max(1, d.max - d.min - bt.value)), ta = x(() => We.value / w.value), El = y(0), Lt = y(0),
|
|
461
|
-
let nt = null,
|
|
460
|
+
const Qe = x(() => (zl.value - 48) / (d.max - d.min) * bt.value), w = x(() => Math.max(1, zl.value - Ra - Qe.value)), We = x(() => Math.max(1, d.max - d.min - bt.value)), ta = x(() => We.value / w.value), El = y(0), Lt = y(0), Ma = y(0), Hl = y(0);
|
|
461
|
+
let nt = null, it = null, ut = null, pt = null;
|
|
462
462
|
const ll = y(d.min);
|
|
463
463
|
function Ft(v) {
|
|
464
|
-
if (!
|
|
465
|
-
const m =
|
|
466
|
-
return Math.round(d.min + ke *
|
|
464
|
+
if (!Le.value) return d.min;
|
|
465
|
+
const m = Le.value.getBoundingClientRect(), f = m.left + Ra / 2, A = m.right - Ra / 2, z = Math.max(1, A - f), ke = (Math.max(f, Math.min(v, A)) - f) / z, S = Math.max(1, d.max - d.min);
|
|
466
|
+
return Math.round(d.min + ke * S);
|
|
467
467
|
}
|
|
468
468
|
const al = async (v) => {
|
|
469
469
|
if (St.value = !0, Ot.value = !0, !d.enableSelectionDrag) return;
|
|
@@ -473,23 +473,23 @@ const _n = {
|
|
|
473
473
|
if (!A || !(A instanceof Element) || A.classList && A.classList.contains("range-handle")) return;
|
|
474
474
|
Pt.value = !0;
|
|
475
475
|
const z = m ? f ? f.clientX : 0 : v.clientX;
|
|
476
|
-
if (yt.value = z, El.value = z, d.focusOnDrag &&
|
|
476
|
+
if (yt.value = z, El.value = z, d.focusOnDrag && !_a.value && Le.value) {
|
|
477
477
|
ll.value = Ft(z);
|
|
478
|
-
const
|
|
478
|
+
const D = Math.min(0.95, Math.max(0.05, d.focusRangeRatio)), ke = d.max - d.min, S = Math.max(1, Math.round(ke * D)), wl = Math.floor(S / 2);
|
|
479
479
|
let st = ll.value - wl;
|
|
480
|
-
st = Math.max(d.min, Math.min(st, d.max -
|
|
481
|
-
const Bt = Math.min(d.max, st +
|
|
482
|
-
Ut.value = st, $t.value = Bt, Gt(st), xl(Bt),
|
|
480
|
+
st = Math.max(d.min, Math.min(st, d.max - S));
|
|
481
|
+
const Bt = Math.min(d.max, st + S);
|
|
482
|
+
Ut.value = st, $t.value = Bt, Gt(st), xl(Bt), yo(Le.value, "mouseup"), await Cl(), yo(Le.value, "mousedown", { clientX: z });
|
|
483
483
|
}
|
|
484
|
-
Lt.value = he.value,
|
|
484
|
+
Lt.value = he.value, Ma.value = ge.value, Hl.value = ta.value, nt = m ? "touchmove" : "mousemove", it = m ? "touchend" : "mouseup", ut = m ? ol : Xe, pt = m ? Fe : et, window.addEventListener(nt, ut, { passive: !1 }), window.addEventListener(it, pt);
|
|
485
485
|
};
|
|
486
486
|
function Xe(v) {
|
|
487
487
|
Pt.value && je(v.clientX);
|
|
488
488
|
}
|
|
489
489
|
function ol(v) {
|
|
490
|
-
if (!Pt.value || !
|
|
490
|
+
if (!Pt.value || !Le.value) return;
|
|
491
491
|
const m = v.target;
|
|
492
|
-
if (!(m instanceof Element) || !
|
|
492
|
+
if (!(m instanceof Element) || !Le.value.contains(m) || m.classList && m.classList.contains("range-handle")) return;
|
|
493
493
|
v.preventDefault();
|
|
494
494
|
const f = v.targetTouches && v.targetTouches[0] ? v.targetTouches[0] : null;
|
|
495
495
|
f && je(f.clientX);
|
|
@@ -499,8 +499,8 @@ const _n = {
|
|
|
499
499
|
const m = Ft(El.value), A = Ft(v) - m;
|
|
500
500
|
let z = Math.round(Lt.value + A);
|
|
501
501
|
z = Math.max(d.min, Math.min(z, d.max - bt.value));
|
|
502
|
-
const
|
|
503
|
-
Ut.value = z, $t.value =
|
|
502
|
+
const D = z + bt.value;
|
|
503
|
+
Ut.value = z, $t.value = D, Gt(z), xl(D);
|
|
504
504
|
}
|
|
505
505
|
function et() {
|
|
506
506
|
la();
|
|
@@ -509,7 +509,7 @@ const _n = {
|
|
|
509
509
|
la();
|
|
510
510
|
}
|
|
511
511
|
function la() {
|
|
512
|
-
Pt.value = !1, nt &&
|
|
512
|
+
Pt.value = !1, nt && ut && window.removeEventListener(nt, ut), it && pt && window.removeEventListener(it, pt), nt = it = null, ut = pt = null, Te();
|
|
513
513
|
}
|
|
514
514
|
const tt = y(!1), nl = y(null), Rt = y(null), pl = y(1), c = y(1), Ot = y(!1);
|
|
515
515
|
function Dl() {
|
|
@@ -524,7 +524,7 @@ const _n = {
|
|
|
524
524
|
v !== c.value && (c.value = v);
|
|
525
525
|
}
|
|
526
526
|
}
|
|
527
|
-
|
|
527
|
+
ho(() => {
|
|
528
528
|
Dl(), kl();
|
|
529
529
|
});
|
|
530
530
|
const aa = y(0);
|
|
@@ -542,12 +542,12 @@ const _n = {
|
|
|
542
542
|
}
|
|
543
543
|
const v = nl.value.getBoundingClientRect(), m = Rt.value.getBoundingClientRect();
|
|
544
544
|
kt.value = v.x + v.width > m.x;
|
|
545
|
-
const f = v.x + v.width / 2, A = m.x + m.width / 2, z = v.width + m.width,
|
|
545
|
+
const f = v.x + v.width / 2, A = m.x + m.width / 2, z = v.width + m.width, D = (f + A) / 2;
|
|
546
546
|
Vt.value = {
|
|
547
547
|
width: z,
|
|
548
|
-
left:
|
|
548
|
+
left: D - z / 2
|
|
549
549
|
};
|
|
550
|
-
}),
|
|
550
|
+
}), ho(() => {
|
|
551
551
|
Dl(), kl();
|
|
552
552
|
}), ht(() => d.labelLeft, () => {
|
|
553
553
|
Cl(Dl);
|
|
@@ -556,7 +556,7 @@ const _n = {
|
|
|
556
556
|
}, { deep: !0 });
|
|
557
557
|
const me = x(() => {
|
|
558
558
|
let v = "", m = "", f = !1;
|
|
559
|
-
if (
|
|
559
|
+
if (ba(d.customFormat))
|
|
560
560
|
try {
|
|
561
561
|
const A = d.customFormat({
|
|
562
562
|
absoluteIndex: he.value,
|
|
@@ -572,13 +572,13 @@ const _n = {
|
|
|
572
572
|
f = !1;
|
|
573
573
|
}
|
|
574
574
|
if (!f) {
|
|
575
|
-
const A = d.usePreciseLabels ? d.preciseLabels.find((
|
|
575
|
+
const A = d.usePreciseLabels ? d.preciseLabels.find((D) => D.absoluteIndex === he.value) : d.timeLabels.find((D) => D.absoluteIndex === he.value), z = d.usePreciseLabels ? d.preciseLabels.find((D) => D.absoluteIndex === ge.value - 1) : d.timeLabels.find((D) => D.absoluteIndex === ge.value - 1);
|
|
576
576
|
v = A ? A.text : "", m = z ? z.text : "";
|
|
577
577
|
}
|
|
578
578
|
return { left: v, right: m };
|
|
579
579
|
});
|
|
580
580
|
gl(() => {
|
|
581
|
-
le.value && le.value.disconnect(), nt &&
|
|
581
|
+
le.value && le.value.disconnect(), nt && ut && window.removeEventListener(nt, ut), it && pt && window.removeEventListener(it, pt), nt = it = null, ut = pt = null, clearTimeout(Be);
|
|
582
582
|
});
|
|
583
583
|
const Xl = x(() => {
|
|
584
584
|
if (!Ql.value.length) return null;
|
|
@@ -588,7 +588,7 @@ const _n = {
|
|
|
588
588
|
x1: ae.value * v + (d.minimapCompact ? 0 : ae.value / 2),
|
|
589
589
|
x2: ae.value * v + (d.minimapCompact ? 0 : ae.value / 2),
|
|
590
590
|
y1: 0,
|
|
591
|
-
y2: Math.max(
|
|
591
|
+
y2: Math.max(W.value.height, 0),
|
|
592
592
|
stroke: d.minimapIndicatorColor,
|
|
593
593
|
"stroke-linecap": "round",
|
|
594
594
|
"stroke-dasharray": 2,
|
|
@@ -597,24 +597,24 @@ const _n = {
|
|
|
597
597
|
} else
|
|
598
598
|
return null;
|
|
599
599
|
});
|
|
600
|
-
return
|
|
600
|
+
return Sa({
|
|
601
601
|
setStartValue: Mt,
|
|
602
|
-
setEndValue:
|
|
603
|
-
}), (v, m) => (n(),
|
|
602
|
+
setEndValue: _e
|
|
603
|
+
}), (v, m) => (n(), i("div", {
|
|
604
604
|
"data-dom-to-png-ignore": "",
|
|
605
605
|
style: { padding: "0 24px" },
|
|
606
606
|
class: "vue-data-ui-zoom",
|
|
607
607
|
ref_key: "zoomWrapper",
|
|
608
|
-
ref:
|
|
608
|
+
ref: Le,
|
|
609
609
|
onMousedown: al,
|
|
610
610
|
onTouchstart: al
|
|
611
611
|
}, [
|
|
612
612
|
k("div", _n, [
|
|
613
|
-
|
|
614
|
-
|
|
613
|
+
$.valueStart !== $.refreshStartPoint || $.valueEnd !== Ke.value ? (n(), i("div", Mn, [
|
|
614
|
+
$.useResetSlot ? te(v.$slots, "reset-action", {
|
|
615
615
|
key: 1,
|
|
616
|
-
reset:
|
|
617
|
-
}, void 0, !0) : (n(),
|
|
616
|
+
reset: E
|
|
617
|
+
}, void 0, !0) : (n(), i("button", {
|
|
618
618
|
key: 0,
|
|
619
619
|
tabindex: "0",
|
|
620
620
|
role: "button",
|
|
@@ -623,11 +623,11 @@ const _n = {
|
|
|
623
623
|
top: fe.value ? "36px" : "-16px",
|
|
624
624
|
pointerEvents: "all !important"
|
|
625
625
|
}),
|
|
626
|
-
onClick:
|
|
626
|
+
onClick: E
|
|
627
627
|
}, [
|
|
628
628
|
ml(Sn, {
|
|
629
629
|
name: "refresh",
|
|
630
|
-
stroke:
|
|
630
|
+
stroke: $.textColor
|
|
631
631
|
}, null, 8, ["stroke"])
|
|
632
632
|
], 4))
|
|
633
633
|
])) : g("", !0)
|
|
@@ -640,11 +640,11 @@ const _n = {
|
|
|
640
640
|
onMouseenter: m[11] || (m[11] = (f) => Ot.value = !0),
|
|
641
641
|
onMouseleave: m[12] || (m[12] = (f) => Ot.value = !1)
|
|
642
642
|
}, [
|
|
643
|
-
fe.value ? (n(),
|
|
644
|
-
(n(),
|
|
645
|
-
key: `mm-${
|
|
643
|
+
fe.value ? (n(), i("div", Ln, [
|
|
644
|
+
(n(), i("svg", {
|
|
645
|
+
key: `mm-${$.minimapMerged ? "merged" : "split"}-${$.minimapCompact ? "compact" : "normal"}`,
|
|
646
646
|
xmlns: h(Qo),
|
|
647
|
-
viewBox: `0 0 ${Math.max(0,
|
|
647
|
+
viewBox: `0 0 ${Math.max(0, W.value.width)} ${Math.max(0, W.value.height)}`
|
|
648
648
|
}, [
|
|
649
649
|
k("defs", null, [
|
|
650
650
|
k("linearGradient", {
|
|
@@ -656,7 +656,7 @@ const _n = {
|
|
|
656
656
|
}, [
|
|
657
657
|
k("stop", {
|
|
658
658
|
offset: "0%",
|
|
659
|
-
"stop-color": `${
|
|
659
|
+
"stop-color": `${$.minimapLineColor}50`
|
|
660
660
|
}, null, 8, zn),
|
|
661
661
|
m[13] || (m[13] = k("stop", {
|
|
662
662
|
offset: "100%",
|
|
@@ -664,56 +664,56 @@ const _n = {
|
|
|
664
664
|
}, null, -1))
|
|
665
665
|
], 8, An)
|
|
666
666
|
]),
|
|
667
|
-
|
|
667
|
+
$.minimapCompact ? (n(), i("rect", {
|
|
668
668
|
key: 0,
|
|
669
669
|
class: "vue-ui-zoom-minimap-frame",
|
|
670
670
|
x: 0,
|
|
671
671
|
y: 0,
|
|
672
|
-
width:
|
|
673
|
-
height:
|
|
672
|
+
width: W.value.width,
|
|
673
|
+
height: W.value.height,
|
|
674
674
|
fill: "none",
|
|
675
|
-
stroke:
|
|
675
|
+
stroke: $.minimapFrameColor,
|
|
676
676
|
rx: 3
|
|
677
677
|
}, null, 8, Tn)) : g("", !0),
|
|
678
|
-
|
|
678
|
+
$.minimapMerged ? (n(), i("path", {
|
|
679
679
|
key: 1,
|
|
680
|
-
d: `M${
|
|
681
|
-
stroke: `${
|
|
680
|
+
d: `M${H.value.fullSet}`,
|
|
681
|
+
stroke: `${$.minimapLineColor}`,
|
|
682
682
|
fill: "none",
|
|
683
683
|
"stroke-width": "1",
|
|
684
684
|
"stroke-linecap": "round",
|
|
685
685
|
"stroke-linejoin": "round",
|
|
686
686
|
style: { opacity: "0.6" }
|
|
687
687
|
}, null, 8, In)) : g("", !0),
|
|
688
|
-
|
|
688
|
+
$.minimapMerged && !$.minimapCompact ? (n(), i("path", {
|
|
689
689
|
key: 2,
|
|
690
|
-
d: `M${ae.value / 2},${Math.max(
|
|
690
|
+
d: `M${ae.value / 2},${Math.max(W.value.height, 0)} ${H.value.fullSet} L${W.value.width - ae.value / 2},${Math.max(W.value.height, 0)}Z`,
|
|
691
691
|
fill: `url(#${Al.value})`,
|
|
692
692
|
stroke: "none",
|
|
693
693
|
style: { opacity: "0.6" }
|
|
694
|
-
}, null, 8, Nn)) :
|
|
695
|
-
(n(!0),
|
|
696
|
-
(n(!0),
|
|
697
|
-
f.isVisible && !isNaN(z.y) ? (n(),
|
|
694
|
+
}, null, 8, Nn)) : $.minimapMerged ? g("", !0) : (n(), i(b, { key: 3 }, [
|
|
695
|
+
(n(!0), i(b, null, M(Je.value.filter((f) => f.type === "bar"), (f, A) => (n(), i("g", null, [
|
|
696
|
+
(n(!0), i(b, null, M(f.points, (z, D) => (n(), i(b, null, [
|
|
697
|
+
f.isVisible && !isNaN(z.y) ? (n(), i("rect", {
|
|
698
698
|
key: 0,
|
|
699
|
-
x: Pl(z.x, A,
|
|
699
|
+
x: Pl(z.x, A, D),
|
|
700
700
|
y: z.v >= 0 ? z.y : z.y0,
|
|
701
|
-
width: Fl(A,
|
|
701
|
+
width: Fl(A, D),
|
|
702
702
|
height: z.v >= 0 ? z.y0 - z.y : z.y - z.y0,
|
|
703
703
|
fill: f.color,
|
|
704
704
|
style: { opacity: 0.6 }
|
|
705
705
|
}, null, 8, Pn)) : g("", !0)
|
|
706
706
|
], 64))), 256))
|
|
707
707
|
]))), 256)),
|
|
708
|
-
(n(!0),
|
|
709
|
-
f.isVisible ? (n(),
|
|
708
|
+
(n(!0), i(b, null, M(Je.value.filter((f) => f.type === "line"), (f) => (n(), i("g", null, [
|
|
709
|
+
f.isVisible ? (n(), i("path", {
|
|
710
710
|
key: 0,
|
|
711
711
|
d: `M ${f.fullSet}`,
|
|
712
712
|
fill: "none",
|
|
713
713
|
stroke: f.color,
|
|
714
714
|
style: { opacity: "0.6" }
|
|
715
715
|
}, null, 8, Fn)) : g("", !0),
|
|
716
|
-
f.isVisible ? (n(!0),
|
|
716
|
+
f.isVisible ? (n(!0), i(b, { key: 1 }, M(f.fullMarkers, (A) => (n(), i("circle", {
|
|
717
717
|
key: `sel-dot-under-${f.key}-${A.i}`,
|
|
718
718
|
cx: A.x,
|
|
719
719
|
cy: A.y,
|
|
@@ -729,17 +729,17 @@ const _n = {
|
|
|
729
729
|
x: _.value.x,
|
|
730
730
|
y: 0,
|
|
731
731
|
width: Math.max(0, _.value.width),
|
|
732
|
-
height: Math.max(
|
|
732
|
+
height: Math.max(W.value.height, 0),
|
|
733
733
|
fill: ne.value,
|
|
734
|
-
rx:
|
|
734
|
+
rx: $.minimapSelectionRadius,
|
|
735
735
|
stroke: "none"
|
|
736
736
|
}, null, 8, On),
|
|
737
737
|
k("rect", {
|
|
738
738
|
x: _.value.x,
|
|
739
739
|
y: 0,
|
|
740
740
|
width: _.value.width < 0 ? 0 : _.value.width,
|
|
741
|
-
height: Math.max(
|
|
742
|
-
rx:
|
|
741
|
+
height: Math.max(W.value.height, 0),
|
|
742
|
+
rx: $.minimapSelectionRadius,
|
|
743
743
|
fill: ne.value,
|
|
744
744
|
style: L({ opacity: Pt.value || St.value ? 0 : 1 })
|
|
745
745
|
}, null, 12, Vn),
|
|
@@ -747,76 +747,76 @@ const _n = {
|
|
|
747
747
|
x: _.value.x,
|
|
748
748
|
y: 0,
|
|
749
749
|
width: _.value.width < 0 ? 0 : _.value.width,
|
|
750
|
-
height: Math.max(
|
|
751
|
-
fill:
|
|
752
|
-
rx:
|
|
753
|
-
style: L({ opacity:
|
|
750
|
+
height: Math.max(W.value.height, 0),
|
|
751
|
+
fill: $.minimapSelectedColor,
|
|
752
|
+
rx: $.minimapSelectionRadius,
|
|
753
|
+
style: L({ opacity: $.minimapSelectedColorOpacity })
|
|
754
754
|
}, null, 12, Bn),
|
|
755
|
-
|
|
755
|
+
!$.minimapMerged && X.value < 0 ? (n(), i("line", {
|
|
756
756
|
key: 4,
|
|
757
757
|
class: "slicer-minimap-zero-line",
|
|
758
758
|
x1: 0,
|
|
759
|
-
x2:
|
|
760
|
-
y1:
|
|
761
|
-
y2:
|
|
762
|
-
stroke:
|
|
759
|
+
x2: W.value.width,
|
|
760
|
+
y1: $e.value,
|
|
761
|
+
y2: $e.value,
|
|
762
|
+
stroke: $.minimapFrameColor,
|
|
763
763
|
"stroke-width": "0.5"
|
|
764
764
|
}, null, 8, En)) : g("", !0),
|
|
765
|
-
|
|
766
|
-
|
|
767
|
-
|
|
765
|
+
$.minimapMerged ? (n(), i("g", Hn, [
|
|
766
|
+
H.value && H.value.sliced && H.value.sliced.length ? (n(), i(b, { key: 0 }, [
|
|
767
|
+
H.value.selectionSet ? (n(), i("path", {
|
|
768
768
|
key: 0,
|
|
769
|
-
d: `M${
|
|
769
|
+
d: `M${H.value.sliced[0].x},${Math.max(W.value.height, 0)} ${H.value.selectionSet} L${H.value.sliced[H.value.sliced.length - 1].x},${Math.max(W.value.height, 0)}Z`,
|
|
770
770
|
fill: `url(#${Al.value})`,
|
|
771
771
|
stroke: "none",
|
|
772
772
|
style: { opacity: "1" }
|
|
773
773
|
}, null, 8, Dn)) : g("", !0),
|
|
774
|
-
|
|
774
|
+
H.value.selectionSet ? (n(), i("path", {
|
|
775
775
|
key: 1,
|
|
776
|
-
d: `M ${
|
|
777
|
-
stroke: `${
|
|
776
|
+
d: `M ${H.value.selectionSet}`,
|
|
777
|
+
stroke: `${$.minimapLineColor}`,
|
|
778
778
|
fill: "transparent",
|
|
779
779
|
"stroke-width": "2",
|
|
780
780
|
"stroke-linecap": "round",
|
|
781
781
|
"stroke-linejoin": "round"
|
|
782
782
|
}, null, 8, Wn)) : g("", !0)
|
|
783
783
|
], 64)) : g("", !0),
|
|
784
|
-
|
|
784
|
+
H.value && H.value.firstPlot ? (n(), i("circle", {
|
|
785
785
|
key: 1,
|
|
786
|
-
cx:
|
|
787
|
-
cy:
|
|
786
|
+
cx: H.value.firstPlot.x,
|
|
787
|
+
cy: H.value.firstPlot.y,
|
|
788
788
|
"stroke-width": "0.5",
|
|
789
789
|
stroke: ne.value,
|
|
790
790
|
r: "3",
|
|
791
|
-
fill:
|
|
791
|
+
fill: $.minimapLineColor
|
|
792
792
|
}, null, 8, Xn)) : g("", !0),
|
|
793
|
-
|
|
793
|
+
H.value && H.value.lastPlot ? (n(), i("circle", {
|
|
794
794
|
key: 2,
|
|
795
|
-
cx:
|
|
796
|
-
cy:
|
|
795
|
+
cx: H.value.lastPlot.x,
|
|
796
|
+
cy: H.value.lastPlot.y,
|
|
797
797
|
"stroke-width": "0.5",
|
|
798
798
|
stroke: ne.value,
|
|
799
799
|
r: "3",
|
|
800
|
-
fill:
|
|
800
|
+
fill: $.minimapLineColor
|
|
801
801
|
}, null, 8, Yn)) : g("", !0)
|
|
802
|
-
])) : (n(),
|
|
803
|
-
(n(!0),
|
|
804
|
-
(n(!0),
|
|
805
|
-
f && f.isVisible && !isNaN(z.y) ? (n(),
|
|
802
|
+
])) : (n(), i("g", Gn, [
|
|
803
|
+
(n(!0), i(b, null, M(Je.value.filter((f) => f.type === "bar"), (f, A) => (n(), i("g", null, [
|
|
804
|
+
(n(!0), i(b, null, M(f.points, (z, D) => (n(), i(b, null, [
|
|
805
|
+
f && f.isVisible && !isNaN(z.y) ? (n(), i("rect", {
|
|
806
806
|
key: 0,
|
|
807
|
-
x: Pl(z.x, A,
|
|
807
|
+
x: Pl(z.x, A, D),
|
|
808
808
|
y: z.v >= 0 ? z.y : z.y0,
|
|
809
|
-
width: Fl(A,
|
|
809
|
+
width: Fl(A, D),
|
|
810
810
|
height: z.v >= 0 ? z.y0 - z.y : z.y - z.y0,
|
|
811
811
|
fill: f.color,
|
|
812
|
-
style: L({ opacity:
|
|
812
|
+
style: L({ opacity: D >= Ut.value && D < $t.value ? 1 : 0 })
|
|
813
813
|
}, null, 12, Un)) : g("", !0)
|
|
814
814
|
], 64))), 256))
|
|
815
815
|
]))), 256)),
|
|
816
|
-
(n(!0),
|
|
816
|
+
(n(!0), i(b, null, M(Je.value.filter((f) => f.type === "line"), (f) => (n(), i("g", {
|
|
817
817
|
key: String(f.key)
|
|
818
818
|
}, [
|
|
819
|
-
f && f.hasSelection && f.selectionSet && f.isVisible ? (n(),
|
|
819
|
+
f && f.hasSelection && f.selectionSet && f.isVisible ? (n(), i("path", {
|
|
820
820
|
key: 0,
|
|
821
821
|
d: `M ${f.selectionSet}`,
|
|
822
822
|
stroke: f.color,
|
|
@@ -827,67 +827,67 @@ const _n = {
|
|
|
827
827
|
}, null, 8, qn)) : g("", !0)
|
|
828
828
|
]))), 128))
|
|
829
829
|
])),
|
|
830
|
-
fe.value &&
|
|
830
|
+
fe.value && $.minimapCompact ? (n(), i("rect", {
|
|
831
831
|
key: 7,
|
|
832
832
|
class: "vue-ui-zoom-compact-minimap-handle",
|
|
833
833
|
x: _.value.x - 8,
|
|
834
834
|
y: 0,
|
|
835
835
|
width: 8,
|
|
836
|
-
height:
|
|
836
|
+
height: W.value.height,
|
|
837
837
|
fill: ne.value,
|
|
838
|
-
stroke:
|
|
838
|
+
stroke: $.textColor,
|
|
839
839
|
rx: 3
|
|
840
840
|
}, null, 8, Zn)) : g("", !0),
|
|
841
|
-
fe.value &&
|
|
841
|
+
fe.value && $.minimapCompact ? (n(), i("rect", {
|
|
842
842
|
key: 8,
|
|
843
843
|
class: "vue-ui-zoom-compact-minimap-handle",
|
|
844
844
|
x: _.value.x + _.value.width,
|
|
845
845
|
y: 0,
|
|
846
846
|
width: 8,
|
|
847
|
-
height:
|
|
847
|
+
height: W.value.height,
|
|
848
848
|
fill: ne.value,
|
|
849
|
-
stroke:
|
|
849
|
+
stroke: $.textColor,
|
|
850
850
|
rx: 3
|
|
851
851
|
}, null, 8, Kn)) : g("", !0),
|
|
852
|
-
xt.value !== null && !tt.value ? (n(),
|
|
853
|
-
|
|
854
|
-
|
|
852
|
+
xt.value !== null && !tt.value ? (n(), i("line", Xt(Yt({ key: 9 }, Xl.value)), null, 16)) : g("", !0),
|
|
853
|
+
$.minimapMerged ? (n(), i("g", Jn, [
|
|
854
|
+
H.value && H.value.firstPlot && H.value.firstPlot.value !== null ? (n(), i("circle", {
|
|
855
855
|
key: 0,
|
|
856
|
-
cx:
|
|
857
|
-
cy:
|
|
856
|
+
cx: H.value.firstPlot.x,
|
|
857
|
+
cy: H.value.firstPlot.y,
|
|
858
858
|
"stroke-width": "0.5",
|
|
859
859
|
stroke: ne.value,
|
|
860
860
|
r: "4",
|
|
861
|
-
fill:
|
|
861
|
+
fill: $.minimapLineColor
|
|
862
862
|
}, null, 8, Qn)) : g("", !0),
|
|
863
|
-
|
|
863
|
+
H.value && H.value.firstPlot && H.value.firstPlot.value !== null ? (n(), i("circle", {
|
|
864
864
|
key: 1,
|
|
865
|
-
cx:
|
|
866
|
-
cy:
|
|
865
|
+
cx: H.value.firstPlot.x,
|
|
866
|
+
cy: H.value.firstPlot.y,
|
|
867
867
|
r: 2,
|
|
868
868
|
fill: ne.value
|
|
869
869
|
}, null, 8, jn)) : g("", !0),
|
|
870
|
-
|
|
870
|
+
H.value && H.value.lastPlot && H.value.lastPlot.value !== null ? (n(), i("circle", {
|
|
871
871
|
key: 2,
|
|
872
|
-
cx:
|
|
873
|
-
cy:
|
|
872
|
+
cx: H.value.lastPlot.x,
|
|
873
|
+
cy: H.value.lastPlot.y,
|
|
874
874
|
"stroke-width": "0.5",
|
|
875
875
|
stroke: ne.value,
|
|
876
876
|
r: "4",
|
|
877
|
-
fill:
|
|
878
|
-
}, null, 8,
|
|
879
|
-
|
|
877
|
+
fill: $.minimapLineColor
|
|
878
|
+
}, null, 8, ei)) : g("", !0),
|
|
879
|
+
H.value && H.value.lastPlot && H.value.lastPlot.value !== null ? (n(), i("circle", {
|
|
880
880
|
key: 3,
|
|
881
|
-
cx:
|
|
882
|
-
cy:
|
|
881
|
+
cx: H.value.lastPlot.x,
|
|
882
|
+
cy: H.value.lastPlot.y,
|
|
883
883
|
r: "2",
|
|
884
884
|
fill: ne.value
|
|
885
|
-
}, null, 8,
|
|
886
|
-
])) : (n(),
|
|
887
|
-
(n(!0),
|
|
885
|
+
}, null, 8, ti)) : g("", !0)
|
|
886
|
+
])) : (n(), i("g", li, [
|
|
887
|
+
(n(!0), i(b, null, M(Je.value.filter((f) => f.type === "line"), (f) => (n(), i("g", {
|
|
888
888
|
key: String(f.key)
|
|
889
889
|
}, [
|
|
890
|
-
f && f.hasSelection && f.selectionSet && f.isVisible ? (n(),
|
|
890
|
+
f && f.hasSelection && f.selectionSet && f.isVisible ? (n(), i("path", {
|
|
891
891
|
key: 0,
|
|
892
892
|
d: `M ${f.selectionSet}`,
|
|
893
893
|
stroke: f.color,
|
|
@@ -895,8 +895,8 @@ const _n = {
|
|
|
895
895
|
"stroke-width": "2",
|
|
896
896
|
"stroke-linecap": "round",
|
|
897
897
|
"stroke-linejoin": "round"
|
|
898
|
-
}, null, 8,
|
|
899
|
-
f.isVisible ? (n(!0),
|
|
898
|
+
}, null, 8, ai)) : g("", !0),
|
|
899
|
+
f.isVisible ? (n(!0), i(b, { key: 1 }, M(f.selectionMarkers, (A) => (n(), i("circle", {
|
|
900
900
|
key: `sel-dot-${f.key}-${A.i}`,
|
|
901
901
|
cx: A.x,
|
|
902
902
|
cy: A.y,
|
|
@@ -904,8 +904,8 @@ const _n = {
|
|
|
904
904
|
fill: f.color,
|
|
905
905
|
stroke: ne.value,
|
|
906
906
|
"stroke-width": "0.5"
|
|
907
|
-
}, null, 8,
|
|
908
|
-
f && f.firstPlot && f.isVisible && f.firstPlot.value !== null ? (n(),
|
|
907
|
+
}, null, 8, oi))), 128)) : g("", !0),
|
|
908
|
+
f && f.firstPlot && f.isVisible && f.firstPlot.value !== null ? (n(), i("circle", {
|
|
909
909
|
key: 2,
|
|
910
910
|
cx: f.firstPlot.x,
|
|
911
911
|
cy: f.firstPlot.y,
|
|
@@ -913,15 +913,15 @@ const _n = {
|
|
|
913
913
|
stroke: ne.value,
|
|
914
914
|
r: "4",
|
|
915
915
|
fill: f.color
|
|
916
|
-
}, null, 8,
|
|
917
|
-
f && f.firstPlot && f.isVisible && f.firstPlot.value !== null ? (n(),
|
|
916
|
+
}, null, 8, ni)) : g("", !0),
|
|
917
|
+
f && f.firstPlot && f.isVisible && f.firstPlot.value !== null ? (n(), i("circle", {
|
|
918
918
|
key: 3,
|
|
919
919
|
cx: f.firstPlot.x,
|
|
920
920
|
cy: f.firstPlot.y,
|
|
921
921
|
r: "2",
|
|
922
922
|
fill: ne.value
|
|
923
|
-
}, null, 8,
|
|
924
|
-
f && f.lastPlot && f.isVisible && f.lastPlot.value !== null ? (n(),
|
|
923
|
+
}, null, 8, ii)) : g("", !0),
|
|
924
|
+
f && f.lastPlot && f.isVisible && f.lastPlot.value !== null ? (n(), i("circle", {
|
|
925
925
|
key: 4,
|
|
926
926
|
cx: f.lastPlot.x,
|
|
927
927
|
cy: f.lastPlot.y,
|
|
@@ -929,47 +929,47 @@ const _n = {
|
|
|
929
929
|
stroke: ne.value,
|
|
930
930
|
r: "4",
|
|
931
931
|
fill: f.color
|
|
932
|
-
}, null, 8,
|
|
933
|
-
f && f.lastPlot && f.isVisible && f.lastPlot.value !== null ? (n(),
|
|
932
|
+
}, null, 8, ui)) : g("", !0),
|
|
933
|
+
f && f.lastPlot && f.isVisible && f.lastPlot.value !== null ? (n(), i("circle", {
|
|
934
934
|
key: 5,
|
|
935
935
|
cx: f.lastPlot.x,
|
|
936
936
|
cy: f.lastPlot.y,
|
|
937
937
|
r: "2",
|
|
938
938
|
fill: ne.value
|
|
939
|
-
}, null, 8,
|
|
939
|
+
}, null, 8, si)) : g("", !0)
|
|
940
940
|
]))), 128))
|
|
941
941
|
])),
|
|
942
|
-
(n(!0),
|
|
943
|
-
x: ae.value * A - (
|
|
942
|
+
(n(!0), i(b, null, M(Ql.value, (f, A) => (n(), i("rect", {
|
|
943
|
+
x: ae.value * A - ($.minimapCompact ? ae.value / 2 : 0),
|
|
944
944
|
y: 0,
|
|
945
|
-
height: Math.max(
|
|
945
|
+
height: Math.max(W.value.height, 0),
|
|
946
946
|
width: ae.value < 0 ? 0 : ae.value,
|
|
947
947
|
fill: "transparent",
|
|
948
|
-
style: L([{ "pointer-events": "all !important" }, { cursor: f >= Ee.value && f < Pe.value &&
|
|
948
|
+
style: L([{ "pointer-events": "all !important" }, { cursor: f >= Ee.value && f < Pe.value && $.enableSelectionDrag ? tt.value ? "grabbing" : "grab" : "default" }]),
|
|
949
949
|
onMousedown: m[0] || (m[0] = (z) => tt.value = !0),
|
|
950
950
|
onMouseup: m[1] || (m[1] = (z) => tt.value = !1),
|
|
951
951
|
onMouseenter: (z) => Bl(f),
|
|
952
952
|
onMouseleave: m[2] || (m[2] = (z) => {
|
|
953
|
-
xt.value = null,
|
|
953
|
+
xt.value = null, Ce("trapMouse", null);
|
|
954
954
|
})
|
|
955
|
-
}, null, 44,
|
|
955
|
+
}, null, 44, ri))), 256))
|
|
956
956
|
], 8, Cn))
|
|
957
957
|
])) : g("", !0),
|
|
958
958
|
k("div", {
|
|
959
959
|
class: "slider-track",
|
|
960
|
-
style: L({ visibility: fe.value &&
|
|
960
|
+
style: L({ visibility: fe.value && $.minimapCompact ? "hidden" : "visible" })
|
|
961
961
|
}, null, 4),
|
|
962
962
|
k("div", {
|
|
963
|
-
class: Ze({ "range-highlight": !0, move:
|
|
963
|
+
class: Ze({ "range-highlight": !0, move: $.enableSelectionDrag }),
|
|
964
964
|
onMousedown: m[3] || (m[3] = (f) => tt.value = !0),
|
|
965
965
|
onMouseup: m[4] || (m[4] = (f) => tt.value = !1),
|
|
966
966
|
style: L({
|
|
967
967
|
...Se.value,
|
|
968
968
|
cursor: tt.value ? "grabbing" : "grab",
|
|
969
|
-
visibility: fe.value &&
|
|
969
|
+
visibility: fe.value && $.minimapCompact ? "hidden" : "visible"
|
|
970
970
|
})
|
|
971
971
|
}, null, 38),
|
|
972
|
-
|
|
972
|
+
$.enableRangeHandles ? Oa((n(), i("input", {
|
|
973
973
|
key: 1,
|
|
974
974
|
ref_key: "rangeStart",
|
|
975
975
|
ref: el,
|
|
@@ -977,27 +977,27 @@ const _n = {
|
|
|
977
977
|
class: Ze({
|
|
978
978
|
"range-left": !0,
|
|
979
979
|
"range-handle": !0,
|
|
980
|
-
"range-minimap": fe.value &&
|
|
981
|
-
"range-invisible": fe.value &&
|
|
980
|
+
"range-minimap": fe.value && $.verticalHandles,
|
|
981
|
+
"range-invisible": fe.value && $.minimapCompact
|
|
982
982
|
}),
|
|
983
|
-
min:
|
|
984
|
-
max:
|
|
983
|
+
min: $.min,
|
|
984
|
+
max: $.minimapCompact && fe.value ? Math.max(0, at.value - 1) : $.max,
|
|
985
985
|
"onUpdate:modelValue": m[5] || (m[5] = (f) => Nt.value = f),
|
|
986
986
|
onInput: m[6] || (m[6] = (f) => Nt.value = f.target.valueAsNumber),
|
|
987
987
|
onChange: Te,
|
|
988
|
-
onKeyup:
|
|
988
|
+
onKeyup: fo(Te, ["enter"]),
|
|
989
989
|
onBlur: Te,
|
|
990
990
|
onMouseenter: m[7] || (m[7] = (f) => Wl("start")),
|
|
991
991
|
onPointerup: Te
|
|
992
|
-
}, null, 42,
|
|
992
|
+
}, null, 42, ci)), [
|
|
993
993
|
[
|
|
994
|
-
|
|
994
|
+
mo,
|
|
995
995
|
Nt.value,
|
|
996
996
|
void 0,
|
|
997
997
|
{ number: !0 }
|
|
998
998
|
]
|
|
999
999
|
]) : g("", !0),
|
|
1000
|
-
|
|
1000
|
+
$.enableRangeHandles ? Oa((n(), i("input", {
|
|
1001
1001
|
key: 2,
|
|
1002
1002
|
ref_key: "rangeEnd",
|
|
1003
1003
|
ref: t,
|
|
@@ -1005,90 +1005,90 @@ const _n = {
|
|
|
1005
1005
|
class: Ze({
|
|
1006
1006
|
"range-right": !0,
|
|
1007
1007
|
"range-handle": !0,
|
|
1008
|
-
"range-minimap": fe.value &&
|
|
1009
|
-
"range-invisible": fe.value &&
|
|
1008
|
+
"range-minimap": fe.value && $.verticalHandles,
|
|
1009
|
+
"range-invisible": fe.value && $.minimapCompact
|
|
1010
1010
|
}),
|
|
1011
|
-
min:
|
|
1012
|
-
max:
|
|
1011
|
+
min: $.min,
|
|
1012
|
+
max: $.minimapCompact && fe.value ? Math.max(0, at.value - 1) : $.max,
|
|
1013
1013
|
"onUpdate:modelValue": m[8] || (m[8] = (f) => jt.value = f),
|
|
1014
1014
|
onInput: m[9] || (m[9] = (f) => jt.value = f.target.valueAsNumber),
|
|
1015
1015
|
onChange: Te,
|
|
1016
|
-
onKeyup:
|
|
1016
|
+
onKeyup: fo(Te, ["enter"]),
|
|
1017
1017
|
onBlur: Te,
|
|
1018
1018
|
onMouseenter: m[10] || (m[10] = (f) => Wl("end")),
|
|
1019
1019
|
onPointerup: Te
|
|
1020
|
-
}, null, 42,
|
|
1020
|
+
}, null, 42, vi)), [
|
|
1021
1021
|
[
|
|
1022
|
-
|
|
1022
|
+
mo,
|
|
1023
1023
|
jt.value,
|
|
1024
1024
|
void 0,
|
|
1025
1025
|
{ number: !0 }
|
|
1026
1026
|
]
|
|
1027
1027
|
]) : g("", !0),
|
|
1028
|
-
me.value.left ? (n(),
|
|
1028
|
+
me.value.left ? (n(), i("div", {
|
|
1029
1029
|
key: 3,
|
|
1030
1030
|
ref_key: "tooltipLeft",
|
|
1031
1031
|
ref: nl,
|
|
1032
1032
|
class: Ze({
|
|
1033
1033
|
"range-tooltip": !0,
|
|
1034
1034
|
"range-tooltip-visible": Ot.value,
|
|
1035
|
-
"range-tooltip-arrow": Se.value.arrowLeft &&
|
|
1036
|
-
"range-tooltip-arrow-left": !Se.value.arrowLeft &&
|
|
1035
|
+
"range-tooltip-arrow": Se.value.arrowLeft && !$.verticalHandles,
|
|
1036
|
+
"range-tooltip-arrow-left": !Se.value.arrowLeft && !$.verticalHandles
|
|
1037
1037
|
}),
|
|
1038
1038
|
style: L({
|
|
1039
1039
|
left: Se.value.tooltipLeft,
|
|
1040
|
-
color: h(dt)(
|
|
1041
|
-
backgroundColor:
|
|
1040
|
+
color: h(dt)($.selectColor),
|
|
1041
|
+
backgroundColor: $.selectColor,
|
|
1042
1042
|
border: `1px solid ${ne.value}`,
|
|
1043
1043
|
zIndex: `${aa.value + 4}`,
|
|
1044
1044
|
visibility: kt.value || me.value.left === me.value.right ? "hidden" : "visible",
|
|
1045
|
-
top: fe.value &&
|
|
1045
|
+
top: fe.value && $.minimapCompact ? "calc(-100% - 12px)" : "-100%"
|
|
1046
1046
|
})
|
|
1047
1047
|
}, re(me.value.left), 7)) : g("", !0),
|
|
1048
|
-
(kt.value || me.value.left === me.value.right) && (me.value.left || me.value.right) ? (n(),
|
|
1048
|
+
(kt.value || me.value.left === me.value.right) && (me.value.left || me.value.right) ? (n(), i("div", {
|
|
1049
1049
|
key: 4,
|
|
1050
1050
|
ref: "tooltipMerge",
|
|
1051
1051
|
class: Ze({
|
|
1052
1052
|
"range-tooltip": !0,
|
|
1053
1053
|
"range-tooltip-visible": Ot.value,
|
|
1054
1054
|
"range-tooltip-arrow": !0,
|
|
1055
|
-
"range-tooltip-arrow-left": !Se.value.arrowLeft &&
|
|
1056
|
-
"range-tooltip-arrow-right": !Se.value.arrowRight &&
|
|
1055
|
+
"range-tooltip-arrow-left": !Se.value.arrowLeft && !$.verticalHandles,
|
|
1056
|
+
"range-tooltip-arrow-right": !Se.value.arrowRight && !$.verticalHandles
|
|
1057
1057
|
}),
|
|
1058
1058
|
style: L({
|
|
1059
1059
|
left: Se.value.tooltipCenter,
|
|
1060
1060
|
width: Vt.value.width + "px",
|
|
1061
|
-
color: h(dt)(
|
|
1062
|
-
backgroundColor:
|
|
1061
|
+
color: h(dt)($.selectColor),
|
|
1062
|
+
backgroundColor: $.selectColor,
|
|
1063
1063
|
border: `1px solid ${ne.value}`,
|
|
1064
1064
|
zIndex: "4",
|
|
1065
|
-
top: fe.value &&
|
|
1065
|
+
top: fe.value && $.minimapCompact ? "calc(-100% - 12px)" : "-100%"
|
|
1066
1066
|
})
|
|
1067
1067
|
}, re(me.value.left === me.value.right ? me.value.left : `${me.value.left} - ${me.value.right}`), 7)) : g("", !0),
|
|
1068
|
-
me.value.right ? (n(),
|
|
1068
|
+
me.value.right ? (n(), i("div", {
|
|
1069
1069
|
key: 5,
|
|
1070
1070
|
ref_key: "tooltipRight",
|
|
1071
1071
|
ref: Rt,
|
|
1072
1072
|
class: Ze({
|
|
1073
1073
|
"range-tooltip": !0,
|
|
1074
1074
|
"range-tooltip-visible": Ot.value,
|
|
1075
|
-
"range-tooltip-arrow": Se.value.arrowRight &&
|
|
1076
|
-
"range-tooltip-arrow-right": !Se.value.arrowRight &&
|
|
1075
|
+
"range-tooltip-arrow": Se.value.arrowRight && !$.verticalHandles,
|
|
1076
|
+
"range-tooltip-arrow-right": !Se.value.arrowRight && !$.verticalHandles
|
|
1077
1077
|
}),
|
|
1078
1078
|
style: L({
|
|
1079
1079
|
left: Se.value.tooltipRight,
|
|
1080
|
-
color: h(dt)(
|
|
1081
|
-
backgroundColor:
|
|
1080
|
+
color: h(dt)($.selectColor),
|
|
1081
|
+
backgroundColor: $.selectColor,
|
|
1082
1082
|
border: `1px solid ${ne.value}`,
|
|
1083
1083
|
zIndex: "4",
|
|
1084
1084
|
visibility: kt.value || me.value.left === me.value.right ? "hidden" : "visible",
|
|
1085
|
-
top: fe.value &&
|
|
1085
|
+
top: fe.value && $.minimapCompact ? "calc(-100% - 12px)" : "-100%"
|
|
1086
1086
|
})
|
|
1087
1087
|
}, re(me.value.right), 7)) : g("", !0)
|
|
1088
1088
|
], 544)
|
|
1089
1089
|
], 544));
|
|
1090
1090
|
}
|
|
1091
|
-
},
|
|
1091
|
+
}, hi = /* @__PURE__ */ Lo(di, [["__scopeId", "data-v-266dcf50"]]), fi = ["id"], mi = ["id"], gi = ["viewBox", "aria-label"], xi = ["x", "y", "width", "height"], bi = { key: 1 }, yi = { class: "vue-ui-xy-grid" }, pi = ["stroke", "x1", "x2", "y1", "y2"], ki = ["stroke", "x1", "x2", "y1", "y2"], wi = { key: 1 }, Si = ["x1", "x2", "y1", "y2", "stroke"], $i = ["x1", "x2", "y1", "y2", "stroke"], _i = ["x1", "x2", "y1", "y2", "stroke"], Mi = { key: 3 }, Li = ["d", "stroke"], Ci = { key: 4 }, Ai = ["d", "stroke"], zi = ["id"], Ti = ["stop-color"], Ii = ["stop-color"], Ni = ["stop-color"], Pi = ["id"], Fi = ["stop-color"], Ri = ["stop-color"], Oi = ["stop-color"], Vi = ["id"], Bi = ["stop-color"], Ei = ["stop-color"], Hi = ["id"], Di = ["stop-color"], Wi = ["stop-color"], Xi = ["id"], Yi = ["stop-color"], Gi = ["stop-color"], Ui = ["x", "y", "height", "width", "fill"], qi = ["x", "y", "width"], Zi = { key: 0 }, Ki = ["x", "y", "height", "width", "fill"], Ji = ["x", "y", "height", "width", "rx", "fill", "stroke", "stroke-width"], Qi = ["x", "y", "height", "width", "rx", "fill", "stroke", "stroke-width"], ji = ["width", "x", "y"], eu = { key: 0 }, tu = ["id"], lu = ["fill"], au = ["x1", "x2", "y1", "y2", "stroke", "marker-end"], ou = ["x", "y", "font-size", "fill"], nu = ["stroke", "x1", "x2", "y1", "y2"], iu = { key: 3 }, uu = ["x1", "x2", "y1", "y2", "stroke", "stroke-width", "stroke-dasharray"], su = ["x", "y", "width", "height", "stroke", "stroke-width", "stroke-linecap", "stroke-linejoin", "stroke-dasharray"], ru = ["x1", "x2", "y1", "y2", "stroke", "stroke-width"], cu = ["fill", "font-size", "transform"], vu = ["x1", "x2", "y1", "y2", "stroke"], du = ["x", "y", "font-size", "fill"], hu = ["x1", "x2", "y1", "y2", "stroke"], fu = ["x", "y", "font-size", "fill"], mu = ["width", "x", "y"], gu = { style: { width: "100%" } }, xu = { key: 0 }, bu = ["id"], yu = ["fill"], pu = ["x1", "x2", "y1", "y2", "stroke", "marker-end"], ku = ["x", "y", "font-size", "fill"], wu = ["d", "stroke", "stroke-width", "stroke-dasharray"], Su = ["d", "stroke", "stroke-width", "stroke-dasharray"], $u = { key: 6 }, _u = { key: 7 }, Mu = ["d", "fill", "fill-opacity"], Lu = { key: 0 }, Cu = ["d", "fill"], Au = ["d", "fill"], zu = ["d", "fill"], Tu = ["d", "fill"], Iu = ["d", "stroke", "stroke-width", "stroke-dasharray"], Nu = ["d", "stroke", "stroke-width", "stroke-dasharray"], Pu = ["width", "x", "y"], Fu = { style: { width: "100%" } }, Ru = { key: 3 }, Ou = ["id"], Vu = ["fill"], Bu = ["x1", "x2", "y1", "y2", "stroke", "marker-end"], Eu = ["x", "y", "font-size", "fill"], Hu = { key: 8 }, Du = ["x", "y", "font-size", "fill"], Wu = ["x", "y", "font-size", "fill", "font-weight"], Xu = { key: 9 }, Yu = ["x", "y", "font-size", "fill"], Gu = { key: 10 }, Uu = ["x", "y"], qu = ["innerHTML"], Zu = ["x", "y"], Ku = ["innerHTML"], Ju = ["x1", "x2", "y1", "y2", "stroke"], Qu = { key: 11 }, ju = ["x", "y", "font-size", "fill"], es = { key: 12 }, ts = ["x", "y"], ls = ["innerHTML"], as = ["x", "y"], os = ["innerHTML"], ns = ["x1", "x2", "y1", "y2", "stroke"], is = ["x", "y", "font-size", "fill", "innerHTML"], us = ["x", "y", "font-size", "fill", "innerHTML"], ss = ["x", "y", "font-size", "fill", "innerHTML"], rs = ["x", "y", "font-size", "fill", "innerHTML"], cs = ["id"], vs = ["stop-color"], ds = ["stop-color"], hs = ["x", "y", "width", "height", "fill", "onMouseenter"], fs = ["font-size", "fill", "transform"], ms = ["x", "y", "font-size", "fill"], gs = ["text-anchor", "font-size", "fill", "transform", "onClick"], xs = ["text-anchor", "font-size", "fill", "transform", "innerHTML", "onClick"], bs = { key: 15 }, ys = ["x1", "y1", "x2", "y2", "stroke", "stroke-width", "stroke-dasharray"], ps = ["x1", "y1", "x2", "y2", "stroke", "stroke-width", "stroke-dasharray"], ks = ["y", "x", "width", "height", "fill"], ws = ["id", "x", "y", "font-size", "fill", "text-anchor"], Ss = {
|
|
1092
1092
|
key: 16,
|
|
1093
1093
|
style: { "pointer-events": "none" }
|
|
1094
1094
|
}, $s = ["x", "y"], _s = ["innerHTML"], Ms = ["cx", "cy", "r", "fill"], Ls = ["data-start", "data-end"], Cs = {
|
|
@@ -1153,9 +1153,9 @@ const _n = {
|
|
|
1153
1153
|
}
|
|
1154
1154
|
},
|
|
1155
1155
|
emits: ["selectTimeLabel", "selectX", "selectLegend"],
|
|
1156
|
-
setup(
|
|
1157
|
-
const d =
|
|
1158
|
-
height:
|
|
1156
|
+
setup($, { expose: Sa, emit: $a }) {
|
|
1157
|
+
const d = $, Le = Dt(() => import("./DataTable-JX5MWop0.js")), he = Dt(() => import("./Tooltip-BAx7Btsw.js")), ge = Dt(() => import("./UserOptions-BLVLaZDQ.js")), fe = Dt(() => import("./BaseIcon-wGdAhoaF.js")), Al = Dt(() => import("./vue-ui-table-sparkline-qFmRMBGM.js")), St = Dt(() => import("./PackageVersion-BSXHahdf.js")), It = Dt(() => import("./PenAndPaper-ScGkrINJ.js")), zl = Dt(() => import("./BaseDraggableDialog-RzeiqHjP.js")), Gt = $a, xl = Go(), Ut = Uo(), { vue_ui_xy: $t } = jo(), Be = y(null), Te = y(null), Ke = y(null), Ce = y(null), ft = y(null), _t = y(null), Tl = y(null), qt = y(null), Zt = y(null), Se = y(null), Il = y(null), Nl = y(null), mt = y(null), ne = y(null), Ql = y(0), E = y(null), Kt = y(!0), W = y(600), le = y(1e3), at = y("0 0 1000 600"), jl = y({ x: 0, y: 0 }), Jt = y({ line: "line", bar: "bar", plot: "plot" }), Ee = y(!1), Pe = y(!1), bl = y(!1), ae = y(null), ce = y([]), Z = y(xa()), Pl = y(0), Fl = y(0), Rl = y(0), He = y(!0), gt = y(0), X = y(null), ea = y(!1), Ol = y(!0), yl = y(!0), $e = y(null), ot = y({}), Qt = y(null), H = y(!1), Je = y(null), _ = y(null), xt = x(() => ({
|
|
1158
|
+
height: W.value,
|
|
1159
1159
|
width: le.value
|
|
1160
1160
|
}));
|
|
1161
1161
|
function Vl(l) {
|
|
@@ -1171,7 +1171,7 @@ const _n = {
|
|
|
1171
1171
|
plotLabels: 10
|
|
1172
1172
|
}), De = y({ plot: 3, line: 3 });
|
|
1173
1173
|
Ll(() => {
|
|
1174
|
-
|
|
1174
|
+
H.value = !0, d.dataset.length && d.dataset.forEach((l, s) => {
|
|
1175
1175
|
[null, void 0].includes(l.series) && Na({
|
|
1176
1176
|
componentName: "VueUiXy",
|
|
1177
1177
|
type: "datasetSerieAttribute",
|
|
@@ -1222,13 +1222,13 @@ const _n = {
|
|
|
1222
1222
|
useIndividualScale: t.value.chart.grid.labels.yAxis.useIndividualScale
|
|
1223
1223
|
}, jt.value = !0);
|
|
1224
1224
|
}
|
|
1225
|
-
const Mt = x(() => !!t.value.debug), { loading: xe, FINAL_DATASET:
|
|
1225
|
+
const Mt = x(() => !!t.value.debug), { loading: xe, FINAL_DATASET: _e, manualLoading: bt } = gn({
|
|
1226
1226
|
...qo(d),
|
|
1227
1227
|
FINAL_CONFIG: t,
|
|
1228
1228
|
prepareConfig: Bl,
|
|
1229
1229
|
callback: () => {
|
|
1230
1230
|
Promise.resolve().then(async () => {
|
|
1231
|
-
await
|
|
1231
|
+
await ul(), p.value.showTable = t.value.showTable;
|
|
1232
1232
|
});
|
|
1233
1233
|
},
|
|
1234
1234
|
skeletonDataset: [
|
|
@@ -1304,18 +1304,18 @@ const _n = {
|
|
|
1304
1304
|
}
|
|
1305
1305
|
})
|
|
1306
1306
|
});
|
|
1307
|
-
function
|
|
1307
|
+
function _a(l) {
|
|
1308
1308
|
const s = /* @__PURE__ */ new WeakMap();
|
|
1309
|
-
return (e, ...
|
|
1309
|
+
return (e, ...u) => {
|
|
1310
1310
|
let a = s.get(e);
|
|
1311
|
-
const r = JSON.stringify(
|
|
1311
|
+
const r = JSON.stringify(u);
|
|
1312
1312
|
if (a && a.has(r)) return a.get(r);
|
|
1313
|
-
const o = l(e, ...
|
|
1313
|
+
const o = l(e, ...u);
|
|
1314
1314
|
return a || (a = /* @__PURE__ */ new Map(), s.set(e, a)), a.set(r, o), o;
|
|
1315
1315
|
};
|
|
1316
1316
|
}
|
|
1317
|
-
const Pt =
|
|
1318
|
-
get: () => Math.max(
|
|
1317
|
+
const Pt = _a((l, s) => Pa({ data: l, threshold: s })), yt = (l) => Pt(l, t.value.downsample.threshold), Qe = x({
|
|
1318
|
+
get: () => Math.max(..._e.value.map((l) => yt(l.series).length)),
|
|
1319
1319
|
set: (l) => l
|
|
1320
1320
|
}), w = y({ start: 0, end: Qe.value }), We = y({ start: 0, end: Qe.value }), ta = x(() => t.value.chart.zoom.preview.enable && (We.value.start !== w.value.start || We.value.end !== w.value.end));
|
|
1321
1321
|
function El(l, s) {
|
|
@@ -1324,18 +1324,18 @@ const _n = {
|
|
|
1324
1324
|
function Lt() {
|
|
1325
1325
|
const l = Math.max(
|
|
1326
1326
|
1,
|
|
1327
|
-
|
|
1327
|
+
..._e.value.map((u) => yt(u.series).length)
|
|
1328
1328
|
);
|
|
1329
1329
|
let s = Math.max(0, Math.min(w.value.start ?? 0, l - 1)), e = Math.max(s + 1, Math.min(w.value.end ?? l, l));
|
|
1330
1330
|
(!Number.isFinite(s) || !Number.isFinite(e) || e <= s) && (s = 0, e = l), w.value = { start: s, end: e }, We.value.start = s, We.value.end = e, Ke.value && (Ke.value.setStartValue(s), Ke.value.setEndValue(e));
|
|
1331
1331
|
}
|
|
1332
|
-
const
|
|
1333
|
-
const { left: l, top: s, width: e, height:
|
|
1332
|
+
const Ma = x(() => {
|
|
1333
|
+
const { left: l, top: s, width: e, height: u } = c.value, a = w.value.start, o = w.value.end - a, F = e / o, R = We.value.start - a, O = We.value.end - a, T = Math.max(0, Math.min(o, R)), N = Math.max(0, Math.min(o, O));
|
|
1334
1334
|
return {
|
|
1335
|
-
x: l + T *
|
|
1335
|
+
x: l + T * F,
|
|
1336
1336
|
y: s,
|
|
1337
|
-
width: (
|
|
1338
|
-
height:
|
|
1337
|
+
width: (N - T) * F,
|
|
1338
|
+
height: u,
|
|
1339
1339
|
fill: t.value.chart.zoom.preview.fill,
|
|
1340
1340
|
stroke: t.value.chart.zoom.preview.stroke,
|
|
1341
1341
|
"stroke-width": t.value.chart.zoom.preview.strokeWidth,
|
|
@@ -1357,7 +1357,7 @@ const _n = {
|
|
|
1357
1357
|
const s = l - w.value.start;
|
|
1358
1358
|
s < 0 || l >= w.value.end ? _.value = null : _.value = s ?? null;
|
|
1359
1359
|
}, { immediate: !0 });
|
|
1360
|
-
const { isPrinting: Hl, isImaging: nt, generatePdf:
|
|
1360
|
+
const { isPrinting: Hl, isImaging: nt, generatePdf: it, generateImage: ut } = mn({
|
|
1361
1361
|
elementId: `vue-ui-xy_${Z.value}`,
|
|
1362
1362
|
fileName: t.value.chart.title.text || "vue-ui-xy",
|
|
1363
1363
|
options: t.value.chart.userOptions.print
|
|
@@ -1371,22 +1371,22 @@ const _n = {
|
|
|
1371
1371
|
return t.value.chart.grid.labels.yAxis.scaleMax;
|
|
1372
1372
|
const l = Math.max(...je.value.filter((s) => !ce.value.includes(s.id)).map((s) => Math.max(...s.series)));
|
|
1373
1373
|
return Ft.value === l ? l + 1 : l;
|
|
1374
|
-
}), Xe = x(() => t.value.chart.grid.labels.yAxis.useNiceScale ? Kl(Ft.value, al.value < 0 ? 0 : al.value, t.value.chart.grid.labels.yAxis.commonScaleSteps) : hl(Ft.value, al.value < 0 ? 0 : al.value, t.value.chart.grid.labels.yAxis.commonScaleSteps)), ol = x(() => [null, void 0].includes(t.value.chart.grid.labels.yAxis.scaleMin) ? Xe.value.min >= 0 ? 0 : Math.abs(Xe.value.min) : -Xe.value.min), je = x(() => Kt.value ?
|
|
1375
|
-
const e = yt(l.series),
|
|
1374
|
+
}), Xe = x(() => t.value.chart.grid.labels.yAxis.useNiceScale ? Kl(Ft.value, al.value < 0 ? 0 : al.value, t.value.chart.grid.labels.yAxis.commonScaleSteps) : hl(Ft.value, al.value < 0 ? 0 : al.value, t.value.chart.grid.labels.yAxis.commonScaleSteps)), ol = x(() => [null, void 0].includes(t.value.chart.grid.labels.yAxis.scaleMin) ? Xe.value.min >= 0 ? 0 : Math.abs(Xe.value.min) : -Xe.value.min), je = x(() => Kt.value ? _e.value.map((l, s) => {
|
|
1375
|
+
const e = yt(l.series), u = `uniqueId_${s}`;
|
|
1376
1376
|
return {
|
|
1377
1377
|
...l,
|
|
1378
1378
|
slotAbsoluteIndex: s,
|
|
1379
|
-
series: e.map((a) =>
|
|
1380
|
-
color:
|
|
1381
|
-
id:
|
|
1382
|
-
scaleLabel: l.scaleLabel ||
|
|
1379
|
+
series: e.map((a) => fa(a) ? a : null).slice(w.value.start, w.value.end),
|
|
1380
|
+
color: po(l.color ? l.color : ll.value[s] ? ll.value[s] : ko[s]),
|
|
1381
|
+
id: u,
|
|
1382
|
+
scaleLabel: l.scaleLabel || u
|
|
1383
1383
|
};
|
|
1384
|
-
}) :
|
|
1384
|
+
}) : _e.value), et = x(() => je.value.map((l, s) => ({
|
|
1385
1385
|
absoluteIndex: s,
|
|
1386
1386
|
...l,
|
|
1387
1387
|
series: l.series.map((e) => e + ol.value),
|
|
1388
1388
|
absoluteValues: l.series,
|
|
1389
|
-
segregate: () =>
|
|
1389
|
+
segregate: () => Ga(l),
|
|
1390
1390
|
isSegregated: ce.value.includes(l.id)
|
|
1391
1391
|
}))), Fe = x(() => je.value.map((l, s) => ({
|
|
1392
1392
|
...l,
|
|
@@ -1405,11 +1405,11 @@ const _n = {
|
|
|
1405
1405
|
const tt = y(0), nl = Jl((l) => {
|
|
1406
1406
|
tt.value = l;
|
|
1407
1407
|
}, 100);
|
|
1408
|
-
|
|
1408
|
+
go((l) => {
|
|
1409
1409
|
const s = Se.value;
|
|
1410
1410
|
if (!s) return;
|
|
1411
|
-
const e = new ResizeObserver((
|
|
1412
|
-
nl(
|
|
1411
|
+
const e = new ResizeObserver((u) => {
|
|
1412
|
+
nl(u[0].contentRect.height);
|
|
1413
1413
|
});
|
|
1414
1414
|
e.observe(s), l(() => e.disconnect());
|
|
1415
1415
|
}), gl(() => {
|
|
@@ -1420,39 +1420,39 @@ const _n = {
|
|
|
1420
1420
|
qt.value && (l = qt.value.getBBox().height);
|
|
1421
1421
|
let s = 0;
|
|
1422
1422
|
return Se.value && (s = tt.value), l + s + C.value.xAxis;
|
|
1423
|
-
}), pl = x(() =>
|
|
1423
|
+
}), pl = x(() => _e.value.some((l) => l.useProgression)), c = x(() => {
|
|
1424
1424
|
let l = 0;
|
|
1425
1425
|
const s = 36;
|
|
1426
|
-
t.value.chart.grid.labels.show && (p.value.useIndividualScale && !p.value.isStacked ? l = (
|
|
1427
|
-
const e = t.value.chart.labels.fontSize * 1.1,
|
|
1426
|
+
t.value.chart.grid.labels.show && (p.value.useIndividualScale && !p.value.isStacked ? l = (_e.value.length - ce.value.length) * (t.value.chart.grid.labels.yAxis.labelWidth + s) : p.value.useIndividualScale && p.value.isStacked ? l = t.value.chart.grid.labels.yAxis.labelWidth + s : l = la());
|
|
1427
|
+
const e = t.value.chart.labels.fontSize * 1.1, u = pl.value ? 24 : 6;
|
|
1428
1428
|
if (Se.value) {
|
|
1429
1429
|
const o = Se.value.getBBox().x;
|
|
1430
1430
|
o < 0 && (l += Math.abs(o));
|
|
1431
1431
|
}
|
|
1432
|
-
const a = le.value - l - t.value.chart.grid.labels.yAxis.crosshairSize -
|
|
1432
|
+
const a = le.value - l - t.value.chart.grid.labels.yAxis.crosshairSize - u - t.value.chart.padding.left - t.value.chart.padding.right, r = t.value.chart.grid.position === "middle" ? 0 : a / S.value / 2;
|
|
1433
1433
|
return {
|
|
1434
1434
|
top: t.value.chart.padding.top + e,
|
|
1435
|
-
right: le.value -
|
|
1436
|
-
bottom:
|
|
1435
|
+
right: le.value - u - t.value.chart.padding.right,
|
|
1436
|
+
bottom: W.value - Rt.value - t.value.chart.padding.bottom - t.value.chart.grid.labels.axis.xLabelOffsetY,
|
|
1437
1437
|
left: l + t.value.chart.grid.labels.yAxis.crosshairSize - r + t.value.chart.padding.left,
|
|
1438
|
-
height:
|
|
1438
|
+
height: W.value - Rt.value - t.value.chart.padding.top - t.value.chart.padding.bottom - e - t.value.chart.grid.labels.axis.xLabelOffsetY,
|
|
1439
1439
|
width: a,
|
|
1440
1440
|
scaleLabelX: l,
|
|
1441
1441
|
individualOffsetX: s
|
|
1442
1442
|
};
|
|
1443
1443
|
}), Ot = x(() => {
|
|
1444
|
-
const l = t.value.chart.grid.position === "middle" ? 1 : 0, s =
|
|
1444
|
+
const l = t.value.chart.grid.position === "middle" ? 1 : 0, s = S.value + l, e = j(c.value.top), u = j(c.value.bottom);
|
|
1445
1445
|
return Array.from({ length: s }).map((a, r) => {
|
|
1446
|
-
const o = c.value.width /
|
|
1447
|
-
return `M${o},${e} L${o},${
|
|
1446
|
+
const o = c.value.width / S.value * r + c.value.left + ie.value;
|
|
1447
|
+
return `M${o},${e} L${o},${u}`;
|
|
1448
1448
|
}).join(" ");
|
|
1449
1449
|
}), Dl = x(() => {
|
|
1450
1450
|
if (!t.value.chart.grid.labels.xAxis.showCrosshairs) return "";
|
|
1451
|
-
const l = c.value.width /
|
|
1452
|
-
return
|
|
1453
|
-
if (!
|
|
1454
|
-
const r = c.value.left + l * a + l / 2, o = e ? Ie.value - (Ie.value === c.value.bottom ? 0 : s / 2) : c.value.bottom,
|
|
1455
|
-
return `M${r},${o} L${r},${
|
|
1451
|
+
const l = c.value.width / S.value, s = t.value.chart.grid.labels.xAxis.crosshairSize, e = t.value.chart.grid.labels.xAxis.crosshairsAlwaysAtZero;
|
|
1452
|
+
return D.value.map((u, a) => {
|
|
1453
|
+
if (!u || !u.text) return null;
|
|
1454
|
+
const r = c.value.left + l * a + l / 2, o = e ? Ie.value - (Ie.value === c.value.bottom ? 0 : s / 2) : c.value.bottom, F = e ? Ie.value + s / (Ie.value === c.value.bottom ? 1 : 2) : c.value.bottom + s;
|
|
1455
|
+
return `M${r},${o} L${r},${F}`;
|
|
1456
1456
|
}).filter(Boolean).join(" ");
|
|
1457
1457
|
});
|
|
1458
1458
|
function kl() {
|
|
@@ -1460,8 +1460,8 @@ const _n = {
|
|
|
1460
1460
|
}
|
|
1461
1461
|
function aa(l, s, e) {
|
|
1462
1462
|
if (!Qt.value) {
|
|
1463
|
-
const
|
|
1464
|
-
Qt.value =
|
|
1463
|
+
const u = document.createElement("canvas");
|
|
1464
|
+
Qt.value = u.getContext("2d");
|
|
1465
1465
|
}
|
|
1466
1466
|
return Qt.value.font = `normal ${l}px sans-serif`, Qt.value;
|
|
1467
1467
|
}
|
|
@@ -1469,8 +1469,8 @@ const _n = {
|
|
|
1469
1469
|
const l = Be.value.querySelectorAll(".vue-ui-xy-tag");
|
|
1470
1470
|
l.length && Array.from(l).forEach((s) => s.style.opacity = "0");
|
|
1471
1471
|
}
|
|
1472
|
-
function kt(l, s, e,
|
|
1473
|
-
e && (ot.value[`${l}_${s}_${
|
|
1472
|
+
function kt(l, s, e, u, a) {
|
|
1473
|
+
e && (ot.value[`${l}_${s}_${u}_${a}`] = e);
|
|
1474
1474
|
}
|
|
1475
1475
|
const Vt = y(!1);
|
|
1476
1476
|
async function me(l = !1) {
|
|
@@ -1480,8 +1480,8 @@ const _n = {
|
|
|
1480
1480
|
Ee.value = !Ee.value;
|
|
1481
1481
|
}
|
|
1482
1482
|
const v = x(() => {
|
|
1483
|
-
const l = Math.max(
|
|
1484
|
-
return
|
|
1483
|
+
const l = Math.max(..._e.value.map((s) => Pa({ data: s.series, threshold: t.value.downsample.threshold }).length));
|
|
1484
|
+
return Mo({
|
|
1485
1485
|
values: t.value.chart.grid.labels.xAxisLabels.values,
|
|
1486
1486
|
maxDatapoints: l,
|
|
1487
1487
|
formatter: t.value.chart.grid.labels.xAxisLabels.datetimeFormatter,
|
|
@@ -1489,8 +1489,8 @@ const _n = {
|
|
|
1489
1489
|
end: w.value.end
|
|
1490
1490
|
});
|
|
1491
1491
|
}), m = x(() => {
|
|
1492
|
-
const l = Math.max(
|
|
1493
|
-
return
|
|
1492
|
+
const l = Math.max(..._e.value.map((s) => Pa({ data: s.series, threshold: t.value.downsample.threshold }).length));
|
|
1493
|
+
return Mo({
|
|
1494
1494
|
values: t.value.chart.grid.labels.xAxisLabels.values,
|
|
1495
1495
|
maxDatapoints: l,
|
|
1496
1496
|
formatter: t.value.chart.grid.labels.xAxisLabels.datetimeFormatter,
|
|
@@ -1503,69 +1503,69 @@ const _n = {
|
|
|
1503
1503
|
});
|
|
1504
1504
|
function A(l) {
|
|
1505
1505
|
let s = null, e = null;
|
|
1506
|
-
return (...
|
|
1507
|
-
const a = JSON.stringify(
|
|
1508
|
-
return a === s || (s = a, e = l(...
|
|
1506
|
+
return (...u) => {
|
|
1507
|
+
const a = JSON.stringify(u);
|
|
1508
|
+
return a === s || (s = a, e = l(...u)), e;
|
|
1509
1509
|
};
|
|
1510
1510
|
}
|
|
1511
|
-
const z = A((l, s, e,
|
|
1511
|
+
const z = A((l, s, e, u, a, r, o, F) => {
|
|
1512
1512
|
if (l)
|
|
1513
|
-
return
|
|
1513
|
+
return u.length <= 2 ? u.map((B, se) => ({ text: B, absoluteIndex: se })) : u.map((B, se) => ({ text: se === 0 || se === u.length - 1 || o != null && se === o ? B : "", absoluteIndex: se }));
|
|
1514
1514
|
if (!s)
|
|
1515
|
-
return
|
|
1516
|
-
const
|
|
1517
|
-
if (
|
|
1518
|
-
return
|
|
1519
|
-
const
|
|
1520
|
-
for (let
|
|
1521
|
-
const
|
|
1522
|
-
if (!
|
|
1523
|
-
const se = r +
|
|
1524
|
-
|
|
1515
|
+
return u.map((Y, B) => ({ text: Y, absoluteIndex: B }));
|
|
1516
|
+
const R = Math.max(1, e || 1);
|
|
1517
|
+
if (F <= R)
|
|
1518
|
+
return u.map((Y, B) => ({ text: Y, absoluteIndex: B }));
|
|
1519
|
+
const O = [];
|
|
1520
|
+
for (let Y = 0; Y < u.length; Y += 1) {
|
|
1521
|
+
const B = u[Y] ?? "";
|
|
1522
|
+
if (!B) continue;
|
|
1523
|
+
const se = r + Y - 1 >= 0 ? a[r + Y - 1] ?? "" : null;
|
|
1524
|
+
B !== se && O.push(Y);
|
|
1525
1525
|
}
|
|
1526
|
-
if (!
|
|
1527
|
-
return
|
|
1528
|
-
const T =
|
|
1529
|
-
let U = Math.min(
|
|
1530
|
-
for (let
|
|
1531
|
-
const
|
|
1532
|
-
Oe <
|
|
1526
|
+
if (!O.length)
|
|
1527
|
+
return u.map((Y, B) => ({ text: "", absoluteIndex: B }));
|
|
1528
|
+
const T = O.length, N = R, ee = Math.max(2, Math.min(N - 3, T)), I = Math.min(T, N + 3);
|
|
1529
|
+
let U = Math.min(N, T), V = 1 / 0;
|
|
1530
|
+
for (let Y = ee; Y <= I; Y += 1) {
|
|
1531
|
+
const B = (T - 1) % (Y - 1), se = Math.abs(Y - N), Oe = B * 10 + se;
|
|
1532
|
+
Oe < V && (V = Oe, U = Y);
|
|
1533
1533
|
}
|
|
1534
1534
|
const de = /* @__PURE__ */ new Set();
|
|
1535
1535
|
if (U <= 1)
|
|
1536
|
-
de.add(
|
|
1536
|
+
de.add(O[Math.round((T - 1) / 2)]);
|
|
1537
1537
|
else {
|
|
1538
|
-
const
|
|
1539
|
-
for (let
|
|
1540
|
-
de.add(
|
|
1538
|
+
const Y = (T - 1) / (U - 1);
|
|
1539
|
+
for (let B = 0; B < U; B += 1)
|
|
1540
|
+
de.add(O[Math.round(B * Y)]);
|
|
1541
1541
|
}
|
|
1542
|
-
return
|
|
1543
|
-
text: de.has(
|
|
1544
|
-
absoluteIndex:
|
|
1542
|
+
return u.map((Y, B) => ({
|
|
1543
|
+
text: de.has(B) ? Y : "",
|
|
1544
|
+
absoluteIndex: B
|
|
1545
1545
|
}));
|
|
1546
|
-
}),
|
|
1547
|
-
const l = t.value.chart.grid.labels.xAxisLabels, s = v.value || [], e = m.value || [],
|
|
1546
|
+
}), D = x(() => {
|
|
1547
|
+
const l = t.value.chart.grid.labels.xAxisLabels, s = v.value || [], e = m.value || [], u = w.value.start ?? 0, a = _.value, r = S.value, o = s.map((R) => R?.text ?? ""), F = e.map((R) => R?.text ?? "");
|
|
1548
1548
|
return z(
|
|
1549
1549
|
!!l.showOnlyFirstAndLast,
|
|
1550
1550
|
!!l.showOnlyAtModulo,
|
|
1551
1551
|
Math.max(1, f.value || 1),
|
|
1552
1552
|
o,
|
|
1553
|
-
|
|
1554
|
-
|
|
1553
|
+
F,
|
|
1554
|
+
u,
|
|
1555
1555
|
a,
|
|
1556
1556
|
r
|
|
1557
1557
|
);
|
|
1558
1558
|
});
|
|
1559
1559
|
function ke(l, s) {
|
|
1560
|
-
const e = Fe.value.map((
|
|
1561
|
-
shape:
|
|
1562
|
-
name:
|
|
1563
|
-
color:
|
|
1564
|
-
type:
|
|
1565
|
-
value:
|
|
1566
|
-
comments:
|
|
1567
|
-
prefix:
|
|
1568
|
-
suffix:
|
|
1560
|
+
const e = Fe.value.map((u) => ({
|
|
1561
|
+
shape: u.shape || null,
|
|
1562
|
+
name: u.name,
|
|
1563
|
+
color: u.color,
|
|
1564
|
+
type: u.type,
|
|
1565
|
+
value: u.absoluteValues.find((a, r) => r === s),
|
|
1566
|
+
comments: u.comments || [],
|
|
1567
|
+
prefix: u.prefix || t.value.chart.labels.prefix,
|
|
1568
|
+
suffix: u.suffix || t.value.chart.labels.suffix
|
|
1569
1569
|
}));
|
|
1570
1570
|
Gt("selectTimeLabel", {
|
|
1571
1571
|
datapoint: e,
|
|
@@ -1573,12 +1573,12 @@ const _n = {
|
|
|
1573
1573
|
label: l.text
|
|
1574
1574
|
});
|
|
1575
1575
|
}
|
|
1576
|
-
const
|
|
1576
|
+
const S = x(() => {
|
|
1577
1577
|
const l = Vl((w.value.end ?? 0) - (w.value.start ?? 0));
|
|
1578
1578
|
return Math.max(1, l);
|
|
1579
1579
|
});
|
|
1580
1580
|
function wl(l) {
|
|
1581
|
-
|
|
1581
|
+
X.value = l;
|
|
1582
1582
|
}
|
|
1583
1583
|
function st() {
|
|
1584
1584
|
p.value.isStacked = !p.value.isStacked, p.value.isStacked ? p.value.useIndividualScale = !0 : p.value.useIndividualScale = t.value.chart.grid.labels.yAxis.useIndividualScale;
|
|
@@ -1587,39 +1587,39 @@ const _n = {
|
|
|
1587
1587
|
Mt.value && l.autoScaling && (t.value.chart.grid.labels.yAxis.useIndividualScale || console.warn(`VueUiXy (datapoint: ${l.name}) : autoScaling only works when config.chart.grid.labels.yAxis.useIndividualScale is set to true`), t.value.chart.grid.labels.yAxis.stacked || console.warn(`VueUiXy (datapoint: ${l.name}) : autoScaling only works when config.chart.grid.labels.yAxis.stacked is set to true`));
|
|
1588
1588
|
}
|
|
1589
1589
|
function Ct(l, s) {
|
|
1590
|
-
const e = Vl(l),
|
|
1591
|
-
for (let a = 0; a < s.length && a < e; a += 1)
|
|
1592
|
-
return
|
|
1590
|
+
const e = Vl(l), u = Array(e).fill(0);
|
|
1591
|
+
for (let a = 0; a < s.length && a < e; a += 1) u[a] = s[a] ?? 0;
|
|
1592
|
+
return u;
|
|
1593
1593
|
}
|
|
1594
1594
|
function oa(l) {
|
|
1595
|
-
const s = Math.max(
|
|
1595
|
+
const s = Math.max(..._e.value.map((e) => yt(e.series).length));
|
|
1596
1596
|
return l > s ? s : l < 0 || t.value.chart.zoom.startIndex !== null && l < t.value.chart.zoom.startIndex ? t.value.chart.zoom.startIndex !== null ? t.value.chart.zoom.startIndex + 1 : 1 : l;
|
|
1597
1597
|
}
|
|
1598
|
-
const
|
|
1599
|
-
function
|
|
1600
|
-
if (!
|
|
1601
|
-
|
|
1598
|
+
const il = y(!1), Me = y(!1);
|
|
1599
|
+
function ul() {
|
|
1600
|
+
if (!il.value) {
|
|
1601
|
+
il.value = !0;
|
|
1602
1602
|
try {
|
|
1603
|
-
const { startIndex: l, endIndex: s } = t.value.chart.zoom, e = Math.max(
|
|
1604
|
-
At.value = !0, w.value.start =
|
|
1603
|
+
const { startIndex: l, endIndex: s } = t.value.chart.zoom, e = Math.max(..._e.value.map((r) => yt(r.series).length)), u = l ?? 0, a = s != null ? Math.min(oa(s + 1), e) : e;
|
|
1604
|
+
At.value = !0, w.value.start = u, w.value.end = a, We.value.start = u, We.value.end = a, Lt(), Me.value = !0;
|
|
1605
1605
|
} finally {
|
|
1606
1606
|
queueMicrotask(() => {
|
|
1607
1607
|
At.value = !1;
|
|
1608
|
-
}),
|
|
1608
|
+
}), il.value = !1;
|
|
1609
1609
|
}
|
|
1610
1610
|
}
|
|
1611
1611
|
}
|
|
1612
1612
|
const At = y(!1);
|
|
1613
1613
|
function na(l) {
|
|
1614
|
-
|
|
1614
|
+
il.value || At.value || l !== w.value.start && (w.value.start = l, We.value.start = l, Lt());
|
|
1615
1615
|
}
|
|
1616
|
-
function
|
|
1617
|
-
if (
|
|
1616
|
+
function La(l) {
|
|
1617
|
+
if (il.value || At.value) return;
|
|
1618
1618
|
const s = oa(l);
|
|
1619
1619
|
s !== w.value.end && (w.value.end = s, We.value.end = s, Lt());
|
|
1620
1620
|
}
|
|
1621
|
-
async function
|
|
1622
|
-
await
|
|
1621
|
+
async function Ca() {
|
|
1622
|
+
await ul();
|
|
1623
1623
|
}
|
|
1624
1624
|
function Ye(l) {
|
|
1625
1625
|
return ![null, void 0, NaN, 1 / 0, -1 / 0].includes(l);
|
|
@@ -1637,7 +1637,7 @@ const _n = {
|
|
|
1637
1637
|
return l.value >= 0 ? q(l.zeroPosition - l.y <= 0 ? 1e-5 : l.zeroPosition - l.y) : q(l.y - l.zeroPosition <= 0 ? 1e-5 : l.zeroPosition - l.y);
|
|
1638
1638
|
}
|
|
1639
1639
|
const ve = x(() => {
|
|
1640
|
-
const l = Math.max(1,
|
|
1640
|
+
const l = Math.max(1, S.value), s = Math.max(1, c.value.width), e = Math.max(1, je.value.filter((u) => u.type === "bar" && !ce.value.includes(u.id)).length);
|
|
1641
1641
|
return {
|
|
1642
1642
|
bar: Nt(s, l * e, 1),
|
|
1643
1643
|
plot: Nt(s, l, 1),
|
|
@@ -1645,10 +1645,10 @@ const _n = {
|
|
|
1645
1645
|
};
|
|
1646
1646
|
});
|
|
1647
1647
|
function Sl() {
|
|
1648
|
-
return p.value.useIndividualScale && p.value.isStacked ? ve.value.line - c.value.width /
|
|
1648
|
+
return p.value.useIndividualScale && p.value.isStacked ? ve.value.line - c.value.width / S.value * 0.1 : ve.value.bar;
|
|
1649
1649
|
}
|
|
1650
|
-
function
|
|
1651
|
-
return p.value.useIndividualScale && p.value.isStacked ? l.x + c.value.width /
|
|
1650
|
+
function ia(l) {
|
|
1651
|
+
return p.value.useIndividualScale && p.value.isStacked ? l.x + c.value.width / S.value * 0.05 : l.x + ve.value.bar / 2;
|
|
1652
1652
|
}
|
|
1653
1653
|
function Ha(l) {
|
|
1654
1654
|
return l.value >= 0 ? l.y : [null, void 0, NaN, 1 / 0, -1 / 0].includes(Ie.value) ? c.bottom.value : Ie.value;
|
|
@@ -1657,30 +1657,57 @@ const _n = {
|
|
|
1657
1657
|
return l.value >= 0 ? l.y : [null, void 0, NaN, 1 / 0, -1 / 0].includes(l.zeroPosition) ? 0 : l.zeroPosition;
|
|
1658
1658
|
}
|
|
1659
1659
|
const Yl = y(null);
|
|
1660
|
-
|
|
1661
|
-
|
|
1662
|
-
|
|
1660
|
+
function Wa(l) {
|
|
1661
|
+
const s = $e.value;
|
|
1662
|
+
if (!s) return null;
|
|
1663
|
+
if (s.createSVGPoint && s.getScreenCTM) {
|
|
1664
|
+
const N = s.createSVGPoint();
|
|
1665
|
+
N.x = l.clientX, N.y = l.clientY;
|
|
1666
|
+
const ee = s.getScreenCTM();
|
|
1667
|
+
if (ee) {
|
|
1668
|
+
const I = N.matrixTransform(ee.inverse());
|
|
1669
|
+
return { x: I.x, y: I.y, ok: !0 };
|
|
1670
|
+
}
|
|
1671
|
+
}
|
|
1672
|
+
const e = s.getBoundingClientRect(), u = s.viewBox?.baseVal || { x: 0, y: 0, width: e.width, height: e.height }, a = Math.min(e.width / u.width, e.height / u.height), r = u.width * a, o = u.height * a, F = (e.width - r) / 2, R = (e.height - o) / 2, O = (l.clientX - e.left - F) / a + u.x, T = (l.clientY - e.top - R) / a + u.y;
|
|
1673
|
+
return { x: O, y: T, ok: !0 };
|
|
1663
1674
|
}
|
|
1664
|
-
|
|
1665
|
-
|
|
1666
|
-
rl && cancelAnimationFrame(rl)
|
|
1667
|
-
|
|
1668
|
-
|
|
1669
|
-
if (
|
|
1670
|
-
|
|
1675
|
+
let rl = 0;
|
|
1676
|
+
function Co(l) {
|
|
1677
|
+
Ee.value || (rl && cancelAnimationFrame(rl), rl = requestAnimationFrame(() => {
|
|
1678
|
+
rl = 0;
|
|
1679
|
+
const s = Wa(l);
|
|
1680
|
+
if (!s || !$e.value) {
|
|
1681
|
+
ua();
|
|
1671
1682
|
return;
|
|
1672
1683
|
}
|
|
1673
|
-
const
|
|
1674
|
-
|
|
1675
|
-
|
|
1684
|
+
const { left: e, right: u, top: a, bottom: r, width: o } = c.value;
|
|
1685
|
+
if (s.x < e || s.x > u || s.y < a || s.y > r) {
|
|
1686
|
+
ua();
|
|
1687
|
+
return;
|
|
1688
|
+
}
|
|
1689
|
+
const F = s.x - e, R = o / S.value, O = Math.floor(F / R);
|
|
1690
|
+
O >= 0 && O < S.value ? Yl.value !== O && (Yl.value = O, to(!0, O)) : ua();
|
|
1691
|
+
}));
|
|
1676
1692
|
}
|
|
1677
|
-
function
|
|
1678
|
-
rl && (cancelAnimationFrame(rl), rl = 0), Yl.value = null,
|
|
1693
|
+
function ua() {
|
|
1694
|
+
rl && (cancelAnimationFrame(rl), rl = 0), Yl.value = null, to(!1, null);
|
|
1679
1695
|
}
|
|
1680
|
-
function
|
|
1681
|
-
|
|
1696
|
+
function Xa(l) {
|
|
1697
|
+
const s = Wa(l);
|
|
1698
|
+
if (s && $e.value) {
|
|
1699
|
+
const { left: e, right: u, top: a, bottom: r, width: o } = c.value;
|
|
1700
|
+
if (s.x >= e && s.x <= u && s.y >= a && s.y <= r) {
|
|
1701
|
+
const F = o / Math.max(1, S.value), R = Math.floor((s.x - e) / F);
|
|
1702
|
+
if (R >= 0 && R < S.value) {
|
|
1703
|
+
Ya(R);
|
|
1704
|
+
return;
|
|
1705
|
+
}
|
|
1706
|
+
}
|
|
1707
|
+
}
|
|
1708
|
+
Yl.value != null && Ya(Yl.value);
|
|
1682
1709
|
}
|
|
1683
|
-
function
|
|
1710
|
+
function Ya(l) {
|
|
1684
1711
|
const s = Fe.value.map((e) => ({
|
|
1685
1712
|
name: e.name,
|
|
1686
1713
|
value: [null, void 0, NaN].includes(e.absoluteValues[l]) ? null : e.absoluteValues[l],
|
|
@@ -1706,17 +1733,17 @@ const _n = {
|
|
|
1706
1733
|
}
|
|
1707
1734
|
async function zo({ scale: l = 2 } = {}) {
|
|
1708
1735
|
if (!Be.value) return;
|
|
1709
|
-
const { width: s, height: e } = Be.value.getBoundingClientRect(),
|
|
1736
|
+
const { width: s, height: e } = Be.value.getBoundingClientRect(), u = s / e, { imageUri: a, base64: r } = await kn({ domElement: Be.value, base64: !0, img: !0, scale: l });
|
|
1710
1737
|
return {
|
|
1711
1738
|
imageUri: a,
|
|
1712
1739
|
base64: r,
|
|
1713
1740
|
title: t.value.chart.title.text,
|
|
1714
1741
|
width: s,
|
|
1715
1742
|
height: e,
|
|
1716
|
-
aspectRatio:
|
|
1743
|
+
aspectRatio: u
|
|
1717
1744
|
};
|
|
1718
1745
|
}
|
|
1719
|
-
function
|
|
1746
|
+
function Ga(l) {
|
|
1720
1747
|
if (ce.value.includes(l.id))
|
|
1721
1748
|
ce.value = ce.value.filter((s) => s !== l.id);
|
|
1722
1749
|
else {
|
|
@@ -1733,8 +1760,8 @@ const _n = {
|
|
|
1733
1760
|
const To = x(() => {
|
|
1734
1761
|
const l = t.value.chart.title.text || "Chart visualization", s = t.value.chart.title.subtitle.text || "";
|
|
1735
1762
|
return `${l}. ${s}`;
|
|
1736
|
-
}),
|
|
1737
|
-
linePlot:
|
|
1763
|
+
}), Ua = x(() => ({
|
|
1764
|
+
linePlot: S.value > t.value.line.dot.hideAboveMaxSerieLength
|
|
1738
1765
|
})), Io = x(() => t.value.chart.userOptions.show && (!t.value.chart.title.show || !t.value.chart.title.text)), No = x(() => {
|
|
1739
1766
|
if (Array.isArray(t.value.chart.highlightArea))
|
|
1740
1767
|
return t.value.chart.highlightArea.map((s) => {
|
|
@@ -1749,18 +1776,18 @@ const _n = {
|
|
|
1749
1776
|
to: Math.min(t.value.chart.highlightArea.to, Qe.value - 1)
|
|
1750
1777
|
};
|
|
1751
1778
|
return [{ ...l, span: l.from === l.to ? 1 : l.to < l.from ? 0 : l.to - l.from + 1 }];
|
|
1752
|
-
}),
|
|
1779
|
+
}), qa = x(() => Kt.value ? _e.value.map((l, s) => ({
|
|
1753
1780
|
...l,
|
|
1754
1781
|
series: yt(l.series),
|
|
1755
1782
|
id: `uniqueId_${s}`,
|
|
1756
|
-
color:
|
|
1757
|
-
})) :
|
|
1783
|
+
color: po(l.color ? l.color : ll.value[s] ? ll.value[s] : ko[s])
|
|
1784
|
+
})) : _e.value), Po = x(() => Fe.value.map((l) => {
|
|
1758
1785
|
const s = l.absoluteValues.map((e) => [void 0, null].includes(e) ? 0 : e);
|
|
1759
1786
|
return {
|
|
1760
1787
|
id: l.id,
|
|
1761
1788
|
name: l.name,
|
|
1762
1789
|
color: l.color,
|
|
1763
|
-
values: Ct(
|
|
1790
|
+
values: Ct(S.value, s)
|
|
1764
1791
|
};
|
|
1765
1792
|
})), Fo = x(() => ({
|
|
1766
1793
|
responsiveBreakpoint: t.value.table.responsiveBreakpoint,
|
|
@@ -1788,28 +1815,28 @@ const _n = {
|
|
|
1788
1815
|
sparkline: {
|
|
1789
1816
|
animation: { show: !1 }
|
|
1790
1817
|
}
|
|
1791
|
-
})),
|
|
1818
|
+
})), ie = x(() => t.value.chart.grid.position === "middle" ? 0 : c.value.width / S.value / 2), cl = x(() => ln(et.value.filter((l) => !ce.value.includes(l.id)))), P = x(() => {
|
|
1792
1819
|
const l = Object.groupBy(cl.value, (e) => e.scaleLabel), s = {};
|
|
1793
|
-
for (const [e,
|
|
1794
|
-
const a =
|
|
1820
|
+
for (const [e, u] of Object.entries(l)) {
|
|
1821
|
+
const a = u.flatMap((r) => r.absoluteValues);
|
|
1795
1822
|
s[e] = {
|
|
1796
1823
|
min: Math.min(...a) || 0,
|
|
1797
1824
|
max: Math.max(...a) || 1,
|
|
1798
|
-
groupId: `scale_group_${
|
|
1825
|
+
groupId: `scale_group_${xa()}`
|
|
1799
1826
|
};
|
|
1800
1827
|
}
|
|
1801
1828
|
return s;
|
|
1802
1829
|
}), Ro = x(() => {
|
|
1803
1830
|
const l = je.value.filter((s) => s.type === "bar").filter((s) => !ce.value.includes(s.id)).length;
|
|
1804
|
-
return c.value.width /
|
|
1805
|
-
}),
|
|
1831
|
+
return c.value.width / S.value / l - sa.value * l;
|
|
1832
|
+
}), sa = x(() => ve.value.line * t.value.bar.periodGap), ra = x(() => Math.max(1e-5, Sl() - (p.value.useIndividualScale && p.value.isStacked ? 0 : sa.value))), ca = x(() => ra.value * Math.min(Math.abs(t.value.bar.innerGap), 0.95)), Oo = x(() => {
|
|
1806
1833
|
if (!t.value.chart.zoom.minimap.show) return [];
|
|
1807
|
-
const l =
|
|
1834
|
+
const l = qa.value.filter((a) => !ce.value.includes(a.id)), s = Math.max(...l.map((a) => a.series.length)), e = [];
|
|
1808
1835
|
for (let a = 0; a < s; a += 1)
|
|
1809
1836
|
e.push(l.map((r) => r.series[a] || 0).reduce((r, o) => (r || 0) + (o || 0), 0));
|
|
1810
|
-
const
|
|
1811
|
-
return e.map((a) => a + (
|
|
1812
|
-
}), Vo = x(() => t.value.chart.zoom.minimap.show ?
|
|
1837
|
+
const u = Math.min(...e);
|
|
1838
|
+
return e.map((a) => a + (u < 0 ? Math.abs(u) : 0));
|
|
1839
|
+
}), Vo = x(() => t.value.chart.zoom.minimap.show ? qa.value.map((s) => ({
|
|
1813
1840
|
...s,
|
|
1814
1841
|
isVisible: !ce.value.includes(s.id)
|
|
1815
1842
|
})) : []), zt = x(() => Fe.value.map((l) => ({
|
|
@@ -1822,44 +1849,44 @@ const _n = {
|
|
|
1822
1849
|
comments: l.comments || [],
|
|
1823
1850
|
prefix: l.prefix || t.value.chart.labels.prefix,
|
|
1824
1851
|
suffix: l.suffix || t.value.chart.labels.suffix
|
|
1825
|
-
}))),
|
|
1852
|
+
}))), Za = x(() => Xe.value.ticks.map((l) => ({
|
|
1826
1853
|
y: l >= 0 ? Ie.value - c.value.height * sl(l) : Ie.value + c.value.height * sl(Math.abs(l)),
|
|
1827
1854
|
value: l,
|
|
1828
1855
|
prefix: t.value.chart.labels.prefix,
|
|
1829
1856
|
suffix: t.value.chart.labels.suffix
|
|
1830
|
-
}))),
|
|
1857
|
+
}))), Ka = x(() => {
|
|
1831
1858
|
const l = t.value.chart.annotations;
|
|
1832
1859
|
if (!l || !Array.isArray(l) || l.every((T) => !T.show)) return [];
|
|
1833
1860
|
const s = l.filter(
|
|
1834
1861
|
(T) => T.show && (T.yAxis.yTop != null || T.yAxis.yBottom != null)
|
|
1835
1862
|
);
|
|
1836
1863
|
if (!s.length) return [];
|
|
1837
|
-
const { left: e, right:
|
|
1838
|
-
const
|
|
1839
|
-
return a -
|
|
1864
|
+
const { left: e, right: u } = c.value, a = Ie.value, r = c.value.height, o = Xe.value.min, R = Xe.value.max - o, O = (T) => {
|
|
1865
|
+
const N = (T - 0) / R;
|
|
1866
|
+
return a - N * r;
|
|
1840
1867
|
};
|
|
1841
1868
|
return s.map((T) => {
|
|
1842
|
-
const { yAxis: { yTop:
|
|
1843
|
-
|
|
1844
|
-
const
|
|
1869
|
+
const { yAxis: { yTop: N, yBottom: ee, label: I } } = T, U = N != null && ee != null && N !== ee, V = N == null ? null : O(N), de = ee == null ? null : O(ee), Y = aa(I.fontSize);
|
|
1870
|
+
Y.font = `${I.fontSize}px sans-serif`;
|
|
1871
|
+
const B = Y.measureText(I.text).width, se = I.fontSize, Oe = (I.position === "start" ? e + I.padding.left : u - I.padding.right) + I.offsetX, Ge = (V != null && de != null ? Math.min(V, de) : V ?? de) - I.fontSize / 3 + I.offsetY - I.padding.top;
|
|
1845
1872
|
let J;
|
|
1846
|
-
I.textAnchor === "middle" ? J = Oe -
|
|
1873
|
+
I.textAnchor === "middle" ? J = Oe - B / 2 - I.padding.left : I.textAnchor === "end" ? J = Oe - B - I.padding.right : J = Oe - I.padding.left;
|
|
1847
1874
|
const Q = Ge - se * 0.75 - I.padding.top;
|
|
1848
1875
|
return {
|
|
1849
|
-
show: ![
|
|
1850
|
-
id: `annotation_y_${
|
|
1876
|
+
show: ![V, de, Q].includes(NaN),
|
|
1877
|
+
id: `annotation_y_${xa()}`,
|
|
1851
1878
|
hasArea: U,
|
|
1852
|
-
areaHeight: U ? Math.abs(
|
|
1853
|
-
yTop:
|
|
1879
|
+
areaHeight: U ? Math.abs(V - de) : 0,
|
|
1880
|
+
yTop: V,
|
|
1854
1881
|
yBottom: de,
|
|
1855
1882
|
config: T.yAxis,
|
|
1856
1883
|
x1: e,
|
|
1857
|
-
x2:
|
|
1884
|
+
x2: u,
|
|
1858
1885
|
_text: { x: Oe, y: Ge },
|
|
1859
1886
|
_box: {
|
|
1860
1887
|
x: J,
|
|
1861
1888
|
y: Q,
|
|
1862
|
-
width:
|
|
1889
|
+
width: B + I.padding.left + I.padding.right,
|
|
1863
1890
|
height: se + I.padding.top + I.padding.bottom,
|
|
1864
1891
|
fill: I.backgroundColor,
|
|
1865
1892
|
stroke: I.border.stroke,
|
|
@@ -1870,25 +1897,25 @@ const _n = {
|
|
|
1870
1897
|
};
|
|
1871
1898
|
});
|
|
1872
1899
|
});
|
|
1873
|
-
function
|
|
1874
|
-
const e = l[s - 1],
|
|
1875
|
-
let a = !!e && !!
|
|
1900
|
+
function Ja(l, s) {
|
|
1901
|
+
const e = l[s - 1], u = l[s + 1];
|
|
1902
|
+
let a = !!e && !!u && e.value == null && u.value == null || !e && !!u && u.value == null || !!e && !u && e.value == null;
|
|
1876
1903
|
return Ye(l[s].value) && a && t.value.line.cutNullValues;
|
|
1877
1904
|
}
|
|
1878
1905
|
const Tt = x(() => {
|
|
1879
|
-
const l = cl.value.filter((o) => ["bar", "line", "plot"].includes(o.type)), s = l.length, e = t.value.chart.grid.labels.yAxis.gap,
|
|
1880
|
-
return l.filter((o) => o.type === "bar").map((o,
|
|
1906
|
+
const l = cl.value.filter((o) => ["bar", "line", "plot"].includes(o.type)), s = l.length, e = t.value.chart.grid.labels.yAxis.gap, u = p.value.isStacked, a = u ? e * (s - 1) : 0, r = c.value.height - a;
|
|
1907
|
+
return l.filter((o) => o.type === "bar").map((o, F) => {
|
|
1881
1908
|
Bt(o);
|
|
1882
|
-
const
|
|
1883
|
-
o.absoluteValues.filter((K) => ![null, void 0].includes(K)).map((K) => (K -
|
|
1909
|
+
const R = P.value[o.scaleLabel].min, O = P.value[o.scaleLabel].max;
|
|
1910
|
+
o.absoluteValues.filter((K) => ![null, void 0].includes(K)).map((K) => (K - R) / (O - R));
|
|
1884
1911
|
const T = {
|
|
1885
|
-
valueMin:
|
|
1886
|
-
valueMax:
|
|
1887
|
-
},
|
|
1912
|
+
valueMin: R,
|
|
1913
|
+
valueMax: O < 0 ? 0 : O
|
|
1914
|
+
}, N = {
|
|
1888
1915
|
max: o.scaleMax || Math.max(...o.absoluteValues) || 1,
|
|
1889
1916
|
min: o.scaleMin || Math.min(...o.absoluteValues.filter((K) => ![void 0, null].includes(K))) > 0 ? 0 : Math.min(...o.absoluteValues.filter((K) => ![null, void 0].includes(K)))
|
|
1890
|
-
}, ee = o.scaleSteps || t.value.chart.grid.labels.yAxis.commonScaleSteps, I = 1.0000001, U = t.value.chart.grid.labels.yAxis.useNiceScale ? Kl(
|
|
1891
|
-
const Ht = p.value.useIndividualScale ? (o.absoluteValues[pe] + de) /
|
|
1917
|
+
}, ee = o.scaleSteps || t.value.chart.grid.labels.yAxis.commonScaleSteps, I = 1.0000001, U = t.value.chart.grid.labels.yAxis.useNiceScale ? Kl(N.min, N.max === N.min ? N.max * I : N.max, ee) : hl(N.min, N.max === N.min ? N.max * I : N.max, ee), V = t.value.chart.grid.labels.yAxis.useNiceScale ? Kl(T.valueMin, T.valueMax === T.valueMin ? T.valueMax * I : T.valueMax, ee) : hl(T.valueMin, T.valueMax === T.valueMin ? T.valueMax * I : T.valueMax, ee), de = U.min >= 0 ? 0 : Math.abs(U.min), Y = 0, B = U.max + de, se = V.max + Math.abs(Y), Oe = o.stackIndex, _l = s - 1 - Oe, Ge = u ? 1 - o.cumulatedStackRatio : 0, J = u ? r * Ge + e * _l : 0, Q = u ? r * o.stackRatio : c.value.height, be = c.value.bottom - J - Q * de / B, Ue = c.value.bottom - J - Q * Y / se, Ne = et.value.filter((K) => K.type === "bar").filter((K) => !ce.value.includes(K.id)).length, ql = o.series.map((K, pe) => {
|
|
1918
|
+
const Ht = p.value.useIndividualScale ? (o.absoluteValues[pe] + de) / B : sl(K), vl = p.value.useIndividualScale && p.value.isStacked ? c.value.left + c.value.width / S.value * pe : c.value.left + ve.value.bar * F + ve.value.bar * pe * Ne - Ro.value / 2 - F * sa.value;
|
|
1892
1919
|
return {
|
|
1893
1920
|
yOffset: q(J),
|
|
1894
1921
|
individualHeight: q(Q),
|
|
@@ -1896,11 +1923,11 @@ const _n = {
|
|
|
1896
1923
|
y: c.value.bottom - J - Q * Ht,
|
|
1897
1924
|
value: o.absoluteValues[pe],
|
|
1898
1925
|
zeroPosition: q(be),
|
|
1899
|
-
individualMax: q(
|
|
1926
|
+
individualMax: q(B),
|
|
1900
1927
|
comment: o.comments && o.comments.slice(w.value.start, w.value.end)[pe] || ""
|
|
1901
1928
|
};
|
|
1902
|
-
}), Ve = o.absoluteValues.map((K) =>
|
|
1903
|
-
const Ht = p.value.useIndividualScale && p.value.isStacked ? c.value.left + c.value.width /
|
|
1929
|
+
}), Ve = o.absoluteValues.map((K) => V.min >= 0 ? (K - Math.abs(V.min)) / (V.max - Math.abs(V.min)) : (K + Math.abs(V.min)) / (V.max + Math.abs(V.min))), Et = o.series.map((K, pe) => {
|
|
1930
|
+
const Ht = p.value.useIndividualScale && p.value.isStacked ? c.value.left + c.value.width / S.value * pe : c.value.left - ve.value.bar / 2 + ve.value.bar * F + ve.value.bar * pe * et.value.filter((vl) => vl.type === "bar").filter((vl) => !ce.value.includes(vl.id)).length;
|
|
1904
1931
|
return {
|
|
1905
1932
|
yOffset: q(J),
|
|
1906
1933
|
individualHeight: q(Q),
|
|
@@ -1908,17 +1935,17 @@ const _n = {
|
|
|
1908
1935
|
y: q(c.value.bottom - q(J) - (q(Q) * Ve[pe] || 0)),
|
|
1909
1936
|
value: o.absoluteValues[pe],
|
|
1910
1937
|
zeroPosition: q(be),
|
|
1911
|
-
individualMax: q(
|
|
1938
|
+
individualMax: q(B),
|
|
1912
1939
|
comment: o.comments && o.comments.slice(w.value.start, w.value.end)[pe] || ""
|
|
1913
1940
|
};
|
|
1914
1941
|
}), oe = U.ticks.map((K) => ({
|
|
1915
|
-
y: K >= 0 ? be - Q * (K /
|
|
1942
|
+
y: K >= 0 ? be - Q * (K / B) : be + Q * Math.abs(K) / B,
|
|
1916
1943
|
value: K,
|
|
1917
1944
|
prefix: o.prefix || t.value.chart.labels.prefix,
|
|
1918
1945
|
suffix: o.suffix || t.value.chart.labels.suffix,
|
|
1919
1946
|
datapoint: o
|
|
1920
|
-
})), ye =
|
|
1921
|
-
const pe = (K -
|
|
1947
|
+
})), ye = V.ticks.map((K) => {
|
|
1948
|
+
const pe = (K - V.min) / (V.max - V.min);
|
|
1922
1949
|
return {
|
|
1923
1950
|
y: K >= 0 ? Ue - Q * pe : Ue + Q * pe,
|
|
1924
1951
|
value: K,
|
|
@@ -1927,40 +1954,40 @@ const _n = {
|
|
|
1927
1954
|
datapoint: o
|
|
1928
1955
|
};
|
|
1929
1956
|
});
|
|
1930
|
-
return
|
|
1957
|
+
return P.value[o.scaleLabel].name = o.name, P.value[o.scaleLabel].groupName = o.scaleLabel, P.value[o.scaleLabel].groupColor = t.value.chart.grid.labels.yAxis.groupColor || o.color, P.value[o.scaleLabel].color = o.color, P.value[o.scaleLabel].scaleYLabels = o.autoScaling ? ye : oe, P.value[o.scaleLabel].zeroPosition = o.autoScaling ? Ue : be, P.value[o.scaleLabel].individualMax = o.autoScaling ? se : B, P.value[o.scaleLabel].scaleLabel = o.scaleLabel, P.value[o.scaleLabel].id = o.id, P.value[o.scaleLabel].yOffset = J, P.value[o.scaleLabel].individualHeight = Q, P.value[o.scaleLabel].autoScaleYLabels = ye, P.value[o.scaleLabel].unique = cl.value.filter((K) => K.scaleLabel === o.scaleLabel).length === 1, {
|
|
1931
1958
|
...o,
|
|
1932
1959
|
yOffset: J,
|
|
1933
1960
|
autoScaleYLabels: ye,
|
|
1934
1961
|
individualHeight: Q,
|
|
1935
1962
|
scaleYLabels: o.autoScaling ? ye : oe,
|
|
1936
|
-
individualScale: o.autoScaling ?
|
|
1937
|
-
individualMax: o.autoScaling ? se :
|
|
1963
|
+
individualScale: o.autoScaling ? V : U,
|
|
1964
|
+
individualMax: o.autoScaling ? se : B,
|
|
1938
1965
|
zeroPosition: o.autoScaling ? Ue : be,
|
|
1939
1966
|
plots: o.autoScaling ? Et : ql,
|
|
1940
|
-
groupId:
|
|
1967
|
+
groupId: P.value[o.scaleLabel].groupId
|
|
1941
1968
|
};
|
|
1942
1969
|
});
|
|
1943
1970
|
}), Re = x(() => {
|
|
1944
|
-
const l = cl.value.filter((o) => ["bar", "line", "plot"].includes(o.type)), s = l.length, e = t.value.chart.grid.labels.yAxis.gap,
|
|
1945
|
-
return l.filter((o) => o.type === "line").map((o,
|
|
1971
|
+
const l = cl.value.filter((o) => ["bar", "line", "plot"].includes(o.type)), s = l.length, e = t.value.chart.grid.labels.yAxis.gap, u = p.value.isStacked, a = u ? e * (s - 1) : 0, r = c.value.height - a;
|
|
1972
|
+
return l.filter((o) => o.type === "line").map((o, F) => {
|
|
1946
1973
|
Bt(o);
|
|
1947
|
-
const
|
|
1948
|
-
o.absoluteValues.filter((
|
|
1974
|
+
const R = P.value[o.scaleLabel].min, O = P.value[o.scaleLabel].max;
|
|
1975
|
+
o.absoluteValues.filter((G) => ![null, void 0].includes(G)).map((G) => (G - R) / (O - R));
|
|
1949
1976
|
const T = {
|
|
1950
|
-
valueMin:
|
|
1951
|
-
valueMax:
|
|
1952
|
-
},
|
|
1977
|
+
valueMin: R,
|
|
1978
|
+
valueMax: O
|
|
1979
|
+
}, N = {
|
|
1953
1980
|
max: o.scaleMax || Math.max(...o.absoluteValues) || 1,
|
|
1954
1981
|
min: o.scaleMin || (Math.min(...o.absoluteValues) > 0 ? 0 : Math.min(...o.absoluteValues))
|
|
1955
|
-
}, ee = o.scaleSteps || t.value.chart.grid.labels.yAxis.commonScaleSteps, I = 1.0000001, U = t.value.chart.grid.labels.yAxis.useNiceScale ? Kl(
|
|
1956
|
-
const Xo = p.value.useIndividualScale ? (o.absoluteValues[Ae] + Math.abs(de)) /
|
|
1982
|
+
}, ee = o.scaleSteps || t.value.chart.grid.labels.yAxis.commonScaleSteps, I = 1.0000001, U = t.value.chart.grid.labels.yAxis.useNiceScale ? Kl(N.min, N.max === N.min ? N.max * I : N.max, ee) : hl(N.min, N.max === N.min ? N.max * I : N.max, ee), V = t.value.chart.grid.labels.yAxis.useNiceScale ? Kl(T.valueMin, T.valueMax === T.valueMin ? T.valueMax * I : T.valueMax, ee) : hl(T.valueMin, T.valueMax === T.valueMin ? T.valueMax * I : T.valueMax, ee), de = U.min >= 0 ? 0 : Math.abs(U.min), Y = 0, B = U.max + Math.abs(de), se = V.max + Math.abs(Y), Oe = o.stackIndex, _l = s - 1 - Oe, Ge = u ? 1 - o.cumulatedStackRatio : 0, J = u ? r * Ge + e * _l : 0, Q = u ? r * o.stackRatio : c.value.height, be = c.value.bottom - J - Q * de / B, Ue = c.value.bottom - J - Q * Y / se, Ne = o.series.map((G, Ae) => {
|
|
1983
|
+
const Xo = p.value.useIndividualScale ? (o.absoluteValues[Ae] + Math.abs(de)) / B : sl(G);
|
|
1957
1984
|
return {
|
|
1958
1985
|
x: q(c.value.left + ve.value.line / 2 + ve.value.line * Ae),
|
|
1959
1986
|
y: q(c.value.bottom - J - Q * Xo),
|
|
1960
1987
|
value: o.absoluteValues[Ae],
|
|
1961
1988
|
comment: o.comments && o.comments.slice(w.value.start, w.value.end)[Ae] || ""
|
|
1962
1989
|
};
|
|
1963
|
-
}), ql = o.absoluteValues.map((
|
|
1990
|
+
}), ql = o.absoluteValues.map((G) => V.min >= 0 ? (G - Math.abs(V.min)) / (V.max - Math.abs(V.min)) : (G + Math.abs(V.min)) / (V.max + Math.abs(V.min))), Ve = o.series.map((G, Ae) => [void 0, null].includes(o.absoluteValues[Ae]) ? {
|
|
1964
1991
|
x: q(c.value.left + ve.value.line / 2 + ve.value.line * Ae),
|
|
1965
1992
|
y: be,
|
|
1966
1993
|
value: o.absoluteValues[Ae],
|
|
@@ -1970,23 +1997,23 @@ const _n = {
|
|
|
1970
1997
|
y: q(c.value.bottom - J - (Q * ql[Ae] || 0)),
|
|
1971
1998
|
value: o.absoluteValues[Ae],
|
|
1972
1999
|
comment: o.comments && o.comments.slice(w.value.start, w.value.end)[Ae] || ""
|
|
1973
|
-
}), Et = t.value.line.cutNullValues ?
|
|
1974
|
-
y:
|
|
1975
|
-
value:
|
|
2000
|
+
}), Et = t.value.line.cutNullValues ? ya(Ne) : pa(Ne.filter((G) => G.value !== null)), oe = t.value.line.cutNullValues ? ya(Ve) : pa(Ve.filter((G) => G.value !== null)), ye = t.value.line.cutNullValues ? ka(Ne) : wa(Ne.filter((G) => G.value !== null)), K = t.value.line.cutNullValues ? ka(Ve) : wa(Ve.filter((G) => G.value !== null)), pe = U.ticks.map((G) => ({
|
|
2001
|
+
y: G >= 0 ? be - Q * (G / B) : be + Q * Math.abs(G) / B,
|
|
2002
|
+
value: G,
|
|
1976
2003
|
prefix: o.prefix || t.value.chart.labels.prefix,
|
|
1977
2004
|
suffix: o.suffix || t.value.chart.labels.suffix,
|
|
1978
2005
|
datapoint: o
|
|
1979
|
-
})), Ht =
|
|
1980
|
-
const Ae = (
|
|
2006
|
+
})), Ht = V.ticks.map((G) => {
|
|
2007
|
+
const Ae = (G - V.min) / (V.max - V.min);
|
|
1981
2008
|
return {
|
|
1982
|
-
y:
|
|
1983
|
-
value:
|
|
2009
|
+
y: G >= 0 ? Ue - Q * Ae : Ue + Q * Ae,
|
|
2010
|
+
value: G,
|
|
1984
2011
|
prefix: o.prefix || t.value.chart.labels.prefix,
|
|
1985
2012
|
suffix: o.suffix || t.value.chart.labels.suffix,
|
|
1986
2013
|
datapoint: o
|
|
1987
2014
|
};
|
|
1988
2015
|
});
|
|
1989
|
-
|
|
2016
|
+
P.value[o.scaleLabel].name = o.name, P.value[o.scaleLabel].groupName = o.scaleLabel, P.value[o.scaleLabel].groupColor = t.value.chart.grid.labels.yAxis.groupColor || o.color, P.value[o.scaleLabel].color = o.color, P.value[o.scaleLabel].scaleYLabels = o.autoScaling ? Ht : pe, P.value[o.scaleLabel].zeroPosition = o.autoScaling ? Ue : be, P.value[o.scaleLabel].individualMax = o.autoScaling ? se : B, P.value[o.scaleLabel].scaleLabel = o.scaleLabel, P.value[o.scaleLabel].id = o.id, P.value[o.scaleLabel].yOffset = J, P.value[o.scaleLabel].individualHeight = Q, P.value[o.scaleLabel].autoScaleYLabels = Ht, P.value[o.scaleLabel].unique = cl.value.filter((G) => G.scaleLabel === o.scaleLabel).length === 1;
|
|
1990
2017
|
const vl = p.value.useIndividualScale ? o.autoScaling ? Ue : be : Ie.value, Zl = Math.max(Math.max(o.autoScaling ? Ue : pe.at(-1) ? pe.at(-1).y : 0, c.value.top), vl);
|
|
1991
2018
|
return {
|
|
1992
2019
|
...o,
|
|
@@ -1994,41 +2021,41 @@ const _n = {
|
|
|
1994
2021
|
autoScaleYLabels: Ht,
|
|
1995
2022
|
individualHeight: Q,
|
|
1996
2023
|
scaleYLabels: o.autoScaling ? Ht : pe,
|
|
1997
|
-
individualScale: o.autoScaling ?
|
|
1998
|
-
individualMax: o.autoScaling ? se :
|
|
2024
|
+
individualScale: o.autoScaling ? V : U,
|
|
2025
|
+
individualMax: o.autoScaling ? se : B,
|
|
1999
2026
|
zeroPosition: o.autoScaling ? Ue : be,
|
|
2000
2027
|
curve: o.autoScaling ? oe : Et,
|
|
2001
2028
|
plots: o.autoScaling ? Ve : Ne,
|
|
2002
|
-
area: o.useArea ? p.value.useIndividualScale ? t.value.line.cutNullValues ?
|
|
2029
|
+
area: o.useArea ? p.value.useIndividualScale ? t.value.line.cutNullValues ? wo(
|
|
2003
2030
|
o.autoScaling ? Ve : Ne,
|
|
2004
2031
|
Zl
|
|
2005
|
-
) :
|
|
2006
|
-
o.autoScaling ? Ve.filter((
|
|
2032
|
+
) : So(
|
|
2033
|
+
o.autoScaling ? Ve.filter((G) => G.value !== null) : Ne.filter((G) => G.value !== null),
|
|
2007
2034
|
Zl
|
|
2008
|
-
) : t.value.line.cutNullValues ?
|
|
2035
|
+
) : t.value.line.cutNullValues ? wo(Ne, Zl) : So(Ne.filter((G) => G.value !== null), Zl) : "",
|
|
2009
2036
|
curveAreas: o.useArea ? an(
|
|
2010
|
-
o.autoScaling ? t.value.line.cutNullValues ? Ve : Ve.filter((
|
|
2037
|
+
o.autoScaling ? t.value.line.cutNullValues ? Ve : Ve.filter((G) => G.value !== null) : t.value.line.cutNullValues ? Ne : Ne.filter((G) => G.value !== null),
|
|
2011
2038
|
Zl,
|
|
2012
2039
|
t.value.line.cutNullValues
|
|
2013
2040
|
) : [],
|
|
2014
2041
|
straight: o.autoScaling ? K : ye,
|
|
2015
|
-
groupId:
|
|
2042
|
+
groupId: P.value[o.scaleLabel].groupId
|
|
2016
2043
|
};
|
|
2017
2044
|
});
|
|
2018
2045
|
}), rt = x(() => {
|
|
2019
|
-
const l = cl.value.filter((o) => ["bar", "line", "plot"].includes(o.type)), s = l.length, e = t.value.chart.grid.labels.yAxis.gap,
|
|
2046
|
+
const l = cl.value.filter((o) => ["bar", "line", "plot"].includes(o.type)), s = l.length, e = t.value.chart.grid.labels.yAxis.gap, u = p.value.isStacked, a = u ? e * (s - 1) : 0, r = c.value.height - a;
|
|
2020
2047
|
return l.filter((o) => o.type === "plot").map((o) => {
|
|
2021
2048
|
Bt(o);
|
|
2022
|
-
const
|
|
2023
|
-
o.absoluteValues.filter((oe) => ![null, void 0].includes(oe)).map((oe) => (oe -
|
|
2024
|
-
const
|
|
2025
|
-
valueMin:
|
|
2026
|
-
valueMax:
|
|
2049
|
+
const F = P.value[o.scaleLabel].min, R = P.value[o.scaleLabel].max;
|
|
2050
|
+
o.absoluteValues.filter((oe) => ![null, void 0].includes(oe)).map((oe) => (oe - F) / (R - F));
|
|
2051
|
+
const O = {
|
|
2052
|
+
valueMin: F,
|
|
2053
|
+
valueMax: R
|
|
2027
2054
|
}, T = {
|
|
2028
2055
|
max: o.scaleMax || Math.max(...o.absoluteValues) || 1,
|
|
2029
2056
|
min: o.scaleMin || Math.min(...o.absoluteValues) > 0 ? 0 : Math.min(...o.absoluteValues)
|
|
2030
|
-
},
|
|
2031
|
-
const K = p.value.useIndividualScale ? (o.absoluteValues[ye] + Math.abs(
|
|
2057
|
+
}, N = o.scaleSteps || t.value.chart.grid.labels.yAxis.commonScaleSteps, ee = 1.0000001, I = hl(T.min, T.max === T.min ? T.max * ee : T.max, N), U = hl(O.valueMin, O.valueMax === O.valueMin ? O.valueMax * ee : O.valueMax, N), V = I.min >= 0 ? 0 : Math.abs(I.min), de = 0, Y = I.max + V, B = U.max + Math.abs(de), se = o.stackIndex, Oe = s - 1 - se, _l = u ? 1 - o.cumulatedStackRatio : 0, Ge = u ? r * _l + e * Oe : 0, J = u ? r * o.stackRatio : c.value.height, Q = c.value.bottom - Ge - J * V / Y, be = c.value.bottom - Ge - J * de / B, Ue = o.series.map((oe, ye) => {
|
|
2058
|
+
const K = p.value.useIndividualScale ? (o.absoluteValues[ye] + Math.abs(V)) / Y : sl(oe);
|
|
2032
2059
|
return {
|
|
2033
2060
|
x: q(c.value.left + ve.value.plot / 2 + ve.value.plot * ye),
|
|
2034
2061
|
y: q(c.value.bottom - Ge - J * K),
|
|
@@ -2041,7 +2068,7 @@ const _n = {
|
|
|
2041
2068
|
value: o.absoluteValues[ye],
|
|
2042
2069
|
comment: o.comments && o.comments.slice(w.value.start, w.value.end)[ye] || ""
|
|
2043
2070
|
})), Ve = I.ticks.map((oe) => ({
|
|
2044
|
-
y: oe >= 0 ? Q - J * (oe /
|
|
2071
|
+
y: oe >= 0 ? Q - J * (oe / Y) : Q + J * Math.abs(oe) / Y,
|
|
2045
2072
|
value: oe,
|
|
2046
2073
|
prefix: o.prefix || t.value.chart.labels.prefix,
|
|
2047
2074
|
suffix: o.suffix || t.value.chart.labels.suffix,
|
|
@@ -2056,17 +2083,17 @@ const _n = {
|
|
|
2056
2083
|
datapoint: o
|
|
2057
2084
|
};
|
|
2058
2085
|
});
|
|
2059
|
-
return
|
|
2086
|
+
return P.value[o.scaleLabel].name = o.name, P.value[o.scaleLabel].groupName = o.scaleLabel, P.value[o.scaleLabel].groupColor = t.value.chart.grid.labels.yAxis.groupColor || o.color, P.value[o.scaleLabel].color = o.color, P.value[o.scaleLabel].scaleYLabels = o.autoScaling ? Et : Ve, P.value[o.scaleLabel].zeroPosition = o.autoScaling ? be : Q, P.value[o.scaleLabel].individualMax = o.autoScaling ? B : Y, P.value[o.scaleLabel].scaleLabel = o.scaleLabel, P.value[o.scaleLabel].id = o.id, P.value[o.scaleLabel].yOffset = Ge, P.value[o.scaleLabel].individualHeight = J, P.value[o.scaleLabel].autoScaleYLabels = Et, P.value[o.scaleLabel].unique = cl.value.filter((oe) => oe.scaleLabel === o.scaleLabel).length === 1, {
|
|
2060
2087
|
...o,
|
|
2061
2088
|
yOffset: Ge,
|
|
2062
2089
|
autoScaleYLabels: Et,
|
|
2063
2090
|
individualHeight: J,
|
|
2064
2091
|
scaleYLabels: o.autoScaling ? Et : Ve,
|
|
2065
2092
|
individualScale: o.autoScaling ? U : I,
|
|
2066
|
-
individualMax: o.autoScaling ?
|
|
2093
|
+
individualMax: o.autoScaling ? B : Y,
|
|
2067
2094
|
zeroPosition: o.autoScaling ? be : Q,
|
|
2068
2095
|
plots: o.autoScaling ? ql : Ue,
|
|
2069
|
-
groupId:
|
|
2096
|
+
groupId: P.value[o.scaleLabel].groupId
|
|
2070
2097
|
};
|
|
2071
2098
|
});
|
|
2072
2099
|
}), Gl = x(() => {
|
|
@@ -2105,11 +2132,11 @@ const _n = {
|
|
|
2105
2132
|
id: r.id,
|
|
2106
2133
|
yOffset: r.yOffset || 0,
|
|
2107
2134
|
individualHeight: r.individualHeight || c.value.height
|
|
2108
|
-
})),
|
|
2109
|
-
return
|
|
2110
|
-
let
|
|
2111
|
-
|
|
2112
|
-
const
|
|
2135
|
+
})), u = p.value.useIndividualScale && !p.value.isStacked ? Object.values(P.value) : [...l, ...s, ...e], a = u.flatMap((r) => r).length;
|
|
2136
|
+
return u.flatMap((r, o) => {
|
|
2137
|
+
let F = 0;
|
|
2138
|
+
F = p.value.isStacked ? c.value.left : c.value.left / a * (o + 1);
|
|
2139
|
+
const R = p.value.useIndividualScale && !p.value.isStacked ? r.unique ? r.name : r.groupName : r.name;
|
|
2113
2140
|
return {
|
|
2114
2141
|
unique: r.unique,
|
|
2115
2142
|
id: r.id,
|
|
@@ -2117,45 +2144,45 @@ const _n = {
|
|
|
2117
2144
|
scaleLabel: r.scaleLabel,
|
|
2118
2145
|
name: ze(
|
|
2119
2146
|
t.value.chart.grid.labels.yAxis.serieNameFormatter,
|
|
2120
|
-
|
|
2121
|
-
|
|
2147
|
+
R,
|
|
2148
|
+
R,
|
|
2122
2149
|
r
|
|
2123
2150
|
),
|
|
2124
2151
|
color: p.value.useIndividualScale && !p.value.isStacked ? r.unique ? r.color : r.groupColor : r.color,
|
|
2125
2152
|
scale: r.scale,
|
|
2126
2153
|
yOffset: r.yOffset,
|
|
2127
2154
|
individualHeight: r.individualHeight,
|
|
2128
|
-
x:
|
|
2129
|
-
yLabels: r.scaleYLabels || r.scale.ticks.map((
|
|
2130
|
-
y:
|
|
2131
|
-
value:
|
|
2155
|
+
x: F,
|
|
2156
|
+
yLabels: r.scaleYLabels || r.scale.ticks.map((O) => ({
|
|
2157
|
+
y: O >= 0 ? r.zero - r.individualHeight * (O / r.max) : r.zero + r.individualHeight * Math.abs(O) / r.max,
|
|
2158
|
+
value: O
|
|
2132
2159
|
}))
|
|
2133
2160
|
};
|
|
2134
2161
|
});
|
|
2135
|
-
}),
|
|
2162
|
+
}), Qa = x(() => {
|
|
2136
2163
|
const l = t.value.line.interLine || {}, s = l.pairs || [], e = l.colors || [];
|
|
2137
2164
|
if (!s.length) return [];
|
|
2138
|
-
const
|
|
2165
|
+
const u = [];
|
|
2139
2166
|
return s.forEach((a, r) => {
|
|
2140
|
-
const [o,
|
|
2141
|
-
if (!o || !
|
|
2142
|
-
const
|
|
2143
|
-
if (!
|
|
2144
|
-
const T = e?.[r]?.[0] ??
|
|
2167
|
+
const [o, F] = Array.isArray(a) ? a : [a.a, a.b];
|
|
2168
|
+
if (!o || !F) return;
|
|
2169
|
+
const R = Re.value.find((I) => I.name === o), O = Re.value.find((I) => I.name === F);
|
|
2170
|
+
if (!R || !O || R.type !== "line" || O.type !== "line") return;
|
|
2171
|
+
const T = e?.[r]?.[0] ?? R.color, N = e?.[r]?.[1] ?? O.color;
|
|
2145
2172
|
on({
|
|
2146
|
-
lineA:
|
|
2147
|
-
lineB:
|
|
2148
|
-
smoothA: !!
|
|
2149
|
-
smoothB: !!
|
|
2173
|
+
lineA: R.plots,
|
|
2174
|
+
lineB: O.plots,
|
|
2175
|
+
smoothA: !!R.smooth,
|
|
2176
|
+
smoothB: !!O.smooth,
|
|
2150
2177
|
colorLineA: T,
|
|
2151
|
-
colorLineB:
|
|
2178
|
+
colorLineB: N,
|
|
2152
2179
|
sampleStepPx: 2,
|
|
2153
2180
|
cutNullValues: t.value.line.cutNullValues
|
|
2154
2181
|
}).forEach((I, U) => {
|
|
2155
|
-
|
|
2182
|
+
u.push({ ...I, key: `inter_${o}_${F}_${r}_${U}` });
|
|
2156
2183
|
});
|
|
2157
|
-
}),
|
|
2158
|
-
}),
|
|
2184
|
+
}), u;
|
|
2185
|
+
}), ja = x(() => ({
|
|
2159
2186
|
datapoint: zt.value,
|
|
2160
2187
|
seriesIndex: _.value,
|
|
2161
2188
|
series: et.value,
|
|
@@ -2169,23 +2196,23 @@ const _n = {
|
|
|
2169
2196
|
locale: yn[l.locale] || { months: [], shortMonths: [], days: [], shortDays: [] },
|
|
2170
2197
|
januaryAsYear: l.januaryAsYear
|
|
2171
2198
|
});
|
|
2172
|
-
return (e,
|
|
2199
|
+
return (e, u) => {
|
|
2173
2200
|
const r = t.value.chart.grid.labels.xAxisLabels.values?.[e];
|
|
2174
|
-
return r == null ? "" : s.formatDate(new Date(r),
|
|
2201
|
+
return r == null ? "" : s.formatDate(new Date(r), u);
|
|
2175
2202
|
};
|
|
2176
2203
|
}), Aa = x(() => (t.value.chart.grid.labels.xAxisLabels.values || []).map((s, e) => ({
|
|
2177
2204
|
text: $l.value(e, t.value.chart.zoom.timeFormat),
|
|
2178
2205
|
absoluteIndex: e
|
|
2179
|
-
}))),
|
|
2206
|
+
}))), va = y(!1);
|
|
2180
2207
|
x(() => {
|
|
2181
2208
|
let l = "", s = "";
|
|
2182
2209
|
if (t.value.chart.zoom.preview.enable)
|
|
2183
2210
|
return { left: l, right: s };
|
|
2184
|
-
|
|
2211
|
+
va.value = !1;
|
|
2185
2212
|
const e = t.value.chart.zoom.customFormat;
|
|
2186
|
-
if (
|
|
2213
|
+
if (ba(e))
|
|
2187
2214
|
try {
|
|
2188
|
-
const
|
|
2215
|
+
const u = e({
|
|
2189
2216
|
absoluteIndex: w.value.start,
|
|
2190
2217
|
seriesIndex: w.value.start,
|
|
2191
2218
|
datapoint: zt.value
|
|
@@ -2194,21 +2221,21 @@ const _n = {
|
|
|
2194
2221
|
seriesIndex: w.value.end - 1,
|
|
2195
2222
|
datapoint: zt.value
|
|
2196
2223
|
});
|
|
2197
|
-
typeof
|
|
2224
|
+
typeof u == "string" && typeof a == "string" && (l = u, s = a, va.value = !0);
|
|
2198
2225
|
} catch {
|
|
2199
|
-
console.warn("Custom format cannot be applied on zoom labels."),
|
|
2226
|
+
console.warn("Custom format cannot be applied on zoom labels."), va.value = !1;
|
|
2200
2227
|
}
|
|
2201
|
-
if (!
|
|
2228
|
+
if (!va.value) {
|
|
2202
2229
|
l = t.value.chart.grid.labels.xAxisLabels.datetimeFormatter.enable && !t.value.chart.zoom.useDefaultFormat ? Aa.value[w.value.start]?.text || "" : v.value[0]?.text || "";
|
|
2203
|
-
const
|
|
2204
|
-
s = t.value.chart.grid.labels.xAxisLabels.datetimeFormatter.enable && !t.value.chart.zoom.useDefaultFormat ? Aa.value[
|
|
2230
|
+
const u = Math.max(w.value.start, w.value.end - 1);
|
|
2231
|
+
s = t.value.chart.grid.labels.xAxisLabels.datetimeFormatter.enable && !t.value.chart.zoom.useDefaultFormat ? Aa.value[u]?.text || "" : v.value.at(-1)?.text || "";
|
|
2205
2232
|
}
|
|
2206
2233
|
return { left: l, right: s };
|
|
2207
2234
|
});
|
|
2208
2235
|
const Bo = x(() => {
|
|
2209
|
-
let l = "", s = zt.value.map((a) => a.value).filter((a) =>
|
|
2210
|
-
const e = v.value[_.value],
|
|
2211
|
-
if (
|
|
2236
|
+
let l = "", s = zt.value.map((a) => a.value).filter((a) => fa(a) && a !== null).reduce((a, r) => Math.abs(a) + Math.abs(r), 0);
|
|
2237
|
+
const e = v.value[_.value], u = t.value.chart.tooltip.customFormat;
|
|
2238
|
+
if (ba(u) && nn(() => u({
|
|
2212
2239
|
absoluteIndex: _.value + w.value.start,
|
|
2213
2240
|
seriesIndex: _.value,
|
|
2214
2241
|
datapoint: zt.value,
|
|
@@ -2218,7 +2245,7 @@ const _n = {
|
|
|
2218
2245
|
plots: rt.value,
|
|
2219
2246
|
config: t.value
|
|
2220
2247
|
})))
|
|
2221
|
-
return
|
|
2248
|
+
return u({
|
|
2222
2249
|
absoluteIndex: _.value + w.value.start,
|
|
2223
2250
|
seriesIndex: _.value,
|
|
2224
2251
|
datapoint: zt.value,
|
|
@@ -2233,14 +2260,14 @@ const _n = {
|
|
|
2233
2260
|
l += `<div style="padding-bottom: 6px; margin-bottom: 4px; border-bottom: 1px solid ${t.value.chart.tooltip.borderColor}; width:100%">${t.value.chart.grid.labels.xAxisLabels.datetimeFormatter.enable && !t.value.chart.tooltip.useDefaultTimeFormat ? a : e.text}</div>`;
|
|
2234
2261
|
}
|
|
2235
2262
|
return zt.value.forEach((a) => {
|
|
2236
|
-
if (
|
|
2263
|
+
if (fa(a.value)) {
|
|
2237
2264
|
let r = "", o = "";
|
|
2238
2265
|
switch (Jt.value[a.type]) {
|
|
2239
2266
|
case "bar":
|
|
2240
2267
|
r = `<svg viewBox="0 0 40 40" height="14" width="14">${xl.pattern ? `<rect x="0" y="0" rx="1" stroke="none" height="40" width="40" fill="${a.color}" />` : ""}<rect x="0" y="0" rx="1" stroke="none" height="40" width="40" fill="${xl.pattern ? `url(#pattern_${Z.value}_${a.slotAbsoluteIndex}` : a.color}" /></svg>`;
|
|
2241
2268
|
break;
|
|
2242
2269
|
case "line":
|
|
2243
|
-
!a.shape || !["star", "triangle", "square", "diamond", "pentagon", "hexagon"].includes(a.shape) ? o = `<circle cx="10" cy="8" r="4" stroke="${t.value.chart.tooltip.backgroundColor}" stroke-width="0.5" fill="${a.color}" />` : a.shape === "triangle" ? o = `<path d="${wt({ plot: { x: 10, y: 8 }, radius: 4, sides: 3, rotation: 0.52 }).path}" fill="${a.color}" stroke="${t.value.chart.tooltip.backgroundColor}" stroke-width="0.5" />` : a.shape === "square" ? o = `<path d="${wt({ plot: { x: 10, y: 8 }, radius: 4, sides: 4, rotation: 0.8 }).path}" fill="${a.color}" stroke="${t.value.chart.tooltip.backgroundColor}" stroke-width="0.5" />` : a.shape === "diamond" ? o = `<path d="${wt({ plot: { x: 10, y: 8 }, radius: 4, sides: 4, rotation: 0 }).path}" fill="${a.color}" stroke="${t.value.chart.tooltip.backgroundColor}" stroke-width="0.5" />` : a.shape === "pentagon" ? o = `<path d="${wt({ plot: { x: 10, y: 8 }, radius: 4, sides: 5, rotation: 0.95 }).path}" fill="${a.color}" stroke="${t.value.chart.tooltip.backgroundColor}" stroke-width="0.5" />` : a.shape === "hexagon" ? o = `<path d="${wt({ plot: { x: 10, y: 8 }, radius: 4, sides: 6, rotation: 0 }).path}" fill="${a.color}" stroke="${t.value.chart.tooltip.backgroundColor}" stroke-width="0.5" />` : a.shape === "star" && (o = `<polygon stroke="${t.value.chart.tooltip.backgroundColor}" stroke-width="0.5" fill="${a.color}" points="${
|
|
2270
|
+
!a.shape || !["star", "triangle", "square", "diamond", "pentagon", "hexagon"].includes(a.shape) ? o = `<circle cx="10" cy="8" r="4" stroke="${t.value.chart.tooltip.backgroundColor}" stroke-width="0.5" fill="${a.color}" />` : a.shape === "triangle" ? o = `<path d="${wt({ plot: { x: 10, y: 8 }, radius: 4, sides: 3, rotation: 0.52 }).path}" fill="${a.color}" stroke="${t.value.chart.tooltip.backgroundColor}" stroke-width="0.5" />` : a.shape === "square" ? o = `<path d="${wt({ plot: { x: 10, y: 8 }, radius: 4, sides: 4, rotation: 0.8 }).path}" fill="${a.color}" stroke="${t.value.chart.tooltip.backgroundColor}" stroke-width="0.5" />` : a.shape === "diamond" ? o = `<path d="${wt({ plot: { x: 10, y: 8 }, radius: 4, sides: 4, rotation: 0 }).path}" fill="${a.color}" stroke="${t.value.chart.tooltip.backgroundColor}" stroke-width="0.5" />` : a.shape === "pentagon" ? o = `<path d="${wt({ plot: { x: 10, y: 8 }, radius: 4, sides: 5, rotation: 0.95 }).path}" fill="${a.color}" stroke="${t.value.chart.tooltip.backgroundColor}" stroke-width="0.5" />` : a.shape === "hexagon" ? o = `<path d="${wt({ plot: { x: 10, y: 8 }, radius: 4, sides: 6, rotation: 0 }).path}" fill="${a.color}" stroke="${t.value.chart.tooltip.backgroundColor}" stroke-width="0.5" />` : a.shape === "star" && (o = `<polygon stroke="${t.value.chart.tooltip.backgroundColor}" stroke-width="0.5" fill="${a.color}" points="${$o({ plot: { x: 10, y: 8 }, radius: 4 })}" />`), r = `<svg viewBox="0 0 20 12" height="14" width="20"><rect rx="1.5" x="0" y="6.5" stroke="${t.value.chart.tooltip.backgroundColor}" stroke-width="0.5" height="3" width="20" fill="${a.color}" />${o}</svg>`;
|
|
2244
2271
|
break;
|
|
2245
2272
|
case "plot":
|
|
2246
2273
|
if (!a.shape || !["star", "triangle", "square", "diamond", "pentagon", "hexagon"].includes(a.shape)) {
|
|
@@ -2248,7 +2275,7 @@ const _n = {
|
|
|
2248
2275
|
break;
|
|
2249
2276
|
}
|
|
2250
2277
|
if (a.shape === "star") {
|
|
2251
|
-
r = `<svg viewBox="0 0 12 12" height="14" width="14"><polygon stroke="${t.value.chart.tooltip.backgroundColor}" stroke-width="1" fill="${a.color}" points="${
|
|
2278
|
+
r = `<svg viewBox="0 0 12 12" height="14" width="14"><polygon stroke="${t.value.chart.tooltip.backgroundColor}" stroke-width="1" fill="${a.color}" points="${$o({ plot: { x: 6, y: 6 }, radius: 5 })}" /></svg>`;
|
|
2252
2279
|
break;
|
|
2253
2280
|
}
|
|
2254
2281
|
if (a.shape === "triangle") {
|
|
@@ -2289,44 +2316,44 @@ const _n = {
|
|
|
2289
2316
|
})})` : ""}</div>`, t.value.chart.comments.showInTooltip && a.comments.length && a.comments.slice(w.value.start, w.value.end)[_.value] && (l += `<div class="vue-data-ui-tooltip-comment" style="background:${a.color}20; padding: 6px; margin-bottom: 6px; border-left: 1px solid ${a.color}">${a.comments.slice(w.value.start, w.value.end)[_.value]}</div>`);
|
|
2290
2317
|
}
|
|
2291
2318
|
}), `<div style="border-radius:4px;padding:12px;font-variant-numeric: tabular-nums;color:${t.value.chart.tooltip.color}">${l}</div>`;
|
|
2292
|
-
}),
|
|
2319
|
+
}), eo = x(() => {
|
|
2293
2320
|
if (je.value.length === 0) return { head: [], body: [], config: {}, columnNames: [] };
|
|
2294
2321
|
const l = Fe.value.map((e) => ({
|
|
2295
2322
|
label: e.name,
|
|
2296
2323
|
color: e.color,
|
|
2297
2324
|
type: e.type
|
|
2298
2325
|
})), s = [];
|
|
2299
|
-
return v.value.forEach((e,
|
|
2300
|
-
const a = t.value.table.useDefaultTimeFormat ? [e.text] : [$l.value(
|
|
2326
|
+
return v.value.forEach((e, u) => {
|
|
2327
|
+
const a = t.value.table.useDefaultTimeFormat ? [e.text] : [$l.value(u + w.value.start, t.value.table.timeFormat)];
|
|
2301
2328
|
Fe.value.forEach((r) => {
|
|
2302
|
-
a.push(Ye(r.absoluteValues[
|
|
2329
|
+
a.push(Ye(r.absoluteValues[u]) ? Number(r.absoluteValues[u].toFixed(t.value.table.rounding)) : "");
|
|
2303
2330
|
}), s.push(a);
|
|
2304
2331
|
}), { head: l, body: s };
|
|
2305
|
-
}),
|
|
2332
|
+
}), da = x(() => {
|
|
2306
2333
|
const l = t.value.table.showSum;
|
|
2307
2334
|
let s = [""].concat(Fe.value.map((r) => r.name));
|
|
2308
2335
|
l && (s = s.concat(' <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>'));
|
|
2309
2336
|
let e = [];
|
|
2310
|
-
for (let r = 0; r <
|
|
2311
|
-
const o = Fe.value.map((
|
|
2337
|
+
for (let r = 0; r < S.value; r += 1) {
|
|
2338
|
+
const o = Fe.value.map((F) => F.absoluteValues[r] ?? 0).reduce((F, R) => F + R, 0);
|
|
2312
2339
|
e.push(
|
|
2313
2340
|
[
|
|
2314
2341
|
t.value.table.useDefaultTimeFormat ? v.value[r].text ?? "-" : $l.value(r + w.value.start, t.value.table.timeFormat)
|
|
2315
2342
|
].concat(Fe.value.map(
|
|
2316
|
-
(
|
|
2317
|
-
|
|
2318
|
-
|
|
2343
|
+
(F) => ze(
|
|
2344
|
+
F.type === "line" ? t.value.line.labels.formatter : F.type === "bar" ? t.value.bar.labels.formatter : t.value.plot.labels.formatter,
|
|
2345
|
+
F.absoluteValues[r] ?? 0,
|
|
2319
2346
|
lt({
|
|
2320
|
-
p:
|
|
2321
|
-
v:
|
|
2322
|
-
s:
|
|
2347
|
+
p: F.prefix || t.value.chart.labels.prefix,
|
|
2348
|
+
v: F.absoluteValues[r] ?? 0,
|
|
2349
|
+
s: F.suffix || t.value.chart.labels.suffix,
|
|
2323
2350
|
r: t.value.table.rounding
|
|
2324
2351
|
})
|
|
2325
2352
|
)
|
|
2326
2353
|
)).concat(l ? (o ?? 0).toFixed(t.value.table.rounding) : [])
|
|
2327
2354
|
);
|
|
2328
2355
|
}
|
|
2329
|
-
const
|
|
2356
|
+
const u = {
|
|
2330
2357
|
th: {
|
|
2331
2358
|
backgroundColor: t.value.table.th.backgroundColor,
|
|
2332
2359
|
color: t.value.table.th.color,
|
|
@@ -2339,41 +2366,41 @@ const _n = {
|
|
|
2339
2366
|
},
|
|
2340
2367
|
breakpoint: t.value.table.responsiveBreakpoint
|
|
2341
2368
|
}, a = [t.value.table.columnNames.period].concat(Fe.value.map((r) => r.name)).concat(t.value.table.columnNames.total);
|
|
2342
|
-
return { head: s, body: e, config:
|
|
2369
|
+
return { head: s, body: e, config: u, colNames: a };
|
|
2343
2370
|
});
|
|
2344
2371
|
function za(l = null) {
|
|
2345
|
-
const s = [[t.value.chart.title.text], [t.value.chart.title.subtitle.text], [""]], e = ["", ...
|
|
2372
|
+
const s = [[t.value.chart.title.text], [t.value.chart.title.subtitle.text], [""]], e = ["", ...eo.value.head.map((o) => o.label)], u = eo.value.body, a = s.concat([e]).concat(u), r = vn(a);
|
|
2346
2373
|
l ? l(r) : dn({ csvContent: r, title: t.value.chart.title.text || "vue-ui-xy" });
|
|
2347
2374
|
}
|
|
2348
|
-
function
|
|
2375
|
+
function to(l, s = null) {
|
|
2349
2376
|
bl.value = l;
|
|
2350
|
-
const e = Fe.value.map((
|
|
2351
|
-
name:
|
|
2352
|
-
value: [null, void 0, NaN].includes(
|
|
2353
|
-
color:
|
|
2354
|
-
type:
|
|
2377
|
+
const e = Fe.value.map((u) => ({
|
|
2378
|
+
name: u.name,
|
|
2379
|
+
value: [null, void 0, NaN].includes(u.absoluteValues[s]) ? null : u.absoluteValues[s],
|
|
2380
|
+
color: u.color,
|
|
2381
|
+
type: u.type
|
|
2355
2382
|
}));
|
|
2356
2383
|
l ? (_.value = s, t.value.events.datapointEnter && t.value.events.datapointEnter({ datapoint: e, seriesIndex: s + w.value.start })) : (_.value = null, t.value.events.datapointLeave && t.value.events.datapointLeave({ datapoint: e, seriesIndex: s + w.value.start }));
|
|
2357
2384
|
}
|
|
2358
|
-
function
|
|
2385
|
+
function lo() {
|
|
2359
2386
|
p.value.showTable = !p.value.showTable;
|
|
2360
2387
|
}
|
|
2361
|
-
function
|
|
2388
|
+
function ao() {
|
|
2362
2389
|
p.value.dataLabels.show = !p.value.dataLabels.show;
|
|
2363
2390
|
}
|
|
2364
|
-
function
|
|
2391
|
+
function oo() {
|
|
2365
2392
|
p.value.showTooltip = !p.value.showTooltip;
|
|
2366
2393
|
}
|
|
2367
|
-
function
|
|
2394
|
+
function no(l) {
|
|
2368
2395
|
Pe.value = l, Pl.value += 1;
|
|
2369
2396
|
}
|
|
2370
|
-
function
|
|
2397
|
+
function io() {
|
|
2371
2398
|
if (!t.value.responsiveProportionalSizing) {
|
|
2372
2399
|
C.value.dataLabels = t.value.chart.grid.labels.fontSize, C.value.yAxis = t.value.chart.grid.labels.axis.fontSize, C.value.xAxis = t.value.chart.grid.labels.xAxisLabels.fontSize, C.value.plotLabels = t.value.chart.labels.fontSize, De.value.plot = t.value.plot.radius, De.value.line = t.value.line.radius;
|
|
2373
2400
|
return;
|
|
2374
2401
|
}
|
|
2375
2402
|
C.value.dataLabels = Ml({
|
|
2376
|
-
relator:
|
|
2403
|
+
relator: W.value,
|
|
2377
2404
|
adjuster: 400,
|
|
2378
2405
|
source: t.value.chart.grid.labels.fontSize,
|
|
2379
2406
|
threshold: 10,
|
|
@@ -2411,7 +2438,7 @@ const _n = {
|
|
|
2411
2438
|
});
|
|
2412
2439
|
}
|
|
2413
2440
|
function Ta() {
|
|
2414
|
-
|
|
2441
|
+
_o(d.dataset) ? (Na({
|
|
2415
2442
|
componentName: "VueUiXy",
|
|
2416
2443
|
type: "dataset",
|
|
2417
2444
|
debug: Mt.value
|
|
@@ -2424,47 +2451,47 @@ const _n = {
|
|
|
2424
2451
|
debug: Mt.value
|
|
2425
2452
|
}), bt.value = !0);
|
|
2426
2453
|
}), Mt.value && d.dataset.forEach((s) => {
|
|
2427
|
-
s.series.forEach((e,
|
|
2428
|
-
|
|
2429
|
-
-----> The serie '${s.name}' contains the value '${e}' at index ${
|
|
2454
|
+
s.series.forEach((e, u) => {
|
|
2455
|
+
fa(e) || console.warn(`VueUiXy has detected an unsafe value in your dataset:
|
|
2456
|
+
-----> The serie '${s.name}' contains the value '${e}' at index ${u}.
|
|
2430
2457
|
'${e}' was converted to null to allow the chart to display.`);
|
|
2431
2458
|
});
|
|
2432
|
-
}),
|
|
2459
|
+
}), _o(d.dataset) || (bt.value = t.value.loading), ea.value = t.value.chart.userOptions.showOnChartHover, Ol.value = t.value.chart.userOptions.keepStateOnChartLeave, yl.value = !t.value.chart.userOptions.showOnChartHover, tl();
|
|
2433
2460
|
const l = 12;
|
|
2434
2461
|
if (t.value.responsive) {
|
|
2435
2462
|
const e = Be.value.parentNode;
|
|
2436
2463
|
mt.value && (mt.value.unobserve(ne.value), mt.value.disconnect());
|
|
2437
|
-
const { height:
|
|
2464
|
+
const { height: u, width: a } = e.getBoundingClientRect();
|
|
2438
2465
|
let r = null, o = 0;
|
|
2439
2466
|
t.value.chart.title.show && Te.value && (r = Te.value, o = r.getBoundingClientRect().height);
|
|
2440
|
-
let
|
|
2441
|
-
t.value.chart.zoom.show && Qe.value > 6 && el.value && Ke.value && Ke.value.$el && (
|
|
2442
|
-
let
|
|
2443
|
-
t.value.chart.legend.show &&
|
|
2444
|
-
let
|
|
2445
|
-
ft.value && (
|
|
2467
|
+
let F = null, R = 0;
|
|
2468
|
+
t.value.chart.zoom.show && Qe.value > 6 && el.value && Ke.value && Ke.value.$el && (F = Ke.value.$el, R = F.getBoundingClientRect().height);
|
|
2469
|
+
let O = null, T = 0;
|
|
2470
|
+
t.value.chart.legend.show && Ce.value && (O = Ce.value, T = O.getBoundingClientRect().height);
|
|
2471
|
+
let N = 0;
|
|
2472
|
+
ft.value && (N = ft.value.getBoundingClientRect().height);
|
|
2446
2473
|
let ee = 0;
|
|
2447
|
-
_t.value && (ee = _t.value.getBoundingClientRect().height),
|
|
2474
|
+
_t.value && (ee = _t.value.getBoundingClientRect().height), W.value = u - o - T - R - N - ee - l, le.value = a, at.value = `0 0 ${le.value < 0 ? 10 : le.value} ${W.value < 0 ? 10 : W.value}`, io();
|
|
2448
2475
|
const I = new ResizeObserver((U) => {
|
|
2449
|
-
for (const
|
|
2450
|
-
t.value.chart.title.show && Te.value ? o = Te.value.getBoundingClientRect().height : o = 0, Ke.value && Ke.value.$el ?
|
|
2451
|
-
|
|
2476
|
+
for (const V of U)
|
|
2477
|
+
t.value.chart.title.show && Te.value ? o = Te.value.getBoundingClientRect().height : o = 0, Ke.value && Ke.value.$el ? R = Ke.value.$el.getBoundingClientRect().height : R = 0, Ce.value ? T = Ce.value.getBoundingClientRect().height : T = 0, ft.value ? N = ft.value.getBoundingClientRect().height : N = 0, _t.value ? ee = _t.value.getBoundingClientRect().height : ee = 0, requestAnimationFrame(() => {
|
|
2478
|
+
W.value = V.contentRect.height - o - T - R - N - ee - l, le.value = V.contentBoxSize[0].inlineSize, at.value = `0 0 ${le.value < 0 ? 10 : le.value} ${W.value < 0 ? 10 : W.value}`, io();
|
|
2452
2479
|
});
|
|
2453
2480
|
});
|
|
2454
2481
|
mt.value = I, ne.value = e, I.observe(e);
|
|
2455
2482
|
} else
|
|
2456
|
-
|
|
2483
|
+
W.value = t.value.chart.height, le.value = t.value.chart.width, C.value.dataLabels = t.value.chart.grid.labels.fontSize, C.value.yAxis = t.value.chart.grid.labels.axis.fontSize, C.value.xAxis = t.value.chart.grid.labels.xAxisLabels.fontSize, C.value.plotLabels = t.value.chart.labels.fontSize, De.value.plot = t.value.plot.radius, De.value.line = t.value.line.radius, at.value = `0 0 ${le.value} ${W.value}`;
|
|
2457
2484
|
}
|
|
2458
|
-
function
|
|
2485
|
+
function uo(l) {
|
|
2459
2486
|
jl.value = {
|
|
2460
2487
|
x: l.clientX,
|
|
2461
2488
|
y: l.clientY
|
|
2462
2489
|
};
|
|
2463
2490
|
}
|
|
2464
2491
|
Ll(() => {
|
|
2465
|
-
Ta(),
|
|
2492
|
+
Ta(), ul(), document.addEventListener("mousemove", uo, { passive: !0 }), document.addEventListener("scroll", Wl, { passive: !0 });
|
|
2466
2493
|
}), gl(() => {
|
|
2467
|
-
document.removeEventListener("scroll", Wl, { passive: !0 }), document.removeEventListener("mousemove",
|
|
2494
|
+
document.removeEventListener("scroll", Wl, { passive: !0 }), document.removeEventListener("mousemove", uo, { passive: !0 }), mt.value && (mt.value.unobserve(ne.value), mt.value.disconnect(), mt.value = null);
|
|
2468
2495
|
}), pn({
|
|
2469
2496
|
timeLabelsEls: Se,
|
|
2470
2497
|
timeLabels: v,
|
|
@@ -2473,49 +2500,49 @@ const _n = {
|
|
|
2473
2500
|
rotationPath: ["chart", "grid", "labels", "xAxisLabels", "rotation"],
|
|
2474
2501
|
autoRotatePath: ["chart", "grid", "labels", "xAxisLabels", "autoRotate", "enable"],
|
|
2475
2502
|
isAutoSize: pt,
|
|
2476
|
-
height:
|
|
2503
|
+
height: W,
|
|
2477
2504
|
width: le,
|
|
2478
2505
|
rotation: t.value.chart.grid.labels.xAxisLabels.autoRotate.angle
|
|
2479
2506
|
});
|
|
2480
|
-
const
|
|
2481
|
-
() => _.value ??
|
|
2507
|
+
const ha = y(!1), so = y(null), ro = y(200), Eo = x(
|
|
2508
|
+
() => _.value ?? X.value ?? 0
|
|
2482
2509
|
);
|
|
2483
2510
|
function Ho() {
|
|
2484
|
-
const l = Math.ceil(
|
|
2511
|
+
const l = Math.ceil(ro.value || 200);
|
|
2485
2512
|
return Math.min(Math.max(l, 1), 200);
|
|
2486
2513
|
}
|
|
2487
2514
|
function Do() {
|
|
2488
|
-
const l = Ho(), s = 200, e = Math.max(1,
|
|
2489
|
-
return q(
|
|
2515
|
+
const l = Ho(), s = 200, e = Math.max(1, S.value), u = c.value.width / e, r = c.value.left + Eo.value * u + u / 2 - l / 2 - (s - l) / 2, o = c.value.left - (s - l) / 2, F = c.value.right - (s + l) / 2, R = Math.max(o, Math.min(r, F));
|
|
2516
|
+
return q(R);
|
|
2490
2517
|
}
|
|
2491
2518
|
Ll(() => {
|
|
2492
2519
|
let l = null, s = null;
|
|
2493
2520
|
const e = (r) => {
|
|
2494
2521
|
cancelAnimationFrame(s), s = requestAnimationFrame(() => {
|
|
2495
|
-
|
|
2522
|
+
ro.value = Math.min(Math.max(Math.ceil(r || 0), 1), 200);
|
|
2496
2523
|
});
|
|
2497
|
-
},
|
|
2498
|
-
let o = r.find((
|
|
2524
|
+
}, u = new ResizeObserver((r) => {
|
|
2525
|
+
let o = r.find((F) => F.target === l) || r[0];
|
|
2499
2526
|
o && e(o.contentRect.width || 200);
|
|
2500
|
-
}), a =
|
|
2501
|
-
const o =
|
|
2502
|
-
l && l !== o && (
|
|
2527
|
+
}), a = go((r) => {
|
|
2528
|
+
const o = so.value;
|
|
2529
|
+
l && l !== o && (u.unobserve(l), l = null), o && o !== l && (Cl(() => {
|
|
2503
2530
|
o.offsetParent !== null && e(o.offsetWidth || o.getBoundingClientRect().width || 200);
|
|
2504
|
-
}),
|
|
2505
|
-
l && (
|
|
2531
|
+
}), u.observe(o), l = o), r(() => {
|
|
2532
|
+
l && (u.unobserve(l), l = null);
|
|
2506
2533
|
});
|
|
2507
2534
|
});
|
|
2508
2535
|
gl(() => {
|
|
2509
2536
|
try {
|
|
2510
|
-
l &&
|
|
2537
|
+
l && u.unobserve(l), u.disconnect(), a();
|
|
2511
2538
|
} catch {
|
|
2512
2539
|
}
|
|
2513
2540
|
});
|
|
2514
2541
|
});
|
|
2515
2542
|
const Wo = x(() => {
|
|
2516
|
-
if ([null, void 0].includes(_.value) && [null, void 0].includes(
|
|
2517
|
-
const l = (_.value != null ? _.value : 0) || (
|
|
2518
|
-
if (
|
|
2543
|
+
if ([null, void 0].includes(_.value) && [null, void 0].includes(X.value)) return "";
|
|
2544
|
+
const l = (_.value != null ? _.value : 0) || (X.value != null ? X.value : 0), s = t.value.chart.timeTag.customFormat;
|
|
2545
|
+
if (ha.value = !1, ba(s))
|
|
2519
2546
|
try {
|
|
2520
2547
|
const e = s({
|
|
2521
2548
|
absoluteIndex: l + w.value.start,
|
|
@@ -2527,15 +2554,15 @@ const _n = {
|
|
|
2527
2554
|
config: t.value
|
|
2528
2555
|
});
|
|
2529
2556
|
if (typeof e == "string")
|
|
2530
|
-
return
|
|
2557
|
+
return ha.value = !0, e;
|
|
2531
2558
|
} catch {
|
|
2532
|
-
console.warn("Custom format cannot be applied on timeTag."),
|
|
2559
|
+
console.warn("Custom format cannot be applied on timeTag."), ha.value = !1;
|
|
2533
2560
|
}
|
|
2534
|
-
if (!
|
|
2561
|
+
if (!ha.value)
|
|
2535
2562
|
return [null, void 0].includes(v.value[l]) ? "" : t.value.chart.grid.labels.xAxisLabels.datetimeFormatter.enable && !t.value.chart.timeTag.useDefaultFormat ? $l.value(l + w.value.start, t.value.chart.timeTag.timeFormat) : v.value[l].text;
|
|
2536
2563
|
});
|
|
2537
2564
|
ht(() => d.dataset, (l) => {
|
|
2538
|
-
Array.isArray(l) && l.length > 0 && (bt.value = !1), Qe.value = Math.max(
|
|
2565
|
+
Array.isArray(l) && l.length > 0 && (bt.value = !1), Qe.value = Math.max(..._e.value.map((s) => yt(s.series).length)), w.value = {
|
|
2539
2566
|
start: 0,
|
|
2540
2567
|
end: Qe.value
|
|
2541
2568
|
}, Ql.value += 1, gt.value += 1, Lt();
|
|
@@ -2543,7 +2570,7 @@ const _n = {
|
|
|
2543
2570
|
xe.value || (t.value = Bl()), Ta(), Rl.value += 1, Fl.value += 1, tl(), Lt();
|
|
2544
2571
|
}, { deep: !0 });
|
|
2545
2572
|
const Ia = y(!1);
|
|
2546
|
-
function
|
|
2573
|
+
function co() {
|
|
2547
2574
|
const l = Be.value?.parentNode;
|
|
2548
2575
|
if (!l) {
|
|
2549
2576
|
Ia.value = !1;
|
|
@@ -2553,9 +2580,9 @@ const _n = {
|
|
|
2553
2580
|
Ia.value = s.width > 2 && s.height > 2;
|
|
2554
2581
|
}
|
|
2555
2582
|
Ll(() => {
|
|
2556
|
-
|
|
2583
|
+
co();
|
|
2557
2584
|
const l = new ResizeObserver(() => {
|
|
2558
|
-
|
|
2585
|
+
co(), Ia.value && (Ta(), Lt(), ul());
|
|
2559
2586
|
});
|
|
2560
2587
|
Be.value?.parentNode && l.observe(Be.value.parentNode);
|
|
2561
2588
|
}), ht(t, () => {
|
|
@@ -2594,46 +2621,47 @@ const _n = {
|
|
|
2594
2621
|
ht(() => p.value.showTable, (l) => {
|
|
2595
2622
|
t.value.showTable || (l && t.value.table.useDialog && Je.value ? Je.value.open() : Je.value && Je.value.close && Je.value.close());
|
|
2596
2623
|
});
|
|
2597
|
-
function
|
|
2624
|
+
function vo() {
|
|
2598
2625
|
p.value.showTable = !1, Nl.value && Nl.value.setTableIconState(!1);
|
|
2599
2626
|
}
|
|
2600
|
-
return
|
|
2627
|
+
return Sa({
|
|
2601
2628
|
getData: Ao,
|
|
2602
2629
|
getImage: zo,
|
|
2603
|
-
generatePdf:
|
|
2604
|
-
generateImage:
|
|
2630
|
+
generatePdf: it,
|
|
2631
|
+
generateImage: ut,
|
|
2605
2632
|
generateCsv: za,
|
|
2606
2633
|
toggleStack: st,
|
|
2607
|
-
toggleTable:
|
|
2608
|
-
toggleLabels:
|
|
2609
|
-
toggleTooltip:
|
|
2634
|
+
toggleTable: lo,
|
|
2635
|
+
toggleLabels: ao,
|
|
2636
|
+
toggleTooltip: oo,
|
|
2610
2637
|
toggleAnnotator: Xl,
|
|
2611
|
-
toggleFullscreen:
|
|
2612
|
-
}), (l, s) => (n(),
|
|
2638
|
+
toggleFullscreen: no
|
|
2639
|
+
}), (l, s) => (n(), i("div", {
|
|
2613
2640
|
id: `vue-ui-xy_${Z.value}`,
|
|
2614
2641
|
class: Ze(`vue-ui-xy ${Pe.value ? "vue-data-ui-wrapper-fullscreen" : ""} ${t.value.useCssAnimation ? "" : "vue-ui-dna"}`),
|
|
2615
2642
|
ref_key: "chart",
|
|
2616
2643
|
ref: Be,
|
|
2617
2644
|
style: L(`background:${t.value.chart.backgroundColor}; color:${t.value.chart.color};width:100%;font-family:${t.value.chart.fontFamily};${t.value.responsive ? "height: 100%" : ""}`),
|
|
2618
2645
|
onMouseenter: s[6] || (s[6] = () => me(!0)),
|
|
2619
|
-
onMouseleave: s[7] || (s[7] = () => me(!1))
|
|
2646
|
+
onMouseleave: s[7] || (s[7] = () => me(!1)),
|
|
2647
|
+
onClick: Xa
|
|
2620
2648
|
}, [
|
|
2621
|
-
t.value.chart.userOptions.buttons.annotator &&
|
|
2649
|
+
t.value.chart.userOptions.buttons.annotator && $e.value ? (n(), ct(h(It), {
|
|
2622
2650
|
key: 0,
|
|
2623
|
-
svgRef:
|
|
2651
|
+
svgRef: $e.value,
|
|
2624
2652
|
backgroundColor: t.value.chart.backgroundColor,
|
|
2625
2653
|
color: t.value.chart.color,
|
|
2626
2654
|
active: Ee.value,
|
|
2627
2655
|
onClose: Xl
|
|
2628
2656
|
}, null, 8, ["svgRef", "backgroundColor", "color", "active"])) : g("", !0),
|
|
2629
|
-
Io.value ? (n(),
|
|
2657
|
+
Io.value ? (n(), i("div", {
|
|
2630
2658
|
key: 1,
|
|
2631
2659
|
ref_key: "noTitle",
|
|
2632
2660
|
ref: _t,
|
|
2633
2661
|
class: "vue-data-ui-no-title-space",
|
|
2634
2662
|
style: "height:36px; width: 100%; background:transparent"
|
|
2635
2663
|
}, null, 512)) : g("", !0),
|
|
2636
|
-
t.value.chart.title.show ? (n(),
|
|
2664
|
+
t.value.chart.title.show ? (n(), i("div", {
|
|
2637
2665
|
key: 2,
|
|
2638
2666
|
ref_key: "chartTitle",
|
|
2639
2667
|
ref: Te,
|
|
@@ -2656,7 +2684,7 @@ const _n = {
|
|
|
2656
2684
|
], 4)) : g("", !0),
|
|
2657
2685
|
k("div", {
|
|
2658
2686
|
id: `legend-top-${Z.value}`
|
|
2659
|
-
}, null, 8,
|
|
2687
|
+
}, null, 8, mi),
|
|
2660
2688
|
t.value.chart.userOptions.show && (Ol.value || yl.value) ? (n(), ct(h(ge), {
|
|
2661
2689
|
ref_key: "userOptionsRef",
|
|
2662
2690
|
ref: Nl,
|
|
@@ -2672,7 +2700,7 @@ const _n = {
|
|
|
2672
2700
|
hasImg: t.value.chart.userOptions.buttons.img,
|
|
2673
2701
|
hasLabel: t.value.chart.userOptions.buttons.labels,
|
|
2674
2702
|
hasTable: t.value.chart.userOptions.buttons.table,
|
|
2675
|
-
hasStack:
|
|
2703
|
+
hasStack: $.dataset.length > 1 && t.value.chart.userOptions.buttons.stack,
|
|
2676
2704
|
hasFullscreen: t.value.chart.userOptions.buttons.fullscreen,
|
|
2677
2705
|
isStacked: p.value.isStacked,
|
|
2678
2706
|
isFullscreen: Pe.value,
|
|
@@ -2685,23 +2713,23 @@ const _n = {
|
|
|
2685
2713
|
callbacks: t.value.chart.userOptions.callbacks,
|
|
2686
2714
|
tableDialog: t.value.table.useDialog,
|
|
2687
2715
|
printScale: t.value.chart.userOptions.print.scale,
|
|
2688
|
-
onToggleFullscreen:
|
|
2689
|
-
onGeneratePdf: h(
|
|
2716
|
+
onToggleFullscreen: no,
|
|
2717
|
+
onGeneratePdf: h(it),
|
|
2690
2718
|
onGenerateCsv: za,
|
|
2691
|
-
onGenerateImage: h(
|
|
2692
|
-
onToggleTable:
|
|
2693
|
-
onToggleLabels:
|
|
2719
|
+
onGenerateImage: h(ut),
|
|
2720
|
+
onToggleTable: lo,
|
|
2721
|
+
onToggleLabels: ao,
|
|
2694
2722
|
onToggleStack: st,
|
|
2695
|
-
onToggleTooltip:
|
|
2723
|
+
onToggleTooltip: oo,
|
|
2696
2724
|
onToggleAnnotator: Xl,
|
|
2697
2725
|
style: L({
|
|
2698
2726
|
visibility: Ol.value ? yl.value ? "visible" : "hidden" : "visible"
|
|
2699
2727
|
})
|
|
2700
|
-
},
|
|
2728
|
+
}, xo({ _: 2 }, [
|
|
2701
2729
|
l.$slots.menuIcon ? {
|
|
2702
2730
|
name: "menuIcon",
|
|
2703
|
-
fn: we(({ isOpen: e, color:
|
|
2704
|
-
te(l.$slots, "menuIcon", Xt(dl({ isOpen: e, color:
|
|
2731
|
+
fn: we(({ isOpen: e, color: u }) => [
|
|
2732
|
+
te(l.$slots, "menuIcon", Xt(dl({ isOpen: e, color: u })), void 0, !0)
|
|
2705
2733
|
]),
|
|
2706
2734
|
key: "0"
|
|
2707
2735
|
} : void 0,
|
|
@@ -2756,22 +2784,22 @@ const _n = {
|
|
|
2756
2784
|
} : void 0,
|
|
2757
2785
|
l.$slots.optionFullscreen ? {
|
|
2758
2786
|
name: "optionFullscreen",
|
|
2759
|
-
fn: we(({ toggleFullscreen: e, isFullscreen:
|
|
2760
|
-
te(l.$slots, "optionFullscreen", Xt(dl({ toggleFullscreen: e, isFullscreen:
|
|
2787
|
+
fn: we(({ toggleFullscreen: e, isFullscreen: u }) => [
|
|
2788
|
+
te(l.$slots, "optionFullscreen", Xt(dl({ toggleFullscreen: e, isFullscreen: u })), void 0, !0)
|
|
2761
2789
|
]),
|
|
2762
2790
|
key: "8"
|
|
2763
2791
|
} : void 0,
|
|
2764
2792
|
l.$slots.optionAnnotator ? {
|
|
2765
2793
|
name: "optionAnnotator",
|
|
2766
|
-
fn: we(({ toggleAnnotator: e, isAnnotator:
|
|
2767
|
-
te(l.$slots, "optionAnnotator", Xt(dl({ toggleAnnotator: e, isAnnotator:
|
|
2794
|
+
fn: we(({ toggleAnnotator: e, isAnnotator: u }) => [
|
|
2795
|
+
te(l.$slots, "optionAnnotator", Xt(dl({ toggleAnnotator: e, isAnnotator: u })), void 0, !0)
|
|
2768
2796
|
]),
|
|
2769
2797
|
key: "9"
|
|
2770
2798
|
} : void 0
|
|
2771
2799
|
]), 1032, ["backgroundColor", "color", "isPrinting", "isImaging", "uid", "hasTooltip", "hasPdf", "hasXls", "hasImg", "hasLabel", "hasTable", "hasStack", "hasFullscreen", "isStacked", "isFullscreen", "chartElement", "position", "isTooltip", "titles", "hasAnnotator", "isAnnotation", "callbacks", "tableDialog", "printScale", "onGeneratePdf", "onGenerateImage", "style"])) : g("", !0),
|
|
2772
|
-
(n(),
|
|
2800
|
+
(n(), i("svg", {
|
|
2773
2801
|
ref_key: "svgRef",
|
|
2774
|
-
ref:
|
|
2802
|
+
ref: $e,
|
|
2775
2803
|
xmlns: "http://www.w3.org/2000/svg",
|
|
2776
2804
|
class: Ze([{ "vue-data-ui-fullscreen--on": Pe.value, "vue-data-ui-fulscreen--off": !Pe.value }, "vue-ui-xy-svg vue-data-ui-svg"]),
|
|
2777
2805
|
width: "100%",
|
|
@@ -2785,9 +2813,9 @@ const _n = {
|
|
|
2785
2813
|
role: "img",
|
|
2786
2814
|
"aria-live": "polite",
|
|
2787
2815
|
preserveAspectRatio: "xMidYMid",
|
|
2788
|
-
onMousemove:
|
|
2789
|
-
onMouseleave:
|
|
2790
|
-
onClick:
|
|
2816
|
+
onMousemove: Co,
|
|
2817
|
+
onMouseleave: ua,
|
|
2818
|
+
onClick: Xa
|
|
2791
2819
|
}, [
|
|
2792
2820
|
k("g", {
|
|
2793
2821
|
ref_key: "G",
|
|
@@ -2795,66 +2823,66 @@ const _n = {
|
|
|
2795
2823
|
class: "vue-data-ui-g"
|
|
2796
2824
|
}, [
|
|
2797
2825
|
ml(h(St)),
|
|
2798
|
-
l.$slots["chart-background"] ? (n(),
|
|
2826
|
+
l.$slots["chart-background"] ? (n(), i("foreignObject", {
|
|
2799
2827
|
key: 0,
|
|
2800
|
-
x: c.value.left +
|
|
2828
|
+
x: c.value.left + ie.value < 0 ? 0 : c.value.left + ie.value,
|
|
2801
2829
|
y: c.value.top,
|
|
2802
|
-
width: c.value.width - (t.value.chart.grid.position === "middle" ? 0 : c.value.width /
|
|
2830
|
+
width: c.value.width - (t.value.chart.grid.position === "middle" ? 0 : c.value.width / S.value) < 0 ? 0 : c.value.width - (t.value.chart.grid.position === "middle" ? 0 : c.value.width / S.value),
|
|
2803
2831
|
height: c.value.height < 0 ? 0 : c.value.height,
|
|
2804
2832
|
style: {
|
|
2805
2833
|
pointerEvents: "none"
|
|
2806
2834
|
}
|
|
2807
2835
|
}, [
|
|
2808
2836
|
te(l.$slots, "chart-background", {}, void 0, !0)
|
|
2809
|
-
], 8,
|
|
2810
|
-
|
|
2811
|
-
k("g",
|
|
2812
|
-
t.value.chart.grid.labels.xAxis.showBaseline ? (n(),
|
|
2837
|
+
], 8, xi)) : g("", !0),
|
|
2838
|
+
S.value > 0 ? (n(), i("g", bi, [
|
|
2839
|
+
k("g", yi, [
|
|
2840
|
+
t.value.chart.grid.labels.xAxis.showBaseline ? (n(), i("line", {
|
|
2813
2841
|
key: 0,
|
|
2814
2842
|
stroke: t.value.chart.grid.stroke,
|
|
2815
2843
|
"stroke-width": "1",
|
|
2816
|
-
x1: c.value.left +
|
|
2817
|
-
x2: c.value.right -
|
|
2844
|
+
x1: c.value.left + ie.value,
|
|
2845
|
+
x2: c.value.right - ie.value,
|
|
2818
2846
|
y1: h(j)(c.value.bottom),
|
|
2819
2847
|
y2: h(j)(c.value.bottom),
|
|
2820
2848
|
"stroke-linecap": "round",
|
|
2821
2849
|
style: { animation: "none !important" }
|
|
2822
|
-
}, null, 8,
|
|
2823
|
-
p.value.useIndividualScale ? t.value.chart.grid.showHorizontalLines ? (n(!0),
|
|
2824
|
-
e.id ===
|
|
2825
|
-
x1: c.value.left +
|
|
2826
|
-
x2: c.value.right -
|
|
2827
|
-
y1: h(j)(
|
|
2828
|
-
y2: h(j)(
|
|
2850
|
+
}, null, 8, pi)) : g("", !0),
|
|
2851
|
+
p.value.useIndividualScale ? t.value.chart.grid.showHorizontalLines ? (n(!0), i(b, { key: 2 }, M(Gl.value, (e) => (n(), i("g", null, [
|
|
2852
|
+
e.id === E.value && e.yLabels.length ? (n(!0), i(b, { key: 0 }, M(e.yLabels, (u) => (n(), i("line", {
|
|
2853
|
+
x1: c.value.left + ie.value,
|
|
2854
|
+
x2: c.value.right - ie.value,
|
|
2855
|
+
y1: h(j)(u.y),
|
|
2856
|
+
y2: h(j)(u.y),
|
|
2829
2857
|
stroke: e.color,
|
|
2830
2858
|
"stroke-width": 0.5,
|
|
2831
2859
|
"stroke-linecap": "round",
|
|
2832
2860
|
style: { animation: "none !important" }
|
|
2833
|
-
}, null, 8, $
|
|
2834
|
-
x1: c.value.left +
|
|
2835
|
-
x2: c.value.right -
|
|
2836
|
-
y1: h(j)(
|
|
2837
|
-
y2: h(j)(
|
|
2861
|
+
}, null, 8, $i))), 256)) : e.yLabels.length ? (n(!0), i(b, { key: 1 }, M(e.yLabels, (u) => (n(), i("line", {
|
|
2862
|
+
x1: c.value.left + ie.value,
|
|
2863
|
+
x2: c.value.right - ie.value,
|
|
2864
|
+
y1: h(j)(u.y),
|
|
2865
|
+
y2: h(j)(u.y),
|
|
2838
2866
|
stroke: t.value.chart.grid.stroke,
|
|
2839
2867
|
"stroke-width": 0.5,
|
|
2840
2868
|
"stroke-linecap": "round",
|
|
2841
2869
|
style: { animation: "none !important" }
|
|
2842
|
-
}, null, 8,
|
|
2843
|
-
]))), 256)) : g("", !0) : (n(),
|
|
2844
|
-
t.value.chart.grid.labels.yAxis.showBaseline ? (n(),
|
|
2870
|
+
}, null, 8, _i))), 256)) : g("", !0)
|
|
2871
|
+
]))), 256)) : g("", !0) : (n(), i(b, { key: 1 }, [
|
|
2872
|
+
t.value.chart.grid.labels.yAxis.showBaseline ? (n(), i("line", {
|
|
2845
2873
|
key: 0,
|
|
2846
2874
|
stroke: t.value.chart.grid.stroke,
|
|
2847
2875
|
"stroke-width": "1",
|
|
2848
|
-
x1: c.value.left +
|
|
2849
|
-
x2: c.value.left +
|
|
2876
|
+
x1: c.value.left + ie.value,
|
|
2877
|
+
x2: c.value.left + ie.value,
|
|
2850
2878
|
y1: h(j)(c.value.top),
|
|
2851
2879
|
y2: h(j)(c.value.bottom),
|
|
2852
2880
|
"stroke-linecap": "round",
|
|
2853
2881
|
style: { animation: "none !important" }
|
|
2854
|
-
}, null, 8,
|
|
2855
|
-
t.value.chart.grid.showHorizontalLines ? (n(),
|
|
2856
|
-
(n(!0),
|
|
2857
|
-
x1: c.value.left +
|
|
2882
|
+
}, null, 8, ki)) : g("", !0),
|
|
2883
|
+
t.value.chart.grid.showHorizontalLines ? (n(), i("g", wi, [
|
|
2884
|
+
(n(!0), i(b, null, M(Za.value, (e) => (n(), i("line", {
|
|
2885
|
+
x1: c.value.left + ie.value,
|
|
2858
2886
|
x2: c.value.right,
|
|
2859
2887
|
y1: h(j)(e.y),
|
|
2860
2888
|
y2: h(j)(e.y),
|
|
@@ -2862,78 +2890,78 @@ const _n = {
|
|
|
2862
2890
|
"stroke-width": 0.5,
|
|
2863
2891
|
"stroke-linecap": "round",
|
|
2864
2892
|
style: { animation: "none !important" }
|
|
2865
|
-
}, null, 8,
|
|
2893
|
+
}, null, 8, Si))), 256))
|
|
2866
2894
|
])) : g("", !0)
|
|
2867
2895
|
], 64)),
|
|
2868
|
-
t.value.chart.grid.showVerticalLines ? (n(),
|
|
2896
|
+
t.value.chart.grid.showVerticalLines ? (n(), i("g", Mi, [
|
|
2869
2897
|
k("path", {
|
|
2870
2898
|
d: Ot.value,
|
|
2871
2899
|
"stroke-width": 0.5,
|
|
2872
2900
|
stroke: t.value.chart.grid.stroke,
|
|
2873
2901
|
"stroke-linecap": "round",
|
|
2874
2902
|
style: { animation: "none !important" }
|
|
2875
|
-
}, null, 8,
|
|
2903
|
+
}, null, 8, Li)
|
|
2876
2904
|
])) : g("", !0),
|
|
2877
|
-
t.value.chart.grid.labels.xAxisLabels.show ? (n(),
|
|
2905
|
+
t.value.chart.grid.labels.xAxisLabels.show ? (n(), i("g", Ci, [
|
|
2878
2906
|
k("path", {
|
|
2879
2907
|
d: Dl.value,
|
|
2880
2908
|
stroke: t.value.chart.grid.stroke,
|
|
2881
2909
|
"stroke-width": 1,
|
|
2882
2910
|
"stroke-linecap": "round",
|
|
2883
2911
|
style: { animation: "none !important" }
|
|
2884
|
-
}, null, 8,
|
|
2912
|
+
}, null, 8, Ai)
|
|
2885
2913
|
])) : g("", !0)
|
|
2886
2914
|
]),
|
|
2887
|
-
(n(!0),
|
|
2888
|
-
key: `def_rect_${
|
|
2915
|
+
(n(!0), i(b, null, M(Tt.value, (e, u) => (n(), i("defs", {
|
|
2916
|
+
key: `def_rect_${u}`
|
|
2889
2917
|
}, [
|
|
2890
2918
|
l.$slots["bar-gradient"] ? te(l.$slots, "bar-gradient", Yt({
|
|
2891
2919
|
key: 0,
|
|
2892
2920
|
ref_for: !0
|
|
2893
|
-
}, { series: e, positiveId: `rectGradient_pos_${
|
|
2921
|
+
}, { series: e, positiveId: `rectGradient_pos_${u}_${Z.value}`, negativeId: `rectGradient_neg_${u}_${Z.value}` }), void 0, !0) : (n(), i(b, { key: 1 }, [
|
|
2894
2922
|
k("linearGradient", {
|
|
2895
|
-
id: `rectGradient_pos_${
|
|
2923
|
+
id: `rectGradient_pos_${u}_${Z.value}`,
|
|
2896
2924
|
x2: "0%",
|
|
2897
2925
|
y2: "100%"
|
|
2898
2926
|
}, [
|
|
2899
2927
|
k("stop", {
|
|
2900
2928
|
offset: "0%",
|
|
2901
2929
|
"stop-color": e.color
|
|
2902
|
-
}, null, 8,
|
|
2930
|
+
}, null, 8, Ti),
|
|
2903
2931
|
k("stop", {
|
|
2904
2932
|
offset: "62%",
|
|
2905
2933
|
"stop-color": `${h(fl)(e.color, 0.02)}`
|
|
2906
|
-
}, null, 8,
|
|
2934
|
+
}, null, 8, Ii),
|
|
2907
2935
|
k("stop", {
|
|
2908
2936
|
offset: "100%",
|
|
2909
2937
|
"stop-color": `${h(fl)(e.color, 0.05)}`
|
|
2910
|
-
}, null, 8,
|
|
2911
|
-
], 8,
|
|
2938
|
+
}, null, 8, Ni)
|
|
2939
|
+
], 8, zi),
|
|
2912
2940
|
k("linearGradient", {
|
|
2913
|
-
id: `rectGradient_neg_${
|
|
2941
|
+
id: `rectGradient_neg_${u}_${Z.value}`,
|
|
2914
2942
|
x2: "0%",
|
|
2915
2943
|
y2: "100%"
|
|
2916
2944
|
}, [
|
|
2917
2945
|
k("stop", {
|
|
2918
2946
|
offset: "0%",
|
|
2919
2947
|
"stop-color": `${h(fl)(e.color, 0.05)}`
|
|
2920
|
-
}, null, 8,
|
|
2948
|
+
}, null, 8, Fi),
|
|
2921
2949
|
k("stop", {
|
|
2922
2950
|
offset: "38%",
|
|
2923
2951
|
"stop-color": `${h(fl)(e.color, 0.02)}`
|
|
2924
|
-
}, null, 8,
|
|
2952
|
+
}, null, 8, Ri),
|
|
2925
2953
|
k("stop", {
|
|
2926
2954
|
offset: "100%",
|
|
2927
2955
|
"stop-color": e.color
|
|
2928
|
-
}, null, 8,
|
|
2929
|
-
], 8,
|
|
2956
|
+
}, null, 8, Oi)
|
|
2957
|
+
], 8, Pi)
|
|
2930
2958
|
], 64))
|
|
2931
2959
|
]))), 128)),
|
|
2932
|
-
(n(!0),
|
|
2933
|
-
key: `def_plot_${
|
|
2960
|
+
(n(!0), i(b, null, M(rt.value, (e, u) => (n(), i("defs", {
|
|
2961
|
+
key: `def_plot_${u}`
|
|
2934
2962
|
}, [
|
|
2935
2963
|
k("radialGradient", {
|
|
2936
|
-
id: `plotGradient_${
|
|
2964
|
+
id: `plotGradient_${u}_${Z.value}`,
|
|
2937
2965
|
cx: "50%",
|
|
2938
2966
|
cy: "50%",
|
|
2939
2967
|
r: "50%",
|
|
@@ -2943,18 +2971,18 @@ const _n = {
|
|
|
2943
2971
|
k("stop", {
|
|
2944
2972
|
offset: "0%",
|
|
2945
2973
|
"stop-color": `${h(fl)(e.color, 0.05)}`
|
|
2946
|
-
}, null, 8,
|
|
2974
|
+
}, null, 8, Bi),
|
|
2947
2975
|
k("stop", {
|
|
2948
2976
|
offset: "100%",
|
|
2949
2977
|
"stop-color": e.color
|
|
2950
|
-
}, null, 8,
|
|
2951
|
-
], 8,
|
|
2978
|
+
}, null, 8, Ei)
|
|
2979
|
+
], 8, Vi)
|
|
2952
2980
|
]))), 128)),
|
|
2953
|
-
(n(!0),
|
|
2981
|
+
(n(!0), i(b, null, M(Re.value, (e, u) => (n(), i("defs", {
|
|
2954
2982
|
key: `def_line_${e.id}`
|
|
2955
2983
|
}, [
|
|
2956
2984
|
k("radialGradient", {
|
|
2957
|
-
id: `lineGradient_${
|
|
2985
|
+
id: `lineGradient_${u}_${Z.value}`,
|
|
2958
2986
|
cx: "50%",
|
|
2959
2987
|
cy: "50%",
|
|
2960
2988
|
r: "50%",
|
|
@@ -2964,18 +2992,18 @@ const _n = {
|
|
|
2964
2992
|
k("stop", {
|
|
2965
2993
|
offset: "0%",
|
|
2966
2994
|
"stop-color": `${h(fl)(e.color, 0.05)}`
|
|
2967
|
-
}, null, 8,
|
|
2995
|
+
}, null, 8, Di),
|
|
2968
2996
|
k("stop", {
|
|
2969
2997
|
offset: "100%",
|
|
2970
2998
|
"stop-color": e.color
|
|
2971
|
-
}, null, 8,
|
|
2972
|
-
], 8,
|
|
2999
|
+
}, null, 8, Wi)
|
|
3000
|
+
], 8, Hi),
|
|
2973
3001
|
l.$slots["area-gradient"] ? te(l.$slots, "area-gradient", Yt({
|
|
2974
3002
|
key: 0,
|
|
2975
3003
|
ref_for: !0
|
|
2976
|
-
}, { series: e, id: `areaGradient_${
|
|
3004
|
+
}, { series: e, id: `areaGradient_${u}_${Z.value}` }), void 0, !0) : (n(), i("linearGradient", {
|
|
2977
3005
|
key: 1,
|
|
2978
|
-
id: `areaGradient_${
|
|
3006
|
+
id: `areaGradient_${u}_${Z.value}`,
|
|
2979
3007
|
x1: "0%",
|
|
2980
3008
|
x2: "100%",
|
|
2981
3009
|
y1: "0%",
|
|
@@ -2984,112 +3012,112 @@ const _n = {
|
|
|
2984
3012
|
k("stop", {
|
|
2985
3013
|
offset: "0%",
|
|
2986
3014
|
"stop-color": `${h(vt)(h(fl)(e.color, 0.03), t.value.line.area.opacity)}`
|
|
2987
|
-
}, null, 8,
|
|
3015
|
+
}, null, 8, Yi),
|
|
2988
3016
|
k("stop", {
|
|
2989
3017
|
offset: "100%",
|
|
2990
3018
|
"stop-color": `${h(vt)(e.color, t.value.line.area.opacity)}`
|
|
2991
|
-
}, null, 8,
|
|
2992
|
-
], 8,
|
|
3019
|
+
}, null, 8, Gi)
|
|
3020
|
+
], 8, Xi))
|
|
2993
3021
|
]))), 128)),
|
|
2994
|
-
(n(!0),
|
|
2995
|
-
e.show ? (n(),
|
|
2996
|
-
(n(!0),
|
|
3022
|
+
(n(!0), i(b, null, M(No.value, (e) => (n(), i("g", null, [
|
|
3023
|
+
e.show ? (n(), i(b, { key: 0 }, [
|
|
3024
|
+
(n(!0), i(b, null, M(e.span, (u, a) => (n(), i("g", null, [
|
|
2997
3025
|
k("rect", {
|
|
2998
3026
|
style: L({
|
|
2999
3027
|
transition: "none",
|
|
3000
3028
|
opacity: e.from + a >= w.value.start && e.from + a <= w.value.end - 1 ? 1 : 0
|
|
3001
3029
|
}),
|
|
3002
|
-
x: c.value.left + c.value.width /
|
|
3030
|
+
x: c.value.left + c.value.width / S.value * (e.from + a - w.value.start),
|
|
3003
3031
|
y: c.value.top,
|
|
3004
3032
|
height: c.value.height < 0 ? 10 : c.value.height,
|
|
3005
|
-
width: c.value.width /
|
|
3033
|
+
width: c.value.width / S.value < 0 ? 1e-5 : c.value.width / S.value,
|
|
3006
3034
|
fill: h(vt)(e.color, e.opacity)
|
|
3007
|
-
}, null, 12,
|
|
3035
|
+
}, null, 12, Ui)
|
|
3008
3036
|
]))), 256)),
|
|
3009
|
-
(n(!0),
|
|
3010
|
-
e.caption.text && a === 0 ? (n(),
|
|
3037
|
+
(n(!0), i(b, null, M(e.span, (u, a) => (n(), i("g", null, [
|
|
3038
|
+
e.caption.text && a === 0 ? (n(), i("foreignObject", {
|
|
3011
3039
|
key: 0,
|
|
3012
|
-
x: c.value.left + c.value.width /
|
|
3040
|
+
x: c.value.left + c.value.width / S.value * (e.from + a - w.value.start) - (e.caption.width === "auto" ? 0 : e.caption.width / 2 - c.value.width / S.value * e.span / 2),
|
|
3013
3041
|
y: c.value.top + e.caption.offsetY,
|
|
3014
3042
|
style: L({
|
|
3015
3043
|
overflow: "visible",
|
|
3016
3044
|
opacity: e.to >= w.value.start && e.from < w.value.end ? 1 : 0
|
|
3017
3045
|
}),
|
|
3018
3046
|
height: "1",
|
|
3019
|
-
width: e.caption.width === "auto" ? c.value.width /
|
|
3047
|
+
width: e.caption.width === "auto" ? c.value.width / S.value * e.span : e.caption.width
|
|
3020
3048
|
}, [
|
|
3021
3049
|
k("div", {
|
|
3022
3050
|
style: L(`padding:${e.caption.padding}px;text-align:${e.caption.textAlign};font-size:${e.caption.fontSize}px;color:${e.caption.color};font-weight:${e.caption.bold ? "bold" : "normal"}`)
|
|
3023
3051
|
}, re(e.caption.text), 5)
|
|
3024
|
-
], 12,
|
|
3052
|
+
], 12, qi)) : g("", !0)
|
|
3025
3053
|
]))), 256))
|
|
3026
3054
|
], 64)) : g("", !0)
|
|
3027
3055
|
]))), 256)),
|
|
3028
|
-
Vt.value ? (n(),
|
|
3029
|
-
(n(!0),
|
|
3030
|
-
key: `tooltip_trap_highlighter_${
|
|
3056
|
+
Vt.value ? (n(), i("g", Zi, [
|
|
3057
|
+
(n(!0), i(b, null, M(S.value, (e, u) => (n(), i("g", {
|
|
3058
|
+
key: `tooltip_trap_highlighter_${u}`
|
|
3031
3059
|
}, [
|
|
3032
3060
|
k("rect", {
|
|
3033
|
-
x: c.value.left + c.value.width /
|
|
3061
|
+
x: c.value.left + c.value.width / S.value * u,
|
|
3034
3062
|
y: c.value.top,
|
|
3035
3063
|
height: c.value.height < 0 ? 10 : c.value.height,
|
|
3036
|
-
width: c.value.width /
|
|
3037
|
-
fill: [
|
|
3064
|
+
width: c.value.width / S.value < 0 ? 1e-5 : c.value.width / S.value,
|
|
3065
|
+
fill: [X.value, _.value, ae.value].includes(u) ? h(vt)(t.value.chart.highlighter.color, t.value.chart.highlighter.opacity) : "transparent",
|
|
3038
3066
|
style: { transition: "none !important", animation: "none !important" }
|
|
3039
|
-
}, null, 8,
|
|
3067
|
+
}, null, 8, Ki)
|
|
3040
3068
|
]))), 128))
|
|
3041
3069
|
])) : g("", !0),
|
|
3042
|
-
Tt.value.length ? (n(!0),
|
|
3070
|
+
Tt.value.length ? (n(!0), i(b, { key: 1 }, M(Tt.value, (e, u) => (n(), i("g", {
|
|
3043
3071
|
key: `serie_bar_${e.id}`,
|
|
3044
|
-
class: Ze(`serie_bar_${
|
|
3045
|
-
style: L(`opacity:${
|
|
3072
|
+
class: Ze(`serie_bar_${u}`),
|
|
3073
|
+
style: L(`opacity:${E.value ? E.value === e.groupId ? 1 : 0.2 : 1};transition:opacity 0.2s ease-in-out`)
|
|
3046
3074
|
}, [
|
|
3047
|
-
(n(!0),
|
|
3048
|
-
key: `bar_plot_${
|
|
3075
|
+
(n(!0), i(b, null, M(e.plots, (a, r) => (n(), i("g", {
|
|
3076
|
+
key: `bar_plot_${u}_${r}`
|
|
3049
3077
|
}, [
|
|
3050
|
-
Ye(a.value) ? (n(),
|
|
3078
|
+
Ye(a.value) ? (n(), i("rect", {
|
|
3051
3079
|
key: 0,
|
|
3052
|
-
x:
|
|
3080
|
+
x: ia(a) + ca.value / 2,
|
|
3053
3081
|
y: p.value.useIndividualScale ? Da(a) : Ha(a),
|
|
3054
3082
|
height: p.value.useIndividualScale ? Math.abs(Ea(a)) : Math.abs(Ba(a)),
|
|
3055
|
-
width:
|
|
3083
|
+
width: ra.value - ca.value,
|
|
3056
3084
|
rx: t.value.bar.borderRadius,
|
|
3057
|
-
fill: t.value.bar.useGradient ? a.value >= 0 ? `url(#rectGradient_pos_${
|
|
3085
|
+
fill: t.value.bar.useGradient ? a.value >= 0 ? `url(#rectGradient_pos_${u}_${Z.value})` : `url(#rectGradient_neg_${u}_${Z.value})` : e.color,
|
|
3058
3086
|
stroke: t.value.bar.border.useSerieColor ? e.color : t.value.bar.border.stroke,
|
|
3059
3087
|
"stroke-width": t.value.bar.border.strokeWidth,
|
|
3060
3088
|
style: L({
|
|
3061
3089
|
transition: h(xe) || !t.value.bar.showTransition ? void 0 : `all ${t.value.bar.transitionDurationMs}ms ease-in-out`
|
|
3062
3090
|
})
|
|
3063
|
-
}, null, 12,
|
|
3064
|
-
Ye(a.value) && l.$slots.pattern ? (n(),
|
|
3091
|
+
}, null, 12, Ji)) : g("", !0),
|
|
3092
|
+
Ye(a.value) && l.$slots.pattern ? (n(), i("rect", {
|
|
3065
3093
|
key: 1,
|
|
3066
|
-
x:
|
|
3094
|
+
x: ia(a) - ca.value / 2,
|
|
3067
3095
|
y: p.value.useIndividualScale ? Da(a) : Ha(a),
|
|
3068
3096
|
height: p.value.useIndividualScale ? Math.abs(Ea(a)) : Math.abs(Ba(a)),
|
|
3069
|
-
width:
|
|
3097
|
+
width: ra.value - ca.value,
|
|
3070
3098
|
rx: t.value.bar.borderRadius,
|
|
3071
3099
|
fill: `url(#pattern_${Z.value}_${e.slotAbsoluteIndex})`,
|
|
3072
3100
|
stroke: t.value.bar.border.useSerieColor ? e.color : t.value.bar.border.stroke,
|
|
3073
3101
|
"stroke-width": t.value.bar.border.strokeWidth,
|
|
3074
3102
|
style: L({ transition: h(xe) || !t.value.bar.showTransition ? void 0 : `all ${t.value.bar.transitionDurationMs}ms ease-in-out` })
|
|
3075
|
-
}, null, 12,
|
|
3076
|
-
a.comment && t.value.chart.comments.show ? (n(),
|
|
3103
|
+
}, null, 12, Qi)) : g("", !0),
|
|
3104
|
+
a.comment && t.value.chart.comments.show ? (n(), i("foreignObject", {
|
|
3077
3105
|
key: 2,
|
|
3078
3106
|
style: { overflow: "visible" },
|
|
3079
3107
|
height: "12",
|
|
3080
|
-
width:
|
|
3081
|
-
x:
|
|
3108
|
+
width: ra.value / 2 + t.value.chart.comments.width,
|
|
3109
|
+
x: ia(a) - t.value.chart.comments.width / 2 + t.value.chart.comments.offsetX,
|
|
3082
3110
|
y: h(q)(a.y) + t.value.chart.comments.offsetY + 6
|
|
3083
3111
|
}, [
|
|
3084
3112
|
te(l.$slots, "plot-comment", {
|
|
3085
|
-
plot: { ...a, color: e.color, seriesIndex:
|
|
3113
|
+
plot: { ...a, color: e.color, seriesIndex: u, datapointIndex: r }
|
|
3086
3114
|
}, void 0, !0)
|
|
3087
|
-
], 8,
|
|
3115
|
+
], 8, ji)) : g("", !0)
|
|
3088
3116
|
]))), 128)),
|
|
3089
|
-
Object.hasOwn(e, "useProgression") && e.useProgression === !0 && !isNaN(h(
|
|
3117
|
+
Object.hasOwn(e, "useProgression") && e.useProgression === !0 && !isNaN(h(ue)(e.plots).trend) ? (n(), i("g", eu, [
|
|
3090
3118
|
k("defs", null, [
|
|
3091
3119
|
k("marker", {
|
|
3092
|
-
id: `bar_arrow_${
|
|
3120
|
+
id: `bar_arrow_${u}`,
|
|
3093
3121
|
markerWidth: 7,
|
|
3094
3122
|
markerHeight: 7,
|
|
3095
3123
|
refX: "0",
|
|
@@ -3099,49 +3127,49 @@ const _n = {
|
|
|
3099
3127
|
k("polygon", {
|
|
3100
3128
|
points: `0 0, 7 ${7 / 2}, 0 7`,
|
|
3101
3129
|
fill: e.color
|
|
3102
|
-
}, null, 8,
|
|
3103
|
-
], 8,
|
|
3130
|
+
}, null, 8, lu)
|
|
3131
|
+
], 8, tu)
|
|
3104
3132
|
]),
|
|
3105
|
-
e.plots.length > 1 ? (n(),
|
|
3133
|
+
e.plots.length > 1 ? (n(), i("line", {
|
|
3106
3134
|
key: 0,
|
|
3107
|
-
x1: h(
|
|
3108
|
-
x2: h(
|
|
3109
|
-
y1: h(j)(h(
|
|
3110
|
-
y2: h(j)(h(
|
|
3135
|
+
x1: h(ue)(e.plots).x1 + Sl(),
|
|
3136
|
+
x2: h(ue)(e.plots).x2 + Sl(),
|
|
3137
|
+
y1: h(j)(h(ue)(e.plots).y1),
|
|
3138
|
+
y2: h(j)(h(ue)(e.plots).y2),
|
|
3111
3139
|
"stroke-width": 1,
|
|
3112
3140
|
stroke: e.color,
|
|
3113
3141
|
"stroke-dasharray": 2,
|
|
3114
|
-
"marker-end": `url(#bar_arrow_${
|
|
3115
|
-
}, null, 8,
|
|
3116
|
-
e.plots.length > 1 ? (n(),
|
|
3142
|
+
"marker-end": `url(#bar_arrow_${u})`
|
|
3143
|
+
}, null, 8, au)) : g("", !0),
|
|
3144
|
+
e.plots.length > 1 ? (n(), i("text", {
|
|
3117
3145
|
key: 1,
|
|
3118
3146
|
"text-anchor": "middle",
|
|
3119
|
-
x: h(
|
|
3120
|
-
y: h(
|
|
3147
|
+
x: h(ue)(e.plots).x2 + Sl(),
|
|
3148
|
+
y: h(ue)(e.plots).y2 - 6,
|
|
3121
3149
|
"font-size": C.value.plotLabels,
|
|
3122
3150
|
fill: e.color
|
|
3123
3151
|
}, re(h(lt)({
|
|
3124
|
-
v: h(
|
|
3152
|
+
v: h(ue)(e.plots).trend * 100,
|
|
3125
3153
|
s: "%",
|
|
3126
3154
|
r: 2
|
|
3127
|
-
})), 9,
|
|
3155
|
+
})), 9, ou)) : g("", !0)
|
|
3128
3156
|
])) : g("", !0)
|
|
3129
3157
|
], 6))), 128)) : g("", !0),
|
|
3130
|
-
!p.value.useIndividualScale && t.value.chart.grid.labels.zeroLine.show ? (n(),
|
|
3158
|
+
!p.value.useIndividualScale && t.value.chart.grid.labels.zeroLine.show ? (n(), i("line", {
|
|
3131
3159
|
key: 2,
|
|
3132
3160
|
stroke: t.value.chart.grid.stroke,
|
|
3133
3161
|
"stroke-width": "1",
|
|
3134
|
-
x1: c.value.left +
|
|
3162
|
+
x1: c.value.left + ie.value,
|
|
3135
3163
|
x2: c.value.right,
|
|
3136
3164
|
y1: h(j)(Ie.value),
|
|
3137
3165
|
y2: h(j)(Ie.value),
|
|
3138
3166
|
"stroke-linecap": "round",
|
|
3139
3167
|
style: { animation: "none !important" }
|
|
3140
|
-
}, null, 8,
|
|
3141
|
-
t.value.chart.highlighter.useLine && (![null, void 0].includes(_.value) || ![null, void 0].includes(
|
|
3168
|
+
}, null, 8, nu)) : g("", !0),
|
|
3169
|
+
t.value.chart.highlighter.useLine && (![null, void 0].includes(_.value) || ![null, void 0].includes(X.value)) ? (n(), i("g", iu, [
|
|
3142
3170
|
k("line", {
|
|
3143
|
-
x1: c.value.left + c.value.width /
|
|
3144
|
-
x2: c.value.left + c.value.width /
|
|
3171
|
+
x1: c.value.left + c.value.width / S.value * ((_.value !== null ? _.value : 0) || (X.value !== null ? X.value : 0)) + c.value.width / S.value / 2,
|
|
3172
|
+
x2: c.value.left + c.value.width / S.value * ((_.value !== null ? _.value : 0) || (X.value !== null ? X.value : 0)) + c.value.width / S.value / 2,
|
|
3145
3173
|
y1: h(j)(c.value.top),
|
|
3146
3174
|
y2: h(j)(c.value.bottom),
|
|
3147
3175
|
stroke: t.value.chart.highlighter.color,
|
|
@@ -3149,14 +3177,14 @@ const _n = {
|
|
|
3149
3177
|
"stroke-dasharray": t.value.chart.highlighter.lineDasharray,
|
|
3150
3178
|
"stroke-linecap": "round",
|
|
3151
3179
|
style: { transition: "none !important", animation: "none !important", "pointer-events": "none" }
|
|
3152
|
-
}, null, 8,
|
|
3180
|
+
}, null, 8, uu)
|
|
3153
3181
|
])) : g("", !0),
|
|
3154
|
-
t.value.chart.grid.frame.show ? (n(),
|
|
3182
|
+
t.value.chart.grid.frame.show ? (n(), i("rect", {
|
|
3155
3183
|
key: 4,
|
|
3156
3184
|
style: { pointerEvents: "none", transition: "none", animation: "none !important" },
|
|
3157
|
-
x: c.value.left +
|
|
3185
|
+
x: c.value.left + ie.value < 0 ? 0 : c.value.left + ie.value,
|
|
3158
3186
|
y: c.value.top,
|
|
3159
|
-
width: c.value.width - (t.value.chart.grid.position === "middle" ? 0 : c.value.width /
|
|
3187
|
+
width: c.value.width - (t.value.chart.grid.position === "middle" ? 0 : c.value.width / S.value) < 0 ? 0 : c.value.width - (t.value.chart.grid.position === "middle" ? 0 : c.value.width / S.value),
|
|
3160
3188
|
height: c.value.height < 0 ? 0 : c.value.height,
|
|
3161
3189
|
fill: "transparent",
|
|
3162
3190
|
stroke: t.value.chart.grid.frame.stroke,
|
|
@@ -3164,81 +3192,81 @@ const _n = {
|
|
|
3164
3192
|
"stroke-linecap": t.value.chart.grid.frame.strokeLinecap,
|
|
3165
3193
|
"stroke-linejoin": t.value.chart.grid.frame.strokeLinejoin,
|
|
3166
3194
|
"stroke-dasharray": t.value.chart.grid.frame.strokeDasharray
|
|
3167
|
-
}, null, 8,
|
|
3168
|
-
t.value.chart.grid.labels.show ? (n(),
|
|
3195
|
+
}, null, 8, su)) : g("", !0),
|
|
3196
|
+
t.value.chart.grid.labels.show ? (n(), i("g", {
|
|
3169
3197
|
key: 5,
|
|
3170
3198
|
ref_key: "scaleLabels",
|
|
3171
3199
|
ref: Il
|
|
3172
3200
|
}, [
|
|
3173
|
-
p.value.useIndividualScale ? (n(),
|
|
3174
|
-
(n(!0),
|
|
3201
|
+
p.value.useIndividualScale ? (n(), i(b, { key: 0 }, [
|
|
3202
|
+
(n(!0), i(b, null, M(Gl.value, (e) => (n(), i("g", null, [
|
|
3175
3203
|
k("line", {
|
|
3176
|
-
x1: e.x +
|
|
3177
|
-
x2: e.x +
|
|
3204
|
+
x1: e.x + ie.value - c.value.individualOffsetX,
|
|
3205
|
+
x2: e.x + ie.value - c.value.individualOffsetX,
|
|
3178
3206
|
y1: p.value.isStacked ? h(j)(c.value.bottom - e.yOffset - e.individualHeight) : h(j)(c.value.top),
|
|
3179
3207
|
y2: p.value.isStacked ? h(j)(c.value.bottom - e.yOffset) : h(j)(c.value.bottom),
|
|
3180
3208
|
stroke: e.color,
|
|
3181
3209
|
"stroke-width": t.value.chart.grid.stroke,
|
|
3182
3210
|
"stroke-linecap": "round",
|
|
3183
|
-
style: L(`opacity:${
|
|
3184
|
-
}, null, 12,
|
|
3211
|
+
style: L(`opacity:${E.value ? E.value === e.groupId ? 1 : 0.3 : 1};transition:opacity 0.2s ease-in-out; animation: none !important`)
|
|
3212
|
+
}, null, 12, ru)
|
|
3185
3213
|
]))), 256)),
|
|
3186
|
-
(n(!0),
|
|
3187
|
-
style: L(`opacity:${
|
|
3214
|
+
(n(!0), i(b, null, M(Gl.value, (e) => (n(), i("g", {
|
|
3215
|
+
style: L(`opacity:${E.value ? E.value === e.groupId ? 1 : 0.3 : 1};transition:opacity 0.2s ease-in-out`)
|
|
3188
3216
|
}, [
|
|
3189
3217
|
k("text", {
|
|
3190
3218
|
fill: e.color,
|
|
3191
3219
|
"font-size": C.value.dataLabels * 0.8,
|
|
3192
3220
|
"text-anchor": "middle",
|
|
3193
|
-
transform: `translate(${e.x - C.value.dataLabels * 0.8 / 2 +
|
|
3221
|
+
transform: `translate(${e.x - C.value.dataLabels * 0.8 / 2 + ie.value}, ${p.value.isStacked ? c.value.bottom - e.yOffset - e.individualHeight / 2 : c.value.top + c.value.height / 2}) rotate(-90)`
|
|
3194
3222
|
}, re(e.name) + " " + re(e.scaleLabel && e.unique && e.scaleLabel !== e.id ? `-
|
|
3195
|
-
${e.scaleLabel}` : ""), 9,
|
|
3196
|
-
(n(!0),
|
|
3197
|
-
t.value.chart.grid.labels.yAxis.showCrosshairs ? (n(),
|
|
3223
|
+
${e.scaleLabel}` : ""), 9, cu),
|
|
3224
|
+
(n(!0), i(b, null, M(e.yLabels, (u, a) => (n(), i(b, null, [
|
|
3225
|
+
t.value.chart.grid.labels.yAxis.showCrosshairs ? (n(), i("line", {
|
|
3198
3226
|
key: 0,
|
|
3199
|
-
x1: e.x + 3 +
|
|
3200
|
-
x2: e.x +
|
|
3201
|
-
y1: h(j)(
|
|
3202
|
-
y2: h(j)(
|
|
3227
|
+
x1: e.x + 3 + ie.value - t.value.chart.grid.labels.yAxis.crosshairSize - c.value.individualOffsetX,
|
|
3228
|
+
x2: e.x + ie.value - c.value.individualOffsetX,
|
|
3229
|
+
y1: h(j)(u.y),
|
|
3230
|
+
y2: h(j)(u.y),
|
|
3203
3231
|
stroke: e.color,
|
|
3204
3232
|
"stroke-width": 1,
|
|
3205
3233
|
"stroke-linecap": "round",
|
|
3206
3234
|
style: { animation: "none !important" }
|
|
3207
|
-
}, null, 8,
|
|
3235
|
+
}, null, 8, vu)) : g("", !0)
|
|
3208
3236
|
], 64))), 256)),
|
|
3209
|
-
(n(!0),
|
|
3210
|
-
x: e.x - 5 +
|
|
3211
|
-
y: h(j)(
|
|
3237
|
+
(n(!0), i(b, null, M(e.yLabels, (u, a) => (n(), i("text", {
|
|
3238
|
+
x: e.x - 5 + ie.value - c.value.individualOffsetX,
|
|
3239
|
+
y: h(j)(u.y) + C.value.dataLabels / 3,
|
|
3212
3240
|
"font-size": C.value.dataLabels,
|
|
3213
3241
|
"text-anchor": "end",
|
|
3214
3242
|
fill: e.color
|
|
3215
3243
|
}, re(h(ze)(
|
|
3216
3244
|
t.value.chart.grid.labels.yAxis.formatter,
|
|
3217
|
-
|
|
3245
|
+
u.value,
|
|
3218
3246
|
h(lt)({
|
|
3219
|
-
p:
|
|
3220
|
-
v:
|
|
3221
|
-
s:
|
|
3247
|
+
p: u.prefix,
|
|
3248
|
+
v: u.value,
|
|
3249
|
+
s: u.suffix,
|
|
3222
3250
|
r: t.value.chart.grid.labels.yAxis.rounding
|
|
3223
3251
|
}),
|
|
3224
|
-
{ datapoint:
|
|
3225
|
-
)), 9,
|
|
3252
|
+
{ datapoint: u.datapoint, seriesIndex: a }
|
|
3253
|
+
)), 9, du))), 256))
|
|
3226
3254
|
], 4))), 256))
|
|
3227
|
-
], 64)) : (n(!0),
|
|
3228
|
-
key: `yLabel_${
|
|
3255
|
+
], 64)) : (n(!0), i(b, { key: 1 }, M(Za.value, (e, u) => (n(), i("g", {
|
|
3256
|
+
key: `yLabel_${u}`
|
|
3229
3257
|
}, [
|
|
3230
|
-
Ye(e) && e.value >= Xe.value.min && e.value <= Xe.value.max && t.value.chart.grid.labels.yAxis.showCrosshairs ? (n(),
|
|
3258
|
+
Ye(e) && e.value >= Xe.value.min && e.value <= Xe.value.max && t.value.chart.grid.labels.yAxis.showCrosshairs ? (n(), i("line", {
|
|
3231
3259
|
key: 0,
|
|
3232
|
-
x1: c.value.left +
|
|
3233
|
-
x2: c.value.left +
|
|
3260
|
+
x1: c.value.left + ie.value,
|
|
3261
|
+
x2: c.value.left + ie.value - t.value.chart.grid.labels.yAxis.crosshairSize,
|
|
3234
3262
|
y1: h(j)(e.y),
|
|
3235
3263
|
y2: h(j)(e.y),
|
|
3236
3264
|
stroke: t.value.chart.grid.stroke,
|
|
3237
3265
|
"stroke-width": "1",
|
|
3238
3266
|
"stroke-linecap": "round",
|
|
3239
3267
|
style: { animation: "none !important" }
|
|
3240
|
-
}, null, 8,
|
|
3241
|
-
e.value >= Xe.value.min && e.value <= Xe.value.max ? (n(),
|
|
3268
|
+
}, null, 8, hu)) : g("", !0),
|
|
3269
|
+
e.value >= Xe.value.min && e.value <= Xe.value.max ? (n(), i("text", {
|
|
3242
3270
|
key: 1,
|
|
3243
3271
|
x: c.value.scaleLabelX - t.value.chart.grid.labels.yAxis.crosshairSize,
|
|
3244
3272
|
y: h(q)(e.y + C.value.dataLabels / 3),
|
|
@@ -3254,28 +3282,28 @@ const _n = {
|
|
|
3254
3282
|
s: e.suffix,
|
|
3255
3283
|
r: t.value.chart.grid.labels.yAxis.rounding
|
|
3256
3284
|
})
|
|
3257
|
-
) : ""), 9,
|
|
3285
|
+
) : ""), 9, fu)) : g("", !0)
|
|
3258
3286
|
]))), 128))
|
|
3259
3287
|
], 512)) : g("", !0),
|
|
3260
|
-
(n(!0),
|
|
3288
|
+
(n(!0), i(b, null, M(rt.value, (e, u) => (n(), i("g", {
|
|
3261
3289
|
key: `serie_plot_${e.id}`,
|
|
3262
|
-
class: Ze(`serie_plot_${
|
|
3263
|
-
style: L(`opacity:${
|
|
3290
|
+
class: Ze(`serie_plot_${u}`),
|
|
3291
|
+
style: L(`opacity:${E.value ? E.value === e.groupId ? 1 : 0.2 : 1};transition:opacity 0.2s ease-in-out`)
|
|
3264
3292
|
}, [
|
|
3265
|
-
(n(!0),
|
|
3266
|
-
key: `circle_plot_${
|
|
3293
|
+
(n(!0), i(b, null, M(e.plots, (a, r) => (n(), i("g", {
|
|
3294
|
+
key: `circle_plot_${u}_${r}`
|
|
3267
3295
|
}, [
|
|
3268
|
-
a && Ye(a.value) ? (n(), ct(
|
|
3296
|
+
a && Ye(a.value) ? (n(), ct(ga, {
|
|
3269
3297
|
key: 0,
|
|
3270
3298
|
shape: ["triangle", "square", "diamond", "pentagon", "hexagon", "star"].includes(e.shape) ? e.shape : "circle",
|
|
3271
|
-
color: t.value.plot.useGradient ? `url(#plotGradient_${
|
|
3299
|
+
color: t.value.plot.useGradient ? `url(#plotGradient_${u}_${Z.value})` : t.value.plot.dot.useSerieColor ? e.color : t.value.plot.dot.fill,
|
|
3272
3300
|
plot: { x: h(q)(a.x), y: h(q)(a.y) },
|
|
3273
|
-
radius: _.value !== null && _.value === r ||
|
|
3301
|
+
radius: _.value !== null && _.value === r || X.value !== null && X.value === r ? (De.value.plot || 6) * 1.5 : De.value.plot || 6,
|
|
3274
3302
|
stroke: t.value.plot.dot.useSerieColor ? t.value.chart.backgroundColor : e.color,
|
|
3275
3303
|
strokeWidth: t.value.plot.dot.strokeWidth,
|
|
3276
|
-
transition: h(xe) || !t.value.plot.showTransition || _.value !== null && _.value === r ||
|
|
3304
|
+
transition: h(xe) || !t.value.plot.showTransition || _.value !== null && _.value === r || X.value !== null && X.value === r ? void 0 : `all ${t.value.plot.transitionDurationMs}ms ease-in-out`
|
|
3277
3305
|
}, null, 8, ["shape", "color", "plot", "radius", "stroke", "strokeWidth", "transition"])) : g("", !0),
|
|
3278
|
-
a.comment && t.value.chart.comments.show ? (n(),
|
|
3306
|
+
a.comment && t.value.chart.comments.show ? (n(), i("foreignObject", {
|
|
3279
3307
|
key: 1,
|
|
3280
3308
|
style: { overflow: "visible" },
|
|
3281
3309
|
height: "12",
|
|
@@ -3283,17 +3311,17 @@ const _n = {
|
|
|
3283
3311
|
x: a.x - t.value.chart.comments.width / 2 + t.value.chart.comments.offsetX,
|
|
3284
3312
|
y: a.y + t.value.chart.comments.offsetY + 6
|
|
3285
3313
|
}, [
|
|
3286
|
-
k("div",
|
|
3314
|
+
k("div", gu, [
|
|
3287
3315
|
te(l.$slots, "plot-comment", {
|
|
3288
|
-
plot: { ...a, color: e.color, seriesIndex:
|
|
3316
|
+
plot: { ...a, color: e.color, seriesIndex: u, datapointIndex: r }
|
|
3289
3317
|
}, void 0, !0)
|
|
3290
3318
|
])
|
|
3291
|
-
], 8,
|
|
3319
|
+
], 8, mu)) : g("", !0)
|
|
3292
3320
|
]))), 128)),
|
|
3293
|
-
Object.hasOwn(e, "useProgression") && e.useProgression === !0 && !isNaN(h(
|
|
3321
|
+
Object.hasOwn(e, "useProgression") && e.useProgression === !0 && !isNaN(h(ue)(e.plots).trend) ? (n(), i("g", xu, [
|
|
3294
3322
|
k("defs", null, [
|
|
3295
3323
|
k("marker", {
|
|
3296
|
-
id: `plot_arrow_${
|
|
3324
|
+
id: `plot_arrow_${u}`,
|
|
3297
3325
|
markerWidth: 7,
|
|
3298
3326
|
markerHeight: 7,
|
|
3299
3327
|
refX: "0",
|
|
@@ -3303,40 +3331,40 @@ const _n = {
|
|
|
3303
3331
|
k("polygon", {
|
|
3304
3332
|
points: `0 0, 7 ${7 / 2}, 0 7`,
|
|
3305
3333
|
fill: e.color
|
|
3306
|
-
}, null, 8,
|
|
3307
|
-
], 8,
|
|
3334
|
+
}, null, 8, yu)
|
|
3335
|
+
], 8, bu)
|
|
3308
3336
|
]),
|
|
3309
|
-
e.plots.length > 1 ? (n(),
|
|
3337
|
+
e.plots.length > 1 ? (n(), i("line", {
|
|
3310
3338
|
key: 0,
|
|
3311
|
-
x1: h(
|
|
3312
|
-
x2: h(
|
|
3313
|
-
y1: h(j)(h(
|
|
3314
|
-
y2: h(j)(h(
|
|
3339
|
+
x1: h(ue)(e.plots).x1,
|
|
3340
|
+
x2: h(ue)(e.plots).x2,
|
|
3341
|
+
y1: h(j)(h(ue)(e.plots).y1),
|
|
3342
|
+
y2: h(j)(h(ue)(e.plots).y2),
|
|
3315
3343
|
"stroke-width": 1,
|
|
3316
3344
|
stroke: e.color,
|
|
3317
3345
|
"stroke-dasharray": 2,
|
|
3318
|
-
"marker-end": `url(#plot_arrow_${
|
|
3319
|
-
}, null, 8,
|
|
3320
|
-
e.plots.length > 1 ? (n(),
|
|
3346
|
+
"marker-end": `url(#plot_arrow_${u})`
|
|
3347
|
+
}, null, 8, pu)) : g("", !0),
|
|
3348
|
+
e.plots.length > 1 ? (n(), i("text", {
|
|
3321
3349
|
key: 1,
|
|
3322
3350
|
"text-anchor": "middle",
|
|
3323
|
-
x: h(
|
|
3324
|
-
y: h(
|
|
3351
|
+
x: h(ue)(e.plots).x2,
|
|
3352
|
+
y: h(ue)(e.plots).y2 - 6,
|
|
3325
3353
|
"font-size": C.value.plotLabels,
|
|
3326
3354
|
fill: e.color
|
|
3327
3355
|
}, re(h(lt)({
|
|
3328
|
-
v: h(
|
|
3356
|
+
v: h(ue)(e.plots).trend * 100,
|
|
3329
3357
|
s: "%",
|
|
3330
3358
|
r: 2
|
|
3331
|
-
})), 9,
|
|
3359
|
+
})), 9, ku)) : g("", !0)
|
|
3332
3360
|
])) : g("", !0)
|
|
3333
3361
|
], 6))), 128)),
|
|
3334
|
-
(n(!0),
|
|
3362
|
+
(n(!0), i(b, null, M(Re.value, (e, u) => (n(), i("g", {
|
|
3335
3363
|
key: `serie_line_${e.id}`,
|
|
3336
|
-
class: Ze(`serie_line_${
|
|
3337
|
-
style: L(`opacity:${
|
|
3364
|
+
class: Ze(`serie_line_${u}`),
|
|
3365
|
+
style: L(`opacity:${E.value ? E.value === e.groupId ? 1 : 0.2 : 1};transition:opacity 0.2s ease-in-out`)
|
|
3338
3366
|
}, [
|
|
3339
|
-
e.smooth && e.plots.length > 1 && e.curve ? (n(),
|
|
3367
|
+
e.smooth && e.plots.length > 1 && e.curve ? (n(), i("path", {
|
|
3340
3368
|
key: 0,
|
|
3341
3369
|
d: `M${e.curve}`,
|
|
3342
3370
|
stroke: t.value.chart.backgroundColor,
|
|
@@ -3344,7 +3372,7 @@ const _n = {
|
|
|
3344
3372
|
"stroke-dasharray": e.dashed ? t.value.line.strokeWidth * 2 : 0,
|
|
3345
3373
|
fill: "none",
|
|
3346
3374
|
style: L({ transition: h(xe) || !t.value.line.showTransition ? void 0 : `all ${t.value.line.transitionDurationMs}ms ease-in-out` })
|
|
3347
|
-
}, null, 12,
|
|
3375
|
+
}, null, 12, wu)) : e.plots.length > 1 && e.straight ? (n(), i("path", {
|
|
3348
3376
|
key: 1,
|
|
3349
3377
|
d: `M${e.straight}`,
|
|
3350
3378
|
stroke: t.value.chart.backgroundColor,
|
|
@@ -3354,15 +3382,15 @@ const _n = {
|
|
|
3354
3382
|
"stroke-linecap": "round",
|
|
3355
3383
|
"stroke-linejoin": "round",
|
|
3356
3384
|
style: L({ transition: h(xe) || !t.value.line.showTransition ? void 0 : `all ${t.value.line.transitionDurationMs}ms ease-in-out` })
|
|
3357
|
-
}, null, 12,
|
|
3385
|
+
}, null, 12, Su)) : g("", !0)
|
|
3358
3386
|
], 6))), 128)),
|
|
3359
|
-
l.$slots.pattern ? (n(),
|
|
3360
|
-
(n(!0),
|
|
3387
|
+
l.$slots.pattern ? (n(), i("defs", $u, [
|
|
3388
|
+
(n(!0), i(b, null, M(je.value, (e, u) => te(l.$slots, "pattern", Yt({
|
|
3361
3389
|
key: `serie_pattern_slot_${e.id}`
|
|
3362
|
-
}, { ref_for: !0 }, { ...e, seriesIndex: e.slotAbsoluteIndex, patternId: `pattern_${Z.value}_${
|
|
3390
|
+
}, { ref_for: !0 }, { ...e, seriesIndex: e.slotAbsoluteIndex, patternId: `pattern_${Z.value}_${u}` }), void 0, !0)), 128))
|
|
3363
3391
|
])) : g("", !0),
|
|
3364
|
-
|
|
3365
|
-
(n(!0),
|
|
3392
|
+
Qa.value.length && !p.value.isStacked ? (n(), i("g", _u, [
|
|
3393
|
+
(n(!0), i(b, null, M(Qa.value, (e) => (n(), i("path", {
|
|
3366
3394
|
key: e.key,
|
|
3367
3395
|
d: e.d,
|
|
3368
3396
|
fill: e.color,
|
|
@@ -3370,43 +3398,43 @@ const _n = {
|
|
|
3370
3398
|
stroke: "none",
|
|
3371
3399
|
"pointer-events": "none",
|
|
3372
3400
|
style: L({ transition: h(xe) || !t.value.line.showTransition ? void 0 : `all ${t.value.line.transitionDurationMs}ms ease-in-out` })
|
|
3373
|
-
}, null, 12,
|
|
3401
|
+
}, null, 12, Mu))), 128))
|
|
3374
3402
|
])) : g("", !0),
|
|
3375
|
-
(n(!0),
|
|
3403
|
+
(n(!0), i(b, null, M(Re.value, (e, u) => (n(), i("g", {
|
|
3376
3404
|
key: `serie_line_above_${e.id}`,
|
|
3377
|
-
class: Ze(`serie_line_${
|
|
3378
|
-
style: L(`opacity:${
|
|
3405
|
+
class: Ze(`serie_line_${u}`),
|
|
3406
|
+
style: L(`opacity:${E.value ? E.value === e.groupId ? 1 : 0.2 : 1};transition:opacity 0.2s ease-in-out`)
|
|
3379
3407
|
}, [
|
|
3380
|
-
e.useArea && e.plots.length > 1 ? (n(),
|
|
3381
|
-
e.smooth ? (n(!0),
|
|
3382
|
-
a ? (n(),
|
|
3408
|
+
e.useArea && e.plots.length > 1 ? (n(), i("g", Lu, [
|
|
3409
|
+
e.smooth ? (n(!0), i(b, { key: 0 }, M(e.curveAreas, (a, r) => (n(), i(b, { key: r }, [
|
|
3410
|
+
a ? (n(), i("path", {
|
|
3383
3411
|
key: 0,
|
|
3384
3412
|
d: a,
|
|
3385
|
-
fill: t.value.line.area.useGradient ? `url(#areaGradient_${
|
|
3413
|
+
fill: t.value.line.area.useGradient ? `url(#areaGradient_${u}_${Z.value})` : h(vt)(e.color, t.value.line.area.opacity),
|
|
3386
3414
|
style: L({ transition: h(xe) || !t.value.line.showTransition ? void 0 : `all ${t.value.line.transitionDurationMs}ms ease-in-out` })
|
|
3387
|
-
}, null, 12,
|
|
3388
|
-
l.$slots.pattern && a ? (n(),
|
|
3415
|
+
}, null, 12, Cu)) : g("", !0),
|
|
3416
|
+
l.$slots.pattern && a ? (n(), i("path", {
|
|
3389
3417
|
key: 1,
|
|
3390
3418
|
d: a,
|
|
3391
3419
|
fill: `url(#pattern_${Z.value}_${e.slotAbsoluteIndex})`,
|
|
3392
3420
|
style: L({ transition: h(xe) || !t.value.line.showTransition ? void 0 : `all ${t.value.line.transitionDurationMs}ms ease-in-out` })
|
|
3393
|
-
}, null, 12,
|
|
3394
|
-
], 64))), 128)) : (n(!0),
|
|
3395
|
-
a ? (n(),
|
|
3421
|
+
}, null, 12, Au)) : g("", !0)
|
|
3422
|
+
], 64))), 128)) : (n(!0), i(b, { key: 1 }, M(e.area.split(";"), (a, r) => (n(), i(b, { key: r }, [
|
|
3423
|
+
a ? (n(), i("path", {
|
|
3396
3424
|
key: 0,
|
|
3397
3425
|
d: `M${a}Z`,
|
|
3398
|
-
fill: t.value.line.area.useGradient ? `url(#areaGradient_${
|
|
3426
|
+
fill: t.value.line.area.useGradient ? `url(#areaGradient_${u}_${Z.value})` : h(vt)(e.color, t.value.line.area.opacity),
|
|
3399
3427
|
style: L({ transition: h(xe) || !t.value.line.showTransition ? void 0 : `all ${t.value.line.transitionDurationMs}ms ease-in-out` })
|
|
3400
|
-
}, null, 12,
|
|
3401
|
-
l.$slots.pattern && a ? (n(),
|
|
3428
|
+
}, null, 12, zu)) : g("", !0),
|
|
3429
|
+
l.$slots.pattern && a ? (n(), i("path", {
|
|
3402
3430
|
key: 1,
|
|
3403
3431
|
d: `M${a}Z`,
|
|
3404
3432
|
fill: `url(#pattern_${Z.value}_${e.slotAbsoluteIndex})`,
|
|
3405
3433
|
style: L({ transition: h(xe) || !t.value.line.showTransition ? void 0 : `all ${t.value.line.transitionDurationMs}ms ease-in-out` })
|
|
3406
|
-
}, null, 12,
|
|
3434
|
+
}, null, 12, Tu)) : g("", !0)
|
|
3407
3435
|
], 64))), 128))
|
|
3408
3436
|
])) : g("", !0),
|
|
3409
|
-
e.smooth && e.plots.length > 1 && e.curve ? (n(),
|
|
3437
|
+
e.smooth && e.plots.length > 1 && e.curve ? (n(), i("path", {
|
|
3410
3438
|
key: 1,
|
|
3411
3439
|
d: `M${e.curve}`,
|
|
3412
3440
|
stroke: e.color,
|
|
@@ -3415,7 +3443,7 @@ const _n = {
|
|
|
3415
3443
|
fill: "none",
|
|
3416
3444
|
"stroke-linecap": "round",
|
|
3417
3445
|
style: L({ transition: h(xe) || !t.value.line.showTransition ? void 0 : `all ${t.value.line.transitionDurationMs}ms ease-in-out` })
|
|
3418
|
-
}, null, 12,
|
|
3446
|
+
}, null, 12, Iu)) : e.plots.length > 1 && e.straight ? (n(), i("path", {
|
|
3419
3447
|
key: 2,
|
|
3420
3448
|
d: `M${e.straight}`,
|
|
3421
3449
|
stroke: e.color,
|
|
@@ -3425,21 +3453,21 @@ const _n = {
|
|
|
3425
3453
|
"stroke-linecap": "round",
|
|
3426
3454
|
"stroke-linejoin": "round",
|
|
3427
3455
|
style: L({ transition: h(xe) || !t.value.line.showTransition ? void 0 : `all ${t.value.line.transitionDurationMs}ms ease-in-out` })
|
|
3428
|
-
}, null, 12,
|
|
3429
|
-
(n(!0),
|
|
3430
|
-
key: `circle_line_${
|
|
3456
|
+
}, null, 12, Nu)) : g("", !0),
|
|
3457
|
+
(n(!0), i(b, null, M(e.plots, (a, r) => (n(), i(b, {
|
|
3458
|
+
key: `circle_line_${u}_${r}`
|
|
3431
3459
|
}, [
|
|
3432
|
-
!
|
|
3460
|
+
!Ua.value.linePlot && a && Ye(a.value) || Ua.value.linePlot && a && Ye(a.value) && (_.value !== null && _.value === r || X.value !== null && X.value === r) || Ja(e.plots, r) ? (n(), ct(ga, {
|
|
3433
3461
|
key: 0,
|
|
3434
3462
|
shape: ["triangle", "square", "diamond", "pentagon", "hexagon", "star"].includes(e.shape) ? e.shape : "circle",
|
|
3435
|
-
color: t.value.line.useGradient ? `url(#lineGradient_${
|
|
3463
|
+
color: t.value.line.useGradient ? `url(#lineGradient_${u}_${Z.value})` : t.value.line.dot.useSerieColor ? e.color : t.value.line.dot.fill,
|
|
3436
3464
|
plot: { x: h(q)(a.x), y: h(q)(a.y) },
|
|
3437
|
-
radius: _.value !== null && _.value === r ||
|
|
3465
|
+
radius: _.value !== null && _.value === r || X.value !== null && X.value === r ? (De.value.line || 6) * 1.5 : (Ja(e.plots, r), De.value.line || 6),
|
|
3438
3466
|
stroke: t.value.line.dot.useSerieColor ? t.value.chart.backgroundColor : e.color,
|
|
3439
3467
|
strokeWidth: t.value.line.dot.strokeWidth,
|
|
3440
|
-
transition: h(xe) || !t.value.line.showTransition || _.value !== null && _.value === r ||
|
|
3468
|
+
transition: h(xe) || !t.value.line.showTransition || _.value !== null && _.value === r || X.value !== null && X.value === r ? void 0 : `all ${t.value.line.transitionDurationMs}ms ease-in-out`
|
|
3441
3469
|
}, null, 8, ["shape", "color", "plot", "radius", "stroke", "strokeWidth", "transition"])) : g("", !0),
|
|
3442
|
-
a.comment && t.value.chart.comments.show ? (n(),
|
|
3470
|
+
a.comment && t.value.chart.comments.show ? (n(), i("foreignObject", {
|
|
3443
3471
|
key: 1,
|
|
3444
3472
|
style: { overflow: "visible" },
|
|
3445
3473
|
height: "12",
|
|
@@ -3447,17 +3475,17 @@ const _n = {
|
|
|
3447
3475
|
x: a.x - t.value.chart.comments.width / 2 + t.value.chart.comments.offsetX,
|
|
3448
3476
|
y: a.y + t.value.chart.comments.offsetY + 6
|
|
3449
3477
|
}, [
|
|
3450
|
-
k("div",
|
|
3478
|
+
k("div", Fu, [
|
|
3451
3479
|
te(l.$slots, "plot-comment", {
|
|
3452
|
-
plot: { ...a, color: e.color, seriesIndex:
|
|
3480
|
+
plot: { ...a, color: e.color, seriesIndex: u, datapointIndex: r }
|
|
3453
3481
|
}, void 0, !0)
|
|
3454
3482
|
])
|
|
3455
|
-
], 8,
|
|
3483
|
+
], 8, Pu)) : g("", !0)
|
|
3456
3484
|
], 64))), 128)),
|
|
3457
|
-
Object.hasOwn(e, "useProgression") && e.useProgression === !0 && !isNaN(h(
|
|
3485
|
+
Object.hasOwn(e, "useProgression") && e.useProgression === !0 && !isNaN(h(ue)(e.plots).trend) ? (n(), i("g", Ru, [
|
|
3458
3486
|
k("defs", null, [
|
|
3459
3487
|
k("marker", {
|
|
3460
|
-
id: `line_arrow_${
|
|
3488
|
+
id: `line_arrow_${u}`,
|
|
3461
3489
|
markerWidth: 7,
|
|
3462
3490
|
markerHeight: 7,
|
|
3463
3491
|
refX: "0",
|
|
@@ -3467,49 +3495,49 @@ const _n = {
|
|
|
3467
3495
|
k("polygon", {
|
|
3468
3496
|
points: `0 0, 7 ${7 / 2}, 0 7`,
|
|
3469
3497
|
fill: e.color
|
|
3470
|
-
}, null, 8,
|
|
3471
|
-
], 8,
|
|
3498
|
+
}, null, 8, Vu)
|
|
3499
|
+
], 8, Ou)
|
|
3472
3500
|
]),
|
|
3473
|
-
e.plots.length > 1 ? (n(),
|
|
3501
|
+
e.plots.length > 1 ? (n(), i("line", {
|
|
3474
3502
|
key: 0,
|
|
3475
|
-
x1: h(
|
|
3476
|
-
x2: h(
|
|
3477
|
-
y1: h(j)(h(
|
|
3478
|
-
y2: h(j)(h(
|
|
3503
|
+
x1: h(ue)(e.plots).x1,
|
|
3504
|
+
x2: h(ue)(e.plots).x2,
|
|
3505
|
+
y1: h(j)(h(ue)(e.plots).y1),
|
|
3506
|
+
y2: h(j)(h(ue)(e.plots).y2),
|
|
3479
3507
|
"stroke-width": 1,
|
|
3480
3508
|
stroke: e.color,
|
|
3481
3509
|
"stroke-dasharray": 2,
|
|
3482
|
-
"marker-end": `url(#line_arrow_${
|
|
3483
|
-
}, null, 8,
|
|
3484
|
-
e.plots.length > 1 ? (n(),
|
|
3510
|
+
"marker-end": `url(#line_arrow_${u})`
|
|
3511
|
+
}, null, 8, Bu)) : g("", !0),
|
|
3512
|
+
e.plots.length > 1 ? (n(), i("text", {
|
|
3485
3513
|
key: 1,
|
|
3486
3514
|
"text-anchor": "middle",
|
|
3487
|
-
x: h(
|
|
3488
|
-
y: h(
|
|
3515
|
+
x: h(ue)(e.plots).x2,
|
|
3516
|
+
y: h(ue)(e.plots).y2 - 6,
|
|
3489
3517
|
"font-size": C.value.plotLabels,
|
|
3490
3518
|
fill: e.color
|
|
3491
3519
|
}, re(h(lt)({
|
|
3492
|
-
v: h(
|
|
3520
|
+
v: h(ue)(e.plots).trend * 100,
|
|
3493
3521
|
s: "%",
|
|
3494
3522
|
r: 2
|
|
3495
|
-
})), 9,
|
|
3523
|
+
})), 9, Eu)) : g("", !0)
|
|
3496
3524
|
])) : g("", !0)
|
|
3497
3525
|
], 6))), 128)),
|
|
3498
|
-
(t.value.bar.labels.show || t.value.bar.serieName.show) && p.value.dataLabels.show ? (n(),
|
|
3499
|
-
(n(!0),
|
|
3526
|
+
(t.value.bar.labels.show || t.value.bar.serieName.show) && p.value.dataLabels.show ? (n(), i("g", Hu, [
|
|
3527
|
+
(n(!0), i(b, null, M(Tt.value, (e, u) => (n(), i(b, {
|
|
3500
3528
|
key: `xLabel_bar_${e.id}`
|
|
3501
3529
|
}, [
|
|
3502
|
-
(n(!0),
|
|
3503
|
-
key: `xLabel_bar_${
|
|
3530
|
+
(n(!0), i(b, null, M(e.plots, (a, r) => (n(), i(b, {
|
|
3531
|
+
key: `xLabel_bar_${u}_${r}`
|
|
3504
3532
|
}, [
|
|
3505
|
-
a && (!Object.hasOwn(e, "dataLabels") || e.dataLabels === !0 || _.value !== null && _.value === r ||
|
|
3533
|
+
a && (!Object.hasOwn(e, "dataLabels") || e.dataLabels === !0 || _.value !== null && _.value === r || X.value !== null && X.value === r) && t.value.bar.labels.show ? (n(), i("text", {
|
|
3506
3534
|
key: 0,
|
|
3507
|
-
x: p.value.useIndividualScale && p.value.isStacked ? a.x + ve.value.line / 2 :
|
|
3535
|
+
x: p.value.useIndividualScale && p.value.isStacked ? a.x + ve.value.line / 2 : ia(a) + Sl() / 2 - sa.value / 2,
|
|
3508
3536
|
y: h(q)(a.y) + (a.value >= 0 ? t.value.bar.labels.offsetY : -t.value.bar.labels.offsetY * 3),
|
|
3509
3537
|
"text-anchor": "middle",
|
|
3510
3538
|
"font-size": C.value.plotLabels,
|
|
3511
3539
|
fill: t.value.bar.labels.color,
|
|
3512
|
-
style: L(`opacity:${
|
|
3540
|
+
style: L(`opacity:${E.value ? E.value === e.groupId ? 1 : 0.2 : 1};transition:opacity 0.2s ease-in-out`)
|
|
3513
3541
|
}, re(Ye(a.value) ? h(ze)(
|
|
3514
3542
|
t.value.bar.labels.formatter,
|
|
3515
3543
|
a.value,
|
|
@@ -3523,8 +3551,8 @@ const _n = {
|
|
|
3523
3551
|
datapoint: a,
|
|
3524
3552
|
serie: e
|
|
3525
3553
|
}
|
|
3526
|
-
) : ""), 13,
|
|
3527
|
-
a && t.value.bar.serieName.show ? (n(),
|
|
3554
|
+
) : ""), 13, Du)) : g("", !0),
|
|
3555
|
+
a && t.value.bar.serieName.show ? (n(), i("text", {
|
|
3528
3556
|
key: 1,
|
|
3529
3557
|
x: p.value.useIndividualScale && p.value.isStacked ? a.x + ve.value.line / 2 : a.x + Sl() * 1.1,
|
|
3530
3558
|
y: a.y + (a.value > 0 ? t.value.bar.serieName.offsetY : -t.value.bar.serieName.offsetY * 3),
|
|
@@ -3532,29 +3560,29 @@ const _n = {
|
|
|
3532
3560
|
"font-size": C.value.plotLabels,
|
|
3533
3561
|
fill: t.value.bar.serieName.useSerieColor ? e.color : t.value.bar.serieName.color,
|
|
3534
3562
|
"font-weight": t.value.bar.serieName.bold ? "bold" : "normal",
|
|
3535
|
-
style: L(`opacity:${
|
|
3563
|
+
style: L(`opacity:${E.value ? E.value === e.groupId ? 1 : 0.2 : 1};transition:opacity 0.2s ease-in-out`)
|
|
3536
3564
|
}, re(t.value.bar.serieName.useAbbreviation ? h(un)({
|
|
3537
3565
|
source: e.name,
|
|
3538
3566
|
length: t.value.bar.serieName.abbreviationSize
|
|
3539
|
-
}) : e.name), 13,
|
|
3567
|
+
}) : e.name), 13, Wu)) : g("", !0)
|
|
3540
3568
|
], 64))), 128))
|
|
3541
3569
|
], 64))), 128))
|
|
3542
3570
|
])) : g("", !0),
|
|
3543
|
-
t.value.plot.labels.show && p.value.dataLabels.show ? (n(),
|
|
3544
|
-
(n(!0),
|
|
3571
|
+
t.value.plot.labels.show && p.value.dataLabels.show ? (n(), i("g", Xu, [
|
|
3572
|
+
(n(!0), i(b, null, M(rt.value, (e, u) => (n(), i(b, {
|
|
3545
3573
|
key: `xLabel_plot_${e.id}`
|
|
3546
3574
|
}, [
|
|
3547
|
-
(n(!0),
|
|
3548
|
-
key: `xLabel_plot_${
|
|
3575
|
+
(n(!0), i(b, null, M(e.plots, (a, r) => (n(), i(b, {
|
|
3576
|
+
key: `xLabel_plot_${u}_${r}`
|
|
3549
3577
|
}, [
|
|
3550
|
-
a && !Object.hasOwn(e, "dataLabels") || e.dataLabels === !0 || _.value !== null && _.value === r ||
|
|
3578
|
+
a && !Object.hasOwn(e, "dataLabels") || e.dataLabels === !0 || _.value !== null && _.value === r || X.value !== null && X.value === r ? (n(), i("text", {
|
|
3551
3579
|
key: 0,
|
|
3552
3580
|
x: a.x,
|
|
3553
3581
|
y: a.y + t.value.plot.labels.offsetY,
|
|
3554
3582
|
"text-anchor": "middle",
|
|
3555
3583
|
"font-size": C.value.plotLabels,
|
|
3556
3584
|
fill: t.value.plot.labels.color,
|
|
3557
|
-
style: L(`opacity:${
|
|
3585
|
+
style: L(`opacity:${E.value ? E.value === e.groupId ? 1 : 0.2 : 1};transition:opacity 0.2s ease-in-out`)
|
|
3558
3586
|
}, re(Ye(a.value) ? h(ze)(
|
|
3559
3587
|
t.value.plot.labels.formatter,
|
|
3560
3588
|
a.value,
|
|
@@ -3568,18 +3596,18 @@ const _n = {
|
|
|
3568
3596
|
datapoint: a,
|
|
3569
3597
|
serie: e
|
|
3570
3598
|
}
|
|
3571
|
-
) : ""), 13,
|
|
3599
|
+
) : ""), 13, Yu)) : g("", !0)
|
|
3572
3600
|
], 64))), 128))
|
|
3573
3601
|
], 64))), 128))
|
|
3574
|
-
])) : (n(),
|
|
3575
|
-
(n(!0),
|
|
3602
|
+
])) : (n(), i("g", Gu, [
|
|
3603
|
+
(n(!0), i(b, null, M(rt.value, (e, u) => (n(), i(b, {
|
|
3576
3604
|
key: `xLabel_plot_${e.id}`
|
|
3577
3605
|
}, [
|
|
3578
|
-
(n(!0),
|
|
3579
|
-
key: `xLabel_plot_${
|
|
3606
|
+
(n(!0), i(b, null, M(e.plots, (a, r) => (n(), i(b, {
|
|
3607
|
+
key: `xLabel_plot_${u}_${r}`
|
|
3580
3608
|
}, [
|
|
3581
|
-
t.value.plot.tag.followValue ? (n(),
|
|
3582
|
-
[
|
|
3609
|
+
t.value.plot.tag.followValue ? (n(), i(b, { key: 1 }, [
|
|
3610
|
+
[X.value, _.value, ae.value].includes(r) && e.useTag ? (n(), i("line", {
|
|
3583
3611
|
key: 0,
|
|
3584
3612
|
class: "vue-ui-xy-tag-plot",
|
|
3585
3613
|
x1: c.value.left,
|
|
@@ -3590,15 +3618,15 @@ const _n = {
|
|
|
3590
3618
|
"stroke-linecap": "round",
|
|
3591
3619
|
"stroke-dasharray": "2",
|
|
3592
3620
|
stroke: e.color
|
|
3593
|
-
}, null, 8,
|
|
3594
|
-
], 64)) : (n(),
|
|
3595
|
-
a && r === 0 && e.useTag && e.useTag === "start" ? (n(),
|
|
3621
|
+
}, null, 8, Ju)) : g("", !0)
|
|
3622
|
+
], 64)) : (n(), i(b, { key: 0 }, [
|
|
3623
|
+
a && r === 0 && e.useTag && e.useTag === "start" ? (n(), i("foreignObject", {
|
|
3596
3624
|
key: 0,
|
|
3597
3625
|
x: a.x,
|
|
3598
3626
|
y: a.y - 20,
|
|
3599
3627
|
height: 24,
|
|
3600
3628
|
width: "150",
|
|
3601
|
-
style: L(`overflow: visible; opacity:${
|
|
3629
|
+
style: L(`overflow: visible; opacity:${E.value ? E.value === e.groupId ? 1 : 0.2 : 1};transition:opacity 0.2s ease-in-out`)
|
|
3602
3630
|
}, [
|
|
3603
3631
|
k("div", {
|
|
3604
3632
|
style: L(`padding: 3px; background:${h(vt)(e.color, 80)};color:${h(dt)(e.color)};width:fit-content;font-size:${C.value.plotLabels}px;border-radius: 2px;`),
|
|
@@ -3612,15 +3640,15 @@ const _n = {
|
|
|
3612
3640
|
serieName: e.name
|
|
3613
3641
|
}
|
|
3614
3642
|
)
|
|
3615
|
-
}, null, 12,
|
|
3616
|
-
], 12,
|
|
3617
|
-
a && r === e.plots.length - 1 && e.useTag && e.useTag === "end" ? (n(),
|
|
3643
|
+
}, null, 12, qu)
|
|
3644
|
+
], 12, Uu)) : g("", !0),
|
|
3645
|
+
a && r === e.plots.length - 1 && e.useTag && e.useTag === "end" ? (n(), i("foreignObject", {
|
|
3618
3646
|
key: 1,
|
|
3619
3647
|
x: a.x - e.name.length * (C.value.plotLabels / 2),
|
|
3620
3648
|
y: a.y - 20,
|
|
3621
3649
|
height: 24,
|
|
3622
3650
|
width: "150",
|
|
3623
|
-
style: L(`overflow: visible; opacity:${
|
|
3651
|
+
style: L(`overflow: visible; opacity:${E.value ? E.value === e.groupId ? 1 : 0.2 : 1};transition:opacity 0.2s ease-in-out`)
|
|
3624
3652
|
}, [
|
|
3625
3653
|
k("div", {
|
|
3626
3654
|
style: L(`padding: 3px; background:${h(vt)(e.color, 80)};color:${h(dt)(e.color)};width:fit-content;font-size:${C.value.plotLabels}px;border-radius: 2px;`),
|
|
@@ -3634,27 +3662,27 @@ const _n = {
|
|
|
3634
3662
|
serieName: e.name
|
|
3635
3663
|
}
|
|
3636
3664
|
)
|
|
3637
|
-
}, null, 12,
|
|
3638
|
-
], 12,
|
|
3665
|
+
}, null, 12, Ku)
|
|
3666
|
+
], 12, Zu)) : g("", !0)
|
|
3639
3667
|
], 64))
|
|
3640
3668
|
], 64))), 128))
|
|
3641
3669
|
], 64))), 128))
|
|
3642
3670
|
])),
|
|
3643
|
-
t.value.line.labels.show && p.value.dataLabels.show ? (n(),
|
|
3644
|
-
(n(!0),
|
|
3671
|
+
t.value.line.labels.show && p.value.dataLabels.show ? (n(), i("g", Qu, [
|
|
3672
|
+
(n(!0), i(b, null, M(Re.value, (e, u) => (n(), i(b, {
|
|
3645
3673
|
key: `xLabel_line_${e.id}`
|
|
3646
3674
|
}, [
|
|
3647
|
-
(n(!0),
|
|
3648
|
-
key: `xLabel_line_${
|
|
3675
|
+
(n(!0), i(b, null, M(e.plots, (a, r) => (n(), i(b, {
|
|
3676
|
+
key: `xLabel_line_${u}_${r}`
|
|
3649
3677
|
}, [
|
|
3650
|
-
a && !Object.hasOwn(e, "dataLabels") || e.dataLabels === !0 || _.value !== null && _.value === r ||
|
|
3678
|
+
a && !Object.hasOwn(e, "dataLabels") || e.dataLabels === !0 || _.value !== null && _.value === r || X.value !== null && X.value === r ? (n(), i("text", {
|
|
3651
3679
|
key: 0,
|
|
3652
3680
|
x: a.x,
|
|
3653
3681
|
y: a.y + (a.value >= 0 ? t.value.line.labels.offsetY : -t.value.line.labels.offsetY * 3),
|
|
3654
3682
|
"text-anchor": "middle",
|
|
3655
3683
|
"font-size": C.value.plotLabels,
|
|
3656
3684
|
fill: t.value.line.labels.color,
|
|
3657
|
-
style: L(`opacity:${
|
|
3685
|
+
style: L(`opacity:${E.value ? E.value === e.groupId ? 1 : 0.2 : 1};transition:opacity 0.2s ease-in-out`)
|
|
3658
3686
|
}, re(Ye(a.value) ? h(ze)(
|
|
3659
3687
|
t.value.line.labels.formatter,
|
|
3660
3688
|
a.value,
|
|
@@ -3668,18 +3696,18 @@ const _n = {
|
|
|
3668
3696
|
datapoint: a,
|
|
3669
3697
|
serie: e
|
|
3670
3698
|
}
|
|
3671
|
-
) : ""), 13,
|
|
3699
|
+
) : ""), 13, ju)) : g("", !0)
|
|
3672
3700
|
], 64))), 128))
|
|
3673
3701
|
], 64))), 128))
|
|
3674
|
-
])) : (n(),
|
|
3675
|
-
(n(!0),
|
|
3702
|
+
])) : (n(), i("g", es, [
|
|
3703
|
+
(n(!0), i(b, null, M(Re.value, (e, u) => (n(), i(b, {
|
|
3676
3704
|
key: `xLabel_line_${e.id}`
|
|
3677
3705
|
}, [
|
|
3678
|
-
(n(!0),
|
|
3679
|
-
key: `xLabel_line_${
|
|
3706
|
+
(n(!0), i(b, null, M(e.plots, (a, r) => (n(), i(b, {
|
|
3707
|
+
key: `xLabel_line_${u}_${r}`
|
|
3680
3708
|
}, [
|
|
3681
|
-
t.value.line.tag.followValue ? (n(),
|
|
3682
|
-
[
|
|
3709
|
+
t.value.line.tag.followValue ? (n(), i(b, { key: 1 }, [
|
|
3710
|
+
[X.value, _.value, ae.value].includes(r) && e.useTag ? (n(), i("line", {
|
|
3683
3711
|
key: 0,
|
|
3684
3712
|
class: "vue-ui-xy-tag-line",
|
|
3685
3713
|
x1: c.value.left,
|
|
@@ -3691,14 +3719,14 @@ const _n = {
|
|
|
3691
3719
|
"stroke-dasharray": "2",
|
|
3692
3720
|
stroke: e.color
|
|
3693
3721
|
}, null, 8, ns)) : g("", !0)
|
|
3694
|
-
], 64)) : (n(),
|
|
3695
|
-
a && r === 0 && e.useTag && e.useTag === "start" ? (n(),
|
|
3722
|
+
], 64)) : (n(), i(b, { key: 0 }, [
|
|
3723
|
+
a && r === 0 && e.useTag && e.useTag === "start" ? (n(), i("foreignObject", {
|
|
3696
3724
|
key: 0,
|
|
3697
3725
|
x: a.x,
|
|
3698
3726
|
y: a.y - 20,
|
|
3699
3727
|
height: 24,
|
|
3700
3728
|
width: "150",
|
|
3701
|
-
style: L(`overflow: visible; opacity:${
|
|
3729
|
+
style: L(`overflow: visible; opacity:${E.value ? E.value === e.groupId ? 1 : 0.2 : 1};transition:opacity 0.2s ease-in-out`)
|
|
3702
3730
|
}, [
|
|
3703
3731
|
k("div", {
|
|
3704
3732
|
style: L(`padding: 3px; background:${h(vt)(e.color, 80)};color:${h(dt)(e.color)};width:fit-content;font-size:${C.value.plotLabels}px;border-radius: 2px;`),
|
|
@@ -3714,13 +3742,13 @@ const _n = {
|
|
|
3714
3742
|
)
|
|
3715
3743
|
}, null, 12, ls)
|
|
3716
3744
|
], 12, ts)) : g("", !0),
|
|
3717
|
-
a && r === e.plots.length - 1 && e.useTag && e.useTag === "end" ? (n(),
|
|
3745
|
+
a && r === e.plots.length - 1 && e.useTag && e.useTag === "end" ? (n(), i("foreignObject", {
|
|
3718
3746
|
key: 1,
|
|
3719
3747
|
x: a.x,
|
|
3720
3748
|
y: a.y - 20,
|
|
3721
3749
|
height: 24,
|
|
3722
3750
|
width: "150",
|
|
3723
|
-
style: L(`overflow: visible; opacity:${
|
|
3751
|
+
style: L(`overflow: visible; opacity:${E.value ? E.value === e.groupId ? 1 : 0.2 : 1};transition:opacity 0.2s ease-in-out`)
|
|
3724
3752
|
}, [
|
|
3725
3753
|
k("div", {
|
|
3726
3754
|
style: L(`padding: 3px; background:${h(vt)(e.color, 80)};color:${h(dt)(e.color)};width:fit-content;font-size:${C.value.plotLabels}px;border-radius: 2px;`),
|
|
@@ -3740,20 +3768,20 @@ const _n = {
|
|
|
3740
3768
|
], 64))), 128))
|
|
3741
3769
|
], 64))), 128))
|
|
3742
3770
|
])),
|
|
3743
|
-
(n(!0),
|
|
3771
|
+
(n(!0), i(b, null, M(Re.value, (e, u) => (n(), i(b, {
|
|
3744
3772
|
key: `xLabel_line_${e.id}`
|
|
3745
3773
|
}, [
|
|
3746
|
-
(n(!0),
|
|
3747
|
-
key: `xLabel_line_${
|
|
3774
|
+
(n(!0), i(b, null, M(e.plots, (a, r) => (n(), i(b, {
|
|
3775
|
+
key: `xLabel_line_${u}_${r}`
|
|
3748
3776
|
}, [
|
|
3749
|
-
a && r === 0 && e.showSerieName && e.showSerieName === "start" ? (n(),
|
|
3777
|
+
a && r === 0 && e.showSerieName && e.showSerieName === "start" ? (n(), i("text", {
|
|
3750
3778
|
key: 0,
|
|
3751
3779
|
x: a.x - C.value.plotLabels,
|
|
3752
3780
|
y: a.y,
|
|
3753
3781
|
"font-size": C.value.plotLabels,
|
|
3754
3782
|
"text-anchor": "end",
|
|
3755
3783
|
fill: e.color,
|
|
3756
|
-
innerHTML: h(
|
|
3784
|
+
innerHTML: h(ma)({
|
|
3757
3785
|
content: e.name,
|
|
3758
3786
|
fontSize: C.value.plotLabels,
|
|
3759
3787
|
fill: e.color,
|
|
@@ -3761,16 +3789,16 @@ const _n = {
|
|
|
3761
3789
|
y: a.y,
|
|
3762
3790
|
maxWords: 2
|
|
3763
3791
|
}),
|
|
3764
|
-
style: L(`opacity:${
|
|
3765
|
-
}, null, 12,
|
|
3766
|
-
a && r === e.plots.length - 1 && e.showSerieName && e.showSerieName === "end" ? (n(),
|
|
3792
|
+
style: L(`opacity:${E.value ? E.value === e.groupId ? 1 : 0.2 : 1};transition:opacity 0.2s ease-in-out`)
|
|
3793
|
+
}, null, 12, is)) : g("", !0),
|
|
3794
|
+
a && r === e.plots.length - 1 && e.showSerieName && e.showSerieName === "end" ? (n(), i("text", {
|
|
3767
3795
|
key: 1,
|
|
3768
3796
|
x: a.x + C.value.plotLabels,
|
|
3769
3797
|
y: a.y,
|
|
3770
3798
|
"font-size": C.value.plotLabels,
|
|
3771
3799
|
"text-anchor": "start",
|
|
3772
3800
|
fill: e.color,
|
|
3773
|
-
innerHTML: h(
|
|
3801
|
+
innerHTML: h(ma)({
|
|
3774
3802
|
content: e.name,
|
|
3775
3803
|
fontSize: C.value.plotLabels,
|
|
3776
3804
|
fill: e.color,
|
|
@@ -3778,24 +3806,24 @@ const _n = {
|
|
|
3778
3806
|
y: a.y,
|
|
3779
3807
|
maxWords: 2
|
|
3780
3808
|
}),
|
|
3781
|
-
style: L(`opacity:${
|
|
3782
|
-
}, null, 12,
|
|
3809
|
+
style: L(`opacity:${E.value ? E.value === e.groupId ? 1 : 0.2 : 1};transition:opacity 0.2s ease-in-out`)
|
|
3810
|
+
}, null, 12, us)) : g("", !0)
|
|
3783
3811
|
], 64))), 128))
|
|
3784
3812
|
], 64))), 128)),
|
|
3785
|
-
(n(!0),
|
|
3813
|
+
(n(!0), i(b, null, M(rt.value, (e, u) => (n(), i(b, {
|
|
3786
3814
|
key: `xLabel_plot_${e.id}`
|
|
3787
3815
|
}, [
|
|
3788
|
-
(n(!0),
|
|
3789
|
-
key: `xLabel_plot_${
|
|
3816
|
+
(n(!0), i(b, null, M(e.plots, (a, r) => (n(), i(b, {
|
|
3817
|
+
key: `xLabel_plot_${u}_${r}`
|
|
3790
3818
|
}, [
|
|
3791
|
-
a && r === 0 && e.showSerieName && e.showSerieName === "start" ? (n(),
|
|
3819
|
+
a && r === 0 && e.showSerieName && e.showSerieName === "start" ? (n(), i("text", {
|
|
3792
3820
|
key: 0,
|
|
3793
3821
|
x: a.x - C.value.plotLabels,
|
|
3794
3822
|
y: a.y,
|
|
3795
3823
|
"font-size": C.value.plotLabels,
|
|
3796
3824
|
"text-anchor": "end",
|
|
3797
3825
|
fill: e.color,
|
|
3798
|
-
innerHTML: h(
|
|
3826
|
+
innerHTML: h(ma)({
|
|
3799
3827
|
content: e.name,
|
|
3800
3828
|
fontSize: C.value.plotLabels,
|
|
3801
3829
|
fill: e.color,
|
|
@@ -3803,16 +3831,16 @@ const _n = {
|
|
|
3803
3831
|
y: a.y,
|
|
3804
3832
|
maxWords: 2
|
|
3805
3833
|
}),
|
|
3806
|
-
style: L(`opacity:${
|
|
3834
|
+
style: L(`opacity:${E.value ? E.value === e.groupId ? 1 : 0.2 : 1};transition:opacity 0.2s ease-in-out`)
|
|
3807
3835
|
}, null, 12, ss)) : g("", !0),
|
|
3808
|
-
a && r === e.plots.length - 1 && e.showSerieName && e.showSerieName === "end" ? (n(),
|
|
3836
|
+
a && r === e.plots.length - 1 && e.showSerieName && e.showSerieName === "end" ? (n(), i("text", {
|
|
3809
3837
|
key: 1,
|
|
3810
3838
|
x: a.x + C.value.plotLabels,
|
|
3811
3839
|
y: a.y,
|
|
3812
3840
|
"font-size": C.value.plotLabels,
|
|
3813
3841
|
"text-anchor": "start",
|
|
3814
3842
|
fill: e.color,
|
|
3815
|
-
innerHTML: h(
|
|
3843
|
+
innerHTML: h(ma)({
|
|
3816
3844
|
content: e.name,
|
|
3817
3845
|
fontSize: C.value.plotLabels,
|
|
3818
3846
|
fill: e.color,
|
|
@@ -3820,14 +3848,14 @@ const _n = {
|
|
|
3820
3848
|
y: a.y,
|
|
3821
3849
|
maxWords: 2
|
|
3822
3850
|
}),
|
|
3823
|
-
style: L(`opacity:${
|
|
3851
|
+
style: L(`opacity:${E.value ? E.value === e.groupId ? 1 : 0.2 : 1};transition:opacity 0.2s ease-in-out`)
|
|
3824
3852
|
}, null, 12, rs)) : g("", !0)
|
|
3825
3853
|
], 64))), 128))
|
|
3826
3854
|
], 64))), 128)),
|
|
3827
|
-
p.value.useIndividualScale && !p.value.isStacked ? (n(),
|
|
3855
|
+
p.value.useIndividualScale && !p.value.isStacked ? (n(), i(b, { key: 13 }, [
|
|
3828
3856
|
k("defs", null, [
|
|
3829
|
-
(n(!0),
|
|
3830
|
-
id: `individual_scale_gradient_${Z.value}_${
|
|
3857
|
+
(n(!0), i(b, null, M(Gl.value, (e, u) => (n(), i("linearGradient", {
|
|
3858
|
+
id: `individual_scale_gradient_${Z.value}_${u}`,
|
|
3831
3859
|
x1: "0%",
|
|
3832
3860
|
x2: "100%",
|
|
3833
3861
|
y1: "0%",
|
|
@@ -3845,18 +3873,18 @@ const _n = {
|
|
|
3845
3873
|
}, null, 8, ds)
|
|
3846
3874
|
], 8, cs))), 256))
|
|
3847
3875
|
]),
|
|
3848
|
-
(n(!0),
|
|
3849
|
-
x: e.x - t.value.chart.grid.labels.yAxis.labelWidth +
|
|
3876
|
+
(n(!0), i(b, null, M(Gl.value, (e, u) => (n(), i("rect", {
|
|
3877
|
+
x: e.x - t.value.chart.grid.labels.yAxis.labelWidth + ie.value - c.value.individualOffsetX,
|
|
3850
3878
|
y: c.value.top,
|
|
3851
3879
|
width: t.value.chart.grid.labels.yAxis.labelWidth + c.value.individualOffsetX,
|
|
3852
3880
|
height: c.value.height < 0 ? 10 : c.value.height,
|
|
3853
|
-
fill:
|
|
3854
|
-
onMouseenter: (a) =>
|
|
3855
|
-
onMouseleave: s[0] || (s[0] = (a) =>
|
|
3881
|
+
fill: E.value === e.groupId ? `url(#individual_scale_gradient_${Z.value}_${u})` : "transparent",
|
|
3882
|
+
onMouseenter: (a) => E.value = e.groupId,
|
|
3883
|
+
onMouseleave: s[0] || (s[0] = (a) => E.value = null)
|
|
3856
3884
|
}, null, 40, hs))), 256))
|
|
3857
3885
|
], 64)) : g("", !0),
|
|
3858
3886
|
k("g", null, [
|
|
3859
|
-
t.value.chart.grid.labels.axis.yLabel && !p.value.useIndividualScale ? (n(),
|
|
3887
|
+
t.value.chart.grid.labels.axis.yLabel && !p.value.useIndividualScale ? (n(), i("text", {
|
|
3860
3888
|
key: 0,
|
|
3861
3889
|
ref_key: "yAxisLabel",
|
|
3862
3890
|
ref: Zt,
|
|
@@ -3866,47 +3894,47 @@ const _n = {
|
|
|
3866
3894
|
"text-anchor": "middle",
|
|
3867
3895
|
style: { transition: "none" }
|
|
3868
3896
|
}, re(t.value.chart.grid.labels.axis.yLabel), 9, fs)) : g("", !0),
|
|
3869
|
-
t.value.chart.grid.labels.axis.xLabel ? (n(),
|
|
3897
|
+
t.value.chart.grid.labels.axis.xLabel ? (n(), i("text", {
|
|
3870
3898
|
key: 1,
|
|
3871
3899
|
ref_key: "xAxisLabel",
|
|
3872
3900
|
ref: qt,
|
|
3873
3901
|
"text-anchor": "middle",
|
|
3874
3902
|
x: le.value / 2,
|
|
3875
|
-
y:
|
|
3903
|
+
y: W.value - 3,
|
|
3876
3904
|
"font-size": C.value.yAxis,
|
|
3877
3905
|
fill: t.value.chart.grid.labels.color
|
|
3878
3906
|
}, re(t.value.chart.grid.labels.axis.xLabel), 9, ms)) : g("", !0)
|
|
3879
3907
|
]),
|
|
3880
|
-
t.value.chart.grid.labels.xAxisLabels.show ? (n(),
|
|
3908
|
+
t.value.chart.grid.labels.xAxisLabels.show ? (n(), i("g", {
|
|
3881
3909
|
key: 14,
|
|
3882
3910
|
ref_key: "timeLabelsEls",
|
|
3883
3911
|
ref: Se
|
|
3884
3912
|
}, [
|
|
3885
|
-
l.$slots["time-label"] ? (n(!0),
|
|
3913
|
+
l.$slots["time-label"] ? (n(!0), i(b, { key: 0 }, M(D.value, (e, u) => te(l.$slots, "time-label", Yt({
|
|
3886
3914
|
key: `time_label_${e.id}`,
|
|
3887
3915
|
ref_for: !0
|
|
3888
3916
|
}, {
|
|
3889
|
-
x: c.value.left + c.value.width /
|
|
3917
|
+
x: c.value.left + c.value.width / S.value * u + c.value.width / S.value / 2,
|
|
3890
3918
|
y: c.value.bottom,
|
|
3891
3919
|
fontSize: C.value.xAxis,
|
|
3892
3920
|
fill: t.value.chart.grid.labels.xAxisLabels.color,
|
|
3893
|
-
transform: `translate(${c.value.left + c.value.width /
|
|
3921
|
+
transform: `translate(${c.value.left + c.value.width / S.value * u + c.value.width / S.value / 2}, ${c.value.bottom + C.value.xAxis * 1.3 + t.value.chart.grid.labels.xAxisLabels.yOffset}), rotate(${t.value.chart.grid.labels.xAxisLabels.rotation})`,
|
|
3894
3922
|
absoluteIndex: e.absoluteIndex,
|
|
3895
3923
|
content: e.text,
|
|
3896
3924
|
textAnchor: t.value.chart.grid.labels.xAxisLabels.rotation > 0 ? "start" : t.value.chart.grid.labels.xAxisLabels.rotation < 0 ? "end" : "middle",
|
|
3897
3925
|
show: e && e.text
|
|
3898
|
-
}), void 0, !0)), 128)) : (n(!0),
|
|
3899
|
-
key: `time_label_${
|
|
3926
|
+
}), void 0, !0)), 128)) : (n(!0), i(b, { key: 1 }, M(D.value, (e, u) => (n(), i("g", {
|
|
3927
|
+
key: `time_label_${u}`
|
|
3900
3928
|
}, [
|
|
3901
|
-
e && e.text ? (n(),
|
|
3929
|
+
e && e.text ? (n(), i(b, { key: 0 }, [
|
|
3902
3930
|
String(e.text).includes(`
|
|
3903
|
-
`) ? (n(),
|
|
3931
|
+
`) ? (n(), i("text", {
|
|
3904
3932
|
key: 1,
|
|
3905
3933
|
class: "vue-data-ui-time-label",
|
|
3906
3934
|
"text-anchor": t.value.chart.grid.labels.xAxisLabels.rotation > 0 ? "start" : t.value.chart.grid.labels.xAxisLabels.rotation < 0 ? "end" : "middle",
|
|
3907
3935
|
"font-size": C.value.xAxis,
|
|
3908
3936
|
fill: t.value.chart.grid.labels.xAxisLabels.color,
|
|
3909
|
-
transform: `translate(${c.value.left + c.value.width /
|
|
3937
|
+
transform: `translate(${c.value.left + c.value.width / S.value * u + c.value.width / S.value / 2}, ${c.value.bottom + C.value.xAxis * 1.5}), rotate(${t.value.chart.grid.labels.xAxisLabels.rotation})`,
|
|
3910
3938
|
style: L({
|
|
3911
3939
|
cursor: kl() ? "pointer" : "default"
|
|
3912
3940
|
}),
|
|
@@ -3917,27 +3945,27 @@ const _n = {
|
|
|
3917
3945
|
x: 0,
|
|
3918
3946
|
y: 0
|
|
3919
3947
|
}),
|
|
3920
|
-
onClick: () => ke(e,
|
|
3921
|
-
}, null, 12, xs)) : (n(),
|
|
3948
|
+
onClick: () => ke(e, u)
|
|
3949
|
+
}, null, 12, xs)) : (n(), i("text", {
|
|
3922
3950
|
key: 0,
|
|
3923
3951
|
class: "vue-data-ui-time-label",
|
|
3924
3952
|
"text-anchor": t.value.chart.grid.labels.xAxisLabels.rotation > 0 ? "start" : t.value.chart.grid.labels.xAxisLabels.rotation < 0 ? "end" : "middle",
|
|
3925
3953
|
"font-size": C.value.xAxis,
|
|
3926
3954
|
fill: t.value.chart.grid.labels.xAxisLabels.color,
|
|
3927
|
-
transform: `translate(${c.value.left + c.value.width /
|
|
3955
|
+
transform: `translate(${c.value.left + c.value.width / S.value * u + c.value.width / S.value / 2}, ${c.value.bottom + C.value.xAxis * 1.5}), rotate(${t.value.chart.grid.labels.xAxisLabels.rotation})`,
|
|
3928
3956
|
style: L({
|
|
3929
3957
|
cursor: kl() ? "pointer" : "default"
|
|
3930
3958
|
}),
|
|
3931
|
-
onClick: () => ke(e,
|
|
3959
|
+
onClick: () => ke(e, u)
|
|
3932
3960
|
}, re(e.text || ""), 13, gs))
|
|
3933
3961
|
], 64)) : g("", !0)
|
|
3934
3962
|
]))), 128))
|
|
3935
3963
|
], 512)) : g("", !0),
|
|
3936
|
-
|
|
3937
|
-
(n(!0),
|
|
3964
|
+
Ka.value.length && !p.value.isStacked ? (n(), i("g", bs, [
|
|
3965
|
+
(n(!0), i(b, null, M(Ka.value, (e) => (n(), i("g", {
|
|
3938
3966
|
key: e.uid
|
|
3939
3967
|
}, [
|
|
3940
|
-
e.yTop && e.show && isFinite(e.yTop) ? (n(),
|
|
3968
|
+
e.yTop && e.show && isFinite(e.yTop) ? (n(), i("line", {
|
|
3941
3969
|
key: 0,
|
|
3942
3970
|
x1: e.x1,
|
|
3943
3971
|
y1: e.yTop,
|
|
@@ -3949,7 +3977,7 @@ const _n = {
|
|
|
3949
3977
|
"stroke-linecap": "round",
|
|
3950
3978
|
style: { animation: "none !important" }
|
|
3951
3979
|
}, null, 8, ys)) : g("", !0),
|
|
3952
|
-
e.yBottom && e.show && isFinite(e.yBottom) ? (n(),
|
|
3980
|
+
e.yBottom && e.show && isFinite(e.yBottom) ? (n(), i("line", {
|
|
3953
3981
|
key: 1,
|
|
3954
3982
|
x1: e.x1,
|
|
3955
3983
|
y1: e.yBottom,
|
|
@@ -3961,7 +3989,7 @@ const _n = {
|
|
|
3961
3989
|
"stroke-linecap": "round",
|
|
3962
3990
|
style: { animation: "none !important" }
|
|
3963
3991
|
}, null, 8, ps)) : g("", !0),
|
|
3964
|
-
e.hasArea && e.show && isFinite(e.yTop) && isFinite(e.yBottom) ? (n(),
|
|
3992
|
+
e.hasArea && e.show && isFinite(e.yTop) && isFinite(e.yBottom) ? (n(), i("rect", {
|
|
3965
3993
|
key: 2,
|
|
3966
3994
|
y: Math.min(e.yTop, e.yBottom),
|
|
3967
3995
|
x: e.x1,
|
|
@@ -3970,11 +3998,11 @@ const _n = {
|
|
|
3970
3998
|
fill: h(vt)(e.config.area.fill, e.config.area.opacity),
|
|
3971
3999
|
style: { animation: "none !important" }
|
|
3972
4000
|
}, null, 8, ks)) : g("", !0),
|
|
3973
|
-
e.config.label.text && e.show && isFinite(e._box.y) ? (n(),
|
|
4001
|
+
e.config.label.text && e.show && isFinite(e._box.y) ? (n(), i("rect", Yt({
|
|
3974
4002
|
key: 3,
|
|
3975
4003
|
class: "vue-ui-xy-annotation-label-box"
|
|
3976
4004
|
}, { ref_for: !0 }, e._box, { style: { animation: "none !important", transition: "none !important" } }), null, 16)) : g("", !0),
|
|
3977
|
-
e.config.label.text && e.show && isFinite(e._text.y) ? (n(),
|
|
4005
|
+
e.config.label.text && e.show && isFinite(e._text.y) ? (n(), i("text", {
|
|
3978
4006
|
key: 4,
|
|
3979
4007
|
id: e.id,
|
|
3980
4008
|
class: "vue-ui-xy-annotation-label",
|
|
@@ -3986,8 +4014,8 @@ const _n = {
|
|
|
3986
4014
|
}, re(e.config.label.text), 9, ws)) : g("", !0)
|
|
3987
4015
|
]))), 128))
|
|
3988
4016
|
])) : g("", !0),
|
|
3989
|
-
t.value.chart.timeTag.show && (![null, void 0].includes(_.value) || ![null, void 0].includes(
|
|
3990
|
-
(n(),
|
|
4017
|
+
t.value.chart.timeTag.show && (![null, void 0].includes(_.value) || ![null, void 0].includes(X.value)) ? (n(), i("g", Ss, [
|
|
4018
|
+
(n(), i("foreignObject", {
|
|
3991
4019
|
x: Do(),
|
|
3992
4020
|
y: c.value.bottom,
|
|
3993
4021
|
width: "200",
|
|
@@ -3996,56 +4024,56 @@ const _n = {
|
|
|
3996
4024
|
}, [
|
|
3997
4025
|
k("div", {
|
|
3998
4026
|
ref_key: "timeTagEl",
|
|
3999
|
-
ref:
|
|
4027
|
+
ref: so,
|
|
4000
4028
|
class: "vue-ui-xy-time-tag",
|
|
4001
4029
|
style: L(`width: fit-content;margin: 0 auto;text-align:center;padding:3px 12px;background:${t.value.chart.timeTag.backgroundColor};color:${t.value.chart.timeTag.color};font-size:${t.value.chart.timeTag.fontSize}px`),
|
|
4002
4030
|
innerHTML: Wo.value
|
|
4003
4031
|
}, null, 12, _s)
|
|
4004
4032
|
], 8, $s)),
|
|
4005
4033
|
k("circle", {
|
|
4006
|
-
cx: c.value.left + c.value.width /
|
|
4034
|
+
cx: c.value.left + c.value.width / S.value * ((_.value !== null ? _.value : 0) || (X.value !== null ? X.value : 0)) + c.value.width / S.value / 2,
|
|
4007
4035
|
cy: c.value.bottom,
|
|
4008
4036
|
r: t.value.chart.timeTag.circleMarker.radius,
|
|
4009
4037
|
fill: t.value.chart.timeTag.circleMarker.color
|
|
4010
4038
|
}, null, 8, Ms)
|
|
4011
4039
|
])) : g("", !0)
|
|
4012
4040
|
])) : g("", !0),
|
|
4013
|
-
ta.value ? (n(),
|
|
4041
|
+
ta.value ? (n(), i("rect", Yt({ key: 2 }, Ma.value, {
|
|
4014
4042
|
"data-start": w.value.start,
|
|
4015
4043
|
"data-end": w.value.end
|
|
4016
4044
|
}), null, 16, Ls)) : g("", !0),
|
|
4017
4045
|
te(l.$slots, "svg", { svg: xt.value }, void 0, !0)
|
|
4018
4046
|
], 512)
|
|
4019
|
-
], 46,
|
|
4020
|
-
l.$slots.watermark ? (n(),
|
|
4047
|
+
], 46, gi)),
|
|
4048
|
+
l.$slots.watermark ? (n(), i("div", Cs, [
|
|
4021
4049
|
te(l.$slots, "watermark", Xt(dl({ isPrinting: h(Hl) || h(nt) })), void 0, !0)
|
|
4022
4050
|
])) : g("", !0),
|
|
4023
|
-
(n(!0),
|
|
4051
|
+
(n(!0), i(b, null, M(Re.value, (e, u) => (n(), i(b, {
|
|
4024
4052
|
key: `tag_line_${e.id}`
|
|
4025
4053
|
}, [
|
|
4026
|
-
(n(!0),
|
|
4027
|
-
key: `tag_line_${
|
|
4054
|
+
(n(!0), i(b, null, M(e.plots, (a, r) => (n(), i(b, {
|
|
4055
|
+
key: `tag_line_${u}_${r}`
|
|
4028
4056
|
}, [
|
|
4029
|
-
[
|
|
4057
|
+
[X.value, _.value, ae.value].includes(r) && e.useTag && e.useTag === "end" && t.value.line.tag.followValue ? (n(), i("div", {
|
|
4030
4058
|
key: 0,
|
|
4031
4059
|
ref_for: !0,
|
|
4032
|
-
ref: (o) => kt(
|
|
4060
|
+
ref: (o) => kt(u, r, o, "right", "line"),
|
|
4033
4061
|
class: "vue-ui-xy-tag",
|
|
4034
4062
|
"data-tag": "right",
|
|
4035
4063
|
style: L({
|
|
4036
4064
|
position: "fixed",
|
|
4037
4065
|
top: h(Wt)({
|
|
4038
|
-
svgElement:
|
|
4066
|
+
svgElement: $e.value,
|
|
4039
4067
|
x: c.value.right + t.value.line.tag.fontSize / 1.5,
|
|
4040
4068
|
y: a.y,
|
|
4041
|
-
element: ot.value[`${
|
|
4069
|
+
element: ot.value[`${u}_${r}_right_line`],
|
|
4042
4070
|
position: "right"
|
|
4043
4071
|
}).top + "px",
|
|
4044
4072
|
left: h(Wt)({
|
|
4045
|
-
svgElement:
|
|
4073
|
+
svgElement: $e.value,
|
|
4046
4074
|
x: c.value.right + t.value.line.tag.fontSize / 1.5,
|
|
4047
4075
|
y: a.y,
|
|
4048
|
-
element: ot.value[`${
|
|
4076
|
+
element: ot.value[`${u}_${r}_right_line`],
|
|
4049
4077
|
position: "right"
|
|
4050
4078
|
}).left + "px",
|
|
4051
4079
|
height: "fit-content",
|
|
@@ -4057,7 +4085,7 @@ const _n = {
|
|
|
4057
4085
|
opacity: 1
|
|
4058
4086
|
})
|
|
4059
4087
|
}, [
|
|
4060
|
-
(n(),
|
|
4088
|
+
(n(), i("svg", As, [
|
|
4061
4089
|
k("path", {
|
|
4062
4090
|
d: "M 0,10 10,0 10,20 Z",
|
|
4063
4091
|
fill: e.color,
|
|
@@ -4078,26 +4106,26 @@ const _n = {
|
|
|
4078
4106
|
)
|
|
4079
4107
|
}, null, 8, Ts)
|
|
4080
4108
|
], 4)) : g("", !0),
|
|
4081
|
-
[
|
|
4109
|
+
[X.value, _.value, ae.value].includes(r) && e.useTag && e.useTag === "start" && t.value.line.tag.followValue ? (n(), i("div", {
|
|
4082
4110
|
key: 1,
|
|
4083
4111
|
ref_for: !0,
|
|
4084
|
-
ref: (o) => kt(
|
|
4112
|
+
ref: (o) => kt(u, r, o, "left", "line"),
|
|
4085
4113
|
class: "vue-ui-xy-tag",
|
|
4086
4114
|
"data-tag": "left",
|
|
4087
4115
|
style: L({
|
|
4088
4116
|
position: "fixed",
|
|
4089
4117
|
top: h(Wt)({
|
|
4090
|
-
svgElement:
|
|
4118
|
+
svgElement: $e.value,
|
|
4091
4119
|
x: c.value.left - t.value.line.tag.fontSize / 1.5,
|
|
4092
4120
|
y: a.y,
|
|
4093
|
-
element: ot.value[`${
|
|
4121
|
+
element: ot.value[`${u}_${r}_left_line`],
|
|
4094
4122
|
position: "left"
|
|
4095
4123
|
}).top + "px",
|
|
4096
4124
|
left: h(Wt)({
|
|
4097
|
-
svgElement:
|
|
4125
|
+
svgElement: $e.value,
|
|
4098
4126
|
x: c.value.left - t.value.line.tag.fontSize / 1.5,
|
|
4099
4127
|
y: a.y,
|
|
4100
|
-
element: ot.value[`${
|
|
4128
|
+
element: ot.value[`${u}_${r}_left_line`],
|
|
4101
4129
|
position: "left"
|
|
4102
4130
|
}).left + "px",
|
|
4103
4131
|
height: "fit-content",
|
|
@@ -4109,7 +4137,7 @@ const _n = {
|
|
|
4109
4137
|
opacity: 1
|
|
4110
4138
|
})
|
|
4111
4139
|
}, [
|
|
4112
|
-
(n(),
|
|
4140
|
+
(n(), i("svg", Is, [
|
|
4113
4141
|
k("path", {
|
|
4114
4142
|
d: "M 0,0 10,10 0,20 Z",
|
|
4115
4143
|
fill: e.color,
|
|
@@ -4132,32 +4160,32 @@ const _n = {
|
|
|
4132
4160
|
], 4)) : g("", !0)
|
|
4133
4161
|
], 64))), 128))
|
|
4134
4162
|
], 64))), 128)),
|
|
4135
|
-
(n(!0),
|
|
4163
|
+
(n(!0), i(b, null, M(rt.value, (e, u) => (n(), i(b, {
|
|
4136
4164
|
key: `tag_plot_${e.id}`
|
|
4137
4165
|
}, [
|
|
4138
|
-
(n(!0),
|
|
4139
|
-
key: `tag_plot_${
|
|
4166
|
+
(n(!0), i(b, null, M(e.plots, (a, r) => (n(), i(b, {
|
|
4167
|
+
key: `tag_plot_${u}_${r}`
|
|
4140
4168
|
}, [
|
|
4141
|
-
[
|
|
4169
|
+
[X.value, _.value, ae.value].includes(r) && e.useTag && e.useTag === "end" && t.value.plot.tag.followValue ? (n(), i("div", {
|
|
4142
4170
|
key: 0,
|
|
4143
4171
|
ref_for: !0,
|
|
4144
|
-
ref: (o) => kt(
|
|
4172
|
+
ref: (o) => kt(u, r, o, "right", "plot"),
|
|
4145
4173
|
class: "vue-ui-xy-tag",
|
|
4146
4174
|
"data-tag": "right",
|
|
4147
4175
|
style: L({
|
|
4148
4176
|
position: "fixed",
|
|
4149
4177
|
top: h(Wt)({
|
|
4150
|
-
svgElement:
|
|
4178
|
+
svgElement: $e.value,
|
|
4151
4179
|
x: c.value.right + t.value.plot.tag.fontSize / 1.5,
|
|
4152
4180
|
y: a.y,
|
|
4153
|
-
element: ot.value[`${
|
|
4181
|
+
element: ot.value[`${u}_${r}_right_plot`],
|
|
4154
4182
|
position: "right"
|
|
4155
4183
|
}).top + "px",
|
|
4156
4184
|
left: h(Wt)({
|
|
4157
|
-
svgElement:
|
|
4185
|
+
svgElement: $e.value,
|
|
4158
4186
|
x: c.value.right + t.value.plot.tag.fontSize / 1.5,
|
|
4159
4187
|
y: a.y,
|
|
4160
|
-
element: ot.value[`${
|
|
4188
|
+
element: ot.value[`${u}_${r}_right_plot`],
|
|
4161
4189
|
position: "right"
|
|
4162
4190
|
}).left + "px",
|
|
4163
4191
|
height: "fit-content",
|
|
@@ -4169,7 +4197,7 @@ const _n = {
|
|
|
4169
4197
|
opacity: 1
|
|
4170
4198
|
})
|
|
4171
4199
|
}, [
|
|
4172
|
-
(n(),
|
|
4200
|
+
(n(), i("svg", Fs, [
|
|
4173
4201
|
k("path", {
|
|
4174
4202
|
d: "M 0,10 10,0 10,20 Z",
|
|
4175
4203
|
fill: e.color,
|
|
@@ -4190,26 +4218,26 @@ const _n = {
|
|
|
4190
4218
|
)
|
|
4191
4219
|
}, null, 8, Os)
|
|
4192
4220
|
], 4)) : g("", !0),
|
|
4193
|
-
[
|
|
4221
|
+
[X.value, _.value, ae.value].includes(r) && e.useTag && e.useTag === "start" && t.value.plot.tag.followValue ? (n(), i("div", {
|
|
4194
4222
|
key: 1,
|
|
4195
4223
|
ref_for: !0,
|
|
4196
|
-
ref: (o) => kt(
|
|
4224
|
+
ref: (o) => kt(u, r, o, "left", "plot"),
|
|
4197
4225
|
class: "vue-ui-xy-tag",
|
|
4198
4226
|
"data-tag": "left",
|
|
4199
4227
|
style: L({
|
|
4200
4228
|
position: "fixed",
|
|
4201
4229
|
top: h(Wt)({
|
|
4202
|
-
svgElement:
|
|
4230
|
+
svgElement: $e.value,
|
|
4203
4231
|
x: c.value.left - t.value.plot.tag.fontSize / 1.5,
|
|
4204
4232
|
y: a.y,
|
|
4205
|
-
element: ot.value[`${
|
|
4233
|
+
element: ot.value[`${u}_${r}_left_plot`],
|
|
4206
4234
|
position: "left"
|
|
4207
4235
|
}).top + "px",
|
|
4208
4236
|
left: h(Wt)({
|
|
4209
|
-
svgElement:
|
|
4237
|
+
svgElement: $e.value,
|
|
4210
4238
|
x: c.value.left - t.value.plot.tag.fontSize / 1.5,
|
|
4211
4239
|
y: a.y,
|
|
4212
|
-
element: ot.value[`${
|
|
4240
|
+
element: ot.value[`${u}_${r}_left_plot`],
|
|
4213
4241
|
position: "left"
|
|
4214
4242
|
}).left + "px",
|
|
4215
4243
|
height: "fit-content",
|
|
@@ -4221,7 +4249,7 @@ const _n = {
|
|
|
4221
4249
|
opacity: 1
|
|
4222
4250
|
})
|
|
4223
4251
|
}, [
|
|
4224
|
-
(n(),
|
|
4252
|
+
(n(), i("svg", Vs, [
|
|
4225
4253
|
k("path", {
|
|
4226
4254
|
d: "M 0,0 10,10 0,20 Z",
|
|
4227
4255
|
fill: e.color,
|
|
@@ -4244,7 +4272,7 @@ const _n = {
|
|
|
4244
4272
|
], 4)) : g("", !0)
|
|
4245
4273
|
], 64))), 128))
|
|
4246
4274
|
], 64))), 128)),
|
|
4247
|
-
t.value.chart.zoom.show && Qe.value > 6 && el.value &&
|
|
4275
|
+
t.value.chart.zoom.show && Qe.value > 6 && el.value && Me.value ? (n(), ct(hi, {
|
|
4248
4276
|
key: 5,
|
|
4249
4277
|
ref_key: "chartSlicer",
|
|
4250
4278
|
ref: Ke,
|
|
@@ -4256,7 +4284,7 @@ const _n = {
|
|
|
4256
4284
|
start: w.value.start,
|
|
4257
4285
|
end: w.value.end,
|
|
4258
4286
|
"onUpdate:start": na,
|
|
4259
|
-
"onUpdate:end":
|
|
4287
|
+
"onUpdate:end": La,
|
|
4260
4288
|
selectedSeries: zt.value,
|
|
4261
4289
|
customFormat: t.value.chart.zoom.customFormat,
|
|
4262
4290
|
background: t.value.chart.zoom.color,
|
|
@@ -4280,7 +4308,7 @@ const _n = {
|
|
|
4280
4308
|
minimapIndicatorColor: t.value.chart.zoom.minimap.indicatorColor,
|
|
4281
4309
|
verticalHandles: t.value.chart.zoom.minimap.verticalHandles,
|
|
4282
4310
|
refreshStartPoint: t.value.chart.zoom.startIndex !== null ? t.value.chart.zoom.startIndex : 0,
|
|
4283
|
-
refreshEndPoint: t.value.chart.zoom.endIndex !== null ? t.value.chart.zoom.endIndex + 1 : Math.max(
|
|
4311
|
+
refreshEndPoint: t.value.chart.zoom.endIndex !== null ? t.value.chart.zoom.endIndex + 1 : Math.max(...$.dataset.map((e) => yt(e.series).length)),
|
|
4284
4312
|
enableRangeHandles: t.value.chart.zoom.enableRangeHandles,
|
|
4285
4313
|
enableSelectionDrag: t.value.chart.zoom.enableSelectionDrag,
|
|
4286
4314
|
minimapCompact: t.value.chart.zoom.minimap.compact,
|
|
@@ -4290,7 +4318,7 @@ const _n = {
|
|
|
4290
4318
|
cutNullValues: t.value.line.cutNullValues,
|
|
4291
4319
|
focusOnDrag: t.value.chart.zoom.focusOnDrag,
|
|
4292
4320
|
focusRangeRatio: t.value.chart.zoom.focusRangeRatio,
|
|
4293
|
-
onReset:
|
|
4321
|
+
onReset: Ca,
|
|
4294
4322
|
onTrapMouse: wl,
|
|
4295
4323
|
onFutureStart: s[1] || (s[1] = (e) => El("start", e)),
|
|
4296
4324
|
onFutureEnd: s[2] || (s[2] = (e) => El("end", e)),
|
|
@@ -4305,25 +4333,25 @@ const _n = {
|
|
|
4305
4333
|
k("div", {
|
|
4306
4334
|
id: `legend-bottom-${Z.value}`
|
|
4307
4335
|
}, null, 8, Hs),
|
|
4308
|
-
|
|
4336
|
+
H.value ? (n(), ct(Zo, {
|
|
4309
4337
|
key: 6,
|
|
4310
4338
|
to: t.value.chart.legend.position === "top" ? `#legend-top-${Z.value}` : `#legend-bottom-${Z.value}`
|
|
4311
4339
|
}, [
|
|
4312
|
-
t.value.chart.legend.show ? (n(),
|
|
4340
|
+
t.value.chart.legend.show ? (n(), i("div", {
|
|
4313
4341
|
key: 0,
|
|
4314
4342
|
ref_key: "chartLegend",
|
|
4315
|
-
ref:
|
|
4343
|
+
ref: Ce,
|
|
4316
4344
|
class: "vue-ui-xy-legend",
|
|
4317
4345
|
style: L({
|
|
4318
4346
|
fontSize: `var(--legend-font-size, ${t.value.chart.legend.fontSize ?? 14}px)`
|
|
4319
4347
|
})
|
|
4320
4348
|
}, [
|
|
4321
|
-
(n(!0),
|
|
4322
|
-
key: `div_legend_item_${
|
|
4323
|
-
onClick: (a) =>
|
|
4349
|
+
(n(!0), i(b, null, M(et.value, (e, u) => (n(), i("div", {
|
|
4350
|
+
key: `div_legend_item_${u}`,
|
|
4351
|
+
onClick: (a) => Ga(e),
|
|
4324
4352
|
class: Ze({ "vue-ui-xy-legend-item-alone": et.value.length === 1, "vue-ui-xy-legend-item": !0, "vue-ui-xy-legend-item-segregated": ce.value.includes(e.id) })
|
|
4325
4353
|
}, [
|
|
4326
|
-
Jt.value[e.type] === "line" ? (n(),
|
|
4354
|
+
Jt.value[e.type] === "line" ? (n(), i("svg", Ws, [
|
|
4327
4355
|
k("rect", {
|
|
4328
4356
|
x: "0",
|
|
4329
4357
|
y: "7.5",
|
|
@@ -4334,7 +4362,7 @@ const _n = {
|
|
|
4334
4362
|
width: "20",
|
|
4335
4363
|
fill: e.color
|
|
4336
4364
|
}, null, 8, Xs),
|
|
4337
|
-
ml(
|
|
4365
|
+
ml(ga, {
|
|
4338
4366
|
plot: { x: 10, y: 9 },
|
|
4339
4367
|
radius: 4,
|
|
4340
4368
|
color: e.color,
|
|
@@ -4342,8 +4370,8 @@ const _n = {
|
|
|
4342
4370
|
stroke: t.value.chart.backgroundColor,
|
|
4343
4371
|
strokeWidth: 0.5
|
|
4344
4372
|
}, null, 8, ["color", "shape", "stroke"])
|
|
4345
|
-
])) : Jt.value[e.type] === "bar" ? (n(),
|
|
4346
|
-
Jt.value[e.type] === "bar" && l.$slots.pattern ? (n(),
|
|
4373
|
+
])) : Jt.value[e.type] === "bar" ? (n(), i("svg", Ys, [
|
|
4374
|
+
Jt.value[e.type] === "bar" && l.$slots.pattern ? (n(), i("rect", {
|
|
4347
4375
|
key: 0,
|
|
4348
4376
|
x: "4",
|
|
4349
4377
|
y: "4",
|
|
@@ -4353,7 +4381,7 @@ const _n = {
|
|
|
4353
4381
|
stroke: "none",
|
|
4354
4382
|
fill: e.color
|
|
4355
4383
|
}, null, 8, Gs)) : g("", !0),
|
|
4356
|
-
Jt.value[e.type] === "bar" ? (n(),
|
|
4384
|
+
Jt.value[e.type] === "bar" ? (n(), i("rect", {
|
|
4357
4385
|
key: 1,
|
|
4358
4386
|
x: "4",
|
|
4359
4387
|
y: "4",
|
|
@@ -4363,8 +4391,8 @@ const _n = {
|
|
|
4363
4391
|
stroke: "none",
|
|
4364
4392
|
fill: l.$slots.pattern ? `url(#pattern_${Z.value}_${e.slotAbsoluteIndex})` : e.color
|
|
4365
4393
|
}, null, 8, Us)) : g("", !0)
|
|
4366
|
-
])) : (n(),
|
|
4367
|
-
ml(
|
|
4394
|
+
])) : (n(), i("svg", qs, [
|
|
4395
|
+
ml(ga, {
|
|
4368
4396
|
plot: { x: 6, y: 6 },
|
|
4369
4397
|
radius: 5,
|
|
4370
4398
|
color: e.color,
|
|
@@ -4375,15 +4403,15 @@ const _n = {
|
|
|
4375
4403
|
style: L(`color:${t.value.chart.legend.color}`)
|
|
4376
4404
|
}, re(e.name), 5)
|
|
4377
4405
|
], 10, Ds))), 128))
|
|
4378
|
-
], 4)) : (n(),
|
|
4406
|
+
], 4)) : (n(), i("div", {
|
|
4379
4407
|
key: 1,
|
|
4380
4408
|
ref_key: "chartLegend",
|
|
4381
|
-
ref:
|
|
4409
|
+
ref: Ce
|
|
4382
4410
|
}, [
|
|
4383
4411
|
te(l.$slots, "legend", { legend: et.value }, void 0, !0)
|
|
4384
4412
|
], 512))
|
|
4385
4413
|
], 8, ["to"])) : g("", !0),
|
|
4386
|
-
l.$slots.source ? (n(),
|
|
4414
|
+
l.$slots.source ? (n(), i("div", {
|
|
4387
4415
|
key: 7,
|
|
4388
4416
|
ref_key: "source",
|
|
4389
4417
|
ref: ft,
|
|
@@ -4412,18 +4440,18 @@ const _n = {
|
|
|
4412
4440
|
smoothSnapThreshold: t.value.chart.tooltip.smoothSnapThreshold
|
|
4413
4441
|
}, {
|
|
4414
4442
|
"tooltip-before": we(() => [
|
|
4415
|
-
te(l.$slots, "tooltip-before", Xt(dl({ ...
|
|
4443
|
+
te(l.$slots, "tooltip-before", Xt(dl({ ...ja.value })), void 0, !0)
|
|
4416
4444
|
]),
|
|
4417
4445
|
"tooltip-after": we(() => [
|
|
4418
|
-
te(l.$slots, "tooltip-after", Xt(dl({ ...
|
|
4446
|
+
te(l.$slots, "tooltip-after", Xt(dl({ ...ja.value })), void 0, !0)
|
|
4419
4447
|
]),
|
|
4420
4448
|
_: 3
|
|
4421
4449
|
}, 8, ["show", "backgroundColor", "color", "fontSize", "borderRadius", "borderColor", "borderWidth", "backgroundOpacity", "position", "offsetY", "parent", "content", "isFullscreen", "isCustom", "smooth", "backdropFilter", "smoothForce", "smoothSnapThreshold"]),
|
|
4422
4450
|
el.value && t.value.chart.userOptions.buttons.table ? (n(), ct(Ko(Ul.value.component), Yt({ key: 8 }, Ul.value.props, {
|
|
4423
4451
|
ref_key: "tableUnit",
|
|
4424
4452
|
ref: Je,
|
|
4425
|
-
onClose:
|
|
4426
|
-
}),
|
|
4453
|
+
onClose: vo
|
|
4454
|
+
}), xo({
|
|
4427
4455
|
content: we(() => [
|
|
4428
4456
|
k("div", {
|
|
4429
4457
|
style: L(`${h(Hl) || t.value.table.useDialog ? "" : "max-height:400px"};${t.value.table.useDialog ? "height: fit-content; " : ""};overflow:auto;width:100%;${t.value.table.useDialog ? "" : "margin-top:48px"}`)
|
|
@@ -4450,21 +4478,21 @@ const _n = {
|
|
|
4450
4478
|
key: `sparkline_${gt.value}`,
|
|
4451
4479
|
dataset: Po.value,
|
|
4452
4480
|
config: Fo.value
|
|
4453
|
-
}, null, 8, ["dataset", "config"])) : (n(), ct(h(
|
|
4481
|
+
}, null, 8, ["dataset", "config"])) : (n(), ct(h(Le), {
|
|
4454
4482
|
key: `table_${Fl.value}`,
|
|
4455
|
-
colNames:
|
|
4456
|
-
head:
|
|
4457
|
-
body:
|
|
4458
|
-
config:
|
|
4483
|
+
colNames: da.value.colNames,
|
|
4484
|
+
head: da.value.head,
|
|
4485
|
+
body: da.value.body,
|
|
4486
|
+
config: da.value.config,
|
|
4459
4487
|
title: t.value.table.useDialog ? "" : Ul.value.title,
|
|
4460
4488
|
withCloseButton: !t.value.table.useDialog,
|
|
4461
|
-
onClose:
|
|
4489
|
+
onClose: vo
|
|
4462
4490
|
}, {
|
|
4463
4491
|
th: we(({ th: e }) => [
|
|
4464
4492
|
k("div", { innerHTML: e }, null, 8, Ks)
|
|
4465
4493
|
]),
|
|
4466
4494
|
td: we(({ td: e }) => [
|
|
4467
|
-
|
|
4495
|
+
bo(re(isNaN(Number(e)) ? e : h(lt)({
|
|
4468
4496
|
p: t.value.chart.labels.prefix,
|
|
4469
4497
|
v: e,
|
|
4470
4498
|
s: t.value.chart.labels.suffix,
|
|
@@ -4480,7 +4508,7 @@ const _n = {
|
|
|
4480
4508
|
t.value.table.useDialog ? {
|
|
4481
4509
|
name: "title",
|
|
4482
4510
|
fn: we(() => [
|
|
4483
|
-
|
|
4511
|
+
bo(re(Ul.value.title), 1)
|
|
4484
4512
|
]),
|
|
4485
4513
|
key: "0"
|
|
4486
4514
|
} : void 0,
|
|
@@ -4502,9 +4530,9 @@ const _n = {
|
|
|
4502
4530
|
} : void 0
|
|
4503
4531
|
]), 1040)) : g("", !0),
|
|
4504
4532
|
h(xe) ? (n(), ct(xn, { key: 9 })) : g("", !0)
|
|
4505
|
-
], 46,
|
|
4533
|
+
], 46, fi));
|
|
4506
4534
|
}
|
|
4507
|
-
}, dr = /* @__PURE__ */
|
|
4535
|
+
}, dr = /* @__PURE__ */ Lo(Js, [["__scopeId", "data-v-d218b34b"]]);
|
|
4508
4536
|
export {
|
|
4509
4537
|
dr as default
|
|
4510
4538
|
};
|