vue-data-ui 3.20.3 → 3.20.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/A11yDataTable-BCbtxMU6.js +45 -0
- package/dist/Arrow-D6j6ocXm.js +116 -0
- package/dist/BaseDraggableDialog-4hDW-Rj2.js +272 -0
- package/dist/BaseIcon-DfLoHNUj.js +502 -0
- package/dist/BaseLegendToggle-C_Db-y7s.js +56 -0
- package/dist/BaseScanner-Dr2a1Msy.js +27 -0
- package/dist/BaseZoomControls-CG7hI_1P.js +111 -0
- package/dist/ColorPicker-Bjwxnvfh.js +255 -0
- package/dist/DataTable-B--IN22e.js +150 -0
- package/dist/Legend-Cz2uQ5gs.js +114 -0
- package/dist/NonSvgPenAndPaper-gLNJ1Lmr.js +577 -0
- package/dist/PackageVersion-BYcZLGDG.js +11 -0
- package/dist/PenAndPaper-DqrClVfb.js +461 -0
- package/dist/RecursiveCircles-D6aDPmoe.js +117 -0
- package/dist/RecursiveLabels-D9rfID6q.js +56 -0
- package/dist/RecursiveLinks-BygcpDiT.js +78 -0
- package/dist/Shape-BPCJfphn.js +141 -0
- package/dist/Slicer-SHBj0VaV.js +1144 -0
- package/dist/SlicerPreview-DdihbUSJ.js +1668 -0
- package/dist/SparkTooltip-CfE6yCad.js +93 -0
- package/dist/Title-NWp4qB4K.js +87 -0
- package/dist/Tooltip-BENq327o.js +312 -0
- package/dist/UserOptions-C1NgoGu6.js +1411 -0
- package/dist/_plugin-vue_export-helper-B3ysoDQm.js +8 -0
- package/dist/canvas-lib-BOP_HS11.js +79 -0
- package/dist/components/arrow.js +2 -0
- package/dist/components/vue-ui-3d-bar.js +2 -0
- package/dist/components/vue-ui-accordion.js +2 -0
- package/dist/components/vue-ui-age-pyramid.js +2 -0
- package/dist/components/vue-ui-annotator.js +2 -0
- package/dist/components/vue-ui-bullet.js +2 -0
- package/dist/components/vue-ui-bump.js +2 -0
- package/dist/components/vue-ui-candlestick.js +2 -0
- package/dist/components/vue-ui-carousel-table.js +2 -0
- package/dist/components/vue-ui-chestnut.js +2 -0
- package/dist/components/vue-ui-chord.js +2 -0
- package/dist/components/vue-ui-circle-pack.js +2 -0
- package/dist/components/vue-ui-cursor.js +2 -0
- package/dist/components/vue-ui-dag.js +2 -0
- package/dist/components/vue-ui-dashboard.js +2 -0
- package/dist/components/vue-ui-digits.js +2 -0
- package/dist/components/vue-ui-donut-evolution.js +2 -0
- package/dist/components/vue-ui-donut.js +2 -0
- package/dist/components/vue-ui-dumbbell.js +2 -0
- package/dist/components/vue-ui-flow.js +2 -0
- package/dist/components/vue-ui-funnel.js +2 -0
- package/dist/components/vue-ui-galaxy.js +2 -0
- package/dist/components/vue-ui-gauge.js +2 -0
- package/dist/components/vue-ui-geo.js +2 -0
- package/dist/components/vue-ui-gizmo.js +2 -0
- package/dist/components/vue-ui-heatmap.js +2 -0
- package/dist/components/vue-ui-history-plot.js +2 -0
- package/dist/components/vue-ui-horizontal-bar.js +2 -0
- package/dist/components/vue-ui-icon.js +2 -0
- package/dist/components/vue-ui-kpi.js +2 -0
- package/dist/components/vue-ui-mini-loader.js +2 -0
- package/dist/components/vue-ui-molecule.js +2 -0
- package/dist/components/vue-ui-mood-radar.js +2 -0
- package/dist/components/vue-ui-nested-donuts.js +2 -0
- package/dist/components/vue-ui-onion.js +2 -0
- package/dist/components/vue-ui-parallel-coordinate-plot.js +2 -0
- package/dist/components/vue-ui-pattern-seed.js +2 -0
- package/dist/components/vue-ui-pattern.js +2 -0
- package/dist/components/vue-ui-quadrant.js +2 -0
- package/dist/components/vue-ui-quick-chart.js +2 -0
- package/dist/components/vue-ui-radar.js +2 -0
- package/dist/components/vue-ui-rating.js +2 -0
- package/dist/components/vue-ui-relation-circle.js +2 -0
- package/dist/components/vue-ui-ridgeline.js +2 -0
- package/dist/components/vue-ui-rings.js +2 -0
- package/dist/components/vue-ui-scatter.js +2 -0
- package/dist/components/vue-ui-skeleton.js +2 -0
- package/dist/components/vue-ui-smiley.js +2 -0
- package/dist/components/vue-ui-spark-trend.js +2 -0
- package/dist/components/vue-ui-sparkbar.js +2 -0
- package/dist/components/vue-ui-sparkgauge.js +2 -0
- package/dist/components/vue-ui-sparkhistogram.js +2 -0
- package/dist/components/vue-ui-sparkline.js +2 -0
- package/dist/components/vue-ui-sparkstackbar.js +2 -0
- package/dist/components/vue-ui-stackbar.js +2 -0
- package/dist/components/vue-ui-stackline.js +2 -0
- package/dist/components/vue-ui-strip-plot.js +2 -0
- package/dist/components/vue-ui-table-heatmap.js +2 -0
- package/dist/components/vue-ui-table-sparkline.js +2 -0
- package/dist/components/vue-ui-table.js +2 -0
- package/dist/components/vue-ui-thermometer.js +2 -0
- package/dist/components/vue-ui-timer.js +2 -0
- package/dist/components/vue-ui-tiremarks.js +2 -0
- package/dist/components/vue-ui-treemap.js +2 -0
- package/dist/components/vue-ui-vertical-bar.js +2 -0
- package/dist/components/vue-ui-waffle.js +2 -0
- package/dist/components/vue-ui-wheel.js +2 -0
- package/dist/components/vue-ui-word-cloud.js +2 -0
- package/dist/components/vue-ui-world.js +2 -0
- package/dist/components/vue-ui-xy-canvas.js +2 -0
- package/dist/components/vue-ui-xy.js +2 -0
- package/dist/dom-to-png-BYtB4BF3.js +237 -0
- package/dist/exposedLib-CI8ji8G-.js +19 -0
- package/dist/geoProjections-Czak6Jn1.js +145 -0
- package/dist/img-1cKsci8e.js +74 -0
- package/dist/labelUtils-CUctkYoA.js +19 -0
- package/dist/lib-DUeYQsS0.js +1882 -0
- package/dist/llms.txt +232 -0
- package/dist/patternUtils-CS7hn6at.js +258 -0
- package/dist/pdf-D0eZ99cP.js +90 -0
- package/dist/rolldown-runtime-Dy4uBu1J.js +11 -0
- package/dist/style.css +2 -0
- package/dist/types/arrow.d.ts +4 -0
- package/dist/types/utils.d.ts +551 -0
- package/dist/types/vue-data-ui.d.ts +17190 -0
- package/dist/types/vue-ui-3d-bar.d.ts +93 -0
- package/dist/types/vue-ui-accordion.d.ts +11 -0
- package/dist/types/vue-ui-age-pyramid.d.ts +108 -0
- package/dist/types/vue-ui-annotator.d.ts +34 -0
- package/dist/types/vue-ui-bullet.d.ts +85 -0
- package/dist/types/vue-ui-bump.d.ts +92 -0
- package/dist/types/vue-ui-candlestick.d.ts +106 -0
- package/dist/types/vue-ui-carousel-table.d.ts +59 -0
- package/dist/types/vue-ui-chestnut.d.ts +98 -0
- package/dist/types/vue-ui-chord.d.ts +110 -0
- package/dist/types/vue-ui-circle-pack.d.ts +126 -0
- package/dist/types/vue-ui-cursor.d.ts +9 -0
- package/dist/types/vue-ui-dag.d.ts +125 -0
- package/dist/types/vue-ui-dashboard.d.ts +68 -0
- package/dist/types/vue-ui-digits.d.ts +12 -0
- package/dist/types/vue-ui-donut-evolution.d.ts +98 -0
- package/dist/types/vue-ui-donut.d.ts +123 -0
- package/dist/types/vue-ui-dumbbell.d.ts +94 -0
- package/dist/types/vue-ui-flow.d.ts +106 -0
- package/dist/types/vue-ui-funnel.d.ts +79 -0
- package/dist/types/vue-ui-galaxy.d.ts +114 -0
- package/dist/types/vue-ui-gauge.d.ts +89 -0
- package/dist/types/vue-ui-geo.d.ts +94 -0
- package/dist/types/vue-ui-gizmo.d.ts +22 -0
- package/dist/types/vue-ui-heatmap.d.ts +101 -0
- package/dist/types/vue-ui-history-plot.d.ts +114 -0
- package/dist/types/vue-ui-horizontal-bar.d.ts +116 -0
- package/dist/types/vue-ui-icon.d.ts +15 -0
- package/dist/types/vue-ui-kpi.d.ts +25 -0
- package/dist/types/vue-ui-mini-loader.d.ts +15 -0
- package/dist/types/vue-ui-molecule.d.ts +112 -0
- package/dist/types/vue-ui-mood-radar.d.ts +92 -0
- package/dist/types/vue-ui-nested-donuts.d.ts +111 -0
- package/dist/types/vue-ui-onion.d.ts +106 -0
- package/dist/types/vue-ui-parallel-coordinate-plot.d.ts +125 -0
- package/dist/types/vue-ui-pattern-seed.d.ts +14 -0
- package/dist/types/vue-ui-pattern.d.ts +15 -0
- package/dist/types/vue-ui-quadrant.d.ts +125 -0
- package/dist/types/vue-ui-quick-chart.d.ts +108 -0
- package/dist/types/vue-ui-radar.d.ts +116 -0
- package/dist/types/vue-ui-rating.d.ts +42 -0
- package/dist/types/vue-ui-relation-circle.d.ts +92 -0
- package/dist/types/vue-ui-ridgeline.d.ts +106 -0
- package/dist/types/vue-ui-rings.d.ts +98 -0
- package/dist/types/vue-ui-scatter.d.ts +97 -0
- package/dist/types/vue-ui-skeleton.d.ts +11 -0
- package/dist/types/vue-ui-smiley.d.ts +28 -0
- package/dist/types/vue-ui-spark-trend.d.ts +19 -0
- package/dist/types/vue-ui-sparkbar.d.ts +49 -0
- package/dist/types/vue-ui-sparkgauge.d.ts +28 -0
- package/dist/types/vue-ui-sparkhistogram.d.ts +46 -0
- package/dist/types/vue-ui-sparkline.d.ts +59 -0
- package/dist/types/vue-ui-sparkstackbar.d.ts +60 -0
- package/dist/types/vue-ui-stackbar.d.ts +118 -0
- package/dist/types/vue-ui-stackline.d.ts +114 -0
- package/dist/types/vue-ui-strip-plot.d.ts +96 -0
- package/dist/types/vue-ui-table-heatmap.d.ts +62 -0
- package/dist/types/vue-ui-table-sparkline.d.ts +53 -0
- package/dist/types/vue-ui-table.d.ts +38 -0
- package/dist/types/vue-ui-thermometer.d.ts +70 -0
- package/dist/types/vue-ui-timer.d.ts +49 -0
- package/dist/types/vue-ui-tiremarks.d.ts +70 -0
- package/dist/types/vue-ui-treemap.d.ts +104 -0
- package/dist/types/vue-ui-vertical-bar.d.ts +22 -0
- package/dist/types/vue-ui-waffle.d.ts +101 -0
- package/dist/types/vue-ui-wheel.d.ts +70 -0
- package/dist/types/vue-ui-word-cloud.d.ts +97 -0
- package/dist/types/vue-ui-world.d.ts +98 -0
- package/dist/types/vue-ui-xy-canvas.d.ts +101 -0
- package/dist/types/vue-ui-xy.d.ts +146 -0
- package/dist/useAutoSizeLabelsInsideViewbox-BIVntRZp.js +50 -0
- package/dist/useChartAccessibility-DYqac8yF.js +12 -0
- package/dist/useConfig-DAyQk86L.js +7479 -0
- package/dist/useFitSvgText-CT3nmlaS.js +63 -0
- package/dist/useNestedProp-CNcoy38D.js +10 -0
- package/dist/useObjectBindings-BI7hP-BC.js +189 -0
- package/dist/usePanZoom-CYU3B4T3.js +157 -0
- package/dist/usePrefersMotion-BC-CsqR1.js +15 -0
- package/dist/usePrinter-C1Gqt_Sp.js +49 -0
- package/dist/useResponsive-BfnK0KxU.js +19 -0
- package/dist/useStableElementSize-C7KADDKj.js +77 -0
- package/dist/useSvgExport-SVIsDot8.js +755 -0
- package/dist/useTableResponsive-B24Uwt2E.js +24 -0
- package/dist/useThemeCheck-C43Tcqmk.js +24 -0
- package/dist/useTimeLabelCollider-AEcY4Ioe.js +57 -0
- package/dist/useTimeLabels-BmBRv27Y.js +272 -0
- package/dist/useUserOptionState-DK-_1ddE.js +15 -0
- package/dist/utils.js +28 -0
- package/dist/vClickOutside-DUrZWttG.js +13 -0
- package/dist/vue-data-ui-DuLO91Bk.js +274 -0
- package/dist/vue-data-ui.js +76 -0
- package/dist/vue-ui-3d-bar-DMDfraIo.js +1757 -0
- package/dist/vue-ui-accordion-Dw4MHKVB.js +81 -0
- package/dist/vue-ui-age-pyramid-CN68d9su.js +1238 -0
- package/dist/vue-ui-annotator-DLPUAKlm.js +2899 -0
- package/dist/vue-ui-bullet-V21vyb4T.js +710 -0
- package/dist/vue-ui-bump-BvnBJcx0.js +1249 -0
- package/dist/vue-ui-candlestick-DaIeT5kU.js +1826 -0
- package/dist/vue-ui-carousel-table-BBTm1Etq.js +455 -0
- package/dist/vue-ui-chestnut-BLtE39N7.js +2010 -0
- package/dist/vue-ui-chord-D1UVle9f.js +1391 -0
- package/dist/vue-ui-circle-pack-BDDVjuT1.js +1608 -0
- package/dist/vue-ui-cursor-CiU4ttGN.js +283 -0
- package/dist/vue-ui-dag-D2U673ns.js +2909 -0
- package/dist/vue-ui-dashboard-JK7v_bwo.js +513 -0
- package/dist/vue-ui-digits-D5b3eJ5q.js +209 -0
- package/dist/vue-ui-donut-BYf4FbjI.js +2410 -0
- package/dist/vue-ui-donut-evolution-Id7YwbiG.js +1510 -0
- package/dist/vue-ui-dumbbell-CToh2l5g.js +1530 -0
- package/dist/vue-ui-flow-CmBI0IKa.js +1235 -0
- package/dist/vue-ui-funnel-B67L6mTB.js +777 -0
- package/dist/vue-ui-galaxy-CFZP36s4.js +1077 -0
- package/dist/vue-ui-gauge-sZxKMn7t.js +920 -0
- package/dist/vue-ui-geo-DK8fAoZd.js +1516 -0
- package/dist/vue-ui-gizmo-DsJtcBEf.js +225 -0
- package/dist/vue-ui-heatmap-B87-9zpu.js +1568 -0
- package/dist/vue-ui-history-plot-Dhv-zMSR.js +1554 -0
- package/dist/vue-ui-horizontal-bar-BAT7IYhL.js +1681 -0
- package/dist/vue-ui-kpi-BggezxVU.js +96 -0
- package/dist/vue-ui-mini-loader-CyqBt2g4.js +125 -0
- package/dist/vue-ui-molecule-uXC5g9qp.js +925 -0
- package/dist/vue-ui-mood-radar-BYoxNRMc.js +1148 -0
- package/dist/vue-ui-nested-donuts-BVniVpDM.js +1487 -0
- package/dist/vue-ui-onion-CWzeZ5Ak.js +1200 -0
- package/dist/vue-ui-parallel-coordinate-plot-Dbx6W4ZW.js +1416 -0
- package/dist/vue-ui-pattern-DKozfnVn.js +154 -0
- package/dist/vue-ui-pattern-seed-BB1honLm.js +61 -0
- package/dist/vue-ui-quadrant-BrPLv-sz.js +1978 -0
- package/dist/vue-ui-quick-chart-B0S_4DeW.js +2469 -0
- package/dist/vue-ui-radar-CUo6FWXZ.js +1229 -0
- package/dist/vue-ui-rating-BG4lf1z8.js +343 -0
- package/dist/vue-ui-relation-circle-2a6IZgKe.js +924 -0
- package/dist/vue-ui-ridgeline-DnQBrx71.js +1622 -0
- package/dist/vue-ui-rings-BibWJNh2.js +1246 -0
- package/dist/vue-ui-scatter-8srfWwTp.js +2413 -0
- package/dist/vue-ui-skeleton-BoKB7qJM.js +2556 -0
- package/dist/vue-ui-smiley-G89TxRU-.js +356 -0
- package/dist/vue-ui-spark-trend-Cq4pIgWr.js +438 -0
- package/dist/vue-ui-sparkbar-CgFKnZEF.js +393 -0
- package/dist/vue-ui-sparkgauge-ea-PGnBC.js +255 -0
- package/dist/vue-ui-sparkhistogram-BfgnG41U.js +560 -0
- package/dist/vue-ui-sparkline-CDOa3xh8.js +1507 -0
- package/dist/vue-ui-sparkstackbar-DEsSr92Z.js +662 -0
- package/dist/vue-ui-stackbar-BeegxXk_.js +2270 -0
- package/dist/vue-ui-stackline-_G-cbZRe.js +2398 -0
- package/dist/vue-ui-strip-plot-VasAk496.js +1340 -0
- package/dist/vue-ui-table-DysBVxy5.js +1338 -0
- package/dist/vue-ui-table-heatmap-CCGjbSzQ.js +344 -0
- package/dist/vue-ui-table-sparkline-DQduGRPm.js +707 -0
- package/dist/vue-ui-thermometer-1l6KUpS8.js +763 -0
- package/dist/vue-ui-timer-Db2d4LNp.js +439 -0
- package/dist/vue-ui-tiremarks-YtFZjYFp.js +552 -0
- package/dist/vue-ui-treemap-DxwEGZ9p.js +1587 -0
- package/dist/vue-ui-waffle-C9bzj7pV.js +1362 -0
- package/dist/vue-ui-wheel-DKzocpS-.js +885 -0
- package/dist/vue-ui-word-cloud-DkNU1GFp.js +1656 -0
- package/dist/vue-ui-world-DhnfDaFE.js +14264 -0
- package/dist/vue-ui-xy-BzhW8pHi.js +4578 -0
- package/dist/vue-ui-xy-canvas-BUPnRZ3C.js +1787 -0
- package/dist/vue_ui_3d_bar-C4R7o-yX.js +185 -0
- package/dist/vue_ui_age_pyramid-BY6c-oX_.js +301 -0
- package/dist/vue_ui_bullet-ClzdLoOv.js +186 -0
- package/dist/vue_ui_bump-Vl-zYAtG.js +201 -0
- package/dist/vue_ui_candlestick-J8jmJvxP.js +374 -0
- package/dist/vue_ui_chestnut-D2oUhad6.js +305 -0
- package/dist/vue_ui_chord-DPfS1Umc.js +275 -0
- package/dist/vue_ui_circle_pack-DZC_rdfn.js +172 -0
- package/dist/vue_ui_dag-TsJ_azQq.js +258 -0
- package/dist/vue_ui_donut-BDGqG07h.js +358 -0
- package/dist/vue_ui_donut_evolution-D1yAAIHr.js +717 -0
- package/dist/vue_ui_dumbbell-Bfe_jFyi.js +304 -0
- package/dist/vue_ui_flow-BewZjjKG.js +238 -0
- package/dist/vue_ui_funnel-_Og4EEkO.js +234 -0
- package/dist/vue_ui_galaxy-Ig0cc1_h.js +265 -0
- package/dist/vue_ui_gauge-Cf1RZc9q.js +178 -0
- package/dist/vue_ui_geo-B8TODs-G.js +248 -0
- package/dist/vue_ui_heatmap-B2BBBSWG.js +319 -0
- package/dist/vue_ui_history_plot-CuN63VEc.js +413 -0
- package/dist/vue_ui_horizontal_bar-C4J4QzXf.js +341 -0
- package/dist/vue_ui_molecule-CO9L59SF.js +231 -0
- package/dist/vue_ui_mood_radar-BA6LAKhk.js +281 -0
- package/dist/vue_ui_nested_donuts-B8csIoVO.js +273 -0
- package/dist/vue_ui_onion-1FTFFS46.js +293 -0
- package/dist/vue_ui_parallel_coordinate_plot-CBiOBira.js +278 -0
- package/dist/vue_ui_quadrant-CDSTKTJz.js +428 -0
- package/dist/vue_ui_quick_chart-mZBdml3Z.js +139 -0
- package/dist/vue_ui_radar-jafTED5j.js +306 -0
- package/dist/vue_ui_relation_circle-D0p4mXmv.js +98 -0
- package/dist/vue_ui_ridgeline-VM8_mx4J.js +767 -0
- package/dist/vue_ui_rings-BVgD2aMn.js +320 -0
- package/dist/vue_ui_scatter-I0POnicu.js +479 -0
- package/dist/vue_ui_spark_trend-DxVmpkmC.js +82 -0
- package/dist/vue_ui_sparkbar-z6qO--Kf.js +64 -0
- package/dist/vue_ui_sparkgauge-BX1MS3bA.js +90 -0
- package/dist/vue_ui_sparkhistogram-BRgvKUH6.js +123 -0
- package/dist/vue_ui_sparkline-auZhap6Y.js +151 -0
- package/dist/vue_ui_sparkstackbar-BOjuQnZd.js +175 -0
- package/dist/vue_ui_stackbar-COOrQQdK.js +412 -0
- package/dist/vue_ui_stackline-DQqKPA9z.js +460 -0
- package/dist/vue_ui_strip_plot-CtJe8_gq.js +301 -0
- package/dist/vue_ui_table_heatmap-w8vx5k6f.js +80 -0
- package/dist/vue_ui_table_sparkline-DAbkUrNz.js +124 -0
- package/dist/vue_ui_thermometer-DxgqWKlE.js +123 -0
- package/dist/vue_ui_tiremarks-CdEPieWV.js +122 -0
- package/dist/vue_ui_treemap-DoEtkRN6.js +328 -0
- package/dist/vue_ui_vertical_bar-CP-MKz1j.js +247 -0
- package/dist/vue_ui_waffle-DIARFc7g.js +292 -0
- package/dist/vue_ui_wheel-DZ_nR--t.js +133 -0
- package/dist/vue_ui_word_cloud-C-qIMNLu.js +254 -0
- package/dist/vue_ui_xy-BLUkWEAm.js +482 -0
- package/dist/vue_ui_xy_canvas-Cb6dg3eK.js +408 -0
- package/package.json +120 -120
|
@@ -0,0 +1,1144 @@
|
|
|
1
|
+
import { H as e, I as t, L as n, Vt as r, j as i, k as a, r as o, t as s } from "./lib-DUeYQsS0.js";
|
|
2
|
+
import { t as c } from "./_plugin-vue_export-helper-B3ysoDQm.js";
|
|
3
|
+
import { c as l, r as ee } from "./canvas-lib-BOP_HS11.js";
|
|
4
|
+
import { t as u } from "./useResponsive-BfnK0KxU.js";
|
|
5
|
+
import { t as te } from "./BaseIcon-DfLoHNUj.js";
|
|
6
|
+
import { Fragment as d, computed as f, createCommentVNode as p, createElementBlock as m, createElementVNode as h, createVNode as ne, mergeProps as re, nextTick as ie, normalizeClass as g, normalizeProps as ae, normalizeStyle as _, onBeforeUnmount as oe, onMounted as se, onUpdated as ce, openBlock as v, ref as y, renderList as b, renderSlot as le, toDisplayString as ue, unref as de, useCssVars as fe, vModelText as pe, watch as x, withDirectives as me } from "vue";
|
|
7
|
+
//#region src/atoms/Slicer.vue
|
|
8
|
+
var he = ["data-minimap"], ge = {
|
|
9
|
+
class: "vue-data-ui-slicer-labels",
|
|
10
|
+
style: {
|
|
11
|
+
position: "relative",
|
|
12
|
+
"z-index": "1",
|
|
13
|
+
"pointer-events": "none"
|
|
14
|
+
}
|
|
15
|
+
}, _e = {
|
|
16
|
+
key: 0,
|
|
17
|
+
style: {
|
|
18
|
+
width: "100%",
|
|
19
|
+
position: "relative",
|
|
20
|
+
"pointer-events": "all"
|
|
21
|
+
}
|
|
22
|
+
}, ve = {
|
|
23
|
+
key: 0,
|
|
24
|
+
class: "minimap",
|
|
25
|
+
style: { width: "100%" }
|
|
26
|
+
}, ye = ["xmlns", "viewBox"], be = ["id"], xe = ["stop-color"], Se = [
|
|
27
|
+
"width",
|
|
28
|
+
"height",
|
|
29
|
+
"stroke"
|
|
30
|
+
], Ce = ["d", "stroke"], we = [
|
|
31
|
+
"x",
|
|
32
|
+
"width",
|
|
33
|
+
"y",
|
|
34
|
+
"height",
|
|
35
|
+
"fill"
|
|
36
|
+
], Te = ["d", "stroke"], Ee = [
|
|
37
|
+
"cx",
|
|
38
|
+
"cy",
|
|
39
|
+
"fill",
|
|
40
|
+
"stroke"
|
|
41
|
+
], De = [
|
|
42
|
+
"x",
|
|
43
|
+
"width",
|
|
44
|
+
"height",
|
|
45
|
+
"fill",
|
|
46
|
+
"rx"
|
|
47
|
+
], Oe = [
|
|
48
|
+
"x",
|
|
49
|
+
"width",
|
|
50
|
+
"height",
|
|
51
|
+
"rx",
|
|
52
|
+
"fill"
|
|
53
|
+
], ke = [
|
|
54
|
+
"x",
|
|
55
|
+
"width",
|
|
56
|
+
"height",
|
|
57
|
+
"fill",
|
|
58
|
+
"rx"
|
|
59
|
+
], Ae = [
|
|
60
|
+
"x2",
|
|
61
|
+
"y1",
|
|
62
|
+
"y2",
|
|
63
|
+
"stroke"
|
|
64
|
+
], je = ["d", "fill"], Me = ["d", "stroke"], Ne = { key: 6 }, Pe = [
|
|
65
|
+
"x",
|
|
66
|
+
"width",
|
|
67
|
+
"y",
|
|
68
|
+
"height",
|
|
69
|
+
"fill"
|
|
70
|
+
], Fe = ["d", "stroke"], Ie = [
|
|
71
|
+
"x",
|
|
72
|
+
"width",
|
|
73
|
+
"height",
|
|
74
|
+
"fill",
|
|
75
|
+
"stroke",
|
|
76
|
+
"stroke-width"
|
|
77
|
+
], Le = [
|
|
78
|
+
"x",
|
|
79
|
+
"width",
|
|
80
|
+
"height"
|
|
81
|
+
], Re = ["fill", "stroke"], ze = ["stroke"], Be = ["fill"], Ve = [
|
|
82
|
+
"x",
|
|
83
|
+
"width",
|
|
84
|
+
"height",
|
|
85
|
+
"fill",
|
|
86
|
+
"stroke",
|
|
87
|
+
"stroke-width"
|
|
88
|
+
], He = [
|
|
89
|
+
"x",
|
|
90
|
+
"width",
|
|
91
|
+
"height"
|
|
92
|
+
], Ue = ["fill", "stroke"], We = ["stroke"], Ge = ["fill"], Ke = [
|
|
93
|
+
"cx",
|
|
94
|
+
"cy",
|
|
95
|
+
"stroke",
|
|
96
|
+
"fill"
|
|
97
|
+
], qe = [
|
|
98
|
+
"cx",
|
|
99
|
+
"cy",
|
|
100
|
+
"fill"
|
|
101
|
+
], Je = [
|
|
102
|
+
"cx",
|
|
103
|
+
"cy",
|
|
104
|
+
"stroke",
|
|
105
|
+
"fill"
|
|
106
|
+
], Ye = [
|
|
107
|
+
"cx",
|
|
108
|
+
"cy",
|
|
109
|
+
"fill"
|
|
110
|
+
], Xe = { key: 12 }, Ze = [
|
|
111
|
+
"cx",
|
|
112
|
+
"cy",
|
|
113
|
+
"fill",
|
|
114
|
+
"stroke"
|
|
115
|
+
], Qe = [
|
|
116
|
+
"cx",
|
|
117
|
+
"cy",
|
|
118
|
+
"stroke",
|
|
119
|
+
"fill"
|
|
120
|
+
], $e = [
|
|
121
|
+
"cx",
|
|
122
|
+
"cy",
|
|
123
|
+
"fill"
|
|
124
|
+
], et = [
|
|
125
|
+
"cx",
|
|
126
|
+
"cy",
|
|
127
|
+
"stroke",
|
|
128
|
+
"fill"
|
|
129
|
+
], tt = [
|
|
130
|
+
"cx",
|
|
131
|
+
"cy",
|
|
132
|
+
"fill"
|
|
133
|
+
], nt = [
|
|
134
|
+
"height",
|
|
135
|
+
"x",
|
|
136
|
+
"width",
|
|
137
|
+
"onMouseenter"
|
|
138
|
+
], rt = ["min", "max"], it = ["min", "max"], at = 48, ot = /* @__PURE__ */ c({
|
|
139
|
+
__name: "Slicer",
|
|
140
|
+
props: {
|
|
141
|
+
background: {
|
|
142
|
+
type: String,
|
|
143
|
+
default: "#FFFFFF"
|
|
144
|
+
},
|
|
145
|
+
borderColor: {
|
|
146
|
+
type: String,
|
|
147
|
+
default: "#FFFFFF"
|
|
148
|
+
},
|
|
149
|
+
fontSize: {
|
|
150
|
+
type: Number,
|
|
151
|
+
default: 14
|
|
152
|
+
},
|
|
153
|
+
labelLeft: {
|
|
154
|
+
type: [String, Number],
|
|
155
|
+
default: ""
|
|
156
|
+
},
|
|
157
|
+
labelRight: {
|
|
158
|
+
type: [String, Number],
|
|
159
|
+
default: ""
|
|
160
|
+
},
|
|
161
|
+
textColor: {
|
|
162
|
+
type: String,
|
|
163
|
+
default: "#1A1A1A"
|
|
164
|
+
},
|
|
165
|
+
inputColor: {
|
|
166
|
+
type: String,
|
|
167
|
+
default: "#1A1A1A"
|
|
168
|
+
},
|
|
169
|
+
max: {
|
|
170
|
+
type: Number,
|
|
171
|
+
default: 0
|
|
172
|
+
},
|
|
173
|
+
min: {
|
|
174
|
+
type: Number,
|
|
175
|
+
default: 0
|
|
176
|
+
},
|
|
177
|
+
selectColor: {
|
|
178
|
+
type: String,
|
|
179
|
+
default: "#4A4A4A"
|
|
180
|
+
},
|
|
181
|
+
useResetSlot: {
|
|
182
|
+
type: Boolean,
|
|
183
|
+
default: !1
|
|
184
|
+
},
|
|
185
|
+
valueStart: {
|
|
186
|
+
type: [Number, String],
|
|
187
|
+
default: 0
|
|
188
|
+
},
|
|
189
|
+
valueEnd: {
|
|
190
|
+
type: [Number, String],
|
|
191
|
+
default: 0
|
|
192
|
+
},
|
|
193
|
+
minimap: {
|
|
194
|
+
type: Array,
|
|
195
|
+
default: []
|
|
196
|
+
},
|
|
197
|
+
smoothMinimap: {
|
|
198
|
+
type: Boolean,
|
|
199
|
+
default: !1
|
|
200
|
+
},
|
|
201
|
+
minimapSelectedColor: {
|
|
202
|
+
type: String,
|
|
203
|
+
default: "#1f77b4"
|
|
204
|
+
},
|
|
205
|
+
minimapSelectionRadius: {
|
|
206
|
+
type: Number,
|
|
207
|
+
default: 12
|
|
208
|
+
},
|
|
209
|
+
minimapLineColor: {
|
|
210
|
+
type: String,
|
|
211
|
+
default: "#2D353C"
|
|
212
|
+
},
|
|
213
|
+
minimapSelectedColorOpacity: {
|
|
214
|
+
type: Number,
|
|
215
|
+
default: .2
|
|
216
|
+
},
|
|
217
|
+
minimapSelectedIndex: {
|
|
218
|
+
type: Number,
|
|
219
|
+
default: null
|
|
220
|
+
},
|
|
221
|
+
minimapIndicatorColor: {
|
|
222
|
+
type: String,
|
|
223
|
+
default: "#2D353C"
|
|
224
|
+
},
|
|
225
|
+
refreshStartPoint: {
|
|
226
|
+
type: Number,
|
|
227
|
+
default: 0
|
|
228
|
+
},
|
|
229
|
+
refreshEndPoint: {
|
|
230
|
+
type: Number,
|
|
231
|
+
default: null
|
|
232
|
+
},
|
|
233
|
+
enableRangeHandles: {
|
|
234
|
+
type: Boolean,
|
|
235
|
+
default: !1
|
|
236
|
+
},
|
|
237
|
+
enableSelectionDrag: {
|
|
238
|
+
type: Boolean,
|
|
239
|
+
default: !0
|
|
240
|
+
},
|
|
241
|
+
verticalHandles: {
|
|
242
|
+
type: Boolean,
|
|
243
|
+
default: !1
|
|
244
|
+
},
|
|
245
|
+
minimapCompact: {
|
|
246
|
+
type: Boolean,
|
|
247
|
+
default: !1
|
|
248
|
+
},
|
|
249
|
+
allMinimaps: {
|
|
250
|
+
type: Array,
|
|
251
|
+
default() {
|
|
252
|
+
return [];
|
|
253
|
+
}
|
|
254
|
+
},
|
|
255
|
+
minimapMerged: {
|
|
256
|
+
type: Boolean,
|
|
257
|
+
default: !1
|
|
258
|
+
},
|
|
259
|
+
minimapFrameColor: {
|
|
260
|
+
type: String,
|
|
261
|
+
default: "#e1e5e8"
|
|
262
|
+
},
|
|
263
|
+
cutNullValues: {
|
|
264
|
+
type: Boolean,
|
|
265
|
+
default: !1
|
|
266
|
+
},
|
|
267
|
+
focusOnDrag: {
|
|
268
|
+
type: Boolean,
|
|
269
|
+
default: !1
|
|
270
|
+
},
|
|
271
|
+
focusRangeRatio: {
|
|
272
|
+
type: Number,
|
|
273
|
+
default: .1
|
|
274
|
+
},
|
|
275
|
+
maxWidth: {
|
|
276
|
+
type: Number,
|
|
277
|
+
default: null
|
|
278
|
+
},
|
|
279
|
+
isCursorPointer: {
|
|
280
|
+
type: Boolean,
|
|
281
|
+
default: !1
|
|
282
|
+
},
|
|
283
|
+
additionalMinimapHeight: {
|
|
284
|
+
type: Number,
|
|
285
|
+
default: 0
|
|
286
|
+
},
|
|
287
|
+
handleType: {
|
|
288
|
+
type: String,
|
|
289
|
+
default: ""
|
|
290
|
+
},
|
|
291
|
+
handleWidth: {
|
|
292
|
+
type: Number,
|
|
293
|
+
default: 20
|
|
294
|
+
},
|
|
295
|
+
handleBorderWidth: {
|
|
296
|
+
type: Number,
|
|
297
|
+
default: 1
|
|
298
|
+
},
|
|
299
|
+
handleIconColor: {
|
|
300
|
+
type: String,
|
|
301
|
+
default: null
|
|
302
|
+
},
|
|
303
|
+
handleBorderColor: {
|
|
304
|
+
type: String,
|
|
305
|
+
default: null
|
|
306
|
+
},
|
|
307
|
+
handleFill: {
|
|
308
|
+
type: String,
|
|
309
|
+
default: null
|
|
310
|
+
}
|
|
311
|
+
},
|
|
312
|
+
emits: [
|
|
313
|
+
"update:start",
|
|
314
|
+
"update:end",
|
|
315
|
+
"reset",
|
|
316
|
+
"trapMouse"
|
|
317
|
+
],
|
|
318
|
+
setup(c, { expose: ot, emit: st }) {
|
|
319
|
+
fe((e) => ({
|
|
320
|
+
b23d0982: Ct.value,
|
|
321
|
+
v3ed703b3: j.value,
|
|
322
|
+
v4316bee4: Tt.value,
|
|
323
|
+
v1f0c44e3: c.selectColor,
|
|
324
|
+
v7afd85f1: wt.value
|
|
325
|
+
}));
|
|
326
|
+
let S = c, C = y(null), w = y(S.min), T = y(S.max), E = f(() => !!S.allMinimaps.length), ct = y(e()), D = f(() => E.value && S.minimapCompact), lt = y(0);
|
|
327
|
+
se(() => {
|
|
328
|
+
let e = () => {
|
|
329
|
+
C.value && (lt.value = C.value.getBoundingClientRect().width);
|
|
330
|
+
};
|
|
331
|
+
e();
|
|
332
|
+
let t = l(e, 50);
|
|
333
|
+
window.addEventListener("resize", t), oe(() => {
|
|
334
|
+
window.removeEventListener("resize", t);
|
|
335
|
+
});
|
|
336
|
+
});
|
|
337
|
+
let ut = f(() => S.refreshEndPoint === null ? S.max : S.refreshEndPoint), O = st, k = f(() => {
|
|
338
|
+
if (D.value) {
|
|
339
|
+
let e = Math.max(1, Sn.value - 1);
|
|
340
|
+
return xt.value / e * 100;
|
|
341
|
+
}
|
|
342
|
+
let e = Math.max(1, S.max - S.min);
|
|
343
|
+
return (w.value - S.min) / e * 100;
|
|
344
|
+
}), dt = f(() => {
|
|
345
|
+
if (D.value) {
|
|
346
|
+
let e = Math.max(1, Sn.value - 1);
|
|
347
|
+
return St.value / e * 100;
|
|
348
|
+
}
|
|
349
|
+
let e = Math.max(1, S.max - S.min);
|
|
350
|
+
return (T.value - S.min) / e * 100;
|
|
351
|
+
}), ft = f(() => (k.value + dt.value) / 2), pt = f(() => {
|
|
352
|
+
if (!C.value) return !1;
|
|
353
|
+
let e = C.value.getBoundingClientRect().width;
|
|
354
|
+
return k.value / 100 * e - hn.value / 2 < 0;
|
|
355
|
+
}), mt = f(() => {
|
|
356
|
+
if (!C.value) return !1;
|
|
357
|
+
let e = C.value.getBoundingClientRect().width;
|
|
358
|
+
return dt.value / 100 * e + gn.value / 2 > e;
|
|
359
|
+
}), A = f(() => {
|
|
360
|
+
let e = mt.value ? `calc(${ft.value}% - ${xn.value.width}px)` : pt.value ? `calc(${ft.value}% - 8px)` : `calc(${ft.value}% - ${xn.value.width / 2}px)`;
|
|
361
|
+
return {
|
|
362
|
+
left: `${k.value}%`,
|
|
363
|
+
width: `${Math.max(0, dt.value - k.value)}%`,
|
|
364
|
+
background: S.selectColor,
|
|
365
|
+
tooltipLeft: `calc(${k.value}% - ${pt.value ? 9 : hn.value / 2}px)`,
|
|
366
|
+
tooltipRight: `calc(${dt.value}% - ${mt.value ? gn.value - 9 : gn.value / 2}px)`,
|
|
367
|
+
tooltipCenter: e,
|
|
368
|
+
arrowLeft: !pt.value,
|
|
369
|
+
arrowRight: !mt.value
|
|
370
|
+
};
|
|
371
|
+
}), ht = f(() => Math.max(0, (P.value || 1) - 1)), gt = f(() => Math.max(0, (Sn.value || 1) - 1));
|
|
372
|
+
function _t(e) {
|
|
373
|
+
return gt.value === 0 ? 0 : Math.round(e / gt.value * ht.value);
|
|
374
|
+
}
|
|
375
|
+
function vt(e) {
|
|
376
|
+
return ht.value === 0 ? 0 : Math.round(e / ht.value * gt.value);
|
|
377
|
+
}
|
|
378
|
+
let yt = (e) => Math.floor(S.min + e), bt = (e) => Math.ceil(S.min + e), xt = f({
|
|
379
|
+
get() {
|
|
380
|
+
return D.value ? _t(Q.value) : Number(w.value);
|
|
381
|
+
},
|
|
382
|
+
set(e) {
|
|
383
|
+
if (D.value) {
|
|
384
|
+
let t = Math.round(+e || 0), n = Math.max(0, _t(Math.max(0, $.value - 1)));
|
|
385
|
+
V(yt(vt(Math.min(Math.max(0, t), n))));
|
|
386
|
+
} else {
|
|
387
|
+
let t = Math.round(+e || 0), n = Number(T.value) - 1;
|
|
388
|
+
V(Math.min(Math.max(S.min, t), n));
|
|
389
|
+
}
|
|
390
|
+
}
|
|
391
|
+
}), St = f({
|
|
392
|
+
get() {
|
|
393
|
+
return D.value ? _t(Math.max(Q.value, $.value - 1)) : Number(T.value);
|
|
394
|
+
},
|
|
395
|
+
set(e) {
|
|
396
|
+
if (D.value) {
|
|
397
|
+
let t = Math.round(+e || 0), n = _t(Q.value);
|
|
398
|
+
H(bt(vt(Math.max(t, n)) + 1));
|
|
399
|
+
} else {
|
|
400
|
+
let t = Math.round(+e || 0), n = Number(w.value) + 1;
|
|
401
|
+
H(Math.max(n, Math.min(t, S.max)));
|
|
402
|
+
}
|
|
403
|
+
}
|
|
404
|
+
}), Ct = f(() => S.inputColor), wt = f(() => S.background), Tt = f(() => `${S.selectColor}33`), j = f(() => S.borderColor), Et = f(() => {
|
|
405
|
+
let e = [];
|
|
406
|
+
for (let t = 0; t < S.max; t += 1) e.push(t);
|
|
407
|
+
return e;
|
|
408
|
+
});
|
|
409
|
+
function Dt() {
|
|
410
|
+
O("reset");
|
|
411
|
+
}
|
|
412
|
+
x(() => S.min, (e) => {
|
|
413
|
+
Number(w.value) < Number(e) && (w.value = Number(e)), Number(T.value) < Number(e) && (T.value = Number(e));
|
|
414
|
+
}), x(() => S.max, (e) => {
|
|
415
|
+
Number(w.value) > Number(e) && (w.value = Number(e)), Number(T.value) > Number(e) && (T.value = Number(e));
|
|
416
|
+
});
|
|
417
|
+
let Ot = y(null), M = y({
|
|
418
|
+
width: 1,
|
|
419
|
+
height: 1
|
|
420
|
+
}), N = y(null);
|
|
421
|
+
se(() => {
|
|
422
|
+
if (E.value) {
|
|
423
|
+
let e = l(() => {
|
|
424
|
+
let { width: e, height: t } = u({ chart: Ot.value });
|
|
425
|
+
M.value.width = e, M.value.height = t - 47;
|
|
426
|
+
});
|
|
427
|
+
N.value = new ResizeObserver(e), N.value.observe(Ot.value);
|
|
428
|
+
}
|
|
429
|
+
}), oe(() => {
|
|
430
|
+
N.value && N.value.disconnect();
|
|
431
|
+
});
|
|
432
|
+
let P = f(() => Math.max(...S.allMinimaps.map((e) => e.series.length), S.minimap.length || 0)), F = f(() => {
|
|
433
|
+
if (!P.value) return 0;
|
|
434
|
+
let e = Math.max(1, P.value - +!!S.minimapCompact);
|
|
435
|
+
return M.value.width / e;
|
|
436
|
+
}), kt = f(() => {
|
|
437
|
+
let e = [];
|
|
438
|
+
if (Array.isArray(S.minimap) && S.minimap.length && S.minimapMerged && e.push(...S.minimap.filter(Number.isFinite)), Array.isArray(S.allMinimaps) && S.allMinimaps.length) for (let t of S.allMinimaps) t?.isVisible && Array.isArray(t?.series) && e.push(...t.series.filter(Number.isFinite));
|
|
439
|
+
return e.length ? {
|
|
440
|
+
min: Math.min(...e),
|
|
441
|
+
max: Math.max(...e)
|
|
442
|
+
} : {
|
|
443
|
+
min: 0,
|
|
444
|
+
max: 1
|
|
445
|
+
};
|
|
446
|
+
}), I = f(() => kt.value.min), L = f(() => kt.value.max), At = f(() => I.value < 0 && L.value > 0 || L.value <= 0 ? I.value : 0), jt = f(() => Math.max(1e-9, Math.max(Math.abs(I.value), Math.abs(L.value)))), Mt = f(() => I.value < 0 && L.value > 0), Nt = (e) => {
|
|
447
|
+
let t = Math.max(1, M.value.height);
|
|
448
|
+
if (Mt.value) {
|
|
449
|
+
let n = jt.value;
|
|
450
|
+
return (1 - (Math.max(-1, Math.min(1, e / n)) + 1) / 2) * t;
|
|
451
|
+
} else {
|
|
452
|
+
let n = Math.min(0, I.value), r = Math.max(0, L.value);
|
|
453
|
+
return t - (e - n) / Math.max(1e-9, r - n) * t;
|
|
454
|
+
}
|
|
455
|
+
}, Pt = f(() => Nt(0)), Ft = f(() => S.allMinimaps.length ? S.allMinimaps.filter((e) => e.type === "bar").length : 0), It = f(() => F.value / (Ft.value || 1) * .8);
|
|
456
|
+
function Lt(e, t, n) {
|
|
457
|
+
let r = It.value, i = Math.max(1, Ft.value), a = P.value - 1;
|
|
458
|
+
return n === 0 ? e + r / 2 * t : n === a ? e - r / 2 * (i - t) : e - i * r / 2 + t * r;
|
|
459
|
+
}
|
|
460
|
+
function Rt(e, t) {
|
|
461
|
+
return [0, P.value - 1].includes(t) ? It.value / 2 : It.value;
|
|
462
|
+
}
|
|
463
|
+
function zt(e, t, n) {
|
|
464
|
+
let r = (e, t, n) => Math.max(t, Math.min(n, e)), i = 1e-9;
|
|
465
|
+
if (t <= 0) {
|
|
466
|
+
let t = Math.max(i, 0 - e);
|
|
467
|
+
return (r) => n - (r - e) / t * n;
|
|
468
|
+
}
|
|
469
|
+
if (e >= 0) {
|
|
470
|
+
let e = Math.max(i, t - 0);
|
|
471
|
+
return (t) => n - (t - 0) / e * n;
|
|
472
|
+
}
|
|
473
|
+
let a = Math.max(i, Math.max(Math.abs(e), Math.abs(t)));
|
|
474
|
+
return (e) => (1 - (r(e / a, -1, 1) + 1) / 2) * n;
|
|
475
|
+
}
|
|
476
|
+
function Bt(e, r = !1) {
|
|
477
|
+
if (!e || !e.length) return {
|
|
478
|
+
fullSet: "",
|
|
479
|
+
points: [],
|
|
480
|
+
selectionSet: "",
|
|
481
|
+
sliced: [],
|
|
482
|
+
firstPlot: null,
|
|
483
|
+
lastPlot: null,
|
|
484
|
+
hasFull: !1,
|
|
485
|
+
hasSelection: !1,
|
|
486
|
+
fullMarkers: [],
|
|
487
|
+
selectionMarkers: []
|
|
488
|
+
};
|
|
489
|
+
let o = Math.max(1, M.value.height), s = zt(I.value, L.value, o), c = e.length, l = Math.min(Math.max(0, Q.value), Math.max(0, c - 1)), ee = Math.min(c, Math.max(l + 1, $.value)), u = e.map((e, t) => {
|
|
490
|
+
let n = e, r = Number.isFinite(n), i = F.value * t + (S.minimapCompact ? 0 : F.value / 2), a = s(0);
|
|
491
|
+
return {
|
|
492
|
+
x: i,
|
|
493
|
+
y: r ? s(n) : NaN,
|
|
494
|
+
v: n,
|
|
495
|
+
value: n == null ? null : r ? n : null,
|
|
496
|
+
y0: a,
|
|
497
|
+
i: t
|
|
498
|
+
};
|
|
499
|
+
}), te = (e) => e >= 0 && e < u.length && Number.isFinite(u[e]?.value), d = u.filter((e) => Number.isFinite(e.value) && !te(e.i - 1) && !te(e.i + 1)), f = d.filter((e) => e.i >= l && e.i < ee), p = u.slice(l, ee);
|
|
500
|
+
return {
|
|
501
|
+
fullSet: u.length >= 2 ? S.smoothMinimap || r ? S.cutNullValues ? i(u) : a(u.filter((e) => e.value != null)) : S.cutNullValues ? n(u) : t(u.filter((e) => e.value != null)) : "",
|
|
502
|
+
points: u,
|
|
503
|
+
selectionSet: p.length >= 2 ? S.smoothMinimap || r ? S.cutNullValues ? i(p) : a(p.filter((e) => e.value != null)) : S.cutNullValues ? n(p) : t(p.filter((e) => e.value != null)) : "",
|
|
504
|
+
sliced: p,
|
|
505
|
+
firstPlot: u[l] || null,
|
|
506
|
+
lastPlot: u[Math.max(0, ee - 1)] || null,
|
|
507
|
+
hasFull: u.length >= 2,
|
|
508
|
+
hasSelection: p.length >= 2,
|
|
509
|
+
fullMarkers: d,
|
|
510
|
+
selectionMarkers: f
|
|
511
|
+
};
|
|
512
|
+
}
|
|
513
|
+
let R = f(() => S.minimap.length ? Bt(S.minimap) : {
|
|
514
|
+
fullSet: "",
|
|
515
|
+
selectionSet: "",
|
|
516
|
+
sliced: [],
|
|
517
|
+
firstPlot: null,
|
|
518
|
+
lastPlot: null,
|
|
519
|
+
hasFull: !1,
|
|
520
|
+
hasSelection: !1
|
|
521
|
+
}), Vt = f(() => S.allMinimaps.length ? S.allMinimaps.map((e, t) => {
|
|
522
|
+
let n = Bt(e?.series || [], !!e.smooth), r = e?.id ?? e?.name ?? t;
|
|
523
|
+
return {
|
|
524
|
+
key: typeof r == "object" ? JSON.stringify(r) : String(r),
|
|
525
|
+
color: e?.color,
|
|
526
|
+
...n,
|
|
527
|
+
isVisible: e.isVisible,
|
|
528
|
+
type: e.type || "line"
|
|
529
|
+
};
|
|
530
|
+
}) : []), z = f(() => {
|
|
531
|
+
let e = Q.value, t = Math.max(e + 1, $.value);
|
|
532
|
+
return {
|
|
533
|
+
x: F.value * e + (S.minimapCompact ? 0 : F.value / 2),
|
|
534
|
+
width: F.value * (t - e) - F.value
|
|
535
|
+
};
|
|
536
|
+
}), B = y(S.minimapSelectedIndex);
|
|
537
|
+
function Ht(e) {
|
|
538
|
+
B.value = Cn(S.valueStart) + e;
|
|
539
|
+
}
|
|
540
|
+
let Ut = ee(Ht, 60);
|
|
541
|
+
x(() => S.minimapSelectedIndex, (e, t) => {
|
|
542
|
+
if ([null, void 0].includes(e)) {
|
|
543
|
+
B.value = null;
|
|
544
|
+
return;
|
|
545
|
+
}
|
|
546
|
+
e !== t && Ut(e);
|
|
547
|
+
}, { immediate: !0 });
|
|
548
|
+
function Wt(e) {
|
|
549
|
+
B.value = e;
|
|
550
|
+
let t = Q.value, n = $.value;
|
|
551
|
+
e >= t && e < n && !J.value && O("trapMouse", e - t);
|
|
552
|
+
}
|
|
553
|
+
let Gt = y(null), Kt = y(null);
|
|
554
|
+
function V(e) {
|
|
555
|
+
w.value = e, Gt.value && (Gt.value.value = e), O("update:start", Number(w.value));
|
|
556
|
+
}
|
|
557
|
+
function H(e) {
|
|
558
|
+
T.value = e, Kt.value && (Kt.value.value = e), O("update:end", Number(T.value));
|
|
559
|
+
}
|
|
560
|
+
let qt = f(() => S.valueEnd - S.valueStart), Jt = f(() => qt.value < S.max - S.min), U = y(!1), Yt = y(null), Xt = f(() => (lt.value - 48) / (S.max - S.min) * qt.value), Zt = f(() => Math.max(1, lt.value - at - Xt.value)), Qt = f(() => Math.max(1, S.max - S.min - qt.value)), $t = f(() => Qt.value / Zt.value), en = y(0), tn = y(0), nn = y(0), rn = y(0), W = null, G = null, K = null, q = null, an = y(S.min);
|
|
561
|
+
function on(e) {
|
|
562
|
+
if (!C.value) return S.min;
|
|
563
|
+
let t = C.value.getBoundingClientRect(), n = t.left + at / 2, r = t.right - at / 2, i = Math.max(1, r - n), a = (Math.max(n, Math.min(e, r)) - n) / i, o = Math.max(1, S.max - S.min);
|
|
564
|
+
return Math.round(S.min + a * o);
|
|
565
|
+
}
|
|
566
|
+
let sn = async (e) => {
|
|
567
|
+
if (X.value = !0, !S.enableSelectionDrag) return;
|
|
568
|
+
let t = e.type === "touchstart";
|
|
569
|
+
t || e.stopPropagation();
|
|
570
|
+
let n = t && e.targetTouches && e.targetTouches[0] ? e.targetTouches[0] : null, i = t ? n ? n.target : null : e.target;
|
|
571
|
+
if (!i || !(i instanceof Element) || i.classList && i.classList.contains("range-handle")) return;
|
|
572
|
+
U.value = !0;
|
|
573
|
+
let a = t ? n ? n.clientX : 0 : e.clientX;
|
|
574
|
+
if (Yt.value = a, en.value = a, S.focusOnDrag && !Jt.value && C.value) {
|
|
575
|
+
an.value = on(a);
|
|
576
|
+
let e = Math.min(.95, Math.max(.05, S.focusRangeRatio)), t = S.max - S.min, n = Math.max(1, Math.round(t * e)), i = Math.floor(n / 2), o = an.value - i;
|
|
577
|
+
o = Math.max(S.min, Math.min(o, S.max - n));
|
|
578
|
+
let s = Math.min(S.max, o + n);
|
|
579
|
+
V(o), H(s), r(C.value, "mouseup"), await ie(), r(C.value, "mousedown", { clientX: a });
|
|
580
|
+
}
|
|
581
|
+
tn.value = Number(w.value), nn.value = Number(T.value), rn.value = $t.value, W = t ? "touchmove" : "mousemove", G = t ? "touchend" : "mouseup", K = t ? ln : cn, q = t ? fn : dn, window.addEventListener(W, K, { passive: !1 }), window.addEventListener(G, q);
|
|
582
|
+
};
|
|
583
|
+
function cn(e) {
|
|
584
|
+
U.value && un(e.clientX);
|
|
585
|
+
}
|
|
586
|
+
function ln(e) {
|
|
587
|
+
if (!U.value || !C.value) return;
|
|
588
|
+
let t = e.target;
|
|
589
|
+
if (!(t instanceof Element) || !C.value.contains(t) || t.classList && t.classList.contains("range-handle")) return;
|
|
590
|
+
e.preventDefault();
|
|
591
|
+
let n = e.targetTouches && e.targetTouches[0] ? e.targetTouches[0] : null;
|
|
592
|
+
n && un(n.clientX);
|
|
593
|
+
}
|
|
594
|
+
function un(e) {
|
|
595
|
+
if (!U.value) return;
|
|
596
|
+
let t = on(en.value), n = on(e) - t, r = Math.max(1, nn.value - tn.value), i = Math.round(tn.value + n), a = S.min, o = S.max - r;
|
|
597
|
+
i < a && (i = a), i > o && (i = o);
|
|
598
|
+
let s = i + r;
|
|
599
|
+
V(i), H(s);
|
|
600
|
+
}
|
|
601
|
+
function dn() {
|
|
602
|
+
pn();
|
|
603
|
+
}
|
|
604
|
+
function fn() {
|
|
605
|
+
pn();
|
|
606
|
+
}
|
|
607
|
+
function pn() {
|
|
608
|
+
U.value = !1, W && K && window.removeEventListener(W, K), G && q && window.removeEventListener(G, q), W = G = null, K = q = null;
|
|
609
|
+
}
|
|
610
|
+
let J = y(!1), Y = y(null), mn = y(null), hn = y(1), gn = y(1), X = y(!1);
|
|
611
|
+
function _n() {
|
|
612
|
+
Y.value && (hn.value = Y.value.getBoundingClientRect().width);
|
|
613
|
+
}
|
|
614
|
+
function vn() {
|
|
615
|
+
mn.value && (gn.value = mn.value.getBoundingClientRect().width);
|
|
616
|
+
}
|
|
617
|
+
let yn = y(0);
|
|
618
|
+
function bn(e) {
|
|
619
|
+
yn.value = +(e === "start");
|
|
620
|
+
}
|
|
621
|
+
let Z = y(!1), xn = y({
|
|
622
|
+
width: 0,
|
|
623
|
+
left: 0
|
|
624
|
+
});
|
|
625
|
+
x([w, T], async () => {
|
|
626
|
+
if (await ie(), !Y.value || !mn.value) {
|
|
627
|
+
Z.value = !1, xn.value = {
|
|
628
|
+
width: 0,
|
|
629
|
+
left: 0
|
|
630
|
+
};
|
|
631
|
+
return;
|
|
632
|
+
}
|
|
633
|
+
let e = Y.value.getBoundingClientRect(), t = mn.value.getBoundingClientRect();
|
|
634
|
+
Z.value = e.x + e.width > t.x;
|
|
635
|
+
let n = e.x + e.width / 2, r = t.x + t.width / 2, i = e.width + t.width;
|
|
636
|
+
xn.value = {
|
|
637
|
+
width: i,
|
|
638
|
+
left: (n + r) / 2 - i / 2
|
|
639
|
+
};
|
|
640
|
+
}), ce(() => {
|
|
641
|
+
_n(), vn();
|
|
642
|
+
}), x(() => S.labelLeft, () => {
|
|
643
|
+
ie(_n);
|
|
644
|
+
}, { deep: !0 }), x(() => S.labelRight, () => {
|
|
645
|
+
ie(vn);
|
|
646
|
+
}, { deep: !0 }), ot({
|
|
647
|
+
setStartValue: V,
|
|
648
|
+
setEndValue: H
|
|
649
|
+
}), oe(() => {
|
|
650
|
+
N.value && N.value.disconnect(), W && K && window.removeEventListener(W, K), G && q && window.removeEventListener(G, q), W = G = null, K = q = null;
|
|
651
|
+
});
|
|
652
|
+
let Sn = f(() => Math.max(1, S.max - S.min));
|
|
653
|
+
function Cn(e) {
|
|
654
|
+
let t = Math.floor(e - S.min);
|
|
655
|
+
return Math.min(Math.max(0, t), Sn.value);
|
|
656
|
+
}
|
|
657
|
+
function wn(e) {
|
|
658
|
+
let t = Math.ceil(e - S.min);
|
|
659
|
+
return Math.min(Math.max(0, t), Sn.value);
|
|
660
|
+
}
|
|
661
|
+
let Q = f(() => Cn(w.value)), $ = f(() => wn(T.value)), Tn = f(() => {
|
|
662
|
+
if (!Et.value.length) return null;
|
|
663
|
+
if (B.value >= Q.value && B.value < $.value) {
|
|
664
|
+
let e = B.value;
|
|
665
|
+
return {
|
|
666
|
+
x1: F.value * e + (S.minimapCompact ? 0 : F.value / 2),
|
|
667
|
+
x2: F.value * e + (S.minimapCompact ? 0 : F.value / 2),
|
|
668
|
+
y1: 0,
|
|
669
|
+
y2: Math.max(M.value.height, 0),
|
|
670
|
+
stroke: S.minimapIndicatorColor,
|
|
671
|
+
"stroke-linecap": "round",
|
|
672
|
+
"stroke-dasharray": 2,
|
|
673
|
+
"stroke-width": 1
|
|
674
|
+
};
|
|
675
|
+
} else return null;
|
|
676
|
+
});
|
|
677
|
+
return (e, t) => (v(), m("div", {
|
|
678
|
+
"data-minimap": E.value,
|
|
679
|
+
"data-dom-to-png-ignore": "",
|
|
680
|
+
style: _([{ padding: "0 48px" }, {
|
|
681
|
+
maxWidth: c.maxWidth ? c.maxWidth + "px" : void 0,
|
|
682
|
+
margin: c.maxWidth ? "0 auto" : void 0
|
|
683
|
+
}]),
|
|
684
|
+
class: "vue-data-ui-zoom",
|
|
685
|
+
ref_key: "zoomWrapper",
|
|
686
|
+
ref: C,
|
|
687
|
+
onMousedown: sn,
|
|
688
|
+
onTouchstart: sn,
|
|
689
|
+
onTouchend: t[11] ||= (e) => X.value = !1
|
|
690
|
+
}, [h("div", ge, [c.valueStart !== c.refreshStartPoint || c.valueEnd !== ut.value ? (v(), m("div", _e, [le(e.$slots, "reset-action", { reset: Dt }, () => [h("button", {
|
|
691
|
+
tabindex: "0",
|
|
692
|
+
role: "button",
|
|
693
|
+
class: "vue-data-ui-refresh-button",
|
|
694
|
+
style: _({
|
|
695
|
+
top: E.value ? "36px" : "-16px",
|
|
696
|
+
cursor: c.isCursorPointer ? "pointer" : "default"
|
|
697
|
+
}),
|
|
698
|
+
onClick: Dt
|
|
699
|
+
}, [ne(te, {
|
|
700
|
+
name: "refresh",
|
|
701
|
+
stroke: c.textColor
|
|
702
|
+
}, null, 8, ["stroke"])], 4)], !0)])) : p("", !0)]), h("div", {
|
|
703
|
+
class: "double-range-slider",
|
|
704
|
+
ref_key: "minimapWrapper",
|
|
705
|
+
ref: Ot,
|
|
706
|
+
style: _([{ "z-index": "0" }, E.value ? {
|
|
707
|
+
"--minimap-unit-px": F.value + "px",
|
|
708
|
+
"--minimap-offset-px": (c.minimapCompact ? 0 : F.value / 2) + "px"
|
|
709
|
+
} : void 0]),
|
|
710
|
+
onMouseenter: t[9] ||= (e) => X.value = !0,
|
|
711
|
+
onMouseleave: t[10] ||= (e) => X.value = !1
|
|
712
|
+
}, [
|
|
713
|
+
E.value ? (v(), m("div", ve, [(v(), m("svg", {
|
|
714
|
+
key: `mm-${c.minimapMerged ? "merged" : "split"}-${c.minimapCompact ? "compact" : "normal"}`,
|
|
715
|
+
xmlns: de(s),
|
|
716
|
+
viewBox: `0 0 ${Math.max(0, M.value.width)} ${Math.max(0, M.value.height)}`
|
|
717
|
+
}, [
|
|
718
|
+
h("defs", null, [h("linearGradient", {
|
|
719
|
+
id: ct.value,
|
|
720
|
+
x1: "0%",
|
|
721
|
+
y1: "0%",
|
|
722
|
+
x2: "0%",
|
|
723
|
+
y2: "100%"
|
|
724
|
+
}, [h("stop", {
|
|
725
|
+
offset: "0%",
|
|
726
|
+
"stop-color": `${c.minimapLineColor}50`
|
|
727
|
+
}, null, 8, xe), t[12] ||= h("stop", {
|
|
728
|
+
offset: "100%",
|
|
729
|
+
"stop-color": "transparent"
|
|
730
|
+
}, null, -1)], 8, be)]),
|
|
731
|
+
c.minimapCompact ? (v(), m("rect", {
|
|
732
|
+
key: 0,
|
|
733
|
+
class: "vue-ui-zoom-minimap-frame",
|
|
734
|
+
x: 0,
|
|
735
|
+
y: 0,
|
|
736
|
+
width: M.value.width,
|
|
737
|
+
height: M.value.height,
|
|
738
|
+
fill: "none",
|
|
739
|
+
stroke: c.minimapFrameColor,
|
|
740
|
+
rx: 3
|
|
741
|
+
}, null, 8, Se)) : p("", !0),
|
|
742
|
+
c.minimapMerged ? (v(), m("path", {
|
|
743
|
+
key: 1,
|
|
744
|
+
d: `M${R.value.fullSet}`,
|
|
745
|
+
stroke: `${c.minimapLineColor}`,
|
|
746
|
+
fill: "none",
|
|
747
|
+
"stroke-width": "1",
|
|
748
|
+
"stroke-linecap": "round",
|
|
749
|
+
"stroke-linejoin": "round",
|
|
750
|
+
style: { opacity: "0.6" }
|
|
751
|
+
}, null, 8, Ce)) : (v(), m(d, { key: 2 }, [(v(!0), m(d, null, b(Vt.value.filter((e) => e.type === "bar"), (e, t) => (v(), m("g", null, [(v(!0), m(d, null, b(e.points, (n, r) => (v(), m(d, null, [e.isVisible && !isNaN(n.y) ? (v(), m("rect", {
|
|
752
|
+
key: 0,
|
|
753
|
+
x: Lt(n.x, t, r),
|
|
754
|
+
width: Rt(t, r),
|
|
755
|
+
y: n.v >= 0 ? n.y : n.y0,
|
|
756
|
+
height: n.v >= 0 ? n.y0 - n.y : n.y - n.y0,
|
|
757
|
+
fill: e.color,
|
|
758
|
+
style: { opacity: "0.6" }
|
|
759
|
+
}, null, 8, we)) : p("", !0)], 64))), 256))]))), 256)), (v(!0), m(d, null, b(Vt.value.filter((e) => e.type === "line"), (e) => (v(), m("g", { key: String(e.key) }, [e.isVisible ? (v(), m("path", {
|
|
760
|
+
key: 0,
|
|
761
|
+
d: `M ${e.fullSet}`,
|
|
762
|
+
fill: "none",
|
|
763
|
+
stroke: e.color,
|
|
764
|
+
style: { opacity: "0.6" }
|
|
765
|
+
}, null, 8, Te)) : p("", !0), e.isVisible ? (v(!0), m(d, { key: 1 }, b(e.fullMarkers, (t) => (v(), m("circle", {
|
|
766
|
+
key: `sel-dot-under-${e.key}-${t.i}`,
|
|
767
|
+
cx: t.x,
|
|
768
|
+
cy: t.y,
|
|
769
|
+
r: "2",
|
|
770
|
+
fill: e.color,
|
|
771
|
+
stroke: j.value,
|
|
772
|
+
"stroke-width": "0.5",
|
|
773
|
+
style: { opacity: "0.6" }
|
|
774
|
+
}, null, 8, Ee))), 128)) : p("", !0)]))), 128))], 64)),
|
|
775
|
+
h("rect", {
|
|
776
|
+
x: z.value.x,
|
|
777
|
+
width: z.value.width < 0 ? 0 : z.value.width,
|
|
778
|
+
height: Math.max(M.value.height, 0),
|
|
779
|
+
y: 0,
|
|
780
|
+
fill: j.value,
|
|
781
|
+
rx: c.minimapSelectionRadius,
|
|
782
|
+
stroke: "none"
|
|
783
|
+
}, null, 8, De),
|
|
784
|
+
h("rect", {
|
|
785
|
+
x: z.value.x,
|
|
786
|
+
width: z.value.width < 0 ? 0 : z.value.width,
|
|
787
|
+
height: Math.max(M.value.height, 0),
|
|
788
|
+
y: 0,
|
|
789
|
+
rx: c.minimapSelectionRadius,
|
|
790
|
+
fill: j.value
|
|
791
|
+
}, null, 8, Oe),
|
|
792
|
+
h("rect", {
|
|
793
|
+
x: z.value.x,
|
|
794
|
+
width: z.value.width < 0 ? 0 : z.value.width,
|
|
795
|
+
height: Math.max(M.value.height, 0),
|
|
796
|
+
y: 0,
|
|
797
|
+
fill: c.minimapSelectedColor,
|
|
798
|
+
rx: c.minimapSelectionRadius,
|
|
799
|
+
style: _({ opacity: c.minimapSelectedColorOpacity })
|
|
800
|
+
}, null, 12, ke),
|
|
801
|
+
B.value !== null && !J.value ? (v(), m("line", ae(re({ key: 3 }, Tn.value)), null, 16)) : p("", !0),
|
|
802
|
+
!c.minimapMerged && At.value < 0 ? (v(), m("line", {
|
|
803
|
+
key: 4,
|
|
804
|
+
class: "slicer-minimap-zero-line",
|
|
805
|
+
x1: 0,
|
|
806
|
+
x2: M.value.width,
|
|
807
|
+
y1: Pt.value,
|
|
808
|
+
y2: Pt.value,
|
|
809
|
+
stroke: c.minimapFrameColor,
|
|
810
|
+
"stroke-width": "0.5"
|
|
811
|
+
}, null, 8, Ae)) : p("", !0),
|
|
812
|
+
c.minimapMerged ? (v(), m(d, { key: 5 }, [R.value && R.value.sliced && R.value.sliced.length ? (v(), m(d, { key: 0 }, [R.value.selectionSet ? (v(), m("path", {
|
|
813
|
+
key: 0,
|
|
814
|
+
d: `M${R.value.sliced[0].x},${Math.max(M.value.height, 0)} ${R.value.selectionSet} L${R.value.sliced[R.value.sliced.length - 1].x},${Math.max(M.value.height, 0)}Z`,
|
|
815
|
+
fill: `url(#${ct.value})`,
|
|
816
|
+
stroke: "none",
|
|
817
|
+
style: { opacity: "1" }
|
|
818
|
+
}, null, 8, je)) : p("", !0), R.value.selectionSet ? (v(), m("path", {
|
|
819
|
+
key: 1,
|
|
820
|
+
d: `M ${R.value.selectionSet}`,
|
|
821
|
+
stroke: `${c.minimapLineColor}`,
|
|
822
|
+
fill: "transparent",
|
|
823
|
+
"stroke-width": "2",
|
|
824
|
+
"stroke-linecap": "round",
|
|
825
|
+
"stroke-linejoin": "round"
|
|
826
|
+
}, null, 8, Me)) : p("", !0)], 64)) : p("", !0)], 64)) : (v(), m("g", Ne, [(v(!0), m(d, null, b(Vt.value.filter((e) => e.type === "bar"), (e, t) => (v(), m("g", null, [(v(!0), m(d, null, b(e.points, (n, r) => (v(), m(d, null, [e.isVisible && !isNaN(n.y) ? (v(), m("rect", {
|
|
827
|
+
key: 0,
|
|
828
|
+
x: Lt(n.x, t, r),
|
|
829
|
+
width: Rt(t, r),
|
|
830
|
+
y: n.v >= 0 ? n.y : n.y0,
|
|
831
|
+
height: n.v >= 0 ? n.y0 - n.y : n.y - n.y0,
|
|
832
|
+
fill: e.color,
|
|
833
|
+
style: _({ opacity: +(r >= c.valueStart && r <= c.valueEnd - 1) })
|
|
834
|
+
}, null, 12, Pe)) : p("", !0)], 64))), 256))]))), 256)), (v(!0), m(d, null, b(Vt.value.filter((e) => e.type === "line"), (e) => (v(), m("g", { key: String(e.key) }, [e && e.hasSelection && e.selectionSet && e.isVisible ? (v(), m("path", {
|
|
835
|
+
key: 0,
|
|
836
|
+
d: `M ${e.selectionSet}`,
|
|
837
|
+
stroke: e.color,
|
|
838
|
+
fill: "transparent",
|
|
839
|
+
"stroke-width": "2",
|
|
840
|
+
"stroke-linecap": "round",
|
|
841
|
+
"stroke-linejoin": "round"
|
|
842
|
+
}, null, 8, Fe)) : p("", !0)]))), 128))])),
|
|
843
|
+
E.value && c.minimapCompact ? (v(), m("rect", {
|
|
844
|
+
key: 7,
|
|
845
|
+
class: "vue-ui-zoom-compact-minimap-handle",
|
|
846
|
+
x: z.value.x - Math.min(40, Math.max(20, c.handleWidth)),
|
|
847
|
+
y: 0,
|
|
848
|
+
width: Math.min(40, Math.max(20, c.handleWidth)),
|
|
849
|
+
height: M.value.height,
|
|
850
|
+
fill: c.handleFill || j.value,
|
|
851
|
+
stroke: c.handleBorderColor || c.textColor,
|
|
852
|
+
"stroke-width": c.handleBorderWidth,
|
|
853
|
+
rx: 3
|
|
854
|
+
}, null, 8, Ie)) : p("", !0),
|
|
855
|
+
c.handleType && c.handleType !== "empty" ? (v(), m("svg", {
|
|
856
|
+
key: 8,
|
|
857
|
+
x: z.value.x - Math.min(40, Math.max(20, c.handleWidth)),
|
|
858
|
+
y: 0,
|
|
859
|
+
width: Math.min(40, Math.max(20, c.handleWidth)),
|
|
860
|
+
height: M.value.height,
|
|
861
|
+
viewBox: "0 0 20 20"
|
|
862
|
+
}, [c.handleType === "arrow" ? (v(), m("path", {
|
|
863
|
+
key: 0,
|
|
864
|
+
d: "M 7 7 L 3 10 L 7 13 L 7 7 M 13 7 L 17 10 L 13 13 L 13 7",
|
|
865
|
+
fill: j.value,
|
|
866
|
+
stroke: c.handleIconColor || c.textColor,
|
|
867
|
+
"stroke-width": .618,
|
|
868
|
+
"stroke-linejoin": "round",
|
|
869
|
+
"stroke-linecap": "round"
|
|
870
|
+
}, null, 8, Re)) : c.handleType === "chevron" ? (v(), m("path", {
|
|
871
|
+
key: 1,
|
|
872
|
+
d: "M 6 7 L 4 10 L 6 13 M 14 7 L 16 10 L 14 13",
|
|
873
|
+
fill: "none",
|
|
874
|
+
stroke: c.handleIconColor || c.textColor,
|
|
875
|
+
"stroke-width": .618,
|
|
876
|
+
"stroke-linejoin": "round",
|
|
877
|
+
"stroke-linecap": "round"
|
|
878
|
+
}, null, 8, ze)) : c.handleType === "grab" ? (v(), m("path", {
|
|
879
|
+
key: 2,
|
|
880
|
+
d: "M 8 5 A 1 1 0 0 0 8 7 A 1 1 0 0 0 8 5 M 8 9 A 1 1 0 0 0 8 11 A 1 1 0 0 0 8 9 M 8 13 A 1 1 0 0 0 8 15 A 1 1 0 0 0 8 13 M 12 5 A 1 1 0 0 0 12 7 A 1 1 0 0 0 12 5 M 12 9 A 1 1 0 0 0 12 11 A 1 1 0 0 0 12 9 M 12 13 A 1 1 0 0 0 12 15 A 1 1 0 0 0 12 13",
|
|
881
|
+
fill: c.handleIconColor || c.textColor,
|
|
882
|
+
stroke: "none",
|
|
883
|
+
opacity: "0.6"
|
|
884
|
+
}, null, 8, Be)) : p("", !0)], 8, Le)) : p("", !0),
|
|
885
|
+
E.value && c.minimapCompact ? (v(), m("rect", {
|
|
886
|
+
key: 9,
|
|
887
|
+
class: "vue-ui-zoom-compact-minimap-handle",
|
|
888
|
+
x: z.value.x + z.value.width,
|
|
889
|
+
y: 0,
|
|
890
|
+
width: Math.min(40, Math.max(20, c.handleWidth)),
|
|
891
|
+
height: M.value.height,
|
|
892
|
+
fill: c.handleFill || j.value,
|
|
893
|
+
stroke: c.handleBorderColor || c.textColor,
|
|
894
|
+
"stroke-width": c.handleBorderWidth,
|
|
895
|
+
rx: 3
|
|
896
|
+
}, null, 8, Ve)) : p("", !0),
|
|
897
|
+
c.handleType && c.handleType !== "empty" ? (v(), m("svg", {
|
|
898
|
+
key: 10,
|
|
899
|
+
x: z.value.x + z.value.width,
|
|
900
|
+
y: 0,
|
|
901
|
+
width: Math.min(40, Math.max(20, c.handleWidth)),
|
|
902
|
+
height: M.value.height,
|
|
903
|
+
viewBox: "0 0 20 20"
|
|
904
|
+
}, [c.handleType === "arrow" ? (v(), m("path", {
|
|
905
|
+
key: 0,
|
|
906
|
+
d: "M 7 7 L 3 10 L 7 13 L 7 7 M 13 7 L 17 10 L 13 13 L 13 7",
|
|
907
|
+
fill: j.value,
|
|
908
|
+
stroke: c.handleIconColor || c.textColor,
|
|
909
|
+
"stroke-width": .618,
|
|
910
|
+
"stroke-linejoin": "round",
|
|
911
|
+
"stroke-linecap": "round"
|
|
912
|
+
}, null, 8, Ue)) : c.handleType === "chevron" ? (v(), m("path", {
|
|
913
|
+
key: 1,
|
|
914
|
+
d: "M 6 7 L 4 10 L 6 13 M 14 7 L 16 10 L 14 13",
|
|
915
|
+
fill: "none",
|
|
916
|
+
stroke: c.handleIconColor || c.textColor,
|
|
917
|
+
"stroke-width": .618,
|
|
918
|
+
"stroke-linejoin": "round",
|
|
919
|
+
"stroke-linecap": "round"
|
|
920
|
+
}, null, 8, We)) : c.handleType === "grab" ? (v(), m("path", {
|
|
921
|
+
key: 2,
|
|
922
|
+
d: "M 8 5 A 1 1 0 0 0 8 7 A 1 1 0 0 0 8 5 M 8 9 A 1 1 0 0 0 8 11 A 1 1 0 0 0 8 9 M 8 13 A 1 1 0 0 0 8 15 A 1 1 0 0 0 8 13 M 12 5 A 1 1 0 0 0 12 7 A 1 1 0 0 0 12 5 M 12 9 A 1 1 0 0 0 12 11 A 1 1 0 0 0 12 9 M 12 13 A 1 1 0 0 0 12 15 A 1 1 0 0 0 12 13",
|
|
923
|
+
fill: c.handleIconColor || c.textColor,
|
|
924
|
+
stroke: "none",
|
|
925
|
+
opacity: "0.6"
|
|
926
|
+
}, null, 8, Ge)) : p("", !0)], 8, He)) : p("", !0),
|
|
927
|
+
c.minimapMerged ? (v(), m(d, { key: 11 }, [
|
|
928
|
+
R.value && R.value.firstPlot && R.value.firstPlot.value !== null ? (v(), m("circle", {
|
|
929
|
+
key: 0,
|
|
930
|
+
cx: R.value.firstPlot.x,
|
|
931
|
+
cy: R.value.firstPlot.y,
|
|
932
|
+
"stroke-width": "0.5",
|
|
933
|
+
stroke: j.value,
|
|
934
|
+
r: "4",
|
|
935
|
+
fill: c.minimapLineColor
|
|
936
|
+
}, null, 8, Ke)) : p("", !0),
|
|
937
|
+
R.value && R.value.firstPlot && R.value.firstPlot.value !== null ? (v(), m("circle", {
|
|
938
|
+
key: 1,
|
|
939
|
+
cx: R.value.firstPlot.x,
|
|
940
|
+
cy: R.value.firstPlot.y,
|
|
941
|
+
r: "2",
|
|
942
|
+
fill: j.value
|
|
943
|
+
}, null, 8, qe)) : p("", !0),
|
|
944
|
+
R.value && R.value.lastPlot && R.value.lastPlot.value !== null ? (v(), m("circle", {
|
|
945
|
+
key: 2,
|
|
946
|
+
cx: R.value.lastPlot.x,
|
|
947
|
+
cy: R.value.lastPlot.y,
|
|
948
|
+
"stroke-width": "0.5",
|
|
949
|
+
stroke: j.value,
|
|
950
|
+
r: "4",
|
|
951
|
+
fill: c.minimapLineColor
|
|
952
|
+
}, null, 8, Je)) : p("", !0),
|
|
953
|
+
R.value && R.value.lastPlot && R.value.lastPlot.value !== null ? (v(), m("circle", {
|
|
954
|
+
key: 3,
|
|
955
|
+
cx: R.value.lastPlot.x,
|
|
956
|
+
cy: R.value.lastPlot.y,
|
|
957
|
+
r: "2",
|
|
958
|
+
fill: j.value
|
|
959
|
+
}, null, 8, Ye)) : p("", !0)
|
|
960
|
+
], 64)) : (v(), m("g", Xe, [(v(!0), m(d, null, b(Vt.value.filter((e) => e.type === "line"), (e) => (v(), m("g", { key: String(e.key) }, [
|
|
961
|
+
e.isVisible ? (v(!0), m(d, { key: 0 }, b(e.selectionMarkers, (t) => (v(), m("circle", {
|
|
962
|
+
key: `sel-dot-${e.key}-${t.i}`,
|
|
963
|
+
cx: t.x,
|
|
964
|
+
cy: t.y,
|
|
965
|
+
r: "2.5",
|
|
966
|
+
fill: e.color,
|
|
967
|
+
stroke: j.value,
|
|
968
|
+
"stroke-width": "0.5"
|
|
969
|
+
}, null, 8, Ze))), 128)) : p("", !0),
|
|
970
|
+
e && e.firstPlot && e.isVisible && e.firstPlot.value !== null ? (v(), m("circle", {
|
|
971
|
+
key: 1,
|
|
972
|
+
cx: e.firstPlot.x,
|
|
973
|
+
cy: e.firstPlot.y,
|
|
974
|
+
"stroke-width": "0.5",
|
|
975
|
+
stroke: j.value,
|
|
976
|
+
r: "4",
|
|
977
|
+
fill: e.color
|
|
978
|
+
}, null, 8, Qe)) : p("", !0),
|
|
979
|
+
e && e.firstPlot && e.isVisible && e.firstPlot.value !== null ? (v(), m("circle", {
|
|
980
|
+
key: 2,
|
|
981
|
+
cx: e.firstPlot.x,
|
|
982
|
+
cy: e.firstPlot.y,
|
|
983
|
+
r: "2",
|
|
984
|
+
fill: j.value
|
|
985
|
+
}, null, 8, $e)) : p("", !0),
|
|
986
|
+
e && e.lastPlot && e.isVisible && e.lastPlot.value !== null ? (v(), m("circle", {
|
|
987
|
+
key: 3,
|
|
988
|
+
cx: e.lastPlot.x,
|
|
989
|
+
cy: e.lastPlot.y,
|
|
990
|
+
"stroke-width": "0.5",
|
|
991
|
+
stroke: j.value,
|
|
992
|
+
r: "4",
|
|
993
|
+
fill: e.color
|
|
994
|
+
}, null, 8, et)) : p("", !0),
|
|
995
|
+
e && e.lastPlot && e.isVisible && e.lastPlot.value !== null ? (v(), m("circle", {
|
|
996
|
+
key: 4,
|
|
997
|
+
cx: e.lastPlot.x,
|
|
998
|
+
cy: e.lastPlot.y,
|
|
999
|
+
r: "2",
|
|
1000
|
+
fill: j.value
|
|
1001
|
+
}, null, 8, tt)) : p("", !0)
|
|
1002
|
+
]))), 128))])),
|
|
1003
|
+
(v(!0), m(d, null, b(Et.value, (e, n) => (v(), m("rect", {
|
|
1004
|
+
key: `trap-${n}`,
|
|
1005
|
+
y: 0,
|
|
1006
|
+
height: Math.max(M.value.height, 0),
|
|
1007
|
+
fill: "transparent",
|
|
1008
|
+
style: _([{ "pointer-events": "all !important" }, { cursor: e >= Q.value && e < $.value && c.enableSelectionDrag ? J.value ? "grabbing" : "grab" : "default" }]),
|
|
1009
|
+
x: F.value * n - (c.minimapCompact ? F.value / 2 : 0),
|
|
1010
|
+
width: F.value < 0 ? 0 : F.value,
|
|
1011
|
+
onMousedown: t[0] ||= (e) => J.value = !0,
|
|
1012
|
+
onMouseup: t[1] ||= (e) => J.value = !1,
|
|
1013
|
+
onMouseenter: (t) => Wt(e),
|
|
1014
|
+
onMouseleave: t[2] ||= (e) => {
|
|
1015
|
+
B.value = null, O("trapMouse", null);
|
|
1016
|
+
}
|
|
1017
|
+
}, null, 44, nt))), 128))
|
|
1018
|
+
], 8, ye))])) : p("", !0),
|
|
1019
|
+
h("div", {
|
|
1020
|
+
class: "slider-track",
|
|
1021
|
+
style: _({ visibility: E.value && c.minimapCompact ? "hidden" : "visible" })
|
|
1022
|
+
}, null, 4),
|
|
1023
|
+
h("div", {
|
|
1024
|
+
class: g({
|
|
1025
|
+
"range-highlight": !0,
|
|
1026
|
+
move: c.enableSelectionDrag
|
|
1027
|
+
}),
|
|
1028
|
+
onMousedown: t[3] ||= (e) => J.value = !0,
|
|
1029
|
+
onMouseup: t[4] ||= (e) => J.value = !1,
|
|
1030
|
+
style: _({
|
|
1031
|
+
...A.value,
|
|
1032
|
+
cursor: J.value ? "grabbing" : "grab",
|
|
1033
|
+
visibility: E.value && c.minimapCompact ? "hidden" : "visible"
|
|
1034
|
+
})
|
|
1035
|
+
}, null, 38),
|
|
1036
|
+
c.enableRangeHandles ? me((v(), m("input", {
|
|
1037
|
+
key: 1,
|
|
1038
|
+
ref_key: "rangeStart",
|
|
1039
|
+
ref: Gt,
|
|
1040
|
+
type: "range",
|
|
1041
|
+
class: g({
|
|
1042
|
+
"range-left": !0,
|
|
1043
|
+
"range-handle": !0,
|
|
1044
|
+
"range-minimap": E.value && c.verticalHandles,
|
|
1045
|
+
"range-invisible": E.value && c.minimapCompact
|
|
1046
|
+
}),
|
|
1047
|
+
min: c.min,
|
|
1048
|
+
max: D.value && c.minimapCompact ? ht.value : c.max,
|
|
1049
|
+
step: 1,
|
|
1050
|
+
"onUpdate:modelValue": t[5] ||= (e) => xt.value = e,
|
|
1051
|
+
onMouseenter: t[6] ||= (e) => bn("start")
|
|
1052
|
+
}, null, 42, rt)), [[
|
|
1053
|
+
pe,
|
|
1054
|
+
xt.value,
|
|
1055
|
+
void 0,
|
|
1056
|
+
{ number: !0 }
|
|
1057
|
+
]]) : p("", !0),
|
|
1058
|
+
c.enableRangeHandles ? me((v(), m("input", {
|
|
1059
|
+
key: 2,
|
|
1060
|
+
ref_key: "rangeEnd",
|
|
1061
|
+
ref: Kt,
|
|
1062
|
+
type: "range",
|
|
1063
|
+
class: g({
|
|
1064
|
+
"range-right": !0,
|
|
1065
|
+
"range-handle": !0,
|
|
1066
|
+
"range-minimap": E.value && c.verticalHandles,
|
|
1067
|
+
"range-invisible": E.value && c.minimapCompact
|
|
1068
|
+
}),
|
|
1069
|
+
min: c.min,
|
|
1070
|
+
max: D.value && c.minimapCompact ? ht.value : c.max,
|
|
1071
|
+
step: 1,
|
|
1072
|
+
"onUpdate:modelValue": t[7] ||= (e) => St.value = e,
|
|
1073
|
+
onMouseenter: t[8] ||= (e) => bn("end")
|
|
1074
|
+
}, null, 42, it)), [[
|
|
1075
|
+
pe,
|
|
1076
|
+
St.value,
|
|
1077
|
+
void 0,
|
|
1078
|
+
{ number: !0 }
|
|
1079
|
+
]]) : p("", !0),
|
|
1080
|
+
c.labelLeft ? (v(), m("div", {
|
|
1081
|
+
key: 3,
|
|
1082
|
+
ref_key: "tooltipLeft",
|
|
1083
|
+
ref: Y,
|
|
1084
|
+
class: g({
|
|
1085
|
+
"range-tooltip": !0,
|
|
1086
|
+
"range-tooltip-visible": X.value,
|
|
1087
|
+
"range-tooltip-arrow": A.value.arrowLeft && !c.verticalHandles,
|
|
1088
|
+
"range-tooltip-arrow-left": !A.value.arrowLeft && !c.verticalHandles
|
|
1089
|
+
}),
|
|
1090
|
+
style: _({
|
|
1091
|
+
left: A.value.tooltipLeft,
|
|
1092
|
+
color: de(o)(c.selectColor),
|
|
1093
|
+
backgroundColor: c.selectColor,
|
|
1094
|
+
border: `1px solid ${j.value}`,
|
|
1095
|
+
zIndex: `${yn.value + 4}`,
|
|
1096
|
+
visibility: Z.value || c.labelLeft === c.labelRight ? "hidden" : "visible",
|
|
1097
|
+
top: E.value && c.minimapCompact ? "calc(-100% - 18px)" : "-100%"
|
|
1098
|
+
})
|
|
1099
|
+
}, ue(c.labelLeft), 7)) : p("", !0),
|
|
1100
|
+
(Z.value || c.labelLeft === c.labelRight) && (c.labelLeft || c.labelRight) ? (v(), m("div", {
|
|
1101
|
+
key: 4,
|
|
1102
|
+
ref: "tooltipMerge",
|
|
1103
|
+
class: g({
|
|
1104
|
+
"range-tooltip": !0,
|
|
1105
|
+
"range-tooltip-visible": X.value,
|
|
1106
|
+
"range-tooltip-arrow": !0,
|
|
1107
|
+
"range-tooltip-arrow-left": !A.value.arrowLeft && !c.verticalHandles,
|
|
1108
|
+
"range-tooltip-arrow-right": !A.value.arrowRight && !c.verticalHandles
|
|
1109
|
+
}),
|
|
1110
|
+
style: _({
|
|
1111
|
+
left: A.value.tooltipCenter,
|
|
1112
|
+
width: xn.value.width + "px",
|
|
1113
|
+
color: de(o)(c.selectColor),
|
|
1114
|
+
backgroundColor: c.selectColor,
|
|
1115
|
+
border: `1px solid ${j.value}`,
|
|
1116
|
+
zIndex: "4",
|
|
1117
|
+
top: E.value && c.minimapCompact ? "calc(-100% - 18px)" : "-100%"
|
|
1118
|
+
})
|
|
1119
|
+
}, ue(c.labelLeft === c.labelRight ? c.labelLeft : `${c.labelLeft} - ${c.labelRight}`), 7)) : p("", !0),
|
|
1120
|
+
c.labelRight ? (v(), m("div", {
|
|
1121
|
+
key: 5,
|
|
1122
|
+
ref_key: "tooltipRight",
|
|
1123
|
+
ref: mn,
|
|
1124
|
+
class: g({
|
|
1125
|
+
"range-tooltip": !0,
|
|
1126
|
+
"range-tooltip-visible": X.value,
|
|
1127
|
+
"range-tooltip-arrow": A.value.arrowRight && !c.verticalHandles,
|
|
1128
|
+
"range-tooltip-arrow-right": !A.value.arrowRight && !c.verticalHandles
|
|
1129
|
+
}),
|
|
1130
|
+
style: _({
|
|
1131
|
+
left: A.value.tooltipRight,
|
|
1132
|
+
color: de(o)(c.selectColor),
|
|
1133
|
+
backgroundColor: c.selectColor,
|
|
1134
|
+
border: `1px solid ${j.value}`,
|
|
1135
|
+
zIndex: "4",
|
|
1136
|
+
visibility: Z.value || c.labelLeft === c.labelRight ? "hidden" : "visible",
|
|
1137
|
+
top: E.value && c.minimapCompact ? "calc(-100% - 18px)" : "-100%"
|
|
1138
|
+
})
|
|
1139
|
+
}, ue(c.labelRight), 7)) : p("", !0)
|
|
1140
|
+
], 36)], 44, he));
|
|
1141
|
+
}
|
|
1142
|
+
}, [["__scopeId", "data-v-f688cd63"]]);
|
|
1143
|
+
//#endregion
|
|
1144
|
+
export { ot as t };
|