vue-data-ui 3.27.0 → 3.27.1
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-DWNlWXzs.js +1 -0
- package/dist/Arrow-C2W0uGrq.js +1 -0
- package/dist/BaseDraggableDialog-D_tuHEjO.js +1 -0
- package/dist/BaseIcon-DdIyewwY.js +1 -0
- package/dist/BaseLegendToggle-Bq5FjyuI.js +1 -0
- package/dist/BaseScanner-8NdoBs7B.js +1 -0
- package/dist/BaseZoomControls-DoYifY2y.js +1 -0
- package/dist/ColorPicker-MLwiwxl5.js +1 -0
- package/dist/DataTable-WNecJMcY.js +1 -0
- package/dist/DefGrad-DKMq1REY.js +1 -0
- package/dist/HillActions-CHg1AQ3p.js +1 -0
- package/dist/Legend-D8YoT1RJ.js +1 -0
- package/dist/NonSvgPenAndPaper-CqtJpZKh.js +1 -0
- package/dist/PackageVersion-CdkxOy58.js +1 -0
- package/dist/PenAndPaper-IMw576MC.js +1 -0
- package/dist/RecursiveCircles-BftI1kwF.js +1 -0
- package/dist/RecursiveLabels-B0d04xSj.js +1 -0
- package/dist/RecursiveLinks-CZtG6uWg.js +1 -0
- package/dist/Shape-Bp9YNtPc.js +1 -0
- package/dist/SlicerPreview-CNUciSbY.js +1 -0
- package/dist/SparkTooltip-C5JMcBXT.js +1 -0
- package/dist/Title-BGYFqulv.js +1 -0
- package/dist/Tooltip-Cus2-XNQ.js +1 -0
- package/dist/UserOptions-DTxMeZv3.js +1 -0
- package/dist/_plugin-vue_export-helper-BDNMzG2s.js +1 -0
- package/dist/annotationSlots-BRR85CqJ.js +1 -0
- package/dist/chartImage-CIvU_04o.js +1 -0
- package/dist/components/arrow.js +1 -2
- package/dist/components/vue-ui-3d-bar.js +1 -2
- package/dist/components/vue-ui-accordion.js +1 -2
- package/dist/components/vue-ui-age-pyramid.js +1 -2
- package/dist/components/vue-ui-annotator.js +1 -2
- package/dist/components/vue-ui-bullet.js +1 -2
- package/dist/components/vue-ui-bump.js +1 -2
- package/dist/components/vue-ui-candlestick.js +1 -2
- package/dist/components/vue-ui-carousel-table.js +1 -2
- package/dist/components/vue-ui-chestnut.js +1 -2
- package/dist/components/vue-ui-chord.js +1 -2
- package/dist/components/vue-ui-circle-pack.js +1 -2
- package/dist/components/vue-ui-cursor.js +1 -2
- package/dist/components/vue-ui-dag.js +1 -2
- package/dist/components/vue-ui-dashboard.js +1 -2
- package/dist/components/vue-ui-digits.js +1 -2
- package/dist/components/vue-ui-donut-evolution.js +1 -2
- package/dist/components/vue-ui-donut.js +1 -2
- package/dist/components/vue-ui-dumbbell.js +1 -2
- package/dist/components/vue-ui-flow.js +1 -2
- package/dist/components/vue-ui-funnel.js +1 -2
- package/dist/components/vue-ui-galaxy.js +1 -2
- package/dist/components/vue-ui-gauge.js +1 -2
- package/dist/components/vue-ui-geo.js +1 -2
- package/dist/components/vue-ui-gizmo.js +1 -2
- package/dist/components/vue-ui-heatmap.js +1 -2
- package/dist/components/vue-ui-hill.js +1 -2
- package/dist/components/vue-ui-history-plot.js +1 -2
- package/dist/components/vue-ui-horizontal-bar.js +1 -2
- package/dist/components/vue-ui-icon.js +1 -2
- package/dist/components/vue-ui-kpi.js +1 -2
- package/dist/components/vue-ui-label.js +1 -2
- package/dist/components/vue-ui-mini-loader.js +1 -2
- package/dist/components/vue-ui-molecule.js +1 -2
- package/dist/components/vue-ui-mood-radar.js +1 -2
- package/dist/components/vue-ui-nested-donuts.js +1 -2
- package/dist/components/vue-ui-onion.js +1 -2
- package/dist/components/vue-ui-parallel-coordinate-plot.js +1 -2
- package/dist/components/vue-ui-pattern-seed.js +1 -2
- package/dist/components/vue-ui-pattern.js +1 -2
- package/dist/components/vue-ui-quadrant.js +1 -2
- package/dist/components/vue-ui-quick-chart.js +1 -2
- package/dist/components/vue-ui-radar.js +1 -2
- package/dist/components/vue-ui-rating.js +1 -2
- package/dist/components/vue-ui-relation-circle.js +1 -2
- package/dist/components/vue-ui-ridgeline.js +1 -2
- package/dist/components/vue-ui-rings.js +1 -2
- package/dist/components/vue-ui-scatter.js +1 -2
- package/dist/components/vue-ui-skeleton.js +1 -2
- package/dist/components/vue-ui-smiley.js +1 -2
- package/dist/components/vue-ui-spark-trend.js +1 -2
- package/dist/components/vue-ui-sparkbar.js +1 -2
- package/dist/components/vue-ui-sparkgauge.js +1 -2
- package/dist/components/vue-ui-sparkhistogram.js +1 -2
- package/dist/components/vue-ui-sparkline.js +1 -2
- package/dist/components/vue-ui-sparkstackbar.js +1 -2
- package/dist/components/vue-ui-stackbar.js +1 -2
- package/dist/components/vue-ui-stackline.js +1 -2
- package/dist/components/vue-ui-strip-plot.js +1 -2
- package/dist/components/vue-ui-table-heatmap.js +1 -2
- package/dist/components/vue-ui-table-sparkline.js +1 -2
- package/dist/components/vue-ui-table.js +1 -2
- package/dist/components/vue-ui-thermometer.js +1 -2
- package/dist/components/vue-ui-timer.js +1 -2
- package/dist/components/vue-ui-tiremarks.js +1 -2
- package/dist/components/vue-ui-treemap.js +1 -2
- package/dist/components/vue-ui-vertical-bar.js +1 -2
- package/dist/components/vue-ui-waffle.js +1 -2
- package/dist/components/vue-ui-wheel.js +1 -2
- package/dist/components/vue-ui-word-cloud.js +1 -2
- package/dist/components/vue-ui-world.js +1 -2
- package/dist/components/vue-ui-xy-canvas.js +1 -2
- package/dist/components/vue-ui-xy.js +1 -2
- package/dist/composables.js +1 -5
- package/dist/dom-to-png-D8t3Bm7s.js +3 -0
- package/dist/exposedLib-DHtyEc_G.js +1 -0
- package/dist/geoProjections-Bvj-eMvq.js +1 -0
- package/dist/img-DiT4ivZ5.js +1 -0
- package/dist/labelUtils-CG3uVXoZ.js +1 -0
- package/dist/lib-CV_IANZ6.js +12 -0
- package/dist/package-DE5cU1Rg.js +1 -0
- package/dist/patternUtils-_q3ArM3g.js +1 -0
- package/dist/pdf-BQSB1V3H.js +1 -0
- package/dist/render-common-BdZ5aRyn.js +1 -0
- package/dist/resolveChartConfig-DZg-korK.js +1 -0
- package/dist/rolldown-runtime-DK3Fl9T5.js +1 -0
- package/dist/ssr/vue-ui-donut.js +1 -2
- package/dist/ssr/vue-ui-xy.js +1 -2
- package/dist/ssr.js +1 -3
- package/dist/style.css +1 -1
- package/dist/tableIntegration-CNoJ1CIY.js +1 -0
- package/dist/types/composables.d.ts +12 -12
- package/dist/types/ssr.d.ts +84 -84
- package/dist/types/utils.d.ts +82 -73
- package/dist/types/vue-data-ui.d.ts +17961 -17958
- package/dist/types/vue-ui-3d-bar.d.ts +24 -91
- package/dist/types/vue-ui-accordion.d.ts +2 -10
- package/dist/types/vue-ui-age-pyramid.d.ts +27 -106
- package/dist/types/vue-ui-annotator.d.ts +12 -88
- package/dist/types/vue-ui-bullet.d.ts +21 -83
- package/dist/types/vue-ui-bump.d.ts +23 -90
- package/dist/types/vue-ui-candlestick.d.ts +27 -108
- package/dist/types/vue-ui-carousel-table.d.ts +11 -57
- package/dist/types/vue-ui-chestnut.d.ts +27 -96
- package/dist/types/vue-ui-chord.d.ts +31 -108
- package/dist/types/vue-ui-circle-pack.d.ts +30 -124
- package/dist/types/vue-ui-cursor.d.ts +2 -8
- package/dist/types/vue-ui-dag.d.ts +35 -125
- package/dist/types/vue-ui-dashboard.d.ts +18 -66
- package/dist/types/vue-ui-digits.d.ts +2 -11
- package/dist/types/vue-ui-donut-evolution.d.ts +31 -100
- package/dist/types/vue-ui-donut.d.ts +31 -121
- package/dist/types/vue-ui-dumbbell.d.ts +24 -92
- package/dist/types/vue-ui-flow.d.ts +28 -104
- package/dist/types/vue-ui-funnel.d.ts +18 -77
- package/dist/types/vue-ui-galaxy.d.ts +30 -112
- package/dist/types/vue-ui-gauge.d.ts +22 -87
- package/dist/types/vue-ui-geo.d.ts +22 -92
- package/dist/types/vue-ui-gizmo.d.ts +5 -20
- package/dist/types/vue-ui-heatmap.d.ts +25 -101
- package/dist/types/vue-ui-hill.d.ts +22 -88
- package/dist/types/vue-ui-history-plot.d.ts +30 -112
- package/dist/types/vue-ui-horizontal-bar.d.ts +30 -114
- package/dist/types/vue-ui-icon.d.ts +1 -13
- package/dist/types/vue-ui-kpi.d.ts +5 -23
- package/dist/types/vue-ui-label.d.ts +11 -48
- package/dist/types/vue-ui-mini-loader.d.ts +4 -13
- package/dist/types/vue-ui-molecule.d.ts +27 -110
- package/dist/types/vue-ui-mood-radar.d.ts +23 -90
- package/dist/types/vue-ui-nested-donuts.d.ts +28 -109
- package/dist/types/vue-ui-onion.d.ts +26 -104
- package/dist/types/vue-ui-parallel-coordinate-plot.d.ts +34 -123
- package/dist/types/vue-ui-pattern-seed.d.ts +1 -14
- package/dist/types/vue-ui-pattern.d.ts +1 -13
- package/dist/types/vue-ui-quadrant.d.ts +33 -123
- package/dist/types/vue-ui-quick-chart.d.ts +30 -110
- package/dist/types/vue-ui-radar.d.ts +31 -114
- package/dist/types/vue-ui-rating.d.ts +8 -40
- package/dist/types/vue-ui-relation-circle.d.ts +26 -90
- package/dist/types/vue-ui-ridgeline.d.ts +27 -104
- package/dist/types/vue-ui-rings.d.ts +21 -96
- package/dist/types/vue-ui-scatter.d.ts +22 -95
- package/dist/types/vue-ui-skeleton.d.ts +2 -10
- package/dist/types/vue-ui-smiley.d.ts +6 -26
- package/dist/types/vue-ui-spark-trend.d.ts +2 -18
- package/dist/types/vue-ui-sparkbar.d.ts +10 -47
- package/dist/types/vue-ui-sparkgauge.d.ts +5 -26
- package/dist/types/vue-ui-sparkhistogram.d.ts +12 -44
- package/dist/types/vue-ui-sparkline.d.ts +16 -61
- package/dist/types/vue-ui-sparkstackbar.d.ts +13 -58
- package/dist/types/vue-ui-stackbar.d.ts +36 -130
- package/dist/types/vue-ui-stackline.d.ts +29 -116
- package/dist/types/vue-ui-strip-plot.d.ts +22 -96
- package/dist/types/vue-ui-table-heatmap.d.ts +14 -60
- package/dist/types/vue-ui-table-sparkline.d.ts +12 -51
- package/dist/types/vue-ui-table.d.ts +9 -36
- package/dist/types/vue-ui-thermometer.d.ts +14 -68
- package/dist/types/vue-ui-timer.d.ts +10 -47
- package/dist/types/vue-ui-tiremarks.d.ts +14 -68
- package/dist/types/vue-ui-treemap.d.ts +26 -105
- package/dist/types/vue-ui-vertical-bar.d.ts +8 -19
- package/dist/types/vue-ui-waffle.d.ts +23 -99
- package/dist/types/vue-ui-wheel.d.ts +14 -68
- package/dist/types/vue-ui-word-cloud.d.ts +20 -95
- package/dist/types/vue-ui-world.d.ts +22 -96
- package/dist/types/vue-ui-xy-canvas.d.ts +24 -101
- package/dist/types/vue-ui-xy.d.ts +42 -146
- package/dist/unpackTheme-CNsFKCeq.js +1 -0
- package/dist/useAutoSizeLabelsInsideViewbox-AIRF0PlD.js +1 -0
- package/dist/useChartAccessibility-DOMuYJfm.js +1 -0
- package/dist/useChartExport-DtPNpc9M.js +1 -0
- package/dist/useConfig-CKdzPrcf.js +1 -0
- package/dist/useFitSvgText-C1QC4P5G.js +1 -0
- package/dist/useHints-BH9r_0Vd.js +6 -0
- package/dist/useNestedProp-CB186vF2.js +1 -0
- package/dist/useObjectBindings-Dse7YyAf.js +1 -0
- package/dist/usePanZoom-BdjP5Suc.js +1 -0
- package/dist/usePrefersMotion-XLHwega2.js +1 -0
- package/dist/usePrinter-hLW3cv4N.js +1 -0
- package/dist/useResponsive-D2CPcpda.js +1 -0
- package/dist/useStableElementSize-CegFbRlF.js +1 -0
- package/dist/useTableResponsive-uSz_qZOB.js +1 -0
- package/dist/useThemeCheck-BKNRbGeC.js +1 -0
- package/dist/useTimeLabelCollider-XQf_S7-z.js +1 -0
- package/dist/useTimeLabels-Das5O74F.js +1 -0
- package/dist/useTooltipPosition-aoV8pZZ9.js +1 -0
- package/dist/useTransitions-DfSHzsdz.js +1 -0
- package/dist/useUserOptionState-CXlFnwPv.js +1 -0
- package/dist/userOptionsSlots-DYuo-E5m.js +1 -0
- package/dist/utils.js +1 -30
- package/dist/vClickOutside-BxNzkY17.js +1 -0
- package/dist/vue-data-ui-DyYgLIZN.js +1 -0
- package/dist/vue-data-ui.js +1 -79
- package/dist/vue-ui-3d-bar-BZAoyWkc.js +19 -0
- package/dist/vue-ui-accordion-BNvevckx.js +1 -0
- package/dist/vue-ui-age-pyramid-DkA6vpU3.js +1 -0
- package/dist/vue-ui-annotator-DuQME4Hh.js +331 -0
- package/dist/vue-ui-bullet-BVs8JX8S.js +34 -0
- package/dist/vue-ui-bump-DYdm3EvF.js +10 -0
- package/dist/vue-ui-candlestick-DZgxl4mW.js +22 -0
- package/dist/vue-ui-carousel-table-BB7DsTUt.js +1 -0
- package/dist/vue-ui-chestnut-Bo1h5rBt.js +1 -0
- package/dist/vue-ui-chord-B6_veyvO.js +21 -0
- package/dist/vue-ui-circle-pack-Bm7e2YNh.js +13 -0
- package/dist/vue-ui-cursor-TidZDuSh.js +1 -0
- package/dist/vue-ui-dag-BiN_AnLo.js +9 -0
- package/dist/vue-ui-dashboard-zepAVN_W.js +1 -0
- package/dist/vue-ui-digits-CXKKmfGj.js +42 -0
- package/dist/vue-ui-donut-CKkBtyPK.js +22 -0
- package/dist/vue-ui-donut-DLDUpjDU.js +47 -0
- package/dist/vue-ui-donut-evolution-BxMTdE5G.js +2 -0
- package/dist/vue-ui-dumbbell-C8rNwdz0.js +9 -0
- package/dist/vue-ui-flow-Dru76A2O.js +3 -0
- package/dist/vue-ui-funnel-D_u1h5S9.js +1 -0
- package/dist/vue-ui-galaxy-sBEH18Xj.js +1 -0
- package/dist/vue-ui-gauge-Do3RN8ne.js +1 -0
- package/dist/vue-ui-geo-DDbtx_iJ.js +1 -0
- package/dist/vue-ui-gizmo-eic6xLjB.js +1 -0
- package/dist/vue-ui-heatmap-DlmJRsM8.js +1 -0
- package/dist/vue-ui-hill-C5oiuIXh.js +1 -0
- package/dist/vue-ui-history-plot-BJjnkWcT.js +2 -0
- package/dist/vue-ui-horizontal-bar-BRDBJEl1.js +4 -0
- package/dist/vue-ui-kpi-C-eed3jO.js +1 -0
- package/dist/vue-ui-label-B4pkXBxc.js +7 -0
- package/dist/vue-ui-mini-loader-CElmv_iF.js +1 -0
- package/dist/vue-ui-molecule-BeyQWZU9.js +1 -0
- package/dist/vue-ui-mood-radar-Bh0kHfiZ.js +1 -0
- package/dist/vue-ui-nested-donuts-FlnJfDaF.js +19 -0
- package/dist/vue-ui-onion-BjhSpjtW.js +5 -0
- package/dist/vue-ui-parallel-coordinate-plot-CHV6XDti.js +9 -0
- package/dist/vue-ui-pattern-DrPCu32G.js +1 -0
- package/dist/vue-ui-pattern-seed-B8YjAAEH.js +1 -0
- package/dist/vue-ui-quadrant-BaKSTJDv.js +2 -0
- package/dist/vue-ui-quick-chart-Nc2mVlle.js +17 -0
- package/dist/vue-ui-radar-BzUfkLlC.js +1 -0
- package/dist/vue-ui-rating-BwWXvbAg.js +1 -0
- package/dist/vue-ui-relation-circle-nAZEg-BL.js +1 -0
- package/dist/vue-ui-ridgeline-DxLZg1E2.js +2 -0
- package/dist/vue-ui-rings-BOti0NGb.js +1 -0
- package/dist/vue-ui-scatter-CCNMggyo.js +9 -0
- package/dist/vue-ui-skeleton-DI7pcimU.js +41 -0
- package/dist/vue-ui-smiley-D70sJZWl.js +1 -0
- package/dist/vue-ui-spark-trend-BVtfEalS.js +1 -0
- package/dist/vue-ui-sparkbar-CdsLI7Ke.js +1 -0
- package/dist/vue-ui-sparkgauge-wmj5Wnnp.js +1 -0
- package/dist/vue-ui-sparkhistogram-D8S_P_P4.js +1 -0
- package/dist/vue-ui-sparkline-BjsJnS_9.js +1 -0
- package/dist/vue-ui-sparkstackbar-ZN8LXzoV.js +1 -0
- package/dist/vue-ui-stackbar-Dx_EN3pT.js +29 -0
- package/dist/vue-ui-stackline-DW-oxJvA.js +39 -0
- package/dist/vue-ui-strip-plot-D7kjJ3Qh.js +2 -0
- package/dist/vue-ui-table-CaFVLHxE.js +14 -0
- package/dist/vue-ui-table-heatmap-Ctf7Rhqo.js +1 -0
- package/dist/vue-ui-table-sparkline-C0I0cXBS.js +1 -0
- package/dist/vue-ui-thermometer-B6og15Al.js +1 -0
- package/dist/vue-ui-timer-DgXvO2Q7.js +64 -0
- package/dist/vue-ui-tiremarks-Dh6fZ454.js +1 -0
- package/dist/vue-ui-treemap-7JuvN6P_.js +1 -0
- package/dist/vue-ui-waffle-BqvGzfse.js +1 -0
- package/dist/vue-ui-wheel-SdwJqKA7.js +1 -0
- package/dist/vue-ui-word-cloud-1WVV_k12.js +4 -0
- package/dist/vue-ui-world-DjMy_utm.js +19 -0
- package/dist/vue-ui-xy-DaozHMfg.js +31 -0
- package/dist/vue-ui-xy-canvas-CegvS9RR.js +9 -0
- package/dist/vue-ui-xy-rGHSI1am.js +24 -0
- package/dist/vue_ui_3d_bar-DmAve5Ri.js +1 -0
- package/dist/vue_ui_age_pyramid-CL0Ef8Ov.js +1 -0
- package/dist/vue_ui_bullet-CwVYkpjd.js +1 -0
- package/dist/vue_ui_bump-KJL9GYr4.js +1 -0
- package/dist/vue_ui_candlestick-DKvha_Ab.js +1 -0
- package/dist/vue_ui_chestnut-BxxivKN7.js +1 -0
- package/dist/vue_ui_chord-Fq6VBRT1.js +1 -0
- package/dist/vue_ui_circle_pack-CfXkXi7v.js +1 -0
- package/dist/vue_ui_dag-1b_dLSym.js +1 -0
- package/dist/vue_ui_donut-T5PeOqvf.js +1 -0
- package/dist/vue_ui_donut_evolution-CVoh3twl.js +1 -0
- package/dist/vue_ui_dumbbell-BMcxK0N3.js +1 -0
- package/dist/vue_ui_flow-kvV56Es9.js +1 -0
- package/dist/vue_ui_funnel-CaEV5hG7.js +1 -0
- package/dist/vue_ui_galaxy-B94QInxc.js +1 -0
- package/dist/vue_ui_gauge-BJhb6yqE.js +1 -0
- package/dist/vue_ui_geo-DL1SMQHp.js +1 -0
- package/dist/vue_ui_heatmap-kh5NMmwf.js +1 -0
- package/dist/vue_ui_hill-DQi4pQCG.js +1 -0
- package/dist/vue_ui_history_plot-soyqUW4Y.js +1 -0
- package/dist/vue_ui_horizontal_bar-C4ulIxeT.js +1 -0
- package/dist/vue_ui_label-dtPqyFsj.js +1 -0
- package/dist/vue_ui_molecule-Bw1UW1Na.js +1 -0
- package/dist/vue_ui_mood_radar-CXaBdJnv.js +1 -0
- package/dist/vue_ui_nested_donuts-CRtGsJcz.js +1 -0
- package/dist/vue_ui_onion-C9BedU_-.js +1 -0
- package/dist/vue_ui_parallel_coordinate_plot-Cs_xXAG5.js +1 -0
- package/dist/vue_ui_quadrant-BUv-SqzP.js +1 -0
- package/dist/vue_ui_quick_chart-BRfcRW6Z.js +1 -0
- package/dist/vue_ui_radar-68iK9Fam.js +1 -0
- package/dist/vue_ui_relation_circle-Dkv-cSB6.js +1 -0
- package/dist/vue_ui_ridgeline-Di26JtQu.js +1 -0
- package/dist/vue_ui_rings-BcDDXHpQ.js +1 -0
- package/dist/vue_ui_scatter-C50uFYQL.js +1 -0
- package/dist/vue_ui_spark_trend-BOM3zo64.js +1 -0
- package/dist/vue_ui_sparkbar-Bpx7QrFq.js +1 -0
- package/dist/vue_ui_sparkgauge-D2Hk6bvS.js +1 -0
- package/dist/vue_ui_sparkhistogram-ChwOkoMb.js +1 -0
- package/dist/vue_ui_sparkline-CvL_e9L8.js +1 -0
- package/dist/vue_ui_sparkstackbar-Chtog7hC.js +1 -0
- package/dist/vue_ui_stackbar-BkBIi_bL.js +1 -0
- package/dist/vue_ui_stackline-D7b63K84.js +1 -0
- package/dist/vue_ui_strip_plot-CwMowrhT.js +1 -0
- package/dist/vue_ui_table_heatmap-vfeY6r97.js +1 -0
- package/dist/vue_ui_table_sparkline-Dlfbza49.js +1 -0
- package/dist/vue_ui_thermometer-CRijq6H6.js +1 -0
- package/dist/vue_ui_tiremarks-8HFfABNF.js +1 -0
- package/dist/vue_ui_treemap-Bv4Rdl5_.js +1 -0
- package/dist/vue_ui_vertical_bar-BLyflvlz.js +1 -0
- package/dist/vue_ui_waffle-BbBLSluB.js +1 -0
- package/dist/vue_ui_wheel-C-479bvJ.js +1 -0
- package/dist/vue_ui_word_cloud-DBiJtSyL.js +1 -0
- package/dist/vue_ui_xy-CJBM9F6W.js +1 -0
- package/dist/vue_ui_xy_canvas-CT-FN9rU.js +1 -0
- package/package.json +2 -2
- package/dist/A11yDataTable-DdRsVULz.js +0 -45
- package/dist/Arrow-DKO1l8oR.js +0 -116
- package/dist/BaseDraggableDialog-C50TEJFv.js +0 -272
- package/dist/BaseIcon-Cx9FD751.js +0 -484
- package/dist/BaseLegendToggle-CP3sddwv.js +0 -56
- package/dist/BaseScanner-Dzc8VT3j.js +0 -30
- package/dist/BaseZoomControls-vNi8YykO.js +0 -111
- package/dist/ColorPicker-hmC2bvwS.js +0 -257
- package/dist/DataTable-CjF_An2h.js +0 -150
- package/dist/DefGrad-DVBqDjhO.js +0 -48
- package/dist/HillActions-DqqGB33u.js +0 -187
- package/dist/Legend-CulFgjUY.js +0 -156
- package/dist/NonSvgPenAndPaper-BK1v_MfW.js +0 -577
- package/dist/PackageVersion-D7H9nfK0.js +0 -12
- package/dist/PenAndPaper-CNiuGw6k.js +0 -906
- package/dist/RecursiveCircles-D6aDPmoe.js +0 -117
- package/dist/RecursiveLabels-D9rfID6q.js +0 -56
- package/dist/RecursiveLinks-BygcpDiT.js +0 -78
- package/dist/Shape-DSwamtmO.js +0 -143
- package/dist/SlicerPreview-k5YerMA9.js +0 -1730
- package/dist/SparkTooltip-D35KVv6N.js +0 -93
- package/dist/Title-BMCuINbv.js +0 -87
- package/dist/Tooltip-C4ZTwkLF.js +0 -312
- package/dist/UserOptions-CORYQiif.js +0 -1412
- package/dist/_plugin-vue_export-helper-B3ysoDQm.js +0 -8
- package/dist/dom-to-png-CBusMkua.js +0 -237
- package/dist/exposedLib-UNxZlnAS.js +0 -28
- package/dist/geoProjections-BYthUA8l.js +0 -302
- package/dist/img-Bb5rHcpO.js +0 -129
- package/dist/labelUtils-Ccn9kK7T.js +0 -19
- package/dist/lib-D4wK6ljP.js +0 -2146
- package/dist/package-DmQufM0G.js +0 -4
- package/dist/patternUtils-CS7hn6at.js +0 -258
- package/dist/pdf-BzIQHx-F.js +0 -90
- package/dist/render-common-BtfjXdkJ.js +0 -152
- package/dist/rolldown-runtime-Dy4uBu1J.js +0 -11
- package/dist/useAutoSizeLabelsInsideViewbox-DvDwcwi_.js +0 -122
- package/dist/useChartAccessibility-DYqac8yF.js +0 -12
- package/dist/useChartExport-iwOqiIWX.js +0 -803
- package/dist/useConfig-D_6ZrPMD.js +0 -8090
- package/dist/useFitSvgText-CXTzBplU.js +0 -65
- package/dist/useHints-Dq_w2E8B.js +0 -66
- package/dist/useNestedProp-DR_8JPol.js +0 -12
- package/dist/useObjectBindings-DvasYMGu.js +0 -191
- package/dist/usePanZoom-CYU3B4T3.js +0 -157
- package/dist/usePrefersMotion-BC-CsqR1.js +0 -15
- package/dist/usePrinter-DdW2GSm0.js +0 -49
- package/dist/useResponsive-ZtArZtUf.js +0 -97
- package/dist/useStableElementSize-C7KADDKj.js +0 -77
- package/dist/useTableResponsive-BAqJPR68.js +0 -25
- package/dist/useThemeCheck-C43Tcqmk.js +0 -24
- package/dist/useTimeLabelCollider-AEcY4Ioe.js +0 -57
- package/dist/useTimeLabels-d2f-W1L4.js +0 -270
- package/dist/useTooltipPosition-BCrtQa9H.js +0 -189
- package/dist/useTransitions-g_zBREk2.js +0 -39
- package/dist/useUserOptionState-DK-_1ddE.js +0 -15
- package/dist/vClickOutside-DUrZWttG.js +0 -13
- package/dist/vue-data-ui-Df7WV80w.js +0 -191
- package/dist/vue-ui-3d-bar-CJjNPwhG.js +0 -1831
- package/dist/vue-ui-accordion-CaoNWreI.js +0 -81
- package/dist/vue-ui-age-pyramid-BYcM0uIP.js +0 -1305
- package/dist/vue-ui-annotator-BmqjDjRF.js +0 -3325
- package/dist/vue-ui-bullet-DBOAvpBB.js +0 -702
- package/dist/vue-ui-bump-rPYwDJ4o.js +0 -1242
- package/dist/vue-ui-candlestick-WQHIQNv_.js +0 -2144
- package/dist/vue-ui-carousel-table-Dojcvt49.js +0 -467
- package/dist/vue-ui-chestnut-BdhEByUf.js +0 -2016
- package/dist/vue-ui-chord-MF4xF5az.js +0 -1347
- package/dist/vue-ui-circle-pack-BwDim7G8.js +0 -1647
- package/dist/vue-ui-cursor-w_5cbpSb.js +0 -283
- package/dist/vue-ui-dag-D2EUqeDN.js +0 -2931
- package/dist/vue-ui-dashboard-BLnVXosj.js +0 -522
- package/dist/vue-ui-digits-zSqwYWHm.js +0 -217
- package/dist/vue-ui-donut-ZYZfqIhi.js +0 -974
- package/dist/vue-ui-donut-evolution-DtLbWi3h.js +0 -1869
- package/dist/vue-ui-donut-nLDLZwig.js +0 -2427
- package/dist/vue-ui-dumbbell-Qgn3wRyI.js +0 -1533
- package/dist/vue-ui-flow-iSH6dyGw.js +0 -1229
- package/dist/vue-ui-funnel-Cc2z2zS5.js +0 -749
- package/dist/vue-ui-galaxy-GhuBSU0o.js +0 -1097
- package/dist/vue-ui-gauge-BAjBO13a.js +0 -934
- package/dist/vue-ui-geo-mwTtvIHY.js +0 -1495
- package/dist/vue-ui-gizmo-B5vOOrZX.js +0 -238
- package/dist/vue-ui-heatmap-fimkY1nN.js +0 -1613
- package/dist/vue-ui-hill-DPfTt3UE.js +0 -1747
- package/dist/vue-ui-history-plot-B1WgzqTb.js +0 -1710
- package/dist/vue-ui-horizontal-bar-Bkp5HQdt.js +0 -1723
- package/dist/vue-ui-kpi-D-p0CSQh.js +0 -104
- package/dist/vue-ui-label-r3-QloJL.js +0 -1451
- package/dist/vue-ui-mini-loader-CnrBGAtM.js +0 -133
- package/dist/vue-ui-molecule-BhdAYX_H.js +0 -941
- package/dist/vue-ui-mood-radar-CdlnPrQf.js +0 -1111
- package/dist/vue-ui-nested-donuts-DceVEyUc.js +0 -1515
- package/dist/vue-ui-onion-_L0uEATI.js +0 -1247
- package/dist/vue-ui-parallel-coordinate-plot-CbXwIM47.js +0 -1444
- package/dist/vue-ui-pattern-DKozfnVn.js +0 -154
- package/dist/vue-ui-pattern-seed-BB1honLm.js +0 -61
- package/dist/vue-ui-quadrant-CDDFLRcX.js +0 -1979
- package/dist/vue-ui-quick-chart-Dom257hl.js +0 -2775
- package/dist/vue-ui-radar-BLdri1bA.js +0 -1386
- package/dist/vue-ui-rating-C_iTttXB.js +0 -359
- package/dist/vue-ui-relation-circle-BmxTSgjd.js +0 -905
- package/dist/vue-ui-ridgeline-CsUrcVmL.js +0 -1630
- package/dist/vue-ui-rings-D_GPkgbD.js +0 -1264
- package/dist/vue-ui-scatter-D_C-IhnW.js +0 -2418
- package/dist/vue-ui-skeleton-t7e6KEZ2.js +0 -2567
- package/dist/vue-ui-smiley-Dl95YWVo.js +0 -376
- package/dist/vue-ui-spark-trend-pkZA7u5V.js +0 -457
- package/dist/vue-ui-sparkbar-Ds7OJjhG.js +0 -401
- package/dist/vue-ui-sparkgauge-US1M88qc.js +0 -268
- package/dist/vue-ui-sparkhistogram-FISVpSvv.js +0 -589
- package/dist/vue-ui-sparkline-DvE1dHcs.js +0 -2067
- package/dist/vue-ui-sparkstackbar-CWtF9eG-.js +0 -750
- package/dist/vue-ui-stackbar-fMgrHzZe.js +0 -3273
- package/dist/vue-ui-stackline-CSMuUup2.js +0 -2829
- package/dist/vue-ui-strip-plot-TGD2UFHS.js +0 -1752
- package/dist/vue-ui-table-BCEIbg8-.js +0 -1352
- package/dist/vue-ui-table-heatmap-CvUcFWMf.js +0 -363
- package/dist/vue-ui-table-sparkline-CoVQ1qGY.js +0 -738
- package/dist/vue-ui-thermometer-BYFAZCzh.js +0 -758
- package/dist/vue-ui-timer-BKr8RVnn.js +0 -451
- package/dist/vue-ui-tiremarks-BYu3cEoy.js +0 -540
- package/dist/vue-ui-treemap-BR3rX5_L.js +0 -1745
- package/dist/vue-ui-waffle-mP8g5aQk.js +0 -1633
- package/dist/vue-ui-wheel-CZsSO2R6.js +0 -873
- package/dist/vue-ui-word-cloud-CJ30onqy.js +0 -1723
- package/dist/vue-ui-world-BZ09DOiF.js +0 -3021
- package/dist/vue-ui-xy-C3h54loZ.js +0 -1387
- package/dist/vue-ui-xy-canvas-BwgK8drp.js +0 -2151
- package/dist/vue-ui-xy-jemv5dsf.js +0 -5777
- package/dist/vue_ui_3d_bar-C4R7o-yX.js +0 -185
- package/dist/vue_ui_age_pyramid-B2R66DgQ.js +0 -310
- package/dist/vue_ui_bullet-ClzdLoOv.js +0 -186
- package/dist/vue_ui_bump-Vl-zYAtG.js +0 -201
- package/dist/vue_ui_candlestick-BXSQY82k.js +0 -461
- package/dist/vue_ui_chestnut-D2oUhad6.js +0 -305
- package/dist/vue_ui_chord-DPfS1Umc.js +0 -275
- package/dist/vue_ui_circle_pack-DZC_rdfn.js +0 -172
- package/dist/vue_ui_dag-TsJ_azQq.js +0 -258
- package/dist/vue_ui_donut-BDGqG07h.js +0 -358
- package/dist/vue_ui_donut_evolution-C6951a2f.js +0 -745
- package/dist/vue_ui_dumbbell-Bfe_jFyi.js +0 -304
- package/dist/vue_ui_flow-BewZjjKG.js +0 -238
- package/dist/vue_ui_funnel-_Og4EEkO.js +0 -234
- package/dist/vue_ui_galaxy-Ig0cc1_h.js +0 -265
- package/dist/vue_ui_gauge-Cf1RZc9q.js +0 -178
- package/dist/vue_ui_geo-B8TODs-G.js +0 -248
- package/dist/vue_ui_heatmap-B2BBBSWG.js +0 -319
- package/dist/vue_ui_hill-dnltu0L-.js +0 -368
- package/dist/vue_ui_history_plot-CuN63VEc.js +0 -413
- package/dist/vue_ui_horizontal_bar-C4J4QzXf.js +0 -341
- package/dist/vue_ui_label-B0QoxQrJ.js +0 -115
- package/dist/vue_ui_molecule-CO9L59SF.js +0 -231
- package/dist/vue_ui_mood_radar-BA6LAKhk.js +0 -281
- package/dist/vue_ui_nested_donuts-B8csIoVO.js +0 -273
- package/dist/vue_ui_onion-1FTFFS46.js +0 -293
- package/dist/vue_ui_parallel_coordinate_plot-CBiOBira.js +0 -278
- package/dist/vue_ui_quadrant-CDSTKTJz.js +0 -428
- package/dist/vue_ui_quick_chart-DByCqSYE.js +0 -180
- package/dist/vue_ui_radar-jafTED5j.js +0 -306
- package/dist/vue_ui_relation_circle-D0p4mXmv.js +0 -98
- package/dist/vue_ui_ridgeline-VM8_mx4J.js +0 -767
- package/dist/vue_ui_rings-BVgD2aMn.js +0 -320
- package/dist/vue_ui_scatter-I0POnicu.js +0 -479
- package/dist/vue_ui_spark_trend-DxVmpkmC.js +0 -82
- package/dist/vue_ui_sparkbar-z6qO--Kf.js +0 -64
- package/dist/vue_ui_sparkgauge-BX1MS3bA.js +0 -90
- package/dist/vue_ui_sparkhistogram-BRgvKUH6.js +0 -123
- package/dist/vue_ui_sparkline-b9pEUyGF.js +0 -183
- package/dist/vue_ui_sparkstackbar-BOjuQnZd.js +0 -175
- package/dist/vue_ui_stackbar-yQyvT4Su.js +0 -537
- package/dist/vue_ui_stackline-Bh0RuInt.js +0 -539
- package/dist/vue_ui_strip_plot-BaHbnnwN.js +0 -308
- package/dist/vue_ui_table_heatmap-w8vx5k6f.js +0 -80
- package/dist/vue_ui_table_sparkline-DAbkUrNz.js +0 -124
- package/dist/vue_ui_thermometer-DxgqWKlE.js +0 -123
- package/dist/vue_ui_tiremarks-CdEPieWV.js +0 -122
- package/dist/vue_ui_treemap-DoEtkRN6.js +0 -328
- package/dist/vue_ui_vertical_bar-CP-MKz1j.js +0 -247
- package/dist/vue_ui_waffle-DE_DiSVP.js +0 -299
- package/dist/vue_ui_wheel-DZ_nR--t.js +0 -133
- package/dist/vue_ui_word_cloud-C-qIMNLu.js +0 -254
- package/dist/vue_ui_xy-CcJADijP.js +0 -614
- package/dist/vue_ui_xy_canvas-DrNSzYWq.js +0 -487
|
@@ -1,1451 +0,0 @@
|
|
|
1
|
-
import { t as e } from "./rolldown-runtime-Dy4uBu1J.js";
|
|
2
|
-
import { X as t, kt as n, x as r } from "./lib-D4wK6ljP.js";
|
|
3
|
-
import { t as i } from "./useConfig-D_6ZrPMD.js";
|
|
4
|
-
import { t as a } from "./useNestedProp-DR_8JPol.js";
|
|
5
|
-
import { t as o } from "./useThemeCheck-C43Tcqmk.js";
|
|
6
|
-
import { t as s } from "./Shape-DSwamtmO.js";
|
|
7
|
-
import { t as c } from "./_plugin-vue_export-helper-B3ysoDQm.js";
|
|
8
|
-
import { t as l } from "./vue_ui_label-B0QoxQrJ.js";
|
|
9
|
-
import { Fragment as u, computed as d, createBlock as f, createCommentVNode as p, createElementBlock as m, createElementVNode as ee, getCurrentInstance as te, guardReactiveProps as ne, nextTick as h, normalizeClass as re, normalizeProps as ie, normalizeStyle as ae, onBeforeUnmount as oe, onMounted as se, openBlock as g, ref as _, renderList as ce, renderSlot as le, toDisplayString as ue, unref as de, useTemplateRef as v, watch as fe, withModifiers as pe } from "vue";
|
|
10
|
-
//#region src/components/vue-ui-label.vue
|
|
11
|
-
var me = /* @__PURE__ */ e({ default: () => D }), he = [
|
|
12
|
-
"d",
|
|
13
|
-
"stroke",
|
|
14
|
-
"stroke-width",
|
|
15
|
-
"stroke-dasharray"
|
|
16
|
-
], ge = [
|
|
17
|
-
"cx",
|
|
18
|
-
"cy",
|
|
19
|
-
"r",
|
|
20
|
-
"fill",
|
|
21
|
-
"stroke",
|
|
22
|
-
"stroke-width"
|
|
23
|
-
], _e = [
|
|
24
|
-
"id",
|
|
25
|
-
"data-position",
|
|
26
|
-
"data-overflow",
|
|
27
|
-
"data-overlap",
|
|
28
|
-
"data-target-x",
|
|
29
|
-
"data-target-y",
|
|
30
|
-
"data-box-position-x",
|
|
31
|
-
"data-box-position-y",
|
|
32
|
-
"data-link-length",
|
|
33
|
-
"data-box-show",
|
|
34
|
-
"data-box-max-width",
|
|
35
|
-
"data-box-padding-top",
|
|
36
|
-
"data-box-padding-right",
|
|
37
|
-
"data-box-padding-bottom",
|
|
38
|
-
"data-box-padding-left",
|
|
39
|
-
"data-drag-enabled",
|
|
40
|
-
"data-drag-handle-position",
|
|
41
|
-
"data-drag-handle-size"
|
|
42
|
-
], ve = [
|
|
43
|
-
"x",
|
|
44
|
-
"y",
|
|
45
|
-
"width",
|
|
46
|
-
"height",
|
|
47
|
-
"rx",
|
|
48
|
-
"fill",
|
|
49
|
-
"stroke",
|
|
50
|
-
"stroke-width"
|
|
51
|
-
], ye = [
|
|
52
|
-
"x",
|
|
53
|
-
"y",
|
|
54
|
-
"width",
|
|
55
|
-
"height",
|
|
56
|
-
"rx",
|
|
57
|
-
"aria-label"
|
|
58
|
-
], be = [
|
|
59
|
-
"font-size",
|
|
60
|
-
"font-weight",
|
|
61
|
-
"text-anchor",
|
|
62
|
-
"fill"
|
|
63
|
-
], xe = ["x", "y"], Se = [
|
|
64
|
-
"font-size",
|
|
65
|
-
"font-weight",
|
|
66
|
-
"text-anchor",
|
|
67
|
-
"fill"
|
|
68
|
-
], Ce = ["x", "y"], we = ["aria-label"], Te = [
|
|
69
|
-
"x",
|
|
70
|
-
"y",
|
|
71
|
-
"width",
|
|
72
|
-
"height"
|
|
73
|
-
], Ee = [
|
|
74
|
-
"x",
|
|
75
|
-
"y",
|
|
76
|
-
"width",
|
|
77
|
-
"height",
|
|
78
|
-
"rx"
|
|
79
|
-
], De = [
|
|
80
|
-
"d",
|
|
81
|
-
"stroke",
|
|
82
|
-
"stroke-width"
|
|
83
|
-
], Oe = [
|
|
84
|
-
"d",
|
|
85
|
-
"stroke",
|
|
86
|
-
"stroke-width",
|
|
87
|
-
"opacity"
|
|
88
|
-
], ke = 8, y = 4, Ae = 12, je = 24, Me = 1, Ne = 10, b = "__vueUiLabelLayoutOrder", Pe = "__vueUiLabelNextLayoutOrder", x = "__vueUiLabelLayoutRaf", Fe = "__vueUiLabelSetLayoutRect", Ie = "__vueUiLabelMeasureElement", Le = "__vueUiLabelEmitDragEnd", S = "__vueUiLabelPersistedOffset", C = "__vueUiLabelDragRequestedOffset", w = "__vueUiLabelDragging", Re = "__vueUiLabelDragPriority", ze = "__vueUiLabelNextDragPriority", Be = "__vueUiLabelLastLayoutRect", T = "__vueUiLabelLastLayoutOffset", E = "__vueUiLabelDisplacedLabels", D = /*#__PURE__*/ c({
|
|
89
|
-
__name: "vue-ui-label",
|
|
90
|
-
props: {
|
|
91
|
-
dataset: {
|
|
92
|
-
type: Object,
|
|
93
|
-
default() {
|
|
94
|
-
return {
|
|
95
|
-
x: null,
|
|
96
|
-
y: null,
|
|
97
|
-
position: {
|
|
98
|
-
x: null,
|
|
99
|
-
y: null
|
|
100
|
-
}
|
|
101
|
-
};
|
|
102
|
-
}
|
|
103
|
-
},
|
|
104
|
-
config: {
|
|
105
|
-
type: Object,
|
|
106
|
-
default() {
|
|
107
|
-
return {};
|
|
108
|
-
}
|
|
109
|
-
}
|
|
110
|
-
},
|
|
111
|
-
emits: [
|
|
112
|
-
"dragStart",
|
|
113
|
-
"drag",
|
|
114
|
-
"dragEnd",
|
|
115
|
-
"click",
|
|
116
|
-
"mouseenter",
|
|
117
|
-
"mouseleave",
|
|
118
|
-
"focus",
|
|
119
|
-
"blur"
|
|
120
|
-
],
|
|
121
|
-
setup(e, { expose: c, emit: me }) {
|
|
122
|
-
let D = e, O = me, { vue_ui_label: Ve } = i(), { isThemeValid: He, warnInvalidTheme: Ue } = o();
|
|
123
|
-
function We() {
|
|
124
|
-
let e = a({
|
|
125
|
-
userConfig: D.config,
|
|
126
|
-
defaultConfig: Ve
|
|
127
|
-
}), t = {}, n = e.theme;
|
|
128
|
-
return n ? He.value(e) ? t = a({
|
|
129
|
-
userConfig: l[n] || D.config,
|
|
130
|
-
defaultConfig: e
|
|
131
|
-
}) : (Ue(e), t = e) : t = e, t;
|
|
132
|
-
}
|
|
133
|
-
let k = d(() => We()), Ge = te(), Ke = t(), qe = v("wrapperRef"), A = v("labelRef"), Je = v("contentRef"), Ye = v("boxRef"), Xe = v("titleTextRef"), Ze = v("contentTextRef"), j = _(null), M = _(null), N = _(null), P = _({
|
|
134
|
-
x: 0,
|
|
135
|
-
y: 0
|
|
136
|
-
}), Qe = _(!1), F = _(!1), $e = _("pointer"), et = d(() => k.value.title.fontSize), tt = d(() => k.value.title.lineHeight), nt = d(() => k.value.content.fontSize), rt = d(() => k.value.content.lineHeight), it = d(() => k.value.title.gap), at = d(() => k.value.drag.handleWidth), ot = d(() => k.value.collisionGap), st = null, ct = null, I = null, L = {
|
|
137
|
-
inputType: null,
|
|
138
|
-
touchId: null,
|
|
139
|
-
startPointer: null,
|
|
140
|
-
startOffset: null,
|
|
141
|
-
lastRequestedOffset: null
|
|
142
|
-
}, lt = d(() => ({
|
|
143
|
-
x: D.dataset?.x ?? null,
|
|
144
|
-
y: D.dataset?.y ?? null
|
|
145
|
-
})), R = d(() => n(lt.value.x) && n(lt.value.y)), z = d(() => Number(lt.value.x)), B = d(() => Number(lt.value.y)), V = d(() => k.value.link), H = d(() => k.value.box), ut = d(() => k.value.drag), U = d(() => k.value.title.marker), dt = d(() => k.value.overlap === !0), W = d(() => ut.value?.enable === !0), ft = d(() => !!(Ge?.vnode?.props ?? {}).onClick), pt = d(() => ft.value), mt = d(() => [String(k.value.title?.text ?? "").trim(), String(k.value.content?.text ?? "").trim()].filter(Boolean).join(", ") || "Label"), ht = d(() => `Move ${mt.value}`), gt = `label_${Ke}_drag_instructions`, _t = d(() => k.value.a11y.translations.keyboardNavigation), vt = d(() => n(ut.value?.iconSize) ? Math.max(0, Number(ut.value.iconSize)) : 0), yt = d(() => vt.value * .15), bt = d(() => {
|
|
146
|
-
let e = ut.value?.handlePosition;
|
|
147
|
-
return [
|
|
148
|
-
"left",
|
|
149
|
-
"right",
|
|
150
|
-
"top",
|
|
151
|
-
"bottom"
|
|
152
|
-
].includes(e) ? e : "left";
|
|
153
|
-
}), xt = d(() => {
|
|
154
|
-
let e = D.dataset?.position;
|
|
155
|
-
return !e || !n(e.x) || !n(e.y) ? null : {
|
|
156
|
-
x: Number(e.x),
|
|
157
|
-
y: Number(e.y)
|
|
158
|
-
};
|
|
159
|
-
}), St = d(() => Qe.value ? null : xt.value), Ct = d(() => n(V.value.length) ? Math.max(0, Number(V.value.length)) : ke), wt = d(() => Hn(k.value.title.textAlign)), Tt = d(() => Hn(k.value.content.textAlign)), Et = d(() => Un(wt.value)), Dt = d(() => Un(Tt.value)), Ot = d(() => U.value?.color !== null && U.value?.color !== void 0 && String(k.value.title.text ?? "") !== ""), kt = d(() => Ot.value && n(U.value?.size) ? Math.max(0, Number(U.value.size)) : 0), At = d(() => kt.value / 2), jt = d(() => U.value?.beforeText !== !1), Mt = d(() => Ot.value && kt.value > 0 ? 6 : 0), Nt = d(() => kt.value > 0 ? kt.value + Mt.value : 0), G = d(() => {
|
|
160
|
-
let e = H.value.padding ?? {};
|
|
161
|
-
return {
|
|
162
|
-
top: n(e.top) ? Math.max(0, Number(e.top)) : 0,
|
|
163
|
-
right: n(e.right) ? Math.max(0, Number(e.right)) : 0,
|
|
164
|
-
bottom: n(e.bottom) ? Math.max(0, Number(e.bottom)) : 0,
|
|
165
|
-
left: n(e.left) ? Math.max(0, Number(e.left)) : 0
|
|
166
|
-
};
|
|
167
|
-
}), Pt = d(() => n(H.value.borderWidth) ? Math.max(0, Number(H.value.borderWidth)) : 0), Ft = d(() => n(H.value.borderRadius) ? Math.max(0, Number(H.value.borderRadius)) : 0), K = d(() => n(H.value.maxWidth) ? Math.max(0, Number(H.value.maxWidth)) : null), It = d(() => W.value && H.value.show ? at.value : 0), Lt = d(() => ["left", "right"].includes(bt.value)), Rt = d(() => {
|
|
168
|
-
if (!H.value.show || !n(K.value) || K.value <= 0) return null;
|
|
169
|
-
let e = Lt.value ? It.value : 0;
|
|
170
|
-
return Math.max(1, K.value - G.value.left - G.value.right - e);
|
|
171
|
-
}), zt = d(() => Rt.value ? Math.max(1, Rt.value - Nt.value) : null), q = d(() => {
|
|
172
|
-
if (!H.value.show || !N.value) return null;
|
|
173
|
-
let e = Pt.value / 2, t = Math.max(0, N.value.width - Pt.value), n = Math.max(0, N.value.height - Pt.value);
|
|
174
|
-
return {
|
|
175
|
-
x: N.value.x + e,
|
|
176
|
-
y: N.value.y + e,
|
|
177
|
-
width: t,
|
|
178
|
-
height: n,
|
|
179
|
-
rx: Math.min(Ft.value, t / 2, n / 2)
|
|
180
|
-
};
|
|
181
|
-
}), Bt = d(() => {
|
|
182
|
-
if (!W.value || !q.value) return null;
|
|
183
|
-
let e = bt.value, t = ["left", "right"].includes(e), n = Math.min(at.value, Math.max(0, t ? q.value.width : q.value.height));
|
|
184
|
-
if (n <= 0 || q.value.width <= 0 || q.value.height <= 0) return null;
|
|
185
|
-
let r = q.value.x, i = q.value.y, a = q.value.width, o = q.value.height, s = "", c = "";
|
|
186
|
-
if (e === "left" || e === "right") {
|
|
187
|
-
a = n, r = e === "left" ? q.value.x : q.value.x + q.value.width - n;
|
|
188
|
-
let t = e === "left" ? r + n : r, l = r + n / 2, u = i + o / 2;
|
|
189
|
-
s = `
|
|
190
|
-
M ${t} ${i}
|
|
191
|
-
V ${i + o}
|
|
192
|
-
`;
|
|
193
|
-
let d = vt.value, f = yt.value / 2, p = Math.max(0, d / 2 - f), m = d * .14;
|
|
194
|
-
c = [
|
|
195
|
-
-.7,
|
|
196
|
-
0,
|
|
197
|
-
.7
|
|
198
|
-
].flatMap((e) => {
|
|
199
|
-
let t = u + p * e;
|
|
200
|
-
return [`M ${l - m} ${t} h 0`, `M ${l + m} ${t} h 0`];
|
|
201
|
-
}).join(" ");
|
|
202
|
-
} else {
|
|
203
|
-
o = n, i = e === "top" ? q.value.y : q.value.y + q.value.height - n;
|
|
204
|
-
let t = e === "top" ? i + n : i, l = r + a / 2, u = i + n / 2;
|
|
205
|
-
s = `
|
|
206
|
-
M ${r} ${t}
|
|
207
|
-
H ${r + a}
|
|
208
|
-
`;
|
|
209
|
-
let d = vt.value, f = yt.value / 2, p = Math.max(0, d / 2 - f), m = d * .14;
|
|
210
|
-
c = [
|
|
211
|
-
-.7,
|
|
212
|
-
0,
|
|
213
|
-
.7
|
|
214
|
-
].flatMap((e) => {
|
|
215
|
-
let t = l + p * e;
|
|
216
|
-
return [`M ${t} ${u - m} h 0`, `M ${t} ${u + m} h 0`];
|
|
217
|
-
}).join(" ");
|
|
218
|
-
}
|
|
219
|
-
return {
|
|
220
|
-
x: r,
|
|
221
|
-
y: i,
|
|
222
|
-
width: a,
|
|
223
|
-
height: o,
|
|
224
|
-
separatorPath: s,
|
|
225
|
-
gripPath: c,
|
|
226
|
-
position: e
|
|
227
|
-
};
|
|
228
|
-
}), J = d(() => {
|
|
229
|
-
let e = Bt.value;
|
|
230
|
-
if (!e) return null;
|
|
231
|
-
let t = Math.max(je, e.width), n = Math.max(je, e.height), r = e.x, i = e.y;
|
|
232
|
-
return e.position === "left" ? r = e.x + e.width - t : e.position === "top" && (i = e.y + e.height - n), e.position === "left" || e.position === "right" ? i = e.y + e.height / 2 - n / 2 : r = e.x + e.width / 2 - t / 2, {
|
|
233
|
-
x: r,
|
|
234
|
-
y: i,
|
|
235
|
-
width: t,
|
|
236
|
-
height: n
|
|
237
|
-
};
|
|
238
|
-
}), Y = d(() => {
|
|
239
|
-
if (!pt.value) return null;
|
|
240
|
-
let e = null;
|
|
241
|
-
if (q.value ? e = { ...q.value } : M.value && (e = {
|
|
242
|
-
x: M.value.x - P.value.x,
|
|
243
|
-
y: M.value.y - P.value.y,
|
|
244
|
-
width: M.value.width,
|
|
245
|
-
height: M.value.height,
|
|
246
|
-
rx: 0
|
|
247
|
-
}), !e) return null;
|
|
248
|
-
let t = Bt.value;
|
|
249
|
-
return t && (t.position === "left" ? (e.x += t.width, e.width -= t.width) : t.position === "right" ? e.width -= t.width : (t.position === "top" && (e.y += t.height), e.height -= t.height)), e.width <= 0 || e.height <= 0 ? null : e;
|
|
250
|
-
}), X = _(Gn(k.value.title.text)), Vt = _(Gn(k.value.content.text)), Z = _(0), Ht = _(0), Ut = _(0), Wt = d(() => Z.value + Nt.value), Gt = d(() => z.value - Ut.value / 2), Kt = d(() => z.value + Ut.value / 2), qt = d(() => wt.value === "left" ? Gt.value : wt.value === "right" ? Kt.value - Wt.value : z.value - Wt.value / 2), Jt = d(() => {
|
|
251
|
-
let e = qt.value + (jt.value ? Nt.value : 0);
|
|
252
|
-
return wt.value === "left" ? e : wt.value === "right" ? e + Z.value : e + Z.value / 2;
|
|
253
|
-
}), Yt = d(() => !Ot.value || At.value <= 0 ? null : {
|
|
254
|
-
x: jt.value ? qt.value + At.value : qt.value + Z.value + Mt.value + At.value,
|
|
255
|
-
y: B.value - et.value * .35 + U.value.offsetY
|
|
256
|
-
}), Xt = d(() => Wn(Tt.value)), Zt = d(() => X.value.length ? B.value + X.value.length * tt.value + it.value : B.value), Qt = d(() => {
|
|
257
|
-
if (!V.value.show || !R.value || !M.value) return null;
|
|
258
|
-
let e = M.value, t = z.value, n = B.value, i = e.x + e.width / 2, a = e.y + e.height / 2, o = i - t, s = a - n, c, l, u, d = H.value.show ? Math.min(Ft.value, e.width / 2, e.height / 2) : 0, f = Math.abs(i - t) < .001, p = Math.abs(a - n) < .001;
|
|
259
|
-
return Math.abs(o) >= Math.abs(s) ? (o >= 0 ? (u = "left", c = e.x) : (u = "right", c = e.x + e.width), l = p ? a : r(n, e.y + d, e.y + e.height - d)) : (s >= 0 ? (u = "top", l = e.y) : (u = "bottom", l = e.y + e.height), c = f ? i : r(t, e.x + d, e.x + e.width - d)), {
|
|
260
|
-
d: `M ${t} ${n} L ${c} ${l}`,
|
|
261
|
-
side: u,
|
|
262
|
-
start: {
|
|
263
|
-
x: t,
|
|
264
|
-
y: n
|
|
265
|
-
},
|
|
266
|
-
end: {
|
|
267
|
-
x: c,
|
|
268
|
-
y: l
|
|
269
|
-
}
|
|
270
|
-
};
|
|
271
|
-
});
|
|
272
|
-
function $t(e, t) {
|
|
273
|
-
let n = j.value;
|
|
274
|
-
if (!n?.createSVGPoint || !Number.isFinite(e) || !Number.isFinite(t)) return null;
|
|
275
|
-
let r = n.getScreenCTM?.();
|
|
276
|
-
if (!r) return null;
|
|
277
|
-
let i = n.createSVGPoint();
|
|
278
|
-
i.x = e, i.y = t;
|
|
279
|
-
try {
|
|
280
|
-
let e = i.matrixTransform(r.inverse());
|
|
281
|
-
return !Number.isFinite(e.x) || !Number.isFinite(e.y) ? null : {
|
|
282
|
-
x: e.x,
|
|
283
|
-
y: e.y
|
|
284
|
-
};
|
|
285
|
-
} catch {
|
|
286
|
-
return null;
|
|
287
|
-
}
|
|
288
|
-
}
|
|
289
|
-
function en(e = P.value) {
|
|
290
|
-
return {
|
|
291
|
-
dataset: D.dataset,
|
|
292
|
-
offset: {
|
|
293
|
-
x: Number(e?.x) || 0,
|
|
294
|
-
y: Number(e?.y) || 0
|
|
295
|
-
},
|
|
296
|
-
rect: M.value ? { ...M.value } : null
|
|
297
|
-
};
|
|
298
|
-
}
|
|
299
|
-
function tn(e) {
|
|
300
|
-
let t = j.value;
|
|
301
|
-
t && e && (Number.isFinite(t[ze]) || (t[ze] = 0), t[ze] += 1, e[Re] = t[ze]);
|
|
302
|
-
}
|
|
303
|
-
function nn() {
|
|
304
|
-
window.addEventListener("mousemove", gn, !0), window.addEventListener("mouseup", _n, !0);
|
|
305
|
-
}
|
|
306
|
-
function rn() {
|
|
307
|
-
window.removeEventListener("mousemove", gn, !0), window.removeEventListener("mouseup", _n, !0);
|
|
308
|
-
}
|
|
309
|
-
function an() {
|
|
310
|
-
window.addEventListener("touchmove", yn, {
|
|
311
|
-
capture: !0,
|
|
312
|
-
passive: !1
|
|
313
|
-
}), window.addEventListener("touchend", bn, !0), window.addEventListener("touchcancel", xn, !0);
|
|
314
|
-
}
|
|
315
|
-
function on() {
|
|
316
|
-
window.removeEventListener("touchmove", yn, !0), window.removeEventListener("touchend", bn, !0), window.removeEventListener("touchcancel", xn, !0);
|
|
317
|
-
}
|
|
318
|
-
function sn() {
|
|
319
|
-
rn(), on();
|
|
320
|
-
}
|
|
321
|
-
function cn({ event: e, inputType: t, touchId: n = null, pointer: r }) {
|
|
322
|
-
if (F.value || !W.value || !A.value || !j.value || !r) return;
|
|
323
|
-
e.preventDefault(), e.stopPropagation();
|
|
324
|
-
let i = A.value, a = {
|
|
325
|
-
x: Number(P.value?.x) || 0,
|
|
326
|
-
y: Number(P.value?.y) || 0
|
|
327
|
-
};
|
|
328
|
-
L.inputType = t, L.touchId = n, L.startPointer = r, L.startOffset = a, L.lastRequestedOffset = a, F.value = !0, i[w] = !0, i[S] = { ...a }, i[C] = { ...a }, j.value[E] = /* @__PURE__ */ new Map(), tn(i), t === "mouse" ? nn() : an(), O("dragStart", en(a));
|
|
329
|
-
}
|
|
330
|
-
function ln(e) {
|
|
331
|
-
e.button === 0 && cn({
|
|
332
|
-
event: e,
|
|
333
|
-
inputType: "mouse",
|
|
334
|
-
pointer: $t(e.clientX, e.clientY)
|
|
335
|
-
});
|
|
336
|
-
}
|
|
337
|
-
function un(e) {
|
|
338
|
-
let t = e.changedTouches?.[0] ?? e.touches?.[0];
|
|
339
|
-
t && cn({
|
|
340
|
-
event: e,
|
|
341
|
-
inputType: "touch",
|
|
342
|
-
touchId: t.identifier,
|
|
343
|
-
pointer: $t(t.clientX, t.clientY)
|
|
344
|
-
});
|
|
345
|
-
}
|
|
346
|
-
function dn() {
|
|
347
|
-
if (I || typeof document > "u") return I;
|
|
348
|
-
let e = document.createElement("div");
|
|
349
|
-
return e.setAttribute("role", "status"), e.setAttribute("aria-live", "polite"), e.setAttribute("aria-atomic", "true"), e.style.position = "fixed", e.style.width = "1px", e.style.height = "1px", e.style.padding = "0", e.style.margin = "-1px", e.style.overflow = "hidden", e.style.clip = "rect(0, 0, 0, 0)", e.style.whiteSpace = "nowrap", e.style.border = "0", document.body.append(e), I = e, I;
|
|
350
|
-
}
|
|
351
|
-
function fn(e) {
|
|
352
|
-
let t = dn();
|
|
353
|
-
if (!t) return;
|
|
354
|
-
let n = Number(e?.x) || 0, r = Number(e?.y) || 0, i = (e) => Number.isInteger(e) ? String(e) : e.toFixed(2);
|
|
355
|
-
t.textContent = "", requestAnimationFrame(() => {
|
|
356
|
-
I && (I.textContent = `${mt.value} moved to x ${i(n)}, y ${i(r)}.`);
|
|
357
|
-
});
|
|
358
|
-
}
|
|
359
|
-
function pn(e, t) {
|
|
360
|
-
let n = A.value, r = j.value;
|
|
361
|
-
if (F.value || !W.value || !n || !r?.isConnected) return;
|
|
362
|
-
let i = {
|
|
363
|
-
x: Number(P.value?.x) || 0,
|
|
364
|
-
y: Number(P.value?.y) || 0
|
|
365
|
-
}, a = {
|
|
366
|
-
x: i.x + e,
|
|
367
|
-
y: i.y + t
|
|
368
|
-
};
|
|
369
|
-
L.inputType = "keyboard", L.touchId = null, L.startPointer = null, L.startOffset = i, L.lastRequestedOffset = a, F.value = !0, n[w] = !0, n[S] = { ...i }, n[C] = { ...a }, r[E] = /* @__PURE__ */ new Map(), tn(n), O("dragStart", en(i)), O("drag", en(a)), Cr(r), Sn();
|
|
370
|
-
}
|
|
371
|
-
function mn(e) {
|
|
372
|
-
if (!W.value) return;
|
|
373
|
-
let t = {
|
|
374
|
-
ArrowUp: [0, -1],
|
|
375
|
-
ArrowDown: [0, 1],
|
|
376
|
-
ArrowLeft: [-1, 0],
|
|
377
|
-
ArrowRight: [1, 0]
|
|
378
|
-
}[e.key];
|
|
379
|
-
if (!t) return;
|
|
380
|
-
e.preventDefault(), e.stopPropagation();
|
|
381
|
-
let n = e.shiftKey ? Ne : Me;
|
|
382
|
-
pn(t[0] * n, t[1] * n);
|
|
383
|
-
}
|
|
384
|
-
function hn(e, t = null) {
|
|
385
|
-
if (!F.value || !L.startPointer || !L.startOffset || !A.value || !e) return;
|
|
386
|
-
t && (t.cancelable && t.preventDefault(), t.stopPropagation());
|
|
387
|
-
let n = {
|
|
388
|
-
x: L.startOffset.x + (e.x - L.startPointer.x),
|
|
389
|
-
y: L.startOffset.y + (e.y - L.startPointer.y)
|
|
390
|
-
};
|
|
391
|
-
L.lastRequestedOffset = n, A.value[C] = { ...n }, $(j.value), O("drag", en(n));
|
|
392
|
-
}
|
|
393
|
-
function gn(e) {
|
|
394
|
-
F.value && L.inputType === "mouse" && hn($t(e.clientX, e.clientY), e);
|
|
395
|
-
}
|
|
396
|
-
function _n(e) {
|
|
397
|
-
F.value && L.inputType === "mouse" && Sn(e);
|
|
398
|
-
}
|
|
399
|
-
function vn(e) {
|
|
400
|
-
if (!e || L.touchId === null) return null;
|
|
401
|
-
for (let t of e) if (t.identifier === L.touchId) return t;
|
|
402
|
-
return null;
|
|
403
|
-
}
|
|
404
|
-
function yn(e) {
|
|
405
|
-
if (!F.value || L.inputType !== "touch") return;
|
|
406
|
-
let t = vn(e.touches);
|
|
407
|
-
t && hn($t(t.clientX, t.clientY), e);
|
|
408
|
-
}
|
|
409
|
-
function bn(e) {
|
|
410
|
-
F.value && L.inputType === "touch" && vn(e.changedTouches) && Sn(e);
|
|
411
|
-
}
|
|
412
|
-
function xn(e) {
|
|
413
|
-
F.value && L.inputType === "touch" && vn(e.changedTouches) && Sn(e);
|
|
414
|
-
}
|
|
415
|
-
function Sn(e = null) {
|
|
416
|
-
if (!F.value) return;
|
|
417
|
-
e && (e.cancelable && e.preventDefault(), e.stopPropagation());
|
|
418
|
-
let t = A.value, n = j.value, r = L.inputType;
|
|
419
|
-
n?.[x] && (cancelAnimationFrame(n[x]), n[x] = null), n?.isConnected && t && Cr(n);
|
|
420
|
-
let i = t ? fr(t) ?? {
|
|
421
|
-
x: Number(P.value?.x) || 0,
|
|
422
|
-
y: Number(P.value?.y) || 0
|
|
423
|
-
} : {
|
|
424
|
-
x: Number(P.value?.x) || 0,
|
|
425
|
-
y: Number(P.value?.y) || 0
|
|
426
|
-
}, a = M.value ? {
|
|
427
|
-
x: M.value.x,
|
|
428
|
-
y: M.value.y
|
|
429
|
-
} : N.value ? {
|
|
430
|
-
x: N.value.x + i.x,
|
|
431
|
-
y: N.value.y + i.y
|
|
432
|
-
} : {
|
|
433
|
-
x: z.value + i.x,
|
|
434
|
-
y: B.value + i.y
|
|
435
|
-
}, o = xr(n, t);
|
|
436
|
-
t && (t[S] = {
|
|
437
|
-
x: i.x,
|
|
438
|
-
y: i.y
|
|
439
|
-
}, t[w] = !1, delete t[C]), P.value = {
|
|
440
|
-
x: i.x,
|
|
441
|
-
y: i.y
|
|
442
|
-
}, sn(), F.value = !1, L.inputType = null, L.touchId = null, L.startPointer = null, L.startOffset = null, L.lastRequestedOffset = null, requestAnimationFrame(() => {
|
|
443
|
-
O("dragEnd", wn(a)), r === "keyboard" && fn(a);
|
|
444
|
-
for (let e of o) e.emitDragEnd(e.position);
|
|
445
|
-
});
|
|
446
|
-
}
|
|
447
|
-
function Cn(e = P.value) {
|
|
448
|
-
return M.value ? {
|
|
449
|
-
x: M.value.x,
|
|
450
|
-
y: M.value.y
|
|
451
|
-
} : N.value ? {
|
|
452
|
-
x: N.value.x + (Number(e?.x) || 0),
|
|
453
|
-
y: N.value.y + (Number(e?.y) || 0)
|
|
454
|
-
} : {
|
|
455
|
-
x: z.value + (Number(e?.x) || 0),
|
|
456
|
-
y: B.value + (Number(e?.y) || 0)
|
|
457
|
-
};
|
|
458
|
-
}
|
|
459
|
-
function wn(e = Cn()) {
|
|
460
|
-
return {
|
|
461
|
-
...D.dataset,
|
|
462
|
-
position: {
|
|
463
|
-
x: Number(e?.x) || 0,
|
|
464
|
-
y: Number(e?.y) || 0
|
|
465
|
-
}
|
|
466
|
-
};
|
|
467
|
-
}
|
|
468
|
-
function Tn(e) {
|
|
469
|
-
O(e, wn());
|
|
470
|
-
}
|
|
471
|
-
function En() {
|
|
472
|
-
Tn("mouseenter");
|
|
473
|
-
}
|
|
474
|
-
function Dn() {
|
|
475
|
-
Tn("mouseleave");
|
|
476
|
-
}
|
|
477
|
-
function On() {
|
|
478
|
-
if ($e.value !== "pointer") return;
|
|
479
|
-
let e = document.activeElement;
|
|
480
|
-
(e === A.value || e === qe.value) && e.blur?.();
|
|
481
|
-
}
|
|
482
|
-
function kn() {
|
|
483
|
-
On(), Tn("click");
|
|
484
|
-
}
|
|
485
|
-
function An() {
|
|
486
|
-
$e.value = "keyboard";
|
|
487
|
-
}
|
|
488
|
-
function jn() {
|
|
489
|
-
$e.value = "pointer";
|
|
490
|
-
}
|
|
491
|
-
function Mn() {
|
|
492
|
-
$e.value = "pointer";
|
|
493
|
-
let e = document.activeElement, t = qe.value;
|
|
494
|
-
t && e && t.contains(e) && typeof e.blur == "function" && e.blur();
|
|
495
|
-
}
|
|
496
|
-
function Nn(e) {
|
|
497
|
-
pt.value && (e.key === "Enter" || e.key === " ") && (e.preventDefault(), e.stopPropagation(), Tn("click"));
|
|
498
|
-
}
|
|
499
|
-
function Pn(e) {
|
|
500
|
-
let t = qe.value;
|
|
501
|
-
t && !t.contains(e.relatedTarget) && Tn("focus");
|
|
502
|
-
}
|
|
503
|
-
function Fn(e) {
|
|
504
|
-
let t = qe.value;
|
|
505
|
-
t && !t.contains(e.relatedTarget) && Tn("blur");
|
|
506
|
-
}
|
|
507
|
-
function In(e) {
|
|
508
|
-
let t = e.viewBox?.baseVal;
|
|
509
|
-
if (t?.width > 0 && t?.height > 0) return {
|
|
510
|
-
x: t.x,
|
|
511
|
-
y: t.y,
|
|
512
|
-
width: t.width,
|
|
513
|
-
height: t.height
|
|
514
|
-
};
|
|
515
|
-
let n = e.getBoundingClientRect();
|
|
516
|
-
return {
|
|
517
|
-
x: 0,
|
|
518
|
-
y: 0,
|
|
519
|
-
width: e.clientWidth || n.width,
|
|
520
|
-
height: e.clientHeight || n.height
|
|
521
|
-
};
|
|
522
|
-
}
|
|
523
|
-
function Ln(e) {
|
|
524
|
-
return {
|
|
525
|
-
x: e.x,
|
|
526
|
-
y: e.y,
|
|
527
|
-
width: e.width,
|
|
528
|
-
height: e.height
|
|
529
|
-
};
|
|
530
|
-
}
|
|
531
|
-
function Rn(e, { top: t = 0, right: n = 0, bottom: r = 0, left: i = 0 } = {}) {
|
|
532
|
-
return {
|
|
533
|
-
x: e.x - i,
|
|
534
|
-
y: e.y - t,
|
|
535
|
-
width: e.width + i + n,
|
|
536
|
-
height: e.height + t + r
|
|
537
|
-
};
|
|
538
|
-
}
|
|
539
|
-
function Q(e, t) {
|
|
540
|
-
return {
|
|
541
|
-
x: e.x + t.x,
|
|
542
|
-
y: e.y + t.y,
|
|
543
|
-
width: e.width,
|
|
544
|
-
height: e.height
|
|
545
|
-
};
|
|
546
|
-
}
|
|
547
|
-
function zn(e, t, n = 0) {
|
|
548
|
-
return e.x < t.x + t.width + n && e.x + e.width + n > t.x && e.y < t.y + t.height + n && e.y + e.height + n > t.y;
|
|
549
|
-
}
|
|
550
|
-
function Bn(e, t) {
|
|
551
|
-
return Math.max(0, Math.min(e.x + e.width, t.x + t.width) - Math.max(e.x, t.x)) * Math.max(0, Math.min(e.y + e.height, t.y + t.height) - Math.max(e.y, t.y));
|
|
552
|
-
}
|
|
553
|
-
function Vn(e, t, n = 0) {
|
|
554
|
-
return e.x >= t.x + n && e.y >= t.y + n && e.x + e.width <= t.x + t.width - n && e.y + e.height <= t.y + t.height - n;
|
|
555
|
-
}
|
|
556
|
-
function Hn(e) {
|
|
557
|
-
return [
|
|
558
|
-
"left",
|
|
559
|
-
"center",
|
|
560
|
-
"right"
|
|
561
|
-
].includes(e) ? e : "center";
|
|
562
|
-
}
|
|
563
|
-
function Un(e) {
|
|
564
|
-
return e === "left" ? "start" : e === "right" ? "end" : "middle";
|
|
565
|
-
}
|
|
566
|
-
function Wn(e) {
|
|
567
|
-
return e === "left" ? Gt.value : e === "right" ? Kt.value : z.value;
|
|
568
|
-
}
|
|
569
|
-
function Gn(e) {
|
|
570
|
-
return e ? String(e).split(/\r?\n/) : [];
|
|
571
|
-
}
|
|
572
|
-
function Kn(e, t) {
|
|
573
|
-
let n = String(e ?? "");
|
|
574
|
-
if (!n) return 0;
|
|
575
|
-
let r = Number(t?.getAttribute?.("font-size"));
|
|
576
|
-
if (!Number.isFinite(r) || r <= 0) try {
|
|
577
|
-
r = Number.parseFloat(window.getComputedStyle(t).fontSize);
|
|
578
|
-
} catch {
|
|
579
|
-
r = 0;
|
|
580
|
-
}
|
|
581
|
-
return (!Number.isFinite(r) || r <= 0) && (r = 12), Array.from(n).reduce((e, t) => {
|
|
582
|
-
if (/\s/u.test(t)) return e + r * .33;
|
|
583
|
-
if (/[ilI1.,'`:;|!]/u.test(t)) return e + r * .3;
|
|
584
|
-
if (/[MW@#%&]/u.test(t)) return e + r * .9;
|
|
585
|
-
let n = t.codePointAt(0) ?? 0;
|
|
586
|
-
return e + r * (n >= 4352 && n <= 4607 || n >= 11904 && n <= 40959 || n >= 44032 && n <= 55215 || n >= 63744 && n <= 64255 || n >= 127744 && n <= 129791 ? 1 : .56);
|
|
587
|
-
}, 0);
|
|
588
|
-
}
|
|
589
|
-
function qn(e, t = "", n = null) {
|
|
590
|
-
if (!e) return Kn(t, n);
|
|
591
|
-
try {
|
|
592
|
-
let t = e.getComputedTextLength?.();
|
|
593
|
-
if (Number.isFinite(t) && t > 0) return t;
|
|
594
|
-
} catch {}
|
|
595
|
-
try {
|
|
596
|
-
let t = e.getBBox?.().width;
|
|
597
|
-
if (Number.isFinite(t) && t > 0) return t;
|
|
598
|
-
} catch {}
|
|
599
|
-
try {
|
|
600
|
-
let t = e.getBoundingClientRect?.().width, n = e.getScreenCTM?.(), r = n ? Math.hypot(n.a, n.b) : 0;
|
|
601
|
-
if (Number.isFinite(t) && t > 0 && Number.isFinite(r) && r > 0) return t / r;
|
|
602
|
-
} catch {}
|
|
603
|
-
return Kn(t, n);
|
|
604
|
-
}
|
|
605
|
-
function Jn(e) {
|
|
606
|
-
if (!e?.isConnected) return null;
|
|
607
|
-
let t = e.parentNode;
|
|
608
|
-
if (!t) return null;
|
|
609
|
-
let n = e.cloneNode(!1);
|
|
610
|
-
return n.removeAttribute("id"), n.setAttribute("opacity", "0"), n.setAttribute("pointer-events", "none"), n.setAttribute("text-anchor", "start"), n.setAttribute("x", "0"), n.setAttribute("y", "0"), n.setAttribute("aria-hidden", "true"), t.append(n), {
|
|
611
|
-
measure(t) {
|
|
612
|
-
let r = String(t ?? "");
|
|
613
|
-
return r ? (n.textContent = r, qn(n, r, e)) : 0;
|
|
614
|
-
},
|
|
615
|
-
destroy() {
|
|
616
|
-
n.remove();
|
|
617
|
-
}
|
|
618
|
-
};
|
|
619
|
-
}
|
|
620
|
-
function Yn(e, t, n) {
|
|
621
|
-
if (!e) return [""];
|
|
622
|
-
if (n(e) <= t) return [e];
|
|
623
|
-
let r = [], i = "";
|
|
624
|
-
for (let a of Array.from(e)) {
|
|
625
|
-
let e = i + a;
|
|
626
|
-
i && n(e) > t ? (r.push(i), i = a) : i = e;
|
|
627
|
-
}
|
|
628
|
-
return i && r.push(i), r.length ? r : [e];
|
|
629
|
-
}
|
|
630
|
-
function Xn(e, t, n) {
|
|
631
|
-
if (e === "") return [""];
|
|
632
|
-
if (n(e) <= t) return [e];
|
|
633
|
-
let r = e.trim().split(/\s+/).filter(Boolean);
|
|
634
|
-
if (!r.length) return [""];
|
|
635
|
-
let i = [], a = "";
|
|
636
|
-
for (let e of r) {
|
|
637
|
-
let r = Yn(e, t, n);
|
|
638
|
-
for (let e of r) {
|
|
639
|
-
let r = a ? `${a} ${e}` : e;
|
|
640
|
-
if (!a || n(r) <= t) {
|
|
641
|
-
a = r;
|
|
642
|
-
continue;
|
|
643
|
-
}
|
|
644
|
-
i.push(a), a = e;
|
|
645
|
-
}
|
|
646
|
-
}
|
|
647
|
-
return a && i.push(a), i.length ? i : [""];
|
|
648
|
-
}
|
|
649
|
-
function Zn(e, t, r) {
|
|
650
|
-
let i = Gn(e);
|
|
651
|
-
if (!i.length || !n(t) || t <= 0) return i;
|
|
652
|
-
let a = Jn(r);
|
|
653
|
-
if (!a) return i;
|
|
654
|
-
try {
|
|
655
|
-
return i.flatMap((e) => Xn(e, t, a.measure));
|
|
656
|
-
} finally {
|
|
657
|
-
a.destroy();
|
|
658
|
-
}
|
|
659
|
-
}
|
|
660
|
-
function Qn(e, t) {
|
|
661
|
-
if (!e.length) return 0;
|
|
662
|
-
let n = Jn(t);
|
|
663
|
-
if (!n) return 0;
|
|
664
|
-
try {
|
|
665
|
-
return e.reduce((e, t) => Math.max(e, n.measure(t)), 0);
|
|
666
|
-
} finally {
|
|
667
|
-
n.destroy();
|
|
668
|
-
}
|
|
669
|
-
}
|
|
670
|
-
function $n(e) {
|
|
671
|
-
if (!e) return 0;
|
|
672
|
-
let t = Array.from(e.querySelectorAll("tspan"));
|
|
673
|
-
return t.length ? t.reduce((t, n) => Math.max(t, qn(n, n.textContent ?? "", e)), 0) : qn(e, e.textContent ?? "", e);
|
|
674
|
-
}
|
|
675
|
-
function er(e, t, r) {
|
|
676
|
-
if (!n(e) || !n(t) || !n(r) || e <= 0 || t <= r) return e;
|
|
677
|
-
let i = r / t;
|
|
678
|
-
return Math.max(1, e * i * .985);
|
|
679
|
-
}
|
|
680
|
-
function tr() {
|
|
681
|
-
let e = $n(Xe.value), t = $n(Ze.value);
|
|
682
|
-
Z.value = e || Qn(X.value, Xe.value), Ht.value = t || Qn(Vt.value, Ze.value), Ut.value = Math.max(Z.value + Nt.value, Ht.value, 0);
|
|
683
|
-
}
|
|
684
|
-
async function nr() {
|
|
685
|
-
await h();
|
|
686
|
-
let e = Rt.value;
|
|
687
|
-
if (!e) {
|
|
688
|
-
X.value = Gn(k.value.title.text), Vt.value = Gn(k.value.content.text), await h(), tr(), await h(), $();
|
|
689
|
-
return;
|
|
690
|
-
}
|
|
691
|
-
let t = zt.value ?? e, n = e, r = t, i = n;
|
|
692
|
-
for (let e = 0; e < 8; e += 1) {
|
|
693
|
-
X.value = Zn(k.value.title.text, r, Xe.value), Vt.value = Zn(k.value.content.text, i, Ze.value), await h();
|
|
694
|
-
let e = $n(Xe.value), a = $n(Ze.value), o = !k.value.title.text || e <= t + .25, s = !k.value.content.text || a <= n + .25;
|
|
695
|
-
if (o && s) break;
|
|
696
|
-
o || (r = er(r, e, t)), s || (i = er(i, a, n));
|
|
697
|
-
}
|
|
698
|
-
tr(), await h(), $();
|
|
699
|
-
}
|
|
700
|
-
function rr(e, t, n) {
|
|
701
|
-
let i = n.x + y - e.x, a = n.x + n.width - y - (e.x + e.width), o = n.y + y - e.y, s = n.y + n.height - y - (e.y + e.height), c, l;
|
|
702
|
-
return c = i <= a ? r(t.x, i, a) : n.x + n.width / 2 - (e.x + e.width / 2), l = o <= s ? r(t.y, o, s) : n.y + n.height / 2 - (e.y + e.height / 2), {
|
|
703
|
-
x: c,
|
|
704
|
-
y: l
|
|
705
|
-
};
|
|
706
|
-
}
|
|
707
|
-
function ir(e, t) {
|
|
708
|
-
let r = [{
|
|
709
|
-
x: 0,
|
|
710
|
-
y: 0,
|
|
711
|
-
direction: "none"
|
|
712
|
-
}], i = e.x + e.width / 2, a = e.y + e.height / 2;
|
|
713
|
-
for (let o of t) {
|
|
714
|
-
let t = n(o.gap) ? Math.max(0, Number(o.gap)) : ot.value, s = o.x + o.width / 2, c = o.y + o.height / 2, l = o.y - t - (e.y + e.height), u = o.y + o.height + t - e.y, d = o.x - t - (e.x + e.width), f = o.x + o.width + t - e.x;
|
|
715
|
-
r.push({
|
|
716
|
-
x: 0,
|
|
717
|
-
y: l,
|
|
718
|
-
direction: "top"
|
|
719
|
-
}, {
|
|
720
|
-
x: 0,
|
|
721
|
-
y: u,
|
|
722
|
-
direction: "bottom"
|
|
723
|
-
}, {
|
|
724
|
-
x: d,
|
|
725
|
-
y: 0,
|
|
726
|
-
direction: "left"
|
|
727
|
-
}, {
|
|
728
|
-
x: f,
|
|
729
|
-
y: 0,
|
|
730
|
-
direction: "right"
|
|
731
|
-
}, {
|
|
732
|
-
x: s - i,
|
|
733
|
-
y: l,
|
|
734
|
-
direction: "top"
|
|
735
|
-
}, {
|
|
736
|
-
x: s - i,
|
|
737
|
-
y: u,
|
|
738
|
-
direction: "bottom"
|
|
739
|
-
}, {
|
|
740
|
-
x: d,
|
|
741
|
-
y: c - a,
|
|
742
|
-
direction: "left"
|
|
743
|
-
}, {
|
|
744
|
-
x: f,
|
|
745
|
-
y: c - a,
|
|
746
|
-
direction: "right"
|
|
747
|
-
});
|
|
748
|
-
}
|
|
749
|
-
let o = Math.max(e.width * .5 + ot.value, 12), s = Math.max(e.height * .5 + ot.value, 12);
|
|
750
|
-
for (let e = 1; e <= Ae; e += 1) {
|
|
751
|
-
let t = o * e, n = s * e;
|
|
752
|
-
r.push({
|
|
753
|
-
x: 0,
|
|
754
|
-
y: -n,
|
|
755
|
-
direction: "top"
|
|
756
|
-
}, {
|
|
757
|
-
x: -t,
|
|
758
|
-
y: -n,
|
|
759
|
-
direction: "top"
|
|
760
|
-
}, {
|
|
761
|
-
x: t,
|
|
762
|
-
y: -n,
|
|
763
|
-
direction: "top"
|
|
764
|
-
}, {
|
|
765
|
-
x: 0,
|
|
766
|
-
y: n,
|
|
767
|
-
direction: "bottom"
|
|
768
|
-
}, {
|
|
769
|
-
x: -t,
|
|
770
|
-
y: n,
|
|
771
|
-
direction: "bottom"
|
|
772
|
-
}, {
|
|
773
|
-
x: t,
|
|
774
|
-
y: n,
|
|
775
|
-
direction: "bottom"
|
|
776
|
-
}, {
|
|
777
|
-
x: -t,
|
|
778
|
-
y: 0,
|
|
779
|
-
direction: "left"
|
|
780
|
-
}, {
|
|
781
|
-
x: -t,
|
|
782
|
-
y: -n,
|
|
783
|
-
direction: "left"
|
|
784
|
-
}, {
|
|
785
|
-
x: -t,
|
|
786
|
-
y: n,
|
|
787
|
-
direction: "left"
|
|
788
|
-
}, {
|
|
789
|
-
x: t,
|
|
790
|
-
y: 0,
|
|
791
|
-
direction: "right"
|
|
792
|
-
}, {
|
|
793
|
-
x: t,
|
|
794
|
-
y: -n,
|
|
795
|
-
direction: "right"
|
|
796
|
-
}, {
|
|
797
|
-
x: t,
|
|
798
|
-
y: n,
|
|
799
|
-
direction: "right"
|
|
800
|
-
});
|
|
801
|
-
}
|
|
802
|
-
return r;
|
|
803
|
-
}
|
|
804
|
-
function ar(e) {
|
|
805
|
-
let t = /* @__PURE__ */ new Set();
|
|
806
|
-
return e.filter((e) => {
|
|
807
|
-
let n = [e.x.toFixed(3), e.y.toFixed(3)].join(":");
|
|
808
|
-
return !t.has(n) && (t.add(n), !0);
|
|
809
|
-
});
|
|
810
|
-
}
|
|
811
|
-
function or(e, t, n) {
|
|
812
|
-
if (e.preferred) return -(2 ** 53 - 1);
|
|
813
|
-
let r = Math.hypot(e.x, e.y);
|
|
814
|
-
return t === "auto" || e.direction === "none" || e.direction === t ? r : r + Math.max(n.width, n.height) * 2;
|
|
815
|
-
}
|
|
816
|
-
function sr(e, t) {
|
|
817
|
-
return t.some((t) => zn(e, t, n(t.gap) ? Math.max(0, Number(t.gap)) : ke));
|
|
818
|
-
}
|
|
819
|
-
function cr(e) {
|
|
820
|
-
let t = n(e?.gap) ? Math.max(0, Number(e.gap)) : ke;
|
|
821
|
-
return {
|
|
822
|
-
x: e.x - t,
|
|
823
|
-
y: e.y - t,
|
|
824
|
-
width: e.width + t * 2,
|
|
825
|
-
height: e.height + t * 2
|
|
826
|
-
};
|
|
827
|
-
}
|
|
828
|
-
function lr({ baseRect: e, requestedOffset: t, previousOffset: r = null, hardObstacles: i, bounds: a, overflow: o }) {
|
|
829
|
-
let s = {
|
|
830
|
-
x: n(t?.x) ? Number(t.x) : 0,
|
|
831
|
-
y: n(t?.y) ? Number(t.y) : 0
|
|
832
|
-
};
|
|
833
|
-
o || (s = rr(e, s, a));
|
|
834
|
-
for (let t of i) {
|
|
835
|
-
let n = cr(t), i = Q(e, s);
|
|
836
|
-
if (!zn(i, n)) continue;
|
|
837
|
-
let c = [
|
|
838
|
-
{
|
|
839
|
-
x: s.x + n.x - (i.x + i.width),
|
|
840
|
-
y: s.y
|
|
841
|
-
},
|
|
842
|
-
{
|
|
843
|
-
x: s.x + n.x + n.width - i.x,
|
|
844
|
-
y: s.y
|
|
845
|
-
},
|
|
846
|
-
{
|
|
847
|
-
x: s.x,
|
|
848
|
-
y: s.y + n.y - (i.y + i.height)
|
|
849
|
-
},
|
|
850
|
-
{
|
|
851
|
-
x: s.x,
|
|
852
|
-
y: s.y + n.y + n.height - i.y
|
|
853
|
-
}
|
|
854
|
-
], l = o ? c : c.filter((t) => Vn(Q(e, t), a, y)), u = l.length ? l : c;
|
|
855
|
-
u.sort((e, t) => {
|
|
856
|
-
let n = Math.hypot(e.x - s.x, e.y - s.y), i = Math.hypot(t.x - s.x, t.y - s.y);
|
|
857
|
-
return n === i ? r ? Math.hypot(e.x - r.x, e.y - r.y) - Math.hypot(t.x - r.x, t.y - r.y) : 0 : n - i;
|
|
858
|
-
}), s = u[0] ?? s;
|
|
859
|
-
}
|
|
860
|
-
return s;
|
|
861
|
-
}
|
|
862
|
-
function ur({ baseRect: e, occupiedRects: t, hardObstacles: r, bounds: i, position: a, overflow: o, preferredOffset: s = null, ignoreOccupied: c = !1 }) {
|
|
863
|
-
let l = ir(e, c ? [...r] : [...t, ...r]);
|
|
864
|
-
s && n(s.x) && n(s.y) && l.unshift({
|
|
865
|
-
x: Number(s.x),
|
|
866
|
-
y: Number(s.y),
|
|
867
|
-
direction: "manual",
|
|
868
|
-
preferred: !0
|
|
869
|
-
}), o || (l = l.map((t) => {
|
|
870
|
-
let n = rr(e, t, i);
|
|
871
|
-
return {
|
|
872
|
-
...t,
|
|
873
|
-
x: n.x,
|
|
874
|
-
y: n.y
|
|
875
|
-
};
|
|
876
|
-
})), l = ar(l), l.sort((e, t) => or(e, a, i) - or(t, a, i));
|
|
877
|
-
function u(n) {
|
|
878
|
-
let a = Q(e, n);
|
|
879
|
-
return !(!o && !Vn(a, i, y) || sr(a, r) || !c && t.some((e) => zn(a, e, ot.value)));
|
|
880
|
-
}
|
|
881
|
-
for (let t of l) if (u(t)) {
|
|
882
|
-
if (!t.preferred && [
|
|
883
|
-
"top",
|
|
884
|
-
"bottom",
|
|
885
|
-
"left",
|
|
886
|
-
"right"
|
|
887
|
-
].includes(t.direction) && r.length) {
|
|
888
|
-
let n = r[0], i = n.x + n.width / 2, a = n.y + n.height / 2, o = e.x + e.width / 2, s = e.y + e.height / 2, c = { ...t };
|
|
889
|
-
if (t.direction === "top" || t.direction === "bottom" ? c.x = i - o : c.y = a - s, u(c)) return c;
|
|
890
|
-
}
|
|
891
|
-
return t;
|
|
892
|
-
}
|
|
893
|
-
let d = null, f = Infinity, p = Infinity;
|
|
894
|
-
for (let n of l) {
|
|
895
|
-
let s = Q(e, n);
|
|
896
|
-
if (!o && !Vn(s, i, y) || sr(s, r)) continue;
|
|
897
|
-
let l = c ? 0 : t.reduce((e, t) => e + Bn(s, t), 0), u = or(n, a, i);
|
|
898
|
-
(l < f || l === f && u < p) && (f = l, p = u, d = n);
|
|
899
|
-
}
|
|
900
|
-
if (d) return d;
|
|
901
|
-
let m = ar(ir(e, r)).sort((e, t) => or(e, a, i) - or(t, a, i));
|
|
902
|
-
for (let t of m) if (!sr(Q(e, t), r)) return t;
|
|
903
|
-
return {
|
|
904
|
-
x: 0,
|
|
905
|
-
y: 0,
|
|
906
|
-
direction: "none"
|
|
907
|
-
};
|
|
908
|
-
}
|
|
909
|
-
function dr(e, t) {
|
|
910
|
-
let r = e?.[t];
|
|
911
|
-
return !r || !n(r.x) || !n(r.y) ? null : {
|
|
912
|
-
x: Number(r.x),
|
|
913
|
-
y: Number(r.y)
|
|
914
|
-
};
|
|
915
|
-
}
|
|
916
|
-
function fr(e) {
|
|
917
|
-
return dr(e, S);
|
|
918
|
-
}
|
|
919
|
-
function pr(e) {
|
|
920
|
-
return dr(e, C);
|
|
921
|
-
}
|
|
922
|
-
function mr(e) {
|
|
923
|
-
let t = e?.dataset?.boxPositionX, r = e?.dataset?.boxPositionY;
|
|
924
|
-
return t === "" || r === "" || !n(t) || !n(r) ? null : {
|
|
925
|
-
x: Number(t),
|
|
926
|
-
y: Number(r)
|
|
927
|
-
};
|
|
928
|
-
}
|
|
929
|
-
function hr(e) {
|
|
930
|
-
return Number.isFinite(e?.[Re]) ? e[Re] : -1;
|
|
931
|
-
}
|
|
932
|
-
function gr(e) {
|
|
933
|
-
let t = [...e.querySelectorAll(".vue-ui-label")].filter((t) => t.ownerSVGElement === e);
|
|
934
|
-
Number.isFinite(e[Pe]) || (e[Pe] = 0);
|
|
935
|
-
for (let n of t) Number.isFinite(n[b]) || (n[b] = e[Pe], e[Pe] += 1);
|
|
936
|
-
return t.sort((e, t) => e[b] - t[b]);
|
|
937
|
-
}
|
|
938
|
-
function _r(e) {
|
|
939
|
-
let t = Number(e.dataset.targetX), r = Number(e.dataset.targetY);
|
|
940
|
-
return !Number.isFinite(t) || !Number.isFinite(r) ? null : {
|
|
941
|
-
x: t,
|
|
942
|
-
y: r,
|
|
943
|
-
width: 0,
|
|
944
|
-
height: 0,
|
|
945
|
-
gap: n(e.dataset.linkLength) ? Math.max(0, Number(e.dataset.linkLength)) : ke
|
|
946
|
-
};
|
|
947
|
-
}
|
|
948
|
-
function vr(e, t, n = null, r = null) {
|
|
949
|
-
let i = e?.[Fe];
|
|
950
|
-
typeof i == "function" && i({
|
|
951
|
-
layoutRect: t,
|
|
952
|
-
boxRect: n,
|
|
953
|
-
offset: r
|
|
954
|
-
});
|
|
955
|
-
}
|
|
956
|
-
function yr(e, t, n = .001) {
|
|
957
|
-
return !e || !t ? !1 : Math.abs(Number(e.x) - Number(t.x)) > n || Math.abs(Number(e.y) - Number(t.y)) > n;
|
|
958
|
-
}
|
|
959
|
-
function br(e, t, n, r, i) {
|
|
960
|
-
if (!e || !t || !n || !r || !yr(n, r)) return;
|
|
961
|
-
let a = e[E];
|
|
962
|
-
a instanceof Map || (a = /* @__PURE__ */ new Map(), e[E] = a), a.has(t) || a.set(t, {
|
|
963
|
-
x: n.x,
|
|
964
|
-
y: n.y
|
|
965
|
-
}), t[T] = {
|
|
966
|
-
x: Number(i?.x) || 0,
|
|
967
|
-
y: Number(i?.y) || 0
|
|
968
|
-
};
|
|
969
|
-
}
|
|
970
|
-
function xr(e, t) {
|
|
971
|
-
let n = e?.[E];
|
|
972
|
-
if (!(n instanceof Map)) return [];
|
|
973
|
-
let r = [];
|
|
974
|
-
for (let [e, i] of n.entries()) {
|
|
975
|
-
if (!e?.isConnected || e === t) continue;
|
|
976
|
-
let n = e[Be], a = e[T], o = e[Le];
|
|
977
|
-
n && yr(i, n) && typeof o == "function" && (a && (e[S] = {
|
|
978
|
-
x: Number(a.x) || 0,
|
|
979
|
-
y: Number(a.y) || 0
|
|
980
|
-
}), r.push({
|
|
981
|
-
emitDragEnd: o,
|
|
982
|
-
position: {
|
|
983
|
-
x: n.x,
|
|
984
|
-
y: n.y
|
|
985
|
-
}
|
|
986
|
-
}));
|
|
987
|
-
}
|
|
988
|
-
return n.clear(), delete e[E], r;
|
|
989
|
-
}
|
|
990
|
-
function Sr({ baseRect: e, offset: t, occupiedRects: n, hardObstacles: r, bounds: i, overflow: a, ignoreOccupied: o = !1 }) {
|
|
991
|
-
if (!t) return !1;
|
|
992
|
-
let s = Q(e, t);
|
|
993
|
-
return !(!a && !Vn(s, i, y) || sr(s, r) || !o && n.some((e) => zn(s, e, 0)));
|
|
994
|
-
}
|
|
995
|
-
function Cr(e) {
|
|
996
|
-
if (!e?.isConnected) return;
|
|
997
|
-
let t = gr(e);
|
|
998
|
-
if (!t.length) return;
|
|
999
|
-
let r = In(e);
|
|
1000
|
-
for (let e of t) e.setAttribute("transform", "translate(0 0)");
|
|
1001
|
-
let i = [];
|
|
1002
|
-
for (let e of t) {
|
|
1003
|
-
let t = e[Ie] ?? e, r;
|
|
1004
|
-
try {
|
|
1005
|
-
r = t.getBBox();
|
|
1006
|
-
} catch {
|
|
1007
|
-
vr(e, null, null, null);
|
|
1008
|
-
continue;
|
|
1009
|
-
}
|
|
1010
|
-
if (!Number.isFinite(r.x) || !Number.isFinite(r.y) || !Number.isFinite(r.width) || !Number.isFinite(r.height) || r.width <= 0 || r.height <= 0) {
|
|
1011
|
-
vr(e, null, null, null);
|
|
1012
|
-
continue;
|
|
1013
|
-
}
|
|
1014
|
-
let a = Ln(r), o = e.dataset.boxShow === "true", s = {
|
|
1015
|
-
top: n(e.dataset.boxPaddingTop) ? Math.max(0, Number(e.dataset.boxPaddingTop)) : 0,
|
|
1016
|
-
right: n(e.dataset.boxPaddingRight) ? Math.max(0, Number(e.dataset.boxPaddingRight)) : 0,
|
|
1017
|
-
bottom: n(e.dataset.boxPaddingBottom) ? Math.max(0, Number(e.dataset.boxPaddingBottom)) : 0,
|
|
1018
|
-
left: n(e.dataset.boxPaddingLeft) ? Math.max(0, Number(e.dataset.boxPaddingLeft)) : 0
|
|
1019
|
-
}, c = o ? Rn(a, s) : a, l = o && n(e.dataset.boxMaxWidth) && Number(e.dataset.boxMaxWidth) > 0 ? Number(e.dataset.boxMaxWidth) : null, u = e.dataset.dragEnabled === "true", d = e.dataset.dragHandlePosition, f = [
|
|
1020
|
-
"left",
|
|
1021
|
-
"right",
|
|
1022
|
-
"top",
|
|
1023
|
-
"bottom"
|
|
1024
|
-
].includes(d) ? d : "right", p = o && u && n(e.dataset.dragHandleSize) ? Math.max(0, Number(e.dataset.dragHandleSize)) : 0;
|
|
1025
|
-
if (p > 0 && (c = f === "left" ? {
|
|
1026
|
-
...c,
|
|
1027
|
-
x: c.x - p,
|
|
1028
|
-
width: c.width + p
|
|
1029
|
-
} : f === "right" ? {
|
|
1030
|
-
...c,
|
|
1031
|
-
width: c.width + p
|
|
1032
|
-
} : f === "top" ? {
|
|
1033
|
-
...c,
|
|
1034
|
-
y: c.y - p,
|
|
1035
|
-
height: c.height + p
|
|
1036
|
-
} : {
|
|
1037
|
-
...c,
|
|
1038
|
-
height: c.height + p
|
|
1039
|
-
}), l !== null && c.width > l) {
|
|
1040
|
-
let e = c.x + c.width / 2;
|
|
1041
|
-
c = {
|
|
1042
|
-
...c,
|
|
1043
|
-
x: e - l / 2,
|
|
1044
|
-
width: l
|
|
1045
|
-
};
|
|
1046
|
-
}
|
|
1047
|
-
i.push({
|
|
1048
|
-
label: e,
|
|
1049
|
-
baseRect: c,
|
|
1050
|
-
boxShow: o,
|
|
1051
|
-
position: e.dataset.position || "auto",
|
|
1052
|
-
overflow: e.dataset.overflow === "true",
|
|
1053
|
-
overlap: e.dataset.overlap === "true",
|
|
1054
|
-
dragHandlePosition: f,
|
|
1055
|
-
dragHandleSize: p,
|
|
1056
|
-
targetObstacle: _r(e),
|
|
1057
|
-
persistedOffset: fr(e),
|
|
1058
|
-
datasetPosition: mr(e),
|
|
1059
|
-
requestedDragOffset: pr(e),
|
|
1060
|
-
dragging: e[w] === !0,
|
|
1061
|
-
dragPriority: hr(e)
|
|
1062
|
-
});
|
|
1063
|
-
}
|
|
1064
|
-
i.sort((e, t) => {
|
|
1065
|
-
if (e.dragging !== t.dragging) return e.dragging ? -1 : 1;
|
|
1066
|
-
let n = !!e.datasetPosition || !!e.persistedOffset, r = !!t.datasetPosition || !!t.persistedOffset;
|
|
1067
|
-
return n === r ? n && r && e.dragPriority !== t.dragPriority ? t.dragPriority - e.dragPriority : e.label[b] - t.label[b] : n ? -1 : 1;
|
|
1068
|
-
});
|
|
1069
|
-
let a = i.some((e) => e.dragging), o = i.some((e) => e.dragging && e.overlap), s = [];
|
|
1070
|
-
for (let t of i) {
|
|
1071
|
-
let n = t.targetObstacle ? [t.targetObstacle] : [], i;
|
|
1072
|
-
if (t.dragging) i = lr({
|
|
1073
|
-
baseRect: t.baseRect,
|
|
1074
|
-
requestedOffset: t.requestedDragOffset ?? t.persistedOffset,
|
|
1075
|
-
previousOffset: t.persistedOffset,
|
|
1076
|
-
hardObstacles: n,
|
|
1077
|
-
bounds: r,
|
|
1078
|
-
overflow: t.overflow
|
|
1079
|
-
});
|
|
1080
|
-
else if (a && (o || t.overlap) && t.label[T]) i = {
|
|
1081
|
-
x: Number(t.label[T].x) || 0,
|
|
1082
|
-
y: Number(t.label[T].y) || 0,
|
|
1083
|
-
direction: "overlap"
|
|
1084
|
-
};
|
|
1085
|
-
else if (!a && t.datasetPosition) i = {
|
|
1086
|
-
x: t.datasetPosition.x - t.baseRect.x,
|
|
1087
|
-
y: t.datasetPosition.y - t.baseRect.y,
|
|
1088
|
-
direction: "manual"
|
|
1089
|
-
};
|
|
1090
|
-
else if (!a && t.persistedOffset) i = {
|
|
1091
|
-
x: Number(t.persistedOffset.x) || 0,
|
|
1092
|
-
y: Number(t.persistedOffset.y) || 0,
|
|
1093
|
-
direction: "manual"
|
|
1094
|
-
};
|
|
1095
|
-
else {
|
|
1096
|
-
let e = t.label[T];
|
|
1097
|
-
i = a && e && Sr({
|
|
1098
|
-
baseRect: t.baseRect,
|
|
1099
|
-
offset: e,
|
|
1100
|
-
occupiedRects: s,
|
|
1101
|
-
hardObstacles: n,
|
|
1102
|
-
bounds: r,
|
|
1103
|
-
overflow: t.overflow,
|
|
1104
|
-
ignoreOccupied: t.overlap
|
|
1105
|
-
}) ? {
|
|
1106
|
-
x: Number(e.x) || 0,
|
|
1107
|
-
y: Number(e.y) || 0,
|
|
1108
|
-
direction: "stable"
|
|
1109
|
-
} : ur({
|
|
1110
|
-
baseRect: t.baseRect,
|
|
1111
|
-
occupiedRects: s,
|
|
1112
|
-
hardObstacles: n,
|
|
1113
|
-
bounds: r,
|
|
1114
|
-
position: t.position,
|
|
1115
|
-
overflow: t.overflow,
|
|
1116
|
-
preferredOffset: t.persistedOffset ?? (t.datasetPosition ? {
|
|
1117
|
-
x: t.datasetPosition.x - t.baseRect.x,
|
|
1118
|
-
y: t.datasetPosition.y - t.baseRect.y
|
|
1119
|
-
} : e ?? null),
|
|
1120
|
-
ignoreOccupied: t.overlap
|
|
1121
|
-
});
|
|
1122
|
-
}
|
|
1123
|
-
t.label.setAttribute("transform", `translate(${i.x} ${i.y})`);
|
|
1124
|
-
let c = Q(t.baseRect, i), l = t.label[Be];
|
|
1125
|
-
a && !o && !t.dragging && !t.overlap && br(e, t.label, l, c, i), (t.datasetPosition || t.persistedOffset || t.dragging) && (t.label[S] = {
|
|
1126
|
-
x: i.x,
|
|
1127
|
-
y: i.y
|
|
1128
|
-
}), t.label[Be] = {
|
|
1129
|
-
x: c.x,
|
|
1130
|
-
y: c.y,
|
|
1131
|
-
width: c.width,
|
|
1132
|
-
height: c.height
|
|
1133
|
-
}, t.label[T] = {
|
|
1134
|
-
x: Number(i.x) || 0,
|
|
1135
|
-
y: Number(i.y) || 0
|
|
1136
|
-
}, vr(t.label, c, t.boxShow ? t.baseRect : null, i), t.overlap || s.push(c);
|
|
1137
|
-
}
|
|
1138
|
-
}
|
|
1139
|
-
function $(e = j.value) {
|
|
1140
|
-
e?.isConnected && (e[x] || (e[x] = requestAnimationFrame(() => {
|
|
1141
|
-
e[x] = null, Cr(e);
|
|
1142
|
-
})));
|
|
1143
|
-
}
|
|
1144
|
-
function wr() {
|
|
1145
|
-
let e = A.value, t = j.value;
|
|
1146
|
-
Qe.value = !0, P.value = {
|
|
1147
|
-
x: 0,
|
|
1148
|
-
y: 0
|
|
1149
|
-
}, e && (F.value && (t?.[x] && (cancelAnimationFrame(t[x]), t[x] = null), sn(), F.value = !1, L.inputType = null, L.touchId = null, L.startPointer = null, L.startOffset = null, L.lastRequestedOffset = null), e[w] = !1, delete e[S], delete e[C], delete e[Be], delete e[T], delete e[Re], e.dataset.boxPositionX = "", e.dataset.boxPositionY = "", e.setAttribute("transform", "translate(0 0)"), t?.isConnected && (t[E] = /* @__PURE__ */ new Map(), $(t)));
|
|
1150
|
-
}
|
|
1151
|
-
return c({ reorder: wr }), fe(() => [D.dataset?.position?.x, D.dataset?.position?.y], (e, t) => {
|
|
1152
|
-
t && (e[0] !== t[0] || e[1] !== t[1]) && (Qe.value = !1);
|
|
1153
|
-
}), fe(() => [
|
|
1154
|
-
D.dataset?.x,
|
|
1155
|
-
D.dataset?.y,
|
|
1156
|
-
D.dataset?.position?.x,
|
|
1157
|
-
D.dataset?.position?.y
|
|
1158
|
-
], () => {
|
|
1159
|
-
if (!xt.value && A.value && !F.value) {
|
|
1160
|
-
let e = D.dataset?.position;
|
|
1161
|
-
e && (e.x === null || e.x === void 0 || e.y === null || e.y === void 0) && (delete A.value[S], P.value = {
|
|
1162
|
-
x: 0,
|
|
1163
|
-
y: 0
|
|
1164
|
-
});
|
|
1165
|
-
}
|
|
1166
|
-
nr();
|
|
1167
|
-
}, { flush: "post" }), fe(() => D.config, () => {
|
|
1168
|
-
!W.value && F.value && Sn(), nr();
|
|
1169
|
-
}, {
|
|
1170
|
-
deep: !0,
|
|
1171
|
-
flush: "post"
|
|
1172
|
-
}), se(async () => {
|
|
1173
|
-
await h(), window.addEventListener("keydown", An, !0), window.addEventListener("pointerdown", jn, !0), j.value = A.value?.ownerSVGElement ?? null;
|
|
1174
|
-
let e = j.value, t = A.value, n = Je.value;
|
|
1175
|
-
e && t && n && (t[Ie] = n, t[Fe] = ({ layoutRect: e, boxRect: t, offset: n }) => {
|
|
1176
|
-
M.value = e, N.value = t, n && (P.value = {
|
|
1177
|
-
x: Number(n.x) || 0,
|
|
1178
|
-
y: Number(n.y) || 0
|
|
1179
|
-
});
|
|
1180
|
-
}, t[Le] = (e) => {
|
|
1181
|
-
O("dragEnd", {
|
|
1182
|
-
...D.dataset,
|
|
1183
|
-
position: {
|
|
1184
|
-
x: Number(e?.x) || 0,
|
|
1185
|
-
y: Number(e?.y) || 0
|
|
1186
|
-
}
|
|
1187
|
-
});
|
|
1188
|
-
}, st = new MutationObserver((n) => {
|
|
1189
|
-
n.some((e) => !(e.type === "attributes" && e.target === t && e.attributeName === "transform" || e.type === "attributes" && e.target === Ye.value)) && $(e);
|
|
1190
|
-
}), st.observe(t, {
|
|
1191
|
-
subtree: !0,
|
|
1192
|
-
childList: !0,
|
|
1193
|
-
characterData: !0,
|
|
1194
|
-
attributes: !0
|
|
1195
|
-
}), "ResizeObserver" in window && (ct = new ResizeObserver(() => {
|
|
1196
|
-
$(e);
|
|
1197
|
-
}), ct.observe(e)), document.fonts?.ready?.then(() => {
|
|
1198
|
-
nr();
|
|
1199
|
-
}), nr());
|
|
1200
|
-
}), oe(() => {
|
|
1201
|
-
sn(), window.removeEventListener("keydown", An, !0), window.removeEventListener("pointerdown", jn, !0), st?.disconnect(), ct?.disconnect(), I?.remove(), I = null, A.value && (delete A.value[Fe], delete A.value[Ie], delete A.value[Le], delete A.value[Be], delete A.value[T], delete A.value[S], delete A.value[C], delete A.value[w], delete A.value[Re]), F.value = !1, L.inputType = null, L.touchId = null, L.startPointer = null, L.startOffset = null, L.lastRequestedOffset = null, M.value = null, N.value = null, P.value = {
|
|
1202
|
-
x: 0,
|
|
1203
|
-
y: 0
|
|
1204
|
-
};
|
|
1205
|
-
let e = j.value;
|
|
1206
|
-
if (e) {
|
|
1207
|
-
let t = e[E];
|
|
1208
|
-
t instanceof Map && A.value && t.delete(A.value), requestAnimationFrame(() => {
|
|
1209
|
-
$(e);
|
|
1210
|
-
});
|
|
1211
|
-
}
|
|
1212
|
-
}), (e, t) => (g(), m("g", {
|
|
1213
|
-
ref_key: "wrapperRef",
|
|
1214
|
-
ref: qe,
|
|
1215
|
-
class: re(["vue-ui-label-wrapper", { "vue-ui-label-wrapper--keyboard-focus": $e.value === "keyboard" }]),
|
|
1216
|
-
focusable: "false",
|
|
1217
|
-
onPointerdownCapture: Mn,
|
|
1218
|
-
onMouseenter: En,
|
|
1219
|
-
onMouseleave: Dn,
|
|
1220
|
-
onFocusin: Pn,
|
|
1221
|
-
onFocusout: Fn
|
|
1222
|
-
}, [
|
|
1223
|
-
Qt.value ? (g(), m("path", {
|
|
1224
|
-
key: 0,
|
|
1225
|
-
class: "vue-ui-label__link",
|
|
1226
|
-
d: Qt.value.d,
|
|
1227
|
-
fill: "none",
|
|
1228
|
-
stroke: V.value.stroke,
|
|
1229
|
-
"stroke-width": V.value.strokeWidth,
|
|
1230
|
-
"stroke-dasharray": V.value.strokeDasharray,
|
|
1231
|
-
"stroke-linecap": "round",
|
|
1232
|
-
"pointer-events": "none",
|
|
1233
|
-
"aria-hidden": "true",
|
|
1234
|
-
focusable: "false"
|
|
1235
|
-
}, null, 8, he)) : p("", !0),
|
|
1236
|
-
V.value.targetPlot.show ? (g(), m("circle", {
|
|
1237
|
-
key: 1,
|
|
1238
|
-
cx: z.value,
|
|
1239
|
-
cy: B.value,
|
|
1240
|
-
r: V.value.targetPlot.radius,
|
|
1241
|
-
fill: V.value.stroke,
|
|
1242
|
-
stroke: V.value.targetPlot.stroke,
|
|
1243
|
-
"stroke-width": V.value.strokeWidth,
|
|
1244
|
-
"paint-order": "stroke fill"
|
|
1245
|
-
}, null, 8, ge)) : p("", !0),
|
|
1246
|
-
ee("g", {
|
|
1247
|
-
ref_key: "labelRef",
|
|
1248
|
-
ref: A,
|
|
1249
|
-
class: "vue-ui-label",
|
|
1250
|
-
focusable: "false",
|
|
1251
|
-
id: `label_${de(Ke)}`,
|
|
1252
|
-
"data-position": k.value.position,
|
|
1253
|
-
"data-overflow": String(k.value.overflow),
|
|
1254
|
-
"data-overlap": String(dt.value),
|
|
1255
|
-
"data-target-x": R.value ? z.value : "",
|
|
1256
|
-
"data-target-y": R.value ? B.value : "",
|
|
1257
|
-
"data-box-position-x": St.value ? St.value.x : "",
|
|
1258
|
-
"data-box-position-y": St.value ? St.value.y : "",
|
|
1259
|
-
"data-link-length": V.value.show ? Ct.value : ke,
|
|
1260
|
-
"data-box-show": String(H.value.show),
|
|
1261
|
-
"data-box-max-width": K.value !== null && K.value > 0 ? K.value : "",
|
|
1262
|
-
"data-box-padding-top": G.value.top,
|
|
1263
|
-
"data-box-padding-right": G.value.right,
|
|
1264
|
-
"data-box-padding-bottom": G.value.bottom,
|
|
1265
|
-
"data-box-padding-left": G.value.left,
|
|
1266
|
-
"data-drag-enabled": String(W.value),
|
|
1267
|
-
"data-drag-handle-position": bt.value,
|
|
1268
|
-
"data-drag-handle-size": It.value,
|
|
1269
|
-
onClick: kn
|
|
1270
|
-
}, [
|
|
1271
|
-
q.value ? (g(), m("rect", {
|
|
1272
|
-
key: 0,
|
|
1273
|
-
ref_key: "boxRef",
|
|
1274
|
-
ref: Ye,
|
|
1275
|
-
class: "vue-ui-label__box",
|
|
1276
|
-
x: q.value.x,
|
|
1277
|
-
y: q.value.y,
|
|
1278
|
-
width: q.value.width,
|
|
1279
|
-
height: q.value.height,
|
|
1280
|
-
rx: q.value.rx,
|
|
1281
|
-
fill: H.value.backgroundColor,
|
|
1282
|
-
stroke: H.value.borderColor,
|
|
1283
|
-
"stroke-width": Pt.value,
|
|
1284
|
-
"aria-hidden": "true",
|
|
1285
|
-
focusable: "false"
|
|
1286
|
-
}, null, 8, ve)) : p("", !0),
|
|
1287
|
-
Y.value ? (g(), m("rect", {
|
|
1288
|
-
key: 1,
|
|
1289
|
-
class: "vue-ui-label__action-target",
|
|
1290
|
-
x: Y.value.x,
|
|
1291
|
-
y: Y.value.y,
|
|
1292
|
-
width: Y.value.width,
|
|
1293
|
-
height: Y.value.height,
|
|
1294
|
-
rx: Y.value.rx,
|
|
1295
|
-
fill: "transparent",
|
|
1296
|
-
"pointer-events": "none",
|
|
1297
|
-
role: "button",
|
|
1298
|
-
tabindex: "0",
|
|
1299
|
-
"aria-label": mt.value,
|
|
1300
|
-
onKeydown: Nn
|
|
1301
|
-
}, null, 40, ye)) : p("", !0),
|
|
1302
|
-
le(e.$slots, "before", ie(ne({
|
|
1303
|
-
...D,
|
|
1304
|
-
box: q.value
|
|
1305
|
-
})), void 0, !0),
|
|
1306
|
-
ee("g", {
|
|
1307
|
-
ref_key: "contentRef",
|
|
1308
|
-
ref: Je,
|
|
1309
|
-
class: "vue-ui-label__body"
|
|
1310
|
-
}, [le(e.$slots, "title", ie(ne({
|
|
1311
|
-
...D,
|
|
1312
|
-
box: q.value
|
|
1313
|
-
})), () => [
|
|
1314
|
-
jt.value && Yt.value && R.value ? (g(), f(s, {
|
|
1315
|
-
key: 0,
|
|
1316
|
-
class: "vue-ui-label__marker",
|
|
1317
|
-
plot: Yt.value,
|
|
1318
|
-
radius: At.value,
|
|
1319
|
-
shape: U.value.shape,
|
|
1320
|
-
color: U.value.color,
|
|
1321
|
-
"pointer-events": "none",
|
|
1322
|
-
"aria-hidden": "true",
|
|
1323
|
-
focusable: "false"
|
|
1324
|
-
}, null, 8, [
|
|
1325
|
-
"plot",
|
|
1326
|
-
"radius",
|
|
1327
|
-
"shape",
|
|
1328
|
-
"color"
|
|
1329
|
-
])) : p("", !0),
|
|
1330
|
-
k.value.title.text && R.value ? (g(), m("text", {
|
|
1331
|
-
key: 1,
|
|
1332
|
-
ref_key: "titleTextRef",
|
|
1333
|
-
ref: Xe,
|
|
1334
|
-
class: "vue-ui-label__title",
|
|
1335
|
-
"font-size": et.value,
|
|
1336
|
-
"font-weight": k.value.title.bold ? "bold" : "normal",
|
|
1337
|
-
"text-anchor": Et.value,
|
|
1338
|
-
fill: k.value.title.color
|
|
1339
|
-
}, [(g(!0), m(u, null, ce(X.value, (e, t) => (g(), m("tspan", {
|
|
1340
|
-
key: `title_${t}`,
|
|
1341
|
-
x: Jt.value,
|
|
1342
|
-
y: B.value + t * tt.value
|
|
1343
|
-
}, ue(e), 9, xe))), 128))], 8, be)) : p("", !0),
|
|
1344
|
-
!jt.value && Yt.value && R.value ? (g(), f(s, {
|
|
1345
|
-
key: 2,
|
|
1346
|
-
class: "vue-ui-label__marker",
|
|
1347
|
-
plot: Yt.value,
|
|
1348
|
-
radius: At.value,
|
|
1349
|
-
shape: U.value.shape,
|
|
1350
|
-
color: U.value.color,
|
|
1351
|
-
"pointer-events": "none",
|
|
1352
|
-
"aria-hidden": "true",
|
|
1353
|
-
focusable: "false"
|
|
1354
|
-
}, null, 8, [
|
|
1355
|
-
"plot",
|
|
1356
|
-
"radius",
|
|
1357
|
-
"shape",
|
|
1358
|
-
"color"
|
|
1359
|
-
])) : p("", !0)
|
|
1360
|
-
], !0), le(e.$slots, "content", ie(ne({
|
|
1361
|
-
...D,
|
|
1362
|
-
box: q.value
|
|
1363
|
-
})), () => [k.value.content.text && R.value ? (g(), m("text", {
|
|
1364
|
-
key: 0,
|
|
1365
|
-
ref_key: "contentTextRef",
|
|
1366
|
-
ref: Ze,
|
|
1367
|
-
class: "vue-ui-label__content",
|
|
1368
|
-
"font-size": nt.value,
|
|
1369
|
-
"font-weight": k.value.content.bold ? "bold" : "normal",
|
|
1370
|
-
"text-anchor": Dt.value,
|
|
1371
|
-
fill: k.value.content.color
|
|
1372
|
-
}, [(g(!0), m(u, null, ce(Vt.value, (e, t) => (g(), m("tspan", {
|
|
1373
|
-
key: `content_${t}`,
|
|
1374
|
-
x: Xt.value,
|
|
1375
|
-
y: Zt.value + t * rt.value
|
|
1376
|
-
}, ue(e), 9, Ce))), 128))], 8, Se)) : p("", !0)], !0)], 512),
|
|
1377
|
-
le(e.$slots, "after", ie(ne({
|
|
1378
|
-
...D,
|
|
1379
|
-
box: q.value
|
|
1380
|
-
})), void 0, !0),
|
|
1381
|
-
Bt.value ? (g(), m("g", {
|
|
1382
|
-
key: 2,
|
|
1383
|
-
class: "vue-ui-label__drag-handle",
|
|
1384
|
-
style: ae({
|
|
1385
|
-
cursor: F.value ? "grabbing" : "grab",
|
|
1386
|
-
touchAction: "none"
|
|
1387
|
-
}),
|
|
1388
|
-
role: "button",
|
|
1389
|
-
tabindex: "0",
|
|
1390
|
-
"aria-label": ht.value,
|
|
1391
|
-
"aria-describedby": gt,
|
|
1392
|
-
"aria-keyshortcuts": "ArrowUp ArrowDown ArrowLeft ArrowRight",
|
|
1393
|
-
onKeydown: mn,
|
|
1394
|
-
onClick: t[0] ||= pe(() => {}, ["stop"]),
|
|
1395
|
-
onPointerdown: t[1] ||= pe(() => {}, ["stop"]),
|
|
1396
|
-
onMousedown: pe(ln, ["stop", "prevent"]),
|
|
1397
|
-
onTouchstart: pe(un, ["stop", "prevent"])
|
|
1398
|
-
}, [
|
|
1399
|
-
ee("desc", { id: gt }, ue(_t.value), 1),
|
|
1400
|
-
J.value ? (g(), m("rect", {
|
|
1401
|
-
key: 0,
|
|
1402
|
-
x: J.value.x,
|
|
1403
|
-
y: J.value.y,
|
|
1404
|
-
width: J.value.width,
|
|
1405
|
-
height: J.value.height,
|
|
1406
|
-
fill: "transparent",
|
|
1407
|
-
"pointer-events": "all",
|
|
1408
|
-
"aria-hidden": "true",
|
|
1409
|
-
focusable: "false"
|
|
1410
|
-
}, null, 8, Te)) : p("", !0),
|
|
1411
|
-
J.value ? (g(), m("rect", {
|
|
1412
|
-
key: 1,
|
|
1413
|
-
class: "vue-ui-label__focus-ring",
|
|
1414
|
-
x: J.value.x,
|
|
1415
|
-
y: J.value.y,
|
|
1416
|
-
width: J.value.width,
|
|
1417
|
-
height: J.value.height,
|
|
1418
|
-
rx: Math.min(4, J.value.width / 2, J.value.height / 2),
|
|
1419
|
-
fill: "none",
|
|
1420
|
-
stroke: "currentColor",
|
|
1421
|
-
"stroke-width": "2",
|
|
1422
|
-
"pointer-events": "none",
|
|
1423
|
-
"aria-hidden": "true",
|
|
1424
|
-
focusable: "false"
|
|
1425
|
-
}, null, 8, Ee)) : p("", !0),
|
|
1426
|
-
k.value.drag.showSeparator ? (g(), m("path", {
|
|
1427
|
-
key: 2,
|
|
1428
|
-
d: Bt.value.separatorPath,
|
|
1429
|
-
stroke: H.value.borderColor,
|
|
1430
|
-
"stroke-width": Math.max(.5, Pt.value),
|
|
1431
|
-
"pointer-events": "none",
|
|
1432
|
-
"aria-hidden": "true",
|
|
1433
|
-
focusable: "false"
|
|
1434
|
-
}, null, 8, De)) : p("", !0),
|
|
1435
|
-
ee("path", {
|
|
1436
|
-
d: Bt.value.gripPath,
|
|
1437
|
-
stroke: k.value.drag.iconColor,
|
|
1438
|
-
"stroke-width": yt.value,
|
|
1439
|
-
"stroke-linecap": "round",
|
|
1440
|
-
opacity: k.value.drag.iconOpacity,
|
|
1441
|
-
"pointer-events": "none",
|
|
1442
|
-
"aria-hidden": "true",
|
|
1443
|
-
focusable: "false"
|
|
1444
|
-
}, null, 8, Oe)
|
|
1445
|
-
], 44, we)) : p("", !0)
|
|
1446
|
-
], 8, _e)
|
|
1447
|
-
], 34));
|
|
1448
|
-
}
|
|
1449
|
-
}, [["__scopeId", "data-v-4fe38f01"]]);
|
|
1450
|
-
//#endregion
|
|
1451
|
-
export { me as n, D as t };
|