vue-data-ui 3.17.2 → 3.17.4
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 +228 -228
- package/dist/{A11yDataTable-KcVAX2cP.js → A11yDataTable-BpmuNomI.js} +1 -1
- package/dist/{Arrow-Bn-9n3bm.js → Arrow-dSvLFssU.js} +1 -1
- package/dist/{BaseDraggableDialog-CIb-iD9g.js → BaseDraggableDialog-Di8Hlru3.js} +26 -24
- package/dist/{BaseIcon-Cb3zzG6s.js → BaseIcon-DX0hTWa-.js} +11 -5
- package/dist/{BaseLegendToggle-BQVIawmA.js → BaseLegendToggle-cMP8M2u0.js} +4 -4
- package/dist/BaseScanner-BON3d_Sx.js +38 -0
- package/dist/{BaseZoomControls-DievbOeJ.js → BaseZoomControls-CVSC1-SU.js} +11 -5
- package/dist/{ColorPicker-B0mV4xzu.js → ColorPicker-bAxGcXK0.js} +38 -22
- package/dist/{DataTable-DT2kIdQ6.js → DataTable-cMnb68Ik.js} +15 -11
- package/dist/{Legend-CS7Xo5LK.js → Legend-DGN5lY60.js} +15 -12
- package/dist/{NonSvgPenAndPaper-VyJFyJ6X.js → NonSvgPenAndPaper-B6E0zEYe.js} +34 -12
- package/dist/{PackageVersion-PjmqM4wb.js → PackageVersion-DVvvyQXB.js} +1 -1
- package/dist/{PenAndPaper-Ct3qJ4lA.js → PenAndPaper-CJDoB5H9.js} +87 -27
- package/dist/{Shape-BKRUOeKk.js → Shape-CxJ5_Rre.js} +1 -1
- package/dist/{Slicer-CIHwwuNR.js → Slicer-D7UcO8sN.js} +75 -33
- package/dist/{SlicerPreview-BMx3cqgX.js → SlicerPreview-D_CgrN_7.js} +198 -102
- package/dist/{SparkTooltip-BorBpltj.js → SparkTooltip-D4bM-kfz.js} +5 -5
- package/dist/{Title-BeMKE1cj.js → Title-BbKoiBk2.js} +1 -1
- package/dist/{Tooltip-C8KGyqQk.js → Tooltip-Cvt7Fi0Q.js} +9 -2
- package/dist/{UserOptions-rW2fRf3V.js → UserOptions-DVduN6X7.js} +48 -14
- package/dist/components/arrow.js +1 -1
- package/dist/components/vue-ui-3d-bar.js +1 -1
- package/dist/components/vue-ui-accordion.js +1 -1
- package/dist/components/vue-ui-age-pyramid.js +1 -1
- package/dist/components/vue-ui-annotator.js +1 -1
- package/dist/components/vue-ui-bullet.js +1 -1
- package/dist/components/vue-ui-bump.js +1 -1
- package/dist/components/vue-ui-candlestick.js +1 -1
- package/dist/components/vue-ui-carousel-table.js +1 -1
- package/dist/components/vue-ui-chestnut.js +1 -1
- package/dist/components/vue-ui-chord.js +1 -1
- package/dist/components/vue-ui-circle-pack.js +1 -1
- package/dist/components/vue-ui-cursor.js +1 -1
- package/dist/components/vue-ui-dag.js +1 -1
- package/dist/components/vue-ui-dashboard.js +1 -1
- package/dist/components/vue-ui-digits.js +1 -1
- package/dist/components/vue-ui-donut-evolution.js +1 -1
- package/dist/components/vue-ui-donut.js +1 -1
- package/dist/components/vue-ui-dumbbell.js +1 -1
- package/dist/components/vue-ui-flow.js +1 -1
- package/dist/components/vue-ui-funnel.js +1 -1
- package/dist/components/vue-ui-galaxy.js +1 -1
- package/dist/components/vue-ui-gauge.js +1 -1
- package/dist/components/vue-ui-geo.js +1 -1
- package/dist/components/vue-ui-gizmo.js +1 -1
- package/dist/components/vue-ui-heatmap.js +1 -1
- package/dist/components/vue-ui-history-plot.js +1 -1
- package/dist/components/vue-ui-horizontal-bar.js +1 -1
- package/dist/components/vue-ui-icon.js +1 -1
- package/dist/components/vue-ui-kpi.js +1 -1
- package/dist/components/vue-ui-mini-loader.js +1 -1
- package/dist/components/vue-ui-molecule.js +1 -1
- package/dist/components/vue-ui-mood-radar.js +1 -1
- package/dist/components/vue-ui-nested-donuts.js +1 -1
- package/dist/components/vue-ui-onion.js +1 -1
- package/dist/components/vue-ui-parallel-coordinate-plot.js +1 -1
- package/dist/components/vue-ui-pattern-seed.js +5 -0
- package/dist/components/vue-ui-quadrant.js +1 -1
- package/dist/components/vue-ui-quick-chart.js +1 -1
- package/dist/components/vue-ui-radar.js +1 -1
- package/dist/components/vue-ui-rating.js +1 -1
- package/dist/components/vue-ui-relation-circle.js +1 -1
- package/dist/components/vue-ui-ridgeline.js +1 -1
- package/dist/components/vue-ui-rings.js +1 -1
- package/dist/components/vue-ui-scatter.js +1 -1
- package/dist/components/vue-ui-skeleton.js +1 -1
- package/dist/components/vue-ui-smiley.js +1 -1
- package/dist/components/vue-ui-spark-trend.js +1 -1
- package/dist/components/vue-ui-sparkbar.js +1 -1
- package/dist/components/vue-ui-sparkgauge.js +1 -1
- package/dist/components/vue-ui-sparkhistogram.js +1 -1
- package/dist/components/vue-ui-sparkline.js +1 -1
- package/dist/components/vue-ui-sparkstackbar.js +1 -1
- package/dist/components/vue-ui-stackbar.js +1 -1
- package/dist/components/vue-ui-stackline.js +1 -1
- package/dist/components/vue-ui-strip-plot.js +1 -1
- package/dist/components/vue-ui-table-heatmap.js +1 -1
- package/dist/components/vue-ui-table-sparkline.js +1 -1
- package/dist/components/vue-ui-table.js +1 -1
- package/dist/components/vue-ui-thermometer.js +1 -1
- package/dist/components/vue-ui-timer.js +1 -1
- package/dist/components/vue-ui-tiremarks.js +1 -1
- package/dist/components/vue-ui-treemap.js +1 -1
- package/dist/components/vue-ui-vertical-bar.js +1 -1
- package/dist/components/vue-ui-waffle.js +1 -1
- package/dist/components/vue-ui-wheel.js +1 -1
- package/dist/components/vue-ui-word-cloud.js +1 -1
- package/dist/components/vue-ui-world.js +1 -1
- package/dist/components/vue-ui-xy-canvas.js +1 -1
- package/dist/components/vue-ui-xy.js +1 -1
- package/dist/{dom-to-png-CtxhhdWb.js → dom-to-png-DGvx6i5V.js} +21 -6
- package/dist/{exposedLib-DlqmhBx3.js → exposedLib-sJvY1pST.js} +1 -1
- package/dist/{geoProjections-D0Vxsz_O.js → geoProjections-BFq2sOBY.js} +19 -11
- package/dist/{img-LXxMLmCg.js → img-CjTQXS0U.js} +31 -7
- package/dist/{labelUtils-CqTHa20R.js → labelUtils-DX9oyq3C.js} +2 -6
- package/dist/{lib-DBptbyyI.js → lib-DMzrGQHK.js} +337 -124
- package/dist/patternUtils-BINhU4Ky.js +615 -0
- package/dist/{pdf-B4tTdfvl.js → pdf-C4H4o1Cj.js} +11 -2
- package/dist/style.css +1 -1
- package/dist/types/arrow.d.ts +1 -1
- package/dist/types/utils.d.ts +500 -451
- package/dist/types/vue-data-ui.d.ts +2124 -1786
- package/dist/types/vue-ui-3d-bar.d.ts +10 -7
- package/dist/types/vue-ui-accordion.d.ts +2 -4
- package/dist/types/vue-ui-age-pyramid.d.ts +10 -8
- package/dist/types/vue-ui-annotator.d.ts +3 -3
- package/dist/types/vue-ui-bullet.d.ts +10 -7
- package/dist/types/vue-ui-bump.d.ts +9 -6
- package/dist/types/vue-ui-candlestick.d.ts +10 -7
- package/dist/types/vue-ui-carousel-table.d.ts +2 -2
- package/dist/types/vue-ui-chestnut.d.ts +9 -6
- package/dist/types/vue-ui-chord.d.ts +10 -7
- package/dist/types/vue-ui-circle-pack.d.ts +10 -7
- package/dist/types/vue-ui-cursor.d.ts +2 -2
- package/dist/types/vue-ui-dag.d.ts +10 -7
- package/dist/types/vue-ui-dashboard.d.ts +3 -3
- package/dist/types/vue-ui-digits.d.ts +2 -2
- package/dist/types/vue-ui-donut-evolution.d.ts +11 -8
- package/dist/types/vue-ui-donut.d.ts +11 -8
- package/dist/types/vue-ui-dumbbell.d.ts +11 -8
- package/dist/types/vue-ui-flow.d.ts +11 -8
- package/dist/types/vue-ui-funnel.d.ts +11 -8
- package/dist/types/vue-ui-galaxy.d.ts +11 -8
- package/dist/types/vue-ui-gauge.d.ts +11 -8
- package/dist/types/vue-ui-geo.d.ts +13 -6
- package/dist/types/vue-ui-gizmo.d.ts +2 -5
- package/dist/types/vue-ui-heatmap.d.ts +11 -8
- package/dist/types/vue-ui-history-plot.d.ts +11 -8
- package/dist/types/vue-ui-horizontal-bar.d.ts +11 -8
- package/dist/types/vue-ui-icon.d.ts +2 -4
- package/dist/types/vue-ui-kpi.d.ts +2 -4
- package/dist/types/vue-ui-mini-loader.d.ts +4 -4
- package/dist/types/vue-ui-molecule.d.ts +11 -8
- package/dist/types/vue-ui-mood-radar.d.ts +11 -8
- package/dist/types/vue-ui-nested-donuts.d.ts +11 -8
- package/dist/types/vue-ui-onion.d.ts +11 -8
- package/dist/types/vue-ui-parallel-coordinate-plot.d.ts +11 -8
- package/dist/types/vue-ui-pattern-seed.d.ts +14 -0
- package/dist/types/vue-ui-pattern.d.ts +2 -4
- package/dist/types/vue-ui-quadrant.d.ts +11 -8
- package/dist/types/vue-ui-quick-chart.d.ts +11 -8
- package/dist/types/vue-ui-radar.d.ts +11 -8
- package/dist/types/vue-ui-rating.d.ts +4 -4
- package/dist/types/vue-ui-relation-circle.d.ts +11 -8
- package/dist/types/vue-ui-ridgeline.d.ts +11 -8
- package/dist/types/vue-ui-rings.d.ts +11 -8
- package/dist/types/vue-ui-scatter.d.ts +11 -8
- package/dist/types/vue-ui-skeleton.d.ts +2 -4
- package/dist/types/vue-ui-smiley.d.ts +2 -5
- package/dist/types/vue-ui-spark-trend.d.ts +2 -4
- package/dist/types/vue-ui-sparkbar.d.ts +4 -4
- package/dist/types/vue-ui-sparkgauge.d.ts +4 -4
- package/dist/types/vue-ui-sparkhistogram.d.ts +4 -4
- package/dist/types/vue-ui-sparkline.d.ts +4 -4
- package/dist/types/vue-ui-sparkstackbar.d.ts +4 -4
- package/dist/types/vue-ui-stackbar.d.ts +11 -8
- package/dist/types/vue-ui-stackline.d.ts +11 -8
- package/dist/types/vue-ui-strip-plot.d.ts +11 -8
- package/dist/types/vue-ui-table-heatmap.d.ts +4 -4
- package/dist/types/vue-ui-table-sparkline.d.ts +4 -4
- package/dist/types/vue-ui-table.d.ts +4 -4
- package/dist/types/vue-ui-thermometer.d.ts +11 -8
- package/dist/types/vue-ui-timer.d.ts +2 -4
- package/dist/types/vue-ui-tiremarks.d.ts +11 -8
- package/dist/types/vue-ui-treemap.d.ts +11 -8
- package/dist/types/vue-ui-vertical-bar.d.ts +11 -8
- package/dist/types/vue-ui-waffle.d.ts +11 -8
- package/dist/types/vue-ui-wheel.d.ts +11 -8
- package/dist/types/vue-ui-word-cloud.d.ts +11 -8
- package/dist/types/vue-ui-world.d.ts +11 -8
- package/dist/types/vue-ui-xy-canvas.d.ts +11 -8
- package/dist/types/vue-ui-xy.d.ts +9 -6
- package/dist/{useAutoSizeLabelsInsideViewbox-DX7LdvFX.js → useAutoSizeLabelsInsideViewbox-izlGDfwu.js} +1 -1
- package/dist/{useChartAccessibility-9icAAmYg.js → useChartAccessibility-cp6XQtqi.js} +4 -1
- package/dist/{useConfig-C40HvGpD.js → useConfig-DTHxOX6V.js} +2 -8
- package/dist/{useNestedProp-Bf5XFbs8.js → useNestedProp-DH0BEVVS.js} +1 -1
- package/dist/{useObjectBindings-DOokNdQ_.js → useObjectBindings-BjkVidN3.js} +17 -6
- package/dist/{usePanZoom-CDF7rb3o.js → usePanZoom-BbDhcKWf.js} +11 -2
- package/dist/{usePrefersMotion-CUKm8_t8.js → usePrefersMotion-Co0nj1eS.js} +3 -1
- package/dist/{usePrinter-CEpYU3r5.js → usePrinter-C4t8DdQ-.js} +3 -8
- package/dist/{useStableElementSize-DCNs0Tx7.js → useStableElementSize-C48ZVcZQ.js} +4 -1
- package/dist/{useSvgExport-ByUukOZt.js → useSvgExport-BTG4hVPO.js} +154 -34
- package/dist/{useTableResponsive-Cbx-ACcP.js → useTableResponsive-BpfiEtzR.js} +7 -3
- package/dist/{useThemeCheck-D1ZYXUwG.js → useThemeCheck-C9Ccl7U9.js} +4 -2
- package/dist/{useTimeLabelCollider-CIsgDrl9.js → useTimeLabelCollider-D3JeJ6Ye.js} +13 -5
- package/dist/{useTimeLabels-C-A2uZKi.js → useTimeLabels-Cv0tD9In.js} +22 -6
- package/dist/{useUserOptionState-BIvW1Kz7.js → useUserOptionState-B7Ej974k.js} +6 -4
- package/dist/utils.js +28 -25
- package/dist/{vue-data-ui-CGsJdqdx.js → vue-data-ui-C0aMSe2G.js} +138 -72
- package/dist/vue-data-ui.js +103 -99
- package/dist/{vue-ui-3d-bar-Bnm0MPNr.js → vue-ui-3d-bar-CzXlsUEJ.js} +328 -101
- package/dist/{vue-ui-accordion-DDuJT1xA.js → vue-ui-accordion-BHmfmb_6.js} +26 -14
- package/dist/{vue-ui-age-pyramid-vvDMkGxw.js → vue-ui-age-pyramid-DMZ9oYFv.js} +180 -73
- package/dist/{vue-ui-annotator-BdmTltyl.js → vue-ui-annotator-Db4eooqI.js} +162 -53
- package/dist/{vue-ui-bullet-CM5pK6Sj.js → vue-ui-bullet-CEH6eppC.js} +92 -35
- package/dist/{vue-ui-bump-DAo_mV8M.js → vue-ui-bump-JbKFEe2A.js} +205 -102
- package/dist/{vue-ui-candlestick-DsiOmaj1.js → vue-ui-candlestick-BX01sTaY.js} +285 -100
- package/dist/{vue-ui-carousel-table-DUl5G_cg.js → vue-ui-carousel-table-BOAti3gd.js} +66 -29
- package/dist/{vue-ui-chestnut-DMMCHoHB.js → vue-ui-chestnut-B0rhAzCA.js} +277 -88
- package/dist/{vue-ui-chord-75V7kRrX.js → vue-ui-chord-DKIHZ39Z.js} +226 -96
- package/dist/{vue-ui-circle-pack-BGXpEnmN.js → vue-ui-circle-pack-Ct2roluW.js} +196 -111
- package/dist/{vue-ui-cursor-BpPe14qk.js → vue-ui-cursor-B3cJoPku.js} +14 -7
- package/dist/{vue-ui-dag-D20FezGN.js → vue-ui-dag-DCq1VMNd.js} +261 -99
- package/dist/{vue-ui-dashboard-BcafQJ1Y.js → vue-ui-dashboard-BqAYr0Fr.js} +261 -94
- package/dist/{vue-ui-digits-gFYVzPkE.js → vue-ui-digits-D16SQQ4M.js} +6 -6
- package/dist/{vue-ui-donut-Cz7rvM7I.js → vue-ui-donut-d0LLrlKG.js} +532 -157
- package/dist/{vue-ui-donut-evolution-Cp0-8Deg.js → vue-ui-donut-evolution-6sMhQduN.js} +311 -92
- package/dist/{vue-ui-dumbbell-D_13qNsV.js → vue-ui-dumbbell-CUybhrwj.js} +266 -93
- package/dist/{vue-ui-flow-BuaVAVvN.js → vue-ui-flow-BZ-9RFsy.js} +121 -48
- package/dist/{vue-ui-funnel-Cv18o2ax.js → vue-ui-funnel-BJgvIvlz.js} +91 -39
- package/dist/{vue-ui-galaxy-n17IGTDo.js → vue-ui-galaxy-DR9WL985.js} +161 -69
- package/dist/{vue-ui-gauge-2bks6sjR.js → vue-ui-gauge-x96W5OPx.js} +95 -37
- package/dist/{vue-ui-geo-D6BoOtIP.js → vue-ui-geo-qTfYs5qi.js} +113 -43
- package/dist/{vue-ui-gizmo-CV07ZThl.js → vue-ui-gizmo-C8HOirN9.js} +25 -12
- package/dist/{vue-ui-heatmap-DfbRacVm.js → vue-ui-heatmap-Cy9o-A7B.js} +316 -125
- package/dist/{vue-ui-history-plot-5sPJfAue.js → vue-ui-history-plot-j0DMfNPJ.js} +186 -73
- package/dist/{vue-ui-horizontal-bar-BhMvbsvs.js → vue-ui-horizontal-bar-CRScV3rx.js} +151 -56
- package/dist/{vue-ui-kpi-P92uuJ_R.js → vue-ui-kpi-CEx3P3Do.js} +35 -14
- package/dist/{vue-ui-mini-loader-DrROXJIX.js → vue-ui-mini-loader-CyDOoarO.js} +17 -11
- package/dist/{vue-ui-molecule-BI6zROGn.js → vue-ui-molecule-B_19tjnI.js} +226 -120
- package/dist/{vue-ui-mood-radar-Byc_xyhw.js → vue-ui-mood-radar-DrkGtt7m.js} +166 -56
- package/dist/{vue-ui-nested-donuts-BZu1ntbw.js → vue-ui-nested-donuts-C3enuKq1.js} +196 -89
- package/dist/{vue-ui-onion-O2tKgfXh.js → vue-ui-onion-DMMLNXVu.js} +155 -74
- package/dist/{vue-ui-parallel-coordinate-plot-CbDGHCzy.js → vue-ui-parallel-coordinate-plot-YokoI6TP.js} +262 -84
- package/dist/vue-ui-pattern-seed-BcNlxb2i.js +36 -0
- package/dist/{vue-ui-quadrant-CPgUkle7.js → vue-ui-quadrant-D8vI4gIT.js} +240 -88
- package/dist/{vue-ui-quick-chart-CgDH-APs.js → vue-ui-quick-chart-BdwHAQyA.js} +445 -150
- package/dist/{vue-ui-radar-Belp_vQe.js → vue-ui-radar-DQWyecSD.js} +186 -68
- package/dist/{vue-ui-rating-C1f6x_PD.js → vue-ui-rating-DKmEn0VK.js} +30 -11
- package/dist/{vue-ui-relation-circle-AWRDIZzF.js → vue-ui-relation-circle-XQH3QkrI.js} +119 -45
- package/dist/{vue-ui-ridgeline-Cao4_cEs.js → vue-ui-ridgeline-ksI62sSU.js} +349 -85
- package/dist/{vue-ui-rings-Dl462hDH.js → vue-ui-rings-Dwbo1Fro.js} +179 -81
- package/dist/{vue-ui-scatter-BrVEK5YL.js → vue-ui-scatter-GFzM-YYz.js} +282 -102
- package/dist/{vue-ui-skeleton-BsTtcR3x.js → vue-ui-skeleton-xLPY1FKW.js} +161 -144
- package/dist/{vue-ui-smiley-M5Gn70_Z.js → vue-ui-smiley-BLMl69Ca.js} +28 -17
- package/dist/{vue-ui-spark-trend-CbtI2yPI.js → vue-ui-spark-trend-Bkxd18l5.js} +76 -31
- package/dist/{vue-ui-sparkbar-DgrwoANx.js → vue-ui-sparkbar-D2abFa-u.js} +113 -59
- package/dist/{vue-ui-sparkgauge-CepspA5J.js → vue-ui-sparkgauge-D6IF3ZQR.js} +47 -18
- package/dist/{vue-ui-sparkhistogram-BAVAkN0U.js → vue-ui-sparkhistogram-Dl8WlJLW.js} +145 -60
- package/dist/{vue-ui-sparkline-BMcsfaUW.js → vue-ui-sparkline-BY05SDNv.js} +226 -68
- package/dist/{vue-ui-sparkstackbar-BAzr99-y.js → vue-ui-sparkstackbar-BLFjfklb.js} +84 -36
- package/dist/{vue-ui-stackbar-BnepTc3z.js → vue-ui-stackbar-Dw-CI94e.js} +482 -169
- package/dist/{vue-ui-stackline-p3Utm59w.js → vue-ui-stackline-CkgSbKkp.js} +473 -164
- package/dist/{vue-ui-strip-plot-BfYmPTZT.js → vue-ui-strip-plot-P16Y5yN1.js} +239 -132
- package/dist/{vue-ui-table-BNmt2bQy.js → vue-ui-table-BPLypaeX.js} +339 -122
- package/dist/{vue-ui-table-heatmap-C6rSAGDu.js → vue-ui-table-heatmap-CWp_5d1z.js} +89 -25
- package/dist/{vue-ui-table-sparkline-BMt2q1FS.js → vue-ui-table-sparkline-CpjyrPic.js} +127 -47
- package/dist/{vue-ui-thermometer-Bf22bEzP.js → vue-ui-thermometer-B9nc954A.js} +129 -48
- package/dist/{vue-ui-timer-CkEPkE7B.js → vue-ui-timer-BDfbM4vl.js} +32 -15
- package/dist/{vue-ui-tiremarks-ltmjDwug.js → vue-ui-tiremarks-DHV_oSQ0.js} +90 -35
- package/dist/vue-ui-treemap-DLWOi_EG.js +1748 -0
- package/dist/{vue-ui-waffle-AUF7SKGN.js → vue-ui-waffle-CpNJSzAD.js} +206 -87
- package/dist/{vue-ui-wheel-Dn1nmx7r.js → vue-ui-wheel-DqBmaQ6h.js} +231 -61
- package/dist/{vue-ui-word-cloud-Bll30XSc.js → vue-ui-word-cloud-DexRxuh1.js} +443 -350
- package/dist/vue-ui-world-DAJgtvpz.js +14451 -0
- package/dist/{vue-ui-xy-BGC31q8v.js → vue-ui-xy-Cv-50xHj.js} +840 -252
- package/dist/{vue-ui-xy-canvas-BR-Qogdl.js → vue-ui-xy-canvas-BNUX13xH.js} +448 -159
- package/package.json +120 -119
- package/dist/BaseScanner-BhhkKVoj.js +0 -30
- package/dist/vue-ui-treemap-CGbTrwdn.js +0 -1726
- package/dist/vue-ui-world-CiNUxqIq.js +0 -1011
|
@@ -1,22 +1,22 @@
|
|
|
1
1
|
import { defineAsyncComponent as Re, useSlots as Nu, getCurrentInstance as Fu, ref as g, shallowRef as Vu, computed as b, onMounted as It, toRefs as Bu, watch as vt, watchEffect as sl, nextTick as Pt, onBeforeUnmount as Pl, openBlock as i, createElementBlock as r, normalizeStyle as w, normalizeClass as Je, createElementVNode as y, toDisplayString as se, createBlock as _e, createCommentVNode as h, unref as v, withCtx as Y, renderSlot as O, normalizeProps as ve, guardReactiveProps as de, createSlots as lo, createVNode as dt, Fragment as d, renderList as k, mergeProps as Qe, Teleport as Ru, resolveDynamicComponent as Hu, withDirectives as Du, vModelCheckbox as Wu, createTextVNode as ao } from "vue";
|
|
2
|
-
import { j as Ol, q as Nl, t as oo, n as Eu, D as uo, E as so, s as Fl, p as Vl, F as nl, G as W, H as Bl, I as Yu, J as Xu, K as N, L as no, c as io, M as ro, b as co, N as Gu, O as qu, P as Uu, Q as vo, R as ho, k as he, S as Zu, T as fo, U as Ku, z as mo, A as Ie, l as Pe, v as je, u as Ce, V as Ju, a as Qu, W as He, d as il, Y as Se, Z as ju, _ as De, $ as Ot, m as es, o as go, a0 as ts, a1 as ls, a2 as ht, a3 as as } from "./lib-
|
|
3
|
-
import { u as bo, a as po, b as os } from "./useTimeLabels-
|
|
4
|
-
import { u as us } from "./useConfig-
|
|
5
|
-
import { u as ss } from "./usePrinter-
|
|
6
|
-
import { u as ns, B as is } from "./BaseScanner-
|
|
7
|
-
import { u as rs } from "./useSvgExport-
|
|
8
|
-
import { u as Nt } from "./useNestedProp-
|
|
9
|
-
import { u as cs } from "./useThemeCheck-
|
|
10
|
-
import { u as vs } from "./useStableElementSize-
|
|
11
|
-
import { u as ds } from "./useTimeLabelCollider-
|
|
12
|
-
import hs from "./img-
|
|
13
|
-
import fs from "./Title-
|
|
2
|
+
import { j as Ol, q as Nl, t as oo, n as Eu, D as uo, E as so, s as Fl, p as Vl, F as nl, G as W, H as Bl, I as Yu, J as Xu, K as N, L as no, c as io, M as ro, b as co, N as Gu, O as qu, P as Uu, Q as vo, R as ho, k as he, S as Zu, T as fo, U as Ku, z as mo, A as Ie, l as Pe, v as je, u as Ce, V as Ju, a as Qu, W as He, d as il, Y as Se, Z as ju, _ as De, $ as Ot, m as es, o as go, a0 as ts, a1 as ls, a2 as ht, a3 as as } from "./lib-DMzrGQHK.js";
|
|
3
|
+
import { u as bo, a as po, b as os } from "./useTimeLabels-Cv0tD9In.js";
|
|
4
|
+
import { u as us } from "./useConfig-DTHxOX6V.js";
|
|
5
|
+
import { u as ss } from "./usePrinter-C4t8DdQ-.js";
|
|
6
|
+
import { u as ns, B as is } from "./BaseScanner-BON3d_Sx.js";
|
|
7
|
+
import { u as rs } from "./useSvgExport-BTG4hVPO.js";
|
|
8
|
+
import { u as Nt } from "./useNestedProp-DH0BEVVS.js";
|
|
9
|
+
import { u as cs } from "./useThemeCheck-C9Ccl7U9.js";
|
|
10
|
+
import { u as vs } from "./useStableElementSize-C48ZVcZQ.js";
|
|
11
|
+
import { u as ds } from "./useTimeLabelCollider-D3JeJ6Ye.js";
|
|
12
|
+
import hs from "./img-CjTQXS0U.js";
|
|
13
|
+
import fs from "./Title-BbKoiBk2.js";
|
|
14
14
|
import ms from "./vue_ui_xy-esktmpg-.js";
|
|
15
|
-
import { _ as rl } from "./Shape-
|
|
16
|
-
import { S as gs } from "./SlicerPreview-
|
|
17
|
-
import bs from "./vue-ui-accordion-
|
|
18
|
-
import { B as ps } from "./BaseLegendToggle-
|
|
19
|
-
import { A as ys } from "./A11yDataTable-
|
|
15
|
+
import { _ as rl } from "./Shape-CxJ5_Rre.js";
|
|
16
|
+
import { S as gs } from "./SlicerPreview-D_CgrN_7.js";
|
|
17
|
+
import bs from "./vue-ui-accordion-BHmfmb_6.js";
|
|
18
|
+
import { B as ps } from "./BaseLegendToggle-cMP8M2u0.js";
|
|
19
|
+
import { A as ys } from "./A11yDataTable-BpmuNomI.js";
|
|
20
20
|
import { _ as xs } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
21
21
|
const ks = ["id"], _s = ["id"], ws = ["id"], Ss = { style: { position: "relative" } }, $s = ["viewBox", "aria-label", "aria-describedby"], Ls = ["x", "y", "width", "height"], Ms = { key: 1 }, As = { class: "vue-ui-xy-grid" }, Cs = ["stroke", "x1", "x2", "y1", "y2"], Ts = ["stroke", "x1", "x2", "y1", "y2"], zs = { key: 1 }, Is = ["x1", "x2", "y1", "y2", "stroke"], Ps = ["x1", "x2", "y1", "y2", "stroke"], Os = ["x1", "x2", "y1", "y2", "stroke"], Ns = { key: 3 }, Fs = ["d", "stroke"], Vs = { key: 4 }, Bs = ["d", "stroke"], Rs = ["id"], Hs = ["stop-color"], Ds = ["stop-color"], Ws = ["stop-color"], Es = ["id"], Ys = ["stop-color"], Xs = ["stop-color"], Gs = ["stop-color"], qs = ["id"], Us = ["stop-color"], Zs = ["stop-color"], Ks = ["id"], Js = ["stop-color"], Qs = ["stop-color"], js = ["id"], en = ["stop-color"], tn = ["stop-color"], ln = { key: 0 }, an = ["id"], on = ["stop-color", "offset"], un = ["x", "y", "height", "width", "fill"], sn = ["x", "y", "width"], nn = { key: 0 }, rn = ["x", "y", "height", "width", "fill"], cn = ["x", "y", "height", "width", "rx", "fill", "stroke", "stroke-width"], vn = ["x", "y", "height", "width", "rx", "fill", "stroke", "stroke-width"], dn = ["width", "x", "y"], hn = ["stroke", "x1", "x2", "y1", "y2"], fn = { key: 3 }, mn = ["x1", "x2", "y1", "y2", "stroke", "stroke-width", "stroke-dasharray"], gn = ["x", "y", "width", "height", "stroke", "stroke-width", "stroke-linecap", "stroke-linejoin", "stroke-dasharray"], bn = ["x1", "x2", "y1", "y2", "stroke", "stroke-width"], pn = ["fill", "font-size", "transform"], yn = ["x1", "x2", "y1", "y2", "stroke"], xn = ["x", "y", "font-size", "fill"], kn = ["x1", "x2", "y1", "y2", "stroke"], _n = ["x", "y", "font-size", "fill"], wn = ["width", "x", "y"], Sn = { style: { width: "100%" } }, $n = ["d", "stroke", "stroke-width", "stroke-dasharray"], Ln = ["d", "stroke", "stroke-width", "stroke-dasharray"], Mn = { key: 6 }, An = { key: 7 }, Cn = ["d", "fill", "fill-opacity"], Tn = { key: 0 }, zn = ["d", "fill"], In = ["d", "fill"], Pn = ["d", "fill"], On = ["d", "fill"], Nn = ["d", "stroke", "stroke-width", "stroke-dasharray"], Fn = ["d", "stroke", "stroke-width", "stroke-dasharray"], Vn = ["d", "stroke", "stroke-width", "stroke-dasharray"], Bn = ["d", "stroke", "stroke-width", "stroke-dasharray"], Rn = ["width", "x", "y"], Hn = { style: { width: "100%" } }, Dn = { key: 8 }, Wn = ["x", "y", "font-size", "fill"], En = ["x", "y", "font-size", "fill", "font-weight"], Yn = { key: 9 }, Xn = ["x", "y", "font-size", "fill"], Gn = { key: 10 }, qn = ["x", "y"], Un = ["innerHTML"], Zn = ["x", "y"], Kn = ["innerHTML"], Jn = ["x1", "x2", "y1", "y2", "stroke"], Qn = { key: 11 }, jn = ["x", "y", "font-size", "fill"], ei = { key: 12 }, ti = ["x", "y"], li = ["innerHTML"], ai = ["x", "y"], oi = ["innerHTML"], ui = ["x1", "x2", "y1", "y2", "stroke"], si = ["x", "y", "font-size", "fill", "innerHTML"], ni = ["x", "y", "font-size", "fill", "innerHTML"], ii = ["x", "y", "font-size", "fill", "innerHTML"], ri = ["x", "y", "font-size", "fill", "innerHTML"], ci = { key: 0 }, vi = ["id"], di = ["fill", "stroke"], hi = ["x1", "x2", "y1", "y2", "stroke", "marker-end"], fi = ["x1", "x2", "y1", "y2", "stroke", "marker-end"], mi = ["x", "y", "font-size", "fill", "stroke"], gi = ["id"], bi = ["stop-color"], pi = ["stop-color"], yi = ["x", "y", "width", "height", "fill", "onMouseenter"], xi = ["font-size", "fill", "transform"], ki = ["x", "y", "font-size", "fill"], _i = ["text-anchor", "font-size", "fill", "transform", "onClick"], wi = ["text-anchor", "font-size", "fill", "transform", "innerHTML", "onClick"], Si = { key: 15 }, $i = ["x1", "y1", "x2", "y2", "stroke", "stroke-width", "stroke-dasharray"], Li = ["x1", "y1", "x2", "y2", "stroke", "stroke-width", "stroke-dasharray"], Mi = ["y", "x", "width", "height", "fill"], Ai = ["id", "x", "y", "font-size", "fill", "text-anchor"], Ci = {
|
|
22
22
|
key: 16,
|
|
@@ -33,22 +33,42 @@ const ks = ["id"], _s = ["id"], ws = ["id"], Ss = { style: { position: "relative
|
|
|
33
33
|
class: "vue-ui-xy-tag-arrow",
|
|
34
34
|
height: "20",
|
|
35
35
|
viewBox: "0 0 10 20",
|
|
36
|
-
style: {
|
|
36
|
+
style: {
|
|
37
|
+
position: "absolute",
|
|
38
|
+
right: "100%",
|
|
39
|
+
top: "50%",
|
|
40
|
+
transform: "translateY(-50%)"
|
|
41
|
+
}
|
|
37
42
|
}, Vi = ["fill"], Bi = ["innerHTML"], Ri = {
|
|
38
43
|
class: "vue-ui-xy-tag-arrow",
|
|
39
44
|
height: "100%",
|
|
40
45
|
viewBox: "0 0 10 20",
|
|
41
|
-
style: {
|
|
46
|
+
style: {
|
|
47
|
+
position: "absolute",
|
|
48
|
+
left: "100%",
|
|
49
|
+
top: "50%",
|
|
50
|
+
transform: "translateY(-50%)"
|
|
51
|
+
}
|
|
42
52
|
}, Hi = ["fill"], Di = ["innerHTML"], Wi = {
|
|
43
53
|
class: "vue-ui-xy-tag-arrow",
|
|
44
54
|
height: "20",
|
|
45
55
|
viewBox: "0 0 10 20",
|
|
46
|
-
style: {
|
|
56
|
+
style: {
|
|
57
|
+
position: "absolute",
|
|
58
|
+
right: "100%",
|
|
59
|
+
top: "50%",
|
|
60
|
+
transform: "translateY(-50%)"
|
|
61
|
+
}
|
|
47
62
|
}, Ei = ["fill"], Yi = ["innerHTML"], Xi = {
|
|
48
63
|
class: "vue-ui-xy-tag-arrow",
|
|
49
64
|
height: "100%",
|
|
50
65
|
viewBox: "0 0 10 20",
|
|
51
|
-
style: {
|
|
66
|
+
style: {
|
|
67
|
+
position: "absolute",
|
|
68
|
+
left: "100%",
|
|
69
|
+
top: "50%",
|
|
70
|
+
transform: "translateY(-50%)"
|
|
71
|
+
}
|
|
52
72
|
}, Gi = ["fill"], qi = ["innerHTML"], Ui = ["id"], Zi = ["onClick", "onKeydown"], Ki = {
|
|
53
73
|
key: 0,
|
|
54
74
|
viewBox: "0 0 20 12",
|
|
@@ -90,9 +110,27 @@ const ks = ["id"], _s = ["id"], ws = ["id"], Ss = { style: { position: "relative
|
|
|
90
110
|
default: void 0
|
|
91
111
|
}
|
|
92
112
|
},
|
|
93
|
-
emits: [
|
|
113
|
+
emits: [
|
|
114
|
+
"selectTimeLabel",
|
|
115
|
+
"selectX",
|
|
116
|
+
"selectLegend",
|
|
117
|
+
"zoomStart",
|
|
118
|
+
"zoomEnd",
|
|
119
|
+
"zoomReset",
|
|
120
|
+
"copyAlt"
|
|
121
|
+
],
|
|
94
122
|
setup(cl, { expose: yo, emit: xo }) {
|
|
95
|
-
const T = cl, ko = Re(() => import("./DataTable-
|
|
123
|
+
const T = cl, ko = Re(() => import("./DataTable-cMnb68Ik.js")), _o = Re(() => import("./Tooltip-Cvt7Fi0Q.js")), wo = Re(
|
|
124
|
+
() => import("./UserOptions-DVduN6X7.js")
|
|
125
|
+
), Rl = Re(() => import("./BaseIcon-DX0hTWa-.js")), So = Re(
|
|
126
|
+
() => import("./vue-ui-table-sparkline-CpjyrPic.js")
|
|
127
|
+
), $o = Re(
|
|
128
|
+
() => import("./PackageVersion-DVvvyQXB.js")
|
|
129
|
+
), Lo = Re(
|
|
130
|
+
() => import("./PenAndPaper-CJDoB5H9.js")
|
|
131
|
+
), Mo = Re(
|
|
132
|
+
() => import("./BaseDraggableDialog-Di8Hlru3.js")
|
|
133
|
+
), We = xo, Hl = Nu(), Ao = Fu(), { vue_ui_xy: ft } = us(), { isThemeValid: Co, warnInvalidTheme: To } = cs(), $e = g(null), mt = g(null), Te = g(null), et = g(null), gt = g(null), bt = g(null), zo = g(null), vl = g(null), dl = g(null), Ft = g(null), hl = g(null), fl = g(null), Ne = g(null), ml = g(null), Io = g(0), C = g(null), Dl = g(!0), fe = g(600), ee = g(1e3), Vt = g("0 0 1000 600"), Po = g({ x: 0, y: 0 }), pt = g({ line: "line", bar: "bar", plot: "plot" }), tt = g(!1), Ee = g(!1), Wl = g(!1), Ye = g(null), G = g([]), z = g(Ol()), El = g(0), Yl = g(0), Xl = g(0), yt = g(!0), gl = g(0), P = g(null), Gl = g(!1), bl = g(!0), Bt = g(!0), ae = g(null), Oe = g({}), Rt = g(null), ql = g(!1), lt = g(null), Ht = g(!1), Dt = g(!1), _ = g(null), at = g(null), Ul = g({ x: 0, y: 0 }), Zl = Vu(null), Kl = g(!1), Jl = g(0), Ql = g(0), jl = vs({
|
|
96
134
|
elementRef: Zl,
|
|
97
135
|
minimumWidth: 2,
|
|
98
136
|
minimumHeight: 2,
|
|
@@ -150,13 +188,21 @@ const ks = ["id"], _s = ["id"], ws = ["id"], Ss = { style: { position: "relative
|
|
|
150
188
|
userConfig: T.config,
|
|
151
189
|
defaultConfig: ft
|
|
152
190
|
});
|
|
153
|
-
T.config && Ot(T.config, "chart.highlightArea") && (Array.isArray(T.config.chart.highlightArea) ? l.chart.highlightArea = T.config.chart.highlightArea : l.chart.highlightArea = [
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
191
|
+
T.config && Ot(T.config, "chart.highlightArea") && (Array.isArray(T.config.chart.highlightArea) ? l.chart.highlightArea = T.config.chart.highlightArea : l.chart.highlightArea = [
|
|
192
|
+
T.config.chart.highlightArea
|
|
193
|
+
]), T.config && Ot(T.config, "chart.annotations") && Array.isArray(T.config.chart.annotations) && T.config.chart.annotations.length ? l.chart.annotations = T.config.chart.annotations.map(
|
|
194
|
+
(a) => Nt({
|
|
195
|
+
defaultConfig: ft.chart.annotations[0],
|
|
196
|
+
userConfig: a
|
|
197
|
+
})
|
|
198
|
+
) : l.chart.annotations = [], T.config && Ot(T.config, "chart.grid.position") && T.config.chart.grid.position === "start" && T.dataset.length && T.dataset.some((a) => a.type === "bar") && (l.chart.grid.position = "middle", Ot(T.config, "debug") && console.warn(
|
|
199
|
+
"Vue Data UI - VueUiXy - config.chart.grid.position was overriden to `middle` because your dataset contains a bar"
|
|
200
|
+
)), T.config && Ot(T.config, "chart.highlightArea") && (Array.isArray(T.config.chart.highlightArea) ? l.chart.highlightArea = T.config.chart.highlightArea.map(
|
|
201
|
+
(a) => aa({
|
|
202
|
+
defaultConfig: ft.chart.highlightArea,
|
|
203
|
+
userConfig: a
|
|
204
|
+
})
|
|
205
|
+
) : l.chart.highlightArea = aa({
|
|
160
206
|
defaultConfig: ft.chart.highlightArea,
|
|
161
207
|
userConfig: T.config.chart.highlightArea
|
|
162
208
|
}));
|
|
@@ -189,7 +235,9 @@ const ks = ["id"], _s = ["id"], ws = ["id"], Ss = { style: { position: "relative
|
|
|
189
235
|
set(l) {
|
|
190
236
|
return l;
|
|
191
237
|
}
|
|
192
|
-
}), t = g(yl()), Xe = b(
|
|
238
|
+
}), t = g(yl()), Xe = b(
|
|
239
|
+
() => t.value.chart.userOptions.useCursorPointer
|
|
240
|
+
), f = g({
|
|
193
241
|
dataLabels: { show: !0 },
|
|
194
242
|
showTooltip: !0,
|
|
195
243
|
showTable: !1,
|
|
@@ -301,7 +349,11 @@ const ks = ["id"], _s = ["id"], ws = ["id"], Ss = { style: { position: "relative
|
|
|
301
349
|
};
|
|
302
350
|
}
|
|
303
351
|
const Bo = Vo((l, o) => Bl({ data: l, threshold: o })), Fe = (l) => Bo(l, t.value.downsample.threshold), ze = b({
|
|
304
|
-
get: () => Math.max(
|
|
352
|
+
get: () => Math.max(
|
|
353
|
+
...pe.value.map(
|
|
354
|
+
(l) => Fe(l.series).length
|
|
355
|
+
)
|
|
356
|
+
),
|
|
305
357
|
set: (l) => l
|
|
306
358
|
}), m = g({ start: 0, end: ze.value }), Me = g({ start: 0, end: ze.value }), oa = b(() => t.value.chart.zoom.preview.enable && (Me.value.start !== m.value.start || Me.value.end !== m.value.end));
|
|
307
359
|
function ua(l, o) {
|
|
@@ -335,14 +387,18 @@ const ks = ["id"], _s = ["id"], ws = ["id"], Ss = { style: { position: "relative
|
|
|
335
387
|
}
|
|
336
388
|
};
|
|
337
389
|
});
|
|
338
|
-
vt(
|
|
339
|
-
|
|
340
|
-
|
|
341
|
-
|
|
342
|
-
|
|
343
|
-
|
|
344
|
-
|
|
345
|
-
|
|
390
|
+
vt(
|
|
391
|
+
() => T.selectedXIndex,
|
|
392
|
+
(l) => {
|
|
393
|
+
if ([null, void 0].includes(T.selectedXIndex)) {
|
|
394
|
+
_.value = null;
|
|
395
|
+
return;
|
|
396
|
+
}
|
|
397
|
+
const o = l - m.value.start;
|
|
398
|
+
o < 0 || l >= m.value.end ? _.value = null : _.value = o ?? null;
|
|
399
|
+
},
|
|
400
|
+
{ immediate: !0 }
|
|
401
|
+
);
|
|
346
402
|
const { isPrinting: Et, isImaging: _l, generatePdf: sa, generateImage: na } = ss({
|
|
347
403
|
elementId: `vue-ui-xy_${z.value}`,
|
|
348
404
|
fileName: t.value.chart.title.text || "vue-ui-xy",
|
|
@@ -384,13 +440,25 @@ const ks = ["id"], _s = ["id"], ws = ["id"], Ss = { style: { position: "relative
|
|
|
384
440
|
}
|
|
385
441
|
const e = st.value !== null ? st.value : l > 0 ? 0 : l, s = _t.value !== null ? _t.value : o, a = l < e ? l : e, n = o > s ? o : s;
|
|
386
442
|
return ca(a, n).max;
|
|
387
|
-
}), Ae = b(() => t.value.chart.grid.labels.yAxis.useNiceScale ? uo(
|
|
443
|
+
}), Ae = b(() => t.value.chart.grid.labels.yAxis.useNiceScale ? uo(
|
|
444
|
+
Xt.value,
|
|
445
|
+
Gt.value < 0 ? 0 : Gt.value,
|
|
446
|
+
t.value.chart.grid.labels.yAxis.commonScaleSteps
|
|
447
|
+
) : so(
|
|
448
|
+
Xt.value,
|
|
449
|
+
Gt.value < 0 ? 0 : Gt.value,
|
|
450
|
+
t.value.chart.grid.labels.yAxis.commonScaleSteps
|
|
451
|
+
)), wt = b(() => [null, void 0].includes(
|
|
452
|
+
t.value.chart.grid.labels.yAxis.scaleMin
|
|
453
|
+
) ? Ae.value.min >= 0 ? 0 : Math.abs(Ae.value.min) : -Ae.value.min), Ve = b(() => Dl.value ? pe.value.map((l, o) => {
|
|
388
454
|
const e = Fe(l.series), s = `uniqueId_${o}`;
|
|
389
455
|
return {
|
|
390
456
|
...l,
|
|
391
457
|
slotAbsoluteIndex: o,
|
|
392
458
|
series: e.map((a) => nl(a) ? a : null).slice(m.value.start, m.value.end),
|
|
393
|
-
color: Fl(
|
|
459
|
+
color: Fl(
|
|
460
|
+
l.color ? l.color : Yt.value[o] ? Yt.value[o] : Vl[o]
|
|
461
|
+
),
|
|
394
462
|
id: s,
|
|
395
463
|
scaleLabel: l.scaleLabel || s
|
|
396
464
|
};
|
|
@@ -403,9 +471,13 @@ const ks = ["id"], _s = ["id"], ws = ["id"], Ss = { style: { position: "relative
|
|
|
403
471
|
isSegregated: G.value.includes(l.id)
|
|
404
472
|
}))), ye = b(() => Ve.value.map((l, o) => ({
|
|
405
473
|
...l,
|
|
406
|
-
series: l.series.map(
|
|
474
|
+
series: l.series.map(
|
|
475
|
+
(e) => e + wt.value
|
|
476
|
+
),
|
|
407
477
|
absoluteValues: l.series
|
|
408
|
-
})).filter((l) => !G.value.includes(l.id))), Wo = b(
|
|
478
|
+
})).filter((l) => !G.value.includes(l.id))), Wo = b(
|
|
479
|
+
() => G.value.length === ie.value.length
|
|
480
|
+
);
|
|
409
481
|
function Eo() {
|
|
410
482
|
let l = 0;
|
|
411
483
|
hl.value && (l = Array.from(hl.value.querySelectorAll("text")).reduce((a, n) => {
|
|
@@ -540,7 +612,10 @@ const ks = ["id"], _s = ["id"], ws = ["id"], Ss = { style: { position: "relative
|
|
|
540
612
|
});
|
|
541
613
|
const Uo = b(() => {
|
|
542
614
|
const l = t.value.chart.grid.labels.xAxisLabels.modulo;
|
|
543
|
-
return oe.value.length ? Math.min(
|
|
615
|
+
return oe.value.length ? Math.min(
|
|
616
|
+
l,
|
|
617
|
+
[...new Set(oe.value.map((o) => o.text))].length
|
|
618
|
+
) : l;
|
|
544
619
|
}), Kt = b(() => {
|
|
545
620
|
const l = t.value.chart.grid.labels.xAxisLabels, o = oe.value || [], e = Zt.value || [], s = m.value.start ?? 0, a = _.value, n = $.value, u = o.map((M) => M?.text ?? ""), S = e.map((M) => M?.text ?? "");
|
|
546
621
|
return Yu(
|
|
@@ -581,7 +656,9 @@ const ks = ["id"], _s = ["id"], ws = ["id"], Ss = { style: { position: "relative
|
|
|
581
656
|
name: s.name,
|
|
582
657
|
color: s.color,
|
|
583
658
|
type: s.type,
|
|
584
|
-
value: s.absoluteValues.find(
|
|
659
|
+
value: s.absoluteValues.find(
|
|
660
|
+
(a, n) => n === o
|
|
661
|
+
),
|
|
585
662
|
comments: s.comments || [],
|
|
586
663
|
prefix: s.prefix || t.value.chart.labels.prefix,
|
|
587
664
|
suffix: s.suffix || t.value.chart.labels.suffix
|
|
@@ -603,7 +680,11 @@ const ks = ["id"], _s = ["id"], ws = ["id"], Ss = { style: { position: "relative
|
|
|
603
680
|
f.value.isStacked = !f.value.isStacked, f.value.isStacked ? f.value.useIndividualScale = !0 : f.value.useIndividualScale = t.value.chart.grid.labels.yAxis.useIndividualScale;
|
|
604
681
|
}
|
|
605
682
|
function Sl(l) {
|
|
606
|
-
kt.value && l.autoScaling && (t.value.chart.grid.labels.yAxis.useIndividualScale || console.warn(
|
|
683
|
+
kt.value && l.autoScaling && (t.value.chart.grid.labels.yAxis.useIndividualScale || console.warn(
|
|
684
|
+
`VueUiXy (datapoint: ${l.name}) : autoScaling only works when config.chart.grid.labels.yAxis.useIndividualScale is set to true`
|
|
685
|
+
), t.value.chart.grid.labels.yAxis.stacked || console.warn(
|
|
686
|
+
`VueUiXy (datapoint: ${l.name}) : autoScaling only works when config.chart.grid.labels.yAxis.stacked is set to true`
|
|
687
|
+
));
|
|
607
688
|
}
|
|
608
689
|
function Jo(l, o) {
|
|
609
690
|
const e = ta(l), s = Array(e).fill(0);
|
|
@@ -611,7 +692,11 @@ const ks = ["id"], _s = ["id"], ws = ["id"], Ss = { style: { position: "relative
|
|
|
611
692
|
return s;
|
|
612
693
|
}
|
|
613
694
|
function xa(l) {
|
|
614
|
-
const o = Math.max(
|
|
695
|
+
const o = Math.max(
|
|
696
|
+
...pe.value.map(
|
|
697
|
+
(e) => Fe(e.series).length
|
|
698
|
+
)
|
|
699
|
+
);
|
|
615
700
|
return l > o ? o : l < 0 || t.value.chart.zoom.startIndex !== null && l < t.value.chart.zoom.startIndex ? t.value.chart.zoom.startIndex !== null ? t.value.chart.zoom.startIndex + 1 : 1 : l;
|
|
616
701
|
}
|
|
617
702
|
const $t = g(!1), ka = g(!1), _a = g(0), wa = g(0);
|
|
@@ -623,7 +708,9 @@ const ks = ["id"], _s = ["id"], ws = ["id"], Ss = { style: { position: "relative
|
|
|
623
708
|
if (!$t.value) {
|
|
624
709
|
$t.value = !0;
|
|
625
710
|
try {
|
|
626
|
-
const { startIndex: l, endIndex: o } = t.value.chart.zoom, e = Math.max(
|
|
711
|
+
const { startIndex: l, endIndex: o } = t.value.chart.zoom, e = Math.max(
|
|
712
|
+
...pe.value.map((n) => Fe(n.series).length)
|
|
713
|
+
);
|
|
627
714
|
_a.value = 0, wa.value = e;
|
|
628
715
|
const s = l ?? 0, a = o != null ? Math.min(xa(o + 1), e) : e;
|
|
629
716
|
Qt.value = !0, m.value.start = s, m.value.end = a, Me.value.start = s, Me.value.end = a, ut(), ka.value = !0;
|
|
@@ -640,7 +727,10 @@ const ks = ["id"], _s = ["id"], ws = ["id"], Ss = { style: { position: "relative
|
|
|
640
727
|
const o = Number(l);
|
|
641
728
|
We("zoomStart", {
|
|
642
729
|
index: o,
|
|
643
|
-
isZoom: Sa(
|
|
730
|
+
isZoom: Sa(
|
|
731
|
+
o,
|
|
732
|
+
_a.value
|
|
733
|
+
)
|
|
644
734
|
}), Number.isFinite(o) && o !== m.value.start && (m.value.start = o, Me.value.start = o, ut());
|
|
645
735
|
}
|
|
646
736
|
function jo(l) {
|
|
@@ -663,14 +753,29 @@ const ks = ["id"], _s = ["id"], ws = ["id"], Ss = { style: { position: "relative
|
|
|
663
753
|
}
|
|
664
754
|
const me = b(() => isNaN(Ge(wt.value)) ? c.value?.bottom : c.value?.bottom - c.value.height * Ge(wt.value));
|
|
665
755
|
function La(l) {
|
|
666
|
-
const o = ![null, void 0].includes(
|
|
667
|
-
|
|
756
|
+
const o = ![null, void 0].includes(
|
|
757
|
+
t.value.chart.grid.labels.yAxis.scaleMin
|
|
758
|
+
) && t.value.chart.grid.labels.yAxis.scaleMin > 0 && Xt.value >= 0 ? c.value?.bottom : me.value;
|
|
759
|
+
return l.value >= 0 ? N(
|
|
760
|
+
o - l.y <= 0 ? 1e-5 : o - l.y
|
|
761
|
+
) : N(
|
|
762
|
+
l.y - me.value <= 0 ? 1e-5 : l.y - me.value
|
|
763
|
+
);
|
|
668
764
|
}
|
|
669
765
|
function Ma(l) {
|
|
670
|
-
return l.value >= 0 ? N(
|
|
766
|
+
return l.value >= 0 ? N(
|
|
767
|
+
l.zeroPosition - l.y <= 0 ? 1e-5 : l.zeroPosition - l.y
|
|
768
|
+
) : N(
|
|
769
|
+
l.y - l.zeroPosition <= 0 ? 1e-5 : l.zeroPosition - l.y
|
|
770
|
+
);
|
|
671
771
|
}
|
|
672
772
|
const J = b(() => {
|
|
673
|
-
const l = Math.max(1, $.value), o = Math.max(1, c.value.width), e = Math.max(
|
|
773
|
+
const l = Math.max(1, $.value), o = Math.max(1, c.value.width), e = Math.max(
|
|
774
|
+
1,
|
|
775
|
+
Ve.value.filter(
|
|
776
|
+
(s) => s.type === "bar" && !G.value.includes(s.id)
|
|
777
|
+
).length
|
|
778
|
+
);
|
|
674
779
|
return {
|
|
675
780
|
bar: pl(o, l * e, 1),
|
|
676
781
|
plot: pl(o, l, 1),
|
|
@@ -687,7 +792,9 @@ const ks = ["id"], _s = ["id"], ws = ["id"], Ss = { style: { position: "relative
|
|
|
687
792
|
return l.value >= 0 ? l.y : [null, void 0, NaN, 1 / 0, -1 / 0].includes(me.value) ? c?.bottom.value : me.value;
|
|
688
793
|
}
|
|
689
794
|
function Ca(l) {
|
|
690
|
-
return l.value >= 0 ? l.y : [null, void 0, NaN, 1 / 0, -1 / 0].includes(
|
|
795
|
+
return l.value >= 0 ? l.y : [null, void 0, NaN, 1 / 0, -1 / 0].includes(
|
|
796
|
+
l.zeroPosition
|
|
797
|
+
) ? 0 : l.zeroPosition;
|
|
691
798
|
}
|
|
692
799
|
const it = g(null);
|
|
693
800
|
function Ta(l) {
|
|
@@ -702,7 +809,12 @@ const ks = ["id"], _s = ["id"], ws = ["id"], Ss = { style: { position: "relative
|
|
|
702
809
|
return { x: p.x, y: p.y, ok: !0 };
|
|
703
810
|
}
|
|
704
811
|
}
|
|
705
|
-
const e = o.getBoundingClientRect(), s = o.viewBox?.baseVal || {
|
|
812
|
+
const e = o.getBoundingClientRect(), s = o.viewBox?.baseVal || {
|
|
813
|
+
x: 0,
|
|
814
|
+
y: 0,
|
|
815
|
+
width: e.width,
|
|
816
|
+
height: e.height
|
|
817
|
+
}, a = Math.min(e.width / s.width, e.height / s.height), n = s.width * a, u = s.height * a, S = (e.width - n) / 2, M = (e.height - u) / 2, I = (l.clientX - e?.left - S) / a + s.x, V = (l.clientY - e?.top - M) / a + s.y;
|
|
706
818
|
return { x: I, y: V, ok: !0 };
|
|
707
819
|
}
|
|
708
820
|
let qe = 0;
|
|
@@ -747,14 +859,14 @@ const ks = ["id"], _s = ["id"], ws = ["id"], Ss = { style: { position: "relative
|
|
|
747
859
|
color: e.color,
|
|
748
860
|
type: e.type
|
|
749
861
|
}));
|
|
750
|
-
We(
|
|
751
|
-
|
|
752
|
-
|
|
753
|
-
|
|
754
|
-
|
|
755
|
-
|
|
756
|
-
|
|
757
|
-
|
|
862
|
+
We("selectX", {
|
|
863
|
+
dataset: o,
|
|
864
|
+
index: l,
|
|
865
|
+
indexLabel: t.value.chart.grid.labels.xAxisLabels.values[l]
|
|
866
|
+
}), t.value.events.datapointClick && t.value.events.datapointClick({
|
|
867
|
+
datapoint: o,
|
|
868
|
+
seriesIndex: l + m.value.start
|
|
869
|
+
});
|
|
758
870
|
}
|
|
759
871
|
function lu() {
|
|
760
872
|
return ie.value.map((l) => ({
|
|
@@ -766,7 +878,12 @@ const ks = ["id"], _s = ["id"], ws = ["id"], Ss = { style: { position: "relative
|
|
|
766
878
|
}
|
|
767
879
|
async function au({ scale: l = 2 } = {}) {
|
|
768
880
|
if (!$e.value) return;
|
|
769
|
-
const { width: o, height: e } = $e.value.getBoundingClientRect(), s = o / e, { imageUri: a, base64: n } = await hs({
|
|
881
|
+
const { width: o, height: e } = $e.value.getBoundingClientRect(), s = o / e, { imageUri: a, base64: n } = await hs({
|
|
882
|
+
domElement: $e.value,
|
|
883
|
+
base64: !0,
|
|
884
|
+
img: !0,
|
|
885
|
+
scale: l
|
|
886
|
+
});
|
|
770
887
|
return {
|
|
771
888
|
imageUri: a,
|
|
772
889
|
base64: n,
|
|
@@ -786,17 +903,23 @@ const ks = ["id"], _s = ["id"], ws = ["id"], Ss = { style: { position: "relative
|
|
|
786
903
|
}
|
|
787
904
|
function Mt(l) {
|
|
788
905
|
if (G.value.includes(l.id))
|
|
789
|
-
G.value = G.value.filter(
|
|
906
|
+
G.value = G.value.filter(
|
|
907
|
+
(o) => o !== l.id
|
|
908
|
+
);
|
|
790
909
|
else {
|
|
791
|
-
if (G.value.length + 1 === Ve.value.length)
|
|
910
|
+
if (G.value.length + 1 === Ve.value.length)
|
|
911
|
+
return;
|
|
792
912
|
G.value.push(l.id);
|
|
793
913
|
}
|
|
794
|
-
We(
|
|
795
|
-
|
|
796
|
-
|
|
797
|
-
|
|
798
|
-
|
|
799
|
-
|
|
914
|
+
We(
|
|
915
|
+
"selectLegend",
|
|
916
|
+
ye.value.map((o) => ({
|
|
917
|
+
name: o.name,
|
|
918
|
+
values: o.absoluteValues,
|
|
919
|
+
color: o.color,
|
|
920
|
+
type: o.type
|
|
921
|
+
}))
|
|
922
|
+
), gl.value += 1;
|
|
800
923
|
}
|
|
801
924
|
function Pa(l) {
|
|
802
925
|
if (!ie.value.length)
|
|
@@ -830,14 +953,23 @@ const ks = ["id"], _s = ["id"], ws = ["id"], Ss = { style: { position: "relative
|
|
|
830
953
|
...t.value.chart.highlightArea,
|
|
831
954
|
to: Math.min(t.value.chart.highlightArea.to, ze.value - 1)
|
|
832
955
|
};
|
|
833
|
-
return [
|
|
956
|
+
return [
|
|
957
|
+
{
|
|
958
|
+
...l,
|
|
959
|
+
span: l.from === l.to ? 1 : l.to < l.from ? 0 : l.to - l.from + 1
|
|
960
|
+
}
|
|
961
|
+
];
|
|
834
962
|
}), Na = b(() => Dl.value ? pe.value.map((l, o) => ({
|
|
835
963
|
...l,
|
|
836
964
|
series: Fe(l.series),
|
|
837
965
|
id: `uniqueId_${o}`,
|
|
838
|
-
color: Fl(
|
|
966
|
+
color: Fl(
|
|
967
|
+
l.color ? l.color : Yt.value[o] ? Yt.value[o] : Vl[o]
|
|
968
|
+
)
|
|
839
969
|
})) : pe.value), vu = b(() => ye.value.map((l) => {
|
|
840
|
-
const o = l.absoluteValues.map(
|
|
970
|
+
const o = l.absoluteValues.map(
|
|
971
|
+
(e) => [void 0, null].includes(e) ? 0 : e
|
|
972
|
+
);
|
|
841
973
|
return {
|
|
842
974
|
id: l.id,
|
|
843
975
|
name: l.name,
|
|
@@ -853,7 +985,12 @@ const ks = ["id"], _s = ["id"], ws = ["id"], Ss = { style: { position: "relative
|
|
|
853
985
|
fontFamily: t.value.chart.fontFamily,
|
|
854
986
|
prefix: t.value.chart.labels.prefix,
|
|
855
987
|
suffix: t.value.chart.labels.suffix,
|
|
856
|
-
colNames: oe.value.map(
|
|
988
|
+
colNames: oe.value.map(
|
|
989
|
+
(l, o) => t.value.table.useDefaultTimeFormat ? l.text : rt.value(
|
|
990
|
+
o + m.value.start,
|
|
991
|
+
t.value.table.timeFormat
|
|
992
|
+
)
|
|
993
|
+
),
|
|
857
994
|
thead: {
|
|
858
995
|
backgroundColor: t.value.table.th.backgroundColor,
|
|
859
996
|
color: t.value.table.th.color,
|
|
@@ -870,7 +1007,11 @@ const ks = ["id"], _s = ["id"], ws = ["id"], Ss = { style: { position: "relative
|
|
|
870
1007
|
sparkline: {
|
|
871
1008
|
animation: { show: !1 }
|
|
872
1009
|
}
|
|
873
|
-
})), q = b(() => t.value.chart.grid.position === "middle" ? 0 : c.value.width / $.value / 2), Ue = b(() => Xu(
|
|
1010
|
+
})), q = b(() => t.value.chart.grid.position === "middle" ? 0 : c.value.width / $.value / 2), Ue = b(() => Xu(
|
|
1011
|
+
ie.value.filter(
|
|
1012
|
+
(l) => !G.value.includes(l.id)
|
|
1013
|
+
)
|
|
1014
|
+
));
|
|
874
1015
|
function hu(l, o) {
|
|
875
1016
|
const e = /* @__PURE__ */ Object.create(null);
|
|
876
1017
|
for (let s = 0; s < l.length; s += 1) {
|
|
@@ -880,7 +1021,10 @@ const ks = ["id"], _s = ["id"], ws = ["id"], Ss = { style: { position: "relative
|
|
|
880
1021
|
return e;
|
|
881
1022
|
}
|
|
882
1023
|
const L = b(() => {
|
|
883
|
-
const l = hu(
|
|
1024
|
+
const l = hu(
|
|
1025
|
+
Ue.value,
|
|
1026
|
+
(e) => e.scaleLabel
|
|
1027
|
+
), o = {};
|
|
884
1028
|
for (const [e, s] of Object.entries(l)) {
|
|
885
1029
|
const a = s.flatMap((n) => n.absoluteValues);
|
|
886
1030
|
o[e] = {
|
|
@@ -893,11 +1037,24 @@ const ks = ["id"], _s = ["id"], ws = ["id"], Ss = { style: { position: "relative
|
|
|
893
1037
|
}), fu = b(() => {
|
|
894
1038
|
const l = Ve.value.filter((o) => o.type === "bar").filter((o) => !G.value.includes(o.id)).length;
|
|
895
1039
|
return c.value.width / $.value / l - el.value * l;
|
|
896
|
-
}), el = b(
|
|
1040
|
+
}), el = b(
|
|
1041
|
+
() => J.value.line * t.value.bar.periodGap
|
|
1042
|
+
), tl = b(() => Math.max(
|
|
1043
|
+
1e-5,
|
|
1044
|
+
Be() - (f.value.useIndividualScale && f.value.isStacked ? 0 : el.value)
|
|
1045
|
+
)), ll = b(
|
|
1046
|
+
() => tl.value * Math.min(Math.abs(t.value.bar.innerGap), 0.95)
|
|
1047
|
+
), mu = b(() => {
|
|
897
1048
|
if (!t.value.chart.zoom.minimap.show) return [];
|
|
898
|
-
const l = Na.value.filter(
|
|
1049
|
+
const l = Na.value.filter(
|
|
1050
|
+
(a) => !G.value.includes(a.id)
|
|
1051
|
+
), o = Math.max(
|
|
1052
|
+
...l.map((a) => a.series.length)
|
|
1053
|
+
), e = [];
|
|
899
1054
|
for (let a = 0; a < o; a += 1)
|
|
900
|
-
e.push(
|
|
1055
|
+
e.push(
|
|
1056
|
+
l.map((n) => n.series[a] || 0).reduce((n, u) => (n || 0) + (u || 0), 0)
|
|
1057
|
+
);
|
|
901
1058
|
const s = Math.min(...e);
|
|
902
1059
|
return e.map((a) => a + (s < 0 ? Math.abs(s) : 0));
|
|
903
1060
|
}), gu = b(() => t.value.chart.zoom.minimap.show ? Na.value.map((o) => ({
|
|
@@ -909,7 +1066,9 @@ const ks = ["id"], _s = ["id"], ws = ["id"], Ss = { style: { position: "relative
|
|
|
909
1066
|
name: l.name,
|
|
910
1067
|
color: l.color,
|
|
911
1068
|
type: l.type,
|
|
912
|
-
value: l.absoluteValues.find(
|
|
1069
|
+
value: l.absoluteValues.find(
|
|
1070
|
+
(o, e) => e === _.value
|
|
1071
|
+
),
|
|
913
1072
|
comments: l.comments || [],
|
|
914
1073
|
prefix: l.prefix || t.value.chart.labels.prefix,
|
|
915
1074
|
suffix: l.suffix || t.value.chart.labels.suffix
|
|
@@ -930,7 +1089,9 @@ const ks = ["id"], _s = ["id"], ws = ["id"], Ss = { style: { position: "relative
|
|
|
930
1089
|
return a - D * n;
|
|
931
1090
|
};
|
|
932
1091
|
return o.map((V) => {
|
|
933
|
-
const {
|
|
1092
|
+
const {
|
|
1093
|
+
yAxis: { yTop: D, yBottom: F, label: p }
|
|
1094
|
+
} = V, te = D != null && F != null && D !== F, B = D == null ? null : I(D), Q = F == null ? null : I(F), X = qo(p.fontSize);
|
|
934
1095
|
X.font = `${p.fontSize}px sans-serif`;
|
|
935
1096
|
const H = X.measureText(p.text).width, U = p.fontSize, j = (p.position === "start" ? e + p.padding?.left : s - p.padding?.right) + p.offsetX, we = (B != null && Q != null ? Math.min(B, Q) : B ?? Q) - p.fontSize / 3 + p.offsetY - p.padding?.top;
|
|
936
1097
|
let Z;
|
|
@@ -1000,7 +1161,9 @@ const ks = ["id"], _s = ["id"], ws = ["id"], Ss = { style: { position: "relative
|
|
|
1000
1161
|
};
|
|
1001
1162
|
}
|
|
1002
1163
|
const ke = b(() => {
|
|
1003
|
-
const l = Ue.value.filter(
|
|
1164
|
+
const l = Ue.value.filter(
|
|
1165
|
+
(u) => ["bar", "line", "plot"].includes(u.type)
|
|
1166
|
+
), o = l.length, e = t.value.chart.grid.labels.yAxis.gap, a = f.value.isStacked ? e * (o - 1) : 0, n = c.value.height - a;
|
|
1004
1167
|
return l.filter((u) => u.type === "bar").map((u, S) => {
|
|
1005
1168
|
Sl(u);
|
|
1006
1169
|
const M = L.value[u.scaleLabel].min, I = L.value[u.scaleLabel].max;
|
|
@@ -1010,7 +1173,15 @@ const ks = ["id"], _s = ["id"], ws = ["id"], Ss = { style: { position: "relative
|
|
|
1010
1173
|
valueMax: I < 0 ? 0 : I
|
|
1011
1174
|
}, D = {
|
|
1012
1175
|
max: u.scaleMax || Math.max(...u.absoluteValues) || 1,
|
|
1013
|
-
min: u.scaleMin || Math.min(
|
|
1176
|
+
min: u.scaleMin || Math.min(
|
|
1177
|
+
...u.absoluteValues.filter(
|
|
1178
|
+
(R) => ![void 0, null].includes(R)
|
|
1179
|
+
)
|
|
1180
|
+
) > 0 ? 0 : Math.min(
|
|
1181
|
+
...u.absoluteValues.filter(
|
|
1182
|
+
(R) => ![null, void 0].includes(R)
|
|
1183
|
+
)
|
|
1184
|
+
)
|
|
1014
1185
|
}, {
|
|
1015
1186
|
individualScale: F,
|
|
1016
1187
|
autoScaleSteps: p,
|
|
@@ -1039,19 +1210,33 @@ const ks = ["id"], _s = ["id"], ws = ["id"], Ss = { style: { position: "relative
|
|
|
1039
1210
|
value: u.absoluteValues[re],
|
|
1040
1211
|
zeroPosition: N(U),
|
|
1041
1212
|
individualMax: N(B),
|
|
1042
|
-
comment: u.comments && u.comments.slice(
|
|
1213
|
+
comment: u.comments && u.comments.slice(
|
|
1214
|
+
m.value.start,
|
|
1215
|
+
m.value.end
|
|
1216
|
+
)[re] || ""
|
|
1043
1217
|
};
|
|
1044
|
-
}), Z = u.absoluteValues.map(
|
|
1045
|
-
|
|
1218
|
+
}), Z = u.absoluteValues.map(
|
|
1219
|
+
(R) => p.min >= 0 ? (R - Math.abs(p.min)) / (p.max - Math.abs(p.min)) : (R + Math.abs(p.min)) / (p.max + Math.abs(p.min))
|
|
1220
|
+
), be = u.series.map((R, re) => {
|
|
1221
|
+
const Tt = f.value.useIndividualScale && f.value.isStacked ? c.value?.left + c.value.width / $.value * re : c.value?.left - J.value.bar / 2 + J.value.bar * S + J.value.bar * re * ie.value.filter((Ke) => Ke.type === "bar").filter(
|
|
1222
|
+
(Ke) => !G.value.includes(
|
|
1223
|
+
Ke.id
|
|
1224
|
+
)
|
|
1225
|
+
).length;
|
|
1046
1226
|
return {
|
|
1047
1227
|
yOffset: N(X),
|
|
1048
1228
|
individualHeight: N(H),
|
|
1049
1229
|
x: N(Tt),
|
|
1050
|
-
y: N(
|
|
1230
|
+
y: N(
|
|
1231
|
+
c.value?.bottom - N(X) - (N(H) * Z[re] || 0)
|
|
1232
|
+
),
|
|
1051
1233
|
value: u.absoluteValues[re],
|
|
1052
1234
|
zeroPosition: N(U),
|
|
1053
1235
|
individualMax: N(B),
|
|
1054
|
-
comment: u.comments && u.comments.slice(
|
|
1236
|
+
comment: u.comments && u.comments.slice(
|
|
1237
|
+
m.value.start,
|
|
1238
|
+
m.value.end
|
|
1239
|
+
)[re] || ""
|
|
1055
1240
|
};
|
|
1056
1241
|
}), E = F.ticks.map((R) => ({
|
|
1057
1242
|
y: R >= 0 ? U - H * (R / B) : U + H * Math.abs(R) / B,
|
|
@@ -1069,7 +1254,9 @@ const ks = ["id"], _s = ["id"], ws = ["id"], Ss = { style: { position: "relative
|
|
|
1069
1254
|
datapoint: u
|
|
1070
1255
|
};
|
|
1071
1256
|
});
|
|
1072
|
-
return L.value[u.scaleLabel].name = u.name, L.value[u.scaleLabel].groupName = u.scaleLabel, L.value[u.scaleLabel].groupColor = t.value.chart.grid.labels.yAxis.groupColor || u.color, L.value[u.scaleLabel].color = u.color, L.value[u.scaleLabel].scaleYLabels = u.autoScaling ? le : E, L.value[u.scaleLabel].zeroPosition = u.autoScaling ? j : U, L.value[u.scaleLabel].individualMax = u.autoScaling ? Q : B, L.value[u.scaleLabel].scaleLabel = u.scaleLabel, L.value[u.scaleLabel].id = u.id, L.value[u.scaleLabel].yOffset = X, L.value[u.scaleLabel].individualHeight = H, L.value[u.scaleLabel].autoScaleYLabels = le, L.value[u.scaleLabel].unique = Ue.value.filter(
|
|
1257
|
+
return L.value[u.scaleLabel].name = u.name, L.value[u.scaleLabel].groupName = u.scaleLabel, L.value[u.scaleLabel].groupColor = t.value.chart.grid.labels.yAxis.groupColor || u.color, L.value[u.scaleLabel].color = u.color, L.value[u.scaleLabel].scaleYLabels = u.autoScaling ? le : E, L.value[u.scaleLabel].zeroPosition = u.autoScaling ? j : U, L.value[u.scaleLabel].individualMax = u.autoScaling ? Q : B, L.value[u.scaleLabel].scaleLabel = u.scaleLabel, L.value[u.scaleLabel].id = u.id, L.value[u.scaleLabel].yOffset = X, L.value[u.scaleLabel].individualHeight = H, L.value[u.scaleLabel].autoScaleYLabels = le, L.value[u.scaleLabel].unique = Ue.value.filter(
|
|
1258
|
+
(R) => R.scaleLabel === u.scaleLabel
|
|
1259
|
+
).length === 1, {
|
|
1073
1260
|
...u,
|
|
1074
1261
|
yOffset: X,
|
|
1075
1262
|
autoScaleYLabels: le,
|
|
@@ -1083,7 +1270,9 @@ const ks = ["id"], _s = ["id"], ws = ["id"], Ss = { style: { position: "relative
|
|
|
1083
1270
|
};
|
|
1084
1271
|
});
|
|
1085
1272
|
}), ue = b(() => {
|
|
1086
|
-
const l = Ue.value.filter(
|
|
1273
|
+
const l = Ue.value.filter(
|
|
1274
|
+
(u) => ["bar", "line", "plot"].includes(u.type)
|
|
1275
|
+
), o = l.length, e = t.value.chart.grid.labels.yAxis.gap, a = f.value.isStacked ? e * (o - 1) : 0, n = c.value.height - a;
|
|
1087
1276
|
return l.filter((u) => u.type === "line").map((u, S) => {
|
|
1088
1277
|
Sl(u);
|
|
1089
1278
|
const M = L.value[u.scaleLabel].min, I = L.value[u.scaleLabel].max;
|
|
@@ -1115,22 +1304,53 @@ const ks = ["id"], _s = ["id"], ws = ["id"], Ss = { style: { position: "relative
|
|
|
1115
1304
|
}), K = u.series.map((A, ce) => {
|
|
1116
1305
|
const Ou = f.value.useIndividualScale ? (u.absoluteValues[ce] + Math.abs(te)) / B : Ge(A);
|
|
1117
1306
|
return {
|
|
1118
|
-
x: N(
|
|
1119
|
-
|
|
1307
|
+
x: N(
|
|
1308
|
+
c.value?.left + J.value.line / 2 + J.value.line * ce
|
|
1309
|
+
),
|
|
1310
|
+
y: N(
|
|
1311
|
+
c.value?.bottom - X - H * Ou
|
|
1312
|
+
),
|
|
1120
1313
|
value: u.absoluteValues[ce],
|
|
1121
|
-
comment: u.comments && u.comments.slice(
|
|
1314
|
+
comment: u.comments && u.comments.slice(
|
|
1315
|
+
m.value.start,
|
|
1316
|
+
m.value.end
|
|
1317
|
+
)[ce] || ""
|
|
1122
1318
|
};
|
|
1123
|
-
}), we = u.absoluteValues.map(
|
|
1124
|
-
|
|
1319
|
+
}), we = u.absoluteValues.map(
|
|
1320
|
+
(A) => p.min >= 0 ? (A - Math.abs(p.min)) / (p.max - Math.abs(p.min)) : (A + Math.abs(p.min)) / (p.max + Math.abs(p.min))
|
|
1321
|
+
), Z = u.series.map((A, ce) => [void 0, null].includes(u.absoluteValues[ce]) ? {
|
|
1322
|
+
x: N(
|
|
1323
|
+
c.value?.left + J.value.line / 2 + J.value.line * ce
|
|
1324
|
+
),
|
|
1125
1325
|
y: U,
|
|
1126
1326
|
value: u.absoluteValues[ce],
|
|
1127
|
-
comment: u.comments && u.comments.slice(
|
|
1327
|
+
comment: u.comments && u.comments.slice(
|
|
1328
|
+
m.value.start,
|
|
1329
|
+
m.value.end
|
|
1330
|
+
)[ce] || ""
|
|
1128
1331
|
} : {
|
|
1129
|
-
x: N(
|
|
1130
|
-
|
|
1332
|
+
x: N(
|
|
1333
|
+
c.value?.left + J.value.line / 2 + J.value.line * ce
|
|
1334
|
+
),
|
|
1335
|
+
y: N(
|
|
1336
|
+
c.value?.bottom - X - (H * we[ce] || 0)
|
|
1337
|
+
),
|
|
1131
1338
|
value: u.absoluteValues[ce],
|
|
1132
|
-
comment: u.comments && u.comments.slice(
|
|
1133
|
-
|
|
1339
|
+
comment: u.comments && u.comments.slice(
|
|
1340
|
+
m.value.start,
|
|
1341
|
+
m.value.end
|
|
1342
|
+
)[ce] || ""
|
|
1343
|
+
}), be = u.dashIndices && Array.isArray(u.dashIndices) && u?.dashIndices?.length > 0, E = t.value.line.cutNullValues ? no(K) : io(K.filter((A) => A.value !== null)), le = t.value.line.cutNullValues ? no(Z) : io(
|
|
1344
|
+
Z.filter((A) => A.value !== null)
|
|
1345
|
+
), R = t.value.line.cutNullValues ? ro(K) : co(K.filter((A) => A.value !== null)), re = t.value.line.cutNullValues ? ro(Z) : co(
|
|
1346
|
+
Z.filter((A) => A.value !== null)
|
|
1347
|
+
), Tt = be ? Gu(
|
|
1348
|
+
t.value.line.cutNullValues ? K : K.filter((A) => A.value !== null),
|
|
1349
|
+
u.dashIndices.map((A) => A - m.value.start)
|
|
1350
|
+
) : [], Ke = be ? qu(
|
|
1351
|
+
t.value.line.cutNullValues ? K : K.filter((A) => A.value !== null),
|
|
1352
|
+
u.dashIndices.map((A) => A - m.value.start)
|
|
1353
|
+
) : [], ol = F.ticks.map((A) => ({
|
|
1134
1354
|
y: A >= 0 ? U - H * (A / B) : U + H * Math.abs(A) / B,
|
|
1135
1355
|
value: A,
|
|
1136
1356
|
prefix: u.prefix || t.value.chart.labels.prefix,
|
|
@@ -1146,7 +1366,9 @@ const ks = ["id"], _s = ["id"], ws = ["id"], Ss = { style: { position: "relative
|
|
|
1146
1366
|
datapoint: u
|
|
1147
1367
|
};
|
|
1148
1368
|
});
|
|
1149
|
-
L.value[u.scaleLabel].name = u.name, L.value[u.scaleLabel].groupName = u.scaleLabel, L.value[u.scaleLabel].groupColor = t.value.chart.grid.labels.yAxis.groupColor || u.color, L.value[u.scaleLabel].color = u.color, L.value[u.scaleLabel].scaleYLabels = u.autoScaling ? ul : ol, L.value[u.scaleLabel].zeroPosition = u.autoScaling ? j : U, L.value[u.scaleLabel].individualMax = u.autoScaling ? Q : B, L.value[u.scaleLabel].scaleLabel = u.scaleLabel, L.value[u.scaleLabel].id = u.id, L.value[u.scaleLabel].yOffset = X, L.value[u.scaleLabel].individualHeight = H, L.value[u.scaleLabel].autoScaleYLabels = ul, L.value[u.scaleLabel].unique = Ue.value.filter(
|
|
1369
|
+
L.value[u.scaleLabel].name = u.name, L.value[u.scaleLabel].groupName = u.scaleLabel, L.value[u.scaleLabel].groupColor = t.value.chart.grid.labels.yAxis.groupColor || u.color, L.value[u.scaleLabel].color = u.color, L.value[u.scaleLabel].scaleYLabels = u.autoScaling ? ul : ol, L.value[u.scaleLabel].zeroPosition = u.autoScaling ? j : U, L.value[u.scaleLabel].individualMax = u.autoScaling ? Q : B, L.value[u.scaleLabel].scaleLabel = u.scaleLabel, L.value[u.scaleLabel].id = u.id, L.value[u.scaleLabel].yOffset = X, L.value[u.scaleLabel].individualHeight = H, L.value[u.scaleLabel].autoScaleYLabels = ul, L.value[u.scaleLabel].unique = Ue.value.filter(
|
|
1370
|
+
(A) => A.scaleLabel === u.scaleLabel
|
|
1371
|
+
).length === 1;
|
|
1150
1372
|
const Pu = f.value.useIndividualScale ? u.autoScaling ? j : U : Do.value, zt = Math.max(
|
|
1151
1373
|
Math.max(
|
|
1152
1374
|
u.autoScaling ? j : ol.at(-1) ? ol.at(-1).y : 0,
|
|
@@ -1156,7 +1378,9 @@ const ks = ["id"], _s = ["id"], ws = ["id"], Ss = { style: { position: "relative
|
|
|
1156
1378
|
);
|
|
1157
1379
|
return {
|
|
1158
1380
|
...u,
|
|
1159
|
-
temperatureColors: u.temperatureColors ? u.temperatureColors.map(
|
|
1381
|
+
temperatureColors: u.temperatureColors ? u.temperatureColors.map(
|
|
1382
|
+
(A) => Fl(A)
|
|
1383
|
+
) : null,
|
|
1160
1384
|
yOffset: X,
|
|
1161
1385
|
autoScaleYLabels: ul,
|
|
1162
1386
|
individualHeight: H,
|
|
@@ -1173,11 +1397,21 @@ const ks = ["id"], _s = ["id"], ws = ["id"], Ss = { style: { position: "relative
|
|
|
1173
1397
|
u.autoScaling ? Z : K,
|
|
1174
1398
|
zt
|
|
1175
1399
|
) : ho(
|
|
1176
|
-
u.autoScaling ? Z.filter(
|
|
1400
|
+
u.autoScaling ? Z.filter(
|
|
1401
|
+
(A) => A.value !== null
|
|
1402
|
+
) : K.filter((A) => A.value !== null),
|
|
1177
1403
|
zt
|
|
1178
|
-
) : t.value.line.cutNullValues ? vo(
|
|
1404
|
+
) : t.value.line.cutNullValues ? vo(
|
|
1405
|
+
K,
|
|
1406
|
+
zt
|
|
1407
|
+
) : ho(
|
|
1408
|
+
K.filter((A) => A.value !== null),
|
|
1409
|
+
zt
|
|
1410
|
+
) : "",
|
|
1179
1411
|
curveAreas: u.useArea ? Uu(
|
|
1180
|
-
u.autoScaling ? t.value.line.cutNullValues ? Z : Z.filter(
|
|
1412
|
+
u.autoScaling ? t.value.line.cutNullValues ? Z : Z.filter(
|
|
1413
|
+
(A) => A.value !== null
|
|
1414
|
+
) : t.value.line.cutNullValues ? K : K.filter((A) => A.value !== null),
|
|
1181
1415
|
zt,
|
|
1182
1416
|
t.value.line.cutNullValues
|
|
1183
1417
|
) : [],
|
|
@@ -1186,7 +1420,9 @@ const ks = ["id"], _s = ["id"], ws = ["id"], Ss = { style: { position: "relative
|
|
|
1186
1420
|
};
|
|
1187
1421
|
});
|
|
1188
1422
|
}), ge = b(() => {
|
|
1189
|
-
const l = Ue.value.filter(
|
|
1423
|
+
const l = Ue.value.filter(
|
|
1424
|
+
(u) => ["bar", "line", "plot"].includes(u.type)
|
|
1425
|
+
), o = l.length, e = t.value.chart.grid.labels.yAxis.gap, a = f.value.isStacked ? e * (o - 1) : 0, n = c.value.height - a;
|
|
1190
1426
|
return l.filter((u) => u.type === "plot").map((u) => {
|
|
1191
1427
|
Sl(u);
|
|
1192
1428
|
const S = L.value[u.scaleLabel].min, M = L.value[u.scaleLabel].max;
|
|
@@ -1219,16 +1455,32 @@ const ks = ["id"], _s = ["id"], ws = ["id"], Ss = { style: { position: "relative
|
|
|
1219
1455
|
}), j = u.series.map((E, le) => {
|
|
1220
1456
|
const R = f.value.useIndividualScale ? (u.absoluteValues[le] + Math.abs(p)) / te : Ge(E);
|
|
1221
1457
|
return {
|
|
1222
|
-
x: N(
|
|
1223
|
-
|
|
1458
|
+
x: N(
|
|
1459
|
+
c.value?.left + J.value.plot / 2 + J.value.plot * le
|
|
1460
|
+
),
|
|
1461
|
+
y: N(
|
|
1462
|
+
c.value?.bottom - Q - X * R
|
|
1463
|
+
),
|
|
1224
1464
|
value: u.absoluteValues[le],
|
|
1225
|
-
comment: u.comments && u.comments.slice(
|
|
1465
|
+
comment: u.comments && u.comments.slice(
|
|
1466
|
+
m.value.start,
|
|
1467
|
+
m.value.end
|
|
1468
|
+
)[le] || ""
|
|
1226
1469
|
};
|
|
1227
|
-
}), K = u.absoluteValues.map(
|
|
1228
|
-
|
|
1229
|
-
|
|
1470
|
+
}), K = u.absoluteValues.map(
|
|
1471
|
+
(E) => F.min >= 0 ? (E - Math.abs(F.min)) / (F.max - Math.abs(F.min)) : (E + Math.abs(F.min)) / (F.max + Math.abs(F.min))
|
|
1472
|
+
), we = u.series.map((E, le) => ({
|
|
1473
|
+
x: N(
|
|
1474
|
+
c.value?.left + J.value.plot / 2 + J.value.plot * le
|
|
1475
|
+
),
|
|
1476
|
+
y: N(
|
|
1477
|
+
c.value?.bottom - Q - (X * K[le] || 0)
|
|
1478
|
+
),
|
|
1230
1479
|
value: u.absoluteValues[le],
|
|
1231
|
-
comment: u.comments && u.comments.slice(
|
|
1480
|
+
comment: u.comments && u.comments.slice(
|
|
1481
|
+
m.value.start,
|
|
1482
|
+
m.value.end
|
|
1483
|
+
)[le] || ""
|
|
1232
1484
|
})), Z = D.ticks.map((E) => ({
|
|
1233
1485
|
y: E >= 0 ? H - X * (E / te) : H + X * Math.abs(E) / te,
|
|
1234
1486
|
value: E,
|
|
@@ -1245,7 +1497,9 @@ const ks = ["id"], _s = ["id"], ws = ["id"], Ss = { style: { position: "relative
|
|
|
1245
1497
|
datapoint: u
|
|
1246
1498
|
};
|
|
1247
1499
|
});
|
|
1248
|
-
return L.value[u.scaleLabel].name = u.name, L.value[u.scaleLabel].groupName = u.scaleLabel, L.value[u.scaleLabel].groupColor = t.value.chart.grid.labels.yAxis.groupColor || u.color, L.value[u.scaleLabel].color = u.color, L.value[u.scaleLabel].scaleYLabels = u.autoScaling ? be : Z, L.value[u.scaleLabel].zeroPosition = u.autoScaling ? U : H, L.value[u.scaleLabel].individualMax = u.autoScaling ? B : te, L.value[u.scaleLabel].scaleLabel = u.scaleLabel, L.value[u.scaleLabel].id = u.id, L.value[u.scaleLabel].yOffset = Q, L.value[u.scaleLabel].individualHeight = X, L.value[u.scaleLabel].autoScaleYLabels = be, L.value[u.scaleLabel].unique = Ue.value.filter(
|
|
1500
|
+
return L.value[u.scaleLabel].name = u.name, L.value[u.scaleLabel].groupName = u.scaleLabel, L.value[u.scaleLabel].groupColor = t.value.chart.grid.labels.yAxis.groupColor || u.color, L.value[u.scaleLabel].color = u.color, L.value[u.scaleLabel].scaleYLabels = u.autoScaling ? be : Z, L.value[u.scaleLabel].zeroPosition = u.autoScaling ? U : H, L.value[u.scaleLabel].individualMax = u.autoScaling ? B : te, L.value[u.scaleLabel].scaleLabel = u.scaleLabel, L.value[u.scaleLabel].id = u.id, L.value[u.scaleLabel].yOffset = Q, L.value[u.scaleLabel].individualHeight = X, L.value[u.scaleLabel].autoScaleYLabels = be, L.value[u.scaleLabel].unique = Ue.value.filter(
|
|
1501
|
+
(E) => E.scaleLabel === u.scaleLabel
|
|
1502
|
+
).length === 1, {
|
|
1249
1503
|
...u,
|
|
1250
1504
|
yOffset: Q,
|
|
1251
1505
|
autoScaleYLabels: be,
|
|
@@ -1353,12 +1607,19 @@ const ks = ["id"], _s = ["id"], ws = ["id"], Ss = { style: { position: "relative
|
|
|
1353
1607
|
lines: ue.value,
|
|
1354
1608
|
plots: ge.value,
|
|
1355
1609
|
config: t.value
|
|
1356
|
-
})), Ha = g({
|
|
1610
|
+
})), Ha = g({
|
|
1611
|
+
months: [],
|
|
1612
|
+
shortMonths: [],
|
|
1613
|
+
days: [],
|
|
1614
|
+
shortDays: []
|
|
1615
|
+
});
|
|
1357
1616
|
let Da = 0;
|
|
1358
1617
|
sl(() => {
|
|
1359
1618
|
const l = ++Da, o = t.value.chart.grid.labels.xAxisLabels.datetimeFormatter;
|
|
1360
1619
|
(async () => {
|
|
1361
|
-
const e = await po(o.locale).catch(
|
|
1620
|
+
const e = await po(o.locale).catch(
|
|
1621
|
+
() => po("en")
|
|
1622
|
+
);
|
|
1362
1623
|
l === Da && (Ha.value = e.data);
|
|
1363
1624
|
})();
|
|
1364
1625
|
});
|
|
@@ -1373,22 +1634,27 @@ const ks = ["id"], _s = ["id"], ws = ["id"], Ss = { style: { position: "relative
|
|
|
1373
1634
|
return n == null ? "" : o.formatDate(new Date(n), s);
|
|
1374
1635
|
};
|
|
1375
1636
|
}), Wa = b(() => (t.value.chart.grid.labels.xAxisLabels.values || []).map((o, e) => ({
|
|
1376
|
-
text: rt.value(
|
|
1637
|
+
text: rt.value(
|
|
1638
|
+
e,
|
|
1639
|
+
t.value.chart.zoom.timeFormat
|
|
1640
|
+
),
|
|
1377
1641
|
absoluteIndex: e
|
|
1378
1642
|
}))), bu = b(() => {
|
|
1379
1643
|
let l = "", o = Ze.value.map((a) => a.value).filter((a) => nl(a) && a !== null).reduce((a, n) => Math.abs(a) + Math.abs(n), 0);
|
|
1380
1644
|
const e = oe.value[_.value], s = t.value.chart.tooltip.customFormat;
|
|
1381
|
-
if (fo(s) && Ku(
|
|
1382
|
-
|
|
1383
|
-
|
|
1384
|
-
|
|
1385
|
-
|
|
1386
|
-
|
|
1387
|
-
|
|
1388
|
-
|
|
1389
|
-
|
|
1390
|
-
|
|
1391
|
-
|
|
1645
|
+
if (fo(s) && Ku(
|
|
1646
|
+
() => s({
|
|
1647
|
+
absoluteIndex: _.value + m.value.start,
|
|
1648
|
+
seriesIndex: _.value,
|
|
1649
|
+
datapoint: Ze.value,
|
|
1650
|
+
series: ie.value,
|
|
1651
|
+
bars: ke.value,
|
|
1652
|
+
lines: ue.value,
|
|
1653
|
+
plots: ge.value,
|
|
1654
|
+
config: t.value,
|
|
1655
|
+
dateLabel: e
|
|
1656
|
+
})
|
|
1657
|
+
))
|
|
1392
1658
|
return s({
|
|
1393
1659
|
absoluteIndex: _.value + m.value.start,
|
|
1394
1660
|
seriesIndex: _.value,
|
|
@@ -1401,7 +1667,10 @@ const ks = ["id"], _s = ["id"], ws = ["id"], Ss = { style: { position: "relative
|
|
|
1401
1667
|
dateLabel: e
|
|
1402
1668
|
});
|
|
1403
1669
|
if (e && e.text && t.value.chart.tooltip.showTimeLabel) {
|
|
1404
|
-
const a = rt.value(
|
|
1670
|
+
const a = rt.value(
|
|
1671
|
+
_.value + m.value.start,
|
|
1672
|
+
t.value.chart.tooltip.timeFormat
|
|
1673
|
+
);
|
|
1405
1674
|
l += `<div style="padding-bottom: 6px; margin-bottom: 4px; border-bottom: 1px solid ${t.value.chart.tooltip.borderColor}; width:100%">${t.value.chart.grid.labels.xAxisLabels.datetimeFormatter.enable && !t.value.chart.tooltip.useDefaultTimeFormat ? a : e.text}</div>`;
|
|
1406
1675
|
}
|
|
1407
1676
|
return Ze.value.forEach((a) => {
|
|
@@ -1412,10 +1681,24 @@ const ks = ["id"], _s = ["id"], ws = ["id"], Ss = { style: { position: "relative
|
|
|
1412
1681
|
n = `<svg viewBox="0 0 40 40" height="14" width="14">${Hl.pattern ? `<rect x="0" y="0" rx="1" stroke="none" height="40" width="40" fill="${a.color}" />` : ""}<rect x="0" y="0" rx="1" stroke="none" height="40" width="40" fill="${Hl.pattern ? `url(#pattern_${z.value}_${a.slotAbsoluteIndex}` : a.color}" /></svg>`;
|
|
1413
1682
|
break;
|
|
1414
1683
|
case "line":
|
|
1415
|
-
!a.shape || ![
|
|
1684
|
+
!a.shape || ![
|
|
1685
|
+
"star",
|
|
1686
|
+
"triangle",
|
|
1687
|
+
"square",
|
|
1688
|
+
"diamond",
|
|
1689
|
+
"pentagon",
|
|
1690
|
+
"hexagon"
|
|
1691
|
+
].includes(a.shape) ? u = `<circle cx="10" cy="8" r="4" stroke="${t.value.chart.tooltip.backgroundColor}" stroke-width="0.5" fill="${a.color}" />` : a.shape === "triangle" ? u = `<path d="${Ie({ plot: { x: 10, y: 8 }, radius: 4, sides: 3, rotation: 0.52 }).path}" fill="${a.color}" stroke="${t.value.chart.tooltip.backgroundColor}" stroke-width="0.5" />` : a.shape === "square" ? u = `<path d="${Ie({ plot: { x: 10, y: 8 }, radius: 4, sides: 4, rotation: 0.8 }).path}" fill="${a.color}" stroke="${t.value.chart.tooltip.backgroundColor}" stroke-width="0.5" />` : a.shape === "diamond" ? u = `<path d="${Ie({ plot: { x: 10, y: 8 }, radius: 4, sides: 4, rotation: 0 }).path}" fill="${a.color}" stroke="${t.value.chart.tooltip.backgroundColor}" stroke-width="0.5" />` : a.shape === "pentagon" ? u = `<path d="${Ie({ plot: { x: 10, y: 8 }, radius: 4, sides: 5, rotation: 0.95 }).path}" fill="${a.color}" stroke="${t.value.chart.tooltip.backgroundColor}" stroke-width="0.5" />` : a.shape === "hexagon" ? u = `<path d="${Ie({ plot: { x: 10, y: 8 }, radius: 4, sides: 6, rotation: 0 }).path}" fill="${a.color}" stroke="${t.value.chart.tooltip.backgroundColor}" stroke-width="0.5" />` : a.shape === "star" && (u = `<polygon stroke="${t.value.chart.tooltip.backgroundColor}" stroke-width="0.5" fill="${a.color}" points="${mo({ plot: { x: 10, y: 8 }, radius: 4 })}" />`), n = `<svg viewBox="0 0 20 12" height="14" width="20"><rect rx="1.5" x="0" y="6.5" stroke="${t.value.chart.tooltip.backgroundColor}" stroke-width="0.5" height="3" width="20" fill="${a.color}" />${u}</svg>`;
|
|
1416
1692
|
break;
|
|
1417
1693
|
case "plot":
|
|
1418
|
-
if (!a.shape || ![
|
|
1694
|
+
if (!a.shape || ![
|
|
1695
|
+
"star",
|
|
1696
|
+
"triangle",
|
|
1697
|
+
"square",
|
|
1698
|
+
"diamond",
|
|
1699
|
+
"pentagon",
|
|
1700
|
+
"hexagon"
|
|
1701
|
+
].includes(a.shape)) {
|
|
1419
1702
|
n = `<svg viewBox="0 0 12 12" height="14" width="14"><circle cx="6" cy="6" r="6" stroke="${t.value.chart.tooltip.backgroundColor}" stroke-width="1" fill="${a.color}" /></svg>`;
|
|
1420
1703
|
break;
|
|
1421
1704
|
}
|
|
@@ -1462,30 +1745,47 @@ const ks = ["id"], _s = ["id"], ws = ["id"], Ss = { style: { position: "relative
|
|
|
1462
1745
|
}
|
|
1463
1746
|
}), `<div style="border-radius:4px;padding:12px;font-variant-numeric: tabular-nums;color:${t.value.chart.tooltip.color}">${l}</div>`;
|
|
1464
1747
|
}), Ea = b(() => {
|
|
1465
|
-
if (Ve.value.length === 0)
|
|
1748
|
+
if (Ve.value.length === 0)
|
|
1749
|
+
return { head: [], body: [], config: {}, columnNames: [] };
|
|
1466
1750
|
const l = ye.value.map((e) => ({
|
|
1467
1751
|
label: e.name,
|
|
1468
1752
|
color: e.color,
|
|
1469
1753
|
type: e.type
|
|
1470
1754
|
})), o = [];
|
|
1471
1755
|
return oe.value.forEach((e, s) => {
|
|
1472
|
-
const a = t.value.table.useDefaultTimeFormat ? [e.text] : [
|
|
1756
|
+
const a = t.value.table.useDefaultTimeFormat ? [e.text] : [
|
|
1757
|
+
rt.value(
|
|
1758
|
+
s + m.value.start,
|
|
1759
|
+
t.value.table.timeFormat
|
|
1760
|
+
)
|
|
1761
|
+
];
|
|
1473
1762
|
ye.value.forEach((n) => {
|
|
1474
|
-
a.push(
|
|
1763
|
+
a.push(
|
|
1764
|
+
xe(n.absoluteValues[s]) ? Number(
|
|
1765
|
+
n.absoluteValues[s].toFixed(
|
|
1766
|
+
t.value.table.rounding
|
|
1767
|
+
)
|
|
1768
|
+
) : ""
|
|
1769
|
+
);
|
|
1475
1770
|
}), o.push(a);
|
|
1476
1771
|
}), { head: l, body: o };
|
|
1477
1772
|
}), ct = b(() => {
|
|
1478
1773
|
const l = t.value.table.showSum;
|
|
1479
1774
|
let o = [""].concat(ye.value.map((n) => n.name));
|
|
1480
|
-
l && (o = o.concat(
|
|
1775
|
+
l && (o = o.concat(
|
|
1776
|
+
' <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>'
|
|
1777
|
+
));
|
|
1481
1778
|
let e = [];
|
|
1482
1779
|
for (let n = 0; n < $.value; n += 1) {
|
|
1483
1780
|
const u = ye.value.map((S) => S.absoluteValues[n] ?? 0).reduce((S, M) => S + M, 0);
|
|
1484
1781
|
e.push(
|
|
1485
1782
|
[
|
|
1486
|
-
t.value.table.useDefaultTimeFormat ? oe.value[n]?.text ?? "-" : rt.value(
|
|
1487
|
-
|
|
1488
|
-
|
|
1783
|
+
t.value.table.useDefaultTimeFormat ? oe.value[n]?.text ?? "-" : rt.value(
|
|
1784
|
+
n + m.value.start,
|
|
1785
|
+
t.value.table.timeFormat
|
|
1786
|
+
)
|
|
1787
|
+
].concat(
|
|
1788
|
+
ye.value.map((S) => he(
|
|
1489
1789
|
S.type === "line" ? t.value.line.labels.formatter : S.type === "bar" ? t.value.bar.labels.formatter : t.value.plot.labels.formatter,
|
|
1490
1790
|
S.absoluteValues[n] ?? 0,
|
|
1491
1791
|
Pe({
|
|
@@ -1494,8 +1794,10 @@ const ks = ["id"], _s = ["id"], ws = ["id"], Ss = { style: { position: "relative
|
|
|
1494
1794
|
s: S.suffix || t.value.chart.labels.suffix,
|
|
1495
1795
|
r: t.value.table.rounding
|
|
1496
1796
|
})
|
|
1497
|
-
)
|
|
1498
|
-
)
|
|
1797
|
+
))
|
|
1798
|
+
).concat(
|
|
1799
|
+
l ? (u ?? 0).toFixed(t.value.table.rounding) : []
|
|
1800
|
+
)
|
|
1499
1801
|
);
|
|
1500
1802
|
}
|
|
1501
1803
|
const s = {
|
|
@@ -1514,19 +1816,34 @@ const ks = ["id"], _s = ["id"], ws = ["id"], Ss = { style: { position: "relative
|
|
|
1514
1816
|
return { head: o, body: e, config: s, colNames: a };
|
|
1515
1817
|
});
|
|
1516
1818
|
function Ml(l = null) {
|
|
1517
|
-
const o = [
|
|
1518
|
-
|
|
1819
|
+
const o = [
|
|
1820
|
+
[t.value.chart.title.text],
|
|
1821
|
+
[t.value.chart.title.subtitle.text],
|
|
1822
|
+
[""]
|
|
1823
|
+
], e = ["", ...Ea.value.head.map((u) => u.label)], s = Ea.value.body, a = o.concat([e]).concat(s), n = ts(a);
|
|
1824
|
+
l ? l(n) : ls({
|
|
1825
|
+
csvContent: n,
|
|
1826
|
+
title: t.value.chart.title.text || "vue-ui-xy"
|
|
1827
|
+
});
|
|
1519
1828
|
}
|
|
1520
1829
|
function Al(l, o = null) {
|
|
1521
1830
|
if (Wo.value) return;
|
|
1522
1831
|
Wl.value = l;
|
|
1523
1832
|
const e = ye.value.map((s) => ({
|
|
1524
1833
|
name: s.name,
|
|
1525
|
-
value: [null, void 0, NaN].includes(
|
|
1834
|
+
value: [null, void 0, NaN].includes(
|
|
1835
|
+
s.absoluteValues[o]
|
|
1836
|
+
) ? null : s.absoluteValues[o],
|
|
1526
1837
|
color: s.color,
|
|
1527
1838
|
type: s.type
|
|
1528
1839
|
}));
|
|
1529
|
-
l ? (_.value = o, t.value.events.datapointEnter && t.value.events.datapointEnter({
|
|
1840
|
+
l ? (_.value = o, t.value.events.datapointEnter && t.value.events.datapointEnter({
|
|
1841
|
+
datapoint: e,
|
|
1842
|
+
seriesIndex: o + m.value.start
|
|
1843
|
+
})) : (_.value = null, t.value.events.datapointLeave && t.value.events.datapointLeave({
|
|
1844
|
+
datapoint: e,
|
|
1845
|
+
seriesIndex: o + m.value.start
|
|
1846
|
+
}));
|
|
1530
1847
|
}
|
|
1531
1848
|
function Ya() {
|
|
1532
1849
|
f.value.showTable = !f.value.showTable;
|
|
@@ -1598,9 +1915,11 @@ const ks = ["id"], _s = ["id"], ws = ["id"], Ss = { style: { position: "relative
|
|
|
1598
1915
|
}), Wt.value = !0);
|
|
1599
1916
|
}), kt.value && T.dataset.forEach((o) => {
|
|
1600
1917
|
o.series.forEach((e, s) => {
|
|
1601
|
-
nl(e) || console.warn(
|
|
1918
|
+
nl(e) || console.warn(
|
|
1919
|
+
`VueUiXy has detected an unsafe value in your dataset:
|
|
1602
1920
|
-----> The serie '${o.name}' contains the value '${e}' at index ${s}.
|
|
1603
|
-
'${e}' was converted to null to allow the chart to display.`
|
|
1921
|
+
'${e}' was converted to null to allow the chart to display.`
|
|
1922
|
+
);
|
|
1604
1923
|
});
|
|
1605
1924
|
}), go(T.dataset) || (Wt.value = t.value.loading), Gl.value = t.value.chart.userOptions.showOnChartHover, bl.value = t.value.chart.userOptions.keepStateOnChartLeave, Bt.value = !t.value.chart.userOptions.showOnChartHover, kl();
|
|
1606
1925
|
const l = 12;
|
|
@@ -1636,16 +1955,27 @@ const ks = ["id"], _s = ["id"], ws = ["id"], Ss = { style: { position: "relative
|
|
|
1636
1955
|
};
|
|
1637
1956
|
}
|
|
1638
1957
|
It(() => {
|
|
1639
|
-
Cl(), Jt(), document.addEventListener("mousemove", Za, {
|
|
1958
|
+
Cl(), Jt(), document.addEventListener("mousemove", Za, {
|
|
1959
|
+
passive: !0
|
|
1960
|
+
}), document.addEventListener("scroll", fa, { passive: !0 });
|
|
1640
1961
|
}), Pl(() => {
|
|
1641
|
-
document.removeEventListener("scroll", fa, { passive: !0 }), document.removeEventListener("mousemove", Za, {
|
|
1962
|
+
document.removeEventListener("scroll", fa, { passive: !0 }), document.removeEventListener("mousemove", Za, {
|
|
1963
|
+
passive: !0
|
|
1964
|
+
}), Ne.value && (Ne.value.unobserve(ml.value), Ne.value.disconnect(), Ne.value = null);
|
|
1642
1965
|
}), ds({
|
|
1643
1966
|
timeLabelsEls: Ft,
|
|
1644
1967
|
timeLabels: oe,
|
|
1645
1968
|
slicer: m,
|
|
1646
1969
|
configRef: t,
|
|
1647
1970
|
rotationPath: ["chart", "grid", "labels", "xAxisLabels", "rotation"],
|
|
1648
|
-
autoRotatePath: [
|
|
1971
|
+
autoRotatePath: [
|
|
1972
|
+
"chart",
|
|
1973
|
+
"grid",
|
|
1974
|
+
"labels",
|
|
1975
|
+
"xAxisLabels",
|
|
1976
|
+
"autoRotate",
|
|
1977
|
+
"enable"
|
|
1978
|
+
],
|
|
1649
1979
|
isAutoSize: Ho,
|
|
1650
1980
|
height: fe,
|
|
1651
1981
|
width: ee,
|
|
@@ -1687,7 +2017,8 @@ const ks = ["id"], _s = ["id"], ws = ["id"], Ss = { style: { position: "relative
|
|
|
1687
2017
|
});
|
|
1688
2018
|
});
|
|
1689
2019
|
const ku = b(() => {
|
|
1690
|
-
if ([null, void 0].includes(_.value) && [null, void 0].includes(P.value))
|
|
2020
|
+
if ([null, void 0].includes(_.value) && [null, void 0].includes(P.value))
|
|
2021
|
+
return "";
|
|
1691
2022
|
const l = (_.value != null ? _.value : 0) || (P.value != null ? P.value : 0), o = t.value.chart.timeTag.customFormat;
|
|
1692
2023
|
if (al.value = !1, fo(o))
|
|
1693
2024
|
try {
|
|
@@ -1706,16 +2037,31 @@ const ks = ["id"], _s = ["id"], ws = ["id"], Ss = { style: { position: "relative
|
|
|
1706
2037
|
console.warn("Custom format cannot be applied on timeTag."), al.value = !1;
|
|
1707
2038
|
}
|
|
1708
2039
|
if (!al.value)
|
|
1709
|
-
return [null, void 0].includes(oe.value[l]) ? "" : t.value.chart.grid.labels.xAxisLabels.datetimeFormatter.enable && !t.value.chart.timeTag.useDefaultFormat ? rt.value(
|
|
2040
|
+
return [null, void 0].includes(oe.value[l]) ? "" : t.value.chart.grid.labels.xAxisLabels.datetimeFormatter.enable && !t.value.chart.timeTag.useDefaultFormat ? rt.value(
|
|
2041
|
+
l + m.value.start,
|
|
2042
|
+
t.value.chart.timeTag.timeFormat
|
|
2043
|
+
) : oe.value[l].text;
|
|
1710
2044
|
});
|
|
1711
|
-
vt(
|
|
1712
|
-
|
|
1713
|
-
|
|
1714
|
-
|
|
1715
|
-
|
|
1716
|
-
|
|
1717
|
-
|
|
1718
|
-
|
|
2045
|
+
vt(
|
|
2046
|
+
() => T.dataset,
|
|
2047
|
+
(l) => {
|
|
2048
|
+
Array.isArray(l) && l.length > 0 && (Wt.value = !1), ze.value = Math.max(
|
|
2049
|
+
...pe.value.map(
|
|
2050
|
+
(o) => Fe(o.series).length
|
|
2051
|
+
)
|
|
2052
|
+
), m.value = {
|
|
2053
|
+
start: 0,
|
|
2054
|
+
end: ze.value
|
|
2055
|
+
}, Io.value += 1, gl.value += 1, xt(), ot(), ut();
|
|
2056
|
+
},
|
|
2057
|
+
{ deep: !0 }
|
|
2058
|
+
), vt(
|
|
2059
|
+
() => T.config,
|
|
2060
|
+
(l) => {
|
|
2061
|
+
ne.value || (t.value = yl()), Cl(), Xl.value += 1, Yl.value += 1, kl(), xt(), ot(), ut();
|
|
2062
|
+
},
|
|
2063
|
+
{ deep: !0 }
|
|
2064
|
+
);
|
|
1719
2065
|
const Tl = g(!1);
|
|
1720
2066
|
function Qa() {
|
|
1721
2067
|
const l = $e.value?.parentNode;
|
|
@@ -1732,9 +2078,13 @@ const ks = ["id"], _s = ["id"], ws = ["id"], Ss = { style: { position: "relative
|
|
|
1732
2078
|
Qa(), Tl.value && (Cl(), ut(), Jt());
|
|
1733
2079
|
});
|
|
1734
2080
|
$e.value?.parentNode && l.observe($e.value.parentNode);
|
|
1735
|
-
}), vt(
|
|
1736
|
-
|
|
1737
|
-
|
|
2081
|
+
}), vt(
|
|
2082
|
+
t,
|
|
2083
|
+
() => {
|
|
2084
|
+
kl();
|
|
2085
|
+
},
|
|
2086
|
+
{ immediate: !0 }
|
|
2087
|
+
);
|
|
1738
2088
|
const Ct = b(() => {
|
|
1739
2089
|
const l = t.value.table.useDialog && !t.value.showTable, o = f.value.showTable;
|
|
1740
2090
|
return {
|
|
@@ -1765,9 +2115,12 @@ const ks = ["id"], _s = ["id"], ws = ["id"], Ss = { style: { position: "relative
|
|
|
1765
2115
|
}
|
|
1766
2116
|
};
|
|
1767
2117
|
});
|
|
1768
|
-
vt(
|
|
1769
|
-
|
|
1770
|
-
|
|
2118
|
+
vt(
|
|
2119
|
+
() => f.value.showTable,
|
|
2120
|
+
(l) => {
|
|
2121
|
+
t.value.showTable || (l && t.value.table.useDialog && lt.value ? lt.value.open() : lt.value && lt.value.close && lt.value.close());
|
|
2122
|
+
}
|
|
2123
|
+
);
|
|
1771
2124
|
function ja() {
|
|
1772
2125
|
f.value.showTable = !1, fl.value && fl.value.setTableIconState(!1);
|
|
1773
2126
|
}
|
|
@@ -1787,7 +2140,14 @@ const ks = ["id"], _s = ["id"], ws = ["id"], Ss = { style: { position: "relative
|
|
|
1787
2140
|
try {
|
|
1788
2141
|
if (l) {
|
|
1789
2142
|
const { blob: o, url: e, text: s, dataUrl: a } = await Mu();
|
|
1790
|
-
await Promise.resolve(
|
|
2143
|
+
await Promise.resolve(
|
|
2144
|
+
t.value.chart.userOptions.callbacks.svg({
|
|
2145
|
+
blob: o,
|
|
2146
|
+
url: e,
|
|
2147
|
+
text: s,
|
|
2148
|
+
dataUrl: a
|
|
2149
|
+
})
|
|
2150
|
+
);
|
|
1791
2151
|
} else
|
|
1792
2152
|
await Promise.resolve(Lu());
|
|
1793
2153
|
} finally {
|
|
@@ -1817,20 +2177,24 @@ const ks = ["id"], _s = ["id"], ws = ["id"], Ss = { style: { position: "relative
|
|
|
1817
2177
|
plots: ge.value
|
|
1818
2178
|
}
|
|
1819
2179
|
}), !t.value.chart.userOptions.callbacks.altCopy) {
|
|
1820
|
-
console.warn(
|
|
2180
|
+
console.warn(
|
|
2181
|
+
"Vue Data UI - A callback must be set for `altCopy` in userOptions."
|
|
2182
|
+
);
|
|
1821
2183
|
return;
|
|
1822
2184
|
}
|
|
1823
|
-
await Promise.resolve(
|
|
1824
|
-
|
|
1825
|
-
|
|
1826
|
-
|
|
1827
|
-
|
|
1828
|
-
|
|
1829
|
-
|
|
1830
|
-
|
|
1831
|
-
|
|
1832
|
-
|
|
1833
|
-
|
|
2185
|
+
await Promise.resolve(
|
|
2186
|
+
t.value.chart.userOptions.callbacks.altCopy({
|
|
2187
|
+
config: {
|
|
2188
|
+
...t.value,
|
|
2189
|
+
formattedDates: oe.value
|
|
2190
|
+
},
|
|
2191
|
+
dataset: {
|
|
2192
|
+
lines: ue.value,
|
|
2193
|
+
bars: ke.value,
|
|
2194
|
+
plots: ge.value
|
|
2195
|
+
}
|
|
2196
|
+
})
|
|
2197
|
+
);
|
|
1834
2198
|
}
|
|
1835
2199
|
const zl = g(!1);
|
|
1836
2200
|
function Cu() {
|
|
@@ -1859,9 +2223,14 @@ const ks = ["id"], _s = ["id"], ws = ["id"], Ss = { style: { position: "relative
|
|
|
1859
2223
|
const Il = b(() => {
|
|
1860
2224
|
if (!ct.value) return null;
|
|
1861
2225
|
const l = t.value.table.showSum;
|
|
1862
|
-
let o = [t.value.table.columnNames.period].concat(
|
|
2226
|
+
let o = [t.value.table.columnNames.period].concat(
|
|
2227
|
+
ye.value.map((s) => s.name)
|
|
2228
|
+
);
|
|
1863
2229
|
l && (o = o.concat(t.value.table.columnNames.total));
|
|
1864
|
-
const e = ct.value.body.slice(
|
|
2230
|
+
const e = ct.value.body.slice(
|
|
2231
|
+
m.value.start,
|
|
2232
|
+
m.value.end
|
|
2233
|
+
);
|
|
1865
2234
|
return {
|
|
1866
2235
|
headers: o,
|
|
1867
2236
|
rows: e
|
|
@@ -2103,7 +2472,10 @@ const ks = ["id"], _s = ["id"], ws = ["id"], Ss = { style: { position: "relative
|
|
|
2103
2472
|
ref_key: "svgRef",
|
|
2104
2473
|
ref: ae,
|
|
2105
2474
|
xmlns: "http://www.w3.org/2000/svg",
|
|
2106
|
-
class: Je([{
|
|
2475
|
+
class: Je([{
|
|
2476
|
+
"vue-data-ui-fullscreen--on": Ee.value,
|
|
2477
|
+
"vue-data-ui-fulscreen--off": !Ee.value
|
|
2478
|
+
}, "vue-ui-xy-svg vue-data-ui-svg"]),
|
|
2107
2479
|
width: "100%",
|
|
2108
2480
|
viewBox: Vt.value,
|
|
2109
2481
|
style: w({
|
|
@@ -2164,7 +2536,9 @@ const ks = ["id"], _s = ["id"], ws = ["id"], Ss = { style: { position: "relative
|
|
|
2164
2536
|
stroke: e.color,
|
|
2165
2537
|
"stroke-width": 0.5,
|
|
2166
2538
|
"stroke-linecap": "round",
|
|
2167
|
-
style: {
|
|
2539
|
+
style: {
|
|
2540
|
+
animation: "none !important"
|
|
2541
|
+
}
|
|
2168
2542
|
}, null, 8, Ps))), 256)) : e.yLabels.length ? (i(!0), r(d, { key: 1 }, k(e.yLabels, (s) => (i(), r("line", {
|
|
2169
2543
|
x1: c.value?.left + q.value,
|
|
2170
2544
|
x2: c.value?.right - q.value,
|
|
@@ -2173,7 +2547,9 @@ const ks = ["id"], _s = ["id"], ws = ["id"], Ss = { style: { position: "relative
|
|
|
2173
2547
|
stroke: t.value.chart.grid.stroke,
|
|
2174
2548
|
"stroke-width": 0.5,
|
|
2175
2549
|
"stroke-linecap": "round",
|
|
2176
|
-
style: {
|
|
2550
|
+
style: {
|
|
2551
|
+
animation: "none !important"
|
|
2552
|
+
}
|
|
2177
2553
|
}, null, 8, Os))), 256)) : h("", !0)
|
|
2178
2554
|
]))), 256)) : h("", !0) : (i(), r(d, { key: 1 }, [
|
|
2179
2555
|
t.value.chart.grid.labels.yAxis.showBaseline ? (i(), r("line", {
|
|
@@ -2196,7 +2572,9 @@ const ks = ["id"], _s = ["id"], ws = ["id"], Ss = { style: { position: "relative
|
|
|
2196
2572
|
stroke: t.value.chart.grid.stroke,
|
|
2197
2573
|
"stroke-width": 0.5,
|
|
2198
2574
|
"stroke-linecap": "round",
|
|
2199
|
-
style: {
|
|
2575
|
+
style: {
|
|
2576
|
+
animation: "none !important"
|
|
2577
|
+
}
|
|
2200
2578
|
}, null, 8, Is))), 256))
|
|
2201
2579
|
])) : h("", !0)
|
|
2202
2580
|
], 64)),
|
|
@@ -2225,7 +2603,11 @@ const ks = ["id"], _s = ["id"], ws = ["id"], Ss = { style: { position: "relative
|
|
|
2225
2603
|
l.$slots["bar-gradient"] ? O(l.$slots, "bar-gradient", Qe({
|
|
2226
2604
|
key: 0,
|
|
2227
2605
|
ref_for: !0
|
|
2228
|
-
}, {
|
|
2606
|
+
}, {
|
|
2607
|
+
series: e,
|
|
2608
|
+
positiveId: `rectGradient_pos_${s}_${z.value}`,
|
|
2609
|
+
negativeId: `rectGradient_neg_${s}_${z.value}`
|
|
2610
|
+
}), void 0, !0) : (i(), r(d, { key: 1 }, [
|
|
2229
2611
|
y("linearGradient", {
|
|
2230
2612
|
id: `rectGradient_pos_${s}_${z.value}`,
|
|
2231
2613
|
x2: "0%",
|
|
@@ -2309,7 +2691,10 @@ const ks = ["id"], _s = ["id"], ws = ["id"], Ss = { style: { position: "relative
|
|
|
2309
2691
|
l.$slots["area-gradient"] ? O(l.$slots, "area-gradient", Qe({
|
|
2310
2692
|
key: 0,
|
|
2311
2693
|
ref_for: !0
|
|
2312
|
-
}, {
|
|
2694
|
+
}, {
|
|
2695
|
+
series: e,
|
|
2696
|
+
id: `areaGradient_${s}_${z.value}`
|
|
2697
|
+
}), void 0, !0) : (i(), r("linearGradient", {
|
|
2313
2698
|
key: 1,
|
|
2314
2699
|
id: `areaGradient_${s}_${z.value}`,
|
|
2315
2700
|
x1: "0%",
|
|
@@ -2335,7 +2720,10 @@ const ks = ["id"], _s = ["id"], ws = ["id"], Ss = { style: { position: "relative
|
|
|
2335
2720
|
(i(!0), r(d, null, k(e.temperatureColors, (a, n) => (i(), r("stop", {
|
|
2336
2721
|
key: `temperature_grad_stop_${s}_${n}_${z.value}`,
|
|
2337
2722
|
"stop-color": a,
|
|
2338
|
-
offset: v(Ju)(
|
|
2723
|
+
offset: v(Ju)(
|
|
2724
|
+
n,
|
|
2725
|
+
e.temperatureColors.length
|
|
2726
|
+
)
|
|
2339
2727
|
}, null, 8, on))), 128))
|
|
2340
2728
|
], 8, an)
|
|
2341
2729
|
])) : h("", !0)
|
|
@@ -2352,7 +2740,10 @@ const ks = ["id"], _s = ["id"], ws = ["id"], Ss = { style: { position: "relative
|
|
|
2352
2740
|
y: c.value?.top,
|
|
2353
2741
|
height: c.value.height < 0 ? 10 : c.value.height,
|
|
2354
2742
|
width: c.value.width / $.value < 0 ? 1e-5 : c.value.width / $.value,
|
|
2355
|
-
fill: v(Ce)(
|
|
2743
|
+
fill: v(Ce)(
|
|
2744
|
+
e.color,
|
|
2745
|
+
e.opacity
|
|
2746
|
+
)
|
|
2356
2747
|
}, null, 12, un)
|
|
2357
2748
|
]))), 256)),
|
|
2358
2749
|
(i(!0), r(d, null, k(e.span, (s, a) => (i(), r("g", null, [
|
|
@@ -2383,8 +2774,18 @@ const ks = ["id"], _s = ["id"], ws = ["id"], Ss = { style: { position: "relative
|
|
|
2383
2774
|
y: c.value?.top,
|
|
2384
2775
|
height: c.value.height < 0 ? 10 : c.value.height,
|
|
2385
2776
|
width: c.value.width / $.value < 0 ? 1e-5 : c.value.width / $.value,
|
|
2386
|
-
fill: [
|
|
2387
|
-
|
|
2777
|
+
fill: [
|
|
2778
|
+
P.value,
|
|
2779
|
+
_.value,
|
|
2780
|
+
Ye.value
|
|
2781
|
+
].includes(s) ? v(Ce)(
|
|
2782
|
+
t.value.chart.highlighter.color,
|
|
2783
|
+
t.value.chart.highlighter.opacity
|
|
2784
|
+
) : "transparent",
|
|
2785
|
+
style: {
|
|
2786
|
+
transition: "none !important",
|
|
2787
|
+
animation: "none !important"
|
|
2788
|
+
}
|
|
2388
2789
|
}, null, 8, rn)
|
|
2389
2790
|
]))), 128))
|
|
2390
2791
|
])) : h("", !0),
|
|
@@ -2400,7 +2801,11 @@ const ks = ["id"], _s = ["id"], ws = ["id"], Ss = { style: { position: "relative
|
|
|
2400
2801
|
key: 0,
|
|
2401
2802
|
x: jt(a) + ll.value / 2,
|
|
2402
2803
|
y: f.value.useIndividualScale ? Ca(a) : Aa(a),
|
|
2403
|
-
height: f.value.useIndividualScale ? Math.abs(
|
|
2804
|
+
height: f.value.useIndividualScale ? Math.abs(
|
|
2805
|
+
Ma(
|
|
2806
|
+
a
|
|
2807
|
+
)
|
|
2808
|
+
) : Math.abs(La(a)),
|
|
2404
2809
|
width: tl.value - ll.value,
|
|
2405
2810
|
rx: t.value.bar.borderRadius,
|
|
2406
2811
|
fill: t.value.bar.useGradient ? a.value >= 0 ? `url(#rectGradient_pos_${s}_${z.value})` : `url(#rectGradient_neg_${s}_${z.value})` : e.color,
|
|
@@ -2414,13 +2819,19 @@ const ks = ["id"], _s = ["id"], ws = ["id"], Ss = { style: { position: "relative
|
|
|
2414
2819
|
key: 1,
|
|
2415
2820
|
x: jt(a) - ll.value / 2,
|
|
2416
2821
|
y: f.value.useIndividualScale ? Ca(a) : Aa(a),
|
|
2417
|
-
height: f.value.useIndividualScale ? Math.abs(
|
|
2822
|
+
height: f.value.useIndividualScale ? Math.abs(
|
|
2823
|
+
Ma(
|
|
2824
|
+
a
|
|
2825
|
+
)
|
|
2826
|
+
) : Math.abs(La(a)),
|
|
2418
2827
|
width: tl.value - ll.value,
|
|
2419
2828
|
rx: t.value.bar.borderRadius,
|
|
2420
2829
|
fill: `url(#pattern_${z.value}_${e.slotAbsoluteIndex})`,
|
|
2421
2830
|
stroke: t.value.bar.border.useSerieColor ? e.color : t.value.bar.border.stroke,
|
|
2422
2831
|
"stroke-width": t.value.bar.border.strokeWidth,
|
|
2423
|
-
style: w({
|
|
2832
|
+
style: w({
|
|
2833
|
+
transition: v(ne) || !t.value.bar.showTransition ? void 0 : `all ${t.value.bar.transitionDurationMs}ms ease-in-out`
|
|
2834
|
+
})
|
|
2424
2835
|
}, null, 12, vn)) : h("", !0),
|
|
2425
2836
|
a.comment && t.value.chart.comments.show ? (i(), r("foreignObject", {
|
|
2426
2837
|
key: 2,
|
|
@@ -2431,7 +2842,12 @@ const ks = ["id"], _s = ["id"], ws = ["id"], Ss = { style: { position: "relative
|
|
|
2431
2842
|
y: v(N)(a.y) + t.value.chart.comments.offsetY + 6
|
|
2432
2843
|
}, [
|
|
2433
2844
|
O(l.$slots, "plot-comment", {
|
|
2434
|
-
plot: {
|
|
2845
|
+
plot: {
|
|
2846
|
+
...a,
|
|
2847
|
+
color: e.color,
|
|
2848
|
+
seriesIndex: s,
|
|
2849
|
+
datapointIndex: n
|
|
2850
|
+
}
|
|
2435
2851
|
}, void 0, !0)
|
|
2436
2852
|
], 8, dn)) : h("", !0)
|
|
2437
2853
|
]))), 128))
|
|
@@ -2447,7 +2863,11 @@ const ks = ["id"], _s = ["id"], ws = ["id"], Ss = { style: { position: "relative
|
|
|
2447
2863
|
"stroke-linecap": "round",
|
|
2448
2864
|
style: { animation: "none !important" }
|
|
2449
2865
|
}, null, 8, hn)) : h("", !0),
|
|
2450
|
-
t.value.chart.highlighter.useLine && (![null, void 0].includes(
|
|
2866
|
+
t.value.chart.highlighter.useLine && (![null, void 0].includes(
|
|
2867
|
+
_.value
|
|
2868
|
+
) || ![null, void 0].includes(
|
|
2869
|
+
P.value
|
|
2870
|
+
)) ? (i(), r("g", fn, [
|
|
2451
2871
|
y("line", {
|
|
2452
2872
|
x1: c.value?.left + c.value.width / $.value * ((_.value !== null ? _.value : 0) || (P.value !== null ? P.value : 0)) + c.value.width / $.value / 2,
|
|
2453
2873
|
x2: c.value?.left + c.value.width / $.value * ((_.value !== null ? _.value : 0) || (P.value !== null ? P.value : 0)) + c.value.width / $.value / 2,
|
|
@@ -2462,7 +2882,11 @@ const ks = ["id"], _s = ["id"], ws = ["id"], Ss = { style: { position: "relative
|
|
|
2462
2882
|
])) : h("", !0),
|
|
2463
2883
|
t.value.chart.grid.frame.show ? (i(), r("rect", {
|
|
2464
2884
|
key: 4,
|
|
2465
|
-
style: {
|
|
2885
|
+
style: {
|
|
2886
|
+
pointerEvents: "none",
|
|
2887
|
+
transition: "none",
|
|
2888
|
+
animation: "none !important"
|
|
2889
|
+
},
|
|
2466
2890
|
x: c.value?.left + q.value < 0 ? 0 : c.value?.left + q.value,
|
|
2467
2891
|
y: c.value?.top,
|
|
2468
2892
|
width: c.value.width - (t.value.chart.grid.position === "middle" ? 0 : c.value.width / $.value) < 0 ? 0 : c.value.width - (t.value.chart.grid.position === "middle" ? 0 : c.value.width / $.value),
|
|
@@ -2484,8 +2908,16 @@ const ks = ["id"], _s = ["id"], ws = ["id"], Ss = { style: { position: "relative
|
|
|
2484
2908
|
y("line", {
|
|
2485
2909
|
x1: e.x + q.value - c.value.individualOffsetX,
|
|
2486
2910
|
x2: e.x + q.value - c.value.individualOffsetX,
|
|
2487
|
-
y1: f.value.isStacked ? v(W)(
|
|
2488
|
-
|
|
2911
|
+
y1: f.value.isStacked ? v(W)(
|
|
2912
|
+
c.value?.bottom - e.yOffset - e.individualHeight
|
|
2913
|
+
) : v(W)(
|
|
2914
|
+
c.value?.top
|
|
2915
|
+
),
|
|
2916
|
+
y2: f.value.isStacked ? v(W)(
|
|
2917
|
+
c.value?.bottom - e.yOffset
|
|
2918
|
+
) : v(W)(
|
|
2919
|
+
c.value?.bottom
|
|
2920
|
+
),
|
|
2489
2921
|
stroke: e.color,
|
|
2490
2922
|
"stroke-width": t.value.chart.grid.stroke,
|
|
2491
2923
|
"stroke-linecap": "round",
|
|
@@ -2512,7 +2944,9 @@ const ks = ["id"], _s = ["id"], ws = ["id"], Ss = { style: { position: "relative
|
|
|
2512
2944
|
stroke: e.color,
|
|
2513
2945
|
"stroke-width": 1,
|
|
2514
2946
|
"stroke-linecap": "round",
|
|
2515
|
-
style: {
|
|
2947
|
+
style: {
|
|
2948
|
+
animation: "none !important"
|
|
2949
|
+
}
|
|
2516
2950
|
}, null, 8, yn)) : h("", !0)
|
|
2517
2951
|
], 64))), 256)),
|
|
2518
2952
|
(i(!0), r(d, null, k(e.yLabels, (s, a) => (i(), r("text", {
|
|
@@ -2530,7 +2964,10 @@ const ks = ["id"], _s = ["id"], ws = ["id"], Ss = { style: { position: "relative
|
|
|
2530
2964
|
s: s.suffix,
|
|
2531
2965
|
r: t.value.chart.grid.labels.yAxis.rounding
|
|
2532
2966
|
}),
|
|
2533
|
-
{
|
|
2967
|
+
{
|
|
2968
|
+
datapoint: s.datapoint,
|
|
2969
|
+
seriesIndex: a
|
|
2970
|
+
}
|
|
2534
2971
|
)), 9, xn))), 256))
|
|
2535
2972
|
], 4))), 256))
|
|
2536
2973
|
], 64)) : (i(!0), r(d, { key: 1 }, k(Fa.value, (e, s) => (i(), r("g", {
|
|
@@ -2545,12 +2982,16 @@ const ks = ["id"], _s = ["id"], ws = ["id"], Ss = { style: { position: "relative
|
|
|
2545
2982
|
stroke: t.value.chart.grid.stroke,
|
|
2546
2983
|
"stroke-width": "1",
|
|
2547
2984
|
"stroke-linecap": "round",
|
|
2548
|
-
style: {
|
|
2985
|
+
style: {
|
|
2986
|
+
animation: "none !important"
|
|
2987
|
+
}
|
|
2549
2988
|
}, null, 8, kn)) : h("", !0),
|
|
2550
2989
|
e.value >= Ae.value.min && e.value <= Ae.value.max ? (i(), r("text", {
|
|
2551
2990
|
key: 1,
|
|
2552
2991
|
x: c.value.scaleLabelX - t.value.chart.grid.labels.yAxis.crosshairSize,
|
|
2553
|
-
y: v(N)(
|
|
2992
|
+
y: v(N)(
|
|
2993
|
+
e.y + x.value.dataLabels / 3
|
|
2994
|
+
),
|
|
2554
2995
|
"font-size": x.value.dataLabels,
|
|
2555
2996
|
"text-anchor": "end",
|
|
2556
2997
|
fill: t.value.chart.grid.labels.color
|
|
@@ -2576,9 +3017,19 @@ const ks = ["id"], _s = ["id"], ws = ["id"], Ss = { style: { position: "relative
|
|
|
2576
3017
|
}, [
|
|
2577
3018
|
a && xe(a.value) ? (i(), _e(rl, {
|
|
2578
3019
|
key: 0,
|
|
2579
|
-
shape: [
|
|
3020
|
+
shape: [
|
|
3021
|
+
"triangle",
|
|
3022
|
+
"square",
|
|
3023
|
+
"diamond",
|
|
3024
|
+
"pentagon",
|
|
3025
|
+
"hexagon",
|
|
3026
|
+
"star"
|
|
3027
|
+
].includes(e.shape) ? e.shape : "circle",
|
|
2580
3028
|
color: t.value.plot.useGradient ? `url(#plotGradient_${s}_${z.value})` : t.value.plot.dot.useSerieColor ? e.color : t.value.plot.dot.fill,
|
|
2581
|
-
plot: {
|
|
3029
|
+
plot: {
|
|
3030
|
+
x: v(N)(a.x),
|
|
3031
|
+
y: v(N)(a.y)
|
|
3032
|
+
},
|
|
2582
3033
|
radius: _.value !== null && _.value === n || P.value !== null && P.value === n ? (Le.value.plot || 6) * 1.5 : Le.value.plot || 6,
|
|
2583
3034
|
stroke: t.value.plot.dot.useSerieColor ? t.value.chart.backgroundColor : e.color,
|
|
2584
3035
|
strokeWidth: t.value.plot.dot.strokeWidth,
|
|
@@ -2594,7 +3045,12 @@ const ks = ["id"], _s = ["id"], ws = ["id"], Ss = { style: { position: "relative
|
|
|
2594
3045
|
}, [
|
|
2595
3046
|
y("div", Sn, [
|
|
2596
3047
|
O(l.$slots, "plot-comment", {
|
|
2597
|
-
plot: {
|
|
3048
|
+
plot: {
|
|
3049
|
+
...a,
|
|
3050
|
+
color: e.color,
|
|
3051
|
+
seriesIndex: s,
|
|
3052
|
+
datapointIndex: n
|
|
3053
|
+
}
|
|
2598
3054
|
}, void 0, !0)
|
|
2599
3055
|
])
|
|
2600
3056
|
], 8, wn)) : h("", !0)
|
|
@@ -2612,7 +3068,9 @@ const ks = ["id"], _s = ["id"], ws = ["id"], Ss = { style: { position: "relative
|
|
|
2612
3068
|
"stroke-width": t.value.line.strokeWidth + 1,
|
|
2613
3069
|
"stroke-dasharray": e.dashed ? t.value.line.strokeWidth * 2 : 0,
|
|
2614
3070
|
fill: "none",
|
|
2615
|
-
style: w({
|
|
3071
|
+
style: w({
|
|
3072
|
+
transition: v(ne) || !t.value.line.showTransition ? void 0 : `all ${t.value.line.transitionDurationMs}ms ease-in-out`
|
|
3073
|
+
})
|
|
2616
3074
|
}, null, 12, $n)) : e.plots.length > 1 && e.straight ? (i(), r("path", {
|
|
2617
3075
|
key: 1,
|
|
2618
3076
|
d: `M${e.straight}`,
|
|
@@ -2622,13 +3080,19 @@ const ks = ["id"], _s = ["id"], ws = ["id"], Ss = { style: { position: "relative
|
|
|
2622
3080
|
fill: "none",
|
|
2623
3081
|
"stroke-linecap": "round",
|
|
2624
3082
|
"stroke-linejoin": "round",
|
|
2625
|
-
style: w({
|
|
3083
|
+
style: w({
|
|
3084
|
+
transition: v(ne) || !t.value.line.showTransition ? void 0 : `all ${t.value.line.transitionDurationMs}ms ease-in-out`
|
|
3085
|
+
})
|
|
2626
3086
|
}, null, 12, Ln)) : h("", !0)
|
|
2627
3087
|
], 6))), 128)),
|
|
2628
3088
|
l.$slots.pattern ? (i(), r("defs", Mn, [
|
|
2629
3089
|
(i(!0), r(d, null, k(Ve.value, (e, s) => O(l.$slots, "pattern", Qe({
|
|
2630
3090
|
key: `serie_pattern_slot_${e.id}`
|
|
2631
|
-
}, { ref_for: !0 }, {
|
|
3091
|
+
}, { ref_for: !0 }, {
|
|
3092
|
+
...e,
|
|
3093
|
+
seriesIndex: e.slotAbsoluteIndex,
|
|
3094
|
+
patternId: `pattern_${z.value}_${s}`
|
|
3095
|
+
}), void 0, !0)), 128))
|
|
2632
3096
|
])) : h("", !0),
|
|
2633
3097
|
Ra.value.length && !f.value.isStacked ? (i(), r("g", An, [
|
|
2634
3098
|
(i(!0), r(d, null, k(Ra.value, (e) => (i(), r("path", {
|
|
@@ -2638,7 +3102,9 @@ const ks = ["id"], _s = ["id"], ws = ["id"], Ss = { style: { position: "relative
|
|
|
2638
3102
|
"fill-opacity": t.value.line.interLine.fillOpacity,
|
|
2639
3103
|
stroke: "none",
|
|
2640
3104
|
"pointer-events": "none",
|
|
2641
|
-
style: w({
|
|
3105
|
+
style: w({
|
|
3106
|
+
transition: v(ne) || !t.value.line.showTransition ? void 0 : `all ${t.value.line.transitionDurationMs}ms ease-in-out`
|
|
3107
|
+
})
|
|
2642
3108
|
}, null, 12, Cn))), 128))
|
|
2643
3109
|
])) : h("", !0),
|
|
2644
3110
|
(i(!0), r(d, null, k(ue.value, (e, s) => (i(), r("g", {
|
|
@@ -2651,27 +3117,41 @@ const ks = ["id"], _s = ["id"], ws = ["id"], Ss = { style: { position: "relative
|
|
|
2651
3117
|
a ? (i(), r("path", {
|
|
2652
3118
|
key: 0,
|
|
2653
3119
|
d: a,
|
|
2654
|
-
fill: t.value.line.area.useGradient ? `url(#areaGradient_${s}_${z.value})` : v(Ce)(
|
|
2655
|
-
|
|
3120
|
+
fill: t.value.line.area.useGradient ? `url(#areaGradient_${s}_${z.value})` : v(Ce)(
|
|
3121
|
+
e.color,
|
|
3122
|
+
t.value.line.area.opacity
|
|
3123
|
+
),
|
|
3124
|
+
style: w({
|
|
3125
|
+
transition: v(ne) || !t.value.line.showTransition ? void 0 : `all ${t.value.line.transitionDurationMs}ms ease-in-out`
|
|
3126
|
+
})
|
|
2656
3127
|
}, null, 12, zn)) : h("", !0),
|
|
2657
3128
|
l.$slots.pattern && a ? (i(), r("path", {
|
|
2658
3129
|
key: 1,
|
|
2659
3130
|
d: a,
|
|
2660
3131
|
fill: `url(#pattern_${z.value}_${e.slotAbsoluteIndex})`,
|
|
2661
|
-
style: w({
|
|
3132
|
+
style: w({
|
|
3133
|
+
transition: v(ne) || !t.value.line.showTransition ? void 0 : `all ${t.value.line.transitionDurationMs}ms ease-in-out`
|
|
3134
|
+
})
|
|
2662
3135
|
}, null, 12, In)) : h("", !0)
|
|
2663
3136
|
], 64))), 128)) : (i(!0), r(d, { key: 1 }, k(e.area.split(";"), (a, n) => (i(), r(d, { key: n }, [
|
|
2664
3137
|
a ? (i(), r("path", {
|
|
2665
3138
|
key: 0,
|
|
2666
3139
|
d: `M${a}Z`,
|
|
2667
|
-
fill: t.value.line.area.useGradient ? `url(#areaGradient_${s}_${z.value})` : v(Ce)(
|
|
2668
|
-
|
|
3140
|
+
fill: t.value.line.area.useGradient ? `url(#areaGradient_${s}_${z.value})` : v(Ce)(
|
|
3141
|
+
e.color,
|
|
3142
|
+
t.value.line.area.opacity
|
|
3143
|
+
),
|
|
3144
|
+
style: w({
|
|
3145
|
+
transition: v(ne) || !t.value.line.showTransition ? void 0 : `all ${t.value.line.transitionDurationMs}ms ease-in-out`
|
|
3146
|
+
})
|
|
2669
3147
|
}, null, 12, Pn)) : h("", !0),
|
|
2670
3148
|
l.$slots.pattern && a ? (i(), r("path", {
|
|
2671
3149
|
key: 1,
|
|
2672
3150
|
d: `M${a}Z`,
|
|
2673
3151
|
fill: `url(#pattern_${z.value}_${e.slotAbsoluteIndex})`,
|
|
2674
|
-
style: w({
|
|
3152
|
+
style: w({
|
|
3153
|
+
transition: v(ne) || !t.value.line.showTransition ? void 0 : `all ${t.value.line.transitionDurationMs}ms ease-in-out`
|
|
3154
|
+
})
|
|
2675
3155
|
}, null, 12, On)) : h("", !0)
|
|
2676
3156
|
], 64))), 128))
|
|
2677
3157
|
])) : h("", !0),
|
|
@@ -2683,7 +3163,9 @@ const ks = ["id"], _s = ["id"], ws = ["id"], Ss = { style: { position: "relative
|
|
|
2683
3163
|
"stroke-dasharray": e.dashed ? t.value.line.strokeWidth * 2 : 0,
|
|
2684
3164
|
fill: "none",
|
|
2685
3165
|
"stroke-linecap": "round",
|
|
2686
|
-
style: w({
|
|
3166
|
+
style: w({
|
|
3167
|
+
transition: v(ne) || !t.value.line.showTransition ? void 0 : `all ${t.value.line.transitionDurationMs}ms ease-in-out`
|
|
3168
|
+
})
|
|
2687
3169
|
}, null, 12, Nn)) : e.hasDashedSegments ? (i(), r(d, { key: 2 }, [
|
|
2688
3170
|
e.smooth ? (i(!0), r(d, { key: 0 }, k(e.dashedSmooth, (a) => (i(), r("path", {
|
|
2689
3171
|
key: a.path,
|
|
@@ -2713,16 +3195,28 @@ const ks = ["id"], _s = ["id"], ws = ["id"], Ss = { style: { position: "relative
|
|
|
2713
3195
|
fill: "none",
|
|
2714
3196
|
"stroke-linecap": "round",
|
|
2715
3197
|
"stroke-linejoin": "round",
|
|
2716
|
-
style: w({
|
|
3198
|
+
style: w({
|
|
3199
|
+
transition: v(ne) || !t.value.line.showTransition ? void 0 : `all ${t.value.line.transitionDurationMs}ms ease-in-out`
|
|
3200
|
+
})
|
|
2717
3201
|
}, null, 12, Bn)) : h("", !0),
|
|
2718
3202
|
(i(!0), r(d, null, k(e.plots, (a, n) => (i(), r(d, {
|
|
2719
3203
|
key: `circle_line_${s}_${n}`
|
|
2720
3204
|
}, [
|
|
2721
3205
|
!Oa.value.linePlot && a && xe(a.value) || Oa.value.linePlot && a && xe(a.value) && (_.value !== null && _.value === n || P.value !== null && P.value === n) || Ba(e.plots, n) ? (i(), _e(rl, {
|
|
2722
3206
|
key: 0,
|
|
2723
|
-
shape: [
|
|
3207
|
+
shape: [
|
|
3208
|
+
"triangle",
|
|
3209
|
+
"square",
|
|
3210
|
+
"diamond",
|
|
3211
|
+
"pentagon",
|
|
3212
|
+
"hexagon",
|
|
3213
|
+
"star"
|
|
3214
|
+
].includes(e.shape) ? e.shape : "circle",
|
|
2724
3215
|
color: t.value.line.useGradient ? `url(#lineGradient_${s}_${z.value})` : t.value.line.dot.useSerieColor ? e.color : t.value.line.dot.fill,
|
|
2725
|
-
plot: {
|
|
3216
|
+
plot: {
|
|
3217
|
+
x: v(N)(a.x),
|
|
3218
|
+
y: v(N)(a.y)
|
|
3219
|
+
},
|
|
2726
3220
|
radius: _.value !== null && _.value === n || P.value !== null && P.value === n ? (Le.value.line || 6) * 1.5 : (Ba(e.plots, n), Le.value.line || 6),
|
|
2727
3221
|
stroke: t.value.line.dot.useSerieColor ? t.value.chart.backgroundColor : e.color,
|
|
2728
3222
|
strokeWidth: t.value.line.dot.strokeWidth,
|
|
@@ -2738,7 +3232,12 @@ const ks = ["id"], _s = ["id"], ws = ["id"], Ss = { style: { position: "relative
|
|
|
2738
3232
|
}, [
|
|
2739
3233
|
y("div", Hn, [
|
|
2740
3234
|
O(l.$slots, "plot-comment", {
|
|
2741
|
-
plot: {
|
|
3235
|
+
plot: {
|
|
3236
|
+
...a,
|
|
3237
|
+
color: e.color,
|
|
3238
|
+
seriesIndex: s,
|
|
3239
|
+
datapointIndex: n
|
|
3240
|
+
}
|
|
2742
3241
|
}, void 0, !0)
|
|
2743
3242
|
])
|
|
2744
3243
|
], 8, Rn)) : h("", !0)
|
|
@@ -2751,7 +3250,10 @@ const ks = ["id"], _s = ["id"], ws = ["id"], Ss = { style: { position: "relative
|
|
|
2751
3250
|
(i(!0), r(d, null, k(e.plots, (a, n) => (i(), r(d, {
|
|
2752
3251
|
key: `xLabel_bar_${s}_${n}`
|
|
2753
3252
|
}, [
|
|
2754
|
-
a && (!Object.hasOwn(
|
|
3253
|
+
a && (!Object.hasOwn(
|
|
3254
|
+
e,
|
|
3255
|
+
"dataLabels"
|
|
3256
|
+
) || e.dataLabels === !0 || _.value !== null && _.value === n || P.value !== null && P.value === n) && t.value.bar.labels.show ? (i(), r("text", {
|
|
2755
3257
|
key: 0,
|
|
2756
3258
|
x: f.value.useIndividualScale && f.value.isStacked ? a.x + J.value.line / 2 : jt(a) + Be() / 2 - el.value / 2,
|
|
2757
3259
|
y: v(N)(a.y) + (a.value >= 0 ? t.value.bar.labels.offsetY : -t.value.bar.labels.offsetY * 3),
|
|
@@ -2796,7 +3298,10 @@ const ks = ["id"], _s = ["id"], ws = ["id"], Ss = { style: { position: "relative
|
|
|
2796
3298
|
(i(!0), r(d, null, k(e.plots, (a, n) => (i(), r(d, {
|
|
2797
3299
|
key: `xLabel_plot_${s}_${n}`
|
|
2798
3300
|
}, [
|
|
2799
|
-
a && !Object.hasOwn(
|
|
3301
|
+
a && !Object.hasOwn(
|
|
3302
|
+
e,
|
|
3303
|
+
"dataLabels"
|
|
3304
|
+
) || e.dataLabels === !0 || _.value !== null && _.value === n || P.value !== null && P.value === n ? (i(), r("text", {
|
|
2800
3305
|
key: 0,
|
|
2801
3306
|
x: a.x,
|
|
2802
3307
|
y: a.y + t.value.plot.labels.offsetY,
|
|
@@ -2828,7 +3333,11 @@ const ks = ["id"], _s = ["id"], ws = ["id"], Ss = { style: { position: "relative
|
|
|
2828
3333
|
key: `xLabel_plot_${s}_${n}`
|
|
2829
3334
|
}, [
|
|
2830
3335
|
t.value.plot.tag.followValue ? (i(), r(d, { key: 1 }, [
|
|
2831
|
-
[
|
|
3336
|
+
[
|
|
3337
|
+
P.value,
|
|
3338
|
+
_.value,
|
|
3339
|
+
Ye.value
|
|
3340
|
+
].includes(n) && e.useTag ? (i(), r("line", {
|
|
2832
3341
|
key: 0,
|
|
2833
3342
|
class: "vue-ui-xy-tag-plot",
|
|
2834
3343
|
x1: c.value?.left,
|
|
@@ -2896,7 +3405,10 @@ const ks = ["id"], _s = ["id"], ws = ["id"], Ss = { style: { position: "relative
|
|
|
2896
3405
|
(i(!0), r(d, null, k(e.plots, (a, n) => (i(), r(d, {
|
|
2897
3406
|
key: `xLabel_line_${s}_${n}`
|
|
2898
3407
|
}, [
|
|
2899
|
-
a && !Object.hasOwn(
|
|
3408
|
+
a && !Object.hasOwn(
|
|
3409
|
+
e,
|
|
3410
|
+
"dataLabels"
|
|
3411
|
+
) || e.dataLabels === !0 || _.value !== null && _.value === n || P.value !== null && P.value === n ? (i(), r("text", {
|
|
2900
3412
|
key: 0,
|
|
2901
3413
|
x: a.x,
|
|
2902
3414
|
y: a.y + (a.value >= 0 ? t.value.line.labels.offsetY : -t.value.line.labels.offsetY * 3),
|
|
@@ -2928,7 +3440,11 @@ const ks = ["id"], _s = ["id"], ws = ["id"], Ss = { style: { position: "relative
|
|
|
2928
3440
|
key: `xLabel_line_${s}_${n}`
|
|
2929
3441
|
}, [
|
|
2930
3442
|
t.value.line.tag.followValue ? (i(), r(d, { key: 1 }, [
|
|
2931
|
-
[
|
|
3443
|
+
[
|
|
3444
|
+
P.value,
|
|
3445
|
+
_.value,
|
|
3446
|
+
Ye.value
|
|
3447
|
+
].includes(n) && e.useTag ? (i(), r("line", {
|
|
2932
3448
|
key: 0,
|
|
2933
3449
|
class: "vue-ui-xy-tag-line",
|
|
2934
3450
|
x1: c.value?.left,
|
|
@@ -3073,10 +3589,16 @@ const ks = ["id"], _s = ["id"], ws = ["id"], Ss = { style: { position: "relative
|
|
|
3073
3589
|
}, null, 12, ri)) : h("", !0)
|
|
3074
3590
|
], 64))), 128))
|
|
3075
3591
|
], 64))), 128)),
|
|
3076
|
-
(i(!0), r(d, null, k([
|
|
3592
|
+
(i(!0), r(d, null, k([
|
|
3593
|
+
...ge.value,
|
|
3594
|
+
...ue.value,
|
|
3595
|
+
...ke.value
|
|
3596
|
+
], (e, s) => (i(), r(d, {
|
|
3077
3597
|
key: `progression-${s}`
|
|
3078
3598
|
}, [
|
|
3079
|
-
Object.hasOwn(e, "useProgression") && e.useProgression === !0 && !isNaN(
|
|
3599
|
+
Object.hasOwn(e, "useProgression") && e.useProgression === !0 && !isNaN(
|
|
3600
|
+
v(Se)(e.plots).trend
|
|
3601
|
+
) ? (i(), r("g", ci, [
|
|
3080
3602
|
y("defs", null, [
|
|
3081
3603
|
y("marker", {
|
|
3082
3604
|
id: `progression_arrow_${s}`,
|
|
@@ -3102,8 +3624,12 @@ const ks = ["id"], _s = ["id"], ws = ["id"], Ss = { style: { position: "relative
|
|
|
3102
3624
|
key: 0,
|
|
3103
3625
|
x1: v(Se)(e.plots).x1 + (e.type === "bar" ? Be() : 0),
|
|
3104
3626
|
x2: v(Se)(e.plots).x2 + (e.type === "bar" ? Be() : 0),
|
|
3105
|
-
y1: v(W)(
|
|
3106
|
-
|
|
3627
|
+
y1: v(W)(
|
|
3628
|
+
v(Se)(e.plots).y1
|
|
3629
|
+
),
|
|
3630
|
+
y2: v(W)(
|
|
3631
|
+
v(Se)(e.plots).y2
|
|
3632
|
+
),
|
|
3107
3633
|
"stroke-width": 1,
|
|
3108
3634
|
stroke: t.value.chart.backgroundColor,
|
|
3109
3635
|
"stroke-dasharray": 2,
|
|
@@ -3115,8 +3641,12 @@ const ks = ["id"], _s = ["id"], ws = ["id"], Ss = { style: { position: "relative
|
|
|
3115
3641
|
key: 1,
|
|
3116
3642
|
x1: v(Se)(e.plots).x1 + (e.type === "bar" ? Be() : 0),
|
|
3117
3643
|
x2: v(Se)(e.plots).x2 + (e.type === "bar" ? Be() : 0),
|
|
3118
|
-
y1: v(W)(
|
|
3119
|
-
|
|
3644
|
+
y1: v(W)(
|
|
3645
|
+
v(Se)(e.plots).y1
|
|
3646
|
+
),
|
|
3647
|
+
y2: v(W)(
|
|
3648
|
+
v(Se)(e.plots).y2
|
|
3649
|
+
),
|
|
3120
3650
|
"stroke-width": 1,
|
|
3121
3651
|
stroke: e.color,
|
|
3122
3652
|
"stroke-dasharray": 2,
|
|
@@ -3137,7 +3667,9 @@ const ks = ["id"], _s = ["id"], ws = ["id"], Ss = { style: { position: "relative
|
|
|
3137
3667
|
"stroke-linejoin": "round",
|
|
3138
3668
|
"paint-order": "stroke fill"
|
|
3139
3669
|
}, se(v(Pe)({
|
|
3140
|
-
v: v(Se)(
|
|
3670
|
+
v: v(Se)(
|
|
3671
|
+
e.plots
|
|
3672
|
+
).trend * 100,
|
|
3141
3673
|
s: "%",
|
|
3142
3674
|
r: 2
|
|
3143
3675
|
})), 9, mi)) : h("", !0)
|
|
@@ -3218,8 +3750,10 @@ const ks = ["id"], _s = ["id"], ws = ["id"], Ss = { style: { position: "relative
|
|
|
3218
3750
|
key: `time_label_${s}`
|
|
3219
3751
|
}, [
|
|
3220
3752
|
e && e.text ? (i(), r(d, { key: 0 }, [
|
|
3221
|
-
String(e.text).includes(
|
|
3222
|
-
`
|
|
3753
|
+
String(e.text).includes(
|
|
3754
|
+
`
|
|
3755
|
+
`
|
|
3756
|
+
) ? (i(), r("text", {
|
|
3223
3757
|
key: 1,
|
|
3224
3758
|
class: "vue-data-ui-time-label",
|
|
3225
3759
|
"text-anchor": t.value.chart.grid.labels.xAxisLabels.rotation > 0 ? "start" : t.value.chart.grid.labels.xAxisLabels.rotation < 0 ? "end" : "middle",
|
|
@@ -3282,17 +3816,26 @@ const ks = ["id"], _s = ["id"], ws = ["id"], Ss = { style: { position: "relative
|
|
|
3282
3816
|
}, null, 8, Li)) : h("", !0),
|
|
3283
3817
|
e.hasArea && e.show && isFinite(e.yTop) && isFinite(e.yBottom) ? (i(), r("rect", {
|
|
3284
3818
|
key: 2,
|
|
3285
|
-
y: Math.min(
|
|
3819
|
+
y: Math.min(
|
|
3820
|
+
e.yTop,
|
|
3821
|
+
e.yBottom
|
|
3822
|
+
),
|
|
3286
3823
|
x: e.x1,
|
|
3287
3824
|
width: c.value.width,
|
|
3288
3825
|
height: v(N)(e.areaHeight, 0),
|
|
3289
|
-
fill: v(Ce)(
|
|
3826
|
+
fill: v(Ce)(
|
|
3827
|
+
e.config.area.fill,
|
|
3828
|
+
e.config.area.opacity
|
|
3829
|
+
),
|
|
3290
3830
|
style: { animation: "none !important" }
|
|
3291
3831
|
}, null, 8, Mi)) : h("", !0),
|
|
3292
3832
|
e.config.label.text && e.show && isFinite(e._box.y) ? (i(), r("rect", Qe({
|
|
3293
3833
|
key: 3,
|
|
3294
3834
|
class: "vue-ui-xy-annotation-label-box"
|
|
3295
|
-
}, { ref_for: !0 }, e._box, { style: {
|
|
3835
|
+
}, { ref_for: !0 }, e._box, { style: {
|
|
3836
|
+
animation: "none !important",
|
|
3837
|
+
transition: "none !important"
|
|
3838
|
+
} }), null, 16)) : h("", !0),
|
|
3296
3839
|
e.config.label.text && e.show && isFinite(e._text.y) ? (i(), r("text", {
|
|
3297
3840
|
key: 4,
|
|
3298
3841
|
id: e.id,
|
|
@@ -3305,7 +3848,11 @@ const ks = ["id"], _s = ["id"], ws = ["id"], Ss = { style: { position: "relative
|
|
|
3305
3848
|
}, se(e.config.label.text), 9, Ai)) : h("", !0)
|
|
3306
3849
|
]))), 128))
|
|
3307
3850
|
])) : h("", !0),
|
|
3308
|
-
t.value.chart.timeTag.show && (![null, void 0].includes(
|
|
3851
|
+
t.value.chart.timeTag.show && (![null, void 0].includes(
|
|
3852
|
+
_.value
|
|
3853
|
+
) || ![null, void 0].includes(
|
|
3854
|
+
P.value
|
|
3855
|
+
)) ? (i(), r("g", Ci, [
|
|
3309
3856
|
(i(), r("foreignObject", {
|
|
3310
3857
|
x: xu(),
|
|
3311
3858
|
y: c.value?.bottom,
|
|
@@ -3345,11 +3892,16 @@ const ks = ["id"], _s = ["id"], ws = ["id"], Ss = { style: { position: "relative
|
|
|
3345
3892
|
], 512)
|
|
3346
3893
|
], 46, $s)),
|
|
3347
3894
|
l.$slots.hint ? (i(), r("div", Oi, [
|
|
3348
|
-
O(l.$slots, "hint", ve(de({
|
|
3895
|
+
O(l.$slots, "hint", ve(de({
|
|
3896
|
+
hint: t.value.a11y.translations.keyboardNavigation,
|
|
3897
|
+
isVisible: zl.value
|
|
3898
|
+
})), void 0, !0)
|
|
3349
3899
|
])) : h("", !0)
|
|
3350
3900
|
]),
|
|
3351
3901
|
l.$slots.watermark ? (i(), r("div", Ni, [
|
|
3352
|
-
O(l.$slots, "watermark", ve(de({
|
|
3902
|
+
O(l.$slots, "watermark", ve(de({
|
|
3903
|
+
isPrinting: v(Et) || v(_l) || Ht.value || Dt.value
|
|
3904
|
+
})), void 0, !0)
|
|
3353
3905
|
])) : h("", !0),
|
|
3354
3906
|
(i(!0), r(d, null, k(ue.value, (e, s) => (i(), r(d, {
|
|
3355
3907
|
key: `tag_line_${e.id}`
|
|
@@ -3357,7 +3909,11 @@ const ks = ["id"], _s = ["id"], ws = ["id"], Ss = { style: { position: "relative
|
|
|
3357
3909
|
(i(!0), r(d, null, k(e.plots, (a, n) => (i(), r(d, {
|
|
3358
3910
|
key: `tag_line_${s}_${n}`
|
|
3359
3911
|
}, [
|
|
3360
|
-
[
|
|
3912
|
+
[
|
|
3913
|
+
P.value,
|
|
3914
|
+
_.value,
|
|
3915
|
+
Ye.value
|
|
3916
|
+
].includes(n) && e.useTag && e.useTag === "end" && t.value.line.tag.followValue ? (i(), r("div", {
|
|
3361
3917
|
key: 0,
|
|
3362
3918
|
ref_for: !0,
|
|
3363
3919
|
ref: (u) => qt(s, n, u, "right", "line"),
|
|
@@ -3409,7 +3965,11 @@ const ks = ["id"], _s = ["id"], ws = ["id"], Ss = { style: { position: "relative
|
|
|
3409
3965
|
)
|
|
3410
3966
|
}, null, 8, Bi)
|
|
3411
3967
|
], 4)) : h("", !0),
|
|
3412
|
-
[
|
|
3968
|
+
[
|
|
3969
|
+
P.value,
|
|
3970
|
+
_.value,
|
|
3971
|
+
Ye.value
|
|
3972
|
+
].includes(n) && e.useTag && e.useTag === "start" && t.value.line.tag.followValue ? (i(), r("div", {
|
|
3413
3973
|
key: 1,
|
|
3414
3974
|
ref_for: !0,
|
|
3415
3975
|
ref: (u) => qt(s, n, u, "left", "line"),
|
|
@@ -3469,7 +4029,11 @@ const ks = ["id"], _s = ["id"], ws = ["id"], Ss = { style: { position: "relative
|
|
|
3469
4029
|
(i(!0), r(d, null, k(e.plots, (a, n) => (i(), r(d, {
|
|
3470
4030
|
key: `tag_plot_${s}_${n}`
|
|
3471
4031
|
}, [
|
|
3472
|
-
[
|
|
4032
|
+
[
|
|
4033
|
+
P.value,
|
|
4034
|
+
_.value,
|
|
4035
|
+
Ye.value
|
|
4036
|
+
].includes(n) && e.useTag && e.useTag === "end" && t.value.plot.tag.followValue ? (i(), r("div", {
|
|
3473
4037
|
key: 0,
|
|
3474
4038
|
ref_for: !0,
|
|
3475
4039
|
ref: (u) => qt(s, n, u, "right", "plot"),
|
|
@@ -3521,7 +4085,11 @@ const ks = ["id"], _s = ["id"], ws = ["id"], Ss = { style: { position: "relative
|
|
|
3521
4085
|
)
|
|
3522
4086
|
}, null, 8, Yi)
|
|
3523
4087
|
], 4)) : h("", !0),
|
|
3524
|
-
[
|
|
4088
|
+
[
|
|
4089
|
+
P.value,
|
|
4090
|
+
_.value,
|
|
4091
|
+
Ye.value
|
|
4092
|
+
].includes(n) && e.useTag && e.useTag === "start" && t.value.plot.tag.followValue ? (i(), r("div", {
|
|
3525
4093
|
key: 1,
|
|
3526
4094
|
ref_for: !0,
|
|
3527
4095
|
ref: (u) => qt(s, n, u, "left", "plot"),
|
|
@@ -3610,7 +4178,11 @@ const ks = ["id"], _s = ["id"], ws = ["id"], Ss = { style: { position: "relative
|
|
|
3610
4178
|
minimapSelectedIndex: _.value,
|
|
3611
4179
|
minimapSelectionRadius: t.value.chart.zoom.minimap.selectionRadius,
|
|
3612
4180
|
preciseLabels: Wa.value.length ? Wa.value : Zt.value,
|
|
3613
|
-
refreshEndPoint: t.value.chart.zoom.endIndex !== null ? t.value.chart.zoom.endIndex + 1 : Math.max(
|
|
4181
|
+
refreshEndPoint: t.value.chart.zoom.endIndex !== null ? t.value.chart.zoom.endIndex + 1 : Math.max(
|
|
4182
|
+
...cl.dataset.map(
|
|
4183
|
+
(e) => Fe(e.series).length
|
|
4184
|
+
)
|
|
4185
|
+
),
|
|
3614
4186
|
refreshStartPoint: t.value.chart.zoom.startIndex !== null ? t.value.chart.zoom.startIndex : 0,
|
|
3615
4187
|
selectColor: t.value.chart.zoom.highlightColor,
|
|
3616
4188
|
selectedSeries: Ze.value,
|
|
@@ -3699,7 +4271,14 @@ const ks = ["id"], _s = ["id"], ws = ["id"], Ss = { style: { position: "relative
|
|
|
3699
4271
|
plot: { x: 10, y: 9 },
|
|
3700
4272
|
radius: 4,
|
|
3701
4273
|
color: e.color,
|
|
3702
|
-
shape: [
|
|
4274
|
+
shape: [
|
|
4275
|
+
"triangle",
|
|
4276
|
+
"square",
|
|
4277
|
+
"diamond",
|
|
4278
|
+
"pentagon",
|
|
4279
|
+
"hexagon",
|
|
4280
|
+
"star"
|
|
4281
|
+
].includes(e.shape) ? e.shape : "circle",
|
|
3703
4282
|
stroke: t.value.chart.backgroundColor,
|
|
3704
4283
|
strokeWidth: 0.5
|
|
3705
4284
|
}, null, 8, ["color", "shape", "stroke"])
|
|
@@ -3729,7 +4308,14 @@ const ks = ["id"], _s = ["id"], ws = ["id"], Ss = { style: { position: "relative
|
|
|
3729
4308
|
plot: { x: 6, y: 6 },
|
|
3730
4309
|
radius: 5,
|
|
3731
4310
|
color: e.color,
|
|
3732
|
-
shape: [
|
|
4311
|
+
shape: [
|
|
4312
|
+
"triangle",
|
|
4313
|
+
"square",
|
|
4314
|
+
"diamond",
|
|
4315
|
+
"pentagon",
|
|
4316
|
+
"hexagon",
|
|
4317
|
+
"star"
|
|
4318
|
+
].includes(e.shape) ? e.shape : "circle"
|
|
3733
4319
|
}, null, 8, ["color", "shape"])
|
|
3734
4320
|
])),
|
|
3735
4321
|
y("span", {
|
|
@@ -3859,7 +4445,9 @@ const ks = ["id"], _s = ["id"], ws = ["id"], Ss = { style: { position: "relative
|
|
|
3859
4445
|
y("button", {
|
|
3860
4446
|
tabindex: "0",
|
|
3861
4447
|
class: "vue-ui-user-options-button",
|
|
3862
|
-
onClick: o[3] || (o[3] = (e) => Ml(
|
|
4448
|
+
onClick: o[3] || (o[3] = (e) => Ml(
|
|
4449
|
+
t.value.chart.userOptions.callbacks.csv
|
|
4450
|
+
))
|
|
3863
4451
|
}, [
|
|
3864
4452
|
dt(v(Rl), {
|
|
3865
4453
|
name: "fileCsv",
|
|
@@ -3875,7 +4463,7 @@ const ks = ["id"], _s = ["id"], ws = ["id"], Ss = { style: { position: "relative
|
|
|
3875
4463
|
], !0)
|
|
3876
4464
|
], 46, ks));
|
|
3877
4465
|
}
|
|
3878
|
-
}, $r = /* @__PURE__ */ xs(or, [["__scopeId", "data-v-
|
|
4466
|
+
}, $r = /* @__PURE__ */ xs(or, [["__scopeId", "data-v-8c8689fd"]]);
|
|
3879
4467
|
export {
|
|
3880
4468
|
$r as default
|
|
3881
4469
|
};
|