vue-data-ui 3.1.6 → 3.1.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +37 -37
- package/dist/{Arrow-DtlAIKPQ.js → Arrow-BZ8rnWYn.js} +1 -1
- package/dist/{BaseDraggableDialog-BVZPPMT9.js → BaseDraggableDialog-Bdva4JFr.js} +2 -2
- package/dist/{BaseIcon-D_BjQBAR.js → BaseIcon-BCS8aIf4.js} +1 -1
- package/dist/{ColorPicker-BeJGNqJl.js → ColorPicker-DF6PDOhr.js} +2 -2
- package/dist/{DataTable-IycMkaTU.js → DataTable-Ddu14t59.js} +2 -2
- package/dist/{Legend-D7l8BJ7z.js → Legend-C3I0iaLM.js} +2 -2
- package/dist/{NonSvgPenAndPaper-BK5M9Lt9.js → NonSvgPenAndPaper-LSG0MLRC.js} +3 -3
- package/dist/{PackageVersion-BtfT0hV9.js → PackageVersion-CtYY8jBZ.js} +1 -1
- package/dist/{PenAndPaper-BdzDJYnr.js → PenAndPaper-DtlEAsLw.js} +3 -3
- package/dist/{Shape-DD3SLpa4.js → Shape-B8Cdu8s1.js} +1 -1
- package/dist/{Slicer-DoGlWyq_.js → Slicer-Bk01kWGC.js} +2 -2
- package/dist/{SparkTooltip-DAfofSes.js → SparkTooltip-qMi3IzXb.js} +1 -1
- package/dist/{Title-DbQthJAs.js → Title-BUVvr0U8.js} +1 -1
- package/dist/{Tooltip-DvtYLrX2.js → Tooltip-VlJQQsYu.js} +1 -1
- package/dist/{UserOptions-Dd5XOrwq.js → UserOptions-sSygisu3.js} +2 -2
- package/dist/{dom-to-png-j6qE-sAL.js → dom-to-png-BqX4MBZN.js} +1 -1
- package/dist/{img-DLgjML7h.js → img-DN0--Lx6.js} +1 -1
- package/dist/{index-C0wrF8hm.js → index-BlRUhv0O.js} +1 -1
- package/dist/{pdf-Csglybwj.js → pdf-Cm5HZB7J.js} +1 -1
- package/dist/style.css +1 -1
- package/dist/{useAutoSizeLabelsInsideViewbox-Bj3DhGbZ.js → useAutoSizeLabelsInsideViewbox-wLT3gJAJ.js} +1 -1
- package/dist/{useNestedProp-Bg2FlIgI.js → useNestedProp-OxTlfHdh.js} +1 -1
- package/dist/{usePrinter-C2jvouU0.js → usePrinter-DR__HfSR.js} +2 -2
- package/dist/{vue-data-ui-DaOijb0V.js → vue-data-ui-Ci8pH3va.js} +64 -64
- package/dist/vue-data-ui.js +1 -1
- package/dist/{vue-ui-3d-bar-BbW6NaRc.js → vue-ui-3d-bar-h-8AQQKD.js} +6 -6
- package/dist/{vue-ui-accordion-3JuSLBjV.js → vue-ui-accordion-DejV6zJ2.js} +3 -3
- package/dist/{vue-ui-age-pyramid-D94C1TOK.js → vue-ui-age-pyramid-yTcDoeqi.js} +6 -6
- package/dist/{vue-ui-annotator-Jq_yw0h7.js → vue-ui-annotator-HqsIz-FI.js} +2 -2
- package/dist/{vue-ui-bullet-ajwy7d-R.js → vue-ui-bullet-Co4ZttnE.js} +7 -7
- package/dist/{vue-ui-candlestick-vMGbmNWA.js → vue-ui-candlestick-BQQR9K33.js} +7 -7
- package/dist/{vue-ui-carousel-table-DydTCm2Z.js → vue-ui-carousel-table-BzDik-6R.js} +4 -4
- package/dist/{vue-ui-chestnut-D6AP76wU.js → vue-ui-chestnut-5VG75w-T.js} +5 -5
- package/dist/{vue-ui-chord-Du8GJXPN.js → vue-ui-chord-5HE-ZTDA.js} +8 -8
- package/dist/{vue-ui-circle-pack-C-C3OGW_.js → vue-ui-circle-pack-BVcr-3fG.js} +6 -6
- package/dist/{vue-ui-cursor-B70FlDqP.js → vue-ui-cursor-BDH4YPCA.js} +2 -2
- package/dist/{vue-ui-dashboard-DrFCH7LP.js → vue-ui-dashboard-VtafJ36J.js} +67 -67
- package/dist/{vue-ui-digits-CQy-vOC2.js → vue-ui-digits-Bh5fmCge.js} +2 -2
- package/dist/{vue-ui-donut-D0RdN18d.js → vue-ui-donut-PiILi3WQ.js} +8 -8
- package/dist/{vue-ui-donut-evolution-naYIvk-b.js → vue-ui-donut-evolution-DVp2UID9.js} +8 -8
- package/dist/{vue-ui-dumbbell-D6b7WMTy.js → vue-ui-dumbbell-DIX_gcC_.js} +7 -7
- package/dist/{vue-ui-flow-Dh8_ii-s.js → vue-ui-flow-DY64szfV.js} +7 -7
- package/dist/{vue-ui-funnel-Ct4e9chO.js → vue-ui-funnel-DnQFZe9P.js} +6 -6
- package/dist/{vue-ui-galaxy-Dqklv14X.js → vue-ui-galaxy-C0TCFGXT.js} +7 -7
- package/dist/{vue-ui-gauge-D-vHj5J1.js → vue-ui-gauge-BNIAJlUC.js} +7 -7
- package/dist/{vue-ui-gizmo-Cn0d1lVH.js → vue-ui-gizmo-BnHruhLB.js} +3 -3
- package/dist/{vue-ui-heatmap-BpcoDwpi.js → vue-ui-heatmap-CH_twICb.js} +7 -7
- package/dist/{vue-ui-history-plot-D8tmNUHo.js → vue-ui-history-plot-CtJrkyG8.js} +7 -7
- package/dist/{vue-ui-kpi-88Bguk6S.js → vue-ui-kpi-Co0app61.js} +3 -3
- package/dist/{vue-ui-mini-loader-VDpWxyls.js → vue-ui-mini-loader-DXrdP_7p.js} +2 -2
- package/dist/{vue-ui-molecule-Cn8yeJLZ.js → vue-ui-molecule-C2cNArDQ.js} +5 -5
- package/dist/{vue-ui-mood-radar-DidC77_K.js → vue-ui-mood-radar-BrLLsYz5.js} +7 -7
- package/dist/{vue-ui-nested-donuts-D1EZ91Wm.js → vue-ui-nested-donuts-DRysa4v_.js} +7 -7
- package/dist/{vue-ui-onion-B_mir5Ax.js → vue-ui-onion-znQ-OGaR.js} +8 -8
- package/dist/{vue-ui-parallel-coordinate-plot-DRbJyqiQ.js → vue-ui-parallel-coordinate-plot-DIX2Hytk.js} +8 -8
- package/dist/{vue-ui-quadrant-D7ihdCkd.js → vue-ui-quadrant-B4X5ePQQ.js} +8 -8
- package/dist/{vue-ui-quick-chart-Dwc1xJtX.js → vue-ui-quick-chart-Cm7iAsdB.js} +6 -6
- package/dist/{vue-ui-radar-DhsgkGwF.js → vue-ui-radar-CMXnDLdC.js} +8 -8
- package/dist/{vue-ui-rating-D_sWv7fR.js → vue-ui-rating-wAMAKVA8.js} +2 -2
- package/dist/{vue-ui-relation-circle-CAvYwKpm.js → vue-ui-relation-circle-snHKlhA3.js} +7 -7
- package/dist/{vue-ui-ridgeline-DuWQX2OI.js → vue-ui-ridgeline-Bx7_nnJ7.js} +8 -8
- package/dist/{vue-ui-rings-BrBkOGZk.js → vue-ui-rings-BGTPLeaD.js} +8 -8
- package/dist/{vue-ui-scatter--kNBhPeG.js → vue-ui-scatter-D-rI3hK1.js} +8 -8
- package/dist/{vue-ui-skeleton-B6Y0yxOn.js → vue-ui-skeleton-B-6lN9xS.js} +3 -3
- package/dist/{vue-ui-smiley-B7tZsNRS.js → vue-ui-smiley-DeLEE9m9.js} +2 -2
- package/dist/{vue-ui-spark-trend-Dy5C9uny.js → vue-ui-spark-trend-BvrboxYt.js} +3 -3
- package/dist/{vue-ui-sparkbar-9NN07DOT.js → vue-ui-sparkbar-nW5DeWC5.js} +3 -3
- package/dist/{vue-ui-sparkgauge-iV-u83Ie.js → vue-ui-sparkgauge-Isge2K7-.js} +3 -3
- package/dist/{vue-ui-sparkhistogram-X47TDKC2.js → vue-ui-sparkhistogram-ChSw4gHY.js} +4 -4
- package/dist/{vue-ui-sparkline-C67Y3c7l.js → vue-ui-sparkline-DH-VRt5o.js} +3 -3
- package/dist/{vue-ui-sparkstackbar-Bzmq9peq.js → vue-ui-sparkstackbar-l45aaRR1.js} +3 -3
- package/dist/{vue-ui-stackbar-C0cn-5Sz.js → vue-ui-stackbar-ByVq83Og.js} +9 -9
- package/dist/{vue-ui-strip-plot-D3StIxYT.js → vue-ui-strip-plot-CwooqV7G.js} +7 -7
- package/dist/{vue-ui-table-B-wP544v.js → vue-ui-table-BRPcCRq-.js} +3 -3
- package/dist/{vue-ui-table-heatmap-_qJwOiYG.js → vue-ui-table-heatmap-CaAadUo0.js} +5 -5
- package/dist/{vue-ui-table-sparkline-C6MoeyKm.js → vue-ui-table-sparkline-Bt7VtPKK.js} +4 -4
- package/dist/{vue-ui-thermometer-BmYZiNK4.js → vue-ui-thermometer-B-CWjknr.js} +7 -7
- package/dist/{vue-ui-timer-XeLnI_ia.js → vue-ui-timer-CxLcOKNv.js} +5 -5
- package/dist/{vue-ui-tiremarks-CnCSAQiH.js → vue-ui-tiremarks-DYEZvwDv.js} +6 -6
- package/dist/{vue-ui-treemap-Nd27H4H5.js → vue-ui-treemap-CeuebtPa.js} +8 -8
- package/dist/{vue-ui-vertical-bar-Dd1XUvnp.js → vue-ui-vertical-bar-D8_txlgd.js} +9 -9
- package/dist/{vue-ui-waffle-Czg-z9KF.js → vue-ui-waffle-B5Qe5PKA.js} +8 -8
- package/dist/{vue-ui-wheel-DfPu-QQM.js → vue-ui-wheel-CxpLOCGw.js} +6 -6
- package/dist/{vue-ui-word-cloud-CB9_bPjO.js → vue-ui-word-cloud-DCoL3uD5.js} +6 -6
- package/dist/{vue-ui-world-Bo_NzzhJ.js → vue-ui-world-DmnwTNAv.js} +6 -6
- package/dist/{vue-ui-xy-Dc-o6Q3R.js → vue-ui-xy-CzdchisK.js} +375 -366
- package/dist/{vue-ui-xy-canvas-D1Do33ar.js → vue-ui-xy-canvas-CJp0mlzr.js} +10 -10
- package/package.json +1 -1
|
@@ -1,18 +1,18 @@
|
|
|
1
|
-
import { useCssVars as Fo, computed as x, ref as g, onMounted as
|
|
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
|
|
1
|
+
import { useCssVars as Fo, computed as x, ref as g, onMounted as il, onBeforeUnmount as Xt, watch as it, nextTick as Yt, onUpdated as Po, createElementBlock as r, openBlock as s, createElementVNode as y, createCommentVNode as f, renderSlot as K, normalizeStyle as _, createVNode as Wt, 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 Vt, 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 Et, e as Uo, p as qo, ad as Hl, a9 as Z, 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 Dt, 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 ul } from "./index-BlRUhv0O.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-DR__HfSR.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-OxTlfHdh.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-DN0--Lx6.js";
|
|
10
|
+
import fn from "./Title-BUVvr0U8.js";
|
|
11
|
+
import { S as mn } from "./Slicer-Bk01kWGC.js";
|
|
12
|
+
import { _ as El } from "./Shape-B8Cdu8s1.js";
|
|
13
|
+
import gn from "./BaseIcon-BCS8aIf4.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-DejV6zJ2.js";
|
|
16
16
|
const xn = {
|
|
17
17
|
class: "vue-data-ui-slicer-labels",
|
|
18
18
|
style: { position: "relative", "z-index": "1", "pointer-events": "none" }
|
|
@@ -163,7 +163,7 @@ const xn = {
|
|
|
163
163
|
"0d1400c4": N.selectColor,
|
|
164
164
|
"40456b2c": Nt.value
|
|
165
165
|
}));
|
|
166
|
-
const d = N, Ye = g(null), ve = g(d.min), de = g(d.max), kt = x(() => !!d.minimap.length),
|
|
166
|
+
const d = N, Ye = g(null), ve = g(d.min), de = g(d.max), kt = x(() => !!d.minimap.length), sl = g(Dl()), Gt = g(!1), rl = g(0), Ut = x({
|
|
167
167
|
get() {
|
|
168
168
|
return ve.value;
|
|
169
169
|
},
|
|
@@ -177,36 +177,36 @@ const xn = {
|
|
|
177
177
|
},
|
|
178
178
|
set(m) {
|
|
179
179
|
const h = Math.max(m, ve.value + 1);
|
|
180
|
-
de.value = h,
|
|
180
|
+
de.value = h, Y.value && (Y.value.value = String(h)), xe("futureEnd", h);
|
|
181
181
|
}
|
|
182
182
|
});
|
|
183
|
-
|
|
183
|
+
il(() => {
|
|
184
184
|
const m = () => {
|
|
185
|
-
Ye.value && (
|
|
185
|
+
Ye.value && (rl.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), Xt(() => {
|
|
190
190
|
window.removeEventListener("resize", h);
|
|
191
191
|
});
|
|
192
192
|
});
|
|
193
|
-
let
|
|
193
|
+
let cl = null;
|
|
194
194
|
function je() {
|
|
195
|
-
clearTimeout(
|
|
195
|
+
clearTimeout(cl), xe("update:start", Number(ve.value)), xe("update:end", Number(de.value)), Gt.value = !1;
|
|
196
196
|
}
|
|
197
|
-
const
|
|
197
|
+
const vl = x(() => d.refreshEndPoint === null ? d.max : d.refreshEndPoint), xe = Ul, pe = x(() => {
|
|
198
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
201
|
width: `${S - h}%`,
|
|
202
202
|
background: d.selectColor,
|
|
203
|
-
tooltipLeft: `calc(${h}% - ${He.value ? 0 :
|
|
204
|
-
tooltipRight: `calc(${S}% - ${st.value ?
|
|
203
|
+
tooltipLeft: `calc(${h}% - ${He.value ? 0 : yl.value / 2}px)`,
|
|
204
|
+
tooltipRight: `calc(${S}% - ${st.value ? el.value : el.value / 2}px)`,
|
|
205
205
|
tooltipCenter: ce,
|
|
206
206
|
arrowLeft: !He.value,
|
|
207
207
|
arrowRight: !st.value
|
|
208
208
|
};
|
|
209
|
-
}), He = x(() => Ye.value ? Ye.value.getBoundingClientRect().width * ((ve.value - d.min) / (d.max - d.min)) -
|
|
209
|
+
}), He = x(() => Ye.value ? Ye.value.getBoundingClientRect().width * ((ve.value - d.min) / (d.max - d.min)) - yl.value / 2 < 0 : !1), st = x(() => Ye.value ? Ye.value.getBoundingClientRect().width * ((de.value - d.min) / (d.max - d.min)) + el.value / 2 > Ye.value.getBoundingClientRect().width : !1), It = x(() => d.inputColor), Nt = x(() => d.background), ql = x(() => `${d.selectColor}33`), Ge = x(() => d.borderColor), qt = x(() => {
|
|
210
210
|
let m = [];
|
|
211
211
|
for (let h = 0; h < d.minimap.length; h += 1)
|
|
212
212
|
m.push(h);
|
|
@@ -230,7 +230,7 @@ const xn = {
|
|
|
230
230
|
width: 1,
|
|
231
231
|
height: 1
|
|
232
232
|
}), Me = g(null);
|
|
233
|
-
|
|
233
|
+
il(() => {
|
|
234
234
|
if (kt.value) {
|
|
235
235
|
const m = sa(() => {
|
|
236
236
|
const { width: h, height: S } = nn({
|
|
@@ -240,11 +240,11 @@ const xn = {
|
|
|
240
240
|
});
|
|
241
241
|
Me.value = new ResizeObserver(m), Me.value.observe(Rt.value);
|
|
242
242
|
}
|
|
243
|
-
}),
|
|
243
|
+
}), Xt(() => {
|
|
244
244
|
Me.value && Me.value.disconnect();
|
|
245
245
|
});
|
|
246
|
-
const
|
|
247
|
-
function
|
|
246
|
+
const dl = x(() => Math.max(1, d.max - d.min)), St = x(() => Math.max(1, d.minimap.length)), P = x(() => St.value / dl.value);
|
|
247
|
+
function hl(m) {
|
|
248
248
|
const h = Math.floor((m - d.min) * P.value);
|
|
249
249
|
return Math.min(Math.max(0, h), St.value);
|
|
250
250
|
}
|
|
@@ -252,14 +252,14 @@ const xn = {
|
|
|
252
252
|
const h = Math.ceil((m - d.min) * P.value);
|
|
253
253
|
return Math.min(Math.max(0, h), St.value);
|
|
254
254
|
}
|
|
255
|
-
const ee = x(() =>
|
|
255
|
+
const ee = x(() => hl(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
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
258
|
x: j.value.width / d.minimap.length * Ze + ke.value / 2,
|
|
259
259
|
y: j.value.height - (at - h) / S * (j.value.height * 0.9)
|
|
260
|
-
})), ce = ee.value, xt = Math.max(ce + 1, rt.value),
|
|
260
|
+
})), ce = ee.value, xt = Math.max(ce + 1, rt.value), ll = d.smoothMinimap ? Xl(X) : Yl(X), Te = X.slice(ce, xt), Ft = d.smoothMinimap ? Xl(Te) : Yl(Te);
|
|
261
261
|
return {
|
|
262
|
-
fullSet:
|
|
262
|
+
fullSet: ll,
|
|
263
263
|
selectionSet: Ft,
|
|
264
264
|
sliced: Te,
|
|
265
265
|
firstPlot: X[ce],
|
|
@@ -277,15 +277,15 @@ const xn = {
|
|
|
277
277
|
Re.value = null;
|
|
278
278
|
return;
|
|
279
279
|
}
|
|
280
|
-
Re.value =
|
|
280
|
+
Re.value = hl(d.valueStart) + m;
|
|
281
281
|
}, { immediate: !0 });
|
|
282
282
|
function Cl(m) {
|
|
283
283
|
Re.value = m;
|
|
284
284
|
const h = ee.value, S = rt.value;
|
|
285
285
|
m >= h && m < S && xe("trapMouse", m - h);
|
|
286
286
|
}
|
|
287
|
-
const ft = g(0), ue = g(null),
|
|
288
|
-
function
|
|
287
|
+
const ft = g(0), ue = g(null), Y = g(null);
|
|
288
|
+
function fl(m) {
|
|
289
289
|
if (typeof m == "object" && m && "target" in m) {
|
|
290
290
|
const S = m.target, X = "valueAsNumber" in S ? S.valueAsNumber : +S.value;
|
|
291
291
|
return Number.isFinite(X) ? X : NaN;
|
|
@@ -293,28 +293,28 @@ const xn = {
|
|
|
293
293
|
const h = +m;
|
|
294
294
|
return Number.isFinite(h) ? h : NaN;
|
|
295
295
|
}
|
|
296
|
-
let
|
|
297
|
-
function
|
|
298
|
-
|
|
299
|
-
const h =
|
|
300
|
-
Number.isFinite(h) && (cancelAnimationFrame(
|
|
301
|
-
|
|
296
|
+
let Zt = 0;
|
|
297
|
+
function ml(m) {
|
|
298
|
+
Gt.value = !0;
|
|
299
|
+
const h = fl(m);
|
|
300
|
+
Number.isFinite(h) && (cancelAnimationFrame(Zt), Zt = requestAnimationFrame(() => {
|
|
301
|
+
Ut.value = h;
|
|
302
302
|
}));
|
|
303
303
|
}
|
|
304
304
|
let mt = 0;
|
|
305
|
-
function
|
|
306
|
-
|
|
307
|
-
const h =
|
|
305
|
+
function Kt(m) {
|
|
306
|
+
Gt.value = !0;
|
|
307
|
+
const h = fl(m);
|
|
308
308
|
Number.isFinite(h) && (cancelAnimationFrame(mt), mt = requestAnimationFrame(() => {
|
|
309
309
|
wt.value = h;
|
|
310
310
|
}));
|
|
311
311
|
}
|
|
312
|
-
|
|
313
|
-
cancelAnimationFrame(
|
|
312
|
+
Xt(() => {
|
|
313
|
+
cancelAnimationFrame(Zt), cancelAnimationFrame(mt);
|
|
314
314
|
});
|
|
315
315
|
const O = x(() => d.valueEnd - d.valueStart), gt = g(!1);
|
|
316
|
-
let
|
|
317
|
-
const
|
|
316
|
+
let gl = g(null);
|
|
317
|
+
const Jt = x(() => (rl.value - 48) / (d.max - d.min) * O.value), Ae = x(() => Math.max(1, rl.value - On - Jt.value)), et = x(() => Math.max(1, d.max - d.min - O.value)), Qt = x(() => et.value / Ae.value), bl = g(0), bt = g(0), L = g(0), Al = g(0);
|
|
318
318
|
let tt = null, Ue = null, lt = null, w = null;
|
|
319
319
|
const Fe = (m) => {
|
|
320
320
|
if (Se.value = !0, !d.enableSelectionDrag) return;
|
|
@@ -324,12 +324,12 @@ const xn = {
|
|
|
324
324
|
if (!X || !(X instanceof Element) || X.classList && X.classList.contains("range-handle")) return;
|
|
325
325
|
gt.value = !0;
|
|
326
326
|
const ce = h ? S ? S.clientX : 0 : m.clientX;
|
|
327
|
-
|
|
327
|
+
gl.value = ce, bl.value = ce, bt.value = ve.value, L.value = de.value, Al.value = Qt.value, tt = h ? "touchmove" : "mousemove", Ue = h ? "touchend" : "mouseup", lt = h ? jt : xl, w = h ? pl : k, window.addEventListener(tt, lt, { passive: !1 }), window.addEventListener(Ue, w);
|
|
328
328
|
};
|
|
329
|
-
function
|
|
329
|
+
function xl(m) {
|
|
330
330
|
gt.value && t(m.clientX);
|
|
331
331
|
}
|
|
332
|
-
function
|
|
332
|
+
function jt(m) {
|
|
333
333
|
if (!gt.value || !Ye.value) return;
|
|
334
334
|
const h = m.target;
|
|
335
335
|
if (!(h instanceof Element) || !Ye.value.contains(h) || h.classList && h.classList.contains("range-handle")) return;
|
|
@@ -339,30 +339,30 @@ const xn = {
|
|
|
339
339
|
}
|
|
340
340
|
function t(m) {
|
|
341
341
|
if (!gt.value) return;
|
|
342
|
-
const S = (m -
|
|
342
|
+
const S = (m - bl.value) * Al.value;
|
|
343
343
|
let X = Math.round(bt.value + S);
|
|
344
344
|
X = Math.max(d.min, Math.min(X, d.max - O.value));
|
|
345
345
|
const ce = X + O.value;
|
|
346
|
-
|
|
346
|
+
Ut.value = X, wt.value = ce;
|
|
347
347
|
}
|
|
348
348
|
function k() {
|
|
349
349
|
_t();
|
|
350
350
|
}
|
|
351
|
-
function
|
|
351
|
+
function pl() {
|
|
352
352
|
_t();
|
|
353
353
|
}
|
|
354
354
|
function _t() {
|
|
355
355
|
gt.value = !1, tt && lt && window.removeEventListener(tt, lt), Ue && w && window.removeEventListener(Ue, w), tt = Ue = null, lt = w = null, je();
|
|
356
356
|
}
|
|
357
|
-
const oe = g(!1), he = g(null), ct = g(null),
|
|
357
|
+
const oe = g(!1), he = g(null), ct = g(null), yl = g(1), el = g(1), Se = g(!1);
|
|
358
358
|
function ze() {
|
|
359
|
-
he.value && (
|
|
359
|
+
he.value && (yl.value = he.value.getBoundingClientRect().width);
|
|
360
360
|
}
|
|
361
361
|
function p() {
|
|
362
|
-
ct.value && (
|
|
362
|
+
ct.value && (el.value = ct.value.getBoundingClientRect().width);
|
|
363
363
|
}
|
|
364
364
|
const qe = g(0);
|
|
365
|
-
function
|
|
365
|
+
function kl(m) {
|
|
366
366
|
qe.value = m === "start" ? 1 : 0;
|
|
367
367
|
}
|
|
368
368
|
const $t = g(!1), vt = g({
|
|
@@ -370,7 +370,7 @@ const xn = {
|
|
|
370
370
|
left: 0
|
|
371
371
|
});
|
|
372
372
|
it([ve, de], async () => {
|
|
373
|
-
if (await
|
|
373
|
+
if (await Yt(), !he.value || !ct.value) {
|
|
374
374
|
$t.value = !1, vt.value = { width: 0, left: 0 };
|
|
375
375
|
return;
|
|
376
376
|
}
|
|
@@ -384,13 +384,13 @@ const xn = {
|
|
|
384
384
|
}), Po(() => {
|
|
385
385
|
ze(), p();
|
|
386
386
|
}), it(() => d.labelLeft, () => {
|
|
387
|
-
|
|
387
|
+
Yt(ze);
|
|
388
388
|
}, { deep: !0 }), it(() => d.labelRight, () => {
|
|
389
|
-
|
|
389
|
+
Yt(p);
|
|
390
390
|
}, { deep: !0 });
|
|
391
|
-
const
|
|
391
|
+
const tl = g(!1), ie = x(() => {
|
|
392
392
|
let m = { text: "" }, h = { text: "" };
|
|
393
|
-
if (
|
|
393
|
+
if (tl.value = !1, Wl(d.customFormat))
|
|
394
394
|
try {
|
|
395
395
|
const S = d.customFormat({
|
|
396
396
|
absoluteIndex: ve.value,
|
|
@@ -401,20 +401,20 @@ const xn = {
|
|
|
401
401
|
seriesIndex: de.value - 1,
|
|
402
402
|
datapoint: d.selectedSeries
|
|
403
403
|
});
|
|
404
|
-
typeof S == "string" && typeof X == "string" && (m.text = S, h.text = X,
|
|
404
|
+
typeof S == "string" && typeof X == "string" && (m.text = S, h.text = X, tl.value = !0);
|
|
405
405
|
} catch {
|
|
406
|
-
console.warn("Custom format cannot be applied on zoom labels."),
|
|
406
|
+
console.warn("Custom format cannot be applied on zoom labels."), tl.value = !1;
|
|
407
407
|
}
|
|
408
|
-
return
|
|
408
|
+
return tl.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)), {
|
|
409
409
|
left: m ? m.text : "",
|
|
410
410
|
right: h ? h.text : ""
|
|
411
411
|
};
|
|
412
412
|
});
|
|
413
|
-
return
|
|
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(
|
|
413
|
+
return Xt(() => {
|
|
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(cl);
|
|
415
415
|
}), Gl({
|
|
416
|
-
setStartValue:
|
|
417
|
-
setEndValue:
|
|
416
|
+
setStartValue: ml,
|
|
417
|
+
setEndValue: Kt
|
|
418
418
|
}), (m, h) => (s(), r("div", {
|
|
419
419
|
"data-dom-to-png-ignore": "",
|
|
420
420
|
style: { padding: "0 24px" },
|
|
@@ -425,8 +425,8 @@ const xn = {
|
|
|
425
425
|
onTouchstart: Fe
|
|
426
426
|
}, [
|
|
427
427
|
y("div", xn, [
|
|
428
|
-
N.valueStart !== N.refreshStartPoint || N.valueEnd !==
|
|
429
|
-
N.useResetSlot ?
|
|
428
|
+
N.valueStart !== N.refreshStartPoint || N.valueEnd !== vl.value ? (s(), r("div", pn, [
|
|
429
|
+
N.useResetSlot ? K(m.$slots, "reset-action", {
|
|
430
430
|
key: 1,
|
|
431
431
|
reset: ht
|
|
432
432
|
}, void 0, !0) : (s(), r("button", {
|
|
@@ -440,7 +440,7 @@ const xn = {
|
|
|
440
440
|
}),
|
|
441
441
|
onClick: ht
|
|
442
442
|
}, [
|
|
443
|
-
|
|
443
|
+
Wt(gn, {
|
|
444
444
|
name: "refresh",
|
|
445
445
|
stroke: N.textColor
|
|
446
446
|
}, null, 8, ["stroke"])
|
|
@@ -462,7 +462,7 @@ const xn = {
|
|
|
462
462
|
}, [
|
|
463
463
|
y("defs", null, [
|
|
464
464
|
y("linearGradient", {
|
|
465
|
-
id:
|
|
465
|
+
id: sl.value,
|
|
466
466
|
x1: "0%",
|
|
467
467
|
y1: "0%",
|
|
468
468
|
x2: "0%",
|
|
@@ -498,7 +498,7 @@ const xn = {
|
|
|
498
498
|
}, null, 8, $n),
|
|
499
499
|
y("path", {
|
|
500
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`,
|
|
501
|
-
fill: `url(#${
|
|
501
|
+
fill: `url(#${sl.value})`,
|
|
502
502
|
stroke: "none",
|
|
503
503
|
style: { opacity: "1" }
|
|
504
504
|
}, null, 8, Ln),
|
|
@@ -509,7 +509,7 @@ const xn = {
|
|
|
509
509
|
height: Math.max(j.value.height, 0),
|
|
510
510
|
rx: N.minimapSelectionRadius,
|
|
511
511
|
fill: Ge.value,
|
|
512
|
-
style: _({ opacity: gt.value ||
|
|
512
|
+
style: _({ opacity: gt.value || Gt.value ? 0 : 1 })
|
|
513
513
|
}, null, 12, Mn),
|
|
514
514
|
y("rect", {
|
|
515
515
|
x: Ce.value.x,
|
|
@@ -522,7 +522,7 @@ const xn = {
|
|
|
522
522
|
}, null, 12, Cn),
|
|
523
523
|
y("path", {
|
|
524
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`,
|
|
525
|
-
fill: `url(#${
|
|
525
|
+
fill: `url(#${sl.value})`,
|
|
526
526
|
stroke: "none",
|
|
527
527
|
style: { opacity: "1" }
|
|
528
528
|
}, null, 8, An),
|
|
@@ -550,7 +550,7 @@ const xn = {
|
|
|
550
550
|
r: "3",
|
|
551
551
|
fill: N.minimapLineColor
|
|
552
552
|
}, null, 8, In),
|
|
553
|
-
Re.value !== null ? (s(!0), r(b, { key: 0 }, C(
|
|
553
|
+
Re.value !== null ? (s(!0), r(b, { key: 0 }, C(qt.value, (S, X) => (s(), r("g", null, [
|
|
554
554
|
Re.value === S && S >= ee.value && S < rt.value ? (s(), r("line", {
|
|
555
555
|
key: 0,
|
|
556
556
|
x1: ke.value * X + ke.value / 2,
|
|
@@ -563,7 +563,7 @@ const xn = {
|
|
|
563
563
|
"stroke-width": "1"
|
|
564
564
|
}, null, 8, Nn)) : f("", !0)
|
|
565
565
|
]))), 256)) : f("", !0),
|
|
566
|
-
(s(!0), r(b, null, C(
|
|
566
|
+
(s(!0), r(b, null, C(qt.value, (S, X) => (s(), r("rect", {
|
|
567
567
|
x: ke.value * X,
|
|
568
568
|
y: 0,
|
|
569
569
|
height: Math.max(j.value.height, 0),
|
|
@@ -604,17 +604,17 @@ const xn = {
|
|
|
604
604
|
}),
|
|
605
605
|
min: N.min,
|
|
606
606
|
max: N.max,
|
|
607
|
-
"onUpdate:modelValue": h[5] || (h[5] = (S) =>
|
|
608
|
-
onInput: h[6] || (h[6] = (S) =>
|
|
607
|
+
"onUpdate:modelValue": h[5] || (h[5] = (S) => Ut.value = S),
|
|
608
|
+
onInput: h[6] || (h[6] = (S) => ml(S)),
|
|
609
609
|
onChange: je,
|
|
610
610
|
onKeyup: Ya(je, ["enter"]),
|
|
611
611
|
onBlur: je,
|
|
612
|
-
onMouseenter: h[7] || (h[7] = (S) =>
|
|
612
|
+
onMouseenter: h[7] || (h[7] = (S) => kl("start")),
|
|
613
613
|
onPointerup: je
|
|
614
614
|
}, null, 42, Fn)), [
|
|
615
615
|
[
|
|
616
616
|
Ga,
|
|
617
|
-
|
|
617
|
+
Ut.value,
|
|
618
618
|
void 0,
|
|
619
619
|
{ number: !0 }
|
|
620
620
|
]
|
|
@@ -622,7 +622,7 @@ const xn = {
|
|
|
622
622
|
N.enableRangeHandles ? ia((s(), r("input", {
|
|
623
623
|
key: 2,
|
|
624
624
|
ref_key: "rangeEnd",
|
|
625
|
-
ref:
|
|
625
|
+
ref: Y,
|
|
626
626
|
type: "range",
|
|
627
627
|
class: Xe({
|
|
628
628
|
"range-right": !0,
|
|
@@ -632,11 +632,11 @@ const xn = {
|
|
|
632
632
|
min: N.min,
|
|
633
633
|
max: N.max,
|
|
634
634
|
"onUpdate:modelValue": h[8] || (h[8] = (S) => wt.value = S),
|
|
635
|
-
onInput: h[9] || (h[9] = (S) =>
|
|
635
|
+
onInput: h[9] || (h[9] = (S) => Kt(S)),
|
|
636
636
|
onChange: je,
|
|
637
637
|
onKeyup: Ya(je, ["enter"]),
|
|
638
638
|
onBlur: je,
|
|
639
|
-
onMouseenter: h[10] || (h[10] = (S) =>
|
|
639
|
+
onMouseenter: h[10] || (h[10] = (S) => kl("end")),
|
|
640
640
|
onPointerup: je
|
|
641
641
|
}, null, 42, Pn)), [
|
|
642
642
|
[
|
|
@@ -772,7 +772,7 @@ const xn = {
|
|
|
772
772
|
},
|
|
773
773
|
emits: ["selectTimeLabel", "selectX", "selectLegend"],
|
|
774
774
|
setup(N, { expose: Gl, emit: Ul }) {
|
|
775
|
-
const d = N, Ye = Ct(() => import("./DataTable-
|
|
775
|
+
const d = N, Ye = Ct(() => import("./DataTable-Ddu14t59.js")), ve = Ct(() => import("./Tooltip-VlJQQsYu.js")), de = Ct(() => import("./UserOptions-sSygisu3.js")), kt = Ct(() => import("./BaseIcon-BCS8aIf4.js")), sl = Ct(() => import("./vue-ui-table-sparkline-Bt7VtPKK.js")), Gt = Ct(() => import("./PackageVersion-CtYY8jBZ.js")), rl = Ct(() => import("./PenAndPaper-DtlEAsLw.js")), Ut = Ct(() => import("./BaseDraggableDialog-Bdva4JFr.js")), wt = Ul, cl = Oo(), je = Bo(), { vue_ui_xy: vl } = 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), qt = g(null), ht = g(null), Rt = g(null), j = g(null), Me = g(null), dl = g(null), St = g(0), P = g(null), hl = 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([]), Y = g(Dl()), fl = g(0), Zt = g(0), ml = g(0), mt = g(!0), Kt = g(0), O = g(null), gt = g(!1), gl = g(!0), Jt = g(!0), Ae = g(null), et = g({}), Qt = g(null), bl = g(!1), bt = g(null), L = g(null), Al = x(() => ({
|
|
776
776
|
height: ye.value,
|
|
777
777
|
width: ee.value
|
|
778
778
|
}));
|
|
@@ -788,8 +788,8 @@ const xn = {
|
|
|
788
788
|
dataLabels: 20,
|
|
789
789
|
plotLabels: 10
|
|
790
790
|
}), Fe = g({ plot: 3, line: 3 });
|
|
791
|
-
|
|
792
|
-
|
|
791
|
+
il(() => {
|
|
792
|
+
bl.value = !0, d.dataset.length && d.dataset.forEach((l, u) => {
|
|
793
793
|
[null, void 0].includes(l.series) && oa({
|
|
794
794
|
componentName: "VueUiXy",
|
|
795
795
|
type: "datasetSerieAttribute",
|
|
@@ -799,15 +799,15 @@ const xn = {
|
|
|
799
799
|
});
|
|
800
800
|
});
|
|
801
801
|
});
|
|
802
|
-
function
|
|
802
|
+
function xl() {
|
|
803
803
|
if (!Object.keys(d.config || {}).length)
|
|
804
|
-
return
|
|
804
|
+
return vl;
|
|
805
805
|
const l = ua({
|
|
806
806
|
userConfig: d.config,
|
|
807
|
-
defaultConfig:
|
|
807
|
+
defaultConfig: vl
|
|
808
808
|
});
|
|
809
809
|
return d.config && We(d.config, "chart.highlightArea") && (Array.isArray(d.config.chart.highlightArea) ? l.chart.highlightArea = d.config.chart.highlightArea : l.chart.highlightArea = [d.config.chart.highlightArea]), d.config && We(d.config, "chart.grid.labels.yAxis.scaleMin") ? l.chart.grid.labels.yAxis.scaleMin = d.config.chart.grid.labels.yAxis.scaleMin : l.chart.grid.labels.yAxis.scaleMin = null, d.config && We(d.config, "chart.grid.labels.yAxis.scaleMax") ? l.chart.grid.labels.yAxis.scaleMax = d.config.chart.grid.labels.yAxis.scaleMax : l.chart.grid.labels.yAxis.scaleMax = null, d.config && We(d.config, "chart.zoom.startIndex") ? l.chart.zoom.startIndex = d.config.chart.zoom.startIndex : l.chart.zoom.startIndex = null, d.config && We(d.config, "chart.zoom.endIndex") ? l.chart.zoom.endIndex = d.config.chart.zoom.endIndex : l.chart.zoom.endIndex = null, d.config && We(d.config, "chart.grid.labels.yAxis.groupColor") ? l.chart.grid.labels.yAxis.groupColor = d.config.chart.grid.labels.yAxis.groupColor : l.chart.grid.labels.yAxis.groupColor = null, d.config && We(d.config, "chart.annotations") && Array.isArray(d.config.chart.annotations) && d.config.chart.annotations.length ? l.chart.annotations = d.config.chart.annotations.map((u) => ua({
|
|
810
|
-
defaultConfig:
|
|
810
|
+
defaultConfig: vl.chart.annotations[0],
|
|
811
811
|
userConfig: u
|
|
812
812
|
})) : l.chart.annotations = [], d.config && We(d.config, "chart.grid.position") && d.config.chart.grid.position === "start" && d.dataset.length && d.dataset.some((u) => u.type === "bar") && (l.chart.grid.position = "middle", We(d.config, "debug") && console.warn("Vue Data UI - VueUiXy - config.chart.grid.position was overriden to `middle` because your dataset contains a bar")), d.config && We(d.config, "chart.grid.labels.yAxis.serieNameFormatter") ? l.chart.grid.labels.yAxis.serieNameFormatter = d.config.chart.grid.labels.yAxis.serieNameFormatter : l.chart.grid.labels.yAxis.serieNameFormatter = null, d.config && We(d.config, "events.datapointEnter") ? l.events.datapointEnter = d.config.events.datapointEnter : l.events.datapointEnter = null, d.config && We(d.config, "events.datapointLeave") ? l.events.datapointLeave = d.config.events.datapointLeave : l.events.datapointLeave = null, d.config && We(d.config, "events.datapointClick") ? l.events.datapointClick = d.config.events.datapointClick : l.events.datapointClick = null, l.theme ? {
|
|
813
813
|
...ua({
|
|
@@ -817,21 +817,21 @@ const xn = {
|
|
|
817
817
|
customPalette: tn[l.theme] || d.palette
|
|
818
818
|
} : l;
|
|
819
819
|
}
|
|
820
|
-
const
|
|
820
|
+
const jt = x({
|
|
821
821
|
get() {
|
|
822
822
|
return !!d.dataset && d.dataset.length;
|
|
823
823
|
},
|
|
824
824
|
set(l) {
|
|
825
825
|
return l;
|
|
826
826
|
}
|
|
827
|
-
}), t = g(
|
|
827
|
+
}), t = g(xl()), k = g({
|
|
828
828
|
dataLabels: { show: !0 },
|
|
829
829
|
showTooltip: !0,
|
|
830
830
|
showTable: !1,
|
|
831
831
|
isStacked: !1,
|
|
832
832
|
useIndividualScale: !1
|
|
833
833
|
});
|
|
834
|
-
function
|
|
834
|
+
function pl() {
|
|
835
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 = {
|
|
836
836
|
dataLabels: { show: !0 },
|
|
837
837
|
showTooltip: t.value.chart.tooltip.show === !0,
|
|
@@ -843,7 +843,7 @@ const xn = {
|
|
|
843
843
|
const _t = x(() => !!t.value.debug), { loading: oe, FINAL_DATASET: he, manualLoading: ct } = sn({
|
|
844
844
|
...Ho(d),
|
|
845
845
|
FINAL_CONFIG: t,
|
|
846
|
-
prepareConfig:
|
|
846
|
+
prepareConfig: xl,
|
|
847
847
|
callback: () => {
|
|
848
848
|
Promise.resolve().then(async () => {
|
|
849
849
|
await Tl(), k.value.showTable = t.value.showTable;
|
|
@@ -922,7 +922,7 @@ const xn = {
|
|
|
922
922
|
}
|
|
923
923
|
})
|
|
924
924
|
});
|
|
925
|
-
function
|
|
925
|
+
function yl(l) {
|
|
926
926
|
const u = /* @__PURE__ */ new WeakMap();
|
|
927
927
|
return (e, ...n) => {
|
|
928
928
|
let a = u.get(e);
|
|
@@ -932,10 +932,10 @@ const xn = {
|
|
|
932
932
|
return a || (a = /* @__PURE__ */ new Map(), u.set(e, a)), a.set(i, o), o;
|
|
933
933
|
};
|
|
934
934
|
}
|
|
935
|
-
const
|
|
935
|
+
const el = yl((l, u) => na({ data: l, threshold: u })), Se = (l) => el(l, t.value.downsample.threshold), ze = x({
|
|
936
936
|
get: () => Math.max(...he.value.map((l) => Se(l.series).length)),
|
|
937
937
|
set: (l) => l
|
|
938
|
-
}), p = g({ start: 0, end: ze.value }), qe = g({ start: 0, end: ze.value }),
|
|
938
|
+
}), p = g({ start: 0, end: ze.value }), qe = g({ start: 0, end: ze.value }), kl = x(() => t.value.chart.zoom.preview.enable && (qe.value.start !== p.value.start || qe.value.end !== p.value.end));
|
|
939
939
|
function $t(l, u) {
|
|
940
940
|
qe.value[l] = u;
|
|
941
941
|
}
|
|
@@ -947,7 +947,7 @@ const xn = {
|
|
|
947
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));
|
|
948
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;
|
|
949
949
|
}
|
|
950
|
-
const
|
|
950
|
+
const tl = x(() => {
|
|
951
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));
|
|
952
952
|
return {
|
|
953
953
|
x: l + $ * z,
|
|
@@ -976,7 +976,7 @@ const xn = {
|
|
|
976
976
|
u < 0 || l >= p.value.end ? L.value = null : L.value = u ?? null;
|
|
977
977
|
}, { immediate: !0 });
|
|
978
978
|
const { isPrinting: ie, isImaging: m, generatePdf: h, generateImage: S } = un({
|
|
979
|
-
elementId: `vue-ui-xy_${
|
|
979
|
+
elementId: `vue-ui-xy_${Y.value}`,
|
|
980
980
|
fileName: t.value.chart.title.text || "vue-ui-xy",
|
|
981
981
|
options: t.value.chart.userOptions.print
|
|
982
982
|
}), X = g(!1), ce = x(() => Go(t.value.customPalette)), xt = x(() => {
|
|
@@ -984,12 +984,12 @@ const xn = {
|
|
|
984
984
|
return t.value.chart.grid.labels.yAxis.scaleMin;
|
|
985
985
|
const l = Math.min(...at.value.filter((u) => !ue.value.includes(u.id)).map((u) => Math.min(...u.series)));
|
|
986
986
|
return l > 0 ? 0 : l;
|
|
987
|
-
}),
|
|
987
|
+
}), ll = x(() => {
|
|
988
988
|
if (t.value.chart.grid.labels.yAxis.scaleMax)
|
|
989
989
|
return t.value.chart.grid.labels.yAxis.scaleMax;
|
|
990
990
|
const l = Math.max(...at.value.filter((u) => !ue.value.includes(u.id)).map((u) => Math.max(...u.series)));
|
|
991
991
|
return xt.value === l ? l + 1 : l;
|
|
992
|
-
}), Te = x(() => t.value.chart.grid.labels.yAxis.useNiceScale ? Ml(xt.value,
|
|
992
|
+
}), Te = x(() => t.value.chart.grid.labels.yAxis.useNiceScale ? Ml(xt.value, ll.value < 0 ? 0 : ll.value, t.value.chart.grid.labels.yAxis.commonScaleSteps) : Et(xt.value, ll.value < 0 ? 0 : ll.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(() => hl.value ? he.value.map((l, u) => {
|
|
993
993
|
const e = Se(l.series), n = `uniqueId_${u}`;
|
|
994
994
|
return {
|
|
995
995
|
...l,
|
|
@@ -1017,7 +1017,7 @@ const xn = {
|
|
|
1017
1017
|
const o = i.getComputedTextLength();
|
|
1018
1018
|
return (o > a ? o : a) + t.value.chart.grid.labels.yAxis.scaleValueOffsetX;
|
|
1019
1019
|
}, 0));
|
|
1020
|
-
const u =
|
|
1020
|
+
const u = qt.value ? qt.value.getBoundingClientRect().width + t.value.chart.grid.labels.axis.yLabelOffsetX + w.value.yAxis : 0, e = t.value.chart.grid.labels.yAxis.crosshairSize;
|
|
1021
1021
|
return l + u + e;
|
|
1022
1022
|
}
|
|
1023
1023
|
const Zl = g(0), no = sa((l) => {
|
|
@@ -1030,7 +1030,7 @@ const xn = {
|
|
|
1030
1030
|
no(n[0].contentRect.height);
|
|
1031
1031
|
});
|
|
1032
1032
|
e.observe(u), l(() => e.disconnect());
|
|
1033
|
-
}),
|
|
1033
|
+
}), Xt(() => {
|
|
1034
1034
|
Zl.value = 0;
|
|
1035
1035
|
});
|
|
1036
1036
|
const ra = x(() => {
|
|
@@ -1059,7 +1059,7 @@ const xn = {
|
|
|
1059
1059
|
individualOffsetX: u
|
|
1060
1060
|
};
|
|
1061
1061
|
}), io = x(() => {
|
|
1062
|
-
const l = t.value.chart.grid.position === "middle" ? 1 : 0, u = T.value + l, e =
|
|
1062
|
+
const l = t.value.chart.grid.position === "middle" ? 1 : 0, u = T.value + l, e = Z(c.value.top), n = Z(c.value.bottom);
|
|
1063
1063
|
return Array.from({ length: u }).map((a, i) => {
|
|
1064
1064
|
const o = c.value.width / T.value * i + c.value.left + te.value;
|
|
1065
1065
|
return `M${o},${e} L${o},${n}`;
|
|
@@ -1077,11 +1077,11 @@ const xn = {
|
|
|
1077
1077
|
return !!je?.vnode.props?.onSelectTimeLabel;
|
|
1078
1078
|
}
|
|
1079
1079
|
function ro(l, u, e) {
|
|
1080
|
-
if (!
|
|
1080
|
+
if (!Qt.value) {
|
|
1081
1081
|
const n = document.createElement("canvas");
|
|
1082
|
-
|
|
1082
|
+
Qt.value = n.getContext("2d");
|
|
1083
1083
|
}
|
|
1084
|
-
return
|
|
1084
|
+
return Qt.value.font = `normal ${l}px sans-serif`, Qt.value;
|
|
1085
1085
|
}
|
|
1086
1086
|
function va() {
|
|
1087
1087
|
const l = xe.value.querySelectorAll(".vue-ui-xy-tag");
|
|
@@ -1092,7 +1092,7 @@ const xn = {
|
|
|
1092
1092
|
}
|
|
1093
1093
|
const da = g(!1);
|
|
1094
1094
|
async function ha(l = !1) {
|
|
1095
|
-
await
|
|
1095
|
+
await Yt(), da.value = l, gt.value && (Jt.value = l);
|
|
1096
1096
|
}
|
|
1097
1097
|
function Kl() {
|
|
1098
1098
|
Ce.value = !Ce.value;
|
|
@@ -1143,9 +1143,9 @@ const xn = {
|
|
|
1143
1143
|
}
|
|
1144
1144
|
if (!E.length)
|
|
1145
1145
|
return n.map((H, F) => ({ text: "", absoluteIndex: F }));
|
|
1146
|
-
const $ = E.length, I = B,
|
|
1146
|
+
const $ = E.length, I = B, J = Math.max(2, Math.min(I - 3, $)), M = Math.min($, I + 3);
|
|
1147
1147
|
let D = Math.min(I, $), R = 1 / 0;
|
|
1148
|
-
for (let H =
|
|
1148
|
+
for (let H = J; H <= M; H += 1) {
|
|
1149
1149
|
const F = ($ - 1) % (H - 1), ae = Math.abs(H - I), Oe = F * 10 + ae;
|
|
1150
1150
|
Oe < R && (R = Oe, D = H);
|
|
1151
1151
|
}
|
|
@@ -1214,7 +1214,7 @@ const xn = {
|
|
|
1214
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;
|
|
1215
1215
|
}
|
|
1216
1216
|
async function Tl() {
|
|
1217
|
-
await
|
|
1217
|
+
await Yt(), await Yt();
|
|
1218
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
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();
|
|
1220
1220
|
}
|
|
@@ -1244,7 +1244,7 @@ const xn = {
|
|
|
1244
1244
|
line: Ue(u, l, 1)
|
|
1245
1245
|
};
|
|
1246
1246
|
});
|
|
1247
|
-
function
|
|
1247
|
+
function al() {
|
|
1248
1248
|
return k.value.useIndividualScale && k.value.isStacked ? se.value.line - c.value.width / T.value * 0.1 : se.value.bar;
|
|
1249
1249
|
}
|
|
1250
1250
|
function Il(l) {
|
|
@@ -1256,7 +1256,7 @@ const xn = {
|
|
|
1256
1256
|
function Sa(l) {
|
|
1257
1257
|
return l.value >= 0 ? l.y : [null, void 0, NaN, 1 / 0, -1 / 0].includes(l.zeroPosition) ? 0 : l.zeroPosition;
|
|
1258
1258
|
}
|
|
1259
|
-
const
|
|
1259
|
+
const wl = g(null);
|
|
1260
1260
|
let Ot = 0;
|
|
1261
1261
|
function go(l, u, e) {
|
|
1262
1262
|
return l >= e.left && l <= e.right && u >= e.top && u <= e.bottom;
|
|
@@ -1271,14 +1271,14 @@ const xn = {
|
|
|
1271
1271
|
return;
|
|
1272
1272
|
}
|
|
1273
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 ?
|
|
1274
|
+
z >= 0 && z < T.value ? wl.value !== z && (wl.value = z, Ra(!0, z)) : jl();
|
|
1275
1275
|
});
|
|
1276
1276
|
}
|
|
1277
1277
|
function jl() {
|
|
1278
|
-
Ot && (cancelAnimationFrame(Ot), Ot = 0),
|
|
1278
|
+
Ot && (cancelAnimationFrame(Ot), Ot = 0), wl.value = null, Ra(!1, null);
|
|
1279
1279
|
}
|
|
1280
1280
|
function xo() {
|
|
1281
|
-
|
|
1281
|
+
wl.value != null && po(wl.value);
|
|
1282
1282
|
}
|
|
1283
1283
|
function po(l) {
|
|
1284
1284
|
const u = Ke.value.map((e) => ({
|
|
@@ -1328,7 +1328,7 @@ const xn = {
|
|
|
1328
1328
|
values: u.absoluteValues,
|
|
1329
1329
|
color: u.color,
|
|
1330
1330
|
type: u.type
|
|
1331
|
-
}))),
|
|
1331
|
+
}))), Kt.value += 1;
|
|
1332
1332
|
}
|
|
1333
1333
|
const wo = x(() => {
|
|
1334
1334
|
const l = t.value.chart.title.text || "Chart visualization", u = t.value.chart.title.subtitle.text || "";
|
|
@@ -1349,7 +1349,7 @@ const xn = {
|
|
|
1349
1349
|
to: Math.min(t.value.chart.highlightArea.to, ze.value - 1)
|
|
1350
1350
|
};
|
|
1351
1351
|
return [{ ...l, span: l.from === l.to ? 1 : l.to < l.from ? 0 : l.to - l.from + 1 }];
|
|
1352
|
-
}), $o = x(() =>
|
|
1352
|
+
}), $o = x(() => hl.value ? he.value.map((l, u) => ({
|
|
1353
1353
|
...l,
|
|
1354
1354
|
series: Se(l.series),
|
|
1355
1355
|
id: `uniqueId_${u}`
|
|
@@ -1370,7 +1370,7 @@ const xn = {
|
|
|
1370
1370
|
fontFamily: t.value.chart.fontFamily,
|
|
1371
1371
|
prefix: t.value.chart.labels.prefix,
|
|
1372
1372
|
suffix: t.value.chart.labels.suffix,
|
|
1373
|
-
colNames: _e.value.map((l, u) => t.value.table.useDefaultTimeFormat ? l.text :
|
|
1373
|
+
colNames: _e.value.map((l, u) => t.value.table.useDefaultTimeFormat ? l.text : ol.value(u + p.value.start, t.value.table.timeFormat)),
|
|
1374
1374
|
thead: {
|
|
1375
1375
|
backgroundColor: t.value.table.th.backgroundColor,
|
|
1376
1376
|
color: t.value.table.th.color,
|
|
@@ -1401,7 +1401,7 @@ const xn = {
|
|
|
1401
1401
|
}), Co = x(() => {
|
|
1402
1402
|
const l = at.value.filter((u) => u.type === "bar").filter((u) => !ue.value.includes(u.id)).length;
|
|
1403
1403
|
return c.value.width / T.value / l - Nl.value * l;
|
|
1404
|
-
}), Nl = x(() => se.value.line * t.value.bar.periodGap), Rl = x(() => Math.max(1e-5,
|
|
1404
|
+
}), Nl = x(() => se.value.line * t.value.bar.periodGap), Rl = x(() => Math.max(1e-5, al() - (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(() => {
|
|
1405
1405
|
if (!t.value.chart.zoom.minimap.show) return [];
|
|
1406
1406
|
const l = $o.value.filter((a) => !ue.value.includes(a.id)), u = Math.max(...l.map((a) => a.series.length)), e = [];
|
|
1407
1407
|
for (let a = 0; a < u; a += 1)
|
|
@@ -1435,14 +1435,14 @@ const xn = {
|
|
|
1435
1435
|
return a - I * i;
|
|
1436
1436
|
};
|
|
1437
1437
|
return u.map(($) => {
|
|
1438
|
-
const { yAxis: { yTop: I, yBottom:
|
|
1438
|
+
const { yAxis: { yTop: I, yBottom: J, label: M } } = $, D = I != null && J != null && I !== J, R = I == null ? null : E(I), re = J == null ? null : E(J), H = ro(M.fontSize);
|
|
1439
1439
|
H.font = `${M.fontSize}px sans-serif`;
|
|
1440
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;
|
|
1441
|
-
let
|
|
1442
|
-
M.textAnchor === "middle" ?
|
|
1443
|
-
const
|
|
1441
|
+
let U;
|
|
1442
|
+
M.textAnchor === "middle" ? U = Oe - F / 2 - M.padding.left : M.textAnchor === "end" ? U = Oe - F - M.padding.right : U = Oe - M.padding.left;
|
|
1443
|
+
const q = Ee - ae * 0.75 - M.padding.top;
|
|
1444
1444
|
return {
|
|
1445
|
-
show: ![R, re,
|
|
1445
|
+
show: ![R, re, q].includes(NaN),
|
|
1446
1446
|
id: `annotation_y_${Dl()}`,
|
|
1447
1447
|
hasArea: D,
|
|
1448
1448
|
areaHeight: D ? Math.abs(R - re) : 0,
|
|
@@ -1453,8 +1453,8 @@ const xn = {
|
|
|
1453
1453
|
x2: n,
|
|
1454
1454
|
_text: { x: Oe, y: Ee },
|
|
1455
1455
|
_box: {
|
|
1456
|
-
x:
|
|
1457
|
-
y:
|
|
1456
|
+
x: U,
|
|
1457
|
+
y: q,
|
|
1458
1458
|
width: F + M.padding.left + M.padding.right,
|
|
1459
1459
|
height: ae + M.padding.top + M.padding.bottom,
|
|
1460
1460
|
fill: M.backgroundColor,
|
|
@@ -1476,63 +1476,63 @@ const xn = {
|
|
|
1476
1476
|
return l.filter((o) => o.type === "bar").map((o, z) => {
|
|
1477
1477
|
Ql(o);
|
|
1478
1478
|
const B = A.value[o.scaleLabel].min, E = A.value[o.scaleLabel].max;
|
|
1479
|
-
o.absoluteValues.filter((
|
|
1479
|
+
o.absoluteValues.filter((G) => ![null, void 0].includes(G)).map((G) => (G - B) / (E - B));
|
|
1480
1480
|
const $ = {
|
|
1481
1481
|
valueMin: B,
|
|
1482
1482
|
valueMax: E < 0 ? 0 : E
|
|
1483
1483
|
}, I = {
|
|
1484
1484
|
max: o.scaleMax || Math.max(...o.absoluteValues) || 1,
|
|
1485
|
-
min: o.scaleMin || Math.min(...o.absoluteValues.filter((
|
|
1486
|
-
},
|
|
1487
|
-
const Mt = k.value.useIndividualScale ? (o.absoluteValues[ge] + re) / F : Pt(
|
|
1485
|
+
min: o.scaleMin || Math.min(...o.absoluteValues.filter((G) => ![void 0, null].includes(G))) > 0 ? 0 : Math.min(...o.absoluteValues.filter((G) => ![null, void 0].includes(G)))
|
|
1486
|
+
}, J = 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, J) : Et(I.min, I.max === I.min ? I.max * M : I.max, J), R = t.value.chart.grid.labels.yAxis.useNiceScale ? Ml($.valueMin, $.valueMax === $.valueMin ? $.valueMax * M : $.valueMax, J) : Et($.valueMin, $.valueMax === $.valueMin ? $.valueMax * M : $.valueMax, J), re = D.min >= 0 ? 0 : Math.abs(D.min), H = 0, F = D.max + re, ae = R.max + Math.abs(H), Oe = o.stackIndex, nl = u - 1 - Oe, Ee = n ? 1 - o.cumulatedStackRatio : 0, U = n ? i * Ee + e * nl : 0, q = n ? i * o.stackRatio : c.value.height, fe = c.value.bottom - U - q * re / F, De = c.value.bottom - U - q * H / ae, Ne = Ze.value.filter((G) => G.type === "bar").filter((G) => !ue.value.includes(G.id)).length, $l = o.series.map((G, ge) => {
|
|
1487
|
+
const Mt = k.value.useIndividualScale ? (o.absoluteValues[ge] + re) / F : Pt(G), 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;
|
|
1488
1488
|
return {
|
|
1489
|
-
yOffset: W(
|
|
1490
|
-
individualHeight: W(
|
|
1489
|
+
yOffset: W(U),
|
|
1490
|
+
individualHeight: W(q),
|
|
1491
1491
|
x: W(Ht),
|
|
1492
|
-
y: c.value.bottom -
|
|
1492
|
+
y: c.value.bottom - U - q * Mt,
|
|
1493
1493
|
value: o.absoluteValues[ge],
|
|
1494
1494
|
zeroPosition: W(fe),
|
|
1495
1495
|
individualMax: W(F),
|
|
1496
1496
|
comment: o.comments && o.comments.slice(p.value.start, p.value.end)[ge] || ""
|
|
1497
1497
|
};
|
|
1498
|
-
}), Be = o.absoluteValues.map((
|
|
1498
|
+
}), Be = o.absoluteValues.map((G) => R.min >= 0 ? (G - Math.abs(R.min)) / (R.max - Math.abs(R.min)) : (G + Math.abs(R.min)) / (R.max + Math.abs(R.min))), Lt = o.series.map((G, ge) => {
|
|
1499
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;
|
|
1500
1500
|
return {
|
|
1501
|
-
yOffset: W(
|
|
1502
|
-
individualHeight: W(
|
|
1501
|
+
yOffset: W(U),
|
|
1502
|
+
individualHeight: W(q),
|
|
1503
1503
|
x: W(Mt),
|
|
1504
|
-
y: W(c.value.bottom - W(
|
|
1504
|
+
y: W(c.value.bottom - W(U) - (W(q) * Be[ge] || 0)),
|
|
1505
1505
|
value: o.absoluteValues[ge],
|
|
1506
1506
|
zeroPosition: W(fe),
|
|
1507
1507
|
individualMax: W(F),
|
|
1508
1508
|
comment: o.comments && o.comments.slice(p.value.start, p.value.end)[ge] || ""
|
|
1509
1509
|
};
|
|
1510
|
-
}),
|
|
1511
|
-
y:
|
|
1512
|
-
value:
|
|
1510
|
+
}), Q = D.ticks.map((G) => ({
|
|
1511
|
+
y: G >= 0 ? fe - q * (G / F) : fe + q * Math.abs(G) / F,
|
|
1512
|
+
value: G,
|
|
1513
1513
|
prefix: o.prefix || t.value.chart.labels.prefix,
|
|
1514
1514
|
suffix: o.suffix || t.value.chart.labels.suffix,
|
|
1515
1515
|
datapoint: o
|
|
1516
|
-
})), me = R.ticks.map((
|
|
1517
|
-
const ge = (
|
|
1516
|
+
})), me = R.ticks.map((G) => {
|
|
1517
|
+
const ge = (G - R.min) / (R.max - R.min);
|
|
1518
1518
|
return {
|
|
1519
|
-
y:
|
|
1520
|
-
value:
|
|
1519
|
+
y: G >= 0 ? De - q * ge : De + q * ge,
|
|
1520
|
+
value: G,
|
|
1521
1521
|
prefix: o.prefix || t.value.chart.labels.prefix,
|
|
1522
1522
|
suffix: o.suffix || t.value.chart.labels.suffix,
|
|
1523
1523
|
datapoint: o
|
|
1524
1524
|
};
|
|
1525
1525
|
});
|
|
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 :
|
|
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 : Q, 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 = U, A.value[o.scaleLabel].individualHeight = q, A.value[o.scaleLabel].autoScaleYLabels = me, A.value[o.scaleLabel].unique = Bt.value.filter((G) => G.scaleLabel === o.scaleLabel).length === 1, {
|
|
1527
1527
|
...o,
|
|
1528
|
-
yOffset:
|
|
1528
|
+
yOffset: U,
|
|
1529
1529
|
autoScaleYLabels: me,
|
|
1530
|
-
individualHeight:
|
|
1531
|
-
scaleYLabels: o.autoScaling ? me :
|
|
1530
|
+
individualHeight: q,
|
|
1531
|
+
scaleYLabels: o.autoScaling ? me : Q,
|
|
1532
1532
|
individualScale: o.autoScaling ? R : D,
|
|
1533
1533
|
individualMax: o.autoScaling ? ae : F,
|
|
1534
1534
|
zeroPosition: o.autoScaling ? De : fe,
|
|
1535
|
-
plots: o.autoScaling ? Lt :
|
|
1535
|
+
plots: o.autoScaling ? Lt : $l,
|
|
1536
1536
|
groupId: A.value[o.scaleLabel].groupId
|
|
1537
1537
|
};
|
|
1538
1538
|
});
|
|
@@ -1548,26 +1548,26 @@ const xn = {
|
|
|
1548
1548
|
}, I = {
|
|
1549
1549
|
max: o.scaleMax || Math.max(...o.absoluteValues) || 1,
|
|
1550
1550
|
min: o.scaleMin || (Math.min(...o.absoluteValues) > 0 ? 0 : Math.min(...o.absoluteValues))
|
|
1551
|
-
},
|
|
1551
|
+
}, J = 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, J) : Et(I.min, I.max === I.min ? I.max * M : I.max, J), R = t.value.chart.grid.labels.yAxis.useNiceScale ? Ml($.valueMin, $.valueMax === $.valueMin ? $.valueMax * M : $.valueMax, J) : Et($.valueMin, $.valueMax === $.valueMin ? $.valueMax * M : $.valueMax, J), 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, nl = u - 1 - Oe, Ee = n ? 1 - o.cumulatedStackRatio : 0, U = n ? i * Ee + e * nl : 0, q = n ? i * o.stackRatio : c.value.height, fe = c.value.bottom - U - q * re / F, De = c.value.bottom - U - q * H / ae, Ne = o.series.map((V, $e) => {
|
|
1552
1552
|
const Ro = k.value.useIndividualScale ? (o.absoluteValues[$e] + Math.abs(re)) / F : Pt(V);
|
|
1553
1553
|
return {
|
|
1554
1554
|
x: W(c.value.left + se.value.line / 2 + se.value.line * $e),
|
|
1555
|
-
y: W(c.value.bottom -
|
|
1555
|
+
y: W(c.value.bottom - U - q * Ro),
|
|
1556
1556
|
value: o.absoluteValues[$e],
|
|
1557
1557
|
comment: o.comments && o.comments.slice(p.value.start, p.value.end)[$e] || ""
|
|
1558
1558
|
};
|
|
1559
|
-
}),
|
|
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
1560
|
x: W(c.value.left + se.value.line / 2 + se.value.line * $e),
|
|
1561
1561
|
y: fe,
|
|
1562
1562
|
value: o.absoluteValues[$e],
|
|
1563
1563
|
comment: o.comments && o.comments.slice(p.value.start, p.value.end)[$e] || ""
|
|
1564
1564
|
} : {
|
|
1565
1565
|
x: W(c.value.left + se.value.line / 2 + se.value.line * $e),
|
|
1566
|
-
y: W(c.value.bottom -
|
|
1566
|
+
y: W(c.value.bottom - U - (q * $l[$e] || 0)),
|
|
1567
1567
|
value: o.absoluteValues[$e],
|
|
1568
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)),
|
|
1570
|
-
y: V >= 0 ? fe -
|
|
1569
|
+
}), Lt = t.value.line.cutNullValues ? Ka(Ne) : Xl(Ne.filter((V) => V.value !== null)), Q = 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)), G = t.value.line.cutNullValues ? Ja(Be) : Yl(Be.filter((V) => V.value !== null)), ge = D.ticks.map((V) => ({
|
|
1570
|
+
y: V >= 0 ? fe - q * (V / F) : fe + q * Math.abs(V) / F,
|
|
1571
1571
|
value: V,
|
|
1572
1572
|
prefix: o.prefix || t.value.chart.labels.prefix,
|
|
1573
1573
|
suffix: o.suffix || t.value.chart.labels.suffix,
|
|
@@ -1575,39 +1575,39 @@ const xn = {
|
|
|
1575
1575
|
})), Mt = R.ticks.map((V) => {
|
|
1576
1576
|
const $e = (V - R.min) / (R.max - R.min);
|
|
1577
1577
|
return {
|
|
1578
|
-
y: V >= 0 ? De -
|
|
1578
|
+
y: V >= 0 ? De - q * $e : De + q * $e,
|
|
1579
1579
|
value: V,
|
|
1580
1580
|
prefix: o.prefix || t.value.chart.labels.prefix,
|
|
1581
1581
|
suffix: o.suffix || t.value.chart.labels.suffix,
|
|
1582
1582
|
datapoint: o
|
|
1583
1583
|
};
|
|
1584
1584
|
});
|
|
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 =
|
|
1586
|
-
const Ht = k.value.useIndividualScale ? o.autoScaling ? De : fe : Ie.value,
|
|
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 = U, A.value[o.scaleLabel].individualHeight = q, 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, Ll = Math.max(Math.max(o.autoScaling ? De : ge.at(-1) ? ge.at(-1).y : 0, c.value.top), Ht);
|
|
1587
1587
|
return {
|
|
1588
1588
|
...o,
|
|
1589
|
-
yOffset:
|
|
1589
|
+
yOffset: U,
|
|
1590
1590
|
autoScaleYLabels: Mt,
|
|
1591
|
-
individualHeight:
|
|
1591
|
+
individualHeight: q,
|
|
1592
1592
|
scaleYLabels: o.autoScaling ? Mt : ge,
|
|
1593
1593
|
individualScale: o.autoScaling ? R : D,
|
|
1594
1594
|
individualMax: o.autoScaling ? ae : F,
|
|
1595
1595
|
zeroPosition: o.autoScaling ? De : fe,
|
|
1596
|
-
curve: o.autoScaling ?
|
|
1596
|
+
curve: o.autoScaling ? Q : Lt,
|
|
1597
1597
|
plots: o.autoScaling ? Be : Ne,
|
|
1598
1598
|
area: o.useArea ? k.value.useIndividualScale ? t.value.line.cutNullValues ? Qa(
|
|
1599
1599
|
o.autoScaling ? Be : Ne,
|
|
1600
|
-
|
|
1600
|
+
Ll
|
|
1601
1601
|
) : ja(
|
|
1602
1602
|
o.autoScaling ? Be.filter((V) => V.value !== null) : Ne.filter((V) => V.value !== null),
|
|
1603
|
-
|
|
1604
|
-
) : t.value.line.cutNullValues ? Qa(Ne,
|
|
1603
|
+
Ll
|
|
1604
|
+
) : t.value.line.cutNullValues ? Qa(Ne, Ll) : ja(Ne.filter((V) => V.value !== null), Ll) : "",
|
|
1605
1605
|
curveAreas: o.useArea ? Ko(
|
|
1606
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
|
-
|
|
1607
|
+
Ll,
|
|
1608
1608
|
t.value.line.cutNullValues
|
|
1609
1609
|
) : [],
|
|
1610
|
-
straight: o.autoScaling ?
|
|
1610
|
+
straight: o.autoScaling ? G : me,
|
|
1611
1611
|
groupId: A.value[o.scaleLabel].groupId
|
|
1612
1612
|
};
|
|
1613
1613
|
});
|
|
@@ -1616,56 +1616,56 @@ const xn = {
|
|
|
1616
1616
|
return l.filter((o) => o.type === "plot").map((o) => {
|
|
1617
1617
|
Ql(o);
|
|
1618
1618
|
const z = A.value[o.scaleLabel].min, B = A.value[o.scaleLabel].max;
|
|
1619
|
-
o.absoluteValues.filter((
|
|
1619
|
+
o.absoluteValues.filter((Q) => ![null, void 0].includes(Q)).map((Q) => (Q - z) / (B - z));
|
|
1620
1620
|
const E = {
|
|
1621
1621
|
valueMin: z,
|
|
1622
1622
|
valueMax: B
|
|
1623
1623
|
}, $ = {
|
|
1624
1624
|
max: o.scaleMax || Math.max(...o.absoluteValues) || 1,
|
|
1625
1625
|
min: o.scaleMin || Math.min(...o.absoluteValues) > 0 ? 0 : Math.min(...o.absoluteValues)
|
|
1626
|
-
}, I = o.scaleSteps || t.value.chart.grid.labels.yAxis.commonScaleSteps,
|
|
1627
|
-
const
|
|
1626
|
+
}, I = o.scaleSteps || t.value.chart.grid.labels.yAxis.commonScaleSteps, J = 1.0000001, M = Et($.min, $.max === $.min ? $.max * J : $.max, I), D = Et(E.valueMin, E.valueMax === E.valueMin ? E.valueMax * J : 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, nl = n ? 1 - o.cumulatedStackRatio : 0, Ee = n ? i * nl + e * Oe : 0, U = n ? i * o.stackRatio : c.value.height, q = c.value.bottom - Ee - U * R / H, fe = c.value.bottom - Ee - U * re / F, De = o.series.map((Q, me) => {
|
|
1627
|
+
const G = k.value.useIndividualScale ? (o.absoluteValues[me] + Math.abs(R)) / H : Pt(Q);
|
|
1628
1628
|
return {
|
|
1629
1629
|
x: W(c.value.left + se.value.plot / 2 + se.value.plot * me),
|
|
1630
|
-
y: W(c.value.bottom - Ee -
|
|
1630
|
+
y: W(c.value.bottom - Ee - U * G),
|
|
1631
1631
|
value: o.absoluteValues[me],
|
|
1632
1632
|
comment: o.comments && o.comments.slice(p.value.start, p.value.end)[me] || ""
|
|
1633
1633
|
};
|
|
1634
|
-
}), Ne = o.absoluteValues.map((
|
|
1634
|
+
}), Ne = o.absoluteValues.map((Q) => D.min >= 0 ? (Q - Math.abs(D.min)) / (D.max - Math.abs(D.min)) : (Q + Math.abs(D.min)) / (D.max + Math.abs(D.min))), $l = o.series.map((Q, me) => ({
|
|
1635
1635
|
x: W(c.value.left + se.value.plot / 2 + se.value.plot * me),
|
|
1636
|
-
y: W(c.value.bottom - Ee - (
|
|
1636
|
+
y: W(c.value.bottom - Ee - (U * Ne[me] || 0)),
|
|
1637
1637
|
value: o.absoluteValues[me],
|
|
1638
1638
|
comment: o.comments && o.comments.slice(p.value.start, p.value.end)[me] || ""
|
|
1639
|
-
})), Be = M.ticks.map((
|
|
1640
|
-
y:
|
|
1641
|
-
value:
|
|
1639
|
+
})), Be = M.ticks.map((Q) => ({
|
|
1640
|
+
y: Q >= 0 ? q - U * (Q / H) : q + U * Math.abs(Q) / H,
|
|
1641
|
+
value: Q,
|
|
1642
1642
|
prefix: o.prefix || t.value.chart.labels.prefix,
|
|
1643
1643
|
suffix: o.suffix || t.value.chart.labels.suffix,
|
|
1644
1644
|
datapoint: o
|
|
1645
|
-
})), Lt = D.ticks.map((
|
|
1646
|
-
const me = (
|
|
1645
|
+
})), Lt = D.ticks.map((Q) => {
|
|
1646
|
+
const me = (Q - D.min) / (D.max - D.min);
|
|
1647
1647
|
return {
|
|
1648
|
-
y:
|
|
1649
|
-
value:
|
|
1648
|
+
y: Q >= 0 ? fe - U * me : fe + U * me,
|
|
1649
|
+
value: Q,
|
|
1650
1650
|
prefix: o.prefix || t.value.chart.labels.prefix,
|
|
1651
1651
|
suffix: o.suffix || t.value.chart.labels.suffix,
|
|
1652
1652
|
datapoint: o
|
|
1653
1653
|
};
|
|
1654
1654
|
});
|
|
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 :
|
|
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 : q, 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 = U, A.value[o.scaleLabel].autoScaleYLabels = Lt, A.value[o.scaleLabel].unique = Bt.value.filter((Q) => Q.scaleLabel === o.scaleLabel).length === 1, {
|
|
1656
1656
|
...o,
|
|
1657
1657
|
yOffset: Ee,
|
|
1658
1658
|
autoScaleYLabels: Lt,
|
|
1659
|
-
individualHeight:
|
|
1659
|
+
individualHeight: U,
|
|
1660
1660
|
scaleYLabels: o.autoScaling ? Lt : Be,
|
|
1661
1661
|
individualScale: o.autoScaling ? D : M,
|
|
1662
1662
|
individualMax: o.autoScaling ? F : H,
|
|
1663
|
-
zeroPosition: o.autoScaling ? fe :
|
|
1664
|
-
plots: o.autoScaling ?
|
|
1663
|
+
zeroPosition: o.autoScaling ? fe : q,
|
|
1664
|
+
plots: o.autoScaling ? $l : De,
|
|
1665
1665
|
groupId: A.value[o.scaleLabel].groupId
|
|
1666
1666
|
};
|
|
1667
1667
|
});
|
|
1668
|
-
}),
|
|
1668
|
+
}), Sl = x(() => {
|
|
1669
1669
|
const l = Pe.value.map((i) => ({
|
|
1670
1670
|
name: i.name,
|
|
1671
1671
|
color: i.color,
|
|
@@ -1759,7 +1759,7 @@ const xn = {
|
|
|
1759
1759
|
lines: Pe.value,
|
|
1760
1760
|
plots: ot.value,
|
|
1761
1761
|
config: t.value
|
|
1762
|
-
})),
|
|
1762
|
+
})), ol = x(() => {
|
|
1763
1763
|
const l = t.value.chart.grid.labels.xAxisLabels.datetimeFormatter, u = cn({
|
|
1764
1764
|
useUTC: l.useUTC,
|
|
1765
1765
|
locale: vn[l.locale] || { months: [], shortMonths: [], days: [], shortDays: [] },
|
|
@@ -1770,7 +1770,7 @@ const xn = {
|
|
|
1770
1770
|
return i == null ? "" : u.formatDate(new Date(i), n);
|
|
1771
1771
|
};
|
|
1772
1772
|
}), ea = x(() => (t.value.chart.grid.labels.xAxisLabels.values || []).map((u, e) => ({
|
|
1773
|
-
text:
|
|
1773
|
+
text: ol.value(e, t.value.chart.zoom.timeFormat),
|
|
1774
1774
|
absoluteIndex: e
|
|
1775
1775
|
}))), Pl = g(!1), Ia = x(() => {
|
|
1776
1776
|
let l = "", u = "";
|
|
@@ -1823,7 +1823,7 @@ const xn = {
|
|
|
1823
1823
|
config: t.value
|
|
1824
1824
|
});
|
|
1825
1825
|
if (e && e.text && t.value.chart.tooltip.showTimeLabel) {
|
|
1826
|
-
const a =
|
|
1826
|
+
const a = ol.value(L.value + p.value.start, t.value.chart.tooltip.timeFormat);
|
|
1827
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>`;
|
|
1828
1828
|
}
|
|
1829
1829
|
return pt.value.forEach((a) => {
|
|
@@ -1831,7 +1831,7 @@ const xn = {
|
|
|
1831
1831
|
let i = "", o = "";
|
|
1832
1832
|
switch (we.value[a.type]) {
|
|
1833
1833
|
case "bar":
|
|
1834
|
-
i = `<svg viewBox="0 0 40 40" height="14" width="14">${
|
|
1834
|
+
i = `<svg viewBox="0 0 40 40" height="14" width="14">${cl.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="${cl.pattern ? `url(#pattern_${Y.value}_${a.slotAbsoluteIndex}` : a.color}" /></svg>`;
|
|
1835
1835
|
break;
|
|
1836
1836
|
case "line":
|
|
1837
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>`;
|
|
@@ -1891,7 +1891,7 @@ const xn = {
|
|
|
1891
1891
|
type: e.type
|
|
1892
1892
|
})), u = [];
|
|
1893
1893
|
return _e.value.forEach((e, n) => {
|
|
1894
|
-
const a = t.value.table.useDefaultTimeFormat ? [e.text] : [
|
|
1894
|
+
const a = t.value.table.useDefaultTimeFormat ? [e.text] : [ol.value(n + p.value.start, t.value.table.timeFormat)];
|
|
1895
1895
|
Ke.value.forEach((i) => {
|
|
1896
1896
|
a.push(Ve(i.absoluteValues[n]) ? Number(i.absoluteValues[n].toFixed(t.value.table.rounding)) : "");
|
|
1897
1897
|
}), u.push(a);
|
|
@@ -1905,7 +1905,7 @@ const xn = {
|
|
|
1905
1905
|
const o = Ke.value.map((z) => z.absoluteValues[i] ?? 0).reduce((z, B) => z + B, 0);
|
|
1906
1906
|
e.push(
|
|
1907
1907
|
[
|
|
1908
|
-
t.value.table.useDefaultTimeFormat ? _e.value[i].text ?? "-" :
|
|
1908
|
+
t.value.table.useDefaultTimeFormat ? _e.value[i].text ?? "-" : ol.value(i + p.value.start, t.value.table.timeFormat)
|
|
1909
1909
|
].concat(Ke.value.map(
|
|
1910
1910
|
(z) => Le(
|
|
1911
1911
|
z.type === "line" ? t.value.line.labels.formatter : z.type === "bar" ? t.value.bar.labels.formatter : t.value.plot.labels.formatter,
|
|
@@ -1959,44 +1959,44 @@ const xn = {
|
|
|
1959
1959
|
k.value.showTooltip = !k.value.showTooltip;
|
|
1960
1960
|
}
|
|
1961
1961
|
function Ba(l) {
|
|
1962
|
-
Re.value = l,
|
|
1962
|
+
Re.value = l, fl.value += 1;
|
|
1963
1963
|
}
|
|
1964
1964
|
function Ha() {
|
|
1965
1965
|
if (!t.value.responsiveProportionalSizing) {
|
|
1966
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;
|
|
1967
1967
|
return;
|
|
1968
1968
|
}
|
|
1969
|
-
w.value.dataLabels =
|
|
1969
|
+
w.value.dataLabels = ul({
|
|
1970
1970
|
relator: ye.value,
|
|
1971
1971
|
adjuster: 400,
|
|
1972
1972
|
source: t.value.chart.grid.labels.fontSize,
|
|
1973
1973
|
threshold: 10,
|
|
1974
1974
|
fallback: 10
|
|
1975
|
-
}), w.value.yAxis =
|
|
1975
|
+
}), w.value.yAxis = ul({
|
|
1976
1976
|
relator: ee.value,
|
|
1977
1977
|
adjuster: 1e3,
|
|
1978
1978
|
source: t.value.chart.grid.labels.axis.fontSize,
|
|
1979
1979
|
threshold: 10,
|
|
1980
1980
|
fallback: 10
|
|
1981
|
-
}), w.value.xAxis =
|
|
1981
|
+
}), w.value.xAxis = ul({
|
|
1982
1982
|
relator: ee.value,
|
|
1983
1983
|
adjuster: 1e3,
|
|
1984
1984
|
source: t.value.chart.grid.labels.xAxisLabels.fontSize,
|
|
1985
1985
|
threshold: 10,
|
|
1986
1986
|
fallback: 10
|
|
1987
|
-
}), w.value.plotLabels =
|
|
1987
|
+
}), w.value.plotLabels = ul({
|
|
1988
1988
|
relator: ee.value,
|
|
1989
1989
|
adjuster: 800,
|
|
1990
1990
|
source: t.value.chart.labels.fontSize,
|
|
1991
1991
|
threshold: 10,
|
|
1992
1992
|
fallback: 10
|
|
1993
|
-
}), Fe.value.plot =
|
|
1993
|
+
}), Fe.value.plot = ul({
|
|
1994
1994
|
relator: ee.value,
|
|
1995
1995
|
adjuster: 800,
|
|
1996
1996
|
source: t.value.plot.radius,
|
|
1997
1997
|
threshold: 1,
|
|
1998
1998
|
fallback: 1
|
|
1999
|
-
}), Fe.value.line =
|
|
1999
|
+
}), Fe.value.line = ul({
|
|
2000
2000
|
relator: ee.value,
|
|
2001
2001
|
adjuster: 800,
|
|
2002
2002
|
source: t.value.line.radius,
|
|
@@ -2023,29 +2023,29 @@ const xn = {
|
|
|
2023
2023
|
-----> The serie '${u.name}' contains the value '${e}' at index ${n}.
|
|
2024
2024
|
'${e}' was converted to null to allow the chart to display.`);
|
|
2025
2025
|
});
|
|
2026
|
-
}), to(d.dataset) || (ct.value = t.value.loading), gt.value = t.value.chart.userOptions.showOnChartHover,
|
|
2026
|
+
}), to(d.dataset) || (ct.value = t.value.loading), gt.value = t.value.chart.userOptions.showOnChartHover, gl.value = t.value.chart.userOptions.keepStateOnChartLeave, Jt.value = !t.value.chart.userOptions.showOnChartHover, pl();
|
|
2027
2027
|
const l = 12;
|
|
2028
2028
|
if (t.value.responsive) {
|
|
2029
2029
|
const e = xe.value.parentNode;
|
|
2030
|
-
Me.value && (Me.value.unobserve(
|
|
2030
|
+
Me.value && (Me.value.unobserve(dl.value), Me.value.disconnect());
|
|
2031
2031
|
const { height: n, width: a } = e.getBoundingClientRect();
|
|
2032
2032
|
let i = null, o = 0;
|
|
2033
2033
|
t.value.chart.title.show && pe.value && (i = pe.value, o = i.getBoundingClientRect().height);
|
|
2034
2034
|
let z = null, B = 0;
|
|
2035
|
-
t.value.chart.zoom.show && ze.value > 6 &&
|
|
2035
|
+
t.value.chart.zoom.show && ze.value > 6 && jt.value && He.value && He.value.$el && (z = He.value.$el, B = z.getBoundingClientRect().height);
|
|
2036
2036
|
let E = null, $ = 0;
|
|
2037
2037
|
t.value.chart.legend.show && st.value && (E = st.value, $ = E.getBoundingClientRect().height);
|
|
2038
2038
|
let I = 0;
|
|
2039
2039
|
It.value && (I = It.value.getBoundingClientRect().height);
|
|
2040
|
-
let
|
|
2041
|
-
Nt.value && (
|
|
2040
|
+
let J = 0;
|
|
2041
|
+
Nt.value && (J = Nt.value.getBoundingClientRect().height), ye.value = n - o - $ - B - I - J - l, ee.value = a, rt.value = `0 0 ${ee.value < 0 ? 10 : ee.value} ${ye.value < 0 ? 10 : ye.value}`, Ha();
|
|
2042
2042
|
const M = new ResizeObserver((D) => {
|
|
2043
2043
|
for (const R of D)
|
|
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 ?
|
|
2045
|
-
ye.value = R.contentRect.height - o - $ - B - I -
|
|
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 ? J = Nt.value.getBoundingClientRect().height : J = 0, requestAnimationFrame(() => {
|
|
2045
|
+
ye.value = R.contentRect.height - o - $ - B - I - J - l, ee.value = R.contentBoxSize[0].inlineSize, rt.value = `0 0 ${ee.value < 0 ? 10 : ee.value} ${ye.value < 0 ? 10 : ye.value}`, Ha();
|
|
2046
2046
|
});
|
|
2047
2047
|
});
|
|
2048
|
-
Me.value = M,
|
|
2048
|
+
Me.value = M, dl.value = e, M.observe(e);
|
|
2049
2049
|
} else
|
|
2050
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}`;
|
|
2051
2051
|
}
|
|
@@ -2055,10 +2055,10 @@ const xn = {
|
|
|
2055
2055
|
y: l.clientY
|
|
2056
2056
|
};
|
|
2057
2057
|
}
|
|
2058
|
-
|
|
2058
|
+
il(() => {
|
|
2059
2059
|
la(), Tl(), document.addEventListener("mousemove", Va, { passive: !0 }), document.addEventListener("scroll", va, { passive: !0 });
|
|
2060
|
-
}),
|
|
2061
|
-
document.removeEventListener("scroll", va, { passive: !0 }), document.removeEventListener("mousemove", Va, { passive: !0 }), Me.value && (Me.value.unobserve(
|
|
2060
|
+
}), Xt(() => {
|
|
2061
|
+
document.removeEventListener("scroll", va, { passive: !0 }), document.removeEventListener("mousemove", Va, { passive: !0 }), Me.value && (Me.value.unobserve(dl.value), Me.value.disconnect(), Me.value = null);
|
|
2062
2062
|
}), dn({
|
|
2063
2063
|
timeLabelsEls: ht,
|
|
2064
2064
|
timeLabels: _e,
|
|
@@ -2082,7 +2082,7 @@ const xn = {
|
|
|
2082
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
2083
|
return W(B);
|
|
2084
2084
|
}
|
|
2085
|
-
|
|
2085
|
+
il(() => {
|
|
2086
2086
|
let l = null, u = null;
|
|
2087
2087
|
const e = (i) => {
|
|
2088
2088
|
cancelAnimationFrame(u), u = requestAnimationFrame(() => {
|
|
@@ -2093,13 +2093,13 @@ const xn = {
|
|
|
2093
2093
|
o && e(o.contentRect.width || 200);
|
|
2094
2094
|
}), a = Ua((i) => {
|
|
2095
2095
|
const o = Ea.value;
|
|
2096
|
-
l && l !== o && (n.unobserve(l), l = null), o && o !== l && (
|
|
2096
|
+
l && l !== o && (n.unobserve(l), l = null), o && o !== l && (Yt(() => {
|
|
2097
2097
|
o.offsetParent !== null && e(o.offsetWidth || o.getBoundingClientRect().width || 200);
|
|
2098
2098
|
}), n.observe(o), l = o), i(() => {
|
|
2099
2099
|
l && (n.unobserve(l), l = null);
|
|
2100
2100
|
});
|
|
2101
2101
|
});
|
|
2102
|
-
|
|
2102
|
+
Xt(() => {
|
|
2103
2103
|
try {
|
|
2104
2104
|
l && n.unobserve(l), n.disconnect(), a();
|
|
2105
2105
|
} catch {
|
|
@@ -2126,15 +2126,15 @@ const xn = {
|
|
|
2126
2126
|
console.warn("Custom format cannot be applied on timeTag."), Bl.value = !1;
|
|
2127
2127
|
}
|
|
2128
2128
|
if (!Bl.value)
|
|
2129
|
-
return [null, void 0].includes(_e.value[l]) ? "" : t.value.chart.grid.labels.xAxisLabels.datetimeFormatter.enable && !t.value.chart.timeTag.useDefaultFormat ?
|
|
2129
|
+
return [null, void 0].includes(_e.value[l]) ? "" : t.value.chart.grid.labels.xAxisLabels.datetimeFormatter.enable && !t.value.chart.timeTag.useDefaultFormat ? ol.value(l + p.value.start, t.value.chart.timeTag.timeFormat) : _e.value[l].text;
|
|
2130
2130
|
});
|
|
2131
2131
|
it(() => d.dataset, (l) => {
|
|
2132
2132
|
Array.isArray(l) && l.length > 0 && (ct.value = !1), ze.value = Math.max(...he.value.map((u) => Se(u.series).length)), p.value = {
|
|
2133
2133
|
start: 0,
|
|
2134
2134
|
end: ze.value
|
|
2135
|
-
}, St.value += 1,
|
|
2135
|
+
}, St.value += 1, Kt.value += 1, vt();
|
|
2136
2136
|
}, { deep: !0 }), it(() => d.config, (l) => {
|
|
2137
|
-
oe.value || (t.value =
|
|
2137
|
+
oe.value || (t.value = xl()), la(), ml.value += 1, Zt.value += 1, pl(), vt();
|
|
2138
2138
|
}, { deep: !0 });
|
|
2139
2139
|
const aa = g(!1);
|
|
2140
2140
|
function Wa() {
|
|
@@ -2146,19 +2146,19 @@ const xn = {
|
|
|
2146
2146
|
const u = l.getBoundingClientRect();
|
|
2147
2147
|
aa.value = u.width > 2 && u.height > 2;
|
|
2148
2148
|
}
|
|
2149
|
-
|
|
2149
|
+
il(() => {
|
|
2150
2150
|
Wa();
|
|
2151
2151
|
const l = new ResizeObserver(() => {
|
|
2152
2152
|
Wa(), aa.value && (la(), vt(), Tl());
|
|
2153
2153
|
});
|
|
2154
2154
|
xe.value?.parentNode && l.observe(xe.value.parentNode);
|
|
2155
2155
|
}), it(t, () => {
|
|
2156
|
-
|
|
2156
|
+
pl();
|
|
2157
2157
|
}, { immediate: !0 });
|
|
2158
|
-
const
|
|
2158
|
+
const _l = x(() => {
|
|
2159
2159
|
const l = t.value.table.useDialog && !t.value.showTable, u = k.value.showTable;
|
|
2160
2160
|
return {
|
|
2161
|
-
component: l ?
|
|
2161
|
+
component: l ? Ut : bn,
|
|
2162
2162
|
title: `${t.value.chart.title.text}${t.value.chart.title.subtitle.text ? `: ${t.value.chart.title.subtitle.text}` : ""}`,
|
|
2163
2163
|
props: l ? {
|
|
2164
2164
|
backgroundColor: t.value.table.th.backgroundColor,
|
|
@@ -2204,7 +2204,7 @@ const xn = {
|
|
|
2204
2204
|
toggleAnnotator: Kl,
|
|
2205
2205
|
toggleFullscreen: Ba
|
|
2206
2206
|
}), (l, u) => (s(), r("div", {
|
|
2207
|
-
id: `vue-ui-xy_${
|
|
2207
|
+
id: `vue-ui-xy_${Y.value}`,
|
|
2208
2208
|
class: Xe(`vue-ui-xy ${Re.value ? "vue-data-ui-wrapper-fullscreen" : ""} ${t.value.useCssAnimation ? "" : "vue-ui-dna"}`),
|
|
2209
2209
|
ref_key: "chart",
|
|
2210
2210
|
ref: xe,
|
|
@@ -2212,7 +2212,7 @@ const xn = {
|
|
|
2212
2212
|
onMouseenter: u[10] || (u[10] = () => ha(!0)),
|
|
2213
2213
|
onMouseleave: u[11] || (u[11] = () => ha(!1))
|
|
2214
2214
|
}, [
|
|
2215
|
-
t.value.chart.userOptions.buttons.annotator && Ae.value ? (s(), Je(v(
|
|
2215
|
+
t.value.chart.userOptions.buttons.annotator && Ae.value ? (s(), Je(v(rl), {
|
|
2216
2216
|
key: 0,
|
|
2217
2217
|
svgRef: Ae.value,
|
|
2218
2218
|
backgroundColor: t.value.chart.backgroundColor,
|
|
@@ -2235,7 +2235,7 @@ const xn = {
|
|
|
2235
2235
|
style: _(`font-family:${t.value.chart.fontFamily}`)
|
|
2236
2236
|
}, [
|
|
2237
2237
|
(s(), Je(fn, {
|
|
2238
|
-
key: `title_${
|
|
2238
|
+
key: `title_${ml.value}`,
|
|
2239
2239
|
config: {
|
|
2240
2240
|
title: {
|
|
2241
2241
|
cy: "xy-div-title",
|
|
@@ -2249,17 +2249,17 @@ const xn = {
|
|
|
2249
2249
|
}, null, 8, ["config"]))
|
|
2250
2250
|
], 4)) : f("", !0),
|
|
2251
2251
|
y("div", {
|
|
2252
|
-
id: `legend-top-${
|
|
2252
|
+
id: `legend-top-${Y.value}`
|
|
2253
2253
|
}, null, 8, En),
|
|
2254
|
-
t.value.chart.userOptions.show && (
|
|
2254
|
+
t.value.chart.userOptions.show && (gl.value || Jt.value) ? (s(), Je(v(de), {
|
|
2255
2255
|
ref_key: "userOptionsRef",
|
|
2256
2256
|
ref: j,
|
|
2257
|
-
key: `user_options_${
|
|
2257
|
+
key: `user_options_${fl.value}`,
|
|
2258
2258
|
backgroundColor: t.value.chart.backgroundColor,
|
|
2259
2259
|
color: t.value.chart.color,
|
|
2260
2260
|
isPrinting: v(ie),
|
|
2261
2261
|
isImaging: v(m),
|
|
2262
|
-
uid:
|
|
2262
|
+
uid: Y.value,
|
|
2263
2263
|
hasTooltip: t.value.chart.userOptions.buttons.tooltip && t.value.chart.tooltip.show,
|
|
2264
2264
|
hasPdf: t.value.chart.userOptions.buttons.pdf,
|
|
2265
2265
|
hasXls: t.value.chart.userOptions.buttons.csv,
|
|
@@ -2289,76 +2289,76 @@ const xn = {
|
|
|
2289
2289
|
onToggleTooltip: Oa,
|
|
2290
2290
|
onToggleAnnotator: Kl,
|
|
2291
2291
|
style: _({
|
|
2292
|
-
visibility:
|
|
2292
|
+
visibility: gl.value ? Jt.value ? "visible" : "hidden" : "visible"
|
|
2293
2293
|
})
|
|
2294
2294
|
}, qa({ _: 2 }, [
|
|
2295
2295
|
l.$slots.menuIcon ? {
|
|
2296
2296
|
name: "menuIcon",
|
|
2297
2297
|
fn: be(({ isOpen: e, color: n }) => [
|
|
2298
|
-
|
|
2298
|
+
K(l.$slots, "menuIcon", At(zt({ isOpen: e, color: n })), void 0, !0)
|
|
2299
2299
|
]),
|
|
2300
2300
|
key: "0"
|
|
2301
2301
|
} : void 0,
|
|
2302
2302
|
l.$slots.optionTooltip ? {
|
|
2303
2303
|
name: "optionTooltip",
|
|
2304
2304
|
fn: be(() => [
|
|
2305
|
-
|
|
2305
|
+
K(l.$slots, "optionTooltip", {}, void 0, !0)
|
|
2306
2306
|
]),
|
|
2307
2307
|
key: "1"
|
|
2308
2308
|
} : void 0,
|
|
2309
2309
|
l.$slots.optionPdf ? {
|
|
2310
2310
|
name: "optionPdf",
|
|
2311
2311
|
fn: be(() => [
|
|
2312
|
-
|
|
2312
|
+
K(l.$slots, "optionPdf", {}, void 0, !0)
|
|
2313
2313
|
]),
|
|
2314
2314
|
key: "2"
|
|
2315
2315
|
} : void 0,
|
|
2316
2316
|
l.$slots.optionCsv ? {
|
|
2317
2317
|
name: "optionCsv",
|
|
2318
2318
|
fn: be(() => [
|
|
2319
|
-
|
|
2319
|
+
K(l.$slots, "optionCsv", {}, void 0, !0)
|
|
2320
2320
|
]),
|
|
2321
2321
|
key: "3"
|
|
2322
2322
|
} : void 0,
|
|
2323
2323
|
l.$slots.optionImg ? {
|
|
2324
2324
|
name: "optionImg",
|
|
2325
2325
|
fn: be(() => [
|
|
2326
|
-
|
|
2326
|
+
K(l.$slots, "optionImg", {}, void 0, !0)
|
|
2327
2327
|
]),
|
|
2328
2328
|
key: "4"
|
|
2329
2329
|
} : void 0,
|
|
2330
2330
|
l.$slots.optionTable ? {
|
|
2331
2331
|
name: "optionTable",
|
|
2332
2332
|
fn: be(() => [
|
|
2333
|
-
|
|
2333
|
+
K(l.$slots, "optionTable", {}, void 0, !0)
|
|
2334
2334
|
]),
|
|
2335
2335
|
key: "5"
|
|
2336
2336
|
} : void 0,
|
|
2337
2337
|
l.$slots.optionLabels ? {
|
|
2338
2338
|
name: "optionLabels",
|
|
2339
2339
|
fn: be(() => [
|
|
2340
|
-
|
|
2340
|
+
K(l.$slots, "optionLabels", {}, void 0, !0)
|
|
2341
2341
|
]),
|
|
2342
2342
|
key: "6"
|
|
2343
2343
|
} : void 0,
|
|
2344
2344
|
l.$slots.optionStack ? {
|
|
2345
2345
|
name: "optionStack",
|
|
2346
2346
|
fn: be(() => [
|
|
2347
|
-
|
|
2347
|
+
K(l.$slots, "optionStack", {}, void 0, !0)
|
|
2348
2348
|
]),
|
|
2349
2349
|
key: "7"
|
|
2350
2350
|
} : void 0,
|
|
2351
2351
|
l.$slots.optionFullscreen ? {
|
|
2352
2352
|
name: "optionFullscreen",
|
|
2353
2353
|
fn: be(({ toggleFullscreen: e, isFullscreen: n }) => [
|
|
2354
|
-
|
|
2354
|
+
K(l.$slots, "optionFullscreen", At(zt({ toggleFullscreen: e, isFullscreen: n })), void 0, !0)
|
|
2355
2355
|
]),
|
|
2356
2356
|
key: "8"
|
|
2357
2357
|
} : void 0,
|
|
2358
2358
|
l.$slots.optionAnnotator ? {
|
|
2359
2359
|
name: "optionAnnotator",
|
|
2360
2360
|
fn: be(({ toggleAnnotator: e, isAnnotator: n }) => [
|
|
2361
|
-
|
|
2361
|
+
K(l.$slots, "optionAnnotator", At(zt({ toggleAnnotator: e, isAnnotator: n })), void 0, !0)
|
|
2362
2362
|
]),
|
|
2363
2363
|
key: "9"
|
|
2364
2364
|
} : void 0
|
|
@@ -2388,7 +2388,7 @@ const xn = {
|
|
|
2388
2388
|
ref: ql,
|
|
2389
2389
|
class: "vue-data-ui-g"
|
|
2390
2390
|
}, [
|
|
2391
|
-
|
|
2391
|
+
Wt(v(Gt)),
|
|
2392
2392
|
l.$slots["chart-background"] ? (s(), r("foreignObject", {
|
|
2393
2393
|
key: 0,
|
|
2394
2394
|
x: c.value.left + te.value < 0 ? 0 : c.value.left + te.value,
|
|
@@ -2399,7 +2399,7 @@ const xn = {
|
|
|
2399
2399
|
pointerEvents: "none"
|
|
2400
2400
|
}
|
|
2401
2401
|
}, [
|
|
2402
|
-
|
|
2402
|
+
K(l.$slots, "chart-background", {}, void 0, !0)
|
|
2403
2403
|
], 8, Wn)) : f("", !0),
|
|
2404
2404
|
T.value > 0 ? (s(), r("g", Xn, [
|
|
2405
2405
|
y("g", Yn, [
|
|
@@ -2409,17 +2409,17 @@ const xn = {
|
|
|
2409
2409
|
"stroke-width": "1",
|
|
2410
2410
|
x1: c.value.left + te.value,
|
|
2411
2411
|
x2: c.value.right - te.value,
|
|
2412
|
-
y1: v(
|
|
2413
|
-
y2: v(
|
|
2412
|
+
y1: v(Z)(c.value.bottom),
|
|
2413
|
+
y2: v(Z)(c.value.bottom),
|
|
2414
2414
|
"stroke-linecap": "round",
|
|
2415
2415
|
style: { animation: "none !important" }
|
|
2416
2416
|
}, null, 8, Gn)) : f("", !0),
|
|
2417
|
-
k.value.useIndividualScale ? t.value.chart.grid.showHorizontalLines ? (s(!0), r(b, { key: 2 }, C(
|
|
2417
|
+
k.value.useIndividualScale ? t.value.chart.grid.showHorizontalLines ? (s(!0), r(b, { key: 2 }, C(Sl.value, (e) => (s(), r("g", null, [
|
|
2418
2418
|
e.id === P.value && e.yLabels.length ? (s(!0), r(b, { key: 0 }, C(e.yLabels, (n) => (s(), r("line", {
|
|
2419
2419
|
x1: c.value.left + te.value,
|
|
2420
2420
|
x2: c.value.right - te.value,
|
|
2421
|
-
y1: v(
|
|
2422
|
-
y2: v(
|
|
2421
|
+
y1: v(Z)(n.y),
|
|
2422
|
+
y2: v(Z)(n.y),
|
|
2423
2423
|
stroke: e.color,
|
|
2424
2424
|
"stroke-width": 0.5,
|
|
2425
2425
|
"stroke-linecap": "round",
|
|
@@ -2427,8 +2427,8 @@ const xn = {
|
|
|
2427
2427
|
}, null, 8, Kn))), 256)) : e.yLabels.length ? (s(!0), r(b, { key: 1 }, C(e.yLabels, (n) => (s(), r("line", {
|
|
2428
2428
|
x1: c.value.left + te.value,
|
|
2429
2429
|
x2: c.value.right - te.value,
|
|
2430
|
-
y1: v(
|
|
2431
|
-
y2: v(
|
|
2430
|
+
y1: v(Z)(n.y),
|
|
2431
|
+
y2: v(Z)(n.y),
|
|
2432
2432
|
stroke: t.value.chart.grid.stroke,
|
|
2433
2433
|
"stroke-width": 0.5,
|
|
2434
2434
|
"stroke-linecap": "round",
|
|
@@ -2441,8 +2441,8 @@ const xn = {
|
|
|
2441
2441
|
"stroke-width": "1",
|
|
2442
2442
|
x1: c.value.left + te.value,
|
|
2443
2443
|
x2: c.value.left + te.value,
|
|
2444
|
-
y1: v(
|
|
2445
|
-
y2: v(
|
|
2444
|
+
y1: v(Z)(c.value.top),
|
|
2445
|
+
y2: v(Z)(c.value.bottom),
|
|
2446
2446
|
"stroke-linecap": "round",
|
|
2447
2447
|
style: { animation: "none !important" }
|
|
2448
2448
|
}, null, 8, Un)) : f("", !0),
|
|
@@ -2450,8 +2450,8 @@ const xn = {
|
|
|
2450
2450
|
(s(!0), r(b, null, C(Ma.value, (e) => (s(), r("line", {
|
|
2451
2451
|
x1: c.value.left + te.value,
|
|
2452
2452
|
x2: c.value.right,
|
|
2453
|
-
y1: v(
|
|
2454
|
-
y2: v(
|
|
2453
|
+
y1: v(Z)(e.y),
|
|
2454
|
+
y2: v(Z)(e.y),
|
|
2455
2455
|
stroke: t.value.chart.grid.stroke,
|
|
2456
2456
|
"stroke-width": 0.5,
|
|
2457
2457
|
"stroke-linecap": "round",
|
|
@@ -2481,48 +2481,53 @@ const xn = {
|
|
|
2481
2481
|
(s(!0), r(b, null, C(yt.value, (e, n) => (s(), r("defs", {
|
|
2482
2482
|
key: `def_rect_${n}`
|
|
2483
2483
|
}, [
|
|
2484
|
-
|
|
2485
|
-
|
|
2486
|
-
|
|
2487
|
-
|
|
2488
|
-
|
|
2489
|
-
|
|
2490
|
-
|
|
2491
|
-
"
|
|
2492
|
-
},
|
|
2493
|
-
|
|
2494
|
-
|
|
2495
|
-
|
|
2496
|
-
|
|
2497
|
-
|
|
2498
|
-
|
|
2499
|
-
|
|
2500
|
-
|
|
2501
|
-
|
|
2502
|
-
|
|
2503
|
-
|
|
2504
|
-
|
|
2505
|
-
|
|
2506
|
-
|
|
2507
|
-
|
|
2508
|
-
|
|
2509
|
-
"
|
|
2510
|
-
},
|
|
2511
|
-
|
|
2512
|
-
|
|
2513
|
-
|
|
2514
|
-
|
|
2515
|
-
|
|
2516
|
-
|
|
2517
|
-
|
|
2518
|
-
|
|
2519
|
-
|
|
2484
|
+
l.$slots["bar-gradient"] ? K(l.$slots, "bar-gradient", Vt({
|
|
2485
|
+
key: 0,
|
|
2486
|
+
ref_for: !0
|
|
2487
|
+
}, { series: e, positiveId: `rectGradient_pos_${n}_${Y.value}`, negativeId: `rectGradient_neg_${n}_${Y.value}` }), void 0, !0) : (s(), r(b, { key: 1 }, [
|
|
2488
|
+
y("linearGradient", {
|
|
2489
|
+
id: `rectGradient_pos_${n}_${Y.value}`,
|
|
2490
|
+
x2: "0%",
|
|
2491
|
+
y2: "100%"
|
|
2492
|
+
}, [
|
|
2493
|
+
y("stop", {
|
|
2494
|
+
offset: "0%",
|
|
2495
|
+
"stop-color": e.color
|
|
2496
|
+
}, null, 8, au),
|
|
2497
|
+
y("stop", {
|
|
2498
|
+
offset: "62%",
|
|
2499
|
+
"stop-color": `${v(Dt)(e.color, 0.02)}`
|
|
2500
|
+
}, null, 8, ou),
|
|
2501
|
+
y("stop", {
|
|
2502
|
+
offset: "100%",
|
|
2503
|
+
"stop-color": `${v(Dt)(e.color, 0.05)}`
|
|
2504
|
+
}, null, 8, nu)
|
|
2505
|
+
], 8, lu),
|
|
2506
|
+
y("linearGradient", {
|
|
2507
|
+
id: `rectGradient_neg_${n}_${Y.value}`,
|
|
2508
|
+
x2: "0%",
|
|
2509
|
+
y2: "100%"
|
|
2510
|
+
}, [
|
|
2511
|
+
y("stop", {
|
|
2512
|
+
offset: "0%",
|
|
2513
|
+
"stop-color": `${v(Dt)(e.color, 0.05)}`
|
|
2514
|
+
}, null, 8, iu),
|
|
2515
|
+
y("stop", {
|
|
2516
|
+
offset: "38%",
|
|
2517
|
+
"stop-color": `${v(Dt)(e.color, 0.02)}`
|
|
2518
|
+
}, null, 8, su),
|
|
2519
|
+
y("stop", {
|
|
2520
|
+
offset: "100%",
|
|
2521
|
+
"stop-color": e.color
|
|
2522
|
+
}, null, 8, ru)
|
|
2523
|
+
], 8, uu)
|
|
2524
|
+
], 64))
|
|
2520
2525
|
]))), 128)),
|
|
2521
2526
|
(s(!0), r(b, null, C(ot.value, (e, n) => (s(), r("defs", {
|
|
2522
2527
|
key: `def_plot_${n}`
|
|
2523
2528
|
}, [
|
|
2524
2529
|
y("radialGradient", {
|
|
2525
|
-
id: `plotGradient_${n}_${
|
|
2530
|
+
id: `plotGradient_${n}_${Y.value}`,
|
|
2526
2531
|
cx: "50%",
|
|
2527
2532
|
cy: "50%",
|
|
2528
2533
|
r: "50%",
|
|
@@ -2531,7 +2536,7 @@ const xn = {
|
|
|
2531
2536
|
}, [
|
|
2532
2537
|
y("stop", {
|
|
2533
2538
|
offset: "0%",
|
|
2534
|
-
"stop-color": `${v(
|
|
2539
|
+
"stop-color": `${v(Dt)(e.color, 0.05)}`
|
|
2535
2540
|
}, null, 8, vu),
|
|
2536
2541
|
y("stop", {
|
|
2537
2542
|
offset: "100%",
|
|
@@ -2543,7 +2548,7 @@ const xn = {
|
|
|
2543
2548
|
key: `def_line_${e.id}`
|
|
2544
2549
|
}, [
|
|
2545
2550
|
y("radialGradient", {
|
|
2546
|
-
id: `lineGradient_${n}_${
|
|
2551
|
+
id: `lineGradient_${n}_${Y.value}`,
|
|
2547
2552
|
cx: "50%",
|
|
2548
2553
|
cy: "50%",
|
|
2549
2554
|
r: "50%",
|
|
@@ -2552,15 +2557,19 @@ const xn = {
|
|
|
2552
2557
|
}, [
|
|
2553
2558
|
y("stop", {
|
|
2554
2559
|
offset: "0%",
|
|
2555
|
-
"stop-color": `${v(
|
|
2560
|
+
"stop-color": `${v(Dt)(e.color, 0.05)}`
|
|
2556
2561
|
}, null, 8, fu),
|
|
2557
2562
|
y("stop", {
|
|
2558
2563
|
offset: "100%",
|
|
2559
2564
|
"stop-color": e.color
|
|
2560
2565
|
}, null, 8, mu)
|
|
2561
2566
|
], 8, hu),
|
|
2562
|
-
|
|
2563
|
-
|
|
2567
|
+
l.$slots["area-gradient"] ? K(l.$slots, "area-gradient", Vt({
|
|
2568
|
+
key: 0,
|
|
2569
|
+
ref_for: !0
|
|
2570
|
+
}, { series: e, id: `areaGradient_${n}_${Y.value}` }), void 0, !0) : (s(), r("linearGradient", {
|
|
2571
|
+
key: 1,
|
|
2572
|
+
id: `areaGradient_${n}_${Y.value}`,
|
|
2564
2573
|
x1: "0%",
|
|
2565
2574
|
x2: "100%",
|
|
2566
2575
|
y1: "0%",
|
|
@@ -2568,13 +2577,13 @@ const xn = {
|
|
|
2568
2577
|
}, [
|
|
2569
2578
|
y("stop", {
|
|
2570
2579
|
offset: "0%",
|
|
2571
|
-
"stop-color": `${v(nt)(v(
|
|
2580
|
+
"stop-color": `${v(nt)(v(Dt)(e.color, 0.03), t.value.line.area.opacity)}`
|
|
2572
2581
|
}, null, 8, bu),
|
|
2573
2582
|
y("stop", {
|
|
2574
2583
|
offset: "100%",
|
|
2575
2584
|
"stop-color": `${v(nt)(e.color, t.value.line.area.opacity)}`
|
|
2576
2585
|
}, null, 8, xu)
|
|
2577
|
-
], 8, gu)
|
|
2586
|
+
], 8, gu))
|
|
2578
2587
|
]))), 128)),
|
|
2579
2588
|
(s(!0), r(b, null, C(_o.value, (e) => (s(), r("g", null, [
|
|
2580
2589
|
e.show ? (s(), r(b, { key: 0 }, [
|
|
@@ -2639,7 +2648,7 @@ const xn = {
|
|
|
2639
2648
|
height: k.value.useIndividualScale ? Math.abs(ka(a)) : Math.abs(ya(a)),
|
|
2640
2649
|
width: Rl.value - Fl.value,
|
|
2641
2650
|
rx: t.value.bar.borderRadius,
|
|
2642
|
-
fill: t.value.bar.useGradient ? a.value >= 0 ? `url(#rectGradient_pos_${n}_${
|
|
2651
|
+
fill: t.value.bar.useGradient ? a.value >= 0 ? `url(#rectGradient_pos_${n}_${Y.value})` : `url(#rectGradient_neg_${n}_${Y.value})` : e.color,
|
|
2643
2652
|
stroke: t.value.bar.border.useSerieColor ? e.color : t.value.bar.border.stroke,
|
|
2644
2653
|
"stroke-width": t.value.bar.border.strokeWidth,
|
|
2645
2654
|
style: _({
|
|
@@ -2653,7 +2662,7 @@ const xn = {
|
|
|
2653
2662
|
height: k.value.useIndividualScale ? Math.abs(ka(a)) : Math.abs(ya(a)),
|
|
2654
2663
|
width: Rl.value - Fl.value,
|
|
2655
2664
|
rx: t.value.bar.borderRadius,
|
|
2656
|
-
fill: `url(#pattern_${
|
|
2665
|
+
fill: `url(#pattern_${Y.value}_${e.slotAbsoluteIndex})`,
|
|
2657
2666
|
stroke: t.value.bar.border.useSerieColor ? e.color : t.value.bar.border.stroke,
|
|
2658
2667
|
"stroke-width": t.value.bar.border.strokeWidth,
|
|
2659
2668
|
style: _({ transition: v(oe) || !t.value.bar.showTransition ? void 0 : `all ${t.value.bar.transitionDurationMs}ms ease-in-out` })
|
|
@@ -2666,7 +2675,7 @@ const xn = {
|
|
|
2666
2675
|
x: Il(a) - t.value.chart.comments.width / 2 + t.value.chart.comments.offsetX,
|
|
2667
2676
|
y: v(W)(a.y) + t.value.chart.comments.offsetY + 6
|
|
2668
2677
|
}, [
|
|
2669
|
-
|
|
2678
|
+
K(l.$slots, "plot-comment", {
|
|
2670
2679
|
plot: { ...a, color: e.color, seriesIndex: n, datapointIndex: i }
|
|
2671
2680
|
}, void 0, !0)
|
|
2672
2681
|
], 8, $u)) : f("", !0)
|
|
@@ -2689,10 +2698,10 @@ const xn = {
|
|
|
2689
2698
|
]),
|
|
2690
2699
|
e.plots.length > 1 ? (s(), r("line", {
|
|
2691
2700
|
key: 0,
|
|
2692
|
-
x1: v(le)(e.plots).x1 +
|
|
2693
|
-
x2: v(le)(e.plots).x2 +
|
|
2694
|
-
y1: v(
|
|
2695
|
-
y2: v(
|
|
2701
|
+
x1: v(le)(e.plots).x1 + al(),
|
|
2702
|
+
x2: v(le)(e.plots).x2 + al(),
|
|
2703
|
+
y1: v(Z)(v(le)(e.plots).y1),
|
|
2704
|
+
y2: v(Z)(v(le)(e.plots).y2),
|
|
2696
2705
|
"stroke-width": 1,
|
|
2697
2706
|
stroke: e.color,
|
|
2698
2707
|
"stroke-dasharray": 2,
|
|
@@ -2701,7 +2710,7 @@ const xn = {
|
|
|
2701
2710
|
e.plots.length > 1 ? (s(), r("text", {
|
|
2702
2711
|
key: 1,
|
|
2703
2712
|
"text-anchor": "middle",
|
|
2704
|
-
x: v(le)(e.plots).x2 +
|
|
2713
|
+
x: v(le)(e.plots).x2 + al(),
|
|
2705
2714
|
y: v(le)(e.plots).y2 - 6,
|
|
2706
2715
|
"font-size": w.value.plotLabels,
|
|
2707
2716
|
fill: e.color
|
|
@@ -2718,8 +2727,8 @@ const xn = {
|
|
|
2718
2727
|
"stroke-width": "1",
|
|
2719
2728
|
x1: c.value.left + te.value,
|
|
2720
2729
|
x2: c.value.right,
|
|
2721
|
-
y1: v(
|
|
2722
|
-
y2: v(
|
|
2730
|
+
y1: v(Z)(Ie.value),
|
|
2731
|
+
y2: v(Z)(Ie.value),
|
|
2723
2732
|
"stroke-linecap": "round",
|
|
2724
2733
|
style: { animation: "none !important" }
|
|
2725
2734
|
}, null, 8, Tu)) : f("", !0),
|
|
@@ -2727,8 +2736,8 @@ const xn = {
|
|
|
2727
2736
|
y("line", {
|
|
2728
2737
|
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
2738
|
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,
|
|
2730
|
-
y1: v(
|
|
2731
|
-
y2: v(
|
|
2739
|
+
y1: v(Z)(c.value.top),
|
|
2740
|
+
y2: v(Z)(c.value.bottom),
|
|
2732
2741
|
stroke: t.value.chart.highlighter.color,
|
|
2733
2742
|
"stroke-width": t.value.chart.highlighter.lineWidth,
|
|
2734
2743
|
"stroke-dasharray": t.value.chart.highlighter.lineDasharray,
|
|
@@ -2756,19 +2765,19 @@ const xn = {
|
|
|
2756
2765
|
ref: Rt
|
|
2757
2766
|
}, [
|
|
2758
2767
|
k.value.useIndividualScale ? (s(), r(b, { key: 0 }, [
|
|
2759
|
-
(s(!0), r(b, null, C(
|
|
2768
|
+
(s(!0), r(b, null, C(Sl.value, (e) => (s(), r("g", null, [
|
|
2760
2769
|
y("line", {
|
|
2761
2770
|
x1: e.x + te.value - c.value.individualOffsetX,
|
|
2762
2771
|
x2: e.x + te.value - c.value.individualOffsetX,
|
|
2763
|
-
y1: k.value.isStacked ? v(
|
|
2764
|
-
y2: k.value.isStacked ? v(
|
|
2772
|
+
y1: k.value.isStacked ? v(Z)(c.value.bottom - e.yOffset - e.individualHeight) : v(Z)(c.value.top),
|
|
2773
|
+
y2: k.value.isStacked ? v(Z)(c.value.bottom - e.yOffset) : v(Z)(c.value.bottom),
|
|
2765
2774
|
stroke: e.color,
|
|
2766
2775
|
"stroke-width": t.value.chart.grid.stroke,
|
|
2767
2776
|
"stroke-linecap": "round",
|
|
2768
2777
|
style: _(`opacity:${P.value ? P.value === e.groupId ? 1 : 0.3 : 1};transition:opacity 0.2s ease-in-out; animation: none !important`)
|
|
2769
2778
|
}, null, 12, Fu)
|
|
2770
2779
|
]))), 256)),
|
|
2771
|
-
(s(!0), r(b, null, C(
|
|
2780
|
+
(s(!0), r(b, null, C(Sl.value, (e) => (s(), r("g", {
|
|
2772
2781
|
style: _(`opacity:${P.value ? P.value === e.groupId ? 1 : 0.3 : 1};transition:opacity 0.2s ease-in-out`)
|
|
2773
2782
|
}, [
|
|
2774
2783
|
y("text", {
|
|
@@ -2783,8 +2792,8 @@ const xn = {
|
|
|
2783
2792
|
key: 0,
|
|
2784
2793
|
x1: e.x + 3 + te.value - t.value.chart.grid.labels.yAxis.crosshairSize - c.value.individualOffsetX,
|
|
2785
2794
|
x2: e.x + te.value - c.value.individualOffsetX,
|
|
2786
|
-
y1: v(
|
|
2787
|
-
y2: v(
|
|
2795
|
+
y1: v(Z)(n.y),
|
|
2796
|
+
y2: v(Z)(n.y),
|
|
2788
2797
|
stroke: e.color,
|
|
2789
2798
|
"stroke-width": 1,
|
|
2790
2799
|
"stroke-linecap": "round",
|
|
@@ -2793,7 +2802,7 @@ const xn = {
|
|
|
2793
2802
|
], 64))), 256)),
|
|
2794
2803
|
(s(!0), r(b, null, C(e.yLabels, (n, a) => (s(), r("text", {
|
|
2795
2804
|
x: e.x - 5 + te.value - c.value.individualOffsetX,
|
|
2796
|
-
y: v(
|
|
2805
|
+
y: v(Z)(n.y) + w.value.dataLabels / 3,
|
|
2797
2806
|
"font-size": w.value.dataLabels,
|
|
2798
2807
|
"text-anchor": "end",
|
|
2799
2808
|
fill: e.color
|
|
@@ -2816,8 +2825,8 @@ const xn = {
|
|
|
2816
2825
|
key: 0,
|
|
2817
2826
|
x1: c.value.left + te.value,
|
|
2818
2827
|
x2: c.value.left + te.value - t.value.chart.grid.labels.yAxis.crosshairSize,
|
|
2819
|
-
y1: v(
|
|
2820
|
-
y2: v(
|
|
2828
|
+
y1: v(Z)(e.y),
|
|
2829
|
+
y2: v(Z)(e.y),
|
|
2821
2830
|
stroke: t.value.chart.grid.stroke,
|
|
2822
2831
|
"stroke-width": "1",
|
|
2823
2832
|
"stroke-linecap": "round",
|
|
@@ -2853,7 +2862,7 @@ const xn = {
|
|
|
2853
2862
|
a && Ve(a.value) ? (s(), Je(El, {
|
|
2854
2863
|
key: 0,
|
|
2855
2864
|
shape: ["triangle", "square", "diamond", "pentagon", "hexagon", "star"].includes(e.shape) ? e.shape : "circle",
|
|
2856
|
-
color: t.value.plot.useGradient ? `url(#plotGradient_${n}_${
|
|
2865
|
+
color: t.value.plot.useGradient ? `url(#plotGradient_${n}_${Y.value})` : t.value.plot.dot.useSerieColor ? e.color : t.value.plot.dot.fill,
|
|
2857
2866
|
plot: { x: v(W)(a.x), y: v(W)(a.y) },
|
|
2858
2867
|
radius: L.value !== null && L.value === i || O.value !== null && O.value === i ? (Fe.value.plot || 6) * 1.5 : Fe.value.plot || 6,
|
|
2859
2868
|
stroke: t.value.plot.dot.useSerieColor ? t.value.chart.backgroundColor : e.color,
|
|
@@ -2869,7 +2878,7 @@ const xn = {
|
|
|
2869
2878
|
y: a.y + t.value.chart.comments.offsetY + 6
|
|
2870
2879
|
}, [
|
|
2871
2880
|
y("div", Du, [
|
|
2872
|
-
|
|
2881
|
+
K(l.$slots, "plot-comment", {
|
|
2873
2882
|
plot: { ...a, color: e.color, seriesIndex: n, datapointIndex: i }
|
|
2874
2883
|
}, void 0, !0)
|
|
2875
2884
|
])
|
|
@@ -2895,8 +2904,8 @@ const xn = {
|
|
|
2895
2904
|
key: 0,
|
|
2896
2905
|
x1: v(le)(e.plots).x1,
|
|
2897
2906
|
x2: v(le)(e.plots).x2,
|
|
2898
|
-
y1: v(
|
|
2899
|
-
y2: v(
|
|
2907
|
+
y1: v(Z)(v(le)(e.plots).y1),
|
|
2908
|
+
y2: v(Z)(v(le)(e.plots).y2),
|
|
2900
2909
|
"stroke-width": 1,
|
|
2901
2910
|
stroke: e.color,
|
|
2902
2911
|
"stroke-dasharray": 2,
|
|
@@ -2942,9 +2951,9 @@ const xn = {
|
|
|
2942
2951
|
}, null, 12, Zu)) : f("", !0)
|
|
2943
2952
|
], 6))), 128)),
|
|
2944
2953
|
l.$slots.pattern ? (s(), r("defs", Ku, [
|
|
2945
|
-
(s(!0), r(b, null, C(at.value, (e, n) =>
|
|
2954
|
+
(s(!0), r(b, null, C(at.value, (e, n) => K(l.$slots, "pattern", Vt({
|
|
2946
2955
|
key: `serie_pattern_slot_${e.id}`
|
|
2947
|
-
}, { ref_for: !0 }, { ...e, seriesIndex: e.slotAbsoluteIndex, patternId: `pattern_${
|
|
2956
|
+
}, { ref_for: !0 }, { ...e, seriesIndex: e.slotAbsoluteIndex, patternId: `pattern_${Y.value}_${n}` }), void 0, !0)), 128))
|
|
2948
2957
|
])) : f("", !0),
|
|
2949
2958
|
za.value.length && !k.value.isStacked ? (s(), r("g", Ju, [
|
|
2950
2959
|
(s(!0), r(b, null, C(za.value, (e) => (s(), r("path", {
|
|
@@ -2967,26 +2976,26 @@ const xn = {
|
|
|
2967
2976
|
a ? (s(), r("path", {
|
|
2968
2977
|
key: 0,
|
|
2969
2978
|
d: a,
|
|
2970
|
-
fill: t.value.line.area.useGradient ? `url(#areaGradient_${n}_${
|
|
2979
|
+
fill: t.value.line.area.useGradient ? `url(#areaGradient_${n}_${Y.value})` : v(nt)(e.color, t.value.line.area.opacity),
|
|
2971
2980
|
style: _({ transition: v(oe) || !t.value.line.showTransition ? void 0 : `all ${t.value.line.transitionDurationMs}ms ease-in-out` })
|
|
2972
2981
|
}, null, 12, ei)) : f("", !0),
|
|
2973
2982
|
l.$slots.pattern && a ? (s(), r("path", {
|
|
2974
2983
|
key: 1,
|
|
2975
2984
|
d: a,
|
|
2976
|
-
fill: `url(#pattern_${
|
|
2985
|
+
fill: `url(#pattern_${Y.value}_${e.slotAbsoluteIndex})`,
|
|
2977
2986
|
style: _({ transition: v(oe) || !t.value.line.showTransition ? void 0 : `all ${t.value.line.transitionDurationMs}ms ease-in-out` })
|
|
2978
2987
|
}, null, 12, ti)) : f("", !0)
|
|
2979
2988
|
], 64))), 128)) : (s(!0), r(b, { key: 1 }, C(e.area.split(";"), (a, i) => (s(), r(b, { key: i }, [
|
|
2980
2989
|
a ? (s(), r("path", {
|
|
2981
2990
|
key: 0,
|
|
2982
2991
|
d: `M${a}Z`,
|
|
2983
|
-
fill: t.value.line.area.useGradient ? `url(#areaGradient_${n}_${
|
|
2992
|
+
fill: t.value.line.area.useGradient ? `url(#areaGradient_${n}_${Y.value})` : v(nt)(e.color, t.value.line.area.opacity),
|
|
2984
2993
|
style: _({ transition: v(oe) || !t.value.line.showTransition ? void 0 : `all ${t.value.line.transitionDurationMs}ms ease-in-out` })
|
|
2985
2994
|
}, null, 12, li)) : f("", !0),
|
|
2986
2995
|
l.$slots.pattern && a ? (s(), r("path", {
|
|
2987
2996
|
key: 1,
|
|
2988
2997
|
d: `M${a}Z`,
|
|
2989
|
-
fill: `url(#pattern_${
|
|
2998
|
+
fill: `url(#pattern_${Y.value}_${e.slotAbsoluteIndex})`,
|
|
2990
2999
|
style: _({ transition: v(oe) || !t.value.line.showTransition ? void 0 : `all ${t.value.line.transitionDurationMs}ms ease-in-out` })
|
|
2991
3000
|
}, null, 12, ai)) : f("", !0)
|
|
2992
3001
|
], 64))), 128))
|
|
@@ -3017,7 +3026,7 @@ const xn = {
|
|
|
3017
3026
|
!$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, {
|
|
3018
3027
|
key: 0,
|
|
3019
3028
|
shape: ["triangle", "square", "diamond", "pentagon", "hexagon", "star"].includes(e.shape) ? e.shape : "circle",
|
|
3020
|
-
color: t.value.line.useGradient ? `url(#lineGradient_${n}_${
|
|
3029
|
+
color: t.value.line.useGradient ? `url(#lineGradient_${n}_${Y.value})` : t.value.line.dot.useSerieColor ? e.color : t.value.line.dot.fill,
|
|
3021
3030
|
plot: { x: v(W)(a.x), y: v(W)(a.y) },
|
|
3022
3031
|
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),
|
|
3023
3032
|
stroke: t.value.line.dot.useSerieColor ? t.value.chart.backgroundColor : e.color,
|
|
@@ -3033,7 +3042,7 @@ const xn = {
|
|
|
3033
3042
|
y: a.y + t.value.chart.comments.offsetY + 6
|
|
3034
3043
|
}, [
|
|
3035
3044
|
y("div", ii, [
|
|
3036
|
-
|
|
3045
|
+
K(l.$slots, "plot-comment", {
|
|
3037
3046
|
plot: { ...a, color: e.color, seriesIndex: n, datapointIndex: i }
|
|
3038
3047
|
}, void 0, !0)
|
|
3039
3048
|
])
|
|
@@ -3059,8 +3068,8 @@ const xn = {
|
|
|
3059
3068
|
key: 0,
|
|
3060
3069
|
x1: v(le)(e.plots).x1,
|
|
3061
3070
|
x2: v(le)(e.plots).x2,
|
|
3062
|
-
y1: v(
|
|
3063
|
-
y2: v(
|
|
3071
|
+
y1: v(Z)(v(le)(e.plots).y1),
|
|
3072
|
+
y2: v(Z)(v(le)(e.plots).y2),
|
|
3064
3073
|
"stroke-width": 1,
|
|
3065
3074
|
stroke: e.color,
|
|
3066
3075
|
"stroke-dasharray": 2,
|
|
@@ -3089,7 +3098,7 @@ const xn = {
|
|
|
3089
3098
|
}, [
|
|
3090
3099
|
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", {
|
|
3091
3100
|
key: 0,
|
|
3092
|
-
x: k.value.useIndividualScale && k.value.isStacked ? a.x + se.value.line / 2 : Il(a) +
|
|
3101
|
+
x: k.value.useIndividualScale && k.value.isStacked ? a.x + se.value.line / 2 : Il(a) + al() / 2 - Nl.value / 2,
|
|
3093
3102
|
y: v(W)(a.y) + (a.value >= 0 ? t.value.bar.labels.offsetY : -t.value.bar.labels.offsetY * 3),
|
|
3094
3103
|
"text-anchor": "middle",
|
|
3095
3104
|
"font-size": w.value.plotLabels,
|
|
@@ -3111,7 +3120,7 @@ const xn = {
|
|
|
3111
3120
|
) : ""), 13, fi)) : f("", !0),
|
|
3112
3121
|
a && t.value.bar.serieName.show ? (s(), r("text", {
|
|
3113
3122
|
key: 1,
|
|
3114
|
-
x: k.value.useIndividualScale && k.value.isStacked ? a.x + se.value.line / 2 : a.x +
|
|
3123
|
+
x: k.value.useIndividualScale && k.value.isStacked ? a.x + se.value.line / 2 : a.x + al() * 1.1,
|
|
3115
3124
|
y: a.y + (a.value > 0 ? t.value.bar.serieName.offsetY : -t.value.bar.serieName.offsetY * 3),
|
|
3116
3125
|
"text-anchor": "middle",
|
|
3117
3126
|
"font-size": w.value.plotLabels,
|
|
@@ -3411,8 +3420,8 @@ const xn = {
|
|
|
3411
3420
|
], 64))), 128)),
|
|
3412
3421
|
k.value.useIndividualScale && !k.value.isStacked ? (s(), r(b, { key: 13 }, [
|
|
3413
3422
|
y("defs", null, [
|
|
3414
|
-
(s(!0), r(b, null, C(
|
|
3415
|
-
id: `individual_scale_gradient_${
|
|
3423
|
+
(s(!0), r(b, null, C(Sl.value, (e, n) => (s(), r("linearGradient", {
|
|
3424
|
+
id: `individual_scale_gradient_${Y.value}_${n}`,
|
|
3416
3425
|
x1: "0%",
|
|
3417
3426
|
x2: "100%",
|
|
3418
3427
|
y1: "0%",
|
|
@@ -3430,12 +3439,12 @@ const xn = {
|
|
|
3430
3439
|
}, null, 8, Bi)
|
|
3431
3440
|
], 8, Pi))), 256))
|
|
3432
3441
|
]),
|
|
3433
|
-
(s(!0), r(b, null, C(
|
|
3442
|
+
(s(!0), r(b, null, C(Sl.value, (e, n) => (s(), r("rect", {
|
|
3434
3443
|
x: e.x - t.value.chart.grid.labels.yAxis.labelWidth + te.value - c.value.individualOffsetX,
|
|
3435
3444
|
y: c.value.top,
|
|
3436
3445
|
width: t.value.chart.grid.labels.yAxis.labelWidth + c.value.individualOffsetX,
|
|
3437
3446
|
height: c.value.height < 0 ? 10 : c.value.height,
|
|
3438
|
-
fill: P.value === e.groupId ? `url(#individual_scale_gradient_${
|
|
3447
|
+
fill: P.value === e.groupId ? `url(#individual_scale_gradient_${Y.value}_${n})` : "transparent",
|
|
3439
3448
|
onMouseenter: (a) => P.value = e.groupId,
|
|
3440
3449
|
onMouseleave: u[0] || (u[0] = (a) => P.value = null)
|
|
3441
3450
|
}, null, 40, Hi))), 256))
|
|
@@ -3444,7 +3453,7 @@ const xn = {
|
|
|
3444
3453
|
t.value.chart.grid.labels.axis.yLabel && !k.value.useIndividualScale ? (s(), r("text", {
|
|
3445
3454
|
key: 0,
|
|
3446
3455
|
ref_key: "yAxisLabel",
|
|
3447
|
-
ref:
|
|
3456
|
+
ref: qt,
|
|
3448
3457
|
"font-size": w.value.yAxis,
|
|
3449
3458
|
fill: t.value.chart.grid.labels.color,
|
|
3450
3459
|
transform: `translate(${t.value.chart.grid.labels.axis.fontSize}, ${c.value.top + c.value.height / 2}) rotate(-90)`,
|
|
@@ -3467,7 +3476,7 @@ const xn = {
|
|
|
3467
3476
|
ref_key: "timeLabelsEls",
|
|
3468
3477
|
ref: ht
|
|
3469
3478
|
}, [
|
|
3470
|
-
l.$slots["time-label"] ? (s(!0), r(b, { key: 0 }, C(Jl.value, (e, n) =>
|
|
3479
|
+
l.$slots["time-label"] ? (s(!0), r(b, { key: 0 }, C(Jl.value, (e, n) => K(l.$slots, "time-label", Vt({
|
|
3471
3480
|
key: `time_label_${e.id}`,
|
|
3472
3481
|
ref_for: !0
|
|
3473
3482
|
}, {
|
|
@@ -3555,7 +3564,7 @@ const xn = {
|
|
|
3555
3564
|
fill: v(nt)(e.config.area.fill, e.config.area.opacity),
|
|
3556
3565
|
style: { animation: "none !important" }
|
|
3557
3566
|
}, null, 8, Ui)) : f("", !0),
|
|
3558
|
-
e.config.label.text && e.show && isFinite(e._box.y) ? (s(), r("rect",
|
|
3567
|
+
e.config.label.text && e.show && isFinite(e._box.y) ? (s(), r("rect", Vt({
|
|
3559
3568
|
key: 3,
|
|
3560
3569
|
class: "vue-ui-xy-annotation-label-box"
|
|
3561
3570
|
}, { ref_for: !0 }, e._box, { style: { animation: "none !important", transition: "none !important" } }), null, 16)) : f("", !0),
|
|
@@ -3595,15 +3604,15 @@ const xn = {
|
|
|
3595
3604
|
}, null, 8, Qi)
|
|
3596
3605
|
])) : f("", !0)
|
|
3597
3606
|
])) : f("", !0),
|
|
3598
|
-
|
|
3607
|
+
kl.value ? (s(), r("rect", Vt({ key: 2 }, tl.value, {
|
|
3599
3608
|
"data-start": p.value.start,
|
|
3600
3609
|
"data-end": p.value.end
|
|
3601
3610
|
}), null, 16, ji)) : f("", !0),
|
|
3602
|
-
|
|
3611
|
+
K(l.$slots, "svg", { svg: Al.value }, void 0, !0)
|
|
3603
3612
|
], 512)
|
|
3604
3613
|
], 46, Dn)),
|
|
3605
3614
|
l.$slots.watermark ? (s(), r("div", es, [
|
|
3606
|
-
|
|
3615
|
+
K(l.$slots, "watermark", At(zt({ isPrinting: v(ie) || v(m) })), void 0, !0)
|
|
3607
3616
|
])) : f("", !0),
|
|
3608
3617
|
(s(!0), r(b, null, C(Pe.value, (e, n) => (s(), r(b, {
|
|
3609
3618
|
key: `tag_line_${e.id}`
|
|
@@ -3830,7 +3839,7 @@ const xn = {
|
|
|
3830
3839
|
], 64))), 128))
|
|
3831
3840
|
], 64))), 128)),
|
|
3832
3841
|
t.value.chart.zoom.preview.enable ? (s(), r(b, { key: 5 }, [
|
|
3833
|
-
t.value.chart.zoom.show && ze.value > 6 &&
|
|
3842
|
+
t.value.chart.zoom.show && ze.value > 6 && jt.value ? (s(), Je(Hn, {
|
|
3834
3843
|
ref_key: "chartSlicer",
|
|
3835
3844
|
ref: He,
|
|
3836
3845
|
key: `slicer_${St.value}`,
|
|
@@ -3873,15 +3882,15 @@ const xn = {
|
|
|
3873
3882
|
onFutureStart: u[3] || (u[3] = (e) => $t("start", e)),
|
|
3874
3883
|
onFutureEnd: u[4] || (u[4] = (e) => $t("end", e)),
|
|
3875
3884
|
timeLabels: fa.value,
|
|
3876
|
-
isPreview:
|
|
3885
|
+
isPreview: kl.value
|
|
3877
3886
|
}, {
|
|
3878
3887
|
"reset-action": be(({ reset: e }) => [
|
|
3879
|
-
|
|
3888
|
+
K(l.$slots, "reset-action", At(zt({ reset: e })), void 0, !0)
|
|
3880
3889
|
]),
|
|
3881
3890
|
_: 3
|
|
3882
3891
|
}, 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)
|
|
3883
3892
|
], 64)) : (s(), r(b, { key: 6 }, [
|
|
3884
|
-
t.value.chart.zoom.show && ze.value > 6 &&
|
|
3893
|
+
t.value.chart.zoom.show && ze.value > 6 && jt.value ? (s(), Je(mn, {
|
|
3885
3894
|
ref_key: "chartSlicer",
|
|
3886
3895
|
ref: He,
|
|
3887
3896
|
key: `slicer_${St.value}`,
|
|
@@ -3919,17 +3928,17 @@ const xn = {
|
|
|
3919
3928
|
onTrapMouse: ga
|
|
3920
3929
|
}, {
|
|
3921
3930
|
"reset-action": be(({ reset: e }) => [
|
|
3922
|
-
|
|
3931
|
+
K(l.$slots, "reset-action", At(zt({ reset: e })), void 0, !0)
|
|
3923
3932
|
]),
|
|
3924
3933
|
_: 3
|
|
3925
3934
|
}, 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)
|
|
3926
3935
|
], 64)),
|
|
3927
3936
|
y("div", {
|
|
3928
|
-
id: `legend-bottom-${
|
|
3937
|
+
id: `legend-bottom-${Y.value}`
|
|
3929
3938
|
}, null, 8, hs),
|
|
3930
|
-
|
|
3939
|
+
bl.value ? (s(), Je(Vo, {
|
|
3931
3940
|
key: 7,
|
|
3932
|
-
to: t.value.chart.legend.position === "top" ? `#legend-top-${
|
|
3941
|
+
to: t.value.chart.legend.position === "top" ? `#legend-top-${Y.value}` : `#legend-bottom-${Y.value}`
|
|
3933
3942
|
}, [
|
|
3934
3943
|
t.value.chart.legend.show ? (s(), r("div", {
|
|
3935
3944
|
key: 0,
|
|
@@ -3956,7 +3965,7 @@ const xn = {
|
|
|
3956
3965
|
width: "20",
|
|
3957
3966
|
fill: e.color
|
|
3958
3967
|
}, null, 8, gs),
|
|
3959
|
-
|
|
3968
|
+
Wt(El, {
|
|
3960
3969
|
plot: { x: 10, y: 9 },
|
|
3961
3970
|
radius: 4,
|
|
3962
3971
|
color: e.color,
|
|
@@ -3983,10 +3992,10 @@ const xn = {
|
|
|
3983
3992
|
height: "32",
|
|
3984
3993
|
width: "32",
|
|
3985
3994
|
stroke: "none",
|
|
3986
|
-
fill: l.$slots.pattern ? `url(#pattern_${
|
|
3995
|
+
fill: l.$slots.pattern ? `url(#pattern_${Y.value}_${e.slotAbsoluteIndex})` : e.color
|
|
3987
3996
|
}, null, 8, ps)) : f("", !0)
|
|
3988
3997
|
])) : (s(), r("svg", ys, [
|
|
3989
|
-
|
|
3998
|
+
Wt(El, {
|
|
3990
3999
|
plot: { x: 6, y: 6 },
|
|
3991
4000
|
radius: 5,
|
|
3992
4001
|
color: e.color,
|
|
@@ -4002,7 +4011,7 @@ const xn = {
|
|
|
4002
4011
|
ref_key: "chartLegend",
|
|
4003
4012
|
ref: st
|
|
4004
4013
|
}, [
|
|
4005
|
-
|
|
4014
|
+
K(l.$slots, "legend", { legend: Ze.value }, void 0, !0)
|
|
4006
4015
|
], 512))
|
|
4007
4016
|
], 8, ["to"])) : f("", !0),
|
|
4008
4017
|
l.$slots.source ? (s(), r("div", {
|
|
@@ -4011,9 +4020,9 @@ const xn = {
|
|
|
4011
4020
|
ref: It,
|
|
4012
4021
|
dir: "auto"
|
|
4013
4022
|
}, [
|
|
4014
|
-
|
|
4023
|
+
K(l.$slots, "source", {}, void 0, !0)
|
|
4015
4024
|
], 512)) : f("", !0),
|
|
4016
|
-
|
|
4025
|
+
Wt(v(ve), {
|
|
4017
4026
|
show: k.value.showTooltip && Cl.value,
|
|
4018
4027
|
backgroundColor: t.value.chart.tooltip.backgroundColor,
|
|
4019
4028
|
color: t.value.chart.tooltip.color,
|
|
@@ -4034,14 +4043,14 @@ const xn = {
|
|
|
4034
4043
|
smoothSnapThreshold: t.value.chart.tooltip.smoothSnapThreshold
|
|
4035
4044
|
}, {
|
|
4036
4045
|
"tooltip-before": be(() => [
|
|
4037
|
-
|
|
4046
|
+
K(l.$slots, "tooltip-before", At(zt({ ...Ta.value })), void 0, !0)
|
|
4038
4047
|
]),
|
|
4039
4048
|
"tooltip-after": be(() => [
|
|
4040
|
-
|
|
4049
|
+
K(l.$slots, "tooltip-after", At(zt({ ...Ta.value })), void 0, !0)
|
|
4041
4050
|
]),
|
|
4042
4051
|
_: 3
|
|
4043
4052
|
}, 8, ["show", "backgroundColor", "color", "fontSize", "borderRadius", "borderColor", "borderWidth", "backgroundOpacity", "position", "offsetY", "parent", "content", "isFullscreen", "isCustom", "smooth", "backdropFilter", "smoothForce", "smoothSnapThreshold"]),
|
|
4044
|
-
|
|
4053
|
+
jt.value && t.value.chart.userOptions.buttons.table ? (s(), Je(Eo(_l.value.component), Vt({ key: 9 }, _l.value.props, {
|
|
4045
4054
|
ref_key: "tableUnit",
|
|
4046
4055
|
ref: bt,
|
|
4047
4056
|
onClose: Xa
|
|
@@ -4061,24 +4070,24 @@ const xn = {
|
|
|
4061
4070
|
onClick: u[9] || (u[9] = (e) => mt.value = !mt.value),
|
|
4062
4071
|
style: { cursor: "pointer" }
|
|
4063
4072
|
}, [
|
|
4064
|
-
|
|
4073
|
+
Wt(v(kt), {
|
|
4065
4074
|
name: "chartLine",
|
|
4066
4075
|
size: 20,
|
|
4067
4076
|
stroke: t.value.chart.color
|
|
4068
4077
|
}, null, 8, ["stroke"])
|
|
4069
4078
|
])
|
|
4070
4079
|
]),
|
|
4071
|
-
mt.value ? (s(), Je(v(
|
|
4072
|
-
key: `sparkline_${
|
|
4080
|
+
mt.value ? (s(), Je(v(sl), {
|
|
4081
|
+
key: `sparkline_${Kt.value}`,
|
|
4073
4082
|
dataset: Lo.value,
|
|
4074
4083
|
config: Mo.value
|
|
4075
4084
|
}, null, 8, ["dataset", "config"])) : (s(), Je(v(Ye), {
|
|
4076
|
-
key: `table_${
|
|
4085
|
+
key: `table_${Zt.value}`,
|
|
4077
4086
|
colNames: Ol.value.colNames,
|
|
4078
4087
|
head: Ol.value.head,
|
|
4079
4088
|
body: Ol.value.body,
|
|
4080
4089
|
config: Ol.value.config,
|
|
4081
|
-
title: t.value.table.useDialog ? "" :
|
|
4090
|
+
title: t.value.table.useDialog ? "" : _l.value.title,
|
|
4082
4091
|
withCloseButton: !t.value.table.useDialog,
|
|
4083
4092
|
onClose: Xa
|
|
4084
4093
|
}, {
|
|
@@ -4102,7 +4111,7 @@ const xn = {
|
|
|
4102
4111
|
t.value.table.useDialog ? {
|
|
4103
4112
|
name: "title",
|
|
4104
4113
|
fn: be(() => [
|
|
4105
|
-
Za(ne(
|
|
4114
|
+
Za(ne(_l.value.title), 1)
|
|
4106
4115
|
]),
|
|
4107
4116
|
key: "0"
|
|
4108
4117
|
} : void 0,
|
|
@@ -4114,9 +4123,9 @@ const xn = {
|
|
|
4114
4123
|
class: "vue-ui-user-options-button",
|
|
4115
4124
|
onClick: u[7] || (u[7] = (e) => ta(t.value.chart.userOptions.callbacks.csv))
|
|
4116
4125
|
}, [
|
|
4117
|
-
|
|
4126
|
+
Wt(v(kt), {
|
|
4118
4127
|
name: "excel",
|
|
4119
|
-
stroke:
|
|
4128
|
+
stroke: _l.value.props.color
|
|
4120
4129
|
}, null, 8, ["stroke"])
|
|
4121
4130
|
])
|
|
4122
4131
|
]),
|
|
@@ -4126,7 +4135,7 @@ const xn = {
|
|
|
4126
4135
|
v(oe) ? (s(), Je(rn, { key: 10 })) : f("", !0)
|
|
4127
4136
|
], 46, Vn));
|
|
4128
4137
|
}
|
|
4129
|
-
}, Hs = /* @__PURE__ */ ao(Ss, [["__scopeId", "data-v-
|
|
4138
|
+
}, Hs = /* @__PURE__ */ ao(Ss, [["__scopeId", "data-v-76dcbded"]]);
|
|
4130
4139
|
export {
|
|
4131
4140
|
Hs as default
|
|
4132
4141
|
};
|