vue-data-ui 3.17.13 → 3.18.0
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 +1 -1
- package/dist/A11yDataTable-q2-8fSlJ.js +45 -0
- package/dist/Arrow-BU2Z7mfz.js +116 -0
- package/dist/BaseDraggableDialog-LE75fWYz.js +272 -0
- package/dist/BaseIcon-CL6Y7alf.js +499 -0
- package/dist/BaseLegendToggle-BvPOFMVZ.js +56 -0
- package/dist/BaseScanner-C7dmAref.js +27 -0
- package/dist/BaseZoomControls-DSwf4HhS.js +111 -0
- package/dist/ColorPicker-BGbMrtup.js +255 -0
- package/dist/DataTable-ZG4GX2Zg.js +150 -0
- package/dist/Legend-BPb8i4aC.js +114 -0
- package/dist/NonSvgPenAndPaper-BT3YMjgo.js +577 -0
- package/dist/PackageVersion-B1cPtZ3Q.js +11 -0
- package/dist/PenAndPaper-DxBCVZAx.js +461 -0
- package/dist/RecursiveCircles-DPpLel6f.js +117 -0
- package/dist/RecursiveLabels-DBMJf_to.js +56 -0
- package/dist/RecursiveLinks-D06dBL4a.js +78 -0
- package/dist/Shape-Dbug7CtK.js +141 -0
- package/dist/Slicer-SEdaKYPX.js +1144 -0
- package/dist/SlicerPreview-BLlQTUI_.js +1523 -0
- package/dist/SparkTooltip-BaONR2nq.js +93 -0
- package/dist/Title-ByyzJzpc.js +87 -0
- package/dist/Tooltip-V6Z0Ko-1.js +307 -0
- package/dist/UserOptions-Gaw1761w.js +1407 -0
- package/dist/_plugin-vue_export-helper-Dq1MygBL.js +8 -0
- package/dist/canvas-lib-DTaADQOK.js +79 -0
- package/dist/components/arrow.js +2 -5
- package/dist/components/vue-ui-3d-bar.js +2 -5
- package/dist/components/vue-ui-accordion.js +2 -5
- package/dist/components/vue-ui-age-pyramid.js +2 -5
- package/dist/components/vue-ui-annotator.js +2 -5
- package/dist/components/vue-ui-bullet.js +2 -5
- package/dist/components/vue-ui-bump.js +2 -5
- package/dist/components/vue-ui-candlestick.js +2 -5
- package/dist/components/vue-ui-carousel-table.js +2 -5
- package/dist/components/vue-ui-chestnut.js +2 -5
- package/dist/components/vue-ui-chord.js +2 -5
- package/dist/components/vue-ui-circle-pack.js +2 -5
- package/dist/components/vue-ui-cursor.js +2 -5
- package/dist/components/vue-ui-dag.js +2 -5
- package/dist/components/vue-ui-dashboard.js +2 -5
- package/dist/components/vue-ui-digits.js +2 -5
- package/dist/components/vue-ui-donut-evolution.js +2 -5
- package/dist/components/vue-ui-donut.js +2 -5
- package/dist/components/vue-ui-dumbbell.js +2 -5
- package/dist/components/vue-ui-flow.js +2 -5
- package/dist/components/vue-ui-funnel.js +2 -5
- package/dist/components/vue-ui-galaxy.js +2 -5
- package/dist/components/vue-ui-gauge.js +2 -5
- package/dist/components/vue-ui-geo.js +2 -5
- package/dist/components/vue-ui-gizmo.js +2 -5
- package/dist/components/vue-ui-heatmap.js +2 -5
- package/dist/components/vue-ui-history-plot.js +2 -5
- package/dist/components/vue-ui-horizontal-bar.js +2 -5
- package/dist/components/vue-ui-icon.js +2 -5
- package/dist/components/vue-ui-kpi.js +2 -5
- package/dist/components/vue-ui-mini-loader.js +2 -5
- package/dist/components/vue-ui-molecule.js +2 -5
- package/dist/components/vue-ui-mood-radar.js +2 -5
- package/dist/components/vue-ui-nested-donuts.js +2 -5
- package/dist/components/vue-ui-onion.js +2 -5
- package/dist/components/vue-ui-parallel-coordinate-plot.js +2 -5
- package/dist/components/vue-ui-pattern-seed.js +2 -5
- package/dist/components/vue-ui-pattern.js +2 -5
- package/dist/components/vue-ui-quadrant.js +2 -5
- package/dist/components/vue-ui-quick-chart.js +2 -5
- package/dist/components/vue-ui-radar.js +2 -5
- package/dist/components/vue-ui-rating.js +2 -5
- package/dist/components/vue-ui-relation-circle.js +2 -5
- package/dist/components/vue-ui-ridgeline.js +2 -5
- package/dist/components/vue-ui-rings.js +2 -5
- package/dist/components/vue-ui-scatter.js +2 -5
- package/dist/components/vue-ui-skeleton.js +2 -5
- package/dist/components/vue-ui-smiley.js +2 -5
- package/dist/components/vue-ui-spark-trend.js +2 -5
- package/dist/components/vue-ui-sparkbar.js +2 -5
- package/dist/components/vue-ui-sparkgauge.js +2 -5
- package/dist/components/vue-ui-sparkhistogram.js +2 -5
- package/dist/components/vue-ui-sparkline.js +2 -5
- package/dist/components/vue-ui-sparkstackbar.js +2 -5
- package/dist/components/vue-ui-stackbar.js +2 -5
- package/dist/components/vue-ui-stackline.js +2 -5
- package/dist/components/vue-ui-strip-plot.js +2 -5
- package/dist/components/vue-ui-table-heatmap.js +2 -5
- package/dist/components/vue-ui-table-sparkline.js +2 -5
- package/dist/components/vue-ui-table.js +2 -5
- package/dist/components/vue-ui-thermometer.js +2 -5
- package/dist/components/vue-ui-timer.js +2 -5
- package/dist/components/vue-ui-tiremarks.js +2 -5
- package/dist/components/vue-ui-treemap.js +2 -5
- package/dist/components/vue-ui-vertical-bar.js +2 -5
- package/dist/components/vue-ui-waffle.js +2 -5
- package/dist/components/vue-ui-wheel.js +2 -5
- package/dist/components/vue-ui-word-cloud.js +2 -5
- package/dist/components/vue-ui-world.js +2 -5
- package/dist/components/vue-ui-xy-canvas.js +2 -5
- package/dist/components/vue-ui-xy.js +2 -5
- package/dist/dom-to-png-C9UOX1d2.js +237 -0
- package/dist/exposedLib-BQjH823l.js +19 -0
- package/dist/geoProjections-CQIkC70z.js +146 -0
- package/dist/img-NMY-_LiJ.js +74 -0
- package/dist/labelUtils-BiSegLOT.js +19 -0
- package/dist/lib-B83ZCydz.js +1879 -0
- package/dist/patternUtils-B7BWu5bV.js +258 -0
- package/dist/pdf-Ey2KFETK.js +90 -0
- package/dist/rolldown-runtime-CAFD8bLK.js +11 -0
- package/dist/style.css +2 -1
- package/dist/types/arrow.d.ts +1 -1
- package/dist/types/utils.d.ts +23 -0
- package/dist/types/vue-data-ui.d.ts +4766 -630
- package/dist/types/vue-ui-3d-bar.d.ts +64 -9
- package/dist/types/vue-ui-accordion.d.ts +4 -3
- package/dist/types/vue-ui-age-pyramid.d.ts +79 -9
- package/dist/types/vue-ui-annotator.d.ts +3 -5
- package/dist/types/vue-ui-bullet.d.ts +60 -9
- package/dist/types/vue-ui-bump.d.ts +65 -9
- package/dist/types/vue-ui-candlestick.d.ts +83 -9
- package/dist/types/vue-ui-carousel-table.d.ts +36 -6
- package/dist/types/vue-ui-chestnut.d.ts +66 -9
- package/dist/types/vue-ui-chord.d.ts +78 -9
- package/dist/types/vue-ui-circle-pack.d.ts +86 -9
- package/dist/types/vue-ui-cursor.d.ts +4 -2
- package/dist/types/vue-ui-dag.d.ts +92 -9
- package/dist/types/vue-ui-dashboard.d.ts +43 -6
- package/dist/types/vue-ui-digits.d.ts +4 -2
- package/dist/types/vue-ui-donut-evolution.d.ts +70 -9
- package/dist/types/vue-ui-donut.d.ts +92 -9
- package/dist/types/vue-ui-dumbbell.d.ts +65 -9
- package/dist/types/vue-ui-flow.d.ts +79 -9
- package/dist/types/vue-ui-funnel.d.ts +55 -9
- package/dist/types/vue-ui-galaxy.d.ts +83 -9
- package/dist/types/vue-ui-gauge.d.ts +64 -9
- package/dist/types/vue-ui-geo.d.ts +71 -9
- package/dist/types/vue-ui-gizmo.d.ts +17 -6
- package/dist/types/vue-ui-heatmap.d.ts +73 -9
- package/dist/types/vue-ui-history-plot.d.ts +82 -9
- package/dist/types/vue-ui-horizontal-bar.d.ts +84 -9
- package/dist/types/vue-ui-icon.d.ts +2 -2
- package/dist/types/vue-ui-kpi.d.ts +21 -7
- package/dist/types/vue-ui-mini-loader.d.ts +5 -3
- package/dist/types/vue-ui-molecule.d.ts +86 -9
- package/dist/types/vue-ui-mood-radar.d.ts +66 -9
- package/dist/types/vue-ui-nested-donuts.d.ts +80 -9
- package/dist/types/vue-ui-onion.d.ts +77 -9
- package/dist/types/vue-ui-parallel-coordinate-plot.d.ts +92 -9
- package/dist/types/vue-ui-pattern-seed.d.ts +1 -1
- package/dist/types/vue-ui-pattern.d.ts +2 -2
- package/dist/types/vue-ui-quadrant.d.ts +86 -9
- package/dist/types/vue-ui-quick-chart.d.ts +79 -9
- package/dist/types/vue-ui-radar.d.ts +83 -9
- package/dist/types/vue-ui-rating.d.ts +22 -6
- package/dist/types/vue-ui-relation-circle.d.ts +66 -9
- package/dist/types/vue-ui-ridgeline.d.ts +69 -9
- package/dist/types/vue-ui-rings.d.ts +70 -9
- package/dist/types/vue-ui-scatter.d.ts +67 -9
- package/dist/types/vue-ui-skeleton.d.ts +3 -2
- package/dist/types/vue-ui-smiley.d.ts +3 -2
- package/dist/types/vue-ui-spark-trend.d.ts +14 -6
- package/dist/types/vue-ui-sparkbar.d.ts +27 -6
- package/dist/types/vue-ui-sparkgauge.d.ts +20 -6
- package/dist/types/vue-ui-sparkhistogram.d.ts +24 -6
- package/dist/types/vue-ui-sparkline.d.ts +35 -6
- package/dist/types/vue-ui-sparkstackbar.d.ts +35 -6
- package/dist/types/vue-ui-stackbar.d.ts +85 -9
- package/dist/types/vue-ui-stackline.d.ts +81 -9
- package/dist/types/vue-ui-strip-plot.d.ts +66 -9
- package/dist/types/vue-ui-table-heatmap.d.ts +52 -6
- package/dist/types/vue-ui-table-sparkline.d.ts +30 -6
- package/dist/types/vue-ui-table.d.ts +10 -2
- package/dist/types/vue-ui-thermometer.d.ts +46 -9
- package/dist/types/vue-ui-timer.d.ts +31 -5
- package/dist/types/vue-ui-tiremarks.d.ts +46 -9
- package/dist/types/vue-ui-treemap.d.ts +73 -9
- package/dist/types/vue-ui-vertical-bar.d.ts +2 -2
- package/dist/types/vue-ui-waffle.d.ts +72 -9
- package/dist/types/vue-ui-wheel.d.ts +46 -9
- package/dist/types/vue-ui-word-cloud.d.ts +73 -9
- package/dist/types/vue-ui-world.d.ts +68 -9
- package/dist/types/vue-ui-xy-canvas.d.ts +75 -9
- package/dist/types/vue-ui-xy.d.ts +108 -10
- package/dist/useAutoSizeLabelsInsideViewbox-De0rTecW.js +50 -0
- package/dist/useChartAccessibility-Do37qcw2.js +12 -0
- package/dist/useConfig-KnOLHtlJ.js +7419 -0
- package/dist/useFitSvgText-C-MEdAfe.js +63 -0
- package/dist/useNestedProp-CcxL1gUU.js +10 -0
- package/dist/useObjectBindings-Dc8Rf6Qy.js +189 -0
- package/dist/usePanZoom-B-4M_gmY.js +157 -0
- package/dist/usePrefersMotion-BywLbIko.js +15 -0
- package/dist/usePrinter-CMLF900n.js +49 -0
- package/dist/useResponsive-CrAInupd.js +19 -0
- package/dist/useStableElementSize-0I1IpHPl.js +77 -0
- package/dist/useSvgExport-Dtu973wa.js +755 -0
- package/dist/useTableResponsive-DrM1xqII.js +24 -0
- package/dist/useThemeCheck-rFK9Zlb_.js +24 -0
- package/dist/useTimeLabelCollider-Dm55Emzg.js +57 -0
- package/dist/useTimeLabels-C0x7zUXP.js +272 -0
- package/dist/useUserOptionState-CjPJPTg2.js +15 -0
- package/dist/utils.js +27 -44
- package/dist/vClickOutside-CbX_bC9A.js +13 -0
- package/dist/vue-data-ui-D1REqS_k.js +274 -0
- package/dist/vue-data-ui.js +76 -167
- package/dist/vue-ui-3d-bar-vO_kSCd6.js +1747 -0
- package/dist/vue-ui-accordion-Cf-jZELj.js +81 -0
- package/dist/vue-ui-age-pyramid-DHXhrP_3.js +1226 -0
- package/dist/vue-ui-annotator-B0o6czmF.js +2899 -0
- package/dist/vue-ui-bullet-C93-cf0H.js +700 -0
- package/dist/vue-ui-bump-C_Szk9AZ.js +1239 -0
- package/dist/vue-ui-candlestick-6JdMEJKO.js +1802 -0
- package/dist/vue-ui-carousel-table-CZ_HK0Iw.js +445 -0
- package/dist/vue-ui-chestnut-B8ixU585.js +2000 -0
- package/dist/vue-ui-chord-DC5sLapz.js +1381 -0
- package/dist/vue-ui-circle-pack-CsmSEwt3.js +1183 -0
- package/dist/vue-ui-cursor-B-QODIL3.js +283 -0
- package/dist/vue-ui-dag-C9LYfjS_.js +2899 -0
- package/dist/vue-ui-dashboard-D-f4ZaLi.js +503 -0
- package/dist/vue-ui-digits-CcB3odN7.js +209 -0
- package/dist/vue-ui-donut-DR0ngnZC.js +2396 -0
- package/dist/vue-ui-donut-evolution-BXpOscCe.js +1490 -0
- package/dist/vue-ui-dumbbell-CB_clJWA.js +1517 -0
- package/dist/vue-ui-flow-CUiOAEy1.js +1223 -0
- package/dist/vue-ui-funnel-BAlGDK0o.js +767 -0
- package/dist/vue-ui-galaxy-DbYNfSHb.js +1062 -0
- package/dist/vue-ui-gauge-Cie7jykM.js +910 -0
- package/dist/vue-ui-geo-Ce_gBRye.js +1504 -0
- package/dist/vue-ui-gizmo-B9POi_SN.js +225 -0
- package/dist/vue-ui-heatmap-DFfRSbnk.js +1556 -0
- package/dist/vue-ui-history-plot-DHp5WFgx.js +1551 -0
- package/dist/vue-ui-horizontal-bar-DI4yoARv.js +1669 -0
- package/dist/vue-ui-kpi-oUfso4UP.js +96 -0
- package/dist/vue-ui-mini-loader-aZMi1_uX.js +125 -0
- package/dist/vue-ui-molecule-D72kzel_.js +912 -0
- package/dist/vue-ui-mood-radar-Tw2ZFP7Y.js +1138 -0
- package/dist/vue-ui-nested-donuts-Bza1LczX.js +1472 -0
- package/dist/vue-ui-onion-BOuuib5d.js +1188 -0
- package/dist/vue-ui-parallel-coordinate-plot-BuQUq6-o.js +1413 -0
- package/dist/vue-ui-pattern-Bj-IPFr2.js +154 -0
- package/dist/vue-ui-pattern-seed-abRweCDE.js +61 -0
- package/dist/vue-ui-quadrant-zNFIXNt9.js +1966 -0
- package/dist/vue-ui-quick-chart-B1a8QVUn.js +2459 -0
- package/dist/vue-ui-radar-VFn-YP_2.js +1214 -0
- package/dist/vue-ui-rating-Dxgn21FA.js +343 -0
- package/dist/vue-ui-relation-circle-B0sZaCgX.js +914 -0
- package/dist/vue-ui-ridgeline-BsBAbg5V.js +1612 -0
- package/dist/vue-ui-rings-CDwUzMF-.js +1231 -0
- package/dist/vue-ui-scatter-Du_b-zM8.js +2380 -0
- package/dist/vue-ui-skeleton-BAq6J_6G.js +2556 -0
- package/dist/vue-ui-smiley-CoHvkS0c.js +356 -0
- package/dist/vue-ui-spark-trend-BmCcJ17C.js +438 -0
- package/dist/vue-ui-sparkbar-9z05IMx8.js +393 -0
- package/dist/vue-ui-sparkgauge-BlWri9DP.js +255 -0
- package/dist/vue-ui-sparkhistogram-CHZTt8d8.js +560 -0
- package/dist/vue-ui-sparkline-DirLW9Nd.js +1503 -0
- package/dist/vue-ui-sparkstackbar-Dk6cEI2o.js +660 -0
- package/dist/vue-ui-stackbar-DNIrGHkt.js +2235 -0
- package/dist/vue-ui-stackline-HoWn_ur2.js +2362 -0
- package/dist/vue-ui-strip-plot-Bi8u_fLr.js +1328 -0
- package/dist/vue-ui-table-XLjOOfdI.js +1338 -0
- package/dist/vue-ui-table-heatmap-DvnFiveI.js +334 -0
- package/dist/vue-ui-table-sparkline-CSZf8XxP.js +697 -0
- package/dist/vue-ui-thermometer-7eUO_7CP.js +753 -0
- package/dist/vue-ui-timer-DCbxsREb.js +439 -0
- package/dist/vue-ui-tiremarks-p_sfTufv.js +542 -0
- package/dist/vue-ui-treemap-BdZOW7TM.js +1575 -0
- package/dist/vue-ui-waffle-Bf9dWWCM.js +1350 -0
- package/dist/vue-ui-wheel-CZrIiB0K.js +875 -0
- package/dist/vue-ui-word-cloud-BeLjxoRe.js +1644 -0
- package/dist/vue-ui-world-D9ahzEQ2.js +14252 -0
- package/dist/vue-ui-xy-DrvbVuHO.js +4063 -0
- package/dist/vue-ui-xy-canvas-DU7vFrQr.js +1774 -0
- package/dist/vue_ui_3d_bar-CXKqO5Ej.js +185 -0
- package/dist/vue_ui_age_pyramid-BON8QI6X.js +301 -0
- package/dist/vue_ui_bullet-CE5sFT7u.js +186 -0
- package/dist/vue_ui_bump-frnXaXul.js +201 -0
- package/dist/vue_ui_candlestick-sY6UtOop.js +374 -0
- package/dist/vue_ui_chestnut-BiUZFv40.js +305 -0
- package/dist/vue_ui_chord-DpyR_b9A.js +275 -0
- package/dist/vue_ui_circle_pack-DBKz_Fi_.js +130 -0
- package/dist/vue_ui_dag-Ci_MOnvd.js +258 -0
- package/dist/vue_ui_donut-Cx2_BGcQ.js +358 -0
- package/dist/vue_ui_donut_evolution-CAJefrHs.js +717 -0
- package/dist/vue_ui_dumbbell-CClzAZTN.js +304 -0
- package/dist/vue_ui_flow-CCHO1Lo9.js +238 -0
- package/dist/vue_ui_funnel-h8q2mRpC.js +234 -0
- package/dist/vue_ui_galaxy-70vtkEBw.js +265 -0
- package/dist/vue_ui_gauge-C17CgfzN.js +178 -0
- package/dist/vue_ui_geo-C0UbQ0Lc.js +248 -0
- package/dist/vue_ui_heatmap-BqPP3J4M.js +319 -0
- package/dist/vue_ui_history_plot-C5nytDHh.js +413 -0
- package/dist/vue_ui_horizontal_bar-Bqxorkc_.js +341 -0
- package/dist/vue_ui_molecule-Dka4JBOp.js +231 -0
- package/dist/vue_ui_mood_radar-Dg4ijm53.js +281 -0
- package/dist/vue_ui_nested_donuts-BY9cOoHF.js +273 -0
- package/dist/vue_ui_onion-DTV9cup-.js +293 -0
- package/dist/vue_ui_parallel_coordinate_plot-CNWrDh96.js +278 -0
- package/dist/vue_ui_quadrant-3kjYvxpj.js +428 -0
- package/dist/vue_ui_quick_chart--VaYQuM4.js +139 -0
- package/dist/vue_ui_radar-Dxx9GJmj.js +306 -0
- package/dist/vue_ui_relation_circle-Cr0I2SoU.js +98 -0
- package/dist/vue_ui_ridgeline-CAtYca4b.js +767 -0
- package/dist/vue_ui_rings-DXC1VeX5.js +320 -0
- package/dist/vue_ui_scatter-D2S2j0ap.js +479 -0
- package/dist/vue_ui_spark_trend-BHMQ6_1p.js +82 -0
- package/dist/vue_ui_sparkbar-BR6hbuDE.js +64 -0
- package/dist/vue_ui_sparkgauge-xfPRHnMv.js +90 -0
- package/dist/vue_ui_sparkhistogram-CJRENZ1C.js +123 -0
- package/dist/vue_ui_sparkline-wgk7yO7E.js +151 -0
- package/dist/vue_ui_sparkstackbar-C5qZMmAl.js +175 -0
- package/dist/vue_ui_stackbar-BW_C3MXw.js +412 -0
- package/dist/vue_ui_stackline-DpI2LnjO.js +426 -0
- package/dist/vue_ui_strip_plot-8ZelqC5b.js +301 -0
- package/dist/vue_ui_table_heatmap-BGUjA0WA.js +80 -0
- package/dist/vue_ui_table_sparkline-i0Q-N_we.js +124 -0
- package/dist/vue_ui_thermometer-CuN7Gpez.js +123 -0
- package/dist/vue_ui_tiremarks-A6UHC0c3.js +122 -0
- package/dist/vue_ui_treemap-BQp06q-g.js +328 -0
- package/dist/vue_ui_vertical_bar-CJSD1FZS.js +247 -0
- package/dist/vue_ui_waffle-C_Ev4l7B.js +292 -0
- package/dist/vue_ui_wheel-DdkTPXJU.js +133 -0
- package/dist/vue_ui_word_cloud-B1PbsYPc.js +254 -0
- package/dist/vue_ui_xy-BYPqfYyx.js +482 -0
- package/dist/vue_ui_xy_canvas-CMHGNrLf.js +408 -0
- package/package.json +7 -7
- package/dist/A11yDataTable-BpmuNomI.js +0 -54
- package/dist/Arrow-dSvLFssU.js +0 -101
- package/dist/BaseDraggableDialog-Di8Hlru3.js +0 -249
- package/dist/BaseIcon-DX0hTWa-.js +0 -476
- package/dist/BaseLegendToggle-cMP8M2u0.js +0 -47
- package/dist/BaseScanner-C2j3TsSY.js +0 -36
- package/dist/BaseZoomControls-CVSC1-SU.js +0 -123
- package/dist/ColorPicker-bAxGcXK0.js +0 -271
- package/dist/DataTable-cMnb68Ik.js +0 -145
- package/dist/Legend-DGN5lY60.js +0 -104
- package/dist/NonSvgPenAndPaper-B6E0zEYe.js +0 -573
- package/dist/PackageVersion-BfrCAH6_.js +0 -10
- package/dist/PenAndPaper-CJDoB5H9.js +0 -527
- package/dist/RecursiveCircles-BE6GoMmo.js +0 -101
- package/dist/RecursiveLabels-BhQMS9Sm.js +0 -55
- package/dist/RecursiveLinks-BDwyYfP-.js +0 -83
- package/dist/Shape-CxJ5_Rre.js +0 -116
- package/dist/Slicer-D7UcO8sN.js +0 -1145
- package/dist/SlicerPreview-D_CgrN_7.js +0 -1580
- package/dist/SparkTooltip-D4bM-kfz.js +0 -68
- package/dist/Title-BbKoiBk2.js +0 -88
- package/dist/Tooltip-Cvt7Fi0Q.js +0 -299
- package/dist/UserOptions-DVduN6X7.js +0 -1474
- package/dist/_plugin-vue_export-helper-CHgC5LLL.js +0 -9
- package/dist/dom-to-png-DGvx6i5V.js +0 -262
- package/dist/exposedLib-sJvY1pST.js +0 -22
- package/dist/geoProjections-BFq2sOBY.js +0 -162
- package/dist/img-CjTQXS0U.js +0 -57
- package/dist/labelUtils-DX9oyq3C.js +0 -26
- package/dist/lib-DMzrGQHK.js +0 -2477
- package/dist/patternUtils-BINhU4Ky.js +0 -615
- package/dist/pdf-C4H4o1Cj.js +0 -88
- package/dist/useAutoSizeLabelsInsideViewbox-izlGDfwu.js +0 -55
- package/dist/useChartAccessibility-cp6XQtqi.js +0 -15
- package/dist/useConfig-CG4HT3wS.js +0 -7901
- package/dist/useFitSvgText-2crs6Fv5.js +0 -69
- package/dist/useNestedProp-DH0BEVVS.js +0 -13
- package/dist/useObjectBindings-Dixg-RIe.js +0 -228
- package/dist/usePanZoom-BbDhcKWf.js +0 -141
- package/dist/usePrefersMotion-Co0nj1eS.js +0 -17
- package/dist/usePrinter-C4t8DdQ-.js +0 -51
- package/dist/useResponsive-DfdjqQps.js +0 -195
- package/dist/useStableElementSize-C48ZVcZQ.js +0 -77
- package/dist/useSvgExport-BTG4hVPO.js +0 -870
- package/dist/useTableResponsive-BpfiEtzR.js +0 -26
- package/dist/useThemeCheck-C9Ccl7U9.js +0 -36
- package/dist/useTimeLabelCollider-D3JeJ6Ye.js +0 -86
- package/dist/useTimeLabels-Cv0tD9In.js +0 -307
- package/dist/useUserOptionState-B7Ej974k.js +0 -19
- package/dist/vClickOutside-C6WiFswA.js +0 -13
- package/dist/vue-data-ui-D1ZI7Y4l.js +0 -433
- package/dist/vue-ui-3d-bar-DEjKYzI5.js +0 -1824
- package/dist/vue-ui-accordion-DFtpH_16.js +0 -92
- package/dist/vue-ui-age-pyramid-LiC9hTjP.js +0 -1179
- package/dist/vue-ui-annotator-DrKnQoHf.js +0 -2991
- package/dist/vue-ui-bullet-DdxEINdq.js +0 -769
- package/dist/vue-ui-bump-CdgO1V7z.js +0 -1250
- package/dist/vue-ui-candlestick-DxJnPwto.js +0 -1775
- package/dist/vue-ui-carousel-table-CMefu5TI.js +0 -487
- package/dist/vue-ui-chestnut-BnGN72PO.js +0 -2001
- package/dist/vue-ui-chord-DWyar45U.js +0 -1457
- package/dist/vue-ui-circle-pack-CQ8vF2XH.js +0 -1076
- package/dist/vue-ui-cursor-HHOdkmyB.js +0 -260
- package/dist/vue-ui-dag-BDWPBElq.js +0 -3209
- package/dist/vue-ui-dashboard-Dg_I3X2a.js +0 -627
- package/dist/vue-ui-digits-CZmdir8V.js +0 -211
- package/dist/vue-ui-donut-BKegKHxj.js +0 -2608
- package/dist/vue-ui-donut-evolution-047dE4Lu.js +0 -1578
- package/dist/vue-ui-dumbbell-BL4ZMChj.js +0 -1552
- package/dist/vue-ui-flow-BAqtyunQ.js +0 -1279
- package/dist/vue-ui-funnel-Pl2sEOZs.js +0 -823
- package/dist/vue-ui-galaxy-CBF5Wsax.js +0 -1108
- package/dist/vue-ui-gauge-COV_S0Vp.js +0 -955
- package/dist/vue-ui-geo-CaPXElPf.js +0 -1510
- package/dist/vue-ui-gizmo-Csn7up96.js +0 -238
- package/dist/vue-ui-heatmap-Cpb0BYLa.js +0 -1694
- package/dist/vue-ui-history-plot-ZZEdzFCE.js +0 -1564
- package/dist/vue-ui-horizontal-bar-BonPYUZf.js +0 -1735
- package/dist/vue-ui-kpi-DoHhSsDK.js +0 -130
- package/dist/vue-ui-mini-loader-DOTBVCLE.js +0 -138
- package/dist/vue-ui-molecule-mVYnXouV.js +0 -945
- package/dist/vue-ui-mood-radar-DPvwnc3z.js +0 -1197
- package/dist/vue-ui-nested-donuts-C7E6TXrZ.js +0 -1702
- package/dist/vue-ui-onion-BGIlFhGB.js +0 -1207
- package/dist/vue-ui-parallel-coordinate-plot-C6G_A9ua.js +0 -1432
- package/dist/vue-ui-pattern-mXZW_pvA.js +0 -146
- package/dist/vue-ui-pattern-seed-BcNlxb2i.js +0 -36
- package/dist/vue-ui-quadrant-CVpIeYOB.js +0 -1918
- package/dist/vue-ui-quick-chart-CcV8qn9-.js +0 -2514
- package/dist/vue-ui-radar-G4AV1rBo.js +0 -1259
- package/dist/vue-ui-rating-CqPlP88P.js +0 -370
- package/dist/vue-ui-relation-circle-CkZ8oFVV.js +0 -856
- package/dist/vue-ui-ridgeline-CBTyYn6Q.js +0 -1737
- package/dist/vue-ui-rings-CSIOqFiP.js +0 -1256
- package/dist/vue-ui-scatter-AuC46ufT.js +0 -2345
- package/dist/vue-ui-skeleton-YD6rZjY_.js +0 -2475
- package/dist/vue-ui-smiley-CY0WFv2j.js +0 -391
- package/dist/vue-ui-spark-trend-D8KGIt-R.js +0 -423
- package/dist/vue-ui-sparkbar-BjWGJjzN.js +0 -424
- package/dist/vue-ui-sparkgauge-Dab5mss7.js +0 -285
- package/dist/vue-ui-sparkhistogram-D0rsmiPh.js +0 -559
- package/dist/vue-ui-sparkline-BCaauQuX.js +0 -1550
- package/dist/vue-ui-sparkstackbar-NT5yD6xA.js +0 -672
- package/dist/vue-ui-stackbar-ChBk_A1c.js +0 -2393
- package/dist/vue-ui-stackline-Cujamlze.js +0 -2490
- package/dist/vue-ui-strip-plot-CGBumG6I.js +0 -1293
- package/dist/vue-ui-table-BX2iMku4.js +0 -1726
- package/dist/vue-ui-table-heatmap-KXgXYVXm.js +0 -353
- package/dist/vue-ui-table-sparkline-C3NWnry0.js +0 -803
- package/dist/vue-ui-thermometer-DvdceZB1.js +0 -743
- package/dist/vue-ui-timer-XWAbvuAY.js +0 -504
- package/dist/vue-ui-tiremarks-B-YI1RlT.js +0 -578
- package/dist/vue-ui-treemap-AzorGfmd.js +0 -1757
- package/dist/vue-ui-waffle-CKtUvdTE.js +0 -1442
- package/dist/vue-ui-wheel-CnsLEArZ.js +0 -908
- package/dist/vue-ui-word-cloud-iAme2ihe.js +0 -1644
- package/dist/vue-ui-world-D5rrC9rw.js +0 -14452
- package/dist/vue-ui-xy-C_Q9chQe.js +0 -4468
- package/dist/vue-ui-xy-canvas-DG0299qE.js +0 -2107
- package/dist/vue_ui_3d_bar-CL0iX8Qi.js +0 -22
- package/dist/vue_ui_age_pyramid-8H8WSL7J.js +0 -22
- package/dist/vue_ui_bullet-Ckqieba5.js +0 -22
- package/dist/vue_ui_bump-CIht647H.js +0 -22
- package/dist/vue_ui_candlestick-BAMn-VGw.js +0 -22
- package/dist/vue_ui_chestnut-BloFvDuV.js +0 -22
- package/dist/vue_ui_chord-Bc1_ocwK.js +0 -22
- package/dist/vue_ui_circle_pack-CLmw8nHe.js +0 -22
- package/dist/vue_ui_dag-ZOwuDBZ8.js +0 -22
- package/dist/vue_ui_donut-CA4dgV8J.js +0 -22
- package/dist/vue_ui_donut_evolution-DFQU-rqE.js +0 -22
- package/dist/vue_ui_dumbbell-BCOHDiPk.js +0 -22
- package/dist/vue_ui_flow-BErINgox.js +0 -22
- package/dist/vue_ui_funnel-yuaMZ-yb.js +0 -22
- package/dist/vue_ui_galaxy-D95AN4FT.js +0 -22
- package/dist/vue_ui_gauge-BMEuRC4J.js +0 -22
- package/dist/vue_ui_geo--kg4VoVX.js +0 -22
- package/dist/vue_ui_heatmap-C9u993qE.js +0 -22
- package/dist/vue_ui_history_plot-BCKk1CrQ.js +0 -22
- package/dist/vue_ui_horizontal_bar-BEagrV0T.js +0 -22
- package/dist/vue_ui_molecule-BtvlINUh.js +0 -22
- package/dist/vue_ui_mood_radar-BUs6Fdn8.js +0 -22
- package/dist/vue_ui_nested_donuts-DvTrWT_C.js +0 -22
- package/dist/vue_ui_onion-CxWH9_OZ.js +0 -22
- package/dist/vue_ui_parallel_coordinate_plot-DH3cFJ3n.js +0 -22
- package/dist/vue_ui_quadrant-DjRs--Uz.js +0 -22
- package/dist/vue_ui_quick_chart-DMCjEjPe.js +0 -22
- package/dist/vue_ui_radar-DryGBOrz.js +0 -22
- package/dist/vue_ui_relation_circle-CCroen7h.js +0 -22
- package/dist/vue_ui_ridgeline-j4rVmpEp.js +0 -22
- package/dist/vue_ui_rings-CxOrekqA.js +0 -22
- package/dist/vue_ui_scatter-Bu1EAy9H.js +0 -22
- package/dist/vue_ui_spark_trend-3BjrSprO.js +0 -22
- package/dist/vue_ui_sparkbar-BsMzz5Um.js +0 -22
- package/dist/vue_ui_sparkgauge-KnjASOZs.js +0 -22
- package/dist/vue_ui_sparkhistogram-GBdzIVvS.js +0 -22
- package/dist/vue_ui_sparkline-CQ8DJVJx.js +0 -22
- package/dist/vue_ui_sparkstackbar-BSexvOuM.js +0 -22
- package/dist/vue_ui_stackbar-CuDC4O4b.js +0 -22
- package/dist/vue_ui_stackline-QTh-nuxE.js +0 -22
- package/dist/vue_ui_strip_plot-B9ypi_F3.js +0 -22
- package/dist/vue_ui_table_heatmap-CkvipPVy.js +0 -16
- package/dist/vue_ui_table_sparkline-yQdijcyJ.js +0 -22
- package/dist/vue_ui_thermometer-BTmjRBH8.js +0 -22
- package/dist/vue_ui_tiremarks-DBotWfi8.js +0 -22
- package/dist/vue_ui_treemap-D9-AIkT-.js +0 -22
- package/dist/vue_ui_vertical_bar-CELc39b8.js +0 -18
- package/dist/vue_ui_waffle-M2h-uJQ_.js +0 -22
- package/dist/vue_ui_wheel-LqBz3lv4.js +0 -22
- package/dist/vue_ui_word_cloud-mKAtBxHR.js +0 -22
- package/dist/vue_ui_xy-esktmpg-.js +0 -22
- package/dist/vue_ui_xy_canvas-6BBDSowT.js +0 -22
|
@@ -1,2107 +0,0 @@
|
|
|
1
|
-
import { defineAsyncComponent as ze, ref as c, computed as g, useSlots as vl, onMounted as Ja, toRefs as cl, watch as E, nextTick as Te, onBeforeUnmount as sa, watchEffect as ua, shallowRef as na, openBlock as I, createElementBlock as $e, normalizeClass as dl, normalizeStyle as ve, createElementVNode as W, toDisplayString as Ae, createBlock as q, createCommentVNode as N, unref as z, createSlots as Qa, withCtx as b, renderSlot as C, normalizeProps as j, guardReactiveProps as G, createVNode as et, Teleport as hl, resolveDynamicComponent as fl, mergeProps as ml, createTextVNode as at } from "vue";
|
|
2
|
-
import { j as yl, t as tt, m as gl, p as se, $ as pl, n as bl, D as ra, k as ce, l as de, s as lt, H as xl, a8 as Ll, J as Cl, o as kl, q as wl, T as ia, u as Ie, x as Sl, a0 as zl, a1 as Tl, U as ot } from "./lib-DMzrGQHK.js";
|
|
3
|
-
import { c as $l, a as va, d as Al, t as Il, u as Ml, l as T, r as _e, b as Q, p as st } from "./useResponsive-DfdjqQps.js";
|
|
4
|
-
import { u as Fl, a as ut, b as Pl } from "./useTimeLabels-Cv0tD9In.js";
|
|
5
|
-
import { u as Rl } from "./useConfig-CG4HT3wS.js";
|
|
6
|
-
import { u as Dl, B as Ol } from "./BaseScanner-C2j3TsSY.js";
|
|
7
|
-
import { u as El } from "./usePrinter-C4t8DdQ-.js";
|
|
8
|
-
import { u as Ue } from "./useNestedProp-DH0BEVVS.js";
|
|
9
|
-
import { u as Nl } from "./useThemeCheck-C9Ccl7U9.js";
|
|
10
|
-
import { u as Bl } from "./useUserOptionState-B7Ej974k.js";
|
|
11
|
-
import { u as Hl } from "./useChartAccessibility-cp6XQtqi.js";
|
|
12
|
-
import Wl from "./img-CjTQXS0U.js";
|
|
13
|
-
import Xl from "./vue_ui_xy_canvas-6BBDSowT.js";
|
|
14
|
-
import Vl from "./Legend-DGN5lY60.js";
|
|
15
|
-
import _l from "./Title-BbKoiBk2.js";
|
|
16
|
-
import Ul from "./BaseIcon-DX0hTWa-.js";
|
|
17
|
-
import Yl from "./vue-ui-accordion-DFtpH_16.js";
|
|
18
|
-
import { S as ql } from "./SlicerPreview-D_CgrN_7.js";
|
|
19
|
-
import { B as jl } from "./BaseLegendToggle-cMP8M2u0.js";
|
|
20
|
-
import { _ as Gl } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
21
|
-
const Zl = ["id"], Kl = ["id"], Jl = {
|
|
22
|
-
class: "sr-only",
|
|
23
|
-
"aria-live": "polite",
|
|
24
|
-
"aria-atomic": "true"
|
|
25
|
-
}, Ql = ["id"], eo = ["aria-label", "aria-describedby"], ao = {
|
|
26
|
-
key: 0,
|
|
27
|
-
style: { position: "absolute", top: "100%", left: "0", width: "100%" },
|
|
28
|
-
"data-dom-to-png-ignore": "",
|
|
29
|
-
"aria-hidden": "true"
|
|
30
|
-
}, to = ["id"], lo = ["onClick"], oo = {
|
|
31
|
-
key: 4,
|
|
32
|
-
class: "vue-data-ui-watermark"
|
|
33
|
-
}, so = ["innerHTML"], uo = {
|
|
34
|
-
__name: "vue-ui-xy-canvas",
|
|
35
|
-
props: {
|
|
36
|
-
dataset: {
|
|
37
|
-
type: Array,
|
|
38
|
-
default() {
|
|
39
|
-
return [];
|
|
40
|
-
}
|
|
41
|
-
},
|
|
42
|
-
config: {
|
|
43
|
-
type: Object,
|
|
44
|
-
default() {
|
|
45
|
-
return {};
|
|
46
|
-
}
|
|
47
|
-
},
|
|
48
|
-
selectedXIndex: {
|
|
49
|
-
type: Number,
|
|
50
|
-
default: void 0
|
|
51
|
-
}
|
|
52
|
-
},
|
|
53
|
-
emits: ["selectLegend", "selectX", "copyAlt"],
|
|
54
|
-
setup(ca, { expose: nt, emit: rt }) {
|
|
55
|
-
const it = ze(() => import("./Tooltip-Cvt7Fi0Q.js")), vt = ze(() => import("./DataTable-cMnb68Ik.js")), ct = ze(
|
|
56
|
-
() => import("./UserOptions-DVduN6X7.js")
|
|
57
|
-
), dt = ze(
|
|
58
|
-
() => import("./NonSvgPenAndPaper-B6E0zEYe.js")
|
|
59
|
-
), ht = ze(
|
|
60
|
-
() => import("./BaseDraggableDialog-Di8Hlru3.js")
|
|
61
|
-
), { vue_ui_xy_canvas: ft } = Rl(), { isThemeValid: mt, warnInvalidTheme: yt } = Nl(), D = ca, Z = c(yl()), K = c(null), ue = c(null), v = c(null), y = c(1), ee = c(1), he = c(!1), h = c(null), fe = c(""), Me = c(null), p = c([]), ne = c(1), B = c(!0), X = c(!0), Fe = c(null), da = c(0), me = c(!1), ha = c(null), fa = c(null), ae = c(null), ma = c(null), Ye = c(0), qe = c(0), je = c(0), V = c(null), ya = c(!1), ye = c(null), Ge = c(null), ge = c(!1), ga = c(!1), Pe = c(!1), $ = c(null), Ze = c(!1), Re = c(!1), Ke = c(!1), _ = c(null), pa = c({ x: 0, y: 0 }), U = g(
|
|
62
|
-
() => Array.isArray(Je.value) && Je.value.length > 0
|
|
63
|
-
), De = rt, gt = vl();
|
|
64
|
-
Ja(() => {
|
|
65
|
-
gt["chart-background"] && console.warn(
|
|
66
|
-
"VueUiXyCanvas does not support the #chart-background slot."
|
|
67
|
-
);
|
|
68
|
-
});
|
|
69
|
-
const a = c(ea()), pt = g(() => {
|
|
70
|
-
const e = a.value.style.chart.title.text || "XY chart", t = s.value.end - s.value.start, l = f.value.filter(
|
|
71
|
-
(u) => !p.value.includes(u.absoluteIndex)
|
|
72
|
-
).length;
|
|
73
|
-
return `${e}. ${l} series. ${t} visible data points.`;
|
|
74
|
-
}), bt = g(() => {
|
|
75
|
-
if (_.value === null) return "";
|
|
76
|
-
const e = _.value + s.value.start, t = a.value.style.chart.grid.x.timeLabels.values.slice(
|
|
77
|
-
s.value.start,
|
|
78
|
-
s.value.end
|
|
79
|
-
)[_.value] ? a.value.style.chart.tooltip.useDefaultTimeFormat ? w.value.slice(s.value.start, s.value.end)[_.value]?.text : Be.value[_.value]?.text : w.value[e]?.text ?? `Point ${e + 1}`, l = f.value.filter((u) => !p.value.includes(u.absoluteIndex)).map((u) => {
|
|
80
|
-
const n = u.series[_.value], i = n?.value ?? n ?? null;
|
|
81
|
-
return `${u.name}: ${i}`;
|
|
82
|
-
}).join(". ");
|
|
83
|
-
return `${t}. ${l}.`;
|
|
84
|
-
}), le = g(
|
|
85
|
-
() => a.value.userOptions.useCursorPointer
|
|
86
|
-
), xt = g(() => !!a.value.debug), Lt = g(() => tt({
|
|
87
|
-
defaultConfig: {
|
|
88
|
-
userOptions: { show: !1 },
|
|
89
|
-
table: { show: !1 },
|
|
90
|
-
style: {
|
|
91
|
-
chart: {
|
|
92
|
-
backgroundColor: "#99999930",
|
|
93
|
-
grid: {
|
|
94
|
-
x: {
|
|
95
|
-
axisColor: "#6A6A6A",
|
|
96
|
-
timeLabels: { show: !1 },
|
|
97
|
-
axisName: "",
|
|
98
|
-
horizontalLines: {
|
|
99
|
-
color: "#6A6A6A"
|
|
100
|
-
}
|
|
101
|
-
},
|
|
102
|
-
y: {
|
|
103
|
-
axisColor: "#6A6A6A",
|
|
104
|
-
axisLabels: { show: !1 },
|
|
105
|
-
axisName: "",
|
|
106
|
-
verticalLines: {
|
|
107
|
-
color: "#6A6A6A"
|
|
108
|
-
}
|
|
109
|
-
},
|
|
110
|
-
zeroLine: {
|
|
111
|
-
color: "#6A6A6A"
|
|
112
|
-
}
|
|
113
|
-
},
|
|
114
|
-
legend: {
|
|
115
|
-
backgroundColor: "#99999930"
|
|
116
|
-
},
|
|
117
|
-
paddingProportions: {
|
|
118
|
-
left: 0.05
|
|
119
|
-
},
|
|
120
|
-
scale: {
|
|
121
|
-
max: null,
|
|
122
|
-
min: null
|
|
123
|
-
},
|
|
124
|
-
zoom: {
|
|
125
|
-
endIndex: null,
|
|
126
|
-
startIndex: null
|
|
127
|
-
}
|
|
128
|
-
}
|
|
129
|
-
}
|
|
130
|
-
},
|
|
131
|
-
userConfig: a.value.skeletonConfig ?? {}
|
|
132
|
-
})), { loading: Oe, FINAL_DATASET: Je } = Dl({
|
|
133
|
-
...cl(D),
|
|
134
|
-
FINAL_CONFIG: a,
|
|
135
|
-
prepareConfig: ea,
|
|
136
|
-
skeletonDataset: D.config?.skeletonDataset ?? [
|
|
137
|
-
{
|
|
138
|
-
name: "",
|
|
139
|
-
series: [0, 1, 2, 3, 5, 8, 13, 21, 34, 55, 89, 134],
|
|
140
|
-
type: "line",
|
|
141
|
-
smooth: !0,
|
|
142
|
-
color: "#BABABA"
|
|
143
|
-
},
|
|
144
|
-
{
|
|
145
|
-
name: "",
|
|
146
|
-
series: [0, 0.5, 1, 1.5, 2.5, 4, 6.5, 10.5, 17, 27.5, 44.5, 67],
|
|
147
|
-
type: "bar",
|
|
148
|
-
color: "#AAAAAA"
|
|
149
|
-
}
|
|
150
|
-
],
|
|
151
|
-
skeletonConfig: tt({
|
|
152
|
-
defaultConfig: a.value,
|
|
153
|
-
userConfig: Lt.value
|
|
154
|
-
})
|
|
155
|
-
}), { userOptionsVisible: Qe, setUserOptionsVisibility: ba, keepUserOptionState: xa } = Bl({ config: a.value }), { svgRef: k } = Hl({
|
|
156
|
-
config: a.value.style.chart.title
|
|
157
|
-
});
|
|
158
|
-
function Ct() {
|
|
159
|
-
ba(!0);
|
|
160
|
-
}
|
|
161
|
-
function kt() {
|
|
162
|
-
ba(!1), De("selectX", { seriesIndex: null, datapoint: null }), h.value = null;
|
|
163
|
-
}
|
|
164
|
-
function ea() {
|
|
165
|
-
const e = Ue({
|
|
166
|
-
userConfig: D.config,
|
|
167
|
-
defaultConfig: ft
|
|
168
|
-
});
|
|
169
|
-
let t = {};
|
|
170
|
-
const l = e.theme;
|
|
171
|
-
if (l)
|
|
172
|
-
if (!mt.value(e))
|
|
173
|
-
yt(e), t = e;
|
|
174
|
-
else {
|
|
175
|
-
const u = Ue({
|
|
176
|
-
userConfig: Xl[l] || D.config,
|
|
177
|
-
defaultConfig: e
|
|
178
|
-
});
|
|
179
|
-
t = {
|
|
180
|
-
...Ue({
|
|
181
|
-
userConfig: D.config,
|
|
182
|
-
defaultConfig: u
|
|
183
|
-
}),
|
|
184
|
-
customPalette: e.customPalette.length ? e.customPalette : gl[l] || se
|
|
185
|
-
};
|
|
186
|
-
}
|
|
187
|
-
else
|
|
188
|
-
t = e;
|
|
189
|
-
return D.config && pl(D.config, "style.chart.grid.y.timeLabels") && (console.warn(
|
|
190
|
-
"VueUiXyCanvas: you are using the deprecated config.style.chart.grid.y.timeLabels. It is recommended to move this configuration to config.style.chart.grid.x.timeLabels."
|
|
191
|
-
), t.style.chart.grid.x.timeLabels = Ue({
|
|
192
|
-
defaultConfig: t.style.chart.grid.x.timeLabels,
|
|
193
|
-
userConfig: D.config.style.chart.grid.y.timeLabels
|
|
194
|
-
})), t;
|
|
195
|
-
}
|
|
196
|
-
E(
|
|
197
|
-
() => D.config,
|
|
198
|
-
(e) => {
|
|
199
|
-
Oe.value || (a.value = ea()), Qe.value = !a.value.userOptions.showOnChartHover, Va(), Ye.value += 1, qe.value += 1, je.value += 1, d.value.showTable = a.value.table.show, d.value.showDataLabels = a.value.style.chart.dataLabels.show, d.value.stacked = a.value.style.chart.stacked, d.value.showTooltip = a.value.style.chart.tooltip.show;
|
|
200
|
-
},
|
|
201
|
-
{ deep: !0 }
|
|
202
|
-
), E(
|
|
203
|
-
() => D.dataset,
|
|
204
|
-
async (e) => {
|
|
205
|
-
!Array.isArray(e) || e.length === 0 || (await Te(), k.value && !v.value && (v.value = k.value.getContext("2d", {
|
|
206
|
-
willReadFrequently: !0
|
|
207
|
-
})), B.value = !0, X.value = !0, await xe(), Ne(), Ye.value += 1, qe.value += 1, je.value += 1);
|
|
208
|
-
},
|
|
209
|
-
{ deep: !0 }
|
|
210
|
-
);
|
|
211
|
-
const La = c(a.value.style.chart.aspectRatio), { isPrinting: Ca, isImaging: ka, generatePdf: wa, generateImage: Sa } = El({
|
|
212
|
-
elementId: `xy_canvas_${Z.value}`,
|
|
213
|
-
fileName: a.value.style.chart.title.text || "vue-ui-xy-canvas",
|
|
214
|
-
options: a.value.userOptions.print
|
|
215
|
-
}), d = c({
|
|
216
|
-
showTable: a.value.table.show,
|
|
217
|
-
showDataLabels: a.value.style.chart.dataLabels.show,
|
|
218
|
-
stacked: a.value.style.chart.stacked,
|
|
219
|
-
showTooltip: a.value.style.chart.tooltip.show
|
|
220
|
-
});
|
|
221
|
-
function za(e) {
|
|
222
|
-
me.value = e, da.value += 1;
|
|
223
|
-
}
|
|
224
|
-
const Ta = g(() => bl(a.value.customPalette)), aa = g(
|
|
225
|
-
() => p.value.length === M.value.length
|
|
226
|
-
), O = g(() => M.value ? Math.max(
|
|
227
|
-
...M.value.filter(
|
|
228
|
-
(e, t) => aa.value ? !0 : !p.value.includes(e.absoluteIndex)
|
|
229
|
-
).map((e) => e.series.length)
|
|
230
|
-
) : 0);
|
|
231
|
-
function wt(e) {
|
|
232
|
-
$.value = e, J();
|
|
233
|
-
}
|
|
234
|
-
const $a = c(0), pe = c(0);
|
|
235
|
-
function St() {
|
|
236
|
-
if (!v.value || !a.value.style.chart.grid.x.timeLabels.show) return 0;
|
|
237
|
-
const e = w.value || [], t = s.value.start ?? 0, l = s.value.end ?? 0;
|
|
238
|
-
if (!Math.max(0, l - t)) return 0;
|
|
239
|
-
const n = Math.round(
|
|
240
|
-
y.value / 40 * a.value.style.chart.grid.x.timeLabels.fontSizeRatio
|
|
241
|
-
), i = `${a.value.style.chart.grid.x.timeLabels.bold ? "bold " : ""}${n}px ${a.value.style.fontFamily}`;
|
|
242
|
-
v.value.save(), v.value.font = i;
|
|
243
|
-
let r = 0;
|
|
244
|
-
for (let Y = t; Y < l; Y += 1) {
|
|
245
|
-
const H = e[Y]?.text ?? `${Y + 1}`, Ve = v.value.measureText(String(H));
|
|
246
|
-
Ve.width > r && (r = Ve.width);
|
|
247
|
-
}
|
|
248
|
-
v.value.restore();
|
|
249
|
-
const L = (a.value.style.chart.grid.x.timeLabels.rotation || 0) * Math.PI / 180, x = n, S = Math.abs(Math.sin(L)) * r + Math.abs(Math.cos(L)) * x, R = a.value.style.chart.grid.x.timeLabels.offsetY || 1, oe = y.value / R;
|
|
250
|
-
return Math.max(0, oe + S + 4);
|
|
251
|
-
}
|
|
252
|
-
function zt() {
|
|
253
|
-
$a.value = St();
|
|
254
|
-
}
|
|
255
|
-
function Tt() {
|
|
256
|
-
pe.value && cancelAnimationFrame(pe.value), pe.value = requestAnimationFrame(() => {
|
|
257
|
-
requestAnimationFrame(() => {
|
|
258
|
-
zt();
|
|
259
|
-
});
|
|
260
|
-
});
|
|
261
|
-
}
|
|
262
|
-
sa(() => {
|
|
263
|
-
pe.value && cancelAnimationFrame(pe.value);
|
|
264
|
-
});
|
|
265
|
-
const o = g(() => {
|
|
266
|
-
const e = y.value - y.value * (a.value.style.chart.paddingProportions.left + a.value.style.chart.paddingProportions.right), t = ee.value * a.value.style.chart.paddingProportions.top, l = ee.value * a.value.style.chart.paddingProportions.bottom, u = $a.value, n = ee.value - l - u, i = ee.value - (t + l) - u;
|
|
267
|
-
return {
|
|
268
|
-
canvasWidth: y.value,
|
|
269
|
-
canvasHeight: ee.value,
|
|
270
|
-
left: y.value * a.value.style.chart.paddingProportions.left,
|
|
271
|
-
top: t,
|
|
272
|
-
right: y.value - y.value * a.value.style.chart.paddingProportions.right,
|
|
273
|
-
bottom: n,
|
|
274
|
-
width: e,
|
|
275
|
-
height: i,
|
|
276
|
-
slot: e / (s.value.end - s.value.start)
|
|
277
|
-
};
|
|
278
|
-
});
|
|
279
|
-
function Aa(e, t) {
|
|
280
|
-
return e / t;
|
|
281
|
-
}
|
|
282
|
-
function $t({
|
|
283
|
-
hasAutoScale: e,
|
|
284
|
-
series: t,
|
|
285
|
-
min: l,
|
|
286
|
-
max: u,
|
|
287
|
-
scale: n,
|
|
288
|
-
yOffset: i,
|
|
289
|
-
individualHeight: r,
|
|
290
|
-
stackIndex: m = null
|
|
291
|
-
}) {
|
|
292
|
-
return t.map((L, x) => {
|
|
293
|
-
const S = n.min < 0 ? Math.abs(n.min) : 0, R = Aa(L + S, S + n.max);
|
|
294
|
-
let oe, Y;
|
|
295
|
-
e && (oe = n.min, Y = Aa(
|
|
296
|
-
L - oe,
|
|
297
|
-
n.max - oe
|
|
298
|
-
));
|
|
299
|
-
let H = 0;
|
|
300
|
-
return m === null ? H = o.value.bottom - o.value.height * (e ? Y : R) : H = o.value.bottom - i - r * (e ? Y : R), {
|
|
301
|
-
x: o.value.left + o.value.slot * x + o.value.slot / 2,
|
|
302
|
-
y: H,
|
|
303
|
-
value: L
|
|
304
|
-
};
|
|
305
|
-
});
|
|
306
|
-
}
|
|
307
|
-
const A = g(() => {
|
|
308
|
-
const e = a.value.style.chart.scale.min !== null ? a.value.style.chart.scale.min : Math.min(
|
|
309
|
-
...M.value.filter(
|
|
310
|
-
(r, m) => !p.value.includes(r.absoluteIndex)
|
|
311
|
-
).flatMap(
|
|
312
|
-
(r) => r.series.slice(s.value.start, s.value.end)
|
|
313
|
-
)
|
|
314
|
-
), t = a.value.style.chart.scale.max !== null ? a.value.style.chart.scale.max : Math.max(
|
|
315
|
-
...M.value.filter(
|
|
316
|
-
(r, m) => !p.value.includes(r.absoluteIndex)
|
|
317
|
-
).flatMap(
|
|
318
|
-
(r) => r.series.slice(s.value.start, s.value.end)
|
|
319
|
-
)
|
|
320
|
-
), l = ra(
|
|
321
|
-
e < 0 ? e : 0,
|
|
322
|
-
t === e ? e + 1 < 0 ? 0 : e + 1 : t < 0 ? 0 : t,
|
|
323
|
-
a.value.style.chart.scale.ticks
|
|
324
|
-
), u = l.min < 0 ? Math.abs(l.min) : 0, n = o.value.bottom - o.value.height * (u / (l.max + u)), i = l.ticks.map((r) => ({
|
|
325
|
-
y: o.value.bottom - o.value.height * ((r + u) / (l.max + u)),
|
|
326
|
-
x: o.value.left - 8,
|
|
327
|
-
value: r
|
|
328
|
-
}));
|
|
329
|
-
return {
|
|
330
|
-
absoluteMin: u,
|
|
331
|
-
max: t,
|
|
332
|
-
min: e,
|
|
333
|
-
scale: l,
|
|
334
|
-
yLabels: i,
|
|
335
|
-
zero: n
|
|
336
|
-
};
|
|
337
|
-
}), Ia = g(() => f.value.map((e) => `
|
|
338
|
-
<div style="display:flex;flex-direction:row;gap:6px;align-items:center;">
|
|
339
|
-
<svg viewBox="0 0 10 10" height="12" width="12">
|
|
340
|
-
<circle cx="5" cy="5" r="5" fill="${e.color}"/>
|
|
341
|
-
</svg>
|
|
342
|
-
<span>${e.name ? e.name + ": " : ""}</span>
|
|
343
|
-
<span>${ce(
|
|
344
|
-
a.value.style.chart.dataLabels.formatter,
|
|
345
|
-
e.series[h.value] ?? "-",
|
|
346
|
-
de({
|
|
347
|
-
p: e.prefix || "",
|
|
348
|
-
v: e.series[h.value] ?? "-",
|
|
349
|
-
s: e.suffix || "",
|
|
350
|
-
r: e.rounding || 0
|
|
351
|
-
}),
|
|
352
|
-
{ datapoint: e, seriesIndex: h.value }
|
|
353
|
-
)}</span>
|
|
354
|
-
</div>
|
|
355
|
-
`)), Ee = g(() => a.value.style.chart.line.cutNullValues), M = g(() => Je.value.map((e, t) => ({
|
|
356
|
-
...e,
|
|
357
|
-
series: xl({
|
|
358
|
-
data: Ll(e.series, [], Ee.value),
|
|
359
|
-
threshold: a.value.downsample.threshold
|
|
360
|
-
}),
|
|
361
|
-
absoluteIndex: t,
|
|
362
|
-
color: lt(
|
|
363
|
-
e.color || Ta.value[t] || se[t] || se[t % se.length]
|
|
364
|
-
)
|
|
365
|
-
}))), At = g(() => {
|
|
366
|
-
if (!a.value.style.chart.zoom.minimap.show) return [];
|
|
367
|
-
const e = M.value.filter(
|
|
368
|
-
(n) => !p.value.includes(n.absoluteIndex)
|
|
369
|
-
), t = Math.max(
|
|
370
|
-
...e.map((n) => n.series.length)
|
|
371
|
-
), l = [];
|
|
372
|
-
for (let n = 0; n < t; n += 1)
|
|
373
|
-
l.push(
|
|
374
|
-
e.map((i) => i.series[n] || 0).reduce((i, r) => (i || 0) + (r || 0), 0)
|
|
375
|
-
);
|
|
376
|
-
const u = Math.min(...l);
|
|
377
|
-
return l.map((n) => n + (u < 0 ? Math.abs(u) : 0));
|
|
378
|
-
}), It = g(() => a.value.style.chart.zoom.minimap.show ? M.value.map((t) => ({
|
|
379
|
-
...t,
|
|
380
|
-
isVisible: !p.value.includes(t.absoluteIndex)
|
|
381
|
-
})) : []);
|
|
382
|
-
E(O, (e) => {
|
|
383
|
-
e && xe();
|
|
384
|
-
});
|
|
385
|
-
const f = g(() => Cl(
|
|
386
|
-
M.value.filter(
|
|
387
|
-
(e, t) => !p.value.includes(e.absoluteIndex)
|
|
388
|
-
)
|
|
389
|
-
).map((e, t) => ({
|
|
390
|
-
...e,
|
|
391
|
-
series: e.series.slice(s.value.start, s.value.end)
|
|
392
|
-
})).map((e, t) => {
|
|
393
|
-
let l = [null, void 0].includes(e.scaleMin) ? Math.min(...e.series) || 0 : e.scaleMin, u = [null, void 0].includes(e.scaleMax) ? Math.max(...e.series) || 1 : e.scaleMax;
|
|
394
|
-
l === u && (l = l >= 0 ? u - 1 : l, u = u >= 0 ? u : l + 1), e.series.filter((H) => ![null, void 0].includes(H)).map((H) => (H - l) / (u - l));
|
|
395
|
-
const n = {
|
|
396
|
-
valueMin: l,
|
|
397
|
-
valueMax: u
|
|
398
|
-
}, i = e.scaleSteps || a.value.style.chart.scale.ticks;
|
|
399
|
-
let r;
|
|
400
|
-
e.autoScaling ? r = ra(
|
|
401
|
-
n.valueMin,
|
|
402
|
-
n.valueMax,
|
|
403
|
-
i
|
|
404
|
-
) : r = ra(
|
|
405
|
-
n.valueMin < 0 ? n.valueMin : 0,
|
|
406
|
-
n.valueMax <= 0 ? 0 : n.valueMax,
|
|
407
|
-
i
|
|
408
|
-
);
|
|
409
|
-
const m = d.value.stacked ? o.value.height * (1 - e.cumulatedStackRatio) : 0, L = d.value.stacked ? o.value.height / a.value.style.chart.stackGap : 0, x = d.value.stacked ? o.value.height * e.stackRatio - L : o.value.height, S = r.min < 0 ? Math.abs(r.min) : 0;
|
|
410
|
-
let R;
|
|
411
|
-
e.autoScaling && d.value.stacked && u <= 0 ? R = o.value.bottom - m - x : R = o.value.bottom - m - x * (S / (r.max + S));
|
|
412
|
-
const oe = r.ticks.map((H, Ve) => ({
|
|
413
|
-
y: o.value.bottom - m - x * (Ve / (r.ticks.length - 1)),
|
|
414
|
-
x: o.value.left - 8,
|
|
415
|
-
value: H
|
|
416
|
-
})), Y = $t({
|
|
417
|
-
hasAutoScale: d.value.stacked && e.autoScaling,
|
|
418
|
-
series: e.series,
|
|
419
|
-
min: d.value.stacked ? l : A.value.min,
|
|
420
|
-
max: d.value.stacked ? u : A.value.max,
|
|
421
|
-
scale: d.value.stacked ? r : A.value.scale,
|
|
422
|
-
yOffset: m,
|
|
423
|
-
individualHeight: x,
|
|
424
|
-
stackIndex: d.value.stacked ? t : null
|
|
425
|
-
});
|
|
426
|
-
return {
|
|
427
|
-
...e,
|
|
428
|
-
coordinatesLine: Y,
|
|
429
|
-
min: l,
|
|
430
|
-
max: u,
|
|
431
|
-
localScale: r,
|
|
432
|
-
localZero: R,
|
|
433
|
-
localMin: S,
|
|
434
|
-
localYLabels: oe,
|
|
435
|
-
yOffset: m,
|
|
436
|
-
individualHeight: x
|
|
437
|
-
};
|
|
438
|
-
})), s = c({
|
|
439
|
-
start: 0,
|
|
440
|
-
end: O.value
|
|
441
|
-
}), F = c({ start: 0, end: O.value }), be = c(null);
|
|
442
|
-
function Mt() {
|
|
443
|
-
return new Promise(
|
|
444
|
-
(e) => requestAnimationFrame(() => requestAnimationFrame(() => e()))
|
|
445
|
-
);
|
|
446
|
-
}
|
|
447
|
-
sa(() => {
|
|
448
|
-
be.value && cancelAnimationFrame(be.value);
|
|
449
|
-
});
|
|
450
|
-
async function xe() {
|
|
451
|
-
Fa(), await Te(), be.value && cancelAnimationFrame(be.value), be.value = requestAnimationFrame(async () => {
|
|
452
|
-
await Mt(), Fa();
|
|
453
|
-
});
|
|
454
|
-
}
|
|
455
|
-
const Ft = g(() => a.value.style.chart.zoom.preview.enable && (F.value.start !== s.value.start || F.value.end !== s.value.end));
|
|
456
|
-
function Ma(e, t) {
|
|
457
|
-
F.value[e] = t;
|
|
458
|
-
}
|
|
459
|
-
async function Fa() {
|
|
460
|
-
if (!ge.value) {
|
|
461
|
-
ge.value = !0;
|
|
462
|
-
try {
|
|
463
|
-
const { startIndex: e, endIndex: t } = a.value.style.chart.zoom, l = Math.max(...M.value.map((i) => i.series.length)), u = e ?? 0, n = t != null ? Math.min(Pa(t + 1), l) : l;
|
|
464
|
-
Pe.value = !0, s.value.start = u, s.value.end = n, F.value.start = u, F.value.end = n, ta(), ga.value = !0, await Te(), ae.value && (ae.value.setStartValue(s.value.start), ae.value.setEndValue(s.value.end));
|
|
465
|
-
} finally {
|
|
466
|
-
queueMicrotask(() => {
|
|
467
|
-
Pe.value = !1;
|
|
468
|
-
}), ge.value = !1;
|
|
469
|
-
}
|
|
470
|
-
}
|
|
471
|
-
}
|
|
472
|
-
function Pt(e) {
|
|
473
|
-
ge.value || Pe.value || e !== s.value.start && (s.value.start = e, F.value.start = e, ta());
|
|
474
|
-
}
|
|
475
|
-
function Rt(e) {
|
|
476
|
-
if (ge.value || Pe.value) return;
|
|
477
|
-
const t = Pa(e);
|
|
478
|
-
t !== s.value.end && (s.value.end = t, F.value.end = t, ta());
|
|
479
|
-
}
|
|
480
|
-
function Pa(e) {
|
|
481
|
-
const t = O.value;
|
|
482
|
-
return e > t ? t : e < 0 || e < s.value.start ? a.value.style.chart.zoom.startIndex !== null ? a.value.style.chart.zoom.startIndex + 1 : 1 : e;
|
|
483
|
-
}
|
|
484
|
-
function ta() {
|
|
485
|
-
const e = Math.max(
|
|
486
|
-
1,
|
|
487
|
-
Math.max(...M.value.map((u) => u.series.length))
|
|
488
|
-
);
|
|
489
|
-
let t = Math.max(0, Math.min(s.value.start ?? 0, e - 1)), l = Math.max(t + 1, Math.min(s.value.end ?? e, e));
|
|
490
|
-
(!Number.isFinite(t) || !Number.isFinite(l) || l <= t) && (t = 0, l = e), s.value = { start: t, end: l }, F.value.start = t, F.value.end = l, ae.value && (ae.value.setStartValue(t), ae.value.setEndValue(l));
|
|
491
|
-
}
|
|
492
|
-
const Dt = g(() => f.value.filter((e) => ["line", "plot", void 0].includes(e.type))), P = g(() => f.value.filter((e) => e.type === "bar"));
|
|
493
|
-
function Ne() {
|
|
494
|
-
if (!k.value || !ue.value) return;
|
|
495
|
-
const e = ue.value.offsetWidth, t = ue.value.offsetHeight;
|
|
496
|
-
k.value.width = e * ne.value * 2, k.value.height = t * ne.value * 2, y.value = e * ne.value * 2, ee.value = t * ne.value * 2, v.value?.scale(ne.value, ne.value), J();
|
|
497
|
-
}
|
|
498
|
-
E(U, async (e) => {
|
|
499
|
-
if (!e) {
|
|
500
|
-
Fe.value = null, he.value = !1, h.value = null, V.value = null;
|
|
501
|
-
return;
|
|
502
|
-
}
|
|
503
|
-
await Te(), k.value && !v.value && (v.value = k.value.getContext("2d", { willReadFrequently: !0 })), B.value = !0, X.value = !0, await xe(), Ne(), J();
|
|
504
|
-
});
|
|
505
|
-
function Ot() {
|
|
506
|
-
if (v.value && (v.value.clearRect(0, 0, 1e4, 1e4), v.value.fillStyle = a.value.style.chart.backgroundColor, v.value.fillRect(
|
|
507
|
-
0,
|
|
508
|
-
0,
|
|
509
|
-
o.value.canvasWidth,
|
|
510
|
-
o.value.canvasHeight
|
|
511
|
-
), !!U.value)) {
|
|
512
|
-
if (d.value.stacked)
|
|
513
|
-
a.value.style.chart.grid.y.verticalLines.show && s.value.end - s.value.start < a.value.style.chart.grid.y.verticalLines.hideUnderXLength ? f.value.forEach((e) => {
|
|
514
|
-
for (let t = 0; t < s.value.end - s.value.start + 1; t += 1)
|
|
515
|
-
T(
|
|
516
|
-
v.value,
|
|
517
|
-
[
|
|
518
|
-
{
|
|
519
|
-
x: o.value.left + o.value.slot * t,
|
|
520
|
-
y: o.value.bottom - e.yOffset - e.individualHeight
|
|
521
|
-
},
|
|
522
|
-
{
|
|
523
|
-
x: o.value.left + o.value.slot * t,
|
|
524
|
-
y: o.value.bottom - e.yOffset
|
|
525
|
-
}
|
|
526
|
-
],
|
|
527
|
-
{
|
|
528
|
-
color: a.value.style.chart.grid.y.verticalLines.color
|
|
529
|
-
}
|
|
530
|
-
);
|
|
531
|
-
}) : a.value.style.chart.grid.y.verticalLines.show && s.value.end - s.value.start >= a.value.style.chart.grid.y.verticalLines.hideUnderXLength && f.value.forEach((e) => {
|
|
532
|
-
for (let t = s.value.start; t < s.value.end; t += 1)
|
|
533
|
-
t % Math.floor(
|
|
534
|
-
(s.value.end - s.value.start) / a.value.style.chart.grid.x.timeLabels.modulo
|
|
535
|
-
) === 0 && T(
|
|
536
|
-
v.value,
|
|
537
|
-
[
|
|
538
|
-
{
|
|
539
|
-
x: o.value.left + o.value.slot * (t - s.value.start) + o.value.slot / 2,
|
|
540
|
-
y: o.value.bottom - e.yOffset - e.individualHeight
|
|
541
|
-
},
|
|
542
|
-
{
|
|
543
|
-
x: o.value.left + o.value.slot * (t - s.value.start) + o.value.slot / 2,
|
|
544
|
-
y: o.value.bottom - e.yOffset
|
|
545
|
-
}
|
|
546
|
-
],
|
|
547
|
-
{
|
|
548
|
-
color: a.value.style.chart.grid.y.verticalLines.color
|
|
549
|
-
}
|
|
550
|
-
);
|
|
551
|
-
}), a.value.style.chart.grid.x.horizontalLines.show && (a.value.style.chart.grid.x.horizontalLines.alternate ? f.value.forEach((e) => {
|
|
552
|
-
e.localYLabels.forEach((t, l) => {
|
|
553
|
-
l < e.localYLabels.length - 1 && _e(
|
|
554
|
-
v.value,
|
|
555
|
-
[
|
|
556
|
-
{ x: o.value.left, y: t.y },
|
|
557
|
-
{ x: o.value.right, y: t.y },
|
|
558
|
-
{
|
|
559
|
-
x: o.value.right,
|
|
560
|
-
y: e.localYLabels[l + 1].y
|
|
561
|
-
},
|
|
562
|
-
{
|
|
563
|
-
x: o.value.left,
|
|
564
|
-
y: e.localYLabels[l + 1].y
|
|
565
|
-
}
|
|
566
|
-
],
|
|
567
|
-
{
|
|
568
|
-
fillColor: l % 2 === 0 ? "transparent" : Ie(
|
|
569
|
-
a.value.style.chart.grid.x.horizontalLines.color,
|
|
570
|
-
a.value.style.chart.grid.x.horizontalLines.opacity
|
|
571
|
-
),
|
|
572
|
-
strokeColor: "transparent"
|
|
573
|
-
}
|
|
574
|
-
);
|
|
575
|
-
});
|
|
576
|
-
}) : f.value.forEach((e) => {
|
|
577
|
-
e.localYLabels.slice(s.value.start, s.value.end).forEach((t) => {
|
|
578
|
-
T(
|
|
579
|
-
v.value,
|
|
580
|
-
[
|
|
581
|
-
{ x: o.value.left, y: t.y },
|
|
582
|
-
{ x: o.value.right, y: t.y }
|
|
583
|
-
],
|
|
584
|
-
{
|
|
585
|
-
color: a.value.style.chart.grid.x.horizontalLines.color
|
|
586
|
-
}
|
|
587
|
-
);
|
|
588
|
-
});
|
|
589
|
-
})), a.value.style.chart.grid.zeroLine.show && f.value.forEach((e) => {
|
|
590
|
-
T(
|
|
591
|
-
v.value,
|
|
592
|
-
[
|
|
593
|
-
{ x: o.value.left, y: e.localZero },
|
|
594
|
-
{ x: o.value.right, y: e.localZero }
|
|
595
|
-
],
|
|
596
|
-
{
|
|
597
|
-
color: a.value.style.chart.grid.zeroLine.color,
|
|
598
|
-
lineDash: a.value.style.chart.grid.zeroLine.dashed ? [10, 10] : [0, 0]
|
|
599
|
-
}
|
|
600
|
-
);
|
|
601
|
-
}), a.value.style.chart.grid.y.axisLabels.show && f.value.forEach((e) => {
|
|
602
|
-
T(
|
|
603
|
-
v.value,
|
|
604
|
-
[
|
|
605
|
-
{
|
|
606
|
-
x: o.value.left,
|
|
607
|
-
y: o.value.bottom - e.yOffset
|
|
608
|
-
},
|
|
609
|
-
{
|
|
610
|
-
x: o.value.left,
|
|
611
|
-
y: o.value.bottom - e.yOffset - e.individualHeight
|
|
612
|
-
}
|
|
613
|
-
],
|
|
614
|
-
{
|
|
615
|
-
color: e.color
|
|
616
|
-
}
|
|
617
|
-
), T(
|
|
618
|
-
v.value,
|
|
619
|
-
[
|
|
620
|
-
{
|
|
621
|
-
x: o.value.right,
|
|
622
|
-
y: o.value.bottom - e.yOffset
|
|
623
|
-
},
|
|
624
|
-
{
|
|
625
|
-
x: o.value.right,
|
|
626
|
-
y: o.value.bottom - e.yOffset - e.individualHeight
|
|
627
|
-
}
|
|
628
|
-
],
|
|
629
|
-
{
|
|
630
|
-
color: e.color
|
|
631
|
-
}
|
|
632
|
-
);
|
|
633
|
-
}), f.value.forEach((e) => {
|
|
634
|
-
Q(
|
|
635
|
-
v.value,
|
|
636
|
-
e.name,
|
|
637
|
-
y.value / 35,
|
|
638
|
-
o.value.bottom - e.yOffset - e.individualHeight / 2,
|
|
639
|
-
{
|
|
640
|
-
align: "center",
|
|
641
|
-
rotation: -90,
|
|
642
|
-
color: e.color,
|
|
643
|
-
font: `${Math.round(y.value / 40 * a.value.style.chart.grid.y.axisLabels.fontSizeRatio)}px ${a.value.style.fontFamily}`
|
|
644
|
-
}
|
|
645
|
-
);
|
|
646
|
-
});
|
|
647
|
-
else {
|
|
648
|
-
if (a.value.style.chart.grid.y.verticalLines.show && s.value.end - s.value.start < a.value.style.chart.grid.y.verticalLines.hideUnderXLength)
|
|
649
|
-
for (let e = 0; e < s.value.end - s.value.start + 1; e += 1)
|
|
650
|
-
T(
|
|
651
|
-
v.value,
|
|
652
|
-
[
|
|
653
|
-
{
|
|
654
|
-
x: o.value.left + o.value.slot * e,
|
|
655
|
-
y: o.value.top
|
|
656
|
-
},
|
|
657
|
-
{
|
|
658
|
-
x: o.value.left + o.value.slot * e,
|
|
659
|
-
y: o.value.bottom
|
|
660
|
-
}
|
|
661
|
-
],
|
|
662
|
-
{
|
|
663
|
-
color: a.value.style.chart.grid.y.verticalLines.color
|
|
664
|
-
}
|
|
665
|
-
);
|
|
666
|
-
else if (a.value.style.chart.grid.y.verticalLines.show && s.value.end - s.value.start >= a.value.style.chart.grid.y.verticalLines.hideUnderXLength)
|
|
667
|
-
for (let e = s.value.start; e < s.value.end; e += 1)
|
|
668
|
-
e % Math.floor(
|
|
669
|
-
(s.value.end - s.value.start) / a.value.style.chart.grid.x.timeLabels.modulo
|
|
670
|
-
) === 0 && T(
|
|
671
|
-
v.value,
|
|
672
|
-
[
|
|
673
|
-
{
|
|
674
|
-
x: o.value.left + o.value.slot * (e - s.value.start) + o.value.slot / 2,
|
|
675
|
-
y: o.value.top
|
|
676
|
-
},
|
|
677
|
-
{
|
|
678
|
-
x: o.value.left + o.value.slot * (e - s.value.start) + o.value.slot / 2,
|
|
679
|
-
y: o.value.bottom
|
|
680
|
-
}
|
|
681
|
-
],
|
|
682
|
-
{
|
|
683
|
-
color: a.value.style.chart.grid.y.verticalLines.color
|
|
684
|
-
}
|
|
685
|
-
);
|
|
686
|
-
a.value.style.chart.grid.x.horizontalLines.show && (a.value.style.chart.grid.x.horizontalLines.alternate ? A.value.yLabels.forEach((e, t) => {
|
|
687
|
-
t < A.value.yLabels.length - 1 && _e(
|
|
688
|
-
v.value,
|
|
689
|
-
[
|
|
690
|
-
{ x: o.value.left, y: e.y },
|
|
691
|
-
{ x: o.value.right, y: e.y },
|
|
692
|
-
{
|
|
693
|
-
x: o.value.right,
|
|
694
|
-
y: A.value.yLabels[t + 1].y
|
|
695
|
-
},
|
|
696
|
-
{
|
|
697
|
-
x: o.value.left,
|
|
698
|
-
y: A.value.yLabels[t + 1].y
|
|
699
|
-
}
|
|
700
|
-
],
|
|
701
|
-
{
|
|
702
|
-
fillColor: t % 2 === 0 ? "transparent" : Ie(
|
|
703
|
-
a.value.style.chart.grid.x.horizontalLines.color,
|
|
704
|
-
a.value.style.chart.grid.x.horizontalLines.opacity
|
|
705
|
-
),
|
|
706
|
-
strokeColor: "transparent"
|
|
707
|
-
}
|
|
708
|
-
);
|
|
709
|
-
}) : A.value.yLabels.forEach((e) => {
|
|
710
|
-
T(
|
|
711
|
-
v.value,
|
|
712
|
-
[
|
|
713
|
-
{ x: o.value.left, y: e.y },
|
|
714
|
-
{ x: o.value.right, y: e.y }
|
|
715
|
-
],
|
|
716
|
-
{
|
|
717
|
-
color: a.value.style.chart.grid.x.horizontalLines.color
|
|
718
|
-
}
|
|
719
|
-
);
|
|
720
|
-
})), a.value.style.chart.grid.y.showAxis && T(
|
|
721
|
-
v.value,
|
|
722
|
-
[
|
|
723
|
-
{ x: o.value.left, y: o.value.top },
|
|
724
|
-
{ x: o.value.left, y: o.value.bottom }
|
|
725
|
-
],
|
|
726
|
-
{
|
|
727
|
-
color: a.value.style.chart.grid.y.axisColor,
|
|
728
|
-
lineWidth: a.value.style.chart.grid.y.axisThickness
|
|
729
|
-
}
|
|
730
|
-
), a.value.style.chart.grid.x.showAxis && T(
|
|
731
|
-
v.value,
|
|
732
|
-
[
|
|
733
|
-
{ x: o.value.left, y: o.value.bottom },
|
|
734
|
-
{ x: o.value.right, y: o.value.bottom }
|
|
735
|
-
],
|
|
736
|
-
{
|
|
737
|
-
color: a.value.style.chart.grid.x.axisColor,
|
|
738
|
-
lineWidth: a.value.style.chart.grid.x.axisThickness
|
|
739
|
-
}
|
|
740
|
-
), a.value.style.chart.grid.zeroLine.show && T(
|
|
741
|
-
v.value,
|
|
742
|
-
[
|
|
743
|
-
{
|
|
744
|
-
x: o.value.left,
|
|
745
|
-
y: A.value.zero
|
|
746
|
-
},
|
|
747
|
-
{
|
|
748
|
-
x: o.value.right,
|
|
749
|
-
y: A.value.zero
|
|
750
|
-
}
|
|
751
|
-
],
|
|
752
|
-
{
|
|
753
|
-
color: a.value.style.chart.grid.zeroLine.color,
|
|
754
|
-
lineDash: a.value.style.chart.grid.zeroLine.dashed ? [10, 10] : [0, 0]
|
|
755
|
-
}
|
|
756
|
-
);
|
|
757
|
-
}
|
|
758
|
-
a.value.style.chart.grid.y.axisName && Q(
|
|
759
|
-
v.value,
|
|
760
|
-
a.value.style.chart.grid.y.axisName,
|
|
761
|
-
y.value - y.value / 40 * a.value.style.chart.grid.y.axisLabels.fontSizeRatio * 1.2,
|
|
762
|
-
o.value.bottom - o.value.height / 2,
|
|
763
|
-
{
|
|
764
|
-
font: `${a.value.style.chart.grid.y.axisLabels.bold ? "bold " : ""}${Math.round(y.value / 40 * a.value.style.chart.grid.y.axisLabels.fontSizeRatio)}px ${a.value.style.fontFamily}`,
|
|
765
|
-
color: a.value.style.chart.color,
|
|
766
|
-
align: "center",
|
|
767
|
-
rotation: 90
|
|
768
|
-
}
|
|
769
|
-
), a.value.style.chart.grid.x.axisName && Q(
|
|
770
|
-
v.value,
|
|
771
|
-
a.value.style.chart.grid.x.axisName,
|
|
772
|
-
y.value / 2,
|
|
773
|
-
ee.value,
|
|
774
|
-
{
|
|
775
|
-
font: `${a.value.style.chart.grid.y.axisLabels.bold ? "bold " : ""}${Math.round(y.value / 40 * a.value.style.chart.grid.y.axisLabels.fontSizeRatio)}px ${a.value.style.fontFamily}`,
|
|
776
|
-
color: a.value.style.chart.color,
|
|
777
|
-
align: "center"
|
|
778
|
-
}
|
|
779
|
-
);
|
|
780
|
-
}
|
|
781
|
-
}
|
|
782
|
-
function Et(e) {
|
|
783
|
-
for (let t = 0; t < e.coordinatesLine.length; t += 1) {
|
|
784
|
-
const l = (h.value === t || $.value === t ? y.value / 150 : a.value.style.chart.line.plots.show || e.type === "plot" ? y.value / 200 : 0) * a.value.style.chart.line.plots.radiusRatio;
|
|
785
|
-
va(
|
|
786
|
-
v.value,
|
|
787
|
-
{ x: e.coordinatesLine[t].x, y: e.coordinatesLine[t].y },
|
|
788
|
-
l,
|
|
789
|
-
{
|
|
790
|
-
color: a.value.style.chart.backgroundColor,
|
|
791
|
-
fillStyle: e.color
|
|
792
|
-
}
|
|
793
|
-
);
|
|
794
|
-
}
|
|
795
|
-
}
|
|
796
|
-
function Nt() {
|
|
797
|
-
f.value.forEach((e) => {
|
|
798
|
-
e.showYMarker && Ce(e) && Q(
|
|
799
|
-
v.value,
|
|
800
|
-
ce(
|
|
801
|
-
a.value.style.chart.dataLabels.formatter,
|
|
802
|
-
Ce(e).value,
|
|
803
|
-
de({
|
|
804
|
-
p: e.prefix || a.value.style.chart.grid.y.axisLabels.prefix || "",
|
|
805
|
-
v: Ce(e).value,
|
|
806
|
-
s: e.suffix || a.value.style.chart.grid.y.axisLabels.suffix || "",
|
|
807
|
-
r: e.rounding || a.value.style.chart.grid.y.axisLabels.rounding || 0
|
|
808
|
-
}),
|
|
809
|
-
{ datapoint: Ce(e), seriesIndex: null }
|
|
810
|
-
),
|
|
811
|
-
o.value.left - 8 + a.value.style.chart.grid.y.axisLabels.offsetX,
|
|
812
|
-
Ce(e).y,
|
|
813
|
-
{
|
|
814
|
-
align: "right",
|
|
815
|
-
font: `${a.value.style.chart.grid.y.axisLabels.bold ? "bold " : ""}${Math.round(y.value / 40 * a.value.style.chart.grid.y.axisLabels.fontSizeRatio)}px ${a.value.style.fontFamily}`,
|
|
816
|
-
color: e.color
|
|
817
|
-
}
|
|
818
|
-
);
|
|
819
|
-
});
|
|
820
|
-
}
|
|
821
|
-
function Bt() {
|
|
822
|
-
a.value.style.chart.grid.y.axisLabels.show && (d.value.stacked ? f.value.forEach((e) => {
|
|
823
|
-
e.localYLabels.forEach((t, l) => {
|
|
824
|
-
Q(
|
|
825
|
-
v.value,
|
|
826
|
-
ce(
|
|
827
|
-
a.value.style.chart.dataLabels.formatter,
|
|
828
|
-
t.value,
|
|
829
|
-
de({
|
|
830
|
-
p: e.prefix || a.value.style.chart.grid.y.axisLabels.prefix || "",
|
|
831
|
-
v: t.value,
|
|
832
|
-
s: e.suffix || a.value.style.chart.grid.y.axisLabels.suffix || "",
|
|
833
|
-
r: e.rounding || a.value.style.chart.grid.y.axisLabels.rounding || 0
|
|
834
|
-
}),
|
|
835
|
-
{ datapoint: t, seriesIndex: l }
|
|
836
|
-
),
|
|
837
|
-
t.x + a.value.style.chart.grid.y.axisLabels.offsetX,
|
|
838
|
-
t.y,
|
|
839
|
-
{
|
|
840
|
-
align: "right",
|
|
841
|
-
font: `${a.value.style.chart.grid.y.axisLabels.bold ? "bold " : ""}${Math.round(y.value / 40 * a.value.style.chart.grid.y.axisLabels.fontSizeRatio)}px ${a.value.style.fontFamily}`,
|
|
842
|
-
color: e.color,
|
|
843
|
-
globalAlpha: e.showYMarker && ![null, void 0].includes(
|
|
844
|
-
h.value ?? $.value
|
|
845
|
-
) ? 0.2 : 1
|
|
846
|
-
}
|
|
847
|
-
);
|
|
848
|
-
});
|
|
849
|
-
}) : A.value.yLabels.forEach((e, t) => {
|
|
850
|
-
Q(
|
|
851
|
-
v.value,
|
|
852
|
-
ce(
|
|
853
|
-
a.value.style.chart.dataLabels.formatter,
|
|
854
|
-
e.value,
|
|
855
|
-
de({
|
|
856
|
-
p: a.value.style.chart.grid.y.axisLabels.prefix || "",
|
|
857
|
-
v: e.value,
|
|
858
|
-
s: a.value.style.chart.grid.y.axisLabels.suffix || "",
|
|
859
|
-
r: a.value.style.chart.grid.y.axisLabels.rounding || 0
|
|
860
|
-
}),
|
|
861
|
-
{ datapoint: e, seriesIndex: t }
|
|
862
|
-
),
|
|
863
|
-
e.x + a.value.style.chart.grid.y.axisLabels.offsetX,
|
|
864
|
-
e.y,
|
|
865
|
-
{
|
|
866
|
-
align: "right",
|
|
867
|
-
font: `${a.value.style.chart.grid.y.axisLabels.bold ? "bold " : ""}${Math.round(y.value / 40 * a.value.style.chart.grid.y.axisLabels.fontSizeRatio)}px ${a.value.style.fontFamily}`,
|
|
868
|
-
color: a.value.style.chart.grid.y.axisLabels.color,
|
|
869
|
-
globalAlpha: f.value.some(
|
|
870
|
-
(l) => l.showYMarker
|
|
871
|
-
) && ![null, void 0].includes(
|
|
872
|
-
h.value ?? $.value
|
|
873
|
-
) ? 0.2 : 1
|
|
874
|
-
}
|
|
875
|
-
);
|
|
876
|
-
}));
|
|
877
|
-
}
|
|
878
|
-
function Ht(e) {
|
|
879
|
-
for (let t = 0; t < e.coordinatesLine.length; t += 1)
|
|
880
|
-
Q(
|
|
881
|
-
v.value,
|
|
882
|
-
ce(
|
|
883
|
-
a.value.style.chart.dataLabels.formatter,
|
|
884
|
-
e.coordinatesLine[t].value,
|
|
885
|
-
de({
|
|
886
|
-
p: e.prefix || "",
|
|
887
|
-
v: e.coordinatesLine[t].value,
|
|
888
|
-
s: e.suffix || "",
|
|
889
|
-
r: e.rounding || 0
|
|
890
|
-
}),
|
|
891
|
-
{ datapoint: e.coordinatesLine[t], seriesIndex: t }
|
|
892
|
-
),
|
|
893
|
-
e.coordinatesLine[t].x,
|
|
894
|
-
e.coordinatesLine[t].y + a.value.style.chart.dataLabels.offsetY,
|
|
895
|
-
{
|
|
896
|
-
align: "center",
|
|
897
|
-
font: `${a.value.style.chart.dataLabels.bold ? "bold " : ""}${Math.round(y.value / 40 * a.value.style.chart.dataLabels.fontSizeRatio)}px ${a.value.style.fontFamily}`,
|
|
898
|
-
color: a.value.style.chart.dataLabels.useSerieColor ? e.color : a.value.style.chart.dataLabels.color,
|
|
899
|
-
strokeColor: a.value.style.chart.backgroundColor,
|
|
900
|
-
lineWidth: 0.5
|
|
901
|
-
}
|
|
902
|
-
);
|
|
903
|
-
}
|
|
904
|
-
const w = c([]);
|
|
905
|
-
let Ra = 0;
|
|
906
|
-
ua(() => {
|
|
907
|
-
const e = ++Ra;
|
|
908
|
-
(async () => {
|
|
909
|
-
const t = await Fl({
|
|
910
|
-
values: a.value.style.chart.grid.x.timeLabels.values,
|
|
911
|
-
maxDatapoints: O.value,
|
|
912
|
-
formatter: a.value.style.chart.grid.x.timeLabels.datetimeFormatter,
|
|
913
|
-
start: 0,
|
|
914
|
-
end: O.value
|
|
915
|
-
});
|
|
916
|
-
e === Ra && (w.value = t);
|
|
917
|
-
})();
|
|
918
|
-
}), ua(
|
|
919
|
-
() => {
|
|
920
|
-
a.value.style.chart.grid.x.timeLabels.show, a.value.style.chart.grid.x.timeLabels.rotation, a.value.style.chart.grid.x.timeLabels.offsetY, a.value.style.chart.grid.x.timeLabels.fontSizeRatio, a.value.style.chart.grid.x.timeLabels.bold, s.value.start, s.value.end, y.value, ee.value, (w.value || []).map((e) => e?.text ?? "").join("|"), Tt();
|
|
921
|
-
},
|
|
922
|
-
{ flush: "post" }
|
|
923
|
-
);
|
|
924
|
-
const Da = c({
|
|
925
|
-
months: [],
|
|
926
|
-
shortMonths: [],
|
|
927
|
-
days: [],
|
|
928
|
-
shortDays: []
|
|
929
|
-
});
|
|
930
|
-
let Oa = 0;
|
|
931
|
-
ua(() => {
|
|
932
|
-
const e = ++Oa, t = a.value.style.chart.grid.x.timeLabels.datetimeFormatter;
|
|
933
|
-
(async () => {
|
|
934
|
-
const l = await ut(t.locale).catch(
|
|
935
|
-
() => ut("en")
|
|
936
|
-
);
|
|
937
|
-
e === Oa && (Da.value = l.data);
|
|
938
|
-
})();
|
|
939
|
-
});
|
|
940
|
-
const Ea = g(() => {
|
|
941
|
-
const e = a.value.style.chart.grid.x.timeLabels.datetimeFormatter, t = Pl({
|
|
942
|
-
useUTC: e.useUTC,
|
|
943
|
-
locale: Da.value,
|
|
944
|
-
januaryAsYear: e.januaryAsYear
|
|
945
|
-
});
|
|
946
|
-
return (l, u) => {
|
|
947
|
-
const i = a.value.style.chart.grid.x.timeLabels.values?.[l];
|
|
948
|
-
return i == null ? "" : t.formatDate(new Date(i), u);
|
|
949
|
-
};
|
|
950
|
-
}), Na = g(() => (a.value.style.chart.grid.x.timeLabels.values || []).map((t, l) => ({
|
|
951
|
-
text: Ea.value(
|
|
952
|
-
l,
|
|
953
|
-
a.value.style.chart.zoom.timeFormat
|
|
954
|
-
),
|
|
955
|
-
absoluteIndex: l
|
|
956
|
-
}))), Be = g(() => (a.value.style.chart.grid.x.timeLabels.values || []).map((t, l) => ({
|
|
957
|
-
text: Ea.value(
|
|
958
|
-
l,
|
|
959
|
-
a.value.style.chart.tooltip.timeFormat
|
|
960
|
-
),
|
|
961
|
-
absoluteIndex: l
|
|
962
|
-
})));
|
|
963
|
-
function Wt() {
|
|
964
|
-
for (let e = s.value.start; e < s.value.end; e += 1)
|
|
965
|
-
(s.value.end - s.value.start < a.value.style.chart.grid.x.timeLabels.modulo || s.value.end - s.value.start >= a.value.style.chart.grid.x.timeLabels.modulo && (e % Math.floor(
|
|
966
|
-
(s.value.end - s.value.start) / a.value.style.chart.grid.x.timeLabels.modulo
|
|
967
|
-
) === 0 || (e === h.value + s.value.start || e === $.value) && a.value.style.chart.grid.x.timeLabels.showMarker)) && Q(
|
|
968
|
-
v.value,
|
|
969
|
-
w.value[e] ? w.value[e].text : e + 1,
|
|
970
|
-
o.value.left + o.value.slot * (e - s.value.start) + o.value.slot / 2,
|
|
971
|
-
o.value.bottom + y.value / a.value.style.chart.grid.x.timeLabels.offsetY,
|
|
972
|
-
{
|
|
973
|
-
align: a.value.style.chart.grid.x.timeLabels.rotation === 0 ? "center" : a.value.style.chart.grid.x.timeLabels.rotation > 0 ? "left" : "right",
|
|
974
|
-
font: `${a.value.style.chart.grid.x.timeLabels.bold ? "bold " : ""}${Math.round(y.value / 40 * a.value.style.chart.grid.x.timeLabels.fontSizeRatio)}px ${a.value.style.fontFamily}`,
|
|
975
|
-
color: a.value.style.chart.grid.x.timeLabels.showMarker ? Ie(
|
|
976
|
-
a.value.style.chart.grid.x.timeLabels.color,
|
|
977
|
-
h.value !== null || $.value !== null ? h.value + s.value.start === e || $.value === e ? 100 : 20 : 100
|
|
978
|
-
) : a.value.style.chart.grid.x.timeLabels.color,
|
|
979
|
-
rotation: a.value.style.chart.grid.x.timeLabels.rotation
|
|
980
|
-
}
|
|
981
|
-
);
|
|
982
|
-
}
|
|
983
|
-
function Ba() {
|
|
984
|
-
T(
|
|
985
|
-
v.value,
|
|
986
|
-
[
|
|
987
|
-
{
|
|
988
|
-
x: o.value.left + o.value.slot * (h.value ?? $.value) + o.value.slot / 2,
|
|
989
|
-
y: o.value.top
|
|
990
|
-
},
|
|
991
|
-
{
|
|
992
|
-
x: o.value.left + o.value.slot * (h.value ?? $.value) + o.value.slot / 2,
|
|
993
|
-
y: o.value.bottom
|
|
994
|
-
}
|
|
995
|
-
],
|
|
996
|
-
{
|
|
997
|
-
color: a.value.style.chart.selector.color,
|
|
998
|
-
lineDash: a.value.style.chart.selector.dashed ? [8, 8] : [0, 0],
|
|
999
|
-
lineWidth: 2
|
|
1000
|
-
}
|
|
1001
|
-
);
|
|
1002
|
-
}
|
|
1003
|
-
function Xt() {
|
|
1004
|
-
V.value && T(
|
|
1005
|
-
v.value,
|
|
1006
|
-
[
|
|
1007
|
-
{ x: o.value.left, y: V.value },
|
|
1008
|
-
{ x: o.value.right, y: V.value }
|
|
1009
|
-
],
|
|
1010
|
-
{
|
|
1011
|
-
color: a.value.style.chart.selector.color,
|
|
1012
|
-
lineDash: a.value.style.chart.selector.dashed ? [8, 8] : [0, 0],
|
|
1013
|
-
lineWidth: 2
|
|
1014
|
-
}
|
|
1015
|
-
);
|
|
1016
|
-
}
|
|
1017
|
-
function Vt() {
|
|
1018
|
-
P.value.forEach((e, t) => {
|
|
1019
|
-
for (let l = 0; l < e.coordinatesLine.length; l += 1)
|
|
1020
|
-
_e(
|
|
1021
|
-
v.value,
|
|
1022
|
-
[
|
|
1023
|
-
{
|
|
1024
|
-
x: o.value.left + o.value.slot * l + o.value.slot / 10 + (d.value.stacked ? 0 : o.value.slot / P.value.length * t - (t === 0 ? 0 : o.value.slot / (5 * P.value.length) * t)),
|
|
1025
|
-
y: d.value.stacked ? e.localZero : A.value.zero
|
|
1026
|
-
},
|
|
1027
|
-
{
|
|
1028
|
-
x: o.value.left + o.value.slot * l + o.value.slot / 10 + (d.value.stacked ? 0 : o.value.slot / P.value.length * t - (t === 0 ? 0 : o.value.slot / (5 * P.value.length) * t)) + o.value.slot * 0.8 / (d.value.stacked ? 1 : P.value.length),
|
|
1029
|
-
y: d.value.stacked ? e.localZero : A.value.zero
|
|
1030
|
-
},
|
|
1031
|
-
{
|
|
1032
|
-
x: o.value.left + o.value.slot * l + o.value.slot / 10 + (d.value.stacked ? 0 : o.value.slot / P.value.length * t - (t === 0 ? 0 : o.value.slot / (5 * P.value.length) * t)) + o.value.slot * 0.8 / (d.value.stacked ? 1 : P.value.length),
|
|
1033
|
-
y: e.coordinatesLine[l].y
|
|
1034
|
-
},
|
|
1035
|
-
{
|
|
1036
|
-
x: o.value.left + o.value.slot * l + o.value.slot / 10 + (d.value.stacked ? 0 : o.value.slot / P.value.length * t - (t === 0 ? 0 : o.value.slot / (5 * P.value.length) * t)),
|
|
1037
|
-
y: e.coordinatesLine[l].y
|
|
1038
|
-
}
|
|
1039
|
-
],
|
|
1040
|
-
{
|
|
1041
|
-
strokeColor: a.value.style.chart.backgroundColor,
|
|
1042
|
-
gradient: {
|
|
1043
|
-
type: "linear",
|
|
1044
|
-
start: {
|
|
1045
|
-
x: e.coordinatesLine[l].x,
|
|
1046
|
-
y: e.coordinatesLine[l].y
|
|
1047
|
-
},
|
|
1048
|
-
end: {
|
|
1049
|
-
x: e.coordinatesLine[l].x,
|
|
1050
|
-
y: d.value.stacked ? e.localZero : A.value.zero
|
|
1051
|
-
},
|
|
1052
|
-
stops: [
|
|
1053
|
-
{ offset: 0, color: e.color },
|
|
1054
|
-
{
|
|
1055
|
-
offset: 1,
|
|
1056
|
-
color: a.value.style.chart.bar.gradient.show ? Sl(e.color, 0.5) : e.color
|
|
1057
|
-
}
|
|
1058
|
-
]
|
|
1059
|
-
}
|
|
1060
|
-
}
|
|
1061
|
-
), d.value.showDataLabels && [!0, void 0].includes(e.dataLabels) && Q(
|
|
1062
|
-
v.value,
|
|
1063
|
-
ce(
|
|
1064
|
-
a.value.style.chart.dataLabels.formatter,
|
|
1065
|
-
e.coordinatesLine[l].value,
|
|
1066
|
-
de({
|
|
1067
|
-
p: e.prefix || "",
|
|
1068
|
-
v: e.coordinatesLine[l].value,
|
|
1069
|
-
s: e.suffix || "",
|
|
1070
|
-
r: e.rounding || 0
|
|
1071
|
-
}),
|
|
1072
|
-
{
|
|
1073
|
-
datapoint: e.coordinatesLine[l],
|
|
1074
|
-
seriesIndex: l
|
|
1075
|
-
}
|
|
1076
|
-
),
|
|
1077
|
-
o.value.left + o.value.slot * l + o.value.slot / 10 + (d.value.stacked ? 0 : o.value.slot / P.value.length * t - (t === 0 ? 0 : o.value.slot / (5 * P.value.length) * t)) + o.value.slot * 0.4 / (d.value.stacked ? 1 : P.value.length),
|
|
1078
|
-
(e.coordinatesLine[l].value < 0 ? d.value.stacked ? e.localZero : A.value.zero : e.coordinatesLine[l].y) + a.value.style.chart.dataLabels.offsetY,
|
|
1079
|
-
{
|
|
1080
|
-
align: "center",
|
|
1081
|
-
font: `${Math.round(y.value / 40 * a.value.style.chart.dataLabels.fontSizeRatio)}px ${a.value.style.fontFamily}`,
|
|
1082
|
-
color: a.value.style.chart.dataLabels.useSerieColor ? e.color : a.value.style.chart.dataLabels.color,
|
|
1083
|
-
strokeColor: a.value.style.chart.backgroundColor,
|
|
1084
|
-
lineWidth: 0.8
|
|
1085
|
-
}
|
|
1086
|
-
);
|
|
1087
|
-
});
|
|
1088
|
-
}
|
|
1089
|
-
function _t(e, t) {
|
|
1090
|
-
const l = e.coordinatesLine.map((r, m) => {
|
|
1091
|
-
const L = e.series[m];
|
|
1092
|
-
return L != null && Number.isFinite(r?.y) ? r : null;
|
|
1093
|
-
}), u = [], n = [];
|
|
1094
|
-
let i = [];
|
|
1095
|
-
for (let r = 0; r < l.length; r += 1) {
|
|
1096
|
-
const m = l[r];
|
|
1097
|
-
if (m)
|
|
1098
|
-
i.push(m);
|
|
1099
|
-
else {
|
|
1100
|
-
if (i.length >= 2) {
|
|
1101
|
-
const L = i[0], x = i[i.length - 1];
|
|
1102
|
-
u.push([
|
|
1103
|
-
{ x: L.x, y: t },
|
|
1104
|
-
...i,
|
|
1105
|
-
{ x: x.x, y: t }
|
|
1106
|
-
]);
|
|
1107
|
-
} else i.length === 1 && n.push(i[0]);
|
|
1108
|
-
i = [];
|
|
1109
|
-
}
|
|
1110
|
-
}
|
|
1111
|
-
if (i.length >= 2) {
|
|
1112
|
-
const r = i[0], m = i[i.length - 1];
|
|
1113
|
-
u.push([
|
|
1114
|
-
{ x: r.x, y: t },
|
|
1115
|
-
...i,
|
|
1116
|
-
{ x: m.x, y: t }
|
|
1117
|
-
]);
|
|
1118
|
-
} else i.length === 1 && n.push(i[0]);
|
|
1119
|
-
return { polygons: u, singles: n };
|
|
1120
|
-
}
|
|
1121
|
-
function Ut(e) {
|
|
1122
|
-
const t = e.coordinatesLine.map((n, i) => {
|
|
1123
|
-
const r = e.series[i];
|
|
1124
|
-
return r != null && Number.isFinite(n?.y) ? n : null;
|
|
1125
|
-
}), l = [];
|
|
1126
|
-
let u = [];
|
|
1127
|
-
for (let n = 0; n < t.length; n += 1) {
|
|
1128
|
-
const i = t[n];
|
|
1129
|
-
i ? u.push(i) : (u.length >= 2 && l.push(u), u = []);
|
|
1130
|
-
}
|
|
1131
|
-
return u.length >= 2 && l.push(u), l;
|
|
1132
|
-
}
|
|
1133
|
-
function Ha(e) {
|
|
1134
|
-
if (Ee.value) {
|
|
1135
|
-
const t = Ut(e);
|
|
1136
|
-
for (const l of t)
|
|
1137
|
-
T(v.value, l, {
|
|
1138
|
-
color: e.color,
|
|
1139
|
-
lineWidth: 3
|
|
1140
|
-
});
|
|
1141
|
-
} else
|
|
1142
|
-
T(v.value, e.coordinatesLine, {
|
|
1143
|
-
color: e.color,
|
|
1144
|
-
lineWidth: 3
|
|
1145
|
-
});
|
|
1146
|
-
}
|
|
1147
|
-
function Yt(e) {
|
|
1148
|
-
const t = !!Ee.value;
|
|
1149
|
-
if (e.useArea) {
|
|
1150
|
-
const l = d.value.stacked ? e.localZero : A.value.zero;
|
|
1151
|
-
if (t) {
|
|
1152
|
-
const { polygons: u, singles: n } = _t(e, l);
|
|
1153
|
-
for (const r of u)
|
|
1154
|
-
st(v.value, r, {
|
|
1155
|
-
fillColor: Ie(
|
|
1156
|
-
e.color,
|
|
1157
|
-
a.value.style.chart.area.opacity
|
|
1158
|
-
),
|
|
1159
|
-
strokeColor: "transparent"
|
|
1160
|
-
});
|
|
1161
|
-
const i = y.value / 200 * a.value.style.chart.line.plots.radiusRatio;
|
|
1162
|
-
for (const r of n)
|
|
1163
|
-
va(v.value, { x: r.x, y: r.y }, i, {
|
|
1164
|
-
color: a.value.style.chart.backgroundColor,
|
|
1165
|
-
fillStyle: e.color
|
|
1166
|
-
});
|
|
1167
|
-
} else {
|
|
1168
|
-
const u = { x: e.coordinatesLine[0].x, y: l }, n = { x: e.coordinatesLine.at(-1).x, y: l };
|
|
1169
|
-
st(v.value, [u, ...e.coordinatesLine, n], {
|
|
1170
|
-
fillColor: Ie(
|
|
1171
|
-
e.color,
|
|
1172
|
-
a.value.style.chart.area.opacity
|
|
1173
|
-
),
|
|
1174
|
-
strokeColor: "transparent"
|
|
1175
|
-
});
|
|
1176
|
-
}
|
|
1177
|
-
Ha(e);
|
|
1178
|
-
return;
|
|
1179
|
-
}
|
|
1180
|
-
Ha(e);
|
|
1181
|
-
}
|
|
1182
|
-
function qt() {
|
|
1183
|
-
f.value.forEach((e, t) => {
|
|
1184
|
-
T(
|
|
1185
|
-
v.value,
|
|
1186
|
-
[
|
|
1187
|
-
{
|
|
1188
|
-
x: o.value.left,
|
|
1189
|
-
y: o.value.bottom - e.yOffset
|
|
1190
|
-
},
|
|
1191
|
-
{
|
|
1192
|
-
x: o.value.right,
|
|
1193
|
-
y: o.value.bottom - e.yOffset
|
|
1194
|
-
}
|
|
1195
|
-
],
|
|
1196
|
-
{
|
|
1197
|
-
color: a.value.style.chart.grid.x.horizontalLines.color,
|
|
1198
|
-
lineWidth: 1
|
|
1199
|
-
}
|
|
1200
|
-
);
|
|
1201
|
-
});
|
|
1202
|
-
}
|
|
1203
|
-
function jt() {
|
|
1204
|
-
const { left: e, top: t, width: l, height: u } = o.value, n = s.value.start, r = s.value.end - n, m = l / r, L = F.value.start - n, x = F.value.end - n, S = Math.max(0, Math.min(r, L)), R = Math.max(0, Math.min(r, x));
|
|
1205
|
-
_e(
|
|
1206
|
-
v.value,
|
|
1207
|
-
[
|
|
1208
|
-
{ x: e + S * m, y: t },
|
|
1209
|
-
{ x: e + S * m + (R - S) * m, y: t },
|
|
1210
|
-
{
|
|
1211
|
-
x: e + S * m + (R - S) * m,
|
|
1212
|
-
y: t + u
|
|
1213
|
-
},
|
|
1214
|
-
{ x: e + S * m, y: t + u }
|
|
1215
|
-
],
|
|
1216
|
-
{
|
|
1217
|
-
fillColor: a.value.style.chart.zoom.preview.fill,
|
|
1218
|
-
strokeColor: a.value.style.chart.zoom.preview.stroke,
|
|
1219
|
-
lineDash: Array(4).fill(
|
|
1220
|
-
a.value.style.chart.zoom.preview.strokeDasharray
|
|
1221
|
-
),
|
|
1222
|
-
lineWidth: a.value.style.chart.zoom.preview.strokeWidth
|
|
1223
|
-
}
|
|
1224
|
-
);
|
|
1225
|
-
}
|
|
1226
|
-
function J() {
|
|
1227
|
-
!U.value || !k.value || !v.value || (Ot(), B.value ? ((h.value !== null || $.value !== null) && a.value.style.chart.selector.show && Ba(), Vt(), d.value.stacked && a.value.style.chart.grid.x.showAxis && qt(), Dt.value.forEach((e) => {
|
|
1228
|
-
(e.type === "line" || !e.type) && Yt(e), X.value && (Et(e), d.value.showDataLabels && [!0, void 0].includes(e.dataLabels) && Ht(e));
|
|
1229
|
-
}), k.value && (Fe.value = $l(k.value))) : (Fe.value && (v.value.clearRect(0, 0, 1e4, 1e4), v.value.drawImage(Fe.value, 0, 0)), (h.value !== null || $.value !== null) && a.value.style.chart.selector.show && Ba(), (h.value !== null || $.value !== null) && f.value.forEach((e) => {
|
|
1230
|
-
const t = h.value ?? $.value, l = e.coordinatesLine[t];
|
|
1231
|
-
(e.type === "line" || !e.type || e.type === "plot") && l && Number.isFinite(l.x) && Number.isFinite(l.y) && va(
|
|
1232
|
-
v.value,
|
|
1233
|
-
{ x: l.x, y: l.y },
|
|
1234
|
-
y.value / 150 * a.value.style.chart.line.plots.radiusRatio,
|
|
1235
|
-
{
|
|
1236
|
-
color: a.value.style.chart.backgroundColor,
|
|
1237
|
-
fillStyle: e.color
|
|
1238
|
-
}
|
|
1239
|
-
);
|
|
1240
|
-
})), a.value.style.chart.grid.x.timeLabels.show && Wt(), a.value.style.chart.selector.show && a.value.style.chart.selector.showHorizontalSelector && Xt(), Bt(), Nt(), a.value.style.chart.zoom.preview.enable && (s.value.start !== F.value.start || s.value.end !== F.value.end) && jt(), B.value = !1);
|
|
1241
|
-
}
|
|
1242
|
-
const Le = Al(
|
|
1243
|
-
() => {
|
|
1244
|
-
X.value = !0, Ne();
|
|
1245
|
-
},
|
|
1246
|
-
O.value > 200 ? 10 : 1,
|
|
1247
|
-
!X.value
|
|
1248
|
-
);
|
|
1249
|
-
function Ce(e) {
|
|
1250
|
-
if ([null, void 0].includes(
|
|
1251
|
-
h.value ?? $.value
|
|
1252
|
-
) || !e.coordinatesLine[h.value ?? $.value])
|
|
1253
|
-
return !1;
|
|
1254
|
-
const { y: t, value: l } = e.coordinatesLine[h.value ?? $.value];
|
|
1255
|
-
return { y: t, value: l };
|
|
1256
|
-
}
|
|
1257
|
-
function Gt(e) {
|
|
1258
|
-
if (!U.value || !k.value || aa.value) return;
|
|
1259
|
-
const { left: t, top: l } = k.value.getBoundingClientRect(), u = e.clientX - t;
|
|
1260
|
-
if (V.value = (e.clientY - l) * 2, (V.value < o.value.top || V.value > o.value.bottom) && (V.value = null), u * 2 < o.value.left || u * 2 > o.value.right) {
|
|
1261
|
-
ke();
|
|
1262
|
-
return;
|
|
1263
|
-
}
|
|
1264
|
-
const n = u * 2 - o.value.left, i = Math.floor(n / o.value.slot);
|
|
1265
|
-
if (h.value = i, _.value = i, he.value = !0, Re.value = !1, !X.value) return;
|
|
1266
|
-
let r = "";
|
|
1267
|
-
const m = a.value.style.chart.tooltip.customFormat, L = f.value.map((x) => ({
|
|
1268
|
-
shape: x.shape || null,
|
|
1269
|
-
name: x.name,
|
|
1270
|
-
color: x.color,
|
|
1271
|
-
type: x.type || "line",
|
|
1272
|
-
value: x.series.find((S, R) => R === h.value)
|
|
1273
|
-
}));
|
|
1274
|
-
Me.value = {
|
|
1275
|
-
timeLabel: a.value.style.chart.grid.x.timeLabels.values.slice(
|
|
1276
|
-
s.value.start,
|
|
1277
|
-
s.value.end
|
|
1278
|
-
)[h.value] ? a.value.style.chart.tooltip.useDefaultTimeFormat ? w.value.slice(
|
|
1279
|
-
s.value.start,
|
|
1280
|
-
s.value.end
|
|
1281
|
-
)[h.value]?.text : Be.value[h.value]?.text : "",
|
|
1282
|
-
datapoint: L,
|
|
1283
|
-
seriesIndex: h.value,
|
|
1284
|
-
series: f.value,
|
|
1285
|
-
config: a.value
|
|
1286
|
-
}, Xa({ seriesIndex: h.value, datapoint: L }), ia(m) && ot(
|
|
1287
|
-
() => m({
|
|
1288
|
-
seriesIndex: h.value,
|
|
1289
|
-
datapoint: L,
|
|
1290
|
-
series: f.value,
|
|
1291
|
-
config: a.value
|
|
1292
|
-
})
|
|
1293
|
-
) ? fe.value = m({
|
|
1294
|
-
seriesIndex: h.value,
|
|
1295
|
-
datapoint: L,
|
|
1296
|
-
series: f.value,
|
|
1297
|
-
config: a.value
|
|
1298
|
-
}) : (a.value.style.chart.grid.x.timeLabels.values.slice(
|
|
1299
|
-
s.value.start,
|
|
1300
|
-
s.value.end
|
|
1301
|
-
)[h.value] ? r += `<div style="padding-bottom: 6px; margin-bottom: 4px; border-bottom: 1px solid ${a.value.style.chart.tooltip.borderColor}; width:100%">${a.value.style.chart.tooltip.useDefaultTimeFormat ? w.value.slice(s.value.start, s.value.end)[h.value]?.text : Be.value[h.value]?.text}</div>` : r += `<div style="padding-bottom: 6px; margin-bottom: 4px; border-bottom: 1px solid ${a.value.style.chart.tooltip.borderColor}; width:100%">${w.value[h.value + s.value.start]?.text ?? ""}</div>`, r += Ia.value.join(""), fe.value = r), X.value = !1;
|
|
1302
|
-
}
|
|
1303
|
-
function Zt(e) {
|
|
1304
|
-
return f.value.map((t) => ({
|
|
1305
|
-
shape: t.shape || null,
|
|
1306
|
-
name: t.name,
|
|
1307
|
-
color: t.color,
|
|
1308
|
-
type: t.type || "line",
|
|
1309
|
-
value: t.series.find((l, u) => u === e)
|
|
1310
|
-
}));
|
|
1311
|
-
}
|
|
1312
|
-
function Kt(e) {
|
|
1313
|
-
let t = "";
|
|
1314
|
-
const l = a.value.style.chart.tooltip.customFormat, u = Zt(e);
|
|
1315
|
-
return Xa({ seriesIndex: e, datapoint: u }), ia(l) && ot(
|
|
1316
|
-
() => l({
|
|
1317
|
-
seriesIndex: e,
|
|
1318
|
-
datapoint: u,
|
|
1319
|
-
series: f.value,
|
|
1320
|
-
config: a.value
|
|
1321
|
-
})
|
|
1322
|
-
) ? l({
|
|
1323
|
-
seriesIndex: e,
|
|
1324
|
-
datapoint: u,
|
|
1325
|
-
series: f.value,
|
|
1326
|
-
config: a.value
|
|
1327
|
-
}) : (a.value.style.chart.grid.x.timeLabels.values.slice(
|
|
1328
|
-
s.value.start,
|
|
1329
|
-
s.value.end
|
|
1330
|
-
)[e] ? t += `<div style="padding-bottom: 6px; margin-bottom: 4px; border-bottom: 1px solid ${a.value.style.chart.tooltip.borderColor}; width:100%">${a.value.style.chart.tooltip.useDefaultTimeFormat ? w.value.slice(s.value.start, s.value.end)[e]?.text : Be.value[e]?.text}</div>` : t += `<div style="padding-bottom: 6px; margin-bottom: 4px; border-bottom: 1px solid ${a.value.style.chart.tooltip.borderColor}; width:100%">${w.value[e + s.value.start]?.text ?? ""}</div>`, t += Ia.value.join(""), t);
|
|
1331
|
-
}
|
|
1332
|
-
function Jt(e) {
|
|
1333
|
-
if (!k.value || !o.value?.slot) return;
|
|
1334
|
-
const t = k.value.getBoundingClientRect(), l = t.width / o.value.canvasWidth, u = t.height / o.value.canvasHeight, n = o.value.left + o.value.slot * e + o.value.slot / 2, i = o.value.top + o.value.height / 2;
|
|
1335
|
-
pa.value = {
|
|
1336
|
-
x: t.left + n * l,
|
|
1337
|
-
y: t.top + i * u
|
|
1338
|
-
};
|
|
1339
|
-
}
|
|
1340
|
-
function Wa(e, { fromKeyboard: t = !1 } = {}) {
|
|
1341
|
-
!U.value || aa.value || e != null && (e < 0 || e >= s.value.end - s.value.start || (h.value = e, _.value = e, he.value = !0, Re.value = t, fe.value = Kt(e), t && Jt(e), X.value = !1, J()));
|
|
1342
|
-
}
|
|
1343
|
-
function ke() {
|
|
1344
|
-
he.value = !1, h.value = null, _.value = null, fe.value = "", V.value = null, Re.value = !1, J();
|
|
1345
|
-
}
|
|
1346
|
-
function Qt() {
|
|
1347
|
-
Ke.value = !0;
|
|
1348
|
-
}
|
|
1349
|
-
function el() {
|
|
1350
|
-
Ke.value = !1, ke();
|
|
1351
|
-
}
|
|
1352
|
-
function al(e) {
|
|
1353
|
-
if (!k.value || we.value || document.activeElement !== k.value) return;
|
|
1354
|
-
const t = e.key === "ArrowLeft", l = e.key === "ArrowRight";
|
|
1355
|
-
if (!t && !l) return;
|
|
1356
|
-
const u = s.value.end - s.value.start;
|
|
1357
|
-
if (u <= 0) return;
|
|
1358
|
-
e.preventDefault(), e.stopPropagation();
|
|
1359
|
-
let n = _.value;
|
|
1360
|
-
n !== null && n >= 0 && n < u ? l ? (n += 1, n >= u && (n = 0)) : (n -= 1, n < 0 && (n = u - 1)) : l ? n = 0 : n = u - 1, Wa(n, { fromKeyboard: !0 });
|
|
1361
|
-
}
|
|
1362
|
-
function Xa({ seriesIndex: e, datapoint: t }) {
|
|
1363
|
-
const l = s.value.start + e;
|
|
1364
|
-
De("selectX", {
|
|
1365
|
-
dataset: t,
|
|
1366
|
-
index: l,
|
|
1367
|
-
indexLabel: ""
|
|
1368
|
-
});
|
|
1369
|
-
}
|
|
1370
|
-
E(
|
|
1371
|
-
() => D.selectedXIndex,
|
|
1372
|
-
(e) => {
|
|
1373
|
-
if ([null, void 0].includes(D.selectedXIndex)) {
|
|
1374
|
-
ke();
|
|
1375
|
-
return;
|
|
1376
|
-
}
|
|
1377
|
-
const t = e - s.value.start;
|
|
1378
|
-
t < 0 || e >= s.value.end ? ke() : Wa(t, { fromKeyboard: !1 });
|
|
1379
|
-
},
|
|
1380
|
-
{ immediate: !0 }
|
|
1381
|
-
), E(
|
|
1382
|
-
() => h.value,
|
|
1383
|
-
(e) => {
|
|
1384
|
-
Le();
|
|
1385
|
-
}
|
|
1386
|
-
), E(
|
|
1387
|
-
() => s.value,
|
|
1388
|
-
(e) => {
|
|
1389
|
-
B.value = !0, J();
|
|
1390
|
-
},
|
|
1391
|
-
{
|
|
1392
|
-
deep: !0
|
|
1393
|
-
}
|
|
1394
|
-
), E(
|
|
1395
|
-
() => F.value,
|
|
1396
|
-
(e) => {
|
|
1397
|
-
J();
|
|
1398
|
-
},
|
|
1399
|
-
{ deep: !0 }
|
|
1400
|
-
), E(
|
|
1401
|
-
() => d.value.showDataLabels,
|
|
1402
|
-
(e) => {
|
|
1403
|
-
B.value = !0, J();
|
|
1404
|
-
}
|
|
1405
|
-
), E(
|
|
1406
|
-
() => V.value,
|
|
1407
|
-
(e) => {
|
|
1408
|
-
e && J();
|
|
1409
|
-
}
|
|
1410
|
-
), E(
|
|
1411
|
-
() => d.value.stacked,
|
|
1412
|
-
(e) => {
|
|
1413
|
-
B.value = !0, X.value = !0, Le();
|
|
1414
|
-
}
|
|
1415
|
-
);
|
|
1416
|
-
function tl() {
|
|
1417
|
-
ke();
|
|
1418
|
-
}
|
|
1419
|
-
const te = na(null), re = na(null), ie = na(null);
|
|
1420
|
-
Ja(() => {
|
|
1421
|
-
ya.value = !0, Va();
|
|
1422
|
-
});
|
|
1423
|
-
function Va() {
|
|
1424
|
-
if (kl(D.dataset) && xt.value && wl({ componentName: "VueUiXyCanvas", type: "dataset" }), Te(() => {
|
|
1425
|
-
k.value && !v.value && (v.value = k.value.getContext("2d", {
|
|
1426
|
-
willReadFrequently: !0
|
|
1427
|
-
})), v.value && U.value && (B.value = !0, X.value = !0, Ne());
|
|
1428
|
-
}), a.value.responsive) {
|
|
1429
|
-
const e = Il(() => {
|
|
1430
|
-
const { width: t, height: l } = Ml({
|
|
1431
|
-
chart: K.value,
|
|
1432
|
-
title: a.value.style.chart.title.text ? ha.value : null,
|
|
1433
|
-
legend: a.value.style.chart.legend.show ? fa.value : null,
|
|
1434
|
-
slicer: a.value.style.chart.zoom.show && O.value > 6 ? ae.value?.$el : null,
|
|
1435
|
-
source: ma.value
|
|
1436
|
-
});
|
|
1437
|
-
requestAnimationFrame(() => {
|
|
1438
|
-
La.value = `${t} / ${l}`;
|
|
1439
|
-
});
|
|
1440
|
-
});
|
|
1441
|
-
te.value && (re.value && te.value.unobserve(re.value), te.value.disconnect()), te.value = new ResizeObserver(e), re.value = K.value.parentNode, te.value.observe(re.value);
|
|
1442
|
-
}
|
|
1443
|
-
ie.value && ie.value.disconnect(), ie.value = new ResizeObserver(async (e) => {
|
|
1444
|
-
for (const t of e)
|
|
1445
|
-
t.contentBoxSize && ue.value && (B.value = !0, Le());
|
|
1446
|
-
}), ie.value.observe(ue.value), xe();
|
|
1447
|
-
}
|
|
1448
|
-
sa(() => {
|
|
1449
|
-
ie.value && ie.value.disconnect(), te.value && (re.value && te.value.unobserve(re.value), te.value.disconnect());
|
|
1450
|
-
});
|
|
1451
|
-
function ll() {
|
|
1452
|
-
p.value.length ? p.value = [] : We.value.forEach((e, t) => {
|
|
1453
|
-
p.value.push(t);
|
|
1454
|
-
}), B.value = !0, Le();
|
|
1455
|
-
}
|
|
1456
|
-
function He(e) {
|
|
1457
|
-
De(
|
|
1458
|
-
"selectLegend",
|
|
1459
|
-
f.value.find((t) => t.absoluteIndex === e)
|
|
1460
|
-
), p.value.includes(e) ? p.value = p.value.filter((t) => t !== e) : p.value.push(e), B.value = !0, Le();
|
|
1461
|
-
}
|
|
1462
|
-
function _a(e) {
|
|
1463
|
-
if (!M.value.length)
|
|
1464
|
-
return a.value.debug && console.warn("VueUiXyCanvas - There are no series to show."), null;
|
|
1465
|
-
const t = M.value.find((l) => l.name === e);
|
|
1466
|
-
return t || (a.value.debug && console.warn(`VueUiXyCanvas - Series name not found "${e}"`), null);
|
|
1467
|
-
}
|
|
1468
|
-
function ol(e) {
|
|
1469
|
-
const t = _a(e);
|
|
1470
|
-
t !== null && p.value.includes(t.absoluteIndex) && He(t.absoluteIndex);
|
|
1471
|
-
}
|
|
1472
|
-
function sl(e) {
|
|
1473
|
-
const t = _a(e);
|
|
1474
|
-
t !== null && (p.value.includes(t.absoluteIndex) || He(t.absoluteIndex));
|
|
1475
|
-
}
|
|
1476
|
-
const We = g(() => M.value.map((e, t) => ({
|
|
1477
|
-
...e,
|
|
1478
|
-
name: e.name,
|
|
1479
|
-
color: lt(e.color) || Ta.value[t] || se[t] || se[t % se.length],
|
|
1480
|
-
shape: e.shape || "circle",
|
|
1481
|
-
prefix: e.prefix || "",
|
|
1482
|
-
suffix: e.suffix || "",
|
|
1483
|
-
rounding: e.rounding || 0
|
|
1484
|
-
})).map((e) => ({
|
|
1485
|
-
...e,
|
|
1486
|
-
opacity: p.value.includes(e.absoluteIndex) ? 0.5 : 1,
|
|
1487
|
-
segregate: () => He(e.absoluteIndex),
|
|
1488
|
-
isSegregated: p.value.includes(e.absoluteIndex)
|
|
1489
|
-
}))), ul = g(() => ({
|
|
1490
|
-
cy: "donut-div-legend",
|
|
1491
|
-
backgroundColor: a.value.style.chart.legend.backgroundColor,
|
|
1492
|
-
color: a.value.style.chart.legend.color,
|
|
1493
|
-
fontSize: a.value.style.chart.legend.fontSize,
|
|
1494
|
-
paddingBottom: 12,
|
|
1495
|
-
fontWeight: a.value.style.chart.legend.bold ? "bold" : ""
|
|
1496
|
-
})), Xe = g(() => {
|
|
1497
|
-
const e = [""].concat(f.value.map((n) => n.name)).concat(
|
|
1498
|
-
' <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>'
|
|
1499
|
-
);
|
|
1500
|
-
let t = [];
|
|
1501
|
-
for (let n = 0; n < O.value; n += 1) {
|
|
1502
|
-
const i = f.value.map((r) => r.series[n] ?? 0).reduce((r, m) => r + m, 0);
|
|
1503
|
-
t.push(
|
|
1504
|
-
[
|
|
1505
|
-
a.value.style.chart.grid.x.timeLabels.values.slice(
|
|
1506
|
-
s.value.start,
|
|
1507
|
-
s.value.end
|
|
1508
|
-
)[n] ? w?.value?.slice(
|
|
1509
|
-
s.value.start,
|
|
1510
|
-
s.value.end
|
|
1511
|
-
)?.[n]?.text ?? n + 1 : n + 1
|
|
1512
|
-
].concat(
|
|
1513
|
-
f.value.map(
|
|
1514
|
-
(r) => (r.series[n] ?? 0).toFixed(
|
|
1515
|
-
a.value.table.rounding
|
|
1516
|
-
)
|
|
1517
|
-
)
|
|
1518
|
-
).concat((i ?? 0).toFixed(a.value.table.rounding))
|
|
1519
|
-
);
|
|
1520
|
-
}
|
|
1521
|
-
const l = {
|
|
1522
|
-
th: {
|
|
1523
|
-
backgroundColor: a.value.table.th.backgroundColor,
|
|
1524
|
-
color: a.value.table.th.color,
|
|
1525
|
-
outline: a.value.table.th.outline
|
|
1526
|
-
},
|
|
1527
|
-
td: {
|
|
1528
|
-
backgroundColor: a.value.table.td.backgroundColor,
|
|
1529
|
-
color: a.value.table.td.color,
|
|
1530
|
-
outline: a.value.table.td.outline
|
|
1531
|
-
},
|
|
1532
|
-
breakpoint: a.value.table.responsiveBreakpoint
|
|
1533
|
-
}, u = [a.value.table.columnNames.period].concat(f.value.map((n) => n.name)).concat(a.value.table.columnNames.total);
|
|
1534
|
-
return {
|
|
1535
|
-
head: e,
|
|
1536
|
-
body: t.slice(0, s.value.end - s.value.start),
|
|
1537
|
-
config: l,
|
|
1538
|
-
colNames: u
|
|
1539
|
-
};
|
|
1540
|
-
}), Ua = g(() => {
|
|
1541
|
-
if (f.value.length === 0)
|
|
1542
|
-
return { head: [], body: [], config: {}, columnNames: [] };
|
|
1543
|
-
const e = f.value.map((l) => ({
|
|
1544
|
-
label: l.name,
|
|
1545
|
-
color: l.color,
|
|
1546
|
-
type: l.type
|
|
1547
|
-
})), t = [];
|
|
1548
|
-
for (let l = s.value.start; l < s.value.end; l += 1) {
|
|
1549
|
-
const u = [
|
|
1550
|
-
a.value.style.chart.grid.x.timeLabels.values[l] ? w.value[l].text : l + 1
|
|
1551
|
-
];
|
|
1552
|
-
f.value.forEach((n) => {
|
|
1553
|
-
u.push(
|
|
1554
|
-
Number(
|
|
1555
|
-
(n.series[l] || 0).toFixed(
|
|
1556
|
-
a.value.table.rounding
|
|
1557
|
-
)
|
|
1558
|
-
)
|
|
1559
|
-
);
|
|
1560
|
-
}), t.push(u);
|
|
1561
|
-
}
|
|
1562
|
-
return { head: e, body: t };
|
|
1563
|
-
});
|
|
1564
|
-
function la(e = null) {
|
|
1565
|
-
const t = [
|
|
1566
|
-
[a.value.style.chart.title.text],
|
|
1567
|
-
[a.value.style.chart.title.subtitle.text],
|
|
1568
|
-
[""]
|
|
1569
|
-
], l = ["", ...Ua.value.head.map((r) => r.label)], u = Ua.value.body, n = t.concat([l]).concat(u), i = zl(n);
|
|
1570
|
-
e ? e(i) : Tl({
|
|
1571
|
-
csvContent: i,
|
|
1572
|
-
title: a.value.style.chart.title.text || "vue-ui-xy-canvas"
|
|
1573
|
-
});
|
|
1574
|
-
}
|
|
1575
|
-
function nl() {
|
|
1576
|
-
return f.value;
|
|
1577
|
-
}
|
|
1578
|
-
function Ya() {
|
|
1579
|
-
d.value.showTable = !d.value.showTable;
|
|
1580
|
-
}
|
|
1581
|
-
function qa() {
|
|
1582
|
-
d.value.showDataLabels = !d.value.showDataLabels;
|
|
1583
|
-
}
|
|
1584
|
-
function ja() {
|
|
1585
|
-
d.value.stacked = !d.value.stacked;
|
|
1586
|
-
}
|
|
1587
|
-
function Ga() {
|
|
1588
|
-
d.value.showTooltip = !d.value.showTooltip;
|
|
1589
|
-
}
|
|
1590
|
-
const we = c(!1);
|
|
1591
|
-
function oa() {
|
|
1592
|
-
we.value = !we.value;
|
|
1593
|
-
}
|
|
1594
|
-
async function rl({ scale: e = 2 } = {}) {
|
|
1595
|
-
if (!K.value) return;
|
|
1596
|
-
const { width: t, height: l } = K.value.getBoundingClientRect(), u = t / l, { imageUri: n, base64: i } = await Wl({
|
|
1597
|
-
domElement: K.value,
|
|
1598
|
-
base64: !0,
|
|
1599
|
-
img: !0,
|
|
1600
|
-
scale: e
|
|
1601
|
-
});
|
|
1602
|
-
return {
|
|
1603
|
-
imageUri: n,
|
|
1604
|
-
base64: i,
|
|
1605
|
-
title: a.value.style.chart.title.text,
|
|
1606
|
-
width: t,
|
|
1607
|
-
height: l,
|
|
1608
|
-
aspectRatio: u
|
|
1609
|
-
};
|
|
1610
|
-
}
|
|
1611
|
-
const Se = g(() => {
|
|
1612
|
-
const e = a.value.table.useDialog && !a.value.table.show, t = d.value.showTable;
|
|
1613
|
-
return {
|
|
1614
|
-
component: e ? ht : Yl,
|
|
1615
|
-
title: `${a.value.style.chart.title.text}${a.value.style.chart.title.subtitle.text ? `: ${a.value.style.chart.title.subtitle.text}` : ""}`,
|
|
1616
|
-
props: e ? {
|
|
1617
|
-
backgroundColor: a.value.table.th.backgroundColor,
|
|
1618
|
-
color: a.value.table.th.color,
|
|
1619
|
-
headerColor: a.value.table.th.color,
|
|
1620
|
-
headerBg: a.value.table.th.backgroundColor,
|
|
1621
|
-
isFullscreen: me.value,
|
|
1622
|
-
fullscreenParent: K.value,
|
|
1623
|
-
forcedWidth: Math.min(800, window.innerWidth * 0.8),
|
|
1624
|
-
isCursorPointer: le.value
|
|
1625
|
-
} : {
|
|
1626
|
-
hideDetails: !0,
|
|
1627
|
-
config: {
|
|
1628
|
-
open: t,
|
|
1629
|
-
maxHeight: 1e4,
|
|
1630
|
-
body: {
|
|
1631
|
-
backgroundColor: a.value.style.chart.backgroundColor,
|
|
1632
|
-
color: a.value.style.chart.color
|
|
1633
|
-
},
|
|
1634
|
-
head: {
|
|
1635
|
-
backgroundColor: a.value.style.chart.backgroundColor,
|
|
1636
|
-
color: a.value.style.chart.color
|
|
1637
|
-
}
|
|
1638
|
-
}
|
|
1639
|
-
}
|
|
1640
|
-
};
|
|
1641
|
-
});
|
|
1642
|
-
E(
|
|
1643
|
-
() => d.value.showTable,
|
|
1644
|
-
(e) => {
|
|
1645
|
-
a.value.table.show || (e && a.value.table.useDialog && ye.value ? ye.value.open() : "close" in ye.value && ye.value.close());
|
|
1646
|
-
}
|
|
1647
|
-
);
|
|
1648
|
-
function Za() {
|
|
1649
|
-
d.value.showTable = !1, Ge.value && Ge.value.setTableIconState(!1);
|
|
1650
|
-
}
|
|
1651
|
-
function il(e) {
|
|
1652
|
-
if (e?.stage === "start") {
|
|
1653
|
-
Ze.value = !0;
|
|
1654
|
-
return;
|
|
1655
|
-
}
|
|
1656
|
-
if (e?.stage === "end") {
|
|
1657
|
-
Ze.value = !1;
|
|
1658
|
-
return;
|
|
1659
|
-
}
|
|
1660
|
-
Sa();
|
|
1661
|
-
}
|
|
1662
|
-
async function Ka() {
|
|
1663
|
-
if (De("copyAlt", {
|
|
1664
|
-
config: a.value,
|
|
1665
|
-
dataset: f.value
|
|
1666
|
-
}), !a.value.userOptions.callbacks.altCopy) {
|
|
1667
|
-
console.warn(
|
|
1668
|
-
"Vue Data UI - A callback must be set for `altCopy` in userOptions."
|
|
1669
|
-
);
|
|
1670
|
-
return;
|
|
1671
|
-
}
|
|
1672
|
-
await Promise.resolve(
|
|
1673
|
-
a.value.userOptions.callbacks.altCopy({
|
|
1674
|
-
config: a.value,
|
|
1675
|
-
dataset: f.value
|
|
1676
|
-
})
|
|
1677
|
-
);
|
|
1678
|
-
}
|
|
1679
|
-
return nt({
|
|
1680
|
-
getData: nl,
|
|
1681
|
-
getImage: rl,
|
|
1682
|
-
generateCsv: la,
|
|
1683
|
-
generatePdf: wa,
|
|
1684
|
-
generateImage: Sa,
|
|
1685
|
-
hideSeries: sl,
|
|
1686
|
-
showSeries: ol,
|
|
1687
|
-
toggleTable: Ya,
|
|
1688
|
-
toggleLabels: qa,
|
|
1689
|
-
toggleStack: ja,
|
|
1690
|
-
toggleTooltip: Ga,
|
|
1691
|
-
toggleAnnotator: oa,
|
|
1692
|
-
toggleFullscreen: za,
|
|
1693
|
-
copyAlt: Ka
|
|
1694
|
-
}), (e, t) => (I(), $e("div", {
|
|
1695
|
-
style: ve(`width:100%; position:relative; ${a.value.responsive ? "height: 100%" : ""}; background:${a.value.style.chart.backgroundColor};`),
|
|
1696
|
-
ref_key: "xy",
|
|
1697
|
-
ref: K,
|
|
1698
|
-
id: `xy_canvas_${Z.value}`,
|
|
1699
|
-
class: dl(`vue-data-ui-component vue-ui-xy-canvas ${me.value ? "vue-data-ui-wrapper-fullscreen" : ""}`),
|
|
1700
|
-
onMouseenter: Ct,
|
|
1701
|
-
onMouseleave: kt
|
|
1702
|
-
}, [
|
|
1703
|
-
W("div", {
|
|
1704
|
-
id: `chart-instructions-${Z.value}`,
|
|
1705
|
-
class: "sr-only"
|
|
1706
|
-
}, [
|
|
1707
|
-
W("p", null, Ae(a.value.a11y.translations.keyboardNavigation), 1)
|
|
1708
|
-
], 8, Kl),
|
|
1709
|
-
W("div", Jl, Ae(bt.value), 1),
|
|
1710
|
-
a.value.style.chart.title.text ? (I(), $e("div", {
|
|
1711
|
-
key: 0,
|
|
1712
|
-
ref_key: "chartTitle",
|
|
1713
|
-
ref: ha,
|
|
1714
|
-
style: ve(`width:100%;background:${a.value.style.chart.backgroundColor};`)
|
|
1715
|
-
}, [
|
|
1716
|
-
(I(), q(_l, {
|
|
1717
|
-
key: `title_${Ye.value}`,
|
|
1718
|
-
config: {
|
|
1719
|
-
title: {
|
|
1720
|
-
cy: "xy-canvas-title",
|
|
1721
|
-
...a.value.style.chart.title
|
|
1722
|
-
},
|
|
1723
|
-
subtitle: {
|
|
1724
|
-
cy: "xy-canvas-subtitle",
|
|
1725
|
-
...a.value.style.chart.title.subtitle
|
|
1726
|
-
}
|
|
1727
|
-
}
|
|
1728
|
-
}, null, 8, ["config"]))
|
|
1729
|
-
], 4)) : N("", !0),
|
|
1730
|
-
W("div", {
|
|
1731
|
-
id: `legend-top-${Z.value}`
|
|
1732
|
-
}, null, 8, Ql),
|
|
1733
|
-
a.value.userOptions.show && U.value && (z(xa) || z(Qe)) ? (I(), q(z(ct), {
|
|
1734
|
-
ref_key: "userOptionsRef",
|
|
1735
|
-
ref: Ge,
|
|
1736
|
-
key: `user_option_${da.value}`,
|
|
1737
|
-
backgroundColor: a.value.style.chart.backgroundColor,
|
|
1738
|
-
color: a.value.style.chart.color,
|
|
1739
|
-
isPrinting: z(Ca),
|
|
1740
|
-
isImaging: z(ka),
|
|
1741
|
-
uid: Z.value,
|
|
1742
|
-
hasTooltip: a.value.userOptions.buttons.tooltip && a.value.style.chart.tooltip.show,
|
|
1743
|
-
hasPdf: a.value.userOptions.buttons.pdf,
|
|
1744
|
-
hasImg: a.value.userOptions.buttons.img,
|
|
1745
|
-
hasXls: a.value.userOptions.buttons.csv,
|
|
1746
|
-
hasLabel: a.value.userOptions.buttons.labels,
|
|
1747
|
-
hasStack: ca.dataset.length > 1 && a.value.userOptions.buttons.stack,
|
|
1748
|
-
hasFullscreen: a.value.userOptions.buttons.fullscreen,
|
|
1749
|
-
hasAltCopy: a.value.userOptions.buttons.altCopy,
|
|
1750
|
-
hasTable: s.value.end - s.value.start <= 730 && a.value.userOptions.buttons.table,
|
|
1751
|
-
isFullscreen: me.value,
|
|
1752
|
-
isTooltip: d.value.showTooltip,
|
|
1753
|
-
isStacked: d.value.stacked,
|
|
1754
|
-
titles: { ...a.value.userOptions.buttonTitles },
|
|
1755
|
-
chartElement: K.value,
|
|
1756
|
-
position: a.value.userOptions.position,
|
|
1757
|
-
hasAnnotator: a.value.userOptions.buttons.annotator,
|
|
1758
|
-
isAnnotation: we.value,
|
|
1759
|
-
callbacks: a.value.userOptions.callbacks,
|
|
1760
|
-
printScale: a.value.userOptions.print.scale,
|
|
1761
|
-
tableDialog: a.value.table.useDialog,
|
|
1762
|
-
isCursorPointer: le.value,
|
|
1763
|
-
onToggleFullscreen: za,
|
|
1764
|
-
onGeneratePdf: z(wa),
|
|
1765
|
-
onGenerateCsv: la,
|
|
1766
|
-
onGenerateImage: il,
|
|
1767
|
-
onToggleTable: Ya,
|
|
1768
|
-
onToggleLabels: qa,
|
|
1769
|
-
onToggleStack: ja,
|
|
1770
|
-
onToggleTooltip: Ga,
|
|
1771
|
-
onToggleAnnotator: oa,
|
|
1772
|
-
onCopyAlt: Ka,
|
|
1773
|
-
style: ve({
|
|
1774
|
-
visibility: z(xa) ? z(Qe) ? "visible" : "hidden" : "visible"
|
|
1775
|
-
})
|
|
1776
|
-
}, Qa({ _: 2 }, [
|
|
1777
|
-
e.$slots.menuIcon ? {
|
|
1778
|
-
name: "menuIcon",
|
|
1779
|
-
fn: b(({ isOpen: l, color: u }) => [
|
|
1780
|
-
C(e.$slots, "menuIcon", j(G({ isOpen: l, color: u })), void 0, !0)
|
|
1781
|
-
]),
|
|
1782
|
-
key: "0"
|
|
1783
|
-
} : void 0,
|
|
1784
|
-
e.$slots.optionTooltip ? {
|
|
1785
|
-
name: "optionTooltip",
|
|
1786
|
-
fn: b(() => [
|
|
1787
|
-
C(e.$slots, "optionTooltip", {}, void 0, !0)
|
|
1788
|
-
]),
|
|
1789
|
-
key: "1"
|
|
1790
|
-
} : void 0,
|
|
1791
|
-
e.$slots.optionPdf ? {
|
|
1792
|
-
name: "optionPdf",
|
|
1793
|
-
fn: b(() => [
|
|
1794
|
-
C(e.$slots, "optionPdf", {}, void 0, !0)
|
|
1795
|
-
]),
|
|
1796
|
-
key: "2"
|
|
1797
|
-
} : void 0,
|
|
1798
|
-
e.$slots.optionCsv ? {
|
|
1799
|
-
name: "optionCsv",
|
|
1800
|
-
fn: b(() => [
|
|
1801
|
-
C(e.$slots, "optionCsv", {}, void 0, !0)
|
|
1802
|
-
]),
|
|
1803
|
-
key: "3"
|
|
1804
|
-
} : void 0,
|
|
1805
|
-
e.$slots.optionImg ? {
|
|
1806
|
-
name: "optionImg",
|
|
1807
|
-
fn: b(() => [
|
|
1808
|
-
C(e.$slots, "optionImg", {}, void 0, !0)
|
|
1809
|
-
]),
|
|
1810
|
-
key: "4"
|
|
1811
|
-
} : void 0,
|
|
1812
|
-
e.$slots.optionTable ? {
|
|
1813
|
-
name: "optionTable",
|
|
1814
|
-
fn: b(() => [
|
|
1815
|
-
C(e.$slots, "optionTable", {}, void 0, !0)
|
|
1816
|
-
]),
|
|
1817
|
-
key: "5"
|
|
1818
|
-
} : void 0,
|
|
1819
|
-
e.$slots.optionLabels ? {
|
|
1820
|
-
name: "optionLabels",
|
|
1821
|
-
fn: b(() => [
|
|
1822
|
-
C(e.$slots, "optionLabels", {}, void 0, !0)
|
|
1823
|
-
]),
|
|
1824
|
-
key: "6"
|
|
1825
|
-
} : void 0,
|
|
1826
|
-
e.$slots.optionStack ? {
|
|
1827
|
-
name: "optionStack",
|
|
1828
|
-
fn: b(() => [
|
|
1829
|
-
C(e.$slots, "optionStack", {}, void 0, !0)
|
|
1830
|
-
]),
|
|
1831
|
-
key: "7"
|
|
1832
|
-
} : void 0,
|
|
1833
|
-
e.$slots.optionFullscreen ? {
|
|
1834
|
-
name: "optionFullscreen",
|
|
1835
|
-
fn: b(({ toggleFullscreen: l, isFullscreen: u }) => [
|
|
1836
|
-
C(e.$slots, "optionFullscreen", j(G({ toggleFullscreen: l, isFullscreen: u })), void 0, !0)
|
|
1837
|
-
]),
|
|
1838
|
-
key: "8"
|
|
1839
|
-
} : void 0,
|
|
1840
|
-
e.$slots.optionAnnotator ? {
|
|
1841
|
-
name: "optionAnnotator",
|
|
1842
|
-
fn: b(({ toggleAnnotator: l, isAnnotator: u }) => [
|
|
1843
|
-
C(e.$slots, "optionAnnotator", j(G({ toggleAnnotator: l, isAnnotator: u })), void 0, !0)
|
|
1844
|
-
]),
|
|
1845
|
-
key: "9"
|
|
1846
|
-
} : void 0,
|
|
1847
|
-
e.$slots.optionAltCopy ? {
|
|
1848
|
-
name: "optionAltCopy",
|
|
1849
|
-
fn: b(({ altCopy: l }) => [
|
|
1850
|
-
C(e.$slots, "optionAltCopy", j(G({ altCopy: l })), void 0, !0)
|
|
1851
|
-
]),
|
|
1852
|
-
key: "10"
|
|
1853
|
-
} : void 0
|
|
1854
|
-
]), 1032, ["backgroundColor", "color", "isPrinting", "isImaging", "uid", "hasTooltip", "hasPdf", "hasImg", "hasXls", "hasLabel", "hasStack", "hasFullscreen", "hasAltCopy", "hasTable", "isFullscreen", "isTooltip", "isStacked", "titles", "chartElement", "position", "hasAnnotator", "isAnnotation", "callbacks", "printScale", "tableDialog", "isCursorPointer", "onGeneratePdf", "style"])) : N("", !0),
|
|
1855
|
-
W("div", {
|
|
1856
|
-
class: "vue-ui-xy-canvas",
|
|
1857
|
-
style: ve(`position: relative; aspect-ratio: ${La.value}`),
|
|
1858
|
-
ref_key: "container",
|
|
1859
|
-
ref: ue
|
|
1860
|
-
}, [
|
|
1861
|
-
W("canvas", {
|
|
1862
|
-
ref_key: "canvas",
|
|
1863
|
-
ref: k,
|
|
1864
|
-
"aria-label": pt.value,
|
|
1865
|
-
"aria-describedby": `chart-instructions-${Z.value}`,
|
|
1866
|
-
role: "img",
|
|
1867
|
-
"aria-live": "polite",
|
|
1868
|
-
tabindex: "0",
|
|
1869
|
-
style: { width: "100%", height: "100%" },
|
|
1870
|
-
onMousemove: t[0] || (t[0] = (l) => Gt(l)),
|
|
1871
|
-
onMouseleave: tl,
|
|
1872
|
-
onFocus: Qt,
|
|
1873
|
-
onBlur: el,
|
|
1874
|
-
onKeydown: al
|
|
1875
|
-
}, null, 40, eo),
|
|
1876
|
-
e.$slots.hint ? (I(), $e("div", ao, [
|
|
1877
|
-
C(e.$slots, "hint", j(G({
|
|
1878
|
-
hint: a.value.a11y.translations.keyboardNavigation,
|
|
1879
|
-
isVisible: Ke.value
|
|
1880
|
-
})), void 0, !0)
|
|
1881
|
-
])) : N("", !0),
|
|
1882
|
-
C(e.$slots, "skeleton", {}, () => [
|
|
1883
|
-
z(Oe) ? (I(), q(Ol, { key: 0 })) : N("", !0)
|
|
1884
|
-
], !0),
|
|
1885
|
-
et(z(it), {
|
|
1886
|
-
teleportTo: a.value.style.chart.tooltip.teleportTo,
|
|
1887
|
-
show: d.value.showTooltip && he.value,
|
|
1888
|
-
backgroundColor: a.value.style.chart.tooltip.backgroundColor,
|
|
1889
|
-
color: a.value.style.chart.tooltip.color,
|
|
1890
|
-
fontSize: a.value.style.chart.tooltip.fontSize,
|
|
1891
|
-
borderRadius: a.value.style.chart.tooltip.borderRadius,
|
|
1892
|
-
borderColor: a.value.style.chart.tooltip.borderColor,
|
|
1893
|
-
borderWidth: a.value.style.chart.tooltip.borderWidth,
|
|
1894
|
-
position: a.value.style.chart.tooltip.position,
|
|
1895
|
-
offsetY: a.value.style.chart.tooltip.offsetY,
|
|
1896
|
-
parent: e.$refs.xy,
|
|
1897
|
-
content: fe.value,
|
|
1898
|
-
isFullscreen: me.value,
|
|
1899
|
-
backgroundOpacity: a.value.style.chart.tooltip.backgroundOpacity,
|
|
1900
|
-
isCustom: z(ia)(a.value.style.chart.tooltip.customFormat),
|
|
1901
|
-
smooth: a.value.style.chart.tooltip.smooth,
|
|
1902
|
-
backdropFilter: a.value.style.chart.tooltip.backdropFilter,
|
|
1903
|
-
smoothForce: a.value.style.chart.tooltip.smoothForce,
|
|
1904
|
-
smoothSnapThreshold: a.value.style.chart.tooltip.smoothSnapThreshold,
|
|
1905
|
-
isA11yMode: Re.value,
|
|
1906
|
-
a11yPosition: pa.value
|
|
1907
|
-
}, {
|
|
1908
|
-
"tooltip-before": b(() => [
|
|
1909
|
-
C(e.$slots, "tooltip-before", j(G({ ...Me.value })), void 0, !0)
|
|
1910
|
-
]),
|
|
1911
|
-
tooltip: b(() => [
|
|
1912
|
-
C(e.$slots, "tooltip", j(G({ ...Me.value })), void 0, !0)
|
|
1913
|
-
]),
|
|
1914
|
-
"tooltip-after": b(() => [
|
|
1915
|
-
C(e.$slots, "tooltip-after", j(G({ ...Me.value })), void 0, !0)
|
|
1916
|
-
]),
|
|
1917
|
-
_: 3
|
|
1918
|
-
}, 8, ["teleportTo", "show", "backgroundColor", "color", "fontSize", "borderRadius", "borderColor", "borderWidth", "position", "offsetY", "parent", "content", "isFullscreen", "backgroundOpacity", "isCustom", "smooth", "backdropFilter", "smoothForce", "smoothSnapThreshold", "isA11yMode", "a11yPosition"])
|
|
1919
|
-
], 4),
|
|
1920
|
-
a.value.style.chart.zoom.show && O.value > 6 && U.value && ga.value && !z(Oe) ? (I(), q(ql, {
|
|
1921
|
-
key: 2,
|
|
1922
|
-
ref_key: "chartSlicer",
|
|
1923
|
-
ref: ae,
|
|
1924
|
-
allMinimaps: It.value,
|
|
1925
|
-
background: a.value.style.chart.zoom.color,
|
|
1926
|
-
borderColor: a.value.style.chart.backgroundColor,
|
|
1927
|
-
customFormat: a.value.style.chart.zoom.customFormat,
|
|
1928
|
-
cutNullValues: Ee.value,
|
|
1929
|
-
enableRangeHandles: a.value.style.chart.zoom.enableRangeHandles,
|
|
1930
|
-
enableSelectionDrag: a.value.style.chart.zoom.enableSelectionDrag,
|
|
1931
|
-
end: s.value.end,
|
|
1932
|
-
focusOnDrag: a.value.style.chart.zoom.focusOnDrag,
|
|
1933
|
-
focusRangeRatio: a.value.style.chart.zoom.focusRangeRatio,
|
|
1934
|
-
fontSize: a.value.style.chart.zoom.fontSize,
|
|
1935
|
-
immediate: !a.value.style.chart.zoom.preview.enable,
|
|
1936
|
-
inputColor: a.value.style.chart.zoom.color,
|
|
1937
|
-
isPreview: Ft.value,
|
|
1938
|
-
labelLeft: a.value.style.chart.grid.x.timeLabels.values[s.value.start] ? w.value[s.value.start]?.text : "",
|
|
1939
|
-
labelRight: a.value.style.chart.grid.x.timeLabels.values[s.value.end - 1] ? w.value[s.value.end - 1]?.text : "",
|
|
1940
|
-
max: O.value,
|
|
1941
|
-
min: 0,
|
|
1942
|
-
minimap: At.value,
|
|
1943
|
-
minimapCompact: a.value.style.chart.zoom.minimap.compact,
|
|
1944
|
-
minimapFrameColor: a.value.style.chart.zoom.minimap.frameColor,
|
|
1945
|
-
minimapIndicatorColor: a.value.style.chart.zoom.minimap.indicatorColor,
|
|
1946
|
-
minimapLineColor: a.value.style.chart.zoom.minimap.lineColor,
|
|
1947
|
-
minimapMerged: a.value.style.chart.zoom.minimap.merged,
|
|
1948
|
-
minimapSelectedColor: a.value.style.chart.zoom.minimap.selectedColor,
|
|
1949
|
-
minimapSelectedColorOpacity: a.value.style.chart.zoom.minimap.selectedColorOpacity,
|
|
1950
|
-
minimapSelectedIndex: h.value,
|
|
1951
|
-
minimapSelectionRadius: a.value.style.chart.zoom.minimap.selectionRadius,
|
|
1952
|
-
preciseLabels: Na.value?.length ? Na.value : w.value,
|
|
1953
|
-
refreshEndPoint: a.value.style.chart.zoom.endIndex !== null ? a.value.style.chart.zoom.endIndex + 1 : O.value,
|
|
1954
|
-
refreshStartPoint: a.value.style.chart.zoom.startIndex !== null ? a.value.style.chart.zoom.startIndex : 0,
|
|
1955
|
-
selectColor: a.value.style.chart.zoom.highlightColor,
|
|
1956
|
-
selectedSeries: M.value,
|
|
1957
|
-
smoothMinimap: a.value.style.chart.zoom.minimap.smooth,
|
|
1958
|
-
start: s.value.start,
|
|
1959
|
-
timeLabels: w.value,
|
|
1960
|
-
usePreciseLabels: a.value.style.chart.grid.x.timeLabels.datetimeFormatter.enable && !a.value.style.chart.zoom.useDefaultFormat,
|
|
1961
|
-
textColor: a.value.style.chart.color,
|
|
1962
|
-
useResetSlot: a.value.style.chart.zoom.useResetSlot,
|
|
1963
|
-
valueEnd: s.value.end,
|
|
1964
|
-
valueStart: s.value.start,
|
|
1965
|
-
verticalHandles: a.value.style.chart.zoom.minimap.verticalHandles,
|
|
1966
|
-
maxWidth: a.value.style.chart.zoom.maxWidth,
|
|
1967
|
-
additionalMinimapHeight: a.value.style.chart.zoom.minimap.additionalHeight,
|
|
1968
|
-
handleType: a.value.style.chart.zoom.minimap.handleType,
|
|
1969
|
-
handleIconColor: a.value.style.chart.zoom.minimap.handleIconColor,
|
|
1970
|
-
handleBorderWidth: a.value.style.chart.zoom.minimap.handleBorderWidth,
|
|
1971
|
-
handleBorderColor: a.value.style.chart.zoom.minimap.handleBorderColor,
|
|
1972
|
-
handleFill: a.value.style.chart.zoom.minimap.handleFill,
|
|
1973
|
-
handleWidth: a.value.style.chart.zoom.minimap.handleWidth,
|
|
1974
|
-
onFutureEnd: t[1] || (t[1] = (l) => Ma("end", l)),
|
|
1975
|
-
onFutureStart: t[2] || (t[2] = (l) => Ma("start", l)),
|
|
1976
|
-
onReset: xe,
|
|
1977
|
-
onTrapMouse: wt,
|
|
1978
|
-
"onUpdate:end": Rt,
|
|
1979
|
-
"onUpdate:start": Pt
|
|
1980
|
-
}, {
|
|
1981
|
-
"reset-action": b(({ reset: l }) => [
|
|
1982
|
-
C(e.$slots, "reset-action", j(G({ reset: l })), void 0, !0)
|
|
1983
|
-
]),
|
|
1984
|
-
_: 3
|
|
1985
|
-
}, 8, ["allMinimaps", "background", "borderColor", "customFormat", "cutNullValues", "enableRangeHandles", "enableSelectionDrag", "end", "focusOnDrag", "focusRangeRatio", "fontSize", "immediate", "inputColor", "isPreview", "labelLeft", "labelRight", "max", "minimap", "minimapCompact", "minimapFrameColor", "minimapIndicatorColor", "minimapLineColor", "minimapMerged", "minimapSelectedColor", "minimapSelectedColorOpacity", "minimapSelectedIndex", "minimapSelectionRadius", "preciseLabels", "refreshEndPoint", "refreshStartPoint", "selectColor", "selectedSeries", "smoothMinimap", "start", "timeLabels", "usePreciseLabels", "textColor", "useResetSlot", "valueEnd", "valueStart", "verticalHandles", "maxWidth", "additionalMinimapHeight", "handleType", "handleIconColor", "handleBorderWidth", "handleBorderColor", "handleFill", "handleWidth"])) : N("", !0),
|
|
1986
|
-
W("div", {
|
|
1987
|
-
id: `legend-bottom-${Z.value}`
|
|
1988
|
-
}, null, 8, to),
|
|
1989
|
-
ya.value && (a.value.style.chart.legend.show || e.$slots.legend) ? (I(), q(hl, {
|
|
1990
|
-
key: 3,
|
|
1991
|
-
to: a.value.style.chart.legend.position === "top" ? `#legend-top-${Z.value}` : `#legend-bottom-${Z.value}`
|
|
1992
|
-
}, [
|
|
1993
|
-
W("div", {
|
|
1994
|
-
ref_key: "chartLegend",
|
|
1995
|
-
ref: fa
|
|
1996
|
-
}, [
|
|
1997
|
-
C(e.$slots, "legend", { legend: We.value }, () => [
|
|
1998
|
-
a.value.style.chart.legend.show && U.value ? (I(), q(Vl, {
|
|
1999
|
-
legendSet: We.value,
|
|
2000
|
-
config: ul.value,
|
|
2001
|
-
key: `legend_${je.value}`,
|
|
2002
|
-
isCursorPointer: le.value,
|
|
2003
|
-
onClickMarker: t[3] || (t[3] = ({ i: l }) => He(l))
|
|
2004
|
-
}, {
|
|
2005
|
-
item: b(({ legend: l, index: u }) => [
|
|
2006
|
-
W("div", {
|
|
2007
|
-
onClick: (n) => l.segregate(),
|
|
2008
|
-
style: ve(`opacity:${p.value.includes(u) ? 0.5 : 1}`)
|
|
2009
|
-
}, Ae(l.name), 13, lo)
|
|
2010
|
-
]),
|
|
2011
|
-
legendToggle: b(() => [
|
|
2012
|
-
We.value.length > 2 && a.value.style.chart.legend.selectAllToggle.show && !z(Oe) ? (I(), q(jl, {
|
|
2013
|
-
key: 0,
|
|
2014
|
-
backgroundColor: a.value.style.chart.legend.selectAllToggle.backgroundColor,
|
|
2015
|
-
color: a.value.style.chart.legend.selectAllToggle.color,
|
|
2016
|
-
fontSize: a.value.style.chart.legend.fontSize,
|
|
2017
|
-
checked: p.value.length > 0,
|
|
2018
|
-
isCursorPointer: le.value,
|
|
2019
|
-
onToggle: ll
|
|
2020
|
-
}, null, 8, ["backgroundColor", "color", "fontSize", "checked", "isCursorPointer"])) : N("", !0)
|
|
2021
|
-
]),
|
|
2022
|
-
_: 1
|
|
2023
|
-
}, 8, ["legendSet", "config", "isCursorPointer"])) : N("", !0)
|
|
2024
|
-
], !0)
|
|
2025
|
-
], 512)
|
|
2026
|
-
], 8, ["to"])) : N("", !0),
|
|
2027
|
-
e.$slots.watermark ? (I(), $e("div", oo, [
|
|
2028
|
-
C(e.$slots, "watermark", j(G({
|
|
2029
|
-
isPrinting: z(Ca) || z(ka) || Ze.value
|
|
2030
|
-
})), void 0, !0)
|
|
2031
|
-
])) : N("", !0),
|
|
2032
|
-
e.$slots.source ? (I(), $e("div", {
|
|
2033
|
-
key: 5,
|
|
2034
|
-
ref_key: "source",
|
|
2035
|
-
ref: ma,
|
|
2036
|
-
dir: "auto"
|
|
2037
|
-
}, [
|
|
2038
|
-
C(e.$slots, "source", {}, void 0, !0)
|
|
2039
|
-
], 512)) : N("", !0),
|
|
2040
|
-
U.value && a.value.userOptions.buttons.table ? (I(), q(fl(Se.value.component), ml({ key: 6 }, Se.value.props, {
|
|
2041
|
-
ref_key: "tableUnit",
|
|
2042
|
-
ref: ye,
|
|
2043
|
-
onClose: Za
|
|
2044
|
-
}), Qa({
|
|
2045
|
-
content: b(() => [
|
|
2046
|
-
(I(), q(z(vt), {
|
|
2047
|
-
key: `table_${qe.value}`,
|
|
2048
|
-
colNames: Xe.value.colNames,
|
|
2049
|
-
head: Xe.value.head,
|
|
2050
|
-
body: Xe.value.body,
|
|
2051
|
-
config: Xe.value.config,
|
|
2052
|
-
title: a.value.table.useDialog ? "" : Se.value.title,
|
|
2053
|
-
withCloseButton: !a.value.table.useDialog,
|
|
2054
|
-
isCursorPointer: le.value,
|
|
2055
|
-
onClose: Za
|
|
2056
|
-
}, {
|
|
2057
|
-
th: b(({ th: l }) => [
|
|
2058
|
-
W("div", { innerHTML: l }, null, 8, so)
|
|
2059
|
-
]),
|
|
2060
|
-
td: b(({ td: l }) => [
|
|
2061
|
-
at(Ae(l), 1)
|
|
2062
|
-
]),
|
|
2063
|
-
_: 1
|
|
2064
|
-
}, 8, ["colNames", "head", "body", "config", "title", "withCloseButton", "isCursorPointer"]))
|
|
2065
|
-
]),
|
|
2066
|
-
_: 2
|
|
2067
|
-
}, [
|
|
2068
|
-
a.value.table.useDialog ? {
|
|
2069
|
-
name: "title",
|
|
2070
|
-
fn: b(() => [
|
|
2071
|
-
at(Ae(Se.value.title), 1)
|
|
2072
|
-
]),
|
|
2073
|
-
key: "0"
|
|
2074
|
-
} : void 0,
|
|
2075
|
-
a.value.table.useDialog ? {
|
|
2076
|
-
name: "actions",
|
|
2077
|
-
fn: b(() => [
|
|
2078
|
-
W("button", {
|
|
2079
|
-
tabindex: "0",
|
|
2080
|
-
class: "vue-ui-user-options-button",
|
|
2081
|
-
onClick: t[4] || (t[4] = (l) => la(a.value.userOptions.callbacks.csv)),
|
|
2082
|
-
style: ve({ cursor: le.value ? "pointer" : "default" })
|
|
2083
|
-
}, [
|
|
2084
|
-
et(Ul, {
|
|
2085
|
-
name: "fileCsv",
|
|
2086
|
-
stroke: Se.value.props.color
|
|
2087
|
-
}, null, 8, ["stroke"])
|
|
2088
|
-
], 4)
|
|
2089
|
-
]),
|
|
2090
|
-
key: "1"
|
|
2091
|
-
} : void 0
|
|
2092
|
-
]), 1040)) : N("", !0),
|
|
2093
|
-
a.value.userOptions.buttons.annotator && f.value.length ? (I(), q(z(dt), {
|
|
2094
|
-
key: 7,
|
|
2095
|
-
parent: K.value,
|
|
2096
|
-
backgroundColor: a.value.style.chart.backgroundColor,
|
|
2097
|
-
color: a.value.style.chart.color,
|
|
2098
|
-
active: we.value,
|
|
2099
|
-
isCursorPointer: le.value,
|
|
2100
|
-
onClose: oa
|
|
2101
|
-
}, null, 8, ["parent", "backgroundColor", "color", "active", "isCursorPointer"])) : N("", !0)
|
|
2102
|
-
], 46, Zl));
|
|
2103
|
-
}
|
|
2104
|
-
}, $o = /* @__PURE__ */ Gl(uo, [["__scopeId", "data-v-4a0b7ab5"]]);
|
|
2105
|
-
export {
|
|
2106
|
-
$o as default
|
|
2107
|
-
};
|