vue-data-ui 3.0.0-next.6 → 3.0.0-next.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/{Arrow-Ul64M9UV.js → Arrow-BRtNjitS.js} +1 -1
- package/dist/{BaseDraggableDialog-Q2ajCztp.js → BaseDraggableDialog-CO9ok1PR.js} +2 -2
- package/dist/{BaseIcon-BKR7AGeP.js → BaseIcon-BuOIF6t5.js} +1 -1
- package/dist/{ColorPicker-BagIs8-K.js → ColorPicker-FH6oc0mS.js} +2 -2
- package/dist/{DataTable-CDwApkI_.js → DataTable-D36ZRtpU.js} +2 -2
- package/dist/{Legend-BSLj7tYc.js → Legend-DInM-hku.js} +2 -2
- package/dist/{NonSvgPenAndPaper-DjJe5fXu.js → NonSvgPenAndPaper-B60MxEaz.js} +3 -3
- package/dist/{PackageVersion-BsKpz6KS.js → PackageVersion-CGQlqnmq.js} +1 -1
- package/dist/{PenAndPaper-BYRk8xrS.js → PenAndPaper-B5slIHlh.js} +3 -3
- package/dist/{Shape-DK7zYTKa.js → Shape-BGr3dQKt.js} +1 -1
- package/dist/{Slicer-B_Hb6qSk.js → Slicer-O07lQwRC.js} +2 -2
- package/dist/{SparkTooltip-Dy2sVTb_.js → SparkTooltip-BWA23VgJ.js} +1 -1
- package/dist/{Title-Cednydse.js → Title-BSlAPr_H.js} +1 -1
- package/dist/{Tooltip-DJlwW-XP.js → Tooltip-lPcsweXz.js} +1 -1
- package/dist/{UserOptions-DxIzWere.js → UserOptions-Dn5TCQxg.js} +2 -2
- package/dist/{dom-to-png-lZcM-YfK.js → dom-to-png-Br-eVhJZ.js} +1 -1
- package/dist/{img-DqlIAUF6.js → img-CgMUOQnb.js} +1 -1
- package/dist/{index-BQcLOx39.js → index-Cfm5-hMQ.js} +490 -484
- package/dist/{pdf-CjIXhsyg.js → pdf-BMVHBLq5.js} +1 -1
- package/dist/style.css +1 -1
- package/dist/types/vue-data-ui.d.cts +1 -0
- package/dist/types/vue-data-ui.d.ts +1 -0
- package/dist/{useNestedProp-DefBVltl.js → useNestedProp-Hh7nGEjp.js} +1 -1
- package/dist/{usePrinter-BRY5saEA.js → usePrinter-B1Hgs47c.js} +2 -2
- package/dist/{vue-data-ui-CWRlSsiN.js → vue-data-ui-CD674-M3.js} +64 -64
- package/dist/vue-data-ui.js +1 -1
- package/dist/{vue-ui-3d-bar-CJMZqDo1.js → vue-ui-3d-bar-DWtJoryQ.js} +6 -6
- package/dist/{vue-ui-accordion-Df-5BRRg.js → vue-ui-accordion-CEDGlyKI.js} +3 -3
- package/dist/{vue-ui-age-pyramid-B6WAMtPk.js → vue-ui-age-pyramid-DbrA1G0r.js} +6 -6
- package/dist/{vue-ui-annotator-BxC5dcIv.js → vue-ui-annotator-CosgP-Fl.js} +2 -2
- package/dist/{vue-ui-bullet-NmtltFbU.js → vue-ui-bullet-9IB3mGon.js} +7 -7
- package/dist/{vue-ui-candlestick-BzqQtynP.js → vue-ui-candlestick-CWqPF_zW.js} +7 -7
- package/dist/{vue-ui-carousel-table-NTDzafWQ.js → vue-ui-carousel-table-BG1ItsAb.js} +4 -4
- package/dist/{vue-ui-chestnut-k21Qqjjq.js → vue-ui-chestnut-6uKesZW9.js} +5 -5
- package/dist/{vue-ui-chord-BVoA6nfI.js → vue-ui-chord-Crd3l1b6.js} +8 -8
- package/dist/{vue-ui-circle-pack-CEBgImRX.js → vue-ui-circle-pack-CAm2gxBi.js} +6 -6
- package/dist/{vue-ui-cursor-BQcz8xw2.js → vue-ui-cursor-CkVnNEGn.js} +2 -2
- package/dist/{vue-ui-dashboard-CyzEpJoI.js → vue-ui-dashboard-D07ivGS7.js} +62 -62
- package/dist/{vue-ui-digits-Dafw1UsT.js → vue-ui-digits-Doidl3Lz.js} +2 -2
- package/dist/{vue-ui-donut-DKfux8XT.js → vue-ui-donut-CWvzqAAa.js} +8 -8
- package/dist/{vue-ui-donut-evolution-D7cNk_6l.js → vue-ui-donut-evolution-Djp_eBqw.js} +8 -8
- package/dist/{vue-ui-dumbbell--H80zebk.js → vue-ui-dumbbell-B7GySnYf.js} +7 -7
- package/dist/{vue-ui-flow-lk_HU5NB.js → vue-ui-flow-XDpZAYWI.js} +7 -7
- package/dist/{vue-ui-funnel-CuN8HWwP.js → vue-ui-funnel-D1pFzjJa.js} +6 -6
- package/dist/{vue-ui-galaxy-BHCLFlmy.js → vue-ui-galaxy-DBQy21se.js} +5 -5
- package/dist/{vue-ui-gauge-DWlCh2_B.js → vue-ui-gauge-FBZaUrBD.js} +6 -6
- package/dist/{vue-ui-gizmo-DHEEfdp9.js → vue-ui-gizmo-CDbPxUzE.js} +3 -3
- package/dist/{vue-ui-heatmap-BK6BNOY_.js → vue-ui-heatmap-DsDWxYOS.js} +7 -7
- package/dist/{vue-ui-history-plot-CGF6lE-7.js → vue-ui-history-plot-CzO1Z1FH.js} +7 -7
- package/dist/{vue-ui-kpi-C4i2w_Yd.js → vue-ui-kpi-DTeZbrJk.js} +3 -3
- package/dist/{vue-ui-mini-loader-BeetGv_m.js → vue-ui-mini-loader-itpDcfZU.js} +2 -2
- package/dist/{vue-ui-molecule-F_gDXjJr.js → vue-ui-molecule-Ddd3FgID.js} +5 -5
- package/dist/{vue-ui-mood-radar-BJMOEqlu.js → vue-ui-mood-radar-24XAq8mg.js} +7 -7
- package/dist/{vue-ui-nested-donuts-BX0Z0rb1.js → vue-ui-nested-donuts-DjWASp62.js} +452 -417
- package/dist/{vue-ui-onion-BhjUET_W.js → vue-ui-onion-B9thdF_c.js} +7 -7
- package/dist/{vue-ui-parallel-coordinate-plot-n7QPVLrW.js → vue-ui-parallel-coordinate-plot-DT-GhOaA.js} +8 -8
- package/dist/{vue-ui-quadrant-DTyRC1_v.js → vue-ui-quadrant-0milmSNS.js} +8 -8
- package/dist/{vue-ui-quick-chart-5xX-yBIY.js → vue-ui-quick-chart-D0DukVN6.js} +6 -6
- package/dist/{vue-ui-radar-De2iznwo.js → vue-ui-radar-DY8y6oRc.js} +7 -7
- package/dist/{vue-ui-rating-CarXXyD-.js → vue-ui-rating-C3QUdrMw.js} +2 -2
- package/dist/{vue-ui-relation-circle-CKkK9D4E.js → vue-ui-relation-circle-8Gd7_fxt.js} +6 -6
- package/dist/{vue-ui-ridgeline-DQ8RQf3E.js → vue-ui-ridgeline-iPtG1McW.js} +8 -8
- package/dist/{vue-ui-rings-Cze6OsmO.js → vue-ui-rings-BXPo4MMo.js} +8 -8
- package/dist/{vue-ui-scatter-CwI3_Dn7.js → vue-ui-scatter-26d0eebx.js} +8 -8
- package/dist/{vue-ui-skeleton-C7maR60-.js → vue-ui-skeleton-P-1SRvsT.js} +3 -3
- package/dist/{vue-ui-smiley-DzCCn5Oc.js → vue-ui-smiley-Cd1bhDuU.js} +2 -2
- package/dist/{vue-ui-spark-trend-Db-Fnp8C.js → vue-ui-spark-trend-Dt3ctzpl.js} +3 -3
- package/dist/{vue-ui-sparkbar-C6wsNMMO.js → vue-ui-sparkbar-RrxErqrU.js} +3 -3
- package/dist/{vue-ui-sparkgauge-DAQ4zozy.js → vue-ui-sparkgauge-CyNi1b0O.js} +3 -3
- package/dist/{vue-ui-sparkhistogram-CMEaO0CW.js → vue-ui-sparkhistogram-DPpZCPuE.js} +4 -4
- package/dist/{vue-ui-sparkline-R7pfxRWN.js → vue-ui-sparkline-BMjQ_uYx.js} +3 -3
- package/dist/{vue-ui-sparkstackbar-DV_XqJQ2.js → vue-ui-sparkstackbar-CjO8pfE-.js} +3 -3
- package/dist/{vue-ui-stackbar-gReSujA_.js → vue-ui-stackbar-wgyvMlE6.js} +9 -9
- package/dist/{vue-ui-strip-plot-8fsm3nn2.js → vue-ui-strip-plot-BF1o8lvY.js} +7 -7
- package/dist/{vue-ui-table-Dck8Pyg9.js → vue-ui-table-B1tjuVi0.js} +3 -3
- package/dist/{vue-ui-table-heatmap-DknIGf9_.js → vue-ui-table-heatmap-BI8eIQG7.js} +5 -5
- package/dist/{vue-ui-table-sparkline-G4HAzUt6.js → vue-ui-table-sparkline-CqBD7xhZ.js} +4 -4
- package/dist/{vue-ui-thermometer-BIkXa4hY.js → vue-ui-thermometer-CtuxuYVt.js} +6 -6
- package/dist/{vue-ui-timer-Dmr-HCSc.js → vue-ui-timer-sgO_Z6ja.js} +5 -5
- package/dist/{vue-ui-tiremarks-YWbRk0dm.js → vue-ui-tiremarks-DOwj4ZE-.js} +6 -6
- package/dist/{vue-ui-treemap-D2OnG3Fh.js → vue-ui-treemap-C4LtyFug.js} +8 -8
- package/dist/{vue-ui-vertical-bar--QFtoFje.js → vue-ui-vertical-bar-BPay31_q.js} +299 -285
- package/dist/{vue-ui-waffle-BdaCXuWc.js → vue-ui-waffle-D8mzGTeo.js} +8 -8
- package/dist/{vue-ui-wheel-Bw3XSa8N.js → vue-ui-wheel-C6uAotal.js} +6 -6
- package/dist/{vue-ui-word-cloud-BH8UZH_J.js → vue-ui-word-cloud-Bge2211V.js} +6 -6
- package/dist/{vue-ui-world-BcK_brDq.js → vue-ui-world-DWskeHfE.js} +6 -6
- package/dist/{vue-ui-xy-Be--zwe9.js → vue-ui-xy-UzQacbnA.js} +63 -61
- package/dist/{vue-ui-xy-canvas--88oKdGN.js → vue-ui-xy-canvas-Dkmsguo1.js} +8 -8
- package/package.json +1 -1
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import { defineAsyncComponent as Fe, useSlots as It, getCurrentInstance as Tt, ref as
|
|
2
|
-
import { u as Rt, c as aa, e as ta, A as Bt, a5 as Ee, b as Yt, D as yl, ab as el, d as Ft, p as Et, ac as Il, ad as Wt, v as T, ae as Ea, V as Wa, af as Ga, U as Xa, ag as Gt, ah as Xt, ai as Da, x as Dt, y as Ut, _ as Ua, R as Te, i as ne, f as me, aa as H, w as ll, s as $e, a8 as W, L as qt, F as We, aj as Tl, I as Zt, ak as Ge, C as ul, t as Jt, a as Kt, o as qa, q as Qt, r as jt, E as il } from "./index-
|
|
3
|
-
import { u as oa } from "./useNestedProp-
|
|
1
|
+
import { defineAsyncComponent as Fe, useSlots as It, getCurrentInstance as Tt, ref as w, computed as A, onMounted as ea, toRefs as Ot, onBeforeUnmount as Fa, watch as Cl, nextTick as Se, createElementBlock as r, openBlock as u, normalizeStyle as z, normalizeClass as Ke, createBlock as Ie, createCommentVNode as d, createVNode as ml, unref as c, createSlots as Nt, withCtx as se, renderSlot as U, normalizeProps as Qe, guardReactiveProps as je, createElementVNode as g, Fragment as h, renderList as m, toDisplayString as j, mergeProps as la, withDirectives as Vt, vModelCheckbox as Pt, createTextVNode as Ht } from "vue";
|
|
2
|
+
import { u as Rt, c as aa, e as ta, A as Bt, a5 as Ee, b as Yt, D as yl, ab as el, d as Ft, p as Et, ac as Il, ad as Wt, v as T, ae as Ea, V as Wa, af as Ga, U as Xa, ag as Gt, ah as Xt, ai as Da, x as Dt, y as Ut, _ as Ua, R as Te, i as ne, f as me, aa as H, w as ll, s as $e, a8 as W, L as qt, F as We, aj as Tl, I as Zt, ak as Ge, C as ul, t as Jt, a as Kt, o as qa, q as Qt, r as jt, E as il } from "./index-Cfm5-hMQ.js";
|
|
3
|
+
import { u as oa } from "./useNestedProp-Hh7nGEjp.js";
|
|
4
4
|
import { u as eo } from "./useTimeLabels-Mrr0jrpL.js";
|
|
5
|
-
import { S as lo } from "./Slicer-
|
|
6
|
-
import ao from "./Title-
|
|
7
|
-
import { _ as Ol } from "./Shape-
|
|
8
|
-
import to from "./img-
|
|
9
|
-
import { u as oo } from "./usePrinter-
|
|
5
|
+
import { S as lo } from "./Slicer-O07lQwRC.js";
|
|
6
|
+
import ao from "./Title-BSlAPr_H.js";
|
|
7
|
+
import { _ as Ol } from "./Shape-BGr3dQKt.js";
|
|
8
|
+
import to from "./img-CgMUOQnb.js";
|
|
9
|
+
import { u as oo } from "./usePrinter-B1Hgs47c.js";
|
|
10
10
|
import { u as so, B as uo } from "./useLoading-Bt5Doa8m.js";
|
|
11
11
|
import { _ as io } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
12
12
|
const ro = ["id"], no = ["width", "viewBox", "aria-label"], co = ["x", "y", "width", "height"], vo = { key: 1 }, ho = { class: "vue-ui-xy-grid" }, fo = ["stroke", "x1", "x2", "y1", "y2"], go = ["stroke", "x1", "x2", "y1", "y2"], xo = { key: 1 }, bo = ["x1", "x2", "y1", "y2", "stroke"], mo = ["x1", "x2", "y1", "y2", "stroke"], yo = ["x1", "x2", "y1", "y2", "stroke"], po = { key: 3 }, ko = ["x1", "x2", "y1", "y2", "stroke"], _o = { key: 4 }, wo = ["y1", "y2", "x1", "x2", "stroke"], So = ["id"], $o = ["stop-color"], Lo = ["stop-color"], Ao = ["stop-color"], Mo = ["id"], zo = ["stop-color"], Co = ["stop-color"], Io = ["stop-color"], To = ["id"], Oo = ["stop-color"], No = ["stop-color"], Vo = ["id"], Po = ["stop-color"], Ho = ["stop-color"], Ro = ["id"], Bo = ["stop-color"], Yo = ["stop-color"], Fo = ["x", "y", "height", "width", "fill"], Eo = ["x", "y", "width"], Wo = ["x", "y", "height", "width", "fill"], Go = ["x", "y", "height", "width", "rx", "fill", "stroke", "stroke-width"], Xo = ["x", "y", "height", "width", "rx", "fill", "stroke", "stroke-width"], Do = ["width", "x", "y"], Uo = { key: 0 }, qo = ["id"], Zo = ["fill"], Jo = ["x1", "x2", "y1", "y2", "stroke", "marker-end"], Ko = ["x", "y", "font-size", "fill"], Qo = ["stroke", "x1", "x2", "y1", "y2"], jo = { key: 2 }, es = ["x1", "x2", "y1", "y2", "stroke", "stroke-width", "stroke-dasharray"], ls = ["x", "y", "width", "height", "stroke", "stroke-width", "stroke-linecap", "stroke-linejoin", "stroke-dasharray"], as = {
|
|
@@ -74,21 +74,21 @@ const ro = ["id"], no = ["width", "viewBox", "aria-label"], co = ["x", "y", "wid
|
|
|
74
74
|
},
|
|
75
75
|
emits: ["selectTimeLabel", "selectX", "selectLegend"],
|
|
76
76
|
setup(Nl, { expose: Za, emit: Ja }) {
|
|
77
|
-
const y = Nl, Ka = Fe(() => import("./DataTable-
|
|
77
|
+
const y = Nl, Ka = Fe(() => import("./DataTable-D36ZRtpU.js")), Qa = Fe(() => import("./Tooltip-lPcsweXz.js")), ja = Fe(() => import("./UserOptions-Dn5TCQxg.js")), et = Fe(() => import("./BaseIcon-BuOIF6t5.js")), lt = Fe(() => import("./vue-ui-table-sparkline-CqBD7xhZ.js")), at = Fe(() => import("./vue-ui-accordion-CEDGlyKI.js")), tt = Fe(() => import("./PackageVersion-CGQlqnmq.js")), ot = Fe(() => import("./PenAndPaper-B5slIHlh.js")), Vl = Ja, sa = It(), st = Tt(), { vue_ui_xy: Pl } = Rt(), ge = w(null), rl = w(null), Le = w(null), al = w(null), nl = w(null), cl = w(null), ua = w(null), Hl = w(null), Rl = w(null), Bl = w(null), Xe = w(null), Yl = w(null), Fl = w(0), M = w(null), ia = w(!0), ue = w(600), Z = w(1e3), De = w("0 0 1000 600"), ut = w({ x: 0, y: 0 }), vl = w({ line: "line", bar: "bar", plot: "plot" }), pl = w(!1), tl = w(!1), ra = w(!1), k = w(null), Ue = w(null), ae = w([]), q = w(aa()), na = w(0), ca = w(0), va = w(0), dl = w(!0), El = w(0), O = w(null), da = w(!1), Wl = w(!0), kl = w(!0), ye = w(null), Oe = w({}), _l = w(null), ha = w(0), it = w(1), rt = A(() => ({
|
|
78
78
|
height: ue.value,
|
|
79
79
|
width: Z.value
|
|
80
|
-
})), nt = y.config.downsample && y.config.downsample.threshold ? y.config.downsample.threshold : 500, f =
|
|
80
|
+
})), nt = y.config.downsample && y.config.downsample.threshold ? y.config.downsample.threshold : 500, f = w({
|
|
81
81
|
dataLabels: { show: !0 },
|
|
82
82
|
showTooltip: !0,
|
|
83
83
|
showTable: !1,
|
|
84
84
|
isStacked: !1,
|
|
85
85
|
useIndividualScale: !1
|
|
86
|
-
}), x =
|
|
86
|
+
}), x = w({
|
|
87
87
|
xAxis: 18,
|
|
88
88
|
yAxis: 12,
|
|
89
89
|
dataLabels: 20,
|
|
90
90
|
plotLabels: 10
|
|
91
|
-
}), Ae =
|
|
91
|
+
}), Ae = w({ plot: 3, line: 3 });
|
|
92
92
|
ea(() => {
|
|
93
93
|
y.dataset.length && y.dataset.forEach((a, v) => {
|
|
94
94
|
[null, void 0].includes(a.series) && ta({
|
|
@@ -130,7 +130,7 @@ const ro = ["id"], no = ["width", "viewBox", "aria-label"], co = ["x", "y", "wid
|
|
|
130
130
|
set(a) {
|
|
131
131
|
return a;
|
|
132
132
|
}
|
|
133
|
-
}), e =
|
|
133
|
+
}), e = w(Gl()), { loading: Dl, FINAL_DATASET: Ne, manualLoading: wl } = so({
|
|
134
134
|
...Ot(y),
|
|
135
135
|
FINAL_CONFIG: e,
|
|
136
136
|
prepareConfig: Gl,
|
|
@@ -213,7 +213,7 @@ const ro = ["id"], no = ["width", "viewBox", "aria-label"], co = ["x", "y", "wid
|
|
|
213
213
|
}), He = A({
|
|
214
214
|
get: () => Math.max(...Ne.value.map((a) => Ee({ data: a.series, threshold: nt }).length)),
|
|
215
215
|
set: (a) => a
|
|
216
|
-
}),
|
|
216
|
+
}), _ = w({ start: 0, end: He.value }), { isPrinting: Ul, isImaging: fa, generatePdf: ga, generateImage: xa } = oo({
|
|
217
217
|
elementId: `vue-ui-xy_${q.value}`,
|
|
218
218
|
fileName: e.value.chart.title.text || "vue-ui-xy",
|
|
219
219
|
options: e.value.chart.userOptions.print
|
|
@@ -233,7 +233,7 @@ const ro = ["id"], no = ["width", "viewBox", "aria-label"], co = ["x", "y", "wid
|
|
|
233
233
|
return {
|
|
234
234
|
...a,
|
|
235
235
|
slotAbsoluteIndex: v,
|
|
236
|
-
series: l.map((t) => Il(t) ? t : null).slice(
|
|
236
|
+
series: l.map((t) => Il(t) ? t : null).slice(_.value.start, _.value.end),
|
|
237
237
|
color: Ft(a.color ? a.color : ba.value[v] ? ba.value[v] : Et[v]),
|
|
238
238
|
id: s,
|
|
239
239
|
scaleLabel: a.scaleLabel || s
|
|
@@ -296,8 +296,8 @@ const ro = ["id"], no = ["width", "viewBox", "aria-label"], co = ["x", "y", "wid
|
|
|
296
296
|
values: e.value.chart.grid.labels.xAxisLabels.values,
|
|
297
297
|
maxDatapoints: a,
|
|
298
298
|
formatter: e.value.chart.grid.labels.xAxisLabels.datetimeFormatter,
|
|
299
|
-
start:
|
|
300
|
-
end:
|
|
299
|
+
start: _.value.start,
|
|
300
|
+
end: _.value.end
|
|
301
301
|
});
|
|
302
302
|
});
|
|
303
303
|
function ka(a, v) {
|
|
@@ -317,7 +317,7 @@ const ro = ["id"], no = ["width", "viewBox", "aria-label"], co = ["x", "y", "wid
|
|
|
317
317
|
label: a.text
|
|
318
318
|
});
|
|
319
319
|
}
|
|
320
|
-
const b = A(() =>
|
|
320
|
+
const b = A(() => _.value.end - _.value.start);
|
|
321
321
|
async function vt() {
|
|
322
322
|
if (!Hl.value) return;
|
|
323
323
|
await Se();
|
|
@@ -366,7 +366,7 @@ const ro = ["id"], no = ["width", "viewBox", "aria-label"], co = ["x", "y", "wid
|
|
|
366
366
|
return a > v ? v : a < 0 || e.value.chart.zoom.startIndex !== null && a < e.value.chart.zoom.startIndex ? e.value.chart.zoom.startIndex !== null ? e.value.chart.zoom.startIndex + 1 : 1 : a;
|
|
367
367
|
}
|
|
368
368
|
async function jl() {
|
|
369
|
-
(e.value.chart.zoom.startIndex !== null || e.value.chart.zoom.endIndex !== null) && Le.value ? (e.value.chart.zoom.startIndex !== null && (await Se(), await Se(), Le.value.setStartValue(e.value.chart.zoom.startIndex)), e.value.chart.zoom.endIndex !== null && (await Se(), await Se(), Le.value.setEndValue(gt(e.value.chart.zoom.endIndex + 1)))) : (
|
|
369
|
+
(e.value.chart.zoom.startIndex !== null || e.value.chart.zoom.endIndex !== null) && Le.value ? (e.value.chart.zoom.startIndex !== null && (await Se(), await Se(), Le.value.setStartValue(e.value.chart.zoom.startIndex)), e.value.chart.zoom.endIndex !== null && (await Se(), await Se(), Le.value.setEndValue(gt(e.value.chart.zoom.endIndex + 1)))) : (_.value = {
|
|
370
370
|
start: 0,
|
|
371
371
|
end: Math.max(...Ne.value.map((a) => Ee({ data: a.series, threshold: e.value.downsample.threshold }).length))
|
|
372
372
|
}, Fl.value += 1);
|
|
@@ -560,12 +560,12 @@ const ro = ["id"], no = ["width", "viewBox", "aria-label"], co = ["x", "y", "wid
|
|
|
560
560
|
return t - I * n;
|
|
561
561
|
};
|
|
562
562
|
return v.map(($) => {
|
|
563
|
-
const { yAxis: { yTop: I, yBottom: X, label:
|
|
564
|
-
re.font = `${
|
|
565
|
-
const D = re.measureText(
|
|
563
|
+
const { yAxis: { yTop: I, yBottom: X, label: S } } = $, R = I != null && X != null && I !== X, L = I == null ? null : ee(I), te = X == null ? null : ee(X), re = ct(S.fontSize);
|
|
564
|
+
re.font = `${S.fontSize}px sans-serif`;
|
|
565
|
+
const D = re.measureText(S.text).width, be = S.fontSize, Ce = (S.position === "start" ? l + S.padding.left : s - S.padding.right) + S.offsetX, he = (L != null && te != null ? Math.min(L, te) : L ?? te) - S.fontSize / 3 + S.offsetY - S.padding.top;
|
|
566
566
|
let V;
|
|
567
|
-
|
|
568
|
-
const P = he - be * 0.75 -
|
|
567
|
+
S.textAnchor === "middle" ? V = Ce - D / 2 - S.padding.left : S.textAnchor === "end" ? V = Ce - D - S.padding.right : V = Ce - S.padding.left;
|
|
568
|
+
const P = he - be * 0.75 - S.padding.top;
|
|
569
569
|
return {
|
|
570
570
|
show: ![L, te, P].includes(NaN),
|
|
571
571
|
id: `annotation_y_${aa()}`,
|
|
@@ -580,13 +580,13 @@ const ro = ["id"], no = ["width", "viewBox", "aria-label"], co = ["x", "y", "wid
|
|
|
580
580
|
_box: {
|
|
581
581
|
x: V,
|
|
582
582
|
y: P,
|
|
583
|
-
width: D +
|
|
584
|
-
height: be +
|
|
585
|
-
fill:
|
|
586
|
-
stroke:
|
|
587
|
-
rx:
|
|
588
|
-
ry:
|
|
589
|
-
strokeWidth:
|
|
583
|
+
width: D + S.padding.left + S.padding.right,
|
|
584
|
+
height: be + S.padding.top + S.padding.bottom,
|
|
585
|
+
fill: S.backgroundColor,
|
|
586
|
+
stroke: S.border.stroke,
|
|
587
|
+
rx: S.border.rx,
|
|
588
|
+
ry: S.border.ry,
|
|
589
|
+
strokeWidth: S.border.strokeWidth
|
|
590
590
|
}
|
|
591
591
|
};
|
|
592
592
|
});
|
|
@@ -602,7 +602,7 @@ const ro = ["id"], no = ["width", "viewBox", "aria-label"], co = ["x", "y", "wid
|
|
|
602
602
|
}, I = {
|
|
603
603
|
max: o.scaleMax || Math.max(...o.absoluteValues) || 1,
|
|
604
604
|
min: o.scaleMin || Math.min(...o.absoluteValues.filter((N) => ![void 0, null].includes(N))) > 0 ? 0 : Math.min(...o.absoluteValues.filter((N) => ![null, void 0].includes(N)))
|
|
605
|
-
}, X = o.scaleSteps || e.value.chart.grid.labels.yAxis.commonScaleSteps,
|
|
605
|
+
}, X = o.scaleSteps || e.value.chart.grid.labels.yAxis.commonScaleSteps, S = 1.0000001, R = e.value.chart.grid.labels.yAxis.useNiceScale ? yl(I.min, I.max === I.min ? I.max * S : I.max, X) : el(I.min, I.max === I.min ? I.max * S : I.max, X), L = e.value.chart.grid.labels.yAxis.useNiceScale ? yl($.valueMin, $.valueMax === $.valueMin ? $.valueMax * S : $.valueMax, X) : el($.valueMin, $.valueMax === $.valueMin ? $.valueMax * S : $.valueMax, X), te = R.min >= 0 ? 0 : Math.abs(R.min), re = 0, D = R.max + te, be = L.max + Math.abs(re), Ce = o.stackIndex, sl = v - 1 - Ce, he = s ? 1 - o.cumulatedStackRatio : 0, V = s ? n * he + l * sl : 0, P = s ? n * o.stackRatio : i.value.height, K = i.value.bottom - V - P * te / D, fe = i.value.bottom - V - P * re / be, ce = Me.value.filter((N) => N.type === "bar").filter((N) => !ae.value.includes(N.id)).length, bl = o.series.map((N, le) => {
|
|
606
606
|
const Ye = f.value.useIndividualScale ? (o.absoluteValues[le] + te) / D : qe(N), Je = f.value.useIndividualScale && f.value.isStacked ? i.value.left + i.value.width / b.value * le : i.value.left + J.value.bar * Y + J.value.bar * le * ce - Lt.value / 2 - Y * Pe.value;
|
|
607
607
|
return {
|
|
608
608
|
yOffset: T(V),
|
|
@@ -612,7 +612,7 @@ const ro = ["id"], no = ["width", "viewBox", "aria-label"], co = ["x", "y", "wid
|
|
|
612
612
|
value: o.absoluteValues[le],
|
|
613
613
|
zeroPosition: T(K),
|
|
614
614
|
individualMax: T(D),
|
|
615
|
-
comment: o.comments && o.comments.slice(
|
|
615
|
+
comment: o.comments && o.comments.slice(_.value.start, _.value.end)[le] || ""
|
|
616
616
|
};
|
|
617
617
|
}), ve = o.absoluteValues.map((N) => L.min >= 0 ? (N - Math.abs(L.min)) / (L.max - Math.abs(L.min)) : (N + Math.abs(L.min)) / (L.max + Math.abs(L.min))), Be = o.series.map((N, le) => {
|
|
618
618
|
const Ye = f.value.useIndividualScale && f.value.isStacked ? i.value.left + i.value.width / b.value * le : i.value.left - J.value.bar / 2 + J.value.bar * Y + J.value.bar * le * Me.value.filter((Je) => Je.type === "bar").filter((Je) => !ae.value.includes(Je.id)).length;
|
|
@@ -624,7 +624,7 @@ const ro = ["id"], no = ["width", "viewBox", "aria-label"], co = ["x", "y", "wid
|
|
|
624
624
|
value: o.absoluteValues[le],
|
|
625
625
|
zeroPosition: T(K),
|
|
626
626
|
individualMax: T(D),
|
|
627
|
-
comment: o.comments && o.comments.slice(
|
|
627
|
+
comment: o.comments && o.comments.slice(_.value.start, _.value.end)[le] || ""
|
|
628
628
|
};
|
|
629
629
|
}), E = R.ticks.map((N) => ({
|
|
630
630
|
y: N >= 0 ? K - P * (N / D) : K + P * Math.abs(N) / D,
|
|
@@ -667,24 +667,24 @@ const ro = ["id"], no = ["width", "viewBox", "aria-label"], co = ["x", "y", "wid
|
|
|
667
667
|
}, I = {
|
|
668
668
|
max: o.scaleMax || Math.max(...o.absoluteValues) || 1,
|
|
669
669
|
min: o.scaleMin || (Math.min(...o.absoluteValues) > 0 ? 0 : Math.min(...o.absoluteValues))
|
|
670
|
-
}, X = o.scaleSteps || e.value.chart.grid.labels.yAxis.commonScaleSteps,
|
|
670
|
+
}, X = o.scaleSteps || e.value.chart.grid.labels.yAxis.commonScaleSteps, S = 1.0000001, R = e.value.chart.grid.labels.yAxis.useNiceScale ? yl(I.min, I.max === I.min ? I.max * S : I.max, X) : el(I.min, I.max === I.min ? I.max * S : I.max, X), L = e.value.chart.grid.labels.yAxis.useNiceScale ? yl($.valueMin, $.valueMax === $.valueMin ? $.valueMax * S : $.valueMax, X) : el($.valueMin, $.valueMax === $.valueMin ? $.valueMax * S : $.valueMax, X), te = R.min >= 0 ? 0 : Math.abs(R.min), re = 0, D = R.max + Math.abs(te), be = L.max + Math.abs(re), Ce = o.stackIndex, sl = v - 1 - Ce, he = s ? 1 - o.cumulatedStackRatio : 0, V = s ? n * he + l * sl : 0, P = s ? n * o.stackRatio : i.value.height, K = i.value.bottom - V - P * te / D, fe = i.value.bottom - V - P * re / be, ce = o.series.map((C, oe) => {
|
|
671
671
|
const Ct = f.value.useIndividualScale ? (o.absoluteValues[oe] + Math.abs(te)) / D : qe(C);
|
|
672
672
|
return {
|
|
673
673
|
x: T(i.value.left + J.value.line / 2 + J.value.line * oe),
|
|
674
674
|
y: T(i.value.bottom - V - P * Ct),
|
|
675
675
|
value: o.absoluteValues[oe],
|
|
676
|
-
comment: o.comments && o.comments.slice(
|
|
676
|
+
comment: o.comments && o.comments.slice(_.value.start, _.value.end)[oe] || ""
|
|
677
677
|
};
|
|
678
678
|
}), bl = o.absoluteValues.map((C) => L.min >= 0 ? (C - Math.abs(L.min)) / (L.max - Math.abs(L.min)) : (C + Math.abs(L.min)) / (L.max + Math.abs(L.min))), ve = o.series.map((C, oe) => [void 0, null].includes(o.absoluteValues[oe]) ? {
|
|
679
679
|
x: T(i.value.left + J.value.line / 2 + J.value.line * oe),
|
|
680
680
|
y: K,
|
|
681
681
|
value: o.absoluteValues[oe],
|
|
682
|
-
comment: o.comments && o.comments.slice(
|
|
682
|
+
comment: o.comments && o.comments.slice(_.value.start, _.value.end)[oe] || ""
|
|
683
683
|
} : {
|
|
684
684
|
x: T(i.value.left + J.value.line / 2 + J.value.line * oe),
|
|
685
685
|
y: T(i.value.bottom - V - (P * bl[oe] || 0)),
|
|
686
686
|
value: o.absoluteValues[oe],
|
|
687
|
-
comment: o.comments && o.comments.slice(
|
|
687
|
+
comment: o.comments && o.comments.slice(_.value.start, _.value.end)[oe] || ""
|
|
688
688
|
}), Be = e.value.line.cutNullValues ? Ea(ce) : Wa(ce.filter((C) => C.value !== null)), E = e.value.line.cutNullValues ? Ea(ve) : Wa(ve.filter((C) => C.value !== null)), Q = e.value.line.cutNullValues ? Ga(ce) : Xa(ce.filter((C) => C.value !== null)), N = e.value.line.cutNullValues ? Ga(ve) : Xa(ve.filter((C) => C.value !== null)), le = R.ticks.map((C) => ({
|
|
689
689
|
y: C >= 0 ? K - P * (C / D) : K + P * Math.abs(C) / D,
|
|
690
690
|
value: C,
|
|
@@ -742,20 +742,20 @@ const ro = ["id"], no = ["width", "viewBox", "aria-label"], co = ["x", "y", "wid
|
|
|
742
742
|
}, $ = {
|
|
743
743
|
max: o.scaleMax || Math.max(...o.absoluteValues) || 1,
|
|
744
744
|
min: o.scaleMin || Math.min(...o.absoluteValues) > 0 ? 0 : Math.min(...o.absoluteValues)
|
|
745
|
-
}, I = o.scaleSteps || e.value.chart.grid.labels.yAxis.commonScaleSteps, X = 1.0000001,
|
|
745
|
+
}, I = o.scaleSteps || e.value.chart.grid.labels.yAxis.commonScaleSteps, X = 1.0000001, S = el($.min, $.max === $.min ? $.max * X : $.max, I), R = el(ee.valueMin, ee.valueMax === ee.valueMin ? ee.valueMax * X : ee.valueMax, I), L = S.min >= 0 ? 0 : Math.abs(S.min), te = 0, re = S.max + L, D = R.max + Math.abs(te), be = o.stackIndex, Ce = v - 1 - be, sl = s ? 1 - o.cumulatedStackRatio : 0, he = s ? n * sl + l * Ce : 0, V = s ? n * o.stackRatio : i.value.height, P = i.value.bottom - he - V * L / re, K = i.value.bottom - he - V * te / D, fe = o.series.map((E, Q) => {
|
|
746
746
|
const N = f.value.useIndividualScale ? (o.absoluteValues[Q] + Math.abs(L)) / re : qe(E);
|
|
747
747
|
return {
|
|
748
748
|
x: T(i.value.left + J.value.plot / 2 + J.value.plot * Q),
|
|
749
749
|
y: T(i.value.bottom - he - V * N),
|
|
750
750
|
value: o.absoluteValues[Q],
|
|
751
|
-
comment: o.comments && o.comments.slice(
|
|
751
|
+
comment: o.comments && o.comments.slice(_.value.start, _.value.end)[Q] || ""
|
|
752
752
|
};
|
|
753
753
|
}), ce = o.absoluteValues.map((E) => R.min >= 0 ? (E - Math.abs(R.min)) / (R.max - Math.abs(R.min)) : (E + Math.abs(R.min)) / (R.max + Math.abs(R.min))), bl = o.series.map((E, Q) => ({
|
|
754
754
|
x: T(i.value.left + J.value.plot / 2 + J.value.plot * Q),
|
|
755
755
|
y: T(i.value.bottom - he - (V * ce[Q] || 0)),
|
|
756
756
|
value: o.absoluteValues[Q],
|
|
757
|
-
comment: o.comments && o.comments.slice(
|
|
758
|
-
})), ve =
|
|
757
|
+
comment: o.comments && o.comments.slice(_.value.start, _.value.end)[Q] || ""
|
|
758
|
+
})), ve = S.ticks.map((E) => ({
|
|
759
759
|
y: E >= 0 ? P - V * (E / re) : P + V * Math.abs(E) / re,
|
|
760
760
|
value: E,
|
|
761
761
|
prefix: o.prefix || e.value.chart.labels.prefix,
|
|
@@ -777,7 +777,7 @@ const ro = ["id"], no = ["width", "viewBox", "aria-label"], co = ["x", "y", "wid
|
|
|
777
777
|
autoScaleYLabels: Be,
|
|
778
778
|
individualHeight: V,
|
|
779
779
|
scaleYLabels: o.autoScaling ? Be : ve,
|
|
780
|
-
individualScale: o.autoScaling ? R :
|
|
780
|
+
individualScale: o.autoScaling ? R : S,
|
|
781
781
|
individualMax: o.autoScaling ? D : re,
|
|
782
782
|
zeroPosition: o.autoScaling ? K : P,
|
|
783
783
|
plots: o.autoScaling ? bl : fe,
|
|
@@ -852,6 +852,7 @@ const ro = ["id"], no = ["width", "viewBox", "aria-label"], co = ["x", "y", "wid
|
|
|
852
852
|
let a = "", v = fl.value.map((t) => t.value).filter((t) => Il(t) && t !== null).reduce((t, n) => Math.abs(t) + Math.abs(n), 0);
|
|
853
853
|
const l = de.value[k.value], s = e.value.chart.tooltip.customFormat;
|
|
854
854
|
return Dt(s) && Ut(() => s({
|
|
855
|
+
absoluteIndex: k.value + _.value.start,
|
|
855
856
|
seriesIndex: k.value,
|
|
856
857
|
datapoint: fl.value,
|
|
857
858
|
series: Me.value,
|
|
@@ -860,6 +861,7 @@ const ro = ["id"], no = ["width", "viewBox", "aria-label"], co = ["x", "y", "wid
|
|
|
860
861
|
plots: ze.value,
|
|
861
862
|
config: e.value
|
|
862
863
|
})) ? s({
|
|
864
|
+
absoluteIndex: k.value + _.value.start,
|
|
863
865
|
seriesIndex: k.value,
|
|
864
866
|
datapoint: fl.value,
|
|
865
867
|
series: Me.value,
|
|
@@ -921,7 +923,7 @@ const ro = ["id"], no = ["width", "viewBox", "aria-label"], co = ["x", "y", "wid
|
|
|
921
923
|
v: T(Math.abs(t.value) / v * 100),
|
|
922
924
|
s: "%",
|
|
923
925
|
r: e.value.chart.tooltip.roundingPercentage
|
|
924
|
-
})})` : ""}</div>`, e.value.chart.comments.showInTooltip && t.comments.length && t.comments.slice(
|
|
926
|
+
})})` : ""}</div>`, e.value.chart.comments.showInTooltip && t.comments.length && t.comments.slice(_.value.start, _.value.end)[k.value] && (a += `<div class="vue-data-ui-tooltip-comment" style="background:${t.color}20; padding: 6px; margin-bottom: 6px; border-left: 1px solid ${t.color}">${t.comments.slice(_.value.start, _.value.end)[k.value]}</div>`);
|
|
925
927
|
}
|
|
926
928
|
}), `<div style="border-radius:4px;padding:12px;font-variant-numeric: tabular-nums;color:${e.value.chart.tooltip.color}">${a}</div>`);
|
|
927
929
|
});
|
|
@@ -1084,13 +1086,13 @@ const ro = ["id"], no = ["width", "viewBox", "aria-label"], co = ["x", "y", "wid
|
|
|
1084
1086
|
nl.value && (I = nl.value.getBoundingClientRect().height);
|
|
1085
1087
|
let X = 0;
|
|
1086
1088
|
cl.value && (X = cl.value.getBoundingClientRect().height), ue.value = s - o - $ - F - I - X - a, Z.value = t, G.value ? ol() : De.value = `0 0 ${Z.value < 0 ? 10 : Z.value} ${ue.value < 0 ? 10 : ue.value}`, Ba();
|
|
1087
|
-
const
|
|
1089
|
+
const S = new ResizeObserver((R) => {
|
|
1088
1090
|
for (const L of R)
|
|
1089
1091
|
e.value.chart.title.show && rl.value ? o = rl.value.getBoundingClientRect().height : o = 0, Le.value && Le.value.$el ? F = Le.value.$el.getBoundingClientRect().height : F = 0, al.value ? $ = al.value.getBoundingClientRect().height : $ = 0, nl.value ? I = nl.value.getBoundingClientRect().height : I = 0, cl.value ? X = cl.value.getBoundingClientRect().height : X = 0, G.value && ge.value.classList.add("no-transition"), requestAnimationFrame(() => {
|
|
1090
1092
|
ue.value = L.contentRect.height - o - $ - F - I - X - (G.value ? 48 : a), G.value ? (ha.value = L.contentRect.height - ue.value, Z.value = L.contentBoxSize[0].inlineSize, it.value = Z.value / ha.value, ol()) : (Z.value = L.contentBoxSize[0].inlineSize, De.value = `0 0 ${Z.value < 0 ? 10 : Z.value} ${ue.value < 0 ? 10 : ue.value}`), Ba();
|
|
1091
1093
|
});
|
|
1092
1094
|
});
|
|
1093
|
-
Xe.value =
|
|
1095
|
+
Xe.value = S, Yl.value = l, S.observe(l);
|
|
1094
1096
|
} else
|
|
1095
1097
|
ue.value = e.value.chart.height, Z.value = e.value.chart.width, x.value.dataLabels = e.value.chart.grid.labels.fontSize, x.value.yAxis = e.value.chart.grid.labels.axis.fontSize, x.value.xAxis = e.value.chart.grid.labels.xAxisLabels.fontSize, x.value.plotLabels = e.value.chart.labels.fontSize, Ae.value.plot = e.value.plot.radius, Ae.value.line = e.value.line.radius, G.value ? ol() : De.value = `0 0 ${Z.value} ${ue.value}`;
|
|
1096
1098
|
}
|
|
@@ -1126,7 +1128,7 @@ const ro = ["id"], no = ["width", "viewBox", "aria-label"], co = ["x", "y", "wid
|
|
|
1126
1128
|
Array.isArray(a) && a.length > 0 && (wl.value = !1), He.value = Math.max(...Ne.value.map((v) => Ee({
|
|
1127
1129
|
data: v.series,
|
|
1128
1130
|
threshold: e.value.downsample.threshold
|
|
1129
|
-
}).length)),
|
|
1131
|
+
}).length)), _.value = {
|
|
1130
1132
|
start: 0,
|
|
1131
1133
|
end: He.value
|
|
1132
1134
|
}, Fl.value += 1, El.value += 1;
|
|
@@ -1422,7 +1424,7 @@ const ro = ["id"], no = ["width", "viewBox", "aria-label"], co = ["x", "y", "wid
|
|
|
1422
1424
|
(u(!0), r(h, null, m(de.value, (l, s) => (u(), r("g", {
|
|
1423
1425
|
key: `time_label_${s}`
|
|
1424
1426
|
}, [
|
|
1425
|
-
l && !e.value.chart.grid.labels.xAxisLabels.showOnlyFirstAndLast && !e.value.chart.grid.labels.xAxisLabels.showOnlyAtModulo || l && e.value.chart.grid.labels.xAxisLabels.showOnlyFirstAndLast && (s === 0 || s === de.value.length - 1) && !e.value.chart.grid.labels.xAxisLabels.showOnlyAtModulo || l && e.value.chart.grid.labels.xAxisLabels.showOnlyFirstAndLast && k.value === s && !e.value.chart.grid.labels.xAxisLabels.showOnlyAtModulo || l && !e.value.chart.grid.labels.xAxisLabels.showOnlyFirstAndLast && e.value.chart.grid.labels.xAxisLabels.showOnlyAtModulo && s % Math.floor((
|
|
1427
|
+
l && !e.value.chart.grid.labels.xAxisLabels.showOnlyFirstAndLast && !e.value.chart.grid.labels.xAxisLabels.showOnlyAtModulo || l && e.value.chart.grid.labels.xAxisLabels.showOnlyFirstAndLast && (s === 0 || s === de.value.length - 1) && !e.value.chart.grid.labels.xAxisLabels.showOnlyAtModulo || l && e.value.chart.grid.labels.xAxisLabels.showOnlyFirstAndLast && k.value === s && !e.value.chart.grid.labels.xAxisLabels.showOnlyAtModulo || l && !e.value.chart.grid.labels.xAxisLabels.showOnlyFirstAndLast && e.value.chart.grid.labels.xAxisLabels.showOnlyAtModulo && s % Math.floor((_.value.end - _.value.start) / e.value.chart.grid.labels.xAxisLabels.modulo) === 0 || l && e.value.chart.grid.labels.xAxisLabels.showOnlyAtModulo && b.value <= e.value.chart.grid.labels.xAxisLabels.modulo ? (u(), r(h, { key: 0 }, [
|
|
1426
1428
|
e.value.chart.grid.labels.xAxis.showCrosshairs ? (u(), r("line", {
|
|
1427
1429
|
key: 0,
|
|
1428
1430
|
y1: e.value.chart.grid.labels.xAxis.crosshairsAlwaysAtZero ? ie.value - (ie.value === i.value.bottom ? 0 : e.value.chart.grid.labels.xAxis.crosshairSize / 2) : i.value.bottom,
|
|
@@ -1542,9 +1544,9 @@ const ro = ["id"], no = ["width", "viewBox", "aria-label"], co = ["x", "y", "wid
|
|
|
1542
1544
|
g("rect", {
|
|
1543
1545
|
style: z({
|
|
1544
1546
|
transition: "none",
|
|
1545
|
-
opacity: l.from + t >=
|
|
1547
|
+
opacity: l.from + t >= _.value.start && l.from + t <= _.value.end - 1 ? 1 : 0
|
|
1546
1548
|
}),
|
|
1547
|
-
x: i.value.left + i.value.width / b.value * (l.from + t -
|
|
1549
|
+
x: i.value.left + i.value.width / b.value * (l.from + t - _.value.start),
|
|
1548
1550
|
y: i.value.top,
|
|
1549
1551
|
height: i.value.height < 0 ? 10 : i.value.height,
|
|
1550
1552
|
width: i.value.width / b.value < 0 ? 1e-5 : i.value.width / b.value,
|
|
@@ -1554,11 +1556,11 @@ const ro = ["id"], no = ["width", "viewBox", "aria-label"], co = ["x", "y", "wid
|
|
|
1554
1556
|
(u(!0), r(h, null, m(l.span, (s, t) => (u(), r("g", null, [
|
|
1555
1557
|
l.caption.text && t === 0 ? (u(), r("foreignObject", {
|
|
1556
1558
|
key: 0,
|
|
1557
|
-
x: i.value.left + i.value.width / b.value * (l.from + t -
|
|
1559
|
+
x: i.value.left + i.value.width / b.value * (l.from + t - _.value.start) - (l.caption.width === "auto" ? 0 : l.caption.width / 2 - i.value.width / b.value * l.span / 2),
|
|
1558
1560
|
y: i.value.top + l.caption.offsetY,
|
|
1559
1561
|
style: z({
|
|
1560
1562
|
overflow: "visible",
|
|
1561
|
-
opacity: l.to >=
|
|
1563
|
+
opacity: l.to >= _.value.start && l.from < _.value.end ? 1 : 0
|
|
1562
1564
|
}),
|
|
1563
1565
|
height: "1",
|
|
1564
1566
|
width: l.caption.width === "auto" ? i.value.width / b.value * l.span : l.caption.width
|
|
@@ -2404,11 +2406,11 @@ const ro = ["id"], no = ["width", "viewBox", "aria-label"], co = ["x", "y", "wid
|
|
|
2404
2406
|
absoluteIndex: l.absoluteIndex,
|
|
2405
2407
|
content: l.text,
|
|
2406
2408
|
textAnchor: e.value.chart.grid.labels.xAxisLabels.rotation > 0 ? "start" : e.value.chart.grid.labels.xAxisLabels.rotation < 0 ? "end" : "middle",
|
|
2407
|
-
show: l && !e.value.chart.grid.labels.xAxisLabels.showOnlyFirstAndLast && !e.value.chart.grid.labels.xAxisLabels.showOnlyAtModulo || l && e.value.chart.grid.labels.xAxisLabels.showOnlyFirstAndLast && (s === 0 || s === de.value.length - 1) && !e.value.chart.grid.labels.xAxisLabels.showOnlyAtModulo || l && e.value.chart.grid.labels.xAxisLabels.showOnlyFirstAndLast && k.value === s && !e.value.chart.grid.labels.xAxisLabels.showOnlyAtModulo || l && !e.value.chart.grid.labels.xAxisLabels.showOnlyFirstAndLast && e.value.chart.grid.labels.xAxisLabels.showOnlyAtModulo && s % Math.floor((
|
|
2409
|
+
show: l && !e.value.chart.grid.labels.xAxisLabels.showOnlyFirstAndLast && !e.value.chart.grid.labels.xAxisLabels.showOnlyAtModulo || l && e.value.chart.grid.labels.xAxisLabels.showOnlyFirstAndLast && (s === 0 || s === de.value.length - 1) && !e.value.chart.grid.labels.xAxisLabels.showOnlyAtModulo || l && e.value.chart.grid.labels.xAxisLabels.showOnlyFirstAndLast && k.value === s && !e.value.chart.grid.labels.xAxisLabels.showOnlyAtModulo || l && !e.value.chart.grid.labels.xAxisLabels.showOnlyFirstAndLast && e.value.chart.grid.labels.xAxisLabels.showOnlyAtModulo && s % Math.floor((_.value.end - _.value.start) / e.value.chart.grid.labels.xAxisLabels.modulo) === 0 || l && e.value.chart.grid.labels.xAxisLabels.showOnlyAtModulo && b.value <= e.value.chart.grid.labels.xAxisLabels.modulo
|
|
2408
2410
|
}), void 0, !0)), 128)) : (u(!0), r(h, { key: 1 }, m(de.value, (l, s) => (u(), r("g", {
|
|
2409
2411
|
key: `time_label_${s}`
|
|
2410
2412
|
}, [
|
|
2411
|
-
l && !e.value.chart.grid.labels.xAxisLabels.showOnlyFirstAndLast && !e.value.chart.grid.labels.xAxisLabels.showOnlyAtModulo || l && e.value.chart.grid.labels.xAxisLabels.showOnlyFirstAndLast && (s === 0 || s === de.value.length - 1) && !e.value.chart.grid.labels.xAxisLabels.showOnlyAtModulo || l && e.value.chart.grid.labels.xAxisLabels.showOnlyFirstAndLast && k.value === s && !e.value.chart.grid.labels.xAxisLabels.showOnlyAtModulo || l && !e.value.chart.grid.labels.xAxisLabels.showOnlyFirstAndLast && e.value.chart.grid.labels.xAxisLabels.showOnlyAtModulo && s % Math.floor((
|
|
2413
|
+
l && !e.value.chart.grid.labels.xAxisLabels.showOnlyFirstAndLast && !e.value.chart.grid.labels.xAxisLabels.showOnlyAtModulo || l && e.value.chart.grid.labels.xAxisLabels.showOnlyFirstAndLast && (s === 0 || s === de.value.length - 1) && !e.value.chart.grid.labels.xAxisLabels.showOnlyAtModulo || l && e.value.chart.grid.labels.xAxisLabels.showOnlyFirstAndLast && k.value === s && !e.value.chart.grid.labels.xAxisLabels.showOnlyAtModulo || l && !e.value.chart.grid.labels.xAxisLabels.showOnlyFirstAndLast && e.value.chart.grid.labels.xAxisLabels.showOnlyAtModulo && s % Math.floor((_.value.end - _.value.start) / e.value.chart.grid.labels.xAxisLabels.modulo) === 0 || l && e.value.chart.grid.labels.xAxisLabels.showOnlyAtModulo && b.value <= e.value.chart.grid.labels.xAxisLabels.modulo ? (u(), r(h, { key: 0 }, [
|
|
2412
2414
|
String(l.text).includes(`
|
|
2413
2415
|
`) ? (u(), r("text", {
|
|
2414
2416
|
key: 1,
|
|
@@ -2782,12 +2784,12 @@ const ro = ["id"], no = ["width", "viewBox", "aria-label"], co = ["x", "y", "wid
|
|
|
2782
2784
|
verticalHandles: e.value.chart.zoom.minimap.verticalHandles,
|
|
2783
2785
|
max: He.value,
|
|
2784
2786
|
min: 0,
|
|
2785
|
-
valueStart:
|
|
2786
|
-
valueEnd:
|
|
2787
|
-
start:
|
|
2788
|
-
"onUpdate:start": v[2] || (v[2] = (l) =>
|
|
2789
|
-
end:
|
|
2790
|
-
"onUpdate:end": v[3] || (v[3] = (l) =>
|
|
2787
|
+
valueStart: _.value.start,
|
|
2788
|
+
valueEnd: _.value.end,
|
|
2789
|
+
start: _.value.start,
|
|
2790
|
+
"onUpdate:start": v[2] || (v[2] = (l) => _.value.start = l),
|
|
2791
|
+
end: _.value.end,
|
|
2792
|
+
"onUpdate:end": v[3] || (v[3] = (l) => _.value.end = l),
|
|
2791
2793
|
refreshStartPoint: e.value.chart.zoom.startIndex !== null ? e.value.chart.zoom.startIndex : 0,
|
|
2792
2794
|
refreshEndPoint: e.value.chart.zoom.endIndex !== null ? e.value.chart.zoom.endIndex + 1 : Math.max(...Nl.dataset.map((l) => c(Ee)({ data: l.series, threshold: e.value.downsample.threshold }).length)),
|
|
2793
2795
|
enableRangeHandles: e.value.chart.zoom.enableRangeHandles,
|
|
@@ -2974,7 +2976,7 @@ const ro = ["id"], no = ["width", "viewBox", "aria-label"], co = ["x", "y", "wid
|
|
|
2974
2976
|
c(Dl) ? (u(), Ie(uo, { key: 10 })) : d("", !0)
|
|
2975
2977
|
], 46, ro));
|
|
2976
2978
|
}
|
|
2977
|
-
}, ju = /* @__PURE__ */ io(Fu, [["__scopeId", "data-v-
|
|
2979
|
+
}, ju = /* @__PURE__ */ io(Fu, [["__scopeId", "data-v-47c51d2d"]]);
|
|
2978
2980
|
export {
|
|
2979
2981
|
ju as default
|
|
2980
2982
|
};
|
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
import { defineAsyncComponent as Q, ref as d, computed as L, useSlots as Va, onMounted as sa, watch as D, nextTick as pe, shallowRef as Ie, onBeforeUnmount as Ga, createElementBlock as ne, openBlock as S, unref as p, normalizeClass as Za, normalizeStyle as ee, createCommentVNode as X, createBlock as N, createElementVNode as ie, createSlots as ja, withCtx as x, renderSlot as k, normalizeProps as B, guardReactiveProps as _, createVNode as qa, toDisplayString as na, createTextVNode as Ja } from "vue";
|
|
2
|
-
import { u as Ka, c as Qa, t as el, p as V, a as al, C as me, b as ll, D as Me, i as ae, f as le, d as ia, a5 as tl, G as ol, ad as rl, o as ul, e as sl, x as va, q as nl, r as il, y as vl, s as ve, l as cl } from "./index-
|
|
2
|
+
import { u as Ka, c as Qa, t as el, p as V, a as al, C as me, b as ll, D as Me, i as ae, f as le, d as ia, a5 as tl, G as ol, ad as rl, o as ul, e as sl, x as va, q as nl, r as il, y as vl, s as ve, l as cl } from "./index-Cfm5-hMQ.js";
|
|
3
3
|
import { d as dl, t as hl, u as yl, c as fl, a as ca, l as C, r as Te, b as R, p as da } from "./useResponsive-DfdjqQps.js";
|
|
4
|
-
import { u as ha } from "./useNestedProp-
|
|
5
|
-
import { u as gl } from "./usePrinter-
|
|
4
|
+
import { u as ha } from "./useNestedProp-Hh7nGEjp.js";
|
|
5
|
+
import { u as gl } from "./usePrinter-B1Hgs47c.js";
|
|
6
6
|
import { u as pl } from "./useUserOptionState-BIvW1Kz7.js";
|
|
7
7
|
import { u as ml } from "./useChartAccessibility-9icAAmYg.js";
|
|
8
|
-
import bl from "./Legend-
|
|
9
|
-
import xl from "./Title-
|
|
10
|
-
import { S as Ll } from "./Slicer-
|
|
8
|
+
import bl from "./Legend-DInM-hku.js";
|
|
9
|
+
import xl from "./Title-BSlAPr_H.js";
|
|
10
|
+
import { S as Ll } from "./Slicer-O07lQwRC.js";
|
|
11
11
|
import { u as kl } from "./useTimeLabels-Mrr0jrpL.js";
|
|
12
|
-
import Cl from "./img-
|
|
12
|
+
import Cl from "./img-CgMUOQnb.js";
|
|
13
13
|
import { _ as wl } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
14
14
|
const Sl = ["id"], zl = ["onClick"], $l = {
|
|
15
15
|
key: 2,
|
|
@@ -32,7 +32,7 @@ const Sl = ["id"], zl = ["onClick"], $l = {
|
|
|
32
32
|
},
|
|
33
33
|
emits: ["selectLegend"],
|
|
34
34
|
setup(Oe, { expose: ya, emit: fa }) {
|
|
35
|
-
const ga = Q(() => import("./vue-ui-accordion-
|
|
35
|
+
const ga = Q(() => import("./vue-ui-accordion-CEDGlyKI.js")), pa = Q(() => import("./DataTable-D36ZRtpU.js")), ma = Q(() => import("./NonSvgPenAndPaper-B60MxEaz.js")), ba = Q(() => import("./vue-ui-skeleton-P-1SRvsT.js")), xa = Q(() => import("./Tooltip-lPcsweXz.js")), La = Q(() => import("./UserOptions-Dn5TCQxg.js")), { vue_ui_xy_canvas: ka } = Ka(), g = Oe, be = d(Qa()), P = d(null), te = d(null), s = d(null), y = d(1), E = d(1), ce = d(!1), c = d(null), de = d(""), Re = d(null), $ = d([]), G = d(1), H = d(!0), Z = d(!0), xe = d(null), Pe = d(0), Ee = d(0), he = d(!1), Fe = d(null), Ae = d(null), De = d(null), Ne = d(null), Le = d(0), ke = d(0), Ce = d(0), M = d(null), we = L(() => !!g.dataset && g.dataset.length), Ca = fa, wa = Va();
|
|
36
36
|
sa(() => {
|
|
37
37
|
wa["chart-background"] && console.warn("VueUiXyCanvas does not support the #chart-background slot.");
|
|
38
38
|
});
|
package/package.json
CHANGED