vue-data-ui 2.4.24 → 2.4.25
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-CTmibgPb.cjs → Arrow-ByXO10pD.cjs} +1 -1
- package/dist/{Arrow-9R7QraNV.js → Arrow-DaXXS-Wb.js} +1 -1
- package/dist/{BaseIcon-D_vWKdk3.cjs → BaseIcon-BRuFT7-k.cjs} +1 -1
- package/dist/{BaseIcon-CQUxE4D0.js → BaseIcon-D3twU60H.js} +1 -1
- package/dist/{DataTable-DN4NMcy_.js → DataTable-D8fcY_sJ.js} +2 -2
- package/dist/{DataTable-ClN04OBE.cjs → DataTable-DFdNUfRe.cjs} +1 -1
- package/dist/{Legend-CNAQN1JM.js → Legend-BorSDXCj.js} +1 -1
- package/dist/{Legend-BdjYa7o4.cjs → Legend-DZAy6K3t.cjs} +1 -1
- package/dist/{PackageVersion-BReu3g8_.cjs → PackageVersion-C2anu38L.cjs} +1 -1
- package/dist/{PackageVersion-DFzNvc8X.js → PackageVersion-mSsg8dpu.js} +1 -1
- package/dist/{PenAndPaper-C9MBduiw.cjs → PenAndPaper-DKSbeuss.cjs} +1 -1
- package/dist/{PenAndPaper-BQ4Vfc7S.js → PenAndPaper-Dk41ZrJ0.js} +3 -3
- package/dist/{Shape-YbAlN6X4.js → Shape-DYFnvMNd.js} +1 -1
- package/dist/{Shape-mLeYDFcS.cjs → Shape-bmo_-9LU.cjs} +1 -1
- package/dist/{Slicer-DvFk8kZE.js → Slicer-BLQZ4Fne.js} +2 -2
- package/dist/{Slicer-DAnwJuA4.cjs → Slicer-BME5LXma.cjs} +1 -1
- package/dist/{Title-hDWoW1x0.cjs → Title-Dm2GAV04.cjs} +1 -1
- package/dist/{Title-DdrRlJjz.js → Title-DyD-mBPN.js} +1 -1
- package/dist/{Tooltip-CLz1sK2U.cjs → Tooltip-CcZzx8f8.cjs} +1 -1
- package/dist/{Tooltip-DZnNOyXe.js → Tooltip-qod9o4Vz.js} +1 -1
- package/dist/{index-DNpWvHMv.js → index-BICsqKzz.js} +4 -2
- package/dist/index-CLWrZGbv.cjs +9 -0
- package/dist/style.css +1 -1
- package/dist/types/vue-data-ui.d.cts +1 -0
- package/dist/types/vue-data-ui.d.ts +1 -0
- package/dist/{useNestedProp-DCPT4jkz.js → useNestedProp-BxrcwmTZ.js} +1 -1
- package/dist/{useNestedProp-BhXCOMBU.cjs → useNestedProp-bUwthiZ4.cjs} +1 -1
- package/dist/{usePrinter-Tcpg1Xq_.js → usePrinter-CLcxWv-4.js} +1 -1
- package/dist/{usePrinter-DA6eJ-d8.cjs → usePrinter-D_-LKcci.cjs} +1 -1
- package/dist/{vue-data-ui-z1BPTu-V.js → vue-data-ui-DF7u-eZV.js} +58 -58
- package/dist/{vue-data-ui-xS2yvUZ2.cjs → vue-data-ui-DFh0GmXI.cjs} +1 -1
- package/dist/vue-data-ui.cjs +1 -1
- package/dist/vue-data-ui.js +1 -1
- package/dist/{vue-ui-3d-bar-D3TdYgOP.js → vue-ui-3d-bar-BDVAkP4Z.js} +9 -9
- package/dist/{vue-ui-3d-bar-CK1sjoUi.cjs → vue-ui-3d-bar-BtfayTxG.cjs} +1 -1
- package/dist/{vue-ui-accordion-BKaHbGc7.cjs → vue-ui-accordion-BCBC5X2n.cjs} +1 -1
- package/dist/{vue-ui-accordion-BZUQ-qHe.js → vue-ui-accordion-m8rut1bP.js} +3 -3
- package/dist/{vue-ui-age-pyramid-6gZ1ApV3.cjs → vue-ui-age-pyramid-71PgCBF6.cjs} +1 -1
- package/dist/{vue-ui-age-pyramid-B1KI1HfD.js → vue-ui-age-pyramid-DTYLss6w.js} +10 -10
- package/dist/{vue-ui-annotator-BjiXyrZQ.cjs → vue-ui-annotator-DKveFO8S.cjs} +1 -1
- package/dist/{vue-ui-annotator-CdsFcctQ.js → vue-ui-annotator-WjNfGCba.js} +1 -1
- package/dist/{vue-ui-bullet-DzZoOmWT.js → vue-ui-bullet-BaN07Yto.js} +8 -8
- package/dist/{vue-ui-bullet-lRr8AGvu.cjs → vue-ui-bullet-D-QKgdGT.cjs} +1 -1
- package/dist/{vue-ui-candlestick-sQ9OuT8L.cjs → vue-ui-candlestick-9MfQ-DXp.cjs} +1 -1
- package/dist/{vue-ui-candlestick-DUZ1v_V2.js → vue-ui-candlestick-CEXWukDl.js} +11 -11
- package/dist/{vue-ui-carousel-table-B3754KOr.js → vue-ui-carousel-table-DwPPz25F.js} +4 -4
- package/dist/{vue-ui-carousel-table-sfpNsFFM.cjs → vue-ui-carousel-table-bHyWXhUR.cjs} +1 -1
- package/dist/{vue-ui-chestnut-CrLkWFiA.cjs → vue-ui-chestnut-BgQsSFpo.cjs} +1 -1
- package/dist/{vue-ui-chestnut-Bj8iuxME.js → vue-ui-chestnut-UVDUlA26.js} +8 -8
- package/dist/{vue-ui-cursor-olMTBc3h.cjs → vue-ui-cursor-B5N8-2TC.cjs} +1 -1
- package/dist/{vue-ui-cursor-BeDbdiQ_.js → vue-ui-cursor-DwJ_3OeD.js} +2 -2
- package/dist/{vue-ui-dashboard-Cl0-ES43.cjs → vue-ui-dashboard-DHMq8KDe.cjs} +1 -1
- package/dist/{vue-ui-dashboard-_x3uCh6v.js → vue-ui-dashboard-Dlnt37bU.js} +2 -2
- package/dist/{vue-ui-digits-51QHU1dt.cjs → vue-ui-digits-CLw0UlLM.cjs} +1 -1
- package/dist/{vue-ui-digits-B2XiXAlb.js → vue-ui-digits-d5q7aYEB.js} +2 -2
- package/dist/{vue-ui-donut-vHW8U7Yo.cjs → vue-ui-donut-CeNCKLSe.cjs} +1 -1
- package/dist/{vue-ui-donut-evolution-BYZ-0q-Q.cjs → vue-ui-donut-evolution-CfPcjjnn.cjs} +1 -1
- package/dist/{vue-ui-donut-evolution-BWI37PoD.js → vue-ui-donut-evolution-H2_TlrF2.js} +11 -11
- package/dist/{vue-ui-donut-BScgLfCs.js → vue-ui-donut-nuCiumWN.js} +11 -11
- package/dist/{vue-ui-dumbbell-s09CyK69.js → vue-ui-dumbbell--qD2MDbF.js} +10 -10
- package/dist/{vue-ui-dumbbell-3Eitchg8.cjs → vue-ui-dumbbell-hSPyK3qm.cjs} +1 -1
- package/dist/{vue-ui-flow-B1Rt8LLH.js → vue-ui-flow-CgcUEWmx.js} +9 -9
- package/dist/{vue-ui-flow-Oc6Zl5gy.cjs → vue-ui-flow-Cp154Fpn.cjs} +1 -1
- package/dist/{vue-ui-galaxy-DtDk3bvA.js → vue-ui-galaxy-CNuslpHY.js} +11 -11
- package/dist/{vue-ui-galaxy-DIg1SS4W.cjs → vue-ui-galaxy-CVRruPO1.cjs} +1 -1
- package/dist/{vue-ui-gauge-BY33zNrL.cjs → vue-ui-gauge-BdEZP0P9.cjs} +1 -1
- package/dist/{vue-ui-gauge-CqDYHzxD.js → vue-ui-gauge-BlfbiQ2E.js} +7 -7
- package/dist/{vue-ui-gizmo-C0wcIOIv.js → vue-ui-gizmo-CKbSLvuP.js} +3 -3
- package/dist/{vue-ui-gizmo-NhgqjNTn.cjs → vue-ui-gizmo-D7ANYpNx.cjs} +1 -1
- package/dist/{vue-ui-heatmap-C7_6hfx_.cjs → vue-ui-heatmap-DCTdqUIX.cjs} +1 -1
- package/dist/{vue-ui-heatmap-AqYgted0.js → vue-ui-heatmap-DeV-Tkf2.js} +10 -10
- package/dist/{vue-ui-kpi-DlqjCSOa.cjs → vue-ui-kpi-BQMwef0E.cjs} +1 -1
- package/dist/{vue-ui-kpi-C00uVM5q.js → vue-ui-kpi-BS6Q-H3p.js} +3 -3
- package/dist/{vue-ui-mini-loader-CMxB6-7I.js → vue-ui-mini-loader-1hfptP8p.js} +2 -2
- package/dist/{vue-ui-mini-loader-34x62P6H.cjs → vue-ui-mini-loader-BkB2IKcd.cjs} +1 -1
- package/dist/{vue-ui-molecule-CUo3NiTx.js → vue-ui-molecule-9nYN6FWk.js} +11 -11
- package/dist/{vue-ui-molecule-DX26Q_UW.cjs → vue-ui-molecule-BSfmIrIV.cjs} +1 -1
- package/dist/{vue-ui-mood-radar-B48X5fUo.js → vue-ui-mood-radar-CdhoXPjB.js} +11 -11
- package/dist/{vue-ui-mood-radar-BnP66ZkN.cjs → vue-ui-mood-radar-DmxG3SpA.cjs} +1 -1
- package/dist/{vue-ui-nested-donuts-BB8An9kQ.cjs → vue-ui-nested-donuts-BVDpwaOw.cjs} +1 -1
- package/dist/{vue-ui-nested-donuts-BYC1kE3-.js → vue-ui-nested-donuts-DHn5JPVa.js} +11 -11
- package/dist/{vue-ui-onion-C_5HEmVo.js → vue-ui-onion-Dn2beWtO.js} +11 -11
- package/dist/{vue-ui-onion-CaiK6TJx.cjs → vue-ui-onion-DpRHbEWN.cjs} +1 -1
- package/dist/{vue-ui-parallel-coordinate-plot-0V4h_rBl.cjs → vue-ui-parallel-coordinate-plot-CU0tOs-u.cjs} +1 -1
- package/dist/{vue-ui-parallel-coordinate-plot-BcMVYdY3.js → vue-ui-parallel-coordinate-plot-yq09af0J.js} +12 -12
- package/dist/{vue-ui-quadrant--F2x6TBI.cjs → vue-ui-quadrant-71OHEVEh.cjs} +1 -1
- package/dist/{vue-ui-quadrant-gF4piFaT.js → vue-ui-quadrant-DzwXd881.js} +12 -12
- package/dist/{vue-ui-quick-chart-BFO5nlxt.js → vue-ui-quick-chart-BF7xqf0f.js} +9 -9
- package/dist/{vue-ui-quick-chart-Cmm4grEJ.cjs → vue-ui-quick-chart-Pt-8uXit.cjs} +1 -1
- package/dist/{vue-ui-radar-DLAHJPYl.cjs → vue-ui-radar-Buv9DMRa.cjs} +1 -1
- package/dist/{vue-ui-radar-C3oGJqRO.js → vue-ui-radar-DOmOWd_A.js} +12 -12
- package/dist/{vue-ui-rating-wWlA8aGu.js → vue-ui-rating-CQrrI3Mx.js} +2 -2
- package/dist/{vue-ui-rating-DDPmcwLh.cjs → vue-ui-rating-DiAqIvDv.cjs} +1 -1
- package/dist/{vue-ui-relation-circle-CN76qQMx.cjs → vue-ui-relation-circle-CxOgNn5_.cjs} +1 -1
- package/dist/{vue-ui-relation-circle-CtnRCd-D.js → vue-ui-relation-circle-Sb7Nyb8W.js} +7 -7
- package/dist/{vue-ui-rings-Jjb3Hb_c.js → vue-ui-rings-BrdbD7PJ.js} +11 -11
- package/dist/{vue-ui-rings-BzmG-1wd.cjs → vue-ui-rings-Cm5q10II.cjs} +1 -1
- package/dist/{vue-ui-scatter-CDcO_SRL.js → vue-ui-scatter-D5q2EE4b.js} +12 -12
- package/dist/{vue-ui-scatter-DwvgXKwS.cjs → vue-ui-scatter-ngmt8UB9.cjs} +1 -1
- package/dist/{vue-ui-screenshot-CMSHN3Kq.cjs → vue-ui-screenshot-B6zLJRHR.cjs} +1 -1
- package/dist/{vue-ui-screenshot-x7d584sf.js → vue-ui-screenshot-Jf_CuPtB.js} +1 -1
- package/dist/{vue-ui-skeleton-8EAYuqbl.cjs → vue-ui-skeleton-CEeXInMi.cjs} +1 -1
- package/dist/{vue-ui-skeleton-pdfgn69e.js → vue-ui-skeleton-Dgzcn3FL.js} +3 -3
- package/dist/{vue-ui-smiley-DBkSG5cV.js → vue-ui-smiley-BAclx6KJ.js} +2 -2
- package/dist/{vue-ui-smiley-Dz5qeDJY.cjs → vue-ui-smiley-JwYaXNnm.cjs} +1 -1
- package/dist/{vue-ui-spark-trend-Pw2ApGpF.js → vue-ui-spark-trend-BIGVUzmd.js} +5 -5
- package/dist/{vue-ui-spark-trend-QvfiA4OU.cjs → vue-ui-spark-trend-_QrAMYgz.cjs} +1 -1
- package/dist/{vue-ui-sparkbar-48yoWNM1.cjs → vue-ui-sparkbar-DhfJlpfY.cjs} +1 -1
- package/dist/{vue-ui-sparkbar-Cj4xrmUI.js → vue-ui-sparkbar-OZC6iwJ4.js} +4 -4
- package/dist/{vue-ui-sparkgauge-DXQSkM_S.js → vue-ui-sparkgauge-8Tv-j1T9.js} +4 -4
- package/dist/{vue-ui-sparkgauge-sb5_grfL.cjs → vue-ui-sparkgauge-DEPvmH2r.cjs} +1 -1
- package/dist/{vue-ui-sparkhistogram-CKAF5W5v.js → vue-ui-sparkhistogram-BNILlxcX.js} +5 -5
- package/dist/{vue-ui-sparkhistogram-B58h2Zbw.cjs → vue-ui-sparkhistogram-DAbQdCGz.cjs} +1 -1
- package/dist/{vue-ui-sparkline-DSjLFYon.js → vue-ui-sparkline-B0BJFHMi.js} +4 -4
- package/dist/{vue-ui-sparkline-oLYUoDR1.cjs → vue-ui-sparkline-XUWsqlUN.cjs} +1 -1
- package/dist/{vue-ui-sparkstackbar-VJKqaZ-e.js → vue-ui-sparkstackbar-BB-MOwPO.js} +5 -5
- package/dist/{vue-ui-sparkstackbar-BJwck6a7.cjs → vue-ui-sparkstackbar-DiyZJ8wv.cjs} +1 -1
- package/dist/{vue-ui-stackbar-CeM-EW_p.cjs → vue-ui-stackbar-BqX7ZucO.cjs} +1 -1
- package/dist/{vue-ui-stackbar-Bo0yKeyV.js → vue-ui-stackbar-DT_TRXc4.js} +12 -12
- package/dist/{vue-ui-strip-plot-B7TECT_l.js → vue-ui-strip-plot-Bn4z9RH8.js} +11 -11
- package/dist/{vue-ui-strip-plot-BehocVOu.cjs → vue-ui-strip-plot-DiiGkNc9.cjs} +1 -1
- package/dist/{vue-ui-table-GVF0S5Ry.cjs → vue-ui-table-9xjGzylw.cjs} +1 -1
- package/dist/{vue-ui-table-D2EOoNwN.js → vue-ui-table-BERyvvqz.js} +1 -1
- package/dist/{vue-ui-table-heatmap-jlcKc0Ws.cjs → vue-ui-table-heatmap-CNWh58QC.cjs} +1 -1
- package/dist/{vue-ui-table-heatmap-BNWIkOv9.js → vue-ui-table-heatmap-tduub4CZ.js} +4 -4
- package/dist/{vue-ui-table-sparkline-CZHIhrJE.cjs → vue-ui-table-sparkline-COsvxl8Z.cjs} +1 -1
- package/dist/{vue-ui-table-sparkline-BDWWC7zT.js → vue-ui-table-sparkline-DirFLTCn.js} +5 -5
- package/dist/{vue-ui-thermometer-DnRAOGzE.cjs → vue-ui-thermometer-Bp8DH03h.cjs} +1 -1
- package/dist/{vue-ui-thermometer-DpdmV84i.js → vue-ui-thermometer-aj7L5dYo.js} +7 -7
- package/dist/{vue-ui-timer-ClEy78ag.js → vue-ui-timer-BxdADUyO.js} +5 -5
- package/dist/{vue-ui-timer-Dqz_JqG8.cjs → vue-ui-timer-CFLSCgHD.cjs} +1 -1
- package/dist/{vue-ui-tiremarks-BVC-dJW2.js → vue-ui-tiremarks-CEfNdN2Z.js} +7 -7
- package/dist/{vue-ui-tiremarks-aziTOe35.cjs → vue-ui-tiremarks-swIZAkBk.cjs} +1 -1
- package/dist/{vue-ui-treemap-ey3O_EM_.cjs → vue-ui-treemap-TA_t2X-T.cjs} +1 -1
- package/dist/{vue-ui-treemap-izyqRSO4.js → vue-ui-treemap-XADmrlur.js} +11 -11
- package/dist/{vue-ui-vertical-bar-DkRLKkh9.js → vue-ui-vertical-bar-BxZxWXPp.js} +11 -11
- package/dist/{vue-ui-vertical-bar-3ahimUet.cjs → vue-ui-vertical-bar-DpX4MZOk.cjs} +1 -1
- package/dist/{vue-ui-waffle-BP9klXeX.js → vue-ui-waffle-D5fVZhj1.js} +11 -11
- package/dist/{vue-ui-waffle-uQGjZTgi.cjs → vue-ui-waffle-u71f2gDj.cjs} +1 -1
- package/dist/{vue-ui-wheel-BvhwRXPd.js → vue-ui-wheel-DeJIQNQo.js} +7 -7
- package/dist/{vue-ui-wheel-CYFdZRVV.cjs → vue-ui-wheel-OcDfmU6G.cjs} +1 -1
- package/dist/{vue-ui-word-cloud-QVQUaIdb.js → vue-ui-word-cloud-C8RX9zpp.js} +10 -10
- package/dist/{vue-ui-word-cloud-DUWtk6YK.cjs → vue-ui-word-cloud-CqMxlLQ5.cjs} +1 -1
- package/dist/{vue-ui-xy-DApUlxLq.js → vue-ui-xy-C-IsoZnw.js} +14 -14
- package/dist/{vue-ui-xy-DF-M-Idj.cjs → vue-ui-xy-YFzX3F_Z.cjs} +1 -1
- package/dist/vue-ui-xy-canvas-DHCbEqpJ.cjs +9 -0
- package/dist/{vue-ui-xy-canvas-DHLXo1fA.js → vue-ui-xy-canvas-RMsnzPnE.js} +268 -238
- package/package.json +1 -1
- package/dist/index-Yx-Iy-n8.cjs +0 -9
- package/dist/vue-ui-xy-canvas-Cw8ymUpz.cjs +0 -9
|
@@ -1,16 +1,16 @@
|
|
|
1
|
-
import { ref as v, computed as b, watch as A, onMounted as La, onBeforeUnmount as ka, openBlock as
|
|
2
|
-
import { u as za, c as
|
|
3
|
-
import { d as Wa, c as
|
|
4
|
-
import { _ as Ua } from "./Tooltip-
|
|
5
|
-
import { L as Za } from "./Legend-
|
|
6
|
-
import { _ as Ga } from "./Title-
|
|
7
|
-
import { S as Va } from "./Slicer-
|
|
8
|
-
import { u as ja, U as qa } from "./usePrinter-
|
|
9
|
-
import Ja from "./vue-ui-accordion-
|
|
10
|
-
import { D as Ka } from "./DataTable-
|
|
11
|
-
import Qa from "./vue-ui-skeleton-
|
|
12
|
-
import { u as ea } from "./useNestedProp-
|
|
13
|
-
import { P as el } from "./PenAndPaper-
|
|
1
|
+
import { ref as v, computed as b, watch as A, onMounted as La, onBeforeUnmount as ka, openBlock as S, createElementBlock as q, normalizeStyle as J, normalizeClass as Ca, createBlock as F, createCommentVNode as _, unref as D, createSlots as wa, withCtx as m, renderSlot as x, normalizeProps as Y, guardReactiveProps as B, createElementVNode as K, createVNode as Sa, toDisplayString as Ve, createTextVNode as $a } from "vue";
|
|
2
|
+
import { u as za, c as Ma, t as Ta, a as Ra, p as H, M as je, b as Oa, C as xe, i as Q, f as ee, Y as Ia, I as Pa, d as qe, a2 as Fa, o as Ea, e as Na, x as Je, y as Aa, q as _a, r as Da, s as ae, l as Ha } from "./index-BICsqKzz.js";
|
|
3
|
+
import { d as Wa, c as Xa, a as Ke, t as Ya, l as L, r as Le, b as E, p as Qe, u as Ba } from "./useResponsive-CoxXLe23.js";
|
|
4
|
+
import { _ as Ua } from "./Tooltip-qod9o4Vz.js";
|
|
5
|
+
import { L as Za } from "./Legend-BorSDXCj.js";
|
|
6
|
+
import { _ as Ga } from "./Title-DyD-mBPN.js";
|
|
7
|
+
import { S as Va } from "./Slicer-BLQZ4Fne.js";
|
|
8
|
+
import { u as ja, U as qa } from "./usePrinter-CLcxWv-4.js";
|
|
9
|
+
import Ja from "./vue-ui-accordion-m8rut1bP.js";
|
|
10
|
+
import { D as Ka } from "./DataTable-D8fcY_sJ.js";
|
|
11
|
+
import Qa from "./vue-ui-skeleton-Dgzcn3FL.js";
|
|
12
|
+
import { u as ea } from "./useNestedProp-BxrcwmTZ.js";
|
|
13
|
+
import { P as el } from "./PenAndPaper-Dk41ZrJ0.js";
|
|
14
14
|
import { _ as al } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
15
15
|
const ll = ["id"], tl = ["onClick"], ol = {
|
|
16
16
|
key: 2,
|
|
@@ -33,30 +33,30 @@ const ll = ["id"], tl = ["onClick"], ol = {
|
|
|
33
33
|
},
|
|
34
34
|
emits: ["selectLegend"],
|
|
35
35
|
setup(ke, { expose: aa, emit: la }) {
|
|
36
|
-
const
|
|
36
|
+
const k = ke, { vue_ui_xy_canvas: ta } = za(), ie = v(Ma()), U = v(null), z = v(null), Z = v(null), s = v(null), y = v(1), R = v(1), le = v(!1), d = v(null), te = v(""), Ce = v(null), $ = v([]), W = v(1), N = v(!0), M = v(!0), ve = v(null), we = v(0), Se = v(0), ce = v(!1), $e = v(null), ze = v(null), Me = v(null), Te = v(null), de = v(0), he = v(0), ye = v(0), fe = b(() => !!k.dataset && k.dataset.length), a = b({
|
|
37
37
|
get: () => Re(),
|
|
38
38
|
set: (e) => e
|
|
39
39
|
});
|
|
40
40
|
function Re() {
|
|
41
41
|
const e = ea({
|
|
42
|
-
userConfig:
|
|
42
|
+
userConfig: k.config,
|
|
43
43
|
defaultConfig: ta
|
|
44
44
|
});
|
|
45
|
-
let
|
|
46
|
-
return e.theme ?
|
|
45
|
+
let t = {};
|
|
46
|
+
return e.theme ? t = {
|
|
47
47
|
...ea({
|
|
48
|
-
userConfig:
|
|
48
|
+
userConfig: Ta.vue_ui_xy_canvas[e.theme] || k.config,
|
|
49
49
|
defaultConfig: e
|
|
50
50
|
}),
|
|
51
51
|
customPalette: Ra[e.theme] || H
|
|
52
|
-
} :
|
|
52
|
+
} : t = e, k.config && je(k.config, "style.chart.scale.min") ? t.style.chart.scale.min = k.config.style.chart.scale.min : t.style.chart.scale.min = null, k.config && je(k.config, "style.chart.scale.max") ? t.style.chart.scale.max = k.config.style.chart.scale.max : t.style.chart.scale.max = null, t;
|
|
53
53
|
}
|
|
54
|
-
A(() =>
|
|
55
|
-
a.value = Re(), pe(), de.value += 1, he.value += 1,
|
|
56
|
-
}, { deep: !0 }), A(() =>
|
|
57
|
-
pe(), de.value += 1, he.value += 1,
|
|
54
|
+
A(() => k.config, (e) => {
|
|
55
|
+
a.value = Re(), pe(), de.value += 1, he.value += 1, ye.value += 1;
|
|
56
|
+
}, { deep: !0 }), A(() => k.dataset, () => {
|
|
57
|
+
pe(), de.value += 1, he.value += 1, ye.value += 1;
|
|
58
58
|
}, { deep: !0 });
|
|
59
|
-
const
|
|
59
|
+
const Oe = v(a.value.style.chart.aspectRatio), { isPrinting: Ie, isImaging: Pe, generatePdf: Fe, generateImage: Ee } = ja({
|
|
60
60
|
elementId: `xy_canvas_${ie.value}`,
|
|
61
61
|
fileName: a.value.style.chart.title.text || "vue-ui-xy-canvas"
|
|
62
62
|
}), u = v({
|
|
@@ -68,48 +68,48 @@ const ll = ["id"], tl = ["onClick"], ol = {
|
|
|
68
68
|
function oa(e) {
|
|
69
69
|
ce.value = e, Se.value += 1;
|
|
70
70
|
}
|
|
71
|
-
const Ne = b(() =>
|
|
72
|
-
const e =
|
|
71
|
+
const Ne = b(() => Oa(a.value.customPalette)), O = b(() => X.value ? Math.max(...X.value.filter((e, t) => !$.value.includes(e.absoluteIndex)).map((e) => e.series.length)) : 0), l = b(() => {
|
|
72
|
+
const e = y.value - y.value * (a.value.style.chart.paddingProportions.left + a.value.style.chart.paddingProportions.right);
|
|
73
73
|
return {
|
|
74
|
-
canvasWidth:
|
|
74
|
+
canvasWidth: y.value,
|
|
75
75
|
canvasHeight: R.value,
|
|
76
|
-
left:
|
|
76
|
+
left: y.value * a.value.style.chart.paddingProportions.left,
|
|
77
77
|
top: R.value * a.value.style.chart.paddingProportions.top,
|
|
78
|
-
right:
|
|
78
|
+
right: y.value - y.value * a.value.style.chart.paddingProportions.right,
|
|
79
79
|
bottom: R.value - R.value * a.value.style.chart.paddingProportions.bottom,
|
|
80
80
|
width: e,
|
|
81
81
|
height: R.value - R.value * (a.value.style.chart.paddingProportions.top + a.value.style.chart.paddingProportions.bottom),
|
|
82
82
|
slot: e / (r.value.end - r.value.start)
|
|
83
83
|
};
|
|
84
84
|
});
|
|
85
|
-
function Ae(e,
|
|
86
|
-
return e /
|
|
85
|
+
function Ae(e, t) {
|
|
86
|
+
return e / t;
|
|
87
87
|
}
|
|
88
|
-
function ra({ hasAutoScale: e, series:
|
|
89
|
-
return
|
|
90
|
-
const
|
|
88
|
+
function ra({ hasAutoScale: e, series: t, min: o, max: i, scale: c, yOffset: f, individualHeight: n, stackIndex: g = null }) {
|
|
89
|
+
return t.map((w, be) => {
|
|
90
|
+
const T = c.min < 0 ? Math.abs(c.min) : 0, I = Ae(w + T, T + c.max);
|
|
91
91
|
let P, G;
|
|
92
|
-
e && (P = Math.abs(c.min), G = Ae(
|
|
92
|
+
e && (P = Math.abs(c.min), G = Ae(w + P, c.max + P));
|
|
93
93
|
let V = 0;
|
|
94
|
-
return g === null ? V =
|
|
95
|
-
x:
|
|
94
|
+
return g === null ? V = l.value.bottom - l.value.height * (e ? G : I) : V = l.value.bottom - f - n * (e ? G : I), {
|
|
95
|
+
x: l.value.left + l.value.slot * be + l.value.slot / 2,
|
|
96
96
|
y: V,
|
|
97
|
-
value:
|
|
97
|
+
value: w
|
|
98
98
|
};
|
|
99
99
|
});
|
|
100
100
|
}
|
|
101
101
|
const p = b(() => {
|
|
102
|
-
const e = a.value.style.chart.scale.min !== null ? a.value.style.chart.scale.min : Math.min(...
|
|
103
|
-
y:
|
|
104
|
-
x:
|
|
102
|
+
const e = a.value.style.chart.scale.min !== null ? a.value.style.chart.scale.min : Math.min(...X.value.filter((n, g) => !$.value.includes(n.absoluteIndex)).flatMap((n) => n.series.slice(r.value.start, r.value.end))), t = a.value.style.chart.scale.max !== null ? a.value.style.chart.scale.max : Math.max(...X.value.filter((n, g) => !$.value.includes(n.absoluteIndex)).flatMap((n) => n.series.slice(r.value.start, r.value.end))), o = xe(e < 0 ? e : 0, t === e ? e + 1 < 0 ? 0 : e + 1 : t < 0 ? 0 : t, a.value.style.chart.scale.ticks), i = o.min < 0 ? Math.abs(o.min) : 0, c = l.value.bottom - l.value.height * (i / (o.max + i)), f = o.ticks.map((n) => ({
|
|
103
|
+
y: l.value.bottom - l.value.height * ((n + i) / (o.max + i)),
|
|
104
|
+
x: l.value.left - 8,
|
|
105
105
|
value: n
|
|
106
106
|
}));
|
|
107
107
|
return {
|
|
108
108
|
absoluteMin: i,
|
|
109
|
-
max:
|
|
109
|
+
max: t,
|
|
110
110
|
min: e,
|
|
111
111
|
scale: o,
|
|
112
|
-
yLabels:
|
|
112
|
+
yLabels: f,
|
|
113
113
|
zero: c
|
|
114
114
|
};
|
|
115
115
|
}), ua = b(() => h.value.map((e) => `
|
|
@@ -130,37 +130,37 @@ const ll = ["id"], tl = ["onClick"], ol = {
|
|
|
130
130
|
{ datapoint: e, seriesIndex: d.value }
|
|
131
131
|
)}</span>
|
|
132
132
|
</div>
|
|
133
|
-
`)),
|
|
133
|
+
`)), X = b(() => k.dataset.map((e, t) => ({
|
|
134
134
|
...e,
|
|
135
|
-
series:
|
|
135
|
+
series: Ia({
|
|
136
136
|
data: Pa(e.series),
|
|
137
137
|
threshold: a.value.downsample.threshold
|
|
138
138
|
}),
|
|
139
|
-
absoluteIndex:
|
|
140
|
-
color: qe(e.color || Ne.value[
|
|
139
|
+
absoluteIndex: t,
|
|
140
|
+
color: qe(e.color || Ne.value[t] || H[t] || H[t % H.length])
|
|
141
141
|
})));
|
|
142
|
-
A(
|
|
142
|
+
A(O, (e) => {
|
|
143
143
|
e && _e();
|
|
144
144
|
});
|
|
145
|
-
const h = b(() => Fa(
|
|
145
|
+
const h = b(() => Fa(X.value.filter((e, t) => !$.value.includes(e.absoluteIndex))).map((e, t) => ({
|
|
146
146
|
...e,
|
|
147
147
|
series: e.series.slice(r.value.start, r.value.end)
|
|
148
|
-
})).map((e,
|
|
148
|
+
})).map((e, t) => {
|
|
149
149
|
let o = [null, void 0].includes(e.scaleMin) ? Math.min(...e.series) || 0 : e.scaleMin, i = [null, void 0].includes(e.scaleMax) ? Math.max(...e.series) || 1 : e.scaleMax;
|
|
150
150
|
o === i && (o = o >= 0 ? i - 1 : o, i = i >= 0 ? i : o + 1);
|
|
151
|
-
const
|
|
151
|
+
const f = {
|
|
152
152
|
ratios: e.series.filter((j) => ![null, void 0].includes(j)).map((j) => (j - o) / (i - o)),
|
|
153
153
|
valueMin: o,
|
|
154
154
|
valueMax: i
|
|
155
155
|
}, n = e.scaleSteps || a.value.style.chart.scale.ticks;
|
|
156
156
|
let g;
|
|
157
|
-
e.autoScaling ? g = xe(
|
|
158
|
-
const
|
|
157
|
+
e.autoScaling ? g = xe(f.valueMin, f.valueMax, n) : g = xe(f.valueMin < 0 ? f.valueMin : 0, f.valueMax <= 0 ? 0 : f.valueMax, n);
|
|
158
|
+
const w = u.value.stacked ? l.value.height * (1 - e.cumulatedStackRatio) : 0, be = u.value.stacked ? l.value.height / a.value.style.chart.stackGap : 0, T = u.value.stacked ? l.value.height * e.stackRatio - be : l.value.height, I = g.min < 0 ? Math.abs(g.min) : 0;
|
|
159
159
|
let P;
|
|
160
|
-
e.autoScaling && u.value.stacked && i <= 0 ? P =
|
|
160
|
+
e.autoScaling && u.value.stacked && i <= 0 ? P = l.value.bottom - w - T : P = l.value.bottom - w - T * (I / (g.max + I));
|
|
161
161
|
const G = g.ticks.map((j, xa) => ({
|
|
162
|
-
y:
|
|
163
|
-
x:
|
|
162
|
+
y: l.value.bottom - w - T * (xa / (g.ticks.length - 1)),
|
|
163
|
+
x: l.value.left - 8,
|
|
164
164
|
value: j
|
|
165
165
|
})), V = ra({
|
|
166
166
|
hasAutoScale: u.value.stacked && e.autoScaling,
|
|
@@ -168,9 +168,9 @@ const ll = ["id"], tl = ["onClick"], ol = {
|
|
|
168
168
|
min: u.value.stacked ? o : p.value.min,
|
|
169
169
|
max: u.value.stacked ? i : p.value.max,
|
|
170
170
|
scale: u.value.stacked ? g : p.value.scale,
|
|
171
|
-
yOffset:
|
|
172
|
-
individualHeight:
|
|
173
|
-
stackIndex: u.value.stacked ?
|
|
171
|
+
yOffset: w,
|
|
172
|
+
individualHeight: T,
|
|
173
|
+
stackIndex: u.value.stacked ? t : null
|
|
174
174
|
});
|
|
175
175
|
return {
|
|
176
176
|
...e,
|
|
@@ -179,42 +179,60 @@ const ll = ["id"], tl = ["onClick"], ol = {
|
|
|
179
179
|
max: i,
|
|
180
180
|
localScale: g,
|
|
181
181
|
localZero: P,
|
|
182
|
-
localMin:
|
|
182
|
+
localMin: I,
|
|
183
183
|
localYLabels: G,
|
|
184
|
-
yOffset:
|
|
185
|
-
individualHeight:
|
|
184
|
+
yOffset: w,
|
|
185
|
+
individualHeight: T
|
|
186
186
|
};
|
|
187
187
|
})), r = v({
|
|
188
188
|
start: 0,
|
|
189
|
-
end:
|
|
189
|
+
end: O.value
|
|
190
190
|
});
|
|
191
191
|
function _e() {
|
|
192
192
|
r.value = {
|
|
193
193
|
start: 0,
|
|
194
|
-
end:
|
|
194
|
+
end: O.value
|
|
195
195
|
}, we.value += 1;
|
|
196
196
|
}
|
|
197
|
-
const sa = b(() => h.value.filter((e) => ["line", "plot", void 0].includes(e.type))),
|
|
197
|
+
const sa = b(() => h.value.filter((e) => ["line", "plot", void 0].includes(e.type))), C = b(() => h.value.filter((e) => e.type === "bar"));
|
|
198
198
|
function na() {
|
|
199
199
|
if (!z.value)
|
|
200
200
|
return;
|
|
201
|
-
const e = Z.value.offsetWidth,
|
|
202
|
-
z.value.width = e * W.value * 2, z.value.height =
|
|
201
|
+
const e = Z.value.offsetWidth, t = Z.value.offsetHeight;
|
|
202
|
+
z.value.width = e * W.value * 2, z.value.height = t * W.value * 2, y.value = e * W.value * 2, R.value = t * W.value * 2, s.value.scale(W.value, W.value), ge();
|
|
203
203
|
}
|
|
204
204
|
function ia() {
|
|
205
|
-
if (s.value.clearRect(0, 0, 1e4, 1e4), s.value.fillStyle = a.value.style.chart.backgroundColor, s.value.fillRect(0, 0,
|
|
206
|
-
a.value.style.chart.grid.y.verticalLines.show && r.value.end - r.value.start < a.value.style.chart.grid.y.verticalLines.hideUnderXLength
|
|
207
|
-
for (let
|
|
208
|
-
|
|
205
|
+
if (s.value.clearRect(0, 0, 1e4, 1e4), s.value.fillStyle = a.value.style.chart.backgroundColor, s.value.fillRect(0, 0, l.value.canvasWidth, l.value.canvasHeight), u.value.stacked)
|
|
206
|
+
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) => {
|
|
207
|
+
for (let t = 0; t < r.value.end - r.value.start + 1; t += 1)
|
|
208
|
+
L(
|
|
209
209
|
s.value,
|
|
210
210
|
[
|
|
211
211
|
{
|
|
212
|
-
x:
|
|
213
|
-
y:
|
|
212
|
+
x: l.value.left + l.value.slot * t,
|
|
213
|
+
y: l.value.bottom - e.yOffset - e.individualHeight
|
|
214
214
|
},
|
|
215
215
|
{
|
|
216
|
-
x:
|
|
217
|
-
y:
|
|
216
|
+
x: l.value.left + l.value.slot * t,
|
|
217
|
+
y: l.value.bottom - e.yOffset
|
|
218
|
+
}
|
|
219
|
+
],
|
|
220
|
+
{
|
|
221
|
+
color: a.value.style.chart.grid.y.verticalLines.color
|
|
222
|
+
}
|
|
223
|
+
);
|
|
224
|
+
}) : 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) => {
|
|
225
|
+
for (let t = r.value.start; t < r.value.end; t += 1)
|
|
226
|
+
t % Math.floor((r.value.end - r.value.start) / a.value.style.chart.grid.y.timeLabels.modulo) === 0 && L(
|
|
227
|
+
s.value,
|
|
228
|
+
[
|
|
229
|
+
{
|
|
230
|
+
x: l.value.left + l.value.slot * (t - r.value.start) + l.value.slot / 2,
|
|
231
|
+
y: l.value.bottom - e.yOffset - e.individualHeight
|
|
232
|
+
},
|
|
233
|
+
{
|
|
234
|
+
x: l.value.left + l.value.slot * (t - r.value.start) + l.value.slot / 2,
|
|
235
|
+
y: l.value.bottom - e.yOffset
|
|
218
236
|
}
|
|
219
237
|
],
|
|
220
238
|
{
|
|
@@ -222,14 +240,14 @@ const ll = ["id"], tl = ["onClick"], ol = {
|
|
|
222
240
|
}
|
|
223
241
|
);
|
|
224
242
|
}), a.value.style.chart.grid.x.horizontalLines.show && (a.value.style.chart.grid.x.horizontalLines.alternate ? h.value.forEach((e) => {
|
|
225
|
-
e.localYLabels.forEach((
|
|
243
|
+
e.localYLabels.forEach((t, o) => {
|
|
226
244
|
o < e.localYLabels.length - 1 && Le(
|
|
227
245
|
s.value,
|
|
228
246
|
[
|
|
229
|
-
{ x:
|
|
230
|
-
{ x:
|
|
231
|
-
{ x:
|
|
232
|
-
{ x:
|
|
247
|
+
{ x: l.value.left, y: t.y },
|
|
248
|
+
{ x: l.value.right, y: t.y },
|
|
249
|
+
{ x: l.value.right, y: e.localYLabels[o + 1].y },
|
|
250
|
+
{ x: l.value.left, y: e.localYLabels[o + 1].y }
|
|
233
251
|
],
|
|
234
252
|
{
|
|
235
253
|
fillColor: o % 2 === 0 ? "transparent" : ae(a.value.style.chart.grid.x.horizontalLines.color, a.value.style.chart.grid.x.horizontalLines.opacity),
|
|
@@ -238,12 +256,12 @@ const ll = ["id"], tl = ["onClick"], ol = {
|
|
|
238
256
|
);
|
|
239
257
|
});
|
|
240
258
|
}) : h.value.forEach((e) => {
|
|
241
|
-
e.localYLabels.slice(r.value.start, r.value.end).forEach((
|
|
242
|
-
|
|
259
|
+
e.localYLabels.slice(r.value.start, r.value.end).forEach((t) => {
|
|
260
|
+
L(
|
|
243
261
|
s.value,
|
|
244
262
|
[
|
|
245
|
-
{ x:
|
|
246
|
-
{ x:
|
|
263
|
+
{ x: l.value.left, y: t.y },
|
|
264
|
+
{ x: l.value.right, y: t.y }
|
|
247
265
|
],
|
|
248
266
|
{
|
|
249
267
|
color: a.value.style.chart.grid.x.horizontalLines.color
|
|
@@ -251,11 +269,11 @@ const ll = ["id"], tl = ["onClick"], ol = {
|
|
|
251
269
|
);
|
|
252
270
|
});
|
|
253
271
|
})), a.value.style.chart.grid.zeroLine.show && h.value.forEach((e) => {
|
|
254
|
-
|
|
272
|
+
L(
|
|
255
273
|
s.value,
|
|
256
274
|
[
|
|
257
|
-
{ x:
|
|
258
|
-
{ x:
|
|
275
|
+
{ x: l.value.left, y: e.localZero },
|
|
276
|
+
{ x: l.value.right, y: e.localZero }
|
|
259
277
|
],
|
|
260
278
|
{
|
|
261
279
|
color: a.value.style.chart.grid.zeroLine.color,
|
|
@@ -263,43 +281,43 @@ const ll = ["id"], tl = ["onClick"], ol = {
|
|
|
263
281
|
}
|
|
264
282
|
);
|
|
265
283
|
}), a.value.style.chart.grid.y.axisLabels.show && h.value.forEach((e) => {
|
|
266
|
-
|
|
284
|
+
L(
|
|
267
285
|
s.value,
|
|
268
286
|
[
|
|
269
|
-
{ x:
|
|
270
|
-
{ x:
|
|
287
|
+
{ x: l.value.left, y: l.value.bottom - e.yOffset },
|
|
288
|
+
{ x: l.value.left, y: l.value.bottom - e.yOffset - e.individualHeight }
|
|
271
289
|
],
|
|
272
290
|
{
|
|
273
291
|
color: e.color
|
|
274
292
|
}
|
|
275
|
-
),
|
|
293
|
+
), L(
|
|
276
294
|
s.value,
|
|
277
295
|
[
|
|
278
|
-
{ x:
|
|
279
|
-
{ x:
|
|
296
|
+
{ x: l.value.right, y: l.value.bottom - e.yOffset },
|
|
297
|
+
{ x: l.value.right, y: l.value.bottom - e.yOffset - e.individualHeight }
|
|
280
298
|
],
|
|
281
299
|
{
|
|
282
300
|
color: e.color
|
|
283
301
|
}
|
|
284
|
-
), e.localYLabels.forEach((
|
|
302
|
+
), e.localYLabels.forEach((t, o) => {
|
|
285
303
|
E(
|
|
286
304
|
s.value,
|
|
287
305
|
Q(
|
|
288
306
|
a.value.style.chart.dataLabels.formatter,
|
|
289
|
-
|
|
307
|
+
t.value,
|
|
290
308
|
ee({
|
|
291
309
|
p: e.prefix || a.value.style.chart.grid.y.axisLabels.prefix || "",
|
|
292
|
-
v:
|
|
310
|
+
v: t.value,
|
|
293
311
|
s: e.suffix || a.value.style.chart.grid.y.axisLabels.suffix || "",
|
|
294
312
|
r: e.rounding || a.value.style.chart.grid.y.axisLabels.rounding || 0
|
|
295
313
|
}),
|
|
296
|
-
{ datapoint:
|
|
314
|
+
{ datapoint: t, seriesIndex: o }
|
|
297
315
|
),
|
|
298
|
-
|
|
299
|
-
|
|
316
|
+
t.x + a.value.style.chart.grid.y.axisLabels.offsetX,
|
|
317
|
+
t.y,
|
|
300
318
|
{
|
|
301
319
|
align: "right",
|
|
302
|
-
font: `${Math.round(
|
|
320
|
+
font: `${Math.round(y.value / 40 * a.value.style.chart.grid.y.axisLabels.fontSizeRatio)}px ${a.value.style.fontFamily}`,
|
|
303
321
|
color: e.color
|
|
304
322
|
}
|
|
305
323
|
);
|
|
@@ -308,85 +326,97 @@ const ll = ["id"], tl = ["onClick"], ol = {
|
|
|
308
326
|
E(
|
|
309
327
|
s.value,
|
|
310
328
|
e.name,
|
|
311
|
-
|
|
312
|
-
|
|
329
|
+
y.value / 35,
|
|
330
|
+
l.value.bottom - e.yOffset - e.individualHeight / 2,
|
|
313
331
|
{
|
|
314
332
|
align: "center",
|
|
315
333
|
rotation: -90,
|
|
316
334
|
color: e.color,
|
|
317
|
-
font: `${Math.round(
|
|
335
|
+
font: `${Math.round(y.value / 40 * a.value.style.chart.grid.y.axisLabels.fontSizeRatio)}px ${a.value.style.fontFamily}`
|
|
318
336
|
}
|
|
319
337
|
);
|
|
320
338
|
});
|
|
321
339
|
else {
|
|
322
340
|
if (a.value.style.chart.grid.y.verticalLines.show && r.value.end - r.value.start < a.value.style.chart.grid.y.verticalLines.hideUnderXLength)
|
|
323
341
|
for (let e = 0; e < r.value.end - r.value.start + 1; e += 1)
|
|
324
|
-
|
|
342
|
+
L(
|
|
343
|
+
s.value,
|
|
344
|
+
[
|
|
345
|
+
{ x: l.value.left + l.value.slot * e, y: l.value.top },
|
|
346
|
+
{ x: l.value.left + l.value.slot * e, y: l.value.bottom }
|
|
347
|
+
],
|
|
348
|
+
{
|
|
349
|
+
color: a.value.style.chart.grid.y.verticalLines.color
|
|
350
|
+
}
|
|
351
|
+
);
|
|
352
|
+
else if (a.value.style.chart.grid.y.verticalLines.show && r.value.end - r.value.start >= a.value.style.chart.grid.y.verticalLines.hideUnderXLength)
|
|
353
|
+
for (let e = r.value.start; e < r.value.end; e += 1)
|
|
354
|
+
e % Math.floor((r.value.end - r.value.start) / a.value.style.chart.grid.y.timeLabels.modulo) === 0 && L(
|
|
325
355
|
s.value,
|
|
326
356
|
[
|
|
327
|
-
{ x:
|
|
328
|
-
{ x:
|
|
357
|
+
{ x: l.value.left + l.value.slot * (e - r.value.start) + l.value.slot / 2, y: l.value.top },
|
|
358
|
+
{ x: l.value.left + l.value.slot * (e - r.value.start) + l.value.slot / 2, y: l.value.bottom }
|
|
329
359
|
],
|
|
330
360
|
{
|
|
331
361
|
color: a.value.style.chart.grid.y.verticalLines.color
|
|
332
362
|
}
|
|
333
363
|
);
|
|
334
|
-
a.value.style.chart.grid.x.horizontalLines.show && (a.value.style.chart.grid.x.horizontalLines.alternate ? p.value.yLabels.forEach((e,
|
|
335
|
-
|
|
364
|
+
a.value.style.chart.grid.x.horizontalLines.show && (a.value.style.chart.grid.x.horizontalLines.alternate ? p.value.yLabels.forEach((e, t) => {
|
|
365
|
+
t < p.value.yLabels.length - 1 && Le(
|
|
336
366
|
s.value,
|
|
337
367
|
[
|
|
338
|
-
{ x:
|
|
339
|
-
{ x:
|
|
340
|
-
{ x:
|
|
341
|
-
{ x:
|
|
368
|
+
{ x: l.value.left, y: e.y },
|
|
369
|
+
{ x: l.value.right, y: e.y },
|
|
370
|
+
{ x: l.value.right, y: p.value.yLabels[t + 1].y },
|
|
371
|
+
{ x: l.value.left, y: p.value.yLabels[t + 1].y }
|
|
342
372
|
],
|
|
343
373
|
{
|
|
344
|
-
fillColor:
|
|
374
|
+
fillColor: t % 2 === 0 ? "transparent" : ae(a.value.style.chart.grid.x.horizontalLines.color, a.value.style.chart.grid.x.horizontalLines.opacity),
|
|
345
375
|
strokeColor: "transparent"
|
|
346
376
|
}
|
|
347
377
|
);
|
|
348
378
|
}) : p.value.yLabels.forEach((e) => {
|
|
349
|
-
|
|
379
|
+
L(
|
|
350
380
|
s.value,
|
|
351
381
|
[
|
|
352
|
-
{ x:
|
|
353
|
-
{ x:
|
|
382
|
+
{ x: l.value.left, y: e.y },
|
|
383
|
+
{ x: l.value.right, y: e.y }
|
|
354
384
|
],
|
|
355
385
|
{
|
|
356
386
|
color: a.value.style.chart.grid.x.horizontalLines.color
|
|
357
387
|
}
|
|
358
388
|
);
|
|
359
|
-
})), a.value.style.chart.grid.y.showAxis &&
|
|
389
|
+
})), a.value.style.chart.grid.y.showAxis && L(
|
|
360
390
|
s.value,
|
|
361
391
|
[
|
|
362
|
-
{ x:
|
|
363
|
-
{ x:
|
|
392
|
+
{ x: l.value.left, y: l.value.top },
|
|
393
|
+
{ x: l.value.left, y: l.value.bottom }
|
|
364
394
|
],
|
|
365
395
|
{
|
|
366
396
|
color: a.value.style.chart.grid.y.axisColor,
|
|
367
397
|
lineWidth: a.value.style.chart.grid.y.axisThickness
|
|
368
398
|
}
|
|
369
|
-
), a.value.style.chart.grid.x.showAxis &&
|
|
399
|
+
), a.value.style.chart.grid.x.showAxis && L(
|
|
370
400
|
s.value,
|
|
371
401
|
[
|
|
372
|
-
{ x:
|
|
373
|
-
{ x:
|
|
402
|
+
{ x: l.value.left, y: l.value.bottom },
|
|
403
|
+
{ x: l.value.right, y: l.value.bottom }
|
|
374
404
|
],
|
|
375
405
|
{
|
|
376
406
|
color: a.value.style.chart.grid.x.axisColor,
|
|
377
407
|
lineWidth: a.value.style.chart.grid.x.axisThickness
|
|
378
408
|
}
|
|
379
|
-
), a.value.style.chart.grid.zeroLine.show &&
|
|
409
|
+
), a.value.style.chart.grid.zeroLine.show && L(
|
|
380
410
|
s.value,
|
|
381
411
|
[
|
|
382
|
-
{ x:
|
|
383
|
-
{ x:
|
|
412
|
+
{ x: l.value.left, y: p.value.zero },
|
|
413
|
+
{ x: l.value.right, y: p.value.zero }
|
|
384
414
|
],
|
|
385
415
|
{
|
|
386
416
|
color: a.value.style.chart.grid.zeroLine.color,
|
|
387
417
|
lineDash: a.value.style.chart.grid.zeroLine.dashed ? [10, 10] : [0, 0]
|
|
388
418
|
}
|
|
389
|
-
), a.value.style.chart.grid.y.axisLabels.show && p.value.yLabels.forEach((e,
|
|
419
|
+
), a.value.style.chart.grid.y.axisLabels.show && p.value.yLabels.forEach((e, t) => {
|
|
390
420
|
E(
|
|
391
421
|
s.value,
|
|
392
422
|
Q(
|
|
@@ -398,13 +428,13 @@ const ll = ["id"], tl = ["onClick"], ol = {
|
|
|
398
428
|
s: a.value.style.chart.grid.y.axisLabels.suffix || "",
|
|
399
429
|
r: a.value.style.chart.grid.y.axisLabels.rounding || 0
|
|
400
430
|
}),
|
|
401
|
-
{ datapoint: e, seriesIndex:
|
|
431
|
+
{ datapoint: e, seriesIndex: t }
|
|
402
432
|
),
|
|
403
433
|
e.x + a.value.style.chart.grid.y.axisLabels.offsetX,
|
|
404
434
|
e.y,
|
|
405
435
|
{
|
|
406
436
|
align: "right",
|
|
407
|
-
font: `${Math.round(
|
|
437
|
+
font: `${Math.round(y.value / 40 * a.value.style.chart.grid.y.axisLabels.fontSizeRatio)}px ${a.value.style.fontFamily}`,
|
|
408
438
|
color: a.value.style.chart.grid.y.axisLabels.color
|
|
409
439
|
}
|
|
410
440
|
);
|
|
@@ -413,10 +443,10 @@ const ll = ["id"], tl = ["onClick"], ol = {
|
|
|
413
443
|
a.value.style.chart.grid.y.axisName && E(
|
|
414
444
|
s.value,
|
|
415
445
|
a.value.style.chart.grid.y.axisName,
|
|
416
|
-
|
|
417
|
-
|
|
446
|
+
y.value - y.value / 40 * a.value.style.chart.grid.y.axisLabels.fontSizeRatio * 1.2,
|
|
447
|
+
l.value.bottom - l.value.height / 2,
|
|
418
448
|
{
|
|
419
|
-
font: `${Math.round(
|
|
449
|
+
font: `${Math.round(y.value / 40 * a.value.style.chart.grid.y.axisLabels.fontSizeRatio)}px ${a.value.style.fontFamily}`,
|
|
420
450
|
color: a.value.style.chart.color,
|
|
421
451
|
align: "center",
|
|
422
452
|
rotation: 90
|
|
@@ -424,21 +454,21 @@ const ll = ["id"], tl = ["onClick"], ol = {
|
|
|
424
454
|
), a.value.style.chart.grid.x.axisName && E(
|
|
425
455
|
s.value,
|
|
426
456
|
a.value.style.chart.grid.x.axisName,
|
|
427
|
-
|
|
457
|
+
y.value / 2,
|
|
428
458
|
R.value,
|
|
429
459
|
{
|
|
430
|
-
font: `${Math.round(
|
|
460
|
+
font: `${Math.round(y.value / 40 * a.value.style.chart.grid.y.axisLabels.fontSizeRatio)}px ${a.value.style.fontFamily}`,
|
|
431
461
|
color: a.value.style.chart.color,
|
|
432
462
|
align: "center"
|
|
433
463
|
}
|
|
434
464
|
);
|
|
435
465
|
}
|
|
436
466
|
function va(e) {
|
|
437
|
-
for (let
|
|
438
|
-
const o = (d.value ===
|
|
467
|
+
for (let t = 0; t < e.coordinatesLine.length; t += 1) {
|
|
468
|
+
const o = (d.value === t ? y.value / 150 : a.value.style.chart.line.plots.show ? y.value / 200 : 0) * a.value.style.chart.line.plots.radiusRatio;
|
|
439
469
|
Ke(
|
|
440
470
|
s.value,
|
|
441
|
-
{ x: e.coordinatesLine[
|
|
471
|
+
{ x: e.coordinatesLine[t].x, y: e.coordinatesLine[t].y },
|
|
442
472
|
o,
|
|
443
473
|
{
|
|
444
474
|
color: a.value.style.chart.backgroundColor,
|
|
@@ -449,25 +479,25 @@ const ll = ["id"], tl = ["onClick"], ol = {
|
|
|
449
479
|
}
|
|
450
480
|
}
|
|
451
481
|
function ca(e) {
|
|
452
|
-
for (let
|
|
482
|
+
for (let t = 0; t < e.coordinatesLine.length; t += 1)
|
|
453
483
|
E(
|
|
454
484
|
s.value,
|
|
455
485
|
Q(
|
|
456
486
|
a.value.style.chart.dataLabels.formatter,
|
|
457
|
-
e.coordinatesLine[
|
|
487
|
+
e.coordinatesLine[t].value,
|
|
458
488
|
ee({
|
|
459
489
|
p: e.prefix || "",
|
|
460
|
-
v: e.coordinatesLine[
|
|
490
|
+
v: e.coordinatesLine[t].value,
|
|
461
491
|
s: e.suffix || "",
|
|
462
492
|
r: e.rounding || 0
|
|
463
493
|
}),
|
|
464
|
-
{ datapoint: e.coordinatesLine[
|
|
494
|
+
{ datapoint: e.coordinatesLine[t], seriesIndex: t }
|
|
465
495
|
),
|
|
466
|
-
e.coordinatesLine[
|
|
467
|
-
e.coordinatesLine[
|
|
496
|
+
e.coordinatesLine[t].x,
|
|
497
|
+
e.coordinatesLine[t].y + a.value.style.chart.dataLabels.offsetY,
|
|
468
498
|
{
|
|
469
499
|
align: "center",
|
|
470
|
-
font: `${Math.round(
|
|
500
|
+
font: `${Math.round(y.value / 40 * a.value.style.chart.dataLabels.fontSizeRatio)}px ${a.value.style.fontFamily}`,
|
|
471
501
|
color: a.value.style.chart.dataLabels.useSerieColor ? e.color : a.value.style.chart.dataLabels.color,
|
|
472
502
|
strokeColor: a.value.style.chart.backgroundColor,
|
|
473
503
|
lineWidth: 0.8
|
|
@@ -479,22 +509,22 @@ const ll = ["id"], tl = ["onClick"], ol = {
|
|
|
479
509
|
(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 === d.value + r.value.start)) && E(
|
|
480
510
|
s.value,
|
|
481
511
|
a.value.style.chart.grid.y.timeLabels.values[e] || e + 1,
|
|
482
|
-
|
|
483
|
-
|
|
512
|
+
l.value.left + l.value.slot * (e - r.value.start) + l.value.slot / 2,
|
|
513
|
+
l.value.bottom + y.value / a.value.style.chart.grid.y.timeLabels.offsetY,
|
|
484
514
|
{
|
|
485
515
|
align: a.value.style.chart.grid.y.timeLabels.rotation === 0 ? "center" : a.value.style.chart.grid.y.timeLabels.rotation > 0 ? "left" : "right",
|
|
486
|
-
font: `${Math.round(
|
|
516
|
+
font: `${Math.round(y.value / 40 * a.value.style.chart.grid.y.timeLabels.fontSizeRatio)}px ${a.value.style.fontFamily}`,
|
|
487
517
|
color: ae(a.value.style.chart.grid.y.timeLabels.color, d.value !== null ? d.value + r.value.start === e ? 100 : 20 : 100),
|
|
488
518
|
rotation: a.value.style.chart.grid.y.timeLabels.rotation
|
|
489
519
|
}
|
|
490
520
|
);
|
|
491
521
|
}
|
|
492
522
|
function De() {
|
|
493
|
-
|
|
523
|
+
L(
|
|
494
524
|
s.value,
|
|
495
525
|
[
|
|
496
|
-
{ x:
|
|
497
|
-
{ x:
|
|
526
|
+
{ x: l.value.left + l.value.slot * d.value + l.value.slot / 2, y: l.value.top },
|
|
527
|
+
{ x: l.value.left + l.value.slot * d.value + l.value.slot / 2, y: l.value.bottom }
|
|
498
528
|
],
|
|
499
529
|
{
|
|
500
530
|
color: a.value.style.chart.selector.color,
|
|
@@ -505,25 +535,25 @@ const ll = ["id"], tl = ["onClick"], ol = {
|
|
|
505
535
|
);
|
|
506
536
|
}
|
|
507
537
|
function ha() {
|
|
508
|
-
|
|
538
|
+
C.value.forEach((e, t) => {
|
|
509
539
|
for (let o = 0; o < e.coordinatesLine.length; o += 1)
|
|
510
540
|
Le(
|
|
511
541
|
s.value,
|
|
512
542
|
[
|
|
513
543
|
{
|
|
514
|
-
x:
|
|
544
|
+
x: l.value.left + l.value.slot * o + l.value.slot / 10 + (u.value.stacked ? 0 : l.value.slot / C.value.length * t - (t === 0 ? 0 : l.value.slot / (5 * C.value.length) * t)),
|
|
515
545
|
y: u.value.stacked ? e.localZero : p.value.zero
|
|
516
546
|
},
|
|
517
547
|
{
|
|
518
|
-
x:
|
|
548
|
+
x: l.value.left + l.value.slot * o + l.value.slot / 10 + (u.value.stacked ? 0 : l.value.slot / C.value.length * t - (t === 0 ? 0 : l.value.slot / (5 * C.value.length) * t)) + l.value.slot * 0.8 / (u.value.stacked ? 1 : C.value.length),
|
|
519
549
|
y: u.value.stacked ? e.localZero : p.value.zero
|
|
520
550
|
},
|
|
521
551
|
{
|
|
522
|
-
x:
|
|
552
|
+
x: l.value.left + l.value.slot * o + l.value.slot / 10 + (u.value.stacked ? 0 : l.value.slot / C.value.length * t - (t === 0 ? 0 : l.value.slot / (5 * C.value.length) * t)) + l.value.slot * 0.8 / (u.value.stacked ? 1 : C.value.length),
|
|
523
553
|
y: e.coordinatesLine[o].y
|
|
524
554
|
},
|
|
525
555
|
{
|
|
526
|
-
x:
|
|
556
|
+
x: l.value.left + l.value.slot * o + l.value.slot / 10 + (u.value.stacked ? 0 : l.value.slot / C.value.length * t - (t === 0 ? 0 : l.value.slot / (5 * C.value.length) * t)),
|
|
527
557
|
y: e.coordinatesLine[o].y
|
|
528
558
|
}
|
|
529
559
|
],
|
|
@@ -558,11 +588,11 @@ const ll = ["id"], tl = ["onClick"], ol = {
|
|
|
558
588
|
}),
|
|
559
589
|
{ datapoint: e.coordinatesLine[o], seriesIndex: o }
|
|
560
590
|
),
|
|
561
|
-
|
|
591
|
+
l.value.left + l.value.slot * o + l.value.slot / 10 + (u.value.stacked ? 0 : l.value.slot / C.value.length * t - (t === 0 ? 0 : l.value.slot / (5 * C.value.length) * t)) + l.value.slot * 0.4 / (u.value.stacked ? 1 : C.value.length),
|
|
562
592
|
(e.coordinatesLine[o].value < 0 ? u.value.stacked ? e.localZero : p.value.zero : e.coordinatesLine[o].y) + a.value.style.chart.dataLabels.offsetY,
|
|
563
593
|
{
|
|
564
594
|
align: "center",
|
|
565
|
-
font: `${Math.round(
|
|
595
|
+
font: `${Math.round(y.value / 40 * a.value.style.chart.dataLabels.fontSizeRatio)}px ${a.value.style.fontFamily}`,
|
|
566
596
|
color: a.value.style.chart.dataLabels.useSerieColor ? e.color : a.value.style.chart.dataLabels.color,
|
|
567
597
|
strokeColor: a.value.style.chart.backgroundColor,
|
|
568
598
|
lineWidth: 0.8
|
|
@@ -570,7 +600,7 @@ const ll = ["id"], tl = ["onClick"], ol = {
|
|
|
570
600
|
);
|
|
571
601
|
});
|
|
572
602
|
}
|
|
573
|
-
function
|
|
603
|
+
function ya(e) {
|
|
574
604
|
e.useArea ? u.value.stacked ? Qe(
|
|
575
605
|
s.value,
|
|
576
606
|
[{ x: e.coordinatesLine[0].x, y: e.localZero }, ...e.coordinatesLine, { x: e.coordinatesLine.at(-1).x, y: e.localZero }],
|
|
@@ -585,18 +615,18 @@ const ll = ["id"], tl = ["onClick"], ol = {
|
|
|
585
615
|
fillColor: ae(e.color, a.value.style.chart.area.opacity),
|
|
586
616
|
strokeColor: "transparent"
|
|
587
617
|
}
|
|
588
|
-
) :
|
|
618
|
+
) : L(s.value, e.coordinatesLine, {
|
|
589
619
|
color: e.color,
|
|
590
620
|
lineWidth: 3
|
|
591
621
|
});
|
|
592
622
|
}
|
|
593
|
-
function
|
|
594
|
-
h.value.forEach((e,
|
|
595
|
-
|
|
623
|
+
function fa() {
|
|
624
|
+
h.value.forEach((e, t) => {
|
|
625
|
+
L(
|
|
596
626
|
s.value,
|
|
597
627
|
[
|
|
598
|
-
{ x:
|
|
599
|
-
{ x:
|
|
628
|
+
{ x: l.value.left, y: l.value.bottom - e.yOffset },
|
|
629
|
+
{ x: l.value.right, y: l.value.bottom - e.yOffset }
|
|
600
630
|
],
|
|
601
631
|
{
|
|
602
632
|
color: a.value.style.chart.grid.x.horizontalLines.color,
|
|
@@ -606,9 +636,9 @@ const ll = ["id"], tl = ["onClick"], ol = {
|
|
|
606
636
|
});
|
|
607
637
|
}
|
|
608
638
|
function ge() {
|
|
609
|
-
ia(), N.value ? (
|
|
610
|
-
(e.type === "line" || !e.type) &&
|
|
611
|
-
}), ve.value =
|
|
639
|
+
ia(), N.value ? (M.value && d.value !== null && a.value.style.chart.selector.show && De(), ha(), u.value.stacked && a.value.style.chart.grid.x.showAxis && fa(), sa.value.forEach((e) => {
|
|
640
|
+
(e.type === "line" || !e.type) && ya(e), M.value && (va(e), u.value.showDataLabels && [!0, void 0].includes(e.dataLabels) && ca(e));
|
|
641
|
+
}), ve.value = Xa(z.value)) : (ve.value && (s.value.clearRect(0, 0, 1e4, 1e4), s.value.drawImage(ve.value, 0, 0)), M.value && d.value !== null && a.value.style.chart.selector.show && De(), M.value && d.value !== null && h.value.forEach((e) => {
|
|
612
642
|
if (e.type === "line" || !e.type || e.type === "plot") {
|
|
613
643
|
if (!e.coordinatesLine[d.value]) return;
|
|
614
644
|
e.coordinatesLine[d.value].x !== void 0 && e.coordinatesLine[d.value].y !== void 0 && Ke(
|
|
@@ -617,7 +647,7 @@ const ll = ["id"], tl = ["onClick"], ol = {
|
|
|
617
647
|
x: e.coordinatesLine[d.value].x,
|
|
618
648
|
y: e.coordinatesLine[d.value].y
|
|
619
649
|
},
|
|
620
|
-
|
|
650
|
+
y.value / 150 * a.value.style.chart.line.plots.radiusRatio,
|
|
621
651
|
{
|
|
622
652
|
color: a.value.style.chart.backgroundColor,
|
|
623
653
|
fillStyle: e.color,
|
|
@@ -628,41 +658,41 @@ const ll = ["id"], tl = ["onClick"], ol = {
|
|
|
628
658
|
})), a.value.style.chart.grid.y.timeLabels.show && da(), N.value = !1;
|
|
629
659
|
}
|
|
630
660
|
const oe = Wa(() => {
|
|
631
|
-
|
|
632
|
-
},
|
|
661
|
+
M.value = !0, na();
|
|
662
|
+
}, O.value > 200 ? 10 : 1, !M.value);
|
|
633
663
|
function ga(e) {
|
|
634
|
-
const { left:
|
|
635
|
-
if (o * 2 <
|
|
664
|
+
const { left: t } = z.value.getBoundingClientRect(), o = e.clientX - t;
|
|
665
|
+
if (o * 2 < l.value.left || o * 2 > l.value.right) {
|
|
636
666
|
le.value = !1, d.value = null;
|
|
637
667
|
return;
|
|
638
668
|
}
|
|
639
|
-
const i = o * 2 -
|
|
640
|
-
if (d.value = Math.floor(i /
|
|
669
|
+
const i = o * 2 - l.value.left;
|
|
670
|
+
if (d.value = Math.floor(i / l.value.slot), le.value = !0, !M.value) return;
|
|
641
671
|
let c = "";
|
|
642
|
-
const
|
|
643
|
-
Je(
|
|
672
|
+
const f = a.value.style.chart.tooltip.customFormat;
|
|
673
|
+
Je(f) && Aa(() => f({
|
|
644
674
|
seriesIndex: d.value,
|
|
645
675
|
datapoint: h.value.map((n) => ({
|
|
646
676
|
shape: n.shape || null,
|
|
647
677
|
name: n.name,
|
|
648
678
|
color: n.color,
|
|
649
679
|
type: n.type || "line",
|
|
650
|
-
value: n.series.find((g,
|
|
680
|
+
value: n.series.find((g, w) => w === d.value)
|
|
651
681
|
})),
|
|
652
682
|
series: h.value,
|
|
653
683
|
config: a.value
|
|
654
|
-
})) ? te.value =
|
|
684
|
+
})) ? te.value = f({
|
|
655
685
|
seriesIndex: d.value,
|
|
656
686
|
datapoint: h.value.map((n) => ({
|
|
657
687
|
shape: n.shape || null,
|
|
658
688
|
name: n.name,
|
|
659
689
|
color: n.color,
|
|
660
690
|
type: n.type || "line",
|
|
661
|
-
value: n.series.find((g,
|
|
691
|
+
value: n.series.find((g, w) => w === d.value)
|
|
662
692
|
})),
|
|
663
693
|
series: h.value,
|
|
664
694
|
config: a.value
|
|
665
|
-
}) : (a.value.style.chart.grid.y.timeLabels.values.slice(r.value.start, r.value.end)[d.value] && (c += `<div style="padding-bottom: 6px; margin-bottom: 4px; border-bottom: 1px solid ${a.value.style.chart.tooltip.borderColor}; width:100%">${a.value.style.chart.grid.y.timeLabels.values.slice(r.value.start, r.value.end)[d.value]}</div>`), c += ua.value.join(""), te.value = c),
|
|
695
|
+
}) : (a.value.style.chart.grid.y.timeLabels.values.slice(r.value.start, r.value.end)[d.value] && (c += `<div style="padding-bottom: 6px; margin-bottom: 4px; border-bottom: 1px solid ${a.value.style.chart.tooltip.borderColor}; width:100%">${a.value.style.chart.grid.y.timeLabels.values.slice(r.value.start, r.value.end)[d.value]}</div>`), c += ua.value.join(""), te.value = c), M.value = !1;
|
|
666
696
|
}
|
|
667
697
|
A(() => d.value, (e) => {
|
|
668
698
|
oe();
|
|
@@ -673,7 +703,7 @@ const ll = ["id"], tl = ["onClick"], ol = {
|
|
|
673
703
|
}), A(() => u.value.showDataLabels, (e) => {
|
|
674
704
|
N.value = !0, ge();
|
|
675
705
|
}), A(() => u.value.stacked, (e) => {
|
|
676
|
-
N.value = !0,
|
|
706
|
+
N.value = !0, M.value = !0, oe();
|
|
677
707
|
});
|
|
678
708
|
function pa() {
|
|
679
709
|
le.value = !1, d.value = null, te.value = "";
|
|
@@ -683,37 +713,37 @@ const ll = ["id"], tl = ["onClick"], ol = {
|
|
|
683
713
|
pe();
|
|
684
714
|
});
|
|
685
715
|
function pe() {
|
|
686
|
-
if (Ea(
|
|
716
|
+
if (Ea(k.dataset) ? Na({
|
|
687
717
|
componentName: "VueUiXyCanvas",
|
|
688
718
|
type: "dataset"
|
|
689
719
|
}) : z.value && (s.value = z.value.getContext("2d", { willReadFrequently: !0 })), a.value.responsive) {
|
|
690
|
-
const e =
|
|
691
|
-
const { width:
|
|
720
|
+
const e = Ya(() => {
|
|
721
|
+
const { width: t, height: o } = Ba({
|
|
692
722
|
chart: U.value,
|
|
693
723
|
title: a.value.style.chart.title.text ? $e.value : null,
|
|
694
724
|
legend: a.value.style.chart.legend.show ? ze.value : null,
|
|
695
|
-
slicer: a.value.style.chart.zoom.show &&
|
|
696
|
-
source:
|
|
725
|
+
slicer: a.value.style.chart.zoom.show && O.value > 1 ? Me.value : null,
|
|
726
|
+
source: Te.value
|
|
697
727
|
});
|
|
698
|
-
|
|
728
|
+
Oe.value = `${t} / ${o}`;
|
|
699
729
|
});
|
|
700
730
|
re.value = new ResizeObserver(e), re.value.observe(U.value.parentNode);
|
|
701
731
|
}
|
|
702
732
|
ue.value = new ResizeObserver((e) => {
|
|
703
|
-
for (const
|
|
704
|
-
|
|
733
|
+
for (const t of e)
|
|
734
|
+
t.contentBoxSize && Z.value && (N.value = !0, oe());
|
|
705
735
|
}), ue.value.observe(Z.value);
|
|
706
736
|
}
|
|
707
737
|
ka(() => {
|
|
708
738
|
ue.value && ue.value.disconnect(), re.value && re.value.disconnect();
|
|
709
739
|
});
|
|
710
740
|
function He(e) {
|
|
711
|
-
la("selectLegend", h.value.find((
|
|
741
|
+
la("selectLegend", h.value.find((t) => t.absoluteIndex === e)), $.value.includes(e) ? $.value = $.value.filter((t) => t !== e) : $.value.push(e), N.value = !0, oe();
|
|
712
742
|
}
|
|
713
|
-
const We = b(() =>
|
|
743
|
+
const We = b(() => X.value.map((e, t) => ({
|
|
714
744
|
...e,
|
|
715
745
|
name: e.name,
|
|
716
|
-
color: qe(e.color) || Ne.value[
|
|
746
|
+
color: qe(e.color) || Ne.value[t] || H[t] || H[t % H.length],
|
|
717
747
|
shape: e.shape || "circle",
|
|
718
748
|
prefix: e.prefix || "",
|
|
719
749
|
suffix: e.suffix || "",
|
|
@@ -732,10 +762,10 @@ const ll = ["id"], tl = ["onClick"], ol = {
|
|
|
732
762
|
fontWeight: a.value.style.chart.legend.bold ? "bold" : ""
|
|
733
763
|
})), se = b(() => {
|
|
734
764
|
const e = [""].concat(h.value.map((c) => c.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>');
|
|
735
|
-
let
|
|
736
|
-
for (let c = 0; c <
|
|
737
|
-
const
|
|
738
|
-
|
|
765
|
+
let t = [];
|
|
766
|
+
for (let c = 0; c < O.value; c += 1) {
|
|
767
|
+
const f = h.value.map((n) => n.series[c] ?? 0).reduce((n, g) => n + g, 0);
|
|
768
|
+
t.push([a.value.style.chart.grid.y.timeLabels.values.slice(r.value.start, r.value.end)[c] ?? c + 1].concat(h.value.map((n) => (n.series[c] ?? 0).toFixed(a.value.table.rounding))).concat((f ?? 0).toFixed(a.value.table.rounding)));
|
|
739
769
|
}
|
|
740
770
|
const o = {
|
|
741
771
|
th: {
|
|
@@ -750,30 +780,30 @@ const ll = ["id"], tl = ["onClick"], ol = {
|
|
|
750
780
|
},
|
|
751
781
|
breakpoint: a.value.table.responsiveBreakpoint
|
|
752
782
|
}, i = [a.value.table.columnNames.period].concat(h.value.map((c) => c.name)).concat(a.value.table.columnNames.total);
|
|
753
|
-
return { head: e, body:
|
|
754
|
-
}),
|
|
783
|
+
return { head: e, body: t.slice(0, r.value.end - r.value.start), config: o, colNames: i };
|
|
784
|
+
}), Xe = b(() => {
|
|
755
785
|
if (h.value.length === 0) return { head: [], body: [], config: {}, columnNames: [] };
|
|
756
786
|
const e = h.value.map((o) => ({
|
|
757
787
|
label: o.name,
|
|
758
788
|
color: o.color,
|
|
759
789
|
type: o.type
|
|
760
|
-
})),
|
|
790
|
+
})), t = [];
|
|
761
791
|
for (let o = r.value.start; o < r.value.end; o += 1) {
|
|
762
792
|
const i = [a.value.style.chart.grid.y.timeLabels.values[o] || o + 1];
|
|
763
793
|
h.value.forEach((c) => {
|
|
764
794
|
i.push(Number((c.series[o] || 0).toFixed(a.value.table.rounding)));
|
|
765
|
-
}),
|
|
795
|
+
}), t.push(i);
|
|
766
796
|
}
|
|
767
|
-
return { head: e, body:
|
|
797
|
+
return { head: e, body: t };
|
|
768
798
|
});
|
|
769
|
-
function
|
|
770
|
-
const e = [[a.value.style.chart.title.text], [a.value.style.chart.title.subtitle.text], [""]],
|
|
799
|
+
function Ye() {
|
|
800
|
+
const e = [[a.value.style.chart.title.text], [a.value.style.chart.title.subtitle.text], [""]], t = ["", ...Xe.value.head.map((f) => f.label)], o = Xe.value.body, i = e.concat([t]).concat(o), c = _a(i);
|
|
771
801
|
Da({ csvContent: c, title: a.value.style.chart.title.text || "vue-ui-xy-canvas" });
|
|
772
802
|
}
|
|
773
803
|
function ba() {
|
|
774
804
|
return h.value;
|
|
775
805
|
}
|
|
776
|
-
function
|
|
806
|
+
function Be() {
|
|
777
807
|
u.value.showTable = !u.value.showTable;
|
|
778
808
|
}
|
|
779
809
|
function Ue() {
|
|
@@ -791,28 +821,28 @@ const ll = ["id"], tl = ["onClick"], ol = {
|
|
|
791
821
|
}
|
|
792
822
|
return aa({
|
|
793
823
|
getData: ba,
|
|
794
|
-
generateCsv:
|
|
824
|
+
generateCsv: Ye,
|
|
795
825
|
generatePdf: Fe,
|
|
796
826
|
generateImage: Ee,
|
|
797
|
-
toggleTable:
|
|
827
|
+
toggleTable: Be,
|
|
798
828
|
toggleLabels: Ue,
|
|
799
829
|
toggleStack: Ze,
|
|
800
830
|
toggleTooltip: Ge,
|
|
801
831
|
toggleAnnotator: me
|
|
802
|
-
}), (e,
|
|
832
|
+
}), (e, t) => (S(), q("div", {
|
|
803
833
|
style: J(`width:100%; position:relative; ${a.value.responsive ? "height: 100%" : ""}`),
|
|
804
834
|
ref_key: "xy",
|
|
805
835
|
ref: U,
|
|
806
836
|
id: `xy_canvas_${ie.value}`,
|
|
807
837
|
class: Ca(`vue-ui-donut ${ce.value ? "vue-data-ui-wrapper-fullscreen" : ""}`)
|
|
808
838
|
}, [
|
|
809
|
-
a.value.style.chart.title.text ? (
|
|
839
|
+
a.value.style.chart.title.text ? (S(), q("div", {
|
|
810
840
|
key: 0,
|
|
811
841
|
ref_key: "chartTitle",
|
|
812
842
|
ref: $e,
|
|
813
843
|
style: J(`width:100%;background:${a.value.style.chart.backgroundColor};`)
|
|
814
844
|
}, [
|
|
815
|
-
(
|
|
845
|
+
(S(), F(Ga, {
|
|
816
846
|
key: `title_${de.value}`,
|
|
817
847
|
config: {
|
|
818
848
|
title: {
|
|
@@ -826,12 +856,12 @@ const ll = ["id"], tl = ["onClick"], ol = {
|
|
|
826
856
|
}
|
|
827
857
|
}, null, 8, ["config"]))
|
|
828
858
|
], 4)) : _("", !0),
|
|
829
|
-
a.value.userOptions.show &&
|
|
859
|
+
a.value.userOptions.show && fe.value ? (S(), F(qa, {
|
|
830
860
|
ref: "details",
|
|
831
861
|
key: `user_option_${Se.value}`,
|
|
832
862
|
backgroundColor: a.value.style.chart.backgroundColor,
|
|
833
863
|
color: a.value.style.chart.color,
|
|
834
|
-
isPrinting: D(
|
|
864
|
+
isPrinting: D(Ie),
|
|
835
865
|
isImaging: D(Pe),
|
|
836
866
|
uid: ie.value,
|
|
837
867
|
hasTooltip: a.value.userOptions.buttons.tooltip && a.value.style.chart.tooltip.show,
|
|
@@ -852,9 +882,9 @@ const ll = ["id"], tl = ["onClick"], ol = {
|
|
|
852
882
|
isAnnotation: ne.value,
|
|
853
883
|
onToggleFullscreen: oa,
|
|
854
884
|
onGeneratePdf: D(Fe),
|
|
855
|
-
onGenerateCsv:
|
|
885
|
+
onGenerateCsv: Ye,
|
|
856
886
|
onGenerateImage: D(Ee),
|
|
857
|
-
onToggleTable:
|
|
887
|
+
onToggleTable: Be,
|
|
858
888
|
onToggleLabels: Ue,
|
|
859
889
|
onToggleStack: Ze,
|
|
860
890
|
onToggleTooltip: Ge,
|
|
@@ -912,32 +942,32 @@ const ll = ["id"], tl = ["onClick"], ol = {
|
|
|
912
942
|
e.$slots.optionFullscreen ? {
|
|
913
943
|
name: "optionFullscreen",
|
|
914
944
|
fn: m(({ toggleFullscreen: o, isFullscreen: i }) => [
|
|
915
|
-
x(e.$slots, "optionFullscreen", B(
|
|
945
|
+
x(e.$slots, "optionFullscreen", Y(B({ toggleFullscreen: o, isFullscreen: i })), void 0, !0)
|
|
916
946
|
]),
|
|
917
947
|
key: "7"
|
|
918
948
|
} : void 0,
|
|
919
949
|
e.$slots.optionAnnotator ? {
|
|
920
950
|
name: "optionAnnotator",
|
|
921
951
|
fn: m(({ toggleAnnotator: o, isAnnotator: i }) => [
|
|
922
|
-
x(e.$slots, "optionAnnotator", B(
|
|
952
|
+
x(e.$slots, "optionAnnotator", Y(B({ toggleAnnotator: o, isAnnotator: i })), void 0, !0)
|
|
923
953
|
]),
|
|
924
954
|
key: "8"
|
|
925
955
|
} : void 0
|
|
926
956
|
]), 1032, ["backgroundColor", "color", "isPrinting", "isImaging", "uid", "hasTooltip", "hasPdf", "hasImg", "hasXls", "hasLabel", "hasStack", "hasFullscreen", "hasTable", "isFullscreen", "isTooltip", "isStacked", "titles", "chartElement", "position", "hasAnnotator", "isAnnotation", "onGeneratePdf", "onGenerateImage"])) : _("", !0),
|
|
927
957
|
K("div", {
|
|
928
958
|
class: "vue-ui-xy-canvas",
|
|
929
|
-
style: J(`position: relative; aspect-ratio: ${
|
|
959
|
+
style: J(`position: relative; aspect-ratio: ${Oe.value}`),
|
|
930
960
|
ref_key: "container",
|
|
931
961
|
ref: Z
|
|
932
962
|
}, [
|
|
933
|
-
|
|
963
|
+
fe.value ? (S(), q("canvas", {
|
|
934
964
|
key: 0,
|
|
935
965
|
ref_key: "canvas",
|
|
936
966
|
ref: z,
|
|
937
967
|
style: { width: "100%", height: "100%" },
|
|
938
|
-
onMousemove:
|
|
968
|
+
onMousemove: t[0] || (t[0] = (o) => ga(o)),
|
|
939
969
|
onMouseleave: pa
|
|
940
|
-
}, null, 544)) : (
|
|
970
|
+
}, null, 544)) : (S(), F(Qa, {
|
|
941
971
|
key: 1,
|
|
942
972
|
config: {
|
|
943
973
|
type: "line",
|
|
@@ -971,21 +1001,21 @@ const ll = ["id"], tl = ["onClick"], ol = {
|
|
|
971
1001
|
isCustom: D(Je)(a.value.style.chart.tooltip.customFormat)
|
|
972
1002
|
}, {
|
|
973
1003
|
"tooltip-before": m(() => [
|
|
974
|
-
x(e.$slots, "tooltip-before", B(
|
|
1004
|
+
x(e.$slots, "tooltip-before", Y(B({ ...Ce.value })), void 0, !0)
|
|
975
1005
|
]),
|
|
976
1006
|
"tooltip-after": m(() => [
|
|
977
|
-
x(e.$slots, "tooltip-after", B(
|
|
1007
|
+
x(e.$slots, "tooltip-after", Y(B({ ...Ce.value })), void 0, !0)
|
|
978
1008
|
]),
|
|
979
1009
|
_: 3
|
|
980
1010
|
}, 8, ["show", "backgroundColor", "color", "fontSize", "borderRadius", "borderColor", "borderWidth", "position", "offsetY", "parent", "content", "backgroundOpacity", "isCustom"])
|
|
981
1011
|
], 4),
|
|
982
1012
|
K("div", {
|
|
983
1013
|
ref_key: "chartSlicer",
|
|
984
|
-
ref:
|
|
1014
|
+
ref: Me,
|
|
985
1015
|
style: J(`width:100%;background:${a.value.style.chart.backgroundColor}`),
|
|
986
1016
|
"data-html2canvas-ignore": ""
|
|
987
1017
|
}, [
|
|
988
|
-
a.value.style.chart.zoom.show &&
|
|
1018
|
+
a.value.style.chart.zoom.show && O.value > 1 ? (S(), F(Va, {
|
|
989
1019
|
key: `slicer_${we.value}`,
|
|
990
1020
|
background: a.value.style.chart.zoom.color,
|
|
991
1021
|
borderColor: a.value.style.chart.backgroundColor,
|
|
@@ -996,18 +1026,18 @@ const ll = ["id"], tl = ["onClick"], ol = {
|
|
|
996
1026
|
textColor: a.value.style.chart.color,
|
|
997
1027
|
inputColor: a.value.style.chart.zoom.color,
|
|
998
1028
|
selectColor: a.value.style.chart.zoom.highlightColor,
|
|
999
|
-
max:
|
|
1029
|
+
max: O.value,
|
|
1000
1030
|
min: 0,
|
|
1001
1031
|
valueStart: r.value.start,
|
|
1002
1032
|
valueEnd: r.value.end,
|
|
1003
1033
|
start: r.value.start,
|
|
1004
|
-
"onUpdate:start":
|
|
1034
|
+
"onUpdate:start": t[1] || (t[1] = (o) => r.value.start = o),
|
|
1005
1035
|
end: r.value.end,
|
|
1006
|
-
"onUpdate:end":
|
|
1036
|
+
"onUpdate:end": t[2] || (t[2] = (o) => r.value.end = o),
|
|
1007
1037
|
onReset: _e
|
|
1008
1038
|
}, {
|
|
1009
1039
|
"reset-action": m(({ reset: o }) => [
|
|
1010
|
-
x(e.$slots, "reset-action", B(
|
|
1040
|
+
x(e.$slots, "reset-action", Y(B({ reset: o })), void 0, !0)
|
|
1011
1041
|
]),
|
|
1012
1042
|
_: 3
|
|
1013
1043
|
}, 8, ["background", "borderColor", "fontSize", "useResetSlot", "labelLeft", "labelRight", "textColor", "inputColor", "selectColor", "max", "valueStart", "valueEnd", "start", "end"])) : _("", !0)
|
|
@@ -1016,11 +1046,11 @@ const ll = ["id"], tl = ["onClick"], ol = {
|
|
|
1016
1046
|
ref_key: "chartLegend",
|
|
1017
1047
|
ref: ze
|
|
1018
1048
|
}, [
|
|
1019
|
-
a.value.style.chart.legend.show &&
|
|
1049
|
+
a.value.style.chart.legend.show && fe.value ? (S(), F(Za, {
|
|
1020
1050
|
legendSet: We.value,
|
|
1021
1051
|
config: ma.value,
|
|
1022
|
-
key: `legend_${
|
|
1023
|
-
onClickMarker:
|
|
1052
|
+
key: `legend_${ye.value}`,
|
|
1053
|
+
onClickMarker: t[3] || (t[3] = ({ i: o }) => He(o))
|
|
1024
1054
|
}, {
|
|
1025
1055
|
item: m(({ legend: o, index: i }) => [
|
|
1026
1056
|
K("div", {
|
|
@@ -1034,18 +1064,18 @@ const ll = ["id"], tl = ["onClick"], ol = {
|
|
|
1034
1064
|
legend: We.value
|
|
1035
1065
|
}, void 0, !0)
|
|
1036
1066
|
], 512),
|
|
1037
|
-
e.$slots.watermark ? (
|
|
1038
|
-
x(e.$slots, "watermark", B(
|
|
1067
|
+
e.$slots.watermark ? (S(), q("div", ol, [
|
|
1068
|
+
x(e.$slots, "watermark", Y(B({ isPrinting: D(Ie) || D(Pe) })), void 0, !0)
|
|
1039
1069
|
])) : _("", !0),
|
|
1040
|
-
e.$slots.source ? (
|
|
1070
|
+
e.$slots.source ? (S(), q("div", {
|
|
1041
1071
|
key: 3,
|
|
1042
1072
|
ref_key: "source",
|
|
1043
|
-
ref:
|
|
1073
|
+
ref: Te,
|
|
1044
1074
|
dir: "auto"
|
|
1045
1075
|
}, [
|
|
1046
1076
|
x(e.$slots, "source", {}, void 0, !0)
|
|
1047
1077
|
], 512)) : _("", !0),
|
|
1048
|
-
r.value.end - r.value.start < 200 ? (
|
|
1078
|
+
r.value.end - r.value.start < 200 ? (S(), F(Ja, {
|
|
1049
1079
|
key: 4,
|
|
1050
1080
|
hideDetails: "",
|
|
1051
1081
|
config: {
|
|
@@ -1062,14 +1092,14 @@ const ll = ["id"], tl = ["onClick"], ol = {
|
|
|
1062
1092
|
}
|
|
1063
1093
|
}, {
|
|
1064
1094
|
content: m(() => [
|
|
1065
|
-
(
|
|
1095
|
+
(S(), F(Ka, {
|
|
1066
1096
|
key: `table_${he.value}`,
|
|
1067
1097
|
colNames: se.value.colNames,
|
|
1068
1098
|
head: se.value.head,
|
|
1069
1099
|
body: se.value.body,
|
|
1070
1100
|
config: se.value.config,
|
|
1071
1101
|
title: `${a.value.style.chart.title.text}${a.value.style.chart.title.subtitle.text ? ` : ${a.value.style.chart.title.subtitle.text}` : ""}`,
|
|
1072
|
-
onClose:
|
|
1102
|
+
onClose: t[4] || (t[4] = (o) => u.value.showTable = !1)
|
|
1073
1103
|
}, {
|
|
1074
1104
|
th: m(({ th: o }) => [
|
|
1075
1105
|
K("div", { innerHTML: o }, null, 8, rl)
|
|
@@ -1082,7 +1112,7 @@ const ll = ["id"], tl = ["onClick"], ol = {
|
|
|
1082
1112
|
]),
|
|
1083
1113
|
_: 1
|
|
1084
1114
|
}, 8, ["config"])) : _("", !0),
|
|
1085
|
-
a.value.userOptions.buttons.annotator && h.value.length ? (
|
|
1115
|
+
a.value.userOptions.buttons.annotator && h.value.length ? (S(), F(el, {
|
|
1086
1116
|
key: 5,
|
|
1087
1117
|
parent: U.value,
|
|
1088
1118
|
backgroundColor: a.value.style.chart.backgroundColor,
|
|
@@ -1092,7 +1122,7 @@ const ll = ["id"], tl = ["onClick"], ol = {
|
|
|
1092
1122
|
}, null, 8, ["parent", "backgroundColor", "color", "active"])) : _("", !0)
|
|
1093
1123
|
], 14, ll));
|
|
1094
1124
|
}
|
|
1095
|
-
}, Ll = /* @__PURE__ */ al(ul, [["__scopeId", "data-v-
|
|
1125
|
+
}, Ll = /* @__PURE__ */ al(ul, [["__scopeId", "data-v-1359e2b5"]]);
|
|
1096
1126
|
export {
|
|
1097
1127
|
Ll as default
|
|
1098
1128
|
};
|