vue-data-ui 3.17.13 → 3.18.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +1 -1
- package/dist/A11yDataTable-q2-8fSlJ.js +45 -0
- package/dist/Arrow-BU2Z7mfz.js +116 -0
- package/dist/BaseDraggableDialog-LE75fWYz.js +272 -0
- package/dist/BaseIcon-CL6Y7alf.js +499 -0
- package/dist/BaseLegendToggle-BvPOFMVZ.js +56 -0
- package/dist/BaseScanner-C7dmAref.js +27 -0
- package/dist/BaseZoomControls-DSwf4HhS.js +111 -0
- package/dist/ColorPicker-BGbMrtup.js +255 -0
- package/dist/DataTable-ZG4GX2Zg.js +150 -0
- package/dist/Legend-BPb8i4aC.js +114 -0
- package/dist/NonSvgPenAndPaper-BT3YMjgo.js +577 -0
- package/dist/PackageVersion-B1cPtZ3Q.js +11 -0
- package/dist/PenAndPaper-DxBCVZAx.js +461 -0
- package/dist/RecursiveCircles-DPpLel6f.js +117 -0
- package/dist/RecursiveLabels-DBMJf_to.js +56 -0
- package/dist/RecursiveLinks-D06dBL4a.js +78 -0
- package/dist/Shape-Dbug7CtK.js +141 -0
- package/dist/Slicer-SEdaKYPX.js +1144 -0
- package/dist/SlicerPreview-BLlQTUI_.js +1523 -0
- package/dist/SparkTooltip-BaONR2nq.js +93 -0
- package/dist/Title-ByyzJzpc.js +87 -0
- package/dist/Tooltip-V6Z0Ko-1.js +307 -0
- package/dist/UserOptions-Gaw1761w.js +1407 -0
- package/dist/_plugin-vue_export-helper-Dq1MygBL.js +8 -0
- package/dist/canvas-lib-DTaADQOK.js +79 -0
- package/dist/components/arrow.js +2 -5
- package/dist/components/vue-ui-3d-bar.js +2 -5
- package/dist/components/vue-ui-accordion.js +2 -5
- package/dist/components/vue-ui-age-pyramid.js +2 -5
- package/dist/components/vue-ui-annotator.js +2 -5
- package/dist/components/vue-ui-bullet.js +2 -5
- package/dist/components/vue-ui-bump.js +2 -5
- package/dist/components/vue-ui-candlestick.js +2 -5
- package/dist/components/vue-ui-carousel-table.js +2 -5
- package/dist/components/vue-ui-chestnut.js +2 -5
- package/dist/components/vue-ui-chord.js +2 -5
- package/dist/components/vue-ui-circle-pack.js +2 -5
- package/dist/components/vue-ui-cursor.js +2 -5
- package/dist/components/vue-ui-dag.js +2 -5
- package/dist/components/vue-ui-dashboard.js +2 -5
- package/dist/components/vue-ui-digits.js +2 -5
- package/dist/components/vue-ui-donut-evolution.js +2 -5
- package/dist/components/vue-ui-donut.js +2 -5
- package/dist/components/vue-ui-dumbbell.js +2 -5
- package/dist/components/vue-ui-flow.js +2 -5
- package/dist/components/vue-ui-funnel.js +2 -5
- package/dist/components/vue-ui-galaxy.js +2 -5
- package/dist/components/vue-ui-gauge.js +2 -5
- package/dist/components/vue-ui-geo.js +2 -5
- package/dist/components/vue-ui-gizmo.js +2 -5
- package/dist/components/vue-ui-heatmap.js +2 -5
- package/dist/components/vue-ui-history-plot.js +2 -5
- package/dist/components/vue-ui-horizontal-bar.js +2 -5
- package/dist/components/vue-ui-icon.js +2 -5
- package/dist/components/vue-ui-kpi.js +2 -5
- package/dist/components/vue-ui-mini-loader.js +2 -5
- package/dist/components/vue-ui-molecule.js +2 -5
- package/dist/components/vue-ui-mood-radar.js +2 -5
- package/dist/components/vue-ui-nested-donuts.js +2 -5
- package/dist/components/vue-ui-onion.js +2 -5
- package/dist/components/vue-ui-parallel-coordinate-plot.js +2 -5
- package/dist/components/vue-ui-pattern-seed.js +2 -5
- package/dist/components/vue-ui-pattern.js +2 -5
- package/dist/components/vue-ui-quadrant.js +2 -5
- package/dist/components/vue-ui-quick-chart.js +2 -5
- package/dist/components/vue-ui-radar.js +2 -5
- package/dist/components/vue-ui-rating.js +2 -5
- package/dist/components/vue-ui-relation-circle.js +2 -5
- package/dist/components/vue-ui-ridgeline.js +2 -5
- package/dist/components/vue-ui-rings.js +2 -5
- package/dist/components/vue-ui-scatter.js +2 -5
- package/dist/components/vue-ui-skeleton.js +2 -5
- package/dist/components/vue-ui-smiley.js +2 -5
- package/dist/components/vue-ui-spark-trend.js +2 -5
- package/dist/components/vue-ui-sparkbar.js +2 -5
- package/dist/components/vue-ui-sparkgauge.js +2 -5
- package/dist/components/vue-ui-sparkhistogram.js +2 -5
- package/dist/components/vue-ui-sparkline.js +2 -5
- package/dist/components/vue-ui-sparkstackbar.js +2 -5
- package/dist/components/vue-ui-stackbar.js +2 -5
- package/dist/components/vue-ui-stackline.js +2 -5
- package/dist/components/vue-ui-strip-plot.js +2 -5
- package/dist/components/vue-ui-table-heatmap.js +2 -5
- package/dist/components/vue-ui-table-sparkline.js +2 -5
- package/dist/components/vue-ui-table.js +2 -5
- package/dist/components/vue-ui-thermometer.js +2 -5
- package/dist/components/vue-ui-timer.js +2 -5
- package/dist/components/vue-ui-tiremarks.js +2 -5
- package/dist/components/vue-ui-treemap.js +2 -5
- package/dist/components/vue-ui-vertical-bar.js +2 -5
- package/dist/components/vue-ui-waffle.js +2 -5
- package/dist/components/vue-ui-wheel.js +2 -5
- package/dist/components/vue-ui-word-cloud.js +2 -5
- package/dist/components/vue-ui-world.js +2 -5
- package/dist/components/vue-ui-xy-canvas.js +2 -5
- package/dist/components/vue-ui-xy.js +2 -5
- package/dist/dom-to-png-C9UOX1d2.js +237 -0
- package/dist/exposedLib-BQjH823l.js +19 -0
- package/dist/geoProjections-CQIkC70z.js +146 -0
- package/dist/img-NMY-_LiJ.js +74 -0
- package/dist/labelUtils-BiSegLOT.js +19 -0
- package/dist/lib-B83ZCydz.js +1879 -0
- package/dist/patternUtils-B7BWu5bV.js +258 -0
- package/dist/pdf-Ey2KFETK.js +90 -0
- package/dist/rolldown-runtime-CAFD8bLK.js +11 -0
- package/dist/style.css +2 -1
- package/dist/types/arrow.d.ts +1 -1
- package/dist/types/utils.d.ts +23 -0
- package/dist/types/vue-data-ui.d.ts +4766 -630
- package/dist/types/vue-ui-3d-bar.d.ts +64 -9
- package/dist/types/vue-ui-accordion.d.ts +4 -3
- package/dist/types/vue-ui-age-pyramid.d.ts +79 -9
- package/dist/types/vue-ui-annotator.d.ts +3 -5
- package/dist/types/vue-ui-bullet.d.ts +60 -9
- package/dist/types/vue-ui-bump.d.ts +65 -9
- package/dist/types/vue-ui-candlestick.d.ts +83 -9
- package/dist/types/vue-ui-carousel-table.d.ts +36 -6
- package/dist/types/vue-ui-chestnut.d.ts +66 -9
- package/dist/types/vue-ui-chord.d.ts +78 -9
- package/dist/types/vue-ui-circle-pack.d.ts +86 -9
- package/dist/types/vue-ui-cursor.d.ts +4 -2
- package/dist/types/vue-ui-dag.d.ts +92 -9
- package/dist/types/vue-ui-dashboard.d.ts +43 -6
- package/dist/types/vue-ui-digits.d.ts +4 -2
- package/dist/types/vue-ui-donut-evolution.d.ts +70 -9
- package/dist/types/vue-ui-donut.d.ts +92 -9
- package/dist/types/vue-ui-dumbbell.d.ts +65 -9
- package/dist/types/vue-ui-flow.d.ts +79 -9
- package/dist/types/vue-ui-funnel.d.ts +55 -9
- package/dist/types/vue-ui-galaxy.d.ts +83 -9
- package/dist/types/vue-ui-gauge.d.ts +64 -9
- package/dist/types/vue-ui-geo.d.ts +71 -9
- package/dist/types/vue-ui-gizmo.d.ts +17 -6
- package/dist/types/vue-ui-heatmap.d.ts +73 -9
- package/dist/types/vue-ui-history-plot.d.ts +82 -9
- package/dist/types/vue-ui-horizontal-bar.d.ts +84 -9
- package/dist/types/vue-ui-icon.d.ts +2 -2
- package/dist/types/vue-ui-kpi.d.ts +21 -7
- package/dist/types/vue-ui-mini-loader.d.ts +5 -3
- package/dist/types/vue-ui-molecule.d.ts +86 -9
- package/dist/types/vue-ui-mood-radar.d.ts +66 -9
- package/dist/types/vue-ui-nested-donuts.d.ts +80 -9
- package/dist/types/vue-ui-onion.d.ts +77 -9
- package/dist/types/vue-ui-parallel-coordinate-plot.d.ts +92 -9
- package/dist/types/vue-ui-pattern-seed.d.ts +1 -1
- package/dist/types/vue-ui-pattern.d.ts +2 -2
- package/dist/types/vue-ui-quadrant.d.ts +86 -9
- package/dist/types/vue-ui-quick-chart.d.ts +79 -9
- package/dist/types/vue-ui-radar.d.ts +83 -9
- package/dist/types/vue-ui-rating.d.ts +22 -6
- package/dist/types/vue-ui-relation-circle.d.ts +66 -9
- package/dist/types/vue-ui-ridgeline.d.ts +69 -9
- package/dist/types/vue-ui-rings.d.ts +70 -9
- package/dist/types/vue-ui-scatter.d.ts +67 -9
- package/dist/types/vue-ui-skeleton.d.ts +3 -2
- package/dist/types/vue-ui-smiley.d.ts +3 -2
- package/dist/types/vue-ui-spark-trend.d.ts +14 -6
- package/dist/types/vue-ui-sparkbar.d.ts +27 -6
- package/dist/types/vue-ui-sparkgauge.d.ts +20 -6
- package/dist/types/vue-ui-sparkhistogram.d.ts +24 -6
- package/dist/types/vue-ui-sparkline.d.ts +35 -6
- package/dist/types/vue-ui-sparkstackbar.d.ts +35 -6
- package/dist/types/vue-ui-stackbar.d.ts +85 -9
- package/dist/types/vue-ui-stackline.d.ts +81 -9
- package/dist/types/vue-ui-strip-plot.d.ts +66 -9
- package/dist/types/vue-ui-table-heatmap.d.ts +52 -6
- package/dist/types/vue-ui-table-sparkline.d.ts +30 -6
- package/dist/types/vue-ui-table.d.ts +10 -2
- package/dist/types/vue-ui-thermometer.d.ts +46 -9
- package/dist/types/vue-ui-timer.d.ts +31 -5
- package/dist/types/vue-ui-tiremarks.d.ts +46 -9
- package/dist/types/vue-ui-treemap.d.ts +73 -9
- package/dist/types/vue-ui-vertical-bar.d.ts +2 -2
- package/dist/types/vue-ui-waffle.d.ts +72 -9
- package/dist/types/vue-ui-wheel.d.ts +46 -9
- package/dist/types/vue-ui-word-cloud.d.ts +73 -9
- package/dist/types/vue-ui-world.d.ts +68 -9
- package/dist/types/vue-ui-xy-canvas.d.ts +75 -9
- package/dist/types/vue-ui-xy.d.ts +108 -10
- package/dist/useAutoSizeLabelsInsideViewbox-De0rTecW.js +50 -0
- package/dist/useChartAccessibility-Do37qcw2.js +12 -0
- package/dist/useConfig-KnOLHtlJ.js +7419 -0
- package/dist/useFitSvgText-C-MEdAfe.js +63 -0
- package/dist/useNestedProp-CcxL1gUU.js +10 -0
- package/dist/useObjectBindings-Dc8Rf6Qy.js +189 -0
- package/dist/usePanZoom-B-4M_gmY.js +157 -0
- package/dist/usePrefersMotion-BywLbIko.js +15 -0
- package/dist/usePrinter-CMLF900n.js +49 -0
- package/dist/useResponsive-CrAInupd.js +19 -0
- package/dist/useStableElementSize-0I1IpHPl.js +77 -0
- package/dist/useSvgExport-Dtu973wa.js +755 -0
- package/dist/useTableResponsive-DrM1xqII.js +24 -0
- package/dist/useThemeCheck-rFK9Zlb_.js +24 -0
- package/dist/useTimeLabelCollider-Dm55Emzg.js +57 -0
- package/dist/useTimeLabels-C0x7zUXP.js +272 -0
- package/dist/useUserOptionState-CjPJPTg2.js +15 -0
- package/dist/utils.js +27 -44
- package/dist/vClickOutside-CbX_bC9A.js +13 -0
- package/dist/vue-data-ui-D1REqS_k.js +274 -0
- package/dist/vue-data-ui.js +76 -167
- package/dist/vue-ui-3d-bar-vO_kSCd6.js +1747 -0
- package/dist/vue-ui-accordion-Cf-jZELj.js +81 -0
- package/dist/vue-ui-age-pyramid-DHXhrP_3.js +1226 -0
- package/dist/vue-ui-annotator-B0o6czmF.js +2899 -0
- package/dist/vue-ui-bullet-C93-cf0H.js +700 -0
- package/dist/vue-ui-bump-C_Szk9AZ.js +1239 -0
- package/dist/vue-ui-candlestick-6JdMEJKO.js +1802 -0
- package/dist/vue-ui-carousel-table-CZ_HK0Iw.js +445 -0
- package/dist/vue-ui-chestnut-B8ixU585.js +2000 -0
- package/dist/vue-ui-chord-DC5sLapz.js +1381 -0
- package/dist/vue-ui-circle-pack-CsmSEwt3.js +1183 -0
- package/dist/vue-ui-cursor-B-QODIL3.js +283 -0
- package/dist/vue-ui-dag-C9LYfjS_.js +2899 -0
- package/dist/vue-ui-dashboard-D-f4ZaLi.js +503 -0
- package/dist/vue-ui-digits-CcB3odN7.js +209 -0
- package/dist/vue-ui-donut-DR0ngnZC.js +2396 -0
- package/dist/vue-ui-donut-evolution-BXpOscCe.js +1490 -0
- package/dist/vue-ui-dumbbell-CB_clJWA.js +1517 -0
- package/dist/vue-ui-flow-CUiOAEy1.js +1223 -0
- package/dist/vue-ui-funnel-BAlGDK0o.js +767 -0
- package/dist/vue-ui-galaxy-DbYNfSHb.js +1062 -0
- package/dist/vue-ui-gauge-Cie7jykM.js +910 -0
- package/dist/vue-ui-geo-Ce_gBRye.js +1504 -0
- package/dist/vue-ui-gizmo-B9POi_SN.js +225 -0
- package/dist/vue-ui-heatmap-DFfRSbnk.js +1556 -0
- package/dist/vue-ui-history-plot-DHp5WFgx.js +1551 -0
- package/dist/vue-ui-horizontal-bar-DI4yoARv.js +1669 -0
- package/dist/vue-ui-kpi-oUfso4UP.js +96 -0
- package/dist/vue-ui-mini-loader-aZMi1_uX.js +125 -0
- package/dist/vue-ui-molecule-D72kzel_.js +912 -0
- package/dist/vue-ui-mood-radar-Tw2ZFP7Y.js +1138 -0
- package/dist/vue-ui-nested-donuts-Bza1LczX.js +1472 -0
- package/dist/vue-ui-onion-BOuuib5d.js +1188 -0
- package/dist/vue-ui-parallel-coordinate-plot-BuQUq6-o.js +1413 -0
- package/dist/vue-ui-pattern-Bj-IPFr2.js +154 -0
- package/dist/vue-ui-pattern-seed-abRweCDE.js +61 -0
- package/dist/vue-ui-quadrant-zNFIXNt9.js +1966 -0
- package/dist/vue-ui-quick-chart-B1a8QVUn.js +2459 -0
- package/dist/vue-ui-radar-VFn-YP_2.js +1214 -0
- package/dist/vue-ui-rating-Dxgn21FA.js +343 -0
- package/dist/vue-ui-relation-circle-B0sZaCgX.js +914 -0
- package/dist/vue-ui-ridgeline-BsBAbg5V.js +1612 -0
- package/dist/vue-ui-rings-CDwUzMF-.js +1231 -0
- package/dist/vue-ui-scatter-Du_b-zM8.js +2380 -0
- package/dist/vue-ui-skeleton-BAq6J_6G.js +2556 -0
- package/dist/vue-ui-smiley-CoHvkS0c.js +356 -0
- package/dist/vue-ui-spark-trend-BmCcJ17C.js +438 -0
- package/dist/vue-ui-sparkbar-9z05IMx8.js +393 -0
- package/dist/vue-ui-sparkgauge-BlWri9DP.js +255 -0
- package/dist/vue-ui-sparkhistogram-CHZTt8d8.js +560 -0
- package/dist/vue-ui-sparkline-DirLW9Nd.js +1503 -0
- package/dist/vue-ui-sparkstackbar-Dk6cEI2o.js +660 -0
- package/dist/vue-ui-stackbar-DNIrGHkt.js +2235 -0
- package/dist/vue-ui-stackline-HoWn_ur2.js +2362 -0
- package/dist/vue-ui-strip-plot-Bi8u_fLr.js +1328 -0
- package/dist/vue-ui-table-XLjOOfdI.js +1338 -0
- package/dist/vue-ui-table-heatmap-DvnFiveI.js +334 -0
- package/dist/vue-ui-table-sparkline-CSZf8XxP.js +697 -0
- package/dist/vue-ui-thermometer-7eUO_7CP.js +753 -0
- package/dist/vue-ui-timer-DCbxsREb.js +439 -0
- package/dist/vue-ui-tiremarks-p_sfTufv.js +542 -0
- package/dist/vue-ui-treemap-BdZOW7TM.js +1575 -0
- package/dist/vue-ui-waffle-Bf9dWWCM.js +1350 -0
- package/dist/vue-ui-wheel-CZrIiB0K.js +875 -0
- package/dist/vue-ui-word-cloud-BeLjxoRe.js +1644 -0
- package/dist/vue-ui-world-D9ahzEQ2.js +14252 -0
- package/dist/vue-ui-xy-DrvbVuHO.js +4063 -0
- package/dist/vue-ui-xy-canvas-DU7vFrQr.js +1774 -0
- package/dist/vue_ui_3d_bar-CXKqO5Ej.js +185 -0
- package/dist/vue_ui_age_pyramid-BON8QI6X.js +301 -0
- package/dist/vue_ui_bullet-CE5sFT7u.js +186 -0
- package/dist/vue_ui_bump-frnXaXul.js +201 -0
- package/dist/vue_ui_candlestick-sY6UtOop.js +374 -0
- package/dist/vue_ui_chestnut-BiUZFv40.js +305 -0
- package/dist/vue_ui_chord-DpyR_b9A.js +275 -0
- package/dist/vue_ui_circle_pack-DBKz_Fi_.js +130 -0
- package/dist/vue_ui_dag-Ci_MOnvd.js +258 -0
- package/dist/vue_ui_donut-Cx2_BGcQ.js +358 -0
- package/dist/vue_ui_donut_evolution-CAJefrHs.js +717 -0
- package/dist/vue_ui_dumbbell-CClzAZTN.js +304 -0
- package/dist/vue_ui_flow-CCHO1Lo9.js +238 -0
- package/dist/vue_ui_funnel-h8q2mRpC.js +234 -0
- package/dist/vue_ui_galaxy-70vtkEBw.js +265 -0
- package/dist/vue_ui_gauge-C17CgfzN.js +178 -0
- package/dist/vue_ui_geo-C0UbQ0Lc.js +248 -0
- package/dist/vue_ui_heatmap-BqPP3J4M.js +319 -0
- package/dist/vue_ui_history_plot-C5nytDHh.js +413 -0
- package/dist/vue_ui_horizontal_bar-Bqxorkc_.js +341 -0
- package/dist/vue_ui_molecule-Dka4JBOp.js +231 -0
- package/dist/vue_ui_mood_radar-Dg4ijm53.js +281 -0
- package/dist/vue_ui_nested_donuts-BY9cOoHF.js +273 -0
- package/dist/vue_ui_onion-DTV9cup-.js +293 -0
- package/dist/vue_ui_parallel_coordinate_plot-CNWrDh96.js +278 -0
- package/dist/vue_ui_quadrant-3kjYvxpj.js +428 -0
- package/dist/vue_ui_quick_chart--VaYQuM4.js +139 -0
- package/dist/vue_ui_radar-Dxx9GJmj.js +306 -0
- package/dist/vue_ui_relation_circle-Cr0I2SoU.js +98 -0
- package/dist/vue_ui_ridgeline-CAtYca4b.js +767 -0
- package/dist/vue_ui_rings-DXC1VeX5.js +320 -0
- package/dist/vue_ui_scatter-D2S2j0ap.js +479 -0
- package/dist/vue_ui_spark_trend-BHMQ6_1p.js +82 -0
- package/dist/vue_ui_sparkbar-BR6hbuDE.js +64 -0
- package/dist/vue_ui_sparkgauge-xfPRHnMv.js +90 -0
- package/dist/vue_ui_sparkhistogram-CJRENZ1C.js +123 -0
- package/dist/vue_ui_sparkline-wgk7yO7E.js +151 -0
- package/dist/vue_ui_sparkstackbar-C5qZMmAl.js +175 -0
- package/dist/vue_ui_stackbar-BW_C3MXw.js +412 -0
- package/dist/vue_ui_stackline-DpI2LnjO.js +426 -0
- package/dist/vue_ui_strip_plot-8ZelqC5b.js +301 -0
- package/dist/vue_ui_table_heatmap-BGUjA0WA.js +80 -0
- package/dist/vue_ui_table_sparkline-i0Q-N_we.js +124 -0
- package/dist/vue_ui_thermometer-CuN7Gpez.js +123 -0
- package/dist/vue_ui_tiremarks-A6UHC0c3.js +122 -0
- package/dist/vue_ui_treemap-BQp06q-g.js +328 -0
- package/dist/vue_ui_vertical_bar-CJSD1FZS.js +247 -0
- package/dist/vue_ui_waffle-C_Ev4l7B.js +292 -0
- package/dist/vue_ui_wheel-DdkTPXJU.js +133 -0
- package/dist/vue_ui_word_cloud-B1PbsYPc.js +254 -0
- package/dist/vue_ui_xy-BYPqfYyx.js +482 -0
- package/dist/vue_ui_xy_canvas-CMHGNrLf.js +408 -0
- package/package.json +7 -7
- package/dist/A11yDataTable-BpmuNomI.js +0 -54
- package/dist/Arrow-dSvLFssU.js +0 -101
- package/dist/BaseDraggableDialog-Di8Hlru3.js +0 -249
- package/dist/BaseIcon-DX0hTWa-.js +0 -476
- package/dist/BaseLegendToggle-cMP8M2u0.js +0 -47
- package/dist/BaseScanner-C2j3TsSY.js +0 -36
- package/dist/BaseZoomControls-CVSC1-SU.js +0 -123
- package/dist/ColorPicker-bAxGcXK0.js +0 -271
- package/dist/DataTable-cMnb68Ik.js +0 -145
- package/dist/Legend-DGN5lY60.js +0 -104
- package/dist/NonSvgPenAndPaper-B6E0zEYe.js +0 -573
- package/dist/PackageVersion-BfrCAH6_.js +0 -10
- package/dist/PenAndPaper-CJDoB5H9.js +0 -527
- package/dist/RecursiveCircles-BE6GoMmo.js +0 -101
- package/dist/RecursiveLabels-BhQMS9Sm.js +0 -55
- package/dist/RecursiveLinks-BDwyYfP-.js +0 -83
- package/dist/Shape-CxJ5_Rre.js +0 -116
- package/dist/Slicer-D7UcO8sN.js +0 -1145
- package/dist/SlicerPreview-D_CgrN_7.js +0 -1580
- package/dist/SparkTooltip-D4bM-kfz.js +0 -68
- package/dist/Title-BbKoiBk2.js +0 -88
- package/dist/Tooltip-Cvt7Fi0Q.js +0 -299
- package/dist/UserOptions-DVduN6X7.js +0 -1474
- package/dist/_plugin-vue_export-helper-CHgC5LLL.js +0 -9
- package/dist/dom-to-png-DGvx6i5V.js +0 -262
- package/dist/exposedLib-sJvY1pST.js +0 -22
- package/dist/geoProjections-BFq2sOBY.js +0 -162
- package/dist/img-CjTQXS0U.js +0 -57
- package/dist/labelUtils-DX9oyq3C.js +0 -26
- package/dist/lib-DMzrGQHK.js +0 -2477
- package/dist/patternUtils-BINhU4Ky.js +0 -615
- package/dist/pdf-C4H4o1Cj.js +0 -88
- package/dist/useAutoSizeLabelsInsideViewbox-izlGDfwu.js +0 -55
- package/dist/useChartAccessibility-cp6XQtqi.js +0 -15
- package/dist/useConfig-CG4HT3wS.js +0 -7901
- package/dist/useFitSvgText-2crs6Fv5.js +0 -69
- package/dist/useNestedProp-DH0BEVVS.js +0 -13
- package/dist/useObjectBindings-Dixg-RIe.js +0 -228
- package/dist/usePanZoom-BbDhcKWf.js +0 -141
- package/dist/usePrefersMotion-Co0nj1eS.js +0 -17
- package/dist/usePrinter-C4t8DdQ-.js +0 -51
- package/dist/useResponsive-DfdjqQps.js +0 -195
- package/dist/useStableElementSize-C48ZVcZQ.js +0 -77
- package/dist/useSvgExport-BTG4hVPO.js +0 -870
- package/dist/useTableResponsive-BpfiEtzR.js +0 -26
- package/dist/useThemeCheck-C9Ccl7U9.js +0 -36
- package/dist/useTimeLabelCollider-D3JeJ6Ye.js +0 -86
- package/dist/useTimeLabels-Cv0tD9In.js +0 -307
- package/dist/useUserOptionState-B7Ej974k.js +0 -19
- package/dist/vClickOutside-C6WiFswA.js +0 -13
- package/dist/vue-data-ui-D1ZI7Y4l.js +0 -433
- package/dist/vue-ui-3d-bar-DEjKYzI5.js +0 -1824
- package/dist/vue-ui-accordion-DFtpH_16.js +0 -92
- package/dist/vue-ui-age-pyramid-LiC9hTjP.js +0 -1179
- package/dist/vue-ui-annotator-DrKnQoHf.js +0 -2991
- package/dist/vue-ui-bullet-DdxEINdq.js +0 -769
- package/dist/vue-ui-bump-CdgO1V7z.js +0 -1250
- package/dist/vue-ui-candlestick-DxJnPwto.js +0 -1775
- package/dist/vue-ui-carousel-table-CMefu5TI.js +0 -487
- package/dist/vue-ui-chestnut-BnGN72PO.js +0 -2001
- package/dist/vue-ui-chord-DWyar45U.js +0 -1457
- package/dist/vue-ui-circle-pack-CQ8vF2XH.js +0 -1076
- package/dist/vue-ui-cursor-HHOdkmyB.js +0 -260
- package/dist/vue-ui-dag-BDWPBElq.js +0 -3209
- package/dist/vue-ui-dashboard-Dg_I3X2a.js +0 -627
- package/dist/vue-ui-digits-CZmdir8V.js +0 -211
- package/dist/vue-ui-donut-BKegKHxj.js +0 -2608
- package/dist/vue-ui-donut-evolution-047dE4Lu.js +0 -1578
- package/dist/vue-ui-dumbbell-BL4ZMChj.js +0 -1552
- package/dist/vue-ui-flow-BAqtyunQ.js +0 -1279
- package/dist/vue-ui-funnel-Pl2sEOZs.js +0 -823
- package/dist/vue-ui-galaxy-CBF5Wsax.js +0 -1108
- package/dist/vue-ui-gauge-COV_S0Vp.js +0 -955
- package/dist/vue-ui-geo-CaPXElPf.js +0 -1510
- package/dist/vue-ui-gizmo-Csn7up96.js +0 -238
- package/dist/vue-ui-heatmap-Cpb0BYLa.js +0 -1694
- package/dist/vue-ui-history-plot-ZZEdzFCE.js +0 -1564
- package/dist/vue-ui-horizontal-bar-BonPYUZf.js +0 -1735
- package/dist/vue-ui-kpi-DoHhSsDK.js +0 -130
- package/dist/vue-ui-mini-loader-DOTBVCLE.js +0 -138
- package/dist/vue-ui-molecule-mVYnXouV.js +0 -945
- package/dist/vue-ui-mood-radar-DPvwnc3z.js +0 -1197
- package/dist/vue-ui-nested-donuts-C7E6TXrZ.js +0 -1702
- package/dist/vue-ui-onion-BGIlFhGB.js +0 -1207
- package/dist/vue-ui-parallel-coordinate-plot-C6G_A9ua.js +0 -1432
- package/dist/vue-ui-pattern-mXZW_pvA.js +0 -146
- package/dist/vue-ui-pattern-seed-BcNlxb2i.js +0 -36
- package/dist/vue-ui-quadrant-CVpIeYOB.js +0 -1918
- package/dist/vue-ui-quick-chart-CcV8qn9-.js +0 -2514
- package/dist/vue-ui-radar-G4AV1rBo.js +0 -1259
- package/dist/vue-ui-rating-CqPlP88P.js +0 -370
- package/dist/vue-ui-relation-circle-CkZ8oFVV.js +0 -856
- package/dist/vue-ui-ridgeline-CBTyYn6Q.js +0 -1737
- package/dist/vue-ui-rings-CSIOqFiP.js +0 -1256
- package/dist/vue-ui-scatter-AuC46ufT.js +0 -2345
- package/dist/vue-ui-skeleton-YD6rZjY_.js +0 -2475
- package/dist/vue-ui-smiley-CY0WFv2j.js +0 -391
- package/dist/vue-ui-spark-trend-D8KGIt-R.js +0 -423
- package/dist/vue-ui-sparkbar-BjWGJjzN.js +0 -424
- package/dist/vue-ui-sparkgauge-Dab5mss7.js +0 -285
- package/dist/vue-ui-sparkhistogram-D0rsmiPh.js +0 -559
- package/dist/vue-ui-sparkline-BCaauQuX.js +0 -1550
- package/dist/vue-ui-sparkstackbar-NT5yD6xA.js +0 -672
- package/dist/vue-ui-stackbar-ChBk_A1c.js +0 -2393
- package/dist/vue-ui-stackline-Cujamlze.js +0 -2490
- package/dist/vue-ui-strip-plot-CGBumG6I.js +0 -1293
- package/dist/vue-ui-table-BX2iMku4.js +0 -1726
- package/dist/vue-ui-table-heatmap-KXgXYVXm.js +0 -353
- package/dist/vue-ui-table-sparkline-C3NWnry0.js +0 -803
- package/dist/vue-ui-thermometer-DvdceZB1.js +0 -743
- package/dist/vue-ui-timer-XWAbvuAY.js +0 -504
- package/dist/vue-ui-tiremarks-B-YI1RlT.js +0 -578
- package/dist/vue-ui-treemap-AzorGfmd.js +0 -1757
- package/dist/vue-ui-waffle-CKtUvdTE.js +0 -1442
- package/dist/vue-ui-wheel-CnsLEArZ.js +0 -908
- package/dist/vue-ui-word-cloud-iAme2ihe.js +0 -1644
- package/dist/vue-ui-world-D5rrC9rw.js +0 -14452
- package/dist/vue-ui-xy-C_Q9chQe.js +0 -4468
- package/dist/vue-ui-xy-canvas-DG0299qE.js +0 -2107
- package/dist/vue_ui_3d_bar-CL0iX8Qi.js +0 -22
- package/dist/vue_ui_age_pyramid-8H8WSL7J.js +0 -22
- package/dist/vue_ui_bullet-Ckqieba5.js +0 -22
- package/dist/vue_ui_bump-CIht647H.js +0 -22
- package/dist/vue_ui_candlestick-BAMn-VGw.js +0 -22
- package/dist/vue_ui_chestnut-BloFvDuV.js +0 -22
- package/dist/vue_ui_chord-Bc1_ocwK.js +0 -22
- package/dist/vue_ui_circle_pack-CLmw8nHe.js +0 -22
- package/dist/vue_ui_dag-ZOwuDBZ8.js +0 -22
- package/dist/vue_ui_donut-CA4dgV8J.js +0 -22
- package/dist/vue_ui_donut_evolution-DFQU-rqE.js +0 -22
- package/dist/vue_ui_dumbbell-BCOHDiPk.js +0 -22
- package/dist/vue_ui_flow-BErINgox.js +0 -22
- package/dist/vue_ui_funnel-yuaMZ-yb.js +0 -22
- package/dist/vue_ui_galaxy-D95AN4FT.js +0 -22
- package/dist/vue_ui_gauge-BMEuRC4J.js +0 -22
- package/dist/vue_ui_geo--kg4VoVX.js +0 -22
- package/dist/vue_ui_heatmap-C9u993qE.js +0 -22
- package/dist/vue_ui_history_plot-BCKk1CrQ.js +0 -22
- package/dist/vue_ui_horizontal_bar-BEagrV0T.js +0 -22
- package/dist/vue_ui_molecule-BtvlINUh.js +0 -22
- package/dist/vue_ui_mood_radar-BUs6Fdn8.js +0 -22
- package/dist/vue_ui_nested_donuts-DvTrWT_C.js +0 -22
- package/dist/vue_ui_onion-CxWH9_OZ.js +0 -22
- package/dist/vue_ui_parallel_coordinate_plot-DH3cFJ3n.js +0 -22
- package/dist/vue_ui_quadrant-DjRs--Uz.js +0 -22
- package/dist/vue_ui_quick_chart-DMCjEjPe.js +0 -22
- package/dist/vue_ui_radar-DryGBOrz.js +0 -22
- package/dist/vue_ui_relation_circle-CCroen7h.js +0 -22
- package/dist/vue_ui_ridgeline-j4rVmpEp.js +0 -22
- package/dist/vue_ui_rings-CxOrekqA.js +0 -22
- package/dist/vue_ui_scatter-Bu1EAy9H.js +0 -22
- package/dist/vue_ui_spark_trend-3BjrSprO.js +0 -22
- package/dist/vue_ui_sparkbar-BsMzz5Um.js +0 -22
- package/dist/vue_ui_sparkgauge-KnjASOZs.js +0 -22
- package/dist/vue_ui_sparkhistogram-GBdzIVvS.js +0 -22
- package/dist/vue_ui_sparkline-CQ8DJVJx.js +0 -22
- package/dist/vue_ui_sparkstackbar-BSexvOuM.js +0 -22
- package/dist/vue_ui_stackbar-CuDC4O4b.js +0 -22
- package/dist/vue_ui_stackline-QTh-nuxE.js +0 -22
- package/dist/vue_ui_strip_plot-B9ypi_F3.js +0 -22
- package/dist/vue_ui_table_heatmap-CkvipPVy.js +0 -16
- package/dist/vue_ui_table_sparkline-yQdijcyJ.js +0 -22
- package/dist/vue_ui_thermometer-BTmjRBH8.js +0 -22
- package/dist/vue_ui_tiremarks-DBotWfi8.js +0 -22
- package/dist/vue_ui_treemap-D9-AIkT-.js +0 -22
- package/dist/vue_ui_vertical_bar-CELc39b8.js +0 -18
- package/dist/vue_ui_waffle-M2h-uJQ_.js +0 -22
- package/dist/vue_ui_wheel-LqBz3lv4.js +0 -22
- package/dist/vue_ui_word_cloud-mKAtBxHR.js +0 -22
- package/dist/vue_ui_xy-esktmpg-.js +0 -22
- package/dist/vue_ui_xy_canvas-6BBDSowT.js +0 -22
|
@@ -0,0 +1,461 @@
|
|
|
1
|
+
import { t as e } from "./rolldown-runtime-CAFD8bLK.js";
|
|
2
|
+
import { G as t, H as n, t as r, yt as i } from "./lib-B83ZCydz.js";
|
|
3
|
+
import { t as a } from "./BaseIcon-CL6Y7alf.js";
|
|
4
|
+
import { t as o } from "./ColorPicker-BGbMrtup.js";
|
|
5
|
+
import { computed as s, createCommentVNode as c, createElementBlock as l, createElementVNode as u, createVNode as d, guardReactiveProps as f, nextTick as p, normalizeClass as m, normalizeProps as h, normalizeStyle as g, onBeforeUnmount as ee, onMounted as te, openBlock as _, ref as v, renderSlot as y, toDisplayString as ne, unref as re, vModelText as ie, watch as b, withCtx as ae, withDirectives as oe } from "vue";
|
|
6
|
+
//#region src/atoms/PenAndPaper.vue
|
|
7
|
+
var se = /* @__PURE__ */ e({ default: () => x }), ce = ["disabled"], x = {
|
|
8
|
+
__name: "PenAndPaper",
|
|
9
|
+
props: {
|
|
10
|
+
svgRef: {
|
|
11
|
+
type: [
|
|
12
|
+
Object,
|
|
13
|
+
null,
|
|
14
|
+
void 0
|
|
15
|
+
],
|
|
16
|
+
required: !0
|
|
17
|
+
},
|
|
18
|
+
color: {
|
|
19
|
+
type: String,
|
|
20
|
+
default: "#2D353C"
|
|
21
|
+
},
|
|
22
|
+
backgroundColor: {
|
|
23
|
+
type: String,
|
|
24
|
+
default: "#FFFFFF"
|
|
25
|
+
},
|
|
26
|
+
active: {
|
|
27
|
+
type: Boolean,
|
|
28
|
+
default: !1
|
|
29
|
+
},
|
|
30
|
+
scale: {
|
|
31
|
+
type: Number,
|
|
32
|
+
default: 1
|
|
33
|
+
},
|
|
34
|
+
isCursorPointer: {
|
|
35
|
+
type: Boolean,
|
|
36
|
+
default: !1
|
|
37
|
+
}
|
|
38
|
+
},
|
|
39
|
+
emits: ["close"],
|
|
40
|
+
setup(e, { emit: se }) {
|
|
41
|
+
let x = e, le = se, S = v([]), C = v([]), w = v(x.color), T = v(2), E = v(!1), D = v(""), O = v(null), k = v(null), A = v(null), j = v(null), M = v(`arrow-${n()}`), ue = v(`arrow-def-${n()}`), N = v(!1), P = v(null), F = v({
|
|
42
|
+
x: 0,
|
|
43
|
+
y: 0
|
|
44
|
+
}), I = v([""]), L = v({
|
|
45
|
+
row: 0,
|
|
46
|
+
col: 0
|
|
47
|
+
}), R = v(16), z = v(!1), de = [
|
|
48
|
+
"arrow",
|
|
49
|
+
"text",
|
|
50
|
+
"line",
|
|
51
|
+
"draw"
|
|
52
|
+
], B = v(0), V = s(() => de[B.value]), fe = {
|
|
53
|
+
arrow: "plotArrow",
|
|
54
|
+
text: "text",
|
|
55
|
+
line: "plotLine",
|
|
56
|
+
draw: "annotator"
|
|
57
|
+
}, pe = v("url('data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAoAAAAKCAYAAACNMs+9AAABg2lDQ1BJQ0MgcHJvZmlsZQAAKJF9kT1Iw0AcxV9TpSIVh2YQcchQnSyIijhKFYtgobQVWnUwufQLmjQkKS6OgmvBwY/FqoOLs64OroIg+AHi6OSk6CIl/i8ptIjx4Lgf7+497t4BQrPKNKtnAtB020wn4lIuvyqFXhGGiAhCiMnMMpKZxSx8x9c9Any9i/Es/3N/jgG1YDEgIBHPMcO0iTeIZzZtg/M+scjKskp8Tjxu0gWJH7muePzGueSywDNFM5ueJxaJpVIXK13MyqZGPE0cVTWd8oWcxyrnLc5atc7a9+QvDBf0lQzXaY4ggSUkkYIEBXVUUIWNGK06KRbStB/38Q+7/hS5FHJVwMixgBo0yK4f/A9+d2sVpya9pHAc6H1xnI9RILQLtBqO833sOK0TIPgMXOkdf60JzH6S3uho0SNgcBu4uO5oyh5wuQMMPRmyKbtSkKZQLALvZ/RNeSByC/Sveb2193H6AGSpq+Ub4OAQGCtR9rrPu/u6e/v3TLu/H5C7crM1WjgWAAAABmJLR0QAqwB5AHWF+8OUAAAACXBIWXMAAC4jAAAuIwF4pT92AAAAB3RJTUUH5gwUExIUagzGcQAAABl0RVh0Q29tbWVudABDcmVhdGVkIHdpdGggR0lNUFeBDhcAAABfSURBVBjTldAxDoNQDIPhL0+q1L33P1AvAhN7xfK6WAgoLfSfrNiykpQtE+7RLzx2vgF9D3o8lWDmn1QVVMP0LZQGmNtqp1/cmou0XHdG/+sYeGZwFBqPCub8rkcvvAGvsi1VYarR8wAAAABJRU5ErkJggg==') 5 5, auto");
|
|
58
|
+
function me() {
|
|
59
|
+
B.value + 1 >= de.length ? B.value = 0 : B.value += 1;
|
|
60
|
+
}
|
|
61
|
+
function H(e) {
|
|
62
|
+
if (!O.value || V.value !== "text" || N.value) return;
|
|
63
|
+
let { x: t, y: n } = K(e);
|
|
64
|
+
F.value = {
|
|
65
|
+
x: t,
|
|
66
|
+
y: n
|
|
67
|
+
}, I.value = [""], L.value = {
|
|
68
|
+
row: 0,
|
|
69
|
+
col: 0
|
|
70
|
+
}, z.value = !1;
|
|
71
|
+
let r = document.createElementNS("http://www.w3.org/2000/svg", "text");
|
|
72
|
+
r.setAttribute("x", t), r.setAttribute("y", n), r.setAttribute("fill", w.value), r.setAttribute("font-size", R.value * x.scale), r.setAttribute("font-family", "sans-serif"), r.setAttribute("class", "vue-data-ui-doodle"), r.setAttribute("dominant-baseline", "hanging"), r.setAttribute("pointer-events", "all");
|
|
73
|
+
let i = document.createElementNS("http://www.w3.org/2000/svg", "tspan");
|
|
74
|
+
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), P.value = r, N.value = !0, window.addEventListener("keydown", he), window.addEventListener("mousedown", ye, !0), ge(), ve();
|
|
75
|
+
}
|
|
76
|
+
function he(e) {
|
|
77
|
+
if (!N.value) return;
|
|
78
|
+
let { row: t, col: n } = L.value, r = I.value.slice(), i = !1;
|
|
79
|
+
if (e.key === "Enter") {
|
|
80
|
+
let a = r[t], o = a.slice(0, n), s = a.slice(n);
|
|
81
|
+
r.splice(t, 1, o, s), t += 1, n = 0, i = !0, e.preventDefault();
|
|
82
|
+
} else if (e.key === "Backspace") {
|
|
83
|
+
if (n > 0) r[t] = r[t].slice(0, n - 1) + r[t].slice(n), --n, i = !0;
|
|
84
|
+
else if (t > 0) {
|
|
85
|
+
let e = r[t - 1].length;
|
|
86
|
+
r[t - 1] += r[t], r.splice(t, 1), --t, n = e, i = !0;
|
|
87
|
+
}
|
|
88
|
+
e.preventDefault();
|
|
89
|
+
} 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();
|
|
90
|
+
else if (e.key === "ArrowLeft") n > 0 ? --n : t > 0 && (--t, n = r[t].length), i = !0, e.preventDefault();
|
|
91
|
+
else if (e.key === "ArrowRight") n < r[t].length ? n += 1 : t < r.length - 1 && (t += 1, n = 0), i = !0, e.preventDefault();
|
|
92
|
+
else if (e.key === "ArrowUp") t > 0 && (--t, n = Math.min(n, r[t].length), i = !0), e.preventDefault();
|
|
93
|
+
else if (e.key === "ArrowDown") t < r.length - 1 && (t += 1, n = Math.min(n, r[t].length), i = !0), e.preventDefault();
|
|
94
|
+
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();
|
|
95
|
+
else if (e.key === "Escape") {
|
|
96
|
+
be(!0);
|
|
97
|
+
return;
|
|
98
|
+
} else e.key === "Tab" && e.preventDefault();
|
|
99
|
+
i && (I.value = r, L.value = {
|
|
100
|
+
row: t,
|
|
101
|
+
col: n
|
|
102
|
+
}, r.some((e) => e.length > 0) && !z.value && P.value && (S.value.push(P.value), C.value = [], z.value = !0), ge(), ve());
|
|
103
|
+
}
|
|
104
|
+
function ge() {
|
|
105
|
+
let e = P.value, { x: t } = F.value;
|
|
106
|
+
for (; e.firstChild;) e.removeChild(e.firstChild);
|
|
107
|
+
I.value.forEach((n, r) => {
|
|
108
|
+
let i = document.createElementNS("http://www.w3.org/2000/svg", "tspan");
|
|
109
|
+
i.setAttribute("x", t), i.setAttribute("dy", r === 0 ? "0" : `${R.value * 1.2 * x.scale}`), i.textContent = n.length ? n : "", e.appendChild(i);
|
|
110
|
+
});
|
|
111
|
+
}
|
|
112
|
+
let U = v(null);
|
|
113
|
+
function W() {
|
|
114
|
+
U.value !== null && (clearInterval(U.value), U.value = null);
|
|
115
|
+
}
|
|
116
|
+
function _e(e) {
|
|
117
|
+
W();
|
|
118
|
+
let t = !0;
|
|
119
|
+
e.style.opacity = "1", U.value = setInterval(() => {
|
|
120
|
+
if (!O.value || !e || !O.value.contains(e)) {
|
|
121
|
+
W();
|
|
122
|
+
return;
|
|
123
|
+
}
|
|
124
|
+
t = !t, e.style.opacity = t ? "1" : "0";
|
|
125
|
+
}, 500);
|
|
126
|
+
}
|
|
127
|
+
function ve() {
|
|
128
|
+
let e = O.value?.querySelector(".vue-data-ui-svg-caret");
|
|
129
|
+
e && O.value && O.value.removeChild(e);
|
|
130
|
+
let t = P.value;
|
|
131
|
+
if (!t || !O.value) return;
|
|
132
|
+
let { x: n, y: r } = F.value, { row: i, col: a } = L.value, o = R.value * x.scale, s = t.childNodes[i];
|
|
133
|
+
if (!s) return;
|
|
134
|
+
let c = s.textContent.slice(0, a);
|
|
135
|
+
c.endsWith(" ") && (c += "\xA0");
|
|
136
|
+
let l = document.createElementNS("http://www.w3.org/2000/svg", "text");
|
|
137
|
+
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);
|
|
138
|
+
let u = l.getBBox();
|
|
139
|
+
O.value.removeChild(l);
|
|
140
|
+
let d = r + i * o * 1.2, f = n + u.width, p = document.createElementNS("http://www.w3.org/2000/svg", "rect");
|
|
141
|
+
p.setAttribute("x", f), p.setAttribute("y", d), p.setAttribute("rx", 1), p.setAttribute("width", 2), p.setAttribute("height", o), p.setAttribute("fill", w.value), p.setAttribute("class", "vue-data-ui-svg-caret"), O.value.appendChild(p), _e(p);
|
|
142
|
+
}
|
|
143
|
+
function ye(e) {
|
|
144
|
+
if (P.value && !P.value.contains(e.target)) {
|
|
145
|
+
let e = P.value.children;
|
|
146
|
+
e.length === 1 && (e[0].textContent === "" || e[0].textContent === "") && P.value.remove(), be(!1);
|
|
147
|
+
}
|
|
148
|
+
}
|
|
149
|
+
function be(e = !1) {
|
|
150
|
+
window.removeEventListener("keydown", he), window.removeEventListener("mousedown", ye, !0), W();
|
|
151
|
+
let t = O.value?.querySelector(".vue-data-ui-svg-caret");
|
|
152
|
+
t && O.value && O.value.removeChild(t);
|
|
153
|
+
let n = P.value?.children, r = !1;
|
|
154
|
+
if (n && n.length === 1) {
|
|
155
|
+
let e = n[0].textContent;
|
|
156
|
+
r = !e || e === "";
|
|
157
|
+
}
|
|
158
|
+
(e || r) && P.value && O.value && O.value.contains(P.value) && O.value.removeChild(P.value), N.value = !1, P.value = null, I.value = [""], L.value = {
|
|
159
|
+
row: 0,
|
|
160
|
+
col: 0
|
|
161
|
+
}, z.value = !1;
|
|
162
|
+
}
|
|
163
|
+
let G = s(() => i(x.color, .6));
|
|
164
|
+
function xe() {
|
|
165
|
+
if (!O.value) return;
|
|
166
|
+
let e = O.value.querySelector(".vue-data-ui-mask");
|
|
167
|
+
if (e && O.value.removeChild(e), x.active) {
|
|
168
|
+
let e = document.createElementNS("http://www.w3.org/2000/svg", "rect");
|
|
169
|
+
e.setAttribute("class", "vue-data-ui-mask"), e.setAttribute("width", "100%"), e.setAttribute("height", "100%"), e.setAttribute("fill", "transparent"), e.setAttribute("pointer-events", "all"), O.value.insertBefore(e, O.value.firstChild);
|
|
170
|
+
}
|
|
171
|
+
}
|
|
172
|
+
function K(e) {
|
|
173
|
+
let t = x.svgRef;
|
|
174
|
+
if (!t) return {
|
|
175
|
+
x: 0,
|
|
176
|
+
y: 0
|
|
177
|
+
};
|
|
178
|
+
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;
|
|
179
|
+
n.x = i, n.y = a;
|
|
180
|
+
let o = t.getScreenCTM()?.inverse();
|
|
181
|
+
return o ? n.matrixTransform(o) : {
|
|
182
|
+
x: 0,
|
|
183
|
+
y: 0
|
|
184
|
+
};
|
|
185
|
+
}
|
|
186
|
+
function Se(e) {
|
|
187
|
+
let t = e.trim().split(/\s+/);
|
|
188
|
+
if (t.length < 4) return e;
|
|
189
|
+
let n = t.slice(1).map(Number);
|
|
190
|
+
if (n.length % 2 != 0) return e;
|
|
191
|
+
let r = Ce(n), i = [`M ${r[0]} ${r[1]}`];
|
|
192
|
+
for (let e = 2; e < r.length - 2; e += 2) {
|
|
193
|
+
let t = r[e - 2], n = r[e - 1], a = r[e], o = r[e + 1], s = (t + a) / 2, c = (n + o) / 2;
|
|
194
|
+
i.push(`Q ${t} ${n} ${s} ${c}`);
|
|
195
|
+
}
|
|
196
|
+
let a = r[r.length - 2], o = r[r.length - 1];
|
|
197
|
+
return i.push(`L ${a} ${o}`), i.join(" ");
|
|
198
|
+
}
|
|
199
|
+
function Ce(e, t = 1) {
|
|
200
|
+
let n = [...e];
|
|
201
|
+
for (let r = 2; r < e.length - 2; r += 2) {
|
|
202
|
+
let i = e[r], a = e[r + 1], o = e[r - 2], s = e[r - 1], c = e[r + 2], l = e[r + 3];
|
|
203
|
+
n[r] = i + t * ((o + c) / 2 - i), n[r + 1] = a + t * ((s + l) / 2 - a);
|
|
204
|
+
}
|
|
205
|
+
return n;
|
|
206
|
+
}
|
|
207
|
+
function we(e) {
|
|
208
|
+
let t = e.trim().split(/\s+/), n = "", r = "", i = null, a = null;
|
|
209
|
+
for (let e = 0; e < t.length; e += 1) {
|
|
210
|
+
let o = t[e];
|
|
211
|
+
if (isNaN(o)) {
|
|
212
|
+
if (r = o, r === "M" || r === "L") i = parseFloat(t[++e]), a = parseFloat(t[++e]), n += `${r}${i} ${a}`;
|
|
213
|
+
else if (r === "Q") {
|
|
214
|
+
let r = parseFloat(t[++e]), o = parseFloat(t[++e]), s = parseFloat(t[++e]), c = parseFloat(t[++e]);
|
|
215
|
+
r === i && o === a ? n += `t${s - i} ${c - a}` : n += `q${r - i} ${o - a} ${s - i} ${c - a}`, i = s, a = c;
|
|
216
|
+
}
|
|
217
|
+
} else {
|
|
218
|
+
let s = parseFloat(o), c = parseFloat(t[++e]);
|
|
219
|
+
if (r === "L") {
|
|
220
|
+
let e = s - i, t = c - a;
|
|
221
|
+
e === 0 ? n += `v${t}` : t === 0 ? n += `h${e}` : n += `l${e} ${t}`, i = s, a = c;
|
|
222
|
+
} else if (r === "Q") {
|
|
223
|
+
let r = s, o = c, l = parseFloat(t[++e]), u = parseFloat(t[++e]);
|
|
224
|
+
r === i && o === a ? n += `t${l - i} ${u - a}` : n += `q${r - i} ${o - a} ${l - i} ${u - a}`, i = l, a = u;
|
|
225
|
+
}
|
|
226
|
+
}
|
|
227
|
+
}
|
|
228
|
+
return n;
|
|
229
|
+
}
|
|
230
|
+
function q(e) {
|
|
231
|
+
if (e.cancelable && e.preventDefault(), V.value !== "draw" || !x.active || !O.value) return;
|
|
232
|
+
E.value = !0;
|
|
233
|
+
let { x: t, y: n } = K(e);
|
|
234
|
+
j.value = {
|
|
235
|
+
x: t,
|
|
236
|
+
y: n
|
|
237
|
+
}, D.value = `M ${t} ${n}`, k.value = document.createElementNS(r, "path"), k.value.setAttribute("stroke", w.value), k.value.setAttribute("stroke-width", T.value * x.scale), k.value.setAttribute("fill", "none"), k.value.setAttribute("stroke-linecap", "round"), k.value.setAttribute("stroke-linejoin", "round"), k.value.setAttribute("class", "vue-data-ui-doodle"), O.value.appendChild(k.value);
|
|
238
|
+
}
|
|
239
|
+
function J(e) {
|
|
240
|
+
if (e.cancelable && e.preventDefault(), !E.value || !O.value || !k.value) return;
|
|
241
|
+
let { x: t, y: n } = K(e);
|
|
242
|
+
D.value += ` ${t} ${n}`, k.value.setAttribute("d", D.value);
|
|
243
|
+
}
|
|
244
|
+
function Te() {
|
|
245
|
+
let e = x.svgRef;
|
|
246
|
+
if (!e) return;
|
|
247
|
+
let t = e.querySelector(`defs#${ue.value}`);
|
|
248
|
+
if (t || (t = document.createElementNS(r, "defs"), t.setAttribute("id", ue.value), e.appendChild(t)), t.querySelector(`#${M.value}`)) return;
|
|
249
|
+
let n = document.createElementNS(r, "marker");
|
|
250
|
+
n.setAttribute("id", M.value), n.setAttribute("markerUnits", "strokeWidth"), n.setAttribute("markerWidth", "6"), n.setAttribute("markerHeight", "6"), n.setAttribute("refX", "4"), n.setAttribute("refY", "3"), n.setAttribute("orient", "auto"), n.setAttribute("viewBox", "0 0 6 6");
|
|
251
|
+
let i = document.createElementNS(r, "path");
|
|
252
|
+
i.setAttribute("d", `M 0 0 L 6 ${6 / 2} L 0 6 z`), i.setAttribute("fill", "context-stroke"), i.setAttribute("stroke", "none"), n.appendChild(i), t.appendChild(n);
|
|
253
|
+
}
|
|
254
|
+
function Y(e) {
|
|
255
|
+
if (e.cancelable && e.preventDefault(), !["line", "arrow"].includes(V.value) || !x.active || !O.value) return;
|
|
256
|
+
V.value === "arrow" && Te(), E.value = !0;
|
|
257
|
+
let { x: t, y: n } = K(e);
|
|
258
|
+
j.value = {
|
|
259
|
+
x: t,
|
|
260
|
+
y: n
|
|
261
|
+
}, A.value = document.createElementNS(r, "line"), A.value.setAttribute("stroke", w.value), A.value.setAttribute("stroke-width", T.value * x.scale), A.value.setAttribute("stroke-linecap", "round"), A.value.setAttribute("class", "vue-data-ui-doodle"), A.value.setAttribute("x1", t), A.value.setAttribute("y1", n), A.value.setAttribute("x2", t), A.value.setAttribute("y2", n), V.value === "arrow" && A.value.setAttribute("marker-end", `url(#${M.value})`), O.value.appendChild(A.value);
|
|
262
|
+
}
|
|
263
|
+
function X(e) {
|
|
264
|
+
if (e.cancelable && e.preventDefault(), !["line", "arrow"].includes(V.value) || !E.value || !O.value || !A.value) return;
|
|
265
|
+
let { x: t, y: n } = K(e);
|
|
266
|
+
A.value.setAttribute("x2", t), A.value.setAttribute("y2", n);
|
|
267
|
+
}
|
|
268
|
+
function Z(e) {
|
|
269
|
+
if (E.value && O.value && A.value) {
|
|
270
|
+
let { x: t, y: n } = K(e);
|
|
271
|
+
A.value.setAttribute("x2", t), A.value.setAttribute("y2", n), S.value.push(A.value), C.value = [], A.value = "";
|
|
272
|
+
}
|
|
273
|
+
E.value = !1;
|
|
274
|
+
}
|
|
275
|
+
function Q(e) {
|
|
276
|
+
if (E.value && O.value && k.value) {
|
|
277
|
+
let { x: t, y: n } = K(e);
|
|
278
|
+
if (j.value && j.value.x === t && j.value.y === n) {
|
|
279
|
+
let e = document.createElementNS("http://www.w3.org/2000/svg", "circle");
|
|
280
|
+
e.setAttribute("cx", t), e.setAttribute("cy", n), e.setAttribute("r", T.value * x.scale / 2), e.setAttribute("fill", w.value), e.setAttribute("class", "vue-data-ui-doodle"), O.value.appendChild(e), S.value.push(e);
|
|
281
|
+
} else {
|
|
282
|
+
let e = k.value;
|
|
283
|
+
e.setAttribute("d", we(Se(D.value))), S.value.push(e);
|
|
284
|
+
}
|
|
285
|
+
C.value = [], k.value = "";
|
|
286
|
+
}
|
|
287
|
+
E.value = !1;
|
|
288
|
+
}
|
|
289
|
+
function Ee() {
|
|
290
|
+
if (S.value.length > 0) {
|
|
291
|
+
let e = S.value.pop();
|
|
292
|
+
C.value.push(e), e === P.value ? be(!0) : O.value && O.value.contains(e) && O.value.removeChild(e);
|
|
293
|
+
}
|
|
294
|
+
}
|
|
295
|
+
function De() {
|
|
296
|
+
if (C.value.length > 0) {
|
|
297
|
+
let e = C.value.pop();
|
|
298
|
+
S.value.push(e), O.value && O.value.appendChild(e);
|
|
299
|
+
}
|
|
300
|
+
}
|
|
301
|
+
function Oe() {
|
|
302
|
+
O.value && (O.value.innerHTML = ""), S.value = [], C.value = [], z.value = !1, xe();
|
|
303
|
+
}
|
|
304
|
+
b(V, (e) => {
|
|
305
|
+
x.active && ($(), ke(), Ae());
|
|
306
|
+
});
|
|
307
|
+
function ke() {
|
|
308
|
+
!x.svgRef || !x.active || (V.value === "draw" ? (x.svgRef.addEventListener("mousedown", q), x.svgRef.addEventListener("mousemove", J), x.svgRef.addEventListener("mouseup", Q), x.svgRef.addEventListener("mouseleave", Q), x.svgRef.addEventListener("touchstart", q, { passive: !1 }), x.svgRef.addEventListener("touchmove", J, { passive: !1 }), x.svgRef.addEventListener("touchend", Q), x.svgRef.addEventListener("touchcancel", Q)) : ["line", "arrow"].includes(V.value) ? (x.svgRef.addEventListener("mousedown", Y), x.svgRef.addEventListener("mousemove", X), x.svgRef.addEventListener("mouseup", Z), x.svgRef.addEventListener("touchstart", Y, { passive: !1 }), x.svgRef.addEventListener("touchmove", X, { passive: !1 }), x.svgRef.addEventListener("touchend", Z), x.svgRef.addEventListener("touchcancel", Z)) : V.value === "text" && (x.svgRef.addEventListener("mousedown", H), x.svgRef.addEventListener("touchstart", H, { passive: !1 })), O.value && (O.value.style.pointerEvents = "auto"));
|
|
309
|
+
}
|
|
310
|
+
function $() {
|
|
311
|
+
x.svgRef && (x.svgRef.removeEventListener("mousedown", q), x.svgRef.removeEventListener("mousemove", J), x.svgRef.removeEventListener("mouseup", Q), x.svgRef.removeEventListener("mouseleave", Q), x.svgRef.removeEventListener("touchstart", q), x.svgRef.removeEventListener("touchmove", J), x.svgRef.removeEventListener("touchend", Q), x.svgRef.removeEventListener("touchcancel", Q), x.svgRef.removeEventListener("mousedown", Y), x.svgRef.removeEventListener("mousemove", X), x.svgRef.removeEventListener("mouseup", Z), x.svgRef.removeEventListener("touchstart", Y), x.svgRef.removeEventListener("touchmove", X), x.svgRef.removeEventListener("touchend", Z), x.svgRef.removeEventListener("touchcancel", Z), x.svgRef.removeEventListener("mousedown", H), x.svgRef.removeEventListener("touchstart", H), O.value && (O.value.style.pointerEvents = "none"));
|
|
312
|
+
}
|
|
313
|
+
b(() => x.active, (e) => {
|
|
314
|
+
e ? ke() : $();
|
|
315
|
+
}), b(() => x.active, () => {
|
|
316
|
+
p(() => {
|
|
317
|
+
xe();
|
|
318
|
+
});
|
|
319
|
+
}), b(() => x.active, (e) => {
|
|
320
|
+
x.svgRef && (e ? x.svgRef.style.touchAction = "none" : x.svgRef.style.touchAction = "");
|
|
321
|
+
}, { immediate: !0 });
|
|
322
|
+
function Ae() {
|
|
323
|
+
O.value && (V.value === "text" ? O.value.style.cursor = "text" : ["line", "arrow"].includes(V.value) ? O.value.style.cursor = "crosshair" : O.value.style.cursor = pe.value);
|
|
324
|
+
}
|
|
325
|
+
let je = v(null);
|
|
326
|
+
return te(() => {
|
|
327
|
+
p(() => {
|
|
328
|
+
x.svgRef && (O.value = document.createElementNS("http://www.w3.org/2000/svg", "g"), O.value.setAttribute("class", "vue-data-ui-doodles"), x.svgRef.appendChild(O.value), Ae(), $());
|
|
329
|
+
});
|
|
330
|
+
}), b(() => x.active, async (e) => {
|
|
331
|
+
e && (await p(), je.value?.focus());
|
|
332
|
+
}, { flush: "post" }), ee(() => {
|
|
333
|
+
W(), O.value && x.svgRef && (O.value.remove(), $());
|
|
334
|
+
}), (n, r) => e.active ? (_(), l("div", {
|
|
335
|
+
key: 0,
|
|
336
|
+
"data-dom-to-png-ignore": "",
|
|
337
|
+
class: "vue-ui-pen-and-paper-actions",
|
|
338
|
+
style: g({ backgroundColor: e.backgroundColor })
|
|
339
|
+
}, [
|
|
340
|
+
u("button", {
|
|
341
|
+
ref_key: "buttonToggle",
|
|
342
|
+
ref: je,
|
|
343
|
+
class: "vue-ui-pen-and-paper-action",
|
|
344
|
+
onClick: r[0] ||= (e) => le("close"),
|
|
345
|
+
style: g({
|
|
346
|
+
backgroundColor: e.backgroundColor,
|
|
347
|
+
border: `1px solid ${G.value}`,
|
|
348
|
+
cursor: e.isCursorPointer ? "pointer" : "default"
|
|
349
|
+
})
|
|
350
|
+
}, [y(n.$slots, "annotator-action-close", {}, () => [d(a, {
|
|
351
|
+
name: "close",
|
|
352
|
+
stroke: e.color
|
|
353
|
+
}, null, 8, ["stroke"])])], 4),
|
|
354
|
+
u("button", {
|
|
355
|
+
class: "vue-ui-pen-and-paper-action",
|
|
356
|
+
tabindex: "-1",
|
|
357
|
+
style: g(`padding: 0 !important; cursor: ${e.isCursorPointer ? "pointer" : "default"}`)
|
|
358
|
+
}, [d(o, {
|
|
359
|
+
value: w.value,
|
|
360
|
+
"onUpdate:value": r[1] ||= (e) => w.value = e,
|
|
361
|
+
backgroundColor: e.backgroundColor,
|
|
362
|
+
buttonBorderColor: G.value,
|
|
363
|
+
isCursorPointer: e.isCursorPointer
|
|
364
|
+
}, {
|
|
365
|
+
"annotator-action-color": ae(({ color: e }) => [y(n.$slots, "annotator-action-color", h(f({ color: e })))]),
|
|
366
|
+
_: 3
|
|
367
|
+
}, 8, [
|
|
368
|
+
"value",
|
|
369
|
+
"backgroundColor",
|
|
370
|
+
"buttonBorderColor",
|
|
371
|
+
"isCursorPointer"
|
|
372
|
+
])], 4),
|
|
373
|
+
u("button", {
|
|
374
|
+
class: m(["vue-ui-pen-and-paper-action", { "vue-ui-pen-and-paper-action-active": V.value === "text" }]),
|
|
375
|
+
onClick: r[2] ||= (e) => me(),
|
|
376
|
+
style: g({
|
|
377
|
+
backgroundColor: e.backgroundColor,
|
|
378
|
+
border: `1px solid ${G.value}`,
|
|
379
|
+
cursor: e.isCursorPointer ? "pointer" : "default"
|
|
380
|
+
})
|
|
381
|
+
}, [y(n.$slots, "annotator-action-draw", h(f({ mode: V.value })), () => [d(a, {
|
|
382
|
+
name: fe[V.value],
|
|
383
|
+
stroke: e.color
|
|
384
|
+
}, null, 8, ["name", "stroke"])]), u("div", { style: g({
|
|
385
|
+
position: "absolute",
|
|
386
|
+
bottom: "-20px",
|
|
387
|
+
color: G.value,
|
|
388
|
+
width: "100%",
|
|
389
|
+
textAlign: "center",
|
|
390
|
+
fontSize: "12px",
|
|
391
|
+
fontVariantNumeric: "tabular-nums"
|
|
392
|
+
}) }, ne(re(t)({
|
|
393
|
+
v: V.value === "text" ? Math.round(R.value) : Math.round(T.value),
|
|
394
|
+
s: "px",
|
|
395
|
+
r: 1
|
|
396
|
+
})), 5)], 6),
|
|
397
|
+
u("button", {
|
|
398
|
+
class: m(["vue-ui-pen-and-paper-action", { "vue-ui-pen-and-paper-action-disabled": !S.value.length }]),
|
|
399
|
+
disabled: !S.value.length,
|
|
400
|
+
onClick: Ee,
|
|
401
|
+
style: g({
|
|
402
|
+
backgroundColor: e.backgroundColor,
|
|
403
|
+
border: `1px solid ${G.value}`,
|
|
404
|
+
marginTop: "20px",
|
|
405
|
+
cursor: e.isCursorPointer ? "pointer" : "default"
|
|
406
|
+
})
|
|
407
|
+
}, [y(n.$slots, "annotator-action-undo", h(f({ disabled: !S.value.length })), () => [d(a, {
|
|
408
|
+
name: "refresh",
|
|
409
|
+
stroke: e.color
|
|
410
|
+
}, null, 8, ["stroke"])])], 14, ce),
|
|
411
|
+
u("button", {
|
|
412
|
+
class: m(["vue-ui-pen-and-paper-action", { "vue-ui-pen-and-paper-action-disabled": !C.value.length }]),
|
|
413
|
+
onClick: De,
|
|
414
|
+
style: g({
|
|
415
|
+
backgroundColor: e.backgroundColor,
|
|
416
|
+
border: `1px solid ${G.value}`,
|
|
417
|
+
cursor: e.isCursorPointer ? "pointer" : "default"
|
|
418
|
+
})
|
|
419
|
+
}, [y(n.$slots, "annotator-action-redo", h(f({ disabled: !C.value.length })), () => [d(a, {
|
|
420
|
+
name: "refresh",
|
|
421
|
+
stroke: e.color,
|
|
422
|
+
style: { transform: "scaleX(-1)" }
|
|
423
|
+
}, null, 8, ["stroke"])])], 6),
|
|
424
|
+
u("button", {
|
|
425
|
+
class: m(["vue-ui-pen-and-paper-action", { "vue-ui-pen-and-paper-action-disabled": !S.value.length }]),
|
|
426
|
+
onClick: Oe,
|
|
427
|
+
style: g({
|
|
428
|
+
backgroundColor: e.backgroundColor,
|
|
429
|
+
border: `1px solid ${G.value}`,
|
|
430
|
+
cursor: e.isCursorPointer ? "pointer" : "default"
|
|
431
|
+
})
|
|
432
|
+
}, [y(n.$slots, "annotator-action-delete", h(f({ disabled: !S.value.length })), () => [d(a, {
|
|
433
|
+
name: "trash",
|
|
434
|
+
stroke: e.color
|
|
435
|
+
}, null, 8, ["stroke"])])], 6),
|
|
436
|
+
V.value === "text" ? oe((_(), l("input", {
|
|
437
|
+
key: 0,
|
|
438
|
+
ref: "range",
|
|
439
|
+
type: "range",
|
|
440
|
+
class: "vertical-range",
|
|
441
|
+
min: 3,
|
|
442
|
+
max: 48,
|
|
443
|
+
step: 1,
|
|
444
|
+
"onUpdate:modelValue": r[3] ||= (e) => R.value = e,
|
|
445
|
+
style: g({ accentColor: e.color })
|
|
446
|
+
}, null, 4)), [[ie, R.value]]) : oe((_(), l("input", {
|
|
447
|
+
key: 1,
|
|
448
|
+
ref: "range",
|
|
449
|
+
type: "range",
|
|
450
|
+
class: "vertical-range",
|
|
451
|
+
min: .5,
|
|
452
|
+
max: 12,
|
|
453
|
+
step: .1,
|
|
454
|
+
"onUpdate:modelValue": r[4] ||= (e) => T.value = e,
|
|
455
|
+
style: g({ accentColor: e.color })
|
|
456
|
+
}, null, 4)), [[ie, T.value]])
|
|
457
|
+
], 4)) : c("", !0);
|
|
458
|
+
}
|
|
459
|
+
};
|
|
460
|
+
//#endregion
|
|
461
|
+
export { x as n, se as t };
|
|
@@ -0,0 +1,117 @@
|
|
|
1
|
+
import { Fragment as e, createBlock as t, createCommentVNode as n, createElementBlock as r, createElementVNode as i, mergeProps as a, openBlock as o, ref as s, renderList as c, renderSlot as l, resolveComponent as u, watch as d, withCtx as f, withModifiers as p } from "vue";
|
|
2
|
+
//#region src/atoms/RecursiveCircles.vue
|
|
3
|
+
var m = [
|
|
4
|
+
"cx",
|
|
5
|
+
"cy",
|
|
6
|
+
"r",
|
|
7
|
+
"fill",
|
|
8
|
+
"stroke",
|
|
9
|
+
"stroke-width",
|
|
10
|
+
"onClick",
|
|
11
|
+
"onMouseover"
|
|
12
|
+
], h = [
|
|
13
|
+
"x",
|
|
14
|
+
"y",
|
|
15
|
+
"height",
|
|
16
|
+
"width",
|
|
17
|
+
"onClick",
|
|
18
|
+
"onMouseover"
|
|
19
|
+
], g = {
|
|
20
|
+
__name: "RecursiveCircles",
|
|
21
|
+
props: {
|
|
22
|
+
color: {
|
|
23
|
+
type: String,
|
|
24
|
+
default: "#000000"
|
|
25
|
+
},
|
|
26
|
+
dataset: {
|
|
27
|
+
type: Array,
|
|
28
|
+
default: () => []
|
|
29
|
+
},
|
|
30
|
+
hoveredUid: {
|
|
31
|
+
type: String,
|
|
32
|
+
default: null
|
|
33
|
+
},
|
|
34
|
+
linkColor: {
|
|
35
|
+
type: String,
|
|
36
|
+
default: "#CCCCCC"
|
|
37
|
+
},
|
|
38
|
+
stroke: {
|
|
39
|
+
type: String,
|
|
40
|
+
default: "#FFFFFF"
|
|
41
|
+
},
|
|
42
|
+
strokeHovered: {
|
|
43
|
+
type: String,
|
|
44
|
+
default: "#000000"
|
|
45
|
+
}
|
|
46
|
+
},
|
|
47
|
+
emits: ["click", "hover"],
|
|
48
|
+
setup(g, { emit: _ }) {
|
|
49
|
+
let v = g, y = _;
|
|
50
|
+
function b(e) {
|
|
51
|
+
y("click", e);
|
|
52
|
+
}
|
|
53
|
+
function x(e) {
|
|
54
|
+
y("hover", e);
|
|
55
|
+
}
|
|
56
|
+
let S = s([]);
|
|
57
|
+
return d(() => v.dataset, (e) => {
|
|
58
|
+
S.value = e || [];
|
|
59
|
+
}, { immediate: !0 }), (s, d) => {
|
|
60
|
+
let _ = u("RecursiveCircles", !0);
|
|
61
|
+
return o(!0), r(e, null, c(g.dataset, (u, v) => (o(), r(e, null, [u.polygonPath && u.polygonPath.coordinates ? (o(), r(e, { key: 0 }, [(o(!0), r(e, null, c(u.polygonPath.coordinates, (t, c) => (o(), r(e, { key: `node_${v}_${c}` }, [l(s.$slots, "node-svg", { nodeSvg: {
|
|
62
|
+
x: t.x,
|
|
63
|
+
y: t.y,
|
|
64
|
+
radius: u.circleRadius,
|
|
65
|
+
color: u.color,
|
|
66
|
+
stroke: g.stroke,
|
|
67
|
+
strokeWidth: u.circleRadius / 12,
|
|
68
|
+
isSelected: g.hoveredUid && g.hoveredUid === u.uid,
|
|
69
|
+
onClick: () => b(u),
|
|
70
|
+
onEnter: () => x(u),
|
|
71
|
+
onLeave: () => x(null)
|
|
72
|
+
} }, () => [i("circle", {
|
|
73
|
+
cx: t.x,
|
|
74
|
+
cy: t.y,
|
|
75
|
+
r: u.circleRadius,
|
|
76
|
+
fill: `url(#gradient_${u.color})`,
|
|
77
|
+
stroke: g.hoveredUid && g.hoveredUid === u.uid ? g.strokeHovered : g.stroke,
|
|
78
|
+
"stroke-width": g.hoveredUid && g.hoveredUid === u.uid ? u.circleRadius / 6 : u.circleRadius / 12,
|
|
79
|
+
style: { cursor: "pointer" },
|
|
80
|
+
onClick: (e) => b(u),
|
|
81
|
+
onMouseover: (e) => x(u),
|
|
82
|
+
onMouseleave: d[0] ||= (e) => x(null)
|
|
83
|
+
}, null, 40, m)]), s.$slots.node ? (o(), r("foreignObject", {
|
|
84
|
+
key: 0,
|
|
85
|
+
x: t.x - u.circleRadius,
|
|
86
|
+
y: t.y - u.circleRadius,
|
|
87
|
+
height: u.circleRadius * 2,
|
|
88
|
+
width: u.circleRadius * 2,
|
|
89
|
+
style: { overflow: "visible" },
|
|
90
|
+
onClick: p((e) => b(u), ["stop"]),
|
|
91
|
+
onMouseover: (e) => x(u),
|
|
92
|
+
onMouseleave: d[1] ||= (e) => x(null)
|
|
93
|
+
}, [l(s.$slots, "node", a({ ref_for: !0 }, { node: u }))], 40, h)) : n("", !0)], 64))), 128)), u.nodes && u.nodes.length > 0 ? (o(), t(_, {
|
|
94
|
+
key: 0,
|
|
95
|
+
dataset: u.nodes,
|
|
96
|
+
color: g.color,
|
|
97
|
+
stroke: g.stroke,
|
|
98
|
+
strokeHovered: g.strokeHovered,
|
|
99
|
+
hoveredUid: g.hoveredUid,
|
|
100
|
+
onClick: b,
|
|
101
|
+
onHover: x
|
|
102
|
+
}, {
|
|
103
|
+
node: f(({ node: e }) => [l(s.$slots, "node", a({ ref_for: !0 }, { node: e }))]),
|
|
104
|
+
"node-svg": f(({ nodeSvg: e }) => [l(s.$slots, "node-svg", a({ ref_for: !0 }, { nodeSvg: e }))]),
|
|
105
|
+
_: 2
|
|
106
|
+
}, 1032, [
|
|
107
|
+
"dataset",
|
|
108
|
+
"color",
|
|
109
|
+
"stroke",
|
|
110
|
+
"strokeHovered",
|
|
111
|
+
"hoveredUid"
|
|
112
|
+
])) : n("", !0)], 64)) : n("", !0)], 64))), 256);
|
|
113
|
+
};
|
|
114
|
+
}
|
|
115
|
+
};
|
|
116
|
+
//#endregion
|
|
117
|
+
export { g as default };
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
import { Fragment as e, createBlock as t, createCommentVNode as n, createElementBlock as r, openBlock as i, ref as a, renderList as o, resolveComponent as s, toDisplayString as c, watch as l } from "vue";
|
|
2
|
+
//#region src/atoms/RecursiveLabels.vue
|
|
3
|
+
var u = [
|
|
4
|
+
"x",
|
|
5
|
+
"y",
|
|
6
|
+
"fill",
|
|
7
|
+
"font-size"
|
|
8
|
+
], d = {
|
|
9
|
+
__name: "RecursiveLabels",
|
|
10
|
+
props: {
|
|
11
|
+
color: {
|
|
12
|
+
type: String,
|
|
13
|
+
default: "#000000"
|
|
14
|
+
},
|
|
15
|
+
dataset: {
|
|
16
|
+
type: Array,
|
|
17
|
+
default: () => []
|
|
18
|
+
},
|
|
19
|
+
hoveredUid: {
|
|
20
|
+
type: String,
|
|
21
|
+
default: null
|
|
22
|
+
}
|
|
23
|
+
},
|
|
24
|
+
emits: ["zoom", "hover"],
|
|
25
|
+
setup(d, { emit: f }) {
|
|
26
|
+
let p = d, m = a([]);
|
|
27
|
+
return l(() => p.dataset, (e) => {
|
|
28
|
+
m.value = e || [];
|
|
29
|
+
}, { immediate: !0 }), (a, l) => {
|
|
30
|
+
let f = s("RecursiveLabels", !0);
|
|
31
|
+
return i(!0), r(e, null, o(m.value, (a, s) => (i(), r(e, { key: `level_${s}` }, [a.polygonPath && a.polygonPath.coordinates ? (i(), r(e, { key: 0 }, [(i(!0), r(e, null, o(a.polygonPath.coordinates, (e, t) => (i(), r("text", {
|
|
32
|
+
key: `node_${s}_${t}`,
|
|
33
|
+
x: e.x,
|
|
34
|
+
y: e.y + a.circleRadius * 2,
|
|
35
|
+
fill: d.color,
|
|
36
|
+
"font-size": a.circleRadius,
|
|
37
|
+
"text-anchor": "middle",
|
|
38
|
+
style: {
|
|
39
|
+
opacity: "0.8",
|
|
40
|
+
"pointer-events": "none"
|
|
41
|
+
}
|
|
42
|
+
}, c(a.name), 9, u))), 128)), a.nodes && a.nodes.length > 0 ? (i(), t(f, {
|
|
43
|
+
key: 0,
|
|
44
|
+
dataset: a.nodes,
|
|
45
|
+
color: d.color,
|
|
46
|
+
hoveredUid: d.hoveredUid
|
|
47
|
+
}, null, 8, [
|
|
48
|
+
"dataset",
|
|
49
|
+
"color",
|
|
50
|
+
"hoveredUid"
|
|
51
|
+
])) : n("", !0)], 64)) : n("", !0)], 64))), 128);
|
|
52
|
+
};
|
|
53
|
+
}
|
|
54
|
+
};
|
|
55
|
+
//#endregion
|
|
56
|
+
export { d as default };
|