vue-data-ui 3.0.0-next.7 → 3.0.0-next.71
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-Bl8urcli.js → Arrow-BZNpld6u.js} +1 -1
- package/dist/{BaseDraggableDialog-CyhpaZU5.js → BaseDraggableDialog-kg-eVvXZ.js} +2 -2
- package/dist/{BaseIcon-BCZfTCeM.js → BaseIcon-BdOEhJar.js} +1 -1
- package/dist/{ColorPicker-CSJf42vx.js → ColorPicker-CWvXlPxS.js} +2 -2
- package/dist/{DataTable-mQ6Wd-rR.js → DataTable-B3yakHEM.js} +2 -2
- package/dist/{Legend-B2hrDh4G.js → Legend-DiGLrlzP.js} +2 -2
- package/dist/{NonSvgPenAndPaper-DQ8KsK4W.js → NonSvgPenAndPaper-C-ZjpJQd.js} +3 -3
- package/dist/{PackageVersion-CeEYZfaH.js → PackageVersion-6s4eI8W7.js} +1 -1
- package/dist/{PenAndPaper-DhSxfUrQ.js → PenAndPaper-JoUN7Ink.js} +3 -3
- package/dist/{Shape-C2qH26wh.js → Shape-CWIa2nta.js} +43 -37
- package/dist/Slicer-DYuvPkEM.js +602 -0
- package/dist/{SparkTooltip-BcHgW6YX.js → SparkTooltip-C_fUmbP7.js} +1 -1
- package/dist/{Title-B7Xb3YuE.js → Title-VLWyIYrj.js} +1 -1
- package/dist/{Tooltip-BidRoM5E.js → Tooltip-BS5naLS2.js} +23 -19
- package/dist/{UserOptions-0tvMM8PF.js → UserOptions-BV_xM-sB.js} +2 -2
- package/dist/{dom-to-png-CTrlbKHr.js → dom-to-png-PUk0ukSG.js} +1 -1
- package/dist/{img-D72yZNUg.js → img-DD_2wgY3.js} +1 -1
- package/dist/{index-Cg-RjxqH.js → index-DKpp7RIH.js} +2236 -1505
- package/dist/{pdf-DgX01_wu.js → pdf-0TQQyXWM.js} +1 -1
- package/dist/style.css +1 -1
- package/dist/types/vue-data-ui.d.cts +610 -22
- package/dist/types/vue-data-ui.d.ts +610 -22
- package/dist/useAutoSizeLabelsInsideViewbox-Qhry5WvH.js +81 -0
- package/dist/useFitSvgText-2crs6Fv5.js +69 -0
- package/dist/useLoading-D7YHNtLX.js +29 -0
- package/dist/useNestedProp-D-8c0o4p.js +13 -0
- package/dist/usePanZoom-BVca3eMk.js +122 -0
- package/dist/{usePrinter-BUzmyQf9.js → usePrinter-NUeckmCX.js} +2 -2
- package/dist/useTimeLabelCollider-CIsgDrl9.js +78 -0
- package/dist/{useTimeLabels-Mrr0jrpL.js → useTimeLabels-DkzmKfZn.js} +211 -152
- package/dist/{vue-data-ui-DpO93ey5.js → vue-data-ui-BIXXEsFZ.js} +105 -100
- package/dist/vue-data-ui.js +23 -22
- package/dist/vue-ui-3d-bar-CVUfj12F.js +1323 -0
- package/dist/{vue-ui-accordion-CRomxzaL.js → vue-ui-accordion-Cpovz3RE.js} +3 -3
- package/dist/vue-ui-age-pyramid-CQWFaHLV.js +834 -0
- package/dist/{vue-ui-annotator-BAOxPiFx.js → vue-ui-annotator-C49Xw5Mh.js} +2 -2
- package/dist/vue-ui-bullet-DED2SuIa.js +571 -0
- package/dist/vue-ui-candlestick-DGgbevy6.js +999 -0
- package/dist/{vue-ui-carousel-table-DVGlPZIa.js → vue-ui-carousel-table-DKIgSB1T.js} +29 -29
- package/dist/{vue-ui-chestnut-P1v4ffD0.js → vue-ui-chestnut-D1bEM91d.js} +5 -5
- package/dist/vue-ui-chord-CBLSqtEP.js +1038 -0
- package/dist/{vue-ui-circle-pack-FXmemXgl.js → vue-ui-circle-pack-g2ts9NTG.js} +24 -24
- package/dist/{vue-ui-cursor-CdvMgIrP.js → vue-ui-cursor-DSxmPUD8.js} +2 -2
- package/dist/{vue-ui-dashboard-Vke0452J.js → vue-ui-dashboard-B6FfoNjQ.js} +62 -62
- package/dist/{vue-ui-digits-BVhyYqCs.js → vue-ui-digits-DKffQVgr.js} +2 -2
- package/dist/{vue-ui-donut-BpIivKcf.js → vue-ui-donut-CJrWc4-g.js} +320 -308
- package/dist/vue-ui-donut-evolution-Bys6cs-D.js +1075 -0
- package/dist/vue-ui-dumbbell-Cb_I__qC.js +1119 -0
- package/dist/vue-ui-flow-BzuT3ij5.js +841 -0
- package/dist/{vue-ui-funnel-BbFmbsft.js → vue-ui-funnel-Ctp7GDiN.js} +16 -16
- package/dist/vue-ui-galaxy-CRBy0aio.js +680 -0
- package/dist/vue-ui-gauge-NcQq5UFr.js +791 -0
- package/dist/vue-ui-gizmo-Cwfb8c-0.js +210 -0
- package/dist/vue-ui-heatmap-DElqpFVY.js +1078 -0
- package/dist/vue-ui-history-plot-De1Dvnhw.js +1073 -0
- package/dist/{vue-ui-kpi-jN_yMnLj.js → vue-ui-kpi-_bLScmgO.js} +26 -26
- package/dist/{vue-ui-mini-loader-rYr76x8g.js → vue-ui-mini-loader-PsHE_2Wy.js} +2 -2
- package/dist/{vue-ui-molecule-BWZHOQLi.js → vue-ui-molecule-CgiahnC6.js} +53 -51
- package/dist/vue-ui-mood-radar-dXVOOrhl.js +785 -0
- package/dist/vue-ui-nested-donuts-C0X6BetT.js +1286 -0
- package/dist/vue-ui-onion-C7sxQzk_.js +776 -0
- package/dist/vue-ui-parallel-coordinate-plot-jwtnNX59.js +915 -0
- package/dist/{vue-ui-quadrant-BFFzfDw3.js → vue-ui-quadrant-DguDE91h.js} +512 -459
- package/dist/vue-ui-quick-chart-BpEDS08U.js +1761 -0
- package/dist/vue-ui-radar-lFrqTRqo.js +796 -0
- package/dist/{vue-ui-rating-BAauyqTn.js → vue-ui-rating-BHghXziv.js} +2 -2
- package/dist/vue-ui-relation-circle-C5W6NFOb.js +598 -0
- package/dist/vue-ui-ridgeline-A2DuFEDS.js +1153 -0
- package/dist/vue-ui-rings-BgJAm9_b.js +728 -0
- package/dist/vue-ui-scatter-COfpLChz.js +1178 -0
- package/dist/{vue-ui-skeleton-CUOhCY4p.js → vue-ui-skeleton-DMLCBUtZ.js} +3 -3
- package/dist/{vue-ui-smiley-B6SqWMov.js → vue-ui-smiley-ZopESYc_.js} +26 -26
- package/dist/vue-ui-spark-trend-CuSQ03fQ.js +315 -0
- package/dist/vue-ui-sparkbar-BCsX9M4q.js +351 -0
- package/dist/vue-ui-sparkgauge-DdyZLA0T.js +232 -0
- package/dist/vue-ui-sparkhistogram-CUxFgIcE.js +380 -0
- package/dist/vue-ui-sparkline-DOkofsLL.js +489 -0
- package/dist/vue-ui-sparkstackbar-Bq9PZzmH.js +421 -0
- package/dist/vue-ui-stackbar-B7ceoT0V.js +1370 -0
- package/dist/vue-ui-strip-plot-DYh-NGQN.js +915 -0
- package/dist/{vue-ui-table-heatmap-DazTE3fa.js → vue-ui-table-heatmap-BVTb1xuA.js} +5 -5
- package/dist/{vue-ui-table-Dwjl3L0p.js → vue-ui-table-pESH5KAJ.js} +11 -11
- package/dist/{vue-ui-table-sparkline-BXMPUEpN.js → vue-ui-table-sparkline-Bw-6l9lA.js} +14 -14
- package/dist/vue-ui-thermometer-BqqfmS-B.js +541 -0
- package/dist/{vue-ui-timer-yLvNAZL_.js → vue-ui-timer-CVisMxLS.js} +5 -5
- package/dist/vue-ui-tiremarks-K1dcCdpj.js +406 -0
- package/dist/vue-ui-treemap-Bz3c68s4.js +1035 -0
- package/dist/{vue-ui-vertical-bar-BrYCoVym.js → vue-ui-vertical-bar-BvtXpCjw.js} +71 -69
- package/dist/vue-ui-waffle-CYO7bIf1.js +910 -0
- package/dist/vue-ui-wheel-De1spwLh.js +379 -0
- package/dist/vue-ui-word-cloud-BMmVrx_T.js +765 -0
- package/dist/{vue-ui-world-B4Dqrk4l.js → vue-ui-world-Ccpr00nJ.js} +11 -9
- package/dist/vue-ui-xy-D4jaRKe3.js +3771 -0
- package/dist/{vue-ui-xy-canvas-D7fL36kT.js → vue-ui-xy-canvas-DE-Uu5oq.js} +265 -264
- package/package.json +1 -1
- package/dist/Slicer-BD8Z8VCW.js +0 -577
- package/dist/useLoading-Bt5Doa8m.js +0 -28
- package/dist/useNestedProp-C_G5E08Y.js +0 -13
- package/dist/usePanZoom-BQMvRXEQ.js +0 -115
- package/dist/vue-ui-3d-bar-D8imUwEz.js +0 -1227
- package/dist/vue-ui-age-pyramid-CV7gtFOC.js +0 -746
- package/dist/vue-ui-bullet-BtuMMBF7.js +0 -513
- package/dist/vue-ui-candlestick-BsRtXKrv.js +0 -873
- package/dist/vue-ui-chord-CIuzYmpM.js +0 -949
- package/dist/vue-ui-donut-evolution-BRlsCA4U.js +0 -903
- package/dist/vue-ui-dumbbell-D87Dumjh.js +0 -753
- package/dist/vue-ui-flow-D_L_xssL.js +0 -765
- package/dist/vue-ui-galaxy-Cn6vHbaw.js +0 -617
- package/dist/vue-ui-gauge-Ds4terqY.js +0 -738
- package/dist/vue-ui-gizmo-BTncpI62.js +0 -192
- package/dist/vue-ui-heatmap-B6GpjeWC.js +0 -877
- package/dist/vue-ui-history-plot-DTDzEeGq.js +0 -924
- package/dist/vue-ui-mood-radar-CPfS6f1L.js +0 -670
- package/dist/vue-ui-nested-donuts-Bsd2kGoJ.js +0 -1177
- package/dist/vue-ui-onion-BQ4nISXW.js +0 -701
- package/dist/vue-ui-parallel-coordinate-plot-BoHgVgbn.js +0 -807
- package/dist/vue-ui-quick-chart-oNMTeOAL.js +0 -1612
- package/dist/vue-ui-radar-98mXFZe-.js +0 -741
- package/dist/vue-ui-relation-circle-6oDCSxkO.js +0 -542
- package/dist/vue-ui-ridgeline-CugMGjOU.js +0 -969
- package/dist/vue-ui-rings-bsGXaD2m.js +0 -685
- package/dist/vue-ui-scatter-7ssLliGg.js +0 -1045
- package/dist/vue-ui-spark-trend-jauInkkN.js +0 -291
- package/dist/vue-ui-sparkbar-DXByIxQH.js +0 -301
- package/dist/vue-ui-sparkgauge-BMrV2gDi.js +0 -201
- package/dist/vue-ui-sparkhistogram-CoNM4G7o.js +0 -313
- package/dist/vue-ui-sparkline-DrN3_wS0.js +0 -459
- package/dist/vue-ui-sparkstackbar-W1a0JQi9.js +0 -381
- package/dist/vue-ui-stackbar-D1-gbUgE.js +0 -1207
- package/dist/vue-ui-strip-plot-KhfvrVuN.js +0 -761
- package/dist/vue-ui-thermometer-Cn6lJRs3.js +0 -495
- package/dist/vue-ui-tiremarks-BYsWePfK.js +0 -358
- package/dist/vue-ui-treemap-Ce7RVFG3.js +0 -965
- package/dist/vue-ui-waffle-CCrR2T1G.js +0 -863
- package/dist/vue-ui-wheel-BuxjnrDN.js +0 -352
- package/dist/vue-ui-word-cloud-C6fawHJE.js +0 -659
- package/dist/vue-ui-xy-ubRnv9iJ.js +0 -2980
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
import { defineAsyncComponent as
|
|
2
|
-
import { u as Ka, c as Qa,
|
|
3
|
-
import { d as dl, t as hl, u as yl, c as fl, a as ca, l as C, r as
|
|
4
|
-
import { u as ha } from "./useNestedProp-
|
|
5
|
-
import { u as gl } from "./usePrinter-
|
|
1
|
+
import { defineAsyncComponent as K, ref as d, computed as L, useSlots as Va, onMounted as ua, watch as D, nextTick as sa, shallowRef as ze, onBeforeUnmount as Ga, createElementBlock as se, openBlock as S, unref as p, normalizeClass as Za, normalizeStyle as Q, createCommentVNode as X, createBlock as N, createElementVNode as ne, 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, a as el, p as V, b as al, C as ge, d as ll, D as $e, k as ee, i as ae, e as ia, a5 as tl, G as ol, af as rl, o as ul, f as sl, y as va, v as nl, w as il, z as vl, s as ie, l as cl } from "./index-DKpp7RIH.js";
|
|
3
|
+
import { d as dl, t as hl, u as yl, c as fl, a as ca, l as C, r as Ie, b as R, p as da } from "./useResponsive-DfdjqQps.js";
|
|
4
|
+
import { u as ha } from "./useNestedProp-D-8c0o4p.js";
|
|
5
|
+
import { u as gl } from "./usePrinter-NUeckmCX.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-
|
|
11
|
-
import { u as kl } from "./useTimeLabels-
|
|
12
|
-
import Cl from "./img-
|
|
8
|
+
import bl from "./Legend-DiGLrlzP.js";
|
|
9
|
+
import xl from "./Title-VLWyIYrj.js";
|
|
10
|
+
import { S as Ll } from "./Slicer-DYuvPkEM.js";
|
|
11
|
+
import { u as kl } from "./useTimeLabels-DkzmKfZn.js";
|
|
12
|
+
import Cl from "./img-DD_2wgY3.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,
|
|
@@ -31,16 +31,16 @@ const Sl = ["id"], zl = ["onClick"], $l = {
|
|
|
31
31
|
}
|
|
32
32
|
},
|
|
33
33
|
emits: ["selectLegend"],
|
|
34
|
-
setup(
|
|
35
|
-
const ga =
|
|
36
|
-
|
|
34
|
+
setup(Me, { expose: ya, emit: fa }) {
|
|
35
|
+
const ga = K(() => import("./vue-ui-accordion-Cpovz3RE.js")), pa = K(() => import("./DataTable-B3yakHEM.js")), ma = K(() => import("./NonSvgPenAndPaper-C-ZjpJQd.js")), ba = K(() => import("./vue-ui-skeleton-DMLCBUtZ.js")), xa = K(() => import("./Tooltip-BS5naLS2.js")), La = K(() => import("./UserOptions-BV_xM-sB.js")), { vue_ui_xy_canvas: ka } = Ka(), g = Me, pe = d(Qa()), P = d(null), le = d(null), n = d(null), y = d(1), F = d(1), ve = d(!1), c = d(null), ce = d(""), Te = d(null), $ = d([]), G = d(1), H = d(!0), Z = d(!0), me = d(null), Oe = d(0), Re = d(0), de = d(!1), Pe = d(null), Fe = d(null), Ee = d(null), Ae = d(null), be = d(0), xe = d(0), Le = d(0), M = d(null), ke = L(() => !!g.dataset && g.dataset.length), Ca = fa, wa = Va();
|
|
36
|
+
ua(() => {
|
|
37
37
|
wa["chart-background"] && console.warn("VueUiXyCanvas does not support the #chart-background slot.");
|
|
38
38
|
});
|
|
39
39
|
const a = L({
|
|
40
|
-
get: () =>
|
|
40
|
+
get: () => He(),
|
|
41
41
|
set: (e) => e
|
|
42
|
-
}), { userOptionsVisible:
|
|
43
|
-
function
|
|
42
|
+
}), { userOptionsVisible: Ce, setUserOptionsVisibility: De, keepUserOptionState: Ne } = pl({ config: a.value }), { svgRef: T } = ml({ config: a.value.style.chart.title });
|
|
43
|
+
function He() {
|
|
44
44
|
const e = ha({
|
|
45
45
|
userConfig: g.config,
|
|
46
46
|
defaultConfig: ka
|
|
@@ -52,15 +52,15 @@ const Sl = ["id"], zl = ["onClick"], $l = {
|
|
|
52
52
|
defaultConfig: e
|
|
53
53
|
}),
|
|
54
54
|
customPalette: el[e.theme] || V
|
|
55
|
-
} : l = e, g.config &&
|
|
55
|
+
} : l = e, g.config && ge(g.config, "style.chart.scale.min") ? l.style.chart.scale.min = g.config.style.chart.scale.min : l.style.chart.scale.min = null, g.config && ge(g.config, "style.chart.scale.max") ? l.style.chart.scale.max = g.config.style.chart.scale.max : l.style.chart.scale.max = null, g.config && ge(g.config, "style.chart.zoom.startIndex") ? l.style.chart.zoom.startIndex = g.config.style.chart.zoom.startIndex : l.style.chart.zoom.startIndex = null, g.config && ge(g.config, "style.chart.zoom.endIndex") ? l.style.chart.zoom.endIndex = g.config.style.chart.zoom.endIndex : l.style.chart.zoom.endIndex = null, l;
|
|
56
56
|
}
|
|
57
57
|
D(() => g.config, (e) => {
|
|
58
|
-
a.value =
|
|
58
|
+
a.value = He(), Ce.value = !a.value.userOptions.showOnChartHover, we(), be.value += 1, xe.value += 1, Le.value += 1, u.value.showTable = a.value.table.show, u.value.showDataLabels = a.value.style.chart.dataLabels.show, u.value.stacked = a.value.style.chart.stacked, u.value.showTooltip = a.value.style.chart.tooltip.show;
|
|
59
59
|
}, { deep: !0 }), D(() => g.dataset, () => {
|
|
60
|
-
|
|
60
|
+
we(), be.value += 1, xe.value += 1, Le.value += 1;
|
|
61
61
|
}, { deep: !0 });
|
|
62
|
-
const
|
|
63
|
-
elementId: `xy_canvas_${
|
|
62
|
+
const Ye = d(a.value.style.chart.aspectRatio), { isPrinting: Ue, isImaging: We, generatePdf: Xe, generateImage: Be } = gl({
|
|
63
|
+
elementId: `xy_canvas_${pe.value}`,
|
|
64
64
|
fileName: a.value.style.chart.title.text || "vue-ui-xy-canvas",
|
|
65
65
|
options: a.value.userOptions.print
|
|
66
66
|
}), u = d({
|
|
@@ -69,33 +69,33 @@ const Sl = ["id"], zl = ["onClick"], $l = {
|
|
|
69
69
|
stacked: a.value.style.chart.stacked,
|
|
70
70
|
showTooltip: a.value.style.chart.tooltip.show
|
|
71
71
|
});
|
|
72
|
-
function
|
|
73
|
-
|
|
72
|
+
function _e(e) {
|
|
73
|
+
de.value = e, Re.value += 1;
|
|
74
74
|
}
|
|
75
|
-
const
|
|
75
|
+
const Ve = L(() => ll(a.value.customPalette)), I = L(() => j.value ? Math.max(...j.value.filter((e, l) => !$.value.includes(e.absoluteIndex)).map((e) => e.series.length)) : 0), t = L(() => {
|
|
76
76
|
const e = y.value - y.value * (a.value.style.chart.paddingProportions.left + a.value.style.chart.paddingProportions.right);
|
|
77
77
|
return {
|
|
78
78
|
canvasWidth: y.value,
|
|
79
|
-
canvasHeight:
|
|
79
|
+
canvasHeight: F.value,
|
|
80
80
|
left: y.value * a.value.style.chart.paddingProportions.left,
|
|
81
|
-
top:
|
|
81
|
+
top: F.value * a.value.style.chart.paddingProportions.top,
|
|
82
82
|
right: y.value - y.value * a.value.style.chart.paddingProportions.right,
|
|
83
|
-
bottom:
|
|
83
|
+
bottom: F.value - F.value * a.value.style.chart.paddingProportions.bottom,
|
|
84
84
|
width: e,
|
|
85
|
-
height:
|
|
85
|
+
height: F.value - F.value * (a.value.style.chart.paddingProportions.top + a.value.style.chart.paddingProportions.bottom),
|
|
86
86
|
slot: e / (r.value.end - r.value.start)
|
|
87
87
|
};
|
|
88
88
|
});
|
|
89
|
-
function
|
|
89
|
+
function Ge(e, l) {
|
|
90
90
|
return e / l;
|
|
91
91
|
}
|
|
92
|
-
function Sa({ hasAutoScale: e, series: l, min: o, max:
|
|
92
|
+
function Sa({ hasAutoScale: e, series: l, min: o, max: s, scale: i, yOffset: b, individualHeight: v, stackIndex: f = null }) {
|
|
93
93
|
return l.map((U, z) => {
|
|
94
|
-
const A = i.min < 0 ? Math.abs(i.min) : 0, W =
|
|
95
|
-
let
|
|
96
|
-
e && (
|
|
94
|
+
const A = i.min < 0 ? Math.abs(i.min) : 0, W = Ge(U + A, A + i.max);
|
|
95
|
+
let re, ue;
|
|
96
|
+
e && (re = i.min, ue = Ge(U - re, i.max - re));
|
|
97
97
|
let O = 0;
|
|
98
|
-
return f === null ? O = t.value.bottom - t.value.height * (e ?
|
|
98
|
+
return f === null ? O = t.value.bottom - t.value.height * (e ? ue : W) : O = t.value.bottom - b - v * (e ? ue : W), {
|
|
99
99
|
x: t.value.left + t.value.slot * z + t.value.slot / 2,
|
|
100
100
|
y: O,
|
|
101
101
|
value: U
|
|
@@ -103,13 +103,13 @@ const Sl = ["id"], zl = ["onClick"], $l = {
|
|
|
103
103
|
});
|
|
104
104
|
}
|
|
105
105
|
const m = L(() => {
|
|
106
|
-
const e = a.value.style.chart.scale.min !== null ? a.value.style.chart.scale.min : Math.min(...j.value.filter((v, f) => !$.value.includes(v.absoluteIndex)).flatMap((v) => v.series.slice(r.value.start, r.value.end))), l = a.value.style.chart.scale.max !== null ? a.value.style.chart.scale.max : Math.max(...j.value.filter((v, f) => !$.value.includes(v.absoluteIndex)).flatMap((v) => v.series.slice(r.value.start, r.value.end))), o =
|
|
107
|
-
y: t.value.bottom - t.value.height * ((v +
|
|
106
|
+
const e = a.value.style.chart.scale.min !== null ? a.value.style.chart.scale.min : Math.min(...j.value.filter((v, f) => !$.value.includes(v.absoluteIndex)).flatMap((v) => v.series.slice(r.value.start, r.value.end))), l = a.value.style.chart.scale.max !== null ? a.value.style.chart.scale.max : Math.max(...j.value.filter((v, f) => !$.value.includes(v.absoluteIndex)).flatMap((v) => v.series.slice(r.value.start, r.value.end))), o = $e(e < 0 ? e : 0, l === e ? e + 1 < 0 ? 0 : e + 1 : l < 0 ? 0 : l, a.value.style.chart.scale.ticks), s = o.min < 0 ? Math.abs(o.min) : 0, i = t.value.bottom - t.value.height * (s / (o.max + s)), b = o.ticks.map((v) => ({
|
|
107
|
+
y: t.value.bottom - t.value.height * ((v + s) / (o.max + s)),
|
|
108
108
|
x: t.value.left - 8,
|
|
109
109
|
value: v
|
|
110
110
|
}));
|
|
111
111
|
return {
|
|
112
|
-
absoluteMin:
|
|
112
|
+
absoluteMin: s,
|
|
113
113
|
max: l,
|
|
114
114
|
min: e,
|
|
115
115
|
scale: o,
|
|
@@ -122,10 +122,10 @@ const Sl = ["id"], zl = ["onClick"], $l = {
|
|
|
122
122
|
<circle cx="5" cy="5" r="5" fill="${e.color}"/>
|
|
123
123
|
</svg>
|
|
124
124
|
<span>${e.name ? e.name + ": " : ""}</span>
|
|
125
|
-
<span>${
|
|
125
|
+
<span>${ee(
|
|
126
126
|
a.value.style.chart.dataLabels.formatter,
|
|
127
127
|
e.series[c.value],
|
|
128
|
-
|
|
128
|
+
ae({
|
|
129
129
|
p: e.prefix || "",
|
|
130
130
|
v: e.series[c.value],
|
|
131
131
|
s: e.suffix || "",
|
|
@@ -141,35 +141,35 @@ const Sl = ["id"], zl = ["onClick"], $l = {
|
|
|
141
141
|
threshold: a.value.downsample.threshold
|
|
142
142
|
}),
|
|
143
143
|
absoluteIndex: l,
|
|
144
|
-
color: ia(e.color ||
|
|
144
|
+
color: ia(e.color || Ve.value[l] || V[l] || V[l % V.length])
|
|
145
145
|
})));
|
|
146
146
|
D(I, (e) => {
|
|
147
|
-
e &&
|
|
147
|
+
e && Ze();
|
|
148
148
|
});
|
|
149
149
|
const h = L(() => rl(j.value.filter((e, l) => !$.value.includes(e.absoluteIndex))).map((e, l) => ({
|
|
150
150
|
...e,
|
|
151
151
|
series: e.series.slice(r.value.start, r.value.end)
|
|
152
152
|
})).map((e, l) => {
|
|
153
|
-
let o = [null, void 0].includes(e.scaleMin) ? Math.min(...e.series) || 0 : e.scaleMin,
|
|
154
|
-
o ===
|
|
153
|
+
let o = [null, void 0].includes(e.scaleMin) ? Math.min(...e.series) || 0 : e.scaleMin, s = [null, void 0].includes(e.scaleMax) ? Math.max(...e.series) || 1 : e.scaleMax;
|
|
154
|
+
o === s && (o = o >= 0 ? s - 1 : o, s = s >= 0 ? s : o + 1), e.series.filter((O) => ![null, void 0].includes(O)).map((O) => (O - o) / (s - o));
|
|
155
155
|
const i = {
|
|
156
156
|
valueMin: o,
|
|
157
|
-
valueMax:
|
|
157
|
+
valueMax: s
|
|
158
158
|
}, b = e.scaleSteps || a.value.style.chart.scale.ticks;
|
|
159
159
|
let v;
|
|
160
|
-
e.autoScaling ? v =
|
|
160
|
+
e.autoScaling ? v = $e(i.valueMin, i.valueMax, b) : v = $e(i.valueMin < 0 ? i.valueMin : 0, i.valueMax <= 0 ? 0 : i.valueMax, b);
|
|
161
161
|
const f = u.value.stacked ? t.value.height * (1 - e.cumulatedStackRatio) : 0, U = u.value.stacked ? t.value.height / a.value.style.chart.stackGap : 0, z = u.value.stacked ? t.value.height * e.stackRatio - U : t.value.height, A = v.min < 0 ? Math.abs(v.min) : 0;
|
|
162
162
|
let W;
|
|
163
|
-
e.autoScaling && u.value.stacked &&
|
|
164
|
-
const
|
|
163
|
+
e.autoScaling && u.value.stacked && s <= 0 ? W = t.value.bottom - f - z : W = t.value.bottom - f - z * (A / (v.max + A));
|
|
164
|
+
const re = v.ticks.map((O, _a) => ({
|
|
165
165
|
y: t.value.bottom - f - z * (_a / (v.ticks.length - 1)),
|
|
166
166
|
x: t.value.left - 8,
|
|
167
167
|
value: O
|
|
168
|
-
})),
|
|
168
|
+
})), ue = Sa({
|
|
169
169
|
hasAutoScale: u.value.stacked && e.autoScaling,
|
|
170
170
|
series: e.series,
|
|
171
171
|
min: u.value.stacked ? o : m.value.min,
|
|
172
|
-
max: u.value.stacked ?
|
|
172
|
+
max: u.value.stacked ? s : m.value.max,
|
|
173
173
|
scale: u.value.stacked ? v : m.value.scale,
|
|
174
174
|
yOffset: f,
|
|
175
175
|
individualHeight: z,
|
|
@@ -177,13 +177,13 @@ const Sl = ["id"], zl = ["onClick"], $l = {
|
|
|
177
177
|
});
|
|
178
178
|
return {
|
|
179
179
|
...e,
|
|
180
|
-
coordinatesLine:
|
|
180
|
+
coordinatesLine: ue,
|
|
181
181
|
min: o,
|
|
182
|
-
max:
|
|
182
|
+
max: s,
|
|
183
183
|
localScale: v,
|
|
184
184
|
localZero: W,
|
|
185
185
|
localMin: A,
|
|
186
|
-
localYLabels:
|
|
186
|
+
localYLabels: re,
|
|
187
187
|
yOffset: f,
|
|
188
188
|
individualHeight: z
|
|
189
189
|
};
|
|
@@ -191,15 +191,14 @@ const Sl = ["id"], zl = ["onClick"], $l = {
|
|
|
191
191
|
start: 0,
|
|
192
192
|
end: I.value
|
|
193
193
|
});
|
|
194
|
-
function
|
|
195
|
-
|
|
194
|
+
function Ze() {
|
|
195
|
+
qe();
|
|
196
196
|
}
|
|
197
|
-
const
|
|
198
|
-
async function
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
}, Pe.value += 1);
|
|
197
|
+
const je = d(null);
|
|
198
|
+
async function qe() {
|
|
199
|
+
await sa(), await sa();
|
|
200
|
+
const { startIndex: e, endIndex: l } = a.value.style.chart.zoom, o = je.value, s = I.value;
|
|
201
|
+
(e != null || l != null) && o ? (e != null && o.setStartValue(e), l != null && o.setEndValue($a(l + 1))) : (r.value = { start: 0, end: s }, Oe.value += 1);
|
|
203
202
|
}
|
|
204
203
|
function $a(e) {
|
|
205
204
|
const l = I.value;
|
|
@@ -209,15 +208,15 @@ const Sl = ["id"], zl = ["onClick"], $l = {
|
|
|
209
208
|
function Ma() {
|
|
210
209
|
if (!T.value)
|
|
211
210
|
return;
|
|
212
|
-
const e =
|
|
213
|
-
T.value.width = e * G.value * 2, T.value.height = l * G.value * 2, y.value = e * G.value * 2,
|
|
211
|
+
const e = le.value.offsetWidth, l = le.value.offsetHeight;
|
|
212
|
+
T.value.width = e * G.value * 2, T.value.height = l * G.value * 2, y.value = e * G.value * 2, F.value = l * G.value * 2, n.value.scale(G.value, G.value), te();
|
|
214
213
|
}
|
|
215
214
|
function Ta() {
|
|
216
|
-
if (
|
|
215
|
+
if (n.value.clearRect(0, 0, 1e4, 1e4), n.value.fillStyle = a.value.style.chart.backgroundColor, n.value.fillRect(0, 0, t.value.canvasWidth, t.value.canvasHeight), u.value.stacked)
|
|
217
216
|
a.value.style.chart.grid.y.verticalLines.show && r.value.end - r.value.start < a.value.style.chart.grid.y.verticalLines.hideUnderXLength ? h.value.forEach((e) => {
|
|
218
217
|
for (let l = 0; l < r.value.end - r.value.start + 1; l += 1)
|
|
219
218
|
C(
|
|
220
|
-
|
|
219
|
+
n.value,
|
|
221
220
|
[
|
|
222
221
|
{
|
|
223
222
|
x: t.value.left + t.value.slot * l,
|
|
@@ -235,7 +234,7 @@ const Sl = ["id"], zl = ["onClick"], $l = {
|
|
|
235
234
|
}) : a.value.style.chart.grid.y.verticalLines.show && r.value.end - r.value.start >= a.value.style.chart.grid.y.verticalLines.hideUnderXLength && h.value.forEach((e) => {
|
|
236
235
|
for (let l = r.value.start; l < r.value.end; l += 1)
|
|
237
236
|
l % Math.floor((r.value.end - r.value.start) / a.value.style.chart.grid.y.timeLabels.modulo) === 0 && C(
|
|
238
|
-
|
|
237
|
+
n.value,
|
|
239
238
|
[
|
|
240
239
|
{
|
|
241
240
|
x: t.value.left + t.value.slot * (l - r.value.start) + t.value.slot / 2,
|
|
@@ -252,8 +251,8 @@ const Sl = ["id"], zl = ["onClick"], $l = {
|
|
|
252
251
|
);
|
|
253
252
|
}), a.value.style.chart.grid.x.horizontalLines.show && (a.value.style.chart.grid.x.horizontalLines.alternate ? h.value.forEach((e) => {
|
|
254
253
|
e.localYLabels.forEach((l, o) => {
|
|
255
|
-
o < e.localYLabels.length - 1 &&
|
|
256
|
-
|
|
254
|
+
o < e.localYLabels.length - 1 && Ie(
|
|
255
|
+
n.value,
|
|
257
256
|
[
|
|
258
257
|
{ x: t.value.left, y: l.y },
|
|
259
258
|
{ x: t.value.right, y: l.y },
|
|
@@ -261,7 +260,7 @@ const Sl = ["id"], zl = ["onClick"], $l = {
|
|
|
261
260
|
{ x: t.value.left, y: e.localYLabels[o + 1].y }
|
|
262
261
|
],
|
|
263
262
|
{
|
|
264
|
-
fillColor: o % 2 === 0 ? "transparent" :
|
|
263
|
+
fillColor: o % 2 === 0 ? "transparent" : ie(a.value.style.chart.grid.x.horizontalLines.color, a.value.style.chart.grid.x.horizontalLines.opacity),
|
|
265
264
|
strokeColor: "transparent"
|
|
266
265
|
}
|
|
267
266
|
);
|
|
@@ -269,7 +268,7 @@ const Sl = ["id"], zl = ["onClick"], $l = {
|
|
|
269
268
|
}) : h.value.forEach((e) => {
|
|
270
269
|
e.localYLabels.slice(r.value.start, r.value.end).forEach((l) => {
|
|
271
270
|
C(
|
|
272
|
-
|
|
271
|
+
n.value,
|
|
273
272
|
[
|
|
274
273
|
{ x: t.value.left, y: l.y },
|
|
275
274
|
{ x: t.value.right, y: l.y }
|
|
@@ -281,7 +280,7 @@ const Sl = ["id"], zl = ["onClick"], $l = {
|
|
|
281
280
|
});
|
|
282
281
|
})), a.value.style.chart.grid.zeroLine.show && h.value.forEach((e) => {
|
|
283
282
|
C(
|
|
284
|
-
|
|
283
|
+
n.value,
|
|
285
284
|
[
|
|
286
285
|
{ x: t.value.left, y: e.localZero },
|
|
287
286
|
{ x: t.value.right, y: e.localZero }
|
|
@@ -293,7 +292,7 @@ const Sl = ["id"], zl = ["onClick"], $l = {
|
|
|
293
292
|
);
|
|
294
293
|
}), a.value.style.chart.grid.y.axisLabels.show && h.value.forEach((e) => {
|
|
295
294
|
C(
|
|
296
|
-
|
|
295
|
+
n.value,
|
|
297
296
|
[
|
|
298
297
|
{ x: t.value.left, y: t.value.bottom - e.yOffset },
|
|
299
298
|
{ x: t.value.left, y: t.value.bottom - e.yOffset - e.individualHeight }
|
|
@@ -302,7 +301,7 @@ const Sl = ["id"], zl = ["onClick"], $l = {
|
|
|
302
301
|
color: e.color
|
|
303
302
|
}
|
|
304
303
|
), C(
|
|
305
|
-
|
|
304
|
+
n.value,
|
|
306
305
|
[
|
|
307
306
|
{ x: t.value.right, y: t.value.bottom - e.yOffset },
|
|
308
307
|
{ x: t.value.right, y: t.value.bottom - e.yOffset - e.individualHeight }
|
|
@@ -313,7 +312,7 @@ const Sl = ["id"], zl = ["onClick"], $l = {
|
|
|
313
312
|
);
|
|
314
313
|
}), h.value.forEach((e) => {
|
|
315
314
|
R(
|
|
316
|
-
|
|
315
|
+
n.value,
|
|
317
316
|
e.name,
|
|
318
317
|
y.value / 35,
|
|
319
318
|
t.value.bottom - e.yOffset - e.individualHeight / 2,
|
|
@@ -329,7 +328,7 @@ const Sl = ["id"], zl = ["onClick"], $l = {
|
|
|
329
328
|
if (a.value.style.chart.grid.y.verticalLines.show && r.value.end - r.value.start < a.value.style.chart.grid.y.verticalLines.hideUnderXLength)
|
|
330
329
|
for (let e = 0; e < r.value.end - r.value.start + 1; e += 1)
|
|
331
330
|
C(
|
|
332
|
-
|
|
331
|
+
n.value,
|
|
333
332
|
[
|
|
334
333
|
{ x: t.value.left + t.value.slot * e, y: t.value.top },
|
|
335
334
|
{ x: t.value.left + t.value.slot * e, y: t.value.bottom }
|
|
@@ -341,7 +340,7 @@ const Sl = ["id"], zl = ["onClick"], $l = {
|
|
|
341
340
|
else if (a.value.style.chart.grid.y.verticalLines.show && r.value.end - r.value.start >= a.value.style.chart.grid.y.verticalLines.hideUnderXLength)
|
|
342
341
|
for (let e = r.value.start; e < r.value.end; e += 1)
|
|
343
342
|
e % Math.floor((r.value.end - r.value.start) / a.value.style.chart.grid.y.timeLabels.modulo) === 0 && C(
|
|
344
|
-
|
|
343
|
+
n.value,
|
|
345
344
|
[
|
|
346
345
|
{ x: t.value.left + t.value.slot * (e - r.value.start) + t.value.slot / 2, y: t.value.top },
|
|
347
346
|
{ x: t.value.left + t.value.slot * (e - r.value.start) + t.value.slot / 2, y: t.value.bottom }
|
|
@@ -351,8 +350,8 @@ const Sl = ["id"], zl = ["onClick"], $l = {
|
|
|
351
350
|
}
|
|
352
351
|
);
|
|
353
352
|
a.value.style.chart.grid.x.horizontalLines.show && (a.value.style.chart.grid.x.horizontalLines.alternate ? m.value.yLabels.forEach((e, l) => {
|
|
354
|
-
l < m.value.yLabels.length - 1 &&
|
|
355
|
-
|
|
353
|
+
l < m.value.yLabels.length - 1 && Ie(
|
|
354
|
+
n.value,
|
|
356
355
|
[
|
|
357
356
|
{ x: t.value.left, y: e.y },
|
|
358
357
|
{ x: t.value.right, y: e.y },
|
|
@@ -360,13 +359,13 @@ const Sl = ["id"], zl = ["onClick"], $l = {
|
|
|
360
359
|
{ x: t.value.left, y: m.value.yLabels[l + 1].y }
|
|
361
360
|
],
|
|
362
361
|
{
|
|
363
|
-
fillColor: l % 2 === 0 ? "transparent" :
|
|
362
|
+
fillColor: l % 2 === 0 ? "transparent" : ie(a.value.style.chart.grid.x.horizontalLines.color, a.value.style.chart.grid.x.horizontalLines.opacity),
|
|
364
363
|
strokeColor: "transparent"
|
|
365
364
|
}
|
|
366
365
|
);
|
|
367
366
|
}) : m.value.yLabels.forEach((e) => {
|
|
368
367
|
C(
|
|
369
|
-
|
|
368
|
+
n.value,
|
|
370
369
|
[
|
|
371
370
|
{ x: t.value.left, y: e.y },
|
|
372
371
|
{ x: t.value.right, y: e.y }
|
|
@@ -376,7 +375,7 @@ const Sl = ["id"], zl = ["onClick"], $l = {
|
|
|
376
375
|
}
|
|
377
376
|
);
|
|
378
377
|
})), a.value.style.chart.grid.y.showAxis && C(
|
|
379
|
-
|
|
378
|
+
n.value,
|
|
380
379
|
[
|
|
381
380
|
{ x: t.value.left, y: t.value.top },
|
|
382
381
|
{ x: t.value.left, y: t.value.bottom }
|
|
@@ -386,7 +385,7 @@ const Sl = ["id"], zl = ["onClick"], $l = {
|
|
|
386
385
|
lineWidth: a.value.style.chart.grid.y.axisThickness
|
|
387
386
|
}
|
|
388
387
|
), a.value.style.chart.grid.x.showAxis && C(
|
|
389
|
-
|
|
388
|
+
n.value,
|
|
390
389
|
[
|
|
391
390
|
{ x: t.value.left, y: t.value.bottom },
|
|
392
391
|
{ x: t.value.right, y: t.value.bottom }
|
|
@@ -396,7 +395,7 @@ const Sl = ["id"], zl = ["onClick"], $l = {
|
|
|
396
395
|
lineWidth: a.value.style.chart.grid.x.axisThickness
|
|
397
396
|
}
|
|
398
397
|
), a.value.style.chart.grid.zeroLine.show && C(
|
|
399
|
-
|
|
398
|
+
n.value,
|
|
400
399
|
[
|
|
401
400
|
{ x: t.value.left, y: m.value.zero },
|
|
402
401
|
{ x: t.value.right, y: m.value.zero }
|
|
@@ -408,7 +407,7 @@ const Sl = ["id"], zl = ["onClick"], $l = {
|
|
|
408
407
|
);
|
|
409
408
|
}
|
|
410
409
|
a.value.style.chart.grid.y.axisName && R(
|
|
411
|
-
|
|
410
|
+
n.value,
|
|
412
411
|
a.value.style.chart.grid.y.axisName,
|
|
413
412
|
y.value - y.value / 40 * a.value.style.chart.grid.y.axisLabels.fontSizeRatio * 1.2,
|
|
414
413
|
t.value.bottom - t.value.height / 2,
|
|
@@ -419,10 +418,10 @@ const Sl = ["id"], zl = ["onClick"], $l = {
|
|
|
419
418
|
rotation: 90
|
|
420
419
|
}
|
|
421
420
|
), a.value.style.chart.grid.x.axisName && R(
|
|
422
|
-
|
|
421
|
+
n.value,
|
|
423
422
|
a.value.style.chart.grid.x.axisName,
|
|
424
423
|
y.value / 2,
|
|
425
|
-
|
|
424
|
+
F.value,
|
|
426
425
|
{
|
|
427
426
|
font: `${a.value.style.chart.grid.y.axisLabels.bold ? "bold " : ""}${Math.round(y.value / 40 * a.value.style.chart.grid.y.axisLabels.fontSizeRatio)}px ${a.value.style.fontFamily}`,
|
|
428
427
|
color: a.value.style.chart.color,
|
|
@@ -434,7 +433,7 @@ const Sl = ["id"], zl = ["onClick"], $l = {
|
|
|
434
433
|
for (let l = 0; l < e.coordinatesLine.length; l += 1) {
|
|
435
434
|
const o = (c.value === l ? y.value / 150 : a.value.style.chart.line.plots.show ? y.value / 200 : 0) * a.value.style.chart.line.plots.radiusRatio;
|
|
436
435
|
ca(
|
|
437
|
-
|
|
436
|
+
n.value,
|
|
438
437
|
{ x: e.coordinatesLine[l].x, y: e.coordinatesLine[l].y },
|
|
439
438
|
o,
|
|
440
439
|
{
|
|
@@ -446,21 +445,21 @@ const Sl = ["id"], zl = ["onClick"], $l = {
|
|
|
446
445
|
}
|
|
447
446
|
function Ra() {
|
|
448
447
|
h.value.forEach((e) => {
|
|
449
|
-
e.showYMarker &&
|
|
450
|
-
|
|
451
|
-
|
|
448
|
+
e.showYMarker && oe(e) && R(
|
|
449
|
+
n.value,
|
|
450
|
+
ee(
|
|
452
451
|
a.value.style.chart.dataLabels.formatter,
|
|
453
|
-
|
|
454
|
-
|
|
452
|
+
oe(e).value,
|
|
453
|
+
ae({
|
|
455
454
|
p: e.prefix || a.value.style.chart.grid.y.axisLabels.prefix || "",
|
|
456
|
-
v:
|
|
455
|
+
v: oe(e).value,
|
|
457
456
|
s: e.suffix || a.value.style.chart.grid.y.axisLabels.suffix || "",
|
|
458
457
|
r: e.rounding || a.value.style.chart.grid.y.axisLabels.rounding || 0
|
|
459
458
|
}),
|
|
460
|
-
{ datapoint:
|
|
459
|
+
{ datapoint: oe(e), seriesIndex: null }
|
|
461
460
|
),
|
|
462
461
|
t.value.left - 8 + a.value.style.chart.grid.y.axisLabels.offsetX,
|
|
463
|
-
|
|
462
|
+
oe(e).y,
|
|
464
463
|
{
|
|
465
464
|
align: "right",
|
|
466
465
|
font: `${a.value.style.chart.grid.y.axisLabels.bold ? "bold " : ""}${Math.round(y.value / 40 * a.value.style.chart.grid.y.axisLabels.fontSizeRatio)}px ${a.value.style.fontFamily}`,
|
|
@@ -473,11 +472,11 @@ const Sl = ["id"], zl = ["onClick"], $l = {
|
|
|
473
472
|
a.value.style.chart.grid.y.axisLabels.show && (u.value.stacked ? h.value.forEach((e) => {
|
|
474
473
|
e.localYLabels.forEach((l, o) => {
|
|
475
474
|
R(
|
|
476
|
-
|
|
477
|
-
|
|
475
|
+
n.value,
|
|
476
|
+
ee(
|
|
478
477
|
a.value.style.chart.dataLabels.formatter,
|
|
479
478
|
l.value,
|
|
480
|
-
|
|
479
|
+
ae({
|
|
481
480
|
p: e.prefix || a.value.style.chart.grid.y.axisLabels.prefix || "",
|
|
482
481
|
v: l.value,
|
|
483
482
|
s: e.suffix || a.value.style.chart.grid.y.axisLabels.suffix || "",
|
|
@@ -497,11 +496,11 @@ const Sl = ["id"], zl = ["onClick"], $l = {
|
|
|
497
496
|
});
|
|
498
497
|
}) : m.value.yLabels.forEach((e, l) => {
|
|
499
498
|
R(
|
|
500
|
-
|
|
501
|
-
|
|
499
|
+
n.value,
|
|
500
|
+
ee(
|
|
502
501
|
a.value.style.chart.dataLabels.formatter,
|
|
503
502
|
e.value,
|
|
504
|
-
|
|
503
|
+
ae({
|
|
505
504
|
p: a.value.style.chart.grid.y.axisLabels.prefix || "",
|
|
506
505
|
v: e.value,
|
|
507
506
|
s: a.value.style.chart.grid.y.axisLabels.suffix || "",
|
|
@@ -520,14 +519,14 @@ const Sl = ["id"], zl = ["onClick"], $l = {
|
|
|
520
519
|
);
|
|
521
520
|
}));
|
|
522
521
|
}
|
|
523
|
-
function
|
|
522
|
+
function Fa(e) {
|
|
524
523
|
for (let l = 0; l < e.coordinatesLine.length; l += 1)
|
|
525
524
|
R(
|
|
526
|
-
|
|
527
|
-
|
|
525
|
+
n.value,
|
|
526
|
+
ee(
|
|
528
527
|
a.value.style.chart.dataLabels.formatter,
|
|
529
528
|
e.coordinatesLine[l].value,
|
|
530
|
-
|
|
529
|
+
ae({
|
|
531
530
|
p: e.prefix || "",
|
|
532
531
|
v: e.coordinatesLine[l].value,
|
|
533
532
|
s: e.suffix || "",
|
|
@@ -551,24 +550,24 @@ const Sl = ["id"], zl = ["onClick"], $l = {
|
|
|
551
550
|
start: 0,
|
|
552
551
|
end: a.value.style.chart.grid.y.timeLabels.values.length
|
|
553
552
|
}));
|
|
554
|
-
function
|
|
553
|
+
function Ea() {
|
|
555
554
|
for (let e = r.value.start; e < r.value.end; e += 1)
|
|
556
555
|
(r.value.end - r.value.start < a.value.style.chart.grid.y.timeLabels.modulo || r.value.end - r.value.start >= a.value.style.chart.grid.y.timeLabels.modulo && (e % Math.floor((r.value.end - r.value.start) / a.value.style.chart.grid.y.timeLabels.modulo) === 0 || e === c.value + r.value.start && a.value.style.chart.grid.y.timeLabels.showMarker)) && R(
|
|
557
|
-
|
|
556
|
+
n.value,
|
|
558
557
|
Y.value[e] ? Y.value[e].text : e + 1,
|
|
559
558
|
t.value.left + t.value.slot * (e - r.value.start) + t.value.slot / 2,
|
|
560
559
|
t.value.bottom + y.value / a.value.style.chart.grid.y.timeLabels.offsetY,
|
|
561
560
|
{
|
|
562
561
|
align: a.value.style.chart.grid.y.timeLabels.rotation === 0 ? "center" : a.value.style.chart.grid.y.timeLabels.rotation > 0 ? "left" : "right",
|
|
563
562
|
font: `${a.value.style.chart.grid.y.timeLabels.bold ? "bold " : ""}${Math.round(y.value / 40 * a.value.style.chart.grid.y.timeLabels.fontSizeRatio)}px ${a.value.style.fontFamily}`,
|
|
564
|
-
color: a.value.style.chart.grid.y.timeLabels.showMarker ?
|
|
563
|
+
color: a.value.style.chart.grid.y.timeLabels.showMarker ? ie(a.value.style.chart.grid.y.timeLabels.color, c.value !== null ? c.value + r.value.start === e ? 100 : 20 : 100) : a.value.style.chart.grid.y.timeLabels.color,
|
|
565
564
|
rotation: a.value.style.chart.grid.y.timeLabels.rotation
|
|
566
565
|
}
|
|
567
566
|
);
|
|
568
567
|
}
|
|
569
|
-
function
|
|
568
|
+
function Je() {
|
|
570
569
|
C(
|
|
571
|
-
|
|
570
|
+
n.value,
|
|
572
571
|
[
|
|
573
572
|
{ x: t.value.left + t.value.slot * c.value + t.value.slot / 2, y: t.value.top },
|
|
574
573
|
{ x: t.value.left + t.value.slot * c.value + t.value.slot / 2, y: t.value.bottom }
|
|
@@ -582,7 +581,7 @@ const Sl = ["id"], zl = ["onClick"], $l = {
|
|
|
582
581
|
}
|
|
583
582
|
function Aa() {
|
|
584
583
|
M.value && C(
|
|
585
|
-
|
|
584
|
+
n.value,
|
|
586
585
|
[
|
|
587
586
|
{ x: t.value.left, y: M.value },
|
|
588
587
|
{ x: t.value.right, y: M.value }
|
|
@@ -597,8 +596,8 @@ const Sl = ["id"], zl = ["onClick"], $l = {
|
|
|
597
596
|
function Da() {
|
|
598
597
|
w.value.forEach((e, l) => {
|
|
599
598
|
for (let o = 0; o < e.coordinatesLine.length; o += 1)
|
|
600
|
-
|
|
601
|
-
|
|
599
|
+
Ie(
|
|
600
|
+
n.value,
|
|
602
601
|
[
|
|
603
602
|
{
|
|
604
603
|
x: t.value.left + t.value.slot * o + t.value.slot / 10 + (u.value.stacked ? 0 : t.value.slot / w.value.length * l - (l === 0 ? 0 : t.value.slot / (5 * w.value.length) * l)),
|
|
@@ -636,11 +635,11 @@ const Sl = ["id"], zl = ["onClick"], $l = {
|
|
|
636
635
|
}
|
|
637
636
|
}
|
|
638
637
|
), u.value.showDataLabels && [!0, void 0].includes(e.dataLabels) && R(
|
|
639
|
-
|
|
640
|
-
|
|
638
|
+
n.value,
|
|
639
|
+
ee(
|
|
641
640
|
a.value.style.chart.dataLabels.formatter,
|
|
642
641
|
e.coordinatesLine[o].value,
|
|
643
|
-
|
|
642
|
+
ae({
|
|
644
643
|
p: e.prefix || "",
|
|
645
644
|
v: e.coordinatesLine[o].value,
|
|
646
645
|
s: e.suffix || "",
|
|
@@ -662,20 +661,20 @@ const Sl = ["id"], zl = ["onClick"], $l = {
|
|
|
662
661
|
}
|
|
663
662
|
function Na(e) {
|
|
664
663
|
e.useArea ? u.value.stacked ? da(
|
|
665
|
-
|
|
664
|
+
n.value,
|
|
666
665
|
[{ x: e.coordinatesLine[0].x, y: e.localZero }, ...e.coordinatesLine, { x: e.coordinatesLine.at(-1).x, y: e.localZero }],
|
|
667
666
|
{
|
|
668
|
-
fillColor:
|
|
667
|
+
fillColor: ie(e.color, a.value.style.chart.area.opacity),
|
|
669
668
|
strokeColor: "transparent"
|
|
670
669
|
}
|
|
671
670
|
) : da(
|
|
672
|
-
|
|
671
|
+
n.value,
|
|
673
672
|
[{ x: e.coordinatesLine[0].x, y: m.value.zero }, ...e.coordinatesLine, { x: e.coordinatesLine.at(-1).x, y: m.value.zero }],
|
|
674
673
|
{
|
|
675
|
-
fillColor:
|
|
674
|
+
fillColor: ie(e.color, a.value.style.chart.area.opacity),
|
|
676
675
|
strokeColor: "transparent"
|
|
677
676
|
}
|
|
678
|
-
) : C(
|
|
677
|
+
) : C(n.value, e.coordinatesLine, {
|
|
679
678
|
color: e.color,
|
|
680
679
|
lineWidth: 3
|
|
681
680
|
});
|
|
@@ -683,7 +682,7 @@ const Sl = ["id"], zl = ["onClick"], $l = {
|
|
|
683
682
|
function Ha() {
|
|
684
683
|
h.value.forEach((e, l) => {
|
|
685
684
|
C(
|
|
686
|
-
|
|
685
|
+
n.value,
|
|
687
686
|
[
|
|
688
687
|
{ x: t.value.left, y: t.value.bottom - e.yOffset },
|
|
689
688
|
{ x: t.value.right, y: t.value.bottom - e.yOffset }
|
|
@@ -695,14 +694,14 @@ const Sl = ["id"], zl = ["onClick"], $l = {
|
|
|
695
694
|
);
|
|
696
695
|
});
|
|
697
696
|
}
|
|
698
|
-
function
|
|
699
|
-
Ta(), H.value ? (c.value !== null && a.value.style.chart.selector.show &&
|
|
700
|
-
(e.type === "line" || !e.type) && Na(e), Z.value && (Oa(e), u.value.showDataLabels && [!0, void 0].includes(e.dataLabels) &&
|
|
701
|
-
}),
|
|
697
|
+
function te() {
|
|
698
|
+
Ta(), H.value ? (c.value !== null && a.value.style.chart.selector.show && Je(), Da(), u.value.stacked && a.value.style.chart.grid.x.showAxis && Ha(), Ia.value.forEach((e) => {
|
|
699
|
+
(e.type === "line" || !e.type) && Na(e), Z.value && (Oa(e), u.value.showDataLabels && [!0, void 0].includes(e.dataLabels) && Fa(e));
|
|
700
|
+
}), me.value = fl(T.value)) : (me.value && (n.value.clearRect(0, 0, 1e4, 1e4), n.value.drawImage(me.value, 0, 0)), c.value !== null && a.value.style.chart.selector.show && Je(), c.value !== null && h.value.forEach((e) => {
|
|
702
701
|
if (e.type === "line" || !e.type || e.type === "plot") {
|
|
703
702
|
if (!e.coordinatesLine[c.value]) return;
|
|
704
703
|
e.coordinatesLine[c.value].x !== void 0 && e.coordinatesLine[c.value].y !== void 0 && ca(
|
|
705
|
-
|
|
704
|
+
n.value,
|
|
706
705
|
{
|
|
707
706
|
x: e.coordinatesLine[c.value].x,
|
|
708
707
|
y: e.coordinatesLine[c.value].y
|
|
@@ -714,24 +713,24 @@ const Sl = ["id"], zl = ["onClick"], $l = {
|
|
|
714
713
|
}
|
|
715
714
|
);
|
|
716
715
|
}
|
|
717
|
-
})), a.value.style.chart.grid.y.timeLabels.show &&
|
|
716
|
+
})), a.value.style.chart.grid.y.timeLabels.show && Ea(), a.value.style.chart.selector.show && a.value.style.chart.selector.showHorizontalSelector && Aa(), Pa(), Ra(), H.value = !1;
|
|
718
717
|
}
|
|
719
|
-
const
|
|
718
|
+
const he = dl(() => {
|
|
720
719
|
Z.value = !0, Ma();
|
|
721
720
|
}, I.value > 200 ? 10 : 1, !Z.value);
|
|
722
|
-
function
|
|
721
|
+
function oe(e) {
|
|
723
722
|
if ([null, void 0].includes(c.value) || !e.coordinatesLine[c.value]) return !1;
|
|
724
723
|
const { y: l, value: o } = e.coordinatesLine[c.value];
|
|
725
724
|
return { y: l, value: o };
|
|
726
725
|
}
|
|
727
726
|
function Ya(e) {
|
|
728
|
-
const { left: l, top: o } = T.value.getBoundingClientRect(),
|
|
729
|
-
if (M.value = (e.clientY - o) * 2, (M.value < t.value.top || M.value > t.value.bottom) && (M.value = null),
|
|
730
|
-
|
|
727
|
+
const { left: l, top: o } = T.value.getBoundingClientRect(), s = e.clientX - l;
|
|
728
|
+
if (M.value = (e.clientY - o) * 2, (M.value < t.value.top || M.value > t.value.bottom) && (M.value = null), s * 2 < t.value.left || s * 2 > t.value.right) {
|
|
729
|
+
ve.value = !1, c.value = null;
|
|
731
730
|
return;
|
|
732
731
|
}
|
|
733
|
-
const i =
|
|
734
|
-
if (c.value = Math.floor(i / t.value.slot),
|
|
732
|
+
const i = s * 2 - t.value.left;
|
|
733
|
+
if (c.value = Math.floor(i / t.value.slot), ve.value = !0, !Z.value) return;
|
|
735
734
|
let b = "";
|
|
736
735
|
const v = a.value.style.chart.tooltip.customFormat;
|
|
737
736
|
va(v) && vl(() => v({
|
|
@@ -745,7 +744,7 @@ const Sl = ["id"], zl = ["onClick"], $l = {
|
|
|
745
744
|
})),
|
|
746
745
|
series: h.value,
|
|
747
746
|
config: a.value
|
|
748
|
-
})) ?
|
|
747
|
+
})) ? ce.value = v({
|
|
749
748
|
seriesIndex: c.value,
|
|
750
749
|
datapoint: h.value.map((f) => ({
|
|
751
750
|
shape: f.shape || null,
|
|
@@ -756,62 +755,62 @@ const Sl = ["id"], zl = ["onClick"], $l = {
|
|
|
756
755
|
})),
|
|
757
756
|
series: h.value,
|
|
758
757
|
config: a.value
|
|
759
|
-
}) : (a.value.style.chart.grid.y.timeLabels.values.slice(r.value.start, r.value.end)[c.value] && (b += `<div style="padding-bottom: 6px; margin-bottom: 4px; border-bottom: 1px solid ${a.value.style.chart.tooltip.borderColor}; width:100%">${Y.value.slice(r.value.start, r.value.end)[c.value].text}</div>`), b += za.value.join(""),
|
|
758
|
+
}) : (a.value.style.chart.grid.y.timeLabels.values.slice(r.value.start, r.value.end)[c.value] && (b += `<div style="padding-bottom: 6px; margin-bottom: 4px; border-bottom: 1px solid ${a.value.style.chart.tooltip.borderColor}; width:100%">${Y.value.slice(r.value.start, r.value.end)[c.value].text}</div>`), b += za.value.join(""), ce.value = b), Z.value = !1;
|
|
760
759
|
}
|
|
761
760
|
D(() => c.value, (e) => {
|
|
762
|
-
|
|
761
|
+
he();
|
|
763
762
|
}), D(() => r.value, (e) => {
|
|
764
|
-
H.value = !0,
|
|
763
|
+
H.value = !0, te();
|
|
765
764
|
}, {
|
|
766
765
|
deep: !0
|
|
767
766
|
}), D(() => u.value.showDataLabels, (e) => {
|
|
768
|
-
H.value = !0,
|
|
767
|
+
H.value = !0, te();
|
|
769
768
|
}), D(() => M.value, (e) => {
|
|
770
|
-
e &&
|
|
769
|
+
e && te();
|
|
771
770
|
}), D(() => u.value.stacked, (e) => {
|
|
772
|
-
H.value = !0, Z.value = !0,
|
|
771
|
+
H.value = !0, Z.value = !0, he();
|
|
773
772
|
});
|
|
774
773
|
function Ua() {
|
|
775
|
-
|
|
774
|
+
ve.value = !1, c.value = null, ce.value = "", M.value = null, te();
|
|
776
775
|
}
|
|
777
|
-
const
|
|
778
|
-
|
|
779
|
-
|
|
776
|
+
const E = ze(null), q = ze(null), J = ze(null);
|
|
777
|
+
ua(() => {
|
|
778
|
+
we();
|
|
780
779
|
});
|
|
781
|
-
function
|
|
780
|
+
function we() {
|
|
782
781
|
if (ul(g.dataset) ? sl({
|
|
783
782
|
componentName: "VueUiXyCanvas",
|
|
784
783
|
type: "dataset"
|
|
785
|
-
}) : T.value && (
|
|
784
|
+
}) : T.value && (n.value = T.value.getContext("2d", { willReadFrequently: !0 })), a.value.responsive) {
|
|
786
785
|
const e = hl(() => {
|
|
787
786
|
const { width: l, height: o } = yl({
|
|
788
787
|
chart: P.value,
|
|
789
|
-
title: a.value.style.chart.title.text ?
|
|
790
|
-
legend: a.value.style.chart.legend.show ?
|
|
791
|
-
slicer: a.value.style.chart.zoom.show && I.value > 1 ?
|
|
792
|
-
source:
|
|
788
|
+
title: a.value.style.chart.title.text ? Pe.value : null,
|
|
789
|
+
legend: a.value.style.chart.legend.show ? Fe.value : null,
|
|
790
|
+
slicer: a.value.style.chart.zoom.show && I.value > 1 ? Ee.value : null,
|
|
791
|
+
source: Ae.value
|
|
793
792
|
});
|
|
794
793
|
requestAnimationFrame(() => {
|
|
795
|
-
|
|
794
|
+
Ye.value = `${l} / ${o}`;
|
|
796
795
|
});
|
|
797
796
|
});
|
|
798
|
-
|
|
797
|
+
E.value && (q.value && E.value.unobserve(q.value), E.value.disconnect()), E.value = new ResizeObserver(e), q.value = P.value.parentNode, E.value.observe(q.value);
|
|
799
798
|
}
|
|
800
|
-
|
|
799
|
+
J.value && J.value.disconnect(), J.value = new ResizeObserver((e) => {
|
|
801
800
|
for (const l of e)
|
|
802
|
-
l.contentBoxSize &&
|
|
803
|
-
}),
|
|
801
|
+
l.contentBoxSize && le.value && (H.value = !0, he());
|
|
802
|
+
}), J.value.observe(le.value), qe();
|
|
804
803
|
}
|
|
805
804
|
Ga(() => {
|
|
806
|
-
|
|
805
|
+
J.value && J.value.disconnect(), E.value && (q.value && E.value.unobserve(q.value), E.value.disconnect());
|
|
807
806
|
});
|
|
808
|
-
function
|
|
809
|
-
Ca("selectLegend", h.value.find((l) => l.absoluteIndex === e)), $.value.includes(e) ? $.value = $.value.filter((l) => l !== e) : $.value.push(e), H.value = !0,
|
|
807
|
+
function Ke(e) {
|
|
808
|
+
Ca("selectLegend", h.value.find((l) => l.absoluteIndex === e)), $.value.includes(e) ? $.value = $.value.filter((l) => l !== e) : $.value.push(e), H.value = !0, he();
|
|
810
809
|
}
|
|
811
|
-
const
|
|
810
|
+
const Qe = L(() => j.value.map((e, l) => ({
|
|
812
811
|
...e,
|
|
813
812
|
name: e.name,
|
|
814
|
-
color: ia(e.color) ||
|
|
813
|
+
color: ia(e.color) || Ve.value[l] || V[l] || V[l % V.length],
|
|
815
814
|
shape: e.shape || "circle",
|
|
816
815
|
prefix: e.prefix || "",
|
|
817
816
|
suffix: e.suffix || "",
|
|
@@ -819,7 +818,7 @@ const Sl = ["id"], zl = ["onClick"], $l = {
|
|
|
819
818
|
})).map((e) => ({
|
|
820
819
|
...e,
|
|
821
820
|
opacity: $.value.includes(e.absoluteIndex) ? 0.5 : 1,
|
|
822
|
-
segregate: () =>
|
|
821
|
+
segregate: () => Ke(e.absoluteIndex),
|
|
823
822
|
isSegregated: $.value.includes(e.absoluteIndex)
|
|
824
823
|
}))), Wa = L(() => ({
|
|
825
824
|
cy: "donut-div-legend",
|
|
@@ -828,7 +827,7 @@ const Sl = ["id"], zl = ["onClick"], $l = {
|
|
|
828
827
|
fontSize: a.value.style.chart.legend.fontSize,
|
|
829
828
|
paddingBottom: 12,
|
|
830
829
|
fontWeight: a.value.style.chart.legend.bold ? "bold" : ""
|
|
831
|
-
})),
|
|
830
|
+
})), ye = L(() => {
|
|
832
831
|
const e = [""].concat(h.value.map((i) => i.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>');
|
|
833
832
|
let l = [];
|
|
834
833
|
for (let i = 0; i < I.value; i += 1) {
|
|
@@ -847,9 +846,9 @@ const Sl = ["id"], zl = ["onClick"], $l = {
|
|
|
847
846
|
outline: a.value.table.td.outline
|
|
848
847
|
},
|
|
849
848
|
breakpoint: a.value.table.responsiveBreakpoint
|
|
850
|
-
},
|
|
851
|
-
return { head: e, body: l.slice(0, r.value.end - r.value.start), config: o, colNames:
|
|
852
|
-
}),
|
|
849
|
+
}, s = [a.value.table.columnNames.period].concat(h.value.map((i) => i.name)).concat(a.value.table.columnNames.total);
|
|
850
|
+
return { head: e, body: l.slice(0, r.value.end - r.value.start), config: o, colNames: s };
|
|
851
|
+
}), ea = L(() => {
|
|
853
852
|
if (h.value.length === 0) return { head: [], body: [], config: {}, columnNames: [] };
|
|
854
853
|
const e = h.value.map((o) => ({
|
|
855
854
|
label: o.name,
|
|
@@ -857,77 +856,77 @@ const Sl = ["id"], zl = ["onClick"], $l = {
|
|
|
857
856
|
type: o.type
|
|
858
857
|
})), l = [];
|
|
859
858
|
for (let o = r.value.start; o < r.value.end; o += 1) {
|
|
860
|
-
const
|
|
859
|
+
const s = [a.value.style.chart.grid.y.timeLabels.values[o] ? Y.value[o].text : o + 1];
|
|
861
860
|
h.value.forEach((i) => {
|
|
862
|
-
|
|
863
|
-
}), l.push(
|
|
861
|
+
s.push(Number((i.series[o] || 0).toFixed(a.value.table.rounding)));
|
|
862
|
+
}), l.push(s);
|
|
864
863
|
}
|
|
865
864
|
return { head: e, body: l };
|
|
866
865
|
});
|
|
867
|
-
function
|
|
868
|
-
const l = [[a.value.style.chart.title.text], [a.value.style.chart.title.subtitle.text], [""]], o = ["", ...
|
|
866
|
+
function aa(e = null) {
|
|
867
|
+
const l = [[a.value.style.chart.title.text], [a.value.style.chart.title.subtitle.text], [""]], o = ["", ...ea.value.head.map((v) => v.label)], s = ea.value.body, i = l.concat([o]).concat(s), b = nl(i);
|
|
869
868
|
e ? e(b) : il({ csvContent: b, title: a.value.style.chart.title.text || "vue-ui-xy-canvas" });
|
|
870
869
|
}
|
|
871
870
|
function Xa() {
|
|
872
871
|
return h.value;
|
|
873
872
|
}
|
|
874
|
-
function
|
|
873
|
+
function la() {
|
|
875
874
|
u.value.showTable = !u.value.showTable;
|
|
876
875
|
}
|
|
877
|
-
function
|
|
876
|
+
function ta() {
|
|
878
877
|
u.value.showDataLabels = !u.value.showDataLabels;
|
|
879
878
|
}
|
|
880
|
-
function
|
|
879
|
+
function oa() {
|
|
881
880
|
u.value.stacked = !u.value.stacked;
|
|
882
881
|
}
|
|
883
|
-
function
|
|
882
|
+
function ra() {
|
|
884
883
|
u.value.showTooltip = !u.value.showTooltip;
|
|
885
884
|
}
|
|
886
|
-
const
|
|
887
|
-
function
|
|
888
|
-
|
|
885
|
+
const fe = d(!1);
|
|
886
|
+
function Se() {
|
|
887
|
+
fe.value = !fe.value;
|
|
889
888
|
}
|
|
890
889
|
async function Ba({ scale: e = 2 } = {}) {
|
|
891
890
|
if (!P.value) return;
|
|
892
|
-
const { width: l, height: o } = P.value.getBoundingClientRect(),
|
|
891
|
+
const { width: l, height: o } = P.value.getBoundingClientRect(), s = l / o, { imageUri: i, base64: b } = await Cl({ domElement: P.value, base64: !0, img: !0, scale: e });
|
|
893
892
|
return {
|
|
894
893
|
imageUri: i,
|
|
895
894
|
base64: b,
|
|
896
895
|
title: a.value.style.chart.title.text,
|
|
897
896
|
width: l,
|
|
898
897
|
height: o,
|
|
899
|
-
aspectRatio:
|
|
898
|
+
aspectRatio: s
|
|
900
899
|
};
|
|
901
900
|
}
|
|
902
901
|
return ya({
|
|
903
902
|
getData: Xa,
|
|
904
903
|
getImage: Ba,
|
|
905
|
-
generateCsv:
|
|
906
|
-
generatePdf:
|
|
907
|
-
generateImage:
|
|
908
|
-
toggleTable:
|
|
909
|
-
toggleLabels:
|
|
910
|
-
toggleStack:
|
|
911
|
-
toggleTooltip:
|
|
912
|
-
toggleAnnotator:
|
|
913
|
-
toggleFullscreen:
|
|
914
|
-
}), (e, l) => (S(),
|
|
915
|
-
style:
|
|
904
|
+
generateCsv: aa,
|
|
905
|
+
generatePdf: Xe,
|
|
906
|
+
generateImage: Be,
|
|
907
|
+
toggleTable: la,
|
|
908
|
+
toggleLabels: ta,
|
|
909
|
+
toggleStack: oa,
|
|
910
|
+
toggleTooltip: ra,
|
|
911
|
+
toggleAnnotator: Se,
|
|
912
|
+
toggleFullscreen: _e
|
|
913
|
+
}), (e, l) => (S(), se("div", {
|
|
914
|
+
style: Q(`width:100%; position:relative; ${a.value.responsive ? "height: 100%" : ""}`),
|
|
916
915
|
ref_key: "xy",
|
|
917
916
|
ref: P,
|
|
918
|
-
id: `xy_canvas_${
|
|
919
|
-
class: Za(`vue-ui-donut ${
|
|
920
|
-
onMouseenter: l[5] || (l[5] = () => p(
|
|
921
|
-
onMouseleave: l[6] || (l[6] = () => p(
|
|
917
|
+
id: `xy_canvas_${pe.value}`,
|
|
918
|
+
class: Za(`vue-ui-donut ${de.value ? "vue-data-ui-wrapper-fullscreen" : ""}`),
|
|
919
|
+
onMouseenter: l[5] || (l[5] = () => p(De)(!0)),
|
|
920
|
+
onMouseleave: l[6] || (l[6] = () => p(De)(!1))
|
|
922
921
|
}, [
|
|
923
|
-
a.value.style.chart.title.text ? (S(),
|
|
922
|
+
a.value.style.chart.title.text ? (S(), se("div", {
|
|
924
923
|
key: 0,
|
|
925
924
|
ref_key: "chartTitle",
|
|
926
|
-
ref:
|
|
927
|
-
style:
|
|
925
|
+
ref: Pe,
|
|
926
|
+
style: Q(`width:100%;background:${a.value.style.chart.backgroundColor};`)
|
|
928
927
|
}, [
|
|
929
928
|
(S(), N(xl, {
|
|
930
|
-
key: `title_${
|
|
929
|
+
key: `title_${be.value}`,
|
|
931
930
|
config: {
|
|
932
931
|
title: {
|
|
933
932
|
cy: "xy-canvas-title",
|
|
@@ -940,49 +939,49 @@ const Sl = ["id"], zl = ["onClick"], $l = {
|
|
|
940
939
|
}
|
|
941
940
|
}, null, 8, ["config"]))
|
|
942
941
|
], 4)) : X("", !0),
|
|
943
|
-
a.value.userOptions.show &&
|
|
942
|
+
a.value.userOptions.show && ke.value && (p(Ne) || p(Ce)) ? (S(), N(p(La), {
|
|
944
943
|
ref: "details",
|
|
945
|
-
key: `user_option_${
|
|
944
|
+
key: `user_option_${Re.value}`,
|
|
946
945
|
backgroundColor: a.value.style.chart.backgroundColor,
|
|
947
946
|
color: a.value.style.chart.color,
|
|
948
|
-
isPrinting: p(
|
|
949
|
-
isImaging: p(
|
|
950
|
-
uid:
|
|
947
|
+
isPrinting: p(Ue),
|
|
948
|
+
isImaging: p(We),
|
|
949
|
+
uid: pe.value,
|
|
951
950
|
hasTooltip: a.value.userOptions.buttons.tooltip && a.value.style.chart.tooltip.show,
|
|
952
951
|
hasPdf: a.value.userOptions.buttons.pdf,
|
|
953
952
|
hasImg: a.value.userOptions.buttons.img,
|
|
954
953
|
hasXls: a.value.userOptions.buttons.csv,
|
|
955
954
|
hasLabel: a.value.userOptions.buttons.labels,
|
|
956
|
-
hasStack:
|
|
955
|
+
hasStack: Me.dataset.length > 1 && a.value.userOptions.buttons.stack,
|
|
957
956
|
hasFullscreen: a.value.userOptions.buttons.fullscreen,
|
|
958
957
|
hasTable: r.value.end - r.value.start < 200 && a.value.userOptions.buttons.table,
|
|
959
|
-
isFullscreen:
|
|
958
|
+
isFullscreen: de.value,
|
|
960
959
|
isTooltip: u.value.showTooltip,
|
|
961
960
|
isStacked: u.value.stacked,
|
|
962
961
|
titles: { ...a.value.userOptions.buttonTitles },
|
|
963
962
|
chartElement: P.value,
|
|
964
963
|
position: a.value.userOptions.position,
|
|
965
964
|
hasAnnotator: a.value.userOptions.buttons.annotator,
|
|
966
|
-
isAnnotation:
|
|
965
|
+
isAnnotation: fe.value,
|
|
967
966
|
callbacks: a.value.userOptions.callbacks,
|
|
968
967
|
printScale: a.value.userOptions.print.scale,
|
|
969
|
-
onToggleFullscreen:
|
|
970
|
-
onGeneratePdf: p(
|
|
971
|
-
onGenerateCsv:
|
|
972
|
-
onGenerateImage: p(
|
|
973
|
-
onToggleTable:
|
|
974
|
-
onToggleLabels:
|
|
975
|
-
onToggleStack:
|
|
976
|
-
onToggleTooltip:
|
|
977
|
-
onToggleAnnotator:
|
|
978
|
-
style:
|
|
979
|
-
visibility: p(
|
|
968
|
+
onToggleFullscreen: _e,
|
|
969
|
+
onGeneratePdf: p(Xe),
|
|
970
|
+
onGenerateCsv: aa,
|
|
971
|
+
onGenerateImage: p(Be),
|
|
972
|
+
onToggleTable: la,
|
|
973
|
+
onToggleLabels: ta,
|
|
974
|
+
onToggleStack: oa,
|
|
975
|
+
onToggleTooltip: ra,
|
|
976
|
+
onToggleAnnotator: Se,
|
|
977
|
+
style: Q({
|
|
978
|
+
visibility: p(Ne) ? p(Ce) ? "visible" : "hidden" : "visible"
|
|
980
979
|
})
|
|
981
980
|
}, ja({ _: 2 }, [
|
|
982
981
|
e.$slots.menuIcon ? {
|
|
983
982
|
name: "menuIcon",
|
|
984
|
-
fn: x(({ isOpen: o, color:
|
|
985
|
-
k(e.$slots, "menuIcon", B(_({ isOpen: o, color:
|
|
983
|
+
fn: x(({ isOpen: o, color: s }) => [
|
|
984
|
+
k(e.$slots, "menuIcon", B(_({ isOpen: o, color: s })), void 0, !0)
|
|
986
985
|
]),
|
|
987
986
|
key: "0"
|
|
988
987
|
} : void 0,
|
|
@@ -1037,26 +1036,26 @@ const Sl = ["id"], zl = ["onClick"], $l = {
|
|
|
1037
1036
|
} : void 0,
|
|
1038
1037
|
e.$slots.optionFullscreen ? {
|
|
1039
1038
|
name: "optionFullscreen",
|
|
1040
|
-
fn: x(({ toggleFullscreen: o, isFullscreen:
|
|
1041
|
-
k(e.$slots, "optionFullscreen", B(_({ toggleFullscreen: o, isFullscreen:
|
|
1039
|
+
fn: x(({ toggleFullscreen: o, isFullscreen: s }) => [
|
|
1040
|
+
k(e.$slots, "optionFullscreen", B(_({ toggleFullscreen: o, isFullscreen: s })), void 0, !0)
|
|
1042
1041
|
]),
|
|
1043
1042
|
key: "8"
|
|
1044
1043
|
} : void 0,
|
|
1045
1044
|
e.$slots.optionAnnotator ? {
|
|
1046
1045
|
name: "optionAnnotator",
|
|
1047
|
-
fn: x(({ toggleAnnotator: o, isAnnotator:
|
|
1048
|
-
k(e.$slots, "optionAnnotator", B(_({ toggleAnnotator: o, isAnnotator:
|
|
1046
|
+
fn: x(({ toggleAnnotator: o, isAnnotator: s }) => [
|
|
1047
|
+
k(e.$slots, "optionAnnotator", B(_({ toggleAnnotator: o, isAnnotator: s })), void 0, !0)
|
|
1049
1048
|
]),
|
|
1050
1049
|
key: "9"
|
|
1051
1050
|
} : void 0
|
|
1052
1051
|
]), 1032, ["backgroundColor", "color", "isPrinting", "isImaging", "uid", "hasTooltip", "hasPdf", "hasImg", "hasXls", "hasLabel", "hasStack", "hasFullscreen", "hasTable", "isFullscreen", "isTooltip", "isStacked", "titles", "chartElement", "position", "hasAnnotator", "isAnnotation", "callbacks", "printScale", "onGeneratePdf", "onGenerateImage", "style"])) : X("", !0),
|
|
1053
|
-
|
|
1052
|
+
ne("div", {
|
|
1054
1053
|
class: "vue-ui-xy-canvas",
|
|
1055
|
-
style:
|
|
1054
|
+
style: Q(`position: relative; aspect-ratio: ${Ye.value}`),
|
|
1056
1055
|
ref_key: "container",
|
|
1057
|
-
ref:
|
|
1056
|
+
ref: le
|
|
1058
1057
|
}, [
|
|
1059
|
-
|
|
1058
|
+
ke.value ? (S(), se("canvas", {
|
|
1060
1059
|
key: 0,
|
|
1061
1060
|
ref_key: "canvas",
|
|
1062
1061
|
ref: T,
|
|
@@ -1082,7 +1081,7 @@ const Sl = ["id"], zl = ["onClick"], $l = {
|
|
|
1082
1081
|
}
|
|
1083
1082
|
}, null, 8, ["config"])),
|
|
1084
1083
|
qa(p(xa), {
|
|
1085
|
-
show: u.value.showTooltip &&
|
|
1084
|
+
show: u.value.showTooltip && ve.value,
|
|
1086
1085
|
backgroundColor: a.value.style.chart.tooltip.backgroundColor,
|
|
1087
1086
|
color: a.value.style.chart.tooltip.color,
|
|
1088
1087
|
fontSize: a.value.style.chart.tooltip.fontSize,
|
|
@@ -1092,30 +1091,32 @@ const Sl = ["id"], zl = ["onClick"], $l = {
|
|
|
1092
1091
|
position: a.value.style.chart.tooltip.position,
|
|
1093
1092
|
offsetY: a.value.style.chart.tooltip.offsetY,
|
|
1094
1093
|
parent: p(T),
|
|
1095
|
-
content:
|
|
1096
|
-
isFullscreen:
|
|
1094
|
+
content: ce.value,
|
|
1095
|
+
isFullscreen: de.value,
|
|
1097
1096
|
backgroundOpacity: a.value.style.chart.tooltip.backgroundOpacity,
|
|
1098
|
-
isCustom: p(va)(a.value.style.chart.tooltip.customFormat)
|
|
1097
|
+
isCustom: p(va)(a.value.style.chart.tooltip.customFormat),
|
|
1098
|
+
smooth: a.value.style.chart.tooltip.smooth,
|
|
1099
|
+
backdropFilter: a.value.style.chart.tooltip.backdropFilter
|
|
1099
1100
|
}, {
|
|
1100
1101
|
"tooltip-before": x(() => [
|
|
1101
|
-
k(e.$slots, "tooltip-before", B(_({ ...
|
|
1102
|
+
k(e.$slots, "tooltip-before", B(_({ ...Te.value })), void 0, !0)
|
|
1102
1103
|
]),
|
|
1103
1104
|
"tooltip-after": x(() => [
|
|
1104
|
-
k(e.$slots, "tooltip-after", B(_({ ...
|
|
1105
|
+
k(e.$slots, "tooltip-after", B(_({ ...Te.value })), void 0, !0)
|
|
1105
1106
|
]),
|
|
1106
1107
|
_: 3
|
|
1107
|
-
}, 8, ["show", "backgroundColor", "color", "fontSize", "borderRadius", "borderColor", "borderWidth", "position", "offsetY", "parent", "content", "isFullscreen", "backgroundOpacity", "isCustom"])
|
|
1108
|
+
}, 8, ["show", "backgroundColor", "color", "fontSize", "borderRadius", "borderColor", "borderWidth", "position", "offsetY", "parent", "content", "isFullscreen", "backgroundOpacity", "isCustom", "smooth", "backdropFilter"])
|
|
1108
1109
|
], 4),
|
|
1109
|
-
|
|
1110
|
+
ne("div", {
|
|
1110
1111
|
ref_key: "chartSlicer",
|
|
1111
|
-
ref:
|
|
1112
|
-
style:
|
|
1112
|
+
ref: Ee,
|
|
1113
|
+
style: Q(`width:100%;background:${a.value.style.chart.backgroundColor}`),
|
|
1113
1114
|
"data-dom-to-png-ignore": ""
|
|
1114
1115
|
}, [
|
|
1115
1116
|
a.value.style.chart.zoom.show && I.value > 1 ? (S(), N(Ll, {
|
|
1116
1117
|
ref_key: "slicerComponent",
|
|
1117
|
-
ref:
|
|
1118
|
-
key: `slicer_${
|
|
1118
|
+
ref: je,
|
|
1119
|
+
key: `slicer_${Oe.value}`,
|
|
1119
1120
|
background: a.value.style.chart.zoom.color,
|
|
1120
1121
|
borderColor: a.value.style.chart.backgroundColor,
|
|
1121
1122
|
fontSize: a.value.style.chart.zoom.fontSize,
|
|
@@ -1137,7 +1138,7 @@ const Sl = ["id"], zl = ["onClick"], $l = {
|
|
|
1137
1138
|
refreshEndPoint: a.value.style.chart.zoom.endIndex !== null ? a.value.style.chart.zoom.endIndex + 1 : I.value,
|
|
1138
1139
|
enableRangeHandles: a.value.style.chart.zoom.enableRangeHandles,
|
|
1139
1140
|
enableSelectionDrag: a.value.style.chart.zoom.enableSelectionDrag,
|
|
1140
|
-
onReset:
|
|
1141
|
+
onReset: Ze
|
|
1141
1142
|
}, {
|
|
1142
1143
|
"reset-action": x(({ reset: o }) => [
|
|
1143
1144
|
k(e.$slots, "reset-action", B(_({ reset: o })), void 0, !0)
|
|
@@ -1145,35 +1146,35 @@ const Sl = ["id"], zl = ["onClick"], $l = {
|
|
|
1145
1146
|
_: 3
|
|
1146
1147
|
}, 8, ["background", "borderColor", "fontSize", "useResetSlot", "labelLeft", "labelRight", "textColor", "inputColor", "selectColor", "max", "valueStart", "valueEnd", "start", "end", "refreshStartPoint", "refreshEndPoint", "enableRangeHandles", "enableSelectionDrag"])) : X("", !0)
|
|
1147
1148
|
], 4),
|
|
1148
|
-
|
|
1149
|
+
ne("div", {
|
|
1149
1150
|
ref_key: "chartLegend",
|
|
1150
|
-
ref:
|
|
1151
|
+
ref: Fe
|
|
1151
1152
|
}, [
|
|
1152
|
-
a.value.style.chart.legend.show &&
|
|
1153
|
-
legendSet:
|
|
1153
|
+
a.value.style.chart.legend.show && ke.value ? (S(), N(bl, {
|
|
1154
|
+
legendSet: Qe.value,
|
|
1154
1155
|
config: Wa.value,
|
|
1155
|
-
key: `legend_${
|
|
1156
|
-
onClickMarker: l[3] || (l[3] = ({ i: o }) =>
|
|
1156
|
+
key: `legend_${Le.value}`,
|
|
1157
|
+
onClickMarker: l[3] || (l[3] = ({ i: o }) => Ke(o))
|
|
1157
1158
|
}, {
|
|
1158
|
-
item: x(({ legend: o, index:
|
|
1159
|
-
|
|
1159
|
+
item: x(({ legend: o, index: s }) => [
|
|
1160
|
+
ne("div", {
|
|
1160
1161
|
onClick: (i) => o.segregate(),
|
|
1161
|
-
style:
|
|
1162
|
+
style: Q(`opacity:${$.value.includes(s) ? 0.5 : 1}`)
|
|
1162
1163
|
}, na(o.name), 13, zl)
|
|
1163
1164
|
]),
|
|
1164
1165
|
_: 1
|
|
1165
1166
|
}, 8, ["legendSet", "config"])) : k(e.$slots, "legend", {
|
|
1166
1167
|
key: 1,
|
|
1167
|
-
legend:
|
|
1168
|
+
legend: Qe.value
|
|
1168
1169
|
}, void 0, !0)
|
|
1169
1170
|
], 512),
|
|
1170
|
-
e.$slots.watermark ? (S(),
|
|
1171
|
-
k(e.$slots, "watermark", B(_({ isPrinting: p(
|
|
1171
|
+
e.$slots.watermark ? (S(), se("div", $l, [
|
|
1172
|
+
k(e.$slots, "watermark", B(_({ isPrinting: p(Ue) || p(We) })), void 0, !0)
|
|
1172
1173
|
])) : X("", !0),
|
|
1173
|
-
e.$slots.source ? (S(),
|
|
1174
|
+
e.$slots.source ? (S(), se("div", {
|
|
1174
1175
|
key: 3,
|
|
1175
1176
|
ref_key: "source",
|
|
1176
|
-
ref:
|
|
1177
|
+
ref: Ae,
|
|
1177
1178
|
dir: "auto"
|
|
1178
1179
|
}, [
|
|
1179
1180
|
k(e.$slots, "source", {}, void 0, !0)
|
|
@@ -1196,16 +1197,16 @@ const Sl = ["id"], zl = ["onClick"], $l = {
|
|
|
1196
1197
|
}, {
|
|
1197
1198
|
content: x(() => [
|
|
1198
1199
|
(S(), N(p(pa), {
|
|
1199
|
-
key: `table_${
|
|
1200
|
-
colNames:
|
|
1201
|
-
head:
|
|
1202
|
-
body:
|
|
1203
|
-
config:
|
|
1200
|
+
key: `table_${xe.value}`,
|
|
1201
|
+
colNames: ye.value.colNames,
|
|
1202
|
+
head: ye.value.head,
|
|
1203
|
+
body: ye.value.body,
|
|
1204
|
+
config: ye.value.config,
|
|
1204
1205
|
title: `${a.value.style.chart.title.text}${a.value.style.chart.title.subtitle.text ? ` : ${a.value.style.chart.title.subtitle.text}` : ""}`,
|
|
1205
1206
|
onClose: l[4] || (l[4] = (o) => u.value.showTable = !1)
|
|
1206
1207
|
}, {
|
|
1207
1208
|
th: x(({ th: o }) => [
|
|
1208
|
-
|
|
1209
|
+
ne("div", { innerHTML: o }, null, 8, Il)
|
|
1209
1210
|
]),
|
|
1210
1211
|
td: x(({ td: o }) => [
|
|
1211
1212
|
Ja(na(o), 1)
|
|
@@ -1220,12 +1221,12 @@ const Sl = ["id"], zl = ["onClick"], $l = {
|
|
|
1220
1221
|
parent: P.value,
|
|
1221
1222
|
backgroundColor: a.value.style.chart.backgroundColor,
|
|
1222
1223
|
color: a.value.style.chart.color,
|
|
1223
|
-
active:
|
|
1224
|
-
onClose:
|
|
1224
|
+
active: fe.value,
|
|
1225
|
+
onClose: Se
|
|
1225
1226
|
}, null, 8, ["parent", "backgroundColor", "color", "active"])) : X("", !0)
|
|
1226
1227
|
], 46, Sl));
|
|
1227
1228
|
}
|
|
1228
|
-
}, Xl = /* @__PURE__ */ wl(Ml, [["__scopeId", "data-v-
|
|
1229
|
+
}, Xl = /* @__PURE__ */ wl(Ml, [["__scopeId", "data-v-69531ac6"]]);
|
|
1229
1230
|
export {
|
|
1230
1231
|
Xl as default
|
|
1231
1232
|
};
|