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