vue-data-ui 3.1.5 → 3.1.6
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-BFbcF5Sq.js → Arrow-DtlAIKPQ.js} +1 -1
- package/dist/{BaseDraggableDialog-BO4B1Kwa.js → BaseDraggableDialog-BVZPPMT9.js} +2 -2
- package/dist/{BaseIcon-BQQGRQ2U.js → BaseIcon-D_BjQBAR.js} +1 -1
- package/dist/{ColorPicker-d1kmGapq.js → ColorPicker-BeJGNqJl.js} +2 -2
- package/dist/{DataTable-D6voeZvO.js → DataTable-IycMkaTU.js} +2 -2
- package/dist/{Legend-nPGcCxG_.js → Legend-D7l8BJ7z.js} +2 -2
- package/dist/{NonSvgPenAndPaper-xRGRe41H.js → NonSvgPenAndPaper-BK5M9Lt9.js} +3 -3
- package/dist/{PackageVersion-BeStrsPr.js → PackageVersion-BtfT0hV9.js} +1 -1
- package/dist/{PenAndPaper-C6tiapdo.js → PenAndPaper-BdzDJYnr.js} +3 -3
- package/dist/{Shape-DBVq0fdK.js → Shape-DD3SLpa4.js} +1 -1
- package/dist/{Slicer-Duqm7KZK.js → Slicer-DoGlWyq_.js} +66 -67
- package/dist/{SparkTooltip-wNGmXZSx.js → SparkTooltip-DAfofSes.js} +1 -1
- package/dist/{Title-ydtId0LC.js → Title-DbQthJAs.js} +1 -1
- package/dist/{Tooltip-oeu9knGI.js → Tooltip-DvtYLrX2.js} +1 -1
- package/dist/{UserOptions-CnJxN2Vo.js → UserOptions-Dd5XOrwq.js} +2 -2
- package/dist/{dom-to-png-CMCYtLrX.js → dom-to-png-j6qE-sAL.js} +1 -1
- package/dist/{img-Neec0VVb.js → img-DLgjML7h.js} +1 -1
- package/dist/{index-BkfuZCRT.js → index-C0wrF8hm.js} +1 -1
- package/dist/{pdf-CpQ-dqJh.js → pdf-Csglybwj.js} +1 -1
- package/dist/style.css +1 -1
- package/dist/{useAutoSizeLabelsInsideViewbox-DR2HExYc.js → useAutoSizeLabelsInsideViewbox-Bj3DhGbZ.js} +1 -1
- package/dist/{useNestedProp-BMzw9VUz.js → useNestedProp-Bg2FlIgI.js} +1 -1
- package/dist/{usePrinter-CEdg3j8S.js → usePrinter-C2jvouU0.js} +2 -2
- package/dist/{vue-data-ui-D5B7a84o.js → vue-data-ui-DaOijb0V.js} +64 -64
- package/dist/vue-data-ui.js +1 -1
- package/dist/{vue-ui-3d-bar-C8_Qu1rf.js → vue-ui-3d-bar-BbW6NaRc.js} +8 -8
- package/dist/{vue-ui-accordion-DFxAHGEZ.js → vue-ui-accordion-3JuSLBjV.js} +3 -3
- package/dist/{vue-ui-age-pyramid-D_kTImtX.js → vue-ui-age-pyramid-D94C1TOK.js} +8 -8
- package/dist/{vue-ui-annotator-B1vSlzfu.js → vue-ui-annotator-Jq_yw0h7.js} +2 -2
- package/dist/{vue-ui-bullet-VPchh2r2.js → vue-ui-bullet-ajwy7d-R.js} +7 -7
- package/dist/{vue-ui-candlestick-CB3bj7_-.js → vue-ui-candlestick-vMGbmNWA.js} +58 -58
- package/dist/{vue-ui-carousel-table-CUiSyrTY.js → vue-ui-carousel-table-DydTCm2Z.js} +4 -4
- package/dist/{vue-ui-chestnut-BE5ZEt1N.js → vue-ui-chestnut-D6AP76wU.js} +37 -37
- package/dist/{vue-ui-chord-DVSBY9ou.js → vue-ui-chord-Du8GJXPN.js} +11 -11
- package/dist/{vue-ui-circle-pack-BfDjZFaF.js → vue-ui-circle-pack-C-C3OGW_.js} +232 -228
- package/dist/{vue-ui-cursor-BIuc6nds.js → vue-ui-cursor-B70FlDqP.js} +2 -2
- package/dist/{vue-ui-dashboard-C7xIcrvD.js → vue-ui-dashboard-DrFCH7LP.js} +67 -67
- package/dist/{vue-ui-digits-C3mI-0Fg.js → vue-ui-digits-CQy-vOC2.js} +2 -2
- package/dist/{vue-ui-donut-BApz1ho5.js → vue-ui-donut-D0RdN18d.js} +10 -10
- package/dist/{vue-ui-donut-evolution-B2PJiYY9.js → vue-ui-donut-evolution-naYIvk-b.js} +38 -38
- package/dist/{vue-ui-dumbbell-DQjVvBH_.js → vue-ui-dumbbell-D6b7WMTy.js} +84 -84
- package/dist/{vue-ui-flow-COtJRNLE.js → vue-ui-flow-Dh8_ii-s.js} +55 -55
- package/dist/{vue-ui-funnel-BY2qeg-m.js → vue-ui-funnel-Ct4e9chO.js} +31 -31
- package/dist/{vue-ui-galaxy-3zec_QLi.js → vue-ui-galaxy-Dqklv14X.js} +31 -31
- package/dist/{vue-ui-gauge-CFUA5ORH.js → vue-ui-gauge-D-vHj5J1.js} +7 -7
- package/dist/{vue-ui-gizmo-CUPFU8GE.js → vue-ui-gizmo-Cn0d1lVH.js} +3 -3
- package/dist/{vue-ui-heatmap-DakytdCv.js → vue-ui-heatmap-BpcoDwpi.js} +10 -10
- package/dist/{vue-ui-history-plot-DnSB7au4.js → vue-ui-history-plot-D8tmNUHo.js} +88 -88
- package/dist/{vue-ui-kpi-UmcKQftv.js → vue-ui-kpi-88Bguk6S.js} +3 -3
- package/dist/{vue-ui-mini-loader-Bl8GHasa.js → vue-ui-mini-loader-VDpWxyls.js} +2 -2
- package/dist/{vue-ui-molecule-BZrmSVps.js → vue-ui-molecule-Cn8yeJLZ.js} +8 -8
- package/dist/{vue-ui-mood-radar-CVM8vl5N.js → vue-ui-mood-radar-DidC77_K.js} +9 -9
- package/dist/{vue-ui-nested-donuts-LTzijeVK.js → vue-ui-nested-donuts-D1EZ91Wm.js} +42 -42
- package/dist/{vue-ui-onion-aHCc3r7L.js → vue-ui-onion-B_mir5Ax.js} +12 -11
- package/dist/{vue-ui-parallel-coordinate-plot-0xXe6A-6.js → vue-ui-parallel-coordinate-plot-DRbJyqiQ.js} +10 -10
- package/dist/{vue-ui-quadrant-BlM9WNN7.js → vue-ui-quadrant-D7ihdCkd.js} +10 -10
- package/dist/{vue-ui-quick-chart-CJ2Wdln9.js → vue-ui-quick-chart-Dwc1xJtX.js} +6 -6
- package/dist/{vue-ui-radar-Cgnooz7-.js → vue-ui-radar-DhsgkGwF.js} +10 -10
- package/dist/{vue-ui-rating-DF71ymNG.js → vue-ui-rating-D_sWv7fR.js} +2 -2
- package/dist/{vue-ui-relation-circle-DsuEL1gY.js → vue-ui-relation-circle-CAvYwKpm.js} +7 -7
- package/dist/{vue-ui-ridgeline-DxP8uxgx.js → vue-ui-ridgeline-DuWQX2OI.js} +10 -10
- package/dist/{vue-ui-rings-C4hKgrft.js → vue-ui-rings-BrBkOGZk.js} +10 -10
- package/dist/{vue-ui-scatter-B_SzTSE5.js → vue-ui-scatter--kNBhPeG.js} +10 -10
- package/dist/{vue-ui-skeleton-DCAlHSMV.js → vue-ui-skeleton-B6Y0yxOn.js} +3 -3
- package/dist/{vue-ui-smiley-B_JFtrl6.js → vue-ui-smiley-B7tZsNRS.js} +2 -2
- package/dist/{vue-ui-spark-trend-CC7q1UbE.js → vue-ui-spark-trend-Dy5C9uny.js} +3 -3
- package/dist/{vue-ui-sparkbar-C2YRX4mJ.js → vue-ui-sparkbar-9NN07DOT.js} +3 -3
- package/dist/{vue-ui-sparkgauge-BO4c3j-8.js → vue-ui-sparkgauge-iV-u83Ie.js} +3 -3
- package/dist/{vue-ui-sparkhistogram-BuGOHT9h.js → vue-ui-sparkhistogram-X47TDKC2.js} +4 -4
- package/dist/{vue-ui-sparkline-hOyPCIt8.js → vue-ui-sparkline-C67Y3c7l.js} +3 -3
- package/dist/{vue-ui-sparkstackbar-DhSc-U8u.js → vue-ui-sparkstackbar-Bzmq9peq.js} +3 -3
- package/dist/{vue-ui-stackbar-VdBWv1wm.js → vue-ui-stackbar-C0cn-5Sz.js} +11 -11
- package/dist/{vue-ui-strip-plot-CBj5ntWM.js → vue-ui-strip-plot-D3StIxYT.js} +9 -9
- package/dist/{vue-ui-table-BItmKbvF.js → vue-ui-table-B-wP544v.js} +3 -3
- package/dist/{vue-ui-table-heatmap-DziHVKba.js → vue-ui-table-heatmap-_qJwOiYG.js} +5 -5
- package/dist/{vue-ui-table-sparkline-CpWDqm7q.js → vue-ui-table-sparkline-C6MoeyKm.js} +4 -4
- package/dist/{vue-ui-thermometer-CWt0q_Tu.js → vue-ui-thermometer-BmYZiNK4.js} +7 -7
- package/dist/{vue-ui-timer-BIv2sfQA.js → vue-ui-timer-XeLnI_ia.js} +5 -5
- package/dist/{vue-ui-tiremarks-BE_VWjK-.js → vue-ui-tiremarks-CnCSAQiH.js} +6 -6
- package/dist/{vue-ui-treemap-2AIbDpTo.js → vue-ui-treemap-Nd27H4H5.js} +10 -10
- package/dist/{vue-ui-vertical-bar-CP-XFVV5.js → vue-ui-vertical-bar-Dd1XUvnp.js} +50 -50
- package/dist/{vue-ui-waffle-CewP8k-W.js → vue-ui-waffle-Czg-z9KF.js} +32 -32
- package/dist/{vue-ui-wheel-Ik8FoLfz.js → vue-ui-wheel-DfPu-QQM.js} +6 -6
- package/dist/{vue-ui-word-cloud-CEEc5ep_.js → vue-ui-word-cloud-CB9_bPjO.js} +38 -38
- package/dist/{vue-ui-world-CuwXMI3D.js → vue-ui-world-Bo_NzzhJ.js} +8 -8
- package/dist/{vue-ui-xy-Bsh2OBHp.js → vue-ui-xy-Dc-o6Q3R.js} +944 -938
- package/dist/{vue-ui-xy-canvas-CKzjhhNg.js → vue-ui-xy-canvas-D1Do33ar.js} +12 -12
- package/package.json +4 -2
|
@@ -1,18 +1,18 @@
|
|
|
1
|
-
import { useCssVars as
|
|
2
|
-
import { c as Dl, V as Xl, U as Yl, y as Wl, X as Wo, F as
|
|
1
|
+
import { useCssVars as Fo, computed as x, ref as g, onMounted as ul, onBeforeUnmount as Wt, watch as it, nextTick as Xt, onUpdated as Po, createElementBlock as r, openBlock as s, createElementVNode as y, createCommentVNode as f, renderSlot as Q, normalizeStyle as _, createVNode as Dt, withDirectives as ia, unref as v, Fragment as b, renderList as C, normalizeClass as Xe, withKeys as Ya, vModelText as Ga, toDisplayString as ne, defineAsyncComponent as Ct, useSlots as Oo, getCurrentInstance as Bo, toRefs as Ho, watchEffect as Ua, createBlock as Je, createSlots as qa, withCtx as be, normalizeProps as At, guardReactiveProps as zt, mergeProps as Ll, Teleport as Vo, resolveDynamicComponent as Eo, vModelCheckbox as Do, createTextVNode as Za } from "vue";
|
|
2
|
+
import { c as Dl, V as Xl, U as Yl, y as Wl, X as Wo, F as ut, u as Xo, f as oa, t as Yo, d as Go, D as Ml, ac as Vt, e as Uo, p as qo, ad as Hl, a9 as q, a4 as na, ae as Zo, h as W, af as Ka, ag as Ja, ah as Ko, ai as Qa, aj as ja, k as Le, ak as Jo, z as Qo, _ as eo, R as dt, i as Qe, x as Et, s as nt, a7 as le, L as jo, al as Vl, I as en, am as Tt, C as We, a as tn, b as ln, o as to, v as an, w as on, E as nl } from "./index-C0wrF8hm.js";
|
|
3
3
|
import { t as sa, u as nn } from "./useResponsive-DfdjqQps.js";
|
|
4
|
-
import { u as un } from "./usePrinter-
|
|
4
|
+
import { u as un } from "./usePrinter-C2jvouU0.js";
|
|
5
5
|
import { u as sn, B as rn } from "./BaseScanner-BgWxam9d.js";
|
|
6
6
|
import { u as lo, a as cn, l as vn } from "./useTimeLabels-BGFjWgrv.js";
|
|
7
|
-
import { u as ua } from "./useNestedProp-
|
|
7
|
+
import { u as ua } from "./useNestedProp-Bg2FlIgI.js";
|
|
8
8
|
import { u as dn } from "./useTimeLabelCollider-CIsgDrl9.js";
|
|
9
|
-
import hn from "./img-
|
|
10
|
-
import fn from "./Title-
|
|
11
|
-
import { S as mn } from "./Slicer-
|
|
12
|
-
import { _ as El } from "./Shape-
|
|
13
|
-
import gn from "./BaseIcon-
|
|
9
|
+
import hn from "./img-DLgjML7h.js";
|
|
10
|
+
import fn from "./Title-DbQthJAs.js";
|
|
11
|
+
import { S as mn } from "./Slicer-DoGlWyq_.js";
|
|
12
|
+
import { _ as El } from "./Shape-DD3SLpa4.js";
|
|
13
|
+
import gn from "./BaseIcon-D_BjQBAR.js";
|
|
14
14
|
import { _ as ao } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
15
|
-
import bn from "./vue-ui-accordion-
|
|
15
|
+
import bn from "./vue-ui-accordion-3JuSLBjV.js";
|
|
16
16
|
const xn = {
|
|
17
17
|
class: "vue-data-ui-slicer-labels",
|
|
18
18
|
style: { position: "relative", "z-index": "1", "pointer-events": "none" }
|
|
@@ -23,7 +23,7 @@ const xn = {
|
|
|
23
23
|
key: 0,
|
|
24
24
|
class: "minimap",
|
|
25
25
|
style: { width: "100%" }
|
|
26
|
-
}, kn = ["xmlns", "viewBox"], wn = ["id"], Sn = ["stop-color"], _n = ["d", "stroke"], $n = ["x", "width", "height", "fill", "rx"], Ln = ["d", "fill"], Mn = ["x", "width", "height", "rx", "fill"], Cn = ["x", "width", "height", "fill", "rx"], An = ["d", "fill"], zn = ["d", "stroke"], Tn = ["cx", "cy", "stroke", "fill"], In = ["cx", "cy", "stroke", "fill"], Nn = ["x1", "x2", "y2", "stroke"], Rn = ["x", "height", "width", "onMouseenter"],
|
|
26
|
+
}, kn = ["xmlns", "viewBox"], wn = ["id"], Sn = ["stop-color"], _n = ["d", "stroke"], $n = ["x", "width", "height", "fill", "rx"], Ln = ["d", "fill"], Mn = ["x", "width", "height", "rx", "fill"], Cn = ["x", "width", "height", "fill", "rx"], An = ["d", "fill"], zn = ["d", "stroke"], Tn = ["cx", "cy", "stroke", "fill"], In = ["cx", "cy", "stroke", "fill"], Nn = ["x1", "x2", "y2", "stroke"], Rn = ["x", "height", "width", "onMouseenter"], Fn = ["min", "max"], Pn = ["min", "max"], On = 48, Bn = {
|
|
27
27
|
__name: "SlicerPreview",
|
|
28
28
|
props: {
|
|
29
29
|
background: {
|
|
@@ -156,235 +156,243 @@ const xn = {
|
|
|
156
156
|
},
|
|
157
157
|
emits: ["futureStart", "futureEnd", "update:start", "update:end", "reset", "trapMouse"],
|
|
158
158
|
setup(N, { expose: Gl, emit: Ul }) {
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
"
|
|
162
|
-
"
|
|
163
|
-
"
|
|
164
|
-
"
|
|
159
|
+
Fo((m) => ({
|
|
160
|
+
fd69940c: It.value,
|
|
161
|
+
"1940be6e": Ge.value,
|
|
162
|
+
"540b7d42": ql.value,
|
|
163
|
+
"0d1400c4": N.selectColor,
|
|
164
|
+
"40456b2c": Nt.value
|
|
165
165
|
}));
|
|
166
|
-
const d = N, Ye = g(null), ve = g(d.min), de = g(d.max), kt =
|
|
166
|
+
const d = N, Ye = g(null), ve = g(d.min), de = g(d.max), kt = x(() => !!d.minimap.length), il = g(Dl()), Yt = g(!1), sl = g(0), Gt = x({
|
|
167
167
|
get() {
|
|
168
168
|
return ve.value;
|
|
169
169
|
},
|
|
170
170
|
set(m) {
|
|
171
171
|
const h = Math.min(m, de.value - 1);
|
|
172
|
-
ve.value = h, ue.value && (ue.value.value = String(h)),
|
|
172
|
+
ve.value = h, ue.value && (ue.value.value = String(h)), xe("futureStart", h);
|
|
173
173
|
}
|
|
174
|
-
}),
|
|
174
|
+
}), wt = x({
|
|
175
175
|
get() {
|
|
176
176
|
return de.value;
|
|
177
177
|
},
|
|
178
178
|
set(m) {
|
|
179
179
|
const h = Math.max(m, ve.value + 1);
|
|
180
|
-
de.value = h, Z.value && (Z.value.value = String(h)),
|
|
180
|
+
de.value = h, Z.value && (Z.value.value = String(h)), xe("futureEnd", h);
|
|
181
181
|
}
|
|
182
182
|
});
|
|
183
183
|
ul(() => {
|
|
184
184
|
const m = () => {
|
|
185
|
-
Ye.value && (
|
|
185
|
+
Ye.value && (sl.value = Ye.value.getBoundingClientRect().width);
|
|
186
186
|
};
|
|
187
187
|
m();
|
|
188
188
|
const h = sa(m, 50);
|
|
189
|
-
window.addEventListener("resize", h),
|
|
189
|
+
window.addEventListener("resize", h), Wt(() => {
|
|
190
190
|
window.removeEventListener("resize", h);
|
|
191
191
|
});
|
|
192
192
|
});
|
|
193
193
|
let rl = null;
|
|
194
194
|
function je() {
|
|
195
|
-
clearTimeout(rl),
|
|
195
|
+
clearTimeout(rl), xe("update:start", Number(ve.value)), xe("update:end", Number(de.value)), Yt.value = !1;
|
|
196
196
|
}
|
|
197
|
-
const cl =
|
|
198
|
-
const m = d.max - d.min, h = (ve.value - d.min) / m * 100,
|
|
197
|
+
const cl = x(() => d.refreshEndPoint === null ? d.max : d.refreshEndPoint), xe = Ul, pe = x(() => {
|
|
198
|
+
const m = d.max - d.min, h = (ve.value - d.min) / m * 100, S = (de.value - d.min) / m * 100, X = (h + S) / 2, ce = st.value ? `calc(${X}% - ${vt.value.width}px)` : He.value ? `calc(${X}%)` : `calc(${X}% - ${vt.value.width / 2}px)`;
|
|
199
199
|
return {
|
|
200
200
|
left: `${h}%`,
|
|
201
|
-
width: `${
|
|
201
|
+
width: `${S - h}%`,
|
|
202
202
|
background: d.selectColor,
|
|
203
|
-
tooltipLeft: `calc(${h}% - ${
|
|
204
|
-
tooltipRight: `calc(${
|
|
203
|
+
tooltipLeft: `calc(${h}% - ${He.value ? 0 : pl.value / 2}px)`,
|
|
204
|
+
tooltipRight: `calc(${S}% - ${st.value ? jt.value : jt.value / 2}px)`,
|
|
205
205
|
tooltipCenter: ce,
|
|
206
|
-
arrowLeft: !
|
|
207
|
-
arrowRight: !
|
|
206
|
+
arrowLeft: !He.value,
|
|
207
|
+
arrowRight: !st.value
|
|
208
208
|
};
|
|
209
|
-
}),
|
|
209
|
+
}), He = x(() => Ye.value ? Ye.value.getBoundingClientRect().width * ((ve.value - d.min) / (d.max - d.min)) - pl.value / 2 < 0 : !1), st = x(() => Ye.value ? Ye.value.getBoundingClientRect().width * ((de.value - d.min) / (d.max - d.min)) + jt.value / 2 > Ye.value.getBoundingClientRect().width : !1), It = x(() => d.inputColor), Nt = x(() => d.background), ql = x(() => `${d.selectColor}33`), Ge = x(() => d.borderColor), Ut = x(() => {
|
|
210
210
|
let m = [];
|
|
211
211
|
for (let h = 0; h < d.minimap.length; h += 1)
|
|
212
212
|
m.push(h);
|
|
213
213
|
return m;
|
|
214
214
|
});
|
|
215
|
-
function
|
|
216
|
-
|
|
215
|
+
function ht() {
|
|
216
|
+
xe("reset");
|
|
217
217
|
}
|
|
218
|
-
|
|
218
|
+
it(
|
|
219
219
|
() => d.min,
|
|
220
220
|
(m) => {
|
|
221
221
|
Number(ve.value) < Number(m) && (ve.value = Number(m)), Number(de.value) < Number(m) && (de.value = Number(m));
|
|
222
222
|
}
|
|
223
|
-
),
|
|
223
|
+
), it(
|
|
224
224
|
() => d.max,
|
|
225
225
|
(m) => {
|
|
226
226
|
Number(ve.value) > Number(m) && (ve.value = Number(m)), Number(de.value) > Number(m) && (de.value = Number(m));
|
|
227
227
|
}
|
|
228
228
|
);
|
|
229
|
-
const
|
|
229
|
+
const Rt = g(null), j = g({
|
|
230
230
|
width: 1,
|
|
231
231
|
height: 1
|
|
232
|
-
}),
|
|
232
|
+
}), Me = g(null);
|
|
233
233
|
ul(() => {
|
|
234
234
|
if (kt.value) {
|
|
235
235
|
const m = sa(() => {
|
|
236
|
-
const { width: h, height:
|
|
237
|
-
chart:
|
|
236
|
+
const { width: h, height: S } = nn({
|
|
237
|
+
chart: Rt.value
|
|
238
238
|
});
|
|
239
|
-
j.value.width = h, j.value.height =
|
|
239
|
+
j.value.width = h, j.value.height = S - 47;
|
|
240
240
|
});
|
|
241
|
-
|
|
241
|
+
Me.value = new ResizeObserver(m), Me.value.observe(Rt.value);
|
|
242
242
|
}
|
|
243
|
-
}),
|
|
244
|
-
|
|
243
|
+
}), Wt(() => {
|
|
244
|
+
Me.value && Me.value.disconnect();
|
|
245
245
|
});
|
|
246
|
-
const vl =
|
|
246
|
+
const vl = x(() => Math.max(1, d.max - d.min)), St = x(() => Math.max(1, d.minimap.length)), P = x(() => St.value / vl.value);
|
|
247
247
|
function dl(m) {
|
|
248
|
-
const h = Math.floor((m - d.min) *
|
|
249
|
-
return Math.min(Math.max(0, h),
|
|
248
|
+
const h = Math.floor((m - d.min) * P.value);
|
|
249
|
+
return Math.min(Math.max(0, h), St.value);
|
|
250
250
|
}
|
|
251
251
|
function ye(m) {
|
|
252
|
-
const h = Math.ceil((m - d.min) *
|
|
253
|
-
return Math.min(Math.max(0, h),
|
|
252
|
+
const h = Math.ceil((m - d.min) * P.value);
|
|
253
|
+
return Math.min(Math.max(0, h), St.value);
|
|
254
254
|
}
|
|
255
|
-
const ee =
|
|
255
|
+
const ee = x(() => dl(ve.value)), rt = x(() => ye(de.value)), ke = x(() => d.minimap.length ? j.value.width / d.minimap.length : 0), we = x(() => {
|
|
256
256
|
if (!d.minimap.length) return [];
|
|
257
|
-
const m = Math.max(...d.minimap), h = Math.min(...d.minimap) - 10,
|
|
258
|
-
x: j.value.width / d.minimap.length *
|
|
259
|
-
y: j.value.height - (
|
|
260
|
-
})), ce = ee.value,
|
|
257
|
+
const m = Math.max(...d.minimap), h = Math.min(...d.minimap) - 10, S = m - (h > 0 ? 0 : h), X = d.minimap.map((at, Ze) => ({
|
|
258
|
+
x: j.value.width / d.minimap.length * Ze + ke.value / 2,
|
|
259
|
+
y: j.value.height - (at - h) / S * (j.value.height * 0.9)
|
|
260
|
+
})), ce = ee.value, xt = Math.max(ce + 1, rt.value), tl = d.smoothMinimap ? Xl(X) : Yl(X), Te = X.slice(ce, xt), Ft = d.smoothMinimap ? Xl(Te) : Yl(Te);
|
|
261
261
|
return {
|
|
262
|
-
fullSet:
|
|
263
|
-
selectionSet:
|
|
264
|
-
sliced:
|
|
262
|
+
fullSet: tl,
|
|
263
|
+
selectionSet: Ft,
|
|
264
|
+
sliced: Te,
|
|
265
265
|
firstPlot: X[ce],
|
|
266
|
-
lastPlot: X[Math.max(0,
|
|
266
|
+
lastPlot: X[Math.max(0, xt - 1)]
|
|
267
267
|
};
|
|
268
|
-
}),
|
|
269
|
-
const m = ee.value, h = Math.max(m + 1,
|
|
268
|
+
}), Ce = x(() => {
|
|
269
|
+
const m = ee.value, h = Math.max(m + 1, rt.value);
|
|
270
270
|
return {
|
|
271
271
|
x: ke.value * m + ke.value / 2,
|
|
272
272
|
width: ke.value * (h - m) - ke.value
|
|
273
273
|
};
|
|
274
|
-
}),
|
|
275
|
-
|
|
274
|
+
}), Re = g(d.minimapSelectedIndex);
|
|
275
|
+
it(() => d.minimapSelectedIndex, (m) => {
|
|
276
276
|
if ([null, void 0].includes(m)) {
|
|
277
|
-
|
|
277
|
+
Re.value = null;
|
|
278
278
|
return;
|
|
279
279
|
}
|
|
280
|
-
|
|
280
|
+
Re.value = dl(d.valueStart) + m;
|
|
281
281
|
}, { immediate: !0 });
|
|
282
|
-
function
|
|
283
|
-
|
|
284
|
-
const h = ee.value,
|
|
285
|
-
m >= h && m <
|
|
282
|
+
function Cl(m) {
|
|
283
|
+
Re.value = m;
|
|
284
|
+
const h = ee.value, S = rt.value;
|
|
285
|
+
m >= h && m < S && xe("trapMouse", m - h);
|
|
286
286
|
}
|
|
287
|
-
const
|
|
287
|
+
const ft = g(0), ue = g(null), Z = g(null);
|
|
288
288
|
function hl(m) {
|
|
289
289
|
if (typeof m == "object" && m && "target" in m) {
|
|
290
|
-
const
|
|
290
|
+
const S = m.target, X = "valueAsNumber" in S ? S.valueAsNumber : +S.value;
|
|
291
291
|
return Number.isFinite(X) ? X : NaN;
|
|
292
292
|
}
|
|
293
293
|
const h = +m;
|
|
294
294
|
return Number.isFinite(h) ? h : NaN;
|
|
295
295
|
}
|
|
296
|
+
let qt = 0;
|
|
296
297
|
function fl(m) {
|
|
297
|
-
|
|
298
|
+
Yt.value = !0;
|
|
298
299
|
const h = hl(m);
|
|
299
|
-
Number.isFinite(h) && (
|
|
300
|
+
Number.isFinite(h) && (cancelAnimationFrame(qt), qt = requestAnimationFrame(() => {
|
|
301
|
+
Gt.value = h;
|
|
302
|
+
}));
|
|
300
303
|
}
|
|
301
|
-
|
|
302
|
-
|
|
304
|
+
let mt = 0;
|
|
305
|
+
function Zt(m) {
|
|
306
|
+
Yt.value = !0;
|
|
303
307
|
const h = hl(m);
|
|
304
|
-
Number.isFinite(h) && (
|
|
308
|
+
Number.isFinite(h) && (cancelAnimationFrame(mt), mt = requestAnimationFrame(() => {
|
|
309
|
+
wt.value = h;
|
|
310
|
+
}));
|
|
305
311
|
}
|
|
306
|
-
|
|
307
|
-
|
|
308
|
-
|
|
309
|
-
const
|
|
310
|
-
let
|
|
311
|
-
const
|
|
312
|
-
|
|
312
|
+
Wt(() => {
|
|
313
|
+
cancelAnimationFrame(qt), cancelAnimationFrame(mt);
|
|
314
|
+
});
|
|
315
|
+
const O = x(() => d.valueEnd - d.valueStart), gt = g(!1);
|
|
316
|
+
let ml = g(null);
|
|
317
|
+
const Kt = x(() => (sl.value - 48) / (d.max - d.min) * O.value), Ae = x(() => Math.max(1, sl.value - On - Kt.value)), et = x(() => Math.max(1, d.max - d.min - O.value)), Jt = x(() => et.value / Ae.value), gl = g(0), bt = g(0), L = g(0), Al = g(0);
|
|
318
|
+
let tt = null, Ue = null, lt = null, w = null;
|
|
319
|
+
const Fe = (m) => {
|
|
320
|
+
if (Se.value = !0, !d.enableSelectionDrag) return;
|
|
313
321
|
const h = m.type === "touchstart";
|
|
314
322
|
h || m.stopPropagation();
|
|
315
|
-
const
|
|
323
|
+
const S = h && m.targetTouches && m.targetTouches[0] ? m.targetTouches[0] : null, X = h ? S ? S.target : null : m.target;
|
|
316
324
|
if (!X || !(X instanceof Element) || X.classList && X.classList.contains("range-handle")) return;
|
|
317
|
-
|
|
318
|
-
const ce = h ?
|
|
319
|
-
|
|
325
|
+
gt.value = !0;
|
|
326
|
+
const ce = h ? S ? S.clientX : 0 : m.clientX;
|
|
327
|
+
ml.value = ce, gl.value = ce, bt.value = ve.value, L.value = de.value, Al.value = Jt.value, tt = h ? "touchmove" : "mousemove", Ue = h ? "touchend" : "mouseup", lt = h ? Qt : bl, w = h ? xl : k, window.addEventListener(tt, lt, { passive: !1 }), window.addEventListener(Ue, w);
|
|
320
328
|
};
|
|
321
|
-
function
|
|
322
|
-
|
|
329
|
+
function bl(m) {
|
|
330
|
+
gt.value && t(m.clientX);
|
|
323
331
|
}
|
|
324
|
-
function
|
|
325
|
-
if (!
|
|
332
|
+
function Qt(m) {
|
|
333
|
+
if (!gt.value || !Ye.value) return;
|
|
326
334
|
const h = m.target;
|
|
327
335
|
if (!(h instanceof Element) || !Ye.value.contains(h) || h.classList && h.classList.contains("range-handle")) return;
|
|
328
336
|
m.preventDefault();
|
|
329
|
-
const
|
|
330
|
-
|
|
337
|
+
const S = m.targetTouches && m.targetTouches[0] ? m.targetTouches[0] : null;
|
|
338
|
+
S && t(S.clientX);
|
|
331
339
|
}
|
|
332
|
-
function
|
|
333
|
-
if (!
|
|
334
|
-
const
|
|
335
|
-
let X = Math.round(
|
|
336
|
-
X = Math.max(d.min, Math.min(X, d.max -
|
|
337
|
-
const ce = X +
|
|
338
|
-
|
|
340
|
+
function t(m) {
|
|
341
|
+
if (!gt.value) return;
|
|
342
|
+
const S = (m - gl.value) * Al.value;
|
|
343
|
+
let X = Math.round(bt.value + S);
|
|
344
|
+
X = Math.max(d.min, Math.min(X, d.max - O.value));
|
|
345
|
+
const ce = X + O.value;
|
|
346
|
+
Gt.value = X, wt.value = ce;
|
|
339
347
|
}
|
|
340
|
-
function
|
|
341
|
-
|
|
348
|
+
function k() {
|
|
349
|
+
_t();
|
|
342
350
|
}
|
|
343
|
-
function
|
|
344
|
-
|
|
351
|
+
function xl() {
|
|
352
|
+
_t();
|
|
345
353
|
}
|
|
346
|
-
function
|
|
347
|
-
|
|
354
|
+
function _t() {
|
|
355
|
+
gt.value = !1, tt && lt && window.removeEventListener(tt, lt), Ue && w && window.removeEventListener(Ue, w), tt = Ue = null, lt = w = null, je();
|
|
348
356
|
}
|
|
349
|
-
const
|
|
350
|
-
function
|
|
351
|
-
|
|
357
|
+
const oe = g(!1), he = g(null), ct = g(null), pl = g(1), jt = g(1), Se = g(!1);
|
|
358
|
+
function ze() {
|
|
359
|
+
he.value && (pl.value = he.value.getBoundingClientRect().width);
|
|
352
360
|
}
|
|
353
|
-
function
|
|
354
|
-
|
|
361
|
+
function p() {
|
|
362
|
+
ct.value && (jt.value = ct.value.getBoundingClientRect().width);
|
|
355
363
|
}
|
|
356
|
-
const
|
|
357
|
-
function
|
|
358
|
-
|
|
364
|
+
const qe = g(0);
|
|
365
|
+
function yl(m) {
|
|
366
|
+
qe.value = m === "start" ? 1 : 0;
|
|
359
367
|
}
|
|
360
|
-
const
|
|
368
|
+
const $t = g(!1), vt = g({
|
|
361
369
|
width: 0,
|
|
362
370
|
left: 0
|
|
363
371
|
});
|
|
364
|
-
|
|
365
|
-
if (await
|
|
366
|
-
|
|
372
|
+
it([ve, de], async () => {
|
|
373
|
+
if (await Xt(), !he.value || !ct.value) {
|
|
374
|
+
$t.value = !1, vt.value = { width: 0, left: 0 };
|
|
367
375
|
return;
|
|
368
376
|
}
|
|
369
|
-
const m =
|
|
370
|
-
|
|
371
|
-
const
|
|
372
|
-
|
|
377
|
+
const m = he.value.getBoundingClientRect(), h = ct.value.getBoundingClientRect();
|
|
378
|
+
$t.value = m.x + m.width > h.x;
|
|
379
|
+
const S = m.x + m.width / 2, X = h.x + h.width / 2, ce = m.width + h.width, xt = (S + X) / 2;
|
|
380
|
+
vt.value = {
|
|
373
381
|
width: ce,
|
|
374
|
-
left:
|
|
382
|
+
left: xt - ce / 2
|
|
375
383
|
};
|
|
376
|
-
}),
|
|
377
|
-
|
|
378
|
-
}),
|
|
379
|
-
|
|
380
|
-
}, { deep: !0 }),
|
|
381
|
-
|
|
384
|
+
}), Po(() => {
|
|
385
|
+
ze(), p();
|
|
386
|
+
}), it(() => d.labelLeft, () => {
|
|
387
|
+
Xt(ze);
|
|
388
|
+
}, { deep: !0 }), it(() => d.labelRight, () => {
|
|
389
|
+
Xt(p);
|
|
382
390
|
}, { deep: !0 });
|
|
383
|
-
const
|
|
391
|
+
const el = g(!1), ie = x(() => {
|
|
384
392
|
let m = { text: "" }, h = { text: "" };
|
|
385
|
-
if (
|
|
393
|
+
if (el.value = !1, Wl(d.customFormat))
|
|
386
394
|
try {
|
|
387
|
-
const
|
|
395
|
+
const S = d.customFormat({
|
|
388
396
|
absoluteIndex: ve.value,
|
|
389
397
|
seriesIndex: ve.value,
|
|
390
398
|
datapoint: d.selectedSeries
|
|
@@ -393,46 +401,46 @@ const xn = {
|
|
|
393
401
|
seriesIndex: de.value - 1,
|
|
394
402
|
datapoint: d.selectedSeries
|
|
395
403
|
});
|
|
396
|
-
typeof
|
|
404
|
+
typeof S == "string" && typeof X == "string" && (m.text = S, h.text = X, el.value = !0);
|
|
397
405
|
} catch {
|
|
398
|
-
console.warn("Custom format cannot be applied on zoom labels."),
|
|
406
|
+
console.warn("Custom format cannot be applied on zoom labels."), el.value = !1;
|
|
399
407
|
}
|
|
400
|
-
return
|
|
408
|
+
return el.value || (m = d.usePreciseLabels ? d.preciseLabels.find((S) => S.absoluteIndex === ve.value) : d.timeLabels.find((S) => S.absoluteIndex === ve.value), h = d.usePreciseLabels ? d.preciseLabels.find((S) => S.absoluteIndex === de.value - 1) : d.timeLabels.find((S) => S.absoluteIndex === de.value - 1)), {
|
|
401
409
|
left: m ? m.text : "",
|
|
402
410
|
right: h ? h.text : ""
|
|
403
411
|
};
|
|
404
412
|
});
|
|
405
|
-
return
|
|
406
|
-
|
|
413
|
+
return Wt(() => {
|
|
414
|
+
Me.value && Me.value.disconnect(), tt && lt && window.removeEventListener(tt, lt), Ue && w && window.removeEventListener(Ue, w), tt = Ue = null, lt = w = null, clearTimeout(rl);
|
|
407
415
|
}), Gl({
|
|
408
416
|
setStartValue: fl,
|
|
409
|
-
setEndValue:
|
|
417
|
+
setEndValue: Zt
|
|
410
418
|
}), (m, h) => (s(), r("div", {
|
|
411
419
|
"data-dom-to-png-ignore": "",
|
|
412
420
|
style: { padding: "0 24px" },
|
|
413
421
|
class: "vue-data-ui-zoom",
|
|
414
422
|
ref_key: "zoomWrapper",
|
|
415
423
|
ref: Ye,
|
|
416
|
-
onMousedown:
|
|
417
|
-
onTouchstart:
|
|
424
|
+
onMousedown: Fe,
|
|
425
|
+
onTouchstart: Fe
|
|
418
426
|
}, [
|
|
419
427
|
y("div", xn, [
|
|
420
428
|
N.valueStart !== N.refreshStartPoint || N.valueEnd !== cl.value ? (s(), r("div", pn, [
|
|
421
429
|
N.useResetSlot ? Q(m.$slots, "reset-action", {
|
|
422
430
|
key: 1,
|
|
423
|
-
reset:
|
|
431
|
+
reset: ht
|
|
424
432
|
}, void 0, !0) : (s(), r("button", {
|
|
425
433
|
key: 0,
|
|
426
434
|
tabindex: "0",
|
|
427
435
|
role: "button",
|
|
428
436
|
class: "vue-data-ui-refresh-button",
|
|
429
|
-
style:
|
|
437
|
+
style: _({
|
|
430
438
|
top: kt.value ? "36px" : "-16px",
|
|
431
439
|
pointerEvents: "all !important"
|
|
432
440
|
}),
|
|
433
|
-
onClick:
|
|
441
|
+
onClick: ht
|
|
434
442
|
}, [
|
|
435
|
-
|
|
443
|
+
Dt(gn, {
|
|
436
444
|
name: "refresh",
|
|
437
445
|
stroke: N.textColor
|
|
438
446
|
}, null, 8, ["stroke"])
|
|
@@ -442,10 +450,10 @@ const xn = {
|
|
|
442
450
|
y("div", {
|
|
443
451
|
class: "double-range-slider",
|
|
444
452
|
ref_key: "minimapWrapper",
|
|
445
|
-
ref:
|
|
453
|
+
ref: Rt,
|
|
446
454
|
style: { "z-index": "0" },
|
|
447
|
-
onMouseenter: h[
|
|
448
|
-
onMouseleave: h[
|
|
455
|
+
onMouseenter: h[11] || (h[11] = (S) => Se.value = !0),
|
|
456
|
+
onMouseleave: h[12] || (h[12] = (S) => Se.value = !1)
|
|
449
457
|
}, [
|
|
450
458
|
kt.value ? (s(), r("div", yn, [
|
|
451
459
|
(s(), r("svg", {
|
|
@@ -454,7 +462,7 @@ const xn = {
|
|
|
454
462
|
}, [
|
|
455
463
|
y("defs", null, [
|
|
456
464
|
y("linearGradient", {
|
|
457
|
-
id:
|
|
465
|
+
id: il.value,
|
|
458
466
|
x1: "0%",
|
|
459
467
|
y1: "0%",
|
|
460
468
|
x2: "0%",
|
|
@@ -464,7 +472,7 @@ const xn = {
|
|
|
464
472
|
offset: "0%",
|
|
465
473
|
"stop-color": `${N.minimapLineColor}50`
|
|
466
474
|
}, null, 8, Sn),
|
|
467
|
-
h[
|
|
475
|
+
h[13] || (h[13] = y("stop", {
|
|
468
476
|
offset: "100%",
|
|
469
477
|
"stop-color": "transparent"
|
|
470
478
|
}, null, -1))
|
|
@@ -480,9 +488,9 @@ const xn = {
|
|
|
480
488
|
style: { opacity: "1" }
|
|
481
489
|
}, null, 8, _n),
|
|
482
490
|
y("rect", {
|
|
483
|
-
x:
|
|
491
|
+
x: Ce.value.x,
|
|
484
492
|
y: 0,
|
|
485
|
-
width:
|
|
493
|
+
width: Ce.value.width < 0 ? 0 : Ce.value.width,
|
|
486
494
|
height: Math.max(j.value.height, 0),
|
|
487
495
|
fill: Ge.value,
|
|
488
496
|
rx: N.minimapSelectionRadius,
|
|
@@ -490,31 +498,31 @@ const xn = {
|
|
|
490
498
|
}, null, 8, $n),
|
|
491
499
|
y("path", {
|
|
492
500
|
d: `M${ke.value / 2},${Math.max(j.value.height, 0)} ${we.value.fullSet} L${j.value.width - ke.value / 2},${Math.max(j.value.height, 0)}Z`,
|
|
493
|
-
fill: `url(#${
|
|
501
|
+
fill: `url(#${il.value})`,
|
|
494
502
|
stroke: "none",
|
|
495
503
|
style: { opacity: "1" }
|
|
496
504
|
}, null, 8, Ln),
|
|
497
505
|
y("rect", {
|
|
498
|
-
x:
|
|
506
|
+
x: Ce.value.x,
|
|
499
507
|
y: 0,
|
|
500
|
-
width:
|
|
508
|
+
width: Ce.value.width < 0 ? 0 : Ce.value.width,
|
|
501
509
|
height: Math.max(j.value.height, 0),
|
|
502
510
|
rx: N.minimapSelectionRadius,
|
|
503
511
|
fill: Ge.value,
|
|
504
|
-
style:
|
|
512
|
+
style: _({ opacity: gt.value || Yt.value ? 0 : 1 })
|
|
505
513
|
}, null, 12, Mn),
|
|
506
514
|
y("rect", {
|
|
507
|
-
x:
|
|
515
|
+
x: Ce.value.x,
|
|
508
516
|
y: 0,
|
|
509
|
-
width:
|
|
517
|
+
width: Ce.value.width < 0 ? 0 : Ce.value.width,
|
|
510
518
|
height: Math.max(j.value.height, 0),
|
|
511
519
|
fill: N.minimapSelectedColor,
|
|
512
520
|
rx: N.minimapSelectionRadius,
|
|
513
|
-
style:
|
|
521
|
+
style: _({ opacity: N.minimapSelectedColorOpacity })
|
|
514
522
|
}, null, 12, Cn),
|
|
515
523
|
y("path", {
|
|
516
524
|
d: `M${we.value.sliced[0].x},${Math.max(j.value.height, 0)} ${we.value.selectionSet} L${we.value.sliced.at(-1).x},${Math.max(j.value.height, 0)}Z`,
|
|
517
|
-
fill: `url(#${
|
|
525
|
+
fill: `url(#${il.value})`,
|
|
518
526
|
stroke: "none",
|
|
519
527
|
style: { opacity: "1" }
|
|
520
528
|
}, null, 8, An),
|
|
@@ -542,8 +550,8 @@ const xn = {
|
|
|
542
550
|
r: "3",
|
|
543
551
|
fill: N.minimapLineColor
|
|
544
552
|
}, null, 8, In),
|
|
545
|
-
|
|
546
|
-
|
|
553
|
+
Re.value !== null ? (s(!0), r(b, { key: 0 }, C(Ut.value, (S, X) => (s(), r("g", null, [
|
|
554
|
+
Re.value === S && S >= ee.value && S < rt.value ? (s(), r("line", {
|
|
547
555
|
key: 0,
|
|
548
556
|
x1: ke.value * X + ke.value / 2,
|
|
549
557
|
x2: ke.value * X + ke.value / 2,
|
|
@@ -555,39 +563,39 @@ const xn = {
|
|
|
555
563
|
"stroke-width": "1"
|
|
556
564
|
}, null, 8, Nn)) : f("", !0)
|
|
557
565
|
]))), 256)) : f("", !0),
|
|
558
|
-
(s(!0), r(
|
|
566
|
+
(s(!0), r(b, null, C(Ut.value, (S, X) => (s(), r("rect", {
|
|
559
567
|
x: ke.value * X,
|
|
560
568
|
y: 0,
|
|
561
569
|
height: Math.max(j.value.height, 0),
|
|
562
570
|
width: ke.value < 0 ? 0 : ke.value,
|
|
563
571
|
fill: "transparent",
|
|
564
|
-
style:
|
|
565
|
-
onMousedown: h[0] || (h[0] = (ce) =>
|
|
566
|
-
onMouseup: h[1] || (h[1] = (ce) =>
|
|
567
|
-
onMouseenter: (ce) =>
|
|
572
|
+
style: _([{ "pointer-events": "all !important" }, { cursor: S >= ee.value && S < rt.value && N.enableSelectionDrag ? oe.value ? "grabbing" : "grab" : "default" }]),
|
|
573
|
+
onMousedown: h[0] || (h[0] = (ce) => oe.value = !0),
|
|
574
|
+
onMouseup: h[1] || (h[1] = (ce) => oe.value = !1),
|
|
575
|
+
onMouseenter: (ce) => Cl(S),
|
|
568
576
|
onMouseleave: h[2] || (h[2] = (ce) => {
|
|
569
|
-
|
|
577
|
+
Re.value = null, xe("trapMouse", null);
|
|
570
578
|
})
|
|
571
579
|
}, null, 44, Rn))), 256))
|
|
572
580
|
], 8, kn))
|
|
573
581
|
])) : f("", !0),
|
|
574
|
-
h[
|
|
582
|
+
h[14] || (h[14] = y("div", { class: "slider-track" }, null, -1)),
|
|
575
583
|
y("div", {
|
|
576
584
|
class: Xe({
|
|
577
585
|
"range-highlight": !0,
|
|
578
586
|
move: N.enableSelectionDrag
|
|
579
587
|
}),
|
|
580
|
-
onMousedown: h[3] || (h[3] = (
|
|
581
|
-
onMouseup: h[4] || (h[4] = (
|
|
582
|
-
style:
|
|
588
|
+
onMousedown: h[3] || (h[3] = (S) => oe.value = !0),
|
|
589
|
+
onMouseup: h[4] || (h[4] = (S) => oe.value = !1),
|
|
590
|
+
style: _({
|
|
583
591
|
...pe.value,
|
|
584
|
-
cursor:
|
|
592
|
+
cursor: oe.value ? "grabbing" : "grab"
|
|
585
593
|
})
|
|
586
594
|
}, null, 38),
|
|
587
595
|
N.enableRangeHandles ? ia((s(), r("input", {
|
|
588
596
|
ref_key: "rangeStart",
|
|
589
597
|
ref: ue,
|
|
590
|
-
key: `range-min${
|
|
598
|
+
key: `range-min${ft.value}`,
|
|
591
599
|
type: "range",
|
|
592
600
|
class: Xe({
|
|
593
601
|
"range-left": !0,
|
|
@@ -596,18 +604,17 @@ const xn = {
|
|
|
596
604
|
}),
|
|
597
605
|
min: N.min,
|
|
598
606
|
max: N.max,
|
|
599
|
-
"onUpdate:modelValue": h[5] || (h[5] = (
|
|
600
|
-
onInput: h[6] || (h[6] = (
|
|
607
|
+
"onUpdate:modelValue": h[5] || (h[5] = (S) => Gt.value = S),
|
|
608
|
+
onInput: h[6] || (h[6] = (S) => fl(S)),
|
|
601
609
|
onChange: je,
|
|
602
610
|
onKeyup: Ya(je, ["enter"]),
|
|
603
611
|
onBlur: je,
|
|
604
|
-
onMouseenter: h[7] || (h[7] = (
|
|
605
|
-
onPointermove: h[8] || (h[8] = (w) => Nt.value = +w.target.value),
|
|
612
|
+
onMouseenter: h[7] || (h[7] = (S) => yl("start")),
|
|
606
613
|
onPointerup: je
|
|
607
|
-
}, null, 42,
|
|
614
|
+
}, null, 42, Fn)), [
|
|
608
615
|
[
|
|
609
616
|
Ga,
|
|
610
|
-
|
|
617
|
+
Gt.value,
|
|
611
618
|
void 0,
|
|
612
619
|
{ number: !0 }
|
|
613
620
|
]
|
|
@@ -624,83 +631,82 @@ const xn = {
|
|
|
624
631
|
}),
|
|
625
632
|
min: N.min,
|
|
626
633
|
max: N.max,
|
|
627
|
-
"onUpdate:modelValue": h[
|
|
628
|
-
onInput: h[
|
|
634
|
+
"onUpdate:modelValue": h[8] || (h[8] = (S) => wt.value = S),
|
|
635
|
+
onInput: h[9] || (h[9] = (S) => Zt(S)),
|
|
629
636
|
onChange: je,
|
|
630
637
|
onKeyup: Ya(je, ["enter"]),
|
|
631
638
|
onBlur: je,
|
|
632
|
-
onMouseenter: h[
|
|
633
|
-
onPointermove: h[12] || (h[12] = (w) => ft.value = +w.target.value),
|
|
639
|
+
onMouseenter: h[10] || (h[10] = (S) => yl("end")),
|
|
634
640
|
onPointerup: je
|
|
635
|
-
}, null, 42,
|
|
641
|
+
}, null, 42, Pn)), [
|
|
636
642
|
[
|
|
637
643
|
Ga,
|
|
638
|
-
|
|
644
|
+
wt.value,
|
|
639
645
|
void 0,
|
|
640
646
|
{ number: !0 }
|
|
641
647
|
]
|
|
642
648
|
]) : f("", !0),
|
|
643
|
-
|
|
649
|
+
ie.value.left ? (s(), r("div", {
|
|
644
650
|
key: 3,
|
|
645
651
|
ref_key: "tooltipLeft",
|
|
646
|
-
ref:
|
|
652
|
+
ref: he,
|
|
647
653
|
class: Xe({
|
|
648
654
|
"range-tooltip": !0,
|
|
649
|
-
"range-tooltip-visible":
|
|
655
|
+
"range-tooltip-visible": Se.value,
|
|
650
656
|
"range-tooltip-arrow": pe.value.arrowLeft && !N.verticalHandles,
|
|
651
657
|
"range-tooltip-arrow-left": !pe.value.arrowLeft && !N.verticalHandles
|
|
652
658
|
}),
|
|
653
|
-
style:
|
|
659
|
+
style: _({
|
|
654
660
|
left: pe.value.tooltipLeft,
|
|
655
|
-
color: v(
|
|
661
|
+
color: v(ut)(N.selectColor),
|
|
656
662
|
backgroundColor: N.selectColor,
|
|
657
663
|
border: `1px solid ${Ge.value}`,
|
|
658
|
-
zIndex: `${
|
|
659
|
-
visibility:
|
|
664
|
+
zIndex: `${qe.value + 4}`,
|
|
665
|
+
visibility: $t.value || ie.value.left === ie.value.right ? "hidden" : "visible"
|
|
660
666
|
})
|
|
661
|
-
}, ne(
|
|
662
|
-
(
|
|
667
|
+
}, ne(ie.value.left), 7)) : f("", !0),
|
|
668
|
+
($t.value || ie.value.left === ie.value.right) && (ie.value.left || ie.value.right) ? (s(), r("div", {
|
|
663
669
|
key: 4,
|
|
664
670
|
ref: "tooltipMerge",
|
|
665
671
|
class: Xe({
|
|
666
672
|
"range-tooltip": !0,
|
|
667
|
-
"range-tooltip-visible":
|
|
673
|
+
"range-tooltip-visible": Se.value,
|
|
668
674
|
"range-tooltip-arrow": !0,
|
|
669
675
|
"range-tooltip-arrow-left": !pe.value.arrowLeft && !N.verticalHandles,
|
|
670
676
|
"range-tooltip-arrow-right": !pe.value.arrowRight && !N.verticalHandles
|
|
671
677
|
}),
|
|
672
|
-
style:
|
|
678
|
+
style: _({
|
|
673
679
|
left: pe.value.tooltipCenter,
|
|
674
|
-
width:
|
|
675
|
-
color: v(
|
|
680
|
+
width: vt.value.width + "px",
|
|
681
|
+
color: v(ut)(N.selectColor),
|
|
676
682
|
backgroundColor: N.selectColor,
|
|
677
683
|
border: `1px solid ${Ge.value}`,
|
|
678
684
|
zIndex: "4"
|
|
679
685
|
})
|
|
680
|
-
}, ne(
|
|
681
|
-
|
|
686
|
+
}, ne(ie.value.left === ie.value.right ? ie.value.left : `${ie.value.left} - ${ie.value.right}`), 7)) : f("", !0),
|
|
687
|
+
ie.value.right ? (s(), r("div", {
|
|
682
688
|
key: 5,
|
|
683
689
|
ref_key: "tooltipRight",
|
|
684
|
-
ref:
|
|
690
|
+
ref: ct,
|
|
685
691
|
class: Xe({
|
|
686
692
|
"range-tooltip": !0,
|
|
687
|
-
"range-tooltip-visible":
|
|
693
|
+
"range-tooltip-visible": Se.value,
|
|
688
694
|
"range-tooltip-arrow": pe.value.arrowRight && !N.verticalHandles,
|
|
689
695
|
"range-tooltip-arrow-right": !pe.value.arrowRight && !N.verticalHandles
|
|
690
696
|
}),
|
|
691
|
-
style:
|
|
697
|
+
style: _({
|
|
692
698
|
left: pe.value.tooltipRight,
|
|
693
|
-
color: v(
|
|
699
|
+
color: v(ut)(N.selectColor),
|
|
694
700
|
backgroundColor: N.selectColor,
|
|
695
701
|
border: `1px solid ${Ge.value}`,
|
|
696
702
|
zIndex: "4",
|
|
697
|
-
visibility:
|
|
703
|
+
visibility: $t.value || ie.value.left === ie.value.right ? "hidden" : "visible"
|
|
698
704
|
})
|
|
699
|
-
}, ne(
|
|
705
|
+
}, ne(ie.value.right), 7)) : f("", !0)
|
|
700
706
|
], 544)
|
|
701
707
|
], 544));
|
|
702
708
|
}
|
|
703
|
-
}, Hn = /* @__PURE__ */ ao(Bn, [["__scopeId", "data-v-
|
|
709
|
+
}, Hn = /* @__PURE__ */ ao(Bn, [["__scopeId", "data-v-b9436af8"]]), Vn = ["id"], En = ["id"], Dn = ["viewBox", "aria-label"], Wn = ["x", "y", "width", "height"], Xn = { key: 1 }, Yn = { class: "vue-ui-xy-grid" }, Gn = ["stroke", "x1", "x2", "y1", "y2"], Un = ["stroke", "x1", "x2", "y1", "y2"], qn = { key: 1 }, Zn = ["x1", "x2", "y1", "y2", "stroke"], Kn = ["x1", "x2", "y1", "y2", "stroke"], Jn = ["x1", "x2", "y1", "y2", "stroke"], Qn = { key: 3 }, jn = ["d", "stroke"], eu = { key: 4 }, tu = ["d", "stroke"], lu = ["id"], au = ["stop-color"], ou = ["stop-color"], nu = ["stop-color"], uu = ["id"], iu = ["stop-color"], su = ["stop-color"], ru = ["stop-color"], cu = ["id"], vu = ["stop-color"], du = ["stop-color"], hu = ["id"], fu = ["stop-color"], mu = ["stop-color"], gu = ["id"], bu = ["stop-color"], xu = ["stop-color"], pu = ["x", "y", "height", "width", "fill"], yu = ["x", "y", "width"], ku = { key: 0 }, wu = ["x", "y", "height", "width", "fill"], Su = ["x", "y", "height", "width", "rx", "fill", "stroke", "stroke-width"], _u = ["x", "y", "height", "width", "rx", "fill", "stroke", "stroke-width"], $u = ["width", "x", "y"], Lu = { key: 0 }, Mu = ["id"], Cu = ["fill"], Au = ["x1", "x2", "y1", "y2", "stroke", "marker-end"], zu = ["x", "y", "font-size", "fill"], Tu = ["stroke", "x1", "x2", "y1", "y2"], Iu = { key: 3 }, Nu = ["x1", "x2", "y1", "y2", "stroke", "stroke-width", "stroke-dasharray"], Ru = ["x", "y", "width", "height", "stroke", "stroke-width", "stroke-linecap", "stroke-linejoin", "stroke-dasharray"], Fu = ["x1", "x2", "y1", "y2", "stroke", "stroke-width"], Pu = ["fill", "font-size", "transform"], Ou = ["x1", "x2", "y1", "y2", "stroke"], Bu = ["x", "y", "font-size", "fill"], Hu = ["x1", "x2", "y1", "y2", "stroke"], Vu = ["x", "y", "font-size", "fill"], Eu = ["width", "x", "y"], Du = { style: { width: "100%" } }, Wu = { key: 0 }, Xu = ["id"], Yu = ["fill"], Gu = ["x1", "x2", "y1", "y2", "stroke", "marker-end"], Uu = ["x", "y", "font-size", "fill"], qu = ["d", "stroke", "stroke-width", "stroke-dasharray"], Zu = ["d", "stroke", "stroke-width", "stroke-dasharray"], Ku = { key: 6 }, Ju = { key: 7 }, Qu = ["d", "fill", "fill-opacity"], ju = { key: 0 }, ei = ["d", "fill"], ti = ["d", "fill"], li = ["d", "fill"], ai = ["d", "fill"], oi = ["d", "stroke", "stroke-width", "stroke-dasharray"], ni = ["d", "stroke", "stroke-width", "stroke-dasharray"], ui = ["width", "x", "y"], ii = { style: { width: "100%" } }, si = { key: 3 }, ri = ["id"], ci = ["fill"], vi = ["x1", "x2", "y1", "y2", "stroke", "marker-end"], di = ["x", "y", "font-size", "fill"], hi = { key: 8 }, fi = ["x", "y", "font-size", "fill"], mi = ["x", "y", "font-size", "fill", "font-weight"], gi = { key: 9 }, bi = ["x", "y", "font-size", "fill"], xi = { key: 10 }, pi = ["x", "y"], yi = ["innerHTML"], ki = ["x", "y"], wi = ["innerHTML"], Si = ["x1", "x2", "y1", "y2", "stroke"], _i = { key: 11 }, $i = ["x", "y", "font-size", "fill"], Li = { key: 12 }, Mi = ["x", "y"], Ci = ["innerHTML"], Ai = ["x", "y"], zi = ["innerHTML"], Ti = ["x1", "x2", "y1", "y2", "stroke"], Ii = ["x", "y", "font-size", "fill", "innerHTML"], Ni = ["x", "y", "font-size", "fill", "innerHTML"], Ri = ["x", "y", "font-size", "fill", "innerHTML"], Fi = ["x", "y", "font-size", "fill", "innerHTML"], Pi = ["id"], Oi = ["stop-color"], Bi = ["stop-color"], Hi = ["x", "y", "width", "height", "fill", "onMouseenter"], Vi = ["font-size", "fill", "transform"], Ei = ["x", "y", "font-size", "fill"], Di = ["text-anchor", "font-size", "fill", "transform", "onClick"], Wi = ["text-anchor", "font-size", "fill", "transform", "innerHTML", "onClick"], Xi = { key: 15 }, Yi = ["x1", "y1", "x2", "y2", "stroke", "stroke-width", "stroke-dasharray"], Gi = ["x1", "y1", "x2", "y2", "stroke", "stroke-width", "stroke-dasharray"], Ui = ["y", "x", "width", "height", "fill"], qi = ["id", "x", "y", "font-size", "fill", "text-anchor"], Zi = {
|
|
704
710
|
key: 16,
|
|
705
711
|
style: { "pointer-events": "none" }
|
|
706
712
|
}, Ki = ["x", "y"], Ji = ["innerHTML"], Qi = ["cx", "cy", "r", "fill"], ji = ["data-start", "data-end"], es = {
|
|
@@ -766,34 +772,34 @@ const xn = {
|
|
|
766
772
|
},
|
|
767
773
|
emits: ["selectTimeLabel", "selectX", "selectLegend"],
|
|
768
774
|
setup(N, { expose: Gl, emit: Ul }) {
|
|
769
|
-
const d = N, Ye =
|
|
775
|
+
const d = N, Ye = Ct(() => import("./DataTable-IycMkaTU.js")), ve = Ct(() => import("./Tooltip-DvtYLrX2.js")), de = Ct(() => import("./UserOptions-Dd5XOrwq.js")), kt = Ct(() => import("./BaseIcon-D_BjQBAR.js")), il = Ct(() => import("./vue-ui-table-sparkline-C6MoeyKm.js")), Yt = Ct(() => import("./PackageVersion-BtfT0hV9.js")), sl = Ct(() => import("./PenAndPaper-BdzDJYnr.js")), Gt = Ct(() => import("./BaseDraggableDialog-BVZPPMT9.js")), wt = Ul, rl = Oo(), je = Bo(), { vue_ui_xy: cl } = Xo(), xe = g(null), pe = g(null), He = g(null), st = g(null), It = g(null), Nt = g(null), ql = g(null), Ge = g(null), Ut = g(null), ht = g(null), Rt = g(null), j = g(null), Me = g(null), vl = g(null), St = g(0), P = g(null), dl = g(!0), ye = g(600), ee = g(1e3), rt = g("0 0 1000 600"), ke = g({ x: 0, y: 0 }), we = g({ line: "line", bar: "bar", plot: "plot" }), Ce = g(!1), Re = g(!1), Cl = g(!1), ft = g(null), ue = g([]), Z = g(Dl()), hl = g(0), qt = g(0), fl = g(0), mt = g(!0), Zt = g(0), O = g(null), gt = g(!1), ml = g(!0), Kt = g(!0), Ae = g(null), et = g({}), Jt = g(null), gl = g(!1), bt = g(null), L = g(null), Al = x(() => ({
|
|
770
776
|
height: ye.value,
|
|
771
777
|
width: ee.value
|
|
772
778
|
}));
|
|
773
|
-
function
|
|
779
|
+
function tt(l) {
|
|
774
780
|
return Number.isFinite(l) ? Math.max(0, Math.floor(l)) : 0;
|
|
775
781
|
}
|
|
776
|
-
function
|
|
782
|
+
function Ue(l, u, e = 0) {
|
|
777
783
|
return Number.isFinite(l) && Number.isFinite(u) && Math.abs(u) > 1e-9 ? l / u : e;
|
|
778
784
|
}
|
|
779
|
-
const
|
|
785
|
+
const lt = g(!1), w = g({
|
|
780
786
|
xAxis: 18,
|
|
781
787
|
yAxis: 12,
|
|
782
788
|
dataLabels: 20,
|
|
783
789
|
plotLabels: 10
|
|
784
|
-
}),
|
|
790
|
+
}), Fe = g({ plot: 3, line: 3 });
|
|
785
791
|
ul(() => {
|
|
786
|
-
|
|
792
|
+
gl.value = !0, d.dataset.length && d.dataset.forEach((l, u) => {
|
|
787
793
|
[null, void 0].includes(l.series) && oa({
|
|
788
794
|
componentName: "VueUiXy",
|
|
789
795
|
type: "datasetSerieAttribute",
|
|
790
796
|
property: "series (number[])",
|
|
791
797
|
index: u,
|
|
792
|
-
debug:
|
|
798
|
+
debug: _t.value
|
|
793
799
|
});
|
|
794
800
|
});
|
|
795
801
|
});
|
|
796
|
-
function
|
|
802
|
+
function bl() {
|
|
797
803
|
if (!Object.keys(d.config || {}).length)
|
|
798
804
|
return cl;
|
|
799
805
|
const l = ua({
|
|
@@ -811,33 +817,33 @@ const xn = {
|
|
|
811
817
|
customPalette: tn[l.theme] || d.palette
|
|
812
818
|
} : l;
|
|
813
819
|
}
|
|
814
|
-
const
|
|
820
|
+
const Qt = x({
|
|
815
821
|
get() {
|
|
816
822
|
return !!d.dataset && d.dataset.length;
|
|
817
823
|
},
|
|
818
824
|
set(l) {
|
|
819
825
|
return l;
|
|
820
826
|
}
|
|
821
|
-
}), t = g(
|
|
827
|
+
}), t = g(bl()), k = g({
|
|
822
828
|
dataLabels: { show: !0 },
|
|
823
829
|
showTooltip: !0,
|
|
824
830
|
showTable: !1,
|
|
825
831
|
isStacked: !1,
|
|
826
832
|
useIndividualScale: !1
|
|
827
833
|
});
|
|
828
|
-
function
|
|
829
|
-
|
|
834
|
+
function xl() {
|
|
835
|
+
lt.value ? (k.value.isStacked = t.value.chart.grid.labels.yAxis.stacked, k.value.useIndividualScale == null && (k.value.useIndividualScale = t.value.chart.grid.labels.yAxis.useIndividualScale)) : (k.value = {
|
|
830
836
|
dataLabels: { show: !0 },
|
|
831
837
|
showTooltip: t.value.chart.tooltip.show === !0,
|
|
832
838
|
showTable: t.value.showTable === !0,
|
|
833
839
|
isStacked: t.value.chart.grid.labels.yAxis.stacked,
|
|
834
840
|
useIndividualScale: t.value.chart.grid.labels.yAxis.useIndividualScale
|
|
835
|
-
},
|
|
841
|
+
}, lt.value = !0);
|
|
836
842
|
}
|
|
837
|
-
const
|
|
843
|
+
const _t = x(() => !!t.value.debug), { loading: oe, FINAL_DATASET: he, manualLoading: ct } = sn({
|
|
838
844
|
...Ho(d),
|
|
839
845
|
FINAL_CONFIG: t,
|
|
840
|
-
prepareConfig:
|
|
846
|
+
prepareConfig: bl,
|
|
841
847
|
callback: () => {
|
|
842
848
|
Promise.resolve().then(async () => {
|
|
843
849
|
await Tl(), k.value.showTable = t.value.showTable;
|
|
@@ -916,7 +922,7 @@ const xn = {
|
|
|
916
922
|
}
|
|
917
923
|
})
|
|
918
924
|
});
|
|
919
|
-
function
|
|
925
|
+
function pl(l) {
|
|
920
926
|
const u = /* @__PURE__ */ new WeakMap();
|
|
921
927
|
return (e, ...n) => {
|
|
922
928
|
let a = u.get(e);
|
|
@@ -926,27 +932,27 @@ const xn = {
|
|
|
926
932
|
return a || (a = /* @__PURE__ */ new Map(), u.set(e, a)), a.set(i, o), o;
|
|
927
933
|
};
|
|
928
934
|
}
|
|
929
|
-
const
|
|
930
|
-
get: () => Math.max(...
|
|
935
|
+
const jt = pl((l, u) => na({ data: l, threshold: u })), Se = (l) => jt(l, t.value.downsample.threshold), ze = x({
|
|
936
|
+
get: () => Math.max(...he.value.map((l) => Se(l.series).length)),
|
|
931
937
|
set: (l) => l
|
|
932
|
-
}), p = g({ start: 0, end:
|
|
933
|
-
function
|
|
934
|
-
|
|
938
|
+
}), p = g({ start: 0, end: ze.value }), qe = g({ start: 0, end: ze.value }), yl = x(() => t.value.chart.zoom.preview.enable && (qe.value.start !== p.value.start || qe.value.end !== p.value.end));
|
|
939
|
+
function $t(l, u) {
|
|
940
|
+
qe.value[l] = u;
|
|
935
941
|
}
|
|
936
|
-
function
|
|
942
|
+
function vt() {
|
|
937
943
|
const l = Math.max(
|
|
938
944
|
1,
|
|
939
|
-
...
|
|
945
|
+
...he.value.map((n) => Se(n.series).length)
|
|
940
946
|
);
|
|
941
947
|
let u = Math.max(0, Math.min(p.value.start ?? 0, l - 1)), e = Math.max(u + 1, Math.min(p.value.end ?? l, l));
|
|
942
|
-
(!Number.isFinite(u) || !Number.isFinite(e) || e <= u) && (u = 0, e = l), p.value = { start: u, end: e },
|
|
948
|
+
(!Number.isFinite(u) || !Number.isFinite(e) || e <= u) && (u = 0, e = l), p.value = { start: u, end: e }, qe.value.start = u, qe.value.end = e;
|
|
943
949
|
}
|
|
944
|
-
const
|
|
945
|
-
const { left: l, top: u, width: e, height: n } = c.value, a = p.value.start, o = p.value.end - a, z = e / o,
|
|
950
|
+
const el = x(() => {
|
|
951
|
+
const { left: l, top: u, width: e, height: n } = c.value, a = p.value.start, o = p.value.end - a, z = e / o, B = qe.value.start - a, E = qe.value.end - a, $ = Math.max(0, Math.min(o, B)), I = Math.max(0, Math.min(o, E));
|
|
946
952
|
return {
|
|
947
|
-
x: l +
|
|
953
|
+
x: l + $ * z,
|
|
948
954
|
y: u,
|
|
949
|
-
width: (I -
|
|
955
|
+
width: (I - $) * z,
|
|
950
956
|
height: n,
|
|
951
957
|
fill: t.value.chart.zoom.preview.fill,
|
|
952
958
|
stroke: t.value.chart.zoom.preview.stroke,
|
|
@@ -961,84 +967,84 @@ const xn = {
|
|
|
961
967
|
}
|
|
962
968
|
};
|
|
963
969
|
});
|
|
964
|
-
|
|
970
|
+
it(() => d.selectedXIndex, (l) => {
|
|
965
971
|
if ([null, void 0].includes(d.selectedXIndex)) {
|
|
966
|
-
|
|
972
|
+
L.value = null;
|
|
967
973
|
return;
|
|
968
974
|
}
|
|
969
975
|
const u = l - p.value.start;
|
|
970
|
-
u < 0 || l >= p.value.end ?
|
|
976
|
+
u < 0 || l >= p.value.end ? L.value = null : L.value = u ?? null;
|
|
971
977
|
}, { immediate: !0 });
|
|
972
|
-
const { isPrinting:
|
|
978
|
+
const { isPrinting: ie, isImaging: m, generatePdf: h, generateImage: S } = un({
|
|
973
979
|
elementId: `vue-ui-xy_${Z.value}`,
|
|
974
980
|
fileName: t.value.chart.title.text || "vue-ui-xy",
|
|
975
981
|
options: t.value.chart.userOptions.print
|
|
976
|
-
}),
|
|
982
|
+
}), X = g(!1), ce = x(() => Go(t.value.customPalette)), xt = x(() => {
|
|
977
983
|
if (t.value.chart.grid.labels.yAxis.scaleMin !== null)
|
|
978
984
|
return t.value.chart.grid.labels.yAxis.scaleMin;
|
|
979
|
-
const l = Math.min(...
|
|
985
|
+
const l = Math.min(...at.value.filter((u) => !ue.value.includes(u.id)).map((u) => Math.min(...u.series)));
|
|
980
986
|
return l > 0 ? 0 : l;
|
|
981
|
-
}), tl =
|
|
987
|
+
}), tl = x(() => {
|
|
982
988
|
if (t.value.chart.grid.labels.yAxis.scaleMax)
|
|
983
989
|
return t.value.chart.grid.labels.yAxis.scaleMax;
|
|
984
|
-
const l = Math.max(...
|
|
985
|
-
return
|
|
986
|
-
}),
|
|
987
|
-
const e =
|
|
990
|
+
const l = Math.max(...at.value.filter((u) => !ue.value.includes(u.id)).map((u) => Math.max(...u.series)));
|
|
991
|
+
return xt.value === l ? l + 1 : l;
|
|
992
|
+
}), Te = x(() => t.value.chart.grid.labels.yAxis.useNiceScale ? Ml(xt.value, tl.value < 0 ? 0 : tl.value, t.value.chart.grid.labels.yAxis.commonScaleSteps) : Vt(xt.value, tl.value < 0 ? 0 : tl.value, t.value.chart.grid.labels.yAxis.commonScaleSteps)), Ft = x(() => [null, void 0].includes(t.value.chart.grid.labels.yAxis.scaleMin) ? Te.value.min >= 0 ? 0 : Math.abs(Te.value.min) : -Te.value.min), at = x(() => dl.value ? he.value.map((l, u) => {
|
|
993
|
+
const e = Se(l.series), n = `uniqueId_${u}`;
|
|
988
994
|
return {
|
|
989
995
|
...l,
|
|
990
996
|
slotAbsoluteIndex: u,
|
|
991
997
|
series: e.map((a) => Hl(a) ? a : null).slice(p.value.start, p.value.end),
|
|
992
|
-
color: Uo(l.color ? l.color :
|
|
998
|
+
color: Uo(l.color ? l.color : ce.value[u] ? ce.value[u] : qo[u]),
|
|
993
999
|
id: n,
|
|
994
1000
|
scaleLabel: l.scaleLabel || n
|
|
995
1001
|
};
|
|
996
|
-
}) :
|
|
1002
|
+
}) : he.value), Ze = x(() => at.value.map((l, u) => ({
|
|
997
1003
|
absoluteIndex: u,
|
|
998
1004
|
...l,
|
|
999
|
-
series: l.series.map((e) => e +
|
|
1005
|
+
series: l.series.map((e) => e + Ft.value),
|
|
1000
1006
|
absoluteValues: l.series,
|
|
1001
1007
|
segregate: () => _a(l),
|
|
1002
1008
|
isSegregated: ue.value.includes(l.id)
|
|
1003
|
-
}))), Ke =
|
|
1009
|
+
}))), Ke = x(() => at.value.map((l, u) => ({
|
|
1004
1010
|
...l,
|
|
1005
|
-
series: l.series.map((e) => e +
|
|
1011
|
+
series: l.series.map((e) => e + Ft.value),
|
|
1006
1012
|
absoluteValues: l.series
|
|
1007
1013
|
})).filter((l) => !ue.value.includes(l.id)));
|
|
1008
1014
|
function oo() {
|
|
1009
1015
|
let l = 0;
|
|
1010
|
-
|
|
1016
|
+
Rt.value && (l = Array.from(Rt.value.querySelectorAll("text")).reduce((a, i) => {
|
|
1011
1017
|
const o = i.getComputedTextLength();
|
|
1012
1018
|
return (o > a ? o : a) + t.value.chart.grid.labels.yAxis.scaleValueOffsetX;
|
|
1013
1019
|
}, 0));
|
|
1014
|
-
const u =
|
|
1020
|
+
const u = Ut.value ? Ut.value.getBoundingClientRect().width + t.value.chart.grid.labels.axis.yLabelOffsetX + w.value.yAxis : 0, e = t.value.chart.grid.labels.yAxis.crosshairSize;
|
|
1015
1021
|
return l + u + e;
|
|
1016
1022
|
}
|
|
1017
1023
|
const Zl = g(0), no = sa((l) => {
|
|
1018
1024
|
Zl.value = l;
|
|
1019
1025
|
}, 100);
|
|
1020
1026
|
Ua((l) => {
|
|
1021
|
-
const u =
|
|
1027
|
+
const u = ht.value;
|
|
1022
1028
|
if (!u) return;
|
|
1023
1029
|
const e = new ResizeObserver((n) => {
|
|
1024
1030
|
no(n[0].contentRect.height);
|
|
1025
1031
|
});
|
|
1026
1032
|
e.observe(u), l(() => e.disconnect());
|
|
1027
|
-
}),
|
|
1033
|
+
}), Wt(() => {
|
|
1028
1034
|
Zl.value = 0;
|
|
1029
1035
|
});
|
|
1030
|
-
const ra =
|
|
1036
|
+
const ra = x(() => {
|
|
1031
1037
|
let l = 0;
|
|
1032
1038
|
Ge.value && (l = Ge.value.getBBox().height);
|
|
1033
1039
|
let u = 0;
|
|
1034
|
-
return
|
|
1035
|
-
}), uo =
|
|
1040
|
+
return ht.value && (u = Zl.value), l + u + w.value.xAxis;
|
|
1041
|
+
}), uo = x(() => he.value.some((l) => l.useProgression)), c = x(() => {
|
|
1036
1042
|
let l = 0;
|
|
1037
1043
|
const u = 36;
|
|
1038
|
-
t.value.chart.grid.labels.show && (k.value.useIndividualScale && !k.value.isStacked ? l = (
|
|
1044
|
+
t.value.chart.grid.labels.show && (k.value.useIndividualScale && !k.value.isStacked ? l = (he.value.length - ue.value.length) * (t.value.chart.grid.labels.yAxis.labelWidth + u) : k.value.useIndividualScale && k.value.isStacked ? l = t.value.chart.grid.labels.yAxis.labelWidth + u : l = oo());
|
|
1039
1045
|
const e = t.value.chart.labels.fontSize * 1.1, n = uo.value ? 24 : 6;
|
|
1040
|
-
if (
|
|
1041
|
-
const o =
|
|
1046
|
+
if (ht.value) {
|
|
1047
|
+
const o = ht.value.getBBox().x;
|
|
1042
1048
|
o < 0 && (l += Math.abs(o));
|
|
1043
1049
|
}
|
|
1044
1050
|
const a = ee.value - l - t.value.chart.grid.labels.yAxis.crosshairSize - n - t.value.chart.padding.left - t.value.chart.padding.right, i = t.value.chart.grid.position === "middle" ? 0 : a / T.value / 2;
|
|
@@ -1052,18 +1058,18 @@ const xn = {
|
|
|
1052
1058
|
scaleLabelX: l,
|
|
1053
1059
|
individualOffsetX: u
|
|
1054
1060
|
};
|
|
1055
|
-
}), io =
|
|
1061
|
+
}), io = x(() => {
|
|
1056
1062
|
const l = t.value.chart.grid.position === "middle" ? 1 : 0, u = T.value + l, e = q(c.value.top), n = q(c.value.bottom);
|
|
1057
1063
|
return Array.from({ length: u }).map((a, i) => {
|
|
1058
1064
|
const o = c.value.width / T.value * i + c.value.left + te.value;
|
|
1059
1065
|
return `M${o},${e} L${o},${n}`;
|
|
1060
1066
|
}).join(" ");
|
|
1061
|
-
}), so =
|
|
1067
|
+
}), so = x(() => {
|
|
1062
1068
|
if (!t.value.chart.grid.labels.xAxis.showCrosshairs) return "";
|
|
1063
1069
|
const l = c.value.width / T.value, u = t.value.chart.grid.labels.xAxis.crosshairSize, e = t.value.chart.grid.labels.xAxis.crosshairsAlwaysAtZero;
|
|
1064
1070
|
return Jl.value.map((n, a) => {
|
|
1065
1071
|
if (!n || !n.text) return null;
|
|
1066
|
-
const i = c.value.left + l * a + l / 2, o = e ?
|
|
1072
|
+
const i = c.value.left + l * a + l / 2, o = e ? Ie.value - (Ie.value === c.value.bottom ? 0 : u / 2) : c.value.bottom, z = e ? Ie.value + u / (Ie.value === c.value.bottom ? 1 : 2) : c.value.bottom + u;
|
|
1067
1073
|
return `M${i},${o} L${i},${z}`;
|
|
1068
1074
|
}).filter(Boolean).join(" ");
|
|
1069
1075
|
});
|
|
@@ -1071,28 +1077,28 @@ const xn = {
|
|
|
1071
1077
|
return !!je?.vnode.props?.onSelectTimeLabel;
|
|
1072
1078
|
}
|
|
1073
1079
|
function ro(l, u, e) {
|
|
1074
|
-
if (!
|
|
1080
|
+
if (!Jt.value) {
|
|
1075
1081
|
const n = document.createElement("canvas");
|
|
1076
|
-
|
|
1082
|
+
Jt.value = n.getContext("2d");
|
|
1077
1083
|
}
|
|
1078
|
-
return
|
|
1084
|
+
return Jt.value.font = `normal ${l}px sans-serif`, Jt.value;
|
|
1079
1085
|
}
|
|
1080
1086
|
function va() {
|
|
1081
|
-
const l =
|
|
1087
|
+
const l = xe.value.querySelectorAll(".vue-ui-xy-tag");
|
|
1082
1088
|
l.length && Array.from(l).forEach((u) => u.style.opacity = "0");
|
|
1083
1089
|
}
|
|
1084
1090
|
function zl(l, u, e, n, a) {
|
|
1085
|
-
e && (
|
|
1091
|
+
e && (et.value[`${l}_${u}_${n}_${a}`] = e);
|
|
1086
1092
|
}
|
|
1087
1093
|
const da = g(!1);
|
|
1088
1094
|
async function ha(l = !1) {
|
|
1089
|
-
await
|
|
1095
|
+
await Xt(), da.value = l, gt.value && (Kt.value = l);
|
|
1090
1096
|
}
|
|
1091
1097
|
function Kl() {
|
|
1092
|
-
|
|
1098
|
+
Ce.value = !Ce.value;
|
|
1093
1099
|
}
|
|
1094
|
-
const
|
|
1095
|
-
const l = Math.max(...
|
|
1100
|
+
const _e = x(() => {
|
|
1101
|
+
const l = Math.max(...he.value.map((u) => na({ data: u.series, threshold: t.value.downsample.threshold }).length));
|
|
1096
1102
|
return lo({
|
|
1097
1103
|
values: t.value.chart.grid.labels.xAxisLabels.values,
|
|
1098
1104
|
maxDatapoints: l,
|
|
@@ -1100,18 +1106,18 @@ const xn = {
|
|
|
1100
1106
|
start: p.value.start,
|
|
1101
1107
|
end: p.value.end
|
|
1102
1108
|
});
|
|
1103
|
-
}), fa =
|
|
1104
|
-
const l = Math.max(...
|
|
1109
|
+
}), fa = x(() => {
|
|
1110
|
+
const l = Math.max(...he.value.map((u) => na({ data: u.series, threshold: t.value.downsample.threshold }).length));
|
|
1105
1111
|
return lo({
|
|
1106
1112
|
values: t.value.chart.grid.labels.xAxisLabels.values,
|
|
1107
1113
|
maxDatapoints: l,
|
|
1108
1114
|
formatter: t.value.chart.grid.labels.xAxisLabels.datetimeFormatter,
|
|
1109
1115
|
start: 0,
|
|
1110
|
-
end:
|
|
1116
|
+
end: ze.value
|
|
1111
1117
|
});
|
|
1112
|
-
}), co =
|
|
1118
|
+
}), co = x(() => {
|
|
1113
1119
|
const l = t.value.chart.grid.labels.xAxisLabels.modulo;
|
|
1114
|
-
return
|
|
1120
|
+
return _e.value.length ? Math.min(l, [...new Set(_e.value.map((u) => u.text))].length) : l;
|
|
1115
1121
|
});
|
|
1116
1122
|
function vo(l) {
|
|
1117
1123
|
let u = null, e = null;
|
|
@@ -1122,41 +1128,41 @@ const xn = {
|
|
|
1122
1128
|
}
|
|
1123
1129
|
const ho = vo((l, u, e, n, a, i, o, z) => {
|
|
1124
1130
|
if (l)
|
|
1125
|
-
return n.length <= 2 ? n.map((
|
|
1131
|
+
return n.length <= 2 ? n.map((F, ae) => ({ text: F, absoluteIndex: ae })) : n.map((F, ae) => ({ text: ae === 0 || ae === n.length - 1 || o != null && ae === o ? F : "", absoluteIndex: ae }));
|
|
1126
1132
|
if (!u)
|
|
1127
|
-
return n.map((H,
|
|
1128
|
-
const
|
|
1129
|
-
if (z <=
|
|
1130
|
-
return n.map((H,
|
|
1133
|
+
return n.map((H, F) => ({ text: H, absoluteIndex: F }));
|
|
1134
|
+
const B = Math.max(1, e || 1);
|
|
1135
|
+
if (z <= B)
|
|
1136
|
+
return n.map((H, F) => ({ text: H, absoluteIndex: F }));
|
|
1131
1137
|
const E = [];
|
|
1132
1138
|
for (let H = 0; H < n.length; H += 1) {
|
|
1133
|
-
const
|
|
1134
|
-
if (!
|
|
1139
|
+
const F = n[H] ?? "";
|
|
1140
|
+
if (!F) continue;
|
|
1135
1141
|
const ae = i + H - 1 >= 0 ? a[i + H - 1] ?? "" : null;
|
|
1136
|
-
|
|
1142
|
+
F !== ae && E.push(H);
|
|
1137
1143
|
}
|
|
1138
1144
|
if (!E.length)
|
|
1139
|
-
return n.map((H,
|
|
1140
|
-
const
|
|
1141
|
-
let D = Math.min(I,
|
|
1145
|
+
return n.map((H, F) => ({ text: "", absoluteIndex: F }));
|
|
1146
|
+
const $ = E.length, I = B, K = Math.max(2, Math.min(I - 3, $)), M = Math.min($, I + 3);
|
|
1147
|
+
let D = Math.min(I, $), R = 1 / 0;
|
|
1142
1148
|
for (let H = K; H <= M; H += 1) {
|
|
1143
|
-
const
|
|
1144
|
-
|
|
1149
|
+
const F = ($ - 1) % (H - 1), ae = Math.abs(H - I), Oe = F * 10 + ae;
|
|
1150
|
+
Oe < R && (R = Oe, D = H);
|
|
1145
1151
|
}
|
|
1146
1152
|
const re = /* @__PURE__ */ new Set();
|
|
1147
1153
|
if (D <= 1)
|
|
1148
|
-
re.add(E[Math.round((
|
|
1154
|
+
re.add(E[Math.round(($ - 1) / 2)]);
|
|
1149
1155
|
else {
|
|
1150
|
-
const H = (
|
|
1151
|
-
for (let
|
|
1152
|
-
re.add(E[Math.round(
|
|
1156
|
+
const H = ($ - 1) / (D - 1);
|
|
1157
|
+
for (let F = 0; F < D; F += 1)
|
|
1158
|
+
re.add(E[Math.round(F * H)]);
|
|
1153
1159
|
}
|
|
1154
|
-
return n.map((H,
|
|
1155
|
-
text: re.has(
|
|
1156
|
-
absoluteIndex:
|
|
1160
|
+
return n.map((H, F) => ({
|
|
1161
|
+
text: re.has(F) ? H : "",
|
|
1162
|
+
absoluteIndex: F
|
|
1157
1163
|
}));
|
|
1158
|
-
}), Jl =
|
|
1159
|
-
const l = t.value.chart.grid.labels.xAxisLabels, u =
|
|
1164
|
+
}), Jl = x(() => {
|
|
1165
|
+
const l = t.value.chart.grid.labels.xAxisLabels, u = _e.value || [], e = fa.value || [], n = p.value.start ?? 0, a = L.value, i = T.value, o = u.map((B) => B?.text ?? ""), z = e.map((B) => B?.text ?? "");
|
|
1160
1166
|
return ho(
|
|
1161
1167
|
!!l.showOnlyFirstAndLast,
|
|
1162
1168
|
!!l.showOnlyAtModulo,
|
|
@@ -1179,38 +1185,38 @@ const xn = {
|
|
|
1179
1185
|
prefix: n.prefix || t.value.chart.labels.prefix,
|
|
1180
1186
|
suffix: n.suffix || t.value.chart.labels.suffix
|
|
1181
1187
|
}));
|
|
1182
|
-
|
|
1188
|
+
wt("selectTimeLabel", {
|
|
1183
1189
|
datapoint: e,
|
|
1184
1190
|
absoluteIndex: l.absoluteIndex,
|
|
1185
1191
|
label: l.text
|
|
1186
1192
|
});
|
|
1187
1193
|
}
|
|
1188
|
-
const T =
|
|
1189
|
-
const l =
|
|
1194
|
+
const T = x(() => {
|
|
1195
|
+
const l = tt((p.value.end ?? 0) - (p.value.start ?? 0));
|
|
1190
1196
|
return Math.max(1, l);
|
|
1191
1197
|
});
|
|
1192
1198
|
function ga(l) {
|
|
1193
|
-
|
|
1199
|
+
O.value = l;
|
|
1194
1200
|
}
|
|
1195
1201
|
function ba() {
|
|
1196
1202
|
k.value.isStacked = !k.value.isStacked, k.value.isStacked ? k.value.useIndividualScale = !0 : k.value.useIndividualScale = t.value.chart.grid.labels.yAxis.useIndividualScale;
|
|
1197
1203
|
}
|
|
1198
1204
|
function Ql(l) {
|
|
1199
|
-
|
|
1205
|
+
_t.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`));
|
|
1200
1206
|
}
|
|
1201
1207
|
function fo(l, u) {
|
|
1202
|
-
const e =
|
|
1208
|
+
const e = tt(l), n = Array(e).fill(0);
|
|
1203
1209
|
for (let a = 0; a < u.length && a < e; a += 1) n[a] = u[a] ?? 0;
|
|
1204
1210
|
return n;
|
|
1205
1211
|
}
|
|
1206
1212
|
function mo(l) {
|
|
1207
|
-
const u = Math.max(...
|
|
1213
|
+
const u = Math.max(...he.value.map((e) => Se(e.series).length));
|
|
1208
1214
|
return l > u ? u : 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;
|
|
1209
1215
|
}
|
|
1210
1216
|
async function Tl() {
|
|
1211
|
-
await
|
|
1212
|
-
const { startIndex: l, endIndex: u } = t.value.chart.zoom, e =
|
|
1213
|
-
p.value = { start: 0, end: n }, (l != null || u != null) && e ? (l != null ? (p.value.start = l, e.setStartValue(l)) : (p.value.start = 0, e.setStartValue(0)), u != null ? (p.value.end = u + 1, e.setEndValue(mo(u + 1))) : (p.value.end = n, e.setEndValue(n))) : (p.value = { start: 0, end: n },
|
|
1217
|
+
await Xt(), await Xt();
|
|
1218
|
+
const { startIndex: l, endIndex: u } = t.value.chart.zoom, e = He.value, n = Math.max(...he.value.map((a) => Se(a.series).length));
|
|
1219
|
+
p.value = { start: 0, end: n }, (l != null || u != null) && e ? (l != null ? (p.value.start = l, e.setStartValue(l)) : (p.value.start = 0, e.setStartValue(0)), u != null ? (p.value.end = u + 1, e.setEndValue(mo(u + 1))) : (p.value.end = n, e.setEndValue(n))) : (p.value = { start: 0, end: n }, St.value += 1), qe.value.start = p.value.start, qe.value.end = p.value.end, vt();
|
|
1214
1220
|
}
|
|
1215
1221
|
async function xa() {
|
|
1216
1222
|
await Tl();
|
|
@@ -1218,24 +1224,24 @@ const xn = {
|
|
|
1218
1224
|
function Ve(l) {
|
|
1219
1225
|
return ![null, void 0, NaN, 1 / 0, -1 / 0].includes(l);
|
|
1220
1226
|
}
|
|
1221
|
-
const pa =
|
|
1222
|
-
function
|
|
1227
|
+
const pa = x(() => Te.value.max + Ft.value);
|
|
1228
|
+
function Pt(l) {
|
|
1223
1229
|
return l / (Ve(pa.value) ? pa.value : 1);
|
|
1224
1230
|
}
|
|
1225
|
-
const
|
|
1231
|
+
const Ie = x(() => isNaN(Pt(Ft.value)) ? c.value.bottom : c.value.bottom - c.value.height * Pt(Ft.value));
|
|
1226
1232
|
function ya(l) {
|
|
1227
|
-
const u = ![null, void 0].includes(t.value.chart.grid.labels.yAxis.scaleMin) && t.value.chart.grid.labels.yAxis.scaleMin > 0 &&
|
|
1228
|
-
return l.value >= 0 ? W(u - l.y <= 0 ? 1e-5 : u - l.y) : W(l.y -
|
|
1233
|
+
const u = ![null, void 0].includes(t.value.chart.grid.labels.yAxis.scaleMin) && t.value.chart.grid.labels.yAxis.scaleMin > 0 && xt.value >= 0 ? c.value.bottom : Ie.value;
|
|
1234
|
+
return l.value >= 0 ? W(u - l.y <= 0 ? 1e-5 : u - l.y) : W(l.y - Ie.value <= 0 ? 1e-5 : l.y - Ie.value);
|
|
1229
1235
|
}
|
|
1230
1236
|
function ka(l) {
|
|
1231
1237
|
return l.value >= 0 ? W(l.zeroPosition - l.y <= 0 ? 1e-5 : l.zeroPosition - l.y) : W(l.y - l.zeroPosition <= 0 ? 1e-5 : l.zeroPosition - l.y);
|
|
1232
1238
|
}
|
|
1233
|
-
const se =
|
|
1234
|
-
const l = Math.max(1, T.value), u = Math.max(1, c.value.width), e = Math.max(1,
|
|
1239
|
+
const se = x(() => {
|
|
1240
|
+
const l = Math.max(1, T.value), u = Math.max(1, c.value.width), e = Math.max(1, at.value.filter((n) => n.type === "bar" && !ue.value.includes(n.id)).length);
|
|
1235
1241
|
return {
|
|
1236
|
-
bar:
|
|
1237
|
-
plot:
|
|
1238
|
-
line:
|
|
1242
|
+
bar: Ue(u, l * e, 1),
|
|
1243
|
+
plot: Ue(u, l, 1),
|
|
1244
|
+
line: Ue(u, l, 1)
|
|
1239
1245
|
};
|
|
1240
1246
|
});
|
|
1241
1247
|
function ll() {
|
|
@@ -1245,34 +1251,34 @@ const xn = {
|
|
|
1245
1251
|
return k.value.useIndividualScale && k.value.isStacked ? l.x + c.value.width / T.value * 0.05 : l.x + se.value.bar / 2;
|
|
1246
1252
|
}
|
|
1247
1253
|
function wa(l) {
|
|
1248
|
-
return l.value >= 0 ? l.y : [null, void 0, NaN, 1 / 0, -1 / 0].includes(
|
|
1254
|
+
return l.value >= 0 ? l.y : [null, void 0, NaN, 1 / 0, -1 / 0].includes(Ie.value) ? c.bottom.value : Ie.value;
|
|
1249
1255
|
}
|
|
1250
1256
|
function Sa(l) {
|
|
1251
1257
|
return l.value >= 0 ? l.y : [null, void 0, NaN, 1 / 0, -1 / 0].includes(l.zeroPosition) ? 0 : l.zeroPosition;
|
|
1252
1258
|
}
|
|
1253
|
-
const
|
|
1254
|
-
let
|
|
1259
|
+
const kl = g(null);
|
|
1260
|
+
let Ot = 0;
|
|
1255
1261
|
function go(l, u, e) {
|
|
1256
1262
|
return l >= e.left && l <= e.right && u >= e.top && u <= e.bottom;
|
|
1257
1263
|
}
|
|
1258
1264
|
function bo(l) {
|
|
1259
|
-
if (
|
|
1260
|
-
|
|
1261
|
-
const u =
|
|
1262
|
-
|
|
1263
|
-
if (
|
|
1265
|
+
if (Ce.value) return;
|
|
1266
|
+
Ot && cancelAnimationFrame(Ot);
|
|
1267
|
+
const u = Ae.value?.getBoundingClientRect();
|
|
1268
|
+
Ot = requestAnimationFrame(() => {
|
|
1269
|
+
if (Ot = 0, !u || !go(l.clientX, l.clientY, u)) {
|
|
1264
1270
|
jl();
|
|
1265
1271
|
return;
|
|
1266
1272
|
}
|
|
1267
|
-
const n =
|
|
1268
|
-
z >= 0 && z < T.value ?
|
|
1273
|
+
const n = Ae.value.viewBox.baseVal.width / u.width, i = (l.clientX - u.left) * n - c.value.left, o = c.value.width / T.value, z = Math.floor(i / o);
|
|
1274
|
+
z >= 0 && z < T.value ? kl.value !== z && (kl.value = z, Ra(!0, z)) : jl();
|
|
1269
1275
|
});
|
|
1270
1276
|
}
|
|
1271
1277
|
function jl() {
|
|
1272
|
-
|
|
1278
|
+
Ot && (cancelAnimationFrame(Ot), Ot = 0), kl.value = null, Ra(!1, null);
|
|
1273
1279
|
}
|
|
1274
1280
|
function xo() {
|
|
1275
|
-
|
|
1281
|
+
kl.value != null && po(kl.value);
|
|
1276
1282
|
}
|
|
1277
1283
|
function po(l) {
|
|
1278
1284
|
const u = Ke.value.map((e) => ({
|
|
@@ -1281,7 +1287,7 @@ const xn = {
|
|
|
1281
1287
|
color: e.color,
|
|
1282
1288
|
type: e.type
|
|
1283
1289
|
}));
|
|
1284
|
-
|
|
1290
|
+
wt(
|
|
1285
1291
|
"selectX",
|
|
1286
1292
|
{
|
|
1287
1293
|
dataset: u,
|
|
@@ -1291,7 +1297,7 @@ const xn = {
|
|
|
1291
1297
|
), t.value.events.datapointClick && t.value.events.datapointClick({ datapoint: u, seriesIndex: l + p.value.start });
|
|
1292
1298
|
}
|
|
1293
1299
|
function yo() {
|
|
1294
|
-
return
|
|
1300
|
+
return Ze.value.map((l) => ({
|
|
1295
1301
|
values: l.absoluteValues,
|
|
1296
1302
|
color: l.color,
|
|
1297
1303
|
name: l.name,
|
|
@@ -1299,8 +1305,8 @@ const xn = {
|
|
|
1299
1305
|
}));
|
|
1300
1306
|
}
|
|
1301
1307
|
async function ko({ scale: l = 2 } = {}) {
|
|
1302
|
-
if (!
|
|
1303
|
-
const { width: u, height: e } =
|
|
1308
|
+
if (!xe.value) return;
|
|
1309
|
+
const { width: u, height: e } = xe.value.getBoundingClientRect(), n = u / e, { imageUri: a, base64: i } = await hn({ domElement: xe.value, base64: !0, img: !0, scale: l });
|
|
1304
1310
|
return {
|
|
1305
1311
|
imageUri: a,
|
|
1306
1312
|
base64: i,
|
|
@@ -1314,25 +1320,25 @@ const xn = {
|
|
|
1314
1320
|
if (ue.value.includes(l.id))
|
|
1315
1321
|
ue.value = ue.value.filter((u) => u !== l.id);
|
|
1316
1322
|
else {
|
|
1317
|
-
if (ue.value.length + 1 ===
|
|
1323
|
+
if (ue.value.length + 1 === at.value.length) return;
|
|
1318
1324
|
ue.value.push(l.id);
|
|
1319
1325
|
}
|
|
1320
|
-
|
|
1326
|
+
wt("selectLegend", Ke.value.map((u) => ({
|
|
1321
1327
|
name: u.name,
|
|
1322
1328
|
values: u.absoluteValues,
|
|
1323
1329
|
color: u.color,
|
|
1324
1330
|
type: u.type
|
|
1325
|
-
}))),
|
|
1331
|
+
}))), Zt.value += 1;
|
|
1326
1332
|
}
|
|
1327
|
-
const wo =
|
|
1333
|
+
const wo = x(() => {
|
|
1328
1334
|
const l = t.value.chart.title.text || "Chart visualization", u = t.value.chart.title.subtitle.text || "";
|
|
1329
1335
|
return `${l}. ${u}`;
|
|
1330
|
-
}), $a =
|
|
1336
|
+
}), $a = x(() => ({
|
|
1331
1337
|
linePlot: T.value > t.value.line.dot.hideAboveMaxSerieLength
|
|
1332
|
-
})), So =
|
|
1338
|
+
})), So = x(() => t.value.chart.userOptions.show && (!t.value.chart.title.show || !t.value.chart.title.text)), _o = x(() => {
|
|
1333
1339
|
if (Array.isArray(t.value.chart.highlightArea))
|
|
1334
1340
|
return t.value.chart.highlightArea.map((u) => {
|
|
1335
|
-
const e = Math.min(u.to,
|
|
1341
|
+
const e = Math.min(u.to, ze.value - 1);
|
|
1336
1342
|
return {
|
|
1337
1343
|
...u,
|
|
1338
1344
|
span: u.from === e ? 1 : e < u.from ? 0 : e - u.from + 1
|
|
@@ -1340,14 +1346,14 @@ const xn = {
|
|
|
1340
1346
|
});
|
|
1341
1347
|
const l = {
|
|
1342
1348
|
...t.value.chart.highlightArea,
|
|
1343
|
-
to: Math.min(t.value.chart.highlightArea.to,
|
|
1349
|
+
to: Math.min(t.value.chart.highlightArea.to, ze.value - 1)
|
|
1344
1350
|
};
|
|
1345
1351
|
return [{ ...l, span: l.from === l.to ? 1 : l.to < l.from ? 0 : l.to - l.from + 1 }];
|
|
1346
|
-
}), $o =
|
|
1352
|
+
}), $o = x(() => dl.value ? he.value.map((l, u) => ({
|
|
1347
1353
|
...l,
|
|
1348
|
-
series:
|
|
1354
|
+
series: Se(l.series),
|
|
1349
1355
|
id: `uniqueId_${u}`
|
|
1350
|
-
})) :
|
|
1356
|
+
})) : he.value), Lo = x(() => Ke.value.map((l) => {
|
|
1351
1357
|
const u = l.absoluteValues.map((e) => [void 0, null].includes(e) ? 0 : e);
|
|
1352
1358
|
return {
|
|
1353
1359
|
id: l.id,
|
|
@@ -1355,7 +1361,7 @@ const xn = {
|
|
|
1355
1361
|
color: l.color,
|
|
1356
1362
|
values: fo(T.value, u)
|
|
1357
1363
|
};
|
|
1358
|
-
})), Mo =
|
|
1364
|
+
})), Mo = x(() => ({
|
|
1359
1365
|
responsiveBreakpoint: t.value.table.responsiveBreakpoint,
|
|
1360
1366
|
roundingValues: t.value.table.rounding,
|
|
1361
1367
|
showAverage: !1,
|
|
@@ -1364,7 +1370,7 @@ const xn = {
|
|
|
1364
1370
|
fontFamily: t.value.chart.fontFamily,
|
|
1365
1371
|
prefix: t.value.chart.labels.prefix,
|
|
1366
1372
|
suffix: t.value.chart.labels.suffix,
|
|
1367
|
-
colNames:
|
|
1373
|
+
colNames: _e.value.map((l, u) => t.value.table.useDefaultTimeFormat ? l.text : al.value(u + p.value.start, t.value.table.timeFormat)),
|
|
1368
1374
|
thead: {
|
|
1369
1375
|
backgroundColor: t.value.table.th.backgroundColor,
|
|
1370
1376
|
color: t.value.table.th.color,
|
|
@@ -1381,8 +1387,8 @@ const xn = {
|
|
|
1381
1387
|
sparkline: {
|
|
1382
1388
|
animation: { show: !1 }
|
|
1383
1389
|
}
|
|
1384
|
-
})), te =
|
|
1385
|
-
const l = Object.groupBy(
|
|
1390
|
+
})), te = x(() => t.value.chart.grid.position === "middle" ? 0 : c.value.width / T.value / 2), Bt = x(() => Zo(Ze.value.filter((l) => !ue.value.includes(l.id)))), A = x(() => {
|
|
1391
|
+
const l = Object.groupBy(Bt.value, (e) => e.scaleLabel), u = {};
|
|
1386
1392
|
for (const [e, n] of Object.entries(l)) {
|
|
1387
1393
|
const a = n.flatMap((i) => i.absoluteValues);
|
|
1388
1394
|
u[e] = {
|
|
@@ -1392,48 +1398,48 @@ const xn = {
|
|
|
1392
1398
|
};
|
|
1393
1399
|
}
|
|
1394
1400
|
return u;
|
|
1395
|
-
}), Co =
|
|
1396
|
-
const l =
|
|
1401
|
+
}), Co = x(() => {
|
|
1402
|
+
const l = at.value.filter((u) => u.type === "bar").filter((u) => !ue.value.includes(u.id)).length;
|
|
1397
1403
|
return c.value.width / T.value / l - Nl.value * l;
|
|
1398
|
-
}), Nl =
|
|
1404
|
+
}), Nl = x(() => se.value.line * t.value.bar.periodGap), Rl = x(() => Math.max(1e-5, ll() - (k.value.useIndividualScale && k.value.isStacked ? 0 : Nl.value))), Fl = x(() => Rl.value * Math.min(Math.abs(t.value.bar.innerGap), 0.95)), La = x(() => {
|
|
1399
1405
|
if (!t.value.chart.zoom.minimap.show) return [];
|
|
1400
1406
|
const l = $o.value.filter((a) => !ue.value.includes(a.id)), u = Math.max(...l.map((a) => a.series.length)), e = [];
|
|
1401
1407
|
for (let a = 0; a < u; a += 1)
|
|
1402
1408
|
e.push(l.map((i) => i.series[a] || 0).reduce((i, o) => (i || 0) + (o || 0), 0));
|
|
1403
1409
|
const n = Math.min(...e);
|
|
1404
1410
|
return e.map((a) => a + (n < 0 ? Math.abs(n) : 0));
|
|
1405
|
-
}), pt =
|
|
1411
|
+
}), pt = x(() => Ke.value.map((l) => ({
|
|
1406
1412
|
slotAbsoluteIndex: l.slotAbsoluteIndex,
|
|
1407
1413
|
shape: l.shape || null,
|
|
1408
1414
|
name: l.name,
|
|
1409
1415
|
color: l.color,
|
|
1410
1416
|
type: l.type,
|
|
1411
|
-
value: l.absoluteValues.find((u, e) => e ===
|
|
1417
|
+
value: l.absoluteValues.find((u, e) => e === L.value),
|
|
1412
1418
|
comments: l.comments || [],
|
|
1413
1419
|
prefix: l.prefix || t.value.chart.labels.prefix,
|
|
1414
1420
|
suffix: l.suffix || t.value.chart.labels.suffix
|
|
1415
|
-
}))), Ma =
|
|
1416
|
-
y: l >= 0 ?
|
|
1421
|
+
}))), Ma = x(() => Te.value.ticks.map((l) => ({
|
|
1422
|
+
y: l >= 0 ? Ie.value - c.value.height * Pt(l) : Ie.value + c.value.height * Pt(Math.abs(l)),
|
|
1417
1423
|
value: l,
|
|
1418
1424
|
prefix: t.value.chart.labels.prefix,
|
|
1419
1425
|
suffix: t.value.chart.labels.suffix
|
|
1420
|
-
}))), Ca =
|
|
1426
|
+
}))), Ca = x(() => {
|
|
1421
1427
|
const l = t.value.chart.annotations;
|
|
1422
|
-
if (!l || !Array.isArray(l) || l.every((
|
|
1428
|
+
if (!l || !Array.isArray(l) || l.every(($) => !$.show)) return [];
|
|
1423
1429
|
const u = l.filter(
|
|
1424
|
-
(
|
|
1430
|
+
($) => $.show && ($.yAxis.yTop != null || $.yAxis.yBottom != null)
|
|
1425
1431
|
);
|
|
1426
1432
|
if (!u.length) return [];
|
|
1427
|
-
const { left: e, right: n } = c.value, a =
|
|
1428
|
-
const I = (
|
|
1433
|
+
const { left: e, right: n } = c.value, a = Ie.value, i = c.value.height, o = Te.value.min, B = Te.value.max - o, E = ($) => {
|
|
1434
|
+
const I = ($ - 0) / B;
|
|
1429
1435
|
return a - I * i;
|
|
1430
1436
|
};
|
|
1431
|
-
return u.map((
|
|
1432
|
-
const { yAxis: { yTop: I, yBottom: K, label: M } } =
|
|
1437
|
+
return u.map(($) => {
|
|
1438
|
+
const { yAxis: { yTop: I, yBottom: K, label: M } } = $, D = I != null && K != null && I !== K, R = I == null ? null : E(I), re = K == null ? null : E(K), H = ro(M.fontSize);
|
|
1433
1439
|
H.font = `${M.fontSize}px sans-serif`;
|
|
1434
|
-
const
|
|
1440
|
+
const F = H.measureText(M.text).width, ae = M.fontSize, Oe = (M.position === "start" ? e + M.padding.left : n - M.padding.right) + M.offsetX, Ee = (R != null && re != null ? Math.min(R, re) : R ?? re) - M.fontSize / 3 + M.offsetY - M.padding.top;
|
|
1435
1441
|
let G;
|
|
1436
|
-
M.textAnchor === "middle" ? G =
|
|
1442
|
+
M.textAnchor === "middle" ? G = Oe - F / 2 - M.padding.left : M.textAnchor === "end" ? G = Oe - F - M.padding.right : G = Oe - M.padding.left;
|
|
1437
1443
|
const U = Ee - ae * 0.75 - M.padding.top;
|
|
1438
1444
|
return {
|
|
1439
1445
|
show: ![R, re, U].includes(NaN),
|
|
@@ -1442,14 +1448,14 @@ const xn = {
|
|
|
1442
1448
|
areaHeight: D ? Math.abs(R - re) : 0,
|
|
1443
1449
|
yTop: R,
|
|
1444
1450
|
yBottom: re,
|
|
1445
|
-
config:
|
|
1451
|
+
config: $.yAxis,
|
|
1446
1452
|
x1: e,
|
|
1447
1453
|
x2: n,
|
|
1448
|
-
_text: { x:
|
|
1454
|
+
_text: { x: Oe, y: Ee },
|
|
1449
1455
|
_box: {
|
|
1450
1456
|
x: G,
|
|
1451
1457
|
y: U,
|
|
1452
|
-
width:
|
|
1458
|
+
width: F + M.padding.left + M.padding.right,
|
|
1453
1459
|
height: ae + M.padding.top + M.padding.bottom,
|
|
1454
1460
|
fill: M.backgroundColor,
|
|
1455
1461
|
stroke: M.border.stroke,
|
|
@@ -1465,202 +1471,202 @@ const xn = {
|
|
|
1465
1471
|
let a = !!e && !!n && e.value == null && n.value == null || !e && !!n && n.value == null || !!e && !n && e.value == null;
|
|
1466
1472
|
return Ve(l[u].value) && a && t.value.line.cutNullValues;
|
|
1467
1473
|
}
|
|
1468
|
-
const yt =
|
|
1469
|
-
const l =
|
|
1474
|
+
const yt = x(() => {
|
|
1475
|
+
const l = Bt.value.filter((o) => ["bar", "line", "plot"].includes(o.type)), u = l.length, e = t.value.chart.grid.labels.yAxis.gap, n = k.value.isStacked, a = n ? e * (u - 1) : 0, i = c.value.height - a;
|
|
1470
1476
|
return l.filter((o) => o.type === "bar").map((o, z) => {
|
|
1471
1477
|
Ql(o);
|
|
1472
|
-
const
|
|
1473
|
-
o.absoluteValues.filter((Y) => ![null, void 0].includes(Y)).map((Y) => (Y -
|
|
1474
|
-
const
|
|
1475
|
-
valueMin:
|
|
1478
|
+
const B = A.value[o.scaleLabel].min, E = A.value[o.scaleLabel].max;
|
|
1479
|
+
o.absoluteValues.filter((Y) => ![null, void 0].includes(Y)).map((Y) => (Y - B) / (E - B));
|
|
1480
|
+
const $ = {
|
|
1481
|
+
valueMin: B,
|
|
1476
1482
|
valueMax: E < 0 ? 0 : E
|
|
1477
1483
|
}, I = {
|
|
1478
1484
|
max: o.scaleMax || Math.max(...o.absoluteValues) || 1,
|
|
1479
1485
|
min: o.scaleMin || Math.min(...o.absoluteValues.filter((Y) => ![void 0, null].includes(Y))) > 0 ? 0 : Math.min(...o.absoluteValues.filter((Y) => ![null, void 0].includes(Y)))
|
|
1480
|
-
}, K = o.scaleSteps || t.value.chart.grid.labels.yAxis.commonScaleSteps, M = 1.0000001, D = t.value.chart.grid.labels.yAxis.useNiceScale ?
|
|
1481
|
-
const
|
|
1486
|
+
}, K = o.scaleSteps || t.value.chart.grid.labels.yAxis.commonScaleSteps, M = 1.0000001, D = t.value.chart.grid.labels.yAxis.useNiceScale ? Ml(I.min, I.max === I.min ? I.max * M : I.max, K) : Vt(I.min, I.max === I.min ? I.max * M : I.max, K), R = t.value.chart.grid.labels.yAxis.useNiceScale ? Ml($.valueMin, $.valueMax === $.valueMin ? $.valueMax * M : $.valueMax, K) : Vt($.valueMin, $.valueMax === $.valueMin ? $.valueMax * M : $.valueMax, K), re = D.min >= 0 ? 0 : Math.abs(D.min), H = 0, F = D.max + re, ae = R.max + Math.abs(H), Oe = o.stackIndex, ol = u - 1 - Oe, Ee = n ? 1 - o.cumulatedStackRatio : 0, G = n ? i * Ee + e * ol : 0, U = n ? i * o.stackRatio : c.value.height, fe = c.value.bottom - G - U * re / F, De = c.value.bottom - G - U * H / ae, Ne = Ze.value.filter((Y) => Y.type === "bar").filter((Y) => !ue.value.includes(Y.id)).length, _l = o.series.map((Y, ge) => {
|
|
1487
|
+
const Mt = k.value.useIndividualScale ? (o.absoluteValues[ge] + re) / F : Pt(Y), Ht = k.value.useIndividualScale && k.value.isStacked ? c.value.left + c.value.width / T.value * ge : c.value.left + se.value.bar * z + se.value.bar * ge * Ne - Co.value / 2 - z * Nl.value;
|
|
1482
1488
|
return {
|
|
1483
1489
|
yOffset: W(G),
|
|
1484
1490
|
individualHeight: W(U),
|
|
1485
|
-
x: W(
|
|
1486
|
-
y: c.value.bottom - G - U *
|
|
1487
|
-
value: o.absoluteValues[
|
|
1488
|
-
zeroPosition: W(
|
|
1489
|
-
individualMax: W(
|
|
1490
|
-
comment: o.comments && o.comments.slice(p.value.start, p.value.end)[
|
|
1491
|
+
x: W(Ht),
|
|
1492
|
+
y: c.value.bottom - G - U * Mt,
|
|
1493
|
+
value: o.absoluteValues[ge],
|
|
1494
|
+
zeroPosition: W(fe),
|
|
1495
|
+
individualMax: W(F),
|
|
1496
|
+
comment: o.comments && o.comments.slice(p.value.start, p.value.end)[ge] || ""
|
|
1491
1497
|
};
|
|
1492
|
-
}),
|
|
1493
|
-
const
|
|
1498
|
+
}), Be = o.absoluteValues.map((Y) => R.min >= 0 ? (Y - Math.abs(R.min)) / (R.max - Math.abs(R.min)) : (Y + Math.abs(R.min)) / (R.max + Math.abs(R.min))), Lt = o.series.map((Y, ge) => {
|
|
1499
|
+
const Mt = k.value.useIndividualScale && k.value.isStacked ? c.value.left + c.value.width / T.value * ge : c.value.left - se.value.bar / 2 + se.value.bar * z + se.value.bar * ge * Ze.value.filter((Ht) => Ht.type === "bar").filter((Ht) => !ue.value.includes(Ht.id)).length;
|
|
1494
1500
|
return {
|
|
1495
1501
|
yOffset: W(G),
|
|
1496
1502
|
individualHeight: W(U),
|
|
1497
|
-
x: W(
|
|
1498
|
-
y: W(c.value.bottom - W(G) - (W(U) *
|
|
1499
|
-
value: o.absoluteValues[
|
|
1500
|
-
zeroPosition: W(
|
|
1501
|
-
individualMax: W(
|
|
1502
|
-
comment: o.comments && o.comments.slice(p.value.start, p.value.end)[
|
|
1503
|
+
x: W(Mt),
|
|
1504
|
+
y: W(c.value.bottom - W(G) - (W(U) * Be[ge] || 0)),
|
|
1505
|
+
value: o.absoluteValues[ge],
|
|
1506
|
+
zeroPosition: W(fe),
|
|
1507
|
+
individualMax: W(F),
|
|
1508
|
+
comment: o.comments && o.comments.slice(p.value.start, p.value.end)[ge] || ""
|
|
1503
1509
|
};
|
|
1504
1510
|
}), J = D.ticks.map((Y) => ({
|
|
1505
|
-
y: Y >= 0 ?
|
|
1511
|
+
y: Y >= 0 ? fe - U * (Y / F) : fe + U * Math.abs(Y) / F,
|
|
1506
1512
|
value: Y,
|
|
1507
1513
|
prefix: o.prefix || t.value.chart.labels.prefix,
|
|
1508
1514
|
suffix: o.suffix || t.value.chart.labels.suffix,
|
|
1509
1515
|
datapoint: o
|
|
1510
|
-
})),
|
|
1511
|
-
const
|
|
1516
|
+
})), me = R.ticks.map((Y) => {
|
|
1517
|
+
const ge = (Y - R.min) / (R.max - R.min);
|
|
1512
1518
|
return {
|
|
1513
|
-
y: Y >= 0 ? De - U *
|
|
1519
|
+
y: Y >= 0 ? De - U * ge : De + U * ge,
|
|
1514
1520
|
value: Y,
|
|
1515
1521
|
prefix: o.prefix || t.value.chart.labels.prefix,
|
|
1516
1522
|
suffix: o.suffix || t.value.chart.labels.suffix,
|
|
1517
1523
|
datapoint: o
|
|
1518
1524
|
};
|
|
1519
1525
|
});
|
|
1520
|
-
return A.value[o.scaleLabel].name = o.name, A.value[o.scaleLabel].groupName = o.scaleLabel, A.value[o.scaleLabel].groupColor = t.value.chart.grid.labels.yAxis.groupColor || o.color, A.value[o.scaleLabel].color = o.color, A.value[o.scaleLabel].scaleYLabels = o.autoScaling ?
|
|
1526
|
+
return A.value[o.scaleLabel].name = o.name, A.value[o.scaleLabel].groupName = o.scaleLabel, A.value[o.scaleLabel].groupColor = t.value.chart.grid.labels.yAxis.groupColor || o.color, A.value[o.scaleLabel].color = o.color, A.value[o.scaleLabel].scaleYLabels = o.autoScaling ? me : J, A.value[o.scaleLabel].zeroPosition = o.autoScaling ? De : fe, A.value[o.scaleLabel].individualMax = o.autoScaling ? ae : F, A.value[o.scaleLabel].scaleLabel = o.scaleLabel, A.value[o.scaleLabel].id = o.id, A.value[o.scaleLabel].yOffset = G, A.value[o.scaleLabel].individualHeight = U, A.value[o.scaleLabel].autoScaleYLabels = me, A.value[o.scaleLabel].unique = Bt.value.filter((Y) => Y.scaleLabel === o.scaleLabel).length === 1, {
|
|
1521
1527
|
...o,
|
|
1522
1528
|
yOffset: G,
|
|
1523
|
-
autoScaleYLabels:
|
|
1529
|
+
autoScaleYLabels: me,
|
|
1524
1530
|
individualHeight: U,
|
|
1525
|
-
scaleYLabels: o.autoScaling ?
|
|
1531
|
+
scaleYLabels: o.autoScaling ? me : J,
|
|
1526
1532
|
individualScale: o.autoScaling ? R : D,
|
|
1527
|
-
individualMax: o.autoScaling ? ae :
|
|
1528
|
-
zeroPosition: o.autoScaling ? De :
|
|
1529
|
-
plots: o.autoScaling ?
|
|
1533
|
+
individualMax: o.autoScaling ? ae : F,
|
|
1534
|
+
zeroPosition: o.autoScaling ? De : fe,
|
|
1535
|
+
plots: o.autoScaling ? Lt : _l,
|
|
1530
1536
|
groupId: A.value[o.scaleLabel].groupId
|
|
1531
1537
|
};
|
|
1532
1538
|
});
|
|
1533
|
-
}),
|
|
1534
|
-
const l =
|
|
1539
|
+
}), Pe = x(() => {
|
|
1540
|
+
const l = Bt.value.filter((o) => ["bar", "line", "plot"].includes(o.type)), u = l.length, e = t.value.chart.grid.labels.yAxis.gap, n = k.value.isStacked, a = n ? e * (u - 1) : 0, i = c.value.height - a;
|
|
1535
1541
|
return l.filter((o) => o.type === "line").map((o, z) => {
|
|
1536
1542
|
Ql(o);
|
|
1537
|
-
const
|
|
1538
|
-
o.absoluteValues.filter((V) => ![null, void 0].includes(V)).map((V) => (V -
|
|
1539
|
-
const
|
|
1540
|
-
valueMin:
|
|
1543
|
+
const B = A.value[o.scaleLabel].min, E = A.value[o.scaleLabel].max;
|
|
1544
|
+
o.absoluteValues.filter((V) => ![null, void 0].includes(V)).map((V) => (V - B) / (E - B));
|
|
1545
|
+
const $ = {
|
|
1546
|
+
valueMin: B,
|
|
1541
1547
|
valueMax: E
|
|
1542
1548
|
}, I = {
|
|
1543
1549
|
max: o.scaleMax || Math.max(...o.absoluteValues) || 1,
|
|
1544
1550
|
min: o.scaleMin || (Math.min(...o.absoluteValues) > 0 ? 0 : Math.min(...o.absoluteValues))
|
|
1545
|
-
}, K = o.scaleSteps || t.value.chart.grid.labels.yAxis.commonScaleSteps, M = 1.0000001, D = t.value.chart.grid.labels.yAxis.useNiceScale ?
|
|
1546
|
-
const Ro = k.value.useIndividualScale ? (o.absoluteValues[
|
|
1551
|
+
}, K = o.scaleSteps || t.value.chart.grid.labels.yAxis.commonScaleSteps, M = 1.0000001, D = t.value.chart.grid.labels.yAxis.useNiceScale ? Ml(I.min, I.max === I.min ? I.max * M : I.max, K) : Vt(I.min, I.max === I.min ? I.max * M : I.max, K), R = t.value.chart.grid.labels.yAxis.useNiceScale ? Ml($.valueMin, $.valueMax === $.valueMin ? $.valueMax * M : $.valueMax, K) : Vt($.valueMin, $.valueMax === $.valueMin ? $.valueMax * M : $.valueMax, K), re = D.min >= 0 ? 0 : Math.abs(D.min), H = 0, F = D.max + Math.abs(re), ae = R.max + Math.abs(H), Oe = o.stackIndex, ol = u - 1 - Oe, Ee = n ? 1 - o.cumulatedStackRatio : 0, G = n ? i * Ee + e * ol : 0, U = n ? i * o.stackRatio : c.value.height, fe = c.value.bottom - G - U * re / F, De = c.value.bottom - G - U * H / ae, Ne = o.series.map((V, $e) => {
|
|
1552
|
+
const Ro = k.value.useIndividualScale ? (o.absoluteValues[$e] + Math.abs(re)) / F : Pt(V);
|
|
1547
1553
|
return {
|
|
1548
|
-
x: W(c.value.left + se.value.line / 2 + se.value.line *
|
|
1554
|
+
x: W(c.value.left + se.value.line / 2 + se.value.line * $e),
|
|
1549
1555
|
y: W(c.value.bottom - G - U * Ro),
|
|
1550
|
-
value: o.absoluteValues[
|
|
1551
|
-
comment: o.comments && o.comments.slice(p.value.start, p.value.end)[
|
|
1556
|
+
value: o.absoluteValues[$e],
|
|
1557
|
+
comment: o.comments && o.comments.slice(p.value.start, p.value.end)[$e] || ""
|
|
1552
1558
|
};
|
|
1553
|
-
}),
|
|
1554
|
-
x: W(c.value.left + se.value.line / 2 + se.value.line *
|
|
1555
|
-
y:
|
|
1556
|
-
value: o.absoluteValues[
|
|
1557
|
-
comment: o.comments && o.comments.slice(p.value.start, p.value.end)[
|
|
1559
|
+
}), _l = o.absoluteValues.map((V) => R.min >= 0 ? (V - Math.abs(R.min)) / (R.max - Math.abs(R.min)) : (V + Math.abs(R.min)) / (R.max + Math.abs(R.min))), Be = o.series.map((V, $e) => [void 0, null].includes(o.absoluteValues[$e]) ? {
|
|
1560
|
+
x: W(c.value.left + se.value.line / 2 + se.value.line * $e),
|
|
1561
|
+
y: fe,
|
|
1562
|
+
value: o.absoluteValues[$e],
|
|
1563
|
+
comment: o.comments && o.comments.slice(p.value.start, p.value.end)[$e] || ""
|
|
1558
1564
|
} : {
|
|
1559
|
-
x: W(c.value.left + se.value.line / 2 + se.value.line *
|
|
1560
|
-
y: W(c.value.bottom - G - (U *
|
|
1561
|
-
value: o.absoluteValues[
|
|
1562
|
-
comment: o.comments && o.comments.slice(p.value.start, p.value.end)[
|
|
1563
|
-
}),
|
|
1564
|
-
y: V >= 0 ?
|
|
1565
|
+
x: W(c.value.left + se.value.line / 2 + se.value.line * $e),
|
|
1566
|
+
y: W(c.value.bottom - G - (U * _l[$e] || 0)),
|
|
1567
|
+
value: o.absoluteValues[$e],
|
|
1568
|
+
comment: o.comments && o.comments.slice(p.value.start, p.value.end)[$e] || ""
|
|
1569
|
+
}), Lt = t.value.line.cutNullValues ? Ka(Ne) : Xl(Ne.filter((V) => V.value !== null)), J = t.value.line.cutNullValues ? Ka(Be) : Xl(Be.filter((V) => V.value !== null)), me = t.value.line.cutNullValues ? Ja(Ne) : Yl(Ne.filter((V) => V.value !== null)), Y = t.value.line.cutNullValues ? Ja(Be) : Yl(Be.filter((V) => V.value !== null)), ge = D.ticks.map((V) => ({
|
|
1570
|
+
y: V >= 0 ? fe - U * (V / F) : fe + U * Math.abs(V) / F,
|
|
1565
1571
|
value: V,
|
|
1566
1572
|
prefix: o.prefix || t.value.chart.labels.prefix,
|
|
1567
1573
|
suffix: o.suffix || t.value.chart.labels.suffix,
|
|
1568
1574
|
datapoint: o
|
|
1569
|
-
})),
|
|
1570
|
-
const
|
|
1575
|
+
})), Mt = R.ticks.map((V) => {
|
|
1576
|
+
const $e = (V - R.min) / (R.max - R.min);
|
|
1571
1577
|
return {
|
|
1572
|
-
y: V >= 0 ? De - U *
|
|
1578
|
+
y: V >= 0 ? De - U * $e : De + U * $e,
|
|
1573
1579
|
value: V,
|
|
1574
1580
|
prefix: o.prefix || t.value.chart.labels.prefix,
|
|
1575
1581
|
suffix: o.suffix || t.value.chart.labels.suffix,
|
|
1576
1582
|
datapoint: o
|
|
1577
1583
|
};
|
|
1578
1584
|
});
|
|
1579
|
-
A.value[o.scaleLabel].name = o.name, A.value[o.scaleLabel].groupName = o.scaleLabel, A.value[o.scaleLabel].groupColor = t.value.chart.grid.labels.yAxis.groupColor || o.color, A.value[o.scaleLabel].color = o.color, A.value[o.scaleLabel].scaleYLabels = o.autoScaling ?
|
|
1580
|
-
const
|
|
1585
|
+
A.value[o.scaleLabel].name = o.name, A.value[o.scaleLabel].groupName = o.scaleLabel, A.value[o.scaleLabel].groupColor = t.value.chart.grid.labels.yAxis.groupColor || o.color, A.value[o.scaleLabel].color = o.color, A.value[o.scaleLabel].scaleYLabels = o.autoScaling ? Mt : ge, A.value[o.scaleLabel].zeroPosition = o.autoScaling ? De : fe, A.value[o.scaleLabel].individualMax = o.autoScaling ? ae : F, A.value[o.scaleLabel].scaleLabel = o.scaleLabel, A.value[o.scaleLabel].id = o.id, A.value[o.scaleLabel].yOffset = G, A.value[o.scaleLabel].individualHeight = U, A.value[o.scaleLabel].autoScaleYLabels = Mt, A.value[o.scaleLabel].unique = Bt.value.filter((V) => V.scaleLabel === o.scaleLabel).length === 1;
|
|
1586
|
+
const Ht = k.value.useIndividualScale ? o.autoScaling ? De : fe : Ie.value, $l = Math.max(Math.max(o.autoScaling ? De : ge.at(-1) ? ge.at(-1).y : 0, c.value.top), Ht);
|
|
1581
1587
|
return {
|
|
1582
1588
|
...o,
|
|
1583
1589
|
yOffset: G,
|
|
1584
|
-
autoScaleYLabels:
|
|
1590
|
+
autoScaleYLabels: Mt,
|
|
1585
1591
|
individualHeight: U,
|
|
1586
|
-
scaleYLabels: o.autoScaling ?
|
|
1592
|
+
scaleYLabels: o.autoScaling ? Mt : ge,
|
|
1587
1593
|
individualScale: o.autoScaling ? R : D,
|
|
1588
|
-
individualMax: o.autoScaling ? ae :
|
|
1589
|
-
zeroPosition: o.autoScaling ? De :
|
|
1590
|
-
curve: o.autoScaling ? J :
|
|
1591
|
-
plots: o.autoScaling ?
|
|
1594
|
+
individualMax: o.autoScaling ? ae : F,
|
|
1595
|
+
zeroPosition: o.autoScaling ? De : fe,
|
|
1596
|
+
curve: o.autoScaling ? J : Lt,
|
|
1597
|
+
plots: o.autoScaling ? Be : Ne,
|
|
1592
1598
|
area: o.useArea ? k.value.useIndividualScale ? t.value.line.cutNullValues ? Qa(
|
|
1593
|
-
o.autoScaling ?
|
|
1594
|
-
|
|
1599
|
+
o.autoScaling ? Be : Ne,
|
|
1600
|
+
$l
|
|
1595
1601
|
) : ja(
|
|
1596
|
-
o.autoScaling ?
|
|
1597
|
-
|
|
1598
|
-
) : t.value.line.cutNullValues ? Qa(
|
|
1602
|
+
o.autoScaling ? Be.filter((V) => V.value !== null) : Ne.filter((V) => V.value !== null),
|
|
1603
|
+
$l
|
|
1604
|
+
) : t.value.line.cutNullValues ? Qa(Ne, $l) : ja(Ne.filter((V) => V.value !== null), $l) : "",
|
|
1599
1605
|
curveAreas: o.useArea ? Ko(
|
|
1600
|
-
o.autoScaling ? t.value.line.cutNullValues ?
|
|
1601
|
-
|
|
1606
|
+
o.autoScaling ? t.value.line.cutNullValues ? Be : Be.filter((V) => V.value !== null) : t.value.line.cutNullValues ? Ne : Ne.filter((V) => V.value !== null),
|
|
1607
|
+
$l,
|
|
1602
1608
|
t.value.line.cutNullValues
|
|
1603
1609
|
) : [],
|
|
1604
|
-
straight: o.autoScaling ? Y :
|
|
1610
|
+
straight: o.autoScaling ? Y : me,
|
|
1605
1611
|
groupId: A.value[o.scaleLabel].groupId
|
|
1606
1612
|
};
|
|
1607
1613
|
});
|
|
1608
|
-
}),
|
|
1609
|
-
const l =
|
|
1614
|
+
}), ot = x(() => {
|
|
1615
|
+
const l = Bt.value.filter((o) => ["bar", "line", "plot"].includes(o.type)), u = l.length, e = t.value.chart.grid.labels.yAxis.gap, n = k.value.isStacked, a = n ? e * (u - 1) : 0, i = c.value.height - a;
|
|
1610
1616
|
return l.filter((o) => o.type === "plot").map((o) => {
|
|
1611
1617
|
Ql(o);
|
|
1612
|
-
const z = A.value[o.scaleLabel].min,
|
|
1613
|
-
o.absoluteValues.filter((J) => ![null, void 0].includes(J)).map((J) => (J - z) / (
|
|
1618
|
+
const z = A.value[o.scaleLabel].min, B = A.value[o.scaleLabel].max;
|
|
1619
|
+
o.absoluteValues.filter((J) => ![null, void 0].includes(J)).map((J) => (J - z) / (B - z));
|
|
1614
1620
|
const E = {
|
|
1615
1621
|
valueMin: z,
|
|
1616
|
-
valueMax:
|
|
1617
|
-
},
|
|
1622
|
+
valueMax: B
|
|
1623
|
+
}, $ = {
|
|
1618
1624
|
max: o.scaleMax || Math.max(...o.absoluteValues) || 1,
|
|
1619
1625
|
min: o.scaleMin || Math.min(...o.absoluteValues) > 0 ? 0 : Math.min(...o.absoluteValues)
|
|
1620
|
-
}, I = o.scaleSteps || t.value.chart.grid.labels.yAxis.commonScaleSteps, K = 1.0000001, M =
|
|
1621
|
-
const Y = k.value.useIndividualScale ? (o.absoluteValues[
|
|
1626
|
+
}, I = o.scaleSteps || t.value.chart.grid.labels.yAxis.commonScaleSteps, K = 1.0000001, M = Vt($.min, $.max === $.min ? $.max * K : $.max, I), D = Vt(E.valueMin, E.valueMax === E.valueMin ? E.valueMax * K : E.valueMax, I), R = M.min >= 0 ? 0 : Math.abs(M.min), re = 0, H = M.max + R, F = D.max + Math.abs(re), ae = o.stackIndex, Oe = u - 1 - ae, ol = n ? 1 - o.cumulatedStackRatio : 0, Ee = n ? i * ol + e * Oe : 0, G = n ? i * o.stackRatio : c.value.height, U = c.value.bottom - Ee - G * R / H, fe = c.value.bottom - Ee - G * re / F, De = o.series.map((J, me) => {
|
|
1627
|
+
const Y = k.value.useIndividualScale ? (o.absoluteValues[me] + Math.abs(R)) / H : Pt(J);
|
|
1622
1628
|
return {
|
|
1623
|
-
x: W(c.value.left + se.value.plot / 2 + se.value.plot *
|
|
1629
|
+
x: W(c.value.left + se.value.plot / 2 + se.value.plot * me),
|
|
1624
1630
|
y: W(c.value.bottom - Ee - G * Y),
|
|
1625
|
-
value: o.absoluteValues[
|
|
1626
|
-
comment: o.comments && o.comments.slice(p.value.start, p.value.end)[
|
|
1631
|
+
value: o.absoluteValues[me],
|
|
1632
|
+
comment: o.comments && o.comments.slice(p.value.start, p.value.end)[me] || ""
|
|
1627
1633
|
};
|
|
1628
|
-
}),
|
|
1629
|
-
x: W(c.value.left + se.value.plot / 2 + se.value.plot *
|
|
1630
|
-
y: W(c.value.bottom - Ee - (G *
|
|
1631
|
-
value: o.absoluteValues[
|
|
1632
|
-
comment: o.comments && o.comments.slice(p.value.start, p.value.end)[
|
|
1633
|
-
})),
|
|
1634
|
+
}), Ne = o.absoluteValues.map((J) => D.min >= 0 ? (J - Math.abs(D.min)) / (D.max - Math.abs(D.min)) : (J + Math.abs(D.min)) / (D.max + Math.abs(D.min))), _l = o.series.map((J, me) => ({
|
|
1635
|
+
x: W(c.value.left + se.value.plot / 2 + se.value.plot * me),
|
|
1636
|
+
y: W(c.value.bottom - Ee - (G * Ne[me] || 0)),
|
|
1637
|
+
value: o.absoluteValues[me],
|
|
1638
|
+
comment: o.comments && o.comments.slice(p.value.start, p.value.end)[me] || ""
|
|
1639
|
+
})), Be = M.ticks.map((J) => ({
|
|
1634
1640
|
y: J >= 0 ? U - G * (J / H) : U + G * Math.abs(J) / H,
|
|
1635
1641
|
value: J,
|
|
1636
1642
|
prefix: o.prefix || t.value.chart.labels.prefix,
|
|
1637
1643
|
suffix: o.suffix || t.value.chart.labels.suffix,
|
|
1638
1644
|
datapoint: o
|
|
1639
|
-
})),
|
|
1640
|
-
const
|
|
1645
|
+
})), Lt = D.ticks.map((J) => {
|
|
1646
|
+
const me = (J - D.min) / (D.max - D.min);
|
|
1641
1647
|
return {
|
|
1642
|
-
y: J >= 0 ?
|
|
1648
|
+
y: J >= 0 ? fe - G * me : fe + G * me,
|
|
1643
1649
|
value: J,
|
|
1644
1650
|
prefix: o.prefix || t.value.chart.labels.prefix,
|
|
1645
1651
|
suffix: o.suffix || t.value.chart.labels.suffix,
|
|
1646
1652
|
datapoint: o
|
|
1647
1653
|
};
|
|
1648
1654
|
});
|
|
1649
|
-
return A.value[o.scaleLabel].name = o.name, A.value[o.scaleLabel].groupName = o.scaleLabel, A.value[o.scaleLabel].groupColor = t.value.chart.grid.labels.yAxis.groupColor || o.color, A.value[o.scaleLabel].color = o.color, A.value[o.scaleLabel].scaleYLabels = o.autoScaling ?
|
|
1655
|
+
return A.value[o.scaleLabel].name = o.name, A.value[o.scaleLabel].groupName = o.scaleLabel, A.value[o.scaleLabel].groupColor = t.value.chart.grid.labels.yAxis.groupColor || o.color, A.value[o.scaleLabel].color = o.color, A.value[o.scaleLabel].scaleYLabels = o.autoScaling ? Lt : Be, A.value[o.scaleLabel].zeroPosition = o.autoScaling ? fe : U, A.value[o.scaleLabel].individualMax = o.autoScaling ? F : H, A.value[o.scaleLabel].scaleLabel = o.scaleLabel, A.value[o.scaleLabel].id = o.id, A.value[o.scaleLabel].yOffset = Ee, A.value[o.scaleLabel].individualHeight = G, A.value[o.scaleLabel].autoScaleYLabels = Lt, A.value[o.scaleLabel].unique = Bt.value.filter((J) => J.scaleLabel === o.scaleLabel).length === 1, {
|
|
1650
1656
|
...o,
|
|
1651
1657
|
yOffset: Ee,
|
|
1652
|
-
autoScaleYLabels:
|
|
1658
|
+
autoScaleYLabels: Lt,
|
|
1653
1659
|
individualHeight: G,
|
|
1654
|
-
scaleYLabels: o.autoScaling ?
|
|
1660
|
+
scaleYLabels: o.autoScaling ? Lt : Be,
|
|
1655
1661
|
individualScale: o.autoScaling ? D : M,
|
|
1656
|
-
individualMax: o.autoScaling ?
|
|
1657
|
-
zeroPosition: o.autoScaling ?
|
|
1658
|
-
plots: o.autoScaling ?
|
|
1662
|
+
individualMax: o.autoScaling ? F : H,
|
|
1663
|
+
zeroPosition: o.autoScaling ? fe : U,
|
|
1664
|
+
plots: o.autoScaling ? _l : De,
|
|
1659
1665
|
groupId: A.value[o.scaleLabel].groupId
|
|
1660
1666
|
};
|
|
1661
1667
|
});
|
|
1662
|
-
}),
|
|
1663
|
-
const l =
|
|
1668
|
+
}), wl = x(() => {
|
|
1669
|
+
const l = Pe.value.map((i) => ({
|
|
1664
1670
|
name: i.name,
|
|
1665
1671
|
color: i.color,
|
|
1666
1672
|
scale: i.individualScale,
|
|
@@ -1683,7 +1689,7 @@ const xn = {
|
|
|
1683
1689
|
id: i.id,
|
|
1684
1690
|
yOffset: i.yOffset || 0,
|
|
1685
1691
|
individualHeight: i.individualHeight || c.value.height
|
|
1686
|
-
})), e =
|
|
1692
|
+
})), e = ot.value.map((i) => ({
|
|
1687
1693
|
name: i.name,
|
|
1688
1694
|
color: i.color,
|
|
1689
1695
|
scale: i.individualScale,
|
|
@@ -1699,16 +1705,16 @@ const xn = {
|
|
|
1699
1705
|
return n.flatMap((i, o) => {
|
|
1700
1706
|
let z = 0;
|
|
1701
1707
|
z = k.value.isStacked ? c.value.left : c.value.left / a * (o + 1);
|
|
1702
|
-
const
|
|
1708
|
+
const B = k.value.useIndividualScale && !k.value.isStacked ? i.unique ? i.name : i.groupName : i.name;
|
|
1703
1709
|
return {
|
|
1704
1710
|
unique: i.unique,
|
|
1705
1711
|
id: i.id,
|
|
1706
1712
|
groupId: i.groupId,
|
|
1707
1713
|
scaleLabel: i.scaleLabel,
|
|
1708
|
-
name:
|
|
1714
|
+
name: Le(
|
|
1709
1715
|
t.value.chart.grid.labels.yAxis.serieNameFormatter,
|
|
1710
|
-
|
|
1711
|
-
|
|
1716
|
+
B,
|
|
1717
|
+
B,
|
|
1712
1718
|
i
|
|
1713
1719
|
),
|
|
1714
1720
|
color: k.value.useIndividualScale && !k.value.isStacked ? i.unique ? i.color : i.groupColor : i.color,
|
|
@@ -1722,22 +1728,22 @@ const xn = {
|
|
|
1722
1728
|
}))
|
|
1723
1729
|
};
|
|
1724
1730
|
});
|
|
1725
|
-
}), za =
|
|
1731
|
+
}), za = x(() => {
|
|
1726
1732
|
const l = t.value.line.interLine || {}, u = l.pairs || [], e = l.colors || [];
|
|
1727
1733
|
if (!u.length) return [];
|
|
1728
1734
|
const n = [];
|
|
1729
1735
|
return u.forEach((a, i) => {
|
|
1730
1736
|
const [o, z] = Array.isArray(a) ? a : [a.a, a.b];
|
|
1731
1737
|
if (!o || !z) return;
|
|
1732
|
-
const
|
|
1733
|
-
if (!
|
|
1734
|
-
const
|
|
1738
|
+
const B = Pe.value.find((M) => M.name === o), E = Pe.value.find((M) => M.name === z);
|
|
1739
|
+
if (!B || !E || B.type !== "line" || E.type !== "line") return;
|
|
1740
|
+
const $ = e?.[i]?.[0] ?? B.color, I = e?.[i]?.[1] ?? E.color;
|
|
1735
1741
|
Jo({
|
|
1736
|
-
lineA:
|
|
1742
|
+
lineA: B.plots,
|
|
1737
1743
|
lineB: E.plots,
|
|
1738
|
-
smoothA: !!
|
|
1744
|
+
smoothA: !!B.smooth,
|
|
1739
1745
|
smoothB: !!E.smooth,
|
|
1740
|
-
colorLineA:
|
|
1746
|
+
colorLineA: $,
|
|
1741
1747
|
colorLineB: I,
|
|
1742
1748
|
sampleStepPx: 2,
|
|
1743
1749
|
cutNullValues: t.value.line.cutNullValues
|
|
@@ -1745,15 +1751,15 @@ const xn = {
|
|
|
1745
1751
|
n.push({ ...M, key: `inter_${o}_${z}_${i}_${D}` });
|
|
1746
1752
|
});
|
|
1747
1753
|
}), n;
|
|
1748
|
-
}), Ta =
|
|
1754
|
+
}), Ta = x(() => ({
|
|
1749
1755
|
datapoint: pt.value,
|
|
1750
|
-
seriesIndex:
|
|
1751
|
-
series:
|
|
1756
|
+
seriesIndex: L.value,
|
|
1757
|
+
series: Ze.value,
|
|
1752
1758
|
bars: yt.value,
|
|
1753
|
-
lines:
|
|
1754
|
-
plots:
|
|
1759
|
+
lines: Pe.value,
|
|
1760
|
+
plots: ot.value,
|
|
1755
1761
|
config: t.value
|
|
1756
|
-
})), al =
|
|
1762
|
+
})), al = x(() => {
|
|
1757
1763
|
const l = t.value.chart.grid.labels.xAxisLabels.datetimeFormatter, u = cn({
|
|
1758
1764
|
useUTC: l.useUTC,
|
|
1759
1765
|
locale: vn[l.locale] || { months: [], shortMonths: [], days: [], shortDays: [] },
|
|
@@ -1763,14 +1769,14 @@ const xn = {
|
|
|
1763
1769
|
const i = t.value.chart.grid.labels.xAxisLabels.values?.[e];
|
|
1764
1770
|
return i == null ? "" : u.formatDate(new Date(i), n);
|
|
1765
1771
|
};
|
|
1766
|
-
}), ea =
|
|
1772
|
+
}), ea = x(() => (t.value.chart.grid.labels.xAxisLabels.values || []).map((u, e) => ({
|
|
1767
1773
|
text: al.value(e, t.value.chart.zoom.timeFormat),
|
|
1768
1774
|
absoluteIndex: e
|
|
1769
|
-
}))),
|
|
1775
|
+
}))), Pl = g(!1), Ia = x(() => {
|
|
1770
1776
|
let l = "", u = "";
|
|
1771
1777
|
if (t.value.chart.zoom.preview.enable)
|
|
1772
1778
|
return { left: l, right: u };
|
|
1773
|
-
|
|
1779
|
+
Pl.value = !1;
|
|
1774
1780
|
const e = t.value.chart.zoom.customFormat;
|
|
1775
1781
|
if (Wl(e))
|
|
1776
1782
|
try {
|
|
@@ -1783,41 +1789,41 @@ const xn = {
|
|
|
1783
1789
|
seriesIndex: p.value.end - 1,
|
|
1784
1790
|
datapoint: pt.value
|
|
1785
1791
|
});
|
|
1786
|
-
typeof n == "string" && typeof a == "string" && (l = n, u = a,
|
|
1792
|
+
typeof n == "string" && typeof a == "string" && (l = n, u = a, Pl.value = !0);
|
|
1787
1793
|
} catch {
|
|
1788
|
-
console.warn("Custom format cannot be applied on zoom labels."),
|
|
1794
|
+
console.warn("Custom format cannot be applied on zoom labels."), Pl.value = !1;
|
|
1789
1795
|
}
|
|
1790
|
-
if (!
|
|
1791
|
-
l = t.value.chart.grid.labels.xAxisLabels.datetimeFormatter.enable && !t.value.chart.zoom.useDefaultFormat ? ea.value[p.value.start]?.text || "" :
|
|
1796
|
+
if (!Pl.value) {
|
|
1797
|
+
l = t.value.chart.grid.labels.xAxisLabels.datetimeFormatter.enable && !t.value.chart.zoom.useDefaultFormat ? ea.value[p.value.start]?.text || "" : _e.value[0]?.text || "";
|
|
1792
1798
|
const n = Math.max(p.value.start, p.value.end - 1);
|
|
1793
|
-
u = t.value.chart.grid.labels.xAxisLabels.datetimeFormatter.enable && !t.value.chart.zoom.useDefaultFormat ? ea.value[n]?.text || "" :
|
|
1799
|
+
u = t.value.chart.grid.labels.xAxisLabels.datetimeFormatter.enable && !t.value.chart.zoom.useDefaultFormat ? ea.value[n]?.text || "" : _e.value.at(-1)?.text || "";
|
|
1794
1800
|
}
|
|
1795
1801
|
return { left: l, right: u };
|
|
1796
|
-
}), Ao =
|
|
1802
|
+
}), Ao = x(() => {
|
|
1797
1803
|
let l = "", u = pt.value.map((a) => a.value).filter((a) => Hl(a) && a !== null).reduce((a, i) => Math.abs(a) + Math.abs(i), 0);
|
|
1798
|
-
const e =
|
|
1804
|
+
const e = _e.value[L.value], n = t.value.chart.tooltip.customFormat;
|
|
1799
1805
|
if (Wl(n) && Qo(() => n({
|
|
1800
|
-
absoluteIndex:
|
|
1801
|
-
seriesIndex:
|
|
1806
|
+
absoluteIndex: L.value + p.value.start,
|
|
1807
|
+
seriesIndex: L.value,
|
|
1802
1808
|
datapoint: pt.value,
|
|
1803
|
-
series:
|
|
1809
|
+
series: Ze.value,
|
|
1804
1810
|
bars: yt.value,
|
|
1805
|
-
lines:
|
|
1806
|
-
plots:
|
|
1811
|
+
lines: Pe.value,
|
|
1812
|
+
plots: ot.value,
|
|
1807
1813
|
config: t.value
|
|
1808
1814
|
})))
|
|
1809
1815
|
return n({
|
|
1810
|
-
absoluteIndex:
|
|
1811
|
-
seriesIndex:
|
|
1816
|
+
absoluteIndex: L.value + p.value.start,
|
|
1817
|
+
seriesIndex: L.value,
|
|
1812
1818
|
datapoint: pt.value,
|
|
1813
|
-
series:
|
|
1819
|
+
series: Ze.value,
|
|
1814
1820
|
bars: yt.value,
|
|
1815
|
-
lines:
|
|
1816
|
-
plots:
|
|
1821
|
+
lines: Pe.value,
|
|
1822
|
+
plots: ot.value,
|
|
1817
1823
|
config: t.value
|
|
1818
1824
|
});
|
|
1819
1825
|
if (e && e.text && t.value.chart.tooltip.showTimeLabel) {
|
|
1820
|
-
const a = al.value(
|
|
1826
|
+
const a = al.value(L.value + p.value.start, t.value.chart.tooltip.timeFormat);
|
|
1821
1827
|
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>`;
|
|
1822
1828
|
}
|
|
1823
1829
|
return pt.value.forEach((a) => {
|
|
@@ -1828,7 +1834,7 @@ const xn = {
|
|
|
1828
1834
|
i = `<svg viewBox="0 0 40 40" height="14" width="14">${rl.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="${rl.pattern ? `url(#pattern_${Z.value}_${a.slotAbsoluteIndex}` : a.color}" /></svg>`;
|
|
1829
1835
|
break;
|
|
1830
1836
|
case "line":
|
|
1831
|
-
!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="${
|
|
1837
|
+
!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="${dt({ 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="${dt({ 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="${dt({ 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="${dt({ 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="${dt({ 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="${eo({ plot: { x: 10, y: 8 }, radius: 4 })}" />`), i = `<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>`;
|
|
1832
1838
|
break;
|
|
1833
1839
|
case "plot":
|
|
1834
1840
|
if (!a.shape || !["star", "triangle", "square", "diamond", "pentagon", "hexagon"].includes(a.shape)) {
|
|
@@ -1840,27 +1846,27 @@ const xn = {
|
|
|
1840
1846
|
break;
|
|
1841
1847
|
}
|
|
1842
1848
|
if (a.shape === "triangle") {
|
|
1843
|
-
i = `<svg viewBox="0 0 12 12" height="14" width="14"><path d="${
|
|
1849
|
+
i = `<svg viewBox="0 0 12 12" height="14" width="14"><path d="${dt({ plot: { x: 6, y: 6 }, radius: 6, sides: 3, rotation: 0.52 }).path}" fill="${a.color}" stroke="${t.value.chart.tooltip.backgroundColor}" stroke-width="1" /></svg>`;
|
|
1844
1850
|
break;
|
|
1845
1851
|
}
|
|
1846
1852
|
if (a.shape === "square") {
|
|
1847
|
-
i = `<svg viewBox="0 0 12 12" height="14" width="14"><path d="${
|
|
1853
|
+
i = `<svg viewBox="0 0 12 12" height="14" width="14"><path d="${dt({ plot: { x: 6, y: 6 }, radius: 6, sides: 4, rotation: 0.8 }).path}" fill="${a.color}" stroke="${t.value.chart.tooltip.backgroundColor}" stroke-width="1" /></svg>`;
|
|
1848
1854
|
break;
|
|
1849
1855
|
}
|
|
1850
1856
|
if (a.shape === "diamond") {
|
|
1851
|
-
i = `<svg viewBox="0 0 12 12" height="14" width="14"><path d="${
|
|
1857
|
+
i = `<svg viewBox="0 0 12 12" height="14" width="14"><path d="${dt({ plot: { x: 6, y: 6 }, radius: 5, sides: 4, rotation: 0 }).path}" fill="${a.color}" stroke="${t.value.chart.tooltip.backgroundColor}" stroke-width="1" /></svg>`;
|
|
1852
1858
|
break;
|
|
1853
1859
|
}
|
|
1854
1860
|
if (a.shape === "pentagon") {
|
|
1855
|
-
i = `<svg viewBox="0 0 12 12" height="14" width="14"><path d="${
|
|
1861
|
+
i = `<svg viewBox="0 0 12 12" height="14" width="14"><path d="${dt({ plot: { x: 6, y: 6 }, radius: 5, sides: 5, rotation: 0.95 }).path}" fill="${a.color}" stroke="${t.value.chart.tooltip.backgroundColor}" stroke-width="1" /></svg>`;
|
|
1856
1862
|
break;
|
|
1857
1863
|
}
|
|
1858
1864
|
if (a.shape === "hexagon") {
|
|
1859
|
-
i = `<svg viewBox="0 0 12 12" height="14" width="14"><path d="${
|
|
1865
|
+
i = `<svg viewBox="0 0 12 12" height="14" width="14"><path d="${dt({ plot: { x: 6, y: 6 }, radius: 5, sides: 6, rotation: 0 }).path}" fill="${a.color}" stroke="${t.value.chart.tooltip.backgroundColor}" stroke-width="1" /></svg>`;
|
|
1860
1866
|
break;
|
|
1861
1867
|
}
|
|
1862
1868
|
}
|
|
1863
|
-
l += `<div style="display:flex;flex-direction:row; align-items:center;gap:3px;"><div style="width:20px">${i}</div> ${a.name}: <b>${t.value.chart.tooltip.showValue ?
|
|
1869
|
+
l += `<div style="display:flex;flex-direction:row; align-items:center;gap:3px;"><div style="width:20px">${i}</div> ${a.name}: <b>${t.value.chart.tooltip.showValue ? Le(
|
|
1864
1870
|
a.type === "line" ? t.value.line.labels.formatter : a.type === "bar" ? t.value.bar.labels.formatter : t.value.plot.labels.formatter,
|
|
1865
1871
|
a.value,
|
|
1866
1872
|
Qe({
|
|
@@ -1874,34 +1880,34 @@ const xn = {
|
|
|
1874
1880
|
v: W(Math.abs(a.value) / u * 100),
|
|
1875
1881
|
s: "%",
|
|
1876
1882
|
r: t.value.chart.tooltip.roundingPercentage
|
|
1877
|
-
})})` : ""}</div>`, t.value.chart.comments.showInTooltip && a.comments.length && a.comments.slice(p.value.start, p.value.end)[
|
|
1883
|
+
})})` : ""}</div>`, t.value.chart.comments.showInTooltip && a.comments.length && a.comments.slice(p.value.start, p.value.end)[L.value] && (l += `<div class="vue-data-ui-tooltip-comment" style="background:${a.color}20; padding: 6px; margin-bottom: 6px; border-left: 1px solid ${a.color}">${a.comments.slice(p.value.start, p.value.end)[L.value]}</div>`);
|
|
1878
1884
|
}
|
|
1879
1885
|
}), `<div style="border-radius:4px;padding:12px;font-variant-numeric: tabular-nums;color:${t.value.chart.tooltip.color}">${l}</div>`;
|
|
1880
|
-
}), Na =
|
|
1881
|
-
if (
|
|
1886
|
+
}), Na = x(() => {
|
|
1887
|
+
if (at.value.length === 0) return { head: [], body: [], config: {}, columnNames: [] };
|
|
1882
1888
|
const l = Ke.value.map((e) => ({
|
|
1883
1889
|
label: e.name,
|
|
1884
1890
|
color: e.color,
|
|
1885
1891
|
type: e.type
|
|
1886
1892
|
})), u = [];
|
|
1887
|
-
return
|
|
1893
|
+
return _e.value.forEach((e, n) => {
|
|
1888
1894
|
const a = t.value.table.useDefaultTimeFormat ? [e.text] : [al.value(n + p.value.start, t.value.table.timeFormat)];
|
|
1889
1895
|
Ke.value.forEach((i) => {
|
|
1890
1896
|
a.push(Ve(i.absoluteValues[n]) ? Number(i.absoluteValues[n].toFixed(t.value.table.rounding)) : "");
|
|
1891
1897
|
}), u.push(a);
|
|
1892
1898
|
}), { head: l, body: u };
|
|
1893
|
-
}),
|
|
1899
|
+
}), Ol = x(() => {
|
|
1894
1900
|
const l = t.value.table.showSum;
|
|
1895
1901
|
let u = [""].concat(Ke.value.map((i) => i.name));
|
|
1896
1902
|
l && (u = u.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>'));
|
|
1897
1903
|
let e = [];
|
|
1898
1904
|
for (let i = 0; i < T.value; i += 1) {
|
|
1899
|
-
const o = Ke.value.map((z) => z.absoluteValues[i] ?? 0).reduce((z,
|
|
1905
|
+
const o = Ke.value.map((z) => z.absoluteValues[i] ?? 0).reduce((z, B) => z + B, 0);
|
|
1900
1906
|
e.push(
|
|
1901
1907
|
[
|
|
1902
|
-
t.value.table.useDefaultTimeFormat ?
|
|
1908
|
+
t.value.table.useDefaultTimeFormat ? _e.value[i].text ?? "-" : al.value(i + p.value.start, t.value.table.timeFormat)
|
|
1903
1909
|
].concat(Ke.value.map(
|
|
1904
|
-
(z) =>
|
|
1910
|
+
(z) => Le(
|
|
1905
1911
|
z.type === "line" ? t.value.line.labels.formatter : z.type === "bar" ? t.value.bar.labels.formatter : t.value.plot.labels.formatter,
|
|
1906
1912
|
z.absoluteValues[i] ?? 0,
|
|
1907
1913
|
Qe({
|
|
@@ -1934,63 +1940,63 @@ const xn = {
|
|
|
1934
1940
|
l ? l(i) : on({ csvContent: i, title: t.value.chart.title.text || "vue-ui-xy" });
|
|
1935
1941
|
}
|
|
1936
1942
|
function Ra(l, u = null) {
|
|
1937
|
-
|
|
1943
|
+
Cl.value = l;
|
|
1938
1944
|
const e = Ke.value.map((n) => ({
|
|
1939
1945
|
name: n.name,
|
|
1940
1946
|
value: [null, void 0, NaN].includes(n.absoluteValues[u]) ? null : n.absoluteValues[u],
|
|
1941
1947
|
color: n.color,
|
|
1942
1948
|
type: n.type
|
|
1943
1949
|
}));
|
|
1944
|
-
l ? (
|
|
1950
|
+
l ? (L.value = u, t.value.events.datapointEnter && t.value.events.datapointEnter({ datapoint: e, seriesIndex: u + p.value.start })) : (L.value = null, t.value.events.datapointLeave && t.value.events.datapointLeave({ datapoint: e, seriesIndex: u + p.value.start }));
|
|
1945
1951
|
}
|
|
1946
|
-
function
|
|
1952
|
+
function Fa() {
|
|
1947
1953
|
k.value.showTable = !k.value.showTable;
|
|
1948
1954
|
}
|
|
1949
|
-
function
|
|
1955
|
+
function Pa() {
|
|
1950
1956
|
k.value.dataLabels.show = !k.value.dataLabels.show;
|
|
1951
1957
|
}
|
|
1952
|
-
function
|
|
1958
|
+
function Oa() {
|
|
1953
1959
|
k.value.showTooltip = !k.value.showTooltip;
|
|
1954
1960
|
}
|
|
1955
1961
|
function Ba(l) {
|
|
1956
|
-
|
|
1962
|
+
Re.value = l, hl.value += 1;
|
|
1957
1963
|
}
|
|
1958
1964
|
function Ha() {
|
|
1959
1965
|
if (!t.value.responsiveProportionalSizing) {
|
|
1960
|
-
|
|
1966
|
+
w.value.dataLabels = t.value.chart.grid.labels.fontSize, w.value.yAxis = t.value.chart.grid.labels.axis.fontSize, w.value.xAxis = t.value.chart.grid.labels.xAxisLabels.fontSize, w.value.plotLabels = t.value.chart.labels.fontSize, Fe.value.plot = t.value.plot.radius, Fe.value.line = t.value.line.radius;
|
|
1961
1967
|
return;
|
|
1962
1968
|
}
|
|
1963
|
-
|
|
1969
|
+
w.value.dataLabels = nl({
|
|
1964
1970
|
relator: ye.value,
|
|
1965
1971
|
adjuster: 400,
|
|
1966
1972
|
source: t.value.chart.grid.labels.fontSize,
|
|
1967
1973
|
threshold: 10,
|
|
1968
1974
|
fallback: 10
|
|
1969
|
-
}),
|
|
1975
|
+
}), w.value.yAxis = nl({
|
|
1970
1976
|
relator: ee.value,
|
|
1971
1977
|
adjuster: 1e3,
|
|
1972
1978
|
source: t.value.chart.grid.labels.axis.fontSize,
|
|
1973
1979
|
threshold: 10,
|
|
1974
1980
|
fallback: 10
|
|
1975
|
-
}),
|
|
1981
|
+
}), w.value.xAxis = nl({
|
|
1976
1982
|
relator: ee.value,
|
|
1977
1983
|
adjuster: 1e3,
|
|
1978
1984
|
source: t.value.chart.grid.labels.xAxisLabels.fontSize,
|
|
1979
1985
|
threshold: 10,
|
|
1980
1986
|
fallback: 10
|
|
1981
|
-
}),
|
|
1987
|
+
}), w.value.plotLabels = nl({
|
|
1982
1988
|
relator: ee.value,
|
|
1983
1989
|
adjuster: 800,
|
|
1984
1990
|
source: t.value.chart.labels.fontSize,
|
|
1985
1991
|
threshold: 10,
|
|
1986
1992
|
fallback: 10
|
|
1987
|
-
}),
|
|
1993
|
+
}), Fe.value.plot = nl({
|
|
1988
1994
|
relator: ee.value,
|
|
1989
1995
|
adjuster: 800,
|
|
1990
1996
|
source: t.value.plot.radius,
|
|
1991
1997
|
threshold: 1,
|
|
1992
1998
|
fallback: 1
|
|
1993
|
-
}),
|
|
1999
|
+
}), Fe.value.line = nl({
|
|
1994
2000
|
relator: ee.value,
|
|
1995
2001
|
adjuster: 800,
|
|
1996
2002
|
source: t.value.line.radius,
|
|
@@ -2002,46 +2008,46 @@ const xn = {
|
|
|
2002
2008
|
to(d.dataset) ? (oa({
|
|
2003
2009
|
componentName: "VueUiXy",
|
|
2004
2010
|
type: "dataset",
|
|
2005
|
-
debug:
|
|
2006
|
-
}),
|
|
2011
|
+
debug: _t.value
|
|
2012
|
+
}), ct.value = !0) : d.dataset.forEach((u, e) => {
|
|
2007
2013
|
[null, void 0].includes(u.name) && (oa({
|
|
2008
2014
|
componentName: "VueUiXy",
|
|
2009
2015
|
type: "datasetSerieAttribute",
|
|
2010
2016
|
property: "name (string)",
|
|
2011
2017
|
index: e,
|
|
2012
|
-
debug:
|
|
2013
|
-
}),
|
|
2014
|
-
}),
|
|
2018
|
+
debug: _t.value
|
|
2019
|
+
}), ct.value = !0);
|
|
2020
|
+
}), _t.value && d.dataset.forEach((u) => {
|
|
2015
2021
|
u.series.forEach((e, n) => {
|
|
2016
2022
|
Hl(e) || console.warn(`VueUiXy has detected an unsafe value in your dataset:
|
|
2017
2023
|
-----> The serie '${u.name}' contains the value '${e}' at index ${n}.
|
|
2018
2024
|
'${e}' was converted to null to allow the chart to display.`);
|
|
2019
2025
|
});
|
|
2020
|
-
}), to(d.dataset) || (
|
|
2026
|
+
}), to(d.dataset) || (ct.value = t.value.loading), gt.value = t.value.chart.userOptions.showOnChartHover, ml.value = t.value.chart.userOptions.keepStateOnChartLeave, Kt.value = !t.value.chart.userOptions.showOnChartHover, xl();
|
|
2021
2027
|
const l = 12;
|
|
2022
2028
|
if (t.value.responsive) {
|
|
2023
|
-
const e =
|
|
2024
|
-
|
|
2029
|
+
const e = xe.value.parentNode;
|
|
2030
|
+
Me.value && (Me.value.unobserve(vl.value), Me.value.disconnect());
|
|
2025
2031
|
const { height: n, width: a } = e.getBoundingClientRect();
|
|
2026
2032
|
let i = null, o = 0;
|
|
2027
2033
|
t.value.chart.title.show && pe.value && (i = pe.value, o = i.getBoundingClientRect().height);
|
|
2028
|
-
let z = null,
|
|
2029
|
-
t.value.chart.zoom.show &&
|
|
2030
|
-
let E = null,
|
|
2031
|
-
t.value.chart.legend.show &&
|
|
2034
|
+
let z = null, B = 0;
|
|
2035
|
+
t.value.chart.zoom.show && ze.value > 6 && Qt.value && He.value && He.value.$el && (z = He.value.$el, B = z.getBoundingClientRect().height);
|
|
2036
|
+
let E = null, $ = 0;
|
|
2037
|
+
t.value.chart.legend.show && st.value && (E = st.value, $ = E.getBoundingClientRect().height);
|
|
2032
2038
|
let I = 0;
|
|
2033
|
-
|
|
2039
|
+
It.value && (I = It.value.getBoundingClientRect().height);
|
|
2034
2040
|
let K = 0;
|
|
2035
|
-
|
|
2041
|
+
Nt.value && (K = Nt.value.getBoundingClientRect().height), ye.value = n - o - $ - B - I - K - l, ee.value = a, rt.value = `0 0 ${ee.value < 0 ? 10 : ee.value} ${ye.value < 0 ? 10 : ye.value}`, Ha();
|
|
2036
2042
|
const M = new ResizeObserver((D) => {
|
|
2037
2043
|
for (const R of D)
|
|
2038
|
-
t.value.chart.title.show && pe.value ? o = pe.value.getBoundingClientRect().height : o = 0,
|
|
2039
|
-
ye.value = R.contentRect.height - o -
|
|
2044
|
+
t.value.chart.title.show && pe.value ? o = pe.value.getBoundingClientRect().height : o = 0, He.value && He.value.$el ? B = He.value.$el.getBoundingClientRect().height : B = 0, st.value ? $ = st.value.getBoundingClientRect().height : $ = 0, It.value ? I = It.value.getBoundingClientRect().height : I = 0, Nt.value ? K = Nt.value.getBoundingClientRect().height : K = 0, requestAnimationFrame(() => {
|
|
2045
|
+
ye.value = R.contentRect.height - o - $ - B - I - K - l, ee.value = R.contentBoxSize[0].inlineSize, rt.value = `0 0 ${ee.value < 0 ? 10 : ee.value} ${ye.value < 0 ? 10 : ye.value}`, Ha();
|
|
2040
2046
|
});
|
|
2041
2047
|
});
|
|
2042
|
-
|
|
2048
|
+
Me.value = M, vl.value = e, M.observe(e);
|
|
2043
2049
|
} else
|
|
2044
|
-
ye.value = t.value.chart.height, ee.value = t.value.chart.width,
|
|
2050
|
+
ye.value = t.value.chart.height, ee.value = t.value.chart.width, w.value.dataLabels = t.value.chart.grid.labels.fontSize, w.value.yAxis = t.value.chart.grid.labels.axis.fontSize, w.value.xAxis = t.value.chart.grid.labels.xAxisLabels.fontSize, w.value.plotLabels = t.value.chart.labels.fontSize, Fe.value.plot = t.value.plot.radius, Fe.value.line = t.value.line.radius, rt.value = `0 0 ${ee.value} ${ye.value}`;
|
|
2045
2051
|
}
|
|
2046
2052
|
function Va(l) {
|
|
2047
2053
|
ke.value = {
|
|
@@ -2051,30 +2057,30 @@ const xn = {
|
|
|
2051
2057
|
}
|
|
2052
2058
|
ul(() => {
|
|
2053
2059
|
la(), Tl(), document.addEventListener("mousemove", Va, { passive: !0 }), document.addEventListener("scroll", va, { passive: !0 });
|
|
2054
|
-
}),
|
|
2055
|
-
document.removeEventListener("scroll", va, { passive: !0 }), document.removeEventListener("mousemove", Va, { passive: !0 }),
|
|
2060
|
+
}), Wt(() => {
|
|
2061
|
+
document.removeEventListener("scroll", va, { passive: !0 }), document.removeEventListener("mousemove", Va, { passive: !0 }), Me.value && (Me.value.unobserve(vl.value), Me.value.disconnect(), Me.value = null);
|
|
2056
2062
|
}), dn({
|
|
2057
|
-
timeLabelsEls:
|
|
2058
|
-
timeLabels:
|
|
2063
|
+
timeLabelsEls: ht,
|
|
2064
|
+
timeLabels: _e,
|
|
2059
2065
|
slicer: p,
|
|
2060
2066
|
configRef: t,
|
|
2061
2067
|
rotationPath: ["chart", "grid", "labels", "xAxisLabels", "rotation"],
|
|
2062
2068
|
autoRotatePath: ["chart", "grid", "labels", "xAxisLabels", "autoRotate", "enable"],
|
|
2063
|
-
isAutoSize:
|
|
2069
|
+
isAutoSize: X,
|
|
2064
2070
|
height: ye,
|
|
2065
2071
|
width: ee,
|
|
2066
2072
|
rotation: t.value.chart.grid.labels.xAxisLabels.autoRotate.angle
|
|
2067
2073
|
});
|
|
2068
|
-
const Bl = g(!1), Ea = g(null), Da = g(200), zo =
|
|
2069
|
-
() =>
|
|
2074
|
+
const Bl = g(!1), Ea = g(null), Da = g(200), zo = x(
|
|
2075
|
+
() => L.value ?? O.value ?? 0
|
|
2070
2076
|
);
|
|
2071
2077
|
function To() {
|
|
2072
2078
|
const l = Math.ceil(Da.value || 200);
|
|
2073
2079
|
return Math.min(Math.max(l, 1), 200);
|
|
2074
2080
|
}
|
|
2075
2081
|
function Io() {
|
|
2076
|
-
const l = To(), u = 200, e = Math.max(1, T.value), n = c.value.width / e, i = c.value.left + zo.value * n + n / 2 - l / 2 - (u - l) / 2, o = c.value.left - (u - l) / 2, z = c.value.right - (u + l) / 2,
|
|
2077
|
-
return W(
|
|
2082
|
+
const l = To(), u = 200, e = Math.max(1, T.value), n = c.value.width / e, i = c.value.left + zo.value * n + n / 2 - l / 2 - (u - l) / 2, o = c.value.left - (u - l) / 2, z = c.value.right - (u + l) / 2, B = Math.max(o, Math.min(i, z));
|
|
2083
|
+
return W(B);
|
|
2078
2084
|
}
|
|
2079
2085
|
ul(() => {
|
|
2080
2086
|
let l = null, u = null;
|
|
@@ -2087,22 +2093,22 @@ const xn = {
|
|
|
2087
2093
|
o && e(o.contentRect.width || 200);
|
|
2088
2094
|
}), a = Ua((i) => {
|
|
2089
2095
|
const o = Ea.value;
|
|
2090
|
-
l && l !== o && (n.unobserve(l), l = null), o && o !== l && (
|
|
2096
|
+
l && l !== o && (n.unobserve(l), l = null), o && o !== l && (Xt(() => {
|
|
2091
2097
|
o.offsetParent !== null && e(o.offsetWidth || o.getBoundingClientRect().width || 200);
|
|
2092
2098
|
}), n.observe(o), l = o), i(() => {
|
|
2093
2099
|
l && (n.unobserve(l), l = null);
|
|
2094
2100
|
});
|
|
2095
2101
|
});
|
|
2096
|
-
|
|
2102
|
+
Wt(() => {
|
|
2097
2103
|
try {
|
|
2098
2104
|
l && n.unobserve(l), n.disconnect(), a();
|
|
2099
2105
|
} catch {
|
|
2100
2106
|
}
|
|
2101
2107
|
});
|
|
2102
2108
|
});
|
|
2103
|
-
const No =
|
|
2104
|
-
if ([null, void 0].includes(
|
|
2105
|
-
const l = (
|
|
2109
|
+
const No = x(() => {
|
|
2110
|
+
if ([null, void 0].includes(L.value) && [null, void 0].includes(O.value)) return "";
|
|
2111
|
+
const l = (L.value != null ? L.value : 0) || (O.value != null ? O.value : 0), u = t.value.chart.timeTag.customFormat;
|
|
2106
2112
|
if (Bl.value = !1, Wl(u))
|
|
2107
2113
|
try {
|
|
2108
2114
|
const e = u({
|
|
@@ -2110,8 +2116,8 @@ const xn = {
|
|
|
2110
2116
|
seriesIndex: l,
|
|
2111
2117
|
datapoint: pt.value,
|
|
2112
2118
|
bars: yt.value,
|
|
2113
|
-
lines:
|
|
2114
|
-
plots:
|
|
2119
|
+
lines: Pe.value,
|
|
2120
|
+
plots: ot.value,
|
|
2115
2121
|
config: t.value
|
|
2116
2122
|
});
|
|
2117
2123
|
if (typeof e == "string")
|
|
@@ -2120,19 +2126,19 @@ const xn = {
|
|
|
2120
2126
|
console.warn("Custom format cannot be applied on timeTag."), Bl.value = !1;
|
|
2121
2127
|
}
|
|
2122
2128
|
if (!Bl.value)
|
|
2123
|
-
return [null, void 0].includes(
|
|
2129
|
+
return [null, void 0].includes(_e.value[l]) ? "" : t.value.chart.grid.labels.xAxisLabels.datetimeFormatter.enable && !t.value.chart.timeTag.useDefaultFormat ? al.value(l + p.value.start, t.value.chart.timeTag.timeFormat) : _e.value[l].text;
|
|
2124
2130
|
});
|
|
2125
|
-
|
|
2126
|
-
Array.isArray(l) && l.length > 0 && (
|
|
2131
|
+
it(() => d.dataset, (l) => {
|
|
2132
|
+
Array.isArray(l) && l.length > 0 && (ct.value = !1), ze.value = Math.max(...he.value.map((u) => Se(u.series).length)), p.value = {
|
|
2127
2133
|
start: 0,
|
|
2128
|
-
end:
|
|
2129
|
-
},
|
|
2130
|
-
}, { deep: !0 }),
|
|
2131
|
-
|
|
2134
|
+
end: ze.value
|
|
2135
|
+
}, St.value += 1, Zt.value += 1, vt();
|
|
2136
|
+
}, { deep: !0 }), it(() => d.config, (l) => {
|
|
2137
|
+
oe.value || (t.value = bl()), la(), fl.value += 1, qt.value += 1, xl(), vt();
|
|
2132
2138
|
}, { deep: !0 });
|
|
2133
2139
|
const aa = g(!1);
|
|
2134
2140
|
function Wa() {
|
|
2135
|
-
const l =
|
|
2141
|
+
const l = xe.value?.parentNode;
|
|
2136
2142
|
if (!l) {
|
|
2137
2143
|
aa.value = !1;
|
|
2138
2144
|
return;
|
|
@@ -2143,24 +2149,24 @@ const xn = {
|
|
|
2143
2149
|
ul(() => {
|
|
2144
2150
|
Wa();
|
|
2145
2151
|
const l = new ResizeObserver(() => {
|
|
2146
|
-
Wa(), aa.value && (la(),
|
|
2152
|
+
Wa(), aa.value && (la(), vt(), Tl());
|
|
2147
2153
|
});
|
|
2148
|
-
|
|
2149
|
-
}),
|
|
2150
|
-
|
|
2154
|
+
xe.value?.parentNode && l.observe(xe.value.parentNode);
|
|
2155
|
+
}), it(t, () => {
|
|
2156
|
+
xl();
|
|
2151
2157
|
}, { immediate: !0 });
|
|
2152
|
-
const
|
|
2158
|
+
const Sl = x(() => {
|
|
2153
2159
|
const l = t.value.table.useDialog && !t.value.showTable, u = k.value.showTable;
|
|
2154
2160
|
return {
|
|
2155
|
-
component: l ?
|
|
2161
|
+
component: l ? Gt : bn,
|
|
2156
2162
|
title: `${t.value.chart.title.text}${t.value.chart.title.subtitle.text ? `: ${t.value.chart.title.subtitle.text}` : ""}`,
|
|
2157
2163
|
props: l ? {
|
|
2158
2164
|
backgroundColor: t.value.table.th.backgroundColor,
|
|
2159
2165
|
color: t.value.table.th.color,
|
|
2160
2166
|
headerColor: t.value.table.th.color,
|
|
2161
2167
|
headerBg: t.value.table.th.backgroundColor,
|
|
2162
|
-
isFullscreen:
|
|
2163
|
-
fullscreenParent:
|
|
2168
|
+
isFullscreen: Re.value,
|
|
2169
|
+
fullscreenParent: xe.value,
|
|
2164
2170
|
forcedWidth: Math.min(800, window.innerWidth * 0.8)
|
|
2165
2171
|
} : {
|
|
2166
2172
|
hideDetails: !0,
|
|
@@ -2179,8 +2185,8 @@ const xn = {
|
|
|
2179
2185
|
}
|
|
2180
2186
|
};
|
|
2181
2187
|
});
|
|
2182
|
-
|
|
2183
|
-
t.value.showTable || (l && t.value.table.useDialog &&
|
|
2188
|
+
it(() => k.value.showTable, (l) => {
|
|
2189
|
+
t.value.showTable || (l && t.value.table.useDialog && bt.value ? bt.value.open() : bt.value && bt.value.close && bt.value.close());
|
|
2184
2190
|
});
|
|
2185
2191
|
function Xa() {
|
|
2186
2192
|
k.value.showTable = !1, j.value && j.value.setTableIconState(!1);
|
|
@@ -2188,36 +2194,36 @@ const xn = {
|
|
|
2188
2194
|
return Gl({
|
|
2189
2195
|
getData: yo,
|
|
2190
2196
|
getImage: ko,
|
|
2191
|
-
generatePdf:
|
|
2192
|
-
generateImage:
|
|
2197
|
+
generatePdf: h,
|
|
2198
|
+
generateImage: S,
|
|
2193
2199
|
generateCsv: ta,
|
|
2194
2200
|
toggleStack: ba,
|
|
2195
|
-
toggleTable:
|
|
2196
|
-
toggleLabels:
|
|
2197
|
-
toggleTooltip:
|
|
2201
|
+
toggleTable: Fa,
|
|
2202
|
+
toggleLabels: Pa,
|
|
2203
|
+
toggleTooltip: Oa,
|
|
2198
2204
|
toggleAnnotator: Kl,
|
|
2199
2205
|
toggleFullscreen: Ba
|
|
2200
2206
|
}), (l, u) => (s(), r("div", {
|
|
2201
2207
|
id: `vue-ui-xy_${Z.value}`,
|
|
2202
|
-
class: Xe(`vue-ui-xy ${
|
|
2208
|
+
class: Xe(`vue-ui-xy ${Re.value ? "vue-data-ui-wrapper-fullscreen" : ""} ${t.value.useCssAnimation ? "" : "vue-ui-dna"}`),
|
|
2203
2209
|
ref_key: "chart",
|
|
2204
|
-
ref:
|
|
2205
|
-
style:
|
|
2210
|
+
ref: xe,
|
|
2211
|
+
style: _(`background:${t.value.chart.backgroundColor}; color:${t.value.chart.color};width:100%;font-family:${t.value.chart.fontFamily};${t.value.responsive ? "height: 100%" : ""}`),
|
|
2206
2212
|
onMouseenter: u[10] || (u[10] = () => ha(!0)),
|
|
2207
2213
|
onMouseleave: u[11] || (u[11] = () => ha(!1))
|
|
2208
2214
|
}, [
|
|
2209
|
-
t.value.chart.userOptions.buttons.annotator &&
|
|
2215
|
+
t.value.chart.userOptions.buttons.annotator && Ae.value ? (s(), Je(v(sl), {
|
|
2210
2216
|
key: 0,
|
|
2211
|
-
svgRef:
|
|
2217
|
+
svgRef: Ae.value,
|
|
2212
2218
|
backgroundColor: t.value.chart.backgroundColor,
|
|
2213
2219
|
color: t.value.chart.color,
|
|
2214
|
-
active:
|
|
2220
|
+
active: Ce.value,
|
|
2215
2221
|
onClose: Kl
|
|
2216
2222
|
}, null, 8, ["svgRef", "backgroundColor", "color", "active"])) : f("", !0),
|
|
2217
2223
|
So.value ? (s(), r("div", {
|
|
2218
2224
|
key: 1,
|
|
2219
2225
|
ref_key: "noTitle",
|
|
2220
|
-
ref:
|
|
2226
|
+
ref: Nt,
|
|
2221
2227
|
class: "vue-data-ui-no-title-space",
|
|
2222
2228
|
style: "height:36px; width: 100%; background:transparent"
|
|
2223
2229
|
}, null, 512)) : f("", !0),
|
|
@@ -2226,10 +2232,10 @@ const xn = {
|
|
|
2226
2232
|
ref_key: "chartTitle",
|
|
2227
2233
|
ref: pe,
|
|
2228
2234
|
class: "vue-ui-xy-title",
|
|
2229
|
-
style:
|
|
2235
|
+
style: _(`font-family:${t.value.chart.fontFamily}`)
|
|
2230
2236
|
}, [
|
|
2231
2237
|
(s(), Je(fn, {
|
|
2232
|
-
key: `title_${
|
|
2238
|
+
key: `title_${fl.value}`,
|
|
2233
2239
|
config: {
|
|
2234
2240
|
title: {
|
|
2235
2241
|
cy: "xy-div-title",
|
|
@@ -2245,14 +2251,14 @@ const xn = {
|
|
|
2245
2251
|
y("div", {
|
|
2246
2252
|
id: `legend-top-${Z.value}`
|
|
2247
2253
|
}, null, 8, En),
|
|
2248
|
-
t.value.chart.userOptions.show && (
|
|
2254
|
+
t.value.chart.userOptions.show && (ml.value || Kt.value) ? (s(), Je(v(de), {
|
|
2249
2255
|
ref_key: "userOptionsRef",
|
|
2250
2256
|
ref: j,
|
|
2251
2257
|
key: `user_options_${hl.value}`,
|
|
2252
2258
|
backgroundColor: t.value.chart.backgroundColor,
|
|
2253
2259
|
color: t.value.chart.color,
|
|
2254
|
-
isPrinting: v(
|
|
2255
|
-
isImaging: v(
|
|
2260
|
+
isPrinting: v(ie),
|
|
2261
|
+
isImaging: v(m),
|
|
2256
2262
|
uid: Z.value,
|
|
2257
2263
|
hasTooltip: t.value.chart.userOptions.buttons.tooltip && t.value.chart.tooltip.show,
|
|
2258
2264
|
hasPdf: t.value.chart.userOptions.buttons.pdf,
|
|
@@ -2263,108 +2269,108 @@ const xn = {
|
|
|
2263
2269
|
hasStack: N.dataset.length > 1 && t.value.chart.userOptions.buttons.stack,
|
|
2264
2270
|
hasFullscreen: t.value.chart.userOptions.buttons.fullscreen,
|
|
2265
2271
|
isStacked: k.value.isStacked,
|
|
2266
|
-
isFullscreen:
|
|
2272
|
+
isFullscreen: Re.value,
|
|
2267
2273
|
chartElement: l.$refs.chart,
|
|
2268
2274
|
position: t.value.chart.userOptions.position,
|
|
2269
2275
|
isTooltip: k.value.showTooltip,
|
|
2270
2276
|
titles: { ...t.value.chart.userOptions.buttonTitles },
|
|
2271
2277
|
hasAnnotator: t.value.chart.userOptions.buttons.annotator,
|
|
2272
|
-
isAnnotation:
|
|
2278
|
+
isAnnotation: Ce.value,
|
|
2273
2279
|
callbacks: t.value.chart.userOptions.callbacks,
|
|
2274
2280
|
tableDialog: t.value.table.useDialog,
|
|
2275
2281
|
printScale: t.value.chart.userOptions.print.scale,
|
|
2276
2282
|
onToggleFullscreen: Ba,
|
|
2277
|
-
onGeneratePdf: v(
|
|
2283
|
+
onGeneratePdf: v(h),
|
|
2278
2284
|
onGenerateCsv: ta,
|
|
2279
|
-
onGenerateImage: v(
|
|
2280
|
-
onToggleTable:
|
|
2281
|
-
onToggleLabels:
|
|
2285
|
+
onGenerateImage: v(S),
|
|
2286
|
+
onToggleTable: Fa,
|
|
2287
|
+
onToggleLabels: Pa,
|
|
2282
2288
|
onToggleStack: ba,
|
|
2283
|
-
onToggleTooltip:
|
|
2289
|
+
onToggleTooltip: Oa,
|
|
2284
2290
|
onToggleAnnotator: Kl,
|
|
2285
|
-
style:
|
|
2286
|
-
visibility:
|
|
2291
|
+
style: _({
|
|
2292
|
+
visibility: ml.value ? Kt.value ? "visible" : "hidden" : "visible"
|
|
2287
2293
|
})
|
|
2288
2294
|
}, qa({ _: 2 }, [
|
|
2289
2295
|
l.$slots.menuIcon ? {
|
|
2290
2296
|
name: "menuIcon",
|
|
2291
|
-
fn:
|
|
2292
|
-
Q(l.$slots, "menuIcon", zt(
|
|
2297
|
+
fn: be(({ isOpen: e, color: n }) => [
|
|
2298
|
+
Q(l.$slots, "menuIcon", At(zt({ isOpen: e, color: n })), void 0, !0)
|
|
2293
2299
|
]),
|
|
2294
2300
|
key: "0"
|
|
2295
2301
|
} : void 0,
|
|
2296
2302
|
l.$slots.optionTooltip ? {
|
|
2297
2303
|
name: "optionTooltip",
|
|
2298
|
-
fn:
|
|
2304
|
+
fn: be(() => [
|
|
2299
2305
|
Q(l.$slots, "optionTooltip", {}, void 0, !0)
|
|
2300
2306
|
]),
|
|
2301
2307
|
key: "1"
|
|
2302
2308
|
} : void 0,
|
|
2303
2309
|
l.$slots.optionPdf ? {
|
|
2304
2310
|
name: "optionPdf",
|
|
2305
|
-
fn:
|
|
2311
|
+
fn: be(() => [
|
|
2306
2312
|
Q(l.$slots, "optionPdf", {}, void 0, !0)
|
|
2307
2313
|
]),
|
|
2308
2314
|
key: "2"
|
|
2309
2315
|
} : void 0,
|
|
2310
2316
|
l.$slots.optionCsv ? {
|
|
2311
2317
|
name: "optionCsv",
|
|
2312
|
-
fn:
|
|
2318
|
+
fn: be(() => [
|
|
2313
2319
|
Q(l.$slots, "optionCsv", {}, void 0, !0)
|
|
2314
2320
|
]),
|
|
2315
2321
|
key: "3"
|
|
2316
2322
|
} : void 0,
|
|
2317
2323
|
l.$slots.optionImg ? {
|
|
2318
2324
|
name: "optionImg",
|
|
2319
|
-
fn:
|
|
2325
|
+
fn: be(() => [
|
|
2320
2326
|
Q(l.$slots, "optionImg", {}, void 0, !0)
|
|
2321
2327
|
]),
|
|
2322
2328
|
key: "4"
|
|
2323
2329
|
} : void 0,
|
|
2324
2330
|
l.$slots.optionTable ? {
|
|
2325
2331
|
name: "optionTable",
|
|
2326
|
-
fn:
|
|
2332
|
+
fn: be(() => [
|
|
2327
2333
|
Q(l.$slots, "optionTable", {}, void 0, !0)
|
|
2328
2334
|
]),
|
|
2329
2335
|
key: "5"
|
|
2330
2336
|
} : void 0,
|
|
2331
2337
|
l.$slots.optionLabels ? {
|
|
2332
2338
|
name: "optionLabels",
|
|
2333
|
-
fn:
|
|
2339
|
+
fn: be(() => [
|
|
2334
2340
|
Q(l.$slots, "optionLabels", {}, void 0, !0)
|
|
2335
2341
|
]),
|
|
2336
2342
|
key: "6"
|
|
2337
2343
|
} : void 0,
|
|
2338
2344
|
l.$slots.optionStack ? {
|
|
2339
2345
|
name: "optionStack",
|
|
2340
|
-
fn:
|
|
2346
|
+
fn: be(() => [
|
|
2341
2347
|
Q(l.$slots, "optionStack", {}, void 0, !0)
|
|
2342
2348
|
]),
|
|
2343
2349
|
key: "7"
|
|
2344
2350
|
} : void 0,
|
|
2345
2351
|
l.$slots.optionFullscreen ? {
|
|
2346
2352
|
name: "optionFullscreen",
|
|
2347
|
-
fn:
|
|
2348
|
-
Q(l.$slots, "optionFullscreen", zt(
|
|
2353
|
+
fn: be(({ toggleFullscreen: e, isFullscreen: n }) => [
|
|
2354
|
+
Q(l.$slots, "optionFullscreen", At(zt({ toggleFullscreen: e, isFullscreen: n })), void 0, !0)
|
|
2349
2355
|
]),
|
|
2350
2356
|
key: "8"
|
|
2351
2357
|
} : void 0,
|
|
2352
2358
|
l.$slots.optionAnnotator ? {
|
|
2353
2359
|
name: "optionAnnotator",
|
|
2354
|
-
fn:
|
|
2355
|
-
Q(l.$slots, "optionAnnotator", zt(
|
|
2360
|
+
fn: be(({ toggleAnnotator: e, isAnnotator: n }) => [
|
|
2361
|
+
Q(l.$slots, "optionAnnotator", At(zt({ toggleAnnotator: e, isAnnotator: n })), void 0, !0)
|
|
2356
2362
|
]),
|
|
2357
2363
|
key: "9"
|
|
2358
2364
|
} : void 0
|
|
2359
2365
|
]), 1032, ["backgroundColor", "color", "isPrinting", "isImaging", "uid", "hasTooltip", "hasPdf", "hasXls", "hasImg", "hasLabel", "hasTable", "hasStack", "hasFullscreen", "isStacked", "isFullscreen", "chartElement", "position", "isTooltip", "titles", "hasAnnotator", "isAnnotation", "callbacks", "tableDialog", "printScale", "onGeneratePdf", "onGenerateImage", "style"])) : f("", !0),
|
|
2360
2366
|
(s(), r("svg", {
|
|
2361
2367
|
ref_key: "svgRef",
|
|
2362
|
-
ref:
|
|
2368
|
+
ref: Ae,
|
|
2363
2369
|
xmlns: "http://www.w3.org/2000/svg",
|
|
2364
|
-
class: Xe([{ "vue-data-ui-fullscreen--on":
|
|
2370
|
+
class: Xe([{ "vue-data-ui-fullscreen--on": Re.value, "vue-data-ui-fulscreen--off": !Re.value }, "vue-ui-xy-svg vue-data-ui-svg"]),
|
|
2365
2371
|
width: "100%",
|
|
2366
|
-
viewBox:
|
|
2367
|
-
style:
|
|
2372
|
+
viewBox: rt.value,
|
|
2373
|
+
style: _({
|
|
2368
2374
|
background: "transparent",
|
|
2369
2375
|
color: t.value.chart.color,
|
|
2370
2376
|
fontFamily: t.value.chart.fontFamily
|
|
@@ -2382,7 +2388,7 @@ const xn = {
|
|
|
2382
2388
|
ref: ql,
|
|
2383
2389
|
class: "vue-data-ui-g"
|
|
2384
2390
|
}, [
|
|
2385
|
-
|
|
2391
|
+
Dt(v(Yt)),
|
|
2386
2392
|
l.$slots["chart-background"] ? (s(), r("foreignObject", {
|
|
2387
2393
|
key: 0,
|
|
2388
2394
|
x: c.value.left + te.value < 0 ? 0 : c.value.left + te.value,
|
|
@@ -2408,8 +2414,8 @@ const xn = {
|
|
|
2408
2414
|
"stroke-linecap": "round",
|
|
2409
2415
|
style: { animation: "none !important" }
|
|
2410
2416
|
}, null, 8, Gn)) : f("", !0),
|
|
2411
|
-
k.value.useIndividualScale ? t.value.chart.grid.showHorizontalLines ? (s(!0), r(
|
|
2412
|
-
e.id ===
|
|
2417
|
+
k.value.useIndividualScale ? t.value.chart.grid.showHorizontalLines ? (s(!0), r(b, { key: 2 }, C(wl.value, (e) => (s(), r("g", null, [
|
|
2418
|
+
e.id === P.value && e.yLabels.length ? (s(!0), r(b, { key: 0 }, C(e.yLabels, (n) => (s(), r("line", {
|
|
2413
2419
|
x1: c.value.left + te.value,
|
|
2414
2420
|
x2: c.value.right - te.value,
|
|
2415
2421
|
y1: v(q)(n.y),
|
|
@@ -2418,7 +2424,7 @@ const xn = {
|
|
|
2418
2424
|
"stroke-width": 0.5,
|
|
2419
2425
|
"stroke-linecap": "round",
|
|
2420
2426
|
style: { animation: "none !important" }
|
|
2421
|
-
}, null, 8, Kn))), 256)) : e.yLabels.length ? (s(!0), r(
|
|
2427
|
+
}, null, 8, Kn))), 256)) : e.yLabels.length ? (s(!0), r(b, { key: 1 }, C(e.yLabels, (n) => (s(), r("line", {
|
|
2422
2428
|
x1: c.value.left + te.value,
|
|
2423
2429
|
x2: c.value.right - te.value,
|
|
2424
2430
|
y1: v(q)(n.y),
|
|
@@ -2428,7 +2434,7 @@ const xn = {
|
|
|
2428
2434
|
"stroke-linecap": "round",
|
|
2429
2435
|
style: { animation: "none !important" }
|
|
2430
2436
|
}, null, 8, Jn))), 256)) : f("", !0)
|
|
2431
|
-
]))), 256)) : f("", !0) : (s(), r(
|
|
2437
|
+
]))), 256)) : f("", !0) : (s(), r(b, { key: 1 }, [
|
|
2432
2438
|
t.value.chart.grid.labels.yAxis.showBaseline ? (s(), r("line", {
|
|
2433
2439
|
key: 0,
|
|
2434
2440
|
stroke: t.value.chart.grid.stroke,
|
|
@@ -2441,7 +2447,7 @@ const xn = {
|
|
|
2441
2447
|
style: { animation: "none !important" }
|
|
2442
2448
|
}, null, 8, Un)) : f("", !0),
|
|
2443
2449
|
t.value.chart.grid.showHorizontalLines ? (s(), r("g", qn, [
|
|
2444
|
-
(s(!0), r(
|
|
2450
|
+
(s(!0), r(b, null, C(Ma.value, (e) => (s(), r("line", {
|
|
2445
2451
|
x1: c.value.left + te.value,
|
|
2446
2452
|
x2: c.value.right,
|
|
2447
2453
|
y1: v(q)(e.y),
|
|
@@ -2472,7 +2478,7 @@ const xn = {
|
|
|
2472
2478
|
}, null, 8, tu)
|
|
2473
2479
|
])) : f("", !0)
|
|
2474
2480
|
]),
|
|
2475
|
-
(s(!0), r(
|
|
2481
|
+
(s(!0), r(b, null, C(yt.value, (e, n) => (s(), r("defs", {
|
|
2476
2482
|
key: `def_rect_${n}`
|
|
2477
2483
|
}, [
|
|
2478
2484
|
y("linearGradient", {
|
|
@@ -2486,11 +2492,11 @@ const xn = {
|
|
|
2486
2492
|
}, null, 8, au),
|
|
2487
2493
|
y("stop", {
|
|
2488
2494
|
offset: "62%",
|
|
2489
|
-
"stop-color": `${v(
|
|
2495
|
+
"stop-color": `${v(Et)(e.color, 0.02)}`
|
|
2490
2496
|
}, null, 8, ou),
|
|
2491
2497
|
y("stop", {
|
|
2492
2498
|
offset: "100%",
|
|
2493
|
-
"stop-color": `${v(
|
|
2499
|
+
"stop-color": `${v(Et)(e.color, 0.05)}`
|
|
2494
2500
|
}, null, 8, nu)
|
|
2495
2501
|
], 8, lu),
|
|
2496
2502
|
y("linearGradient", {
|
|
@@ -2500,11 +2506,11 @@ const xn = {
|
|
|
2500
2506
|
}, [
|
|
2501
2507
|
y("stop", {
|
|
2502
2508
|
offset: "0%",
|
|
2503
|
-
"stop-color": `${v(
|
|
2509
|
+
"stop-color": `${v(Et)(e.color, 0.05)}`
|
|
2504
2510
|
}, null, 8, iu),
|
|
2505
2511
|
y("stop", {
|
|
2506
2512
|
offset: "38%",
|
|
2507
|
-
"stop-color": `${v(
|
|
2513
|
+
"stop-color": `${v(Et)(e.color, 0.02)}`
|
|
2508
2514
|
}, null, 8, su),
|
|
2509
2515
|
y("stop", {
|
|
2510
2516
|
offset: "100%",
|
|
@@ -2512,7 +2518,7 @@ const xn = {
|
|
|
2512
2518
|
}, null, 8, ru)
|
|
2513
2519
|
], 8, uu)
|
|
2514
2520
|
]))), 128)),
|
|
2515
|
-
(s(!0), r(
|
|
2521
|
+
(s(!0), r(b, null, C(ot.value, (e, n) => (s(), r("defs", {
|
|
2516
2522
|
key: `def_plot_${n}`
|
|
2517
2523
|
}, [
|
|
2518
2524
|
y("radialGradient", {
|
|
@@ -2525,7 +2531,7 @@ const xn = {
|
|
|
2525
2531
|
}, [
|
|
2526
2532
|
y("stop", {
|
|
2527
2533
|
offset: "0%",
|
|
2528
|
-
"stop-color": `${v(
|
|
2534
|
+
"stop-color": `${v(Et)(e.color, 0.05)}`
|
|
2529
2535
|
}, null, 8, vu),
|
|
2530
2536
|
y("stop", {
|
|
2531
2537
|
offset: "100%",
|
|
@@ -2533,7 +2539,7 @@ const xn = {
|
|
|
2533
2539
|
}, null, 8, du)
|
|
2534
2540
|
], 8, cu)
|
|
2535
2541
|
]))), 128)),
|
|
2536
|
-
(s(!0), r(
|
|
2542
|
+
(s(!0), r(b, null, C(Pe.value, (e, n) => (s(), r("defs", {
|
|
2537
2543
|
key: `def_line_${e.id}`
|
|
2538
2544
|
}, [
|
|
2539
2545
|
y("radialGradient", {
|
|
@@ -2546,7 +2552,7 @@ const xn = {
|
|
|
2546
2552
|
}, [
|
|
2547
2553
|
y("stop", {
|
|
2548
2554
|
offset: "0%",
|
|
2549
|
-
"stop-color": `${v(
|
|
2555
|
+
"stop-color": `${v(Et)(e.color, 0.05)}`
|
|
2550
2556
|
}, null, 8, fu),
|
|
2551
2557
|
y("stop", {
|
|
2552
2558
|
offset: "100%",
|
|
@@ -2562,19 +2568,19 @@ const xn = {
|
|
|
2562
2568
|
}, [
|
|
2563
2569
|
y("stop", {
|
|
2564
2570
|
offset: "0%",
|
|
2565
|
-
"stop-color": `${v(
|
|
2571
|
+
"stop-color": `${v(nt)(v(Et)(e.color, 0.03), t.value.line.area.opacity)}`
|
|
2566
2572
|
}, null, 8, bu),
|
|
2567
2573
|
y("stop", {
|
|
2568
2574
|
offset: "100%",
|
|
2569
|
-
"stop-color": `${v(
|
|
2575
|
+
"stop-color": `${v(nt)(e.color, t.value.line.area.opacity)}`
|
|
2570
2576
|
}, null, 8, xu)
|
|
2571
2577
|
], 8, gu)
|
|
2572
2578
|
]))), 128)),
|
|
2573
|
-
(s(!0), r(
|
|
2574
|
-
e.show ? (s(), r(
|
|
2575
|
-
(s(!0), r(
|
|
2579
|
+
(s(!0), r(b, null, C(_o.value, (e) => (s(), r("g", null, [
|
|
2580
|
+
e.show ? (s(), r(b, { key: 0 }, [
|
|
2581
|
+
(s(!0), r(b, null, C(e.span, (n, a) => (s(), r("g", null, [
|
|
2576
2582
|
y("rect", {
|
|
2577
|
-
style:
|
|
2583
|
+
style: _({
|
|
2578
2584
|
transition: "none",
|
|
2579
2585
|
opacity: e.from + a >= p.value.start && e.from + a <= p.value.end - 1 ? 1 : 0
|
|
2580
2586
|
}),
|
|
@@ -2582,15 +2588,15 @@ const xn = {
|
|
|
2582
2588
|
y: c.value.top,
|
|
2583
2589
|
height: c.value.height < 0 ? 10 : c.value.height,
|
|
2584
2590
|
width: c.value.width / T.value < 0 ? 1e-5 : c.value.width / T.value,
|
|
2585
|
-
fill: v(
|
|
2591
|
+
fill: v(nt)(e.color, e.opacity)
|
|
2586
2592
|
}, null, 12, pu)
|
|
2587
2593
|
]))), 256)),
|
|
2588
|
-
(s(!0), r(
|
|
2594
|
+
(s(!0), r(b, null, C(e.span, (n, a) => (s(), r("g", null, [
|
|
2589
2595
|
e.caption.text && a === 0 ? (s(), r("foreignObject", {
|
|
2590
2596
|
key: 0,
|
|
2591
2597
|
x: c.value.left + c.value.width / T.value * (e.from + a - p.value.start) - (e.caption.width === "auto" ? 0 : e.caption.width / 2 - c.value.width / T.value * e.span / 2),
|
|
2592
2598
|
y: c.value.top + e.caption.offsetY,
|
|
2593
|
-
style:
|
|
2599
|
+
style: _({
|
|
2594
2600
|
overflow: "visible",
|
|
2595
2601
|
opacity: e.to >= p.value.start && e.from < p.value.end ? 1 : 0
|
|
2596
2602
|
}),
|
|
@@ -2598,14 +2604,14 @@ const xn = {
|
|
|
2598
2604
|
width: e.caption.width === "auto" ? c.value.width / T.value * e.span : e.caption.width
|
|
2599
2605
|
}, [
|
|
2600
2606
|
y("div", {
|
|
2601
|
-
style:
|
|
2607
|
+
style: _(`padding:${e.caption.padding}px;text-align:${e.caption.textAlign};font-size:${e.caption.fontSize}px;color:${e.caption.color};font-weight:${e.caption.bold ? "bold" : "normal"}`)
|
|
2602
2608
|
}, ne(e.caption.text), 5)
|
|
2603
2609
|
], 12, yu)) : f("", !0)
|
|
2604
2610
|
]))), 256))
|
|
2605
2611
|
], 64)) : f("", !0)
|
|
2606
2612
|
]))), 256)),
|
|
2607
2613
|
da.value ? (s(), r("g", ku, [
|
|
2608
|
-
(s(!0), r(
|
|
2614
|
+
(s(!0), r(b, null, C(T.value, (e, n) => (s(), r("g", {
|
|
2609
2615
|
key: `tooltip_trap_highlighter_${n}`
|
|
2610
2616
|
}, [
|
|
2611
2617
|
y("rect", {
|
|
@@ -2613,44 +2619,44 @@ const xn = {
|
|
|
2613
2619
|
y: c.value.top,
|
|
2614
2620
|
height: c.value.height < 0 ? 10 : c.value.height,
|
|
2615
2621
|
width: c.value.width / T.value < 0 ? 1e-5 : c.value.width / T.value,
|
|
2616
|
-
fill: [
|
|
2622
|
+
fill: [O.value, L.value, ft.value].includes(n) ? v(nt)(t.value.chart.highlighter.color, t.value.chart.highlighter.opacity) : "transparent",
|
|
2617
2623
|
style: { transition: "none !important", animation: "none !important" }
|
|
2618
2624
|
}, null, 8, wu)
|
|
2619
2625
|
]))), 128))
|
|
2620
2626
|
])) : f("", !0),
|
|
2621
|
-
yt.value.length ? (s(!0), r(
|
|
2627
|
+
yt.value.length ? (s(!0), r(b, { key: 1 }, C(yt.value, (e, n) => (s(), r("g", {
|
|
2622
2628
|
key: `serie_bar_${e.id}`,
|
|
2623
2629
|
class: Xe(`serie_bar_${n}`),
|
|
2624
|
-
style:
|
|
2630
|
+
style: _(`opacity:${P.value ? P.value === e.groupId ? 1 : 0.2 : 1};transition:opacity 0.2s ease-in-out`)
|
|
2625
2631
|
}, [
|
|
2626
|
-
(s(!0), r(
|
|
2632
|
+
(s(!0), r(b, null, C(e.plots, (a, i) => (s(), r("g", {
|
|
2627
2633
|
key: `bar_plot_${n}_${i}`
|
|
2628
2634
|
}, [
|
|
2629
2635
|
Ve(a.value) ? (s(), r("rect", {
|
|
2630
2636
|
key: 0,
|
|
2631
|
-
x: Il(a) +
|
|
2637
|
+
x: Il(a) + Fl.value / 2,
|
|
2632
2638
|
y: k.value.useIndividualScale ? Sa(a) : wa(a),
|
|
2633
2639
|
height: k.value.useIndividualScale ? Math.abs(ka(a)) : Math.abs(ya(a)),
|
|
2634
|
-
width: Rl.value -
|
|
2640
|
+
width: Rl.value - Fl.value,
|
|
2635
2641
|
rx: t.value.bar.borderRadius,
|
|
2636
2642
|
fill: t.value.bar.useGradient ? a.value >= 0 ? `url(#rectGradient_pos_${n}_${Z.value})` : `url(#rectGradient_neg_${n}_${Z.value})` : e.color,
|
|
2637
2643
|
stroke: t.value.bar.border.useSerieColor ? e.color : t.value.bar.border.stroke,
|
|
2638
2644
|
"stroke-width": t.value.bar.border.strokeWidth,
|
|
2639
|
-
style:
|
|
2640
|
-
transition: v(
|
|
2645
|
+
style: _({
|
|
2646
|
+
transition: v(oe) || !t.value.bar.showTransition ? void 0 : `all ${t.value.bar.transitionDurationMs}ms ease-in-out`
|
|
2641
2647
|
})
|
|
2642
2648
|
}, null, 12, Su)) : f("", !0),
|
|
2643
2649
|
Ve(a.value) && l.$slots.pattern ? (s(), r("rect", {
|
|
2644
2650
|
key: 1,
|
|
2645
|
-
x: Il(a) -
|
|
2651
|
+
x: Il(a) - Fl.value / 2,
|
|
2646
2652
|
y: k.value.useIndividualScale ? Sa(a) : wa(a),
|
|
2647
2653
|
height: k.value.useIndividualScale ? Math.abs(ka(a)) : Math.abs(ya(a)),
|
|
2648
|
-
width: Rl.value -
|
|
2654
|
+
width: Rl.value - Fl.value,
|
|
2649
2655
|
rx: t.value.bar.borderRadius,
|
|
2650
2656
|
fill: `url(#pattern_${Z.value}_${e.slotAbsoluteIndex})`,
|
|
2651
2657
|
stroke: t.value.bar.border.useSerieColor ? e.color : t.value.bar.border.stroke,
|
|
2652
2658
|
"stroke-width": t.value.bar.border.strokeWidth,
|
|
2653
|
-
style:
|
|
2659
|
+
style: _({ transition: v(oe) || !t.value.bar.showTransition ? void 0 : `all ${t.value.bar.transitionDurationMs}ms ease-in-out` })
|
|
2654
2660
|
}, null, 12, _u)) : f("", !0),
|
|
2655
2661
|
a.comment && t.value.chart.comments.show ? (s(), r("foreignObject", {
|
|
2656
2662
|
key: 2,
|
|
@@ -2697,7 +2703,7 @@ const xn = {
|
|
|
2697
2703
|
"text-anchor": "middle",
|
|
2698
2704
|
x: v(le)(e.plots).x2 + ll(),
|
|
2699
2705
|
y: v(le)(e.plots).y2 - 6,
|
|
2700
|
-
"font-size":
|
|
2706
|
+
"font-size": w.value.plotLabels,
|
|
2701
2707
|
fill: e.color
|
|
2702
2708
|
}, ne(v(Qe)({
|
|
2703
2709
|
v: v(le)(e.plots).trend * 100,
|
|
@@ -2712,15 +2718,15 @@ const xn = {
|
|
|
2712
2718
|
"stroke-width": "1",
|
|
2713
2719
|
x1: c.value.left + te.value,
|
|
2714
2720
|
x2: c.value.right,
|
|
2715
|
-
y1: v(q)(
|
|
2716
|
-
y2: v(q)(
|
|
2721
|
+
y1: v(q)(Ie.value),
|
|
2722
|
+
y2: v(q)(Ie.value),
|
|
2717
2723
|
"stroke-linecap": "round",
|
|
2718
2724
|
style: { animation: "none !important" }
|
|
2719
2725
|
}, null, 8, Tu)) : f("", !0),
|
|
2720
|
-
t.value.chart.highlighter.useLine && (![null, void 0].includes(
|
|
2726
|
+
t.value.chart.highlighter.useLine && (![null, void 0].includes(L.value) || ![null, void 0].includes(O.value)) ? (s(), r("g", Iu, [
|
|
2721
2727
|
y("line", {
|
|
2722
|
-
x1: c.value.left + c.value.width / T.value * ((
|
|
2723
|
-
x2: c.value.left + c.value.width / T.value * ((
|
|
2728
|
+
x1: c.value.left + c.value.width / T.value * ((L.value !== null ? L.value : 0) || (O.value !== null ? O.value : 0)) + c.value.width / T.value / 2,
|
|
2729
|
+
x2: c.value.left + c.value.width / T.value * ((L.value !== null ? L.value : 0) || (O.value !== null ? O.value : 0)) + c.value.width / T.value / 2,
|
|
2724
2730
|
y1: v(q)(c.value.top),
|
|
2725
2731
|
y2: v(q)(c.value.bottom),
|
|
2726
2732
|
stroke: t.value.chart.highlighter.color,
|
|
@@ -2747,10 +2753,10 @@ const xn = {
|
|
|
2747
2753
|
t.value.chart.grid.labels.show ? (s(), r("g", {
|
|
2748
2754
|
key: 5,
|
|
2749
2755
|
ref_key: "scaleLabels",
|
|
2750
|
-
ref:
|
|
2756
|
+
ref: Rt
|
|
2751
2757
|
}, [
|
|
2752
|
-
k.value.useIndividualScale ? (s(), r(
|
|
2753
|
-
(s(!0), r(
|
|
2758
|
+
k.value.useIndividualScale ? (s(), r(b, { key: 0 }, [
|
|
2759
|
+
(s(!0), r(b, null, C(wl.value, (e) => (s(), r("g", null, [
|
|
2754
2760
|
y("line", {
|
|
2755
2761
|
x1: e.x + te.value - c.value.individualOffsetX,
|
|
2756
2762
|
x2: e.x + te.value - c.value.individualOffsetX,
|
|
@@ -2759,20 +2765,20 @@ const xn = {
|
|
|
2759
2765
|
stroke: e.color,
|
|
2760
2766
|
"stroke-width": t.value.chart.grid.stroke,
|
|
2761
2767
|
"stroke-linecap": "round",
|
|
2762
|
-
style:
|
|
2763
|
-
}, null, 12,
|
|
2768
|
+
style: _(`opacity:${P.value ? P.value === e.groupId ? 1 : 0.3 : 1};transition:opacity 0.2s ease-in-out; animation: none !important`)
|
|
2769
|
+
}, null, 12, Fu)
|
|
2764
2770
|
]))), 256)),
|
|
2765
|
-
(s(!0), r(
|
|
2766
|
-
style:
|
|
2771
|
+
(s(!0), r(b, null, C(wl.value, (e) => (s(), r("g", {
|
|
2772
|
+
style: _(`opacity:${P.value ? P.value === e.groupId ? 1 : 0.3 : 1};transition:opacity 0.2s ease-in-out`)
|
|
2767
2773
|
}, [
|
|
2768
2774
|
y("text", {
|
|
2769
2775
|
fill: e.color,
|
|
2770
|
-
"font-size":
|
|
2776
|
+
"font-size": w.value.dataLabels * 0.8,
|
|
2771
2777
|
"text-anchor": "middle",
|
|
2772
|
-
transform: `translate(${e.x -
|
|
2778
|
+
transform: `translate(${e.x - w.value.dataLabels * 0.8 / 2 + te.value}, ${k.value.isStacked ? c.value.bottom - e.yOffset - e.individualHeight / 2 : c.value.top + c.value.height / 2}) rotate(-90)`
|
|
2773
2779
|
}, ne(e.name) + " " + ne(e.scaleLabel && e.unique && e.scaleLabel !== e.id ? `-
|
|
2774
|
-
${e.scaleLabel}` : ""), 9,
|
|
2775
|
-
(s(!0), r(
|
|
2780
|
+
${e.scaleLabel}` : ""), 9, Pu),
|
|
2781
|
+
(s(!0), r(b, null, C(e.yLabels, (n, a) => (s(), r(b, null, [
|
|
2776
2782
|
t.value.chart.grid.labels.yAxis.showCrosshairs ? (s(), r("line", {
|
|
2777
2783
|
key: 0,
|
|
2778
2784
|
x1: e.x + 3 + te.value - t.value.chart.grid.labels.yAxis.crosshairSize - c.value.individualOffsetX,
|
|
@@ -2783,15 +2789,15 @@ const xn = {
|
|
|
2783
2789
|
"stroke-width": 1,
|
|
2784
2790
|
"stroke-linecap": "round",
|
|
2785
2791
|
style: { animation: "none !important" }
|
|
2786
|
-
}, null, 8,
|
|
2792
|
+
}, null, 8, Ou)) : f("", !0)
|
|
2787
2793
|
], 64))), 256)),
|
|
2788
|
-
(s(!0), r(
|
|
2794
|
+
(s(!0), r(b, null, C(e.yLabels, (n, a) => (s(), r("text", {
|
|
2789
2795
|
x: e.x - 5 + te.value - c.value.individualOffsetX,
|
|
2790
|
-
y: v(q)(n.y) +
|
|
2791
|
-
"font-size":
|
|
2796
|
+
y: v(q)(n.y) + w.value.dataLabels / 3,
|
|
2797
|
+
"font-size": w.value.dataLabels,
|
|
2792
2798
|
"text-anchor": "end",
|
|
2793
2799
|
fill: e.color
|
|
2794
|
-
}, ne(v(
|
|
2800
|
+
}, ne(v(Le)(
|
|
2795
2801
|
t.value.chart.grid.labels.yAxis.formatter,
|
|
2796
2802
|
n.value,
|
|
2797
2803
|
v(Qe)({
|
|
@@ -2803,10 +2809,10 @@ const xn = {
|
|
|
2803
2809
|
{ datapoint: n.datapoint, seriesIndex: a }
|
|
2804
2810
|
)), 9, Bu))), 256))
|
|
2805
2811
|
], 4))), 256))
|
|
2806
|
-
], 64)) : (s(!0), r(
|
|
2812
|
+
], 64)) : (s(!0), r(b, { key: 1 }, C(Ma.value, (e, n) => (s(), r("g", {
|
|
2807
2813
|
key: `yLabel_${n}`
|
|
2808
2814
|
}, [
|
|
2809
|
-
Ve(e) && e.value >=
|
|
2815
|
+
Ve(e) && e.value >= Te.value.min && e.value <= Te.value.max && t.value.chart.grid.labels.yAxis.showCrosshairs ? (s(), r("line", {
|
|
2810
2816
|
key: 0,
|
|
2811
2817
|
x1: c.value.left + te.value,
|
|
2812
2818
|
x2: c.value.left + te.value - t.value.chart.grid.labels.yAxis.crosshairSize,
|
|
@@ -2817,14 +2823,14 @@ const xn = {
|
|
|
2817
2823
|
"stroke-linecap": "round",
|
|
2818
2824
|
style: { animation: "none !important" }
|
|
2819
2825
|
}, null, 8, Hu)) : f("", !0),
|
|
2820
|
-
e.value >=
|
|
2826
|
+
e.value >= Te.value.min && e.value <= Te.value.max ? (s(), r("text", {
|
|
2821
2827
|
key: 1,
|
|
2822
2828
|
x: c.value.scaleLabelX - t.value.chart.grid.labels.yAxis.crosshairSize,
|
|
2823
|
-
y: v(W)(e.y +
|
|
2824
|
-
"font-size":
|
|
2829
|
+
y: v(W)(e.y + w.value.dataLabels / 3),
|
|
2830
|
+
"font-size": w.value.dataLabels,
|
|
2825
2831
|
"text-anchor": "end",
|
|
2826
2832
|
fill: t.value.chart.grid.labels.color
|
|
2827
|
-
}, ne(Ve(e.value) ? v(
|
|
2833
|
+
}, ne(Ve(e.value) ? v(Le)(
|
|
2828
2834
|
t.value.chart.grid.labels.yAxis.formatter,
|
|
2829
2835
|
e.value,
|
|
2830
2836
|
v(Qe)({
|
|
@@ -2836,12 +2842,12 @@ const xn = {
|
|
|
2836
2842
|
) : ""), 9, Vu)) : f("", !0)
|
|
2837
2843
|
]))), 128))
|
|
2838
2844
|
], 512)) : f("", !0),
|
|
2839
|
-
(s(!0), r(
|
|
2845
|
+
(s(!0), r(b, null, C(ot.value, (e, n) => (s(), r("g", {
|
|
2840
2846
|
key: `serie_plot_${e.id}`,
|
|
2841
2847
|
class: Xe(`serie_plot_${n}`),
|
|
2842
|
-
style:
|
|
2848
|
+
style: _(`opacity:${P.value ? P.value === e.groupId ? 1 : 0.2 : 1};transition:opacity 0.2s ease-in-out`)
|
|
2843
2849
|
}, [
|
|
2844
|
-
(s(!0), r(
|
|
2850
|
+
(s(!0), r(b, null, C(e.plots, (a, i) => (s(), r("g", {
|
|
2845
2851
|
key: `circle_plot_${n}_${i}`
|
|
2846
2852
|
}, [
|
|
2847
2853
|
a && Ve(a.value) ? (s(), Je(El, {
|
|
@@ -2849,10 +2855,10 @@ const xn = {
|
|
|
2849
2855
|
shape: ["triangle", "square", "diamond", "pentagon", "hexagon", "star"].includes(e.shape) ? e.shape : "circle",
|
|
2850
2856
|
color: t.value.plot.useGradient ? `url(#plotGradient_${n}_${Z.value})` : t.value.plot.dot.useSerieColor ? e.color : t.value.plot.dot.fill,
|
|
2851
2857
|
plot: { x: v(W)(a.x), y: v(W)(a.y) },
|
|
2852
|
-
radius:
|
|
2858
|
+
radius: L.value !== null && L.value === i || O.value !== null && O.value === i ? (Fe.value.plot || 6) * 1.5 : Fe.value.plot || 6,
|
|
2853
2859
|
stroke: t.value.plot.dot.useSerieColor ? t.value.chart.backgroundColor : e.color,
|
|
2854
2860
|
strokeWidth: t.value.plot.dot.strokeWidth,
|
|
2855
|
-
transition: v(
|
|
2861
|
+
transition: v(oe) || !t.value.plot.showTransition || L.value !== null && L.value === i || O.value !== null && O.value === i ? void 0 : `all ${t.value.plot.transitionDurationMs}ms ease-in-out`
|
|
2856
2862
|
}, null, 8, ["shape", "color", "plot", "radius", "stroke", "strokeWidth", "transition"])) : f("", !0),
|
|
2857
2863
|
a.comment && t.value.chart.comments.show ? (s(), r("foreignObject", {
|
|
2858
2864
|
key: 1,
|
|
@@ -2901,7 +2907,7 @@ const xn = {
|
|
|
2901
2907
|
"text-anchor": "middle",
|
|
2902
2908
|
x: v(le)(e.plots).x2,
|
|
2903
2909
|
y: v(le)(e.plots).y2 - 6,
|
|
2904
|
-
"font-size":
|
|
2910
|
+
"font-size": w.value.plotLabels,
|
|
2905
2911
|
fill: e.color
|
|
2906
2912
|
}, ne(v(Qe)({
|
|
2907
2913
|
v: v(le)(e.plots).trend * 100,
|
|
@@ -2910,10 +2916,10 @@ const xn = {
|
|
|
2910
2916
|
})), 9, Uu)) : f("", !0)
|
|
2911
2917
|
])) : f("", !0)
|
|
2912
2918
|
], 6))), 128)),
|
|
2913
|
-
(s(!0), r(
|
|
2919
|
+
(s(!0), r(b, null, C(Pe.value, (e, n) => (s(), r("g", {
|
|
2914
2920
|
key: `serie_line_${e.id}`,
|
|
2915
2921
|
class: Xe(`serie_line_${n}`),
|
|
2916
|
-
style:
|
|
2922
|
+
style: _(`opacity:${P.value ? P.value === e.groupId ? 1 : 0.2 : 1};transition:opacity 0.2s ease-in-out`)
|
|
2917
2923
|
}, [
|
|
2918
2924
|
e.smooth && e.plots.length > 1 && e.curve ? (s(), r("path", {
|
|
2919
2925
|
key: 0,
|
|
@@ -2922,7 +2928,7 @@ const xn = {
|
|
|
2922
2928
|
"stroke-width": t.value.line.strokeWidth + 1,
|
|
2923
2929
|
"stroke-dasharray": e.dashed ? t.value.line.strokeWidth * 2 : 0,
|
|
2924
2930
|
fill: "none",
|
|
2925
|
-
style:
|
|
2931
|
+
style: _({ transition: v(oe) || !t.value.line.showTransition ? void 0 : `all ${t.value.line.transitionDurationMs}ms ease-in-out` })
|
|
2926
2932
|
}, null, 12, qu)) : e.plots.length > 1 && e.straight ? (s(), r("path", {
|
|
2927
2933
|
key: 1,
|
|
2928
2934
|
d: `M${e.straight}`,
|
|
@@ -2932,56 +2938,56 @@ const xn = {
|
|
|
2932
2938
|
fill: "none",
|
|
2933
2939
|
"stroke-linecap": "round",
|
|
2934
2940
|
"stroke-linejoin": "round",
|
|
2935
|
-
style:
|
|
2941
|
+
style: _({ transition: v(oe) || !t.value.line.showTransition ? void 0 : `all ${t.value.line.transitionDurationMs}ms ease-in-out` })
|
|
2936
2942
|
}, null, 12, Zu)) : f("", !0)
|
|
2937
2943
|
], 6))), 128)),
|
|
2938
2944
|
l.$slots.pattern ? (s(), r("defs", Ku, [
|
|
2939
|
-
(s(!0), r(
|
|
2945
|
+
(s(!0), r(b, null, C(at.value, (e, n) => Q(l.$slots, "pattern", Ll({
|
|
2940
2946
|
key: `serie_pattern_slot_${e.id}`
|
|
2941
2947
|
}, { ref_for: !0 }, { ...e, seriesIndex: e.slotAbsoluteIndex, patternId: `pattern_${Z.value}_${n}` }), void 0, !0)), 128))
|
|
2942
2948
|
])) : f("", !0),
|
|
2943
2949
|
za.value.length && !k.value.isStacked ? (s(), r("g", Ju, [
|
|
2944
|
-
(s(!0), r(
|
|
2950
|
+
(s(!0), r(b, null, C(za.value, (e) => (s(), r("path", {
|
|
2945
2951
|
key: e.key,
|
|
2946
2952
|
d: e.d,
|
|
2947
2953
|
fill: e.color,
|
|
2948
2954
|
"fill-opacity": t.value.line.interLine.fillOpacity,
|
|
2949
2955
|
stroke: "none",
|
|
2950
2956
|
"pointer-events": "none",
|
|
2951
|
-
style:
|
|
2957
|
+
style: _({ transition: v(oe) || !t.value.line.showTransition ? void 0 : `all ${t.value.line.transitionDurationMs}ms ease-in-out` })
|
|
2952
2958
|
}, null, 12, Qu))), 128))
|
|
2953
2959
|
])) : f("", !0),
|
|
2954
|
-
(s(!0), r(
|
|
2960
|
+
(s(!0), r(b, null, C(Pe.value, (e, n) => (s(), r("g", {
|
|
2955
2961
|
key: `serie_line_above_${e.id}`,
|
|
2956
2962
|
class: Xe(`serie_line_${n}`),
|
|
2957
|
-
style:
|
|
2963
|
+
style: _(`opacity:${P.value ? P.value === e.groupId ? 1 : 0.2 : 1};transition:opacity 0.2s ease-in-out`)
|
|
2958
2964
|
}, [
|
|
2959
2965
|
e.useArea && e.plots.length > 1 ? (s(), r("g", ju, [
|
|
2960
|
-
e.smooth ? (s(!0), r(
|
|
2966
|
+
e.smooth ? (s(!0), r(b, { key: 0 }, C(e.curveAreas, (a, i) => (s(), r(b, { key: i }, [
|
|
2961
2967
|
a ? (s(), r("path", {
|
|
2962
2968
|
key: 0,
|
|
2963
2969
|
d: a,
|
|
2964
|
-
fill: t.value.line.area.useGradient ? `url(#areaGradient_${n}_${Z.value})` : v(
|
|
2965
|
-
style:
|
|
2970
|
+
fill: t.value.line.area.useGradient ? `url(#areaGradient_${n}_${Z.value})` : v(nt)(e.color, t.value.line.area.opacity),
|
|
2971
|
+
style: _({ transition: v(oe) || !t.value.line.showTransition ? void 0 : `all ${t.value.line.transitionDurationMs}ms ease-in-out` })
|
|
2966
2972
|
}, null, 12, ei)) : f("", !0),
|
|
2967
2973
|
l.$slots.pattern && a ? (s(), r("path", {
|
|
2968
2974
|
key: 1,
|
|
2969
2975
|
d: a,
|
|
2970
2976
|
fill: `url(#pattern_${Z.value}_${e.slotAbsoluteIndex})`,
|
|
2971
|
-
style:
|
|
2977
|
+
style: _({ transition: v(oe) || !t.value.line.showTransition ? void 0 : `all ${t.value.line.transitionDurationMs}ms ease-in-out` })
|
|
2972
2978
|
}, null, 12, ti)) : f("", !0)
|
|
2973
|
-
], 64))), 128)) : (s(!0), r(
|
|
2979
|
+
], 64))), 128)) : (s(!0), r(b, { key: 1 }, C(e.area.split(";"), (a, i) => (s(), r(b, { key: i }, [
|
|
2974
2980
|
a ? (s(), r("path", {
|
|
2975
2981
|
key: 0,
|
|
2976
2982
|
d: `M${a}Z`,
|
|
2977
|
-
fill: t.value.line.area.useGradient ? `url(#areaGradient_${n}_${Z.value})` : v(
|
|
2978
|
-
style:
|
|
2983
|
+
fill: t.value.line.area.useGradient ? `url(#areaGradient_${n}_${Z.value})` : v(nt)(e.color, t.value.line.area.opacity),
|
|
2984
|
+
style: _({ transition: v(oe) || !t.value.line.showTransition ? void 0 : `all ${t.value.line.transitionDurationMs}ms ease-in-out` })
|
|
2979
2985
|
}, null, 12, li)) : f("", !0),
|
|
2980
2986
|
l.$slots.pattern && a ? (s(), r("path", {
|
|
2981
2987
|
key: 1,
|
|
2982
2988
|
d: `M${a}Z`,
|
|
2983
2989
|
fill: `url(#pattern_${Z.value}_${e.slotAbsoluteIndex})`,
|
|
2984
|
-
style:
|
|
2990
|
+
style: _({ transition: v(oe) || !t.value.line.showTransition ? void 0 : `all ${t.value.line.transitionDurationMs}ms ease-in-out` })
|
|
2985
2991
|
}, null, 12, ai)) : f("", !0)
|
|
2986
2992
|
], 64))), 128))
|
|
2987
2993
|
])) : f("", !0),
|
|
@@ -2993,7 +2999,7 @@ const xn = {
|
|
|
2993
2999
|
"stroke-dasharray": e.dashed ? t.value.line.strokeWidth * 2 : 0,
|
|
2994
3000
|
fill: "none",
|
|
2995
3001
|
"stroke-linecap": "round",
|
|
2996
|
-
style:
|
|
3002
|
+
style: _({ transition: v(oe) || !t.value.line.showTransition ? void 0 : `all ${t.value.line.transitionDurationMs}ms ease-in-out` })
|
|
2997
3003
|
}, null, 12, oi)) : e.plots.length > 1 && e.straight ? (s(), r("path", {
|
|
2998
3004
|
key: 2,
|
|
2999
3005
|
d: `M${e.straight}`,
|
|
@@ -3003,20 +3009,20 @@ const xn = {
|
|
|
3003
3009
|
fill: "none",
|
|
3004
3010
|
"stroke-linecap": "round",
|
|
3005
3011
|
"stroke-linejoin": "round",
|
|
3006
|
-
style:
|
|
3012
|
+
style: _({ transition: v(oe) || !t.value.line.showTransition ? void 0 : `all ${t.value.line.transitionDurationMs}ms ease-in-out` })
|
|
3007
3013
|
}, null, 12, ni)) : f("", !0),
|
|
3008
|
-
(s(!0), r(
|
|
3014
|
+
(s(!0), r(b, null, C(e.plots, (a, i) => (s(), r(b, {
|
|
3009
3015
|
key: `circle_line_${n}_${i}`
|
|
3010
3016
|
}, [
|
|
3011
|
-
!$a.value.linePlot && a && Ve(a.value) || $a.value.linePlot && a && Ve(a.value) && (
|
|
3017
|
+
!$a.value.linePlot && a && Ve(a.value) || $a.value.linePlot && a && Ve(a.value) && (L.value !== null && L.value === i || O.value !== null && O.value === i) || Aa(e.plots, i) ? (s(), Je(El, {
|
|
3012
3018
|
key: 0,
|
|
3013
3019
|
shape: ["triangle", "square", "diamond", "pentagon", "hexagon", "star"].includes(e.shape) ? e.shape : "circle",
|
|
3014
3020
|
color: t.value.line.useGradient ? `url(#lineGradient_${n}_${Z.value})` : t.value.line.dot.useSerieColor ? e.color : t.value.line.dot.fill,
|
|
3015
3021
|
plot: { x: v(W)(a.x), y: v(W)(a.y) },
|
|
3016
|
-
radius:
|
|
3022
|
+
radius: L.value !== null && L.value === i || O.value !== null && O.value === i ? (Fe.value.line || 6) * 1.5 : (Aa(e.plots, i), Fe.value.line || 6),
|
|
3017
3023
|
stroke: t.value.line.dot.useSerieColor ? t.value.chart.backgroundColor : e.color,
|
|
3018
3024
|
strokeWidth: t.value.line.dot.strokeWidth,
|
|
3019
|
-
transition: v(
|
|
3025
|
+
transition: v(oe) || !t.value.line.showTransition || L.value !== null && L.value === i || O.value !== null && O.value === i ? void 0 : `all ${t.value.line.transitionDurationMs}ms ease-in-out`
|
|
3020
3026
|
}, null, 8, ["shape", "color", "plot", "radius", "stroke", "strokeWidth", "transition"])) : f("", !0),
|
|
3021
3027
|
a.comment && t.value.chart.comments.show ? (s(), r("foreignObject", {
|
|
3022
3028
|
key: 1,
|
|
@@ -3065,7 +3071,7 @@ const xn = {
|
|
|
3065
3071
|
"text-anchor": "middle",
|
|
3066
3072
|
x: v(le)(e.plots).x2,
|
|
3067
3073
|
y: v(le)(e.plots).y2 - 6,
|
|
3068
|
-
"font-size":
|
|
3074
|
+
"font-size": w.value.plotLabels,
|
|
3069
3075
|
fill: e.color
|
|
3070
3076
|
}, ne(v(Qe)({
|
|
3071
3077
|
v: v(le)(e.plots).trend * 100,
|
|
@@ -3075,21 +3081,21 @@ const xn = {
|
|
|
3075
3081
|
])) : f("", !0)
|
|
3076
3082
|
], 6))), 128)),
|
|
3077
3083
|
(t.value.bar.labels.show || t.value.bar.serieName.show) && k.value.dataLabels.show ? (s(), r("g", hi, [
|
|
3078
|
-
(s(!0), r(
|
|
3084
|
+
(s(!0), r(b, null, C(yt.value, (e, n) => (s(), r(b, {
|
|
3079
3085
|
key: `xLabel_bar_${e.id}`
|
|
3080
3086
|
}, [
|
|
3081
|
-
(s(!0), r(
|
|
3087
|
+
(s(!0), r(b, null, C(e.plots, (a, i) => (s(), r(b, {
|
|
3082
3088
|
key: `xLabel_bar_${n}_${i}`
|
|
3083
3089
|
}, [
|
|
3084
|
-
a && (!Object.hasOwn(e, "dataLabels") || e.dataLabels === !0 ||
|
|
3090
|
+
a && (!Object.hasOwn(e, "dataLabels") || e.dataLabels === !0 || L.value !== null && L.value === i || O.value !== null && O.value === i) && t.value.bar.labels.show ? (s(), r("text", {
|
|
3085
3091
|
key: 0,
|
|
3086
3092
|
x: k.value.useIndividualScale && k.value.isStacked ? a.x + se.value.line / 2 : Il(a) + ll() / 2 - Nl.value / 2,
|
|
3087
3093
|
y: v(W)(a.y) + (a.value >= 0 ? t.value.bar.labels.offsetY : -t.value.bar.labels.offsetY * 3),
|
|
3088
3094
|
"text-anchor": "middle",
|
|
3089
|
-
"font-size":
|
|
3095
|
+
"font-size": w.value.plotLabels,
|
|
3090
3096
|
fill: t.value.bar.labels.color,
|
|
3091
|
-
style:
|
|
3092
|
-
}, ne(Ve(a.value) ? v(
|
|
3097
|
+
style: _(`opacity:${P.value ? P.value === e.groupId ? 1 : 0.2 : 1};transition:opacity 0.2s ease-in-out`)
|
|
3098
|
+
}, ne(Ve(a.value) ? v(Le)(
|
|
3093
3099
|
t.value.bar.labels.formatter,
|
|
3094
3100
|
a.value,
|
|
3095
3101
|
v(Qe)({
|
|
@@ -3108,10 +3114,10 @@ const xn = {
|
|
|
3108
3114
|
x: k.value.useIndividualScale && k.value.isStacked ? a.x + se.value.line / 2 : a.x + ll() * 1.1,
|
|
3109
3115
|
y: a.y + (a.value > 0 ? t.value.bar.serieName.offsetY : -t.value.bar.serieName.offsetY * 3),
|
|
3110
3116
|
"text-anchor": "middle",
|
|
3111
|
-
"font-size":
|
|
3117
|
+
"font-size": w.value.plotLabels,
|
|
3112
3118
|
fill: t.value.bar.serieName.useSerieColor ? e.color : t.value.bar.serieName.color,
|
|
3113
3119
|
"font-weight": t.value.bar.serieName.bold ? "bold" : "normal",
|
|
3114
|
-
style:
|
|
3120
|
+
style: _(`opacity:${P.value ? P.value === e.groupId ? 1 : 0.2 : 1};transition:opacity 0.2s ease-in-out`)
|
|
3115
3121
|
}, ne(t.value.bar.serieName.useAbbreviation ? v(jo)({
|
|
3116
3122
|
source: e.name,
|
|
3117
3123
|
length: t.value.bar.serieName.abbreviationSize
|
|
@@ -3120,21 +3126,21 @@ const xn = {
|
|
|
3120
3126
|
], 64))), 128))
|
|
3121
3127
|
])) : f("", !0),
|
|
3122
3128
|
t.value.plot.labels.show && k.value.dataLabels.show ? (s(), r("g", gi, [
|
|
3123
|
-
(s(!0), r(
|
|
3129
|
+
(s(!0), r(b, null, C(ot.value, (e, n) => (s(), r(b, {
|
|
3124
3130
|
key: `xLabel_plot_${e.id}`
|
|
3125
3131
|
}, [
|
|
3126
|
-
(s(!0), r(
|
|
3132
|
+
(s(!0), r(b, null, C(e.plots, (a, i) => (s(), r(b, {
|
|
3127
3133
|
key: `xLabel_plot_${n}_${i}`
|
|
3128
3134
|
}, [
|
|
3129
|
-
a && !Object.hasOwn(e, "dataLabels") || e.dataLabels === !0 ||
|
|
3135
|
+
a && !Object.hasOwn(e, "dataLabels") || e.dataLabels === !0 || L.value !== null && L.value === i || O.value !== null && O.value === i ? (s(), r("text", {
|
|
3130
3136
|
key: 0,
|
|
3131
3137
|
x: a.x,
|
|
3132
3138
|
y: a.y + t.value.plot.labels.offsetY,
|
|
3133
3139
|
"text-anchor": "middle",
|
|
3134
|
-
"font-size":
|
|
3140
|
+
"font-size": w.value.plotLabels,
|
|
3135
3141
|
fill: t.value.plot.labels.color,
|
|
3136
|
-
style:
|
|
3137
|
-
}, ne(Ve(a.value) ? v(
|
|
3142
|
+
style: _(`opacity:${P.value ? P.value === e.groupId ? 1 : 0.2 : 1};transition:opacity 0.2s ease-in-out`)
|
|
3143
|
+
}, ne(Ve(a.value) ? v(Le)(
|
|
3138
3144
|
t.value.plot.labels.formatter,
|
|
3139
3145
|
a.value,
|
|
3140
3146
|
v(Qe)({
|
|
@@ -3151,14 +3157,14 @@ const xn = {
|
|
|
3151
3157
|
], 64))), 128))
|
|
3152
3158
|
], 64))), 128))
|
|
3153
3159
|
])) : (s(), r("g", xi, [
|
|
3154
|
-
(s(!0), r(
|
|
3160
|
+
(s(!0), r(b, null, C(ot.value, (e, n) => (s(), r(b, {
|
|
3155
3161
|
key: `xLabel_plot_${e.id}`
|
|
3156
3162
|
}, [
|
|
3157
|
-
(s(!0), r(
|
|
3163
|
+
(s(!0), r(b, null, C(e.plots, (a, i) => (s(), r(b, {
|
|
3158
3164
|
key: `xLabel_plot_${n}_${i}`
|
|
3159
3165
|
}, [
|
|
3160
|
-
t.value.plot.tag.followValue ? (s(), r(
|
|
3161
|
-
[
|
|
3166
|
+
t.value.plot.tag.followValue ? (s(), r(b, { key: 1 }, [
|
|
3167
|
+
[O.value, L.value, ft.value].includes(i) && e.useTag ? (s(), r("line", {
|
|
3162
3168
|
key: 0,
|
|
3163
3169
|
class: "vue-ui-xy-tag-plot",
|
|
3164
3170
|
x1: c.value.left,
|
|
@@ -3170,18 +3176,18 @@ const xn = {
|
|
|
3170
3176
|
"stroke-dasharray": "2",
|
|
3171
3177
|
stroke: e.color
|
|
3172
3178
|
}, null, 8, Si)) : f("", !0)
|
|
3173
|
-
], 64)) : (s(), r(
|
|
3179
|
+
], 64)) : (s(), r(b, { key: 0 }, [
|
|
3174
3180
|
a && i === 0 && e.useTag && e.useTag === "start" ? (s(), r("foreignObject", {
|
|
3175
3181
|
key: 0,
|
|
3176
3182
|
x: a.x,
|
|
3177
3183
|
y: a.y - 20,
|
|
3178
3184
|
height: 24,
|
|
3179
3185
|
width: "150",
|
|
3180
|
-
style:
|
|
3186
|
+
style: _(`overflow: visible; opacity:${P.value ? P.value === e.groupId ? 1 : 0.2 : 1};transition:opacity 0.2s ease-in-out`)
|
|
3181
3187
|
}, [
|
|
3182
3188
|
y("div", {
|
|
3183
|
-
style:
|
|
3184
|
-
innerHTML: v(
|
|
3189
|
+
style: _(`padding: 3px; background:${v(nt)(e.color, 80)};color:${v(ut)(e.color)};width:fit-content;font-size:${w.value.plotLabels}px;border-radius: 2px;`),
|
|
3190
|
+
innerHTML: v(Le)(
|
|
3185
3191
|
t.value.plot.tag.formatter,
|
|
3186
3192
|
a.value,
|
|
3187
3193
|
e.name,
|
|
@@ -3195,15 +3201,15 @@ const xn = {
|
|
|
3195
3201
|
], 12, pi)) : f("", !0),
|
|
3196
3202
|
a && i === e.plots.length - 1 && e.useTag && e.useTag === "end" ? (s(), r("foreignObject", {
|
|
3197
3203
|
key: 1,
|
|
3198
|
-
x: a.x - e.name.length * (
|
|
3204
|
+
x: a.x - e.name.length * (w.value.plotLabels / 2),
|
|
3199
3205
|
y: a.y - 20,
|
|
3200
3206
|
height: 24,
|
|
3201
3207
|
width: "150",
|
|
3202
|
-
style:
|
|
3208
|
+
style: _(`overflow: visible; opacity:${P.value ? P.value === e.groupId ? 1 : 0.2 : 1};transition:opacity 0.2s ease-in-out`)
|
|
3203
3209
|
}, [
|
|
3204
3210
|
y("div", {
|
|
3205
|
-
style:
|
|
3206
|
-
innerHTML: v(
|
|
3211
|
+
style: _(`padding: 3px; background:${v(nt)(e.color, 80)};color:${v(ut)(e.color)};width:fit-content;font-size:${w.value.plotLabels}px;border-radius: 2px;`),
|
|
3212
|
+
innerHTML: v(Le)(
|
|
3207
3213
|
t.value.plot.tag.formatter,
|
|
3208
3214
|
a.value,
|
|
3209
3215
|
e.name,
|
|
@@ -3220,21 +3226,21 @@ const xn = {
|
|
|
3220
3226
|
], 64))), 128))
|
|
3221
3227
|
])),
|
|
3222
3228
|
t.value.line.labels.show && k.value.dataLabels.show ? (s(), r("g", _i, [
|
|
3223
|
-
(s(!0), r(
|
|
3229
|
+
(s(!0), r(b, null, C(Pe.value, (e, n) => (s(), r(b, {
|
|
3224
3230
|
key: `xLabel_line_${e.id}`
|
|
3225
3231
|
}, [
|
|
3226
|
-
(s(!0), r(
|
|
3232
|
+
(s(!0), r(b, null, C(e.plots, (a, i) => (s(), r(b, {
|
|
3227
3233
|
key: `xLabel_line_${n}_${i}`
|
|
3228
3234
|
}, [
|
|
3229
|
-
a && !Object.hasOwn(e, "dataLabels") || e.dataLabels === !0 ||
|
|
3235
|
+
a && !Object.hasOwn(e, "dataLabels") || e.dataLabels === !0 || L.value !== null && L.value === i || O.value !== null && O.value === i ? (s(), r("text", {
|
|
3230
3236
|
key: 0,
|
|
3231
3237
|
x: a.x,
|
|
3232
3238
|
y: a.y + (a.value >= 0 ? t.value.line.labels.offsetY : -t.value.line.labels.offsetY * 3),
|
|
3233
3239
|
"text-anchor": "middle",
|
|
3234
|
-
"font-size":
|
|
3240
|
+
"font-size": w.value.plotLabels,
|
|
3235
3241
|
fill: t.value.line.labels.color,
|
|
3236
|
-
style:
|
|
3237
|
-
}, ne(Ve(a.value) ? v(
|
|
3242
|
+
style: _(`opacity:${P.value ? P.value === e.groupId ? 1 : 0.2 : 1};transition:opacity 0.2s ease-in-out`)
|
|
3243
|
+
}, ne(Ve(a.value) ? v(Le)(
|
|
3238
3244
|
t.value.line.labels.formatter,
|
|
3239
3245
|
a.value,
|
|
3240
3246
|
v(Qe)({
|
|
@@ -3251,14 +3257,14 @@ const xn = {
|
|
|
3251
3257
|
], 64))), 128))
|
|
3252
3258
|
], 64))), 128))
|
|
3253
3259
|
])) : (s(), r("g", Li, [
|
|
3254
|
-
(s(!0), r(
|
|
3260
|
+
(s(!0), r(b, null, C(Pe.value, (e, n) => (s(), r(b, {
|
|
3255
3261
|
key: `xLabel_line_${e.id}`
|
|
3256
3262
|
}, [
|
|
3257
|
-
(s(!0), r(
|
|
3263
|
+
(s(!0), r(b, null, C(e.plots, (a, i) => (s(), r(b, {
|
|
3258
3264
|
key: `xLabel_line_${n}_${i}`
|
|
3259
3265
|
}, [
|
|
3260
|
-
t.value.line.tag.followValue ? (s(), r(
|
|
3261
|
-
[
|
|
3266
|
+
t.value.line.tag.followValue ? (s(), r(b, { key: 1 }, [
|
|
3267
|
+
[O.value, L.value, ft.value].includes(i) && e.useTag ? (s(), r("line", {
|
|
3262
3268
|
key: 0,
|
|
3263
3269
|
class: "vue-ui-xy-tag-line",
|
|
3264
3270
|
x1: c.value.left,
|
|
@@ -3270,18 +3276,18 @@ const xn = {
|
|
|
3270
3276
|
"stroke-dasharray": "2",
|
|
3271
3277
|
stroke: e.color
|
|
3272
3278
|
}, null, 8, Ti)) : f("", !0)
|
|
3273
|
-
], 64)) : (s(), r(
|
|
3279
|
+
], 64)) : (s(), r(b, { key: 0 }, [
|
|
3274
3280
|
a && i === 0 && e.useTag && e.useTag === "start" ? (s(), r("foreignObject", {
|
|
3275
3281
|
key: 0,
|
|
3276
3282
|
x: a.x,
|
|
3277
3283
|
y: a.y - 20,
|
|
3278
3284
|
height: 24,
|
|
3279
3285
|
width: "150",
|
|
3280
|
-
style:
|
|
3286
|
+
style: _(`overflow: visible; opacity:${P.value ? P.value === e.groupId ? 1 : 0.2 : 1};transition:opacity 0.2s ease-in-out`)
|
|
3281
3287
|
}, [
|
|
3282
3288
|
y("div", {
|
|
3283
|
-
style:
|
|
3284
|
-
innerHTML: v(
|
|
3289
|
+
style: _(`padding: 3px; background:${v(nt)(e.color, 80)};color:${v(ut)(e.color)};width:fit-content;font-size:${w.value.plotLabels}px;border-radius: 2px;`),
|
|
3290
|
+
innerHTML: v(Le)(
|
|
3285
3291
|
t.value.line.tag.formatter,
|
|
3286
3292
|
a.value,
|
|
3287
3293
|
e.name,
|
|
@@ -3299,11 +3305,11 @@ const xn = {
|
|
|
3299
3305
|
y: a.y - 20,
|
|
3300
3306
|
height: 24,
|
|
3301
3307
|
width: "150",
|
|
3302
|
-
style:
|
|
3308
|
+
style: _(`overflow: visible; opacity:${P.value ? P.value === e.groupId ? 1 : 0.2 : 1};transition:opacity 0.2s ease-in-out`)
|
|
3303
3309
|
}, [
|
|
3304
3310
|
y("div", {
|
|
3305
|
-
style:
|
|
3306
|
-
innerHTML: v(
|
|
3311
|
+
style: _(`padding: 3px; background:${v(nt)(e.color, 80)};color:${v(ut)(e.color)};width:fit-content;font-size:${w.value.plotLabels}px;border-radius: 2px;`),
|
|
3312
|
+
innerHTML: v(Le)(
|
|
3307
3313
|
t.value.line.tag.formatter,
|
|
3308
3314
|
a.value,
|
|
3309
3315
|
e.name,
|
|
@@ -3319,93 +3325,93 @@ const xn = {
|
|
|
3319
3325
|
], 64))), 128))
|
|
3320
3326
|
], 64))), 128))
|
|
3321
3327
|
])),
|
|
3322
|
-
(s(!0), r(
|
|
3328
|
+
(s(!0), r(b, null, C(Pe.value, (e, n) => (s(), r(b, {
|
|
3323
3329
|
key: `xLabel_line_${e.id}`
|
|
3324
3330
|
}, [
|
|
3325
|
-
(s(!0), r(
|
|
3331
|
+
(s(!0), r(b, null, C(e.plots, (a, i) => (s(), r(b, {
|
|
3326
3332
|
key: `xLabel_line_${n}_${i}`
|
|
3327
3333
|
}, [
|
|
3328
3334
|
a && i === 0 && e.showSerieName && e.showSerieName === "start" ? (s(), r("text", {
|
|
3329
3335
|
key: 0,
|
|
3330
|
-
x: a.x -
|
|
3336
|
+
x: a.x - w.value.plotLabels,
|
|
3331
3337
|
y: a.y,
|
|
3332
|
-
"font-size":
|
|
3338
|
+
"font-size": w.value.plotLabels,
|
|
3333
3339
|
"text-anchor": "end",
|
|
3334
3340
|
fill: e.color,
|
|
3335
3341
|
innerHTML: v(Vl)({
|
|
3336
3342
|
content: e.name,
|
|
3337
|
-
fontSize:
|
|
3343
|
+
fontSize: w.value.plotLabels,
|
|
3338
3344
|
fill: e.color,
|
|
3339
|
-
x: a.x -
|
|
3345
|
+
x: a.x - w.value.plotLabels,
|
|
3340
3346
|
y: a.y,
|
|
3341
3347
|
maxWords: 2
|
|
3342
3348
|
}),
|
|
3343
|
-
style:
|
|
3349
|
+
style: _(`opacity:${P.value ? P.value === e.groupId ? 1 : 0.2 : 1};transition:opacity 0.2s ease-in-out`)
|
|
3344
3350
|
}, null, 12, Ii)) : f("", !0),
|
|
3345
3351
|
a && i === e.plots.length - 1 && e.showSerieName && e.showSerieName === "end" ? (s(), r("text", {
|
|
3346
3352
|
key: 1,
|
|
3347
|
-
x: a.x +
|
|
3353
|
+
x: a.x + w.value.plotLabels,
|
|
3348
3354
|
y: a.y,
|
|
3349
|
-
"font-size":
|
|
3355
|
+
"font-size": w.value.plotLabels,
|
|
3350
3356
|
"text-anchor": "start",
|
|
3351
3357
|
fill: e.color,
|
|
3352
3358
|
innerHTML: v(Vl)({
|
|
3353
3359
|
content: e.name,
|
|
3354
|
-
fontSize:
|
|
3360
|
+
fontSize: w.value.plotLabels,
|
|
3355
3361
|
fill: e.color,
|
|
3356
|
-
x: a.x +
|
|
3362
|
+
x: a.x + w.value.plotLabels,
|
|
3357
3363
|
y: a.y,
|
|
3358
3364
|
maxWords: 2
|
|
3359
3365
|
}),
|
|
3360
|
-
style:
|
|
3366
|
+
style: _(`opacity:${P.value ? P.value === e.groupId ? 1 : 0.2 : 1};transition:opacity 0.2s ease-in-out`)
|
|
3361
3367
|
}, null, 12, Ni)) : f("", !0)
|
|
3362
3368
|
], 64))), 128))
|
|
3363
3369
|
], 64))), 128)),
|
|
3364
|
-
(s(!0), r(
|
|
3370
|
+
(s(!0), r(b, null, C(ot.value, (e, n) => (s(), r(b, {
|
|
3365
3371
|
key: `xLabel_plot_${e.id}`
|
|
3366
3372
|
}, [
|
|
3367
|
-
(s(!0), r(
|
|
3373
|
+
(s(!0), r(b, null, C(e.plots, (a, i) => (s(), r(b, {
|
|
3368
3374
|
key: `xLabel_plot_${n}_${i}`
|
|
3369
3375
|
}, [
|
|
3370
3376
|
a && i === 0 && e.showSerieName && e.showSerieName === "start" ? (s(), r("text", {
|
|
3371
3377
|
key: 0,
|
|
3372
|
-
x: a.x -
|
|
3378
|
+
x: a.x - w.value.plotLabels,
|
|
3373
3379
|
y: a.y,
|
|
3374
|
-
"font-size":
|
|
3380
|
+
"font-size": w.value.plotLabels,
|
|
3375
3381
|
"text-anchor": "end",
|
|
3376
3382
|
fill: e.color,
|
|
3377
3383
|
innerHTML: v(Vl)({
|
|
3378
3384
|
content: e.name,
|
|
3379
|
-
fontSize:
|
|
3385
|
+
fontSize: w.value.plotLabels,
|
|
3380
3386
|
fill: e.color,
|
|
3381
|
-
x: a.x -
|
|
3387
|
+
x: a.x - w.value.plotLabels,
|
|
3382
3388
|
y: a.y,
|
|
3383
3389
|
maxWords: 2
|
|
3384
3390
|
}),
|
|
3385
|
-
style:
|
|
3391
|
+
style: _(`opacity:${P.value ? P.value === e.groupId ? 1 : 0.2 : 1};transition:opacity 0.2s ease-in-out`)
|
|
3386
3392
|
}, null, 12, Ri)) : f("", !0),
|
|
3387
3393
|
a && i === e.plots.length - 1 && e.showSerieName && e.showSerieName === "end" ? (s(), r("text", {
|
|
3388
3394
|
key: 1,
|
|
3389
|
-
x: a.x +
|
|
3395
|
+
x: a.x + w.value.plotLabels,
|
|
3390
3396
|
y: a.y,
|
|
3391
|
-
"font-size":
|
|
3397
|
+
"font-size": w.value.plotLabels,
|
|
3392
3398
|
"text-anchor": "start",
|
|
3393
3399
|
fill: e.color,
|
|
3394
3400
|
innerHTML: v(Vl)({
|
|
3395
3401
|
content: e.name,
|
|
3396
|
-
fontSize:
|
|
3402
|
+
fontSize: w.value.plotLabels,
|
|
3397
3403
|
fill: e.color,
|
|
3398
|
-
x: a.x +
|
|
3404
|
+
x: a.x + w.value.plotLabels,
|
|
3399
3405
|
y: a.y,
|
|
3400
3406
|
maxWords: 2
|
|
3401
3407
|
}),
|
|
3402
|
-
style:
|
|
3403
|
-
}, null, 12,
|
|
3408
|
+
style: _(`opacity:${P.value ? P.value === e.groupId ? 1 : 0.2 : 1};transition:opacity 0.2s ease-in-out`)
|
|
3409
|
+
}, null, 12, Fi)) : f("", !0)
|
|
3404
3410
|
], 64))), 128))
|
|
3405
3411
|
], 64))), 128)),
|
|
3406
|
-
k.value.useIndividualScale && !k.value.isStacked ? (s(), r(
|
|
3412
|
+
k.value.useIndividualScale && !k.value.isStacked ? (s(), r(b, { key: 13 }, [
|
|
3407
3413
|
y("defs", null, [
|
|
3408
|
-
(s(!0), r(
|
|
3414
|
+
(s(!0), r(b, null, C(wl.value, (e, n) => (s(), r("linearGradient", {
|
|
3409
3415
|
id: `individual_scale_gradient_${Z.value}_${n}`,
|
|
3410
3416
|
x1: "0%",
|
|
3411
3417
|
x2: "100%",
|
|
@@ -3416,30 +3422,30 @@ const xn = {
|
|
|
3416
3422
|
offset: "0%",
|
|
3417
3423
|
"stop-color": t.value.chart.backgroundColor,
|
|
3418
3424
|
"stop-opacity": "0"
|
|
3419
|
-
}, null, 8,
|
|
3425
|
+
}, null, 8, Oi),
|
|
3420
3426
|
y("stop", {
|
|
3421
3427
|
offset: "100%",
|
|
3422
3428
|
"stop-color": e.color,
|
|
3423
3429
|
"stop-opacity": "0.2"
|
|
3424
3430
|
}, null, 8, Bi)
|
|
3425
|
-
], 8,
|
|
3431
|
+
], 8, Pi))), 256))
|
|
3426
3432
|
]),
|
|
3427
|
-
(s(!0), r(
|
|
3433
|
+
(s(!0), r(b, null, C(wl.value, (e, n) => (s(), r("rect", {
|
|
3428
3434
|
x: e.x - t.value.chart.grid.labels.yAxis.labelWidth + te.value - c.value.individualOffsetX,
|
|
3429
3435
|
y: c.value.top,
|
|
3430
3436
|
width: t.value.chart.grid.labels.yAxis.labelWidth + c.value.individualOffsetX,
|
|
3431
3437
|
height: c.value.height < 0 ? 10 : c.value.height,
|
|
3432
|
-
fill:
|
|
3433
|
-
onMouseenter: (a) =>
|
|
3434
|
-
onMouseleave: u[0] || (u[0] = (a) =>
|
|
3438
|
+
fill: P.value === e.groupId ? `url(#individual_scale_gradient_${Z.value}_${n})` : "transparent",
|
|
3439
|
+
onMouseenter: (a) => P.value = e.groupId,
|
|
3440
|
+
onMouseleave: u[0] || (u[0] = (a) => P.value = null)
|
|
3435
3441
|
}, null, 40, Hi))), 256))
|
|
3436
3442
|
], 64)) : f("", !0),
|
|
3437
3443
|
y("g", null, [
|
|
3438
3444
|
t.value.chart.grid.labels.axis.yLabel && !k.value.useIndividualScale ? (s(), r("text", {
|
|
3439
3445
|
key: 0,
|
|
3440
3446
|
ref_key: "yAxisLabel",
|
|
3441
|
-
ref:
|
|
3442
|
-
"font-size":
|
|
3447
|
+
ref: Ut,
|
|
3448
|
+
"font-size": w.value.yAxis,
|
|
3443
3449
|
fill: t.value.chart.grid.labels.color,
|
|
3444
3450
|
transform: `translate(${t.value.chart.grid.labels.axis.fontSize}, ${c.value.top + c.value.height / 2}) rotate(-90)`,
|
|
3445
3451
|
"text-anchor": "middle",
|
|
@@ -3452,46 +3458,46 @@ const xn = {
|
|
|
3452
3458
|
"text-anchor": "middle",
|
|
3453
3459
|
x: ee.value / 2,
|
|
3454
3460
|
y: ye.value - 3,
|
|
3455
|
-
"font-size":
|
|
3461
|
+
"font-size": w.value.yAxis,
|
|
3456
3462
|
fill: t.value.chart.grid.labels.color
|
|
3457
3463
|
}, ne(t.value.chart.grid.labels.axis.xLabel), 9, Ei)) : f("", !0)
|
|
3458
3464
|
]),
|
|
3459
3465
|
t.value.chart.grid.labels.xAxisLabels.show ? (s(), r("g", {
|
|
3460
3466
|
key: 14,
|
|
3461
3467
|
ref_key: "timeLabelsEls",
|
|
3462
|
-
ref:
|
|
3468
|
+
ref: ht
|
|
3463
3469
|
}, [
|
|
3464
|
-
l.$slots["time-label"] ? (s(!0), r(
|
|
3470
|
+
l.$slots["time-label"] ? (s(!0), r(b, { key: 0 }, C(Jl.value, (e, n) => Q(l.$slots, "time-label", Ll({
|
|
3465
3471
|
key: `time_label_${e.id}`,
|
|
3466
3472
|
ref_for: !0
|
|
3467
3473
|
}, {
|
|
3468
3474
|
x: c.value.left + c.value.width / T.value * n + c.value.width / T.value / 2,
|
|
3469
3475
|
y: c.value.bottom,
|
|
3470
|
-
fontSize:
|
|
3476
|
+
fontSize: w.value.xAxis,
|
|
3471
3477
|
fill: t.value.chart.grid.labels.xAxisLabels.color,
|
|
3472
|
-
transform: `translate(${c.value.left + c.value.width / T.value * n + c.value.width / T.value / 2}, ${c.value.bottom +
|
|
3478
|
+
transform: `translate(${c.value.left + c.value.width / T.value * n + c.value.width / T.value / 2}, ${c.value.bottom + w.value.xAxis * 1.3 + t.value.chart.grid.labels.xAxisLabels.yOffset}), rotate(${t.value.chart.grid.labels.xAxisLabels.rotation})`,
|
|
3473
3479
|
absoluteIndex: e.absoluteIndex,
|
|
3474
3480
|
content: e.text,
|
|
3475
3481
|
textAnchor: t.value.chart.grid.labels.xAxisLabels.rotation > 0 ? "start" : t.value.chart.grid.labels.xAxisLabels.rotation < 0 ? "end" : "middle",
|
|
3476
3482
|
show: e && e.text
|
|
3477
|
-
}), void 0, !0)), 128)) : (s(!0), r(
|
|
3483
|
+
}), void 0, !0)), 128)) : (s(!0), r(b, { key: 1 }, C(Jl.value, (e, n) => (s(), r("g", {
|
|
3478
3484
|
key: `time_label_${n}`
|
|
3479
3485
|
}, [
|
|
3480
|
-
e && e.text ? (s(), r(
|
|
3486
|
+
e && e.text ? (s(), r(b, { key: 0 }, [
|
|
3481
3487
|
String(e.text).includes(`
|
|
3482
3488
|
`) ? (s(), r("text", {
|
|
3483
3489
|
key: 1,
|
|
3484
3490
|
class: "vue-data-ui-time-label",
|
|
3485
3491
|
"text-anchor": t.value.chart.grid.labels.xAxisLabels.rotation > 0 ? "start" : t.value.chart.grid.labels.xAxisLabels.rotation < 0 ? "end" : "middle",
|
|
3486
|
-
"font-size":
|
|
3492
|
+
"font-size": w.value.xAxis,
|
|
3487
3493
|
fill: t.value.chart.grid.labels.xAxisLabels.color,
|
|
3488
|
-
transform: `translate(${c.value.left + c.value.width / T.value * n + c.value.width / T.value / 2}, ${c.value.bottom +
|
|
3489
|
-
style:
|
|
3494
|
+
transform: `translate(${c.value.left + c.value.width / T.value * n + c.value.width / T.value / 2}, ${c.value.bottom + w.value.xAxis * 1.5}), rotate(${t.value.chart.grid.labels.xAxisLabels.rotation})`,
|
|
3495
|
+
style: _({
|
|
3490
3496
|
cursor: ca() ? "pointer" : "default"
|
|
3491
3497
|
}),
|
|
3492
3498
|
innerHTML: v(en)({
|
|
3493
3499
|
content: String(e.text),
|
|
3494
|
-
fontSize:
|
|
3500
|
+
fontSize: w.value.xAxis,
|
|
3495
3501
|
fill: t.value.chart.grid.labels.xAxisLabels.color,
|
|
3496
3502
|
x: 0,
|
|
3497
3503
|
y: 0
|
|
@@ -3501,10 +3507,10 @@ const xn = {
|
|
|
3501
3507
|
key: 0,
|
|
3502
3508
|
class: "vue-data-ui-time-label",
|
|
3503
3509
|
"text-anchor": t.value.chart.grid.labels.xAxisLabels.rotation > 0 ? "start" : t.value.chart.grid.labels.xAxisLabels.rotation < 0 ? "end" : "middle",
|
|
3504
|
-
"font-size":
|
|
3510
|
+
"font-size": w.value.xAxis,
|
|
3505
3511
|
fill: t.value.chart.grid.labels.xAxisLabels.color,
|
|
3506
|
-
transform: `translate(${c.value.left + c.value.width / T.value * n + c.value.width / T.value / 2}, ${c.value.bottom +
|
|
3507
|
-
style:
|
|
3512
|
+
transform: `translate(${c.value.left + c.value.width / T.value * n + c.value.width / T.value / 2}, ${c.value.bottom + w.value.xAxis * 1.5}), rotate(${t.value.chart.grid.labels.xAxisLabels.rotation})`,
|
|
3513
|
+
style: _({
|
|
3508
3514
|
cursor: ca() ? "pointer" : "default"
|
|
3509
3515
|
}),
|
|
3510
3516
|
onClick: () => ma(e, n)
|
|
@@ -3513,7 +3519,7 @@ const xn = {
|
|
|
3513
3519
|
]))), 128))
|
|
3514
3520
|
], 512)) : f("", !0),
|
|
3515
3521
|
Ca.value.length && !k.value.isStacked ? (s(), r("g", Xi, [
|
|
3516
|
-
(s(!0), r(
|
|
3522
|
+
(s(!0), r(b, null, C(Ca.value, (e) => (s(), r("g", {
|
|
3517
3523
|
key: e.uid
|
|
3518
3524
|
}, [
|
|
3519
3525
|
e.yTop && e.show && isFinite(e.yTop) ? (s(), r("line", {
|
|
@@ -3546,10 +3552,10 @@ const xn = {
|
|
|
3546
3552
|
x: e.x1,
|
|
3547
3553
|
width: c.value.width,
|
|
3548
3554
|
height: v(W)(e.areaHeight, 0),
|
|
3549
|
-
fill: v(
|
|
3555
|
+
fill: v(nt)(e.config.area.fill, e.config.area.opacity),
|
|
3550
3556
|
style: { animation: "none !important" }
|
|
3551
3557
|
}, null, 8, Ui)) : f("", !0),
|
|
3552
|
-
e.config.label.text && e.show && isFinite(e._box.y) ? (s(), r("rect",
|
|
3558
|
+
e.config.label.text && e.show && isFinite(e._box.y) ? (s(), r("rect", Ll({
|
|
3553
3559
|
key: 3,
|
|
3554
3560
|
class: "vue-ui-xy-annotation-label-box"
|
|
3555
3561
|
}, { ref_for: !0 }, e._box, { style: { animation: "none !important", transition: "none !important" } }), null, 16)) : f("", !0),
|
|
@@ -3565,7 +3571,7 @@ const xn = {
|
|
|
3565
3571
|
}, ne(e.config.label.text), 9, qi)) : f("", !0)
|
|
3566
3572
|
]))), 128))
|
|
3567
3573
|
])) : f("", !0),
|
|
3568
|
-
t.value.chart.timeTag.show && (![null, void 0].includes(
|
|
3574
|
+
t.value.chart.timeTag.show && (![null, void 0].includes(L.value) || ![null, void 0].includes(O.value)) ? (s(), r("g", Zi, [
|
|
3569
3575
|
(s(), r("foreignObject", {
|
|
3570
3576
|
x: Io(),
|
|
3571
3577
|
y: c.value.bottom,
|
|
@@ -3577,60 +3583,60 @@ const xn = {
|
|
|
3577
3583
|
ref_key: "timeTagEl",
|
|
3578
3584
|
ref: Ea,
|
|
3579
3585
|
class: "vue-ui-xy-time-tag",
|
|
3580
|
-
style:
|
|
3586
|
+
style: _(`width: fit-content;margin: 0 auto;text-align:center;padding:3px 12px;background:${t.value.chart.timeTag.backgroundColor};color:${t.value.chart.timeTag.color};font-size:${t.value.chart.timeTag.fontSize}px`),
|
|
3581
3587
|
innerHTML: No.value
|
|
3582
3588
|
}, null, 12, Ji)
|
|
3583
3589
|
], 8, Ki)),
|
|
3584
3590
|
y("circle", {
|
|
3585
|
-
cx: c.value.left + c.value.width / T.value * ((
|
|
3591
|
+
cx: c.value.left + c.value.width / T.value * ((L.value !== null ? L.value : 0) || (O.value !== null ? O.value : 0)) + c.value.width / T.value / 2,
|
|
3586
3592
|
cy: c.value.bottom,
|
|
3587
3593
|
r: t.value.chart.timeTag.circleMarker.radius,
|
|
3588
3594
|
fill: t.value.chart.timeTag.circleMarker.color
|
|
3589
3595
|
}, null, 8, Qi)
|
|
3590
3596
|
])) : f("", !0)
|
|
3591
3597
|
])) : f("", !0),
|
|
3592
|
-
|
|
3598
|
+
yl.value ? (s(), r("rect", Ll({ key: 2 }, el.value, {
|
|
3593
3599
|
"data-start": p.value.start,
|
|
3594
3600
|
"data-end": p.value.end
|
|
3595
3601
|
}), null, 16, ji)) : f("", !0),
|
|
3596
|
-
Q(l.$slots, "svg", { svg:
|
|
3602
|
+
Q(l.$slots, "svg", { svg: Al.value }, void 0, !0)
|
|
3597
3603
|
], 512)
|
|
3598
3604
|
], 46, Dn)),
|
|
3599
3605
|
l.$slots.watermark ? (s(), r("div", es, [
|
|
3600
|
-
Q(l.$slots, "watermark", zt(
|
|
3606
|
+
Q(l.$slots, "watermark", At(zt({ isPrinting: v(ie) || v(m) })), void 0, !0)
|
|
3601
3607
|
])) : f("", !0),
|
|
3602
|
-
(s(!0), r(
|
|
3608
|
+
(s(!0), r(b, null, C(Pe.value, (e, n) => (s(), r(b, {
|
|
3603
3609
|
key: `tag_line_${e.id}`
|
|
3604
3610
|
}, [
|
|
3605
|
-
(s(!0), r(
|
|
3611
|
+
(s(!0), r(b, null, C(e.plots, (a, i) => (s(), r(b, {
|
|
3606
3612
|
key: `tag_line_${n}_${i}`
|
|
3607
3613
|
}, [
|
|
3608
|
-
[
|
|
3614
|
+
[O.value, L.value, ft.value].includes(i) && e.useTag && e.useTag === "end" && t.value.line.tag.followValue ? (s(), r("div", {
|
|
3609
3615
|
key: 0,
|
|
3610
3616
|
ref_for: !0,
|
|
3611
3617
|
ref: (o) => zl(n, i, o, "right", "line"),
|
|
3612
3618
|
class: "vue-ui-xy-tag",
|
|
3613
3619
|
"data-tag": "right",
|
|
3614
|
-
style:
|
|
3620
|
+
style: _({
|
|
3615
3621
|
position: "fixed",
|
|
3616
|
-
top: v(
|
|
3617
|
-
svgElement:
|
|
3622
|
+
top: v(Tt)({
|
|
3623
|
+
svgElement: Ae.value,
|
|
3618
3624
|
x: c.value.right + t.value.line.tag.fontSize / 1.5,
|
|
3619
3625
|
y: a.y,
|
|
3620
|
-
element:
|
|
3626
|
+
element: et.value[`${n}_${i}_right_line`],
|
|
3621
3627
|
position: "right"
|
|
3622
3628
|
}).top + "px",
|
|
3623
|
-
left: v(
|
|
3624
|
-
svgElement:
|
|
3629
|
+
left: v(Tt)({
|
|
3630
|
+
svgElement: Ae.value,
|
|
3625
3631
|
x: c.value.right + t.value.line.tag.fontSize / 1.5,
|
|
3626
3632
|
y: a.y,
|
|
3627
|
-
element:
|
|
3633
|
+
element: et.value[`${n}_${i}_right_line`],
|
|
3628
3634
|
position: "right"
|
|
3629
3635
|
}).left + "px",
|
|
3630
3636
|
height: "fit-content",
|
|
3631
3637
|
width: "fit-content",
|
|
3632
3638
|
background: e.color,
|
|
3633
|
-
color: v(
|
|
3639
|
+
color: v(ut)(e.color),
|
|
3634
3640
|
padding: "0 6px",
|
|
3635
3641
|
fontSize: t.value.line.tag.fontSize + "px",
|
|
3636
3642
|
opacity: 1
|
|
@@ -3645,7 +3651,7 @@ const xn = {
|
|
|
3645
3651
|
])),
|
|
3646
3652
|
y("div", {
|
|
3647
3653
|
class: "vue-ui-xy-tag-content",
|
|
3648
|
-
innerHTML: v(
|
|
3654
|
+
innerHTML: v(Le)(
|
|
3649
3655
|
t.value.line.tag.formatter,
|
|
3650
3656
|
a.value,
|
|
3651
3657
|
e.name,
|
|
@@ -3657,32 +3663,32 @@ const xn = {
|
|
|
3657
3663
|
)
|
|
3658
3664
|
}, null, 8, as)
|
|
3659
3665
|
], 4)) : f("", !0),
|
|
3660
|
-
[
|
|
3666
|
+
[O.value, L.value, ft.value].includes(i) && e.useTag && e.useTag === "start" && t.value.line.tag.followValue ? (s(), r("div", {
|
|
3661
3667
|
key: 1,
|
|
3662
3668
|
ref_for: !0,
|
|
3663
3669
|
ref: (o) => zl(n, i, o, "left", "line"),
|
|
3664
3670
|
class: "vue-ui-xy-tag",
|
|
3665
3671
|
"data-tag": "left",
|
|
3666
|
-
style:
|
|
3672
|
+
style: _({
|
|
3667
3673
|
position: "fixed",
|
|
3668
|
-
top: v(
|
|
3669
|
-
svgElement:
|
|
3674
|
+
top: v(Tt)({
|
|
3675
|
+
svgElement: Ae.value,
|
|
3670
3676
|
x: c.value.left - t.value.line.tag.fontSize / 1.5,
|
|
3671
3677
|
y: a.y,
|
|
3672
|
-
element:
|
|
3678
|
+
element: et.value[`${n}_${i}_left_line`],
|
|
3673
3679
|
position: "left"
|
|
3674
3680
|
}).top + "px",
|
|
3675
|
-
left: v(
|
|
3676
|
-
svgElement:
|
|
3681
|
+
left: v(Tt)({
|
|
3682
|
+
svgElement: Ae.value,
|
|
3677
3683
|
x: c.value.left - t.value.line.tag.fontSize / 1.5,
|
|
3678
3684
|
y: a.y,
|
|
3679
|
-
element:
|
|
3685
|
+
element: et.value[`${n}_${i}_left_line`],
|
|
3680
3686
|
position: "left"
|
|
3681
3687
|
}).left + "px",
|
|
3682
3688
|
height: "fit-content",
|
|
3683
3689
|
width: "fit-content",
|
|
3684
3690
|
background: e.color,
|
|
3685
|
-
color: v(
|
|
3691
|
+
color: v(ut)(e.color),
|
|
3686
3692
|
padding: "0 6px",
|
|
3687
3693
|
fontSize: t.value.line.tag.fontSize + "px",
|
|
3688
3694
|
opacity: 1
|
|
@@ -3697,7 +3703,7 @@ const xn = {
|
|
|
3697
3703
|
])),
|
|
3698
3704
|
y("div", {
|
|
3699
3705
|
class: "vue-ui-xy-tag-content",
|
|
3700
|
-
innerHTML: v(
|
|
3706
|
+
innerHTML: v(Le)(
|
|
3701
3707
|
t.value.line.tag.formatter,
|
|
3702
3708
|
a.value,
|
|
3703
3709
|
e.name,
|
|
@@ -3711,38 +3717,38 @@ const xn = {
|
|
|
3711
3717
|
], 4)) : f("", !0)
|
|
3712
3718
|
], 64))), 128))
|
|
3713
3719
|
], 64))), 128)),
|
|
3714
|
-
(s(!0), r(
|
|
3720
|
+
(s(!0), r(b, null, C(ot.value, (e, n) => (s(), r(b, {
|
|
3715
3721
|
key: `tag_plot_${e.id}`
|
|
3716
3722
|
}, [
|
|
3717
|
-
(s(!0), r(
|
|
3723
|
+
(s(!0), r(b, null, C(e.plots, (a, i) => (s(), r(b, {
|
|
3718
3724
|
key: `tag_plot_${n}_${i}`
|
|
3719
3725
|
}, [
|
|
3720
|
-
[
|
|
3726
|
+
[O.value, L.value, ft.value].includes(i) && e.useTag && e.useTag === "end" && t.value.plot.tag.followValue ? (s(), r("div", {
|
|
3721
3727
|
key: 0,
|
|
3722
3728
|
ref_for: !0,
|
|
3723
3729
|
ref: (o) => zl(n, i, o, "right", "plot"),
|
|
3724
3730
|
class: "vue-ui-xy-tag",
|
|
3725
3731
|
"data-tag": "right",
|
|
3726
|
-
style:
|
|
3732
|
+
style: _({
|
|
3727
3733
|
position: "fixed",
|
|
3728
|
-
top: v(
|
|
3729
|
-
svgElement:
|
|
3734
|
+
top: v(Tt)({
|
|
3735
|
+
svgElement: Ae.value,
|
|
3730
3736
|
x: c.value.right + t.value.plot.tag.fontSize / 1.5,
|
|
3731
3737
|
y: a.y,
|
|
3732
|
-
element:
|
|
3738
|
+
element: et.value[`${n}_${i}_right_plot`],
|
|
3733
3739
|
position: "right"
|
|
3734
3740
|
}).top + "px",
|
|
3735
|
-
left: v(
|
|
3736
|
-
svgElement:
|
|
3741
|
+
left: v(Tt)({
|
|
3742
|
+
svgElement: Ae.value,
|
|
3737
3743
|
x: c.value.right + t.value.plot.tag.fontSize / 1.5,
|
|
3738
3744
|
y: a.y,
|
|
3739
|
-
element:
|
|
3745
|
+
element: et.value[`${n}_${i}_right_plot`],
|
|
3740
3746
|
position: "right"
|
|
3741
3747
|
}).left + "px",
|
|
3742
3748
|
height: "fit-content",
|
|
3743
3749
|
width: "fit-content",
|
|
3744
3750
|
background: e.color,
|
|
3745
|
-
color: v(
|
|
3751
|
+
color: v(ut)(e.color),
|
|
3746
3752
|
padding: "0 6px",
|
|
3747
3753
|
fontSize: t.value.plot.tag.fontSize + "px",
|
|
3748
3754
|
opacity: 1
|
|
@@ -3757,7 +3763,7 @@ const xn = {
|
|
|
3757
3763
|
])),
|
|
3758
3764
|
y("div", {
|
|
3759
3765
|
class: "vue-ui-xy-tag-content",
|
|
3760
|
-
innerHTML: v(
|
|
3766
|
+
innerHTML: v(Le)(
|
|
3761
3767
|
t.value.plot.tag.formatter,
|
|
3762
3768
|
a.value,
|
|
3763
3769
|
e.name,
|
|
@@ -3769,32 +3775,32 @@ const xn = {
|
|
|
3769
3775
|
)
|
|
3770
3776
|
}, null, 8, rs)
|
|
3771
3777
|
], 4)) : f("", !0),
|
|
3772
|
-
[
|
|
3778
|
+
[O.value, L.value, ft.value].includes(i) && e.useTag && e.useTag === "start" && t.value.plot.tag.followValue ? (s(), r("div", {
|
|
3773
3779
|
key: 1,
|
|
3774
3780
|
ref_for: !0,
|
|
3775
3781
|
ref: (o) => zl(n, i, o, "left", "plot"),
|
|
3776
3782
|
class: "vue-ui-xy-tag",
|
|
3777
3783
|
"data-tag": "left",
|
|
3778
|
-
style:
|
|
3784
|
+
style: _({
|
|
3779
3785
|
position: "fixed",
|
|
3780
|
-
top: v(
|
|
3781
|
-
svgElement:
|
|
3786
|
+
top: v(Tt)({
|
|
3787
|
+
svgElement: Ae.value,
|
|
3782
3788
|
x: c.value.left - t.value.plot.tag.fontSize / 1.5,
|
|
3783
3789
|
y: a.y,
|
|
3784
|
-
element:
|
|
3790
|
+
element: et.value[`${n}_${i}_left_plot`],
|
|
3785
3791
|
position: "left"
|
|
3786
3792
|
}).top + "px",
|
|
3787
|
-
left: v(
|
|
3788
|
-
svgElement:
|
|
3793
|
+
left: v(Tt)({
|
|
3794
|
+
svgElement: Ae.value,
|
|
3789
3795
|
x: c.value.left - t.value.plot.tag.fontSize / 1.5,
|
|
3790
3796
|
y: a.y,
|
|
3791
|
-
element:
|
|
3797
|
+
element: et.value[`${n}_${i}_left_plot`],
|
|
3792
3798
|
position: "left"
|
|
3793
3799
|
}).left + "px",
|
|
3794
3800
|
height: "fit-content",
|
|
3795
3801
|
width: "fit-content",
|
|
3796
3802
|
background: e.color,
|
|
3797
|
-
color: v(
|
|
3803
|
+
color: v(ut)(e.color),
|
|
3798
3804
|
padding: "0 6px",
|
|
3799
3805
|
fontSize: t.value.plot.tag.fontSize + "px",
|
|
3800
3806
|
opacity: 1
|
|
@@ -3809,7 +3815,7 @@ const xn = {
|
|
|
3809
3815
|
])),
|
|
3810
3816
|
y("div", {
|
|
3811
3817
|
class: "vue-ui-xy-tag-content",
|
|
3812
|
-
innerHTML: v(
|
|
3818
|
+
innerHTML: v(Le)(
|
|
3813
3819
|
t.value.plot.tag.formatter,
|
|
3814
3820
|
a.value,
|
|
3815
3821
|
e.name,
|
|
@@ -3823,12 +3829,12 @@ const xn = {
|
|
|
3823
3829
|
], 4)) : f("", !0)
|
|
3824
3830
|
], 64))), 128))
|
|
3825
3831
|
], 64))), 128)),
|
|
3826
|
-
t.value.chart.zoom.preview.enable ? (s(), r(
|
|
3827
|
-
t.value.chart.zoom.show &&
|
|
3832
|
+
t.value.chart.zoom.preview.enable ? (s(), r(b, { key: 5 }, [
|
|
3833
|
+
t.value.chart.zoom.show && ze.value > 6 && Qt.value ? (s(), Je(Hn, {
|
|
3828
3834
|
ref_key: "chartSlicer",
|
|
3829
|
-
ref:
|
|
3830
|
-
key: `slicer_${
|
|
3831
|
-
max:
|
|
3835
|
+
ref: He,
|
|
3836
|
+
key: `slicer_${St.value}`,
|
|
3837
|
+
max: ze.value,
|
|
3832
3838
|
min: 0,
|
|
3833
3839
|
valueStart: p.value.start,
|
|
3834
3840
|
valueEnd: p.value.end,
|
|
@@ -3841,8 +3847,8 @@ const xn = {
|
|
|
3841
3847
|
background: t.value.chart.zoom.color,
|
|
3842
3848
|
fontSize: t.value.chart.zoom.fontSize,
|
|
3843
3849
|
useResetSlot: t.value.chart.zoom.useResetSlot,
|
|
3844
|
-
labelLeft:
|
|
3845
|
-
labelRight:
|
|
3850
|
+
labelLeft: _e.value[0] ? _e.value[0].text : "",
|
|
3851
|
+
labelRight: _e.value.at(-1) ? _e.value.at(-1).text : "",
|
|
3846
3852
|
textColor: t.value.chart.color,
|
|
3847
3853
|
usePreciseLabels: t.value.chart.grid.labels.xAxisLabels.datetimeFormatter.enable && !t.value.chart.zoom.useDefaultFormat,
|
|
3848
3854
|
preciseLabels: ea.value,
|
|
@@ -3855,31 +3861,31 @@ const xn = {
|
|
|
3855
3861
|
minimapSelectionRadius: t.value.chart.zoom.minimap.selectionRadius,
|
|
3856
3862
|
minimapLineColor: t.value.chart.zoom.minimap.lineColor,
|
|
3857
3863
|
minimapSelectedColorOpacity: t.value.chart.zoom.minimap.selectedColorOpacity,
|
|
3858
|
-
minimapSelectedIndex:
|
|
3864
|
+
minimapSelectedIndex: L.value,
|
|
3859
3865
|
minimapIndicatorColor: t.value.chart.zoom.minimap.indicatorColor,
|
|
3860
3866
|
verticalHandles: t.value.chart.zoom.minimap.verticalHandles,
|
|
3861
3867
|
refreshStartPoint: t.value.chart.zoom.startIndex !== null ? t.value.chart.zoom.startIndex : 0,
|
|
3862
|
-
refreshEndPoint: t.value.chart.zoom.endIndex !== null ? t.value.chart.zoom.endIndex + 1 : Math.max(...N.dataset.map((e) =>
|
|
3868
|
+
refreshEndPoint: t.value.chart.zoom.endIndex !== null ? t.value.chart.zoom.endIndex + 1 : Math.max(...N.dataset.map((e) => Se(e.series).length)),
|
|
3863
3869
|
enableRangeHandles: t.value.chart.zoom.enableRangeHandles,
|
|
3864
3870
|
enableSelectionDrag: t.value.chart.zoom.enableSelectionDrag,
|
|
3865
3871
|
onReset: xa,
|
|
3866
3872
|
onTrapMouse: ga,
|
|
3867
|
-
onFutureStart: u[3] || (u[3] = (e) =>
|
|
3868
|
-
onFutureEnd: u[4] || (u[4] = (e) =>
|
|
3873
|
+
onFutureStart: u[3] || (u[3] = (e) => $t("start", e)),
|
|
3874
|
+
onFutureEnd: u[4] || (u[4] = (e) => $t("end", e)),
|
|
3869
3875
|
timeLabels: fa.value,
|
|
3870
|
-
isPreview:
|
|
3876
|
+
isPreview: yl.value
|
|
3871
3877
|
}, {
|
|
3872
|
-
"reset-action":
|
|
3873
|
-
Q(l.$slots, "reset-action", zt(
|
|
3878
|
+
"reset-action": be(({ reset: e }) => [
|
|
3879
|
+
Q(l.$slots, "reset-action", At(zt({ reset: e })), void 0, !0)
|
|
3874
3880
|
]),
|
|
3875
3881
|
_: 3
|
|
3876
3882
|
}, 8, ["max", "valueStart", "valueEnd", "start", "end", "selectedSeries", "customFormat", "background", "fontSize", "useResetSlot", "labelLeft", "labelRight", "textColor", "usePreciseLabels", "preciseLabels", "inputColor", "selectColor", "borderColor", "minimap", "smoothMinimap", "minimapSelectedColor", "minimapSelectionRadius", "minimapLineColor", "minimapSelectedColorOpacity", "minimapSelectedIndex", "minimapIndicatorColor", "verticalHandles", "refreshStartPoint", "refreshEndPoint", "enableRangeHandles", "enableSelectionDrag", "timeLabels", "isPreview"])) : f("", !0)
|
|
3877
|
-
], 64)) : (s(), r(
|
|
3878
|
-
t.value.chart.zoom.show &&
|
|
3883
|
+
], 64)) : (s(), r(b, { key: 6 }, [
|
|
3884
|
+
t.value.chart.zoom.show && ze.value > 6 && Qt.value ? (s(), Je(mn, {
|
|
3879
3885
|
ref_key: "chartSlicer",
|
|
3880
|
-
ref:
|
|
3881
|
-
key: `slicer_${
|
|
3882
|
-
max:
|
|
3886
|
+
ref: He,
|
|
3887
|
+
key: `slicer_${St.value}`,
|
|
3888
|
+
max: ze.value,
|
|
3883
3889
|
min: 0,
|
|
3884
3890
|
valueStart: p.value.start,
|
|
3885
3891
|
valueEnd: p.value.end,
|
|
@@ -3902,18 +3908,18 @@ const xn = {
|
|
|
3902
3908
|
minimapSelectionRadius: t.value.chart.zoom.minimap.selectionRadius,
|
|
3903
3909
|
minimapLineColor: t.value.chart.zoom.minimap.lineColor,
|
|
3904
3910
|
minimapSelectedColorOpacity: t.value.chart.zoom.minimap.selectedColorOpacity,
|
|
3905
|
-
minimapSelectedIndex:
|
|
3911
|
+
minimapSelectedIndex: L.value,
|
|
3906
3912
|
minimapIndicatorColor: t.value.chart.zoom.minimap.indicatorColor,
|
|
3907
3913
|
verticalHandles: t.value.chart.zoom.minimap.verticalHandles,
|
|
3908
3914
|
refreshStartPoint: t.value.chart.zoom.startIndex !== null ? t.value.chart.zoom.startIndex : 0,
|
|
3909
|
-
refreshEndPoint: t.value.chart.zoom.endIndex !== null ? t.value.chart.zoom.endIndex + 1 : Math.max(...N.dataset.map((e) =>
|
|
3915
|
+
refreshEndPoint: t.value.chart.zoom.endIndex !== null ? t.value.chart.zoom.endIndex + 1 : Math.max(...N.dataset.map((e) => Se(e.series).length)),
|
|
3910
3916
|
enableRangeHandles: t.value.chart.zoom.enableRangeHandles,
|
|
3911
3917
|
enableSelectionDrag: t.value.chart.zoom.enableSelectionDrag,
|
|
3912
3918
|
onReset: xa,
|
|
3913
3919
|
onTrapMouse: ga
|
|
3914
3920
|
}, {
|
|
3915
|
-
"reset-action":
|
|
3916
|
-
Q(l.$slots, "reset-action", zt(
|
|
3921
|
+
"reset-action": be(({ reset: e }) => [
|
|
3922
|
+
Q(l.$slots, "reset-action", At(zt({ reset: e })), void 0, !0)
|
|
3917
3923
|
]),
|
|
3918
3924
|
_: 3
|
|
3919
3925
|
}, 8, ["max", "valueStart", "valueEnd", "start", "end", "background", "fontSize", "useResetSlot", "labelLeft", "labelRight", "textColor", "inputColor", "selectColor", "borderColor", "minimap", "smoothMinimap", "minimapSelectedColor", "minimapSelectionRadius", "minimapLineColor", "minimapSelectedColorOpacity", "minimapSelectedIndex", "minimapIndicatorColor", "verticalHandles", "refreshStartPoint", "refreshEndPoint", "enableRangeHandles", "enableSelectionDrag"])) : f("", !0)
|
|
@@ -3921,23 +3927,23 @@ const xn = {
|
|
|
3921
3927
|
y("div", {
|
|
3922
3928
|
id: `legend-bottom-${Z.value}`
|
|
3923
3929
|
}, null, 8, hs),
|
|
3924
|
-
|
|
3930
|
+
gl.value ? (s(), Je(Vo, {
|
|
3925
3931
|
key: 7,
|
|
3926
3932
|
to: t.value.chart.legend.position === "top" ? `#legend-top-${Z.value}` : `#legend-bottom-${Z.value}`
|
|
3927
3933
|
}, [
|
|
3928
3934
|
t.value.chart.legend.show ? (s(), r("div", {
|
|
3929
3935
|
key: 0,
|
|
3930
3936
|
ref_key: "chartLegend",
|
|
3931
|
-
ref:
|
|
3937
|
+
ref: st,
|
|
3932
3938
|
class: "vue-ui-xy-legend",
|
|
3933
|
-
style:
|
|
3939
|
+
style: _({
|
|
3934
3940
|
fontSize: `var(--legend-font-size, ${t.value.chart.legend.fontSize ?? 14}px)`
|
|
3935
3941
|
})
|
|
3936
3942
|
}, [
|
|
3937
|
-
(s(!0), r(
|
|
3943
|
+
(s(!0), r(b, null, C(Ze.value, (e, n) => (s(), r("div", {
|
|
3938
3944
|
key: `div_legend_item_${n}`,
|
|
3939
3945
|
onClick: (a) => _a(e),
|
|
3940
|
-
class: Xe({ "vue-ui-xy-legend-item-alone":
|
|
3946
|
+
class: Xe({ "vue-ui-xy-legend-item-alone": Ze.value.length === 1, "vue-ui-xy-legend-item": !0, "vue-ui-xy-legend-item-segregated": ue.value.includes(e.id) })
|
|
3941
3947
|
}, [
|
|
3942
3948
|
we.value[e.type] === "line" ? (s(), r("svg", ms, [
|
|
3943
3949
|
y("rect", {
|
|
@@ -3950,7 +3956,7 @@ const xn = {
|
|
|
3950
3956
|
width: "20",
|
|
3951
3957
|
fill: e.color
|
|
3952
3958
|
}, null, 8, gs),
|
|
3953
|
-
|
|
3959
|
+
Dt(El, {
|
|
3954
3960
|
plot: { x: 10, y: 9 },
|
|
3955
3961
|
radius: 4,
|
|
3956
3962
|
color: e.color,
|
|
@@ -3980,7 +3986,7 @@ const xn = {
|
|
|
3980
3986
|
fill: l.$slots.pattern ? `url(#pattern_${Z.value}_${e.slotAbsoluteIndex})` : e.color
|
|
3981
3987
|
}, null, 8, ps)) : f("", !0)
|
|
3982
3988
|
])) : (s(), r("svg", ys, [
|
|
3983
|
-
|
|
3989
|
+
Dt(El, {
|
|
3984
3990
|
plot: { x: 6, y: 6 },
|
|
3985
3991
|
radius: 5,
|
|
3986
3992
|
color: e.color,
|
|
@@ -3988,27 +3994,27 @@ const xn = {
|
|
|
3988
3994
|
}, null, 8, ["color", "shape"])
|
|
3989
3995
|
])),
|
|
3990
3996
|
y("span", {
|
|
3991
|
-
style:
|
|
3997
|
+
style: _(`color:${t.value.chart.legend.color}`)
|
|
3992
3998
|
}, ne(e.name), 5)
|
|
3993
3999
|
], 10, fs))), 128))
|
|
3994
4000
|
], 4)) : (s(), r("div", {
|
|
3995
4001
|
key: 1,
|
|
3996
4002
|
ref_key: "chartLegend",
|
|
3997
|
-
ref:
|
|
4003
|
+
ref: st
|
|
3998
4004
|
}, [
|
|
3999
|
-
Q(l.$slots, "legend", { legend:
|
|
4005
|
+
Q(l.$slots, "legend", { legend: Ze.value }, void 0, !0)
|
|
4000
4006
|
], 512))
|
|
4001
4007
|
], 8, ["to"])) : f("", !0),
|
|
4002
4008
|
l.$slots.source ? (s(), r("div", {
|
|
4003
4009
|
key: 8,
|
|
4004
4010
|
ref_key: "source",
|
|
4005
|
-
ref:
|
|
4011
|
+
ref: It,
|
|
4006
4012
|
dir: "auto"
|
|
4007
4013
|
}, [
|
|
4008
4014
|
Q(l.$slots, "source", {}, void 0, !0)
|
|
4009
4015
|
], 512)) : f("", !0),
|
|
4010
|
-
|
|
4011
|
-
show: k.value.showTooltip &&
|
|
4016
|
+
Dt(v(ve), {
|
|
4017
|
+
show: k.value.showTooltip && Cl.value,
|
|
4012
4018
|
backgroundColor: t.value.chart.tooltip.backgroundColor,
|
|
4013
4019
|
color: t.value.chart.tooltip.color,
|
|
4014
4020
|
fontSize: t.value.chart.tooltip.fontSize,
|
|
@@ -4020,66 +4026,66 @@ const xn = {
|
|
|
4020
4026
|
offsetY: t.value.chart.tooltip.offsetY,
|
|
4021
4027
|
parent: l.$refs.chart,
|
|
4022
4028
|
content: Ao.value,
|
|
4023
|
-
isFullscreen:
|
|
4029
|
+
isFullscreen: Re.value,
|
|
4024
4030
|
isCustom: t.value.chart.tooltip.customFormat && typeof t.value.chart.tooltip.customFormat == "function",
|
|
4025
4031
|
smooth: t.value.chart.tooltip.smooth,
|
|
4026
4032
|
backdropFilter: t.value.chart.tooltip.backdropFilter,
|
|
4027
4033
|
smoothForce: t.value.chart.tooltip.smoothForce,
|
|
4028
4034
|
smoothSnapThreshold: t.value.chart.tooltip.smoothSnapThreshold
|
|
4029
4035
|
}, {
|
|
4030
|
-
"tooltip-before":
|
|
4031
|
-
Q(l.$slots, "tooltip-before", zt(
|
|
4036
|
+
"tooltip-before": be(() => [
|
|
4037
|
+
Q(l.$slots, "tooltip-before", At(zt({ ...Ta.value })), void 0, !0)
|
|
4032
4038
|
]),
|
|
4033
|
-
"tooltip-after":
|
|
4034
|
-
Q(l.$slots, "tooltip-after", zt(
|
|
4039
|
+
"tooltip-after": be(() => [
|
|
4040
|
+
Q(l.$slots, "tooltip-after", At(zt({ ...Ta.value })), void 0, !0)
|
|
4035
4041
|
]),
|
|
4036
4042
|
_: 3
|
|
4037
4043
|
}, 8, ["show", "backgroundColor", "color", "fontSize", "borderRadius", "borderColor", "borderWidth", "backgroundOpacity", "position", "offsetY", "parent", "content", "isFullscreen", "isCustom", "smooth", "backdropFilter", "smoothForce", "smoothSnapThreshold"]),
|
|
4038
|
-
|
|
4044
|
+
Qt.value && t.value.chart.userOptions.buttons.table ? (s(), Je(Eo(Sl.value.component), Ll({ key: 9 }, Sl.value.props, {
|
|
4039
4045
|
ref_key: "tableUnit",
|
|
4040
|
-
ref:
|
|
4046
|
+
ref: bt,
|
|
4041
4047
|
onClose: Xa
|
|
4042
4048
|
}), qa({
|
|
4043
|
-
content:
|
|
4049
|
+
content: be(() => [
|
|
4044
4050
|
y("div", {
|
|
4045
|
-
style:
|
|
4051
|
+
style: _(`${v(ie) || 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"}`)
|
|
4046
4052
|
}, [
|
|
4047
4053
|
y("div", ks, [
|
|
4048
4054
|
ia(y("input", {
|
|
4049
4055
|
type: "checkbox",
|
|
4050
|
-
"onUpdate:modelValue": u[8] || (u[8] = (e) =>
|
|
4056
|
+
"onUpdate:modelValue": u[8] || (u[8] = (e) => mt.value = e)
|
|
4051
4057
|
}, null, 512), [
|
|
4052
|
-
[Do,
|
|
4058
|
+
[Do, mt.value]
|
|
4053
4059
|
]),
|
|
4054
4060
|
y("div", {
|
|
4055
|
-
onClick: u[9] || (u[9] = (e) =>
|
|
4061
|
+
onClick: u[9] || (u[9] = (e) => mt.value = !mt.value),
|
|
4056
4062
|
style: { cursor: "pointer" }
|
|
4057
4063
|
}, [
|
|
4058
|
-
|
|
4064
|
+
Dt(v(kt), {
|
|
4059
4065
|
name: "chartLine",
|
|
4060
4066
|
size: 20,
|
|
4061
4067
|
stroke: t.value.chart.color
|
|
4062
4068
|
}, null, 8, ["stroke"])
|
|
4063
4069
|
])
|
|
4064
4070
|
]),
|
|
4065
|
-
|
|
4066
|
-
key: `sparkline_${
|
|
4071
|
+
mt.value ? (s(), Je(v(il), {
|
|
4072
|
+
key: `sparkline_${Zt.value}`,
|
|
4067
4073
|
dataset: Lo.value,
|
|
4068
4074
|
config: Mo.value
|
|
4069
4075
|
}, null, 8, ["dataset", "config"])) : (s(), Je(v(Ye), {
|
|
4070
|
-
key: `table_${
|
|
4071
|
-
colNames:
|
|
4072
|
-
head:
|
|
4073
|
-
body:
|
|
4074
|
-
config:
|
|
4075
|
-
title: t.value.table.useDialog ? "" :
|
|
4076
|
+
key: `table_${qt.value}`,
|
|
4077
|
+
colNames: Ol.value.colNames,
|
|
4078
|
+
head: Ol.value.head,
|
|
4079
|
+
body: Ol.value.body,
|
|
4080
|
+
config: Ol.value.config,
|
|
4081
|
+
title: t.value.table.useDialog ? "" : Sl.value.title,
|
|
4076
4082
|
withCloseButton: !t.value.table.useDialog,
|
|
4077
4083
|
onClose: Xa
|
|
4078
4084
|
}, {
|
|
4079
|
-
th:
|
|
4085
|
+
th: be(({ th: e }) => [
|
|
4080
4086
|
y("div", { innerHTML: e }, null, 8, ws)
|
|
4081
4087
|
]),
|
|
4082
|
-
td:
|
|
4088
|
+
td: be(({ td: e }) => [
|
|
4083
4089
|
Za(ne(isNaN(Number(e)) ? e : v(Qe)({
|
|
4084
4090
|
p: t.value.chart.labels.prefix,
|
|
4085
4091
|
v: e,
|
|
@@ -4095,32 +4101,32 @@ const xn = {
|
|
|
4095
4101
|
}, [
|
|
4096
4102
|
t.value.table.useDialog ? {
|
|
4097
4103
|
name: "title",
|
|
4098
|
-
fn:
|
|
4099
|
-
Za(ne(
|
|
4104
|
+
fn: be(() => [
|
|
4105
|
+
Za(ne(Sl.value.title), 1)
|
|
4100
4106
|
]),
|
|
4101
4107
|
key: "0"
|
|
4102
4108
|
} : void 0,
|
|
4103
4109
|
t.value.table.useDialog ? {
|
|
4104
4110
|
name: "actions",
|
|
4105
|
-
fn:
|
|
4111
|
+
fn: be(() => [
|
|
4106
4112
|
y("button", {
|
|
4107
4113
|
tabindex: "0",
|
|
4108
4114
|
class: "vue-ui-user-options-button",
|
|
4109
4115
|
onClick: u[7] || (u[7] = (e) => ta(t.value.chart.userOptions.callbacks.csv))
|
|
4110
4116
|
}, [
|
|
4111
|
-
|
|
4117
|
+
Dt(v(kt), {
|
|
4112
4118
|
name: "excel",
|
|
4113
|
-
stroke:
|
|
4119
|
+
stroke: Sl.value.props.color
|
|
4114
4120
|
}, null, 8, ["stroke"])
|
|
4115
4121
|
])
|
|
4116
4122
|
]),
|
|
4117
4123
|
key: "1"
|
|
4118
4124
|
} : void 0
|
|
4119
4125
|
]), 1040)) : f("", !0),
|
|
4120
|
-
v(
|
|
4126
|
+
v(oe) ? (s(), Je(rn, { key: 10 })) : f("", !0)
|
|
4121
4127
|
], 46, Vn));
|
|
4122
4128
|
}
|
|
4123
|
-
}, Hs = /* @__PURE__ */ ao(Ss, [["__scopeId", "data-v-
|
|
4129
|
+
}, Hs = /* @__PURE__ */ ao(Ss, [["__scopeId", "data-v-3d945fbc"]]);
|
|
4124
4130
|
export {
|
|
4125
4131
|
Hs as default
|
|
4126
4132
|
};
|