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