vue-data-ui 2.4.61 → 2.4.63
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-C4JCfYUu.cjs → Arrow-BpZBF7Ak.cjs} +1 -1
- package/dist/{Arrow-NyYxjtAV.js → Arrow-nOy23OOV.js} +1 -1
- package/dist/{BaseIcon-a81b_5b0.js → BaseIcon-CrqNvGTs.js} +1 -1
- package/dist/{BaseIcon-B1zKYJGk.cjs → BaseIcon-rzIvDo2Q.cjs} +1 -1
- package/dist/{DataTable-CcW8SHH2.js → DataTable-BBh7_ttv.js} +2 -2
- package/dist/{DataTable-BVwnM0tQ.cjs → DataTable-CCJGHIVo.cjs} +1 -1
- package/dist/{Legend-fpW6iFgA.cjs → Legend-CqilK5CI.cjs} +1 -1
- package/dist/{Legend-Cq1rcFzv.js → Legend-WOejx9sp.js} +1 -1
- package/dist/{PackageVersion-LRbiiLp0.js → PackageVersion-dR8EUy_P.js} +1 -1
- package/dist/{PackageVersion-B7-YDa6h.cjs → PackageVersion-eZ5Dmuid.cjs} +1 -1
- package/dist/{PenAndPaper-BCjJ-td_.js → PenAndPaper-CrXlqi9I.js} +3 -3
- package/dist/{PenAndPaper-JkRknDt7.cjs → PenAndPaper-D_w2N2qM.cjs} +1 -1
- package/dist/{Shape-hFNcMth4.js → Shape-CwmKWYzq.js} +1 -1
- package/dist/{Shape-QZcWXoYb.cjs → Shape-qkkvCKyp.cjs} +1 -1
- package/dist/Slicer-DvdU-uf8.js +484 -0
- package/dist/Slicer-oNEtv1s3.cjs +1 -0
- package/dist/{Title-CQVviDIQ.cjs → Title-CoNtoGH9.cjs} +1 -1
- package/dist/{Title-Zm0LCGPS.js → Title-obqvTiXP.js} +1 -1
- package/dist/{Tooltip-CoahRzyE.js → Tooltip-BK-ACGDE.js} +1 -1
- package/dist/{Tooltip-DZ1uTqBW.cjs → Tooltip-Dz4wVJkz.cjs} +1 -1
- package/dist/index-ChOY3hT9.cjs +9 -0
- package/dist/{index-CG_OTzik.js → index-Z_vzxZTo.js} +8 -3
- package/dist/style.css +1 -1
- package/dist/types/vue-data-ui.d.cts +5 -0
- package/dist/types/vue-data-ui.d.ts +5 -0
- package/dist/{useNestedProp-BZZvruew.js → useNestedProp-Buhi5uyL.js} +1 -1
- package/dist/{useNestedProp--db71Vbu.cjs → useNestedProp-CA8PjFJH.cjs} +1 -1
- package/dist/{usePrinter-CxBwzZkb.js → usePrinter-Ck0oiMlt.js} +1 -1
- package/dist/{usePrinter-D0LQ1CyY.cjs → usePrinter-c3c7_uAW.cjs} +1 -1
- package/dist/{vue-data-ui-C4A5zIHI.js → vue-data-ui-BGng_wXI.js} +60 -60
- package/dist/{vue-data-ui-CUyuYhwT.cjs → vue-data-ui-CihfnXFF.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-DAh8koX4.js → vue-ui-3d-bar-B7k4LzL1.js} +9 -9
- package/dist/{vue-ui-3d-bar-DKiYqw0u.cjs → vue-ui-3d-bar-BsxFEhMN.cjs} +1 -1
- package/dist/{vue-ui-accordion-C2IbGLRv.js → vue-ui-accordion-CV2-8b1O.js} +3 -3
- package/dist/{vue-ui-accordion-B7VpkrPR.cjs → vue-ui-accordion-CZ8AlriN.cjs} +1 -1
- package/dist/{vue-ui-age-pyramid-me4GgQNb.js → vue-ui-age-pyramid-Bc4DaLIy.js} +10 -10
- package/dist/{vue-ui-age-pyramid-BmqvzA-d.cjs → vue-ui-age-pyramid-C1crnKk7.cjs} +1 -1
- package/dist/{vue-ui-annotator-XOzj9Bpg.js → vue-ui-annotator-DLbAn_Mz.js} +1 -1
- package/dist/{vue-ui-annotator-Bg9Juc1l.cjs → vue-ui-annotator-DNKcAaEh.cjs} +1 -1
- package/dist/{vue-ui-bullet-BsHk8Y0E.cjs → vue-ui-bullet-CEO3AsWC.cjs} +1 -1
- package/dist/{vue-ui-bullet-D1ElgM95.js → vue-ui-bullet-ClODxNrk.js} +8 -8
- package/dist/{vue-ui-candlestick-Ba4yv9ZM.cjs → vue-ui-candlestick-B00zQB4B.cjs} +2 -2
- package/dist/{vue-ui-candlestick-DLhwvS6l.js → vue-ui-candlestick-DI7t6jqz.js} +75 -73
- package/dist/{vue-ui-carousel-table-cEaGm232.js → vue-ui-carousel-table-5jXlkslq.js} +4 -4
- package/dist/{vue-ui-carousel-table-DSoV6GBf.cjs → vue-ui-carousel-table-Bm2D_0pZ.cjs} +1 -1
- package/dist/{vue-ui-chestnut-DCURZY6w.js → vue-ui-chestnut-CRZsXRUH.js} +8 -8
- package/dist/{vue-ui-chestnut-D6D5Zr4r.cjs → vue-ui-chestnut-DP6-Gie6.cjs} +1 -1
- package/dist/{vue-ui-cursor-CqDpaKei.cjs → vue-ui-cursor-BGe0gZK8.cjs} +1 -1
- package/dist/{vue-ui-cursor-B9eASI3M.js → vue-ui-cursor-DA8bsmEc.js} +2 -2
- package/dist/{vue-ui-dashboard-B2rw-G-R.js → vue-ui-dashboard-BZD-6Pz7.js} +43 -43
- package/dist/vue-ui-dashboard-D2v4oSiB.cjs +1 -0
- package/dist/{vue-ui-digits-BAG_spWA.js → vue-ui-digits-CKvrL9Wc.js} +2 -2
- package/dist/{vue-ui-digits-CagcmtFs.cjs → vue-ui-digits-DC8ZuHOj.cjs} +1 -1
- package/dist/{vue-ui-donut-5jgX6ZLE.cjs → vue-ui-donut-D5mDCNky.cjs} +1 -1
- package/dist/{vue-ui-donut-BJl5Isgy.js → vue-ui-donut-DDayabSz.js} +11 -11
- package/dist/{vue-ui-donut-evolution-CnqdY8LW.cjs → vue-ui-donut-evolution-AlCGLfzy.cjs} +1 -1
- package/dist/{vue-ui-donut-evolution-DMhkt7mf.js → vue-ui-donut-evolution-CBsxmrTO.js} +127 -125
- package/dist/{vue-ui-dumbbell-Be0B-LgS.cjs → vue-ui-dumbbell-B9cELz3z.cjs} +1 -1
- package/dist/{vue-ui-dumbbell-Dg3mYtw3.js → vue-ui-dumbbell-DB7jNjQP.js} +10 -10
- package/dist/{vue-ui-flow-BKyhoEjt.cjs → vue-ui-flow-CCM51fzQ.cjs} +1 -1
- package/dist/{vue-ui-flow-Cq8-bQr_.js → vue-ui-flow-Cw1Vfk_e.js} +9 -9
- package/dist/{vue-ui-funnel-DFk4PKvj.cjs → vue-ui-funnel--4JhwVwW.cjs} +1 -1
- package/dist/{vue-ui-funnel-DHFbd45-.js → vue-ui-funnel-CU72MuGg.js} +9 -9
- package/dist/{vue-ui-galaxy-Y1gaT5UE.cjs → vue-ui-galaxy-BJrkygeR.cjs} +1 -1
- package/dist/{vue-ui-galaxy-rYHDLCt9.js → vue-ui-galaxy-BKInqdOk.js} +11 -11
- package/dist/{vue-ui-gauge-Ba14Ybvo.js → vue-ui-gauge-DBPB11Eo.js} +7 -7
- package/dist/{vue-ui-gauge-Bmuasq4t.cjs → vue-ui-gauge-Uo_1rs0Z.cjs} +1 -1
- package/dist/{vue-ui-gizmo-CuMablqV.js → vue-ui-gizmo-BSDdKP_q.js} +3 -3
- package/dist/{vue-ui-gizmo-CF11m0cq.cjs → vue-ui-gizmo-D7hHruEs.cjs} +1 -1
- package/dist/{vue-ui-heatmap-BekQJ_O8.cjs → vue-ui-heatmap-CysVyR78.cjs} +1 -1
- package/dist/{vue-ui-heatmap-B0Ry1OTW.js → vue-ui-heatmap-DhoDd6I_.js} +10 -10
- package/dist/{vue-ui-history-plot-DkJdYX5N.js → vue-ui-history-plot-C1IcR5tn.js} +11 -11
- package/dist/{vue-ui-history-plot-BTVojhgQ.cjs → vue-ui-history-plot-D97p0C8E.cjs} +1 -1
- package/dist/{vue-ui-kpi-BQwuGH5_.js → vue-ui-kpi-C43FJnkn.js} +3 -3
- package/dist/{vue-ui-kpi-BLreWPBQ.cjs → vue-ui-kpi-Cu2PoWud.cjs} +1 -1
- package/dist/{vue-ui-mini-loader-C-61eqcR.cjs → vue-ui-mini-loader-Bdr0862F.cjs} +1 -1
- package/dist/{vue-ui-mini-loader-DOGNwMhX.js → vue-ui-mini-loader-DgPnsWaW.js} +2 -2
- package/dist/{vue-ui-molecule-BRM8s9SD.cjs → vue-ui-molecule-CEJzQ7RY.cjs} +1 -1
- package/dist/{vue-ui-molecule-DHBRDC8t.js → vue-ui-molecule-CvxtHapj.js} +11 -11
- package/dist/{vue-ui-mood-radar-dfN44AZx.js → vue-ui-mood-radar-B6EmzBGf.js} +11 -11
- package/dist/{vue-ui-mood-radar-MXQgj0yp.cjs → vue-ui-mood-radar-DIn_Oars.cjs} +1 -1
- package/dist/{vue-ui-nested-donuts-C-nDnw6v.js → vue-ui-nested-donuts-D4pAkaZH.js} +11 -11
- package/dist/{vue-ui-nested-donuts-BAtJgYOg.cjs → vue-ui-nested-donuts-c2pJF_ex.cjs} +1 -1
- package/dist/{vue-ui-onion-D8OvxeHr.js → vue-ui-onion-98XPhnVF.js} +11 -11
- package/dist/{vue-ui-onion-EO8dPufp.cjs → vue-ui-onion-DHOhnx2s.cjs} +1 -1
- package/dist/{vue-ui-parallel-coordinate-plot-Cxl3bY0H.cjs → vue-ui-parallel-coordinate-plot-CrVVxflg.cjs} +1 -1
- package/dist/{vue-ui-parallel-coordinate-plot-3BNXcNsy.js → vue-ui-parallel-coordinate-plot-DLOtv_NO.js} +12 -12
- package/dist/{vue-ui-quadrant-BOReLkSm.js → vue-ui-quadrant-DWM3zE7x.js} +12 -12
- package/dist/{vue-ui-quadrant-DiU08Q5X.cjs → vue-ui-quadrant-DbDQtcxz.cjs} +1 -1
- package/dist/{vue-ui-quick-chart-D4UZCrzj.js → vue-ui-quick-chart-CFVAisN4.js} +214 -212
- package/dist/{vue-ui-quick-chart-BRERkFkI.cjs → vue-ui-quick-chart-DP0hSesI.cjs} +3 -3
- package/dist/{vue-ui-radar-DduWN5dL.cjs → vue-ui-radar-CDhwXWfs.cjs} +1 -1
- package/dist/{vue-ui-radar-C2ePOuIW.js → vue-ui-radar-CNBN5GF9.js} +12 -12
- package/dist/{vue-ui-rating-BYfD1N57.js → vue-ui-rating-CEfg8aGb.js} +2 -2
- package/dist/{vue-ui-rating-BtzMW1EB.cjs → vue-ui-rating-cHW6zh7i.cjs} +1 -1
- package/dist/{vue-ui-relation-circle-BKjs6DR1.js → vue-ui-relation-circle-92LvehQf.js} +7 -7
- package/dist/{vue-ui-relation-circle-DhLvWetz.cjs → vue-ui-relation-circle-olDAN0lU.cjs} +1 -1
- package/dist/{vue-ui-rings-BNwvxf2K.js → vue-ui-rings-Bp0WLW4E.js} +11 -11
- package/dist/{vue-ui-rings-CzZyxYeS.cjs → vue-ui-rings-BwvTmRCE.cjs} +1 -1
- package/dist/{vue-ui-scatter-thYwTZhC.js → vue-ui-scatter-6wDrQ5fP.js} +12 -12
- package/dist/{vue-ui-scatter-D3Cl-rFL.cjs → vue-ui-scatter-BvdgtUHX.cjs} +1 -1
- package/dist/{vue-ui-screenshot-9y8wYnc3.js → vue-ui-screenshot-CIAlcAvq.js} +1 -1
- package/dist/{vue-ui-screenshot-DFHP0ThC.cjs → vue-ui-screenshot-ChB7VFUO.cjs} +1 -1
- package/dist/{vue-ui-skeleton-B6hyEcxy.js → vue-ui-skeleton-BMRe3SzB.js} +3 -3
- package/dist/{vue-ui-skeleton-D56sSIBO.cjs → vue-ui-skeleton-DlnPFtb4.cjs} +1 -1
- package/dist/{vue-ui-smiley-B-4Fqh2J.js → vue-ui-smiley-CN5FWJ1G.js} +2 -2
- package/dist/{vue-ui-smiley-BsWAahKv.cjs → vue-ui-smiley-DkrQ5gDD.cjs} +1 -1
- package/dist/{vue-ui-spark-trend-MAq0VlUq.cjs → vue-ui-spark-trend-BlOdnAb4.cjs} +1 -1
- package/dist/{vue-ui-spark-trend-DJcpI-ZY.js → vue-ui-spark-trend-MNkadB41.js} +5 -5
- package/dist/{vue-ui-sparkbar-DZqE8qN3.js → vue-ui-sparkbar-CBPO2mUa.js} +4 -4
- package/dist/{vue-ui-sparkbar-DMlzP8ZM.cjs → vue-ui-sparkbar-ChTbwY11.cjs} +1 -1
- package/dist/{vue-ui-sparkgauge-CvOP9U7-.cjs → vue-ui-sparkgauge-B7yvQfZW.cjs} +1 -1
- package/dist/{vue-ui-sparkgauge-B-kRhMYK.js → vue-ui-sparkgauge-VLkIev3p.js} +4 -4
- package/dist/{vue-ui-sparkhistogram-EOeboT7_.js → vue-ui-sparkhistogram-DbOxX4Ks.js} +5 -5
- package/dist/{vue-ui-sparkhistogram-DjUvwlYU.cjs → vue-ui-sparkhistogram-mYU6RAK_.cjs} +1 -1
- package/dist/vue-ui-sparkline-DO496Tk5.cjs +1 -0
- package/dist/{vue-ui-sparkline-BgB5km-f.js → vue-ui-sparkline-D_-31O2S.js} +117 -114
- package/dist/{vue-ui-sparkstackbar-DSTz24kS.cjs → vue-ui-sparkstackbar-KaFMlIAL.cjs} +1 -1
- package/dist/{vue-ui-sparkstackbar-DGihKtGC.js → vue-ui-sparkstackbar-gW7rpJmQ.js} +5 -5
- package/dist/{vue-ui-stackbar-m-5t4Otk.cjs → vue-ui-stackbar-CYHsSzEK.cjs} +2 -2
- package/dist/{vue-ui-stackbar-DrJ3au6w.js → vue-ui-stackbar-vIyS6oag.js} +80 -78
- package/dist/{vue-ui-strip-plot-4uC5MD3e.js → vue-ui-strip-plot-4o1zAxG_.js} +11 -11
- package/dist/{vue-ui-strip-plot-Yy2DIoMg.cjs → vue-ui-strip-plot-MlP5pDNx.cjs} +1 -1
- package/dist/{vue-ui-table-DCe_BTaV.cjs → vue-ui-table-B0PFrkLI.cjs} +1 -1
- package/dist/{vue-ui-table-DN498EB2.js → vue-ui-table-DWNrd7zM.js} +1 -1
- package/dist/{vue-ui-table-heatmap-PvopeKyW.cjs → vue-ui-table-heatmap-4k74Ux7O.cjs} +1 -1
- package/dist/{vue-ui-table-heatmap-CMVmFTPi.js → vue-ui-table-heatmap-BSKCS8Lq.js} +4 -4
- package/dist/{vue-ui-table-sparkline-DpXxi6al.js → vue-ui-table-sparkline-BrImSTh0.js} +5 -5
- package/dist/{vue-ui-table-sparkline-BtUV0t4I.cjs → vue-ui-table-sparkline-DCCogh2-.cjs} +1 -1
- package/dist/{vue-ui-thermometer-CB38vNj3.js → vue-ui-thermometer-DHEoT4yB.js} +7 -7
- package/dist/{vue-ui-thermometer-B9YyPrvt.cjs → vue-ui-thermometer-DswmMXiU.cjs} +1 -1
- package/dist/{vue-ui-timer-BmFFjMb9.js → vue-ui-timer-BNFihNgK.js} +5 -5
- package/dist/{vue-ui-timer-D6GsFvTy.cjs → vue-ui-timer-Tv94CYqL.cjs} +1 -1
- package/dist/{vue-ui-tiremarks--CrAFWU2.cjs → vue-ui-tiremarks-B2kuKLe-.cjs} +1 -1
- package/dist/{vue-ui-tiremarks-CJ2y_2T1.js → vue-ui-tiremarks-DzaUfiET.js} +7 -7
- package/dist/{vue-ui-treemap-HpoEGWKV.cjs → vue-ui-treemap-Dmt3RPF2.cjs} +1 -1
- package/dist/{vue-ui-treemap-Z3t2YGoE.js → vue-ui-treemap-qKZJcEYe.js} +11 -11
- package/dist/{vue-ui-vertical-bar-B_x2w4L8.js → vue-ui-vertical-bar-CMXtevyE.js} +11 -11
- package/dist/{vue-ui-vertical-bar-LdxXCg3W.cjs → vue-ui-vertical-bar-CQ_qEJ_O.cjs} +1 -1
- package/dist/{vue-ui-waffle-BKrNIOiM.js → vue-ui-waffle-DjJoezg-.js} +11 -11
- package/dist/{vue-ui-waffle-BDkOv8M4.cjs → vue-ui-waffle-fWQvVbAH.cjs} +1 -1
- package/dist/{vue-ui-wheel-DgzJQSl_.cjs → vue-ui-wheel-2qIHyZe1.cjs} +1 -1
- package/dist/{vue-ui-wheel-BCs1b_hk.js → vue-ui-wheel-DOrWSWt6.js} +7 -7
- package/dist/{vue-ui-word-cloud-BHm3q6eZ.cjs → vue-ui-word-cloud-Tgg5jCE6.cjs} +1 -1
- package/dist/{vue-ui-word-cloud-CO47t4OJ.js → vue-ui-word-cloud-UPPKGsXt.js} +10 -10
- package/dist/{vue-ui-xy-c7YLqedj.cjs → vue-ui-xy-CMde0Kq-.cjs} +3 -3
- package/dist/{vue-ui-xy-canvas-CY1JxJvm.cjs → vue-ui-xy-canvas-Dm3YUQ3g.cjs} +2 -2
- package/dist/{vue-ui-xy-canvas-Q6mKl1B-.js → vue-ui-xy-canvas-paHHRtqs.js} +227 -225
- package/dist/{vue-ui-xy-RDecyidx.js → vue-ui-xy-zCJv-Vao.js} +35 -33
- package/package.json +1 -1
- package/dist/Slicer-DGn72_0M.js +0 -423
- package/dist/Slicer-DMYxCNLb.cjs +0 -1
- package/dist/index-V6tl1xgQ.cjs +0 -9
- package/dist/vue-ui-dashboard-Q-ILTgqP.cjs +0 -1
- package/dist/vue-ui-sparkline-BS_ZXXei.cjs +0 -1
|
@@ -1,22 +1,22 @@
|
|
|
1
|
-
import { ref as i, computed as x, useSlots as Ta, onMounted as aa, watch as
|
|
2
|
-
import { u as
|
|
3
|
-
import { d as qa, c as Ja, a as ra, t as Ka, l as k, r as ze, b as
|
|
4
|
-
import { _ as
|
|
5
|
-
import { L as
|
|
6
|
-
import { _ as
|
|
7
|
-
import { S as
|
|
8
|
-
import { u as
|
|
9
|
-
import
|
|
10
|
-
import { D as
|
|
11
|
-
import
|
|
12
|
-
import { u as sa } from "./useNestedProp-
|
|
13
|
-
import { P as
|
|
14
|
-
import { u as
|
|
15
|
-
import { _ as
|
|
16
|
-
const
|
|
1
|
+
import { ref as i, computed as x, useSlots as Ta, onMounted as aa, watch as A, nextTick as ce, onBeforeUnmount as Oa, openBlock as z, createElementBlock as K, normalizeStyle as Y, normalizeClass as Ra, unref as S, createBlock as E, createCommentVNode as H, createSlots as Pa, withCtx as b, renderSlot as L, normalizeProps as B, guardReactiveProps as V, createElementVNode as Q, createVNode as Fa, toDisplayString as la, createTextVNode as Ea } from "vue";
|
|
2
|
+
import { u as Da, c as Na, t as Aa, a as Ha, p as _, C as de, b as _a, D as we, i as ee, f as ae, Y as Ua, J as Wa, d as ta, a2 as Xa, o as Ya, e as Ba, x as oa, y as Va, q as Za, r as Ga, s as le, l as ja } from "./index-Z_vzxZTo.js";
|
|
3
|
+
import { d as qa, c as Ja, a as ra, t as Ka, l as k, r as ze, b as D, p as ua, u as Qa } from "./useResponsive-CoxXLe23.js";
|
|
4
|
+
import { _ as el } from "./Tooltip-BK-ACGDE.js";
|
|
5
|
+
import { L as al } from "./Legend-WOejx9sp.js";
|
|
6
|
+
import { _ as ll } from "./Title-obqvTiXP.js";
|
|
7
|
+
import { S as tl } from "./Slicer-DvdU-uf8.js";
|
|
8
|
+
import { u as ol, U as rl } from "./usePrinter-Ck0oiMlt.js";
|
|
9
|
+
import ul from "./vue-ui-accordion-CV2-8b1O.js";
|
|
10
|
+
import { D as sl } from "./DataTable-BBh7_ttv.js";
|
|
11
|
+
import nl from "./vue-ui-skeleton-BMRe3SzB.js";
|
|
12
|
+
import { u as sa } from "./useNestedProp-Buhi5uyL.js";
|
|
13
|
+
import { P as il } from "./PenAndPaper-CrXlqi9I.js";
|
|
14
|
+
import { u as vl } from "./useUserOptionState-BIvW1Kz7.js";
|
|
15
|
+
import { _ as cl } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
16
|
+
const dl = ["id"], hl = ["onClick"], yl = {
|
|
17
17
|
key: 2,
|
|
18
18
|
class: "vue-data-ui-watermark"
|
|
19
|
-
},
|
|
19
|
+
}, fl = ["innerHTML"], gl = {
|
|
20
20
|
__name: "vue-ui-xy-canvas",
|
|
21
21
|
props: {
|
|
22
22
|
dataset: {
|
|
@@ -34,34 +34,34 @@ const dt = ["id"], ht = ["onClick"], yt = {
|
|
|
34
34
|
},
|
|
35
35
|
emits: ["selectLegend"],
|
|
36
36
|
setup(Se, { expose: na, emit: ia }) {
|
|
37
|
-
const f = Se, { vue_ui_xy_canvas: va } =
|
|
37
|
+
const f = Se, { vue_ui_xy_canvas: va } = Da(), he = i(Na()), Z = i(null), M = i(null), G = i(null), s = i(null), y = i(1), R = i(1), te = i(!1), d = i(null), oe = i(""), $e = i(null), $ = i([]), U = i(1), N = i(!0), T = i(!0), ye = i(null), Ie = i(0), Me = i(0), re = i(!1), Te = i(null), Oe = i(null), Re = i(null), Pe = i(null), fe = i(0), ge = i(0), pe = i(0), me = x(() => !!f.dataset && f.dataset.length), ca = Ta();
|
|
38
38
|
aa(() => {
|
|
39
39
|
ca["chart-background"] && console.warn("VueUiXyCanvas does not support the #chart-background slot.");
|
|
40
40
|
});
|
|
41
41
|
const a = x({
|
|
42
|
-
get: () =>
|
|
42
|
+
get: () => De(),
|
|
43
43
|
set: (e) => e
|
|
44
|
-
}), { userOptionsVisible: be, setUserOptionsVisibility: Fe, keepUserOptionState: Ee } =
|
|
45
|
-
function
|
|
44
|
+
}), { userOptionsVisible: be, setUserOptionsVisibility: Fe, keepUserOptionState: Ee } = vl({ config: a.value });
|
|
45
|
+
function De() {
|
|
46
46
|
const e = sa({
|
|
47
47
|
userConfig: f.config,
|
|
48
48
|
defaultConfig: va
|
|
49
49
|
});
|
|
50
|
-
let
|
|
51
|
-
return e.theme ?
|
|
50
|
+
let l = {};
|
|
51
|
+
return e.theme ? l = {
|
|
52
52
|
...sa({
|
|
53
|
-
userConfig:
|
|
53
|
+
userConfig: Aa.vue_ui_xy_canvas[e.theme] || f.config,
|
|
54
54
|
defaultConfig: e
|
|
55
55
|
}),
|
|
56
|
-
customPalette:
|
|
57
|
-
} :
|
|
56
|
+
customPalette: Ha[e.theme] || _
|
|
57
|
+
} : l = e, f.config && de(f.config, "style.chart.scale.min") ? l.style.chart.scale.min = f.config.style.chart.scale.min : l.style.chart.scale.min = null, f.config && de(f.config, "style.chart.scale.max") ? l.style.chart.scale.max = f.config.style.chart.scale.max : l.style.chart.scale.max = null, f.config && de(f.config, "style.chart.zoom.startIndex") ? l.style.chart.zoom.startIndex = f.config.style.chart.zoom.startIndex : l.style.chart.zoom.startIndex = null, f.config && de(f.config, "style.chart.zoom.endIndex") ? l.style.chart.zoom.endIndex = f.config.style.chart.zoom.endIndex : l.style.chart.zoom.endIndex = null, l;
|
|
58
58
|
}
|
|
59
|
-
|
|
60
|
-
a.value =
|
|
61
|
-
}, { deep: !0 }),
|
|
59
|
+
A(() => f.config, (e) => {
|
|
60
|
+
a.value = De(), be.value = !a.value.showOnChartHover, Le(), fe.value += 1, ge.value += 1, pe.value += 1;
|
|
61
|
+
}, { deep: !0 }), A(() => f.dataset, () => {
|
|
62
62
|
Le(), fe.value += 1, ge.value += 1, pe.value += 1;
|
|
63
63
|
}, { deep: !0 });
|
|
64
|
-
const
|
|
64
|
+
const Ne = i(a.value.style.chart.aspectRatio), { isPrinting: Ae, isImaging: He, generatePdf: _e, generateImage: Ue } = ol({
|
|
65
65
|
elementId: `xy_canvas_${he.value}`,
|
|
66
66
|
fileName: a.value.style.chart.title.text || "vue-ui-xy-canvas"
|
|
67
67
|
}), u = i({
|
|
@@ -73,45 +73,45 @@ const dt = ["id"], ht = ["onClick"], yt = {
|
|
|
73
73
|
function da(e) {
|
|
74
74
|
re.value = e, Me.value += 1;
|
|
75
75
|
}
|
|
76
|
-
const We = x(() =>
|
|
76
|
+
const We = x(() => _a(a.value.customPalette)), I = x(() => W.value ? Math.max(...W.value.filter((e, l) => !$.value.includes(e.absoluteIndex)).map((e) => e.series.length)) : 0), t = x(() => {
|
|
77
77
|
const e = y.value - y.value * (a.value.style.chart.paddingProportions.left + a.value.style.chart.paddingProportions.right);
|
|
78
78
|
return {
|
|
79
79
|
canvasWidth: y.value,
|
|
80
|
-
canvasHeight:
|
|
80
|
+
canvasHeight: R.value,
|
|
81
81
|
left: y.value * a.value.style.chart.paddingProportions.left,
|
|
82
|
-
top:
|
|
82
|
+
top: R.value * a.value.style.chart.paddingProportions.top,
|
|
83
83
|
right: y.value - y.value * a.value.style.chart.paddingProportions.right,
|
|
84
|
-
bottom:
|
|
84
|
+
bottom: R.value - R.value * a.value.style.chart.paddingProportions.bottom,
|
|
85
85
|
width: e,
|
|
86
|
-
height:
|
|
86
|
+
height: R.value - R.value * (a.value.style.chart.paddingProportions.top + a.value.style.chart.paddingProportions.bottom),
|
|
87
87
|
slot: e / (r.value.end - r.value.start)
|
|
88
88
|
};
|
|
89
89
|
});
|
|
90
|
-
function Xe(e,
|
|
91
|
-
return e /
|
|
90
|
+
function Xe(e, l) {
|
|
91
|
+
return e / l;
|
|
92
92
|
}
|
|
93
|
-
function ha({ hasAutoScale: e, series:
|
|
94
|
-
return
|
|
95
|
-
const O = c.min < 0 ? Math.abs(c.min) : 0,
|
|
93
|
+
function ha({ hasAutoScale: e, series: l, min: o, max: v, scale: c, yOffset: g, individualHeight: n, stackIndex: p = null }) {
|
|
94
|
+
return l.map((w, Ce) => {
|
|
95
|
+
const O = c.min < 0 ? Math.abs(c.min) : 0, P = Xe(w + O, O + c.max);
|
|
96
96
|
let F, j;
|
|
97
97
|
e && (F = Math.abs(c.min), j = Xe(w + F, c.max + F));
|
|
98
98
|
let q = 0;
|
|
99
|
-
return p === null ? q =
|
|
100
|
-
x:
|
|
99
|
+
return p === null ? q = t.value.bottom - t.value.height * (e ? j : P) : q = t.value.bottom - g - n * (e ? j : P), {
|
|
100
|
+
x: t.value.left + t.value.slot * Ce + t.value.slot / 2,
|
|
101
101
|
y: q,
|
|
102
102
|
value: w
|
|
103
103
|
};
|
|
104
104
|
});
|
|
105
105
|
}
|
|
106
106
|
const m = x(() => {
|
|
107
|
-
const e = a.value.style.chart.scale.min !== null ? a.value.style.chart.scale.min : Math.min(...W.value.filter((n, p) => !$.value.includes(n.absoluteIndex)).flatMap((n) => n.series.slice(r.value.start, r.value.end))),
|
|
108
|
-
y:
|
|
109
|
-
x:
|
|
107
|
+
const e = a.value.style.chart.scale.min !== null ? a.value.style.chart.scale.min : Math.min(...W.value.filter((n, p) => !$.value.includes(n.absoluteIndex)).flatMap((n) => n.series.slice(r.value.start, r.value.end))), l = a.value.style.chart.scale.max !== null ? a.value.style.chart.scale.max : Math.max(...W.value.filter((n, p) => !$.value.includes(n.absoluteIndex)).flatMap((n) => n.series.slice(r.value.start, r.value.end))), o = we(e < 0 ? e : 0, l === e ? e + 1 < 0 ? 0 : e + 1 : l < 0 ? 0 : l, a.value.style.chart.scale.ticks), v = o.min < 0 ? Math.abs(o.min) : 0, c = t.value.bottom - t.value.height * (v / (o.max + v)), g = o.ticks.map((n) => ({
|
|
108
|
+
y: t.value.bottom - t.value.height * ((n + v) / (o.max + v)),
|
|
109
|
+
x: t.value.left - 8,
|
|
110
110
|
value: n
|
|
111
111
|
}));
|
|
112
112
|
return {
|
|
113
113
|
absoluteMin: v,
|
|
114
|
-
max:
|
|
114
|
+
max: l,
|
|
115
115
|
min: e,
|
|
116
116
|
scale: o,
|
|
117
117
|
yLabels: g,
|
|
@@ -135,22 +135,22 @@ const dt = ["id"], ht = ["onClick"], yt = {
|
|
|
135
135
|
{ datapoint: e, seriesIndex: d.value }
|
|
136
136
|
)}</span>
|
|
137
137
|
</div>
|
|
138
|
-
`)), W = x(() => f.dataset.map((e,
|
|
138
|
+
`)), W = x(() => f.dataset.map((e, l) => ({
|
|
139
139
|
...e,
|
|
140
140
|
series: Ua({
|
|
141
141
|
data: Wa(e.series),
|
|
142
142
|
threshold: a.value.downsample.threshold
|
|
143
143
|
}),
|
|
144
|
-
absoluteIndex:
|
|
145
|
-
color:
|
|
144
|
+
absoluteIndex: l,
|
|
145
|
+
color: ta(e.color || We.value[l] || _[l] || _[l % _.length])
|
|
146
146
|
})));
|
|
147
|
-
|
|
147
|
+
A(I, (e) => {
|
|
148
148
|
e && Ye();
|
|
149
149
|
});
|
|
150
|
-
const h = x(() => Xa(W.value.filter((e,
|
|
150
|
+
const h = x(() => Xa(W.value.filter((e, l) => !$.value.includes(e.absoluteIndex))).map((e, l) => ({
|
|
151
151
|
...e,
|
|
152
152
|
series: e.series.slice(r.value.start, r.value.end)
|
|
153
|
-
})).map((e,
|
|
153
|
+
})).map((e, l) => {
|
|
154
154
|
let o = [null, void 0].includes(e.scaleMin) ? Math.min(...e.series) || 0 : e.scaleMin, v = [null, void 0].includes(e.scaleMax) ? Math.max(...e.series) || 1 : e.scaleMax;
|
|
155
155
|
o === v && (o = o >= 0 ? v - 1 : o, v = v >= 0 ? v : o + 1);
|
|
156
156
|
const g = {
|
|
@@ -160,12 +160,12 @@ const dt = ["id"], ht = ["onClick"], yt = {
|
|
|
160
160
|
}, n = e.scaleSteps || a.value.style.chart.scale.ticks;
|
|
161
161
|
let p;
|
|
162
162
|
e.autoScaling ? p = we(g.valueMin, g.valueMax, n) : p = we(g.valueMin < 0 ? g.valueMin : 0, g.valueMax <= 0 ? 0 : g.valueMax, n);
|
|
163
|
-
const w = u.value.stacked ?
|
|
163
|
+
const w = u.value.stacked ? t.value.height * (1 - e.cumulatedStackRatio) : 0, Ce = u.value.stacked ? t.value.height / a.value.style.chart.stackGap : 0, O = u.value.stacked ? t.value.height * e.stackRatio - Ce : t.value.height, P = p.min < 0 ? Math.abs(p.min) : 0;
|
|
164
164
|
let F;
|
|
165
|
-
e.autoScaling && u.value.stacked && v <= 0 ? F =
|
|
165
|
+
e.autoScaling && u.value.stacked && v <= 0 ? F = t.value.bottom - w - O : F = t.value.bottom - w - O * (P / (p.max + P));
|
|
166
166
|
const j = p.ticks.map((J, Ma) => ({
|
|
167
|
-
y:
|
|
168
|
-
x:
|
|
167
|
+
y: t.value.bottom - w - O * (Ma / (p.ticks.length - 1)),
|
|
168
|
+
x: t.value.left - 8,
|
|
169
169
|
value: J
|
|
170
170
|
})), q = ha({
|
|
171
171
|
hasAutoScale: u.value.stacked && e.autoScaling,
|
|
@@ -175,7 +175,7 @@ const dt = ["id"], ht = ["onClick"], yt = {
|
|
|
175
175
|
scale: u.value.stacked ? p : m.value.scale,
|
|
176
176
|
yOffset: w,
|
|
177
177
|
individualHeight: O,
|
|
178
|
-
stackIndex: u.value.stacked ?
|
|
178
|
+
stackIndex: u.value.stacked ? l : null
|
|
179
179
|
});
|
|
180
180
|
return {
|
|
181
181
|
...e,
|
|
@@ -184,7 +184,7 @@ const dt = ["id"], ht = ["onClick"], yt = {
|
|
|
184
184
|
max: v,
|
|
185
185
|
localScale: p,
|
|
186
186
|
localZero: F,
|
|
187
|
-
localMin:
|
|
187
|
+
localMin: P,
|
|
188
188
|
localYLabels: j,
|
|
189
189
|
yOffset: w,
|
|
190
190
|
individualHeight: O
|
|
@@ -204,30 +204,30 @@ const dt = ["id"], ht = ["onClick"], yt = {
|
|
|
204
204
|
}, Ie.value += 1);
|
|
205
205
|
}
|
|
206
206
|
function fa(e) {
|
|
207
|
-
const
|
|
208
|
-
return e >
|
|
207
|
+
const l = I.value;
|
|
208
|
+
return e > l ? l : e < 0 || a.value.style.chart.zoom.startIndex !== null && e < a.value.style.chart.zoom.startIndex ? a.value.style.chart.zoom.startIndex !== null ? a.value.style.chart.zoom.startIndex + 1 : 1 : e;
|
|
209
209
|
}
|
|
210
210
|
const ga = x(() => h.value.filter((e) => ["line", "plot", void 0].includes(e.type))), C = x(() => h.value.filter((e) => e.type === "bar"));
|
|
211
211
|
function pa() {
|
|
212
212
|
if (!M.value)
|
|
213
213
|
return;
|
|
214
|
-
const e = G.value.offsetWidth,
|
|
215
|
-
M.value.width = e * U.value * 2, M.value.height =
|
|
214
|
+
const e = G.value.offsetWidth, l = G.value.offsetHeight;
|
|
215
|
+
M.value.width = e * U.value * 2, M.value.height = l * U.value * 2, y.value = e * U.value * 2, R.value = l * U.value * 2, s.value.scale(U.value, U.value), xe();
|
|
216
216
|
}
|
|
217
217
|
function ma() {
|
|
218
|
-
if (s.value.clearRect(0, 0, 1e4, 1e4), s.value.fillStyle = a.value.style.chart.backgroundColor, s.value.fillRect(0, 0,
|
|
218
|
+
if (s.value.clearRect(0, 0, 1e4, 1e4), s.value.fillStyle = a.value.style.chart.backgroundColor, s.value.fillRect(0, 0, t.value.canvasWidth, t.value.canvasHeight), u.value.stacked)
|
|
219
219
|
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) => {
|
|
220
|
-
for (let
|
|
220
|
+
for (let l = 0; l < r.value.end - r.value.start + 1; l += 1)
|
|
221
221
|
k(
|
|
222
222
|
s.value,
|
|
223
223
|
[
|
|
224
224
|
{
|
|
225
|
-
x:
|
|
226
|
-
y:
|
|
225
|
+
x: t.value.left + t.value.slot * l,
|
|
226
|
+
y: t.value.bottom - e.yOffset - e.individualHeight
|
|
227
227
|
},
|
|
228
228
|
{
|
|
229
|
-
x:
|
|
230
|
-
y:
|
|
229
|
+
x: t.value.left + t.value.slot * l,
|
|
230
|
+
y: t.value.bottom - e.yOffset
|
|
231
231
|
}
|
|
232
232
|
],
|
|
233
233
|
{
|
|
@@ -235,17 +235,17 @@ const dt = ["id"], ht = ["onClick"], yt = {
|
|
|
235
235
|
}
|
|
236
236
|
);
|
|
237
237
|
}) : 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) => {
|
|
238
|
-
for (let
|
|
239
|
-
|
|
238
|
+
for (let l = r.value.start; l < r.value.end; l += 1)
|
|
239
|
+
l % Math.floor((r.value.end - r.value.start) / a.value.style.chart.grid.y.timeLabels.modulo) === 0 && k(
|
|
240
240
|
s.value,
|
|
241
241
|
[
|
|
242
242
|
{
|
|
243
|
-
x:
|
|
244
|
-
y:
|
|
243
|
+
x: t.value.left + t.value.slot * (l - r.value.start) + t.value.slot / 2,
|
|
244
|
+
y: t.value.bottom - e.yOffset - e.individualHeight
|
|
245
245
|
},
|
|
246
246
|
{
|
|
247
|
-
x:
|
|
248
|
-
y:
|
|
247
|
+
x: t.value.left + t.value.slot * (l - r.value.start) + t.value.slot / 2,
|
|
248
|
+
y: t.value.bottom - e.yOffset
|
|
249
249
|
}
|
|
250
250
|
],
|
|
251
251
|
{
|
|
@@ -253,28 +253,28 @@ const dt = ["id"], ht = ["onClick"], yt = {
|
|
|
253
253
|
}
|
|
254
254
|
);
|
|
255
255
|
}), a.value.style.chart.grid.x.horizontalLines.show && (a.value.style.chart.grid.x.horizontalLines.alternate ? h.value.forEach((e) => {
|
|
256
|
-
e.localYLabels.forEach((
|
|
256
|
+
e.localYLabels.forEach((l, o) => {
|
|
257
257
|
o < e.localYLabels.length - 1 && ze(
|
|
258
258
|
s.value,
|
|
259
259
|
[
|
|
260
|
-
{ x:
|
|
261
|
-
{ x:
|
|
262
|
-
{ x:
|
|
263
|
-
{ x:
|
|
260
|
+
{ x: t.value.left, y: l.y },
|
|
261
|
+
{ x: t.value.right, y: l.y },
|
|
262
|
+
{ x: t.value.right, y: e.localYLabels[o + 1].y },
|
|
263
|
+
{ x: t.value.left, y: e.localYLabels[o + 1].y }
|
|
264
264
|
],
|
|
265
265
|
{
|
|
266
|
-
fillColor: o % 2 === 0 ? "transparent" :
|
|
266
|
+
fillColor: o % 2 === 0 ? "transparent" : le(a.value.style.chart.grid.x.horizontalLines.color, a.value.style.chart.grid.x.horizontalLines.opacity),
|
|
267
267
|
strokeColor: "transparent"
|
|
268
268
|
}
|
|
269
269
|
);
|
|
270
270
|
});
|
|
271
271
|
}) : h.value.forEach((e) => {
|
|
272
|
-
e.localYLabels.slice(r.value.start, r.value.end).forEach((
|
|
272
|
+
e.localYLabels.slice(r.value.start, r.value.end).forEach((l) => {
|
|
273
273
|
k(
|
|
274
274
|
s.value,
|
|
275
275
|
[
|
|
276
|
-
{ x:
|
|
277
|
-
{ x:
|
|
276
|
+
{ x: t.value.left, y: l.y },
|
|
277
|
+
{ x: t.value.right, y: l.y }
|
|
278
278
|
],
|
|
279
279
|
{
|
|
280
280
|
color: a.value.style.chart.grid.x.horizontalLines.color
|
|
@@ -285,8 +285,8 @@ const dt = ["id"], ht = ["onClick"], yt = {
|
|
|
285
285
|
k(
|
|
286
286
|
s.value,
|
|
287
287
|
[
|
|
288
|
-
{ x:
|
|
289
|
-
{ x:
|
|
288
|
+
{ x: t.value.left, y: e.localZero },
|
|
289
|
+
{ x: t.value.right, y: e.localZero }
|
|
290
290
|
],
|
|
291
291
|
{
|
|
292
292
|
color: a.value.style.chart.grid.zeroLine.color,
|
|
@@ -297,8 +297,8 @@ const dt = ["id"], ht = ["onClick"], yt = {
|
|
|
297
297
|
k(
|
|
298
298
|
s.value,
|
|
299
299
|
[
|
|
300
|
-
{ x:
|
|
301
|
-
{ x:
|
|
300
|
+
{ x: t.value.left, y: t.value.bottom - e.yOffset },
|
|
301
|
+
{ x: t.value.left, y: t.value.bottom - e.yOffset - e.individualHeight }
|
|
302
302
|
],
|
|
303
303
|
{
|
|
304
304
|
color: e.color
|
|
@@ -306,28 +306,28 @@ const dt = ["id"], ht = ["onClick"], yt = {
|
|
|
306
306
|
), k(
|
|
307
307
|
s.value,
|
|
308
308
|
[
|
|
309
|
-
{ x:
|
|
310
|
-
{ x:
|
|
309
|
+
{ x: t.value.right, y: t.value.bottom - e.yOffset },
|
|
310
|
+
{ x: t.value.right, y: t.value.bottom - e.yOffset - e.individualHeight }
|
|
311
311
|
],
|
|
312
312
|
{
|
|
313
313
|
color: e.color
|
|
314
314
|
}
|
|
315
|
-
), e.localYLabels.forEach((
|
|
316
|
-
|
|
315
|
+
), e.localYLabels.forEach((l, o) => {
|
|
316
|
+
D(
|
|
317
317
|
s.value,
|
|
318
318
|
ee(
|
|
319
319
|
a.value.style.chart.dataLabels.formatter,
|
|
320
|
-
|
|
320
|
+
l.value,
|
|
321
321
|
ae({
|
|
322
322
|
p: e.prefix || a.value.style.chart.grid.y.axisLabels.prefix || "",
|
|
323
|
-
v:
|
|
323
|
+
v: l.value,
|
|
324
324
|
s: e.suffix || a.value.style.chart.grid.y.axisLabels.suffix || "",
|
|
325
325
|
r: e.rounding || a.value.style.chart.grid.y.axisLabels.rounding || 0
|
|
326
326
|
}),
|
|
327
|
-
{ datapoint:
|
|
327
|
+
{ datapoint: l, seriesIndex: o }
|
|
328
328
|
),
|
|
329
|
-
|
|
330
|
-
|
|
329
|
+
l.x + a.value.style.chart.grid.y.axisLabels.offsetX,
|
|
330
|
+
l.y,
|
|
331
331
|
{
|
|
332
332
|
align: "right",
|
|
333
333
|
font: `${Math.round(y.value / 40 * a.value.style.chart.grid.y.axisLabels.fontSizeRatio)}px ${a.value.style.fontFamily}`,
|
|
@@ -336,11 +336,11 @@ const dt = ["id"], ht = ["onClick"], yt = {
|
|
|
336
336
|
);
|
|
337
337
|
});
|
|
338
338
|
}), h.value.forEach((e) => {
|
|
339
|
-
|
|
339
|
+
D(
|
|
340
340
|
s.value,
|
|
341
341
|
e.name,
|
|
342
342
|
y.value / 35,
|
|
343
|
-
|
|
343
|
+
t.value.bottom - e.yOffset - e.individualHeight / 2,
|
|
344
344
|
{
|
|
345
345
|
align: "center",
|
|
346
346
|
rotation: -90,
|
|
@@ -355,8 +355,8 @@ const dt = ["id"], ht = ["onClick"], yt = {
|
|
|
355
355
|
k(
|
|
356
356
|
s.value,
|
|
357
357
|
[
|
|
358
|
-
{ x:
|
|
359
|
-
{ x:
|
|
358
|
+
{ x: t.value.left + t.value.slot * e, y: t.value.top },
|
|
359
|
+
{ x: t.value.left + t.value.slot * e, y: t.value.bottom }
|
|
360
360
|
],
|
|
361
361
|
{
|
|
362
362
|
color: a.value.style.chart.grid.y.verticalLines.color
|
|
@@ -367,24 +367,24 @@ const dt = ["id"], ht = ["onClick"], yt = {
|
|
|
367
367
|
e % Math.floor((r.value.end - r.value.start) / a.value.style.chart.grid.y.timeLabels.modulo) === 0 && k(
|
|
368
368
|
s.value,
|
|
369
369
|
[
|
|
370
|
-
{ x:
|
|
371
|
-
{ x:
|
|
370
|
+
{ x: t.value.left + t.value.slot * (e - r.value.start) + t.value.slot / 2, y: t.value.top },
|
|
371
|
+
{ x: t.value.left + t.value.slot * (e - r.value.start) + t.value.slot / 2, y: t.value.bottom }
|
|
372
372
|
],
|
|
373
373
|
{
|
|
374
374
|
color: a.value.style.chart.grid.y.verticalLines.color
|
|
375
375
|
}
|
|
376
376
|
);
|
|
377
|
-
a.value.style.chart.grid.x.horizontalLines.show && (a.value.style.chart.grid.x.horizontalLines.alternate ? m.value.yLabels.forEach((e,
|
|
378
|
-
|
|
377
|
+
a.value.style.chart.grid.x.horizontalLines.show && (a.value.style.chart.grid.x.horizontalLines.alternate ? m.value.yLabels.forEach((e, l) => {
|
|
378
|
+
l < m.value.yLabels.length - 1 && ze(
|
|
379
379
|
s.value,
|
|
380
380
|
[
|
|
381
|
-
{ x:
|
|
382
|
-
{ x:
|
|
383
|
-
{ x:
|
|
384
|
-
{ x:
|
|
381
|
+
{ x: t.value.left, y: e.y },
|
|
382
|
+
{ x: t.value.right, y: e.y },
|
|
383
|
+
{ x: t.value.right, y: m.value.yLabels[l + 1].y },
|
|
384
|
+
{ x: t.value.left, y: m.value.yLabels[l + 1].y }
|
|
385
385
|
],
|
|
386
386
|
{
|
|
387
|
-
fillColor:
|
|
387
|
+
fillColor: l % 2 === 0 ? "transparent" : le(a.value.style.chart.grid.x.horizontalLines.color, a.value.style.chart.grid.x.horizontalLines.opacity),
|
|
388
388
|
strokeColor: "transparent"
|
|
389
389
|
}
|
|
390
390
|
);
|
|
@@ -392,8 +392,8 @@ const dt = ["id"], ht = ["onClick"], yt = {
|
|
|
392
392
|
k(
|
|
393
393
|
s.value,
|
|
394
394
|
[
|
|
395
|
-
{ x:
|
|
396
|
-
{ x:
|
|
395
|
+
{ x: t.value.left, y: e.y },
|
|
396
|
+
{ x: t.value.right, y: e.y }
|
|
397
397
|
],
|
|
398
398
|
{
|
|
399
399
|
color: a.value.style.chart.grid.x.horizontalLines.color
|
|
@@ -402,8 +402,8 @@ const dt = ["id"], ht = ["onClick"], yt = {
|
|
|
402
402
|
})), a.value.style.chart.grid.y.showAxis && k(
|
|
403
403
|
s.value,
|
|
404
404
|
[
|
|
405
|
-
{ x:
|
|
406
|
-
{ x:
|
|
405
|
+
{ x: t.value.left, y: t.value.top },
|
|
406
|
+
{ x: t.value.left, y: t.value.bottom }
|
|
407
407
|
],
|
|
408
408
|
{
|
|
409
409
|
color: a.value.style.chart.grid.y.axisColor,
|
|
@@ -412,8 +412,8 @@ const dt = ["id"], ht = ["onClick"], yt = {
|
|
|
412
412
|
), a.value.style.chart.grid.x.showAxis && k(
|
|
413
413
|
s.value,
|
|
414
414
|
[
|
|
415
|
-
{ x:
|
|
416
|
-
{ x:
|
|
415
|
+
{ x: t.value.left, y: t.value.bottom },
|
|
416
|
+
{ x: t.value.right, y: t.value.bottom }
|
|
417
417
|
],
|
|
418
418
|
{
|
|
419
419
|
color: a.value.style.chart.grid.x.axisColor,
|
|
@@ -422,15 +422,15 @@ const dt = ["id"], ht = ["onClick"], yt = {
|
|
|
422
422
|
), a.value.style.chart.grid.zeroLine.show && k(
|
|
423
423
|
s.value,
|
|
424
424
|
[
|
|
425
|
-
{ x:
|
|
426
|
-
{ x:
|
|
425
|
+
{ x: t.value.left, y: m.value.zero },
|
|
426
|
+
{ x: t.value.right, y: m.value.zero }
|
|
427
427
|
],
|
|
428
428
|
{
|
|
429
429
|
color: a.value.style.chart.grid.zeroLine.color,
|
|
430
430
|
lineDash: a.value.style.chart.grid.zeroLine.dashed ? [10, 10] : [0, 0]
|
|
431
431
|
}
|
|
432
|
-
), a.value.style.chart.grid.y.axisLabels.show && m.value.yLabels.forEach((e,
|
|
433
|
-
|
|
432
|
+
), a.value.style.chart.grid.y.axisLabels.show && m.value.yLabels.forEach((e, l) => {
|
|
433
|
+
D(
|
|
434
434
|
s.value,
|
|
435
435
|
ee(
|
|
436
436
|
a.value.style.chart.dataLabels.formatter,
|
|
@@ -441,7 +441,7 @@ const dt = ["id"], ht = ["onClick"], yt = {
|
|
|
441
441
|
s: a.value.style.chart.grid.y.axisLabels.suffix || "",
|
|
442
442
|
r: a.value.style.chart.grid.y.axisLabels.rounding || 0
|
|
443
443
|
}),
|
|
444
|
-
{ datapoint: e, seriesIndex:
|
|
444
|
+
{ datapoint: e, seriesIndex: l }
|
|
445
445
|
),
|
|
446
446
|
e.x + a.value.style.chart.grid.y.axisLabels.offsetX,
|
|
447
447
|
e.y,
|
|
@@ -453,22 +453,22 @@ const dt = ["id"], ht = ["onClick"], yt = {
|
|
|
453
453
|
);
|
|
454
454
|
});
|
|
455
455
|
}
|
|
456
|
-
a.value.style.chart.grid.y.axisName &&
|
|
456
|
+
a.value.style.chart.grid.y.axisName && D(
|
|
457
457
|
s.value,
|
|
458
458
|
a.value.style.chart.grid.y.axisName,
|
|
459
459
|
y.value - y.value / 40 * a.value.style.chart.grid.y.axisLabels.fontSizeRatio * 1.2,
|
|
460
|
-
|
|
460
|
+
t.value.bottom - t.value.height / 2,
|
|
461
461
|
{
|
|
462
462
|
font: `${Math.round(y.value / 40 * a.value.style.chart.grid.y.axisLabels.fontSizeRatio)}px ${a.value.style.fontFamily}`,
|
|
463
463
|
color: a.value.style.chart.color,
|
|
464
464
|
align: "center",
|
|
465
465
|
rotation: 90
|
|
466
466
|
}
|
|
467
|
-
), a.value.style.chart.grid.x.axisName &&
|
|
467
|
+
), a.value.style.chart.grid.x.axisName && D(
|
|
468
468
|
s.value,
|
|
469
469
|
a.value.style.chart.grid.x.axisName,
|
|
470
470
|
y.value / 2,
|
|
471
|
-
|
|
471
|
+
R.value,
|
|
472
472
|
{
|
|
473
473
|
font: `${Math.round(y.value / 40 * a.value.style.chart.grid.y.axisLabels.fontSizeRatio)}px ${a.value.style.fontFamily}`,
|
|
474
474
|
color: a.value.style.chart.color,
|
|
@@ -477,11 +477,11 @@ const dt = ["id"], ht = ["onClick"], yt = {
|
|
|
477
477
|
);
|
|
478
478
|
}
|
|
479
479
|
function ba(e) {
|
|
480
|
-
for (let
|
|
481
|
-
const o = (d.value ===
|
|
480
|
+
for (let l = 0; l < e.coordinatesLine.length; l += 1) {
|
|
481
|
+
const o = (d.value === l ? y.value / 150 : a.value.style.chart.line.plots.show ? y.value / 200 : 0) * a.value.style.chart.line.plots.radiusRatio;
|
|
482
482
|
ra(
|
|
483
483
|
s.value,
|
|
484
|
-
{ x: e.coordinatesLine[
|
|
484
|
+
{ x: e.coordinatesLine[l].x, y: e.coordinatesLine[l].y },
|
|
485
485
|
o,
|
|
486
486
|
{
|
|
487
487
|
color: a.value.style.chart.backgroundColor,
|
|
@@ -492,22 +492,22 @@ const dt = ["id"], ht = ["onClick"], yt = {
|
|
|
492
492
|
}
|
|
493
493
|
}
|
|
494
494
|
function xa(e) {
|
|
495
|
-
for (let
|
|
496
|
-
|
|
495
|
+
for (let l = 0; l < e.coordinatesLine.length; l += 1)
|
|
496
|
+
D(
|
|
497
497
|
s.value,
|
|
498
498
|
ee(
|
|
499
499
|
a.value.style.chart.dataLabels.formatter,
|
|
500
|
-
e.coordinatesLine[
|
|
500
|
+
e.coordinatesLine[l].value,
|
|
501
501
|
ae({
|
|
502
502
|
p: e.prefix || "",
|
|
503
|
-
v: e.coordinatesLine[
|
|
503
|
+
v: e.coordinatesLine[l].value,
|
|
504
504
|
s: e.suffix || "",
|
|
505
505
|
r: e.rounding || 0
|
|
506
506
|
}),
|
|
507
|
-
{ datapoint: e.coordinatesLine[
|
|
507
|
+
{ datapoint: e.coordinatesLine[l], seriesIndex: l }
|
|
508
508
|
),
|
|
509
|
-
e.coordinatesLine[
|
|
510
|
-
e.coordinatesLine[
|
|
509
|
+
e.coordinatesLine[l].x,
|
|
510
|
+
e.coordinatesLine[l].y + a.value.style.chart.dataLabels.offsetY,
|
|
511
511
|
{
|
|
512
512
|
align: "center",
|
|
513
513
|
font: `${Math.round(y.value / 40 * a.value.style.chart.dataLabels.fontSizeRatio)}px ${a.value.style.fontFamily}`,
|
|
@@ -519,15 +519,15 @@ const dt = ["id"], ht = ["onClick"], yt = {
|
|
|
519
519
|
}
|
|
520
520
|
function La() {
|
|
521
521
|
for (let e = r.value.start; e < r.value.end; e += 1)
|
|
522
|
-
(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)) &&
|
|
522
|
+
(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)) && D(
|
|
523
523
|
s.value,
|
|
524
524
|
a.value.style.chart.grid.y.timeLabels.values[e] || e + 1,
|
|
525
|
-
|
|
526
|
-
|
|
525
|
+
t.value.left + t.value.slot * (e - r.value.start) + t.value.slot / 2,
|
|
526
|
+
t.value.bottom + y.value / a.value.style.chart.grid.y.timeLabels.offsetY,
|
|
527
527
|
{
|
|
528
528
|
align: a.value.style.chart.grid.y.timeLabels.rotation === 0 ? "center" : a.value.style.chart.grid.y.timeLabels.rotation > 0 ? "left" : "right",
|
|
529
529
|
font: `${Math.round(y.value / 40 * a.value.style.chart.grid.y.timeLabels.fontSizeRatio)}px ${a.value.style.fontFamily}`,
|
|
530
|
-
color:
|
|
530
|
+
color: le(a.value.style.chart.grid.y.timeLabels.color, d.value !== null ? d.value + r.value.start === e ? 100 : 20 : 100),
|
|
531
531
|
rotation: a.value.style.chart.grid.y.timeLabels.rotation
|
|
532
532
|
}
|
|
533
533
|
);
|
|
@@ -536,8 +536,8 @@ const dt = ["id"], ht = ["onClick"], yt = {
|
|
|
536
536
|
k(
|
|
537
537
|
s.value,
|
|
538
538
|
[
|
|
539
|
-
{ x:
|
|
540
|
-
{ x:
|
|
539
|
+
{ x: t.value.left + t.value.slot * d.value + t.value.slot / 2, y: t.value.top },
|
|
540
|
+
{ x: t.value.left + t.value.slot * d.value + t.value.slot / 2, y: t.value.bottom }
|
|
541
541
|
],
|
|
542
542
|
{
|
|
543
543
|
color: a.value.style.chart.selector.color,
|
|
@@ -548,25 +548,25 @@ const dt = ["id"], ht = ["onClick"], yt = {
|
|
|
548
548
|
);
|
|
549
549
|
}
|
|
550
550
|
function ka() {
|
|
551
|
-
C.value.forEach((e,
|
|
551
|
+
C.value.forEach((e, l) => {
|
|
552
552
|
for (let o = 0; o < e.coordinatesLine.length; o += 1)
|
|
553
553
|
ze(
|
|
554
554
|
s.value,
|
|
555
555
|
[
|
|
556
556
|
{
|
|
557
|
-
x:
|
|
557
|
+
x: t.value.left + t.value.slot * o + t.value.slot / 10 + (u.value.stacked ? 0 : t.value.slot / C.value.length * l - (l === 0 ? 0 : t.value.slot / (5 * C.value.length) * l)),
|
|
558
558
|
y: u.value.stacked ? e.localZero : m.value.zero
|
|
559
559
|
},
|
|
560
560
|
{
|
|
561
|
-
x:
|
|
561
|
+
x: t.value.left + t.value.slot * o + t.value.slot / 10 + (u.value.stacked ? 0 : t.value.slot / C.value.length * l - (l === 0 ? 0 : t.value.slot / (5 * C.value.length) * l)) + t.value.slot * 0.8 / (u.value.stacked ? 1 : C.value.length),
|
|
562
562
|
y: u.value.stacked ? e.localZero : m.value.zero
|
|
563
563
|
},
|
|
564
564
|
{
|
|
565
|
-
x:
|
|
565
|
+
x: t.value.left + t.value.slot * o + t.value.slot / 10 + (u.value.stacked ? 0 : t.value.slot / C.value.length * l - (l === 0 ? 0 : t.value.slot / (5 * C.value.length) * l)) + t.value.slot * 0.8 / (u.value.stacked ? 1 : C.value.length),
|
|
566
566
|
y: e.coordinatesLine[o].y
|
|
567
567
|
},
|
|
568
568
|
{
|
|
569
|
-
x:
|
|
569
|
+
x: t.value.left + t.value.slot * o + t.value.slot / 10 + (u.value.stacked ? 0 : t.value.slot / C.value.length * l - (l === 0 ? 0 : t.value.slot / (5 * C.value.length) * l)),
|
|
570
570
|
y: e.coordinatesLine[o].y
|
|
571
571
|
}
|
|
572
572
|
],
|
|
@@ -588,7 +588,7 @@ const dt = ["id"], ht = ["onClick"], yt = {
|
|
|
588
588
|
]
|
|
589
589
|
}
|
|
590
590
|
}
|
|
591
|
-
), u.value.showDataLabels && [!0, void 0].includes(e.dataLabels) &&
|
|
591
|
+
), u.value.showDataLabels && [!0, void 0].includes(e.dataLabels) && D(
|
|
592
592
|
s.value,
|
|
593
593
|
ee(
|
|
594
594
|
a.value.style.chart.dataLabels.formatter,
|
|
@@ -601,7 +601,7 @@ const dt = ["id"], ht = ["onClick"], yt = {
|
|
|
601
601
|
}),
|
|
602
602
|
{ datapoint: e.coordinatesLine[o], seriesIndex: o }
|
|
603
603
|
),
|
|
604
|
-
|
|
604
|
+
t.value.left + t.value.slot * o + t.value.slot / 10 + (u.value.stacked ? 0 : t.value.slot / C.value.length * l - (l === 0 ? 0 : t.value.slot / (5 * C.value.length) * l)) + t.value.slot * 0.4 / (u.value.stacked ? 1 : C.value.length),
|
|
605
605
|
(e.coordinatesLine[o].value < 0 ? u.value.stacked ? e.localZero : m.value.zero : e.coordinatesLine[o].y) + a.value.style.chart.dataLabels.offsetY,
|
|
606
606
|
{
|
|
607
607
|
align: "center",
|
|
@@ -618,14 +618,14 @@ const dt = ["id"], ht = ["onClick"], yt = {
|
|
|
618
618
|
s.value,
|
|
619
619
|
[{ x: e.coordinatesLine[0].x, y: e.localZero }, ...e.coordinatesLine, { x: e.coordinatesLine.at(-1).x, y: e.localZero }],
|
|
620
620
|
{
|
|
621
|
-
fillColor:
|
|
621
|
+
fillColor: le(e.color, a.value.style.chart.area.opacity),
|
|
622
622
|
strokeColor: "transparent"
|
|
623
623
|
}
|
|
624
624
|
) : ua(
|
|
625
625
|
s.value,
|
|
626
626
|
[{ x: e.coordinatesLine[0].x, y: m.value.zero }, ...e.coordinatesLine, { x: e.coordinatesLine.at(-1).x, y: m.value.zero }],
|
|
627
627
|
{
|
|
628
|
-
fillColor:
|
|
628
|
+
fillColor: le(e.color, a.value.style.chart.area.opacity),
|
|
629
629
|
strokeColor: "transparent"
|
|
630
630
|
}
|
|
631
631
|
) : k(s.value, e.coordinatesLine, {
|
|
@@ -634,12 +634,12 @@ const dt = ["id"], ht = ["onClick"], yt = {
|
|
|
634
634
|
});
|
|
635
635
|
}
|
|
636
636
|
function wa() {
|
|
637
|
-
h.value.forEach((e,
|
|
637
|
+
h.value.forEach((e, l) => {
|
|
638
638
|
k(
|
|
639
639
|
s.value,
|
|
640
640
|
[
|
|
641
|
-
{ x:
|
|
642
|
-
{ x:
|
|
641
|
+
{ x: t.value.left, y: t.value.bottom - e.yOffset },
|
|
642
|
+
{ x: t.value.right, y: t.value.bottom - e.yOffset }
|
|
643
643
|
],
|
|
644
644
|
{
|
|
645
645
|
color: a.value.style.chart.grid.x.horizontalLines.color,
|
|
@@ -649,7 +649,7 @@ const dt = ["id"], ht = ["onClick"], yt = {
|
|
|
649
649
|
});
|
|
650
650
|
}
|
|
651
651
|
function xe() {
|
|
652
|
-
ma(),
|
|
652
|
+
ma(), N.value ? (T.value && d.value !== null && a.value.style.chart.selector.show && Ve(), ka(), u.value.stacked && a.value.style.chart.grid.x.showAxis && wa(), ga.value.forEach((e) => {
|
|
653
653
|
(e.type === "line" || !e.type) && Ca(e), T.value && (ba(e), u.value.showDataLabels && [!0, void 0].includes(e.dataLabels) && xa(e));
|
|
654
654
|
}), ye.value = Ja(M.value)) : (ye.value && (s.value.clearRect(0, 0, 1e4, 1e4), s.value.drawImage(ye.value, 0, 0)), T.value && d.value !== null && a.value.style.chart.selector.show && Ve(), T.value && d.value !== null && h.value.forEach((e) => {
|
|
655
655
|
if (e.type === "line" || !e.type || e.type === "plot") {
|
|
@@ -668,19 +668,19 @@ const dt = ["id"], ht = ["onClick"], yt = {
|
|
|
668
668
|
}
|
|
669
669
|
);
|
|
670
670
|
}
|
|
671
|
-
})), a.value.style.chart.grid.y.timeLabels.show && La(),
|
|
671
|
+
})), a.value.style.chart.grid.y.timeLabels.show && La(), N.value = !1;
|
|
672
672
|
}
|
|
673
673
|
const ue = qa(() => {
|
|
674
674
|
T.value = !0, pa();
|
|
675
675
|
}, I.value > 200 ? 10 : 1, !T.value);
|
|
676
676
|
function za(e) {
|
|
677
|
-
const { left:
|
|
678
|
-
if (o * 2 <
|
|
679
|
-
|
|
677
|
+
const { left: l } = M.value.getBoundingClientRect(), o = e.clientX - l;
|
|
678
|
+
if (o * 2 < t.value.left || o * 2 > t.value.right) {
|
|
679
|
+
te.value = !1, d.value = null;
|
|
680
680
|
return;
|
|
681
681
|
}
|
|
682
|
-
const v = o * 2 -
|
|
683
|
-
if (d.value = Math.floor(v /
|
|
682
|
+
const v = o * 2 - t.value.left;
|
|
683
|
+
if (d.value = Math.floor(v / t.value.slot), te.value = !0, !T.value) return;
|
|
684
684
|
let c = "";
|
|
685
685
|
const g = a.value.style.chart.tooltip.customFormat;
|
|
686
686
|
oa(g) && Va(() => g({
|
|
@@ -707,19 +707,19 @@ const dt = ["id"], ht = ["onClick"], yt = {
|
|
|
707
707
|
config: a.value
|
|
708
708
|
}) : (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 += ya.value.join(""), oe.value = c), T.value = !1;
|
|
709
709
|
}
|
|
710
|
-
|
|
710
|
+
A(() => d.value, (e) => {
|
|
711
711
|
ue();
|
|
712
|
-
}),
|
|
713
|
-
|
|
712
|
+
}), A(() => r.value, (e) => {
|
|
713
|
+
N.value = !0, xe();
|
|
714
714
|
}, {
|
|
715
715
|
deep: !0
|
|
716
|
-
}),
|
|
717
|
-
|
|
718
|
-
}),
|
|
719
|
-
|
|
716
|
+
}), A(() => u.value.showDataLabels, (e) => {
|
|
717
|
+
N.value = !0, xe();
|
|
718
|
+
}), A(() => u.value.stacked, (e) => {
|
|
719
|
+
N.value = !0, T.value = !0, ue();
|
|
720
720
|
});
|
|
721
721
|
function Sa() {
|
|
722
|
-
|
|
722
|
+
te.value = !1, d.value = null, oe.value = "";
|
|
723
723
|
}
|
|
724
724
|
const se = i(null), ne = i(null);
|
|
725
725
|
aa(() => {
|
|
@@ -731,32 +731,32 @@ const dt = ["id"], ht = ["onClick"], yt = {
|
|
|
731
731
|
type: "dataset"
|
|
732
732
|
}) : M.value && (s.value = M.value.getContext("2d", { willReadFrequently: !0 })), a.value.responsive) {
|
|
733
733
|
const e = Ka(() => {
|
|
734
|
-
const { width:
|
|
734
|
+
const { width: l, height: o } = Qa({
|
|
735
735
|
chart: Z.value,
|
|
736
736
|
title: a.value.style.chart.title.text ? Te.value : null,
|
|
737
737
|
legend: a.value.style.chart.legend.show ? Oe.value : null,
|
|
738
|
-
slicer: a.value.style.chart.zoom.show && I.value > 1 ?
|
|
739
|
-
source:
|
|
738
|
+
slicer: a.value.style.chart.zoom.show && I.value > 1 ? Re.value : null,
|
|
739
|
+
source: Pe.value
|
|
740
740
|
});
|
|
741
|
-
|
|
741
|
+
Ne.value = `${l} / ${o}`;
|
|
742
742
|
});
|
|
743
743
|
se.value = new ResizeObserver(e), se.value.observe(Z.value.parentNode);
|
|
744
744
|
}
|
|
745
745
|
ne.value = new ResizeObserver((e) => {
|
|
746
|
-
for (const
|
|
747
|
-
|
|
746
|
+
for (const l of e)
|
|
747
|
+
l.contentBoxSize && G.value && (N.value = !0, ue());
|
|
748
748
|
}), ne.value.observe(G.value), Be();
|
|
749
749
|
}
|
|
750
750
|
Oa(() => {
|
|
751
751
|
ne.value && ne.value.disconnect(), se.value && se.value.disconnect();
|
|
752
752
|
});
|
|
753
753
|
function Ze(e) {
|
|
754
|
-
ia("selectLegend", h.value.find((
|
|
754
|
+
ia("selectLegend", h.value.find((l) => l.absoluteIndex === e)), $.value.includes(e) ? $.value = $.value.filter((l) => l !== e) : $.value.push(e), N.value = !0, ue();
|
|
755
755
|
}
|
|
756
|
-
const Ge = x(() => W.value.map((e,
|
|
756
|
+
const Ge = x(() => W.value.map((e, l) => ({
|
|
757
757
|
...e,
|
|
758
758
|
name: e.name,
|
|
759
|
-
color:
|
|
759
|
+
color: ta(e.color) || We.value[l] || _[l] || _[l % _.length],
|
|
760
760
|
shape: e.shape || "circle",
|
|
761
761
|
prefix: e.prefix || "",
|
|
762
762
|
suffix: e.suffix || "",
|
|
@@ -775,10 +775,10 @@ const dt = ["id"], ht = ["onClick"], yt = {
|
|
|
775
775
|
fontWeight: a.value.style.chart.legend.bold ? "bold" : ""
|
|
776
776
|
})), ie = x(() => {
|
|
777
777
|
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>');
|
|
778
|
-
let
|
|
778
|
+
let l = [];
|
|
779
779
|
for (let c = 0; c < I.value; c += 1) {
|
|
780
780
|
const g = h.value.map((n) => n.series[c] ?? 0).reduce((n, p) => n + p, 0);
|
|
781
|
-
|
|
781
|
+
l.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((g ?? 0).toFixed(a.value.table.rounding)));
|
|
782
782
|
}
|
|
783
783
|
const o = {
|
|
784
784
|
th: {
|
|
@@ -793,24 +793,24 @@ const dt = ["id"], ht = ["onClick"], yt = {
|
|
|
793
793
|
},
|
|
794
794
|
breakpoint: a.value.table.responsiveBreakpoint
|
|
795
795
|
}, v = [a.value.table.columnNames.period].concat(h.value.map((c) => c.name)).concat(a.value.table.columnNames.total);
|
|
796
|
-
return { head: e, body:
|
|
796
|
+
return { head: e, body: l.slice(0, r.value.end - r.value.start), config: o, colNames: v };
|
|
797
797
|
}), je = x(() => {
|
|
798
798
|
if (h.value.length === 0) return { head: [], body: [], config: {}, columnNames: [] };
|
|
799
799
|
const e = h.value.map((o) => ({
|
|
800
800
|
label: o.name,
|
|
801
801
|
color: o.color,
|
|
802
802
|
type: o.type
|
|
803
|
-
})),
|
|
803
|
+
})), l = [];
|
|
804
804
|
for (let o = r.value.start; o < r.value.end; o += 1) {
|
|
805
805
|
const v = [a.value.style.chart.grid.y.timeLabels.values[o] || o + 1];
|
|
806
806
|
h.value.forEach((c) => {
|
|
807
807
|
v.push(Number((c.series[o] || 0).toFixed(a.value.table.rounding)));
|
|
808
|
-
}),
|
|
808
|
+
}), l.push(v);
|
|
809
809
|
}
|
|
810
|
-
return { head: e, body:
|
|
810
|
+
return { head: e, body: l };
|
|
811
811
|
});
|
|
812
812
|
function qe() {
|
|
813
|
-
const e = [[a.value.style.chart.title.text], [a.value.style.chart.title.subtitle.text], [""]],
|
|
813
|
+
const e = [[a.value.style.chart.title.text], [a.value.style.chart.title.subtitle.text], [""]], l = ["", ...je.value.head.map((g) => g.label)], o = je.value.body, v = e.concat([l]).concat(o), c = Za(v);
|
|
814
814
|
Ga({ csvContent: c, title: a.value.style.chart.title.text || "vue-ui-xy-canvas" });
|
|
815
815
|
}
|
|
816
816
|
function Ia() {
|
|
@@ -835,21 +835,21 @@ const dt = ["id"], ht = ["onClick"], yt = {
|
|
|
835
835
|
return na({
|
|
836
836
|
getData: Ia,
|
|
837
837
|
generateCsv: qe,
|
|
838
|
-
generatePdf:
|
|
838
|
+
generatePdf: _e,
|
|
839
839
|
generateImage: Ue,
|
|
840
840
|
toggleTable: Je,
|
|
841
841
|
toggleLabels: Ke,
|
|
842
842
|
toggleStack: Qe,
|
|
843
843
|
toggleTooltip: ea,
|
|
844
844
|
toggleAnnotator: ke
|
|
845
|
-
}), (e,
|
|
845
|
+
}), (e, l) => (z(), K("div", {
|
|
846
846
|
style: Y(`width:100%; position:relative; ${a.value.responsive ? "height: 100%" : ""}`),
|
|
847
847
|
ref_key: "xy",
|
|
848
848
|
ref: Z,
|
|
849
849
|
id: `xy_canvas_${he.value}`,
|
|
850
|
-
class:
|
|
851
|
-
onMouseenter:
|
|
852
|
-
onMouseleave:
|
|
850
|
+
class: Ra(`vue-ui-donut ${re.value ? "vue-data-ui-wrapper-fullscreen" : ""}`),
|
|
851
|
+
onMouseenter: l[5] || (l[5] = () => S(Fe)(!0)),
|
|
852
|
+
onMouseleave: l[6] || (l[6] = () => S(Fe)(!1))
|
|
853
853
|
}, [
|
|
854
854
|
a.value.style.chart.title.text ? (z(), K("div", {
|
|
855
855
|
key: 0,
|
|
@@ -857,7 +857,7 @@ const dt = ["id"], ht = ["onClick"], yt = {
|
|
|
857
857
|
ref: Te,
|
|
858
858
|
style: Y(`width:100%;background:${a.value.style.chart.backgroundColor};`)
|
|
859
859
|
}, [
|
|
860
|
-
(z(), E(
|
|
860
|
+
(z(), E(ll, {
|
|
861
861
|
key: `title_${fe.value}`,
|
|
862
862
|
config: {
|
|
863
863
|
title: {
|
|
@@ -870,14 +870,14 @@ const dt = ["id"], ht = ["onClick"], yt = {
|
|
|
870
870
|
}
|
|
871
871
|
}
|
|
872
872
|
}, null, 8, ["config"]))
|
|
873
|
-
], 4)) :
|
|
874
|
-
a.value.userOptions.show && me.value && (S(Ee) || S(be)) ? (z(), E(
|
|
873
|
+
], 4)) : H("", !0),
|
|
874
|
+
a.value.userOptions.show && me.value && (S(Ee) || S(be)) ? (z(), E(rl, {
|
|
875
875
|
ref: "details",
|
|
876
876
|
key: `user_option_${Me.value}`,
|
|
877
877
|
backgroundColor: a.value.style.chart.backgroundColor,
|
|
878
878
|
color: a.value.style.chart.color,
|
|
879
|
-
isPrinting: S(
|
|
880
|
-
isImaging: S(
|
|
879
|
+
isPrinting: S(Ae),
|
|
880
|
+
isImaging: S(He),
|
|
881
881
|
uid: he.value,
|
|
882
882
|
hasTooltip: a.value.userOptions.buttons.tooltip && a.value.style.chart.tooltip.show,
|
|
883
883
|
hasPdf: a.value.userOptions.buttons.pdf,
|
|
@@ -896,7 +896,7 @@ const dt = ["id"], ht = ["onClick"], yt = {
|
|
|
896
896
|
hasAnnotator: a.value.userOptions.buttons.annotator,
|
|
897
897
|
isAnnotation: ve.value,
|
|
898
898
|
onToggleFullscreen: da,
|
|
899
|
-
onGeneratePdf: S(
|
|
899
|
+
onGeneratePdf: S(_e),
|
|
900
900
|
onGenerateCsv: qe,
|
|
901
901
|
onGenerateImage: S(Ue),
|
|
902
902
|
onToggleTable: Je,
|
|
@@ -907,7 +907,7 @@ const dt = ["id"], ht = ["onClick"], yt = {
|
|
|
907
907
|
style: Y({
|
|
908
908
|
visibility: S(Ee) ? S(be) ? "visible" : "hidden" : "visible"
|
|
909
909
|
})
|
|
910
|
-
},
|
|
910
|
+
}, Pa({ _: 2 }, [
|
|
911
911
|
e.$slots.optionTooltip ? {
|
|
912
912
|
name: "optionTooltip",
|
|
913
913
|
fn: b(() => [
|
|
@@ -971,10 +971,10 @@ const dt = ["id"], ht = ["onClick"], yt = {
|
|
|
971
971
|
]),
|
|
972
972
|
key: "8"
|
|
973
973
|
} : void 0
|
|
974
|
-
]), 1032, ["backgroundColor", "color", "isPrinting", "isImaging", "uid", "hasTooltip", "hasPdf", "hasImg", "hasXls", "hasLabel", "hasStack", "hasFullscreen", "hasTable", "isFullscreen", "isTooltip", "isStacked", "titles", "chartElement", "position", "hasAnnotator", "isAnnotation", "onGeneratePdf", "onGenerateImage", "style"])) :
|
|
974
|
+
]), 1032, ["backgroundColor", "color", "isPrinting", "isImaging", "uid", "hasTooltip", "hasPdf", "hasImg", "hasXls", "hasLabel", "hasStack", "hasFullscreen", "hasTable", "isFullscreen", "isTooltip", "isStacked", "titles", "chartElement", "position", "hasAnnotator", "isAnnotation", "onGeneratePdf", "onGenerateImage", "style"])) : H("", !0),
|
|
975
975
|
Q("div", {
|
|
976
976
|
class: "vue-ui-xy-canvas",
|
|
977
|
-
style: Y(`position: relative; aspect-ratio: ${
|
|
977
|
+
style: Y(`position: relative; aspect-ratio: ${Ne.value}`),
|
|
978
978
|
ref_key: "container",
|
|
979
979
|
ref: G
|
|
980
980
|
}, [
|
|
@@ -983,9 +983,9 @@ const dt = ["id"], ht = ["onClick"], yt = {
|
|
|
983
983
|
ref_key: "canvas",
|
|
984
984
|
ref: M,
|
|
985
985
|
style: { width: "100%", height: "100%" },
|
|
986
|
-
onMousemove:
|
|
986
|
+
onMousemove: l[0] || (l[0] = (o) => za(o)),
|
|
987
987
|
onMouseleave: Sa
|
|
988
|
-
}, null, 544)) : (z(), E(
|
|
988
|
+
}, null, 544)) : (z(), E(nl, {
|
|
989
989
|
key: 1,
|
|
990
990
|
config: {
|
|
991
991
|
type: "line",
|
|
@@ -1003,8 +1003,8 @@ const dt = ["id"], ht = ["onClick"], yt = {
|
|
|
1003
1003
|
}
|
|
1004
1004
|
}
|
|
1005
1005
|
}, null, 8, ["config"])),
|
|
1006
|
-
Fa(
|
|
1007
|
-
show: u.value.showTooltip &&
|
|
1006
|
+
Fa(el, {
|
|
1007
|
+
show: u.value.showTooltip && te.value,
|
|
1008
1008
|
backgroundColor: a.value.style.chart.tooltip.backgroundColor,
|
|
1009
1009
|
color: a.value.style.chart.tooltip.color,
|
|
1010
1010
|
fontSize: a.value.style.chart.tooltip.fontSize,
|
|
@@ -1030,11 +1030,11 @@ const dt = ["id"], ht = ["onClick"], yt = {
|
|
|
1030
1030
|
], 4),
|
|
1031
1031
|
Q("div", {
|
|
1032
1032
|
ref_key: "chartSlicer",
|
|
1033
|
-
ref:
|
|
1033
|
+
ref: Re,
|
|
1034
1034
|
style: Y(`width:100%;background:${a.value.style.chart.backgroundColor}`),
|
|
1035
1035
|
"data-html2canvas-ignore": ""
|
|
1036
1036
|
}, [
|
|
1037
|
-
a.value.style.chart.zoom.show && I.value > 1 ? (z(), E(
|
|
1037
|
+
a.value.style.chart.zoom.show && I.value > 1 ? (z(), E(tl, {
|
|
1038
1038
|
ref_key: "slicerComponent",
|
|
1039
1039
|
ref: X,
|
|
1040
1040
|
key: `slicer_${Ie.value}`,
|
|
@@ -1052,34 +1052,36 @@ const dt = ["id"], ht = ["onClick"], yt = {
|
|
|
1052
1052
|
valueStart: r.value.start,
|
|
1053
1053
|
valueEnd: r.value.end,
|
|
1054
1054
|
start: r.value.start,
|
|
1055
|
-
"onUpdate:start":
|
|
1055
|
+
"onUpdate:start": l[1] || (l[1] = (o) => r.value.start = o),
|
|
1056
1056
|
end: r.value.end,
|
|
1057
|
-
"onUpdate:end":
|
|
1057
|
+
"onUpdate:end": l[2] || (l[2] = (o) => r.value.end = o),
|
|
1058
1058
|
refreshStartPoint: a.value.style.chart.zoom.startIndex !== null ? a.value.style.chart.zoom.startIndex : 0,
|
|
1059
1059
|
refreshEndPoint: a.value.style.chart.zoom.endIndex !== null ? a.value.style.chart.zoom.endIndex + 1 : I.value,
|
|
1060
|
+
enableRangeHandles: a.value.style.chart.zoom.enableRangeHandles,
|
|
1061
|
+
enableSelectionDrag: a.value.style.chart.zoom.enableSelectionDrag,
|
|
1060
1062
|
onReset: Ye
|
|
1061
1063
|
}, {
|
|
1062
1064
|
"reset-action": b(({ reset: o }) => [
|
|
1063
1065
|
L(e.$slots, "reset-action", B(V({ reset: o })), void 0, !0)
|
|
1064
1066
|
]),
|
|
1065
1067
|
_: 3
|
|
1066
|
-
}, 8, ["background", "borderColor", "fontSize", "useResetSlot", "labelLeft", "labelRight", "textColor", "inputColor", "selectColor", "max", "valueStart", "valueEnd", "start", "end", "refreshStartPoint", "refreshEndPoint"])) :
|
|
1068
|
+
}, 8, ["background", "borderColor", "fontSize", "useResetSlot", "labelLeft", "labelRight", "textColor", "inputColor", "selectColor", "max", "valueStart", "valueEnd", "start", "end", "refreshStartPoint", "refreshEndPoint", "enableRangeHandles", "enableSelectionDrag"])) : H("", !0)
|
|
1067
1069
|
], 4),
|
|
1068
1070
|
Q("div", {
|
|
1069
1071
|
ref_key: "chartLegend",
|
|
1070
1072
|
ref: Oe
|
|
1071
1073
|
}, [
|
|
1072
|
-
a.value.style.chart.legend.show && me.value ? (z(), E(
|
|
1074
|
+
a.value.style.chart.legend.show && me.value ? (z(), E(al, {
|
|
1073
1075
|
legendSet: Ge.value,
|
|
1074
1076
|
config: $a.value,
|
|
1075
1077
|
key: `legend_${pe.value}`,
|
|
1076
|
-
onClickMarker:
|
|
1078
|
+
onClickMarker: l[3] || (l[3] = ({ i: o }) => Ze(o))
|
|
1077
1079
|
}, {
|
|
1078
1080
|
item: b(({ legend: o, index: v }) => [
|
|
1079
1081
|
Q("div", {
|
|
1080
1082
|
onClick: (c) => o.segregate(),
|
|
1081
1083
|
style: Y(`opacity:${$.value.includes(v) ? 0.5 : 1}`)
|
|
1082
|
-
},
|
|
1084
|
+
}, la(o.name), 13, hl)
|
|
1083
1085
|
]),
|
|
1084
1086
|
_: 1
|
|
1085
1087
|
}, 8, ["legendSet", "config"])) : L(e.$slots, "legend", {
|
|
@@ -1087,18 +1089,18 @@ const dt = ["id"], ht = ["onClick"], yt = {
|
|
|
1087
1089
|
legend: Ge.value
|
|
1088
1090
|
}, void 0, !0)
|
|
1089
1091
|
], 512),
|
|
1090
|
-
e.$slots.watermark ? (z(), K("div",
|
|
1091
|
-
L(e.$slots, "watermark", B(V({ isPrinting: S(
|
|
1092
|
-
])) :
|
|
1092
|
+
e.$slots.watermark ? (z(), K("div", yl, [
|
|
1093
|
+
L(e.$slots, "watermark", B(V({ isPrinting: S(Ae) || S(He) })), void 0, !0)
|
|
1094
|
+
])) : H("", !0),
|
|
1093
1095
|
e.$slots.source ? (z(), K("div", {
|
|
1094
1096
|
key: 3,
|
|
1095
1097
|
ref_key: "source",
|
|
1096
|
-
ref:
|
|
1098
|
+
ref: Pe,
|
|
1097
1099
|
dir: "auto"
|
|
1098
1100
|
}, [
|
|
1099
1101
|
L(e.$slots, "source", {}, void 0, !0)
|
|
1100
|
-
], 512)) :
|
|
1101
|
-
r.value.end - r.value.start < 200 ? (z(), E(
|
|
1102
|
+
], 512)) : H("", !0),
|
|
1103
|
+
r.value.end - r.value.start < 200 ? (z(), E(ul, {
|
|
1102
1104
|
key: 4,
|
|
1103
1105
|
hideDetails: "",
|
|
1104
1106
|
config: {
|
|
@@ -1115,37 +1117,37 @@ const dt = ["id"], ht = ["onClick"], yt = {
|
|
|
1115
1117
|
}
|
|
1116
1118
|
}, {
|
|
1117
1119
|
content: b(() => [
|
|
1118
|
-
(z(), E(
|
|
1120
|
+
(z(), E(sl, {
|
|
1119
1121
|
key: `table_${ge.value}`,
|
|
1120
1122
|
colNames: ie.value.colNames,
|
|
1121
1123
|
head: ie.value.head,
|
|
1122
1124
|
body: ie.value.body,
|
|
1123
1125
|
config: ie.value.config,
|
|
1124
1126
|
title: `${a.value.style.chart.title.text}${a.value.style.chart.title.subtitle.text ? ` : ${a.value.style.chart.title.subtitle.text}` : ""}`,
|
|
1125
|
-
onClose:
|
|
1127
|
+
onClose: l[4] || (l[4] = (o) => u.value.showTable = !1)
|
|
1126
1128
|
}, {
|
|
1127
1129
|
th: b(({ th: o }) => [
|
|
1128
|
-
Q("div", { innerHTML: o }, null, 8,
|
|
1130
|
+
Q("div", { innerHTML: o }, null, 8, fl)
|
|
1129
1131
|
]),
|
|
1130
1132
|
td: b(({ td: o }) => [
|
|
1131
|
-
Ea(
|
|
1133
|
+
Ea(la(o), 1)
|
|
1132
1134
|
]),
|
|
1133
1135
|
_: 1
|
|
1134
1136
|
}, 8, ["colNames", "head", "body", "config", "title"]))
|
|
1135
1137
|
]),
|
|
1136
1138
|
_: 1
|
|
1137
|
-
}, 8, ["config"])) :
|
|
1138
|
-
a.value.userOptions.buttons.annotator && h.value.length ? (z(), E(
|
|
1139
|
+
}, 8, ["config"])) : H("", !0),
|
|
1140
|
+
a.value.userOptions.buttons.annotator && h.value.length ? (z(), E(il, {
|
|
1139
1141
|
key: 5,
|
|
1140
1142
|
parent: Z.value,
|
|
1141
1143
|
backgroundColor: a.value.style.chart.backgroundColor,
|
|
1142
1144
|
color: a.value.style.chart.color,
|
|
1143
1145
|
active: ve.value,
|
|
1144
1146
|
onClose: ke
|
|
1145
|
-
}, null, 8, ["parent", "backgroundColor", "color", "active"])) :
|
|
1146
|
-
], 46,
|
|
1147
|
+
}, null, 8, ["parent", "backgroundColor", "color", "active"])) : H("", !0)
|
|
1148
|
+
], 46, dl));
|
|
1147
1149
|
}
|
|
1148
|
-
},
|
|
1150
|
+
}, Rl = /* @__PURE__ */ cl(gl, [["__scopeId", "data-v-fbe7238f"]]);
|
|
1149
1151
|
export {
|
|
1150
|
-
|
|
1152
|
+
Rl as default
|
|
1151
1153
|
};
|