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,914 @@
|
|
|
1
|
+
import { t as e } from "./rolldown-runtime-CAFD8bLK.js";
|
|
2
|
+
import { G as t, H as n, Lt as r, Rt as i, St as a, Tt as o, X as ee, i as s, ot as te, r as ne, t as re, x as ie, zt as ae } from "./lib-B83ZCydz.js";
|
|
3
|
+
import { t as oe } from "./useConfig-KnOLHtlJ.js";
|
|
4
|
+
import { t as se } from "./usePrinter-CMLF900n.js";
|
|
5
|
+
import { n as ce, t as le } from "./BaseScanner-C7dmAref.js";
|
|
6
|
+
import { t as ue } from "./useSvgExport-Dtu973wa.js";
|
|
7
|
+
import { t as c } from "./useNestedProp-CcxL1gUU.js";
|
|
8
|
+
import { t as de } from "./useThemeCheck-rFK9Zlb_.js";
|
|
9
|
+
import { t as fe } from "./img-NMY-_LiJ.js";
|
|
10
|
+
import { n as pe } from "./Title-ByyzJzpc.js";
|
|
11
|
+
import { t as me } from "./_plugin-vue_export-helper-Dq1MygBL.js";
|
|
12
|
+
import { c as he } from "./canvas-lib-DTaADQOK.js";
|
|
13
|
+
import { t as ge } from "./useResponsive-CrAInupd.js";
|
|
14
|
+
import { t as _e } from "./A11yDataTable-q2-8fSlJ.js";
|
|
15
|
+
import { t as ve } from "./useUserOptionState-CjPJPTg2.js";
|
|
16
|
+
import { t as ye } from "./useChartAccessibility-Do37qcw2.js";
|
|
17
|
+
import { t as be } from "./useAutoSizeLabelsInsideViewbox-De0rTecW.js";
|
|
18
|
+
import { t as xe } from "./vue_ui_relation_circle-Cr0I2SoU.js";
|
|
19
|
+
import { Fragment as l, computed as u, createBlock as d, createCommentVNode as f, createElementBlock as p, createElementVNode as m, createSlots as Se, createTextVNode as Ce, createVNode as we, defineAsyncComponent as Te, guardReactiveProps as h, mergeProps as Ee, nextTick as De, normalizeClass as Oe, normalizeProps as g, normalizeStyle as _, onBeforeUnmount as ke, onMounted as Ae, openBlock as v, ref as y, renderList as b, renderSlot as x, shallowRef as je, toDisplayString as S, toRefs as Me, unref as C, useCssVars as Ne, watch as Pe, withCtx as w } from "vue";
|
|
20
|
+
//#region src/components/vue-ui-relation-circle.vue
|
|
21
|
+
var Fe = /* @__PURE__ */ e({ default: () => nt }), Ie = ["id"], Le = ["id"], Re = { style: { position: "relative" } }, ze = [
|
|
22
|
+
"xmlns",
|
|
23
|
+
"viewBox",
|
|
24
|
+
"aria-describedby"
|
|
25
|
+
], Be = ["width", "height"], Ve = [
|
|
26
|
+
"cx",
|
|
27
|
+
"cy",
|
|
28
|
+
"r",
|
|
29
|
+
"stroke",
|
|
30
|
+
"stroke-width"
|
|
31
|
+
], He = { key: 1 }, Ue = [
|
|
32
|
+
"stroke",
|
|
33
|
+
"d",
|
|
34
|
+
"stroke-width"
|
|
35
|
+
], We = { style: { "pointer-events": "none" } }, Ge = [
|
|
36
|
+
"cx",
|
|
37
|
+
"cy",
|
|
38
|
+
"fill",
|
|
39
|
+
"r",
|
|
40
|
+
"stroke"
|
|
41
|
+
], Ke = [
|
|
42
|
+
"x",
|
|
43
|
+
"y",
|
|
44
|
+
"fill",
|
|
45
|
+
"font-size"
|
|
46
|
+
], qe = { key: 2 }, Je = [
|
|
47
|
+
"stroke",
|
|
48
|
+
"stroke-width",
|
|
49
|
+
"x1",
|
|
50
|
+
"x2",
|
|
51
|
+
"y1",
|
|
52
|
+
"y2"
|
|
53
|
+
], Ye = { style: { "pointer-events": "none" } }, Xe = [
|
|
54
|
+
"cx",
|
|
55
|
+
"cy",
|
|
56
|
+
"fill",
|
|
57
|
+
"r",
|
|
58
|
+
"stroke"
|
|
59
|
+
], Ze = [
|
|
60
|
+
"x",
|
|
61
|
+
"y",
|
|
62
|
+
"fill",
|
|
63
|
+
"font-size"
|
|
64
|
+
], Qe = [
|
|
65
|
+
"text-anchor",
|
|
66
|
+
"transform",
|
|
67
|
+
"x",
|
|
68
|
+
"y",
|
|
69
|
+
"font-weight",
|
|
70
|
+
"font-size",
|
|
71
|
+
"fill",
|
|
72
|
+
"text-decoration",
|
|
73
|
+
"onClick",
|
|
74
|
+
"onMouseenter",
|
|
75
|
+
"onMouseleave"
|
|
76
|
+
], $e = [
|
|
77
|
+
"cx",
|
|
78
|
+
"cy",
|
|
79
|
+
"fill",
|
|
80
|
+
"stroke",
|
|
81
|
+
"r",
|
|
82
|
+
"onClick",
|
|
83
|
+
"onMouseenter",
|
|
84
|
+
"onMouseleave"
|
|
85
|
+
], et = {
|
|
86
|
+
key: 0,
|
|
87
|
+
style: {
|
|
88
|
+
position: "absolute",
|
|
89
|
+
top: "100%",
|
|
90
|
+
left: "0",
|
|
91
|
+
width: "100%"
|
|
92
|
+
},
|
|
93
|
+
"data-dom-to-png-ignore": "",
|
|
94
|
+
"aria-hidden": "true"
|
|
95
|
+
}, tt = {
|
|
96
|
+
key: 5,
|
|
97
|
+
class: "vue-data-ui-watermark"
|
|
98
|
+
}, nt = /* @__PURE__ */ me({
|
|
99
|
+
__name: "vue-ui-relation-circle",
|
|
100
|
+
props: {
|
|
101
|
+
dataset: {
|
|
102
|
+
type: Array,
|
|
103
|
+
default() {
|
|
104
|
+
return [];
|
|
105
|
+
}
|
|
106
|
+
},
|
|
107
|
+
config: {
|
|
108
|
+
type: Object,
|
|
109
|
+
default() {
|
|
110
|
+
return {};
|
|
111
|
+
}
|
|
112
|
+
}
|
|
113
|
+
},
|
|
114
|
+
emits: ["copyAlt"],
|
|
115
|
+
setup(e, { expose: me, emit: Fe }) {
|
|
116
|
+
Ne((e) => ({
|
|
117
|
+
v70e17249: Mt.value,
|
|
118
|
+
v5703b7a8: jt.value,
|
|
119
|
+
v5d57d4ec: Nt.value
|
|
120
|
+
}));
|
|
121
|
+
let nt = Te(() => import("./PenAndPaper-DxBCVZAx.js").then((e) => e.t)), rt = Te(() => import("./UserOptions-Gaw1761w.js").then((e) => e.n)), it = Te(() => import("./PackageVersion-B1cPtZ3Q.js").then((e) => e.t)), { vue_ui_relation_circle: at } = oe(), { isThemeValid: ot, warnInvalidTheme: st } = de(), T = e, ct = Fe, lt = u(() => !!T.dataset && Object.keys(T.dataset).length), E = y(n()), ut = y(0), D = y(null), dt = y(null), ft = y(null), pt = y(null), mt = y(0), O = y(!1), k = y(!1), A = y(null), j = y(!1), M = y(St()), N = u(() => M.value.userOptions.useCursorPointer), ht = u(() => ae({
|
|
122
|
+
defaultConfig: {
|
|
123
|
+
userOptions: { show: !1 },
|
|
124
|
+
customPalette: Array(7).fill("#CACACA"),
|
|
125
|
+
style: {
|
|
126
|
+
backgroundColor: "#99999930",
|
|
127
|
+
labels: { color: "#6A6A6A" },
|
|
128
|
+
circle: { stroke: "#6A6A6A" },
|
|
129
|
+
plot: {
|
|
130
|
+
color: "#6A6A6A",
|
|
131
|
+
useSerieColor: !0
|
|
132
|
+
},
|
|
133
|
+
links: { maxWidth: 2 }
|
|
134
|
+
}
|
|
135
|
+
},
|
|
136
|
+
userConfig: M.value.skeletonConfig ?? {}
|
|
137
|
+
})), { loading: gt, FINAL_DATASET: _t, manualLoading: vt } = ce({
|
|
138
|
+
...Me(T),
|
|
139
|
+
FINAL_CONFIG: M,
|
|
140
|
+
prepareConfig: St,
|
|
141
|
+
skeletonDataset: T.config?.skeletonDataset ?? [
|
|
142
|
+
{
|
|
143
|
+
id: "A",
|
|
144
|
+
label: "_",
|
|
145
|
+
relations: [
|
|
146
|
+
"B",
|
|
147
|
+
"C",
|
|
148
|
+
"D",
|
|
149
|
+
"E",
|
|
150
|
+
"F",
|
|
151
|
+
"G"
|
|
152
|
+
]
|
|
153
|
+
},
|
|
154
|
+
{
|
|
155
|
+
id: "B",
|
|
156
|
+
label: "_",
|
|
157
|
+
relations: ["A"]
|
|
158
|
+
},
|
|
159
|
+
{
|
|
160
|
+
id: "C",
|
|
161
|
+
label: "_",
|
|
162
|
+
relations: ["A"]
|
|
163
|
+
},
|
|
164
|
+
{
|
|
165
|
+
id: "D",
|
|
166
|
+
label: "_",
|
|
167
|
+
relations: ["A"]
|
|
168
|
+
},
|
|
169
|
+
{
|
|
170
|
+
id: "E",
|
|
171
|
+
label: "_",
|
|
172
|
+
relations: ["A"]
|
|
173
|
+
},
|
|
174
|
+
{
|
|
175
|
+
id: "F",
|
|
176
|
+
label: "_",
|
|
177
|
+
relations: ["A"]
|
|
178
|
+
},
|
|
179
|
+
{
|
|
180
|
+
id: "G",
|
|
181
|
+
label: "_",
|
|
182
|
+
relations: ["A"]
|
|
183
|
+
}
|
|
184
|
+
],
|
|
185
|
+
skeletonConfig: ae({
|
|
186
|
+
defaultConfig: M.value,
|
|
187
|
+
userConfig: ht.value
|
|
188
|
+
})
|
|
189
|
+
}), { userOptionsVisible: yt, setUserOptionsVisibility: bt, keepUserOptionState: xt } = ve({ config: M.value }), { svgRef: P } = ye({ config: M.value.style.title });
|
|
190
|
+
function St() {
|
|
191
|
+
let e = c({
|
|
192
|
+
userConfig: T.config,
|
|
193
|
+
defaultConfig: at
|
|
194
|
+
}), t = e.theme;
|
|
195
|
+
if (!t) return e;
|
|
196
|
+
if (!ot.value(e)) return st(e), e;
|
|
197
|
+
let n = c({
|
|
198
|
+
userConfig: xe[t] || T.config,
|
|
199
|
+
defaultConfig: e
|
|
200
|
+
}), i = c({
|
|
201
|
+
userConfig: T.config,
|
|
202
|
+
defaultConfig: n
|
|
203
|
+
});
|
|
204
|
+
return {
|
|
205
|
+
...i,
|
|
206
|
+
customPalette: i.customPalette.length ? i.customPalette : r[t] || o
|
|
207
|
+
};
|
|
208
|
+
}
|
|
209
|
+
Pe(() => T.config, (e) => {
|
|
210
|
+
M.value = St(), yt.value = !M.value.userOptions.showOnChartHover, B.value = M.value.style.size, V.value = M.value.style.weightLabels.size, H.value = M.value.style.plot.radius, U.value = M.value.style.labels.fontSize, W.value.height = M.value.style.size, W.value.width = M.value.style.size, Ft(), mt.value += 1;
|
|
211
|
+
}, { deep: !0 }), Pe(() => T.dataset, (e) => {
|
|
212
|
+
Array.isArray(e) && e.length > 0 && (vt.value = !1);
|
|
213
|
+
}, { deep: !0 });
|
|
214
|
+
let { isPrinting: Ct, isImaging: wt, generatePdf: Tt, generateImage: Et } = se({
|
|
215
|
+
elementId: `relation_circle_${E.value}`,
|
|
216
|
+
fileName: M.value.style.title.text || "vue-ui-relation-circle",
|
|
217
|
+
options: M.value.userOptions.print
|
|
218
|
+
}), Dt = u(() => M.value.userOptions.show && !M.value.style.title.text), Ot = u(() => ie(M.value.customPalette)), F = y([]), I = y([]), L = y({}), R = y([]), kt = y(0), z = u(() => _t.value.slice(0, M.value.style.limit).map((e) => {
|
|
219
|
+
let t = Array.isArray(e.relations) ? e.relations : [];
|
|
220
|
+
return {
|
|
221
|
+
...e,
|
|
222
|
+
weights: Array.isArray(e.weights) ? e.weights : Array(t.length).fill(1),
|
|
223
|
+
relations: t
|
|
224
|
+
};
|
|
225
|
+
}));
|
|
226
|
+
Pe(z, () => {
|
|
227
|
+
F.value = [], I.value = [], Rt(), Bt();
|
|
228
|
+
});
|
|
229
|
+
let B = y(M.value.style.size), V = y(M.value.style.weightLabels.size), H = y(M.value.style.plot.radius), U = y(M.value.style.labels.fontSize), W = y({
|
|
230
|
+
height: M.value.style.size,
|
|
231
|
+
width: M.value.style.size
|
|
232
|
+
}), G = u({
|
|
233
|
+
get() {
|
|
234
|
+
return B.value * M.value.style.circle.radiusProportion;
|
|
235
|
+
},
|
|
236
|
+
set(e) {
|
|
237
|
+
return e;
|
|
238
|
+
}
|
|
239
|
+
}), At = u(() => M.value.style.links.curved), jt = u(() => `${M.value.style.animation.speedMs}ms`), Mt = u(() => G.value * 2), Nt = u(() => G.value * 4), K = je(null), q = je(null);
|
|
240
|
+
Ae(() => {
|
|
241
|
+
Ft(), document.getElementById(`relation_circle_${E.value}`).addEventListener("click", Lt);
|
|
242
|
+
});
|
|
243
|
+
let Pt = u(() => M.value.debug);
|
|
244
|
+
function Ft() {
|
|
245
|
+
if (a(T.dataset) ? (ee({
|
|
246
|
+
componentName: "VueUiRelationCircle",
|
|
247
|
+
type: "dataset",
|
|
248
|
+
debug: Pt.value
|
|
249
|
+
}), vt.value = !0) : T.dataset.forEach((e, t) => {
|
|
250
|
+
te({
|
|
251
|
+
datasetObject: e,
|
|
252
|
+
requiredAttributes: [
|
|
253
|
+
"id",
|
|
254
|
+
"label",
|
|
255
|
+
"relations",
|
|
256
|
+
"weights"
|
|
257
|
+
]
|
|
258
|
+
}).forEach((e) => {
|
|
259
|
+
ee({
|
|
260
|
+
componentName: "VueUiRelationCircle",
|
|
261
|
+
type: "datasetSerieAttribute",
|
|
262
|
+
property: e,
|
|
263
|
+
index: t,
|
|
264
|
+
debug: Pt.value
|
|
265
|
+
});
|
|
266
|
+
});
|
|
267
|
+
}), a(T.dataset) || (vt.value = M.value.loading), M.value.responsive) {
|
|
268
|
+
let e = he(() => {
|
|
269
|
+
let { width: e, height: t } = ge({
|
|
270
|
+
chart: D.value,
|
|
271
|
+
title: M.value.style.title.text ? dt.value : null,
|
|
272
|
+
source: ft.value,
|
|
273
|
+
noTitle: pt.value
|
|
274
|
+
});
|
|
275
|
+
requestAnimationFrame(() => {
|
|
276
|
+
B.value = Math.min(e, t), W.value.width = Math.max(.1, e), W.value.height = Math.max(.1, t - 12), G.value = B.value * M.value.style.circle.radiusProportion, F.value = [], I.value = [], Rt(), Bt(), It(), M.value.responsiveProportionalSizing ? (V.value = i({
|
|
277
|
+
relator: B.value,
|
|
278
|
+
adjuster: M.value.style.size,
|
|
279
|
+
source: M.value.style.weightLabels.size,
|
|
280
|
+
threshold: 6,
|
|
281
|
+
fallback: 6
|
|
282
|
+
}), H.value = i({
|
|
283
|
+
relator: B.value,
|
|
284
|
+
adjuster: M.value.style.size,
|
|
285
|
+
source: M.value.style.plot.radius,
|
|
286
|
+
threshold: 1,
|
|
287
|
+
fallback: 1
|
|
288
|
+
}), U.value = i({
|
|
289
|
+
relator: B.value,
|
|
290
|
+
adjuster: M.value.style.size,
|
|
291
|
+
source: M.value.style.labels.fontSize,
|
|
292
|
+
threshold: 6,
|
|
293
|
+
fallback: 6
|
|
294
|
+
})) : (V.value = M.value.style.weightLabels.size, H.value = M.value.style.plot.radius, U.value = M.value.style.labels.fontSize);
|
|
295
|
+
});
|
|
296
|
+
});
|
|
297
|
+
K.value && (q.value && K.value.unobserve(q.value), K.value.disconnect()), K.value = new ResizeObserver(e), q.value = D.value.parentNode, K.value.observe(q.value);
|
|
298
|
+
} else F.value = [], I.value = [], Rt(), Bt();
|
|
299
|
+
It();
|
|
300
|
+
}
|
|
301
|
+
ke(() => {
|
|
302
|
+
document.getElementById(`relation_circle_${E.value}`).removeEventListener("click", Lt), K.value && (q.value && K.value.unobserve(q.value), K.value.disconnect());
|
|
303
|
+
});
|
|
304
|
+
let { autoSizeLabels: It } = be({
|
|
305
|
+
svgRef: P,
|
|
306
|
+
fontSize: M.value.style.labels.fontSize,
|
|
307
|
+
minFontSize: M.value.style.labels.minFontSize,
|
|
308
|
+
sizeRef: U,
|
|
309
|
+
labelClass: ".vue-ui-relation-circle-legend"
|
|
310
|
+
});
|
|
311
|
+
function Lt(e) {
|
|
312
|
+
let t = e.target;
|
|
313
|
+
t && Array.from(t.classList).includes("vue-ui-user-options") || t && Array.from(t.classList).includes("vue-ui-user-options-summary") || t && Array.from(t.classList).includes("vue-data-ui-button") || t && Array.from(t.classList).includes("vue-ui-relation-circle-legend") || (L.value = {}, R.value = []);
|
|
314
|
+
}
|
|
315
|
+
function Rt() {
|
|
316
|
+
let e = 6.28319 / z.value.length, t = 360 / z.value.length, n = 0, r = 0;
|
|
317
|
+
z.value.forEach((i, a) => {
|
|
318
|
+
let ee = i.weights.reduce((e, t) => e + t, 0), s = G.value * Math.cos(n) + W.value.width / 2, te = G.value * Math.sin(n) + W.value.height / 2 + M.value.style.circle.offsetY;
|
|
319
|
+
F.value.push({
|
|
320
|
+
x: s,
|
|
321
|
+
y: te,
|
|
322
|
+
...i,
|
|
323
|
+
color: i.color ? i.color : Ot.value[a] ? Ot.value[a] : o[a],
|
|
324
|
+
regAngle: r,
|
|
325
|
+
totalWeight: ee
|
|
326
|
+
}), n += e, r += t;
|
|
327
|
+
});
|
|
328
|
+
}
|
|
329
|
+
function zt(e, t) {
|
|
330
|
+
return {
|
|
331
|
+
x: (e.x + t.x) / 2,
|
|
332
|
+
y: (e.y + t.y) / 2
|
|
333
|
+
};
|
|
334
|
+
}
|
|
335
|
+
function Bt() {
|
|
336
|
+
I.value = [], F.value.forEach((e) => {
|
|
337
|
+
F.value.filter((t) => t.relations.includes(e.id)).forEach((t, n) => {
|
|
338
|
+
let r = t.relations.indexOf(e.id);
|
|
339
|
+
I.value.push({
|
|
340
|
+
weight: t.weights[r] ? t.weights[r] : 0,
|
|
341
|
+
relationId: `${e.id}_${t.id}`,
|
|
342
|
+
x1: e.x,
|
|
343
|
+
y1: e.y,
|
|
344
|
+
x2: t.x,
|
|
345
|
+
y2: t.y,
|
|
346
|
+
colorSource: e.color,
|
|
347
|
+
colorTarget: t.color,
|
|
348
|
+
midPointLine: zt({
|
|
349
|
+
x: e.x,
|
|
350
|
+
y: e.y
|
|
351
|
+
}, {
|
|
352
|
+
x: t.x,
|
|
353
|
+
y: t.y
|
|
354
|
+
}),
|
|
355
|
+
midPointBezier: Vt({
|
|
356
|
+
x1: e.x,
|
|
357
|
+
x2: t.x,
|
|
358
|
+
y1: e.y,
|
|
359
|
+
y2: t.y
|
|
360
|
+
}),
|
|
361
|
+
...e
|
|
362
|
+
});
|
|
363
|
+
});
|
|
364
|
+
});
|
|
365
|
+
}
|
|
366
|
+
function Vt(e) {
|
|
367
|
+
let t = {
|
|
368
|
+
x: e.x1,
|
|
369
|
+
y: e.y1
|
|
370
|
+
}, n = {
|
|
371
|
+
x: e.x2,
|
|
372
|
+
y: e.y2
|
|
373
|
+
}, r = {
|
|
374
|
+
x: e.x1,
|
|
375
|
+
y: e.y1
|
|
376
|
+
}, i = {
|
|
377
|
+
x: W.value.width / 2,
|
|
378
|
+
y: W.value.height / 2 + M.value.style.circle.offsetY
|
|
379
|
+
}, a = .5;
|
|
380
|
+
return {
|
|
381
|
+
x: (1 - a) ** 3 * t.x + 3 * (1 - a) ** 2 * a * r.x + 3 * (1 - a) * a ** 2 * i.x + a ** 3 * n.x,
|
|
382
|
+
y: (1 - a) ** 3 * t.y + 3 * (1 - a) ** 2 * a * r.y + 3 * (1 - a) * a ** 2 * i.y + a ** 3 * n.y
|
|
383
|
+
};
|
|
384
|
+
}
|
|
385
|
+
let Ht = u(() => Math.max(...I.value.map((e) => e.weight)));
|
|
386
|
+
function Ut(e) {
|
|
387
|
+
return Object.hasOwn(L.value, "x") ? R.value.includes(e.id) ? "opacity:1" : "opacity:0.1" : "opacity:1";
|
|
388
|
+
}
|
|
389
|
+
function J(e) {
|
|
390
|
+
return e.colorSource;
|
|
391
|
+
}
|
|
392
|
+
function Wt(e) {
|
|
393
|
+
return Object.hasOwn(L.value, "x") ? R.value.includes(e.id) && e.relationId === `${e.id}_${L.value.id}` || e.relationId === `${L.value.id}_${e.id}` ? `opacity:1;stroke-width:${$t(e)}` : "opacity: 0" : "opacity: 1";
|
|
394
|
+
}
|
|
395
|
+
function Y(e) {
|
|
396
|
+
return Object.hasOwn(L.value, "x") ? !!(R.value.includes(e.id) && e.relationId === `${e.id}_${L.value.id}` || e.relationId === `${L.value.id}_${e.id}`) : !1;
|
|
397
|
+
}
|
|
398
|
+
function Gt(e) {
|
|
399
|
+
return e.regAngle > 90 && e.regAngle < 270 ? "end" : "start";
|
|
400
|
+
}
|
|
401
|
+
function Kt(e) {
|
|
402
|
+
return e.regAngle > 90 && e.regAngle < 270 ? e.x - 5 : e.x + 5;
|
|
403
|
+
}
|
|
404
|
+
function qt(e) {
|
|
405
|
+
return Object.hasOwn(L.value, "x") ? L.value.id === e.id || R.value.includes(e.id) ? "opacity:1" : "opacity:0.2" : "opacity:1";
|
|
406
|
+
}
|
|
407
|
+
function Jt(e) {
|
|
408
|
+
return e.regAngle > 90 && e.regAngle < 270 ? `rotate(${e.regAngle + 180},${e.x},${e.y})` : `rotate(${e.regAngle},${e.x},${e.y})`;
|
|
409
|
+
}
|
|
410
|
+
let X = y(null);
|
|
411
|
+
function Yt(e, t) {
|
|
412
|
+
X.value = t, A.value = t, M.value.events.datapointEnter && M.value.events.datapointEnter({
|
|
413
|
+
datapoint: e,
|
|
414
|
+
seriesIndex: t
|
|
415
|
+
});
|
|
416
|
+
}
|
|
417
|
+
function Xt(e, t) {
|
|
418
|
+
X.value = null, j.value || (A.value = null), M.value.events.datapointLeave && M.value.events.datapointLeave({
|
|
419
|
+
datapoint: e,
|
|
420
|
+
seriesIndex: t
|
|
421
|
+
});
|
|
422
|
+
}
|
|
423
|
+
function Zt(e, t) {
|
|
424
|
+
e && (M.value.events.datapointClick && M.value.events.datapointClick({
|
|
425
|
+
datapoint: e,
|
|
426
|
+
seriesIndex: t
|
|
427
|
+
}), kt.value = 360 - e.regAngle, L.value.id && e.id === L.value.id ? (L.value = {}, R.value = []) : (L.value = e, R.value = [...e.relations]));
|
|
428
|
+
}
|
|
429
|
+
function Qt(e, t) {
|
|
430
|
+
A.value = t, Zt(e, t);
|
|
431
|
+
}
|
|
432
|
+
function $t(e) {
|
|
433
|
+
let t = e.weight / Ht.value * M.value.style.links.maxWidth;
|
|
434
|
+
return Math.max(.3, t);
|
|
435
|
+
}
|
|
436
|
+
let Z = y(!1);
|
|
437
|
+
function en(e) {
|
|
438
|
+
Z.value = e, ut.value += 1;
|
|
439
|
+
}
|
|
440
|
+
let Q = y(!1);
|
|
441
|
+
function tn() {
|
|
442
|
+
Q.value = !Q.value;
|
|
443
|
+
}
|
|
444
|
+
async function nn({ scale: e = 2 } = {}) {
|
|
445
|
+
if (!D.value) return;
|
|
446
|
+
let { width: t, height: n } = D.value.getBoundingClientRect(), r = t / n, { imageUri: i, base64: a } = await fe({
|
|
447
|
+
domElement: D.value,
|
|
448
|
+
base64: !0,
|
|
449
|
+
img: !0,
|
|
450
|
+
scale: e
|
|
451
|
+
});
|
|
452
|
+
return {
|
|
453
|
+
imageUri: i,
|
|
454
|
+
base64: a,
|
|
455
|
+
title: M.value.style.title.text,
|
|
456
|
+
width: t,
|
|
457
|
+
height: n,
|
|
458
|
+
aspectRatio: r
|
|
459
|
+
};
|
|
460
|
+
}
|
|
461
|
+
let rn = u(() => M.value.style.backgroundColor), { exportSvg: an, getSvg: on } = ue({
|
|
462
|
+
svg: P,
|
|
463
|
+
title: u(() => M.value.style.title),
|
|
464
|
+
backgroundColor: rn
|
|
465
|
+
});
|
|
466
|
+
async function sn({ isCb: e }) {
|
|
467
|
+
k.value = !0, await De();
|
|
468
|
+
try {
|
|
469
|
+
if (e) {
|
|
470
|
+
let { blob: e, url: t, text: n, dataUrl: r } = await on();
|
|
471
|
+
await Promise.resolve(M.value.userOptions.callbacks.svg({
|
|
472
|
+
blob: e,
|
|
473
|
+
url: t,
|
|
474
|
+
text: n,
|
|
475
|
+
dataUrl: r
|
|
476
|
+
}));
|
|
477
|
+
} else await Promise.resolve(an());
|
|
478
|
+
} finally {
|
|
479
|
+
k.value = !1;
|
|
480
|
+
}
|
|
481
|
+
}
|
|
482
|
+
function cn(e) {
|
|
483
|
+
if (e?.stage === "start") {
|
|
484
|
+
O.value = !0;
|
|
485
|
+
return;
|
|
486
|
+
}
|
|
487
|
+
if (e?.stage === "end") {
|
|
488
|
+
O.value = !1;
|
|
489
|
+
return;
|
|
490
|
+
}
|
|
491
|
+
Et();
|
|
492
|
+
}
|
|
493
|
+
async function ln() {
|
|
494
|
+
if (ct("copyAlt", {
|
|
495
|
+
config: M.value,
|
|
496
|
+
dataset: z.value
|
|
497
|
+
}), !M.value.userOptions.callbacks.altCopy) {
|
|
498
|
+
console.warn("Vue Data UI - A callback must be set for `altCopy` in userOptions.");
|
|
499
|
+
return;
|
|
500
|
+
}
|
|
501
|
+
await Promise.resolve(M.value.userOptions.callbacks.altCopy({
|
|
502
|
+
config: M.value,
|
|
503
|
+
dataset: z.value
|
|
504
|
+
}));
|
|
505
|
+
}
|
|
506
|
+
function un() {
|
|
507
|
+
j.value = !0, F.value.length && A.value === null && (A.value = 0);
|
|
508
|
+
}
|
|
509
|
+
function dn() {
|
|
510
|
+
j.value = !1, A.value = null;
|
|
511
|
+
}
|
|
512
|
+
function fn(e) {
|
|
513
|
+
if (!P.value || Q.value || document.activeElement !== P.value || !F.value.length) return;
|
|
514
|
+
let t = ["ArrowLeft", "ArrowUp"].includes(e.key), n = ["ArrowRight", "ArrowDown"].includes(e.key), r = e.key === "Enter" || e.key === " ", i = e.key === "Escape";
|
|
515
|
+
if (!t && !n && !r && !i) return;
|
|
516
|
+
if (e.preventDefault(), e.stopPropagation(), i) {
|
|
517
|
+
A.value = null, L.value = {}, R.value = [];
|
|
518
|
+
return;
|
|
519
|
+
}
|
|
520
|
+
if (r) {
|
|
521
|
+
if (A.value === null) return;
|
|
522
|
+
let e = F.value[A.value];
|
|
523
|
+
if (!e) return;
|
|
524
|
+
Zt(e, A.value);
|
|
525
|
+
return;
|
|
526
|
+
}
|
|
527
|
+
let a = A.value;
|
|
528
|
+
a === null || a < 0 || a >= F.value.length ? a = n ? 0 : F.value.length - 1 : n ? (a += 1, a >= F.value.length && (a = 0)) : t && (--a, a < 0 && (a = F.value.length - 1)), A.value = a, X.value = a;
|
|
529
|
+
let o = F.value[a];
|
|
530
|
+
o && M.value.events.datapointEnter && M.value.events.datapointEnter({
|
|
531
|
+
datapoint: o,
|
|
532
|
+
seriesIndex: a
|
|
533
|
+
});
|
|
534
|
+
}
|
|
535
|
+
let $ = u(() => ({
|
|
536
|
+
headers: [
|
|
537
|
+
"ID",
|
|
538
|
+
"Label",
|
|
539
|
+
"Total weight",
|
|
540
|
+
"Relations count",
|
|
541
|
+
"Relations"
|
|
542
|
+
],
|
|
543
|
+
rows: z.value.map((e) => {
|
|
544
|
+
let t = e.relations.map((e) => z.value.find((t) => t.id === e)?.label || e).join(", "), n = (e.weights || []).reduce((e, t) => e + Number(t || 0), 0);
|
|
545
|
+
return [
|
|
546
|
+
e.id,
|
|
547
|
+
e.label,
|
|
548
|
+
n,
|
|
549
|
+
e.relations.length,
|
|
550
|
+
t
|
|
551
|
+
];
|
|
552
|
+
})
|
|
553
|
+
}));
|
|
554
|
+
return me({
|
|
555
|
+
getImage: nn,
|
|
556
|
+
generatePdf: Tt,
|
|
557
|
+
generateSvg: sn,
|
|
558
|
+
generateImage: Et,
|
|
559
|
+
toggleAnnotator: tn,
|
|
560
|
+
toggleFullscreen: en,
|
|
561
|
+
copyAlt: ln
|
|
562
|
+
}), (e, n) => (v(), p("div", {
|
|
563
|
+
ref_key: "relationCircleChart",
|
|
564
|
+
ref: D,
|
|
565
|
+
class: "vue-data-ui-component vue-ui-relation-circle",
|
|
566
|
+
style: _(`width:100%;background:${M.value.style.backgroundColor};text-align:center;${M.value.responsive ? "height: 100%" : ""}`),
|
|
567
|
+
id: `relation_circle_${E.value}`,
|
|
568
|
+
onMouseenter: n[0] ||= () => C(bt)(!0),
|
|
569
|
+
onMouseleave: n[1] ||= () => C(bt)(!1)
|
|
570
|
+
}, [
|
|
571
|
+
m("div", {
|
|
572
|
+
id: `chart-instructions-${E.value}`,
|
|
573
|
+
class: "sr-only"
|
|
574
|
+
}, [m("p", null, S(M.value.a11y.translations.keyboardNavigation), 1)], 8, Le),
|
|
575
|
+
$.value?.rows?.length ? (v(), d(_e, {
|
|
576
|
+
key: 0,
|
|
577
|
+
uid: E.value,
|
|
578
|
+
head: $.value.headers,
|
|
579
|
+
body: $.value.rows,
|
|
580
|
+
notice: M.value.a11y.translations.tableAvailable,
|
|
581
|
+
caption: M.value.a11y.translations.tableCaption
|
|
582
|
+
}, null, 8, [
|
|
583
|
+
"uid",
|
|
584
|
+
"head",
|
|
585
|
+
"body",
|
|
586
|
+
"notice",
|
|
587
|
+
"caption"
|
|
588
|
+
])) : f("", !0),
|
|
589
|
+
M.value.userOptions.buttons.annotator ? (v(), d(C(nt), {
|
|
590
|
+
key: 1,
|
|
591
|
+
svgRef: C(P),
|
|
592
|
+
backgroundColor: M.value.style.backgroundColor,
|
|
593
|
+
color: M.value.style.color,
|
|
594
|
+
active: Q.value,
|
|
595
|
+
isCursorPointer: N.value,
|
|
596
|
+
onClose: tn
|
|
597
|
+
}, {
|
|
598
|
+
"annotator-action-close": w(() => [x(e.$slots, "annotator-action-close", {}, void 0, !0)]),
|
|
599
|
+
"annotator-action-color": w(({ color: t }) => [x(e.$slots, "annotator-action-color", g(h({ color: t })), void 0, !0)]),
|
|
600
|
+
"annotator-action-draw": w(({ mode: t }) => [x(e.$slots, "annotator-action-draw", g(h({ mode: t })), void 0, !0)]),
|
|
601
|
+
"annotator-action-undo": w(({ disabled: t }) => [x(e.$slots, "annotator-action-undo", g(h({ disabled: t })), void 0, !0)]),
|
|
602
|
+
"annotator-action-redo": w(({ disabled: t }) => [x(e.$slots, "annotator-action-redo", g(h({ disabled: t })), void 0, !0)]),
|
|
603
|
+
"annotator-action-delete": w(({ disabled: t }) => [x(e.$slots, "annotator-action-delete", g(h({ disabled: t })), void 0, !0)]),
|
|
604
|
+
_: 3
|
|
605
|
+
}, 8, [
|
|
606
|
+
"svgRef",
|
|
607
|
+
"backgroundColor",
|
|
608
|
+
"color",
|
|
609
|
+
"active",
|
|
610
|
+
"isCursorPointer"
|
|
611
|
+
])) : f("", !0),
|
|
612
|
+
Dt.value ? (v(), p("div", {
|
|
613
|
+
key: 2,
|
|
614
|
+
ref_key: "noTitle",
|
|
615
|
+
ref: pt,
|
|
616
|
+
class: "vue-data-ui-no-title-space",
|
|
617
|
+
style: "height:36px; width: 100%;background:transparent"
|
|
618
|
+
}, null, 512)) : f("", !0),
|
|
619
|
+
M.value.style.title.text ? (v(), p("div", {
|
|
620
|
+
key: 3,
|
|
621
|
+
ref_key: "chartTitle",
|
|
622
|
+
ref: dt,
|
|
623
|
+
style: "width:100%;background:transparent"
|
|
624
|
+
}, [(v(), d(pe, {
|
|
625
|
+
key: `title_${mt.value}`,
|
|
626
|
+
config: {
|
|
627
|
+
title: {
|
|
628
|
+
cy: "relation-div-title",
|
|
629
|
+
...M.value.style.title
|
|
630
|
+
},
|
|
631
|
+
subtitle: {
|
|
632
|
+
cy: "relation-div-subtitle",
|
|
633
|
+
...M.value.style.title.subtitle
|
|
634
|
+
}
|
|
635
|
+
}
|
|
636
|
+
}, null, 8, ["config"]))], 512)) : f("", !0),
|
|
637
|
+
M.value.userOptions.show && lt.value && (C(xt) || C(yt)) ? (v(), d(C(rt), {
|
|
638
|
+
ref: "details",
|
|
639
|
+
key: `user_options_${ut.value}`,
|
|
640
|
+
backgroundColor: M.value.style.backgroundColor,
|
|
641
|
+
color: M.value.style.color,
|
|
642
|
+
isPrinting: C(Ct),
|
|
643
|
+
isImaging: C(wt),
|
|
644
|
+
uid: E.value,
|
|
645
|
+
hasPdf: M.value.userOptions.buttons.pdf,
|
|
646
|
+
hasImg: M.value.userOptions.buttons.img,
|
|
647
|
+
hasSvg: M.value.userOptions.buttons.svg,
|
|
648
|
+
hasFullscreen: M.value.userOptions.buttons.fullscreen,
|
|
649
|
+
hasAltCopy: M.value.userOptions.buttons.altCopy,
|
|
650
|
+
hasXls: !1,
|
|
651
|
+
isFullscreen: Z.value,
|
|
652
|
+
titles: { ...M.value.userOptions.buttonTitles },
|
|
653
|
+
chartElement: D.value,
|
|
654
|
+
position: M.value.userOptions.position,
|
|
655
|
+
hasAnnotator: M.value.userOptions.buttons.annotator,
|
|
656
|
+
isAnnotation: Q.value,
|
|
657
|
+
callbacks: M.value.userOptions.callbacks,
|
|
658
|
+
printScale: M.value.userOptions.print.scale,
|
|
659
|
+
isCursorPointer: N.value,
|
|
660
|
+
onToggleFullscreen: en,
|
|
661
|
+
onGeneratePdf: C(Tt),
|
|
662
|
+
onGenerateImage: cn,
|
|
663
|
+
onGenerateSvg: sn,
|
|
664
|
+
onToggleAnnotator: tn,
|
|
665
|
+
onCopyAlt: ln,
|
|
666
|
+
style: _({ visibility: C(xt) ? C(yt) ? "visible" : "hidden" : "visible" })
|
|
667
|
+
}, Se({ _: 2 }, [
|
|
668
|
+
e.$slots.menuIcon ? {
|
|
669
|
+
name: "menuIcon",
|
|
670
|
+
fn: w(({ isOpen: t, color: n }) => [x(e.$slots, "menuIcon", g(h({
|
|
671
|
+
isOpen: t,
|
|
672
|
+
color: n
|
|
673
|
+
})), void 0, !0)]),
|
|
674
|
+
key: "0"
|
|
675
|
+
} : void 0,
|
|
676
|
+
e.$slots.optionPdf ? {
|
|
677
|
+
name: "optionPdf",
|
|
678
|
+
fn: w(() => [x(e.$slots, "optionPdf", {}, void 0, !0)]),
|
|
679
|
+
key: "1"
|
|
680
|
+
} : void 0,
|
|
681
|
+
e.$slots.optionImg ? {
|
|
682
|
+
name: "optionImg",
|
|
683
|
+
fn: w(() => [x(e.$slots, "optionImg", {}, void 0, !0)]),
|
|
684
|
+
key: "2"
|
|
685
|
+
} : void 0,
|
|
686
|
+
e.$slots.optionSvg ? {
|
|
687
|
+
name: "optionSvg",
|
|
688
|
+
fn: w(() => [x(e.$slots, "optionSvg", {}, void 0, !0)]),
|
|
689
|
+
key: "3"
|
|
690
|
+
} : void 0,
|
|
691
|
+
e.$slots.optionFullscreen ? {
|
|
692
|
+
name: "optionFullscreen",
|
|
693
|
+
fn: w(({ toggleFullscreen: t, isFullscreen: n }) => [x(e.$slots, "optionFullscreen", g(h({
|
|
694
|
+
toggleFullscreen: t,
|
|
695
|
+
isFullscreen: n
|
|
696
|
+
})), void 0, !0)]),
|
|
697
|
+
key: "4"
|
|
698
|
+
} : void 0,
|
|
699
|
+
e.$slots.optionAnnotator ? {
|
|
700
|
+
name: "optionAnnotator",
|
|
701
|
+
fn: w(({ toggleAnnotator: t, isAnnotator: n }) => [x(e.$slots, "optionAnnotator", g(h({
|
|
702
|
+
toggleAnnotator: t,
|
|
703
|
+
isAnnotator: n
|
|
704
|
+
})), void 0, !0)]),
|
|
705
|
+
key: "5"
|
|
706
|
+
} : void 0,
|
|
707
|
+
e.$slots.optionAltCopy ? {
|
|
708
|
+
name: "optionAltCopy",
|
|
709
|
+
fn: w(({ altCopy: t }) => [x(e.$slots, "optionAltCopy", g(h({ altCopy: t })), void 0, !0)]),
|
|
710
|
+
key: "6"
|
|
711
|
+
} : void 0
|
|
712
|
+
]), 1032, [
|
|
713
|
+
"backgroundColor",
|
|
714
|
+
"color",
|
|
715
|
+
"isPrinting",
|
|
716
|
+
"isImaging",
|
|
717
|
+
"uid",
|
|
718
|
+
"hasPdf",
|
|
719
|
+
"hasImg",
|
|
720
|
+
"hasSvg",
|
|
721
|
+
"hasFullscreen",
|
|
722
|
+
"hasAltCopy",
|
|
723
|
+
"isFullscreen",
|
|
724
|
+
"titles",
|
|
725
|
+
"chartElement",
|
|
726
|
+
"position",
|
|
727
|
+
"hasAnnotator",
|
|
728
|
+
"isAnnotation",
|
|
729
|
+
"callbacks",
|
|
730
|
+
"printScale",
|
|
731
|
+
"isCursorPointer",
|
|
732
|
+
"onGeneratePdf",
|
|
733
|
+
"style"
|
|
734
|
+
])) : f("", !0),
|
|
735
|
+
m("div", Re, [(v(), p("svg", {
|
|
736
|
+
ref_key: "svgRef",
|
|
737
|
+
ref: P,
|
|
738
|
+
xmlns: C(re),
|
|
739
|
+
class: Oe([{
|
|
740
|
+
"vue-data-ui-fullscreen--on": Z.value,
|
|
741
|
+
"vue-data-ui-fulscreen--off": !Z.value
|
|
742
|
+
}, "relation-circle"]),
|
|
743
|
+
viewBox: `0 0 ${W.value.width <= 0 ? 10 : W.value.width} ${W.value.height <= 0 ? 10 : W.value.height}`,
|
|
744
|
+
width: "100%",
|
|
745
|
+
style: "user-select:none; background:transparent",
|
|
746
|
+
"aria-describedby": `chart-instructions-${E.value}`,
|
|
747
|
+
tabindex: "0",
|
|
748
|
+
onFocus: un,
|
|
749
|
+
onBlur: dn,
|
|
750
|
+
onKeydown: fn
|
|
751
|
+
}, [
|
|
752
|
+
we(C(it)),
|
|
753
|
+
e.$slots["chart-background"] ? (v(), p("foreignObject", {
|
|
754
|
+
key: 0,
|
|
755
|
+
x: 0,
|
|
756
|
+
y: 0,
|
|
757
|
+
width: W.value.width <= 0 ? 10 : W.value.width,
|
|
758
|
+
height: W.value.height <= 0 ? 10 : W.value.height,
|
|
759
|
+
style: { pointerEvents: "none" }
|
|
760
|
+
}, [x(e.$slots, "chart-background", {}, void 0, !0)], 8, Be)) : f("", !0),
|
|
761
|
+
m("circle", {
|
|
762
|
+
cx: (W.value.width <= 0 ? 1e-4 : W.value.width) / 2,
|
|
763
|
+
cy: (W.value.height <= 0 ? 1e-4 : W.value.height) / 2 + M.value.style.circle.offsetY,
|
|
764
|
+
r: G.value <= 0 ? 1e-4 : G.value,
|
|
765
|
+
stroke: M.value.style.circle.stroke,
|
|
766
|
+
"stroke-width": M.value.style.circle.strokeWidth,
|
|
767
|
+
fill: "transparent",
|
|
768
|
+
class: "main-circle"
|
|
769
|
+
}, null, 8, Ve),
|
|
770
|
+
At.value ? (v(), p("g", He, [(v(!0), p(l, null, b(I.value, (e, t) => (v(), p("path", {
|
|
771
|
+
key: `relation_${t}`,
|
|
772
|
+
style: _(Wt(e)),
|
|
773
|
+
stroke: J(e),
|
|
774
|
+
class: Oe(["relation", { "vue-ui-relation-circle-selected": L.value.hasOwnProperty("id") && R.value.includes(e.id) }]),
|
|
775
|
+
d: `M${e.x1},${e.y1} C${e.x1},${e.y1} ${W.value.width / 2},${W.value.height / 2 + M.value.style.circle.offsetY} ${e.x2},${e.y2}`,
|
|
776
|
+
fill: "none",
|
|
777
|
+
"stroke-width": $t(e),
|
|
778
|
+
"stroke-linecap": "round"
|
|
779
|
+
}, null, 14, Ue))), 128)), (v(!0), p(l, null, b(I.value, (n, r) => (v(), p("g", We, [
|
|
780
|
+
Y(n) ? x(e.$slots, "dataLabel", Ee({
|
|
781
|
+
key: 0,
|
|
782
|
+
ref_for: !0
|
|
783
|
+
}, {
|
|
784
|
+
x: n.midPointBezier.x,
|
|
785
|
+
y: n.midPointBezier.y,
|
|
786
|
+
color: J(n),
|
|
787
|
+
weight: n.weight,
|
|
788
|
+
fontSize: V.value
|
|
789
|
+
}), void 0, !0) : f("", !0),
|
|
790
|
+
Y(n) && !e.$slots.dataLabel ? (v(), p("circle", {
|
|
791
|
+
key: 1,
|
|
792
|
+
cx: n.midPointBezier.x,
|
|
793
|
+
cy: n.midPointBezier.y,
|
|
794
|
+
fill: J(n),
|
|
795
|
+
r: V.value,
|
|
796
|
+
stroke: M.value.style.backgroundColor,
|
|
797
|
+
"stroke-width": "1"
|
|
798
|
+
}, null, 8, Ge)) : f("", !0),
|
|
799
|
+
Y(n) && !e.$slots.dataLabel ? (v(), p("text", {
|
|
800
|
+
key: 2,
|
|
801
|
+
x: n.midPointBezier.x,
|
|
802
|
+
y: n.midPointBezier.y + V.value / 3,
|
|
803
|
+
fill: C(ne)(J(n)),
|
|
804
|
+
"text-anchor": "middle",
|
|
805
|
+
"font-size": V.value
|
|
806
|
+
}, S(C(s)(M.value.style.weightLabels.formatter, n.weight, C(t)({
|
|
807
|
+
p: M.value.style.weightLabels.prefix,
|
|
808
|
+
v: n.weight,
|
|
809
|
+
s: M.value.style.weightLabels.suffix,
|
|
810
|
+
r: M.value.style.weightLabels.rounding
|
|
811
|
+
}), { ...n })), 9, Ke)) : f("", !0)
|
|
812
|
+
]))), 256))])) : (v(), p("g", qe, [(v(!0), p(l, null, b(I.value, (e, t) => (v(), p("line", {
|
|
813
|
+
key: `relation_${t}`,
|
|
814
|
+
stroke: J(e),
|
|
815
|
+
"stroke-width": $t(e),
|
|
816
|
+
style: _(Wt(e)),
|
|
817
|
+
x1: e.x1,
|
|
818
|
+
x2: e.x2,
|
|
819
|
+
y1: e.y1,
|
|
820
|
+
y2: e.y2,
|
|
821
|
+
class: Oe({ "vue-ui-relation-circle-selected": L.value.hasOwnProperty("id") && R.value.includes(e.id) }),
|
|
822
|
+
"stroke-linecap": "round"
|
|
823
|
+
}, null, 14, Je))), 128)), (v(!0), p(l, null, b(I.value, (n, r) => (v(), p("g", Ye, [
|
|
824
|
+
Y(n) ? x(e.$slots, "dataLabel", Ee({
|
|
825
|
+
key: 0,
|
|
826
|
+
ref_for: !0
|
|
827
|
+
}, {
|
|
828
|
+
x: n.midPointLine.x,
|
|
829
|
+
y: n.midPointLine.y,
|
|
830
|
+
color: J(n),
|
|
831
|
+
weight: n.weight,
|
|
832
|
+
fontSize: V.value
|
|
833
|
+
}), void 0, !0) : f("", !0),
|
|
834
|
+
Y(n) && !e.$slots.dataLabel && M.value.style.weightLabels.show ? (v(), p("circle", {
|
|
835
|
+
key: 1,
|
|
836
|
+
cx: n.midPointLine.x,
|
|
837
|
+
cy: n.midPointLine.y,
|
|
838
|
+
fill: J(n),
|
|
839
|
+
r: V.value,
|
|
840
|
+
stroke: M.value.style.backgroundColor,
|
|
841
|
+
"stroke-width": "1"
|
|
842
|
+
}, null, 8, Xe)) : f("", !0),
|
|
843
|
+
Y(n) && !e.$slots.dataLabel && M.value.style.weightLabels.show ? (v(), p("text", {
|
|
844
|
+
key: 2,
|
|
845
|
+
x: n.midPointLine.x,
|
|
846
|
+
y: n.midPointLine.y + V.value / 3,
|
|
847
|
+
fill: C(ne)(J(n)),
|
|
848
|
+
"text-anchor": "middle",
|
|
849
|
+
"font-size": V.value
|
|
850
|
+
}, S(C(s)(M.value.style.weightLabels.formatter, n.weight, C(t)({
|
|
851
|
+
p: M.value.style.weightLabels.prefix,
|
|
852
|
+
v: n.weight,
|
|
853
|
+
s: M.value.style.weightLabels.suffix,
|
|
854
|
+
r: M.value.style.weightLabels.rounding
|
|
855
|
+
}), { ...n })), 9, Ze)) : f("", !0)
|
|
856
|
+
]))), 256))])),
|
|
857
|
+
(v(!0), p(l, null, b(F.value, (e, n) => (v(), p("text", {
|
|
858
|
+
key: `plot_text_${n}`,
|
|
859
|
+
"text-anchor": Gt(e),
|
|
860
|
+
transform: Jt(e),
|
|
861
|
+
x: Kt(e),
|
|
862
|
+
y: e.y + 5,
|
|
863
|
+
class: "vue-ui-relation-circle-legend",
|
|
864
|
+
"transform-origin": "start",
|
|
865
|
+
"font-weight": L.value.id === e.id ? "900" : "400",
|
|
866
|
+
style: _(`font-family:${M.value.style.fontFamily};${qt(e)};cursor:${N.value ? "pointer" : "default"}`),
|
|
867
|
+
"font-size": U.value,
|
|
868
|
+
fill: M.value.style.labels.color,
|
|
869
|
+
"text-decoration": n === X.value || n === A.value ? "underline" : void 0,
|
|
870
|
+
onClick: (t) => Qt(e, n),
|
|
871
|
+
onMouseenter: (t) => Yt(e, n),
|
|
872
|
+
onMouseleave: (t) => Xt(e, n)
|
|
873
|
+
}, [C(gt) ? (v(), p(l, { key: 0 }, [Ce("--------")], 64)) : (v(), p(l, { key: 1 }, [Ce(S(e.label) + " (" + S(C(s)(M.value.style.weightLabels.formatter, e.totalWeight, C(t)({
|
|
874
|
+
p: M.value.style.weightLabels.prefix,
|
|
875
|
+
v: e.totalWeight,
|
|
876
|
+
s: M.value.style.weightLabels.suffix,
|
|
877
|
+
r: M.value.style.weightLabels.rounding
|
|
878
|
+
}), { ...e })) + ") ", 1)], 64))], 44, Qe))), 128)),
|
|
879
|
+
(v(!0), p(l, null, b(F.value, (e, t) => (v(), p("circle", {
|
|
880
|
+
cx: e.x,
|
|
881
|
+
cy: e.y,
|
|
882
|
+
key: `plot_${t}`,
|
|
883
|
+
style: _(`${Ut(e)}; transition: r 0.2s ease-in-out; cursor:${N.value ? "pointer" : "default"}`),
|
|
884
|
+
class: "vue-ui-relation-circle-plot",
|
|
885
|
+
fill: M.value.style.plot.useSerieColor ? e.color : M.value.style.plot.color,
|
|
886
|
+
stroke: M.value.style.backgroundColor,
|
|
887
|
+
"stroke-width": "1",
|
|
888
|
+
r: H.value * (t === X.value || t === A.value ? 2 : 1),
|
|
889
|
+
onClick: (n) => Qt(e, t),
|
|
890
|
+
onMouseenter: (n) => Yt(e, t),
|
|
891
|
+
onMouseleave: (n) => Xt(e, t)
|
|
892
|
+
}, null, 44, $e))), 128)),
|
|
893
|
+
x(e.$slots, "svg", { svg: {
|
|
894
|
+
...W.value,
|
|
895
|
+
isPrintingImg: C(Ct) || C(wt) || O.value,
|
|
896
|
+
isPrintingSvg: k.value
|
|
897
|
+
} }, void 0, !0)
|
|
898
|
+
], 42, ze)), e.$slots.hint ? (v(), p("div", et, [x(e.$slots, "hint", g(h({
|
|
899
|
+
hint: M.value.a11y.translations.keyboardNavigation,
|
|
900
|
+
isVisible: j.value
|
|
901
|
+
})), void 0, !0)])) : f("", !0)]),
|
|
902
|
+
e.$slots.watermark ? (v(), p("div", tt, [x(e.$slots, "watermark", g(h({ isPrinting: C(Ct) || C(wt) || O.value || k.value })), void 0, !0)])) : f("", !0),
|
|
903
|
+
e.$slots.source ? (v(), p("div", {
|
|
904
|
+
key: 6,
|
|
905
|
+
ref_key: "source",
|
|
906
|
+
ref: ft,
|
|
907
|
+
dir: "auto"
|
|
908
|
+
}, [x(e.$slots, "source", {}, void 0, !0)], 512)) : f("", !0),
|
|
909
|
+
x(e.$slots, "skeleton", {}, () => [C(gt) ? (v(), d(le, { key: 0 })) : f("", !0)], !0)
|
|
910
|
+
], 44, Ie));
|
|
911
|
+
}
|
|
912
|
+
}, [["__scopeId", "data-v-4acb9815"]]);
|
|
913
|
+
//#endregion
|
|
914
|
+
export { Fe as n, nt as t };
|