vue-data-ui 3.17.13 → 3.18.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/README.md +1 -1
- package/dist/A11yDataTable-q2-8fSlJ.js +45 -0
- package/dist/Arrow-Cj6W6Xbi.js +116 -0
- package/dist/BaseDraggableDialog-BQcmQAK5.js +272 -0
- package/dist/BaseIcon-CEmt3Ifx.js +499 -0
- package/dist/BaseLegendToggle-DUIqQmwM.js +56 -0
- package/dist/BaseScanner-C7dmAref.js +27 -0
- package/dist/BaseZoomControls-Ce1yqas1.js +111 -0
- package/dist/ColorPicker-DS_QkH3W.js +255 -0
- package/dist/DataTable-BvDJEAma.js +150 -0
- package/dist/Legend-Gg5Q4Clb.js +114 -0
- package/dist/NonSvgPenAndPaper-D4Gh7O43.js +577 -0
- package/dist/PackageVersion-DhDKg-ez.js +11 -0
- package/dist/PenAndPaper-DwpL8Z0l.js +461 -0
- package/dist/RecursiveCircles-DPpLel6f.js +117 -0
- package/dist/RecursiveLabels-DBMJf_to.js +56 -0
- package/dist/RecursiveLinks-D06dBL4a.js +78 -0
- package/dist/Shape-DEGOZ6GG.js +141 -0
- package/dist/Slicer-BlfyiHHD.js +1144 -0
- package/dist/SlicerPreview-BPS8mYO2.js +1523 -0
- package/dist/SparkTooltip-c2DL7gqD.js +93 -0
- package/dist/Title-__gWq2g6.js +87 -0
- package/dist/Tooltip-B7lmdbac.js +307 -0
- package/dist/UserOptions-DMw8EZEo.js +1407 -0
- package/dist/_plugin-vue_export-helper-Dq1MygBL.js +8 -0
- package/dist/canvas-lib-DTaADQOK.js +79 -0
- package/dist/components/arrow.js +2 -5
- package/dist/components/vue-ui-3d-bar.js +2 -5
- package/dist/components/vue-ui-accordion.js +2 -5
- package/dist/components/vue-ui-age-pyramid.js +2 -5
- package/dist/components/vue-ui-annotator.js +2 -5
- package/dist/components/vue-ui-bullet.js +2 -5
- package/dist/components/vue-ui-bump.js +2 -5
- package/dist/components/vue-ui-candlestick.js +2 -5
- package/dist/components/vue-ui-carousel-table.js +2 -5
- package/dist/components/vue-ui-chestnut.js +2 -5
- package/dist/components/vue-ui-chord.js +2 -5
- package/dist/components/vue-ui-circle-pack.js +2 -5
- package/dist/components/vue-ui-cursor.js +2 -5
- package/dist/components/vue-ui-dag.js +2 -5
- package/dist/components/vue-ui-dashboard.js +2 -5
- package/dist/components/vue-ui-digits.js +2 -5
- package/dist/components/vue-ui-donut-evolution.js +2 -5
- package/dist/components/vue-ui-donut.js +2 -5
- package/dist/components/vue-ui-dumbbell.js +2 -5
- package/dist/components/vue-ui-flow.js +2 -5
- package/dist/components/vue-ui-funnel.js +2 -5
- package/dist/components/vue-ui-galaxy.js +2 -5
- package/dist/components/vue-ui-gauge.js +2 -5
- package/dist/components/vue-ui-geo.js +2 -5
- package/dist/components/vue-ui-gizmo.js +2 -5
- package/dist/components/vue-ui-heatmap.js +2 -5
- package/dist/components/vue-ui-history-plot.js +2 -5
- package/dist/components/vue-ui-horizontal-bar.js +2 -5
- package/dist/components/vue-ui-icon.js +2 -5
- package/dist/components/vue-ui-kpi.js +2 -5
- package/dist/components/vue-ui-mini-loader.js +2 -5
- package/dist/components/vue-ui-molecule.js +2 -5
- package/dist/components/vue-ui-mood-radar.js +2 -5
- package/dist/components/vue-ui-nested-donuts.js +2 -5
- package/dist/components/vue-ui-onion.js +2 -5
- package/dist/components/vue-ui-parallel-coordinate-plot.js +2 -5
- package/dist/components/vue-ui-pattern-seed.js +2 -5
- package/dist/components/vue-ui-pattern.js +2 -5
- package/dist/components/vue-ui-quadrant.js +2 -5
- package/dist/components/vue-ui-quick-chart.js +2 -5
- package/dist/components/vue-ui-radar.js +2 -5
- package/dist/components/vue-ui-rating.js +2 -5
- package/dist/components/vue-ui-relation-circle.js +2 -5
- package/dist/components/vue-ui-ridgeline.js +2 -5
- package/dist/components/vue-ui-rings.js +2 -5
- package/dist/components/vue-ui-scatter.js +2 -5
- package/dist/components/vue-ui-skeleton.js +2 -5
- package/dist/components/vue-ui-smiley.js +2 -5
- package/dist/components/vue-ui-spark-trend.js +2 -5
- package/dist/components/vue-ui-sparkbar.js +2 -5
- package/dist/components/vue-ui-sparkgauge.js +2 -5
- package/dist/components/vue-ui-sparkhistogram.js +2 -5
- package/dist/components/vue-ui-sparkline.js +2 -5
- package/dist/components/vue-ui-sparkstackbar.js +2 -5
- package/dist/components/vue-ui-stackbar.js +2 -5
- package/dist/components/vue-ui-stackline.js +2 -5
- package/dist/components/vue-ui-strip-plot.js +2 -5
- package/dist/components/vue-ui-table-heatmap.js +2 -5
- package/dist/components/vue-ui-table-sparkline.js +2 -5
- package/dist/components/vue-ui-table.js +2 -5
- package/dist/components/vue-ui-thermometer.js +2 -5
- package/dist/components/vue-ui-timer.js +2 -5
- package/dist/components/vue-ui-tiremarks.js +2 -5
- package/dist/components/vue-ui-treemap.js +2 -5
- package/dist/components/vue-ui-vertical-bar.js +2 -5
- package/dist/components/vue-ui-waffle.js +2 -5
- package/dist/components/vue-ui-wheel.js +2 -5
- package/dist/components/vue-ui-word-cloud.js +2 -5
- package/dist/components/vue-ui-world.js +2 -5
- package/dist/components/vue-ui-xy-canvas.js +2 -5
- package/dist/components/vue-ui-xy.js +2 -5
- package/dist/dom-to-png-9WSt6hXe.js +237 -0
- package/dist/exposedLib-CwWU4zv-.js +19 -0
- package/dist/geoProjections-CQIkC70z.js +146 -0
- package/dist/img-BjOr008R.js +74 -0
- package/dist/labelUtils-Cr97N8E1.js +19 -0
- package/dist/lib-BkiwukKO.js +1879 -0
- package/dist/patternUtils-B7BWu5bV.js +258 -0
- package/dist/pdf-DSXSFUnK.js +90 -0
- package/dist/rolldown-runtime-CAFD8bLK.js +11 -0
- package/dist/style.css +2 -1
- package/dist/types/arrow.d.ts +1 -1
- package/dist/types/utils.d.ts +23 -0
- package/dist/types/vue-data-ui.d.ts +4775 -627
- package/dist/types/vue-ui-3d-bar.d.ts +64 -9
- package/dist/types/vue-ui-accordion.d.ts +4 -3
- package/dist/types/vue-ui-age-pyramid.d.ts +79 -9
- package/dist/types/vue-ui-annotator.d.ts +3 -5
- package/dist/types/vue-ui-bullet.d.ts +60 -9
- package/dist/types/vue-ui-bump.d.ts +65 -9
- package/dist/types/vue-ui-candlestick.d.ts +83 -9
- package/dist/types/vue-ui-carousel-table.d.ts +36 -6
- package/dist/types/vue-ui-chestnut.d.ts +66 -9
- package/dist/types/vue-ui-chord.d.ts +78 -9
- package/dist/types/vue-ui-circle-pack.d.ts +86 -9
- package/dist/types/vue-ui-cursor.d.ts +4 -2
- package/dist/types/vue-ui-dag.d.ts +92 -9
- package/dist/types/vue-ui-dashboard.d.ts +43 -6
- package/dist/types/vue-ui-digits.d.ts +4 -2
- package/dist/types/vue-ui-donut-evolution.d.ts +70 -9
- package/dist/types/vue-ui-donut.d.ts +92 -9
- package/dist/types/vue-ui-dumbbell.d.ts +65 -9
- package/dist/types/vue-ui-flow.d.ts +79 -9
- package/dist/types/vue-ui-funnel.d.ts +55 -9
- package/dist/types/vue-ui-galaxy.d.ts +83 -9
- package/dist/types/vue-ui-gauge.d.ts +64 -9
- package/dist/types/vue-ui-geo.d.ts +71 -9
- package/dist/types/vue-ui-gizmo.d.ts +17 -6
- package/dist/types/vue-ui-heatmap.d.ts +73 -9
- package/dist/types/vue-ui-history-plot.d.ts +82 -9
- package/dist/types/vue-ui-horizontal-bar.d.ts +84 -9
- package/dist/types/vue-ui-icon.d.ts +2 -2
- package/dist/types/vue-ui-kpi.d.ts +21 -7
- package/dist/types/vue-ui-mini-loader.d.ts +5 -3
- package/dist/types/vue-ui-molecule.d.ts +86 -9
- package/dist/types/vue-ui-mood-radar.d.ts +66 -9
- package/dist/types/vue-ui-nested-donuts.d.ts +80 -9
- package/dist/types/vue-ui-onion.d.ts +77 -9
- package/dist/types/vue-ui-parallel-coordinate-plot.d.ts +92 -9
- package/dist/types/vue-ui-pattern-seed.d.ts +1 -1
- package/dist/types/vue-ui-pattern.d.ts +2 -2
- package/dist/types/vue-ui-quadrant.d.ts +86 -9
- package/dist/types/vue-ui-quick-chart.d.ts +79 -9
- package/dist/types/vue-ui-radar.d.ts +83 -9
- package/dist/types/vue-ui-rating.d.ts +22 -6
- package/dist/types/vue-ui-relation-circle.d.ts +66 -9
- package/dist/types/vue-ui-ridgeline.d.ts +69 -9
- package/dist/types/vue-ui-rings.d.ts +70 -9
- package/dist/types/vue-ui-scatter.d.ts +67 -9
- package/dist/types/vue-ui-skeleton.d.ts +3 -2
- package/dist/types/vue-ui-smiley.d.ts +3 -2
- package/dist/types/vue-ui-spark-trend.d.ts +14 -6
- package/dist/types/vue-ui-sparkbar.d.ts +27 -6
- package/dist/types/vue-ui-sparkgauge.d.ts +20 -6
- package/dist/types/vue-ui-sparkhistogram.d.ts +24 -6
- package/dist/types/vue-ui-sparkline.d.ts +35 -6
- package/dist/types/vue-ui-sparkstackbar.d.ts +35 -6
- package/dist/types/vue-ui-stackbar.d.ts +85 -9
- package/dist/types/vue-ui-stackline.d.ts +81 -9
- package/dist/types/vue-ui-strip-plot.d.ts +66 -9
- package/dist/types/vue-ui-table-heatmap.d.ts +52 -6
- package/dist/types/vue-ui-table-sparkline.d.ts +30 -6
- package/dist/types/vue-ui-table.d.ts +10 -2
- package/dist/types/vue-ui-thermometer.d.ts +46 -9
- package/dist/types/vue-ui-timer.d.ts +31 -5
- package/dist/types/vue-ui-tiremarks.d.ts +46 -9
- package/dist/types/vue-ui-treemap.d.ts +73 -9
- package/dist/types/vue-ui-vertical-bar.d.ts +2 -2
- package/dist/types/vue-ui-waffle.d.ts +72 -9
- package/dist/types/vue-ui-wheel.d.ts +46 -9
- package/dist/types/vue-ui-word-cloud.d.ts +73 -9
- package/dist/types/vue-ui-world.d.ts +68 -9
- package/dist/types/vue-ui-xy-canvas.d.ts +75 -9
- package/dist/types/vue-ui-xy.d.ts +108 -10
- package/dist/useAutoSizeLabelsInsideViewbox-dp-3Gg97.js +50 -0
- package/dist/useChartAccessibility-Do37qcw2.js +12 -0
- package/dist/useConfig-BV0kTCnO.js +7431 -0
- package/dist/useFitSvgText-C-MEdAfe.js +63 -0
- package/dist/useNestedProp-Ck4hsrpu.js +10 -0
- package/dist/useObjectBindings-Ce_ZZk-f.js +189 -0
- package/dist/usePanZoom-B-4M_gmY.js +157 -0
- package/dist/usePrefersMotion-BywLbIko.js +15 -0
- package/dist/usePrinter-X0yWOynH.js +49 -0
- package/dist/useResponsive-CrAInupd.js +19 -0
- package/dist/useStableElementSize-0I1IpHPl.js +77 -0
- package/dist/useSvgExport-Dtu973wa.js +755 -0
- package/dist/useTableResponsive-DrM1xqII.js +24 -0
- package/dist/useThemeCheck-rFK9Zlb_.js +24 -0
- package/dist/useTimeLabelCollider-Dm55Emzg.js +57 -0
- package/dist/useTimeLabels-C0x7zUXP.js +272 -0
- package/dist/useUserOptionState-CjPJPTg2.js +15 -0
- package/dist/utils.js +27 -44
- package/dist/vClickOutside-CbX_bC9A.js +13 -0
- package/dist/vue-data-ui-DIh8ayZc.js +274 -0
- package/dist/vue-data-ui.js +76 -167
- package/dist/vue-ui-3d-bar-BZ8_6ylo.js +1747 -0
- package/dist/vue-ui-accordion-cVv18nTV.js +81 -0
- package/dist/vue-ui-age-pyramid-BR3i-CgS.js +1226 -0
- package/dist/vue-ui-annotator-B9mA_PlF.js +2899 -0
- package/dist/vue-ui-bullet-ByJdNLVf.js +700 -0
- package/dist/vue-ui-bump-Ps1gkA-F.js +1239 -0
- package/dist/vue-ui-candlestick-0C1QFoV4.js +1802 -0
- package/dist/vue-ui-carousel-table-1P28pCRK.js +445 -0
- package/dist/vue-ui-chestnut-CJOCGWwX.js +2000 -0
- package/dist/vue-ui-chord-BpiVJCCm.js +1381 -0
- package/dist/vue-ui-circle-pack-C3wvXz1f.js +1183 -0
- package/dist/vue-ui-cursor-CNn_3b24.js +283 -0
- package/dist/vue-ui-dag-DRVXVCJV.js +2899 -0
- package/dist/vue-ui-dashboard-gOXyms0o.js +503 -0
- package/dist/vue-ui-digits-DIKyN3z6.js +209 -0
- package/dist/vue-ui-donut-RogzKj0G.js +2396 -0
- package/dist/vue-ui-donut-evolution-Bxz06Qqf.js +1490 -0
- package/dist/vue-ui-dumbbell-D10T4gmB.js +1517 -0
- package/dist/vue-ui-flow-OK563Z46.js +1223 -0
- package/dist/vue-ui-funnel-nWmbiJu5.js +767 -0
- package/dist/vue-ui-galaxy-CtaTlHWZ.js +1062 -0
- package/dist/vue-ui-gauge-DWTEHJqX.js +910 -0
- package/dist/vue-ui-geo-DUpWvv5m.js +1504 -0
- package/dist/vue-ui-gizmo-vddzP4dM.js +225 -0
- package/dist/vue-ui-heatmap-CUE_zJQa.js +1556 -0
- package/dist/vue-ui-history-plot-CcRg_NgJ.js +1551 -0
- package/dist/vue-ui-horizontal-bar-DX5aZOEn.js +1669 -0
- package/dist/vue-ui-kpi-B74v84Hu.js +96 -0
- package/dist/vue-ui-mini-loader-BcCG6Yqb.js +125 -0
- package/dist/vue-ui-molecule-CVdB8rxf.js +912 -0
- package/dist/vue-ui-mood-radar-CWDVBOck.js +1138 -0
- package/dist/vue-ui-nested-donuts-Be8b5d81.js +1472 -0
- package/dist/vue-ui-onion-Cs90yQQZ.js +1188 -0
- package/dist/vue-ui-parallel-coordinate-plot-D-mZdTop.js +1413 -0
- package/dist/vue-ui-pattern-Bj-IPFr2.js +154 -0
- package/dist/vue-ui-pattern-seed-abRweCDE.js +61 -0
- package/dist/vue-ui-quadrant-DLD_ZR9M.js +1966 -0
- package/dist/vue-ui-quick-chart-UWjZdmzt.js +2459 -0
- package/dist/vue-ui-radar-Bxu07MOG.js +1214 -0
- package/dist/vue-ui-rating-DA9Bmfyb.js +343 -0
- package/dist/vue-ui-relation-circle-O5s1UJtt.js +914 -0
- package/dist/vue-ui-ridgeline-C3siN0d_.js +1612 -0
- package/dist/vue-ui-rings-DVVDtwhB.js +1231 -0
- package/dist/vue-ui-scatter-Cfvh06OC.js +2380 -0
- package/dist/vue-ui-skeleton-CxTmGCQp.js +2556 -0
- package/dist/vue-ui-smiley-B6nc7b71.js +356 -0
- package/dist/vue-ui-spark-trend--39vutfQ.js +438 -0
- package/dist/vue-ui-sparkbar-DhCRNOu4.js +393 -0
- package/dist/vue-ui-sparkgauge-6Igkqlqs.js +255 -0
- package/dist/vue-ui-sparkhistogram-BLEzZSZi.js +560 -0
- package/dist/vue-ui-sparkline-ppwKM4aO.js +1503 -0
- package/dist/vue-ui-sparkstackbar-uIzSq9Wh.js +660 -0
- package/dist/vue-ui-stackbar-CdOkMCbI.js +2235 -0
- package/dist/vue-ui-stackline-DifD9OXC.js +2362 -0
- package/dist/vue-ui-strip-plot-D1LjIVqK.js +1328 -0
- package/dist/vue-ui-table-WDkEyyQ0.js +1338 -0
- package/dist/vue-ui-table-heatmap-CfGJVzI3.js +334 -0
- package/dist/vue-ui-table-sparkline-BEWWP4Rq.js +697 -0
- package/dist/vue-ui-thermometer-CFWOAB8K.js +753 -0
- package/dist/vue-ui-timer-D1DQyf9i.js +439 -0
- package/dist/vue-ui-tiremarks-IeM3BlPW.js +542 -0
- package/dist/vue-ui-treemap-BGZM7ibv.js +1575 -0
- package/dist/vue-ui-waffle-a3dFVBk4.js +1350 -0
- package/dist/vue-ui-wheel-OnIRQJ8a.js +875 -0
- package/dist/vue-ui-word-cloud-C9SkyutR.js +1644 -0
- package/dist/vue-ui-world-CEevuFbk.js +14252 -0
- package/dist/vue-ui-xy-1hee-IEM.js +4114 -0
- package/dist/vue-ui-xy-canvas-D2f0d45c.js +1774 -0
- package/dist/vue_ui_3d_bar-CXKqO5Ej.js +185 -0
- package/dist/vue_ui_age_pyramid-BON8QI6X.js +301 -0
- package/dist/vue_ui_bullet-CE5sFT7u.js +186 -0
- package/dist/vue_ui_bump-frnXaXul.js +201 -0
- package/dist/vue_ui_candlestick-sY6UtOop.js +374 -0
- package/dist/vue_ui_chestnut-BiUZFv40.js +305 -0
- package/dist/vue_ui_chord-DpyR_b9A.js +275 -0
- package/dist/vue_ui_circle_pack-DBKz_Fi_.js +130 -0
- package/dist/vue_ui_dag-Ci_MOnvd.js +258 -0
- package/dist/vue_ui_donut-Cx2_BGcQ.js +358 -0
- package/dist/vue_ui_donut_evolution-CAJefrHs.js +717 -0
- package/dist/vue_ui_dumbbell-CClzAZTN.js +304 -0
- package/dist/vue_ui_flow-CCHO1Lo9.js +238 -0
- package/dist/vue_ui_funnel-h8q2mRpC.js +234 -0
- package/dist/vue_ui_galaxy-70vtkEBw.js +265 -0
- package/dist/vue_ui_gauge-C17CgfzN.js +178 -0
- package/dist/vue_ui_geo-C0UbQ0Lc.js +248 -0
- package/dist/vue_ui_heatmap-BqPP3J4M.js +319 -0
- package/dist/vue_ui_history_plot-C5nytDHh.js +413 -0
- package/dist/vue_ui_horizontal_bar-Bqxorkc_.js +341 -0
- package/dist/vue_ui_molecule-Dka4JBOp.js +231 -0
- package/dist/vue_ui_mood_radar-Dg4ijm53.js +281 -0
- package/dist/vue_ui_nested_donuts-BY9cOoHF.js +273 -0
- package/dist/vue_ui_onion-DTV9cup-.js +293 -0
- package/dist/vue_ui_parallel_coordinate_plot-CNWrDh96.js +278 -0
- package/dist/vue_ui_quadrant-3kjYvxpj.js +428 -0
- package/dist/vue_ui_quick_chart--VaYQuM4.js +139 -0
- package/dist/vue_ui_radar-Dxx9GJmj.js +306 -0
- package/dist/vue_ui_relation_circle-Cr0I2SoU.js +98 -0
- package/dist/vue_ui_ridgeline-CAtYca4b.js +767 -0
- package/dist/vue_ui_rings-DXC1VeX5.js +320 -0
- package/dist/vue_ui_scatter-D2S2j0ap.js +479 -0
- package/dist/vue_ui_spark_trend-BHMQ6_1p.js +82 -0
- package/dist/vue_ui_sparkbar-BR6hbuDE.js +64 -0
- package/dist/vue_ui_sparkgauge-xfPRHnMv.js +90 -0
- package/dist/vue_ui_sparkhistogram-CJRENZ1C.js +123 -0
- package/dist/vue_ui_sparkline-wgk7yO7E.js +151 -0
- package/dist/vue_ui_sparkstackbar-C5qZMmAl.js +175 -0
- package/dist/vue_ui_stackbar-BW_C3MXw.js +412 -0
- package/dist/vue_ui_stackline-DpI2LnjO.js +426 -0
- package/dist/vue_ui_strip_plot-8ZelqC5b.js +301 -0
- package/dist/vue_ui_table_heatmap-BGUjA0WA.js +80 -0
- package/dist/vue_ui_table_sparkline-i0Q-N_we.js +124 -0
- package/dist/vue_ui_thermometer-CuN7Gpez.js +123 -0
- package/dist/vue_ui_tiremarks-A6UHC0c3.js +122 -0
- package/dist/vue_ui_treemap-BQp06q-g.js +328 -0
- package/dist/vue_ui_vertical_bar-CJSD1FZS.js +247 -0
- package/dist/vue_ui_waffle-C_Ev4l7B.js +292 -0
- package/dist/vue_ui_wheel-DdkTPXJU.js +133 -0
- package/dist/vue_ui_word_cloud-B1PbsYPc.js +254 -0
- package/dist/vue_ui_xy-BYPqfYyx.js +482 -0
- package/dist/vue_ui_xy_canvas-CMHGNrLf.js +408 -0
- package/package.json +7 -7
- package/dist/A11yDataTable-BpmuNomI.js +0 -54
- package/dist/Arrow-dSvLFssU.js +0 -101
- package/dist/BaseDraggableDialog-Di8Hlru3.js +0 -249
- package/dist/BaseIcon-DX0hTWa-.js +0 -476
- package/dist/BaseLegendToggle-cMP8M2u0.js +0 -47
- package/dist/BaseScanner-C2j3TsSY.js +0 -36
- package/dist/BaseZoomControls-CVSC1-SU.js +0 -123
- package/dist/ColorPicker-bAxGcXK0.js +0 -271
- package/dist/DataTable-cMnb68Ik.js +0 -145
- package/dist/Legend-DGN5lY60.js +0 -104
- package/dist/NonSvgPenAndPaper-B6E0zEYe.js +0 -573
- package/dist/PackageVersion-BfrCAH6_.js +0 -10
- package/dist/PenAndPaper-CJDoB5H9.js +0 -527
- package/dist/RecursiveCircles-BE6GoMmo.js +0 -101
- package/dist/RecursiveLabels-BhQMS9Sm.js +0 -55
- package/dist/RecursiveLinks-BDwyYfP-.js +0 -83
- package/dist/Shape-CxJ5_Rre.js +0 -116
- package/dist/Slicer-D7UcO8sN.js +0 -1145
- package/dist/SlicerPreview-D_CgrN_7.js +0 -1580
- package/dist/SparkTooltip-D4bM-kfz.js +0 -68
- package/dist/Title-BbKoiBk2.js +0 -88
- package/dist/Tooltip-Cvt7Fi0Q.js +0 -299
- package/dist/UserOptions-DVduN6X7.js +0 -1474
- package/dist/_plugin-vue_export-helper-CHgC5LLL.js +0 -9
- package/dist/dom-to-png-DGvx6i5V.js +0 -262
- package/dist/exposedLib-sJvY1pST.js +0 -22
- package/dist/geoProjections-BFq2sOBY.js +0 -162
- package/dist/img-CjTQXS0U.js +0 -57
- package/dist/labelUtils-DX9oyq3C.js +0 -26
- package/dist/lib-DMzrGQHK.js +0 -2477
- package/dist/patternUtils-BINhU4Ky.js +0 -615
- package/dist/pdf-C4H4o1Cj.js +0 -88
- package/dist/useAutoSizeLabelsInsideViewbox-izlGDfwu.js +0 -55
- package/dist/useChartAccessibility-cp6XQtqi.js +0 -15
- package/dist/useConfig-CG4HT3wS.js +0 -7901
- package/dist/useFitSvgText-2crs6Fv5.js +0 -69
- package/dist/useNestedProp-DH0BEVVS.js +0 -13
- package/dist/useObjectBindings-Dixg-RIe.js +0 -228
- package/dist/usePanZoom-BbDhcKWf.js +0 -141
- package/dist/usePrefersMotion-Co0nj1eS.js +0 -17
- package/dist/usePrinter-C4t8DdQ-.js +0 -51
- package/dist/useResponsive-DfdjqQps.js +0 -195
- package/dist/useStableElementSize-C48ZVcZQ.js +0 -77
- package/dist/useSvgExport-BTG4hVPO.js +0 -870
- package/dist/useTableResponsive-BpfiEtzR.js +0 -26
- package/dist/useThemeCheck-C9Ccl7U9.js +0 -36
- package/dist/useTimeLabelCollider-D3JeJ6Ye.js +0 -86
- package/dist/useTimeLabels-Cv0tD9In.js +0 -307
- package/dist/useUserOptionState-B7Ej974k.js +0 -19
- package/dist/vClickOutside-C6WiFswA.js +0 -13
- package/dist/vue-data-ui-D1ZI7Y4l.js +0 -433
- package/dist/vue-ui-3d-bar-DEjKYzI5.js +0 -1824
- package/dist/vue-ui-accordion-DFtpH_16.js +0 -92
- package/dist/vue-ui-age-pyramid-LiC9hTjP.js +0 -1179
- package/dist/vue-ui-annotator-DrKnQoHf.js +0 -2991
- package/dist/vue-ui-bullet-DdxEINdq.js +0 -769
- package/dist/vue-ui-bump-CdgO1V7z.js +0 -1250
- package/dist/vue-ui-candlestick-DxJnPwto.js +0 -1775
- package/dist/vue-ui-carousel-table-CMefu5TI.js +0 -487
- package/dist/vue-ui-chestnut-BnGN72PO.js +0 -2001
- package/dist/vue-ui-chord-DWyar45U.js +0 -1457
- package/dist/vue-ui-circle-pack-CQ8vF2XH.js +0 -1076
- package/dist/vue-ui-cursor-HHOdkmyB.js +0 -260
- package/dist/vue-ui-dag-BDWPBElq.js +0 -3209
- package/dist/vue-ui-dashboard-Dg_I3X2a.js +0 -627
- package/dist/vue-ui-digits-CZmdir8V.js +0 -211
- package/dist/vue-ui-donut-BKegKHxj.js +0 -2608
- package/dist/vue-ui-donut-evolution-047dE4Lu.js +0 -1578
- package/dist/vue-ui-dumbbell-BL4ZMChj.js +0 -1552
- package/dist/vue-ui-flow-BAqtyunQ.js +0 -1279
- package/dist/vue-ui-funnel-Pl2sEOZs.js +0 -823
- package/dist/vue-ui-galaxy-CBF5Wsax.js +0 -1108
- package/dist/vue-ui-gauge-COV_S0Vp.js +0 -955
- package/dist/vue-ui-geo-CaPXElPf.js +0 -1510
- package/dist/vue-ui-gizmo-Csn7up96.js +0 -238
- package/dist/vue-ui-heatmap-Cpb0BYLa.js +0 -1694
- package/dist/vue-ui-history-plot-ZZEdzFCE.js +0 -1564
- package/dist/vue-ui-horizontal-bar-BonPYUZf.js +0 -1735
- package/dist/vue-ui-kpi-DoHhSsDK.js +0 -130
- package/dist/vue-ui-mini-loader-DOTBVCLE.js +0 -138
- package/dist/vue-ui-molecule-mVYnXouV.js +0 -945
- package/dist/vue-ui-mood-radar-DPvwnc3z.js +0 -1197
- package/dist/vue-ui-nested-donuts-C7E6TXrZ.js +0 -1702
- package/dist/vue-ui-onion-BGIlFhGB.js +0 -1207
- package/dist/vue-ui-parallel-coordinate-plot-C6G_A9ua.js +0 -1432
- package/dist/vue-ui-pattern-mXZW_pvA.js +0 -146
- package/dist/vue-ui-pattern-seed-BcNlxb2i.js +0 -36
- package/dist/vue-ui-quadrant-CVpIeYOB.js +0 -1918
- package/dist/vue-ui-quick-chart-CcV8qn9-.js +0 -2514
- package/dist/vue-ui-radar-G4AV1rBo.js +0 -1259
- package/dist/vue-ui-rating-CqPlP88P.js +0 -370
- package/dist/vue-ui-relation-circle-CkZ8oFVV.js +0 -856
- package/dist/vue-ui-ridgeline-CBTyYn6Q.js +0 -1737
- package/dist/vue-ui-rings-CSIOqFiP.js +0 -1256
- package/dist/vue-ui-scatter-AuC46ufT.js +0 -2345
- package/dist/vue-ui-skeleton-YD6rZjY_.js +0 -2475
- package/dist/vue-ui-smiley-CY0WFv2j.js +0 -391
- package/dist/vue-ui-spark-trend-D8KGIt-R.js +0 -423
- package/dist/vue-ui-sparkbar-BjWGJjzN.js +0 -424
- package/dist/vue-ui-sparkgauge-Dab5mss7.js +0 -285
- package/dist/vue-ui-sparkhistogram-D0rsmiPh.js +0 -559
- package/dist/vue-ui-sparkline-BCaauQuX.js +0 -1550
- package/dist/vue-ui-sparkstackbar-NT5yD6xA.js +0 -672
- package/dist/vue-ui-stackbar-ChBk_A1c.js +0 -2393
- package/dist/vue-ui-stackline-Cujamlze.js +0 -2490
- package/dist/vue-ui-strip-plot-CGBumG6I.js +0 -1293
- package/dist/vue-ui-table-BX2iMku4.js +0 -1726
- package/dist/vue-ui-table-heatmap-KXgXYVXm.js +0 -353
- package/dist/vue-ui-table-sparkline-C3NWnry0.js +0 -803
- package/dist/vue-ui-thermometer-DvdceZB1.js +0 -743
- package/dist/vue-ui-timer-XWAbvuAY.js +0 -504
- package/dist/vue-ui-tiremarks-B-YI1RlT.js +0 -578
- package/dist/vue-ui-treemap-AzorGfmd.js +0 -1757
- package/dist/vue-ui-waffle-CKtUvdTE.js +0 -1442
- package/dist/vue-ui-wheel-CnsLEArZ.js +0 -908
- package/dist/vue-ui-word-cloud-iAme2ihe.js +0 -1644
- package/dist/vue-ui-world-D5rrC9rw.js +0 -14452
- package/dist/vue-ui-xy-C_Q9chQe.js +0 -4468
- package/dist/vue-ui-xy-canvas-DG0299qE.js +0 -2107
- package/dist/vue_ui_3d_bar-CL0iX8Qi.js +0 -22
- package/dist/vue_ui_age_pyramid-8H8WSL7J.js +0 -22
- package/dist/vue_ui_bullet-Ckqieba5.js +0 -22
- package/dist/vue_ui_bump-CIht647H.js +0 -22
- package/dist/vue_ui_candlestick-BAMn-VGw.js +0 -22
- package/dist/vue_ui_chestnut-BloFvDuV.js +0 -22
- package/dist/vue_ui_chord-Bc1_ocwK.js +0 -22
- package/dist/vue_ui_circle_pack-CLmw8nHe.js +0 -22
- package/dist/vue_ui_dag-ZOwuDBZ8.js +0 -22
- package/dist/vue_ui_donut-CA4dgV8J.js +0 -22
- package/dist/vue_ui_donut_evolution-DFQU-rqE.js +0 -22
- package/dist/vue_ui_dumbbell-BCOHDiPk.js +0 -22
- package/dist/vue_ui_flow-BErINgox.js +0 -22
- package/dist/vue_ui_funnel-yuaMZ-yb.js +0 -22
- package/dist/vue_ui_galaxy-D95AN4FT.js +0 -22
- package/dist/vue_ui_gauge-BMEuRC4J.js +0 -22
- package/dist/vue_ui_geo--kg4VoVX.js +0 -22
- package/dist/vue_ui_heatmap-C9u993qE.js +0 -22
- package/dist/vue_ui_history_plot-BCKk1CrQ.js +0 -22
- package/dist/vue_ui_horizontal_bar-BEagrV0T.js +0 -22
- package/dist/vue_ui_molecule-BtvlINUh.js +0 -22
- package/dist/vue_ui_mood_radar-BUs6Fdn8.js +0 -22
- package/dist/vue_ui_nested_donuts-DvTrWT_C.js +0 -22
- package/dist/vue_ui_onion-CxWH9_OZ.js +0 -22
- package/dist/vue_ui_parallel_coordinate_plot-DH3cFJ3n.js +0 -22
- package/dist/vue_ui_quadrant-DjRs--Uz.js +0 -22
- package/dist/vue_ui_quick_chart-DMCjEjPe.js +0 -22
- package/dist/vue_ui_radar-DryGBOrz.js +0 -22
- package/dist/vue_ui_relation_circle-CCroen7h.js +0 -22
- package/dist/vue_ui_ridgeline-j4rVmpEp.js +0 -22
- package/dist/vue_ui_rings-CxOrekqA.js +0 -22
- package/dist/vue_ui_scatter-Bu1EAy9H.js +0 -22
- package/dist/vue_ui_spark_trend-3BjrSprO.js +0 -22
- package/dist/vue_ui_sparkbar-BsMzz5Um.js +0 -22
- package/dist/vue_ui_sparkgauge-KnjASOZs.js +0 -22
- package/dist/vue_ui_sparkhistogram-GBdzIVvS.js +0 -22
- package/dist/vue_ui_sparkline-CQ8DJVJx.js +0 -22
- package/dist/vue_ui_sparkstackbar-BSexvOuM.js +0 -22
- package/dist/vue_ui_stackbar-CuDC4O4b.js +0 -22
- package/dist/vue_ui_stackline-QTh-nuxE.js +0 -22
- package/dist/vue_ui_strip_plot-B9ypi_F3.js +0 -22
- package/dist/vue_ui_table_heatmap-CkvipPVy.js +0 -16
- package/dist/vue_ui_table_sparkline-yQdijcyJ.js +0 -22
- package/dist/vue_ui_thermometer-BTmjRBH8.js +0 -22
- package/dist/vue_ui_tiremarks-DBotWfi8.js +0 -22
- package/dist/vue_ui_treemap-D9-AIkT-.js +0 -22
- package/dist/vue_ui_vertical_bar-CELc39b8.js +0 -18
- package/dist/vue_ui_waffle-M2h-uJQ_.js +0 -22
- package/dist/vue_ui_wheel-LqBz3lv4.js +0 -22
- package/dist/vue_ui_word_cloud-mKAtBxHR.js +0 -22
- package/dist/vue_ui_xy-esktmpg-.js +0 -22
- package/dist/vue_ui_xy_canvas-6BBDSowT.js +0 -22
|
@@ -0,0 +1,114 @@
|
|
|
1
|
+
import { t as e } from "./rolldown-runtime-CAFD8bLK.js";
|
|
2
|
+
import { ht as t } from "./lib-BkiwukKO.js";
|
|
3
|
+
import { t as n } from "./Shape-DEGOZ6GG.js";
|
|
4
|
+
import { t as r } from "./_plugin-vue_export-helper-Dq1MygBL.js";
|
|
5
|
+
import { Fragment as i, createCommentVNode as a, createElementBlock as o, createVNode as s, mergeProps as c, normalizeClass as l, normalizeStyle as u, openBlock as d, renderList as f, renderSlot as p, unref as m } from "vue";
|
|
6
|
+
//#region src/atoms/Legend.vue
|
|
7
|
+
var h = /* @__PURE__ */ e({ default: () => y }), g = ["id"], _ = [
|
|
8
|
+
"role",
|
|
9
|
+
"tabindex",
|
|
10
|
+
"onKeydown",
|
|
11
|
+
"onFocus"
|
|
12
|
+
], v = ["onClick", "viewBox"], y = /* @__PURE__ */ r({
|
|
13
|
+
__name: "Legend",
|
|
14
|
+
props: {
|
|
15
|
+
legendSet: {
|
|
16
|
+
type: Array,
|
|
17
|
+
default() {
|
|
18
|
+
return [];
|
|
19
|
+
}
|
|
20
|
+
},
|
|
21
|
+
config: {
|
|
22
|
+
type: Object,
|
|
23
|
+
default() {
|
|
24
|
+
return {};
|
|
25
|
+
}
|
|
26
|
+
},
|
|
27
|
+
id: {
|
|
28
|
+
type: String,
|
|
29
|
+
default: ""
|
|
30
|
+
},
|
|
31
|
+
clickable: {
|
|
32
|
+
type: Boolean,
|
|
33
|
+
default: !0
|
|
34
|
+
},
|
|
35
|
+
isCursorPointer: {
|
|
36
|
+
type: Boolean,
|
|
37
|
+
default: !1
|
|
38
|
+
}
|
|
39
|
+
},
|
|
40
|
+
emits: ["clickMarker", "focusMarker"],
|
|
41
|
+
setup(e, { emit: r }) {
|
|
42
|
+
let h = e, y = r;
|
|
43
|
+
function b(e, t) {
|
|
44
|
+
h.clickable && y("clickMarker", {
|
|
45
|
+
legend: e,
|
|
46
|
+
i: t
|
|
47
|
+
});
|
|
48
|
+
}
|
|
49
|
+
function x(e, t, n) {
|
|
50
|
+
h.clickable && (e.key === "Enter" || e.key === " ") && (e.preventDefault(), b(t, n));
|
|
51
|
+
}
|
|
52
|
+
function S(e, t, n) {
|
|
53
|
+
e.preventDefault(), y("focusMarker", {
|
|
54
|
+
legend: t,
|
|
55
|
+
i: n
|
|
56
|
+
});
|
|
57
|
+
}
|
|
58
|
+
return (r, h) => (d(), o("div", {
|
|
59
|
+
id: e.id,
|
|
60
|
+
class: "vue-data-ui-legend",
|
|
61
|
+
style: u({
|
|
62
|
+
background: e.config.backgroundColor,
|
|
63
|
+
color: e.config.color,
|
|
64
|
+
paddingBottom: (e.config.paddingBottom ?? 0) + "px",
|
|
65
|
+
paddingTop: (e.config.paddingTop ?? 12) + "px",
|
|
66
|
+
fontWeight: e.config.fontWeight,
|
|
67
|
+
fontSize: `var(--legend-font-size, ${e.config.fontSize ?? 14}px)`
|
|
68
|
+
})
|
|
69
|
+
}, [
|
|
70
|
+
p(r.$slots, "legendTitle", { titleSet: e.legendSet }, void 0, !0),
|
|
71
|
+
p(r.$slots, "legendToggle", {}, void 0, !0),
|
|
72
|
+
(d(!0), o(i, null, f(e.legendSet, (i, f) => (d(), o("div", {
|
|
73
|
+
key: `legend_${f}`,
|
|
74
|
+
class: l({
|
|
75
|
+
"vue-data-ui-legend-item": !0,
|
|
76
|
+
active: e.clickable && e.isCursorPointer
|
|
77
|
+
}),
|
|
78
|
+
role: e.clickable ? "button" : void 0,
|
|
79
|
+
tabindex: e.clickable ? 0 : void 0,
|
|
80
|
+
onKeydown: (e) => x(e, i, f),
|
|
81
|
+
onFocus: (e) => S(e, i, f)
|
|
82
|
+
}, [i.shape ? (d(), o("svg", {
|
|
83
|
+
key: 0,
|
|
84
|
+
onClick: (e) => b(i, f),
|
|
85
|
+
height: "1em",
|
|
86
|
+
width: "1em",
|
|
87
|
+
viewBox: i.shape && i.shape === "star" ? "-10 -10 80 80" : "0 0 60 60",
|
|
88
|
+
style: u(`overflow: visible; opacity:${i.opacity}`),
|
|
89
|
+
"aria-hidden": "true"
|
|
90
|
+
}, [s(n, {
|
|
91
|
+
stroke: "none",
|
|
92
|
+
shape: i.shape,
|
|
93
|
+
radius: 30,
|
|
94
|
+
plot: {
|
|
95
|
+
x: 30,
|
|
96
|
+
y: i.shape === "triangle" ? 36 : 30
|
|
97
|
+
},
|
|
98
|
+
fill: i.color
|
|
99
|
+
}, null, 8, [
|
|
100
|
+
"shape",
|
|
101
|
+
"plot",
|
|
102
|
+
"fill"
|
|
103
|
+
]), p(r.$slots, "legend-pattern", c({ ref_for: !0 }, {
|
|
104
|
+
legend: i,
|
|
105
|
+
index: m(t)(i.absoluteIndex) ? i.absoluteIndex : f
|
|
106
|
+
}), void 0, !0)], 12, v)) : a("", !0), p(r.$slots, "item", {
|
|
107
|
+
legend: i,
|
|
108
|
+
index: f
|
|
109
|
+
}, void 0, !0)], 42, _))), 128))
|
|
110
|
+
], 12, g));
|
|
111
|
+
}
|
|
112
|
+
}, [["__scopeId", "data-v-5f0ae4cc"]]);
|
|
113
|
+
//#endregion
|
|
114
|
+
export { h as n, y as t };
|
|
@@ -0,0 +1,577 @@
|
|
|
1
|
+
import { G as e, H as t, t as n, yt as r } from "./lib-BkiwukKO.js";
|
|
2
|
+
import { t as i } from "./_plugin-vue_export-helper-Dq1MygBL.js";
|
|
3
|
+
import { t as a } from "./BaseIcon-CEmt3Ifx.js";
|
|
4
|
+
import { t as o } from "./ColorPicker-DS_QkH3W.js";
|
|
5
|
+
import { Fragment as s, computed as c, createCommentVNode as l, createElementBlock as u, createElementVNode as d, createVNode as f, guardReactiveProps as p, nextTick as ee, normalizeClass as m, normalizeProps as h, normalizeStyle as g, onBeforeUnmount as te, onMounted as ne, openBlock as _, ref as v, renderList as y, renderSlot as b, toDisplayString as x, unref as re, vModelText as ie, watch as S, withCtx as ae, withDirectives as oe, withModifiers as se } from "vue";
|
|
6
|
+
//#region src/atoms/NonSvgPenAndPaper.vue
|
|
7
|
+
var ce = ["disabled"], le = [
|
|
8
|
+
"data-mode",
|
|
9
|
+
"xmlns",
|
|
10
|
+
"viewBox"
|
|
11
|
+
], ue = [
|
|
12
|
+
"cx",
|
|
13
|
+
"cy",
|
|
14
|
+
"r",
|
|
15
|
+
"fill"
|
|
16
|
+
], de = [
|
|
17
|
+
"x1",
|
|
18
|
+
"y1",
|
|
19
|
+
"x2",
|
|
20
|
+
"y2",
|
|
21
|
+
"stroke",
|
|
22
|
+
"stroke-width"
|
|
23
|
+
], fe = [
|
|
24
|
+
"x1",
|
|
25
|
+
"y1",
|
|
26
|
+
"x2",
|
|
27
|
+
"y2",
|
|
28
|
+
"stroke",
|
|
29
|
+
"stroke-width",
|
|
30
|
+
"marker-end"
|
|
31
|
+
], pe = [
|
|
32
|
+
"d",
|
|
33
|
+
"stroke",
|
|
34
|
+
"stroke-width"
|
|
35
|
+
], me = [
|
|
36
|
+
"x",
|
|
37
|
+
"y",
|
|
38
|
+
"fill",
|
|
39
|
+
"font-size"
|
|
40
|
+
], he = ["x", "dy"], ge = [
|
|
41
|
+
"d",
|
|
42
|
+
"stroke",
|
|
43
|
+
"stroke-width"
|
|
44
|
+
], _e = /* @__PURE__ */ i({
|
|
45
|
+
__name: "NonSvgPenAndPaper",
|
|
46
|
+
props: {
|
|
47
|
+
parent: { type: HTMLElement },
|
|
48
|
+
backgroundColor: {
|
|
49
|
+
type: String,
|
|
50
|
+
default: "#FFFFFF"
|
|
51
|
+
},
|
|
52
|
+
color: {
|
|
53
|
+
type: String,
|
|
54
|
+
default: "#2D353C"
|
|
55
|
+
},
|
|
56
|
+
active: {
|
|
57
|
+
type: Boolean,
|
|
58
|
+
default: !1
|
|
59
|
+
},
|
|
60
|
+
isCursorPointer: {
|
|
61
|
+
type: Boolean,
|
|
62
|
+
default: !1
|
|
63
|
+
}
|
|
64
|
+
},
|
|
65
|
+
emits: ["close"],
|
|
66
|
+
setup(i, { emit: _e }) {
|
|
67
|
+
let C = i, ve = _e, w = v([]), T = v([]), ye = v("0 0 0 0"), E = v(C.color), D = v(1), O = v(null), k = v(!1), A = v(null), j = v({
|
|
68
|
+
x: 0,
|
|
69
|
+
y: 0
|
|
70
|
+
}), M = v([""]), N = v({
|
|
71
|
+
row: 0,
|
|
72
|
+
col: 0
|
|
73
|
+
}), P = v(16), be = 1, F = [
|
|
74
|
+
"arrow",
|
|
75
|
+
"text",
|
|
76
|
+
"line",
|
|
77
|
+
"draw"
|
|
78
|
+
], I = v(0), L = c(() => F[I.value]), R = v(null);
|
|
79
|
+
v(null), v(null);
|
|
80
|
+
let z = v(`arrow-${t()}`), B = v(`arrow-def-${t()}`), xe = {
|
|
81
|
+
arrow: "plotArrow",
|
|
82
|
+
text: "text",
|
|
83
|
+
line: "plotLine",
|
|
84
|
+
draw: "annotator"
|
|
85
|
+
};
|
|
86
|
+
function Se() {
|
|
87
|
+
I.value + 1 >= F.length ? I.value = 0 : I.value += 1;
|
|
88
|
+
}
|
|
89
|
+
function V() {
|
|
90
|
+
return be++;
|
|
91
|
+
}
|
|
92
|
+
function Ce(e) {
|
|
93
|
+
let t = J.value;
|
|
94
|
+
if (!t) return {
|
|
95
|
+
x: 0,
|
|
96
|
+
y: 0
|
|
97
|
+
};
|
|
98
|
+
let n = t.createSVGPoint(), r = e.touches?.length || e.changedTouches?.length ? e.touches?.[0] || e.changedTouches?.[0] : null, i = r ? r.clientX : e.clientX, a = r ? r.clientY : e.clientY;
|
|
99
|
+
n.x = i, n.y = a;
|
|
100
|
+
let o = t.getScreenCTM()?.inverse();
|
|
101
|
+
return o ? n.matrixTransform(o) : {
|
|
102
|
+
x: 0,
|
|
103
|
+
y: 0
|
|
104
|
+
};
|
|
105
|
+
}
|
|
106
|
+
function H(e) {
|
|
107
|
+
if (!O.value || L.value !== "text" || k.value) return;
|
|
108
|
+
let { x: t, y: n } = Ce(e);
|
|
109
|
+
j.value = {
|
|
110
|
+
x: t,
|
|
111
|
+
y: n
|
|
112
|
+
}, M.value = [""], N.value = {
|
|
113
|
+
row: 0,
|
|
114
|
+
col: 0
|
|
115
|
+
};
|
|
116
|
+
let r = document.createElementNS("http://www.w3.org/2000/svg", "text");
|
|
117
|
+
r.setAttribute("x", t), r.setAttribute("y", n), r.setAttribute("fill", E.value), r.setAttribute("font-size", P.value), r.setAttribute("font-family", "sans-serif"), r.setAttribute("class", "vue-data-ui-doodle"), r.setAttribute("dominant-baseline", "hanging"), r.setAttribute("pointer-events", "all");
|
|
118
|
+
let i = document.createElementNS("http://www.w3.org/2000/svg", "tspan");
|
|
119
|
+
i.setAttribute("x", t), i.setAttribute("dy", "0"), i.textContent = "", r.appendChild(i), r.style.pointerEvents = "none", r.style.userSelect = "none", O.value.appendChild(r), A.value = r, k.value = !0, window.addEventListener("keydown", we), window.addEventListener("mousedown", De, !0), Te(), Ee();
|
|
120
|
+
}
|
|
121
|
+
function we(e) {
|
|
122
|
+
if (!k.value) return;
|
|
123
|
+
let { row: t, col: n } = N.value, r = M.value.slice(), i = !1;
|
|
124
|
+
if (e.key === "Enter") {
|
|
125
|
+
let a = r[t], o = a.slice(0, n), s = a.slice(n);
|
|
126
|
+
r.splice(t, 1, o, s), t += 1, n = 0, i = !0, e.preventDefault();
|
|
127
|
+
} else if (e.key === "Backspace") {
|
|
128
|
+
if (n > 0) r[t] = r[t].slice(0, n - 1) + r[t].slice(n), --n, i = !0;
|
|
129
|
+
else if (t > 0) {
|
|
130
|
+
let e = r[t - 1].length;
|
|
131
|
+
r[t - 1] += r[t], r.splice(t, 1), --t, n = e, i = !0;
|
|
132
|
+
}
|
|
133
|
+
e.preventDefault();
|
|
134
|
+
} else if (e.key === "Delete") n < r[t].length ? (r[t] = r[t].slice(0, n) + r[t].slice(n + 1), i = !0) : t < r.length - 1 && (r[t] += r[t + 1], r.splice(t + 1, 1), i = !0), e.preventDefault();
|
|
135
|
+
else if (e.key === "ArrowLeft") n > 0 ? --n : t > 0 && (--t, n = r[t].length), i = !0, e.preventDefault();
|
|
136
|
+
else if (e.key === "ArrowRight") n < r[t].length ? n += 1 : t < r.length - 1 && (t += 1, n = 0), i = !0, e.preventDefault();
|
|
137
|
+
else if (e.key === "ArrowUp") t > 0 && (--t, n = Math.min(n, r[t].length), i = !0), e.preventDefault();
|
|
138
|
+
else if (e.key === "ArrowDown") t < r.length - 1 && (t += 1, n = Math.min(n, r[t].length), i = !0), e.preventDefault();
|
|
139
|
+
else if (e.key.length === 1 && !e.ctrlKey && !e.metaKey && !e.altKey) r[t] = r[t].slice(0, n) + e.key + r[t].slice(n), n += 1, i = !0, e.preventDefault();
|
|
140
|
+
else if (e.key === "Escape") {
|
|
141
|
+
Oe(!0);
|
|
142
|
+
return;
|
|
143
|
+
} else e.key === "Tab" && e.preventDefault();
|
|
144
|
+
i && (M.value = r, N.value = {
|
|
145
|
+
row: t,
|
|
146
|
+
col: n
|
|
147
|
+
}, Te(), Ee());
|
|
148
|
+
}
|
|
149
|
+
function Te() {
|
|
150
|
+
let e = A.value, { x: t, y: n } = j.value;
|
|
151
|
+
for (; e.firstChild;) e.removeChild(e.firstChild);
|
|
152
|
+
M.value.forEach((n, r) => {
|
|
153
|
+
let i = document.createElementNS("http://www.w3.org/2000/svg", "tspan");
|
|
154
|
+
i.setAttribute("x", t), i.setAttribute("dy", r === 0 ? "0" : `${P.value * 1.2}`), i.textContent = n.length ? n : "", e.appendChild(i);
|
|
155
|
+
});
|
|
156
|
+
}
|
|
157
|
+
function Ee() {
|
|
158
|
+
let e = O.value.querySelector(".vue-data-ui-svg-caret");
|
|
159
|
+
e && O.value.removeChild(e);
|
|
160
|
+
let t = A.value;
|
|
161
|
+
if (!t) return;
|
|
162
|
+
let { x: n, y: r } = j.value, { row: i, col: a } = N.value, o = P.value, s = t.childNodes[i];
|
|
163
|
+
if (!s) return;
|
|
164
|
+
let c = s.textContent.slice(0, a);
|
|
165
|
+
c.endsWith(" ") && (c += "\xA0");
|
|
166
|
+
let l = document.createElementNS("http://www.w3.org/2000/svg", "text");
|
|
167
|
+
l.setAttribute("x", n), l.setAttribute("y", r), l.setAttribute("font-size", o), l.setAttribute("font-family", "sans-serif"), l.textContent = c || "", O.value.appendChild(l);
|
|
168
|
+
let u = l.getBBox();
|
|
169
|
+
O.value.removeChild(l);
|
|
170
|
+
let d = r + i * o * 1.2, f = n + u.width, p = document.createElementNS("http://www.w3.org/2000/svg", "rect");
|
|
171
|
+
p.setAttribute("x", f), p.setAttribute("y", d), p.setAttribute("width", 1), p.setAttribute("height", o), p.setAttribute("fill", E.value), p.setAttribute("class", "vue-data-ui-svg-caret"), O.value.appendChild(p);
|
|
172
|
+
}
|
|
173
|
+
function De(e) {
|
|
174
|
+
if (A.value && !A.value.contains(e.target)) {
|
|
175
|
+
let e = A.value.children;
|
|
176
|
+
e.length === 1 && (e[0].textContent === "" || e[0].textContent === "") && A.value.remove(), Oe(!1);
|
|
177
|
+
}
|
|
178
|
+
}
|
|
179
|
+
function Oe(e = !1) {
|
|
180
|
+
window.removeEventListener("keydown", we), window.removeEventListener("mousedown", De, !0);
|
|
181
|
+
let t = O.value?.querySelector(".vue-data-ui-svg-caret");
|
|
182
|
+
t && O.value.removeChild(t);
|
|
183
|
+
let n = M.value.every((e) => !e || e === "");
|
|
184
|
+
e || n || w.value.push({
|
|
185
|
+
id: V(),
|
|
186
|
+
type: "text",
|
|
187
|
+
x: j.value.x,
|
|
188
|
+
y: j.value.y,
|
|
189
|
+
color: E.value,
|
|
190
|
+
fontSize: P.value,
|
|
191
|
+
lines: M.value.map((e) => e)
|
|
192
|
+
}), A.value && O.value && O.value.contains(A.value) && O.value.removeChild(A.value), k.value = !1, A.value = null, M.value = [""], N.value = {
|
|
193
|
+
row: 0,
|
|
194
|
+
col: 0
|
|
195
|
+
};
|
|
196
|
+
}
|
|
197
|
+
let U = c(() => r(C.color, .6));
|
|
198
|
+
function W({ width: e, height: t }) {
|
|
199
|
+
ye.value = `0 0 ${e} ${t}`;
|
|
200
|
+
}
|
|
201
|
+
let G = v(null);
|
|
202
|
+
ne(() => {
|
|
203
|
+
ee(() => {
|
|
204
|
+
if (C.parent) {
|
|
205
|
+
G.value = new ResizeObserver((e) => {
|
|
206
|
+
for (let t of e) {
|
|
207
|
+
let { width: e, height: n } = t.contentRect;
|
|
208
|
+
W({
|
|
209
|
+
width: e,
|
|
210
|
+
height: n
|
|
211
|
+
});
|
|
212
|
+
}
|
|
213
|
+
}), G.value.observe(C.parent);
|
|
214
|
+
let { width: e, height: t } = C.parent.getBoundingClientRect();
|
|
215
|
+
W({
|
|
216
|
+
width: e,
|
|
217
|
+
height: t
|
|
218
|
+
});
|
|
219
|
+
}
|
|
220
|
+
}), O.value = J.value.querySelector("g");
|
|
221
|
+
}), te(() => {
|
|
222
|
+
G.value && G.value.disconnect();
|
|
223
|
+
}), S(() => C.parent, (e) => {
|
|
224
|
+
if (!e) return;
|
|
225
|
+
let { width: t, height: n } = C.parent.getBoundingClientRect();
|
|
226
|
+
W({
|
|
227
|
+
width: t,
|
|
228
|
+
height: n
|
|
229
|
+
});
|
|
230
|
+
}, { immediate: !0 }), S(L, (e) => {
|
|
231
|
+
J.value && (J.value.removeEventListener("mousedown", H), J.value.removeEventListener("touchstart", H), e === "text" && (J.value.addEventListener("mousedown", H), J.value.addEventListener("touchstart", H, { passive: !1 })));
|
|
232
|
+
});
|
|
233
|
+
let K = v(!1), q = v(""), J = v(null), Y = v(!1), ke = v(null);
|
|
234
|
+
S(() => C.active, (e) => {
|
|
235
|
+
J.value && (J.value.style.touchAction = e ? "none" : "");
|
|
236
|
+
}, { immediate: !0 });
|
|
237
|
+
function Ae(e) {
|
|
238
|
+
if (e.cancelable && e.preventDefault(), L.value !== "draw" || !J.value) return;
|
|
239
|
+
K.value = !0;
|
|
240
|
+
let { x: t, y: n } = Q(e);
|
|
241
|
+
q.value = `M ${t} ${n}`;
|
|
242
|
+
}
|
|
243
|
+
function je(e) {
|
|
244
|
+
if (e.cancelable && e.preventDefault(), L.value !== "draw" || !K.value || !J.value) return;
|
|
245
|
+
let { x: t, y: n } = Q(e);
|
|
246
|
+
q.value += ` ${t} ${n}`;
|
|
247
|
+
}
|
|
248
|
+
function Me() {
|
|
249
|
+
let e = J.value;
|
|
250
|
+
if (!e) return;
|
|
251
|
+
let t = e.querySelector(`defs#${B.value}`);
|
|
252
|
+
if (t || (t = document.createElementNS(n, "defs"), t.setAttribute("id", B.value), e.appendChild(t)), t.querySelector(`#${z.value}`)) return;
|
|
253
|
+
let r = document.createElementNS(n, "marker");
|
|
254
|
+
r.setAttribute("id", z.value), r.setAttribute("markerUnits", "strokeWidth"), r.setAttribute("markerWidth", "6"), r.setAttribute("markerHeight", "6"), r.setAttribute("refX", "4"), r.setAttribute("refY", "3"), r.setAttribute("orient", "auto"), r.setAttribute("viewBox", "0 0 6 6");
|
|
255
|
+
let i = document.createElementNS(n, "path");
|
|
256
|
+
i.setAttribute("d", `M 0 0 L 6 ${6 / 2} L 0 6 z`), i.setAttribute("fill", "context-stroke"), i.setAttribute("stroke", "none"), r.appendChild(i), t.appendChild(r);
|
|
257
|
+
}
|
|
258
|
+
function Ne(e) {
|
|
259
|
+
if (e.cancelable && e.preventDefault(), !["line", "arrow"].includes(L.value) || !J.value || !O.value) return;
|
|
260
|
+
L.value === "arrow" && Me(), Y.value = !0;
|
|
261
|
+
let { x: t, y: r } = Q(e);
|
|
262
|
+
ke.value = {
|
|
263
|
+
x: t,
|
|
264
|
+
y: r
|
|
265
|
+
}, R.value = document.createElementNS(n, "line"), R.value.setAttribute("x1", t), R.value.setAttribute("y1", r), R.value.setAttribute("x2", t), R.value.setAttribute("y2", r), R.value.setAttribute("stroke", E.value), R.value.setAttribute("stroke-width", D.value), R.value.setAttribute("stroke-linecap", "round"), R.value.setAttribute("class", "vue-data-ui-doodle"), L.value === "arrow" && R.value.setAttribute("marker-end", `url(#${z.value})`), O.value.appendChild(R.value);
|
|
266
|
+
}
|
|
267
|
+
function Pe(e) {
|
|
268
|
+
if (e.cancelable && e.preventDefault(), !["line", "arrow"].includes(L.value) || !Y.value || !R.value) return;
|
|
269
|
+
let { x: t, y: n } = Q(e);
|
|
270
|
+
R.value.setAttribute("x2", t), R.value.setAttribute("y2", n);
|
|
271
|
+
}
|
|
272
|
+
function X(e) {
|
|
273
|
+
if (e?.cancelable && e.preventDefault(), !Y.value || !R.value) return;
|
|
274
|
+
let { x: t, y: n } = Q(e);
|
|
275
|
+
R.value.setAttribute("x2", t), R.value.setAttribute("y2", n), w.value.push({
|
|
276
|
+
id: V(),
|
|
277
|
+
type: L.value,
|
|
278
|
+
x1: parseFloat(R.value.getAttribute("x1")),
|
|
279
|
+
y1: parseFloat(R.value.getAttribute("y1")),
|
|
280
|
+
x2: t,
|
|
281
|
+
y2: n,
|
|
282
|
+
strokeWidth: D.value,
|
|
283
|
+
color: E.value
|
|
284
|
+
}), T.value = [], O.value.contains(R.value) && O.value.removeChild(R.value), R.value = null, ke.value = null, Y.value = !1;
|
|
285
|
+
}
|
|
286
|
+
function Fe(e) {
|
|
287
|
+
let t = e.trim().split(/\s+/);
|
|
288
|
+
if (t.length < 4) return e;
|
|
289
|
+
let n = t.slice(1).map(Number);
|
|
290
|
+
if (n.length % 2 != 0) return e;
|
|
291
|
+
let r = Ie(n), i = [`M ${r[0]} ${r[1]}`];
|
|
292
|
+
for (let e = 2; e < r.length - 2; e += 2) {
|
|
293
|
+
let t = r[e - 2], n = r[e - 1], a = r[e], o = r[e + 1], s = (t + a) / 2, c = (n + o) / 2;
|
|
294
|
+
i.push(`Q ${t} ${n} ${s} ${c}`);
|
|
295
|
+
}
|
|
296
|
+
let a = r[r.length - 2], o = r[r.length - 1];
|
|
297
|
+
return i.push(`L ${a} ${o}`), i.join(" ");
|
|
298
|
+
}
|
|
299
|
+
function Ie(e, t = 1) {
|
|
300
|
+
let n = [...e];
|
|
301
|
+
for (let r = 2; r < e.length - 2; r += 2) {
|
|
302
|
+
let i = e[r], a = e[r + 1], o = e[r - 2], s = e[r - 1], c = e[r + 2], l = e[r + 3];
|
|
303
|
+
n[r] = i + t * ((o + c) / 2 - i), n[r + 1] = a + t * ((s + l) / 2 - a);
|
|
304
|
+
}
|
|
305
|
+
return n;
|
|
306
|
+
}
|
|
307
|
+
function Le(e) {
|
|
308
|
+
let t = e.trim().split(/\s+/), n = "", r = "", i = null, a = null;
|
|
309
|
+
for (let e = 0; e < t.length; e += 1) {
|
|
310
|
+
let o = t[e];
|
|
311
|
+
if (isNaN(o)) {
|
|
312
|
+
if (r = o, r === "M" || r === "L") i = parseFloat(t[++e]), a = parseFloat(t[++e]), n += `${r}${i} ${a}`;
|
|
313
|
+
else if (r === "Q") {
|
|
314
|
+
let r = parseFloat(t[++e]), o = parseFloat(t[++e]), s = parseFloat(t[++e]), c = parseFloat(t[++e]);
|
|
315
|
+
r === i && o === a ? n += `t${s - i} ${c - a}` : n += `q${r - i} ${o - a} ${s - i} ${c - a}`, i = s, a = c;
|
|
316
|
+
}
|
|
317
|
+
} else {
|
|
318
|
+
let s = parseFloat(o), c = parseFloat(t[++e]);
|
|
319
|
+
if (r === "L") {
|
|
320
|
+
let e = s - i, t = c - a;
|
|
321
|
+
e === 0 ? n += `v${t}` : t === 0 ? n += `h${e}` : n += `l${e} ${t}`, i = s, a = c;
|
|
322
|
+
} else if (r === "Q") {
|
|
323
|
+
let r = s, o = c, l = parseFloat(t[++e]), u = parseFloat(t[++e]);
|
|
324
|
+
r === i && o === a ? n += `t${l - i} ${u - a}` : n += `q${r - i} ${o - a} ${l - i} ${u - a}`, i = l, a = u;
|
|
325
|
+
}
|
|
326
|
+
}
|
|
327
|
+
}
|
|
328
|
+
return n;
|
|
329
|
+
}
|
|
330
|
+
function Z(e) {
|
|
331
|
+
e?.cancelable && e.preventDefault(), L.value === "draw" && (K.value && (w.value.push({
|
|
332
|
+
id: V(),
|
|
333
|
+
strokeWidth: D.value,
|
|
334
|
+
path: Le(Fe(q.value)),
|
|
335
|
+
color: E.value
|
|
336
|
+
}), T.value = [], q.value = ""), K.value = !1);
|
|
337
|
+
}
|
|
338
|
+
function Q(e) {
|
|
339
|
+
if (!J.value) return {
|
|
340
|
+
x: 0,
|
|
341
|
+
y: 0
|
|
342
|
+
};
|
|
343
|
+
let t = J.value.getBoundingClientRect(), n = e.touches?.length || e.changedTouches?.length ? e.touches?.[0] || e.changedTouches?.[0] : null, r = n ? n.clientX : e.clientX, i = n ? n.clientY : e.clientY;
|
|
344
|
+
return {
|
|
345
|
+
x: r - t.left,
|
|
346
|
+
y: i - t.top
|
|
347
|
+
};
|
|
348
|
+
}
|
|
349
|
+
function Re() {
|
|
350
|
+
if (w.value.length > 0) {
|
|
351
|
+
let e = w.value.pop();
|
|
352
|
+
T.value.push(e);
|
|
353
|
+
}
|
|
354
|
+
}
|
|
355
|
+
function ze() {
|
|
356
|
+
if (T.value.length > 0) {
|
|
357
|
+
let e = T.value.pop();
|
|
358
|
+
w.value.push(e);
|
|
359
|
+
}
|
|
360
|
+
}
|
|
361
|
+
function Be() {
|
|
362
|
+
w.value = [], T.value = [];
|
|
363
|
+
}
|
|
364
|
+
let $ = v(null);
|
|
365
|
+
return (t, r) => (_(), u(s, null, [i.active ? (_(), u("div", {
|
|
366
|
+
key: 0,
|
|
367
|
+
"data-dom-to-png-ignore": "",
|
|
368
|
+
class: m({
|
|
369
|
+
"vue-ui-pen-and-paper-actions": !0,
|
|
370
|
+
visible: i.active
|
|
371
|
+
}),
|
|
372
|
+
style: g({ backgroundColor: i.backgroundColor })
|
|
373
|
+
}, [
|
|
374
|
+
d("button", {
|
|
375
|
+
class: "vue-ui-pen-and-paper-action",
|
|
376
|
+
style: g({
|
|
377
|
+
backgroundColor: i.backgroundColor,
|
|
378
|
+
border: `1px solid ${U.value}`,
|
|
379
|
+
cursor: i.isCursorPointer ? "pointer" : "default"
|
|
380
|
+
}),
|
|
381
|
+
onClick: r[0] ||= (e) => ve("close")
|
|
382
|
+
}, [b(t.$slots, "annotator-action-close", {}, () => [f(a, {
|
|
383
|
+
name: "close",
|
|
384
|
+
stroke: i.color
|
|
385
|
+
}, null, 8, ["stroke"])], !0)], 4),
|
|
386
|
+
d("button", {
|
|
387
|
+
class: m({ "vue-ui-pen-and-paper-action": !0 }),
|
|
388
|
+
style: g({
|
|
389
|
+
padding: "0 !important",
|
|
390
|
+
cursor: i.isCursorPointer ? "pointer" : "default"
|
|
391
|
+
})
|
|
392
|
+
}, [f(o, {
|
|
393
|
+
value: E.value,
|
|
394
|
+
"onUpdate:value": r[1] ||= (e) => E.value = e,
|
|
395
|
+
backgroundColor: i.backgroundColor,
|
|
396
|
+
buttonBorderColor: U.value
|
|
397
|
+
}, {
|
|
398
|
+
"annotator-action-color": ae(({ color: e }) => [b(t.$slots, "annotator-action-color", h(p({ color: e })), void 0, !0)]),
|
|
399
|
+
_: 3
|
|
400
|
+
}, 8, [
|
|
401
|
+
"value",
|
|
402
|
+
"backgroundColor",
|
|
403
|
+
"buttonBorderColor"
|
|
404
|
+
])], 4),
|
|
405
|
+
d("button", {
|
|
406
|
+
class: m(["vue-ui-pen-and-paper-action", { "vue-ui-pen-and-paper-action-active": L.value === "text" }]),
|
|
407
|
+
onClick: r[2] ||= (e) => Se(),
|
|
408
|
+
style: g({
|
|
409
|
+
backgroundColor: i.backgroundColor,
|
|
410
|
+
border: `1px solid ${U.value}`,
|
|
411
|
+
cursor: i.isCursorPointer ? "pointer" : "default"
|
|
412
|
+
})
|
|
413
|
+
}, [b(t.$slots, "annotator-action-draw", h(p({ mode: L.value })), () => [f(a, {
|
|
414
|
+
name: xe[L.value],
|
|
415
|
+
stroke: i.color
|
|
416
|
+
}, null, 8, ["name", "stroke"])], !0), d("div", { style: g({
|
|
417
|
+
position: "absolute",
|
|
418
|
+
bottom: "-20px",
|
|
419
|
+
color: U.value,
|
|
420
|
+
width: "100%",
|
|
421
|
+
textAlign: "center",
|
|
422
|
+
fontSize: "12px"
|
|
423
|
+
}) }, x(re(e)({
|
|
424
|
+
v: L.value === "text" ? P.value : D.value,
|
|
425
|
+
s: "px",
|
|
426
|
+
r: 1
|
|
427
|
+
})), 5)], 6),
|
|
428
|
+
d("button", {
|
|
429
|
+
class: m({
|
|
430
|
+
"vue-ui-pen-and-paper-action": !0,
|
|
431
|
+
"vue-ui-pen-and-paper-action-disabled": !w.value.length
|
|
432
|
+
}),
|
|
433
|
+
disabled: !w.value.length,
|
|
434
|
+
style: g({
|
|
435
|
+
backgroundColor: i.backgroundColor,
|
|
436
|
+
border: `1px solid ${U.value}`,
|
|
437
|
+
marginTop: "20px",
|
|
438
|
+
cursor: i.isCursorPointer ? "pointer" : "default"
|
|
439
|
+
}),
|
|
440
|
+
onClick: Re
|
|
441
|
+
}, [b(t.$slots, "annotator-action-undo", h(p({ disabled: !w.value.length })), () => [f(a, {
|
|
442
|
+
name: "refresh",
|
|
443
|
+
stroke: i.color
|
|
444
|
+
}, null, 8, ["stroke"])], !0)], 14, ce),
|
|
445
|
+
d("button", {
|
|
446
|
+
class: m({
|
|
447
|
+
"vue-ui-pen-and-paper-action": !0,
|
|
448
|
+
"vue-ui-pen-and-paper-action-disabled": !T.value.length
|
|
449
|
+
}),
|
|
450
|
+
style: g({
|
|
451
|
+
backgroundColor: i.backgroundColor,
|
|
452
|
+
border: `1px solid ${U.value}`,
|
|
453
|
+
cursor: i.isCursorPointer ? "pointer" : "default"
|
|
454
|
+
}),
|
|
455
|
+
onClick: ze
|
|
456
|
+
}, [b(t.$slots, "annotator-action-redo", h(p({ disabled: !T.value.length })), () => [f(a, {
|
|
457
|
+
name: "refresh",
|
|
458
|
+
stroke: i.color,
|
|
459
|
+
style: { transform: "scaleX(-1)" }
|
|
460
|
+
}, null, 8, ["stroke"])], !0)], 6),
|
|
461
|
+
d("button", {
|
|
462
|
+
class: m([{
|
|
463
|
+
"vue-ui-pen-and-paper-action": !0,
|
|
464
|
+
"vue-ui-pen-and-paper-action-disabled": !w.value.length
|
|
465
|
+
}, "vue-ui-pen-and-paper-action"]),
|
|
466
|
+
style: g({
|
|
467
|
+
backgroundColor: i.backgroundColor,
|
|
468
|
+
border: `1px solid ${U.value}`,
|
|
469
|
+
cursor: i.isCursorPointer ? "pointer" : "default"
|
|
470
|
+
}),
|
|
471
|
+
onClick: Be
|
|
472
|
+
}, [b(t.$slots, "annotator-action-delete", h(p({ disabled: !w.value.length })), () => [f(a, {
|
|
473
|
+
name: "trash",
|
|
474
|
+
stroke: i.color
|
|
475
|
+
}, null, 8, ["stroke"])], !0)], 6),
|
|
476
|
+
L.value === "draw" ? oe((_(), u("input", {
|
|
477
|
+
key: 0,
|
|
478
|
+
ref_key: "range",
|
|
479
|
+
ref: $,
|
|
480
|
+
type: "range",
|
|
481
|
+
class: "vertical-range",
|
|
482
|
+
min: .5,
|
|
483
|
+
max: 12,
|
|
484
|
+
step: .1,
|
|
485
|
+
"onUpdate:modelValue": r[3] ||= (e) => D.value = e,
|
|
486
|
+
style: g({ accentColor: i.color })
|
|
487
|
+
}, null, 4)), [[ie, D.value]]) : l("", !0),
|
|
488
|
+
L.value === "text" ? oe((_(), u("input", {
|
|
489
|
+
key: 1,
|
|
490
|
+
ref_key: "range",
|
|
491
|
+
ref: $,
|
|
492
|
+
type: "range",
|
|
493
|
+
class: "vertical-range",
|
|
494
|
+
min: 3,
|
|
495
|
+
max: 48,
|
|
496
|
+
step: .1,
|
|
497
|
+
"onUpdate:modelValue": r[4] ||= (e) => P.value = e,
|
|
498
|
+
style: g({ accentColor: i.color })
|
|
499
|
+
}, null, 4)), [[ie, P.value]]) : l("", !0)
|
|
500
|
+
], 6)) : l("", !0), (_(), u("svg", {
|
|
501
|
+
"data-mode": L.value,
|
|
502
|
+
ref_key: "svgElement",
|
|
503
|
+
ref: J,
|
|
504
|
+
xmlns: re(n),
|
|
505
|
+
viewBox: ye.value,
|
|
506
|
+
class: m({
|
|
507
|
+
"vue-ui-pen-and-paper": !0,
|
|
508
|
+
inactive: !i.active
|
|
509
|
+
}),
|
|
510
|
+
onMousedown: r[5] ||= (e) => L.value === "draw" ? Ae(e) : L.value === "line" || L.value === "arrow" ? Ne(e) : null,
|
|
511
|
+
onMousemove: r[6] ||= (e) => L.value === "draw" ? je(e) : L.value === "line" || L.value === "arrow" ? Pe(e) : null,
|
|
512
|
+
onMouseup: r[7] ||= (e) => L.value === "draw" ? Z(e) : L.value === "line" || L.value === "arrow" ? X(e) : null,
|
|
513
|
+
onMouseleave: r[8] ||= (e) => L.value === "draw" ? Z(e) : L.value === "line" || L.value === "arrow" ? X(e) : null,
|
|
514
|
+
onTouchstart: r[9] ||= se((e) => L.value === "draw" ? Ae(e) : L.value === "line" || L.value === "arrow" ? Ne(e) : null, ["prevent"]),
|
|
515
|
+
onTouchmove: r[10] ||= se((e) => L.value === "draw" ? je(e) : L.value === "line" || L.value === "arrow" ? Pe(e) : null, ["prevent"]),
|
|
516
|
+
onTouchend: r[11] ||= (e) => L.value === "draw" ? Z(e) : L.value === "line" || L.value === "arrow" ? X(e) : null,
|
|
517
|
+
onTouchcancel: r[12] ||= (e) => L.value === "draw" ? Z(e) : L.value === "line" || L.value === "arrow" ? X(e) : null
|
|
518
|
+
}, [d("g", {
|
|
519
|
+
ref_key: "G",
|
|
520
|
+
ref: O
|
|
521
|
+
}, [(_(!0), u(s, null, y(w.value, (e) => (_(), u(s, { key: e.id }, [e.path && e.path.replace("M", "").split(" ").length === 2 ? (_(), u("circle", {
|
|
522
|
+
key: 0,
|
|
523
|
+
cx: e.path.replace("M", "").split(" ")[0],
|
|
524
|
+
cy: e.path.replace("M", "").split(" ")[1],
|
|
525
|
+
r: e.strokeWidth / 2,
|
|
526
|
+
fill: e.color
|
|
527
|
+
}, null, 8, ue)) : e.type === "line" ? (_(), u("line", {
|
|
528
|
+
key: 1,
|
|
529
|
+
class: "vue-ui-pen-and-paper-path",
|
|
530
|
+
x1: e.x1,
|
|
531
|
+
y1: e.y1,
|
|
532
|
+
x2: e.x2,
|
|
533
|
+
y2: e.y2,
|
|
534
|
+
stroke: e.color,
|
|
535
|
+
"stroke-width": e.strokeWidth
|
|
536
|
+
}, null, 8, de)) : e.type === "arrow" ? (_(), u("line", {
|
|
537
|
+
key: 2,
|
|
538
|
+
class: "vue-ui-pen-and-paper-path",
|
|
539
|
+
x1: e.x1,
|
|
540
|
+
y1: e.y1,
|
|
541
|
+
x2: e.x2,
|
|
542
|
+
y2: e.y2,
|
|
543
|
+
stroke: e.color,
|
|
544
|
+
"stroke-width": e.strokeWidth,
|
|
545
|
+
"marker-end": `url(#${z.value})`
|
|
546
|
+
}, null, 8, fe)) : e.path ? (_(), u("path", {
|
|
547
|
+
key: 3,
|
|
548
|
+
class: "vue-ui-pen-and-paper-path",
|
|
549
|
+
d: e.path,
|
|
550
|
+
stroke: e.color,
|
|
551
|
+
"stroke-width": e.strokeWidth,
|
|
552
|
+
fill: "none"
|
|
553
|
+
}, null, 8, pe)) : e.type === "text" ? (_(), u("text", {
|
|
554
|
+
key: 4,
|
|
555
|
+
x: e.x,
|
|
556
|
+
y: e.y,
|
|
557
|
+
fill: e.color,
|
|
558
|
+
"font-size": e.fontSize,
|
|
559
|
+
"font-family": "sans-serif",
|
|
560
|
+
"dominant-baseline": "hanging",
|
|
561
|
+
class: "vue-ui-pen-and-paper-text"
|
|
562
|
+
}, [(_(!0), u(s, null, y(e.lines, (t, n) => (_(), u("tspan", {
|
|
563
|
+
key: n,
|
|
564
|
+
x: e.x,
|
|
565
|
+
dy: n === 0 ? "0" : e.fontSize * 1.2
|
|
566
|
+
}, x(t.length ? t : ""), 9, he))), 128))], 8, me)) : l("", !0)], 64))), 128))], 512), K.value ? (_(), u("path", {
|
|
567
|
+
key: 0,
|
|
568
|
+
class: "vue-ui-pen-and-paper-path vue-ui-pen-and-paper-path-drawing",
|
|
569
|
+
d: Fe(q.value),
|
|
570
|
+
stroke: E.value,
|
|
571
|
+
"stroke-width": D.value * 1.1,
|
|
572
|
+
fill: "none"
|
|
573
|
+
}, null, 8, ge)) : l("", !0)], 42, le))], 64));
|
|
574
|
+
}
|
|
575
|
+
}, [["__scopeId", "data-v-42e6ba29"]]);
|
|
576
|
+
//#endregion
|
|
577
|
+
export { _e as default };
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { t as e } from "./rolldown-runtime-CAFD8bLK.js";
|
|
2
|
+
import { createElementBlock as t, openBlock as n, toDisplayString as r, unref as i } from "vue";
|
|
3
|
+
//#region package.json
|
|
4
|
+
var a = "3.18.1", o = /* @__PURE__ */ e({ default: () => c }), s = { "aria-hidden": "true" }, c = {
|
|
5
|
+
__name: "PackageVersion",
|
|
6
|
+
setup(e) {
|
|
7
|
+
return (e, o) => (n(), t("desc", s, "Composed with Vue Data UI " + r(i(a)), 1));
|
|
8
|
+
}
|
|
9
|
+
};
|
|
10
|
+
//#endregion
|
|
11
|
+
export { c as n, o as t };
|