vue-data-ui 3.19.9 → 3.20.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +120 -120
- package/dist/A11yDataTable-q2-8fSlJ.js +0 -45
- package/dist/Arrow-Cj6W6Xbi.js +0 -116
- package/dist/BaseDraggableDialog-DUUu2E2Q.js +0 -272
- package/dist/BaseIcon-DM1x8hQF.js +0 -502
- package/dist/BaseLegendToggle-CJTwLGXL.js +0 -56
- package/dist/BaseScanner-C7dmAref.js +0 -27
- package/dist/BaseZoomControls-BkajQ8q9.js +0 -111
- package/dist/ColorPicker-DTQeqKUV.js +0 -255
- package/dist/DataTable-DmE8Oo4i.js +0 -150
- package/dist/Legend-Gg5Q4Clb.js +0 -114
- package/dist/NonSvgPenAndPaper-tvWXeCsd.js +0 -577
- package/dist/PackageVersion-Dl9W5zJD.js +0 -11
- package/dist/PenAndPaper-DNgm6y3l.js +0 -461
- package/dist/RecursiveCircles-DPpLel6f.js +0 -117
- package/dist/RecursiveLabels-DBMJf_to.js +0 -56
- package/dist/RecursiveLinks-D06dBL4a.js +0 -78
- package/dist/Shape-DEGOZ6GG.js +0 -141
- package/dist/Slicer-CPWGgGSp.js +0 -1144
- package/dist/SlicerPreview-BU3ZeHjR.js +0 -1555
- package/dist/SparkTooltip-c2DL7gqD.js +0 -93
- package/dist/Title-__gWq2g6.js +0 -87
- package/dist/Tooltip-CuWEYGr3.js +0 -312
- package/dist/UserOptions-D7zR0tnR.js +0 -1411
- package/dist/_plugin-vue_export-helper-Dq1MygBL.js +0 -8
- package/dist/canvas-lib-DTaADQOK.js +0 -79
- package/dist/components/arrow.js +0 -2
- package/dist/components/vue-ui-3d-bar.js +0 -2
- package/dist/components/vue-ui-accordion.js +0 -2
- package/dist/components/vue-ui-age-pyramid.js +0 -2
- package/dist/components/vue-ui-annotator.js +0 -2
- package/dist/components/vue-ui-bullet.js +0 -2
- package/dist/components/vue-ui-bump.js +0 -2
- package/dist/components/vue-ui-candlestick.js +0 -2
- package/dist/components/vue-ui-carousel-table.js +0 -2
- package/dist/components/vue-ui-chestnut.js +0 -2
- package/dist/components/vue-ui-chord.js +0 -2
- package/dist/components/vue-ui-circle-pack.js +0 -2
- package/dist/components/vue-ui-cursor.js +0 -2
- package/dist/components/vue-ui-dag.js +0 -2
- package/dist/components/vue-ui-dashboard.js +0 -2
- package/dist/components/vue-ui-digits.js +0 -2
- package/dist/components/vue-ui-donut-evolution.js +0 -2
- package/dist/components/vue-ui-donut.js +0 -2
- package/dist/components/vue-ui-dumbbell.js +0 -2
- package/dist/components/vue-ui-flow.js +0 -2
- package/dist/components/vue-ui-funnel.js +0 -2
- package/dist/components/vue-ui-galaxy.js +0 -2
- package/dist/components/vue-ui-gauge.js +0 -2
- package/dist/components/vue-ui-geo.js +0 -2
- package/dist/components/vue-ui-gizmo.js +0 -2
- package/dist/components/vue-ui-heatmap.js +0 -2
- package/dist/components/vue-ui-history-plot.js +0 -2
- package/dist/components/vue-ui-horizontal-bar.js +0 -2
- package/dist/components/vue-ui-icon.js +0 -2
- package/dist/components/vue-ui-kpi.js +0 -2
- package/dist/components/vue-ui-mini-loader.js +0 -2
- package/dist/components/vue-ui-molecule.js +0 -2
- package/dist/components/vue-ui-mood-radar.js +0 -2
- package/dist/components/vue-ui-nested-donuts.js +0 -2
- package/dist/components/vue-ui-onion.js +0 -2
- package/dist/components/vue-ui-parallel-coordinate-plot.js +0 -2
- package/dist/components/vue-ui-pattern-seed.js +0 -2
- package/dist/components/vue-ui-pattern.js +0 -2
- package/dist/components/vue-ui-quadrant.js +0 -2
- package/dist/components/vue-ui-quick-chart.js +0 -2
- package/dist/components/vue-ui-radar.js +0 -2
- package/dist/components/vue-ui-rating.js +0 -2
- package/dist/components/vue-ui-relation-circle.js +0 -2
- package/dist/components/vue-ui-ridgeline.js +0 -2
- package/dist/components/vue-ui-rings.js +0 -2
- package/dist/components/vue-ui-scatter.js +0 -2
- package/dist/components/vue-ui-skeleton.js +0 -2
- package/dist/components/vue-ui-smiley.js +0 -2
- package/dist/components/vue-ui-spark-trend.js +0 -2
- package/dist/components/vue-ui-sparkbar.js +0 -2
- package/dist/components/vue-ui-sparkgauge.js +0 -2
- package/dist/components/vue-ui-sparkhistogram.js +0 -2
- package/dist/components/vue-ui-sparkline.js +0 -2
- package/dist/components/vue-ui-sparkstackbar.js +0 -2
- package/dist/components/vue-ui-stackbar.js +0 -2
- package/dist/components/vue-ui-stackline.js +0 -2
- package/dist/components/vue-ui-strip-plot.js +0 -2
- package/dist/components/vue-ui-table-heatmap.js +0 -2
- package/dist/components/vue-ui-table-sparkline.js +0 -2
- package/dist/components/vue-ui-table.js +0 -2
- package/dist/components/vue-ui-thermometer.js +0 -2
- package/dist/components/vue-ui-timer.js +0 -2
- package/dist/components/vue-ui-tiremarks.js +0 -2
- package/dist/components/vue-ui-treemap.js +0 -2
- package/dist/components/vue-ui-vertical-bar.js +0 -2
- package/dist/components/vue-ui-waffle.js +0 -2
- package/dist/components/vue-ui-wheel.js +0 -2
- package/dist/components/vue-ui-word-cloud.js +0 -2
- package/dist/components/vue-ui-world.js +0 -2
- package/dist/components/vue-ui-xy-canvas.js +0 -2
- package/dist/components/vue-ui-xy.js +0 -2
- package/dist/dom-to-png-9WSt6hXe.js +0 -237
- package/dist/exposedLib-CwWU4zv-.js +0 -19
- package/dist/geoProjections-CQIkC70z.js +0 -146
- package/dist/img-BjOr008R.js +0 -74
- package/dist/labelUtils-Cr97N8E1.js +0 -19
- package/dist/lib-BkiwukKO.js +0 -1879
- package/dist/llms.txt +0 -232
- package/dist/patternUtils-B7BWu5bV.js +0 -258
- package/dist/pdf-DSXSFUnK.js +0 -90
- package/dist/rolldown-runtime-CAFD8bLK.js +0 -11
- package/dist/style.css +0 -2
- package/dist/types/arrow.d.ts +0 -4
- package/dist/types/utils.d.ts +0 -551
- package/dist/types/vue-data-ui.d.ts +0 -15826
- package/dist/types/vue-ui-3d-bar.d.ts +0 -78
- package/dist/types/vue-ui-accordion.d.ts +0 -11
- package/dist/types/vue-ui-age-pyramid.d.ts +0 -95
- package/dist/types/vue-ui-annotator.d.ts +0 -12
- package/dist/types/vue-ui-bullet.d.ts +0 -72
- package/dist/types/vue-ui-bump.d.ts +0 -77
- package/dist/types/vue-ui-candlestick.d.ts +0 -93
- package/dist/types/vue-ui-carousel-table.d.ts +0 -46
- package/dist/types/vue-ui-chestnut.d.ts +0 -79
- package/dist/types/vue-ui-chord.d.ts +0 -91
- package/dist/types/vue-ui-circle-pack.d.ts +0 -111
- package/dist/types/vue-ui-cursor.d.ts +0 -9
- package/dist/types/vue-ui-dag.d.ts +0 -106
- package/dist/types/vue-ui-dashboard.d.ts +0 -53
- package/dist/types/vue-ui-digits.d.ts +0 -12
- package/dist/types/vue-ui-donut-evolution.d.ts +0 -81
- package/dist/types/vue-ui-donut.d.ts +0 -106
- package/dist/types/vue-ui-dumbbell.d.ts +0 -79
- package/dist/types/vue-ui-flow.d.ts +0 -93
- package/dist/types/vue-ui-funnel.d.ts +0 -66
- package/dist/types/vue-ui-galaxy.d.ts +0 -97
- package/dist/types/vue-ui-gauge.d.ts +0 -76
- package/dist/types/vue-ui-geo.d.ts +0 -81
- package/dist/types/vue-ui-gizmo.d.ts +0 -22
- package/dist/types/vue-ui-heatmap.d.ts +0 -86
- package/dist/types/vue-ui-history-plot.d.ts +0 -97
- package/dist/types/vue-ui-horizontal-bar.d.ts +0 -99
- package/dist/types/vue-ui-icon.d.ts +0 -15
- package/dist/types/vue-ui-kpi.d.ts +0 -25
- package/dist/types/vue-ui-mini-loader.d.ts +0 -15
- package/dist/types/vue-ui-molecule.d.ts +0 -97
- package/dist/types/vue-ui-mood-radar.d.ts +0 -79
- package/dist/types/vue-ui-nested-donuts.d.ts +0 -94
- package/dist/types/vue-ui-onion.d.ts +0 -91
- package/dist/types/vue-ui-parallel-coordinate-plot.d.ts +0 -108
- package/dist/types/vue-ui-pattern-seed.d.ts +0 -14
- package/dist/types/vue-ui-pattern.d.ts +0 -15
- package/dist/types/vue-ui-quadrant.d.ts +0 -102
- package/dist/types/vue-ui-quick-chart.d.ts +0 -89
- package/dist/types/vue-ui-radar.d.ts +0 -101
- package/dist/types/vue-ui-rating.d.ts +0 -31
- package/dist/types/vue-ui-relation-circle.d.ts +0 -79
- package/dist/types/vue-ui-ridgeline.d.ts +0 -85
- package/dist/types/vue-ui-rings.d.ts +0 -83
- package/dist/types/vue-ui-scatter.d.ts +0 -82
- package/dist/types/vue-ui-skeleton.d.ts +0 -11
- package/dist/types/vue-ui-smiley.d.ts +0 -12
- package/dist/types/vue-ui-spark-trend.d.ts +0 -19
- package/dist/types/vue-ui-sparkbar.d.ts +0 -36
- package/dist/types/vue-ui-sparkgauge.d.ts +0 -28
- package/dist/types/vue-ui-sparkhistogram.d.ts +0 -33
- package/dist/types/vue-ui-sparkline.d.ts +0 -44
- package/dist/types/vue-ui-sparkstackbar.d.ts +0 -45
- package/dist/types/vue-ui-stackbar.d.ts +0 -97
- package/dist/types/vue-ui-stackline.d.ts +0 -93
- package/dist/types/vue-ui-strip-plot.d.ts +0 -81
- package/dist/types/vue-ui-table-heatmap.d.ts +0 -62
- package/dist/types/vue-ui-table-sparkline.d.ts +0 -40
- package/dist/types/vue-ui-table.d.ts +0 -25
- package/dist/types/vue-ui-thermometer.d.ts +0 -57
- package/dist/types/vue-ui-timer.d.ts +0 -36
- package/dist/types/vue-ui-tiremarks.d.ts +0 -57
- package/dist/types/vue-ui-treemap.d.ts +0 -87
- package/dist/types/vue-ui-vertical-bar.d.ts +0 -22
- package/dist/types/vue-ui-waffle.d.ts +0 -86
- package/dist/types/vue-ui-wheel.d.ts +0 -57
- package/dist/types/vue-ui-word-cloud.d.ts +0 -84
- package/dist/types/vue-ui-world.d.ts +0 -81
- package/dist/types/vue-ui-xy-canvas.d.ts +0 -84
- package/dist/types/vue-ui-xy.d.ts +0 -125
- package/dist/useAutoSizeLabelsInsideViewbox-dp-3Gg97.js +0 -50
- package/dist/useChartAccessibility-Do37qcw2.js +0 -12
- package/dist/useConfig-ByaaSKhz.js +0 -7471
- package/dist/useFitSvgText-C-MEdAfe.js +0 -63
- package/dist/useNestedProp-Ck4hsrpu.js +0 -10
- package/dist/useObjectBindings-BR1sGimd.js +0 -189
- package/dist/usePanZoom-B-4M_gmY.js +0 -157
- package/dist/usePrefersMotion-BywLbIko.js +0 -15
- package/dist/usePrinter-X0yWOynH.js +0 -49
- package/dist/useResponsive-CrAInupd.js +0 -19
- package/dist/useStableElementSize-0I1IpHPl.js +0 -77
- package/dist/useSvgExport-Dtu973wa.js +0 -755
- package/dist/useTableResponsive-DrM1xqII.js +0 -24
- package/dist/useThemeCheck-rFK9Zlb_.js +0 -24
- package/dist/useTimeLabelCollider-Dm55Emzg.js +0 -57
- package/dist/useTimeLabels-C0x7zUXP.js +0 -272
- package/dist/useUserOptionState-CjPJPTg2.js +0 -15
- package/dist/utils.js +0 -28
- package/dist/vClickOutside-CbX_bC9A.js +0 -13
- package/dist/vue-data-ui-nsosW-n5.js +0 -274
- package/dist/vue-data-ui.js +0 -76
- package/dist/vue-ui-3d-bar-CTvvvgBE.js +0 -1757
- package/dist/vue-ui-accordion-BX9WL-QF.js +0 -81
- package/dist/vue-ui-age-pyramid-ckZtLlmH.js +0 -1238
- package/dist/vue-ui-annotator-Be3VpH8Z.js +0 -2899
- package/dist/vue-ui-bullet-3CkhGOSb.js +0 -710
- package/dist/vue-ui-bump-LQuPTOlm.js +0 -1249
- package/dist/vue-ui-candlestick-BeO06tlH.js +0 -1826
- package/dist/vue-ui-carousel-table-nZJ1k6se.js +0 -455
- package/dist/vue-ui-chestnut-BWItE1hg.js +0 -2010
- package/dist/vue-ui-chord-YflKRyWK.js +0 -1391
- package/dist/vue-ui-circle-pack-DyTYvEg3.js +0 -1608
- package/dist/vue-ui-cursor-C5_wkWul.js +0 -283
- package/dist/vue-ui-dag-mH0baWM3.js +0 -2909
- package/dist/vue-ui-dashboard-F7pEuJDh.js +0 -513
- package/dist/vue-ui-digits-BYBtwXy_.js +0 -209
- package/dist/vue-ui-donut-B3L7jeHL.js +0 -2410
- package/dist/vue-ui-donut-evolution-C46h0gLy.js +0 -1510
- package/dist/vue-ui-dumbbell-xekp1obI.js +0 -1527
- package/dist/vue-ui-flow-BYYyk5KL.js +0 -1235
- package/dist/vue-ui-funnel-BfY509t-.js +0 -777
- package/dist/vue-ui-galaxy-D061gTYS.js +0 -1077
- package/dist/vue-ui-gauge-BRxZNBBS.js +0 -920
- package/dist/vue-ui-geo-BwOMFUVr.js +0 -1516
- package/dist/vue-ui-gizmo-CQsP8Nd3.js +0 -225
- package/dist/vue-ui-heatmap-DOsulVoP.js +0 -1568
- package/dist/vue-ui-history-plot-CXW6lF42.js +0 -1559
- package/dist/vue-ui-horizontal-bar-CideXtlg.js +0 -1681
- package/dist/vue-ui-kpi-CE-JFZ1o.js +0 -96
- package/dist/vue-ui-mini-loader-DDJUya9e.js +0 -125
- package/dist/vue-ui-molecule-B1Prm5Lk.js +0 -925
- package/dist/vue-ui-mood-radar-B29gVcTN.js +0 -1148
- package/dist/vue-ui-nested-donuts-Bsx5f9Gv.js +0 -1487
- package/dist/vue-ui-onion-MN-PjNJq.js +0 -1200
- package/dist/vue-ui-parallel-coordinate-plot-C9zU7MP5.js +0 -1421
- package/dist/vue-ui-pattern-Bj-IPFr2.js +0 -154
- package/dist/vue-ui-pattern-seed-abRweCDE.js +0 -61
- package/dist/vue-ui-quadrant-h-QFG9O4.js +0 -1978
- package/dist/vue-ui-quick-chart-PAVz4c9z.js +0 -2469
- package/dist/vue-ui-radar-D2pVd53z.js +0 -1229
- package/dist/vue-ui-rating-D_QR_A3V.js +0 -343
- package/dist/vue-ui-relation-circle-BjB0J53V.js +0 -924
- package/dist/vue-ui-ridgeline-DamvqiyJ.js +0 -1622
- package/dist/vue-ui-rings-DkHS5dwd.js +0 -1246
- package/dist/vue-ui-scatter-dFDowCVQ.js +0 -2413
- package/dist/vue-ui-skeleton-zhkS1cmh.js +0 -2556
- package/dist/vue-ui-smiley-rFdGxZK6.js +0 -356
- package/dist/vue-ui-spark-trend-fQ10-UvM.js +0 -438
- package/dist/vue-ui-sparkbar-D5toou8V.js +0 -393
- package/dist/vue-ui-sparkgauge-DRZcIPYf.js +0 -255
- package/dist/vue-ui-sparkhistogram-YizEqFdN.js +0 -560
- package/dist/vue-ui-sparkline-w2nclIW0.js +0 -1507
- package/dist/vue-ui-sparkstackbar-CTShNXhW.js +0 -662
- package/dist/vue-ui-stackbar-BFLCEsRk.js +0 -2267
- package/dist/vue-ui-stackline-CU6s-hhv.js +0 -2395
- package/dist/vue-ui-strip-plot-ByaDLFSL.js +0 -1340
- package/dist/vue-ui-table-DuA_CfGn.js +0 -1338
- package/dist/vue-ui-table-heatmap-BFKyJTr1.js +0 -344
- package/dist/vue-ui-table-sparkline-Dfei_QrJ.js +0 -707
- package/dist/vue-ui-thermometer-biw3ivMI.js +0 -763
- package/dist/vue-ui-timer-9LNNDl4q.js +0 -439
- package/dist/vue-ui-tiremarks-kF0Baqia.js +0 -552
- package/dist/vue-ui-treemap-BexKMBhz.js +0 -1587
- package/dist/vue-ui-waffle-Dq50j_uw.js +0 -1362
- package/dist/vue-ui-wheel-BETHlWsO.js +0 -885
- package/dist/vue-ui-word-cloud-D1AQtzmT.js +0 -1656
- package/dist/vue-ui-world-CcgbuSp_.js +0 -14264
- package/dist/vue-ui-xy-BQ1YONCq.js +0 -4219
- package/dist/vue-ui-xy-canvas-4ABYnasj.js +0 -1786
- package/dist/vue_ui_3d_bar-CXKqO5Ej.js +0 -185
- package/dist/vue_ui_age_pyramid-BON8QI6X.js +0 -301
- package/dist/vue_ui_bullet-CE5sFT7u.js +0 -186
- package/dist/vue_ui_bump-frnXaXul.js +0 -201
- package/dist/vue_ui_candlestick-sY6UtOop.js +0 -374
- package/dist/vue_ui_chestnut-BiUZFv40.js +0 -305
- package/dist/vue_ui_chord-DpyR_b9A.js +0 -275
- package/dist/vue_ui_circle_pack-FjH0ZQeb.js +0 -172
- package/dist/vue_ui_dag-Ci_MOnvd.js +0 -258
- package/dist/vue_ui_donut-Cx2_BGcQ.js +0 -358
- package/dist/vue_ui_donut_evolution-CAJefrHs.js +0 -717
- package/dist/vue_ui_dumbbell-CClzAZTN.js +0 -304
- package/dist/vue_ui_flow-CCHO1Lo9.js +0 -238
- package/dist/vue_ui_funnel-h8q2mRpC.js +0 -234
- package/dist/vue_ui_galaxy-70vtkEBw.js +0 -265
- package/dist/vue_ui_gauge-C17CgfzN.js +0 -178
- package/dist/vue_ui_geo-C0UbQ0Lc.js +0 -248
- package/dist/vue_ui_heatmap-BqPP3J4M.js +0 -319
- package/dist/vue_ui_history_plot-C5nytDHh.js +0 -413
- package/dist/vue_ui_horizontal_bar-Bqxorkc_.js +0 -341
- package/dist/vue_ui_molecule-Dka4JBOp.js +0 -231
- package/dist/vue_ui_mood_radar-Dg4ijm53.js +0 -281
- package/dist/vue_ui_nested_donuts-BY9cOoHF.js +0 -273
- package/dist/vue_ui_onion-DTV9cup-.js +0 -293
- package/dist/vue_ui_parallel_coordinate_plot-CNWrDh96.js +0 -278
- package/dist/vue_ui_quadrant-3kjYvxpj.js +0 -428
- package/dist/vue_ui_quick_chart--VaYQuM4.js +0 -139
- package/dist/vue_ui_radar-Dxx9GJmj.js +0 -306
- package/dist/vue_ui_relation_circle-Cr0I2SoU.js +0 -98
- package/dist/vue_ui_ridgeline-CAtYca4b.js +0 -767
- package/dist/vue_ui_rings-DXC1VeX5.js +0 -320
- package/dist/vue_ui_scatter-D2S2j0ap.js +0 -479
- package/dist/vue_ui_spark_trend-BHMQ6_1p.js +0 -82
- package/dist/vue_ui_sparkbar-BR6hbuDE.js +0 -64
- package/dist/vue_ui_sparkgauge-xfPRHnMv.js +0 -90
- package/dist/vue_ui_sparkhistogram-CJRENZ1C.js +0 -123
- package/dist/vue_ui_sparkline-wgk7yO7E.js +0 -151
- package/dist/vue_ui_sparkstackbar-C5qZMmAl.js +0 -175
- package/dist/vue_ui_stackbar-BW_C3MXw.js +0 -412
- package/dist/vue_ui_stackline-DXxzibUd.js +0 -460
- package/dist/vue_ui_strip_plot-8ZelqC5b.js +0 -301
- package/dist/vue_ui_table_heatmap-BGUjA0WA.js +0 -80
- package/dist/vue_ui_table_sparkline-i0Q-N_we.js +0 -124
- package/dist/vue_ui_thermometer-CuN7Gpez.js +0 -123
- package/dist/vue_ui_tiremarks-A6UHC0c3.js +0 -122
- package/dist/vue_ui_treemap-BQp06q-g.js +0 -328
- package/dist/vue_ui_vertical_bar-CJSD1FZS.js +0 -247
- package/dist/vue_ui_waffle-C_Ev4l7B.js +0 -292
- package/dist/vue_ui_wheel-DdkTPXJU.js +0 -133
- package/dist/vue_ui_word_cloud-B1PbsYPc.js +0 -254
- package/dist/vue_ui_xy-BYPqfYyx.js +0 -482
- package/dist/vue_ui_xy_canvas-CMHGNrLf.js +0 -408
|
@@ -1,924 +0,0 @@
|
|
|
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-BkiwukKO.js";
|
|
3
|
-
import { t as oe } from "./useConfig-ByaaSKhz.js";
|
|
4
|
-
import { t as se } from "./usePrinter-X0yWOynH.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-Ck4hsrpu.js";
|
|
8
|
-
import { t as de } from "./useThemeCheck-rFK9Zlb_.js";
|
|
9
|
-
import { t as fe } from "./img-BjOr008R.js";
|
|
10
|
-
import { n as pe } from "./Title-__gWq2g6.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-dp-3Gg97.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
|
-
ab5e8c6c: Mt.value,
|
|
118
|
-
v309156a9: jt.value,
|
|
119
|
-
v6c0f80cb: Nt.value
|
|
120
|
-
}));
|
|
121
|
-
let nt = Te(() => import("./PenAndPaper-DNgm6y3l.js").then((e) => e.t)), rt = Te(() => import("./UserOptions-D7zR0tnR.js").then((e) => e.n)), it = Te(() => import("./PackageVersion-Dl9W5zJD.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
|
-
e.$slots["custom-menu-before"] ? {
|
|
713
|
-
name: "custom-menu-before",
|
|
714
|
-
fn: w(() => [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: w(() => [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", Re, [(v(), p("svg", {
|
|
746
|
-
ref_key: "svgRef",
|
|
747
|
-
ref: P,
|
|
748
|
-
xmlns: C(re),
|
|
749
|
-
class: Oe([{
|
|
750
|
-
"vue-data-ui-fullscreen--on": Z.value,
|
|
751
|
-
"vue-data-ui-fulscreen--off": !Z.value
|
|
752
|
-
}, "relation-circle"]),
|
|
753
|
-
viewBox: `0 0 ${W.value.width <= 0 ? 10 : W.value.width} ${W.value.height <= 0 ? 10 : W.value.height}`,
|
|
754
|
-
width: "100%",
|
|
755
|
-
style: "user-select:none; background:transparent",
|
|
756
|
-
"aria-describedby": `chart-instructions-${E.value}`,
|
|
757
|
-
tabindex: "0",
|
|
758
|
-
onFocus: un,
|
|
759
|
-
onBlur: dn,
|
|
760
|
-
onKeydown: fn
|
|
761
|
-
}, [
|
|
762
|
-
we(C(it)),
|
|
763
|
-
e.$slots["chart-background"] ? (v(), p("foreignObject", {
|
|
764
|
-
key: 0,
|
|
765
|
-
x: 0,
|
|
766
|
-
y: 0,
|
|
767
|
-
width: W.value.width <= 0 ? 10 : W.value.width,
|
|
768
|
-
height: W.value.height <= 0 ? 10 : W.value.height,
|
|
769
|
-
style: { pointerEvents: "none" }
|
|
770
|
-
}, [x(e.$slots, "chart-background", {}, void 0, !0)], 8, Be)) : f("", !0),
|
|
771
|
-
m("circle", {
|
|
772
|
-
cx: (W.value.width <= 0 ? 1e-4 : W.value.width) / 2,
|
|
773
|
-
cy: (W.value.height <= 0 ? 1e-4 : W.value.height) / 2 + M.value.style.circle.offsetY,
|
|
774
|
-
r: G.value <= 0 ? 1e-4 : G.value,
|
|
775
|
-
stroke: M.value.style.circle.stroke,
|
|
776
|
-
"stroke-width": M.value.style.circle.strokeWidth,
|
|
777
|
-
fill: "transparent",
|
|
778
|
-
class: "main-circle"
|
|
779
|
-
}, null, 8, Ve),
|
|
780
|
-
At.value ? (v(), p("g", He, [(v(!0), p(l, null, b(I.value, (e, t) => (v(), p("path", {
|
|
781
|
-
key: `relation_${t}`,
|
|
782
|
-
style: _(Wt(e)),
|
|
783
|
-
stroke: J(e),
|
|
784
|
-
class: Oe(["relation", { "vue-ui-relation-circle-selected": L.value.hasOwnProperty("id") && R.value.includes(e.id) }]),
|
|
785
|
-
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}`,
|
|
786
|
-
fill: "none",
|
|
787
|
-
"stroke-width": $t(e),
|
|
788
|
-
"stroke-linecap": "round"
|
|
789
|
-
}, null, 14, Ue))), 128)), (v(!0), p(l, null, b(I.value, (n, r) => (v(), p("g", We, [
|
|
790
|
-
Y(n) ? x(e.$slots, "dataLabel", Ee({
|
|
791
|
-
key: 0,
|
|
792
|
-
ref_for: !0
|
|
793
|
-
}, {
|
|
794
|
-
x: n.midPointBezier.x,
|
|
795
|
-
y: n.midPointBezier.y,
|
|
796
|
-
color: J(n),
|
|
797
|
-
weight: n.weight,
|
|
798
|
-
fontSize: V.value
|
|
799
|
-
}), void 0, !0) : f("", !0),
|
|
800
|
-
Y(n) && !e.$slots.dataLabel ? (v(), p("circle", {
|
|
801
|
-
key: 1,
|
|
802
|
-
cx: n.midPointBezier.x,
|
|
803
|
-
cy: n.midPointBezier.y,
|
|
804
|
-
fill: J(n),
|
|
805
|
-
r: V.value,
|
|
806
|
-
stroke: M.value.style.backgroundColor,
|
|
807
|
-
"stroke-width": "1"
|
|
808
|
-
}, null, 8, Ge)) : f("", !0),
|
|
809
|
-
Y(n) && !e.$slots.dataLabel ? (v(), p("text", {
|
|
810
|
-
key: 2,
|
|
811
|
-
x: n.midPointBezier.x,
|
|
812
|
-
y: n.midPointBezier.y + V.value / 3,
|
|
813
|
-
fill: C(ne)(J(n)),
|
|
814
|
-
"text-anchor": "middle",
|
|
815
|
-
"font-size": V.value
|
|
816
|
-
}, S(C(s)(M.value.style.weightLabels.formatter, n.weight, C(t)({
|
|
817
|
-
p: M.value.style.weightLabels.prefix,
|
|
818
|
-
v: n.weight,
|
|
819
|
-
s: M.value.style.weightLabels.suffix,
|
|
820
|
-
r: M.value.style.weightLabels.rounding
|
|
821
|
-
}), { ...n })), 9, Ke)) : f("", !0)
|
|
822
|
-
]))), 256))])) : (v(), p("g", qe, [(v(!0), p(l, null, b(I.value, (e, t) => (v(), p("line", {
|
|
823
|
-
key: `relation_${t}`,
|
|
824
|
-
stroke: J(e),
|
|
825
|
-
"stroke-width": $t(e),
|
|
826
|
-
style: _(Wt(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": L.value.hasOwnProperty("id") && R.value.includes(e.id) }),
|
|
832
|
-
"stroke-linecap": "round"
|
|
833
|
-
}, null, 14, Je))), 128)), (v(!0), p(l, null, b(I.value, (n, r) => (v(), p("g", Ye, [
|
|
834
|
-
Y(n) ? x(e.$slots, "dataLabel", Ee({
|
|
835
|
-
key: 0,
|
|
836
|
-
ref_for: !0
|
|
837
|
-
}, {
|
|
838
|
-
x: n.midPointLine.x,
|
|
839
|
-
y: n.midPointLine.y,
|
|
840
|
-
color: J(n),
|
|
841
|
-
weight: n.weight,
|
|
842
|
-
fontSize: V.value
|
|
843
|
-
}), void 0, !0) : f("", !0),
|
|
844
|
-
Y(n) && !e.$slots.dataLabel && M.value.style.weightLabels.show ? (v(), p("circle", {
|
|
845
|
-
key: 1,
|
|
846
|
-
cx: n.midPointLine.x,
|
|
847
|
-
cy: n.midPointLine.y,
|
|
848
|
-
fill: J(n),
|
|
849
|
-
r: V.value,
|
|
850
|
-
stroke: M.value.style.backgroundColor,
|
|
851
|
-
"stroke-width": "1"
|
|
852
|
-
}, null, 8, Xe)) : f("", !0),
|
|
853
|
-
Y(n) && !e.$slots.dataLabel && M.value.style.weightLabels.show ? (v(), p("text", {
|
|
854
|
-
key: 2,
|
|
855
|
-
x: n.midPointLine.x,
|
|
856
|
-
y: n.midPointLine.y + V.value / 3,
|
|
857
|
-
fill: C(ne)(J(n)),
|
|
858
|
-
"text-anchor": "middle",
|
|
859
|
-
"font-size": V.value
|
|
860
|
-
}, S(C(s)(M.value.style.weightLabels.formatter, n.weight, C(t)({
|
|
861
|
-
p: M.value.style.weightLabels.prefix,
|
|
862
|
-
v: n.weight,
|
|
863
|
-
s: M.value.style.weightLabels.suffix,
|
|
864
|
-
r: M.value.style.weightLabels.rounding
|
|
865
|
-
}), { ...n })), 9, Ze)) : f("", !0)
|
|
866
|
-
]))), 256))])),
|
|
867
|
-
(v(!0), p(l, null, b(F.value, (e, n) => (v(), p("text", {
|
|
868
|
-
key: `plot_text_${n}`,
|
|
869
|
-
"text-anchor": Gt(e),
|
|
870
|
-
transform: Jt(e),
|
|
871
|
-
x: Kt(e),
|
|
872
|
-
y: e.y + 5,
|
|
873
|
-
class: "vue-ui-relation-circle-legend",
|
|
874
|
-
"transform-origin": "start",
|
|
875
|
-
"font-weight": L.value.id === e.id ? "900" : "400",
|
|
876
|
-
style: _(`font-family:${M.value.style.fontFamily};${qt(e)};cursor:${N.value ? "pointer" : "default"}`),
|
|
877
|
-
"font-size": U.value,
|
|
878
|
-
fill: M.value.style.labels.color,
|
|
879
|
-
"text-decoration": n === X.value || n === A.value ? "underline" : void 0,
|
|
880
|
-
onClick: (t) => Qt(e, n),
|
|
881
|
-
onMouseenter: (t) => Yt(e, n),
|
|
882
|
-
onMouseleave: (t) => Xt(e, n)
|
|
883
|
-
}, [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)({
|
|
884
|
-
p: M.value.style.weightLabels.prefix,
|
|
885
|
-
v: e.totalWeight,
|
|
886
|
-
s: M.value.style.weightLabels.suffix,
|
|
887
|
-
r: M.value.style.weightLabels.rounding
|
|
888
|
-
}), { ...e })) + ") ", 1)], 64))], 44, Qe))), 128)),
|
|
889
|
-
(v(!0), p(l, null, b(F.value, (e, t) => (v(), p("circle", {
|
|
890
|
-
cx: e.x,
|
|
891
|
-
cy: e.y,
|
|
892
|
-
key: `plot_${t}`,
|
|
893
|
-
style: _(`${Ut(e)}; transition: r 0.2s ease-in-out; cursor:${N.value ? "pointer" : "default"}`),
|
|
894
|
-
class: "vue-ui-relation-circle-plot",
|
|
895
|
-
fill: M.value.style.plot.useSerieColor ? e.color : M.value.style.plot.color,
|
|
896
|
-
stroke: M.value.style.backgroundColor,
|
|
897
|
-
"stroke-width": "1",
|
|
898
|
-
r: H.value * (t === X.value || t === A.value ? 2 : 1),
|
|
899
|
-
onClick: (n) => Qt(e, t),
|
|
900
|
-
onMouseenter: (n) => Yt(e, t),
|
|
901
|
-
onMouseleave: (n) => Xt(e, t)
|
|
902
|
-
}, null, 44, $e))), 128)),
|
|
903
|
-
x(e.$slots, "svg", { svg: {
|
|
904
|
-
...W.value,
|
|
905
|
-
isPrintingImg: C(Ct) || C(wt) || O.value,
|
|
906
|
-
isPrintingSvg: k.value
|
|
907
|
-
} }, void 0, !0)
|
|
908
|
-
], 42, ze)), e.$slots.hint ? (v(), p("div", et, [x(e.$slots, "hint", g(h({
|
|
909
|
-
hint: M.value.a11y.translations.keyboardNavigation,
|
|
910
|
-
isVisible: j.value
|
|
911
|
-
})), void 0, !0)])) : f("", !0)]),
|
|
912
|
-
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),
|
|
913
|
-
e.$slots.source ? (v(), p("div", {
|
|
914
|
-
key: 6,
|
|
915
|
-
ref_key: "source",
|
|
916
|
-
ref: ft,
|
|
917
|
-
dir: "auto"
|
|
918
|
-
}, [x(e.$slots, "source", {}, void 0, !0)], 512)) : f("", !0),
|
|
919
|
-
x(e.$slots, "skeleton", {}, () => [C(gt) ? (v(), d(le, { key: 0 })) : f("", !0)], !0)
|
|
920
|
-
], 44, Ie));
|
|
921
|
-
}
|
|
922
|
-
}, [["__scopeId", "data-v-dc8435a4"]]);
|
|
923
|
-
//#endregion
|
|
924
|
-
export { Fe as n, nt as t };
|