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
package/dist/Legend-DGN5lY60.js
DELETED
|
@@ -1,104 +0,0 @@
|
|
|
1
|
-
import { openBlock as r, createElementBlock as l, normalizeStyle as f, renderSlot as c, Fragment as h, renderList as y, normalizeClass as p, createVNode as b, mergeProps as v, unref as x, createCommentVNode as S } from "vue";
|
|
2
|
-
import { a9 as $ } from "./lib-DMzrGQHK.js";
|
|
3
|
-
import { _ as B } from "./Shape-CxJ5_Rre.js";
|
|
4
|
-
import { _ as C } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
5
|
-
const w = ["id"], z = ["role", "tabindex", "onKeydown", "onFocus"], F = ["onClick", "viewBox"], M = {
|
|
6
|
-
__name: "Legend",
|
|
7
|
-
props: {
|
|
8
|
-
legendSet: {
|
|
9
|
-
type: Array,
|
|
10
|
-
default() {
|
|
11
|
-
return [];
|
|
12
|
-
}
|
|
13
|
-
},
|
|
14
|
-
config: {
|
|
15
|
-
type: Object,
|
|
16
|
-
default() {
|
|
17
|
-
return {};
|
|
18
|
-
}
|
|
19
|
-
},
|
|
20
|
-
id: {
|
|
21
|
-
type: String,
|
|
22
|
-
default: ""
|
|
23
|
-
},
|
|
24
|
-
clickable: {
|
|
25
|
-
type: Boolean,
|
|
26
|
-
default: !0
|
|
27
|
-
},
|
|
28
|
-
isCursorPointer: {
|
|
29
|
-
type: Boolean,
|
|
30
|
-
default: !1
|
|
31
|
-
}
|
|
32
|
-
},
|
|
33
|
-
emits: ["clickMarker", "focusMarker"],
|
|
34
|
-
setup(t, { emit: m }) {
|
|
35
|
-
const d = t, u = m;
|
|
36
|
-
function s(n, o) {
|
|
37
|
-
d.clickable && u("clickMarker", { legend: n, i: o });
|
|
38
|
-
}
|
|
39
|
-
function k(n, o, e) {
|
|
40
|
-
d.clickable && (n.key === "Enter" || n.key === " ") && (n.preventDefault(), s(o, e));
|
|
41
|
-
}
|
|
42
|
-
function g(n, o, e) {
|
|
43
|
-
n.preventDefault(), u("focusMarker", { legend: o, i: e });
|
|
44
|
-
}
|
|
45
|
-
return (n, o) => (r(), l("div", {
|
|
46
|
-
id: t.id,
|
|
47
|
-
class: "vue-data-ui-legend",
|
|
48
|
-
style: f({
|
|
49
|
-
background: t.config.backgroundColor,
|
|
50
|
-
color: t.config.color,
|
|
51
|
-
paddingBottom: (t.config.paddingBottom ?? 0) + "px",
|
|
52
|
-
paddingTop: (t.config.paddingTop ?? 12) + "px",
|
|
53
|
-
fontWeight: t.config.fontWeight,
|
|
54
|
-
fontSize: `var(--legend-font-size, ${t.config.fontSize ?? 14}px)`
|
|
55
|
-
})
|
|
56
|
-
}, [
|
|
57
|
-
c(n.$slots, "legendTitle", { titleSet: t.legendSet }, void 0, !0),
|
|
58
|
-
c(n.$slots, "legendToggle", {}, void 0, !0),
|
|
59
|
-
(r(!0), l(h, null, y(t.legendSet, (e, i) => (r(), l("div", {
|
|
60
|
-
key: `legend_${i}`,
|
|
61
|
-
class: p({
|
|
62
|
-
"vue-data-ui-legend-item": !0,
|
|
63
|
-
active: t.clickable && t.isCursorPointer
|
|
64
|
-
}),
|
|
65
|
-
role: t.clickable ? "button" : void 0,
|
|
66
|
-
tabindex: t.clickable ? 0 : void 0,
|
|
67
|
-
onKeydown: (a) => k(a, e, i),
|
|
68
|
-
onFocus: (a) => g(a, e, i)
|
|
69
|
-
}, [
|
|
70
|
-
e.shape ? (r(), l("svg", {
|
|
71
|
-
key: 0,
|
|
72
|
-
onClick: (a) => s(e, i),
|
|
73
|
-
height: "1em",
|
|
74
|
-
width: "1em",
|
|
75
|
-
viewBox: e.shape && e.shape === "star" ? "-10 -10 80 80" : "0 0 60 60",
|
|
76
|
-
style: f(`overflow: visible; opacity:${e.opacity}`),
|
|
77
|
-
"aria-hidden": "true"
|
|
78
|
-
}, [
|
|
79
|
-
b(B, {
|
|
80
|
-
stroke: "none",
|
|
81
|
-
shape: e.shape,
|
|
82
|
-
radius: 30,
|
|
83
|
-
plot: {
|
|
84
|
-
x: 30,
|
|
85
|
-
y: e.shape === "triangle" ? 36 : 30
|
|
86
|
-
},
|
|
87
|
-
fill: e.color
|
|
88
|
-
}, null, 8, ["shape", "plot", "fill"]),
|
|
89
|
-
c(n.$slots, "legend-pattern", v({ ref_for: !0 }, {
|
|
90
|
-
legend: e,
|
|
91
|
-
index: x($)(e.absoluteIndex) ? e.absoluteIndex : i
|
|
92
|
-
}), void 0, !0)
|
|
93
|
-
], 12, F)) : S("", !0),
|
|
94
|
-
c(n.$slots, "item", {
|
|
95
|
-
legend: e,
|
|
96
|
-
index: i
|
|
97
|
-
}, void 0, !0)
|
|
98
|
-
], 42, z))), 128))
|
|
99
|
-
], 12, w));
|
|
100
|
-
}
|
|
101
|
-
}, L = /* @__PURE__ */ C(M, [["__scopeId", "data-v-5f0ae4cc"]]);
|
|
102
|
-
export {
|
|
103
|
-
L as default
|
|
104
|
-
};
|
|
@@ -1,573 +0,0 @@
|
|
|
1
|
-
import { ref as u, computed as ge, onMounted as ze, nextTick as Xe, onBeforeUnmount as Ye, watch as ee, openBlock as g, createElementBlock as y, Fragment as J, normalizeStyle as C, normalizeClass as M, createElementVNode as $, createVNode as P, toDisplayString as ye, unref as xe, withDirectives as we, vModelText as ke, createCommentVNode as R, withModifiers as be, renderList as me } from "vue";
|
|
2
|
-
import { j as Ce, x as We, l as Re, X as U } from "./lib-DMzrGQHK.js";
|
|
3
|
-
import q from "./BaseIcon-DX0hTWa-.js";
|
|
4
|
-
import { C as Ue } from "./ColorPicker-bAxGcXK0.js";
|
|
5
|
-
import { _ as qe } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
6
|
-
const Ve = ["disabled"], Ie = ["data-mode", "xmlns", "viewBox"], Ke = ["cx", "cy", "r", "fill"], Ge = ["x1", "y1", "x2", "y2", "stroke", "stroke-width"], He = ["x1", "y1", "x2", "y2", "stroke", "stroke-width", "marker-end"], Oe = ["d", "stroke", "stroke-width"], Qe = ["x", "y", "fill", "font-size"], je = ["x", "dy"], Je = ["d", "stroke", "stroke-width"], Ze = {
|
|
7
|
-
__name: "NonSvgPenAndPaper",
|
|
8
|
-
props: {
|
|
9
|
-
parent: {
|
|
10
|
-
type: HTMLElement
|
|
11
|
-
},
|
|
12
|
-
backgroundColor: {
|
|
13
|
-
type: String,
|
|
14
|
-
default: "#FFFFFF"
|
|
15
|
-
},
|
|
16
|
-
color: {
|
|
17
|
-
type: String,
|
|
18
|
-
default: "#2D353C"
|
|
19
|
-
},
|
|
20
|
-
active: {
|
|
21
|
-
type: Boolean,
|
|
22
|
-
default: !1
|
|
23
|
-
},
|
|
24
|
-
isCursorPointer: {
|
|
25
|
-
type: Boolean,
|
|
26
|
-
default: !1
|
|
27
|
-
}
|
|
28
|
-
},
|
|
29
|
-
emits: ["close"],
|
|
30
|
-
setup(s, { emit: Ae }) {
|
|
31
|
-
const S = s, Se = Ae, m = u([]), E = u([]), te = u("0 0 0 0"), A = u(S.color), T = u(1), v = u(null), V = u(!1), x = u(null), F = u({ x: 0, y: 0 }), D = u([""]), z = u({ row: 0, col: 0 }), L = u(16);
|
|
32
|
-
let $e = 1;
|
|
33
|
-
const ne = ["arrow", "text", "line", "draw"], I = u(0), a = ge(() => ne[I.value]), c = u(null);
|
|
34
|
-
u(null), u(null);
|
|
35
|
-
const K = u(`arrow-${Ce()}`), le = u(`arrow-def-${Ce()}`), Ee = {
|
|
36
|
-
arrow: "plotArrow",
|
|
37
|
-
text: "text",
|
|
38
|
-
line: "plotLine",
|
|
39
|
-
draw: "annotator"
|
|
40
|
-
};
|
|
41
|
-
function Te() {
|
|
42
|
-
I.value + 1 >= ne.length ? I.value = 0 : I.value += 1;
|
|
43
|
-
}
|
|
44
|
-
function Z() {
|
|
45
|
-
return $e++;
|
|
46
|
-
}
|
|
47
|
-
function De(n) {
|
|
48
|
-
const t = p.value;
|
|
49
|
-
if (!t) return { x: 0, y: 0 };
|
|
50
|
-
const e = t.createSVGPoint(), r = !!n.touches?.length || !!n.changedTouches?.length ? n.touches?.[0] || n.changedTouches?.[0] : null, o = r ? r.clientX : n.clientX, i = r ? r.clientY : n.clientY;
|
|
51
|
-
e.x = o, e.y = i;
|
|
52
|
-
const d = t.getScreenCTM()?.inverse();
|
|
53
|
-
return d ? e.matrixTransform(d) : { x: 0, y: 0 };
|
|
54
|
-
}
|
|
55
|
-
function G(n) {
|
|
56
|
-
if (!v.value || a.value !== "text" || V.value) return;
|
|
57
|
-
const { x: t, y: e } = De(n);
|
|
58
|
-
F.value = { x: t, y: e }, D.value = [""], z.value = { row: 0, col: 0 };
|
|
59
|
-
const l = document.createElementNS(
|
|
60
|
-
"http://www.w3.org/2000/svg",
|
|
61
|
-
"text"
|
|
62
|
-
);
|
|
63
|
-
l.setAttribute("x", t), l.setAttribute("y", e), l.setAttribute("fill", A.value), l.setAttribute("font-size", L.value), l.setAttribute("font-family", "sans-serif"), l.setAttribute("class", "vue-data-ui-doodle"), l.setAttribute("dominant-baseline", "hanging"), l.setAttribute("pointer-events", "all");
|
|
64
|
-
const r = document.createElementNS(
|
|
65
|
-
"http://www.w3.org/2000/svg",
|
|
66
|
-
"tspan"
|
|
67
|
-
);
|
|
68
|
-
r.setAttribute("x", t), r.setAttribute("dy", "0"), r.textContent = "", l.appendChild(r), l.style.pointerEvents = "none", l.style.userSelect = "none", v.value.appendChild(l), x.value = l, V.value = !0, window.addEventListener("keydown", re), window.addEventListener("mousedown", ue, !0), ae(), oe();
|
|
69
|
-
}
|
|
70
|
-
function re(n) {
|
|
71
|
-
if (!V.value) return;
|
|
72
|
-
let { row: t, col: e } = z.value, l = D.value.slice(), r = !1;
|
|
73
|
-
if (n.key === "Enter") {
|
|
74
|
-
const o = l[t], i = o.slice(0, e), d = o.slice(e);
|
|
75
|
-
l.splice(t, 1, i, d), t += 1, e = 0, r = !0, n.preventDefault();
|
|
76
|
-
} else if (n.key === "Backspace") {
|
|
77
|
-
if (e > 0)
|
|
78
|
-
l[t] = l[t].slice(0, e - 1) + l[t].slice(e), e -= 1, r = !0;
|
|
79
|
-
else if (t > 0) {
|
|
80
|
-
const o = l[t - 1].length;
|
|
81
|
-
l[t - 1] += l[t], l.splice(t, 1), t -= 1, e = o, r = !0;
|
|
82
|
-
}
|
|
83
|
-
n.preventDefault();
|
|
84
|
-
} else if (n.key === "Delete")
|
|
85
|
-
e < l[t].length ? (l[t] = l[t].slice(0, e) + l[t].slice(e + 1), r = !0) : t < l.length - 1 && (l[t] += l[t + 1], l.splice(t + 1, 1), r = !0), n.preventDefault();
|
|
86
|
-
else if (n.key === "ArrowLeft")
|
|
87
|
-
e > 0 ? e -= 1 : t > 0 && (t -= 1, e = l[t].length), r = !0, n.preventDefault();
|
|
88
|
-
else if (n.key === "ArrowRight")
|
|
89
|
-
e < l[t].length ? e += 1 : t < l.length - 1 && (t += 1, e = 0), r = !0, n.preventDefault();
|
|
90
|
-
else if (n.key === "ArrowUp")
|
|
91
|
-
t > 0 && (t -= 1, e = Math.min(e, l[t].length), r = !0), n.preventDefault();
|
|
92
|
-
else if (n.key === "ArrowDown")
|
|
93
|
-
t < l.length - 1 && (t += 1, e = Math.min(e, l[t].length), r = !0), n.preventDefault();
|
|
94
|
-
else if (n.key.length === 1 && !n.ctrlKey && !n.metaKey && !n.altKey)
|
|
95
|
-
l[t] = l[t].slice(0, e) + n.key + l[t].slice(e), e += 1, r = !0, n.preventDefault();
|
|
96
|
-
else if (n.key === "Escape") {
|
|
97
|
-
se(!0);
|
|
98
|
-
return;
|
|
99
|
-
} else n.key === "Tab" && n.preventDefault();
|
|
100
|
-
r && (D.value = l, z.value = { row: t, col: e }, ae(), oe());
|
|
101
|
-
}
|
|
102
|
-
function ae() {
|
|
103
|
-
const n = x.value, { x: t, y: e } = F.value;
|
|
104
|
-
for (; n.firstChild; ) n.removeChild(n.firstChild);
|
|
105
|
-
D.value.forEach((l, r) => {
|
|
106
|
-
const o = document.createElementNS(
|
|
107
|
-
"http://www.w3.org/2000/svg",
|
|
108
|
-
"tspan"
|
|
109
|
-
);
|
|
110
|
-
o.setAttribute("x", t), o.setAttribute("dy", r === 0 ? "0" : `${L.value * 1.2}`), o.textContent = l.length ? l : "", n.appendChild(o);
|
|
111
|
-
});
|
|
112
|
-
}
|
|
113
|
-
function oe() {
|
|
114
|
-
const n = v.value.querySelector(".vue-data-ui-svg-caret");
|
|
115
|
-
n && v.value.removeChild(n);
|
|
116
|
-
const t = x.value;
|
|
117
|
-
if (!t) return;
|
|
118
|
-
const { x: e, y: l } = F.value, { row: r, col: o } = z.value, i = L.value, d = t.childNodes[r];
|
|
119
|
-
if (!d) return;
|
|
120
|
-
let h = d.textContent.slice(0, o);
|
|
121
|
-
h.endsWith(" ") && (h += " ");
|
|
122
|
-
const f = document.createElementNS(
|
|
123
|
-
"http://www.w3.org/2000/svg",
|
|
124
|
-
"text"
|
|
125
|
-
);
|
|
126
|
-
f.setAttribute("x", e), f.setAttribute("y", l), f.setAttribute("font-size", i), f.setAttribute("font-family", "sans-serif"), f.textContent = h || "", v.value.appendChild(f);
|
|
127
|
-
const w = f.getBBox();
|
|
128
|
-
v.value.removeChild(f);
|
|
129
|
-
let k = l + r * i * 1.2, N = e + w.width;
|
|
130
|
-
const b = document.createElementNS(
|
|
131
|
-
"http://www.w3.org/2000/svg",
|
|
132
|
-
"rect"
|
|
133
|
-
);
|
|
134
|
-
b.setAttribute("x", N), b.setAttribute("y", k), b.setAttribute("width", 1), b.setAttribute("height", i), b.setAttribute("fill", A.value), b.setAttribute("class", "vue-data-ui-svg-caret"), v.value.appendChild(b);
|
|
135
|
-
}
|
|
136
|
-
function ue(n) {
|
|
137
|
-
if (x.value && !x.value.contains(n.target)) {
|
|
138
|
-
const t = x.value.children;
|
|
139
|
-
t.length === 1 && (t[0].textContent === "" || t[0].textContent === "") && x.value.remove(), se(!1);
|
|
140
|
-
}
|
|
141
|
-
}
|
|
142
|
-
function se(n = !1) {
|
|
143
|
-
window.removeEventListener("keydown", re), window.removeEventListener("mousedown", ue, !0);
|
|
144
|
-
const t = v.value?.querySelector(".vue-data-ui-svg-caret");
|
|
145
|
-
t && v.value.removeChild(t);
|
|
146
|
-
const e = D.value.every(
|
|
147
|
-
(l) => !l || l === ""
|
|
148
|
-
);
|
|
149
|
-
n || e || m.value.push({
|
|
150
|
-
id: Z(),
|
|
151
|
-
type: "text",
|
|
152
|
-
x: F.value.x,
|
|
153
|
-
y: F.value.y,
|
|
154
|
-
color: A.value,
|
|
155
|
-
fontSize: L.value,
|
|
156
|
-
lines: D.value.map((l) => l)
|
|
157
|
-
}), x.value && v.value && v.value.contains(x.value) && v.value.removeChild(x.value), V.value = !1, x.value = null, D.value = [""], z.value = { row: 0, col: 0 };
|
|
158
|
-
}
|
|
159
|
-
const B = ge(() => We(S.color, 0.6));
|
|
160
|
-
function _({ width: n, height: t }) {
|
|
161
|
-
te.value = `0 0 ${n} ${t}`;
|
|
162
|
-
}
|
|
163
|
-
const H = u(null);
|
|
164
|
-
ze(() => {
|
|
165
|
-
Xe(() => {
|
|
166
|
-
if (S.parent) {
|
|
167
|
-
H.value = new ResizeObserver((e) => {
|
|
168
|
-
for (const l of e) {
|
|
169
|
-
const { width: r, height: o } = l.contentRect;
|
|
170
|
-
_({ width: r, height: o });
|
|
171
|
-
}
|
|
172
|
-
}), H.value.observe(S.parent);
|
|
173
|
-
const { width: n, height: t } = S.parent.getBoundingClientRect();
|
|
174
|
-
_({ width: n, height: t });
|
|
175
|
-
}
|
|
176
|
-
}), v.value = p.value.querySelector("g");
|
|
177
|
-
}), Ye(() => {
|
|
178
|
-
H.value && H.value.disconnect();
|
|
179
|
-
}), ee(
|
|
180
|
-
() => S.parent,
|
|
181
|
-
(n) => {
|
|
182
|
-
if (!n) return;
|
|
183
|
-
const { width: t, height: e } = S.parent.getBoundingClientRect();
|
|
184
|
-
_({ width: t, height: e });
|
|
185
|
-
},
|
|
186
|
-
{ immediate: !0 }
|
|
187
|
-
), ee(a, (n) => {
|
|
188
|
-
p.value && (p.value.removeEventListener("mousedown", G), p.value.removeEventListener("touchstart", G), n === "text" && (p.value.addEventListener("mousedown", G), p.value.addEventListener("touchstart", G, {
|
|
189
|
-
passive: !1
|
|
190
|
-
})));
|
|
191
|
-
});
|
|
192
|
-
const X = u(!1), Y = u(""), p = u(null), O = u(!1), ie = u(null);
|
|
193
|
-
ee(
|
|
194
|
-
() => S.active,
|
|
195
|
-
(n) => {
|
|
196
|
-
p.value && (p.value.style.touchAction = n ? "none" : "");
|
|
197
|
-
},
|
|
198
|
-
{ immediate: !0 }
|
|
199
|
-
);
|
|
200
|
-
function ce(n) {
|
|
201
|
-
if (n.cancelable && n.preventDefault(), a.value !== "draw" || !p.value) return;
|
|
202
|
-
X.value = !0;
|
|
203
|
-
const { x: t, y: e } = W(n);
|
|
204
|
-
Y.value = `M ${t} ${e}`;
|
|
205
|
-
}
|
|
206
|
-
function ve(n) {
|
|
207
|
-
if (n.cancelable && n.preventDefault(), a.value !== "draw" || !X.value || !p.value) return;
|
|
208
|
-
const { x: t, y: e } = W(n);
|
|
209
|
-
Y.value += ` ${t} ${e}`;
|
|
210
|
-
}
|
|
211
|
-
function Le() {
|
|
212
|
-
const n = p.value;
|
|
213
|
-
if (!n) return;
|
|
214
|
-
let t = n.querySelector(`defs#${le.value}`);
|
|
215
|
-
if (t || (t = document.createElementNS(U, "defs"), t.setAttribute("id", le.value), n.appendChild(t)), t.querySelector(`#${K.value}`)) return;
|
|
216
|
-
const e = 6, l = document.createElementNS(U, "marker");
|
|
217
|
-
l.setAttribute("id", K.value), l.setAttribute("markerUnits", "strokeWidth"), l.setAttribute("markerWidth", String(e)), l.setAttribute("markerHeight", String(e)), l.setAttribute("refX", String(e - 2)), l.setAttribute("refY", String(e / 2)), l.setAttribute("orient", "auto"), l.setAttribute("viewBox", `0 0 ${e} ${e}`);
|
|
218
|
-
const r = document.createElementNS(U, "path");
|
|
219
|
-
r.setAttribute("d", `M 0 0 L ${e} ${e / 2} L 0 ${e} z`), r.setAttribute("fill", "context-stroke"), r.setAttribute("stroke", "none"), l.appendChild(r), t.appendChild(l);
|
|
220
|
-
}
|
|
221
|
-
function de(n) {
|
|
222
|
-
if (n.cancelable && n.preventDefault(), !["line", "arrow"].includes(a.value) || !p.value || !v.value) return;
|
|
223
|
-
a.value === "arrow" && Le(), O.value = !0;
|
|
224
|
-
const { x: t, y: e } = W(n);
|
|
225
|
-
ie.value = { x: t, y: e }, c.value = document.createElementNS(U, "line"), c.value.setAttribute("x1", t), c.value.setAttribute("y1", e), c.value.setAttribute("x2", t), c.value.setAttribute("y2", e), c.value.setAttribute("stroke", A.value), c.value.setAttribute("stroke-width", T.value), c.value.setAttribute("stroke-linecap", "round"), c.value.setAttribute("class", "vue-data-ui-doodle"), a.value === "arrow" && c.value.setAttribute(
|
|
226
|
-
"marker-end",
|
|
227
|
-
`url(#${K.value})`
|
|
228
|
-
), v.value.appendChild(c.value);
|
|
229
|
-
}
|
|
230
|
-
function fe(n) {
|
|
231
|
-
if (n.cancelable && n.preventDefault(), !["line", "arrow"].includes(a.value) || !O.value || !c.value) return;
|
|
232
|
-
const { x: t, y: e } = W(n);
|
|
233
|
-
c.value.setAttribute("x2", t), c.value.setAttribute("y2", e);
|
|
234
|
-
}
|
|
235
|
-
function Q(n) {
|
|
236
|
-
if (n?.cancelable && n.preventDefault(), !O.value || !c.value) return;
|
|
237
|
-
const { x: t, y: e } = W(n);
|
|
238
|
-
c.value.setAttribute("x2", t), c.value.setAttribute("y2", e), m.value.push({
|
|
239
|
-
id: Z(),
|
|
240
|
-
type: a.value,
|
|
241
|
-
// 'line' or 'arrow'
|
|
242
|
-
x1: parseFloat(c.value.getAttribute("x1")),
|
|
243
|
-
y1: parseFloat(c.value.getAttribute("y1")),
|
|
244
|
-
x2: t,
|
|
245
|
-
y2: e,
|
|
246
|
-
strokeWidth: T.value,
|
|
247
|
-
color: A.value
|
|
248
|
-
}), E.value = [], v.value.contains(c.value) && v.value.removeChild(c.value), c.value = null, ie.value = null, O.value = !1;
|
|
249
|
-
}
|
|
250
|
-
function pe(n) {
|
|
251
|
-
const t = n.trim().split(/\s+/);
|
|
252
|
-
if (t.length < 4)
|
|
253
|
-
return n;
|
|
254
|
-
const e = t.slice(1).map(Number);
|
|
255
|
-
if (e.length % 2 !== 0)
|
|
256
|
-
return n;
|
|
257
|
-
const l = Be(e), r = [
|
|
258
|
-
`M ${l[0]} ${l[1]}`
|
|
259
|
-
];
|
|
260
|
-
for (let d = 2; d < l.length - 2; d += 2) {
|
|
261
|
-
const h = l[d - 2], f = l[d - 1], w = l[d], k = l[d + 1], N = (h + w) / 2, b = (f + k) / 2;
|
|
262
|
-
r.push(`Q ${h} ${f} ${N} ${b}`);
|
|
263
|
-
}
|
|
264
|
-
const o = l[l.length - 2], i = l[l.length - 1];
|
|
265
|
-
return r.push(`L ${o} ${i}`), r.join(" ");
|
|
266
|
-
}
|
|
267
|
-
function Be(n, t = 1) {
|
|
268
|
-
const e = [...n];
|
|
269
|
-
for (let l = 2; l < n.length - 2; l += 2) {
|
|
270
|
-
const r = n[l], o = n[l + 1], i = n[l - 2], d = n[l - 1], h = n[l + 2], f = n[l + 3];
|
|
271
|
-
e[l] = r + t * ((i + h) / 2 - r), e[l + 1] = o + t * ((d + f) / 2 - o);
|
|
272
|
-
}
|
|
273
|
-
return e;
|
|
274
|
-
}
|
|
275
|
-
function Ne(n) {
|
|
276
|
-
const t = n.trim().split(/\s+/);
|
|
277
|
-
let e = "", l = "", r = null, o = null;
|
|
278
|
-
for (let i = 0; i < t.length; i += 1) {
|
|
279
|
-
const d = t[i];
|
|
280
|
-
if (isNaN(d)) {
|
|
281
|
-
if (l = d, l === "M" || l === "L")
|
|
282
|
-
r = parseFloat(t[++i]), o = parseFloat(t[++i]), e += `${l}${r} ${o}`;
|
|
283
|
-
else if (l === "Q") {
|
|
284
|
-
const h = parseFloat(t[++i]), f = parseFloat(t[++i]), w = parseFloat(t[++i]), k = parseFloat(t[++i]);
|
|
285
|
-
h === r && f === o ? e += `t${w - r} ${k - o}` : e += `q${h - r} ${f - o} ${w - r} ${k - o}`, r = w, o = k;
|
|
286
|
-
}
|
|
287
|
-
} else {
|
|
288
|
-
const h = parseFloat(d), f = parseFloat(t[++i]);
|
|
289
|
-
if (l === "L") {
|
|
290
|
-
const w = h - r, k = f - o;
|
|
291
|
-
w === 0 ? e += `v${k}` : k === 0 ? e += `h${w}` : e += `l${w} ${k}`, r = h, o = f;
|
|
292
|
-
} else if (l === "Q") {
|
|
293
|
-
const w = h, k = f, N = parseFloat(t[++i]), b = parseFloat(t[++i]);
|
|
294
|
-
w === r && k === o ? e += `t${N - r} ${b - o}` : e += `q${w - r} ${k - o} ${N - r} ${b - o}`, r = N, o = b;
|
|
295
|
-
}
|
|
296
|
-
}
|
|
297
|
-
}
|
|
298
|
-
return e;
|
|
299
|
-
}
|
|
300
|
-
function j(n) {
|
|
301
|
-
n?.cancelable && n.preventDefault(), a.value === "draw" && (X.value && (m.value.push({
|
|
302
|
-
id: Z(),
|
|
303
|
-
strokeWidth: T.value,
|
|
304
|
-
path: Ne(pe(Y.value)),
|
|
305
|
-
color: A.value
|
|
306
|
-
}), E.value = [], Y.value = ""), X.value = !1);
|
|
307
|
-
}
|
|
308
|
-
function W(n) {
|
|
309
|
-
if (!p.value) return { x: 0, y: 0 };
|
|
310
|
-
const t = p.value.getBoundingClientRect(), l = !!n.touches?.length || !!n.changedTouches?.length ? n.touches?.[0] || n.changedTouches?.[0] : null, r = l ? l.clientX : n.clientX, o = l ? l.clientY : n.clientY;
|
|
311
|
-
return {
|
|
312
|
-
x: r - t.left,
|
|
313
|
-
y: o - t.top
|
|
314
|
-
};
|
|
315
|
-
}
|
|
316
|
-
function Me() {
|
|
317
|
-
if (m.value.length > 0) {
|
|
318
|
-
const n = m.value.pop();
|
|
319
|
-
E.value.push(n);
|
|
320
|
-
}
|
|
321
|
-
}
|
|
322
|
-
function Pe() {
|
|
323
|
-
if (E.value.length > 0) {
|
|
324
|
-
const n = E.value.pop();
|
|
325
|
-
m.value.push(n);
|
|
326
|
-
}
|
|
327
|
-
}
|
|
328
|
-
function Fe() {
|
|
329
|
-
m.value = [], E.value = [];
|
|
330
|
-
}
|
|
331
|
-
const he = u(null);
|
|
332
|
-
return (n, t) => (g(), y(J, null, [
|
|
333
|
-
s.active ? (g(), y("div", {
|
|
334
|
-
key: 0,
|
|
335
|
-
"data-dom-to-png-ignore": "",
|
|
336
|
-
class: M({
|
|
337
|
-
"vue-ui-pen-and-paper-actions": !0,
|
|
338
|
-
visible: s.active
|
|
339
|
-
}),
|
|
340
|
-
style: C({ backgroundColor: s.backgroundColor })
|
|
341
|
-
}, [
|
|
342
|
-
$("button", {
|
|
343
|
-
class: "vue-ui-pen-and-paper-action",
|
|
344
|
-
style: C({
|
|
345
|
-
backgroundColor: s.backgroundColor,
|
|
346
|
-
border: `1px solid ${B.value}`,
|
|
347
|
-
cursor: s.isCursorPointer ? "pointer" : "default"
|
|
348
|
-
}),
|
|
349
|
-
onClick: t[0] || (t[0] = (e) => Se("close"))
|
|
350
|
-
}, [
|
|
351
|
-
P(q, {
|
|
352
|
-
name: "close",
|
|
353
|
-
stroke: s.color
|
|
354
|
-
}, null, 8, ["stroke"])
|
|
355
|
-
], 4),
|
|
356
|
-
$("button", {
|
|
357
|
-
class: M({
|
|
358
|
-
"vue-ui-pen-and-paper-action": !0
|
|
359
|
-
}),
|
|
360
|
-
style: C({
|
|
361
|
-
padding: "0 !important",
|
|
362
|
-
cursor: s.isCursorPointer ? "pointer" : "default"
|
|
363
|
-
})
|
|
364
|
-
}, [
|
|
365
|
-
P(Ue, {
|
|
366
|
-
value: A.value,
|
|
367
|
-
"onUpdate:value": t[1] || (t[1] = (e) => A.value = e),
|
|
368
|
-
backgroundColor: s.backgroundColor,
|
|
369
|
-
buttonBorderColor: B.value
|
|
370
|
-
}, null, 8, ["value", "backgroundColor", "buttonBorderColor"])
|
|
371
|
-
], 4),
|
|
372
|
-
$("button", {
|
|
373
|
-
class: M(["vue-ui-pen-and-paper-action", { "vue-ui-pen-and-paper-action-active": a.value === "text" }]),
|
|
374
|
-
onClick: t[2] || (t[2] = (e) => Te()),
|
|
375
|
-
style: C({
|
|
376
|
-
backgroundColor: s.backgroundColor,
|
|
377
|
-
border: `1px solid ${B.value}`,
|
|
378
|
-
cursor: s.isCursorPointer ? "pointer" : "default"
|
|
379
|
-
})
|
|
380
|
-
}, [
|
|
381
|
-
P(q, {
|
|
382
|
-
name: Ee[a.value],
|
|
383
|
-
stroke: s.color
|
|
384
|
-
}, null, 8, ["name", "stroke"]),
|
|
385
|
-
$("div", {
|
|
386
|
-
style: C({
|
|
387
|
-
position: "absolute",
|
|
388
|
-
bottom: "-20px",
|
|
389
|
-
color: B.value,
|
|
390
|
-
width: "100%",
|
|
391
|
-
textAlign: "center",
|
|
392
|
-
fontSize: "12px"
|
|
393
|
-
})
|
|
394
|
-
}, ye(xe(Re)({
|
|
395
|
-
v: a.value === "text" ? L.value : T.value,
|
|
396
|
-
s: "px",
|
|
397
|
-
r: 1
|
|
398
|
-
})), 5)
|
|
399
|
-
], 6),
|
|
400
|
-
$("button", {
|
|
401
|
-
class: M({
|
|
402
|
-
"vue-ui-pen-and-paper-action": !0,
|
|
403
|
-
"vue-ui-pen-and-paper-action-disabled": !m.value.length
|
|
404
|
-
}),
|
|
405
|
-
disabled: !m.value.length,
|
|
406
|
-
style: C({
|
|
407
|
-
backgroundColor: s.backgroundColor,
|
|
408
|
-
border: `1px solid ${B.value}`,
|
|
409
|
-
marginTop: "20px",
|
|
410
|
-
cursor: s.isCursorPointer ? "pointer" : "default"
|
|
411
|
-
}),
|
|
412
|
-
onClick: Me
|
|
413
|
-
}, [
|
|
414
|
-
P(q, {
|
|
415
|
-
name: "refresh",
|
|
416
|
-
stroke: s.color
|
|
417
|
-
}, null, 8, ["stroke"])
|
|
418
|
-
], 14, Ve),
|
|
419
|
-
$("button", {
|
|
420
|
-
class: M({
|
|
421
|
-
"vue-ui-pen-and-paper-action": !0,
|
|
422
|
-
"vue-ui-pen-and-paper-action-disabled": !E.value.length
|
|
423
|
-
}),
|
|
424
|
-
style: C({
|
|
425
|
-
backgroundColor: s.backgroundColor,
|
|
426
|
-
border: `1px solid ${B.value}`,
|
|
427
|
-
cursor: s.isCursorPointer ? "pointer" : "default"
|
|
428
|
-
}),
|
|
429
|
-
onClick: Pe
|
|
430
|
-
}, [
|
|
431
|
-
P(q, {
|
|
432
|
-
name: "refresh",
|
|
433
|
-
stroke: s.color,
|
|
434
|
-
style: { transform: "scaleX(-1)" }
|
|
435
|
-
}, null, 8, ["stroke"])
|
|
436
|
-
], 6),
|
|
437
|
-
$("button", {
|
|
438
|
-
class: M([{
|
|
439
|
-
"vue-ui-pen-and-paper-action": !0,
|
|
440
|
-
"vue-ui-pen-and-paper-action-disabled": !m.value.length
|
|
441
|
-
}, "vue-ui-pen-and-paper-action"]),
|
|
442
|
-
style: C({
|
|
443
|
-
backgroundColor: s.backgroundColor,
|
|
444
|
-
border: `1px solid ${B.value}`,
|
|
445
|
-
cursor: s.isCursorPointer ? "pointer" : "default"
|
|
446
|
-
}),
|
|
447
|
-
onClick: Fe
|
|
448
|
-
}, [
|
|
449
|
-
P(q, {
|
|
450
|
-
name: "trash",
|
|
451
|
-
stroke: s.color
|
|
452
|
-
}, null, 8, ["stroke"])
|
|
453
|
-
], 6),
|
|
454
|
-
a.value === "draw" ? we((g(), y("input", {
|
|
455
|
-
key: 0,
|
|
456
|
-
ref_key: "range",
|
|
457
|
-
ref: he,
|
|
458
|
-
type: "range",
|
|
459
|
-
class: "vertical-range",
|
|
460
|
-
min: 0.5,
|
|
461
|
-
max: 12,
|
|
462
|
-
step: 0.1,
|
|
463
|
-
"onUpdate:modelValue": t[3] || (t[3] = (e) => T.value = e),
|
|
464
|
-
style: C({ accentColor: s.color })
|
|
465
|
-
}, null, 4)), [
|
|
466
|
-
[ke, T.value]
|
|
467
|
-
]) : R("", !0),
|
|
468
|
-
a.value === "text" ? we((g(), y("input", {
|
|
469
|
-
key: 1,
|
|
470
|
-
ref_key: "range",
|
|
471
|
-
ref: he,
|
|
472
|
-
type: "range",
|
|
473
|
-
class: "vertical-range",
|
|
474
|
-
min: 3,
|
|
475
|
-
max: 48,
|
|
476
|
-
step: 0.1,
|
|
477
|
-
"onUpdate:modelValue": t[4] || (t[4] = (e) => L.value = e),
|
|
478
|
-
style: C({ accentColor: s.color })
|
|
479
|
-
}, null, 4)), [
|
|
480
|
-
[ke, L.value]
|
|
481
|
-
]) : R("", !0)
|
|
482
|
-
], 6)) : R("", !0),
|
|
483
|
-
(g(), y("svg", {
|
|
484
|
-
"data-mode": a.value,
|
|
485
|
-
ref_key: "svgElement",
|
|
486
|
-
ref: p,
|
|
487
|
-
xmlns: xe(U),
|
|
488
|
-
viewBox: te.value,
|
|
489
|
-
class: M({
|
|
490
|
-
"vue-ui-pen-and-paper": !0,
|
|
491
|
-
inactive: !s.active
|
|
492
|
-
}),
|
|
493
|
-
onMousedown: t[5] || (t[5] = (e) => a.value === "draw" ? ce(e) : a.value === "line" || a.value === "arrow" ? de(e) : null),
|
|
494
|
-
onMousemove: t[6] || (t[6] = (e) => a.value === "draw" ? ve(e) : a.value === "line" || a.value === "arrow" ? fe(e) : null),
|
|
495
|
-
onMouseup: t[7] || (t[7] = (e) => a.value === "draw" ? j(e) : a.value === "line" || a.value === "arrow" ? Q(e) : null),
|
|
496
|
-
onMouseleave: t[8] || (t[8] = (e) => a.value === "draw" ? j(e) : a.value === "line" || a.value === "arrow" ? Q(e) : null),
|
|
497
|
-
onTouchstart: t[9] || (t[9] = be((e) => a.value === "draw" ? ce(e) : a.value === "line" || a.value === "arrow" ? de(e) : null, ["prevent"])),
|
|
498
|
-
onTouchmove: t[10] || (t[10] = be((e) => a.value === "draw" ? ve(e) : a.value === "line" || a.value === "arrow" ? fe(e) : null, ["prevent"])),
|
|
499
|
-
onTouchend: t[11] || (t[11] = (e) => a.value === "draw" ? j(e) : a.value === "line" || a.value === "arrow" ? Q(e) : null),
|
|
500
|
-
onTouchcancel: t[12] || (t[12] = (e) => a.value === "draw" ? j(e) : a.value === "line" || a.value === "arrow" ? Q(e) : null)
|
|
501
|
-
}, [
|
|
502
|
-
$("g", {
|
|
503
|
-
ref_key: "G",
|
|
504
|
-
ref: v
|
|
505
|
-
}, [
|
|
506
|
-
(g(!0), y(J, null, me(m.value, (e) => (g(), y(J, {
|
|
507
|
-
key: e.id
|
|
508
|
-
}, [
|
|
509
|
-
e.path && e.path.replace("M", "").split(" ").length === 2 ? (g(), y("circle", {
|
|
510
|
-
key: 0,
|
|
511
|
-
cx: e.path.replace("M", "").split(" ")[0],
|
|
512
|
-
cy: e.path.replace("M", "").split(" ")[1],
|
|
513
|
-
r: e.strokeWidth / 2,
|
|
514
|
-
fill: e.color
|
|
515
|
-
}, null, 8, Ke)) : e.type === "line" ? (g(), y("line", {
|
|
516
|
-
key: 1,
|
|
517
|
-
class: "vue-ui-pen-and-paper-path",
|
|
518
|
-
x1: e.x1,
|
|
519
|
-
y1: e.y1,
|
|
520
|
-
x2: e.x2,
|
|
521
|
-
y2: e.y2,
|
|
522
|
-
stroke: e.color,
|
|
523
|
-
"stroke-width": e.strokeWidth
|
|
524
|
-
}, null, 8, Ge)) : e.type === "arrow" ? (g(), y("line", {
|
|
525
|
-
key: 2,
|
|
526
|
-
class: "vue-ui-pen-and-paper-path",
|
|
527
|
-
x1: e.x1,
|
|
528
|
-
y1: e.y1,
|
|
529
|
-
x2: e.x2,
|
|
530
|
-
y2: e.y2,
|
|
531
|
-
stroke: e.color,
|
|
532
|
-
"stroke-width": e.strokeWidth,
|
|
533
|
-
"marker-end": `url(#${K.value})`
|
|
534
|
-
}, null, 8, He)) : e.path ? (g(), y("path", {
|
|
535
|
-
key: 3,
|
|
536
|
-
class: "vue-ui-pen-and-paper-path",
|
|
537
|
-
d: e.path,
|
|
538
|
-
stroke: e.color,
|
|
539
|
-
"stroke-width": e.strokeWidth,
|
|
540
|
-
fill: "none"
|
|
541
|
-
}, null, 8, Oe)) : e.type === "text" ? (g(), y("text", {
|
|
542
|
-
key: 4,
|
|
543
|
-
x: e.x,
|
|
544
|
-
y: e.y,
|
|
545
|
-
fill: e.color,
|
|
546
|
-
"font-size": e.fontSize,
|
|
547
|
-
"font-family": "sans-serif",
|
|
548
|
-
"dominant-baseline": "hanging",
|
|
549
|
-
class: "vue-ui-pen-and-paper-text"
|
|
550
|
-
}, [
|
|
551
|
-
(g(!0), y(J, null, me(e.lines, (l, r) => (g(), y("tspan", {
|
|
552
|
-
key: r,
|
|
553
|
-
x: e.x,
|
|
554
|
-
dy: r === 0 ? "0" : e.fontSize * 1.2
|
|
555
|
-
}, ye(l.length ? l : ""), 9, je))), 128))
|
|
556
|
-
], 8, Qe)) : R("", !0)
|
|
557
|
-
], 64))), 128))
|
|
558
|
-
], 512),
|
|
559
|
-
X.value ? (g(), y("path", {
|
|
560
|
-
key: 0,
|
|
561
|
-
class: "vue-ui-pen-and-paper-path vue-ui-pen-and-paper-path-drawing",
|
|
562
|
-
d: pe(Y.value),
|
|
563
|
-
stroke: A.value,
|
|
564
|
-
"stroke-width": T.value * 1.1,
|
|
565
|
-
fill: "none"
|
|
566
|
-
}, null, 8, Je)) : R("", !0)
|
|
567
|
-
], 42, Ie))
|
|
568
|
-
], 64));
|
|
569
|
-
}
|
|
570
|
-
}, rt = /* @__PURE__ */ qe(Ze, [["__scopeId", "data-v-3cfee988"]]);
|
|
571
|
-
export {
|
|
572
|
-
rt as default
|
|
573
|
-
};
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import { openBlock as e, createElementBlock as t, toDisplayString as o, unref as r } from "vue";
|
|
2
|
-
const n = "3.17.13", a = { "aria-hidden": "true" }, p = {
|
|
3
|
-
__name: "PackageVersion",
|
|
4
|
-
setup(s) {
|
|
5
|
-
return (c, i) => (e(), t("desc", a, "Composed with Vue Data UI " + o(r(n)), 1));
|
|
6
|
-
}
|
|
7
|
-
};
|
|
8
|
-
export {
|
|
9
|
-
p as default
|
|
10
|
-
};
|