vue-data-ui 3.4.9 → 3.5.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +88 -37
- package/dist/{PackageVersion-CTUqGqWV.js → PackageVersion-Cyx_s25h.js} +1 -1
- 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-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-DjxWWa78.js → vue-data-ui-DxgRqCAo.js} +104 -98
- package/dist/vue-data-ui.js +54 -54
- package/dist/{vue-ui-3d-bar-CLE7f9pl.js → vue-ui-3d-bar-DmNJp8SY.js} +1 -1
- package/dist/{vue-ui-age-pyramid-D73uIOPm.js → vue-ui-age-pyramid-CPAP3sNY.js} +1 -1
- package/dist/{vue-ui-bullet-Bybo0xK2.js → vue-ui-bullet-Ce6uvCQJ.js} +1 -1
- package/dist/{vue-ui-candlestick-D_FyMdqH.js → vue-ui-candlestick-DewevWV_.js} +1 -1
- package/dist/{vue-ui-carousel-table-BvMlNdVo.js → vue-ui-carousel-table-Dv1CDfE5.js} +1 -1
- package/dist/{vue-ui-chestnut-DA0g0bDV.js → vue-ui-chestnut-D9sdFZ4E.js} +1 -1
- package/dist/{vue-ui-chord-CDgzolI-.js → vue-ui-chord-BG4dxKNA.js} +1 -1
- package/dist/{vue-ui-circle-pack-BPDm-ro5.js → vue-ui-circle-pack-Be74QB_0.js} +1 -1
- package/dist/{vue-ui-dashboard-CeJwbiON.js → vue-ui-dashboard-C4BLwHey.js} +54 -54
- package/dist/{vue-ui-donut-DjQXHBJE.js → vue-ui-donut-BRGFcgxS.js} +542 -526
- package/dist/{vue-ui-donut-evolution-Ca3Svr0B.js → vue-ui-donut-evolution-DJ0C-7jH.js} +364 -348
- package/dist/{vue-ui-dumbbell-CxCE2luV.js → vue-ui-dumbbell-iQJ0BUhm.js} +1 -1
- package/dist/{vue-ui-flow-DEvwXd4W.js → vue-ui-flow-CTYFoib3.js} +1 -1
- package/dist/{vue-ui-funnel-Bgcx7xia.js → vue-ui-funnel-CG55Xcdy.js} +1 -1
- package/dist/{vue-ui-galaxy-BWr1EMob.js → vue-ui-galaxy-BQrxjKZJ.js} +221 -205
- package/dist/{vue-ui-gauge-DQricvo2.js → vue-ui-gauge-Tc-0NI0Y.js} +1 -1
- package/dist/{vue-ui-gizmo-C-fKe3io.js → vue-ui-gizmo-P8h-gnLd.js} +1 -1
- package/dist/{vue-ui-heatmap-B-o_i7Hu.js → vue-ui-heatmap-BZimPzsL.js} +1 -1
- package/dist/{vue-ui-history-plot-DzQ9DPUJ.js → vue-ui-history-plot-BVzbuqYY.js} +383 -367
- package/dist/{vue-ui-molecule-I2OhrCR2.js → vue-ui-molecule-BALqwB8c.js} +1 -1
- package/dist/{vue-ui-mood-radar-BAT7kZUy.js → vue-ui-mood-radar-QJ5nlZby.js} +1 -1
- package/dist/{vue-ui-nested-donuts-CjhJDAQi.js → vue-ui-nested-donuts-CmUabkkQ.js} +404 -384
- package/dist/{vue-ui-onion-DTY2p87s.js → vue-ui-onion-DAOCf3f8.js} +331 -309
- package/dist/{vue-ui-parallel-coordinate-plot-C8aWTcNn.js → vue-ui-parallel-coordinate-plot-D8jTuFjq.js} +378 -361
- package/dist/{vue-ui-quadrant-DGnasrCR.js → vue-ui-quadrant-CO52mSRY.js} +428 -411
- package/dist/{vue-ui-quick-chart-Cam_sWet.js → vue-ui-quick-chart-DEaVSldE.js} +1 -1
- package/dist/{vue-ui-radar-DNI9WI2R.js → vue-ui-radar-C5V4hhbW.js} +393 -374
- package/dist/{vue-ui-relation-circle-Dj1jhcsl.js → vue-ui-relation-circle-CbMM0Jka.js} +1 -1
- package/dist/{vue-ui-ridgeline-adIls6bj.js → vue-ui-ridgeline-CXCIRDq6.js} +454 -438
- package/dist/{vue-ui-rings-CnTMFK6R.js → vue-ui-rings-BpUcyqo7.js} +285 -263
- package/dist/{vue-ui-scatter-fzR2c0St.js → vue-ui-scatter--Dxe-hfO.js} +629 -613
- package/dist/{vue-ui-skeleton-DUdI2uOO.js → vue-ui-skeleton-BWq-VDzg.js} +1 -1
- package/dist/{vue-ui-spark-trend-DxpRfUJz.js → vue-ui-spark-trend-T4J_YOa_.js} +1 -1
- package/dist/{vue-ui-sparkbar-B44oER5n.js → vue-ui-sparkbar-DnKP55Vu.js} +1 -1
- package/dist/{vue-ui-sparkgauge-ix12NZ7M.js → vue-ui-sparkgauge-BDQLP-zi.js} +1 -1
- package/dist/{vue-ui-sparkhistogram-Cs-QDYBR.js → vue-ui-sparkhistogram-Dm7QXrA-.js} +1 -1
- package/dist/{vue-ui-sparkline-Cb8ZmyUq.js → vue-ui-sparkline-tXGDLHRy.js} +1 -1
- package/dist/vue-ui-sparkstackbar-M53Nt07M.js +441 -0
- package/dist/{vue-ui-stackbar-DubS6Pg8.js → vue-ui-stackbar-CkBOjryQ.js} +437 -421
- package/dist/{vue-ui-strip-plot-BjG-Jxnb.js → vue-ui-strip-plot-BX9i3wMn.js} +1 -1
- package/dist/{vue-ui-table-DdBdLrAL.js → vue-ui-table-7r02N9R9.js} +2 -2
- package/dist/{vue-ui-table-sparkline-EpCo2Be5.js → vue-ui-table-sparkline-DZaAh10E.js} +1 -1
- package/dist/{vue-ui-thermometer-DTnfnf9z.js → vue-ui-thermometer-CFPt3MOv.js} +1 -1
- package/dist/{vue-ui-timer-Br3wp8hG.js → vue-ui-timer-Ds-MJoW2.js} +1 -1
- package/dist/{vue-ui-tiremarks-CrC_tlIx.js → vue-ui-tiremarks-2eIQ6vxu.js} +1 -1
- package/dist/{vue-ui-treemap-kyuyi2ES.js → vue-ui-treemap-BEvl8hiw.js} +500 -484
- package/dist/{vue-ui-vertical-bar-yfbEfLqy.js → vue-ui-vertical-bar-D8dtM8sw.js} +350 -334
- package/dist/{vue-ui-waffle-m-9sqQik.js → vue-ui-waffle-B3q-2SCR.js} +302 -286
- package/dist/{vue-ui-wheel-BasM7FWt.js → vue-ui-wheel-BpirIgAG.js} +1 -1
- package/dist/{vue-ui-word-cloud-vNwswYZD.js → vue-ui-word-cloud-ChT7uLbN.js} +1 -1
- package/dist/{vue-ui-world-BsCNyZy_.js → vue-ui-world-CdP4g_3_.js} +1 -1
- package/dist/{vue-ui-xy-CIrw1lWQ.js → vue-ui-xy-B68qQ-gX.js} +1089 -1073
- package/dist/{vue-ui-xy-canvas-DXnLFwW3.js → vue-ui-xy-canvas-DDngEA1s.js} +338 -322
- package/package.json +1 -1
- package/dist/vue-ui-sparkstackbar-BiRZ51OU.js +0 -424
|
@@ -1,24 +1,24 @@
|
|
|
1
|
-
import { defineAsyncComponent as pe, ref as d, computed as g, useSlots as
|
|
2
|
-
import { c as
|
|
3
|
-
import { c as
|
|
4
|
-
import { u as
|
|
5
|
-
import { u as
|
|
6
|
-
import { u as
|
|
7
|
-
import { u as
|
|
8
|
-
import { u as
|
|
9
|
-
import { u as
|
|
10
|
-
import
|
|
11
|
-
import { t as
|
|
12
|
-
import
|
|
13
|
-
import
|
|
14
|
-
import
|
|
15
|
-
import
|
|
16
|
-
import { S as
|
|
17
|
-
import { _ as
|
|
18
|
-
const
|
|
1
|
+
import { defineAsyncComponent as pe, ref as d, computed as g, useSlots as Tl, onMounted as Aa, toRefs as Al, watch as P, nextTick as be, onBeforeUnmount as Fa, shallowRef as Ye, createElementBlock as Fe, openBlock as R, normalizeClass as Fl, normalizeStyle as xe, createCommentVNode as W, createElementVNode as J, createBlock as V, unref as L, createSlots as Ra, withCtx as b, renderSlot as M, normalizeProps as K, guardReactiveProps as ee, createVNode as Oa, Teleport as Rl, toDisplayString as Ge, resolveDynamicComponent as Ol, mergeProps as Pl, createTextVNode as Pa } from "vue";
|
|
2
|
+
import { c as Dl, t as El, b as Nl, p as ae, O as Le, e as _l, m as qe, a as se, d as re, h as Da, u as Hl, a1 as Xl, w as Ul, o as Bl, f as Wl, G as Ea, s as ke, S as Vl, P as Yl, Q as Gl, H as ql } from "./lib-C_mNZmhD.js";
|
|
3
|
+
import { c as Zl, a as Ze, d as jl, t as Jl, u as Ql, l as C, r as Re, b as Y, p as Na } from "./useResponsive-DfdjqQps.js";
|
|
4
|
+
import { u as Kl, a as je } from "./useNestedProp-BjZe1Y85.js";
|
|
5
|
+
import { u as et, B as at } from "./BaseScanner-BgWxam9d.js";
|
|
6
|
+
import { u as lt } from "./usePrinter-DTzqpYKF.js";
|
|
7
|
+
import { u as tt, a as ot, l as ut } from "./useTimeLabels-BGFjWgrv.js";
|
|
8
|
+
import { u as st } from "./useUserOptionState-BIvW1Kz7.js";
|
|
9
|
+
import { u as rt } from "./useChartAccessibility-9icAAmYg.js";
|
|
10
|
+
import nt from "./img-BecE5qXd.js";
|
|
11
|
+
import { t as it } from "./themes-AUNCOb2G.js";
|
|
12
|
+
import vt from "./Legend-G6GMcdAc.js";
|
|
13
|
+
import ct from "./Title-l36lOBMx.js";
|
|
14
|
+
import dt from "./BaseIcon-BmMbm4d0.js";
|
|
15
|
+
import ht from "./vue-ui-accordion-CZ0thhxa.js";
|
|
16
|
+
import { S as ft } from "./SlicerPreview-ij72TAs6.js";
|
|
17
|
+
import { _ as yt } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
18
|
+
const mt = ["id"], gt = ["id"], pt = ["id"], bt = ["onClick"], xt = {
|
|
19
19
|
key: 4,
|
|
20
20
|
class: "vue-data-ui-watermark"
|
|
21
|
-
},
|
|
21
|
+
}, Lt = ["innerHTML"], kt = {
|
|
22
22
|
__name: "vue-ui-xy-canvas",
|
|
23
23
|
props: {
|
|
24
24
|
dataset: {
|
|
@@ -39,15 +39,15 @@ const ht = ["id"], ft = ["id"], yt = ["id"], mt = ["onClick"], gt = {
|
|
|
39
39
|
}
|
|
40
40
|
},
|
|
41
41
|
emits: ["selectLegend", "selectX"],
|
|
42
|
-
setup(
|
|
43
|
-
const
|
|
44
|
-
|
|
45
|
-
|
|
42
|
+
setup(Je, { expose: _a, emit: Ha }) {
|
|
43
|
+
const Xa = pe(() => import("./Tooltip-oWCO1HKy.js")), Ua = pe(() => import("./DataTable-BT7VF2ua.js")), Ba = pe(() => import("./UserOptions-CGnQt6Fd.js")), Wa = pe(() => import("./NonSvgPenAndPaper-C7TRn0_3.js")), Va = pe(() => import("./BaseDraggableDialog-ymf2sfB8.js")), { vue_ui_xy_canvas: Ya } = Kl(), p = Je, Q = d(Dl()), H = d(null), le = d(null), v = d(null), m = d(1), G = d(1), ne = d(!1), h = d(null), Ce = d(""), Qe = d(null), $ = d([]), te = d(1), D = d(!0), X = d(!0), we = d(null), Ke = d(0), ie = d(!1), ea = d(null), aa = d(null), q = d(null), la = d(null), Oe = d(0), Pe = d(0), De = d(0), E = d(null), ta = d(!1), ve = d(null), Ee = d(null), ce = d(!1), oa = d(!1), Se = d(!1), w = d(null), U = g(() => Array.isArray(He.value) && He.value.length > 0), Ne = Ha, Ga = Tl();
|
|
44
|
+
Aa(() => {
|
|
45
|
+
Ga["chart-background"] && console.warn("VueUiXyCanvas does not support the #chart-background slot.");
|
|
46
46
|
});
|
|
47
|
-
const a = d(
|
|
48
|
-
|
|
47
|
+
const a = d(Ue()), qa = g(() => !!a.value.debug), { loading: _e, FINAL_DATASET: He } = et({
|
|
48
|
+
...Al(p),
|
|
49
49
|
FINAL_CONFIG: a,
|
|
50
|
-
prepareConfig:
|
|
50
|
+
prepareConfig: Ue,
|
|
51
51
|
skeletonDataset: [
|
|
52
52
|
{
|
|
53
53
|
name: "",
|
|
@@ -63,7 +63,7 @@ const ht = ["id"], ft = ["id"], yt = ["id"], mt = ["onClick"], gt = {
|
|
|
63
63
|
color: "#AAAAAA"
|
|
64
64
|
}
|
|
65
65
|
],
|
|
66
|
-
skeletonConfig:
|
|
66
|
+
skeletonConfig: El({
|
|
67
67
|
defaultConfig: a.value,
|
|
68
68
|
userConfig: {
|
|
69
69
|
userOptions: { show: !1 },
|
|
@@ -102,36 +102,36 @@ const ht = ["id"], ft = ["id"], yt = ["id"], mt = ["onClick"], gt = {
|
|
|
102
102
|
}
|
|
103
103
|
}
|
|
104
104
|
})
|
|
105
|
-
}), { userOptionsVisible:
|
|
106
|
-
function qa() {
|
|
107
|
-
oa(!0);
|
|
108
|
-
}
|
|
105
|
+
}), { userOptionsVisible: Xe, setUserOptionsVisibility: ua, keepUserOptionState: sa } = st({ config: a.value }), { svgRef: S } = rt({ config: a.value.style.chart.title });
|
|
109
106
|
function Za() {
|
|
110
|
-
|
|
107
|
+
ua(!0);
|
|
111
108
|
}
|
|
112
|
-
function
|
|
113
|
-
|
|
109
|
+
function ja() {
|
|
110
|
+
ua(!1), Ne("selectX", { seriesIndex: null, datapoint: null }), h.value = null;
|
|
111
|
+
}
|
|
112
|
+
function Ue() {
|
|
113
|
+
const e = je({
|
|
114
114
|
userConfig: p.config,
|
|
115
115
|
defaultConfig: Ya
|
|
116
116
|
});
|
|
117
117
|
let l = {};
|
|
118
118
|
return e.theme ? l = {
|
|
119
|
-
...
|
|
120
|
-
userConfig:
|
|
119
|
+
...je({
|
|
120
|
+
userConfig: it.vue_ui_xy_canvas[e.theme] || p.config,
|
|
121
121
|
defaultConfig: e
|
|
122
122
|
}),
|
|
123
|
-
customPalette:
|
|
124
|
-
} : l = e, p.config && Le(p.config, "style.chart.scale.min") ? l.style.chart.scale.min = p.config.style.chart.scale.min : l.style.chart.scale.min = null, p.config && Le(p.config, "style.chart.scale.max") ? l.style.chart.scale.max = p.config.style.chart.scale.max : l.style.chart.scale.max = null, p.config && Le(p.config, "style.chart.zoom.startIndex") ? l.style.chart.zoom.startIndex = p.config.style.chart.zoom.startIndex : l.style.chart.zoom.startIndex = null, p.config && Le(p.config, "style.chart.zoom.endIndex") ? l.style.chart.zoom.endIndex = p.config.style.chart.zoom.endIndex : l.style.chart.zoom.endIndex = null, p.config && Le(p.config, "style.chart.grid.y.timeLabels") && (console.warn("VueUiXyCanvas: you are using the deprecated config.style.chart.grid.y.timeLabels. It is recommended to move this configuration to config.style.chart.grid.x.timeLabels."), l.style.chart.grid.x.timeLabels =
|
|
123
|
+
customPalette: Nl[e.theme] || ae
|
|
124
|
+
} : l = e, p.config && Le(p.config, "style.chart.scale.min") ? l.style.chart.scale.min = p.config.style.chart.scale.min : l.style.chart.scale.min = null, p.config && Le(p.config, "style.chart.scale.max") ? l.style.chart.scale.max = p.config.style.chart.scale.max : l.style.chart.scale.max = null, p.config && Le(p.config, "style.chart.zoom.startIndex") ? l.style.chart.zoom.startIndex = p.config.style.chart.zoom.startIndex : l.style.chart.zoom.startIndex = null, p.config && Le(p.config, "style.chart.zoom.endIndex") ? l.style.chart.zoom.endIndex = p.config.style.chart.zoom.endIndex : l.style.chart.zoom.endIndex = null, p.config && Le(p.config, "style.chart.grid.y.timeLabels") && (console.warn("VueUiXyCanvas: you are using the deprecated config.style.chart.grid.y.timeLabels. It is recommended to move this configuration to config.style.chart.grid.x.timeLabels."), l.style.chart.grid.x.timeLabels = je({
|
|
125
125
|
defaultConfig: l.style.chart.grid.x.timeLabels,
|
|
126
126
|
userConfig: p.config.style.chart.grid.y.timeLabels
|
|
127
127
|
})), l;
|
|
128
128
|
}
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
}, { deep: !0 }),
|
|
132
|
-
!Array.isArray(e) || e.length === 0 || (await be(), S.value && !v.value && (v.value = S.value.getContext("2d", { willReadFrequently: !0 })), D.value = !0,
|
|
129
|
+
P(() => p.config, (e) => {
|
|
130
|
+
_e.value || (a.value = Ue()), Xe.value = !a.value.userOptions.showOnChartHover, ka(), Oe.value += 1, Pe.value += 1, De.value += 1, c.value.showTable = a.value.table.show, c.value.showDataLabels = a.value.style.chart.dataLabels.show, c.value.stacked = a.value.style.chart.stacked, c.value.showTooltip = a.value.style.chart.tooltip.show;
|
|
131
|
+
}, { deep: !0 }), P(() => p.dataset, async (e) => {
|
|
132
|
+
!Array.isArray(e) || e.length === 0 || (await be(), S.value && !v.value && (v.value = S.value.getContext("2d", { willReadFrequently: !0 })), D.value = !0, X.value = !0, await he(), Me(), Oe.value += 1, Pe.value += 1, De.value += 1);
|
|
133
133
|
}, { deep: !0 });
|
|
134
|
-
const
|
|
134
|
+
const ra = d(a.value.style.chart.aspectRatio), { isPrinting: na, isImaging: ia, generatePdf: va, generateImage: ca } = lt({
|
|
135
135
|
elementId: `xy_canvas_${Q.value}`,
|
|
136
136
|
fileName: a.value.style.chart.title.text || "vue-ui-xy-canvas",
|
|
137
137
|
options: a.value.userOptions.print
|
|
@@ -141,11 +141,11 @@ const ht = ["id"], ft = ["id"], yt = ["id"], mt = ["onClick"], gt = {
|
|
|
141
141
|
stacked: a.value.style.chart.stacked,
|
|
142
142
|
showTooltip: a.value.style.chart.tooltip.show
|
|
143
143
|
});
|
|
144
|
-
function
|
|
145
|
-
ie.value = e,
|
|
144
|
+
function da(e) {
|
|
145
|
+
ie.value = e, Ke.value += 1;
|
|
146
146
|
}
|
|
147
|
-
const
|
|
148
|
-
function
|
|
147
|
+
const ha = g(() => _l(a.value.customPalette)), O = g(() => F.value ? Math.max(...F.value.filter((e, l) => !$.value.includes(e.absoluteIndex)).map((e) => e.series.length)) : 0);
|
|
148
|
+
function Ja(e) {
|
|
149
149
|
w.value = e, Z();
|
|
150
150
|
}
|
|
151
151
|
const o = g(() => {
|
|
@@ -162,24 +162,24 @@ const ht = ["id"], ft = ["id"], yt = ["id"], mt = ["onClick"], gt = {
|
|
|
162
162
|
slot: e / (u.value.end - u.value.start)
|
|
163
163
|
};
|
|
164
164
|
});
|
|
165
|
-
function
|
|
165
|
+
function fa(e, l) {
|
|
166
166
|
return e / l;
|
|
167
167
|
}
|
|
168
|
-
function
|
|
169
|
-
return l.map((x,
|
|
170
|
-
const k = s.min < 0 ? Math.abs(s.min) : 0, _ =
|
|
168
|
+
function Qa({ hasAutoScale: e, series: l, min: t, max: r, scale: s, yOffset: i, individualHeight: n, stackIndex: f = null }) {
|
|
169
|
+
return l.map((x, A) => {
|
|
170
|
+
const k = s.min < 0 ? Math.abs(s.min) : 0, _ = fa(x + k, k + s.max);
|
|
171
171
|
let me, ge;
|
|
172
|
-
e && (me = s.min, ge =
|
|
173
|
-
let
|
|
174
|
-
return f === null ?
|
|
175
|
-
x: o.value.left + o.value.slot *
|
|
176
|
-
y:
|
|
172
|
+
e && (me = s.min, ge = fa(x - me, s.max - me));
|
|
173
|
+
let B = 0;
|
|
174
|
+
return f === null ? B = o.value.bottom - o.value.height * (e ? ge : _) : B = o.value.bottom - i - n * (e ? ge : _), {
|
|
175
|
+
x: o.value.left + o.value.slot * A + o.value.slot / 2,
|
|
176
|
+
y: B,
|
|
177
177
|
value: x
|
|
178
178
|
};
|
|
179
179
|
});
|
|
180
180
|
}
|
|
181
181
|
const z = g(() => {
|
|
182
|
-
const e = a.value.style.chart.scale.min !== null ? a.value.style.chart.scale.min : Math.min(...
|
|
182
|
+
const e = a.value.style.chart.scale.min !== null ? a.value.style.chart.scale.min : Math.min(...F.value.filter((n, f) => !$.value.includes(n.absoluteIndex)).flatMap((n) => n.series.slice(u.value.start, u.value.end))), l = a.value.style.chart.scale.max !== null ? a.value.style.chart.scale.max : Math.max(...F.value.filter((n, f) => !$.value.includes(n.absoluteIndex)).flatMap((n) => n.series.slice(u.value.start, u.value.end))), t = qe(e < 0 ? e : 0, l === e ? e + 1 < 0 ? 0 : e + 1 : l < 0 ? 0 : l, a.value.style.chart.scale.ticks), r = t.min < 0 ? Math.abs(t.min) : 0, s = o.value.bottom - o.value.height * (r / (t.max + r)), i = t.ticks.map((n) => ({
|
|
183
183
|
y: o.value.bottom - o.value.height * ((n + r) / (t.max + r)),
|
|
184
184
|
x: o.value.left - 8,
|
|
185
185
|
value: n
|
|
@@ -192,7 +192,7 @@ const ht = ["id"], ft = ["id"], yt = ["id"], mt = ["onClick"], gt = {
|
|
|
192
192
|
yLabels: i,
|
|
193
193
|
zero: s
|
|
194
194
|
};
|
|
195
|
-
}),
|
|
195
|
+
}), Ka = g(() => y.value.map((e) => `
|
|
196
196
|
<div style="display:flex;flex-direction:row;gap:6px;align-items:center;">
|
|
197
197
|
<svg viewBox="0 0 10 10" height="12" width="12">
|
|
198
198
|
<circle cx="5" cy="5" r="5" fill="${e.color}"/>
|
|
@@ -210,55 +210,55 @@ const ht = ["id"], ft = ["id"], yt = ["id"], mt = ["onClick"], gt = {
|
|
|
210
210
|
{ datapoint: e, seriesIndex: h.value }
|
|
211
211
|
)}</span>
|
|
212
212
|
</div>
|
|
213
|
-
`)), ze = g(() => a.value.style.chart.line.cutNullValues),
|
|
213
|
+
`)), ze = g(() => a.value.style.chart.line.cutNullValues), F = g(() => He.value.map((e, l) => ({
|
|
214
214
|
...e,
|
|
215
|
-
series:
|
|
216
|
-
data:
|
|
215
|
+
series: Hl({
|
|
216
|
+
data: Xl(e.series, [], ze.value),
|
|
217
217
|
threshold: a.value.downsample.threshold
|
|
218
218
|
}),
|
|
219
219
|
absoluteIndex: l,
|
|
220
|
-
color:
|
|
221
|
-
}))),
|
|
220
|
+
color: Da(e.color || ha.value[l] || ae[l] || ae[l % ae.length])
|
|
221
|
+
}))), el = g(() => {
|
|
222
222
|
if (!a.value.style.chart.zoom.minimap.show) return [];
|
|
223
|
-
const e =
|
|
223
|
+
const e = F.value.filter((s) => !$.value.includes(s.absoluteIndex)), l = Math.max(...e.map((s) => s.series.length)), t = [];
|
|
224
224
|
for (let s = 0; s < l; s += 1)
|
|
225
225
|
t.push(e.map((i) => i.series[s] || 0).reduce((i, n) => (i || 0) + (n || 0), 0));
|
|
226
226
|
const r = Math.min(...t);
|
|
227
227
|
return t.map((s) => s + (r < 0 ? Math.abs(r) : 0));
|
|
228
|
-
}),
|
|
228
|
+
}), al = g(() => a.value.style.chart.zoom.minimap.show ? F.value.map((l) => ({
|
|
229
229
|
...l,
|
|
230
|
-
isVisible:
|
|
230
|
+
isVisible: !$.value.includes(l.absoluteIndex)
|
|
231
231
|
})) : []);
|
|
232
|
-
O
|
|
232
|
+
P(O, (e) => {
|
|
233
233
|
e && he();
|
|
234
234
|
});
|
|
235
|
-
const y = g(() =>
|
|
235
|
+
const y = g(() => Ul(F.value.filter((e, l) => !$.value.includes(e.absoluteIndex))).map((e, l) => ({
|
|
236
236
|
...e,
|
|
237
237
|
series: e.series.slice(u.value.start, u.value.end)
|
|
238
238
|
})).map((e, l) => {
|
|
239
239
|
let t = [null, void 0].includes(e.scaleMin) ? Math.min(...e.series) || 0 : e.scaleMin, r = [null, void 0].includes(e.scaleMax) ? Math.max(...e.series) || 1 : e.scaleMax;
|
|
240
|
-
t === r && (t = t >= 0 ? r - 1 : t, r = r >= 0 ? r : t + 1), e.series.filter((
|
|
240
|
+
t === r && (t = t >= 0 ? r - 1 : t, r = r >= 0 ? r : t + 1), e.series.filter((B) => ![null, void 0].includes(B)).map((B) => (B - t) / (r - t));
|
|
241
241
|
const s = {
|
|
242
242
|
valueMin: t,
|
|
243
243
|
valueMax: r
|
|
244
244
|
}, i = e.scaleSteps || a.value.style.chart.scale.ticks;
|
|
245
245
|
let n;
|
|
246
|
-
e.autoScaling ? n =
|
|
247
|
-
const f = c.value.stacked ? o.value.height * (1 - e.cumulatedStackRatio) : 0, x = c.value.stacked ? o.value.height / a.value.style.chart.stackGap : 0,
|
|
246
|
+
e.autoScaling ? n = qe(s.valueMin, s.valueMax, i) : n = qe(s.valueMin < 0 ? s.valueMin : 0, s.valueMax <= 0 ? 0 : s.valueMax, i);
|
|
247
|
+
const f = c.value.stacked ? o.value.height * (1 - e.cumulatedStackRatio) : 0, x = c.value.stacked ? o.value.height / a.value.style.chart.stackGap : 0, A = c.value.stacked ? o.value.height * e.stackRatio - x : o.value.height, k = n.min < 0 ? Math.abs(n.min) : 0;
|
|
248
248
|
let _;
|
|
249
|
-
e.autoScaling && c.value.stacked && r <= 0 ? _ = o.value.bottom - f -
|
|
250
|
-
const me = n.ticks.map((
|
|
251
|
-
y: o.value.bottom - f -
|
|
249
|
+
e.autoScaling && c.value.stacked && r <= 0 ? _ = o.value.bottom - f - A : _ = o.value.bottom - f - A * (k / (n.max + k));
|
|
250
|
+
const me = n.ticks.map((B, Il) => ({
|
|
251
|
+
y: o.value.bottom - f - A * (Il / (n.ticks.length - 1)),
|
|
252
252
|
x: o.value.left - 8,
|
|
253
|
-
value:
|
|
254
|
-
})), ge =
|
|
253
|
+
value: B
|
|
254
|
+
})), ge = Qa({
|
|
255
255
|
hasAutoScale: c.value.stacked && e.autoScaling,
|
|
256
256
|
series: e.series,
|
|
257
257
|
min: c.value.stacked ? t : z.value.min,
|
|
258
258
|
max: c.value.stacked ? r : z.value.max,
|
|
259
259
|
scale: c.value.stacked ? n : z.value.scale,
|
|
260
260
|
yOffset: f,
|
|
261
|
-
individualHeight:
|
|
261
|
+
individualHeight: A,
|
|
262
262
|
stackIndex: c.value.stacked ? l : null
|
|
263
263
|
});
|
|
264
264
|
return {
|
|
@@ -271,35 +271,35 @@ const ht = ["id"], ft = ["id"], yt = ["id"], mt = ["onClick"], gt = {
|
|
|
271
271
|
localMin: k,
|
|
272
272
|
localYLabels: me,
|
|
273
273
|
yOffset: f,
|
|
274
|
-
individualHeight:
|
|
274
|
+
individualHeight: A
|
|
275
275
|
};
|
|
276
276
|
})), u = d({
|
|
277
277
|
start: 0,
|
|
278
|
-
end:
|
|
279
|
-
}),
|
|
280
|
-
function
|
|
278
|
+
end: O.value
|
|
279
|
+
}), I = d({ start: 0, end: O.value }), de = d(null);
|
|
280
|
+
function ll() {
|
|
281
281
|
return new Promise((e) => requestAnimationFrame(
|
|
282
282
|
() => requestAnimationFrame(() => e())
|
|
283
283
|
));
|
|
284
284
|
}
|
|
285
|
-
|
|
285
|
+
Fa(() => {
|
|
286
286
|
de.value && cancelAnimationFrame(de.value);
|
|
287
287
|
});
|
|
288
288
|
async function he() {
|
|
289
|
-
|
|
290
|
-
await
|
|
289
|
+
ma(), await be(), de.value && cancelAnimationFrame(de.value), de.value = requestAnimationFrame(async () => {
|
|
290
|
+
await ll(), ma();
|
|
291
291
|
});
|
|
292
292
|
}
|
|
293
|
-
const
|
|
294
|
-
function
|
|
295
|
-
|
|
293
|
+
const tl = g(() => a.value.style.chart.zoom.preview.enable && (I.value.start !== u.value.start || I.value.end !== u.value.end));
|
|
294
|
+
function ya(e, l) {
|
|
295
|
+
I.value[e] = l;
|
|
296
296
|
}
|
|
297
|
-
async function
|
|
297
|
+
async function ma() {
|
|
298
298
|
if (!ce.value) {
|
|
299
299
|
ce.value = !0;
|
|
300
300
|
try {
|
|
301
|
-
const { startIndex: e, endIndex: l } = a.value.style.chart.zoom, t = Math.max(...
|
|
302
|
-
Se.value = !0, u.value.start = r, u.value.end = s,
|
|
301
|
+
const { startIndex: e, endIndex: l } = a.value.style.chart.zoom, t = Math.max(...F.value.map((i) => i.series.length)), r = e ?? 0, s = l != null ? Math.min(ga(l + 1), t) : t;
|
|
302
|
+
Se.value = !0, u.value.start = r, u.value.end = s, I.value.start = r, I.value.end = s, Be(), oa.value = !0, await be(), q.value && (q.value.setStartValue(u.value.start), q.value.setEndValue(u.value.end));
|
|
303
303
|
} finally {
|
|
304
304
|
queueMicrotask(() => {
|
|
305
305
|
Se.value = !1;
|
|
@@ -307,41 +307,41 @@ const ht = ["id"], ft = ["id"], yt = ["id"], mt = ["onClick"], gt = {
|
|
|
307
307
|
}
|
|
308
308
|
}
|
|
309
309
|
}
|
|
310
|
-
function tl(e) {
|
|
311
|
-
ce.value || Se.value || e !== u.value.start && (u.value.start = e, $.value.start = e, Xe());
|
|
312
|
-
}
|
|
313
310
|
function ol(e) {
|
|
311
|
+
ce.value || Se.value || e !== u.value.start && (u.value.start = e, I.value.start = e, Be());
|
|
312
|
+
}
|
|
313
|
+
function ul(e) {
|
|
314
314
|
if (ce.value || Se.value) return;
|
|
315
|
-
const l =
|
|
316
|
-
l !== u.value.end && (u.value.end = l,
|
|
315
|
+
const l = ga(e);
|
|
316
|
+
l !== u.value.end && (u.value.end = l, I.value.end = l, Be());
|
|
317
317
|
}
|
|
318
|
-
function
|
|
319
|
-
const l =
|
|
318
|
+
function ga(e) {
|
|
319
|
+
const l = O.value;
|
|
320
320
|
return e > l ? l : e < 0 || e < u.value.start ? a.value.style.chart.zoom.startIndex !== null ? a.value.style.chart.zoom.startIndex + 1 : 1 : e;
|
|
321
321
|
}
|
|
322
|
-
function
|
|
322
|
+
function Be() {
|
|
323
323
|
const e = Math.max(
|
|
324
324
|
1,
|
|
325
|
-
Math.max(...
|
|
325
|
+
Math.max(...F.value.map((r) => r.series.length))
|
|
326
326
|
);
|
|
327
327
|
let l = Math.max(0, Math.min(u.value.start ?? 0, e - 1)), t = Math.max(l + 1, Math.min(u.value.end ?? e, e));
|
|
328
|
-
(!Number.isFinite(l) || !Number.isFinite(t) || t <= l) && (l = 0, t = e), u.value = { start: l, end: t },
|
|
328
|
+
(!Number.isFinite(l) || !Number.isFinite(t) || t <= l) && (l = 0, t = e), u.value = { start: l, end: t }, I.value.start = l, I.value.end = t, q.value && (q.value.setStartValue(l), q.value.setEndValue(t));
|
|
329
329
|
}
|
|
330
|
-
const
|
|
330
|
+
const sl = g(() => y.value.filter((e) => ["line", "plot", void 0].includes(e.type))), T = g(() => y.value.filter((e) => e.type === "bar"));
|
|
331
331
|
function Me() {
|
|
332
332
|
if (!S.value || !le.value) return;
|
|
333
333
|
const e = le.value.offsetWidth, l = le.value.offsetHeight;
|
|
334
334
|
S.value.width = e * te.value * 2, S.value.height = l * te.value * 2, m.value = e * te.value * 2, G.value = l * te.value * 2, v.value?.scale(te.value, te.value), Z();
|
|
335
335
|
}
|
|
336
|
-
|
|
336
|
+
P(U, async (e) => {
|
|
337
337
|
if (!e) {
|
|
338
338
|
we.value = null, ne.value = !1, h.value = null, E.value = null;
|
|
339
339
|
return;
|
|
340
340
|
}
|
|
341
|
-
await be(), S.value && !v.value && (v.value = S.value.getContext("2d", { willReadFrequently: !0 })), D.value = !0,
|
|
341
|
+
await be(), S.value && !v.value && (v.value = S.value.getContext("2d", { willReadFrequently: !0 })), D.value = !0, X.value = !0, await he(), Me(), Z();
|
|
342
342
|
});
|
|
343
|
-
function
|
|
344
|
-
if (v.value && (v.value.clearRect(0, 0, 1e4, 1e4), v.value.fillStyle = a.value.style.chart.backgroundColor, v.value.fillRect(0, 0, o.value.canvasWidth, o.value.canvasHeight), !!
|
|
343
|
+
function rl() {
|
|
344
|
+
if (v.value && (v.value.clearRect(0, 0, 1e4, 1e4), v.value.fillStyle = a.value.style.chart.backgroundColor, v.value.fillRect(0, 0, o.value.canvasWidth, o.value.canvasHeight), !!U.value)) {
|
|
345
345
|
if (c.value.stacked)
|
|
346
346
|
a.value.style.chart.grid.y.verticalLines.show && u.value.end - u.value.start < a.value.style.chart.grid.y.verticalLines.hideUnderXLength ? y.value.forEach((e) => {
|
|
347
347
|
for (let l = 0; l < u.value.end - u.value.start + 1; l += 1)
|
|
@@ -381,7 +381,7 @@ const ht = ["id"], ft = ["id"], yt = ["id"], mt = ["onClick"], gt = {
|
|
|
381
381
|
);
|
|
382
382
|
}), a.value.style.chart.grid.x.horizontalLines.show && (a.value.style.chart.grid.x.horizontalLines.alternate ? y.value.forEach((e) => {
|
|
383
383
|
e.localYLabels.forEach((l, t) => {
|
|
384
|
-
t < e.localYLabels.length - 1 &&
|
|
384
|
+
t < e.localYLabels.length - 1 && Re(
|
|
385
385
|
v.value,
|
|
386
386
|
[
|
|
387
387
|
{ x: o.value.left, y: l.y },
|
|
@@ -441,7 +441,7 @@ const ht = ["id"], ft = ["id"], yt = ["id"], mt = ["onClick"], gt = {
|
|
|
441
441
|
}
|
|
442
442
|
);
|
|
443
443
|
}), y.value.forEach((e) => {
|
|
444
|
-
|
|
444
|
+
Y(
|
|
445
445
|
v.value,
|
|
446
446
|
e.name,
|
|
447
447
|
m.value / 35,
|
|
@@ -480,7 +480,7 @@ const ht = ["id"], ft = ["id"], yt = ["id"], mt = ["onClick"], gt = {
|
|
|
480
480
|
}
|
|
481
481
|
);
|
|
482
482
|
a.value.style.chart.grid.x.horizontalLines.show && (a.value.style.chart.grid.x.horizontalLines.alternate ? z.value.yLabels.forEach((e, l) => {
|
|
483
|
-
l < z.value.yLabels.length - 1 &&
|
|
483
|
+
l < z.value.yLabels.length - 1 && Re(
|
|
484
484
|
v.value,
|
|
485
485
|
[
|
|
486
486
|
{ x: o.value.left, y: e.y },
|
|
@@ -536,7 +536,7 @@ const ht = ["id"], ft = ["id"], yt = ["id"], mt = ["onClick"], gt = {
|
|
|
536
536
|
}
|
|
537
537
|
);
|
|
538
538
|
}
|
|
539
|
-
a.value.style.chart.grid.y.axisName &&
|
|
539
|
+
a.value.style.chart.grid.y.axisName && Y(
|
|
540
540
|
v.value,
|
|
541
541
|
a.value.style.chart.grid.y.axisName,
|
|
542
542
|
m.value - m.value / 40 * a.value.style.chart.grid.y.axisLabels.fontSizeRatio * 1.2,
|
|
@@ -547,7 +547,7 @@ const ht = ["id"], ft = ["id"], yt = ["id"], mt = ["onClick"], gt = {
|
|
|
547
547
|
align: "center",
|
|
548
548
|
rotation: 90
|
|
549
549
|
}
|
|
550
|
-
), a.value.style.chart.grid.x.axisName &&
|
|
550
|
+
), a.value.style.chart.grid.x.axisName && Y(
|
|
551
551
|
v.value,
|
|
552
552
|
a.value.style.chart.grid.x.axisName,
|
|
553
553
|
m.value / 2,
|
|
@@ -560,10 +560,10 @@ const ht = ["id"], ft = ["id"], yt = ["id"], mt = ["onClick"], gt = {
|
|
|
560
560
|
);
|
|
561
561
|
}
|
|
562
562
|
}
|
|
563
|
-
function
|
|
563
|
+
function nl(e) {
|
|
564
564
|
for (let l = 0; l < e.coordinatesLine.length; l += 1) {
|
|
565
565
|
const t = (h.value === l || w.value === l ? m.value / 150 : a.value.style.chart.line.plots.show || e.type === "plot" ? m.value / 200 : 0) * a.value.style.chart.line.plots.radiusRatio;
|
|
566
|
-
|
|
566
|
+
Ze(
|
|
567
567
|
v.value,
|
|
568
568
|
{ x: e.coordinatesLine[l].x, y: e.coordinatesLine[l].y },
|
|
569
569
|
t,
|
|
@@ -574,9 +574,9 @@ const ht = ["id"], ft = ["id"], yt = ["id"], mt = ["onClick"], gt = {
|
|
|
574
574
|
);
|
|
575
575
|
}
|
|
576
576
|
}
|
|
577
|
-
function
|
|
577
|
+
function il() {
|
|
578
578
|
y.value.forEach((e) => {
|
|
579
|
-
e.showYMarker && fe(e) &&
|
|
579
|
+
e.showYMarker && fe(e) && Y(
|
|
580
580
|
v.value,
|
|
581
581
|
se(
|
|
582
582
|
a.value.style.chart.dataLabels.formatter,
|
|
@@ -599,10 +599,10 @@ const ht = ["id"], ft = ["id"], yt = ["id"], mt = ["onClick"], gt = {
|
|
|
599
599
|
);
|
|
600
600
|
});
|
|
601
601
|
}
|
|
602
|
-
function
|
|
602
|
+
function vl() {
|
|
603
603
|
a.value.style.chart.grid.y.axisLabels.show && (c.value.stacked ? y.value.forEach((e) => {
|
|
604
604
|
e.localYLabels.forEach((l, t) => {
|
|
605
|
-
|
|
605
|
+
Y(
|
|
606
606
|
v.value,
|
|
607
607
|
se(
|
|
608
608
|
a.value.style.chart.dataLabels.formatter,
|
|
@@ -626,7 +626,7 @@ const ht = ["id"], ft = ["id"], yt = ["id"], mt = ["onClick"], gt = {
|
|
|
626
626
|
);
|
|
627
627
|
});
|
|
628
628
|
}) : z.value.yLabels.forEach((e, l) => {
|
|
629
|
-
|
|
629
|
+
Y(
|
|
630
630
|
v.value,
|
|
631
631
|
se(
|
|
632
632
|
a.value.style.chart.dataLabels.formatter,
|
|
@@ -650,9 +650,9 @@ const ht = ["id"], ft = ["id"], yt = ["id"], mt = ["onClick"], gt = {
|
|
|
650
650
|
);
|
|
651
651
|
}));
|
|
652
652
|
}
|
|
653
|
-
function
|
|
653
|
+
function cl(e) {
|
|
654
654
|
for (let l = 0; l < e.coordinatesLine.length; l += 1)
|
|
655
|
-
|
|
655
|
+
Y(
|
|
656
656
|
v.value,
|
|
657
657
|
se(
|
|
658
658
|
a.value.style.chart.dataLabels.formatter,
|
|
@@ -676,32 +676,32 @@ const ht = ["id"], ft = ["id"], yt = ["id"], mt = ["onClick"], gt = {
|
|
|
676
676
|
}
|
|
677
677
|
);
|
|
678
678
|
}
|
|
679
|
-
const N = g(() =>
|
|
679
|
+
const N = g(() => tt({
|
|
680
680
|
values: a.value.style.chart.grid.x.timeLabels.values,
|
|
681
|
-
maxDatapoints:
|
|
681
|
+
maxDatapoints: O.value,
|
|
682
682
|
formatter: a.value.style.chart.grid.x.timeLabels.datetimeFormatter,
|
|
683
683
|
start: 0,
|
|
684
|
-
end:
|
|
685
|
-
})),
|
|
686
|
-
const e = a.value.style.chart.grid.x.timeLabels.datetimeFormatter, l =
|
|
684
|
+
end: O.value
|
|
685
|
+
})), pa = g(() => {
|
|
686
|
+
const e = a.value.style.chart.grid.x.timeLabels.datetimeFormatter, l = ot({
|
|
687
687
|
useUTC: e.useUTC,
|
|
688
|
-
locale:
|
|
688
|
+
locale: ut[e.locale] || { months: [], shortMonths: [], days: [], shortDays: [] },
|
|
689
689
|
januaryAsYear: e.januaryAsYear
|
|
690
690
|
});
|
|
691
691
|
return (t, r) => {
|
|
692
692
|
const i = a.value.style.chart.grid.x.timeLabels.values?.[t];
|
|
693
693
|
return i == null ? "" : l.formatDate(new Date(i), r);
|
|
694
694
|
};
|
|
695
|
-
}),
|
|
696
|
-
text:
|
|
695
|
+
}), ba = g(() => (a.value.style.chart.grid.x.timeLabels.values || []).map((l, t) => ({
|
|
696
|
+
text: pa.value(t, a.value.style.chart.zoom.timeFormat),
|
|
697
697
|
absoluteIndex: t
|
|
698
|
-
}))),
|
|
699
|
-
text:
|
|
698
|
+
}))), dl = g(() => (a.value.style.chart.grid.x.timeLabels.values || []).map((l, t) => ({
|
|
699
|
+
text: pa.value(t, a.value.style.chart.tooltip.timeFormat),
|
|
700
700
|
absoluteIndex: t
|
|
701
701
|
})));
|
|
702
|
-
function
|
|
702
|
+
function hl() {
|
|
703
703
|
for (let e = u.value.start; e < u.value.end; e += 1)
|
|
704
|
-
(u.value.end - u.value.start < a.value.style.chart.grid.x.timeLabels.modulo || u.value.end - u.value.start >= a.value.style.chart.grid.x.timeLabels.modulo && (e % Math.floor((u.value.end - u.value.start) / a.value.style.chart.grid.x.timeLabels.modulo) === 0 || (e === h.value + u.value.start || e === w.value) && a.value.style.chart.grid.x.timeLabels.showMarker)) &&
|
|
704
|
+
(u.value.end - u.value.start < a.value.style.chart.grid.x.timeLabels.modulo || u.value.end - u.value.start >= a.value.style.chart.grid.x.timeLabels.modulo && (e % Math.floor((u.value.end - u.value.start) / a.value.style.chart.grid.x.timeLabels.modulo) === 0 || (e === h.value + u.value.start || e === w.value) && a.value.style.chart.grid.x.timeLabels.showMarker)) && Y(
|
|
705
705
|
v.value,
|
|
706
706
|
N.value[e] ? N.value[e].text : e + 1,
|
|
707
707
|
o.value.left + o.value.slot * (e - u.value.start) + o.value.slot / 2,
|
|
@@ -714,7 +714,7 @@ const ht = ["id"], ft = ["id"], yt = ["id"], mt = ["onClick"], gt = {
|
|
|
714
714
|
}
|
|
715
715
|
);
|
|
716
716
|
}
|
|
717
|
-
function
|
|
717
|
+
function xa() {
|
|
718
718
|
C(
|
|
719
719
|
v.value,
|
|
720
720
|
[
|
|
@@ -728,7 +728,7 @@ const ht = ["id"], ft = ["id"], yt = ["id"], mt = ["onClick"], gt = {
|
|
|
728
728
|
}
|
|
729
729
|
);
|
|
730
730
|
}
|
|
731
|
-
function
|
|
731
|
+
function fl() {
|
|
732
732
|
E.value && C(
|
|
733
733
|
v.value,
|
|
734
734
|
[
|
|
@@ -742,26 +742,26 @@ const ht = ["id"], ft = ["id"], yt = ["id"], mt = ["onClick"], gt = {
|
|
|
742
742
|
}
|
|
743
743
|
);
|
|
744
744
|
}
|
|
745
|
-
function
|
|
746
|
-
|
|
745
|
+
function yl() {
|
|
746
|
+
T.value.forEach((e, l) => {
|
|
747
747
|
for (let t = 0; t < e.coordinatesLine.length; t += 1)
|
|
748
|
-
|
|
748
|
+
Re(
|
|
749
749
|
v.value,
|
|
750
750
|
[
|
|
751
751
|
{
|
|
752
|
-
x: o.value.left + o.value.slot * t + o.value.slot / 10 + (c.value.stacked ? 0 : o.value.slot /
|
|
752
|
+
x: o.value.left + o.value.slot * t + o.value.slot / 10 + (c.value.stacked ? 0 : o.value.slot / T.value.length * l - (l === 0 ? 0 : o.value.slot / (5 * T.value.length) * l)),
|
|
753
753
|
y: c.value.stacked ? e.localZero : z.value.zero
|
|
754
754
|
},
|
|
755
755
|
{
|
|
756
|
-
x: o.value.left + o.value.slot * t + o.value.slot / 10 + (c.value.stacked ? 0 : o.value.slot /
|
|
756
|
+
x: o.value.left + o.value.slot * t + o.value.slot / 10 + (c.value.stacked ? 0 : o.value.slot / T.value.length * l - (l === 0 ? 0 : o.value.slot / (5 * T.value.length) * l)) + o.value.slot * 0.8 / (c.value.stacked ? 1 : T.value.length),
|
|
757
757
|
y: c.value.stacked ? e.localZero : z.value.zero
|
|
758
758
|
},
|
|
759
759
|
{
|
|
760
|
-
x: o.value.left + o.value.slot * t + o.value.slot / 10 + (c.value.stacked ? 0 : o.value.slot /
|
|
760
|
+
x: o.value.left + o.value.slot * t + o.value.slot / 10 + (c.value.stacked ? 0 : o.value.slot / T.value.length * l - (l === 0 ? 0 : o.value.slot / (5 * T.value.length) * l)) + o.value.slot * 0.8 / (c.value.stacked ? 1 : T.value.length),
|
|
761
761
|
y: e.coordinatesLine[t].y
|
|
762
762
|
},
|
|
763
763
|
{
|
|
764
|
-
x: o.value.left + o.value.slot * t + o.value.slot / 10 + (c.value.stacked ? 0 : o.value.slot /
|
|
764
|
+
x: o.value.left + o.value.slot * t + o.value.slot / 10 + (c.value.stacked ? 0 : o.value.slot / T.value.length * l - (l === 0 ? 0 : o.value.slot / (5 * T.value.length) * l)),
|
|
765
765
|
y: e.coordinatesLine[t].y
|
|
766
766
|
}
|
|
767
767
|
],
|
|
@@ -779,11 +779,11 @@ const ht = ["id"], ft = ["id"], yt = ["id"], mt = ["onClick"], gt = {
|
|
|
779
779
|
},
|
|
780
780
|
stops: [
|
|
781
781
|
{ offset: 0, color: e.color },
|
|
782
|
-
{ offset: 1, color: a.value.style.chart.bar.gradient.show ?
|
|
782
|
+
{ offset: 1, color: a.value.style.chart.bar.gradient.show ? Vl(e.color, 0.5) : e.color }
|
|
783
783
|
]
|
|
784
784
|
}
|
|
785
785
|
}
|
|
786
|
-
), c.value.showDataLabels && [!0, void 0].includes(e.dataLabels) &&
|
|
786
|
+
), c.value.showDataLabels && [!0, void 0].includes(e.dataLabels) && Y(
|
|
787
787
|
v.value,
|
|
788
788
|
se(
|
|
789
789
|
a.value.style.chart.dataLabels.formatter,
|
|
@@ -796,7 +796,7 @@ const ht = ["id"], ft = ["id"], yt = ["id"], mt = ["onClick"], gt = {
|
|
|
796
796
|
}),
|
|
797
797
|
{ datapoint: e.coordinatesLine[t], seriesIndex: t }
|
|
798
798
|
),
|
|
799
|
-
o.value.left + o.value.slot * t + o.value.slot / 10 + (c.value.stacked ? 0 : o.value.slot /
|
|
799
|
+
o.value.left + o.value.slot * t + o.value.slot / 10 + (c.value.stacked ? 0 : o.value.slot / T.value.length * l - (l === 0 ? 0 : o.value.slot / (5 * T.value.length) * l)) + o.value.slot * 0.4 / (c.value.stacked ? 1 : T.value.length),
|
|
800
800
|
(e.coordinatesLine[t].value < 0 ? c.value.stacked ? e.localZero : z.value.zero : e.coordinatesLine[t].y) + a.value.style.chart.dataLabels.offsetY,
|
|
801
801
|
{
|
|
802
802
|
align: "center",
|
|
@@ -808,7 +808,7 @@ const ht = ["id"], ft = ["id"], yt = ["id"], mt = ["onClick"], gt = {
|
|
|
808
808
|
);
|
|
809
809
|
});
|
|
810
810
|
}
|
|
811
|
-
function
|
|
811
|
+
function ml(e, l) {
|
|
812
812
|
const t = e.coordinatesLine.map((n, f) => {
|
|
813
813
|
const x = e.series[f];
|
|
814
814
|
return x != null && Number.isFinite(n?.y) ? n : null;
|
|
@@ -820,11 +820,11 @@ const ht = ["id"], ft = ["id"], yt = ["id"], mt = ["onClick"], gt = {
|
|
|
820
820
|
i.push(f);
|
|
821
821
|
else {
|
|
822
822
|
if (i.length >= 2) {
|
|
823
|
-
const x = i[0],
|
|
823
|
+
const x = i[0], A = i[i.length - 1];
|
|
824
824
|
r.push([
|
|
825
825
|
{ x: x.x, y: l },
|
|
826
826
|
...i,
|
|
827
|
-
{ x:
|
|
827
|
+
{ x: A.x, y: l }
|
|
828
828
|
]);
|
|
829
829
|
} else i.length === 1 && s.push(i[0]);
|
|
830
830
|
i = [];
|
|
@@ -840,7 +840,7 @@ const ht = ["id"], ft = ["id"], yt = ["id"], mt = ["onClick"], gt = {
|
|
|
840
840
|
} else i.length === 1 && s.push(i[0]);
|
|
841
841
|
return { polygons: r, singles: s };
|
|
842
842
|
}
|
|
843
|
-
function
|
|
843
|
+
function gl(e) {
|
|
844
844
|
const l = e.coordinatesLine.map((s, i) => {
|
|
845
845
|
const n = e.series[i];
|
|
846
846
|
return n != null && Number.isFinite(s?.y) ? s : null;
|
|
@@ -852,9 +852,9 @@ const ht = ["id"], ft = ["id"], yt = ["id"], mt = ["onClick"], gt = {
|
|
|
852
852
|
}
|
|
853
853
|
return r.length >= 2 && t.push(r), t;
|
|
854
854
|
}
|
|
855
|
-
function
|
|
855
|
+
function La(e) {
|
|
856
856
|
if (ze.value) {
|
|
857
|
-
const l =
|
|
857
|
+
const l = gl(e);
|
|
858
858
|
for (const t of l)
|
|
859
859
|
C(v.value, t, {
|
|
860
860
|
color: e.color,
|
|
@@ -866,20 +866,20 @@ const ht = ["id"], ft = ["id"], yt = ["id"], mt = ["onClick"], gt = {
|
|
|
866
866
|
lineWidth: 3
|
|
867
867
|
});
|
|
868
868
|
}
|
|
869
|
-
function
|
|
869
|
+
function pl(e) {
|
|
870
870
|
const l = !!ze.value;
|
|
871
871
|
if (e.useArea) {
|
|
872
872
|
const t = c.value.stacked ? e.localZero : z.value.zero;
|
|
873
873
|
if (l) {
|
|
874
|
-
const { polygons: r, singles: s } =
|
|
874
|
+
const { polygons: r, singles: s } = ml(e, t);
|
|
875
875
|
for (const n of r)
|
|
876
|
-
|
|
876
|
+
Na(v.value, n, {
|
|
877
877
|
fillColor: ke(e.color, a.value.style.chart.area.opacity),
|
|
878
878
|
strokeColor: "transparent"
|
|
879
879
|
});
|
|
880
880
|
const i = m.value / 200 * a.value.style.chart.line.plots.radiusRatio;
|
|
881
881
|
for (const n of s)
|
|
882
|
-
|
|
882
|
+
Ze(
|
|
883
883
|
v.value,
|
|
884
884
|
{ x: n.x, y: n.y },
|
|
885
885
|
i,
|
|
@@ -890,7 +890,7 @@ const ht = ["id"], ft = ["id"], yt = ["id"], mt = ["onClick"], gt = {
|
|
|
890
890
|
);
|
|
891
891
|
} else {
|
|
892
892
|
const r = { x: e.coordinatesLine[0].x, y: t }, s = { x: e.coordinatesLine.at(-1).x, y: t };
|
|
893
|
-
|
|
893
|
+
Na(
|
|
894
894
|
v.value,
|
|
895
895
|
[r, ...e.coordinatesLine, s],
|
|
896
896
|
{
|
|
@@ -899,12 +899,12 @@ const ht = ["id"], ft = ["id"], yt = ["id"], mt = ["onClick"], gt = {
|
|
|
899
899
|
}
|
|
900
900
|
);
|
|
901
901
|
}
|
|
902
|
-
|
|
902
|
+
La(e);
|
|
903
903
|
return;
|
|
904
904
|
}
|
|
905
|
-
|
|
905
|
+
La(e);
|
|
906
906
|
}
|
|
907
|
-
function
|
|
907
|
+
function bl() {
|
|
908
908
|
y.value.forEach((e, l) => {
|
|
909
909
|
C(
|
|
910
910
|
v.value,
|
|
@@ -919,9 +919,9 @@ const ht = ["id"], ft = ["id"], yt = ["id"], mt = ["onClick"], gt = {
|
|
|
919
919
|
);
|
|
920
920
|
});
|
|
921
921
|
}
|
|
922
|
-
function
|
|
923
|
-
const { left: e, top: l, width: t, height: r } = o.value, s = u.value.start, n = u.value.end - s, f = t / n, x =
|
|
924
|
-
|
|
922
|
+
function xl() {
|
|
923
|
+
const { left: e, top: l, width: t, height: r } = o.value, s = u.value.start, n = u.value.end - s, f = t / n, x = I.value.start - s, A = I.value.end - s, k = Math.max(0, Math.min(n, x)), _ = Math.max(0, Math.min(n, A));
|
|
924
|
+
Re(
|
|
925
925
|
v.value,
|
|
926
926
|
[
|
|
927
927
|
{ x: e + k * f, y: l },
|
|
@@ -938,11 +938,11 @@ const ht = ["id"], ft = ["id"], yt = ["id"], mt = ["onClick"], gt = {
|
|
|
938
938
|
);
|
|
939
939
|
}
|
|
940
940
|
function Z() {
|
|
941
|
-
!
|
|
942
|
-
(e.type === "line" || !e.type) &&
|
|
943
|
-
}), S.value && (we.value =
|
|
941
|
+
!U.value || !S.value || !v.value || (rl(), D.value ? ((h.value !== null || w.value !== null) && a.value.style.chart.selector.show && xa(), yl(), c.value.stacked && a.value.style.chart.grid.x.showAxis && bl(), sl.value.forEach((e) => {
|
|
942
|
+
(e.type === "line" || !e.type) && pl(e), X.value && (nl(e), c.value.showDataLabels && [!0, void 0].includes(e.dataLabels) && cl(e));
|
|
943
|
+
}), S.value && (we.value = Zl(S.value))) : (we.value && (v.value.clearRect(0, 0, 1e4, 1e4), v.value.drawImage(we.value, 0, 0)), (h.value !== null || w.value !== null) && a.value.style.chart.selector.show && xa(), (h.value !== null || w.value !== null) && y.value.forEach((e) => {
|
|
944
944
|
const l = h.value ?? w.value, t = e.coordinatesLine[l];
|
|
945
|
-
(e.type === "line" || !e.type || e.type === "plot") && t && Number.isFinite(t.x) && Number.isFinite(t.y) &&
|
|
945
|
+
(e.type === "line" || !e.type || e.type === "plot") && t && Number.isFinite(t.x) && Number.isFinite(t.y) && Ze(
|
|
946
946
|
v.value,
|
|
947
947
|
{ x: t.x, y: t.y },
|
|
948
948
|
m.value / 150 * a.value.style.chart.line.plots.radiusRatio,
|
|
@@ -951,34 +951,34 @@ const ht = ["id"], ft = ["id"], yt = ["id"], mt = ["onClick"], gt = {
|
|
|
951
951
|
fillStyle: e.color
|
|
952
952
|
}
|
|
953
953
|
);
|
|
954
|
-
})), a.value.style.chart.grid.x.timeLabels.show &&
|
|
954
|
+
})), a.value.style.chart.grid.x.timeLabels.show && hl(), a.value.style.chart.selector.show && a.value.style.chart.selector.showHorizontalSelector && fl(), vl(), il(), a.value.style.chart.zoom.preview.enable && (u.value.start !== I.value.start || u.value.end !== I.value.end) && xl(), D.value = !1);
|
|
955
955
|
}
|
|
956
|
-
const $e =
|
|
957
|
-
|
|
958
|
-
},
|
|
956
|
+
const $e = jl(() => {
|
|
957
|
+
X.value = !0, Me();
|
|
958
|
+
}, O.value > 200 ? 10 : 1, !X.value);
|
|
959
959
|
function fe(e) {
|
|
960
960
|
if ([null, void 0].includes(h.value ?? w.value) || !e.coordinatesLine[h.value ?? w.value]) return !1;
|
|
961
961
|
const { y: l, value: t } = e.coordinatesLine[h.value ?? w.value];
|
|
962
962
|
return { y: l, value: t };
|
|
963
963
|
}
|
|
964
|
-
function
|
|
965
|
-
if (!
|
|
964
|
+
function Ll(e) {
|
|
965
|
+
if (!U.value || !S.value) return;
|
|
966
966
|
const { left: l, top: t } = S.value.getBoundingClientRect(), r = e.clientX - l;
|
|
967
967
|
if (E.value = (e.clientY - t) * 2, (E.value < o.value.top || E.value > o.value.bottom) && (E.value = null), r * 2 < o.value.left || r * 2 > o.value.right) {
|
|
968
968
|
ne.value = !1, h.value = null;
|
|
969
969
|
return;
|
|
970
970
|
}
|
|
971
971
|
const s = r * 2 - o.value.left;
|
|
972
|
-
if (h.value = Math.floor(s / o.value.slot), ne.value = !0, !
|
|
972
|
+
if (h.value = Math.floor(s / o.value.slot), ne.value = !0, !X.value) return;
|
|
973
973
|
let i = "";
|
|
974
974
|
const n = a.value.style.chart.tooltip.customFormat, f = y.value.map((x) => ({
|
|
975
975
|
shape: x.shape || null,
|
|
976
976
|
name: x.name,
|
|
977
977
|
color: x.color,
|
|
978
978
|
type: x.type || "line",
|
|
979
|
-
value: x.series.find((
|
|
979
|
+
value: x.series.find((A, k) => k === h.value)
|
|
980
980
|
}));
|
|
981
|
-
|
|
981
|
+
kl({ seriesIndex: h.value, datapoint: f }), Ea(n) && ql(() => n({
|
|
982
982
|
seriesIndex: h.value,
|
|
983
983
|
datapoint: f,
|
|
984
984
|
series: y.value,
|
|
@@ -988,59 +988,59 @@ const ht = ["id"], ft = ["id"], yt = ["id"], mt = ["onClick"], gt = {
|
|
|
988
988
|
datapoint: f,
|
|
989
989
|
series: y.value,
|
|
990
990
|
config: a.value
|
|
991
|
-
}) : (a.value.style.chart.grid.x.timeLabels.values.slice(u.value.start, u.value.end)[h.value] ? i += `<div style="padding-bottom: 6px; margin-bottom: 4px; border-bottom: 1px solid ${a.value.style.chart.tooltip.borderColor}; width:100%">${a.value.style.chart.tooltip.useDefaultTimeFormat ? N.value.slice(u.value.start, u.value.end)[h.value]?.text :
|
|
991
|
+
}) : (a.value.style.chart.grid.x.timeLabels.values.slice(u.value.start, u.value.end)[h.value] ? i += `<div style="padding-bottom: 6px; margin-bottom: 4px; border-bottom: 1px solid ${a.value.style.chart.tooltip.borderColor}; width:100%">${a.value.style.chart.tooltip.useDefaultTimeFormat ? N.value.slice(u.value.start, u.value.end)[h.value]?.text : dl.value[h.value]?.text}</div>` : i += `<div style="padding-bottom: 6px; margin-bottom: 4px; border-bottom: 1px solid ${a.value.style.chart.tooltip.borderColor}; width:100%">${N.value[h.value + u.value.start]?.text ?? ""}</div>`, i += Ka.value.join(""), Ce.value = i), X.value = !1;
|
|
992
992
|
}
|
|
993
|
-
function
|
|
993
|
+
function kl({ seriesIndex: e, datapoint: l }) {
|
|
994
994
|
const t = u.value.start + e;
|
|
995
|
-
|
|
995
|
+
Ne("selectX", {
|
|
996
996
|
dataset: l,
|
|
997
997
|
index: t,
|
|
998
998
|
indexLabel: ""
|
|
999
999
|
});
|
|
1000
1000
|
}
|
|
1001
|
-
|
|
1001
|
+
P(() => p.selectedXIndex, (e) => {
|
|
1002
1002
|
if ([null, void 0].includes(p.selectedXIndex)) {
|
|
1003
1003
|
h.value = null;
|
|
1004
1004
|
return;
|
|
1005
1005
|
}
|
|
1006
1006
|
const l = e - u.value.start;
|
|
1007
1007
|
l < 0 || e >= u.value.end ? h.value = null : h.value = l ?? null;
|
|
1008
|
-
}, { immediate: !0 }),
|
|
1008
|
+
}, { immediate: !0 }), P(() => h.value, (e) => {
|
|
1009
1009
|
$e();
|
|
1010
|
-
}),
|
|
1010
|
+
}), P(() => u.value, (e) => {
|
|
1011
1011
|
D.value = !0, Z();
|
|
1012
1012
|
}, {
|
|
1013
1013
|
deep: !0
|
|
1014
|
-
}),
|
|
1014
|
+
}), P(() => I.value, (e) => {
|
|
1015
1015
|
Z();
|
|
1016
|
-
}, { deep: !0 }),
|
|
1016
|
+
}, { deep: !0 }), P(() => c.value.showDataLabels, (e) => {
|
|
1017
1017
|
D.value = !0, Z();
|
|
1018
|
-
}),
|
|
1018
|
+
}), P(() => E.value, (e) => {
|
|
1019
1019
|
e && Z();
|
|
1020
|
-
}),
|
|
1021
|
-
D.value = !0,
|
|
1020
|
+
}), P(() => c.value.stacked, (e) => {
|
|
1021
|
+
D.value = !0, X.value = !0, $e();
|
|
1022
1022
|
});
|
|
1023
|
-
function
|
|
1023
|
+
function Cl() {
|
|
1024
1024
|
ne.value = !1, h.value = null, Ce.value = "", E.value = null, Z();
|
|
1025
1025
|
}
|
|
1026
1026
|
const j = Ye(null), oe = Ye(null), ue = Ye(null);
|
|
1027
|
-
|
|
1028
|
-
|
|
1027
|
+
Aa(() => {
|
|
1028
|
+
ta.value = !0, ka();
|
|
1029
1029
|
});
|
|
1030
|
-
function
|
|
1031
|
-
if (
|
|
1032
|
-
S.value && !v.value && (v.value = S.value.getContext("2d", { willReadFrequently: !0 })), v.value &&
|
|
1030
|
+
function ka() {
|
|
1031
|
+
if (Bl(p.dataset) && qa.value && Wl({ componentName: "VueUiXyCanvas", type: "dataset" }), be(() => {
|
|
1032
|
+
S.value && !v.value && (v.value = S.value.getContext("2d", { willReadFrequently: !0 })), v.value && U.value && (D.value = !0, X.value = !0, Me());
|
|
1033
1033
|
}), a.value.responsive) {
|
|
1034
|
-
const e =
|
|
1035
|
-
const { width: l, height: t } =
|
|
1034
|
+
const e = Jl(() => {
|
|
1035
|
+
const { width: l, height: t } = Ql({
|
|
1036
1036
|
chart: H.value,
|
|
1037
|
-
title: a.value.style.chart.title.text ?
|
|
1038
|
-
legend: a.value.style.chart.legend.show ?
|
|
1039
|
-
slicer: a.value.style.chart.zoom.show &&
|
|
1040
|
-
source:
|
|
1037
|
+
title: a.value.style.chart.title.text ? ea.value : null,
|
|
1038
|
+
legend: a.value.style.chart.legend.show ? aa.value : null,
|
|
1039
|
+
slicer: a.value.style.chart.zoom.show && O.value > 6 ? q.value?.$el : null,
|
|
1040
|
+
source: la.value
|
|
1041
1041
|
});
|
|
1042
1042
|
requestAnimationFrame(() => {
|
|
1043
|
-
|
|
1043
|
+
ra.value = `${l} / ${t}`;
|
|
1044
1044
|
});
|
|
1045
1045
|
});
|
|
1046
1046
|
j.value && (oe.value && j.value.unobserve(oe.value), j.value.disconnect()), j.value = new ResizeObserver(e), oe.value = H.value.parentNode, j.value.observe(oe.value);
|
|
@@ -1050,36 +1050,50 @@ const ht = ["id"], ft = ["id"], yt = ["id"], mt = ["onClick"], gt = {
|
|
|
1050
1050
|
l.contentBoxSize && le.value && (D.value = !0, $e());
|
|
1051
1051
|
}), ue.value.observe(le.value), he();
|
|
1052
1052
|
}
|
|
1053
|
-
|
|
1053
|
+
Fa(() => {
|
|
1054
1054
|
ue.value && ue.value.disconnect(), j.value && (oe.value && j.value.unobserve(oe.value), j.value.disconnect());
|
|
1055
1055
|
});
|
|
1056
|
-
function
|
|
1057
|
-
|
|
1056
|
+
function Ie(e) {
|
|
1057
|
+
Ne("selectLegend", y.value.find((l) => l.absoluteIndex === e)), $.value.includes(e) ? $.value = $.value.filter((l) => l !== e) : $.value.push(e), D.value = !0, $e();
|
|
1058
|
+
}
|
|
1059
|
+
function Ca(e) {
|
|
1060
|
+
if (!F.value.length)
|
|
1061
|
+
return a.value.debug && console.warn("VueUiXyCanvas - There are no series to show."), null;
|
|
1062
|
+
const l = F.value.find((t) => t.name === e);
|
|
1063
|
+
return l || (a.value.debug && console.warn(`VueUiXyCanvas - Series name not found "${e}"`), null);
|
|
1064
|
+
}
|
|
1065
|
+
function wl(e) {
|
|
1066
|
+
const l = Ca(e);
|
|
1067
|
+
l !== null && $.value.includes(l.absoluteIndex) && Ie(l.absoluteIndex);
|
|
1068
|
+
}
|
|
1069
|
+
function Sl(e) {
|
|
1070
|
+
const l = Ca(e);
|
|
1071
|
+
l !== null && ($.value.includes(l.absoluteIndex) || Ie(l.absoluteIndex));
|
|
1058
1072
|
}
|
|
1059
|
-
const
|
|
1073
|
+
const wa = g(() => F.value.map((e, l) => ({
|
|
1060
1074
|
...e,
|
|
1061
1075
|
name: e.name,
|
|
1062
|
-
color:
|
|
1076
|
+
color: Da(e.color) || ha.value[l] || ae[l] || ae[l % ae.length],
|
|
1063
1077
|
shape: e.shape || "circle",
|
|
1064
1078
|
prefix: e.prefix || "",
|
|
1065
1079
|
suffix: e.suffix || "",
|
|
1066
1080
|
rounding: e.rounding || 0
|
|
1067
1081
|
})).map((e) => ({
|
|
1068
1082
|
...e,
|
|
1069
|
-
opacity:
|
|
1070
|
-
segregate: () =>
|
|
1071
|
-
isSegregated:
|
|
1072
|
-
}))),
|
|
1083
|
+
opacity: $.value.includes(e.absoluteIndex) ? 0.5 : 1,
|
|
1084
|
+
segregate: () => Ie(e.absoluteIndex),
|
|
1085
|
+
isSegregated: $.value.includes(e.absoluteIndex)
|
|
1086
|
+
}))), zl = g(() => ({
|
|
1073
1087
|
cy: "donut-div-legend",
|
|
1074
1088
|
backgroundColor: a.value.style.chart.legend.backgroundColor,
|
|
1075
1089
|
color: a.value.style.chart.legend.color,
|
|
1076
1090
|
fontSize: a.value.style.chart.legend.fontSize,
|
|
1077
1091
|
paddingBottom: 12,
|
|
1078
1092
|
fontWeight: a.value.style.chart.legend.bold ? "bold" : ""
|
|
1079
|
-
})),
|
|
1093
|
+
})), Te = g(() => {
|
|
1080
1094
|
const e = [""].concat(y.value.map((s) => s.name)).concat(' <svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 24 24" stroke-width="1.5" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><path stroke="none" d="M0 0h24v24H0z" fill="none"/><path d="M18 16v2a1 1 0 0 1 -1 1h-11l6 -7l-6 -7h11a1 1 0 0 1 1 1v2" /></svg>');
|
|
1081
1095
|
let l = [];
|
|
1082
|
-
for (let s = 0; s <
|
|
1096
|
+
for (let s = 0; s < O.value; s += 1) {
|
|
1083
1097
|
const i = y.value.map((n) => n.series[s] ?? 0).reduce((n, f) => n + f, 0);
|
|
1084
1098
|
l.push([a.value.style.chart.grid.x.timeLabels.values.slice(u.value.start, u.value.end)[s] ? N.value.slice(u.value.start, u.value.end)[s].text : s + 1].concat(y.value.map((n) => (n.series[s] ?? 0).toFixed(a.value.table.rounding))).concat((i ?? 0).toFixed(a.value.table.rounding)));
|
|
1085
1099
|
}
|
|
@@ -1097,7 +1111,7 @@ const ht = ["id"], ft = ["id"], yt = ["id"], mt = ["onClick"], gt = {
|
|
|
1097
1111
|
breakpoint: a.value.table.responsiveBreakpoint
|
|
1098
1112
|
}, r = [a.value.table.columnNames.period].concat(y.value.map((s) => s.name)).concat(a.value.table.columnNames.total);
|
|
1099
1113
|
return { head: e, body: l.slice(0, u.value.end - u.value.start), config: t, colNames: r };
|
|
1100
|
-
}),
|
|
1114
|
+
}), Sa = g(() => {
|
|
1101
1115
|
if (y.value.length === 0) return { head: [], body: [], config: {}, columnNames: [] };
|
|
1102
1116
|
const e = y.value.map((t) => ({
|
|
1103
1117
|
label: t.name,
|
|
@@ -1112,32 +1126,32 @@ const ht = ["id"], ft = ["id"], yt = ["id"], mt = ["onClick"], gt = {
|
|
|
1112
1126
|
}
|
|
1113
1127
|
return { head: e, body: l };
|
|
1114
1128
|
});
|
|
1115
|
-
function
|
|
1116
|
-
const l = [[a.value.style.chart.title.text], [a.value.style.chart.title.subtitle.text], [""]], t = ["", ...
|
|
1117
|
-
e ? e(i) :
|
|
1129
|
+
function We(e = null) {
|
|
1130
|
+
const l = [[a.value.style.chart.title.text], [a.value.style.chart.title.subtitle.text], [""]], t = ["", ...Sa.value.head.map((n) => n.label)], r = Sa.value.body, s = l.concat([t]).concat(r), i = Yl(s);
|
|
1131
|
+
e ? e(i) : Gl({ csvContent: i, title: a.value.style.chart.title.text || "vue-ui-xy-canvas" });
|
|
1118
1132
|
}
|
|
1119
|
-
function
|
|
1133
|
+
function Ml() {
|
|
1120
1134
|
return y.value;
|
|
1121
1135
|
}
|
|
1122
|
-
function
|
|
1136
|
+
function za() {
|
|
1123
1137
|
c.value.showTable = !c.value.showTable;
|
|
1124
1138
|
}
|
|
1125
|
-
function
|
|
1139
|
+
function Ma() {
|
|
1126
1140
|
c.value.showDataLabels = !c.value.showDataLabels;
|
|
1127
1141
|
}
|
|
1128
|
-
function
|
|
1142
|
+
function $a() {
|
|
1129
1143
|
c.value.stacked = !c.value.stacked;
|
|
1130
1144
|
}
|
|
1131
|
-
function
|
|
1145
|
+
function Ia() {
|
|
1132
1146
|
c.value.showTooltip = !c.value.showTooltip;
|
|
1133
1147
|
}
|
|
1134
|
-
const
|
|
1135
|
-
function
|
|
1136
|
-
|
|
1148
|
+
const Ae = d(!1);
|
|
1149
|
+
function Ve() {
|
|
1150
|
+
Ae.value = !Ae.value;
|
|
1137
1151
|
}
|
|
1138
|
-
async function
|
|
1152
|
+
async function $l({ scale: e = 2 } = {}) {
|
|
1139
1153
|
if (!H.value) return;
|
|
1140
|
-
const { width: l, height: t } = H.value.getBoundingClientRect(), r = l / t, { imageUri: s, base64: i } = await
|
|
1154
|
+
const { width: l, height: t } = H.value.getBoundingClientRect(), r = l / t, { imageUri: s, base64: i } = await nt({ domElement: H.value, base64: !0, img: !0, scale: e });
|
|
1141
1155
|
return {
|
|
1142
1156
|
imageUri: s,
|
|
1143
1157
|
base64: i,
|
|
@@ -1150,7 +1164,7 @@ const ht = ["id"], ft = ["id"], yt = ["id"], mt = ["onClick"], gt = {
|
|
|
1150
1164
|
const ye = g(() => {
|
|
1151
1165
|
const e = a.value.table.useDialog && !a.value.table.show, l = c.value.showTable;
|
|
1152
1166
|
return {
|
|
1153
|
-
component: e ?
|
|
1167
|
+
component: e ? Va : ht,
|
|
1154
1168
|
title: `${a.value.style.chart.title.text}${a.value.style.chart.title.subtitle.text ? `: ${a.value.style.chart.title.subtitle.text}` : ""}`,
|
|
1155
1169
|
props: e ? {
|
|
1156
1170
|
backgroundColor: a.value.table.th.backgroundColor,
|
|
@@ -1177,41 +1191,43 @@ const ht = ["id"], ft = ["id"], yt = ["id"], mt = ["onClick"], gt = {
|
|
|
1177
1191
|
}
|
|
1178
1192
|
};
|
|
1179
1193
|
});
|
|
1180
|
-
|
|
1194
|
+
P(() => c.value.showTable, (e) => {
|
|
1181
1195
|
a.value.table.show || (e && a.value.table.useDialog && ve.value ? ve.value.open() : "close" in ve.value && ve.value.close());
|
|
1182
1196
|
});
|
|
1183
|
-
function
|
|
1184
|
-
c.value.showTable = !1,
|
|
1197
|
+
function Ta() {
|
|
1198
|
+
c.value.showTable = !1, Ee.value && Ee.value.setTableIconState(!1);
|
|
1185
1199
|
}
|
|
1186
|
-
return
|
|
1187
|
-
getData:
|
|
1188
|
-
getImage:
|
|
1189
|
-
generateCsv:
|
|
1190
|
-
generatePdf:
|
|
1191
|
-
generateImage:
|
|
1192
|
-
|
|
1193
|
-
|
|
1194
|
-
|
|
1195
|
-
|
|
1196
|
-
|
|
1197
|
-
|
|
1198
|
-
|
|
1200
|
+
return _a({
|
|
1201
|
+
getData: Ml,
|
|
1202
|
+
getImage: $l,
|
|
1203
|
+
generateCsv: We,
|
|
1204
|
+
generatePdf: va,
|
|
1205
|
+
generateImage: ca,
|
|
1206
|
+
hideSeries: Sl,
|
|
1207
|
+
showSeries: wl,
|
|
1208
|
+
toggleTable: za,
|
|
1209
|
+
toggleLabels: Ma,
|
|
1210
|
+
toggleStack: $a,
|
|
1211
|
+
toggleTooltip: Ia,
|
|
1212
|
+
toggleAnnotator: Ve,
|
|
1213
|
+
toggleFullscreen: da
|
|
1214
|
+
}), (e, l) => (R(), Fe("div", {
|
|
1199
1215
|
style: xe(`width:100%; position:relative; ${a.value.responsive ? "height: 100%" : ""}; background:${a.value.style.chart.backgroundColor};`),
|
|
1200
1216
|
ref_key: "xy",
|
|
1201
1217
|
ref: H,
|
|
1202
1218
|
id: `xy_canvas_${Q.value}`,
|
|
1203
|
-
class:
|
|
1204
|
-
onMouseenter:
|
|
1205
|
-
onMouseleave:
|
|
1219
|
+
class: Fl(`vue-data-ui-component vue-ui-xy-canvas ${ie.value ? "vue-data-ui-wrapper-fullscreen" : ""}`),
|
|
1220
|
+
onMouseenter: Za,
|
|
1221
|
+
onMouseleave: ja
|
|
1206
1222
|
}, [
|
|
1207
|
-
a.value.style.chart.title.text ? (
|
|
1223
|
+
a.value.style.chart.title.text ? (R(), Fe("div", {
|
|
1208
1224
|
key: 0,
|
|
1209
1225
|
ref_key: "chartTitle",
|
|
1210
|
-
ref:
|
|
1226
|
+
ref: ea,
|
|
1211
1227
|
style: xe(`width:100%;background:${a.value.style.chart.backgroundColor};`)
|
|
1212
1228
|
}, [
|
|
1213
|
-
(
|
|
1214
|
-
key: `title_${
|
|
1229
|
+
(R(), V(ct, {
|
|
1230
|
+
key: `title_${Oe.value}`,
|
|
1215
1231
|
config: {
|
|
1216
1232
|
title: {
|
|
1217
1233
|
cy: "xy-canvas-title",
|
|
@@ -1226,22 +1242,22 @@ const ht = ["id"], ft = ["id"], yt = ["id"], mt = ["onClick"], gt = {
|
|
|
1226
1242
|
], 4)) : W("", !0),
|
|
1227
1243
|
J("div", {
|
|
1228
1244
|
id: `legend-top-${Q.value}`
|
|
1229
|
-
}, null, 8,
|
|
1230
|
-
a.value.userOptions.show &&
|
|
1245
|
+
}, null, 8, gt),
|
|
1246
|
+
a.value.userOptions.show && U.value && (L(sa) || L(Xe)) ? (R(), V(L(Ba), {
|
|
1231
1247
|
ref_key: "userOptionsRef",
|
|
1232
|
-
ref:
|
|
1233
|
-
key: `user_option_${
|
|
1248
|
+
ref: Ee,
|
|
1249
|
+
key: `user_option_${Ke.value}`,
|
|
1234
1250
|
backgroundColor: a.value.style.chart.backgroundColor,
|
|
1235
1251
|
color: a.value.style.chart.color,
|
|
1236
|
-
isPrinting: L(
|
|
1237
|
-
isImaging: L(
|
|
1252
|
+
isPrinting: L(na),
|
|
1253
|
+
isImaging: L(ia),
|
|
1238
1254
|
uid: Q.value,
|
|
1239
1255
|
hasTooltip: a.value.userOptions.buttons.tooltip && a.value.style.chart.tooltip.show,
|
|
1240
1256
|
hasPdf: a.value.userOptions.buttons.pdf,
|
|
1241
1257
|
hasImg: a.value.userOptions.buttons.img,
|
|
1242
1258
|
hasXls: a.value.userOptions.buttons.csv,
|
|
1243
1259
|
hasLabel: a.value.userOptions.buttons.labels,
|
|
1244
|
-
hasStack:
|
|
1260
|
+
hasStack: Je.dataset.length > 1 && a.value.userOptions.buttons.stack,
|
|
1245
1261
|
hasFullscreen: a.value.userOptions.buttons.fullscreen,
|
|
1246
1262
|
hasTable: u.value.end - u.value.start <= 730 && a.value.userOptions.buttons.table,
|
|
1247
1263
|
isFullscreen: ie.value,
|
|
@@ -1251,23 +1267,23 @@ const ht = ["id"], ft = ["id"], yt = ["id"], mt = ["onClick"], gt = {
|
|
|
1251
1267
|
chartElement: H.value,
|
|
1252
1268
|
position: a.value.userOptions.position,
|
|
1253
1269
|
hasAnnotator: a.value.userOptions.buttons.annotator,
|
|
1254
|
-
isAnnotation:
|
|
1270
|
+
isAnnotation: Ae.value,
|
|
1255
1271
|
callbacks: a.value.userOptions.callbacks,
|
|
1256
1272
|
printScale: a.value.userOptions.print.scale,
|
|
1257
1273
|
tableDialog: a.value.table.useDialog,
|
|
1258
|
-
onToggleFullscreen:
|
|
1259
|
-
onGeneratePdf: L(
|
|
1260
|
-
onGenerateCsv:
|
|
1261
|
-
onGenerateImage: L(
|
|
1262
|
-
onToggleTable:
|
|
1263
|
-
onToggleLabels:
|
|
1264
|
-
onToggleStack:
|
|
1265
|
-
onToggleTooltip:
|
|
1266
|
-
onToggleAnnotator:
|
|
1274
|
+
onToggleFullscreen: da,
|
|
1275
|
+
onGeneratePdf: L(va),
|
|
1276
|
+
onGenerateCsv: We,
|
|
1277
|
+
onGenerateImage: L(ca),
|
|
1278
|
+
onToggleTable: za,
|
|
1279
|
+
onToggleLabels: Ma,
|
|
1280
|
+
onToggleStack: $a,
|
|
1281
|
+
onToggleTooltip: Ia,
|
|
1282
|
+
onToggleAnnotator: Ve,
|
|
1267
1283
|
style: xe({
|
|
1268
|
-
visibility: L(
|
|
1284
|
+
visibility: L(sa) ? L(Xe) ? "visible" : "hidden" : "visible"
|
|
1269
1285
|
})
|
|
1270
|
-
},
|
|
1286
|
+
}, Ra({ _: 2 }, [
|
|
1271
1287
|
e.$slots.menuIcon ? {
|
|
1272
1288
|
name: "menuIcon",
|
|
1273
1289
|
fn: b(({ isOpen: t, color: r }) => [
|
|
@@ -1341,7 +1357,7 @@ const ht = ["id"], ft = ["id"], yt = ["id"], mt = ["onClick"], gt = {
|
|
|
1341
1357
|
]), 1032, ["backgroundColor", "color", "isPrinting", "isImaging", "uid", "hasTooltip", "hasPdf", "hasImg", "hasXls", "hasLabel", "hasStack", "hasFullscreen", "hasTable", "isFullscreen", "isTooltip", "isStacked", "titles", "chartElement", "position", "hasAnnotator", "isAnnotation", "callbacks", "printScale", "tableDialog", "onGeneratePdf", "onGenerateImage", "style"])) : W("", !0),
|
|
1342
1358
|
J("div", {
|
|
1343
1359
|
class: "vue-ui-xy-canvas",
|
|
1344
|
-
style: xe(`position: relative; aspect-ratio: ${
|
|
1360
|
+
style: xe(`position: relative; aspect-ratio: ${ra.value}`),
|
|
1345
1361
|
ref_key: "container",
|
|
1346
1362
|
ref: le
|
|
1347
1363
|
}, [
|
|
@@ -1349,11 +1365,11 @@ const ht = ["id"], ft = ["id"], yt = ["id"], mt = ["onClick"], gt = {
|
|
|
1349
1365
|
ref_key: "canvas",
|
|
1350
1366
|
ref: S,
|
|
1351
1367
|
style: { width: "100%", height: "100%" },
|
|
1352
|
-
onMousemove: l[0] || (l[0] = (t) =>
|
|
1353
|
-
onMouseleave:
|
|
1368
|
+
onMousemove: l[0] || (l[0] = (t) => Ll(t)),
|
|
1369
|
+
onMouseleave: Cl
|
|
1354
1370
|
}, null, 544),
|
|
1355
|
-
L(
|
|
1356
|
-
|
|
1371
|
+
L(_e) ? (R(), V(at, { key: 0 })) : W("", !0),
|
|
1372
|
+
Oa(L(Xa), {
|
|
1357
1373
|
show: c.value.showTooltip && ne.value,
|
|
1358
1374
|
backgroundColor: a.value.style.chart.tooltip.backgroundColor,
|
|
1359
1375
|
color: a.value.style.chart.tooltip.color,
|
|
@@ -1367,26 +1383,26 @@ const ht = ["id"], ft = ["id"], yt = ["id"], mt = ["onClick"], gt = {
|
|
|
1367
1383
|
content: Ce.value,
|
|
1368
1384
|
isFullscreen: ie.value,
|
|
1369
1385
|
backgroundOpacity: a.value.style.chart.tooltip.backgroundOpacity,
|
|
1370
|
-
isCustom: L(
|
|
1386
|
+
isCustom: L(Ea)(a.value.style.chart.tooltip.customFormat),
|
|
1371
1387
|
smooth: a.value.style.chart.tooltip.smooth,
|
|
1372
1388
|
backdropFilter: a.value.style.chart.tooltip.backdropFilter,
|
|
1373
1389
|
smoothForce: a.value.style.chart.tooltip.smoothForce,
|
|
1374
1390
|
smoothSnapThreshold: a.value.style.chart.tooltip.smoothSnapThreshold
|
|
1375
1391
|
}, {
|
|
1376
1392
|
"tooltip-before": b(() => [
|
|
1377
|
-
M(e.$slots, "tooltip-before", K(ee({ ...
|
|
1393
|
+
M(e.$slots, "tooltip-before", K(ee({ ...Qe.value })), void 0, !0)
|
|
1378
1394
|
]),
|
|
1379
1395
|
"tooltip-after": b(() => [
|
|
1380
|
-
M(e.$slots, "tooltip-after", K(ee({ ...
|
|
1396
|
+
M(e.$slots, "tooltip-after", K(ee({ ...Qe.value })), void 0, !0)
|
|
1381
1397
|
]),
|
|
1382
1398
|
_: 3
|
|
1383
1399
|
}, 8, ["show", "backgroundColor", "color", "fontSize", "borderRadius", "borderColor", "borderWidth", "position", "offsetY", "parent", "content", "isFullscreen", "backgroundOpacity", "isCustom", "smooth", "backdropFilter", "smoothForce", "smoothSnapThreshold"])
|
|
1384
1400
|
], 4),
|
|
1385
|
-
a.value.style.chart.zoom.show &&
|
|
1401
|
+
a.value.style.chart.zoom.show && O.value > 6 && U.value && oa.value && !L(_e) ? (R(), V(ft, {
|
|
1386
1402
|
key: 2,
|
|
1387
1403
|
ref_key: "chartSlicer",
|
|
1388
1404
|
ref: q,
|
|
1389
|
-
allMinimaps:
|
|
1405
|
+
allMinimaps: al.value,
|
|
1390
1406
|
background: a.value.style.chart.zoom.color,
|
|
1391
1407
|
borderColor: a.value.style.chart.backgroundColor,
|
|
1392
1408
|
customFormat: a.value.style.chart.zoom.customFormat,
|
|
@@ -1399,12 +1415,12 @@ const ht = ["id"], ft = ["id"], yt = ["id"], mt = ["onClick"], gt = {
|
|
|
1399
1415
|
fontSize: a.value.style.chart.zoom.fontSize,
|
|
1400
1416
|
immediate: !a.value.style.chart.zoom.preview.enable,
|
|
1401
1417
|
inputColor: a.value.style.chart.zoom.color,
|
|
1402
|
-
isPreview:
|
|
1418
|
+
isPreview: tl.value,
|
|
1403
1419
|
labelLeft: a.value.style.chart.grid.x.timeLabels.values[u.value.start] ? N.value[u.value.start].text : "",
|
|
1404
1420
|
labelRight: a.value.style.chart.grid.x.timeLabels.values[u.value.end - 1] ? N.value[u.value.end - 1].text : "",
|
|
1405
|
-
max:
|
|
1421
|
+
max: O.value,
|
|
1406
1422
|
min: 0,
|
|
1407
|
-
minimap:
|
|
1423
|
+
minimap: el.value,
|
|
1408
1424
|
minimapCompact: a.value.style.chart.zoom.minimap.compact,
|
|
1409
1425
|
minimapFrameColor: a.value.style.chart.zoom.minimap.frameColor,
|
|
1410
1426
|
minimapIndicatorColor: a.value.style.chart.zoom.minimap.indicatorColor,
|
|
@@ -1414,11 +1430,11 @@ const ht = ["id"], ft = ["id"], yt = ["id"], mt = ["onClick"], gt = {
|
|
|
1414
1430
|
minimapSelectedColorOpacity: a.value.style.chart.zoom.minimap.selectedColorOpacity,
|
|
1415
1431
|
minimapSelectedIndex: h.value,
|
|
1416
1432
|
minimapSelectionRadius: a.value.style.chart.zoom.minimap.selectionRadius,
|
|
1417
|
-
preciseLabels:
|
|
1418
|
-
refreshEndPoint: a.value.style.chart.zoom.endIndex !== null ? a.value.style.chart.zoom.endIndex + 1 :
|
|
1433
|
+
preciseLabels: ba.value.length ? ba.value : N.value,
|
|
1434
|
+
refreshEndPoint: a.value.style.chart.zoom.endIndex !== null ? a.value.style.chart.zoom.endIndex + 1 : O.value,
|
|
1419
1435
|
refreshStartPoint: a.value.style.chart.zoom.startIndex !== null ? a.value.style.chart.zoom.startIndex : 0,
|
|
1420
1436
|
selectColor: a.value.style.chart.zoom.highlightColor,
|
|
1421
|
-
selectedSeries:
|
|
1437
|
+
selectedSeries: F.value,
|
|
1422
1438
|
smoothMinimap: a.value.style.chart.zoom.minimap.smooth,
|
|
1423
1439
|
start: u.value.start,
|
|
1424
1440
|
timeLabels: N.value,
|
|
@@ -1428,12 +1444,12 @@ const ht = ["id"], ft = ["id"], yt = ["id"], mt = ["onClick"], gt = {
|
|
|
1428
1444
|
valueEnd: u.value.end,
|
|
1429
1445
|
valueStart: u.value.start,
|
|
1430
1446
|
verticalHandles: a.value.style.chart.zoom.minimap.verticalHandles,
|
|
1431
|
-
onFutureEnd: l[1] || (l[1] = (t) =>
|
|
1432
|
-
onFutureStart: l[2] || (l[2] = (t) =>
|
|
1447
|
+
onFutureEnd: l[1] || (l[1] = (t) => ya("end", t)),
|
|
1448
|
+
onFutureStart: l[2] || (l[2] = (t) => ya("start", t)),
|
|
1433
1449
|
onReset: he,
|
|
1434
|
-
onTrapMouse:
|
|
1435
|
-
"onUpdate:end":
|
|
1436
|
-
"onUpdate:start":
|
|
1450
|
+
onTrapMouse: Ja,
|
|
1451
|
+
"onUpdate:end": ul,
|
|
1452
|
+
"onUpdate:start": ol
|
|
1437
1453
|
}, {
|
|
1438
1454
|
"reset-action": b(({ reset: t }) => [
|
|
1439
1455
|
M(e.$slots, "reset-action", K(ee({ reset: t })), void 0, !0)
|
|
@@ -1442,66 +1458,66 @@ const ht = ["id"], ft = ["id"], yt = ["id"], mt = ["onClick"], gt = {
|
|
|
1442
1458
|
}, 8, ["allMinimaps", "background", "borderColor", "customFormat", "cutNullValues", "enableRangeHandles", "enableSelectionDrag", "end", "focusOnDrag", "focusRangeRatio", "fontSize", "immediate", "inputColor", "isPreview", "labelLeft", "labelRight", "max", "minimap", "minimapCompact", "minimapFrameColor", "minimapIndicatorColor", "minimapLineColor", "minimapMerged", "minimapSelectedColor", "minimapSelectedColorOpacity", "minimapSelectedIndex", "minimapSelectionRadius", "preciseLabels", "refreshEndPoint", "refreshStartPoint", "selectColor", "selectedSeries", "smoothMinimap", "start", "timeLabels", "usePreciseLabels", "textColor", "useResetSlot", "valueEnd", "valueStart", "verticalHandles"])) : W("", !0),
|
|
1443
1459
|
J("div", {
|
|
1444
1460
|
id: `legend-bottom-${Q.value}`
|
|
1445
|
-
}, null, 8,
|
|
1446
|
-
|
|
1461
|
+
}, null, 8, pt),
|
|
1462
|
+
ta.value ? (R(), V(Rl, {
|
|
1447
1463
|
key: 3,
|
|
1448
1464
|
to: a.value.style.chart.legend.position === "top" ? `#legend-top-${Q.value}` : `#legend-bottom-${Q.value}`
|
|
1449
1465
|
}, [
|
|
1450
1466
|
J("div", {
|
|
1451
1467
|
ref_key: "chartLegend",
|
|
1452
|
-
ref:
|
|
1468
|
+
ref: aa
|
|
1453
1469
|
}, [
|
|
1454
|
-
a.value.style.chart.legend.show &&
|
|
1455
|
-
legendSet:
|
|
1456
|
-
config:
|
|
1457
|
-
key: `legend_${
|
|
1458
|
-
onClickMarker: l[3] || (l[3] = ({ i: t }) =>
|
|
1470
|
+
a.value.style.chart.legend.show && U.value ? (R(), V(vt, {
|
|
1471
|
+
legendSet: wa.value,
|
|
1472
|
+
config: zl.value,
|
|
1473
|
+
key: `legend_${De.value}`,
|
|
1474
|
+
onClickMarker: l[3] || (l[3] = ({ i: t }) => Ie(t))
|
|
1459
1475
|
}, {
|
|
1460
1476
|
item: b(({ legend: t, index: r }) => [
|
|
1461
1477
|
J("div", {
|
|
1462
1478
|
onClick: (s) => t.segregate(),
|
|
1463
|
-
style: xe(`opacity:${
|
|
1464
|
-
},
|
|
1479
|
+
style: xe(`opacity:${$.value.includes(r) ? 0.5 : 1}`)
|
|
1480
|
+
}, Ge(t.name), 13, bt)
|
|
1465
1481
|
]),
|
|
1466
1482
|
_: 1
|
|
1467
1483
|
}, 8, ["legendSet", "config"])) : M(e.$slots, "legend", {
|
|
1468
1484
|
key: 1,
|
|
1469
|
-
legend:
|
|
1485
|
+
legend: wa.value
|
|
1470
1486
|
}, void 0, !0)
|
|
1471
1487
|
], 512)
|
|
1472
1488
|
], 8, ["to"])) : W("", !0),
|
|
1473
|
-
e.$slots.watermark ? (
|
|
1474
|
-
M(e.$slots, "watermark", K(ee({ isPrinting: L(
|
|
1489
|
+
e.$slots.watermark ? (R(), Fe("div", xt, [
|
|
1490
|
+
M(e.$slots, "watermark", K(ee({ isPrinting: L(na) || L(ia) })), void 0, !0)
|
|
1475
1491
|
])) : W("", !0),
|
|
1476
|
-
e.$slots.source ? (
|
|
1492
|
+
e.$slots.source ? (R(), Fe("div", {
|
|
1477
1493
|
key: 5,
|
|
1478
1494
|
ref_key: "source",
|
|
1479
|
-
ref:
|
|
1495
|
+
ref: la,
|
|
1480
1496
|
dir: "auto"
|
|
1481
1497
|
}, [
|
|
1482
1498
|
M(e.$slots, "source", {}, void 0, !0)
|
|
1483
1499
|
], 512)) : W("", !0),
|
|
1484
|
-
|
|
1500
|
+
U.value && a.value.userOptions.buttons.table ? (R(), V(Ol(ye.value.component), Pl({ key: 6 }, ye.value.props, {
|
|
1485
1501
|
ref_key: "tableUnit",
|
|
1486
1502
|
ref: ve,
|
|
1487
|
-
onClose:
|
|
1488
|
-
}),
|
|
1503
|
+
onClose: Ta
|
|
1504
|
+
}), Ra({
|
|
1489
1505
|
content: b(() => [
|
|
1490
|
-
(
|
|
1491
|
-
key: `table_${
|
|
1492
|
-
colNames:
|
|
1493
|
-
head:
|
|
1494
|
-
body:
|
|
1495
|
-
config:
|
|
1506
|
+
(R(), V(L(Ua), {
|
|
1507
|
+
key: `table_${Pe.value}`,
|
|
1508
|
+
colNames: Te.value.colNames,
|
|
1509
|
+
head: Te.value.head,
|
|
1510
|
+
body: Te.value.body,
|
|
1511
|
+
config: Te.value.config,
|
|
1496
1512
|
title: a.value.table.useDialog ? "" : ye.value.title,
|
|
1497
1513
|
withCloseButton: !a.value.table.useDialog,
|
|
1498
|
-
onClose:
|
|
1514
|
+
onClose: Ta
|
|
1499
1515
|
}, {
|
|
1500
1516
|
th: b(({ th: t }) => [
|
|
1501
|
-
J("div", { innerHTML: t }, null, 8,
|
|
1517
|
+
J("div", { innerHTML: t }, null, 8, Lt)
|
|
1502
1518
|
]),
|
|
1503
1519
|
td: b(({ td: t }) => [
|
|
1504
|
-
|
|
1520
|
+
Pa(Ge(t), 1)
|
|
1505
1521
|
]),
|
|
1506
1522
|
_: 1
|
|
1507
1523
|
}, 8, ["colNames", "head", "body", "config", "title", "withCloseButton"]))
|
|
@@ -1511,7 +1527,7 @@ const ht = ["id"], ft = ["id"], yt = ["id"], mt = ["onClick"], gt = {
|
|
|
1511
1527
|
a.value.table.useDialog ? {
|
|
1512
1528
|
name: "title",
|
|
1513
1529
|
fn: b(() => [
|
|
1514
|
-
|
|
1530
|
+
Pa(Ge(ye.value.title), 1)
|
|
1515
1531
|
]),
|
|
1516
1532
|
key: "0"
|
|
1517
1533
|
} : void 0,
|
|
@@ -1521,9 +1537,9 @@ const ht = ["id"], ft = ["id"], yt = ["id"], mt = ["onClick"], gt = {
|
|
|
1521
1537
|
J("button", {
|
|
1522
1538
|
tabindex: "0",
|
|
1523
1539
|
class: "vue-ui-user-options-button",
|
|
1524
|
-
onClick: l[4] || (l[4] = (t) =>
|
|
1540
|
+
onClick: l[4] || (l[4] = (t) => We(a.value.userOptions.callbacks.csv))
|
|
1525
1541
|
}, [
|
|
1526
|
-
|
|
1542
|
+
Oa(dt, {
|
|
1527
1543
|
name: "excel",
|
|
1528
1544
|
stroke: ye.value.props.color
|
|
1529
1545
|
}, null, 8, ["stroke"])
|
|
@@ -1532,17 +1548,17 @@ const ht = ["id"], ft = ["id"], yt = ["id"], mt = ["onClick"], gt = {
|
|
|
1532
1548
|
key: "1"
|
|
1533
1549
|
} : void 0
|
|
1534
1550
|
]), 1040)) : W("", !0),
|
|
1535
|
-
a.value.userOptions.buttons.annotator && y.value.length ? (
|
|
1551
|
+
a.value.userOptions.buttons.annotator && y.value.length ? (R(), V(L(Wa), {
|
|
1536
1552
|
key: 7,
|
|
1537
1553
|
parent: H.value,
|
|
1538
1554
|
backgroundColor: a.value.style.chart.backgroundColor,
|
|
1539
1555
|
color: a.value.style.chart.color,
|
|
1540
|
-
active:
|
|
1541
|
-
onClose:
|
|
1556
|
+
active: Ae.value,
|
|
1557
|
+
onClose: Ve
|
|
1542
1558
|
}, null, 8, ["parent", "backgroundColor", "color", "active"])) : W("", !0)
|
|
1543
|
-
], 46,
|
|
1559
|
+
], 46, mt));
|
|
1544
1560
|
}
|
|
1545
|
-
},
|
|
1561
|
+
}, Ht = /* @__PURE__ */ yt(kt, [["__scopeId", "data-v-ab4f23de"]]);
|
|
1546
1562
|
export {
|
|
1547
|
-
|
|
1563
|
+
Ht as default
|
|
1548
1564
|
};
|