vue-data-ui 3.1.19-next.1 → 3.2.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{PackageVersion-B6W-zkH-.js → PackageVersion-BB7joYAK.js} +3 -3
- package/dist/{Slicer-BgpOhmb6.js → Slicer-qM5l8BsU.js} +119 -119
- package/dist/{Title-pI68ZJsq.js → Title-BIaVNiUQ.js} +1 -1
- package/dist/components/vue-ui-3d-bar.js +1 -1
- package/dist/components/vue-ui-accordion.js +1 -1
- package/dist/components/vue-ui-age-pyramid.js +1 -1
- package/dist/components/vue-ui-bullet.js +1 -1
- package/dist/components/vue-ui-candlestick.js +1 -1
- package/dist/components/vue-ui-carousel-table.js +1 -1
- package/dist/components/vue-ui-chestnut.js +1 -1
- package/dist/components/vue-ui-chord.js +1 -1
- package/dist/components/vue-ui-circle-pack.js +1 -1
- package/dist/components/vue-ui-cursor.js +1 -1
- package/dist/components/vue-ui-dashboard.js +1 -1
- package/dist/components/vue-ui-digits.js +1 -1
- package/dist/components/vue-ui-donut-evolution.js +1 -1
- package/dist/components/vue-ui-donut.js +1 -1
- package/dist/components/vue-ui-dumbbell.js +1 -1
- package/dist/components/vue-ui-flow.js +1 -1
- package/dist/components/vue-ui-funnel.js +1 -1
- package/dist/components/vue-ui-galaxy.js +1 -1
- package/dist/components/vue-ui-gauge.js +1 -1
- package/dist/components/vue-ui-gizmo.js +1 -1
- package/dist/components/vue-ui-heatmap.js +1 -1
- package/dist/components/vue-ui-history-plot.js +1 -1
- package/dist/components/vue-ui-horizontal-bar.js +1 -1
- package/dist/components/vue-ui-kpi.js +1 -1
- package/dist/components/vue-ui-mini-loader.js +1 -1
- package/dist/components/vue-ui-molecule.js +1 -1
- package/dist/components/vue-ui-mood-radar.js +1 -1
- package/dist/components/vue-ui-nested-donuts.js +1 -1
- package/dist/components/vue-ui-onion.js +1 -1
- package/dist/components/vue-ui-parallel-coordinate-plot.js +1 -1
- package/dist/components/vue-ui-quadrant.js +1 -1
- package/dist/components/vue-ui-quick-chart.js +1 -1
- package/dist/components/vue-ui-radar.js +1 -1
- package/dist/components/vue-ui-rating.js +1 -1
- package/dist/components/vue-ui-relation-circle.js +1 -1
- package/dist/components/vue-ui-ridgeline.js +1 -1
- package/dist/components/vue-ui-rings.js +1 -1
- package/dist/components/vue-ui-scatter.js +1 -1
- package/dist/components/vue-ui-skeleton.js +1 -1
- package/dist/components/vue-ui-smiley.js +1 -1
- package/dist/components/vue-ui-spark-trend.js +1 -1
- package/dist/components/vue-ui-sparkbar.js +1 -1
- package/dist/components/vue-ui-sparkgauge.js +1 -1
- package/dist/components/vue-ui-sparkhistogram.js +1 -1
- package/dist/components/vue-ui-sparkline.js +1 -1
- package/dist/components/vue-ui-sparkstackbar.js +1 -1
- package/dist/components/vue-ui-stackbar.js +1 -1
- package/dist/components/vue-ui-strip-plot.js +1 -1
- package/dist/components/vue-ui-table-heatmap.js +1 -1
- package/dist/components/vue-ui-table-sparkline.js +1 -1
- package/dist/components/vue-ui-table.js +1 -1
- package/dist/components/vue-ui-thermometer.js +1 -1
- package/dist/components/vue-ui-timer.js +1 -1
- package/dist/components/vue-ui-tiremarks.js +1 -1
- package/dist/components/vue-ui-treemap.js +1 -1
- package/dist/components/vue-ui-vertical-bar.js +1 -1
- package/dist/components/vue-ui-waffle.js +1 -1
- package/dist/components/vue-ui-wheel.js +1 -1
- package/dist/components/vue-ui-word-cloud.js +1 -1
- package/dist/components/vue-ui-world.js +1 -1
- package/dist/components/vue-ui-xy-canvas.js +1 -1
- package/dist/components/vue-ui-xy.js +1 -1
- package/dist/style.css +1 -1
- package/dist/types/vue-data-ui.d.ts +11 -0
- package/dist/{useNestedProp-DF7e2h1z.js → useNestedProp-7BbqoAYu.js} +32 -20
- package/dist/{vue-data-ui-DfcfqSDl.js → vue-data-ui-DyqIdFbp.js} +63 -63
- package/dist/vue-data-ui.js +64 -64
- package/dist/{vue-ui-3d-bar-DKkCWxob.js → vue-ui-3d-bar-BrlJjJDI.js} +3 -3
- package/dist/{vue-ui-accordion-D-L73-T2.js → vue-ui-accordion-BSrtaPYx.js} +1 -1
- package/dist/{vue-ui-age-pyramid-gGF4DSOi.js → vue-ui-age-pyramid-BDIMacvP.js} +3 -3
- package/dist/{vue-ui-annotator-SoAGIAm-.js → vue-ui-annotator-DGVlVhhy.js} +1 -1
- package/dist/{vue-ui-bullet-Coqi_swO.js → vue-ui-bullet-CIJw4kXd.js} +3 -3
- package/dist/{vue-ui-candlestick-C78EYmhY.js → vue-ui-candlestick-ZjLiyYpC.js} +4 -4
- package/dist/{vue-ui-carousel-table-B7i_eOe9.js → vue-ui-carousel-table-_-qalKHa.js} +2 -2
- package/dist/{vue-ui-chestnut-QzsKNF-J.js → vue-ui-chestnut-XkX5ANAN.js} +2 -2
- package/dist/{vue-ui-chord-BxiWe3MD.js → vue-ui-chord-B1vFXFgp.js} +3 -3
- package/dist/{vue-ui-circle-pack-C3TZdbF1.js → vue-ui-circle-pack-8J10Q6-I.js} +3 -3
- package/dist/{vue-ui-cursor-0muOlHSh.js → vue-ui-cursor-CQp6B13J.js} +1 -1
- package/dist/{vue-ui-dashboard-Dh0EyLe8.js → vue-ui-dashboard-CTEYSHVA.js} +63 -63
- package/dist/{vue-ui-digits-DOUNtmB0.js → vue-ui-digits-B4aZJw8I.js} +1 -1
- package/dist/{vue-ui-donut-DTJCIEig.js → vue-ui-donut-d_XvnIQB.js} +3 -3
- package/dist/{vue-ui-donut-evolution-DYJmrFDC.js → vue-ui-donut-evolution-Bz7fLQru.js} +4 -4
- package/dist/{vue-ui-dumbbell-COm32YHr.js → vue-ui-dumbbell-fDl24oQq.js} +3 -3
- package/dist/{vue-ui-flow-BD2XeR-d.js → vue-ui-flow-NYnnPoDX.js} +3 -3
- package/dist/{vue-ui-funnel-Cy9J1JpW.js → vue-ui-funnel-BWPIKyW8.js} +3 -3
- package/dist/{vue-ui-galaxy-KyUZ5tNb.js → vue-ui-galaxy-LabscC7n.js} +3 -3
- package/dist/{vue-ui-gauge-BpXYJd5z.js → vue-ui-gauge-DXETakZJ.js} +3 -3
- package/dist/{vue-ui-gizmo-DM3wSOOe.js → vue-ui-gizmo-DZgMzP_e.js} +2 -2
- package/dist/{vue-ui-heatmap-B2NzGPtL.js → vue-ui-heatmap-C6Z5wEkZ.js} +4 -4
- package/dist/{vue-ui-history-plot-BTnau6bc.js → vue-ui-history-plot-CUGzhcjr.js} +3 -3
- package/dist/{vue-ui-kpi-D7zdt7-g.js → vue-ui-kpi-DklTxULP.js} +2 -2
- package/dist/{vue-ui-mini-loader-CteWqKM_.js → vue-ui-mini-loader-D22vfM5g.js} +1 -1
- package/dist/{vue-ui-molecule-8oQQTCN2.js → vue-ui-molecule-BAH7NOZP.js} +2 -2
- package/dist/{vue-ui-mood-radar-B3ZrQSqP.js → vue-ui-mood-radar-DWZKM2u0.js} +3 -3
- package/dist/{vue-ui-nested-donuts-BoUb_OX8.js → vue-ui-nested-donuts-CxUSyTrT.js} +3 -3
- package/dist/{vue-ui-onion-xprTPjVq.js → vue-ui-onion-BfzkGOmQ.js} +3 -3
- package/dist/{vue-ui-parallel-coordinate-plot-Cpzi3BO0.js → vue-ui-parallel-coordinate-plot-Dnl2GBps.js} +3 -3
- package/dist/{vue-ui-quadrant-CHTnDwZ7.js → vue-ui-quadrant-C_3l8xWm.js} +3 -3
- package/dist/vue-ui-quick-chart-E6QujRg4.js +1892 -0
- package/dist/{vue-ui-radar-B5QRDHJ1.js → vue-ui-radar-C_yLoJvR.js} +3 -3
- package/dist/{vue-ui-rating-CjoKP6-5.js → vue-ui-rating-Df02iNbL.js} +1 -1
- package/dist/{vue-ui-relation-circle-DStHH_sz.js → vue-ui-relation-circle-CBIXCwQb.js} +3 -3
- package/dist/{vue-ui-ridgeline-VI1I1k9W.js → vue-ui-ridgeline-euhLcVI0.js} +3 -3
- package/dist/{vue-ui-rings-D26TgYmU.js → vue-ui-rings-BGxjmMDw.js} +3 -3
- package/dist/{vue-ui-scatter-9CX5JEVI.js → vue-ui-scatter-CO4kXKZF.js} +3 -3
- package/dist/{vue-ui-skeleton-0yto3ZRt.js → vue-ui-skeleton-DrCI1AAl.js} +2 -2
- package/dist/{vue-ui-smiley-YRRY-yQp.js → vue-ui-smiley-FPLXOxew.js} +1 -1
- package/dist/{vue-ui-spark-trend-13xDAi4U.js → vue-ui-spark-trend-D4dDN0Sc.js} +2 -2
- package/dist/{vue-ui-sparkbar-DBMeKvSW.js → vue-ui-sparkbar-BEXrQvP0.js} +2 -2
- package/dist/{vue-ui-sparkgauge-febkbzOk.js → vue-ui-sparkgauge-Cp4-BTZu.js} +2 -2
- package/dist/{vue-ui-sparkhistogram-rc9uWj4C.js → vue-ui-sparkhistogram-BwmKv4YF.js} +2 -2
- package/dist/{vue-ui-sparkline-BpZKuk92.js → vue-ui-sparkline-BXZJ-fUn.js} +2 -2
- package/dist/{vue-ui-sparkstackbar-DuOsScHl.js → vue-ui-sparkstackbar-Cie2g7gk.js} +2 -2
- package/dist/{vue-ui-stackbar-BsdEyuPC.js → vue-ui-stackbar-B137wy4q.js} +4 -4
- package/dist/{vue-ui-strip-plot-Dem6Qr7N.js → vue-ui-strip-plot-Dd1aHpFW.js} +3 -3
- package/dist/{vue-ui-table-Dds0EE_Q.js → vue-ui-table-CduckNVX.js} +3 -3
- package/dist/{vue-ui-table-heatmap-iu6l-6rW.js → vue-ui-table-heatmap-DZAkUjty.js} +1 -1
- package/dist/{vue-ui-table-sparkline-DcHLIhbA.js → vue-ui-table-sparkline-D6oTAFEO.js} +2 -2
- package/dist/{vue-ui-thermometer-DZwSnX7w.js → vue-ui-thermometer-BmK3_O7T.js} +3 -3
- package/dist/{vue-ui-timer-BVmo70Ts.js → vue-ui-timer-BYw6Z01O.js} +3 -3
- package/dist/{vue-ui-tiremarks-Cr6Fy7Sq.js → vue-ui-tiremarks-CWiME7zn.js} +3 -3
- package/dist/{vue-ui-treemap-DiKGxMUR.js → vue-ui-treemap-D8PmfJbw.js} +3 -3
- package/dist/{vue-ui-vertical-bar-D3_W8WLN.js → vue-ui-vertical-bar-DRC047BC.js} +4 -4
- package/dist/{vue-ui-waffle-CoVrrxzt.js → vue-ui-waffle-DAaBoyx4.js} +3 -3
- package/dist/vue-ui-wheel-DfNXrsTY.js +587 -0
- package/dist/{vue-ui-word-cloud-L-58-uVD.js → vue-ui-word-cloud-ByKWZtkV.js} +3 -3
- package/dist/{vue-ui-world-CaA-eKMJ.js → vue-ui-world-BezpUr_Q.js} +2 -2
- package/dist/{vue-ui-xy-Bm2SYaTT.js → vue-ui-xy-DlcJVA22.js} +415 -415
- package/dist/{vue-ui-xy-canvas-2Vg9eVqi.js → vue-ui-xy-canvas-DPfxdanR.js} +5 -5
- package/package.json +1 -1
- package/dist/vue-ui-quick-chart-zJyIT4di.js +0 -1802
- package/dist/vue-ui-wheel-Cwl-WsK2.js +0 -380
|
@@ -1,18 +1,18 @@
|
|
|
1
|
-
import { useCssVars as Yo, computed as x, ref as y, watch as ht, onMounted as Zl, onBeforeUnmount as Ll, onUpdated as ho, nextTick as Ml, createElementBlock as u, openBlock as n, createElementVNode as k, createCommentVNode as g, renderSlot as te, normalizeStyle as C, createVNode as ml, withDirectives as Oa, unref as h, Fragment as b, renderList as L, normalizeProps as Yt, mergeProps as Gt, normalizeClass as Ze, withKeys as fo, vModelText as mo, toDisplayString as
|
|
2
|
-
import { c as ga, z as xa, X as Qo, G as dt, ae as ya, W as pa, af as ka, V as wa, ag as yo, f as Na, t as jo, e as en, E as Ul, aa as hl, h as po, p as ko, ap as ha, a6 as j, a0 as Pa, a8 as tn, q as U, ac as ln, aq as wo, ar as So, a as Ae, as as an, A as on, j as $o, k as
|
|
1
|
+
import { useCssVars as Yo, computed as x, ref as y, watch as ht, onMounted as Zl, onBeforeUnmount as Ll, onUpdated as ho, nextTick as Ml, createElementBlock as u, openBlock as n, createElementVNode as k, createCommentVNode as g, renderSlot as te, normalizeStyle as C, createVNode as ml, withDirectives as Oa, unref as h, Fragment as b, renderList as L, normalizeProps as Yt, mergeProps as Gt, normalizeClass as Ze, withKeys as fo, vModelText as mo, toDisplayString as ce, defineAsyncComponent as Wt, useSlots as Go, getCurrentInstance as qo, toRefs as Uo, watchEffect as go, createBlock as ct, createSlots as xo, withCtx as Se, guardReactiveProps as dl, Teleport as Zo, resolveDynamicComponent as Ko, vModelCheckbox as Jo, createTextVNode as bo } from "vue";
|
|
2
|
+
import { c as ga, z as xa, X as Qo, G as dt, ae as ya, W as pa, af as ka, V as wa, ag as yo, f as Na, t as jo, e as en, E as Ul, aa as hl, h as po, p as ko, ap as ha, a6 as j, a0 as Pa, a8 as tn, q as U, ac as ln, aq as wo, ar as So, a as Ae, as as an, A as on, j as $o, k as St, d as lt, i as fl, s as vt, a4 as ie, Q as nn, ak as fa, N as un, at as Xt, D as Ue, b as sn, o as _o, x as rn, y as cn, F as _l } from "./lib-p5pfHmOX.js";
|
|
3
3
|
import { t as ba, d as vn, u as dn } from "./useResponsive-DfdjqQps.js";
|
|
4
|
-
import { u as hn, a as Fa } from "./useNestedProp-
|
|
4
|
+
import { u as hn, a as Fa } from "./useNestedProp-7BbqoAYu.js";
|
|
5
5
|
import { u as fn } from "./usePrinter-Yeu5jOfm.js";
|
|
6
6
|
import { u as mn, B as gn } from "./BaseScanner-BgWxam9d.js";
|
|
7
7
|
import { u as Mo, a as xn, l as bn } from "./useTimeLabels-BGFjWgrv.js";
|
|
8
8
|
import { u as yn } from "./useTimeLabelCollider-CIsgDrl9.js";
|
|
9
9
|
import pn from "./img-CH7J0fYg.js";
|
|
10
|
-
import kn from "./Title-
|
|
10
|
+
import kn from "./Title-BIaVNiUQ.js";
|
|
11
11
|
import { t as wn } from "./themes-D3cUNuKw.js";
|
|
12
12
|
import { _ as ma } from "./Shape-BDy56-wS.js";
|
|
13
13
|
import Sn from "./BaseIcon-D2f9w5Z5.js";
|
|
14
14
|
import { _ as Lo } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
15
|
-
import $n from "./vue-ui-accordion-
|
|
15
|
+
import $n from "./vue-ui-accordion-BSrtaPYx.js";
|
|
16
16
|
const _n = {
|
|
17
17
|
class: "vue-data-ui-slicer-labels",
|
|
18
18
|
style: { position: "relative", "z-index": "1", "pointer-events": "none" }
|
|
@@ -189,30 +189,30 @@ const _n = {
|
|
|
189
189
|
}
|
|
190
190
|
},
|
|
191
191
|
emits: ["futureStart", "futureEnd", "update:start", "update:end", "reset", "trapMouse"],
|
|
192
|
-
setup(
|
|
192
|
+
setup(S, { expose: Sa, emit: $a }) {
|
|
193
193
|
Yo((v) => ({
|
|
194
|
-
|
|
195
|
-
"
|
|
196
|
-
"
|
|
197
|
-
"
|
|
198
|
-
|
|
194
|
+
31489338: Tl.value,
|
|
195
|
+
"7f513ed8": ne.value,
|
|
196
|
+
"74ff4a49": mt.value,
|
|
197
|
+
"5f868008": S.selectColor,
|
|
198
|
+
"2feba696": zl.value
|
|
199
199
|
}));
|
|
200
|
-
const d =
|
|
201
|
-
get: () =>
|
|
200
|
+
const d = S, Ne = y(null), ve = y(d.min), me = y(d.max), ge = x(() => !!d.minimap.length), Cl = y(ga()), $t = y(!1), Nt = x(() => ge.value && d.minimapCompact), Kl = y(0), qt = ba((v) => Le("futureStart", v), 0), gl = ba((v) => Le("futureEnd", v), 0), Ut = x({
|
|
201
|
+
get: () => ve.value,
|
|
202
202
|
set(v) {
|
|
203
|
-
const m = Math.min(v,
|
|
204
|
-
m !==
|
|
203
|
+
const m = Math.min(v, me.value - 1);
|
|
204
|
+
m !== ve.value && (ve.value = m, Lt.value && (Lt.value.value = String(m)), d.immediate ? Le("update:start", Number(m)) : $t.value && qt(m));
|
|
205
205
|
}
|
|
206
|
-
}),
|
|
207
|
-
get: () =>
|
|
206
|
+
}), _t = x({
|
|
207
|
+
get: () => me.value,
|
|
208
208
|
set(v) {
|
|
209
|
-
const m = Math.max(v,
|
|
210
|
-
m !==
|
|
209
|
+
const m = Math.max(v, ve.value + 1);
|
|
210
|
+
m !== me.value && (me.value = m, t.value && (t.value.value = String(m)), d.immediate ? Le("update:end", Number(m)) : $t.value && gl(m));
|
|
211
211
|
}
|
|
212
212
|
});
|
|
213
213
|
let Be = null;
|
|
214
214
|
function Te() {
|
|
215
|
-
clearTimeout(Be), d.immediate || (Le("update:start", Number(
|
|
215
|
+
clearTimeout(Be), d.immediate || (Le("update:start", Number(ve.value)), Le("update:end", Number(me.value))), $t.value = !1;
|
|
216
216
|
}
|
|
217
217
|
const Ke = x(() => d.refreshEndPoint === null ? d.max : d.refreshEndPoint), Le = $a, ft = x(() => {
|
|
218
218
|
if (Nt.value) {
|
|
@@ -220,30 +220,30 @@ const _n = {
|
|
|
220
220
|
return Pt.value / m * 100;
|
|
221
221
|
}
|
|
222
222
|
const v = Math.max(1, d.max - d.min);
|
|
223
|
-
return (
|
|
224
|
-
}),
|
|
223
|
+
return (ve.value - d.min) / v * 100;
|
|
224
|
+
}), Mt = x(() => {
|
|
225
225
|
if (Nt.value) {
|
|
226
226
|
const m = Math.max(1, at.value - 1);
|
|
227
227
|
return el.value / m * 100;
|
|
228
228
|
}
|
|
229
229
|
const v = Math.max(1, d.max - d.min);
|
|
230
|
-
return (
|
|
231
|
-
}), Al = x(() => (ft.value +
|
|
230
|
+
return (me.value - d.min) / v * 100;
|
|
231
|
+
}), Al = x(() => (ft.value + Mt.value) / 2), Zt = x(() => {
|
|
232
232
|
if (!Ne.value) return !1;
|
|
233
233
|
const v = Math.max(1, d.max - d.min);
|
|
234
|
-
return Ne.value.getBoundingClientRect().width * ((
|
|
234
|
+
return Ne.value.getBoundingClientRect().width * ((ve.value - d.min) / v) - yl.value / 2 < 0;
|
|
235
235
|
}), Kt = x(() => {
|
|
236
236
|
if (!Ne.value) return !1;
|
|
237
237
|
const v = Math.max(1, d.max - d.min), m = Ne.value.getBoundingClientRect().width;
|
|
238
|
-
return m * ((
|
|
239
|
-
}),
|
|
238
|
+
return m * ((me.value - d.min) / v) + c.value / 2 > m;
|
|
239
|
+
}), $e = x(() => {
|
|
240
240
|
const v = Kt.value ? `calc(${Al.value}% - ${Bt.value.width}px - 2px)` : Zt.value ? `calc(${Al.value}% - 8px)` : `calc(${Al.value}% - ${Bt.value.width / 2}px - 4px)`;
|
|
241
241
|
return {
|
|
242
242
|
left: `${ft.value}%`,
|
|
243
|
-
width: `${Math.max(0,
|
|
243
|
+
width: `${Math.max(0, Mt.value - ft.value)}%`,
|
|
244
244
|
background: d.selectColor,
|
|
245
245
|
tooltipLeft: `calc(${ft.value}% - ${Zt.value ? 9 : yl.value / 2 + 3.5}px)`,
|
|
246
|
-
tooltipRight: `calc(${
|
|
246
|
+
tooltipRight: `calc(${Mt.value}% - ${Kt.value ? c.value - 9 : c.value / 2 - 3.5}px)`,
|
|
247
247
|
tooltipCenter: v,
|
|
248
248
|
arrowLeft: !Zt.value,
|
|
249
249
|
arrowRight: !Kt.value
|
|
@@ -260,12 +260,12 @@ const _n = {
|
|
|
260
260
|
ht(
|
|
261
261
|
() => d.min,
|
|
262
262
|
(v) => {
|
|
263
|
-
Number(
|
|
263
|
+
Number(ve.value) < Number(v) && (ve.value = Number(v)), Number(me.value) < Number(v) && (me.value = Number(v));
|
|
264
264
|
}
|
|
265
265
|
), ht(
|
|
266
266
|
() => d.max,
|
|
267
267
|
(v) => {
|
|
268
|
-
Number(
|
|
268
|
+
Number(ve.value) > Number(v) && (ve.value = Number(v)), Number(me.value) > Number(v) && (me.value = Number(v));
|
|
269
269
|
}
|
|
270
270
|
);
|
|
271
271
|
const Jt = y(null), W = y({
|
|
@@ -273,7 +273,7 @@ const _n = {
|
|
|
273
273
|
height: 1
|
|
274
274
|
}), le = y(null);
|
|
275
275
|
Zl(() => {
|
|
276
|
-
if (
|
|
276
|
+
if (ge.value) {
|
|
277
277
|
const v = ba(() => {
|
|
278
278
|
if (!Jt.value) return;
|
|
279
279
|
const { width: m, height: f } = dn({ chart: Jt.value }), _ = Math.max(0, Math.round(m)), T = Math.max(0, Math.round(f - 47));
|
|
@@ -293,13 +293,13 @@ const _n = {
|
|
|
293
293
|
const m = Math.ceil(v - d.min);
|
|
294
294
|
return Math.min(Math.max(0, m), at.value);
|
|
295
295
|
}
|
|
296
|
-
const Ee = x(() => Ql(
|
|
296
|
+
const Ee = x(() => Ql(ve.value)), Pe = x(() => Qt(me.value)), xl = x(() => Math.max(...d.allMinimaps.map((v) => v.series.length))), ae = x(() => {
|
|
297
297
|
if (!d.minimap.length) return 0;
|
|
298
298
|
const v = Math.max(1, xl.value - (d.minimapCompact ? 1 : 0));
|
|
299
299
|
return W.value.width / v;
|
|
300
|
-
}),
|
|
300
|
+
}), de = x(() => d.allMinimaps.length ? d.allMinimaps.filter((v) => v.type === "bar").length : 0), Z = x(() => ae.value / (de.value || 1) * 0.8);
|
|
301
301
|
function Il(v, m, f) {
|
|
302
|
-
const _ = Z.value, T = Math.max(1,
|
|
302
|
+
const _ = Z.value, T = Math.max(1, de.value), D = xl.value - 1;
|
|
303
303
|
return f === 0 ? v + _ / 2 * m : f === D ? v - _ / 2 * (T - m) : v - T * _ / 2 + m * _;
|
|
304
304
|
}
|
|
305
305
|
function Nl(v, m) {
|
|
@@ -320,18 +320,18 @@ const _n = {
|
|
|
320
320
|
const f = Math.min(0, He.value), _ = Math.max(0, gt.value);
|
|
321
321
|
return m - (v - f) / Math.max(1e-9, _ - f) * m;
|
|
322
322
|
}
|
|
323
|
-
},
|
|
323
|
+
}, _e = x(() => bl(0));
|
|
324
324
|
function ot(v, m, f) {
|
|
325
|
-
const _ = (D,
|
|
325
|
+
const _ = (D, we, $) => Math.max(we, Math.min($, D));
|
|
326
326
|
if (m <= 0) {
|
|
327
327
|
const D = Math.max(1e-9, 0 - v);
|
|
328
|
-
return (
|
|
328
|
+
return (we) => f - (we - v) / D * f;
|
|
329
329
|
} else if (v >= 0) {
|
|
330
330
|
const D = Math.max(1e-9, m - 0);
|
|
331
|
-
return (
|
|
331
|
+
return (we) => f - (we - 0) / D * f;
|
|
332
332
|
} else {
|
|
333
333
|
const D = Math.max(1e-9, Math.max(Math.abs(v), Math.abs(m)));
|
|
334
|
-
return (
|
|
334
|
+
return (we) => (1 - (_(we / D, -1, 1) + 1) / 2) * f;
|
|
335
335
|
}
|
|
336
336
|
}
|
|
337
337
|
function jt(v, m = !1) {
|
|
@@ -348,26 +348,26 @@ const _n = {
|
|
|
348
348
|
fullMarkers: [],
|
|
349
349
|
selectionMarkers: []
|
|
350
350
|
};
|
|
351
|
-
const f = Math.max(1, W.value.height), _ = ot(He.value, gt.value, f), T = v.length, D = Math.min(Math.max(0, Ee.value), Math.max(0, T - 1)),
|
|
352
|
-
const
|
|
351
|
+
const f = Math.max(1, W.value.height), _ = ot(He.value, gt.value, f), T = v.length, D = Math.min(Math.max(0, Ee.value), Math.max(0, T - 1)), we = Math.min(T, Math.max(D + 1, Pe.value)), $ = v.map((se, il) => {
|
|
352
|
+
const wt = se, oa = Number.isFinite(wt), La = ae.value * il + (d.minimapCompact ? 0 : ae.value / 2), Ca = _(0);
|
|
353
353
|
return {
|
|
354
354
|
x: La,
|
|
355
|
-
y: oa ? _(
|
|
356
|
-
v:
|
|
357
|
-
value: oa ?
|
|
355
|
+
y: oa ? _(wt) : NaN,
|
|
356
|
+
v: wt,
|
|
357
|
+
value: wt == null ? null : oa ? wt : null,
|
|
358
358
|
y0: Ca,
|
|
359
359
|
i: il
|
|
360
360
|
};
|
|
361
|
-
}), kl = (
|
|
361
|
+
}), kl = (se) => se >= 0 && se < $.length && Number.isFinite($[se]?.value), st = $.filter((se) => Number.isFinite(se.value) && !kl(se.i - 1) && !kl(se.i + 1)), Et = st.filter((se) => se.i >= D && se.i < we), Tt = $.slice(D, we), aa = $.length >= 2 ? d.smoothMinimap || m ? d.cutNullValues ? ya($) : pa($.filter((se) => se.value != null)) : d.cutNullValues ? ka($) : wa($.filter((se) => se.value != null)) : "", ul = Tt.length >= 2 ? d.smoothMinimap || m ? d.cutNullValues ? ya(Tt) : pa(Tt.filter((se) => se.value != null)) : d.cutNullValues ? ka(Tt) : wa(Tt.filter((se) => se.value != null)) : "";
|
|
362
362
|
return {
|
|
363
363
|
fullSet: aa,
|
|
364
|
-
points:
|
|
364
|
+
points: $,
|
|
365
365
|
selectionSet: ul,
|
|
366
|
-
sliced:
|
|
367
|
-
firstPlot:
|
|
368
|
-
lastPlot:
|
|
369
|
-
hasFull:
|
|
370
|
-
hasSelection:
|
|
366
|
+
sliced: Tt,
|
|
367
|
+
firstPlot: $[D] || null,
|
|
368
|
+
lastPlot: $[Math.max(0, we - 1)] || null,
|
|
369
|
+
hasFull: $.length >= 2,
|
|
370
|
+
hasSelection: Tt.length >= 2,
|
|
371
371
|
fullMarkers: st,
|
|
372
372
|
selectionMarkers: Et
|
|
373
373
|
};
|
|
@@ -394,25 +394,25 @@ const _n = {
|
|
|
394
394
|
set(v) {
|
|
395
395
|
if (Nt.value) {
|
|
396
396
|
const m = Math.round(+v || 0);
|
|
397
|
-
|
|
397
|
+
Ct(Rl(m));
|
|
398
398
|
} else {
|
|
399
399
|
let m = Math.round(+v || 0);
|
|
400
|
-
const f = Number(
|
|
401
|
-
|
|
400
|
+
const f = Number(me.value) - 1, _ = Math.min(Math.max(d.min, m), f);
|
|
401
|
+
Lt.value && (Lt.value.valueAsNumber = _), Ct(_);
|
|
402
402
|
}
|
|
403
403
|
}
|
|
404
404
|
}), el = x({
|
|
405
405
|
get() {
|
|
406
|
-
return Nt.value ? Math.max(Ee.value, Pe.value - 1) : Number(
|
|
406
|
+
return Nt.value ? Math.max(Ee.value, Pe.value - 1) : Number(_t.value);
|
|
407
407
|
},
|
|
408
408
|
set(v) {
|
|
409
409
|
if (Nt.value) {
|
|
410
410
|
const m = Math.round(+v || 0);
|
|
411
|
-
|
|
411
|
+
Me(Rl(m + 1));
|
|
412
412
|
} else {
|
|
413
413
|
let m = Math.round(+v || 0);
|
|
414
|
-
const f = Number(
|
|
415
|
-
t.value && (t.value.valueAsNumber = _),
|
|
414
|
+
const f = Number(ve.value) + 1, _ = Math.max(f, Math.min(m, d.max));
|
|
415
|
+
t.value && (t.value.valueAsNumber = _), Me(_);
|
|
416
416
|
}
|
|
417
417
|
}
|
|
418
418
|
});
|
|
@@ -432,7 +432,7 @@ const _n = {
|
|
|
432
432
|
const m = Ee.value, f = Pe.value;
|
|
433
433
|
v >= m && v < f && !tt.value && Le("trapMouse", v - m);
|
|
434
434
|
}
|
|
435
|
-
const
|
|
435
|
+
const Lt = y(null), t = y(null);
|
|
436
436
|
function p(v) {
|
|
437
437
|
if (typeof v == "object" && v && "target" in v) {
|
|
438
438
|
const f = v.target, _ = "valueAsNumber" in f ? f.valueAsNumber : +f.value;
|
|
@@ -442,36 +442,36 @@ const _n = {
|
|
|
442
442
|
return Number.isFinite(m) ? m : NaN;
|
|
443
443
|
}
|
|
444
444
|
let tl = 0;
|
|
445
|
-
function
|
|
446
|
-
|
|
445
|
+
function Ct(v) {
|
|
446
|
+
$t.value = !0;
|
|
447
447
|
const m = p(v);
|
|
448
448
|
Number.isFinite(m) && (cancelAnimationFrame(tl), tl = requestAnimationFrame(() => {
|
|
449
449
|
Ut.value = m;
|
|
450
450
|
}));
|
|
451
451
|
}
|
|
452
|
-
let
|
|
453
|
-
function
|
|
454
|
-
|
|
452
|
+
let be = 0;
|
|
453
|
+
function Me(v) {
|
|
454
|
+
$t.value = !0;
|
|
455
455
|
const m = p(v);
|
|
456
|
-
Number.isFinite(m) && (cancelAnimationFrame(
|
|
457
|
-
|
|
456
|
+
Number.isFinite(m) && (cancelAnimationFrame(be), be = requestAnimationFrame(() => {
|
|
457
|
+
_t.value = m;
|
|
458
458
|
}));
|
|
459
459
|
}
|
|
460
460
|
Ll(() => {
|
|
461
|
-
cancelAnimationFrame(tl), cancelAnimationFrame(
|
|
461
|
+
cancelAnimationFrame(tl), cancelAnimationFrame(be);
|
|
462
462
|
});
|
|
463
463
|
const bt = x(() => d.valueEnd - d.valueStart), _a = x(() => bt.value < d.max - d.min), Ft = y(!1);
|
|
464
464
|
let yt = y(null);
|
|
465
|
-
const Qe = x(() => (Kl.value - 48) / (d.max - d.min) * bt.value), w = x(() => Math.max(1, Kl.value - Ra - Qe.value)), We = x(() => Math.max(1, d.max - d.min - bt.value)), ea = x(() => We.value / w.value), Vl = y(0),
|
|
465
|
+
const Qe = x(() => (Kl.value - 48) / (d.max - d.min) * bt.value), w = x(() => Math.max(1, Kl.value - Ra - Qe.value)), We = x(() => Math.max(1, d.max - d.min - bt.value)), ea = x(() => We.value / w.value), Vl = y(0), At = y(0), Ma = y(0), Bl = y(0);
|
|
466
466
|
let nt = null, ut = null, it = null, pt = null;
|
|
467
467
|
const ll = y(d.min);
|
|
468
468
|
function Rt(v) {
|
|
469
469
|
if (!Ne.value) return d.min;
|
|
470
|
-
const m = Ne.value.getBoundingClientRect(), f = m.left + Ra / 2, _ = m.right - Ra / 2, T = Math.max(1, _ - f),
|
|
471
|
-
return Math.round(d.min +
|
|
470
|
+
const m = Ne.value.getBoundingClientRect(), f = m.left + Ra / 2, _ = m.right - Ra / 2, T = Math.max(1, _ - f), we = (Math.max(f, Math.min(v, _)) - f) / T, $ = Math.max(1, d.max - d.min);
|
|
471
|
+
return Math.round(d.min + we * $);
|
|
472
472
|
}
|
|
473
473
|
const al = async (v) => {
|
|
474
|
-
if (
|
|
474
|
+
if ($t.value = !0, Vt.value = !0, !d.enableSelectionDrag) return;
|
|
475
475
|
const m = v.type === "touchstart";
|
|
476
476
|
m || v.stopPropagation();
|
|
477
477
|
const f = m && v.targetTouches && v.targetTouches[0] ? v.targetTouches[0] : null, _ = m ? f ? f.target : null : v.target;
|
|
@@ -480,13 +480,13 @@ const _n = {
|
|
|
480
480
|
const T = m ? f ? f.clientX : 0 : v.clientX;
|
|
481
481
|
if (yt.value = T, Vl.value = T, d.focusOnDrag && !_a.value && Ne.value) {
|
|
482
482
|
ll.value = Rt(T);
|
|
483
|
-
const D = Math.min(0.95, Math.max(0.05, d.focusRangeRatio)),
|
|
483
|
+
const D = Math.min(0.95, Math.max(0.05, d.focusRangeRatio)), we = d.max - d.min, $ = Math.max(1, Math.round(we * D)), kl = Math.floor($ / 2);
|
|
484
484
|
let st = ll.value - kl;
|
|
485
|
-
st = Math.max(d.min, Math.min(st, d.max -
|
|
486
|
-
const Et = Math.min(d.max, st +
|
|
487
|
-
Ut.value = st,
|
|
485
|
+
st = Math.max(d.min, Math.min(st, d.max - $));
|
|
486
|
+
const Et = Math.min(d.max, st + $);
|
|
487
|
+
Ut.value = st, _t.value = Et, qt(st), gl(Et), yo(Ne.value, "mouseup"), await Ml(), yo(Ne.value, "mousedown", { clientX: T });
|
|
488
488
|
}
|
|
489
|
-
|
|
489
|
+
At.value = ve.value, Ma.value = me.value, Bl.value = ea.value, nt = m ? "touchmove" : "mousemove", ut = m ? "touchend" : "mouseup", it = m ? ol : Xe, pt = m ? Fe : et, window.addEventListener(nt, it, { passive: !1 }), window.addEventListener(ut, pt);
|
|
490
490
|
};
|
|
491
491
|
function Xe(v) {
|
|
492
492
|
Ft.value && je(v.clientX);
|
|
@@ -502,10 +502,10 @@ const _n = {
|
|
|
502
502
|
function je(v) {
|
|
503
503
|
if (!Ft.value) return;
|
|
504
504
|
const m = Rt(Vl.value), _ = Rt(v) - m;
|
|
505
|
-
let T = Math.round(
|
|
505
|
+
let T = Math.round(At.value + _);
|
|
506
506
|
T = Math.max(d.min, Math.min(T, d.max - bt.value));
|
|
507
507
|
const D = T + bt.value;
|
|
508
|
-
Ut.value = T,
|
|
508
|
+
Ut.value = T, _t.value = D, qt(T), gl(D);
|
|
509
509
|
}
|
|
510
510
|
function et() {
|
|
511
511
|
ta();
|
|
@@ -540,7 +540,7 @@ const _n = {
|
|
|
540
540
|
width: 0,
|
|
541
541
|
left: 0
|
|
542
542
|
});
|
|
543
|
-
ht([
|
|
543
|
+
ht([ve, me], async () => {
|
|
544
544
|
if (await Ml(), !nl.value || !Ot.value) {
|
|
545
545
|
kt.value = !1, Bt.value = { width: 0, left: 0 };
|
|
546
546
|
return;
|
|
@@ -559,16 +559,16 @@ const _n = {
|
|
|
559
559
|
}, { deep: !0 }), ht(() => d.labelRight, () => {
|
|
560
560
|
Ml(pl);
|
|
561
561
|
}, { deep: !0 });
|
|
562
|
-
const
|
|
562
|
+
const xe = x(() => {
|
|
563
563
|
let v = "", m = "", f = !1;
|
|
564
564
|
if (xa(d.customFormat))
|
|
565
565
|
try {
|
|
566
566
|
const _ = d.customFormat({
|
|
567
|
-
absoluteIndex:
|
|
568
|
-
seriesIndex:
|
|
567
|
+
absoluteIndex: ve.value,
|
|
568
|
+
seriesIndex: ve.value,
|
|
569
569
|
datapoint: d.selectedSeries
|
|
570
570
|
}), T = d.customFormat({
|
|
571
|
-
absoluteIndex:
|
|
571
|
+
absoluteIndex: me.value - 1,
|
|
572
572
|
seriesIndex: -1,
|
|
573
573
|
datapoint: d.selectedSeries
|
|
574
574
|
});
|
|
@@ -577,7 +577,7 @@ const _n = {
|
|
|
577
577
|
f = !1;
|
|
578
578
|
}
|
|
579
579
|
if (!f) {
|
|
580
|
-
const _ = d.usePreciseLabels ? d.preciseLabels.find((D) => D.absoluteIndex ===
|
|
580
|
+
const _ = d.usePreciseLabels ? d.preciseLabels.find((D) => D.absoluteIndex === ve.value) : d.timeLabels.find((D) => D.absoluteIndex === ve.value), T = d.usePreciseLabels ? d.preciseLabels.find((D) => D.absoluteIndex === me.value - 1) : d.timeLabels.find((D) => D.absoluteIndex === me.value - 1);
|
|
581
581
|
v = _ ? _.text : "", m = T ? T.text : "";
|
|
582
582
|
}
|
|
583
583
|
return { left: v, right: m };
|
|
@@ -603,8 +603,8 @@ const _n = {
|
|
|
603
603
|
return null;
|
|
604
604
|
});
|
|
605
605
|
return Sa({
|
|
606
|
-
setStartValue:
|
|
607
|
-
setEndValue:
|
|
606
|
+
setStartValue: Ct,
|
|
607
|
+
setEndValue: Me
|
|
608
608
|
}), (v, m) => (n(), u("div", {
|
|
609
609
|
"data-dom-to-png-ignore": "",
|
|
610
610
|
style: { padding: "0 24px" },
|
|
@@ -615,8 +615,8 @@ const _n = {
|
|
|
615
615
|
onTouchstart: al
|
|
616
616
|
}, [
|
|
617
617
|
k("div", _n, [
|
|
618
|
-
|
|
619
|
-
|
|
618
|
+
S.valueStart !== S.refreshStartPoint || S.valueEnd !== Ke.value ? (n(), u("div", Mn, [
|
|
619
|
+
S.useResetSlot ? te(v.$slots, "reset-action", {
|
|
620
620
|
key: 1,
|
|
621
621
|
reset: E
|
|
622
622
|
}, void 0, !0) : (n(), u("button", {
|
|
@@ -625,14 +625,14 @@ const _n = {
|
|
|
625
625
|
role: "button",
|
|
626
626
|
class: "vue-data-ui-refresh-button",
|
|
627
627
|
style: C({
|
|
628
|
-
top:
|
|
628
|
+
top: ge.value ? "36px" : "-16px",
|
|
629
629
|
pointerEvents: "all !important"
|
|
630
630
|
}),
|
|
631
631
|
onClick: E
|
|
632
632
|
}, [
|
|
633
633
|
ml(Sn, {
|
|
634
634
|
name: "refresh",
|
|
635
|
-
stroke:
|
|
635
|
+
stroke: S.textColor
|
|
636
636
|
}, null, 8, ["stroke"])
|
|
637
637
|
], 4))
|
|
638
638
|
])) : g("", !0)
|
|
@@ -645,9 +645,9 @@ const _n = {
|
|
|
645
645
|
onMouseenter: m[11] || (m[11] = (f) => Vt.value = !0),
|
|
646
646
|
onMouseleave: m[12] || (m[12] = (f) => Vt.value = !1)
|
|
647
647
|
}, [
|
|
648
|
-
|
|
648
|
+
ge.value ? (n(), u("div", Ln, [
|
|
649
649
|
(n(), u("svg", {
|
|
650
|
-
key: `mm-${
|
|
650
|
+
key: `mm-${S.minimapMerged ? "merged" : "split"}-${S.minimapCompact ? "compact" : "normal"}`,
|
|
651
651
|
xmlns: h(Qo),
|
|
652
652
|
viewBox: `0 0 ${Math.max(0, W.value.width)} ${Math.max(0, W.value.height)}`
|
|
653
653
|
}, [
|
|
@@ -661,7 +661,7 @@ const _n = {
|
|
|
661
661
|
}, [
|
|
662
662
|
k("stop", {
|
|
663
663
|
offset: "0%",
|
|
664
|
-
"stop-color": `${
|
|
664
|
+
"stop-color": `${S.minimapLineColor}50`
|
|
665
665
|
}, null, 8, Tn),
|
|
666
666
|
m[13] || (m[13] = k("stop", {
|
|
667
667
|
offset: "100%",
|
|
@@ -669,7 +669,7 @@ const _n = {
|
|
|
669
669
|
}, null, -1))
|
|
670
670
|
], 8, An)
|
|
671
671
|
]),
|
|
672
|
-
|
|
672
|
+
S.minimapCompact ? (n(), u("rect", {
|
|
673
673
|
key: 0,
|
|
674
674
|
class: "vue-ui-zoom-minimap-frame",
|
|
675
675
|
x: 0,
|
|
@@ -677,26 +677,26 @@ const _n = {
|
|
|
677
677
|
width: W.value.width,
|
|
678
678
|
height: W.value.height,
|
|
679
679
|
fill: "none",
|
|
680
|
-
stroke:
|
|
680
|
+
stroke: S.minimapFrameColor,
|
|
681
681
|
rx: 3
|
|
682
682
|
}, null, 8, zn)) : g("", !0),
|
|
683
|
-
|
|
683
|
+
S.minimapMerged ? (n(), u("path", {
|
|
684
684
|
key: 1,
|
|
685
685
|
d: `M${H.value.fullSet}`,
|
|
686
|
-
stroke: `${
|
|
686
|
+
stroke: `${S.minimapLineColor}`,
|
|
687
687
|
fill: "none",
|
|
688
688
|
"stroke-width": "1",
|
|
689
689
|
"stroke-linecap": "round",
|
|
690
690
|
"stroke-linejoin": "round",
|
|
691
691
|
style: { opacity: "0.6" }
|
|
692
692
|
}, null, 8, In)) : g("", !0),
|
|
693
|
-
|
|
693
|
+
S.minimapMerged && !S.minimapCompact ? (n(), u("path", {
|
|
694
694
|
key: 2,
|
|
695
695
|
d: `M${ae.value / 2},${Math.max(W.value.height, 0)} ${H.value.fullSet} L${W.value.width - ae.value / 2},${Math.max(W.value.height, 0)}Z`,
|
|
696
696
|
fill: `url(#${Cl.value})`,
|
|
697
697
|
stroke: "none",
|
|
698
698
|
style: { opacity: "0.6" }
|
|
699
|
-
}, null, 8, Nn)) :
|
|
699
|
+
}, null, 8, Nn)) : S.minimapMerged ? g("", !0) : (n(), u(b, { key: 3 }, [
|
|
700
700
|
(n(!0), u(b, null, L(Je.value.filter((f) => f.type === "bar"), (f, _) => (n(), u("g", null, [
|
|
701
701
|
(n(!0), u(b, null, L(f.points, (T, D) => (n(), u(b, null, [
|
|
702
702
|
f.isVisible && !isNaN(T.y) ? (n(), u("rect", {
|
|
@@ -718,7 +718,7 @@ const _n = {
|
|
|
718
718
|
stroke: f.color,
|
|
719
719
|
style: { opacity: "0.6" }
|
|
720
720
|
}, null, 8, Fn)) : g("", !0),
|
|
721
|
-
f.isVisible ? (n(!0), u(b, { key: 1 }, L(f.fullMarkers, (_) => (n(), u("circle", {
|
|
721
|
+
f.isVisible && S.cutNullValues ? (n(!0), u(b, { key: 1 }, L(f.fullMarkers, (_) => (n(), u("circle", {
|
|
722
722
|
key: `sel-dot-under-${f.key}-${_.i}`,
|
|
723
723
|
cx: _.x,
|
|
724
724
|
cy: _.y,
|
|
@@ -736,7 +736,7 @@ const _n = {
|
|
|
736
736
|
width: Math.max(0, M.value.width),
|
|
737
737
|
height: Math.max(W.value.height, 0),
|
|
738
738
|
fill: ne.value,
|
|
739
|
-
rx:
|
|
739
|
+
rx: S.minimapSelectionRadius,
|
|
740
740
|
stroke: "none"
|
|
741
741
|
}, null, 8, On),
|
|
742
742
|
k("rect", {
|
|
@@ -744,30 +744,30 @@ const _n = {
|
|
|
744
744
|
y: 0,
|
|
745
745
|
width: M.value.width < 0 ? 0 : M.value.width,
|
|
746
746
|
height: Math.max(W.value.height, 0),
|
|
747
|
-
rx:
|
|
747
|
+
rx: S.minimapSelectionRadius,
|
|
748
748
|
fill: ne.value,
|
|
749
|
-
style: C({ opacity: Ft.value ||
|
|
749
|
+
style: C({ opacity: Ft.value || $t.value ? 0 : 1 })
|
|
750
750
|
}, null, 12, Vn),
|
|
751
751
|
k("rect", {
|
|
752
752
|
x: M.value.x,
|
|
753
753
|
y: 0,
|
|
754
754
|
width: M.value.width < 0 ? 0 : M.value.width,
|
|
755
755
|
height: Math.max(W.value.height, 0),
|
|
756
|
-
fill:
|
|
757
|
-
rx:
|
|
758
|
-
style: C({ opacity:
|
|
756
|
+
fill: S.minimapSelectedColor,
|
|
757
|
+
rx: S.minimapSelectionRadius,
|
|
758
|
+
style: C({ opacity: S.minimapSelectedColorOpacity })
|
|
759
759
|
}, null, 12, Bn),
|
|
760
|
-
|
|
760
|
+
!S.minimapMerged && X.value < 0 ? (n(), u("line", {
|
|
761
761
|
key: 4,
|
|
762
762
|
class: "slicer-minimap-zero-line",
|
|
763
763
|
x1: 0,
|
|
764
764
|
x2: W.value.width,
|
|
765
|
-
y1:
|
|
766
|
-
y2:
|
|
767
|
-
stroke:
|
|
765
|
+
y1: _e.value,
|
|
766
|
+
y2: _e.value,
|
|
767
|
+
stroke: S.minimapFrameColor,
|
|
768
768
|
"stroke-width": "0.5"
|
|
769
769
|
}, null, 8, En)) : g("", !0),
|
|
770
|
-
|
|
770
|
+
S.minimapMerged ? (n(), u("g", Hn, [
|
|
771
771
|
H.value && H.value.sliced && H.value.sliced.length ? (n(), u(b, { key: 0 }, [
|
|
772
772
|
H.value.selectionSet ? (n(), u("path", {
|
|
773
773
|
key: 0,
|
|
@@ -779,7 +779,7 @@ const _n = {
|
|
|
779
779
|
H.value.selectionSet ? (n(), u("path", {
|
|
780
780
|
key: 1,
|
|
781
781
|
d: `M ${H.value.selectionSet}`,
|
|
782
|
-
stroke: `${
|
|
782
|
+
stroke: `${S.minimapLineColor}`,
|
|
783
783
|
fill: "transparent",
|
|
784
784
|
"stroke-width": "2",
|
|
785
785
|
"stroke-linecap": "round",
|
|
@@ -793,7 +793,7 @@ const _n = {
|
|
|
793
793
|
"stroke-width": "0.5",
|
|
794
794
|
stroke: ne.value,
|
|
795
795
|
r: "3",
|
|
796
|
-
fill:
|
|
796
|
+
fill: S.minimapLineColor
|
|
797
797
|
}, null, 8, Xn)) : g("", !0),
|
|
798
798
|
H.value && H.value.lastPlot ? (n(), u("circle", {
|
|
799
799
|
key: 2,
|
|
@@ -802,7 +802,7 @@ const _n = {
|
|
|
802
802
|
"stroke-width": "0.5",
|
|
803
803
|
stroke: ne.value,
|
|
804
804
|
r: "3",
|
|
805
|
-
fill:
|
|
805
|
+
fill: S.minimapLineColor
|
|
806
806
|
}, null, 8, Yn)) : g("", !0)
|
|
807
807
|
])) : (n(), u("g", Gn, [
|
|
808
808
|
(n(!0), u(b, null, L(Je.value.filter((f) => f.type === "bar"), (f, _) => (n(), u("g", null, [
|
|
@@ -814,7 +814,7 @@ const _n = {
|
|
|
814
814
|
width: Nl(_, D),
|
|
815
815
|
height: T.v >= 0 ? T.y0 - T.y : T.y - T.y0,
|
|
816
816
|
fill: f.color,
|
|
817
|
-
style: C({ opacity: D >= Ut.value && D <
|
|
817
|
+
style: C({ opacity: D >= Ut.value && D < _t.value ? 1 : 0 })
|
|
818
818
|
}, null, 12, qn)) : g("", !0)
|
|
819
819
|
], 64))), 256))
|
|
820
820
|
]))), 256)),
|
|
@@ -832,7 +832,7 @@ const _n = {
|
|
|
832
832
|
}, null, 8, Un)) : g("", !0)
|
|
833
833
|
]))), 128))
|
|
834
834
|
])),
|
|
835
|
-
|
|
835
|
+
ge.value && S.minimapCompact ? (n(), u("rect", {
|
|
836
836
|
key: 7,
|
|
837
837
|
class: "vue-ui-zoom-compact-minimap-handle",
|
|
838
838
|
x: M.value.x - 8,
|
|
@@ -840,10 +840,10 @@ const _n = {
|
|
|
840
840
|
width: 8,
|
|
841
841
|
height: W.value.height,
|
|
842
842
|
fill: ne.value,
|
|
843
|
-
stroke:
|
|
843
|
+
stroke: S.textColor,
|
|
844
844
|
rx: 3
|
|
845
845
|
}, null, 8, Zn)) : g("", !0),
|
|
846
|
-
|
|
846
|
+
ge.value && S.minimapCompact ? (n(), u("rect", {
|
|
847
847
|
key: 8,
|
|
848
848
|
class: "vue-ui-zoom-compact-minimap-handle",
|
|
849
849
|
x: M.value.x + M.value.width,
|
|
@@ -851,11 +851,11 @@ const _n = {
|
|
|
851
851
|
width: 8,
|
|
852
852
|
height: W.value.height,
|
|
853
853
|
fill: ne.value,
|
|
854
|
-
stroke:
|
|
854
|
+
stroke: S.textColor,
|
|
855
855
|
rx: 3
|
|
856
856
|
}, null, 8, Kn)) : g("", !0),
|
|
857
857
|
xt.value !== null && !tt.value ? (n(), u("line", Yt(Gt({ key: 9 }, Dl.value)), null, 16)) : g("", !0),
|
|
858
|
-
|
|
858
|
+
S.minimapMerged ? (n(), u("g", Jn, [
|
|
859
859
|
H.value && H.value.firstPlot && H.value.firstPlot.value !== null ? (n(), u("circle", {
|
|
860
860
|
key: 0,
|
|
861
861
|
cx: H.value.firstPlot.x,
|
|
@@ -863,7 +863,7 @@ const _n = {
|
|
|
863
863
|
"stroke-width": "0.5",
|
|
864
864
|
stroke: ne.value,
|
|
865
865
|
r: "4",
|
|
866
|
-
fill:
|
|
866
|
+
fill: S.minimapLineColor
|
|
867
867
|
}, null, 8, Qn)) : g("", !0),
|
|
868
868
|
H.value && H.value.firstPlot && H.value.firstPlot.value !== null ? (n(), u("circle", {
|
|
869
869
|
key: 1,
|
|
@@ -879,7 +879,7 @@ const _n = {
|
|
|
879
879
|
"stroke-width": "0.5",
|
|
880
880
|
stroke: ne.value,
|
|
881
881
|
r: "4",
|
|
882
|
-
fill:
|
|
882
|
+
fill: S.minimapLineColor
|
|
883
883
|
}, null, 8, eu)) : g("", !0),
|
|
884
884
|
H.value && H.value.lastPlot && H.value.lastPlot.value !== null ? (n(), u("circle", {
|
|
885
885
|
key: 3,
|
|
@@ -901,7 +901,7 @@ const _n = {
|
|
|
901
901
|
"stroke-linecap": "round",
|
|
902
902
|
"stroke-linejoin": "round"
|
|
903
903
|
}, null, 8, au)) : g("", !0),
|
|
904
|
-
f.isVisible ? (n(!0), u(b, { key: 1 }, L(f.selectionMarkers, (_) => (n(), u("circle", {
|
|
904
|
+
f.isVisible && S.cutNullValues ? (n(!0), u(b, { key: 1 }, L(f.selectionMarkers, (_) => (n(), u("circle", {
|
|
905
905
|
key: `sel-dot-${f.key}-${_.i}`,
|
|
906
906
|
cx: _.x,
|
|
907
907
|
cy: _.y,
|
|
@@ -945,12 +945,12 @@ const _n = {
|
|
|
945
945
|
]))), 128))
|
|
946
946
|
])),
|
|
947
947
|
(n(!0), u(b, null, L(Jl.value, (f, _) => (n(), u("rect", {
|
|
948
|
-
x: ae.value * _ - (
|
|
948
|
+
x: ae.value * _ - (S.minimapCompact ? ae.value / 2 : 0),
|
|
949
949
|
y: 0,
|
|
950
950
|
height: Math.max(W.value.height, 0),
|
|
951
951
|
width: ae.value < 0 ? 0 : ae.value,
|
|
952
952
|
fill: "transparent",
|
|
953
|
-
style: C([{ "pointer-events": "all !important" }, { cursor: f >= Ee.value && f < Pe.value &&
|
|
953
|
+
style: C([{ "pointer-events": "all !important" }, { cursor: f >= Ee.value && f < Pe.value && S.enableSelectionDrag ? tt.value ? "grabbing" : "grab" : "default" }]),
|
|
954
954
|
onMousedown: m[0] || (m[0] = (T) => tt.value = !0),
|
|
955
955
|
onMouseup: m[1] || (m[1] = (T) => tt.value = !1),
|
|
956
956
|
onMouseenter: (T) => Ol(f),
|
|
@@ -962,31 +962,31 @@ const _n = {
|
|
|
962
962
|
])) : g("", !0),
|
|
963
963
|
k("div", {
|
|
964
964
|
class: "slider-track",
|
|
965
|
-
style: C({ visibility:
|
|
965
|
+
style: C({ visibility: ge.value && S.minimapCompact ? "hidden" : "visible" })
|
|
966
966
|
}, null, 4),
|
|
967
967
|
k("div", {
|
|
968
|
-
class: Ze({ "range-highlight": !0, move:
|
|
968
|
+
class: Ze({ "range-highlight": !0, move: S.enableSelectionDrag }),
|
|
969
969
|
onMousedown: m[3] || (m[3] = (f) => tt.value = !0),
|
|
970
970
|
onMouseup: m[4] || (m[4] = (f) => tt.value = !1),
|
|
971
971
|
style: C({
|
|
972
|
-
|
|
972
|
+
...$e.value,
|
|
973
973
|
cursor: tt.value ? "grabbing" : "grab",
|
|
974
|
-
visibility:
|
|
974
|
+
visibility: ge.value && S.minimapCompact ? "hidden" : "visible"
|
|
975
975
|
})
|
|
976
976
|
}, null, 38),
|
|
977
|
-
|
|
977
|
+
S.enableRangeHandles ? Oa((n(), u("input", {
|
|
978
978
|
key: 1,
|
|
979
979
|
ref_key: "rangeStart",
|
|
980
|
-
ref:
|
|
980
|
+
ref: Lt,
|
|
981
981
|
type: "range",
|
|
982
982
|
class: Ze({
|
|
983
983
|
"range-left": !0,
|
|
984
984
|
"range-handle": !0,
|
|
985
|
-
"range-minimap":
|
|
986
|
-
"range-invisible":
|
|
985
|
+
"range-minimap": ge.value && S.verticalHandles,
|
|
986
|
+
"range-invisible": ge.value && S.minimapCompact
|
|
987
987
|
}),
|
|
988
|
-
min:
|
|
989
|
-
max:
|
|
988
|
+
min: S.min,
|
|
989
|
+
max: S.minimapCompact && ge.value ? Math.max(0, at.value - 1) : S.max,
|
|
990
990
|
"onUpdate:modelValue": m[5] || (m[5] = (f) => Pt.value = f),
|
|
991
991
|
onInput: m[6] || (m[6] = (f) => Pt.value = f.target.valueAsNumber),
|
|
992
992
|
onChange: Te,
|
|
@@ -1002,7 +1002,7 @@ const _n = {
|
|
|
1002
1002
|
{ number: !0 }
|
|
1003
1003
|
]
|
|
1004
1004
|
]) : g("", !0),
|
|
1005
|
-
|
|
1005
|
+
S.enableRangeHandles ? Oa((n(), u("input", {
|
|
1006
1006
|
key: 2,
|
|
1007
1007
|
ref_key: "rangeEnd",
|
|
1008
1008
|
ref: t,
|
|
@@ -1010,11 +1010,11 @@ const _n = {
|
|
|
1010
1010
|
class: Ze({
|
|
1011
1011
|
"range-right": !0,
|
|
1012
1012
|
"range-handle": !0,
|
|
1013
|
-
"range-minimap":
|
|
1014
|
-
"range-invisible":
|
|
1013
|
+
"range-minimap": ge.value && S.verticalHandles,
|
|
1014
|
+
"range-invisible": ge.value && S.minimapCompact
|
|
1015
1015
|
}),
|
|
1016
|
-
min:
|
|
1017
|
-
max:
|
|
1016
|
+
min: S.min,
|
|
1017
|
+
max: S.minimapCompact && ge.value ? Math.max(0, at.value - 1) : S.max,
|
|
1018
1018
|
"onUpdate:modelValue": m[8] || (m[8] = (f) => el.value = f),
|
|
1019
1019
|
onInput: m[9] || (m[9] = (f) => el.value = f.target.valueAsNumber),
|
|
1020
1020
|
onChange: Te,
|
|
@@ -1030,70 +1030,70 @@ const _n = {
|
|
|
1030
1030
|
{ number: !0 }
|
|
1031
1031
|
]
|
|
1032
1032
|
]) : g("", !0),
|
|
1033
|
-
|
|
1033
|
+
xe.value.left ? (n(), u("div", {
|
|
1034
1034
|
key: 3,
|
|
1035
1035
|
ref_key: "tooltipLeft",
|
|
1036
1036
|
ref: nl,
|
|
1037
1037
|
class: Ze({
|
|
1038
1038
|
"range-tooltip": !0,
|
|
1039
1039
|
"range-tooltip-visible": Vt.value,
|
|
1040
|
-
"range-tooltip-arrow":
|
|
1041
|
-
"range-tooltip-arrow-left":
|
|
1040
|
+
"range-tooltip-arrow": $e.value.arrowLeft && !S.verticalHandles,
|
|
1041
|
+
"range-tooltip-arrow-left": !$e.value.arrowLeft && !S.verticalHandles
|
|
1042
1042
|
}),
|
|
1043
1043
|
style: C({
|
|
1044
|
-
left:
|
|
1045
|
-
color: h(dt)(
|
|
1046
|
-
backgroundColor:
|
|
1044
|
+
left: $e.value.tooltipLeft,
|
|
1045
|
+
color: h(dt)(S.selectColor),
|
|
1046
|
+
backgroundColor: S.selectColor,
|
|
1047
1047
|
border: `1px solid ${ne.value}`,
|
|
1048
1048
|
zIndex: `${la.value + 4}`,
|
|
1049
|
-
visibility: kt.value ||
|
|
1050
|
-
top:
|
|
1049
|
+
visibility: kt.value || xe.value.left === xe.value.right ? "hidden" : "visible",
|
|
1050
|
+
top: ge.value && S.minimapCompact ? "calc(-100% - 12px)" : "-100%"
|
|
1051
1051
|
})
|
|
1052
|
-
},
|
|
1053
|
-
(kt.value ||
|
|
1052
|
+
}, ce(xe.value.left), 7)) : g("", !0),
|
|
1053
|
+
(kt.value || xe.value.left === xe.value.right) && (xe.value.left || xe.value.right) ? (n(), u("div", {
|
|
1054
1054
|
key: 4,
|
|
1055
1055
|
ref: "tooltipMerge",
|
|
1056
1056
|
class: Ze({
|
|
1057
1057
|
"range-tooltip": !0,
|
|
1058
1058
|
"range-tooltip-visible": Vt.value,
|
|
1059
1059
|
"range-tooltip-arrow": !0,
|
|
1060
|
-
"range-tooltip-arrow-left":
|
|
1061
|
-
"range-tooltip-arrow-right":
|
|
1060
|
+
"range-tooltip-arrow-left": !$e.value.arrowLeft && !S.verticalHandles,
|
|
1061
|
+
"range-tooltip-arrow-right": !$e.value.arrowRight && !S.verticalHandles
|
|
1062
1062
|
}),
|
|
1063
1063
|
style: C({
|
|
1064
|
-
left:
|
|
1064
|
+
left: $e.value.tooltipCenter,
|
|
1065
1065
|
width: Bt.value.width + "px",
|
|
1066
|
-
color: h(dt)(
|
|
1067
|
-
backgroundColor:
|
|
1066
|
+
color: h(dt)(S.selectColor),
|
|
1067
|
+
backgroundColor: S.selectColor,
|
|
1068
1068
|
border: `1px solid ${ne.value}`,
|
|
1069
1069
|
zIndex: "4",
|
|
1070
|
-
top:
|
|
1070
|
+
top: ge.value && S.minimapCompact ? "calc(-100% - 12px)" : "-100%"
|
|
1071
1071
|
})
|
|
1072
|
-
},
|
|
1073
|
-
|
|
1072
|
+
}, ce(xe.value.left === xe.value.right ? xe.value.left : `${xe.value.left} - ${xe.value.right}`), 7)) : g("", !0),
|
|
1073
|
+
xe.value.right ? (n(), u("div", {
|
|
1074
1074
|
key: 5,
|
|
1075
1075
|
ref_key: "tooltipRight",
|
|
1076
1076
|
ref: Ot,
|
|
1077
1077
|
class: Ze({
|
|
1078
1078
|
"range-tooltip": !0,
|
|
1079
1079
|
"range-tooltip-visible": Vt.value,
|
|
1080
|
-
"range-tooltip-arrow":
|
|
1081
|
-
"range-tooltip-arrow-right":
|
|
1080
|
+
"range-tooltip-arrow": $e.value.arrowRight && !S.verticalHandles,
|
|
1081
|
+
"range-tooltip-arrow-right": !$e.value.arrowRight && !S.verticalHandles
|
|
1082
1082
|
}),
|
|
1083
1083
|
style: C({
|
|
1084
|
-
left:
|
|
1085
|
-
color: h(dt)(
|
|
1086
|
-
backgroundColor:
|
|
1084
|
+
left: $e.value.tooltipRight,
|
|
1085
|
+
color: h(dt)(S.selectColor),
|
|
1086
|
+
backgroundColor: S.selectColor,
|
|
1087
1087
|
border: `1px solid ${ne.value}`,
|
|
1088
1088
|
zIndex: "4",
|
|
1089
|
-
visibility: kt.value ||
|
|
1090
|
-
top:
|
|
1089
|
+
visibility: kt.value || xe.value.left === xe.value.right ? "hidden" : "visible",
|
|
1090
|
+
top: ge.value && S.minimapCompact ? "calc(-100% - 12px)" : "-100%"
|
|
1091
1091
|
})
|
|
1092
|
-
},
|
|
1092
|
+
}, ce(xe.value.right), 7)) : g("", !0)
|
|
1093
1093
|
], 544)
|
|
1094
1094
|
], 544));
|
|
1095
1095
|
}
|
|
1096
|
-
}, hu = /* @__PURE__ */ Lo(du, [["__scopeId", "data-v-
|
|
1096
|
+
}, hu = /* @__PURE__ */ Lo(du, [["__scopeId", "data-v-8840236b"]]), fu = ["id"], mu = ["id"], gu = ["viewBox", "aria-label"], xu = ["x", "y", "width", "height"], bu = { key: 1 }, yu = { class: "vue-ui-xy-grid" }, pu = ["stroke", "x1", "x2", "y1", "y2"], ku = ["stroke", "x1", "x2", "y1", "y2"], wu = { key: 1 }, Su = ["x1", "x2", "y1", "y2", "stroke"], $u = ["x1", "x2", "y1", "y2", "stroke"], _u = ["x1", "x2", "y1", "y2", "stroke"], Mu = { key: 3 }, Lu = ["d", "stroke"], Cu = { key: 4 }, Au = ["d", "stroke"], Tu = ["id"], zu = ["stop-color"], Iu = ["stop-color"], Nu = ["stop-color"], Pu = ["id"], Fu = ["stop-color"], Ru = ["stop-color"], Ou = ["stop-color"], Vu = ["id"], Bu = ["stop-color"], Eu = ["stop-color"], Hu = ["id"], Du = ["stop-color"], Wu = ["stop-color"], Xu = ["id"], Yu = ["stop-color"], Gu = ["stop-color"], qu = ["x", "y", "height", "width", "fill"], Uu = ["x", "y", "width"], Zu = { key: 0 }, Ku = ["x", "y", "height", "width", "fill"], Ju = ["x", "y", "height", "width", "rx", "fill", "stroke", "stroke-width"], Qu = ["x", "y", "height", "width", "rx", "fill", "stroke", "stroke-width"], ju = ["width", "x", "y"], ei = { key: 0 }, ti = ["id"], li = ["fill"], ai = ["x1", "x2", "y1", "y2", "stroke", "marker-end"], oi = ["x", "y", "font-size", "fill"], ni = ["stroke", "x1", "x2", "y1", "y2"], ui = { key: 3 }, ii = ["x1", "x2", "y1", "y2", "stroke", "stroke-width", "stroke-dasharray"], si = ["x", "y", "width", "height", "stroke", "stroke-width", "stroke-linecap", "stroke-linejoin", "stroke-dasharray"], ri = ["x1", "x2", "y1", "y2", "stroke", "stroke-width"], ci = ["fill", "font-size", "transform"], vi = ["x1", "x2", "y1", "y2", "stroke"], di = ["x", "y", "font-size", "fill"], hi = ["x1", "x2", "y1", "y2", "stroke"], fi = ["x", "y", "font-size", "fill"], mi = ["width", "x", "y"], gi = { style: { width: "100%" } }, xi = { key: 0 }, bi = ["id"], yi = ["fill"], pi = ["x1", "x2", "y1", "y2", "stroke", "marker-end"], ki = ["x", "y", "font-size", "fill"], wi = ["d", "stroke", "stroke-width", "stroke-dasharray"], Si = ["d", "stroke", "stroke-width", "stroke-dasharray"], $i = { key: 6 }, _i = { key: 7 }, Mi = ["d", "fill", "fill-opacity"], Li = { key: 0 }, Ci = ["d", "fill"], Ai = ["d", "fill"], Ti = ["d", "fill"], zi = ["d", "fill"], Ii = ["d", "stroke", "stroke-width", "stroke-dasharray"], Ni = ["d", "stroke", "stroke-width", "stroke-dasharray"], Pi = ["width", "x", "y"], Fi = { style: { width: "100%" } }, Ri = { key: 3 }, Oi = ["id"], Vi = ["fill"], Bi = ["x1", "x2", "y1", "y2", "stroke", "marker-end"], Ei = ["x", "y", "font-size", "fill"], Hi = { key: 8 }, Di = ["x", "y", "font-size", "fill"], Wi = ["x", "y", "font-size", "fill", "font-weight"], Xi = { key: 9 }, Yi = ["x", "y", "font-size", "fill"], Gi = { key: 10 }, qi = ["x", "y"], Ui = ["innerHTML"], Zi = ["x", "y"], Ki = ["innerHTML"], Ji = ["x1", "x2", "y1", "y2", "stroke"], Qi = { key: 11 }, ji = ["x", "y", "font-size", "fill"], es = { key: 12 }, ts = ["x", "y"], ls = ["innerHTML"], as = ["x", "y"], os = ["innerHTML"], ns = ["x1", "x2", "y1", "y2", "stroke"], us = ["x", "y", "font-size", "fill", "innerHTML"], is = ["x", "y", "font-size", "fill", "innerHTML"], ss = ["x", "y", "font-size", "fill", "innerHTML"], rs = ["x", "y", "font-size", "fill", "innerHTML"], cs = ["id"], vs = ["stop-color"], ds = ["stop-color"], hs = ["x", "y", "width", "height", "fill", "onMouseenter"], fs = ["font-size", "fill", "transform"], ms = ["x", "y", "font-size", "fill"], gs = ["text-anchor", "font-size", "fill", "transform", "onClick"], xs = ["text-anchor", "font-size", "fill", "transform", "innerHTML", "onClick"], bs = { key: 15 }, ys = ["x1", "y1", "x2", "y2", "stroke", "stroke-width", "stroke-dasharray"], ps = ["x1", "y1", "x2", "y2", "stroke", "stroke-width", "stroke-dasharray"], ks = ["y", "x", "width", "height", "fill"], ws = ["id", "x", "y", "font-size", "fill", "text-anchor"], Ss = {
|
|
1097
1097
|
key: 16,
|
|
1098
1098
|
style: { "pointer-events": "none" }
|
|
1099
1099
|
}, $s = ["x", "y"], _s = ["innerHTML"], Ms = ["cx", "cy", "r", "fill"], Ls = ["data-start", "data-end"], Cs = {
|
|
@@ -1158,8 +1158,8 @@ const _n = {
|
|
|
1158
1158
|
}
|
|
1159
1159
|
},
|
|
1160
1160
|
emits: ["selectTimeLabel", "selectX", "selectLegend"],
|
|
1161
|
-
setup(
|
|
1162
|
-
const d =
|
|
1161
|
+
setup(S, { expose: Sa, emit: $a }) {
|
|
1162
|
+
const d = S, Ne = Wt(() => import("./DataTable-xISHA7Pu.js")), ve = Wt(() => import("./Tooltip-Clf2K3CF.js")), me = Wt(() => import("./UserOptions-Bn3u4JQu.js")), ge = Wt(() => import("./BaseIcon-D2f9w5Z5.js")), Cl = Wt(() => import("./vue-ui-table-sparkline-D6oTAFEO.js")), $t = Wt(() => import("./PackageVersion-BB7joYAK.js")), Nt = Wt(() => import("./PenAndPaper-CtDMyIvW.js")), Kl = Wt(() => import("./BaseDraggableDialog-Bf6A6G_f.js")), qt = $a, gl = Go(), Ut = qo(), { vue_ui_xy: _t } = hn(), Be = y(null), Te = y(null), Ke = y(null), Le = y(null), ft = y(null), Mt = y(null), Al = y(null), Zt = y(null), Kt = y(null), $e = y(null), Tl = y(null), zl = y(null), mt = y(null), ne = y(null), Jl = y(0), E = y(null), Jt = y(!0), W = y(600), le = y(1e3), at = y("0 0 1000 600"), Ql = y({ x: 0, y: 0 }), Qt = y({ line: "line", bar: "bar", plot: "plot" }), Ee = y(!1), Pe = y(!1), xl = y(!1), ae = y(null), de = y([]), Z = y(ga()), Il = y(0), Nl = y(0), Pl = y(0), He = y(!0), gt = y(0), X = y(null), jl = y(!1), Fl = y(!0), bl = y(!0), _e = y(null), ot = y({}), jt = y(null), H = y(!1), Je = y(null), M = y(null), xt = x(() => ({
|
|
1163
1163
|
height: W.value,
|
|
1164
1164
|
width: le.value
|
|
1165
1165
|
}));
|
|
@@ -1182,19 +1182,19 @@ const _n = {
|
|
|
1182
1182
|
type: "datasetSerieAttribute",
|
|
1183
1183
|
property: "series (number[])",
|
|
1184
1184
|
index: s,
|
|
1185
|
-
debug:
|
|
1185
|
+
debug: Ct.value
|
|
1186
1186
|
});
|
|
1187
1187
|
});
|
|
1188
1188
|
});
|
|
1189
1189
|
function Ol() {
|
|
1190
1190
|
if (!Object.keys(d.config || {}).length)
|
|
1191
|
-
return
|
|
1191
|
+
return _t;
|
|
1192
1192
|
const l = Fa({
|
|
1193
1193
|
userConfig: d.config,
|
|
1194
|
-
defaultConfig:
|
|
1194
|
+
defaultConfig: _t
|
|
1195
1195
|
});
|
|
1196
1196
|
return d.config && Ue(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 && Ue(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 && Ue(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 && Ue(d.config, "chart.zoom.startIndex") ? l.chart.zoom.startIndex = d.config.chart.zoom.startIndex : l.chart.zoom.startIndex = null, d.config && Ue(d.config, "chart.zoom.endIndex") ? l.chart.zoom.endIndex = d.config.chart.zoom.endIndex : l.chart.zoom.endIndex = null, d.config && Ue(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 && Ue(d.config, "chart.annotations") && Array.isArray(d.config.chart.annotations) && d.config.chart.annotations.length ? l.chart.annotations = d.config.chart.annotations.map((s) => Fa({
|
|
1197
|
-
defaultConfig:
|
|
1197
|
+
defaultConfig: _t.chart.annotations[0],
|
|
1198
1198
|
userConfig: s
|
|
1199
1199
|
})) : l.chart.annotations = [], d.config && Ue(d.config, "chart.grid.position") && d.config.chart.grid.position === "start" && d.dataset.length && d.dataset.some((s) => s.type === "bar") && (l.chart.grid.position = "middle", Ue(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 && Ue(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 && Ue(d.config, "events.datapointEnter") ? l.events.datapointEnter = d.config.events.datapointEnter : l.events.datapointEnter = null, d.config && Ue(d.config, "events.datapointLeave") ? l.events.datapointLeave = d.config.events.datapointLeave : l.events.datapointLeave = null, d.config && Ue(d.config, "events.datapointClick") ? l.events.datapointClick = d.config.events.datapointClick : l.events.datapointClick = null, l.theme ? {
|
|
1200
1200
|
...Fa({
|
|
@@ -1204,7 +1204,7 @@ const _n = {
|
|
|
1204
1204
|
customPalette: sn[l.theme] || d.palette
|
|
1205
1205
|
} : l;
|
|
1206
1206
|
}
|
|
1207
|
-
const
|
|
1207
|
+
const Lt = x({
|
|
1208
1208
|
get() {
|
|
1209
1209
|
return !!d.dataset && d.dataset.length;
|
|
1210
1210
|
},
|
|
@@ -1227,7 +1227,7 @@ const _n = {
|
|
|
1227
1227
|
useIndividualScale: t.value.chart.grid.labels.yAxis.useIndividualScale
|
|
1228
1228
|
}, el.value = !0);
|
|
1229
1229
|
}
|
|
1230
|
-
const
|
|
1230
|
+
const Ct = x(() => !!t.value.debug), { loading: be, FINAL_DATASET: Me, manualLoading: bt } = mn({
|
|
1231
1231
|
...Uo(d),
|
|
1232
1232
|
FINAL_CONFIG: t,
|
|
1233
1233
|
prepareConfig: Ol,
|
|
@@ -1320,16 +1320,16 @@ const _n = {
|
|
|
1320
1320
|
};
|
|
1321
1321
|
}
|
|
1322
1322
|
const Ft = _a((l, s) => Pa({ data: l, threshold: s })), yt = (l) => Ft(l, t.value.downsample.threshold), Qe = x({
|
|
1323
|
-
get: () => Math.max(...
|
|
1323
|
+
get: () => Math.max(...Me.value.map((l) => yt(l.series).length)),
|
|
1324
1324
|
set: (l) => l
|
|
1325
1325
|
}), w = y({ start: 0, end: Qe.value }), We = y({ start: 0, end: Qe.value }), ea = x(() => t.value.chart.zoom.preview.enable && (We.value.start !== w.value.start || We.value.end !== w.value.end));
|
|
1326
1326
|
function Vl(l, s) {
|
|
1327
1327
|
We.value[l] = s;
|
|
1328
1328
|
}
|
|
1329
|
-
function
|
|
1329
|
+
function At() {
|
|
1330
1330
|
const l = Math.max(
|
|
1331
1331
|
1,
|
|
1332
|
-
...
|
|
1332
|
+
...Me.value.map((i) => yt(i.series).length)
|
|
1333
1333
|
);
|
|
1334
1334
|
let s = Math.max(0, Math.min(w.value.start ?? 0, l - 1)), e = Math.max(s + 1, Math.min(w.value.end ?? l, l));
|
|
1335
1335
|
(!Number.isFinite(s) || !Number.isFinite(e) || e <= s) && (s = 0, e = l), w.value = { start: s, end: e }, We.value.start = s, We.value.end = e, Ke.value && (Ke.value.setStartValue(s), Ke.value.setEndValue(e));
|
|
@@ -1369,14 +1369,14 @@ const _n = {
|
|
|
1369
1369
|
}), pt = y(!1), ll = x(() => en(t.value.customPalette)), Rt = x(() => {
|
|
1370
1370
|
if (t.value.chart.grid.labels.yAxis.scaleMin !== null)
|
|
1371
1371
|
return t.value.chart.grid.labels.yAxis.scaleMin;
|
|
1372
|
-
const l = Math.min(...je.value.filter((s) => !
|
|
1372
|
+
const l = Math.min(...je.value.filter((s) => !de.value.includes(s.id)).map((s) => Math.min(...s.series)));
|
|
1373
1373
|
return l > 0 ? 0 : l;
|
|
1374
1374
|
}), al = x(() => {
|
|
1375
1375
|
if (t.value.chart.grid.labels.yAxis.scaleMax)
|
|
1376
1376
|
return t.value.chart.grid.labels.yAxis.scaleMax;
|
|
1377
|
-
const l = Math.max(...je.value.filter((s) => !
|
|
1377
|
+
const l = Math.max(...je.value.filter((s) => !de.value.includes(s.id)).map((s) => Math.max(...s.series)));
|
|
1378
1378
|
return Rt.value === l ? l + 1 : l;
|
|
1379
|
-
}), Xe = x(() => t.value.chart.grid.labels.yAxis.useNiceScale ? Ul(Rt.value, al.value < 0 ? 0 : al.value, t.value.chart.grid.labels.yAxis.commonScaleSteps) : hl(Rt.value, al.value < 0 ? 0 : al.value, t.value.chart.grid.labels.yAxis.commonScaleSteps)), ol = x(() => [null, void 0].includes(t.value.chart.grid.labels.yAxis.scaleMin) ? Xe.value.min >= 0 ? 0 : Math.abs(Xe.value.min) : -Xe.value.min), je = x(() => Jt.value ?
|
|
1379
|
+
}), Xe = x(() => t.value.chart.grid.labels.yAxis.useNiceScale ? Ul(Rt.value, al.value < 0 ? 0 : al.value, t.value.chart.grid.labels.yAxis.commonScaleSteps) : hl(Rt.value, al.value < 0 ? 0 : al.value, t.value.chart.grid.labels.yAxis.commonScaleSteps)), ol = x(() => [null, void 0].includes(t.value.chart.grid.labels.yAxis.scaleMin) ? Xe.value.min >= 0 ? 0 : Math.abs(Xe.value.min) : -Xe.value.min), je = x(() => Jt.value ? Me.value.map((l, s) => {
|
|
1380
1380
|
const e = yt(l.series), i = `uniqueId_${s}`;
|
|
1381
1381
|
return {
|
|
1382
1382
|
...l,
|
|
@@ -1386,18 +1386,18 @@ const _n = {
|
|
|
1386
1386
|
id: i,
|
|
1387
1387
|
scaleLabel: l.scaleLabel || i
|
|
1388
1388
|
};
|
|
1389
|
-
}) :
|
|
1389
|
+
}) : Me.value), et = x(() => je.value.map((l, s) => ({
|
|
1390
1390
|
absoluteIndex: s,
|
|
1391
1391
|
...l,
|
|
1392
1392
|
series: l.series.map((e) => e + ol.value),
|
|
1393
1393
|
absoluteValues: l.series,
|
|
1394
1394
|
segregate: () => Ga(l),
|
|
1395
|
-
isSegregated:
|
|
1395
|
+
isSegregated: de.value.includes(l.id)
|
|
1396
1396
|
}))), Fe = x(() => je.value.map((l, s) => ({
|
|
1397
1397
|
...l,
|
|
1398
1398
|
series: l.series.map((e) => e + ol.value),
|
|
1399
1399
|
absoluteValues: l.series
|
|
1400
|
-
})).filter((l) => !
|
|
1400
|
+
})).filter((l) => !de.value.includes(l.id)));
|
|
1401
1401
|
function ta() {
|
|
1402
1402
|
let l = 0;
|
|
1403
1403
|
Tl.value && (l = Array.from(Tl.value.querySelectorAll("text")).reduce((a, r) => {
|
|
@@ -1411,7 +1411,7 @@ const _n = {
|
|
|
1411
1411
|
tt.value = l;
|
|
1412
1412
|
}, 100);
|
|
1413
1413
|
go((l) => {
|
|
1414
|
-
const s =
|
|
1414
|
+
const s = $e.value;
|
|
1415
1415
|
if (!s) return;
|
|
1416
1416
|
const e = new ResizeObserver((i) => {
|
|
1417
1417
|
nl(i[0].contentRect.height);
|
|
@@ -1424,17 +1424,17 @@ const _n = {
|
|
|
1424
1424
|
let l = 0;
|
|
1425
1425
|
Zt.value && (l = Zt.value.getBBox().height);
|
|
1426
1426
|
let s = 0;
|
|
1427
|
-
return
|
|
1428
|
-
}), yl = x(() =>
|
|
1427
|
+
return $e.value && (s = tt.value), l + s + A.value.xAxis;
|
|
1428
|
+
}), yl = x(() => Me.value.some((l) => l.useProgression)), c = x(() => {
|
|
1429
1429
|
let l = 0;
|
|
1430
1430
|
const s = 36;
|
|
1431
|
-
t.value.chart.grid.labels.show && (p.value.useIndividualScale && !p.value.isStacked ? l = (
|
|
1431
|
+
t.value.chart.grid.labels.show && (p.value.useIndividualScale && !p.value.isStacked ? l = (Me.value.length - de.value.length) * (t.value.chart.grid.labels.yAxis.labelWidth + s) : p.value.useIndividualScale && p.value.isStacked ? l = t.value.chart.grid.labels.yAxis.labelWidth + s : l = ta());
|
|
1432
1432
|
const e = t.value.chart.labels.fontSize * 1.1, i = yl.value ? 24 : 6;
|
|
1433
|
-
if (
|
|
1434
|
-
const o =
|
|
1433
|
+
if ($e.value) {
|
|
1434
|
+
const o = $e.value.getBBox().x;
|
|
1435
1435
|
o < 0 && (l += Math.abs(o));
|
|
1436
1436
|
}
|
|
1437
|
-
const a = le.value - l - t.value.chart.grid.labels.yAxis.crosshairSize - i - t.value.chart.padding.left - t.value.chart.padding.right, r = t.value.chart.grid.position === "middle" ? 0 : a /
|
|
1437
|
+
const a = le.value - l - t.value.chart.grid.labels.yAxis.crosshairSize - i - t.value.chart.padding.left - t.value.chart.padding.right, r = t.value.chart.grid.position === "middle" ? 0 : a / $.value / 2;
|
|
1438
1438
|
return {
|
|
1439
1439
|
top: t.value.chart.padding.top + e,
|
|
1440
1440
|
right: le.value - i - t.value.chart.padding.right,
|
|
@@ -1446,14 +1446,14 @@ const _n = {
|
|
|
1446
1446
|
individualOffsetX: s
|
|
1447
1447
|
};
|
|
1448
1448
|
}), Vt = x(() => {
|
|
1449
|
-
const l = t.value.chart.grid.position === "middle" ? 1 : 0, s =
|
|
1449
|
+
const l = t.value.chart.grid.position === "middle" ? 1 : 0, s = $.value + l, e = j(c.value.top), i = j(c.value.bottom);
|
|
1450
1450
|
return Array.from({ length: s }).map((a, r) => {
|
|
1451
|
-
const o = c.value.width /
|
|
1451
|
+
const o = c.value.width / $.value * r + c.value.left + ue.value;
|
|
1452
1452
|
return `M${o},${e} L${o},${i}`;
|
|
1453
1453
|
}).join(" ");
|
|
1454
1454
|
}), El = x(() => {
|
|
1455
1455
|
if (!t.value.chart.grid.labels.xAxis.showCrosshairs) return "";
|
|
1456
|
-
const l = c.value.width /
|
|
1456
|
+
const l = c.value.width / $.value, s = t.value.chart.grid.labels.xAxis.crosshairSize, e = t.value.chart.grid.labels.xAxis.crosshairsAlwaysAtZero;
|
|
1457
1457
|
return D.value.map((i, a) => {
|
|
1458
1458
|
if (!i || !i.text) return null;
|
|
1459
1459
|
const r = c.value.left + l * a + l / 2, o = e ? ze.value - (ze.value === c.value.bottom ? 0 : s / 2) : c.value.bottom, F = e ? ze.value + s / (ze.value === c.value.bottom ? 1 : 2) : c.value.bottom + s;
|
|
@@ -1478,14 +1478,14 @@ const _n = {
|
|
|
1478
1478
|
e && (ot.value[`${l}_${s}_${i}_${a}`] = e);
|
|
1479
1479
|
}
|
|
1480
1480
|
const Bt = y(!1);
|
|
1481
|
-
async function
|
|
1481
|
+
async function xe(l = !1) {
|
|
1482
1482
|
await Ml(), Bt.value = l, jl.value && (bl.value = l);
|
|
1483
1483
|
}
|
|
1484
1484
|
function Dl() {
|
|
1485
1485
|
Ee.value = !Ee.value;
|
|
1486
1486
|
}
|
|
1487
1487
|
const v = x(() => {
|
|
1488
|
-
const l = Math.max(...
|
|
1488
|
+
const l = Math.max(...Me.value.map((s) => Pa({ data: s.series, threshold: t.value.downsample.threshold }).length));
|
|
1489
1489
|
return Mo({
|
|
1490
1490
|
values: t.value.chart.grid.labels.xAxisLabels.values,
|
|
1491
1491
|
maxDatapoints: l,
|
|
@@ -1494,7 +1494,7 @@ const _n = {
|
|
|
1494
1494
|
end: w.value.end
|
|
1495
1495
|
});
|
|
1496
1496
|
}), m = x(() => {
|
|
1497
|
-
const l = Math.max(...
|
|
1497
|
+
const l = Math.max(...Me.value.map((s) => Pa({ data: s.series, threshold: t.value.downsample.threshold }).length));
|
|
1498
1498
|
return Mo({
|
|
1499
1499
|
values: t.value.chart.grid.labels.xAxisLabels.values,
|
|
1500
1500
|
maxDatapoints: l,
|
|
@@ -1515,7 +1515,7 @@ const _n = {
|
|
|
1515
1515
|
}
|
|
1516
1516
|
const T = _((l, s, e, i, a, r, o, F) => {
|
|
1517
1517
|
if (l)
|
|
1518
|
-
return i.length <= 2 ? i.map((B,
|
|
1518
|
+
return i.length <= 2 ? i.map((B, re) => ({ text: B, absoluteIndex: re })) : i.map((B, re) => ({ text: re === 0 || re === i.length - 1 || o != null && re === o ? B : "", absoluteIndex: re }));
|
|
1519
1519
|
if (!s)
|
|
1520
1520
|
return i.map((Y, B) => ({ text: Y, absoluteIndex: B }));
|
|
1521
1521
|
const R = Math.max(1, e || 1);
|
|
@@ -1525,31 +1525,31 @@ const _n = {
|
|
|
1525
1525
|
for (let Y = 0; Y < i.length; Y += 1) {
|
|
1526
1526
|
const B = i[Y] ?? "";
|
|
1527
1527
|
if (!B) continue;
|
|
1528
|
-
const
|
|
1529
|
-
B !==
|
|
1528
|
+
const re = r + Y - 1 >= 0 ? a[r + Y - 1] ?? "" : null;
|
|
1529
|
+
B !== re && O.push(Y);
|
|
1530
1530
|
}
|
|
1531
1531
|
if (!O.length)
|
|
1532
1532
|
return i.map((Y, B) => ({ text: "", absoluteIndex: B }));
|
|
1533
1533
|
const z = O.length, N = R, ee = Math.max(2, Math.min(N - 3, z)), I = Math.min(z, N + 3);
|
|
1534
1534
|
let q = Math.min(N, z), V = 1 / 0;
|
|
1535
1535
|
for (let Y = ee; Y <= I; Y += 1) {
|
|
1536
|
-
const B = (z - 1) % (Y - 1),
|
|
1536
|
+
const B = (z - 1) % (Y - 1), re = Math.abs(Y - N), Oe = B * 10 + re;
|
|
1537
1537
|
Oe < V && (V = Oe, q = Y);
|
|
1538
1538
|
}
|
|
1539
|
-
const
|
|
1539
|
+
const fe = /* @__PURE__ */ new Set();
|
|
1540
1540
|
if (q <= 1)
|
|
1541
|
-
|
|
1541
|
+
fe.add(O[Math.round((z - 1) / 2)]);
|
|
1542
1542
|
else {
|
|
1543
1543
|
const Y = (z - 1) / (q - 1);
|
|
1544
1544
|
for (let B = 0; B < q; B += 1)
|
|
1545
|
-
|
|
1545
|
+
fe.add(O[Math.round(B * Y)]);
|
|
1546
1546
|
}
|
|
1547
1547
|
return i.map((Y, B) => ({
|
|
1548
|
-
text:
|
|
1548
|
+
text: fe.has(B) ? Y : "",
|
|
1549
1549
|
absoluteIndex: B
|
|
1550
1550
|
}));
|
|
1551
1551
|
}), D = x(() => {
|
|
1552
|
-
const l = t.value.chart.grid.labels.xAxisLabels, s = v.value || [], e = m.value || [], i = w.value.start ?? 0, a = M.value, r =
|
|
1552
|
+
const l = t.value.chart.grid.labels.xAxisLabels, s = v.value || [], e = m.value || [], i = w.value.start ?? 0, a = M.value, r = $.value, o = s.map((R) => R?.text ?? ""), F = e.map((R) => R?.text ?? "");
|
|
1553
1553
|
return T(
|
|
1554
1554
|
!!l.showOnlyFirstAndLast,
|
|
1555
1555
|
!!l.showOnlyAtModulo,
|
|
@@ -1561,7 +1561,7 @@ const _n = {
|
|
|
1561
1561
|
r
|
|
1562
1562
|
);
|
|
1563
1563
|
});
|
|
1564
|
-
function
|
|
1564
|
+
function we(l, s) {
|
|
1565
1565
|
const e = Fe.value.map((i) => ({
|
|
1566
1566
|
shape: i.shape || null,
|
|
1567
1567
|
name: i.name,
|
|
@@ -1578,7 +1578,7 @@ const _n = {
|
|
|
1578
1578
|
label: l.text
|
|
1579
1579
|
});
|
|
1580
1580
|
}
|
|
1581
|
-
const
|
|
1581
|
+
const $ = x(() => {
|
|
1582
1582
|
const l = Rl((w.value.end ?? 0) - (w.value.start ?? 0));
|
|
1583
1583
|
return Math.max(1, l);
|
|
1584
1584
|
});
|
|
@@ -1589,39 +1589,39 @@ const _n = {
|
|
|
1589
1589
|
p.value.isStacked = !p.value.isStacked, p.value.isStacked ? p.value.useIndividualScale = !0 : p.value.useIndividualScale = t.value.chart.grid.labels.yAxis.useIndividualScale;
|
|
1590
1590
|
}
|
|
1591
1591
|
function Et(l) {
|
|
1592
|
-
|
|
1592
|
+
Ct.value && l.autoScaling && (t.value.chart.grid.labels.yAxis.useIndividualScale || console.warn(`VueUiXy (datapoint: ${l.name}) : autoScaling only works when config.chart.grid.labels.yAxis.useIndividualScale is set to true`), t.value.chart.grid.labels.yAxis.stacked || console.warn(`VueUiXy (datapoint: ${l.name}) : autoScaling only works when config.chart.grid.labels.yAxis.stacked is set to true`));
|
|
1593
1593
|
}
|
|
1594
|
-
function
|
|
1594
|
+
function Tt(l, s) {
|
|
1595
1595
|
const e = Rl(l), i = Array(e).fill(0);
|
|
1596
1596
|
for (let a = 0; a < s.length && a < e; a += 1) i[a] = s[a] ?? 0;
|
|
1597
1597
|
return i;
|
|
1598
1598
|
}
|
|
1599
1599
|
function aa(l) {
|
|
1600
|
-
const s = Math.max(...
|
|
1600
|
+
const s = Math.max(...Me.value.map((e) => yt(e.series).length));
|
|
1601
1601
|
return l > s ? s : l < 0 || t.value.chart.zoom.startIndex !== null && l < t.value.chart.zoom.startIndex ? t.value.chart.zoom.startIndex !== null ? t.value.chart.zoom.startIndex + 1 : 1 : l;
|
|
1602
1602
|
}
|
|
1603
|
-
const ul = y(!1),
|
|
1603
|
+
const ul = y(!1), se = y(!1);
|
|
1604
1604
|
function il() {
|
|
1605
1605
|
if (!ul.value) {
|
|
1606
1606
|
ul.value = !0;
|
|
1607
1607
|
try {
|
|
1608
|
-
const { startIndex: l, endIndex: s } = t.value.chart.zoom, e = Math.max(...
|
|
1609
|
-
|
|
1608
|
+
const { startIndex: l, endIndex: s } = t.value.chart.zoom, e = Math.max(...Me.value.map((r) => yt(r.series).length)), i = l ?? 0, a = s != null ? Math.min(aa(s + 1), e) : e;
|
|
1609
|
+
wt.value = !0, w.value.start = i, w.value.end = a, We.value.start = i, We.value.end = a, At(), se.value = !0;
|
|
1610
1610
|
} finally {
|
|
1611
1611
|
queueMicrotask(() => {
|
|
1612
|
-
|
|
1612
|
+
wt.value = !1;
|
|
1613
1613
|
}), ul.value = !1;
|
|
1614
1614
|
}
|
|
1615
1615
|
}
|
|
1616
1616
|
}
|
|
1617
|
-
const
|
|
1617
|
+
const wt = y(!1);
|
|
1618
1618
|
function oa(l) {
|
|
1619
|
-
ul.value ||
|
|
1619
|
+
ul.value || wt.value || l !== w.value.start && (w.value.start = l, We.value.start = l, At());
|
|
1620
1620
|
}
|
|
1621
1621
|
function La(l) {
|
|
1622
|
-
if (ul.value ||
|
|
1622
|
+
if (ul.value || wt.value) return;
|
|
1623
1623
|
const s = aa(l);
|
|
1624
|
-
s !== w.value.end && (w.value.end = s, We.value.end = s,
|
|
1624
|
+
s !== w.value.end && (w.value.end = s, We.value.end = s, At());
|
|
1625
1625
|
}
|
|
1626
1626
|
async function Ca() {
|
|
1627
1627
|
await il();
|
|
@@ -1641,8 +1641,8 @@ const _n = {
|
|
|
1641
1641
|
function Ea(l) {
|
|
1642
1642
|
return l.value >= 0 ? U(l.zeroPosition - l.y <= 0 ? 1e-5 : l.zeroPosition - l.y) : U(l.y - l.zeroPosition <= 0 ? 1e-5 : l.zeroPosition - l.y);
|
|
1643
1643
|
}
|
|
1644
|
-
const
|
|
1645
|
-
const l = Math.max(1,
|
|
1644
|
+
const he = x(() => {
|
|
1645
|
+
const l = Math.max(1, $.value), s = Math.max(1, c.value.width), e = Math.max(1, je.value.filter((i) => i.type === "bar" && !de.value.includes(i.id)).length);
|
|
1646
1646
|
return {
|
|
1647
1647
|
bar: Pt(s, l * e, 1),
|
|
1648
1648
|
plot: Pt(s, l, 1),
|
|
@@ -1650,10 +1650,10 @@ const _n = {
|
|
|
1650
1650
|
};
|
|
1651
1651
|
});
|
|
1652
1652
|
function wl() {
|
|
1653
|
-
return p.value.useIndividualScale && p.value.isStacked ?
|
|
1653
|
+
return p.value.useIndividualScale && p.value.isStacked ? he.value.line - c.value.width / $.value * 0.1 : he.value.bar;
|
|
1654
1654
|
}
|
|
1655
1655
|
function na(l) {
|
|
1656
|
-
return p.value.useIndividualScale && p.value.isStacked ? l.x + c.value.width /
|
|
1656
|
+
return p.value.useIndividualScale && p.value.isStacked ? l.x + c.value.width / $.value * 0.05 : l.x + he.value.bar / 2;
|
|
1657
1657
|
}
|
|
1658
1658
|
function Ha(l) {
|
|
1659
1659
|
return l.value >= 0 ? l.y : [null, void 0, NaN, 1 / 0, -1 / 0].includes(ze.value) ? c.bottom.value : ze.value;
|
|
@@ -1663,7 +1663,7 @@ const _n = {
|
|
|
1663
1663
|
}
|
|
1664
1664
|
const Wl = y(null);
|
|
1665
1665
|
function Wa(l) {
|
|
1666
|
-
const s =
|
|
1666
|
+
const s = _e.value;
|
|
1667
1667
|
if (!s) return null;
|
|
1668
1668
|
if (s.createSVGPoint && s.getScreenCTM) {
|
|
1669
1669
|
const N = s.createSVGPoint();
|
|
@@ -1682,7 +1682,7 @@ const _n = {
|
|
|
1682
1682
|
Ee.value || (rl && cancelAnimationFrame(rl), rl = requestAnimationFrame(() => {
|
|
1683
1683
|
rl = 0;
|
|
1684
1684
|
const s = Wa(l);
|
|
1685
|
-
if (!s ||
|
|
1685
|
+
if (!s || !_e.value) {
|
|
1686
1686
|
ua();
|
|
1687
1687
|
return;
|
|
1688
1688
|
}
|
|
@@ -1691,8 +1691,8 @@ const _n = {
|
|
|
1691
1691
|
ua();
|
|
1692
1692
|
return;
|
|
1693
1693
|
}
|
|
1694
|
-
const F = s.x - e, R = o /
|
|
1695
|
-
O >= 0 && O <
|
|
1694
|
+
const F = s.x - e, R = o / $.value, O = Math.floor(F / R);
|
|
1695
|
+
O >= 0 && O < $.value ? Wl.value !== O && (Wl.value = O, to(!0, O)) : ua();
|
|
1696
1696
|
}));
|
|
1697
1697
|
}
|
|
1698
1698
|
function ua() {
|
|
@@ -1700,11 +1700,11 @@ const _n = {
|
|
|
1700
1700
|
}
|
|
1701
1701
|
function Xa(l) {
|
|
1702
1702
|
const s = Wa(l);
|
|
1703
|
-
if (s &&
|
|
1703
|
+
if (s && _e.value) {
|
|
1704
1704
|
const { left: e, right: i, top: a, bottom: r, width: o } = c.value;
|
|
1705
1705
|
if (s.x >= e && s.x <= i && s.y >= a && s.y <= r) {
|
|
1706
|
-
const F = o / Math.max(1,
|
|
1707
|
-
if (R >= 0 && R <
|
|
1706
|
+
const F = o / Math.max(1, $.value), R = Math.floor((s.x - e) / F);
|
|
1707
|
+
if (R >= 0 && R < $.value) {
|
|
1708
1708
|
Ya(R);
|
|
1709
1709
|
return;
|
|
1710
1710
|
}
|
|
@@ -1749,11 +1749,11 @@ const _n = {
|
|
|
1749
1749
|
};
|
|
1750
1750
|
}
|
|
1751
1751
|
function Ga(l) {
|
|
1752
|
-
if (
|
|
1753
|
-
|
|
1752
|
+
if (de.value.includes(l.id))
|
|
1753
|
+
de.value = de.value.filter((s) => s !== l.id);
|
|
1754
1754
|
else {
|
|
1755
|
-
if (
|
|
1756
|
-
|
|
1755
|
+
if (de.value.length + 1 === je.value.length) return;
|
|
1756
|
+
de.value.push(l.id);
|
|
1757
1757
|
}
|
|
1758
1758
|
qt("selectLegend", Fe.value.map((s) => ({
|
|
1759
1759
|
name: s.name,
|
|
@@ -1766,7 +1766,7 @@ const _n = {
|
|
|
1766
1766
|
const l = t.value.chart.title.text || "Chart visualization", s = t.value.chart.title.subtitle.text || "";
|
|
1767
1767
|
return `${l}. ${s}`;
|
|
1768
1768
|
}), qa = x(() => ({
|
|
1769
|
-
linePlot:
|
|
1769
|
+
linePlot: $.value > t.value.line.dot.hideAboveMaxSerieLength
|
|
1770
1770
|
})), Io = x(() => t.value.chart.userOptions.show && (!t.value.chart.title.show || !t.value.chart.title.text)), No = x(() => {
|
|
1771
1771
|
if (Array.isArray(t.value.chart.highlightArea))
|
|
1772
1772
|
return t.value.chart.highlightArea.map((s) => {
|
|
@@ -1781,18 +1781,18 @@ const _n = {
|
|
|
1781
1781
|
to: Math.min(t.value.chart.highlightArea.to, Qe.value - 1)
|
|
1782
1782
|
};
|
|
1783
1783
|
return [{ ...l, span: l.from === l.to ? 1 : l.to < l.from ? 0 : l.to - l.from + 1 }];
|
|
1784
|
-
}), Ua = x(() => Jt.value ?
|
|
1784
|
+
}), Ua = x(() => Jt.value ? Me.value.map((l, s) => ({
|
|
1785
1785
|
...l,
|
|
1786
1786
|
series: yt(l.series),
|
|
1787
1787
|
id: `uniqueId_${s}`,
|
|
1788
1788
|
color: po(l.color ? l.color : ll.value[s] ? ll.value[s] : ko[s])
|
|
1789
|
-
})) :
|
|
1789
|
+
})) : Me.value), Po = x(() => Fe.value.map((l) => {
|
|
1790
1790
|
const s = l.absoluteValues.map((e) => [void 0, null].includes(e) ? 0 : e);
|
|
1791
1791
|
return {
|
|
1792
1792
|
id: l.id,
|
|
1793
1793
|
name: l.name,
|
|
1794
1794
|
color: l.color,
|
|
1795
|
-
values:
|
|
1795
|
+
values: Tt($.value, s)
|
|
1796
1796
|
};
|
|
1797
1797
|
})), Fo = x(() => ({
|
|
1798
1798
|
responsiveBreakpoint: t.value.table.responsiveBreakpoint,
|
|
@@ -1820,7 +1820,7 @@ const _n = {
|
|
|
1820
1820
|
sparkline: {
|
|
1821
1821
|
animation: { show: !1 }
|
|
1822
1822
|
}
|
|
1823
|
-
})), ue = x(() => t.value.chart.grid.position === "middle" ? 0 : c.value.width /
|
|
1823
|
+
})), ue = x(() => t.value.chart.grid.position === "middle" ? 0 : c.value.width / $.value / 2), cl = x(() => tn(et.value.filter((l) => !de.value.includes(l.id)))), P = x(() => {
|
|
1824
1824
|
const l = Object.groupBy(cl.value, (e) => e.scaleLabel), s = {};
|
|
1825
1825
|
for (const [e, i] of Object.entries(l)) {
|
|
1826
1826
|
const a = i.flatMap((r) => r.absoluteValues);
|
|
@@ -1832,18 +1832,18 @@ const _n = {
|
|
|
1832
1832
|
}
|
|
1833
1833
|
return s;
|
|
1834
1834
|
}), Ro = x(() => {
|
|
1835
|
-
const l = je.value.filter((s) => s.type === "bar").filter((s) => !
|
|
1836
|
-
return c.value.width /
|
|
1837
|
-
}), ia = x(() =>
|
|
1835
|
+
const l = je.value.filter((s) => s.type === "bar").filter((s) => !de.value.includes(s.id)).length;
|
|
1836
|
+
return c.value.width / $.value / l - ia.value * l;
|
|
1837
|
+
}), ia = x(() => he.value.line * t.value.bar.periodGap), sa = x(() => Math.max(1e-5, wl() - (p.value.useIndividualScale && p.value.isStacked ? 0 : ia.value))), ra = x(() => sa.value * Math.min(Math.abs(t.value.bar.innerGap), 0.95)), Oo = x(() => {
|
|
1838
1838
|
if (!t.value.chart.zoom.minimap.show) return [];
|
|
1839
|
-
const l = Ua.value.filter((a) => !
|
|
1839
|
+
const l = Ua.value.filter((a) => !de.value.includes(a.id)), s = Math.max(...l.map((a) => a.series.length)), e = [];
|
|
1840
1840
|
for (let a = 0; a < s; a += 1)
|
|
1841
1841
|
e.push(l.map((r) => r.series[a] || 0).reduce((r, o) => (r || 0) + (o || 0), 0));
|
|
1842
1842
|
const i = Math.min(...e);
|
|
1843
1843
|
return e.map((a) => a + (i < 0 ? Math.abs(i) : 0));
|
|
1844
1844
|
}), Vo = x(() => t.value.chart.zoom.minimap.show ? Ua.value.map((s) => ({
|
|
1845
1845
|
...s,
|
|
1846
|
-
isVisible: !
|
|
1846
|
+
isVisible: !de.value.includes(s.id)
|
|
1847
1847
|
})) : []), zt = x(() => Fe.value.map((l) => ({
|
|
1848
1848
|
slotAbsoluteIndex: l.slotAbsoluteIndex,
|
|
1849
1849
|
shape: l.shape || null,
|
|
@@ -1871,19 +1871,19 @@ const _n = {
|
|
|
1871
1871
|
return a - N * r;
|
|
1872
1872
|
};
|
|
1873
1873
|
return s.map((z) => {
|
|
1874
|
-
const { yAxis: { yTop: N, yBottom: ee, label: I } } = z, q = N != null && ee != null && N !== ee, V = N == null ? null : O(N),
|
|
1874
|
+
const { yAxis: { yTop: N, yBottom: ee, label: I } } = z, q = N != null && ee != null && N !== ee, V = N == null ? null : O(N), fe = ee == null ? null : O(ee), Y = la(I.fontSize);
|
|
1875
1875
|
Y.font = `${I.fontSize}px sans-serif`;
|
|
1876
|
-
const B = Y.measureText(I.text).width,
|
|
1876
|
+
const B = Y.measureText(I.text).width, re = I.fontSize, Oe = (I.position === "start" ? e + I.padding.left : i - I.padding.right) + I.offsetX, Ge = (V != null && fe != null ? Math.min(V, fe) : V ?? fe) - I.fontSize / 3 + I.offsetY - I.padding.top;
|
|
1877
1877
|
let J;
|
|
1878
1878
|
I.textAnchor === "middle" ? J = Oe - B / 2 - I.padding.left : I.textAnchor === "end" ? J = Oe - B - I.padding.right : J = Oe - I.padding.left;
|
|
1879
|
-
const Q = Ge -
|
|
1879
|
+
const Q = Ge - re * 0.75 - I.padding.top;
|
|
1880
1880
|
return {
|
|
1881
|
-
show: ![V,
|
|
1881
|
+
show: ![V, fe, Q].includes(NaN),
|
|
1882
1882
|
id: `annotation_y_${ga()}`,
|
|
1883
1883
|
hasArea: q,
|
|
1884
|
-
areaHeight: q ? Math.abs(V -
|
|
1884
|
+
areaHeight: q ? Math.abs(V - fe) : 0,
|
|
1885
1885
|
yTop: V,
|
|
1886
|
-
yBottom:
|
|
1886
|
+
yBottom: fe,
|
|
1887
1887
|
config: z.yAxis,
|
|
1888
1888
|
x1: e,
|
|
1889
1889
|
x2: i,
|
|
@@ -1892,7 +1892,7 @@ const _n = {
|
|
|
1892
1892
|
x: J,
|
|
1893
1893
|
y: Q,
|
|
1894
1894
|
width: B + I.padding.left + I.padding.right,
|
|
1895
|
-
height:
|
|
1895
|
+
height: re + I.padding.top + I.padding.bottom,
|
|
1896
1896
|
fill: I.backgroundColor,
|
|
1897
1897
|
stroke: I.border.stroke,
|
|
1898
1898
|
rx: I.border.rx,
|
|
@@ -1919,55 +1919,55 @@ const _n = {
|
|
|
1919
1919
|
}, N = {
|
|
1920
1920
|
max: o.scaleMax || Math.max(...o.absoluteValues) || 1,
|
|
1921
1921
|
min: o.scaleMin || Math.min(...o.absoluteValues.filter((K) => ![void 0, null].includes(K))) > 0 ? 0 : Math.min(...o.absoluteValues.filter((K) => ![null, void 0].includes(K)))
|
|
1922
|
-
}, ee = o.scaleSteps || t.value.chart.grid.labels.yAxis.commonScaleSteps, I = 1.0000001, q = t.value.chart.grid.labels.yAxis.useNiceScale ? Ul(N.min, N.max === N.min ? N.max * I : N.max, ee) : hl(N.min, N.max === N.min ? N.max * I : N.max, ee), V = t.value.chart.grid.labels.yAxis.useNiceScale ? Ul(z.valueMin, z.valueMax === z.valueMin ? z.valueMax * I : z.valueMax, ee) : hl(z.valueMin, z.valueMax === z.valueMin ? z.valueMax * I : z.valueMax, ee),
|
|
1923
|
-
const Dt = p.value.useIndividualScale ? (o.absoluteValues[
|
|
1922
|
+
}, ee = o.scaleSteps || t.value.chart.grid.labels.yAxis.commonScaleSteps, I = 1.0000001, q = t.value.chart.grid.labels.yAxis.useNiceScale ? Ul(N.min, N.max === N.min ? N.max * I : N.max, ee) : hl(N.min, N.max === N.min ? N.max * I : N.max, ee), V = t.value.chart.grid.labels.yAxis.useNiceScale ? Ul(z.valueMin, z.valueMax === z.valueMin ? z.valueMax * I : z.valueMax, ee) : hl(z.valueMin, z.valueMax === z.valueMin ? z.valueMax * I : z.valueMax, ee), fe = q.min >= 0 ? 0 : Math.abs(q.min), Y = 0, B = q.max + fe, re = V.max + Math.abs(Y), Oe = o.stackIndex, $l = s - 1 - Oe, Ge = i ? 1 - o.cumulatedStackRatio : 0, J = i ? r * Ge + e * $l : 0, Q = i ? r * o.stackRatio : c.value.height, ye = c.value.bottom - J - Q * fe / B, qe = c.value.bottom - J - Q * Y / re, Ie = et.value.filter((K) => K.type === "bar").filter((K) => !de.value.includes(K.id)).length, Gl = o.series.map((K, ke) => {
|
|
1923
|
+
const Dt = p.value.useIndividualScale ? (o.absoluteValues[ke] + fe) / B : sl(K), vl = p.value.useIndividualScale && p.value.isStacked ? c.value.left + c.value.width / $.value * ke : c.value.left + he.value.bar * F + he.value.bar * ke * Ie - Ro.value / 2 - F * ia.value;
|
|
1924
1924
|
return {
|
|
1925
1925
|
yOffset: U(J),
|
|
1926
1926
|
individualHeight: U(Q),
|
|
1927
1927
|
x: U(vl),
|
|
1928
1928
|
y: c.value.bottom - J - Q * Dt,
|
|
1929
|
-
value: o.absoluteValues[
|
|
1930
|
-
zeroPosition: U(
|
|
1929
|
+
value: o.absoluteValues[ke],
|
|
1930
|
+
zeroPosition: U(ye),
|
|
1931
1931
|
individualMax: U(B),
|
|
1932
|
-
comment: o.comments && o.comments.slice(w.value.start, w.value.end)[
|
|
1932
|
+
comment: o.comments && o.comments.slice(w.value.start, w.value.end)[ke] || ""
|
|
1933
1933
|
};
|
|
1934
|
-
}), Ve = o.absoluteValues.map((K) => V.min >= 0 ? (K - Math.abs(V.min)) / (V.max - Math.abs(V.min)) : (K + Math.abs(V.min)) / (V.max + Math.abs(V.min))), Ht = o.series.map((K,
|
|
1935
|
-
const Dt = p.value.useIndividualScale && p.value.isStacked ? c.value.left + c.value.width /
|
|
1934
|
+
}), Ve = o.absoluteValues.map((K) => V.min >= 0 ? (K - Math.abs(V.min)) / (V.max - Math.abs(V.min)) : (K + Math.abs(V.min)) / (V.max + Math.abs(V.min))), Ht = o.series.map((K, ke) => {
|
|
1935
|
+
const Dt = p.value.useIndividualScale && p.value.isStacked ? c.value.left + c.value.width / $.value * ke : c.value.left - he.value.bar / 2 + he.value.bar * F + he.value.bar * ke * et.value.filter((vl) => vl.type === "bar").filter((vl) => !de.value.includes(vl.id)).length;
|
|
1936
1936
|
return {
|
|
1937
1937
|
yOffset: U(J),
|
|
1938
1938
|
individualHeight: U(Q),
|
|
1939
1939
|
x: U(Dt),
|
|
1940
|
-
y: U(c.value.bottom - U(J) - (U(Q) * Ve[
|
|
1941
|
-
value: o.absoluteValues[
|
|
1942
|
-
zeroPosition: U(
|
|
1940
|
+
y: U(c.value.bottom - U(J) - (U(Q) * Ve[ke] || 0)),
|
|
1941
|
+
value: o.absoluteValues[ke],
|
|
1942
|
+
zeroPosition: U(ye),
|
|
1943
1943
|
individualMax: U(B),
|
|
1944
|
-
comment: o.comments && o.comments.slice(w.value.start, w.value.end)[
|
|
1944
|
+
comment: o.comments && o.comments.slice(w.value.start, w.value.end)[ke] || ""
|
|
1945
1945
|
};
|
|
1946
1946
|
}), oe = q.ticks.map((K) => ({
|
|
1947
|
-
y: K >= 0 ?
|
|
1947
|
+
y: K >= 0 ? ye - Q * (K / B) : ye + Q * Math.abs(K) / B,
|
|
1948
1948
|
value: K,
|
|
1949
1949
|
prefix: o.prefix || t.value.chart.labels.prefix,
|
|
1950
1950
|
suffix: o.suffix || t.value.chart.labels.suffix,
|
|
1951
1951
|
datapoint: o
|
|
1952
|
-
})),
|
|
1953
|
-
const
|
|
1952
|
+
})), pe = V.ticks.map((K) => {
|
|
1953
|
+
const ke = (K - V.min) / (V.max - V.min);
|
|
1954
1954
|
return {
|
|
1955
|
-
y: K >= 0 ? qe - Q *
|
|
1955
|
+
y: K >= 0 ? qe - Q * ke : qe + Q * ke,
|
|
1956
1956
|
value: K,
|
|
1957
1957
|
prefix: o.prefix || t.value.chart.labels.prefix,
|
|
1958
1958
|
suffix: o.suffix || t.value.chart.labels.suffix,
|
|
1959
1959
|
datapoint: o
|
|
1960
1960
|
};
|
|
1961
1961
|
});
|
|
1962
|
-
return P.value[o.scaleLabel].name = o.name, P.value[o.scaleLabel].groupName = o.scaleLabel, P.value[o.scaleLabel].groupColor = t.value.chart.grid.labels.yAxis.groupColor || o.color, P.value[o.scaleLabel].color = o.color, P.value[o.scaleLabel].scaleYLabels = o.autoScaling ?
|
|
1962
|
+
return P.value[o.scaleLabel].name = o.name, P.value[o.scaleLabel].groupName = o.scaleLabel, P.value[o.scaleLabel].groupColor = t.value.chart.grid.labels.yAxis.groupColor || o.color, P.value[o.scaleLabel].color = o.color, P.value[o.scaleLabel].scaleYLabels = o.autoScaling ? pe : oe, P.value[o.scaleLabel].zeroPosition = o.autoScaling ? qe : ye, P.value[o.scaleLabel].individualMax = o.autoScaling ? re : B, P.value[o.scaleLabel].scaleLabel = o.scaleLabel, P.value[o.scaleLabel].id = o.id, P.value[o.scaleLabel].yOffset = J, P.value[o.scaleLabel].individualHeight = Q, P.value[o.scaleLabel].autoScaleYLabels = pe, P.value[o.scaleLabel].unique = cl.value.filter((K) => K.scaleLabel === o.scaleLabel).length === 1, {
|
|
1963
1963
|
...o,
|
|
1964
1964
|
yOffset: J,
|
|
1965
|
-
autoScaleYLabels:
|
|
1965
|
+
autoScaleYLabels: pe,
|
|
1966
1966
|
individualHeight: Q,
|
|
1967
|
-
scaleYLabels: o.autoScaling ?
|
|
1967
|
+
scaleYLabels: o.autoScaling ? pe : oe,
|
|
1968
1968
|
individualScale: o.autoScaling ? V : q,
|
|
1969
|
-
individualMax: o.autoScaling ?
|
|
1970
|
-
zeroPosition: o.autoScaling ? qe :
|
|
1969
|
+
individualMax: o.autoScaling ? re : B,
|
|
1970
|
+
zeroPosition: o.autoScaling ? qe : ye,
|
|
1971
1971
|
plots: o.autoScaling ? Ht : Gl,
|
|
1972
1972
|
groupId: P.value[o.scaleLabel].groupId
|
|
1973
1973
|
};
|
|
@@ -1984,26 +1984,26 @@ const _n = {
|
|
|
1984
1984
|
}, N = {
|
|
1985
1985
|
max: o.scaleMax || Math.max(...o.absoluteValues) || 1,
|
|
1986
1986
|
min: o.scaleMin || (Math.min(...o.absoluteValues) > 0 ? 0 : Math.min(...o.absoluteValues))
|
|
1987
|
-
}, ee = o.scaleSteps || t.value.chart.grid.labels.yAxis.commonScaleSteps, I = 1.0000001, q = t.value.chart.grid.labels.yAxis.useNiceScale ? Ul(N.min, N.max === N.min ? N.max * I : N.max, ee) : hl(N.min, N.max === N.min ? N.max * I : N.max, ee), V = t.value.chart.grid.labels.yAxis.useNiceScale ? Ul(z.valueMin, z.valueMax === z.valueMin ? z.valueMax * I : z.valueMax, ee) : hl(z.valueMin, z.valueMax === z.valueMin ? z.valueMax * I : z.valueMax, ee),
|
|
1988
|
-
const Xo = p.value.useIndividualScale ? (o.absoluteValues[Ce] + Math.abs(
|
|
1987
|
+
}, ee = o.scaleSteps || t.value.chart.grid.labels.yAxis.commonScaleSteps, I = 1.0000001, q = t.value.chart.grid.labels.yAxis.useNiceScale ? Ul(N.min, N.max === N.min ? N.max * I : N.max, ee) : hl(N.min, N.max === N.min ? N.max * I : N.max, ee), V = t.value.chart.grid.labels.yAxis.useNiceScale ? Ul(z.valueMin, z.valueMax === z.valueMin ? z.valueMax * I : z.valueMax, ee) : hl(z.valueMin, z.valueMax === z.valueMin ? z.valueMax * I : z.valueMax, ee), fe = q.min >= 0 ? 0 : Math.abs(q.min), Y = 0, B = q.max + Math.abs(fe), re = V.max + Math.abs(Y), Oe = o.stackIndex, $l = s - 1 - Oe, Ge = i ? 1 - o.cumulatedStackRatio : 0, J = i ? r * Ge + e * $l : 0, Q = i ? r * o.stackRatio : c.value.height, ye = c.value.bottom - J - Q * fe / B, qe = c.value.bottom - J - Q * Y / re, Ie = o.series.map((G, Ce) => {
|
|
1988
|
+
const Xo = p.value.useIndividualScale ? (o.absoluteValues[Ce] + Math.abs(fe)) / B : sl(G);
|
|
1989
1989
|
return {
|
|
1990
|
-
x: U(c.value.left +
|
|
1990
|
+
x: U(c.value.left + he.value.line / 2 + he.value.line * Ce),
|
|
1991
1991
|
y: U(c.value.bottom - J - Q * Xo),
|
|
1992
1992
|
value: o.absoluteValues[Ce],
|
|
1993
1993
|
comment: o.comments && o.comments.slice(w.value.start, w.value.end)[Ce] || ""
|
|
1994
1994
|
};
|
|
1995
1995
|
}), Gl = o.absoluteValues.map((G) => V.min >= 0 ? (G - Math.abs(V.min)) / (V.max - Math.abs(V.min)) : (G + Math.abs(V.min)) / (V.max + Math.abs(V.min))), Ve = o.series.map((G, Ce) => [void 0, null].includes(o.absoluteValues[Ce]) ? {
|
|
1996
|
-
x: U(c.value.left +
|
|
1997
|
-
y:
|
|
1996
|
+
x: U(c.value.left + he.value.line / 2 + he.value.line * Ce),
|
|
1997
|
+
y: ye,
|
|
1998
1998
|
value: o.absoluteValues[Ce],
|
|
1999
1999
|
comment: o.comments && o.comments.slice(w.value.start, w.value.end)[Ce] || ""
|
|
2000
2000
|
} : {
|
|
2001
|
-
x: U(c.value.left +
|
|
2001
|
+
x: U(c.value.left + he.value.line / 2 + he.value.line * Ce),
|
|
2002
2002
|
y: U(c.value.bottom - J - (Q * Gl[Ce] || 0)),
|
|
2003
2003
|
value: o.absoluteValues[Ce],
|
|
2004
2004
|
comment: o.comments && o.comments.slice(w.value.start, w.value.end)[Ce] || ""
|
|
2005
|
-
}), Ht = t.value.line.cutNullValues ? ya(Ie) : pa(Ie.filter((G) => G.value !== null)), oe = t.value.line.cutNullValues ? ya(Ve) : pa(Ve.filter((G) => G.value !== null)),
|
|
2006
|
-
y: G >= 0 ?
|
|
2005
|
+
}), Ht = t.value.line.cutNullValues ? ya(Ie) : pa(Ie.filter((G) => G.value !== null)), oe = t.value.line.cutNullValues ? ya(Ve) : pa(Ve.filter((G) => G.value !== null)), pe = t.value.line.cutNullValues ? ka(Ie) : wa(Ie.filter((G) => G.value !== null)), K = t.value.line.cutNullValues ? ka(Ve) : wa(Ve.filter((G) => G.value !== null)), ke = q.ticks.map((G) => ({
|
|
2006
|
+
y: G >= 0 ? ye - Q * (G / B) : ye + Q * Math.abs(G) / B,
|
|
2007
2007
|
value: G,
|
|
2008
2008
|
prefix: o.prefix || t.value.chart.labels.prefix,
|
|
2009
2009
|
suffix: o.suffix || t.value.chart.labels.suffix,
|
|
@@ -2018,17 +2018,17 @@ const _n = {
|
|
|
2018
2018
|
datapoint: o
|
|
2019
2019
|
};
|
|
2020
2020
|
});
|
|
2021
|
-
P.value[o.scaleLabel].name = o.name, P.value[o.scaleLabel].groupName = o.scaleLabel, P.value[o.scaleLabel].groupColor = t.value.chart.grid.labels.yAxis.groupColor || o.color, P.value[o.scaleLabel].color = o.color, P.value[o.scaleLabel].scaleYLabels = o.autoScaling ? Dt :
|
|
2022
|
-
const vl = p.value.useIndividualScale ? o.autoScaling ? qe :
|
|
2021
|
+
P.value[o.scaleLabel].name = o.name, P.value[o.scaleLabel].groupName = o.scaleLabel, P.value[o.scaleLabel].groupColor = t.value.chart.grid.labels.yAxis.groupColor || o.color, P.value[o.scaleLabel].color = o.color, P.value[o.scaleLabel].scaleYLabels = o.autoScaling ? Dt : ke, P.value[o.scaleLabel].zeroPosition = o.autoScaling ? qe : ye, P.value[o.scaleLabel].individualMax = o.autoScaling ? re : B, P.value[o.scaleLabel].scaleLabel = o.scaleLabel, P.value[o.scaleLabel].id = o.id, P.value[o.scaleLabel].yOffset = J, P.value[o.scaleLabel].individualHeight = Q, P.value[o.scaleLabel].autoScaleYLabels = Dt, P.value[o.scaleLabel].unique = cl.value.filter((G) => G.scaleLabel === o.scaleLabel).length === 1;
|
|
2022
|
+
const vl = p.value.useIndividualScale ? o.autoScaling ? qe : ye : ze.value, ql = Math.max(Math.max(o.autoScaling ? qe : ke.at(-1) ? ke.at(-1).y : 0, c.value.top), vl);
|
|
2023
2023
|
return {
|
|
2024
2024
|
...o,
|
|
2025
2025
|
yOffset: J,
|
|
2026
2026
|
autoScaleYLabels: Dt,
|
|
2027
2027
|
individualHeight: Q,
|
|
2028
|
-
scaleYLabels: o.autoScaling ? Dt :
|
|
2028
|
+
scaleYLabels: o.autoScaling ? Dt : ke,
|
|
2029
2029
|
individualScale: o.autoScaling ? V : q,
|
|
2030
|
-
individualMax: o.autoScaling ?
|
|
2031
|
-
zeroPosition: o.autoScaling ? qe :
|
|
2030
|
+
individualMax: o.autoScaling ? re : B,
|
|
2031
|
+
zeroPosition: o.autoScaling ? qe : ye,
|
|
2032
2032
|
curve: o.autoScaling ? oe : Ht,
|
|
2033
2033
|
plots: o.autoScaling ? Ve : Ie,
|
|
2034
2034
|
area: o.useArea ? p.value.useIndividualScale ? t.value.line.cutNullValues ? wo(
|
|
@@ -2043,7 +2043,7 @@ const _n = {
|
|
|
2043
2043
|
ql,
|
|
2044
2044
|
t.value.line.cutNullValues
|
|
2045
2045
|
) : [],
|
|
2046
|
-
straight: o.autoScaling ? K :
|
|
2046
|
+
straight: o.autoScaling ? K : pe,
|
|
2047
2047
|
groupId: P.value[o.scaleLabel].groupId
|
|
2048
2048
|
};
|
|
2049
2049
|
});
|
|
@@ -2059,19 +2059,19 @@ const _n = {
|
|
|
2059
2059
|
}, z = {
|
|
2060
2060
|
max: o.scaleMax || Math.max(...o.absoluteValues) || 1,
|
|
2061
2061
|
min: o.scaleMin || Math.min(...o.absoluteValues) > 0 ? 0 : Math.min(...o.absoluteValues)
|
|
2062
|
-
}, N = o.scaleSteps || t.value.chart.grid.labels.yAxis.commonScaleSteps, ee = 1.0000001, I = hl(z.min, z.max === z.min ? z.max * ee : z.max, N), q = hl(O.valueMin, O.valueMax === O.valueMin ? O.valueMax * ee : O.valueMax, N), V = I.min >= 0 ? 0 : Math.abs(I.min),
|
|
2063
|
-
const K = p.value.useIndividualScale ? (o.absoluteValues[
|
|
2062
|
+
}, N = o.scaleSteps || t.value.chart.grid.labels.yAxis.commonScaleSteps, ee = 1.0000001, I = hl(z.min, z.max === z.min ? z.max * ee : z.max, N), q = hl(O.valueMin, O.valueMax === O.valueMin ? O.valueMax * ee : O.valueMax, N), V = I.min >= 0 ? 0 : Math.abs(I.min), fe = 0, Y = I.max + V, B = q.max + Math.abs(fe), re = o.stackIndex, Oe = s - 1 - re, $l = i ? 1 - o.cumulatedStackRatio : 0, Ge = i ? r * $l + e * Oe : 0, J = i ? r * o.stackRatio : c.value.height, Q = c.value.bottom - Ge - J * V / Y, ye = c.value.bottom - Ge - J * fe / B, qe = o.series.map((oe, pe) => {
|
|
2063
|
+
const K = p.value.useIndividualScale ? (o.absoluteValues[pe] + Math.abs(V)) / Y : sl(oe);
|
|
2064
2064
|
return {
|
|
2065
|
-
x: U(c.value.left +
|
|
2065
|
+
x: U(c.value.left + he.value.plot / 2 + he.value.plot * pe),
|
|
2066
2066
|
y: U(c.value.bottom - Ge - J * K),
|
|
2067
|
-
value: o.absoluteValues[
|
|
2068
|
-
comment: o.comments && o.comments.slice(w.value.start, w.value.end)[
|
|
2067
|
+
value: o.absoluteValues[pe],
|
|
2068
|
+
comment: o.comments && o.comments.slice(w.value.start, w.value.end)[pe] || ""
|
|
2069
2069
|
};
|
|
2070
|
-
}), Ie = o.absoluteValues.map((oe) => q.min >= 0 ? (oe - Math.abs(q.min)) / (q.max - Math.abs(q.min)) : (oe + Math.abs(q.min)) / (q.max + Math.abs(q.min))), Gl = o.series.map((oe,
|
|
2071
|
-
x: U(c.value.left +
|
|
2072
|
-
y: U(c.value.bottom - Ge - (J * Ie[
|
|
2073
|
-
value: o.absoluteValues[
|
|
2074
|
-
comment: o.comments && o.comments.slice(w.value.start, w.value.end)[
|
|
2070
|
+
}), Ie = o.absoluteValues.map((oe) => q.min >= 0 ? (oe - Math.abs(q.min)) / (q.max - Math.abs(q.min)) : (oe + Math.abs(q.min)) / (q.max + Math.abs(q.min))), Gl = o.series.map((oe, pe) => ({
|
|
2071
|
+
x: U(c.value.left + he.value.plot / 2 + he.value.plot * pe),
|
|
2072
|
+
y: U(c.value.bottom - Ge - (J * Ie[pe] || 0)),
|
|
2073
|
+
value: o.absoluteValues[pe],
|
|
2074
|
+
comment: o.comments && o.comments.slice(w.value.start, w.value.end)[pe] || ""
|
|
2075
2075
|
})), Ve = I.ticks.map((oe) => ({
|
|
2076
2076
|
y: oe >= 0 ? Q - J * (oe / Y) : Q + J * Math.abs(oe) / Y,
|
|
2077
2077
|
value: oe,
|
|
@@ -2079,16 +2079,16 @@ const _n = {
|
|
|
2079
2079
|
suffix: o.suffix || t.value.chart.labels.suffix,
|
|
2080
2080
|
datapoint: o
|
|
2081
2081
|
})), Ht = q.ticks.map((oe) => {
|
|
2082
|
-
const
|
|
2082
|
+
const pe = (oe - q.min) / (q.max - q.min);
|
|
2083
2083
|
return {
|
|
2084
|
-
y: oe >= 0 ?
|
|
2084
|
+
y: oe >= 0 ? ye - J * pe : ye + J * pe,
|
|
2085
2085
|
value: oe,
|
|
2086
2086
|
prefix: o.prefix || t.value.chart.labels.prefix,
|
|
2087
2087
|
suffix: o.suffix || t.value.chart.labels.suffix,
|
|
2088
2088
|
datapoint: o
|
|
2089
2089
|
};
|
|
2090
2090
|
});
|
|
2091
|
-
return P.value[o.scaleLabel].name = o.name, P.value[o.scaleLabel].groupName = o.scaleLabel, P.value[o.scaleLabel].groupColor = t.value.chart.grid.labels.yAxis.groupColor || o.color, P.value[o.scaleLabel].color = o.color, P.value[o.scaleLabel].scaleYLabels = o.autoScaling ? Ht : Ve, P.value[o.scaleLabel].zeroPosition = o.autoScaling ?
|
|
2091
|
+
return P.value[o.scaleLabel].name = o.name, P.value[o.scaleLabel].groupName = o.scaleLabel, P.value[o.scaleLabel].groupColor = t.value.chart.grid.labels.yAxis.groupColor || o.color, P.value[o.scaleLabel].color = o.color, P.value[o.scaleLabel].scaleYLabels = o.autoScaling ? Ht : Ve, P.value[o.scaleLabel].zeroPosition = o.autoScaling ? ye : Q, P.value[o.scaleLabel].individualMax = o.autoScaling ? B : Y, P.value[o.scaleLabel].scaleLabel = o.scaleLabel, P.value[o.scaleLabel].id = o.id, P.value[o.scaleLabel].yOffset = Ge, P.value[o.scaleLabel].individualHeight = J, P.value[o.scaleLabel].autoScaleYLabels = Ht, P.value[o.scaleLabel].unique = cl.value.filter((oe) => oe.scaleLabel === o.scaleLabel).length === 1, {
|
|
2092
2092
|
...o,
|
|
2093
2093
|
yOffset: Ge,
|
|
2094
2094
|
autoScaleYLabels: Ht,
|
|
@@ -2096,7 +2096,7 @@ const _n = {
|
|
|
2096
2096
|
scaleYLabels: o.autoScaling ? Ht : Ve,
|
|
2097
2097
|
individualScale: o.autoScaling ? q : I,
|
|
2098
2098
|
individualMax: o.autoScaling ? B : Y,
|
|
2099
|
-
zeroPosition: o.autoScaling ?
|
|
2099
|
+
zeroPosition: o.autoScaling ? ye : Q,
|
|
2100
2100
|
plots: o.autoScaling ? Gl : qe,
|
|
2101
2101
|
groupId: P.value[o.scaleLabel].groupId
|
|
2102
2102
|
};
|
|
@@ -2272,7 +2272,7 @@ const _n = {
|
|
|
2272
2272
|
r = `<svg viewBox="0 0 40 40" height="14" width="14">${gl.pattern ? `<rect x="0" y="0" rx="1" stroke="none" height="40" width="40" fill="${a.color}" />` : ""}<rect x="0" y="0" rx="1" stroke="none" height="40" width="40" fill="${gl.pattern ? `url(#pattern_${Z.value}_${a.slotAbsoluteIndex}` : a.color}" /></svg>`;
|
|
2273
2273
|
break;
|
|
2274
2274
|
case "line":
|
|
2275
|
-
!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="${
|
|
2275
|
+
!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="${St({ 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="${St({ 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="${St({ 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="${St({ 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="${St({ plot: { x: 10, y: 8 }, radius: 4, sides: 6, rotation: 0 }).path}" fill="${a.color}" stroke="${t.value.chart.tooltip.backgroundColor}" stroke-width="0.5" />` : a.shape === "star" && (o = `<polygon stroke="${t.value.chart.tooltip.backgroundColor}" stroke-width="0.5" fill="${a.color}" points="${$o({ plot: { x: 10, y: 8 }, radius: 4 })}" />`), r = `<svg viewBox="0 0 20 12" height="14" width="20"><rect rx="1.5" x="0" y="6.5" stroke="${t.value.chart.tooltip.backgroundColor}" stroke-width="0.5" height="3" width="20" fill="${a.color}" />${o}</svg>`;
|
|
2276
2276
|
break;
|
|
2277
2277
|
case "plot":
|
|
2278
2278
|
if (!a.shape || !["star", "triangle", "square", "diamond", "pentagon", "hexagon"].includes(a.shape)) {
|
|
@@ -2284,23 +2284,23 @@ const _n = {
|
|
|
2284
2284
|
break;
|
|
2285
2285
|
}
|
|
2286
2286
|
if (a.shape === "triangle") {
|
|
2287
|
-
r = `<svg viewBox="0 0 12 12" height="14" width="14"><path d="${
|
|
2287
|
+
r = `<svg viewBox="0 0 12 12" height="14" width="14"><path d="${St({ plot: { x: 6, y: 6 }, radius: 6, sides: 3, rotation: 0.52 }).path}" fill="${a.color}" stroke="${t.value.chart.tooltip.backgroundColor}" stroke-width="1" /></svg>`;
|
|
2288
2288
|
break;
|
|
2289
2289
|
}
|
|
2290
2290
|
if (a.shape === "square") {
|
|
2291
|
-
r = `<svg viewBox="0 0 12 12" height="14" width="14"><path d="${
|
|
2291
|
+
r = `<svg viewBox="0 0 12 12" height="14" width="14"><path d="${St({ plot: { x: 6, y: 6 }, radius: 6, sides: 4, rotation: 0.8 }).path}" fill="${a.color}" stroke="${t.value.chart.tooltip.backgroundColor}" stroke-width="1" /></svg>`;
|
|
2292
2292
|
break;
|
|
2293
2293
|
}
|
|
2294
2294
|
if (a.shape === "diamond") {
|
|
2295
|
-
r = `<svg viewBox="0 0 12 12" height="14" width="14"><path d="${
|
|
2295
|
+
r = `<svg viewBox="0 0 12 12" height="14" width="14"><path d="${St({ plot: { x: 6, y: 6 }, radius: 5, sides: 4, rotation: 0 }).path}" fill="${a.color}" stroke="${t.value.chart.tooltip.backgroundColor}" stroke-width="1" /></svg>`;
|
|
2296
2296
|
break;
|
|
2297
2297
|
}
|
|
2298
2298
|
if (a.shape === "pentagon") {
|
|
2299
|
-
r = `<svg viewBox="0 0 12 12" height="14" width="14"><path d="${
|
|
2299
|
+
r = `<svg viewBox="0 0 12 12" height="14" width="14"><path d="${St({ plot: { x: 6, y: 6 }, radius: 5, sides: 5, rotation: 0.95 }).path}" fill="${a.color}" stroke="${t.value.chart.tooltip.backgroundColor}" stroke-width="1" /></svg>`;
|
|
2300
2300
|
break;
|
|
2301
2301
|
}
|
|
2302
2302
|
if (a.shape === "hexagon") {
|
|
2303
|
-
r = `<svg viewBox="0 0 12 12" height="14" width="14"><path d="${
|
|
2303
|
+
r = `<svg viewBox="0 0 12 12" height="14" width="14"><path d="${St({ plot: { x: 6, y: 6 }, radius: 5, sides: 6, rotation: 0 }).path}" fill="${a.color}" stroke="${t.value.chart.tooltip.backgroundColor}" stroke-width="1" /></svg>`;
|
|
2304
2304
|
break;
|
|
2305
2305
|
}
|
|
2306
2306
|
}
|
|
@@ -2339,7 +2339,7 @@ const _n = {
|
|
|
2339
2339
|
let s = [""].concat(Fe.value.map((r) => r.name));
|
|
2340
2340
|
l && (s = s.concat(' <svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 24 24" stroke-width="1.5" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><path stroke="none" d="M0 0h24v24H0z" fill="none"/><path d="M18 16v2a1 1 0 0 1 -1 1h-11l6 -7l-6 -7h11a1 1 0 0 1 1 1v2" /></svg>'));
|
|
2341
2341
|
let e = [];
|
|
2342
|
-
for (let r = 0; r <
|
|
2342
|
+
for (let r = 0; r < $.value; r += 1) {
|
|
2343
2343
|
const o = Fe.value.map((F) => F.absoluteValues[r] ?? 0).reduce((F, R) => F + R, 0);
|
|
2344
2344
|
e.push(
|
|
2345
2345
|
[
|
|
@@ -2446,16 +2446,16 @@ const _n = {
|
|
|
2446
2446
|
_o(d.dataset) ? (Na({
|
|
2447
2447
|
componentName: "VueUiXy",
|
|
2448
2448
|
type: "dataset",
|
|
2449
|
-
debug:
|
|
2449
|
+
debug: Ct.value
|
|
2450
2450
|
}), bt.value = !0) : d.dataset.forEach((s, e) => {
|
|
2451
2451
|
[null, void 0].includes(s.name) && (Na({
|
|
2452
2452
|
componentName: "VueUiXy",
|
|
2453
2453
|
type: "datasetSerieAttribute",
|
|
2454
2454
|
property: "name (string)",
|
|
2455
2455
|
index: e,
|
|
2456
|
-
debug:
|
|
2456
|
+
debug: Ct.value
|
|
2457
2457
|
}), bt.value = !0);
|
|
2458
|
-
}),
|
|
2458
|
+
}), Ct.value && d.dataset.forEach((s) => {
|
|
2459
2459
|
s.series.forEach((e, i) => {
|
|
2460
2460
|
ha(e) || console.warn(`VueUiXy has detected an unsafe value in your dataset:
|
|
2461
2461
|
-----> The serie '${s.name}' contains the value '${e}' at index ${i}.
|
|
@@ -2470,16 +2470,16 @@ const _n = {
|
|
|
2470
2470
|
let r = null, o = 0;
|
|
2471
2471
|
t.value.chart.title.show && Te.value && (r = Te.value, o = r.getBoundingClientRect().height);
|
|
2472
2472
|
let F = null, R = 0;
|
|
2473
|
-
t.value.chart.zoom.show && Qe.value > 6 &&
|
|
2473
|
+
t.value.chart.zoom.show && Qe.value > 6 && Lt.value && Ke.value && Ke.value.$el && (F = Ke.value.$el, R = F.getBoundingClientRect().height);
|
|
2474
2474
|
let O = null, z = 0;
|
|
2475
2475
|
t.value.chart.legend.show && Le.value && (O = Le.value, z = O.getBoundingClientRect().height);
|
|
2476
2476
|
let N = 0;
|
|
2477
2477
|
ft.value && (N = ft.value.getBoundingClientRect().height);
|
|
2478
2478
|
let ee = 0;
|
|
2479
|
-
|
|
2479
|
+
Mt.value && (ee = Mt.value.getBoundingClientRect().height), W.value = i - o - z - R - N - ee - l, le.value = a, at.value = `0 0 ${le.value < 0 ? 10 : le.value} ${W.value < 0 ? 10 : W.value}`, uo();
|
|
2480
2480
|
const I = new ResizeObserver((q) => {
|
|
2481
2481
|
for (const V of q)
|
|
2482
|
-
t.value.chart.title.show && Te.value ? o = Te.value.getBoundingClientRect().height : o = 0, Ke.value && Ke.value.$el ? R = Ke.value.$el.getBoundingClientRect().height : R = 0, Le.value ? z = Le.value.getBoundingClientRect().height : z = 0, ft.value ? N = ft.value.getBoundingClientRect().height : N = 0,
|
|
2482
|
+
t.value.chart.title.show && Te.value ? o = Te.value.getBoundingClientRect().height : o = 0, Ke.value && Ke.value.$el ? R = Ke.value.$el.getBoundingClientRect().height : R = 0, Le.value ? z = Le.value.getBoundingClientRect().height : z = 0, ft.value ? N = ft.value.getBoundingClientRect().height : N = 0, Mt.value ? ee = Mt.value.getBoundingClientRect().height : ee = 0, requestAnimationFrame(() => {
|
|
2483
2483
|
W.value = V.contentRect.height - o - z - R - N - ee - l, le.value = V.contentBoxSize[0].inlineSize, at.value = `0 0 ${le.value < 0 ? 10 : le.value} ${W.value < 0 ? 10 : W.value}`, uo();
|
|
2484
2484
|
});
|
|
2485
2485
|
});
|
|
@@ -2498,7 +2498,7 @@ const _n = {
|
|
|
2498
2498
|
}), Ll(() => {
|
|
2499
2499
|
document.removeEventListener("scroll", Hl, { passive: !0 }), document.removeEventListener("mousemove", io, { passive: !0 }), mt.value && (mt.value.unobserve(ne.value), mt.value.disconnect(), mt.value = null);
|
|
2500
2500
|
}), yn({
|
|
2501
|
-
timeLabelsEls:
|
|
2501
|
+
timeLabelsEls: $e,
|
|
2502
2502
|
timeLabels: v,
|
|
2503
2503
|
slicer: w,
|
|
2504
2504
|
configRef: t,
|
|
@@ -2517,7 +2517,7 @@ const _n = {
|
|
|
2517
2517
|
return Math.min(Math.max(l, 1), 200);
|
|
2518
2518
|
}
|
|
2519
2519
|
function Do() {
|
|
2520
|
-
const l = Ho(), s = 200, e = Math.max(1,
|
|
2520
|
+
const l = Ho(), s = 200, e = Math.max(1, $.value), i = c.value.width / e, r = c.value.left + Eo.value * i + i / 2 - l / 2 - (s - l) / 2, o = c.value.left - (s - l) / 2, F = c.value.right - (s + l) / 2, R = Math.max(o, Math.min(r, F));
|
|
2521
2521
|
return U(R);
|
|
2522
2522
|
}
|
|
2523
2523
|
Zl(() => {
|
|
@@ -2567,12 +2567,12 @@ const _n = {
|
|
|
2567
2567
|
return [null, void 0].includes(v.value[l]) ? "" : t.value.chart.grid.labels.xAxisLabels.datetimeFormatter.enable && !t.value.chart.timeTag.useDefaultFormat ? Sl.value(l + w.value.start, t.value.chart.timeTag.timeFormat) : v.value[l].text;
|
|
2568
2568
|
});
|
|
2569
2569
|
ht(() => d.dataset, (l) => {
|
|
2570
|
-
Array.isArray(l) && l.length > 0 && (bt.value = !1), Qe.value = Math.max(...
|
|
2570
|
+
Array.isArray(l) && l.length > 0 && (bt.value = !1), Qe.value = Math.max(...Me.value.map((s) => yt(s.series).length)), w.value = {
|
|
2571
2571
|
start: 0,
|
|
2572
2572
|
end: Qe.value
|
|
2573
|
-
}, Jl.value += 1, gt.value += 1,
|
|
2573
|
+
}, Jl.value += 1, gt.value += 1, At();
|
|
2574
2574
|
}, { deep: !0 }), ht(() => d.config, (l) => {
|
|
2575
|
-
|
|
2575
|
+
be.value || (t.value = Ol()), za(), Pl.value += 1, Nl.value += 1, tl(), At();
|
|
2576
2576
|
}, { deep: !0 });
|
|
2577
2577
|
const Ia = y(!1);
|
|
2578
2578
|
function co() {
|
|
@@ -2587,7 +2587,7 @@ const _n = {
|
|
|
2587
2587
|
Zl(() => {
|
|
2588
2588
|
co();
|
|
2589
2589
|
const l = new ResizeObserver(() => {
|
|
2590
|
-
co(), Ia.value && (za(),
|
|
2590
|
+
co(), Ia.value && (za(), At(), il());
|
|
2591
2591
|
});
|
|
2592
2592
|
Be.value?.parentNode && l.observe(Be.value.parentNode);
|
|
2593
2593
|
}), ht(t, () => {
|
|
@@ -2647,13 +2647,13 @@ const _n = {
|
|
|
2647
2647
|
ref_key: "chart",
|
|
2648
2648
|
ref: Be,
|
|
2649
2649
|
style: C(`background:${t.value.chart.backgroundColor}; color:${t.value.chart.color};width:100%;font-family:${t.value.chart.fontFamily};${t.value.responsive ? "height: 100%" : ""}`),
|
|
2650
|
-
onMouseenter: s[6] || (s[6] = () =>
|
|
2651
|
-
onMouseleave: s[7] || (s[7] = () =>
|
|
2650
|
+
onMouseenter: s[6] || (s[6] = () => xe(!0)),
|
|
2651
|
+
onMouseleave: s[7] || (s[7] = () => xe(!1)),
|
|
2652
2652
|
onClick: Xa
|
|
2653
2653
|
}, [
|
|
2654
|
-
t.value.chart.userOptions.buttons.annotator &&
|
|
2654
|
+
t.value.chart.userOptions.buttons.annotator && _e.value ? (n(), ct(h(Nt), {
|
|
2655
2655
|
key: 0,
|
|
2656
|
-
svgRef:
|
|
2656
|
+
svgRef: _e.value,
|
|
2657
2657
|
backgroundColor: t.value.chart.backgroundColor,
|
|
2658
2658
|
color: t.value.chart.color,
|
|
2659
2659
|
active: Ee.value,
|
|
@@ -2662,7 +2662,7 @@ const _n = {
|
|
|
2662
2662
|
Io.value ? (n(), u("div", {
|
|
2663
2663
|
key: 1,
|
|
2664
2664
|
ref_key: "noTitle",
|
|
2665
|
-
ref:
|
|
2665
|
+
ref: Mt,
|
|
2666
2666
|
class: "vue-data-ui-no-title-space",
|
|
2667
2667
|
style: "height:36px; width: 100%; background:transparent"
|
|
2668
2668
|
}, null, 512)) : g("", !0),
|
|
@@ -2690,7 +2690,7 @@ const _n = {
|
|
|
2690
2690
|
k("div", {
|
|
2691
2691
|
id: `legend-top-${Z.value}`
|
|
2692
2692
|
}, null, 8, mu),
|
|
2693
|
-
t.value.chart.userOptions.show && (Fl.value || bl.value) ? (n(), ct(h(
|
|
2693
|
+
t.value.chart.userOptions.show && (Fl.value || bl.value) ? (n(), ct(h(me), {
|
|
2694
2694
|
ref_key: "userOptionsRef",
|
|
2695
2695
|
ref: zl,
|
|
2696
2696
|
key: `user_options_${Il.value}`,
|
|
@@ -2705,7 +2705,7 @@ const _n = {
|
|
|
2705
2705
|
hasImg: t.value.chart.userOptions.buttons.img,
|
|
2706
2706
|
hasLabel: t.value.chart.userOptions.buttons.labels,
|
|
2707
2707
|
hasTable: t.value.chart.userOptions.buttons.table,
|
|
2708
|
-
hasStack:
|
|
2708
|
+
hasStack: S.dataset.length > 1 && t.value.chart.userOptions.buttons.stack,
|
|
2709
2709
|
hasFullscreen: t.value.chart.userOptions.buttons.fullscreen,
|
|
2710
2710
|
isStacked: p.value.isStacked,
|
|
2711
2711
|
isFullscreen: Pe.value,
|
|
@@ -2733,70 +2733,70 @@ const _n = {
|
|
|
2733
2733
|
}, xo({ _: 2 }, [
|
|
2734
2734
|
l.$slots.menuIcon ? {
|
|
2735
2735
|
name: "menuIcon",
|
|
2736
|
-
fn:
|
|
2736
|
+
fn: Se(({ isOpen: e, color: i }) => [
|
|
2737
2737
|
te(l.$slots, "menuIcon", Yt(dl({ isOpen: e, color: i })), void 0, !0)
|
|
2738
2738
|
]),
|
|
2739
2739
|
key: "0"
|
|
2740
2740
|
} : void 0,
|
|
2741
2741
|
l.$slots.optionTooltip ? {
|
|
2742
2742
|
name: "optionTooltip",
|
|
2743
|
-
fn:
|
|
2743
|
+
fn: Se(() => [
|
|
2744
2744
|
te(l.$slots, "optionTooltip", {}, void 0, !0)
|
|
2745
2745
|
]),
|
|
2746
2746
|
key: "1"
|
|
2747
2747
|
} : void 0,
|
|
2748
2748
|
l.$slots.optionPdf ? {
|
|
2749
2749
|
name: "optionPdf",
|
|
2750
|
-
fn:
|
|
2750
|
+
fn: Se(() => [
|
|
2751
2751
|
te(l.$slots, "optionPdf", {}, void 0, !0)
|
|
2752
2752
|
]),
|
|
2753
2753
|
key: "2"
|
|
2754
2754
|
} : void 0,
|
|
2755
2755
|
l.$slots.optionCsv ? {
|
|
2756
2756
|
name: "optionCsv",
|
|
2757
|
-
fn:
|
|
2757
|
+
fn: Se(() => [
|
|
2758
2758
|
te(l.$slots, "optionCsv", {}, void 0, !0)
|
|
2759
2759
|
]),
|
|
2760
2760
|
key: "3"
|
|
2761
2761
|
} : void 0,
|
|
2762
2762
|
l.$slots.optionImg ? {
|
|
2763
2763
|
name: "optionImg",
|
|
2764
|
-
fn:
|
|
2764
|
+
fn: Se(() => [
|
|
2765
2765
|
te(l.$slots, "optionImg", {}, void 0, !0)
|
|
2766
2766
|
]),
|
|
2767
2767
|
key: "4"
|
|
2768
2768
|
} : void 0,
|
|
2769
2769
|
l.$slots.optionTable ? {
|
|
2770
2770
|
name: "optionTable",
|
|
2771
|
-
fn:
|
|
2771
|
+
fn: Se(() => [
|
|
2772
2772
|
te(l.$slots, "optionTable", {}, void 0, !0)
|
|
2773
2773
|
]),
|
|
2774
2774
|
key: "5"
|
|
2775
2775
|
} : void 0,
|
|
2776
2776
|
l.$slots.optionLabels ? {
|
|
2777
2777
|
name: "optionLabels",
|
|
2778
|
-
fn:
|
|
2778
|
+
fn: Se(() => [
|
|
2779
2779
|
te(l.$slots, "optionLabels", {}, void 0, !0)
|
|
2780
2780
|
]),
|
|
2781
2781
|
key: "6"
|
|
2782
2782
|
} : void 0,
|
|
2783
2783
|
l.$slots.optionStack ? {
|
|
2784
2784
|
name: "optionStack",
|
|
2785
|
-
fn:
|
|
2785
|
+
fn: Se(() => [
|
|
2786
2786
|
te(l.$slots, "optionStack", {}, void 0, !0)
|
|
2787
2787
|
]),
|
|
2788
2788
|
key: "7"
|
|
2789
2789
|
} : void 0,
|
|
2790
2790
|
l.$slots.optionFullscreen ? {
|
|
2791
2791
|
name: "optionFullscreen",
|
|
2792
|
-
fn:
|
|
2792
|
+
fn: Se(({ toggleFullscreen: e, isFullscreen: i }) => [
|
|
2793
2793
|
te(l.$slots, "optionFullscreen", Yt(dl({ toggleFullscreen: e, isFullscreen: i })), void 0, !0)
|
|
2794
2794
|
]),
|
|
2795
2795
|
key: "8"
|
|
2796
2796
|
} : void 0,
|
|
2797
2797
|
l.$slots.optionAnnotator ? {
|
|
2798
2798
|
name: "optionAnnotator",
|
|
2799
|
-
fn:
|
|
2799
|
+
fn: Se(({ toggleAnnotator: e, isAnnotator: i }) => [
|
|
2800
2800
|
te(l.$slots, "optionAnnotator", Yt(dl({ toggleAnnotator: e, isAnnotator: i })), void 0, !0)
|
|
2801
2801
|
]),
|
|
2802
2802
|
key: "9"
|
|
@@ -2804,7 +2804,7 @@ const _n = {
|
|
|
2804
2804
|
]), 1032, ["backgroundColor", "color", "isPrinting", "isImaging", "uid", "hasTooltip", "hasPdf", "hasXls", "hasImg", "hasLabel", "hasTable", "hasStack", "hasFullscreen", "isStacked", "isFullscreen", "chartElement", "position", "isTooltip", "titles", "hasAnnotator", "isAnnotation", "callbacks", "tableDialog", "printScale", "onGeneratePdf", "onGenerateImage", "style"])) : g("", !0),
|
|
2805
2805
|
(n(), u("svg", {
|
|
2806
2806
|
ref_key: "svgRef",
|
|
2807
|
-
ref:
|
|
2807
|
+
ref: _e,
|
|
2808
2808
|
xmlns: "http://www.w3.org/2000/svg",
|
|
2809
2809
|
class: Ze([{ "vue-data-ui-fullscreen--on": Pe.value, "vue-data-ui-fulscreen--off": !Pe.value }, "vue-ui-xy-svg vue-data-ui-svg"]),
|
|
2810
2810
|
width: "100%",
|
|
@@ -2827,12 +2827,12 @@ const _n = {
|
|
|
2827
2827
|
ref: Al,
|
|
2828
2828
|
class: "vue-data-ui-g"
|
|
2829
2829
|
}, [
|
|
2830
|
-
ml(h(
|
|
2830
|
+
ml(h($t)),
|
|
2831
2831
|
l.$slots["chart-background"] ? (n(), u("foreignObject", {
|
|
2832
2832
|
key: 0,
|
|
2833
2833
|
x: c.value.left + ue.value < 0 ? 0 : c.value.left + ue.value,
|
|
2834
2834
|
y: c.value.top,
|
|
2835
|
-
width: c.value.width - (t.value.chart.grid.position === "middle" ? 0 : c.value.width /
|
|
2835
|
+
width: c.value.width - (t.value.chart.grid.position === "middle" ? 0 : c.value.width / $.value) < 0 ? 0 : c.value.width - (t.value.chart.grid.position === "middle" ? 0 : c.value.width / $.value),
|
|
2836
2836
|
height: c.value.height < 0 ? 0 : c.value.height,
|
|
2837
2837
|
style: {
|
|
2838
2838
|
pointerEvents: "none"
|
|
@@ -2840,7 +2840,7 @@ const _n = {
|
|
|
2840
2840
|
}, [
|
|
2841
2841
|
te(l.$slots, "chart-background", {}, void 0, !0)
|
|
2842
2842
|
], 8, xu)) : g("", !0),
|
|
2843
|
-
|
|
2843
|
+
$.value > 0 ? (n(), u("g", bu, [
|
|
2844
2844
|
k("g", yu, [
|
|
2845
2845
|
t.value.chart.grid.labels.xAxis.showBaseline ? (n(), u("line", {
|
|
2846
2846
|
key: 0,
|
|
@@ -3032,41 +3032,41 @@ const _n = {
|
|
|
3032
3032
|
transition: "none",
|
|
3033
3033
|
opacity: e.from + a >= w.value.start && e.from + a <= w.value.end - 1 ? 1 : 0
|
|
3034
3034
|
}),
|
|
3035
|
-
x: c.value.left + c.value.width /
|
|
3035
|
+
x: c.value.left + c.value.width / $.value * (e.from + a - w.value.start),
|
|
3036
3036
|
y: c.value.top,
|
|
3037
3037
|
height: c.value.height < 0 ? 10 : c.value.height,
|
|
3038
|
-
width: c.value.width /
|
|
3038
|
+
width: c.value.width / $.value < 0 ? 1e-5 : c.value.width / $.value,
|
|
3039
3039
|
fill: h(vt)(e.color, e.opacity)
|
|
3040
3040
|
}, null, 12, qu)
|
|
3041
3041
|
]))), 256)),
|
|
3042
3042
|
(n(!0), u(b, null, L(e.span, (i, a) => (n(), u("g", null, [
|
|
3043
3043
|
e.caption.text && a === 0 ? (n(), u("foreignObject", {
|
|
3044
3044
|
key: 0,
|
|
3045
|
-
x: c.value.left + c.value.width /
|
|
3045
|
+
x: c.value.left + c.value.width / $.value * (e.from + a - w.value.start) - (e.caption.width === "auto" ? 0 : e.caption.width / 2 - c.value.width / $.value * e.span / 2),
|
|
3046
3046
|
y: c.value.top + e.caption.offsetY,
|
|
3047
3047
|
style: C({
|
|
3048
3048
|
overflow: "visible",
|
|
3049
3049
|
opacity: e.to >= w.value.start && e.from < w.value.end ? 1 : 0
|
|
3050
3050
|
}),
|
|
3051
3051
|
height: "1",
|
|
3052
|
-
width: e.caption.width === "auto" ? c.value.width /
|
|
3052
|
+
width: e.caption.width === "auto" ? c.value.width / $.value * e.span : e.caption.width
|
|
3053
3053
|
}, [
|
|
3054
3054
|
k("div", {
|
|
3055
3055
|
style: C(`padding:${e.caption.padding}px;text-align:${e.caption.textAlign};font-size:${e.caption.fontSize}px;color:${e.caption.color};font-weight:${e.caption.bold ? "bold" : "normal"}`)
|
|
3056
|
-
},
|
|
3056
|
+
}, ce(e.caption.text), 5)
|
|
3057
3057
|
], 12, Uu)) : g("", !0)
|
|
3058
3058
|
]))), 256))
|
|
3059
3059
|
], 64)) : g("", !0)
|
|
3060
3060
|
]))), 256)),
|
|
3061
3061
|
Bt.value ? (n(), u("g", Zu, [
|
|
3062
|
-
(n(!0), u(b, null, L(
|
|
3062
|
+
(n(!0), u(b, null, L($.value, (e, i) => (n(), u("g", {
|
|
3063
3063
|
key: `tooltip_trap_highlighter_${i}`
|
|
3064
3064
|
}, [
|
|
3065
3065
|
k("rect", {
|
|
3066
|
-
x: c.value.left + c.value.width /
|
|
3066
|
+
x: c.value.left + c.value.width / $.value * i,
|
|
3067
3067
|
y: c.value.top,
|
|
3068
3068
|
height: c.value.height < 0 ? 10 : c.value.height,
|
|
3069
|
-
width: c.value.width /
|
|
3069
|
+
width: c.value.width / $.value < 0 ? 1e-5 : c.value.width / $.value,
|
|
3070
3070
|
fill: [X.value, M.value, ae.value].includes(i) ? h(vt)(t.value.chart.highlighter.color, t.value.chart.highlighter.opacity) : "transparent",
|
|
3071
3071
|
style: { transition: "none !important", animation: "none !important" }
|
|
3072
3072
|
}, null, 8, Ku)
|
|
@@ -3091,7 +3091,7 @@ const _n = {
|
|
|
3091
3091
|
stroke: t.value.bar.border.useSerieColor ? e.color : t.value.bar.border.stroke,
|
|
3092
3092
|
"stroke-width": t.value.bar.border.strokeWidth,
|
|
3093
3093
|
style: C({
|
|
3094
|
-
transition: h(
|
|
3094
|
+
transition: h(be) || !t.value.bar.showTransition ? void 0 : `all ${t.value.bar.transitionDurationMs}ms ease-in-out`
|
|
3095
3095
|
})
|
|
3096
3096
|
}, null, 12, Ju)) : g("", !0),
|
|
3097
3097
|
Ye(a.value) && l.$slots.pattern ? (n(), u("rect", {
|
|
@@ -3104,7 +3104,7 @@ const _n = {
|
|
|
3104
3104
|
fill: `url(#pattern_${Z.value}_${e.slotAbsoluteIndex})`,
|
|
3105
3105
|
stroke: t.value.bar.border.useSerieColor ? e.color : t.value.bar.border.stroke,
|
|
3106
3106
|
"stroke-width": t.value.bar.border.strokeWidth,
|
|
3107
|
-
style: C({ transition: h(
|
|
3107
|
+
style: C({ transition: h(be) || !t.value.bar.showTransition ? void 0 : `all ${t.value.bar.transitionDurationMs}ms ease-in-out` })
|
|
3108
3108
|
}, null, 12, Qu)) : g("", !0),
|
|
3109
3109
|
a.comment && t.value.chart.comments.show ? (n(), u("foreignObject", {
|
|
3110
3110
|
key: 2,
|
|
@@ -3153,7 +3153,7 @@ const _n = {
|
|
|
3153
3153
|
y: h(ie)(e.plots).y2 - 6,
|
|
3154
3154
|
"font-size": A.value.plotLabels,
|
|
3155
3155
|
fill: e.color
|
|
3156
|
-
},
|
|
3156
|
+
}, ce(h(lt)({
|
|
3157
3157
|
v: h(ie)(e.plots).trend * 100,
|
|
3158
3158
|
s: "%",
|
|
3159
3159
|
r: 2
|
|
@@ -3173,8 +3173,8 @@ const _n = {
|
|
|
3173
3173
|
}, null, 8, ni)) : g("", !0),
|
|
3174
3174
|
t.value.chart.highlighter.useLine && (![null, void 0].includes(M.value) || ![null, void 0].includes(X.value)) ? (n(), u("g", ui, [
|
|
3175
3175
|
k("line", {
|
|
3176
|
-
x1: c.value.left + c.value.width /
|
|
3177
|
-
x2: c.value.left + c.value.width /
|
|
3176
|
+
x1: c.value.left + c.value.width / $.value * ((M.value !== null ? M.value : 0) || (X.value !== null ? X.value : 0)) + c.value.width / $.value / 2,
|
|
3177
|
+
x2: c.value.left + c.value.width / $.value * ((M.value !== null ? M.value : 0) || (X.value !== null ? X.value : 0)) + c.value.width / $.value / 2,
|
|
3178
3178
|
y1: h(j)(c.value.top),
|
|
3179
3179
|
y2: h(j)(c.value.bottom),
|
|
3180
3180
|
stroke: t.value.chart.highlighter.color,
|
|
@@ -3189,7 +3189,7 @@ const _n = {
|
|
|
3189
3189
|
style: { pointerEvents: "none", transition: "none", animation: "none !important" },
|
|
3190
3190
|
x: c.value.left + ue.value < 0 ? 0 : c.value.left + ue.value,
|
|
3191
3191
|
y: c.value.top,
|
|
3192
|
-
width: c.value.width - (t.value.chart.grid.position === "middle" ? 0 : c.value.width /
|
|
3192
|
+
width: c.value.width - (t.value.chart.grid.position === "middle" ? 0 : c.value.width / $.value) < 0 ? 0 : c.value.width - (t.value.chart.grid.position === "middle" ? 0 : c.value.width / $.value),
|
|
3193
3193
|
height: c.value.height < 0 ? 0 : c.value.height,
|
|
3194
3194
|
fill: "transparent",
|
|
3195
3195
|
stroke: t.value.chart.grid.frame.stroke,
|
|
@@ -3224,7 +3224,7 @@ const _n = {
|
|
|
3224
3224
|
"font-size": A.value.dataLabels * 0.8,
|
|
3225
3225
|
"text-anchor": "middle",
|
|
3226
3226
|
transform: `translate(${e.x - A.value.dataLabels * 0.8 / 2 + ue.value}, ${p.value.isStacked ? c.value.bottom - e.yOffset - e.individualHeight / 2 : c.value.top + c.value.height / 2}) rotate(-90)`
|
|
3227
|
-
},
|
|
3227
|
+
}, ce(e.name) + " " + ce(e.scaleLabel && e.unique && e.scaleLabel !== e.id ? `-
|
|
3228
3228
|
${e.scaleLabel}` : ""), 9, ci),
|
|
3229
3229
|
(n(!0), u(b, null, L(e.yLabels, (i, a) => (n(), u(b, null, [
|
|
3230
3230
|
t.value.chart.grid.labels.yAxis.showCrosshairs ? (n(), u("line", {
|
|
@@ -3245,7 +3245,7 @@ const _n = {
|
|
|
3245
3245
|
"font-size": A.value.dataLabels,
|
|
3246
3246
|
"text-anchor": "end",
|
|
3247
3247
|
fill: e.color
|
|
3248
|
-
},
|
|
3248
|
+
}, ce(h(Ae)(
|
|
3249
3249
|
t.value.chart.grid.labels.yAxis.formatter,
|
|
3250
3250
|
i.value,
|
|
3251
3251
|
h(lt)({
|
|
@@ -3278,7 +3278,7 @@ const _n = {
|
|
|
3278
3278
|
"font-size": A.value.dataLabels,
|
|
3279
3279
|
"text-anchor": "end",
|
|
3280
3280
|
fill: t.value.chart.grid.labels.color
|
|
3281
|
-
},
|
|
3281
|
+
}, ce(Ye(e.value) ? h(Ae)(
|
|
3282
3282
|
t.value.chart.grid.labels.yAxis.formatter,
|
|
3283
3283
|
e.value,
|
|
3284
3284
|
h(lt)({
|
|
@@ -3306,7 +3306,7 @@ const _n = {
|
|
|
3306
3306
|
radius: M.value !== null && M.value === r || X.value !== null && X.value === r ? (De.value.plot || 6) * 1.5 : De.value.plot || 6,
|
|
3307
3307
|
stroke: t.value.plot.dot.useSerieColor ? t.value.chart.backgroundColor : e.color,
|
|
3308
3308
|
strokeWidth: t.value.plot.dot.strokeWidth,
|
|
3309
|
-
transition: h(
|
|
3309
|
+
transition: h(be) || !t.value.plot.showTransition || M.value !== null && M.value === r || X.value !== null && X.value === r ? void 0 : `all ${t.value.plot.transitionDurationMs}ms ease-in-out`
|
|
3310
3310
|
}, null, 8, ["shape", "color", "plot", "radius", "stroke", "strokeWidth", "transition"])) : g("", !0),
|
|
3311
3311
|
a.comment && t.value.chart.comments.show ? (n(), u("foreignObject", {
|
|
3312
3312
|
key: 1,
|
|
@@ -3357,7 +3357,7 @@ const _n = {
|
|
|
3357
3357
|
y: h(ie)(e.plots).y2 - 6,
|
|
3358
3358
|
"font-size": A.value.plotLabels,
|
|
3359
3359
|
fill: e.color
|
|
3360
|
-
},
|
|
3360
|
+
}, ce(h(lt)({
|
|
3361
3361
|
v: h(ie)(e.plots).trend * 100,
|
|
3362
3362
|
s: "%",
|
|
3363
3363
|
r: 2
|
|
@@ -3376,7 +3376,7 @@ const _n = {
|
|
|
3376
3376
|
"stroke-width": t.value.line.strokeWidth + 1,
|
|
3377
3377
|
"stroke-dasharray": e.dashed ? t.value.line.strokeWidth * 2 : 0,
|
|
3378
3378
|
fill: "none",
|
|
3379
|
-
style: C({ transition: h(
|
|
3379
|
+
style: C({ transition: h(be) || !t.value.line.showTransition ? void 0 : `all ${t.value.line.transitionDurationMs}ms ease-in-out` })
|
|
3380
3380
|
}, null, 12, wi)) : e.plots.length > 1 && e.straight ? (n(), u("path", {
|
|
3381
3381
|
key: 1,
|
|
3382
3382
|
d: `M${e.straight}`,
|
|
@@ -3386,7 +3386,7 @@ const _n = {
|
|
|
3386
3386
|
fill: "none",
|
|
3387
3387
|
"stroke-linecap": "round",
|
|
3388
3388
|
"stroke-linejoin": "round",
|
|
3389
|
-
style: C({ transition: h(
|
|
3389
|
+
style: C({ transition: h(be) || !t.value.line.showTransition ? void 0 : `all ${t.value.line.transitionDurationMs}ms ease-in-out` })
|
|
3390
3390
|
}, null, 12, Si)) : g("", !0)
|
|
3391
3391
|
], 6))), 128)),
|
|
3392
3392
|
l.$slots.pattern ? (n(), u("defs", $i, [
|
|
@@ -3402,7 +3402,7 @@ const _n = {
|
|
|
3402
3402
|
"fill-opacity": t.value.line.interLine.fillOpacity,
|
|
3403
3403
|
stroke: "none",
|
|
3404
3404
|
"pointer-events": "none",
|
|
3405
|
-
style: C({ transition: h(
|
|
3405
|
+
style: C({ transition: h(be) || !t.value.line.showTransition ? void 0 : `all ${t.value.line.transitionDurationMs}ms ease-in-out` })
|
|
3406
3406
|
}, null, 12, Mi))), 128))
|
|
3407
3407
|
])) : g("", !0),
|
|
3408
3408
|
(n(!0), u(b, null, L(Re.value, (e, i) => (n(), u("g", {
|
|
@@ -3416,26 +3416,26 @@ const _n = {
|
|
|
3416
3416
|
key: 0,
|
|
3417
3417
|
d: a,
|
|
3418
3418
|
fill: t.value.line.area.useGradient ? `url(#areaGradient_${i}_${Z.value})` : h(vt)(e.color, t.value.line.area.opacity),
|
|
3419
|
-
style: C({ transition: h(
|
|
3419
|
+
style: C({ transition: h(be) || !t.value.line.showTransition ? void 0 : `all ${t.value.line.transitionDurationMs}ms ease-in-out` })
|
|
3420
3420
|
}, null, 12, Ci)) : g("", !0),
|
|
3421
3421
|
l.$slots.pattern && a ? (n(), u("path", {
|
|
3422
3422
|
key: 1,
|
|
3423
3423
|
d: a,
|
|
3424
3424
|
fill: `url(#pattern_${Z.value}_${e.slotAbsoluteIndex})`,
|
|
3425
|
-
style: C({ transition: h(
|
|
3425
|
+
style: C({ transition: h(be) || !t.value.line.showTransition ? void 0 : `all ${t.value.line.transitionDurationMs}ms ease-in-out` })
|
|
3426
3426
|
}, null, 12, Ai)) : g("", !0)
|
|
3427
3427
|
], 64))), 128)) : (n(!0), u(b, { key: 1 }, L(e.area.split(";"), (a, r) => (n(), u(b, { key: r }, [
|
|
3428
3428
|
a ? (n(), u("path", {
|
|
3429
3429
|
key: 0,
|
|
3430
3430
|
d: `M${a}Z`,
|
|
3431
3431
|
fill: t.value.line.area.useGradient ? `url(#areaGradient_${i}_${Z.value})` : h(vt)(e.color, t.value.line.area.opacity),
|
|
3432
|
-
style: C({ transition: h(
|
|
3432
|
+
style: C({ transition: h(be) || !t.value.line.showTransition ? void 0 : `all ${t.value.line.transitionDurationMs}ms ease-in-out` })
|
|
3433
3433
|
}, null, 12, Ti)) : g("", !0),
|
|
3434
3434
|
l.$slots.pattern && a ? (n(), u("path", {
|
|
3435
3435
|
key: 1,
|
|
3436
3436
|
d: `M${a}Z`,
|
|
3437
3437
|
fill: `url(#pattern_${Z.value}_${e.slotAbsoluteIndex})`,
|
|
3438
|
-
style: C({ transition: h(
|
|
3438
|
+
style: C({ transition: h(be) || !t.value.line.showTransition ? void 0 : `all ${t.value.line.transitionDurationMs}ms ease-in-out` })
|
|
3439
3439
|
}, null, 12, zi)) : g("", !0)
|
|
3440
3440
|
], 64))), 128))
|
|
3441
3441
|
])) : g("", !0),
|
|
@@ -3447,7 +3447,7 @@ const _n = {
|
|
|
3447
3447
|
"stroke-dasharray": e.dashed ? t.value.line.strokeWidth * 2 : 0,
|
|
3448
3448
|
fill: "none",
|
|
3449
3449
|
"stroke-linecap": "round",
|
|
3450
|
-
style: C({ transition: h(
|
|
3450
|
+
style: C({ transition: h(be) || !t.value.line.showTransition ? void 0 : `all ${t.value.line.transitionDurationMs}ms ease-in-out` })
|
|
3451
3451
|
}, null, 12, Ii)) : e.plots.length > 1 && e.straight ? (n(), u("path", {
|
|
3452
3452
|
key: 2,
|
|
3453
3453
|
d: `M${e.straight}`,
|
|
@@ -3457,7 +3457,7 @@ const _n = {
|
|
|
3457
3457
|
fill: "none",
|
|
3458
3458
|
"stroke-linecap": "round",
|
|
3459
3459
|
"stroke-linejoin": "round",
|
|
3460
|
-
style: C({ transition: h(
|
|
3460
|
+
style: C({ transition: h(be) || !t.value.line.showTransition ? void 0 : `all ${t.value.line.transitionDurationMs}ms ease-in-out` })
|
|
3461
3461
|
}, null, 12, Ni)) : g("", !0),
|
|
3462
3462
|
(n(!0), u(b, null, L(e.plots, (a, r) => (n(), u(b, {
|
|
3463
3463
|
key: `circle_line_${i}_${r}`
|
|
@@ -3470,7 +3470,7 @@ const _n = {
|
|
|
3470
3470
|
radius: M.value !== null && M.value === r || X.value !== null && X.value === r ? (De.value.line || 6) * 1.5 : (Ja(e.plots, r), De.value.line || 6),
|
|
3471
3471
|
stroke: t.value.line.dot.useSerieColor ? t.value.chart.backgroundColor : e.color,
|
|
3472
3472
|
strokeWidth: t.value.line.dot.strokeWidth,
|
|
3473
|
-
transition: h(
|
|
3473
|
+
transition: h(be) || !t.value.line.showTransition || M.value !== null && M.value === r || X.value !== null && X.value === r ? void 0 : `all ${t.value.line.transitionDurationMs}ms ease-in-out`
|
|
3474
3474
|
}, null, 8, ["shape", "color", "plot", "radius", "stroke", "strokeWidth", "transition"])) : g("", !0),
|
|
3475
3475
|
a.comment && t.value.chart.comments.show ? (n(), u("foreignObject", {
|
|
3476
3476
|
key: 1,
|
|
@@ -3521,7 +3521,7 @@ const _n = {
|
|
|
3521
3521
|
y: h(ie)(e.plots).y2 - 6,
|
|
3522
3522
|
"font-size": A.value.plotLabels,
|
|
3523
3523
|
fill: e.color
|
|
3524
|
-
},
|
|
3524
|
+
}, ce(h(lt)({
|
|
3525
3525
|
v: h(ie)(e.plots).trend * 100,
|
|
3526
3526
|
s: "%",
|
|
3527
3527
|
r: 2
|
|
@@ -3537,13 +3537,13 @@ const _n = {
|
|
|
3537
3537
|
}, [
|
|
3538
3538
|
a && (!Object.hasOwn(e, "dataLabels") || e.dataLabels === !0 || M.value !== null && M.value === r || X.value !== null && X.value === r) && t.value.bar.labels.show ? (n(), u("text", {
|
|
3539
3539
|
key: 0,
|
|
3540
|
-
x: p.value.useIndividualScale && p.value.isStacked ? a.x +
|
|
3540
|
+
x: p.value.useIndividualScale && p.value.isStacked ? a.x + he.value.line / 2 : na(a) + wl() / 2 - ia.value / 2,
|
|
3541
3541
|
y: h(U)(a.y) + (a.value >= 0 ? t.value.bar.labels.offsetY : -t.value.bar.labels.offsetY * 3),
|
|
3542
3542
|
"text-anchor": "middle",
|
|
3543
3543
|
"font-size": A.value.plotLabels,
|
|
3544
3544
|
fill: t.value.bar.labels.color,
|
|
3545
3545
|
style: C(`opacity:${E.value ? E.value === e.groupId ? 1 : 0.2 : 1};transition:opacity 0.2s ease-in-out`)
|
|
3546
|
-
},
|
|
3546
|
+
}, ce(Ye(a.value) ? h(Ae)(
|
|
3547
3547
|
t.value.bar.labels.formatter,
|
|
3548
3548
|
a.value,
|
|
3549
3549
|
h(lt)({
|
|
@@ -3559,14 +3559,14 @@ const _n = {
|
|
|
3559
3559
|
) : ""), 13, Di)) : g("", !0),
|
|
3560
3560
|
a && t.value.bar.serieName.show ? (n(), u("text", {
|
|
3561
3561
|
key: 1,
|
|
3562
|
-
x: p.value.useIndividualScale && p.value.isStacked ? a.x +
|
|
3562
|
+
x: p.value.useIndividualScale && p.value.isStacked ? a.x + he.value.line / 2 : a.x + wl() * 1.1,
|
|
3563
3563
|
y: a.y + (a.value > 0 ? t.value.bar.serieName.offsetY : -t.value.bar.serieName.offsetY * 3),
|
|
3564
3564
|
"text-anchor": "middle",
|
|
3565
3565
|
"font-size": A.value.plotLabels,
|
|
3566
3566
|
fill: t.value.bar.serieName.useSerieColor ? e.color : t.value.bar.serieName.color,
|
|
3567
3567
|
"font-weight": t.value.bar.serieName.bold ? "bold" : "normal",
|
|
3568
3568
|
style: C(`opacity:${E.value ? E.value === e.groupId ? 1 : 0.2 : 1};transition:opacity 0.2s ease-in-out`)
|
|
3569
|
-
},
|
|
3569
|
+
}, ce(t.value.bar.serieName.useAbbreviation ? h(nn)({
|
|
3570
3570
|
source: e.name,
|
|
3571
3571
|
length: t.value.bar.serieName.abbreviationSize
|
|
3572
3572
|
}) : e.name), 13, Wi)) : g("", !0)
|
|
@@ -3588,7 +3588,7 @@ const _n = {
|
|
|
3588
3588
|
"font-size": A.value.plotLabels,
|
|
3589
3589
|
fill: t.value.plot.labels.color,
|
|
3590
3590
|
style: C(`opacity:${E.value ? E.value === e.groupId ? 1 : 0.2 : 1};transition:opacity 0.2s ease-in-out`)
|
|
3591
|
-
},
|
|
3591
|
+
}, ce(Ye(a.value) ? h(Ae)(
|
|
3592
3592
|
t.value.plot.labels.formatter,
|
|
3593
3593
|
a.value,
|
|
3594
3594
|
h(lt)({
|
|
@@ -3688,7 +3688,7 @@ const _n = {
|
|
|
3688
3688
|
"font-size": A.value.plotLabels,
|
|
3689
3689
|
fill: t.value.line.labels.color,
|
|
3690
3690
|
style: C(`opacity:${E.value ? E.value === e.groupId ? 1 : 0.2 : 1};transition:opacity 0.2s ease-in-out`)
|
|
3691
|
-
},
|
|
3691
|
+
}, ce(Ye(a.value) ? h(Ae)(
|
|
3692
3692
|
t.value.line.labels.formatter,
|
|
3693
3693
|
a.value,
|
|
3694
3694
|
h(lt)({
|
|
@@ -3898,7 +3898,7 @@ const _n = {
|
|
|
3898
3898
|
transform: `translate(${t.value.chart.grid.labels.axis.fontSize}, ${c.value.top + c.value.height / 2}) rotate(-90)`,
|
|
3899
3899
|
"text-anchor": "middle",
|
|
3900
3900
|
style: { transition: "none" }
|
|
3901
|
-
},
|
|
3901
|
+
}, ce(t.value.chart.grid.labels.axis.yLabel), 9, fs)) : g("", !0),
|
|
3902
3902
|
t.value.chart.grid.labels.axis.xLabel ? (n(), u("text", {
|
|
3903
3903
|
key: 1,
|
|
3904
3904
|
ref_key: "xAxisLabel",
|
|
@@ -3908,22 +3908,22 @@ const _n = {
|
|
|
3908
3908
|
y: W.value - 3,
|
|
3909
3909
|
"font-size": A.value.yAxis,
|
|
3910
3910
|
fill: t.value.chart.grid.labels.color
|
|
3911
|
-
},
|
|
3911
|
+
}, ce(t.value.chart.grid.labels.axis.xLabel), 9, ms)) : g("", !0)
|
|
3912
3912
|
]),
|
|
3913
3913
|
t.value.chart.grid.labels.xAxisLabels.show ? (n(), u("g", {
|
|
3914
3914
|
key: 14,
|
|
3915
3915
|
ref_key: "timeLabelsEls",
|
|
3916
|
-
ref:
|
|
3916
|
+
ref: $e
|
|
3917
3917
|
}, [
|
|
3918
3918
|
l.$slots["time-label"] ? (n(!0), u(b, { key: 0 }, L(D.value, (e, i) => te(l.$slots, "time-label", Gt({
|
|
3919
3919
|
key: `time_label_${e.id}`,
|
|
3920
3920
|
ref_for: !0
|
|
3921
3921
|
}, {
|
|
3922
|
-
x: c.value.left + c.value.width /
|
|
3922
|
+
x: c.value.left + c.value.width / $.value * i + c.value.width / $.value / 2,
|
|
3923
3923
|
y: c.value.bottom,
|
|
3924
3924
|
fontSize: A.value.xAxis,
|
|
3925
3925
|
fill: t.value.chart.grid.labels.xAxisLabels.color,
|
|
3926
|
-
transform: `translate(${c.value.left + c.value.width /
|
|
3926
|
+
transform: `translate(${c.value.left + c.value.width / $.value * i + c.value.width / $.value / 2}, ${c.value.bottom + A.value.xAxis * 1.3 + t.value.chart.grid.labels.xAxisLabels.yOffset}), rotate(${t.value.chart.grid.labels.xAxisLabels.rotation})`,
|
|
3927
3927
|
absoluteIndex: e.absoluteIndex,
|
|
3928
3928
|
content: e.text,
|
|
3929
3929
|
textAnchor: t.value.chart.grid.labels.xAxisLabels.rotation > 0 ? "start" : t.value.chart.grid.labels.xAxisLabels.rotation < 0 ? "end" : "middle",
|
|
@@ -3939,7 +3939,7 @@ const _n = {
|
|
|
3939
3939
|
"text-anchor": t.value.chart.grid.labels.xAxisLabels.rotation > 0 ? "start" : t.value.chart.grid.labels.xAxisLabels.rotation < 0 ? "end" : "middle",
|
|
3940
3940
|
"font-size": A.value.xAxis,
|
|
3941
3941
|
fill: t.value.chart.grid.labels.xAxisLabels.color,
|
|
3942
|
-
transform: `translate(${c.value.left + c.value.width /
|
|
3942
|
+
transform: `translate(${c.value.left + c.value.width / $.value * i + c.value.width / $.value / 2}, ${c.value.bottom + A.value.xAxis * 1.5}), rotate(${t.value.chart.grid.labels.xAxisLabels.rotation})`,
|
|
3943
3943
|
style: C({
|
|
3944
3944
|
cursor: pl() ? "pointer" : "default"
|
|
3945
3945
|
}),
|
|
@@ -3950,19 +3950,19 @@ const _n = {
|
|
|
3950
3950
|
x: 0,
|
|
3951
3951
|
y: 0
|
|
3952
3952
|
}),
|
|
3953
|
-
onClick: () =>
|
|
3953
|
+
onClick: () => we(e, i)
|
|
3954
3954
|
}, null, 12, xs)) : (n(), u("text", {
|
|
3955
3955
|
key: 0,
|
|
3956
3956
|
class: "vue-data-ui-time-label",
|
|
3957
3957
|
"text-anchor": t.value.chart.grid.labels.xAxisLabels.rotation > 0 ? "start" : t.value.chart.grid.labels.xAxisLabels.rotation < 0 ? "end" : "middle",
|
|
3958
3958
|
"font-size": A.value.xAxis,
|
|
3959
3959
|
fill: t.value.chart.grid.labels.xAxisLabels.color,
|
|
3960
|
-
transform: `translate(${c.value.left + c.value.width /
|
|
3960
|
+
transform: `translate(${c.value.left + c.value.width / $.value * i + c.value.width / $.value / 2}, ${c.value.bottom + A.value.xAxis * 1.5}), rotate(${t.value.chart.grid.labels.xAxisLabels.rotation})`,
|
|
3961
3961
|
style: C({
|
|
3962
3962
|
cursor: pl() ? "pointer" : "default"
|
|
3963
3963
|
}),
|
|
3964
|
-
onClick: () =>
|
|
3965
|
-
},
|
|
3964
|
+
onClick: () => we(e, i)
|
|
3965
|
+
}, ce(e.text || ""), 13, gs))
|
|
3966
3966
|
], 64)) : g("", !0)
|
|
3967
3967
|
]))), 128))
|
|
3968
3968
|
], 512)) : g("", !0),
|
|
@@ -4016,7 +4016,7 @@ const _n = {
|
|
|
4016
4016
|
"font-size": e.config.label.fontSize,
|
|
4017
4017
|
fill: e.config.label.color,
|
|
4018
4018
|
"text-anchor": e.config.label.textAnchor
|
|
4019
|
-
},
|
|
4019
|
+
}, ce(e.config.label.text), 9, ws)) : g("", !0)
|
|
4020
4020
|
]))), 128))
|
|
4021
4021
|
])) : g("", !0),
|
|
4022
4022
|
t.value.chart.timeTag.show && (![null, void 0].includes(M.value) || ![null, void 0].includes(X.value)) ? (n(), u("g", Ss, [
|
|
@@ -4036,7 +4036,7 @@ const _n = {
|
|
|
4036
4036
|
}, null, 12, _s)
|
|
4037
4037
|
], 8, $s)),
|
|
4038
4038
|
k("circle", {
|
|
4039
|
-
cx: c.value.left + c.value.width /
|
|
4039
|
+
cx: c.value.left + c.value.width / $.value * ((M.value !== null ? M.value : 0) || (X.value !== null ? X.value : 0)) + c.value.width / $.value / 2,
|
|
4040
4040
|
cy: c.value.bottom,
|
|
4041
4041
|
r: t.value.chart.timeTag.circleMarker.radius,
|
|
4042
4042
|
fill: t.value.chart.timeTag.circleMarker.color
|
|
@@ -4068,14 +4068,14 @@ const _n = {
|
|
|
4068
4068
|
style: C({
|
|
4069
4069
|
position: "fixed",
|
|
4070
4070
|
top: h(Xt)({
|
|
4071
|
-
svgElement:
|
|
4071
|
+
svgElement: _e.value,
|
|
4072
4072
|
x: c.value.right + t.value.line.tag.fontSize / 1.5,
|
|
4073
4073
|
y: a.y,
|
|
4074
4074
|
element: ot.value[`${i}_${r}_right_line`],
|
|
4075
4075
|
position: "right"
|
|
4076
4076
|
}).top + "px",
|
|
4077
4077
|
left: h(Xt)({
|
|
4078
|
-
svgElement:
|
|
4078
|
+
svgElement: _e.value,
|
|
4079
4079
|
x: c.value.right + t.value.line.tag.fontSize / 1.5,
|
|
4080
4080
|
y: a.y,
|
|
4081
4081
|
element: ot.value[`${i}_${r}_right_line`],
|
|
@@ -4120,14 +4120,14 @@ const _n = {
|
|
|
4120
4120
|
style: C({
|
|
4121
4121
|
position: "fixed",
|
|
4122
4122
|
top: h(Xt)({
|
|
4123
|
-
svgElement:
|
|
4123
|
+
svgElement: _e.value,
|
|
4124
4124
|
x: c.value.left - t.value.line.tag.fontSize / 1.5,
|
|
4125
4125
|
y: a.y,
|
|
4126
4126
|
element: ot.value[`${i}_${r}_left_line`],
|
|
4127
4127
|
position: "left"
|
|
4128
4128
|
}).top + "px",
|
|
4129
4129
|
left: h(Xt)({
|
|
4130
|
-
svgElement:
|
|
4130
|
+
svgElement: _e.value,
|
|
4131
4131
|
x: c.value.left - t.value.line.tag.fontSize / 1.5,
|
|
4132
4132
|
y: a.y,
|
|
4133
4133
|
element: ot.value[`${i}_${r}_left_line`],
|
|
@@ -4180,14 +4180,14 @@ const _n = {
|
|
|
4180
4180
|
style: C({
|
|
4181
4181
|
position: "fixed",
|
|
4182
4182
|
top: h(Xt)({
|
|
4183
|
-
svgElement:
|
|
4183
|
+
svgElement: _e.value,
|
|
4184
4184
|
x: c.value.right + t.value.plot.tag.fontSize / 1.5,
|
|
4185
4185
|
y: a.y,
|
|
4186
4186
|
element: ot.value[`${i}_${r}_right_plot`],
|
|
4187
4187
|
position: "right"
|
|
4188
4188
|
}).top + "px",
|
|
4189
4189
|
left: h(Xt)({
|
|
4190
|
-
svgElement:
|
|
4190
|
+
svgElement: _e.value,
|
|
4191
4191
|
x: c.value.right + t.value.plot.tag.fontSize / 1.5,
|
|
4192
4192
|
y: a.y,
|
|
4193
4193
|
element: ot.value[`${i}_${r}_right_plot`],
|
|
@@ -4232,14 +4232,14 @@ const _n = {
|
|
|
4232
4232
|
style: C({
|
|
4233
4233
|
position: "fixed",
|
|
4234
4234
|
top: h(Xt)({
|
|
4235
|
-
svgElement:
|
|
4235
|
+
svgElement: _e.value,
|
|
4236
4236
|
x: c.value.left - t.value.plot.tag.fontSize / 1.5,
|
|
4237
4237
|
y: a.y,
|
|
4238
4238
|
element: ot.value[`${i}_${r}_left_plot`],
|
|
4239
4239
|
position: "left"
|
|
4240
4240
|
}).top + "px",
|
|
4241
4241
|
left: h(Xt)({
|
|
4242
|
-
svgElement:
|
|
4242
|
+
svgElement: _e.value,
|
|
4243
4243
|
x: c.value.left - t.value.plot.tag.fontSize / 1.5,
|
|
4244
4244
|
y: a.y,
|
|
4245
4245
|
element: ot.value[`${i}_${r}_left_plot`],
|
|
@@ -4277,7 +4277,7 @@ const _n = {
|
|
|
4277
4277
|
], 4)) : g("", !0)
|
|
4278
4278
|
], 64))), 128))
|
|
4279
4279
|
], 64))), 128)),
|
|
4280
|
-
t.value.chart.zoom.show && Qe.value > 6 &&
|
|
4280
|
+
t.value.chart.zoom.show && Qe.value > 6 && Lt.value && se.value ? (n(), ct(hu, {
|
|
4281
4281
|
key: 5,
|
|
4282
4282
|
ref_key: "chartSlicer",
|
|
4283
4283
|
ref: Ke,
|
|
@@ -4313,7 +4313,7 @@ const _n = {
|
|
|
4313
4313
|
minimapIndicatorColor: t.value.chart.zoom.minimap.indicatorColor,
|
|
4314
4314
|
verticalHandles: t.value.chart.zoom.minimap.verticalHandles,
|
|
4315
4315
|
refreshStartPoint: t.value.chart.zoom.startIndex !== null ? t.value.chart.zoom.startIndex : 0,
|
|
4316
|
-
refreshEndPoint: t.value.chart.zoom.endIndex !== null ? t.value.chart.zoom.endIndex + 1 : Math.max(
|
|
4316
|
+
refreshEndPoint: t.value.chart.zoom.endIndex !== null ? t.value.chart.zoom.endIndex + 1 : Math.max(...S.dataset.map((e) => yt(e.series).length)),
|
|
4317
4317
|
enableRangeHandles: t.value.chart.zoom.enableRangeHandles,
|
|
4318
4318
|
enableSelectionDrag: t.value.chart.zoom.enableSelectionDrag,
|
|
4319
4319
|
minimapCompact: t.value.chart.zoom.minimap.compact,
|
|
@@ -4330,7 +4330,7 @@ const _n = {
|
|
|
4330
4330
|
timeLabels: m.value,
|
|
4331
4331
|
isPreview: ea.value
|
|
4332
4332
|
}, {
|
|
4333
|
-
"reset-action":
|
|
4333
|
+
"reset-action": Se(({ reset: e }) => [
|
|
4334
4334
|
te(l.$slots, "reset-action", Yt(dl({ reset: e })), void 0, !0)
|
|
4335
4335
|
]),
|
|
4336
4336
|
_: 3
|
|
@@ -4354,7 +4354,7 @@ const _n = {
|
|
|
4354
4354
|
(n(!0), u(b, null, L(et.value, (e, i) => (n(), u("div", {
|
|
4355
4355
|
key: `div_legend_item_${i}`,
|
|
4356
4356
|
onClick: (a) => Ga(e),
|
|
4357
|
-
class: Ze({ "vue-ui-xy-legend-item-alone": et.value.length === 1, "vue-ui-xy-legend-item": !0, "vue-ui-xy-legend-item-segregated":
|
|
4357
|
+
class: Ze({ "vue-ui-xy-legend-item-alone": et.value.length === 1, "vue-ui-xy-legend-item": !0, "vue-ui-xy-legend-item-segregated": de.value.includes(e.id) })
|
|
4358
4358
|
}, [
|
|
4359
4359
|
Qt.value[e.type] === "line" ? (n(), u("svg", Ws, [
|
|
4360
4360
|
k("rect", {
|
|
@@ -4406,7 +4406,7 @@ const _n = {
|
|
|
4406
4406
|
])),
|
|
4407
4407
|
k("span", {
|
|
4408
4408
|
style: C(`color:${t.value.chart.legend.color}`)
|
|
4409
|
-
},
|
|
4409
|
+
}, ce(e.name), 5)
|
|
4410
4410
|
], 10, Ds))), 128))
|
|
4411
4411
|
], 4)) : (n(), u("div", {
|
|
4412
4412
|
key: 1,
|
|
@@ -4424,7 +4424,7 @@ const _n = {
|
|
|
4424
4424
|
}, [
|
|
4425
4425
|
te(l.$slots, "source", {}, void 0, !0)
|
|
4426
4426
|
], 512)) : g("", !0),
|
|
4427
|
-
ml(h(
|
|
4427
|
+
ml(h(ve), {
|
|
4428
4428
|
show: p.value.showTooltip && xl.value,
|
|
4429
4429
|
backgroundColor: t.value.chart.tooltip.backgroundColor,
|
|
4430
4430
|
color: t.value.chart.tooltip.color,
|
|
@@ -4444,20 +4444,20 @@ const _n = {
|
|
|
4444
4444
|
smoothForce: t.value.chart.tooltip.smoothForce,
|
|
4445
4445
|
smoothSnapThreshold: t.value.chart.tooltip.smoothSnapThreshold
|
|
4446
4446
|
}, {
|
|
4447
|
-
"tooltip-before":
|
|
4447
|
+
"tooltip-before": Se(() => [
|
|
4448
4448
|
te(l.$slots, "tooltip-before", Yt(dl({ ...ja.value })), void 0, !0)
|
|
4449
4449
|
]),
|
|
4450
|
-
"tooltip-after":
|
|
4450
|
+
"tooltip-after": Se(() => [
|
|
4451
4451
|
te(l.$slots, "tooltip-after", Yt(dl({ ...ja.value })), void 0, !0)
|
|
4452
4452
|
]),
|
|
4453
4453
|
_: 3
|
|
4454
4454
|
}, 8, ["show", "backgroundColor", "color", "fontSize", "borderRadius", "borderColor", "borderWidth", "backgroundOpacity", "position", "offsetY", "parent", "content", "isFullscreen", "isCustom", "smooth", "backdropFilter", "smoothForce", "smoothSnapThreshold"]),
|
|
4455
|
-
|
|
4455
|
+
Lt.value && t.value.chart.userOptions.buttons.table ? (n(), ct(Ko(Yl.value.component), Gt({ key: 8 }, Yl.value.props, {
|
|
4456
4456
|
ref_key: "tableUnit",
|
|
4457
4457
|
ref: Je,
|
|
4458
4458
|
onClose: vo
|
|
4459
4459
|
}), xo({
|
|
4460
|
-
content:
|
|
4460
|
+
content: Se(() => [
|
|
4461
4461
|
k("div", {
|
|
4462
4462
|
style: C(`${h(Bl) || t.value.table.useDialog ? "" : "max-height:400px"};${t.value.table.useDialog ? "height: fit-content; " : ""};overflow:auto;width:100%;${t.value.table.useDialog ? "" : "margin-top:48px"}`)
|
|
4463
4463
|
}, [
|
|
@@ -4472,7 +4472,7 @@ const _n = {
|
|
|
4472
4472
|
onClick: s[5] || (s[5] = (e) => He.value = !He.value),
|
|
4473
4473
|
style: { cursor: "pointer" }
|
|
4474
4474
|
}, [
|
|
4475
|
-
ml(h(
|
|
4475
|
+
ml(h(ge), {
|
|
4476
4476
|
name: "chartLine",
|
|
4477
4477
|
size: 20,
|
|
4478
4478
|
stroke: t.value.chart.color
|
|
@@ -4493,11 +4493,11 @@ const _n = {
|
|
|
4493
4493
|
withCloseButton: !t.value.table.useDialog,
|
|
4494
4494
|
onClose: vo
|
|
4495
4495
|
}, {
|
|
4496
|
-
th:
|
|
4496
|
+
th: Se(({ th: e }) => [
|
|
4497
4497
|
k("div", { innerHTML: e }, null, 8, Ks)
|
|
4498
4498
|
]),
|
|
4499
|
-
td:
|
|
4500
|
-
bo(
|
|
4499
|
+
td: Se(({ td: e }) => [
|
|
4500
|
+
bo(ce(isNaN(Number(e)) ? e : h(lt)({
|
|
4501
4501
|
p: t.value.chart.labels.prefix,
|
|
4502
4502
|
v: e,
|
|
4503
4503
|
s: t.value.chart.labels.suffix,
|
|
@@ -4512,20 +4512,20 @@ const _n = {
|
|
|
4512
4512
|
}, [
|
|
4513
4513
|
t.value.table.useDialog ? {
|
|
4514
4514
|
name: "title",
|
|
4515
|
-
fn:
|
|
4516
|
-
bo(
|
|
4515
|
+
fn: Se(() => [
|
|
4516
|
+
bo(ce(Yl.value.title), 1)
|
|
4517
4517
|
]),
|
|
4518
4518
|
key: "0"
|
|
4519
4519
|
} : void 0,
|
|
4520
4520
|
t.value.table.useDialog ? {
|
|
4521
4521
|
name: "actions",
|
|
4522
|
-
fn:
|
|
4522
|
+
fn: Se(() => [
|
|
4523
4523
|
k("button", {
|
|
4524
4524
|
tabindex: "0",
|
|
4525
4525
|
class: "vue-ui-user-options-button",
|
|
4526
4526
|
onClick: s[3] || (s[3] = (e) => Ta(t.value.chart.userOptions.callbacks.csv))
|
|
4527
4527
|
}, [
|
|
4528
|
-
ml(h(
|
|
4528
|
+
ml(h(ge), {
|
|
4529
4529
|
name: "excel",
|
|
4530
4530
|
stroke: Yl.value.props.color
|
|
4531
4531
|
}, null, 8, ["stroke"])
|
|
@@ -4534,7 +4534,7 @@ const _n = {
|
|
|
4534
4534
|
key: "1"
|
|
4535
4535
|
} : void 0
|
|
4536
4536
|
]), 1040)) : g("", !0),
|
|
4537
|
-
h(
|
|
4537
|
+
h(be) ? (n(), ct(gn, { key: 9 })) : g("", !0)
|
|
4538
4538
|
], 46, fu));
|
|
4539
4539
|
}
|
|
4540
4540
|
}, hr = /* @__PURE__ */ Lo(Js, [["__scopeId", "data-v-d218b34b"]]);
|