vue-data-ui 2.4.57 → 2.4.59
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +82 -51
- package/dist/{Arrow-BhwhLRcU.cjs → Arrow-Dudbi6k5.cjs} +1 -1
- package/dist/{Arrow-DelnKkT1.js → Arrow-DzS4HIXj.js} +1 -1
- package/dist/{BaseIcon-9gdEHMWK.js → BaseIcon-BbU81zOd.js} +1 -1
- package/dist/{BaseIcon-DujPvdJ_.cjs → BaseIcon-DD3GLrhS.cjs} +1 -1
- package/dist/{DataTable-BUflha5V.cjs → DataTable-BHCbVv8x.cjs} +1 -1
- package/dist/{DataTable-DgbrnD__.js → DataTable-CFUKU8PU.js} +2 -2
- package/dist/{Legend-V3K-4ipN.cjs → Legend-BYngLoV6.cjs} +1 -1
- package/dist/{Legend-HooNAKB_.js → Legend-f52bnttJ.js} +1 -1
- package/dist/{PackageVersion-S3SzpuwC.js → PackageVersion-C_FFs0BP.js} +1 -1
- package/dist/{PackageVersion-dQYEsTLp.cjs → PackageVersion-nr7f_VNw.cjs} +1 -1
- package/dist/{PenAndPaper-1h87IVla.cjs → PenAndPaper-C9v0NXEg.cjs} +1 -1
- package/dist/{PenAndPaper-v846FwcH.js → PenAndPaper-Dx24BtRW.js} +3 -3
- package/dist/{Shape-D7aacHaz.js → Shape-Ct2x6qZx.js} +1 -1
- package/dist/{Shape-DV5sH0dX.cjs → Shape-Dkt-vkTl.cjs} +1 -1
- package/dist/{Slicer-BRxR5OYL.cjs → Slicer-C0cvEMOy.cjs} +1 -1
- package/dist/{Slicer-BXCORSCz.js → Slicer-Duke9qno.js} +2 -2
- package/dist/{Title-B-EsW0Q2.cjs → Title-CpfNWbUc.cjs} +1 -1
- package/dist/{Title-DLjHHdyq.js → Title-zZtEcB9F.js} +1 -1
- package/dist/{Tooltip-BDaa-67h.js → Tooltip-DDJ2Wvjy.js} +1 -1
- package/dist/{Tooltip-B7gYRLGN.cjs → Tooltip-DZuVxmLc.cjs} +1 -1
- package/dist/documentation/installation.md +48 -48
- package/dist/{index-CI-N9klv.js → index-B9RAElpI.js} +2 -2
- package/dist/index-DaDv7p0W.cjs +9 -0
- package/dist/style.css +1 -1
- package/dist/{useNestedProp-D-zaZbSR.cjs → useNestedProp-DkpuL8Iv.cjs} +1 -1
- package/dist/{useNestedProp-D1eJ0dvv.js → useNestedProp-DuruL3Nt.js} +1 -1
- package/dist/{usePrinter-H2UFIe6n.cjs → usePrinter-BIHu0O5X.cjs} +1 -1
- package/dist/{usePrinter-CXc8xCKk.js → usePrinter-CwTAwqtF.js} +1 -1
- package/dist/{vue-data-ui-CvfX2D1d.cjs → vue-data-ui-BXCJgMfu.cjs} +1 -1
- package/dist/{vue-data-ui-DuXblXhF.js → vue-data-ui-yknmkfFy.js} +60 -60
- package/dist/vue-data-ui.cjs +1 -1
- package/dist/vue-data-ui.js +1 -1
- package/dist/{vue-ui-3d-bar-fvTVGk8O.js → vue-ui-3d-bar-BkbLoUhP.js} +170 -158
- package/dist/vue-ui-3d-bar-CHnh8ZH_.cjs +19 -0
- package/dist/{vue-ui-accordion-paZXh-GD.cjs → vue-ui-accordion-6Clt339w.cjs} +1 -1
- package/dist/{vue-ui-accordion-CYLks1fW.js → vue-ui-accordion-rNA598L6.js} +3 -3
- package/dist/{vue-ui-age-pyramid-Ch3nY1Dx.js → vue-ui-age-pyramid-C3o5HfRK.js} +176 -164
- package/dist/vue-ui-age-pyramid-CKDDaRj_.cjs +1 -0
- package/dist/{vue-ui-annotator-BXbLcJ1L.cjs → vue-ui-annotator-BLilhXfT.cjs} +1 -1
- package/dist/{vue-ui-annotator-DGupSF-o.js → vue-ui-annotator-huMOA-QF.js} +1 -1
- package/dist/{vue-ui-bullet-BSRXabBe.js → vue-ui-bullet-DxYdog9c.js} +155 -143
- package/dist/vue-ui-bullet-yTpejKsw.cjs +34 -0
- package/dist/{vue-ui-candlestick-Dww4XHwQ.js → vue-ui-candlestick-3lCgRxr0.js} +96 -84
- package/dist/vue-ui-candlestick-CmD40PpS.cjs +2 -0
- package/dist/vue-ui-carousel-table-BU8oAq6b.cjs +1 -0
- package/dist/{vue-ui-carousel-table-BZs-sxxu.js → vue-ui-carousel-table-D3JIrHMF.js} +97 -95
- package/dist/vue-ui-chestnut-BWRUxwWm.cjs +6 -0
- package/dist/{vue-ui-chestnut-CnupXXAM.js → vue-ui-chestnut-cWFqbqSU.js} +160 -148
- package/dist/{vue-ui-cursor-oqfOA98Q.js → vue-ui-cursor-DjWkFQEI.js} +2 -2
- package/dist/{vue-ui-cursor-smlBNiGG.cjs → vue-ui-cursor-DzJmB5h9.cjs} +1 -1
- package/dist/{vue-ui-dashboard-BNu7yNYm.js → vue-ui-dashboard-1dycrMNM.js} +2 -2
- package/dist/{vue-ui-dashboard-Dw_90R29.cjs → vue-ui-dashboard-BOjdgUEm.cjs} +1 -1
- package/dist/{vue-ui-digits-_8FbgFrI.cjs → vue-ui-digits-B8TVsqsB.cjs} +1 -1
- package/dist/{vue-ui-digits-qztPrOEN.js → vue-ui-digits-C4NWhIjg.js} +2 -2
- package/dist/vue-ui-donut-BPz8gXi5.cjs +1 -0
- package/dist/{vue-ui-donut-CK9dINFS.js → vue-ui-donut-CXBxDUoh.js} +291 -279
- package/dist/{vue-ui-donut-evolution-DpDpYw3f.js → vue-ui-donut-evolution-BgD7rCFk.js} +285 -273
- package/dist/vue-ui-donut-evolution-h3ZgYI48.cjs +1 -0
- package/dist/vue-ui-dumbbell-BCyFd1Lf.cjs +9 -0
- package/dist/{vue-ui-dumbbell-Dx1I89N9.js → vue-ui-dumbbell-DMp-Waih.js} +159 -147
- package/dist/{vue-ui-flow-DJNqydD1.js → vue-ui-flow-D-XBMcpC.js} +162 -150
- package/dist/vue-ui-flow-DB3_5wEr.cjs +1 -0
- package/dist/vue-ui-funnel-DJVmn_pN.cjs +1 -0
- package/dist/{vue-ui-funnel-mP8ftcS5.js → vue-ui-funnel-Dxb6o97C.js} +229 -215
- package/dist/{vue-ui-galaxy-3cOLS6lh.js → vue-ui-galaxy-C2eHqbLw.js} +148 -136
- package/dist/vue-ui-galaxy-CIBBO623.cjs +1 -0
- package/dist/{vue-ui-gauge-CN_zo833.js → vue-ui-gauge-B9M8ICMX.js} +199 -185
- package/dist/vue-ui-gauge-C_JArbcd.cjs +1 -0
- package/dist/vue-ui-gizmo-ETKRu3P5.cjs +1 -0
- package/dist/{vue-ui-gizmo-akkNcCWf.js → vue-ui-gizmo-OGIvFCA4.js} +45 -43
- package/dist/{vue-ui-heatmap-B3ClLioV.js → vue-ui-heatmap-C2BobYAF.js} +138 -126
- package/dist/vue-ui-heatmap-mPZepJ4V.cjs +1 -0
- package/dist/{vue-ui-history-plot-C-EqVFW-.js → vue-ui-history-plot-BtBDW5ha.js} +127 -115
- package/dist/vue-ui-history-plot-DgEFbRv3.cjs +1 -0
- package/dist/{vue-ui-kpi-C-axCKZx.js → vue-ui-kpi-BCwmp6i5.js} +36 -33
- package/dist/vue-ui-kpi-DZGoUp6y.cjs +1 -0
- package/dist/{vue-ui-mini-loader-Cal5W_q6.cjs → vue-ui-mini-loader-B_I1k10C.cjs} +1 -1
- package/dist/{vue-ui-mini-loader-CsZ1zxJz.js → vue-ui-mini-loader-DWQfo-Ey.js} +2 -2
- package/dist/{vue-ui-molecule-BvNh7REY.js → vue-ui-molecule-CpWWvLlc.js} +212 -200
- package/dist/vue-ui-molecule-CqHsa4N7.cjs +1 -0
- package/dist/{vue-ui-mood-radar-C7v4dBNw.js → vue-ui-mood-radar-B4-AQAyE.js} +123 -111
- package/dist/vue-ui-mood-radar-Dx6ICJkv.cjs +1 -0
- package/dist/{vue-ui-nested-donuts-C08kpvMd.js → vue-ui-nested-donuts-C-afzEvx.js} +156 -144
- package/dist/vue-ui-nested-donuts-C8LG5ony.cjs +17 -0
- package/dist/vue-ui-onion-KC_zqQyz.cjs +5 -0
- package/dist/{vue-ui-onion-CTLBemDj.js → vue-ui-onion-wBz5dln6.js} +125 -113
- package/dist/vue-ui-parallel-coordinate-plot-BK1sUOyd.cjs +8 -0
- package/dist/{vue-ui-parallel-coordinate-plot-H1FdP6AE.js → vue-ui-parallel-coordinate-plot-BoiKoaod.js} +159 -147
- package/dist/vue-ui-quadrant-BJ3gSVgF.cjs +1 -0
- package/dist/{vue-ui-quadrant-Dd-LDy4T.js → vue-ui-quadrant-DY6yUyOl.js} +211 -199
- package/dist/{vue-ui-quick-chart-BeNivWrg.js → vue-ui-quick-chart-DBH9CgBI.js} +576 -540
- package/dist/vue-ui-quick-chart-OHwPApk1.cjs +15 -0
- package/dist/{vue-ui-radar-D9U_vOad.js → vue-ui-radar-DYnmlHtt.js} +183 -171
- package/dist/vue-ui-radar-nhy4Pqtc.cjs +1 -0
- package/dist/{vue-ui-rating-B7AlAqCY.js → vue-ui-rating-3LUgui--.js} +102 -98
- package/dist/vue-ui-rating-wl5jkxb5.cjs +1 -0
- package/dist/vue-ui-relation-circle-CGkAsJl8.cjs +1 -0
- package/dist/{vue-ui-relation-circle-CT23BNcW.js → vue-ui-relation-circle-Da09K_Ce.js} +129 -117
- package/dist/{vue-ui-rings-BZ7FYYxr.js → vue-ui-rings-BuVPBXNc.js} +150 -138
- package/dist/vue-ui-rings-DZfhibc4.cjs +2 -0
- package/dist/{vue-ui-scatter-DMr8OrC3.js → vue-ui-scatter-Bee79rib.js} +320 -308
- package/dist/vue-ui-scatter-ChYAlXb_.cjs +1 -0
- package/dist/{vue-ui-screenshot-BFV1qEsF.cjs → vue-ui-screenshot-Blz4fiO2.cjs} +1 -1
- package/dist/{vue-ui-screenshot-DHiX35pR.js → vue-ui-screenshot-CCnAaGB3.js} +1 -1
- package/dist/{vue-ui-skeleton-BIWgLDDf.cjs → vue-ui-skeleton-B24XJJ2p.cjs} +1 -1
- package/dist/{vue-ui-skeleton-owIhXtQF.js → vue-ui-skeleton-DVYD_VSe.js} +3 -3
- package/dist/vue-ui-smiley-CXOuAdIj.cjs +2 -0
- package/dist/{vue-ui-smiley-CCOQ6zjo.js → vue-ui-smiley-CdrTI5Rh.js} +208 -206
- package/dist/vue-ui-spark-trend-B08HYMm5.cjs +1 -0
- package/dist/{vue-ui-spark-trend-B56DI3Mc.js → vue-ui-spark-trend-Pd3JNy4G.js} +124 -112
- package/dist/{vue-ui-sparkbar-CMkozDkx.js → vue-ui-sparkbar-CTDWiUid.js} +100 -96
- package/dist/vue-ui-sparkbar-Dq1hwL7i.cjs +1 -0
- package/dist/{vue-ui-sparkgauge-De06LRPj.js → vue-ui-sparkgauge-g0C7wuIH.js} +60 -48
- package/dist/vue-ui-sparkgauge-il4rmDdv.cjs +1 -0
- package/dist/vue-ui-sparkhistogram-CoRPiLpB.cjs +1 -0
- package/dist/{vue-ui-sparkhistogram-CBDd7jIn.js → vue-ui-sparkhistogram-Dk8IYZGB.js} +116 -104
- package/dist/vue-ui-sparkline-B_1J2ft2.cjs +1 -0
- package/dist/{vue-ui-sparkline-BJejWvTN.js → vue-ui-sparkline-Ca1ai-Mq.js} +124 -112
- package/dist/{vue-ui-sparkstackbar-DlnmPom2.js → vue-ui-sparkstackbar-CRGrf5y2.js} +85 -81
- package/dist/vue-ui-sparkstackbar-tkiKbZHo.cjs +1 -0
- package/dist/{vue-ui-stackbar-19XdLQXB.js → vue-ui-stackbar-QaavE5-F.js} +219 -207
- package/dist/vue-ui-stackbar-zk1K5gP3.cjs +6 -0
- package/dist/vue-ui-strip-plot-8Ksp5AzD.cjs +1 -0
- package/dist/{vue-ui-strip-plot-Bly8GoNP.js → vue-ui-strip-plot-gm_lr5A9.js} +113 -101
- package/dist/{vue-ui-table-BisPh85-.cjs → vue-ui-table-CPLd7hXM.cjs} +1 -1
- package/dist/{vue-ui-table-BUF6Pyfp.js → vue-ui-table-ceYZ6Wzd.js} +1 -1
- package/dist/vue-ui-table-heatmap-CSsYOFf7.cjs +1 -0
- package/dist/{vue-ui-table-heatmap-By-MmFiq.js → vue-ui-table-heatmap-CWQIOR58.js} +82 -78
- package/dist/{vue-ui-table-sparkline-DG70UNkU.js → vue-ui-table-sparkline-BHkqm0Sf.js} +78 -74
- package/dist/vue-ui-table-sparkline-hyL_92AC.cjs +1 -0
- package/dist/vue-ui-thermometer-CKiohIHn.cjs +1 -0
- package/dist/{vue-ui-thermometer-Vr2IP_p0.js → vue-ui-thermometer-Dvk3S7jR.js} +132 -120
- package/dist/vue-ui-timer-BUuk2p4C.cjs +64 -0
- package/dist/{vue-ui-timer-CD7gFOjN.js → vue-ui-timer-D0tGj6hK.js} +94 -82
- package/dist/{vue-ui-tiremarks-44pO3jx1.js → vue-ui-tiremarks-C2G0Sem6.js} +104 -94
- package/dist/vue-ui-tiremarks-Csng3xWI.cjs +1 -0
- package/dist/{vue-ui-treemap-CyOUM3-P.js → vue-ui-treemap-3iutCx61.js} +336 -332
- package/dist/vue-ui-treemap-CJjATl47.cjs +1 -0
- package/dist/{vue-ui-vertical-bar-wngOp0Zc.js → vue-ui-vertical-bar-DZz_tUTV.js} +188 -176
- package/dist/vue-ui-vertical-bar-DtuEIajX.cjs +4 -0
- package/dist/vue-ui-waffle-B-Uf38ml.cjs +1 -0
- package/dist/{vue-ui-waffle-CuN7i0ci.js → vue-ui-waffle-Cr4FGNwb.js} +140 -136
- package/dist/vue-ui-wheel-Bijmdum9.cjs +1 -0
- package/dist/{vue-ui-wheel-B_gLugLx.js → vue-ui-wheel-Da4DH062.js} +100 -88
- package/dist/{vue-ui-word-cloud-DKHGS0my.js → vue-ui-word-cloud-C3o4JBD2.js} +132 -120
- package/dist/vue-ui-word-cloud-Cjyh1I0J.cjs +1 -0
- package/dist/{vue-ui-xy-BK9R8MrJ.js → vue-ui-xy-BX_3ddck.js} +139 -127
- package/dist/{vue-ui-xy-canvas-DaT4HoWD.js → vue-ui-xy-canvas-DqzVCtbZ.js} +231 -227
- package/dist/{vue-ui-xy-canvas-gDaRsnBI.cjs → vue-ui-xy-canvas-ObtOgMlV.cjs} +2 -2
- package/dist/vue-ui-xy-gClSSwyU.cjs +3 -0
- package/package.json +1 -1
- package/dist/index-o6tXRhOr.cjs +0 -9
- package/dist/vue-ui-3d-bar-zKUnnMOY.cjs +0 -19
- package/dist/vue-ui-age-pyramid-Bg8Bexac.cjs +0 -1
- package/dist/vue-ui-bullet-DqM9h81O.cjs +0 -34
- package/dist/vue-ui-candlestick-C0PkovyK.cjs +0 -2
- package/dist/vue-ui-carousel-table-DbXCpYUm.cjs +0 -1
- package/dist/vue-ui-chestnut-Be4Lagdr.cjs +0 -6
- package/dist/vue-ui-donut-B7orj3vV.cjs +0 -1
- package/dist/vue-ui-donut-evolution-BmTzjKlH.cjs +0 -1
- package/dist/vue-ui-dumbbell-5yfcA-Of.cjs +0 -9
- package/dist/vue-ui-flow-Bar7LG9t.cjs +0 -1
- package/dist/vue-ui-funnel-lxHehCUr.cjs +0 -1
- package/dist/vue-ui-galaxy-B8zbGikp.cjs +0 -1
- package/dist/vue-ui-gauge-Bz1nzveF.cjs +0 -1
- package/dist/vue-ui-gizmo-C9XQ-7Sj.cjs +0 -1
- package/dist/vue-ui-heatmap-BW6dmp8j.cjs +0 -1
- package/dist/vue-ui-history-plot-Mp0zDeR-.cjs +0 -1
- package/dist/vue-ui-kpi-D8hh3p8f.cjs +0 -1
- package/dist/vue-ui-molecule-RkdIX-iW.cjs +0 -1
- package/dist/vue-ui-mood-radar-DLpDoq0G.cjs +0 -1
- package/dist/vue-ui-nested-donuts-BO249_PV.cjs +0 -17
- package/dist/vue-ui-onion-BjNQgHPX.cjs +0 -5
- package/dist/vue-ui-parallel-coordinate-plot-CoeVi-98.cjs +0 -8
- package/dist/vue-ui-quadrant-D701bdNz.cjs +0 -1
- package/dist/vue-ui-quick-chart-CRNEkxoM.cjs +0 -15
- package/dist/vue-ui-radar-3W9NRklj.cjs +0 -1
- package/dist/vue-ui-rating-DeuaL_cU.cjs +0 -1
- package/dist/vue-ui-relation-circle-B8JtK-JM.cjs +0 -1
- package/dist/vue-ui-rings-CZCTLghE.cjs +0 -2
- package/dist/vue-ui-scatter-DlA0xU5U.cjs +0 -1
- package/dist/vue-ui-smiley-BISneB7t.cjs +0 -2
- package/dist/vue-ui-spark-trend-lMzod-5S.cjs +0 -1
- package/dist/vue-ui-sparkbar-DcdDLl8l.cjs +0 -1
- package/dist/vue-ui-sparkgauge-BhwNRzrD.cjs +0 -1
- package/dist/vue-ui-sparkhistogram-D00ahrgs.cjs +0 -1
- package/dist/vue-ui-sparkline-CY92qVz0.cjs +0 -1
- package/dist/vue-ui-sparkstackbar-BjKL_6dq.cjs +0 -1
- package/dist/vue-ui-stackbar-T4VBFpDo.cjs +0 -6
- package/dist/vue-ui-strip-plot-CtjbMamo.cjs +0 -1
- package/dist/vue-ui-table-heatmap-CPn-jC0n.cjs +0 -1
- package/dist/vue-ui-table-sparkline-CIDuWZZs.cjs +0 -1
- package/dist/vue-ui-thermometer-CMvk1D7J.cjs +0 -1
- package/dist/vue-ui-timer-CUHgN89f.cjs +0 -64
- package/dist/vue-ui-tiremarks-w_gxHFeB.cjs +0 -1
- package/dist/vue-ui-treemap-CFhTEaxa.cjs +0 -1
- package/dist/vue-ui-vertical-bar-C51RKLB8.cjs +0 -4
- package/dist/vue-ui-waffle-CXZc4t27.cjs +0 -1
- package/dist/vue-ui-wheel-u9Vc7ZTZ.cjs +0 -1
- package/dist/vue-ui-word-cloud-tSXyXvd6.cjs +0 -1
- package/dist/vue-ui-xy-bX3g4COC.cjs +0 -3
|
@@ -1,22 +1,22 @@
|
|
|
1
|
-
import { ref as i, computed as x,
|
|
2
|
-
import { u as
|
|
3
|
-
import { d 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
|
|
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 D, nextTick as ce, onBeforeUnmount as Oa, openBlock as z, createElementBlock as K, normalizeStyle as Y, normalizeClass as Pa, unref as S, createBlock as E, createCommentVNode as _, createSlots as Ra, withCtx as b, renderSlot as L, normalizeProps as B, guardReactiveProps as V, createElementVNode as Q, createVNode as Fa, toDisplayString as ta, createTextVNode as Ea } from "vue";
|
|
2
|
+
import { u as Na, c as Aa, t as Da, a as _a, p as H, C as de, b as Ha, D as we, i as ee, f as ae, Y as Ua, J as Wa, d as la, a2 as Xa, o as Ya, e as Ba, x as oa, y as Va, q as Za, r as Ga, s as te, l as ja } from "./index-B9RAElpI.js";
|
|
3
|
+
import { d as qa, c as Ja, a as ra, t as Ka, l as k, r as ze, b as N, p as ua, u as Qa } from "./useResponsive-CoxXLe23.js";
|
|
4
|
+
import { _ as et } from "./Tooltip-DDJ2Wvjy.js";
|
|
5
|
+
import { L as at } from "./Legend-f52bnttJ.js";
|
|
6
|
+
import { _ as tt } from "./Title-zZtEcB9F.js";
|
|
7
|
+
import { S as lt } from "./Slicer-Duke9qno.js";
|
|
8
|
+
import { u as ot, U as rt } from "./usePrinter-CwTAwqtF.js";
|
|
9
|
+
import ut from "./vue-ui-accordion-rNA598L6.js";
|
|
10
|
+
import { D as st } from "./DataTable-CFUKU8PU.js";
|
|
11
|
+
import nt from "./vue-ui-skeleton-DVYD_VSe.js";
|
|
12
|
+
import { u as sa } from "./useNestedProp-DuruL3Nt.js";
|
|
13
|
+
import { P as it } from "./PenAndPaper-Dx24BtRW.js";
|
|
14
|
+
import { u as vt } from "./useUserOptionState-BIvW1Kz7.js";
|
|
15
|
+
import { _ as ct } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
16
|
+
const dt = ["id"], ht = ["onClick"], yt = {
|
|
17
17
|
key: 2,
|
|
18
18
|
class: "vue-data-ui-watermark"
|
|
19
|
-
},
|
|
19
|
+
}, ft = ["innerHTML"], gt = {
|
|
20
20
|
__name: "vue-ui-xy-canvas",
|
|
21
21
|
props: {
|
|
22
22
|
dataset: {
|
|
@@ -33,31 +33,35 @@ const vl = ["id"], cl = ["onClick"], dl = {
|
|
|
33
33
|
}
|
|
34
34
|
},
|
|
35
35
|
emits: ["selectLegend"],
|
|
36
|
-
setup(Se, { expose:
|
|
37
|
-
const f = Se, { vue_ui_xy_canvas:
|
|
36
|
+
setup(Se, { expose: na, emit: ia }) {
|
|
37
|
+
const f = Se, { vue_ui_xy_canvas: va } = Na(), he = i(Aa()), Z = i(null), M = i(null), G = i(null), s = i(null), y = i(1), P = i(1), le = i(!1), d = i(null), oe = i(""), $e = i(null), $ = i([]), U = i(1), A = i(!0), T = i(!0), ye = i(null), Ie = i(0), Me = i(0), re = i(!1), Te = i(null), Oe = i(null), Pe = i(null), Re = i(null), fe = i(0), ge = i(0), pe = i(0), me = x(() => !!f.dataset && f.dataset.length), ca = Ta();
|
|
38
|
+
aa(() => {
|
|
39
|
+
ca["chart-background"] && console.warn("VueUiXyCanvas does not support the #chart-background slot.");
|
|
40
|
+
});
|
|
41
|
+
const a = x({
|
|
38
42
|
get: () => Ne(),
|
|
39
43
|
set: (e) => e
|
|
40
|
-
}), { userOptionsVisible: be, setUserOptionsVisibility: Fe, keepUserOptionState: Ee } =
|
|
44
|
+
}), { userOptionsVisible: be, setUserOptionsVisibility: Fe, keepUserOptionState: Ee } = vt({ config: a.value });
|
|
41
45
|
function Ne() {
|
|
42
|
-
const e =
|
|
46
|
+
const e = sa({
|
|
43
47
|
userConfig: f.config,
|
|
44
|
-
defaultConfig:
|
|
48
|
+
defaultConfig: va
|
|
45
49
|
});
|
|
46
|
-
let
|
|
47
|
-
return e.theme ?
|
|
48
|
-
...
|
|
49
|
-
userConfig:
|
|
50
|
+
let t = {};
|
|
51
|
+
return e.theme ? t = {
|
|
52
|
+
...sa({
|
|
53
|
+
userConfig: Da.vue_ui_xy_canvas[e.theme] || f.config,
|
|
50
54
|
defaultConfig: e
|
|
51
55
|
}),
|
|
52
|
-
customPalette:
|
|
53
|
-
} :
|
|
56
|
+
customPalette: _a[e.theme] || H
|
|
57
|
+
} : t = e, f.config && de(f.config, "style.chart.scale.min") ? t.style.chart.scale.min = f.config.style.chart.scale.min : t.style.chart.scale.min = null, f.config && de(f.config, "style.chart.scale.max") ? t.style.chart.scale.max = f.config.style.chart.scale.max : t.style.chart.scale.max = null, f.config && de(f.config, "style.chart.zoom.startIndex") ? t.style.chart.zoom.startIndex = f.config.style.chart.zoom.startIndex : t.style.chart.zoom.startIndex = null, f.config && de(f.config, "style.chart.zoom.endIndex") ? t.style.chart.zoom.endIndex = f.config.style.chart.zoom.endIndex : t.style.chart.zoom.endIndex = null, t;
|
|
54
58
|
}
|
|
55
59
|
D(() => f.config, (e) => {
|
|
56
60
|
a.value = Ne(), be.value = !a.value.showOnChartHover, Le(), fe.value += 1, ge.value += 1, pe.value += 1;
|
|
57
61
|
}, { deep: !0 }), D(() => f.dataset, () => {
|
|
58
62
|
Le(), fe.value += 1, ge.value += 1, pe.value += 1;
|
|
59
63
|
}, { deep: !0 });
|
|
60
|
-
const Ae = i(a.value.style.chart.aspectRatio), { isPrinting: De, isImaging: _e, generatePdf: He, generateImage: Ue } =
|
|
64
|
+
const Ae = i(a.value.style.chart.aspectRatio), { isPrinting: De, isImaging: _e, generatePdf: He, generateImage: Ue } = ot({
|
|
61
65
|
elementId: `xy_canvas_${he.value}`,
|
|
62
66
|
fileName: a.value.style.chart.title.text || "vue-ui-xy-canvas"
|
|
63
67
|
}), u = i({
|
|
@@ -66,10 +70,10 @@ const vl = ["id"], cl = ["onClick"], dl = {
|
|
|
66
70
|
stacked: a.value.style.chart.stacked,
|
|
67
71
|
showTooltip: a.value.style.chart.tooltip.show
|
|
68
72
|
});
|
|
69
|
-
function
|
|
73
|
+
function da(e) {
|
|
70
74
|
re.value = e, Me.value += 1;
|
|
71
75
|
}
|
|
72
|
-
const We = x(() =>
|
|
76
|
+
const We = x(() => Ha(a.value.customPalette)), I = x(() => W.value ? Math.max(...W.value.filter((e, t) => !$.value.includes(e.absoluteIndex)).map((e) => e.series.length)) : 0), l = x(() => {
|
|
73
77
|
const e = y.value - y.value * (a.value.style.chart.paddingProportions.left + a.value.style.chart.paddingProportions.right);
|
|
74
78
|
return {
|
|
75
79
|
canvasWidth: y.value,
|
|
@@ -83,37 +87,37 @@ const vl = ["id"], cl = ["onClick"], dl = {
|
|
|
83
87
|
slot: e / (r.value.end - r.value.start)
|
|
84
88
|
};
|
|
85
89
|
});
|
|
86
|
-
function Xe(e,
|
|
87
|
-
return e /
|
|
90
|
+
function Xe(e, t) {
|
|
91
|
+
return e / t;
|
|
88
92
|
}
|
|
89
|
-
function
|
|
90
|
-
return
|
|
93
|
+
function ha({ hasAutoScale: e, series: t, min: o, max: v, scale: c, yOffset: g, individualHeight: n, stackIndex: p = null }) {
|
|
94
|
+
return t.map((w, Ce) => {
|
|
91
95
|
const O = c.min < 0 ? Math.abs(c.min) : 0, R = Xe(w + O, O + c.max);
|
|
92
96
|
let F, j;
|
|
93
97
|
e && (F = Math.abs(c.min), j = Xe(w + F, c.max + F));
|
|
94
98
|
let q = 0;
|
|
95
|
-
return p === null ? q =
|
|
96
|
-
x:
|
|
99
|
+
return p === null ? q = l.value.bottom - l.value.height * (e ? j : R) : q = l.value.bottom - g - n * (e ? j : R), {
|
|
100
|
+
x: l.value.left + l.value.slot * Ce + l.value.slot / 2,
|
|
97
101
|
y: q,
|
|
98
102
|
value: w
|
|
99
103
|
};
|
|
100
104
|
});
|
|
101
105
|
}
|
|
102
106
|
const m = x(() => {
|
|
103
|
-
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))),
|
|
104
|
-
y:
|
|
105
|
-
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))), t = 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, t === e ? e + 1 < 0 ? 0 : e + 1 : t < 0 ? 0 : t, a.value.style.chart.scale.ticks), v = o.min < 0 ? Math.abs(o.min) : 0, c = l.value.bottom - l.value.height * (v / (o.max + v)), g = o.ticks.map((n) => ({
|
|
108
|
+
y: l.value.bottom - l.value.height * ((n + v) / (o.max + v)),
|
|
109
|
+
x: l.value.left - 8,
|
|
106
110
|
value: n
|
|
107
111
|
}));
|
|
108
112
|
return {
|
|
109
113
|
absoluteMin: v,
|
|
110
|
-
max:
|
|
114
|
+
max: t,
|
|
111
115
|
min: e,
|
|
112
116
|
scale: o,
|
|
113
117
|
yLabels: g,
|
|
114
118
|
zero: c
|
|
115
119
|
};
|
|
116
|
-
}),
|
|
120
|
+
}), ya = x(() => h.value.map((e) => `
|
|
117
121
|
<div style="display:flex;flex-direction:row;gap:6px;align-items:center;">
|
|
118
122
|
<svg viewBox="0 0 10 10" height="12" width="12">
|
|
119
123
|
<circle cx="5" cy="5" r="5" fill="${e.color}"/>
|
|
@@ -131,22 +135,22 @@ const vl = ["id"], cl = ["onClick"], dl = {
|
|
|
131
135
|
{ datapoint: e, seriesIndex: d.value }
|
|
132
136
|
)}</span>
|
|
133
137
|
</div>
|
|
134
|
-
`)), W = x(() => f.dataset.map((e,
|
|
138
|
+
`)), W = x(() => f.dataset.map((e, t) => ({
|
|
135
139
|
...e,
|
|
136
|
-
series:
|
|
137
|
-
data:
|
|
140
|
+
series: Ua({
|
|
141
|
+
data: Wa(e.series),
|
|
138
142
|
threshold: a.value.downsample.threshold
|
|
139
143
|
}),
|
|
140
|
-
absoluteIndex:
|
|
141
|
-
color: la(e.color || We.value[
|
|
144
|
+
absoluteIndex: t,
|
|
145
|
+
color: la(e.color || We.value[t] || H[t] || H[t % H.length])
|
|
142
146
|
})));
|
|
143
147
|
D(I, (e) => {
|
|
144
148
|
e && Ye();
|
|
145
149
|
});
|
|
146
|
-
const h = x(() =>
|
|
150
|
+
const h = x(() => Xa(W.value.filter((e, t) => !$.value.includes(e.absoluteIndex))).map((e, t) => ({
|
|
147
151
|
...e,
|
|
148
152
|
series: e.series.slice(r.value.start, r.value.end)
|
|
149
|
-
})).map((e,
|
|
153
|
+
})).map((e, t) => {
|
|
150
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;
|
|
151
155
|
o === v && (o = o >= 0 ? v - 1 : o, v = v >= 0 ? v : o + 1);
|
|
152
156
|
const g = {
|
|
@@ -156,14 +160,14 @@ const vl = ["id"], cl = ["onClick"], dl = {
|
|
|
156
160
|
}, n = e.scaleSteps || a.value.style.chart.scale.ticks;
|
|
157
161
|
let p;
|
|
158
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);
|
|
159
|
-
const w = u.value.stacked ?
|
|
163
|
+
const w = u.value.stacked ? l.value.height * (1 - e.cumulatedStackRatio) : 0, Ce = u.value.stacked ? l.value.height / a.value.style.chart.stackGap : 0, O = u.value.stacked ? l.value.height * e.stackRatio - Ce : l.value.height, R = p.min < 0 ? Math.abs(p.min) : 0;
|
|
160
164
|
let F;
|
|
161
|
-
e.autoScaling && u.value.stacked && v <= 0 ? F =
|
|
162
|
-
const j = p.ticks.map((J,
|
|
163
|
-
y:
|
|
164
|
-
x:
|
|
165
|
+
e.autoScaling && u.value.stacked && v <= 0 ? F = l.value.bottom - w - O : F = l.value.bottom - w - O * (R / (p.max + R));
|
|
166
|
+
const j = p.ticks.map((J, Ma) => ({
|
|
167
|
+
y: l.value.bottom - w - O * (Ma / (p.ticks.length - 1)),
|
|
168
|
+
x: l.value.left - 8,
|
|
165
169
|
value: J
|
|
166
|
-
})), q =
|
|
170
|
+
})), q = ha({
|
|
167
171
|
hasAutoScale: u.value.stacked && e.autoScaling,
|
|
168
172
|
series: e.series,
|
|
169
173
|
min: u.value.stacked ? o : m.value.min,
|
|
@@ -171,7 +175,7 @@ const vl = ["id"], cl = ["onClick"], dl = {
|
|
|
171
175
|
scale: u.value.stacked ? p : m.value.scale,
|
|
172
176
|
yOffset: w,
|
|
173
177
|
individualHeight: O,
|
|
174
|
-
stackIndex: u.value.stacked ?
|
|
178
|
+
stackIndex: u.value.stacked ? t : null
|
|
175
179
|
});
|
|
176
180
|
return {
|
|
177
181
|
...e,
|
|
@@ -194,36 +198,36 @@ const vl = ["id"], cl = ["onClick"], dl = {
|
|
|
194
198
|
}
|
|
195
199
|
const X = i(null);
|
|
196
200
|
async function Be() {
|
|
197
|
-
(a.value.style.chart.zoom.startIndex !== null || a.value.style.chart.zoom.endIndex !== null) && X.value ? (a.value.style.chart.zoom.startIndex !== null && (await ce(), await ce(), X.value && X.value.setStartValue(a.value.style.chart.zoom.startIndex)), a.value.style.chart.zoom.endIndex !== null && (await ce(), await ce(), X.value && X.value.setEndValue(
|
|
201
|
+
(a.value.style.chart.zoom.startIndex !== null || a.value.style.chart.zoom.endIndex !== null) && X.value ? (a.value.style.chart.zoom.startIndex !== null && (await ce(), await ce(), X.value && X.value.setStartValue(a.value.style.chart.zoom.startIndex)), a.value.style.chart.zoom.endIndex !== null && (await ce(), await ce(), X.value && X.value.setEndValue(fa(a.value.style.chart.zoom.endIndex + 1)))) : (r.value = {
|
|
198
202
|
start: 0,
|
|
199
203
|
end: I.value
|
|
200
204
|
}, Ie.value += 1);
|
|
201
205
|
}
|
|
202
|
-
function
|
|
203
|
-
const
|
|
204
|
-
return e >
|
|
206
|
+
function fa(e) {
|
|
207
|
+
const t = I.value;
|
|
208
|
+
return e > t ? t : 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;
|
|
205
209
|
}
|
|
206
|
-
const
|
|
207
|
-
function
|
|
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
|
+
function pa() {
|
|
208
212
|
if (!M.value)
|
|
209
213
|
return;
|
|
210
|
-
const e = G.value.offsetWidth,
|
|
211
|
-
M.value.width = e * U.value * 2, M.value.height =
|
|
214
|
+
const e = G.value.offsetWidth, t = G.value.offsetHeight;
|
|
215
|
+
M.value.width = e * U.value * 2, M.value.height = t * U.value * 2, y.value = e * U.value * 2, P.value = t * U.value * 2, s.value.scale(U.value, U.value), xe();
|
|
212
216
|
}
|
|
213
|
-
function
|
|
214
|
-
if (s.value.clearRect(0, 0, 1e4, 1e4), s.value.fillStyle = a.value.style.chart.backgroundColor, s.value.fillRect(0, 0,
|
|
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, l.value.canvasWidth, l.value.canvasHeight), u.value.stacked)
|
|
215
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) => {
|
|
216
|
-
for (let
|
|
220
|
+
for (let t = 0; t < r.value.end - r.value.start + 1; t += 1)
|
|
217
221
|
k(
|
|
218
222
|
s.value,
|
|
219
223
|
[
|
|
220
224
|
{
|
|
221
|
-
x:
|
|
222
|
-
y:
|
|
225
|
+
x: l.value.left + l.value.slot * t,
|
|
226
|
+
y: l.value.bottom - e.yOffset - e.individualHeight
|
|
223
227
|
},
|
|
224
228
|
{
|
|
225
|
-
x:
|
|
226
|
-
y:
|
|
229
|
+
x: l.value.left + l.value.slot * t,
|
|
230
|
+
y: l.value.bottom - e.yOffset
|
|
227
231
|
}
|
|
228
232
|
],
|
|
229
233
|
{
|
|
@@ -231,17 +235,17 @@ const vl = ["id"], cl = ["onClick"], dl = {
|
|
|
231
235
|
}
|
|
232
236
|
);
|
|
233
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) => {
|
|
234
|
-
for (let
|
|
235
|
-
|
|
238
|
+
for (let t = r.value.start; t < r.value.end; t += 1)
|
|
239
|
+
t % Math.floor((r.value.end - r.value.start) / a.value.style.chart.grid.y.timeLabels.modulo) === 0 && k(
|
|
236
240
|
s.value,
|
|
237
241
|
[
|
|
238
242
|
{
|
|
239
|
-
x:
|
|
240
|
-
y:
|
|
243
|
+
x: l.value.left + l.value.slot * (t - r.value.start) + l.value.slot / 2,
|
|
244
|
+
y: l.value.bottom - e.yOffset - e.individualHeight
|
|
241
245
|
},
|
|
242
246
|
{
|
|
243
|
-
x:
|
|
244
|
-
y:
|
|
247
|
+
x: l.value.left + l.value.slot * (t - r.value.start) + l.value.slot / 2,
|
|
248
|
+
y: l.value.bottom - e.yOffset
|
|
245
249
|
}
|
|
246
250
|
],
|
|
247
251
|
{
|
|
@@ -249,28 +253,28 @@ const vl = ["id"], cl = ["onClick"], dl = {
|
|
|
249
253
|
}
|
|
250
254
|
);
|
|
251
255
|
}), a.value.style.chart.grid.x.horizontalLines.show && (a.value.style.chart.grid.x.horizontalLines.alternate ? h.value.forEach((e) => {
|
|
252
|
-
e.localYLabels.forEach((
|
|
256
|
+
e.localYLabels.forEach((t, o) => {
|
|
253
257
|
o < e.localYLabels.length - 1 && ze(
|
|
254
258
|
s.value,
|
|
255
259
|
[
|
|
256
|
-
{ x:
|
|
257
|
-
{ x:
|
|
258
|
-
{ x:
|
|
259
|
-
{ x:
|
|
260
|
+
{ x: l.value.left, y: t.y },
|
|
261
|
+
{ x: l.value.right, y: t.y },
|
|
262
|
+
{ x: l.value.right, y: e.localYLabels[o + 1].y },
|
|
263
|
+
{ x: l.value.left, y: e.localYLabels[o + 1].y }
|
|
260
264
|
],
|
|
261
265
|
{
|
|
262
|
-
fillColor: o % 2 === 0 ? "transparent" :
|
|
266
|
+
fillColor: o % 2 === 0 ? "transparent" : te(a.value.style.chart.grid.x.horizontalLines.color, a.value.style.chart.grid.x.horizontalLines.opacity),
|
|
263
267
|
strokeColor: "transparent"
|
|
264
268
|
}
|
|
265
269
|
);
|
|
266
270
|
});
|
|
267
271
|
}) : h.value.forEach((e) => {
|
|
268
|
-
e.localYLabels.slice(r.value.start, r.value.end).forEach((
|
|
272
|
+
e.localYLabels.slice(r.value.start, r.value.end).forEach((t) => {
|
|
269
273
|
k(
|
|
270
274
|
s.value,
|
|
271
275
|
[
|
|
272
|
-
{ x:
|
|
273
|
-
{ x:
|
|
276
|
+
{ x: l.value.left, y: t.y },
|
|
277
|
+
{ x: l.value.right, y: t.y }
|
|
274
278
|
],
|
|
275
279
|
{
|
|
276
280
|
color: a.value.style.chart.grid.x.horizontalLines.color
|
|
@@ -281,8 +285,8 @@ const vl = ["id"], cl = ["onClick"], dl = {
|
|
|
281
285
|
k(
|
|
282
286
|
s.value,
|
|
283
287
|
[
|
|
284
|
-
{ x:
|
|
285
|
-
{ x:
|
|
288
|
+
{ x: l.value.left, y: e.localZero },
|
|
289
|
+
{ x: l.value.right, y: e.localZero }
|
|
286
290
|
],
|
|
287
291
|
{
|
|
288
292
|
color: a.value.style.chart.grid.zeroLine.color,
|
|
@@ -293,8 +297,8 @@ const vl = ["id"], cl = ["onClick"], dl = {
|
|
|
293
297
|
k(
|
|
294
298
|
s.value,
|
|
295
299
|
[
|
|
296
|
-
{ x:
|
|
297
|
-
{ x:
|
|
300
|
+
{ x: l.value.left, y: l.value.bottom - e.yOffset },
|
|
301
|
+
{ x: l.value.left, y: l.value.bottom - e.yOffset - e.individualHeight }
|
|
298
302
|
],
|
|
299
303
|
{
|
|
300
304
|
color: e.color
|
|
@@ -302,28 +306,28 @@ const vl = ["id"], cl = ["onClick"], dl = {
|
|
|
302
306
|
), k(
|
|
303
307
|
s.value,
|
|
304
308
|
[
|
|
305
|
-
{ x:
|
|
306
|
-
{ x:
|
|
309
|
+
{ x: l.value.right, y: l.value.bottom - e.yOffset },
|
|
310
|
+
{ x: l.value.right, y: l.value.bottom - e.yOffset - e.individualHeight }
|
|
307
311
|
],
|
|
308
312
|
{
|
|
309
313
|
color: e.color
|
|
310
314
|
}
|
|
311
|
-
), e.localYLabels.forEach((
|
|
315
|
+
), e.localYLabels.forEach((t, o) => {
|
|
312
316
|
N(
|
|
313
317
|
s.value,
|
|
314
318
|
ee(
|
|
315
319
|
a.value.style.chart.dataLabels.formatter,
|
|
316
|
-
|
|
320
|
+
t.value,
|
|
317
321
|
ae({
|
|
318
322
|
p: e.prefix || a.value.style.chart.grid.y.axisLabels.prefix || "",
|
|
319
|
-
v:
|
|
323
|
+
v: t.value,
|
|
320
324
|
s: e.suffix || a.value.style.chart.grid.y.axisLabels.suffix || "",
|
|
321
325
|
r: e.rounding || a.value.style.chart.grid.y.axisLabels.rounding || 0
|
|
322
326
|
}),
|
|
323
|
-
{ datapoint:
|
|
327
|
+
{ datapoint: t, seriesIndex: o }
|
|
324
328
|
),
|
|
325
|
-
|
|
326
|
-
|
|
329
|
+
t.x + a.value.style.chart.grid.y.axisLabels.offsetX,
|
|
330
|
+
t.y,
|
|
327
331
|
{
|
|
328
332
|
align: "right",
|
|
329
333
|
font: `${Math.round(y.value / 40 * a.value.style.chart.grid.y.axisLabels.fontSizeRatio)}px ${a.value.style.fontFamily}`,
|
|
@@ -336,7 +340,7 @@ const vl = ["id"], cl = ["onClick"], dl = {
|
|
|
336
340
|
s.value,
|
|
337
341
|
e.name,
|
|
338
342
|
y.value / 35,
|
|
339
|
-
|
|
343
|
+
l.value.bottom - e.yOffset - e.individualHeight / 2,
|
|
340
344
|
{
|
|
341
345
|
align: "center",
|
|
342
346
|
rotation: -90,
|
|
@@ -351,8 +355,8 @@ const vl = ["id"], cl = ["onClick"], dl = {
|
|
|
351
355
|
k(
|
|
352
356
|
s.value,
|
|
353
357
|
[
|
|
354
|
-
{ x:
|
|
355
|
-
{ x:
|
|
358
|
+
{ x: l.value.left + l.value.slot * e, y: l.value.top },
|
|
359
|
+
{ x: l.value.left + l.value.slot * e, y: l.value.bottom }
|
|
356
360
|
],
|
|
357
361
|
{
|
|
358
362
|
color: a.value.style.chart.grid.y.verticalLines.color
|
|
@@ -363,24 +367,24 @@ const vl = ["id"], cl = ["onClick"], dl = {
|
|
|
363
367
|
e % Math.floor((r.value.end - r.value.start) / a.value.style.chart.grid.y.timeLabels.modulo) === 0 && k(
|
|
364
368
|
s.value,
|
|
365
369
|
[
|
|
366
|
-
{ x:
|
|
367
|
-
{ x:
|
|
370
|
+
{ x: l.value.left + l.value.slot * (e - r.value.start) + l.value.slot / 2, y: l.value.top },
|
|
371
|
+
{ x: l.value.left + l.value.slot * (e - r.value.start) + l.value.slot / 2, y: l.value.bottom }
|
|
368
372
|
],
|
|
369
373
|
{
|
|
370
374
|
color: a.value.style.chart.grid.y.verticalLines.color
|
|
371
375
|
}
|
|
372
376
|
);
|
|
373
|
-
a.value.style.chart.grid.x.horizontalLines.show && (a.value.style.chart.grid.x.horizontalLines.alternate ? m.value.yLabels.forEach((e,
|
|
374
|
-
|
|
377
|
+
a.value.style.chart.grid.x.horizontalLines.show && (a.value.style.chart.grid.x.horizontalLines.alternate ? m.value.yLabels.forEach((e, t) => {
|
|
378
|
+
t < m.value.yLabels.length - 1 && ze(
|
|
375
379
|
s.value,
|
|
376
380
|
[
|
|
377
|
-
{ x:
|
|
378
|
-
{ x:
|
|
379
|
-
{ x:
|
|
380
|
-
{ x:
|
|
381
|
+
{ x: l.value.left, y: e.y },
|
|
382
|
+
{ x: l.value.right, y: e.y },
|
|
383
|
+
{ x: l.value.right, y: m.value.yLabels[t + 1].y },
|
|
384
|
+
{ x: l.value.left, y: m.value.yLabels[t + 1].y }
|
|
381
385
|
],
|
|
382
386
|
{
|
|
383
|
-
fillColor:
|
|
387
|
+
fillColor: t % 2 === 0 ? "transparent" : te(a.value.style.chart.grid.x.horizontalLines.color, a.value.style.chart.grid.x.horizontalLines.opacity),
|
|
384
388
|
strokeColor: "transparent"
|
|
385
389
|
}
|
|
386
390
|
);
|
|
@@ -388,8 +392,8 @@ const vl = ["id"], cl = ["onClick"], dl = {
|
|
|
388
392
|
k(
|
|
389
393
|
s.value,
|
|
390
394
|
[
|
|
391
|
-
{ x:
|
|
392
|
-
{ x:
|
|
395
|
+
{ x: l.value.left, y: e.y },
|
|
396
|
+
{ x: l.value.right, y: e.y }
|
|
393
397
|
],
|
|
394
398
|
{
|
|
395
399
|
color: a.value.style.chart.grid.x.horizontalLines.color
|
|
@@ -398,8 +402,8 @@ const vl = ["id"], cl = ["onClick"], dl = {
|
|
|
398
402
|
})), a.value.style.chart.grid.y.showAxis && k(
|
|
399
403
|
s.value,
|
|
400
404
|
[
|
|
401
|
-
{ x:
|
|
402
|
-
{ x:
|
|
405
|
+
{ x: l.value.left, y: l.value.top },
|
|
406
|
+
{ x: l.value.left, y: l.value.bottom }
|
|
403
407
|
],
|
|
404
408
|
{
|
|
405
409
|
color: a.value.style.chart.grid.y.axisColor,
|
|
@@ -408,8 +412,8 @@ const vl = ["id"], cl = ["onClick"], dl = {
|
|
|
408
412
|
), a.value.style.chart.grid.x.showAxis && k(
|
|
409
413
|
s.value,
|
|
410
414
|
[
|
|
411
|
-
{ x:
|
|
412
|
-
{ x:
|
|
415
|
+
{ x: l.value.left, y: l.value.bottom },
|
|
416
|
+
{ x: l.value.right, y: l.value.bottom }
|
|
413
417
|
],
|
|
414
418
|
{
|
|
415
419
|
color: a.value.style.chart.grid.x.axisColor,
|
|
@@ -418,14 +422,14 @@ const vl = ["id"], cl = ["onClick"], dl = {
|
|
|
418
422
|
), a.value.style.chart.grid.zeroLine.show && k(
|
|
419
423
|
s.value,
|
|
420
424
|
[
|
|
421
|
-
{ x:
|
|
422
|
-
{ x:
|
|
425
|
+
{ x: l.value.left, y: m.value.zero },
|
|
426
|
+
{ x: l.value.right, y: m.value.zero }
|
|
423
427
|
],
|
|
424
428
|
{
|
|
425
429
|
color: a.value.style.chart.grid.zeroLine.color,
|
|
426
430
|
lineDash: a.value.style.chart.grid.zeroLine.dashed ? [10, 10] : [0, 0]
|
|
427
431
|
}
|
|
428
|
-
), a.value.style.chart.grid.y.axisLabels.show && m.value.yLabels.forEach((e,
|
|
432
|
+
), a.value.style.chart.grid.y.axisLabels.show && m.value.yLabels.forEach((e, t) => {
|
|
429
433
|
N(
|
|
430
434
|
s.value,
|
|
431
435
|
ee(
|
|
@@ -437,7 +441,7 @@ const vl = ["id"], cl = ["onClick"], dl = {
|
|
|
437
441
|
s: a.value.style.chart.grid.y.axisLabels.suffix || "",
|
|
438
442
|
r: a.value.style.chart.grid.y.axisLabels.rounding || 0
|
|
439
443
|
}),
|
|
440
|
-
{ datapoint: e, seriesIndex:
|
|
444
|
+
{ datapoint: e, seriesIndex: t }
|
|
441
445
|
),
|
|
442
446
|
e.x + a.value.style.chart.grid.y.axisLabels.offsetX,
|
|
443
447
|
e.y,
|
|
@@ -453,7 +457,7 @@ const vl = ["id"], cl = ["onClick"], dl = {
|
|
|
453
457
|
s.value,
|
|
454
458
|
a.value.style.chart.grid.y.axisName,
|
|
455
459
|
y.value - y.value / 40 * a.value.style.chart.grid.y.axisLabels.fontSizeRatio * 1.2,
|
|
456
|
-
|
|
460
|
+
l.value.bottom - l.value.height / 2,
|
|
457
461
|
{
|
|
458
462
|
font: `${Math.round(y.value / 40 * a.value.style.chart.grid.y.axisLabels.fontSizeRatio)}px ${a.value.style.fontFamily}`,
|
|
459
463
|
color: a.value.style.chart.color,
|
|
@@ -472,12 +476,12 @@ const vl = ["id"], cl = ["onClick"], dl = {
|
|
|
472
476
|
}
|
|
473
477
|
);
|
|
474
478
|
}
|
|
475
|
-
function
|
|
476
|
-
for (let
|
|
477
|
-
const o = (d.value ===
|
|
478
|
-
|
|
479
|
+
function ba(e) {
|
|
480
|
+
for (let t = 0; t < e.coordinatesLine.length; t += 1) {
|
|
481
|
+
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;
|
|
482
|
+
ra(
|
|
479
483
|
s.value,
|
|
480
|
-
{ x: e.coordinatesLine[
|
|
484
|
+
{ x: e.coordinatesLine[t].x, y: e.coordinatesLine[t].y },
|
|
481
485
|
o,
|
|
482
486
|
{
|
|
483
487
|
color: a.value.style.chart.backgroundColor,
|
|
@@ -487,23 +491,23 @@ const vl = ["id"], cl = ["onClick"], dl = {
|
|
|
487
491
|
);
|
|
488
492
|
}
|
|
489
493
|
}
|
|
490
|
-
function
|
|
491
|
-
for (let
|
|
494
|
+
function xa(e) {
|
|
495
|
+
for (let t = 0; t < e.coordinatesLine.length; t += 1)
|
|
492
496
|
N(
|
|
493
497
|
s.value,
|
|
494
498
|
ee(
|
|
495
499
|
a.value.style.chart.dataLabels.formatter,
|
|
496
|
-
e.coordinatesLine[
|
|
500
|
+
e.coordinatesLine[t].value,
|
|
497
501
|
ae({
|
|
498
502
|
p: e.prefix || "",
|
|
499
|
-
v: e.coordinatesLine[
|
|
503
|
+
v: e.coordinatesLine[t].value,
|
|
500
504
|
s: e.suffix || "",
|
|
501
505
|
r: e.rounding || 0
|
|
502
506
|
}),
|
|
503
|
-
{ datapoint: e.coordinatesLine[
|
|
507
|
+
{ datapoint: e.coordinatesLine[t], seriesIndex: t }
|
|
504
508
|
),
|
|
505
|
-
e.coordinatesLine[
|
|
506
|
-
e.coordinatesLine[
|
|
509
|
+
e.coordinatesLine[t].x,
|
|
510
|
+
e.coordinatesLine[t].y + a.value.style.chart.dataLabels.offsetY,
|
|
507
511
|
{
|
|
508
512
|
align: "center",
|
|
509
513
|
font: `${Math.round(y.value / 40 * a.value.style.chart.dataLabels.fontSizeRatio)}px ${a.value.style.fontFamily}`,
|
|
@@ -513,17 +517,17 @@ const vl = ["id"], cl = ["onClick"], dl = {
|
|
|
513
517
|
}
|
|
514
518
|
);
|
|
515
519
|
}
|
|
516
|
-
function
|
|
520
|
+
function La() {
|
|
517
521
|
for (let e = r.value.start; e < r.value.end; e += 1)
|
|
518
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)) && N(
|
|
519
523
|
s.value,
|
|
520
524
|
a.value.style.chart.grid.y.timeLabels.values[e] || e + 1,
|
|
521
|
-
|
|
522
|
-
|
|
525
|
+
l.value.left + l.value.slot * (e - r.value.start) + l.value.slot / 2,
|
|
526
|
+
l.value.bottom + y.value / a.value.style.chart.grid.y.timeLabels.offsetY,
|
|
523
527
|
{
|
|
524
528
|
align: a.value.style.chart.grid.y.timeLabels.rotation === 0 ? "center" : a.value.style.chart.grid.y.timeLabels.rotation > 0 ? "left" : "right",
|
|
525
529
|
font: `${Math.round(y.value / 40 * a.value.style.chart.grid.y.timeLabels.fontSizeRatio)}px ${a.value.style.fontFamily}`,
|
|
526
|
-
color:
|
|
530
|
+
color: te(a.value.style.chart.grid.y.timeLabels.color, d.value !== null ? d.value + r.value.start === e ? 100 : 20 : 100),
|
|
527
531
|
rotation: a.value.style.chart.grid.y.timeLabels.rotation
|
|
528
532
|
}
|
|
529
533
|
);
|
|
@@ -532,8 +536,8 @@ const vl = ["id"], cl = ["onClick"], dl = {
|
|
|
532
536
|
k(
|
|
533
537
|
s.value,
|
|
534
538
|
[
|
|
535
|
-
{ x:
|
|
536
|
-
{ x:
|
|
539
|
+
{ x: l.value.left + l.value.slot * d.value + l.value.slot / 2, y: l.value.top },
|
|
540
|
+
{ x: l.value.left + l.value.slot * d.value + l.value.slot / 2, y: l.value.bottom }
|
|
537
541
|
],
|
|
538
542
|
{
|
|
539
543
|
color: a.value.style.chart.selector.color,
|
|
@@ -543,26 +547,26 @@ const vl = ["id"], cl = ["onClick"], dl = {
|
|
|
543
547
|
}
|
|
544
548
|
);
|
|
545
549
|
}
|
|
546
|
-
function
|
|
547
|
-
C.value.forEach((e,
|
|
550
|
+
function ka() {
|
|
551
|
+
C.value.forEach((e, t) => {
|
|
548
552
|
for (let o = 0; o < e.coordinatesLine.length; o += 1)
|
|
549
553
|
ze(
|
|
550
554
|
s.value,
|
|
551
555
|
[
|
|
552
556
|
{
|
|
553
|
-
x:
|
|
557
|
+
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)),
|
|
554
558
|
y: u.value.stacked ? e.localZero : m.value.zero
|
|
555
559
|
},
|
|
556
560
|
{
|
|
557
|
-
x:
|
|
561
|
+
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),
|
|
558
562
|
y: u.value.stacked ? e.localZero : m.value.zero
|
|
559
563
|
},
|
|
560
564
|
{
|
|
561
|
-
x:
|
|
565
|
+
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),
|
|
562
566
|
y: e.coordinatesLine[o].y
|
|
563
567
|
},
|
|
564
568
|
{
|
|
565
|
-
x:
|
|
569
|
+
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)),
|
|
566
570
|
y: e.coordinatesLine[o].y
|
|
567
571
|
}
|
|
568
572
|
],
|
|
@@ -580,7 +584,7 @@ const vl = ["id"], cl = ["onClick"], dl = {
|
|
|
580
584
|
},
|
|
581
585
|
stops: [
|
|
582
586
|
{ offset: 0, color: e.color },
|
|
583
|
-
{ offset: 1, color:
|
|
587
|
+
{ offset: 1, color: ja(e.color, 0.5) }
|
|
584
588
|
]
|
|
585
589
|
}
|
|
586
590
|
}
|
|
@@ -597,7 +601,7 @@ const vl = ["id"], cl = ["onClick"], dl = {
|
|
|
597
601
|
}),
|
|
598
602
|
{ datapoint: e.coordinatesLine[o], seriesIndex: o }
|
|
599
603
|
),
|
|
600
|
-
|
|
604
|
+
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),
|
|
601
605
|
(e.coordinatesLine[o].value < 0 ? u.value.stacked ? e.localZero : m.value.zero : e.coordinatesLine[o].y) + a.value.style.chart.dataLabels.offsetY,
|
|
602
606
|
{
|
|
603
607
|
align: "center",
|
|
@@ -609,19 +613,19 @@ const vl = ["id"], cl = ["onClick"], dl = {
|
|
|
609
613
|
);
|
|
610
614
|
});
|
|
611
615
|
}
|
|
612
|
-
function
|
|
613
|
-
e.useArea ? u.value.stacked ?
|
|
616
|
+
function Ca(e) {
|
|
617
|
+
e.useArea ? u.value.stacked ? ua(
|
|
614
618
|
s.value,
|
|
615
619
|
[{ x: e.coordinatesLine[0].x, y: e.localZero }, ...e.coordinatesLine, { x: e.coordinatesLine.at(-1).x, y: e.localZero }],
|
|
616
620
|
{
|
|
617
|
-
fillColor:
|
|
621
|
+
fillColor: te(e.color, a.value.style.chart.area.opacity),
|
|
618
622
|
strokeColor: "transparent"
|
|
619
623
|
}
|
|
620
|
-
) :
|
|
624
|
+
) : ua(
|
|
621
625
|
s.value,
|
|
622
626
|
[{ x: e.coordinatesLine[0].x, y: m.value.zero }, ...e.coordinatesLine, { x: e.coordinatesLine.at(-1).x, y: m.value.zero }],
|
|
623
627
|
{
|
|
624
|
-
fillColor:
|
|
628
|
+
fillColor: te(e.color, a.value.style.chart.area.opacity),
|
|
625
629
|
strokeColor: "transparent"
|
|
626
630
|
}
|
|
627
631
|
) : k(s.value, e.coordinatesLine, {
|
|
@@ -629,13 +633,13 @@ const vl = ["id"], cl = ["onClick"], dl = {
|
|
|
629
633
|
lineWidth: 3
|
|
630
634
|
});
|
|
631
635
|
}
|
|
632
|
-
function
|
|
633
|
-
h.value.forEach((e,
|
|
636
|
+
function wa() {
|
|
637
|
+
h.value.forEach((e, t) => {
|
|
634
638
|
k(
|
|
635
639
|
s.value,
|
|
636
640
|
[
|
|
637
|
-
{ x:
|
|
638
|
-
{ x:
|
|
641
|
+
{ x: l.value.left, y: l.value.bottom - e.yOffset },
|
|
642
|
+
{ x: l.value.right, y: l.value.bottom - e.yOffset }
|
|
639
643
|
],
|
|
640
644
|
{
|
|
641
645
|
color: a.value.style.chart.grid.x.horizontalLines.color,
|
|
@@ -645,12 +649,12 @@ const vl = ["id"], cl = ["onClick"], dl = {
|
|
|
645
649
|
});
|
|
646
650
|
}
|
|
647
651
|
function xe() {
|
|
648
|
-
|
|
649
|
-
(e.type === "line" || !e.type) &&
|
|
650
|
-
}), ye.value =
|
|
652
|
+
ma(), A.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
|
+
(e.type === "line" || !e.type) && Ca(e), T.value && (ba(e), u.value.showDataLabels && [!0, void 0].includes(e.dataLabels) && xa(e));
|
|
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) => {
|
|
651
655
|
if (e.type === "line" || !e.type || e.type === "plot") {
|
|
652
656
|
if (!e.coordinatesLine[d.value]) return;
|
|
653
|
-
e.coordinatesLine[d.value].x !== void 0 && e.coordinatesLine[d.value].y !== void 0 &&
|
|
657
|
+
e.coordinatesLine[d.value].x !== void 0 && e.coordinatesLine[d.value].y !== void 0 && ra(
|
|
654
658
|
s.value,
|
|
655
659
|
{
|
|
656
660
|
x: e.coordinatesLine[d.value].x,
|
|
@@ -664,22 +668,22 @@ const vl = ["id"], cl = ["onClick"], dl = {
|
|
|
664
668
|
}
|
|
665
669
|
);
|
|
666
670
|
}
|
|
667
|
-
})), a.value.style.chart.grid.y.timeLabels.show &&
|
|
671
|
+
})), a.value.style.chart.grid.y.timeLabels.show && La(), A.value = !1;
|
|
668
672
|
}
|
|
669
|
-
const ue =
|
|
670
|
-
T.value = !0,
|
|
673
|
+
const ue = qa(() => {
|
|
674
|
+
T.value = !0, pa();
|
|
671
675
|
}, I.value > 200 ? 10 : 1, !T.value);
|
|
672
|
-
function
|
|
673
|
-
const { left:
|
|
674
|
-
if (o * 2 <
|
|
675
|
-
|
|
676
|
+
function za(e) {
|
|
677
|
+
const { left: t } = M.value.getBoundingClientRect(), o = e.clientX - t;
|
|
678
|
+
if (o * 2 < l.value.left || o * 2 > l.value.right) {
|
|
679
|
+
le.value = !1, d.value = null;
|
|
676
680
|
return;
|
|
677
681
|
}
|
|
678
|
-
const v = o * 2 -
|
|
679
|
-
if (d.value = Math.floor(v /
|
|
682
|
+
const v = o * 2 - l.value.left;
|
|
683
|
+
if (d.value = Math.floor(v / l.value.slot), le.value = !0, !T.value) return;
|
|
680
684
|
let c = "";
|
|
681
685
|
const g = a.value.style.chart.tooltip.customFormat;
|
|
682
|
-
|
|
686
|
+
oa(g) && Va(() => g({
|
|
683
687
|
seriesIndex: d.value,
|
|
684
688
|
datapoint: h.value.map((n) => ({
|
|
685
689
|
shape: n.shape || null,
|
|
@@ -701,7 +705,7 @@ const vl = ["id"], cl = ["onClick"], dl = {
|
|
|
701
705
|
})),
|
|
702
706
|
series: h.value,
|
|
703
707
|
config: a.value
|
|
704
|
-
}) : (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 +=
|
|
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;
|
|
705
709
|
}
|
|
706
710
|
D(() => d.value, (e) => {
|
|
707
711
|
ue();
|
|
@@ -714,45 +718,45 @@ const vl = ["id"], cl = ["onClick"], dl = {
|
|
|
714
718
|
}), D(() => u.value.stacked, (e) => {
|
|
715
719
|
A.value = !0, T.value = !0, ue();
|
|
716
720
|
});
|
|
717
|
-
function
|
|
718
|
-
|
|
721
|
+
function Sa() {
|
|
722
|
+
le.value = !1, d.value = null, oe.value = "";
|
|
719
723
|
}
|
|
720
724
|
const se = i(null), ne = i(null);
|
|
721
|
-
|
|
725
|
+
aa(() => {
|
|
722
726
|
Le();
|
|
723
727
|
});
|
|
724
728
|
function Le() {
|
|
725
|
-
if (
|
|
729
|
+
if (Ya(f.dataset) ? Ba({
|
|
726
730
|
componentName: "VueUiXyCanvas",
|
|
727
731
|
type: "dataset"
|
|
728
732
|
}) : M.value && (s.value = M.value.getContext("2d", { willReadFrequently: !0 })), a.value.responsive) {
|
|
729
|
-
const e =
|
|
730
|
-
const { width:
|
|
733
|
+
const e = Ka(() => {
|
|
734
|
+
const { width: t, height: o } = Qa({
|
|
731
735
|
chart: Z.value,
|
|
732
736
|
title: a.value.style.chart.title.text ? Te.value : null,
|
|
733
737
|
legend: a.value.style.chart.legend.show ? Oe.value : null,
|
|
734
738
|
slicer: a.value.style.chart.zoom.show && I.value > 1 ? Pe.value : null,
|
|
735
739
|
source: Re.value
|
|
736
740
|
});
|
|
737
|
-
Ae.value = `${
|
|
741
|
+
Ae.value = `${t} / ${o}`;
|
|
738
742
|
});
|
|
739
743
|
se.value = new ResizeObserver(e), se.value.observe(Z.value.parentNode);
|
|
740
744
|
}
|
|
741
745
|
ne.value = new ResizeObserver((e) => {
|
|
742
|
-
for (const
|
|
743
|
-
|
|
746
|
+
for (const t of e)
|
|
747
|
+
t.contentBoxSize && G.value && (A.value = !0, ue());
|
|
744
748
|
}), ne.value.observe(G.value), Be();
|
|
745
749
|
}
|
|
746
|
-
|
|
750
|
+
Oa(() => {
|
|
747
751
|
ne.value && ne.value.disconnect(), se.value && se.value.disconnect();
|
|
748
752
|
});
|
|
749
753
|
function Ze(e) {
|
|
750
|
-
|
|
754
|
+
ia("selectLegend", h.value.find((t) => t.absoluteIndex === e)), $.value.includes(e) ? $.value = $.value.filter((t) => t !== e) : $.value.push(e), A.value = !0, ue();
|
|
751
755
|
}
|
|
752
|
-
const Ge = x(() => W.value.map((e,
|
|
756
|
+
const Ge = x(() => W.value.map((e, t) => ({
|
|
753
757
|
...e,
|
|
754
758
|
name: e.name,
|
|
755
|
-
color: la(e.color) || We.value[
|
|
759
|
+
color: la(e.color) || We.value[t] || H[t] || H[t % H.length],
|
|
756
760
|
shape: e.shape || "circle",
|
|
757
761
|
prefix: e.prefix || "",
|
|
758
762
|
suffix: e.suffix || "",
|
|
@@ -762,7 +766,7 @@ const vl = ["id"], cl = ["onClick"], dl = {
|
|
|
762
766
|
opacity: $.value.includes(e.absoluteIndex) ? 0.5 : 1,
|
|
763
767
|
segregate: () => Ze(e.absoluteIndex),
|
|
764
768
|
isSegregated: $.value.includes(e.absoluteIndex)
|
|
765
|
-
}))),
|
|
769
|
+
}))), $a = x(() => ({
|
|
766
770
|
cy: "donut-div-legend",
|
|
767
771
|
backgroundColor: a.value.style.chart.legend.backgroundColor,
|
|
768
772
|
color: a.value.style.chart.legend.color,
|
|
@@ -771,10 +775,10 @@ const vl = ["id"], cl = ["onClick"], dl = {
|
|
|
771
775
|
fontWeight: a.value.style.chart.legend.bold ? "bold" : ""
|
|
772
776
|
})), ie = x(() => {
|
|
773
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>');
|
|
774
|
-
let
|
|
778
|
+
let t = [];
|
|
775
779
|
for (let c = 0; c < I.value; c += 1) {
|
|
776
780
|
const g = h.value.map((n) => n.series[c] ?? 0).reduce((n, p) => n + p, 0);
|
|
777
|
-
|
|
781
|
+
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((g ?? 0).toFixed(a.value.table.rounding)));
|
|
778
782
|
}
|
|
779
783
|
const o = {
|
|
780
784
|
th: {
|
|
@@ -789,27 +793,27 @@ const vl = ["id"], cl = ["onClick"], dl = {
|
|
|
789
793
|
},
|
|
790
794
|
breakpoint: a.value.table.responsiveBreakpoint
|
|
791
795
|
}, v = [a.value.table.columnNames.period].concat(h.value.map((c) => c.name)).concat(a.value.table.columnNames.total);
|
|
792
|
-
return { head: e, body:
|
|
796
|
+
return { head: e, body: t.slice(0, r.value.end - r.value.start), config: o, colNames: v };
|
|
793
797
|
}), je = x(() => {
|
|
794
798
|
if (h.value.length === 0) return { head: [], body: [], config: {}, columnNames: [] };
|
|
795
799
|
const e = h.value.map((o) => ({
|
|
796
800
|
label: o.name,
|
|
797
801
|
color: o.color,
|
|
798
802
|
type: o.type
|
|
799
|
-
})),
|
|
803
|
+
})), t = [];
|
|
800
804
|
for (let o = r.value.start; o < r.value.end; o += 1) {
|
|
801
805
|
const v = [a.value.style.chart.grid.y.timeLabels.values[o] || o + 1];
|
|
802
806
|
h.value.forEach((c) => {
|
|
803
807
|
v.push(Number((c.series[o] || 0).toFixed(a.value.table.rounding)));
|
|
804
|
-
}),
|
|
808
|
+
}), t.push(v);
|
|
805
809
|
}
|
|
806
|
-
return { head: e, body:
|
|
810
|
+
return { head: e, body: t };
|
|
807
811
|
});
|
|
808
812
|
function qe() {
|
|
809
|
-
const e = [[a.value.style.chart.title.text], [a.value.style.chart.title.subtitle.text], [""]],
|
|
810
|
-
|
|
813
|
+
const e = [[a.value.style.chart.title.text], [a.value.style.chart.title.subtitle.text], [""]], t = ["", ...je.value.head.map((g) => g.label)], o = je.value.body, v = e.concat([t]).concat(o), c = Za(v);
|
|
814
|
+
Ga({ csvContent: c, title: a.value.style.chart.title.text || "vue-ui-xy-canvas" });
|
|
811
815
|
}
|
|
812
|
-
function
|
|
816
|
+
function Ia() {
|
|
813
817
|
return h.value;
|
|
814
818
|
}
|
|
815
819
|
function Je() {
|
|
@@ -828,8 +832,8 @@ const vl = ["id"], cl = ["onClick"], dl = {
|
|
|
828
832
|
function ke() {
|
|
829
833
|
ve.value = !ve.value;
|
|
830
834
|
}
|
|
831
|
-
return
|
|
832
|
-
getData:
|
|
835
|
+
return na({
|
|
836
|
+
getData: Ia,
|
|
833
837
|
generateCsv: qe,
|
|
834
838
|
generatePdf: He,
|
|
835
839
|
generateImage: Ue,
|
|
@@ -838,14 +842,14 @@ const vl = ["id"], cl = ["onClick"], dl = {
|
|
|
838
842
|
toggleStack: Qe,
|
|
839
843
|
toggleTooltip: ea,
|
|
840
844
|
toggleAnnotator: ke
|
|
841
|
-
}), (e,
|
|
845
|
+
}), (e, t) => (z(), K("div", {
|
|
842
846
|
style: Y(`width:100%; position:relative; ${a.value.responsive ? "height: 100%" : ""}`),
|
|
843
847
|
ref_key: "xy",
|
|
844
848
|
ref: Z,
|
|
845
849
|
id: `xy_canvas_${he.value}`,
|
|
846
|
-
class:
|
|
847
|
-
onMouseenter:
|
|
848
|
-
onMouseleave:
|
|
850
|
+
class: Pa(`vue-ui-donut ${re.value ? "vue-data-ui-wrapper-fullscreen" : ""}`),
|
|
851
|
+
onMouseenter: t[5] || (t[5] = () => S(Fe)(!0)),
|
|
852
|
+
onMouseleave: t[6] || (t[6] = () => S(Fe)(!1))
|
|
849
853
|
}, [
|
|
850
854
|
a.value.style.chart.title.text ? (z(), K("div", {
|
|
851
855
|
key: 0,
|
|
@@ -853,7 +857,7 @@ const vl = ["id"], cl = ["onClick"], dl = {
|
|
|
853
857
|
ref: Te,
|
|
854
858
|
style: Y(`width:100%;background:${a.value.style.chart.backgroundColor};`)
|
|
855
859
|
}, [
|
|
856
|
-
(z(), E(
|
|
860
|
+
(z(), E(tt, {
|
|
857
861
|
key: `title_${fe.value}`,
|
|
858
862
|
config: {
|
|
859
863
|
title: {
|
|
@@ -867,7 +871,7 @@ const vl = ["id"], cl = ["onClick"], dl = {
|
|
|
867
871
|
}
|
|
868
872
|
}, null, 8, ["config"]))
|
|
869
873
|
], 4)) : _("", !0),
|
|
870
|
-
a.value.userOptions.show && me.value && (S(Ee) || S(be)) ? (z(), E(
|
|
874
|
+
a.value.userOptions.show && me.value && (S(Ee) || S(be)) ? (z(), E(rt, {
|
|
871
875
|
ref: "details",
|
|
872
876
|
key: `user_option_${Me.value}`,
|
|
873
877
|
backgroundColor: a.value.style.chart.backgroundColor,
|
|
@@ -891,7 +895,7 @@ const vl = ["id"], cl = ["onClick"], dl = {
|
|
|
891
895
|
position: a.value.userOptions.position,
|
|
892
896
|
hasAnnotator: a.value.userOptions.buttons.annotator,
|
|
893
897
|
isAnnotation: ve.value,
|
|
894
|
-
onToggleFullscreen:
|
|
898
|
+
onToggleFullscreen: da,
|
|
895
899
|
onGeneratePdf: S(He),
|
|
896
900
|
onGenerateCsv: qe,
|
|
897
901
|
onGenerateImage: S(Ue),
|
|
@@ -903,7 +907,7 @@ const vl = ["id"], cl = ["onClick"], dl = {
|
|
|
903
907
|
style: Y({
|
|
904
908
|
visibility: S(Ee) ? S(be) ? "visible" : "hidden" : "visible"
|
|
905
909
|
})
|
|
906
|
-
},
|
|
910
|
+
}, Ra({ _: 2 }, [
|
|
907
911
|
e.$slots.optionTooltip ? {
|
|
908
912
|
name: "optionTooltip",
|
|
909
913
|
fn: b(() => [
|
|
@@ -979,9 +983,9 @@ const vl = ["id"], cl = ["onClick"], dl = {
|
|
|
979
983
|
ref_key: "canvas",
|
|
980
984
|
ref: M,
|
|
981
985
|
style: { width: "100%", height: "100%" },
|
|
982
|
-
onMousemove:
|
|
983
|
-
onMouseleave:
|
|
984
|
-
}, null, 544)) : (z(), E(
|
|
986
|
+
onMousemove: t[0] || (t[0] = (o) => za(o)),
|
|
987
|
+
onMouseleave: Sa
|
|
988
|
+
}, null, 544)) : (z(), E(nt, {
|
|
985
989
|
key: 1,
|
|
986
990
|
config: {
|
|
987
991
|
type: "line",
|
|
@@ -999,8 +1003,8 @@ const vl = ["id"], cl = ["onClick"], dl = {
|
|
|
999
1003
|
}
|
|
1000
1004
|
}
|
|
1001
1005
|
}, null, 8, ["config"])),
|
|
1002
|
-
|
|
1003
|
-
show: u.value.showTooltip &&
|
|
1006
|
+
Fa(et, {
|
|
1007
|
+
show: u.value.showTooltip && le.value,
|
|
1004
1008
|
backgroundColor: a.value.style.chart.tooltip.backgroundColor,
|
|
1005
1009
|
color: a.value.style.chart.tooltip.color,
|
|
1006
1010
|
fontSize: a.value.style.chart.tooltip.fontSize,
|
|
@@ -1013,7 +1017,7 @@ const vl = ["id"], cl = ["onClick"], dl = {
|
|
|
1013
1017
|
content: oe.value,
|
|
1014
1018
|
isFullscreen: re.value,
|
|
1015
1019
|
backgroundOpacity: a.value.style.chart.tooltip.backgroundOpacity,
|
|
1016
|
-
isCustom: S(
|
|
1020
|
+
isCustom: S(oa)(a.value.style.chart.tooltip.customFormat)
|
|
1017
1021
|
}, {
|
|
1018
1022
|
"tooltip-before": b(() => [
|
|
1019
1023
|
L(e.$slots, "tooltip-before", B(V({ ...$e.value })), void 0, !0)
|
|
@@ -1030,7 +1034,7 @@ const vl = ["id"], cl = ["onClick"], dl = {
|
|
|
1030
1034
|
style: Y(`width:100%;background:${a.value.style.chart.backgroundColor}`),
|
|
1031
1035
|
"data-html2canvas-ignore": ""
|
|
1032
1036
|
}, [
|
|
1033
|
-
a.value.style.chart.zoom.show && I.value > 1 ? (z(), E(
|
|
1037
|
+
a.value.style.chart.zoom.show && I.value > 1 ? (z(), E(lt, {
|
|
1034
1038
|
ref_key: "slicerComponent",
|
|
1035
1039
|
ref: X,
|
|
1036
1040
|
key: `slicer_${Ie.value}`,
|
|
@@ -1048,9 +1052,9 @@ const vl = ["id"], cl = ["onClick"], dl = {
|
|
|
1048
1052
|
valueStart: r.value.start,
|
|
1049
1053
|
valueEnd: r.value.end,
|
|
1050
1054
|
start: r.value.start,
|
|
1051
|
-
"onUpdate:start":
|
|
1055
|
+
"onUpdate:start": t[1] || (t[1] = (o) => r.value.start = o),
|
|
1052
1056
|
end: r.value.end,
|
|
1053
|
-
"onUpdate:end":
|
|
1057
|
+
"onUpdate:end": t[2] || (t[2] = (o) => r.value.end = o),
|
|
1054
1058
|
refreshStartPoint: a.value.style.chart.zoom.startIndex !== null ? a.value.style.chart.zoom.startIndex : 0,
|
|
1055
1059
|
refreshEndPoint: a.value.style.chart.zoom.endIndex !== null ? a.value.style.chart.zoom.endIndex + 1 : I.value,
|
|
1056
1060
|
onReset: Ye
|
|
@@ -1065,17 +1069,17 @@ const vl = ["id"], cl = ["onClick"], dl = {
|
|
|
1065
1069
|
ref_key: "chartLegend",
|
|
1066
1070
|
ref: Oe
|
|
1067
1071
|
}, [
|
|
1068
|
-
a.value.style.chart.legend.show && me.value ? (z(), E(
|
|
1072
|
+
a.value.style.chart.legend.show && me.value ? (z(), E(at, {
|
|
1069
1073
|
legendSet: Ge.value,
|
|
1070
|
-
config:
|
|
1074
|
+
config: $a.value,
|
|
1071
1075
|
key: `legend_${pe.value}`,
|
|
1072
|
-
onClickMarker:
|
|
1076
|
+
onClickMarker: t[3] || (t[3] = ({ i: o }) => Ze(o))
|
|
1073
1077
|
}, {
|
|
1074
1078
|
item: b(({ legend: o, index: v }) => [
|
|
1075
1079
|
Q("div", {
|
|
1076
1080
|
onClick: (c) => o.segregate(),
|
|
1077
1081
|
style: Y(`opacity:${$.value.includes(v) ? 0.5 : 1}`)
|
|
1078
|
-
},
|
|
1082
|
+
}, ta(o.name), 13, ht)
|
|
1079
1083
|
]),
|
|
1080
1084
|
_: 1
|
|
1081
1085
|
}, 8, ["legendSet", "config"])) : L(e.$slots, "legend", {
|
|
@@ -1083,7 +1087,7 @@ const vl = ["id"], cl = ["onClick"], dl = {
|
|
|
1083
1087
|
legend: Ge.value
|
|
1084
1088
|
}, void 0, !0)
|
|
1085
1089
|
], 512),
|
|
1086
|
-
e.$slots.watermark ? (z(), K("div",
|
|
1090
|
+
e.$slots.watermark ? (z(), K("div", yt, [
|
|
1087
1091
|
L(e.$slots, "watermark", B(V({ isPrinting: S(De) || S(_e) })), void 0, !0)
|
|
1088
1092
|
])) : _("", !0),
|
|
1089
1093
|
e.$slots.source ? (z(), K("div", {
|
|
@@ -1094,7 +1098,7 @@ const vl = ["id"], cl = ["onClick"], dl = {
|
|
|
1094
1098
|
}, [
|
|
1095
1099
|
L(e.$slots, "source", {}, void 0, !0)
|
|
1096
1100
|
], 512)) : _("", !0),
|
|
1097
|
-
r.value.end - r.value.start < 200 ? (z(), E(
|
|
1101
|
+
r.value.end - r.value.start < 200 ? (z(), E(ut, {
|
|
1098
1102
|
key: 4,
|
|
1099
1103
|
hideDetails: "",
|
|
1100
1104
|
config: {
|
|
@@ -1111,27 +1115,27 @@ const vl = ["id"], cl = ["onClick"], dl = {
|
|
|
1111
1115
|
}
|
|
1112
1116
|
}, {
|
|
1113
1117
|
content: b(() => [
|
|
1114
|
-
(z(), E(
|
|
1118
|
+
(z(), E(st, {
|
|
1115
1119
|
key: `table_${ge.value}`,
|
|
1116
1120
|
colNames: ie.value.colNames,
|
|
1117
1121
|
head: ie.value.head,
|
|
1118
1122
|
body: ie.value.body,
|
|
1119
1123
|
config: ie.value.config,
|
|
1120
1124
|
title: `${a.value.style.chart.title.text}${a.value.style.chart.title.subtitle.text ? ` : ${a.value.style.chart.title.subtitle.text}` : ""}`,
|
|
1121
|
-
onClose:
|
|
1125
|
+
onClose: t[4] || (t[4] = (o) => u.value.showTable = !1)
|
|
1122
1126
|
}, {
|
|
1123
1127
|
th: b(({ th: o }) => [
|
|
1124
|
-
Q("div", { innerHTML: o }, null, 8,
|
|
1128
|
+
Q("div", { innerHTML: o }, null, 8, ft)
|
|
1125
1129
|
]),
|
|
1126
1130
|
td: b(({ td: o }) => [
|
|
1127
|
-
|
|
1131
|
+
Ea(ta(o), 1)
|
|
1128
1132
|
]),
|
|
1129
1133
|
_: 1
|
|
1130
1134
|
}, 8, ["colNames", "head", "body", "config", "title"]))
|
|
1131
1135
|
]),
|
|
1132
1136
|
_: 1
|
|
1133
1137
|
}, 8, ["config"])) : _("", !0),
|
|
1134
|
-
a.value.userOptions.buttons.annotator && h.value.length ? (z(), E(
|
|
1138
|
+
a.value.userOptions.buttons.annotator && h.value.length ? (z(), E(it, {
|
|
1135
1139
|
key: 5,
|
|
1136
1140
|
parent: Z.value,
|
|
1137
1141
|
backgroundColor: a.value.style.chart.backgroundColor,
|
|
@@ -1139,9 +1143,9 @@ const vl = ["id"], cl = ["onClick"], dl = {
|
|
|
1139
1143
|
active: ve.value,
|
|
1140
1144
|
onClose: ke
|
|
1141
1145
|
}, null, 8, ["parent", "backgroundColor", "color", "active"])) : _("", !0)
|
|
1142
|
-
], 46,
|
|
1146
|
+
], 46, dt));
|
|
1143
1147
|
}
|
|
1144
|
-
},
|
|
1148
|
+
}, Pt = /* @__PURE__ */ ct(gt, [["__scopeId", "data-v-c9593b73"]]);
|
|
1145
1149
|
export {
|
|
1146
|
-
|
|
1150
|
+
Pt as default
|
|
1147
1151
|
};
|