vue-data-ui 3.4.6 → 3.4.8
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-BSldVhnp.js → PackageVersion-D-auaEEJ.js} +1 -1
- package/dist/{UserOptions-CnzumGJj.js → UserOptions-CGnQt6Fd.js} +91 -91
- package/dist/components/vue-ui-3d-bar.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-dashboard.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-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-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-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/{vue-data-ui-BCOCglbX.js → vue-data-ui-CzqHcPqG.js} +55 -55
- package/dist/vue-data-ui.js +55 -55
- package/dist/{vue-ui-3d-bar-E-nuI5P-.js → vue-ui-3d-bar-CwXiD8zD.js} +49 -42
- package/dist/{vue-ui-age-pyramid-DfN03uDZ.js → vue-ui-age-pyramid-DlEPlWmV.js} +12 -5
- package/dist/{vue-ui-bullet-DVOmSxcg.js → vue-ui-bullet-DtzpeIu4.js} +59 -52
- package/dist/{vue-ui-candlestick-C0tlhgvf.js → vue-ui-candlestick-DzoiyaeB.js} +56 -49
- package/dist/{vue-ui-carousel-table-Bwf70lBb.js → vue-ui-carousel-table-BqRERrjs.js} +79 -72
- package/dist/{vue-ui-chestnut-CzNj08EH.js → vue-ui-chestnut-CzBGckif.js} +77 -70
- package/dist/{vue-ui-chord-CQAAGCjj.js → vue-ui-chord-B4waG93A.js} +71 -64
- package/dist/{vue-ui-circle-pack-8Ut7fxPJ.js → vue-ui-circle-pack-DiTw_p5r.js} +58 -51
- package/dist/{vue-ui-dashboard-CpG2L2Xk.js → vue-ui-dashboard-Bt-MUKqy.js} +56 -56
- package/dist/{vue-ui-donut-acdGdmqY.js → vue-ui-donut-Bc492JeS.js} +95 -88
- package/dist/{vue-ui-donut-evolution-J2tTLcht.js → vue-ui-donut-evolution-D6TaZK2x.js} +80 -73
- package/dist/{vue-ui-dumbbell-DhDvD0DH.js → vue-ui-dumbbell-BlZr68Sq.js} +12 -5
- package/dist/{vue-ui-flow-Du9joQEy.js → vue-ui-flow-ByEP18dA.js} +205 -198
- package/dist/{vue-ui-funnel-BPccZaVG.js → vue-ui-funnel-BU7d_U6T.js} +98 -91
- package/dist/{vue-ui-galaxy-D69X300F.js → vue-ui-galaxy-CpVrxaTr.js} +140 -133
- package/dist/{vue-ui-gauge-C_tPaN05.js → vue-ui-gauge-B9Z4EXoj.js} +108 -101
- package/dist/{vue-ui-gizmo-Bsc620Bs.js → vue-ui-gizmo-T1paJEJ3.js} +1 -1
- package/dist/{vue-ui-heatmap-CRoQ0Xo1.js → vue-ui-heatmap-Uw83eEMz.js} +97 -90
- package/dist/{vue-ui-history-plot-PQT8iCyT.js → vue-ui-history-plot-C93VwVCY.js} +41 -34
- package/dist/{vue-ui-molecule-C0hQ1BHF.js → vue-ui-molecule-CFMWwXFN.js} +94 -87
- package/dist/{vue-ui-mood-radar-DMng4w8x.js → vue-ui-mood-radar-FkVaaOVG.js} +71 -64
- package/dist/{vue-ui-nested-donuts-DtnysjV9.js → vue-ui-nested-donuts-Cyi98NXq.js} +93 -86
- package/dist/{vue-ui-onion-C0Z5_zay.js → vue-ui-onion-BCENNhsY.js} +82 -75
- package/dist/{vue-ui-parallel-coordinate-plot-C0grlzOd.js → vue-ui-parallel-coordinate-plot-Dca9wkD0.js} +116 -109
- package/dist/{vue-ui-quadrant-BJGF3wuL.js → vue-ui-quadrant-CEtFEZT3.js} +46 -39
- package/dist/{vue-ui-quick-chart-CaR3jp1D.js → vue-ui-quick-chart-bqcp6BIl.js} +171 -164
- package/dist/{vue-ui-radar-wYNRX7Uh.js → vue-ui-radar-lgRCmyNP.js} +36 -29
- package/dist/{vue-ui-relation-circle-CIwou-3d.js → vue-ui-relation-circle-cRRrbaIT.js} +100 -93
- package/dist/{vue-ui-ridgeline-DnzoIClq.js → vue-ui-ridgeline-CaeFJq9a.js} +23 -16
- package/dist/{vue-ui-rings-B7zSZa8h.js → vue-ui-rings-DbsYfGjx.js} +55 -48
- package/dist/{vue-ui-scatter-Bevyh8s3.js → vue-ui-scatter-DcMnoNrY.js} +189 -182
- package/dist/{vue-ui-skeleton-DfuGqFYM.js → vue-ui-skeleton-b5fdgyHv.js} +1 -1
- package/dist/{vue-ui-spark-trend-D16UBZxk.js → vue-ui-spark-trend-DrQ26BzL.js} +1 -1
- package/dist/{vue-ui-sparkbar-Dl1kY_5e.js → vue-ui-sparkbar-BlvXLcfO.js} +1 -1
- package/dist/{vue-ui-sparkgauge-iJIT26xG.js → vue-ui-sparkgauge-CQmNePxu.js} +1 -1
- package/dist/{vue-ui-sparkhistogram-Bawjmfxu.js → vue-ui-sparkhistogram-CJatqy8x.js} +1 -1
- package/dist/{vue-ui-sparkline-CGVoLIcr.js → vue-ui-sparkline-5m7hFiMq.js} +1 -1
- package/dist/{vue-ui-sparkstackbar-CdlGAlFM.js → vue-ui-sparkstackbar-Z5g6L2Hj.js} +1 -1
- package/dist/{vue-ui-stackbar-Cjz4PvOG.js → vue-ui-stackbar-WrexTg8_.js} +53 -46
- package/dist/{vue-ui-strip-plot-DS84cU6V.js → vue-ui-strip-plot-DqX7yya9.js} +13 -6
- package/dist/{vue-ui-table-t9Shp522.js → vue-ui-table-BhrP9BCp.js} +2 -2
- package/dist/{vue-ui-table-heatmap-B4rjR34n.js → vue-ui-table-heatmap-BqCEBoUf.js} +1 -1
- package/dist/{vue-ui-table-sparkline-CAqqSvhG.js → vue-ui-table-sparkline-BECa8n5_.js} +1 -1
- package/dist/{vue-ui-thermometer-CKciCjTK.js → vue-ui-thermometer-BxBGrsSR.js} +83 -76
- package/dist/{vue-ui-timer-CNwoVRn5.js → vue-ui-timer-BbHY5Ed5.js} +1 -1
- package/dist/{vue-ui-tiremarks-Dxp9rcJi.js → vue-ui-tiremarks-DzL3Sc1f.js} +43 -36
- package/dist/{vue-ui-treemap-D4cRZ9SZ.js → vue-ui-treemap-DoHoS5NK.js} +114 -107
- package/dist/{vue-ui-vertical-bar-Cz6yCNYK.js → vue-ui-vertical-bar-D0N5btU-.js} +89 -82
- package/dist/{vue-ui-waffle-BhQ0m4Ia.js → vue-ui-waffle-CTt7dxCY.js} +41 -34
- package/dist/{vue-ui-wheel-Bh_G3WQQ.js → vue-ui-wheel--TIPvQ9I.js} +132 -125
- package/dist/{vue-ui-word-cloud-Bk2yP7oQ.js → vue-ui-word-cloud-D5pZq4Jq.js} +116 -109
- package/dist/{vue-ui-world-C_eUAzmI.js → vue-ui-world-BERHgePa.js} +71 -64
- package/dist/{vue-ui-xy-BDc2EKMr.js → vue-ui-xy-BI5stV8f.js} +163 -156
- package/dist/{vue-ui-xy-canvas-BGl_2pHw.js → vue-ui-xy-canvas-DXnLFwW3.js} +1 -1
- package/package.json +2 -2
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { defineAsyncComponent as Ye, useSlots as Eo, getCurrentInstance as Yo, ref as x, computed as b, onMounted as Ul, toRefs as Wo, watch as Al, watchEffect as Lt, onBeforeUnmount as ya, nextTick as Mt, createElementBlock as r, openBlock as n, normalizeStyle as $, normalizeClass as
|
|
2
|
-
import { c as ka, f as _a, t as Zo, e as Jo, m as Cl, n as tl, h as Tt, p as zt, q as ql, r as E, u as wa, v as Ko, w as Qo, x as P, y as It, z as Ot, A as Nt, B as Vt, C as jo, D as Pt, E as Ft, a as se, F as es, G as Rt, H as ls, j as Bt, k as Ne, d as Ve, i as ol, s as Ce, I as as, J as
|
|
1
|
+
import { defineAsyncComponent as Ye, useSlots as Eo, getCurrentInstance as Yo, ref as x, computed as b, onMounted as Ul, toRefs as Wo, watch as Al, watchEffect as Lt, onBeforeUnmount as ya, nextTick as Mt, createElementBlock as r, openBlock as n, normalizeStyle as $, normalizeClass as ll, createBlock as Ae, createCommentVNode as h, createElementVNode as p, createVNode as vl, unref as v, createSlots as At, withCtx as Q, renderSlot as W, normalizeProps as We, guardReactiveProps as Xe, Fragment as d, renderList as w, mergeProps as al, toDisplayString as ae, Teleport as Xo, resolveDynamicComponent as Go, withDirectives as Uo, vModelCheckbox as qo, createTextVNode as Ct } from "vue";
|
|
2
|
+
import { c as ka, f as _a, t as Zo, e as Jo, m as Cl, n as tl, h as Tt, p as zt, q as ql, r as E, u as wa, v as Ko, w as Qo, x as P, y as It, z as Ot, A as Nt, B as Vt, C as jo, D as Pt, E as Ft, a as se, F as es, G as Rt, H as ls, j as Bt, k as Ne, d as Ve, i as ol, s as Ce, I as as, J as Ge, K as Zl, L as _e, M as ts, N as Ue, O as fe, b as os, o as Ht, P as ss, Q as us, R as dl } from "./lib-C_mNZmhD.js";
|
|
3
3
|
import { t as is } from "./useResponsive-DfdjqQps.js";
|
|
4
4
|
import { u as ns, a as Jl } from "./useNestedProp-BjZe1Y85.js";
|
|
5
5
|
import { u as rs } from "./usePrinter-DTzqpYKF.js";
|
|
@@ -80,9 +80,9 @@ const _s = ["id"], ws = ["id"], Ss = ["viewBox", "aria-label"], $s = ["x", "y",
|
|
|
80
80
|
},
|
|
81
81
|
emits: ["selectTimeLabel", "selectX", "selectLegend"],
|
|
82
82
|
setup(Ql, { expose: Et, emit: Yt }) {
|
|
83
|
-
const g = Ql, Wt = Ye(() => import("./DataTable-BT7VF2ua.js")), Xt = Ye(() => import("./Tooltip-oWCO1HKy.js")), Gt = Ye(() => import("./UserOptions-
|
|
83
|
+
const g = Ql, Wt = Ye(() => import("./DataTable-BT7VF2ua.js")), Xt = Ye(() => import("./Tooltip-oWCO1HKy.js")), Gt = Ye(() => import("./UserOptions-CGnQt6Fd.js")), Sa = Ye(() => import("./BaseIcon-BmMbm4d0.js")), Ut = Ye(() => import("./vue-ui-table-sparkline-BECa8n5_.js")), qt = Ye(() => import("./PackageVersion-D-auaEEJ.js")), Zt = Ye(() => import("./PenAndPaper-DSvu9dwa.js")), Jt = Ye(() => import("./BaseDraggableDialog-ymf2sfB8.js")), jl = Yt, $a = Eo(), Kt = Yo(), { vue_ui_xy: hl } = ns(), Te = x(null), fl = x(null), ze = x(null), sl = x(null), gl = x(null), ml = x(null), Qt = x(null), ea = x(null), la = x(null), ul = x(null), aa = x(null), ta = x(null), Re = x(null), oa = x(null), jt = x(0), I = x(null), La = x(!0), ve = x(600), j = x(1e3), Tl = x("0 0 1000 600"), eo = x({ x: 0, y: 0 }), bl = x({ line: "line", bar: "bar", plot: "plot" }), xl = x(!1), qe = x(!1), Ma = x(!1), Ze = x(null), ee = x([]), D = x(ka()), Aa = x(0), Ca = x(0), Ta = x(0), pl = x(!0), sa = x(0), V = x(null), za = x(!1), ua = x(!0), zl = x(!0), ue = x(null), Pe = x({}), Il = x(null), Ia = x(!1), il = x(null), _ = x(null), lo = b(() => ({
|
|
84
84
|
height: ve.value,
|
|
85
|
-
width:
|
|
85
|
+
width: j.value
|
|
86
86
|
}));
|
|
87
87
|
function Oa(a) {
|
|
88
88
|
return Number.isFinite(a) ? Math.max(0, Math.floor(a)) : 0;
|
|
@@ -302,12 +302,12 @@ const _s = ["id"], ws = ["id"], Ss = ["viewBox", "aria-label"], $s = ["x", "y",
|
|
|
302
302
|
}), so = x(!1), Nl = b(() => Jo(l.value.customPalette)), Vl = b(() => {
|
|
303
303
|
if (l.value.chart.grid.labels.yAxis.scaleMin !== null)
|
|
304
304
|
return l.value.chart.grid.labels.yAxis.scaleMin;
|
|
305
|
-
const a = Math.min(...Fe.value.filter((s) => !
|
|
305
|
+
const a = Math.min(...Fe.value.filter((s) => !ee.value.includes(s.id)).map((s) => Math.min(...s.series)));
|
|
306
306
|
return a > 0 ? 0 : a;
|
|
307
307
|
}), Pl = b(() => {
|
|
308
308
|
if (l.value.chart.grid.labels.yAxis.scaleMax)
|
|
309
309
|
return l.value.chart.grid.labels.yAxis.scaleMax;
|
|
310
|
-
const a = Math.max(...Fe.value.filter((s) => !
|
|
310
|
+
const a = Math.max(...Fe.value.filter((s) => !ee.value.includes(s.id)).map((s) => Math.max(...s.series)));
|
|
311
311
|
return Vl.value === a ? a + 1 : a;
|
|
312
312
|
}), $e = b(() => l.value.chart.grid.labels.yAxis.useNiceScale ? Cl(Vl.value, Pl.value < 0 ? 0 : Pl.value, l.value.chart.grid.labels.yAxis.commonScaleSteps) : tl(Vl.value, Pl.value < 0 ? 0 : Pl.value, l.value.chart.grid.labels.yAxis.commonScaleSteps)), kl = b(() => [null, void 0].includes(l.value.chart.grid.labels.yAxis.scaleMin) ? $e.value.min >= 0 ? 0 : Math.abs($e.value.min) : -$e.value.min), Fe = b(() => La.value ? ge.value.map((a, s) => {
|
|
313
313
|
const e = Be(a.series), u = `uniqueId_${s}`;
|
|
@@ -325,12 +325,12 @@ const _s = ["id"], ws = ["id"], Ss = ["viewBox", "aria-label"], $s = ["x", "y",
|
|
|
325
325
|
series: a.series.map((e) => e + kl.value),
|
|
326
326
|
absoluteValues: a.series,
|
|
327
327
|
segregate: () => ot(a),
|
|
328
|
-
isSegregated:
|
|
328
|
+
isSegregated: ee.value.includes(a.id)
|
|
329
329
|
}))), ye = b(() => Fe.value.map((a, s) => ({
|
|
330
330
|
...a,
|
|
331
331
|
series: a.series.map((e) => e + kl.value),
|
|
332
332
|
absoluteValues: a.series
|
|
333
|
-
})).filter((a) => !
|
|
333
|
+
})).filter((a) => !ee.value.includes(a.id)));
|
|
334
334
|
function uo() {
|
|
335
335
|
let a = 0;
|
|
336
336
|
aa.value && (a = Array.from(aa.value.querySelectorAll("text")).reduce((t, i) => {
|
|
@@ -361,16 +361,16 @@ const _s = ["id"], ws = ["id"], Ss = ["viewBox", "aria-label"], $s = ["x", "y",
|
|
|
361
361
|
}), no = b(() => ge.value.some((a) => a.useProgression)), c = b(() => {
|
|
362
362
|
let a = 0;
|
|
363
363
|
const s = 36;
|
|
364
|
-
l.value.chart.grid.labels.show && (f.value.useIndividualScale && !f.value.isStacked ? a = (ge.value.length -
|
|
364
|
+
l.value.chart.grid.labels.show && (f.value.useIndividualScale && !f.value.isStacked ? a = (ge.value.length - ee.value.length) * (l.value.chart.grid.labels.yAxis.labelWidth + s) : f.value.useIndividualScale && f.value.isStacked ? a = l.value.chart.grid.labels.yAxis.labelWidth + s : a = uo());
|
|
365
365
|
const e = l.value.chart.labels.fontSize * 1.1, u = no.value ? 24 : 6;
|
|
366
366
|
if (ul.value) {
|
|
367
367
|
const o = ul.value.getBBox().x;
|
|
368
368
|
o < 0 && (a += Math.abs(o));
|
|
369
369
|
}
|
|
370
|
-
const t =
|
|
370
|
+
const t = j.value - a - l.value.chart.grid.labels.yAxis.crosshairSize - u - l.value.chart.padding.left - l.value.chart.padding.right, i = l.value.chart.grid.position === "middle" ? 0 : t / L.value / 2;
|
|
371
371
|
return {
|
|
372
372
|
top: l.value.chart.padding.top + e,
|
|
373
|
-
right:
|
|
373
|
+
right: j.value - u - l.value.chart.padding.right,
|
|
374
374
|
bottom: ve.value - Da.value - l.value.chart.padding.bottom - l.value.chart.grid.labels.axis.xLabelOffsetY,
|
|
375
375
|
left: a + l.value.chart.grid.labels.yAxis.crosshairSize - i + l.value.chart.padding.left,
|
|
376
376
|
height: ve.value - Da.value - l.value.chart.padding.top - l.value.chart.padding.bottom - e - l.value.chart.grid.labels.axis.xLabelOffsetY,
|
|
@@ -520,10 +520,10 @@ const _s = ["id"], ws = ["id"], Ss = ["viewBox", "aria-label"], $s = ["x", "y",
|
|
|
520
520
|
return ![null, void 0, NaN, 1 / 0, -1 / 0].includes(a);
|
|
521
521
|
}
|
|
522
522
|
const Ja = b(() => $e.value.max + kl.value);
|
|
523
|
-
function
|
|
523
|
+
function Je(a) {
|
|
524
524
|
return a / (me(Ja.value) ? Ja.value : 1);
|
|
525
525
|
}
|
|
526
|
-
const ne = b(() => isNaN(
|
|
526
|
+
const ne = b(() => isNaN(Je(kl.value)) ? c.value.bottom : c.value.bottom - c.value.height * Je(kl.value));
|
|
527
527
|
function Ka(a) {
|
|
528
528
|
const s = ![null, void 0].includes(l.value.chart.grid.labels.yAxis.scaleMin) && l.value.chart.grid.labels.yAxis.scaleMin > 0 && Vl.value >= 0 ? c.value.bottom : ne.value;
|
|
529
529
|
return a.value >= 0 ? P(s - a.y <= 0 ? 1e-5 : s - a.y) : P(a.y - ne.value <= 0 ? 1e-5 : a.y - ne.value);
|
|
@@ -532,7 +532,7 @@ const _s = ["id"], ws = ["id"], Ss = ["viewBox", "aria-label"], $s = ["x", "y",
|
|
|
532
532
|
return a.value >= 0 ? P(a.zeroPosition - a.y <= 0 ? 1e-5 : a.zeroPosition - a.y) : P(a.y - a.zeroPosition <= 0 ? 1e-5 : a.zeroPosition - a.y);
|
|
533
533
|
}
|
|
534
534
|
const q = b(() => {
|
|
535
|
-
const a = Math.max(1, L.value), s = Math.max(1, c.value.width), e = Math.max(1, Fe.value.filter((u) => u.type === "bar" && !
|
|
535
|
+
const a = Math.max(1, L.value), s = Math.max(1, c.value.width), e = Math.max(1, Fe.value.filter((u) => u.type === "bar" && !ee.value.includes(u.id)).length);
|
|
536
536
|
return {
|
|
537
537
|
bar: ia(s, a * e, 1),
|
|
538
538
|
plot: ia(s, a, 1),
|
|
@@ -567,10 +567,10 @@ const _s = ["id"], ws = ["id"], Ss = ["viewBox", "aria-label"], $s = ["x", "y",
|
|
|
567
567
|
const e = s.getBoundingClientRect(), u = s.viewBox?.baseVal || { x: 0, y: 0, width: e.width, height: e.height }, t = Math.min(e.width / u.width, e.height / u.height), i = u.width * t, o = u.height * t, A = (e.width - i) / 2, C = (e.height - o) / 2, O = (a.clientX - e.left - A) / t + u.x, S = (a.clientY - e.top - C) / t + u.y;
|
|
568
568
|
return { x: O, y: S, ok: !0 };
|
|
569
569
|
}
|
|
570
|
-
let
|
|
570
|
+
let Ke = 0;
|
|
571
571
|
function po(a) {
|
|
572
|
-
xl.value || (
|
|
573
|
-
|
|
572
|
+
xl.value || (Ke && cancelAnimationFrame(Ke), Ke = requestAnimationFrame(() => {
|
|
573
|
+
Ke = 0;
|
|
574
574
|
const s = lt(a);
|
|
575
575
|
if (!s || !ue.value) {
|
|
576
576
|
Dl();
|
|
@@ -586,7 +586,7 @@ const _s = ["id"], ws = ["id"], Ss = ["viewBox", "aria-label"], $s = ["x", "y",
|
|
|
586
586
|
}));
|
|
587
587
|
}
|
|
588
588
|
function Dl() {
|
|
589
|
-
|
|
589
|
+
Ke && (cancelAnimationFrame(Ke), Ke = 0), wl.value = null, ft(!1, null);
|
|
590
590
|
}
|
|
591
591
|
function at(a) {
|
|
592
592
|
const s = lt(a);
|
|
@@ -639,11 +639,11 @@ const _s = ["id"], ws = ["id"], Ss = ["viewBox", "aria-label"], $s = ["x", "y",
|
|
|
639
639
|
};
|
|
640
640
|
}
|
|
641
641
|
function ot(a) {
|
|
642
|
-
if (
|
|
643
|
-
|
|
642
|
+
if (ee.value.includes(a.id))
|
|
643
|
+
ee.value = ee.value.filter((s) => s !== a.id);
|
|
644
644
|
else {
|
|
645
|
-
if (
|
|
646
|
-
|
|
645
|
+
if (ee.value.length + 1 === Fe.value.length) return;
|
|
646
|
+
ee.value.push(a.id);
|
|
647
647
|
}
|
|
648
648
|
jl("selectLegend", ye.value.map((s) => ({
|
|
649
649
|
name: s.name,
|
|
@@ -710,8 +710,8 @@ const _s = ["id"], ws = ["id"], Ss = ["viewBox", "aria-label"], $s = ["x", "y",
|
|
|
710
710
|
sparkline: {
|
|
711
711
|
animation: { show: !1 }
|
|
712
712
|
}
|
|
713
|
-
})), G = b(() => l.value.chart.grid.position === "middle" ? 0 : c.value.width / L.value / 2),
|
|
714
|
-
const a = Object.groupBy(
|
|
713
|
+
})), G = b(() => l.value.chart.grid.position === "middle" ? 0 : c.value.width / L.value / 2), Qe = b(() => Qo(Le.value.filter((a) => !ee.value.includes(a.id)))), M = b(() => {
|
|
714
|
+
const a = Object.groupBy(Qe.value, (e) => e.scaleLabel), s = {};
|
|
715
715
|
for (const [e, u] of Object.entries(a)) {
|
|
716
716
|
const t = u.flatMap((i) => i.absoluteValues);
|
|
717
717
|
s[e] = {
|
|
@@ -722,19 +722,19 @@ const _s = ["id"], ws = ["id"], Ss = ["viewBox", "aria-label"], $s = ["x", "y",
|
|
|
722
722
|
}
|
|
723
723
|
return s;
|
|
724
724
|
}), Mo = b(() => {
|
|
725
|
-
const a = Fe.value.filter((s) => s.type === "bar").filter((s) => !
|
|
725
|
+
const a = Fe.value.filter((s) => s.type === "bar").filter((s) => !ee.value.includes(s.id)).length;
|
|
726
726
|
return c.value.width / L.value / a - El.value * a;
|
|
727
727
|
}), El = b(() => q.value.line * l.value.bar.periodGap), Yl = b(() => Math.max(1e-5, He() - (f.value.useIndividualScale && f.value.isStacked ? 0 : El.value))), Wl = b(() => Yl.value * Math.min(Math.abs(l.value.bar.innerGap), 0.95)), Ao = b(() => {
|
|
728
728
|
if (!l.value.chart.zoom.minimap.show) return [];
|
|
729
|
-
const a = ut.value.filter((t) => !
|
|
729
|
+
const a = ut.value.filter((t) => !ee.value.includes(t.id)), s = Math.max(...a.map((t) => t.series.length)), e = [];
|
|
730
730
|
for (let t = 0; t < s; t += 1)
|
|
731
731
|
e.push(a.map((i) => i.series[t] || 0).reduce((i, o) => (i || 0) + (o || 0), 0));
|
|
732
732
|
const u = Math.min(...e);
|
|
733
733
|
return e.map((t) => t + (u < 0 ? Math.abs(u) : 0));
|
|
734
734
|
}), Co = b(() => l.value.chart.zoom.minimap.show ? ut.value.map((s) => ({
|
|
735
735
|
...s,
|
|
736
|
-
isVisible: !
|
|
737
|
-
})) : []),
|
|
736
|
+
isVisible: !ee.value.includes(s.id)
|
|
737
|
+
})) : []), je = b(() => ye.value.map((a) => ({
|
|
738
738
|
slotAbsoluteIndex: a.slotAbsoluteIndex,
|
|
739
739
|
shape: a.shape || null,
|
|
740
740
|
name: a.name,
|
|
@@ -745,7 +745,7 @@ const _s = ["id"], ws = ["id"], Ss = ["viewBox", "aria-label"], $s = ["x", "y",
|
|
|
745
745
|
prefix: a.prefix || l.value.chart.labels.prefix,
|
|
746
746
|
suffix: a.suffix || l.value.chart.labels.suffix
|
|
747
747
|
}))), it = b(() => $e.value.ticks.map((a) => ({
|
|
748
|
-
y: a >= 0 ? ne.value - c.value.height *
|
|
748
|
+
y: a >= 0 ? ne.value - c.value.height * Je(a) : ne.value + c.value.height * Je(Math.abs(a)),
|
|
749
749
|
value: a,
|
|
750
750
|
prefix: l.value.chart.labels.prefix,
|
|
751
751
|
suffix: l.value.chart.labels.suffix
|
|
@@ -798,7 +798,7 @@ const _s = ["id"], ws = ["id"], Ss = ["viewBox", "aria-label"], $s = ["x", "y",
|
|
|
798
798
|
return me(a[s].value) && t && l.value.line.cutNullValues;
|
|
799
799
|
}
|
|
800
800
|
const Me = b(() => {
|
|
801
|
-
const a =
|
|
801
|
+
const a = Qe.value.filter((o) => ["bar", "line", "plot"].includes(o.type)), s = a.length, e = l.value.chart.grid.labels.yAxis.gap, u = f.value.isStacked, t = u ? e * (s - 1) : 0, i = c.value.height - t;
|
|
802
802
|
return a.filter((o) => o.type === "bar").map((o, A) => {
|
|
803
803
|
ma(o);
|
|
804
804
|
const C = M.value[o.scaleLabel].min, O = M.value[o.scaleLabel].max;
|
|
@@ -809,12 +809,12 @@ const _s = ["id"], ws = ["id"], Ss = ["viewBox", "aria-label"], $s = ["x", "y",
|
|
|
809
809
|
}, T = {
|
|
810
810
|
max: o.scaleMax || Math.max(...o.absoluteValues) || 1,
|
|
811
811
|
min: o.scaleMin || Math.min(...o.absoluteValues.filter((R) => ![void 0, null].includes(R))) > 0 ? 0 : Math.min(...o.absoluteValues.filter((R) => ![null, void 0].includes(R)))
|
|
812
|
-
}, Y = o.scaleSteps || l.value.chart.grid.labels.yAxis.commonScaleSteps, k = 1.0000001, F = l.value.chart.grid.labels.yAxis.useNiceScale ? Cl(T.min, T.max === T.min ? T.max * k : T.max, Y) : tl(T.min, T.max === T.min ? T.max * k : T.max, Y), z = l.value.chart.grid.labels.yAxis.useNiceScale ? Cl(S.valueMin, S.valueMax === S.valueMin ? S.valueMax * k : S.valueMax, Y) : tl(S.valueMin, S.valueMax === S.valueMin ? S.valueMax * k : S.valueMax, Y), le = F.min >= 0 ? 0 : Math.abs(F.min), re = 0, U = F.max + le, ke = z.max + Math.abs(re), Oe = o.stackIndex, cl = s - 1 - Oe, xe = u ? 1 - o.cumulatedStackRatio : 0, B = u ? i * xe + e * cl : 0, H = u ? i * o.stackRatio : c.value.height, Z = c.value.bottom - B - H * le / U, pe = c.value.bottom - B - H * re / ke, ce = Le.value.filter((R) => R.type === "bar").filter((R) => !
|
|
813
|
-
const Ee = f.value.useIndividualScale ? (o.absoluteValues[K] + le) / U :
|
|
812
|
+
}, Y = o.scaleSteps || l.value.chart.grid.labels.yAxis.commonScaleSteps, k = 1.0000001, F = l.value.chart.grid.labels.yAxis.useNiceScale ? Cl(T.min, T.max === T.min ? T.max * k : T.max, Y) : tl(T.min, T.max === T.min ? T.max * k : T.max, Y), z = l.value.chart.grid.labels.yAxis.useNiceScale ? Cl(S.valueMin, S.valueMax === S.valueMin ? S.valueMax * k : S.valueMax, Y) : tl(S.valueMin, S.valueMax === S.valueMin ? S.valueMax * k : S.valueMax, Y), le = F.min >= 0 ? 0 : Math.abs(F.min), re = 0, U = F.max + le, ke = z.max + Math.abs(re), Oe = o.stackIndex, cl = s - 1 - Oe, xe = u ? 1 - o.cumulatedStackRatio : 0, B = u ? i * xe + e * cl : 0, H = u ? i * o.stackRatio : c.value.height, Z = c.value.bottom - B - H * le / U, pe = c.value.bottom - B - H * re / ke, ce = Le.value.filter((R) => R.type === "bar").filter((R) => !ee.value.includes(R.id)).length, Ll = o.series.map((R, K) => {
|
|
813
|
+
const Ee = f.value.useIndividualScale ? (o.absoluteValues[K] + le) / U : Je(R), el = f.value.useIndividualScale && f.value.isStacked ? c.value.left + c.value.width / L.value * K : c.value.left + q.value.bar * A + q.value.bar * K * ce - Mo.value / 2 - A * El.value;
|
|
814
814
|
return {
|
|
815
815
|
yOffset: P(B),
|
|
816
816
|
individualHeight: P(H),
|
|
817
|
-
x: P(
|
|
817
|
+
x: P(el),
|
|
818
818
|
y: c.value.bottom - B - H * Ee,
|
|
819
819
|
value: o.absoluteValues[K],
|
|
820
820
|
zeroPosition: P(Z),
|
|
@@ -822,7 +822,7 @@ const _s = ["id"], ws = ["id"], Ss = ["viewBox", "aria-label"], $s = ["x", "y",
|
|
|
822
822
|
comment: o.comments && o.comments.slice(m.value.start, m.value.end)[K] || ""
|
|
823
823
|
};
|
|
824
824
|
}), he = o.absoluteValues.map((R) => z.min >= 0 ? (R - Math.abs(z.min)) / (z.max - Math.abs(z.min)) : (R + Math.abs(z.min)) / (z.max + Math.abs(z.min))), De = o.series.map((R, K) => {
|
|
825
|
-
const Ee = f.value.useIndividualScale && f.value.isStacked ? c.value.left + c.value.width / L.value * K : c.value.left - q.value.bar / 2 + q.value.bar * A + q.value.bar * K * Le.value.filter((
|
|
825
|
+
const Ee = f.value.useIndividualScale && f.value.isStacked ? c.value.left + c.value.width / L.value * K : c.value.left - q.value.bar / 2 + q.value.bar * A + q.value.bar * K * Le.value.filter((el) => el.type === "bar").filter((el) => !ee.value.includes(el.id)).length;
|
|
826
826
|
return {
|
|
827
827
|
yOffset: P(B),
|
|
828
828
|
individualHeight: P(H),
|
|
@@ -833,7 +833,7 @@ const _s = ["id"], ws = ["id"], Ss = ["viewBox", "aria-label"], $s = ["x", "y",
|
|
|
833
833
|
individualMax: P(U),
|
|
834
834
|
comment: o.comments && o.comments.slice(m.value.start, m.value.end)[K] || ""
|
|
835
835
|
};
|
|
836
|
-
}),
|
|
836
|
+
}), X = F.ticks.map((R) => ({
|
|
837
837
|
y: R >= 0 ? Z - H * (R / U) : Z + H * Math.abs(R) / U,
|
|
838
838
|
value: R,
|
|
839
839
|
prefix: o.prefix || l.value.chart.labels.prefix,
|
|
@@ -849,12 +849,12 @@ const _s = ["id"], ws = ["id"], Ss = ["viewBox", "aria-label"], $s = ["x", "y",
|
|
|
849
849
|
datapoint: o
|
|
850
850
|
};
|
|
851
851
|
});
|
|
852
|
-
return M.value[o.scaleLabel].name = o.name, M.value[o.scaleLabel].groupName = o.scaleLabel, M.value[o.scaleLabel].groupColor = l.value.chart.grid.labels.yAxis.groupColor || o.color, M.value[o.scaleLabel].color = o.color, M.value[o.scaleLabel].scaleYLabels = o.autoScaling ? J :
|
|
852
|
+
return M.value[o.scaleLabel].name = o.name, M.value[o.scaleLabel].groupName = o.scaleLabel, M.value[o.scaleLabel].groupColor = l.value.chart.grid.labels.yAxis.groupColor || o.color, M.value[o.scaleLabel].color = o.color, M.value[o.scaleLabel].scaleYLabels = o.autoScaling ? J : X, M.value[o.scaleLabel].zeroPosition = o.autoScaling ? pe : Z, M.value[o.scaleLabel].individualMax = o.autoScaling ? ke : U, M.value[o.scaleLabel].scaleLabel = o.scaleLabel, M.value[o.scaleLabel].id = o.id, M.value[o.scaleLabel].yOffset = B, M.value[o.scaleLabel].individualHeight = H, M.value[o.scaleLabel].autoScaleYLabels = J, M.value[o.scaleLabel].unique = Qe.value.filter((R) => R.scaleLabel === o.scaleLabel).length === 1, {
|
|
853
853
|
...o,
|
|
854
854
|
yOffset: B,
|
|
855
855
|
autoScaleYLabels: J,
|
|
856
856
|
individualHeight: H,
|
|
857
|
-
scaleYLabels: o.autoScaling ? J :
|
|
857
|
+
scaleYLabels: o.autoScaling ? J : X,
|
|
858
858
|
individualScale: o.autoScaling ? z : F,
|
|
859
859
|
individualMax: o.autoScaling ? ke : U,
|
|
860
860
|
zeroPosition: o.autoScaling ? pe : Z,
|
|
@@ -863,7 +863,7 @@ const _s = ["id"], ws = ["id"], Ss = ["viewBox", "aria-label"], $s = ["x", "y",
|
|
|
863
863
|
};
|
|
864
864
|
});
|
|
865
865
|
}), te = b(() => {
|
|
866
|
-
const a =
|
|
866
|
+
const a = Qe.value.filter((o) => ["bar", "line", "plot"].includes(o.type)), s = a.length, e = l.value.chart.grid.labels.yAxis.gap, u = f.value.isStacked, t = u ? e * (s - 1) : 0, i = c.value.height - t;
|
|
867
867
|
return a.filter((o) => o.type === "line").map((o, A) => {
|
|
868
868
|
ma(o);
|
|
869
869
|
const C = M.value[o.scaleLabel].min, O = M.value[o.scaleLabel].max;
|
|
@@ -875,7 +875,7 @@ const _s = ["id"], ws = ["id"], Ss = ["viewBox", "aria-label"], $s = ["x", "y",
|
|
|
875
875
|
max: o.scaleMax || Math.max(...o.absoluteValues) || 1,
|
|
876
876
|
min: o.scaleMin || (Math.min(...o.absoluteValues) > 0 ? 0 : Math.min(...o.absoluteValues))
|
|
877
877
|
}, Y = o.scaleSteps || l.value.chart.grid.labels.yAxis.commonScaleSteps, k = 1.0000001, F = l.value.chart.grid.labels.yAxis.useNiceScale ? Cl(T.min, T.max === T.min ? T.max * k : T.max, Y) : tl(T.min, T.max === T.min ? T.max * k : T.max, Y), z = l.value.chart.grid.labels.yAxis.useNiceScale ? Cl(S.valueMin, S.valueMax === S.valueMin ? S.valueMax * k : S.valueMax, Y) : tl(S.valueMin, S.valueMax === S.valueMin ? S.valueMax * k : S.valueMax, Y), le = F.min >= 0 ? 0 : Math.abs(F.min), re = 0, U = F.max + Math.abs(le), ke = z.max + Math.abs(re), Oe = o.stackIndex, cl = s - 1 - Oe, xe = u ? 1 - o.cumulatedStackRatio : 0, B = u ? i * xe + e * cl : 0, H = u ? i * o.stackRatio : c.value.height, Z = c.value.bottom - B - H * le / U, pe = c.value.bottom - B - H * re / ke, ce = o.series.map((N, oe) => {
|
|
878
|
-
const Do = f.value.useIndividualScale ? (o.absoluteValues[oe] + Math.abs(le)) / U :
|
|
878
|
+
const Do = f.value.useIndividualScale ? (o.absoluteValues[oe] + Math.abs(le)) / U : Je(N);
|
|
879
879
|
return {
|
|
880
880
|
x: P(c.value.left + q.value.line / 2 + q.value.line * oe),
|
|
881
881
|
y: P(c.value.bottom - B - H * Do),
|
|
@@ -892,7 +892,7 @@ const _s = ["id"], ws = ["id"], Ss = ["viewBox", "aria-label"], $s = ["x", "y",
|
|
|
892
892
|
y: P(c.value.bottom - B - (H * Ll[oe] || 0)),
|
|
893
893
|
value: o.absoluteValues[oe],
|
|
894
894
|
comment: o.comments && o.comments.slice(m.value.start, m.value.end)[oe] || ""
|
|
895
|
-
}), De = l.value.line.cutNullValues ? It(ce) : Ot(ce.filter((N) => N.value !== null)),
|
|
895
|
+
}), De = l.value.line.cutNullValues ? It(ce) : Ot(ce.filter((N) => N.value !== null)), X = l.value.line.cutNullValues ? It(he) : Ot(he.filter((N) => N.value !== null)), J = l.value.line.cutNullValues ? Nt(ce) : Vt(ce.filter((N) => N.value !== null)), R = l.value.line.cutNullValues ? Nt(he) : Vt(he.filter((N) => N.value !== null)), K = F.ticks.map((N) => ({
|
|
896
896
|
y: N >= 0 ? Z - H * (N / U) : Z + H * Math.abs(N) / U,
|
|
897
897
|
value: N,
|
|
898
898
|
prefix: o.prefix || l.value.chart.labels.prefix,
|
|
@@ -908,8 +908,8 @@ const _s = ["id"], ws = ["id"], Ss = ["viewBox", "aria-label"], $s = ["x", "y",
|
|
|
908
908
|
datapoint: o
|
|
909
909
|
};
|
|
910
910
|
});
|
|
911
|
-
M.value[o.scaleLabel].name = o.name, M.value[o.scaleLabel].groupName = o.scaleLabel, M.value[o.scaleLabel].groupColor = l.value.chart.grid.labels.yAxis.groupColor || o.color, M.value[o.scaleLabel].color = o.color, M.value[o.scaleLabel].scaleYLabels = o.autoScaling ? Ee : K, M.value[o.scaleLabel].zeroPosition = o.autoScaling ? pe : Z, M.value[o.scaleLabel].individualMax = o.autoScaling ? ke : U, M.value[o.scaleLabel].scaleLabel = o.scaleLabel, M.value[o.scaleLabel].id = o.id, M.value[o.scaleLabel].yOffset = B, M.value[o.scaleLabel].individualHeight = H, M.value[o.scaleLabel].autoScaleYLabels = Ee, M.value[o.scaleLabel].unique =
|
|
912
|
-
const
|
|
911
|
+
M.value[o.scaleLabel].name = o.name, M.value[o.scaleLabel].groupName = o.scaleLabel, M.value[o.scaleLabel].groupColor = l.value.chart.grid.labels.yAxis.groupColor || o.color, M.value[o.scaleLabel].color = o.color, M.value[o.scaleLabel].scaleYLabels = o.autoScaling ? Ee : K, M.value[o.scaleLabel].zeroPosition = o.autoScaling ? pe : Z, M.value[o.scaleLabel].individualMax = o.autoScaling ? ke : U, M.value[o.scaleLabel].scaleLabel = o.scaleLabel, M.value[o.scaleLabel].id = o.id, M.value[o.scaleLabel].yOffset = B, M.value[o.scaleLabel].individualHeight = H, M.value[o.scaleLabel].autoScaleYLabels = Ee, M.value[o.scaleLabel].unique = Qe.value.filter((N) => N.scaleLabel === o.scaleLabel).length === 1;
|
|
912
|
+
const el = f.value.useIndividualScale ? o.autoScaling ? pe : Z : ne.value, Ml = Math.max(Math.max(o.autoScaling ? pe : K.at(-1) ? K.at(-1).y : 0, c.value.top), el);
|
|
913
913
|
return {
|
|
914
914
|
...o,
|
|
915
915
|
yOffset: B,
|
|
@@ -919,7 +919,7 @@ const _s = ["id"], ws = ["id"], Ss = ["viewBox", "aria-label"], $s = ["x", "y",
|
|
|
919
919
|
individualScale: o.autoScaling ? z : F,
|
|
920
920
|
individualMax: o.autoScaling ? ke : U,
|
|
921
921
|
zeroPosition: o.autoScaling ? pe : Z,
|
|
922
|
-
curve: o.autoScaling ?
|
|
922
|
+
curve: o.autoScaling ? X : De,
|
|
923
923
|
plots: o.autoScaling ? he : ce,
|
|
924
924
|
area: o.useArea ? f.value.useIndividualScale ? l.value.line.cutNullValues ? Pt(
|
|
925
925
|
o.autoScaling ? he : ce,
|
|
@@ -938,47 +938,47 @@ const _s = ["id"], ws = ["id"], Ss = ["viewBox", "aria-label"], $s = ["x", "y",
|
|
|
938
938
|
};
|
|
939
939
|
});
|
|
940
940
|
}), be = b(() => {
|
|
941
|
-
const a =
|
|
941
|
+
const a = Qe.value.filter((o) => ["bar", "line", "plot"].includes(o.type)), s = a.length, e = l.value.chart.grid.labels.yAxis.gap, u = f.value.isStacked, t = u ? e * (s - 1) : 0, i = c.value.height - t;
|
|
942
942
|
return a.filter((o) => o.type === "plot").map((o) => {
|
|
943
943
|
ma(o);
|
|
944
944
|
const A = M.value[o.scaleLabel].min, C = M.value[o.scaleLabel].max;
|
|
945
|
-
o.absoluteValues.filter((
|
|
945
|
+
o.absoluteValues.filter((X) => ![null, void 0].includes(X)).map((X) => (X - A) / (C - A));
|
|
946
946
|
const O = {
|
|
947
947
|
valueMin: A,
|
|
948
948
|
valueMax: C
|
|
949
949
|
}, S = {
|
|
950
950
|
max: o.scaleMax || Math.max(...o.absoluteValues) || 1,
|
|
951
951
|
min: o.scaleMin || Math.min(...o.absoluteValues) > 0 ? 0 : Math.min(...o.absoluteValues)
|
|
952
|
-
}, T = o.scaleSteps || l.value.chart.grid.labels.yAxis.commonScaleSteps, Y = 1.0000001, k = tl(S.min, S.max === S.min ? S.max * Y : S.max, T), F = tl(O.valueMin, O.valueMax === O.valueMin ? O.valueMax * Y : O.valueMax, T), z = k.min >= 0 ? 0 : Math.abs(k.min), le = 0, re = k.max + z, U = F.max + Math.abs(le), ke = o.stackIndex, Oe = s - 1 - ke, cl = u ? 1 - o.cumulatedStackRatio : 0, xe = u ? i * cl + e * Oe : 0, B = u ? i * o.stackRatio : c.value.height, H = c.value.bottom - xe - B * z / re, Z = c.value.bottom - xe - B * le / U, pe = o.series.map((
|
|
953
|
-
const R = f.value.useIndividualScale ? (o.absoluteValues[J] + Math.abs(z)) / re :
|
|
952
|
+
}, T = o.scaleSteps || l.value.chart.grid.labels.yAxis.commonScaleSteps, Y = 1.0000001, k = tl(S.min, S.max === S.min ? S.max * Y : S.max, T), F = tl(O.valueMin, O.valueMax === O.valueMin ? O.valueMax * Y : O.valueMax, T), z = k.min >= 0 ? 0 : Math.abs(k.min), le = 0, re = k.max + z, U = F.max + Math.abs(le), ke = o.stackIndex, Oe = s - 1 - ke, cl = u ? 1 - o.cumulatedStackRatio : 0, xe = u ? i * cl + e * Oe : 0, B = u ? i * o.stackRatio : c.value.height, H = c.value.bottom - xe - B * z / re, Z = c.value.bottom - xe - B * le / U, pe = o.series.map((X, J) => {
|
|
953
|
+
const R = f.value.useIndividualScale ? (o.absoluteValues[J] + Math.abs(z)) / re : Je(X);
|
|
954
954
|
return {
|
|
955
955
|
x: P(c.value.left + q.value.plot / 2 + q.value.plot * J),
|
|
956
956
|
y: P(c.value.bottom - xe - B * R),
|
|
957
957
|
value: o.absoluteValues[J],
|
|
958
958
|
comment: o.comments && o.comments.slice(m.value.start, m.value.end)[J] || ""
|
|
959
959
|
};
|
|
960
|
-
}), ce = o.absoluteValues.map((
|
|
960
|
+
}), ce = o.absoluteValues.map((X) => F.min >= 0 ? (X - Math.abs(F.min)) / (F.max - Math.abs(F.min)) : (X + Math.abs(F.min)) / (F.max + Math.abs(F.min))), Ll = o.series.map((X, J) => ({
|
|
961
961
|
x: P(c.value.left + q.value.plot / 2 + q.value.plot * J),
|
|
962
962
|
y: P(c.value.bottom - xe - (B * ce[J] || 0)),
|
|
963
963
|
value: o.absoluteValues[J],
|
|
964
964
|
comment: o.comments && o.comments.slice(m.value.start, m.value.end)[J] || ""
|
|
965
|
-
})), he = k.ticks.map((
|
|
966
|
-
y:
|
|
967
|
-
value:
|
|
965
|
+
})), he = k.ticks.map((X) => ({
|
|
966
|
+
y: X >= 0 ? H - B * (X / re) : H + B * Math.abs(X) / re,
|
|
967
|
+
value: X,
|
|
968
968
|
prefix: o.prefix || l.value.chart.labels.prefix,
|
|
969
969
|
suffix: o.suffix || l.value.chart.labels.suffix,
|
|
970
970
|
datapoint: o
|
|
971
|
-
})), De = F.ticks.map((
|
|
972
|
-
const J = (
|
|
971
|
+
})), De = F.ticks.map((X) => {
|
|
972
|
+
const J = (X - F.min) / (F.max - F.min);
|
|
973
973
|
return {
|
|
974
|
-
y:
|
|
975
|
-
value:
|
|
974
|
+
y: X >= 0 ? Z - B * J : Z + B * J,
|
|
975
|
+
value: X,
|
|
976
976
|
prefix: o.prefix || l.value.chart.labels.prefix,
|
|
977
977
|
suffix: o.suffix || l.value.chart.labels.suffix,
|
|
978
978
|
datapoint: o
|
|
979
979
|
};
|
|
980
980
|
});
|
|
981
|
-
return M.value[o.scaleLabel].name = o.name, M.value[o.scaleLabel].groupName = o.scaleLabel, M.value[o.scaleLabel].groupColor = l.value.chart.grid.labels.yAxis.groupColor || o.color, M.value[o.scaleLabel].color = o.color, M.value[o.scaleLabel].scaleYLabels = o.autoScaling ? De : he, M.value[o.scaleLabel].zeroPosition = o.autoScaling ? Z : H, M.value[o.scaleLabel].individualMax = o.autoScaling ? U : re, M.value[o.scaleLabel].scaleLabel = o.scaleLabel, M.value[o.scaleLabel].id = o.id, M.value[o.scaleLabel].yOffset = xe, M.value[o.scaleLabel].individualHeight = B, M.value[o.scaleLabel].autoScaleYLabels = De, M.value[o.scaleLabel].unique =
|
|
981
|
+
return M.value[o.scaleLabel].name = o.name, M.value[o.scaleLabel].groupName = o.scaleLabel, M.value[o.scaleLabel].groupColor = l.value.chart.grid.labels.yAxis.groupColor || o.color, M.value[o.scaleLabel].color = o.color, M.value[o.scaleLabel].scaleYLabels = o.autoScaling ? De : he, M.value[o.scaleLabel].zeroPosition = o.autoScaling ? Z : H, M.value[o.scaleLabel].individualMax = o.autoScaling ? U : re, M.value[o.scaleLabel].scaleLabel = o.scaleLabel, M.value[o.scaleLabel].id = o.id, M.value[o.scaleLabel].yOffset = xe, M.value[o.scaleLabel].individualHeight = B, M.value[o.scaleLabel].autoScaleYLabels = De, M.value[o.scaleLabel].unique = Qe.value.filter((X) => X.scaleLabel === o.scaleLabel).length === 1, {
|
|
982
982
|
...o,
|
|
983
983
|
yOffset: xe,
|
|
984
984
|
autoScaleYLabels: De,
|
|
@@ -1078,7 +1078,7 @@ const _s = ["id"], ws = ["id"], Ss = ["viewBox", "aria-label"], $s = ["x", "y",
|
|
|
1078
1078
|
});
|
|
1079
1079
|
}), u;
|
|
1080
1080
|
}), vt = b(() => ({
|
|
1081
|
-
datapoint:
|
|
1081
|
+
datapoint: je.value,
|
|
1082
1082
|
seriesIndex: _.value,
|
|
1083
1083
|
series: Le.value,
|
|
1084
1084
|
bars: Me.value,
|
|
@@ -1099,12 +1099,12 @@ const _s = ["id"], ws = ["id"], Ss = ["viewBox", "aria-label"], $s = ["x", "y",
|
|
|
1099
1099
|
text: rl.value(e, l.value.chart.zoom.timeFormat),
|
|
1100
1100
|
absoluteIndex: e
|
|
1101
1101
|
}))), To = b(() => {
|
|
1102
|
-
let a = "", s =
|
|
1102
|
+
let a = "", s = je.value.map((t) => t.value).filter((t) => ql(t) && t !== null).reduce((t, i) => Math.abs(t) + Math.abs(i), 0);
|
|
1103
1103
|
const e = de.value[_.value], u = l.value.chart.tooltip.customFormat;
|
|
1104
1104
|
if (Rt(u) && ls(() => u({
|
|
1105
1105
|
absoluteIndex: _.value + m.value.start,
|
|
1106
1106
|
seriesIndex: _.value,
|
|
1107
|
-
datapoint:
|
|
1107
|
+
datapoint: je.value,
|
|
1108
1108
|
series: Le.value,
|
|
1109
1109
|
bars: Me.value,
|
|
1110
1110
|
lines: te.value,
|
|
@@ -1114,7 +1114,7 @@ const _s = ["id"], ws = ["id"], Ss = ["viewBox", "aria-label"], $s = ["x", "y",
|
|
|
1114
1114
|
return u({
|
|
1115
1115
|
absoluteIndex: _.value + m.value.start,
|
|
1116
1116
|
seriesIndex: _.value,
|
|
1117
|
-
datapoint:
|
|
1117
|
+
datapoint: je.value,
|
|
1118
1118
|
series: Le.value,
|
|
1119
1119
|
bars: Me.value,
|
|
1120
1120
|
lines: te.value,
|
|
@@ -1125,7 +1125,7 @@ const _s = ["id"], ws = ["id"], Ss = ["viewBox", "aria-label"], $s = ["x", "y",
|
|
|
1125
1125
|
const t = rl.value(_.value + m.value.start, l.value.chart.tooltip.timeFormat);
|
|
1126
1126
|
a += `<div style="padding-bottom: 6px; margin-bottom: 4px; border-bottom: 1px solid ${l.value.chart.tooltip.borderColor}; width:100%">${l.value.chart.grid.labels.xAxisLabels.datetimeFormatter.enable && !l.value.chart.tooltip.useDefaultTimeFormat ? t : e.text}</div>`;
|
|
1127
1127
|
}
|
|
1128
|
-
return
|
|
1128
|
+
return je.value.forEach((t) => {
|
|
1129
1129
|
if (ql(t.value)) {
|
|
1130
1130
|
let i = "", o = "";
|
|
1131
1131
|
switch (bl.value[t.type]) {
|
|
@@ -1258,7 +1258,7 @@ const _s = ["id"], ws = ["id"], Ss = ["viewBox", "aria-label"], $s = ["x", "y",
|
|
|
1258
1258
|
f.value.showTooltip = !f.value.showTooltip;
|
|
1259
1259
|
}
|
|
1260
1260
|
function xt(a) {
|
|
1261
|
-
|
|
1261
|
+
qe.value = a, Aa.value += 1;
|
|
1262
1262
|
}
|
|
1263
1263
|
function pt() {
|
|
1264
1264
|
if (!l.value.responsiveProportionalSizing) {
|
|
@@ -1272,31 +1272,31 @@ const _s = ["id"], ws = ["id"], Ss = ["viewBox", "aria-label"], $s = ["x", "y",
|
|
|
1272
1272
|
threshold: 10,
|
|
1273
1273
|
fallback: 10
|
|
1274
1274
|
}), y.value.yAxis = dl({
|
|
1275
|
-
relator:
|
|
1275
|
+
relator: j.value,
|
|
1276
1276
|
adjuster: 1e3,
|
|
1277
1277
|
source: l.value.chart.grid.labels.axis.fontSize,
|
|
1278
1278
|
threshold: 10,
|
|
1279
1279
|
fallback: 10
|
|
1280
1280
|
}), y.value.xAxis = dl({
|
|
1281
|
-
relator:
|
|
1281
|
+
relator: j.value,
|
|
1282
1282
|
adjuster: 1e3,
|
|
1283
1283
|
source: l.value.chart.grid.labels.xAxisLabels.fontSize,
|
|
1284
1284
|
threshold: 10,
|
|
1285
1285
|
fallback: 10
|
|
1286
1286
|
}), y.value.plotLabels = dl({
|
|
1287
|
-
relator:
|
|
1287
|
+
relator: j.value,
|
|
1288
1288
|
adjuster: 800,
|
|
1289
1289
|
source: l.value.chart.labels.fontSize,
|
|
1290
1290
|
threshold: 10,
|
|
1291
1291
|
fallback: 10
|
|
1292
1292
|
}), we.value.plot = dl({
|
|
1293
|
-
relator:
|
|
1293
|
+
relator: j.value,
|
|
1294
1294
|
adjuster: 800,
|
|
1295
1295
|
source: l.value.plot.radius,
|
|
1296
1296
|
threshold: 1,
|
|
1297
1297
|
fallback: 1
|
|
1298
1298
|
}), we.value.line = dl({
|
|
1299
|
-
relator:
|
|
1299
|
+
relator: j.value,
|
|
1300
1300
|
adjuster: 800,
|
|
1301
1301
|
source: l.value.line.radius,
|
|
1302
1302
|
threshold: 1,
|
|
@@ -1337,16 +1337,16 @@ const _s = ["id"], ws = ["id"], Ss = ["viewBox", "aria-label"], $s = ["x", "y",
|
|
|
1337
1337
|
let T = 0;
|
|
1338
1338
|
gl.value && (T = gl.value.getBoundingClientRect().height);
|
|
1339
1339
|
let Y = 0;
|
|
1340
|
-
ml.value && (Y = ml.value.getBoundingClientRect().height), ve.value = u - o - S - C - T - Y - a,
|
|
1340
|
+
ml.value && (Y = ml.value.getBoundingClientRect().height), ve.value = u - o - S - C - T - Y - a, j.value = t, Tl.value = `0 0 ${j.value < 0 ? 10 : j.value} ${ve.value < 0 ? 10 : ve.value}`, pt();
|
|
1341
1341
|
const k = new ResizeObserver((F) => {
|
|
1342
1342
|
for (const z of F)
|
|
1343
1343
|
l.value.chart.title.show && fl.value ? o = fl.value.getBoundingClientRect().height : o = 0, ze.value && ze.value.$el ? C = ze.value.$el.getBoundingClientRect().height : C = 0, sl.value ? S = sl.value.getBoundingClientRect().height : S = 0, gl.value ? T = gl.value.getBoundingClientRect().height : T = 0, ml.value ? Y = ml.value.getBoundingClientRect().height : Y = 0, requestAnimationFrame(() => {
|
|
1344
|
-
ve.value = z.contentRect.height - o - S - C - T - Y - a,
|
|
1344
|
+
ve.value = z.contentRect.height - o - S - C - T - Y - a, j.value = z.contentBoxSize[0].inlineSize, Tl.value = `0 0 ${j.value < 0 ? 10 : j.value} ${ve.value < 0 ? 10 : ve.value}`, pt();
|
|
1345
1345
|
});
|
|
1346
1346
|
});
|
|
1347
1347
|
Re.value = k, oa.value = e, k.observe(e);
|
|
1348
1348
|
} else
|
|
1349
|
-
ve.value = l.value.chart.height,
|
|
1349
|
+
ve.value = l.value.chart.height, j.value = l.value.chart.width, y.value.dataLabels = l.value.chart.grid.labels.fontSize, y.value.yAxis = l.value.chart.grid.labels.axis.fontSize, y.value.xAxis = l.value.chart.grid.labels.xAxisLabels.fontSize, y.value.plotLabels = l.value.chart.labels.fontSize, we.value.plot = l.value.plot.radius, we.value.line = l.value.line.radius, Tl.value = `0 0 ${j.value} ${ve.value}`;
|
|
1350
1350
|
}
|
|
1351
1351
|
function yt(a) {
|
|
1352
1352
|
eo.value = {
|
|
@@ -1367,7 +1367,7 @@ const _s = ["id"], ws = ["id"], Ss = ["viewBox", "aria-label"], $s = ["x", "y",
|
|
|
1367
1367
|
autoRotatePath: ["chart", "grid", "labels", "xAxisLabels", "autoRotate", "enable"],
|
|
1368
1368
|
isAutoSize: so,
|
|
1369
1369
|
height: ve,
|
|
1370
|
-
width:
|
|
1370
|
+
width: j,
|
|
1371
1371
|
rotation: l.value.chart.grid.labels.xAxisLabels.autoRotate.angle
|
|
1372
1372
|
});
|
|
1373
1373
|
const Gl = x(!1), kt = x(null), _t = x(200), zo = b(
|
|
@@ -1413,7 +1413,7 @@ const _s = ["id"], ws = ["id"], Ss = ["viewBox", "aria-label"], $s = ["x", "y",
|
|
|
1413
1413
|
const e = s({
|
|
1414
1414
|
absoluteIndex: a + m.value.start,
|
|
1415
1415
|
seriesIndex: a,
|
|
1416
|
-
datapoint:
|
|
1416
|
+
datapoint: je.value,
|
|
1417
1417
|
bars: Me.value,
|
|
1418
1418
|
lines: te.value,
|
|
1419
1419
|
plots: be.value,
|
|
@@ -1464,7 +1464,7 @@ const _s = ["id"], ws = ["id"], Ss = ["viewBox", "aria-label"], $s = ["x", "y",
|
|
|
1464
1464
|
color: l.value.table.th.color,
|
|
1465
1465
|
headerColor: l.value.table.th.color,
|
|
1466
1466
|
headerBg: l.value.table.th.backgroundColor,
|
|
1467
|
-
isFullscreen:
|
|
1467
|
+
isFullscreen: qe.value,
|
|
1468
1468
|
fullscreenParent: Te.value,
|
|
1469
1469
|
forcedWidth: Math.min(800, window.innerWidth * 0.8)
|
|
1470
1470
|
} : {
|
|
@@ -1523,7 +1523,7 @@ const _s = ["id"], ws = ["id"], Ss = ["viewBox", "aria-label"], $s = ["x", "y",
|
|
|
1523
1523
|
toggleFullscreen: xt
|
|
1524
1524
|
}), (a, s) => (n(), r("div", {
|
|
1525
1525
|
id: `vue-ui-xy_${D.value}`,
|
|
1526
|
-
class:
|
|
1526
|
+
class: ll(`vue-data-ui-component vue-ui-xy ${qe.value ? "vue-data-ui-wrapper-fullscreen" : ""} ${l.value.useCssAnimation ? "" : "vue-ui-dna"}`),
|
|
1527
1527
|
ref_key: "chart",
|
|
1528
1528
|
ref: Te,
|
|
1529
1529
|
style: $(`background:${l.value.chart.backgroundColor}; color:${l.value.chart.color};width:100%;font-family:${l.value.chart.fontFamily};${l.value.responsive ? "height: 100%" : ""}`),
|
|
@@ -1589,7 +1589,7 @@ const _s = ["id"], ws = ["id"], Ss = ["viewBox", "aria-label"], $s = ["x", "y",
|
|
|
1589
1589
|
hasStack: Ql.dataset.length > 1 && l.value.chart.userOptions.buttons.stack,
|
|
1590
1590
|
hasFullscreen: l.value.chart.userOptions.buttons.fullscreen,
|
|
1591
1591
|
isStacked: f.value.isStacked,
|
|
1592
|
-
isFullscreen:
|
|
1592
|
+
isFullscreen: qe.value,
|
|
1593
1593
|
chartElement: a.$refs.chart,
|
|
1594
1594
|
position: l.value.chart.userOptions.position,
|
|
1595
1595
|
isTooltip: f.value.showTooltip,
|
|
@@ -1615,80 +1615,87 @@ const _s = ["id"], ws = ["id"], Ss = ["viewBox", "aria-label"], $s = ["x", "y",
|
|
|
1615
1615
|
}, At({ _: 2 }, [
|
|
1616
1616
|
a.$slots.menuIcon ? {
|
|
1617
1617
|
name: "menuIcon",
|
|
1618
|
-
fn:
|
|
1619
|
-
|
|
1618
|
+
fn: Q(({ isOpen: e, color: u }) => [
|
|
1619
|
+
W(a.$slots, "menuIcon", We(Xe({ isOpen: e, color: u })), void 0, !0)
|
|
1620
1620
|
]),
|
|
1621
1621
|
key: "0"
|
|
1622
1622
|
} : void 0,
|
|
1623
1623
|
a.$slots.optionTooltip ? {
|
|
1624
1624
|
name: "optionTooltip",
|
|
1625
|
-
fn:
|
|
1626
|
-
|
|
1625
|
+
fn: Q(() => [
|
|
1626
|
+
W(a.$slots, "optionTooltip", {}, void 0, !0)
|
|
1627
1627
|
]),
|
|
1628
1628
|
key: "1"
|
|
1629
1629
|
} : void 0,
|
|
1630
1630
|
a.$slots.optionPdf ? {
|
|
1631
1631
|
name: "optionPdf",
|
|
1632
|
-
fn:
|
|
1633
|
-
|
|
1632
|
+
fn: Q(() => [
|
|
1633
|
+
W(a.$slots, "optionPdf", {}, void 0, !0)
|
|
1634
1634
|
]),
|
|
1635
1635
|
key: "2"
|
|
1636
1636
|
} : void 0,
|
|
1637
1637
|
a.$slots.optionCsv ? {
|
|
1638
1638
|
name: "optionCsv",
|
|
1639
|
-
fn:
|
|
1640
|
-
|
|
1639
|
+
fn: Q(() => [
|
|
1640
|
+
W(a.$slots, "optionCsv", {}, void 0, !0)
|
|
1641
1641
|
]),
|
|
1642
1642
|
key: "3"
|
|
1643
1643
|
} : void 0,
|
|
1644
1644
|
a.$slots.optionImg ? {
|
|
1645
1645
|
name: "optionImg",
|
|
1646
|
-
fn:
|
|
1647
|
-
|
|
1646
|
+
fn: Q(() => [
|
|
1647
|
+
W(a.$slots, "optionImg", {}, void 0, !0)
|
|
1648
1648
|
]),
|
|
1649
1649
|
key: "4"
|
|
1650
1650
|
} : void 0,
|
|
1651
|
+
a.$slots.optionSvg ? {
|
|
1652
|
+
name: "optionSvg",
|
|
1653
|
+
fn: Q(() => [
|
|
1654
|
+
W(a.$slots, "optionSvg", {}, void 0, !0)
|
|
1655
|
+
]),
|
|
1656
|
+
key: "5"
|
|
1657
|
+
} : void 0,
|
|
1651
1658
|
a.$slots.optionTable ? {
|
|
1652
1659
|
name: "optionTable",
|
|
1653
|
-
fn:
|
|
1654
|
-
|
|
1660
|
+
fn: Q(() => [
|
|
1661
|
+
W(a.$slots, "optionTable", {}, void 0, !0)
|
|
1655
1662
|
]),
|
|
1656
|
-
key: "
|
|
1663
|
+
key: "6"
|
|
1657
1664
|
} : void 0,
|
|
1658
1665
|
a.$slots.optionLabels ? {
|
|
1659
1666
|
name: "optionLabels",
|
|
1660
|
-
fn:
|
|
1661
|
-
|
|
1667
|
+
fn: Q(() => [
|
|
1668
|
+
W(a.$slots, "optionLabels", {}, void 0, !0)
|
|
1662
1669
|
]),
|
|
1663
|
-
key: "
|
|
1670
|
+
key: "7"
|
|
1664
1671
|
} : void 0,
|
|
1665
1672
|
a.$slots.optionStack ? {
|
|
1666
1673
|
name: "optionStack",
|
|
1667
|
-
fn:
|
|
1668
|
-
|
|
1674
|
+
fn: Q(({ isStack: e }) => [
|
|
1675
|
+
W(a.$slots, "optionStack", We(Xe({ isStack: e })), void 0, !0)
|
|
1669
1676
|
]),
|
|
1670
|
-
key: "
|
|
1677
|
+
key: "8"
|
|
1671
1678
|
} : void 0,
|
|
1672
1679
|
a.$slots.optionFullscreen ? {
|
|
1673
1680
|
name: "optionFullscreen",
|
|
1674
|
-
fn:
|
|
1675
|
-
|
|
1681
|
+
fn: Q(({ toggleFullscreen: e, isFullscreen: u }) => [
|
|
1682
|
+
W(a.$slots, "optionFullscreen", We(Xe({ toggleFullscreen: e, isFullscreen: u })), void 0, !0)
|
|
1676
1683
|
]),
|
|
1677
|
-
key: "
|
|
1684
|
+
key: "9"
|
|
1678
1685
|
} : void 0,
|
|
1679
1686
|
a.$slots.optionAnnotator ? {
|
|
1680
1687
|
name: "optionAnnotator",
|
|
1681
|
-
fn:
|
|
1682
|
-
|
|
1688
|
+
fn: Q(({ toggleAnnotator: e, isAnnotator: u }) => [
|
|
1689
|
+
W(a.$slots, "optionAnnotator", We(Xe({ toggleAnnotator: e, isAnnotator: u })), void 0, !0)
|
|
1683
1690
|
]),
|
|
1684
|
-
key: "
|
|
1691
|
+
key: "10"
|
|
1685
1692
|
} : void 0
|
|
1686
1693
|
]), 1032, ["backgroundColor", "color", "isPrinting", "isImaging", "uid", "hasTooltip", "hasPdf", "hasXls", "hasImg", "hasSvg", "hasLabel", "hasTable", "hasStack", "hasFullscreen", "isStacked", "isFullscreen", "chartElement", "position", "isTooltip", "titles", "hasAnnotator", "isAnnotation", "callbacks", "tableDialog", "printScale", "onGeneratePdf", "onGenerateImage", "style"])) : h("", !0),
|
|
1687
1694
|
(n(), r("svg", {
|
|
1688
1695
|
ref_key: "svgRef",
|
|
1689
1696
|
ref: ue,
|
|
1690
1697
|
xmlns: "http://www.w3.org/2000/svg",
|
|
1691
|
-
class:
|
|
1698
|
+
class: ll([{ "vue-data-ui-fullscreen--on": qe.value, "vue-data-ui-fulscreen--off": !qe.value }, "vue-ui-xy-svg vue-data-ui-svg"]),
|
|
1692
1699
|
width: "100%",
|
|
1693
1700
|
viewBox: Tl.value,
|
|
1694
1701
|
style: $({
|
|
@@ -1720,7 +1727,7 @@ const _s = ["id"], ws = ["id"], Ss = ["viewBox", "aria-label"], $s = ["x", "y",
|
|
|
1720
1727
|
pointerEvents: "none"
|
|
1721
1728
|
}
|
|
1722
1729
|
}, [
|
|
1723
|
-
|
|
1730
|
+
W(a.$slots, "chart-background", {}, void 0, !0)
|
|
1724
1731
|
], 8, $s)) : h("", !0),
|
|
1725
1732
|
L.value > 0 ? (n(), r("g", Ls, [
|
|
1726
1733
|
p("g", Ms, [
|
|
@@ -1802,7 +1809,7 @@ const _s = ["id"], ws = ["id"], Ss = ["viewBox", "aria-label"], $s = ["x", "y",
|
|
|
1802
1809
|
(n(!0), r(d, null, w(Me.value, (e, u) => (n(), r("defs", {
|
|
1803
1810
|
key: `def_rect_${u}`
|
|
1804
1811
|
}, [
|
|
1805
|
-
a.$slots["bar-gradient"] ?
|
|
1812
|
+
a.$slots["bar-gradient"] ? W(a.$slots, "bar-gradient", al({
|
|
1806
1813
|
key: 0,
|
|
1807
1814
|
ref_for: !0
|
|
1808
1815
|
}, { series: e, positiveId: `rectGradient_pos_${u}_${D.value}`, negativeId: `rectGradient_neg_${u}_${D.value}` }), void 0, !0) : (n(), r(d, { key: 1 }, [
|
|
@@ -1885,7 +1892,7 @@ const _s = ["id"], ws = ["id"], Ss = ["viewBox", "aria-label"], $s = ["x", "y",
|
|
|
1885
1892
|
"stop-color": e.color
|
|
1886
1893
|
}, null, 8, Ks)
|
|
1887
1894
|
], 8, Zs),
|
|
1888
|
-
a.$slots["area-gradient"] ?
|
|
1895
|
+
a.$slots["area-gradient"] ? W(a.$slots, "area-gradient", al({
|
|
1889
1896
|
key: 0,
|
|
1890
1897
|
ref_for: !0
|
|
1891
1898
|
}, { series: e, id: `areaGradient_${u}_${D.value}` }), void 0, !0) : (n(), r("linearGradient", {
|
|
@@ -1949,14 +1956,14 @@ const _s = ["id"], ws = ["id"], Ss = ["viewBox", "aria-label"], $s = ["x", "y",
|
|
|
1949
1956
|
y: c.value.top,
|
|
1950
1957
|
height: c.value.height < 0 ? 10 : c.value.height,
|
|
1951
1958
|
width: c.value.width / L.value < 0 ? 1e-5 : c.value.width / L.value,
|
|
1952
|
-
fill: [V.value, _.value,
|
|
1959
|
+
fill: [V.value, _.value, Ze.value].includes(u) ? v(Ce)(l.value.chart.highlighter.color, l.value.chart.highlighter.opacity) : "transparent",
|
|
1953
1960
|
style: { transition: "none !important", animation: "none !important" }
|
|
1954
1961
|
}, null, 8, ou)
|
|
1955
1962
|
]))), 128))
|
|
1956
1963
|
])) : h("", !0),
|
|
1957
1964
|
Me.value.length ? (n(!0), r(d, { key: 1 }, w(Me.value, (e, u) => (n(), r("g", {
|
|
1958
1965
|
key: `serie_bar_${e.id}`,
|
|
1959
|
-
class:
|
|
1966
|
+
class: ll(`serie_bar_${u}`),
|
|
1960
1967
|
style: $(`opacity:${I.value ? I.value === e.groupId ? 1 : 0.2 : 1};transition:opacity 0.2s ease-in-out`)
|
|
1961
1968
|
}, [
|
|
1962
1969
|
(n(!0), r(d, null, w(e.plots, (t, i) => (n(), r("g", {
|
|
@@ -1996,7 +2003,7 @@ const _s = ["id"], ws = ["id"], Ss = ["viewBox", "aria-label"], $s = ["x", "y",
|
|
|
1996
2003
|
x: Hl(t) - l.value.chart.comments.width / 2 + l.value.chart.comments.offsetX,
|
|
1997
2004
|
y: v(P)(t.y) + l.value.chart.comments.offsetY + 6
|
|
1998
2005
|
}, [
|
|
1999
|
-
|
|
2006
|
+
W(a.$slots, "plot-comment", {
|
|
2000
2007
|
plot: { ...t, color: e.color, seriesIndex: u, datapointIndex: i }
|
|
2001
2008
|
}, void 0, !0)
|
|
2002
2009
|
], 8, iu)) : h("", !0)
|
|
@@ -2134,7 +2141,7 @@ const _s = ["id"], ws = ["id"], Ss = ["viewBox", "aria-label"], $s = ["x", "y",
|
|
|
2134
2141
|
], 512)) : h("", !0),
|
|
2135
2142
|
(n(!0), r(d, null, w(be.value, (e, u) => (n(), r("g", {
|
|
2136
2143
|
key: `serie_plot_${e.id}`,
|
|
2137
|
-
class:
|
|
2144
|
+
class: ll(`serie_plot_${u}`),
|
|
2138
2145
|
style: $(`opacity:${I.value ? I.value === e.groupId ? 1 : 0.2 : 1};transition:opacity 0.2s ease-in-out`)
|
|
2139
2146
|
}, [
|
|
2140
2147
|
(n(!0), r(d, null, w(e.plots, (t, i) => (n(), r("g", {
|
|
@@ -2159,7 +2166,7 @@ const _s = ["id"], ws = ["id"], Ss = ["viewBox", "aria-label"], $s = ["x", "y",
|
|
|
2159
2166
|
y: t.y + l.value.chart.comments.offsetY + 6
|
|
2160
2167
|
}, [
|
|
2161
2168
|
p("div", pu, [
|
|
2162
|
-
|
|
2169
|
+
W(a.$slots, "plot-comment", {
|
|
2163
2170
|
plot: { ...t, color: e.color, seriesIndex: u, datapointIndex: i }
|
|
2164
2171
|
}, void 0, !0)
|
|
2165
2172
|
])
|
|
@@ -2168,7 +2175,7 @@ const _s = ["id"], ws = ["id"], Ss = ["viewBox", "aria-label"], $s = ["x", "y",
|
|
|
2168
2175
|
], 6))), 128)),
|
|
2169
2176
|
(n(!0), r(d, null, w(te.value, (e, u) => (n(), r("g", {
|
|
2170
2177
|
key: `serie_line_${e.id}`,
|
|
2171
|
-
class:
|
|
2178
|
+
class: ll(`serie_line_${u}`),
|
|
2172
2179
|
style: $(`opacity:${I.value ? I.value === e.groupId ? 1 : 0.2 : 1};transition:opacity 0.2s ease-in-out`)
|
|
2173
2180
|
}, [
|
|
2174
2181
|
e.smooth && e.plots.length > 1 && e.curve ? (n(), r("path", {
|
|
@@ -2192,7 +2199,7 @@ const _s = ["id"], ws = ["id"], Ss = ["viewBox", "aria-label"], $s = ["x", "y",
|
|
|
2192
2199
|
}, null, 12, ku)) : h("", !0)
|
|
2193
2200
|
], 6))), 128)),
|
|
2194
2201
|
a.$slots.pattern ? (n(), r("defs", _u, [
|
|
2195
|
-
(n(!0), r(d, null, w(Fe.value, (e, u) =>
|
|
2202
|
+
(n(!0), r(d, null, w(Fe.value, (e, u) => W(a.$slots, "pattern", al({
|
|
2196
2203
|
key: `serie_pattern_slot_${e.id}`
|
|
2197
2204
|
}, { ref_for: !0 }, { ...e, seriesIndex: e.slotAbsoluteIndex, patternId: `pattern_${D.value}_${u}` }), void 0, !0)), 128))
|
|
2198
2205
|
])) : h("", !0),
|
|
@@ -2209,7 +2216,7 @@ const _s = ["id"], ws = ["id"], Ss = ["viewBox", "aria-label"], $s = ["x", "y",
|
|
|
2209
2216
|
])) : h("", !0),
|
|
2210
2217
|
(n(!0), r(d, null, w(te.value, (e, u) => (n(), r("g", {
|
|
2211
2218
|
key: `serie_line_above_${e.id}`,
|
|
2212
|
-
class:
|
|
2219
|
+
class: ll(`serie_line_${u}`),
|
|
2213
2220
|
style: $(`opacity:${I.value ? I.value === e.groupId ? 1 : 0.2 : 1};transition:opacity 0.2s ease-in-out`)
|
|
2214
2221
|
}, [
|
|
2215
2222
|
e.useArea && e.plots.length > 1 ? (n(), r("g", $u, [
|
|
@@ -2283,7 +2290,7 @@ const _s = ["id"], ws = ["id"], Ss = ["viewBox", "aria-label"], $s = ["x", "y",
|
|
|
2283
2290
|
y: t.y + l.value.chart.comments.offsetY + 6
|
|
2284
2291
|
}, [
|
|
2285
2292
|
p("div", Ou, [
|
|
2286
|
-
|
|
2293
|
+
W(a.$slots, "plot-comment", {
|
|
2287
2294
|
plot: { ...t, color: e.color, seriesIndex: u, datapointIndex: i }
|
|
2288
2295
|
}, void 0, !0)
|
|
2289
2296
|
])
|
|
@@ -2374,7 +2381,7 @@ const _s = ["id"], ws = ["id"], Ss = ["viewBox", "aria-label"], $s = ["x", "y",
|
|
|
2374
2381
|
key: `xLabel_plot_${u}_${i}`
|
|
2375
2382
|
}, [
|
|
2376
2383
|
l.value.plot.tag.followValue ? (n(), r(d, { key: 1 }, [
|
|
2377
|
-
[V.value, _.value,
|
|
2384
|
+
[V.value, _.value, Ze.value].includes(i) && e.useTag ? (n(), r("line", {
|
|
2378
2385
|
key: 0,
|
|
2379
2386
|
class: "vue-ui-xy-tag-plot",
|
|
2380
2387
|
x1: c.value.left,
|
|
@@ -2396,7 +2403,7 @@ const _s = ["id"], ws = ["id"], Ss = ["viewBox", "aria-label"], $s = ["x", "y",
|
|
|
2396
2403
|
style: $(`overflow: visible; opacity:${I.value ? I.value === e.groupId ? 1 : 0.2 : 1};transition:opacity 0.2s ease-in-out`)
|
|
2397
2404
|
}, [
|
|
2398
2405
|
p("div", {
|
|
2399
|
-
style: $(`padding: 3px; background:${v(Ce)(e.color, 80)};color:${v(
|
|
2406
|
+
style: $(`padding: 3px; background:${v(Ce)(e.color, 80)};color:${v(Ge)(e.color)};width:fit-content;font-size:${y.value.plotLabels}px;border-radius: 2px;`),
|
|
2400
2407
|
innerHTML: v(se)(
|
|
2401
2408
|
l.value.plot.tag.formatter,
|
|
2402
2409
|
t.value,
|
|
@@ -2418,7 +2425,7 @@ const _s = ["id"], ws = ["id"], Ss = ["viewBox", "aria-label"], $s = ["x", "y",
|
|
|
2418
2425
|
style: $(`overflow: visible; opacity:${I.value ? I.value === e.groupId ? 1 : 0.2 : 1};transition:opacity 0.2s ease-in-out`)
|
|
2419
2426
|
}, [
|
|
2420
2427
|
p("div", {
|
|
2421
|
-
style: $(`padding: 3px; background:${v(Ce)(e.color, 80)};color:${v(
|
|
2428
|
+
style: $(`padding: 3px; background:${v(Ce)(e.color, 80)};color:${v(Ge)(e.color)};width:fit-content;font-size:${y.value.plotLabels}px;border-radius: 2px;`),
|
|
2422
2429
|
innerHTML: v(se)(
|
|
2423
2430
|
l.value.plot.tag.formatter,
|
|
2424
2431
|
t.value,
|
|
@@ -2474,7 +2481,7 @@ const _s = ["id"], ws = ["id"], Ss = ["viewBox", "aria-label"], $s = ["x", "y",
|
|
|
2474
2481
|
key: `xLabel_line_${u}_${i}`
|
|
2475
2482
|
}, [
|
|
2476
2483
|
l.value.line.tag.followValue ? (n(), r(d, { key: 1 }, [
|
|
2477
|
-
[V.value, _.value,
|
|
2484
|
+
[V.value, _.value, Ze.value].includes(i) && e.useTag ? (n(), r("line", {
|
|
2478
2485
|
key: 0,
|
|
2479
2486
|
class: "vue-ui-xy-tag-line",
|
|
2480
2487
|
x1: c.value.left,
|
|
@@ -2496,7 +2503,7 @@ const _s = ["id"], ws = ["id"], Ss = ["viewBox", "aria-label"], $s = ["x", "y",
|
|
|
2496
2503
|
style: $(`overflow: visible; opacity:${I.value ? I.value === e.groupId ? 1 : 0.2 : 1};transition:opacity 0.2s ease-in-out`)
|
|
2497
2504
|
}, [
|
|
2498
2505
|
p("div", {
|
|
2499
|
-
style: $(`padding: 3px; background:${v(Ce)(e.color, 80)};color:${v(
|
|
2506
|
+
style: $(`padding: 3px; background:${v(Ce)(e.color, 80)};color:${v(Ge)(e.color)};width:fit-content;font-size:${y.value.plotLabels}px;border-radius: 2px;`),
|
|
2500
2507
|
innerHTML: v(se)(
|
|
2501
2508
|
l.value.line.tag.formatter,
|
|
2502
2509
|
t.value,
|
|
@@ -2518,7 +2525,7 @@ const _s = ["id"], ws = ["id"], Ss = ["viewBox", "aria-label"], $s = ["x", "y",
|
|
|
2518
2525
|
style: $(`overflow: visible; opacity:${I.value ? I.value === e.groupId ? 1 : 0.2 : 1};transition:opacity 0.2s ease-in-out`)
|
|
2519
2526
|
}, [
|
|
2520
2527
|
p("div", {
|
|
2521
|
-
style: $(`padding: 3px; background:${v(Ce)(e.color, 80)};color:${v(
|
|
2528
|
+
style: $(`padding: 3px; background:${v(Ce)(e.color, 80)};color:${v(Ge)(e.color)};width:fit-content;font-size:${y.value.plotLabels}px;border-radius: 2px;`),
|
|
2522
2529
|
innerHTML: v(se)(
|
|
2523
2530
|
l.value.line.tag.formatter,
|
|
2524
2531
|
t.value,
|
|
@@ -2736,7 +2743,7 @@ const _s = ["id"], ws = ["id"], Ss = ["viewBox", "aria-label"], $s = ["x", "y",
|
|
|
2736
2743
|
ref_key: "xAxisLabel",
|
|
2737
2744
|
ref: ea,
|
|
2738
2745
|
"text-anchor": "middle",
|
|
2739
|
-
x:
|
|
2746
|
+
x: j.value / 2,
|
|
2740
2747
|
y: ve.value - 3,
|
|
2741
2748
|
"font-size": y.value.yAxis,
|
|
2742
2749
|
fill: l.value.chart.grid.labels.color
|
|
@@ -2747,7 +2754,7 @@ const _s = ["id"], ws = ["id"], Ss = ["viewBox", "aria-label"], $s = ["x", "y",
|
|
|
2747
2754
|
ref_key: "timeLabelsEls",
|
|
2748
2755
|
ref: ul
|
|
2749
2756
|
}, [
|
|
2750
|
-
a.$slots["time-label"] ? (n(!0), r(d, { key: 0 }, w(ga.value, (e, u) =>
|
|
2757
|
+
a.$slots["time-label"] ? (n(!0), r(d, { key: 0 }, w(ga.value, (e, u) => W(a.$slots, "time-label", al({
|
|
2751
2758
|
key: `time_label_${e.id}`,
|
|
2752
2759
|
ref_for: !0
|
|
2753
2760
|
}, {
|
|
@@ -2879,7 +2886,7 @@ const _s = ["id"], ws = ["id"], Ss = ["viewBox", "aria-label"], $s = ["x", "y",
|
|
|
2879
2886
|
"data-start": m.value.start,
|
|
2880
2887
|
"data-end": m.value.end
|
|
2881
2888
|
}), null, 16, Li)) : h("", !0),
|
|
2882
|
-
|
|
2889
|
+
W(a.$slots, "svg", {
|
|
2883
2890
|
svg: {
|
|
2884
2891
|
...lo.value,
|
|
2885
2892
|
data: [...te.value, ...Me.value, ...be.value],
|
|
@@ -2889,7 +2896,7 @@ const _s = ["id"], ws = ["id"], Ss = ["viewBox", "aria-label"], $s = ["x", "y",
|
|
|
2889
2896
|
], 512)
|
|
2890
2897
|
], 46, Ss)),
|
|
2891
2898
|
a.$slots.watermark ? (n(), r("div", Mi, [
|
|
2892
|
-
|
|
2899
|
+
W(a.$slots, "watermark", We(Xe({ isPrinting: v(va) || v(Ra) })), void 0, !0)
|
|
2893
2900
|
])) : h("", !0),
|
|
2894
2901
|
(n(!0), r(d, null, w(te.value, (e, u) => (n(), r(d, {
|
|
2895
2902
|
key: `tag_line_${e.id}`
|
|
@@ -2897,7 +2904,7 @@ const _s = ["id"], ws = ["id"], Ss = ["viewBox", "aria-label"], $s = ["x", "y",
|
|
|
2897
2904
|
(n(!0), r(d, null, w(e.plots, (t, i) => (n(), r(d, {
|
|
2898
2905
|
key: `tag_line_${u}_${i}`
|
|
2899
2906
|
}, [
|
|
2900
|
-
[V.value, _.value,
|
|
2907
|
+
[V.value, _.value, Ze.value].includes(i) && e.useTag && e.useTag === "end" && l.value.line.tag.followValue ? (n(), r("div", {
|
|
2901
2908
|
key: 0,
|
|
2902
2909
|
ref_for: !0,
|
|
2903
2910
|
ref: (o) => Fl(u, i, o, "right", "line"),
|
|
@@ -2905,14 +2912,14 @@ const _s = ["id"], ws = ["id"], Ss = ["viewBox", "aria-label"], $s = ["x", "y",
|
|
|
2905
2912
|
"data-tag": "right",
|
|
2906
2913
|
style: $({
|
|
2907
2914
|
position: "fixed",
|
|
2908
|
-
top: v(
|
|
2915
|
+
top: v(Ue)({
|
|
2909
2916
|
svgElement: ue.value,
|
|
2910
2917
|
x: c.value.right + l.value.line.tag.fontSize / 1.5,
|
|
2911
2918
|
y: t.y,
|
|
2912
2919
|
element: Pe.value[`${u}_${i}_right_line`],
|
|
2913
2920
|
position: "right"
|
|
2914
2921
|
}).top + "px",
|
|
2915
|
-
left: v(
|
|
2922
|
+
left: v(Ue)({
|
|
2916
2923
|
svgElement: ue.value,
|
|
2917
2924
|
x: c.value.right + l.value.line.tag.fontSize / 1.5,
|
|
2918
2925
|
y: t.y,
|
|
@@ -2922,7 +2929,7 @@ const _s = ["id"], ws = ["id"], Ss = ["viewBox", "aria-label"], $s = ["x", "y",
|
|
|
2922
2929
|
height: "fit-content",
|
|
2923
2930
|
width: "fit-content",
|
|
2924
2931
|
background: e.color,
|
|
2925
|
-
color: v(
|
|
2932
|
+
color: v(Ge)(e.color),
|
|
2926
2933
|
padding: "0 6px",
|
|
2927
2934
|
fontSize: l.value.line.tag.fontSize + "px",
|
|
2928
2935
|
opacity: 1
|
|
@@ -2949,7 +2956,7 @@ const _s = ["id"], ws = ["id"], Ss = ["viewBox", "aria-label"], $s = ["x", "y",
|
|
|
2949
2956
|
)
|
|
2950
2957
|
}, null, 8, Ti)
|
|
2951
2958
|
], 4)) : h("", !0),
|
|
2952
|
-
[V.value, _.value,
|
|
2959
|
+
[V.value, _.value, Ze.value].includes(i) && e.useTag && e.useTag === "start" && l.value.line.tag.followValue ? (n(), r("div", {
|
|
2953
2960
|
key: 1,
|
|
2954
2961
|
ref_for: !0,
|
|
2955
2962
|
ref: (o) => Fl(u, i, o, "left", "line"),
|
|
@@ -2957,14 +2964,14 @@ const _s = ["id"], ws = ["id"], Ss = ["viewBox", "aria-label"], $s = ["x", "y",
|
|
|
2957
2964
|
"data-tag": "left",
|
|
2958
2965
|
style: $({
|
|
2959
2966
|
position: "fixed",
|
|
2960
|
-
top: v(
|
|
2967
|
+
top: v(Ue)({
|
|
2961
2968
|
svgElement: ue.value,
|
|
2962
2969
|
x: c.value.left - l.value.line.tag.fontSize / 1.5,
|
|
2963
2970
|
y: t.y,
|
|
2964
2971
|
element: Pe.value[`${u}_${i}_left_line`],
|
|
2965
2972
|
position: "left"
|
|
2966
2973
|
}).top + "px",
|
|
2967
|
-
left: v(
|
|
2974
|
+
left: v(Ue)({
|
|
2968
2975
|
svgElement: ue.value,
|
|
2969
2976
|
x: c.value.left - l.value.line.tag.fontSize / 1.5,
|
|
2970
2977
|
y: t.y,
|
|
@@ -2974,7 +2981,7 @@ const _s = ["id"], ws = ["id"], Ss = ["viewBox", "aria-label"], $s = ["x", "y",
|
|
|
2974
2981
|
height: "fit-content",
|
|
2975
2982
|
width: "fit-content",
|
|
2976
2983
|
background: e.color,
|
|
2977
|
-
color: v(
|
|
2984
|
+
color: v(Ge)(e.color),
|
|
2978
2985
|
padding: "0 6px",
|
|
2979
2986
|
fontSize: l.value.line.tag.fontSize + "px",
|
|
2980
2987
|
opacity: 1
|
|
@@ -3009,7 +3016,7 @@ const _s = ["id"], ws = ["id"], Ss = ["viewBox", "aria-label"], $s = ["x", "y",
|
|
|
3009
3016
|
(n(!0), r(d, null, w(e.plots, (t, i) => (n(), r(d, {
|
|
3010
3017
|
key: `tag_plot_${u}_${i}`
|
|
3011
3018
|
}, [
|
|
3012
|
-
[V.value, _.value,
|
|
3019
|
+
[V.value, _.value, Ze.value].includes(i) && e.useTag && e.useTag === "end" && l.value.plot.tag.followValue ? (n(), r("div", {
|
|
3013
3020
|
key: 0,
|
|
3014
3021
|
ref_for: !0,
|
|
3015
3022
|
ref: (o) => Fl(u, i, o, "right", "plot"),
|
|
@@ -3017,14 +3024,14 @@ const _s = ["id"], ws = ["id"], Ss = ["viewBox", "aria-label"], $s = ["x", "y",
|
|
|
3017
3024
|
"data-tag": "right",
|
|
3018
3025
|
style: $({
|
|
3019
3026
|
position: "fixed",
|
|
3020
|
-
top: v(
|
|
3027
|
+
top: v(Ue)({
|
|
3021
3028
|
svgElement: ue.value,
|
|
3022
3029
|
x: c.value.right + l.value.plot.tag.fontSize / 1.5,
|
|
3023
3030
|
y: t.y,
|
|
3024
3031
|
element: Pe.value[`${u}_${i}_right_plot`],
|
|
3025
3032
|
position: "right"
|
|
3026
3033
|
}).top + "px",
|
|
3027
|
-
left: v(
|
|
3034
|
+
left: v(Ue)({
|
|
3028
3035
|
svgElement: ue.value,
|
|
3029
3036
|
x: c.value.right + l.value.plot.tag.fontSize / 1.5,
|
|
3030
3037
|
y: t.y,
|
|
@@ -3034,7 +3041,7 @@ const _s = ["id"], ws = ["id"], Ss = ["viewBox", "aria-label"], $s = ["x", "y",
|
|
|
3034
3041
|
height: "fit-content",
|
|
3035
3042
|
width: "fit-content",
|
|
3036
3043
|
background: e.color,
|
|
3037
|
-
color: v(
|
|
3044
|
+
color: v(Ge)(e.color),
|
|
3038
3045
|
padding: "0 6px",
|
|
3039
3046
|
fontSize: l.value.plot.tag.fontSize + "px",
|
|
3040
3047
|
opacity: 1
|
|
@@ -3061,7 +3068,7 @@ const _s = ["id"], ws = ["id"], Ss = ["viewBox", "aria-label"], $s = ["x", "y",
|
|
|
3061
3068
|
)
|
|
3062
3069
|
}, null, 8, Pi)
|
|
3063
3070
|
], 4)) : h("", !0),
|
|
3064
|
-
[V.value, _.value,
|
|
3071
|
+
[V.value, _.value, Ze.value].includes(i) && e.useTag && e.useTag === "start" && l.value.plot.tag.followValue ? (n(), r("div", {
|
|
3065
3072
|
key: 1,
|
|
3066
3073
|
ref_for: !0,
|
|
3067
3074
|
ref: (o) => Fl(u, i, o, "left", "plot"),
|
|
@@ -3069,14 +3076,14 @@ const _s = ["id"], ws = ["id"], Ss = ["viewBox", "aria-label"], $s = ["x", "y",
|
|
|
3069
3076
|
"data-tag": "left",
|
|
3070
3077
|
style: $({
|
|
3071
3078
|
position: "fixed",
|
|
3072
|
-
top: v(
|
|
3079
|
+
top: v(Ue)({
|
|
3073
3080
|
svgElement: ue.value,
|
|
3074
3081
|
x: c.value.left - l.value.plot.tag.fontSize / 1.5,
|
|
3075
3082
|
y: t.y,
|
|
3076
3083
|
element: Pe.value[`${u}_${i}_left_plot`],
|
|
3077
3084
|
position: "left"
|
|
3078
3085
|
}).top + "px",
|
|
3079
|
-
left: v(
|
|
3086
|
+
left: v(Ue)({
|
|
3080
3087
|
svgElement: ue.value,
|
|
3081
3088
|
x: c.value.left - l.value.plot.tag.fontSize / 1.5,
|
|
3082
3089
|
y: t.y,
|
|
@@ -3086,7 +3093,7 @@ const _s = ["id"], ws = ["id"], Ss = ["viewBox", "aria-label"], $s = ["x", "y",
|
|
|
3086
3093
|
height: "fit-content",
|
|
3087
3094
|
width: "fit-content",
|
|
3088
3095
|
background: e.color,
|
|
3089
|
-
color: v(
|
|
3096
|
+
color: v(Ge)(e.color),
|
|
3090
3097
|
padding: "0 6px",
|
|
3091
3098
|
fontSize: l.value.plot.tag.fontSize + "px",
|
|
3092
3099
|
opacity: 1
|
|
@@ -3152,7 +3159,7 @@ const _s = ["id"], ws = ["id"], Ss = ["viewBox", "aria-label"], $s = ["x", "y",
|
|
|
3152
3159
|
refreshEndPoint: l.value.chart.zoom.endIndex !== null ? l.value.chart.zoom.endIndex + 1 : Math.max(...Ql.dataset.map((e) => Be(e.series).length)),
|
|
3153
3160
|
refreshStartPoint: l.value.chart.zoom.startIndex !== null ? l.value.chart.zoom.startIndex : 0,
|
|
3154
3161
|
selectColor: l.value.chart.zoom.highlightColor,
|
|
3155
|
-
selectedSeries:
|
|
3162
|
+
selectedSeries: je.value,
|
|
3156
3163
|
smoothMinimap: l.value.chart.zoom.minimap.smooth,
|
|
3157
3164
|
start: m.value.start,
|
|
3158
3165
|
textColor: l.value.chart.color,
|
|
@@ -3168,8 +3175,8 @@ const _s = ["id"], ws = ["id"], Ss = ["viewBox", "aria-label"], $s = ["x", "y",
|
|
|
3168
3175
|
"onUpdate:end": bo,
|
|
3169
3176
|
"onUpdate:start": mo
|
|
3170
3177
|
}, {
|
|
3171
|
-
"reset-action":
|
|
3172
|
-
|
|
3178
|
+
"reset-action": Q(({ reset: e }) => [
|
|
3179
|
+
W(a.$slots, "reset-action", We(Xe({ reset: e })), void 0, !0)
|
|
3173
3180
|
]),
|
|
3174
3181
|
_: 3
|
|
3175
3182
|
}, 8, ["allMinimaps", "background", "borderColor", "customFormat", "cutNullValues", "enableRangeHandles", "enableSelectionDrag", "end", "focusOnDrag", "focusRangeRatio", "fontSize", "useResetSlot", "immediate", "inputColor", "isPreview", "labelLeft", "labelRight", "max", "minimap", "minimapCompact", "minimapFrameColor", "minimapIndicatorColor", "minimapLineColor", "minimapMerged", "minimapSelectedColor", "minimapSelectedColorOpacity", "minimapSelectedIndex", "minimapSelectionRadius", "preciseLabels", "refreshEndPoint", "refreshStartPoint", "selectColor", "selectedSeries", "smoothMinimap", "start", "textColor", "timeLabels", "usePreciseLabels", "valueEnd", "valueStart", "verticalHandles"])) : h("", !0),
|
|
@@ -3192,7 +3199,7 @@ const _s = ["id"], ws = ["id"], Ss = ["viewBox", "aria-label"], $s = ["x", "y",
|
|
|
3192
3199
|
(n(!0), r(d, null, w(Le.value, (e, u) => (n(), r("div", {
|
|
3193
3200
|
key: `div_legend_item_${u}`,
|
|
3194
3201
|
onClick: (t) => ot(e),
|
|
3195
|
-
class:
|
|
3202
|
+
class: ll({ "vue-ui-xy-legend-item-alone": Le.value.length === 1, "vue-ui-xy-legend-item": !0, "vue-ui-xy-legend-item-segregated": ee.value.includes(e.id) })
|
|
3196
3203
|
}, [
|
|
3197
3204
|
bl.value[e.type] === "line" ? (n(), r("svg", Ei, [
|
|
3198
3205
|
p("rect", {
|
|
@@ -3251,7 +3258,7 @@ const _s = ["id"], ws = ["id"], Ss = ["viewBox", "aria-label"], $s = ["x", "y",
|
|
|
3251
3258
|
ref_key: "chartLegend",
|
|
3252
3259
|
ref: sl
|
|
3253
3260
|
}, [
|
|
3254
|
-
|
|
3261
|
+
W(a.$slots, "legend", { legend: Le.value }, void 0, !0)
|
|
3255
3262
|
], 512))
|
|
3256
3263
|
], 8, ["to"])) : h("", !0),
|
|
3257
3264
|
a.$slots.source ? (n(), r("div", {
|
|
@@ -3260,7 +3267,7 @@ const _s = ["id"], ws = ["id"], Ss = ["viewBox", "aria-label"], $s = ["x", "y",
|
|
|
3260
3267
|
ref: gl,
|
|
3261
3268
|
dir: "auto"
|
|
3262
3269
|
}, [
|
|
3263
|
-
|
|
3270
|
+
W(a.$slots, "source", {}, void 0, !0)
|
|
3264
3271
|
], 512)) : h("", !0),
|
|
3265
3272
|
vl(v(Xt), {
|
|
3266
3273
|
show: f.value.showTooltip && Ma.value,
|
|
@@ -3275,18 +3282,18 @@ const _s = ["id"], ws = ["id"], Ss = ["viewBox", "aria-label"], $s = ["x", "y",
|
|
|
3275
3282
|
offsetY: l.value.chart.tooltip.offsetY,
|
|
3276
3283
|
parent: a.$refs.chart,
|
|
3277
3284
|
content: To.value,
|
|
3278
|
-
isFullscreen:
|
|
3285
|
+
isFullscreen: qe.value,
|
|
3279
3286
|
isCustom: l.value.chart.tooltip.customFormat && typeof l.value.chart.tooltip.customFormat == "function",
|
|
3280
3287
|
smooth: l.value.chart.tooltip.smooth,
|
|
3281
3288
|
backdropFilter: l.value.chart.tooltip.backdropFilter,
|
|
3282
3289
|
smoothForce: l.value.chart.tooltip.smoothForce,
|
|
3283
3290
|
smoothSnapThreshold: l.value.chart.tooltip.smoothSnapThreshold
|
|
3284
3291
|
}, {
|
|
3285
|
-
"tooltip-before":
|
|
3286
|
-
|
|
3292
|
+
"tooltip-before": Q(() => [
|
|
3293
|
+
W(a.$slots, "tooltip-before", We(Xe({ ...vt.value })), void 0, !0)
|
|
3287
3294
|
]),
|
|
3288
|
-
"tooltip-after":
|
|
3289
|
-
|
|
3295
|
+
"tooltip-after": Q(() => [
|
|
3296
|
+
W(a.$slots, "tooltip-after", We(Xe({ ...vt.value })), void 0, !0)
|
|
3290
3297
|
]),
|
|
3291
3298
|
_: 3
|
|
3292
3299
|
}, 8, ["show", "backgroundColor", "color", "fontSize", "borderRadius", "borderColor", "borderWidth", "backgroundOpacity", "position", "offsetY", "parent", "content", "isFullscreen", "isCustom", "smooth", "backdropFilter", "smoothForce", "smoothSnapThreshold"]),
|
|
@@ -3295,7 +3302,7 @@ const _s = ["id"], ws = ["id"], Ss = ["viewBox", "aria-label"], $s = ["x", "y",
|
|
|
3295
3302
|
ref: il,
|
|
3296
3303
|
onClose: St
|
|
3297
3304
|
}), At({
|
|
3298
|
-
content:
|
|
3305
|
+
content: Q(() => [
|
|
3299
3306
|
p("div", {
|
|
3300
3307
|
style: $(`${v(va) || l.value.table.useDialog ? "" : "max-height:400px"};${l.value.table.useDialog ? "height: fit-content; " : ""};overflow:auto;width:100%;${l.value.table.useDialog ? "" : "margin-top:48px"}`)
|
|
3301
3308
|
}, [
|
|
@@ -3331,10 +3338,10 @@ const _s = ["id"], ws = ["id"], Ss = ["viewBox", "aria-label"], $s = ["x", "y",
|
|
|
3331
3338
|
withCloseButton: !l.value.table.useDialog,
|
|
3332
3339
|
onClose: St
|
|
3333
3340
|
}, {
|
|
3334
|
-
th:
|
|
3341
|
+
th: Q(({ th: e }) => [
|
|
3335
3342
|
p("div", { innerHTML: e }, null, 8, Zi)
|
|
3336
3343
|
]),
|
|
3337
|
-
td:
|
|
3344
|
+
td: Q(({ td: e }) => [
|
|
3338
3345
|
Ct(ae(isNaN(Number(e)) ? e : v(Ve)({
|
|
3339
3346
|
p: l.value.chart.labels.prefix,
|
|
3340
3347
|
v: e,
|
|
@@ -3350,14 +3357,14 @@ const _s = ["id"], ws = ["id"], Ss = ["viewBox", "aria-label"], $s = ["x", "y",
|
|
|
3350
3357
|
}, [
|
|
3351
3358
|
l.value.table.useDialog ? {
|
|
3352
3359
|
name: "title",
|
|
3353
|
-
fn:
|
|
3360
|
+
fn: Q(() => [
|
|
3354
3361
|
Ct(ae($l.value.title), 1)
|
|
3355
3362
|
]),
|
|
3356
3363
|
key: "0"
|
|
3357
3364
|
} : void 0,
|
|
3358
3365
|
l.value.table.useDialog ? {
|
|
3359
3366
|
name: "actions",
|
|
3360
|
-
fn:
|
|
3367
|
+
fn: Q(() => [
|
|
3361
3368
|
p("button", {
|
|
3362
3369
|
tabindex: "0",
|
|
3363
3370
|
class: "vue-ui-user-options-button",
|
|
@@ -3375,7 +3382,7 @@ const _s = ["id"], ws = ["id"], Ss = ["viewBox", "aria-label"], $s = ["x", "y",
|
|
|
3375
3382
|
v(ie) ? (n(), Ae(vs, { key: 9 })) : h("", !0)
|
|
3376
3383
|
], 46, _s));
|
|
3377
3384
|
}
|
|
3378
|
-
}, fn = /* @__PURE__ */ ks(Ji, [["__scopeId", "data-v-
|
|
3385
|
+
}, fn = /* @__PURE__ */ ks(Ji, [["__scopeId", "data-v-53304c9f"]]);
|
|
3379
3386
|
export {
|
|
3380
3387
|
fn as default
|
|
3381
3388
|
};
|