vue-data-ui 3.20.3 → 3.20.4
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/dist/A11yDataTable-BCbtxMU6.js +45 -0
- package/dist/Arrow-D6j6ocXm.js +116 -0
- package/dist/BaseDraggableDialog-4hDW-Rj2.js +272 -0
- package/dist/BaseIcon-DfLoHNUj.js +502 -0
- package/dist/BaseLegendToggle-C_Db-y7s.js +56 -0
- package/dist/BaseScanner-Dr2a1Msy.js +27 -0
- package/dist/BaseZoomControls-CG7hI_1P.js +111 -0
- package/dist/ColorPicker-Bjwxnvfh.js +255 -0
- package/dist/DataTable-B--IN22e.js +150 -0
- package/dist/Legend-Cz2uQ5gs.js +114 -0
- package/dist/NonSvgPenAndPaper-gLNJ1Lmr.js +577 -0
- package/dist/PackageVersion-BYcZLGDG.js +11 -0
- package/dist/PenAndPaper-DqrClVfb.js +461 -0
- package/dist/RecursiveCircles-D6aDPmoe.js +117 -0
- package/dist/RecursiveLabels-D9rfID6q.js +56 -0
- package/dist/RecursiveLinks-BygcpDiT.js +78 -0
- package/dist/Shape-BPCJfphn.js +141 -0
- package/dist/Slicer-SHBj0VaV.js +1144 -0
- package/dist/SlicerPreview-DdihbUSJ.js +1668 -0
- package/dist/SparkTooltip-CfE6yCad.js +93 -0
- package/dist/Title-NWp4qB4K.js +87 -0
- package/dist/Tooltip-BENq327o.js +312 -0
- package/dist/UserOptions-C1NgoGu6.js +1411 -0
- package/dist/_plugin-vue_export-helper-B3ysoDQm.js +8 -0
- package/dist/canvas-lib-BOP_HS11.js +79 -0
- package/dist/components/arrow.js +2 -0
- package/dist/components/vue-ui-3d-bar.js +2 -0
- package/dist/components/vue-ui-accordion.js +2 -0
- package/dist/components/vue-ui-age-pyramid.js +2 -0
- package/dist/components/vue-ui-annotator.js +2 -0
- package/dist/components/vue-ui-bullet.js +2 -0
- package/dist/components/vue-ui-bump.js +2 -0
- package/dist/components/vue-ui-candlestick.js +2 -0
- package/dist/components/vue-ui-carousel-table.js +2 -0
- package/dist/components/vue-ui-chestnut.js +2 -0
- package/dist/components/vue-ui-chord.js +2 -0
- package/dist/components/vue-ui-circle-pack.js +2 -0
- package/dist/components/vue-ui-cursor.js +2 -0
- package/dist/components/vue-ui-dag.js +2 -0
- package/dist/components/vue-ui-dashboard.js +2 -0
- package/dist/components/vue-ui-digits.js +2 -0
- package/dist/components/vue-ui-donut-evolution.js +2 -0
- package/dist/components/vue-ui-donut.js +2 -0
- package/dist/components/vue-ui-dumbbell.js +2 -0
- package/dist/components/vue-ui-flow.js +2 -0
- package/dist/components/vue-ui-funnel.js +2 -0
- package/dist/components/vue-ui-galaxy.js +2 -0
- package/dist/components/vue-ui-gauge.js +2 -0
- package/dist/components/vue-ui-geo.js +2 -0
- package/dist/components/vue-ui-gizmo.js +2 -0
- package/dist/components/vue-ui-heatmap.js +2 -0
- package/dist/components/vue-ui-history-plot.js +2 -0
- package/dist/components/vue-ui-horizontal-bar.js +2 -0
- package/dist/components/vue-ui-icon.js +2 -0
- package/dist/components/vue-ui-kpi.js +2 -0
- package/dist/components/vue-ui-mini-loader.js +2 -0
- package/dist/components/vue-ui-molecule.js +2 -0
- package/dist/components/vue-ui-mood-radar.js +2 -0
- package/dist/components/vue-ui-nested-donuts.js +2 -0
- package/dist/components/vue-ui-onion.js +2 -0
- package/dist/components/vue-ui-parallel-coordinate-plot.js +2 -0
- package/dist/components/vue-ui-pattern-seed.js +2 -0
- package/dist/components/vue-ui-pattern.js +2 -0
- package/dist/components/vue-ui-quadrant.js +2 -0
- package/dist/components/vue-ui-quick-chart.js +2 -0
- package/dist/components/vue-ui-radar.js +2 -0
- package/dist/components/vue-ui-rating.js +2 -0
- package/dist/components/vue-ui-relation-circle.js +2 -0
- package/dist/components/vue-ui-ridgeline.js +2 -0
- package/dist/components/vue-ui-rings.js +2 -0
- package/dist/components/vue-ui-scatter.js +2 -0
- package/dist/components/vue-ui-skeleton.js +2 -0
- package/dist/components/vue-ui-smiley.js +2 -0
- package/dist/components/vue-ui-spark-trend.js +2 -0
- package/dist/components/vue-ui-sparkbar.js +2 -0
- package/dist/components/vue-ui-sparkgauge.js +2 -0
- package/dist/components/vue-ui-sparkhistogram.js +2 -0
- package/dist/components/vue-ui-sparkline.js +2 -0
- package/dist/components/vue-ui-sparkstackbar.js +2 -0
- package/dist/components/vue-ui-stackbar.js +2 -0
- package/dist/components/vue-ui-stackline.js +2 -0
- package/dist/components/vue-ui-strip-plot.js +2 -0
- package/dist/components/vue-ui-table-heatmap.js +2 -0
- package/dist/components/vue-ui-table-sparkline.js +2 -0
- package/dist/components/vue-ui-table.js +2 -0
- package/dist/components/vue-ui-thermometer.js +2 -0
- package/dist/components/vue-ui-timer.js +2 -0
- package/dist/components/vue-ui-tiremarks.js +2 -0
- package/dist/components/vue-ui-treemap.js +2 -0
- package/dist/components/vue-ui-vertical-bar.js +2 -0
- package/dist/components/vue-ui-waffle.js +2 -0
- package/dist/components/vue-ui-wheel.js +2 -0
- package/dist/components/vue-ui-word-cloud.js +2 -0
- package/dist/components/vue-ui-world.js +2 -0
- package/dist/components/vue-ui-xy-canvas.js +2 -0
- package/dist/components/vue-ui-xy.js +2 -0
- package/dist/dom-to-png-BYtB4BF3.js +237 -0
- package/dist/exposedLib-CI8ji8G-.js +19 -0
- package/dist/geoProjections-Czak6Jn1.js +145 -0
- package/dist/img-1cKsci8e.js +74 -0
- package/dist/labelUtils-CUctkYoA.js +19 -0
- package/dist/lib-DUeYQsS0.js +1882 -0
- package/dist/llms.txt +232 -0
- package/dist/patternUtils-CS7hn6at.js +258 -0
- package/dist/pdf-D0eZ99cP.js +90 -0
- package/dist/rolldown-runtime-Dy4uBu1J.js +11 -0
- package/dist/style.css +2 -0
- package/dist/types/arrow.d.ts +4 -0
- package/dist/types/utils.d.ts +551 -0
- package/dist/types/vue-data-ui.d.ts +17190 -0
- package/dist/types/vue-ui-3d-bar.d.ts +93 -0
- package/dist/types/vue-ui-accordion.d.ts +11 -0
- package/dist/types/vue-ui-age-pyramid.d.ts +108 -0
- package/dist/types/vue-ui-annotator.d.ts +34 -0
- package/dist/types/vue-ui-bullet.d.ts +85 -0
- package/dist/types/vue-ui-bump.d.ts +92 -0
- package/dist/types/vue-ui-candlestick.d.ts +106 -0
- package/dist/types/vue-ui-carousel-table.d.ts +59 -0
- package/dist/types/vue-ui-chestnut.d.ts +98 -0
- package/dist/types/vue-ui-chord.d.ts +110 -0
- package/dist/types/vue-ui-circle-pack.d.ts +126 -0
- package/dist/types/vue-ui-cursor.d.ts +9 -0
- package/dist/types/vue-ui-dag.d.ts +125 -0
- package/dist/types/vue-ui-dashboard.d.ts +68 -0
- package/dist/types/vue-ui-digits.d.ts +12 -0
- package/dist/types/vue-ui-donut-evolution.d.ts +98 -0
- package/dist/types/vue-ui-donut.d.ts +123 -0
- package/dist/types/vue-ui-dumbbell.d.ts +94 -0
- package/dist/types/vue-ui-flow.d.ts +106 -0
- package/dist/types/vue-ui-funnel.d.ts +79 -0
- package/dist/types/vue-ui-galaxy.d.ts +114 -0
- package/dist/types/vue-ui-gauge.d.ts +89 -0
- package/dist/types/vue-ui-geo.d.ts +94 -0
- package/dist/types/vue-ui-gizmo.d.ts +22 -0
- package/dist/types/vue-ui-heatmap.d.ts +101 -0
- package/dist/types/vue-ui-history-plot.d.ts +114 -0
- package/dist/types/vue-ui-horizontal-bar.d.ts +116 -0
- package/dist/types/vue-ui-icon.d.ts +15 -0
- package/dist/types/vue-ui-kpi.d.ts +25 -0
- package/dist/types/vue-ui-mini-loader.d.ts +15 -0
- package/dist/types/vue-ui-molecule.d.ts +112 -0
- package/dist/types/vue-ui-mood-radar.d.ts +92 -0
- package/dist/types/vue-ui-nested-donuts.d.ts +111 -0
- package/dist/types/vue-ui-onion.d.ts +106 -0
- package/dist/types/vue-ui-parallel-coordinate-plot.d.ts +125 -0
- package/dist/types/vue-ui-pattern-seed.d.ts +14 -0
- package/dist/types/vue-ui-pattern.d.ts +15 -0
- package/dist/types/vue-ui-quadrant.d.ts +125 -0
- package/dist/types/vue-ui-quick-chart.d.ts +108 -0
- package/dist/types/vue-ui-radar.d.ts +116 -0
- package/dist/types/vue-ui-rating.d.ts +42 -0
- package/dist/types/vue-ui-relation-circle.d.ts +92 -0
- package/dist/types/vue-ui-ridgeline.d.ts +106 -0
- package/dist/types/vue-ui-rings.d.ts +98 -0
- package/dist/types/vue-ui-scatter.d.ts +97 -0
- package/dist/types/vue-ui-skeleton.d.ts +11 -0
- package/dist/types/vue-ui-smiley.d.ts +28 -0
- package/dist/types/vue-ui-spark-trend.d.ts +19 -0
- package/dist/types/vue-ui-sparkbar.d.ts +49 -0
- package/dist/types/vue-ui-sparkgauge.d.ts +28 -0
- package/dist/types/vue-ui-sparkhistogram.d.ts +46 -0
- package/dist/types/vue-ui-sparkline.d.ts +59 -0
- package/dist/types/vue-ui-sparkstackbar.d.ts +60 -0
- package/dist/types/vue-ui-stackbar.d.ts +118 -0
- package/dist/types/vue-ui-stackline.d.ts +114 -0
- package/dist/types/vue-ui-strip-plot.d.ts +96 -0
- package/dist/types/vue-ui-table-heatmap.d.ts +62 -0
- package/dist/types/vue-ui-table-sparkline.d.ts +53 -0
- package/dist/types/vue-ui-table.d.ts +38 -0
- package/dist/types/vue-ui-thermometer.d.ts +70 -0
- package/dist/types/vue-ui-timer.d.ts +49 -0
- package/dist/types/vue-ui-tiremarks.d.ts +70 -0
- package/dist/types/vue-ui-treemap.d.ts +104 -0
- package/dist/types/vue-ui-vertical-bar.d.ts +22 -0
- package/dist/types/vue-ui-waffle.d.ts +101 -0
- package/dist/types/vue-ui-wheel.d.ts +70 -0
- package/dist/types/vue-ui-word-cloud.d.ts +97 -0
- package/dist/types/vue-ui-world.d.ts +98 -0
- package/dist/types/vue-ui-xy-canvas.d.ts +101 -0
- package/dist/types/vue-ui-xy.d.ts +146 -0
- package/dist/useAutoSizeLabelsInsideViewbox-BIVntRZp.js +50 -0
- package/dist/useChartAccessibility-DYqac8yF.js +12 -0
- package/dist/useConfig-DAyQk86L.js +7479 -0
- package/dist/useFitSvgText-CT3nmlaS.js +63 -0
- package/dist/useNestedProp-CNcoy38D.js +10 -0
- package/dist/useObjectBindings-BI7hP-BC.js +189 -0
- package/dist/usePanZoom-CYU3B4T3.js +157 -0
- package/dist/usePrefersMotion-BC-CsqR1.js +15 -0
- package/dist/usePrinter-C1Gqt_Sp.js +49 -0
- package/dist/useResponsive-BfnK0KxU.js +19 -0
- package/dist/useStableElementSize-C7KADDKj.js +77 -0
- package/dist/useSvgExport-SVIsDot8.js +755 -0
- package/dist/useTableResponsive-B24Uwt2E.js +24 -0
- package/dist/useThemeCheck-C43Tcqmk.js +24 -0
- package/dist/useTimeLabelCollider-AEcY4Ioe.js +57 -0
- package/dist/useTimeLabels-BmBRv27Y.js +272 -0
- package/dist/useUserOptionState-DK-_1ddE.js +15 -0
- package/dist/utils.js +28 -0
- package/dist/vClickOutside-DUrZWttG.js +13 -0
- package/dist/vue-data-ui-DuLO91Bk.js +274 -0
- package/dist/vue-data-ui.js +76 -0
- package/dist/vue-ui-3d-bar-DMDfraIo.js +1757 -0
- package/dist/vue-ui-accordion-Dw4MHKVB.js +81 -0
- package/dist/vue-ui-age-pyramid-CN68d9su.js +1238 -0
- package/dist/vue-ui-annotator-DLPUAKlm.js +2899 -0
- package/dist/vue-ui-bullet-V21vyb4T.js +710 -0
- package/dist/vue-ui-bump-BvnBJcx0.js +1249 -0
- package/dist/vue-ui-candlestick-DaIeT5kU.js +1826 -0
- package/dist/vue-ui-carousel-table-BBTm1Etq.js +455 -0
- package/dist/vue-ui-chestnut-BLtE39N7.js +2010 -0
- package/dist/vue-ui-chord-D1UVle9f.js +1391 -0
- package/dist/vue-ui-circle-pack-BDDVjuT1.js +1608 -0
- package/dist/vue-ui-cursor-CiU4ttGN.js +283 -0
- package/dist/vue-ui-dag-D2U673ns.js +2909 -0
- package/dist/vue-ui-dashboard-JK7v_bwo.js +513 -0
- package/dist/vue-ui-digits-D5b3eJ5q.js +209 -0
- package/dist/vue-ui-donut-BYf4FbjI.js +2410 -0
- package/dist/vue-ui-donut-evolution-Id7YwbiG.js +1510 -0
- package/dist/vue-ui-dumbbell-CToh2l5g.js +1530 -0
- package/dist/vue-ui-flow-CmBI0IKa.js +1235 -0
- package/dist/vue-ui-funnel-B67L6mTB.js +777 -0
- package/dist/vue-ui-galaxy-CFZP36s4.js +1077 -0
- package/dist/vue-ui-gauge-sZxKMn7t.js +920 -0
- package/dist/vue-ui-geo-DK8fAoZd.js +1516 -0
- package/dist/vue-ui-gizmo-DsJtcBEf.js +225 -0
- package/dist/vue-ui-heatmap-B87-9zpu.js +1568 -0
- package/dist/vue-ui-history-plot-Dhv-zMSR.js +1554 -0
- package/dist/vue-ui-horizontal-bar-BAT7IYhL.js +1681 -0
- package/dist/vue-ui-kpi-BggezxVU.js +96 -0
- package/dist/vue-ui-mini-loader-CyqBt2g4.js +125 -0
- package/dist/vue-ui-molecule-uXC5g9qp.js +925 -0
- package/dist/vue-ui-mood-radar-BYoxNRMc.js +1148 -0
- package/dist/vue-ui-nested-donuts-BVniVpDM.js +1487 -0
- package/dist/vue-ui-onion-CWzeZ5Ak.js +1200 -0
- package/dist/vue-ui-parallel-coordinate-plot-Dbx6W4ZW.js +1416 -0
- package/dist/vue-ui-pattern-DKozfnVn.js +154 -0
- package/dist/vue-ui-pattern-seed-BB1honLm.js +61 -0
- package/dist/vue-ui-quadrant-BrPLv-sz.js +1978 -0
- package/dist/vue-ui-quick-chart-B0S_4DeW.js +2469 -0
- package/dist/vue-ui-radar-CUo6FWXZ.js +1229 -0
- package/dist/vue-ui-rating-BG4lf1z8.js +343 -0
- package/dist/vue-ui-relation-circle-2a6IZgKe.js +924 -0
- package/dist/vue-ui-ridgeline-DnQBrx71.js +1622 -0
- package/dist/vue-ui-rings-BibWJNh2.js +1246 -0
- package/dist/vue-ui-scatter-8srfWwTp.js +2413 -0
- package/dist/vue-ui-skeleton-BoKB7qJM.js +2556 -0
- package/dist/vue-ui-smiley-G89TxRU-.js +356 -0
- package/dist/vue-ui-spark-trend-Cq4pIgWr.js +438 -0
- package/dist/vue-ui-sparkbar-CgFKnZEF.js +393 -0
- package/dist/vue-ui-sparkgauge-ea-PGnBC.js +255 -0
- package/dist/vue-ui-sparkhistogram-BfgnG41U.js +560 -0
- package/dist/vue-ui-sparkline-CDOa3xh8.js +1507 -0
- package/dist/vue-ui-sparkstackbar-DEsSr92Z.js +662 -0
- package/dist/vue-ui-stackbar-BeegxXk_.js +2270 -0
- package/dist/vue-ui-stackline-_G-cbZRe.js +2398 -0
- package/dist/vue-ui-strip-plot-VasAk496.js +1340 -0
- package/dist/vue-ui-table-DysBVxy5.js +1338 -0
- package/dist/vue-ui-table-heatmap-CCGjbSzQ.js +344 -0
- package/dist/vue-ui-table-sparkline-DQduGRPm.js +707 -0
- package/dist/vue-ui-thermometer-1l6KUpS8.js +763 -0
- package/dist/vue-ui-timer-Db2d4LNp.js +439 -0
- package/dist/vue-ui-tiremarks-YtFZjYFp.js +552 -0
- package/dist/vue-ui-treemap-DxwEGZ9p.js +1587 -0
- package/dist/vue-ui-waffle-C9bzj7pV.js +1362 -0
- package/dist/vue-ui-wheel-DKzocpS-.js +885 -0
- package/dist/vue-ui-word-cloud-DkNU1GFp.js +1656 -0
- package/dist/vue-ui-world-DhnfDaFE.js +14264 -0
- package/dist/vue-ui-xy-BzhW8pHi.js +4578 -0
- package/dist/vue-ui-xy-canvas-BUPnRZ3C.js +1787 -0
- package/dist/vue_ui_3d_bar-C4R7o-yX.js +185 -0
- package/dist/vue_ui_age_pyramid-BY6c-oX_.js +301 -0
- package/dist/vue_ui_bullet-ClzdLoOv.js +186 -0
- package/dist/vue_ui_bump-Vl-zYAtG.js +201 -0
- package/dist/vue_ui_candlestick-J8jmJvxP.js +374 -0
- package/dist/vue_ui_chestnut-D2oUhad6.js +305 -0
- package/dist/vue_ui_chord-DPfS1Umc.js +275 -0
- package/dist/vue_ui_circle_pack-DZC_rdfn.js +172 -0
- package/dist/vue_ui_dag-TsJ_azQq.js +258 -0
- package/dist/vue_ui_donut-BDGqG07h.js +358 -0
- package/dist/vue_ui_donut_evolution-D1yAAIHr.js +717 -0
- package/dist/vue_ui_dumbbell-Bfe_jFyi.js +304 -0
- package/dist/vue_ui_flow-BewZjjKG.js +238 -0
- package/dist/vue_ui_funnel-_Og4EEkO.js +234 -0
- package/dist/vue_ui_galaxy-Ig0cc1_h.js +265 -0
- package/dist/vue_ui_gauge-Cf1RZc9q.js +178 -0
- package/dist/vue_ui_geo-B8TODs-G.js +248 -0
- package/dist/vue_ui_heatmap-B2BBBSWG.js +319 -0
- package/dist/vue_ui_history_plot-CuN63VEc.js +413 -0
- package/dist/vue_ui_horizontal_bar-C4J4QzXf.js +341 -0
- package/dist/vue_ui_molecule-CO9L59SF.js +231 -0
- package/dist/vue_ui_mood_radar-BA6LAKhk.js +281 -0
- package/dist/vue_ui_nested_donuts-B8csIoVO.js +273 -0
- package/dist/vue_ui_onion-1FTFFS46.js +293 -0
- package/dist/vue_ui_parallel_coordinate_plot-CBiOBira.js +278 -0
- package/dist/vue_ui_quadrant-CDSTKTJz.js +428 -0
- package/dist/vue_ui_quick_chart-mZBdml3Z.js +139 -0
- package/dist/vue_ui_radar-jafTED5j.js +306 -0
- package/dist/vue_ui_relation_circle-D0p4mXmv.js +98 -0
- package/dist/vue_ui_ridgeline-VM8_mx4J.js +767 -0
- package/dist/vue_ui_rings-BVgD2aMn.js +320 -0
- package/dist/vue_ui_scatter-I0POnicu.js +479 -0
- package/dist/vue_ui_spark_trend-DxVmpkmC.js +82 -0
- package/dist/vue_ui_sparkbar-z6qO--Kf.js +64 -0
- package/dist/vue_ui_sparkgauge-BX1MS3bA.js +90 -0
- package/dist/vue_ui_sparkhistogram-BRgvKUH6.js +123 -0
- package/dist/vue_ui_sparkline-auZhap6Y.js +151 -0
- package/dist/vue_ui_sparkstackbar-BOjuQnZd.js +175 -0
- package/dist/vue_ui_stackbar-COOrQQdK.js +412 -0
- package/dist/vue_ui_stackline-DQqKPA9z.js +460 -0
- package/dist/vue_ui_strip_plot-CtJe8_gq.js +301 -0
- package/dist/vue_ui_table_heatmap-w8vx5k6f.js +80 -0
- package/dist/vue_ui_table_sparkline-DAbkUrNz.js +124 -0
- package/dist/vue_ui_thermometer-DxgqWKlE.js +123 -0
- package/dist/vue_ui_tiremarks-CdEPieWV.js +122 -0
- package/dist/vue_ui_treemap-DoEtkRN6.js +328 -0
- package/dist/vue_ui_vertical_bar-CP-MKz1j.js +247 -0
- package/dist/vue_ui_waffle-DIARFc7g.js +292 -0
- package/dist/vue_ui_wheel-DZ_nR--t.js +133 -0
- package/dist/vue_ui_word_cloud-C-qIMNLu.js +254 -0
- package/dist/vue_ui_xy-BLUkWEAm.js +482 -0
- package/dist/vue_ui_xy_canvas-Cb6dg3eK.js +408 -0
- package/package.json +120 -120
|
@@ -0,0 +1,924 @@
|
|
|
1
|
+
import { t as e } from "./rolldown-runtime-Dy4uBu1J.js";
|
|
2
|
+
import { Bt as t, Ct as n, Et as r, G as i, H as a, Rt 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-DUeYQsS0.js";
|
|
3
|
+
import { t as oe } from "./useConfig-DAyQk86L.js";
|
|
4
|
+
import { t as se } from "./usePrinter-C1Gqt_Sp.js";
|
|
5
|
+
import { n as ce, t as le } from "./BaseScanner-Dr2a1Msy.js";
|
|
6
|
+
import { t as ue } from "./useSvgExport-SVIsDot8.js";
|
|
7
|
+
import { t as c } from "./useNestedProp-CNcoy38D.js";
|
|
8
|
+
import { t as de } from "./useThemeCheck-C43Tcqmk.js";
|
|
9
|
+
import { t as fe } from "./img-1cKsci8e.js";
|
|
10
|
+
import { n as pe } from "./Title-NWp4qB4K.js";
|
|
11
|
+
import { t as me } from "./_plugin-vue_export-helper-B3ysoDQm.js";
|
|
12
|
+
import { c as he } from "./canvas-lib-BOP_HS11.js";
|
|
13
|
+
import { t as ge } from "./useResponsive-BfnK0KxU.js";
|
|
14
|
+
import { t as _e } from "./A11yDataTable-BCbtxMU6.js";
|
|
15
|
+
import { t as ve } from "./useUserOptionState-DK-_1ddE.js";
|
|
16
|
+
import { t as ye } from "./useChartAccessibility-DYqac8yF.js";
|
|
17
|
+
import { t as be } from "./useAutoSizeLabelsInsideViewbox-BIVntRZp.js";
|
|
18
|
+
import { t as xe } from "./vue_ui_relation_circle-D0p4mXmv.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 w, withCtx as T } from "vue";
|
|
20
|
+
//#region src/components/vue-ui-relation-circle.vue
|
|
21
|
+
var Pe = /* @__PURE__ */ e({ default: () => tt }), Fe = ["id"], Ie = ["id"], Le = { style: { position: "relative" } }, Re = [
|
|
22
|
+
"xmlns",
|
|
23
|
+
"viewBox",
|
|
24
|
+
"aria-describedby"
|
|
25
|
+
], ze = ["width", "height"], Be = [
|
|
26
|
+
"cx",
|
|
27
|
+
"cy",
|
|
28
|
+
"r",
|
|
29
|
+
"stroke",
|
|
30
|
+
"stroke-width"
|
|
31
|
+
], Ve = { key: 1 }, He = [
|
|
32
|
+
"stroke",
|
|
33
|
+
"d",
|
|
34
|
+
"stroke-width"
|
|
35
|
+
], Ue = { style: { "pointer-events": "none" } }, We = [
|
|
36
|
+
"cx",
|
|
37
|
+
"cy",
|
|
38
|
+
"fill",
|
|
39
|
+
"r",
|
|
40
|
+
"stroke"
|
|
41
|
+
], Ge = [
|
|
42
|
+
"x",
|
|
43
|
+
"y",
|
|
44
|
+
"fill",
|
|
45
|
+
"font-size"
|
|
46
|
+
], Ke = { key: 2 }, qe = [
|
|
47
|
+
"stroke",
|
|
48
|
+
"stroke-width",
|
|
49
|
+
"x1",
|
|
50
|
+
"x2",
|
|
51
|
+
"y1",
|
|
52
|
+
"y2"
|
|
53
|
+
], Je = { style: { "pointer-events": "none" } }, Ye = [
|
|
54
|
+
"cx",
|
|
55
|
+
"cy",
|
|
56
|
+
"fill",
|
|
57
|
+
"r",
|
|
58
|
+
"stroke"
|
|
59
|
+
], Xe = [
|
|
60
|
+
"x",
|
|
61
|
+
"y",
|
|
62
|
+
"fill",
|
|
63
|
+
"font-size"
|
|
64
|
+
], Ze = [
|
|
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
|
+
], Qe = [
|
|
77
|
+
"cx",
|
|
78
|
+
"cy",
|
|
79
|
+
"fill",
|
|
80
|
+
"stroke",
|
|
81
|
+
"r",
|
|
82
|
+
"onClick",
|
|
83
|
+
"onMouseenter",
|
|
84
|
+
"onMouseleave"
|
|
85
|
+
], $e = {
|
|
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
|
+
}, et = {
|
|
96
|
+
key: 5,
|
|
97
|
+
class: "vue-data-ui-watermark"
|
|
98
|
+
}, tt = /* @__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: Pe }) {
|
|
116
|
+
Ne((e) => ({
|
|
117
|
+
ab5e8c6c: jt.value,
|
|
118
|
+
v309156a9: At.value,
|
|
119
|
+
v6c0f80cb: Mt.value
|
|
120
|
+
}));
|
|
121
|
+
let tt = Te(() => import("./PenAndPaper-DqrClVfb.js").then((e) => e.t)), nt = Te(() => import("./UserOptions-C1NgoGu6.js").then((e) => e.n)), rt = Te(() => import("./PackageVersion-BYcZLGDG.js").then((e) => e.t)), { vue_ui_relation_circle: it } = oe(), { isThemeValid: at, warnInvalidTheme: ot } = de(), E = e, st = Pe, ct = u(() => !!E.dataset && Object.keys(E.dataset).length), D = y(a()), lt = y(0), O = y(null), ut = y(null), dt = y(null), ft = y(null), pt = y(0), k = y(!1), A = y(!1), j = y(null), M = y(!1), N = y(xt()), P = u(() => N.value.userOptions.useCursorPointer), mt = u(() => t({
|
|
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: N.value.skeletonConfig ?? {}
|
|
137
|
+
})), { loading: ht, FINAL_DATASET: gt, manualLoading: _t } = ce({
|
|
138
|
+
...Me(E),
|
|
139
|
+
FINAL_CONFIG: N,
|
|
140
|
+
prepareConfig: xt,
|
|
141
|
+
skeletonDataset: E.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: t({
|
|
186
|
+
defaultConfig: N.value,
|
|
187
|
+
userConfig: mt.value
|
|
188
|
+
})
|
|
189
|
+
}), { userOptionsVisible: vt, setUserOptionsVisibility: yt, keepUserOptionState: bt } = ve({ config: N.value }), { svgRef: F } = ye({ config: N.value.style.title });
|
|
190
|
+
function xt() {
|
|
191
|
+
let e = c({
|
|
192
|
+
userConfig: E.config,
|
|
193
|
+
defaultConfig: it
|
|
194
|
+
}), t = e.theme;
|
|
195
|
+
if (!t) return e;
|
|
196
|
+
if (!at.value(e)) return ot(e), e;
|
|
197
|
+
let n = c({
|
|
198
|
+
userConfig: xe[t] || E.config,
|
|
199
|
+
defaultConfig: e
|
|
200
|
+
}), i = c({
|
|
201
|
+
userConfig: E.config,
|
|
202
|
+
defaultConfig: n
|
|
203
|
+
});
|
|
204
|
+
return {
|
|
205
|
+
...i,
|
|
206
|
+
customPalette: i.customPalette.length ? i.customPalette : o[t] || r
|
|
207
|
+
};
|
|
208
|
+
}
|
|
209
|
+
w(() => E.config, (e) => {
|
|
210
|
+
N.value = xt(), vt.value = !N.value.userOptions.showOnChartHover, V.value = N.value.style.size, H.value = N.value.style.weightLabels.size, U.value = N.value.style.plot.radius, W.value = N.value.style.labels.fontSize, G.value.height = N.value.style.size, G.value.width = N.value.style.size, Pt(), pt.value += 1;
|
|
211
|
+
}, { deep: !0 }), w(() => E.dataset, (e) => {
|
|
212
|
+
Array.isArray(e) && e.length > 0 && (_t.value = !1);
|
|
213
|
+
}, { deep: !0 });
|
|
214
|
+
let { isPrinting: St, isImaging: Ct, generatePdf: wt, generateImage: Tt } = se({
|
|
215
|
+
elementId: `relation_circle_${D.value}`,
|
|
216
|
+
fileName: N.value.style.title.text || "vue-ui-relation-circle",
|
|
217
|
+
options: N.value.userOptions.print
|
|
218
|
+
}), Et = u(() => N.value.userOptions.show && !N.value.style.title.text), Dt = u(() => ie(N.value.customPalette)), I = y([]), L = y([]), R = y({}), z = y([]), Ot = y(0), B = u(() => gt.value.slice(0, N.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
|
+
w(B, () => {
|
|
227
|
+
I.value = [], L.value = [], Lt(), zt();
|
|
228
|
+
});
|
|
229
|
+
let V = y(N.value.style.size), H = y(N.value.style.weightLabels.size), U = y(N.value.style.plot.radius), W = y(N.value.style.labels.fontSize), G = y({
|
|
230
|
+
height: N.value.style.size,
|
|
231
|
+
width: N.value.style.size
|
|
232
|
+
}), K = u({
|
|
233
|
+
get() {
|
|
234
|
+
return V.value * N.value.style.circle.radiusProportion;
|
|
235
|
+
},
|
|
236
|
+
set(e) {
|
|
237
|
+
return e;
|
|
238
|
+
}
|
|
239
|
+
}), kt = u(() => N.value.style.links.curved), At = u(() => `${N.value.style.animation.speedMs}ms`), jt = u(() => K.value * 2), Mt = u(() => K.value * 4), q = je(null), J = je(null);
|
|
240
|
+
Ae(() => {
|
|
241
|
+
Pt(), document.getElementById(`relation_circle_${D.value}`).addEventListener("click", It);
|
|
242
|
+
});
|
|
243
|
+
let Nt = u(() => N.value.debug);
|
|
244
|
+
function Pt() {
|
|
245
|
+
if (n(E.dataset) ? (ee({
|
|
246
|
+
componentName: "VueUiRelationCircle",
|
|
247
|
+
type: "dataset",
|
|
248
|
+
debug: Nt.value
|
|
249
|
+
}), _t.value = !0) : E.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: Nt.value
|
|
265
|
+
});
|
|
266
|
+
});
|
|
267
|
+
}), n(E.dataset) || (_t.value = N.value.loading), N.value.responsive) {
|
|
268
|
+
let e = he(() => {
|
|
269
|
+
let { width: e, height: t } = ge({
|
|
270
|
+
chart: O.value,
|
|
271
|
+
title: N.value.style.title.text ? ut.value : null,
|
|
272
|
+
source: dt.value,
|
|
273
|
+
noTitle: ft.value
|
|
274
|
+
});
|
|
275
|
+
requestAnimationFrame(() => {
|
|
276
|
+
V.value = Math.min(e, t), G.value.width = Math.max(.1, e), G.value.height = Math.max(.1, t - 12), K.value = V.value * N.value.style.circle.radiusProportion, I.value = [], L.value = [], Lt(), zt(), Ft(), N.value.responsiveProportionalSizing ? (H.value = ae({
|
|
277
|
+
relator: V.value,
|
|
278
|
+
adjuster: N.value.style.size,
|
|
279
|
+
source: N.value.style.weightLabels.size,
|
|
280
|
+
threshold: 6,
|
|
281
|
+
fallback: 6
|
|
282
|
+
}), U.value = ae({
|
|
283
|
+
relator: V.value,
|
|
284
|
+
adjuster: N.value.style.size,
|
|
285
|
+
source: N.value.style.plot.radius,
|
|
286
|
+
threshold: 1,
|
|
287
|
+
fallback: 1
|
|
288
|
+
}), W.value = ae({
|
|
289
|
+
relator: V.value,
|
|
290
|
+
adjuster: N.value.style.size,
|
|
291
|
+
source: N.value.style.labels.fontSize,
|
|
292
|
+
threshold: 6,
|
|
293
|
+
fallback: 6
|
|
294
|
+
})) : (H.value = N.value.style.weightLabels.size, U.value = N.value.style.plot.radius, W.value = N.value.style.labels.fontSize);
|
|
295
|
+
});
|
|
296
|
+
});
|
|
297
|
+
q.value && (J.value && q.value.unobserve(J.value), q.value.disconnect()), q.value = new ResizeObserver(e), J.value = O.value.parentNode, q.value.observe(J.value);
|
|
298
|
+
} else I.value = [], L.value = [], Lt(), zt();
|
|
299
|
+
Ft();
|
|
300
|
+
}
|
|
301
|
+
ke(() => {
|
|
302
|
+
document.getElementById(`relation_circle_${D.value}`).removeEventListener("click", It), q.value && (J.value && q.value.unobserve(J.value), q.value.disconnect());
|
|
303
|
+
});
|
|
304
|
+
let { autoSizeLabels: Ft } = be({
|
|
305
|
+
svgRef: F,
|
|
306
|
+
fontSize: N.value.style.labels.fontSize,
|
|
307
|
+
minFontSize: N.value.style.labels.minFontSize,
|
|
308
|
+
sizeRef: W,
|
|
309
|
+
labelClass: ".vue-ui-relation-circle-legend"
|
|
310
|
+
});
|
|
311
|
+
function It(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") || (R.value = {}, z.value = []);
|
|
314
|
+
}
|
|
315
|
+
function Lt() {
|
|
316
|
+
let e = 6.28319 / B.value.length, t = 360 / B.value.length, n = 0, i = 0;
|
|
317
|
+
B.value.forEach((a, o) => {
|
|
318
|
+
let ee = a.weights.reduce((e, t) => e + t, 0), s = K.value * Math.cos(n) + G.value.width / 2, te = K.value * Math.sin(n) + G.value.height / 2 + N.value.style.circle.offsetY;
|
|
319
|
+
I.value.push({
|
|
320
|
+
x: s,
|
|
321
|
+
y: te,
|
|
322
|
+
...a,
|
|
323
|
+
color: a.color ? a.color : Dt.value[o] ? Dt.value[o] : r[o],
|
|
324
|
+
regAngle: i,
|
|
325
|
+
totalWeight: ee
|
|
326
|
+
}), n += e, i += t;
|
|
327
|
+
});
|
|
328
|
+
}
|
|
329
|
+
function Rt(e, t) {
|
|
330
|
+
return {
|
|
331
|
+
x: (e.x + t.x) / 2,
|
|
332
|
+
y: (e.y + t.y) / 2
|
|
333
|
+
};
|
|
334
|
+
}
|
|
335
|
+
function zt() {
|
|
336
|
+
L.value = [], I.value.forEach((e) => {
|
|
337
|
+
I.value.filter((t) => t.relations.includes(e.id)).forEach((t, n) => {
|
|
338
|
+
let r = t.relations.indexOf(e.id);
|
|
339
|
+
L.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: Rt({
|
|
349
|
+
x: e.x,
|
|
350
|
+
y: e.y
|
|
351
|
+
}, {
|
|
352
|
+
x: t.x,
|
|
353
|
+
y: t.y
|
|
354
|
+
}),
|
|
355
|
+
midPointBezier: Bt({
|
|
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 Bt(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: G.value.width / 2,
|
|
378
|
+
y: G.value.height / 2 + N.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 Vt = u(() => Math.max(...L.value.map((e) => e.weight)));
|
|
386
|
+
function Ht(e) {
|
|
387
|
+
return Object.hasOwn(R.value, "x") ? z.value.includes(e.id) ? "opacity:1" : "opacity:0.1" : "opacity:1";
|
|
388
|
+
}
|
|
389
|
+
function Y(e) {
|
|
390
|
+
return e.colorSource;
|
|
391
|
+
}
|
|
392
|
+
function Ut(e) {
|
|
393
|
+
return Object.hasOwn(R.value, "x") ? z.value.includes(e.id) && e.relationId === `${e.id}_${R.value.id}` || e.relationId === `${R.value.id}_${e.id}` ? `opacity:1;stroke-width:${Qt(e)}` : "opacity: 0" : "opacity: 1";
|
|
394
|
+
}
|
|
395
|
+
function X(e) {
|
|
396
|
+
return Object.hasOwn(R.value, "x") ? !!(z.value.includes(e.id) && e.relationId === `${e.id}_${R.value.id}` || e.relationId === `${R.value.id}_${e.id}`) : !1;
|
|
397
|
+
}
|
|
398
|
+
function Wt(e) {
|
|
399
|
+
return e.regAngle > 90 && e.regAngle < 270 ? "end" : "start";
|
|
400
|
+
}
|
|
401
|
+
function Gt(e) {
|
|
402
|
+
return e.regAngle > 90 && e.regAngle < 270 ? e.x - 5 : e.x + 5;
|
|
403
|
+
}
|
|
404
|
+
function Kt(e) {
|
|
405
|
+
return Object.hasOwn(R.value, "x") ? R.value.id === e.id || z.value.includes(e.id) ? "opacity:1" : "opacity:0.2" : "opacity:1";
|
|
406
|
+
}
|
|
407
|
+
function qt(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 Z = y(null);
|
|
411
|
+
function Jt(e, t) {
|
|
412
|
+
Z.value = t, j.value = t, N.value.events.datapointEnter && N.value.events.datapointEnter({
|
|
413
|
+
datapoint: e,
|
|
414
|
+
seriesIndex: t
|
|
415
|
+
});
|
|
416
|
+
}
|
|
417
|
+
function Yt(e, t) {
|
|
418
|
+
Z.value = null, M.value || (j.value = null), N.value.events.datapointLeave && N.value.events.datapointLeave({
|
|
419
|
+
datapoint: e,
|
|
420
|
+
seriesIndex: t
|
|
421
|
+
});
|
|
422
|
+
}
|
|
423
|
+
function Xt(e, t) {
|
|
424
|
+
e && (N.value.events.datapointClick && N.value.events.datapointClick({
|
|
425
|
+
datapoint: e,
|
|
426
|
+
seriesIndex: t
|
|
427
|
+
}), Ot.value = 360 - e.regAngle, R.value.id && e.id === R.value.id ? (R.value = {}, z.value = []) : (R.value = e, z.value = [...e.relations]));
|
|
428
|
+
}
|
|
429
|
+
function Zt(e, t) {
|
|
430
|
+
j.value = t, Xt(e, t);
|
|
431
|
+
}
|
|
432
|
+
function Qt(e) {
|
|
433
|
+
let t = e.weight / Vt.value * N.value.style.links.maxWidth;
|
|
434
|
+
return Math.max(.3, t);
|
|
435
|
+
}
|
|
436
|
+
let Q = y(!1);
|
|
437
|
+
function $t(e) {
|
|
438
|
+
Q.value = e, lt.value += 1;
|
|
439
|
+
}
|
|
440
|
+
let $ = y(!1);
|
|
441
|
+
function en() {
|
|
442
|
+
$.value = !$.value;
|
|
443
|
+
}
|
|
444
|
+
async function tn({ scale: e = 2 } = {}) {
|
|
445
|
+
if (!O.value) return;
|
|
446
|
+
let { width: t, height: n } = O.value.getBoundingClientRect(), r = t / n, { imageUri: i, base64: a } = await fe({
|
|
447
|
+
domElement: O.value,
|
|
448
|
+
base64: !0,
|
|
449
|
+
img: !0,
|
|
450
|
+
scale: e
|
|
451
|
+
});
|
|
452
|
+
return {
|
|
453
|
+
imageUri: i,
|
|
454
|
+
base64: a,
|
|
455
|
+
title: N.value.style.title.text,
|
|
456
|
+
width: t,
|
|
457
|
+
height: n,
|
|
458
|
+
aspectRatio: r
|
|
459
|
+
};
|
|
460
|
+
}
|
|
461
|
+
let nn = u(() => N.value.style.backgroundColor), { exportSvg: rn, getSvg: an } = ue({
|
|
462
|
+
svg: F,
|
|
463
|
+
title: u(() => N.value.style.title),
|
|
464
|
+
backgroundColor: nn
|
|
465
|
+
});
|
|
466
|
+
async function on({ isCb: e }) {
|
|
467
|
+
A.value = !0, await De();
|
|
468
|
+
try {
|
|
469
|
+
if (e) {
|
|
470
|
+
let { blob: e, url: t, text: n, dataUrl: r } = await an();
|
|
471
|
+
await Promise.resolve(N.value.userOptions.callbacks.svg({
|
|
472
|
+
blob: e,
|
|
473
|
+
url: t,
|
|
474
|
+
text: n,
|
|
475
|
+
dataUrl: r
|
|
476
|
+
}));
|
|
477
|
+
} else await Promise.resolve(rn());
|
|
478
|
+
} finally {
|
|
479
|
+
A.value = !1;
|
|
480
|
+
}
|
|
481
|
+
}
|
|
482
|
+
function sn(e) {
|
|
483
|
+
if (e?.stage === "start") {
|
|
484
|
+
k.value = !0;
|
|
485
|
+
return;
|
|
486
|
+
}
|
|
487
|
+
if (e?.stage === "end") {
|
|
488
|
+
k.value = !1;
|
|
489
|
+
return;
|
|
490
|
+
}
|
|
491
|
+
Tt();
|
|
492
|
+
}
|
|
493
|
+
async function cn() {
|
|
494
|
+
if (st("copyAlt", {
|
|
495
|
+
config: N.value,
|
|
496
|
+
dataset: B.value
|
|
497
|
+
}), !N.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(N.value.userOptions.callbacks.altCopy({
|
|
502
|
+
config: N.value,
|
|
503
|
+
dataset: B.value
|
|
504
|
+
}));
|
|
505
|
+
}
|
|
506
|
+
function ln() {
|
|
507
|
+
M.value = !0, I.value.length && j.value === null && (j.value = 0);
|
|
508
|
+
}
|
|
509
|
+
function un() {
|
|
510
|
+
M.value = !1, j.value = null;
|
|
511
|
+
}
|
|
512
|
+
function dn(e) {
|
|
513
|
+
if (!F.value || $.value || document.activeElement !== F.value || !I.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
|
+
j.value = null, R.value = {}, z.value = [];
|
|
518
|
+
return;
|
|
519
|
+
}
|
|
520
|
+
if (r) {
|
|
521
|
+
if (j.value === null) return;
|
|
522
|
+
let e = I.value[j.value];
|
|
523
|
+
if (!e) return;
|
|
524
|
+
Xt(e, j.value);
|
|
525
|
+
return;
|
|
526
|
+
}
|
|
527
|
+
let a = j.value;
|
|
528
|
+
a === null || a < 0 || a >= I.value.length ? a = n ? 0 : I.value.length - 1 : n ? (a += 1, a >= I.value.length && (a = 0)) : t && (--a, a < 0 && (a = I.value.length - 1)), j.value = a, Z.value = a;
|
|
529
|
+
let o = I.value[a];
|
|
530
|
+
o && N.value.events.datapointEnter && N.value.events.datapointEnter({
|
|
531
|
+
datapoint: o,
|
|
532
|
+
seriesIndex: a
|
|
533
|
+
});
|
|
534
|
+
}
|
|
535
|
+
let fn = u(() => ({
|
|
536
|
+
headers: [
|
|
537
|
+
"ID",
|
|
538
|
+
"Label",
|
|
539
|
+
"Total weight",
|
|
540
|
+
"Relations count",
|
|
541
|
+
"Relations"
|
|
542
|
+
],
|
|
543
|
+
rows: B.value.map((e) => {
|
|
544
|
+
let t = e.relations.map((e) => B.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: tn,
|
|
556
|
+
generatePdf: wt,
|
|
557
|
+
generateSvg: on,
|
|
558
|
+
generateImage: Tt,
|
|
559
|
+
toggleAnnotator: en,
|
|
560
|
+
toggleFullscreen: $t,
|
|
561
|
+
copyAlt: cn
|
|
562
|
+
}), (e, t) => (v(), p("div", {
|
|
563
|
+
ref_key: "relationCircleChart",
|
|
564
|
+
ref: O,
|
|
565
|
+
class: "vue-data-ui-component vue-ui-relation-circle",
|
|
566
|
+
style: _(`width:100%;background:${N.value.style.backgroundColor};text-align:center;${N.value.responsive ? "height: 100%" : ""}`),
|
|
567
|
+
id: `relation_circle_${D.value}`,
|
|
568
|
+
onMouseenter: t[0] ||= () => C(yt)(!0),
|
|
569
|
+
onMouseleave: t[1] ||= () => C(yt)(!1)
|
|
570
|
+
}, [
|
|
571
|
+
m("div", {
|
|
572
|
+
id: `chart-instructions-${D.value}`,
|
|
573
|
+
class: "sr-only"
|
|
574
|
+
}, [m("p", null, S(N.value.a11y.translations.keyboardNavigation), 1)], 8, Ie),
|
|
575
|
+
fn.value?.rows?.length ? (v(), d(_e, {
|
|
576
|
+
key: 0,
|
|
577
|
+
uid: D.value,
|
|
578
|
+
head: fn.value.headers,
|
|
579
|
+
body: fn.value.rows,
|
|
580
|
+
notice: N.value.a11y.translations.tableAvailable,
|
|
581
|
+
caption: N.value.a11y.translations.tableCaption
|
|
582
|
+
}, null, 8, [
|
|
583
|
+
"uid",
|
|
584
|
+
"head",
|
|
585
|
+
"body",
|
|
586
|
+
"notice",
|
|
587
|
+
"caption"
|
|
588
|
+
])) : f("", !0),
|
|
589
|
+
N.value.userOptions.buttons.annotator ? (v(), d(C(tt), {
|
|
590
|
+
key: 1,
|
|
591
|
+
svgRef: C(F),
|
|
592
|
+
backgroundColor: N.value.style.backgroundColor,
|
|
593
|
+
color: N.value.style.color,
|
|
594
|
+
active: $.value,
|
|
595
|
+
isCursorPointer: P.value,
|
|
596
|
+
onClose: en
|
|
597
|
+
}, {
|
|
598
|
+
"annotator-action-close": T(() => [x(e.$slots, "annotator-action-close", {}, void 0, !0)]),
|
|
599
|
+
"annotator-action-color": T(({ color: t }) => [x(e.$slots, "annotator-action-color", g(h({ color: t })), void 0, !0)]),
|
|
600
|
+
"annotator-action-draw": T(({ mode: t }) => [x(e.$slots, "annotator-action-draw", g(h({ mode: t })), void 0, !0)]),
|
|
601
|
+
"annotator-action-undo": T(({ disabled: t }) => [x(e.$slots, "annotator-action-undo", g(h({ disabled: t })), void 0, !0)]),
|
|
602
|
+
"annotator-action-redo": T(({ disabled: t }) => [x(e.$slots, "annotator-action-redo", g(h({ disabled: t })), void 0, !0)]),
|
|
603
|
+
"annotator-action-delete": T(({ 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
|
+
Et.value ? (v(), p("div", {
|
|
613
|
+
key: 2,
|
|
614
|
+
ref_key: "noTitle",
|
|
615
|
+
ref: ft,
|
|
616
|
+
class: "vue-data-ui-no-title-space",
|
|
617
|
+
style: "height:36px; width: 100%;background:transparent"
|
|
618
|
+
}, null, 512)) : f("", !0),
|
|
619
|
+
N.value.style.title.text ? (v(), p("div", {
|
|
620
|
+
key: 3,
|
|
621
|
+
ref_key: "chartTitle",
|
|
622
|
+
ref: ut,
|
|
623
|
+
style: "width:100%;background:transparent"
|
|
624
|
+
}, [(v(), d(pe, {
|
|
625
|
+
key: `title_${pt.value}`,
|
|
626
|
+
config: {
|
|
627
|
+
title: {
|
|
628
|
+
cy: "relation-div-title",
|
|
629
|
+
...N.value.style.title
|
|
630
|
+
},
|
|
631
|
+
subtitle: {
|
|
632
|
+
cy: "relation-div-subtitle",
|
|
633
|
+
...N.value.style.title.subtitle
|
|
634
|
+
}
|
|
635
|
+
}
|
|
636
|
+
}, null, 8, ["config"]))], 512)) : f("", !0),
|
|
637
|
+
N.value.userOptions.show && ct.value && (C(bt) || C(vt)) ? (v(), d(C(nt), {
|
|
638
|
+
ref: "details",
|
|
639
|
+
key: `user_options_${lt.value}`,
|
|
640
|
+
backgroundColor: N.value.style.backgroundColor,
|
|
641
|
+
color: N.value.style.color,
|
|
642
|
+
isPrinting: C(St),
|
|
643
|
+
isImaging: C(Ct),
|
|
644
|
+
uid: D.value,
|
|
645
|
+
hasPdf: N.value.userOptions.buttons.pdf,
|
|
646
|
+
hasImg: N.value.userOptions.buttons.img,
|
|
647
|
+
hasSvg: N.value.userOptions.buttons.svg,
|
|
648
|
+
hasFullscreen: N.value.userOptions.buttons.fullscreen,
|
|
649
|
+
hasAltCopy: N.value.userOptions.buttons.altCopy,
|
|
650
|
+
hasXls: !1,
|
|
651
|
+
isFullscreen: Q.value,
|
|
652
|
+
titles: { ...N.value.userOptions.buttonTitles },
|
|
653
|
+
chartElement: O.value,
|
|
654
|
+
position: N.value.userOptions.position,
|
|
655
|
+
hasAnnotator: N.value.userOptions.buttons.annotator,
|
|
656
|
+
isAnnotation: $.value,
|
|
657
|
+
callbacks: N.value.userOptions.callbacks,
|
|
658
|
+
printScale: N.value.userOptions.print.scale,
|
|
659
|
+
isCursorPointer: P.value,
|
|
660
|
+
onToggleFullscreen: $t,
|
|
661
|
+
onGeneratePdf: C(wt),
|
|
662
|
+
onGenerateImage: sn,
|
|
663
|
+
onGenerateSvg: on,
|
|
664
|
+
onToggleAnnotator: en,
|
|
665
|
+
onCopyAlt: cn,
|
|
666
|
+
style: _({ visibility: C(bt) ? C(vt) ? "visible" : "hidden" : "visible" })
|
|
667
|
+
}, Se({ _: 2 }, [
|
|
668
|
+
e.$slots.menuIcon ? {
|
|
669
|
+
name: "menuIcon",
|
|
670
|
+
fn: T(({ 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: T(() => [x(e.$slots, "optionPdf", {}, void 0, !0)]),
|
|
679
|
+
key: "1"
|
|
680
|
+
} : void 0,
|
|
681
|
+
e.$slots.optionImg ? {
|
|
682
|
+
name: "optionImg",
|
|
683
|
+
fn: T(() => [x(e.$slots, "optionImg", {}, void 0, !0)]),
|
|
684
|
+
key: "2"
|
|
685
|
+
} : void 0,
|
|
686
|
+
e.$slots.optionSvg ? {
|
|
687
|
+
name: "optionSvg",
|
|
688
|
+
fn: T(() => [x(e.$slots, "optionSvg", {}, void 0, !0)]),
|
|
689
|
+
key: "3"
|
|
690
|
+
} : void 0,
|
|
691
|
+
e.$slots.optionFullscreen ? {
|
|
692
|
+
name: "optionFullscreen",
|
|
693
|
+
fn: T(({ 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: T(({ 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: T(({ altCopy: t }) => [x(e.$slots, "optionAltCopy", g(h({ altCopy: t })), void 0, !0)]),
|
|
710
|
+
key: "6"
|
|
711
|
+
} : void 0,
|
|
712
|
+
e.$slots["custom-menu-before"] ? {
|
|
713
|
+
name: "custom-menu-before",
|
|
714
|
+
fn: T(() => [x(e.$slots, "custom-menu-before", {}, void 0, !0)]),
|
|
715
|
+
key: "7"
|
|
716
|
+
} : void 0,
|
|
717
|
+
e.$slots["custom-menu-after"] ? {
|
|
718
|
+
name: "custom-menu-after",
|
|
719
|
+
fn: T(() => [x(e.$slots, "custom-menu-after", {}, void 0, !0)]),
|
|
720
|
+
key: "8"
|
|
721
|
+
} : void 0
|
|
722
|
+
]), 1032, [
|
|
723
|
+
"backgroundColor",
|
|
724
|
+
"color",
|
|
725
|
+
"isPrinting",
|
|
726
|
+
"isImaging",
|
|
727
|
+
"uid",
|
|
728
|
+
"hasPdf",
|
|
729
|
+
"hasImg",
|
|
730
|
+
"hasSvg",
|
|
731
|
+
"hasFullscreen",
|
|
732
|
+
"hasAltCopy",
|
|
733
|
+
"isFullscreen",
|
|
734
|
+
"titles",
|
|
735
|
+
"chartElement",
|
|
736
|
+
"position",
|
|
737
|
+
"hasAnnotator",
|
|
738
|
+
"isAnnotation",
|
|
739
|
+
"callbacks",
|
|
740
|
+
"printScale",
|
|
741
|
+
"isCursorPointer",
|
|
742
|
+
"onGeneratePdf",
|
|
743
|
+
"style"
|
|
744
|
+
])) : f("", !0),
|
|
745
|
+
m("div", Le, [(v(), p("svg", {
|
|
746
|
+
ref_key: "svgRef",
|
|
747
|
+
ref: F,
|
|
748
|
+
xmlns: C(re),
|
|
749
|
+
class: Oe([{
|
|
750
|
+
"vue-data-ui-fullscreen--on": Q.value,
|
|
751
|
+
"vue-data-ui-fulscreen--off": !Q.value
|
|
752
|
+
}, "relation-circle"]),
|
|
753
|
+
viewBox: `0 0 ${G.value.width <= 0 ? 10 : G.value.width} ${G.value.height <= 0 ? 10 : G.value.height}`,
|
|
754
|
+
width: "100%",
|
|
755
|
+
style: "user-select:none; background:transparent",
|
|
756
|
+
"aria-describedby": `chart-instructions-${D.value}`,
|
|
757
|
+
tabindex: "0",
|
|
758
|
+
onFocus: ln,
|
|
759
|
+
onBlur: un,
|
|
760
|
+
onKeydown: dn
|
|
761
|
+
}, [
|
|
762
|
+
we(C(rt)),
|
|
763
|
+
e.$slots["chart-background"] ? (v(), p("foreignObject", {
|
|
764
|
+
key: 0,
|
|
765
|
+
x: 0,
|
|
766
|
+
y: 0,
|
|
767
|
+
width: G.value.width <= 0 ? 10 : G.value.width,
|
|
768
|
+
height: G.value.height <= 0 ? 10 : G.value.height,
|
|
769
|
+
style: { pointerEvents: "none" }
|
|
770
|
+
}, [x(e.$slots, "chart-background", {}, void 0, !0)], 8, ze)) : f("", !0),
|
|
771
|
+
m("circle", {
|
|
772
|
+
cx: (G.value.width <= 0 ? 1e-4 : G.value.width) / 2,
|
|
773
|
+
cy: (G.value.height <= 0 ? 1e-4 : G.value.height) / 2 + N.value.style.circle.offsetY,
|
|
774
|
+
r: K.value <= 0 ? 1e-4 : K.value,
|
|
775
|
+
stroke: N.value.style.circle.stroke,
|
|
776
|
+
"stroke-width": N.value.style.circle.strokeWidth,
|
|
777
|
+
fill: "transparent",
|
|
778
|
+
class: "main-circle"
|
|
779
|
+
}, null, 8, Be),
|
|
780
|
+
kt.value ? (v(), p("g", Ve, [(v(!0), p(l, null, b(L.value, (e, t) => (v(), p("path", {
|
|
781
|
+
key: `relation_${t}`,
|
|
782
|
+
style: _(Ut(e)),
|
|
783
|
+
stroke: Y(e),
|
|
784
|
+
class: Oe(["relation", { "vue-ui-relation-circle-selected": R.value.hasOwnProperty("id") && z.value.includes(e.id) }]),
|
|
785
|
+
d: `M${e.x1},${e.y1} C${e.x1},${e.y1} ${G.value.width / 2},${G.value.height / 2 + N.value.style.circle.offsetY} ${e.x2},${e.y2}`,
|
|
786
|
+
fill: "none",
|
|
787
|
+
"stroke-width": Qt(e),
|
|
788
|
+
"stroke-linecap": "round"
|
|
789
|
+
}, null, 14, He))), 128)), (v(!0), p(l, null, b(L.value, (t, n) => (v(), p("g", Ue, [
|
|
790
|
+
X(t) ? x(e.$slots, "dataLabel", Ee({
|
|
791
|
+
key: 0,
|
|
792
|
+
ref_for: !0
|
|
793
|
+
}, {
|
|
794
|
+
x: t.midPointBezier.x,
|
|
795
|
+
y: t.midPointBezier.y,
|
|
796
|
+
color: Y(t),
|
|
797
|
+
weight: t.weight,
|
|
798
|
+
fontSize: H.value
|
|
799
|
+
}), void 0, !0) : f("", !0),
|
|
800
|
+
X(t) && !e.$slots.dataLabel ? (v(), p("circle", {
|
|
801
|
+
key: 1,
|
|
802
|
+
cx: t.midPointBezier.x,
|
|
803
|
+
cy: t.midPointBezier.y,
|
|
804
|
+
fill: Y(t),
|
|
805
|
+
r: H.value,
|
|
806
|
+
stroke: N.value.style.backgroundColor,
|
|
807
|
+
"stroke-width": "1"
|
|
808
|
+
}, null, 8, We)) : f("", !0),
|
|
809
|
+
X(t) && !e.$slots.dataLabel ? (v(), p("text", {
|
|
810
|
+
key: 2,
|
|
811
|
+
x: t.midPointBezier.x,
|
|
812
|
+
y: t.midPointBezier.y + H.value / 3,
|
|
813
|
+
fill: C(ne)(Y(t)),
|
|
814
|
+
"text-anchor": "middle",
|
|
815
|
+
"font-size": H.value
|
|
816
|
+
}, S(C(s)(N.value.style.weightLabels.formatter, t.weight, C(i)({
|
|
817
|
+
p: N.value.style.weightLabels.prefix,
|
|
818
|
+
v: t.weight,
|
|
819
|
+
s: N.value.style.weightLabels.suffix,
|
|
820
|
+
r: N.value.style.weightLabels.rounding
|
|
821
|
+
}), { ...t })), 9, Ge)) : f("", !0)
|
|
822
|
+
]))), 256))])) : (v(), p("g", Ke, [(v(!0), p(l, null, b(L.value, (e, t) => (v(), p("line", {
|
|
823
|
+
key: `relation_${t}`,
|
|
824
|
+
stroke: Y(e),
|
|
825
|
+
"stroke-width": Qt(e),
|
|
826
|
+
style: _(Ut(e)),
|
|
827
|
+
x1: e.x1,
|
|
828
|
+
x2: e.x2,
|
|
829
|
+
y1: e.y1,
|
|
830
|
+
y2: e.y2,
|
|
831
|
+
class: Oe({ "vue-ui-relation-circle-selected": R.value.hasOwnProperty("id") && z.value.includes(e.id) }),
|
|
832
|
+
"stroke-linecap": "round"
|
|
833
|
+
}, null, 14, qe))), 128)), (v(!0), p(l, null, b(L.value, (t, n) => (v(), p("g", Je, [
|
|
834
|
+
X(t) ? x(e.$slots, "dataLabel", Ee({
|
|
835
|
+
key: 0,
|
|
836
|
+
ref_for: !0
|
|
837
|
+
}, {
|
|
838
|
+
x: t.midPointLine.x,
|
|
839
|
+
y: t.midPointLine.y,
|
|
840
|
+
color: Y(t),
|
|
841
|
+
weight: t.weight,
|
|
842
|
+
fontSize: H.value
|
|
843
|
+
}), void 0, !0) : f("", !0),
|
|
844
|
+
X(t) && !e.$slots.dataLabel && N.value.style.weightLabels.show ? (v(), p("circle", {
|
|
845
|
+
key: 1,
|
|
846
|
+
cx: t.midPointLine.x,
|
|
847
|
+
cy: t.midPointLine.y,
|
|
848
|
+
fill: Y(t),
|
|
849
|
+
r: H.value,
|
|
850
|
+
stroke: N.value.style.backgroundColor,
|
|
851
|
+
"stroke-width": "1"
|
|
852
|
+
}, null, 8, Ye)) : f("", !0),
|
|
853
|
+
X(t) && !e.$slots.dataLabel && N.value.style.weightLabels.show ? (v(), p("text", {
|
|
854
|
+
key: 2,
|
|
855
|
+
x: t.midPointLine.x,
|
|
856
|
+
y: t.midPointLine.y + H.value / 3,
|
|
857
|
+
fill: C(ne)(Y(t)),
|
|
858
|
+
"text-anchor": "middle",
|
|
859
|
+
"font-size": H.value
|
|
860
|
+
}, S(C(s)(N.value.style.weightLabels.formatter, t.weight, C(i)({
|
|
861
|
+
p: N.value.style.weightLabels.prefix,
|
|
862
|
+
v: t.weight,
|
|
863
|
+
s: N.value.style.weightLabels.suffix,
|
|
864
|
+
r: N.value.style.weightLabels.rounding
|
|
865
|
+
}), { ...t })), 9, Xe)) : f("", !0)
|
|
866
|
+
]))), 256))])),
|
|
867
|
+
(v(!0), p(l, null, b(I.value, (e, t) => (v(), p("text", {
|
|
868
|
+
key: `plot_text_${t}`,
|
|
869
|
+
"text-anchor": Wt(e),
|
|
870
|
+
transform: qt(e),
|
|
871
|
+
x: Gt(e),
|
|
872
|
+
y: e.y + 5,
|
|
873
|
+
class: "vue-ui-relation-circle-legend",
|
|
874
|
+
"transform-origin": "start",
|
|
875
|
+
"font-weight": R.value.id === e.id ? "900" : "400",
|
|
876
|
+
style: _(`font-family:${N.value.style.fontFamily};${Kt(e)};cursor:${P.value ? "pointer" : "default"}`),
|
|
877
|
+
"font-size": W.value,
|
|
878
|
+
fill: N.value.style.labels.color,
|
|
879
|
+
"text-decoration": t === Z.value || t === j.value ? "underline" : void 0,
|
|
880
|
+
onClick: (n) => Zt(e, t),
|
|
881
|
+
onMouseenter: (n) => Jt(e, t),
|
|
882
|
+
onMouseleave: (n) => Yt(e, t)
|
|
883
|
+
}, [C(ht) ? (v(), p(l, { key: 0 }, [Ce("--------")], 64)) : (v(), p(l, { key: 1 }, [Ce(S(e.label) + " (" + S(C(s)(N.value.style.weightLabels.formatter, e.totalWeight, C(i)({
|
|
884
|
+
p: N.value.style.weightLabels.prefix,
|
|
885
|
+
v: e.totalWeight,
|
|
886
|
+
s: N.value.style.weightLabels.suffix,
|
|
887
|
+
r: N.value.style.weightLabels.rounding
|
|
888
|
+
}), { ...e })) + ") ", 1)], 64))], 44, Ze))), 128)),
|
|
889
|
+
(v(!0), p(l, null, b(I.value, (e, t) => (v(), p("circle", {
|
|
890
|
+
cx: e.x,
|
|
891
|
+
cy: e.y,
|
|
892
|
+
key: `plot_${t}`,
|
|
893
|
+
style: _(`${Ht(e)}; transition: r 0.2s ease-in-out; cursor:${P.value ? "pointer" : "default"}`),
|
|
894
|
+
class: "vue-ui-relation-circle-plot",
|
|
895
|
+
fill: N.value.style.plot.useSerieColor ? e.color : N.value.style.plot.color,
|
|
896
|
+
stroke: N.value.style.backgroundColor,
|
|
897
|
+
"stroke-width": "1",
|
|
898
|
+
r: U.value * (t === Z.value || t === j.value ? 2 : 1),
|
|
899
|
+
onClick: (n) => Zt(e, t),
|
|
900
|
+
onMouseenter: (n) => Jt(e, t),
|
|
901
|
+
onMouseleave: (n) => Yt(e, t)
|
|
902
|
+
}, null, 44, Qe))), 128)),
|
|
903
|
+
x(e.$slots, "svg", { svg: {
|
|
904
|
+
...G.value,
|
|
905
|
+
isPrintingImg: C(St) || C(Ct) || k.value,
|
|
906
|
+
isPrintingSvg: A.value
|
|
907
|
+
} }, void 0, !0)
|
|
908
|
+
], 42, Re)), e.$slots.hint ? (v(), p("div", $e, [x(e.$slots, "hint", g(h({
|
|
909
|
+
hint: N.value.a11y.translations.keyboardNavigation,
|
|
910
|
+
isVisible: M.value
|
|
911
|
+
})), void 0, !0)])) : f("", !0)]),
|
|
912
|
+
e.$slots.watermark ? (v(), p("div", et, [x(e.$slots, "watermark", g(h({ isPrinting: C(St) || C(Ct) || k.value || A.value })), void 0, !0)])) : f("", !0),
|
|
913
|
+
e.$slots.source ? (v(), p("div", {
|
|
914
|
+
key: 6,
|
|
915
|
+
ref_key: "source",
|
|
916
|
+
ref: dt,
|
|
917
|
+
dir: "auto"
|
|
918
|
+
}, [x(e.$slots, "source", {}, void 0, !0)], 512)) : f("", !0),
|
|
919
|
+
x(e.$slots, "skeleton", {}, () => [C(ht) ? (v(), d(le, { key: 0 })) : f("", !0)], !0)
|
|
920
|
+
], 44, Fe));
|
|
921
|
+
}
|
|
922
|
+
}, [["__scopeId", "data-v-dc8435a4"]]);
|
|
923
|
+
//#endregion
|
|
924
|
+
export { Pe as n, tt as t };
|