vue-data-ui 3.1.17 → 3.1.18
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-DFX_NfRh.js → Arrow-BC5klzOh.js} +1 -1
- package/dist/{BaseDraggableDialog-CrCjMg89.js → BaseDraggableDialog-CkjMZyIs.js} +2 -2
- package/dist/{BaseIcon-7s-tCFcQ.js → BaseIcon-BPiT94Lb.js} +1 -1
- package/dist/{ColorPicker-BoLH_m_Z.js → ColorPicker-bx5e2RB2.js} +2 -2
- package/dist/{DataTable-Dw6dxJk3.js → DataTable-CywujQw9.js} +2 -2
- package/dist/{Legend-CjdnJGHq.js → Legend-h35dp0Qf.js} +2 -2
- package/dist/{NonSvgPenAndPaper-tX2IXHuz.js → NonSvgPenAndPaper-CvnlQ378.js} +3 -3
- package/dist/{PackageVersion-D1HToLlZ.js → PackageVersion-BzGzkGiC.js} +1 -1
- package/dist/{PenAndPaper-BKnXOYre.js → PenAndPaper-Deh70G9d.js} +3 -3
- package/dist/{Shape-6PexQroB.js → Shape-sVxD_SDm.js} +1 -1
- package/dist/{Slicer-BJkhMBk4.js → Slicer-CQB967He.js} +2 -2
- package/dist/{SparkTooltip-BtO1j0i1.js → SparkTooltip-DFRSPT3_.js} +1 -1
- package/dist/{Title-BVMfF0uu.js → Title-B_WMW2Bp.js} +1 -1
- package/dist/{Tooltip-DBvmoYXU.js → Tooltip-Db9jy0Iu.js} +1 -1
- package/dist/{UserOptions-CKzW9w0Q.js → UserOptions-CtECQwBN.js} +2 -2
- package/dist/{dom-to-png-D0wlWRL9.js → dom-to-png-BHpS3cMi.js} +1 -1
- package/dist/{img-CeCjiMpr.js → img-BArHHegM.js} +1 -1
- package/dist/{index-Lg17rmB1.js → index-smzxfsyV.js} +2 -2
- package/dist/{pdf-D5bgIg6W.js → pdf-D1L3r23x.js} +1 -1
- package/dist/style.css +1 -1
- package/dist/{useAutoSizeLabelsInsideViewbox-BxqMb3sU.js → useAutoSizeLabelsInsideViewbox-DeqXeTNw.js} +1 -1
- package/dist/{useNestedProp-DpwLJMsW.js → useNestedProp-DeKmJzsE.js} +1 -1
- package/dist/{usePrinter-DGI4Mlad.js → usePrinter-nFj0xF0a.js} +2 -2
- package/dist/{vue-data-ui-lki09wwK.js → vue-data-ui-DcBYykse.js} +64 -64
- package/dist/vue-data-ui.js +1 -1
- package/dist/{vue-ui-3d-bar-8b3VZcUI.js → vue-ui-3d-bar-D4rc8PD3.js} +57 -57
- package/dist/{vue-ui-accordion-BJG-ogQj.js → vue-ui-accordion-7cfJUVx5.js} +3 -3
- package/dist/{vue-ui-age-pyramid-Cr_dhyTO.js → vue-ui-age-pyramid-BXMIUNB_.js} +6 -6
- package/dist/{vue-ui-annotator-ttaqcMTz.js → vue-ui-annotator-aCDhQ-m2.js} +2 -2
- package/dist/{vue-ui-bullet-DXvTj07g.js → vue-ui-bullet-Cd_iix-z.js} +7 -7
- package/dist/{vue-ui-candlestick-B5NqFTXr.js → vue-ui-candlestick-C-TTTgiW.js} +7 -7
- package/dist/{vue-ui-carousel-table-B0bpCRFh.js → vue-ui-carousel-table-C58J4zpm.js} +4 -4
- package/dist/{vue-ui-chestnut-Cby7Wcbu.js → vue-ui-chestnut-C7u6GW-T.js} +5 -5
- package/dist/{vue-ui-chord-Cxg8nwzZ.js → vue-ui-chord-DxLU3Fg1.js} +8 -8
- package/dist/{vue-ui-circle-pack-Cc5e6dE3.js → vue-ui-circle-pack--a_KE7qz.js} +6 -6
- package/dist/{vue-ui-cursor-D6MvR7jD.js → vue-ui-cursor-DJQWAIj8.js} +2 -2
- package/dist/{vue-ui-dashboard-CaUM9n5b.js → vue-ui-dashboard-CIACUYB-.js} +67 -67
- package/dist/{vue-ui-digits-DsoHRv9p.js → vue-ui-digits-CLV8h-P8.js} +2 -2
- package/dist/{vue-ui-donut-evolution-CFu9WNVV.js → vue-ui-donut-evolution-XGJvBQIm.js} +8 -8
- package/dist/{vue-ui-donut-Dxsq1gpz.js → vue-ui-donut-sO6G5oor.js} +8 -8
- package/dist/{vue-ui-dumbbell-Cgb7ijQS.js → vue-ui-dumbbell-Bi11rDL7.js} +7 -7
- package/dist/{vue-ui-flow-Ucb9PdWP.js → vue-ui-flow-RP2v-aZJ.js} +7 -7
- package/dist/{vue-ui-funnel-CV29tksj.js → vue-ui-funnel-TVQXGyw7.js} +6 -6
- package/dist/{vue-ui-galaxy-CVJb9_hA.js → vue-ui-galaxy-CUURaWgH.js} +7 -7
- package/dist/{vue-ui-gauge-ofpIH29X.js → vue-ui-gauge-hTRlwARA.js} +125 -125
- package/dist/{vue-ui-gizmo-Ci9kN9VQ.js → vue-ui-gizmo-CZIgBvWV.js} +3 -3
- package/dist/{vue-ui-heatmap-BK_jorrw.js → vue-ui-heatmap-RKtFMgDP.js} +7 -7
- package/dist/{vue-ui-history-plot-Ce8BB4Tn.js → vue-ui-history-plot-fbTG7Mke.js} +7 -7
- package/dist/{vue-ui-kpi-DAHT9q6j.js → vue-ui-kpi-CfX-zUDS.js} +3 -3
- package/dist/{vue-ui-mini-loader-CuilTrcI.js → vue-ui-mini-loader-C1nANuMy.js} +2 -2
- package/dist/{vue-ui-molecule-C6suewK-.js → vue-ui-molecule-BU7T1ysb.js} +5 -5
- package/dist/{vue-ui-mood-radar-DPvGhgPI.js → vue-ui-mood-radar-Cb8cFWzE.js} +7 -7
- package/dist/{vue-ui-nested-donuts-BvPWp9Du.js → vue-ui-nested-donuts-DTZD8BTA.js} +7 -7
- package/dist/{vue-ui-onion-BZ0tfRV_.js → vue-ui-onion-5xmlEUsJ.js} +8 -8
- package/dist/{vue-ui-parallel-coordinate-plot-DqFj8hbo.js → vue-ui-parallel-coordinate-plot-Wc0TbyJH.js} +8 -8
- package/dist/{vue-ui-quadrant-Cg5e73ny.js → vue-ui-quadrant-BC99Cua7.js} +8 -8
- package/dist/{vue-ui-quick-chart-sABlk5nb.js → vue-ui-quick-chart-Cbv2UcEu.js} +6 -6
- package/dist/{vue-ui-radar-DYcoGzSu.js → vue-ui-radar-B-ey_fDA.js} +8 -8
- package/dist/{vue-ui-rating-1eguB-TH.js → vue-ui-rating-BNCKLcCa.js} +2 -2
- package/dist/{vue-ui-relation-circle-BeWuQDkk.js → vue-ui-relation-circle-CYFQcAgc.js} +7 -7
- package/dist/{vue-ui-ridgeline-CG7FefqU.js → vue-ui-ridgeline-B_6K1FTc.js} +8 -8
- package/dist/{vue-ui-rings-2eedFGuC.js → vue-ui-rings-D_BTgxYc.js} +8 -8
- package/dist/{vue-ui-scatter-CNtgNP5j.js → vue-ui-scatter-B69SYOfv.js} +8 -8
- package/dist/{vue-ui-skeleton-fqG3bKSz.js → vue-ui-skeleton-CpkwgALO.js} +3 -3
- package/dist/{vue-ui-smiley-D4bvSF9S.js → vue-ui-smiley-t16dEIoQ.js} +2 -2
- package/dist/vue-ui-spark-trend-DskdjYw4.js +336 -0
- package/dist/{vue-ui-sparkbar-D1FXZyQE.js → vue-ui-sparkbar-C-evQIq2.js} +81 -81
- package/dist/{vue-ui-sparkgauge-CHbbxg13.js → vue-ui-sparkgauge-DycVSHAs.js} +4 -4
- package/dist/{vue-ui-sparkhistogram-BxYes64D.js → vue-ui-sparkhistogram-CZLnlSUD.js} +4 -4
- package/dist/{vue-ui-sparkline-CS3F5TFN.js → vue-ui-sparkline-C1nZRVTa.js} +169 -169
- package/dist/{vue-ui-sparkstackbar-CUSBwkUS.js → vue-ui-sparkstackbar-CUUeuwAI.js} +3 -3
- package/dist/{vue-ui-stackbar-CDihyp-i.js → vue-ui-stackbar-D27Wq8Y4.js} +9 -9
- package/dist/{vue-ui-strip-plot-D6MFuKnN.js → vue-ui-strip-plot-D-srKJUr.js} +7 -7
- package/dist/{vue-ui-table-COT59wVb.js → vue-ui-table-LcImk124.js} +4 -4
- package/dist/{vue-ui-table-heatmap--e8yw5yS.js → vue-ui-table-heatmap-BfXe_f0K.js} +5 -5
- package/dist/{vue-ui-table-sparkline-DnSLwUNN.js → vue-ui-table-sparkline-DyrnPNGv.js} +4 -4
- package/dist/{vue-ui-thermometer-ByiRARW0.js → vue-ui-thermometer-DxRDmz-L.js} +7 -7
- package/dist/{vue-ui-timer-DOQVdVN2.js → vue-ui-timer-Bbzb09O8.js} +5 -5
- package/dist/{vue-ui-tiremarks-BFXeJQNZ.js → vue-ui-tiremarks-DWy1Dkub.js} +6 -6
- package/dist/{vue-ui-treemap-s_O9rQUT.js → vue-ui-treemap-C3Ek_E4n.js} +8 -8
- package/dist/{vue-ui-vertical-bar-Bn-m5GKU.js → vue-ui-vertical-bar-CV3Mc1cX.js} +9 -9
- package/dist/{vue-ui-waffle-DmxaWHSw.js → vue-ui-waffle-D2mQJdcV.js} +8 -8
- package/dist/{vue-ui-wheel-zJ5U-h_D.js → vue-ui-wheel-zbog7bII.js} +6 -6
- package/dist/{vue-ui-word-cloud-BEnkOZdv.js → vue-ui-word-cloud-D9iZRkQP.js} +6 -6
- package/dist/{vue-ui-world-CkqoTL4V.js → vue-ui-world-D5dR5VdK.js} +6 -6
- package/dist/{vue-ui-xy-Uqdl2nk-.js → vue-ui-xy-Cll76_i9.js} +404 -414
- package/dist/{vue-ui-xy-canvas-cIU8Y1sD.js → vue-ui-xy-canvas-DJVXAfpL.js} +10 -10
- package/package.json +1 -1
- package/dist/vue-ui-spark-trend-GML5JJxY.js +0 -315
|
@@ -1,17 +1,17 @@
|
|
|
1
|
-
import { useCssVars as Yo, computed as x, ref as y,
|
|
2
|
-
import { c as
|
|
3
|
-
import { t as
|
|
4
|
-
import { u as mn } from "./usePrinter-
|
|
1
|
+
import { useCssVars as Yo, computed as x, ref as y, watch as ht, onMounted as Zl, onBeforeUnmount as Ll, onUpdated as ho, nextTick as Ml, 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 ga, y as xa, 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 ql, af as hl, e as po, p as ko, ag as ha, ac as j, a7 as Pa, ah as ln, h as q, ai as an, aj as wo, ak as So, k as Ae, 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 fa, 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 _l } from "./index-smzxfsyV.js";
|
|
3
|
+
import { t as ba, d as hn, u as fn } from "./useResponsive-DfdjqQps.js";
|
|
4
|
+
import { u as mn } from "./usePrinter-nFj0xF0a.js";
|
|
5
5
|
import { u as gn, B as xn } from "./BaseScanner-BgWxam9d.js";
|
|
6
6
|
import { u as Mo, a as bn, l as yn } from "./useTimeLabels-BGFjWgrv.js";
|
|
7
|
-
import { u as Fa } from "./useNestedProp-
|
|
7
|
+
import { u as Fa } from "./useNestedProp-DeKmJzsE.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-
|
|
9
|
+
import kn from "./img-BArHHegM.js";
|
|
10
|
+
import wn from "./Title-B_WMW2Bp.js";
|
|
11
|
+
import { _ as ma } from "./Shape-sVxD_SDm.js";
|
|
12
|
+
import Sn from "./BaseIcon-BPiT94Lb.js";
|
|
13
13
|
import { _ as Lo } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
14
|
-
import $n from "./vue-ui-accordion-
|
|
14
|
+
import $n from "./vue-ui-accordion-7cfJUVx5.js";
|
|
15
15
|
const _n = {
|
|
16
16
|
class: "vue-data-ui-slicer-labels",
|
|
17
17
|
style: { position: "relative", "z-index": "1", "pointer-events": "none" }
|
|
@@ -22,7 +22,7 @@ const _n = {
|
|
|
22
22
|
key: 0,
|
|
23
23
|
class: "minimap",
|
|
24
24
|
style: { width: "100%" }
|
|
25
|
-
}, Cn = ["xmlns", "viewBox"], An = ["id"],
|
|
25
|
+
}, Cn = ["xmlns", "viewBox"], An = ["id"], Tn = ["stop-color"], zn = ["width", "height", "stroke"], In = ["d", "stroke"], Nn = ["d", "fill"], Pn = ["x", "y", "width", "height", "fill"], Fn = ["d", "stroke"], Rn = ["cx", "cy", "fill", "stroke"], On = ["x", "width", "height", "fill", "rx"], Vn = ["x", "width", "height", "rx", "fill"], Bn = ["x", "width", "height", "fill", "rx"], En = ["x2", "y1", "y2", "stroke"], Hn = { key: "merged-tree" }, Dn = ["d", "fill"], Wn = ["d", "stroke"], Xn = ["cx", "cy", "stroke", "fill"], Yn = ["cx", "cy", "stroke", "fill"], Gn = { key: "split-tree" }, Un = ["x", "y", "width", "height", "fill"], qn = ["d", "stroke"], Zn = ["x", "height", "fill", "stroke"], Kn = ["x", "height", "fill", "stroke"], Jn = { key: "merged-tree" }, Qn = ["cx", "cy", "stroke", "fill"], jn = ["cx", "cy", "fill"], eu = ["cx", "cy", "stroke", "fill"], tu = ["cx", "cy", "fill"], lu = { key: 11 }, au = ["d", "stroke"], ou = ["cx", "cy", "fill", "stroke"], nu = ["cx", "cy", "stroke", "fill"], uu = ["cx", "cy", "fill"], iu = ["cx", "cy", "stroke", "fill"], su = ["cx", "cy", "fill"], ru = ["x", "height", "width", "onMouseenter"], cu = ["min", "max"], vu = ["min", "max"], Ra = 48, du = {
|
|
26
26
|
__name: "SlicerPreview",
|
|
27
27
|
props: {
|
|
28
28
|
immediate: {
|
|
@@ -190,40 +190,30 @@ const _n = {
|
|
|
190
190
|
emits: ["futureStart", "futureEnd", "update:start", "update:end", "reset", "trapMouse"],
|
|
191
191
|
setup($, { expose: Sa, emit: $a }) {
|
|
192
192
|
Yo((v) => ({
|
|
193
|
-
"
|
|
194
|
-
"
|
|
195
|
-
"
|
|
196
|
-
|
|
197
|
-
|
|
193
|
+
"64664f38": Tl.value,
|
|
194
|
+
"074850a8": ne.value,
|
|
195
|
+
"0460f41d": mt.value,
|
|
196
|
+
"46ddce48": $.selectColor,
|
|
197
|
+
fcd4952c: zl.value
|
|
198
198
|
}));
|
|
199
|
-
const d = $,
|
|
199
|
+
const d = $, Ne = y(null), ce = y(d.min), fe = y(d.max), me = x(() => !!d.minimap.length), Cl = y(ga()), St = y(!1), Nt = x(() => me.value && d.minimapCompact), Kl = y(0), Ut = ba((v) => Le("futureStart", v), 0), gl = ba((v) => Le("futureEnd", v), 0), qt = x({
|
|
200
200
|
get: () => ce.value,
|
|
201
201
|
set(v) {
|
|
202
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 ?
|
|
203
|
+
m !== ce.value && (ce.value = m, Mt.value && (Mt.value.value = String(m)), d.immediate ? Le("update:start", Number(m)) : St.value && Ut(m));
|
|
204
204
|
}
|
|
205
205
|
}), $t = x({
|
|
206
206
|
get: () => fe.value,
|
|
207
207
|
set(v) {
|
|
208
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 ?
|
|
209
|
+
m !== fe.value && (fe.value = m, t.value && (t.value.value = String(m)), d.immediate ? Le("update:end", Number(m)) : St.value && gl(m));
|
|
210
210
|
}
|
|
211
211
|
});
|
|
212
|
-
Ll(() => {
|
|
213
|
-
const v = () => {
|
|
214
|
-
Le.value && (zl.value = Le.value.getBoundingClientRect().width);
|
|
215
|
-
};
|
|
216
|
-
v();
|
|
217
|
-
const m = Jl(v, 50);
|
|
218
|
-
window.addEventListener("resize", m), gl(() => {
|
|
219
|
-
window.removeEventListener("resize", m);
|
|
220
|
-
});
|
|
221
|
-
});
|
|
222
212
|
let Be = null;
|
|
223
213
|
function Te() {
|
|
224
|
-
clearTimeout(Be), d.immediate || (
|
|
214
|
+
clearTimeout(Be), d.immediate || (Le("update:start", Number(ce.value)), Le("update:end", Number(fe.value))), St.value = !1;
|
|
225
215
|
}
|
|
226
|
-
const Ke = x(() => d.refreshEndPoint === null ? d.max : d.refreshEndPoint),
|
|
216
|
+
const Ke = x(() => d.refreshEndPoint === null ? d.max : d.refreshEndPoint), Le = $a, ft = x(() => {
|
|
227
217
|
if (Nt.value) {
|
|
228
218
|
const m = Math.max(1, at.value - 1);
|
|
229
219
|
return Pt.value / m * 100;
|
|
@@ -237,34 +227,34 @@ const _n = {
|
|
|
237
227
|
}
|
|
238
228
|
const v = Math.max(1, d.max - d.min);
|
|
239
229
|
return (fe.value - d.min) / v * 100;
|
|
240
|
-
}),
|
|
241
|
-
if (!
|
|
230
|
+
}), Al = x(() => (ft.value + _t.value) / 2), Zt = x(() => {
|
|
231
|
+
if (!Ne.value) return !1;
|
|
242
232
|
const v = Math.max(1, d.max - d.min);
|
|
243
|
-
return
|
|
233
|
+
return Ne.value.getBoundingClientRect().width * ((ce.value - d.min) / v) - yl.value / 2 < 0;
|
|
244
234
|
}), Kt = x(() => {
|
|
245
|
-
if (!
|
|
246
|
-
const v = Math.max(1, d.max - d.min), m =
|
|
235
|
+
if (!Ne.value) return !1;
|
|
236
|
+
const v = Math.max(1, d.max - d.min), m = Ne.value.getBoundingClientRect().width;
|
|
247
237
|
return m * ((fe.value - d.min) / v) + c.value / 2 > m;
|
|
248
238
|
}), Se = x(() => {
|
|
249
|
-
const v = Kt.value ? `calc(${
|
|
239
|
+
const v = Kt.value ? `calc(${Al.value}% - ${Bt.value.width}px - 2px)` : Zt.value ? `calc(${Al.value}% - 8px)` : `calc(${Al.value}% - ${Bt.value.width / 2}px - 4px)`;
|
|
250
240
|
return {
|
|
251
241
|
left: `${ft.value}%`,
|
|
252
242
|
width: `${Math.max(0, _t.value - ft.value)}%`,
|
|
253
243
|
background: d.selectColor,
|
|
254
|
-
tooltipLeft: `calc(${ft.value}% - ${Zt.value ? 9 :
|
|
244
|
+
tooltipLeft: `calc(${ft.value}% - ${Zt.value ? 9 : yl.value / 2 + 3.5}px)`,
|
|
255
245
|
tooltipRight: `calc(${_t.value}% - ${Kt.value ? c.value - 9 : c.value / 2 - 3.5}px)`,
|
|
256
246
|
tooltipCenter: v,
|
|
257
247
|
arrowLeft: !Zt.value,
|
|
258
248
|
arrowRight: !Kt.value
|
|
259
249
|
};
|
|
260
|
-
}),
|
|
250
|
+
}), Tl = x(() => d.inputColor), zl = x(() => d.background), mt = x(() => `${d.selectColor}33`), ne = x(() => d.borderColor), Jl = x(() => {
|
|
261
251
|
let v = [];
|
|
262
252
|
for (let m = 0; m < d.max; m += 1)
|
|
263
253
|
v.push(m);
|
|
264
254
|
return v;
|
|
265
255
|
});
|
|
266
256
|
function E() {
|
|
267
|
-
|
|
257
|
+
Le("reset");
|
|
268
258
|
}
|
|
269
259
|
ht(
|
|
270
260
|
() => d.min,
|
|
@@ -281,20 +271,20 @@ const _n = {
|
|
|
281
271
|
width: 1,
|
|
282
272
|
height: 1
|
|
283
273
|
}), le = y(null);
|
|
284
|
-
|
|
274
|
+
Zl(() => {
|
|
285
275
|
if (me.value) {
|
|
286
|
-
const v =
|
|
276
|
+
const v = ba(() => {
|
|
287
277
|
if (!Jt.value) return;
|
|
288
|
-
const { width: m, height: f } = fn({ chart: Jt.value }), _ = Math.max(0, Math.round(m)),
|
|
289
|
-
(_ !== W.value.width ||
|
|
290
|
-
},
|
|
278
|
+
const { width: m, height: f } = fn({ chart: Jt.value }), _ = Math.max(0, Math.round(m)), T = Math.max(0, Math.round(f - 47));
|
|
279
|
+
(_ !== W.value.width || T !== W.value.height) && (W.value.width = _, W.value.height = T);
|
|
280
|
+
}, 0);
|
|
291
281
|
le.value = new ResizeObserver(v), le.value.observe(Jt.value);
|
|
292
282
|
}
|
|
293
|
-
}),
|
|
283
|
+
}), Ll(() => {
|
|
294
284
|
le.value && le.value.disconnect();
|
|
295
285
|
});
|
|
296
286
|
const at = x(() => Math.max(1, d.max - d.min));
|
|
297
|
-
function
|
|
287
|
+
function Ql(v) {
|
|
298
288
|
const m = Math.floor(v - d.min);
|
|
299
289
|
return Math.min(Math.max(0, m), at.value);
|
|
300
290
|
}
|
|
@@ -302,34 +292,34 @@ const _n = {
|
|
|
302
292
|
const m = Math.ceil(v - d.min);
|
|
303
293
|
return Math.min(Math.max(0, m), at.value);
|
|
304
294
|
}
|
|
305
|
-
const Ee = x(() =>
|
|
295
|
+
const Ee = x(() => Ql(ce.value)), Pe = x(() => Qt(fe.value)), xl = x(() => Math.max(...d.allMinimaps.map((v) => v.series.length))), ae = x(() => {
|
|
306
296
|
if (!d.minimap.length) return 0;
|
|
307
|
-
const v = Math.max(1,
|
|
297
|
+
const v = Math.max(1, xl.value - (d.minimapCompact ? 1 : 0));
|
|
308
298
|
return W.value.width / v;
|
|
309
299
|
}), ve = x(() => d.allMinimaps.length ? d.allMinimaps.filter((v) => v.type === "bar").length : 0), Z = x(() => ae.value / (ve.value || 1) * 0.8);
|
|
310
|
-
function
|
|
311
|
-
const _ = Z.value,
|
|
312
|
-
return f === 0 ? v + _ / 2 * m : f === D ? v - _ / 2 * (
|
|
300
|
+
function Il(v, m, f) {
|
|
301
|
+
const _ = Z.value, T = Math.max(1, ve.value), D = xl.value - 1;
|
|
302
|
+
return f === 0 ? v + _ / 2 * m : f === D ? v - _ / 2 * (T - m) : v - T * _ / 2 + m * _;
|
|
313
303
|
}
|
|
314
|
-
function
|
|
315
|
-
return [0,
|
|
304
|
+
function Nl(v, m) {
|
|
305
|
+
return [0, xl.value - 1].includes(m) ? Z.value / 2 : Z.value;
|
|
316
306
|
}
|
|
317
|
-
const
|
|
307
|
+
const Pl = x(() => {
|
|
318
308
|
const v = [];
|
|
319
309
|
if (Array.isArray(d.minimap) && d.minimap.length && d.minimapMerged && v.push(...d.minimap.filter(Number.isFinite)), Array.isArray(d.allMinimaps) && d.allMinimaps.length)
|
|
320
310
|
for (const m of d.allMinimaps)
|
|
321
311
|
m?.isVisible && Array.isArray(m?.series) && v.push(...m.series.filter(Number.isFinite));
|
|
322
312
|
return v.length ? { min: Math.min(...v), max: Math.max(...v) } : { min: 0, max: 1 };
|
|
323
|
-
}), He = x(() =>
|
|
313
|
+
}), He = x(() => Pl.value.min), gt = x(() => Pl.value.max), X = x(() => He.value < 0 && gt.value > 0 || gt.value <= 0 ? He.value : 0), jl = x(() => Math.max(1e-9, Math.max(Math.abs(He.value), Math.abs(gt.value)))), Fl = x(() => He.value < 0 && gt.value > 0), bl = (v) => {
|
|
324
314
|
const m = Math.max(1, W.value.height);
|
|
325
|
-
if (
|
|
326
|
-
const f =
|
|
315
|
+
if (Fl.value) {
|
|
316
|
+
const f = jl.value;
|
|
327
317
|
return (1 - (Math.max(-1, Math.min(1, v / f)) + 1) / 2) * m;
|
|
328
318
|
} else {
|
|
329
319
|
const f = Math.min(0, He.value), _ = Math.max(0, gt.value);
|
|
330
320
|
return m - (v - f) / Math.max(1e-9, _ - f) * m;
|
|
331
321
|
}
|
|
332
|
-
}, $e = x(() =>
|
|
322
|
+
}, $e = x(() => bl(0));
|
|
333
323
|
function ot(v, m, f) {
|
|
334
324
|
const _ = (D, ke, S) => Math.max(ke, Math.min(S, D));
|
|
335
325
|
if (m <= 0) {
|
|
@@ -357,19 +347,19 @@ const _n = {
|
|
|
357
347
|
fullMarkers: [],
|
|
358
348
|
selectionMarkers: []
|
|
359
349
|
};
|
|
360
|
-
const f = Math.max(1, W.value.height), _ = ot(He.value, gt.value, f),
|
|
361
|
-
const
|
|
350
|
+
const f = Math.max(1, W.value.height), _ = ot(He.value, gt.value, f), T = v.length, D = Math.min(Math.max(0, Ee.value), Math.max(0, T - 1)), ke = Math.min(T, Math.max(D + 1, Pe.value)), S = v.map((Me, il) => {
|
|
351
|
+
const Tt = d.cutNullValues ? Me : Me === null ? 0 : Me, oa = Number.isFinite(Tt), La = ae.value * il + (d.minimapCompact ? 0 : ae.value / 2), Ca = _(0);
|
|
362
352
|
return {
|
|
363
353
|
x: La,
|
|
364
|
-
y:
|
|
365
|
-
v:
|
|
366
|
-
value:
|
|
354
|
+
y: oa ? _(Tt) : NaN,
|
|
355
|
+
v: Tt,
|
|
356
|
+
value: oa ? Tt : null,
|
|
367
357
|
y0: Ca,
|
|
368
358
|
i: il
|
|
369
359
|
};
|
|
370
|
-
}),
|
|
360
|
+
}), kl = (Me) => Me >= 0 && Me < S.length && Number.isFinite(S[Me]?.value), st = S.filter((Me) => Number.isFinite(Me.value) && !kl(Me.i - 1) && !kl(Me.i + 1)), Et = st.filter((Me) => Me.i >= D && Me.i < ke), At = S.slice(D, ke), aa = 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
361
|
return {
|
|
372
|
-
fullSet:
|
|
362
|
+
fullSet: aa,
|
|
373
363
|
points: S,
|
|
374
364
|
selectionSet: ul,
|
|
375
365
|
sliced: At,
|
|
@@ -396,14 +386,14 @@ const _n = {
|
|
|
396
386
|
x: ae.value * v + (d.minimapCompact ? 0 : ae.value / 2),
|
|
397
387
|
width: ae.value * (m - v) - ae.value
|
|
398
388
|
};
|
|
399
|
-
}), xt = y(d.minimapSelectedIndex),
|
|
389
|
+
}), xt = y(d.minimapSelectedIndex), Rl = (v) => Math.round(d.min + v), Pt = x({
|
|
400
390
|
get() {
|
|
401
391
|
return Nt.value ? Ee.value : Number(qt.value);
|
|
402
392
|
},
|
|
403
393
|
set(v) {
|
|
404
394
|
if (Nt.value) {
|
|
405
395
|
const m = Math.round(+v || 0);
|
|
406
|
-
Lt(
|
|
396
|
+
Lt(Rl(m));
|
|
407
397
|
} else {
|
|
408
398
|
let m = Math.round(+v || 0);
|
|
409
399
|
const f = Number(fe.value) - 1, _ = Math.min(Math.max(d.min, m), f);
|
|
@@ -417,7 +407,7 @@ const _n = {
|
|
|
417
407
|
set(v) {
|
|
418
408
|
if (Nt.value) {
|
|
419
409
|
const m = Math.round(+v || 0);
|
|
420
|
-
_e(
|
|
410
|
+
_e(Rl(m + 1));
|
|
421
411
|
} else {
|
|
422
412
|
let m = Math.round(+v || 0);
|
|
423
413
|
const f = Number(ce.value) + 1, _ = Math.max(f, Math.min(m, d.max));
|
|
@@ -426,7 +416,7 @@ const _n = {
|
|
|
426
416
|
}
|
|
427
417
|
});
|
|
428
418
|
function A(v) {
|
|
429
|
-
xt.value =
|
|
419
|
+
xt.value = Ql(d.valueStart) + v;
|
|
430
420
|
}
|
|
431
421
|
const De = hn(A, 60);
|
|
432
422
|
ht(() => d.minimapSelectedIndex, (v, m) => {
|
|
@@ -436,10 +426,10 @@ const _n = {
|
|
|
436
426
|
}
|
|
437
427
|
v !== m && De(v);
|
|
438
428
|
}, { immediate: !0 });
|
|
439
|
-
function
|
|
429
|
+
function Ol(v) {
|
|
440
430
|
xt.value = v;
|
|
441
431
|
const m = Ee.value, f = Pe.value;
|
|
442
|
-
v >= m && v < f && !tt.value &&
|
|
432
|
+
v >= m && v < f && !tt.value && Le("trapMouse", v - m);
|
|
443
433
|
}
|
|
444
434
|
const Mt = y(null), t = y(null);
|
|
445
435
|
function p(v) {
|
|
@@ -466,17 +456,17 @@ const _n = {
|
|
|
466
456
|
$t.value = m;
|
|
467
457
|
}));
|
|
468
458
|
}
|
|
469
|
-
|
|
459
|
+
Ll(() => {
|
|
470
460
|
cancelAnimationFrame(tl), cancelAnimationFrame(xe);
|
|
471
461
|
});
|
|
472
462
|
const bt = x(() => d.valueEnd - d.valueStart), _a = x(() => bt.value < d.max - d.min), Ft = y(!1);
|
|
473
463
|
let yt = y(null);
|
|
474
|
-
const Qe = x(() => (
|
|
464
|
+
const Qe = x(() => (Kl.value - 48) / (d.max - d.min) * bt.value), w = x(() => Math.max(1, Kl.value - Ra - Qe.value)), We = x(() => Math.max(1, d.max - d.min - bt.value)), ea = x(() => We.value / w.value), Vl = y(0), Ct = y(0), Ma = y(0), Bl = y(0);
|
|
475
465
|
let nt = null, ut = null, it = null, pt = null;
|
|
476
466
|
const ll = y(d.min);
|
|
477
467
|
function Rt(v) {
|
|
478
|
-
if (!
|
|
479
|
-
const m =
|
|
468
|
+
if (!Ne.value) return d.min;
|
|
469
|
+
const m = Ne.value.getBoundingClientRect(), f = m.left + Ra / 2, _ = m.right - Ra / 2, T = Math.max(1, _ - f), ke = (Math.max(f, Math.min(v, _)) - f) / T, S = Math.max(1, d.max - d.min);
|
|
480
470
|
return Math.round(d.min + ke * S);
|
|
481
471
|
}
|
|
482
472
|
const al = async (v) => {
|
|
@@ -486,116 +476,116 @@ const _n = {
|
|
|
486
476
|
const f = m && v.targetTouches && v.targetTouches[0] ? v.targetTouches[0] : null, _ = m ? f ? f.target : null : v.target;
|
|
487
477
|
if (!_ || !(_ instanceof Element) || _.classList && _.classList.contains("range-handle")) return;
|
|
488
478
|
Ft.value = !0;
|
|
489
|
-
const
|
|
490
|
-
if (yt.value =
|
|
491
|
-
ll.value = Rt(
|
|
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)),
|
|
493
|
-
let st = ll.value -
|
|
479
|
+
const T = m ? f ? f.clientX : 0 : v.clientX;
|
|
480
|
+
if (yt.value = T, Vl.value = T, d.focusOnDrag && !_a.value && Ne.value) {
|
|
481
|
+
ll.value = Rt(T);
|
|
482
|
+
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)), kl = Math.floor(S / 2);
|
|
483
|
+
let st = ll.value - kl;
|
|
494
484
|
st = Math.max(d.min, Math.min(st, d.max - S));
|
|
495
485
|
const Et = Math.min(d.max, st + S);
|
|
496
|
-
qt.value = st, $t.value = Et, Ut(st),
|
|
486
|
+
qt.value = st, $t.value = Et, Ut(st), gl(Et), yo(Ne.value, "mouseup"), await Ml(), yo(Ne.value, "mousedown", { clientX: T });
|
|
497
487
|
}
|
|
498
|
-
Ct.value = ce.value, Ma.value = fe.value,
|
|
488
|
+
Ct.value = ce.value, Ma.value = fe.value, Bl.value = ea.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);
|
|
499
489
|
};
|
|
500
490
|
function Xe(v) {
|
|
501
491
|
Ft.value && je(v.clientX);
|
|
502
492
|
}
|
|
503
493
|
function ol(v) {
|
|
504
|
-
if (!Ft.value || !
|
|
494
|
+
if (!Ft.value || !Ne.value) return;
|
|
505
495
|
const m = v.target;
|
|
506
|
-
if (!(m instanceof Element) || !
|
|
496
|
+
if (!(m instanceof Element) || !Ne.value.contains(m) || m.classList && m.classList.contains("range-handle")) return;
|
|
507
497
|
v.preventDefault();
|
|
508
498
|
const f = v.targetTouches && v.targetTouches[0] ? v.targetTouches[0] : null;
|
|
509
499
|
f && je(f.clientX);
|
|
510
500
|
}
|
|
511
501
|
function je(v) {
|
|
512
502
|
if (!Ft.value) return;
|
|
513
|
-
const m = Rt(
|
|
514
|
-
let
|
|
515
|
-
|
|
516
|
-
const D =
|
|
517
|
-
qt.value =
|
|
503
|
+
const m = Rt(Vl.value), _ = Rt(v) - m;
|
|
504
|
+
let T = Math.round(Ct.value + _);
|
|
505
|
+
T = Math.max(d.min, Math.min(T, d.max - bt.value));
|
|
506
|
+
const D = T + bt.value;
|
|
507
|
+
qt.value = T, $t.value = D, Ut(T), gl(D);
|
|
518
508
|
}
|
|
519
509
|
function et() {
|
|
520
|
-
|
|
510
|
+
ta();
|
|
521
511
|
}
|
|
522
512
|
function Fe() {
|
|
523
|
-
|
|
513
|
+
ta();
|
|
524
514
|
}
|
|
525
|
-
function
|
|
515
|
+
function ta() {
|
|
526
516
|
Ft.value = !1, nt && it && window.removeEventListener(nt, it), ut && pt && window.removeEventListener(ut, pt), nt = ut = null, it = pt = null, Te();
|
|
527
517
|
}
|
|
528
|
-
const tt = y(!1), nl = y(null), Ot = y(null),
|
|
529
|
-
function
|
|
518
|
+
const tt = y(!1), nl = y(null), Ot = y(null), yl = y(1), c = y(1), Vt = y(!1);
|
|
519
|
+
function El() {
|
|
530
520
|
if (nl.value) {
|
|
531
521
|
const v = Math.round(nl.value.getBoundingClientRect().width);
|
|
532
|
-
v !==
|
|
522
|
+
v !== yl.value && (yl.value = v);
|
|
533
523
|
}
|
|
534
524
|
}
|
|
535
|
-
function
|
|
525
|
+
function pl() {
|
|
536
526
|
if (Ot.value) {
|
|
537
527
|
const v = Math.round(Ot.value.getBoundingClientRect().width);
|
|
538
528
|
v !== c.value && (c.value = v);
|
|
539
529
|
}
|
|
540
530
|
}
|
|
541
531
|
ho(() => {
|
|
542
|
-
|
|
532
|
+
El(), pl();
|
|
543
533
|
});
|
|
544
|
-
const
|
|
545
|
-
function
|
|
546
|
-
|
|
534
|
+
const la = y(0);
|
|
535
|
+
function Hl(v) {
|
|
536
|
+
la.value = v === "start" ? 1 : 0;
|
|
547
537
|
}
|
|
548
538
|
const kt = y(!1), Bt = y({
|
|
549
539
|
width: 0,
|
|
550
540
|
left: 0
|
|
551
541
|
});
|
|
552
542
|
ht([ce, fe], async () => {
|
|
553
|
-
if (await
|
|
543
|
+
if (await Ml(), !nl.value || !Ot.value) {
|
|
554
544
|
kt.value = !1, Bt.value = { width: 0, left: 0 };
|
|
555
545
|
return;
|
|
556
546
|
}
|
|
557
547
|
const v = nl.value.getBoundingClientRect(), m = Ot.value.getBoundingClientRect();
|
|
558
548
|
kt.value = v.x + v.width > m.x;
|
|
559
|
-
const f = v.x + v.width / 2, _ = m.x + m.width / 2,
|
|
549
|
+
const f = v.x + v.width / 2, _ = m.x + m.width / 2, T = v.width + m.width, D = (f + _) / 2;
|
|
560
550
|
Bt.value = {
|
|
561
|
-
width:
|
|
562
|
-
left: D -
|
|
551
|
+
width: T,
|
|
552
|
+
left: D - T / 2
|
|
563
553
|
};
|
|
564
554
|
}), ho(() => {
|
|
565
|
-
|
|
555
|
+
El(), pl();
|
|
566
556
|
}), ht(() => d.labelLeft, () => {
|
|
567
|
-
|
|
557
|
+
Ml(El);
|
|
568
558
|
}, { deep: !0 }), ht(() => d.labelRight, () => {
|
|
569
|
-
|
|
559
|
+
Ml(pl);
|
|
570
560
|
}, { deep: !0 });
|
|
571
561
|
const ge = x(() => {
|
|
572
562
|
let v = "", m = "", f = !1;
|
|
573
|
-
if (
|
|
563
|
+
if (xa(d.customFormat))
|
|
574
564
|
try {
|
|
575
565
|
const _ = d.customFormat({
|
|
576
566
|
absoluteIndex: ce.value,
|
|
577
567
|
seriesIndex: ce.value,
|
|
578
568
|
datapoint: d.selectedSeries
|
|
579
|
-
}),
|
|
569
|
+
}), T = d.customFormat({
|
|
580
570
|
absoluteIndex: fe.value - 1,
|
|
581
571
|
seriesIndex: -1,
|
|
582
572
|
datapoint: d.selectedSeries
|
|
583
573
|
});
|
|
584
|
-
typeof _ == "string" && typeof
|
|
574
|
+
typeof _ == "string" && typeof T == "string" && (v = _, m = T, f = !0);
|
|
585
575
|
} catch {
|
|
586
576
|
f = !1;
|
|
587
577
|
}
|
|
588
578
|
if (!f) {
|
|
589
|
-
const _ = d.usePreciseLabels ? d.preciseLabels.find((D) => D.absoluteIndex === ce.value) : d.timeLabels.find((D) => D.absoluteIndex === ce.value),
|
|
590
|
-
v = _ ? _.text : "", m =
|
|
579
|
+
const _ = d.usePreciseLabels ? d.preciseLabels.find((D) => D.absoluteIndex === ce.value) : d.timeLabels.find((D) => D.absoluteIndex === ce.value), T = d.usePreciseLabels ? d.preciseLabels.find((D) => D.absoluteIndex === fe.value - 1) : d.timeLabels.find((D) => D.absoluteIndex === fe.value - 1);
|
|
580
|
+
v = _ ? _.text : "", m = T ? T.text : "";
|
|
591
581
|
}
|
|
592
582
|
return { left: v, right: m };
|
|
593
583
|
});
|
|
594
|
-
|
|
584
|
+
Ll(() => {
|
|
595
585
|
le.value && le.value.disconnect(), nt && it && window.removeEventListener(nt, it), ut && pt && window.removeEventListener(ut, pt), nt = ut = null, it = pt = null, clearTimeout(Be);
|
|
596
586
|
});
|
|
597
|
-
const
|
|
598
|
-
if (!
|
|
587
|
+
const Dl = x(() => {
|
|
588
|
+
if (!Jl.value.length) return null;
|
|
599
589
|
if (xt.value >= Ee.value && xt.value < Pe.value) {
|
|
600
590
|
const v = xt.value;
|
|
601
591
|
return {
|
|
@@ -619,7 +609,7 @@ const _n = {
|
|
|
619
609
|
style: { padding: "0 24px" },
|
|
620
610
|
class: "vue-data-ui-zoom",
|
|
621
611
|
ref_key: "zoomWrapper",
|
|
622
|
-
ref:
|
|
612
|
+
ref: Ne,
|
|
623
613
|
onMousedown: al,
|
|
624
614
|
onTouchstart: al
|
|
625
615
|
}, [
|
|
@@ -662,7 +652,7 @@ const _n = {
|
|
|
662
652
|
}, [
|
|
663
653
|
k("defs", null, [
|
|
664
654
|
k("linearGradient", {
|
|
665
|
-
id:
|
|
655
|
+
id: Cl.value,
|
|
666
656
|
x1: "0%",
|
|
667
657
|
y1: "0%",
|
|
668
658
|
x2: "0%",
|
|
@@ -671,7 +661,7 @@ const _n = {
|
|
|
671
661
|
k("stop", {
|
|
672
662
|
offset: "0%",
|
|
673
663
|
"stop-color": `${$.minimapLineColor}50`
|
|
674
|
-
}, null, 8,
|
|
664
|
+
}, null, 8, Tn),
|
|
675
665
|
m[13] || (m[13] = k("stop", {
|
|
676
666
|
offset: "100%",
|
|
677
667
|
"stop-color": "transparent"
|
|
@@ -688,7 +678,7 @@ const _n = {
|
|
|
688
678
|
fill: "none",
|
|
689
679
|
stroke: $.minimapFrameColor,
|
|
690
680
|
rx: 3
|
|
691
|
-
}, null, 8,
|
|
681
|
+
}, null, 8, zn)) : g("", !0),
|
|
692
682
|
$.minimapMerged ? (n(), u("path", {
|
|
693
683
|
key: 1,
|
|
694
684
|
d: `M${H.value.fullSet}`,
|
|
@@ -702,18 +692,18 @@ const _n = {
|
|
|
702
692
|
$.minimapMerged && !$.minimapCompact ? (n(), u("path", {
|
|
703
693
|
key: 2,
|
|
704
694
|
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`,
|
|
705
|
-
fill: `url(#${
|
|
695
|
+
fill: `url(#${Cl.value})`,
|
|
706
696
|
stroke: "none",
|
|
707
697
|
style: { opacity: "0.6" }
|
|
708
698
|
}, null, 8, Nn)) : $.minimapMerged ? g("", !0) : (n(), u(b, { key: 3 }, [
|
|
709
699
|
(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, (
|
|
711
|
-
f.isVisible && !isNaN(
|
|
700
|
+
(n(!0), u(b, null, L(f.points, (T, D) => (n(), u(b, null, [
|
|
701
|
+
f.isVisible && !isNaN(T.y) ? (n(), u("rect", {
|
|
712
702
|
key: 0,
|
|
713
|
-
x:
|
|
714
|
-
y:
|
|
715
|
-
width:
|
|
716
|
-
height:
|
|
703
|
+
x: Il(T.x, _, D),
|
|
704
|
+
y: T.v >= 0 ? T.y : T.y0,
|
|
705
|
+
width: Nl(_, D),
|
|
706
|
+
height: T.v >= 0 ? T.y0 - T.y : T.y - T.y0,
|
|
717
707
|
fill: f.color,
|
|
718
708
|
style: { opacity: 0.6 }
|
|
719
709
|
}, null, 8, Pn)) : g("", !0)
|
|
@@ -781,7 +771,7 @@ const _n = {
|
|
|
781
771
|
H.value.selectionSet ? (n(), u("path", {
|
|
782
772
|
key: 0,
|
|
783
773
|
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`,
|
|
784
|
-
fill: `url(#${
|
|
774
|
+
fill: `url(#${Cl.value})`,
|
|
785
775
|
stroke: "none",
|
|
786
776
|
style: { opacity: "1" }
|
|
787
777
|
}, null, 8, Dn)) : g("", !0),
|
|
@@ -815,13 +805,13 @@ const _n = {
|
|
|
815
805
|
}, null, 8, Yn)) : g("", !0)
|
|
816
806
|
])) : (n(), u("g", Gn, [
|
|
817
807
|
(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, (
|
|
819
|
-
f && f.isVisible && !isNaN(
|
|
808
|
+
(n(!0), u(b, null, L(f.points, (T, D) => (n(), u(b, null, [
|
|
809
|
+
f && f.isVisible && !isNaN(T.y) ? (n(), u("rect", {
|
|
820
810
|
key: 0,
|
|
821
|
-
x:
|
|
822
|
-
y:
|
|
823
|
-
width:
|
|
824
|
-
height:
|
|
811
|
+
x: Il(T.x, _, D),
|
|
812
|
+
y: T.v >= 0 ? T.y : T.y0,
|
|
813
|
+
width: Nl(_, D),
|
|
814
|
+
height: T.v >= 0 ? T.y0 - T.y : T.y - T.y0,
|
|
825
815
|
fill: f.color,
|
|
826
816
|
style: C({ opacity: D >= qt.value && D < $t.value ? 1 : 0 })
|
|
827
817
|
}, null, 12, Un)) : g("", !0)
|
|
@@ -863,7 +853,7 @@ const _n = {
|
|
|
863
853
|
stroke: $.textColor,
|
|
864
854
|
rx: 3
|
|
865
855
|
}, null, 8, Kn)) : g("", !0),
|
|
866
|
-
xt.value !== null && !tt.value ? (n(), u("line", Yt(Gt({ key: 9 },
|
|
856
|
+
xt.value !== null && !tt.value ? (n(), u("line", Yt(Gt({ key: 9 }, Dl.value)), null, 16)) : g("", !0),
|
|
867
857
|
$.minimapMerged ? (n(), u("g", Jn, [
|
|
868
858
|
H.value && H.value.firstPlot && H.value.firstPlot.value !== null ? (n(), u("circle", {
|
|
869
859
|
key: 0,
|
|
@@ -953,18 +943,18 @@ const _n = {
|
|
|
953
943
|
}, null, 8, su)) : g("", !0)
|
|
954
944
|
]))), 128))
|
|
955
945
|
])),
|
|
956
|
-
(n(!0), u(b, null, L(
|
|
946
|
+
(n(!0), u(b, null, L(Jl.value, (f, _) => (n(), u("rect", {
|
|
957
947
|
x: ae.value * _ - ($.minimapCompact ? ae.value / 2 : 0),
|
|
958
948
|
y: 0,
|
|
959
949
|
height: Math.max(W.value.height, 0),
|
|
960
950
|
width: ae.value < 0 ? 0 : ae.value,
|
|
961
951
|
fill: "transparent",
|
|
962
952
|
style: C([{ "pointer-events": "all !important" }, { cursor: f >= Ee.value && f < Pe.value && $.enableSelectionDrag ? tt.value ? "grabbing" : "grab" : "default" }]),
|
|
963
|
-
onMousedown: m[0] || (m[0] = (
|
|
964
|
-
onMouseup: m[1] || (m[1] = (
|
|
965
|
-
onMouseenter: (
|
|
966
|
-
onMouseleave: m[2] || (m[2] = (
|
|
967
|
-
xt.value = null,
|
|
953
|
+
onMousedown: m[0] || (m[0] = (T) => tt.value = !0),
|
|
954
|
+
onMouseup: m[1] || (m[1] = (T) => tt.value = !1),
|
|
955
|
+
onMouseenter: (T) => Ol(f),
|
|
956
|
+
onMouseleave: m[2] || (m[2] = (T) => {
|
|
957
|
+
xt.value = null, Le("trapMouse", null);
|
|
968
958
|
})
|
|
969
959
|
}, null, 44, ru))), 256))
|
|
970
960
|
], 8, Cn))
|
|
@@ -1001,7 +991,7 @@ const _n = {
|
|
|
1001
991
|
onChange: Te,
|
|
1002
992
|
onKeyup: fo(Te, ["enter"]),
|
|
1003
993
|
onBlur: Te,
|
|
1004
|
-
onMouseenter: m[7] || (m[7] = (f) =>
|
|
994
|
+
onMouseenter: m[7] || (m[7] = (f) => Hl("start")),
|
|
1005
995
|
onPointerup: Te
|
|
1006
996
|
}, null, 42, cu)), [
|
|
1007
997
|
[
|
|
@@ -1029,7 +1019,7 @@ const _n = {
|
|
|
1029
1019
|
onChange: Te,
|
|
1030
1020
|
onKeyup: fo(Te, ["enter"]),
|
|
1031
1021
|
onBlur: Te,
|
|
1032
|
-
onMouseenter: m[10] || (m[10] = (f) =>
|
|
1022
|
+
onMouseenter: m[10] || (m[10] = (f) => Hl("end")),
|
|
1033
1023
|
onPointerup: Te
|
|
1034
1024
|
}, null, 42, vu)), [
|
|
1035
1025
|
[
|
|
@@ -1054,7 +1044,7 @@ const _n = {
|
|
|
1054
1044
|
color: h(dt)($.selectColor),
|
|
1055
1045
|
backgroundColor: $.selectColor,
|
|
1056
1046
|
border: `1px solid ${ne.value}`,
|
|
1057
|
-
zIndex: `${
|
|
1047
|
+
zIndex: `${la.value + 4}`,
|
|
1058
1048
|
visibility: kt.value || ge.value.left === ge.value.right ? "hidden" : "visible",
|
|
1059
1049
|
top: me.value && $.minimapCompact ? "calc(-100% - 12px)" : "-100%"
|
|
1060
1050
|
})
|
|
@@ -1102,7 +1092,7 @@ const _n = {
|
|
|
1102
1092
|
], 544)
|
|
1103
1093
|
], 544));
|
|
1104
1094
|
}
|
|
1105
|
-
}, hu = /* @__PURE__ */ Lo(du, [["__scopeId", "data-v-
|
|
1095
|
+
}, hu = /* @__PURE__ */ Lo(du, [["__scopeId", "data-v-3e0d2bcb"]]), 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"], Tu = ["id"], zu = ["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"], Ti = ["d", "fill"], zi = ["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 = {
|
|
1106
1096
|
key: 16,
|
|
1107
1097
|
style: { "pointer-events": "none" }
|
|
1108
1098
|
}, $s = ["x", "y"], _s = ["innerHTML"], Ms = ["cx", "cy", "r", "fill"], Ls = ["data-start", "data-end"], Cs = {
|
|
@@ -1113,7 +1103,7 @@ const _n = {
|
|
|
1113
1103
|
height: "20",
|
|
1114
1104
|
viewBox: "0 0 10 20",
|
|
1115
1105
|
style: { position: "absolute", right: "100%", top: "50%", transform: "translateY(-50%)" }
|
|
1116
|
-
},
|
|
1106
|
+
}, Ts = ["fill"], zs = ["innerHTML"], Is = {
|
|
1117
1107
|
class: "vue-ui-xy-tag-arrow",
|
|
1118
1108
|
height: "100%",
|
|
1119
1109
|
viewBox: "0 0 10 20",
|
|
@@ -1168,11 +1158,11 @@ const _n = {
|
|
|
1168
1158
|
},
|
|
1169
1159
|
emits: ["selectTimeLabel", "selectX", "selectLegend"],
|
|
1170
1160
|
setup($, { expose: Sa, emit: $a }) {
|
|
1171
|
-
const d = $,
|
|
1161
|
+
const d = $, Ne = Wt(() => import("./DataTable-CywujQw9.js")), ce = Wt(() => import("./Tooltip-Db9jy0Iu.js")), fe = Wt(() => import("./UserOptions-CtECQwBN.js")), me = Wt(() => import("./BaseIcon-BPiT94Lb.js")), Cl = Wt(() => import("./vue-ui-table-sparkline-DyrnPNGv.js")), St = Wt(() => import("./PackageVersion-BzGzkGiC.js")), Nt = Wt(() => import("./PenAndPaper-Deh70G9d.js")), Kl = Wt(() => import("./BaseDraggableDialog-CkjMZyIs.js")), Ut = $a, gl = Go(), qt = Uo(), { vue_ui_xy: $t } = jo(), Be = y(null), Te = y(null), Ke = y(null), Le = y(null), ft = y(null), _t = y(null), Al = y(null), Zt = y(null), Kt = y(null), Se = y(null), Tl = y(null), zl = y(null), mt = y(null), ne = y(null), Jl = y(0), E = y(null), Jt = y(!0), W = y(600), le = y(1e3), at = y("0 0 1000 600"), Ql = y({ x: 0, y: 0 }), Qt = y({ line: "line", bar: "bar", plot: "plot" }), Ee = y(!1), Pe = y(!1), xl = y(!1), ae = y(null), ve = y([]), Z = y(ga()), Il = y(0), Nl = y(0), Pl = y(0), He = y(!0), gt = y(0), X = y(null), jl = y(!1), Fl = y(!0), bl = y(!0), $e = y(null), ot = y({}), jt = y(null), H = y(!1), Je = y(null), M = y(null), xt = x(() => ({
|
|
1172
1162
|
height: W.value,
|
|
1173
1163
|
width: le.value
|
|
1174
1164
|
}));
|
|
1175
|
-
function
|
|
1165
|
+
function Rl(l) {
|
|
1176
1166
|
return Number.isFinite(l) ? Math.max(0, Math.floor(l)) : 0;
|
|
1177
1167
|
}
|
|
1178
1168
|
function Pt(l, s, e = 0) {
|
|
@@ -1184,7 +1174,7 @@ const _n = {
|
|
|
1184
1174
|
dataLabels: 20,
|
|
1185
1175
|
plotLabels: 10
|
|
1186
1176
|
}), De = y({ plot: 3, line: 3 });
|
|
1187
|
-
|
|
1177
|
+
Zl(() => {
|
|
1188
1178
|
H.value = !0, d.dataset.length && d.dataset.forEach((l, s) => {
|
|
1189
1179
|
[null, void 0].includes(l.series) && Na({
|
|
1190
1180
|
componentName: "VueUiXy",
|
|
@@ -1195,7 +1185,7 @@ const _n = {
|
|
|
1195
1185
|
});
|
|
1196
1186
|
});
|
|
1197
1187
|
});
|
|
1198
|
-
function
|
|
1188
|
+
function Ol() {
|
|
1199
1189
|
if (!Object.keys(d.config || {}).length)
|
|
1200
1190
|
return $t;
|
|
1201
1191
|
const l = Fa({
|
|
@@ -1220,7 +1210,7 @@ const _n = {
|
|
|
1220
1210
|
set(l) {
|
|
1221
1211
|
return l;
|
|
1222
1212
|
}
|
|
1223
|
-
}), t = y(
|
|
1213
|
+
}), t = y(Ol()), p = y({
|
|
1224
1214
|
dataLabels: { show: !0 },
|
|
1225
1215
|
showTooltip: !0,
|
|
1226
1216
|
showTable: !1,
|
|
@@ -1239,7 +1229,7 @@ const _n = {
|
|
|
1239
1229
|
const Lt = x(() => !!t.value.debug), { loading: xe, FINAL_DATASET: _e, manualLoading: bt } = gn({
|
|
1240
1230
|
...qo(d),
|
|
1241
1231
|
FINAL_CONFIG: t,
|
|
1242
|
-
prepareConfig:
|
|
1232
|
+
prepareConfig: Ol,
|
|
1243
1233
|
callback: () => {
|
|
1244
1234
|
Promise.resolve().then(async () => {
|
|
1245
1235
|
await il(), p.value.showTable = t.value.showTable;
|
|
@@ -1331,8 +1321,8 @@ const _n = {
|
|
|
1331
1321
|
const Ft = _a((l, s) => Pa({ data: l, threshold: s })), yt = (l) => Ft(l, t.value.downsample.threshold), Qe = x({
|
|
1332
1322
|
get: () => Math.max(..._e.value.map((l) => yt(l.series).length)),
|
|
1333
1323
|
set: (l) => l
|
|
1334
|
-
}), w = y({ start: 0, end: Qe.value }), We = y({ start: 0, end: Qe.value }),
|
|
1335
|
-
function
|
|
1324
|
+
}), w = y({ start: 0, end: Qe.value }), We = y({ start: 0, end: Qe.value }), ea = x(() => t.value.chart.zoom.preview.enable && (We.value.start !== w.value.start || We.value.end !== w.value.end));
|
|
1325
|
+
function Vl(l, s) {
|
|
1336
1326
|
We.value[l] = s;
|
|
1337
1327
|
}
|
|
1338
1328
|
function Ct() {
|
|
@@ -1344,11 +1334,11 @@ const _n = {
|
|
|
1344
1334
|
(!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));
|
|
1345
1335
|
}
|
|
1346
1336
|
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,
|
|
1337
|
+
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, z = Math.max(0, Math.min(o, R)), N = Math.max(0, Math.min(o, O));
|
|
1348
1338
|
return {
|
|
1349
|
-
x: l +
|
|
1339
|
+
x: l + z * F,
|
|
1350
1340
|
y: s,
|
|
1351
|
-
width: (N -
|
|
1341
|
+
width: (N - z) * F,
|
|
1352
1342
|
height: i,
|
|
1353
1343
|
fill: t.value.chart.zoom.preview.fill,
|
|
1354
1344
|
stroke: t.value.chart.zoom.preview.stroke,
|
|
@@ -1371,7 +1361,7 @@ const _n = {
|
|
|
1371
1361
|
const s = l - w.value.start;
|
|
1372
1362
|
s < 0 || l >= w.value.end ? M.value = null : M.value = s ?? null;
|
|
1373
1363
|
}, { immediate: !0 });
|
|
1374
|
-
const { isPrinting:
|
|
1364
|
+
const { isPrinting: Bl, isImaging: nt, generatePdf: ut, generateImage: it } = mn({
|
|
1375
1365
|
elementId: `vue-ui-xy_${Z.value}`,
|
|
1376
1366
|
fileName: t.value.chart.title.text || "vue-ui-xy",
|
|
1377
1367
|
options: t.value.chart.userOptions.print
|
|
@@ -1385,12 +1375,12 @@ const _n = {
|
|
|
1385
1375
|
return t.value.chart.grid.labels.yAxis.scaleMax;
|
|
1386
1376
|
const l = Math.max(...je.value.filter((s) => !ve.value.includes(s.id)).map((s) => Math.max(...s.series)));
|
|
1387
1377
|
return Rt.value === l ? l + 1 : l;
|
|
1388
|
-
}), Xe = x(() => t.value.chart.grid.labels.yAxis.useNiceScale ?
|
|
1378
|
+
}), Xe = x(() => t.value.chart.grid.labels.yAxis.useNiceScale ? ql(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) => {
|
|
1389
1379
|
const e = yt(l.series), i = `uniqueId_${s}`;
|
|
1390
1380
|
return {
|
|
1391
1381
|
...l,
|
|
1392
1382
|
slotAbsoluteIndex: s,
|
|
1393
|
-
series: e.map((a) =>
|
|
1383
|
+
series: e.map((a) => ha(a) ? a : null).slice(w.value.start, w.value.end),
|
|
1394
1384
|
color: po(l.color ? l.color : ll.value[s] ? ll.value[s] : ko[s]),
|
|
1395
1385
|
id: i,
|
|
1396
1386
|
scaleLabel: l.scaleLabel || i
|
|
@@ -1407,16 +1397,16 @@ const _n = {
|
|
|
1407
1397
|
series: l.series.map((e) => e + ol.value),
|
|
1408
1398
|
absoluteValues: l.series
|
|
1409
1399
|
})).filter((l) => !ve.value.includes(l.id)));
|
|
1410
|
-
function
|
|
1400
|
+
function ta() {
|
|
1411
1401
|
let l = 0;
|
|
1412
|
-
|
|
1402
|
+
Tl.value && (l = Array.from(Tl.value.querySelectorAll("text")).reduce((a, r) => {
|
|
1413
1403
|
const o = r.getComputedTextLength();
|
|
1414
1404
|
return (o > a ? o : a) + t.value.chart.grid.labels.yAxis.scaleValueOffsetX;
|
|
1415
1405
|
}, 0));
|
|
1416
1406
|
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;
|
|
1417
1407
|
return l + s + e;
|
|
1418
1408
|
}
|
|
1419
|
-
const tt = y(0), nl =
|
|
1409
|
+
const tt = y(0), nl = ba((l) => {
|
|
1420
1410
|
tt.value = l;
|
|
1421
1411
|
}, 100);
|
|
1422
1412
|
go((l) => {
|
|
@@ -1426,7 +1416,7 @@ const _n = {
|
|
|
1426
1416
|
nl(i[0].contentRect.height);
|
|
1427
1417
|
});
|
|
1428
1418
|
e.observe(s), l(() => e.disconnect());
|
|
1429
|
-
}),
|
|
1419
|
+
}), Ll(() => {
|
|
1430
1420
|
tt.value = 0;
|
|
1431
1421
|
});
|
|
1432
1422
|
const Ot = x(() => {
|
|
@@ -1434,11 +1424,11 @@ const _n = {
|
|
|
1434
1424
|
Zt.value && (l = Zt.value.getBBox().height);
|
|
1435
1425
|
let s = 0;
|
|
1436
1426
|
return Se.value && (s = tt.value), l + s + A.value.xAxis;
|
|
1437
|
-
}),
|
|
1427
|
+
}), yl = x(() => _e.value.some((l) => l.useProgression)), c = x(() => {
|
|
1438
1428
|
let l = 0;
|
|
1439
1429
|
const s = 36;
|
|
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 =
|
|
1441
|
-
const e = t.value.chart.labels.fontSize * 1.1, i =
|
|
1430
|
+
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 = ta());
|
|
1431
|
+
const e = t.value.chart.labels.fontSize * 1.1, i = yl.value ? 24 : 6;
|
|
1442
1432
|
if (Se.value) {
|
|
1443
1433
|
const o = Se.value.getBBox().x;
|
|
1444
1434
|
o < 0 && (l += Math.abs(o));
|
|
@@ -1460,26 +1450,26 @@ const _n = {
|
|
|
1460
1450
|
const o = c.value.width / S.value * r + c.value.left + ue.value;
|
|
1461
1451
|
return `M${o},${e} L${o},${i}`;
|
|
1462
1452
|
}).join(" ");
|
|
1463
|
-
}),
|
|
1453
|
+
}), El = x(() => {
|
|
1464
1454
|
if (!t.value.chart.grid.labels.xAxis.showCrosshairs) return "";
|
|
1465
1455
|
const l = c.value.width / S.value, s = t.value.chart.grid.labels.xAxis.crosshairSize, e = t.value.chart.grid.labels.xAxis.crosshairsAlwaysAtZero;
|
|
1466
1456
|
return D.value.map((i, a) => {
|
|
1467
1457
|
if (!i || !i.text) return null;
|
|
1468
|
-
const r = c.value.left + l * a + l / 2, o = e ?
|
|
1458
|
+
const r = c.value.left + l * a + l / 2, o = e ? ze.value - (ze.value === c.value.bottom ? 0 : s / 2) : c.value.bottom, F = e ? ze.value + s / (ze.value === c.value.bottom ? 1 : 2) : c.value.bottom + s;
|
|
1469
1459
|
return `M${r},${o} L${r},${F}`;
|
|
1470
1460
|
}).filter(Boolean).join(" ");
|
|
1471
1461
|
});
|
|
1472
|
-
function
|
|
1462
|
+
function pl() {
|
|
1473
1463
|
return !!qt?.vnode.props?.onSelectTimeLabel;
|
|
1474
1464
|
}
|
|
1475
|
-
function
|
|
1465
|
+
function la(l, s, e) {
|
|
1476
1466
|
if (!jt.value) {
|
|
1477
1467
|
const i = document.createElement("canvas");
|
|
1478
1468
|
jt.value = i.getContext("2d");
|
|
1479
1469
|
}
|
|
1480
1470
|
return jt.value.font = `normal ${l}px sans-serif`, jt.value;
|
|
1481
1471
|
}
|
|
1482
|
-
function
|
|
1472
|
+
function Hl() {
|
|
1483
1473
|
const l = Be.value.querySelectorAll(".vue-ui-xy-tag");
|
|
1484
1474
|
l.length && Array.from(l).forEach((s) => s.style.opacity = "0");
|
|
1485
1475
|
}
|
|
@@ -1488,9 +1478,9 @@ const _n = {
|
|
|
1488
1478
|
}
|
|
1489
1479
|
const Bt = y(!1);
|
|
1490
1480
|
async function ge(l = !1) {
|
|
1491
|
-
await
|
|
1481
|
+
await Ml(), Bt.value = l, jl.value && (bl.value = l);
|
|
1492
1482
|
}
|
|
1493
|
-
function
|
|
1483
|
+
function Dl() {
|
|
1494
1484
|
Ee.value = !Ee.value;
|
|
1495
1485
|
}
|
|
1496
1486
|
const v = x(() => {
|
|
@@ -1522,7 +1512,7 @@ const _n = {
|
|
|
1522
1512
|
return a === s || (s = a, e = l(...i)), e;
|
|
1523
1513
|
};
|
|
1524
1514
|
}
|
|
1525
|
-
const
|
|
1515
|
+
const T = _((l, s, e, i, a, r, o, F) => {
|
|
1526
1516
|
if (l)
|
|
1527
1517
|
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 }));
|
|
1528
1518
|
if (!s)
|
|
@@ -1539,17 +1529,17 @@ const _n = {
|
|
|
1539
1529
|
}
|
|
1540
1530
|
if (!O.length)
|
|
1541
1531
|
return i.map((Y, B) => ({ text: "", absoluteIndex: B }));
|
|
1542
|
-
const
|
|
1543
|
-
let U = Math.min(N,
|
|
1532
|
+
const z = O.length, N = R, ee = Math.max(2, Math.min(N - 3, z)), I = Math.min(z, N + 3);
|
|
1533
|
+
let U = Math.min(N, z), V = 1 / 0;
|
|
1544
1534
|
for (let Y = ee; Y <= I; Y += 1) {
|
|
1545
|
-
const B = (
|
|
1535
|
+
const B = (z - 1) % (Y - 1), se = Math.abs(Y - N), Oe = B * 10 + se;
|
|
1546
1536
|
Oe < V && (V = Oe, U = Y);
|
|
1547
1537
|
}
|
|
1548
1538
|
const he = /* @__PURE__ */ new Set();
|
|
1549
1539
|
if (U <= 1)
|
|
1550
|
-
he.add(O[Math.round((
|
|
1540
|
+
he.add(O[Math.round((z - 1) / 2)]);
|
|
1551
1541
|
else {
|
|
1552
|
-
const Y = (
|
|
1542
|
+
const Y = (z - 1) / (U - 1);
|
|
1553
1543
|
for (let B = 0; B < U; B += 1)
|
|
1554
1544
|
he.add(O[Math.round(B * Y)]);
|
|
1555
1545
|
}
|
|
@@ -1559,7 +1549,7 @@ const _n = {
|
|
|
1559
1549
|
}));
|
|
1560
1550
|
}), D = x(() => {
|
|
1561
1551
|
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 ?? "");
|
|
1562
|
-
return
|
|
1552
|
+
return T(
|
|
1563
1553
|
!!l.showOnlyFirstAndLast,
|
|
1564
1554
|
!!l.showOnlyAtModulo,
|
|
1565
1555
|
Math.max(1, f.value || 1),
|
|
@@ -1588,10 +1578,10 @@ const _n = {
|
|
|
1588
1578
|
});
|
|
1589
1579
|
}
|
|
1590
1580
|
const S = x(() => {
|
|
1591
|
-
const l =
|
|
1581
|
+
const l = Rl((w.value.end ?? 0) - (w.value.start ?? 0));
|
|
1592
1582
|
return Math.max(1, l);
|
|
1593
1583
|
});
|
|
1594
|
-
function
|
|
1584
|
+
function kl(l) {
|
|
1595
1585
|
X.value = l;
|
|
1596
1586
|
}
|
|
1597
1587
|
function st() {
|
|
@@ -1601,11 +1591,11 @@ const _n = {
|
|
|
1601
1591
|
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`));
|
|
1602
1592
|
}
|
|
1603
1593
|
function At(l, s) {
|
|
1604
|
-
const e =
|
|
1594
|
+
const e = Rl(l), i = Array(e).fill(0);
|
|
1605
1595
|
for (let a = 0; a < s.length && a < e; a += 1) i[a] = s[a] ?? 0;
|
|
1606
1596
|
return i;
|
|
1607
1597
|
}
|
|
1608
|
-
function
|
|
1598
|
+
function aa(l) {
|
|
1609
1599
|
const s = Math.max(..._e.value.map((e) => yt(e.series).length));
|
|
1610
1600
|
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;
|
|
1611
1601
|
}
|
|
@@ -1614,22 +1604,22 @@ const _n = {
|
|
|
1614
1604
|
if (!ul.value) {
|
|
1615
1605
|
ul.value = !0;
|
|
1616
1606
|
try {
|
|
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(
|
|
1618
|
-
|
|
1607
|
+
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(aa(s + 1), e) : e;
|
|
1608
|
+
Tt.value = !0, w.value.start = i, w.value.end = a, We.value.start = i, We.value.end = a, Ct(), Me.value = !0;
|
|
1619
1609
|
} finally {
|
|
1620
1610
|
queueMicrotask(() => {
|
|
1621
|
-
|
|
1611
|
+
Tt.value = !1;
|
|
1622
1612
|
}), ul.value = !1;
|
|
1623
1613
|
}
|
|
1624
1614
|
}
|
|
1625
1615
|
}
|
|
1626
|
-
const
|
|
1627
|
-
function
|
|
1628
|
-
ul.value ||
|
|
1616
|
+
const Tt = y(!1);
|
|
1617
|
+
function oa(l) {
|
|
1618
|
+
ul.value || Tt.value || l !== w.value.start && (w.value.start = l, We.value.start = l, Ct());
|
|
1629
1619
|
}
|
|
1630
1620
|
function La(l) {
|
|
1631
|
-
if (ul.value ||
|
|
1632
|
-
const s =
|
|
1621
|
+
if (ul.value || Tt.value) return;
|
|
1622
|
+
const s = aa(l);
|
|
1633
1623
|
s !== w.value.end && (w.value.end = s, We.value.end = s, Ct());
|
|
1634
1624
|
}
|
|
1635
1625
|
async function Ca() {
|
|
@@ -1642,10 +1632,10 @@ const _n = {
|
|
|
1642
1632
|
function sl(l) {
|
|
1643
1633
|
return l / (Ye(Va.value) ? Va.value : 1);
|
|
1644
1634
|
}
|
|
1645
|
-
const
|
|
1635
|
+
const ze = x(() => isNaN(sl(ol.value)) ? c.value.bottom : c.value.bottom - c.value.height * sl(ol.value));
|
|
1646
1636
|
function Ba(l) {
|
|
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 :
|
|
1648
|
-
return l.value >= 0 ? q(s - l.y <= 0 ? 1e-5 : s - l.y) : q(l.y -
|
|
1637
|
+
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 : ze.value;
|
|
1638
|
+
return l.value >= 0 ? q(s - l.y <= 0 ? 1e-5 : s - l.y) : q(l.y - ze.value <= 0 ? 1e-5 : l.y - ze.value);
|
|
1649
1639
|
}
|
|
1650
1640
|
function Ea(l) {
|
|
1651
1641
|
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);
|
|
@@ -1658,19 +1648,19 @@ const _n = {
|
|
|
1658
1648
|
line: Pt(s, l, 1)
|
|
1659
1649
|
};
|
|
1660
1650
|
});
|
|
1661
|
-
function
|
|
1651
|
+
function wl() {
|
|
1662
1652
|
return p.value.useIndividualScale && p.value.isStacked ? de.value.line - c.value.width / S.value * 0.1 : de.value.bar;
|
|
1663
1653
|
}
|
|
1664
|
-
function
|
|
1654
|
+
function na(l) {
|
|
1665
1655
|
return p.value.useIndividualScale && p.value.isStacked ? l.x + c.value.width / S.value * 0.05 : l.x + de.value.bar / 2;
|
|
1666
1656
|
}
|
|
1667
1657
|
function Ha(l) {
|
|
1668
|
-
return l.value >= 0 ? l.y : [null, void 0, NaN, 1 / 0, -1 / 0].includes(
|
|
1658
|
+
return l.value >= 0 ? l.y : [null, void 0, NaN, 1 / 0, -1 / 0].includes(ze.value) ? c.bottom.value : ze.value;
|
|
1669
1659
|
}
|
|
1670
1660
|
function Da(l) {
|
|
1671
1661
|
return l.value >= 0 ? l.y : [null, void 0, NaN, 1 / 0, -1 / 0].includes(l.zeroPosition) ? 0 : l.zeroPosition;
|
|
1672
1662
|
}
|
|
1673
|
-
const
|
|
1663
|
+
const Wl = y(null);
|
|
1674
1664
|
function Wa(l) {
|
|
1675
1665
|
const s = $e.value;
|
|
1676
1666
|
if (!s) return null;
|
|
@@ -1683,8 +1673,8 @@ const _n = {
|
|
|
1683
1673
|
return { x: I.x, y: I.y, ok: !0 };
|
|
1684
1674
|
}
|
|
1685
1675
|
}
|
|
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,
|
|
1687
|
-
return { x: O, y:
|
|
1676
|
+
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, z = (l.clientY - e.top - R) / a + i.y;
|
|
1677
|
+
return { x: O, y: z, ok: !0 };
|
|
1688
1678
|
}
|
|
1689
1679
|
let rl = 0;
|
|
1690
1680
|
function Co(l) {
|
|
@@ -1692,20 +1682,20 @@ const _n = {
|
|
|
1692
1682
|
rl = 0;
|
|
1693
1683
|
const s = Wa(l);
|
|
1694
1684
|
if (!s || !$e.value) {
|
|
1695
|
-
|
|
1685
|
+
ua();
|
|
1696
1686
|
return;
|
|
1697
1687
|
}
|
|
1698
1688
|
const { left: e, right: i, top: a, bottom: r, width: o } = c.value;
|
|
1699
1689
|
if (s.x < e || s.x > i || s.y < a || s.y > r) {
|
|
1700
|
-
|
|
1690
|
+
ua();
|
|
1701
1691
|
return;
|
|
1702
1692
|
}
|
|
1703
1693
|
const F = s.x - e, R = o / S.value, O = Math.floor(F / R);
|
|
1704
|
-
O >= 0 && O < S.value ?
|
|
1694
|
+
O >= 0 && O < S.value ? Wl.value !== O && (Wl.value = O, to(!0, O)) : ua();
|
|
1705
1695
|
}));
|
|
1706
1696
|
}
|
|
1707
|
-
function
|
|
1708
|
-
rl && (cancelAnimationFrame(rl), rl = 0),
|
|
1697
|
+
function ua() {
|
|
1698
|
+
rl && (cancelAnimationFrame(rl), rl = 0), Wl.value = null, to(!1, null);
|
|
1709
1699
|
}
|
|
1710
1700
|
function Xa(l) {
|
|
1711
1701
|
const s = Wa(l);
|
|
@@ -1719,7 +1709,7 @@ const _n = {
|
|
|
1719
1709
|
}
|
|
1720
1710
|
}
|
|
1721
1711
|
}
|
|
1722
|
-
|
|
1712
|
+
Wl.value != null && Ya(Wl.value);
|
|
1723
1713
|
}
|
|
1724
1714
|
function Ya(l) {
|
|
1725
1715
|
const s = Fe.value.map((e) => ({
|
|
@@ -1745,7 +1735,7 @@ const _n = {
|
|
|
1745
1735
|
type: l.type
|
|
1746
1736
|
}));
|
|
1747
1737
|
}
|
|
1748
|
-
async function
|
|
1738
|
+
async function To({ scale: l = 2 } = {}) {
|
|
1749
1739
|
if (!Be.value) return;
|
|
1750
1740
|
const { width: s, height: e } = Be.value.getBoundingClientRect(), i = s / e, { imageUri: a, base64: r } = await kn({ domElement: Be.value, base64: !0, img: !0, scale: l });
|
|
1751
1741
|
return {
|
|
@@ -1771,7 +1761,7 @@ const _n = {
|
|
|
1771
1761
|
type: s.type
|
|
1772
1762
|
}))), gt.value += 1;
|
|
1773
1763
|
}
|
|
1774
|
-
const
|
|
1764
|
+
const zo = x(() => {
|
|
1775
1765
|
const l = t.value.chart.title.text || "Chart visualization", s = t.value.chart.title.subtitle.text || "";
|
|
1776
1766
|
return `${l}. ${s}`;
|
|
1777
1767
|
}), Ua = x(() => ({
|
|
@@ -1812,7 +1802,7 @@ const _n = {
|
|
|
1812
1802
|
fontFamily: t.value.chart.fontFamily,
|
|
1813
1803
|
prefix: t.value.chart.labels.prefix,
|
|
1814
1804
|
suffix: t.value.chart.labels.suffix,
|
|
1815
|
-
colNames: v.value.map((l, s) => t.value.table.useDefaultTimeFormat ? l.text :
|
|
1805
|
+
colNames: v.value.map((l, s) => t.value.table.useDefaultTimeFormat ? l.text : Sl.value(s + w.value.start, t.value.table.timeFormat)),
|
|
1816
1806
|
thead: {
|
|
1817
1807
|
backgroundColor: t.value.table.th.backgroundColor,
|
|
1818
1808
|
color: t.value.table.th.color,
|
|
@@ -1836,14 +1826,14 @@ const _n = {
|
|
|
1836
1826
|
s[e] = {
|
|
1837
1827
|
min: Math.min(...a) || 0,
|
|
1838
1828
|
max: Math.max(...a) || 1,
|
|
1839
|
-
groupId: `scale_group_${
|
|
1829
|
+
groupId: `scale_group_${ga()}`
|
|
1840
1830
|
};
|
|
1841
1831
|
}
|
|
1842
1832
|
return s;
|
|
1843
1833
|
}), Ro = x(() => {
|
|
1844
1834
|
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 -
|
|
1846
|
-
}),
|
|
1835
|
+
return c.value.width / S.value / l - ia.value * l;
|
|
1836
|
+
}), ia = x(() => de.value.line * t.value.bar.periodGap), sa = x(() => Math.max(1e-5, wl() - (p.value.useIndividualScale && p.value.isStacked ? 0 : ia.value))), ra = x(() => sa.value * Math.min(Math.abs(t.value.bar.innerGap), 0.95)), Oo = x(() => {
|
|
1847
1837
|
if (!t.value.chart.zoom.minimap.show) return [];
|
|
1848
1838
|
const l = qa.value.filter((a) => !ve.value.includes(a.id)), s = Math.max(...l.map((a) => a.series.length)), e = [];
|
|
1849
1839
|
for (let a = 0; a < s; a += 1)
|
|
@@ -1853,7 +1843,7 @@ const _n = {
|
|
|
1853
1843
|
}), Vo = x(() => t.value.chart.zoom.minimap.show ? qa.value.map((s) => ({
|
|
1854
1844
|
...s,
|
|
1855
1845
|
isVisible: !ve.value.includes(s.id)
|
|
1856
|
-
})) : []),
|
|
1846
|
+
})) : []), zt = x(() => Fe.value.map((l) => ({
|
|
1857
1847
|
slotAbsoluteIndex: l.slotAbsoluteIndex,
|
|
1858
1848
|
shape: l.shape || null,
|
|
1859
1849
|
name: l.name,
|
|
@@ -1864,23 +1854,23 @@ const _n = {
|
|
|
1864
1854
|
prefix: l.prefix || t.value.chart.labels.prefix,
|
|
1865
1855
|
suffix: l.suffix || t.value.chart.labels.suffix
|
|
1866
1856
|
}))), Za = x(() => Xe.value.ticks.map((l) => ({
|
|
1867
|
-
y: l >= 0 ?
|
|
1857
|
+
y: l >= 0 ? ze.value - c.value.height * sl(l) : ze.value + c.value.height * sl(Math.abs(l)),
|
|
1868
1858
|
value: l,
|
|
1869
1859
|
prefix: t.value.chart.labels.prefix,
|
|
1870
1860
|
suffix: t.value.chart.labels.suffix
|
|
1871
1861
|
}))), Ka = x(() => {
|
|
1872
1862
|
const l = t.value.chart.annotations;
|
|
1873
|
-
if (!l || !Array.isArray(l) || l.every((
|
|
1863
|
+
if (!l || !Array.isArray(l) || l.every((z) => !z.show)) return [];
|
|
1874
1864
|
const s = l.filter(
|
|
1875
|
-
(
|
|
1865
|
+
(z) => z.show && (z.yAxis.yTop != null || z.yAxis.yBottom != null)
|
|
1876
1866
|
);
|
|
1877
1867
|
if (!s.length) return [];
|
|
1878
|
-
const { left: e, right: i } = c.value, a =
|
|
1879
|
-
const N = (
|
|
1868
|
+
const { left: e, right: i } = c.value, a = ze.value, r = c.value.height, o = Xe.value.min, R = Xe.value.max - o, O = (z) => {
|
|
1869
|
+
const N = (z - 0) / R;
|
|
1880
1870
|
return a - N * r;
|
|
1881
1871
|
};
|
|
1882
|
-
return s.map((
|
|
1883
|
-
const { yAxis: { yTop: N, yBottom: ee, label: I } } =
|
|
1872
|
+
return s.map((z) => {
|
|
1873
|
+
const { yAxis: { yTop: N, yBottom: ee, label: I } } = z, U = N != null && ee != null && N !== ee, V = N == null ? null : O(N), he = ee == null ? null : O(ee), Y = la(I.fontSize);
|
|
1884
1874
|
Y.font = `${I.fontSize}px sans-serif`;
|
|
1885
1875
|
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;
|
|
1886
1876
|
let J;
|
|
@@ -1888,12 +1878,12 @@ const _n = {
|
|
|
1888
1878
|
const Q = Ge - se * 0.75 - I.padding.top;
|
|
1889
1879
|
return {
|
|
1890
1880
|
show: ![V, he, Q].includes(NaN),
|
|
1891
|
-
id: `annotation_y_${
|
|
1881
|
+
id: `annotation_y_${ga()}`,
|
|
1892
1882
|
hasArea: U,
|
|
1893
1883
|
areaHeight: U ? Math.abs(V - he) : 0,
|
|
1894
1884
|
yTop: V,
|
|
1895
1885
|
yBottom: he,
|
|
1896
|
-
config:
|
|
1886
|
+
config: z.yAxis,
|
|
1897
1887
|
x1: e,
|
|
1898
1888
|
x2: i,
|
|
1899
1889
|
_text: { x: Oe, y: Ge },
|
|
@@ -1922,14 +1912,14 @@ const _n = {
|
|
|
1922
1912
|
Et(o);
|
|
1923
1913
|
const R = P.value[o.scaleLabel].min, O = P.value[o.scaleLabel].max;
|
|
1924
1914
|
o.absoluteValues.filter((K) => ![null, void 0].includes(K)).map((K) => (K - R) / (O - R));
|
|
1925
|
-
const
|
|
1915
|
+
const z = {
|
|
1926
1916
|
valueMin: R,
|
|
1927
1917
|
valueMax: O < 0 ? 0 : O
|
|
1928
1918
|
}, N = {
|
|
1929
1919
|
max: o.scaleMax || Math.max(...o.absoluteValues) || 1,
|
|
1930
1920
|
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)))
|
|
1931
|
-
}, ee = o.scaleSteps || t.value.chart.grid.labels.yAxis.commonScaleSteps, I = 1.0000001, U = t.value.chart.grid.labels.yAxis.useNiceScale ?
|
|
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 *
|
|
1921
|
+
}, ee = o.scaleSteps || t.value.chart.grid.labels.yAxis.commonScaleSteps, I = 1.0000001, U = t.value.chart.grid.labels.yAxis.useNiceScale ? ql(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 ? ql(z.valueMin, z.valueMax === z.valueMin ? z.valueMax * I : z.valueMax, ee) : hl(z.valueMin, z.valueMax === z.valueMin ? z.valueMax * I : z.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, Ie = et.value.filter((K) => K.type === "bar").filter((K) => !ve.value.includes(K.id)).length, Gl = o.series.map((K, pe) => {
|
|
1922
|
+
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 * Ie - Ro.value / 2 - F * ia.value;
|
|
1933
1923
|
return {
|
|
1934
1924
|
yOffset: q(J),
|
|
1935
1925
|
individualHeight: q(Q),
|
|
@@ -1977,7 +1967,7 @@ const _n = {
|
|
|
1977
1967
|
individualScale: o.autoScaling ? V : U,
|
|
1978
1968
|
individualMax: o.autoScaling ? se : B,
|
|
1979
1969
|
zeroPosition: o.autoScaling ? Ue : be,
|
|
1980
|
-
plots: o.autoScaling ? Ht :
|
|
1970
|
+
plots: o.autoScaling ? Ht : Gl,
|
|
1981
1971
|
groupId: P.value[o.scaleLabel].groupId
|
|
1982
1972
|
};
|
|
1983
1973
|
});
|
|
@@ -1987,40 +1977,40 @@ const _n = {
|
|
|
1987
1977
|
Et(o);
|
|
1988
1978
|
const R = P.value[o.scaleLabel].min, O = P.value[o.scaleLabel].max;
|
|
1989
1979
|
o.absoluteValues.filter((G) => ![null, void 0].includes(G)).map((G) => (G - R) / (O - R));
|
|
1990
|
-
const
|
|
1980
|
+
const z = {
|
|
1991
1981
|
valueMin: R,
|
|
1992
1982
|
valueMax: O
|
|
1993
1983
|
}, N = {
|
|
1994
1984
|
max: o.scaleMax || Math.max(...o.absoluteValues) || 1,
|
|
1995
1985
|
min: o.scaleMin || (Math.min(...o.absoluteValues) > 0 ? 0 : Math.min(...o.absoluteValues))
|
|
1996
|
-
}, ee = o.scaleSteps || t.value.chart.grid.labels.yAxis.commonScaleSteps, I = 1.0000001, U = t.value.chart.grid.labels.yAxis.useNiceScale ?
|
|
1997
|
-
const Xo = p.value.useIndividualScale ? (o.absoluteValues[
|
|
1986
|
+
}, ee = o.scaleSteps || t.value.chart.grid.labels.yAxis.commonScaleSteps, I = 1.0000001, U = t.value.chart.grid.labels.yAxis.useNiceScale ? ql(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 ? ql(z.valueMin, z.valueMax === z.valueMin ? z.valueMax * I : z.valueMax, ee) : hl(z.valueMin, z.valueMax === z.valueMin ? z.valueMax * I : z.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, Ie = o.series.map((G, Ce) => {
|
|
1987
|
+
const Xo = p.value.useIndividualScale ? (o.absoluteValues[Ce] + Math.abs(he)) / B : sl(G);
|
|
1998
1988
|
return {
|
|
1999
|
-
x: q(c.value.left + de.value.line / 2 + de.value.line *
|
|
1989
|
+
x: q(c.value.left + de.value.line / 2 + de.value.line * Ce),
|
|
2000
1990
|
y: q(c.value.bottom - J - Q * Xo),
|
|
2001
|
-
value: o.absoluteValues[
|
|
2002
|
-
comment: o.comments && o.comments.slice(w.value.start, w.value.end)[
|
|
1991
|
+
value: o.absoluteValues[Ce],
|
|
1992
|
+
comment: o.comments && o.comments.slice(w.value.start, w.value.end)[Ce] || ""
|
|
2003
1993
|
};
|
|
2004
|
-
}),
|
|
2005
|
-
x: q(c.value.left + de.value.line / 2 + de.value.line *
|
|
1994
|
+
}), Gl = 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, Ce) => [void 0, null].includes(o.absoluteValues[Ce]) ? {
|
|
1995
|
+
x: q(c.value.left + de.value.line / 2 + de.value.line * Ce),
|
|
2006
1996
|
y: be,
|
|
2007
|
-
value: o.absoluteValues[
|
|
2008
|
-
comment: o.comments && o.comments.slice(w.value.start, w.value.end)[
|
|
1997
|
+
value: o.absoluteValues[Ce],
|
|
1998
|
+
comment: o.comments && o.comments.slice(w.value.start, w.value.end)[Ce] || ""
|
|
2009
1999
|
} : {
|
|
2010
|
-
x: q(c.value.left + de.value.line / 2 + de.value.line *
|
|
2011
|
-
y: q(c.value.bottom - J - (Q *
|
|
2012
|
-
value: o.absoluteValues[
|
|
2013
|
-
comment: o.comments && o.comments.slice(w.value.start, w.value.end)[
|
|
2014
|
-
}), Ht = t.value.line.cutNullValues ? ya(
|
|
2000
|
+
x: q(c.value.left + de.value.line / 2 + de.value.line * Ce),
|
|
2001
|
+
y: q(c.value.bottom - J - (Q * Gl[Ce] || 0)),
|
|
2002
|
+
value: o.absoluteValues[Ce],
|
|
2003
|
+
comment: o.comments && o.comments.slice(w.value.start, w.value.end)[Ce] || ""
|
|
2004
|
+
}), Ht = t.value.line.cutNullValues ? ya(Ie) : pa(Ie.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(Ie) : wa(Ie.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
2005
|
y: G >= 0 ? be - Q * (G / B) : be + Q * Math.abs(G) / B,
|
|
2016
2006
|
value: G,
|
|
2017
2007
|
prefix: o.prefix || t.value.chart.labels.prefix,
|
|
2018
2008
|
suffix: o.suffix || t.value.chart.labels.suffix,
|
|
2019
2009
|
datapoint: o
|
|
2020
2010
|
})), Dt = V.ticks.map((G) => {
|
|
2021
|
-
const
|
|
2011
|
+
const Ce = (G - V.min) / (V.max - V.min);
|
|
2022
2012
|
return {
|
|
2023
|
-
y: G >= 0 ? Ue - Q *
|
|
2013
|
+
y: G >= 0 ? Ue - Q * Ce : Ue + Q * Ce,
|
|
2024
2014
|
value: G,
|
|
2025
2015
|
prefix: o.prefix || t.value.chart.labels.prefix,
|
|
2026
2016
|
suffix: o.suffix || t.value.chart.labels.suffix,
|
|
@@ -2028,7 +2018,7 @@ const _n = {
|
|
|
2028
2018
|
};
|
|
2029
2019
|
});
|
|
2030
2020
|
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;
|
|
2031
|
-
const vl = p.value.useIndividualScale ? o.autoScaling ? Ue : be :
|
|
2021
|
+
const vl = p.value.useIndividualScale ? o.autoScaling ? Ue : be : ze.value, Ul = Math.max(Math.max(o.autoScaling ? Ue : pe.at(-1) ? pe.at(-1).y : 0, c.value.top), vl);
|
|
2032
2022
|
return {
|
|
2033
2023
|
...o,
|
|
2034
2024
|
yOffset: J,
|
|
@@ -2039,17 +2029,17 @@ const _n = {
|
|
|
2039
2029
|
individualMax: o.autoScaling ? se : B,
|
|
2040
2030
|
zeroPosition: o.autoScaling ? Ue : be,
|
|
2041
2031
|
curve: o.autoScaling ? oe : Ht,
|
|
2042
|
-
plots: o.autoScaling ? Ve :
|
|
2032
|
+
plots: o.autoScaling ? Ve : Ie,
|
|
2043
2033
|
area: o.useArea ? p.value.useIndividualScale ? t.value.line.cutNullValues ? wo(
|
|
2044
|
-
o.autoScaling ? Ve :
|
|
2045
|
-
|
|
2034
|
+
o.autoScaling ? Ve : Ie,
|
|
2035
|
+
Ul
|
|
2046
2036
|
) : So(
|
|
2047
|
-
o.autoScaling ? Ve.filter((G) => G.value !== null) :
|
|
2048
|
-
|
|
2049
|
-
) : t.value.line.cutNullValues ? wo(
|
|
2037
|
+
o.autoScaling ? Ve.filter((G) => G.value !== null) : Ie.filter((G) => G.value !== null),
|
|
2038
|
+
Ul
|
|
2039
|
+
) : t.value.line.cutNullValues ? wo(Ie, Ul) : So(Ie.filter((G) => G.value !== null), Ul) : "",
|
|
2050
2040
|
curveAreas: o.useArea ? an(
|
|
2051
|
-
o.autoScaling ? t.value.line.cutNullValues ? Ve : Ve.filter((G) => G.value !== null) : t.value.line.cutNullValues ?
|
|
2052
|
-
|
|
2041
|
+
o.autoScaling ? t.value.line.cutNullValues ? Ve : Ve.filter((G) => G.value !== null) : t.value.line.cutNullValues ? Ie : Ie.filter((G) => G.value !== null),
|
|
2042
|
+
Ul,
|
|
2053
2043
|
t.value.line.cutNullValues
|
|
2054
2044
|
) : [],
|
|
2055
2045
|
straight: o.autoScaling ? K : ye,
|
|
@@ -2065,10 +2055,10 @@ const _n = {
|
|
|
2065
2055
|
const O = {
|
|
2066
2056
|
valueMin: F,
|
|
2067
2057
|
valueMax: R
|
|
2068
|
-
},
|
|
2058
|
+
}, z = {
|
|
2069
2059
|
max: o.scaleMax || Math.max(...o.absoluteValues) || 1,
|
|
2070
2060
|
min: o.scaleMin || Math.min(...o.absoluteValues) > 0 ? 0 : Math.min(...o.absoluteValues)
|
|
2071
|
-
}, N = o.scaleSteps || t.value.chart.grid.labels.yAxis.commonScaleSteps, ee = 1.0000001, I = hl(
|
|
2061
|
+
}, N = o.scaleSteps || t.value.chart.grid.labels.yAxis.commonScaleSteps, ee = 1.0000001, I = hl(z.min, z.max === z.min ? z.max * ee : z.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
2062
|
const K = p.value.useIndividualScale ? (o.absoluteValues[ye] + Math.abs(V)) / Y : sl(oe);
|
|
2073
2063
|
return {
|
|
2074
2064
|
x: q(c.value.left + de.value.plot / 2 + de.value.plot * ye),
|
|
@@ -2076,9 +2066,9 @@ const _n = {
|
|
|
2076
2066
|
value: o.absoluteValues[ye],
|
|
2077
2067
|
comment: o.comments && o.comments.slice(w.value.start, w.value.end)[ye] || ""
|
|
2078
2068
|
};
|
|
2079
|
-
}),
|
|
2069
|
+
}), Ie = 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))), Gl = o.series.map((oe, ye) => ({
|
|
2080
2070
|
x: q(c.value.left + de.value.plot / 2 + de.value.plot * ye),
|
|
2081
|
-
y: q(c.value.bottom - Ge - (J *
|
|
2071
|
+
y: q(c.value.bottom - Ge - (J * Ie[ye] || 0)),
|
|
2082
2072
|
value: o.absoluteValues[ye],
|
|
2083
2073
|
comment: o.comments && o.comments.slice(w.value.start, w.value.end)[ye] || ""
|
|
2084
2074
|
})), Ve = I.ticks.map((oe) => ({
|
|
@@ -2106,11 +2096,11 @@ const _n = {
|
|
|
2106
2096
|
individualScale: o.autoScaling ? U : I,
|
|
2107
2097
|
individualMax: o.autoScaling ? B : Y,
|
|
2108
2098
|
zeroPosition: o.autoScaling ? be : Q,
|
|
2109
|
-
plots: o.autoScaling ?
|
|
2099
|
+
plots: o.autoScaling ? Gl : Ue,
|
|
2110
2100
|
groupId: P.value[o.scaleLabel].groupId
|
|
2111
2101
|
};
|
|
2112
2102
|
});
|
|
2113
|
-
}),
|
|
2103
|
+
}), Xl = x(() => {
|
|
2114
2104
|
const l = Re.value.map((r) => ({
|
|
2115
2105
|
name: r.name,
|
|
2116
2106
|
color: r.color,
|
|
@@ -2156,7 +2146,7 @@ const _n = {
|
|
|
2156
2146
|
id: r.id,
|
|
2157
2147
|
groupId: r.groupId,
|
|
2158
2148
|
scaleLabel: r.scaleLabel,
|
|
2159
|
-
name:
|
|
2149
|
+
name: Ae(
|
|
2160
2150
|
t.value.chart.grid.labels.yAxis.serieNameFormatter,
|
|
2161
2151
|
R,
|
|
2162
2152
|
R,
|
|
@@ -2182,13 +2172,13 @@ const _n = {
|
|
|
2182
2172
|
if (!o || !F) return;
|
|
2183
2173
|
const R = Re.value.find((I) => I.name === o), O = Re.value.find((I) => I.name === F);
|
|
2184
2174
|
if (!R || !O || R.type !== "line" || O.type !== "line") return;
|
|
2185
|
-
const
|
|
2175
|
+
const z = e?.[r]?.[0] ?? R.color, N = e?.[r]?.[1] ?? O.color;
|
|
2186
2176
|
on({
|
|
2187
2177
|
lineA: R.plots,
|
|
2188
2178
|
lineB: O.plots,
|
|
2189
2179
|
smoothA: !!R.smooth,
|
|
2190
2180
|
smoothB: !!O.smooth,
|
|
2191
|
-
colorLineA:
|
|
2181
|
+
colorLineA: z,
|
|
2192
2182
|
colorLineB: N,
|
|
2193
2183
|
sampleStepPx: 2,
|
|
2194
2184
|
cutNullValues: t.value.line.cutNullValues
|
|
@@ -2197,14 +2187,14 @@ const _n = {
|
|
|
2197
2187
|
});
|
|
2198
2188
|
}), i;
|
|
2199
2189
|
}), ja = x(() => ({
|
|
2200
|
-
datapoint:
|
|
2190
|
+
datapoint: zt.value,
|
|
2201
2191
|
seriesIndex: M.value,
|
|
2202
2192
|
series: et.value,
|
|
2203
2193
|
bars: It.value,
|
|
2204
2194
|
lines: Re.value,
|
|
2205
2195
|
plots: rt.value,
|
|
2206
2196
|
config: t.value
|
|
2207
|
-
})),
|
|
2197
|
+
})), Sl = x(() => {
|
|
2208
2198
|
const l = t.value.chart.grid.labels.xAxisLabels.datetimeFormatter, s = bn({
|
|
2209
2199
|
useUTC: l.useUTC,
|
|
2210
2200
|
locale: yn[l.locale] || { months: [], shortMonths: [], days: [], shortDays: [] },
|
|
@@ -2215,31 +2205,31 @@ const _n = {
|
|
|
2215
2205
|
return r == null ? "" : s.formatDate(new Date(r), i);
|
|
2216
2206
|
};
|
|
2217
2207
|
}), Aa = x(() => (t.value.chart.grid.labels.xAxisLabels.values || []).map((s, e) => ({
|
|
2218
|
-
text:
|
|
2208
|
+
text: Sl.value(e, t.value.chart.zoom.timeFormat),
|
|
2219
2209
|
absoluteIndex: e
|
|
2220
|
-
}))),
|
|
2210
|
+
}))), ca = y(!1);
|
|
2221
2211
|
x(() => {
|
|
2222
2212
|
let l = "", s = "";
|
|
2223
2213
|
if (t.value.chart.zoom.preview.enable)
|
|
2224
2214
|
return { left: l, right: s };
|
|
2225
|
-
|
|
2215
|
+
ca.value = !1;
|
|
2226
2216
|
const e = t.value.chart.zoom.customFormat;
|
|
2227
|
-
if (
|
|
2217
|
+
if (xa(e))
|
|
2228
2218
|
try {
|
|
2229
2219
|
const i = e({
|
|
2230
2220
|
absoluteIndex: w.value.start,
|
|
2231
2221
|
seriesIndex: w.value.start,
|
|
2232
|
-
datapoint:
|
|
2222
|
+
datapoint: zt.value
|
|
2233
2223
|
}), a = e({
|
|
2234
2224
|
absoluteIndex: w.value.end - 1,
|
|
2235
2225
|
seriesIndex: w.value.end - 1,
|
|
2236
|
-
datapoint:
|
|
2226
|
+
datapoint: zt.value
|
|
2237
2227
|
});
|
|
2238
|
-
typeof i == "string" && typeof a == "string" && (l = i, s = a,
|
|
2228
|
+
typeof i == "string" && typeof a == "string" && (l = i, s = a, ca.value = !0);
|
|
2239
2229
|
} catch {
|
|
2240
|
-
console.warn("Custom format cannot be applied on zoom labels."),
|
|
2230
|
+
console.warn("Custom format cannot be applied on zoom labels."), ca.value = !1;
|
|
2241
2231
|
}
|
|
2242
|
-
if (!
|
|
2232
|
+
if (!ca.value) {
|
|
2243
2233
|
l = t.value.chart.grid.labels.xAxisLabels.datetimeFormatter.enable && !t.value.chart.zoom.useDefaultFormat ? Aa.value[w.value.start]?.text || "" : v.value[0]?.text || "";
|
|
2244
2234
|
const i = Math.max(w.value.start, w.value.end - 1);
|
|
2245
2235
|
s = t.value.chart.grid.labels.xAxisLabels.datetimeFormatter.enable && !t.value.chart.zoom.useDefaultFormat ? Aa.value[i]?.text || "" : v.value.at(-1)?.text || "";
|
|
@@ -2247,12 +2237,12 @@ const _n = {
|
|
|
2247
2237
|
return { left: l, right: s };
|
|
2248
2238
|
});
|
|
2249
2239
|
const Bo = x(() => {
|
|
2250
|
-
let l = "", s =
|
|
2240
|
+
let l = "", s = zt.value.map((a) => a.value).filter((a) => ha(a) && a !== null).reduce((a, r) => Math.abs(a) + Math.abs(r), 0);
|
|
2251
2241
|
const e = v.value[M.value], i = t.value.chart.tooltip.customFormat;
|
|
2252
|
-
if (
|
|
2242
|
+
if (xa(i) && nn(() => i({
|
|
2253
2243
|
absoluteIndex: M.value + w.value.start,
|
|
2254
2244
|
seriesIndex: M.value,
|
|
2255
|
-
datapoint:
|
|
2245
|
+
datapoint: zt.value,
|
|
2256
2246
|
series: et.value,
|
|
2257
2247
|
bars: It.value,
|
|
2258
2248
|
lines: Re.value,
|
|
@@ -2262,7 +2252,7 @@ const _n = {
|
|
|
2262
2252
|
return i({
|
|
2263
2253
|
absoluteIndex: M.value + w.value.start,
|
|
2264
2254
|
seriesIndex: M.value,
|
|
2265
|
-
datapoint:
|
|
2255
|
+
datapoint: zt.value,
|
|
2266
2256
|
series: et.value,
|
|
2267
2257
|
bars: It.value,
|
|
2268
2258
|
lines: Re.value,
|
|
@@ -2270,15 +2260,15 @@ const _n = {
|
|
|
2270
2260
|
config: t.value
|
|
2271
2261
|
});
|
|
2272
2262
|
if (e && e.text && t.value.chart.tooltip.showTimeLabel) {
|
|
2273
|
-
const a =
|
|
2263
|
+
const a = Sl.value(M.value + w.value.start, t.value.chart.tooltip.timeFormat);
|
|
2274
2264
|
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>`;
|
|
2275
2265
|
}
|
|
2276
|
-
return
|
|
2277
|
-
if (
|
|
2266
|
+
return zt.value.forEach((a) => {
|
|
2267
|
+
if (ha(a.value)) {
|
|
2278
2268
|
let r = "", o = "";
|
|
2279
2269
|
switch (Qt.value[a.type]) {
|
|
2280
2270
|
case "bar":
|
|
2281
|
-
r = `<svg viewBox="0 0 40 40" height="14" width="14">${
|
|
2271
|
+
r = `<svg viewBox="0 0 40 40" height="14" width="14">${gl.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="${gl.pattern ? `url(#pattern_${Z.value}_${a.slotAbsoluteIndex}` : a.color}" /></svg>`;
|
|
2282
2272
|
break;
|
|
2283
2273
|
case "line":
|
|
2284
2274
|
!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>`;
|
|
@@ -2313,7 +2303,7 @@ const _n = {
|
|
|
2313
2303
|
break;
|
|
2314
2304
|
}
|
|
2315
2305
|
}
|
|
2316
|
-
l += `<div style="display:flex;flex-direction:row; align-items:center;gap:3px;"><div style="width:20px">${r}</div> ${a.name}: <b>${t.value.chart.tooltip.showValue ?
|
|
2306
|
+
l += `<div style="display:flex;flex-direction:row; align-items:center;gap:3px;"><div style="width:20px">${r}</div> ${a.name}: <b>${t.value.chart.tooltip.showValue ? Ae(
|
|
2317
2307
|
a.type === "line" ? t.value.line.labels.formatter : a.type === "bar" ? t.value.bar.labels.formatter : t.value.plot.labels.formatter,
|
|
2318
2308
|
a.value,
|
|
2319
2309
|
lt({
|
|
@@ -2338,12 +2328,12 @@ const _n = {
|
|
|
2338
2328
|
type: e.type
|
|
2339
2329
|
})), s = [];
|
|
2340
2330
|
return v.value.forEach((e, i) => {
|
|
2341
|
-
const a = t.value.table.useDefaultTimeFormat ? [e.text] : [
|
|
2331
|
+
const a = t.value.table.useDefaultTimeFormat ? [e.text] : [Sl.value(i + w.value.start, t.value.table.timeFormat)];
|
|
2342
2332
|
Fe.value.forEach((r) => {
|
|
2343
2333
|
a.push(Ye(r.absoluteValues[i]) ? Number(r.absoluteValues[i].toFixed(t.value.table.rounding)) : "");
|
|
2344
2334
|
}), s.push(a);
|
|
2345
2335
|
}), { head: l, body: s };
|
|
2346
|
-
}),
|
|
2336
|
+
}), va = x(() => {
|
|
2347
2337
|
const l = t.value.table.showSum;
|
|
2348
2338
|
let s = [""].concat(Fe.value.map((r) => r.name));
|
|
2349
2339
|
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>'));
|
|
@@ -2352,9 +2342,9 @@ const _n = {
|
|
|
2352
2342
|
const o = Fe.value.map((F) => F.absoluteValues[r] ?? 0).reduce((F, R) => F + R, 0);
|
|
2353
2343
|
e.push(
|
|
2354
2344
|
[
|
|
2355
|
-
t.value.table.useDefaultTimeFormat ? v.value[r].text ?? "-" :
|
|
2345
|
+
t.value.table.useDefaultTimeFormat ? v.value[r].text ?? "-" : Sl.value(r + w.value.start, t.value.table.timeFormat)
|
|
2356
2346
|
].concat(Fe.value.map(
|
|
2357
|
-
(F) =>
|
|
2347
|
+
(F) => Ae(
|
|
2358
2348
|
F.type === "line" ? t.value.line.labels.formatter : F.type === "bar" ? t.value.bar.labels.formatter : t.value.plot.labels.formatter,
|
|
2359
2349
|
F.absoluteValues[r] ?? 0,
|
|
2360
2350
|
lt({
|
|
@@ -2382,12 +2372,12 @@ const _n = {
|
|
|
2382
2372
|
}, a = [t.value.table.columnNames.period].concat(Fe.value.map((r) => r.name)).concat(t.value.table.columnNames.total);
|
|
2383
2373
|
return { head: s, body: e, config: i, colNames: a };
|
|
2384
2374
|
});
|
|
2385
|
-
function
|
|
2375
|
+
function Ta(l = null) {
|
|
2386
2376
|
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);
|
|
2387
2377
|
l ? l(r) : dn({ csvContent: r, title: t.value.chart.title.text || "vue-ui-xy" });
|
|
2388
2378
|
}
|
|
2389
2379
|
function to(l, s = null) {
|
|
2390
|
-
|
|
2380
|
+
xl.value = l;
|
|
2391
2381
|
const e = Fe.value.map((i) => ({
|
|
2392
2382
|
name: i.name,
|
|
2393
2383
|
value: [null, void 0, NaN].includes(i.absoluteValues[s]) ? null : i.absoluteValues[s],
|
|
@@ -2406,44 +2396,44 @@ const _n = {
|
|
|
2406
2396
|
p.value.showTooltip = !p.value.showTooltip;
|
|
2407
2397
|
}
|
|
2408
2398
|
function no(l) {
|
|
2409
|
-
Pe.value = l,
|
|
2399
|
+
Pe.value = l, Il.value += 1;
|
|
2410
2400
|
}
|
|
2411
2401
|
function uo() {
|
|
2412
2402
|
if (!t.value.responsiveProportionalSizing) {
|
|
2413
2403
|
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;
|
|
2414
2404
|
return;
|
|
2415
2405
|
}
|
|
2416
|
-
A.value.dataLabels =
|
|
2406
|
+
A.value.dataLabels = _l({
|
|
2417
2407
|
relator: W.value,
|
|
2418
2408
|
adjuster: 400,
|
|
2419
2409
|
source: t.value.chart.grid.labels.fontSize,
|
|
2420
2410
|
threshold: 10,
|
|
2421
2411
|
fallback: 10
|
|
2422
|
-
}), A.value.yAxis =
|
|
2412
|
+
}), A.value.yAxis = _l({
|
|
2423
2413
|
relator: le.value,
|
|
2424
2414
|
adjuster: 1e3,
|
|
2425
2415
|
source: t.value.chart.grid.labels.axis.fontSize,
|
|
2426
2416
|
threshold: 10,
|
|
2427
2417
|
fallback: 10
|
|
2428
|
-
}), A.value.xAxis =
|
|
2418
|
+
}), A.value.xAxis = _l({
|
|
2429
2419
|
relator: le.value,
|
|
2430
2420
|
adjuster: 1e3,
|
|
2431
2421
|
source: t.value.chart.grid.labels.xAxisLabels.fontSize,
|
|
2432
2422
|
threshold: 10,
|
|
2433
2423
|
fallback: 10
|
|
2434
|
-
}), A.value.plotLabels =
|
|
2424
|
+
}), A.value.plotLabels = _l({
|
|
2435
2425
|
relator: le.value,
|
|
2436
2426
|
adjuster: 800,
|
|
2437
2427
|
source: t.value.chart.labels.fontSize,
|
|
2438
2428
|
threshold: 10,
|
|
2439
2429
|
fallback: 10
|
|
2440
|
-
}), De.value.plot =
|
|
2430
|
+
}), De.value.plot = _l({
|
|
2441
2431
|
relator: le.value,
|
|
2442
2432
|
adjuster: 800,
|
|
2443
2433
|
source: t.value.plot.radius,
|
|
2444
2434
|
threshold: 1,
|
|
2445
2435
|
fallback: 1
|
|
2446
|
-
}), De.value.line =
|
|
2436
|
+
}), De.value.line = _l({
|
|
2447
2437
|
relator: le.value,
|
|
2448
2438
|
adjuster: 800,
|
|
2449
2439
|
source: t.value.line.radius,
|
|
@@ -2451,7 +2441,7 @@ const _n = {
|
|
|
2451
2441
|
fallback: 1
|
|
2452
2442
|
});
|
|
2453
2443
|
}
|
|
2454
|
-
function
|
|
2444
|
+
function za() {
|
|
2455
2445
|
_o(d.dataset) ? (Na({
|
|
2456
2446
|
componentName: "VueUiXy",
|
|
2457
2447
|
type: "dataset",
|
|
@@ -2466,11 +2456,11 @@ const _n = {
|
|
|
2466
2456
|
}), bt.value = !0);
|
|
2467
2457
|
}), Lt.value && d.dataset.forEach((s) => {
|
|
2468
2458
|
s.series.forEach((e, i) => {
|
|
2469
|
-
|
|
2459
|
+
ha(e) || console.warn(`VueUiXy has detected an unsafe value in your dataset:
|
|
2470
2460
|
-----> The serie '${s.name}' contains the value '${e}' at index ${i}.
|
|
2471
2461
|
'${e}' was converted to null to allow the chart to display.`);
|
|
2472
2462
|
});
|
|
2473
|
-
}), _o(d.dataset) || (bt.value = t.value.loading),
|
|
2463
|
+
}), _o(d.dataset) || (bt.value = t.value.loading), jl.value = t.value.chart.userOptions.showOnChartHover, Fl.value = t.value.chart.userOptions.keepStateOnChartLeave, bl.value = !t.value.chart.userOptions.showOnChartHover, tl();
|
|
2474
2464
|
const l = 12;
|
|
2475
2465
|
if (t.value.responsive) {
|
|
2476
2466
|
const e = Be.value.parentNode;
|
|
@@ -2480,16 +2470,16 @@ const _n = {
|
|
|
2480
2470
|
t.value.chart.title.show && Te.value && (r = Te.value, o = r.getBoundingClientRect().height);
|
|
2481
2471
|
let F = null, R = 0;
|
|
2482
2472
|
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,
|
|
2484
|
-
t.value.chart.legend.show &&
|
|
2473
|
+
let O = null, z = 0;
|
|
2474
|
+
t.value.chart.legend.show && Le.value && (O = Le.value, z = O.getBoundingClientRect().height);
|
|
2485
2475
|
let N = 0;
|
|
2486
2476
|
ft.value && (N = ft.value.getBoundingClientRect().height);
|
|
2487
2477
|
let ee = 0;
|
|
2488
|
-
_t.value && (ee = _t.value.getBoundingClientRect().height), W.value = i - o -
|
|
2478
|
+
_t.value && (ee = _t.value.getBoundingClientRect().height), W.value = i - o - z - R - N - ee - l, le.value = a, at.value = `0 0 ${le.value < 0 ? 10 : le.value} ${W.value < 0 ? 10 : W.value}`, uo();
|
|
2489
2479
|
const I = new ResizeObserver((U) => {
|
|
2490
2480
|
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,
|
|
2492
|
-
W.value = V.contentRect.height - o -
|
|
2481
|
+
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, Le.value ? z = Le.value.getBoundingClientRect().height : z = 0, ft.value ? N = ft.value.getBoundingClientRect().height : N = 0, _t.value ? ee = _t.value.getBoundingClientRect().height : ee = 0, requestAnimationFrame(() => {
|
|
2482
|
+
W.value = V.contentRect.height - o - z - 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();
|
|
2493
2483
|
});
|
|
2494
2484
|
});
|
|
2495
2485
|
mt.value = I, ne.value = e, I.observe(e);
|
|
@@ -2497,15 +2487,15 @@ const _n = {
|
|
|
2497
2487
|
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}`;
|
|
2498
2488
|
}
|
|
2499
2489
|
function io(l) {
|
|
2500
|
-
|
|
2490
|
+
Ql.value = {
|
|
2501
2491
|
x: l.clientX,
|
|
2502
2492
|
y: l.clientY
|
|
2503
2493
|
};
|
|
2504
2494
|
}
|
|
2505
|
-
|
|
2506
|
-
|
|
2507
|
-
}),
|
|
2508
|
-
document.removeEventListener("scroll",
|
|
2495
|
+
Zl(() => {
|
|
2496
|
+
za(), il(), document.addEventListener("mousemove", io, { passive: !0 }), document.addEventListener("scroll", Hl, { passive: !0 });
|
|
2497
|
+
}), Ll(() => {
|
|
2498
|
+
document.removeEventListener("scroll", Hl, { passive: !0 }), document.removeEventListener("mousemove", io, { passive: !0 }), mt.value && (mt.value.unobserve(ne.value), mt.value.disconnect(), mt.value = null);
|
|
2509
2499
|
}), pn({
|
|
2510
2500
|
timeLabelsEls: Se,
|
|
2511
2501
|
timeLabels: v,
|
|
@@ -2518,7 +2508,7 @@ const _n = {
|
|
|
2518
2508
|
width: le,
|
|
2519
2509
|
rotation: t.value.chart.grid.labels.xAxisLabels.autoRotate.angle
|
|
2520
2510
|
});
|
|
2521
|
-
const
|
|
2511
|
+
const da = y(!1), so = y(null), ro = y(200), Eo = x(
|
|
2522
2512
|
() => M.value ?? X.value ?? 0
|
|
2523
2513
|
);
|
|
2524
2514
|
function Ho() {
|
|
@@ -2529,7 +2519,7 @@ const _n = {
|
|
|
2529
2519
|
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
2520
|
return q(R);
|
|
2531
2521
|
}
|
|
2532
|
-
|
|
2522
|
+
Zl(() => {
|
|
2533
2523
|
let l = null, s = null;
|
|
2534
2524
|
const e = (r) => {
|
|
2535
2525
|
cancelAnimationFrame(s), s = requestAnimationFrame(() => {
|
|
@@ -2540,13 +2530,13 @@ const _n = {
|
|
|
2540
2530
|
o && e(o.contentRect.width || 200);
|
|
2541
2531
|
}), a = go((r) => {
|
|
2542
2532
|
const o = so.value;
|
|
2543
|
-
l && l !== o && (i.unobserve(l), l = null), o && o !== l && (
|
|
2533
|
+
l && l !== o && (i.unobserve(l), l = null), o && o !== l && (Ml(() => {
|
|
2544
2534
|
o.offsetParent !== null && e(o.offsetWidth || o.getBoundingClientRect().width || 200);
|
|
2545
2535
|
}), i.observe(o), l = o), r(() => {
|
|
2546
2536
|
l && (i.unobserve(l), l = null);
|
|
2547
2537
|
});
|
|
2548
2538
|
});
|
|
2549
|
-
|
|
2539
|
+
Ll(() => {
|
|
2550
2540
|
try {
|
|
2551
2541
|
l && i.unobserve(l), i.disconnect(), a();
|
|
2552
2542
|
} catch {
|
|
@@ -2556,32 +2546,32 @@ const _n = {
|
|
|
2556
2546
|
const Wo = x(() => {
|
|
2557
2547
|
if ([null, void 0].includes(M.value) && [null, void 0].includes(X.value)) return "";
|
|
2558
2548
|
const l = (M.value != null ? M.value : 0) || (X.value != null ? X.value : 0), s = t.value.chart.timeTag.customFormat;
|
|
2559
|
-
if (
|
|
2549
|
+
if (da.value = !1, xa(s))
|
|
2560
2550
|
try {
|
|
2561
2551
|
const e = s({
|
|
2562
2552
|
absoluteIndex: l + w.value.start,
|
|
2563
2553
|
seriesIndex: l,
|
|
2564
|
-
datapoint:
|
|
2554
|
+
datapoint: zt.value,
|
|
2565
2555
|
bars: It.value,
|
|
2566
2556
|
lines: Re.value,
|
|
2567
2557
|
plots: rt.value,
|
|
2568
2558
|
config: t.value
|
|
2569
2559
|
});
|
|
2570
2560
|
if (typeof e == "string")
|
|
2571
|
-
return
|
|
2561
|
+
return da.value = !0, e;
|
|
2572
2562
|
} catch {
|
|
2573
|
-
console.warn("Custom format cannot be applied on timeTag."),
|
|
2563
|
+
console.warn("Custom format cannot be applied on timeTag."), da.value = !1;
|
|
2574
2564
|
}
|
|
2575
|
-
if (!
|
|
2576
|
-
return [null, void 0].includes(v.value[l]) ? "" : t.value.chart.grid.labels.xAxisLabels.datetimeFormatter.enable && !t.value.chart.timeTag.useDefaultFormat ?
|
|
2565
|
+
if (!da.value)
|
|
2566
|
+
return [null, void 0].includes(v.value[l]) ? "" : t.value.chart.grid.labels.xAxisLabels.datetimeFormatter.enable && !t.value.chart.timeTag.useDefaultFormat ? Sl.value(l + w.value.start, t.value.chart.timeTag.timeFormat) : v.value[l].text;
|
|
2577
2567
|
});
|
|
2578
2568
|
ht(() => d.dataset, (l) => {
|
|
2579
2569
|
Array.isArray(l) && l.length > 0 && (bt.value = !1), Qe.value = Math.max(..._e.value.map((s) => yt(s.series).length)), w.value = {
|
|
2580
2570
|
start: 0,
|
|
2581
2571
|
end: Qe.value
|
|
2582
|
-
},
|
|
2572
|
+
}, Jl.value += 1, gt.value += 1, Ct();
|
|
2583
2573
|
}, { deep: !0 }), ht(() => d.config, (l) => {
|
|
2584
|
-
xe.value || (t.value =
|
|
2574
|
+
xe.value || (t.value = Ol()), za(), Pl.value += 1, Nl.value += 1, tl(), Ct();
|
|
2585
2575
|
}, { deep: !0 });
|
|
2586
2576
|
const Ia = y(!1);
|
|
2587
2577
|
function co() {
|
|
@@ -2593,19 +2583,19 @@ const _n = {
|
|
|
2593
2583
|
const s = l.getBoundingClientRect();
|
|
2594
2584
|
Ia.value = s.width > 2 && s.height > 2;
|
|
2595
2585
|
}
|
|
2596
|
-
|
|
2586
|
+
Zl(() => {
|
|
2597
2587
|
co();
|
|
2598
2588
|
const l = new ResizeObserver(() => {
|
|
2599
|
-
co(), Ia.value && (
|
|
2589
|
+
co(), Ia.value && (za(), Ct(), il());
|
|
2600
2590
|
});
|
|
2601
2591
|
Be.value?.parentNode && l.observe(Be.value.parentNode);
|
|
2602
2592
|
}), ht(t, () => {
|
|
2603
2593
|
tl();
|
|
2604
2594
|
}, { immediate: !0 });
|
|
2605
|
-
const
|
|
2595
|
+
const Yl = x(() => {
|
|
2606
2596
|
const l = t.value.table.useDialog && !t.value.showTable, s = p.value.showTable;
|
|
2607
2597
|
return {
|
|
2608
|
-
component: l ?
|
|
2598
|
+
component: l ? Kl : $n,
|
|
2609
2599
|
title: `${t.value.chart.title.text}${t.value.chart.title.subtitle.text ? `: ${t.value.chart.title.subtitle.text}` : ""}`,
|
|
2610
2600
|
props: l ? {
|
|
2611
2601
|
backgroundColor: t.value.table.th.backgroundColor,
|
|
@@ -2636,19 +2626,19 @@ const _n = {
|
|
|
2636
2626
|
t.value.showTable || (l && t.value.table.useDialog && Je.value ? Je.value.open() : Je.value && Je.value.close && Je.value.close());
|
|
2637
2627
|
});
|
|
2638
2628
|
function vo() {
|
|
2639
|
-
p.value.showTable = !1,
|
|
2629
|
+
p.value.showTable = !1, zl.value && zl.value.setTableIconState(!1);
|
|
2640
2630
|
}
|
|
2641
2631
|
return Sa({
|
|
2642
2632
|
getData: Ao,
|
|
2643
|
-
getImage:
|
|
2633
|
+
getImage: To,
|
|
2644
2634
|
generatePdf: ut,
|
|
2645
2635
|
generateImage: it,
|
|
2646
|
-
generateCsv:
|
|
2636
|
+
generateCsv: Ta,
|
|
2647
2637
|
toggleStack: st,
|
|
2648
2638
|
toggleTable: lo,
|
|
2649
2639
|
toggleLabels: ao,
|
|
2650
2640
|
toggleTooltip: oo,
|
|
2651
|
-
toggleAnnotator:
|
|
2641
|
+
toggleAnnotator: Dl,
|
|
2652
2642
|
toggleFullscreen: no
|
|
2653
2643
|
}), (l, s) => (n(), u("div", {
|
|
2654
2644
|
id: `vue-ui-xy_${Z.value}`,
|
|
@@ -2666,7 +2656,7 @@ const _n = {
|
|
|
2666
2656
|
backgroundColor: t.value.chart.backgroundColor,
|
|
2667
2657
|
color: t.value.chart.color,
|
|
2668
2658
|
active: Ee.value,
|
|
2669
|
-
onClose:
|
|
2659
|
+
onClose: Dl
|
|
2670
2660
|
}, null, 8, ["svgRef", "backgroundColor", "color", "active"])) : g("", !0),
|
|
2671
2661
|
Io.value ? (n(), u("div", {
|
|
2672
2662
|
key: 1,
|
|
@@ -2683,7 +2673,7 @@ const _n = {
|
|
|
2683
2673
|
style: C(`font-family:${t.value.chart.fontFamily}`)
|
|
2684
2674
|
}, [
|
|
2685
2675
|
(n(), ct(wn, {
|
|
2686
|
-
key: `title_${
|
|
2676
|
+
key: `title_${Pl.value}`,
|
|
2687
2677
|
config: {
|
|
2688
2678
|
title: {
|
|
2689
2679
|
cy: "xy-div-title",
|
|
@@ -2699,13 +2689,13 @@ const _n = {
|
|
|
2699
2689
|
k("div", {
|
|
2700
2690
|
id: `legend-top-${Z.value}`
|
|
2701
2691
|
}, null, 8, mu),
|
|
2702
|
-
t.value.chart.userOptions.show && (
|
|
2692
|
+
t.value.chart.userOptions.show && (Fl.value || bl.value) ? (n(), ct(h(fe), {
|
|
2703
2693
|
ref_key: "userOptionsRef",
|
|
2704
|
-
ref:
|
|
2705
|
-
key: `user_options_${
|
|
2694
|
+
ref: zl,
|
|
2695
|
+
key: `user_options_${Il.value}`,
|
|
2706
2696
|
backgroundColor: t.value.chart.backgroundColor,
|
|
2707
2697
|
color: t.value.chart.color,
|
|
2708
|
-
isPrinting: h(
|
|
2698
|
+
isPrinting: h(Bl),
|
|
2709
2699
|
isImaging: h(nt),
|
|
2710
2700
|
uid: Z.value,
|
|
2711
2701
|
hasTooltip: t.value.chart.userOptions.buttons.tooltip && t.value.chart.tooltip.show,
|
|
@@ -2729,15 +2719,15 @@ const _n = {
|
|
|
2729
2719
|
printScale: t.value.chart.userOptions.print.scale,
|
|
2730
2720
|
onToggleFullscreen: no,
|
|
2731
2721
|
onGeneratePdf: h(ut),
|
|
2732
|
-
onGenerateCsv:
|
|
2722
|
+
onGenerateCsv: Ta,
|
|
2733
2723
|
onGenerateImage: h(it),
|
|
2734
2724
|
onToggleTable: lo,
|
|
2735
2725
|
onToggleLabels: ao,
|
|
2736
2726
|
onToggleStack: st,
|
|
2737
2727
|
onToggleTooltip: oo,
|
|
2738
|
-
onToggleAnnotator:
|
|
2728
|
+
onToggleAnnotator: Dl,
|
|
2739
2729
|
style: C({
|
|
2740
|
-
visibility:
|
|
2730
|
+
visibility: Fl.value ? bl.value ? "visible" : "hidden" : "visible"
|
|
2741
2731
|
})
|
|
2742
2732
|
}, xo({ _: 2 }, [
|
|
2743
2733
|
l.$slots.menuIcon ? {
|
|
@@ -2823,17 +2813,17 @@ const _n = {
|
|
|
2823
2813
|
color: t.value.chart.color,
|
|
2824
2814
|
fontFamily: t.value.chart.fontFamily
|
|
2825
2815
|
}),
|
|
2826
|
-
"aria-label":
|
|
2816
|
+
"aria-label": zo.value,
|
|
2827
2817
|
role: "img",
|
|
2828
2818
|
"aria-live": "polite",
|
|
2829
2819
|
preserveAspectRatio: "xMidYMid",
|
|
2830
2820
|
onMousemove: Co,
|
|
2831
|
-
onMouseleave:
|
|
2821
|
+
onMouseleave: ua,
|
|
2832
2822
|
onClick: Xa
|
|
2833
2823
|
}, [
|
|
2834
2824
|
k("g", {
|
|
2835
2825
|
ref_key: "G",
|
|
2836
|
-
ref:
|
|
2826
|
+
ref: Al,
|
|
2837
2827
|
class: "vue-data-ui-g"
|
|
2838
2828
|
}, [
|
|
2839
2829
|
ml(h(St)),
|
|
@@ -2862,7 +2852,7 @@ const _n = {
|
|
|
2862
2852
|
"stroke-linecap": "round",
|
|
2863
2853
|
style: { animation: "none !important" }
|
|
2864
2854
|
}, null, 8, pu)) : g("", !0),
|
|
2865
|
-
p.value.useIndividualScale ? t.value.chart.grid.showHorizontalLines ? (n(!0), u(b, { key: 2 }, L(
|
|
2855
|
+
p.value.useIndividualScale ? t.value.chart.grid.showHorizontalLines ? (n(!0), u(b, { key: 2 }, L(Xl.value, (e) => (n(), u("g", null, [
|
|
2866
2856
|
e.id === E.value && e.yLabels.length ? (n(!0), u(b, { key: 0 }, L(e.yLabels, (i) => (n(), u("line", {
|
|
2867
2857
|
x1: c.value.left + ue.value,
|
|
2868
2858
|
x2: c.value.right - ue.value,
|
|
@@ -2918,7 +2908,7 @@ const _n = {
|
|
|
2918
2908
|
])) : g("", !0),
|
|
2919
2909
|
t.value.chart.grid.labels.xAxisLabels.show ? (n(), u("g", Cu, [
|
|
2920
2910
|
k("path", {
|
|
2921
|
-
d:
|
|
2911
|
+
d: El.value,
|
|
2922
2912
|
stroke: t.value.chart.grid.stroke,
|
|
2923
2913
|
"stroke-width": 1,
|
|
2924
2914
|
"stroke-linecap": "round",
|
|
@@ -2941,7 +2931,7 @@ const _n = {
|
|
|
2941
2931
|
k("stop", {
|
|
2942
2932
|
offset: "0%",
|
|
2943
2933
|
"stop-color": e.color
|
|
2944
|
-
}, null, 8,
|
|
2934
|
+
}, null, 8, zu),
|
|
2945
2935
|
k("stop", {
|
|
2946
2936
|
offset: "62%",
|
|
2947
2937
|
"stop-color": `${h(fl)(e.color, 0.02)}`
|
|
@@ -2950,7 +2940,7 @@ const _n = {
|
|
|
2950
2940
|
offset: "100%",
|
|
2951
2941
|
"stop-color": `${h(fl)(e.color, 0.05)}`
|
|
2952
2942
|
}, null, 8, Nu)
|
|
2953
|
-
], 8,
|
|
2943
|
+
], 8, Tu),
|
|
2954
2944
|
k("linearGradient", {
|
|
2955
2945
|
id: `rectGradient_neg_${i}_${Z.value}`,
|
|
2956
2946
|
x2: "0%",
|
|
@@ -3091,10 +3081,10 @@ const _n = {
|
|
|
3091
3081
|
}, [
|
|
3092
3082
|
Ye(a.value) ? (n(), u("rect", {
|
|
3093
3083
|
key: 0,
|
|
3094
|
-
x:
|
|
3084
|
+
x: na(a) + ra.value / 2,
|
|
3095
3085
|
y: p.value.useIndividualScale ? Da(a) : Ha(a),
|
|
3096
3086
|
height: p.value.useIndividualScale ? Math.abs(Ea(a)) : Math.abs(Ba(a)),
|
|
3097
|
-
width:
|
|
3087
|
+
width: sa.value - ra.value,
|
|
3098
3088
|
rx: t.value.bar.borderRadius,
|
|
3099
3089
|
fill: t.value.bar.useGradient ? a.value >= 0 ? `url(#rectGradient_pos_${i}_${Z.value})` : `url(#rectGradient_neg_${i}_${Z.value})` : e.color,
|
|
3100
3090
|
stroke: t.value.bar.border.useSerieColor ? e.color : t.value.bar.border.stroke,
|
|
@@ -3105,10 +3095,10 @@ const _n = {
|
|
|
3105
3095
|
}, null, 12, Ju)) : g("", !0),
|
|
3106
3096
|
Ye(a.value) && l.$slots.pattern ? (n(), u("rect", {
|
|
3107
3097
|
key: 1,
|
|
3108
|
-
x:
|
|
3098
|
+
x: na(a) - ra.value / 2,
|
|
3109
3099
|
y: p.value.useIndividualScale ? Da(a) : Ha(a),
|
|
3110
3100
|
height: p.value.useIndividualScale ? Math.abs(Ea(a)) : Math.abs(Ba(a)),
|
|
3111
|
-
width:
|
|
3101
|
+
width: sa.value - ra.value,
|
|
3112
3102
|
rx: t.value.bar.borderRadius,
|
|
3113
3103
|
fill: `url(#pattern_${Z.value}_${e.slotAbsoluteIndex})`,
|
|
3114
3104
|
stroke: t.value.bar.border.useSerieColor ? e.color : t.value.bar.border.stroke,
|
|
@@ -3119,8 +3109,8 @@ const _n = {
|
|
|
3119
3109
|
key: 2,
|
|
3120
3110
|
style: { overflow: "visible" },
|
|
3121
3111
|
height: "12",
|
|
3122
|
-
width:
|
|
3123
|
-
x:
|
|
3112
|
+
width: sa.value / 2 + t.value.chart.comments.width,
|
|
3113
|
+
x: na(a) - t.value.chart.comments.width / 2 + t.value.chart.comments.offsetX,
|
|
3124
3114
|
y: h(q)(a.y) + t.value.chart.comments.offsetY + 6
|
|
3125
3115
|
}, [
|
|
3126
3116
|
te(l.$slots, "plot-comment", {
|
|
@@ -3146,8 +3136,8 @@ const _n = {
|
|
|
3146
3136
|
]),
|
|
3147
3137
|
e.plots.length > 1 ? (n(), u("line", {
|
|
3148
3138
|
key: 0,
|
|
3149
|
-
x1: h(ie)(e.plots).x1 +
|
|
3150
|
-
x2: h(ie)(e.plots).x2 +
|
|
3139
|
+
x1: h(ie)(e.plots).x1 + wl(),
|
|
3140
|
+
x2: h(ie)(e.plots).x2 + wl(),
|
|
3151
3141
|
y1: h(j)(h(ie)(e.plots).y1),
|
|
3152
3142
|
y2: h(j)(h(ie)(e.plots).y2),
|
|
3153
3143
|
"stroke-width": 1,
|
|
@@ -3158,7 +3148,7 @@ const _n = {
|
|
|
3158
3148
|
e.plots.length > 1 ? (n(), u("text", {
|
|
3159
3149
|
key: 1,
|
|
3160
3150
|
"text-anchor": "middle",
|
|
3161
|
-
x: h(ie)(e.plots).x2 +
|
|
3151
|
+
x: h(ie)(e.plots).x2 + wl(),
|
|
3162
3152
|
y: h(ie)(e.plots).y2 - 6,
|
|
3163
3153
|
"font-size": A.value.plotLabels,
|
|
3164
3154
|
fill: e.color
|
|
@@ -3175,8 +3165,8 @@ const _n = {
|
|
|
3175
3165
|
"stroke-width": "1",
|
|
3176
3166
|
x1: c.value.left + ue.value,
|
|
3177
3167
|
x2: c.value.right,
|
|
3178
|
-
y1: h(j)(
|
|
3179
|
-
y2: h(j)(
|
|
3168
|
+
y1: h(j)(ze.value),
|
|
3169
|
+
y2: h(j)(ze.value),
|
|
3180
3170
|
"stroke-linecap": "round",
|
|
3181
3171
|
style: { animation: "none !important" }
|
|
3182
3172
|
}, null, 8, ni)) : g("", !0),
|
|
@@ -3210,10 +3200,10 @@ const _n = {
|
|
|
3210
3200
|
t.value.chart.grid.labels.show ? (n(), u("g", {
|
|
3211
3201
|
key: 5,
|
|
3212
3202
|
ref_key: "scaleLabels",
|
|
3213
|
-
ref:
|
|
3203
|
+
ref: Tl
|
|
3214
3204
|
}, [
|
|
3215
3205
|
p.value.useIndividualScale ? (n(), u(b, { key: 0 }, [
|
|
3216
|
-
(n(!0), u(b, null, L(
|
|
3206
|
+
(n(!0), u(b, null, L(Xl.value, (e) => (n(), u("g", null, [
|
|
3217
3207
|
k("line", {
|
|
3218
3208
|
x1: e.x + ue.value - c.value.individualOffsetX,
|
|
3219
3209
|
x2: e.x + ue.value - c.value.individualOffsetX,
|
|
@@ -3225,7 +3215,7 @@ const _n = {
|
|
|
3225
3215
|
style: C(`opacity:${E.value ? E.value === e.groupId ? 1 : 0.3 : 1};transition:opacity 0.2s ease-in-out; animation: none !important`)
|
|
3226
3216
|
}, null, 12, ri)
|
|
3227
3217
|
]))), 256)),
|
|
3228
|
-
(n(!0), u(b, null, L(
|
|
3218
|
+
(n(!0), u(b, null, L(Xl.value, (e) => (n(), u("g", {
|
|
3229
3219
|
style: C(`opacity:${E.value ? E.value === e.groupId ? 1 : 0.3 : 1};transition:opacity 0.2s ease-in-out`)
|
|
3230
3220
|
}, [
|
|
3231
3221
|
k("text", {
|
|
@@ -3254,7 +3244,7 @@ const _n = {
|
|
|
3254
3244
|
"font-size": A.value.dataLabels,
|
|
3255
3245
|
"text-anchor": "end",
|
|
3256
3246
|
fill: e.color
|
|
3257
|
-
}, re(h(
|
|
3247
|
+
}, re(h(Ae)(
|
|
3258
3248
|
t.value.chart.grid.labels.yAxis.formatter,
|
|
3259
3249
|
i.value,
|
|
3260
3250
|
h(lt)({
|
|
@@ -3287,7 +3277,7 @@ const _n = {
|
|
|
3287
3277
|
"font-size": A.value.dataLabels,
|
|
3288
3278
|
"text-anchor": "end",
|
|
3289
3279
|
fill: t.value.chart.grid.labels.color
|
|
3290
|
-
}, re(Ye(e.value) ? h(
|
|
3280
|
+
}, re(Ye(e.value) ? h(Ae)(
|
|
3291
3281
|
t.value.chart.grid.labels.yAxis.formatter,
|
|
3292
3282
|
e.value,
|
|
3293
3283
|
h(lt)({
|
|
@@ -3307,7 +3297,7 @@ const _n = {
|
|
|
3307
3297
|
(n(!0), u(b, null, L(e.plots, (a, r) => (n(), u("g", {
|
|
3308
3298
|
key: `circle_plot_${i}_${r}`
|
|
3309
3299
|
}, [
|
|
3310
|
-
a && Ye(a.value) ? (n(), ct(
|
|
3300
|
+
a && Ye(a.value) ? (n(), ct(ma, {
|
|
3311
3301
|
key: 0,
|
|
3312
3302
|
shape: ["triangle", "square", "diamond", "pentagon", "hexagon", "star"].includes(e.shape) ? e.shape : "circle",
|
|
3313
3303
|
color: t.value.plot.useGradient ? `url(#plotGradient_${i}_${Z.value})` : t.value.plot.dot.useSerieColor ? e.color : t.value.plot.dot.fill,
|
|
@@ -3439,13 +3429,13 @@ const _n = {
|
|
|
3439
3429
|
d: `M${a}Z`,
|
|
3440
3430
|
fill: t.value.line.area.useGradient ? `url(#areaGradient_${i}_${Z.value})` : h(vt)(e.color, t.value.line.area.opacity),
|
|
3441
3431
|
style: C({ transition: h(xe) || !t.value.line.showTransition ? void 0 : `all ${t.value.line.transitionDurationMs}ms ease-in-out` })
|
|
3442
|
-
}, null, 12,
|
|
3432
|
+
}, null, 12, Ti)) : g("", !0),
|
|
3443
3433
|
l.$slots.pattern && a ? (n(), u("path", {
|
|
3444
3434
|
key: 1,
|
|
3445
3435
|
d: `M${a}Z`,
|
|
3446
3436
|
fill: `url(#pattern_${Z.value}_${e.slotAbsoluteIndex})`,
|
|
3447
3437
|
style: C({ transition: h(xe) || !t.value.line.showTransition ? void 0 : `all ${t.value.line.transitionDurationMs}ms ease-in-out` })
|
|
3448
|
-
}, null, 12,
|
|
3438
|
+
}, null, 12, zi)) : g("", !0)
|
|
3449
3439
|
], 64))), 128))
|
|
3450
3440
|
])) : g("", !0),
|
|
3451
3441
|
e.smooth && e.plots.length > 1 && e.curve ? (n(), u("path", {
|
|
@@ -3471,7 +3461,7 @@ const _n = {
|
|
|
3471
3461
|
(n(!0), u(b, null, L(e.plots, (a, r) => (n(), u(b, {
|
|
3472
3462
|
key: `circle_line_${i}_${r}`
|
|
3473
3463
|
}, [
|
|
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(
|
|
3464
|
+
!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(ma, {
|
|
3475
3465
|
key: 0,
|
|
3476
3466
|
shape: ["triangle", "square", "diamond", "pentagon", "hexagon", "star"].includes(e.shape) ? e.shape : "circle",
|
|
3477
3467
|
color: t.value.line.useGradient ? `url(#lineGradient_${i}_${Z.value})` : t.value.line.dot.useSerieColor ? e.color : t.value.line.dot.fill,
|
|
@@ -3546,13 +3536,13 @@ const _n = {
|
|
|
3546
3536
|
}, [
|
|
3547
3537
|
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", {
|
|
3548
3538
|
key: 0,
|
|
3549
|
-
x: p.value.useIndividualScale && p.value.isStacked ? a.x + de.value.line / 2 :
|
|
3539
|
+
x: p.value.useIndividualScale && p.value.isStacked ? a.x + de.value.line / 2 : na(a) + wl() / 2 - ia.value / 2,
|
|
3550
3540
|
y: h(q)(a.y) + (a.value >= 0 ? t.value.bar.labels.offsetY : -t.value.bar.labels.offsetY * 3),
|
|
3551
3541
|
"text-anchor": "middle",
|
|
3552
3542
|
"font-size": A.value.plotLabels,
|
|
3553
3543
|
fill: t.value.bar.labels.color,
|
|
3554
3544
|
style: C(`opacity:${E.value ? E.value === e.groupId ? 1 : 0.2 : 1};transition:opacity 0.2s ease-in-out`)
|
|
3555
|
-
}, re(Ye(a.value) ? h(
|
|
3545
|
+
}, re(Ye(a.value) ? h(Ae)(
|
|
3556
3546
|
t.value.bar.labels.formatter,
|
|
3557
3547
|
a.value,
|
|
3558
3548
|
h(lt)({
|
|
@@ -3568,7 +3558,7 @@ const _n = {
|
|
|
3568
3558
|
) : ""), 13, Di)) : g("", !0),
|
|
3569
3559
|
a && t.value.bar.serieName.show ? (n(), u("text", {
|
|
3570
3560
|
key: 1,
|
|
3571
|
-
x: p.value.useIndividualScale && p.value.isStacked ? a.x + de.value.line / 2 : a.x +
|
|
3561
|
+
x: p.value.useIndividualScale && p.value.isStacked ? a.x + de.value.line / 2 : a.x + wl() * 1.1,
|
|
3572
3562
|
y: a.y + (a.value > 0 ? t.value.bar.serieName.offsetY : -t.value.bar.serieName.offsetY * 3),
|
|
3573
3563
|
"text-anchor": "middle",
|
|
3574
3564
|
"font-size": A.value.plotLabels,
|
|
@@ -3597,7 +3587,7 @@ const _n = {
|
|
|
3597
3587
|
"font-size": A.value.plotLabels,
|
|
3598
3588
|
fill: t.value.plot.labels.color,
|
|
3599
3589
|
style: C(`opacity:${E.value ? E.value === e.groupId ? 1 : 0.2 : 1};transition:opacity 0.2s ease-in-out`)
|
|
3600
|
-
}, re(Ye(a.value) ? h(
|
|
3590
|
+
}, re(Ye(a.value) ? h(Ae)(
|
|
3601
3591
|
t.value.plot.labels.formatter,
|
|
3602
3592
|
a.value,
|
|
3603
3593
|
h(lt)({
|
|
@@ -3644,7 +3634,7 @@ const _n = {
|
|
|
3644
3634
|
}, [
|
|
3645
3635
|
k("div", {
|
|
3646
3636
|
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;`),
|
|
3647
|
-
innerHTML: h(
|
|
3637
|
+
innerHTML: h(Ae)(
|
|
3648
3638
|
t.value.plot.tag.formatter,
|
|
3649
3639
|
a.value,
|
|
3650
3640
|
e.name,
|
|
@@ -3666,7 +3656,7 @@ const _n = {
|
|
|
3666
3656
|
}, [
|
|
3667
3657
|
k("div", {
|
|
3668
3658
|
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;`),
|
|
3669
|
-
innerHTML: h(
|
|
3659
|
+
innerHTML: h(Ae)(
|
|
3670
3660
|
t.value.plot.tag.formatter,
|
|
3671
3661
|
a.value,
|
|
3672
3662
|
e.name,
|
|
@@ -3697,7 +3687,7 @@ const _n = {
|
|
|
3697
3687
|
"font-size": A.value.plotLabels,
|
|
3698
3688
|
fill: t.value.line.labels.color,
|
|
3699
3689
|
style: C(`opacity:${E.value ? E.value === e.groupId ? 1 : 0.2 : 1};transition:opacity 0.2s ease-in-out`)
|
|
3700
|
-
}, re(Ye(a.value) ? h(
|
|
3690
|
+
}, re(Ye(a.value) ? h(Ae)(
|
|
3701
3691
|
t.value.line.labels.formatter,
|
|
3702
3692
|
a.value,
|
|
3703
3693
|
h(lt)({
|
|
@@ -3744,7 +3734,7 @@ const _n = {
|
|
|
3744
3734
|
}, [
|
|
3745
3735
|
k("div", {
|
|
3746
3736
|
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;`),
|
|
3747
|
-
innerHTML: h(
|
|
3737
|
+
innerHTML: h(Ae)(
|
|
3748
3738
|
t.value.line.tag.formatter,
|
|
3749
3739
|
a.value,
|
|
3750
3740
|
e.name,
|
|
@@ -3766,7 +3756,7 @@ const _n = {
|
|
|
3766
3756
|
}, [
|
|
3767
3757
|
k("div", {
|
|
3768
3758
|
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;`),
|
|
3769
|
-
innerHTML: h(
|
|
3759
|
+
innerHTML: h(Ae)(
|
|
3770
3760
|
t.value.line.tag.formatter,
|
|
3771
3761
|
a.value,
|
|
3772
3762
|
e.name,
|
|
@@ -3795,7 +3785,7 @@ const _n = {
|
|
|
3795
3785
|
"font-size": A.value.plotLabels,
|
|
3796
3786
|
"text-anchor": "end",
|
|
3797
3787
|
fill: e.color,
|
|
3798
|
-
innerHTML: h(
|
|
3788
|
+
innerHTML: h(fa)({
|
|
3799
3789
|
content: e.name,
|
|
3800
3790
|
fontSize: A.value.plotLabels,
|
|
3801
3791
|
fill: e.color,
|
|
@@ -3812,7 +3802,7 @@ const _n = {
|
|
|
3812
3802
|
"font-size": A.value.plotLabels,
|
|
3813
3803
|
"text-anchor": "start",
|
|
3814
3804
|
fill: e.color,
|
|
3815
|
-
innerHTML: h(
|
|
3805
|
+
innerHTML: h(fa)({
|
|
3816
3806
|
content: e.name,
|
|
3817
3807
|
fontSize: A.value.plotLabels,
|
|
3818
3808
|
fill: e.color,
|
|
@@ -3837,7 +3827,7 @@ const _n = {
|
|
|
3837
3827
|
"font-size": A.value.plotLabels,
|
|
3838
3828
|
"text-anchor": "end",
|
|
3839
3829
|
fill: e.color,
|
|
3840
|
-
innerHTML: h(
|
|
3830
|
+
innerHTML: h(fa)({
|
|
3841
3831
|
content: e.name,
|
|
3842
3832
|
fontSize: A.value.plotLabels,
|
|
3843
3833
|
fill: e.color,
|
|
@@ -3854,7 +3844,7 @@ const _n = {
|
|
|
3854
3844
|
"font-size": A.value.plotLabels,
|
|
3855
3845
|
"text-anchor": "start",
|
|
3856
3846
|
fill: e.color,
|
|
3857
|
-
innerHTML: h(
|
|
3847
|
+
innerHTML: h(fa)({
|
|
3858
3848
|
content: e.name,
|
|
3859
3849
|
fontSize: A.value.plotLabels,
|
|
3860
3850
|
fill: e.color,
|
|
@@ -3868,7 +3858,7 @@ const _n = {
|
|
|
3868
3858
|
], 64))), 128)),
|
|
3869
3859
|
p.value.useIndividualScale && !p.value.isStacked ? (n(), u(b, { key: 13 }, [
|
|
3870
3860
|
k("defs", null, [
|
|
3871
|
-
(n(!0), u(b, null, L(
|
|
3861
|
+
(n(!0), u(b, null, L(Xl.value, (e, i) => (n(), u("linearGradient", {
|
|
3872
3862
|
id: `individual_scale_gradient_${Z.value}_${i}`,
|
|
3873
3863
|
x1: "0%",
|
|
3874
3864
|
x2: "100%",
|
|
@@ -3887,7 +3877,7 @@ const _n = {
|
|
|
3887
3877
|
}, null, 8, ds)
|
|
3888
3878
|
], 8, cs))), 256))
|
|
3889
3879
|
]),
|
|
3890
|
-
(n(!0), u(b, null, L(
|
|
3880
|
+
(n(!0), u(b, null, L(Xl.value, (e, i) => (n(), u("rect", {
|
|
3891
3881
|
x: e.x - t.value.chart.grid.labels.yAxis.labelWidth + ue.value - c.value.individualOffsetX,
|
|
3892
3882
|
y: c.value.top,
|
|
3893
3883
|
width: t.value.chart.grid.labels.yAxis.labelWidth + c.value.individualOffsetX,
|
|
@@ -3950,7 +3940,7 @@ const _n = {
|
|
|
3950
3940
|
fill: t.value.chart.grid.labels.xAxisLabels.color,
|
|
3951
3941
|
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
3942
|
style: C({
|
|
3953
|
-
cursor:
|
|
3943
|
+
cursor: pl() ? "pointer" : "default"
|
|
3954
3944
|
}),
|
|
3955
3945
|
innerHTML: h(sn)({
|
|
3956
3946
|
content: String(e.text),
|
|
@@ -3968,7 +3958,7 @@ const _n = {
|
|
|
3968
3958
|
fill: t.value.chart.grid.labels.xAxisLabels.color,
|
|
3969
3959
|
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
3960
|
style: C({
|
|
3971
|
-
cursor:
|
|
3961
|
+
cursor: pl() ? "pointer" : "default"
|
|
3972
3962
|
}),
|
|
3973
3963
|
onClick: () => ke(e, i)
|
|
3974
3964
|
}, re(e.text || ""), 13, gs))
|
|
@@ -4052,7 +4042,7 @@ const _n = {
|
|
|
4052
4042
|
}, null, 8, Ms)
|
|
4053
4043
|
])) : g("", !0)
|
|
4054
4044
|
])) : g("", !0),
|
|
4055
|
-
|
|
4045
|
+
ea.value ? (n(), u("rect", Gt({ key: 2 }, Ma.value, {
|
|
4056
4046
|
"data-start": w.value.start,
|
|
4057
4047
|
"data-end": w.value.end
|
|
4058
4048
|
}), null, 16, Ls)) : g("", !0),
|
|
@@ -4060,7 +4050,7 @@ const _n = {
|
|
|
4060
4050
|
], 512)
|
|
4061
4051
|
], 46, gu)),
|
|
4062
4052
|
l.$slots.watermark ? (n(), u("div", Cs, [
|
|
4063
|
-
te(l.$slots, "watermark", Yt(dl({ isPrinting: h(
|
|
4053
|
+
te(l.$slots, "watermark", Yt(dl({ isPrinting: h(Bl) || h(nt) })), void 0, !0)
|
|
4064
4054
|
])) : g("", !0),
|
|
4065
4055
|
(n(!0), u(b, null, L(Re.value, (e, i) => (n(), u(b, {
|
|
4066
4056
|
key: `tag_line_${e.id}`
|
|
@@ -4104,11 +4094,11 @@ const _n = {
|
|
|
4104
4094
|
d: "M 0,10 10,0 10,20 Z",
|
|
4105
4095
|
fill: e.color,
|
|
4106
4096
|
stroke: "none"
|
|
4107
|
-
}, null, 8,
|
|
4097
|
+
}, null, 8, Ts)
|
|
4108
4098
|
])),
|
|
4109
4099
|
k("div", {
|
|
4110
4100
|
class: "vue-ui-xy-tag-content",
|
|
4111
|
-
innerHTML: h(
|
|
4101
|
+
innerHTML: h(Ae)(
|
|
4112
4102
|
t.value.line.tag.formatter,
|
|
4113
4103
|
a.value,
|
|
4114
4104
|
e.name,
|
|
@@ -4118,7 +4108,7 @@ const _n = {
|
|
|
4118
4108
|
serieName: e.name
|
|
4119
4109
|
}
|
|
4120
4110
|
)
|
|
4121
|
-
}, null, 8,
|
|
4111
|
+
}, null, 8, zs)
|
|
4122
4112
|
], 4)) : g("", !0),
|
|
4123
4113
|
[X.value, M.value, ae.value].includes(r) && e.useTag && e.useTag === "start" && t.value.line.tag.followValue ? (n(), u("div", {
|
|
4124
4114
|
key: 1,
|
|
@@ -4160,7 +4150,7 @@ const _n = {
|
|
|
4160
4150
|
])),
|
|
4161
4151
|
k("div", {
|
|
4162
4152
|
class: "vue-ui-xy-tag-content",
|
|
4163
|
-
innerHTML: h(
|
|
4153
|
+
innerHTML: h(Ae)(
|
|
4164
4154
|
t.value.line.tag.formatter,
|
|
4165
4155
|
a.value,
|
|
4166
4156
|
e.name,
|
|
@@ -4220,7 +4210,7 @@ const _n = {
|
|
|
4220
4210
|
])),
|
|
4221
4211
|
k("div", {
|
|
4222
4212
|
class: "vue-ui-xy-tag-content",
|
|
4223
|
-
innerHTML: h(
|
|
4213
|
+
innerHTML: h(Ae)(
|
|
4224
4214
|
t.value.plot.tag.formatter,
|
|
4225
4215
|
a.value,
|
|
4226
4216
|
e.name,
|
|
@@ -4272,7 +4262,7 @@ const _n = {
|
|
|
4272
4262
|
])),
|
|
4273
4263
|
k("div", {
|
|
4274
4264
|
class: "vue-ui-xy-tag-content",
|
|
4275
|
-
innerHTML: h(
|
|
4265
|
+
innerHTML: h(Ae)(
|
|
4276
4266
|
t.value.plot.tag.formatter,
|
|
4277
4267
|
a.value,
|
|
4278
4268
|
e.name,
|
|
@@ -4297,9 +4287,9 @@ const _n = {
|
|
|
4297
4287
|
valueEnd: w.value.end,
|
|
4298
4288
|
start: w.value.start,
|
|
4299
4289
|
end: w.value.end,
|
|
4300
|
-
"onUpdate:start":
|
|
4290
|
+
"onUpdate:start": oa,
|
|
4301
4291
|
"onUpdate:end": La,
|
|
4302
|
-
selectedSeries:
|
|
4292
|
+
selectedSeries: zt.value,
|
|
4303
4293
|
customFormat: t.value.chart.zoom.customFormat,
|
|
4304
4294
|
background: t.value.chart.zoom.color,
|
|
4305
4295
|
fontSize: t.value.chart.zoom.fontSize,
|
|
@@ -4333,11 +4323,11 @@ const _n = {
|
|
|
4333
4323
|
focusOnDrag: t.value.chart.zoom.focusOnDrag,
|
|
4334
4324
|
focusRangeRatio: t.value.chart.zoom.focusRangeRatio,
|
|
4335
4325
|
onReset: Ca,
|
|
4336
|
-
onTrapMouse:
|
|
4337
|
-
onFutureStart: s[1] || (s[1] = (e) =>
|
|
4338
|
-
onFutureEnd: s[2] || (s[2] = (e) =>
|
|
4326
|
+
onTrapMouse: kl,
|
|
4327
|
+
onFutureStart: s[1] || (s[1] = (e) => Vl("start", e)),
|
|
4328
|
+
onFutureEnd: s[2] || (s[2] = (e) => Vl("end", e)),
|
|
4339
4329
|
timeLabels: m.value,
|
|
4340
|
-
isPreview:
|
|
4330
|
+
isPreview: ea.value
|
|
4341
4331
|
}, {
|
|
4342
4332
|
"reset-action": we(({ reset: e }) => [
|
|
4343
4333
|
te(l.$slots, "reset-action", Yt(dl({ reset: e })), void 0, !0)
|
|
@@ -4354,7 +4344,7 @@ const _n = {
|
|
|
4354
4344
|
t.value.chart.legend.show ? (n(), u("div", {
|
|
4355
4345
|
key: 0,
|
|
4356
4346
|
ref_key: "chartLegend",
|
|
4357
|
-
ref:
|
|
4347
|
+
ref: Le,
|
|
4358
4348
|
class: "vue-ui-xy-legend",
|
|
4359
4349
|
style: C({
|
|
4360
4350
|
fontSize: `var(--legend-font-size, ${t.value.chart.legend.fontSize ?? 14}px)`
|
|
@@ -4376,7 +4366,7 @@ const _n = {
|
|
|
4376
4366
|
width: "20",
|
|
4377
4367
|
fill: e.color
|
|
4378
4368
|
}, null, 8, Xs),
|
|
4379
|
-
ml(
|
|
4369
|
+
ml(ma, {
|
|
4380
4370
|
plot: { x: 10, y: 9 },
|
|
4381
4371
|
radius: 4,
|
|
4382
4372
|
color: e.color,
|
|
@@ -4406,7 +4396,7 @@ const _n = {
|
|
|
4406
4396
|
fill: l.$slots.pattern ? `url(#pattern_${Z.value}_${e.slotAbsoluteIndex})` : e.color
|
|
4407
4397
|
}, null, 8, Us)) : g("", !0)
|
|
4408
4398
|
])) : (n(), u("svg", qs, [
|
|
4409
|
-
ml(
|
|
4399
|
+
ml(ma, {
|
|
4410
4400
|
plot: { x: 6, y: 6 },
|
|
4411
4401
|
radius: 5,
|
|
4412
4402
|
color: e.color,
|
|
@@ -4420,7 +4410,7 @@ const _n = {
|
|
|
4420
4410
|
], 4)) : (n(), u("div", {
|
|
4421
4411
|
key: 1,
|
|
4422
4412
|
ref_key: "chartLegend",
|
|
4423
|
-
ref:
|
|
4413
|
+
ref: Le
|
|
4424
4414
|
}, [
|
|
4425
4415
|
te(l.$slots, "legend", { legend: et.value }, void 0, !0)
|
|
4426
4416
|
], 512))
|
|
@@ -4434,7 +4424,7 @@ const _n = {
|
|
|
4434
4424
|
te(l.$slots, "source", {}, void 0, !0)
|
|
4435
4425
|
], 512)) : g("", !0),
|
|
4436
4426
|
ml(h(ce), {
|
|
4437
|
-
show: p.value.showTooltip &&
|
|
4427
|
+
show: p.value.showTooltip && xl.value,
|
|
4438
4428
|
backgroundColor: t.value.chart.tooltip.backgroundColor,
|
|
4439
4429
|
color: t.value.chart.tooltip.color,
|
|
4440
4430
|
fontSize: t.value.chart.tooltip.fontSize,
|
|
@@ -4461,14 +4451,14 @@ const _n = {
|
|
|
4461
4451
|
]),
|
|
4462
4452
|
_: 3
|
|
4463
4453
|
}, 8, ["show", "backgroundColor", "color", "fontSize", "borderRadius", "borderColor", "borderWidth", "backgroundOpacity", "position", "offsetY", "parent", "content", "isFullscreen", "isCustom", "smooth", "backdropFilter", "smoothForce", "smoothSnapThreshold"]),
|
|
4464
|
-
Mt.value && t.value.chart.userOptions.buttons.table ? (n(), ct(Ko(
|
|
4454
|
+
Mt.value && t.value.chart.userOptions.buttons.table ? (n(), ct(Ko(Yl.value.component), Gt({ key: 8 }, Yl.value.props, {
|
|
4465
4455
|
ref_key: "tableUnit",
|
|
4466
4456
|
ref: Je,
|
|
4467
4457
|
onClose: vo
|
|
4468
4458
|
}), xo({
|
|
4469
4459
|
content: we(() => [
|
|
4470
4460
|
k("div", {
|
|
4471
|
-
style: C(`${h(
|
|
4461
|
+
style: C(`${h(Bl) || 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"}`)
|
|
4472
4462
|
}, [
|
|
4473
4463
|
k("div", Zs, [
|
|
4474
4464
|
Oa(k("input", {
|
|
@@ -4488,17 +4478,17 @@ const _n = {
|
|
|
4488
4478
|
}, null, 8, ["stroke"])
|
|
4489
4479
|
])
|
|
4490
4480
|
]),
|
|
4491
|
-
He.value ? (n(), ct(h(
|
|
4481
|
+
He.value ? (n(), ct(h(Cl), {
|
|
4492
4482
|
key: `sparkline_${gt.value}`,
|
|
4493
4483
|
dataset: Po.value,
|
|
4494
4484
|
config: Fo.value
|
|
4495
|
-
}, null, 8, ["dataset", "config"])) : (n(), ct(h(
|
|
4496
|
-
key: `table_${
|
|
4497
|
-
colNames:
|
|
4498
|
-
head:
|
|
4499
|
-
body:
|
|
4500
|
-
config:
|
|
4501
|
-
title: t.value.table.useDialog ? "" :
|
|
4485
|
+
}, null, 8, ["dataset", "config"])) : (n(), ct(h(Ne), {
|
|
4486
|
+
key: `table_${Nl.value}`,
|
|
4487
|
+
colNames: va.value.colNames,
|
|
4488
|
+
head: va.value.head,
|
|
4489
|
+
body: va.value.body,
|
|
4490
|
+
config: va.value.config,
|
|
4491
|
+
title: t.value.table.useDialog ? "" : Yl.value.title,
|
|
4502
4492
|
withCloseButton: !t.value.table.useDialog,
|
|
4503
4493
|
onClose: vo
|
|
4504
4494
|
}, {
|
|
@@ -4522,7 +4512,7 @@ const _n = {
|
|
|
4522
4512
|
t.value.table.useDialog ? {
|
|
4523
4513
|
name: "title",
|
|
4524
4514
|
fn: we(() => [
|
|
4525
|
-
bo(re(
|
|
4515
|
+
bo(re(Yl.value.title), 1)
|
|
4526
4516
|
]),
|
|
4527
4517
|
key: "0"
|
|
4528
4518
|
} : void 0,
|
|
@@ -4532,11 +4522,11 @@ const _n = {
|
|
|
4532
4522
|
k("button", {
|
|
4533
4523
|
tabindex: "0",
|
|
4534
4524
|
class: "vue-ui-user-options-button",
|
|
4535
|
-
onClick: s[3] || (s[3] = (e) =>
|
|
4525
|
+
onClick: s[3] || (s[3] = (e) => Ta(t.value.chart.userOptions.callbacks.csv))
|
|
4536
4526
|
}, [
|
|
4537
4527
|
ml(h(me), {
|
|
4538
4528
|
name: "excel",
|
|
4539
|
-
stroke:
|
|
4529
|
+
stroke: Yl.value.props.color
|
|
4540
4530
|
}, null, 8, ["stroke"])
|
|
4541
4531
|
])
|
|
4542
4532
|
]),
|