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
|
@@ -0,0 +1,1774 @@
|
|
|
1
|
+
import { t as e } from "./rolldown-runtime-CAFD8bLK.js";
|
|
2
|
+
import { G as t, H as n, J as r, Lt as i, S as a, St as o, Tt as s, X as c, _t as l, a as u, dt as ee, h as te, i as ne, jt as re, kt as ie, nt as ae, pt as oe, x as se, y as ce, yt as le, zt as ue } from "./lib-B83ZCydz.js";
|
|
3
|
+
import { n as de, r as fe, t as pe } from "./useTimeLabels-C0x7zUXP.js";
|
|
4
|
+
import { t as me } from "./useConfig-KnOLHtlJ.js";
|
|
5
|
+
import { t as he } from "./usePrinter-CMLF900n.js";
|
|
6
|
+
import { n as ge, t as _e } from "./BaseScanner-C7dmAref.js";
|
|
7
|
+
import { t as ve } from "./useNestedProp-CcxL1gUU.js";
|
|
8
|
+
import { t as ye } from "./useThemeCheck-rFK9Zlb_.js";
|
|
9
|
+
import { t as be } from "./img-NMY-_LiJ.js";
|
|
10
|
+
import { n as xe } from "./Title-ByyzJzpc.js";
|
|
11
|
+
import { t as Se } from "./_plugin-vue_export-helper-Dq1MygBL.js";
|
|
12
|
+
import { a as Ce, c as we, i as d, n as Te, o as Ee, r as De, s as f, t as Oe } from "./canvas-lib-DTaADQOK.js";
|
|
13
|
+
import { t as ke } from "./useResponsive-CrAInupd.js";
|
|
14
|
+
import { t as Ae } from "./BaseIcon-CL6Y7alf.js";
|
|
15
|
+
import { t as je } from "./SlicerPreview-BLlQTUI_.js";
|
|
16
|
+
import { t as Me } from "./vue-ui-accordion-Cf-jZELj.js";
|
|
17
|
+
import { t as Ne } from "./BaseLegendToggle-BvPOFMVZ.js";
|
|
18
|
+
import { t as Pe } from "./useUserOptionState-CjPJPTg2.js";
|
|
19
|
+
import { t as Fe } from "./useChartAccessibility-Do37qcw2.js";
|
|
20
|
+
import { t as Ie } from "./Legend-BPb8i4aC.js";
|
|
21
|
+
import { t as Le } from "./vue_ui_xy_canvas-CMHGNrLf.js";
|
|
22
|
+
import { Teleport as Re, computed as p, createBlock as m, createCommentVNode as h, createElementBlock as ze, createElementVNode as g, createSlots as Be, createTextVNode as Ve, createVNode as He, defineAsyncComponent as Ue, guardReactiveProps as _, mergeProps as We, nextTick as Ge, normalizeClass as Ke, normalizeProps as v, normalizeStyle as qe, onBeforeUnmount as Je, onMounted as Ye, openBlock as y, ref as b, renderSlot as x, resolveDynamicComponent as Xe, shallowRef as Ze, toDisplayString as Qe, toRefs as $e, unref as S, useSlots as et, watch as C, watchEffect as tt, withCtx as w } from "vue";
|
|
23
|
+
//#region src/components/vue-ui-xy-canvas.vue
|
|
24
|
+
var nt = /* @__PURE__ */ e({ default: () => pt }), rt = ["id"], it = ["id"], at = {
|
|
25
|
+
class: "sr-only",
|
|
26
|
+
"aria-live": "polite",
|
|
27
|
+
"aria-atomic": "true"
|
|
28
|
+
}, ot = ["id"], st = ["aria-label", "aria-describedby"], ct = {
|
|
29
|
+
key: 0,
|
|
30
|
+
style: {
|
|
31
|
+
position: "absolute",
|
|
32
|
+
top: "100%",
|
|
33
|
+
left: "0",
|
|
34
|
+
width: "100%"
|
|
35
|
+
},
|
|
36
|
+
"data-dom-to-png-ignore": "",
|
|
37
|
+
"aria-hidden": "true"
|
|
38
|
+
}, lt = ["id"], ut = ["onClick"], dt = {
|
|
39
|
+
key: 4,
|
|
40
|
+
class: "vue-data-ui-watermark"
|
|
41
|
+
}, ft = ["innerHTML"], pt = /* @__PURE__ */ Se({
|
|
42
|
+
__name: "vue-ui-xy-canvas",
|
|
43
|
+
props: {
|
|
44
|
+
dataset: {
|
|
45
|
+
type: Array,
|
|
46
|
+
default() {
|
|
47
|
+
return [];
|
|
48
|
+
}
|
|
49
|
+
},
|
|
50
|
+
config: {
|
|
51
|
+
type: Object,
|
|
52
|
+
default() {
|
|
53
|
+
return {};
|
|
54
|
+
}
|
|
55
|
+
},
|
|
56
|
+
selectedXIndex: {
|
|
57
|
+
type: Number,
|
|
58
|
+
default: void 0
|
|
59
|
+
}
|
|
60
|
+
},
|
|
61
|
+
emits: [
|
|
62
|
+
"selectLegend",
|
|
63
|
+
"selectX",
|
|
64
|
+
"copyAlt"
|
|
65
|
+
],
|
|
66
|
+
setup(e, { expose: Se, emit: nt }) {
|
|
67
|
+
let pt = Ue(() => import("./Tooltip-V6Z0Ko-1.js")), mt = Ue(() => import("./DataTable-ZG4GX2Zg.js")), ht = Ue(() => import("./UserOptions-Gaw1761w.js").then((e) => e.n)), gt = Ue(() => import("./NonSvgPenAndPaper-BT3YMjgo.js")), _t = Ue(() => import("./BaseDraggableDialog-LE75fWYz.js").then((e) => e.n)), { vue_ui_xy_canvas: vt } = me(), { isThemeValid: yt, warnInvalidTheme: bt } = ye(), T = e, E = b(n()), D = b(null), xt = b(null), O = b(null), k = b(1), A = b(1), St = b(!1), j = b(null), Ct = b(""), wt = b(null), M = b([]), Tt = b(1), N = b(!0), P = b(!0), Et = b(null), Dt = b(0), Ot = b(!1), kt = b(null), At = b(null), F = b(null), jt = b(null), Mt = b(0), Nt = b(0), Pt = b(0), I = b(null), Ft = b(!1), It = b(null), Lt = b(null), Rt = b(!1), zt = b(!1), Bt = b(!1), L = b(null), Vt = b(!1), Ht = b(!1), Ut = b(!1), R = b(null), Wt = b({
|
|
68
|
+
x: 0,
|
|
69
|
+
y: 0
|
|
70
|
+
}), z = p(() => Array.isArray($t.value) && $t.value.length > 0), Gt = nt, Kt = et();
|
|
71
|
+
Ye(() => {
|
|
72
|
+
Kt["chart-background"] && console.warn("VueUiXyCanvas does not support the #chart-background slot.");
|
|
73
|
+
});
|
|
74
|
+
let B = b(on()), qt = p(() => {
|
|
75
|
+
let e = B.value.style.chart.title.text || "XY chart", t = J.value.end - J.value.start;
|
|
76
|
+
return `${e}. ${q.value.filter((e) => !M.value.includes(e.absoluteIndex)).length} series. ${t} visible data points.`;
|
|
77
|
+
}), Jt = p(() => {
|
|
78
|
+
if (R.value === null) return "";
|
|
79
|
+
let e = R.value + J.value.start;
|
|
80
|
+
return `${B.value.style.chart.grid.x.timeLabels.values.slice(J.value.start, J.value.end)[R.value] ? B.value.style.chart.tooltip.useDefaultTimeFormat ? Z.value.slice(J.value.start, J.value.end)[R.value]?.text : Yn.value[R.value]?.text : Z.value[e]?.text ?? `Point ${e + 1}`}. ${q.value.filter((e) => !M.value.includes(e.absoluteIndex)).map((e) => {
|
|
81
|
+
let t = e.series[R.value], n = t?.value ?? t ?? null;
|
|
82
|
+
return `${e.name}: ${n}`;
|
|
83
|
+
}).join(". ")}.`;
|
|
84
|
+
}), Yt = p(() => B.value.userOptions.useCursorPointer), Xt = p(() => !!B.value.debug), Zt = p(() => ue({
|
|
85
|
+
defaultConfig: {
|
|
86
|
+
userOptions: { show: !1 },
|
|
87
|
+
table: { show: !1 },
|
|
88
|
+
style: { chart: {
|
|
89
|
+
backgroundColor: "#99999930",
|
|
90
|
+
grid: {
|
|
91
|
+
x: {
|
|
92
|
+
axisColor: "#6A6A6A",
|
|
93
|
+
timeLabels: { show: !1 },
|
|
94
|
+
axisName: "",
|
|
95
|
+
horizontalLines: { color: "#6A6A6A" }
|
|
96
|
+
},
|
|
97
|
+
y: {
|
|
98
|
+
axisColor: "#6A6A6A",
|
|
99
|
+
axisLabels: { show: !1 },
|
|
100
|
+
axisName: "",
|
|
101
|
+
verticalLines: { color: "#6A6A6A" }
|
|
102
|
+
},
|
|
103
|
+
zeroLine: { color: "#6A6A6A" }
|
|
104
|
+
},
|
|
105
|
+
legend: { backgroundColor: "#99999930" },
|
|
106
|
+
paddingProportions: { left: .05 },
|
|
107
|
+
scale: {
|
|
108
|
+
max: null,
|
|
109
|
+
min: null
|
|
110
|
+
},
|
|
111
|
+
zoom: {
|
|
112
|
+
endIndex: null,
|
|
113
|
+
startIndex: null
|
|
114
|
+
}
|
|
115
|
+
} }
|
|
116
|
+
},
|
|
117
|
+
userConfig: B.value.skeletonConfig ?? {}
|
|
118
|
+
})), { loading: Qt, FINAL_DATASET: $t } = ge({
|
|
119
|
+
...$e(T),
|
|
120
|
+
FINAL_CONFIG: B,
|
|
121
|
+
prepareConfig: on,
|
|
122
|
+
skeletonDataset: T.config?.skeletonDataset ?? [{
|
|
123
|
+
name: "",
|
|
124
|
+
series: [
|
|
125
|
+
0,
|
|
126
|
+
1,
|
|
127
|
+
2,
|
|
128
|
+
3,
|
|
129
|
+
5,
|
|
130
|
+
8,
|
|
131
|
+
13,
|
|
132
|
+
21,
|
|
133
|
+
34,
|
|
134
|
+
55,
|
|
135
|
+
89,
|
|
136
|
+
134
|
|
137
|
+
],
|
|
138
|
+
type: "line",
|
|
139
|
+
smooth: !0,
|
|
140
|
+
color: "#BABABA"
|
|
141
|
+
}, {
|
|
142
|
+
name: "",
|
|
143
|
+
series: [
|
|
144
|
+
0,
|
|
145
|
+
.5,
|
|
146
|
+
1,
|
|
147
|
+
1.5,
|
|
148
|
+
2.5,
|
|
149
|
+
4,
|
|
150
|
+
6.5,
|
|
151
|
+
10.5,
|
|
152
|
+
17,
|
|
153
|
+
27.5,
|
|
154
|
+
44.5,
|
|
155
|
+
67
|
|
156
|
+
],
|
|
157
|
+
type: "bar",
|
|
158
|
+
color: "#AAAAAA"
|
|
159
|
+
}],
|
|
160
|
+
skeletonConfig: ue({
|
|
161
|
+
defaultConfig: B.value,
|
|
162
|
+
userConfig: Zt.value
|
|
163
|
+
})
|
|
164
|
+
}), { userOptionsVisible: en, setUserOptionsVisibility: tn, keepUserOptionState: nn } = Pe({ config: B.value }), { svgRef: V } = Fe({ config: B.value.style.chart.title });
|
|
165
|
+
function rn() {
|
|
166
|
+
tn(!0);
|
|
167
|
+
}
|
|
168
|
+
function an() {
|
|
169
|
+
tn(!1), Gt("selectX", {
|
|
170
|
+
seriesIndex: null,
|
|
171
|
+
datapoint: null
|
|
172
|
+
}), j.value = null;
|
|
173
|
+
}
|
|
174
|
+
function on() {
|
|
175
|
+
let e = ve({
|
|
176
|
+
userConfig: T.config,
|
|
177
|
+
defaultConfig: vt
|
|
178
|
+
}), t = {}, n = e.theme;
|
|
179
|
+
if (n) if (!yt.value(e)) bt(e), t = e;
|
|
180
|
+
else {
|
|
181
|
+
let r = ve({
|
|
182
|
+
userConfig: Le[n] || T.config,
|
|
183
|
+
defaultConfig: e
|
|
184
|
+
});
|
|
185
|
+
t = {
|
|
186
|
+
...ve({
|
|
187
|
+
userConfig: T.config,
|
|
188
|
+
defaultConfig: r
|
|
189
|
+
}),
|
|
190
|
+
customPalette: e.customPalette.length ? e.customPalette : i[n] || s
|
|
191
|
+
};
|
|
192
|
+
}
|
|
193
|
+
else t = e;
|
|
194
|
+
return T.config && ee(T.config, "style.chart.grid.y.timeLabels") && (console.warn("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."), t.style.chart.grid.x.timeLabels = ve({
|
|
195
|
+
defaultConfig: t.style.chart.grid.x.timeLabels,
|
|
196
|
+
userConfig: T.config.style.chart.grid.y.timeLabels
|
|
197
|
+
})), t;
|
|
198
|
+
}
|
|
199
|
+
C(() => T.config, (e) => {
|
|
200
|
+
Qt.value || (B.value = on()), en.value = !B.value.userOptions.showOnChartHover, xr(), Mt.value += 1, Nt.value += 1, Pt.value += 1, H.value.showTable = B.value.table.show, H.value.showDataLabels = B.value.style.chart.dataLabels.show, H.value.stacked = B.value.style.chart.stacked, H.value.showTooltip = B.value.style.chart.tooltip.show;
|
|
201
|
+
}, { deep: !0 }), C(() => T.dataset, async (e) => {
|
|
202
|
+
!Array.isArray(e) || e.length === 0 || (await Ge(), V.value && !O.value && (O.value = V.value.getContext("2d", { willReadFrequently: !0 })), N.value = !0, P.value = !0, await kn(), Rn(), Mt.value += 1, Nt.value += 1, Pt.value += 1);
|
|
203
|
+
}, { deep: !0 });
|
|
204
|
+
let sn = b(B.value.style.chart.aspectRatio), { isPrinting: cn, isImaging: ln, generatePdf: un, generateImage: dn } = he({
|
|
205
|
+
elementId: `xy_canvas_${E.value}`,
|
|
206
|
+
fileName: B.value.style.chart.title.text || "vue-ui-xy-canvas",
|
|
207
|
+
options: B.value.userOptions.print
|
|
208
|
+
}), H = b({
|
|
209
|
+
showTable: B.value.table.show,
|
|
210
|
+
showDataLabels: B.value.style.chart.dataLabels.show,
|
|
211
|
+
stacked: B.value.style.chart.stacked,
|
|
212
|
+
showTooltip: B.value.style.chart.tooltip.show
|
|
213
|
+
});
|
|
214
|
+
function fn(e) {
|
|
215
|
+
Ot.value = e, Dt.value += 1;
|
|
216
|
+
}
|
|
217
|
+
let pn = p(() => se(B.value.customPalette)), mn = p(() => M.value.length === K.value.length), U = p(() => K.value ? Math.max(...K.value.filter((e, t) => mn.value ? !0 : !M.value.includes(e.absoluteIndex)).map((e) => e.series.length)) : 0);
|
|
218
|
+
function hn(e) {
|
|
219
|
+
L.value = e, Q();
|
|
220
|
+
}
|
|
221
|
+
let gn = b(0), _n = b(0);
|
|
222
|
+
function vn() {
|
|
223
|
+
if (!O.value || !B.value.style.chart.grid.x.timeLabels.show) return 0;
|
|
224
|
+
let e = Z.value || [], t = J.value.start ?? 0, n = J.value.end ?? 0;
|
|
225
|
+
if (!Math.max(0, n - t)) return 0;
|
|
226
|
+
let r = Math.round(k.value / 40 * B.value.style.chart.grid.x.timeLabels.fontSizeRatio), i = `${B.value.style.chart.grid.x.timeLabels.bold ? "bold " : ""}${r}px ${B.value.style.fontFamily}`;
|
|
227
|
+
O.value.save(), O.value.font = i;
|
|
228
|
+
let a = 0;
|
|
229
|
+
for (let r = t; r < n; r += 1) {
|
|
230
|
+
let t = e[r]?.text ?? `${r + 1}`, n = O.value.measureText(String(t));
|
|
231
|
+
n.width > a && (a = n.width);
|
|
232
|
+
}
|
|
233
|
+
O.value.restore();
|
|
234
|
+
let o = (B.value.style.chart.grid.x.timeLabels.rotation || 0) * Math.PI / 180, s = r, c = Math.abs(Math.sin(o)) * a + Math.abs(Math.cos(o)) * s, l = B.value.style.chart.grid.x.timeLabels.offsetY || 1, u = k.value / l;
|
|
235
|
+
return Math.max(0, u + c + 4);
|
|
236
|
+
}
|
|
237
|
+
function yn() {
|
|
238
|
+
gn.value = vn();
|
|
239
|
+
}
|
|
240
|
+
function bn() {
|
|
241
|
+
_n.value && cancelAnimationFrame(_n.value), _n.value = requestAnimationFrame(() => {
|
|
242
|
+
requestAnimationFrame(() => {
|
|
243
|
+
yn();
|
|
244
|
+
});
|
|
245
|
+
});
|
|
246
|
+
}
|
|
247
|
+
Je(() => {
|
|
248
|
+
_n.value && cancelAnimationFrame(_n.value);
|
|
249
|
+
});
|
|
250
|
+
let W = p(() => {
|
|
251
|
+
let e = k.value - k.value * (B.value.style.chart.paddingProportions.left + B.value.style.chart.paddingProportions.right), t = A.value * B.value.style.chart.paddingProportions.top, n = A.value * B.value.style.chart.paddingProportions.bottom, r = gn.value, i = A.value - n - r, a = A.value - (t + n) - r;
|
|
252
|
+
return {
|
|
253
|
+
canvasWidth: k.value,
|
|
254
|
+
canvasHeight: A.value,
|
|
255
|
+
left: k.value * B.value.style.chart.paddingProportions.left,
|
|
256
|
+
top: t,
|
|
257
|
+
right: k.value - k.value * B.value.style.chart.paddingProportions.right,
|
|
258
|
+
bottom: i,
|
|
259
|
+
width: e,
|
|
260
|
+
height: a,
|
|
261
|
+
slot: e / (J.value.end - J.value.start)
|
|
262
|
+
};
|
|
263
|
+
});
|
|
264
|
+
function xn(e, t) {
|
|
265
|
+
return e / t;
|
|
266
|
+
}
|
|
267
|
+
function Sn({ hasAutoScale: e, series: t, min: n, max: r, scale: i, yOffset: a, individualHeight: o, stackIndex: s = null }) {
|
|
268
|
+
return t.map((t, n) => {
|
|
269
|
+
let r = i.min < 0 ? Math.abs(i.min) : 0, c = xn(t + r, r + i.max), l, u;
|
|
270
|
+
e && (l = i.min, u = xn(t - l, i.max - l));
|
|
271
|
+
let ee = 0;
|
|
272
|
+
return ee = s === null ? W.value.bottom - W.value.height * (e ? u : c) : W.value.bottom - a - o * (e ? u : c), {
|
|
273
|
+
x: W.value.left + W.value.slot * n + W.value.slot / 2,
|
|
274
|
+
y: ee,
|
|
275
|
+
value: t
|
|
276
|
+
};
|
|
277
|
+
});
|
|
278
|
+
}
|
|
279
|
+
let G = p(() => {
|
|
280
|
+
let e = B.value.style.chart.scale.min === null ? Math.min(...K.value.filter((e, t) => !M.value.includes(e.absoluteIndex)).flatMap((e) => e.series.slice(J.value.start, J.value.end))) : B.value.style.chart.scale.min, t = B.value.style.chart.scale.max === null ? Math.max(...K.value.filter((e, t) => !M.value.includes(e.absoluteIndex)).flatMap((e) => e.series.slice(J.value.start, J.value.end))) : B.value.style.chart.scale.max, n = te(e < 0 ? e : 0, t === e ? e + 1 < 0 ? 0 : e + 1 : t < 0 ? 0 : t, B.value.style.chart.scale.ticks), r = n.min < 0 ? Math.abs(n.min) : 0, i = W.value.bottom - W.value.height * (r / (n.max + r));
|
|
281
|
+
return {
|
|
282
|
+
absoluteMin: r,
|
|
283
|
+
max: t,
|
|
284
|
+
min: e,
|
|
285
|
+
scale: n,
|
|
286
|
+
yLabels: n.ticks.map((e) => ({
|
|
287
|
+
y: W.value.bottom - W.value.height * ((e + r) / (n.max + r)),
|
|
288
|
+
x: W.value.left - 8,
|
|
289
|
+
value: e
|
|
290
|
+
})),
|
|
291
|
+
zero: i
|
|
292
|
+
};
|
|
293
|
+
}), Cn = p(() => q.value.map((e) => `
|
|
294
|
+
<div style="display:flex;flex-direction:row;gap:6px;align-items:center;">
|
|
295
|
+
<svg viewBox="0 0 10 10" height="12" width="12">
|
|
296
|
+
<circle cx="5" cy="5" r="5" fill="${e.color}"/>
|
|
297
|
+
</svg>
|
|
298
|
+
<span>${e.name ? e.name + ": " : ""}</span>
|
|
299
|
+
<span>${ne(B.value.style.chart.dataLabels.formatter, e.series[j.value] ?? "-", t({
|
|
300
|
+
p: e.prefix || "",
|
|
301
|
+
v: e.series[j.value] ?? "-",
|
|
302
|
+
s: e.suffix || "",
|
|
303
|
+
r: e.rounding || 0
|
|
304
|
+
}), {
|
|
305
|
+
datapoint: e,
|
|
306
|
+
seriesIndex: j.value
|
|
307
|
+
})}</span>
|
|
308
|
+
</div>
|
|
309
|
+
`)), wn = p(() => B.value.style.chart.line.cutNullValues), K = p(() => $t.value.map((e, t) => ({
|
|
310
|
+
...e,
|
|
311
|
+
series: l({
|
|
312
|
+
data: ie(e.series, [], wn.value),
|
|
313
|
+
threshold: B.value.downsample.threshold
|
|
314
|
+
}),
|
|
315
|
+
absoluteIndex: t,
|
|
316
|
+
color: ce(e.color || pn.value[t] || s[t] || s[t % s.length])
|
|
317
|
+
}))), Tn = p(() => {
|
|
318
|
+
if (!B.value.style.chart.zoom.minimap.show) return [];
|
|
319
|
+
let e = K.value.filter((e) => !M.value.includes(e.absoluteIndex)), t = Math.max(...e.map((e) => e.series.length)), n = [];
|
|
320
|
+
for (let r = 0; r < t; r += 1) n.push(e.map((e) => e.series[r] || 0).reduce((e, t) => (e || 0) + (t || 0), 0));
|
|
321
|
+
let r = Math.min(...n);
|
|
322
|
+
return n.map((e) => e + (r < 0 ? Math.abs(r) : 0));
|
|
323
|
+
}), En = p(() => B.value.style.chart.zoom.minimap.show ? K.value.map((e) => ({
|
|
324
|
+
...e,
|
|
325
|
+
isVisible: !M.value.includes(e.absoluteIndex)
|
|
326
|
+
})) : []);
|
|
327
|
+
C(U, (e) => {
|
|
328
|
+
e && kn();
|
|
329
|
+
});
|
|
330
|
+
let q = p(() => u(K.value.filter((e, t) => !M.value.includes(e.absoluteIndex))).map((e, t) => ({
|
|
331
|
+
...e,
|
|
332
|
+
series: e.series.slice(J.value.start, J.value.end)
|
|
333
|
+
})).map((e, t) => {
|
|
334
|
+
let n = [null, void 0].includes(e.scaleMin) ? Math.min(...e.series) || 0 : e.scaleMin, r = [null, void 0].includes(e.scaleMax) ? Math.max(...e.series) || 1 : e.scaleMax;
|
|
335
|
+
n === r && (n = n >= 0 ? r - 1 : n, r = r >= 0 ? r : n + 1);
|
|
336
|
+
let i = {
|
|
337
|
+
ratios: e.series.filter((e) => ![null, void 0].includes(e)).map((e) => (e - n) / (r - n)),
|
|
338
|
+
valueMin: n,
|
|
339
|
+
valueMax: r
|
|
340
|
+
}, a = e.scaleSteps || B.value.style.chart.scale.ticks, o;
|
|
341
|
+
o = e.autoScaling ? te(i.valueMin, i.valueMax, a) : te(i.valueMin < 0 ? i.valueMin : 0, i.valueMax <= 0 ? 0 : i.valueMax, a);
|
|
342
|
+
let s = H.value.stacked ? W.value.height * (1 - e.cumulatedStackRatio) : 0, c = H.value.stacked ? W.value.height / B.value.style.chart.stackGap : 0, l = H.value.stacked ? W.value.height * e.stackRatio - c : W.value.height, u = o.min < 0 ? Math.abs(o.min) : 0, ee;
|
|
343
|
+
ee = e.autoScaling && H.value.stacked && r <= 0 ? W.value.bottom - s - l : W.value.bottom - s - l * (u / (o.max + u));
|
|
344
|
+
let ne = o.ticks.map((e, t) => ({
|
|
345
|
+
y: W.value.bottom - s - l * (t / (o.ticks.length - 1)),
|
|
346
|
+
x: W.value.left - 8,
|
|
347
|
+
value: e
|
|
348
|
+
})), re = Sn({
|
|
349
|
+
hasAutoScale: H.value.stacked && e.autoScaling,
|
|
350
|
+
series: e.series,
|
|
351
|
+
min: H.value.stacked ? n : G.value.min,
|
|
352
|
+
max: H.value.stacked ? r : G.value.max,
|
|
353
|
+
scale: H.value.stacked ? o : G.value.scale,
|
|
354
|
+
yOffset: s,
|
|
355
|
+
individualHeight: l,
|
|
356
|
+
stackIndex: H.value.stacked ? t : null
|
|
357
|
+
});
|
|
358
|
+
return {
|
|
359
|
+
...e,
|
|
360
|
+
coordinatesLine: re,
|
|
361
|
+
min: n,
|
|
362
|
+
max: r,
|
|
363
|
+
localScale: o,
|
|
364
|
+
localZero: ee,
|
|
365
|
+
localMin: u,
|
|
366
|
+
localYLabels: ne,
|
|
367
|
+
yOffset: s,
|
|
368
|
+
individualHeight: l
|
|
369
|
+
};
|
|
370
|
+
})), J = b({
|
|
371
|
+
start: 0,
|
|
372
|
+
end: U.value
|
|
373
|
+
}), Y = b({
|
|
374
|
+
start: 0,
|
|
375
|
+
end: U.value
|
|
376
|
+
}), Dn = b(null);
|
|
377
|
+
function On() {
|
|
378
|
+
return new Promise((e) => requestAnimationFrame(() => requestAnimationFrame(() => e())));
|
|
379
|
+
}
|
|
380
|
+
Je(() => {
|
|
381
|
+
Dn.value && cancelAnimationFrame(Dn.value);
|
|
382
|
+
});
|
|
383
|
+
async function kn() {
|
|
384
|
+
Mn(), await Ge(), Dn.value && cancelAnimationFrame(Dn.value), Dn.value = requestAnimationFrame(async () => {
|
|
385
|
+
await On(), Mn();
|
|
386
|
+
});
|
|
387
|
+
}
|
|
388
|
+
let An = p(() => B.value.style.chart.zoom.preview.enable && (Y.value.start !== J.value.start || Y.value.end !== J.value.end));
|
|
389
|
+
function jn(e, t) {
|
|
390
|
+
Y.value[e] = t;
|
|
391
|
+
}
|
|
392
|
+
async function Mn() {
|
|
393
|
+
if (!Rt.value) {
|
|
394
|
+
Rt.value = !0;
|
|
395
|
+
try {
|
|
396
|
+
let { startIndex: e, endIndex: t } = B.value.style.chart.zoom, n = Math.max(...K.value.map((e) => e.series.length)), r = e ?? 0, i = t == null ? n : Math.min(Fn(t + 1), n);
|
|
397
|
+
Bt.value = !0, J.value.start = r, J.value.end = i, Y.value.start = r, Y.value.end = i, In(), zt.value = !0, await Ge(), F.value && (F.value.setStartValue(J.value.start), F.value.setEndValue(J.value.end));
|
|
398
|
+
} finally {
|
|
399
|
+
queueMicrotask(() => {
|
|
400
|
+
Bt.value = !1;
|
|
401
|
+
}), Rt.value = !1;
|
|
402
|
+
}
|
|
403
|
+
}
|
|
404
|
+
}
|
|
405
|
+
function Nn(e) {
|
|
406
|
+
Rt.value || Bt.value || e !== J.value.start && (J.value.start = e, Y.value.start = e, In());
|
|
407
|
+
}
|
|
408
|
+
function Pn(e) {
|
|
409
|
+
if (Rt.value || Bt.value) return;
|
|
410
|
+
let t = Fn(e);
|
|
411
|
+
t !== J.value.end && (J.value.end = t, Y.value.end = t, In());
|
|
412
|
+
}
|
|
413
|
+
function Fn(e) {
|
|
414
|
+
let t = U.value;
|
|
415
|
+
return e > t ? t : e < 0 || e < J.value.start ? B.value.style.chart.zoom.startIndex === null ? 1 : B.value.style.chart.zoom.startIndex + 1 : e;
|
|
416
|
+
}
|
|
417
|
+
function In() {
|
|
418
|
+
let e = Math.max(1, Math.max(...K.value.map((e) => e.series.length))), t = Math.max(0, Math.min(J.value.start ?? 0, e - 1)), n = Math.max(t + 1, Math.min(J.value.end ?? e, e));
|
|
419
|
+
(!Number.isFinite(t) || !Number.isFinite(n) || n <= t) && (t = 0, n = e), J.value = {
|
|
420
|
+
start: t,
|
|
421
|
+
end: n
|
|
422
|
+
}, Y.value.start = t, Y.value.end = n, F.value && (F.value.setStartValue(t), F.value.setEndValue(n));
|
|
423
|
+
}
|
|
424
|
+
let Ln = p(() => q.value.filter((e) => [
|
|
425
|
+
"line",
|
|
426
|
+
"plot",
|
|
427
|
+
void 0
|
|
428
|
+
].includes(e.type))), X = p(() => q.value.filter((e) => e.type === "bar"));
|
|
429
|
+
function Rn() {
|
|
430
|
+
if (!V.value || !xt.value) return;
|
|
431
|
+
let e = xt.value.offsetWidth, t = xt.value.offsetHeight;
|
|
432
|
+
V.value.width = e * Tt.value * 2, V.value.height = t * Tt.value * 2, k.value = e * Tt.value * 2, A.value = t * Tt.value * 2, O.value?.scale(Tt.value, Tt.value), Q();
|
|
433
|
+
}
|
|
434
|
+
C(z, async (e) => {
|
|
435
|
+
if (!e) {
|
|
436
|
+
Et.value = null, St.value = !1, j.value = null, I.value = null;
|
|
437
|
+
return;
|
|
438
|
+
}
|
|
439
|
+
await Ge(), V.value && !O.value && (O.value = V.value.getContext("2d", { willReadFrequently: !0 })), N.value = !0, P.value = !0, await kn(), Rn(), Q();
|
|
440
|
+
});
|
|
441
|
+
function zn() {
|
|
442
|
+
if (O.value && (O.value.clearRect(0, 0, 1e4, 1e4), O.value.fillStyle = B.value.style.chart.backgroundColor, O.value.fillRect(0, 0, W.value.canvasWidth, W.value.canvasHeight), z.value)) {
|
|
443
|
+
if (H.value.stacked) B.value.style.chart.grid.y.verticalLines.show && J.value.end - J.value.start < B.value.style.chart.grid.y.verticalLines.hideUnderXLength ? q.value.forEach((e) => {
|
|
444
|
+
for (let t = 0; t < J.value.end - J.value.start + 1; t += 1) d(O.value, [{
|
|
445
|
+
x: W.value.left + W.value.slot * t,
|
|
446
|
+
y: W.value.bottom - e.yOffset - e.individualHeight
|
|
447
|
+
}, {
|
|
448
|
+
x: W.value.left + W.value.slot * t,
|
|
449
|
+
y: W.value.bottom - e.yOffset
|
|
450
|
+
}], { color: B.value.style.chart.grid.y.verticalLines.color });
|
|
451
|
+
}) : B.value.style.chart.grid.y.verticalLines.show && J.value.end - J.value.start >= B.value.style.chart.grid.y.verticalLines.hideUnderXLength && q.value.forEach((e) => {
|
|
452
|
+
for (let t = J.value.start; t < J.value.end; t += 1) t % Math.floor((J.value.end - J.value.start) / B.value.style.chart.grid.x.timeLabels.modulo) === 0 && d(O.value, [{
|
|
453
|
+
x: W.value.left + W.value.slot * (t - J.value.start) + W.value.slot / 2,
|
|
454
|
+
y: W.value.bottom - e.yOffset - e.individualHeight
|
|
455
|
+
}, {
|
|
456
|
+
x: W.value.left + W.value.slot * (t - J.value.start) + W.value.slot / 2,
|
|
457
|
+
y: W.value.bottom - e.yOffset
|
|
458
|
+
}], { color: B.value.style.chart.grid.y.verticalLines.color });
|
|
459
|
+
}), B.value.style.chart.grid.x.horizontalLines.show && (B.value.style.chart.grid.x.horizontalLines.alternate ? q.value.forEach((e) => {
|
|
460
|
+
e.localYLabels.forEach((t, n) => {
|
|
461
|
+
n < e.localYLabels.length - 1 && Ee(O.value, [
|
|
462
|
+
{
|
|
463
|
+
x: W.value.left,
|
|
464
|
+
y: t.y
|
|
465
|
+
},
|
|
466
|
+
{
|
|
467
|
+
x: W.value.right,
|
|
468
|
+
y: t.y
|
|
469
|
+
},
|
|
470
|
+
{
|
|
471
|
+
x: W.value.right,
|
|
472
|
+
y: e.localYLabels[n + 1].y
|
|
473
|
+
},
|
|
474
|
+
{
|
|
475
|
+
x: W.value.left,
|
|
476
|
+
y: e.localYLabels[n + 1].y
|
|
477
|
+
}
|
|
478
|
+
], {
|
|
479
|
+
fillColor: n % 2 == 0 ? "transparent" : re(B.value.style.chart.grid.x.horizontalLines.color, B.value.style.chart.grid.x.horizontalLines.opacity),
|
|
480
|
+
strokeColor: "transparent"
|
|
481
|
+
});
|
|
482
|
+
});
|
|
483
|
+
}) : q.value.forEach((e) => {
|
|
484
|
+
e.localYLabels.slice(J.value.start, J.value.end).forEach((e) => {
|
|
485
|
+
d(O.value, [{
|
|
486
|
+
x: W.value.left,
|
|
487
|
+
y: e.y
|
|
488
|
+
}, {
|
|
489
|
+
x: W.value.right,
|
|
490
|
+
y: e.y
|
|
491
|
+
}], { color: B.value.style.chart.grid.x.horizontalLines.color });
|
|
492
|
+
});
|
|
493
|
+
})), B.value.style.chart.grid.zeroLine.show && q.value.forEach((e) => {
|
|
494
|
+
d(O.value, [{
|
|
495
|
+
x: W.value.left,
|
|
496
|
+
y: e.localZero
|
|
497
|
+
}, {
|
|
498
|
+
x: W.value.right,
|
|
499
|
+
y: e.localZero
|
|
500
|
+
}], {
|
|
501
|
+
color: B.value.style.chart.grid.zeroLine.color,
|
|
502
|
+
lineDash: B.value.style.chart.grid.zeroLine.dashed ? [10, 10] : [0, 0]
|
|
503
|
+
});
|
|
504
|
+
}), B.value.style.chart.grid.y.axisLabels.show && q.value.forEach((e) => {
|
|
505
|
+
d(O.value, [{
|
|
506
|
+
x: W.value.left,
|
|
507
|
+
y: W.value.bottom - e.yOffset
|
|
508
|
+
}, {
|
|
509
|
+
x: W.value.left,
|
|
510
|
+
y: W.value.bottom - e.yOffset - e.individualHeight
|
|
511
|
+
}], { color: e.color }), d(O.value, [{
|
|
512
|
+
x: W.value.right,
|
|
513
|
+
y: W.value.bottom - e.yOffset
|
|
514
|
+
}, {
|
|
515
|
+
x: W.value.right,
|
|
516
|
+
y: W.value.bottom - e.yOffset - e.individualHeight
|
|
517
|
+
}], { color: e.color });
|
|
518
|
+
}), q.value.forEach((e) => {
|
|
519
|
+
f(O.value, e.name, k.value / 35, W.value.bottom - e.yOffset - e.individualHeight / 2, {
|
|
520
|
+
align: "center",
|
|
521
|
+
rotation: -90,
|
|
522
|
+
color: e.color,
|
|
523
|
+
font: `${Math.round(k.value / 40 * B.value.style.chart.grid.y.axisLabels.fontSizeRatio)}px ${B.value.style.fontFamily}`
|
|
524
|
+
});
|
|
525
|
+
});
|
|
526
|
+
else {
|
|
527
|
+
if (B.value.style.chart.grid.y.verticalLines.show && J.value.end - J.value.start < B.value.style.chart.grid.y.verticalLines.hideUnderXLength) for (let e = 0; e < J.value.end - J.value.start + 1; e += 1) d(O.value, [{
|
|
528
|
+
x: W.value.left + W.value.slot * e,
|
|
529
|
+
y: W.value.top
|
|
530
|
+
}, {
|
|
531
|
+
x: W.value.left + W.value.slot * e,
|
|
532
|
+
y: W.value.bottom
|
|
533
|
+
}], { color: B.value.style.chart.grid.y.verticalLines.color });
|
|
534
|
+
else if (B.value.style.chart.grid.y.verticalLines.show && J.value.end - J.value.start >= B.value.style.chart.grid.y.verticalLines.hideUnderXLength) for (let e = J.value.start; e < J.value.end; e += 1) e % Math.floor((J.value.end - J.value.start) / B.value.style.chart.grid.x.timeLabels.modulo) === 0 && d(O.value, [{
|
|
535
|
+
x: W.value.left + W.value.slot * (e - J.value.start) + W.value.slot / 2,
|
|
536
|
+
y: W.value.top
|
|
537
|
+
}, {
|
|
538
|
+
x: W.value.left + W.value.slot * (e - J.value.start) + W.value.slot / 2,
|
|
539
|
+
y: W.value.bottom
|
|
540
|
+
}], { color: B.value.style.chart.grid.y.verticalLines.color });
|
|
541
|
+
B.value.style.chart.grid.x.horizontalLines.show && (B.value.style.chart.grid.x.horizontalLines.alternate ? G.value.yLabels.forEach((e, t) => {
|
|
542
|
+
t < G.value.yLabels.length - 1 && Ee(O.value, [
|
|
543
|
+
{
|
|
544
|
+
x: W.value.left,
|
|
545
|
+
y: e.y
|
|
546
|
+
},
|
|
547
|
+
{
|
|
548
|
+
x: W.value.right,
|
|
549
|
+
y: e.y
|
|
550
|
+
},
|
|
551
|
+
{
|
|
552
|
+
x: W.value.right,
|
|
553
|
+
y: G.value.yLabels[t + 1].y
|
|
554
|
+
},
|
|
555
|
+
{
|
|
556
|
+
x: W.value.left,
|
|
557
|
+
y: G.value.yLabels[t + 1].y
|
|
558
|
+
}
|
|
559
|
+
], {
|
|
560
|
+
fillColor: t % 2 == 0 ? "transparent" : re(B.value.style.chart.grid.x.horizontalLines.color, B.value.style.chart.grid.x.horizontalLines.opacity),
|
|
561
|
+
strokeColor: "transparent"
|
|
562
|
+
});
|
|
563
|
+
}) : G.value.yLabels.forEach((e) => {
|
|
564
|
+
d(O.value, [{
|
|
565
|
+
x: W.value.left,
|
|
566
|
+
y: e.y
|
|
567
|
+
}, {
|
|
568
|
+
x: W.value.right,
|
|
569
|
+
y: e.y
|
|
570
|
+
}], { color: B.value.style.chart.grid.x.horizontalLines.color });
|
|
571
|
+
})), B.value.style.chart.grid.y.showAxis && d(O.value, [{
|
|
572
|
+
x: W.value.left,
|
|
573
|
+
y: W.value.top
|
|
574
|
+
}, {
|
|
575
|
+
x: W.value.left,
|
|
576
|
+
y: W.value.bottom
|
|
577
|
+
}], {
|
|
578
|
+
color: B.value.style.chart.grid.y.axisColor,
|
|
579
|
+
lineWidth: B.value.style.chart.grid.y.axisThickness
|
|
580
|
+
}), B.value.style.chart.grid.x.showAxis && d(O.value, [{
|
|
581
|
+
x: W.value.left,
|
|
582
|
+
y: W.value.bottom
|
|
583
|
+
}, {
|
|
584
|
+
x: W.value.right,
|
|
585
|
+
y: W.value.bottom
|
|
586
|
+
}], {
|
|
587
|
+
color: B.value.style.chart.grid.x.axisColor,
|
|
588
|
+
lineWidth: B.value.style.chart.grid.x.axisThickness
|
|
589
|
+
}), B.value.style.chart.grid.zeroLine.show && d(O.value, [{
|
|
590
|
+
x: W.value.left,
|
|
591
|
+
y: G.value.zero
|
|
592
|
+
}, {
|
|
593
|
+
x: W.value.right,
|
|
594
|
+
y: G.value.zero
|
|
595
|
+
}], {
|
|
596
|
+
color: B.value.style.chart.grid.zeroLine.color,
|
|
597
|
+
lineDash: B.value.style.chart.grid.zeroLine.dashed ? [10, 10] : [0, 0]
|
|
598
|
+
});
|
|
599
|
+
}
|
|
600
|
+
B.value.style.chart.grid.y.axisName && f(O.value, B.value.style.chart.grid.y.axisName, k.value - k.value / 40 * B.value.style.chart.grid.y.axisLabels.fontSizeRatio * 1.2, W.value.bottom - W.value.height / 2, {
|
|
601
|
+
font: `${B.value.style.chart.grid.y.axisLabels.bold ? "bold " : ""}${Math.round(k.value / 40 * B.value.style.chart.grid.y.axisLabels.fontSizeRatio)}px ${B.value.style.fontFamily}`,
|
|
602
|
+
color: B.value.style.chart.color,
|
|
603
|
+
align: "center",
|
|
604
|
+
rotation: 90
|
|
605
|
+
}), B.value.style.chart.grid.x.axisName && f(O.value, B.value.style.chart.grid.x.axisName, k.value / 2, A.value, {
|
|
606
|
+
font: `${B.value.style.chart.grid.y.axisLabels.bold ? "bold " : ""}${Math.round(k.value / 40 * B.value.style.chart.grid.y.axisLabels.fontSizeRatio)}px ${B.value.style.fontFamily}`,
|
|
607
|
+
color: B.value.style.chart.color,
|
|
608
|
+
align: "center"
|
|
609
|
+
});
|
|
610
|
+
}
|
|
611
|
+
}
|
|
612
|
+
function Bn(e) {
|
|
613
|
+
for (let t = 0; t < e.coordinatesLine.length; t += 1) {
|
|
614
|
+
let n = (j.value === t || L.value === t ? k.value / 150 : B.value.style.chart.line.plots.show || e.type === "plot" ? k.value / 200 : 0) * B.value.style.chart.line.plots.radiusRatio;
|
|
615
|
+
Oe(O.value, {
|
|
616
|
+
x: e.coordinatesLine[t].x,
|
|
617
|
+
y: e.coordinatesLine[t].y
|
|
618
|
+
}, n, {
|
|
619
|
+
color: B.value.style.chart.backgroundColor,
|
|
620
|
+
fillStyle: e.color,
|
|
621
|
+
strokeColor: "transparent"
|
|
622
|
+
});
|
|
623
|
+
}
|
|
624
|
+
}
|
|
625
|
+
function Vn() {
|
|
626
|
+
q.value.forEach((e) => {
|
|
627
|
+
e.showYMarker && sr(e) && f(O.value, ne(B.value.style.chart.dataLabels.formatter, sr(e).value, t({
|
|
628
|
+
p: e.prefix || B.value.style.chart.grid.y.axisLabels.prefix || "",
|
|
629
|
+
v: sr(e).value,
|
|
630
|
+
s: e.suffix || B.value.style.chart.grid.y.axisLabels.suffix || "",
|
|
631
|
+
r: e.rounding || B.value.style.chart.grid.y.axisLabels.rounding || 0
|
|
632
|
+
}), {
|
|
633
|
+
datapoint: sr(e),
|
|
634
|
+
seriesIndex: null
|
|
635
|
+
}), W.value.left - 8 + B.value.style.chart.grid.y.axisLabels.offsetX, sr(e).y, {
|
|
636
|
+
align: "right",
|
|
637
|
+
font: `${B.value.style.chart.grid.y.axisLabels.bold ? "bold " : ""}${Math.round(k.value / 40 * B.value.style.chart.grid.y.axisLabels.fontSizeRatio)}px ${B.value.style.fontFamily}`,
|
|
638
|
+
color: e.color
|
|
639
|
+
});
|
|
640
|
+
});
|
|
641
|
+
}
|
|
642
|
+
function Hn() {
|
|
643
|
+
B.value.style.chart.grid.y.axisLabels.show && (H.value.stacked ? q.value.forEach((e) => {
|
|
644
|
+
e.localYLabels.forEach((n, r) => {
|
|
645
|
+
f(O.value, ne(B.value.style.chart.dataLabels.formatter, n.value, t({
|
|
646
|
+
p: e.prefix || B.value.style.chart.grid.y.axisLabels.prefix || "",
|
|
647
|
+
v: n.value,
|
|
648
|
+
s: e.suffix || B.value.style.chart.grid.y.axisLabels.suffix || "",
|
|
649
|
+
r: e.rounding || B.value.style.chart.grid.y.axisLabels.rounding || 0
|
|
650
|
+
}), {
|
|
651
|
+
datapoint: n,
|
|
652
|
+
seriesIndex: r
|
|
653
|
+
}), n.x + B.value.style.chart.grid.y.axisLabels.offsetX, n.y, {
|
|
654
|
+
align: "right",
|
|
655
|
+
font: `${B.value.style.chart.grid.y.axisLabels.bold ? "bold " : ""}${Math.round(k.value / 40 * B.value.style.chart.grid.y.axisLabels.fontSizeRatio)}px ${B.value.style.fontFamily}`,
|
|
656
|
+
color: e.color,
|
|
657
|
+
globalAlpha: e.showYMarker && ![null, void 0].includes(j.value ?? L.value) ? .2 : 1
|
|
658
|
+
});
|
|
659
|
+
});
|
|
660
|
+
}) : G.value.yLabels.forEach((e, n) => {
|
|
661
|
+
f(O.value, ne(B.value.style.chart.dataLabels.formatter, e.value, t({
|
|
662
|
+
p: B.value.style.chart.grid.y.axisLabels.prefix || "",
|
|
663
|
+
v: e.value,
|
|
664
|
+
s: B.value.style.chart.grid.y.axisLabels.suffix || "",
|
|
665
|
+
r: B.value.style.chart.grid.y.axisLabels.rounding || 0
|
|
666
|
+
}), {
|
|
667
|
+
datapoint: e,
|
|
668
|
+
seriesIndex: n
|
|
669
|
+
}), e.x + B.value.style.chart.grid.y.axisLabels.offsetX, e.y, {
|
|
670
|
+
align: "right",
|
|
671
|
+
font: `${B.value.style.chart.grid.y.axisLabels.bold ? "bold " : ""}${Math.round(k.value / 40 * B.value.style.chart.grid.y.axisLabels.fontSizeRatio)}px ${B.value.style.fontFamily}`,
|
|
672
|
+
color: B.value.style.chart.grid.y.axisLabels.color,
|
|
673
|
+
globalAlpha: q.value.some((e) => e.showYMarker) && ![null, void 0].includes(j.value ?? L.value) ? .2 : 1
|
|
674
|
+
});
|
|
675
|
+
}));
|
|
676
|
+
}
|
|
677
|
+
function Un(e) {
|
|
678
|
+
for (let n = 0; n < e.coordinatesLine.length; n += 1) f(O.value, ne(B.value.style.chart.dataLabels.formatter, e.coordinatesLine[n].value, t({
|
|
679
|
+
p: e.prefix || "",
|
|
680
|
+
v: e.coordinatesLine[n].value,
|
|
681
|
+
s: e.suffix || "",
|
|
682
|
+
r: e.rounding || 0
|
|
683
|
+
}), {
|
|
684
|
+
datapoint: e.coordinatesLine[n],
|
|
685
|
+
seriesIndex: n
|
|
686
|
+
}), e.coordinatesLine[n].x, e.coordinatesLine[n].y + B.value.style.chart.dataLabels.offsetY, {
|
|
687
|
+
align: "center",
|
|
688
|
+
font: `${B.value.style.chart.dataLabels.bold ? "bold " : ""}${Math.round(k.value / 40 * B.value.style.chart.dataLabels.fontSizeRatio)}px ${B.value.style.fontFamily}`,
|
|
689
|
+
color: B.value.style.chart.dataLabels.useSerieColor ? e.color : B.value.style.chart.dataLabels.color,
|
|
690
|
+
strokeColor: B.value.style.chart.backgroundColor,
|
|
691
|
+
lineWidth: .5
|
|
692
|
+
});
|
|
693
|
+
}
|
|
694
|
+
let Z = b([]), Wn = 0;
|
|
695
|
+
tt(() => {
|
|
696
|
+
let e = ++Wn;
|
|
697
|
+
(async () => {
|
|
698
|
+
let t = await pe({
|
|
699
|
+
values: B.value.style.chart.grid.x.timeLabels.values,
|
|
700
|
+
maxDatapoints: U.value,
|
|
701
|
+
formatter: B.value.style.chart.grid.x.timeLabels.datetimeFormatter,
|
|
702
|
+
start: 0,
|
|
703
|
+
end: U.value
|
|
704
|
+
});
|
|
705
|
+
e === Wn && (Z.value = t);
|
|
706
|
+
})();
|
|
707
|
+
}), tt(() => {
|
|
708
|
+
B.value.style.chart.grid.x.timeLabels.show, B.value.style.chart.grid.x.timeLabels.rotation, B.value.style.chart.grid.x.timeLabels.offsetY, B.value.style.chart.grid.x.timeLabels.fontSizeRatio, B.value.style.chart.grid.x.timeLabels.bold, J.value.start, J.value.end, k.value, A.value, (Z.value || []).map((e) => e?.text ?? "").join("|"), bn();
|
|
709
|
+
}, { flush: "post" });
|
|
710
|
+
let Gn = b({
|
|
711
|
+
months: [],
|
|
712
|
+
shortMonths: [],
|
|
713
|
+
days: [],
|
|
714
|
+
shortDays: []
|
|
715
|
+
}), Kn = 0;
|
|
716
|
+
tt(() => {
|
|
717
|
+
let e = ++Kn, t = B.value.style.chart.grid.x.timeLabels.datetimeFormatter;
|
|
718
|
+
(async () => {
|
|
719
|
+
let n = await fe(t.locale).catch(() => fe("en"));
|
|
720
|
+
e === Kn && (Gn.value = n.data);
|
|
721
|
+
})();
|
|
722
|
+
});
|
|
723
|
+
let qn = p(() => {
|
|
724
|
+
let e = B.value.style.chart.grid.x.timeLabels.datetimeFormatter, t = de({
|
|
725
|
+
useUTC: e.useUTC,
|
|
726
|
+
locale: Gn.value,
|
|
727
|
+
januaryAsYear: e.januaryAsYear
|
|
728
|
+
});
|
|
729
|
+
return (e, n) => {
|
|
730
|
+
let r = B.value.style.chart.grid.x.timeLabels.values?.[e];
|
|
731
|
+
return r == null ? "" : t.formatDate(new Date(r), n);
|
|
732
|
+
};
|
|
733
|
+
}), Jn = p(() => (B.value.style.chart.grid.x.timeLabels.values || []).map((e, t) => ({
|
|
734
|
+
text: qn.value(t, B.value.style.chart.zoom.timeFormat),
|
|
735
|
+
absoluteIndex: t
|
|
736
|
+
}))), Yn = p(() => (B.value.style.chart.grid.x.timeLabels.values || []).map((e, t) => ({
|
|
737
|
+
text: qn.value(t, B.value.style.chart.tooltip.timeFormat),
|
|
738
|
+
absoluteIndex: t
|
|
739
|
+
})));
|
|
740
|
+
function Xn() {
|
|
741
|
+
for (let e = J.value.start; e < J.value.end; e += 1) (J.value.end - J.value.start < B.value.style.chart.grid.x.timeLabels.modulo || J.value.end - J.value.start >= B.value.style.chart.grid.x.timeLabels.modulo && (e % Math.floor((J.value.end - J.value.start) / B.value.style.chart.grid.x.timeLabels.modulo) === 0 || (e === j.value + J.value.start || e === L.value) && B.value.style.chart.grid.x.timeLabels.showMarker)) && f(O.value, Z.value[e] ? Z.value[e].text : e + 1, W.value.left + W.value.slot * (e - J.value.start) + W.value.slot / 2, W.value.bottom + k.value / B.value.style.chart.grid.x.timeLabels.offsetY, {
|
|
742
|
+
align: B.value.style.chart.grid.x.timeLabels.rotation === 0 ? "center" : B.value.style.chart.grid.x.timeLabels.rotation > 0 ? "left" : "right",
|
|
743
|
+
font: `${B.value.style.chart.grid.x.timeLabels.bold ? "bold " : ""}${Math.round(k.value / 40 * B.value.style.chart.grid.x.timeLabels.fontSizeRatio)}px ${B.value.style.fontFamily}`,
|
|
744
|
+
color: B.value.style.chart.grid.x.timeLabels.showMarker ? re(B.value.style.chart.grid.x.timeLabels.color, j.value !== null || L.value !== null ? j.value + J.value.start === e || L.value === e ? 100 : 20 : 100) : B.value.style.chart.grid.x.timeLabels.color,
|
|
745
|
+
rotation: B.value.style.chart.grid.x.timeLabels.rotation
|
|
746
|
+
});
|
|
747
|
+
}
|
|
748
|
+
function Zn() {
|
|
749
|
+
d(O.value, [{
|
|
750
|
+
x: W.value.left + W.value.slot * (j.value ?? L.value) + W.value.slot / 2,
|
|
751
|
+
y: W.value.top
|
|
752
|
+
}, {
|
|
753
|
+
x: W.value.left + W.value.slot * (j.value ?? L.value) + W.value.slot / 2,
|
|
754
|
+
y: W.value.bottom
|
|
755
|
+
}], {
|
|
756
|
+
color: B.value.style.chart.selector.color,
|
|
757
|
+
lineDash: B.value.style.chart.selector.dashed ? [8, 8] : [0, 0],
|
|
758
|
+
lineWidth: 2,
|
|
759
|
+
linceCap: "round"
|
|
760
|
+
});
|
|
761
|
+
}
|
|
762
|
+
function Qn() {
|
|
763
|
+
I.value && d(O.value, [{
|
|
764
|
+
x: W.value.left,
|
|
765
|
+
y: I.value
|
|
766
|
+
}, {
|
|
767
|
+
x: W.value.right,
|
|
768
|
+
y: I.value
|
|
769
|
+
}], {
|
|
770
|
+
color: B.value.style.chart.selector.color,
|
|
771
|
+
lineDash: B.value.style.chart.selector.dashed ? [8, 8] : [0, 0],
|
|
772
|
+
lineWidth: 2,
|
|
773
|
+
linceCap: "round"
|
|
774
|
+
});
|
|
775
|
+
}
|
|
776
|
+
function $n() {
|
|
777
|
+
X.value.forEach((e, n) => {
|
|
778
|
+
for (let r = 0; r < e.coordinatesLine.length; r += 1) Ee(O.value, [
|
|
779
|
+
{
|
|
780
|
+
x: W.value.left + W.value.slot * r + W.value.slot / 10 + (H.value.stacked ? 0 : W.value.slot / X.value.length * n - (n === 0 ? 0 : W.value.slot / (5 * X.value.length) * n)),
|
|
781
|
+
y: H.value.stacked ? e.localZero : G.value.zero
|
|
782
|
+
},
|
|
783
|
+
{
|
|
784
|
+
x: W.value.left + W.value.slot * r + W.value.slot / 10 + (H.value.stacked ? 0 : W.value.slot / X.value.length * n - (n === 0 ? 0 : W.value.slot / (5 * X.value.length) * n)) + W.value.slot * .8 / (H.value.stacked ? 1 : X.value.length),
|
|
785
|
+
y: H.value.stacked ? e.localZero : G.value.zero
|
|
786
|
+
},
|
|
787
|
+
{
|
|
788
|
+
x: W.value.left + W.value.slot * r + W.value.slot / 10 + (H.value.stacked ? 0 : W.value.slot / X.value.length * n - (n === 0 ? 0 : W.value.slot / (5 * X.value.length) * n)) + W.value.slot * .8 / (H.value.stacked ? 1 : X.value.length),
|
|
789
|
+
y: e.coordinatesLine[r].y
|
|
790
|
+
},
|
|
791
|
+
{
|
|
792
|
+
x: W.value.left + W.value.slot * r + W.value.slot / 10 + (H.value.stacked ? 0 : W.value.slot / X.value.length * n - (n === 0 ? 0 : W.value.slot / (5 * X.value.length) * n)),
|
|
793
|
+
y: e.coordinatesLine[r].y
|
|
794
|
+
}
|
|
795
|
+
], {
|
|
796
|
+
strokeColor: B.value.style.chart.backgroundColor,
|
|
797
|
+
gradient: {
|
|
798
|
+
type: "linear",
|
|
799
|
+
start: {
|
|
800
|
+
x: e.coordinatesLine[r].x,
|
|
801
|
+
y: e.coordinatesLine[r].y
|
|
802
|
+
},
|
|
803
|
+
end: {
|
|
804
|
+
x: e.coordinatesLine[r].x,
|
|
805
|
+
y: H.value.stacked ? e.localZero : G.value.zero
|
|
806
|
+
},
|
|
807
|
+
stops: [{
|
|
808
|
+
offset: 0,
|
|
809
|
+
color: e.color
|
|
810
|
+
}, {
|
|
811
|
+
offset: 1,
|
|
812
|
+
color: B.value.style.chart.bar.gradient.show ? le(e.color, .5) : e.color
|
|
813
|
+
}]
|
|
814
|
+
}
|
|
815
|
+
}), H.value.showDataLabels && [!0, void 0].includes(e.dataLabels) && f(O.value, ne(B.value.style.chart.dataLabels.formatter, e.coordinatesLine[r].value, t({
|
|
816
|
+
p: e.prefix || "",
|
|
817
|
+
v: e.coordinatesLine[r].value,
|
|
818
|
+
s: e.suffix || "",
|
|
819
|
+
r: e.rounding || 0
|
|
820
|
+
}), {
|
|
821
|
+
datapoint: e.coordinatesLine[r],
|
|
822
|
+
seriesIndex: r
|
|
823
|
+
}), W.value.left + W.value.slot * r + W.value.slot / 10 + (H.value.stacked ? 0 : W.value.slot / X.value.length * n - (n === 0 ? 0 : W.value.slot / (5 * X.value.length) * n)) + W.value.slot * .4 / (H.value.stacked ? 1 : X.value.length), (e.coordinatesLine[r].value < 0 ? H.value.stacked ? e.localZero : G.value.zero : e.coordinatesLine[r].y) + B.value.style.chart.dataLabels.offsetY, {
|
|
824
|
+
align: "center",
|
|
825
|
+
font: `${Math.round(k.value / 40 * B.value.style.chart.dataLabels.fontSizeRatio)}px ${B.value.style.fontFamily}`,
|
|
826
|
+
color: B.value.style.chart.dataLabels.useSerieColor ? e.color : B.value.style.chart.dataLabels.color,
|
|
827
|
+
strokeColor: B.value.style.chart.backgroundColor,
|
|
828
|
+
lineWidth: .8
|
|
829
|
+
});
|
|
830
|
+
});
|
|
831
|
+
}
|
|
832
|
+
function er(e, t) {
|
|
833
|
+
let n = e.coordinatesLine.map((t, n) => e.series[n] != null && Number.isFinite(t?.y) ? t : null), r = [], i = [], a = [];
|
|
834
|
+
for (let e = 0; e < n.length; e += 1) {
|
|
835
|
+
let o = n[e];
|
|
836
|
+
if (o) a.push(o);
|
|
837
|
+
else {
|
|
838
|
+
if (a.length >= 2) {
|
|
839
|
+
let e = a[0], n = a[a.length - 1];
|
|
840
|
+
r.push([
|
|
841
|
+
{
|
|
842
|
+
x: e.x,
|
|
843
|
+
y: t
|
|
844
|
+
},
|
|
845
|
+
...a,
|
|
846
|
+
{
|
|
847
|
+
x: n.x,
|
|
848
|
+
y: t
|
|
849
|
+
}
|
|
850
|
+
]);
|
|
851
|
+
} else a.length === 1 && i.push(a[0]);
|
|
852
|
+
a = [];
|
|
853
|
+
}
|
|
854
|
+
}
|
|
855
|
+
if (a.length >= 2) {
|
|
856
|
+
let e = a[0], n = a[a.length - 1];
|
|
857
|
+
r.push([
|
|
858
|
+
{
|
|
859
|
+
x: e.x,
|
|
860
|
+
y: t
|
|
861
|
+
},
|
|
862
|
+
...a,
|
|
863
|
+
{
|
|
864
|
+
x: n.x,
|
|
865
|
+
y: t
|
|
866
|
+
}
|
|
867
|
+
]);
|
|
868
|
+
} else a.length === 1 && i.push(a[0]);
|
|
869
|
+
return {
|
|
870
|
+
polygons: r,
|
|
871
|
+
singles: i
|
|
872
|
+
};
|
|
873
|
+
}
|
|
874
|
+
function tr(e) {
|
|
875
|
+
let t = e.coordinatesLine.map((t, n) => e.series[n] != null && Number.isFinite(t?.y) ? t : null), n = [], r = [];
|
|
876
|
+
for (let e = 0; e < t.length; e += 1) {
|
|
877
|
+
let i = t[e];
|
|
878
|
+
i ? r.push(i) : (r.length >= 2 && n.push(r), r = []);
|
|
879
|
+
}
|
|
880
|
+
return r.length >= 2 && n.push(r), n;
|
|
881
|
+
}
|
|
882
|
+
function nr(e) {
|
|
883
|
+
if (wn.value) {
|
|
884
|
+
let t = tr(e);
|
|
885
|
+
for (let n of t) d(O.value, n, {
|
|
886
|
+
color: e.color,
|
|
887
|
+
lineWidth: 3
|
|
888
|
+
});
|
|
889
|
+
} else d(O.value, e.coordinatesLine, {
|
|
890
|
+
color: e.color,
|
|
891
|
+
lineWidth: 3
|
|
892
|
+
});
|
|
893
|
+
}
|
|
894
|
+
function rr(e) {
|
|
895
|
+
let t = !!wn.value;
|
|
896
|
+
if (e.useArea) {
|
|
897
|
+
let n = H.value.stacked ? e.localZero : G.value.zero;
|
|
898
|
+
if (t) {
|
|
899
|
+
let { polygons: t, singles: r } = er(e, n);
|
|
900
|
+
for (let n of t) Ce(O.value, n, {
|
|
901
|
+
fillColor: re(e.color, B.value.style.chart.area.opacity),
|
|
902
|
+
strokeColor: "transparent"
|
|
903
|
+
});
|
|
904
|
+
let i = k.value / 200 * B.value.style.chart.line.plots.radiusRatio;
|
|
905
|
+
for (let t of r) Oe(O.value, {
|
|
906
|
+
x: t.x,
|
|
907
|
+
y: t.y
|
|
908
|
+
}, i, {
|
|
909
|
+
color: B.value.style.chart.backgroundColor,
|
|
910
|
+
fillStyle: e.color,
|
|
911
|
+
strokeColor: "transparent"
|
|
912
|
+
});
|
|
913
|
+
} else {
|
|
914
|
+
let t = {
|
|
915
|
+
x: e.coordinatesLine[0].x,
|
|
916
|
+
y: n
|
|
917
|
+
}, r = {
|
|
918
|
+
x: e.coordinatesLine.at(-1).x,
|
|
919
|
+
y: n
|
|
920
|
+
};
|
|
921
|
+
Ce(O.value, [
|
|
922
|
+
t,
|
|
923
|
+
...e.coordinatesLine,
|
|
924
|
+
r
|
|
925
|
+
], {
|
|
926
|
+
fillColor: re(e.color, B.value.style.chart.area.opacity),
|
|
927
|
+
strokeColor: "transparent"
|
|
928
|
+
});
|
|
929
|
+
}
|
|
930
|
+
nr(e);
|
|
931
|
+
return;
|
|
932
|
+
}
|
|
933
|
+
nr(e);
|
|
934
|
+
}
|
|
935
|
+
function ir() {
|
|
936
|
+
q.value.forEach((e, t) => {
|
|
937
|
+
d(O.value, [{
|
|
938
|
+
x: W.value.left,
|
|
939
|
+
y: W.value.bottom - e.yOffset
|
|
940
|
+
}, {
|
|
941
|
+
x: W.value.right,
|
|
942
|
+
y: W.value.bottom - e.yOffset
|
|
943
|
+
}], {
|
|
944
|
+
color: B.value.style.chart.grid.x.horizontalLines.color,
|
|
945
|
+
lineWidth: 1
|
|
946
|
+
});
|
|
947
|
+
});
|
|
948
|
+
}
|
|
949
|
+
function ar() {
|
|
950
|
+
let { left: e, top: t, width: n, height: r } = W.value, i = J.value.start, a = J.value.end - i, o = n / a, s = Y.value.start - i, c = Y.value.end - i, l = Math.max(0, Math.min(a, s)), u = Math.max(0, Math.min(a, c));
|
|
951
|
+
Ee(O.value, [
|
|
952
|
+
{
|
|
953
|
+
x: e + l * o,
|
|
954
|
+
y: t
|
|
955
|
+
},
|
|
956
|
+
{
|
|
957
|
+
x: e + l * o + (u - l) * o,
|
|
958
|
+
y: t
|
|
959
|
+
},
|
|
960
|
+
{
|
|
961
|
+
x: e + l * o + (u - l) * o,
|
|
962
|
+
y: t + r
|
|
963
|
+
},
|
|
964
|
+
{
|
|
965
|
+
x: e + l * o,
|
|
966
|
+
y: t + r
|
|
967
|
+
}
|
|
968
|
+
], {
|
|
969
|
+
fillColor: B.value.style.chart.zoom.preview.fill,
|
|
970
|
+
strokeColor: B.value.style.chart.zoom.preview.stroke,
|
|
971
|
+
lineDash: [
|
|
972
|
+
,
|
|
973
|
+
,
|
|
974
|
+
,
|
|
975
|
+
,
|
|
976
|
+
].fill(B.value.style.chart.zoom.preview.strokeDasharray),
|
|
977
|
+
lineWidth: B.value.style.chart.zoom.preview.strokeWidth
|
|
978
|
+
});
|
|
979
|
+
}
|
|
980
|
+
function Q() {
|
|
981
|
+
!z.value || !V.value || !O.value || (zn(), N.value ? ((j.value !== null || L.value !== null) && B.value.style.chart.selector.show && Zn(), $n(), H.value.stacked && B.value.style.chart.grid.x.showAxis && ir(), Ln.value.forEach((e) => {
|
|
982
|
+
(e.type === "line" || !e.type) && rr(e), P.value && (Bn(e), H.value.showDataLabels && [!0, void 0].includes(e.dataLabels) && Un(e));
|
|
983
|
+
}), V.value && (Et.value = Te(V.value))) : (Et.value && (O.value.clearRect(0, 0, 1e4, 1e4), O.value.drawImage(Et.value, 0, 0)), (j.value !== null || L.value !== null) && B.value.style.chart.selector.show && Zn(), (j.value !== null || L.value !== null) && q.value.forEach((e) => {
|
|
984
|
+
let t = j.value ?? L.value, n = e.coordinatesLine[t];
|
|
985
|
+
(e.type === "line" || !e.type || e.type === "plot") && n && Number.isFinite(n.x) && Number.isFinite(n.y) && Oe(O.value, {
|
|
986
|
+
x: n.x,
|
|
987
|
+
y: n.y
|
|
988
|
+
}, k.value / 150 * B.value.style.chart.line.plots.radiusRatio, {
|
|
989
|
+
color: B.value.style.chart.backgroundColor,
|
|
990
|
+
fillStyle: e.color,
|
|
991
|
+
strokeColor: "transparent"
|
|
992
|
+
});
|
|
993
|
+
})), B.value.style.chart.grid.x.timeLabels.show && Xn(), B.value.style.chart.selector.show && B.value.style.chart.selector.showHorizontalSelector && Qn(), Hn(), Vn(), B.value.style.chart.zoom.preview.enable && (J.value.start !== Y.value.start || J.value.end !== Y.value.end) && ar(), N.value = !1);
|
|
994
|
+
}
|
|
995
|
+
let or = De(() => {
|
|
996
|
+
P.value = !0, Rn();
|
|
997
|
+
}, U.value > 200 ? 10 : 1, !P.value);
|
|
998
|
+
function sr(e) {
|
|
999
|
+
if ([null, void 0].includes(j.value ?? L.value) || !e.coordinatesLine[j.value ?? L.value]) return !1;
|
|
1000
|
+
let { y: t, value: n } = e.coordinatesLine[j.value ?? L.value];
|
|
1001
|
+
return {
|
|
1002
|
+
y: t,
|
|
1003
|
+
value: n
|
|
1004
|
+
};
|
|
1005
|
+
}
|
|
1006
|
+
function cr(e) {
|
|
1007
|
+
if (!z.value || !V.value || mn.value) return;
|
|
1008
|
+
let { left: t, top: n } = V.value.getBoundingClientRect(), r = e.clientX - t;
|
|
1009
|
+
if (I.value = (e.clientY - n) * 2, (I.value < W.value.top || I.value > W.value.bottom) && (I.value = null), r * 2 < W.value.left || r * 2 > W.value.right) {
|
|
1010
|
+
pr();
|
|
1011
|
+
return;
|
|
1012
|
+
}
|
|
1013
|
+
let i = r * 2 - W.value.left, a = Math.floor(i / W.value.slot);
|
|
1014
|
+
if (j.value = a, R.value = a, St.value = !0, Ht.value = !1, !P.value) return;
|
|
1015
|
+
let o = "", s = B.value.style.chart.tooltip.customFormat, c = q.value.map((e) => ({
|
|
1016
|
+
shape: e.shape || null,
|
|
1017
|
+
name: e.name,
|
|
1018
|
+
color: e.color,
|
|
1019
|
+
type: e.type || "line",
|
|
1020
|
+
value: e.series.find((e, t) => t === j.value)
|
|
1021
|
+
}));
|
|
1022
|
+
wt.value = {
|
|
1023
|
+
timeLabel: B.value.style.chart.grid.x.timeLabels.values.slice(J.value.start, J.value.end)[j.value] ? B.value.style.chart.tooltip.useDefaultTimeFormat ? Z.value.slice(J.value.start, J.value.end)[j.value]?.text : Yn.value[j.value]?.text : "",
|
|
1024
|
+
datapoint: c,
|
|
1025
|
+
seriesIndex: j.value,
|
|
1026
|
+
series: q.value,
|
|
1027
|
+
config: B.value
|
|
1028
|
+
}, _r({
|
|
1029
|
+
seriesIndex: j.value,
|
|
1030
|
+
datapoint: c
|
|
1031
|
+
}), oe(s) && ae(() => s({
|
|
1032
|
+
seriesIndex: j.value,
|
|
1033
|
+
datapoint: c,
|
|
1034
|
+
series: q.value,
|
|
1035
|
+
config: B.value
|
|
1036
|
+
})) ? Ct.value = s({
|
|
1037
|
+
seriesIndex: j.value,
|
|
1038
|
+
datapoint: c,
|
|
1039
|
+
series: q.value,
|
|
1040
|
+
config: B.value
|
|
1041
|
+
}) : (B.value.style.chart.grid.x.timeLabels.values.slice(J.value.start, J.value.end)[j.value] ? o += `<div style="padding-bottom: 6px; margin-bottom: 4px; border-bottom: 1px solid ${B.value.style.chart.tooltip.borderColor}; width:100%">${B.value.style.chart.tooltip.useDefaultTimeFormat ? Z.value.slice(J.value.start, J.value.end)[j.value]?.text : Yn.value[j.value]?.text}</div>` : o += `<div style="padding-bottom: 6px; margin-bottom: 4px; border-bottom: 1px solid ${B.value.style.chart.tooltip.borderColor}; width:100%">${Z.value[j.value + J.value.start]?.text ?? ""}</div>`, o += Cn.value.join(""), Ct.value = o), P.value = !1;
|
|
1042
|
+
}
|
|
1043
|
+
function lr(e) {
|
|
1044
|
+
return q.value.map((t) => ({
|
|
1045
|
+
shape: t.shape || null,
|
|
1046
|
+
name: t.name,
|
|
1047
|
+
color: t.color,
|
|
1048
|
+
type: t.type || "line",
|
|
1049
|
+
value: t.series.find((t, n) => n === e)
|
|
1050
|
+
}));
|
|
1051
|
+
}
|
|
1052
|
+
function ur(e) {
|
|
1053
|
+
let t = "", n = B.value.style.chart.tooltip.customFormat, r = lr(e);
|
|
1054
|
+
return _r({
|
|
1055
|
+
seriesIndex: e,
|
|
1056
|
+
datapoint: r
|
|
1057
|
+
}), oe(n) && ae(() => n({
|
|
1058
|
+
seriesIndex: e,
|
|
1059
|
+
datapoint: r,
|
|
1060
|
+
series: q.value,
|
|
1061
|
+
config: B.value
|
|
1062
|
+
})) ? n({
|
|
1063
|
+
seriesIndex: e,
|
|
1064
|
+
datapoint: r,
|
|
1065
|
+
series: q.value,
|
|
1066
|
+
config: B.value
|
|
1067
|
+
}) : (B.value.style.chart.grid.x.timeLabels.values.slice(J.value.start, J.value.end)[e] ? t += `<div style="padding-bottom: 6px; margin-bottom: 4px; border-bottom: 1px solid ${B.value.style.chart.tooltip.borderColor}; width:100%">${B.value.style.chart.tooltip.useDefaultTimeFormat ? Z.value.slice(J.value.start, J.value.end)[e]?.text : Yn.value[e]?.text}</div>` : t += `<div style="padding-bottom: 6px; margin-bottom: 4px; border-bottom: 1px solid ${B.value.style.chart.tooltip.borderColor}; width:100%">${Z.value[e + J.value.start]?.text ?? ""}</div>`, t += Cn.value.join(""), t);
|
|
1068
|
+
}
|
|
1069
|
+
function dr(e) {
|
|
1070
|
+
if (!V.value || !W.value?.slot) return;
|
|
1071
|
+
let t = V.value.getBoundingClientRect(), n = t.width / W.value.canvasWidth, r = t.height / W.value.canvasHeight, i = W.value.left + W.value.slot * e + W.value.slot / 2, a = W.value.top + W.value.height / 2;
|
|
1072
|
+
Wt.value = {
|
|
1073
|
+
x: t.left + i * n,
|
|
1074
|
+
y: t.top + a * r
|
|
1075
|
+
};
|
|
1076
|
+
}
|
|
1077
|
+
function fr(e, { fromKeyboard: t = !1 } = {}) {
|
|
1078
|
+
!z.value || mn.value || e != null && (e < 0 || e >= J.value.end - J.value.start || (j.value = e, R.value = e, St.value = !0, Ht.value = t, Ct.value = ur(e), t && dr(e), P.value = !1, Q()));
|
|
1079
|
+
}
|
|
1080
|
+
function pr() {
|
|
1081
|
+
St.value = !1, j.value = null, R.value = null, Ct.value = "", I.value = null, Ht.value = !1, Q();
|
|
1082
|
+
}
|
|
1083
|
+
function mr() {
|
|
1084
|
+
Ut.value = !0;
|
|
1085
|
+
}
|
|
1086
|
+
function hr() {
|
|
1087
|
+
Ut.value = !1, pr();
|
|
1088
|
+
}
|
|
1089
|
+
function gr(e) {
|
|
1090
|
+
if (!V.value || Lr.value || document.activeElement !== V.value) return;
|
|
1091
|
+
let t = e.key === "ArrowLeft", n = e.key === "ArrowRight";
|
|
1092
|
+
if (!t && !n) return;
|
|
1093
|
+
let r = J.value.end - J.value.start;
|
|
1094
|
+
if (r <= 0) return;
|
|
1095
|
+
e.preventDefault(), e.stopPropagation();
|
|
1096
|
+
let i = R.value;
|
|
1097
|
+
i !== null && i >= 0 && i < r ? n ? (i += 1, i >= r && (i = 0)) : (--i, i < 0 && (i = r - 1)) : i = n ? 0 : r - 1, fr(i, { fromKeyboard: !0 });
|
|
1098
|
+
}
|
|
1099
|
+
function _r({ seriesIndex: e, datapoint: t }) {
|
|
1100
|
+
Gt("selectX", {
|
|
1101
|
+
dataset: t,
|
|
1102
|
+
index: J.value.start + e,
|
|
1103
|
+
indexLabel: ""
|
|
1104
|
+
});
|
|
1105
|
+
}
|
|
1106
|
+
C(() => T.selectedXIndex, (e) => {
|
|
1107
|
+
if ([null, void 0].includes(T.selectedXIndex)) {
|
|
1108
|
+
pr();
|
|
1109
|
+
return;
|
|
1110
|
+
}
|
|
1111
|
+
let t = e - J.value.start;
|
|
1112
|
+
t < 0 || e >= J.value.end ? pr() : fr(t, { fromKeyboard: !1 });
|
|
1113
|
+
}, { immediate: !0 }), C(() => j.value, (e) => {
|
|
1114
|
+
or();
|
|
1115
|
+
}), C(() => J.value, (e) => {
|
|
1116
|
+
N.value = !0, Q();
|
|
1117
|
+
}, { deep: !0 }), C(() => Y.value, (e) => {
|
|
1118
|
+
Q();
|
|
1119
|
+
}, { deep: !0 }), C(() => H.value.showDataLabels, (e) => {
|
|
1120
|
+
N.value = !0, Q();
|
|
1121
|
+
}), C(() => I.value, (e) => {
|
|
1122
|
+
e && Q();
|
|
1123
|
+
}), C(() => H.value.stacked, (e) => {
|
|
1124
|
+
N.value = !0, P.value = !0, or();
|
|
1125
|
+
});
|
|
1126
|
+
function vr() {
|
|
1127
|
+
pr();
|
|
1128
|
+
}
|
|
1129
|
+
let $ = Ze(null), yr = Ze(null), br = Ze(null);
|
|
1130
|
+
Ye(() => {
|
|
1131
|
+
Ft.value = !0, xr();
|
|
1132
|
+
});
|
|
1133
|
+
function xr() {
|
|
1134
|
+
if (o(T.dataset) && Xt.value && c({
|
|
1135
|
+
componentName: "VueUiXyCanvas",
|
|
1136
|
+
type: "dataset"
|
|
1137
|
+
}), Ge(() => {
|
|
1138
|
+
V.value && !O.value && (O.value = V.value.getContext("2d", { willReadFrequently: !0 })), O.value && z.value && (N.value = !0, P.value = !0, Rn());
|
|
1139
|
+
}), B.value.responsive) {
|
|
1140
|
+
let e = we(() => {
|
|
1141
|
+
let { width: e, height: t } = ke({
|
|
1142
|
+
chart: D.value,
|
|
1143
|
+
title: B.value.style.chart.title.text ? kt.value : null,
|
|
1144
|
+
legend: B.value.style.chart.legend.show ? At.value : null,
|
|
1145
|
+
slicer: B.value.style.chart.zoom.show && U.value > 6 ? F.value?.$el : null,
|
|
1146
|
+
source: jt.value
|
|
1147
|
+
});
|
|
1148
|
+
requestAnimationFrame(() => {
|
|
1149
|
+
sn.value = `${e} / ${t}`;
|
|
1150
|
+
});
|
|
1151
|
+
});
|
|
1152
|
+
$.value && (yr.value && $.value.unobserve(yr.value), $.value.disconnect()), $.value = new ResizeObserver(e), yr.value = D.value.parentNode, $.value.observe(yr.value);
|
|
1153
|
+
}
|
|
1154
|
+
br.value && br.value.disconnect(), br.value = new ResizeObserver(async (e) => {
|
|
1155
|
+
for (let t of e) t.contentBoxSize && xt.value && (N.value = !0, or());
|
|
1156
|
+
}), br.value.observe(xt.value), kn();
|
|
1157
|
+
}
|
|
1158
|
+
Je(() => {
|
|
1159
|
+
br.value && br.value.disconnect(), $.value && (yr.value && $.value.unobserve(yr.value), $.value.disconnect());
|
|
1160
|
+
});
|
|
1161
|
+
function Sr() {
|
|
1162
|
+
M.value.length ? M.value = [] : Dr.value.forEach((e, t) => {
|
|
1163
|
+
M.value.push(t);
|
|
1164
|
+
}), N.value = !0, or();
|
|
1165
|
+
}
|
|
1166
|
+
function Cr(e) {
|
|
1167
|
+
Gt("selectLegend", q.value.find((t) => t.absoluteIndex === e)), M.value.includes(e) ? M.value = M.value.filter((t) => t !== e) : M.value.push(e), N.value = !0, or();
|
|
1168
|
+
}
|
|
1169
|
+
function wr(e) {
|
|
1170
|
+
return K.value.length ? K.value.find((t) => t.name === e) || (B.value.debug && console.warn(`VueUiXyCanvas - Series name not found "${e}"`), null) : (B.value.debug && console.warn("VueUiXyCanvas - There are no series to show."), null);
|
|
1171
|
+
}
|
|
1172
|
+
function Tr(e) {
|
|
1173
|
+
let t = wr(e);
|
|
1174
|
+
t !== null && M.value.includes(t.absoluteIndex) && Cr(t.absoluteIndex);
|
|
1175
|
+
}
|
|
1176
|
+
function Er(e) {
|
|
1177
|
+
let t = wr(e);
|
|
1178
|
+
t !== null && (M.value.includes(t.absoluteIndex) || Cr(t.absoluteIndex));
|
|
1179
|
+
}
|
|
1180
|
+
let Dr = p(() => K.value.map((e, t) => ({
|
|
1181
|
+
...e,
|
|
1182
|
+
name: e.name,
|
|
1183
|
+
color: ce(e.color) || pn.value[t] || s[t] || s[t % s.length],
|
|
1184
|
+
shape: e.shape || "circle",
|
|
1185
|
+
prefix: e.prefix || "",
|
|
1186
|
+
suffix: e.suffix || "",
|
|
1187
|
+
rounding: e.rounding || 0
|
|
1188
|
+
})).map((e) => ({
|
|
1189
|
+
...e,
|
|
1190
|
+
opacity: M.value.includes(e.absoluteIndex) ? .5 : 1,
|
|
1191
|
+
segregate: () => Cr(e.absoluteIndex),
|
|
1192
|
+
isSegregated: M.value.includes(e.absoluteIndex)
|
|
1193
|
+
}))), Or = p(() => ({
|
|
1194
|
+
cy: "donut-div-legend",
|
|
1195
|
+
backgroundColor: B.value.style.chart.legend.backgroundColor,
|
|
1196
|
+
color: B.value.style.chart.legend.color,
|
|
1197
|
+
fontSize: B.value.style.chart.legend.fontSize,
|
|
1198
|
+
paddingBottom: 12,
|
|
1199
|
+
fontWeight: B.value.style.chart.legend.bold ? "bold" : ""
|
|
1200
|
+
})), kr = p(() => {
|
|
1201
|
+
let e = [""].concat(q.value.map((e) => e.name), " <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>"), t = [];
|
|
1202
|
+
for (let e = 0; e < U.value; e += 1) {
|
|
1203
|
+
let n = q.value.map((t) => t.series[e] ?? 0).reduce((e, t) => e + t, 0);
|
|
1204
|
+
t.push([B.value.style.chart.grid.x.timeLabels.values.slice(J.value.start, J.value.end)[e] ? Z?.value?.slice(J.value.start, J.value.end)?.[e]?.text ?? e + 1 : e + 1].concat(q.value.map((t) => (t.series[e] ?? 0).toFixed(B.value.table.rounding)), (n ?? 0).toFixed(B.value.table.rounding)));
|
|
1205
|
+
}
|
|
1206
|
+
let n = {
|
|
1207
|
+
th: {
|
|
1208
|
+
backgroundColor: B.value.table.th.backgroundColor,
|
|
1209
|
+
color: B.value.table.th.color,
|
|
1210
|
+
outline: B.value.table.th.outline
|
|
1211
|
+
},
|
|
1212
|
+
td: {
|
|
1213
|
+
backgroundColor: B.value.table.td.backgroundColor,
|
|
1214
|
+
color: B.value.table.td.color,
|
|
1215
|
+
outline: B.value.table.td.outline
|
|
1216
|
+
},
|
|
1217
|
+
breakpoint: B.value.table.responsiveBreakpoint
|
|
1218
|
+
}, r = [B.value.table.columnNames.period].concat(q.value.map((e) => e.name), B.value.table.columnNames.total);
|
|
1219
|
+
return {
|
|
1220
|
+
head: e,
|
|
1221
|
+
body: t.slice(0, J.value.end - J.value.start),
|
|
1222
|
+
config: n,
|
|
1223
|
+
colNames: r
|
|
1224
|
+
};
|
|
1225
|
+
}), Ar = p(() => {
|
|
1226
|
+
if (q.value.length === 0) return {
|
|
1227
|
+
head: [],
|
|
1228
|
+
body: [],
|
|
1229
|
+
config: {},
|
|
1230
|
+
columnNames: []
|
|
1231
|
+
};
|
|
1232
|
+
let e = q.value.map((e) => ({
|
|
1233
|
+
label: e.name,
|
|
1234
|
+
color: e.color,
|
|
1235
|
+
type: e.type
|
|
1236
|
+
})), t = [];
|
|
1237
|
+
for (let e = J.value.start; e < J.value.end; e += 1) {
|
|
1238
|
+
let n = [B.value.style.chart.grid.x.timeLabels.values[e] ? Z.value[e].text : e + 1];
|
|
1239
|
+
q.value.forEach((t) => {
|
|
1240
|
+
n.push(Number((t.series[e] || 0).toFixed(B.value.table.rounding)));
|
|
1241
|
+
}), t.push(n);
|
|
1242
|
+
}
|
|
1243
|
+
return {
|
|
1244
|
+
head: e,
|
|
1245
|
+
body: t
|
|
1246
|
+
};
|
|
1247
|
+
});
|
|
1248
|
+
function jr(e = null) {
|
|
1249
|
+
let t = [
|
|
1250
|
+
[B.value.style.chart.title.text],
|
|
1251
|
+
[B.value.style.chart.title.subtitle.text],
|
|
1252
|
+
[""]
|
|
1253
|
+
], n = ["", ...Ar.value.head.map((e) => e.label)], i = Ar.value.body, o = a(t.concat([n]).concat(i));
|
|
1254
|
+
e ? e(o) : r({
|
|
1255
|
+
csvContent: o,
|
|
1256
|
+
title: B.value.style.chart.title.text || "vue-ui-xy-canvas"
|
|
1257
|
+
});
|
|
1258
|
+
}
|
|
1259
|
+
function Mr() {
|
|
1260
|
+
return q.value;
|
|
1261
|
+
}
|
|
1262
|
+
function Nr() {
|
|
1263
|
+
H.value.showTable = !H.value.showTable;
|
|
1264
|
+
}
|
|
1265
|
+
function Pr() {
|
|
1266
|
+
H.value.showDataLabels = !H.value.showDataLabels;
|
|
1267
|
+
}
|
|
1268
|
+
function Fr() {
|
|
1269
|
+
H.value.stacked = !H.value.stacked;
|
|
1270
|
+
}
|
|
1271
|
+
function Ir() {
|
|
1272
|
+
H.value.showTooltip = !H.value.showTooltip;
|
|
1273
|
+
}
|
|
1274
|
+
let Lr = b(!1);
|
|
1275
|
+
function Rr() {
|
|
1276
|
+
Lr.value = !Lr.value;
|
|
1277
|
+
}
|
|
1278
|
+
async function zr({ scale: e = 2 } = {}) {
|
|
1279
|
+
if (!D.value) return;
|
|
1280
|
+
let { width: t, height: n } = D.value.getBoundingClientRect(), r = t / n, { imageUri: i, base64: a } = await be({
|
|
1281
|
+
domElement: D.value,
|
|
1282
|
+
base64: !0,
|
|
1283
|
+
img: !0,
|
|
1284
|
+
scale: e
|
|
1285
|
+
});
|
|
1286
|
+
return {
|
|
1287
|
+
imageUri: i,
|
|
1288
|
+
base64: a,
|
|
1289
|
+
title: B.value.style.chart.title.text,
|
|
1290
|
+
width: t,
|
|
1291
|
+
height: n,
|
|
1292
|
+
aspectRatio: r
|
|
1293
|
+
};
|
|
1294
|
+
}
|
|
1295
|
+
let Br = p(() => {
|
|
1296
|
+
let e = B.value.table.useDialog && !B.value.table.show, t = H.value.showTable;
|
|
1297
|
+
return {
|
|
1298
|
+
component: e ? _t : Me,
|
|
1299
|
+
title: `${B.value.style.chart.title.text}${B.value.style.chart.title.subtitle.text ? `: ${B.value.style.chart.title.subtitle.text}` : ""}`,
|
|
1300
|
+
props: e ? {
|
|
1301
|
+
backgroundColor: B.value.table.th.backgroundColor,
|
|
1302
|
+
color: B.value.table.th.color,
|
|
1303
|
+
headerColor: B.value.table.th.color,
|
|
1304
|
+
headerBg: B.value.table.th.backgroundColor,
|
|
1305
|
+
isFullscreen: Ot.value,
|
|
1306
|
+
fullscreenParent: D.value,
|
|
1307
|
+
forcedWidth: Math.min(800, window.innerWidth * .8),
|
|
1308
|
+
isCursorPointer: Yt.value
|
|
1309
|
+
} : {
|
|
1310
|
+
hideDetails: !0,
|
|
1311
|
+
config: {
|
|
1312
|
+
open: t,
|
|
1313
|
+
maxHeight: 1e4,
|
|
1314
|
+
body: {
|
|
1315
|
+
backgroundColor: B.value.style.chart.backgroundColor,
|
|
1316
|
+
color: B.value.style.chart.color
|
|
1317
|
+
},
|
|
1318
|
+
head: {
|
|
1319
|
+
backgroundColor: B.value.style.chart.backgroundColor,
|
|
1320
|
+
color: B.value.style.chart.color
|
|
1321
|
+
}
|
|
1322
|
+
}
|
|
1323
|
+
}
|
|
1324
|
+
};
|
|
1325
|
+
});
|
|
1326
|
+
C(() => H.value.showTable, (e) => {
|
|
1327
|
+
B.value.table.show || (e && B.value.table.useDialog && It.value ? It.value.open() : "close" in It.value && It.value.close());
|
|
1328
|
+
});
|
|
1329
|
+
function Vr() {
|
|
1330
|
+
H.value.showTable = !1, Lt.value && Lt.value.setTableIconState(!1);
|
|
1331
|
+
}
|
|
1332
|
+
function Hr(e) {
|
|
1333
|
+
if (e?.stage === "start") {
|
|
1334
|
+
Vt.value = !0;
|
|
1335
|
+
return;
|
|
1336
|
+
}
|
|
1337
|
+
if (e?.stage === "end") {
|
|
1338
|
+
Vt.value = !1;
|
|
1339
|
+
return;
|
|
1340
|
+
}
|
|
1341
|
+
dn();
|
|
1342
|
+
}
|
|
1343
|
+
async function Ur() {
|
|
1344
|
+
if (Gt("copyAlt", {
|
|
1345
|
+
config: B.value,
|
|
1346
|
+
dataset: q.value
|
|
1347
|
+
}), !B.value.userOptions.callbacks.altCopy) {
|
|
1348
|
+
console.warn("Vue Data UI - A callback must be set for `altCopy` in userOptions.");
|
|
1349
|
+
return;
|
|
1350
|
+
}
|
|
1351
|
+
await Promise.resolve(B.value.userOptions.callbacks.altCopy({
|
|
1352
|
+
config: B.value,
|
|
1353
|
+
dataset: q.value
|
|
1354
|
+
}));
|
|
1355
|
+
}
|
|
1356
|
+
return Se({
|
|
1357
|
+
getData: Mr,
|
|
1358
|
+
getImage: zr,
|
|
1359
|
+
generateCsv: jr,
|
|
1360
|
+
generatePdf: un,
|
|
1361
|
+
generateImage: dn,
|
|
1362
|
+
hideSeries: Er,
|
|
1363
|
+
showSeries: Tr,
|
|
1364
|
+
toggleTable: Nr,
|
|
1365
|
+
toggleLabels: Pr,
|
|
1366
|
+
toggleStack: Fr,
|
|
1367
|
+
toggleTooltip: Ir,
|
|
1368
|
+
toggleAnnotator: Rr,
|
|
1369
|
+
toggleFullscreen: fn,
|
|
1370
|
+
copyAlt: Ur
|
|
1371
|
+
}), (t, n) => (y(), ze("div", {
|
|
1372
|
+
style: qe(`width:100%; position:relative; ${B.value.responsive ? "height: 100%" : ""}; background:${B.value.style.chart.backgroundColor};`),
|
|
1373
|
+
ref_key: "xy",
|
|
1374
|
+
ref: D,
|
|
1375
|
+
id: `xy_canvas_${E.value}`,
|
|
1376
|
+
class: Ke(`vue-data-ui-component vue-ui-xy-canvas ${Ot.value ? "vue-data-ui-wrapper-fullscreen" : ""}`),
|
|
1377
|
+
onMouseenter: rn,
|
|
1378
|
+
onMouseleave: an
|
|
1379
|
+
}, [
|
|
1380
|
+
g("div", {
|
|
1381
|
+
id: `chart-instructions-${E.value}`,
|
|
1382
|
+
class: "sr-only"
|
|
1383
|
+
}, [g("p", null, Qe(B.value.a11y.translations.keyboardNavigation), 1)], 8, it),
|
|
1384
|
+
g("div", at, Qe(Jt.value), 1),
|
|
1385
|
+
B.value.style.chart.title.text ? (y(), ze("div", {
|
|
1386
|
+
key: 0,
|
|
1387
|
+
ref_key: "chartTitle",
|
|
1388
|
+
ref: kt,
|
|
1389
|
+
style: qe(`width:100%;background:${B.value.style.chart.backgroundColor};`)
|
|
1390
|
+
}, [(y(), m(xe, {
|
|
1391
|
+
key: `title_${Mt.value}`,
|
|
1392
|
+
config: {
|
|
1393
|
+
title: {
|
|
1394
|
+
cy: "xy-canvas-title",
|
|
1395
|
+
...B.value.style.chart.title
|
|
1396
|
+
},
|
|
1397
|
+
subtitle: {
|
|
1398
|
+
cy: "xy-canvas-subtitle",
|
|
1399
|
+
...B.value.style.chart.title.subtitle
|
|
1400
|
+
}
|
|
1401
|
+
}
|
|
1402
|
+
}, null, 8, ["config"]))], 4)) : h("", !0),
|
|
1403
|
+
g("div", { id: `legend-top-${E.value}` }, null, 8, ot),
|
|
1404
|
+
B.value.userOptions.show && z.value && (S(nn) || S(en)) ? (y(), m(S(ht), {
|
|
1405
|
+
ref_key: "userOptionsRef",
|
|
1406
|
+
ref: Lt,
|
|
1407
|
+
key: `user_option_${Dt.value}`,
|
|
1408
|
+
backgroundColor: B.value.style.chart.backgroundColor,
|
|
1409
|
+
color: B.value.style.chart.color,
|
|
1410
|
+
isPrinting: S(cn),
|
|
1411
|
+
isImaging: S(ln),
|
|
1412
|
+
uid: E.value,
|
|
1413
|
+
hasTooltip: B.value.userOptions.buttons.tooltip && B.value.style.chart.tooltip.show,
|
|
1414
|
+
hasPdf: B.value.userOptions.buttons.pdf,
|
|
1415
|
+
hasImg: B.value.userOptions.buttons.img,
|
|
1416
|
+
hasXls: B.value.userOptions.buttons.csv,
|
|
1417
|
+
hasLabel: B.value.userOptions.buttons.labels,
|
|
1418
|
+
hasStack: e.dataset.length > 1 && B.value.userOptions.buttons.stack,
|
|
1419
|
+
hasFullscreen: B.value.userOptions.buttons.fullscreen,
|
|
1420
|
+
hasAltCopy: B.value.userOptions.buttons.altCopy,
|
|
1421
|
+
hasTable: J.value.end - J.value.start <= 730 && B.value.userOptions.buttons.table,
|
|
1422
|
+
isFullscreen: Ot.value,
|
|
1423
|
+
isTooltip: H.value.showTooltip,
|
|
1424
|
+
isStacked: H.value.stacked,
|
|
1425
|
+
titles: { ...B.value.userOptions.buttonTitles },
|
|
1426
|
+
chartElement: D.value,
|
|
1427
|
+
position: B.value.userOptions.position,
|
|
1428
|
+
hasAnnotator: B.value.userOptions.buttons.annotator,
|
|
1429
|
+
isAnnotation: Lr.value,
|
|
1430
|
+
callbacks: B.value.userOptions.callbacks,
|
|
1431
|
+
printScale: B.value.userOptions.print.scale,
|
|
1432
|
+
tableDialog: B.value.table.useDialog,
|
|
1433
|
+
isCursorPointer: Yt.value,
|
|
1434
|
+
onToggleFullscreen: fn,
|
|
1435
|
+
onGeneratePdf: S(un),
|
|
1436
|
+
onGenerateCsv: jr,
|
|
1437
|
+
onGenerateImage: Hr,
|
|
1438
|
+
onToggleTable: Nr,
|
|
1439
|
+
onToggleLabels: Pr,
|
|
1440
|
+
onToggleStack: Fr,
|
|
1441
|
+
onToggleTooltip: Ir,
|
|
1442
|
+
onToggleAnnotator: Rr,
|
|
1443
|
+
onCopyAlt: Ur,
|
|
1444
|
+
style: qe({ visibility: S(nn) ? S(en) ? "visible" : "hidden" : "visible" })
|
|
1445
|
+
}, Be({ _: 2 }, [
|
|
1446
|
+
t.$slots.menuIcon ? {
|
|
1447
|
+
name: "menuIcon",
|
|
1448
|
+
fn: w(({ isOpen: e, color: n }) => [x(t.$slots, "menuIcon", v(_({
|
|
1449
|
+
isOpen: e,
|
|
1450
|
+
color: n
|
|
1451
|
+
})), void 0, !0)]),
|
|
1452
|
+
key: "0"
|
|
1453
|
+
} : void 0,
|
|
1454
|
+
t.$slots.optionTooltip ? {
|
|
1455
|
+
name: "optionTooltip",
|
|
1456
|
+
fn: w(() => [x(t.$slots, "optionTooltip", {}, void 0, !0)]),
|
|
1457
|
+
key: "1"
|
|
1458
|
+
} : void 0,
|
|
1459
|
+
t.$slots.optionPdf ? {
|
|
1460
|
+
name: "optionPdf",
|
|
1461
|
+
fn: w(() => [x(t.$slots, "optionPdf", {}, void 0, !0)]),
|
|
1462
|
+
key: "2"
|
|
1463
|
+
} : void 0,
|
|
1464
|
+
t.$slots.optionCsv ? {
|
|
1465
|
+
name: "optionCsv",
|
|
1466
|
+
fn: w(() => [x(t.$slots, "optionCsv", {}, void 0, !0)]),
|
|
1467
|
+
key: "3"
|
|
1468
|
+
} : void 0,
|
|
1469
|
+
t.$slots.optionImg ? {
|
|
1470
|
+
name: "optionImg",
|
|
1471
|
+
fn: w(() => [x(t.$slots, "optionImg", {}, void 0, !0)]),
|
|
1472
|
+
key: "4"
|
|
1473
|
+
} : void 0,
|
|
1474
|
+
t.$slots.optionTable ? {
|
|
1475
|
+
name: "optionTable",
|
|
1476
|
+
fn: w(() => [x(t.$slots, "optionTable", {}, void 0, !0)]),
|
|
1477
|
+
key: "5"
|
|
1478
|
+
} : void 0,
|
|
1479
|
+
t.$slots.optionLabels ? {
|
|
1480
|
+
name: "optionLabels",
|
|
1481
|
+
fn: w(() => [x(t.$slots, "optionLabels", {}, void 0, !0)]),
|
|
1482
|
+
key: "6"
|
|
1483
|
+
} : void 0,
|
|
1484
|
+
t.$slots.optionStack ? {
|
|
1485
|
+
name: "optionStack",
|
|
1486
|
+
fn: w(() => [x(t.$slots, "optionStack", {}, void 0, !0)]),
|
|
1487
|
+
key: "7"
|
|
1488
|
+
} : void 0,
|
|
1489
|
+
t.$slots.optionFullscreen ? {
|
|
1490
|
+
name: "optionFullscreen",
|
|
1491
|
+
fn: w(({ toggleFullscreen: e, isFullscreen: n }) => [x(t.$slots, "optionFullscreen", v(_({
|
|
1492
|
+
toggleFullscreen: e,
|
|
1493
|
+
isFullscreen: n
|
|
1494
|
+
})), void 0, !0)]),
|
|
1495
|
+
key: "8"
|
|
1496
|
+
} : void 0,
|
|
1497
|
+
t.$slots.optionAnnotator ? {
|
|
1498
|
+
name: "optionAnnotator",
|
|
1499
|
+
fn: w(({ toggleAnnotator: e, isAnnotator: n }) => [x(t.$slots, "optionAnnotator", v(_({
|
|
1500
|
+
toggleAnnotator: e,
|
|
1501
|
+
isAnnotator: n
|
|
1502
|
+
})), void 0, !0)]),
|
|
1503
|
+
key: "9"
|
|
1504
|
+
} : void 0,
|
|
1505
|
+
t.$slots.optionAltCopy ? {
|
|
1506
|
+
name: "optionAltCopy",
|
|
1507
|
+
fn: w(({ altCopy: e }) => [x(t.$slots, "optionAltCopy", v(_({ altCopy: e })), void 0, !0)]),
|
|
1508
|
+
key: "10"
|
|
1509
|
+
} : void 0
|
|
1510
|
+
]), 1032, /* @__PURE__ */ "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".split("."))) : h("", !0),
|
|
1511
|
+
g("div", {
|
|
1512
|
+
class: "vue-ui-xy-canvas",
|
|
1513
|
+
style: qe(`position: relative; aspect-ratio: ${sn.value}`),
|
|
1514
|
+
ref_key: "container",
|
|
1515
|
+
ref: xt
|
|
1516
|
+
}, [
|
|
1517
|
+
g("canvas", {
|
|
1518
|
+
ref_key: "canvas",
|
|
1519
|
+
ref: V,
|
|
1520
|
+
"aria-label": qt.value,
|
|
1521
|
+
"aria-describedby": `chart-instructions-${E.value}`,
|
|
1522
|
+
role: "img",
|
|
1523
|
+
"aria-live": "polite",
|
|
1524
|
+
tabindex: "0",
|
|
1525
|
+
style: {
|
|
1526
|
+
width: "100%",
|
|
1527
|
+
height: "100%"
|
|
1528
|
+
},
|
|
1529
|
+
onMousemove: n[0] ||= (e) => cr(e),
|
|
1530
|
+
onMouseleave: vr,
|
|
1531
|
+
onFocus: mr,
|
|
1532
|
+
onBlur: hr,
|
|
1533
|
+
onKeydown: gr
|
|
1534
|
+
}, null, 40, st),
|
|
1535
|
+
t.$slots.hint ? (y(), ze("div", ct, [x(t.$slots, "hint", v(_({
|
|
1536
|
+
hint: B.value.a11y.translations.keyboardNavigation,
|
|
1537
|
+
isVisible: Ut.value
|
|
1538
|
+
})), void 0, !0)])) : h("", !0),
|
|
1539
|
+
x(t.$slots, "skeleton", {}, () => [S(Qt) ? (y(), m(_e, { key: 0 })) : h("", !0)], !0),
|
|
1540
|
+
He(S(pt), {
|
|
1541
|
+
teleportTo: B.value.style.chart.tooltip.teleportTo,
|
|
1542
|
+
show: H.value.showTooltip && St.value,
|
|
1543
|
+
backgroundColor: B.value.style.chart.tooltip.backgroundColor,
|
|
1544
|
+
color: B.value.style.chart.tooltip.color,
|
|
1545
|
+
fontSize: B.value.style.chart.tooltip.fontSize,
|
|
1546
|
+
borderRadius: B.value.style.chart.tooltip.borderRadius,
|
|
1547
|
+
borderColor: B.value.style.chart.tooltip.borderColor,
|
|
1548
|
+
borderWidth: B.value.style.chart.tooltip.borderWidth,
|
|
1549
|
+
position: B.value.style.chart.tooltip.position,
|
|
1550
|
+
offsetY: B.value.style.chart.tooltip.offsetY,
|
|
1551
|
+
parent: t.$refs.xy,
|
|
1552
|
+
content: Ct.value,
|
|
1553
|
+
isFullscreen: Ot.value,
|
|
1554
|
+
backgroundOpacity: B.value.style.chart.tooltip.backgroundOpacity,
|
|
1555
|
+
isCustom: S(oe)(B.value.style.chart.tooltip.customFormat),
|
|
1556
|
+
smooth: B.value.style.chart.tooltip.smooth,
|
|
1557
|
+
backdropFilter: B.value.style.chart.tooltip.backdropFilter,
|
|
1558
|
+
smoothForce: B.value.style.chart.tooltip.smoothForce,
|
|
1559
|
+
smoothSnapThreshold: B.value.style.chart.tooltip.smoothSnapThreshold,
|
|
1560
|
+
isA11yMode: Ht.value,
|
|
1561
|
+
a11yPosition: Wt.value
|
|
1562
|
+
}, {
|
|
1563
|
+
"tooltip-before": w(() => [x(t.$slots, "tooltip-before", v(_({ ...wt.value })), void 0, !0)]),
|
|
1564
|
+
tooltip: w(() => [x(t.$slots, "tooltip", v(_({ ...wt.value })), void 0, !0)]),
|
|
1565
|
+
"tooltip-after": w(() => [x(t.$slots, "tooltip-after", v(_({ ...wt.value })), void 0, !0)]),
|
|
1566
|
+
_: 3
|
|
1567
|
+
}, 8, [
|
|
1568
|
+
"teleportTo",
|
|
1569
|
+
"show",
|
|
1570
|
+
"backgroundColor",
|
|
1571
|
+
"color",
|
|
1572
|
+
"fontSize",
|
|
1573
|
+
"borderRadius",
|
|
1574
|
+
"borderColor",
|
|
1575
|
+
"borderWidth",
|
|
1576
|
+
"position",
|
|
1577
|
+
"offsetY",
|
|
1578
|
+
"parent",
|
|
1579
|
+
"content",
|
|
1580
|
+
"isFullscreen",
|
|
1581
|
+
"backgroundOpacity",
|
|
1582
|
+
"isCustom",
|
|
1583
|
+
"smooth",
|
|
1584
|
+
"backdropFilter",
|
|
1585
|
+
"smoothForce",
|
|
1586
|
+
"smoothSnapThreshold",
|
|
1587
|
+
"isA11yMode",
|
|
1588
|
+
"a11yPosition"
|
|
1589
|
+
])
|
|
1590
|
+
], 4),
|
|
1591
|
+
B.value.style.chart.zoom.show && U.value > 6 && z.value && zt.value && !S(Qt) ? (y(), m(je, {
|
|
1592
|
+
key: 2,
|
|
1593
|
+
ref_key: "chartSlicer",
|
|
1594
|
+
ref: F,
|
|
1595
|
+
allMinimaps: En.value,
|
|
1596
|
+
background: B.value.style.chart.zoom.color,
|
|
1597
|
+
borderColor: B.value.style.chart.backgroundColor,
|
|
1598
|
+
customFormat: B.value.style.chart.zoom.customFormat,
|
|
1599
|
+
cutNullValues: wn.value,
|
|
1600
|
+
enableRangeHandles: B.value.style.chart.zoom.enableRangeHandles,
|
|
1601
|
+
enableSelectionDrag: B.value.style.chart.zoom.enableSelectionDrag,
|
|
1602
|
+
end: J.value.end,
|
|
1603
|
+
focusOnDrag: B.value.style.chart.zoom.focusOnDrag,
|
|
1604
|
+
focusRangeRatio: B.value.style.chart.zoom.focusRangeRatio,
|
|
1605
|
+
fontSize: B.value.style.chart.zoom.fontSize,
|
|
1606
|
+
immediate: !B.value.style.chart.zoom.preview.enable,
|
|
1607
|
+
inputColor: B.value.style.chart.zoom.color,
|
|
1608
|
+
isPreview: An.value,
|
|
1609
|
+
labelLeft: B.value.style.chart.grid.x.timeLabels.values[J.value.start] ? Z.value[J.value.start]?.text : "",
|
|
1610
|
+
labelRight: B.value.style.chart.grid.x.timeLabels.values[J.value.end - 1] ? Z.value[J.value.end - 1]?.text : "",
|
|
1611
|
+
max: U.value,
|
|
1612
|
+
min: 0,
|
|
1613
|
+
minimap: Tn.value,
|
|
1614
|
+
minimapCompact: B.value.style.chart.zoom.minimap.compact,
|
|
1615
|
+
minimapFrameColor: B.value.style.chart.zoom.minimap.frameColor,
|
|
1616
|
+
minimapIndicatorColor: B.value.style.chart.zoom.minimap.indicatorColor,
|
|
1617
|
+
minimapLineColor: B.value.style.chart.zoom.minimap.lineColor,
|
|
1618
|
+
minimapMerged: B.value.style.chart.zoom.minimap.merged,
|
|
1619
|
+
minimapSelectedColor: B.value.style.chart.zoom.minimap.selectedColor,
|
|
1620
|
+
minimapSelectedColorOpacity: B.value.style.chart.zoom.minimap.selectedColorOpacity,
|
|
1621
|
+
minimapSelectedIndex: j.value,
|
|
1622
|
+
minimapSelectionRadius: B.value.style.chart.zoom.minimap.selectionRadius,
|
|
1623
|
+
preciseLabels: Jn.value?.length ? Jn.value : Z.value,
|
|
1624
|
+
refreshEndPoint: B.value.style.chart.zoom.endIndex === null ? U.value : B.value.style.chart.zoom.endIndex + 1,
|
|
1625
|
+
refreshStartPoint: B.value.style.chart.zoom.startIndex === null ? 0 : B.value.style.chart.zoom.startIndex,
|
|
1626
|
+
selectColor: B.value.style.chart.zoom.highlightColor,
|
|
1627
|
+
selectedSeries: K.value,
|
|
1628
|
+
smoothMinimap: B.value.style.chart.zoom.minimap.smooth,
|
|
1629
|
+
start: J.value.start,
|
|
1630
|
+
timeLabels: Z.value,
|
|
1631
|
+
usePreciseLabels: B.value.style.chart.grid.x.timeLabels.datetimeFormatter.enable && !B.value.style.chart.zoom.useDefaultFormat,
|
|
1632
|
+
textColor: B.value.style.chart.color,
|
|
1633
|
+
useResetSlot: B.value.style.chart.zoom.useResetSlot,
|
|
1634
|
+
valueEnd: J.value.end,
|
|
1635
|
+
valueStart: J.value.start,
|
|
1636
|
+
verticalHandles: B.value.style.chart.zoom.minimap.verticalHandles,
|
|
1637
|
+
maxWidth: B.value.style.chart.zoom.maxWidth,
|
|
1638
|
+
additionalMinimapHeight: B.value.style.chart.zoom.minimap.additionalHeight,
|
|
1639
|
+
handleType: B.value.style.chart.zoom.minimap.handleType,
|
|
1640
|
+
handleIconColor: B.value.style.chart.zoom.minimap.handleIconColor,
|
|
1641
|
+
handleBorderWidth: B.value.style.chart.zoom.minimap.handleBorderWidth,
|
|
1642
|
+
handleBorderColor: B.value.style.chart.zoom.minimap.handleBorderColor,
|
|
1643
|
+
handleFill: B.value.style.chart.zoom.minimap.handleFill,
|
|
1644
|
+
handleWidth: B.value.style.chart.zoom.minimap.handleWidth,
|
|
1645
|
+
onFutureEnd: n[1] ||= (e) => jn("end", e),
|
|
1646
|
+
onFutureStart: n[2] ||= (e) => jn("start", e),
|
|
1647
|
+
onReset: kn,
|
|
1648
|
+
onTrapMouse: hn,
|
|
1649
|
+
"onUpdate:end": Pn,
|
|
1650
|
+
"onUpdate:start": Nn
|
|
1651
|
+
}, {
|
|
1652
|
+
"reset-action": w(({ reset: e }) => [x(t.$slots, "reset-action", v(_({ reset: e })), void 0, !0)]),
|
|
1653
|
+
_: 3
|
|
1654
|
+
}, 8, /* @__PURE__ */ "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".split("."))) : h("", !0),
|
|
1655
|
+
g("div", { id: `legend-bottom-${E.value}` }, null, 8, lt),
|
|
1656
|
+
Ft.value && (B.value.style.chart.legend.show || t.$slots.legend) ? (y(), m(Re, {
|
|
1657
|
+
key: 3,
|
|
1658
|
+
to: B.value.style.chart.legend.position === "top" ? `#legend-top-${E.value}` : `#legend-bottom-${E.value}`
|
|
1659
|
+
}, [g("div", {
|
|
1660
|
+
ref_key: "chartLegend",
|
|
1661
|
+
ref: At
|
|
1662
|
+
}, [x(t.$slots, "legend", { legend: Dr.value }, () => [B.value.style.chart.legend.show && z.value ? (y(), m(Ie, {
|
|
1663
|
+
legendSet: Dr.value,
|
|
1664
|
+
config: Or.value,
|
|
1665
|
+
key: `legend_${Pt.value}`,
|
|
1666
|
+
isCursorPointer: Yt.value,
|
|
1667
|
+
onClickMarker: n[3] ||= ({ i: e }) => Cr(e)
|
|
1668
|
+
}, {
|
|
1669
|
+
item: w(({ legend: e, index: t }) => [g("div", {
|
|
1670
|
+
onClick: (t) => e.segregate(),
|
|
1671
|
+
style: qe(`opacity:${M.value.includes(t) ? .5 : 1}`)
|
|
1672
|
+
}, Qe(e.name), 13, ut)]),
|
|
1673
|
+
legendToggle: w(() => [Dr.value.length > 2 && B.value.style.chart.legend.selectAllToggle.show && !S(Qt) ? (y(), m(Ne, {
|
|
1674
|
+
key: 0,
|
|
1675
|
+
backgroundColor: B.value.style.chart.legend.selectAllToggle.backgroundColor,
|
|
1676
|
+
color: B.value.style.chart.legend.selectAllToggle.color,
|
|
1677
|
+
fontSize: B.value.style.chart.legend.fontSize,
|
|
1678
|
+
checked: M.value.length > 0,
|
|
1679
|
+
isCursorPointer: Yt.value,
|
|
1680
|
+
onToggle: Sr
|
|
1681
|
+
}, null, 8, [
|
|
1682
|
+
"backgroundColor",
|
|
1683
|
+
"color",
|
|
1684
|
+
"fontSize",
|
|
1685
|
+
"checked",
|
|
1686
|
+
"isCursorPointer"
|
|
1687
|
+
])) : h("", !0)]),
|
|
1688
|
+
_: 1
|
|
1689
|
+
}, 8, [
|
|
1690
|
+
"legendSet",
|
|
1691
|
+
"config",
|
|
1692
|
+
"isCursorPointer"
|
|
1693
|
+
])) : h("", !0)], !0)], 512)], 8, ["to"])) : h("", !0),
|
|
1694
|
+
t.$slots.watermark ? (y(), ze("div", dt, [x(t.$slots, "watermark", v(_({ isPrinting: S(cn) || S(ln) || Vt.value })), void 0, !0)])) : h("", !0),
|
|
1695
|
+
t.$slots.source ? (y(), ze("div", {
|
|
1696
|
+
key: 5,
|
|
1697
|
+
ref_key: "source",
|
|
1698
|
+
ref: jt,
|
|
1699
|
+
dir: "auto"
|
|
1700
|
+
}, [x(t.$slots, "source", {}, void 0, !0)], 512)) : h("", !0),
|
|
1701
|
+
z.value && B.value.userOptions.buttons.table ? (y(), m(Xe(Br.value.component), We({ key: 6 }, Br.value.props, {
|
|
1702
|
+
ref_key: "tableUnit",
|
|
1703
|
+
ref: It,
|
|
1704
|
+
onClose: Vr
|
|
1705
|
+
}), Be({
|
|
1706
|
+
content: w(() => [(y(), m(S(mt), {
|
|
1707
|
+
key: `table_${Nt.value}`,
|
|
1708
|
+
colNames: kr.value.colNames,
|
|
1709
|
+
head: kr.value.head,
|
|
1710
|
+
body: kr.value.body,
|
|
1711
|
+
config: kr.value.config,
|
|
1712
|
+
title: B.value.table.useDialog ? "" : Br.value.title,
|
|
1713
|
+
withCloseButton: !B.value.table.useDialog,
|
|
1714
|
+
isCursorPointer: Yt.value,
|
|
1715
|
+
onClose: Vr
|
|
1716
|
+
}, {
|
|
1717
|
+
th: w(({ th: e }) => [g("div", { innerHTML: e }, null, 8, ft)]),
|
|
1718
|
+
td: w(({ td: e }) => [Ve(Qe(e), 1)]),
|
|
1719
|
+
_: 1
|
|
1720
|
+
}, 8, [
|
|
1721
|
+
"colNames",
|
|
1722
|
+
"head",
|
|
1723
|
+
"body",
|
|
1724
|
+
"config",
|
|
1725
|
+
"title",
|
|
1726
|
+
"withCloseButton",
|
|
1727
|
+
"isCursorPointer"
|
|
1728
|
+
]))]),
|
|
1729
|
+
_: 2
|
|
1730
|
+
}, [B.value.table.useDialog ? {
|
|
1731
|
+
name: "title",
|
|
1732
|
+
fn: w(() => [Ve(Qe(Br.value.title), 1)]),
|
|
1733
|
+
key: "0"
|
|
1734
|
+
} : void 0, B.value.table.useDialog ? {
|
|
1735
|
+
name: "actions",
|
|
1736
|
+
fn: w(() => [g("button", {
|
|
1737
|
+
tabindex: "0",
|
|
1738
|
+
class: "vue-ui-user-options-button",
|
|
1739
|
+
onClick: n[4] ||= (e) => jr(B.value.userOptions.callbacks.csv),
|
|
1740
|
+
style: qe({ cursor: Yt.value ? "pointer" : "default" })
|
|
1741
|
+
}, [He(Ae, {
|
|
1742
|
+
name: "fileCsv",
|
|
1743
|
+
stroke: Br.value.props.color
|
|
1744
|
+
}, null, 8, ["stroke"])], 4)]),
|
|
1745
|
+
key: "1"
|
|
1746
|
+
} : void 0]), 1040)) : h("", !0),
|
|
1747
|
+
B.value.userOptions.buttons.annotator && q.value.length ? (y(), m(S(gt), {
|
|
1748
|
+
key: 7,
|
|
1749
|
+
parent: D.value,
|
|
1750
|
+
backgroundColor: B.value.style.chart.backgroundColor,
|
|
1751
|
+
color: B.value.style.chart.color,
|
|
1752
|
+
active: Lr.value,
|
|
1753
|
+
isCursorPointer: Yt.value,
|
|
1754
|
+
onClose: Rr
|
|
1755
|
+
}, {
|
|
1756
|
+
"annotator-action-close": w(() => [x(t.$slots, "annotator-action-close", {}, void 0, !0)]),
|
|
1757
|
+
"annotator-action-color": w(({ color: e }) => [x(t.$slots, "annotator-action-color", v(_({ color: e })), void 0, !0)]),
|
|
1758
|
+
"annotator-action-draw": w(({ mode: e }) => [x(t.$slots, "annotator-action-draw", v(_({ mode: e })), void 0, !0)]),
|
|
1759
|
+
"annotator-action-undo": w(({ disabled: e }) => [x(t.$slots, "annotator-action-undo", v(_({ disabled: e })), void 0, !0)]),
|
|
1760
|
+
"annotator-action-redo": w(({ disabled: e }) => [x(t.$slots, "annotator-action-redo", v(_({ disabled: e })), void 0, !0)]),
|
|
1761
|
+
"annotator-action-delete": w(({ disabled: e }) => [x(t.$slots, "annotator-action-delete", v(_({ disabled: e })), void 0, !0)]),
|
|
1762
|
+
_: 3
|
|
1763
|
+
}, 8, [
|
|
1764
|
+
"parent",
|
|
1765
|
+
"backgroundColor",
|
|
1766
|
+
"color",
|
|
1767
|
+
"active",
|
|
1768
|
+
"isCursorPointer"
|
|
1769
|
+
])) : h("", !0)
|
|
1770
|
+
], 46, rt));
|
|
1771
|
+
}
|
|
1772
|
+
}, [["__scopeId", "data-v-1704f981"]]);
|
|
1773
|
+
//#endregion
|
|
1774
|
+
export { nt as n, pt as t };
|