vue-data-ui 3.1.15 → 3.1.17
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-DFX_NfRh.js} +1 -1
- package/dist/{BaseDraggableDialog-TS2ANP8W.js → BaseDraggableDialog-CrCjMg89.js} +2 -2
- package/dist/{BaseIcon-Dj9csjZa.js → BaseIcon-7s-tCFcQ.js} +1 -1
- package/dist/{ColorPicker-BKecww2B.js → ColorPicker-BoLH_m_Z.js} +2 -2
- package/dist/{DataTable-DAc2s9Wi.js → DataTable-Dw6dxJk3.js} +2 -2
- package/dist/{Legend-C3Kvktr3.js → Legend-CjdnJGHq.js} +2 -2
- package/dist/{NonSvgPenAndPaper-yA6HCA0i.js → NonSvgPenAndPaper-tX2IXHuz.js} +3 -3
- package/dist/{PackageVersion-DL0EOwRR.js → PackageVersion-D1HToLlZ.js} +1 -1
- package/dist/{PenAndPaper-CcoAkH79.js → PenAndPaper-BKnXOYre.js} +3 -3
- package/dist/{Shape-CziAQ1KL.js → Shape-6PexQroB.js} +1 -1
- package/dist/{Slicer-BMgEyKMg.js → Slicer-BJkhMBk4.js} +2 -2
- package/dist/{SparkTooltip-BGqC2VSH.js → SparkTooltip-BtO1j0i1.js} +1 -1
- package/dist/{Title-DRhv9bCG.js → Title-BVMfF0uu.js} +1 -1
- package/dist/{Tooltip-B46L8jx5.js → Tooltip-DBvmoYXU.js} +1 -1
- package/dist/{UserOptions-CmhyvH7T.js → UserOptions-CKzW9w0Q.js} +2 -2
- package/dist/{dom-to-png-B2G1VN03.js → dom-to-png-D0wlWRL9.js} +1 -1
- package/dist/{img-CRdZ0dzP.js → img-CeCjiMpr.js} +1 -1
- package/dist/{index-BS0jZusk.js → index-Lg17rmB1.js} +1 -1
- package/dist/{pdf-Gz1SfU0n.js → pdf-D5bgIg6W.js} +1 -1
- package/dist/style.css +1 -1
- package/dist/{useAutoSizeLabelsInsideViewbox-BPbMPvCk.js → useAutoSizeLabelsInsideViewbox-BxqMb3sU.js} +1 -1
- package/dist/{useNestedProp-BMfS1Wmb.js → useNestedProp-DpwLJMsW.js} +1 -1
- package/dist/{usePrinter-CsKq2kgt.js → usePrinter-DGI4Mlad.js} +2 -2
- package/dist/{vue-data-ui-BfnOSsYj.js → vue-data-ui-lki09wwK.js} +64 -64
- package/dist/vue-data-ui.js +1 -1
- package/dist/{vue-ui-3d-bar-BR_dgJX1.js → vue-ui-3d-bar-8b3VZcUI.js} +6 -6
- package/dist/{vue-ui-accordion-CEzzDwYU.js → vue-ui-accordion-BJG-ogQj.js} +3 -3
- package/dist/{vue-ui-age-pyramid-CqzjgMzW.js → vue-ui-age-pyramid-Cr_dhyTO.js} +6 -6
- package/dist/{vue-ui-annotator-OWSjXDfI.js → vue-ui-annotator-ttaqcMTz.js} +2 -2
- package/dist/{vue-ui-bullet-BkiVGK4U.js → vue-ui-bullet-DXvTj07g.js} +7 -7
- package/dist/{vue-ui-candlestick-CE9w-lrK.js → vue-ui-candlestick-B5NqFTXr.js} +7 -7
- package/dist/{vue-ui-carousel-table-DzMkFu9a.js → vue-ui-carousel-table-B0bpCRFh.js} +4 -4
- package/dist/{vue-ui-chestnut-CwW3t_5M.js → vue-ui-chestnut-Cby7Wcbu.js} +5 -5
- package/dist/{vue-ui-chord-C273Dy7g.js → vue-ui-chord-Cxg8nwzZ.js} +8 -8
- package/dist/{vue-ui-circle-pack-DVsgg20A.js → vue-ui-circle-pack-Cc5e6dE3.js} +6 -6
- package/dist/{vue-ui-cursor-6wDMRfxj.js → vue-ui-cursor-D6MvR7jD.js} +2 -2
- package/dist/{vue-ui-dashboard-Dr3da_KZ.js → vue-ui-dashboard-CaUM9n5b.js} +67 -67
- package/dist/{vue-ui-digits-CJl9xG57.js → vue-ui-digits-DsoHRv9p.js} +2 -2
- package/dist/{vue-ui-donut-CKvoDpr0.js → vue-ui-donut-Dxsq1gpz.js} +8 -8
- package/dist/{vue-ui-donut-evolution-B8z5HW6k.js → vue-ui-donut-evolution-CFu9WNVV.js} +8 -8
- package/dist/{vue-ui-dumbbell-C-aWCVEj.js → vue-ui-dumbbell-Cgb7ijQS.js} +7 -7
- package/dist/{vue-ui-flow-Cg0W7WX3.js → vue-ui-flow-Ucb9PdWP.js} +7 -7
- package/dist/{vue-ui-funnel-CfzyjhfB.js → vue-ui-funnel-CV29tksj.js} +6 -6
- package/dist/{vue-ui-galaxy-CzswoWLZ.js → vue-ui-galaxy-CVJb9_hA.js} +7 -7
- package/dist/{vue-ui-gauge-BguKCg0e.js → vue-ui-gauge-ofpIH29X.js} +7 -7
- package/dist/{vue-ui-gizmo-mhU06gyJ.js → vue-ui-gizmo-Ci9kN9VQ.js} +3 -3
- package/dist/{vue-ui-heatmap-BtAAQWmE.js → vue-ui-heatmap-BK_jorrw.js} +7 -7
- package/dist/{vue-ui-history-plot-Clrvd4ZQ.js → vue-ui-history-plot-Ce8BB4Tn.js} +7 -7
- package/dist/{vue-ui-kpi-DGpQpP2W.js → vue-ui-kpi-DAHT9q6j.js} +3 -3
- package/dist/{vue-ui-mini-loader-2zvIBunp.js → vue-ui-mini-loader-CuilTrcI.js} +2 -2
- package/dist/{vue-ui-molecule-DKgiZcBp.js → vue-ui-molecule-C6suewK-.js} +5 -5
- package/dist/{vue-ui-mood-radar-ka0RoCHN.js → vue-ui-mood-radar-DPvGhgPI.js} +7 -7
- package/dist/{vue-ui-nested-donuts-CvROIWCn.js → vue-ui-nested-donuts-BvPWp9Du.js} +7 -7
- package/dist/{vue-ui-onion-x5qCIJUe.js → vue-ui-onion-BZ0tfRV_.js} +8 -8
- package/dist/{vue-ui-parallel-coordinate-plot-BaNQTR7G.js → vue-ui-parallel-coordinate-plot-DqFj8hbo.js} +8 -8
- package/dist/{vue-ui-quadrant-Bde3xKLu.js → vue-ui-quadrant-Cg5e73ny.js} +8 -8
- package/dist/{vue-ui-quick-chart-BpHyBn7x.js → vue-ui-quick-chart-sABlk5nb.js} +6 -6
- package/dist/{vue-ui-radar-DP3ErImt.js → vue-ui-radar-DYcoGzSu.js} +8 -8
- package/dist/{vue-ui-rating-DCL2xb9w.js → vue-ui-rating-1eguB-TH.js} +2 -2
- package/dist/{vue-ui-relation-circle-COt79-GJ.js → vue-ui-relation-circle-BeWuQDkk.js} +7 -7
- package/dist/{vue-ui-ridgeline-Dcrii6_n.js → vue-ui-ridgeline-CG7FefqU.js} +8 -8
- package/dist/{vue-ui-rings-CiDYRQIj.js → vue-ui-rings-2eedFGuC.js} +8 -8
- package/dist/{vue-ui-scatter-D8bk6KJw.js → vue-ui-scatter-CNtgNP5j.js} +8 -8
- package/dist/{vue-ui-skeleton-DZN6Q2RW.js → vue-ui-skeleton-fqG3bKSz.js} +3 -3
- package/dist/{vue-ui-smiley-a9aOACpQ.js → vue-ui-smiley-D4bvSF9S.js} +2 -2
- package/dist/{vue-ui-spark-trend-D2ySMA8w.js → vue-ui-spark-trend-GML5JJxY.js} +3 -3
- package/dist/{vue-ui-sparkbar-CPKbBS4x.js → vue-ui-sparkbar-D1FXZyQE.js} +3 -3
- package/dist/{vue-ui-sparkgauge-YgppX8cI.js → vue-ui-sparkgauge-CHbbxg13.js} +3 -3
- package/dist/{vue-ui-sparkhistogram-BT-Pb999.js → vue-ui-sparkhistogram-BxYes64D.js} +4 -4
- package/dist/{vue-ui-sparkline-DE_nT4bC.js → vue-ui-sparkline-CS3F5TFN.js} +3 -3
- package/dist/{vue-ui-sparkstackbar-3MV7U6sR.js → vue-ui-sparkstackbar-CUSBwkUS.js} +3 -3
- package/dist/{vue-ui-stackbar-wfRiGYFu.js → vue-ui-stackbar-CDihyp-i.js} +9 -9
- package/dist/{vue-ui-strip-plot-BYDBbI0O.js → vue-ui-strip-plot-D6MFuKnN.js} +7 -7
- package/dist/{vue-ui-table-xG0KcrLD.js → vue-ui-table-COT59wVb.js} +4 -4
- package/dist/{vue-ui-table-heatmap-hOIbFD6k.js → vue-ui-table-heatmap--e8yw5yS.js} +5 -5
- package/dist/{vue-ui-table-sparkline-DNnOTTBh.js → vue-ui-table-sparkline-DnSLwUNN.js} +4 -4
- package/dist/{vue-ui-thermometer-C8kZDjnk.js → vue-ui-thermometer-ByiRARW0.js} +7 -7
- package/dist/{vue-ui-timer-BZxcYfbP.js → vue-ui-timer-DOQVdVN2.js} +5 -5
- package/dist/{vue-ui-tiremarks-D5mpDWUN.js → vue-ui-tiremarks-BFXeJQNZ.js} +6 -6
- package/dist/{vue-ui-treemap-RPa_dvoO.js → vue-ui-treemap-s_O9rQUT.js} +8 -8
- package/dist/{vue-ui-vertical-bar-OwkTXcnm.js → vue-ui-vertical-bar-Bn-m5GKU.js} +9 -9
- package/dist/{vue-ui-waffle-DveHx6kc.js → vue-ui-waffle-DmxaWHSw.js} +8 -8
- package/dist/{vue-ui-wheel-Cyk4SL64.js → vue-ui-wheel-zJ5U-h_D.js} +6 -6
- package/dist/{vue-ui-word-cloud-BNmS-vjj.js → vue-ui-word-cloud-BEnkOZdv.js} +6 -6
- package/dist/{vue-ui-world-BhB1K_eL.js → vue-ui-world-CkqoTL4V.js} +6 -6
- package/dist/{vue-ui-xy-CfuSMzgb.js → vue-ui-xy-Uqdl2nk-.js} +1009 -967
- package/dist/{vue-ui-xy-canvas-BFgpcPZ3.js → vue-ui-xy-canvas-cIU8Y1sD.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 u, openBlock as n, createElementVNode as k, createCommentVNode as g, renderSlot as te, normalizeStyle as C, createVNode as ml, withDirectives as Oa, unref as h, Fragment as b, renderList as L, normalizeProps as Yt, mergeProps as Gt, normalizeClass as Ze, withKeys as fo, vModelText as mo, toDisplayString as re, defineAsyncComponent as Wt, 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 ie, L as un, am as ma, I as sn, an as Xt, C as qe, a as rn, b as cn, o as _o, v as vn, w as dn, E as Ml } from "./index-Lg17rmB1.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-DGI4Mlad.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-DpwLJMsW.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-CeCjiMpr.js";
|
|
10
|
+
import wn from "./Title-BVMfF0uu.js";
|
|
11
|
+
import { _ as ga } from "./Shape-6PexQroB.js";
|
|
12
|
+
import Sn from "./BaseIcon-7s-tCFcQ.js";
|
|
13
|
+
import { _ as Lo } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
14
|
+
import $n from "./vue-ui-accordion-BJG-ogQj.js";
|
|
15
15
|
const _n = {
|
|
16
16
|
class: "vue-data-ui-slicer-labels",
|
|
17
17
|
style: { position: "relative", "z-index": "1", "pointer-events": "none" }
|
|
@@ -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
|
-
"
|
|
194
|
-
"
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
193
|
+
"2a038cf8": Il.value,
|
|
194
|
+
"7c0dd528": ne.value,
|
|
195
|
+
"2dee3c46": mt.value,
|
|
196
|
+
bba352c8: $.selectColor,
|
|
197
|
+
d243d9ac: Nl.value
|
|
198
198
|
}));
|
|
199
|
-
const d =
|
|
200
|
-
get: () =>
|
|
199
|
+
const d = $, Le = y(null), ce = y(d.min), fe = y(d.max), me = x(() => !!d.minimap.length), Al = y(xa()), St = y(!1), Nt = x(() => me.value && d.minimapCompact), zl = y(0), Ut = Jl((v) => Ce("futureStart", v), 0), xl = Jl((v) => Ce("futureEnd", v), 0), qt = x({
|
|
200
|
+
get: () => ce.value,
|
|
201
201
|
set(v) {
|
|
202
|
-
const m = Math.min(v,
|
|
203
|
-
m !==
|
|
202
|
+
const m = Math.min(v, fe.value - 1);
|
|
203
|
+
m !== ce.value && (ce.value = m, Mt.value && (Mt.value.value = String(m)), d.immediate ? Ce("update:start", Number(m)) : St.value && Ut(m));
|
|
204
204
|
}
|
|
205
205
|
}), $t = x({
|
|
206
|
-
get: () =>
|
|
206
|
+
get: () => fe.value,
|
|
207
207
|
set(v) {
|
|
208
|
-
const m = Math.max(v,
|
|
209
|
-
m !==
|
|
208
|
+
const m = Math.max(v, ce.value + 1);
|
|
209
|
+
m !== fe.value && (fe.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,41 +221,41 @@ 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(ce.value)), Ce("update:end", Number(fe.value))), St.value = !1;
|
|
225
225
|
}
|
|
226
|
-
const Ke = x(() => d.refreshEndPoint === null ? d.max : d.refreshEndPoint),
|
|
227
|
-
if (
|
|
226
|
+
const Ke = x(() => d.refreshEndPoint === null ? d.max : d.refreshEndPoint), Ce = $a, ft = x(() => {
|
|
227
|
+
if (Nt.value) {
|
|
228
228
|
const m = Math.max(1, at.value - 1);
|
|
229
|
-
return
|
|
229
|
+
return Pt.value / m * 100;
|
|
230
230
|
}
|
|
231
231
|
const v = Math.max(1, d.max - d.min);
|
|
232
|
-
return (
|
|
232
|
+
return (ce.value - d.min) / v * 100;
|
|
233
233
|
}), _t = x(() => {
|
|
234
|
-
if (
|
|
234
|
+
if (Nt.value) {
|
|
235
235
|
const m = Math.max(1, at.value - 1);
|
|
236
|
-
return
|
|
236
|
+
return el.value / m * 100;
|
|
237
237
|
}
|
|
238
238
|
const v = Math.max(1, d.max - d.min);
|
|
239
|
-
return (
|
|
240
|
-
}), Tl = x(() => (ft.value + _t.value) / 2),
|
|
241
|
-
if (!
|
|
239
|
+
return (fe.value - d.min) / v * 100;
|
|
240
|
+
}), Tl = x(() => (ft.value + _t.value) / 2), Zt = x(() => {
|
|
241
|
+
if (!Le.value) return !1;
|
|
242
242
|
const v = Math.max(1, d.max - d.min);
|
|
243
|
-
return
|
|
244
|
-
}),
|
|
245
|
-
if (!
|
|
246
|
-
const v = Math.max(1, d.max - d.min), m =
|
|
247
|
-
return m * ((
|
|
243
|
+
return Le.value.getBoundingClientRect().width * ((ce.value - d.min) / v) - pl.value / 2 < 0;
|
|
244
|
+
}), Kt = x(() => {
|
|
245
|
+
if (!Le.value) return !1;
|
|
246
|
+
const v = Math.max(1, d.max - d.min), m = Le.value.getBoundingClientRect().width;
|
|
247
|
+
return m * ((fe.value - d.min) / v) + c.value / 2 > m;
|
|
248
248
|
}), Se = x(() => {
|
|
249
|
-
const v =
|
|
249
|
+
const v = Kt.value ? `calc(${Tl.value}% - ${Bt.value.width}px - 2px)` : Zt.value ? `calc(${Tl.value}% - 8px)` : `calc(${Tl.value}% - ${Bt.value.width / 2}px - 4px)`;
|
|
250
250
|
return {
|
|
251
251
|
left: `${ft.value}%`,
|
|
252
252
|
width: `${Math.max(0, _t.value - ft.value)}%`,
|
|
253
253
|
background: d.selectColor,
|
|
254
|
-
tooltipLeft: `calc(${ft.value}% - ${
|
|
255
|
-
tooltipRight: `calc(${_t.value}% - ${
|
|
254
|
+
tooltipLeft: `calc(${ft.value}% - ${Zt.value ? 9 : pl.value / 2 + 3.5}px)`,
|
|
255
|
+
tooltipRight: `calc(${_t.value}% - ${Kt.value ? c.value - 9 : c.value / 2 - 3.5}px)`,
|
|
256
256
|
tooltipCenter: v,
|
|
257
|
-
arrowLeft: !
|
|
258
|
-
arrowRight: !
|
|
257
|
+
arrowLeft: !Zt.value,
|
|
258
|
+
arrowRight: !Kt.value
|
|
259
259
|
};
|
|
260
260
|
}), Il = x(() => d.inputColor), Nl = x(() => d.background), mt = x(() => `${d.selectColor}33`), ne = x(() => d.borderColor), Ql = x(() => {
|
|
261
261
|
let v = [];
|
|
@@ -263,32 +263,32 @@ 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,
|
|
271
271
|
(v) => {
|
|
272
|
-
Number(
|
|
272
|
+
Number(ce.value) < Number(v) && (ce.value = Number(v)), Number(fe.value) < Number(v) && (fe.value = Number(v));
|
|
273
273
|
}
|
|
274
274
|
), ht(
|
|
275
275
|
() => d.max,
|
|
276
276
|
(v) => {
|
|
277
|
-
Number(
|
|
277
|
+
Number(ce.value) > Number(v) && (ce.value = Number(v)), Number(fe.value) > Number(v) && (fe.value = Number(v));
|
|
278
278
|
}
|
|
279
279
|
);
|
|
280
|
-
const
|
|
280
|
+
const Jt = y(null), W = y({
|
|
281
281
|
width: 1,
|
|
282
282
|
height: 1
|
|
283
283
|
}), le = y(null);
|
|
284
284
|
Ll(() => {
|
|
285
|
-
if (
|
|
285
|
+
if (me.value) {
|
|
286
286
|
const v = Jl(() => {
|
|
287
|
-
if (!
|
|
288
|
-
const { width: m, height: f } = fn({ chart:
|
|
289
|
-
(
|
|
287
|
+
if (!Jt.value) return;
|
|
288
|
+
const { width: m, height: f } = fn({ chart: Jt.value }), _ = Math.max(0, Math.round(m)), z = Math.max(0, Math.round(f - 47));
|
|
289
|
+
(_ !== W.value.width || z !== W.value.height) && (W.value.width = _, W.value.height = z);
|
|
290
290
|
}, 50);
|
|
291
|
-
le.value = new ResizeObserver(v), le.value.observe(
|
|
291
|
+
le.value = new ResizeObserver(v), le.value.observe(Jt.value);
|
|
292
292
|
}
|
|
293
293
|
}), gl(() => {
|
|
294
294
|
le.value && le.value.disconnect();
|
|
@@ -298,18 +298,18 @@ const _n = {
|
|
|
298
298
|
const m = Math.floor(v - d.min);
|
|
299
299
|
return Math.min(Math.max(0, m), at.value);
|
|
300
300
|
}
|
|
301
|
-
function
|
|
301
|
+
function Qt(v) {
|
|
302
302
|
const m = Math.ceil(v - d.min);
|
|
303
303
|
return Math.min(Math.max(0, m), at.value);
|
|
304
304
|
}
|
|
305
|
-
const Ee = x(() => jl(
|
|
305
|
+
const Ee = x(() => jl(ce.value)), Pe = x(() => Qt(fe.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
|
|
309
|
-
}),
|
|
308
|
+
return W.value.width / v;
|
|
309
|
+
}), ve = x(() => d.allMinimaps.length ? d.allMinimaps.filter((v) => v.type === "bar").length : 0), Z = x(() => ae.value / (ve.value || 1) * 0.8);
|
|
310
310
|
function Pl(v, m, f) {
|
|
311
|
-
const
|
|
312
|
-
return f === 0 ? v +
|
|
311
|
+
const _ = Z.value, z = Math.max(1, ve.value), D = bl.value - 1;
|
|
312
|
+
return f === 0 ? v + _ / 2 * m : f === D ? v - _ / 2 * (z - m) : v - z * _ / 2 + m * _;
|
|
313
313
|
}
|
|
314
314
|
function Fl(v, m) {
|
|
315
315
|
return [0, bl.value - 1].includes(m) ? Z.value / 2 : Z.value;
|
|
@@ -320,30 +320,30 @@ 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;
|
|
328
328
|
} else {
|
|
329
|
-
const f = Math.min(0, He.value),
|
|
330
|
-
return m - (v - f) / Math.max(1e-9,
|
|
329
|
+
const f = Math.min(0, He.value), _ = Math.max(0, gt.value);
|
|
330
|
+
return m - (v - f) / Math.max(1e-9, _ - f) * m;
|
|
331
331
|
}
|
|
332
|
-
},
|
|
332
|
+
}, $e = x(() => yl(0));
|
|
333
333
|
function ot(v, m, f) {
|
|
334
|
-
const
|
|
334
|
+
const _ = (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 - (
|
|
342
|
+
const D = Math.max(1e-9, Math.max(Math.abs(v), Math.abs(m)));
|
|
343
|
+
return (ke) => (1 - (_(ke / D, -1, 1) + 1) / 2) * f;
|
|
344
344
|
}
|
|
345
345
|
}
|
|
346
|
-
function
|
|
346
|
+
function jt(v, m = !1) {
|
|
347
347
|
if (!v || !v.length)
|
|
348
348
|
return {
|
|
349
349
|
fullSet: "",
|
|
@@ -357,64 +357,78 @@ const _n = {
|
|
|
357
357
|
fullMarkers: [],
|
|
358
358
|
selectionMarkers: []
|
|
359
359
|
};
|
|
360
|
-
const f = Math.max(1,
|
|
361
|
-
const
|
|
360
|
+
const f = Math.max(1, W.value.height), _ = 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, il) => {
|
|
361
|
+
const zt = d.cutNullValues ? Me : Me === null ? 0 : Me, na = Number.isFinite(zt), La = ae.value * il + (d.minimapCompact ? 0 : ae.value / 2), Ca = _(0);
|
|
362
362
|
return {
|
|
363
|
-
x:
|
|
364
|
-
y: na ?
|
|
365
|
-
v:
|
|
366
|
-
value: na ?
|
|
367
|
-
y0:
|
|
363
|
+
x: La,
|
|
364
|
+
y: na ? _(zt) : NaN,
|
|
365
|
+
v: zt,
|
|
366
|
+
value: na ? zt : null,
|
|
367
|
+
y0: Ca,
|
|
368
368
|
i: il
|
|
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)), Et = st.filter((Me) => Me.i >= D && Me.i < ke), At = S.slice(D, ke), oa = S.length >= 2 ? d.smoothMinimap || m ? d.cutNullValues ? ya(S) : pa(S) : d.cutNullValues ? ka(S) : wa(S) : "", ul = At.length >= 2 ? d.smoothMinimap || m ? d.cutNullValues ? ya(At) : pa(At) : d.cutNullValues ? ka(At) : wa(At) : "";
|
|
371
371
|
return {
|
|
372
372
|
fullSet: oa,
|
|
373
|
-
points:
|
|
373
|
+
points: S,
|
|
374
374
|
selectionSet: ul,
|
|
375
|
-
sliced:
|
|
376
|
-
firstPlot:
|
|
377
|
-
lastPlot:
|
|
378
|
-
hasFull:
|
|
379
|
-
hasSelection:
|
|
375
|
+
sliced: At,
|
|
376
|
+
firstPlot: S[D] || null,
|
|
377
|
+
lastPlot: S[Math.max(0, ke - 1)] || null,
|
|
378
|
+
hasFull: S.length >= 2,
|
|
379
|
+
hasSelection: At.length >= 2,
|
|
380
380
|
fullMarkers: st,
|
|
381
|
-
selectionMarkers:
|
|
381
|
+
selectionMarkers: Et
|
|
382
382
|
};
|
|
383
383
|
}
|
|
384
|
-
const
|
|
385
|
-
const f =
|
|
384
|
+
const H = x(() => d.minimap.length ? jt(d.minimap) : []), Je = x(() => d.allMinimaps.length ? d.allMinimaps.map((v, m) => {
|
|
385
|
+
const f = jt(v?.series || [], !!v.smooth), _ = v?.id ?? v?.name ?? m;
|
|
386
386
|
return {
|
|
387
|
-
key: typeof
|
|
387
|
+
key: typeof _ == "object" ? JSON.stringify(_) : String(_),
|
|
388
388
|
color: v?.color,
|
|
389
389
|
...f,
|
|
390
390
|
isVisible: v.isVisible,
|
|
391
391
|
type: v.type || "line"
|
|
392
392
|
};
|
|
393
|
-
}) : []),
|
|
393
|
+
}) : []), M = x(() => {
|
|
394
394
|
const v = Ee.value, m = Math.max(v + 1, Pe.value);
|
|
395
395
|
return {
|
|
396
396
|
x: ae.value * v + (d.minimapCompact ? 0 : ae.value / 2),
|
|
397
397
|
width: ae.value * (m - v) - ae.value
|
|
398
398
|
};
|
|
399
|
-
}), xt = y(d.minimapSelectedIndex), Vl = (v) => Math.round(d.min + v),
|
|
399
|
+
}), xt = y(d.minimapSelectedIndex), Vl = (v) => Math.round(d.min + v), Pt = x({
|
|
400
400
|
get() {
|
|
401
|
-
return
|
|
401
|
+
return Nt.value ? Ee.value : Number(qt.value);
|
|
402
402
|
},
|
|
403
403
|
set(v) {
|
|
404
|
-
|
|
404
|
+
if (Nt.value) {
|
|
405
|
+
const m = Math.round(+v || 0);
|
|
406
|
+
Lt(Vl(m));
|
|
407
|
+
} else {
|
|
408
|
+
let m = Math.round(+v || 0);
|
|
409
|
+
const f = Number(fe.value) - 1, _ = Math.min(Math.max(d.min, m), f);
|
|
410
|
+
Mt.value && (Mt.value.valueAsNumber = _), Lt(_);
|
|
411
|
+
}
|
|
405
412
|
}
|
|
406
|
-
}),
|
|
413
|
+
}), el = x({
|
|
407
414
|
get() {
|
|
408
|
-
return
|
|
415
|
+
return Nt.value ? Math.max(Ee.value, Pe.value - 1) : Number($t.value);
|
|
409
416
|
},
|
|
410
417
|
set(v) {
|
|
411
|
-
|
|
418
|
+
if (Nt.value) {
|
|
419
|
+
const m = Math.round(+v || 0);
|
|
420
|
+
_e(Vl(m + 1));
|
|
421
|
+
} else {
|
|
422
|
+
let m = Math.round(+v || 0);
|
|
423
|
+
const f = Number(ce.value) + 1, _ = Math.max(f, Math.min(m, d.max));
|
|
424
|
+
t.value && (t.value.valueAsNumber = _), _e(_);
|
|
425
|
+
}
|
|
412
426
|
}
|
|
413
427
|
});
|
|
414
|
-
function
|
|
428
|
+
function A(v) {
|
|
415
429
|
xt.value = jl(d.valueStart) + v;
|
|
416
430
|
}
|
|
417
|
-
const De = hn(
|
|
431
|
+
const De = hn(A, 60);
|
|
418
432
|
ht(() => d.minimapSelectedIndex, (v, m) => {
|
|
419
433
|
if ([null, void 0].includes(v)) {
|
|
420
434
|
xt.value = null;
|
|
@@ -425,27 +439,27 @@ const _n = {
|
|
|
425
439
|
function Bl(v) {
|
|
426
440
|
xt.value = v;
|
|
427
441
|
const m = Ee.value, f = Pe.value;
|
|
428
|
-
v >= m && v < f && !tt.value &&
|
|
442
|
+
v >= m && v < f && !tt.value && Ce("trapMouse", v - m);
|
|
429
443
|
}
|
|
430
|
-
const
|
|
444
|
+
const Mt = y(null), t = y(null);
|
|
431
445
|
function p(v) {
|
|
432
446
|
if (typeof v == "object" && v && "target" in v) {
|
|
433
|
-
const f = v.target,
|
|
434
|
-
return Number.isFinite(
|
|
447
|
+
const f = v.target, _ = "valueAsNumber" in f ? f.valueAsNumber : +f.value;
|
|
448
|
+
return Number.isFinite(_) ? _ : NaN;
|
|
435
449
|
}
|
|
436
450
|
const m = +v;
|
|
437
451
|
return Number.isFinite(m) ? m : NaN;
|
|
438
452
|
}
|
|
439
453
|
let tl = 0;
|
|
440
|
-
function
|
|
454
|
+
function Lt(v) {
|
|
441
455
|
St.value = !0;
|
|
442
456
|
const m = p(v);
|
|
443
457
|
Number.isFinite(m) && (cancelAnimationFrame(tl), tl = requestAnimationFrame(() => {
|
|
444
|
-
|
|
458
|
+
qt.value = m;
|
|
445
459
|
}));
|
|
446
460
|
}
|
|
447
461
|
let xe = 0;
|
|
448
|
-
function
|
|
462
|
+
function _e(v) {
|
|
449
463
|
St.value = !0;
|
|
450
464
|
const m = p(v);
|
|
451
465
|
Number.isFinite(m) && (cancelAnimationFrame(xe), xe = requestAnimationFrame(() => {
|
|
@@ -455,52 +469,52 @@ const _n = {
|
|
|
455
469
|
gl(() => {
|
|
456
470
|
cancelAnimationFrame(tl), cancelAnimationFrame(xe);
|
|
457
471
|
});
|
|
458
|
-
const bt = x(() => d.valueEnd - d.valueStart),
|
|
472
|
+
const bt = x(() => d.valueEnd - d.valueStart), _a = x(() => bt.value < d.max - d.min), Ft = y(!1);
|
|
459
473
|
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),
|
|
474
|
+
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), Ct = y(0), Ma = y(0), Hl = y(0);
|
|
461
475
|
let nt = null, ut = null, it = null, pt = null;
|
|
462
476
|
const ll = y(d.min);
|
|
463
|
-
function
|
|
464
|
-
if (!
|
|
465
|
-
const m =
|
|
466
|
-
return Math.round(d.min + ke *
|
|
477
|
+
function Rt(v) {
|
|
478
|
+
if (!Le.value) return d.min;
|
|
479
|
+
const m = Le.value.getBoundingClientRect(), f = m.left + Ra / 2, _ = m.right - Ra / 2, z = Math.max(1, _ - f), ke = (Math.max(f, Math.min(v, _)) - f) / z, S = Math.max(1, d.max - d.min);
|
|
480
|
+
return Math.round(d.min + ke * S);
|
|
467
481
|
}
|
|
468
482
|
const al = async (v) => {
|
|
469
|
-
if (St.value = !0,
|
|
483
|
+
if (St.value = !0, Vt.value = !0, !d.enableSelectionDrag) return;
|
|
470
484
|
const m = v.type === "touchstart";
|
|
471
485
|
m || v.stopPropagation();
|
|
472
|
-
const f = m && v.targetTouches && v.targetTouches[0] ? v.targetTouches[0] : null,
|
|
473
|
-
if (!
|
|
474
|
-
|
|
486
|
+
const f = m && v.targetTouches && v.targetTouches[0] ? v.targetTouches[0] : null, _ = m ? f ? f.target : null : v.target;
|
|
487
|
+
if (!_ || !(_ instanceof Element) || _.classList && _.classList.contains("range-handle")) return;
|
|
488
|
+
Ft.value = !0;
|
|
475
489
|
const z = m ? f ? f.clientX : 0 : v.clientX;
|
|
476
|
-
if (yt.value = z, El.value = z, d.focusOnDrag &&
|
|
477
|
-
ll.value =
|
|
478
|
-
const
|
|
490
|
+
if (yt.value = z, El.value = z, d.focusOnDrag && !_a.value && Le.value) {
|
|
491
|
+
ll.value = Rt(z);
|
|
492
|
+
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
493
|
let st = ll.value - wl;
|
|
480
|
-
st = Math.max(d.min, Math.min(st, d.max -
|
|
481
|
-
const
|
|
482
|
-
|
|
494
|
+
st = Math.max(d.min, Math.min(st, d.max - S));
|
|
495
|
+
const Et = Math.min(d.max, st + S);
|
|
496
|
+
qt.value = st, $t.value = Et, Ut(st), xl(Et), yo(Le.value, "mouseup"), await Cl(), yo(Le.value, "mousedown", { clientX: z });
|
|
483
497
|
}
|
|
484
|
-
|
|
498
|
+
Ct.value = ce.value, Ma.value = fe.value, Hl.value = ta.value, nt = m ? "touchmove" : "mousemove", ut = m ? "touchend" : "mouseup", it = m ? ol : Xe, pt = m ? Fe : et, window.addEventListener(nt, it, { passive: !1 }), window.addEventListener(ut, pt);
|
|
485
499
|
};
|
|
486
500
|
function Xe(v) {
|
|
487
|
-
|
|
501
|
+
Ft.value && je(v.clientX);
|
|
488
502
|
}
|
|
489
503
|
function ol(v) {
|
|
490
|
-
if (!
|
|
504
|
+
if (!Ft.value || !Le.value) return;
|
|
491
505
|
const m = v.target;
|
|
492
|
-
if (!(m instanceof Element) || !
|
|
506
|
+
if (!(m instanceof Element) || !Le.value.contains(m) || m.classList && m.classList.contains("range-handle")) return;
|
|
493
507
|
v.preventDefault();
|
|
494
508
|
const f = v.targetTouches && v.targetTouches[0] ? v.targetTouches[0] : null;
|
|
495
509
|
f && je(f.clientX);
|
|
496
510
|
}
|
|
497
511
|
function je(v) {
|
|
498
|
-
if (!
|
|
499
|
-
const m =
|
|
500
|
-
let z = Math.round(
|
|
512
|
+
if (!Ft.value) return;
|
|
513
|
+
const m = Rt(El.value), _ = Rt(v) - m;
|
|
514
|
+
let z = Math.round(Ct.value + _);
|
|
501
515
|
z = Math.max(d.min, Math.min(z, d.max - bt.value));
|
|
502
|
-
const
|
|
503
|
-
|
|
516
|
+
const D = z + bt.value;
|
|
517
|
+
qt.value = z, $t.value = D, Ut(z), xl(D);
|
|
504
518
|
}
|
|
505
519
|
function et() {
|
|
506
520
|
la();
|
|
@@ -509,9 +523,9 @@ const _n = {
|
|
|
509
523
|
la();
|
|
510
524
|
}
|
|
511
525
|
function la() {
|
|
512
|
-
|
|
526
|
+
Ft.value = !1, nt && it && window.removeEventListener(nt, it), ut && pt && window.removeEventListener(ut, pt), nt = ut = null, it = pt = null, Te();
|
|
513
527
|
}
|
|
514
|
-
const tt = y(!1), nl = y(null),
|
|
528
|
+
const tt = y(!1), nl = y(null), Ot = y(null), pl = y(1), c = y(1), Vt = y(!1);
|
|
515
529
|
function Dl() {
|
|
516
530
|
if (nl.value) {
|
|
517
531
|
const v = Math.round(nl.value.getBoundingClientRect().width);
|
|
@@ -519,61 +533,61 @@ const _n = {
|
|
|
519
533
|
}
|
|
520
534
|
}
|
|
521
535
|
function kl() {
|
|
522
|
-
if (
|
|
523
|
-
const v = Math.round(
|
|
536
|
+
if (Ot.value) {
|
|
537
|
+
const v = Math.round(Ot.value.getBoundingClientRect().width);
|
|
524
538
|
v !== c.value && (c.value = v);
|
|
525
539
|
}
|
|
526
540
|
}
|
|
527
|
-
|
|
541
|
+
ho(() => {
|
|
528
542
|
Dl(), kl();
|
|
529
543
|
});
|
|
530
544
|
const aa = y(0);
|
|
531
545
|
function Wl(v) {
|
|
532
546
|
aa.value = v === "start" ? 1 : 0;
|
|
533
547
|
}
|
|
534
|
-
const kt = y(!1),
|
|
548
|
+
const kt = y(!1), Bt = y({
|
|
535
549
|
width: 0,
|
|
536
550
|
left: 0
|
|
537
551
|
});
|
|
538
|
-
ht([
|
|
539
|
-
if (await Cl(), !nl.value || !
|
|
540
|
-
kt.value = !1,
|
|
552
|
+
ht([ce, fe], async () => {
|
|
553
|
+
if (await Cl(), !nl.value || !Ot.value) {
|
|
554
|
+
kt.value = !1, Bt.value = { width: 0, left: 0 };
|
|
541
555
|
return;
|
|
542
556
|
}
|
|
543
|
-
const v = nl.value.getBoundingClientRect(), m =
|
|
557
|
+
const v = nl.value.getBoundingClientRect(), m = Ot.value.getBoundingClientRect();
|
|
544
558
|
kt.value = v.x + v.width > m.x;
|
|
545
|
-
const f = v.x + v.width / 2,
|
|
546
|
-
|
|
559
|
+
const f = v.x + v.width / 2, _ = m.x + m.width / 2, z = v.width + m.width, D = (f + _) / 2;
|
|
560
|
+
Bt.value = {
|
|
547
561
|
width: z,
|
|
548
|
-
left:
|
|
562
|
+
left: D - z / 2
|
|
549
563
|
};
|
|
550
|
-
}),
|
|
564
|
+
}), ho(() => {
|
|
551
565
|
Dl(), kl();
|
|
552
566
|
}), ht(() => d.labelLeft, () => {
|
|
553
567
|
Cl(Dl);
|
|
554
568
|
}, { deep: !0 }), ht(() => d.labelRight, () => {
|
|
555
569
|
Cl(kl);
|
|
556
570
|
}, { deep: !0 });
|
|
557
|
-
const
|
|
571
|
+
const ge = x(() => {
|
|
558
572
|
let v = "", m = "", f = !1;
|
|
559
|
-
if (
|
|
573
|
+
if (ba(d.customFormat))
|
|
560
574
|
try {
|
|
561
|
-
const
|
|
562
|
-
absoluteIndex:
|
|
563
|
-
seriesIndex:
|
|
575
|
+
const _ = d.customFormat({
|
|
576
|
+
absoluteIndex: ce.value,
|
|
577
|
+
seriesIndex: ce.value,
|
|
564
578
|
datapoint: d.selectedSeries
|
|
565
579
|
}), z = d.customFormat({
|
|
566
|
-
absoluteIndex:
|
|
580
|
+
absoluteIndex: fe.value - 1,
|
|
567
581
|
seriesIndex: -1,
|
|
568
582
|
datapoint: d.selectedSeries
|
|
569
583
|
});
|
|
570
|
-
typeof
|
|
584
|
+
typeof _ == "string" && typeof z == "string" && (v = _, m = z, f = !0);
|
|
571
585
|
} catch {
|
|
572
586
|
f = !1;
|
|
573
587
|
}
|
|
574
588
|
if (!f) {
|
|
575
|
-
const
|
|
576
|
-
v =
|
|
589
|
+
const _ = d.usePreciseLabels ? d.preciseLabels.find((D) => D.absoluteIndex === ce.value) : d.timeLabels.find((D) => D.absoluteIndex === ce.value), z = d.usePreciseLabels ? d.preciseLabels.find((D) => D.absoluteIndex === fe.value - 1) : d.timeLabels.find((D) => D.absoluteIndex === fe.value - 1);
|
|
590
|
+
v = _ ? _.text : "", m = z ? z.text : "";
|
|
577
591
|
}
|
|
578
592
|
return { left: v, right: m };
|
|
579
593
|
});
|
|
@@ -588,7 +602,7 @@ const _n = {
|
|
|
588
602
|
x1: ae.value * v + (d.minimapCompact ? 0 : ae.value / 2),
|
|
589
603
|
x2: ae.value * v + (d.minimapCompact ? 0 : ae.value / 2),
|
|
590
604
|
y1: 0,
|
|
591
|
-
y2: Math.max(
|
|
605
|
+
y2: Math.max(W.value.height, 0),
|
|
592
606
|
stroke: d.minimapIndicatorColor,
|
|
593
607
|
"stroke-linecap": "round",
|
|
594
608
|
"stroke-dasharray": 2,
|
|
@@ -597,37 +611,37 @@ const _n = {
|
|
|
597
611
|
} else
|
|
598
612
|
return null;
|
|
599
613
|
});
|
|
600
|
-
return
|
|
601
|
-
setStartValue:
|
|
602
|
-
setEndValue:
|
|
614
|
+
return Sa({
|
|
615
|
+
setStartValue: Lt,
|
|
616
|
+
setEndValue: _e
|
|
603
617
|
}), (v, m) => (n(), u("div", {
|
|
604
618
|
"data-dom-to-png-ignore": "",
|
|
605
619
|
style: { padding: "0 24px" },
|
|
606
620
|
class: "vue-data-ui-zoom",
|
|
607
621
|
ref_key: "zoomWrapper",
|
|
608
|
-
ref:
|
|
622
|
+
ref: Le,
|
|
609
623
|
onMousedown: al,
|
|
610
624
|
onTouchstart: al
|
|
611
625
|
}, [
|
|
612
626
|
k("div", _n, [
|
|
613
|
-
|
|
614
|
-
|
|
627
|
+
$.valueStart !== $.refreshStartPoint || $.valueEnd !== Ke.value ? (n(), u("div", Mn, [
|
|
628
|
+
$.useResetSlot ? te(v.$slots, "reset-action", {
|
|
615
629
|
key: 1,
|
|
616
|
-
reset:
|
|
630
|
+
reset: E
|
|
617
631
|
}, void 0, !0) : (n(), u("button", {
|
|
618
632
|
key: 0,
|
|
619
633
|
tabindex: "0",
|
|
620
634
|
role: "button",
|
|
621
635
|
class: "vue-data-ui-refresh-button",
|
|
622
|
-
style:
|
|
623
|
-
top:
|
|
636
|
+
style: C({
|
|
637
|
+
top: me.value ? "36px" : "-16px",
|
|
624
638
|
pointerEvents: "all !important"
|
|
625
639
|
}),
|
|
626
|
-
onClick:
|
|
640
|
+
onClick: E
|
|
627
641
|
}, [
|
|
628
642
|
ml(Sn, {
|
|
629
643
|
name: "refresh",
|
|
630
|
-
stroke:
|
|
644
|
+
stroke: $.textColor
|
|
631
645
|
}, null, 8, ["stroke"])
|
|
632
646
|
], 4))
|
|
633
647
|
])) : g("", !0)
|
|
@@ -635,16 +649,16 @@ const _n = {
|
|
|
635
649
|
k("div", {
|
|
636
650
|
class: "double-range-slider",
|
|
637
651
|
ref_key: "minimapWrapper",
|
|
638
|
-
ref:
|
|
652
|
+
ref: Jt,
|
|
639
653
|
style: { "z-index": "0" },
|
|
640
|
-
onMouseenter: m[11] || (m[11] = (f) =>
|
|
641
|
-
onMouseleave: m[12] || (m[12] = (f) =>
|
|
654
|
+
onMouseenter: m[11] || (m[11] = (f) => Vt.value = !0),
|
|
655
|
+
onMouseleave: m[12] || (m[12] = (f) => Vt.value = !1)
|
|
642
656
|
}, [
|
|
643
|
-
|
|
657
|
+
me.value ? (n(), u("div", Ln, [
|
|
644
658
|
(n(), u("svg", {
|
|
645
|
-
key: `mm-${
|
|
659
|
+
key: `mm-${$.minimapMerged ? "merged" : "split"}-${$.minimapCompact ? "compact" : "normal"}`,
|
|
646
660
|
xmlns: h(Qo),
|
|
647
|
-
viewBox: `0 0 ${Math.max(0,
|
|
661
|
+
viewBox: `0 0 ${Math.max(0, W.value.width)} ${Math.max(0, W.value.height)}`
|
|
648
662
|
}, [
|
|
649
663
|
k("defs", null, [
|
|
650
664
|
k("linearGradient", {
|
|
@@ -656,7 +670,7 @@ const _n = {
|
|
|
656
670
|
}, [
|
|
657
671
|
k("stop", {
|
|
658
672
|
offset: "0%",
|
|
659
|
-
"stop-color": `${
|
|
673
|
+
"stop-color": `${$.minimapLineColor}50`
|
|
660
674
|
}, null, 8, zn),
|
|
661
675
|
m[13] || (m[13] = k("stop", {
|
|
662
676
|
offset: "100%",
|
|
@@ -664,48 +678,48 @@ const _n = {
|
|
|
664
678
|
}, null, -1))
|
|
665
679
|
], 8, An)
|
|
666
680
|
]),
|
|
667
|
-
|
|
681
|
+
$.minimapCompact ? (n(), u("rect", {
|
|
668
682
|
key: 0,
|
|
669
683
|
class: "vue-ui-zoom-minimap-frame",
|
|
670
684
|
x: 0,
|
|
671
685
|
y: 0,
|
|
672
|
-
width:
|
|
673
|
-
height:
|
|
686
|
+
width: W.value.width,
|
|
687
|
+
height: W.value.height,
|
|
674
688
|
fill: "none",
|
|
675
|
-
stroke:
|
|
689
|
+
stroke: $.minimapFrameColor,
|
|
676
690
|
rx: 3
|
|
677
691
|
}, null, 8, Tn)) : g("", !0),
|
|
678
|
-
|
|
692
|
+
$.minimapMerged ? (n(), u("path", {
|
|
679
693
|
key: 1,
|
|
680
|
-
d: `M${
|
|
681
|
-
stroke: `${
|
|
694
|
+
d: `M${H.value.fullSet}`,
|
|
695
|
+
stroke: `${$.minimapLineColor}`,
|
|
682
696
|
fill: "none",
|
|
683
697
|
"stroke-width": "1",
|
|
684
698
|
"stroke-linecap": "round",
|
|
685
699
|
"stroke-linejoin": "round",
|
|
686
700
|
style: { opacity: "0.6" }
|
|
687
701
|
}, null, 8, In)) : g("", !0),
|
|
688
|
-
|
|
702
|
+
$.minimapMerged && !$.minimapCompact ? (n(), u("path", {
|
|
689
703
|
key: 2,
|
|
690
|
-
d: `M${ae.value / 2},${Math.max(
|
|
704
|
+
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
705
|
fill: `url(#${Al.value})`,
|
|
692
706
|
stroke: "none",
|
|
693
707
|
style: { opacity: "0.6" }
|
|
694
|
-
}, null, 8, Nn)) :
|
|
695
|
-
(n(!0), u(b, null,
|
|
696
|
-
(n(!0), u(b, null,
|
|
708
|
+
}, null, 8, Nn)) : $.minimapMerged ? g("", !0) : (n(), u(b, { key: 3 }, [
|
|
709
|
+
(n(!0), u(b, null, L(Je.value.filter((f) => f.type === "bar"), (f, _) => (n(), u("g", null, [
|
|
710
|
+
(n(!0), u(b, null, L(f.points, (z, D) => (n(), u(b, null, [
|
|
697
711
|
f.isVisible && !isNaN(z.y) ? (n(), u("rect", {
|
|
698
712
|
key: 0,
|
|
699
|
-
x: Pl(z.x,
|
|
713
|
+
x: Pl(z.x, _, D),
|
|
700
714
|
y: z.v >= 0 ? z.y : z.y0,
|
|
701
|
-
width: Fl(
|
|
715
|
+
width: Fl(_, D),
|
|
702
716
|
height: z.v >= 0 ? z.y0 - z.y : z.y - z.y0,
|
|
703
717
|
fill: f.color,
|
|
704
718
|
style: { opacity: 0.6 }
|
|
705
719
|
}, null, 8, Pn)) : g("", !0)
|
|
706
720
|
], 64))), 256))
|
|
707
721
|
]))), 256)),
|
|
708
|
-
(n(!0), u(b, null,
|
|
722
|
+
(n(!0), u(b, null, L(Je.value.filter((f) => f.type === "line"), (f) => (n(), u("g", null, [
|
|
709
723
|
f.isVisible ? (n(), u("path", {
|
|
710
724
|
key: 0,
|
|
711
725
|
d: `M ${f.fullSet}`,
|
|
@@ -713,10 +727,10 @@ const _n = {
|
|
|
713
727
|
stroke: f.color,
|
|
714
728
|
style: { opacity: "0.6" }
|
|
715
729
|
}, null, 8, Fn)) : g("", !0),
|
|
716
|
-
f.isVisible ? (n(!0), u(b, { key: 1 },
|
|
717
|
-
key: `sel-dot-under-${f.key}-${
|
|
718
|
-
cx:
|
|
719
|
-
cy:
|
|
730
|
+
f.isVisible ? (n(!0), u(b, { key: 1 }, L(f.fullMarkers, (_) => (n(), u("circle", {
|
|
731
|
+
key: `sel-dot-under-${f.key}-${_.i}`,
|
|
732
|
+
cx: _.x,
|
|
733
|
+
cy: _.y,
|
|
720
734
|
r: "2",
|
|
721
735
|
fill: f.color,
|
|
722
736
|
stroke: ne.value,
|
|
@@ -726,94 +740,94 @@ const _n = {
|
|
|
726
740
|
]))), 256))
|
|
727
741
|
], 64)),
|
|
728
742
|
k("rect", {
|
|
729
|
-
x:
|
|
743
|
+
x: M.value.x,
|
|
730
744
|
y: 0,
|
|
731
|
-
width: Math.max(0,
|
|
732
|
-
height: Math.max(
|
|
745
|
+
width: Math.max(0, M.value.width),
|
|
746
|
+
height: Math.max(W.value.height, 0),
|
|
733
747
|
fill: ne.value,
|
|
734
|
-
rx:
|
|
748
|
+
rx: $.minimapSelectionRadius,
|
|
735
749
|
stroke: "none"
|
|
736
750
|
}, null, 8, On),
|
|
737
751
|
k("rect", {
|
|
738
|
-
x:
|
|
752
|
+
x: M.value.x,
|
|
739
753
|
y: 0,
|
|
740
|
-
width:
|
|
741
|
-
height: Math.max(
|
|
742
|
-
rx:
|
|
754
|
+
width: M.value.width < 0 ? 0 : M.value.width,
|
|
755
|
+
height: Math.max(W.value.height, 0),
|
|
756
|
+
rx: $.minimapSelectionRadius,
|
|
743
757
|
fill: ne.value,
|
|
744
|
-
style:
|
|
758
|
+
style: C({ opacity: Ft.value || St.value ? 0 : 1 })
|
|
745
759
|
}, null, 12, Vn),
|
|
746
760
|
k("rect", {
|
|
747
|
-
x:
|
|
761
|
+
x: M.value.x,
|
|
748
762
|
y: 0,
|
|
749
|
-
width:
|
|
750
|
-
height: Math.max(
|
|
751
|
-
fill:
|
|
752
|
-
rx:
|
|
753
|
-
style:
|
|
763
|
+
width: M.value.width < 0 ? 0 : M.value.width,
|
|
764
|
+
height: Math.max(W.value.height, 0),
|
|
765
|
+
fill: $.minimapSelectedColor,
|
|
766
|
+
rx: $.minimapSelectionRadius,
|
|
767
|
+
style: C({ opacity: $.minimapSelectedColorOpacity })
|
|
754
768
|
}, null, 12, Bn),
|
|
755
|
-
|
|
769
|
+
!$.minimapMerged && X.value < 0 ? (n(), u("line", {
|
|
756
770
|
key: 4,
|
|
757
771
|
class: "slicer-minimap-zero-line",
|
|
758
772
|
x1: 0,
|
|
759
|
-
x2:
|
|
760
|
-
y1:
|
|
761
|
-
y2:
|
|
762
|
-
stroke:
|
|
773
|
+
x2: W.value.width,
|
|
774
|
+
y1: $e.value,
|
|
775
|
+
y2: $e.value,
|
|
776
|
+
stroke: $.minimapFrameColor,
|
|
763
777
|
"stroke-width": "0.5"
|
|
764
778
|
}, null, 8, En)) : g("", !0),
|
|
765
|
-
|
|
766
|
-
|
|
767
|
-
|
|
779
|
+
$.minimapMerged ? (n(), u("g", Hn, [
|
|
780
|
+
H.value && H.value.sliced && H.value.sliced.length ? (n(), u(b, { key: 0 }, [
|
|
781
|
+
H.value.selectionSet ? (n(), u("path", {
|
|
768
782
|
key: 0,
|
|
769
|
-
d: `M${
|
|
783
|
+
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
784
|
fill: `url(#${Al.value})`,
|
|
771
785
|
stroke: "none",
|
|
772
786
|
style: { opacity: "1" }
|
|
773
787
|
}, null, 8, Dn)) : g("", !0),
|
|
774
|
-
|
|
788
|
+
H.value.selectionSet ? (n(), u("path", {
|
|
775
789
|
key: 1,
|
|
776
|
-
d: `M ${
|
|
777
|
-
stroke: `${
|
|
790
|
+
d: `M ${H.value.selectionSet}`,
|
|
791
|
+
stroke: `${$.minimapLineColor}`,
|
|
778
792
|
fill: "transparent",
|
|
779
793
|
"stroke-width": "2",
|
|
780
794
|
"stroke-linecap": "round",
|
|
781
795
|
"stroke-linejoin": "round"
|
|
782
796
|
}, null, 8, Wn)) : g("", !0)
|
|
783
797
|
], 64)) : g("", !0),
|
|
784
|
-
|
|
798
|
+
H.value && H.value.firstPlot ? (n(), u("circle", {
|
|
785
799
|
key: 1,
|
|
786
|
-
cx:
|
|
787
|
-
cy:
|
|
800
|
+
cx: H.value.firstPlot.x,
|
|
801
|
+
cy: H.value.firstPlot.y,
|
|
788
802
|
"stroke-width": "0.5",
|
|
789
803
|
stroke: ne.value,
|
|
790
804
|
r: "3",
|
|
791
|
-
fill:
|
|
805
|
+
fill: $.minimapLineColor
|
|
792
806
|
}, null, 8, Xn)) : g("", !0),
|
|
793
|
-
|
|
807
|
+
H.value && H.value.lastPlot ? (n(), u("circle", {
|
|
794
808
|
key: 2,
|
|
795
|
-
cx:
|
|
796
|
-
cy:
|
|
809
|
+
cx: H.value.lastPlot.x,
|
|
810
|
+
cy: H.value.lastPlot.y,
|
|
797
811
|
"stroke-width": "0.5",
|
|
798
812
|
stroke: ne.value,
|
|
799
813
|
r: "3",
|
|
800
|
-
fill:
|
|
814
|
+
fill: $.minimapLineColor
|
|
801
815
|
}, null, 8, Yn)) : g("", !0)
|
|
802
816
|
])) : (n(), u("g", Gn, [
|
|
803
|
-
(n(!0), u(b, null,
|
|
804
|
-
(n(!0), u(b, null,
|
|
817
|
+
(n(!0), u(b, null, L(Je.value.filter((f) => f.type === "bar"), (f, _) => (n(), u("g", null, [
|
|
818
|
+
(n(!0), u(b, null, L(f.points, (z, D) => (n(), u(b, null, [
|
|
805
819
|
f && f.isVisible && !isNaN(z.y) ? (n(), u("rect", {
|
|
806
820
|
key: 0,
|
|
807
|
-
x: Pl(z.x,
|
|
821
|
+
x: Pl(z.x, _, D),
|
|
808
822
|
y: z.v >= 0 ? z.y : z.y0,
|
|
809
|
-
width: Fl(
|
|
823
|
+
width: Fl(_, D),
|
|
810
824
|
height: z.v >= 0 ? z.y0 - z.y : z.y - z.y0,
|
|
811
825
|
fill: f.color,
|
|
812
|
-
style:
|
|
826
|
+
style: C({ opacity: D >= qt.value && D < $t.value ? 1 : 0 })
|
|
813
827
|
}, null, 12, Un)) : g("", !0)
|
|
814
828
|
], 64))), 256))
|
|
815
829
|
]))), 256)),
|
|
816
|
-
(n(!0), u(b, null,
|
|
830
|
+
(n(!0), u(b, null, L(Je.value.filter((f) => f.type === "line"), (f) => (n(), u("g", {
|
|
817
831
|
key: String(f.key)
|
|
818
832
|
}, [
|
|
819
833
|
f && f.hasSelection && f.selectionSet && f.isVisible ? (n(), u("path", {
|
|
@@ -827,64 +841,64 @@ const _n = {
|
|
|
827
841
|
}, null, 8, qn)) : g("", !0)
|
|
828
842
|
]))), 128))
|
|
829
843
|
])),
|
|
830
|
-
|
|
844
|
+
me.value && $.minimapCompact ? (n(), u("rect", {
|
|
831
845
|
key: 7,
|
|
832
846
|
class: "vue-ui-zoom-compact-minimap-handle",
|
|
833
|
-
x:
|
|
847
|
+
x: M.value.x - 8,
|
|
834
848
|
y: 0,
|
|
835
849
|
width: 8,
|
|
836
|
-
height:
|
|
850
|
+
height: W.value.height,
|
|
837
851
|
fill: ne.value,
|
|
838
|
-
stroke:
|
|
852
|
+
stroke: $.textColor,
|
|
839
853
|
rx: 3
|
|
840
854
|
}, null, 8, Zn)) : g("", !0),
|
|
841
|
-
|
|
855
|
+
me.value && $.minimapCompact ? (n(), u("rect", {
|
|
842
856
|
key: 8,
|
|
843
857
|
class: "vue-ui-zoom-compact-minimap-handle",
|
|
844
|
-
x:
|
|
858
|
+
x: M.value.x + M.value.width,
|
|
845
859
|
y: 0,
|
|
846
860
|
width: 8,
|
|
847
|
-
height:
|
|
861
|
+
height: W.value.height,
|
|
848
862
|
fill: ne.value,
|
|
849
|
-
stroke:
|
|
863
|
+
stroke: $.textColor,
|
|
850
864
|
rx: 3
|
|
851
865
|
}, null, 8, Kn)) : g("", !0),
|
|
852
|
-
xt.value !== null && !tt.value ? (n(), u("line",
|
|
853
|
-
|
|
854
|
-
|
|
866
|
+
xt.value !== null && !tt.value ? (n(), u("line", Yt(Gt({ key: 9 }, Xl.value)), null, 16)) : g("", !0),
|
|
867
|
+
$.minimapMerged ? (n(), u("g", Jn, [
|
|
868
|
+
H.value && H.value.firstPlot && H.value.firstPlot.value !== null ? (n(), u("circle", {
|
|
855
869
|
key: 0,
|
|
856
|
-
cx:
|
|
857
|
-
cy:
|
|
870
|
+
cx: H.value.firstPlot.x,
|
|
871
|
+
cy: H.value.firstPlot.y,
|
|
858
872
|
"stroke-width": "0.5",
|
|
859
873
|
stroke: ne.value,
|
|
860
874
|
r: "4",
|
|
861
|
-
fill:
|
|
875
|
+
fill: $.minimapLineColor
|
|
862
876
|
}, null, 8, Qn)) : g("", !0),
|
|
863
|
-
|
|
877
|
+
H.value && H.value.firstPlot && H.value.firstPlot.value !== null ? (n(), u("circle", {
|
|
864
878
|
key: 1,
|
|
865
|
-
cx:
|
|
866
|
-
cy:
|
|
879
|
+
cx: H.value.firstPlot.x,
|
|
880
|
+
cy: H.value.firstPlot.y,
|
|
867
881
|
r: 2,
|
|
868
882
|
fill: ne.value
|
|
869
883
|
}, null, 8, jn)) : g("", !0),
|
|
870
|
-
|
|
884
|
+
H.value && H.value.lastPlot && H.value.lastPlot.value !== null ? (n(), u("circle", {
|
|
871
885
|
key: 2,
|
|
872
|
-
cx:
|
|
873
|
-
cy:
|
|
886
|
+
cx: H.value.lastPlot.x,
|
|
887
|
+
cy: H.value.lastPlot.y,
|
|
874
888
|
"stroke-width": "0.5",
|
|
875
889
|
stroke: ne.value,
|
|
876
890
|
r: "4",
|
|
877
|
-
fill:
|
|
891
|
+
fill: $.minimapLineColor
|
|
878
892
|
}, null, 8, eu)) : g("", !0),
|
|
879
|
-
|
|
893
|
+
H.value && H.value.lastPlot && H.value.lastPlot.value !== null ? (n(), u("circle", {
|
|
880
894
|
key: 3,
|
|
881
|
-
cx:
|
|
882
|
-
cy:
|
|
895
|
+
cx: H.value.lastPlot.x,
|
|
896
|
+
cy: H.value.lastPlot.y,
|
|
883
897
|
r: "2",
|
|
884
898
|
fill: ne.value
|
|
885
899
|
}, null, 8, tu)) : g("", !0)
|
|
886
900
|
])) : (n(), u("g", lu, [
|
|
887
|
-
(n(!0), u(b, null,
|
|
901
|
+
(n(!0), u(b, null, L(Je.value.filter((f) => f.type === "line"), (f) => (n(), u("g", {
|
|
888
902
|
key: String(f.key)
|
|
889
903
|
}, [
|
|
890
904
|
f && f.hasSelection && f.selectionSet && f.isVisible ? (n(), u("path", {
|
|
@@ -896,10 +910,10 @@ const _n = {
|
|
|
896
910
|
"stroke-linecap": "round",
|
|
897
911
|
"stroke-linejoin": "round"
|
|
898
912
|
}, null, 8, au)) : g("", !0),
|
|
899
|
-
f.isVisible ? (n(!0), u(b, { key: 1 },
|
|
900
|
-
key: `sel-dot-${f.key}-${
|
|
901
|
-
cx:
|
|
902
|
-
cy:
|
|
913
|
+
f.isVisible ? (n(!0), u(b, { key: 1 }, L(f.selectionMarkers, (_) => (n(), u("circle", {
|
|
914
|
+
key: `sel-dot-${f.key}-${_.i}`,
|
|
915
|
+
cx: _.x,
|
|
916
|
+
cy: _.y,
|
|
903
917
|
r: "2.5",
|
|
904
918
|
fill: f.color,
|
|
905
919
|
stroke: ne.value,
|
|
@@ -939,65 +953,65 @@ const _n = {
|
|
|
939
953
|
}, null, 8, su)) : g("", !0)
|
|
940
954
|
]))), 128))
|
|
941
955
|
])),
|
|
942
|
-
(n(!0), u(b, null,
|
|
943
|
-
x: ae.value *
|
|
956
|
+
(n(!0), u(b, null, L(Ql.value, (f, _) => (n(), u("rect", {
|
|
957
|
+
x: ae.value * _ - ($.minimapCompact ? ae.value / 2 : 0),
|
|
944
958
|
y: 0,
|
|
945
|
-
height: Math.max(
|
|
959
|
+
height: Math.max(W.value.height, 0),
|
|
946
960
|
width: ae.value < 0 ? 0 : ae.value,
|
|
947
961
|
fill: "transparent",
|
|
948
|
-
style:
|
|
962
|
+
style: C([{ "pointer-events": "all !important" }, { cursor: f >= Ee.value && f < Pe.value && $.enableSelectionDrag ? tt.value ? "grabbing" : "grab" : "default" }]),
|
|
949
963
|
onMousedown: m[0] || (m[0] = (z) => tt.value = !0),
|
|
950
964
|
onMouseup: m[1] || (m[1] = (z) => tt.value = !1),
|
|
951
965
|
onMouseenter: (z) => Bl(f),
|
|
952
966
|
onMouseleave: m[2] || (m[2] = (z) => {
|
|
953
|
-
xt.value = null,
|
|
967
|
+
xt.value = null, Ce("trapMouse", null);
|
|
954
968
|
})
|
|
955
969
|
}, null, 44, ru))), 256))
|
|
956
970
|
], 8, Cn))
|
|
957
971
|
])) : g("", !0),
|
|
958
972
|
k("div", {
|
|
959
973
|
class: "slider-track",
|
|
960
|
-
style:
|
|
974
|
+
style: C({ visibility: me.value && $.minimapCompact ? "hidden" : "visible" })
|
|
961
975
|
}, null, 4),
|
|
962
976
|
k("div", {
|
|
963
|
-
class: Ze({ "range-highlight": !0, move:
|
|
977
|
+
class: Ze({ "range-highlight": !0, move: $.enableSelectionDrag }),
|
|
964
978
|
onMousedown: m[3] || (m[3] = (f) => tt.value = !0),
|
|
965
979
|
onMouseup: m[4] || (m[4] = (f) => tt.value = !1),
|
|
966
|
-
style:
|
|
980
|
+
style: C({
|
|
967
981
|
...Se.value,
|
|
968
982
|
cursor: tt.value ? "grabbing" : "grab",
|
|
969
|
-
visibility:
|
|
983
|
+
visibility: me.value && $.minimapCompact ? "hidden" : "visible"
|
|
970
984
|
})
|
|
971
985
|
}, null, 38),
|
|
972
|
-
|
|
986
|
+
$.enableRangeHandles ? Oa((n(), u("input", {
|
|
973
987
|
key: 1,
|
|
974
988
|
ref_key: "rangeStart",
|
|
975
|
-
ref:
|
|
989
|
+
ref: Mt,
|
|
976
990
|
type: "range",
|
|
977
991
|
class: Ze({
|
|
978
992
|
"range-left": !0,
|
|
979
993
|
"range-handle": !0,
|
|
980
|
-
"range-minimap":
|
|
981
|
-
"range-invisible":
|
|
994
|
+
"range-minimap": me.value && $.verticalHandles,
|
|
995
|
+
"range-invisible": me.value && $.minimapCompact
|
|
982
996
|
}),
|
|
983
|
-
min:
|
|
984
|
-
max:
|
|
985
|
-
"onUpdate:modelValue": m[5] || (m[5] = (f) =>
|
|
986
|
-
onInput: m[6] || (m[6] = (f) =>
|
|
997
|
+
min: $.min,
|
|
998
|
+
max: $.minimapCompact && me.value ? Math.max(0, at.value - 1) : $.max,
|
|
999
|
+
"onUpdate:modelValue": m[5] || (m[5] = (f) => Pt.value = f),
|
|
1000
|
+
onInput: m[6] || (m[6] = (f) => Pt.value = f.target.valueAsNumber),
|
|
987
1001
|
onChange: Te,
|
|
988
|
-
onKeyup:
|
|
1002
|
+
onKeyup: fo(Te, ["enter"]),
|
|
989
1003
|
onBlur: Te,
|
|
990
1004
|
onMouseenter: m[7] || (m[7] = (f) => Wl("start")),
|
|
991
1005
|
onPointerup: Te
|
|
992
1006
|
}, null, 42, cu)), [
|
|
993
1007
|
[
|
|
994
|
-
|
|
995
|
-
|
|
1008
|
+
mo,
|
|
1009
|
+
Pt.value,
|
|
996
1010
|
void 0,
|
|
997
1011
|
{ number: !0 }
|
|
998
1012
|
]
|
|
999
1013
|
]) : g("", !0),
|
|
1000
|
-
|
|
1014
|
+
$.enableRangeHandles ? Oa((n(), u("input", {
|
|
1001
1015
|
key: 2,
|
|
1002
1016
|
ref_key: "rangeEnd",
|
|
1003
1017
|
ref: t,
|
|
@@ -1005,90 +1019,90 @@ const _n = {
|
|
|
1005
1019
|
class: Ze({
|
|
1006
1020
|
"range-right": !0,
|
|
1007
1021
|
"range-handle": !0,
|
|
1008
|
-
"range-minimap":
|
|
1009
|
-
"range-invisible":
|
|
1022
|
+
"range-minimap": me.value && $.verticalHandles,
|
|
1023
|
+
"range-invisible": me.value && $.minimapCompact
|
|
1010
1024
|
}),
|
|
1011
|
-
min:
|
|
1012
|
-
max:
|
|
1013
|
-
"onUpdate:modelValue": m[8] || (m[8] = (f) =>
|
|
1014
|
-
onInput: m[9] || (m[9] = (f) =>
|
|
1025
|
+
min: $.min,
|
|
1026
|
+
max: $.minimapCompact && me.value ? Math.max(0, at.value - 1) : $.max,
|
|
1027
|
+
"onUpdate:modelValue": m[8] || (m[8] = (f) => el.value = f),
|
|
1028
|
+
onInput: m[9] || (m[9] = (f) => el.value = f.target.valueAsNumber),
|
|
1015
1029
|
onChange: Te,
|
|
1016
|
-
onKeyup:
|
|
1030
|
+
onKeyup: fo(Te, ["enter"]),
|
|
1017
1031
|
onBlur: Te,
|
|
1018
1032
|
onMouseenter: m[10] || (m[10] = (f) => Wl("end")),
|
|
1019
1033
|
onPointerup: Te
|
|
1020
1034
|
}, null, 42, vu)), [
|
|
1021
1035
|
[
|
|
1022
|
-
|
|
1023
|
-
|
|
1036
|
+
mo,
|
|
1037
|
+
el.value,
|
|
1024
1038
|
void 0,
|
|
1025
1039
|
{ number: !0 }
|
|
1026
1040
|
]
|
|
1027
1041
|
]) : g("", !0),
|
|
1028
|
-
|
|
1042
|
+
ge.value.left ? (n(), u("div", {
|
|
1029
1043
|
key: 3,
|
|
1030
1044
|
ref_key: "tooltipLeft",
|
|
1031
1045
|
ref: nl,
|
|
1032
1046
|
class: Ze({
|
|
1033
1047
|
"range-tooltip": !0,
|
|
1034
|
-
"range-tooltip-visible":
|
|
1035
|
-
"range-tooltip-arrow": Se.value.arrowLeft &&
|
|
1036
|
-
"range-tooltip-arrow-left": !Se.value.arrowLeft &&
|
|
1048
|
+
"range-tooltip-visible": Vt.value,
|
|
1049
|
+
"range-tooltip-arrow": Se.value.arrowLeft && !$.verticalHandles,
|
|
1050
|
+
"range-tooltip-arrow-left": !Se.value.arrowLeft && !$.verticalHandles
|
|
1037
1051
|
}),
|
|
1038
|
-
style:
|
|
1052
|
+
style: C({
|
|
1039
1053
|
left: Se.value.tooltipLeft,
|
|
1040
|
-
color: h(dt)(
|
|
1041
|
-
backgroundColor:
|
|
1054
|
+
color: h(dt)($.selectColor),
|
|
1055
|
+
backgroundColor: $.selectColor,
|
|
1042
1056
|
border: `1px solid ${ne.value}`,
|
|
1043
1057
|
zIndex: `${aa.value + 4}`,
|
|
1044
|
-
visibility: kt.value ||
|
|
1045
|
-
top:
|
|
1058
|
+
visibility: kt.value || ge.value.left === ge.value.right ? "hidden" : "visible",
|
|
1059
|
+
top: me.value && $.minimapCompact ? "calc(-100% - 12px)" : "-100%"
|
|
1046
1060
|
})
|
|
1047
|
-
}, re(
|
|
1048
|
-
(kt.value ||
|
|
1061
|
+
}, re(ge.value.left), 7)) : g("", !0),
|
|
1062
|
+
(kt.value || ge.value.left === ge.value.right) && (ge.value.left || ge.value.right) ? (n(), u("div", {
|
|
1049
1063
|
key: 4,
|
|
1050
1064
|
ref: "tooltipMerge",
|
|
1051
1065
|
class: Ze({
|
|
1052
1066
|
"range-tooltip": !0,
|
|
1053
|
-
"range-tooltip-visible":
|
|
1067
|
+
"range-tooltip-visible": Vt.value,
|
|
1054
1068
|
"range-tooltip-arrow": !0,
|
|
1055
|
-
"range-tooltip-arrow-left": !Se.value.arrowLeft &&
|
|
1056
|
-
"range-tooltip-arrow-right": !Se.value.arrowRight &&
|
|
1069
|
+
"range-tooltip-arrow-left": !Se.value.arrowLeft && !$.verticalHandles,
|
|
1070
|
+
"range-tooltip-arrow-right": !Se.value.arrowRight && !$.verticalHandles
|
|
1057
1071
|
}),
|
|
1058
|
-
style:
|
|
1072
|
+
style: C({
|
|
1059
1073
|
left: Se.value.tooltipCenter,
|
|
1060
|
-
width:
|
|
1061
|
-
color: h(dt)(
|
|
1062
|
-
backgroundColor:
|
|
1074
|
+
width: Bt.value.width + "px",
|
|
1075
|
+
color: h(dt)($.selectColor),
|
|
1076
|
+
backgroundColor: $.selectColor,
|
|
1063
1077
|
border: `1px solid ${ne.value}`,
|
|
1064
1078
|
zIndex: "4",
|
|
1065
|
-
top:
|
|
1079
|
+
top: me.value && $.minimapCompact ? "calc(-100% - 12px)" : "-100%"
|
|
1066
1080
|
})
|
|
1067
|
-
}, re(
|
|
1068
|
-
|
|
1081
|
+
}, re(ge.value.left === ge.value.right ? ge.value.left : `${ge.value.left} - ${ge.value.right}`), 7)) : g("", !0),
|
|
1082
|
+
ge.value.right ? (n(), u("div", {
|
|
1069
1083
|
key: 5,
|
|
1070
1084
|
ref_key: "tooltipRight",
|
|
1071
|
-
ref:
|
|
1085
|
+
ref: Ot,
|
|
1072
1086
|
class: Ze({
|
|
1073
1087
|
"range-tooltip": !0,
|
|
1074
|
-
"range-tooltip-visible":
|
|
1075
|
-
"range-tooltip-arrow": Se.value.arrowRight &&
|
|
1076
|
-
"range-tooltip-arrow-right": !Se.value.arrowRight &&
|
|
1088
|
+
"range-tooltip-visible": Vt.value,
|
|
1089
|
+
"range-tooltip-arrow": Se.value.arrowRight && !$.verticalHandles,
|
|
1090
|
+
"range-tooltip-arrow-right": !Se.value.arrowRight && !$.verticalHandles
|
|
1077
1091
|
}),
|
|
1078
|
-
style:
|
|
1092
|
+
style: C({
|
|
1079
1093
|
left: Se.value.tooltipRight,
|
|
1080
|
-
color: h(dt)(
|
|
1081
|
-
backgroundColor:
|
|
1094
|
+
color: h(dt)($.selectColor),
|
|
1095
|
+
backgroundColor: $.selectColor,
|
|
1082
1096
|
border: `1px solid ${ne.value}`,
|
|
1083
1097
|
zIndex: "4",
|
|
1084
|
-
visibility: kt.value ||
|
|
1085
|
-
top:
|
|
1098
|
+
visibility: kt.value || ge.value.left === ge.value.right ? "hidden" : "visible",
|
|
1099
|
+
top: me.value && $.minimapCompact ? "calc(-100% - 12px)" : "-100%"
|
|
1086
1100
|
})
|
|
1087
|
-
}, re(
|
|
1101
|
+
}, re(ge.value.right), 7)) : g("", !0)
|
|
1088
1102
|
], 544)
|
|
1089
1103
|
], 544));
|
|
1090
1104
|
}
|
|
1091
|
-
}, hu = /* @__PURE__ */
|
|
1105
|
+
}, hu = /* @__PURE__ */ Lo(du, [["__scopeId", "data-v-df735051"]]), fu = ["id"], mu = ["id"], gu = ["viewBox", "aria-label"], xu = ["x", "y", "width", "height"], bu = { key: 1 }, yu = { class: "vue-ui-xy-grid" }, pu = ["stroke", "x1", "x2", "y1", "y2"], ku = ["stroke", "x1", "x2", "y1", "y2"], wu = { key: 1 }, Su = ["x1", "x2", "y1", "y2", "stroke"], $u = ["x1", "x2", "y1", "y2", "stroke"], _u = ["x1", "x2", "y1", "y2", "stroke"], Mu = { key: 3 }, Lu = ["d", "stroke"], Cu = { key: 4 }, Au = ["d", "stroke"], zu = ["id"], Tu = ["stop-color"], Iu = ["stop-color"], Nu = ["stop-color"], Pu = ["id"], Fu = ["stop-color"], Ru = ["stop-color"], Ou = ["stop-color"], Vu = ["id"], Bu = ["stop-color"], Eu = ["stop-color"], Hu = ["id"], Du = ["stop-color"], Wu = ["stop-color"], Xu = ["id"], Yu = ["stop-color"], Gu = ["stop-color"], Uu = ["x", "y", "height", "width", "fill"], qu = ["x", "y", "width"], Zu = { key: 0 }, Ku = ["x", "y", "height", "width", "fill"], Ju = ["x", "y", "height", "width", "rx", "fill", "stroke", "stroke-width"], Qu = ["x", "y", "height", "width", "rx", "fill", "stroke", "stroke-width"], ju = ["width", "x", "y"], ei = { key: 0 }, ti = ["id"], li = ["fill"], ai = ["x1", "x2", "y1", "y2", "stroke", "marker-end"], oi = ["x", "y", "font-size", "fill"], ni = ["stroke", "x1", "x2", "y1", "y2"], ui = { key: 3 }, ii = ["x1", "x2", "y1", "y2", "stroke", "stroke-width", "stroke-dasharray"], si = ["x", "y", "width", "height", "stroke", "stroke-width", "stroke-linecap", "stroke-linejoin", "stroke-dasharray"], ri = ["x1", "x2", "y1", "y2", "stroke", "stroke-width"], ci = ["fill", "font-size", "transform"], vi = ["x1", "x2", "y1", "y2", "stroke"], di = ["x", "y", "font-size", "fill"], hi = ["x1", "x2", "y1", "y2", "stroke"], fi = ["x", "y", "font-size", "fill"], mi = ["width", "x", "y"], gi = { style: { width: "100%" } }, xi = { key: 0 }, bi = ["id"], yi = ["fill"], pi = ["x1", "x2", "y1", "y2", "stroke", "marker-end"], ki = ["x", "y", "font-size", "fill"], wi = ["d", "stroke", "stroke-width", "stroke-dasharray"], Si = ["d", "stroke", "stroke-width", "stroke-dasharray"], $i = { key: 6 }, _i = { key: 7 }, Mi = ["d", "fill", "fill-opacity"], Li = { key: 0 }, Ci = ["d", "fill"], Ai = ["d", "fill"], zi = ["d", "fill"], Ti = ["d", "fill"], Ii = ["d", "stroke", "stroke-width", "stroke-dasharray"], Ni = ["d", "stroke", "stroke-width", "stroke-dasharray"], Pi = ["width", "x", "y"], Fi = { style: { width: "100%" } }, Ri = { key: 3 }, Oi = ["id"], Vi = ["fill"], Bi = ["x1", "x2", "y1", "y2", "stroke", "marker-end"], Ei = ["x", "y", "font-size", "fill"], Hi = { key: 8 }, Di = ["x", "y", "font-size", "fill"], Wi = ["x", "y", "font-size", "fill", "font-weight"], Xi = { key: 9 }, Yi = ["x", "y", "font-size", "fill"], Gi = { key: 10 }, Ui = ["x", "y"], qi = ["innerHTML"], Zi = ["x", "y"], Ki = ["innerHTML"], Ji = ["x1", "x2", "y1", "y2", "stroke"], Qi = { key: 11 }, ji = ["x", "y", "font-size", "fill"], es = { key: 12 }, ts = ["x", "y"], ls = ["innerHTML"], as = ["x", "y"], os = ["innerHTML"], ns = ["x1", "x2", "y1", "y2", "stroke"], us = ["x", "y", "font-size", "fill", "innerHTML"], is = ["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
1106
|
key: 16,
|
|
1093
1107
|
style: { "pointer-events": "none" }
|
|
1094
1108
|
}, $s = ["x", "y"], _s = ["innerHTML"], Ms = ["cx", "cy", "r", "fill"], Ls = ["data-start", "data-end"], Cs = {
|
|
@@ -1153,31 +1167,31 @@ const _n = {
|
|
|
1153
1167
|
}
|
|
1154
1168
|
},
|
|
1155
1169
|
emits: ["selectTimeLabel", "selectX", "selectLegend"],
|
|
1156
|
-
setup(
|
|
1157
|
-
const d =
|
|
1158
|
-
height:
|
|
1170
|
+
setup($, { expose: Sa, emit: $a }) {
|
|
1171
|
+
const d = $, Le = Wt(() => import("./DataTable-Dw6dxJk3.js")), ce = Wt(() => import("./Tooltip-DBvmoYXU.js")), fe = Wt(() => import("./UserOptions-CKzW9w0Q.js")), me = Wt(() => import("./BaseIcon-7s-tCFcQ.js")), Al = Wt(() => import("./vue-ui-table-sparkline-DnSLwUNN.js")), St = Wt(() => import("./PackageVersion-D1HToLlZ.js")), Nt = Wt(() => import("./PenAndPaper-BKnXOYre.js")), zl = Wt(() => import("./BaseDraggableDialog-CrCjMg89.js")), Ut = $a, xl = Go(), qt = 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), Zt = y(null), Kt = y(null), Se = y(null), Il = y(null), Nl = y(null), mt = y(null), ne = y(null), Ql = y(0), E = y(null), Jt = y(!0), W = y(600), le = y(1e3), at = y("0 0 1000 600"), jl = y({ x: 0, y: 0 }), Qt = y({ line: "line", bar: "bar", plot: "plot" }), Ee = y(!1), Pe = y(!1), bl = y(!1), ae = y(null), ve = 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({}), jt = y(null), H = y(!1), Je = y(null), M = y(null), xt = x(() => ({
|
|
1172
|
+
height: W.value,
|
|
1159
1173
|
width: le.value
|
|
1160
1174
|
}));
|
|
1161
1175
|
function Vl(l) {
|
|
1162
1176
|
return Number.isFinite(l) ? Math.max(0, Math.floor(l)) : 0;
|
|
1163
1177
|
}
|
|
1164
|
-
function
|
|
1178
|
+
function Pt(l, s, e = 0) {
|
|
1165
1179
|
return Number.isFinite(l) && Number.isFinite(s) && Math.abs(s) > 1e-9 ? l / s : e;
|
|
1166
1180
|
}
|
|
1167
|
-
const
|
|
1181
|
+
const el = y(!1), A = y({
|
|
1168
1182
|
xAxis: 18,
|
|
1169
1183
|
yAxis: 12,
|
|
1170
1184
|
dataLabels: 20,
|
|
1171
1185
|
plotLabels: 10
|
|
1172
1186
|
}), De = y({ plot: 3, line: 3 });
|
|
1173
1187
|
Ll(() => {
|
|
1174
|
-
|
|
1188
|
+
H.value = !0, d.dataset.length && d.dataset.forEach((l, s) => {
|
|
1175
1189
|
[null, void 0].includes(l.series) && Na({
|
|
1176
1190
|
componentName: "VueUiXy",
|
|
1177
1191
|
type: "datasetSerieAttribute",
|
|
1178
1192
|
property: "series (number[])",
|
|
1179
1193
|
index: s,
|
|
1180
|
-
debug:
|
|
1194
|
+
debug: Lt.value
|
|
1181
1195
|
});
|
|
1182
1196
|
});
|
|
1183
1197
|
});
|
|
@@ -1199,7 +1213,7 @@ const _n = {
|
|
|
1199
1213
|
customPalette: rn[l.theme] || d.palette
|
|
1200
1214
|
} : l;
|
|
1201
1215
|
}
|
|
1202
|
-
const
|
|
1216
|
+
const Mt = x({
|
|
1203
1217
|
get() {
|
|
1204
1218
|
return !!d.dataset && d.dataset.length;
|
|
1205
1219
|
},
|
|
@@ -1214,15 +1228,15 @@ const _n = {
|
|
|
1214
1228
|
useIndividualScale: !1
|
|
1215
1229
|
});
|
|
1216
1230
|
function tl() {
|
|
1217
|
-
|
|
1231
|
+
el.value ? (p.value.isStacked = t.value.chart.grid.labels.yAxis.stacked, p.value.useIndividualScale == null && (p.value.useIndividualScale = t.value.chart.grid.labels.yAxis.useIndividualScale)) : (p.value = {
|
|
1218
1232
|
dataLabels: { show: !0 },
|
|
1219
1233
|
showTooltip: t.value.chart.tooltip.show === !0,
|
|
1220
1234
|
showTable: t.value.showTable === !0,
|
|
1221
1235
|
isStacked: t.value.chart.grid.labels.yAxis.stacked,
|
|
1222
1236
|
useIndividualScale: t.value.chart.grid.labels.yAxis.useIndividualScale
|
|
1223
|
-
},
|
|
1237
|
+
}, el.value = !0);
|
|
1224
1238
|
}
|
|
1225
|
-
const
|
|
1239
|
+
const Lt = x(() => !!t.value.debug), { loading: xe, FINAL_DATASET: _e, manualLoading: bt } = gn({
|
|
1226
1240
|
...qo(d),
|
|
1227
1241
|
FINAL_CONFIG: t,
|
|
1228
1242
|
prepareConfig: Bl,
|
|
@@ -1304,7 +1318,7 @@ const _n = {
|
|
|
1304
1318
|
}
|
|
1305
1319
|
})
|
|
1306
1320
|
});
|
|
1307
|
-
function
|
|
1321
|
+
function _a(l) {
|
|
1308
1322
|
const s = /* @__PURE__ */ new WeakMap();
|
|
1309
1323
|
return (e, ...i) => {
|
|
1310
1324
|
let a = s.get(e);
|
|
@@ -1314,27 +1328,27 @@ const _n = {
|
|
|
1314
1328
|
return a || (a = /* @__PURE__ */ new Map(), s.set(e, a)), a.set(r, o), o;
|
|
1315
1329
|
};
|
|
1316
1330
|
}
|
|
1317
|
-
const
|
|
1318
|
-
get: () => Math.max(
|
|
1331
|
+
const Ft = _a((l, s) => Pa({ data: l, threshold: s })), yt = (l) => Ft(l, t.value.downsample.threshold), Qe = x({
|
|
1332
|
+
get: () => Math.max(..._e.value.map((l) => yt(l.series).length)),
|
|
1319
1333
|
set: (l) => l
|
|
1320
1334
|
}), 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
1335
|
function El(l, s) {
|
|
1322
1336
|
We.value[l] = s;
|
|
1323
1337
|
}
|
|
1324
|
-
function
|
|
1338
|
+
function Ct() {
|
|
1325
1339
|
const l = Math.max(
|
|
1326
1340
|
1,
|
|
1327
|
-
|
|
1341
|
+
..._e.value.map((i) => yt(i.series).length)
|
|
1328
1342
|
);
|
|
1329
1343
|
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
1344
|
(!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
1345
|
}
|
|
1332
|
-
const
|
|
1333
|
-
const { left: l, top: s, width: e, height: i } = c.value, a = w.value.start, o = w.value.end - a,
|
|
1346
|
+
const Ma = x(() => {
|
|
1347
|
+
const { left: l, top: s, width: e, height: i } = 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
1348
|
return {
|
|
1335
|
-
x: l + T *
|
|
1349
|
+
x: l + T * F,
|
|
1336
1350
|
y: s,
|
|
1337
|
-
width: (
|
|
1351
|
+
width: (N - T) * F,
|
|
1338
1352
|
height: i,
|
|
1339
1353
|
fill: t.value.chart.zoom.preview.fill,
|
|
1340
1354
|
stroke: t.value.chart.zoom.preview.stroke,
|
|
@@ -1351,61 +1365,61 @@ const _n = {
|
|
|
1351
1365
|
});
|
|
1352
1366
|
ht(() => d.selectedXIndex, (l) => {
|
|
1353
1367
|
if ([null, void 0].includes(d.selectedXIndex)) {
|
|
1354
|
-
|
|
1368
|
+
M.value = null;
|
|
1355
1369
|
return;
|
|
1356
1370
|
}
|
|
1357
1371
|
const s = l - w.value.start;
|
|
1358
|
-
s < 0 || l >= w.value.end ?
|
|
1372
|
+
s < 0 || l >= w.value.end ? M.value = null : M.value = s ?? null;
|
|
1359
1373
|
}, { immediate: !0 });
|
|
1360
1374
|
const { isPrinting: Hl, isImaging: nt, generatePdf: ut, generateImage: it } = mn({
|
|
1361
1375
|
elementId: `vue-ui-xy_${Z.value}`,
|
|
1362
1376
|
fileName: t.value.chart.title.text || "vue-ui-xy",
|
|
1363
1377
|
options: t.value.chart.userOptions.print
|
|
1364
|
-
}), pt = y(!1), ll = x(() => tn(t.value.customPalette)),
|
|
1378
|
+
}), pt = y(!1), ll = x(() => tn(t.value.customPalette)), Rt = x(() => {
|
|
1365
1379
|
if (t.value.chart.grid.labels.yAxis.scaleMin !== null)
|
|
1366
1380
|
return t.value.chart.grid.labels.yAxis.scaleMin;
|
|
1367
|
-
const l = Math.min(...je.value.filter((s) => !
|
|
1381
|
+
const l = Math.min(...je.value.filter((s) => !ve.value.includes(s.id)).map((s) => Math.min(...s.series)));
|
|
1368
1382
|
return l > 0 ? 0 : l;
|
|
1369
1383
|
}), al = x(() => {
|
|
1370
1384
|
if (t.value.chart.grid.labels.yAxis.scaleMax)
|
|
1371
1385
|
return t.value.chart.grid.labels.yAxis.scaleMax;
|
|
1372
|
-
const l = Math.max(...je.value.filter((s) => !
|
|
1373
|
-
return
|
|
1374
|
-
}), Xe = x(() => t.value.chart.grid.labels.yAxis.useNiceScale ? Kl(
|
|
1386
|
+
const l = Math.max(...je.value.filter((s) => !ve.value.includes(s.id)).map((s) => Math.max(...s.series)));
|
|
1387
|
+
return Rt.value === l ? l + 1 : l;
|
|
1388
|
+
}), Xe = x(() => t.value.chart.grid.labels.yAxis.useNiceScale ? Kl(Rt.value, al.value < 0 ? 0 : al.value, t.value.chart.grid.labels.yAxis.commonScaleSteps) : hl(Rt.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(() => Jt.value ? _e.value.map((l, s) => {
|
|
1375
1389
|
const e = yt(l.series), i = `uniqueId_${s}`;
|
|
1376
1390
|
return {
|
|
1377
1391
|
...l,
|
|
1378
1392
|
slotAbsoluteIndex: s,
|
|
1379
|
-
series: e.map((a) =>
|
|
1380
|
-
color:
|
|
1393
|
+
series: e.map((a) => fa(a) ? a : null).slice(w.value.start, w.value.end),
|
|
1394
|
+
color: po(l.color ? l.color : ll.value[s] ? ll.value[s] : ko[s]),
|
|
1381
1395
|
id: i,
|
|
1382
1396
|
scaleLabel: l.scaleLabel || i
|
|
1383
1397
|
};
|
|
1384
|
-
}) :
|
|
1398
|
+
}) : _e.value), et = x(() => je.value.map((l, s) => ({
|
|
1385
1399
|
absoluteIndex: s,
|
|
1386
1400
|
...l,
|
|
1387
1401
|
series: l.series.map((e) => e + ol.value),
|
|
1388
1402
|
absoluteValues: l.series,
|
|
1389
|
-
segregate: () =>
|
|
1390
|
-
isSegregated:
|
|
1403
|
+
segregate: () => Ga(l),
|
|
1404
|
+
isSegregated: ve.value.includes(l.id)
|
|
1391
1405
|
}))), Fe = x(() => je.value.map((l, s) => ({
|
|
1392
1406
|
...l,
|
|
1393
1407
|
series: l.series.map((e) => e + ol.value),
|
|
1394
1408
|
absoluteValues: l.series
|
|
1395
|
-
})).filter((l) => !
|
|
1409
|
+
})).filter((l) => !ve.value.includes(l.id)));
|
|
1396
1410
|
function la() {
|
|
1397
1411
|
let l = 0;
|
|
1398
1412
|
Il.value && (l = Array.from(Il.value.querySelectorAll("text")).reduce((a, r) => {
|
|
1399
1413
|
const o = r.getComputedTextLength();
|
|
1400
1414
|
return (o > a ? o : a) + t.value.chart.grid.labels.yAxis.scaleValueOffsetX;
|
|
1401
1415
|
}, 0));
|
|
1402
|
-
const s =
|
|
1416
|
+
const s = Kt.value ? Kt.value.getBoundingClientRect().width + t.value.chart.grid.labels.axis.yLabelOffsetX + A.value.yAxis : 0, e = t.value.chart.grid.labels.yAxis.crosshairSize;
|
|
1403
1417
|
return l + s + e;
|
|
1404
1418
|
}
|
|
1405
1419
|
const tt = y(0), nl = Jl((l) => {
|
|
1406
1420
|
tt.value = l;
|
|
1407
1421
|
}, 100);
|
|
1408
|
-
|
|
1422
|
+
go((l) => {
|
|
1409
1423
|
const s = Se.value;
|
|
1410
1424
|
if (!s) return;
|
|
1411
1425
|
const e = new ResizeObserver((i) => {
|
|
@@ -1415,55 +1429,55 @@ const _n = {
|
|
|
1415
1429
|
}), gl(() => {
|
|
1416
1430
|
tt.value = 0;
|
|
1417
1431
|
});
|
|
1418
|
-
const
|
|
1432
|
+
const Ot = x(() => {
|
|
1419
1433
|
let l = 0;
|
|
1420
|
-
|
|
1434
|
+
Zt.value && (l = Zt.value.getBBox().height);
|
|
1421
1435
|
let s = 0;
|
|
1422
|
-
return Se.value && (s = tt.value), l + s +
|
|
1423
|
-
}), pl = x(() =>
|
|
1436
|
+
return Se.value && (s = tt.value), l + s + A.value.xAxis;
|
|
1437
|
+
}), pl = x(() => _e.value.some((l) => l.useProgression)), c = x(() => {
|
|
1424
1438
|
let l = 0;
|
|
1425
1439
|
const s = 36;
|
|
1426
|
-
t.value.chart.grid.labels.show && (p.value.useIndividualScale && !p.value.isStacked ? l = (
|
|
1440
|
+
t.value.chart.grid.labels.show && (p.value.useIndividualScale && !p.value.isStacked ? l = (_e.value.length - ve.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
1441
|
const e = t.value.chart.labels.fontSize * 1.1, i = pl.value ? 24 : 6;
|
|
1428
1442
|
if (Se.value) {
|
|
1429
1443
|
const o = Se.value.getBBox().x;
|
|
1430
1444
|
o < 0 && (l += Math.abs(o));
|
|
1431
1445
|
}
|
|
1432
|
-
const a = le.value - l - t.value.chart.grid.labels.yAxis.crosshairSize - i - t.value.chart.padding.left - t.value.chart.padding.right, r = t.value.chart.grid.position === "middle" ? 0 : a /
|
|
1446
|
+
const a = le.value - l - t.value.chart.grid.labels.yAxis.crosshairSize - i - t.value.chart.padding.left - t.value.chart.padding.right, r = t.value.chart.grid.position === "middle" ? 0 : a / S.value / 2;
|
|
1433
1447
|
return {
|
|
1434
1448
|
top: t.value.chart.padding.top + e,
|
|
1435
1449
|
right: le.value - i - t.value.chart.padding.right,
|
|
1436
|
-
bottom:
|
|
1450
|
+
bottom: W.value - Ot.value - t.value.chart.padding.bottom - t.value.chart.grid.labels.axis.xLabelOffsetY,
|
|
1437
1451
|
left: l + t.value.chart.grid.labels.yAxis.crosshairSize - r + t.value.chart.padding.left,
|
|
1438
|
-
height:
|
|
1452
|
+
height: W.value - Ot.value - t.value.chart.padding.top - t.value.chart.padding.bottom - e - t.value.chart.grid.labels.axis.xLabelOffsetY,
|
|
1439
1453
|
width: a,
|
|
1440
1454
|
scaleLabelX: l,
|
|
1441
1455
|
individualOffsetX: s
|
|
1442
1456
|
};
|
|
1443
|
-
}),
|
|
1444
|
-
const l = t.value.chart.grid.position === "middle" ? 1 : 0, s =
|
|
1457
|
+
}), Vt = x(() => {
|
|
1458
|
+
const l = t.value.chart.grid.position === "middle" ? 1 : 0, s = S.value + l, e = j(c.value.top), i = j(c.value.bottom);
|
|
1445
1459
|
return Array.from({ length: s }).map((a, r) => {
|
|
1446
|
-
const o = c.value.width /
|
|
1460
|
+
const o = c.value.width / S.value * r + c.value.left + ue.value;
|
|
1447
1461
|
return `M${o},${e} L${o},${i}`;
|
|
1448
1462
|
}).join(" ");
|
|
1449
1463
|
}), Dl = x(() => {
|
|
1450
1464
|
if (!t.value.chart.grid.labels.xAxis.showCrosshairs) return "";
|
|
1451
|
-
const l = c.value.width /
|
|
1452
|
-
return
|
|
1465
|
+
const l = c.value.width / S.value, s = t.value.chart.grid.labels.xAxis.crosshairSize, e = t.value.chart.grid.labels.xAxis.crosshairsAlwaysAtZero;
|
|
1466
|
+
return D.value.map((i, a) => {
|
|
1453
1467
|
if (!i || !i.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,
|
|
1455
|
-
return `M${r},${o} L${r},${
|
|
1468
|
+
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;
|
|
1469
|
+
return `M${r},${o} L${r},${F}`;
|
|
1456
1470
|
}).filter(Boolean).join(" ");
|
|
1457
1471
|
});
|
|
1458
1472
|
function kl() {
|
|
1459
|
-
return !!
|
|
1473
|
+
return !!qt?.vnode.props?.onSelectTimeLabel;
|
|
1460
1474
|
}
|
|
1461
1475
|
function aa(l, s, e) {
|
|
1462
|
-
if (!
|
|
1476
|
+
if (!jt.value) {
|
|
1463
1477
|
const i = document.createElement("canvas");
|
|
1464
|
-
|
|
1478
|
+
jt.value = i.getContext("2d");
|
|
1465
1479
|
}
|
|
1466
|
-
return
|
|
1480
|
+
return jt.value.font = `normal ${l}px sans-serif`, jt.value;
|
|
1467
1481
|
}
|
|
1468
1482
|
function Wl() {
|
|
1469
1483
|
const l = Be.value.querySelectorAll(".vue-ui-xy-tag");
|
|
@@ -1472,16 +1486,16 @@ const _n = {
|
|
|
1472
1486
|
function kt(l, s, e, i, a) {
|
|
1473
1487
|
e && (ot.value[`${l}_${s}_${i}_${a}`] = e);
|
|
1474
1488
|
}
|
|
1475
|
-
const
|
|
1476
|
-
async function
|
|
1477
|
-
await Cl(),
|
|
1489
|
+
const Bt = y(!1);
|
|
1490
|
+
async function ge(l = !1) {
|
|
1491
|
+
await Cl(), Bt.value = l, ea.value && (yl.value = l);
|
|
1478
1492
|
}
|
|
1479
1493
|
function Xl() {
|
|
1480
1494
|
Ee.value = !Ee.value;
|
|
1481
1495
|
}
|
|
1482
1496
|
const v = x(() => {
|
|
1483
|
-
const l = Math.max(
|
|
1484
|
-
return
|
|
1497
|
+
const l = Math.max(..._e.value.map((s) => Pa({ data: s.series, threshold: t.value.downsample.threshold }).length));
|
|
1498
|
+
return Mo({
|
|
1485
1499
|
values: t.value.chart.grid.labels.xAxisLabels.values,
|
|
1486
1500
|
maxDatapoints: l,
|
|
1487
1501
|
formatter: t.value.chart.grid.labels.xAxisLabels.datetimeFormatter,
|
|
@@ -1489,8 +1503,8 @@ const _n = {
|
|
|
1489
1503
|
end: w.value.end
|
|
1490
1504
|
});
|
|
1491
1505
|
}), m = x(() => {
|
|
1492
|
-
const l = Math.max(
|
|
1493
|
-
return
|
|
1506
|
+
const l = Math.max(..._e.value.map((s) => Pa({ data: s.series, threshold: t.value.downsample.threshold }).length));
|
|
1507
|
+
return Mo({
|
|
1494
1508
|
values: t.value.chart.grid.labels.xAxisLabels.values,
|
|
1495
1509
|
maxDatapoints: l,
|
|
1496
1510
|
formatter: t.value.chart.grid.labels.xAxisLabels.datetimeFormatter,
|
|
@@ -1501,56 +1515,56 @@ const _n = {
|
|
|
1501
1515
|
const l = t.value.chart.grid.labels.xAxisLabels.modulo;
|
|
1502
1516
|
return v.value.length ? Math.min(l, [...new Set(v.value.map((s) => s.text))].length) : l;
|
|
1503
1517
|
});
|
|
1504
|
-
function
|
|
1518
|
+
function _(l) {
|
|
1505
1519
|
let s = null, e = null;
|
|
1506
1520
|
return (...i) => {
|
|
1507
1521
|
const a = JSON.stringify(i);
|
|
1508
1522
|
return a === s || (s = a, e = l(...i)), e;
|
|
1509
1523
|
};
|
|
1510
1524
|
}
|
|
1511
|
-
const z =
|
|
1525
|
+
const z = _((l, s, e, i, a, r, o, F) => {
|
|
1512
1526
|
if (l)
|
|
1513
|
-
return i.length <= 2 ? i.map((
|
|
1527
|
+
return i.length <= 2 ? i.map((B, se) => ({ text: B, absoluteIndex: se })) : i.map((B, se) => ({ text: se === 0 || se === i.length - 1 || o != null && se === o ? B : "", absoluteIndex: se }));
|
|
1514
1528
|
if (!s)
|
|
1515
|
-
return i.map((
|
|
1516
|
-
const
|
|
1517
|
-
if (
|
|
1518
|
-
return i.map((
|
|
1519
|
-
const
|
|
1520
|
-
for (let
|
|
1521
|
-
const
|
|
1522
|
-
if (!
|
|
1523
|
-
const se = r +
|
|
1524
|
-
|
|
1529
|
+
return i.map((Y, B) => ({ text: Y, absoluteIndex: B }));
|
|
1530
|
+
const R = Math.max(1, e || 1);
|
|
1531
|
+
if (F <= R)
|
|
1532
|
+
return i.map((Y, B) => ({ text: Y, absoluteIndex: B }));
|
|
1533
|
+
const O = [];
|
|
1534
|
+
for (let Y = 0; Y < i.length; Y += 1) {
|
|
1535
|
+
const B = i[Y] ?? "";
|
|
1536
|
+
if (!B) continue;
|
|
1537
|
+
const se = r + Y - 1 >= 0 ? a[r + Y - 1] ?? "" : null;
|
|
1538
|
+
B !== se && O.push(Y);
|
|
1525
1539
|
}
|
|
1526
|
-
if (!
|
|
1527
|
-
return i.map((
|
|
1528
|
-
const T =
|
|
1529
|
-
let U = Math.min(
|
|
1530
|
-
for (let
|
|
1531
|
-
const
|
|
1532
|
-
Oe <
|
|
1540
|
+
if (!O.length)
|
|
1541
|
+
return i.map((Y, B) => ({ text: "", absoluteIndex: B }));
|
|
1542
|
+
const T = O.length, N = R, ee = Math.max(2, Math.min(N - 3, T)), I = Math.min(T, N + 3);
|
|
1543
|
+
let U = Math.min(N, T), V = 1 / 0;
|
|
1544
|
+
for (let Y = ee; Y <= I; Y += 1) {
|
|
1545
|
+
const B = (T - 1) % (Y - 1), se = Math.abs(Y - N), Oe = B * 10 + se;
|
|
1546
|
+
Oe < V && (V = Oe, U = Y);
|
|
1533
1547
|
}
|
|
1534
|
-
const
|
|
1548
|
+
const he = /* @__PURE__ */ new Set();
|
|
1535
1549
|
if (U <= 1)
|
|
1536
|
-
|
|
1550
|
+
he.add(O[Math.round((T - 1) / 2)]);
|
|
1537
1551
|
else {
|
|
1538
|
-
const
|
|
1539
|
-
for (let
|
|
1540
|
-
|
|
1552
|
+
const Y = (T - 1) / (U - 1);
|
|
1553
|
+
for (let B = 0; B < U; B += 1)
|
|
1554
|
+
he.add(O[Math.round(B * Y)]);
|
|
1541
1555
|
}
|
|
1542
|
-
return i.map((
|
|
1543
|
-
text:
|
|
1544
|
-
absoluteIndex:
|
|
1556
|
+
return i.map((Y, B) => ({
|
|
1557
|
+
text: he.has(B) ? Y : "",
|
|
1558
|
+
absoluteIndex: B
|
|
1545
1559
|
}));
|
|
1546
|
-
}),
|
|
1547
|
-
const l = t.value.chart.grid.labels.xAxisLabels, s = v.value || [], e = m.value || [], i = w.value.start ?? 0, a =
|
|
1560
|
+
}), D = x(() => {
|
|
1561
|
+
const l = t.value.chart.grid.labels.xAxisLabels, s = v.value || [], e = m.value || [], i = w.value.start ?? 0, a = M.value, r = S.value, o = s.map((R) => R?.text ?? ""), F = e.map((R) => R?.text ?? "");
|
|
1548
1562
|
return z(
|
|
1549
1563
|
!!l.showOnlyFirstAndLast,
|
|
1550
1564
|
!!l.showOnlyAtModulo,
|
|
1551
1565
|
Math.max(1, f.value || 1),
|
|
1552
1566
|
o,
|
|
1553
|
-
|
|
1567
|
+
F,
|
|
1554
1568
|
i,
|
|
1555
1569
|
a,
|
|
1556
1570
|
r
|
|
@@ -1567,58 +1581,58 @@ const _n = {
|
|
|
1567
1581
|
prefix: i.prefix || t.value.chart.labels.prefix,
|
|
1568
1582
|
suffix: i.suffix || t.value.chart.labels.suffix
|
|
1569
1583
|
}));
|
|
1570
|
-
|
|
1584
|
+
Ut("selectTimeLabel", {
|
|
1571
1585
|
datapoint: e,
|
|
1572
1586
|
absoluteIndex: l.absoluteIndex,
|
|
1573
1587
|
label: l.text
|
|
1574
1588
|
});
|
|
1575
1589
|
}
|
|
1576
|
-
const
|
|
1590
|
+
const S = x(() => {
|
|
1577
1591
|
const l = Vl((w.value.end ?? 0) - (w.value.start ?? 0));
|
|
1578
1592
|
return Math.max(1, l);
|
|
1579
1593
|
});
|
|
1580
1594
|
function wl(l) {
|
|
1581
|
-
|
|
1595
|
+
X.value = l;
|
|
1582
1596
|
}
|
|
1583
1597
|
function st() {
|
|
1584
1598
|
p.value.isStacked = !p.value.isStacked, p.value.isStacked ? p.value.useIndividualScale = !0 : p.value.useIndividualScale = t.value.chart.grid.labels.yAxis.useIndividualScale;
|
|
1585
1599
|
}
|
|
1586
|
-
function
|
|
1587
|
-
|
|
1600
|
+
function Et(l) {
|
|
1601
|
+
Lt.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
1602
|
}
|
|
1589
|
-
function
|
|
1603
|
+
function At(l, s) {
|
|
1590
1604
|
const e = Vl(l), i = Array(e).fill(0);
|
|
1591
1605
|
for (let a = 0; a < s.length && a < e; a += 1) i[a] = s[a] ?? 0;
|
|
1592
1606
|
return i;
|
|
1593
1607
|
}
|
|
1594
1608
|
function oa(l) {
|
|
1595
|
-
const s = Math.max(
|
|
1609
|
+
const s = Math.max(..._e.value.map((e) => yt(e.series).length));
|
|
1596
1610
|
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
1611
|
}
|
|
1598
|
-
const ul = y(!1),
|
|
1612
|
+
const ul = y(!1), Me = y(!1);
|
|
1599
1613
|
function il() {
|
|
1600
1614
|
if (!ul.value) {
|
|
1601
1615
|
ul.value = !0;
|
|
1602
1616
|
try {
|
|
1603
|
-
const { startIndex: l, endIndex: s } = t.value.chart.zoom, e = Math.max(
|
|
1604
|
-
|
|
1617
|
+
const { startIndex: l, endIndex: s } = t.value.chart.zoom, e = Math.max(..._e.value.map((r) => yt(r.series).length)), i = l ?? 0, a = s != null ? Math.min(oa(s + 1), e) : e;
|
|
1618
|
+
zt.value = !0, w.value.start = i, w.value.end = a, We.value.start = i, We.value.end = a, Ct(), Me.value = !0;
|
|
1605
1619
|
} finally {
|
|
1606
1620
|
queueMicrotask(() => {
|
|
1607
|
-
|
|
1621
|
+
zt.value = !1;
|
|
1608
1622
|
}), ul.value = !1;
|
|
1609
1623
|
}
|
|
1610
1624
|
}
|
|
1611
1625
|
}
|
|
1612
|
-
const
|
|
1626
|
+
const zt = y(!1);
|
|
1613
1627
|
function na(l) {
|
|
1614
|
-
ul.value ||
|
|
1628
|
+
ul.value || zt.value || l !== w.value.start && (w.value.start = l, We.value.start = l, Ct());
|
|
1615
1629
|
}
|
|
1616
|
-
function
|
|
1617
|
-
if (ul.value ||
|
|
1630
|
+
function La(l) {
|
|
1631
|
+
if (ul.value || zt.value) return;
|
|
1618
1632
|
const s = oa(l);
|
|
1619
|
-
s !== w.value.end && (w.value.end = s, We.value.end = s,
|
|
1633
|
+
s !== w.value.end && (w.value.end = s, We.value.end = s, Ct());
|
|
1620
1634
|
}
|
|
1621
|
-
async function
|
|
1635
|
+
async function Ca() {
|
|
1622
1636
|
await il();
|
|
1623
1637
|
}
|
|
1624
1638
|
function Ye(l) {
|
|
@@ -1630,25 +1644,25 @@ const _n = {
|
|
|
1630
1644
|
}
|
|
1631
1645
|
const Ie = x(() => isNaN(sl(ol.value)) ? c.value.bottom : c.value.bottom - c.value.height * sl(ol.value));
|
|
1632
1646
|
function Ba(l) {
|
|
1633
|
-
const s = ![null, void 0].includes(t.value.chart.grid.labels.yAxis.scaleMin) && t.value.chart.grid.labels.yAxis.scaleMin > 0 &&
|
|
1647
|
+
const s = ![null, void 0].includes(t.value.chart.grid.labels.yAxis.scaleMin) && t.value.chart.grid.labels.yAxis.scaleMin > 0 && Rt.value >= 0 ? c.value.bottom : Ie.value;
|
|
1634
1648
|
return l.value >= 0 ? q(s - l.y <= 0 ? 1e-5 : s - l.y) : q(l.y - Ie.value <= 0 ? 1e-5 : l.y - Ie.value);
|
|
1635
1649
|
}
|
|
1636
1650
|
function Ea(l) {
|
|
1637
1651
|
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
1652
|
}
|
|
1639
|
-
const
|
|
1640
|
-
const l = Math.max(1,
|
|
1653
|
+
const de = x(() => {
|
|
1654
|
+
const l = Math.max(1, S.value), s = Math.max(1, c.value.width), e = Math.max(1, je.value.filter((i) => i.type === "bar" && !ve.value.includes(i.id)).length);
|
|
1641
1655
|
return {
|
|
1642
|
-
bar:
|
|
1643
|
-
plot:
|
|
1644
|
-
line:
|
|
1656
|
+
bar: Pt(s, l * e, 1),
|
|
1657
|
+
plot: Pt(s, l, 1),
|
|
1658
|
+
line: Pt(s, l, 1)
|
|
1645
1659
|
};
|
|
1646
1660
|
});
|
|
1647
1661
|
function Sl() {
|
|
1648
|
-
return p.value.useIndividualScale && p.value.isStacked ?
|
|
1662
|
+
return p.value.useIndividualScale && p.value.isStacked ? de.value.line - c.value.width / S.value * 0.1 : de.value.bar;
|
|
1649
1663
|
}
|
|
1650
1664
|
function ua(l) {
|
|
1651
|
-
return p.value.useIndividualScale && p.value.isStacked ? l.x + c.value.width /
|
|
1665
|
+
return p.value.useIndividualScale && p.value.isStacked ? l.x + c.value.width / S.value * 0.05 : l.x + de.value.bar / 2;
|
|
1652
1666
|
}
|
|
1653
1667
|
function Ha(l) {
|
|
1654
1668
|
return l.value >= 0 ? l.y : [null, void 0, NaN, 1 / 0, -1 / 0].includes(Ie.value) ? c.bottom.value : Ie.value;
|
|
@@ -1657,37 +1671,64 @@ const _n = {
|
|
|
1657
1671
|
return l.value >= 0 ? l.y : [null, void 0, NaN, 1 / 0, -1 / 0].includes(l.zeroPosition) ? 0 : l.zeroPosition;
|
|
1658
1672
|
}
|
|
1659
1673
|
const Yl = y(null);
|
|
1660
|
-
|
|
1661
|
-
|
|
1662
|
-
|
|
1674
|
+
function Wa(l) {
|
|
1675
|
+
const s = $e.value;
|
|
1676
|
+
if (!s) return null;
|
|
1677
|
+
if (s.createSVGPoint && s.getScreenCTM) {
|
|
1678
|
+
const N = s.createSVGPoint();
|
|
1679
|
+
N.x = l.clientX, N.y = l.clientY;
|
|
1680
|
+
const ee = s.getScreenCTM();
|
|
1681
|
+
if (ee) {
|
|
1682
|
+
const I = N.matrixTransform(ee.inverse());
|
|
1683
|
+
return { x: I.x, y: I.y, ok: !0 };
|
|
1684
|
+
}
|
|
1685
|
+
}
|
|
1686
|
+
const e = s.getBoundingClientRect(), i = s.viewBox?.baseVal || { x: 0, y: 0, width: e.width, height: e.height }, a = Math.min(e.width / i.width, e.height / i.height), r = i.width * a, o = i.height * a, F = (e.width - r) / 2, R = (e.height - o) / 2, O = (l.clientX - e.left - F) / a + i.x, T = (l.clientY - e.top - R) / a + i.y;
|
|
1687
|
+
return { x: O, y: T, ok: !0 };
|
|
1663
1688
|
}
|
|
1664
|
-
|
|
1665
|
-
|
|
1666
|
-
rl && cancelAnimationFrame(rl)
|
|
1667
|
-
|
|
1668
|
-
|
|
1669
|
-
if (
|
|
1670
|
-
|
|
1689
|
+
let rl = 0;
|
|
1690
|
+
function Co(l) {
|
|
1691
|
+
Ee.value || (rl && cancelAnimationFrame(rl), rl = requestAnimationFrame(() => {
|
|
1692
|
+
rl = 0;
|
|
1693
|
+
const s = Wa(l);
|
|
1694
|
+
if (!s || !$e.value) {
|
|
1695
|
+
ia();
|
|
1671
1696
|
return;
|
|
1672
1697
|
}
|
|
1673
|
-
const
|
|
1674
|
-
|
|
1675
|
-
|
|
1698
|
+
const { left: e, right: i, top: a, bottom: r, width: o } = c.value;
|
|
1699
|
+
if (s.x < e || s.x > i || s.y < a || s.y > r) {
|
|
1700
|
+
ia();
|
|
1701
|
+
return;
|
|
1702
|
+
}
|
|
1703
|
+
const F = s.x - e, R = o / S.value, O = Math.floor(F / R);
|
|
1704
|
+
O >= 0 && O < S.value ? Yl.value !== O && (Yl.value = O, to(!0, O)) : ia();
|
|
1705
|
+
}));
|
|
1676
1706
|
}
|
|
1677
|
-
function
|
|
1678
|
-
rl && (cancelAnimationFrame(rl), rl = 0), Yl.value = null,
|
|
1707
|
+
function ia() {
|
|
1708
|
+
rl && (cancelAnimationFrame(rl), rl = 0), Yl.value = null, to(!1, null);
|
|
1679
1709
|
}
|
|
1680
|
-
function
|
|
1681
|
-
|
|
1710
|
+
function Xa(l) {
|
|
1711
|
+
const s = Wa(l);
|
|
1712
|
+
if (s && $e.value) {
|
|
1713
|
+
const { left: e, right: i, top: a, bottom: r, width: o } = c.value;
|
|
1714
|
+
if (s.x >= e && s.x <= i && s.y >= a && s.y <= r) {
|
|
1715
|
+
const F = o / Math.max(1, S.value), R = Math.floor((s.x - e) / F);
|
|
1716
|
+
if (R >= 0 && R < S.value) {
|
|
1717
|
+
Ya(R);
|
|
1718
|
+
return;
|
|
1719
|
+
}
|
|
1720
|
+
}
|
|
1721
|
+
}
|
|
1722
|
+
Yl.value != null && Ya(Yl.value);
|
|
1682
1723
|
}
|
|
1683
|
-
function
|
|
1724
|
+
function Ya(l) {
|
|
1684
1725
|
const s = Fe.value.map((e) => ({
|
|
1685
1726
|
name: e.name,
|
|
1686
1727
|
value: [null, void 0, NaN].includes(e.absoluteValues[l]) ? null : e.absoluteValues[l],
|
|
1687
1728
|
color: e.color,
|
|
1688
1729
|
type: e.type
|
|
1689
1730
|
}));
|
|
1690
|
-
|
|
1731
|
+
Ut(
|
|
1691
1732
|
"selectX",
|
|
1692
1733
|
{
|
|
1693
1734
|
dataset: s,
|
|
@@ -1716,14 +1757,14 @@ const _n = {
|
|
|
1716
1757
|
aspectRatio: i
|
|
1717
1758
|
};
|
|
1718
1759
|
}
|
|
1719
|
-
function
|
|
1720
|
-
if (
|
|
1721
|
-
|
|
1760
|
+
function Ga(l) {
|
|
1761
|
+
if (ve.value.includes(l.id))
|
|
1762
|
+
ve.value = ve.value.filter((s) => s !== l.id);
|
|
1722
1763
|
else {
|
|
1723
|
-
if (
|
|
1724
|
-
|
|
1764
|
+
if (ve.value.length + 1 === je.value.length) return;
|
|
1765
|
+
ve.value.push(l.id);
|
|
1725
1766
|
}
|
|
1726
|
-
|
|
1767
|
+
Ut("selectLegend", Fe.value.map((s) => ({
|
|
1727
1768
|
name: s.name,
|
|
1728
1769
|
values: s.absoluteValues,
|
|
1729
1770
|
color: s.color,
|
|
@@ -1733,8 +1774,8 @@ const _n = {
|
|
|
1733
1774
|
const To = x(() => {
|
|
1734
1775
|
const l = t.value.chart.title.text || "Chart visualization", s = t.value.chart.title.subtitle.text || "";
|
|
1735
1776
|
return `${l}. ${s}`;
|
|
1736
|
-
}),
|
|
1737
|
-
linePlot:
|
|
1777
|
+
}), Ua = x(() => ({
|
|
1778
|
+
linePlot: S.value > t.value.line.dot.hideAboveMaxSerieLength
|
|
1738
1779
|
})), Io = x(() => t.value.chart.userOptions.show && (!t.value.chart.title.show || !t.value.chart.title.text)), No = x(() => {
|
|
1739
1780
|
if (Array.isArray(t.value.chart.highlightArea))
|
|
1740
1781
|
return t.value.chart.highlightArea.map((s) => {
|
|
@@ -1749,18 +1790,18 @@ const _n = {
|
|
|
1749
1790
|
to: Math.min(t.value.chart.highlightArea.to, Qe.value - 1)
|
|
1750
1791
|
};
|
|
1751
1792
|
return [{ ...l, span: l.from === l.to ? 1 : l.to < l.from ? 0 : l.to - l.from + 1 }];
|
|
1752
|
-
}),
|
|
1793
|
+
}), qa = x(() => Jt.value ? _e.value.map((l, s) => ({
|
|
1753
1794
|
...l,
|
|
1754
1795
|
series: yt(l.series),
|
|
1755
1796
|
id: `uniqueId_${s}`,
|
|
1756
|
-
color:
|
|
1757
|
-
})) :
|
|
1797
|
+
color: po(l.color ? l.color : ll.value[s] ? ll.value[s] : ko[s])
|
|
1798
|
+
})) : _e.value), Po = x(() => Fe.value.map((l) => {
|
|
1758
1799
|
const s = l.absoluteValues.map((e) => [void 0, null].includes(e) ? 0 : e);
|
|
1759
1800
|
return {
|
|
1760
1801
|
id: l.id,
|
|
1761
1802
|
name: l.name,
|
|
1762
1803
|
color: l.color,
|
|
1763
|
-
values:
|
|
1804
|
+
values: At(S.value, s)
|
|
1764
1805
|
};
|
|
1765
1806
|
})), Fo = x(() => ({
|
|
1766
1807
|
responsiveBreakpoint: t.value.table.responsiveBreakpoint,
|
|
@@ -1788,70 +1829,70 @@ const _n = {
|
|
|
1788
1829
|
sparkline: {
|
|
1789
1830
|
animation: { show: !1 }
|
|
1790
1831
|
}
|
|
1791
|
-
})), ue = x(() => t.value.chart.grid.position === "middle" ? 0 : c.value.width /
|
|
1832
|
+
})), ue = x(() => t.value.chart.grid.position === "middle" ? 0 : c.value.width / S.value / 2), cl = x(() => ln(et.value.filter((l) => !ve.value.includes(l.id)))), P = x(() => {
|
|
1792
1833
|
const l = Object.groupBy(cl.value, (e) => e.scaleLabel), s = {};
|
|
1793
1834
|
for (const [e, i] of Object.entries(l)) {
|
|
1794
1835
|
const a = i.flatMap((r) => r.absoluteValues);
|
|
1795
1836
|
s[e] = {
|
|
1796
1837
|
min: Math.min(...a) || 0,
|
|
1797
1838
|
max: Math.max(...a) || 1,
|
|
1798
|
-
groupId: `scale_group_${
|
|
1839
|
+
groupId: `scale_group_${xa()}`
|
|
1799
1840
|
};
|
|
1800
1841
|
}
|
|
1801
1842
|
return s;
|
|
1802
1843
|
}), Ro = x(() => {
|
|
1803
|
-
const l = je.value.filter((s) => s.type === "bar").filter((s) => !
|
|
1804
|
-
return c.value.width /
|
|
1805
|
-
}),
|
|
1844
|
+
const l = je.value.filter((s) => s.type === "bar").filter((s) => !ve.value.includes(s.id)).length;
|
|
1845
|
+
return c.value.width / S.value / l - sa.value * l;
|
|
1846
|
+
}), sa = x(() => de.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
1847
|
if (!t.value.chart.zoom.minimap.show) return [];
|
|
1807
|
-
const l =
|
|
1848
|
+
const l = qa.value.filter((a) => !ve.value.includes(a.id)), s = Math.max(...l.map((a) => a.series.length)), e = [];
|
|
1808
1849
|
for (let a = 0; a < s; a += 1)
|
|
1809
1850
|
e.push(l.map((r) => r.series[a] || 0).reduce((r, o) => (r || 0) + (o || 0), 0));
|
|
1810
1851
|
const i = Math.min(...e);
|
|
1811
1852
|
return e.map((a) => a + (i < 0 ? Math.abs(i) : 0));
|
|
1812
|
-
}), Vo = x(() => t.value.chart.zoom.minimap.show ?
|
|
1853
|
+
}), Vo = x(() => t.value.chart.zoom.minimap.show ? qa.value.map((s) => ({
|
|
1813
1854
|
...s,
|
|
1814
|
-
isVisible: !
|
|
1815
|
-
})) : []),
|
|
1855
|
+
isVisible: !ve.value.includes(s.id)
|
|
1856
|
+
})) : []), Tt = x(() => Fe.value.map((l) => ({
|
|
1816
1857
|
slotAbsoluteIndex: l.slotAbsoluteIndex,
|
|
1817
1858
|
shape: l.shape || null,
|
|
1818
1859
|
name: l.name,
|
|
1819
1860
|
color: l.color,
|
|
1820
1861
|
type: l.type,
|
|
1821
|
-
value: l.absoluteValues.find((s, e) => e ===
|
|
1862
|
+
value: l.absoluteValues.find((s, e) => e === M.value),
|
|
1822
1863
|
comments: l.comments || [],
|
|
1823
1864
|
prefix: l.prefix || t.value.chart.labels.prefix,
|
|
1824
1865
|
suffix: l.suffix || t.value.chart.labels.suffix
|
|
1825
|
-
}))),
|
|
1866
|
+
}))), Za = x(() => Xe.value.ticks.map((l) => ({
|
|
1826
1867
|
y: l >= 0 ? Ie.value - c.value.height * sl(l) : Ie.value + c.value.height * sl(Math.abs(l)),
|
|
1827
1868
|
value: l,
|
|
1828
1869
|
prefix: t.value.chart.labels.prefix,
|
|
1829
1870
|
suffix: t.value.chart.labels.suffix
|
|
1830
|
-
}))),
|
|
1871
|
+
}))), Ka = x(() => {
|
|
1831
1872
|
const l = t.value.chart.annotations;
|
|
1832
1873
|
if (!l || !Array.isArray(l) || l.every((T) => !T.show)) return [];
|
|
1833
1874
|
const s = l.filter(
|
|
1834
1875
|
(T) => T.show && (T.yAxis.yTop != null || T.yAxis.yBottom != null)
|
|
1835
1876
|
);
|
|
1836
1877
|
if (!s.length) return [];
|
|
1837
|
-
const { left: e, right: i } = c.value, a = Ie.value, r = c.value.height, o = Xe.value.min,
|
|
1838
|
-
const
|
|
1839
|
-
return a -
|
|
1878
|
+
const { left: e, right: i } = c.value, a = Ie.value, r = c.value.height, o = Xe.value.min, R = Xe.value.max - o, O = (T) => {
|
|
1879
|
+
const N = (T - 0) / R;
|
|
1880
|
+
return a - N * r;
|
|
1840
1881
|
};
|
|
1841
1882
|
return s.map((T) => {
|
|
1842
|
-
const { yAxis: { yTop:
|
|
1843
|
-
|
|
1844
|
-
const
|
|
1883
|
+
const { yAxis: { yTop: N, yBottom: ee, label: I } } = T, U = N != null && ee != null && N !== ee, V = N == null ? null : O(N), he = ee == null ? null : O(ee), Y = aa(I.fontSize);
|
|
1884
|
+
Y.font = `${I.fontSize}px sans-serif`;
|
|
1885
|
+
const B = Y.measureText(I.text).width, se = I.fontSize, Oe = (I.position === "start" ? e + I.padding.left : i - I.padding.right) + I.offsetX, Ge = (V != null && he != null ? Math.min(V, he) : V ?? he) - I.fontSize / 3 + I.offsetY - I.padding.top;
|
|
1845
1886
|
let J;
|
|
1846
|
-
I.textAnchor === "middle" ? J = Oe -
|
|
1887
|
+
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
1888
|
const Q = Ge - se * 0.75 - I.padding.top;
|
|
1848
1889
|
return {
|
|
1849
|
-
show: ![
|
|
1850
|
-
id: `annotation_y_${
|
|
1890
|
+
show: ![V, he, Q].includes(NaN),
|
|
1891
|
+
id: `annotation_y_${xa()}`,
|
|
1851
1892
|
hasArea: U,
|
|
1852
|
-
areaHeight: U ? Math.abs(
|
|
1853
|
-
yTop:
|
|
1854
|
-
yBottom:
|
|
1893
|
+
areaHeight: U ? Math.abs(V - he) : 0,
|
|
1894
|
+
yTop: V,
|
|
1895
|
+
yBottom: he,
|
|
1855
1896
|
config: T.yAxis,
|
|
1856
1897
|
x1: e,
|
|
1857
1898
|
x2: i,
|
|
@@ -1859,7 +1900,7 @@ const _n = {
|
|
|
1859
1900
|
_box: {
|
|
1860
1901
|
x: J,
|
|
1861
1902
|
y: Q,
|
|
1862
|
-
width:
|
|
1903
|
+
width: B + I.padding.left + I.padding.right,
|
|
1863
1904
|
height: se + I.padding.top + I.padding.bottom,
|
|
1864
1905
|
fill: I.backgroundColor,
|
|
1865
1906
|
stroke: I.border.stroke,
|
|
@@ -1870,55 +1911,55 @@ const _n = {
|
|
|
1870
1911
|
};
|
|
1871
1912
|
});
|
|
1872
1913
|
});
|
|
1873
|
-
function
|
|
1914
|
+
function Ja(l, s) {
|
|
1874
1915
|
const e = l[s - 1], i = l[s + 1];
|
|
1875
1916
|
let a = !!e && !!i && e.value == null && i.value == null || !e && !!i && i.value == null || !!e && !i && e.value == null;
|
|
1876
1917
|
return Ye(l[s].value) && a && t.value.line.cutNullValues;
|
|
1877
1918
|
}
|
|
1878
|
-
const
|
|
1919
|
+
const It = x(() => {
|
|
1879
1920
|
const l = cl.value.filter((o) => ["bar", "line", "plot"].includes(o.type)), s = l.length, e = t.value.chart.grid.labels.yAxis.gap, i = p.value.isStacked, a = i ? e * (s - 1) : 0, r = c.value.height - a;
|
|
1880
|
-
return l.filter((o) => o.type === "bar").map((o,
|
|
1881
|
-
|
|
1882
|
-
const
|
|
1883
|
-
o.absoluteValues.filter((K) => ![null, void 0].includes(K)).map((K) => (K -
|
|
1921
|
+
return l.filter((o) => o.type === "bar").map((o, F) => {
|
|
1922
|
+
Et(o);
|
|
1923
|
+
const R = P.value[o.scaleLabel].min, O = P.value[o.scaleLabel].max;
|
|
1924
|
+
o.absoluteValues.filter((K) => ![null, void 0].includes(K)).map((K) => (K - R) / (O - R));
|
|
1884
1925
|
const T = {
|
|
1885
|
-
valueMin:
|
|
1886
|
-
valueMax:
|
|
1887
|
-
},
|
|
1926
|
+
valueMin: R,
|
|
1927
|
+
valueMax: O < 0 ? 0 : O
|
|
1928
|
+
}, N = {
|
|
1888
1929
|
max: o.scaleMax || Math.max(...o.absoluteValues) || 1,
|
|
1889
1930
|
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
|
|
1931
|
+
}, 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), he = U.min >= 0 ? 0 : Math.abs(U.min), Y = 0, B = U.max + he, se = V.max + Math.abs(Y), Oe = o.stackIndex, _l = s - 1 - Oe, Ge = i ? 1 - o.cumulatedStackRatio : 0, J = i ? r * Ge + e * _l : 0, Q = i ? r * o.stackRatio : c.value.height, be = c.value.bottom - J - Q * he / B, Ue = c.value.bottom - J - Q * Y / se, Ne = et.value.filter((K) => K.type === "bar").filter((K) => !ve.value.includes(K.id)).length, ql = o.series.map((K, pe) => {
|
|
1932
|
+
const Dt = p.value.useIndividualScale ? (o.absoluteValues[pe] + he) / B : sl(K), vl = p.value.useIndividualScale && p.value.isStacked ? c.value.left + c.value.width / S.value * pe : c.value.left + de.value.bar * F + de.value.bar * pe * Ne - Ro.value / 2 - F * sa.value;
|
|
1892
1933
|
return {
|
|
1893
1934
|
yOffset: q(J),
|
|
1894
1935
|
individualHeight: q(Q),
|
|
1895
1936
|
x: q(vl),
|
|
1896
|
-
y: c.value.bottom - J - Q *
|
|
1937
|
+
y: c.value.bottom - J - Q * Dt,
|
|
1897
1938
|
value: o.absoluteValues[pe],
|
|
1898
1939
|
zeroPosition: q(be),
|
|
1899
|
-
individualMax: q(
|
|
1940
|
+
individualMax: q(B),
|
|
1900
1941
|
comment: o.comments && o.comments.slice(w.value.start, w.value.end)[pe] || ""
|
|
1901
1942
|
};
|
|
1902
|
-
}), Ve = o.absoluteValues.map((K) =>
|
|
1903
|
-
const
|
|
1943
|
+
}), 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))), Ht = o.series.map((K, pe) => {
|
|
1944
|
+
const Dt = p.value.useIndividualScale && p.value.isStacked ? c.value.left + c.value.width / S.value * pe : c.value.left - de.value.bar / 2 + de.value.bar * F + de.value.bar * pe * et.value.filter((vl) => vl.type === "bar").filter((vl) => !ve.value.includes(vl.id)).length;
|
|
1904
1945
|
return {
|
|
1905
1946
|
yOffset: q(J),
|
|
1906
1947
|
individualHeight: q(Q),
|
|
1907
|
-
x: q(
|
|
1948
|
+
x: q(Dt),
|
|
1908
1949
|
y: q(c.value.bottom - q(J) - (q(Q) * Ve[pe] || 0)),
|
|
1909
1950
|
value: o.absoluteValues[pe],
|
|
1910
1951
|
zeroPosition: q(be),
|
|
1911
|
-
individualMax: q(
|
|
1952
|
+
individualMax: q(B),
|
|
1912
1953
|
comment: o.comments && o.comments.slice(w.value.start, w.value.end)[pe] || ""
|
|
1913
1954
|
};
|
|
1914
1955
|
}), oe = U.ticks.map((K) => ({
|
|
1915
|
-
y: K >= 0 ? be - Q * (K /
|
|
1956
|
+
y: K >= 0 ? be - Q * (K / B) : be + Q * Math.abs(K) / B,
|
|
1916
1957
|
value: K,
|
|
1917
1958
|
prefix: o.prefix || t.value.chart.labels.prefix,
|
|
1918
1959
|
suffix: o.suffix || t.value.chart.labels.suffix,
|
|
1919
1960
|
datapoint: o
|
|
1920
|
-
})), ye =
|
|
1921
|
-
const pe = (K -
|
|
1961
|
+
})), ye = V.ticks.map((K) => {
|
|
1962
|
+
const pe = (K - V.min) / (V.max - V.min);
|
|
1922
1963
|
return {
|
|
1923
1964
|
y: K >= 0 ? Ue - Q * pe : Ue + Q * pe,
|
|
1924
1965
|
value: K,
|
|
@@ -1927,126 +1968,126 @@ const _n = {
|
|
|
1927
1968
|
datapoint: o
|
|
1928
1969
|
};
|
|
1929
1970
|
});
|
|
1930
|
-
return
|
|
1971
|
+
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
1972
|
...o,
|
|
1932
1973
|
yOffset: J,
|
|
1933
1974
|
autoScaleYLabels: ye,
|
|
1934
1975
|
individualHeight: Q,
|
|
1935
1976
|
scaleYLabels: o.autoScaling ? ye : oe,
|
|
1936
|
-
individualScale: o.autoScaling ?
|
|
1937
|
-
individualMax: o.autoScaling ? se :
|
|
1977
|
+
individualScale: o.autoScaling ? V : U,
|
|
1978
|
+
individualMax: o.autoScaling ? se : B,
|
|
1938
1979
|
zeroPosition: o.autoScaling ? Ue : be,
|
|
1939
|
-
plots: o.autoScaling ?
|
|
1940
|
-
groupId:
|
|
1980
|
+
plots: o.autoScaling ? Ht : ql,
|
|
1981
|
+
groupId: P.value[o.scaleLabel].groupId
|
|
1941
1982
|
};
|
|
1942
1983
|
});
|
|
1943
1984
|
}), Re = x(() => {
|
|
1944
1985
|
const l = cl.value.filter((o) => ["bar", "line", "plot"].includes(o.type)), s = l.length, e = t.value.chart.grid.labels.yAxis.gap, i = p.value.isStacked, a = i ? e * (s - 1) : 0, r = c.value.height - a;
|
|
1945
|
-
return l.filter((o) => o.type === "line").map((o,
|
|
1946
|
-
|
|
1947
|
-
const
|
|
1948
|
-
o.absoluteValues.filter((
|
|
1986
|
+
return l.filter((o) => o.type === "line").map((o, F) => {
|
|
1987
|
+
Et(o);
|
|
1988
|
+
const R = P.value[o.scaleLabel].min, O = P.value[o.scaleLabel].max;
|
|
1989
|
+
o.absoluteValues.filter((G) => ![null, void 0].includes(G)).map((G) => (G - R) / (O - R));
|
|
1949
1990
|
const T = {
|
|
1950
|
-
valueMin:
|
|
1951
|
-
valueMax:
|
|
1952
|
-
},
|
|
1991
|
+
valueMin: R,
|
|
1992
|
+
valueMax: O
|
|
1993
|
+
}, N = {
|
|
1953
1994
|
max: o.scaleMax || Math.max(...o.absoluteValues) || 1,
|
|
1954
1995
|
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(
|
|
1996
|
+
}, 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), he = U.min >= 0 ? 0 : Math.abs(U.min), Y = 0, B = U.max + Math.abs(he), se = V.max + Math.abs(Y), Oe = o.stackIndex, _l = s - 1 - Oe, Ge = i ? 1 - o.cumulatedStackRatio : 0, J = i ? r * Ge + e * _l : 0, Q = i ? r * o.stackRatio : c.value.height, be = c.value.bottom - J - Q * he / B, Ue = c.value.bottom - J - Q * Y / se, Ne = o.series.map((G, Ae) => {
|
|
1997
|
+
const Xo = p.value.useIndividualScale ? (o.absoluteValues[Ae] + Math.abs(he)) / B : sl(G);
|
|
1957
1998
|
return {
|
|
1958
|
-
x: q(c.value.left +
|
|
1999
|
+
x: q(c.value.left + de.value.line / 2 + de.value.line * Ae),
|
|
1959
2000
|
y: q(c.value.bottom - J - Q * Xo),
|
|
1960
2001
|
value: o.absoluteValues[Ae],
|
|
1961
2002
|
comment: o.comments && o.comments.slice(w.value.start, w.value.end)[Ae] || ""
|
|
1962
2003
|
};
|
|
1963
|
-
}), ql = o.absoluteValues.map((
|
|
1964
|
-
x: q(c.value.left +
|
|
2004
|
+
}), 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]) ? {
|
|
2005
|
+
x: q(c.value.left + de.value.line / 2 + de.value.line * Ae),
|
|
1965
2006
|
y: be,
|
|
1966
2007
|
value: o.absoluteValues[Ae],
|
|
1967
2008
|
comment: o.comments && o.comments.slice(w.value.start, w.value.end)[Ae] || ""
|
|
1968
2009
|
} : {
|
|
1969
|
-
x: q(c.value.left +
|
|
2010
|
+
x: q(c.value.left + de.value.line / 2 + de.value.line * Ae),
|
|
1970
2011
|
y: q(c.value.bottom - J - (Q * ql[Ae] || 0)),
|
|
1971
2012
|
value: o.absoluteValues[Ae],
|
|
1972
2013
|
comment: o.comments && o.comments.slice(w.value.start, w.value.end)[Ae] || ""
|
|
1973
|
-
}),
|
|
1974
|
-
y:
|
|
1975
|
-
value:
|
|
2014
|
+
}), Ht = 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) => ({
|
|
2015
|
+
y: G >= 0 ? be - Q * (G / B) : be + Q * Math.abs(G) / B,
|
|
2016
|
+
value: G,
|
|
1976
2017
|
prefix: o.prefix || t.value.chart.labels.prefix,
|
|
1977
2018
|
suffix: o.suffix || t.value.chart.labels.suffix,
|
|
1978
2019
|
datapoint: o
|
|
1979
|
-
})),
|
|
1980
|
-
const Ae = (
|
|
2020
|
+
})), Dt = V.ticks.map((G) => {
|
|
2021
|
+
const Ae = (G - V.min) / (V.max - V.min);
|
|
1981
2022
|
return {
|
|
1982
|
-
y:
|
|
1983
|
-
value:
|
|
2023
|
+
y: G >= 0 ? Ue - Q * Ae : Ue + Q * Ae,
|
|
2024
|
+
value: G,
|
|
1984
2025
|
prefix: o.prefix || t.value.chart.labels.prefix,
|
|
1985
2026
|
suffix: o.suffix || t.value.chart.labels.suffix,
|
|
1986
2027
|
datapoint: o
|
|
1987
2028
|
};
|
|
1988
2029
|
});
|
|
1989
|
-
|
|
2030
|
+
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 ? Dt : 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 = Dt, P.value[o.scaleLabel].unique = cl.value.filter((G) => G.scaleLabel === o.scaleLabel).length === 1;
|
|
1990
2031
|
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
2032
|
return {
|
|
1992
2033
|
...o,
|
|
1993
2034
|
yOffset: J,
|
|
1994
|
-
autoScaleYLabels:
|
|
2035
|
+
autoScaleYLabels: Dt,
|
|
1995
2036
|
individualHeight: Q,
|
|
1996
|
-
scaleYLabels: o.autoScaling ?
|
|
1997
|
-
individualScale: o.autoScaling ?
|
|
1998
|
-
individualMax: o.autoScaling ? se :
|
|
2037
|
+
scaleYLabels: o.autoScaling ? Dt : pe,
|
|
2038
|
+
individualScale: o.autoScaling ? V : U,
|
|
2039
|
+
individualMax: o.autoScaling ? se : B,
|
|
1999
2040
|
zeroPosition: o.autoScaling ? Ue : be,
|
|
2000
|
-
curve: o.autoScaling ? oe :
|
|
2041
|
+
curve: o.autoScaling ? oe : Ht,
|
|
2001
2042
|
plots: o.autoScaling ? Ve : Ne,
|
|
2002
|
-
area: o.useArea ? p.value.useIndividualScale ? t.value.line.cutNullValues ?
|
|
2043
|
+
area: o.useArea ? p.value.useIndividualScale ? t.value.line.cutNullValues ? wo(
|
|
2003
2044
|
o.autoScaling ? Ve : Ne,
|
|
2004
2045
|
Zl
|
|
2005
|
-
) :
|
|
2006
|
-
o.autoScaling ? Ve.filter((
|
|
2046
|
+
) : So(
|
|
2047
|
+
o.autoScaling ? Ve.filter((G) => G.value !== null) : Ne.filter((G) => G.value !== null),
|
|
2007
2048
|
Zl
|
|
2008
|
-
) : t.value.line.cutNullValues ?
|
|
2049
|
+
) : t.value.line.cutNullValues ? wo(Ne, Zl) : So(Ne.filter((G) => G.value !== null), Zl) : "",
|
|
2009
2050
|
curveAreas: o.useArea ? an(
|
|
2010
|
-
o.autoScaling ? t.value.line.cutNullValues ? Ve : Ve.filter((
|
|
2051
|
+
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
2052
|
Zl,
|
|
2012
2053
|
t.value.line.cutNullValues
|
|
2013
2054
|
) : [],
|
|
2014
2055
|
straight: o.autoScaling ? K : ye,
|
|
2015
|
-
groupId:
|
|
2056
|
+
groupId: P.value[o.scaleLabel].groupId
|
|
2016
2057
|
};
|
|
2017
2058
|
});
|
|
2018
2059
|
}), rt = x(() => {
|
|
2019
2060
|
const l = cl.value.filter((o) => ["bar", "line", "plot"].includes(o.type)), s = l.length, e = t.value.chart.grid.labels.yAxis.gap, i = p.value.isStacked, a = i ? e * (s - 1) : 0, r = c.value.height - a;
|
|
2020
2061
|
return l.filter((o) => o.type === "plot").map((o) => {
|
|
2021
|
-
|
|
2022
|
-
const
|
|
2023
|
-
o.absoluteValues.filter((oe) => ![null, void 0].includes(oe)).map((oe) => (oe -
|
|
2024
|
-
const
|
|
2025
|
-
valueMin:
|
|
2026
|
-
valueMax:
|
|
2062
|
+
Et(o);
|
|
2063
|
+
const F = P.value[o.scaleLabel].min, R = P.value[o.scaleLabel].max;
|
|
2064
|
+
o.absoluteValues.filter((oe) => ![null, void 0].includes(oe)).map((oe) => (oe - F) / (R - F));
|
|
2065
|
+
const O = {
|
|
2066
|
+
valueMin: F,
|
|
2067
|
+
valueMax: R
|
|
2027
2068
|
}, T = {
|
|
2028
2069
|
max: o.scaleMax || Math.max(...o.absoluteValues) || 1,
|
|
2029
2070
|
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(
|
|
2071
|
+
}, 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), he = 0, Y = I.max + V, B = U.max + Math.abs(he), se = o.stackIndex, Oe = s - 1 - se, _l = i ? 1 - o.cumulatedStackRatio : 0, Ge = i ? r * _l + e * Oe : 0, J = i ? r * o.stackRatio : c.value.height, Q = c.value.bottom - Ge - J * V / Y, be = c.value.bottom - Ge - J * he / B, Ue = o.series.map((oe, ye) => {
|
|
2072
|
+
const K = p.value.useIndividualScale ? (o.absoluteValues[ye] + Math.abs(V)) / Y : sl(oe);
|
|
2032
2073
|
return {
|
|
2033
|
-
x: q(c.value.left +
|
|
2074
|
+
x: q(c.value.left + de.value.plot / 2 + de.value.plot * ye),
|
|
2034
2075
|
y: q(c.value.bottom - Ge - J * K),
|
|
2035
2076
|
value: o.absoluteValues[ye],
|
|
2036
2077
|
comment: o.comments && o.comments.slice(w.value.start, w.value.end)[ye] || ""
|
|
2037
2078
|
};
|
|
2038
2079
|
}), Ne = o.absoluteValues.map((oe) => U.min >= 0 ? (oe - Math.abs(U.min)) / (U.max - Math.abs(U.min)) : (oe + Math.abs(U.min)) / (U.max + Math.abs(U.min))), ql = o.series.map((oe, ye) => ({
|
|
2039
|
-
x: q(c.value.left +
|
|
2080
|
+
x: q(c.value.left + de.value.plot / 2 + de.value.plot * ye),
|
|
2040
2081
|
y: q(c.value.bottom - Ge - (J * Ne[ye] || 0)),
|
|
2041
2082
|
value: o.absoluteValues[ye],
|
|
2042
2083
|
comment: o.comments && o.comments.slice(w.value.start, w.value.end)[ye] || ""
|
|
2043
2084
|
})), Ve = I.ticks.map((oe) => ({
|
|
2044
|
-
y: oe >= 0 ? Q - J * (oe /
|
|
2085
|
+
y: oe >= 0 ? Q - J * (oe / Y) : Q + J * Math.abs(oe) / Y,
|
|
2045
2086
|
value: oe,
|
|
2046
2087
|
prefix: o.prefix || t.value.chart.labels.prefix,
|
|
2047
2088
|
suffix: o.suffix || t.value.chart.labels.suffix,
|
|
2048
2089
|
datapoint: o
|
|
2049
|
-
})),
|
|
2090
|
+
})), Ht = U.ticks.map((oe) => {
|
|
2050
2091
|
const ye = (oe - U.min) / (U.max - U.min);
|
|
2051
2092
|
return {
|
|
2052
2093
|
y: oe >= 0 ? be - J * ye : be + J * ye,
|
|
@@ -2056,17 +2097,17 @@ const _n = {
|
|
|
2056
2097
|
datapoint: o
|
|
2057
2098
|
};
|
|
2058
2099
|
});
|
|
2059
|
-
return
|
|
2100
|
+
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 ? Ht : 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 = Ht, P.value[o.scaleLabel].unique = cl.value.filter((oe) => oe.scaleLabel === o.scaleLabel).length === 1, {
|
|
2060
2101
|
...o,
|
|
2061
2102
|
yOffset: Ge,
|
|
2062
|
-
autoScaleYLabels:
|
|
2103
|
+
autoScaleYLabels: Ht,
|
|
2063
2104
|
individualHeight: J,
|
|
2064
|
-
scaleYLabels: o.autoScaling ?
|
|
2105
|
+
scaleYLabels: o.autoScaling ? Ht : Ve,
|
|
2065
2106
|
individualScale: o.autoScaling ? U : I,
|
|
2066
|
-
individualMax: o.autoScaling ?
|
|
2107
|
+
individualMax: o.autoScaling ? B : Y,
|
|
2067
2108
|
zeroPosition: o.autoScaling ? be : Q,
|
|
2068
2109
|
plots: o.autoScaling ? ql : Ue,
|
|
2069
|
-
groupId:
|
|
2110
|
+
groupId: P.value[o.scaleLabel].groupId
|
|
2070
2111
|
};
|
|
2071
2112
|
});
|
|
2072
2113
|
}), Gl = x(() => {
|
|
@@ -2082,7 +2123,7 @@ const _n = {
|
|
|
2082
2123
|
yOffset: r.yOffset || 0,
|
|
2083
2124
|
individualHeight: r.individualHeight || c.value.height,
|
|
2084
2125
|
autoScaleYLabels: r.autoScaleYLabels
|
|
2085
|
-
})), s =
|
|
2126
|
+
})), s = It.value.map((r) => ({
|
|
2086
2127
|
name: r.name,
|
|
2087
2128
|
color: r.color,
|
|
2088
2129
|
scale: r.individualScale,
|
|
@@ -2105,11 +2146,11 @@ const _n = {
|
|
|
2105
2146
|
id: r.id,
|
|
2106
2147
|
yOffset: r.yOffset || 0,
|
|
2107
2148
|
individualHeight: r.individualHeight || c.value.height
|
|
2108
|
-
})), i = p.value.useIndividualScale && !p.value.isStacked ? Object.values(
|
|
2149
|
+
})), i = p.value.useIndividualScale && !p.value.isStacked ? Object.values(P.value) : [...l, ...s, ...e], a = i.flatMap((r) => r).length;
|
|
2109
2150
|
return i.flatMap((r, o) => {
|
|
2110
|
-
let
|
|
2111
|
-
|
|
2112
|
-
const
|
|
2151
|
+
let F = 0;
|
|
2152
|
+
F = p.value.isStacked ? c.value.left : c.value.left / a * (o + 1);
|
|
2153
|
+
const R = p.value.useIndividualScale && !p.value.isStacked ? r.unique ? r.name : r.groupName : r.name;
|
|
2113
2154
|
return {
|
|
2114
2155
|
unique: r.unique,
|
|
2115
2156
|
id: r.id,
|
|
@@ -2117,49 +2158,49 @@ const _n = {
|
|
|
2117
2158
|
scaleLabel: r.scaleLabel,
|
|
2118
2159
|
name: ze(
|
|
2119
2160
|
t.value.chart.grid.labels.yAxis.serieNameFormatter,
|
|
2120
|
-
|
|
2121
|
-
|
|
2161
|
+
R,
|
|
2162
|
+
R,
|
|
2122
2163
|
r
|
|
2123
2164
|
),
|
|
2124
2165
|
color: p.value.useIndividualScale && !p.value.isStacked ? r.unique ? r.color : r.groupColor : r.color,
|
|
2125
2166
|
scale: r.scale,
|
|
2126
2167
|
yOffset: r.yOffset,
|
|
2127
2168
|
individualHeight: r.individualHeight,
|
|
2128
|
-
x:
|
|
2129
|
-
yLabels: r.scaleYLabels || r.scale.ticks.map((
|
|
2130
|
-
y:
|
|
2131
|
-
value:
|
|
2169
|
+
x: F,
|
|
2170
|
+
yLabels: r.scaleYLabels || r.scale.ticks.map((O) => ({
|
|
2171
|
+
y: O >= 0 ? r.zero - r.individualHeight * (O / r.max) : r.zero + r.individualHeight * Math.abs(O) / r.max,
|
|
2172
|
+
value: O
|
|
2132
2173
|
}))
|
|
2133
2174
|
};
|
|
2134
2175
|
});
|
|
2135
|
-
}),
|
|
2176
|
+
}), Qa = x(() => {
|
|
2136
2177
|
const l = t.value.line.interLine || {}, s = l.pairs || [], e = l.colors || [];
|
|
2137
2178
|
if (!s.length) return [];
|
|
2138
2179
|
const i = [];
|
|
2139
2180
|
return s.forEach((a, r) => {
|
|
2140
|
-
const [o,
|
|
2141
|
-
if (!o || !
|
|
2142
|
-
const
|
|
2143
|
-
if (!
|
|
2144
|
-
const T = e?.[r]?.[0] ??
|
|
2181
|
+
const [o, F] = Array.isArray(a) ? a : [a.a, a.b];
|
|
2182
|
+
if (!o || !F) return;
|
|
2183
|
+
const R = Re.value.find((I) => I.name === o), O = Re.value.find((I) => I.name === F);
|
|
2184
|
+
if (!R || !O || R.type !== "line" || O.type !== "line") return;
|
|
2185
|
+
const T = e?.[r]?.[0] ?? R.color, N = e?.[r]?.[1] ?? O.color;
|
|
2145
2186
|
on({
|
|
2146
|
-
lineA:
|
|
2147
|
-
lineB:
|
|
2148
|
-
smoothA: !!
|
|
2149
|
-
smoothB: !!
|
|
2187
|
+
lineA: R.plots,
|
|
2188
|
+
lineB: O.plots,
|
|
2189
|
+
smoothA: !!R.smooth,
|
|
2190
|
+
smoothB: !!O.smooth,
|
|
2150
2191
|
colorLineA: T,
|
|
2151
|
-
colorLineB:
|
|
2192
|
+
colorLineB: N,
|
|
2152
2193
|
sampleStepPx: 2,
|
|
2153
2194
|
cutNullValues: t.value.line.cutNullValues
|
|
2154
2195
|
}).forEach((I, U) => {
|
|
2155
|
-
i.push({ ...I, key: `inter_${o}_${
|
|
2196
|
+
i.push({ ...I, key: `inter_${o}_${F}_${r}_${U}` });
|
|
2156
2197
|
});
|
|
2157
2198
|
}), i;
|
|
2158
|
-
}),
|
|
2159
|
-
datapoint:
|
|
2160
|
-
seriesIndex:
|
|
2199
|
+
}), ja = x(() => ({
|
|
2200
|
+
datapoint: Tt.value,
|
|
2201
|
+
seriesIndex: M.value,
|
|
2161
2202
|
series: et.value,
|
|
2162
|
-
bars:
|
|
2203
|
+
bars: It.value,
|
|
2163
2204
|
lines: Re.value,
|
|
2164
2205
|
plots: rt.value,
|
|
2165
2206
|
config: t.value
|
|
@@ -2176,29 +2217,29 @@ const _n = {
|
|
|
2176
2217
|
}), Aa = x(() => (t.value.chart.grid.labels.xAxisLabels.values || []).map((s, e) => ({
|
|
2177
2218
|
text: $l.value(e, t.value.chart.zoom.timeFormat),
|
|
2178
2219
|
absoluteIndex: e
|
|
2179
|
-
}))),
|
|
2220
|
+
}))), va = y(!1);
|
|
2180
2221
|
x(() => {
|
|
2181
2222
|
let l = "", s = "";
|
|
2182
2223
|
if (t.value.chart.zoom.preview.enable)
|
|
2183
2224
|
return { left: l, right: s };
|
|
2184
|
-
|
|
2225
|
+
va.value = !1;
|
|
2185
2226
|
const e = t.value.chart.zoom.customFormat;
|
|
2186
|
-
if (
|
|
2227
|
+
if (ba(e))
|
|
2187
2228
|
try {
|
|
2188
2229
|
const i = e({
|
|
2189
2230
|
absoluteIndex: w.value.start,
|
|
2190
2231
|
seriesIndex: w.value.start,
|
|
2191
|
-
datapoint:
|
|
2232
|
+
datapoint: Tt.value
|
|
2192
2233
|
}), a = e({
|
|
2193
2234
|
absoluteIndex: w.value.end - 1,
|
|
2194
2235
|
seriesIndex: w.value.end - 1,
|
|
2195
|
-
datapoint:
|
|
2236
|
+
datapoint: Tt.value
|
|
2196
2237
|
});
|
|
2197
|
-
typeof i == "string" && typeof a == "string" && (l = i, s = a,
|
|
2238
|
+
typeof i == "string" && typeof a == "string" && (l = i, s = a, va.value = !0);
|
|
2198
2239
|
} catch {
|
|
2199
|
-
console.warn("Custom format cannot be applied on zoom labels."),
|
|
2240
|
+
console.warn("Custom format cannot be applied on zoom labels."), va.value = !1;
|
|
2200
2241
|
}
|
|
2201
|
-
if (!
|
|
2242
|
+
if (!va.value) {
|
|
2202
2243
|
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
2244
|
const i = Math.max(w.value.start, w.value.end - 1);
|
|
2204
2245
|
s = t.value.chart.grid.labels.xAxisLabels.datetimeFormatter.enable && !t.value.chart.zoom.useDefaultFormat ? Aa.value[i]?.text || "" : v.value.at(-1)?.text || "";
|
|
@@ -2206,41 +2247,41 @@ const _n = {
|
|
|
2206
2247
|
return { left: l, right: s };
|
|
2207
2248
|
});
|
|
2208
2249
|
const Bo = x(() => {
|
|
2209
|
-
let l = "", s =
|
|
2210
|
-
const e = v.value[
|
|
2211
|
-
if (
|
|
2212
|
-
absoluteIndex:
|
|
2213
|
-
seriesIndex:
|
|
2214
|
-
datapoint:
|
|
2250
|
+
let l = "", s = Tt.value.map((a) => a.value).filter((a) => fa(a) && a !== null).reduce((a, r) => Math.abs(a) + Math.abs(r), 0);
|
|
2251
|
+
const e = v.value[M.value], i = t.value.chart.tooltip.customFormat;
|
|
2252
|
+
if (ba(i) && nn(() => i({
|
|
2253
|
+
absoluteIndex: M.value + w.value.start,
|
|
2254
|
+
seriesIndex: M.value,
|
|
2255
|
+
datapoint: Tt.value,
|
|
2215
2256
|
series: et.value,
|
|
2216
|
-
bars:
|
|
2257
|
+
bars: It.value,
|
|
2217
2258
|
lines: Re.value,
|
|
2218
2259
|
plots: rt.value,
|
|
2219
2260
|
config: t.value
|
|
2220
2261
|
})))
|
|
2221
2262
|
return i({
|
|
2222
|
-
absoluteIndex:
|
|
2223
|
-
seriesIndex:
|
|
2224
|
-
datapoint:
|
|
2263
|
+
absoluteIndex: M.value + w.value.start,
|
|
2264
|
+
seriesIndex: M.value,
|
|
2265
|
+
datapoint: Tt.value,
|
|
2225
2266
|
series: et.value,
|
|
2226
|
-
bars:
|
|
2267
|
+
bars: It.value,
|
|
2227
2268
|
lines: Re.value,
|
|
2228
2269
|
plots: rt.value,
|
|
2229
2270
|
config: t.value
|
|
2230
2271
|
});
|
|
2231
2272
|
if (e && e.text && t.value.chart.tooltip.showTimeLabel) {
|
|
2232
|
-
const a = $l.value(
|
|
2273
|
+
const a = $l.value(M.value + w.value.start, t.value.chart.tooltip.timeFormat);
|
|
2233
2274
|
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
2275
|
}
|
|
2235
|
-
return
|
|
2236
|
-
if (
|
|
2276
|
+
return Tt.value.forEach((a) => {
|
|
2277
|
+
if (fa(a.value)) {
|
|
2237
2278
|
let r = "", o = "";
|
|
2238
|
-
switch (
|
|
2279
|
+
switch (Qt.value[a.type]) {
|
|
2239
2280
|
case "bar":
|
|
2240
2281
|
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
2282
|
break;
|
|
2242
2283
|
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="${
|
|
2284
|
+
!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
2285
|
break;
|
|
2245
2286
|
case "plot":
|
|
2246
2287
|
if (!a.shape || !["star", "triangle", "square", "diamond", "pentagon", "hexagon"].includes(a.shape)) {
|
|
@@ -2248,7 +2289,7 @@ const _n = {
|
|
|
2248
2289
|
break;
|
|
2249
2290
|
}
|
|
2250
2291
|
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="${
|
|
2292
|
+
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
2293
|
break;
|
|
2253
2294
|
}
|
|
2254
2295
|
if (a.shape === "triangle") {
|
|
@@ -2286,10 +2327,10 @@ const _n = {
|
|
|
2286
2327
|
v: q(Math.abs(a.value) / s * 100),
|
|
2287
2328
|
s: "%",
|
|
2288
2329
|
r: t.value.chart.tooltip.roundingPercentage
|
|
2289
|
-
})})` : ""}</div>`, t.value.chart.comments.showInTooltip && a.comments.length && a.comments.slice(w.value.start, w.value.end)[
|
|
2330
|
+
})})` : ""}</div>`, t.value.chart.comments.showInTooltip && a.comments.length && a.comments.slice(w.value.start, w.value.end)[M.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)[M.value]}</div>`);
|
|
2290
2331
|
}
|
|
2291
2332
|
}), `<div style="border-radius:4px;padding:12px;font-variant-numeric: tabular-nums;color:${t.value.chart.tooltip.color}">${l}</div>`;
|
|
2292
|
-
}),
|
|
2333
|
+
}), eo = x(() => {
|
|
2293
2334
|
if (je.value.length === 0) return { head: [], body: [], config: {}, columnNames: [] };
|
|
2294
2335
|
const l = Fe.value.map((e) => ({
|
|
2295
2336
|
label: e.name,
|
|
@@ -2302,24 +2343,24 @@ const _n = {
|
|
|
2302
2343
|
a.push(Ye(r.absoluteValues[i]) ? Number(r.absoluteValues[i].toFixed(t.value.table.rounding)) : "");
|
|
2303
2344
|
}), s.push(a);
|
|
2304
2345
|
}), { head: l, body: s };
|
|
2305
|
-
}),
|
|
2346
|
+
}), da = x(() => {
|
|
2306
2347
|
const l = t.value.table.showSum;
|
|
2307
2348
|
let s = [""].concat(Fe.value.map((r) => r.name));
|
|
2308
2349
|
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
2350
|
let e = [];
|
|
2310
|
-
for (let r = 0; r <
|
|
2311
|
-
const o = Fe.value.map((
|
|
2351
|
+
for (let r = 0; r < S.value; r += 1) {
|
|
2352
|
+
const o = Fe.value.map((F) => F.absoluteValues[r] ?? 0).reduce((F, R) => F + R, 0);
|
|
2312
2353
|
e.push(
|
|
2313
2354
|
[
|
|
2314
2355
|
t.value.table.useDefaultTimeFormat ? v.value[r].text ?? "-" : $l.value(r + w.value.start, t.value.table.timeFormat)
|
|
2315
2356
|
].concat(Fe.value.map(
|
|
2316
|
-
(
|
|
2317
|
-
|
|
2318
|
-
|
|
2357
|
+
(F) => ze(
|
|
2358
|
+
F.type === "line" ? t.value.line.labels.formatter : F.type === "bar" ? t.value.bar.labels.formatter : t.value.plot.labels.formatter,
|
|
2359
|
+
F.absoluteValues[r] ?? 0,
|
|
2319
2360
|
lt({
|
|
2320
|
-
p:
|
|
2321
|
-
v:
|
|
2322
|
-
s:
|
|
2361
|
+
p: F.prefix || t.value.chart.labels.prefix,
|
|
2362
|
+
v: F.absoluteValues[r] ?? 0,
|
|
2363
|
+
s: F.suffix || t.value.chart.labels.suffix,
|
|
2323
2364
|
r: t.value.table.rounding
|
|
2324
2365
|
})
|
|
2325
2366
|
)
|
|
@@ -2342,10 +2383,10 @@ const _n = {
|
|
|
2342
2383
|
return { head: s, body: e, config: i, colNames: a };
|
|
2343
2384
|
});
|
|
2344
2385
|
function za(l = null) {
|
|
2345
|
-
const s = [[t.value.chart.title.text], [t.value.chart.title.subtitle.text], [""]], e = ["", ...
|
|
2386
|
+
const s = [[t.value.chart.title.text], [t.value.chart.title.subtitle.text], [""]], e = ["", ...eo.value.head.map((o) => o.label)], i = eo.value.body, a = s.concat([e]).concat(i), r = vn(a);
|
|
2346
2387
|
l ? l(r) : dn({ csvContent: r, title: t.value.chart.title.text || "vue-ui-xy" });
|
|
2347
2388
|
}
|
|
2348
|
-
function
|
|
2389
|
+
function to(l, s = null) {
|
|
2349
2390
|
bl.value = l;
|
|
2350
2391
|
const e = Fe.value.map((i) => ({
|
|
2351
2392
|
name: i.name,
|
|
@@ -2353,44 +2394,44 @@ const _n = {
|
|
|
2353
2394
|
color: i.color,
|
|
2354
2395
|
type: i.type
|
|
2355
2396
|
}));
|
|
2356
|
-
l ? (
|
|
2397
|
+
l ? (M.value = s, t.value.events.datapointEnter && t.value.events.datapointEnter({ datapoint: e, seriesIndex: s + w.value.start })) : (M.value = null, t.value.events.datapointLeave && t.value.events.datapointLeave({ datapoint: e, seriesIndex: s + w.value.start }));
|
|
2357
2398
|
}
|
|
2358
|
-
function
|
|
2399
|
+
function lo() {
|
|
2359
2400
|
p.value.showTable = !p.value.showTable;
|
|
2360
2401
|
}
|
|
2361
|
-
function
|
|
2402
|
+
function ao() {
|
|
2362
2403
|
p.value.dataLabels.show = !p.value.dataLabels.show;
|
|
2363
2404
|
}
|
|
2364
|
-
function
|
|
2405
|
+
function oo() {
|
|
2365
2406
|
p.value.showTooltip = !p.value.showTooltip;
|
|
2366
2407
|
}
|
|
2367
|
-
function
|
|
2408
|
+
function no(l) {
|
|
2368
2409
|
Pe.value = l, Pl.value += 1;
|
|
2369
2410
|
}
|
|
2370
|
-
function
|
|
2411
|
+
function uo() {
|
|
2371
2412
|
if (!t.value.responsiveProportionalSizing) {
|
|
2372
|
-
|
|
2413
|
+
A.value.dataLabels = t.value.chart.grid.labels.fontSize, A.value.yAxis = t.value.chart.grid.labels.axis.fontSize, A.value.xAxis = t.value.chart.grid.labels.xAxisLabels.fontSize, A.value.plotLabels = t.value.chart.labels.fontSize, De.value.plot = t.value.plot.radius, De.value.line = t.value.line.radius;
|
|
2373
2414
|
return;
|
|
2374
2415
|
}
|
|
2375
|
-
|
|
2376
|
-
relator:
|
|
2416
|
+
A.value.dataLabels = Ml({
|
|
2417
|
+
relator: W.value,
|
|
2377
2418
|
adjuster: 400,
|
|
2378
2419
|
source: t.value.chart.grid.labels.fontSize,
|
|
2379
2420
|
threshold: 10,
|
|
2380
2421
|
fallback: 10
|
|
2381
|
-
}),
|
|
2422
|
+
}), A.value.yAxis = Ml({
|
|
2382
2423
|
relator: le.value,
|
|
2383
2424
|
adjuster: 1e3,
|
|
2384
2425
|
source: t.value.chart.grid.labels.axis.fontSize,
|
|
2385
2426
|
threshold: 10,
|
|
2386
2427
|
fallback: 10
|
|
2387
|
-
}),
|
|
2428
|
+
}), A.value.xAxis = Ml({
|
|
2388
2429
|
relator: le.value,
|
|
2389
2430
|
adjuster: 1e3,
|
|
2390
2431
|
source: t.value.chart.grid.labels.xAxisLabels.fontSize,
|
|
2391
2432
|
threshold: 10,
|
|
2392
2433
|
fallback: 10
|
|
2393
|
-
}),
|
|
2434
|
+
}), A.value.plotLabels = Ml({
|
|
2394
2435
|
relator: le.value,
|
|
2395
2436
|
adjuster: 800,
|
|
2396
2437
|
source: t.value.chart.labels.fontSize,
|
|
@@ -2411,25 +2452,25 @@ const _n = {
|
|
|
2411
2452
|
});
|
|
2412
2453
|
}
|
|
2413
2454
|
function Ta() {
|
|
2414
|
-
|
|
2455
|
+
_o(d.dataset) ? (Na({
|
|
2415
2456
|
componentName: "VueUiXy",
|
|
2416
2457
|
type: "dataset",
|
|
2417
|
-
debug:
|
|
2458
|
+
debug: Lt.value
|
|
2418
2459
|
}), bt.value = !0) : d.dataset.forEach((s, e) => {
|
|
2419
2460
|
[null, void 0].includes(s.name) && (Na({
|
|
2420
2461
|
componentName: "VueUiXy",
|
|
2421
2462
|
type: "datasetSerieAttribute",
|
|
2422
2463
|
property: "name (string)",
|
|
2423
2464
|
index: e,
|
|
2424
|
-
debug:
|
|
2465
|
+
debug: Lt.value
|
|
2425
2466
|
}), bt.value = !0);
|
|
2426
|
-
}),
|
|
2467
|
+
}), Lt.value && d.dataset.forEach((s) => {
|
|
2427
2468
|
s.series.forEach((e, i) => {
|
|
2428
|
-
|
|
2469
|
+
fa(e) || console.warn(`VueUiXy has detected an unsafe value in your dataset:
|
|
2429
2470
|
-----> The serie '${s.name}' contains the value '${e}' at index ${i}.
|
|
2430
2471
|
'${e}' was converted to null to allow the chart to display.`);
|
|
2431
2472
|
});
|
|
2432
|
-
}),
|
|
2473
|
+
}), _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
2474
|
const l = 12;
|
|
2434
2475
|
if (t.value.responsive) {
|
|
2435
2476
|
const e = Be.value.parentNode;
|
|
@@ -2437,34 +2478,34 @@ const _n = {
|
|
|
2437
2478
|
const { height: i, width: a } = e.getBoundingClientRect();
|
|
2438
2479
|
let r = null, o = 0;
|
|
2439
2480
|
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 &&
|
|
2442
|
-
let
|
|
2443
|
-
t.value.chart.legend.show &&
|
|
2444
|
-
let
|
|
2445
|
-
ft.value && (
|
|
2481
|
+
let F = null, R = 0;
|
|
2482
|
+
t.value.chart.zoom.show && Qe.value > 6 && Mt.value && Ke.value && Ke.value.$el && (F = Ke.value.$el, R = F.getBoundingClientRect().height);
|
|
2483
|
+
let O = null, T = 0;
|
|
2484
|
+
t.value.chart.legend.show && Ce.value && (O = Ce.value, T = O.getBoundingClientRect().height);
|
|
2485
|
+
let N = 0;
|
|
2486
|
+
ft.value && (N = ft.value.getBoundingClientRect().height);
|
|
2446
2487
|
let ee = 0;
|
|
2447
|
-
_t.value && (ee = _t.value.getBoundingClientRect().height),
|
|
2488
|
+
_t.value && (ee = _t.value.getBoundingClientRect().height), W.value = i - 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}`, uo();
|
|
2448
2489
|
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
|
-
|
|
2490
|
+
for (const V of U)
|
|
2491
|
+
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(() => {
|
|
2492
|
+
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}`, uo();
|
|
2452
2493
|
});
|
|
2453
2494
|
});
|
|
2454
2495
|
mt.value = I, ne.value = e, I.observe(e);
|
|
2455
2496
|
} else
|
|
2456
|
-
|
|
2497
|
+
W.value = t.value.chart.height, le.value = t.value.chart.width, A.value.dataLabels = t.value.chart.grid.labels.fontSize, A.value.yAxis = t.value.chart.grid.labels.axis.fontSize, A.value.xAxis = t.value.chart.grid.labels.xAxisLabels.fontSize, A.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
2498
|
}
|
|
2458
|
-
function
|
|
2499
|
+
function io(l) {
|
|
2459
2500
|
jl.value = {
|
|
2460
2501
|
x: l.clientX,
|
|
2461
2502
|
y: l.clientY
|
|
2462
2503
|
};
|
|
2463
2504
|
}
|
|
2464
2505
|
Ll(() => {
|
|
2465
|
-
Ta(), il(), document.addEventListener("mousemove",
|
|
2506
|
+
Ta(), il(), document.addEventListener("mousemove", io, { passive: !0 }), document.addEventListener("scroll", Wl, { passive: !0 });
|
|
2466
2507
|
}), gl(() => {
|
|
2467
|
-
document.removeEventListener("scroll", Wl, { passive: !0 }), document.removeEventListener("mousemove",
|
|
2508
|
+
document.removeEventListener("scroll", Wl, { passive: !0 }), document.removeEventListener("mousemove", io, { passive: !0 }), mt.value && (mt.value.unobserve(ne.value), mt.value.disconnect(), mt.value = null);
|
|
2468
2509
|
}), pn({
|
|
2469
2510
|
timeLabelsEls: Se,
|
|
2470
2511
|
timeLabels: v,
|
|
@@ -2473,32 +2514,32 @@ const _n = {
|
|
|
2473
2514
|
rotationPath: ["chart", "grid", "labels", "xAxisLabels", "rotation"],
|
|
2474
2515
|
autoRotatePath: ["chart", "grid", "labels", "xAxisLabels", "autoRotate", "enable"],
|
|
2475
2516
|
isAutoSize: pt,
|
|
2476
|
-
height:
|
|
2517
|
+
height: W,
|
|
2477
2518
|
width: le,
|
|
2478
2519
|
rotation: t.value.chart.grid.labels.xAxisLabels.autoRotate.angle
|
|
2479
2520
|
});
|
|
2480
|
-
const
|
|
2481
|
-
() =>
|
|
2521
|
+
const ha = y(!1), so = y(null), ro = y(200), Eo = x(
|
|
2522
|
+
() => M.value ?? X.value ?? 0
|
|
2482
2523
|
);
|
|
2483
2524
|
function Ho() {
|
|
2484
|
-
const l = Math.ceil(
|
|
2525
|
+
const l = Math.ceil(ro.value || 200);
|
|
2485
2526
|
return Math.min(Math.max(l, 1), 200);
|
|
2486
2527
|
}
|
|
2487
2528
|
function Do() {
|
|
2488
|
-
const l = Ho(), s = 200, e = Math.max(1,
|
|
2489
|
-
return q(
|
|
2529
|
+
const l = Ho(), s = 200, e = Math.max(1, S.value), i = c.value.width / e, r = c.value.left + Eo.value * i + i / 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));
|
|
2530
|
+
return q(R);
|
|
2490
2531
|
}
|
|
2491
2532
|
Ll(() => {
|
|
2492
2533
|
let l = null, s = null;
|
|
2493
2534
|
const e = (r) => {
|
|
2494
2535
|
cancelAnimationFrame(s), s = requestAnimationFrame(() => {
|
|
2495
|
-
|
|
2536
|
+
ro.value = Math.min(Math.max(Math.ceil(r || 0), 1), 200);
|
|
2496
2537
|
});
|
|
2497
2538
|
}, i = new ResizeObserver((r) => {
|
|
2498
|
-
let o = r.find((
|
|
2539
|
+
let o = r.find((F) => F.target === l) || r[0];
|
|
2499
2540
|
o && e(o.contentRect.width || 200);
|
|
2500
|
-
}), a =
|
|
2501
|
-
const o =
|
|
2541
|
+
}), a = go((r) => {
|
|
2542
|
+
const o = so.value;
|
|
2502
2543
|
l && l !== o && (i.unobserve(l), l = null), o && o !== l && (Cl(() => {
|
|
2503
2544
|
o.offsetParent !== null && e(o.offsetWidth || o.getBoundingClientRect().width || 200);
|
|
2504
2545
|
}), i.observe(o), l = o), r(() => {
|
|
@@ -2513,37 +2554,37 @@ const _n = {
|
|
|
2513
2554
|
});
|
|
2514
2555
|
});
|
|
2515
2556
|
const Wo = x(() => {
|
|
2516
|
-
if ([null, void 0].includes(
|
|
2517
|
-
const l = (
|
|
2518
|
-
if (
|
|
2557
|
+
if ([null, void 0].includes(M.value) && [null, void 0].includes(X.value)) return "";
|
|
2558
|
+
const l = (M.value != null ? M.value : 0) || (X.value != null ? X.value : 0), s = t.value.chart.timeTag.customFormat;
|
|
2559
|
+
if (ha.value = !1, ba(s))
|
|
2519
2560
|
try {
|
|
2520
2561
|
const e = s({
|
|
2521
2562
|
absoluteIndex: l + w.value.start,
|
|
2522
2563
|
seriesIndex: l,
|
|
2523
|
-
datapoint:
|
|
2524
|
-
bars:
|
|
2564
|
+
datapoint: Tt.value,
|
|
2565
|
+
bars: It.value,
|
|
2525
2566
|
lines: Re.value,
|
|
2526
2567
|
plots: rt.value,
|
|
2527
2568
|
config: t.value
|
|
2528
2569
|
});
|
|
2529
2570
|
if (typeof e == "string")
|
|
2530
|
-
return
|
|
2571
|
+
return ha.value = !0, e;
|
|
2531
2572
|
} catch {
|
|
2532
|
-
console.warn("Custom format cannot be applied on timeTag."),
|
|
2573
|
+
console.warn("Custom format cannot be applied on timeTag."), ha.value = !1;
|
|
2533
2574
|
}
|
|
2534
|
-
if (!
|
|
2575
|
+
if (!ha.value)
|
|
2535
2576
|
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
2577
|
});
|
|
2537
2578
|
ht(() => d.dataset, (l) => {
|
|
2538
|
-
Array.isArray(l) && l.length > 0 && (bt.value = !1), Qe.value = Math.max(
|
|
2579
|
+
Array.isArray(l) && l.length > 0 && (bt.value = !1), Qe.value = Math.max(..._e.value.map((s) => yt(s.series).length)), w.value = {
|
|
2539
2580
|
start: 0,
|
|
2540
2581
|
end: Qe.value
|
|
2541
|
-
}, Ql.value += 1, gt.value += 1,
|
|
2582
|
+
}, Ql.value += 1, gt.value += 1, Ct();
|
|
2542
2583
|
}, { deep: !0 }), ht(() => d.config, (l) => {
|
|
2543
|
-
xe.value || (t.value = Bl()), Ta(), Rl.value += 1, Fl.value += 1, tl(),
|
|
2584
|
+
xe.value || (t.value = Bl()), Ta(), Rl.value += 1, Fl.value += 1, tl(), Ct();
|
|
2544
2585
|
}, { deep: !0 });
|
|
2545
2586
|
const Ia = y(!1);
|
|
2546
|
-
function
|
|
2587
|
+
function co() {
|
|
2547
2588
|
const l = Be.value?.parentNode;
|
|
2548
2589
|
if (!l) {
|
|
2549
2590
|
Ia.value = !1;
|
|
@@ -2553,9 +2594,9 @@ const _n = {
|
|
|
2553
2594
|
Ia.value = s.width > 2 && s.height > 2;
|
|
2554
2595
|
}
|
|
2555
2596
|
Ll(() => {
|
|
2556
|
-
|
|
2597
|
+
co();
|
|
2557
2598
|
const l = new ResizeObserver(() => {
|
|
2558
|
-
|
|
2599
|
+
co(), Ia.value && (Ta(), Ct(), il());
|
|
2559
2600
|
});
|
|
2560
2601
|
Be.value?.parentNode && l.observe(Be.value.parentNode);
|
|
2561
2602
|
}), ht(t, () => {
|
|
@@ -2594,33 +2635,34 @@ const _n = {
|
|
|
2594
2635
|
ht(() => p.value.showTable, (l) => {
|
|
2595
2636
|
t.value.showTable || (l && t.value.table.useDialog && Je.value ? Je.value.open() : Je.value && Je.value.close && Je.value.close());
|
|
2596
2637
|
});
|
|
2597
|
-
function
|
|
2638
|
+
function vo() {
|
|
2598
2639
|
p.value.showTable = !1, Nl.value && Nl.value.setTableIconState(!1);
|
|
2599
2640
|
}
|
|
2600
|
-
return
|
|
2641
|
+
return Sa({
|
|
2601
2642
|
getData: Ao,
|
|
2602
2643
|
getImage: zo,
|
|
2603
2644
|
generatePdf: ut,
|
|
2604
2645
|
generateImage: it,
|
|
2605
2646
|
generateCsv: za,
|
|
2606
2647
|
toggleStack: st,
|
|
2607
|
-
toggleTable:
|
|
2608
|
-
toggleLabels:
|
|
2609
|
-
toggleTooltip:
|
|
2648
|
+
toggleTable: lo,
|
|
2649
|
+
toggleLabels: ao,
|
|
2650
|
+
toggleTooltip: oo,
|
|
2610
2651
|
toggleAnnotator: Xl,
|
|
2611
|
-
toggleFullscreen:
|
|
2652
|
+
toggleFullscreen: no
|
|
2612
2653
|
}), (l, s) => (n(), u("div", {
|
|
2613
2654
|
id: `vue-ui-xy_${Z.value}`,
|
|
2614
2655
|
class: Ze(`vue-ui-xy ${Pe.value ? "vue-data-ui-wrapper-fullscreen" : ""} ${t.value.useCssAnimation ? "" : "vue-ui-dna"}`),
|
|
2615
2656
|
ref_key: "chart",
|
|
2616
2657
|
ref: Be,
|
|
2617
|
-
style:
|
|
2618
|
-
onMouseenter: s[6] || (s[6] = () =>
|
|
2619
|
-
onMouseleave: s[7] || (s[7] = () =>
|
|
2658
|
+
style: C(`background:${t.value.chart.backgroundColor}; color:${t.value.chart.color};width:100%;font-family:${t.value.chart.fontFamily};${t.value.responsive ? "height: 100%" : ""}`),
|
|
2659
|
+
onMouseenter: s[6] || (s[6] = () => ge(!0)),
|
|
2660
|
+
onMouseleave: s[7] || (s[7] = () => ge(!1)),
|
|
2661
|
+
onClick: Xa
|
|
2620
2662
|
}, [
|
|
2621
|
-
t.value.chart.userOptions.buttons.annotator &&
|
|
2663
|
+
t.value.chart.userOptions.buttons.annotator && $e.value ? (n(), ct(h(Nt), {
|
|
2622
2664
|
key: 0,
|
|
2623
|
-
svgRef:
|
|
2665
|
+
svgRef: $e.value,
|
|
2624
2666
|
backgroundColor: t.value.chart.backgroundColor,
|
|
2625
2667
|
color: t.value.chart.color,
|
|
2626
2668
|
active: Ee.value,
|
|
@@ -2638,7 +2680,7 @@ const _n = {
|
|
|
2638
2680
|
ref_key: "chartTitle",
|
|
2639
2681
|
ref: Te,
|
|
2640
2682
|
class: "vue-ui-xy-title",
|
|
2641
|
-
style:
|
|
2683
|
+
style: C(`font-family:${t.value.chart.fontFamily}`)
|
|
2642
2684
|
}, [
|
|
2643
2685
|
(n(), ct(wn, {
|
|
2644
2686
|
key: `title_${Rl.value}`,
|
|
@@ -2657,7 +2699,7 @@ const _n = {
|
|
|
2657
2699
|
k("div", {
|
|
2658
2700
|
id: `legend-top-${Z.value}`
|
|
2659
2701
|
}, null, 8, mu),
|
|
2660
|
-
t.value.chart.userOptions.show && (Ol.value || yl.value) ? (n(), ct(h(
|
|
2702
|
+
t.value.chart.userOptions.show && (Ol.value || yl.value) ? (n(), ct(h(fe), {
|
|
2661
2703
|
ref_key: "userOptionsRef",
|
|
2662
2704
|
ref: Nl,
|
|
2663
2705
|
key: `user_options_${Pl.value}`,
|
|
@@ -2672,7 +2714,7 @@ const _n = {
|
|
|
2672
2714
|
hasImg: t.value.chart.userOptions.buttons.img,
|
|
2673
2715
|
hasLabel: t.value.chart.userOptions.buttons.labels,
|
|
2674
2716
|
hasTable: t.value.chart.userOptions.buttons.table,
|
|
2675
|
-
hasStack:
|
|
2717
|
+
hasStack: $.dataset.length > 1 && t.value.chart.userOptions.buttons.stack,
|
|
2676
2718
|
hasFullscreen: t.value.chart.userOptions.buttons.fullscreen,
|
|
2677
2719
|
isStacked: p.value.isStacked,
|
|
2678
2720
|
isFullscreen: Pe.value,
|
|
@@ -2685,23 +2727,23 @@ const _n = {
|
|
|
2685
2727
|
callbacks: t.value.chart.userOptions.callbacks,
|
|
2686
2728
|
tableDialog: t.value.table.useDialog,
|
|
2687
2729
|
printScale: t.value.chart.userOptions.print.scale,
|
|
2688
|
-
onToggleFullscreen:
|
|
2730
|
+
onToggleFullscreen: no,
|
|
2689
2731
|
onGeneratePdf: h(ut),
|
|
2690
2732
|
onGenerateCsv: za,
|
|
2691
2733
|
onGenerateImage: h(it),
|
|
2692
|
-
onToggleTable:
|
|
2693
|
-
onToggleLabels:
|
|
2734
|
+
onToggleTable: lo,
|
|
2735
|
+
onToggleLabels: ao,
|
|
2694
2736
|
onToggleStack: st,
|
|
2695
|
-
onToggleTooltip:
|
|
2737
|
+
onToggleTooltip: oo,
|
|
2696
2738
|
onToggleAnnotator: Xl,
|
|
2697
|
-
style:
|
|
2739
|
+
style: C({
|
|
2698
2740
|
visibility: Ol.value ? yl.value ? "visible" : "hidden" : "visible"
|
|
2699
2741
|
})
|
|
2700
|
-
},
|
|
2742
|
+
}, xo({ _: 2 }, [
|
|
2701
2743
|
l.$slots.menuIcon ? {
|
|
2702
2744
|
name: "menuIcon",
|
|
2703
2745
|
fn: we(({ isOpen: e, color: i }) => [
|
|
2704
|
-
te(l.$slots, "menuIcon",
|
|
2746
|
+
te(l.$slots, "menuIcon", Yt(dl({ isOpen: e, color: i })), void 0, !0)
|
|
2705
2747
|
]),
|
|
2706
2748
|
key: "0"
|
|
2707
2749
|
} : void 0,
|
|
@@ -2757,26 +2799,26 @@ const _n = {
|
|
|
2757
2799
|
l.$slots.optionFullscreen ? {
|
|
2758
2800
|
name: "optionFullscreen",
|
|
2759
2801
|
fn: we(({ toggleFullscreen: e, isFullscreen: i }) => [
|
|
2760
|
-
te(l.$slots, "optionFullscreen",
|
|
2802
|
+
te(l.$slots, "optionFullscreen", Yt(dl({ toggleFullscreen: e, isFullscreen: i })), void 0, !0)
|
|
2761
2803
|
]),
|
|
2762
2804
|
key: "8"
|
|
2763
2805
|
} : void 0,
|
|
2764
2806
|
l.$slots.optionAnnotator ? {
|
|
2765
2807
|
name: "optionAnnotator",
|
|
2766
2808
|
fn: we(({ toggleAnnotator: e, isAnnotator: i }) => [
|
|
2767
|
-
te(l.$slots, "optionAnnotator",
|
|
2809
|
+
te(l.$slots, "optionAnnotator", Yt(dl({ toggleAnnotator: e, isAnnotator: i })), void 0, !0)
|
|
2768
2810
|
]),
|
|
2769
2811
|
key: "9"
|
|
2770
2812
|
} : void 0
|
|
2771
2813
|
]), 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
2814
|
(n(), u("svg", {
|
|
2773
2815
|
ref_key: "svgRef",
|
|
2774
|
-
ref:
|
|
2816
|
+
ref: $e,
|
|
2775
2817
|
xmlns: "http://www.w3.org/2000/svg",
|
|
2776
2818
|
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
2819
|
width: "100%",
|
|
2778
2820
|
viewBox: at.value,
|
|
2779
|
-
style:
|
|
2821
|
+
style: C({
|
|
2780
2822
|
background: "transparent",
|
|
2781
2823
|
color: t.value.chart.color,
|
|
2782
2824
|
fontFamily: t.value.chart.fontFamily
|
|
@@ -2785,9 +2827,9 @@ const _n = {
|
|
|
2785
2827
|
role: "img",
|
|
2786
2828
|
"aria-live": "polite",
|
|
2787
2829
|
preserveAspectRatio: "xMidYMid",
|
|
2788
|
-
onMousemove:
|
|
2789
|
-
onMouseleave:
|
|
2790
|
-
onClick:
|
|
2830
|
+
onMousemove: Co,
|
|
2831
|
+
onMouseleave: ia,
|
|
2832
|
+
onClick: Xa
|
|
2791
2833
|
}, [
|
|
2792
2834
|
k("g", {
|
|
2793
2835
|
ref_key: "G",
|
|
@@ -2799,7 +2841,7 @@ const _n = {
|
|
|
2799
2841
|
key: 0,
|
|
2800
2842
|
x: c.value.left + ue.value < 0 ? 0 : c.value.left + ue.value,
|
|
2801
2843
|
y: c.value.top,
|
|
2802
|
-
width: c.value.width - (t.value.chart.grid.position === "middle" ? 0 : c.value.width /
|
|
2844
|
+
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
2845
|
height: c.value.height < 0 ? 0 : c.value.height,
|
|
2804
2846
|
style: {
|
|
2805
2847
|
pointerEvents: "none"
|
|
@@ -2807,7 +2849,7 @@ const _n = {
|
|
|
2807
2849
|
}, [
|
|
2808
2850
|
te(l.$slots, "chart-background", {}, void 0, !0)
|
|
2809
2851
|
], 8, xu)) : g("", !0),
|
|
2810
|
-
|
|
2852
|
+
S.value > 0 ? (n(), u("g", bu, [
|
|
2811
2853
|
k("g", yu, [
|
|
2812
2854
|
t.value.chart.grid.labels.xAxis.showBaseline ? (n(), u("line", {
|
|
2813
2855
|
key: 0,
|
|
@@ -2820,8 +2862,8 @@ const _n = {
|
|
|
2820
2862
|
"stroke-linecap": "round",
|
|
2821
2863
|
style: { animation: "none !important" }
|
|
2822
2864
|
}, null, 8, pu)) : g("", !0),
|
|
2823
|
-
p.value.useIndividualScale ? t.value.chart.grid.showHorizontalLines ? (n(!0), u(b, { key: 2 },
|
|
2824
|
-
e.id ===
|
|
2865
|
+
p.value.useIndividualScale ? t.value.chart.grid.showHorizontalLines ? (n(!0), u(b, { key: 2 }, L(Gl.value, (e) => (n(), u("g", null, [
|
|
2866
|
+
e.id === E.value && e.yLabels.length ? (n(!0), u(b, { key: 0 }, L(e.yLabels, (i) => (n(), u("line", {
|
|
2825
2867
|
x1: c.value.left + ue.value,
|
|
2826
2868
|
x2: c.value.right - ue.value,
|
|
2827
2869
|
y1: h(j)(i.y),
|
|
@@ -2830,7 +2872,7 @@ const _n = {
|
|
|
2830
2872
|
"stroke-width": 0.5,
|
|
2831
2873
|
"stroke-linecap": "round",
|
|
2832
2874
|
style: { animation: "none !important" }
|
|
2833
|
-
}, null, 8, $u))), 256)) : e.yLabels.length ? (n(!0), u(b, { key: 1 },
|
|
2875
|
+
}, null, 8, $u))), 256)) : e.yLabels.length ? (n(!0), u(b, { key: 1 }, L(e.yLabels, (i) => (n(), u("line", {
|
|
2834
2876
|
x1: c.value.left + ue.value,
|
|
2835
2877
|
x2: c.value.right - ue.value,
|
|
2836
2878
|
y1: h(j)(i.y),
|
|
@@ -2853,7 +2895,7 @@ const _n = {
|
|
|
2853
2895
|
style: { animation: "none !important" }
|
|
2854
2896
|
}, null, 8, ku)) : g("", !0),
|
|
2855
2897
|
t.value.chart.grid.showHorizontalLines ? (n(), u("g", wu, [
|
|
2856
|
-
(n(!0), u(b, null,
|
|
2898
|
+
(n(!0), u(b, null, L(Za.value, (e) => (n(), u("line", {
|
|
2857
2899
|
x1: c.value.left + ue.value,
|
|
2858
2900
|
x2: c.value.right,
|
|
2859
2901
|
y1: h(j)(e.y),
|
|
@@ -2867,7 +2909,7 @@ const _n = {
|
|
|
2867
2909
|
], 64)),
|
|
2868
2910
|
t.value.chart.grid.showVerticalLines ? (n(), u("g", Mu, [
|
|
2869
2911
|
k("path", {
|
|
2870
|
-
d:
|
|
2912
|
+
d: Vt.value,
|
|
2871
2913
|
"stroke-width": 0.5,
|
|
2872
2914
|
stroke: t.value.chart.grid.stroke,
|
|
2873
2915
|
"stroke-linecap": "round",
|
|
@@ -2884,10 +2926,10 @@ const _n = {
|
|
|
2884
2926
|
}, null, 8, Au)
|
|
2885
2927
|
])) : g("", !0)
|
|
2886
2928
|
]),
|
|
2887
|
-
(n(!0), u(b, null,
|
|
2929
|
+
(n(!0), u(b, null, L(It.value, (e, i) => (n(), u("defs", {
|
|
2888
2930
|
key: `def_rect_${i}`
|
|
2889
2931
|
}, [
|
|
2890
|
-
l.$slots["bar-gradient"] ? te(l.$slots, "bar-gradient",
|
|
2932
|
+
l.$slots["bar-gradient"] ? te(l.$slots, "bar-gradient", Gt({
|
|
2891
2933
|
key: 0,
|
|
2892
2934
|
ref_for: !0
|
|
2893
2935
|
}, { series: e, positiveId: `rectGradient_pos_${i}_${Z.value}`, negativeId: `rectGradient_neg_${i}_${Z.value}` }), void 0, !0) : (n(), u(b, { key: 1 }, [
|
|
@@ -2929,7 +2971,7 @@ const _n = {
|
|
|
2929
2971
|
], 8, Pu)
|
|
2930
2972
|
], 64))
|
|
2931
2973
|
]))), 128)),
|
|
2932
|
-
(n(!0), u(b, null,
|
|
2974
|
+
(n(!0), u(b, null, L(rt.value, (e, i) => (n(), u("defs", {
|
|
2933
2975
|
key: `def_plot_${i}`
|
|
2934
2976
|
}, [
|
|
2935
2977
|
k("radialGradient", {
|
|
@@ -2950,7 +2992,7 @@ const _n = {
|
|
|
2950
2992
|
}, null, 8, Eu)
|
|
2951
2993
|
], 8, Vu)
|
|
2952
2994
|
]))), 128)),
|
|
2953
|
-
(n(!0), u(b, null,
|
|
2995
|
+
(n(!0), u(b, null, L(Re.value, (e, i) => (n(), u("defs", {
|
|
2954
2996
|
key: `def_line_${e.id}`
|
|
2955
2997
|
}, [
|
|
2956
2998
|
k("radialGradient", {
|
|
@@ -2970,7 +3012,7 @@ const _n = {
|
|
|
2970
3012
|
"stop-color": e.color
|
|
2971
3013
|
}, null, 8, Wu)
|
|
2972
3014
|
], 8, Hu),
|
|
2973
|
-
l.$slots["area-gradient"] ? te(l.$slots, "area-gradient",
|
|
3015
|
+
l.$slots["area-gradient"] ? te(l.$slots, "area-gradient", Gt({
|
|
2974
3016
|
key: 0,
|
|
2975
3017
|
ref_for: !0
|
|
2976
3018
|
}, { series: e, id: `areaGradient_${i}_${Z.value}` }), void 0, !0) : (n(), u("linearGradient", {
|
|
@@ -2991,93 +3033,93 @@ const _n = {
|
|
|
2991
3033
|
}, null, 8, Gu)
|
|
2992
3034
|
], 8, Xu))
|
|
2993
3035
|
]))), 128)),
|
|
2994
|
-
(n(!0), u(b, null,
|
|
3036
|
+
(n(!0), u(b, null, L(No.value, (e) => (n(), u("g", null, [
|
|
2995
3037
|
e.show ? (n(), u(b, { key: 0 }, [
|
|
2996
|
-
(n(!0), u(b, null,
|
|
3038
|
+
(n(!0), u(b, null, L(e.span, (i, a) => (n(), u("g", null, [
|
|
2997
3039
|
k("rect", {
|
|
2998
|
-
style:
|
|
3040
|
+
style: C({
|
|
2999
3041
|
transition: "none",
|
|
3000
3042
|
opacity: e.from + a >= w.value.start && e.from + a <= w.value.end - 1 ? 1 : 0
|
|
3001
3043
|
}),
|
|
3002
|
-
x: c.value.left + c.value.width /
|
|
3044
|
+
x: c.value.left + c.value.width / S.value * (e.from + a - w.value.start),
|
|
3003
3045
|
y: c.value.top,
|
|
3004
3046
|
height: c.value.height < 0 ? 10 : c.value.height,
|
|
3005
|
-
width: c.value.width /
|
|
3047
|
+
width: c.value.width / S.value < 0 ? 1e-5 : c.value.width / S.value,
|
|
3006
3048
|
fill: h(vt)(e.color, e.opacity)
|
|
3007
3049
|
}, null, 12, Uu)
|
|
3008
3050
|
]))), 256)),
|
|
3009
|
-
(n(!0), u(b, null,
|
|
3051
|
+
(n(!0), u(b, null, L(e.span, (i, a) => (n(), u("g", null, [
|
|
3010
3052
|
e.caption.text && a === 0 ? (n(), u("foreignObject", {
|
|
3011
3053
|
key: 0,
|
|
3012
|
-
x: c.value.left + c.value.width /
|
|
3054
|
+
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
3055
|
y: c.value.top + e.caption.offsetY,
|
|
3014
|
-
style:
|
|
3056
|
+
style: C({
|
|
3015
3057
|
overflow: "visible",
|
|
3016
3058
|
opacity: e.to >= w.value.start && e.from < w.value.end ? 1 : 0
|
|
3017
3059
|
}),
|
|
3018
3060
|
height: "1",
|
|
3019
|
-
width: e.caption.width === "auto" ? c.value.width /
|
|
3061
|
+
width: e.caption.width === "auto" ? c.value.width / S.value * e.span : e.caption.width
|
|
3020
3062
|
}, [
|
|
3021
3063
|
k("div", {
|
|
3022
|
-
style:
|
|
3064
|
+
style: C(`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
3065
|
}, re(e.caption.text), 5)
|
|
3024
3066
|
], 12, qu)) : g("", !0)
|
|
3025
3067
|
]))), 256))
|
|
3026
3068
|
], 64)) : g("", !0)
|
|
3027
3069
|
]))), 256)),
|
|
3028
|
-
|
|
3029
|
-
(n(!0), u(b, null,
|
|
3070
|
+
Bt.value ? (n(), u("g", Zu, [
|
|
3071
|
+
(n(!0), u(b, null, L(S.value, (e, i) => (n(), u("g", {
|
|
3030
3072
|
key: `tooltip_trap_highlighter_${i}`
|
|
3031
3073
|
}, [
|
|
3032
3074
|
k("rect", {
|
|
3033
|
-
x: c.value.left + c.value.width /
|
|
3075
|
+
x: c.value.left + c.value.width / S.value * i,
|
|
3034
3076
|
y: c.value.top,
|
|
3035
3077
|
height: c.value.height < 0 ? 10 : c.value.height,
|
|
3036
|
-
width: c.value.width /
|
|
3037
|
-
fill: [
|
|
3078
|
+
width: c.value.width / S.value < 0 ? 1e-5 : c.value.width / S.value,
|
|
3079
|
+
fill: [X.value, M.value, ae.value].includes(i) ? h(vt)(t.value.chart.highlighter.color, t.value.chart.highlighter.opacity) : "transparent",
|
|
3038
3080
|
style: { transition: "none !important", animation: "none !important" }
|
|
3039
3081
|
}, null, 8, Ku)
|
|
3040
3082
|
]))), 128))
|
|
3041
3083
|
])) : g("", !0),
|
|
3042
|
-
|
|
3084
|
+
It.value.length ? (n(!0), u(b, { key: 1 }, L(It.value, (e, i) => (n(), u("g", {
|
|
3043
3085
|
key: `serie_bar_${e.id}`,
|
|
3044
3086
|
class: Ze(`serie_bar_${i}`),
|
|
3045
|
-
style:
|
|
3087
|
+
style: C(`opacity:${E.value ? E.value === e.groupId ? 1 : 0.2 : 1};transition:opacity 0.2s ease-in-out`)
|
|
3046
3088
|
}, [
|
|
3047
|
-
(n(!0), u(b, null,
|
|
3089
|
+
(n(!0), u(b, null, L(e.plots, (a, r) => (n(), u("g", {
|
|
3048
3090
|
key: `bar_plot_${i}_${r}`
|
|
3049
3091
|
}, [
|
|
3050
3092
|
Ye(a.value) ? (n(), u("rect", {
|
|
3051
3093
|
key: 0,
|
|
3052
|
-
x: ua(a) +
|
|
3094
|
+
x: ua(a) + ca.value / 2,
|
|
3053
3095
|
y: p.value.useIndividualScale ? Da(a) : Ha(a),
|
|
3054
3096
|
height: p.value.useIndividualScale ? Math.abs(Ea(a)) : Math.abs(Ba(a)),
|
|
3055
|
-
width:
|
|
3097
|
+
width: ra.value - ca.value,
|
|
3056
3098
|
rx: t.value.bar.borderRadius,
|
|
3057
3099
|
fill: t.value.bar.useGradient ? a.value >= 0 ? `url(#rectGradient_pos_${i}_${Z.value})` : `url(#rectGradient_neg_${i}_${Z.value})` : e.color,
|
|
3058
3100
|
stroke: t.value.bar.border.useSerieColor ? e.color : t.value.bar.border.stroke,
|
|
3059
3101
|
"stroke-width": t.value.bar.border.strokeWidth,
|
|
3060
|
-
style:
|
|
3102
|
+
style: C({
|
|
3061
3103
|
transition: h(xe) || !t.value.bar.showTransition ? void 0 : `all ${t.value.bar.transitionDurationMs}ms ease-in-out`
|
|
3062
3104
|
})
|
|
3063
3105
|
}, null, 12, Ju)) : g("", !0),
|
|
3064
3106
|
Ye(a.value) && l.$slots.pattern ? (n(), u("rect", {
|
|
3065
3107
|
key: 1,
|
|
3066
|
-
x: ua(a) -
|
|
3108
|
+
x: ua(a) - ca.value / 2,
|
|
3067
3109
|
y: p.value.useIndividualScale ? Da(a) : Ha(a),
|
|
3068
3110
|
height: p.value.useIndividualScale ? Math.abs(Ea(a)) : Math.abs(Ba(a)),
|
|
3069
|
-
width:
|
|
3111
|
+
width: ra.value - ca.value,
|
|
3070
3112
|
rx: t.value.bar.borderRadius,
|
|
3071
3113
|
fill: `url(#pattern_${Z.value}_${e.slotAbsoluteIndex})`,
|
|
3072
3114
|
stroke: t.value.bar.border.useSerieColor ? e.color : t.value.bar.border.stroke,
|
|
3073
3115
|
"stroke-width": t.value.bar.border.strokeWidth,
|
|
3074
|
-
style:
|
|
3116
|
+
style: C({ transition: h(xe) || !t.value.bar.showTransition ? void 0 : `all ${t.value.bar.transitionDurationMs}ms ease-in-out` })
|
|
3075
3117
|
}, null, 12, Qu)) : g("", !0),
|
|
3076
3118
|
a.comment && t.value.chart.comments.show ? (n(), u("foreignObject", {
|
|
3077
3119
|
key: 2,
|
|
3078
3120
|
style: { overflow: "visible" },
|
|
3079
3121
|
height: "12",
|
|
3080
|
-
width:
|
|
3122
|
+
width: ra.value / 2 + t.value.chart.comments.width,
|
|
3081
3123
|
x: ua(a) - t.value.chart.comments.width / 2 + t.value.chart.comments.offsetX,
|
|
3082
3124
|
y: h(q)(a.y) + t.value.chart.comments.offsetY + 6
|
|
3083
3125
|
}, [
|
|
@@ -3118,7 +3160,7 @@ const _n = {
|
|
|
3118
3160
|
"text-anchor": "middle",
|
|
3119
3161
|
x: h(ie)(e.plots).x2 + Sl(),
|
|
3120
3162
|
y: h(ie)(e.plots).y2 - 6,
|
|
3121
|
-
"font-size":
|
|
3163
|
+
"font-size": A.value.plotLabels,
|
|
3122
3164
|
fill: e.color
|
|
3123
3165
|
}, re(h(lt)({
|
|
3124
3166
|
v: h(ie)(e.plots).trend * 100,
|
|
@@ -3138,10 +3180,10 @@ const _n = {
|
|
|
3138
3180
|
"stroke-linecap": "round",
|
|
3139
3181
|
style: { animation: "none !important" }
|
|
3140
3182
|
}, null, 8, ni)) : g("", !0),
|
|
3141
|
-
t.value.chart.highlighter.useLine && (![null, void 0].includes(
|
|
3183
|
+
t.value.chart.highlighter.useLine && (![null, void 0].includes(M.value) || ![null, void 0].includes(X.value)) ? (n(), u("g", ui, [
|
|
3142
3184
|
k("line", {
|
|
3143
|
-
x1: c.value.left + c.value.width /
|
|
3144
|
-
x2: c.value.left + c.value.width /
|
|
3185
|
+
x1: c.value.left + c.value.width / S.value * ((M.value !== null ? M.value : 0) || (X.value !== null ? X.value : 0)) + c.value.width / S.value / 2,
|
|
3186
|
+
x2: c.value.left + c.value.width / S.value * ((M.value !== null ? M.value : 0) || (X.value !== null ? X.value : 0)) + c.value.width / S.value / 2,
|
|
3145
3187
|
y1: h(j)(c.value.top),
|
|
3146
3188
|
y2: h(j)(c.value.bottom),
|
|
3147
3189
|
stroke: t.value.chart.highlighter.color,
|
|
@@ -3156,7 +3198,7 @@ const _n = {
|
|
|
3156
3198
|
style: { pointerEvents: "none", transition: "none", animation: "none !important" },
|
|
3157
3199
|
x: c.value.left + ue.value < 0 ? 0 : c.value.left + ue.value,
|
|
3158
3200
|
y: c.value.top,
|
|
3159
|
-
width: c.value.width - (t.value.chart.grid.position === "middle" ? 0 : c.value.width /
|
|
3201
|
+
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
3202
|
height: c.value.height < 0 ? 0 : c.value.height,
|
|
3161
3203
|
fill: "transparent",
|
|
3162
3204
|
stroke: t.value.chart.grid.frame.stroke,
|
|
@@ -3171,7 +3213,7 @@ const _n = {
|
|
|
3171
3213
|
ref: Il
|
|
3172
3214
|
}, [
|
|
3173
3215
|
p.value.useIndividualScale ? (n(), u(b, { key: 0 }, [
|
|
3174
|
-
(n(!0), u(b, null,
|
|
3216
|
+
(n(!0), u(b, null, L(Gl.value, (e) => (n(), u("g", null, [
|
|
3175
3217
|
k("line", {
|
|
3176
3218
|
x1: e.x + ue.value - c.value.individualOffsetX,
|
|
3177
3219
|
x2: e.x + ue.value - c.value.individualOffsetX,
|
|
@@ -3180,20 +3222,20 @@ const _n = {
|
|
|
3180
3222
|
stroke: e.color,
|
|
3181
3223
|
"stroke-width": t.value.chart.grid.stroke,
|
|
3182
3224
|
"stroke-linecap": "round",
|
|
3183
|
-
style:
|
|
3225
|
+
style: C(`opacity:${E.value ? E.value === e.groupId ? 1 : 0.3 : 1};transition:opacity 0.2s ease-in-out; animation: none !important`)
|
|
3184
3226
|
}, null, 12, ri)
|
|
3185
3227
|
]))), 256)),
|
|
3186
|
-
(n(!0), u(b, null,
|
|
3187
|
-
style:
|
|
3228
|
+
(n(!0), u(b, null, L(Gl.value, (e) => (n(), u("g", {
|
|
3229
|
+
style: C(`opacity:${E.value ? E.value === e.groupId ? 1 : 0.3 : 1};transition:opacity 0.2s ease-in-out`)
|
|
3188
3230
|
}, [
|
|
3189
3231
|
k("text", {
|
|
3190
3232
|
fill: e.color,
|
|
3191
|
-
"font-size":
|
|
3233
|
+
"font-size": A.value.dataLabels * 0.8,
|
|
3192
3234
|
"text-anchor": "middle",
|
|
3193
|
-
transform: `translate(${e.x -
|
|
3235
|
+
transform: `translate(${e.x - A.value.dataLabels * 0.8 / 2 + ue.value}, ${p.value.isStacked ? c.value.bottom - e.yOffset - e.individualHeight / 2 : c.value.top + c.value.height / 2}) rotate(-90)`
|
|
3194
3236
|
}, re(e.name) + " " + re(e.scaleLabel && e.unique && e.scaleLabel !== e.id ? `-
|
|
3195
3237
|
${e.scaleLabel}` : ""), 9, ci),
|
|
3196
|
-
(n(!0), u(b, null,
|
|
3238
|
+
(n(!0), u(b, null, L(e.yLabels, (i, a) => (n(), u(b, null, [
|
|
3197
3239
|
t.value.chart.grid.labels.yAxis.showCrosshairs ? (n(), u("line", {
|
|
3198
3240
|
key: 0,
|
|
3199
3241
|
x1: e.x + 3 + ue.value - t.value.chart.grid.labels.yAxis.crosshairSize - c.value.individualOffsetX,
|
|
@@ -3206,10 +3248,10 @@ const _n = {
|
|
|
3206
3248
|
style: { animation: "none !important" }
|
|
3207
3249
|
}, null, 8, vi)) : g("", !0)
|
|
3208
3250
|
], 64))), 256)),
|
|
3209
|
-
(n(!0), u(b, null,
|
|
3251
|
+
(n(!0), u(b, null, L(e.yLabels, (i, a) => (n(), u("text", {
|
|
3210
3252
|
x: e.x - 5 + ue.value - c.value.individualOffsetX,
|
|
3211
|
-
y: h(j)(i.y) +
|
|
3212
|
-
"font-size":
|
|
3253
|
+
y: h(j)(i.y) + A.value.dataLabels / 3,
|
|
3254
|
+
"font-size": A.value.dataLabels,
|
|
3213
3255
|
"text-anchor": "end",
|
|
3214
3256
|
fill: e.color
|
|
3215
3257
|
}, re(h(ze)(
|
|
@@ -3224,7 +3266,7 @@ const _n = {
|
|
|
3224
3266
|
{ datapoint: i.datapoint, seriesIndex: a }
|
|
3225
3267
|
)), 9, di))), 256))
|
|
3226
3268
|
], 4))), 256))
|
|
3227
|
-
], 64)) : (n(!0), u(b, { key: 1 },
|
|
3269
|
+
], 64)) : (n(!0), u(b, { key: 1 }, L(Za.value, (e, i) => (n(), u("g", {
|
|
3228
3270
|
key: `yLabel_${i}`
|
|
3229
3271
|
}, [
|
|
3230
3272
|
Ye(e) && e.value >= Xe.value.min && e.value <= Xe.value.max && t.value.chart.grid.labels.yAxis.showCrosshairs ? (n(), u("line", {
|
|
@@ -3241,8 +3283,8 @@ const _n = {
|
|
|
3241
3283
|
e.value >= Xe.value.min && e.value <= Xe.value.max ? (n(), u("text", {
|
|
3242
3284
|
key: 1,
|
|
3243
3285
|
x: c.value.scaleLabelX - t.value.chart.grid.labels.yAxis.crosshairSize,
|
|
3244
|
-
y: h(q)(e.y +
|
|
3245
|
-
"font-size":
|
|
3286
|
+
y: h(q)(e.y + A.value.dataLabels / 3),
|
|
3287
|
+
"font-size": A.value.dataLabels,
|
|
3246
3288
|
"text-anchor": "end",
|
|
3247
3289
|
fill: t.value.chart.grid.labels.color
|
|
3248
3290
|
}, re(Ye(e.value) ? h(ze)(
|
|
@@ -3257,23 +3299,23 @@ const _n = {
|
|
|
3257
3299
|
) : ""), 9, fi)) : g("", !0)
|
|
3258
3300
|
]))), 128))
|
|
3259
3301
|
], 512)) : g("", !0),
|
|
3260
|
-
(n(!0), u(b, null,
|
|
3302
|
+
(n(!0), u(b, null, L(rt.value, (e, i) => (n(), u("g", {
|
|
3261
3303
|
key: `serie_plot_${e.id}`,
|
|
3262
3304
|
class: Ze(`serie_plot_${i}`),
|
|
3263
|
-
style:
|
|
3305
|
+
style: C(`opacity:${E.value ? E.value === e.groupId ? 1 : 0.2 : 1};transition:opacity 0.2s ease-in-out`)
|
|
3264
3306
|
}, [
|
|
3265
|
-
(n(!0), u(b, null,
|
|
3307
|
+
(n(!0), u(b, null, L(e.plots, (a, r) => (n(), u("g", {
|
|
3266
3308
|
key: `circle_plot_${i}_${r}`
|
|
3267
3309
|
}, [
|
|
3268
|
-
a && Ye(a.value) ? (n(), ct(
|
|
3310
|
+
a && Ye(a.value) ? (n(), ct(ga, {
|
|
3269
3311
|
key: 0,
|
|
3270
3312
|
shape: ["triangle", "square", "diamond", "pentagon", "hexagon", "star"].includes(e.shape) ? e.shape : "circle",
|
|
3271
3313
|
color: t.value.plot.useGradient ? `url(#plotGradient_${i}_${Z.value})` : t.value.plot.dot.useSerieColor ? e.color : t.value.plot.dot.fill,
|
|
3272
3314
|
plot: { x: h(q)(a.x), y: h(q)(a.y) },
|
|
3273
|
-
radius:
|
|
3315
|
+
radius: M.value !== null && M.value === r || X.value !== null && X.value === r ? (De.value.plot || 6) * 1.5 : De.value.plot || 6,
|
|
3274
3316
|
stroke: t.value.plot.dot.useSerieColor ? t.value.chart.backgroundColor : e.color,
|
|
3275
3317
|
strokeWidth: t.value.plot.dot.strokeWidth,
|
|
3276
|
-
transition: h(xe) || !t.value.plot.showTransition ||
|
|
3318
|
+
transition: h(xe) || !t.value.plot.showTransition || M.value !== null && M.value === r || X.value !== null && X.value === r ? void 0 : `all ${t.value.plot.transitionDurationMs}ms ease-in-out`
|
|
3277
3319
|
}, null, 8, ["shape", "color", "plot", "radius", "stroke", "strokeWidth", "transition"])) : g("", !0),
|
|
3278
3320
|
a.comment && t.value.chart.comments.show ? (n(), u("foreignObject", {
|
|
3279
3321
|
key: 1,
|
|
@@ -3322,7 +3364,7 @@ const _n = {
|
|
|
3322
3364
|
"text-anchor": "middle",
|
|
3323
3365
|
x: h(ie)(e.plots).x2,
|
|
3324
3366
|
y: h(ie)(e.plots).y2 - 6,
|
|
3325
|
-
"font-size":
|
|
3367
|
+
"font-size": A.value.plotLabels,
|
|
3326
3368
|
fill: e.color
|
|
3327
3369
|
}, re(h(lt)({
|
|
3328
3370
|
v: h(ie)(e.plots).trend * 100,
|
|
@@ -3331,10 +3373,10 @@ const _n = {
|
|
|
3331
3373
|
})), 9, ki)) : g("", !0)
|
|
3332
3374
|
])) : g("", !0)
|
|
3333
3375
|
], 6))), 128)),
|
|
3334
|
-
(n(!0), u(b, null,
|
|
3376
|
+
(n(!0), u(b, null, L(Re.value, (e, i) => (n(), u("g", {
|
|
3335
3377
|
key: `serie_line_${e.id}`,
|
|
3336
3378
|
class: Ze(`serie_line_${i}`),
|
|
3337
|
-
style:
|
|
3379
|
+
style: C(`opacity:${E.value ? E.value === e.groupId ? 1 : 0.2 : 1};transition:opacity 0.2s ease-in-out`)
|
|
3338
3380
|
}, [
|
|
3339
3381
|
e.smooth && e.plots.length > 1 && e.curve ? (n(), u("path", {
|
|
3340
3382
|
key: 0,
|
|
@@ -3343,7 +3385,7 @@ const _n = {
|
|
|
3343
3385
|
"stroke-width": t.value.line.strokeWidth + 1,
|
|
3344
3386
|
"stroke-dasharray": e.dashed ? t.value.line.strokeWidth * 2 : 0,
|
|
3345
3387
|
fill: "none",
|
|
3346
|
-
style:
|
|
3388
|
+
style: C({ transition: h(xe) || !t.value.line.showTransition ? void 0 : `all ${t.value.line.transitionDurationMs}ms ease-in-out` })
|
|
3347
3389
|
}, null, 12, wi)) : e.plots.length > 1 && e.straight ? (n(), u("path", {
|
|
3348
3390
|
key: 1,
|
|
3349
3391
|
d: `M${e.straight}`,
|
|
@@ -3353,56 +3395,56 @@ const _n = {
|
|
|
3353
3395
|
fill: "none",
|
|
3354
3396
|
"stroke-linecap": "round",
|
|
3355
3397
|
"stroke-linejoin": "round",
|
|
3356
|
-
style:
|
|
3398
|
+
style: C({ transition: h(xe) || !t.value.line.showTransition ? void 0 : `all ${t.value.line.transitionDurationMs}ms ease-in-out` })
|
|
3357
3399
|
}, null, 12, Si)) : g("", !0)
|
|
3358
3400
|
], 6))), 128)),
|
|
3359
3401
|
l.$slots.pattern ? (n(), u("defs", $i, [
|
|
3360
|
-
(n(!0), u(b, null,
|
|
3402
|
+
(n(!0), u(b, null, L(je.value, (e, i) => te(l.$slots, "pattern", Gt({
|
|
3361
3403
|
key: `serie_pattern_slot_${e.id}`
|
|
3362
3404
|
}, { ref_for: !0 }, { ...e, seriesIndex: e.slotAbsoluteIndex, patternId: `pattern_${Z.value}_${i}` }), void 0, !0)), 128))
|
|
3363
3405
|
])) : g("", !0),
|
|
3364
|
-
|
|
3365
|
-
(n(!0), u(b, null,
|
|
3406
|
+
Qa.value.length && !p.value.isStacked ? (n(), u("g", _i, [
|
|
3407
|
+
(n(!0), u(b, null, L(Qa.value, (e) => (n(), u("path", {
|
|
3366
3408
|
key: e.key,
|
|
3367
3409
|
d: e.d,
|
|
3368
3410
|
fill: e.color,
|
|
3369
3411
|
"fill-opacity": t.value.line.interLine.fillOpacity,
|
|
3370
3412
|
stroke: "none",
|
|
3371
3413
|
"pointer-events": "none",
|
|
3372
|
-
style:
|
|
3414
|
+
style: C({ transition: h(xe) || !t.value.line.showTransition ? void 0 : `all ${t.value.line.transitionDurationMs}ms ease-in-out` })
|
|
3373
3415
|
}, null, 12, Mi))), 128))
|
|
3374
3416
|
])) : g("", !0),
|
|
3375
|
-
(n(!0), u(b, null,
|
|
3417
|
+
(n(!0), u(b, null, L(Re.value, (e, i) => (n(), u("g", {
|
|
3376
3418
|
key: `serie_line_above_${e.id}`,
|
|
3377
3419
|
class: Ze(`serie_line_${i}`),
|
|
3378
|
-
style:
|
|
3420
|
+
style: C(`opacity:${E.value ? E.value === e.groupId ? 1 : 0.2 : 1};transition:opacity 0.2s ease-in-out`)
|
|
3379
3421
|
}, [
|
|
3380
3422
|
e.useArea && e.plots.length > 1 ? (n(), u("g", Li, [
|
|
3381
|
-
e.smooth ? (n(!0), u(b, { key: 0 },
|
|
3423
|
+
e.smooth ? (n(!0), u(b, { key: 0 }, L(e.curveAreas, (a, r) => (n(), u(b, { key: r }, [
|
|
3382
3424
|
a ? (n(), u("path", {
|
|
3383
3425
|
key: 0,
|
|
3384
3426
|
d: a,
|
|
3385
3427
|
fill: t.value.line.area.useGradient ? `url(#areaGradient_${i}_${Z.value})` : h(vt)(e.color, t.value.line.area.opacity),
|
|
3386
|
-
style:
|
|
3428
|
+
style: C({ transition: h(xe) || !t.value.line.showTransition ? void 0 : `all ${t.value.line.transitionDurationMs}ms ease-in-out` })
|
|
3387
3429
|
}, null, 12, Ci)) : g("", !0),
|
|
3388
3430
|
l.$slots.pattern && a ? (n(), u("path", {
|
|
3389
3431
|
key: 1,
|
|
3390
3432
|
d: a,
|
|
3391
3433
|
fill: `url(#pattern_${Z.value}_${e.slotAbsoluteIndex})`,
|
|
3392
|
-
style:
|
|
3434
|
+
style: C({ transition: h(xe) || !t.value.line.showTransition ? void 0 : `all ${t.value.line.transitionDurationMs}ms ease-in-out` })
|
|
3393
3435
|
}, null, 12, Ai)) : g("", !0)
|
|
3394
|
-
], 64))), 128)) : (n(!0), u(b, { key: 1 },
|
|
3436
|
+
], 64))), 128)) : (n(!0), u(b, { key: 1 }, L(e.area.split(";"), (a, r) => (n(), u(b, { key: r }, [
|
|
3395
3437
|
a ? (n(), u("path", {
|
|
3396
3438
|
key: 0,
|
|
3397
3439
|
d: `M${a}Z`,
|
|
3398
3440
|
fill: t.value.line.area.useGradient ? `url(#areaGradient_${i}_${Z.value})` : h(vt)(e.color, t.value.line.area.opacity),
|
|
3399
|
-
style:
|
|
3441
|
+
style: C({ transition: h(xe) || !t.value.line.showTransition ? void 0 : `all ${t.value.line.transitionDurationMs}ms ease-in-out` })
|
|
3400
3442
|
}, null, 12, zi)) : g("", !0),
|
|
3401
3443
|
l.$slots.pattern && a ? (n(), u("path", {
|
|
3402
3444
|
key: 1,
|
|
3403
3445
|
d: `M${a}Z`,
|
|
3404
3446
|
fill: `url(#pattern_${Z.value}_${e.slotAbsoluteIndex})`,
|
|
3405
|
-
style:
|
|
3447
|
+
style: C({ transition: h(xe) || !t.value.line.showTransition ? void 0 : `all ${t.value.line.transitionDurationMs}ms ease-in-out` })
|
|
3406
3448
|
}, null, 12, Ti)) : g("", !0)
|
|
3407
3449
|
], 64))), 128))
|
|
3408
3450
|
])) : g("", !0),
|
|
@@ -3414,7 +3456,7 @@ const _n = {
|
|
|
3414
3456
|
"stroke-dasharray": e.dashed ? t.value.line.strokeWidth * 2 : 0,
|
|
3415
3457
|
fill: "none",
|
|
3416
3458
|
"stroke-linecap": "round",
|
|
3417
|
-
style:
|
|
3459
|
+
style: C({ transition: h(xe) || !t.value.line.showTransition ? void 0 : `all ${t.value.line.transitionDurationMs}ms ease-in-out` })
|
|
3418
3460
|
}, null, 12, Ii)) : e.plots.length > 1 && e.straight ? (n(), u("path", {
|
|
3419
3461
|
key: 2,
|
|
3420
3462
|
d: `M${e.straight}`,
|
|
@@ -3424,20 +3466,20 @@ const _n = {
|
|
|
3424
3466
|
fill: "none",
|
|
3425
3467
|
"stroke-linecap": "round",
|
|
3426
3468
|
"stroke-linejoin": "round",
|
|
3427
|
-
style:
|
|
3469
|
+
style: C({ transition: h(xe) || !t.value.line.showTransition ? void 0 : `all ${t.value.line.transitionDurationMs}ms ease-in-out` })
|
|
3428
3470
|
}, null, 12, Ni)) : g("", !0),
|
|
3429
|
-
(n(!0), u(b, null,
|
|
3471
|
+
(n(!0), u(b, null, L(e.plots, (a, r) => (n(), u(b, {
|
|
3430
3472
|
key: `circle_line_${i}_${r}`
|
|
3431
3473
|
}, [
|
|
3432
|
-
!
|
|
3474
|
+
!Ua.value.linePlot && a && Ye(a.value) || Ua.value.linePlot && a && Ye(a.value) && (M.value !== null && M.value === r || X.value !== null && X.value === r) || Ja(e.plots, r) ? (n(), ct(ga, {
|
|
3433
3475
|
key: 0,
|
|
3434
3476
|
shape: ["triangle", "square", "diamond", "pentagon", "hexagon", "star"].includes(e.shape) ? e.shape : "circle",
|
|
3435
3477
|
color: t.value.line.useGradient ? `url(#lineGradient_${i}_${Z.value})` : t.value.line.dot.useSerieColor ? e.color : t.value.line.dot.fill,
|
|
3436
3478
|
plot: { x: h(q)(a.x), y: h(q)(a.y) },
|
|
3437
|
-
radius:
|
|
3479
|
+
radius: M.value !== null && M.value === r || X.value !== null && X.value === r ? (De.value.line || 6) * 1.5 : (Ja(e.plots, r), De.value.line || 6),
|
|
3438
3480
|
stroke: t.value.line.dot.useSerieColor ? t.value.chart.backgroundColor : e.color,
|
|
3439
3481
|
strokeWidth: t.value.line.dot.strokeWidth,
|
|
3440
|
-
transition: h(xe) || !t.value.line.showTransition ||
|
|
3482
|
+
transition: h(xe) || !t.value.line.showTransition || M.value !== null && M.value === r || X.value !== null && X.value === r ? void 0 : `all ${t.value.line.transitionDurationMs}ms ease-in-out`
|
|
3441
3483
|
}, null, 8, ["shape", "color", "plot", "radius", "stroke", "strokeWidth", "transition"])) : g("", !0),
|
|
3442
3484
|
a.comment && t.value.chart.comments.show ? (n(), u("foreignObject", {
|
|
3443
3485
|
key: 1,
|
|
@@ -3486,7 +3528,7 @@ const _n = {
|
|
|
3486
3528
|
"text-anchor": "middle",
|
|
3487
3529
|
x: h(ie)(e.plots).x2,
|
|
3488
3530
|
y: h(ie)(e.plots).y2 - 6,
|
|
3489
|
-
"font-size":
|
|
3531
|
+
"font-size": A.value.plotLabels,
|
|
3490
3532
|
fill: e.color
|
|
3491
3533
|
}, re(h(lt)({
|
|
3492
3534
|
v: h(ie)(e.plots).trend * 100,
|
|
@@ -3496,20 +3538,20 @@ const _n = {
|
|
|
3496
3538
|
])) : g("", !0)
|
|
3497
3539
|
], 6))), 128)),
|
|
3498
3540
|
(t.value.bar.labels.show || t.value.bar.serieName.show) && p.value.dataLabels.show ? (n(), u("g", Hi, [
|
|
3499
|
-
(n(!0), u(b, null,
|
|
3541
|
+
(n(!0), u(b, null, L(It.value, (e, i) => (n(), u(b, {
|
|
3500
3542
|
key: `xLabel_bar_${e.id}`
|
|
3501
3543
|
}, [
|
|
3502
|
-
(n(!0), u(b, null,
|
|
3544
|
+
(n(!0), u(b, null, L(e.plots, (a, r) => (n(), u(b, {
|
|
3503
3545
|
key: `xLabel_bar_${i}_${r}`
|
|
3504
3546
|
}, [
|
|
3505
|
-
a && (!Object.hasOwn(e, "dataLabels") || e.dataLabels === !0 ||
|
|
3547
|
+
a && (!Object.hasOwn(e, "dataLabels") || e.dataLabels === !0 || M.value !== null && M.value === r || X.value !== null && X.value === r) && t.value.bar.labels.show ? (n(), u("text", {
|
|
3506
3548
|
key: 0,
|
|
3507
|
-
x: p.value.useIndividualScale && p.value.isStacked ? a.x +
|
|
3549
|
+
x: p.value.useIndividualScale && p.value.isStacked ? a.x + de.value.line / 2 : ua(a) + Sl() / 2 - sa.value / 2,
|
|
3508
3550
|
y: h(q)(a.y) + (a.value >= 0 ? t.value.bar.labels.offsetY : -t.value.bar.labels.offsetY * 3),
|
|
3509
3551
|
"text-anchor": "middle",
|
|
3510
|
-
"font-size":
|
|
3552
|
+
"font-size": A.value.plotLabels,
|
|
3511
3553
|
fill: t.value.bar.labels.color,
|
|
3512
|
-
style:
|
|
3554
|
+
style: C(`opacity:${E.value ? E.value === e.groupId ? 1 : 0.2 : 1};transition:opacity 0.2s ease-in-out`)
|
|
3513
3555
|
}, re(Ye(a.value) ? h(ze)(
|
|
3514
3556
|
t.value.bar.labels.formatter,
|
|
3515
3557
|
a.value,
|
|
@@ -3526,13 +3568,13 @@ const _n = {
|
|
|
3526
3568
|
) : ""), 13, Di)) : g("", !0),
|
|
3527
3569
|
a && t.value.bar.serieName.show ? (n(), u("text", {
|
|
3528
3570
|
key: 1,
|
|
3529
|
-
x: p.value.useIndividualScale && p.value.isStacked ? a.x +
|
|
3571
|
+
x: p.value.useIndividualScale && p.value.isStacked ? a.x + de.value.line / 2 : a.x + Sl() * 1.1,
|
|
3530
3572
|
y: a.y + (a.value > 0 ? t.value.bar.serieName.offsetY : -t.value.bar.serieName.offsetY * 3),
|
|
3531
3573
|
"text-anchor": "middle",
|
|
3532
|
-
"font-size":
|
|
3574
|
+
"font-size": A.value.plotLabels,
|
|
3533
3575
|
fill: t.value.bar.serieName.useSerieColor ? e.color : t.value.bar.serieName.color,
|
|
3534
3576
|
"font-weight": t.value.bar.serieName.bold ? "bold" : "normal",
|
|
3535
|
-
style:
|
|
3577
|
+
style: C(`opacity:${E.value ? E.value === e.groupId ? 1 : 0.2 : 1};transition:opacity 0.2s ease-in-out`)
|
|
3536
3578
|
}, re(t.value.bar.serieName.useAbbreviation ? h(un)({
|
|
3537
3579
|
source: e.name,
|
|
3538
3580
|
length: t.value.bar.serieName.abbreviationSize
|
|
@@ -3541,20 +3583,20 @@ const _n = {
|
|
|
3541
3583
|
], 64))), 128))
|
|
3542
3584
|
])) : g("", !0),
|
|
3543
3585
|
t.value.plot.labels.show && p.value.dataLabels.show ? (n(), u("g", Xi, [
|
|
3544
|
-
(n(!0), u(b, null,
|
|
3586
|
+
(n(!0), u(b, null, L(rt.value, (e, i) => (n(), u(b, {
|
|
3545
3587
|
key: `xLabel_plot_${e.id}`
|
|
3546
3588
|
}, [
|
|
3547
|
-
(n(!0), u(b, null,
|
|
3589
|
+
(n(!0), u(b, null, L(e.plots, (a, r) => (n(), u(b, {
|
|
3548
3590
|
key: `xLabel_plot_${i}_${r}`
|
|
3549
3591
|
}, [
|
|
3550
|
-
a && !Object.hasOwn(e, "dataLabels") || e.dataLabels === !0 ||
|
|
3592
|
+
a && !Object.hasOwn(e, "dataLabels") || e.dataLabels === !0 || M.value !== null && M.value === r || X.value !== null && X.value === r ? (n(), u("text", {
|
|
3551
3593
|
key: 0,
|
|
3552
3594
|
x: a.x,
|
|
3553
3595
|
y: a.y + t.value.plot.labels.offsetY,
|
|
3554
3596
|
"text-anchor": "middle",
|
|
3555
|
-
"font-size":
|
|
3597
|
+
"font-size": A.value.plotLabels,
|
|
3556
3598
|
fill: t.value.plot.labels.color,
|
|
3557
|
-
style:
|
|
3599
|
+
style: C(`opacity:${E.value ? E.value === e.groupId ? 1 : 0.2 : 1};transition:opacity 0.2s ease-in-out`)
|
|
3558
3600
|
}, re(Ye(a.value) ? h(ze)(
|
|
3559
3601
|
t.value.plot.labels.formatter,
|
|
3560
3602
|
a.value,
|
|
@@ -3572,14 +3614,14 @@ const _n = {
|
|
|
3572
3614
|
], 64))), 128))
|
|
3573
3615
|
], 64))), 128))
|
|
3574
3616
|
])) : (n(), u("g", Gi, [
|
|
3575
|
-
(n(!0), u(b, null,
|
|
3617
|
+
(n(!0), u(b, null, L(rt.value, (e, i) => (n(), u(b, {
|
|
3576
3618
|
key: `xLabel_plot_${e.id}`
|
|
3577
3619
|
}, [
|
|
3578
|
-
(n(!0), u(b, null,
|
|
3620
|
+
(n(!0), u(b, null, L(e.plots, (a, r) => (n(), u(b, {
|
|
3579
3621
|
key: `xLabel_plot_${i}_${r}`
|
|
3580
3622
|
}, [
|
|
3581
3623
|
t.value.plot.tag.followValue ? (n(), u(b, { key: 1 }, [
|
|
3582
|
-
[
|
|
3624
|
+
[X.value, M.value, ae.value].includes(r) && e.useTag ? (n(), u("line", {
|
|
3583
3625
|
key: 0,
|
|
3584
3626
|
class: "vue-ui-xy-tag-plot",
|
|
3585
3627
|
x1: c.value.left,
|
|
@@ -3598,10 +3640,10 @@ const _n = {
|
|
|
3598
3640
|
y: a.y - 20,
|
|
3599
3641
|
height: 24,
|
|
3600
3642
|
width: "150",
|
|
3601
|
-
style:
|
|
3643
|
+
style: C(`overflow: visible; opacity:${E.value ? E.value === e.groupId ? 1 : 0.2 : 1};transition:opacity 0.2s ease-in-out`)
|
|
3602
3644
|
}, [
|
|
3603
3645
|
k("div", {
|
|
3604
|
-
style:
|
|
3646
|
+
style: C(`padding: 3px; background:${h(vt)(e.color, 80)};color:${h(dt)(e.color)};width:fit-content;font-size:${A.value.plotLabels}px;border-radius: 2px;`),
|
|
3605
3647
|
innerHTML: h(ze)(
|
|
3606
3648
|
t.value.plot.tag.formatter,
|
|
3607
3649
|
a.value,
|
|
@@ -3616,14 +3658,14 @@ const _n = {
|
|
|
3616
3658
|
], 12, Ui)) : g("", !0),
|
|
3617
3659
|
a && r === e.plots.length - 1 && e.useTag && e.useTag === "end" ? (n(), u("foreignObject", {
|
|
3618
3660
|
key: 1,
|
|
3619
|
-
x: a.x - e.name.length * (
|
|
3661
|
+
x: a.x - e.name.length * (A.value.plotLabels / 2),
|
|
3620
3662
|
y: a.y - 20,
|
|
3621
3663
|
height: 24,
|
|
3622
3664
|
width: "150",
|
|
3623
|
-
style:
|
|
3665
|
+
style: C(`overflow: visible; opacity:${E.value ? E.value === e.groupId ? 1 : 0.2 : 1};transition:opacity 0.2s ease-in-out`)
|
|
3624
3666
|
}, [
|
|
3625
3667
|
k("div", {
|
|
3626
|
-
style:
|
|
3668
|
+
style: C(`padding: 3px; background:${h(vt)(e.color, 80)};color:${h(dt)(e.color)};width:fit-content;font-size:${A.value.plotLabels}px;border-radius: 2px;`),
|
|
3627
3669
|
innerHTML: h(ze)(
|
|
3628
3670
|
t.value.plot.tag.formatter,
|
|
3629
3671
|
a.value,
|
|
@@ -3641,20 +3683,20 @@ const _n = {
|
|
|
3641
3683
|
], 64))), 128))
|
|
3642
3684
|
])),
|
|
3643
3685
|
t.value.line.labels.show && p.value.dataLabels.show ? (n(), u("g", Qi, [
|
|
3644
|
-
(n(!0), u(b, null,
|
|
3686
|
+
(n(!0), u(b, null, L(Re.value, (e, i) => (n(), u(b, {
|
|
3645
3687
|
key: `xLabel_line_${e.id}`
|
|
3646
3688
|
}, [
|
|
3647
|
-
(n(!0), u(b, null,
|
|
3689
|
+
(n(!0), u(b, null, L(e.plots, (a, r) => (n(), u(b, {
|
|
3648
3690
|
key: `xLabel_line_${i}_${r}`
|
|
3649
3691
|
}, [
|
|
3650
|
-
a && !Object.hasOwn(e, "dataLabels") || e.dataLabels === !0 ||
|
|
3692
|
+
a && !Object.hasOwn(e, "dataLabels") || e.dataLabels === !0 || M.value !== null && M.value === r || X.value !== null && X.value === r ? (n(), u("text", {
|
|
3651
3693
|
key: 0,
|
|
3652
3694
|
x: a.x,
|
|
3653
3695
|
y: a.y + (a.value >= 0 ? t.value.line.labels.offsetY : -t.value.line.labels.offsetY * 3),
|
|
3654
3696
|
"text-anchor": "middle",
|
|
3655
|
-
"font-size":
|
|
3697
|
+
"font-size": A.value.plotLabels,
|
|
3656
3698
|
fill: t.value.line.labels.color,
|
|
3657
|
-
style:
|
|
3699
|
+
style: C(`opacity:${E.value ? E.value === e.groupId ? 1 : 0.2 : 1};transition:opacity 0.2s ease-in-out`)
|
|
3658
3700
|
}, re(Ye(a.value) ? h(ze)(
|
|
3659
3701
|
t.value.line.labels.formatter,
|
|
3660
3702
|
a.value,
|
|
@@ -3672,14 +3714,14 @@ const _n = {
|
|
|
3672
3714
|
], 64))), 128))
|
|
3673
3715
|
], 64))), 128))
|
|
3674
3716
|
])) : (n(), u("g", es, [
|
|
3675
|
-
(n(!0), u(b, null,
|
|
3717
|
+
(n(!0), u(b, null, L(Re.value, (e, i) => (n(), u(b, {
|
|
3676
3718
|
key: `xLabel_line_${e.id}`
|
|
3677
3719
|
}, [
|
|
3678
|
-
(n(!0), u(b, null,
|
|
3720
|
+
(n(!0), u(b, null, L(e.plots, (a, r) => (n(), u(b, {
|
|
3679
3721
|
key: `xLabel_line_${i}_${r}`
|
|
3680
3722
|
}, [
|
|
3681
3723
|
t.value.line.tag.followValue ? (n(), u(b, { key: 1 }, [
|
|
3682
|
-
[
|
|
3724
|
+
[X.value, M.value, ae.value].includes(r) && e.useTag ? (n(), u("line", {
|
|
3683
3725
|
key: 0,
|
|
3684
3726
|
class: "vue-ui-xy-tag-line",
|
|
3685
3727
|
x1: c.value.left,
|
|
@@ -3698,10 +3740,10 @@ const _n = {
|
|
|
3698
3740
|
y: a.y - 20,
|
|
3699
3741
|
height: 24,
|
|
3700
3742
|
width: "150",
|
|
3701
|
-
style:
|
|
3743
|
+
style: C(`overflow: visible; opacity:${E.value ? E.value === e.groupId ? 1 : 0.2 : 1};transition:opacity 0.2s ease-in-out`)
|
|
3702
3744
|
}, [
|
|
3703
3745
|
k("div", {
|
|
3704
|
-
style:
|
|
3746
|
+
style: C(`padding: 3px; background:${h(vt)(e.color, 80)};color:${h(dt)(e.color)};width:fit-content;font-size:${A.value.plotLabels}px;border-radius: 2px;`),
|
|
3705
3747
|
innerHTML: h(ze)(
|
|
3706
3748
|
t.value.line.tag.formatter,
|
|
3707
3749
|
a.value,
|
|
@@ -3720,10 +3762,10 @@ const _n = {
|
|
|
3720
3762
|
y: a.y - 20,
|
|
3721
3763
|
height: 24,
|
|
3722
3764
|
width: "150",
|
|
3723
|
-
style:
|
|
3765
|
+
style: C(`overflow: visible; opacity:${E.value ? E.value === e.groupId ? 1 : 0.2 : 1};transition:opacity 0.2s ease-in-out`)
|
|
3724
3766
|
}, [
|
|
3725
3767
|
k("div", {
|
|
3726
|
-
style:
|
|
3768
|
+
style: C(`padding: 3px; background:${h(vt)(e.color, 80)};color:${h(dt)(e.color)};width:fit-content;font-size:${A.value.plotLabels}px;border-radius: 2px;`),
|
|
3727
3769
|
innerHTML: h(ze)(
|
|
3728
3770
|
t.value.line.tag.formatter,
|
|
3729
3771
|
a.value,
|
|
@@ -3740,93 +3782,93 @@ const _n = {
|
|
|
3740
3782
|
], 64))), 128))
|
|
3741
3783
|
], 64))), 128))
|
|
3742
3784
|
])),
|
|
3743
|
-
(n(!0), u(b, null,
|
|
3785
|
+
(n(!0), u(b, null, L(Re.value, (e, i) => (n(), u(b, {
|
|
3744
3786
|
key: `xLabel_line_${e.id}`
|
|
3745
3787
|
}, [
|
|
3746
|
-
(n(!0), u(b, null,
|
|
3788
|
+
(n(!0), u(b, null, L(e.plots, (a, r) => (n(), u(b, {
|
|
3747
3789
|
key: `xLabel_line_${i}_${r}`
|
|
3748
3790
|
}, [
|
|
3749
3791
|
a && r === 0 && e.showSerieName && e.showSerieName === "start" ? (n(), u("text", {
|
|
3750
3792
|
key: 0,
|
|
3751
|
-
x: a.x -
|
|
3793
|
+
x: a.x - A.value.plotLabels,
|
|
3752
3794
|
y: a.y,
|
|
3753
|
-
"font-size":
|
|
3795
|
+
"font-size": A.value.plotLabels,
|
|
3754
3796
|
"text-anchor": "end",
|
|
3755
3797
|
fill: e.color,
|
|
3756
|
-
innerHTML: h(
|
|
3798
|
+
innerHTML: h(ma)({
|
|
3757
3799
|
content: e.name,
|
|
3758
|
-
fontSize:
|
|
3800
|
+
fontSize: A.value.plotLabels,
|
|
3759
3801
|
fill: e.color,
|
|
3760
|
-
x: a.x -
|
|
3802
|
+
x: a.x - A.value.plotLabels,
|
|
3761
3803
|
y: a.y,
|
|
3762
3804
|
maxWords: 2
|
|
3763
3805
|
}),
|
|
3764
|
-
style:
|
|
3806
|
+
style: C(`opacity:${E.value ? E.value === e.groupId ? 1 : 0.2 : 1};transition:opacity 0.2s ease-in-out`)
|
|
3765
3807
|
}, null, 12, us)) : g("", !0),
|
|
3766
3808
|
a && r === e.plots.length - 1 && e.showSerieName && e.showSerieName === "end" ? (n(), u("text", {
|
|
3767
3809
|
key: 1,
|
|
3768
|
-
x: a.x +
|
|
3810
|
+
x: a.x + A.value.plotLabels,
|
|
3769
3811
|
y: a.y,
|
|
3770
|
-
"font-size":
|
|
3812
|
+
"font-size": A.value.plotLabels,
|
|
3771
3813
|
"text-anchor": "start",
|
|
3772
3814
|
fill: e.color,
|
|
3773
|
-
innerHTML: h(
|
|
3815
|
+
innerHTML: h(ma)({
|
|
3774
3816
|
content: e.name,
|
|
3775
|
-
fontSize:
|
|
3817
|
+
fontSize: A.value.plotLabels,
|
|
3776
3818
|
fill: e.color,
|
|
3777
|
-
x: a.x +
|
|
3819
|
+
x: a.x + A.value.plotLabels,
|
|
3778
3820
|
y: a.y,
|
|
3779
3821
|
maxWords: 2
|
|
3780
3822
|
}),
|
|
3781
|
-
style:
|
|
3823
|
+
style: C(`opacity:${E.value ? E.value === e.groupId ? 1 : 0.2 : 1};transition:opacity 0.2s ease-in-out`)
|
|
3782
3824
|
}, null, 12, is)) : g("", !0)
|
|
3783
3825
|
], 64))), 128))
|
|
3784
3826
|
], 64))), 128)),
|
|
3785
|
-
(n(!0), u(b, null,
|
|
3827
|
+
(n(!0), u(b, null, L(rt.value, (e, i) => (n(), u(b, {
|
|
3786
3828
|
key: `xLabel_plot_${e.id}`
|
|
3787
3829
|
}, [
|
|
3788
|
-
(n(!0), u(b, null,
|
|
3830
|
+
(n(!0), u(b, null, L(e.plots, (a, r) => (n(), u(b, {
|
|
3789
3831
|
key: `xLabel_plot_${i}_${r}`
|
|
3790
3832
|
}, [
|
|
3791
3833
|
a && r === 0 && e.showSerieName && e.showSerieName === "start" ? (n(), u("text", {
|
|
3792
3834
|
key: 0,
|
|
3793
|
-
x: a.x -
|
|
3835
|
+
x: a.x - A.value.plotLabels,
|
|
3794
3836
|
y: a.y,
|
|
3795
|
-
"font-size":
|
|
3837
|
+
"font-size": A.value.plotLabels,
|
|
3796
3838
|
"text-anchor": "end",
|
|
3797
3839
|
fill: e.color,
|
|
3798
|
-
innerHTML: h(
|
|
3840
|
+
innerHTML: h(ma)({
|
|
3799
3841
|
content: e.name,
|
|
3800
|
-
fontSize:
|
|
3842
|
+
fontSize: A.value.plotLabels,
|
|
3801
3843
|
fill: e.color,
|
|
3802
|
-
x: a.x -
|
|
3844
|
+
x: a.x - A.value.plotLabels,
|
|
3803
3845
|
y: a.y,
|
|
3804
3846
|
maxWords: 2
|
|
3805
3847
|
}),
|
|
3806
|
-
style:
|
|
3848
|
+
style: C(`opacity:${E.value ? E.value === e.groupId ? 1 : 0.2 : 1};transition:opacity 0.2s ease-in-out`)
|
|
3807
3849
|
}, null, 12, ss)) : g("", !0),
|
|
3808
3850
|
a && r === e.plots.length - 1 && e.showSerieName && e.showSerieName === "end" ? (n(), u("text", {
|
|
3809
3851
|
key: 1,
|
|
3810
|
-
x: a.x +
|
|
3852
|
+
x: a.x + A.value.plotLabels,
|
|
3811
3853
|
y: a.y,
|
|
3812
|
-
"font-size":
|
|
3854
|
+
"font-size": A.value.plotLabels,
|
|
3813
3855
|
"text-anchor": "start",
|
|
3814
3856
|
fill: e.color,
|
|
3815
|
-
innerHTML: h(
|
|
3857
|
+
innerHTML: h(ma)({
|
|
3816
3858
|
content: e.name,
|
|
3817
|
-
fontSize:
|
|
3859
|
+
fontSize: A.value.plotLabels,
|
|
3818
3860
|
fill: e.color,
|
|
3819
|
-
x: a.x +
|
|
3861
|
+
x: a.x + A.value.plotLabels,
|
|
3820
3862
|
y: a.y,
|
|
3821
3863
|
maxWords: 2
|
|
3822
3864
|
}),
|
|
3823
|
-
style:
|
|
3865
|
+
style: C(`opacity:${E.value ? E.value === e.groupId ? 1 : 0.2 : 1};transition:opacity 0.2s ease-in-out`)
|
|
3824
3866
|
}, null, 12, rs)) : g("", !0)
|
|
3825
3867
|
], 64))), 128))
|
|
3826
3868
|
], 64))), 128)),
|
|
3827
3869
|
p.value.useIndividualScale && !p.value.isStacked ? (n(), u(b, { key: 13 }, [
|
|
3828
3870
|
k("defs", null, [
|
|
3829
|
-
(n(!0), u(b, null,
|
|
3871
|
+
(n(!0), u(b, null, L(Gl.value, (e, i) => (n(), u("linearGradient", {
|
|
3830
3872
|
id: `individual_scale_gradient_${Z.value}_${i}`,
|
|
3831
3873
|
x1: "0%",
|
|
3832
3874
|
x2: "100%",
|
|
@@ -3845,22 +3887,22 @@ const _n = {
|
|
|
3845
3887
|
}, null, 8, ds)
|
|
3846
3888
|
], 8, cs))), 256))
|
|
3847
3889
|
]),
|
|
3848
|
-
(n(!0), u(b, null,
|
|
3890
|
+
(n(!0), u(b, null, L(Gl.value, (e, i) => (n(), u("rect", {
|
|
3849
3891
|
x: e.x - t.value.chart.grid.labels.yAxis.labelWidth + ue.value - c.value.individualOffsetX,
|
|
3850
3892
|
y: c.value.top,
|
|
3851
3893
|
width: t.value.chart.grid.labels.yAxis.labelWidth + c.value.individualOffsetX,
|
|
3852
3894
|
height: c.value.height < 0 ? 10 : c.value.height,
|
|
3853
|
-
fill:
|
|
3854
|
-
onMouseenter: (a) =>
|
|
3855
|
-
onMouseleave: s[0] || (s[0] = (a) =>
|
|
3895
|
+
fill: E.value === e.groupId ? `url(#individual_scale_gradient_${Z.value}_${i})` : "transparent",
|
|
3896
|
+
onMouseenter: (a) => E.value = e.groupId,
|
|
3897
|
+
onMouseleave: s[0] || (s[0] = (a) => E.value = null)
|
|
3856
3898
|
}, null, 40, hs))), 256))
|
|
3857
3899
|
], 64)) : g("", !0),
|
|
3858
3900
|
k("g", null, [
|
|
3859
3901
|
t.value.chart.grid.labels.axis.yLabel && !p.value.useIndividualScale ? (n(), u("text", {
|
|
3860
3902
|
key: 0,
|
|
3861
3903
|
ref_key: "yAxisLabel",
|
|
3862
|
-
ref:
|
|
3863
|
-
"font-size":
|
|
3904
|
+
ref: Kt,
|
|
3905
|
+
"font-size": A.value.yAxis,
|
|
3864
3906
|
fill: t.value.chart.grid.labels.color,
|
|
3865
3907
|
transform: `translate(${t.value.chart.grid.labels.axis.fontSize}, ${c.value.top + c.value.height / 2}) rotate(-90)`,
|
|
3866
3908
|
"text-anchor": "middle",
|
|
@@ -3869,11 +3911,11 @@ const _n = {
|
|
|
3869
3911
|
t.value.chart.grid.labels.axis.xLabel ? (n(), u("text", {
|
|
3870
3912
|
key: 1,
|
|
3871
3913
|
ref_key: "xAxisLabel",
|
|
3872
|
-
ref:
|
|
3914
|
+
ref: Zt,
|
|
3873
3915
|
"text-anchor": "middle",
|
|
3874
3916
|
x: le.value / 2,
|
|
3875
|
-
y:
|
|
3876
|
-
"font-size":
|
|
3917
|
+
y: W.value - 3,
|
|
3918
|
+
"font-size": A.value.yAxis,
|
|
3877
3919
|
fill: t.value.chart.grid.labels.color
|
|
3878
3920
|
}, re(t.value.chart.grid.labels.axis.xLabel), 9, ms)) : g("", !0)
|
|
3879
3921
|
]),
|
|
@@ -3882,20 +3924,20 @@ const _n = {
|
|
|
3882
3924
|
ref_key: "timeLabelsEls",
|
|
3883
3925
|
ref: Se
|
|
3884
3926
|
}, [
|
|
3885
|
-
l.$slots["time-label"] ? (n(!0), u(b, { key: 0 },
|
|
3927
|
+
l.$slots["time-label"] ? (n(!0), u(b, { key: 0 }, L(D.value, (e, i) => te(l.$slots, "time-label", Gt({
|
|
3886
3928
|
key: `time_label_${e.id}`,
|
|
3887
3929
|
ref_for: !0
|
|
3888
3930
|
}, {
|
|
3889
|
-
x: c.value.left + c.value.width /
|
|
3931
|
+
x: c.value.left + c.value.width / S.value * i + c.value.width / S.value / 2,
|
|
3890
3932
|
y: c.value.bottom,
|
|
3891
|
-
fontSize:
|
|
3933
|
+
fontSize: A.value.xAxis,
|
|
3892
3934
|
fill: t.value.chart.grid.labels.xAxisLabels.color,
|
|
3893
|
-
transform: `translate(${c.value.left + c.value.width /
|
|
3935
|
+
transform: `translate(${c.value.left + c.value.width / S.value * i + c.value.width / S.value / 2}, ${c.value.bottom + A.value.xAxis * 1.3 + t.value.chart.grid.labels.xAxisLabels.yOffset}), rotate(${t.value.chart.grid.labels.xAxisLabels.rotation})`,
|
|
3894
3936
|
absoluteIndex: e.absoluteIndex,
|
|
3895
3937
|
content: e.text,
|
|
3896
3938
|
textAnchor: t.value.chart.grid.labels.xAxisLabels.rotation > 0 ? "start" : t.value.chart.grid.labels.xAxisLabels.rotation < 0 ? "end" : "middle",
|
|
3897
3939
|
show: e && e.text
|
|
3898
|
-
}), void 0, !0)), 128)) : (n(!0), u(b, { key: 1 },
|
|
3940
|
+
}), void 0, !0)), 128)) : (n(!0), u(b, { key: 1 }, L(D.value, (e, i) => (n(), u("g", {
|
|
3899
3941
|
key: `time_label_${i}`
|
|
3900
3942
|
}, [
|
|
3901
3943
|
e && e.text ? (n(), u(b, { key: 0 }, [
|
|
@@ -3904,15 +3946,15 @@ const _n = {
|
|
|
3904
3946
|
key: 1,
|
|
3905
3947
|
class: "vue-data-ui-time-label",
|
|
3906
3948
|
"text-anchor": t.value.chart.grid.labels.xAxisLabels.rotation > 0 ? "start" : t.value.chart.grid.labels.xAxisLabels.rotation < 0 ? "end" : "middle",
|
|
3907
|
-
"font-size":
|
|
3949
|
+
"font-size": A.value.xAxis,
|
|
3908
3950
|
fill: t.value.chart.grid.labels.xAxisLabels.color,
|
|
3909
|
-
transform: `translate(${c.value.left + c.value.width /
|
|
3910
|
-
style:
|
|
3951
|
+
transform: `translate(${c.value.left + c.value.width / S.value * i + c.value.width / S.value / 2}, ${c.value.bottom + A.value.xAxis * 1.5}), rotate(${t.value.chart.grid.labels.xAxisLabels.rotation})`,
|
|
3952
|
+
style: C({
|
|
3911
3953
|
cursor: kl() ? "pointer" : "default"
|
|
3912
3954
|
}),
|
|
3913
3955
|
innerHTML: h(sn)({
|
|
3914
3956
|
content: String(e.text),
|
|
3915
|
-
fontSize:
|
|
3957
|
+
fontSize: A.value.xAxis,
|
|
3916
3958
|
fill: t.value.chart.grid.labels.xAxisLabels.color,
|
|
3917
3959
|
x: 0,
|
|
3918
3960
|
y: 0
|
|
@@ -3922,10 +3964,10 @@ const _n = {
|
|
|
3922
3964
|
key: 0,
|
|
3923
3965
|
class: "vue-data-ui-time-label",
|
|
3924
3966
|
"text-anchor": t.value.chart.grid.labels.xAxisLabels.rotation > 0 ? "start" : t.value.chart.grid.labels.xAxisLabels.rotation < 0 ? "end" : "middle",
|
|
3925
|
-
"font-size":
|
|
3967
|
+
"font-size": A.value.xAxis,
|
|
3926
3968
|
fill: t.value.chart.grid.labels.xAxisLabels.color,
|
|
3927
|
-
transform: `translate(${c.value.left + c.value.width /
|
|
3928
|
-
style:
|
|
3969
|
+
transform: `translate(${c.value.left + c.value.width / S.value * i + c.value.width / S.value / 2}, ${c.value.bottom + A.value.xAxis * 1.5}), rotate(${t.value.chart.grid.labels.xAxisLabels.rotation})`,
|
|
3970
|
+
style: C({
|
|
3929
3971
|
cursor: kl() ? "pointer" : "default"
|
|
3930
3972
|
}),
|
|
3931
3973
|
onClick: () => ke(e, i)
|
|
@@ -3933,8 +3975,8 @@ const _n = {
|
|
|
3933
3975
|
], 64)) : g("", !0)
|
|
3934
3976
|
]))), 128))
|
|
3935
3977
|
], 512)) : g("", !0),
|
|
3936
|
-
|
|
3937
|
-
(n(!0), u(b, null,
|
|
3978
|
+
Ka.value.length && !p.value.isStacked ? (n(), u("g", bs, [
|
|
3979
|
+
(n(!0), u(b, null, L(Ka.value, (e) => (n(), u("g", {
|
|
3938
3980
|
key: e.uid
|
|
3939
3981
|
}, [
|
|
3940
3982
|
e.yTop && e.show && isFinite(e.yTop) ? (n(), u("line", {
|
|
@@ -3970,7 +4012,7 @@ const _n = {
|
|
|
3970
4012
|
fill: h(vt)(e.config.area.fill, e.config.area.opacity),
|
|
3971
4013
|
style: { animation: "none !important" }
|
|
3972
4014
|
}, null, 8, ks)) : g("", !0),
|
|
3973
|
-
e.config.label.text && e.show && isFinite(e._box.y) ? (n(), u("rect",
|
|
4015
|
+
e.config.label.text && e.show && isFinite(e._box.y) ? (n(), u("rect", Gt({
|
|
3974
4016
|
key: 3,
|
|
3975
4017
|
class: "vue-ui-xy-annotation-label-box"
|
|
3976
4018
|
}, { ref_for: !0 }, e._box, { style: { animation: "none !important", transition: "none !important" } }), null, 16)) : g("", !0),
|
|
@@ -3986,7 +4028,7 @@ const _n = {
|
|
|
3986
4028
|
}, re(e.config.label.text), 9, ws)) : g("", !0)
|
|
3987
4029
|
]))), 128))
|
|
3988
4030
|
])) : g("", !0),
|
|
3989
|
-
t.value.chart.timeTag.show && (![null, void 0].includes(
|
|
4031
|
+
t.value.chart.timeTag.show && (![null, void 0].includes(M.value) || ![null, void 0].includes(X.value)) ? (n(), u("g", Ss, [
|
|
3990
4032
|
(n(), u("foreignObject", {
|
|
3991
4033
|
x: Do(),
|
|
3992
4034
|
y: c.value.bottom,
|
|
@@ -3996,21 +4038,21 @@ const _n = {
|
|
|
3996
4038
|
}, [
|
|
3997
4039
|
k("div", {
|
|
3998
4040
|
ref_key: "timeTagEl",
|
|
3999
|
-
ref:
|
|
4041
|
+
ref: so,
|
|
4000
4042
|
class: "vue-ui-xy-time-tag",
|
|
4001
|
-
style:
|
|
4043
|
+
style: C(`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
4044
|
innerHTML: Wo.value
|
|
4003
4045
|
}, null, 12, _s)
|
|
4004
4046
|
], 8, $s)),
|
|
4005
4047
|
k("circle", {
|
|
4006
|
-
cx: c.value.left + c.value.width /
|
|
4048
|
+
cx: c.value.left + c.value.width / S.value * ((M.value !== null ? M.value : 0) || (X.value !== null ? X.value : 0)) + c.value.width / S.value / 2,
|
|
4007
4049
|
cy: c.value.bottom,
|
|
4008
4050
|
r: t.value.chart.timeTag.circleMarker.radius,
|
|
4009
4051
|
fill: t.value.chart.timeTag.circleMarker.color
|
|
4010
4052
|
}, null, 8, Ms)
|
|
4011
4053
|
])) : g("", !0)
|
|
4012
4054
|
])) : g("", !0),
|
|
4013
|
-
ta.value ? (n(), u("rect",
|
|
4055
|
+
ta.value ? (n(), u("rect", Gt({ key: 2 }, Ma.value, {
|
|
4014
4056
|
"data-start": w.value.start,
|
|
4015
4057
|
"data-end": w.value.end
|
|
4016
4058
|
}), null, 16, Ls)) : g("", !0),
|
|
@@ -4018,31 +4060,31 @@ const _n = {
|
|
|
4018
4060
|
], 512)
|
|
4019
4061
|
], 46, gu)),
|
|
4020
4062
|
l.$slots.watermark ? (n(), u("div", Cs, [
|
|
4021
|
-
te(l.$slots, "watermark",
|
|
4063
|
+
te(l.$slots, "watermark", Yt(dl({ isPrinting: h(Hl) || h(nt) })), void 0, !0)
|
|
4022
4064
|
])) : g("", !0),
|
|
4023
|
-
(n(!0), u(b, null,
|
|
4065
|
+
(n(!0), u(b, null, L(Re.value, (e, i) => (n(), u(b, {
|
|
4024
4066
|
key: `tag_line_${e.id}`
|
|
4025
4067
|
}, [
|
|
4026
|
-
(n(!0), u(b, null,
|
|
4068
|
+
(n(!0), u(b, null, L(e.plots, (a, r) => (n(), u(b, {
|
|
4027
4069
|
key: `tag_line_${i}_${r}`
|
|
4028
4070
|
}, [
|
|
4029
|
-
[
|
|
4071
|
+
[X.value, M.value, ae.value].includes(r) && e.useTag && e.useTag === "end" && t.value.line.tag.followValue ? (n(), u("div", {
|
|
4030
4072
|
key: 0,
|
|
4031
4073
|
ref_for: !0,
|
|
4032
4074
|
ref: (o) => kt(i, r, o, "right", "line"),
|
|
4033
4075
|
class: "vue-ui-xy-tag",
|
|
4034
4076
|
"data-tag": "right",
|
|
4035
|
-
style:
|
|
4077
|
+
style: C({
|
|
4036
4078
|
position: "fixed",
|
|
4037
|
-
top: h(
|
|
4038
|
-
svgElement:
|
|
4079
|
+
top: h(Xt)({
|
|
4080
|
+
svgElement: $e.value,
|
|
4039
4081
|
x: c.value.right + t.value.line.tag.fontSize / 1.5,
|
|
4040
4082
|
y: a.y,
|
|
4041
4083
|
element: ot.value[`${i}_${r}_right_line`],
|
|
4042
4084
|
position: "right"
|
|
4043
4085
|
}).top + "px",
|
|
4044
|
-
left: h(
|
|
4045
|
-
svgElement:
|
|
4086
|
+
left: h(Xt)({
|
|
4087
|
+
svgElement: $e.value,
|
|
4046
4088
|
x: c.value.right + t.value.line.tag.fontSize / 1.5,
|
|
4047
4089
|
y: a.y,
|
|
4048
4090
|
element: ot.value[`${i}_${r}_right_line`],
|
|
@@ -4078,23 +4120,23 @@ const _n = {
|
|
|
4078
4120
|
)
|
|
4079
4121
|
}, null, 8, Ts)
|
|
4080
4122
|
], 4)) : g("", !0),
|
|
4081
|
-
[
|
|
4123
|
+
[X.value, M.value, ae.value].includes(r) && e.useTag && e.useTag === "start" && t.value.line.tag.followValue ? (n(), u("div", {
|
|
4082
4124
|
key: 1,
|
|
4083
4125
|
ref_for: !0,
|
|
4084
4126
|
ref: (o) => kt(i, r, o, "left", "line"),
|
|
4085
4127
|
class: "vue-ui-xy-tag",
|
|
4086
4128
|
"data-tag": "left",
|
|
4087
|
-
style:
|
|
4129
|
+
style: C({
|
|
4088
4130
|
position: "fixed",
|
|
4089
|
-
top: h(
|
|
4090
|
-
svgElement:
|
|
4131
|
+
top: h(Xt)({
|
|
4132
|
+
svgElement: $e.value,
|
|
4091
4133
|
x: c.value.left - t.value.line.tag.fontSize / 1.5,
|
|
4092
4134
|
y: a.y,
|
|
4093
4135
|
element: ot.value[`${i}_${r}_left_line`],
|
|
4094
4136
|
position: "left"
|
|
4095
4137
|
}).top + "px",
|
|
4096
|
-
left: h(
|
|
4097
|
-
svgElement:
|
|
4138
|
+
left: h(Xt)({
|
|
4139
|
+
svgElement: $e.value,
|
|
4098
4140
|
x: c.value.left - t.value.line.tag.fontSize / 1.5,
|
|
4099
4141
|
y: a.y,
|
|
4100
4142
|
element: ot.value[`${i}_${r}_left_line`],
|
|
@@ -4132,29 +4174,29 @@ const _n = {
|
|
|
4132
4174
|
], 4)) : g("", !0)
|
|
4133
4175
|
], 64))), 128))
|
|
4134
4176
|
], 64))), 128)),
|
|
4135
|
-
(n(!0), u(b, null,
|
|
4177
|
+
(n(!0), u(b, null, L(rt.value, (e, i) => (n(), u(b, {
|
|
4136
4178
|
key: `tag_plot_${e.id}`
|
|
4137
4179
|
}, [
|
|
4138
|
-
(n(!0), u(b, null,
|
|
4180
|
+
(n(!0), u(b, null, L(e.plots, (a, r) => (n(), u(b, {
|
|
4139
4181
|
key: `tag_plot_${i}_${r}`
|
|
4140
4182
|
}, [
|
|
4141
|
-
[
|
|
4183
|
+
[X.value, M.value, ae.value].includes(r) && e.useTag && e.useTag === "end" && t.value.plot.tag.followValue ? (n(), u("div", {
|
|
4142
4184
|
key: 0,
|
|
4143
4185
|
ref_for: !0,
|
|
4144
4186
|
ref: (o) => kt(i, r, o, "right", "plot"),
|
|
4145
4187
|
class: "vue-ui-xy-tag",
|
|
4146
4188
|
"data-tag": "right",
|
|
4147
|
-
style:
|
|
4189
|
+
style: C({
|
|
4148
4190
|
position: "fixed",
|
|
4149
|
-
top: h(
|
|
4150
|
-
svgElement:
|
|
4191
|
+
top: h(Xt)({
|
|
4192
|
+
svgElement: $e.value,
|
|
4151
4193
|
x: c.value.right + t.value.plot.tag.fontSize / 1.5,
|
|
4152
4194
|
y: a.y,
|
|
4153
4195
|
element: ot.value[`${i}_${r}_right_plot`],
|
|
4154
4196
|
position: "right"
|
|
4155
4197
|
}).top + "px",
|
|
4156
|
-
left: h(
|
|
4157
|
-
svgElement:
|
|
4198
|
+
left: h(Xt)({
|
|
4199
|
+
svgElement: $e.value,
|
|
4158
4200
|
x: c.value.right + t.value.plot.tag.fontSize / 1.5,
|
|
4159
4201
|
y: a.y,
|
|
4160
4202
|
element: ot.value[`${i}_${r}_right_plot`],
|
|
@@ -4190,23 +4232,23 @@ const _n = {
|
|
|
4190
4232
|
)
|
|
4191
4233
|
}, null, 8, Os)
|
|
4192
4234
|
], 4)) : g("", !0),
|
|
4193
|
-
[
|
|
4235
|
+
[X.value, M.value, ae.value].includes(r) && e.useTag && e.useTag === "start" && t.value.plot.tag.followValue ? (n(), u("div", {
|
|
4194
4236
|
key: 1,
|
|
4195
4237
|
ref_for: !0,
|
|
4196
4238
|
ref: (o) => kt(i, r, o, "left", "plot"),
|
|
4197
4239
|
class: "vue-ui-xy-tag",
|
|
4198
4240
|
"data-tag": "left",
|
|
4199
|
-
style:
|
|
4241
|
+
style: C({
|
|
4200
4242
|
position: "fixed",
|
|
4201
|
-
top: h(
|
|
4202
|
-
svgElement:
|
|
4243
|
+
top: h(Xt)({
|
|
4244
|
+
svgElement: $e.value,
|
|
4203
4245
|
x: c.value.left - t.value.plot.tag.fontSize / 1.5,
|
|
4204
4246
|
y: a.y,
|
|
4205
4247
|
element: ot.value[`${i}_${r}_left_plot`],
|
|
4206
4248
|
position: "left"
|
|
4207
4249
|
}).top + "px",
|
|
4208
|
-
left: h(
|
|
4209
|
-
svgElement:
|
|
4250
|
+
left: h(Xt)({
|
|
4251
|
+
svgElement: $e.value,
|
|
4210
4252
|
x: c.value.left - t.value.plot.tag.fontSize / 1.5,
|
|
4211
4253
|
y: a.y,
|
|
4212
4254
|
element: ot.value[`${i}_${r}_left_plot`],
|
|
@@ -4244,7 +4286,7 @@ const _n = {
|
|
|
4244
4286
|
], 4)) : g("", !0)
|
|
4245
4287
|
], 64))), 128))
|
|
4246
4288
|
], 64))), 128)),
|
|
4247
|
-
t.value.chart.zoom.show && Qe.value > 6 &&
|
|
4289
|
+
t.value.chart.zoom.show && Qe.value > 6 && Mt.value && Me.value ? (n(), ct(hu, {
|
|
4248
4290
|
key: 5,
|
|
4249
4291
|
ref_key: "chartSlicer",
|
|
4250
4292
|
ref: Ke,
|
|
@@ -4256,8 +4298,8 @@ const _n = {
|
|
|
4256
4298
|
start: w.value.start,
|
|
4257
4299
|
end: w.value.end,
|
|
4258
4300
|
"onUpdate:start": na,
|
|
4259
|
-
"onUpdate:end":
|
|
4260
|
-
selectedSeries:
|
|
4301
|
+
"onUpdate:end": La,
|
|
4302
|
+
selectedSeries: Tt.value,
|
|
4261
4303
|
customFormat: t.value.chart.zoom.customFormat,
|
|
4262
4304
|
background: t.value.chart.zoom.color,
|
|
4263
4305
|
fontSize: t.value.chart.zoom.fontSize,
|
|
@@ -4276,11 +4318,11 @@ const _n = {
|
|
|
4276
4318
|
minimapSelectionRadius: t.value.chart.zoom.minimap.selectionRadius,
|
|
4277
4319
|
minimapLineColor: t.value.chart.zoom.minimap.lineColor,
|
|
4278
4320
|
minimapSelectedColorOpacity: t.value.chart.zoom.minimap.selectedColorOpacity,
|
|
4279
|
-
minimapSelectedIndex:
|
|
4321
|
+
minimapSelectedIndex: M.value,
|
|
4280
4322
|
minimapIndicatorColor: t.value.chart.zoom.minimap.indicatorColor,
|
|
4281
4323
|
verticalHandles: t.value.chart.zoom.minimap.verticalHandles,
|
|
4282
4324
|
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(
|
|
4325
|
+
refreshEndPoint: t.value.chart.zoom.endIndex !== null ? t.value.chart.zoom.endIndex + 1 : Math.max(...$.dataset.map((e) => yt(e.series).length)),
|
|
4284
4326
|
enableRangeHandles: t.value.chart.zoom.enableRangeHandles,
|
|
4285
4327
|
enableSelectionDrag: t.value.chart.zoom.enableSelectionDrag,
|
|
4286
4328
|
minimapCompact: t.value.chart.zoom.minimap.compact,
|
|
@@ -4290,7 +4332,7 @@ const _n = {
|
|
|
4290
4332
|
cutNullValues: t.value.line.cutNullValues,
|
|
4291
4333
|
focusOnDrag: t.value.chart.zoom.focusOnDrag,
|
|
4292
4334
|
focusRangeRatio: t.value.chart.zoom.focusRangeRatio,
|
|
4293
|
-
onReset:
|
|
4335
|
+
onReset: Ca,
|
|
4294
4336
|
onTrapMouse: wl,
|
|
4295
4337
|
onFutureStart: s[1] || (s[1] = (e) => El("start", e)),
|
|
4296
4338
|
onFutureEnd: s[2] || (s[2] = (e) => El("end", e)),
|
|
@@ -4298,32 +4340,32 @@ const _n = {
|
|
|
4298
4340
|
isPreview: ta.value
|
|
4299
4341
|
}, {
|
|
4300
4342
|
"reset-action": we(({ reset: e }) => [
|
|
4301
|
-
te(l.$slots, "reset-action",
|
|
4343
|
+
te(l.$slots, "reset-action", Yt(dl({ reset: e })), void 0, !0)
|
|
4302
4344
|
]),
|
|
4303
4345
|
_: 3
|
|
4304
4346
|
}, 8, ["immediate", "max", "valueStart", "valueEnd", "start", "end", "selectedSeries", "customFormat", "background", "fontSize", "useResetSlot", "labelLeft", "labelRight", "textColor", "usePreciseLabels", "preciseLabels", "inputColor", "selectColor", "borderColor", "minimap", "smoothMinimap", "minimapSelectedColor", "minimapSelectionRadius", "minimapLineColor", "minimapSelectedColorOpacity", "minimapSelectedIndex", "minimapIndicatorColor", "verticalHandles", "refreshStartPoint", "refreshEndPoint", "enableRangeHandles", "enableSelectionDrag", "minimapCompact", "allMinimaps", "minimapMerged", "minimapFrameColor", "cutNullValues", "focusOnDrag", "focusRangeRatio", "timeLabels", "isPreview"])) : g("", !0),
|
|
4305
4347
|
k("div", {
|
|
4306
4348
|
id: `legend-bottom-${Z.value}`
|
|
4307
4349
|
}, null, 8, Hs),
|
|
4308
|
-
|
|
4350
|
+
H.value ? (n(), ct(Zo, {
|
|
4309
4351
|
key: 6,
|
|
4310
4352
|
to: t.value.chart.legend.position === "top" ? `#legend-top-${Z.value}` : `#legend-bottom-${Z.value}`
|
|
4311
4353
|
}, [
|
|
4312
4354
|
t.value.chart.legend.show ? (n(), u("div", {
|
|
4313
4355
|
key: 0,
|
|
4314
4356
|
ref_key: "chartLegend",
|
|
4315
|
-
ref:
|
|
4357
|
+
ref: Ce,
|
|
4316
4358
|
class: "vue-ui-xy-legend",
|
|
4317
|
-
style:
|
|
4359
|
+
style: C({
|
|
4318
4360
|
fontSize: `var(--legend-font-size, ${t.value.chart.legend.fontSize ?? 14}px)`
|
|
4319
4361
|
})
|
|
4320
4362
|
}, [
|
|
4321
|
-
(n(!0), u(b, null,
|
|
4363
|
+
(n(!0), u(b, null, L(et.value, (e, i) => (n(), u("div", {
|
|
4322
4364
|
key: `div_legend_item_${i}`,
|
|
4323
|
-
onClick: (a) =>
|
|
4324
|
-
class: Ze({ "vue-ui-xy-legend-item-alone": et.value.length === 1, "vue-ui-xy-legend-item": !0, "vue-ui-xy-legend-item-segregated":
|
|
4365
|
+
onClick: (a) => Ga(e),
|
|
4366
|
+
class: Ze({ "vue-ui-xy-legend-item-alone": et.value.length === 1, "vue-ui-xy-legend-item": !0, "vue-ui-xy-legend-item-segregated": ve.value.includes(e.id) })
|
|
4325
4367
|
}, [
|
|
4326
|
-
|
|
4368
|
+
Qt.value[e.type] === "line" ? (n(), u("svg", Ws, [
|
|
4327
4369
|
k("rect", {
|
|
4328
4370
|
x: "0",
|
|
4329
4371
|
y: "7.5",
|
|
@@ -4334,7 +4376,7 @@ const _n = {
|
|
|
4334
4376
|
width: "20",
|
|
4335
4377
|
fill: e.color
|
|
4336
4378
|
}, null, 8, Xs),
|
|
4337
|
-
ml(
|
|
4379
|
+
ml(ga, {
|
|
4338
4380
|
plot: { x: 10, y: 9 },
|
|
4339
4381
|
radius: 4,
|
|
4340
4382
|
color: e.color,
|
|
@@ -4342,8 +4384,8 @@ const _n = {
|
|
|
4342
4384
|
stroke: t.value.chart.backgroundColor,
|
|
4343
4385
|
strokeWidth: 0.5
|
|
4344
4386
|
}, null, 8, ["color", "shape", "stroke"])
|
|
4345
|
-
])) :
|
|
4346
|
-
|
|
4387
|
+
])) : Qt.value[e.type] === "bar" ? (n(), u("svg", Ys, [
|
|
4388
|
+
Qt.value[e.type] === "bar" && l.$slots.pattern ? (n(), u("rect", {
|
|
4347
4389
|
key: 0,
|
|
4348
4390
|
x: "4",
|
|
4349
4391
|
y: "4",
|
|
@@ -4353,7 +4395,7 @@ const _n = {
|
|
|
4353
4395
|
stroke: "none",
|
|
4354
4396
|
fill: e.color
|
|
4355
4397
|
}, null, 8, Gs)) : g("", !0),
|
|
4356
|
-
|
|
4398
|
+
Qt.value[e.type] === "bar" ? (n(), u("rect", {
|
|
4357
4399
|
key: 1,
|
|
4358
4400
|
x: "4",
|
|
4359
4401
|
y: "4",
|
|
@@ -4364,7 +4406,7 @@ const _n = {
|
|
|
4364
4406
|
fill: l.$slots.pattern ? `url(#pattern_${Z.value}_${e.slotAbsoluteIndex})` : e.color
|
|
4365
4407
|
}, null, 8, Us)) : g("", !0)
|
|
4366
4408
|
])) : (n(), u("svg", qs, [
|
|
4367
|
-
ml(
|
|
4409
|
+
ml(ga, {
|
|
4368
4410
|
plot: { x: 6, y: 6 },
|
|
4369
4411
|
radius: 5,
|
|
4370
4412
|
color: e.color,
|
|
@@ -4372,13 +4414,13 @@ const _n = {
|
|
|
4372
4414
|
}, null, 8, ["color", "shape"])
|
|
4373
4415
|
])),
|
|
4374
4416
|
k("span", {
|
|
4375
|
-
style:
|
|
4417
|
+
style: C(`color:${t.value.chart.legend.color}`)
|
|
4376
4418
|
}, re(e.name), 5)
|
|
4377
4419
|
], 10, Ds))), 128))
|
|
4378
4420
|
], 4)) : (n(), u("div", {
|
|
4379
4421
|
key: 1,
|
|
4380
4422
|
ref_key: "chartLegend",
|
|
4381
|
-
ref:
|
|
4423
|
+
ref: Ce
|
|
4382
4424
|
}, [
|
|
4383
4425
|
te(l.$slots, "legend", { legend: et.value }, void 0, !0)
|
|
4384
4426
|
], 512))
|
|
@@ -4391,7 +4433,7 @@ const _n = {
|
|
|
4391
4433
|
}, [
|
|
4392
4434
|
te(l.$slots, "source", {}, void 0, !0)
|
|
4393
4435
|
], 512)) : g("", !0),
|
|
4394
|
-
ml(h(
|
|
4436
|
+
ml(h(ce), {
|
|
4395
4437
|
show: p.value.showTooltip && bl.value,
|
|
4396
4438
|
backgroundColor: t.value.chart.tooltip.backgroundColor,
|
|
4397
4439
|
color: t.value.chart.tooltip.color,
|
|
@@ -4412,21 +4454,21 @@ const _n = {
|
|
|
4412
4454
|
smoothSnapThreshold: t.value.chart.tooltip.smoothSnapThreshold
|
|
4413
4455
|
}, {
|
|
4414
4456
|
"tooltip-before": we(() => [
|
|
4415
|
-
te(l.$slots, "tooltip-before",
|
|
4457
|
+
te(l.$slots, "tooltip-before", Yt(dl({ ...ja.value })), void 0, !0)
|
|
4416
4458
|
]),
|
|
4417
4459
|
"tooltip-after": we(() => [
|
|
4418
|
-
te(l.$slots, "tooltip-after",
|
|
4460
|
+
te(l.$slots, "tooltip-after", Yt(dl({ ...ja.value })), void 0, !0)
|
|
4419
4461
|
]),
|
|
4420
4462
|
_: 3
|
|
4421
4463
|
}, 8, ["show", "backgroundColor", "color", "fontSize", "borderRadius", "borderColor", "borderWidth", "backgroundOpacity", "position", "offsetY", "parent", "content", "isFullscreen", "isCustom", "smooth", "backdropFilter", "smoothForce", "smoothSnapThreshold"]),
|
|
4422
|
-
|
|
4464
|
+
Mt.value && t.value.chart.userOptions.buttons.table ? (n(), ct(Ko(Ul.value.component), Gt({ key: 8 }, Ul.value.props, {
|
|
4423
4465
|
ref_key: "tableUnit",
|
|
4424
4466
|
ref: Je,
|
|
4425
|
-
onClose:
|
|
4426
|
-
}),
|
|
4467
|
+
onClose: vo
|
|
4468
|
+
}), xo({
|
|
4427
4469
|
content: we(() => [
|
|
4428
4470
|
k("div", {
|
|
4429
|
-
style:
|
|
4471
|
+
style: C(`${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"}`)
|
|
4430
4472
|
}, [
|
|
4431
4473
|
k("div", Zs, [
|
|
4432
4474
|
Oa(k("input", {
|
|
@@ -4439,7 +4481,7 @@ const _n = {
|
|
|
4439
4481
|
onClick: s[5] || (s[5] = (e) => He.value = !He.value),
|
|
4440
4482
|
style: { cursor: "pointer" }
|
|
4441
4483
|
}, [
|
|
4442
|
-
ml(h(
|
|
4484
|
+
ml(h(me), {
|
|
4443
4485
|
name: "chartLine",
|
|
4444
4486
|
size: 20,
|
|
4445
4487
|
stroke: t.value.chart.color
|
|
@@ -4450,21 +4492,21 @@ const _n = {
|
|
|
4450
4492
|
key: `sparkline_${gt.value}`,
|
|
4451
4493
|
dataset: Po.value,
|
|
4452
4494
|
config: Fo.value
|
|
4453
|
-
}, null, 8, ["dataset", "config"])) : (n(), ct(h(
|
|
4495
|
+
}, null, 8, ["dataset", "config"])) : (n(), ct(h(Le), {
|
|
4454
4496
|
key: `table_${Fl.value}`,
|
|
4455
|
-
colNames:
|
|
4456
|
-
head:
|
|
4457
|
-
body:
|
|
4458
|
-
config:
|
|
4497
|
+
colNames: da.value.colNames,
|
|
4498
|
+
head: da.value.head,
|
|
4499
|
+
body: da.value.body,
|
|
4500
|
+
config: da.value.config,
|
|
4459
4501
|
title: t.value.table.useDialog ? "" : Ul.value.title,
|
|
4460
4502
|
withCloseButton: !t.value.table.useDialog,
|
|
4461
|
-
onClose:
|
|
4503
|
+
onClose: vo
|
|
4462
4504
|
}, {
|
|
4463
4505
|
th: we(({ th: e }) => [
|
|
4464
4506
|
k("div", { innerHTML: e }, null, 8, Ks)
|
|
4465
4507
|
]),
|
|
4466
4508
|
td: we(({ td: e }) => [
|
|
4467
|
-
|
|
4509
|
+
bo(re(isNaN(Number(e)) ? e : h(lt)({
|
|
4468
4510
|
p: t.value.chart.labels.prefix,
|
|
4469
4511
|
v: e,
|
|
4470
4512
|
s: t.value.chart.labels.suffix,
|
|
@@ -4480,7 +4522,7 @@ const _n = {
|
|
|
4480
4522
|
t.value.table.useDialog ? {
|
|
4481
4523
|
name: "title",
|
|
4482
4524
|
fn: we(() => [
|
|
4483
|
-
|
|
4525
|
+
bo(re(Ul.value.title), 1)
|
|
4484
4526
|
]),
|
|
4485
4527
|
key: "0"
|
|
4486
4528
|
} : void 0,
|
|
@@ -4492,7 +4534,7 @@ const _n = {
|
|
|
4492
4534
|
class: "vue-ui-user-options-button",
|
|
4493
4535
|
onClick: s[3] || (s[3] = (e) => za(t.value.chart.userOptions.callbacks.csv))
|
|
4494
4536
|
}, [
|
|
4495
|
-
ml(h(
|
|
4537
|
+
ml(h(me), {
|
|
4496
4538
|
name: "excel",
|
|
4497
4539
|
stroke: Ul.value.props.color
|
|
4498
4540
|
}, null, 8, ["stroke"])
|
|
@@ -4504,7 +4546,7 @@ const _n = {
|
|
|
4504
4546
|
h(xe) ? (n(), ct(xn, { key: 9 })) : g("", !0)
|
|
4505
4547
|
], 46, fu));
|
|
4506
4548
|
}
|
|
4507
|
-
}, dr = /* @__PURE__ */
|
|
4549
|
+
}, dr = /* @__PURE__ */ Lo(Js, [["__scopeId", "data-v-d218b34b"]]);
|
|
4508
4550
|
export {
|
|
4509
4551
|
dr as default
|
|
4510
4552
|
};
|