vue-data-ui 3.0.0-next.3 → 3.0.0-next.30
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 +1 -1
- package/dist/{Arrow-C8ztMhxn.js → Arrow-gZkDqarC.js} +1 -1
- package/dist/{BaseDraggableDialog-DoA1cXmQ.js → BaseDraggableDialog-Cx7MDUn7.js} +2 -2
- package/dist/{BaseIcon-TJm1JI2f.js → BaseIcon-DEGIw8ne.js} +1 -1
- package/dist/{useLoading-Bt5Doa8m.js → BaseScanner-DIK2NTdp.js} +11 -11
- package/dist/{ColorPicker-DwhabPvD.js → ColorPicker-dVo9qgIk.js} +2 -2
- package/dist/{DataTable-DObwKftY.js → DataTable-DjL9vVfm.js} +2 -2
- package/dist/{Legend-C-EDWcHp.js → Legend-DNs8ZSxL.js} +2 -2
- package/dist/{NonSvgPenAndPaper-Cmy4Opaq.js → NonSvgPenAndPaper-Bmu00306.js} +3 -3
- package/dist/{PackageVersion-B_SVQo0g.js → PackageVersion-SqC1iXfO.js} +1 -1
- package/dist/{PenAndPaper-CFbTGuB_.js → PenAndPaper-C1bF0gIz.js} +3 -3
- package/dist/{Shape-DGduPk8q.js → Shape-CNmKltYG.js} +1 -1
- package/dist/{Slicer-VumiAmDi.js → Slicer-DYffOkSj.js} +2 -2
- package/dist/{SparkTooltip-DrRmoIkR.js → SparkTooltip-BuPeepCP.js} +7 -7
- package/dist/{Title-Dahu_Ia-.js → Title-B21jaJ0n.js} +1 -1
- package/dist/{Tooltip-j8grOyYT.js → Tooltip-C4HWh3fx.js} +1 -1
- package/dist/{UserOptions-BOIQ8NtD.js → UserOptions-DQDPN9YO.js} +2 -2
- package/dist/{dom-to-png-00aHI4Vj.js → dom-to-png-Z16yk8O6.js} +1 -1
- package/dist/{img-DFeNRkbq.js → img-UQKhhbxb.js} +1 -1
- package/dist/{index-DKjAxJY6.js → index-Bxh2efzz.js} +1298 -1180
- package/dist/{pdf-COmwjbLG.js → pdf-D2K9GCDq.js} +1 -1
- package/dist/style.css +1 -1
- package/dist/types/vue-data-ui.d.cts +140 -15
- package/dist/types/vue-data-ui.d.ts +140 -15
- package/dist/{useNestedProp-Cmx8ApWu.js → useNestedProp-BGEUK51b.js} +1 -1
- package/dist/{usePrinter-BefhLUKK.js → usePrinter-CfB_poc_.js} +2 -2
- package/dist/useTimeLabelCollider-V7AOiPLB.js +71 -0
- package/dist/{useTimeLabels-Mrr0jrpL.js → useTimeLabels-DFkUfjfs.js} +211 -152
- package/dist/{vue-data-ui-kdcEQgS0.js → vue-data-ui-Em_nyncZ.js} +80 -74
- package/dist/vue-data-ui.js +58 -56
- package/dist/{vue-ui-3d-bar-Lv9eoXpT.js → vue-ui-3d-bar-KFXQhCpk.js} +6 -6
- package/dist/{vue-ui-accordion-BhrF0D_h.js → vue-ui-accordion-CXj3OfMj.js} +3 -3
- package/dist/{vue-ui-age-pyramid-DN94DM1L.js → vue-ui-age-pyramid-Bygd_6Lj.js} +6 -6
- package/dist/{vue-ui-annotator-D-YFzFco.js → vue-ui-annotator-CaxhGvw9.js} +2 -2
- package/dist/{vue-ui-bullet--c-hIC1J.js → vue-ui-bullet-xsVzeIGY.js} +7 -7
- package/dist/vue-ui-candlestick-DT3NblSj.js +989 -0
- package/dist/{vue-ui-carousel-table-Bg4_nEqO.js → vue-ui-carousel-table-Bj6Blcps.js} +4 -4
- package/dist/{vue-ui-chestnut-D9BP8n-D.js → vue-ui-chestnut-Bzi7pvOQ.js} +5 -5
- package/dist/{vue-ui-chord-DDa4TTtv.js → vue-ui-chord-SN0lkfJI.js} +8 -8
- package/dist/{vue-ui-circle-pack-DWxEHCSN.js → vue-ui-circle-pack-BwH7JGeH.js} +26 -26
- package/dist/{vue-ui-cursor-BtLD4k-n.js → vue-ui-cursor-BLHqKKuQ.js} +2 -2
- package/dist/{vue-ui-dashboard-DvyNEYA8.js → vue-ui-dashboard-C5ye3aO2.js} +62 -62
- package/dist/{vue-ui-digits-XkSs-Fvw.js → vue-ui-digits-fWW_yCiA.js} +2 -2
- package/dist/{vue-ui-donut-BO2QuXBj.js → vue-ui-donut-VI_2cil0.js} +405 -380
- package/dist/vue-ui-donut-evolution-BMDGbLPk.js +1072 -0
- package/dist/{vue-ui-dumbbell-jtJmPKky.js → vue-ui-dumbbell-DYVwpQdP.js} +7 -7
- package/dist/{vue-ui-flow-D1hSlRXa.js → vue-ui-flow-BP3lwS2c.js} +7 -7
- package/dist/{vue-ui-funnel-BlLlAOtx.js → vue-ui-funnel-C2gKEJrg.js} +6 -6
- package/dist/{vue-ui-galaxy-BZAhXSnB.js → vue-ui-galaxy-CHu9EpUI.js} +5 -5
- package/dist/{vue-ui-gauge-FdnYVol9.js → vue-ui-gauge-DXoBEk4e.js} +6 -6
- package/dist/{vue-ui-gizmo-BXiMNDNp.js → vue-ui-gizmo-DpWaeVxb.js} +3 -3
- package/dist/{vue-ui-heatmap-BUmZvmK0.js → vue-ui-heatmap-C6Xh5fmd.js} +7 -7
- package/dist/{vue-ui-history-plot-CTT0NO2g.js → vue-ui-history-plot-CH4RJSqN.js} +7 -7
- package/dist/{vue-ui-kpi-BNNqPORJ.js → vue-ui-kpi-DJrypxm5.js} +3 -3
- package/dist/{vue-ui-mini-loader-wa4WjqZj.js → vue-ui-mini-loader-BMaEgYp1.js} +2 -2
- package/dist/{vue-ui-molecule-NGbWYvw-.js → vue-ui-molecule-om_udncc.js} +5 -5
- package/dist/{vue-ui-mood-radar-Dz2YUYPG.js → vue-ui-mood-radar-BOd7BMa4.js} +7 -7
- package/dist/vue-ui-nested-donuts-B6krlgFx.js +1284 -0
- package/dist/{vue-ui-onion-DUeU3zvH.js → vue-ui-onion-COQ1H7Ft.js} +7 -7
- package/dist/{vue-ui-parallel-coordinate-plot-5158EX3T.js → vue-ui-parallel-coordinate-plot-CEKsfccd.js} +8 -8
- package/dist/{vue-ui-quadrant-BEaCxPxR.js → vue-ui-quadrant-C88vkF8q.js} +8 -8
- package/dist/{vue-ui-quick-chart-C3yTivjK.js → vue-ui-quick-chart-CG2lY19C.js} +266 -264
- package/dist/{vue-ui-radar-CwRo-de_.js → vue-ui-radar-CUAYzxM4.js} +7 -7
- package/dist/{vue-ui-rating-nHTBjTie.js → vue-ui-rating-DT0BLQ1G.js} +2 -2
- package/dist/{vue-ui-relation-circle-w7TYrdHz.js → vue-ui-relation-circle-Ek_uAHpF.js} +6 -6
- package/dist/{vue-ui-ridgeline-Dk9xpHSw.js → vue-ui-ridgeline-73OXSMcJ.js} +9 -9
- package/dist/{vue-ui-rings-tCL5utj_.js → vue-ui-rings-D1gK_JVs.js} +8 -8
- package/dist/{vue-ui-scatter-BJUJRCto.js → vue-ui-scatter-DCy4Vb84.js} +8 -8
- package/dist/{vue-ui-skeleton-Cf09cngz.js → vue-ui-skeleton-DIb-2uan.js} +3 -3
- package/dist/{vue-ui-smiley-BvoOjmJx.js → vue-ui-smiley-DiIu0kjQ.js} +2 -2
- package/dist/{vue-ui-spark-trend-Bdz2gHnU.js → vue-ui-spark-trend-BPczzwfH.js} +3 -3
- package/dist/{vue-ui-sparkbar-CS1FzyFk.js → vue-ui-sparkbar-B4LpToMU.js} +3 -3
- package/dist/{vue-ui-sparkgauge-auWy_YMm.js → vue-ui-sparkgauge-D9KwmalJ.js} +3 -3
- package/dist/{vue-ui-sparkhistogram-yA_F8Ls5.js → vue-ui-sparkhistogram-h7qmzAe1.js} +4 -4
- package/dist/vue-ui-sparkline-DYYy38Fu.js +489 -0
- package/dist/{vue-ui-sparkstackbar-BhqOPIZT.js → vue-ui-sparkstackbar-DIIyxzKM.js} +3 -3
- package/dist/vue-ui-stackbar-BhPcAjIe.js +1358 -0
- package/dist/{vue-ui-strip-plot-D7KgSU5y.js → vue-ui-strip-plot-9wxxXL3R.js} +7 -7
- package/dist/{vue-ui-table-BDJg5T9l.js → vue-ui-table-FAEiGW1W.js} +3 -3
- package/dist/{vue-ui-table-heatmap-Pp2gbL5G.js → vue-ui-table-heatmap-Cwbw5Rqy.js} +5 -5
- package/dist/{vue-ui-table-sparkline-CmZBjiWv.js → vue-ui-table-sparkline-DnZ44NiP.js} +4 -4
- package/dist/{vue-ui-thermometer-ClY99Umm.js → vue-ui-thermometer-CHFtR_VC.js} +6 -6
- package/dist/{vue-ui-timer-_Bck3rxo.js → vue-ui-timer-DWzZTLxC.js} +5 -5
- package/dist/{vue-ui-tiremarks-C2CtoJT_.js → vue-ui-tiremarks-DTS-ZQRp.js} +6 -6
- package/dist/{vue-ui-treemap-CM-zqI6U.js → vue-ui-treemap-B5OdGgS-.js} +8 -8
- package/dist/vue-ui-vertical-bar-CcjDg9Bc.js +1106 -0
- package/dist/{vue-ui-waffle-B21kT4HO.js → vue-ui-waffle-C1XVqncx.js} +8 -8
- package/dist/{vue-ui-wheel-Dqv-ta7L.js → vue-ui-wheel-DEIJPpR4.js} +6 -6
- package/dist/{vue-ui-word-cloud-DHjvCwD8.js → vue-ui-word-cloud-CUzU4JpO.js} +6 -6
- package/dist/{vue-ui-world-h3Csu0YN.js → vue-ui-world-D0pONCg9.js} +6 -6
- package/dist/vue-ui-xy-EoeoBLu2.js +3027 -0
- package/dist/{vue-ui-xy-canvas-sIRUM_Be.js → vue-ui-xy-canvas-Do-IpmFr.js} +252 -253
- package/package.json +1 -1
- package/dist/vue-ui-candlestick-Dz0D7t8f.js +0 -873
- package/dist/vue-ui-donut-evolution-CQDtCf7k.js +0 -903
- package/dist/vue-ui-nested-donuts-ywwGdEJO.js +0 -1177
- package/dist/vue-ui-sparkline-B-sCAUEL.js +0 -459
- package/dist/vue-ui-stackbar-CZzqF-ZH.js +0 -1207
- package/dist/vue-ui-vertical-bar-CET-9MDi.js +0 -980
- package/dist/vue-ui-xy-CZ7mScyg.js +0 -2958
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
import { defineAsyncComponent as
|
|
2
|
-
import { u as Ka, c as Qa, t as el, p as V, a as al, C as
|
|
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, t as el, p as V, a as al, C as ge, b as ll, D as $e, i as ee, f as ae, d as ia, a5 as tl, G as ol, ae as rl, o as ul, e as sl, x as va, q as nl, r as il, y as vl, s as ie, l as cl } from "./index-Bxh2efzz.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-BGEUK51b.js";
|
|
5
|
+
import { u as gl } from "./usePrinter-CfB_poc_.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-DNs8ZSxL.js";
|
|
9
|
+
import xl from "./Title-B21jaJ0n.js";
|
|
10
|
+
import { S as Ll } from "./Slicer-DYffOkSj.js";
|
|
11
|
+
import { u as kl } from "./useTimeLabels-DFkUfjfs.js";
|
|
12
|
+
import Cl from "./img-UQKhhbxb.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-CXj3OfMj.js")), pa = K(() => import("./DataTable-DjL9vVfm.js")), ma = K(() => import("./NonSvgPenAndPaper-Bmu00306.js")), ba = K(() => import("./vue-ui-skeleton-DIb-2uan.js")), xa = K(() => import("./Tooltip-C4HWh3fx.js")), La = K(() => import("./UserOptions-DQDPN9YO.js")), { vue_ui_xy_canvas: ka } = Ka(), g = Me, pe = d(Qa()), P = d(null), le = d(null), n = d(null), y = d(1), E = 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), Ee = d(null), Fe = 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,10 +69,10 @@ 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,
|
|
@@ -86,16 +86,16 @@ const Sl = ["id"], zl = ["onClick"], $l = {
|
|
|
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, E.value = l * 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, E.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,7 +418,7 @@ 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
|
E.value,
|
|
@@ -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 || "",
|
|
@@ -523,11 +522,11 @@ const Sl = ["id"], zl = ["onClick"], $l = {
|
|
|
523
522
|
function Ea(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 || "",
|
|
@@ -554,21 +553,21 @@ const Sl = ["id"], zl = ["onClick"], $l = {
|
|
|
554
553
|
function Fa() {
|
|
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 &&
|
|
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) => {
|
|
700
699
|
(e.type === "line" || !e.type) && Na(e), Z.value && (Oa(e), u.value.showDataLabels && [!0, void 0].includes(e.dataLabels) && Ea(e));
|
|
701
|
-
}),
|
|
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
|
|
@@ -716,22 +715,22 @@ const Sl = ["id"], zl = ["onClick"], $l = {
|
|
|
716
715
|
}
|
|
717
716
|
})), a.value.style.chart.grid.y.timeLabels.show && Fa(), 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 F =
|
|
778
|
-
|
|
779
|
-
|
|
776
|
+
const F = 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 ? Ee.value : null,
|
|
790
|
+
slicer: a.value.style.chart.zoom.show && I.value > 1 ? Fe.value : null,
|
|
791
|
+
source: Ae.value
|
|
793
792
|
});
|
|
794
793
|
requestAnimationFrame(() => {
|
|
795
|
-
|
|
794
|
+
Ye.value = `${l} / ${o}`;
|
|
796
795
|
});
|
|
797
796
|
});
|
|
798
|
-
F.value && (
|
|
797
|
+
F.value && (q.value && F.value.unobserve(q.value), F.value.disconnect()), F.value = new ResizeObserver(e), q.value = P.value.parentNode, F.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(), F.value && (q.value && F.value.unobserve(q.value), F.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,30 @@ 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
1097
|
isCustom: p(va)(a.value.style.chart.tooltip.customFormat)
|
|
1099
1098
|
}, {
|
|
1100
1099
|
"tooltip-before": x(() => [
|
|
1101
|
-
k(e.$slots, "tooltip-before", B(_({ ...
|
|
1100
|
+
k(e.$slots, "tooltip-before", B(_({ ...Te.value })), void 0, !0)
|
|
1102
1101
|
]),
|
|
1103
1102
|
"tooltip-after": x(() => [
|
|
1104
|
-
k(e.$slots, "tooltip-after", B(_({ ...
|
|
1103
|
+
k(e.$slots, "tooltip-after", B(_({ ...Te.value })), void 0, !0)
|
|
1105
1104
|
]),
|
|
1106
1105
|
_: 3
|
|
1107
1106
|
}, 8, ["show", "backgroundColor", "color", "fontSize", "borderRadius", "borderColor", "borderWidth", "position", "offsetY", "parent", "content", "isFullscreen", "backgroundOpacity", "isCustom"])
|
|
1108
1107
|
], 4),
|
|
1109
|
-
|
|
1108
|
+
ne("div", {
|
|
1110
1109
|
ref_key: "chartSlicer",
|
|
1111
|
-
ref:
|
|
1112
|
-
style:
|
|
1110
|
+
ref: Fe,
|
|
1111
|
+
style: Q(`width:100%;background:${a.value.style.chart.backgroundColor}`),
|
|
1113
1112
|
"data-dom-to-png-ignore": ""
|
|
1114
1113
|
}, [
|
|
1115
1114
|
a.value.style.chart.zoom.show && I.value > 1 ? (S(), N(Ll, {
|
|
1116
1115
|
ref_key: "slicerComponent",
|
|
1117
|
-
ref:
|
|
1118
|
-
key: `slicer_${
|
|
1116
|
+
ref: je,
|
|
1117
|
+
key: `slicer_${Oe.value}`,
|
|
1119
1118
|
background: a.value.style.chart.zoom.color,
|
|
1120
1119
|
borderColor: a.value.style.chart.backgroundColor,
|
|
1121
1120
|
fontSize: a.value.style.chart.zoom.fontSize,
|
|
@@ -1137,7 +1136,7 @@ const Sl = ["id"], zl = ["onClick"], $l = {
|
|
|
1137
1136
|
refreshEndPoint: a.value.style.chart.zoom.endIndex !== null ? a.value.style.chart.zoom.endIndex + 1 : I.value,
|
|
1138
1137
|
enableRangeHandles: a.value.style.chart.zoom.enableRangeHandles,
|
|
1139
1138
|
enableSelectionDrag: a.value.style.chart.zoom.enableSelectionDrag,
|
|
1140
|
-
onReset:
|
|
1139
|
+
onReset: Ze
|
|
1141
1140
|
}, {
|
|
1142
1141
|
"reset-action": x(({ reset: o }) => [
|
|
1143
1142
|
k(e.$slots, "reset-action", B(_({ reset: o })), void 0, !0)
|
|
@@ -1145,35 +1144,35 @@ const Sl = ["id"], zl = ["onClick"], $l = {
|
|
|
1145
1144
|
_: 3
|
|
1146
1145
|
}, 8, ["background", "borderColor", "fontSize", "useResetSlot", "labelLeft", "labelRight", "textColor", "inputColor", "selectColor", "max", "valueStart", "valueEnd", "start", "end", "refreshStartPoint", "refreshEndPoint", "enableRangeHandles", "enableSelectionDrag"])) : X("", !0)
|
|
1147
1146
|
], 4),
|
|
1148
|
-
|
|
1147
|
+
ne("div", {
|
|
1149
1148
|
ref_key: "chartLegend",
|
|
1150
|
-
ref:
|
|
1149
|
+
ref: Ee
|
|
1151
1150
|
}, [
|
|
1152
|
-
a.value.style.chart.legend.show &&
|
|
1153
|
-
legendSet:
|
|
1151
|
+
a.value.style.chart.legend.show && ke.value ? (S(), N(bl, {
|
|
1152
|
+
legendSet: Qe.value,
|
|
1154
1153
|
config: Wa.value,
|
|
1155
|
-
key: `legend_${
|
|
1156
|
-
onClickMarker: l[3] || (l[3] = ({ i: o }) =>
|
|
1154
|
+
key: `legend_${Le.value}`,
|
|
1155
|
+
onClickMarker: l[3] || (l[3] = ({ i: o }) => Ke(o))
|
|
1157
1156
|
}, {
|
|
1158
|
-
item: x(({ legend: o, index:
|
|
1159
|
-
|
|
1157
|
+
item: x(({ legend: o, index: s }) => [
|
|
1158
|
+
ne("div", {
|
|
1160
1159
|
onClick: (i) => o.segregate(),
|
|
1161
|
-
style:
|
|
1160
|
+
style: Q(`opacity:${$.value.includes(s) ? 0.5 : 1}`)
|
|
1162
1161
|
}, na(o.name), 13, zl)
|
|
1163
1162
|
]),
|
|
1164
1163
|
_: 1
|
|
1165
1164
|
}, 8, ["legendSet", "config"])) : k(e.$slots, "legend", {
|
|
1166
1165
|
key: 1,
|
|
1167
|
-
legend:
|
|
1166
|
+
legend: Qe.value
|
|
1168
1167
|
}, void 0, !0)
|
|
1169
1168
|
], 512),
|
|
1170
|
-
e.$slots.watermark ? (S(),
|
|
1171
|
-
k(e.$slots, "watermark", B(_({ isPrinting: p(
|
|
1169
|
+
e.$slots.watermark ? (S(), se("div", $l, [
|
|
1170
|
+
k(e.$slots, "watermark", B(_({ isPrinting: p(Ue) || p(We) })), void 0, !0)
|
|
1172
1171
|
])) : X("", !0),
|
|
1173
|
-
e.$slots.source ? (S(),
|
|
1172
|
+
e.$slots.source ? (S(), se("div", {
|
|
1174
1173
|
key: 3,
|
|
1175
1174
|
ref_key: "source",
|
|
1176
|
-
ref:
|
|
1175
|
+
ref: Ae,
|
|
1177
1176
|
dir: "auto"
|
|
1178
1177
|
}, [
|
|
1179
1178
|
k(e.$slots, "source", {}, void 0, !0)
|
|
@@ -1196,16 +1195,16 @@ const Sl = ["id"], zl = ["onClick"], $l = {
|
|
|
1196
1195
|
}, {
|
|
1197
1196
|
content: x(() => [
|
|
1198
1197
|
(S(), N(p(pa), {
|
|
1199
|
-
key: `table_${
|
|
1200
|
-
colNames:
|
|
1201
|
-
head:
|
|
1202
|
-
body:
|
|
1203
|
-
config:
|
|
1198
|
+
key: `table_${xe.value}`,
|
|
1199
|
+
colNames: ye.value.colNames,
|
|
1200
|
+
head: ye.value.head,
|
|
1201
|
+
body: ye.value.body,
|
|
1202
|
+
config: ye.value.config,
|
|
1204
1203
|
title: `${a.value.style.chart.title.text}${a.value.style.chart.title.subtitle.text ? ` : ${a.value.style.chart.title.subtitle.text}` : ""}`,
|
|
1205
1204
|
onClose: l[4] || (l[4] = (o) => u.value.showTable = !1)
|
|
1206
1205
|
}, {
|
|
1207
1206
|
th: x(({ th: o }) => [
|
|
1208
|
-
|
|
1207
|
+
ne("div", { innerHTML: o }, null, 8, Il)
|
|
1209
1208
|
]),
|
|
1210
1209
|
td: x(({ td: o }) => [
|
|
1211
1210
|
Ja(na(o), 1)
|
|
@@ -1220,12 +1219,12 @@ const Sl = ["id"], zl = ["onClick"], $l = {
|
|
|
1220
1219
|
parent: P.value,
|
|
1221
1220
|
backgroundColor: a.value.style.chart.backgroundColor,
|
|
1222
1221
|
color: a.value.style.chart.color,
|
|
1223
|
-
active:
|
|
1224
|
-
onClose:
|
|
1222
|
+
active: fe.value,
|
|
1223
|
+
onClose: Se
|
|
1225
1224
|
}, null, 8, ["parent", "backgroundColor", "color", "active"])) : X("", !0)
|
|
1226
1225
|
], 46, Sl));
|
|
1227
1226
|
}
|
|
1228
|
-
}, Xl = /* @__PURE__ */ wl(Ml, [["__scopeId", "data-v-
|
|
1227
|
+
}, Xl = /* @__PURE__ */ wl(Ml, [["__scopeId", "data-v-b638e510"]]);
|
|
1229
1228
|
export {
|
|
1230
1229
|
Xl as default
|
|
1231
1230
|
};
|