vue-data-ui 2.4.1 → 2.4.2
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 +44 -44
- package/dist/{Arrow-DpMf3yPs.cjs → Arrow-DLTRnzcG.cjs} +1 -1
- package/dist/{Arrow-BIs_9yK8.js → Arrow-JuK2z9IB.js} +1 -1
- package/dist/BaseIcon-BGExhz6v.cjs +1 -0
- package/dist/{BaseIcon-CXDdkPfN.js → BaseIcon-rRli6Sfv.js} +7 -4
- package/dist/{DataTable-BTgMVOwp.cjs → DataTable-DJzhv96s.cjs} +1 -1
- package/dist/{DataTable-DL2agEJ3.js → DataTable-DTk7C4Pr.js} +2 -2
- package/dist/{Legend-DXLiSLHd.js → Legend-CYF2gpXG.js} +1 -1
- package/dist/{Legend-Dj9KiaLv.cjs → Legend-YZ7Hz3o1.cjs} +1 -1
- package/dist/{PackageVersion-DtnhR89q.js → PackageVersion-CvCRsT5_.js} +1 -1
- package/dist/{PackageVersion-D4D0WicU.cjs → PackageVersion-DVZtsuy4.cjs} +1 -1
- package/dist/PenAndPaper-CyXm-yVL.cjs +1 -0
- package/dist/PenAndPaper-Jb0pLt3G.js +269 -0
- package/dist/{Shape-CO_Ak9Zm.js → Shape-BpPn4eWR.js} +1 -1
- package/dist/{Shape-7EC2UKDK.cjs → Shape-X2F-QV_B.cjs} +1 -1
- package/dist/{Slicer-CLAVjSQP.cjs → Slicer-CL0tP5a5.cjs} +1 -1
- package/dist/{Slicer-BZfUZr1J.js → Slicer-CU7dRZR0.js} +2 -2
- package/dist/{Title-DYNLqCCT.js → Title-5VmBwT4i.js} +1 -1
- package/dist/{Title-C-lm3Mkl.cjs → Title-Co5jI5ed.cjs} +1 -1
- package/dist/{Tooltip-t-3mVhcz.cjs → Tooltip-Bl6W8Zn7.cjs} +1 -1
- package/dist/{Tooltip-CICAYyQj.js → Tooltip-Cj4EF7v1.js} +1 -1
- package/dist/{index-DDXisDKy.js → index-DnVHQ2xI.js} +880 -842
- package/dist/index-FfZRtJ6A.cjs +9 -0
- package/dist/style.css +1 -1
- package/dist/types/vue-data-ui.d.cts +18 -16
- package/dist/types/vue-data-ui.d.ts +18 -16
- package/dist/{useNestedProp-S1UXxUgm.js → useNestedProp-Cox0K0Y5.js} +1 -1
- package/dist/{useNestedProp-CC9zGr7C.cjs → useNestedProp-q7byAAIJ.cjs} +1 -1
- package/dist/usePrinter-BCAFeO_J.cjs +1 -0
- package/dist/{usePrinter-8ofTb2MJ.js → usePrinter-BEeNAqS5.js} +230 -185
- package/dist/vue-data-ui-CRLLZpt0.cjs +9 -0
- package/dist/vue-data-ui-W7nnqn0v.js +261 -0
- package/dist/vue-data-ui.cjs +1 -1
- package/dist/vue-data-ui.js +1 -1
- package/dist/{vue-ui-3d-bar-DcF1nyGW.js → vue-ui-3d-bar-BwBrUabe.js} +414 -390
- package/dist/vue-ui-3d-bar-bD_n6qL_.cjs +19 -0
- package/dist/{vue-ui-accordion-D_1fE5EF.js → vue-ui-accordion-DspS4q3f.js} +3 -3
- package/dist/{vue-ui-accordion-Cc9958th.cjs → vue-ui-accordion-xXgqfR2l.cjs} +1 -1
- package/dist/vue-ui-age-pyramid-BZcAwcVQ.cjs +1 -0
- package/dist/{vue-ui-age-pyramid-Oe_yHDL0.js → vue-ui-age-pyramid-CxBvm3uM.js} +218 -194
- package/dist/{vue-ui-annotator-Dix6_Gm6.js → vue-ui-annotator-BOofWpzv.js} +1 -1
- package/dist/{vue-ui-annotator-Dbp6cWMr.cjs → vue-ui-annotator-C6T5_7ZV.cjs} +1 -1
- package/dist/vue-ui-bullet-ChaEgXvR.cjs +23 -0
- package/dist/vue-ui-bullet-DraC-oFu.js +433 -0
- package/dist/vue-ui-candlestick--hPCfMFH.cjs +2 -0
- package/dist/{vue-ui-candlestick-CRwzWF6j.js → vue-ui-candlestick-DQZ5eT1f.js} +267 -243
- package/dist/{vue-ui-carousel-table-C0GDDSW9.cjs → vue-ui-carousel-table-DpRQklDZ.cjs} +1 -1
- package/dist/{vue-ui-carousel-table-BHeEbRKY.js → vue-ui-carousel-table-PdLjpH1p.js} +4 -4
- package/dist/{vue-ui-chestnut-CRk0RCB9.js → vue-ui-chestnut-ByI_O5hB.js} +293 -269
- package/dist/vue-ui-chestnut-ae6x87wl.cjs +6 -0
- package/dist/{vue-ui-cursor-y0kdr0uA.js → vue-ui-cursor-BM74l93B.js} +2 -2
- package/dist/{vue-ui-cursor-lU1rts1B.cjs → vue-ui-cursor-BvadpA2m.cjs} +1 -1
- package/dist/{vue-ui-dashboard-OyihaKdu.js → vue-ui-dashboard-CoANBhAM.js} +2 -2
- package/dist/{vue-ui-dashboard-BfC0jS-X.cjs → vue-ui-dashboard-OP51Gs8I.cjs} +1 -1
- package/dist/{vue-ui-digits-BJfcAiq_.cjs → vue-ui-digits-C7jJJg9k.cjs} +1 -1
- package/dist/{vue-ui-digits-IKt4qT2-.js → vue-ui-digits-DioaBnkB.js} +2 -2
- package/dist/vue-ui-donut-CplNylps.cjs +1 -0
- package/dist/vue-ui-donut-evolution-CQpr-6IS.cjs +1 -0
- package/dist/{vue-ui-donut-evolution-Dd4o37RP.js → vue-ui-donut-evolution-DAb1xzNd.js} +330 -306
- package/dist/{vue-ui-donut-DFaGk4fI.js → vue-ui-donut-ldqSm_JV.js} +345 -321
- package/dist/{vue-ui-dumbbell-B7j1_JoQ.js → vue-ui-dumbbell-Dg7PkiKJ.js} +265 -241
- package/dist/vue-ui-dumbbell-_ijaYr8W.cjs +9 -0
- package/dist/vue-ui-flow-BPt35d5K.cjs +1 -0
- package/dist/vue-ui-flow-DKT7ZEnr.js +508 -0
- package/dist/vue-ui-galaxy-e06PkTmp.cjs +1 -0
- package/dist/{vue-ui-galaxy-CH1BDtWl.js → vue-ui-galaxy-qAA9be3S.js} +193 -169
- package/dist/vue-ui-gauge-D8yVTIgP.js +518 -0
- package/dist/vue-ui-gauge-DiZVIU0D.cjs +1 -0
- package/dist/{vue-ui-gizmo-CKQcbe_7.js → vue-ui-gizmo-DC0uUwI3.js} +3 -3
- package/dist/{vue-ui-gizmo-DVwQaEH1.cjs → vue-ui-gizmo-W6bTkg59.cjs} +1 -1
- package/dist/vue-ui-heatmap-CbZcv_2I.cjs +1 -0
- package/dist/{vue-ui-heatmap-B-zWMk0Y.js → vue-ui-heatmap-u1raIzBQ.js} +252 -228
- package/dist/{vue-ui-kpi-CghbfSdM.js → vue-ui-kpi-C-iTxMD2.js} +3 -3
- package/dist/{vue-ui-kpi-CuY3xlVq.cjs → vue-ui-kpi-DY_2WF7U.cjs} +1 -1
- package/dist/{vue-ui-mini-loader-CH_PfeDc.cjs → vue-ui-mini-loader-Bfq2MNWu.cjs} +1 -1
- package/dist/{vue-ui-mini-loader-C7roqZ4p.js → vue-ui-mini-loader-C7x7S0hi.js} +2 -2
- package/dist/vue-ui-molecule-BFnOIxxs.js +798 -0
- package/dist/vue-ui-molecule-CbKMLrDT.cjs +1 -0
- package/dist/vue-ui-mood-radar-6LmFXuiw.cjs +1 -0
- package/dist/{vue-ui-mood-radar-DSznHxLS.js → vue-ui-mood-radar-CR1v5v2x.js} +263 -239
- package/dist/{vue-ui-nested-donuts-CiE4DdEQ.js → vue-ui-nested-donuts-DEiloQzq.js} +342 -318
- package/dist/vue-ui-nested-donuts-DS0fjiLi.cjs +17 -0
- package/dist/vue-ui-onion-CLvvu4Ku.cjs +5 -0
- package/dist/{vue-ui-onion-D9o6Rcgu.js → vue-ui-onion-LsEhBe4x.js} +226 -202
- package/dist/vue-ui-parallel-coordinate-plot-BWg8OFqH.cjs +8 -0
- package/dist/{vue-ui-parallel-coordinate-plot-BcYrYXhG.js → vue-ui-parallel-coordinate-plot-CTlIjJqG.js} +243 -219
- package/dist/{vue-ui-quadrant-Cs3A77us.js → vue-ui-quadrant-DKVVFufb.js} +350 -326
- package/dist/vue-ui-quadrant-OM5J1mG3.cjs +1 -0
- package/dist/{vue-ui-quick-chart-CiiSUexi.js → vue-ui-quick-chart-8vJikiGH.js} +505 -481
- package/dist/vue-ui-quick-chart-gG5Ar8-i.cjs +15 -0
- package/dist/{vue-ui-radar-CNSpiNrM.js → vue-ui-radar-20QhOUer.js} +255 -231
- package/dist/vue-ui-radar-CAaHjDO7.cjs +1 -0
- package/dist/{vue-ui-rating-GoUNDOdZ.cjs → vue-ui-rating-Bbzm5nUK.cjs} +1 -1
- package/dist/{vue-ui-rating-b_iYZWF8.js → vue-ui-rating-DRWJsve1.js} +2 -2
- package/dist/vue-ui-relation-circle-BoGAFXuS.cjs +1 -0
- package/dist/vue-ui-relation-circle-I45_Sk5l.js +349 -0
- package/dist/vue-ui-rings-B9WQ7S5m.cjs +2 -0
- package/dist/vue-ui-rings-DG8GCi3y.js +593 -0
- package/dist/vue-ui-scatter-BZfg1YIN.cjs +1 -0
- package/dist/{vue-ui-scatter-CVuoW-cD.js → vue-ui-scatter-Hqu5-F2H.js} +369 -345
- package/dist/{vue-ui-screenshot-Co2o48d6.cjs → vue-ui-screenshot-D8nxd5RV.cjs} +1 -1
- package/dist/{vue-ui-screenshot-Csc0dQL9.js → vue-ui-screenshot-cjiqbtLK.js} +1 -1
- package/dist/{vue-ui-skeleton-CGV1dEUD.cjs → vue-ui-skeleton-Djv08J67.cjs} +1 -1
- package/dist/{vue-ui-skeleton-B2sRnIXX.js → vue-ui-skeleton-aZmkNzAe.js} +3 -3
- package/dist/{vue-ui-smiley-Ci3uMgVh.cjs → vue-ui-smiley-B1TA19Hv.cjs} +1 -1
- package/dist/{vue-ui-smiley-D4s-AdIE.js → vue-ui-smiley-ChNvxygm.js} +2 -2
- package/dist/{vue-ui-spark-trend-BfoEoJEy.cjs → vue-ui-spark-trend-BqrPr63O.cjs} +1 -1
- package/dist/{vue-ui-spark-trend-CHKQGMLs.js → vue-ui-spark-trend-CQxELQcf.js} +5 -5
- package/dist/{vue-ui-sparkbar-Bb1fq2GR.js → vue-ui-sparkbar-0ixbKZzf.js} +4 -4
- package/dist/{vue-ui-sparkbar-DB2DeXti.cjs → vue-ui-sparkbar-CrTEPTU5.cjs} +1 -1
- package/dist/{vue-ui-sparkgauge-CJepIY2u.cjs → vue-ui-sparkgauge-BYxpe_WV.cjs} +1 -1
- package/dist/{vue-ui-sparkgauge-DWuaAQbo.js → vue-ui-sparkgauge-pdYb7OwH.js} +4 -4
- package/dist/{vue-ui-sparkhistogram-B7B36LLT.cjs → vue-ui-sparkhistogram-D21XDUH2.cjs} +1 -1
- package/dist/{vue-ui-sparkhistogram-CjeJ3ch1.js → vue-ui-sparkhistogram-N69h2q0U.js} +5 -5
- package/dist/{vue-ui-sparkline-DGJDBArr.js → vue-ui-sparkline-2BKYZMOb.js} +4 -4
- package/dist/{vue-ui-sparkline-BcqmwDAb.cjs → vue-ui-sparkline-Cf4m-Fxo.cjs} +1 -1
- package/dist/{vue-ui-sparkstackbar-DT3aKNeV.cjs → vue-ui-sparkstackbar-dAS8XoJs.cjs} +1 -1
- package/dist/{vue-ui-sparkstackbar-B3ul3qUZ.js → vue-ui-sparkstackbar-sh03cuOU.js} +4 -4
- package/dist/vue-ui-stackbar-B1si-1RM.js +938 -0
- package/dist/vue-ui-stackbar-Dy_saeSe.cjs +6 -0
- package/dist/{vue-ui-strip-plot-CIb2LSV8.js → vue-ui-strip-plot-BYn-QrTQ.js} +274 -250
- package/dist/vue-ui-strip-plot-D53LABpZ.cjs +1 -0
- package/dist/{vue-ui-table-B_sFrAO9.cjs → vue-ui-table-Ce4waJaj.cjs} +1 -1
- package/dist/{vue-ui-table-CmVi0nv2.js → vue-ui-table-DQORPCDJ.js} +1 -1
- package/dist/{vue-ui-table-heatmap-CgFr38QT.js → vue-ui-table-heatmap-Csp7Tx8N.js} +4 -4
- package/dist/{vue-ui-table-heatmap-Chvdf2Gi.cjs → vue-ui-table-heatmap-EqHt-O7Y.cjs} +1 -1
- package/dist/{vue-ui-table-sparkline-DUUYQ5dH.cjs → vue-ui-table-sparkline-DONmVOMh.cjs} +1 -1
- package/dist/{vue-ui-table-sparkline-eg2Qd8ws.js → vue-ui-table-sparkline-DdwVrfUj.js} +5 -5
- package/dist/vue-ui-thermometer-I6ZnlfAv.js +440 -0
- package/dist/vue-ui-thermometer-hQBkMa7u.cjs +1 -0
- package/dist/{vue-ui-timer-DM1IStj1.cjs → vue-ui-timer-COOXcn14.cjs} +1 -1
- package/dist/{vue-ui-timer-COSI3Q5T.js → vue-ui-timer-pi1SazTU.js} +5 -5
- package/dist/vue-ui-tiremarks-hdNqoGyd.cjs +1 -0
- package/dist/vue-ui-tiremarks-vdPQYiDp.js +303 -0
- package/dist/vue-ui-treemap-3FNUlKxL.js +816 -0
- package/dist/vue-ui-treemap-Cv0TSFQa.cjs +1 -0
- package/dist/vue-ui-vertical-bar-C--Ma0Dw.cjs +4 -0
- package/dist/{vue-ui-vertical-bar-CieqHVD5.js → vue-ui-vertical-bar-DwxpB46q.js} +312 -288
- package/dist/vue-ui-waffle-CKM0QyJN.cjs +1 -0
- package/dist/vue-ui-waffle-XecHJIc-.js +782 -0
- package/dist/vue-ui-wheel-Bbih5sSL.js +282 -0
- package/dist/vue-ui-wheel-C0dJrzOJ.cjs +1 -0
- package/dist/vue-ui-word-cloud-Cfd2wxsT.cjs +1 -0
- package/dist/vue-ui-word-cloud-DnhXUn5x.js +598 -0
- package/dist/vue-ui-xy-BDpqVzAq.cjs +3 -0
- package/dist/{vue-ui-xy-x8KEsGV-.js → vue-ui-xy-CqlRuFMc.js} +775 -751
- package/dist/{vue-ui-xy-canvas-BYdTxzi6.js → vue-ui-xy-canvas-C8c2X5fk.js} +409 -385
- package/dist/vue-ui-xy-canvas-Cansjd3L.cjs +9 -0
- package/package.json +1 -1
- package/dist/BaseIcon-E7FmzMcY.cjs +0 -1
- package/dist/index-C7_6YjWN.cjs +0 -9
- package/dist/usePrinter-8EP4iaGm.cjs +0 -1
- package/dist/vue-data-ui-4Yd255Ia.cjs +0 -9
- package/dist/vue-data-ui-Cp7bO_tj.js +0 -258
- package/dist/vue-ui-3d-bar-BeR2aBgQ.cjs +0 -19
- package/dist/vue-ui-age-pyramid-R-C4P4mI.cjs +0 -1
- package/dist/vue-ui-bullet-CQKaC4wG.js +0 -409
- package/dist/vue-ui-bullet-DSZox236.cjs +0 -23
- package/dist/vue-ui-candlestick-Dilozp3V.cjs +0 -2
- package/dist/vue-ui-chestnut-DdEcEI04.cjs +0 -6
- package/dist/vue-ui-donut-DTSVlGMg.cjs +0 -1
- package/dist/vue-ui-donut-evolution-BuUafabD.cjs +0 -1
- package/dist/vue-ui-dumbbell-CVfgnyKi.cjs +0 -9
- package/dist/vue-ui-flow-C45dODaB.cjs +0 -1
- package/dist/vue-ui-flow-DkPTzNv9.js +0 -484
- package/dist/vue-ui-galaxy-DlPavMK0.cjs +0 -1
- package/dist/vue-ui-gauge-BXiy515T.js +0 -494
- package/dist/vue-ui-gauge-vMFUYHYH.cjs +0 -1
- package/dist/vue-ui-heatmap-CMQqQnxc.cjs +0 -1
- package/dist/vue-ui-molecule-BwmkMEVN.js +0 -774
- package/dist/vue-ui-molecule-nOuD0hR5.cjs +0 -1
- package/dist/vue-ui-mood-radar-Bof_C9Ae.cjs +0 -1
- package/dist/vue-ui-nested-donuts-DIb6YyWv.cjs +0 -17
- package/dist/vue-ui-onion-N3tRNc4u.cjs +0 -5
- package/dist/vue-ui-parallel-coordinate-plot-qKGk2bX6.cjs +0 -8
- package/dist/vue-ui-quadrant-Do48rGrX.cjs +0 -1
- package/dist/vue-ui-quick-chart-BxU4d-sJ.cjs +0 -15
- package/dist/vue-ui-radar-CooAvwPA.cjs +0 -1
- package/dist/vue-ui-relation-circle-nRf1pvD0.js +0 -325
- package/dist/vue-ui-relation-circle-uNgJni4x.cjs +0 -1
- package/dist/vue-ui-rings-BgRc1o4_.js +0 -569
- package/dist/vue-ui-rings-iIgQI9Ws.cjs +0 -2
- package/dist/vue-ui-scatter-CkrpmLxP.cjs +0 -1
- package/dist/vue-ui-stackbar-CRcUugkl.cjs +0 -6
- package/dist/vue-ui-stackbar-DNROvZII.js +0 -915
- package/dist/vue-ui-strip-plot-Ck9Fmt_b.cjs +0 -1
- package/dist/vue-ui-thermometer-BFfN4aat.cjs +0 -1
- package/dist/vue-ui-thermometer-BePmFiwy.js +0 -416
- package/dist/vue-ui-tiremarks-BkYXzU3R.cjs +0 -1
- package/dist/vue-ui-tiremarks-d6TmSHY7.js +0 -279
- package/dist/vue-ui-treemap-BgeZnbl3.cjs +0 -1
- package/dist/vue-ui-treemap-Qg0858o6.js +0 -792
- package/dist/vue-ui-vertical-bar-D3atbdvl.cjs +0 -4
- package/dist/vue-ui-waffle-CD7C9Lu4.cjs +0 -1
- package/dist/vue-ui-waffle-CjNhM-mV.js +0 -758
- package/dist/vue-ui-wheel-B8mbO6ht.js +0 -258
- package/dist/vue-ui-wheel-CYmM7J61.cjs +0 -1
- package/dist/vue-ui-word-cloud-DMXrUmX5.js +0 -574
- package/dist/vue-ui-word-cloud-Dm9yZ1zQ.cjs +0 -1
- package/dist/vue-ui-xy-DoWnidom.cjs +0 -3
- package/dist/vue-ui-xy-canvas-DHs5sb3t.cjs +0 -9
|
@@ -1,20 +1,21 @@
|
|
|
1
|
-
import { ref as v, computed as
|
|
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 {
|
|
14
|
-
|
|
1
|
+
import { ref as v, computed as m, watch as W, onMounted as ma, onBeforeUnmount as xa, openBlock as w, createElementBlock as ne, normalizeStyle as q, normalizeClass as La, createBlock as P, createCommentVNode as Y, unref as _, createSlots as ka, withCtx as b, renderSlot as k, normalizeProps as B, guardReactiveProps as X, createElementVNode as J, createVNode as Ca, toDisplayString as Ge, createTextVNode as wa } from "vue";
|
|
2
|
+
import { u as Sa, c as $a, t as za, a as Ta, p as A, b as Ma, C as ge, i as K, f as Q, I as Ra, d as Ve, $ as Ia, o as Oa, e as Pa, x as je, y as Fa, q as Ea, r as Na, s as ee, l as _a } from "./index-DnVHQ2xI.js";
|
|
3
|
+
import { d as Aa, c as Da, a as qe, t as Ha, l as C, r as pe, b as F, p as Je, u as Wa } from "./useResponsive-NZB-WLRF.js";
|
|
4
|
+
import { _ as Ya } from "./Tooltip-Cj4EF7v1.js";
|
|
5
|
+
import { L as Ba } from "./Legend-CYF2gpXG.js";
|
|
6
|
+
import { _ as Xa } from "./Title-5VmBwT4i.js";
|
|
7
|
+
import { S as Ua } from "./Slicer-CU7dRZR0.js";
|
|
8
|
+
import { u as Za, U as Ga } from "./usePrinter-BEeNAqS5.js";
|
|
9
|
+
import Va from "./vue-ui-accordion-DspS4q3f.js";
|
|
10
|
+
import { D as ja } from "./DataTable-DTk7C4Pr.js";
|
|
11
|
+
import qa from "./vue-ui-skeleton-aZmkNzAe.js";
|
|
12
|
+
import { u as Ke } from "./useNestedProp-Cox0K0Y5.js";
|
|
13
|
+
import { P as Ja } from "./PenAndPaper-Jb0pLt3G.js";
|
|
14
|
+
import { _ as Ka } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
15
|
+
const Qa = ["id"], et = ["onClick"], at = {
|
|
15
16
|
key: 2,
|
|
16
17
|
class: "vue-data-ui-watermark"
|
|
17
|
-
},
|
|
18
|
+
}, tt = ["innerHTML"], lt = {
|
|
18
19
|
__name: "vue-ui-xy-canvas",
|
|
19
20
|
props: {
|
|
20
21
|
dataset: {
|
|
@@ -31,40 +32,40 @@ const qa = ["id"], Ja = ["onClick"], Ka = {
|
|
|
31
32
|
}
|
|
32
33
|
},
|
|
33
34
|
emits: ["selectLegend"],
|
|
34
|
-
setup(
|
|
35
|
-
const
|
|
36
|
-
get: () =>
|
|
35
|
+
setup(be, { expose: Qe, emit: ea }) {
|
|
36
|
+
const E = be, { vue_ui_xy_canvas: aa } = Sa(), ie = v($a()), U = v(null), $ = v(null), Z = v(null), s = v(null), f = v(1), M = v(1), ae = v(!1), d = v(null), te = v(""), me = v(null), S = v([]), D = v(1), N = v(!0), z = v(!0), ve = v(null), xe = v(0), Le = v(0), ce = v(!1), ke = v(null), Ce = v(null), we = v(null), Se = v(0), $e = v(0), ze = v(0), de = m(() => !!E.dataset && E.dataset.length), a = m({
|
|
37
|
+
get: () => Te(),
|
|
37
38
|
set: (e) => e
|
|
38
39
|
});
|
|
39
|
-
function
|
|
40
|
-
const e =
|
|
41
|
-
userConfig:
|
|
42
|
-
defaultConfig:
|
|
40
|
+
function Te() {
|
|
41
|
+
const e = Ke({
|
|
42
|
+
userConfig: E.config,
|
|
43
|
+
defaultConfig: aa
|
|
43
44
|
});
|
|
44
45
|
return e.theme ? {
|
|
45
|
-
...
|
|
46
|
-
userConfig:
|
|
46
|
+
...Ke({
|
|
47
|
+
userConfig: za.vue_ui_xy_canvas[e.theme] || E.config,
|
|
47
48
|
defaultConfig: e
|
|
48
49
|
}),
|
|
49
|
-
customPalette:
|
|
50
|
+
customPalette: Ta[e.theme] || A
|
|
50
51
|
} : e;
|
|
51
52
|
}
|
|
52
|
-
|
|
53
|
-
a.value =
|
|
53
|
+
W(() => E.config, (e) => {
|
|
54
|
+
a.value = Te(), Ae(), Se.value += 1, $e.value += 1, ze.value += 1;
|
|
54
55
|
}, { deep: !0 });
|
|
55
|
-
const
|
|
56
|
-
elementId: `xy_canvas_${
|
|
56
|
+
const Me = v(a.value.style.chart.aspectRatio), { isPrinting: Re, isImaging: Ie, generatePdf: Oe, generateImage: Pe } = Za({
|
|
57
|
+
elementId: `xy_canvas_${ie.value}`,
|
|
57
58
|
fileName: a.value.style.chart.title.text || "vue-ui-xy-canvas"
|
|
58
|
-
}),
|
|
59
|
+
}), u = v({
|
|
59
60
|
showTable: a.value.table.show,
|
|
60
61
|
showDataLabels: a.value.style.chart.dataLabels.show,
|
|
61
62
|
stacked: a.value.style.chart.stacked,
|
|
62
63
|
showTooltip: a.value.style.chart.tooltip.show
|
|
63
64
|
});
|
|
64
|
-
function
|
|
65
|
-
|
|
65
|
+
function ta(e) {
|
|
66
|
+
ce.value = e, Le.value += 1;
|
|
66
67
|
}
|
|
67
|
-
const
|
|
68
|
+
const Fe = m(() => Ma(a.value.customPalette)), R = m(() => H.value ? Math.max(...H.value.filter((e, l) => !S.value.includes(e.absoluteIndex)).map((e) => e.series.length)) : 0), t = m(() => {
|
|
68
69
|
const e = f.value - f.value * (a.value.style.chart.paddingProportions.left + a.value.style.chart.paddingProportions.right);
|
|
69
70
|
return {
|
|
70
71
|
canvasWidth: f.value,
|
|
@@ -75,49 +76,49 @@ const qa = ["id"], Ja = ["onClick"], Ka = {
|
|
|
75
76
|
bottom: M.value - M.value * a.value.style.chart.paddingProportions.bottom,
|
|
76
77
|
width: e,
|
|
77
78
|
height: M.value - M.value * (a.value.style.chart.paddingProportions.top + a.value.style.chart.paddingProportions.bottom),
|
|
78
|
-
slot: e / (
|
|
79
|
+
slot: e / (r.value.end - r.value.start)
|
|
79
80
|
};
|
|
80
81
|
});
|
|
81
|
-
function
|
|
82
|
-
return e /
|
|
82
|
+
function Ee(e, l) {
|
|
83
|
+
return e / l;
|
|
83
84
|
}
|
|
84
|
-
function
|
|
85
|
-
return
|
|
86
|
-
const T = c.min < 0 ? Math.abs(c.min) : 0, I =
|
|
87
|
-
let O,
|
|
88
|
-
e && (O = Math.abs(c.min),
|
|
89
|
-
let
|
|
90
|
-
return g === null ?
|
|
91
|
-
x:
|
|
92
|
-
y:
|
|
85
|
+
function la({ hasAutoScale: e, series: l, min: o, max: i, scale: c, yOffset: y, individualHeight: n, stackIndex: g = null }) {
|
|
86
|
+
return l.map((L, ye) => {
|
|
87
|
+
const T = c.min < 0 ? Math.abs(c.min) : 0, I = Ee(L + T, T + c.max);
|
|
88
|
+
let O, G;
|
|
89
|
+
e && (O = Math.abs(c.min), G = Ee(L + O, c.max + O));
|
|
90
|
+
let V = 0;
|
|
91
|
+
return g === null ? V = t.value.bottom - t.value.height * (e ? G : I) : V = t.value.bottom - y - n * (e ? G : I), {
|
|
92
|
+
x: t.value.left + t.value.slot * ye + t.value.slot / 2,
|
|
93
|
+
y: V,
|
|
93
94
|
value: L
|
|
94
95
|
};
|
|
95
96
|
});
|
|
96
97
|
}
|
|
97
|
-
const p =
|
|
98
|
-
const e = Math.min(...
|
|
99
|
-
y:
|
|
100
|
-
x:
|
|
98
|
+
const p = m(() => {
|
|
99
|
+
const e = Math.min(...H.value.filter((n, g) => !S.value.includes(n.absoluteIndex)).flatMap((n) => n.series.slice(r.value.start, r.value.end))), l = Math.max(...H.value.filter((n, g) => !S.value.includes(n.absoluteIndex)).flatMap((n) => n.series.slice(r.value.start, r.value.end))), o = ge(e < 0 ? e : 0, l === e ? e + 1 < 0 ? 0 : e + 1 : l < 0 ? 0 : l, a.value.style.chart.scale.ticks), i = o.min < 0 ? Math.abs(o.min) : 0, c = t.value.bottom - t.value.height * (i / (o.max + i)), y = o.ticks.map((n) => ({
|
|
100
|
+
y: t.value.bottom - t.value.height * ((n + i) / (o.max + i)),
|
|
101
|
+
x: t.value.left - 8,
|
|
101
102
|
value: n
|
|
102
103
|
}));
|
|
103
104
|
return {
|
|
104
105
|
absoluteMin: i,
|
|
105
|
-
max:
|
|
106
|
+
max: l,
|
|
106
107
|
min: e,
|
|
107
108
|
scale: o,
|
|
108
109
|
yLabels: y,
|
|
109
110
|
zero: c
|
|
110
111
|
};
|
|
111
|
-
}),
|
|
112
|
+
}), oa = m(() => h.value.map((e) => `
|
|
112
113
|
<div style="display:flex;flex-direction:row;gap:6px;align-items:center;">
|
|
113
114
|
<svg viewBox="0 0 10 10" height="12" width="12">
|
|
114
115
|
<circle cx="5" cy="5" r="5" fill="${e.color}"/>
|
|
115
116
|
</svg>
|
|
116
117
|
<span>${e.name ? e.name + ": " : ""}</span>
|
|
117
|
-
<span>${
|
|
118
|
+
<span>${K(
|
|
118
119
|
a.value.style.chart.dataLabels.formatter,
|
|
119
120
|
e.series[d.value],
|
|
120
|
-
|
|
121
|
+
Q({
|
|
121
122
|
p: e.prefix || "",
|
|
122
123
|
v: e.series[d.value],
|
|
123
124
|
s: e.suffix || "",
|
|
@@ -126,88 +127,88 @@ const qa = ["id"], Ja = ["onClick"], Ka = {
|
|
|
126
127
|
{ datapoint: e, seriesIndex: d.value }
|
|
127
128
|
)}</span>
|
|
128
129
|
</div>
|
|
129
|
-
`)),
|
|
130
|
+
`)), H = m(() => E.dataset.map((e, l) => ({
|
|
130
131
|
...e,
|
|
131
|
-
series:
|
|
132
|
-
absoluteIndex:
|
|
133
|
-
color:
|
|
132
|
+
series: Ra(e.series),
|
|
133
|
+
absoluteIndex: l,
|
|
134
|
+
color: Ve(e.color || Fe.value[l] || A[l] || A[l % A.length])
|
|
134
135
|
})));
|
|
135
|
-
|
|
136
|
-
e &&
|
|
136
|
+
W(R, (e) => {
|
|
137
|
+
e && Ne();
|
|
137
138
|
});
|
|
138
|
-
const h =
|
|
139
|
+
const h = m(() => Ia(H.value.filter((e, l) => !S.value.includes(e.absoluteIndex))).map((e, l) => ({
|
|
139
140
|
...e,
|
|
140
|
-
series: e.series.slice(
|
|
141
|
-
})).map((e,
|
|
141
|
+
series: e.series.slice(r.value.start, r.value.end)
|
|
142
|
+
})).map((e, l) => {
|
|
142
143
|
let o = Math.min(...e.series) || 0, i = Math.max(...e.series) || 1;
|
|
143
144
|
o === i && (o = o >= 0 ? i - 1 : o, i = i >= 0 ? i : o + 1);
|
|
144
145
|
const y = {
|
|
145
|
-
ratios: e.series.filter((
|
|
146
|
+
ratios: e.series.filter((j) => ![null, void 0].includes(j)).map((j) => (j - o) / (i - o)),
|
|
146
147
|
valueMin: o,
|
|
147
148
|
valueMax: i
|
|
148
149
|
}, n = e.scaleSteps || a.value.style.chart.scale.ticks;
|
|
149
150
|
let g;
|
|
150
|
-
e.autoScaling ? g =
|
|
151
|
-
const L =
|
|
151
|
+
e.autoScaling ? g = ge(y.valueMin, y.valueMax, n) : g = ge(y.valueMin < 0 ? y.valueMin : 0, y.valueMax <= 0 ? 0 : y.valueMax, n);
|
|
152
|
+
const L = u.value.stacked ? t.value.height * (1 - e.cumulatedStackRatio) : 0, ye = u.value.stacked ? t.value.height / a.value.style.chart.stackGap : 0, T = u.value.stacked ? t.value.height * e.stackRatio - ye : t.value.height, I = g.min < 0 ? Math.abs(g.min) : 0;
|
|
152
153
|
let O;
|
|
153
|
-
e.autoScaling &&
|
|
154
|
-
const
|
|
155
|
-
y:
|
|
156
|
-
x:
|
|
157
|
-
value:
|
|
158
|
-
})),
|
|
159
|
-
hasAutoScale:
|
|
154
|
+
e.autoScaling && u.value.stacked && i <= 0 ? O = t.value.bottom - L - T : O = t.value.bottom - L - T * (I / (g.max + I));
|
|
155
|
+
const G = g.ticks.map((j, ba) => ({
|
|
156
|
+
y: t.value.bottom - L - T * (ba / (g.ticks.length - 1)),
|
|
157
|
+
x: t.value.left - 8,
|
|
158
|
+
value: j
|
|
159
|
+
})), V = la({
|
|
160
|
+
hasAutoScale: u.value.stacked && e.autoScaling,
|
|
160
161
|
series: e.series,
|
|
161
|
-
min:
|
|
162
|
-
max:
|
|
163
|
-
scale:
|
|
162
|
+
min: u.value.stacked ? o : p.value.min,
|
|
163
|
+
max: u.value.stacked ? i : p.value.max,
|
|
164
|
+
scale: u.value.stacked ? g : p.value.scale,
|
|
164
165
|
yOffset: L,
|
|
165
166
|
individualHeight: T,
|
|
166
|
-
stackIndex:
|
|
167
|
+
stackIndex: u.value.stacked ? l : null
|
|
167
168
|
});
|
|
168
169
|
return {
|
|
169
170
|
...e,
|
|
170
|
-
coordinatesLine:
|
|
171
|
+
coordinatesLine: V,
|
|
171
172
|
min: o,
|
|
172
173
|
max: i,
|
|
173
174
|
localScale: g,
|
|
174
175
|
localZero: O,
|
|
175
176
|
localMin: I,
|
|
176
|
-
localYLabels:
|
|
177
|
+
localYLabels: G,
|
|
177
178
|
yOffset: L,
|
|
178
179
|
individualHeight: T
|
|
179
180
|
};
|
|
180
|
-
})),
|
|
181
|
+
})), r = v({
|
|
181
182
|
start: 0,
|
|
182
183
|
end: R.value
|
|
183
184
|
});
|
|
184
|
-
function
|
|
185
|
-
|
|
185
|
+
function Ne() {
|
|
186
|
+
r.value = {
|
|
186
187
|
start: 0,
|
|
187
188
|
end: R.value
|
|
188
|
-
},
|
|
189
|
+
}, xe.value += 1;
|
|
189
190
|
}
|
|
190
|
-
const
|
|
191
|
-
function
|
|
191
|
+
const ra = m(() => h.value.filter((e) => ["line", "plot", void 0].includes(e.type))), x = m(() => h.value.filter((e) => e.type === "bar"));
|
|
192
|
+
function ua() {
|
|
192
193
|
if (!$.value)
|
|
193
194
|
return;
|
|
194
|
-
const e =
|
|
195
|
-
$.value.width = e *
|
|
195
|
+
const e = Z.value.offsetWidth, l = Z.value.offsetHeight;
|
|
196
|
+
$.value.width = e * D.value * 2, $.value.height = l * D.value * 2, f.value = e * D.value * 2, M.value = l * D.value * 2, s.value.scale(D.value, D.value), he();
|
|
196
197
|
}
|
|
197
|
-
function
|
|
198
|
-
if (s.value.clearRect(0, 0, 1e4, 1e4), s.value.fillStyle = a.value.style.chart.backgroundColor, s.value.fillRect(0, 0,
|
|
199
|
-
a.value.style.chart.grid.y.verticalLines.show &&
|
|
200
|
-
for (let
|
|
198
|
+
function sa() {
|
|
199
|
+
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)
|
|
200
|
+
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) => {
|
|
201
|
+
for (let l = 0; l < r.value.end - r.value.start + 1; l += 1)
|
|
201
202
|
C(
|
|
202
203
|
s.value,
|
|
203
204
|
[
|
|
204
205
|
{
|
|
205
|
-
x:
|
|
206
|
-
y:
|
|
206
|
+
x: t.value.left + t.value.slot * l,
|
|
207
|
+
y: t.value.bottom - e.yOffset - e.individualHeight
|
|
207
208
|
},
|
|
208
209
|
{
|
|
209
|
-
x:
|
|
210
|
-
y:
|
|
210
|
+
x: t.value.left + t.value.slot * l,
|
|
211
|
+
y: t.value.bottom - e.yOffset
|
|
211
212
|
}
|
|
212
213
|
],
|
|
213
214
|
{
|
|
@@ -215,28 +216,28 @@ const qa = ["id"], Ja = ["onClick"], Ka = {
|
|
|
215
216
|
}
|
|
216
217
|
);
|
|
217
218
|
}), a.value.style.chart.grid.x.horizontalLines.show && (a.value.style.chart.grid.x.horizontalLines.alternate ? h.value.forEach((e) => {
|
|
218
|
-
e.localYLabels.forEach((
|
|
219
|
-
o < e.localYLabels.length - 1 &&
|
|
219
|
+
e.localYLabels.forEach((l, o) => {
|
|
220
|
+
o < e.localYLabels.length - 1 && pe(
|
|
220
221
|
s.value,
|
|
221
222
|
[
|
|
222
|
-
{ x:
|
|
223
|
-
{ x:
|
|
224
|
-
{ x:
|
|
225
|
-
{ x:
|
|
223
|
+
{ x: t.value.left, y: l.y },
|
|
224
|
+
{ x: t.value.right, y: l.y },
|
|
225
|
+
{ x: t.value.right, y: e.localYLabels[o + 1].y },
|
|
226
|
+
{ x: t.value.left, y: e.localYLabels[o + 1].y }
|
|
226
227
|
],
|
|
227
228
|
{
|
|
228
|
-
fillColor: o % 2 === 0 ? "transparent" :
|
|
229
|
+
fillColor: o % 2 === 0 ? "transparent" : ee(a.value.style.chart.grid.x.horizontalLines.color, a.value.style.chart.grid.x.horizontalLines.opacity),
|
|
229
230
|
strokeColor: "transparent"
|
|
230
231
|
}
|
|
231
232
|
);
|
|
232
233
|
});
|
|
233
234
|
}) : h.value.forEach((e) => {
|
|
234
|
-
e.localYLabels.slice(
|
|
235
|
+
e.localYLabels.slice(r.value.start, r.value.end).forEach((l) => {
|
|
235
236
|
C(
|
|
236
237
|
s.value,
|
|
237
238
|
[
|
|
238
|
-
{ x:
|
|
239
|
-
{ x:
|
|
239
|
+
{ x: t.value.left, y: l.y },
|
|
240
|
+
{ x: t.value.right, y: l.y }
|
|
240
241
|
],
|
|
241
242
|
{
|
|
242
243
|
color: a.value.style.chart.grid.x.horizontalLines.color
|
|
@@ -247,8 +248,8 @@ const qa = ["id"], Ja = ["onClick"], Ka = {
|
|
|
247
248
|
C(
|
|
248
249
|
s.value,
|
|
249
250
|
[
|
|
250
|
-
{ x:
|
|
251
|
-
{ x:
|
|
251
|
+
{ x: t.value.left, y: e.localZero },
|
|
252
|
+
{ x: t.value.right, y: e.localZero }
|
|
252
253
|
],
|
|
253
254
|
{
|
|
254
255
|
color: a.value.style.chart.grid.zeroLine.color,
|
|
@@ -259,8 +260,8 @@ const qa = ["id"], Ja = ["onClick"], Ka = {
|
|
|
259
260
|
C(
|
|
260
261
|
s.value,
|
|
261
262
|
[
|
|
262
|
-
{ x:
|
|
263
|
-
{ x:
|
|
263
|
+
{ x: t.value.left, y: t.value.bottom - e.yOffset },
|
|
264
|
+
{ x: t.value.left, y: t.value.bottom - e.yOffset - e.individualHeight }
|
|
264
265
|
],
|
|
265
266
|
{
|
|
266
267
|
color: e.color
|
|
@@ -268,28 +269,28 @@ const qa = ["id"], Ja = ["onClick"], Ka = {
|
|
|
268
269
|
), C(
|
|
269
270
|
s.value,
|
|
270
271
|
[
|
|
271
|
-
{ x:
|
|
272
|
-
{ x:
|
|
272
|
+
{ x: t.value.right, y: t.value.bottom - e.yOffset },
|
|
273
|
+
{ x: t.value.right, y: t.value.bottom - e.yOffset - e.individualHeight }
|
|
273
274
|
],
|
|
274
275
|
{
|
|
275
276
|
color: e.color
|
|
276
277
|
}
|
|
277
|
-
), e.localYLabels.forEach((
|
|
278
|
-
|
|
278
|
+
), e.localYLabels.forEach((l, o) => {
|
|
279
|
+
F(
|
|
279
280
|
s.value,
|
|
280
|
-
|
|
281
|
+
K(
|
|
281
282
|
a.value.style.chart.dataLabels.formatter,
|
|
282
|
-
|
|
283
|
-
|
|
283
|
+
l.value,
|
|
284
|
+
Q({
|
|
284
285
|
p: e.prefix || a.value.style.chart.grid.y.axisLabels.prefix || "",
|
|
285
|
-
v:
|
|
286
|
+
v: l.value,
|
|
286
287
|
s: e.suffix || a.value.style.chart.grid.y.axisLabels.suffix || "",
|
|
287
288
|
r: e.rounding || a.value.style.chart.grid.y.axisLabels.rounding || 0
|
|
288
289
|
}),
|
|
289
|
-
{ datapoint:
|
|
290
|
+
{ datapoint: l, seriesIndex: o }
|
|
290
291
|
),
|
|
291
|
-
|
|
292
|
-
|
|
292
|
+
l.x + a.value.style.chart.grid.y.axisLabels.offsetX,
|
|
293
|
+
l.y,
|
|
293
294
|
{
|
|
294
295
|
align: "right",
|
|
295
296
|
font: `${Math.round(f.value / 40 * a.value.style.chart.grid.y.axisLabels.fontSizeRatio)}px ${a.value.style.fontFamily}`,
|
|
@@ -298,11 +299,11 @@ const qa = ["id"], Ja = ["onClick"], Ka = {
|
|
|
298
299
|
);
|
|
299
300
|
});
|
|
300
301
|
}), h.value.forEach((e) => {
|
|
301
|
-
|
|
302
|
+
F(
|
|
302
303
|
s.value,
|
|
303
304
|
e.name,
|
|
304
305
|
f.value / 35,
|
|
305
|
-
|
|
306
|
+
t.value.bottom - e.yOffset - e.individualHeight / 2,
|
|
306
307
|
{
|
|
307
308
|
align: "center",
|
|
308
309
|
rotation: -90,
|
|
@@ -312,29 +313,29 @@ const qa = ["id"], Ja = ["onClick"], Ka = {
|
|
|
312
313
|
);
|
|
313
314
|
});
|
|
314
315
|
else {
|
|
315
|
-
if (a.value.style.chart.grid.y.verticalLines.show &&
|
|
316
|
-
for (let e = 0; e <
|
|
316
|
+
if (a.value.style.chart.grid.y.verticalLines.show && r.value.end - r.value.start < a.value.style.chart.grid.y.verticalLines.hideUnderXLength)
|
|
317
|
+
for (let e = 0; e < r.value.end - r.value.start + 1; e += 1)
|
|
317
318
|
C(
|
|
318
319
|
s.value,
|
|
319
320
|
[
|
|
320
|
-
{ x:
|
|
321
|
-
{ x:
|
|
321
|
+
{ x: t.value.left + t.value.slot * e, y: t.value.top },
|
|
322
|
+
{ x: t.value.left + t.value.slot * e, y: t.value.bottom }
|
|
322
323
|
],
|
|
323
324
|
{
|
|
324
325
|
color: a.value.style.chart.grid.y.verticalLines.color
|
|
325
326
|
}
|
|
326
327
|
);
|
|
327
|
-
a.value.style.chart.grid.x.horizontalLines.show && (a.value.style.chart.grid.x.horizontalLines.alternate ? p.value.yLabels.forEach((e,
|
|
328
|
-
|
|
328
|
+
a.value.style.chart.grid.x.horizontalLines.show && (a.value.style.chart.grid.x.horizontalLines.alternate ? p.value.yLabels.forEach((e, l) => {
|
|
329
|
+
l < p.value.yLabels.length - 1 && pe(
|
|
329
330
|
s.value,
|
|
330
331
|
[
|
|
331
|
-
{ x:
|
|
332
|
-
{ x:
|
|
333
|
-
{ x:
|
|
334
|
-
{ x:
|
|
332
|
+
{ x: t.value.left, y: e.y },
|
|
333
|
+
{ x: t.value.right, y: e.y },
|
|
334
|
+
{ x: t.value.right, y: p.value.yLabels[l + 1].y },
|
|
335
|
+
{ x: t.value.left, y: p.value.yLabels[l + 1].y }
|
|
335
336
|
],
|
|
336
337
|
{
|
|
337
|
-
fillColor:
|
|
338
|
+
fillColor: l % 2 === 0 ? "transparent" : ee(a.value.style.chart.grid.x.horizontalLines.color, a.value.style.chart.grid.x.horizontalLines.opacity),
|
|
338
339
|
strokeColor: "transparent"
|
|
339
340
|
}
|
|
340
341
|
);
|
|
@@ -342,8 +343,8 @@ const qa = ["id"], Ja = ["onClick"], Ka = {
|
|
|
342
343
|
C(
|
|
343
344
|
s.value,
|
|
344
345
|
[
|
|
345
|
-
{ x:
|
|
346
|
-
{ x:
|
|
346
|
+
{ x: t.value.left, y: e.y },
|
|
347
|
+
{ x: t.value.right, y: e.y }
|
|
347
348
|
],
|
|
348
349
|
{
|
|
349
350
|
color: a.value.style.chart.grid.x.horizontalLines.color
|
|
@@ -352,8 +353,8 @@ const qa = ["id"], Ja = ["onClick"], Ka = {
|
|
|
352
353
|
})), a.value.style.chart.grid.y.showAxis && C(
|
|
353
354
|
s.value,
|
|
354
355
|
[
|
|
355
|
-
{ x:
|
|
356
|
-
{ x:
|
|
356
|
+
{ x: t.value.left, y: t.value.top },
|
|
357
|
+
{ x: t.value.left, y: t.value.bottom }
|
|
357
358
|
],
|
|
358
359
|
{
|
|
359
360
|
color: a.value.style.chart.grid.y.axisColor,
|
|
@@ -362,8 +363,8 @@ const qa = ["id"], Ja = ["onClick"], Ka = {
|
|
|
362
363
|
), a.value.style.chart.grid.x.showAxis && C(
|
|
363
364
|
s.value,
|
|
364
365
|
[
|
|
365
|
-
{ x:
|
|
366
|
-
{ x:
|
|
366
|
+
{ x: t.value.left, y: t.value.bottom },
|
|
367
|
+
{ x: t.value.right, y: t.value.bottom }
|
|
367
368
|
],
|
|
368
369
|
{
|
|
369
370
|
color: a.value.style.chart.grid.x.axisColor,
|
|
@@ -372,26 +373,26 @@ const qa = ["id"], Ja = ["onClick"], Ka = {
|
|
|
372
373
|
), a.value.style.chart.grid.zeroLine.show && C(
|
|
373
374
|
s.value,
|
|
374
375
|
[
|
|
375
|
-
{ x:
|
|
376
|
-
{ x:
|
|
376
|
+
{ x: t.value.left, y: p.value.zero },
|
|
377
|
+
{ x: t.value.right, y: p.value.zero }
|
|
377
378
|
],
|
|
378
379
|
{
|
|
379
380
|
color: a.value.style.chart.grid.zeroLine.color,
|
|
380
381
|
lineDash: a.value.style.chart.grid.zeroLine.dashed ? [10, 10] : [0, 0]
|
|
381
382
|
}
|
|
382
|
-
), a.value.style.chart.grid.y.axisLabels.show && p.value.yLabels.forEach((e,
|
|
383
|
-
|
|
383
|
+
), a.value.style.chart.grid.y.axisLabels.show && p.value.yLabels.forEach((e, l) => {
|
|
384
|
+
F(
|
|
384
385
|
s.value,
|
|
385
|
-
|
|
386
|
+
K(
|
|
386
387
|
a.value.style.chart.dataLabels.formatter,
|
|
387
388
|
e.value,
|
|
388
|
-
|
|
389
|
+
Q({
|
|
389
390
|
p: a.value.style.chart.grid.y.axisLabels.prefix || "",
|
|
390
391
|
v: e.value,
|
|
391
392
|
s: a.value.style.chart.grid.y.axisLabels.suffix || "",
|
|
392
393
|
r: a.value.style.chart.grid.y.axisLabels.rounding || 0
|
|
393
394
|
}),
|
|
394
|
-
{ datapoint: e, seriesIndex:
|
|
395
|
+
{ datapoint: e, seriesIndex: l }
|
|
395
396
|
),
|
|
396
397
|
e.x + a.value.style.chart.grid.y.axisLabels.offsetX,
|
|
397
398
|
e.y,
|
|
@@ -403,18 +404,18 @@ const qa = ["id"], Ja = ["onClick"], Ka = {
|
|
|
403
404
|
);
|
|
404
405
|
});
|
|
405
406
|
}
|
|
406
|
-
a.value.style.chart.grid.y.axisName &&
|
|
407
|
+
a.value.style.chart.grid.y.axisName && F(
|
|
407
408
|
s.value,
|
|
408
409
|
a.value.style.chart.grid.y.axisName,
|
|
409
410
|
f.value - f.value / 40 * a.value.style.chart.grid.y.axisLabels.fontSizeRatio * 1.2,
|
|
410
|
-
|
|
411
|
+
t.value.bottom - t.value.height / 2,
|
|
411
412
|
{
|
|
412
413
|
font: `${Math.round(f.value / 40 * a.value.style.chart.grid.y.axisLabels.fontSizeRatio)}px ${a.value.style.fontFamily}`,
|
|
413
414
|
color: a.value.style.chart.color,
|
|
414
415
|
align: "center",
|
|
415
416
|
rotation: 90
|
|
416
417
|
}
|
|
417
|
-
), a.value.style.chart.grid.x.axisName &&
|
|
418
|
+
), a.value.style.chart.grid.x.axisName && F(
|
|
418
419
|
s.value,
|
|
419
420
|
a.value.style.chart.grid.x.axisName,
|
|
420
421
|
f.value / 2,
|
|
@@ -426,12 +427,12 @@ const qa = ["id"], Ja = ["onClick"], Ka = {
|
|
|
426
427
|
}
|
|
427
428
|
);
|
|
428
429
|
}
|
|
429
|
-
function
|
|
430
|
-
for (let
|
|
431
|
-
const o = (d.value ===
|
|
432
|
-
|
|
430
|
+
function na(e) {
|
|
431
|
+
for (let l = 0; l < e.coordinatesLine.length; l += 1) {
|
|
432
|
+
const o = (d.value === l ? f.value / 150 : a.value.style.chart.line.plots.show ? f.value / 200 : 0) * a.value.style.chart.line.plots.radiusRatio;
|
|
433
|
+
qe(
|
|
433
434
|
s.value,
|
|
434
|
-
{ x: e.coordinatesLine[
|
|
435
|
+
{ x: e.coordinatesLine[l].x, y: e.coordinatesLine[l].y },
|
|
435
436
|
o,
|
|
436
437
|
{
|
|
437
438
|
color: a.value.style.chart.backgroundColor,
|
|
@@ -441,23 +442,23 @@ const qa = ["id"], Ja = ["onClick"], Ka = {
|
|
|
441
442
|
);
|
|
442
443
|
}
|
|
443
444
|
}
|
|
444
|
-
function
|
|
445
|
-
for (let
|
|
446
|
-
|
|
445
|
+
function ia(e) {
|
|
446
|
+
for (let l = 0; l < e.coordinatesLine.length; l += 1)
|
|
447
|
+
F(
|
|
447
448
|
s.value,
|
|
448
|
-
|
|
449
|
+
K(
|
|
449
450
|
a.value.style.chart.dataLabels.formatter,
|
|
450
|
-
e.coordinatesLine[
|
|
451
|
-
|
|
451
|
+
e.coordinatesLine[l].value,
|
|
452
|
+
Q({
|
|
452
453
|
p: e.prefix || "",
|
|
453
|
-
v: e.coordinatesLine[
|
|
454
|
+
v: e.coordinatesLine[l].value,
|
|
454
455
|
s: e.suffix || "",
|
|
455
456
|
r: e.rounding || 0
|
|
456
457
|
}),
|
|
457
|
-
{ datapoint: e.coordinatesLine[
|
|
458
|
+
{ datapoint: e.coordinatesLine[l], seriesIndex: l }
|
|
458
459
|
),
|
|
459
|
-
e.coordinatesLine[
|
|
460
|
-
e.coordinatesLine[
|
|
460
|
+
e.coordinatesLine[l].x,
|
|
461
|
+
e.coordinatesLine[l].y + a.value.style.chart.dataLabels.offsetY,
|
|
461
462
|
{
|
|
462
463
|
align: "center",
|
|
463
464
|
font: `${Math.round(f.value / 40 * a.value.style.chart.dataLabels.fontSizeRatio)}px ${a.value.style.fontFamily}`,
|
|
@@ -467,27 +468,27 @@ const qa = ["id"], Ja = ["onClick"], Ka = {
|
|
|
467
468
|
}
|
|
468
469
|
);
|
|
469
470
|
}
|
|
470
|
-
function
|
|
471
|
-
for (let e =
|
|
472
|
-
(
|
|
471
|
+
function va() {
|
|
472
|
+
for (let e = r.value.start; e < r.value.end; e += 1)
|
|
473
|
+
(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)) && F(
|
|
473
474
|
s.value,
|
|
474
475
|
a.value.style.chart.grid.y.timeLabels.values[e] || e + 1,
|
|
475
|
-
|
|
476
|
-
|
|
476
|
+
t.value.left + t.value.slot * (e - r.value.start) + t.value.slot / 2,
|
|
477
|
+
t.value.bottom + f.value / a.value.style.chart.grid.y.timeLabels.offsetY,
|
|
477
478
|
{
|
|
478
479
|
align: a.value.style.chart.grid.y.timeLabels.rotation === 0 ? "center" : a.value.style.chart.grid.y.timeLabels.rotation > 0 ? "left" : "right",
|
|
479
480
|
font: `${Math.round(f.value / 40 * a.value.style.chart.grid.y.timeLabels.fontSizeRatio)}px ${a.value.style.fontFamily}`,
|
|
480
|
-
color:
|
|
481
|
+
color: ee(a.value.style.chart.grid.y.timeLabels.color, d.value !== null ? d.value + r.value.start === e ? 100 : 20 : 100),
|
|
481
482
|
rotation: a.value.style.chart.grid.y.timeLabels.rotation
|
|
482
483
|
}
|
|
483
484
|
);
|
|
484
485
|
}
|
|
485
|
-
function
|
|
486
|
+
function _e() {
|
|
486
487
|
C(
|
|
487
488
|
s.value,
|
|
488
489
|
[
|
|
489
|
-
{ x:
|
|
490
|
-
{ x:
|
|
490
|
+
{ x: t.value.left + t.value.slot * d.value + t.value.slot / 2, y: t.value.top },
|
|
491
|
+
{ x: t.value.left + t.value.slot * d.value + t.value.slot / 2, y: t.value.bottom }
|
|
491
492
|
],
|
|
492
493
|
{
|
|
493
494
|
color: a.value.style.chart.selector.color,
|
|
@@ -497,26 +498,26 @@ const qa = ["id"], Ja = ["onClick"], Ka = {
|
|
|
497
498
|
}
|
|
498
499
|
);
|
|
499
500
|
}
|
|
500
|
-
function
|
|
501
|
-
x.value.forEach((e,
|
|
501
|
+
function ca() {
|
|
502
|
+
x.value.forEach((e, l) => {
|
|
502
503
|
for (let o = 0; o < e.coordinatesLine.length; o += 1)
|
|
503
|
-
|
|
504
|
+
pe(
|
|
504
505
|
s.value,
|
|
505
506
|
[
|
|
506
507
|
{
|
|
507
|
-
x:
|
|
508
|
-
y:
|
|
508
|
+
x: t.value.left + t.value.slot * o + t.value.slot / 10 + (u.value.stacked ? 0 : t.value.slot / x.value.length * l - (l === 0 ? 0 : t.value.slot / (5 * x.value.length) * l)),
|
|
509
|
+
y: u.value.stacked ? e.localZero : p.value.zero
|
|
509
510
|
},
|
|
510
511
|
{
|
|
511
|
-
x:
|
|
512
|
-
y:
|
|
512
|
+
x: t.value.left + t.value.slot * o + t.value.slot / 10 + (u.value.stacked ? 0 : t.value.slot / x.value.length * l - (l === 0 ? 0 : t.value.slot / (5 * x.value.length) * l)) + t.value.slot * 0.8 / (u.value.stacked ? 1 : x.value.length),
|
|
513
|
+
y: u.value.stacked ? e.localZero : p.value.zero
|
|
513
514
|
},
|
|
514
515
|
{
|
|
515
|
-
x:
|
|
516
|
+
x: t.value.left + t.value.slot * o + t.value.slot / 10 + (u.value.stacked ? 0 : t.value.slot / x.value.length * l - (l === 0 ? 0 : t.value.slot / (5 * x.value.length) * l)) + t.value.slot * 0.8 / (u.value.stacked ? 1 : x.value.length),
|
|
516
517
|
y: e.coordinatesLine[o].y
|
|
517
518
|
},
|
|
518
519
|
{
|
|
519
|
-
x:
|
|
520
|
+
x: t.value.left + t.value.slot * o + t.value.slot / 10 + (u.value.stacked ? 0 : t.value.slot / x.value.length * l - (l === 0 ? 0 : t.value.slot / (5 * x.value.length) * l)),
|
|
520
521
|
y: e.coordinatesLine[o].y
|
|
521
522
|
}
|
|
522
523
|
],
|
|
@@ -530,20 +531,20 @@ const qa = ["id"], Ja = ["onClick"], Ka = {
|
|
|
530
531
|
},
|
|
531
532
|
end: {
|
|
532
533
|
x: e.coordinatesLine[o].x,
|
|
533
|
-
y:
|
|
534
|
+
y: u.value.stacked ? e.localZero : p.value.zero
|
|
534
535
|
},
|
|
535
536
|
stops: [
|
|
536
537
|
{ offset: 0, color: e.color },
|
|
537
|
-
{ offset: 1, color:
|
|
538
|
+
{ offset: 1, color: _a(e.color, 0.5) }
|
|
538
539
|
]
|
|
539
540
|
}
|
|
540
541
|
}
|
|
541
|
-
),
|
|
542
|
+
), u.value.showDataLabels && [!0, void 0].includes(e.dataLabels) && F(
|
|
542
543
|
s.value,
|
|
543
|
-
|
|
544
|
+
K(
|
|
544
545
|
a.value.style.chart.dataLabels.formatter,
|
|
545
546
|
e.coordinatesLine[o].value,
|
|
546
|
-
|
|
547
|
+
Q({
|
|
547
548
|
p: e.prefix || "",
|
|
548
549
|
v: e.coordinatesLine[o].value,
|
|
549
550
|
s: e.suffix || "",
|
|
@@ -551,8 +552,8 @@ const qa = ["id"], Ja = ["onClick"], Ka = {
|
|
|
551
552
|
}),
|
|
552
553
|
{ datapoint: e.coordinatesLine[o], seriesIndex: o }
|
|
553
554
|
),
|
|
554
|
-
|
|
555
|
-
(e.coordinatesLine[o].value < 0 ?
|
|
555
|
+
t.value.left + t.value.slot * o + t.value.slot / 10 + (u.value.stacked ? 0 : t.value.slot / x.value.length * l - (l === 0 ? 0 : t.value.slot / (5 * x.value.length) * l)) + t.value.slot * 0.4 / (u.value.stacked ? 1 : x.value.length),
|
|
556
|
+
(e.coordinatesLine[o].value < 0 ? u.value.stacked ? e.localZero : p.value.zero : e.coordinatesLine[o].y) + a.value.style.chart.dataLabels.offsetY,
|
|
556
557
|
{
|
|
557
558
|
align: "center",
|
|
558
559
|
font: `${Math.round(f.value / 40 * a.value.style.chart.dataLabels.fontSizeRatio)}px ${a.value.style.fontFamily}`,
|
|
@@ -563,19 +564,19 @@ const qa = ["id"], Ja = ["onClick"], Ka = {
|
|
|
563
564
|
);
|
|
564
565
|
});
|
|
565
566
|
}
|
|
566
|
-
function
|
|
567
|
-
e.useArea ?
|
|
567
|
+
function da(e) {
|
|
568
|
+
e.useArea ? u.value.stacked ? Je(
|
|
568
569
|
s.value,
|
|
569
570
|
[{ x: e.coordinatesLine[0].x, y: e.localZero }, ...e.coordinatesLine, { x: e.coordinatesLine.at(-1).x, y: e.localZero }],
|
|
570
571
|
{
|
|
571
|
-
fillColor:
|
|
572
|
+
fillColor: ee(e.color, a.value.style.chart.area.opacity),
|
|
572
573
|
strokeColor: "transparent"
|
|
573
574
|
}
|
|
574
|
-
) :
|
|
575
|
+
) : Je(
|
|
575
576
|
s.value,
|
|
576
577
|
[{ x: e.coordinatesLine[0].x, y: p.value.zero }, ...e.coordinatesLine, { x: e.coordinatesLine.at(-1).x, y: p.value.zero }],
|
|
577
578
|
{
|
|
578
|
-
fillColor:
|
|
579
|
+
fillColor: ee(e.color, a.value.style.chart.area.opacity),
|
|
579
580
|
strokeColor: "transparent"
|
|
580
581
|
}
|
|
581
582
|
) : C(s.value, e.coordinatesLine, {
|
|
@@ -583,13 +584,13 @@ const qa = ["id"], Ja = ["onClick"], Ka = {
|
|
|
583
584
|
lineWidth: 3
|
|
584
585
|
});
|
|
585
586
|
}
|
|
586
|
-
function
|
|
587
|
-
h.value.forEach((e,
|
|
587
|
+
function ha() {
|
|
588
|
+
h.value.forEach((e, l) => {
|
|
588
589
|
C(
|
|
589
590
|
s.value,
|
|
590
591
|
[
|
|
591
|
-
{ x:
|
|
592
|
-
{ x:
|
|
592
|
+
{ x: t.value.left, y: t.value.bottom - e.yOffset },
|
|
593
|
+
{ x: t.value.right, y: t.value.bottom - e.yOffset }
|
|
593
594
|
],
|
|
594
595
|
{
|
|
595
596
|
color: a.value.style.chart.grid.x.horizontalLines.color,
|
|
@@ -598,13 +599,13 @@ const qa = ["id"], Ja = ["onClick"], Ka = {
|
|
|
598
599
|
);
|
|
599
600
|
});
|
|
600
601
|
}
|
|
601
|
-
function
|
|
602
|
-
|
|
603
|
-
(e.type === "line" || !e.type) &&
|
|
604
|
-
}),
|
|
602
|
+
function he() {
|
|
603
|
+
sa(), N.value ? (z.value && d.value !== null && a.value.style.chart.selector.show && _e(), ca(), u.value.stacked && a.value.style.chart.grid.x.showAxis && ha(), ra.value.forEach((e) => {
|
|
604
|
+
(e.type === "line" || !e.type) && da(e), z.value && (na(e), u.value.showDataLabels && [!0, void 0].includes(e.dataLabels) && ia(e));
|
|
605
|
+
}), ve.value = Da($.value)) : (ve.value && (s.value.clearRect(0, 0, 1e4, 1e4), s.value.drawImage(ve.value, 0, 0)), z.value && d.value !== null && a.value.style.chart.selector.show && _e(), z.value && d.value !== null && h.value.forEach((e) => {
|
|
605
606
|
if (e.type === "line" || !e.type || e.type === "plot") {
|
|
606
607
|
if (!e.coordinatesLine[d.value]) return;
|
|
607
|
-
e.coordinatesLine[d.value].x !== void 0 && e.coordinatesLine[d.value].y !== void 0 &&
|
|
608
|
+
e.coordinatesLine[d.value].x !== void 0 && e.coordinatesLine[d.value].y !== void 0 && qe(
|
|
608
609
|
s.value,
|
|
609
610
|
{
|
|
610
611
|
x: e.coordinatesLine[d.value].x,
|
|
@@ -618,22 +619,22 @@ const qa = ["id"], Ja = ["onClick"], Ka = {
|
|
|
618
619
|
}
|
|
619
620
|
);
|
|
620
621
|
}
|
|
621
|
-
})), a.value.style.chart.grid.y.timeLabels.show &&
|
|
622
|
+
})), a.value.style.chart.grid.y.timeLabels.show && va(), N.value = !1;
|
|
622
623
|
}
|
|
623
|
-
const
|
|
624
|
-
z.value = !0,
|
|
624
|
+
const le = Aa(() => {
|
|
625
|
+
z.value = !0, ua();
|
|
625
626
|
}, R.value > 200 ? 10 : 1, !z.value);
|
|
626
|
-
function
|
|
627
|
-
const { left:
|
|
628
|
-
if (o * 2 <
|
|
627
|
+
function fa(e) {
|
|
628
|
+
const { left: l } = $.value.getBoundingClientRect(), o = e.clientX - l;
|
|
629
|
+
if (o * 2 < t.value.left || o * 2 > t.value.right) {
|
|
629
630
|
ae.value = !1, d.value = null;
|
|
630
631
|
return;
|
|
631
632
|
}
|
|
632
|
-
const i = o * 2 -
|
|
633
|
-
if (d.value = Math.floor(i /
|
|
633
|
+
const i = o * 2 - t.value.left;
|
|
634
|
+
if (d.value = Math.floor(i / t.value.slot), ae.value = !0, !z.value) return;
|
|
634
635
|
let c = "";
|
|
635
636
|
const y = a.value.style.chart.tooltip.customFormat;
|
|
636
|
-
|
|
637
|
+
je(y) && Fa(() => y({
|
|
637
638
|
seriesIndex: d.value,
|
|
638
639
|
datapoint: h.value.map((n) => ({
|
|
639
640
|
shape: n.shape || null,
|
|
@@ -644,7 +645,7 @@ const qa = ["id"], Ja = ["onClick"], Ka = {
|
|
|
644
645
|
})),
|
|
645
646
|
series: h.value,
|
|
646
647
|
config: a.value
|
|
647
|
-
})) ?
|
|
648
|
+
})) ? te.value = y({
|
|
648
649
|
seriesIndex: d.value,
|
|
649
650
|
datapoint: h.value.map((n) => ({
|
|
650
651
|
shape: n.shape || null,
|
|
@@ -655,79 +656,79 @@ const qa = ["id"], Ja = ["onClick"], Ka = {
|
|
|
655
656
|
})),
|
|
656
657
|
series: h.value,
|
|
657
658
|
config: a.value
|
|
658
|
-
}) : (a.value.style.chart.grid.y.timeLabels.values.slice(
|
|
659
|
+
}) : (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 += oa.value.join(""), te.value = c), z.value = !1;
|
|
659
660
|
}
|
|
660
|
-
|
|
661
|
-
|
|
662
|
-
}),
|
|
663
|
-
|
|
661
|
+
W(() => d.value, (e) => {
|
|
662
|
+
le();
|
|
663
|
+
}), W(() => r.value, (e) => {
|
|
664
|
+
N.value = !0, he();
|
|
664
665
|
}, {
|
|
665
666
|
deep: !0
|
|
666
|
-
}),
|
|
667
|
-
|
|
668
|
-
}),
|
|
669
|
-
|
|
667
|
+
}), W(() => u.value.showDataLabels, (e) => {
|
|
668
|
+
N.value = !0, he();
|
|
669
|
+
}), W(() => u.value.stacked, (e) => {
|
|
670
|
+
N.value = !0, z.value = !0, le();
|
|
670
671
|
});
|
|
671
|
-
function
|
|
672
|
-
ae.value = !1, d.value = null,
|
|
672
|
+
function ya() {
|
|
673
|
+
ae.value = !1, d.value = null, te.value = "";
|
|
673
674
|
}
|
|
674
|
-
const oe = v(null),
|
|
675
|
-
|
|
676
|
-
|
|
675
|
+
const oe = v(null), re = v(null);
|
|
676
|
+
ma(() => {
|
|
677
|
+
Ae();
|
|
677
678
|
});
|
|
678
|
-
function
|
|
679
|
-
if (
|
|
679
|
+
function Ae() {
|
|
680
|
+
if (Oa(E.dataset) ? Pa({
|
|
680
681
|
componentName: "VueUiXyCanvas",
|
|
681
682
|
type: "dataset"
|
|
682
683
|
}) : $.value && (s.value = $.value.getContext("2d", { willReadFrequently: !0 })), a.value.responsive) {
|
|
683
|
-
const e =
|
|
684
|
-
const { width:
|
|
685
|
-
chart:
|
|
686
|
-
title: a.value.style.chart.title.text ?
|
|
687
|
-
legend: a.value.style.chart.legend.show ?
|
|
688
|
-
slicer: a.value.style.chart.zoom.show && R.value > 1 ?
|
|
684
|
+
const e = Ha(() => {
|
|
685
|
+
const { width: l, height: o } = Wa({
|
|
686
|
+
chart: U.value,
|
|
687
|
+
title: a.value.style.chart.title.text ? ke.value : null,
|
|
688
|
+
legend: a.value.style.chart.legend.show ? Ce.value : null,
|
|
689
|
+
slicer: a.value.style.chart.zoom.show && R.value > 1 ? we.value : null
|
|
689
690
|
});
|
|
690
|
-
|
|
691
|
+
Me.value = `${l} / ${o}`;
|
|
691
692
|
});
|
|
692
|
-
oe.value = new ResizeObserver(e), oe.value.observe(
|
|
693
|
+
oe.value = new ResizeObserver(e), oe.value.observe(U.value.parentNode);
|
|
693
694
|
}
|
|
694
|
-
|
|
695
|
-
for (const
|
|
696
|
-
|
|
697
|
-
}),
|
|
695
|
+
re.value = new ResizeObserver((e) => {
|
|
696
|
+
for (const l of e)
|
|
697
|
+
l.contentBoxSize && Z.value && (N.value = !0, le());
|
|
698
|
+
}), re.value.observe(Z.value);
|
|
698
699
|
}
|
|
699
|
-
|
|
700
|
-
|
|
700
|
+
xa(() => {
|
|
701
|
+
re.value && re.value.disconnect(), oe.value && oe.value.disconnect();
|
|
701
702
|
});
|
|
702
|
-
function
|
|
703
|
-
|
|
703
|
+
function De(e) {
|
|
704
|
+
ea("selectLegend", h.value.find((l) => l.absoluteIndex === e)), S.value.includes(e) ? S.value = S.value.filter((l) => l !== e) : S.value.push(e), N.value = !0, le();
|
|
704
705
|
}
|
|
705
|
-
const
|
|
706
|
+
const He = m(() => H.value.map((e, l) => ({
|
|
706
707
|
...e,
|
|
707
708
|
name: e.name,
|
|
708
|
-
color:
|
|
709
|
+
color: Ve(e.color) || Fe.value[l] || A[l] || A[l % A.length],
|
|
709
710
|
shape: e.shape || "circle",
|
|
710
711
|
prefix: e.prefix || "",
|
|
711
712
|
suffix: e.suffix || "",
|
|
712
713
|
rounding: e.rounding || 0
|
|
713
714
|
})).map((e) => ({
|
|
714
715
|
...e,
|
|
715
|
-
opacity:
|
|
716
|
-
segregate: () =>
|
|
717
|
-
isSegregated:
|
|
718
|
-
}))),
|
|
716
|
+
opacity: S.value.includes(e.absoluteIndex) ? 0.5 : 1,
|
|
717
|
+
segregate: () => De(e.absoluteIndex),
|
|
718
|
+
isSegregated: S.value.includes(e.absoluteIndex)
|
|
719
|
+
}))), ga = m(() => ({
|
|
719
720
|
cy: "donut-div-legend",
|
|
720
721
|
backgroundColor: a.value.style.chart.legend.backgroundColor,
|
|
721
722
|
color: a.value.style.chart.legend.color,
|
|
722
723
|
fontSize: a.value.style.chart.legend.fontSize,
|
|
723
724
|
paddingBottom: 12,
|
|
724
725
|
fontWeight: a.value.style.chart.legend.bold ? "bold" : ""
|
|
725
|
-
})),
|
|
726
|
+
})), ue = m(() => {
|
|
726
727
|
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>');
|
|
727
|
-
let
|
|
728
|
+
let l = [];
|
|
728
729
|
for (let c = 0; c < R.value; c += 1) {
|
|
729
730
|
const y = h.value.map((n) => n.series[c] ?? 0).reduce((n, g) => n + g, 0);
|
|
730
|
-
|
|
731
|
+
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((y ?? 0).toFixed(a.value.table.rounding)));
|
|
731
732
|
}
|
|
732
733
|
const o = {
|
|
733
734
|
th: {
|
|
@@ -742,65 +743,70 @@ const qa = ["id"], Ja = ["onClick"], Ka = {
|
|
|
742
743
|
},
|
|
743
744
|
breakpoint: a.value.table.responsiveBreakpoint
|
|
744
745
|
}, i = [a.value.table.columnNames.period].concat(h.value.map((c) => c.name)).concat(a.value.table.columnNames.total);
|
|
745
|
-
return { head: e, body:
|
|
746
|
-
}),
|
|
746
|
+
return { head: e, body: l.slice(0, r.value.end - r.value.start), config: o, colNames: i };
|
|
747
|
+
}), We = m(() => {
|
|
747
748
|
if (h.value.length === 0) return { head: [], body: [], config: {}, columnNames: [] };
|
|
748
749
|
const e = h.value.map((o) => ({
|
|
749
750
|
label: o.name,
|
|
750
751
|
color: o.color,
|
|
751
752
|
type: o.type
|
|
752
|
-
})),
|
|
753
|
-
for (let o =
|
|
753
|
+
})), l = [];
|
|
754
|
+
for (let o = r.value.start; o < r.value.end; o += 1) {
|
|
754
755
|
const i = [a.value.style.chart.grid.y.timeLabels.values[o] || o + 1];
|
|
755
756
|
h.value.forEach((c) => {
|
|
756
757
|
i.push(Number((c.series[o] || 0).toFixed(a.value.table.rounding)));
|
|
757
|
-
}),
|
|
758
|
+
}), l.push(i);
|
|
758
759
|
}
|
|
759
|
-
return { head: e, body:
|
|
760
|
+
return { head: e, body: l };
|
|
760
761
|
});
|
|
761
|
-
function
|
|
762
|
-
const e = [[a.value.style.chart.title.text], [a.value.style.chart.title.subtitle.text], [""]],
|
|
763
|
-
|
|
762
|
+
function Ye() {
|
|
763
|
+
const e = [[a.value.style.chart.title.text], [a.value.style.chart.title.subtitle.text], [""]], l = ["", ...We.value.head.map((y) => y.label)], o = We.value.body, i = e.concat([l]).concat(o), c = Ea(i);
|
|
764
|
+
Na({ csvContent: c, title: a.value.style.chart.title.text || "vue-ui-xy-canvas" });
|
|
764
765
|
}
|
|
765
|
-
function
|
|
766
|
+
function pa() {
|
|
766
767
|
return h.value;
|
|
767
768
|
}
|
|
768
|
-
function Ye() {
|
|
769
|
-
r.value.showTable = !r.value.showTable;
|
|
770
|
-
}
|
|
771
769
|
function Be() {
|
|
772
|
-
|
|
770
|
+
u.value.showTable = !u.value.showTable;
|
|
773
771
|
}
|
|
774
772
|
function Xe() {
|
|
775
|
-
|
|
773
|
+
u.value.showDataLabels = !u.value.showDataLabels;
|
|
776
774
|
}
|
|
777
|
-
function
|
|
778
|
-
|
|
775
|
+
function Ue() {
|
|
776
|
+
u.value.stacked = !u.value.stacked;
|
|
777
|
+
}
|
|
778
|
+
function Ze() {
|
|
779
|
+
u.value.showTooltip = !u.value.showTooltip;
|
|
780
|
+
}
|
|
781
|
+
const se = v(!1);
|
|
782
|
+
function fe() {
|
|
783
|
+
se.value = !se.value;
|
|
779
784
|
}
|
|
780
|
-
return
|
|
781
|
-
getData:
|
|
782
|
-
generateCsv:
|
|
783
|
-
generatePdf:
|
|
784
|
-
generateImage:
|
|
785
|
-
toggleTable:
|
|
786
|
-
toggleLabels:
|
|
787
|
-
toggleStack:
|
|
788
|
-
toggleTooltip:
|
|
789
|
-
|
|
790
|
-
|
|
785
|
+
return Qe({
|
|
786
|
+
getData: pa,
|
|
787
|
+
generateCsv: Ye,
|
|
788
|
+
generatePdf: Oe,
|
|
789
|
+
generateImage: Pe,
|
|
790
|
+
toggleTable: Be,
|
|
791
|
+
toggleLabels: Xe,
|
|
792
|
+
toggleStack: Ue,
|
|
793
|
+
toggleTooltip: Ze,
|
|
794
|
+
toggleAnnotator: fe
|
|
795
|
+
}), (e, l) => (w(), ne("div", {
|
|
796
|
+
style: q(`width:100%; position:relative; ${a.value.responsive ? "height: 100%" : ""}`),
|
|
791
797
|
ref_key: "xy",
|
|
792
|
-
ref:
|
|
793
|
-
id: `xy_canvas_${
|
|
794
|
-
class:
|
|
798
|
+
ref: U,
|
|
799
|
+
id: `xy_canvas_${ie.value}`,
|
|
800
|
+
class: La(`vue-ui-donut ${ce.value ? "vue-data-ui-wrapper-fullscreen" : ""}`)
|
|
795
801
|
}, [
|
|
796
|
-
a.value.style.chart.title.text ? (
|
|
802
|
+
a.value.style.chart.title.text ? (w(), ne("div", {
|
|
797
803
|
key: 0,
|
|
798
804
|
ref_key: "chartTitle",
|
|
799
|
-
ref:
|
|
800
|
-
style:
|
|
805
|
+
ref: ke,
|
|
806
|
+
style: q(`width:100%;background:${a.value.style.chart.backgroundColor};`)
|
|
801
807
|
}, [
|
|
802
|
-
(
|
|
803
|
-
key: `title_${
|
|
808
|
+
(w(), P(Xa, {
|
|
809
|
+
key: `title_${Se.value}`,
|
|
804
810
|
config: {
|
|
805
811
|
title: {
|
|
806
812
|
cy: "xy-canvas-title",
|
|
@@ -812,109 +818,119 @@ const qa = ["id"], Ja = ["onClick"], Ka = {
|
|
|
812
818
|
}
|
|
813
819
|
}
|
|
814
820
|
}, null, 8, ["config"]))
|
|
815
|
-
], 4)) :
|
|
816
|
-
a.value.userOptions.show &&
|
|
821
|
+
], 4)) : Y("", !0),
|
|
822
|
+
a.value.userOptions.show && de.value ? (w(), P(Ga, {
|
|
817
823
|
ref: "details",
|
|
818
|
-
key: `user_option_${
|
|
824
|
+
key: `user_option_${Le.value}`,
|
|
819
825
|
backgroundColor: a.value.style.chart.backgroundColor,
|
|
820
826
|
color: a.value.style.chart.color,
|
|
821
|
-
isPrinting:
|
|
822
|
-
isImaging:
|
|
823
|
-
uid:
|
|
827
|
+
isPrinting: _(Re),
|
|
828
|
+
isImaging: _(Ie),
|
|
829
|
+
uid: ie.value,
|
|
824
830
|
hasTooltip: a.value.userOptions.buttons.tooltip && a.value.style.chart.tooltip.show,
|
|
825
831
|
hasPdf: a.value.userOptions.buttons.pdf,
|
|
826
832
|
hasImg: a.value.userOptions.buttons.img,
|
|
827
833
|
hasXls: a.value.userOptions.buttons.csv,
|
|
828
834
|
hasLabel: a.value.userOptions.buttons.labels,
|
|
829
|
-
hasStack:
|
|
835
|
+
hasStack: be.dataset.length > 1 && a.value.userOptions.buttons.stack,
|
|
830
836
|
hasFullscreen: a.value.userOptions.buttons.fullscreen,
|
|
831
|
-
hasTable:
|
|
832
|
-
isFullscreen:
|
|
833
|
-
isTooltip:
|
|
834
|
-
isStacked:
|
|
837
|
+
hasTable: r.value.end - r.value.start < 200 && a.value.userOptions.buttons.table,
|
|
838
|
+
isFullscreen: ce.value,
|
|
839
|
+
isTooltip: u.value.showTooltip,
|
|
840
|
+
isStacked: u.value.stacked,
|
|
835
841
|
titles: { ...a.value.userOptions.buttonTitles },
|
|
836
|
-
chartElement:
|
|
842
|
+
chartElement: U.value,
|
|
837
843
|
position: a.value.userOptions.position,
|
|
838
|
-
|
|
839
|
-
|
|
840
|
-
|
|
841
|
-
|
|
842
|
-
|
|
843
|
-
|
|
844
|
-
|
|
845
|
-
|
|
846
|
-
|
|
844
|
+
hasAnnotator: a.value.userOptions.buttons.annotator,
|
|
845
|
+
isAnnotation: se.value,
|
|
846
|
+
onToggleFullscreen: ta,
|
|
847
|
+
onGeneratePdf: _(Oe),
|
|
848
|
+
onGenerateCsv: Ye,
|
|
849
|
+
onGenerateImage: _(Pe),
|
|
850
|
+
onToggleTable: Be,
|
|
851
|
+
onToggleLabels: Xe,
|
|
852
|
+
onToggleStack: Ue,
|
|
853
|
+
onToggleTooltip: Ze,
|
|
854
|
+
onToggleAnnotator: fe
|
|
855
|
+
}, ka({ _: 2 }, [
|
|
847
856
|
e.$slots.optionTooltip ? {
|
|
848
857
|
name: "optionTooltip",
|
|
849
|
-
fn:
|
|
858
|
+
fn: b(() => [
|
|
850
859
|
k(e.$slots, "optionTooltip", {}, void 0, !0)
|
|
851
860
|
]),
|
|
852
861
|
key: "0"
|
|
853
862
|
} : void 0,
|
|
854
863
|
e.$slots.optionPdf ? {
|
|
855
864
|
name: "optionPdf",
|
|
856
|
-
fn:
|
|
865
|
+
fn: b(() => [
|
|
857
866
|
k(e.$slots, "optionPdf", {}, void 0, !0)
|
|
858
867
|
]),
|
|
859
868
|
key: "1"
|
|
860
869
|
} : void 0,
|
|
861
870
|
e.$slots.optionCsv ? {
|
|
862
871
|
name: "optionCsv",
|
|
863
|
-
fn:
|
|
872
|
+
fn: b(() => [
|
|
864
873
|
k(e.$slots, "optionCsv", {}, void 0, !0)
|
|
865
874
|
]),
|
|
866
875
|
key: "2"
|
|
867
876
|
} : void 0,
|
|
868
877
|
e.$slots.optionImg ? {
|
|
869
878
|
name: "optionImg",
|
|
870
|
-
fn:
|
|
879
|
+
fn: b(() => [
|
|
871
880
|
k(e.$slots, "optionImg", {}, void 0, !0)
|
|
872
881
|
]),
|
|
873
882
|
key: "3"
|
|
874
883
|
} : void 0,
|
|
875
884
|
e.$slots.optionTable ? {
|
|
876
885
|
name: "optionTable",
|
|
877
|
-
fn:
|
|
886
|
+
fn: b(() => [
|
|
878
887
|
k(e.$slots, "optionTable", {}, void 0, !0)
|
|
879
888
|
]),
|
|
880
889
|
key: "4"
|
|
881
890
|
} : void 0,
|
|
882
891
|
e.$slots.optionLabels ? {
|
|
883
892
|
name: "optionLabels",
|
|
884
|
-
fn:
|
|
893
|
+
fn: b(() => [
|
|
885
894
|
k(e.$slots, "optionLabels", {}, void 0, !0)
|
|
886
895
|
]),
|
|
887
896
|
key: "5"
|
|
888
897
|
} : void 0,
|
|
889
898
|
e.$slots.optionStack ? {
|
|
890
899
|
name: "optionStack",
|
|
891
|
-
fn:
|
|
900
|
+
fn: b(() => [
|
|
892
901
|
k(e.$slots, "optionStack", {}, void 0, !0)
|
|
893
902
|
]),
|
|
894
903
|
key: "6"
|
|
895
904
|
} : void 0,
|
|
896
905
|
e.$slots.optionFullscreen ? {
|
|
897
906
|
name: "optionFullscreen",
|
|
898
|
-
fn:
|
|
899
|
-
k(e.$slots, "optionFullscreen",
|
|
907
|
+
fn: b(({ toggleFullscreen: o, isFullscreen: i }) => [
|
|
908
|
+
k(e.$slots, "optionFullscreen", B(X({ toggleFullscreen: o, isFullscreen: i })), void 0, !0)
|
|
900
909
|
]),
|
|
901
910
|
key: "7"
|
|
911
|
+
} : void 0,
|
|
912
|
+
e.$slots.optionAnnotator ? {
|
|
913
|
+
name: "optionAnnotator",
|
|
914
|
+
fn: b(({ toggleAnnotator: o, isAnnotator: i }) => [
|
|
915
|
+
k(e.$slots, "optionAnnotator", B(X({ toggleAnnotator: o, isAnnotator: i })), void 0, !0)
|
|
916
|
+
]),
|
|
917
|
+
key: "8"
|
|
902
918
|
} : void 0
|
|
903
|
-
]), 1032, ["backgroundColor", "color", "isPrinting", "isImaging", "uid", "hasTooltip", "hasPdf", "hasImg", "hasXls", "hasLabel", "hasStack", "hasFullscreen", "hasTable", "isFullscreen", "isTooltip", "isStacked", "titles", "chartElement", "position", "onGeneratePdf", "onGenerateImage"])) :
|
|
904
|
-
|
|
919
|
+
]), 1032, ["backgroundColor", "color", "isPrinting", "isImaging", "uid", "hasTooltip", "hasPdf", "hasImg", "hasXls", "hasLabel", "hasStack", "hasFullscreen", "hasTable", "isFullscreen", "isTooltip", "isStacked", "titles", "chartElement", "position", "hasAnnotator", "isAnnotation", "onGeneratePdf", "onGenerateImage"])) : Y("", !0),
|
|
920
|
+
J("div", {
|
|
905
921
|
class: "vue-ui-xy-canvas",
|
|
906
|
-
style:
|
|
922
|
+
style: q(`position: relative; aspect-ratio: ${Me.value}`),
|
|
907
923
|
ref_key: "container",
|
|
908
|
-
ref:
|
|
924
|
+
ref: Z
|
|
909
925
|
}, [
|
|
910
|
-
|
|
926
|
+
de.value ? (w(), ne("canvas", {
|
|
911
927
|
key: 0,
|
|
912
928
|
ref_key: "canvas",
|
|
913
929
|
ref: $,
|
|
914
930
|
style: { width: "100%", height: "100%" },
|
|
915
|
-
onMousemove:
|
|
916
|
-
onMouseleave:
|
|
917
|
-
}, null, 544)) : (
|
|
931
|
+
onMousemove: l[0] || (l[0] = (o) => fa(o)),
|
|
932
|
+
onMouseleave: ya
|
|
933
|
+
}, null, 544)) : (w(), P(qa, {
|
|
918
934
|
key: 1,
|
|
919
935
|
config: {
|
|
920
936
|
type: "line",
|
|
@@ -932,8 +948,8 @@ const qa = ["id"], Ja = ["onClick"], Ka = {
|
|
|
932
948
|
}
|
|
933
949
|
}
|
|
934
950
|
}, null, 8, ["config"])),
|
|
935
|
-
|
|
936
|
-
show:
|
|
951
|
+
Ca(Ya, {
|
|
952
|
+
show: u.value.showTooltip && ae.value,
|
|
937
953
|
backgroundColor: a.value.style.chart.tooltip.backgroundColor,
|
|
938
954
|
color: a.value.style.chart.tooltip.color,
|
|
939
955
|
fontSize: a.value.style.chart.tooltip.fontSize,
|
|
@@ -943,82 +959,82 @@ const qa = ["id"], Ja = ["onClick"], Ka = {
|
|
|
943
959
|
position: a.value.style.chart.tooltip.position,
|
|
944
960
|
offsetY: a.value.style.chart.tooltip.offsetY,
|
|
945
961
|
parent: $.value,
|
|
946
|
-
content:
|
|
962
|
+
content: te.value,
|
|
947
963
|
backgroundOpacity: a.value.style.chart.tooltip.backgroundOpacity,
|
|
948
|
-
isCustom:
|
|
964
|
+
isCustom: _(je)(a.value.style.chart.tooltip.customFormat)
|
|
949
965
|
}, {
|
|
950
|
-
"tooltip-before":
|
|
951
|
-
k(e.$slots, "tooltip-before",
|
|
966
|
+
"tooltip-before": b(() => [
|
|
967
|
+
k(e.$slots, "tooltip-before", B(X({ ...me.value })), void 0, !0)
|
|
952
968
|
]),
|
|
953
|
-
"tooltip-after":
|
|
954
|
-
k(e.$slots, "tooltip-after",
|
|
969
|
+
"tooltip-after": b(() => [
|
|
970
|
+
k(e.$slots, "tooltip-after", B(X({ ...me.value })), void 0, !0)
|
|
955
971
|
]),
|
|
956
972
|
_: 3
|
|
957
973
|
}, 8, ["show", "backgroundColor", "color", "fontSize", "borderRadius", "borderColor", "borderWidth", "position", "offsetY", "parent", "content", "backgroundOpacity", "isCustom"])
|
|
958
974
|
], 4),
|
|
959
|
-
|
|
975
|
+
J("div", {
|
|
960
976
|
ref_key: "chartSlicer",
|
|
961
|
-
ref:
|
|
962
|
-
style:
|
|
977
|
+
ref: we,
|
|
978
|
+
style: q(`width:100%;background:${a.value.style.chart.backgroundColor}`),
|
|
963
979
|
"data-html2canvas-ignore": ""
|
|
964
980
|
}, [
|
|
965
|
-
a.value.style.chart.zoom.show && R.value > 1 ? (
|
|
966
|
-
key: `slicer_${
|
|
981
|
+
a.value.style.chart.zoom.show && R.value > 1 ? (w(), P(Ua, {
|
|
982
|
+
key: `slicer_${xe.value}`,
|
|
967
983
|
background: a.value.style.chart.zoom.color,
|
|
968
984
|
borderColor: a.value.style.chart.backgroundColor,
|
|
969
985
|
fontSize: a.value.style.chart.zoom.fontSize,
|
|
970
986
|
useResetSlot: a.value.style.chart.zoom.useResetSlot,
|
|
971
|
-
labelLeft: a.value.style.chart.grid.y.timeLabels.values[
|
|
972
|
-
labelRight: a.value.style.chart.grid.y.timeLabels.values[
|
|
987
|
+
labelLeft: a.value.style.chart.grid.y.timeLabels.values[r.value.start] ? a.value.style.chart.grid.y.timeLabels.values[r.value.start] : "",
|
|
988
|
+
labelRight: a.value.style.chart.grid.y.timeLabels.values[r.value.end - 1] ? a.value.style.chart.grid.y.timeLabels.values[r.value.end - 1] : "",
|
|
973
989
|
textColor: a.value.style.chart.color,
|
|
974
990
|
inputColor: a.value.style.chart.zoom.color,
|
|
975
991
|
selectColor: a.value.style.chart.zoom.highlightColor,
|
|
976
992
|
max: R.value,
|
|
977
993
|
min: 0,
|
|
978
|
-
valueStart:
|
|
979
|
-
valueEnd:
|
|
980
|
-
start:
|
|
981
|
-
"onUpdate:start":
|
|
982
|
-
end:
|
|
983
|
-
"onUpdate:end":
|
|
984
|
-
onReset:
|
|
994
|
+
valueStart: r.value.start,
|
|
995
|
+
valueEnd: r.value.end,
|
|
996
|
+
start: r.value.start,
|
|
997
|
+
"onUpdate:start": l[1] || (l[1] = (o) => r.value.start = o),
|
|
998
|
+
end: r.value.end,
|
|
999
|
+
"onUpdate:end": l[2] || (l[2] = (o) => r.value.end = o),
|
|
1000
|
+
onReset: Ne
|
|
985
1001
|
}, {
|
|
986
|
-
"reset-action":
|
|
987
|
-
k(e.$slots, "reset-action",
|
|
1002
|
+
"reset-action": b(({ reset: o }) => [
|
|
1003
|
+
k(e.$slots, "reset-action", B(X({ reset: o })), void 0, !0)
|
|
988
1004
|
]),
|
|
989
1005
|
_: 3
|
|
990
|
-
}, 8, ["background", "borderColor", "fontSize", "useResetSlot", "labelLeft", "labelRight", "textColor", "inputColor", "selectColor", "max", "valueStart", "valueEnd", "start", "end"])) :
|
|
1006
|
+
}, 8, ["background", "borderColor", "fontSize", "useResetSlot", "labelLeft", "labelRight", "textColor", "inputColor", "selectColor", "max", "valueStart", "valueEnd", "start", "end"])) : Y("", !0)
|
|
991
1007
|
], 4),
|
|
992
|
-
|
|
1008
|
+
J("div", {
|
|
993
1009
|
ref_key: "chartLegend",
|
|
994
|
-
ref:
|
|
1010
|
+
ref: Ce
|
|
995
1011
|
}, [
|
|
996
|
-
a.value.style.chart.legend.show &&
|
|
997
|
-
legendSet:
|
|
998
|
-
config:
|
|
999
|
-
key: `legend_${
|
|
1000
|
-
onClickMarker:
|
|
1012
|
+
a.value.style.chart.legend.show && de.value ? (w(), P(Ba, {
|
|
1013
|
+
legendSet: He.value,
|
|
1014
|
+
config: ga.value,
|
|
1015
|
+
key: `legend_${ze.value}`,
|
|
1016
|
+
onClickMarker: l[3] || (l[3] = ({ i: o }) => De(o))
|
|
1001
1017
|
}, {
|
|
1002
|
-
item:
|
|
1003
|
-
|
|
1018
|
+
item: b(({ legend: o, index: i }) => [
|
|
1019
|
+
J("div", {
|
|
1004
1020
|
onClick: (c) => o.segregate(),
|
|
1005
|
-
style:
|
|
1006
|
-
},
|
|
1021
|
+
style: q(`opacity:${S.value.includes(i) ? 0.5 : 1}`)
|
|
1022
|
+
}, Ge(o.name), 13, et)
|
|
1007
1023
|
]),
|
|
1008
1024
|
_: 1
|
|
1009
1025
|
}, 8, ["legendSet", "config"])) : k(e.$slots, "legend", {
|
|
1010
1026
|
key: 1,
|
|
1011
|
-
legend:
|
|
1027
|
+
legend: He.value
|
|
1012
1028
|
}, void 0, !0)
|
|
1013
1029
|
], 512),
|
|
1014
|
-
e.$slots.watermark ? (
|
|
1015
|
-
k(e.$slots, "watermark",
|
|
1016
|
-
])) :
|
|
1017
|
-
|
|
1030
|
+
e.$slots.watermark ? (w(), ne("div", at, [
|
|
1031
|
+
k(e.$slots, "watermark", B(X({ isPrinting: _(Re) || _(Ie) })), void 0, !0)
|
|
1032
|
+
])) : Y("", !0),
|
|
1033
|
+
r.value.end - r.value.start < 200 ? (w(), P(Va, {
|
|
1018
1034
|
key: 3,
|
|
1019
1035
|
hideDetails: "",
|
|
1020
1036
|
config: {
|
|
1021
|
-
open:
|
|
1037
|
+
open: u.value.showTable,
|
|
1022
1038
|
maxHeight: 1e4,
|
|
1023
1039
|
body: {
|
|
1024
1040
|
backgroundColor: a.value.style.chart.backgroundColor,
|
|
@@ -1030,30 +1046,38 @@ const qa = ["id"], Ja = ["onClick"], Ka = {
|
|
|
1030
1046
|
}
|
|
1031
1047
|
}
|
|
1032
1048
|
}, {
|
|
1033
|
-
content:
|
|
1034
|
-
(
|
|
1035
|
-
key: `table_${
|
|
1036
|
-
colNames:
|
|
1037
|
-
head:
|
|
1038
|
-
body:
|
|
1039
|
-
config:
|
|
1049
|
+
content: b(() => [
|
|
1050
|
+
(w(), P(ja, {
|
|
1051
|
+
key: `table_${$e.value}`,
|
|
1052
|
+
colNames: ue.value.colNames,
|
|
1053
|
+
head: ue.value.head,
|
|
1054
|
+
body: ue.value.body,
|
|
1055
|
+
config: ue.value.config,
|
|
1040
1056
|
title: `${a.value.style.chart.title.text}${a.value.style.chart.title.subtitle.text ? ` : ${a.value.style.chart.title.subtitle.text}` : ""}`,
|
|
1041
|
-
onClose:
|
|
1057
|
+
onClose: l[4] || (l[4] = (o) => u.value.showTable = !1)
|
|
1042
1058
|
}, {
|
|
1043
|
-
th:
|
|
1044
|
-
|
|
1059
|
+
th: b(({ th: o }) => [
|
|
1060
|
+
J("div", { innerHTML: o }, null, 8, tt)
|
|
1045
1061
|
]),
|
|
1046
|
-
td:
|
|
1047
|
-
|
|
1062
|
+
td: b(({ td: o }) => [
|
|
1063
|
+
wa(Ge(o), 1)
|
|
1048
1064
|
]),
|
|
1049
1065
|
_: 1
|
|
1050
1066
|
}, 8, ["colNames", "head", "body", "config", "title"]))
|
|
1051
1067
|
]),
|
|
1052
1068
|
_: 1
|
|
1053
|
-
}, 8, ["config"])) :
|
|
1054
|
-
|
|
1069
|
+
}, 8, ["config"])) : Y("", !0),
|
|
1070
|
+
a.value.userOptions.buttons.annotator && h.value.length ? (w(), P(Ja, {
|
|
1071
|
+
key: 4,
|
|
1072
|
+
parent: U.value,
|
|
1073
|
+
backgroundColor: a.value.style.chart.backgroundColor,
|
|
1074
|
+
color: a.value.style.chart.color,
|
|
1075
|
+
active: se.value,
|
|
1076
|
+
onClose: fe
|
|
1077
|
+
}, null, 8, ["parent", "backgroundColor", "color", "active"])) : Y("", !0)
|
|
1078
|
+
], 14, Qa));
|
|
1055
1079
|
}
|
|
1056
|
-
},
|
|
1080
|
+
}, bt = /* @__PURE__ */ Ka(lt, [["__scopeId", "data-v-01470008"]]);
|
|
1057
1081
|
export {
|
|
1058
|
-
|
|
1082
|
+
bt as default
|
|
1059
1083
|
};
|