vue-data-ui 3.17.13 → 3.18.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +1 -1
- package/dist/A11yDataTable-q2-8fSlJ.js +45 -0
- package/dist/Arrow-BU2Z7mfz.js +116 -0
- package/dist/BaseDraggableDialog-LE75fWYz.js +272 -0
- package/dist/BaseIcon-CL6Y7alf.js +499 -0
- package/dist/BaseLegendToggle-BvPOFMVZ.js +56 -0
- package/dist/BaseScanner-C7dmAref.js +27 -0
- package/dist/BaseZoomControls-DSwf4HhS.js +111 -0
- package/dist/ColorPicker-BGbMrtup.js +255 -0
- package/dist/DataTable-ZG4GX2Zg.js +150 -0
- package/dist/Legend-BPb8i4aC.js +114 -0
- package/dist/NonSvgPenAndPaper-BT3YMjgo.js +577 -0
- package/dist/PackageVersion-B1cPtZ3Q.js +11 -0
- package/dist/PenAndPaper-DxBCVZAx.js +461 -0
- package/dist/RecursiveCircles-DPpLel6f.js +117 -0
- package/dist/RecursiveLabels-DBMJf_to.js +56 -0
- package/dist/RecursiveLinks-D06dBL4a.js +78 -0
- package/dist/Shape-Dbug7CtK.js +141 -0
- package/dist/Slicer-SEdaKYPX.js +1144 -0
- package/dist/SlicerPreview-BLlQTUI_.js +1523 -0
- package/dist/SparkTooltip-BaONR2nq.js +93 -0
- package/dist/Title-ByyzJzpc.js +87 -0
- package/dist/Tooltip-V6Z0Ko-1.js +307 -0
- package/dist/UserOptions-Gaw1761w.js +1407 -0
- package/dist/_plugin-vue_export-helper-Dq1MygBL.js +8 -0
- package/dist/canvas-lib-DTaADQOK.js +79 -0
- package/dist/components/arrow.js +2 -5
- package/dist/components/vue-ui-3d-bar.js +2 -5
- package/dist/components/vue-ui-accordion.js +2 -5
- package/dist/components/vue-ui-age-pyramid.js +2 -5
- package/dist/components/vue-ui-annotator.js +2 -5
- package/dist/components/vue-ui-bullet.js +2 -5
- package/dist/components/vue-ui-bump.js +2 -5
- package/dist/components/vue-ui-candlestick.js +2 -5
- package/dist/components/vue-ui-carousel-table.js +2 -5
- package/dist/components/vue-ui-chestnut.js +2 -5
- package/dist/components/vue-ui-chord.js +2 -5
- package/dist/components/vue-ui-circle-pack.js +2 -5
- package/dist/components/vue-ui-cursor.js +2 -5
- package/dist/components/vue-ui-dag.js +2 -5
- package/dist/components/vue-ui-dashboard.js +2 -5
- package/dist/components/vue-ui-digits.js +2 -5
- package/dist/components/vue-ui-donut-evolution.js +2 -5
- package/dist/components/vue-ui-donut.js +2 -5
- package/dist/components/vue-ui-dumbbell.js +2 -5
- package/dist/components/vue-ui-flow.js +2 -5
- package/dist/components/vue-ui-funnel.js +2 -5
- package/dist/components/vue-ui-galaxy.js +2 -5
- package/dist/components/vue-ui-gauge.js +2 -5
- package/dist/components/vue-ui-geo.js +2 -5
- package/dist/components/vue-ui-gizmo.js +2 -5
- package/dist/components/vue-ui-heatmap.js +2 -5
- package/dist/components/vue-ui-history-plot.js +2 -5
- package/dist/components/vue-ui-horizontal-bar.js +2 -5
- package/dist/components/vue-ui-icon.js +2 -5
- package/dist/components/vue-ui-kpi.js +2 -5
- package/dist/components/vue-ui-mini-loader.js +2 -5
- package/dist/components/vue-ui-molecule.js +2 -5
- package/dist/components/vue-ui-mood-radar.js +2 -5
- package/dist/components/vue-ui-nested-donuts.js +2 -5
- package/dist/components/vue-ui-onion.js +2 -5
- package/dist/components/vue-ui-parallel-coordinate-plot.js +2 -5
- package/dist/components/vue-ui-pattern-seed.js +2 -5
- package/dist/components/vue-ui-pattern.js +2 -5
- package/dist/components/vue-ui-quadrant.js +2 -5
- package/dist/components/vue-ui-quick-chart.js +2 -5
- package/dist/components/vue-ui-radar.js +2 -5
- package/dist/components/vue-ui-rating.js +2 -5
- package/dist/components/vue-ui-relation-circle.js +2 -5
- package/dist/components/vue-ui-ridgeline.js +2 -5
- package/dist/components/vue-ui-rings.js +2 -5
- package/dist/components/vue-ui-scatter.js +2 -5
- package/dist/components/vue-ui-skeleton.js +2 -5
- package/dist/components/vue-ui-smiley.js +2 -5
- package/dist/components/vue-ui-spark-trend.js +2 -5
- package/dist/components/vue-ui-sparkbar.js +2 -5
- package/dist/components/vue-ui-sparkgauge.js +2 -5
- package/dist/components/vue-ui-sparkhistogram.js +2 -5
- package/dist/components/vue-ui-sparkline.js +2 -5
- package/dist/components/vue-ui-sparkstackbar.js +2 -5
- package/dist/components/vue-ui-stackbar.js +2 -5
- package/dist/components/vue-ui-stackline.js +2 -5
- package/dist/components/vue-ui-strip-plot.js +2 -5
- package/dist/components/vue-ui-table-heatmap.js +2 -5
- package/dist/components/vue-ui-table-sparkline.js +2 -5
- package/dist/components/vue-ui-table.js +2 -5
- package/dist/components/vue-ui-thermometer.js +2 -5
- package/dist/components/vue-ui-timer.js +2 -5
- package/dist/components/vue-ui-tiremarks.js +2 -5
- package/dist/components/vue-ui-treemap.js +2 -5
- package/dist/components/vue-ui-vertical-bar.js +2 -5
- package/dist/components/vue-ui-waffle.js +2 -5
- package/dist/components/vue-ui-wheel.js +2 -5
- package/dist/components/vue-ui-word-cloud.js +2 -5
- package/dist/components/vue-ui-world.js +2 -5
- package/dist/components/vue-ui-xy-canvas.js +2 -5
- package/dist/components/vue-ui-xy.js +2 -5
- package/dist/dom-to-png-C9UOX1d2.js +237 -0
- package/dist/exposedLib-BQjH823l.js +19 -0
- package/dist/geoProjections-CQIkC70z.js +146 -0
- package/dist/img-NMY-_LiJ.js +74 -0
- package/dist/labelUtils-BiSegLOT.js +19 -0
- package/dist/lib-B83ZCydz.js +1879 -0
- package/dist/patternUtils-B7BWu5bV.js +258 -0
- package/dist/pdf-Ey2KFETK.js +90 -0
- package/dist/rolldown-runtime-CAFD8bLK.js +11 -0
- package/dist/style.css +2 -1
- package/dist/types/arrow.d.ts +1 -1
- package/dist/types/utils.d.ts +23 -0
- package/dist/types/vue-data-ui.d.ts +4766 -630
- package/dist/types/vue-ui-3d-bar.d.ts +64 -9
- package/dist/types/vue-ui-accordion.d.ts +4 -3
- package/dist/types/vue-ui-age-pyramid.d.ts +79 -9
- package/dist/types/vue-ui-annotator.d.ts +3 -5
- package/dist/types/vue-ui-bullet.d.ts +60 -9
- package/dist/types/vue-ui-bump.d.ts +65 -9
- package/dist/types/vue-ui-candlestick.d.ts +83 -9
- package/dist/types/vue-ui-carousel-table.d.ts +36 -6
- package/dist/types/vue-ui-chestnut.d.ts +66 -9
- package/dist/types/vue-ui-chord.d.ts +78 -9
- package/dist/types/vue-ui-circle-pack.d.ts +86 -9
- package/dist/types/vue-ui-cursor.d.ts +4 -2
- package/dist/types/vue-ui-dag.d.ts +92 -9
- package/dist/types/vue-ui-dashboard.d.ts +43 -6
- package/dist/types/vue-ui-digits.d.ts +4 -2
- package/dist/types/vue-ui-donut-evolution.d.ts +70 -9
- package/dist/types/vue-ui-donut.d.ts +92 -9
- package/dist/types/vue-ui-dumbbell.d.ts +65 -9
- package/dist/types/vue-ui-flow.d.ts +79 -9
- package/dist/types/vue-ui-funnel.d.ts +55 -9
- package/dist/types/vue-ui-galaxy.d.ts +83 -9
- package/dist/types/vue-ui-gauge.d.ts +64 -9
- package/dist/types/vue-ui-geo.d.ts +71 -9
- package/dist/types/vue-ui-gizmo.d.ts +17 -6
- package/dist/types/vue-ui-heatmap.d.ts +73 -9
- package/dist/types/vue-ui-history-plot.d.ts +82 -9
- package/dist/types/vue-ui-horizontal-bar.d.ts +84 -9
- package/dist/types/vue-ui-icon.d.ts +2 -2
- package/dist/types/vue-ui-kpi.d.ts +21 -7
- package/dist/types/vue-ui-mini-loader.d.ts +5 -3
- package/dist/types/vue-ui-molecule.d.ts +86 -9
- package/dist/types/vue-ui-mood-radar.d.ts +66 -9
- package/dist/types/vue-ui-nested-donuts.d.ts +80 -9
- package/dist/types/vue-ui-onion.d.ts +77 -9
- package/dist/types/vue-ui-parallel-coordinate-plot.d.ts +92 -9
- package/dist/types/vue-ui-pattern-seed.d.ts +1 -1
- package/dist/types/vue-ui-pattern.d.ts +2 -2
- package/dist/types/vue-ui-quadrant.d.ts +86 -9
- package/dist/types/vue-ui-quick-chart.d.ts +79 -9
- package/dist/types/vue-ui-radar.d.ts +83 -9
- package/dist/types/vue-ui-rating.d.ts +22 -6
- package/dist/types/vue-ui-relation-circle.d.ts +66 -9
- package/dist/types/vue-ui-ridgeline.d.ts +69 -9
- package/dist/types/vue-ui-rings.d.ts +70 -9
- package/dist/types/vue-ui-scatter.d.ts +67 -9
- package/dist/types/vue-ui-skeleton.d.ts +3 -2
- package/dist/types/vue-ui-smiley.d.ts +3 -2
- package/dist/types/vue-ui-spark-trend.d.ts +14 -6
- package/dist/types/vue-ui-sparkbar.d.ts +27 -6
- package/dist/types/vue-ui-sparkgauge.d.ts +20 -6
- package/dist/types/vue-ui-sparkhistogram.d.ts +24 -6
- package/dist/types/vue-ui-sparkline.d.ts +35 -6
- package/dist/types/vue-ui-sparkstackbar.d.ts +35 -6
- package/dist/types/vue-ui-stackbar.d.ts +85 -9
- package/dist/types/vue-ui-stackline.d.ts +81 -9
- package/dist/types/vue-ui-strip-plot.d.ts +66 -9
- package/dist/types/vue-ui-table-heatmap.d.ts +52 -6
- package/dist/types/vue-ui-table-sparkline.d.ts +30 -6
- package/dist/types/vue-ui-table.d.ts +10 -2
- package/dist/types/vue-ui-thermometer.d.ts +46 -9
- package/dist/types/vue-ui-timer.d.ts +31 -5
- package/dist/types/vue-ui-tiremarks.d.ts +46 -9
- package/dist/types/vue-ui-treemap.d.ts +73 -9
- package/dist/types/vue-ui-vertical-bar.d.ts +2 -2
- package/dist/types/vue-ui-waffle.d.ts +72 -9
- package/dist/types/vue-ui-wheel.d.ts +46 -9
- package/dist/types/vue-ui-word-cloud.d.ts +73 -9
- package/dist/types/vue-ui-world.d.ts +68 -9
- package/dist/types/vue-ui-xy-canvas.d.ts +75 -9
- package/dist/types/vue-ui-xy.d.ts +108 -10
- package/dist/useAutoSizeLabelsInsideViewbox-De0rTecW.js +50 -0
- package/dist/useChartAccessibility-Do37qcw2.js +12 -0
- package/dist/useConfig-KnOLHtlJ.js +7419 -0
- package/dist/useFitSvgText-C-MEdAfe.js +63 -0
- package/dist/useNestedProp-CcxL1gUU.js +10 -0
- package/dist/useObjectBindings-Dc8Rf6Qy.js +189 -0
- package/dist/usePanZoom-B-4M_gmY.js +157 -0
- package/dist/usePrefersMotion-BywLbIko.js +15 -0
- package/dist/usePrinter-CMLF900n.js +49 -0
- package/dist/useResponsive-CrAInupd.js +19 -0
- package/dist/useStableElementSize-0I1IpHPl.js +77 -0
- package/dist/useSvgExport-Dtu973wa.js +755 -0
- package/dist/useTableResponsive-DrM1xqII.js +24 -0
- package/dist/useThemeCheck-rFK9Zlb_.js +24 -0
- package/dist/useTimeLabelCollider-Dm55Emzg.js +57 -0
- package/dist/useTimeLabels-C0x7zUXP.js +272 -0
- package/dist/useUserOptionState-CjPJPTg2.js +15 -0
- package/dist/utils.js +27 -44
- package/dist/vClickOutside-CbX_bC9A.js +13 -0
- package/dist/vue-data-ui-D1REqS_k.js +274 -0
- package/dist/vue-data-ui.js +76 -167
- package/dist/vue-ui-3d-bar-vO_kSCd6.js +1747 -0
- package/dist/vue-ui-accordion-Cf-jZELj.js +81 -0
- package/dist/vue-ui-age-pyramid-DHXhrP_3.js +1226 -0
- package/dist/vue-ui-annotator-B0o6czmF.js +2899 -0
- package/dist/vue-ui-bullet-C93-cf0H.js +700 -0
- package/dist/vue-ui-bump-C_Szk9AZ.js +1239 -0
- package/dist/vue-ui-candlestick-6JdMEJKO.js +1802 -0
- package/dist/vue-ui-carousel-table-CZ_HK0Iw.js +445 -0
- package/dist/vue-ui-chestnut-B8ixU585.js +2000 -0
- package/dist/vue-ui-chord-DC5sLapz.js +1381 -0
- package/dist/vue-ui-circle-pack-CsmSEwt3.js +1183 -0
- package/dist/vue-ui-cursor-B-QODIL3.js +283 -0
- package/dist/vue-ui-dag-C9LYfjS_.js +2899 -0
- package/dist/vue-ui-dashboard-D-f4ZaLi.js +503 -0
- package/dist/vue-ui-digits-CcB3odN7.js +209 -0
- package/dist/vue-ui-donut-DR0ngnZC.js +2396 -0
- package/dist/vue-ui-donut-evolution-BXpOscCe.js +1490 -0
- package/dist/vue-ui-dumbbell-CB_clJWA.js +1517 -0
- package/dist/vue-ui-flow-CUiOAEy1.js +1223 -0
- package/dist/vue-ui-funnel-BAlGDK0o.js +767 -0
- package/dist/vue-ui-galaxy-DbYNfSHb.js +1062 -0
- package/dist/vue-ui-gauge-Cie7jykM.js +910 -0
- package/dist/vue-ui-geo-Ce_gBRye.js +1504 -0
- package/dist/vue-ui-gizmo-B9POi_SN.js +225 -0
- package/dist/vue-ui-heatmap-DFfRSbnk.js +1556 -0
- package/dist/vue-ui-history-plot-DHp5WFgx.js +1551 -0
- package/dist/vue-ui-horizontal-bar-DI4yoARv.js +1669 -0
- package/dist/vue-ui-kpi-oUfso4UP.js +96 -0
- package/dist/vue-ui-mini-loader-aZMi1_uX.js +125 -0
- package/dist/vue-ui-molecule-D72kzel_.js +912 -0
- package/dist/vue-ui-mood-radar-Tw2ZFP7Y.js +1138 -0
- package/dist/vue-ui-nested-donuts-Bza1LczX.js +1472 -0
- package/dist/vue-ui-onion-BOuuib5d.js +1188 -0
- package/dist/vue-ui-parallel-coordinate-plot-BuQUq6-o.js +1413 -0
- package/dist/vue-ui-pattern-Bj-IPFr2.js +154 -0
- package/dist/vue-ui-pattern-seed-abRweCDE.js +61 -0
- package/dist/vue-ui-quadrant-zNFIXNt9.js +1966 -0
- package/dist/vue-ui-quick-chart-B1a8QVUn.js +2459 -0
- package/dist/vue-ui-radar-VFn-YP_2.js +1214 -0
- package/dist/vue-ui-rating-Dxgn21FA.js +343 -0
- package/dist/vue-ui-relation-circle-B0sZaCgX.js +914 -0
- package/dist/vue-ui-ridgeline-BsBAbg5V.js +1612 -0
- package/dist/vue-ui-rings-CDwUzMF-.js +1231 -0
- package/dist/vue-ui-scatter-Du_b-zM8.js +2380 -0
- package/dist/vue-ui-skeleton-BAq6J_6G.js +2556 -0
- package/dist/vue-ui-smiley-CoHvkS0c.js +356 -0
- package/dist/vue-ui-spark-trend-BmCcJ17C.js +438 -0
- package/dist/vue-ui-sparkbar-9z05IMx8.js +393 -0
- package/dist/vue-ui-sparkgauge-BlWri9DP.js +255 -0
- package/dist/vue-ui-sparkhistogram-CHZTt8d8.js +560 -0
- package/dist/vue-ui-sparkline-DirLW9Nd.js +1503 -0
- package/dist/vue-ui-sparkstackbar-Dk6cEI2o.js +660 -0
- package/dist/vue-ui-stackbar-DNIrGHkt.js +2235 -0
- package/dist/vue-ui-stackline-HoWn_ur2.js +2362 -0
- package/dist/vue-ui-strip-plot-Bi8u_fLr.js +1328 -0
- package/dist/vue-ui-table-XLjOOfdI.js +1338 -0
- package/dist/vue-ui-table-heatmap-DvnFiveI.js +334 -0
- package/dist/vue-ui-table-sparkline-CSZf8XxP.js +697 -0
- package/dist/vue-ui-thermometer-7eUO_7CP.js +753 -0
- package/dist/vue-ui-timer-DCbxsREb.js +439 -0
- package/dist/vue-ui-tiremarks-p_sfTufv.js +542 -0
- package/dist/vue-ui-treemap-BdZOW7TM.js +1575 -0
- package/dist/vue-ui-waffle-Bf9dWWCM.js +1350 -0
- package/dist/vue-ui-wheel-CZrIiB0K.js +875 -0
- package/dist/vue-ui-word-cloud-BeLjxoRe.js +1644 -0
- package/dist/vue-ui-world-D9ahzEQ2.js +14252 -0
- package/dist/vue-ui-xy-DrvbVuHO.js +4063 -0
- package/dist/vue-ui-xy-canvas-DU7vFrQr.js +1774 -0
- package/dist/vue_ui_3d_bar-CXKqO5Ej.js +185 -0
- package/dist/vue_ui_age_pyramid-BON8QI6X.js +301 -0
- package/dist/vue_ui_bullet-CE5sFT7u.js +186 -0
- package/dist/vue_ui_bump-frnXaXul.js +201 -0
- package/dist/vue_ui_candlestick-sY6UtOop.js +374 -0
- package/dist/vue_ui_chestnut-BiUZFv40.js +305 -0
- package/dist/vue_ui_chord-DpyR_b9A.js +275 -0
- package/dist/vue_ui_circle_pack-DBKz_Fi_.js +130 -0
- package/dist/vue_ui_dag-Ci_MOnvd.js +258 -0
- package/dist/vue_ui_donut-Cx2_BGcQ.js +358 -0
- package/dist/vue_ui_donut_evolution-CAJefrHs.js +717 -0
- package/dist/vue_ui_dumbbell-CClzAZTN.js +304 -0
- package/dist/vue_ui_flow-CCHO1Lo9.js +238 -0
- package/dist/vue_ui_funnel-h8q2mRpC.js +234 -0
- package/dist/vue_ui_galaxy-70vtkEBw.js +265 -0
- package/dist/vue_ui_gauge-C17CgfzN.js +178 -0
- package/dist/vue_ui_geo-C0UbQ0Lc.js +248 -0
- package/dist/vue_ui_heatmap-BqPP3J4M.js +319 -0
- package/dist/vue_ui_history_plot-C5nytDHh.js +413 -0
- package/dist/vue_ui_horizontal_bar-Bqxorkc_.js +341 -0
- package/dist/vue_ui_molecule-Dka4JBOp.js +231 -0
- package/dist/vue_ui_mood_radar-Dg4ijm53.js +281 -0
- package/dist/vue_ui_nested_donuts-BY9cOoHF.js +273 -0
- package/dist/vue_ui_onion-DTV9cup-.js +293 -0
- package/dist/vue_ui_parallel_coordinate_plot-CNWrDh96.js +278 -0
- package/dist/vue_ui_quadrant-3kjYvxpj.js +428 -0
- package/dist/vue_ui_quick_chart--VaYQuM4.js +139 -0
- package/dist/vue_ui_radar-Dxx9GJmj.js +306 -0
- package/dist/vue_ui_relation_circle-Cr0I2SoU.js +98 -0
- package/dist/vue_ui_ridgeline-CAtYca4b.js +767 -0
- package/dist/vue_ui_rings-DXC1VeX5.js +320 -0
- package/dist/vue_ui_scatter-D2S2j0ap.js +479 -0
- package/dist/vue_ui_spark_trend-BHMQ6_1p.js +82 -0
- package/dist/vue_ui_sparkbar-BR6hbuDE.js +64 -0
- package/dist/vue_ui_sparkgauge-xfPRHnMv.js +90 -0
- package/dist/vue_ui_sparkhistogram-CJRENZ1C.js +123 -0
- package/dist/vue_ui_sparkline-wgk7yO7E.js +151 -0
- package/dist/vue_ui_sparkstackbar-C5qZMmAl.js +175 -0
- package/dist/vue_ui_stackbar-BW_C3MXw.js +412 -0
- package/dist/vue_ui_stackline-DpI2LnjO.js +426 -0
- package/dist/vue_ui_strip_plot-8ZelqC5b.js +301 -0
- package/dist/vue_ui_table_heatmap-BGUjA0WA.js +80 -0
- package/dist/vue_ui_table_sparkline-i0Q-N_we.js +124 -0
- package/dist/vue_ui_thermometer-CuN7Gpez.js +123 -0
- package/dist/vue_ui_tiremarks-A6UHC0c3.js +122 -0
- package/dist/vue_ui_treemap-BQp06q-g.js +328 -0
- package/dist/vue_ui_vertical_bar-CJSD1FZS.js +247 -0
- package/dist/vue_ui_waffle-C_Ev4l7B.js +292 -0
- package/dist/vue_ui_wheel-DdkTPXJU.js +133 -0
- package/dist/vue_ui_word_cloud-B1PbsYPc.js +254 -0
- package/dist/vue_ui_xy-BYPqfYyx.js +482 -0
- package/dist/vue_ui_xy_canvas-CMHGNrLf.js +408 -0
- package/package.json +7 -7
- package/dist/A11yDataTable-BpmuNomI.js +0 -54
- package/dist/Arrow-dSvLFssU.js +0 -101
- package/dist/BaseDraggableDialog-Di8Hlru3.js +0 -249
- package/dist/BaseIcon-DX0hTWa-.js +0 -476
- package/dist/BaseLegendToggle-cMP8M2u0.js +0 -47
- package/dist/BaseScanner-C2j3TsSY.js +0 -36
- package/dist/BaseZoomControls-CVSC1-SU.js +0 -123
- package/dist/ColorPicker-bAxGcXK0.js +0 -271
- package/dist/DataTable-cMnb68Ik.js +0 -145
- package/dist/Legend-DGN5lY60.js +0 -104
- package/dist/NonSvgPenAndPaper-B6E0zEYe.js +0 -573
- package/dist/PackageVersion-BfrCAH6_.js +0 -10
- package/dist/PenAndPaper-CJDoB5H9.js +0 -527
- package/dist/RecursiveCircles-BE6GoMmo.js +0 -101
- package/dist/RecursiveLabels-BhQMS9Sm.js +0 -55
- package/dist/RecursiveLinks-BDwyYfP-.js +0 -83
- package/dist/Shape-CxJ5_Rre.js +0 -116
- package/dist/Slicer-D7UcO8sN.js +0 -1145
- package/dist/SlicerPreview-D_CgrN_7.js +0 -1580
- package/dist/SparkTooltip-D4bM-kfz.js +0 -68
- package/dist/Title-BbKoiBk2.js +0 -88
- package/dist/Tooltip-Cvt7Fi0Q.js +0 -299
- package/dist/UserOptions-DVduN6X7.js +0 -1474
- package/dist/_plugin-vue_export-helper-CHgC5LLL.js +0 -9
- package/dist/dom-to-png-DGvx6i5V.js +0 -262
- package/dist/exposedLib-sJvY1pST.js +0 -22
- package/dist/geoProjections-BFq2sOBY.js +0 -162
- package/dist/img-CjTQXS0U.js +0 -57
- package/dist/labelUtils-DX9oyq3C.js +0 -26
- package/dist/lib-DMzrGQHK.js +0 -2477
- package/dist/patternUtils-BINhU4Ky.js +0 -615
- package/dist/pdf-C4H4o1Cj.js +0 -88
- package/dist/useAutoSizeLabelsInsideViewbox-izlGDfwu.js +0 -55
- package/dist/useChartAccessibility-cp6XQtqi.js +0 -15
- package/dist/useConfig-CG4HT3wS.js +0 -7901
- package/dist/useFitSvgText-2crs6Fv5.js +0 -69
- package/dist/useNestedProp-DH0BEVVS.js +0 -13
- package/dist/useObjectBindings-Dixg-RIe.js +0 -228
- package/dist/usePanZoom-BbDhcKWf.js +0 -141
- package/dist/usePrefersMotion-Co0nj1eS.js +0 -17
- package/dist/usePrinter-C4t8DdQ-.js +0 -51
- package/dist/useResponsive-DfdjqQps.js +0 -195
- package/dist/useStableElementSize-C48ZVcZQ.js +0 -77
- package/dist/useSvgExport-BTG4hVPO.js +0 -870
- package/dist/useTableResponsive-BpfiEtzR.js +0 -26
- package/dist/useThemeCheck-C9Ccl7U9.js +0 -36
- package/dist/useTimeLabelCollider-D3JeJ6Ye.js +0 -86
- package/dist/useTimeLabels-Cv0tD9In.js +0 -307
- package/dist/useUserOptionState-B7Ej974k.js +0 -19
- package/dist/vClickOutside-C6WiFswA.js +0 -13
- package/dist/vue-data-ui-D1ZI7Y4l.js +0 -433
- package/dist/vue-ui-3d-bar-DEjKYzI5.js +0 -1824
- package/dist/vue-ui-accordion-DFtpH_16.js +0 -92
- package/dist/vue-ui-age-pyramid-LiC9hTjP.js +0 -1179
- package/dist/vue-ui-annotator-DrKnQoHf.js +0 -2991
- package/dist/vue-ui-bullet-DdxEINdq.js +0 -769
- package/dist/vue-ui-bump-CdgO1V7z.js +0 -1250
- package/dist/vue-ui-candlestick-DxJnPwto.js +0 -1775
- package/dist/vue-ui-carousel-table-CMefu5TI.js +0 -487
- package/dist/vue-ui-chestnut-BnGN72PO.js +0 -2001
- package/dist/vue-ui-chord-DWyar45U.js +0 -1457
- package/dist/vue-ui-circle-pack-CQ8vF2XH.js +0 -1076
- package/dist/vue-ui-cursor-HHOdkmyB.js +0 -260
- package/dist/vue-ui-dag-BDWPBElq.js +0 -3209
- package/dist/vue-ui-dashboard-Dg_I3X2a.js +0 -627
- package/dist/vue-ui-digits-CZmdir8V.js +0 -211
- package/dist/vue-ui-donut-BKegKHxj.js +0 -2608
- package/dist/vue-ui-donut-evolution-047dE4Lu.js +0 -1578
- package/dist/vue-ui-dumbbell-BL4ZMChj.js +0 -1552
- package/dist/vue-ui-flow-BAqtyunQ.js +0 -1279
- package/dist/vue-ui-funnel-Pl2sEOZs.js +0 -823
- package/dist/vue-ui-galaxy-CBF5Wsax.js +0 -1108
- package/dist/vue-ui-gauge-COV_S0Vp.js +0 -955
- package/dist/vue-ui-geo-CaPXElPf.js +0 -1510
- package/dist/vue-ui-gizmo-Csn7up96.js +0 -238
- package/dist/vue-ui-heatmap-Cpb0BYLa.js +0 -1694
- package/dist/vue-ui-history-plot-ZZEdzFCE.js +0 -1564
- package/dist/vue-ui-horizontal-bar-BonPYUZf.js +0 -1735
- package/dist/vue-ui-kpi-DoHhSsDK.js +0 -130
- package/dist/vue-ui-mini-loader-DOTBVCLE.js +0 -138
- package/dist/vue-ui-molecule-mVYnXouV.js +0 -945
- package/dist/vue-ui-mood-radar-DPvwnc3z.js +0 -1197
- package/dist/vue-ui-nested-donuts-C7E6TXrZ.js +0 -1702
- package/dist/vue-ui-onion-BGIlFhGB.js +0 -1207
- package/dist/vue-ui-parallel-coordinate-plot-C6G_A9ua.js +0 -1432
- package/dist/vue-ui-pattern-mXZW_pvA.js +0 -146
- package/dist/vue-ui-pattern-seed-BcNlxb2i.js +0 -36
- package/dist/vue-ui-quadrant-CVpIeYOB.js +0 -1918
- package/dist/vue-ui-quick-chart-CcV8qn9-.js +0 -2514
- package/dist/vue-ui-radar-G4AV1rBo.js +0 -1259
- package/dist/vue-ui-rating-CqPlP88P.js +0 -370
- package/dist/vue-ui-relation-circle-CkZ8oFVV.js +0 -856
- package/dist/vue-ui-ridgeline-CBTyYn6Q.js +0 -1737
- package/dist/vue-ui-rings-CSIOqFiP.js +0 -1256
- package/dist/vue-ui-scatter-AuC46ufT.js +0 -2345
- package/dist/vue-ui-skeleton-YD6rZjY_.js +0 -2475
- package/dist/vue-ui-smiley-CY0WFv2j.js +0 -391
- package/dist/vue-ui-spark-trend-D8KGIt-R.js +0 -423
- package/dist/vue-ui-sparkbar-BjWGJjzN.js +0 -424
- package/dist/vue-ui-sparkgauge-Dab5mss7.js +0 -285
- package/dist/vue-ui-sparkhistogram-D0rsmiPh.js +0 -559
- package/dist/vue-ui-sparkline-BCaauQuX.js +0 -1550
- package/dist/vue-ui-sparkstackbar-NT5yD6xA.js +0 -672
- package/dist/vue-ui-stackbar-ChBk_A1c.js +0 -2393
- package/dist/vue-ui-stackline-Cujamlze.js +0 -2490
- package/dist/vue-ui-strip-plot-CGBumG6I.js +0 -1293
- package/dist/vue-ui-table-BX2iMku4.js +0 -1726
- package/dist/vue-ui-table-heatmap-KXgXYVXm.js +0 -353
- package/dist/vue-ui-table-sparkline-C3NWnry0.js +0 -803
- package/dist/vue-ui-thermometer-DvdceZB1.js +0 -743
- package/dist/vue-ui-timer-XWAbvuAY.js +0 -504
- package/dist/vue-ui-tiremarks-B-YI1RlT.js +0 -578
- package/dist/vue-ui-treemap-AzorGfmd.js +0 -1757
- package/dist/vue-ui-waffle-CKtUvdTE.js +0 -1442
- package/dist/vue-ui-wheel-CnsLEArZ.js +0 -908
- package/dist/vue-ui-word-cloud-iAme2ihe.js +0 -1644
- package/dist/vue-ui-world-D5rrC9rw.js +0 -14452
- package/dist/vue-ui-xy-C_Q9chQe.js +0 -4468
- package/dist/vue-ui-xy-canvas-DG0299qE.js +0 -2107
- package/dist/vue_ui_3d_bar-CL0iX8Qi.js +0 -22
- package/dist/vue_ui_age_pyramid-8H8WSL7J.js +0 -22
- package/dist/vue_ui_bullet-Ckqieba5.js +0 -22
- package/dist/vue_ui_bump-CIht647H.js +0 -22
- package/dist/vue_ui_candlestick-BAMn-VGw.js +0 -22
- package/dist/vue_ui_chestnut-BloFvDuV.js +0 -22
- package/dist/vue_ui_chord-Bc1_ocwK.js +0 -22
- package/dist/vue_ui_circle_pack-CLmw8nHe.js +0 -22
- package/dist/vue_ui_dag-ZOwuDBZ8.js +0 -22
- package/dist/vue_ui_donut-CA4dgV8J.js +0 -22
- package/dist/vue_ui_donut_evolution-DFQU-rqE.js +0 -22
- package/dist/vue_ui_dumbbell-BCOHDiPk.js +0 -22
- package/dist/vue_ui_flow-BErINgox.js +0 -22
- package/dist/vue_ui_funnel-yuaMZ-yb.js +0 -22
- package/dist/vue_ui_galaxy-D95AN4FT.js +0 -22
- package/dist/vue_ui_gauge-BMEuRC4J.js +0 -22
- package/dist/vue_ui_geo--kg4VoVX.js +0 -22
- package/dist/vue_ui_heatmap-C9u993qE.js +0 -22
- package/dist/vue_ui_history_plot-BCKk1CrQ.js +0 -22
- package/dist/vue_ui_horizontal_bar-BEagrV0T.js +0 -22
- package/dist/vue_ui_molecule-BtvlINUh.js +0 -22
- package/dist/vue_ui_mood_radar-BUs6Fdn8.js +0 -22
- package/dist/vue_ui_nested_donuts-DvTrWT_C.js +0 -22
- package/dist/vue_ui_onion-CxWH9_OZ.js +0 -22
- package/dist/vue_ui_parallel_coordinate_plot-DH3cFJ3n.js +0 -22
- package/dist/vue_ui_quadrant-DjRs--Uz.js +0 -22
- package/dist/vue_ui_quick_chart-DMCjEjPe.js +0 -22
- package/dist/vue_ui_radar-DryGBOrz.js +0 -22
- package/dist/vue_ui_relation_circle-CCroen7h.js +0 -22
- package/dist/vue_ui_ridgeline-j4rVmpEp.js +0 -22
- package/dist/vue_ui_rings-CxOrekqA.js +0 -22
- package/dist/vue_ui_scatter-Bu1EAy9H.js +0 -22
- package/dist/vue_ui_spark_trend-3BjrSprO.js +0 -22
- package/dist/vue_ui_sparkbar-BsMzz5Um.js +0 -22
- package/dist/vue_ui_sparkgauge-KnjASOZs.js +0 -22
- package/dist/vue_ui_sparkhistogram-GBdzIVvS.js +0 -22
- package/dist/vue_ui_sparkline-CQ8DJVJx.js +0 -22
- package/dist/vue_ui_sparkstackbar-BSexvOuM.js +0 -22
- package/dist/vue_ui_stackbar-CuDC4O4b.js +0 -22
- package/dist/vue_ui_stackline-QTh-nuxE.js +0 -22
- package/dist/vue_ui_strip_plot-B9ypi_F3.js +0 -22
- package/dist/vue_ui_table_heatmap-CkvipPVy.js +0 -16
- package/dist/vue_ui_table_sparkline-yQdijcyJ.js +0 -22
- package/dist/vue_ui_thermometer-BTmjRBH8.js +0 -22
- package/dist/vue_ui_tiremarks-DBotWfi8.js +0 -22
- package/dist/vue_ui_treemap-D9-AIkT-.js +0 -22
- package/dist/vue_ui_vertical_bar-CELc39b8.js +0 -18
- package/dist/vue_ui_waffle-M2h-uJQ_.js +0 -22
- package/dist/vue_ui_wheel-LqBz3lv4.js +0 -22
- package/dist/vue_ui_word_cloud-mKAtBxHR.js +0 -22
- package/dist/vue_ui_xy-esktmpg-.js +0 -22
- package/dist/vue_ui_xy_canvas-6BBDSowT.js +0 -22
|
@@ -0,0 +1,2380 @@
|
|
|
1
|
+
import { t as e } from "./rolldown-runtime-CAFD8bLK.js";
|
|
2
|
+
import { A as t, G as n, H as r, It as i, J as a, Lt as o, S as s, St as c, Tt as l, X as u, g as d, gt as f, h as p, i as m, jt as h, k as g, nt as ee, ot as te, pt as ne, t as re, ut as ie, v as _, x as ae, y as oe, zt as se } from "./lib-B83ZCydz.js";
|
|
3
|
+
import { t as ce } from "./useConfig-KnOLHtlJ.js";
|
|
4
|
+
import { t as le } from "./usePrinter-CMLF900n.js";
|
|
5
|
+
import { n as ue, t as de } from "./BaseScanner-C7dmAref.js";
|
|
6
|
+
import { t as fe } from "./useSvgExport-Dtu973wa.js";
|
|
7
|
+
import { t as pe } from "./useNestedProp-CcxL1gUU.js";
|
|
8
|
+
import { t as me } from "./useThemeCheck-rFK9Zlb_.js";
|
|
9
|
+
import { t as he } from "./img-NMY-_LiJ.js";
|
|
10
|
+
import { n as ge } from "./Title-ByyzJzpc.js";
|
|
11
|
+
import { t as _e } from "./Shape-Dbug7CtK.js";
|
|
12
|
+
import { t as ve } from "./_plugin-vue_export-helper-Dq1MygBL.js";
|
|
13
|
+
import { c as ye } from "./canvas-lib-DTaADQOK.js";
|
|
14
|
+
import { t as be } from "./useResponsive-CrAInupd.js";
|
|
15
|
+
import { t as xe } from "./BaseLegendToggle-BvPOFMVZ.js";
|
|
16
|
+
import { t as Se } from "./A11yDataTable-q2-8fSlJ.js";
|
|
17
|
+
import { t as Ce } from "./useUserOptionState-CjPJPTg2.js";
|
|
18
|
+
import { t as we } from "./useChartAccessibility-Do37qcw2.js";
|
|
19
|
+
import { t as Te } from "./Legend-BPb8i4aC.js";
|
|
20
|
+
import { t as Ee } from "./vue_ui_scatter-D2S2j0ap.js";
|
|
21
|
+
import { Fragment as v, Teleport as De, computed as y, createBlock as b, createCommentVNode as x, createElementBlock as S, createElementVNode as C, createSlots as Oe, createTextVNode as ke, createVNode as Ae, defineAsyncComponent as je, guardReactiveProps as w, mergeProps as Me, nextTick as Ne, normalizeClass as Pe, normalizeProps as T, normalizeStyle as E, onBeforeUnmount as Fe, onMounted as Ie, openBlock as D, ref as O, renderList as k, renderSlot as A, resolveDynamicComponent as Le, shallowRef as Re, toDisplayString as j, toRefs as ze, unref as M, watch as Be, withCtx as N } from "vue";
|
|
22
|
+
//#region src/components/vue-ui-scatter.vue
|
|
23
|
+
var Ve = /* @__PURE__ */ e({ default: () => vn }), He = ["id"], Ue = ["id"], We = {
|
|
24
|
+
key: 0,
|
|
25
|
+
class: "sr-only",
|
|
26
|
+
"aria-live": "polite",
|
|
27
|
+
"aria-atomic": "true"
|
|
28
|
+
}, Ge = ["id"], Ke = { style: { position: "relative" } }, qe = [
|
|
29
|
+
"xmlns",
|
|
30
|
+
"aria-describedby",
|
|
31
|
+
"viewBox"
|
|
32
|
+
], Je = ["width", "height"], Ye = { key: 1 }, Xe = [
|
|
33
|
+
"x1",
|
|
34
|
+
"x2",
|
|
35
|
+
"y1",
|
|
36
|
+
"y2",
|
|
37
|
+
"stroke",
|
|
38
|
+
"stroke-width"
|
|
39
|
+
], Ze = [
|
|
40
|
+
"x1",
|
|
41
|
+
"x2",
|
|
42
|
+
"y1",
|
|
43
|
+
"y2",
|
|
44
|
+
"stroke",
|
|
45
|
+
"stroke-width"
|
|
46
|
+
], Qe = { key: 2 }, $e = [
|
|
47
|
+
"x1",
|
|
48
|
+
"x2",
|
|
49
|
+
"y1",
|
|
50
|
+
"y2",
|
|
51
|
+
"stroke",
|
|
52
|
+
"stroke-width"
|
|
53
|
+
], et = ["opacity"], tt = [
|
|
54
|
+
"x1",
|
|
55
|
+
"x2",
|
|
56
|
+
"y1",
|
|
57
|
+
"y2",
|
|
58
|
+
"stroke",
|
|
59
|
+
"stroke-width"
|
|
60
|
+
], nt = [
|
|
61
|
+
"x",
|
|
62
|
+
"y",
|
|
63
|
+
"font-size",
|
|
64
|
+
"fill",
|
|
65
|
+
"stroke"
|
|
66
|
+
], rt = { key: 4 }, it = [
|
|
67
|
+
"x1",
|
|
68
|
+
"x2",
|
|
69
|
+
"y1",
|
|
70
|
+
"y2",
|
|
71
|
+
"stroke",
|
|
72
|
+
"stroke-width"
|
|
73
|
+
], at = ["opacity"], ot = [
|
|
74
|
+
"x1",
|
|
75
|
+
"x2",
|
|
76
|
+
"y1",
|
|
77
|
+
"y2",
|
|
78
|
+
"stroke",
|
|
79
|
+
"stroke-width"
|
|
80
|
+
], st = [
|
|
81
|
+
"x",
|
|
82
|
+
"y",
|
|
83
|
+
"font-size",
|
|
84
|
+
"fill",
|
|
85
|
+
"stroke"
|
|
86
|
+
], ct = { key: 6 }, lt = ["id"], ut = ["stop-color"], dt = ["stop-color"], ft = ["id"], pt = ["stop-color"], mt = ["stop-color"], ht = [
|
|
87
|
+
"x",
|
|
88
|
+
"y",
|
|
89
|
+
"width",
|
|
90
|
+
"height",
|
|
91
|
+
"fill",
|
|
92
|
+
"stroke",
|
|
93
|
+
"stroke-width",
|
|
94
|
+
"rx"
|
|
95
|
+
], gt = [
|
|
96
|
+
"x",
|
|
97
|
+
"y",
|
|
98
|
+
"width",
|
|
99
|
+
"height",
|
|
100
|
+
"onMouseenter"
|
|
101
|
+
], _t = {
|
|
102
|
+
key: 2,
|
|
103
|
+
style: { "pointer-events": "none" }
|
|
104
|
+
}, vt = [
|
|
105
|
+
"x",
|
|
106
|
+
"y",
|
|
107
|
+
"width",
|
|
108
|
+
"height",
|
|
109
|
+
"fill",
|
|
110
|
+
"fill-opacity"
|
|
111
|
+
], yt = [
|
|
112
|
+
"x1",
|
|
113
|
+
"x2",
|
|
114
|
+
"y2",
|
|
115
|
+
"stroke",
|
|
116
|
+
"stroke-dasharray",
|
|
117
|
+
"stroke-width"
|
|
118
|
+
], bt = [
|
|
119
|
+
"x1",
|
|
120
|
+
"x2",
|
|
121
|
+
"y2",
|
|
122
|
+
"stroke",
|
|
123
|
+
"stroke-dasharray",
|
|
124
|
+
"stroke-width"
|
|
125
|
+
], xt = [
|
|
126
|
+
"x",
|
|
127
|
+
"y",
|
|
128
|
+
"height",
|
|
129
|
+
"width",
|
|
130
|
+
"fill",
|
|
131
|
+
"stroke",
|
|
132
|
+
"stroke-width",
|
|
133
|
+
"rx"
|
|
134
|
+
], St = [
|
|
135
|
+
"x",
|
|
136
|
+
"y",
|
|
137
|
+
"width",
|
|
138
|
+
"height",
|
|
139
|
+
"onMouseenter"
|
|
140
|
+
], Ct = {
|
|
141
|
+
key: 2,
|
|
142
|
+
style: { "pointer-events": "none" }
|
|
143
|
+
}, wt = [
|
|
144
|
+
"x",
|
|
145
|
+
"y",
|
|
146
|
+
"width",
|
|
147
|
+
"height",
|
|
148
|
+
"fill",
|
|
149
|
+
"fill-opacity"
|
|
150
|
+
], Tt = [
|
|
151
|
+
"x1",
|
|
152
|
+
"x2",
|
|
153
|
+
"y1",
|
|
154
|
+
"y2",
|
|
155
|
+
"stroke",
|
|
156
|
+
"stroke-dasharray",
|
|
157
|
+
"stroke-width"
|
|
158
|
+
], Et = [
|
|
159
|
+
"x1",
|
|
160
|
+
"x2",
|
|
161
|
+
"y1",
|
|
162
|
+
"y2",
|
|
163
|
+
"stroke",
|
|
164
|
+
"stroke-dasharray",
|
|
165
|
+
"stroke-width"
|
|
166
|
+
], Dt = {
|
|
167
|
+
key: 0,
|
|
168
|
+
style: { "pointer-events": "none" }
|
|
169
|
+
}, Ot = [
|
|
170
|
+
"d",
|
|
171
|
+
"stroke",
|
|
172
|
+
"stroke-width"
|
|
173
|
+
], kt = [
|
|
174
|
+
"d",
|
|
175
|
+
"stroke",
|
|
176
|
+
"stroke-width"
|
|
177
|
+
], At = [
|
|
178
|
+
"d",
|
|
179
|
+
"stroke",
|
|
180
|
+
"stroke-width"
|
|
181
|
+
], jt = [
|
|
182
|
+
"d",
|
|
183
|
+
"stroke",
|
|
184
|
+
"stroke-width"
|
|
185
|
+
], Mt = { key: 7 }, Nt = [
|
|
186
|
+
"points",
|
|
187
|
+
"fill",
|
|
188
|
+
"stroke-width",
|
|
189
|
+
"stroke-dasharray",
|
|
190
|
+
"stroke"
|
|
191
|
+
], Pt = { key: 0 }, Ft = [
|
|
192
|
+
"cx",
|
|
193
|
+
"cy",
|
|
194
|
+
"r",
|
|
195
|
+
"fill",
|
|
196
|
+
"stroke",
|
|
197
|
+
"stroke-width",
|
|
198
|
+
"onMouseover",
|
|
199
|
+
"onMouseleave",
|
|
200
|
+
"onClick"
|
|
201
|
+
], It = { key: 1 }, Lt = [
|
|
202
|
+
"x",
|
|
203
|
+
"y",
|
|
204
|
+
"font-size",
|
|
205
|
+
"fill",
|
|
206
|
+
"onMouseover",
|
|
207
|
+
"onMouseleave",
|
|
208
|
+
"onClick"
|
|
209
|
+
], Rt = ["clip-path"], zt = [
|
|
210
|
+
"d",
|
|
211
|
+
"fill",
|
|
212
|
+
"stroke",
|
|
213
|
+
"stroke-width",
|
|
214
|
+
"stroke-opacity"
|
|
215
|
+
], Bt = {
|
|
216
|
+
key: 0,
|
|
217
|
+
style: { "pointer-events": "none" }
|
|
218
|
+
}, Vt = [
|
|
219
|
+
"x",
|
|
220
|
+
"y",
|
|
221
|
+
"width",
|
|
222
|
+
"height"
|
|
223
|
+
], Ht = {
|
|
224
|
+
key: 10,
|
|
225
|
+
style: { "pointer-events": "none !important" }
|
|
226
|
+
}, Ut = [
|
|
227
|
+
"x1",
|
|
228
|
+
"x2",
|
|
229
|
+
"y1",
|
|
230
|
+
"y2",
|
|
231
|
+
"stroke",
|
|
232
|
+
"stroke-width",
|
|
233
|
+
"stroke-dasharray"
|
|
234
|
+
], Wt = [
|
|
235
|
+
"x1",
|
|
236
|
+
"x2",
|
|
237
|
+
"y1",
|
|
238
|
+
"y2",
|
|
239
|
+
"stroke",
|
|
240
|
+
"stroke-width",
|
|
241
|
+
"stroke-dasharray"
|
|
242
|
+
], Gt = [
|
|
243
|
+
"x",
|
|
244
|
+
"y",
|
|
245
|
+
"font-size",
|
|
246
|
+
"fill",
|
|
247
|
+
"font-weight",
|
|
248
|
+
"text-anchor"
|
|
249
|
+
], Kt = [
|
|
250
|
+
"x",
|
|
251
|
+
"y",
|
|
252
|
+
"font-size",
|
|
253
|
+
"fill",
|
|
254
|
+
"font-weight"
|
|
255
|
+
], qt = [
|
|
256
|
+
"x",
|
|
257
|
+
"y",
|
|
258
|
+
"font-size",
|
|
259
|
+
"fill"
|
|
260
|
+
], Jt = [
|
|
261
|
+
"x",
|
|
262
|
+
"y",
|
|
263
|
+
"font-size",
|
|
264
|
+
"fill"
|
|
265
|
+
], Yt = [
|
|
266
|
+
"cx",
|
|
267
|
+
"cy",
|
|
268
|
+
"r",
|
|
269
|
+
"fill",
|
|
270
|
+
"stroke",
|
|
271
|
+
"stroke-width"
|
|
272
|
+
], Xt = [
|
|
273
|
+
"cx",
|
|
274
|
+
"cy",
|
|
275
|
+
"r",
|
|
276
|
+
"fill",
|
|
277
|
+
"stroke",
|
|
278
|
+
"stroke-width"
|
|
279
|
+
], Zt = [
|
|
280
|
+
"x",
|
|
281
|
+
"y",
|
|
282
|
+
"font-size",
|
|
283
|
+
"fill",
|
|
284
|
+
"font-weight",
|
|
285
|
+
"text-anchor"
|
|
286
|
+
], Qt = [
|
|
287
|
+
"id",
|
|
288
|
+
"transform",
|
|
289
|
+
"font-size",
|
|
290
|
+
"font-weight",
|
|
291
|
+
"fill"
|
|
292
|
+
], $t = [
|
|
293
|
+
"font-size",
|
|
294
|
+
"fill",
|
|
295
|
+
"transform"
|
|
296
|
+
], en = [
|
|
297
|
+
"transform",
|
|
298
|
+
"font-size",
|
|
299
|
+
"fill"
|
|
300
|
+
], tn = [
|
|
301
|
+
"x",
|
|
302
|
+
"y",
|
|
303
|
+
"font-size",
|
|
304
|
+
"fill"
|
|
305
|
+
], nn = [
|
|
306
|
+
"x",
|
|
307
|
+
"y",
|
|
308
|
+
"font-size",
|
|
309
|
+
"fill"
|
|
310
|
+
], rn = [
|
|
311
|
+
"font-size",
|
|
312
|
+
"font-weight",
|
|
313
|
+
"fill",
|
|
314
|
+
"x",
|
|
315
|
+
"y"
|
|
316
|
+
], an = ["id"], on = [
|
|
317
|
+
"x",
|
|
318
|
+
"y",
|
|
319
|
+
"width",
|
|
320
|
+
"height"
|
|
321
|
+
], sn = {
|
|
322
|
+
key: 15,
|
|
323
|
+
style: { pointerEvents: "none" }
|
|
324
|
+
}, cn = [
|
|
325
|
+
"x1",
|
|
326
|
+
"x2",
|
|
327
|
+
"y1",
|
|
328
|
+
"y2",
|
|
329
|
+
"stroke-dasharray",
|
|
330
|
+
"stroke",
|
|
331
|
+
"stroke-width",
|
|
332
|
+
"clip-path"
|
|
333
|
+
], ln = [
|
|
334
|
+
"x",
|
|
335
|
+
"y",
|
|
336
|
+
"fill",
|
|
337
|
+
"font-size",
|
|
338
|
+
"font-weight"
|
|
339
|
+
], un = {
|
|
340
|
+
key: 0,
|
|
341
|
+
style: {
|
|
342
|
+
position: "absolute",
|
|
343
|
+
top: "100%",
|
|
344
|
+
left: "0",
|
|
345
|
+
width: "100%"
|
|
346
|
+
},
|
|
347
|
+
"data-dom-to-png-ignore": "",
|
|
348
|
+
"aria-hidden": "true"
|
|
349
|
+
}, dn = {
|
|
350
|
+
key: 6,
|
|
351
|
+
class: "vue-data-ui-watermark"
|
|
352
|
+
}, fn = ["id"], pn = ["onClick"], mn = {
|
|
353
|
+
key: 0,
|
|
354
|
+
style: {
|
|
355
|
+
width: "100%",
|
|
356
|
+
display: "flex",
|
|
357
|
+
"align-items": "center",
|
|
358
|
+
"justify-content": "center"
|
|
359
|
+
}
|
|
360
|
+
}, hn = {
|
|
361
|
+
viewBox: "0 0 20 20",
|
|
362
|
+
height: "20",
|
|
363
|
+
width: "20",
|
|
364
|
+
style: {
|
|
365
|
+
overflow: "hidden",
|
|
366
|
+
background: "transparent"
|
|
367
|
+
}
|
|
368
|
+
}, gn = { key: 0 }, _n = ["innerHTML"], vn = /* @__PURE__ */ ve({
|
|
369
|
+
__name: "vue-ui-scatter",
|
|
370
|
+
props: {
|
|
371
|
+
config: {
|
|
372
|
+
type: Object,
|
|
373
|
+
default() {
|
|
374
|
+
return {};
|
|
375
|
+
}
|
|
376
|
+
},
|
|
377
|
+
dataset: {
|
|
378
|
+
type: Array,
|
|
379
|
+
default() {
|
|
380
|
+
return [];
|
|
381
|
+
}
|
|
382
|
+
}
|
|
383
|
+
},
|
|
384
|
+
emits: ["copyAlt"],
|
|
385
|
+
setup(e, { expose: ve, emit: Ve }) {
|
|
386
|
+
let vn = je(() => import("./Tooltip-V6Z0Ko-1.js")), yn = je(() => import("./BaseIcon-CL6Y7alf.js").then((e) => e.n)), bn = je(() => import("./vue-ui-accordion-Cf-jZELj.js").then((e) => e.n)), xn = je(() => import("./DataTable-ZG4GX2Zg.js")), Sn = je(() => import("./PenAndPaper-DxBCVZAx.js").then((e) => e.t)), Cn = je(() => import("./UserOptions-Gaw1761w.js").then((e) => e.n)), wn = je(() => import("./PackageVersion-B1cPtZ3Q.js").then((e) => e.t)), Tn = je(() => import("./BaseDraggableDialog-LE75fWYz.js").then((e) => e.n)), { vue_ui_scatter: En } = ce(), { isThemeValid: Dn, warnInvalidTheme: On } = me(), P = e, kn = Ve, An = y(() => !!P.dataset && P.dataset.length), F = O(r()), jn = O(!1), Mn = O(""), Nn = O(0), I = O(null), Pn = O(null), Fn = O(null), In = O(null), Ln = O(null), Rn = O(0), zn = O(0), Bn = O(0), L = O([]), Vn = O(!1), Hn = O(null), Un = O(null), Wn = O(null), Gn = O(null), Kn = O(!1), qn = O(!1), Jn = O(null), Yn = O(null), Xn = O(null), Zn = O(null), Qn = O(null), $n = O(null), er = O(null), tr = O({
|
|
387
|
+
x: 0,
|
|
388
|
+
y: 0
|
|
389
|
+
}), nr = O("pointer"), rr = O(!1), ir = O(null), R = O(mr()), ar = y(() => R.value.userOptions.useCursorPointer);
|
|
390
|
+
function or(e = 100, t = .8, n = {}) {
|
|
391
|
+
let { meanX: r = 0, sdX: i = 1, meanY: a = 0, sdY: o = 1, seed: s } = n, c = (s ?? Math.floor(Math.random() * 2 ** 31)) >>> 0, l = () => (c = c * 1664525 + 1013904223 >>> 0, c / 2 ** 32), u = () => {
|
|
392
|
+
let e = 0, t = 0;
|
|
393
|
+
for (; e === 0;) e = l();
|
|
394
|
+
for (; t === 0;) t = l();
|
|
395
|
+
return Math.sqrt(-2 * Math.log(e)) * Math.cos(2 * Math.PI * t);
|
|
396
|
+
}, d = e / 2, f = Array.from({ length: d }, u), p = Array.from({ length: d }, u), m = (e) => e.reduce((e, t) => e + t, 0) / e.length, h = m(f), g = m(p);
|
|
397
|
+
for (let e = 0; e < d; e += 1) f[e] -= h, p[e] -= g;
|
|
398
|
+
let ee = (e, t) => e.reduce((e, n, r) => e + n * t[r], 0), te = (e) => ee(e, e), ne = ee(p, f) / te(f), re = p.map((e, t) => e - ne * f[t]), ie = te(f) / d, _ = te(re) / d, ae = Math.sqrt((1 - t * t) * ie / _), oe = f.map((e, n) => t * e + ae * re[n]), se = f.concat(f.map((e) => -e)), ce = oe.concat(oe.map((e) => -e)), le = (e) => Math.sqrt(te(e) / e.length), ue = (e, t, n) => {
|
|
399
|
+
let r = le(e);
|
|
400
|
+
return e.map((e) => n + (r ? e / r * t : 0));
|
|
401
|
+
}, de = ue(se, i, r), fe = ue(ce, o, a);
|
|
402
|
+
for (let e = de.length - 1; e > 0; --e) {
|
|
403
|
+
let t = Math.floor(l() * (e + 1));
|
|
404
|
+
[de[e], de[t]] = [de[t], de[e]], [fe[e], fe[t]] = [fe[t], fe[e]];
|
|
405
|
+
}
|
|
406
|
+
return de.map((e, t) => ({
|
|
407
|
+
x: e,
|
|
408
|
+
y: fe[t]
|
|
409
|
+
}));
|
|
410
|
+
}
|
|
411
|
+
let sr = y(() => se({
|
|
412
|
+
defaultConfig: {
|
|
413
|
+
userOptions: { show: !1 },
|
|
414
|
+
table: { show: !1 },
|
|
415
|
+
useCssAnimation: !1,
|
|
416
|
+
style: {
|
|
417
|
+
backgroundColor: "#99999930",
|
|
418
|
+
layout: {
|
|
419
|
+
axis: { stroke: "#6A6A6A" },
|
|
420
|
+
correlation: { label: { show: !1 } },
|
|
421
|
+
dataLabels: {
|
|
422
|
+
xAxis: { show: !1 },
|
|
423
|
+
yAxis: { show: !1 }
|
|
424
|
+
},
|
|
425
|
+
marginalBars: { fill: "#99999960" },
|
|
426
|
+
padding: {
|
|
427
|
+
top: 12,
|
|
428
|
+
right: 12,
|
|
429
|
+
bottom: 12,
|
|
430
|
+
left: 12
|
|
431
|
+
},
|
|
432
|
+
plots: { stroke: "#6A6A6A" }
|
|
433
|
+
},
|
|
434
|
+
legend: { backgroundColor: "transparent" }
|
|
435
|
+
}
|
|
436
|
+
},
|
|
437
|
+
userConfig: R.value.skeletonConfig ?? {}
|
|
438
|
+
})), { loading: cr, FINAL_DATASET: lr, manualLoading: ur } = ue({
|
|
439
|
+
...ze(P),
|
|
440
|
+
FINAL_CONFIG: R,
|
|
441
|
+
prepareConfig: mr,
|
|
442
|
+
skeletonDataset: P.config?.skeletonDataset ?? [{
|
|
443
|
+
name: "",
|
|
444
|
+
color: "#999999",
|
|
445
|
+
values: or(100, .5, { seed: 42 })
|
|
446
|
+
}],
|
|
447
|
+
skeletonConfig: se({
|
|
448
|
+
defaultConfig: R.value,
|
|
449
|
+
userConfig: sr.value
|
|
450
|
+
})
|
|
451
|
+
}), { userOptionsVisible: dr, setUserOptionsVisibility: fr, keepUserOptionState: pr } = Ce({ config: R.value }), { svgRef: z } = we({ config: R.value.style.title });
|
|
452
|
+
function mr() {
|
|
453
|
+
let e = pe({
|
|
454
|
+
userConfig: P.config,
|
|
455
|
+
defaultConfig: En
|
|
456
|
+
}), t = e.theme;
|
|
457
|
+
if (!t) return e;
|
|
458
|
+
if (!Dn.value(e)) return On(e), e;
|
|
459
|
+
let n = pe({
|
|
460
|
+
userConfig: Ee[t] || P.config,
|
|
461
|
+
defaultConfig: e
|
|
462
|
+
}), r = pe({
|
|
463
|
+
userConfig: P.config,
|
|
464
|
+
defaultConfig: n
|
|
465
|
+
});
|
|
466
|
+
return {
|
|
467
|
+
...r,
|
|
468
|
+
customPalette: r.customPalette.length ? r.customPalette : o[t] || l
|
|
469
|
+
};
|
|
470
|
+
}
|
|
471
|
+
Be(() => P.config, (e) => {
|
|
472
|
+
cr.value || (R.value = mr()), dr.value = !R.value.userOptions.showOnChartHover, _r(), Rn.value += 1, zn.value += 1, Bn.value += 1, V.value.showTable = R.value.table.show, V.value.showTooltip = R.value.style.tooltip.show, gr.value && R.value.usePerformanceMode && console.warn("VueUiScatter : You are using performance mode\n\n- downsampling is disabled in this mode, all plots are rendered\n\n- plot significance is not active in this mode (all plots have the same opacity) \n\n- Depending on plot density, shapes might not display a border (stroke) to avoid fuzziness \n\nℹ️ To remove this warning, set config.debug to false.");
|
|
473
|
+
}, { deep: !0 }), Be(() => P.dataset, (e) => {
|
|
474
|
+
Array.isArray(e) && e.length > 0 && (ur.value = !1);
|
|
475
|
+
}, { deep: !0 });
|
|
476
|
+
let B = Re(null), hr = Re(null);
|
|
477
|
+
Ie(async () => {
|
|
478
|
+
_r(), await Ne(), Vn.value = !0;
|
|
479
|
+
});
|
|
480
|
+
let gr = y(() => !!R.value.debug);
|
|
481
|
+
function _r() {
|
|
482
|
+
if (c(P.dataset) && (u({
|
|
483
|
+
componentName: "VueUiScatter",
|
|
484
|
+
type: "dataset",
|
|
485
|
+
debug: gr.value
|
|
486
|
+
}), ur.value = !0), c(P.dataset) || (ur.value = R.value.loading), R.value.responsive) {
|
|
487
|
+
let e = ye(() => {
|
|
488
|
+
let { width: e, height: t } = be({
|
|
489
|
+
chart: I.value,
|
|
490
|
+
title: R.value.style.title.text ? Pn.value : null,
|
|
491
|
+
legend: R.value.style.legend.show ? Fn.value : null,
|
|
492
|
+
source: In.value,
|
|
493
|
+
noTitle: Ln.value
|
|
494
|
+
});
|
|
495
|
+
requestAnimationFrame(() => {
|
|
496
|
+
H.value.width = e, H.value.height = t;
|
|
497
|
+
});
|
|
498
|
+
});
|
|
499
|
+
B.value && (hr.value && B.value.unobserve(hr.value), B.value.disconnect()), B.value = new ResizeObserver(e), hr.value = I.value.parentNode, B.value.observe(hr.value);
|
|
500
|
+
}
|
|
501
|
+
}
|
|
502
|
+
Fe(() => {
|
|
503
|
+
B.value && (hr.value && B.value.unobserve(hr.value), B.value.disconnect());
|
|
504
|
+
});
|
|
505
|
+
let { isPrinting: vr, isImaging: yr, generatePdf: br, generateImage: xr } = le({
|
|
506
|
+
elementId: `vue-ui-scatter_${F.value}`,
|
|
507
|
+
fileName: R.value.style.title.text || "vue-ui-scatter",
|
|
508
|
+
options: R.value.userOptions.print
|
|
509
|
+
}), Sr = y(() => R.value.userOptions.show && !R.value.style.title.text), Cr = y(() => ae(R.value.customPalette)), V = O({
|
|
510
|
+
showTable: R.value.table.show,
|
|
511
|
+
showTooltip: R.value.style.tooltip.show
|
|
512
|
+
});
|
|
513
|
+
Be(R, () => {
|
|
514
|
+
V.value = {
|
|
515
|
+
showTable: R.value.table.show,
|
|
516
|
+
showTooltip: R.value.style.tooltip.show
|
|
517
|
+
};
|
|
518
|
+
}, { immediate: !0 });
|
|
519
|
+
let H = O({
|
|
520
|
+
height: R.value.style.layout.height,
|
|
521
|
+
width: R.value.style.layout.width
|
|
522
|
+
}), wr = y(() => R.value.style.layout.marginalBars.show ? R.value.style.layout.marginalBars.size + R.value.style.layout.marginalBars.offset : 0);
|
|
523
|
+
function Tr() {
|
|
524
|
+
let e = 0;
|
|
525
|
+
if (R.value.style.layout.dataLabels.yAxis.scales.show && Qn.value) try {
|
|
526
|
+
e = Array.from(Qn.value.querySelectorAll("text")).reduce((e, t) => {
|
|
527
|
+
let n = t.getComputedTextLength();
|
|
528
|
+
return n > e ? n : e;
|
|
529
|
+
}, 0);
|
|
530
|
+
} catch {
|
|
531
|
+
e = 0;
|
|
532
|
+
}
|
|
533
|
+
let t = 0;
|
|
534
|
+
if (Jn.value) try {
|
|
535
|
+
t = Jn.value.getBBox().width;
|
|
536
|
+
} catch {
|
|
537
|
+
t = 0;
|
|
538
|
+
}
|
|
539
|
+
return Math.max(t, e ? e + 12 : 0);
|
|
540
|
+
}
|
|
541
|
+
function Er() {
|
|
542
|
+
let e = 0;
|
|
543
|
+
if (Yn.value) try {
|
|
544
|
+
let t = Yn.value.getBBox(), n = t.x + t.width - H.value.width;
|
|
545
|
+
e = n > 0 ? n + 6 : 0;
|
|
546
|
+
} catch {
|
|
547
|
+
e = 0;
|
|
548
|
+
}
|
|
549
|
+
let t = 0;
|
|
550
|
+
if (R.value.style.layout.dataLabels.xAxis.scales.show && $n.value) try {
|
|
551
|
+
t = Array.from($n.value.querySelectorAll("text")).reduce((e, t) => {
|
|
552
|
+
let n = t.getBBox(), r = n.x + n.width - H.value.width, i = r > 0 ? r + 6 : 0;
|
|
553
|
+
return i > e ? i : e;
|
|
554
|
+
}, 0);
|
|
555
|
+
} catch {
|
|
556
|
+
t = 0;
|
|
557
|
+
}
|
|
558
|
+
return e > t ? e : t;
|
|
559
|
+
}
|
|
560
|
+
let U = y(() => {
|
|
561
|
+
let e = 0, t = 0, n = 0;
|
|
562
|
+
if (e = Tr(), t = Er(), Zn.value) try {
|
|
563
|
+
n = Zn.value.getBBox().height + 6;
|
|
564
|
+
} catch {
|
|
565
|
+
n = 0;
|
|
566
|
+
}
|
|
567
|
+
return {
|
|
568
|
+
top: R.value.style.layout.padding.top + wr.value + R.value.style.layout.dataLabels.yAxis.fontSize * 2,
|
|
569
|
+
right: H.value.width - R.value.style.layout.padding.right - wr.value - 6 - t,
|
|
570
|
+
bottom: H.value.height - R.value.style.layout.padding.bottom - n,
|
|
571
|
+
left: R.value.style.layout.padding.left + e,
|
|
572
|
+
height: H.value.height - R.value.style.layout.padding.top - R.value.style.layout.padding.bottom - wr.value - n - R.value.style.layout.dataLabels.yAxis.fontSize * 2,
|
|
573
|
+
width: H.value.width - R.value.style.layout.padding.left - R.value.style.layout.padding.right - wr.value - e - t - 6
|
|
574
|
+
};
|
|
575
|
+
}), Dr = y(() => {
|
|
576
|
+
lr.value.forEach((e, t) => {
|
|
577
|
+
te({
|
|
578
|
+
datasetObject: e,
|
|
579
|
+
requiredAttributes: ["values"]
|
|
580
|
+
}).forEach((e) => {
|
|
581
|
+
u({
|
|
582
|
+
componentName: "VueUiScatter",
|
|
583
|
+
type: "datasetSerieAttribute",
|
|
584
|
+
property: e,
|
|
585
|
+
index: t
|
|
586
|
+
});
|
|
587
|
+
}), e.values && e.values.forEach((e, n) => {
|
|
588
|
+
te({
|
|
589
|
+
datasetObject: e,
|
|
590
|
+
requiredAttributes: ["x", "y"]
|
|
591
|
+
}).forEach((e) => {
|
|
592
|
+
u({
|
|
593
|
+
componentName: "VueUiScatter",
|
|
594
|
+
type: "datasetSerieAttribute",
|
|
595
|
+
property: `values.${e}`,
|
|
596
|
+
index: `${t} - ${n}`
|
|
597
|
+
});
|
|
598
|
+
});
|
|
599
|
+
});
|
|
600
|
+
});
|
|
601
|
+
let e = Math.min(...K.value.filter((e) => !L.value.includes(e.id)).flatMap((e) => e.values.map((e) => e.x))), t = Math.max(...K.value.filter((e) => !L.value.includes(e.id)).flatMap((e) => e.values.map((e) => e.x))), n = Math.min(...K.value.filter((e) => !L.value.includes(e.id)).flatMap((e) => e.values.map((e) => e.y))), r = Math.max(...K.value.filter((e) => !L.value.includes(e.id)).flatMap((e) => e.values.map((e) => e.y)));
|
|
602
|
+
return {
|
|
603
|
+
xMin: e < 0 ? e : 0,
|
|
604
|
+
xMax: t,
|
|
605
|
+
yMin: n < 0 ? n : 0,
|
|
606
|
+
yMax: r
|
|
607
|
+
};
|
|
608
|
+
}), Or = y(() => {
|
|
609
|
+
let e = R.value.style.layout.axis;
|
|
610
|
+
return {
|
|
611
|
+
xMin: e.xMin !== null && e.xMin !== void 0 ? e.xMin : Dr.value.xMin,
|
|
612
|
+
xMax: e.xMax !== null && e.xMax !== void 0 ? e.xMax : Dr.value.xMax,
|
|
613
|
+
yMin: e.yMin !== null && e.yMin !== void 0 ? e.yMin : Dr.value.yMin,
|
|
614
|
+
yMax: e.yMax !== null && e.yMax !== void 0 ? e.yMax : Dr.value.yMax
|
|
615
|
+
};
|
|
616
|
+
});
|
|
617
|
+
function kr(e) {
|
|
618
|
+
return Number.isFinite(e) ? e < 2 ? 2 : Math.trunc(e) : 5;
|
|
619
|
+
}
|
|
620
|
+
function Ar(e) {
|
|
621
|
+
return e.roundingValue !== void 0 && e.roundingValue !== null ? e.roundingValue : e.rounding !== void 0 && e.rounding !== null ? e.rounding : 0;
|
|
622
|
+
}
|
|
623
|
+
function jr({ minimum: e, maximum: t, stepCount: n, useNiceScale: r }) {
|
|
624
|
+
let i = kr(n);
|
|
625
|
+
if (e === t) {
|
|
626
|
+
let n = t + (e === 0 ? 1 : Math.abs(e) * .01);
|
|
627
|
+
return (r ? p : d)(e, n, i);
|
|
628
|
+
}
|
|
629
|
+
return (r ? p : d)(e, t, i);
|
|
630
|
+
}
|
|
631
|
+
let Mr = y(() => {
|
|
632
|
+
let e = R.value.style.layout.dataLabels.xAxis;
|
|
633
|
+
return jr({
|
|
634
|
+
minimum: Or.value.xMin,
|
|
635
|
+
maximum: Or.value.xMax,
|
|
636
|
+
stepCount: e.scales.steps,
|
|
637
|
+
useNiceScale: e.scales.useNiceScale
|
|
638
|
+
});
|
|
639
|
+
}), Nr = y(() => {
|
|
640
|
+
let e = R.value.style.layout.dataLabels.yAxis;
|
|
641
|
+
return jr({
|
|
642
|
+
minimum: Or.value.yMin,
|
|
643
|
+
maximum: Or.value.yMax,
|
|
644
|
+
stepCount: e.scales.steps,
|
|
645
|
+
useNiceScale: e.scales.useNiceScale
|
|
646
|
+
});
|
|
647
|
+
}), W = y(() => ({
|
|
648
|
+
xMin: Mr.value.min,
|
|
649
|
+
xMax: Mr.value.max,
|
|
650
|
+
yMin: Nr.value.min,
|
|
651
|
+
yMax: Nr.value.max
|
|
652
|
+
})), Pr = y(() => {
|
|
653
|
+
let e = R.value.style.layout.dataLabels.xAxis, t = e.scales.labels;
|
|
654
|
+
return Mr.value.ticks.map((r) => ({
|
|
655
|
+
value: r,
|
|
656
|
+
x: Br(r),
|
|
657
|
+
label: m(t.formatter, _(r), n({
|
|
658
|
+
p: R.value.style.layout.plots.selectors.labels.prefix,
|
|
659
|
+
v: _(r),
|
|
660
|
+
s: R.value.style.layout.plots.selectors.labels.suffix,
|
|
661
|
+
r: Ar(e)
|
|
662
|
+
}))
|
|
663
|
+
}));
|
|
664
|
+
}), Fr = y(() => {
|
|
665
|
+
let e = R.value.style.layout.dataLabels.yAxis, t = e.scales.labels;
|
|
666
|
+
return Nr.value.ticks.map((r) => ({
|
|
667
|
+
value: r,
|
|
668
|
+
y: Vr(r),
|
|
669
|
+
label: m(t.formatter, _(r), n({
|
|
670
|
+
p: R.value.style.layout.plots.selectors.labels.prefix,
|
|
671
|
+
v: _(r),
|
|
672
|
+
s: R.value.style.layout.plots.selectors.labels.suffix,
|
|
673
|
+
r: Ar(e)
|
|
674
|
+
}))
|
|
675
|
+
}));
|
|
676
|
+
}), Ir = y(() => !!Z.value && R.value.style.layout.dataLabels.xAxis.scales.show), Lr = y(() => !!Z.value && R.value.style.layout.dataLabels.yAxis.scales.show), Rr = y(() => {
|
|
677
|
+
if (!Z.value) return "";
|
|
678
|
+
let e = R.value.style.layout.dataLabels.xAxis, t = e.scales.labels;
|
|
679
|
+
return m(t.formatter, _(Z.value.v.x), n({
|
|
680
|
+
p: R.value.style.layout.plots.selectors.labels.prefix,
|
|
681
|
+
v: _(Z.value.v.x),
|
|
682
|
+
s: R.value.style.layout.plots.selectors.labels.suffix,
|
|
683
|
+
r: Ar(e)
|
|
684
|
+
}), { datapoint: Z.value });
|
|
685
|
+
}), zr = y(() => {
|
|
686
|
+
if (!Z.value) return "";
|
|
687
|
+
let e = R.value.style.layout.dataLabels.yAxis, t = e.scales.labels;
|
|
688
|
+
return m(t.formatter, _(Z.value.v.y), n({
|
|
689
|
+
p: R.value.style.layout.plots.selectors.labels.prefix,
|
|
690
|
+
v: _(Z.value.v.y),
|
|
691
|
+
s: R.value.style.layout.plots.selectors.labels.suffix,
|
|
692
|
+
r: Ar(e)
|
|
693
|
+
}), { datapoint: Z.value });
|
|
694
|
+
});
|
|
695
|
+
function Br(e) {
|
|
696
|
+
let t = W.value.xMax - W.value.xMin;
|
|
697
|
+
return t === 0 ? U.value.left : U.value.left + (e - W.value.xMin) / t * U.value.width;
|
|
698
|
+
}
|
|
699
|
+
function Vr(e) {
|
|
700
|
+
let t = W.value.yMax - W.value.yMin;
|
|
701
|
+
return t === 0 ? U.value.bottom : U.value.bottom - (e - W.value.yMin) / t * U.value.height;
|
|
702
|
+
}
|
|
703
|
+
let G = y(() => {
|
|
704
|
+
let { xMin: e, xMax: t, yMin: n, yMax: r } = W.value, i = e > 0 ? e : t < 0 ? t : 0, a = n > 0 ? n : r < 0 ? r : 0;
|
|
705
|
+
return {
|
|
706
|
+
x: Br(i),
|
|
707
|
+
y: Vr(a)
|
|
708
|
+
};
|
|
709
|
+
}), K = y(() => lr.value.map((e, t) => {
|
|
710
|
+
let n = `cluster_${F.value}_${t}`;
|
|
711
|
+
return {
|
|
712
|
+
...e,
|
|
713
|
+
values: f({
|
|
714
|
+
data: e.values,
|
|
715
|
+
threshold: R.value.usePerformanceMode ? e.values.length + 1 : R.value.downsample.threshold
|
|
716
|
+
}),
|
|
717
|
+
id: n,
|
|
718
|
+
color: e.color ? e.color : Cr.value[t] || l[t] || l[t % l.length],
|
|
719
|
+
opacity: L.value.includes(n) ? .5 : 1,
|
|
720
|
+
shape: e.shape ?? "circle",
|
|
721
|
+
segregate: () => ti(n),
|
|
722
|
+
isSegregated: L.value.includes(n)
|
|
723
|
+
};
|
|
724
|
+
})), Hr = y(() => ({
|
|
725
|
+
cy: "scatter-div-legend",
|
|
726
|
+
backgroundColor: R.value.style.legend.backgroundColor,
|
|
727
|
+
color: R.value.style.legend.color,
|
|
728
|
+
fontSize: R.value.style.legend.fontSize,
|
|
729
|
+
paddingBottom: 12,
|
|
730
|
+
fontWeight: R.value.style.legend.bold ? "bold" : ""
|
|
731
|
+
})), Ur = y(() => K.value.map((e, t) => ({
|
|
732
|
+
...e,
|
|
733
|
+
plots: e.values.map((n) => ({
|
|
734
|
+
x: Br(n.x),
|
|
735
|
+
y: Vr(n.y),
|
|
736
|
+
v: {
|
|
737
|
+
...n,
|
|
738
|
+
name: n.name || ""
|
|
739
|
+
},
|
|
740
|
+
clusterName: e.name,
|
|
741
|
+
clusterId: e.id,
|
|
742
|
+
color: e.color ? e.color : Cr.value[t] || l[t] || l[t % l.length],
|
|
743
|
+
id: `plot_${F.value}_${Math.random()}`,
|
|
744
|
+
weight: n.weight ?? R.value.style.layout.plots.radius
|
|
745
|
+
}))
|
|
746
|
+
})).filter((e) => !L.value.includes(e.id))), q = y(() => {
|
|
747
|
+
let e = 1e-9, t = ({ m: t, b: n, rect: r, verticalX: i = null }) => {
|
|
748
|
+
let { left: a, right: o, top: s, bottom: c } = r, l = [], u = (e, t) => {
|
|
749
|
+
Number.isFinite(e) && Number.isFinite(t) && l.push({
|
|
750
|
+
x: e,
|
|
751
|
+
y: t
|
|
752
|
+
});
|
|
753
|
+
}, d = ({ x: t, y: n }) => t >= a - e && t <= o + e && n >= s - e && n <= c + e;
|
|
754
|
+
i === null ? Number.isFinite(t) && (u(a, t * a + n), u(o, t * o + n), Math.abs(t) > e ? (u((s - n) / t, s), u((c - n) / t, c)) : n >= s - e && n <= c + e && (u(a, n), u(o, n))) : i >= a - e && i <= o + e && (u(i, s), u(i, c));
|
|
755
|
+
let f = l.filter(d), p = [];
|
|
756
|
+
for (let e of f) p.some((t) => Math.abs(t.x - e.x) < 1e-6 && Math.abs(t.y - e.y) < 1e-6) || p.push(e);
|
|
757
|
+
if (p.length < 2) return null;
|
|
758
|
+
let m = p[0], h = p[1], g = 0;
|
|
759
|
+
for (let e = 0; e < p.length; e += 1) for (let t = e + 1; t < p.length; t += 1) {
|
|
760
|
+
let n = p[e].x - p[t].x, r = p[e].y - p[t].y, i = n * n + r * r;
|
|
761
|
+
i > g && (g = i, m = p[e], h = p[t]);
|
|
762
|
+
}
|
|
763
|
+
return {
|
|
764
|
+
x1: m.x,
|
|
765
|
+
y1: m.y,
|
|
766
|
+
x2: h.x,
|
|
767
|
+
y2: h.y
|
|
768
|
+
};
|
|
769
|
+
};
|
|
770
|
+
return Ur.value.map((n) => {
|
|
771
|
+
let r = n.plots.length, i = n.plots.reduce((e, t) => e + t.x, 0) / r, a = n.plots.reduce((e, t) => e + t.y, 0) / r, o = 0, s = 0, c = 0;
|
|
772
|
+
for (let e of n.plots) {
|
|
773
|
+
let t = e.x - i, n = e.y - a;
|
|
774
|
+
o += t * n, s += t * t, c += n * n;
|
|
775
|
+
}
|
|
776
|
+
let l, u, d = null;
|
|
777
|
+
s < e ? (d = i, l = Infinity, u = null) : (l = o / s, u = a - l * i);
|
|
778
|
+
let f, p;
|
|
779
|
+
d === null ? (f = l, p = u) : (f = Infinity, p = null);
|
|
780
|
+
let m = n.plots.every((e) => e.v && typeof e.v.x == "number" && typeof e.v.y == "number"), h = NaN;
|
|
781
|
+
if (r >= 2) {
|
|
782
|
+
let t = 0, o = 0;
|
|
783
|
+
m ? (t = n.plots.reduce((e, t) => e + t.v.x, 0) / r, o = n.plots.reduce((e, t) => e + t.v.y, 0) / r) : (t = i, o = -a);
|
|
784
|
+
let s = 0, c = 0, l = 0;
|
|
785
|
+
for (let e of n.plots) {
|
|
786
|
+
let n = m ? e.v.x : e.x, r = m ? e.v.y : -e.y, i = n - t, a = r - o;
|
|
787
|
+
s += i * a, c += i * i, l += a * a;
|
|
788
|
+
}
|
|
789
|
+
if (c >= e && l >= e) {
|
|
790
|
+
let e = s / Math.sqrt(c * l);
|
|
791
|
+
h = Math.max(-1, Math.min(1, e));
|
|
792
|
+
}
|
|
793
|
+
}
|
|
794
|
+
let g = t({
|
|
795
|
+
m: f,
|
|
796
|
+
b: p,
|
|
797
|
+
rect: U.value,
|
|
798
|
+
verticalX: d
|
|
799
|
+
});
|
|
800
|
+
if (!g) return {
|
|
801
|
+
...n,
|
|
802
|
+
correlation: null,
|
|
803
|
+
label: null,
|
|
804
|
+
plots: n.plots.map((e) => ({
|
|
805
|
+
...e,
|
|
806
|
+
deviation: 0,
|
|
807
|
+
shape: n.shape,
|
|
808
|
+
color: oe(n.color)
|
|
809
|
+
}))
|
|
810
|
+
};
|
|
811
|
+
let ee = {
|
|
812
|
+
x: (g.x1 + g.x2) / 2,
|
|
813
|
+
y: (g.y1 + g.y2) / 2
|
|
814
|
+
};
|
|
815
|
+
return {
|
|
816
|
+
...n,
|
|
817
|
+
color: oe(n.color),
|
|
818
|
+
correlation: {
|
|
819
|
+
...g,
|
|
820
|
+
coefficient: h
|
|
821
|
+
},
|
|
822
|
+
label: ee,
|
|
823
|
+
plots: n.plots.map((t) => {
|
|
824
|
+
let r, i;
|
|
825
|
+
d === null ? Math.abs(f) < e ? (r = t.x, i = p) : (r = (t.x + f * t.y - f * p) / (1 + f * f), i = (f * t.x + f * f * t.y + p) / (1 + f * f)) : (r = d, i = t.y);
|
|
826
|
+
let a = t.x - r, o = t.y - i, s = Math.sqrt(a * a + o * o);
|
|
827
|
+
return {
|
|
828
|
+
...t,
|
|
829
|
+
deviation: s,
|
|
830
|
+
shape: n.shape,
|
|
831
|
+
color: oe(n.color)
|
|
832
|
+
};
|
|
833
|
+
})
|
|
834
|
+
};
|
|
835
|
+
});
|
|
836
|
+
}), Wr = y(() => Math.max(...q.value.flatMap((e) => e.plots.map((e) => Math.abs(e.deviation)))));
|
|
837
|
+
function Gr() {
|
|
838
|
+
return q.value;
|
|
839
|
+
}
|
|
840
|
+
function Kr(e, t) {
|
|
841
|
+
let n = Array.isArray(e) ? e.flatMap((e) => e.plots.map((e) => ({
|
|
842
|
+
x: e.x,
|
|
843
|
+
y: e.y
|
|
844
|
+
}))) : e.plots.map((e) => ({
|
|
845
|
+
x: e.x,
|
|
846
|
+
y: e.y
|
|
847
|
+
})), r = Infinity, i = -Infinity, a = Infinity, o = -Infinity;
|
|
848
|
+
n.forEach(({ x: e, y: t }) => {
|
|
849
|
+
r = Math.min(r, e), i = Math.max(i, e), a = Math.min(a, t), o = Math.max(o, t);
|
|
850
|
+
});
|
|
851
|
+
let s = i - r, c = o - a, l = s / t, u = c / t, d = Array(t).fill(0), f = Array(t).fill(0);
|
|
852
|
+
n.forEach(({ x: e, y: t }) => {
|
|
853
|
+
let n = Math.floor((e - r) / l), i = Math.floor((t - a) / u);
|
|
854
|
+
d[n] || (d[n] = 0), f[i] || (f[i] = 0), d[n] += 1, f[i] += 1;
|
|
855
|
+
});
|
|
856
|
+
let p = [], m = [];
|
|
857
|
+
for (let e = 0; e < t; e += 1) p.push(r + (e + .5) * l), m.push(a + (e + .5) * u);
|
|
858
|
+
return {
|
|
859
|
+
x: d,
|
|
860
|
+
y: f,
|
|
861
|
+
avgX: p,
|
|
862
|
+
avgY: m,
|
|
863
|
+
maxX: Math.max(...d),
|
|
864
|
+
maxY: Math.max(...f)
|
|
865
|
+
};
|
|
866
|
+
}
|
|
867
|
+
let J = y(() => R.value.style.layout.marginalBars.tranches), Y = y(() => Kr(Ur.value, J.value)), qr = y(() => {
|
|
868
|
+
let e = U.value.top - R.value.style.layout.marginalBars.offset, n = U.value.right + R.value.style.layout.marginalBars.offset;
|
|
869
|
+
return Ur.value.map((r) => {
|
|
870
|
+
let i = Kr(r, J.value);
|
|
871
|
+
return {
|
|
872
|
+
coords: i,
|
|
873
|
+
dX: g(i.avgX.map((t, n) => ({
|
|
874
|
+
x: t,
|
|
875
|
+
y: e - i.x[n] / i.maxX * R.value.style.layout.marginalBars.size
|
|
876
|
+
}))),
|
|
877
|
+
dY: t(i.avgY.map((e, t) => ({
|
|
878
|
+
y: e,
|
|
879
|
+
x: n + R.value.style.layout.marginalBars.size * i.y[t] / i.maxY
|
|
880
|
+
}))),
|
|
881
|
+
color: r.color,
|
|
882
|
+
id: r.id
|
|
883
|
+
};
|
|
884
|
+
});
|
|
885
|
+
}), X = O(void 0), Z = O(null), Jr = O(null);
|
|
886
|
+
function Yr() {
|
|
887
|
+
jn.value = !1, X.value = void 0, Z.value = null, ir.value = null, er.value = null;
|
|
888
|
+
}
|
|
889
|
+
function Xr(e) {
|
|
890
|
+
if (!z.value || !e) return;
|
|
891
|
+
let t = i(e.x, e.y, z.value);
|
|
892
|
+
t && (tr.value = t);
|
|
893
|
+
}
|
|
894
|
+
function Zr(e, t, r = "pointer", i = null) {
|
|
895
|
+
X.value = e.id, Z.value = e, nr.value = r, ir.value = i, er.value = e.id;
|
|
896
|
+
let a = "";
|
|
897
|
+
R.value.events.datapointEnter && R.value.events.datapointEnter({
|
|
898
|
+
datapoint: e,
|
|
899
|
+
seriesIndex: t
|
|
900
|
+
}), Jr.value = {
|
|
901
|
+
datapoint: e,
|
|
902
|
+
seriesIndex: t,
|
|
903
|
+
series: q.value,
|
|
904
|
+
config: R.value
|
|
905
|
+
};
|
|
906
|
+
let o = R.value.style.tooltip.customFormat;
|
|
907
|
+
ne(o) && ee(() => o({
|
|
908
|
+
datapoint: e,
|
|
909
|
+
seriesIndex: t,
|
|
910
|
+
series: q.value,
|
|
911
|
+
config: R.value
|
|
912
|
+
})) ? Mn.value = o({
|
|
913
|
+
datapoint: e,
|
|
914
|
+
seriesIndex: t,
|
|
915
|
+
series: q.value,
|
|
916
|
+
config: R.value
|
|
917
|
+
}) : (e.clusterName && (a += `<div style="display:flex;gap:3px;align-items:center">${e.clusterName}</div>`), e.v.name && (a += `<div>${e.v.name}</div>`), a += `<div style="text-align:left;margin-top:6px;padding-top:6px;border-top:1px solid ${R.value.style.tooltip.borderColor}">`, a += `<div>${R.value.style.layout.dataLabels.xAxis.name}: <b>${isNaN(e.v.x) ? "-" : m(R.value.style.layout.plots.selectors.labels.x.formatter, e.v.x, n({
|
|
918
|
+
p: R.value.style.tooltip.prefix,
|
|
919
|
+
v: e.v.x,
|
|
920
|
+
s: R.value.style.tooltip.suffix,
|
|
921
|
+
r: R.value.style.tooltip.roundingValue
|
|
922
|
+
}), {
|
|
923
|
+
datapoint: e,
|
|
924
|
+
seriesIndex: t
|
|
925
|
+
})}</b></div>`, a += `<div>${R.value.style.layout.dataLabels.yAxis.name}: <b>${isNaN(e.v.y) ? "-" : m(R.value.style.layout.plots.selectors.labels.y.formatter, e.v.y, n({
|
|
926
|
+
p: R.value.style.tooltip.prefix,
|
|
927
|
+
v: e.v.y,
|
|
928
|
+
s: R.value.style.tooltip.suffix,
|
|
929
|
+
r: R.value.style.tooltip.roundingValue
|
|
930
|
+
}), {
|
|
931
|
+
datapoint: e,
|
|
932
|
+
seriesIndex: t
|
|
933
|
+
})}</b></div>`, a += `${R.value.style.layout.plots.deviation.translation}: <b>${n({
|
|
934
|
+
v: e.deviation,
|
|
935
|
+
r: R.value.style.layout.plots.deviation.roundingValue
|
|
936
|
+
})}</b>`, a += "</div>", Mn.value = `<div>${a}</div>`), jn.value = !0, r === "keyboard" && Ne(() => {
|
|
937
|
+
Xr(e);
|
|
938
|
+
});
|
|
939
|
+
}
|
|
940
|
+
function Qr(e, t) {
|
|
941
|
+
R.value.events.datapointLeave && R.value.events.datapointLeave({
|
|
942
|
+
datapoint: e,
|
|
943
|
+
seriesIndex: t
|
|
944
|
+
}), !(nr.value === "keyboard" && er.value === e?.id) && (jn.value = !1, X.value = void 0, Z.value = null);
|
|
945
|
+
}
|
|
946
|
+
function $r(e, t) {
|
|
947
|
+
R.value.events.datapointClick && R.value.events.datapointClick({
|
|
948
|
+
datapoint: e,
|
|
949
|
+
seriesIndex: t
|
|
950
|
+
});
|
|
951
|
+
}
|
|
952
|
+
function ei() {
|
|
953
|
+
L.value.length ? L.value = [] : K.value.forEach((e) => {
|
|
954
|
+
L.value.push(e.id);
|
|
955
|
+
});
|
|
956
|
+
}
|
|
957
|
+
function ti(e) {
|
|
958
|
+
L.value.includes(e) ? L.value = L.value.filter((t) => t !== e) : L.value.length < lr.value.length - 1 && L.value.push(e);
|
|
959
|
+
}
|
|
960
|
+
function ni(e) {
|
|
961
|
+
return K.value.length ? K.value.find((t) => t.name === e) || (R.value.debug && console.warn(`VueUiScatter - Series name not found "${e}"`), null) : (R.value.debug && console.warn("VueUiScatter - There are no series to show."), null);
|
|
962
|
+
}
|
|
963
|
+
function ri(e) {
|
|
964
|
+
let t = ni(e);
|
|
965
|
+
t !== null && L.value.includes(t.id) && ti(t.id);
|
|
966
|
+
}
|
|
967
|
+
function ii(e) {
|
|
968
|
+
let t = ni(e);
|
|
969
|
+
t !== null && (L.value.includes(t.id) || ti(t.id));
|
|
970
|
+
}
|
|
971
|
+
function ai(e = null) {
|
|
972
|
+
Ne(() => {
|
|
973
|
+
let t = [
|
|
974
|
+
"",
|
|
975
|
+
R.value.table.translations.correlationCoefficient,
|
|
976
|
+
R.value.table.translations.nbrPlots,
|
|
977
|
+
`${R.value.style.layout.dataLabels.xAxis.name} ${R.value.table.translations.average}`,
|
|
978
|
+
`${R.value.style.layout.dataLabels.yAxis.name} ${R.value.table.translations.average}`
|
|
979
|
+
], n = q.value.map((e) => [
|
|
980
|
+
e.name,
|
|
981
|
+
e.correlation.coefficient,
|
|
982
|
+
e.plots.length,
|
|
983
|
+
e.plots.map((e) => e.v.x).reduce((e, t) => e + t, 0) / e.plots.length,
|
|
984
|
+
e.plots.map((e) => e.v.y).reduce((e, t) => e + t, 0) / e.plots.length
|
|
985
|
+
]), r = s([
|
|
986
|
+
[R.value.style.title.text],
|
|
987
|
+
[R.value.style.title.subtitle.text],
|
|
988
|
+
[
|
|
989
|
+
[""],
|
|
990
|
+
[""],
|
|
991
|
+
[""]
|
|
992
|
+
],
|
|
993
|
+
t
|
|
994
|
+
].concat(n));
|
|
995
|
+
e ? e(r) : a({
|
|
996
|
+
csvContent: r,
|
|
997
|
+
title: R.value.style.title.text || "vue-ui-heatmap"
|
|
998
|
+
});
|
|
999
|
+
});
|
|
1000
|
+
}
|
|
1001
|
+
let oi = y(() => {
|
|
1002
|
+
let e = [
|
|
1003
|
+
R.value.table.translations.series,
|
|
1004
|
+
R.value.table.translations.correlationCoefficient,
|
|
1005
|
+
R.value.table.translations.nbrPlots,
|
|
1006
|
+
`${R.value.style.layout.dataLabels.xAxis.name} ${R.value.table.translations.average}`,
|
|
1007
|
+
`${R.value.style.layout.dataLabels.yAxis.name} ${R.value.table.translations.average}`
|
|
1008
|
+
], t = q.value.map((e) => [
|
|
1009
|
+
{
|
|
1010
|
+
shape: e.shape,
|
|
1011
|
+
content: e.name ?? "-",
|
|
1012
|
+
color: e.color
|
|
1013
|
+
},
|
|
1014
|
+
Number((e.correlation?.coefficient ?? 0).toFixed(R.value.table.td.roundingValue)).toLocaleString(),
|
|
1015
|
+
e.plots.length.toLocaleString(),
|
|
1016
|
+
Number((e.plots.map((e) => e.v.x ?? 0).reduce((e, t) => e + t, 0) / e.plots.length).toFixed(R.value.table.td.roundingAverage)).toLocaleString(),
|
|
1017
|
+
Number((e.plots.map((e) => e.v.y ?? 0).reduce((e, t) => e + t, 0) / e.plots.length).toFixed(R.value.table.td.roundingAverage)).toLocaleString()
|
|
1018
|
+
]);
|
|
1019
|
+
return {
|
|
1020
|
+
head: e,
|
|
1021
|
+
body: t,
|
|
1022
|
+
a11yBody: t.map((e) => e.map((e, t) => t === 0 ? e.content : e)),
|
|
1023
|
+
config: {
|
|
1024
|
+
th: {
|
|
1025
|
+
backgroundColor: R.value.table.th.backgroundColor,
|
|
1026
|
+
color: R.value.table.th.color,
|
|
1027
|
+
outline: R.value.table.th.outline
|
|
1028
|
+
},
|
|
1029
|
+
td: {
|
|
1030
|
+
backgroundColor: R.value.table.td.backgroundColor,
|
|
1031
|
+
color: R.value.table.td.color,
|
|
1032
|
+
outline: R.value.table.td.outline
|
|
1033
|
+
},
|
|
1034
|
+
breakpoint: R.value.table.responsiveBreakpoint
|
|
1035
|
+
},
|
|
1036
|
+
colNames: e
|
|
1037
|
+
};
|
|
1038
|
+
}), si = O(!1);
|
|
1039
|
+
function ci(e) {
|
|
1040
|
+
si.value = e, Nn.value += 1;
|
|
1041
|
+
}
|
|
1042
|
+
function li() {
|
|
1043
|
+
V.value.showTable = !V.value.showTable;
|
|
1044
|
+
}
|
|
1045
|
+
function ui() {
|
|
1046
|
+
V.value.showTooltip = !V.value.showTooltip;
|
|
1047
|
+
}
|
|
1048
|
+
let di = O(!1);
|
|
1049
|
+
function fi() {
|
|
1050
|
+
di.value = !di.value;
|
|
1051
|
+
}
|
|
1052
|
+
async function pi({ scale: e = 2 } = {}) {
|
|
1053
|
+
if (!I.value) return;
|
|
1054
|
+
let { width: t, height: n } = I.value.getBoundingClientRect(), r = t / n, { imageUri: i, base64: a } = await he({
|
|
1055
|
+
domElement: I.value,
|
|
1056
|
+
base64: !0,
|
|
1057
|
+
img: !0,
|
|
1058
|
+
scale: e
|
|
1059
|
+
});
|
|
1060
|
+
return {
|
|
1061
|
+
imageUri: i,
|
|
1062
|
+
base64: a,
|
|
1063
|
+
title: R.value.style.title.text,
|
|
1064
|
+
width: t,
|
|
1065
|
+
height: n,
|
|
1066
|
+
aspectRatio: r
|
|
1067
|
+
};
|
|
1068
|
+
}
|
|
1069
|
+
function mi(e) {
|
|
1070
|
+
Hn.value = e, R.value.style.layout.marginalBars.highlighter.highlightBothAxes && (Un.value = Y.value.y.length - 2 - e);
|
|
1071
|
+
}
|
|
1072
|
+
function hi(e) {
|
|
1073
|
+
Un.value = e, R.value.style.layout.marginalBars.highlighter.highlightBothAxes && (Hn.value = e);
|
|
1074
|
+
}
|
|
1075
|
+
function gi() {
|
|
1076
|
+
Hn.value = null, Un.value = null;
|
|
1077
|
+
}
|
|
1078
|
+
let _i = {
|
|
1079
|
+
circle: 1,
|
|
1080
|
+
square: 1,
|
|
1081
|
+
diamond: 1,
|
|
1082
|
+
triangle: 1.2,
|
|
1083
|
+
star: 1.3,
|
|
1084
|
+
pentagon: 1.3,
|
|
1085
|
+
hexagon: 1.3
|
|
1086
|
+
}, Q = (e) => e.toFixed(3);
|
|
1087
|
+
function vi({ shape: e = "circle", cx: t, cy: n, r }) {
|
|
1088
|
+
if (!R.value.usePerformanceMode) return "";
|
|
1089
|
+
let i = _i[e] * r;
|
|
1090
|
+
switch (e) {
|
|
1091
|
+
case "circle": {
|
|
1092
|
+
let e = Q(t - i), r = Q(n), a = Q(t + i), o = Q(i);
|
|
1093
|
+
return `M ${e} ${r} A ${o} ${o} 0 1 0 ${a} ${r} A ${o} ${o} 0 1 0 ${e} ${r} Z`;
|
|
1094
|
+
}
|
|
1095
|
+
case "square": {
|
|
1096
|
+
let e = Q(t - i), r = Q(n - i), a = Q(t + i), o = Q(n + i);
|
|
1097
|
+
return `M ${e} ${r} L ${a} ${r} L ${a} ${o} L ${e} ${o} Z`;
|
|
1098
|
+
}
|
|
1099
|
+
case "diamond": {
|
|
1100
|
+
let e = Q(t), r = Q(n);
|
|
1101
|
+
return `M ${e} ${Q(n - i)} L ${Q(t + i)} ${r} L ${e} ${Q(n + i)} L ${Q(t - i)} ${r} Z`;
|
|
1102
|
+
}
|
|
1103
|
+
case "triangle": {
|
|
1104
|
+
let e = i * Math.sqrt(3), r = t, a = n - 2 / 3 * e, o = t - i, s = n + 1 / 3 * e, c = t + i, l = s;
|
|
1105
|
+
return `M ${Q(r)} ${Q(a)} L ${Q(o)} ${Q(s)} L ${Q(c)} ${Q(l)} Z`;
|
|
1106
|
+
}
|
|
1107
|
+
case "star": {
|
|
1108
|
+
let e = i, r = i * .5, a = [];
|
|
1109
|
+
for (let i = 0; i < 10; i += 1) {
|
|
1110
|
+
let o = (-90 + i * 36) * Math.PI / 180, s = i % 2 == 0 ? e : r;
|
|
1111
|
+
a.push([t + s * Math.cos(o), n + s * Math.sin(o)]);
|
|
1112
|
+
}
|
|
1113
|
+
let o = `M ${Q(a[0][0])} ${Q(a[0][1])}`;
|
|
1114
|
+
for (let e = 1; e < a.length; e += 1) o += ` L ${Q(a[e][0])} ${Q(a[e][1])}`;
|
|
1115
|
+
return o + " Z";
|
|
1116
|
+
}
|
|
1117
|
+
case "pentagon": {
|
|
1118
|
+
let e = [];
|
|
1119
|
+
for (let r = 0; r < 5; r += 1) {
|
|
1120
|
+
let a = (-90 + 360 / 5 * r) * Math.PI / 180;
|
|
1121
|
+
e.push([t + i * Math.cos(a), n + i * Math.sin(a)]);
|
|
1122
|
+
}
|
|
1123
|
+
let r = `M ${Q(e[0][0])} ${Q(e[0][1])}`;
|
|
1124
|
+
for (let t = 1; t < 5; t += 1) r += ` L ${Q(e[t][0])} ${Q(e[t][1])}`;
|
|
1125
|
+
return r + " Z";
|
|
1126
|
+
}
|
|
1127
|
+
case "hexagon": {
|
|
1128
|
+
let e = [];
|
|
1129
|
+
for (let r = 0; r < 6; r += 1) {
|
|
1130
|
+
let a = (-60 + 360 / 6 * r) * Math.PI / 180;
|
|
1131
|
+
e.push([t + i * Math.cos(a), n + i * Math.sin(a)]);
|
|
1132
|
+
}
|
|
1133
|
+
let r = `M ${Q(e[0][0])} ${Q(e[0][1])}`;
|
|
1134
|
+
for (let t = 1; t < 6; t += 1) r += ` L ${Q(e[t][0])} ${Q(e[t][1])}`;
|
|
1135
|
+
return r + " Z";
|
|
1136
|
+
}
|
|
1137
|
+
default: {
|
|
1138
|
+
let e = Q(t - i), r = Q(n), a = Q(t + i), o = Q(i);
|
|
1139
|
+
return `M ${e} ${r} A ${o} ${o} 0 1 0 ${a} ${r} A ${o} ${o} 0 1 0 ${e} ${r} Z`;
|
|
1140
|
+
}
|
|
1141
|
+
}
|
|
1142
|
+
}
|
|
1143
|
+
let yi = y(() => {
|
|
1144
|
+
if (!R.value.usePerformanceMode) return [""];
|
|
1145
|
+
let { left: e, right: t, top: n, bottom: r } = U.value, i = Math.max(1, (t - e) * (r - n)), a = (e) => e / i * 1e4, o = R.value.style.layout.plots.stroke, s = R.value.style.layout.plots.strokeWidth, c = R.value.style.layout.plots.opacity;
|
|
1146
|
+
return q.value.map((i) => {
|
|
1147
|
+
let l = [];
|
|
1148
|
+
for (let a of i.plots) {
|
|
1149
|
+
let o = a.x, s = a.y;
|
|
1150
|
+
if (o < e || o > t || s < n || s > r) continue;
|
|
1151
|
+
let c = Math.max(R.value.style.layout.plots.radius, a.weight);
|
|
1152
|
+
l.push(vi({
|
|
1153
|
+
shape: i.shape || "circle",
|
|
1154
|
+
cx: o,
|
|
1155
|
+
cy: s,
|
|
1156
|
+
r: c
|
|
1157
|
+
}));
|
|
1158
|
+
}
|
|
1159
|
+
if (!l.length) return null;
|
|
1160
|
+
let u = a(i.plots.length) > 2.5 || i.plots.length > 1e3;
|
|
1161
|
+
return {
|
|
1162
|
+
id: i.id,
|
|
1163
|
+
d: l.join(""),
|
|
1164
|
+
fill: h(i.color, c * 100),
|
|
1165
|
+
stroke: u ? "none" : o,
|
|
1166
|
+
strokeWidth: u ? 0 : s,
|
|
1167
|
+
strokeOpacity: 1
|
|
1168
|
+
};
|
|
1169
|
+
}).filter(Boolean);
|
|
1170
|
+
});
|
|
1171
|
+
function bi() {
|
|
1172
|
+
return R.value.usePerformanceMode ? (e) => {
|
|
1173
|
+
let t = z.value;
|
|
1174
|
+
if (!t) return;
|
|
1175
|
+
let n = t.createSVGPoint();
|
|
1176
|
+
n.x = e.clientX, n.y = e.clientY;
|
|
1177
|
+
let r = t.getScreenCTM();
|
|
1178
|
+
if (!r) return;
|
|
1179
|
+
let i = r.inverse(), a = n.matrixTransform(i), o = null, s = Infinity, c = -1;
|
|
1180
|
+
if (q.value.forEach((e, t) => {
|
|
1181
|
+
e.plots.forEach((e) => {
|
|
1182
|
+
let n = e.x - a.x, r = e.y - a.y, i = n * n + r * r;
|
|
1183
|
+
i <= 64 && i < s && (s = i, o = e, c = t);
|
|
1184
|
+
});
|
|
1185
|
+
}), o) X.value !== o.id && (X.value = o.id, Zr(o, c, "pointer", $.value.get(o.id) ?? null));
|
|
1186
|
+
else if (X.value) {
|
|
1187
|
+
let e = Z.value;
|
|
1188
|
+
X.value = void 0, Qr(e, c);
|
|
1189
|
+
}
|
|
1190
|
+
} : () => null;
|
|
1191
|
+
}
|
|
1192
|
+
let xi = bi();
|
|
1193
|
+
function Si() {
|
|
1194
|
+
if (X.value) {
|
|
1195
|
+
let e = Z.value;
|
|
1196
|
+
X.value = void 0, Qr(e, null);
|
|
1197
|
+
}
|
|
1198
|
+
}
|
|
1199
|
+
function Ci(e) {
|
|
1200
|
+
let t = Z.value;
|
|
1201
|
+
if (t) {
|
|
1202
|
+
let e = q.value.findIndex((e) => e.id === t.clusterId);
|
|
1203
|
+
$r(t, e >= 0 ? e : 0);
|
|
1204
|
+
}
|
|
1205
|
+
}
|
|
1206
|
+
let wi = y(() => {
|
|
1207
|
+
let e = R.value.table.useDialog && !R.value.table.show, t = V.value.showTable;
|
|
1208
|
+
return {
|
|
1209
|
+
component: e ? Tn : bn,
|
|
1210
|
+
title: `${R.value.style.title.text}${R.value.style.title.subtitle.text ? `: ${R.value.style.title.subtitle.text}` : ""}`,
|
|
1211
|
+
props: e ? {
|
|
1212
|
+
backgroundColor: R.value.table.th.backgroundColor,
|
|
1213
|
+
color: R.value.table.th.color,
|
|
1214
|
+
headerColor: R.value.table.th.color,
|
|
1215
|
+
headerBg: R.value.table.th.backgroundColor,
|
|
1216
|
+
isFullscreen: si.value,
|
|
1217
|
+
fullscreenParent: I.value,
|
|
1218
|
+
forcedWidth: Math.min(800, window.innerWidth * .8),
|
|
1219
|
+
isCursorPointer: ar.value
|
|
1220
|
+
} : {
|
|
1221
|
+
hideDetails: !0,
|
|
1222
|
+
config: {
|
|
1223
|
+
open: t,
|
|
1224
|
+
maxHeight: 1e4,
|
|
1225
|
+
body: {
|
|
1226
|
+
backgroundColor: R.value.style.backgroundColor,
|
|
1227
|
+
color: R.value.style.color
|
|
1228
|
+
},
|
|
1229
|
+
head: {
|
|
1230
|
+
backgroundColor: R.value.style.backgroundColor,
|
|
1231
|
+
color: R.value.style.color
|
|
1232
|
+
}
|
|
1233
|
+
}
|
|
1234
|
+
}
|
|
1235
|
+
};
|
|
1236
|
+
});
|
|
1237
|
+
Be(() => V.value.showTable, (e) => {
|
|
1238
|
+
R.value.table.show || (e && R.value.table.useDialog && Wn.value ? Wn.value.open() : "close" in Wn.value && Wn.value.close());
|
|
1239
|
+
});
|
|
1240
|
+
function Ti() {
|
|
1241
|
+
V.value.showTable = !1, Gn.value && Gn.value.setTableIconState(!1);
|
|
1242
|
+
}
|
|
1243
|
+
let Ei = y(() => R.value.style.backgroundColor), Di = y(() => R.value.style.legend), { exportSvg: Oi, getSvg: ki } = fe({
|
|
1244
|
+
svg: z,
|
|
1245
|
+
title: y(() => R.value.style.title),
|
|
1246
|
+
legend: Di,
|
|
1247
|
+
legendItems: K,
|
|
1248
|
+
backgroundColor: Ei
|
|
1249
|
+
});
|
|
1250
|
+
async function Ai({ isCb: e }) {
|
|
1251
|
+
qn.value = !0, await Ne();
|
|
1252
|
+
try {
|
|
1253
|
+
if (e) {
|
|
1254
|
+
let { blob: e, url: t, text: n, dataUrl: r } = await ki();
|
|
1255
|
+
await Promise.resolve(R.value.userOptions.callbacks.svg({
|
|
1256
|
+
blob: e,
|
|
1257
|
+
url: t,
|
|
1258
|
+
text: n,
|
|
1259
|
+
dataUrl: r
|
|
1260
|
+
}));
|
|
1261
|
+
} else await Promise.resolve(Oi());
|
|
1262
|
+
} finally {
|
|
1263
|
+
qn.value = !1;
|
|
1264
|
+
}
|
|
1265
|
+
}
|
|
1266
|
+
function ji(e) {
|
|
1267
|
+
if (e?.stage === "start") {
|
|
1268
|
+
Kn.value = !0;
|
|
1269
|
+
return;
|
|
1270
|
+
}
|
|
1271
|
+
if (e?.stage === "end") {
|
|
1272
|
+
Kn.value = !1;
|
|
1273
|
+
return;
|
|
1274
|
+
}
|
|
1275
|
+
xr();
|
|
1276
|
+
}
|
|
1277
|
+
async function Mi() {
|
|
1278
|
+
if (kn("copyAlt", {
|
|
1279
|
+
config: R.value,
|
|
1280
|
+
dataset: Ur.value
|
|
1281
|
+
}), !R.value.userOptions.callbacks.altCopy) {
|
|
1282
|
+
console.warn("Vue Data UI - A callback must be set for `altCopy` in userOptions.");
|
|
1283
|
+
return;
|
|
1284
|
+
}
|
|
1285
|
+
await Promise.resolve(R.value.userOptions.callbacks.altCopy({
|
|
1286
|
+
config: R.value,
|
|
1287
|
+
dataset: Ur.value
|
|
1288
|
+
}));
|
|
1289
|
+
}
|
|
1290
|
+
function Ni(e, t) {
|
|
1291
|
+
let n = Ri.value.filter((t) => t.id !== e.id);
|
|
1292
|
+
if (!n.length) return null;
|
|
1293
|
+
let r = ((n) => {
|
|
1294
|
+
if (!n.length) return null;
|
|
1295
|
+
let r = null, i = Infinity;
|
|
1296
|
+
return n.forEach((n) => {
|
|
1297
|
+
let a = n.x - e.x, o = n.y - e.y, s = 0, c = 0;
|
|
1298
|
+
t === "right" || t === "left" ? (s = Math.abs(a), c = Math.abs(o)) : (s = Math.abs(o), c = Math.abs(a));
|
|
1299
|
+
let l = s * 1e3 + c;
|
|
1300
|
+
l < i && (r = n, i = l);
|
|
1301
|
+
}), r;
|
|
1302
|
+
})(n.filter((n) => t === "right" ? n.x > e.x : t === "left" ? n.x < e.x : t === "down" ? n.y > e.y : t === "up" ? n.y < e.y : !1));
|
|
1303
|
+
if (r) return r;
|
|
1304
|
+
let i = [];
|
|
1305
|
+
if (t === "right") {
|
|
1306
|
+
let e = Math.min(...n.map((e) => e.x));
|
|
1307
|
+
i = n.filter((t) => t.x === e);
|
|
1308
|
+
}
|
|
1309
|
+
if (t === "left") {
|
|
1310
|
+
let e = Math.max(...n.map((e) => e.x));
|
|
1311
|
+
i = n.filter((t) => t.x === e);
|
|
1312
|
+
}
|
|
1313
|
+
if (t === "down") {
|
|
1314
|
+
let e = Math.min(...n.map((e) => e.y));
|
|
1315
|
+
i = n.filter((t) => t.y === e);
|
|
1316
|
+
}
|
|
1317
|
+
if (t === "up") {
|
|
1318
|
+
let e = Math.max(...n.map((e) => e.y));
|
|
1319
|
+
i = n.filter((t) => t.y === e);
|
|
1320
|
+
}
|
|
1321
|
+
return i.length ? i.reduce((n, r) => {
|
|
1322
|
+
if (!n) return r;
|
|
1323
|
+
let i = Math.abs(t === "right" || t === "left" ? n.y - e.y : n.x - e.x);
|
|
1324
|
+
return Math.abs(t === "right" || t === "left" ? r.y - e.y : r.x - e.x) < i ? r : n;
|
|
1325
|
+
}, null) : null;
|
|
1326
|
+
}
|
|
1327
|
+
function Pi() {
|
|
1328
|
+
ir.value = null, er.value = null, rr.value = !0;
|
|
1329
|
+
}
|
|
1330
|
+
function Fi() {
|
|
1331
|
+
Yr(), nr.value = "pointer", rr.value = !1;
|
|
1332
|
+
}
|
|
1333
|
+
function Ii(e) {
|
|
1334
|
+
if (!z.value || di.value || document.activeElement !== z.value || !Ri.value.length) return;
|
|
1335
|
+
let t = e.key === "ArrowLeft", n = e.key === "ArrowRight", r = e.key === "ArrowUp", i = e.key === "ArrowDown", a = e.key === "Enter" || e.key === " ", o = e.key === "Escape";
|
|
1336
|
+
if (!t && !n && !r && !i && !a && !o) return;
|
|
1337
|
+
if (e.preventDefault(), e.stopPropagation(), o) {
|
|
1338
|
+
Yr(), nr.value = "pointer";
|
|
1339
|
+
return;
|
|
1340
|
+
}
|
|
1341
|
+
if (a) {
|
|
1342
|
+
if (ir.value === null) return;
|
|
1343
|
+
let e = Ri.value[ir.value];
|
|
1344
|
+
if (!e) return;
|
|
1345
|
+
$r(e, e.seriesIndex);
|
|
1346
|
+
return;
|
|
1347
|
+
}
|
|
1348
|
+
let s = null;
|
|
1349
|
+
if (n && (s = "right"), t && (s = "left"), i && (s = "down"), r && (s = "up"), er.value === null) {
|
|
1350
|
+
let e = Z.value;
|
|
1351
|
+
if (e && e.id) {
|
|
1352
|
+
let t = Ni(e, s);
|
|
1353
|
+
if (!t) {
|
|
1354
|
+
let t = $.value.get(e.id);
|
|
1355
|
+
if (t === void 0) return;
|
|
1356
|
+
Zr(e, e.seriesIndex, "keyboard", t);
|
|
1357
|
+
return;
|
|
1358
|
+
}
|
|
1359
|
+
let n = $.value.get(t.id);
|
|
1360
|
+
if (n === void 0) return;
|
|
1361
|
+
Zr(t, t.seriesIndex, "keyboard", n);
|
|
1362
|
+
return;
|
|
1363
|
+
}
|
|
1364
|
+
let t = Ri.value[0];
|
|
1365
|
+
if (!t) return;
|
|
1366
|
+
let n = $.value.get(t.id) ?? 0;
|
|
1367
|
+
Zr(t, t.seriesIndex, "keyboard", n);
|
|
1368
|
+
return;
|
|
1369
|
+
}
|
|
1370
|
+
let c = $.value.get(er.value);
|
|
1371
|
+
if (c === void 0) return;
|
|
1372
|
+
let l = Ri.value[c];
|
|
1373
|
+
if (!l) return;
|
|
1374
|
+
let u = Ni(l, s);
|
|
1375
|
+
if (!u) return;
|
|
1376
|
+
let d = $.value.get(u.id);
|
|
1377
|
+
d !== void 0 && Zr(u, u.seriesIndex, "keyboard", d);
|
|
1378
|
+
}
|
|
1379
|
+
let Li = y(() => {
|
|
1380
|
+
if (!Z.value) return "";
|
|
1381
|
+
let e = Z.value, t = isNaN(e.v.x) ? "-" : m(R.value.style.layout.plots.selectors.labels.x.formatter, e.v.x, n({
|
|
1382
|
+
p: R.value.style.tooltip.prefix,
|
|
1383
|
+
v: e.v.x,
|
|
1384
|
+
s: R.value.style.tooltip.suffix,
|
|
1385
|
+
r: R.value.style.tooltip.roundingValue
|
|
1386
|
+
}), {
|
|
1387
|
+
datapoint: e,
|
|
1388
|
+
seriesIndex: e.seriesIndex
|
|
1389
|
+
}), r = isNaN(e.v.y) ? "-" : m(R.value.style.layout.plots.selectors.labels.y.formatter, e.v.y, n({
|
|
1390
|
+
p: R.value.style.tooltip.prefix,
|
|
1391
|
+
v: e.v.y,
|
|
1392
|
+
s: R.value.style.tooltip.suffix,
|
|
1393
|
+
r: R.value.style.tooltip.roundingValue
|
|
1394
|
+
}), {
|
|
1395
|
+
datapoint: e,
|
|
1396
|
+
seriesIndex: e.seriesIndex
|
|
1397
|
+
});
|
|
1398
|
+
return [
|
|
1399
|
+
e.clusterName || "",
|
|
1400
|
+
e.v.name || "",
|
|
1401
|
+
`${R.value.style.layout.dataLabels.xAxis.name}: ${t}`,
|
|
1402
|
+
`${R.value.style.layout.dataLabels.yAxis.name}: ${r}`
|
|
1403
|
+
].filter(Boolean).join(". ");
|
|
1404
|
+
}), Ri = y(() => q.value.flatMap((e, t) => e.plots.map((n) => ({
|
|
1405
|
+
...n,
|
|
1406
|
+
seriesIndex: t,
|
|
1407
|
+
seriesId: e.id,
|
|
1408
|
+
seriesName: e.name,
|
|
1409
|
+
shape: e.shape || "circle",
|
|
1410
|
+
color: e.color
|
|
1411
|
+
})))), $ = y(() => {
|
|
1412
|
+
let e = /* @__PURE__ */ new Map();
|
|
1413
|
+
return Ri.value.forEach((t, n) => {
|
|
1414
|
+
e.set(t.id, n);
|
|
1415
|
+
}), e;
|
|
1416
|
+
}), zi = y(() => ({
|
|
1417
|
+
headers: oi.value?.colNames ?? [],
|
|
1418
|
+
rows: oi.value?.a11yBody ?? []
|
|
1419
|
+
}));
|
|
1420
|
+
return ve({
|
|
1421
|
+
getData: Gr,
|
|
1422
|
+
getImage: pi,
|
|
1423
|
+
generatePdf: br,
|
|
1424
|
+
generateCsv: ai,
|
|
1425
|
+
generateImage: xr,
|
|
1426
|
+
generateSvg: Ai,
|
|
1427
|
+
hideSeries: ii,
|
|
1428
|
+
showSeries: ri,
|
|
1429
|
+
toggleTable: li,
|
|
1430
|
+
toggleTooltip: ui,
|
|
1431
|
+
toggleAnnotator: fi,
|
|
1432
|
+
toggleFullscreen: ci,
|
|
1433
|
+
copyAlt: Mi
|
|
1434
|
+
}), (e, t) => (D(), S("div", {
|
|
1435
|
+
class: Pe(`vue-data-ui-component vue-ui-scatter ${si.value ? "vue-data-ui-wrapper-fullscreen" : ""} ${R.value.useCssAnimation ? "" : "vue-ui-dna"}`),
|
|
1436
|
+
ref_key: "scatterChart",
|
|
1437
|
+
ref: I,
|
|
1438
|
+
id: `vue-ui-scatter_${F.value}`,
|
|
1439
|
+
style: E(`font-family:${R.value.style.fontFamily};width:100%; text-align:center;background:${R.value.style.backgroundColor};${R.value.responsive ? "height: 100%" : ""}`),
|
|
1440
|
+
onMouseenter: t[5] ||= () => M(fr)(!0),
|
|
1441
|
+
onMouseleave: t[6] ||= () => {
|
|
1442
|
+
M(fr)(!1), rr.value || Yr();
|
|
1443
|
+
}
|
|
1444
|
+
}, [
|
|
1445
|
+
C("div", {
|
|
1446
|
+
id: `chart-instructions-${F.value}`,
|
|
1447
|
+
class: "sr-only"
|
|
1448
|
+
}, [C("p", null, j(R.value.a11y.translations.keyboardNavigation), 1)], 8, Ue),
|
|
1449
|
+
V.value.showTooltip ? x("", !0) : (D(), S("div", We, j(Li.value), 1)),
|
|
1450
|
+
zi.value?.rows?.length && An.value ? (D(), b(Se, {
|
|
1451
|
+
key: 1,
|
|
1452
|
+
uid: F.value,
|
|
1453
|
+
head: zi.value.headers,
|
|
1454
|
+
body: zi.value.rows,
|
|
1455
|
+
notice: R.value.a11y.translations.tableAvailable,
|
|
1456
|
+
caption: R.value.a11y.translations.tableCaption
|
|
1457
|
+
}, null, 8, [
|
|
1458
|
+
"uid",
|
|
1459
|
+
"head",
|
|
1460
|
+
"body",
|
|
1461
|
+
"notice",
|
|
1462
|
+
"caption"
|
|
1463
|
+
])) : x("", !0),
|
|
1464
|
+
R.value.userOptions.buttons.annotator ? (D(), b(M(Sn), {
|
|
1465
|
+
key: 2,
|
|
1466
|
+
svgRef: M(z),
|
|
1467
|
+
backgroundColor: R.value.style.backgroundColor,
|
|
1468
|
+
color: R.value.style.color,
|
|
1469
|
+
active: di.value,
|
|
1470
|
+
isCursorPointer: ar.value,
|
|
1471
|
+
onClose: fi
|
|
1472
|
+
}, {
|
|
1473
|
+
"annotator-action-close": N(() => [A(e.$slots, "annotator-action-close", {}, void 0, !0)]),
|
|
1474
|
+
"annotator-action-color": N(({ color: t }) => [A(e.$slots, "annotator-action-color", T(w({ color: t })), void 0, !0)]),
|
|
1475
|
+
"annotator-action-draw": N(({ mode: t }) => [A(e.$slots, "annotator-action-draw", T(w({ mode: t })), void 0, !0)]),
|
|
1476
|
+
"annotator-action-undo": N(({ disabled: t }) => [A(e.$slots, "annotator-action-undo", T(w({ disabled: t })), void 0, !0)]),
|
|
1477
|
+
"annotator-action-redo": N(({ disabled: t }) => [A(e.$slots, "annotator-action-redo", T(w({ disabled: t })), void 0, !0)]),
|
|
1478
|
+
"annotator-action-delete": N(({ disabled: t }) => [A(e.$slots, "annotator-action-delete", T(w({ disabled: t })), void 0, !0)]),
|
|
1479
|
+
_: 3
|
|
1480
|
+
}, 8, [
|
|
1481
|
+
"svgRef",
|
|
1482
|
+
"backgroundColor",
|
|
1483
|
+
"color",
|
|
1484
|
+
"active",
|
|
1485
|
+
"isCursorPointer"
|
|
1486
|
+
])) : x("", !0),
|
|
1487
|
+
Sr.value ? (D(), S("div", {
|
|
1488
|
+
key: 3,
|
|
1489
|
+
ref_key: "noTitle",
|
|
1490
|
+
ref: Ln,
|
|
1491
|
+
class: "vue-data-ui-no-title-space",
|
|
1492
|
+
style: "height:36px; width: 100%;background:transparent"
|
|
1493
|
+
}, null, 512)) : x("", !0),
|
|
1494
|
+
R.value.style.title.text ? (D(), S("div", {
|
|
1495
|
+
key: 4,
|
|
1496
|
+
ref_key: "chartTitle",
|
|
1497
|
+
ref: Pn,
|
|
1498
|
+
style: "width:100%;background:transparent"
|
|
1499
|
+
}, [(D(), b(ge, {
|
|
1500
|
+
key: `title_${Rn.value}`,
|
|
1501
|
+
config: {
|
|
1502
|
+
title: {
|
|
1503
|
+
cy: "scatter-div-title",
|
|
1504
|
+
...R.value.style.title
|
|
1505
|
+
},
|
|
1506
|
+
subtitle: {
|
|
1507
|
+
cy: "scatter-div-subtitle",
|
|
1508
|
+
...R.value.style.title.subtitle
|
|
1509
|
+
}
|
|
1510
|
+
}
|
|
1511
|
+
}, null, 8, ["config"]))], 512)) : x("", !0),
|
|
1512
|
+
C("div", { id: `legend-top-${F.value}` }, null, 8, Ge),
|
|
1513
|
+
R.value.userOptions.show && An.value && (M(pr) || M(dr)) ? (D(), b(M(Cn), {
|
|
1514
|
+
ref_key: "userOptionsRef",
|
|
1515
|
+
ref: Gn,
|
|
1516
|
+
key: `user_options_${Nn.value}`,
|
|
1517
|
+
backgroundColor: R.value.style.backgroundColor,
|
|
1518
|
+
color: R.value.style.color,
|
|
1519
|
+
isImaging: M(yr),
|
|
1520
|
+
isPrinting: M(vr),
|
|
1521
|
+
uid: F.value,
|
|
1522
|
+
hasTooltip: R.value.userOptions.buttons.tooltip && R.value.style.tooltip.show,
|
|
1523
|
+
hasPdf: R.value.userOptions.buttons.pdf,
|
|
1524
|
+
hasImg: R.value.userOptions.buttons.img,
|
|
1525
|
+
hasSvg: R.value.userOptions.buttons.svg,
|
|
1526
|
+
hasXls: R.value.userOptions.buttons.csv,
|
|
1527
|
+
hasTable: R.value.userOptions.buttons.table,
|
|
1528
|
+
hasFullscreen: R.value.userOptions.buttons.fullscreen,
|
|
1529
|
+
hasAltCopy: R.value.userOptions.buttons.altCopy,
|
|
1530
|
+
isTooltip: V.value.showTooltip,
|
|
1531
|
+
isFullscreen: si.value,
|
|
1532
|
+
titles: { ...R.value.userOptions.buttonTitles },
|
|
1533
|
+
chartElement: I.value,
|
|
1534
|
+
position: R.value.userOptions.position,
|
|
1535
|
+
hasAnnotator: R.value.userOptions.buttons.annotator,
|
|
1536
|
+
isAnnotation: di.value,
|
|
1537
|
+
callbacks: R.value.userOptions.callbacks,
|
|
1538
|
+
printScale: R.value.userOptions.print.scale,
|
|
1539
|
+
tableDialog: R.value.table.useDialog,
|
|
1540
|
+
isCursorPointer: ar.value,
|
|
1541
|
+
onToggleFullscreen: ci,
|
|
1542
|
+
onGeneratePdf: M(br),
|
|
1543
|
+
onGenerateCsv: ai,
|
|
1544
|
+
onGenerateImage: ji,
|
|
1545
|
+
onGenerateSvg: Ai,
|
|
1546
|
+
onToggleTable: li,
|
|
1547
|
+
onToggleTooltip: ui,
|
|
1548
|
+
onToggleAnnotator: fi,
|
|
1549
|
+
onCopyAlt: Mi,
|
|
1550
|
+
style: E({ visibility: M(pr) ? M(dr) ? "visible" : "hidden" : "visible" })
|
|
1551
|
+
}, Oe({ _: 2 }, [
|
|
1552
|
+
e.$slots.menuIcon ? {
|
|
1553
|
+
name: "menuIcon",
|
|
1554
|
+
fn: N(({ isOpen: t, color: n }) => [A(e.$slots, "menuIcon", T(w({
|
|
1555
|
+
isOpen: t,
|
|
1556
|
+
color: n
|
|
1557
|
+
})), void 0, !0)]),
|
|
1558
|
+
key: "0"
|
|
1559
|
+
} : void 0,
|
|
1560
|
+
e.$slots.optionTooltip ? {
|
|
1561
|
+
name: "optionTooltip",
|
|
1562
|
+
fn: N(() => [A(e.$slots, "optionTooltip", {}, void 0, !0)]),
|
|
1563
|
+
key: "1"
|
|
1564
|
+
} : void 0,
|
|
1565
|
+
e.$slots.optionPdf ? {
|
|
1566
|
+
name: "optionPdf",
|
|
1567
|
+
fn: N(() => [A(e.$slots, "optionPdf", {}, void 0, !0)]),
|
|
1568
|
+
key: "2"
|
|
1569
|
+
} : void 0,
|
|
1570
|
+
e.$slots.optionCsv ? {
|
|
1571
|
+
name: "optionCsv",
|
|
1572
|
+
fn: N(() => [A(e.$slots, "optionCsv", {}, void 0, !0)]),
|
|
1573
|
+
key: "3"
|
|
1574
|
+
} : void 0,
|
|
1575
|
+
e.$slots.optionImg ? {
|
|
1576
|
+
name: "optionImg",
|
|
1577
|
+
fn: N(() => [A(e.$slots, "optionImg", {}, void 0, !0)]),
|
|
1578
|
+
key: "4"
|
|
1579
|
+
} : void 0,
|
|
1580
|
+
e.$slots.optionSvg ? {
|
|
1581
|
+
name: "optionSvg",
|
|
1582
|
+
fn: N(() => [A(e.$slots, "optionSvg", {}, void 0, !0)]),
|
|
1583
|
+
key: "5"
|
|
1584
|
+
} : void 0,
|
|
1585
|
+
e.$slots.optionTable ? {
|
|
1586
|
+
name: "optionTable",
|
|
1587
|
+
fn: N(() => [A(e.$slots, "optionTable", {}, void 0, !0)]),
|
|
1588
|
+
key: "6"
|
|
1589
|
+
} : void 0,
|
|
1590
|
+
e.$slots.optionFullscreen ? {
|
|
1591
|
+
name: "optionFullscreen",
|
|
1592
|
+
fn: N(({ toggleFullscreen: t, isFullscreen: n }) => [A(e.$slots, "optionFullscreen", T(w({
|
|
1593
|
+
toggleFullscreen: t,
|
|
1594
|
+
isFullscreen: n
|
|
1595
|
+
})), void 0, !0)]),
|
|
1596
|
+
key: "7"
|
|
1597
|
+
} : void 0,
|
|
1598
|
+
e.$slots.optionAnnotator ? {
|
|
1599
|
+
name: "optionAnnotator",
|
|
1600
|
+
fn: N(({ toggleAnnotator: t, isAnnotator: n }) => [A(e.$slots, "optionAnnotator", T(w({
|
|
1601
|
+
toggleAnnotator: t,
|
|
1602
|
+
isAnnotator: n
|
|
1603
|
+
})), void 0, !0)]),
|
|
1604
|
+
key: "8"
|
|
1605
|
+
} : void 0,
|
|
1606
|
+
e.$slots.optionAltCopy ? {
|
|
1607
|
+
name: "optionAltCopy",
|
|
1608
|
+
fn: N(({ altCopy: t }) => [A(e.$slots, "optionAltCopy", T(w({ altCopy: t })), void 0, !0)]),
|
|
1609
|
+
key: "9"
|
|
1610
|
+
} : void 0
|
|
1611
|
+
]), 1032, /* @__PURE__ */ "backgroundColor.color.isImaging.isPrinting.uid.hasTooltip.hasPdf.hasImg.hasSvg.hasXls.hasTable.hasFullscreen.hasAltCopy.isTooltip.isFullscreen.titles.chartElement.position.hasAnnotator.isAnnotation.callbacks.printScale.tableDialog.isCursorPointer.onGeneratePdf.style".split("."))) : x("", !0),
|
|
1612
|
+
C("div", Ke, [(D(), S("svg", {
|
|
1613
|
+
ref_key: "svgRef",
|
|
1614
|
+
ref: z,
|
|
1615
|
+
xmlns: M(re),
|
|
1616
|
+
"aria-describedby": `chart-instructions-${F.value}`,
|
|
1617
|
+
class: Pe({
|
|
1618
|
+
"vue-data-ui-fullscreen--on": si.value,
|
|
1619
|
+
"vue-data-ui-fulscreen--off": !si.value,
|
|
1620
|
+
animated: R.value.useCssAnimation
|
|
1621
|
+
}),
|
|
1622
|
+
viewBox: `0 0 ${H.value.width <= 0 ? 10 : H.value.width} ${H.value.height <= 0 ? 10 : H.value.height}`,
|
|
1623
|
+
style: E(`max-width:100%;overflow:visible;background:transparent;color:${R.value.style.color}`),
|
|
1624
|
+
onMouseleave: gi,
|
|
1625
|
+
tabindex: "0",
|
|
1626
|
+
onFocus: Pi,
|
|
1627
|
+
onBlur: Fi,
|
|
1628
|
+
onKeydown: Ii
|
|
1629
|
+
}, [
|
|
1630
|
+
Ae(M(wn)),
|
|
1631
|
+
e.$slots["chart-background"] ? (D(), S("foreignObject", {
|
|
1632
|
+
key: 0,
|
|
1633
|
+
x: 0,
|
|
1634
|
+
y: 0,
|
|
1635
|
+
width: H.value.width <= 0 ? 10 : H.value.width,
|
|
1636
|
+
height: H.value.height <= 0 ? 10 : H.value.height,
|
|
1637
|
+
style: { pointerEvents: "none" }
|
|
1638
|
+
}, [A(e.$slots, "chart-background", {}, void 0, !0)], 8, Je)) : x("", !0),
|
|
1639
|
+
R.value.style.layout.axis.show ? (D(), S("g", Ye, [C("line", {
|
|
1640
|
+
x1: G.value.x,
|
|
1641
|
+
x2: G.value.x,
|
|
1642
|
+
y1: U.value.top,
|
|
1643
|
+
y2: U.value.bottom,
|
|
1644
|
+
stroke: R.value.style.layout.axis.stroke,
|
|
1645
|
+
"stroke-width": R.value.style.layout.axis.strokeWidth,
|
|
1646
|
+
"stroke-linecap": "round"
|
|
1647
|
+
}, null, 8, Xe), C("line", {
|
|
1648
|
+
x1: U.value.left,
|
|
1649
|
+
x2: U.value.right,
|
|
1650
|
+
y1: G.value.y,
|
|
1651
|
+
y2: G.value.y,
|
|
1652
|
+
stroke: R.value.style.layout.axis.stroke,
|
|
1653
|
+
"stroke-width": R.value.style.layout.axis.strokeWidth,
|
|
1654
|
+
"stroke-linecap": "round"
|
|
1655
|
+
}, null, 8, Ze)])) : x("", !0),
|
|
1656
|
+
R.value.style.layout.dataLabels.xAxis.scales.verticalLines.show ? (D(), S("g", Qe, [(D(!0), S(v, null, k(Pr.value, (e, t) => (D(), S("line", {
|
|
1657
|
+
key: `scatter-x-scale-line-${F.value}-${t}`,
|
|
1658
|
+
x1: e.x,
|
|
1659
|
+
x2: e.x,
|
|
1660
|
+
y1: U.value.top,
|
|
1661
|
+
y2: U.value.bottom,
|
|
1662
|
+
stroke: R.value.style.layout.dataLabels.xAxis.scales.verticalLines.stroke,
|
|
1663
|
+
"stroke-width": R.value.style.layout.dataLabels.xAxis.scales.verticalLines.strokeWidth,
|
|
1664
|
+
"stroke-linecap": "round"
|
|
1665
|
+
}, null, 8, $e))), 128))])) : x("", !0),
|
|
1666
|
+
R.value.style.layout.dataLabels.xAxis.scales.show ? (D(), S("g", {
|
|
1667
|
+
key: 3,
|
|
1668
|
+
ref_key: "xAxisScaleLabels",
|
|
1669
|
+
ref: $n
|
|
1670
|
+
}, [(D(!0), S(v, null, k(Pr.value, (e, t) => (D(), S("g", {
|
|
1671
|
+
class: "vue-ui-scatter-scale-group",
|
|
1672
|
+
key: `scatter-x-scale-${F.value}-${t}`,
|
|
1673
|
+
opacity: +!Ir.value,
|
|
1674
|
+
style: { transition: "opacity 0.1s ease-in-out" }
|
|
1675
|
+
}, [C("line", {
|
|
1676
|
+
x1: e.x,
|
|
1677
|
+
x2: e.x,
|
|
1678
|
+
y1: G.value.y - 4,
|
|
1679
|
+
y2: G.value.y + 4,
|
|
1680
|
+
stroke: R.value.style.layout.axis.stroke,
|
|
1681
|
+
"stroke-width": R.value.style.layout.axis.strokeWidth,
|
|
1682
|
+
"stroke-linecap": "round"
|
|
1683
|
+
}, null, 8, tt), C("text", {
|
|
1684
|
+
x: e.x,
|
|
1685
|
+
y: G.value.y + R.value.style.layout.dataLabels.xAxis.scales.labels.fontSize + 6 + R.value.style.layout.dataLabels.xAxis.scales.labels.offsetY,
|
|
1686
|
+
"text-anchor": "middle",
|
|
1687
|
+
"font-size": R.value.style.layout.dataLabels.xAxis.scales.labels.fontSize,
|
|
1688
|
+
fill: R.value.style.layout.dataLabels.xAxis.scales.labels.color,
|
|
1689
|
+
stroke: R.value.style.backgroundColor,
|
|
1690
|
+
"stroke-width": "2",
|
|
1691
|
+
"paint-order": "stroke"
|
|
1692
|
+
}, j(e.label), 9, nt)], 8, et))), 128))], 512)) : x("", !0),
|
|
1693
|
+
R.value.style.layout.dataLabels.yAxis.scales.horizontalLines.show ? (D(), S("g", rt, [(D(!0), S(v, null, k(Fr.value, (e, t) => (D(), S("line", {
|
|
1694
|
+
key: `scatter-y-scale-line-${F.value}-${t}`,
|
|
1695
|
+
x1: U.value.left,
|
|
1696
|
+
x2: U.value.right,
|
|
1697
|
+
y1: e.y,
|
|
1698
|
+
y2: e.y,
|
|
1699
|
+
stroke: R.value.style.layout.dataLabels.yAxis.scales.horizontalLines.stroke,
|
|
1700
|
+
"stroke-width": R.value.style.layout.dataLabels.yAxis.scales.horizontalLines.strokeWidth,
|
|
1701
|
+
"stroke-linecap": "round"
|
|
1702
|
+
}, null, 8, it))), 128))])) : x("", !0),
|
|
1703
|
+
R.value.style.layout.dataLabels.yAxis.scales.show ? (D(), S("g", {
|
|
1704
|
+
key: 5,
|
|
1705
|
+
ref_key: "yAxisScaleLabels",
|
|
1706
|
+
ref: Qn,
|
|
1707
|
+
opacity: +!Lr.value,
|
|
1708
|
+
style: { transition: "opacity 0.1s ease-in-out" },
|
|
1709
|
+
class: "vue-ui-scatter-scale-group"
|
|
1710
|
+
}, [(D(!0), S(v, null, k(Fr.value, (e, t) => (D(), S("g", { key: `scatter-y-scale-${F.value}-${t}` }, [C("line", {
|
|
1711
|
+
x1: G.value.x - 4,
|
|
1712
|
+
x2: G.value.x + 4,
|
|
1713
|
+
y1: e.y,
|
|
1714
|
+
y2: e.y,
|
|
1715
|
+
stroke: R.value.style.layout.axis.stroke,
|
|
1716
|
+
"stroke-width": R.value.style.layout.axis.strokeWidth,
|
|
1717
|
+
"stroke-linecap": "round"
|
|
1718
|
+
}, null, 8, ot), C("text", {
|
|
1719
|
+
x: G.value.x - R.value.style.layout.dataLabels.yAxis.scales.labels.fontSize / 2 - 8 + R.value.style.layout.dataLabels.yAxis.scales.labels.offsetX,
|
|
1720
|
+
y: e.y + R.value.style.layout.dataLabels.yAxis.scales.labels.fontSize / 3,
|
|
1721
|
+
"text-anchor": "end",
|
|
1722
|
+
"font-size": R.value.style.layout.dataLabels.yAxis.scales.labels.fontSize,
|
|
1723
|
+
fill: R.value.style.layout.dataLabels.yAxis.scales.labels.color,
|
|
1724
|
+
stroke: R.value.style.backgroundColor,
|
|
1725
|
+
"stroke-width": "2",
|
|
1726
|
+
"paint-order": "stroke"
|
|
1727
|
+
}, j(e.label), 9, st)]))), 128))], 8, at)) : x("", !0),
|
|
1728
|
+
R.value.style.layout.marginalBars.show ? (D(), S("g", ct, [
|
|
1729
|
+
C("defs", null, [C("linearGradient", {
|
|
1730
|
+
id: `marginal_x_${F.value}`,
|
|
1731
|
+
x1: "0%",
|
|
1732
|
+
y1: "0%",
|
|
1733
|
+
x2: "0%",
|
|
1734
|
+
y2: "100%"
|
|
1735
|
+
}, [C("stop", {
|
|
1736
|
+
offset: "0%",
|
|
1737
|
+
"stop-color": R.value.style.layout.marginalBars.fill
|
|
1738
|
+
}, null, 8, ut), C("stop", {
|
|
1739
|
+
offset: "100%",
|
|
1740
|
+
"stop-color": R.value.style.backgroundColor
|
|
1741
|
+
}, null, 8, dt)], 8, lt), C("linearGradient", {
|
|
1742
|
+
id: `marginal_y_${F.value}`,
|
|
1743
|
+
x1: "0%",
|
|
1744
|
+
x2: "100%",
|
|
1745
|
+
y1: "0%",
|
|
1746
|
+
y2: "0%"
|
|
1747
|
+
}, [C("stop", {
|
|
1748
|
+
offset: "0%",
|
|
1749
|
+
"stop-color": R.value.style.backgroundColor
|
|
1750
|
+
}, null, 8, pt), C("stop", {
|
|
1751
|
+
offset: "100%",
|
|
1752
|
+
"stop-color": R.value.style.layout.marginalBars.fill
|
|
1753
|
+
}, null, 8, mt)], 8, ft)]),
|
|
1754
|
+
(D(!0), S(v, null, k(Y.value.x, (e, n) => (D(), S("g", null, [
|
|
1755
|
+
e && Y.value.avgX[n] ? (D(), S("rect", {
|
|
1756
|
+
key: 0,
|
|
1757
|
+
x: Y.value.avgX[n] - U.value.width / J.value / 2,
|
|
1758
|
+
y: U.value.top - R.value.style.layout.marginalBars.offset - e / Y.value.maxX * R.value.style.layout.marginalBars.size,
|
|
1759
|
+
width: U.value.width / J.value <= 0 ? 1e-4 : U.value.width / J.value,
|
|
1760
|
+
height: e / Y.value.maxX * R.value.style.layout.marginalBars.size <= 0 ? 1e-4 : e / Y.value.maxX * R.value.style.layout.marginalBars.size,
|
|
1761
|
+
fill: R.value.style.layout.marginalBars.useGradient ? `url(#marginal_x_${F.value})` : R.value.style.layout.marginalBars.fill,
|
|
1762
|
+
style: E([`opacity:${R.value.style.layout.marginalBars.opacity}`, { "pointer-events": "none" }]),
|
|
1763
|
+
stroke: R.value.style.backgroundColor,
|
|
1764
|
+
"stroke-width": R.value.style.layout.marginalBars.strokeWidth,
|
|
1765
|
+
rx: R.value.style.layout.marginalBars.borderRadius
|
|
1766
|
+
}, null, 12, ht)) : x("", !0),
|
|
1767
|
+
Y.value.avgX[n] ? (D(), S("rect", {
|
|
1768
|
+
key: 1,
|
|
1769
|
+
x: Y.value.avgX[n] - U.value.width / J.value / 2,
|
|
1770
|
+
y: U.value.top - R.value.style.layout.marginalBars.offset - R.value.style.layout.marginalBars.size,
|
|
1771
|
+
width: U.value.width / J.value <= 0 ? 1e-4 : U.value.width / J.value,
|
|
1772
|
+
height: Math.max(.1, R.value.style.layout.marginalBars.size),
|
|
1773
|
+
fill: "transparent",
|
|
1774
|
+
onMouseenter: (e) => mi(n),
|
|
1775
|
+
onMouseleave: t[0] ||= (e) => gi()
|
|
1776
|
+
}, null, 40, gt)) : x("", !0),
|
|
1777
|
+
Y.value.avgX[n] && Hn.value != null && Hn.value === n ? (D(), S("g", _t, [
|
|
1778
|
+
C("rect", {
|
|
1779
|
+
x: Y.value.avgX[n] - U.value.width / J.value / 2,
|
|
1780
|
+
y: U.value.top,
|
|
1781
|
+
width: U.value.width / J.value <= 0 ? 1e-4 : U.value.width / J.value,
|
|
1782
|
+
height: U.value.height,
|
|
1783
|
+
fill: R.value.style.layout.marginalBars.highlighter.color,
|
|
1784
|
+
"fill-opacity": R.value.style.layout.marginalBars.highlighter.opacity
|
|
1785
|
+
}, null, 8, vt),
|
|
1786
|
+
C("line", {
|
|
1787
|
+
x1: Y.value.avgX[n] - U.value.width / J.value / 2,
|
|
1788
|
+
x2: Y.value.avgX[n] - U.value.width / J.value / 2,
|
|
1789
|
+
y1: 0,
|
|
1790
|
+
y2: U.value.top + U.value.height,
|
|
1791
|
+
stroke: R.value.style.layout.marginalBars.highlighter.stroke,
|
|
1792
|
+
"stroke-dasharray": R.value.style.layout.marginalBars.highlighter.strokeDasharray,
|
|
1793
|
+
"stroke-width": R.value.style.layout.marginalBars.highlighter.strokeWidth,
|
|
1794
|
+
style: {
|
|
1795
|
+
transition: "none !important",
|
|
1796
|
+
animation: "none !important"
|
|
1797
|
+
}
|
|
1798
|
+
}, null, 8, yt),
|
|
1799
|
+
C("line", {
|
|
1800
|
+
x1: Y.value.avgX[n] - U.value.width / J.value / 2 + (U.value.width / J.value <= 0 ? 1e-4 : U.value.width / J.value),
|
|
1801
|
+
x2: Y.value.avgX[n] - U.value.width / J.value / 2 + (U.value.width / J.value <= 0 ? 1e-4 : U.value.width / J.value),
|
|
1802
|
+
y1: 0,
|
|
1803
|
+
y2: U.value.top + U.value.height,
|
|
1804
|
+
stroke: R.value.style.layout.marginalBars.highlighter.stroke,
|
|
1805
|
+
"stroke-dasharray": R.value.style.layout.marginalBars.highlighter.strokeDasharray,
|
|
1806
|
+
"stroke-width": R.value.style.layout.marginalBars.highlighter.strokeWidth,
|
|
1807
|
+
style: {
|
|
1808
|
+
transition: "none !important",
|
|
1809
|
+
animation: "none !important"
|
|
1810
|
+
}
|
|
1811
|
+
}, null, 8, bt)
|
|
1812
|
+
])) : x("", !0)
|
|
1813
|
+
]))), 256)),
|
|
1814
|
+
(D(!0), S(v, null, k(Y.value.y, (e, n) => (D(), S("g", null, [
|
|
1815
|
+
e && Y.value.avgY[n] ? (D(), S("rect", {
|
|
1816
|
+
key: 0,
|
|
1817
|
+
x: U.value.right + R.value.style.layout.marginalBars.offset,
|
|
1818
|
+
y: Y.value.avgY[n] - U.value.height / J.value / 2,
|
|
1819
|
+
height: U.value.height / J.value <= 0 ? 1e-4 : U.value.height / J.value,
|
|
1820
|
+
width: e / Y.value.maxY * R.value.style.layout.marginalBars.size <= 0 ? 1e-4 : e / Y.value.maxY * R.value.style.layout.marginalBars.size,
|
|
1821
|
+
fill: R.value.style.layout.marginalBars.useGradient ? `url(#marginal_y_${F.value})` : R.value.style.layout.marginalBars.fill,
|
|
1822
|
+
style: E([`opacity:${R.value.style.layout.marginalBars.opacity}`, { "pointer-events": "none" }]),
|
|
1823
|
+
stroke: R.value.style.backgroundColor,
|
|
1824
|
+
"stroke-width": R.value.style.layout.marginalBars.strokeWidth,
|
|
1825
|
+
rx: R.value.style.layout.marginalBars.borderRadius
|
|
1826
|
+
}, null, 12, xt)) : x("", !0),
|
|
1827
|
+
Y.value.avgY[n] ? (D(), S("rect", {
|
|
1828
|
+
key: 1,
|
|
1829
|
+
x: U.value.right + R.value.style.layout.marginalBars.offset,
|
|
1830
|
+
y: Y.value.avgY[n] - U.value.height / J.value / 2,
|
|
1831
|
+
width: Math.max(.1, R.value.style.layout.marginalBars.size),
|
|
1832
|
+
height: U.value.height / J.value <= 0 ? 1e-4 : U.value.height / J.value,
|
|
1833
|
+
fill: "transparent",
|
|
1834
|
+
onMouseenter: (e) => hi(n),
|
|
1835
|
+
onMouseleave: t[1] ||= (e) => gi()
|
|
1836
|
+
}, null, 40, St)) : x("", !0),
|
|
1837
|
+
Y.value.avgY[n] && Un.value != null && Un.value === n ? (D(), S("g", Ct, [
|
|
1838
|
+
C("rect", {
|
|
1839
|
+
x: U.value.left,
|
|
1840
|
+
y: Y.value.avgY[n] - U.value.height / J.value / 2,
|
|
1841
|
+
width: U.value.width,
|
|
1842
|
+
height: U.value.height / J.value <= 0 ? 1e-4 : U.value.height / J.value,
|
|
1843
|
+
fill: R.value.style.layout.marginalBars.highlighter.color,
|
|
1844
|
+
"fill-opacity": R.value.style.layout.marginalBars.highlighter.opacity
|
|
1845
|
+
}, null, 8, wt),
|
|
1846
|
+
C("line", {
|
|
1847
|
+
x1: U.value.left,
|
|
1848
|
+
x2: H.value.width,
|
|
1849
|
+
y1: Y.value.avgY[n] - U.value.height / J.value / 2,
|
|
1850
|
+
y2: Y.value.avgY[n] - U.value.height / J.value / 2,
|
|
1851
|
+
stroke: R.value.style.layout.marginalBars.highlighter.stroke,
|
|
1852
|
+
"stroke-dasharray": R.value.style.layout.marginalBars.highlighter.strokeDasharray,
|
|
1853
|
+
"stroke-width": R.value.style.layout.marginalBars.highlighter.strokeWidth,
|
|
1854
|
+
style: {
|
|
1855
|
+
transition: "none !important",
|
|
1856
|
+
animation: "none !important"
|
|
1857
|
+
}
|
|
1858
|
+
}, null, 8, Tt),
|
|
1859
|
+
C("line", {
|
|
1860
|
+
x1: U.value.left,
|
|
1861
|
+
x2: H.value.width,
|
|
1862
|
+
y1: Y.value.avgY[n] - U.value.height / J.value / 2 + (U.value.height / J.value <= 0 ? 1e-4 : U.value.height / J.value),
|
|
1863
|
+
y2: Y.value.avgY[n] - U.value.height / J.value / 2 + (U.value.height / J.value <= 0 ? 1e-4 : U.value.height / J.value),
|
|
1864
|
+
stroke: R.value.style.layout.marginalBars.highlighter.stroke,
|
|
1865
|
+
"stroke-dasharray": R.value.style.layout.marginalBars.highlighter.strokeDasharray,
|
|
1866
|
+
"stroke-width": R.value.style.layout.marginalBars.highlighter.strokeWidth,
|
|
1867
|
+
style: {
|
|
1868
|
+
transition: "none !important",
|
|
1869
|
+
animation: "none !important"
|
|
1870
|
+
}
|
|
1871
|
+
}, null, 8, Et)
|
|
1872
|
+
])) : x("", !0)
|
|
1873
|
+
]))), 256)),
|
|
1874
|
+
R.value.style.layout.marginalBars.showLines ? (D(), S("g", Dt, [(D(!0), S(v, null, k(qr.value, (e) => (D(), S(v, null, [
|
|
1875
|
+
L.value.includes(e.id) ? x("", !0) : (D(), S("path", {
|
|
1876
|
+
key: 0,
|
|
1877
|
+
d: `M ${e.dX}`,
|
|
1878
|
+
stroke: R.value.style.backgroundColor,
|
|
1879
|
+
"stroke-width": R.value.style.layout.marginalBars.linesStrokeWidth + 1,
|
|
1880
|
+
"stroke-linecap": "round",
|
|
1881
|
+
"stroke-linejoin": "round",
|
|
1882
|
+
fill: "none"
|
|
1883
|
+
}, null, 8, Ot)),
|
|
1884
|
+
L.value.includes(e.id) ? x("", !0) : (D(), S("path", {
|
|
1885
|
+
key: 1,
|
|
1886
|
+
d: `M ${e.dX}`,
|
|
1887
|
+
stroke: e.color,
|
|
1888
|
+
"stroke-width": R.value.style.layout.marginalBars.linesStrokeWidth,
|
|
1889
|
+
"stroke-linecap": "round",
|
|
1890
|
+
"stroke-linejoin": "round",
|
|
1891
|
+
fill: "none"
|
|
1892
|
+
}, null, 8, kt)),
|
|
1893
|
+
L.value.includes(e.id) ? x("", !0) : (D(), S("path", {
|
|
1894
|
+
key: 2,
|
|
1895
|
+
d: `M ${e.dY}`,
|
|
1896
|
+
stroke: R.value.style.backgroundColor,
|
|
1897
|
+
"stroke-width": R.value.style.layout.marginalBars.linesStrokeWidth + 1,
|
|
1898
|
+
"stroke-linecap": "round",
|
|
1899
|
+
"stroke-linejoin": "round",
|
|
1900
|
+
fill: "none"
|
|
1901
|
+
}, null, 8, At)),
|
|
1902
|
+
L.value.includes(e.id) ? x("", !0) : (D(), S("path", {
|
|
1903
|
+
key: 3,
|
|
1904
|
+
d: `M ${e.dY}`,
|
|
1905
|
+
stroke: e.color,
|
|
1906
|
+
"stroke-width": R.value.style.layout.marginalBars.linesStrokeWidth,
|
|
1907
|
+
"stroke-linecap": "round",
|
|
1908
|
+
"stroke-linejoin": "round",
|
|
1909
|
+
fill: "none"
|
|
1910
|
+
}, null, 8, jt))
|
|
1911
|
+
], 64))), 256))])) : x("", !0)
|
|
1912
|
+
])) : x("", !0),
|
|
1913
|
+
R.value.style.layout.plots.giftWrap.show ? (D(), S("g", Mt, [(D(!0), S(v, null, k(q.value, (e, t) => (D(), S("g", null, [e.plots.length > 2 ? (D(), S("polygon", {
|
|
1914
|
+
key: 0,
|
|
1915
|
+
points: M(ie)({ series: e.plots }),
|
|
1916
|
+
fill: M(h)(e.color, R.value.style.layout.plots.giftWrap.fillOpacity * 100),
|
|
1917
|
+
"stroke-width": R.value.style.layout.plots.giftWrap.strokeWidth,
|
|
1918
|
+
"stroke-dasharray": R.value.style.layout.plots.giftWrap.strokeDasharray,
|
|
1919
|
+
stroke: e.color,
|
|
1920
|
+
"stroke-linejoin": "round",
|
|
1921
|
+
"stroke-linecap": "round"
|
|
1922
|
+
}, null, 8, Nt)) : x("", !0)]))), 256))])) : x("", !0),
|
|
1923
|
+
R.value.usePerformanceMode ? x("", !0) : (D(!0), S(v, { key: 8 }, k(q.value, (e, t) => (D(), S("g", null, [!e.shape || e.shape === "circle" ? (D(), S("g", Pt, [(D(!0), S(v, null, k(e.plots, (n, r) => (D(), S("circle", {
|
|
1924
|
+
cx: n.x,
|
|
1925
|
+
cy: n.y,
|
|
1926
|
+
r: X.value && X.value === n.id ? n.weight * R.value.style.layout.plots.hoverRadiusRatio : n.weight,
|
|
1927
|
+
fill: M(h)(e.color, X.value && X.value !== n.id ? R.value.style.layout.plots.opacityNotSelected * 100 : R.value.style.layout.plots.opacity * 100),
|
|
1928
|
+
stroke: R.value.style.layout.plots.stroke,
|
|
1929
|
+
"stroke-width": R.value.style.layout.plots.strokeWidth,
|
|
1930
|
+
style: E(`opacity:${X.value && X.value === n.id ? 1 : R.value.style.layout.plots.significance.useDistanceOpacity ? 1 - Math.abs(n.deviation) / Wr.value : R.value.style.layout.plots.significance.show && Math.abs(n.deviation) > R.value.style.layout.plots.significance.deviationThreshold ? R.value.style.layout.plots.significance.opacity : 1}`),
|
|
1931
|
+
onMouseover: (e) => Zr(n, t, "pointer", $.value.get(n.id)),
|
|
1932
|
+
onMouseleave: (e) => Qr(n, t),
|
|
1933
|
+
onClick: (e) => $r(n, t)
|
|
1934
|
+
}, null, 44, Ft))), 256))])) : (D(), S("g", It, [(D(!0), S(v, null, k(e.plots, (n, r) => (D(), b(_e, {
|
|
1935
|
+
plot: {
|
|
1936
|
+
x: n.x,
|
|
1937
|
+
y: n.y
|
|
1938
|
+
},
|
|
1939
|
+
radius: X.value && X.value === n.id ? n.weight * R.value.style.layout.plots.hoverRadiusRatio : n.weight,
|
|
1940
|
+
shape: e.shape,
|
|
1941
|
+
color: M(h)(e.color, X.value && X.value !== n.id ? R.value.style.layout.plots.opacityNotSelected * 100 : R.value.style.layout.plots.opacity * 100),
|
|
1942
|
+
stroke: R.value.style.layout.plots.stroke,
|
|
1943
|
+
strokeWidth: R.value.style.layout.plots.strokeWidth,
|
|
1944
|
+
style: E(`opacity:${X.value && X.value === n.id ? 1 : R.value.style.layout.plots.significance.useDistanceOpacity ? 1 - Math.abs(n.deviation) / Wr.value : R.value.style.layout.plots.significance.show && Math.abs(n.deviation) > R.value.style.layout.plots.significance.deviationThreshold ? R.value.style.layout.plots.significance.opacity : 1}`),
|
|
1945
|
+
onMouseover: (e) => Zr(n, t, "pointer", $.value.get(n.id)),
|
|
1946
|
+
onMouseleave: (e) => Qr(n, t),
|
|
1947
|
+
onClick: (e) => $r(n, t)
|
|
1948
|
+
}, null, 8, [
|
|
1949
|
+
"plot",
|
|
1950
|
+
"radius",
|
|
1951
|
+
"shape",
|
|
1952
|
+
"color",
|
|
1953
|
+
"stroke",
|
|
1954
|
+
"strokeWidth",
|
|
1955
|
+
"style",
|
|
1956
|
+
"onMouseover",
|
|
1957
|
+
"onMouseleave",
|
|
1958
|
+
"onClick"
|
|
1959
|
+
]))), 256))])), R.value.style.layout.plots.name.show ? (D(!0), S(v, { key: 2 }, k(e.plots, (e, n) => (D(), S("text", {
|
|
1960
|
+
x: e.x,
|
|
1961
|
+
y: e.y - e.weight - R.value.style.layout.plots.name.fontSize + R.value.style.layout.plots.name.offsetY,
|
|
1962
|
+
"text-anchor": "middle",
|
|
1963
|
+
"font-size": R.value.style.layout.plots.name.fontSize,
|
|
1964
|
+
fill: M(h)(R.value.style.layout.plots.name.color, X.value && X.value !== e.id ? R.value.style.layout.plots.opacityNotSelected * 100 : 100),
|
|
1965
|
+
onMouseover: (n) => Zr(e, t, "pointer", $.value.get(e.id)),
|
|
1966
|
+
onMouseleave: (n) => Qr(e, t),
|
|
1967
|
+
onClick: (n) => $r(e, t)
|
|
1968
|
+
}, j(e.clusterName), 41, Lt))), 256)) : x("", !0)]))), 256)),
|
|
1969
|
+
R.value.usePerformanceMode ? (D(), S(v, { key: 9 }, [
|
|
1970
|
+
C("g", { "clip-path": `url(#clip_path_${F.value})` }, [(D(!0), S(v, null, k(yi.value, (e) => (D(), S("path", {
|
|
1971
|
+
key: e.id,
|
|
1972
|
+
d: e.d,
|
|
1973
|
+
fill: e.fill,
|
|
1974
|
+
stroke: e.stroke,
|
|
1975
|
+
"stroke-width": e.strokeWidth,
|
|
1976
|
+
"stroke-opacity": e.strokeOpacity,
|
|
1977
|
+
"vector-effect": "non-scaling-stroke",
|
|
1978
|
+
"paint-order": "fill"
|
|
1979
|
+
}, null, 8, zt))), 128))], 8, Rt),
|
|
1980
|
+
Z.value && R.value.style.layout.plots.selectors.show ? (D(), S("g", Bt, [Ae(_e, {
|
|
1981
|
+
shape: Z.value.shape || "circle",
|
|
1982
|
+
color: Z.value.color,
|
|
1983
|
+
plot: {
|
|
1984
|
+
x: Z.value.x,
|
|
1985
|
+
y: Z.value.y
|
|
1986
|
+
},
|
|
1987
|
+
radius: Math.max(4 * _i[Z.value.shape || "circle"], Z.value.weight * R.value.style.layout.plots.hoverRadiusRatio),
|
|
1988
|
+
stroke: R.value.style.layout.plots.stroke,
|
|
1989
|
+
strokeWidth: R.value.style.layout.plots.strokeWidth
|
|
1990
|
+
}, null, 8, [
|
|
1991
|
+
"shape",
|
|
1992
|
+
"color",
|
|
1993
|
+
"plot",
|
|
1994
|
+
"radius",
|
|
1995
|
+
"stroke",
|
|
1996
|
+
"strokeWidth"
|
|
1997
|
+
])])) : x("", !0),
|
|
1998
|
+
C("rect", {
|
|
1999
|
+
x: U.value.left,
|
|
2000
|
+
y: U.value.top,
|
|
2001
|
+
width: Math.max(1e-4, U.value.width),
|
|
2002
|
+
height: Math.max(1e-4, U.value.height),
|
|
2003
|
+
fill: "transparent",
|
|
2004
|
+
onMousemove: t[2] ||= (...e) => M(xi) && M(xi)(...e),
|
|
2005
|
+
onMouseleave: Si,
|
|
2006
|
+
onClick: Ci
|
|
2007
|
+
}, null, 40, Vt)
|
|
2008
|
+
], 64)) : x("", !0),
|
|
2009
|
+
Z.value && R.value.style.layout.plots.selectors.show ? (D(), S("g", Ht, [
|
|
2010
|
+
C("line", {
|
|
2011
|
+
x1: G.value.x,
|
|
2012
|
+
x2: Z.value.x,
|
|
2013
|
+
y1: Z.value.y,
|
|
2014
|
+
y2: Z.value.y,
|
|
2015
|
+
stroke: R.value.style.layout.plots.selectors.stroke,
|
|
2016
|
+
"stroke-width": R.value.style.layout.plots.selectors.strokeWidth,
|
|
2017
|
+
"stroke-dasharray": R.value.style.layout.plots.selectors.strokeDasharray,
|
|
2018
|
+
"stroke-linecap": "round",
|
|
2019
|
+
class: "line-pointer"
|
|
2020
|
+
}, null, 8, Ut),
|
|
2021
|
+
C("line", {
|
|
2022
|
+
x1: Z.value.x,
|
|
2023
|
+
x2: Z.value.x,
|
|
2024
|
+
y1: G.value.y,
|
|
2025
|
+
y2: Z.value.y,
|
|
2026
|
+
stroke: R.value.style.layout.plots.selectors.stroke,
|
|
2027
|
+
"stroke-width": R.value.style.layout.plots.selectors.strokeWidth,
|
|
2028
|
+
"stroke-dasharray": R.value.style.layout.plots.selectors.strokeDasharray,
|
|
2029
|
+
"stroke-linecap": "round",
|
|
2030
|
+
class: "line-pointer"
|
|
2031
|
+
}, null, 8, Wt),
|
|
2032
|
+
R.value.style.layout.dataLabels.yAxis.scales.show ? x("", !0) : (D(), S("text", {
|
|
2033
|
+
key: 0,
|
|
2034
|
+
x: G.value.x + (Z.value.x > G.value.x ? -6 : 6),
|
|
2035
|
+
y: Z.value.y + R.value.style.layout.plots.selectors.labels.fontSize / 3,
|
|
2036
|
+
"font-size": R.value.style.layout.plots.selectors.labels.fontSize,
|
|
2037
|
+
fill: R.value.style.layout.plots.selectors.labels.color,
|
|
2038
|
+
"font-weight": R.value.style.layout.plots.selectors.labels.bold ? "bold" : "normal",
|
|
2039
|
+
"text-anchor": Z.value.x > G.value.x ? "end" : "start"
|
|
2040
|
+
}, j(M(m)(R.value.style.layout.plots.selectors.labels.y.formatter, M(_)(Z.value.v.y), M(n)({
|
|
2041
|
+
p: R.value.style.layout.plots.selectors.labels.prefix,
|
|
2042
|
+
v: M(_)(Z.value.v.y),
|
|
2043
|
+
s: R.value.style.layout.plots.selectors.labels.suffix,
|
|
2044
|
+
r: R.value.style.layout.plots.selectors.labels.rounding
|
|
2045
|
+
}), { datapoint: Z.value })), 9, Gt)),
|
|
2046
|
+
R.value.style.layout.dataLabels.xAxis.scales.show ? x("", !0) : (D(), S("text", {
|
|
2047
|
+
key: 1,
|
|
2048
|
+
x: Z.value.x,
|
|
2049
|
+
y: G.value.y + (Z.value.y > G.value.y ? -6 : R.value.style.layout.plots.selectors.labels.fontSize + 6),
|
|
2050
|
+
"font-size": R.value.style.layout.plots.selectors.labels.fontSize,
|
|
2051
|
+
fill: R.value.style.layout.plots.selectors.labels.color,
|
|
2052
|
+
"font-weight": R.value.style.layout.plots.selectors.labels.bold ? "bold" : "normal",
|
|
2053
|
+
"text-anchor": "middle"
|
|
2054
|
+
}, j(M(m)(R.value.style.layout.plots.selectors.labels.y.formatter, M(_)(Z.value.v.x), M(n)({
|
|
2055
|
+
p: R.value.style.layout.plots.selectors.labels.prefix,
|
|
2056
|
+
v: M(_)(Z.value.v.x),
|
|
2057
|
+
s: R.value.style.layout.plots.selectors.labels.suffix,
|
|
2058
|
+
r: R.value.style.layout.plots.selectors.labels.rounding
|
|
2059
|
+
}), { datapoint: Z.value })), 9, Kt)),
|
|
2060
|
+
R.value.style.layout.dataLabels.xAxis.scales.show ? (D(), S("text", {
|
|
2061
|
+
key: 2,
|
|
2062
|
+
x: Z.value.x,
|
|
2063
|
+
y: G.value.y + R.value.style.layout.dataLabels.xAxis.scales.labels.fontSize + 6 + R.value.style.layout.dataLabels.xAxis.scales.labels.offsetY,
|
|
2064
|
+
"text-anchor": "middle",
|
|
2065
|
+
"font-size": R.value.style.layout.dataLabels.xAxis.scales.labels.fontSize,
|
|
2066
|
+
fill: R.value.style.layout.dataLabels.xAxis.scales.labels.color
|
|
2067
|
+
}, j(Rr.value), 9, qt)) : x("", !0),
|
|
2068
|
+
R.value.style.layout.dataLabels.yAxis.scales.show ? (D(), S("text", {
|
|
2069
|
+
key: 3,
|
|
2070
|
+
x: G.value.x - R.value.style.layout.dataLabels.yAxis.scales.labels.fontSize / 2 - 8 + R.value.style.layout.dataLabels.yAxis.scales.labels.offsetX,
|
|
2071
|
+
y: Z.value.y + R.value.style.layout.dataLabels.yAxis.scales.labels.fontSize / 3,
|
|
2072
|
+
"text-anchor": "end",
|
|
2073
|
+
"font-size": R.value.style.layout.dataLabels.yAxis.scales.labels.fontSize,
|
|
2074
|
+
fill: R.value.style.layout.dataLabels.yAxis.scales.labels.color
|
|
2075
|
+
}, j(zr.value), 9, Jt)) : x("", !0),
|
|
2076
|
+
C("circle", {
|
|
2077
|
+
cx: G.value.x,
|
|
2078
|
+
cy: Z.value.y,
|
|
2079
|
+
r: R.value.style.layout.plots.selectors.markers.radius,
|
|
2080
|
+
fill: R.value.style.layout.plots.selectors.markers.fill,
|
|
2081
|
+
stroke: R.value.style.layout.plots.selectors.markers.stroke,
|
|
2082
|
+
"stroke-width": R.value.style.layout.plots.selectors.markers.strokeWidth,
|
|
2083
|
+
class: "line-pointer"
|
|
2084
|
+
}, null, 8, Yt),
|
|
2085
|
+
C("circle", {
|
|
2086
|
+
cx: Z.value.x,
|
|
2087
|
+
cy: G.value.y,
|
|
2088
|
+
r: R.value.style.layout.plots.selectors.markers.radius,
|
|
2089
|
+
fill: R.value.style.layout.plots.selectors.markers.fill,
|
|
2090
|
+
stroke: R.value.style.layout.plots.selectors.markers.stroke,
|
|
2091
|
+
"stroke-width": R.value.style.layout.plots.selectors.markers.strokeWidth,
|
|
2092
|
+
class: "line-pointer"
|
|
2093
|
+
}, null, 8, Xt),
|
|
2094
|
+
R.value.style.layout.plots.selectors.labels.showName && !R.value.style.layout.plots.name.show ? (D(), S("text", {
|
|
2095
|
+
key: 4,
|
|
2096
|
+
x: Z.value.x,
|
|
2097
|
+
y: Z.value.y + (Z.value.y < G.value.y ? -R.value.style.layout.plots.selectors.labels.fontSize / 2 : R.value.style.layout.plots.selectors.labels.fontSize),
|
|
2098
|
+
"font-size": R.value.style.layout.plots.selectors.labels.fontSize,
|
|
2099
|
+
fill: R.value.style.layout.plots.selectors.labels.color,
|
|
2100
|
+
"font-weight": R.value.style.layout.plots.selectors.labels.bold ? "bold" : "normal",
|
|
2101
|
+
"text-anchor": Z.value.x < U.value.left + 100 ? "start" : Z.value.x > U.value.right - 100 ? "end" : Z.value.x > G.value.x ? "start" : "end"
|
|
2102
|
+
}, j(Z.value.v.name), 9, Zt)) : x("", !0)
|
|
2103
|
+
])) : x("", !0),
|
|
2104
|
+
R.value.style.layout.dataLabels.xAxis.show ? (D(), S("g", {
|
|
2105
|
+
key: 11,
|
|
2106
|
+
ref_key: "xAxisLabelLeft",
|
|
2107
|
+
ref: Jn
|
|
2108
|
+
}, [C("text", {
|
|
2109
|
+
id: `vue-ui-scatter-xAxis-label-${F.value}`,
|
|
2110
|
+
transform: `translate(${R.value.style.layout.dataLabels.xAxis.fontSize + (R.value.style.layout.dataLabels.reverseAxisLabels ? R.value.style.layout.dataLabels.yAxis.offsetX : R.value.style.layout.dataLabels.xAxis.offsetX)}, ${U.value.top + U.value.height / 2 + (R.value.style.layout.dataLabels.reverseAxisLabels ? R.value.style.layout.dataLabels.yAxis.offsetY : R.value.style.layout.dataLabels.xAxis.offsetY)}), rotate(-90)`,
|
|
2111
|
+
"text-anchor": "middle",
|
|
2112
|
+
"font-size": R.value.style.layout.dataLabels.xAxis.fontSize,
|
|
2113
|
+
"font-weight": R.value.style.layout.dataLabels.xAxis.bold ? "bold" : "normal",
|
|
2114
|
+
fill: R.value.style.layout.dataLabels.xAxis.color
|
|
2115
|
+
}, j(R.value.style.layout.dataLabels.reverseAxisLabels ? R.value.style.layout.dataLabels.yAxis.name : R.value.style.layout.dataLabels.xAxis.name), 9, Qt), R.value.style.layout.dataLabels.xAxis.showValue ? (D(), S("text", {
|
|
2116
|
+
key: 0,
|
|
2117
|
+
"text-anchor": "middle",
|
|
2118
|
+
"font-size": R.value.style.layout.dataLabels.xAxis.fontSize,
|
|
2119
|
+
fill: R.value.style.layout.dataLabels.xAxis.color,
|
|
2120
|
+
transform: `translate(${R.value.style.layout.dataLabels.xAxis.name ? R.value.style.layout.dataLabels.xAxis.fontSize * 3 : 0}, ${G.value.y + R.value.style.layout.dataLabels.xAxis.fontSize / 3}), rotate(-90)`
|
|
2121
|
+
}, j(M(m)(R.value.style.layout.plots.selectors.labels.x.formatter, M(_)(W.value.xMin), M(n)({
|
|
2122
|
+
p: R.value.style.layout.plots.selectors.labels.prefix,
|
|
2123
|
+
v: M(_)(W.value.xMin),
|
|
2124
|
+
s: R.value.style.layout.plots.selectors.labels.suffix,
|
|
2125
|
+
r: R.value.style.layout.dataLabels.xAxis.rounding
|
|
2126
|
+
}))), 9, $t)) : x("", !0)], 512)) : x("", !0),
|
|
2127
|
+
R.value.style.layout.dataLabels.xAxis.show && R.value.style.layout.dataLabels.xAxis.showValue ? (D(), S("text", {
|
|
2128
|
+
key: 12,
|
|
2129
|
+
ref_key: "xAxisLabelRight",
|
|
2130
|
+
ref: Yn,
|
|
2131
|
+
"text-anchor": "middle",
|
|
2132
|
+
transform: `translate(${U.value.right + R.value.style.layout.padding.right + 6}, ${G.value.y + R.value.style.layout.dataLabels.xAxis.fontSize / 3}), rotate(-90)`,
|
|
2133
|
+
"font-size": R.value.style.layout.dataLabels.xAxis.fontSize,
|
|
2134
|
+
fill: R.value.style.layout.dataLabels.xAxis.color
|
|
2135
|
+
}, j(M(m)(R.value.style.layout.plots.selectors.labels.x.formatter, M(_)(W.value.xMax), M(n)({
|
|
2136
|
+
p: R.value.style.layout.plots.selectors.labels.prefix,
|
|
2137
|
+
v: M(_)(W.value.xMax),
|
|
2138
|
+
s: R.value.style.layout.plots.selectors.labels.suffix,
|
|
2139
|
+
r: R.value.style.layout.dataLabels.xAxis.rounding
|
|
2140
|
+
}))), 9, en)) : x("", !0),
|
|
2141
|
+
R.value.style.layout.dataLabels.yAxis.show && R.value.style.layout.dataLabels.yAxis.showValue ? (D(), S("text", {
|
|
2142
|
+
key: 13,
|
|
2143
|
+
ref_key: "yAxisLabelTop",
|
|
2144
|
+
ref: Xn,
|
|
2145
|
+
x: G.value.x,
|
|
2146
|
+
y: U.value.top - R.value.style.layout.dataLabels.yAxis.fontSize,
|
|
2147
|
+
"text-anchor": "middle",
|
|
2148
|
+
"font-size": R.value.style.layout.dataLabels.yAxis.fontSize,
|
|
2149
|
+
fill: R.value.style.layout.dataLabels.yAxis.color
|
|
2150
|
+
}, j(M(m)(R.value.style.layout.plots.selectors.labels.y.formatter, M(_)(W.value.yMax), M(n)({
|
|
2151
|
+
p: R.value.style.layout.plots.selectors.labels.prefix,
|
|
2152
|
+
v: M(_)(W.value.yMax),
|
|
2153
|
+
s: R.value.style.layout.plots.selectors.labels.suffix,
|
|
2154
|
+
r: R.value.style.layout.dataLabels.yAxis.rounding
|
|
2155
|
+
}))), 9, tn)) : x("", !0),
|
|
2156
|
+
R.value.style.layout.dataLabels.yAxis.show ? (D(), S("g", {
|
|
2157
|
+
key: 14,
|
|
2158
|
+
ref_key: "yAxisLabelBottom",
|
|
2159
|
+
ref: Zn
|
|
2160
|
+
}, [R.value.style.layout.dataLabels.yAxis.showValue ? (D(), S("text", {
|
|
2161
|
+
key: 0,
|
|
2162
|
+
x: G.value.x,
|
|
2163
|
+
y: H.value.height - R.value.style.layout.dataLabels.yAxis.fontSize * 2,
|
|
2164
|
+
"text-anchor": "middle",
|
|
2165
|
+
"font-size": R.value.style.layout.dataLabels.yAxis.fontSize,
|
|
2166
|
+
fill: R.value.style.layout.dataLabels.yAxis.color
|
|
2167
|
+
}, j(M(m)(R.value.style.layout.plots.selectors.labels.y.formatter, M(_)(W.value.yMin), M(n)({
|
|
2168
|
+
p: R.value.style.layout.plots.selectors.labels.prefix,
|
|
2169
|
+
v: M(_)(W.value.yMin),
|
|
2170
|
+
s: R.value.style.layout.plots.selectors.labels.suffix,
|
|
2171
|
+
r: R.value.style.layout.dataLabels.yAxis.rounding
|
|
2172
|
+
}))), 9, nn)) : x("", !0), C("text", {
|
|
2173
|
+
"text-anchor": "middle",
|
|
2174
|
+
"font-size": R.value.style.layout.dataLabels.yAxis.fontSize,
|
|
2175
|
+
"font-weight": R.value.style.layout.dataLabels.yAxis.bold ? "bold" : "normal",
|
|
2176
|
+
fill: R.value.style.layout.dataLabels.yAxis.color,
|
|
2177
|
+
x: U.value.left + U.value.width / 2 + (R.value.style.layout.dataLabels.reverseAxisLabels ? R.value.style.layout.dataLabels.xAxis.offsetX : R.value.style.layout.dataLabels.yAxis.offsetX),
|
|
2178
|
+
y: H.value.height + (R.value.style.layout.dataLabels.reverseAxisLabels ? R.value.style.layout.dataLabels.xAxis.offsetY : R.value.style.layout.dataLabels.yAxis.offsetY)
|
|
2179
|
+
}, j(R.value.style.layout.dataLabels.reverseAxisLabels ? R.value.style.layout.dataLabels.xAxis.name : R.value.style.layout.dataLabels.yAxis.name), 9, rn)], 512)) : x("", !0),
|
|
2180
|
+
C("clipPath", { id: `clip_path_${F.value}` }, [C("rect", {
|
|
2181
|
+
x: U.value.left,
|
|
2182
|
+
y: U.value.top,
|
|
2183
|
+
width: U.value.width <= 0 ? 1e-4 : U.value.width,
|
|
2184
|
+
height: U.value.height <= 0 ? 1e-4 : U.value.height
|
|
2185
|
+
}, null, 8, on)], 8, an),
|
|
2186
|
+
R.value.style.layout.correlation.show ? (D(), S("g", sn, [(D(!0), S(v, null, k(q.value.filter((e) => e.correlation), (e, t) => (D(), S("line", {
|
|
2187
|
+
x1: e.correlation.x1,
|
|
2188
|
+
x2: e.correlation.x2,
|
|
2189
|
+
y1: e.correlation.y1,
|
|
2190
|
+
y2: e.correlation.y2,
|
|
2191
|
+
"stroke-dasharray": R.value.style.layout.correlation.strokeDasharray,
|
|
2192
|
+
stroke: e.color,
|
|
2193
|
+
"stroke-width": R.value.style.layout.correlation.strokeWidth,
|
|
2194
|
+
"clip-path": `url(#clip_path_${F.value})`
|
|
2195
|
+
}, null, 8, cn))), 256)), (D(!0), S(v, null, k(q.value.filter((e) => e.correlation), (e, t) => (D(), S("g", null, [R.value.style.layout.correlation.label.show ? (D(), S("text", {
|
|
2196
|
+
key: 0,
|
|
2197
|
+
x: e.correlation.x2,
|
|
2198
|
+
y: e.correlation.y2,
|
|
2199
|
+
fill: R.value.style.layout.correlation.label.useSerieColor ? e.color : R.value.style.layout.correlation.label.color,
|
|
2200
|
+
"text-anchor": "end",
|
|
2201
|
+
"font-size": R.value.style.layout.correlation.label.fontSize,
|
|
2202
|
+
"font-weight": R.value.style.layout.correlation.label.bold ? "bold" : "normal"
|
|
2203
|
+
}, j(M(n)({
|
|
2204
|
+
v: M(_)(e.correlation?.coefficient ?? 0),
|
|
2205
|
+
r: R.value.style.layout.correlation.label.roundingValue
|
|
2206
|
+
})), 9, ln)) : x("", !0)]))), 256))])) : x("", !0),
|
|
2207
|
+
A(e.$slots, "svg", { svg: {
|
|
2208
|
+
...H.value,
|
|
2209
|
+
drawingArea: {
|
|
2210
|
+
...U.value,
|
|
2211
|
+
zero: G.value
|
|
2212
|
+
},
|
|
2213
|
+
data: Ur.value,
|
|
2214
|
+
isPrintingImg: M(vr) || M(yr) || Kn.value,
|
|
2215
|
+
isPrintingSvg: qn.value
|
|
2216
|
+
} }, void 0, !0)
|
|
2217
|
+
], 46, qe)), e.$slots.hint ? (D(), S("div", un, [A(e.$slots, "hint", T(w({
|
|
2218
|
+
hint: R.value.a11y.translations.keyboardNavigation,
|
|
2219
|
+
isVisible: rr.value
|
|
2220
|
+
})), void 0, !0)])) : x("", !0)]),
|
|
2221
|
+
e.$slots.watermark ? (D(), S("div", dn, [A(e.$slots, "watermark", T(w({ isPrinting: M(vr) || M(yr) || Kn.value || qn.value })), void 0, !0)])) : x("", !0),
|
|
2222
|
+
C("div", { id: `legend-bottom-${F.value}` }, null, 8, fn),
|
|
2223
|
+
An.value && Vn.value && (R.value.style.legend.show || e.$slots.legend) ? (D(), b(De, {
|
|
2224
|
+
key: 7,
|
|
2225
|
+
to: R.value.style.legend.position === "top" ? `#legend-top-${F.value}` : `#legend-bottom-${F.value}`
|
|
2226
|
+
}, [C("div", {
|
|
2227
|
+
ref_key: "chartLegend",
|
|
2228
|
+
ref: Fn
|
|
2229
|
+
}, [A(e.$slots, "legend", { legend: K.value }, () => [R.value.style.legend.show ? (D(), b(Te, {
|
|
2230
|
+
key: `legend_${Bn.value}`,
|
|
2231
|
+
legendSet: K.value,
|
|
2232
|
+
config: Hr.value,
|
|
2233
|
+
isCursorPointer: ar.value,
|
|
2234
|
+
onClickMarker: t[3] ||= ({ legend: e }) => ti(e.id)
|
|
2235
|
+
}, {
|
|
2236
|
+
item: N(({ legend: e }) => [C("div", {
|
|
2237
|
+
onClick: (t) => e.segregate(),
|
|
2238
|
+
style: E(`opacity:${L.value.includes(e.id) ? .5 : 1}`)
|
|
2239
|
+
}, j(e.name), 13, pn)]),
|
|
2240
|
+
legendToggle: N(() => [K.value.length > 2 && R.value.style.legend.selectAllToggle.show && !M(cr) ? (D(), b(xe, {
|
|
2241
|
+
key: 0,
|
|
2242
|
+
backgroundColor: R.value.style.legend.selectAllToggle.backgroundColor,
|
|
2243
|
+
color: R.value.style.legend.selectAllToggle.color,
|
|
2244
|
+
fontSize: R.value.style.legend.fontSize,
|
|
2245
|
+
checked: L.value.length > 0,
|
|
2246
|
+
isCursorPointer: ar.value,
|
|
2247
|
+
onToggle: ei
|
|
2248
|
+
}, null, 8, [
|
|
2249
|
+
"backgroundColor",
|
|
2250
|
+
"color",
|
|
2251
|
+
"fontSize",
|
|
2252
|
+
"checked",
|
|
2253
|
+
"isCursorPointer"
|
|
2254
|
+
])) : x("", !0)]),
|
|
2255
|
+
_: 1
|
|
2256
|
+
}, 8, [
|
|
2257
|
+
"legendSet",
|
|
2258
|
+
"config",
|
|
2259
|
+
"isCursorPointer"
|
|
2260
|
+
])) : x("", !0)], !0)], 512)], 8, ["to"])) : x("", !0),
|
|
2261
|
+
e.$slots.source ? (D(), S("div", {
|
|
2262
|
+
key: 8,
|
|
2263
|
+
ref_key: "source",
|
|
2264
|
+
ref: In,
|
|
2265
|
+
dir: "auto"
|
|
2266
|
+
}, [A(e.$slots, "source", {}, void 0, !0)], 512)) : x("", !0),
|
|
2267
|
+
Ae(M(vn), {
|
|
2268
|
+
teleportTo: R.value.style.tooltip.teleportTo,
|
|
2269
|
+
show: V.value.showTooltip && jn.value,
|
|
2270
|
+
backgroundColor: R.value.style.tooltip.backgroundColor,
|
|
2271
|
+
color: R.value.style.tooltip.color,
|
|
2272
|
+
borderRadius: R.value.style.tooltip.borderRadius,
|
|
2273
|
+
borderColor: R.value.style.tooltip.borderColor,
|
|
2274
|
+
borderWidth: R.value.style.tooltip.borderWidth,
|
|
2275
|
+
fontSize: R.value.style.tooltip.fontSize,
|
|
2276
|
+
backgroundOpacity: R.value.style.tooltip.backgroundOpacity,
|
|
2277
|
+
position: R.value.style.tooltip.position,
|
|
2278
|
+
offsetY: R.value.style.tooltip.offsetY,
|
|
2279
|
+
parent: I.value,
|
|
2280
|
+
content: Mn.value,
|
|
2281
|
+
isFullscreen: si.value,
|
|
2282
|
+
isCustom: R.value.style.tooltip.customFormat && typeof R.value.style.tooltip.customFormat == "function",
|
|
2283
|
+
smooth: R.value.style.tooltip.smooth,
|
|
2284
|
+
backdropFilter: R.value.style.tooltip.backdropFilter,
|
|
2285
|
+
smoothForce: R.value.style.tooltip.smoothForce,
|
|
2286
|
+
smoothSnapThreshold: R.value.style.tooltip.smoothSnapThreshold,
|
|
2287
|
+
isA11yMode: nr.value === "keyboard",
|
|
2288
|
+
a11yPosition: tr.value
|
|
2289
|
+
}, {
|
|
2290
|
+
"tooltip-before": N(() => [A(e.$slots, "tooltip-before", T(w({ ...Jr.value })), void 0, !0)]),
|
|
2291
|
+
tooltip: N(() => [A(e.$slots, "tooltip", T(w({ ...Jr.value })), void 0, !0)]),
|
|
2292
|
+
"tooltip-after": N(() => [A(e.$slots, "tooltip-after", T(w({ ...Jr.value })), void 0, !0)]),
|
|
2293
|
+
default: N(() => [R.value.style.tooltip.showShape ? (D(), S("div", mn, [(D(), S("svg", hn, [Ae(_e, {
|
|
2294
|
+
shape: Z.value.shape,
|
|
2295
|
+
color: Z.value.color,
|
|
2296
|
+
plot: {
|
|
2297
|
+
x: 10,
|
|
2298
|
+
y: 10
|
|
2299
|
+
},
|
|
2300
|
+
radius: 7
|
|
2301
|
+
}, null, 8, ["shape", "color"])]))])) : x("", !0)]),
|
|
2302
|
+
_: 3
|
|
2303
|
+
}, 8, [
|
|
2304
|
+
"teleportTo",
|
|
2305
|
+
"show",
|
|
2306
|
+
"backgroundColor",
|
|
2307
|
+
"color",
|
|
2308
|
+
"borderRadius",
|
|
2309
|
+
"borderColor",
|
|
2310
|
+
"borderWidth",
|
|
2311
|
+
"fontSize",
|
|
2312
|
+
"backgroundOpacity",
|
|
2313
|
+
"position",
|
|
2314
|
+
"offsetY",
|
|
2315
|
+
"parent",
|
|
2316
|
+
"content",
|
|
2317
|
+
"isFullscreen",
|
|
2318
|
+
"isCustom",
|
|
2319
|
+
"smooth",
|
|
2320
|
+
"backdropFilter",
|
|
2321
|
+
"smoothForce",
|
|
2322
|
+
"smoothSnapThreshold",
|
|
2323
|
+
"isA11yMode",
|
|
2324
|
+
"a11yPosition"
|
|
2325
|
+
]),
|
|
2326
|
+
An.value && R.value.userOptions.buttons.table ? (D(), b(Le(wi.value.component), Me({ key: 9 }, wi.value.props, {
|
|
2327
|
+
ref_key: "tableUnit",
|
|
2328
|
+
ref: Wn,
|
|
2329
|
+
onClose: Ti
|
|
2330
|
+
}), Oe({
|
|
2331
|
+
content: N(() => [(D(), b(M(xn), {
|
|
2332
|
+
key: `table_${zn.value}`,
|
|
2333
|
+
colNames: oi.value.colNames,
|
|
2334
|
+
head: oi.value.head,
|
|
2335
|
+
body: oi.value.body,
|
|
2336
|
+
config: oi.value.config,
|
|
2337
|
+
title: R.value.table.useDialog ? "" : wi.value.title,
|
|
2338
|
+
withCloseButton: !R.value.table.useDialog,
|
|
2339
|
+
isCursorPointer: ar.value,
|
|
2340
|
+
onClose: Ti
|
|
2341
|
+
}, {
|
|
2342
|
+
th: N(({ th: e }) => [ke(j(e), 1)]),
|
|
2343
|
+
td: N(({ td: e }) => [e.shape ? (D(), S("div", gn, [C("span", null, j(e.content), 1)])) : (D(), S("div", {
|
|
2344
|
+
key: 1,
|
|
2345
|
+
innerHTML: e
|
|
2346
|
+
}, null, 8, _n))]),
|
|
2347
|
+
_: 1
|
|
2348
|
+
}, 8, [
|
|
2349
|
+
"colNames",
|
|
2350
|
+
"head",
|
|
2351
|
+
"body",
|
|
2352
|
+
"config",
|
|
2353
|
+
"title",
|
|
2354
|
+
"withCloseButton",
|
|
2355
|
+
"isCursorPointer"
|
|
2356
|
+
]))]),
|
|
2357
|
+
_: 2
|
|
2358
|
+
}, [R.value.table.useDialog ? {
|
|
2359
|
+
name: "title",
|
|
2360
|
+
fn: N(() => [ke(j(wi.value.title), 1)]),
|
|
2361
|
+
key: "0"
|
|
2362
|
+
} : void 0, R.value.table.useDialog ? {
|
|
2363
|
+
name: "actions",
|
|
2364
|
+
fn: N(() => [C("button", {
|
|
2365
|
+
tabindex: "0",
|
|
2366
|
+
class: "vue-ui-user-options-button",
|
|
2367
|
+
onClick: t[4] ||= (e) => ai(R.value.userOptions.callbacks.csv),
|
|
2368
|
+
style: E({ cursor: ar.value ? "pointer" : "default" })
|
|
2369
|
+
}, [Ae(M(yn), {
|
|
2370
|
+
name: "fileCsv",
|
|
2371
|
+
stroke: wi.value.props.color
|
|
2372
|
+
}, null, 8, ["stroke"])], 4)]),
|
|
2373
|
+
key: "1"
|
|
2374
|
+
} : void 0]), 1040)) : x("", !0),
|
|
2375
|
+
A(e.$slots, "skeleton", {}, () => [M(cr) ? (D(), b(de, { key: 0 })) : x("", !0)], !0)
|
|
2376
|
+
], 46, He));
|
|
2377
|
+
}
|
|
2378
|
+
}, [["__scopeId", "data-v-113be964"]]);
|
|
2379
|
+
//#endregion
|
|
2380
|
+
export { Ve as n, vn as t };
|