vue-data-ui 3.25.7 → 3.25.9
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{BaseScanner-DZvpgOjM.js → BaseScanner-Dzc8VT3j.js} +6 -3
- package/dist/{PackageVersion-UfoQuPMf.js → PackageVersion-KBMdaOXg.js} +1 -1
- package/dist/components/vue-ui-3d-bar.js +1 -1
- package/dist/components/vue-ui-accordion.js +1 -1
- package/dist/components/vue-ui-age-pyramid.js +1 -1
- package/dist/components/vue-ui-annotator.js +1 -1
- package/dist/components/vue-ui-bullet.js +1 -1
- package/dist/components/vue-ui-bump.js +1 -1
- package/dist/components/vue-ui-candlestick.js +1 -1
- package/dist/components/vue-ui-carousel-table.js +1 -1
- package/dist/components/vue-ui-chestnut.js +1 -1
- package/dist/components/vue-ui-chord.js +1 -1
- package/dist/components/vue-ui-circle-pack.js +1 -1
- package/dist/components/vue-ui-cursor.js +1 -1
- package/dist/components/vue-ui-dag.js +1 -1
- package/dist/components/vue-ui-dashboard.js +1 -1
- package/dist/components/vue-ui-digits.js +1 -1
- package/dist/components/vue-ui-donut-evolution.js +1 -1
- package/dist/components/vue-ui-donut.js +1 -1
- package/dist/components/vue-ui-dumbbell.js +1 -1
- package/dist/components/vue-ui-flow.js +1 -1
- package/dist/components/vue-ui-funnel.js +1 -1
- package/dist/components/vue-ui-galaxy.js +1 -1
- package/dist/components/vue-ui-gauge.js +1 -1
- package/dist/components/vue-ui-geo.js +1 -1
- package/dist/components/vue-ui-gizmo.js +1 -1
- package/dist/components/vue-ui-heatmap.js +1 -1
- package/dist/components/vue-ui-hill.js +1 -1
- package/dist/components/vue-ui-history-plot.js +1 -1
- package/dist/components/vue-ui-horizontal-bar.js +1 -1
- package/dist/components/vue-ui-kpi.js +1 -1
- package/dist/components/vue-ui-label.js +1 -1
- package/dist/components/vue-ui-mini-loader.js +1 -1
- package/dist/components/vue-ui-molecule.js +1 -1
- package/dist/components/vue-ui-mood-radar.js +1 -1
- package/dist/components/vue-ui-nested-donuts.js +1 -1
- package/dist/components/vue-ui-onion.js +1 -1
- package/dist/components/vue-ui-parallel-coordinate-plot.js +1 -1
- package/dist/components/vue-ui-quadrant.js +1 -1
- package/dist/components/vue-ui-quick-chart.js +1 -1
- package/dist/components/vue-ui-radar.js +1 -1
- package/dist/components/vue-ui-rating.js +1 -1
- package/dist/components/vue-ui-relation-circle.js +1 -1
- package/dist/components/vue-ui-ridgeline.js +1 -1
- package/dist/components/vue-ui-rings.js +1 -1
- package/dist/components/vue-ui-scatter.js +1 -1
- package/dist/components/vue-ui-skeleton.js +1 -1
- package/dist/components/vue-ui-smiley.js +1 -1
- package/dist/components/vue-ui-spark-trend.js +1 -1
- package/dist/components/vue-ui-sparkbar.js +1 -1
- package/dist/components/vue-ui-sparkgauge.js +1 -1
- package/dist/components/vue-ui-sparkhistogram.js +1 -1
- package/dist/components/vue-ui-sparkline.js +1 -1
- package/dist/components/vue-ui-sparkstackbar.js +1 -1
- package/dist/components/vue-ui-stackbar.js +1 -1
- package/dist/components/vue-ui-stackline.js +1 -1
- package/dist/components/vue-ui-strip-plot.js +1 -1
- package/dist/components/vue-ui-table-heatmap.js +1 -1
- package/dist/components/vue-ui-table-sparkline.js +1 -1
- package/dist/components/vue-ui-table.js +1 -1
- package/dist/components/vue-ui-thermometer.js +1 -1
- package/dist/components/vue-ui-timer.js +1 -1
- package/dist/components/vue-ui-tiremarks.js +1 -1
- package/dist/components/vue-ui-treemap.js +1 -1
- package/dist/components/vue-ui-vertical-bar.js +1 -1
- package/dist/components/vue-ui-waffle.js +1 -1
- package/dist/components/vue-ui-wheel.js +1 -1
- package/dist/components/vue-ui-word-cloud.js +1 -1
- package/dist/components/vue-ui-world.js +1 -1
- package/dist/components/vue-ui-xy-canvas.js +1 -1
- package/dist/components/vue-ui-xy.js +1 -1
- package/dist/{package-B-3S5q00.js → package-BL27Ev_h.js} +1 -1
- package/dist/{render-common-CAXK7ycr.js → render-common-By8J0AE-.js} +1 -1
- package/dist/ssr/vue-ui-donut.js +1 -1
- package/dist/ssr/vue-ui-xy.js +1 -1
- package/dist/ssr.js +2 -2
- package/dist/style.css +1 -1
- package/dist/types/vue-data-ui.d.ts +2 -0
- package/dist/{useConfig-CIQZ6_r7.js → useConfig-D32D002m.js} +2 -0
- package/dist/{useObjectBindings---mHNfbS.js → useObjectBindings-Cd_WuYIn.js} +1 -1
- package/dist/utils.js +1 -1
- package/dist/{vue-data-ui-DlWT702n.js → vue-data-ui-CBWuUAXT.js} +69 -69
- package/dist/vue-data-ui.js +70 -70
- package/dist/{vue-ui-3d-bar-DbOk2kpM.js → vue-ui-3d-bar-BSbq90H3.js} +3 -3
- package/dist/{vue-ui-accordion-BSmBUjwZ.js → vue-ui-accordion-DmkL8A59.js} +1 -1
- package/dist/{vue-ui-age-pyramid-C7_mGIRk.js → vue-ui-age-pyramid-CrXl71iC.js} +263 -251
- package/dist/{vue-ui-annotator-CTQHAPho.js → vue-ui-annotator-BO5ihHOB.js} +2 -2
- package/dist/{vue-ui-bullet-CDy_dkYz.js → vue-ui-bullet-B2Y3Wqh9.js} +3 -3
- package/dist/{vue-ui-bump-DP24leiD.js → vue-ui-bump-DXvvjG4I.js} +3 -3
- package/dist/{vue-ui-candlestick-kJLmYaR7.js → vue-ui-candlestick-CFqR6W56.js} +453 -441
- package/dist/{vue-ui-carousel-table-BQzAQDw6.js → vue-ui-carousel-table-D-ZkPRta.js} +2 -2
- package/dist/{vue-ui-chestnut-DnnRp3Kl.js → vue-ui-chestnut-CyW3IoYC.js} +3 -3
- package/dist/{vue-ui-chord-DO15ZDCS.js → vue-ui-chord-DS0jni9A.js} +3 -3
- package/dist/{vue-ui-circle-pack-DYTllMPV.js → vue-ui-circle-pack-j2ChgLWr.js} +494 -482
- package/dist/{vue-ui-cursor-CtViSjNp.js → vue-ui-cursor-qOONOtcv.js} +2 -2
- package/dist/{vue-ui-dag-NXtGYzqg.js → vue-ui-dag-CmeFsKhR.js} +3 -3
- package/dist/{vue-ui-dashboard-D3_4QohV.js → vue-ui-dashboard-C7Z5BTN4.js} +65 -65
- package/dist/{vue-ui-digits-CB09pLQx.js → vue-ui-digits-Bf68x6fb.js} +2 -2
- package/dist/{vue-ui-donut-yTE6D8yV.js → vue-ui-donut-CkBPJW_T.js} +837 -825
- package/dist/{vue-ui-donut-eysaEyTy.js → vue-ui-donut-DzDSYgVp.js} +2 -2
- package/dist/{vue-ui-donut-evolution-DhrtxvAd.js → vue-ui-donut-evolution-CDJumo0t.js} +3 -3
- package/dist/{vue-ui-dumbbell-CmGIeULQ.js → vue-ui-dumbbell-Cr__26dN.js} +3 -3
- package/dist/vue-ui-flow-Cz6WRi2c.js +1229 -0
- package/dist/{vue-ui-funnel-CLAii4wi.js → vue-ui-funnel-BlC7KxS6.js} +2 -2
- package/dist/vue-ui-galaxy-Bg2smlcI.js +1097 -0
- package/dist/{vue-ui-gauge-D76-4Z_0.js → vue-ui-gauge-BHsaent1.js} +3 -3
- package/dist/{vue-ui-geo-BQ7-UnuG.js → vue-ui-geo-CE3Cr0or.js} +407 -395
- package/dist/{vue-ui-gizmo-C47zjcs-.js → vue-ui-gizmo-DqFUBEai.js} +3 -3
- package/dist/{vue-ui-heatmap-XJef60IZ.js → vue-ui-heatmap-DXqj9ial.js} +478 -446
- package/dist/{vue-ui-hill-D5BYGPXB.js → vue-ui-hill-B3fPAfhL.js} +2 -2
- package/dist/vue-ui-history-plot-CrnTnpaM.js +1710 -0
- package/dist/{vue-ui-horizontal-bar-BgFHi6_7.js → vue-ui-horizontal-bar-DqvN3imH.js} +432 -420
- package/dist/{vue-ui-kpi-Cb8QJeaj.js → vue-ui-kpi-Mf318HvK.js} +2 -2
- package/dist/{vue-ui-label-ClMQ5Gez.js → vue-ui-label-C1UAzvAu.js} +1 -1
- package/dist/{vue-ui-mini-loader-DtPOVIkK.js → vue-ui-mini-loader-wGeACd-Y.js} +1 -1
- package/dist/{vue-ui-molecule-BzwMl-in.js → vue-ui-molecule-CaLReo4h.js} +346 -334
- package/dist/{vue-ui-mood-radar-BUR_YCcr.js → vue-ui-mood-radar-jkE2ENX5.js} +3 -3
- package/dist/{vue-ui-nested-donuts-BEB4nfsD.js → vue-ui-nested-donuts-BgMOKjil.js} +360 -348
- package/dist/vue-ui-onion-DBN3Ev4j.js +1247 -0
- package/dist/{vue-ui-parallel-coordinate-plot-CSO4johj.js → vue-ui-parallel-coordinate-plot-BcJzEGJ-.js} +387 -375
- package/dist/{vue-ui-quadrant-CKav0I6g.js → vue-ui-quadrant-BvoVlxTI.js} +418 -406
- package/dist/{vue-ui-quick-chart-BAQNS9_2.js → vue-ui-quick-chart-2hn8-F_C.js} +550 -538
- package/dist/{vue-ui-radar-ClPAgf5I.js → vue-ui-radar-O3AjGrc-.js} +330 -318
- package/dist/{vue-ui-rating-CWFMoYpE.js → vue-ui-rating-Criq0ofQ.js} +1 -1
- package/dist/{vue-ui-relation-circle-Da2MhrVe.js → vue-ui-relation-circle-CRnH2ikm.js} +3 -3
- package/dist/{vue-ui-ridgeline-D7gFs8yR.js → vue-ui-ridgeline-Blejn8LY.js} +3 -3
- package/dist/{vue-ui-rings-DkDJ0k5b.js → vue-ui-rings-C1U38Bp0.js} +321 -309
- package/dist/{vue-ui-scatter-yv4JzJID.js → vue-ui-scatter-DTsCc9hg.js} +584 -572
- package/dist/{vue-ui-skeleton-oFnh5zWs.js → vue-ui-skeleton-BPr3u7IL.js} +2 -2
- package/dist/{vue-ui-smiley-DJVusLnp.js → vue-ui-smiley-BIjAIpJ9.js} +1 -1
- package/dist/{vue-ui-spark-trend-IqZWPvSB.js → vue-ui-spark-trend-B7w4Mg8O.js} +3 -3
- package/dist/{vue-ui-sparkbar-_FW47iYj.js → vue-ui-sparkbar-lVDnYEYA.js} +3 -3
- package/dist/{vue-ui-sparkgauge--2vk2Y23.js → vue-ui-sparkgauge-BryoGCoc.js} +3 -3
- package/dist/{vue-ui-sparkhistogram-CFEIPa5n.js → vue-ui-sparkhistogram-BdNoLb9L.js} +3 -3
- package/dist/{vue-ui-sparkline-Cs9CJR6W.js → vue-ui-sparkline-CNFD5K6z.js} +3 -3
- package/dist/vue-ui-sparkstackbar-CZ4tGL-_.js +750 -0
- package/dist/vue-ui-stackbar-DfsgaZy7.js +2369 -0
- package/dist/vue-ui-stackline-Cx7q2sGF.js +2483 -0
- package/dist/vue-ui-strip-plot-BcYhLPHM.js +1752 -0
- package/dist/{vue-ui-table-CiccGbRB.js → vue-ui-table-BzF75YjN.js} +3 -3
- package/dist/{vue-ui-table-heatmap-DnP3pzh2.js → vue-ui-table-heatmap-BSUab4fG.js} +1 -1
- package/dist/{vue-ui-table-sparkline-Bp7RiZh4.js → vue-ui-table-sparkline-B9ICTtoE.js} +2 -2
- package/dist/{vue-ui-thermometer-CawumQKP.js → vue-ui-thermometer-Am7llqdI.js} +3 -3
- package/dist/{vue-ui-timer-CXinMW7q.js → vue-ui-timer-D6EvkM31.js} +2 -2
- package/dist/{vue-ui-tiremarks-BnI2uhki.js → vue-ui-tiremarks-DiQJu8Em.js} +3 -3
- package/dist/{vue-ui-treemap-DTlFbfD6.js → vue-ui-treemap-wUZpijpr.js} +310 -298
- package/dist/vue-ui-waffle-6hO0flDT.js +1633 -0
- package/dist/{vue-ui-wheel-B02tiG0p.js → vue-ui-wheel-DnyCE0CK.js} +3 -3
- package/dist/{vue-ui-word-cloud-BZnCOMHx.js → vue-ui-word-cloud-D_MZ3gCS.js} +385 -372
- package/dist/{vue-ui-world-DO2VZ-T-.js → vue-ui-world-QNGY2WPz.js} +474 -462
- package/dist/{vue-ui-xy-CD6BiP_g.js → vue-ui-xy-BD-ighya.js} +2 -2
- package/dist/{vue-ui-xy-BC9GVdWE.js → vue-ui-xy-Ctcwn7Rk.js} +1447 -1432
- package/dist/{vue-ui-xy-canvas-DANPuyf4.js → vue-ui-xy-canvas-DUeglcdP.js} +523 -511
- package/package.json +1 -1
- package/dist/vue-ui-flow-qYAq3Rmn.js +0 -1217
- package/dist/vue-ui-galaxy-BVX-o2f-.js +0 -1085
- package/dist/vue-ui-history-plot-D-d-1ZiM.js +0 -1698
- package/dist/vue-ui-onion-CG6myK7a.js +0 -1235
- package/dist/vue-ui-sparkstackbar-Cvbue77A.js +0 -738
- package/dist/vue-ui-stackbar-C5ANS2hd.js +0 -2355
- package/dist/vue-ui-stackline-7yajJFW4.js +0 -2469
- package/dist/vue-ui-strip-plot-BT6Eqhup.js +0 -1740
- package/dist/vue-ui-waffle-CjgRkQAp.js +0 -1621
|
@@ -1,83 +1,83 @@
|
|
|
1
1
|
import { t as e } from "./rolldown-runtime-Dy4uBu1J.js";
|
|
2
|
-
import { $ as t, Ct as n, D as r, Dt as i, F as a, Jt as o, Lt as s, P as c, Pt as l, S as u, Ut as d, X as f, Yt as p,
|
|
3
|
-
import { n as
|
|
4
|
-
import { t as
|
|
5
|
-
import { t as
|
|
6
|
-
import { n as
|
|
7
|
-
import { t as
|
|
8
|
-
import { t as
|
|
9
|
-
import { t as
|
|
10
|
-
import { t as
|
|
11
|
-
import { t as
|
|
12
|
-
import { n as
|
|
13
|
-
import { t as
|
|
14
|
-
import { t as
|
|
15
|
-
import { l as
|
|
16
|
-
import { t as
|
|
17
|
-
import { t as
|
|
18
|
-
import { t as
|
|
19
|
-
import { t as
|
|
20
|
-
import { t as
|
|
21
|
-
import { t as
|
|
22
|
-
import { t as
|
|
23
|
-
import { Fragment as _, Teleport as
|
|
2
|
+
import { $ as t, Ct as n, D as r, Dt as i, F as a, Jt as o, Lt as s, P as c, Pt as l, S as u, Ut as d, X as f, Yt as p, Z as m, Zt as ee, _ as te, b as h, ht as ne, i as g, lt as re, nt as ie, q as ae, t as oe, v as se, w as ce, yt as le } from "./lib-Dql7cqyA.js";
|
|
3
|
+
import { n as ue, t as de } from "./useHints-Dq_w2E8B.js";
|
|
4
|
+
import { t as fe } from "./useConfig-D32D002m.js";
|
|
5
|
+
import { t as pe } from "./usePrinter-DISD7q5m.js";
|
|
6
|
+
import { n as me, t as he } from "./BaseScanner-Dzc8VT3j.js";
|
|
7
|
+
import { t as ge } from "./useNestedProp-Chvyfpl-.js";
|
|
8
|
+
import { t as _e } from "./useThemeCheck-C43Tcqmk.js";
|
|
9
|
+
import { t as ve } from "./useChartExport-iwOqiIWX.js";
|
|
10
|
+
import { t as ye } from "./useTransitions-g_zBREk2.js";
|
|
11
|
+
import { t as be } from "./img-DhGApYG0.js";
|
|
12
|
+
import { n as xe } from "./Title-CPHi-evi.js";
|
|
13
|
+
import { t as Se } from "./Shape-CIqU-p2F.js";
|
|
14
|
+
import { t as Ce } from "./_plugin-vue_export-helper-B3ysoDQm.js";
|
|
15
|
+
import { l as we, t as Te } from "./useResponsive-ZtArZtUf.js";
|
|
16
|
+
import { t as Ee } from "./DefGrad-DVBqDjhO.js";
|
|
17
|
+
import { t as De } from "./BaseLegendToggle-CXQrLjd-.js";
|
|
18
|
+
import { t as Oe } from "./A11yDataTable-DdRsVULz.js";
|
|
19
|
+
import { t as ke } from "./useUserOptionState-DK-_1ddE.js";
|
|
20
|
+
import { t as Ae } from "./useChartAccessibility-DYqac8yF.js";
|
|
21
|
+
import { t as je } from "./Legend-X4kF4PvW.js";
|
|
22
|
+
import { t as Me } from "./vue_ui_scatter-I0POnicu.js";
|
|
23
|
+
import { Fragment as _, Teleport as Ne, computed as v, createBlock as Pe, createCommentVNode as y, createElementBlock as b, createElementVNode as x, createSlots as Fe, createTextVNode as Ie, createVNode as Le, defineAsyncComponent as Re, guardReactiveProps as S, mergeProps as ze, nextTick as Be, normalizeClass as Ve, normalizeProps as C, normalizeStyle as He, onBeforeUnmount as Ue, onMounted as We, openBlock as w, ref as T, renderList as E, renderSlot as D, resolveDynamicComponent as Ge, shallowRef as Ke, toDisplayString as O, toRefs as qe, unref as k, watch as Je, withCtx as A } from "vue";
|
|
24
24
|
//#region src/components/vue-ui-scatter.vue
|
|
25
|
-
var
|
|
25
|
+
var Ye = /* @__PURE__ */ e({ default: () => bn }), Xe = ["id"], Ze = ["id"], Qe = {
|
|
26
26
|
key: 0,
|
|
27
27
|
class: "sr-only",
|
|
28
28
|
"aria-live": "polite",
|
|
29
29
|
"aria-atomic": "true"
|
|
30
|
-
},
|
|
30
|
+
}, $e = ["id"], et = { style: { position: "relative" } }, tt = [
|
|
31
31
|
"xmlns",
|
|
32
32
|
"aria-describedby",
|
|
33
33
|
"viewBox"
|
|
34
|
-
],
|
|
34
|
+
], nt = ["width", "height"], rt = { key: 1 }, it = [
|
|
35
35
|
"x1",
|
|
36
36
|
"x2",
|
|
37
37
|
"y1",
|
|
38
38
|
"y2",
|
|
39
39
|
"stroke",
|
|
40
40
|
"stroke-width"
|
|
41
|
-
],
|
|
41
|
+
], at = [
|
|
42
42
|
"x1",
|
|
43
43
|
"x2",
|
|
44
44
|
"y1",
|
|
45
45
|
"y2",
|
|
46
46
|
"stroke",
|
|
47
47
|
"stroke-width"
|
|
48
|
-
],
|
|
48
|
+
], ot = { key: 2 }, st = [
|
|
49
49
|
"x1",
|
|
50
50
|
"x2",
|
|
51
51
|
"y1",
|
|
52
52
|
"y2",
|
|
53
53
|
"stroke",
|
|
54
54
|
"stroke-width"
|
|
55
|
-
],
|
|
55
|
+
], ct = ["opacity"], lt = [
|
|
56
56
|
"stroke",
|
|
57
57
|
"stroke-width",
|
|
58
58
|
"d"
|
|
59
|
-
],
|
|
59
|
+
], ut = [
|
|
60
60
|
"transform",
|
|
61
61
|
"font-size",
|
|
62
62
|
"fill",
|
|
63
63
|
"stroke"
|
|
64
|
-
],
|
|
64
|
+
], dt = { key: 4 }, ft = [
|
|
65
65
|
"x1",
|
|
66
66
|
"x2",
|
|
67
67
|
"y1",
|
|
68
68
|
"y2",
|
|
69
69
|
"stroke",
|
|
70
70
|
"stroke-width"
|
|
71
|
-
],
|
|
71
|
+
], pt = ["opacity"], mt = [
|
|
72
72
|
"d",
|
|
73
73
|
"stroke",
|
|
74
74
|
"stroke-width"
|
|
75
|
-
],
|
|
75
|
+
], ht = [
|
|
76
76
|
"transform",
|
|
77
77
|
"font-size",
|
|
78
78
|
"fill",
|
|
79
79
|
"stroke"
|
|
80
|
-
],
|
|
80
|
+
], gt = { key: 6 }, _t = [
|
|
81
81
|
"x",
|
|
82
82
|
"y",
|
|
83
83
|
"width",
|
|
@@ -86,37 +86,37 @@ var Je = /* @__PURE__ */ e({ default: () => yn }), Ye = ["id"], Xe = ["id"], Ze
|
|
|
86
86
|
"stroke",
|
|
87
87
|
"stroke-width",
|
|
88
88
|
"rx"
|
|
89
|
-
],
|
|
89
|
+
], vt = [
|
|
90
90
|
"x",
|
|
91
91
|
"y",
|
|
92
92
|
"width",
|
|
93
93
|
"height",
|
|
94
94
|
"onMouseenter"
|
|
95
|
-
],
|
|
95
|
+
], yt = {
|
|
96
96
|
key: 2,
|
|
97
97
|
style: { "pointer-events": "none" }
|
|
98
|
-
},
|
|
98
|
+
}, bt = [
|
|
99
99
|
"x",
|
|
100
100
|
"y",
|
|
101
101
|
"width",
|
|
102
102
|
"height",
|
|
103
103
|
"fill",
|
|
104
104
|
"fill-opacity"
|
|
105
|
-
],
|
|
105
|
+
], xt = [
|
|
106
106
|
"x1",
|
|
107
107
|
"x2",
|
|
108
108
|
"y2",
|
|
109
109
|
"stroke",
|
|
110
110
|
"stroke-dasharray",
|
|
111
111
|
"stroke-width"
|
|
112
|
-
],
|
|
112
|
+
], St = [
|
|
113
113
|
"x1",
|
|
114
114
|
"x2",
|
|
115
115
|
"y2",
|
|
116
116
|
"stroke",
|
|
117
117
|
"stroke-dasharray",
|
|
118
118
|
"stroke-width"
|
|
119
|
-
],
|
|
119
|
+
], Ct = [
|
|
120
120
|
"x",
|
|
121
121
|
"y",
|
|
122
122
|
"height",
|
|
@@ -125,23 +125,23 @@ var Je = /* @__PURE__ */ e({ default: () => yn }), Ye = ["id"], Xe = ["id"], Ze
|
|
|
125
125
|
"stroke",
|
|
126
126
|
"stroke-width",
|
|
127
127
|
"rx"
|
|
128
|
-
],
|
|
128
|
+
], wt = [
|
|
129
129
|
"x",
|
|
130
130
|
"y",
|
|
131
131
|
"width",
|
|
132
132
|
"height",
|
|
133
133
|
"onMouseenter"
|
|
134
|
-
],
|
|
134
|
+
], Tt = {
|
|
135
135
|
key: 2,
|
|
136
136
|
style: { "pointer-events": "none" }
|
|
137
|
-
},
|
|
137
|
+
}, Et = [
|
|
138
138
|
"x",
|
|
139
139
|
"y",
|
|
140
140
|
"width",
|
|
141
141
|
"height",
|
|
142
142
|
"fill",
|
|
143
143
|
"fill-opacity"
|
|
144
|
-
],
|
|
144
|
+
], Dt = [
|
|
145
145
|
"x1",
|
|
146
146
|
"x2",
|
|
147
147
|
"y1",
|
|
@@ -149,7 +149,7 @@ var Je = /* @__PURE__ */ e({ default: () => yn }), Ye = ["id"], Xe = ["id"], Ze
|
|
|
149
149
|
"stroke",
|
|
150
150
|
"stroke-dasharray",
|
|
151
151
|
"stroke-width"
|
|
152
|
-
],
|
|
152
|
+
], Ot = [
|
|
153
153
|
"x1",
|
|
154
154
|
"x2",
|
|
155
155
|
"y1",
|
|
@@ -157,35 +157,35 @@ var Je = /* @__PURE__ */ e({ default: () => yn }), Ye = ["id"], Xe = ["id"], Ze
|
|
|
157
157
|
"stroke",
|
|
158
158
|
"stroke-dasharray",
|
|
159
159
|
"stroke-width"
|
|
160
|
-
],
|
|
160
|
+
], kt = {
|
|
161
161
|
key: 0,
|
|
162
162
|
style: { "pointer-events": "none" }
|
|
163
|
-
},
|
|
163
|
+
}, At = [
|
|
164
164
|
"d",
|
|
165
165
|
"stroke",
|
|
166
166
|
"stroke-width"
|
|
167
|
-
],
|
|
167
|
+
], jt = [
|
|
168
168
|
"d",
|
|
169
169
|
"stroke",
|
|
170
170
|
"stroke-width"
|
|
171
|
-
],
|
|
171
|
+
], Mt = [
|
|
172
172
|
"d",
|
|
173
173
|
"stroke",
|
|
174
174
|
"stroke-width"
|
|
175
|
-
],
|
|
175
|
+
], Nt = [
|
|
176
176
|
"d",
|
|
177
177
|
"stroke",
|
|
178
178
|
"stroke-width"
|
|
179
|
-
],
|
|
179
|
+
], Pt = { key: 7 }, Ft = [
|
|
180
180
|
"points",
|
|
181
181
|
"fill",
|
|
182
182
|
"stroke-width",
|
|
183
183
|
"stroke-dasharray",
|
|
184
184
|
"stroke"
|
|
185
|
-
],
|
|
185
|
+
], It = {
|
|
186
186
|
key: 0,
|
|
187
187
|
class: "vue-ui-scatter-datapoint"
|
|
188
|
-
},
|
|
188
|
+
}, Lt = [
|
|
189
189
|
"cx",
|
|
190
190
|
"cy",
|
|
191
191
|
"r",
|
|
@@ -195,31 +195,31 @@ var Je = /* @__PURE__ */ e({ default: () => yn }), Ye = ["id"], Xe = ["id"], Ze
|
|
|
195
195
|
"onMouseover",
|
|
196
196
|
"onMouseleave",
|
|
197
197
|
"onClick"
|
|
198
|
-
],
|
|
198
|
+
], Rt = { key: 1 }, zt = [
|
|
199
199
|
"transform",
|
|
200
200
|
"font-size",
|
|
201
201
|
"fill",
|
|
202
202
|
"onMouseover",
|
|
203
203
|
"onMouseleave",
|
|
204
204
|
"onClick"
|
|
205
|
-
],
|
|
205
|
+
], Bt = ["clip-path"], Vt = [
|
|
206
206
|
"d",
|
|
207
207
|
"fill",
|
|
208
208
|
"stroke",
|
|
209
209
|
"stroke-width",
|
|
210
210
|
"stroke-opacity"
|
|
211
|
-
],
|
|
211
|
+
], Ht = {
|
|
212
212
|
key: 0,
|
|
213
213
|
style: { "pointer-events": "none" }
|
|
214
|
-
},
|
|
214
|
+
}, Ut = [
|
|
215
215
|
"x",
|
|
216
216
|
"y",
|
|
217
217
|
"width",
|
|
218
218
|
"height"
|
|
219
|
-
],
|
|
219
|
+
], Wt = {
|
|
220
220
|
key: 0,
|
|
221
221
|
style: { "pointer-events": "none !important" }
|
|
222
|
-
},
|
|
222
|
+
}, Gt = [
|
|
223
223
|
"x1",
|
|
224
224
|
"x2",
|
|
225
225
|
"y1",
|
|
@@ -227,7 +227,7 @@ var Je = /* @__PURE__ */ e({ default: () => yn }), Ye = ["id"], Xe = ["id"], Ze
|
|
|
227
227
|
"stroke",
|
|
228
228
|
"stroke-width",
|
|
229
229
|
"stroke-dasharray"
|
|
230
|
-
],
|
|
230
|
+
], Kt = [
|
|
231
231
|
"x1",
|
|
232
232
|
"x2",
|
|
233
233
|
"y1",
|
|
@@ -235,89 +235,89 @@ var Je = /* @__PURE__ */ e({ default: () => yn }), Ye = ["id"], Xe = ["id"], Ze
|
|
|
235
235
|
"stroke",
|
|
236
236
|
"stroke-width",
|
|
237
237
|
"stroke-dasharray"
|
|
238
|
-
],
|
|
238
|
+
], qt = [
|
|
239
239
|
"x",
|
|
240
240
|
"y",
|
|
241
241
|
"font-size",
|
|
242
242
|
"fill",
|
|
243
243
|
"font-weight",
|
|
244
244
|
"text-anchor"
|
|
245
|
-
],
|
|
245
|
+
], Jt = [
|
|
246
246
|
"x",
|
|
247
247
|
"y",
|
|
248
248
|
"font-size",
|
|
249
249
|
"fill",
|
|
250
250
|
"font-weight"
|
|
251
|
-
],
|
|
251
|
+
], Yt = [
|
|
252
252
|
"x",
|
|
253
253
|
"y",
|
|
254
254
|
"font-size",
|
|
255
255
|
"fill"
|
|
256
|
-
],
|
|
256
|
+
], Xt = [
|
|
257
257
|
"x",
|
|
258
258
|
"y",
|
|
259
259
|
"font-size",
|
|
260
260
|
"fill"
|
|
261
|
-
],
|
|
261
|
+
], Zt = [
|
|
262
262
|
"cx",
|
|
263
263
|
"cy",
|
|
264
264
|
"r",
|
|
265
265
|
"fill",
|
|
266
266
|
"stroke",
|
|
267
267
|
"stroke-width"
|
|
268
|
-
],
|
|
268
|
+
], Qt = [
|
|
269
269
|
"cx",
|
|
270
270
|
"cy",
|
|
271
271
|
"r",
|
|
272
272
|
"fill",
|
|
273
273
|
"stroke",
|
|
274
274
|
"stroke-width"
|
|
275
|
-
],
|
|
275
|
+
], $t = [
|
|
276
276
|
"x",
|
|
277
277
|
"y",
|
|
278
278
|
"font-size",
|
|
279
279
|
"fill",
|
|
280
280
|
"font-weight",
|
|
281
281
|
"text-anchor"
|
|
282
|
-
],
|
|
282
|
+
], en = [
|
|
283
283
|
"id",
|
|
284
284
|
"transform",
|
|
285
285
|
"font-size",
|
|
286
286
|
"font-weight",
|
|
287
287
|
"fill"
|
|
288
|
-
],
|
|
288
|
+
], tn = [
|
|
289
289
|
"font-size",
|
|
290
290
|
"fill",
|
|
291
291
|
"transform"
|
|
292
|
-
],
|
|
292
|
+
], nn = [
|
|
293
293
|
"transform",
|
|
294
294
|
"font-size",
|
|
295
295
|
"fill"
|
|
296
|
-
],
|
|
296
|
+
], rn = [
|
|
297
297
|
"x",
|
|
298
298
|
"y",
|
|
299
299
|
"font-size",
|
|
300
300
|
"fill"
|
|
301
|
-
],
|
|
301
|
+
], an = [
|
|
302
302
|
"x",
|
|
303
303
|
"y",
|
|
304
304
|
"font-size",
|
|
305
305
|
"fill"
|
|
306
|
-
],
|
|
306
|
+
], on = [
|
|
307
307
|
"font-size",
|
|
308
308
|
"font-weight",
|
|
309
309
|
"fill",
|
|
310
310
|
"x",
|
|
311
311
|
"y"
|
|
312
|
-
],
|
|
312
|
+
], sn = ["id"], cn = [
|
|
313
313
|
"x",
|
|
314
314
|
"y",
|
|
315
315
|
"width",
|
|
316
316
|
"height"
|
|
317
|
-
],
|
|
317
|
+
], ln = {
|
|
318
318
|
key: 14,
|
|
319
319
|
style: { pointerEvents: "none" }
|
|
320
|
-
},
|
|
320
|
+
}, un = [
|
|
321
321
|
"x1",
|
|
322
322
|
"x2",
|
|
323
323
|
"y1",
|
|
@@ -326,13 +326,13 @@ var Je = /* @__PURE__ */ e({ default: () => yn }), Ye = ["id"], Xe = ["id"], Ze
|
|
|
326
326
|
"stroke",
|
|
327
327
|
"stroke-width",
|
|
328
328
|
"clip-path"
|
|
329
|
-
],
|
|
329
|
+
], dn = [
|
|
330
330
|
"x",
|
|
331
331
|
"y",
|
|
332
332
|
"fill",
|
|
333
333
|
"font-size",
|
|
334
334
|
"font-weight"
|
|
335
|
-
],
|
|
335
|
+
], fn = {
|
|
336
336
|
key: 0,
|
|
337
337
|
style: {
|
|
338
338
|
position: "absolute",
|
|
@@ -342,10 +342,10 @@ var Je = /* @__PURE__ */ e({ default: () => yn }), Ye = ["id"], Xe = ["id"], Ze
|
|
|
342
342
|
},
|
|
343
343
|
"data-dom-to-png-ignore": "",
|
|
344
344
|
"aria-hidden": "true"
|
|
345
|
-
},
|
|
345
|
+
}, pn = {
|
|
346
346
|
key: 6,
|
|
347
347
|
class: "vue-data-ui-watermark"
|
|
348
|
-
},
|
|
348
|
+
}, mn = ["id"], hn = ["onClick"], gn = {
|
|
349
349
|
key: 0,
|
|
350
350
|
style: {
|
|
351
351
|
width: "100%",
|
|
@@ -353,7 +353,7 @@ var Je = /* @__PURE__ */ e({ default: () => yn }), Ye = ["id"], Xe = ["id"], Ze
|
|
|
353
353
|
"align-items": "center",
|
|
354
354
|
"justify-content": "center"
|
|
355
355
|
}
|
|
356
|
-
},
|
|
356
|
+
}, _n = {
|
|
357
357
|
viewBox: "0 0 20 20",
|
|
358
358
|
height: "20",
|
|
359
359
|
width: "20",
|
|
@@ -361,7 +361,7 @@ var Je = /* @__PURE__ */ e({ default: () => yn }), Ye = ["id"], Xe = ["id"], Ze
|
|
|
361
361
|
overflow: "hidden",
|
|
362
362
|
background: "transparent"
|
|
363
363
|
}
|
|
364
|
-
},
|
|
364
|
+
}, vn = { key: 0 }, yn = ["innerHTML"], bn = /*#__PURE__*/ Ce({
|
|
365
365
|
__name: "vue-ui-scatter",
|
|
366
366
|
props: {
|
|
367
367
|
config: {
|
|
@@ -378,16 +378,16 @@ var Je = /* @__PURE__ */ e({ default: () => yn }), Ye = ["id"], Xe = ["id"], Ze
|
|
|
378
378
|
}
|
|
379
379
|
},
|
|
380
380
|
emits: ["copyAlt", "selectLegend"],
|
|
381
|
-
setup(e, { expose:
|
|
382
|
-
let
|
|
381
|
+
setup(e, { expose: Ce, emit: Ye }) {
|
|
382
|
+
let bn = Re(() => import("./Tooltip-hhrkQ3Lk.js")), xn = Re(() => import("./BaseIcon-D8R6_sKH.js").then((e) => e.n)), Sn = Re(() => import("./vue-ui-accordion-DmkL8A59.js").then((e) => e.n)), Cn = Re(() => import("./DataTable-oiM9uWrQ.js")), wn = Re(() => import("./PenAndPaper-KFzKlvbi.js").then((e) => e.t)), Tn = Re(() => import("./UserOptions-2x4VklMW.js").then((e) => e.n)), En = Re(() => import("./PackageVersion-KBMdaOXg.js").then((e) => e.t)), Dn = Re(() => import("./BaseDraggableDialog-Gm4Q30j0.js").then((e) => e.n)), { vue_ui_scatter: On } = fe(), { isThemeValid: kn, warnInvalidTheme: An } = _e(), j = e, jn = Ye, Mn = v(() => !!j.dataset && j.dataset.length), M = T(ae()), Nn = T(!1), Pn = T(""), Fn = T(0), In = T(null), Ln = T(null), Rn = T(null), zn = T(null), Bn = T(null), Vn = T(0), Hn = T(0), Un = T(0), N = T([]), Wn = T(!1), Gn = T(null), Kn = T(null), qn = T(null), Jn = T(null), Yn = T(null), Xn = T(null), Zn = T(null), Qn = T(null), $n = T(null), er = T(null), tr = T(null), nr = T({
|
|
383
383
|
x: 0,
|
|
384
384
|
y: 0
|
|
385
|
-
}),
|
|
386
|
-
|
|
385
|
+
}), rr = T("pointer"), ir = T(!1), ar = T(null), P = T(_r()), F = v(() => P.value.userOptions), I = v(() => P.value.style.layout.dataLabels.xAxis), L = v(() => P.value.style.layout.dataLabels.yAxis), R = v(() => P.value.style.layout.marginalBars), z = v(() => P.value.style.layout.plots), B = v(() => P.value.style.tooltip), V = v(() => P.value.style);
|
|
386
|
+
ue({
|
|
387
387
|
config: () => P.value,
|
|
388
388
|
dataset: () => j.dataset,
|
|
389
389
|
component: "VueUiScatter",
|
|
390
|
-
rules: [
|
|
390
|
+
rules: [de.emptyArray, {
|
|
391
391
|
test: (e) => e.length > 6,
|
|
392
392
|
message: [
|
|
393
393
|
"👀 The number of series (clusters) is > 6. Consider:",
|
|
@@ -397,19 +397,19 @@ var Je = /* @__PURE__ */ e({ default: () => yn }), Ye = ["id"], Xe = ["id"], Ze
|
|
|
397
397
|
]
|
|
398
398
|
}]
|
|
399
399
|
});
|
|
400
|
-
let { transitionEnabled:
|
|
400
|
+
let { transitionEnabled: or } = ye({
|
|
401
401
|
config: () => P.value.transitions,
|
|
402
402
|
dataset: () => j.dataset
|
|
403
|
-
}),
|
|
404
|
-
function
|
|
403
|
+
}), sr = v(() => P.value.userOptions.useCursorPointer);
|
|
404
|
+
function cr(e = 100, t = .8, n = {}) {
|
|
405
405
|
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 = () => {
|
|
406
406
|
let e = 0, t = 0;
|
|
407
407
|
for (; e === 0;) e = l();
|
|
408
408
|
for (; t === 0;) t = l();
|
|
409
409
|
return Math.sqrt(-2 * Math.log(e)) * Math.cos(2 * Math.PI * t);
|
|
410
|
-
}, 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),
|
|
411
|
-
for (let e = 0; e < d; e += 1) f[e] -= ee, p[e] -=
|
|
412
|
-
let
|
|
410
|
+
}, 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), te = m(p);
|
|
411
|
+
for (let e = 0; e < d; e += 1) f[e] -= ee, p[e] -= te;
|
|
412
|
+
let h = (e, t) => e.reduce((e, n, r) => e + n * t[r], 0), ne = (e) => h(e, e), g = h(p, f) / ne(f), re = p.map((e, t) => e - g * f[t]), ie = ne(f) / d, ae = ne(re) / d, oe = Math.sqrt((1 - t * t) * ie / ae), se = f.map((e, n) => t * e + oe * re[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) => {
|
|
413
413
|
let r = ue(e);
|
|
414
414
|
return e.map((e) => n + (r ? e / r * t : 0));
|
|
415
415
|
}, fe = de(ce, i, r), pe = de(le, o, a);
|
|
@@ -422,7 +422,7 @@ var Je = /* @__PURE__ */ e({ default: () => yn }), Ye = ["id"], Xe = ["id"], Ze
|
|
|
422
422
|
y: pe[t]
|
|
423
423
|
}));
|
|
424
424
|
}
|
|
425
|
-
let
|
|
425
|
+
let lr = v(() => ee({
|
|
426
426
|
defaultConfig: {
|
|
427
427
|
userOptions: { show: !1 },
|
|
428
428
|
table: { show: !1 },
|
|
@@ -449,31 +449,31 @@ var Je = /* @__PURE__ */ e({ default: () => yn }), Ye = ["id"], Xe = ["id"], Ze
|
|
|
449
449
|
}
|
|
450
450
|
},
|
|
451
451
|
userConfig: P.value.skeletonConfig ?? {}
|
|
452
|
-
})), { loading:
|
|
453
|
-
...
|
|
452
|
+
})), { loading: ur, FINAL_DATASET: dr, manualLoading: fr } = me({
|
|
453
|
+
...qe(j),
|
|
454
454
|
FINAL_CONFIG: P,
|
|
455
|
-
prepareConfig:
|
|
455
|
+
prepareConfig: _r,
|
|
456
456
|
skeletonDataset: j.config?.skeletonDataset ?? [{
|
|
457
457
|
name: "",
|
|
458
458
|
color: "#999999",
|
|
459
|
-
values:
|
|
459
|
+
values: cr(100, .5, { seed: 42 })
|
|
460
460
|
}],
|
|
461
|
-
skeletonConfig:
|
|
461
|
+
skeletonConfig: ee({
|
|
462
462
|
defaultConfig: P.value,
|
|
463
|
-
userConfig:
|
|
463
|
+
userConfig: lr.value
|
|
464
464
|
})
|
|
465
|
-
}), { userOptionsVisible:
|
|
466
|
-
function
|
|
467
|
-
let e =
|
|
465
|
+
}), { userOptionsVisible: pr, setUserOptionsVisibility: mr, keepUserOptionState: hr } = ke({ config: P.value }), { svgRef: gr } = Ae({ config: V.value.title });
|
|
466
|
+
function _r() {
|
|
467
|
+
let e = ge({
|
|
468
468
|
userConfig: j.config,
|
|
469
|
-
defaultConfig:
|
|
469
|
+
defaultConfig: On
|
|
470
470
|
}), t = e.theme;
|
|
471
471
|
if (!t) return e;
|
|
472
|
-
if (!
|
|
473
|
-
let n =
|
|
474
|
-
userConfig:
|
|
472
|
+
if (!kn.value(e)) return An(e), e;
|
|
473
|
+
let n = ge({
|
|
474
|
+
userConfig: Me[t] || j.config,
|
|
475
475
|
defaultConfig: e
|
|
476
|
-
}), r =
|
|
476
|
+
}), r = ge({
|
|
477
477
|
userConfig: j.config,
|
|
478
478
|
defaultConfig: n
|
|
479
479
|
});
|
|
@@ -482,49 +482,61 @@ var Je = /* @__PURE__ */ e({ default: () => yn }), Ye = ["id"], Xe = ["id"], Ze
|
|
|
482
482
|
customPalette: r.customPalette.length ? r.customPalette : p[t] || s
|
|
483
483
|
};
|
|
484
484
|
}
|
|
485
|
-
|
|
486
|
-
|
|
487
|
-
|
|
488
|
-
|
|
485
|
+
function vr(e) {
|
|
486
|
+
let t = m(e);
|
|
487
|
+
return t?.style && delete t.style.tooltip, JSON.stringify(t);
|
|
488
|
+
}
|
|
489
|
+
let yr = vr(j.config);
|
|
490
|
+
Je(() => j.config, (e, t) => {
|
|
491
|
+
let n = vr(e), r = n !== yr;
|
|
492
|
+
yr = n;
|
|
493
|
+
let i = _r();
|
|
494
|
+
if (!r) {
|
|
495
|
+
P.value.style.tooltip = i.style.tooltip, H.value.showTooltip = P.value.style.tooltip.show;
|
|
496
|
+
return;
|
|
497
|
+
}
|
|
498
|
+
ur.value || (P.value = i), pr.value = !P.value.userOptions.showOnChartHover, Cr(), Vn.value += 1, Hn.value += 1, Un.value += 1, H.value.showTable = P.value.table.show, H.value.showTooltip = B.value.show, Sr.value && P.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.");
|
|
499
|
+
}, { deep: !0 }), Je(() => j.dataset, (e) => {
|
|
500
|
+
Array.isArray(e) && e.length > 0 && (fr.value = !1);
|
|
489
501
|
}, { deep: !0 });
|
|
490
|
-
let
|
|
491
|
-
|
|
492
|
-
|
|
502
|
+
let br = Ke(null), xr = Ke(null);
|
|
503
|
+
We(async () => {
|
|
504
|
+
Cr(), await Be(), Wn.value = !0;
|
|
493
505
|
});
|
|
494
|
-
let
|
|
495
|
-
function
|
|
496
|
-
if (l(j.dataset) && (
|
|
506
|
+
let Sr = v(() => P.value.debug);
|
|
507
|
+
function Cr() {
|
|
508
|
+
if (l(j.dataset) && (ie({
|
|
497
509
|
componentName: "VueUiScatter",
|
|
498
510
|
type: "dataset",
|
|
499
|
-
debug:
|
|
500
|
-
}),
|
|
501
|
-
let e =
|
|
502
|
-
let { width: e, height: t } =
|
|
503
|
-
chart:
|
|
504
|
-
title: V.value.title.text ?
|
|
505
|
-
legend: V.value.legend.show ?
|
|
506
|
-
source:
|
|
507
|
-
noTitle:
|
|
511
|
+
debug: Sr.value
|
|
512
|
+
}), fr.value = !0), l(j.dataset) || (fr.value = P.value.loading), P.value.responsive) {
|
|
513
|
+
let e = we(() => {
|
|
514
|
+
let { width: e, height: t } = Te({
|
|
515
|
+
chart: In.value,
|
|
516
|
+
title: V.value.title.text ? Ln.value : null,
|
|
517
|
+
legend: V.value.legend.show ? Rn.value : null,
|
|
518
|
+
source: zn.value,
|
|
519
|
+
noTitle: Bn.value
|
|
508
520
|
});
|
|
509
521
|
requestAnimationFrame(() => {
|
|
510
522
|
U.value.width = e, U.value.height = t;
|
|
511
523
|
});
|
|
512
524
|
});
|
|
513
|
-
|
|
525
|
+
br.value && (xr.value && br.value.unobserve(xr.value), br.value.disconnect()), br.value = new ResizeObserver(e), xr.value = In.value.parentNode, br.value.observe(xr.value);
|
|
514
526
|
}
|
|
515
527
|
}
|
|
516
|
-
|
|
517
|
-
|
|
528
|
+
Ue(() => {
|
|
529
|
+
br.value && (xr.value && br.value.unobserve(xr.value), br.value.disconnect());
|
|
518
530
|
});
|
|
519
|
-
let { isPrinting:
|
|
531
|
+
let { isPrinting: wr, isImaging: Tr, generatePdf: Er, generateImage: Dr } = pe({
|
|
520
532
|
elementId: `vue-ui-scatter_${M.value}`,
|
|
521
533
|
fileName: V.value.title.text || "vue-ui-scatter",
|
|
522
534
|
options: P.value.userOptions.print
|
|
523
|
-
}),
|
|
535
|
+
}), Or = v(() => P.value.userOptions.show && !V.value.title.text), kr = v(() => ce(P.value.customPalette)), H = T({
|
|
524
536
|
showTable: P.value.table.show,
|
|
525
537
|
showTooltip: B.value.show
|
|
526
538
|
});
|
|
527
|
-
|
|
539
|
+
Je(P, () => {
|
|
528
540
|
H.value = {
|
|
529
541
|
showTable: P.value.table.show,
|
|
530
542
|
showTooltip: B.value.show
|
|
@@ -533,11 +545,11 @@ var Je = /* @__PURE__ */ e({ default: () => yn }), Ye = ["id"], Xe = ["id"], Ze
|
|
|
533
545
|
let U = T({
|
|
534
546
|
height: V.value.layout.height,
|
|
535
547
|
width: V.value.layout.width
|
|
536
|
-
}),
|
|
537
|
-
function
|
|
548
|
+
}), Ar = v(() => R.value.show ? R.value.size + R.value.offset : 0);
|
|
549
|
+
function jr() {
|
|
538
550
|
let e = 0;
|
|
539
|
-
if (L.value.scales.show &&
|
|
540
|
-
e = Array.from(
|
|
551
|
+
if (L.value.scales.show && $n.value) try {
|
|
552
|
+
e = Array.from($n.value.querySelectorAll("text")).reduce((e, t) => {
|
|
541
553
|
let n = t.getComputedTextLength();
|
|
542
554
|
return n > e ? n : e;
|
|
543
555
|
}, 0);
|
|
@@ -545,24 +557,24 @@ var Je = /* @__PURE__ */ e({ default: () => yn }), Ye = ["id"], Xe = ["id"], Ze
|
|
|
545
557
|
e = 0;
|
|
546
558
|
}
|
|
547
559
|
let t = 0;
|
|
548
|
-
if (
|
|
549
|
-
t =
|
|
560
|
+
if (Yn.value) try {
|
|
561
|
+
t = Yn.value.getBBox().width;
|
|
550
562
|
} catch {
|
|
551
563
|
t = 0;
|
|
552
564
|
}
|
|
553
565
|
return Math.max(t, e ? e + 12 : 0);
|
|
554
566
|
}
|
|
555
|
-
function
|
|
567
|
+
function Mr() {
|
|
556
568
|
let e = 0;
|
|
557
|
-
if (
|
|
558
|
-
let t =
|
|
569
|
+
if (Xn.value) try {
|
|
570
|
+
let t = Xn.value.getBBox(), n = t.x + t.width - U.value.width;
|
|
559
571
|
e = n > 0 ? n + 6 : 0;
|
|
560
572
|
} catch {
|
|
561
573
|
e = 0;
|
|
562
574
|
}
|
|
563
575
|
let t = 0;
|
|
564
|
-
if (I.value.scales.show &&
|
|
565
|
-
t = Array.from(
|
|
576
|
+
if (I.value.scales.show && er.value) try {
|
|
577
|
+
t = Array.from(er.value.querySelectorAll("text")).reduce((e, t) => {
|
|
566
578
|
let n = t.getBBox(), r = n.x + n.width - U.value.width, i = r > 0 ? r + 6 : 0;
|
|
567
579
|
return i > e ? i : e;
|
|
568
580
|
}, 0);
|
|
@@ -573,37 +585,37 @@ var Je = /* @__PURE__ */ e({ default: () => yn }), Ye = ["id"], Xe = ["id"], Ze
|
|
|
573
585
|
}
|
|
574
586
|
let W = v(() => {
|
|
575
587
|
let e = 0, t = 0, n = 0;
|
|
576
|
-
if (e =
|
|
577
|
-
n =
|
|
588
|
+
if (e = jr(), t = Mr(), Qn.value) try {
|
|
589
|
+
n = Qn.value.getBBox().height + 6;
|
|
578
590
|
} catch {
|
|
579
591
|
n = 0;
|
|
580
592
|
}
|
|
581
593
|
return {
|
|
582
|
-
top: V.value.layout.padding.top +
|
|
583
|
-
right: U.value.width - V.value.layout.padding.right -
|
|
594
|
+
top: V.value.layout.padding.top + Ar.value + L.value.fontSize * 2,
|
|
595
|
+
right: U.value.width - V.value.layout.padding.right - Ar.value - 6 - t,
|
|
584
596
|
bottom: U.value.height - V.value.layout.padding.bottom - n,
|
|
585
597
|
left: V.value.layout.padding.left + e,
|
|
586
|
-
height: U.value.height - V.value.layout.padding.top - V.value.layout.padding.bottom -
|
|
587
|
-
width: U.value.width - V.value.layout.padding.left - V.value.layout.padding.right -
|
|
598
|
+
height: U.value.height - V.value.layout.padding.top - V.value.layout.padding.bottom - Ar.value - n - L.value.fontSize * 2,
|
|
599
|
+
width: U.value.width - V.value.layout.padding.left - V.value.layout.padding.right - Ar.value - e - t - 6
|
|
588
600
|
};
|
|
589
|
-
}),
|
|
590
|
-
|
|
591
|
-
|
|
601
|
+
}), Nr = v(() => {
|
|
602
|
+
Sr.value && dr.value.forEach((e, t) => {
|
|
603
|
+
ne({
|
|
592
604
|
datasetObject: e,
|
|
593
605
|
requiredAttributes: ["values"]
|
|
594
606
|
}).forEach((e) => {
|
|
595
|
-
|
|
607
|
+
ie({
|
|
596
608
|
componentName: "VueUiScatter",
|
|
597
609
|
type: "datasetSerieAttribute",
|
|
598
610
|
property: e,
|
|
599
611
|
index: t
|
|
600
612
|
});
|
|
601
613
|
}), e.values && e.values.forEach((e, n) => {
|
|
602
|
-
|
|
614
|
+
ne({
|
|
603
615
|
datasetObject: e,
|
|
604
616
|
requiredAttributes: ["x", "y"]
|
|
605
617
|
}).forEach((e) => {
|
|
606
|
-
|
|
618
|
+
ie({
|
|
607
619
|
componentName: "VueUiScatter",
|
|
608
620
|
type: "datasetSerieAttribute",
|
|
609
621
|
property: `values.${e}`,
|
|
@@ -612,97 +624,97 @@ var Je = /* @__PURE__ */ e({ default: () => yn }), Ye = ["id"], Xe = ["id"], Ze
|
|
|
612
624
|
});
|
|
613
625
|
});
|
|
614
626
|
});
|
|
615
|
-
let e = Math.min(...
|
|
627
|
+
let e = Math.min(...Kr.value.filter((e) => !N.value.includes(e.id)).flatMap((e) => e.values.map((e) => e.x))), t = Math.max(...Kr.value.filter((e) => !N.value.includes(e.id)).flatMap((e) => e.values.map((e) => e.x))), n = Math.min(...Kr.value.filter((e) => !N.value.includes(e.id)).flatMap((e) => e.values.map((e) => e.y))), r = Math.max(...Kr.value.filter((e) => !N.value.includes(e.id)).flatMap((e) => e.values.map((e) => e.y)));
|
|
616
628
|
return {
|
|
617
629
|
xMin: e < 0 ? e : 0,
|
|
618
630
|
xMax: t,
|
|
619
631
|
yMin: n < 0 ? n : 0,
|
|
620
632
|
yMax: r
|
|
621
633
|
};
|
|
622
|
-
}),
|
|
634
|
+
}), Pr = v(() => {
|
|
623
635
|
let e = V.value.layout.axis;
|
|
624
636
|
return {
|
|
625
|
-
xMin: e.xMin !== null && e.xMin !== void 0 ? e.xMin :
|
|
626
|
-
xMax: e.xMax !== null && e.xMax !== void 0 ? e.xMax :
|
|
627
|
-
yMin: e.yMin !== null && e.yMin !== void 0 ? e.yMin :
|
|
628
|
-
yMax: e.yMax !== null && e.yMax !== void 0 ? e.yMax :
|
|
637
|
+
xMin: e.xMin !== null && e.xMin !== void 0 ? e.xMin : Nr.value.xMin,
|
|
638
|
+
xMax: e.xMax !== null && e.xMax !== void 0 ? e.xMax : Nr.value.xMax,
|
|
639
|
+
yMin: e.yMin !== null && e.yMin !== void 0 ? e.yMin : Nr.value.yMin,
|
|
640
|
+
yMax: e.yMax !== null && e.yMax !== void 0 ? e.yMax : Nr.value.yMax
|
|
629
641
|
};
|
|
630
642
|
});
|
|
631
|
-
function
|
|
643
|
+
function Fr(e) {
|
|
632
644
|
return Number.isFinite(e) ? e < 2 ? 2 : Math.trunc(e) : 5;
|
|
633
645
|
}
|
|
634
|
-
function
|
|
646
|
+
function Ir(e) {
|
|
635
647
|
return e.roundingValue !== void 0 && e.roundingValue !== null ? e.roundingValue : e.rounding !== void 0 && e.rounding !== null ? e.rounding : 0;
|
|
636
648
|
}
|
|
637
|
-
function
|
|
638
|
-
let i =
|
|
649
|
+
function Lr({ minimum: e, maximum: t, stepCount: n, useNiceScale: r }) {
|
|
650
|
+
let i = Fr(n);
|
|
639
651
|
if (e === t) {
|
|
640
652
|
let n = t + (e === 0 ? 1 : Math.abs(e) * .01);
|
|
641
|
-
return (r ?
|
|
653
|
+
return (r ? te : se)(e, n, i);
|
|
642
654
|
}
|
|
643
|
-
return (r ?
|
|
655
|
+
return (r ? te : se)(e, t, i);
|
|
644
656
|
}
|
|
645
|
-
let
|
|
657
|
+
let Rr = v(() => {
|
|
646
658
|
let e = I.value;
|
|
647
|
-
return
|
|
648
|
-
minimum:
|
|
649
|
-
maximum:
|
|
659
|
+
return Lr({
|
|
660
|
+
minimum: Pr.value.xMin,
|
|
661
|
+
maximum: Pr.value.xMax,
|
|
650
662
|
stepCount: e.scales.steps,
|
|
651
663
|
useNiceScale: e.scales.useNiceScale
|
|
652
664
|
});
|
|
653
|
-
}),
|
|
665
|
+
}), zr = v(() => {
|
|
654
666
|
let e = L.value;
|
|
655
|
-
return
|
|
656
|
-
minimum:
|
|
657
|
-
maximum:
|
|
667
|
+
return Lr({
|
|
668
|
+
minimum: Pr.value.yMin,
|
|
669
|
+
maximum: Pr.value.yMax,
|
|
658
670
|
stepCount: e.scales.steps,
|
|
659
671
|
useNiceScale: e.scales.useNiceScale
|
|
660
672
|
});
|
|
661
673
|
}), G = v(() => ({
|
|
662
|
-
xMin:
|
|
663
|
-
xMax:
|
|
664
|
-
yMin:
|
|
665
|
-
yMax:
|
|
666
|
-
})),
|
|
674
|
+
xMin: Rr.value.min,
|
|
675
|
+
xMax: Rr.value.max,
|
|
676
|
+
yMin: zr.value.min,
|
|
677
|
+
yMax: zr.value.max
|
|
678
|
+
})), Br = v(() => {
|
|
667
679
|
let e = I.value, t = e.scales.labels;
|
|
668
|
-
return
|
|
680
|
+
return Rr.value.ticks.map((n) => ({
|
|
669
681
|
value: n,
|
|
670
|
-
x:
|
|
682
|
+
x: Wr(n),
|
|
671
683
|
label: g(t.formatter, h(n), f({
|
|
672
684
|
p: z.value.selectors.labels.prefix,
|
|
673
685
|
v: h(n),
|
|
674
686
|
s: z.value.selectors.labels.suffix,
|
|
675
|
-
r:
|
|
687
|
+
r: Ir(e)
|
|
676
688
|
}))
|
|
677
689
|
}));
|
|
678
|
-
}),
|
|
690
|
+
}), Vr = v(() => {
|
|
679
691
|
let e = L.value, t = e.scales.labels;
|
|
680
|
-
return
|
|
692
|
+
return zr.value.ticks.map((n) => ({
|
|
681
693
|
value: n,
|
|
682
|
-
y:
|
|
694
|
+
y: Gr(n),
|
|
683
695
|
label: g(t.formatter, h(n), f({
|
|
684
696
|
p: z.value.selectors.labels.prefix,
|
|
685
697
|
v: h(n),
|
|
686
698
|
s: z.value.selectors.labels.suffix,
|
|
687
|
-
r:
|
|
699
|
+
r: Ir(e)
|
|
688
700
|
}))
|
|
689
701
|
}));
|
|
690
|
-
}),
|
|
691
|
-
function
|
|
702
|
+
}), Hr = v(() => ai.value.length > 0 && I.value.scales.show), Ur = v(() => ai.value.length > 0 && L.value.scales.show);
|
|
703
|
+
function Wr(e) {
|
|
692
704
|
let t = G.value.xMax - G.value.xMin;
|
|
693
705
|
return t === 0 ? W.value.left : W.value.left + (e - G.value.xMin) / t * W.value.width;
|
|
694
706
|
}
|
|
695
|
-
function
|
|
707
|
+
function Gr(e) {
|
|
696
708
|
let t = G.value.yMax - G.value.yMin;
|
|
697
709
|
return t === 0 ? W.value.bottom : W.value.bottom - (e - G.value.yMin) / t * W.value.height;
|
|
698
710
|
}
|
|
699
711
|
let K = v(() => {
|
|
700
712
|
let { xMin: e, xMax: t, yMin: n, yMax: r } = G.value, i = e > 0 ? e : t < 0 ? t : 0, a = n > 0 ? n : r < 0 ? r : 0;
|
|
701
713
|
return {
|
|
702
|
-
x:
|
|
703
|
-
y:
|
|
714
|
+
x: Wr(i),
|
|
715
|
+
y: Gr(a)
|
|
704
716
|
};
|
|
705
|
-
}),
|
|
717
|
+
}), Kr = v(() => dr.value.map((e, t) => {
|
|
706
718
|
let n = `cluster_${M.value}_${t}`;
|
|
707
719
|
return {
|
|
708
720
|
...e,
|
|
@@ -711,35 +723,35 @@ var Je = /* @__PURE__ */ e({ default: () => yn }), Ye = ["id"], Xe = ["id"], Ze
|
|
|
711
723
|
threshold: P.value.usePerformanceMode ? e.values.length + 1 : P.value.downsample.threshold
|
|
712
724
|
}),
|
|
713
725
|
id: n,
|
|
714
|
-
color: e.color ? e.color :
|
|
726
|
+
color: e.color ? e.color : kr.value[t] || s[t] || s[t % s.length],
|
|
715
727
|
opacity: N.value.includes(n) ? .5 : 1,
|
|
716
728
|
shape: e.shape ?? "circle",
|
|
717
|
-
segregate: () =>
|
|
729
|
+
segregate: () => fi(n),
|
|
718
730
|
isSegregated: N.value.includes(n),
|
|
719
|
-
hasGroupSelection: !!
|
|
720
|
-
isGroupSelected:
|
|
721
|
-
onEnter: () =>
|
|
722
|
-
onLeave: () =>
|
|
731
|
+
hasGroupSelection: !!ei.value,
|
|
732
|
+
isGroupSelected: ei.value === n,
|
|
733
|
+
onEnter: () => ni(n),
|
|
734
|
+
onLeave: () => ri()
|
|
723
735
|
};
|
|
724
|
-
})),
|
|
736
|
+
})), qr = v(() => ({
|
|
725
737
|
cy: "scatter-div-legend",
|
|
726
738
|
backgroundColor: V.value.legend.backgroundColor,
|
|
727
739
|
color: V.value.legend.color,
|
|
728
740
|
fontSize: V.value.legend.fontSize,
|
|
729
741
|
paddingBottom: 12,
|
|
730
742
|
fontWeight: V.value.legend.bold ? "bold" : ""
|
|
731
|
-
})),
|
|
743
|
+
})), Jr = v(() => Kr.value.map((e, t) => ({
|
|
732
744
|
...e,
|
|
733
745
|
plots: e.values.map((n, r) => ({
|
|
734
|
-
x:
|
|
735
|
-
y:
|
|
746
|
+
x: Wr(n.x),
|
|
747
|
+
y: Gr(n.y),
|
|
736
748
|
v: {
|
|
737
749
|
...n,
|
|
738
750
|
name: n.name || ""
|
|
739
751
|
},
|
|
740
752
|
clusterName: e.name,
|
|
741
753
|
clusterId: e.id,
|
|
742
|
-
color: e.color ? e.color :
|
|
754
|
+
color: e.color ? e.color : kr.value[t] || s[t] || s[t % s.length],
|
|
743
755
|
id: `plot_${M.value}_${t}_${r}`,
|
|
744
756
|
weight: n.weight ?? z.value.radius
|
|
745
757
|
}))
|
|
@@ -755,10 +767,10 @@ var Je = /* @__PURE__ */ e({ default: () => yn }), Ye = ["id"], Xe = ["id"], Ze
|
|
|
755
767
|
let f = l.filter(d), p = [];
|
|
756
768
|
for (let e of f) p.some((t) => Math.abs(t.x - e.x) < 1e-6 && Math.abs(t.y - e.y) < 1e-6) || p.push(e);
|
|
757
769
|
if (p.length < 2) return null;
|
|
758
|
-
let m = p[0], ee = p[1],
|
|
770
|
+
let m = p[0], ee = p[1], te = 0;
|
|
759
771
|
for (let e = 0; e < p.length; e += 1) for (let t = e + 1; t < p.length; t += 1) {
|
|
760
772
|
let n = p[e].x - p[t].x, r = p[e].y - p[t].y, i = n * n + r * r;
|
|
761
|
-
i >
|
|
773
|
+
i > te && (te = i, m = p[e], ee = p[t]);
|
|
762
774
|
}
|
|
763
775
|
return {
|
|
764
776
|
x1: m.x,
|
|
@@ -767,7 +779,7 @@ var Je = /* @__PURE__ */ e({ default: () => yn }), Ye = ["id"], Xe = ["id"], Ze
|
|
|
767
779
|
y2: ee.y
|
|
768
780
|
};
|
|
769
781
|
};
|
|
770
|
-
return
|
|
782
|
+
return Jr.value.map((n) => {
|
|
771
783
|
let r = n.plots.length, i = n.plots.reduce((e, t) => e + t.x, 0) / r, a = n.plots.reduce((e, t) => e + t.y, 0) / r, o = 0, s = 0, c = 0;
|
|
772
784
|
for (let e of n.plots) {
|
|
773
785
|
let t = e.x - i, n = e.y - a;
|
|
@@ -777,7 +789,7 @@ var Je = /* @__PURE__ */ e({ default: () => yn }), Ye = ["id"], Xe = ["id"], Ze
|
|
|
777
789
|
s < e ? (f = i, l = Infinity, d = null) : (l = o / s, d = a - l * i);
|
|
778
790
|
let p, m;
|
|
779
791
|
f === null ? (p = l, m = d) : (p = Infinity, m = null);
|
|
780
|
-
let ee = n.plots.every((e) => e.v && typeof e.v.x == "number" && typeof e.v.y == "number"),
|
|
792
|
+
let ee = n.plots.every((e) => e.v && typeof e.v.x == "number" && typeof e.v.y == "number"), te = NaN;
|
|
781
793
|
if (r >= 2) {
|
|
782
794
|
let t = 0, o = 0;
|
|
783
795
|
ee ? (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);
|
|
@@ -788,16 +800,16 @@ var Je = /* @__PURE__ */ e({ default: () => yn }), Ye = ["id"], Xe = ["id"], Ze
|
|
|
788
800
|
}
|
|
789
801
|
if (c >= e && l >= e) {
|
|
790
802
|
let e = s / Math.sqrt(c * l);
|
|
791
|
-
|
|
803
|
+
te = Math.max(-1, Math.min(1, e));
|
|
792
804
|
}
|
|
793
805
|
}
|
|
794
|
-
let
|
|
806
|
+
let h = t({
|
|
795
807
|
m: p,
|
|
796
808
|
b: m,
|
|
797
809
|
rect: W.value,
|
|
798
810
|
verticalX: f
|
|
799
811
|
});
|
|
800
|
-
if (!
|
|
812
|
+
if (!h) return {
|
|
801
813
|
...n,
|
|
802
814
|
correlation: null,
|
|
803
815
|
label: null,
|
|
@@ -808,18 +820,18 @@ var Je = /* @__PURE__ */ e({ default: () => yn }), Ye = ["id"], Xe = ["id"], Ze
|
|
|
808
820
|
color: u(n.color)
|
|
809
821
|
}))
|
|
810
822
|
};
|
|
811
|
-
let
|
|
812
|
-
x: (
|
|
813
|
-
y: (
|
|
823
|
+
let ne = {
|
|
824
|
+
x: (h.x1 + h.x2) / 2,
|
|
825
|
+
y: (h.y1 + h.y2) / 2
|
|
814
826
|
};
|
|
815
827
|
return {
|
|
816
828
|
...n,
|
|
817
829
|
color: u(n.color),
|
|
818
830
|
correlation: {
|
|
819
|
-
...
|
|
820
|
-
coefficient:
|
|
831
|
+
...h,
|
|
832
|
+
coefficient: te
|
|
821
833
|
},
|
|
822
|
-
label:
|
|
834
|
+
label: ne,
|
|
823
835
|
plots: n.plots.map((t) => {
|
|
824
836
|
let r, i;
|
|
825
837
|
f === null ? Math.abs(p) < e ? (r = t.x, i = m) : (r = (t.x + p * t.y - p * m) / (1 + p * p), i = (p * t.x + p * p * t.y + m) / (1 + p * p)) : (r = f, i = t.y);
|
|
@@ -833,11 +845,11 @@ var Je = /* @__PURE__ */ e({ default: () => yn }), Ye = ["id"], Xe = ["id"], Ze
|
|
|
833
845
|
})
|
|
834
846
|
};
|
|
835
847
|
});
|
|
836
|
-
}),
|
|
837
|
-
function
|
|
848
|
+
}), Yr = v(() => Math.max(...q.value.flatMap((e) => e.plots.map((e) => Math.abs(e.deviation)))));
|
|
849
|
+
function Xr() {
|
|
838
850
|
return q.value;
|
|
839
851
|
}
|
|
840
|
-
function
|
|
852
|
+
function Zr(e, t) {
|
|
841
853
|
let n = Array.isArray(e) ? e.flatMap((e) => e.plots.map((e) => ({
|
|
842
854
|
x: e.x,
|
|
843
855
|
y: e.y
|
|
@@ -864,10 +876,10 @@ var Je = /* @__PURE__ */ e({ default: () => yn }), Ye = ["id"], Xe = ["id"], Ze
|
|
|
864
876
|
maxY: Math.max(...f)
|
|
865
877
|
};
|
|
866
878
|
}
|
|
867
|
-
let J = v(() => R.value.tranches), Y = v(() => Jr
|
|
879
|
+
let J = v(() => R.value.tranches), Y = v(() => Zr(Jr.value, J.value)), Qr = v(() => {
|
|
868
880
|
let e = W.value.top - R.value.offset, t = W.value.right + R.value.offset;
|
|
869
|
-
return
|
|
870
|
-
let r =
|
|
881
|
+
return Jr.value.map((n) => {
|
|
882
|
+
let r = Zr(n, J.value);
|
|
871
883
|
return {
|
|
872
884
|
coords: r,
|
|
873
885
|
dX: c(r.avgX.map((t, n) => ({
|
|
@@ -882,64 +894,64 @@ var Je = /* @__PURE__ */ e({ default: () => yn }), Ye = ["id"], Xe = ["id"], Ze
|
|
|
882
894
|
id: n.id
|
|
883
895
|
};
|
|
884
896
|
});
|
|
885
|
-
}), X = T(void 0), Z = T(null), Q = T([]),
|
|
886
|
-
function
|
|
887
|
-
|
|
897
|
+
}), X = T(void 0), Z = T(null), Q = T([]), $r = T(null), ei = T(void 0);
|
|
898
|
+
function ti() {
|
|
899
|
+
Nn.value = !1, X.value = void 0, Q.value = [], Z.value = null, ar.value = null, tr.value = null, ei.value = void 0;
|
|
888
900
|
}
|
|
889
|
-
function
|
|
901
|
+
function ni(e) {
|
|
890
902
|
let t = q.value.find((t) => t.id === e);
|
|
891
903
|
if (!t) {
|
|
892
904
|
Q.value = [];
|
|
893
905
|
return;
|
|
894
906
|
}
|
|
895
|
-
Q.value = t.plots.map((e) => e.id),
|
|
907
|
+
Q.value = t.plots.map((e) => e.id), ei.value = e;
|
|
896
908
|
}
|
|
897
|
-
function
|
|
898
|
-
Q.value = [],
|
|
909
|
+
function ri() {
|
|
910
|
+
Q.value = [], ei.value = void 0;
|
|
899
911
|
}
|
|
900
|
-
function
|
|
901
|
-
if (!
|
|
902
|
-
let t = o(e.x, e.y,
|
|
903
|
-
t && (
|
|
912
|
+
function ii(e) {
|
|
913
|
+
if (!gr.value || !e) return;
|
|
914
|
+
let t = o(e.x, e.y, gr.value);
|
|
915
|
+
t && (nr.value = t);
|
|
904
916
|
}
|
|
905
|
-
let
|
|
906
|
-
function
|
|
917
|
+
let ai = v(() => Z.value ? [Z.value] : Q.value.length ? q.value.flatMap((e) => e.plots).filter((e) => Q.value.includes(e.id)) : []);
|
|
918
|
+
function oi(e) {
|
|
907
919
|
let t = I.value, n = t.scales.labels;
|
|
908
920
|
return g(n.formatter, h(e.v.x), f({
|
|
909
921
|
p: z.value.selectors.labels.prefix,
|
|
910
922
|
v: h(e.v.x),
|
|
911
923
|
s: z.value.selectors.labels.suffix,
|
|
912
|
-
r:
|
|
924
|
+
r: Ir(t)
|
|
913
925
|
}), { datapoint: e });
|
|
914
926
|
}
|
|
915
|
-
function
|
|
927
|
+
function si(e) {
|
|
916
928
|
let t = L.value, n = t.scales.labels;
|
|
917
929
|
return g(n.formatter, h(e.v.y), f({
|
|
918
930
|
p: z.value.selectors.labels.prefix,
|
|
919
931
|
v: h(e.v.y),
|
|
920
932
|
s: z.value.selectors.labels.suffix,
|
|
921
|
-
r:
|
|
933
|
+
r: Ir(t)
|
|
922
934
|
}), { datapoint: e });
|
|
923
935
|
}
|
|
924
|
-
function
|
|
925
|
-
X.value = e.id, Z.value = e,
|
|
936
|
+
function ci(e, t, r = "pointer", i = null) {
|
|
937
|
+
X.value = e.id, Z.value = e, rr.value = r, ar.value = i, tr.value = e.id;
|
|
926
938
|
let a = "";
|
|
927
939
|
P.value.events.datapointEnter && P.value.events.datapointEnter({
|
|
928
940
|
datapoint: e,
|
|
929
941
|
seriesIndex: t
|
|
930
|
-
}),
|
|
942
|
+
}), $r.value = {
|
|
931
943
|
datapoint: e,
|
|
932
944
|
seriesIndex: t,
|
|
933
945
|
series: q.value,
|
|
934
946
|
config: P.value
|
|
935
947
|
};
|
|
936
948
|
let o = B.value.customFormat;
|
|
937
|
-
n(o) &&
|
|
949
|
+
n(o) && re(() => o({
|
|
938
950
|
datapoint: e,
|
|
939
951
|
seriesIndex: t,
|
|
940
952
|
series: q.value,
|
|
941
953
|
config: P.value
|
|
942
|
-
})) ?
|
|
954
|
+
})) ? Pn.value = o({
|
|
943
955
|
datapoint: e,
|
|
944
956
|
seriesIndex: t,
|
|
945
957
|
series: q.value,
|
|
@@ -963,43 +975,43 @@ var Je = /* @__PURE__ */ e({ default: () => yn }), Ye = ["id"], Xe = ["id"], Ze
|
|
|
963
975
|
})}</b></div>`, a += `${z.value.deviation.translation}: <b>${f({
|
|
964
976
|
v: e.deviation,
|
|
965
977
|
r: z.value.deviation.roundingValue
|
|
966
|
-
})}</b>`, a += "</div>",
|
|
967
|
-
|
|
978
|
+
})}</b>`, a += "</div>", Pn.value = `<div>${a}</div>`), Nn.value = !0, r === "keyboard" && Be(() => {
|
|
979
|
+
ii(e);
|
|
968
980
|
});
|
|
969
981
|
}
|
|
970
|
-
function
|
|
982
|
+
function li(e, t) {
|
|
971
983
|
P.value.events.datapointLeave && P.value.events.datapointLeave({
|
|
972
984
|
datapoint: e,
|
|
973
985
|
seriesIndex: t
|
|
974
|
-
}), (
|
|
986
|
+
}), (rr.value !== "keyboard" || tr.value !== e?.id) && (Nn.value = !1, X.value = void 0, Z.value = null);
|
|
975
987
|
}
|
|
976
|
-
function
|
|
988
|
+
function ui(e, t) {
|
|
977
989
|
P.value.events.datapointClick && P.value.events.datapointClick({
|
|
978
990
|
datapoint: e,
|
|
979
991
|
seriesIndex: t
|
|
980
992
|
});
|
|
981
993
|
}
|
|
982
|
-
function
|
|
983
|
-
N.value.length ? N.value = [] :
|
|
994
|
+
function di() {
|
|
995
|
+
N.value.length ? N.value = [] : Kr.value.forEach((e) => {
|
|
984
996
|
N.value.push(e.id);
|
|
985
|
-
}),
|
|
997
|
+
}), jn("selectLegend", Jr.value);
|
|
986
998
|
}
|
|
987
|
-
function
|
|
988
|
-
N.value.includes(e) ? N.value = N.value.filter((t) => t !== e) : N.value.length <
|
|
999
|
+
function fi(e) {
|
|
1000
|
+
N.value.includes(e) ? N.value = N.value.filter((t) => t !== e) : N.value.length < dr.value.length - 1 && N.value.push(e), jn("selectLegend", Jr.value);
|
|
989
1001
|
}
|
|
990
|
-
function
|
|
991
|
-
return
|
|
1002
|
+
function pi(e) {
|
|
1003
|
+
return Kr.value.length ? Kr.value.find((t) => t.name === e) || (Sr.value && console.warn(`VueUiScatter - Series name not found "${e}"`), null) : (Sr.value && console.warn("VueUiScatter - There are no series to show."), null);
|
|
992
1004
|
}
|
|
993
|
-
function
|
|
994
|
-
let t =
|
|
995
|
-
t !== null && N.value.includes(t.id) &&
|
|
1005
|
+
function mi(e) {
|
|
1006
|
+
let t = pi(e);
|
|
1007
|
+
t !== null && N.value.includes(t.id) && fi(t.id);
|
|
996
1008
|
}
|
|
997
|
-
function
|
|
998
|
-
let t =
|
|
999
|
-
t !== null && (N.value.includes(t.id) ||
|
|
1009
|
+
function hi(e) {
|
|
1010
|
+
let t = pi(e);
|
|
1011
|
+
t !== null && (N.value.includes(t.id) || fi(t.id));
|
|
1000
1012
|
}
|
|
1001
|
-
function
|
|
1002
|
-
|
|
1013
|
+
function gi(e = null) {
|
|
1014
|
+
Be(() => {
|
|
1003
1015
|
let n = [
|
|
1004
1016
|
"",
|
|
1005
1017
|
P.value.table.translations.correlationCoefficient,
|
|
@@ -1028,7 +1040,7 @@ var Je = /* @__PURE__ */ e({ default: () => yn }), Ye = ["id"], Xe = ["id"], Ze
|
|
|
1028
1040
|
});
|
|
1029
1041
|
});
|
|
1030
1042
|
}
|
|
1031
|
-
let
|
|
1043
|
+
let _i = v(() => {
|
|
1032
1044
|
let e = [
|
|
1033
1045
|
P.value.table.translations.series,
|
|
1034
1046
|
P.value.table.translations.correlationCoefficient,
|
|
@@ -1065,24 +1077,24 @@ var Je = /* @__PURE__ */ e({ default: () => yn }), Ye = ["id"], Xe = ["id"], Ze
|
|
|
1065
1077
|
},
|
|
1066
1078
|
colNames: e
|
|
1067
1079
|
};
|
|
1068
|
-
}),
|
|
1069
|
-
function
|
|
1070
|
-
|
|
1080
|
+
}), vi = T(!1);
|
|
1081
|
+
function yi(e) {
|
|
1082
|
+
vi.value = e, Fn.value += 1;
|
|
1071
1083
|
}
|
|
1072
|
-
function
|
|
1084
|
+
function bi() {
|
|
1073
1085
|
H.value.showTable = !H.value.showTable;
|
|
1074
1086
|
}
|
|
1075
|
-
function
|
|
1087
|
+
function xi() {
|
|
1076
1088
|
H.value.showTooltip = !H.value.showTooltip;
|
|
1077
1089
|
}
|
|
1078
|
-
let
|
|
1079
|
-
function
|
|
1080
|
-
|
|
1090
|
+
let Si = T(!1);
|
|
1091
|
+
function Ci() {
|
|
1092
|
+
Si.value = !Si.value;
|
|
1081
1093
|
}
|
|
1082
|
-
async function
|
|
1083
|
-
if (!
|
|
1084
|
-
let { width: t, height: n } =
|
|
1085
|
-
domElement:
|
|
1094
|
+
async function wi({ scale: e = 2 } = {}) {
|
|
1095
|
+
if (!In.value) return;
|
|
1096
|
+
let { width: t, height: n } = In.value.getBoundingClientRect(), r = t / n, { imageUri: i, base64: a } = await be({
|
|
1097
|
+
domElement: In.value,
|
|
1086
1098
|
base64: !0,
|
|
1087
1099
|
img: !0,
|
|
1088
1100
|
scale: e
|
|
@@ -1096,16 +1108,16 @@ var Je = /* @__PURE__ */ e({ default: () => yn }), Ye = ["id"], Xe = ["id"], Ze
|
|
|
1096
1108
|
aspectRatio: r
|
|
1097
1109
|
};
|
|
1098
1110
|
}
|
|
1099
|
-
function
|
|
1100
|
-
|
|
1111
|
+
function Ti(e) {
|
|
1112
|
+
Gn.value = e, R.value.highlighter.highlightBothAxes && (Kn.value = Y.value.y.length - 2 - e);
|
|
1101
1113
|
}
|
|
1102
|
-
function
|
|
1103
|
-
|
|
1114
|
+
function Ei(e) {
|
|
1115
|
+
Kn.value = e, R.value.highlighter.highlightBothAxes && (Gn.value = e);
|
|
1104
1116
|
}
|
|
1105
|
-
function
|
|
1106
|
-
|
|
1117
|
+
function Di() {
|
|
1118
|
+
Gn.value = null, Kn.value = null;
|
|
1107
1119
|
}
|
|
1108
|
-
let
|
|
1120
|
+
let Oi = {
|
|
1109
1121
|
circle: 1,
|
|
1110
1122
|
square: 1,
|
|
1111
1123
|
diamond: 1,
|
|
@@ -1114,9 +1126,9 @@ var Je = /* @__PURE__ */ e({ default: () => yn }), Ye = ["id"], Xe = ["id"], Ze
|
|
|
1114
1126
|
pentagon: 1.3,
|
|
1115
1127
|
hexagon: 1.3
|
|
1116
1128
|
}, $ = (e) => e.toFixed(3);
|
|
1117
|
-
function
|
|
1129
|
+
function ki({ shape: e = "circle", cx: t, cy: n, r }) {
|
|
1118
1130
|
if (!P.value.usePerformanceMode) return "";
|
|
1119
|
-
let i =
|
|
1131
|
+
let i = Oi[e] * r;
|
|
1120
1132
|
switch (e) {
|
|
1121
1133
|
case "circle": {
|
|
1122
1134
|
let e = $(t - i), r = $(n), a = $(t + i), o = $(i);
|
|
@@ -1170,7 +1182,7 @@ var Je = /* @__PURE__ */ e({ default: () => yn }), Ye = ["id"], Xe = ["id"], Ze
|
|
|
1170
1182
|
}
|
|
1171
1183
|
}
|
|
1172
1184
|
}
|
|
1173
|
-
let
|
|
1185
|
+
let Ai = v(() => {
|
|
1174
1186
|
if (!P.value.usePerformanceMode) return [""];
|
|
1175
1187
|
let { left: e, right: t, top: n, bottom: r } = W.value, i = Math.max(1, (t - e) * (r - n)), a = (e) => e / i * 1e4, o = z.value.stroke, s = z.value.strokeWidth, c = z.value.opacity;
|
|
1176
1188
|
return q.value.map((i) => {
|
|
@@ -1179,7 +1191,7 @@ var Je = /* @__PURE__ */ e({ default: () => yn }), Ye = ["id"], Xe = ["id"], Ze
|
|
|
1179
1191
|
let o = a.x, s = a.y;
|
|
1180
1192
|
if (o < e || o > t || s < n || s > r) continue;
|
|
1181
1193
|
let c = Math.max(z.value.radius, a.weight);
|
|
1182
|
-
l.push(
|
|
1194
|
+
l.push(ki({
|
|
1183
1195
|
shape: i.shape || "circle",
|
|
1184
1196
|
cx: o,
|
|
1185
1197
|
cy: s,
|
|
@@ -1198,9 +1210,9 @@ var Je = /* @__PURE__ */ e({ default: () => yn }), Ye = ["id"], Xe = ["id"], Ze
|
|
|
1198
1210
|
};
|
|
1199
1211
|
}).filter(Boolean);
|
|
1200
1212
|
});
|
|
1201
|
-
function
|
|
1213
|
+
function ji() {
|
|
1202
1214
|
return P.value.usePerformanceMode ? (e) => {
|
|
1203
|
-
let t =
|
|
1215
|
+
let t = gr.value;
|
|
1204
1216
|
if (!t) return;
|
|
1205
1217
|
let n = t.createSVGPoint();
|
|
1206
1218
|
n.x = e.clientX, n.y = e.clientY;
|
|
@@ -1212,41 +1224,41 @@ var Je = /* @__PURE__ */ e({ default: () => yn }), Ye = ["id"], Xe = ["id"], Ze
|
|
|
1212
1224
|
let n = e.x - a.x, r = e.y - a.y, i = n * n + r * r;
|
|
1213
1225
|
i <= 64 && i < s && (s = i, o = e, c = t);
|
|
1214
1226
|
});
|
|
1215
|
-
}), o) X.value !== o.id && (X.value = o.id,
|
|
1227
|
+
}), o) X.value !== o.id && (X.value = o.id, ci(o, c, "pointer", Zi.value.get(o.id) ?? null));
|
|
1216
1228
|
else if (X.value) {
|
|
1217
1229
|
let e = Z.value;
|
|
1218
|
-
X.value = void 0,
|
|
1230
|
+
X.value = void 0, li(e, c);
|
|
1219
1231
|
}
|
|
1220
1232
|
} : () => null;
|
|
1221
1233
|
}
|
|
1222
|
-
let
|
|
1223
|
-
function
|
|
1234
|
+
let Mi = ji();
|
|
1235
|
+
function Ni() {
|
|
1224
1236
|
if (X.value) {
|
|
1225
1237
|
let e = Z.value;
|
|
1226
|
-
X.value = void 0,
|
|
1238
|
+
X.value = void 0, li(e, null);
|
|
1227
1239
|
}
|
|
1228
1240
|
}
|
|
1229
|
-
function
|
|
1241
|
+
function Pi(e) {
|
|
1230
1242
|
let t = Z.value;
|
|
1231
1243
|
if (t) {
|
|
1232
1244
|
let e = q.value.findIndex((e) => e.id === t.clusterId);
|
|
1233
|
-
|
|
1245
|
+
ui(t, e >= 0 ? e : 0);
|
|
1234
1246
|
}
|
|
1235
1247
|
}
|
|
1236
|
-
let
|
|
1248
|
+
let Fi = v(() => {
|
|
1237
1249
|
let e = P.value.table.useDialog && !P.value.table.show, t = H.value.showTable;
|
|
1238
1250
|
return {
|
|
1239
|
-
component: e ?
|
|
1251
|
+
component: e ? Dn : Sn,
|
|
1240
1252
|
title: `${V.value.title.text}${V.value.title.subtitle.text ? `: ${V.value.title.subtitle.text}` : ""}`,
|
|
1241
1253
|
props: e ? {
|
|
1242
1254
|
backgroundColor: P.value.table.th.backgroundColor,
|
|
1243
1255
|
color: P.value.table.th.color,
|
|
1244
1256
|
headerColor: P.value.table.th.color,
|
|
1245
1257
|
headerBg: P.value.table.th.backgroundColor,
|
|
1246
|
-
isFullscreen:
|
|
1247
|
-
fullscreenParent:
|
|
1258
|
+
isFullscreen: vi.value,
|
|
1259
|
+
fullscreenParent: In.value,
|
|
1248
1260
|
forcedWidth: Math.min(800, window.innerWidth * .8),
|
|
1249
|
-
isCursorPointer:
|
|
1261
|
+
isCursorPointer: sr.value
|
|
1250
1262
|
} : {
|
|
1251
1263
|
hideDetails: !0,
|
|
1252
1264
|
config: {
|
|
@@ -1264,36 +1276,36 @@ var Je = /* @__PURE__ */ e({ default: () => yn }), Ye = ["id"], Xe = ["id"], Ze
|
|
|
1264
1276
|
}
|
|
1265
1277
|
};
|
|
1266
1278
|
});
|
|
1267
|
-
|
|
1268
|
-
P.value.table.show || (e && P.value.table.useDialog &&
|
|
1279
|
+
Je(() => H.value.showTable, (e) => {
|
|
1280
|
+
P.value.table.show || (e && P.value.table.useDialog && qn.value ? qn.value.open() : "close" in qn.value && qn.value.close());
|
|
1269
1281
|
});
|
|
1270
|
-
function
|
|
1271
|
-
H.value.showTable = !1,
|
|
1282
|
+
function Ii() {
|
|
1283
|
+
H.value.showTable = !1, Jn.value && Jn.value.setTableIconState(!1);
|
|
1272
1284
|
}
|
|
1273
|
-
let
|
|
1274
|
-
svg:
|
|
1275
|
-
title:
|
|
1276
|
-
legend:
|
|
1277
|
-
legendItems:
|
|
1278
|
-
backgroundColor:
|
|
1285
|
+
let Li = v(() => V.value.backgroundColor), Ri = v(() => V.value.legend), zi = v(() => V.value.title), { isCallbackImaging: Bi, isCallbackSvg: Vi, generateSvg: Hi, onGenerateImage: Ui } = ve({
|
|
1286
|
+
svg: gr,
|
|
1287
|
+
title: zi,
|
|
1288
|
+
legend: Ri,
|
|
1289
|
+
legendItems: Kr,
|
|
1290
|
+
backgroundColor: Li,
|
|
1279
1291
|
getSvgCallback: () => P.value.userOptions.callbacks.svg,
|
|
1280
|
-
generateImage:
|
|
1292
|
+
generateImage: Dr
|
|
1281
1293
|
});
|
|
1282
|
-
async function
|
|
1283
|
-
if (
|
|
1294
|
+
async function Wi() {
|
|
1295
|
+
if (jn("copyAlt", {
|
|
1284
1296
|
config: P.value,
|
|
1285
|
-
dataset:
|
|
1297
|
+
dataset: Jr.value
|
|
1286
1298
|
}), !P.value.userOptions.callbacks.altCopy) {
|
|
1287
1299
|
console.warn("Vue Data UI - A callback must be set for `altCopy` in userOptions.");
|
|
1288
1300
|
return;
|
|
1289
1301
|
}
|
|
1290
1302
|
await Promise.resolve(P.value.userOptions.callbacks.altCopy({
|
|
1291
1303
|
config: P.value,
|
|
1292
|
-
dataset:
|
|
1304
|
+
dataset: Jr.value
|
|
1293
1305
|
}));
|
|
1294
1306
|
}
|
|
1295
|
-
function
|
|
1296
|
-
let n =
|
|
1307
|
+
function Gi(e, t) {
|
|
1308
|
+
let n = Xi.value.filter((t) => t.id !== e.id);
|
|
1297
1309
|
if (!n.length) return null;
|
|
1298
1310
|
let r = ((n) => {
|
|
1299
1311
|
if (!n.length) return null;
|
|
@@ -1329,59 +1341,59 @@ var Je = /* @__PURE__ */ e({ default: () => yn }), Ye = ["id"], Xe = ["id"], Ze
|
|
|
1329
1341
|
return Math.abs(t === "right" || t === "left" ? r.y - e.y : r.x - e.x) < i ? r : n;
|
|
1330
1342
|
}, null) : null;
|
|
1331
1343
|
}
|
|
1332
|
-
function
|
|
1333
|
-
|
|
1344
|
+
function Ki() {
|
|
1345
|
+
ar.value = null, tr.value = null, ir.value = !0;
|
|
1334
1346
|
}
|
|
1335
|
-
function
|
|
1336
|
-
|
|
1347
|
+
function qi() {
|
|
1348
|
+
ti(), rr.value = "pointer", ir.value = !1;
|
|
1337
1349
|
}
|
|
1338
|
-
function
|
|
1339
|
-
if (!
|
|
1350
|
+
function Ji(e) {
|
|
1351
|
+
if (!gr.value || Si.value || document.activeElement !== gr.value || !Xi.value.length) return;
|
|
1340
1352
|
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";
|
|
1341
1353
|
if (!t && !n && !r && !i && !a && !o) return;
|
|
1342
1354
|
if (e.preventDefault(), e.stopPropagation(), o) {
|
|
1343
|
-
|
|
1355
|
+
ti(), rr.value = "pointer";
|
|
1344
1356
|
return;
|
|
1345
1357
|
}
|
|
1346
1358
|
if (a) {
|
|
1347
|
-
if (
|
|
1348
|
-
let e =
|
|
1359
|
+
if (ar.value === null) return;
|
|
1360
|
+
let e = Xi.value[ar.value];
|
|
1349
1361
|
if (!e) return;
|
|
1350
|
-
|
|
1362
|
+
ui(e, e.seriesIndex);
|
|
1351
1363
|
return;
|
|
1352
1364
|
}
|
|
1353
1365
|
let s = null;
|
|
1354
|
-
if (n && (s = "right"), t && (s = "left"), i && (s = "down"), r && (s = "up"),
|
|
1366
|
+
if (n && (s = "right"), t && (s = "left"), i && (s = "down"), r && (s = "up"), tr.value === null) {
|
|
1355
1367
|
let e = Z.value;
|
|
1356
1368
|
if (e && e.id) {
|
|
1357
|
-
let t =
|
|
1369
|
+
let t = Gi(e, s);
|
|
1358
1370
|
if (!t) {
|
|
1359
|
-
let t =
|
|
1371
|
+
let t = Zi.value.get(e.id);
|
|
1360
1372
|
if (t === void 0) return;
|
|
1361
|
-
|
|
1373
|
+
ci(e, e.seriesIndex, "keyboard", t);
|
|
1362
1374
|
return;
|
|
1363
1375
|
}
|
|
1364
|
-
let n =
|
|
1376
|
+
let n = Zi.value.get(t.id);
|
|
1365
1377
|
if (n === void 0) return;
|
|
1366
|
-
|
|
1378
|
+
ci(t, t.seriesIndex, "keyboard", n);
|
|
1367
1379
|
return;
|
|
1368
1380
|
}
|
|
1369
|
-
let t =
|
|
1381
|
+
let t = Xi.value[0];
|
|
1370
1382
|
if (!t) return;
|
|
1371
|
-
let n =
|
|
1372
|
-
|
|
1383
|
+
let n = Zi.value.get(t.id) ?? 0;
|
|
1384
|
+
ci(t, t.seriesIndex, "keyboard", n);
|
|
1373
1385
|
return;
|
|
1374
1386
|
}
|
|
1375
|
-
let c =
|
|
1387
|
+
let c = Zi.value.get(tr.value);
|
|
1376
1388
|
if (c === void 0) return;
|
|
1377
|
-
let l =
|
|
1389
|
+
let l = Xi.value[c];
|
|
1378
1390
|
if (!l) return;
|
|
1379
|
-
let u =
|
|
1391
|
+
let u = Gi(l, s);
|
|
1380
1392
|
if (!u) return;
|
|
1381
|
-
let d =
|
|
1382
|
-
d !== void 0 &&
|
|
1393
|
+
let d = Zi.value.get(u.id);
|
|
1394
|
+
d !== void 0 && ci(u, u.seriesIndex, "keyboard", d);
|
|
1383
1395
|
}
|
|
1384
|
-
let
|
|
1396
|
+
let Yi = v(() => {
|
|
1385
1397
|
if (!Z.value) return "";
|
|
1386
1398
|
let e = Z.value, t = isNaN(e.v.x) ? "-" : g(z.value.selectors.labels.x.formatter, e.v.x, f({
|
|
1387
1399
|
p: B.value.prefix,
|
|
@@ -1406,57 +1418,57 @@ var Je = /* @__PURE__ */ e({ default: () => yn }), Ye = ["id"], Xe = ["id"], Ze
|
|
|
1406
1418
|
`${I.value.name}: ${t}`,
|
|
1407
1419
|
`${L.value.name}: ${n}`
|
|
1408
1420
|
].filter(Boolean).join(". ");
|
|
1409
|
-
}),
|
|
1421
|
+
}), Xi = v(() => q.value.flatMap((e, t) => e.plots.map((n) => ({
|
|
1410
1422
|
...n,
|
|
1411
1423
|
seriesIndex: t,
|
|
1412
1424
|
seriesId: e.id,
|
|
1413
1425
|
seriesName: e.name,
|
|
1414
1426
|
shape: e.shape || "circle",
|
|
1415
1427
|
color: e.color
|
|
1416
|
-
})))),
|
|
1428
|
+
})))), Zi = v(() => {
|
|
1417
1429
|
let e = /* @__PURE__ */ new Map();
|
|
1418
|
-
return
|
|
1430
|
+
return Xi.value.forEach((t, n) => {
|
|
1419
1431
|
e.set(t.id, n);
|
|
1420
1432
|
}), e;
|
|
1421
|
-
}),
|
|
1422
|
-
headers:
|
|
1423
|
-
rows:
|
|
1433
|
+
}), Qi = v(() => ({
|
|
1434
|
+
headers: _i.value?.colNames ?? [],
|
|
1435
|
+
rows: _i.value?.a11yBody ?? []
|
|
1424
1436
|
}));
|
|
1425
|
-
return
|
|
1426
|
-
getData:
|
|
1427
|
-
getImage:
|
|
1428
|
-
generatePdf:
|
|
1429
|
-
generateCsv:
|
|
1430
|
-
generateImage:
|
|
1431
|
-
generateSvg:
|
|
1432
|
-
hideSeries:
|
|
1433
|
-
showSeries:
|
|
1434
|
-
toggleTable:
|
|
1435
|
-
toggleTooltip:
|
|
1436
|
-
toggleAnnotator:
|
|
1437
|
-
toggleFullscreen:
|
|
1438
|
-
copyAlt:
|
|
1437
|
+
return Ce({
|
|
1438
|
+
getData: Xr,
|
|
1439
|
+
getImage: wi,
|
|
1440
|
+
generatePdf: Er,
|
|
1441
|
+
generateCsv: gi,
|
|
1442
|
+
generateImage: Dr,
|
|
1443
|
+
generateSvg: Hi,
|
|
1444
|
+
hideSeries: hi,
|
|
1445
|
+
showSeries: mi,
|
|
1446
|
+
toggleTable: bi,
|
|
1447
|
+
toggleTooltip: xi,
|
|
1448
|
+
toggleAnnotator: Ci,
|
|
1449
|
+
toggleFullscreen: yi,
|
|
1450
|
+
copyAlt: Wi
|
|
1439
1451
|
}), (e, t) => (w(), b("div", {
|
|
1440
|
-
class:
|
|
1452
|
+
class: Ve(`vue-data-ui-component vue-ui-scatter ${vi.value ? "vue-data-ui-wrapper-fullscreen" : ""} ${P.value.useCssAnimation ? "" : "vue-ui-dna"}`),
|
|
1441
1453
|
ref_key: "scatterChart",
|
|
1442
|
-
ref:
|
|
1454
|
+
ref: In,
|
|
1443
1455
|
id: `vue-ui-scatter_${M.value}`,
|
|
1444
|
-
style:
|
|
1445
|
-
onMouseenter: t[5] ||= () => k(
|
|
1456
|
+
style: He(`font-family:${V.value.fontFamily};width:100%; text-align:center;background:${V.value.backgroundColor};${P.value.responsive ? "height: 100%" : ""}`),
|
|
1457
|
+
onMouseenter: t[5] ||= () => k(mr)(!0),
|
|
1446
1458
|
onMouseleave: t[6] ||= () => {
|
|
1447
|
-
k(
|
|
1459
|
+
k(mr)(!1), ir.value || ti();
|
|
1448
1460
|
}
|
|
1449
1461
|
}, [
|
|
1450
1462
|
x("div", {
|
|
1451
1463
|
id: `chart-instructions-${M.value}`,
|
|
1452
1464
|
class: "sr-only"
|
|
1453
|
-
}, [x("p", null, O(P.value.a11y.translations.keyboardNavigation), 1)], 8,
|
|
1454
|
-
H.value.showTooltip ? y("", !0) : (w(), b("div",
|
|
1455
|
-
|
|
1465
|
+
}, [x("p", null, O(P.value.a11y.translations.keyboardNavigation), 1)], 8, Ze),
|
|
1466
|
+
H.value.showTooltip ? y("", !0) : (w(), b("div", Qe, O(Yi.value), 1)),
|
|
1467
|
+
Qi.value?.rows?.length && Mn.value ? (w(), Pe(Oe, {
|
|
1456
1468
|
key: 1,
|
|
1457
1469
|
uid: M.value,
|
|
1458
|
-
head:
|
|
1459
|
-
body:
|
|
1470
|
+
head: Qi.value.headers,
|
|
1471
|
+
body: Qi.value.rows,
|
|
1460
1472
|
notice: P.value.a11y.translations.tableAvailable,
|
|
1461
1473
|
caption: P.value.a11y.translations.tableCaption
|
|
1462
1474
|
}, null, 8, [
|
|
@@ -1466,15 +1478,15 @@ var Je = /* @__PURE__ */ e({ default: () => yn }), Ye = ["id"], Xe = ["id"], Ze
|
|
|
1466
1478
|
"notice",
|
|
1467
1479
|
"caption"
|
|
1468
1480
|
])) : y("", !0),
|
|
1469
|
-
F.value.buttons.annotator ? (w(),
|
|
1481
|
+
F.value.buttons.annotator ? (w(), Pe(k(wn), {
|
|
1470
1482
|
key: 2,
|
|
1471
|
-
svgRef: k(
|
|
1483
|
+
svgRef: k(gr),
|
|
1472
1484
|
backgroundColor: V.value.backgroundColor,
|
|
1473
1485
|
color: V.value.color,
|
|
1474
|
-
active:
|
|
1475
|
-
isCursorPointer:
|
|
1486
|
+
active: Si.value,
|
|
1487
|
+
isCursorPointer: sr.value,
|
|
1476
1488
|
palette: F.value.annotatorPalette,
|
|
1477
|
-
onClose:
|
|
1489
|
+
onClose: Ci
|
|
1478
1490
|
}, {
|
|
1479
1491
|
"annotator-action-close": A(() => [D(e.$slots, "annotator-action-close", {}, void 0, !0)]),
|
|
1480
1492
|
"annotator-action-color": A(({ color: t }) => [D(e.$slots, "annotator-action-color", C(S({ color: t })), void 0, !0)]),
|
|
@@ -1491,20 +1503,20 @@ var Je = /* @__PURE__ */ e({ default: () => yn }), Ye = ["id"], Xe = ["id"], Ze
|
|
|
1491
1503
|
"isCursorPointer",
|
|
1492
1504
|
"palette"
|
|
1493
1505
|
])) : y("", !0),
|
|
1494
|
-
|
|
1506
|
+
Or.value ? (w(), b("div", {
|
|
1495
1507
|
key: 3,
|
|
1496
1508
|
ref_key: "noTitle",
|
|
1497
|
-
ref:
|
|
1509
|
+
ref: Bn,
|
|
1498
1510
|
class: "vue-data-ui-no-title-space",
|
|
1499
1511
|
style: "height:36px; width: 100%;background:transparent"
|
|
1500
1512
|
}, null, 512)) : y("", !0),
|
|
1501
1513
|
V.value.title.text ? (w(), b("div", {
|
|
1502
1514
|
key: 4,
|
|
1503
1515
|
ref_key: "chartTitle",
|
|
1504
|
-
ref:
|
|
1516
|
+
ref: Ln,
|
|
1505
1517
|
style: "width:100%;background:transparent"
|
|
1506
|
-
}, [(w(),
|
|
1507
|
-
key: `title_${
|
|
1518
|
+
}, [(w(), Pe(xe, {
|
|
1519
|
+
key: `title_${Vn.value}`,
|
|
1508
1520
|
config: {
|
|
1509
1521
|
title: {
|
|
1510
1522
|
cy: "scatter-div-title",
|
|
@@ -1516,15 +1528,15 @@ var Je = /* @__PURE__ */ e({ default: () => yn }), Ye = ["id"], Xe = ["id"], Ze
|
|
|
1516
1528
|
}
|
|
1517
1529
|
}
|
|
1518
1530
|
}, null, 8, ["config"]))], 512)) : y("", !0),
|
|
1519
|
-
x("div", { id: `legend-top-${M.value}` }, null, 8,
|
|
1520
|
-
F.value.show &&
|
|
1531
|
+
x("div", { id: `legend-top-${M.value}` }, null, 8, $e),
|
|
1532
|
+
F.value.show && Mn.value && (k(hr) || k(pr)) ? (w(), Pe(k(Tn), {
|
|
1521
1533
|
ref_key: "userOptionsRef",
|
|
1522
|
-
ref:
|
|
1523
|
-
key: `user_options_${
|
|
1534
|
+
ref: Jn,
|
|
1535
|
+
key: `user_options_${Fn.value}`,
|
|
1524
1536
|
backgroundColor: V.value.backgroundColor,
|
|
1525
1537
|
color: V.value.color,
|
|
1526
|
-
isImaging: k(
|
|
1527
|
-
isPrinting: k(
|
|
1538
|
+
isImaging: k(Tr),
|
|
1539
|
+
isPrinting: k(wr),
|
|
1528
1540
|
uid: M.value,
|
|
1529
1541
|
hasTooltip: F.value.buttons.tooltip && B.value.show,
|
|
1530
1542
|
hasPdf: F.value.buttons.pdf,
|
|
@@ -1535,27 +1547,27 @@ var Je = /* @__PURE__ */ e({ default: () => yn }), Ye = ["id"], Xe = ["id"], Ze
|
|
|
1535
1547
|
hasFullscreen: F.value.buttons.fullscreen,
|
|
1536
1548
|
hasAltCopy: F.value.buttons.altCopy,
|
|
1537
1549
|
isTooltip: H.value.showTooltip,
|
|
1538
|
-
isFullscreen:
|
|
1550
|
+
isFullscreen: vi.value,
|
|
1539
1551
|
titles: { ...F.value.buttonTitles },
|
|
1540
|
-
chartElement:
|
|
1552
|
+
chartElement: In.value,
|
|
1541
1553
|
position: F.value.position,
|
|
1542
1554
|
hasAnnotator: F.value.buttons.annotator,
|
|
1543
|
-
isAnnotation:
|
|
1555
|
+
isAnnotation: Si.value,
|
|
1544
1556
|
callbacks: F.value.callbacks,
|
|
1545
1557
|
printScale: F.value.print.scale,
|
|
1546
1558
|
tableDialog: P.value.table.useDialog,
|
|
1547
|
-
isCursorPointer:
|
|
1548
|
-
onToggleFullscreen:
|
|
1549
|
-
onGeneratePdf: k(
|
|
1550
|
-
onGenerateCsv:
|
|
1551
|
-
onGenerateImage: k(
|
|
1552
|
-
onGenerateSvg: k(
|
|
1553
|
-
onToggleTable:
|
|
1554
|
-
onToggleTooltip:
|
|
1555
|
-
onToggleAnnotator:
|
|
1556
|
-
onCopyAlt:
|
|
1557
|
-
style:
|
|
1558
|
-
},
|
|
1559
|
+
isCursorPointer: sr.value,
|
|
1560
|
+
onToggleFullscreen: yi,
|
|
1561
|
+
onGeneratePdf: k(Er),
|
|
1562
|
+
onGenerateCsv: gi,
|
|
1563
|
+
onGenerateImage: k(Ui),
|
|
1564
|
+
onGenerateSvg: k(Hi),
|
|
1565
|
+
onToggleTable: bi,
|
|
1566
|
+
onToggleTooltip: xi,
|
|
1567
|
+
onToggleAnnotator: Ci,
|
|
1568
|
+
onCopyAlt: Wi,
|
|
1569
|
+
style: He({ visibility: k(hr) ? k(pr) ? "visible" : "hidden" : "visible" })
|
|
1570
|
+
}, Fe({ _: 2 }, [
|
|
1559
1571
|
e.$slots.menuIcon ? {
|
|
1560
1572
|
name: "menuIcon",
|
|
1561
1573
|
fn: A(({ isOpen: t, color: n }) => [D(e.$slots, "menuIcon", C(S({
|
|
@@ -1626,25 +1638,25 @@ var Je = /* @__PURE__ */ e({ default: () => yn }), Ye = ["id"], Xe = ["id"], Ze
|
|
|
1626
1638
|
key: "11"
|
|
1627
1639
|
} : void 0
|
|
1628
1640
|
]), 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.onGenerateImage.onGenerateSvg.style".split("."))) : y("", !0),
|
|
1629
|
-
x("div",
|
|
1641
|
+
x("div", et, [(w(), b("svg", {
|
|
1630
1642
|
ref_key: "svgRef",
|
|
1631
|
-
ref:
|
|
1632
|
-
xmlns: k(
|
|
1643
|
+
ref: gr,
|
|
1644
|
+
xmlns: k(oe),
|
|
1633
1645
|
"aria-describedby": `chart-instructions-${M.value}`,
|
|
1634
|
-
class:
|
|
1635
|
-
"vue-data-ui-fullscreen--on":
|
|
1636
|
-
"vue-data-ui-fulscreen--off": !
|
|
1637
|
-
"vue-data-ui-no-transition": !k(
|
|
1646
|
+
class: Ve({
|
|
1647
|
+
"vue-data-ui-fullscreen--on": vi.value,
|
|
1648
|
+
"vue-data-ui-fulscreen--off": !vi.value,
|
|
1649
|
+
"vue-data-ui-no-transition": !k(or)
|
|
1638
1650
|
}),
|
|
1639
1651
|
viewBox: `0 0 ${U.value.width <= 0 ? 10 : U.value.width} ${U.value.height <= 0 ? 10 : U.value.height}`,
|
|
1640
|
-
style:
|
|
1641
|
-
onMouseleave:
|
|
1652
|
+
style: He(`max-width:100%;overflow:visible;background:transparent;color:${V.value.color}`),
|
|
1653
|
+
onMouseleave: Di,
|
|
1642
1654
|
tabindex: "0",
|
|
1643
|
-
onFocus:
|
|
1644
|
-
onBlur:
|
|
1645
|
-
onKeydown:
|
|
1655
|
+
onFocus: Ki,
|
|
1656
|
+
onBlur: qi,
|
|
1657
|
+
onKeydown: Ji
|
|
1646
1658
|
}, [
|
|
1647
|
-
|
|
1659
|
+
Le(k(En)),
|
|
1648
1660
|
e.$slots["chart-background"] ? (w(), b("foreignObject", {
|
|
1649
1661
|
key: 0,
|
|
1650
1662
|
x: 0,
|
|
@@ -1652,8 +1664,8 @@ var Je = /* @__PURE__ */ e({ default: () => yn }), Ye = ["id"], Xe = ["id"], Ze
|
|
|
1652
1664
|
width: U.value.width <= 0 ? 10 : U.value.width,
|
|
1653
1665
|
height: U.value.height <= 0 ? 10 : U.value.height,
|
|
1654
1666
|
style: { pointerEvents: "none" }
|
|
1655
|
-
}, [D(e.$slots, "chart-background", {}, void 0, !0)], 8,
|
|
1656
|
-
V.value.layout.axis.show ? (w(), b("g",
|
|
1667
|
+
}, [D(e.$slots, "chart-background", {}, void 0, !0)], 8, nt)) : y("", !0),
|
|
1668
|
+
V.value.layout.axis.show ? (w(), b("g", rt, [x("line", {
|
|
1657
1669
|
x1: K.value.x,
|
|
1658
1670
|
x2: K.value.x,
|
|
1659
1671
|
y1: W.value.top,
|
|
@@ -1661,7 +1673,7 @@ var Je = /* @__PURE__ */ e({ default: () => yn }), Ye = ["id"], Xe = ["id"], Ze
|
|
|
1661
1673
|
stroke: V.value.layout.axis.stroke,
|
|
1662
1674
|
"stroke-width": V.value.layout.axis.strokeWidth,
|
|
1663
1675
|
"stroke-linecap": "round"
|
|
1664
|
-
}, null, 8,
|
|
1676
|
+
}, null, 8, it), x("line", {
|
|
1665
1677
|
x1: W.value.left,
|
|
1666
1678
|
x2: W.value.right,
|
|
1667
1679
|
y1: K.value.y,
|
|
@@ -1669,8 +1681,8 @@ var Je = /* @__PURE__ */ e({ default: () => yn }), Ye = ["id"], Xe = ["id"], Ze
|
|
|
1669
1681
|
stroke: V.value.layout.axis.stroke,
|
|
1670
1682
|
"stroke-width": V.value.layout.axis.strokeWidth,
|
|
1671
1683
|
"stroke-linecap": "round"
|
|
1672
|
-
}, null, 8,
|
|
1673
|
-
I.value.scales.verticalLines.show ? (w(), b("g",
|
|
1684
|
+
}, null, 8, at)])) : y("", !0),
|
|
1685
|
+
I.value.scales.verticalLines.show ? (w(), b("g", ot, [(w(!0), b(_, null, E(Br.value, (e, t) => (w(), b("line", {
|
|
1674
1686
|
key: `scatter-x-scale-line-${M.value}-${t}`,
|
|
1675
1687
|
x1: e.x,
|
|
1676
1688
|
x2: e.x,
|
|
@@ -1679,23 +1691,23 @@ var Je = /* @__PURE__ */ e({ default: () => yn }), Ye = ["id"], Xe = ["id"], Ze
|
|
|
1679
1691
|
stroke: I.value.scales.verticalLines.stroke,
|
|
1680
1692
|
"stroke-width": I.value.scales.verticalLines.strokeWidth,
|
|
1681
1693
|
"stroke-linecap": "round"
|
|
1682
|
-
}, null, 8,
|
|
1694
|
+
}, null, 8, st))), 128))])) : y("", !0),
|
|
1683
1695
|
I.value.scales.show ? (w(), b("g", {
|
|
1684
1696
|
key: 3,
|
|
1685
1697
|
ref_key: "xAxisScaleLabels",
|
|
1686
|
-
ref:
|
|
1687
|
-
}, [(w(!0), b(_, null, E(
|
|
1698
|
+
ref: er
|
|
1699
|
+
}, [(w(!0), b(_, null, E(Br.value, (e, t) => (w(), b("g", {
|
|
1688
1700
|
class: "vue-ui-scatter-scale-group",
|
|
1689
1701
|
key: `scatter-x-scale-${M.value}-${t}`,
|
|
1690
|
-
opacity: +!
|
|
1702
|
+
opacity: +!Hr.value
|
|
1691
1703
|
}, [x("path", {
|
|
1692
|
-
class:
|
|
1704
|
+
class: Ve({ "vue-data-ui-transition": k(or) }),
|
|
1693
1705
|
stroke: V.value.layout.axis.stroke,
|
|
1694
1706
|
"stroke-width": V.value.layout.axis.strokeWidth,
|
|
1695
1707
|
d: `M${e.x},${K.value.y - 4} ${e.x},${K.value.y + 4}`,
|
|
1696
1708
|
"stroke-linecap": "round"
|
|
1697
|
-
}, null, 10,
|
|
1698
|
-
class:
|
|
1709
|
+
}, null, 10, lt), x("text", {
|
|
1710
|
+
class: Ve({ "vue-data-ui-transition": k(or) }),
|
|
1699
1711
|
transform: `translate(${e.x}, ${K.value.y + I.value.scales.labels.fontSize + 6 + I.value.scales.labels.offsetY})`,
|
|
1700
1712
|
"text-anchor": "middle",
|
|
1701
1713
|
"font-size": I.value.scales.labels.fontSize,
|
|
@@ -1703,8 +1715,8 @@ var Je = /* @__PURE__ */ e({ default: () => yn }), Ye = ["id"], Xe = ["id"], Ze
|
|
|
1703
1715
|
stroke: V.value.backgroundColor,
|
|
1704
1716
|
"stroke-width": "2",
|
|
1705
1717
|
"paint-order": "stroke"
|
|
1706
|
-
}, O(e.label), 11,
|
|
1707
|
-
L.value.scales.horizontalLines.show ? (w(), b("g",
|
|
1718
|
+
}, O(e.label), 11, ut)], 8, ct))), 128))], 512)) : y("", !0),
|
|
1719
|
+
L.value.scales.horizontalLines.show ? (w(), b("g", dt, [(w(!0), b(_, null, E(Vr.value, (e, t) => (w(), b("line", {
|
|
1708
1720
|
key: `scatter-y-scale-line-${M.value}-${t}`,
|
|
1709
1721
|
x1: W.value.left,
|
|
1710
1722
|
x2: W.value.right,
|
|
@@ -1713,22 +1725,22 @@ var Je = /* @__PURE__ */ e({ default: () => yn }), Ye = ["id"], Xe = ["id"], Ze
|
|
|
1713
1725
|
stroke: L.value.scales.horizontalLines.stroke,
|
|
1714
1726
|
"stroke-width": L.value.scales.horizontalLines.strokeWidth,
|
|
1715
1727
|
"stroke-linecap": "round"
|
|
1716
|
-
}, null, 8,
|
|
1728
|
+
}, null, 8, ft))), 128))])) : y("", !0),
|
|
1717
1729
|
L.value.scales.show ? (w(), b("g", {
|
|
1718
1730
|
key: 5,
|
|
1719
1731
|
ref_key: "yAxisScaleLabels",
|
|
1720
|
-
ref:
|
|
1721
|
-
opacity: +!
|
|
1732
|
+
ref: $n,
|
|
1733
|
+
opacity: +!Ur.value,
|
|
1722
1734
|
style: { transition: "opacity 0.1s ease-in-out" },
|
|
1723
1735
|
class: "vue-ui-scatter-scale-group"
|
|
1724
|
-
}, [(w(!0), b(_, null, E(
|
|
1725
|
-
class:
|
|
1736
|
+
}, [(w(!0), b(_, null, E(Vr.value, (e, t) => (w(), b("g", { key: `scatter-y-scale-${M.value}-${t}` }, [x("path", {
|
|
1737
|
+
class: Ve({ "vue-data-ui-transition": k(or) }),
|
|
1726
1738
|
d: `M${K.value.x - 4},${e.y} ${K.value.x + 4},${e.y}`,
|
|
1727
1739
|
stroke: V.value.layout.axis.stroke,
|
|
1728
1740
|
"stroke-width": V.value.layout.axis.strokeWidth,
|
|
1729
1741
|
"stroke-linecap": "round"
|
|
1730
|
-
}, null, 10,
|
|
1731
|
-
class:
|
|
1742
|
+
}, null, 10, mt), x("text", {
|
|
1743
|
+
class: Ve({ "vue-data-ui-transition": k(or) }),
|
|
1732
1744
|
transform: `translate(${K.value.x - L.value.scales.labels.fontSize / 2 - 8 + L.value.scales.labels.offsetX}, ${e.y + L.value.scales.labels.fontSize / 3})`,
|
|
1733
1745
|
"text-anchor": "end",
|
|
1734
1746
|
"font-size": L.value.scales.labels.fontSize,
|
|
@@ -1736,9 +1748,9 @@ var Je = /* @__PURE__ */ e({ default: () => yn }), Ye = ["id"], Xe = ["id"], Ze
|
|
|
1736
1748
|
stroke: V.value.backgroundColor,
|
|
1737
1749
|
"stroke-width": "2",
|
|
1738
1750
|
"paint-order": "stroke"
|
|
1739
|
-
}, O(e.label), 11,
|
|
1740
|
-
R.value.show ? (w(), b("g",
|
|
1741
|
-
x("defs", null, [
|
|
1751
|
+
}, O(e.label), 11, ht)]))), 128))], 8, pt)) : y("", !0),
|
|
1752
|
+
R.value.show ? (w(), b("g", gt, [
|
|
1753
|
+
x("defs", null, [Le(Ee, {
|
|
1742
1754
|
t: "linear",
|
|
1743
1755
|
id: `marginal_x_${M.value}`,
|
|
1744
1756
|
x1: "0%",
|
|
@@ -1754,7 +1766,7 @@ var Je = /* @__PURE__ */ e({ default: () => yn }), Ye = ["id"], Xe = ["id"], Ze
|
|
|
1754
1766
|
V.value.backgroundColor,
|
|
1755
1767
|
1
|
|
1756
1768
|
]]
|
|
1757
|
-
}, null, 8, ["id", "stops"]),
|
|
1769
|
+
}, null, 8, ["id", "stops"]), Le(Ee, {
|
|
1758
1770
|
t: "linear",
|
|
1759
1771
|
id: `marginal_y_${M.value}`,
|
|
1760
1772
|
x1: "0%",
|
|
@@ -1779,11 +1791,11 @@ var Je = /* @__PURE__ */ e({ default: () => yn }), Ye = ["id"], Xe = ["id"], Ze
|
|
|
1779
1791
|
width: W.value.width / J.value <= 0 ? 1e-4 : W.value.width / J.value,
|
|
1780
1792
|
height: e / Y.value.maxX * R.value.size <= 0 ? 1e-4 : e / Y.value.maxX * R.value.size,
|
|
1781
1793
|
fill: R.value.useGradient ? `url(#marginal_x_${M.value})` : R.value.fill,
|
|
1782
|
-
style:
|
|
1794
|
+
style: He([`opacity:${R.value.opacity}`, { "pointer-events": "none" }]),
|
|
1783
1795
|
stroke: V.value.backgroundColor,
|
|
1784
1796
|
"stroke-width": R.value.strokeWidth,
|
|
1785
1797
|
rx: R.value.borderRadius
|
|
1786
|
-
}, null, 12,
|
|
1798
|
+
}, null, 12, _t)) : y("", !0),
|
|
1787
1799
|
Y.value.avgX[n] ? (w(), b("rect", {
|
|
1788
1800
|
key: 1,
|
|
1789
1801
|
x: Y.value.avgX[n] - W.value.width / J.value / 2,
|
|
@@ -1791,10 +1803,10 @@ var Je = /* @__PURE__ */ e({ default: () => yn }), Ye = ["id"], Xe = ["id"], Ze
|
|
|
1791
1803
|
width: W.value.width / J.value <= 0 ? 1e-4 : W.value.width / J.value,
|
|
1792
1804
|
height: Math.max(.1, R.value.size),
|
|
1793
1805
|
fill: "transparent",
|
|
1794
|
-
onMouseenter: (e) =>
|
|
1795
|
-
onMouseleave: t[0] ||= (e) =>
|
|
1796
|
-
}, null, 40,
|
|
1797
|
-
Y.value.avgX[n] &&
|
|
1806
|
+
onMouseenter: (e) => Ti(n),
|
|
1807
|
+
onMouseleave: t[0] ||= (e) => Di()
|
|
1808
|
+
}, null, 40, vt)) : y("", !0),
|
|
1809
|
+
Y.value.avgX[n] && Gn.value != null && Gn.value === n ? (w(), b("g", yt, [
|
|
1798
1810
|
x("rect", {
|
|
1799
1811
|
x: Y.value.avgX[n] - W.value.width / J.value / 2,
|
|
1800
1812
|
y: W.value.top,
|
|
@@ -1802,7 +1814,7 @@ var Je = /* @__PURE__ */ e({ default: () => yn }), Ye = ["id"], Xe = ["id"], Ze
|
|
|
1802
1814
|
height: W.value.height,
|
|
1803
1815
|
fill: R.value.highlighter.color,
|
|
1804
1816
|
"fill-opacity": R.value.highlighter.opacity
|
|
1805
|
-
}, null, 8,
|
|
1817
|
+
}, null, 8, bt),
|
|
1806
1818
|
x("line", {
|
|
1807
1819
|
x1: Y.value.avgX[n] - W.value.width / J.value / 2,
|
|
1808
1820
|
x2: Y.value.avgX[n] - W.value.width / J.value / 2,
|
|
@@ -1815,7 +1827,7 @@ var Je = /* @__PURE__ */ e({ default: () => yn }), Ye = ["id"], Xe = ["id"], Ze
|
|
|
1815
1827
|
transition: "none !important",
|
|
1816
1828
|
animation: "none !important"
|
|
1817
1829
|
}
|
|
1818
|
-
}, null, 8,
|
|
1830
|
+
}, null, 8, xt),
|
|
1819
1831
|
x("line", {
|
|
1820
1832
|
x1: Y.value.avgX[n] - W.value.width / J.value / 2 + (W.value.width / J.value <= 0 ? 1e-4 : W.value.width / J.value),
|
|
1821
1833
|
x2: Y.value.avgX[n] - W.value.width / J.value / 2 + (W.value.width / J.value <= 0 ? 1e-4 : W.value.width / J.value),
|
|
@@ -1828,7 +1840,7 @@ var Je = /* @__PURE__ */ e({ default: () => yn }), Ye = ["id"], Xe = ["id"], Ze
|
|
|
1828
1840
|
transition: "none !important",
|
|
1829
1841
|
animation: "none !important"
|
|
1830
1842
|
}
|
|
1831
|
-
}, null, 8,
|
|
1843
|
+
}, null, 8, St)
|
|
1832
1844
|
])) : y("", !0)
|
|
1833
1845
|
]))), 256)),
|
|
1834
1846
|
(w(!0), b(_, null, E(Y.value.y, (e, n) => (w(), b("g", null, [
|
|
@@ -1839,11 +1851,11 @@ var Je = /* @__PURE__ */ e({ default: () => yn }), Ye = ["id"], Xe = ["id"], Ze
|
|
|
1839
1851
|
height: W.value.height / J.value <= 0 ? 1e-4 : W.value.height / J.value,
|
|
1840
1852
|
width: e / Y.value.maxY * R.value.size <= 0 ? 1e-4 : e / Y.value.maxY * R.value.size,
|
|
1841
1853
|
fill: R.value.useGradient ? `url(#marginal_y_${M.value})` : R.value.fill,
|
|
1842
|
-
style:
|
|
1854
|
+
style: He([`opacity:${R.value.opacity}`, { "pointer-events": "none" }]),
|
|
1843
1855
|
stroke: V.value.backgroundColor,
|
|
1844
1856
|
"stroke-width": R.value.strokeWidth,
|
|
1845
1857
|
rx: R.value.borderRadius
|
|
1846
|
-
}, null, 12,
|
|
1858
|
+
}, null, 12, Ct)) : y("", !0),
|
|
1847
1859
|
Y.value.avgY[n] ? (w(), b("rect", {
|
|
1848
1860
|
key: 1,
|
|
1849
1861
|
x: W.value.right + R.value.offset,
|
|
@@ -1851,10 +1863,10 @@ var Je = /* @__PURE__ */ e({ default: () => yn }), Ye = ["id"], Xe = ["id"], Ze
|
|
|
1851
1863
|
width: Math.max(.1, R.value.size),
|
|
1852
1864
|
height: W.value.height / J.value <= 0 ? 1e-4 : W.value.height / J.value,
|
|
1853
1865
|
fill: "transparent",
|
|
1854
|
-
onMouseenter: (e) =>
|
|
1855
|
-
onMouseleave: t[1] ||= (e) =>
|
|
1856
|
-
}, null, 40,
|
|
1857
|
-
Y.value.avgY[n] &&
|
|
1866
|
+
onMouseenter: (e) => Ei(n),
|
|
1867
|
+
onMouseleave: t[1] ||= (e) => Di()
|
|
1868
|
+
}, null, 40, wt)) : y("", !0),
|
|
1869
|
+
Y.value.avgY[n] && Kn.value != null && Kn.value === n ? (w(), b("g", Tt, [
|
|
1858
1870
|
x("rect", {
|
|
1859
1871
|
x: W.value.left,
|
|
1860
1872
|
y: Y.value.avgY[n] - W.value.height / J.value / 2,
|
|
@@ -1862,7 +1874,7 @@ var Je = /* @__PURE__ */ e({ default: () => yn }), Ye = ["id"], Xe = ["id"], Ze
|
|
|
1862
1874
|
height: W.value.height / J.value <= 0 ? 1e-4 : W.value.height / J.value,
|
|
1863
1875
|
fill: R.value.highlighter.color,
|
|
1864
1876
|
"fill-opacity": R.value.highlighter.opacity
|
|
1865
|
-
}, null, 8,
|
|
1877
|
+
}, null, 8, Et),
|
|
1866
1878
|
x("line", {
|
|
1867
1879
|
x1: W.value.left,
|
|
1868
1880
|
x2: U.value.width,
|
|
@@ -1875,7 +1887,7 @@ var Je = /* @__PURE__ */ e({ default: () => yn }), Ye = ["id"], Xe = ["id"], Ze
|
|
|
1875
1887
|
transition: "none !important",
|
|
1876
1888
|
animation: "none !important"
|
|
1877
1889
|
}
|
|
1878
|
-
}, null, 8,
|
|
1890
|
+
}, null, 8, Dt),
|
|
1879
1891
|
x("line", {
|
|
1880
1892
|
x1: W.value.left,
|
|
1881
1893
|
x2: U.value.width,
|
|
@@ -1888,10 +1900,10 @@ var Je = /* @__PURE__ */ e({ default: () => yn }), Ye = ["id"], Xe = ["id"], Ze
|
|
|
1888
1900
|
transition: "none !important",
|
|
1889
1901
|
animation: "none !important"
|
|
1890
1902
|
}
|
|
1891
|
-
}, null, 8,
|
|
1903
|
+
}, null, 8, Ot)
|
|
1892
1904
|
])) : y("", !0)
|
|
1893
1905
|
]))), 256)),
|
|
1894
|
-
R.value.showLines ? (w(), b("g",
|
|
1906
|
+
R.value.showLines ? (w(), b("g", kt, [(w(!0), b(_, null, E(Qr.value, (e) => (w(), b(_, null, [
|
|
1895
1907
|
N.value.includes(e.id) ? y("", !0) : (w(), b("path", {
|
|
1896
1908
|
key: 0,
|
|
1897
1909
|
d: `M ${e.dX}`,
|
|
@@ -1900,7 +1912,7 @@ var Je = /* @__PURE__ */ e({ default: () => yn }), Ye = ["id"], Xe = ["id"], Ze
|
|
|
1900
1912
|
"stroke-linecap": "round",
|
|
1901
1913
|
"stroke-linejoin": "round",
|
|
1902
1914
|
fill: "none"
|
|
1903
|
-
}, null, 8,
|
|
1915
|
+
}, null, 8, At)),
|
|
1904
1916
|
N.value.includes(e.id) ? y("", !0) : (w(), b("path", {
|
|
1905
1917
|
key: 1,
|
|
1906
1918
|
d: `M ${e.dX}`,
|
|
@@ -1909,7 +1921,7 @@ var Je = /* @__PURE__ */ e({ default: () => yn }), Ye = ["id"], Xe = ["id"], Ze
|
|
|
1909
1921
|
"stroke-linecap": "round",
|
|
1910
1922
|
"stroke-linejoin": "round",
|
|
1911
1923
|
fill: "none"
|
|
1912
|
-
}, null, 8,
|
|
1924
|
+
}, null, 8, jt)),
|
|
1913
1925
|
N.value.includes(e.id) ? y("", !0) : (w(), b("path", {
|
|
1914
1926
|
key: 2,
|
|
1915
1927
|
d: `M ${e.dY}`,
|
|
@@ -1918,7 +1930,7 @@ var Je = /* @__PURE__ */ e({ default: () => yn }), Ye = ["id"], Xe = ["id"], Ze
|
|
|
1918
1930
|
"stroke-linecap": "round",
|
|
1919
1931
|
"stroke-linejoin": "round",
|
|
1920
1932
|
fill: "none"
|
|
1921
|
-
}, null, 8,
|
|
1933
|
+
}, null, 8, Mt)),
|
|
1922
1934
|
N.value.includes(e.id) ? y("", !0) : (w(), b("path", {
|
|
1923
1935
|
key: 3,
|
|
1924
1936
|
d: `M ${e.dY}`,
|
|
@@ -1927,20 +1939,20 @@ var Je = /* @__PURE__ */ e({ default: () => yn }), Ye = ["id"], Xe = ["id"], Ze
|
|
|
1927
1939
|
"stroke-linecap": "round",
|
|
1928
1940
|
"stroke-linejoin": "round",
|
|
1929
1941
|
fill: "none"
|
|
1930
|
-
}, null, 8,
|
|
1942
|
+
}, null, 8, Nt))
|
|
1931
1943
|
], 64))), 256))])) : y("", !0)
|
|
1932
1944
|
])) : y("", !0),
|
|
1933
|
-
z.value.giftWrap.show ? (w(), b("g",
|
|
1945
|
+
z.value.giftWrap.show ? (w(), b("g", Pt, [(w(!0), b(_, null, E(q.value, (e, t) => (w(), b("g", null, [e.plots.length > 2 ? (w(), b("polygon", {
|
|
1934
1946
|
key: 0,
|
|
1935
|
-
points: k(
|
|
1947
|
+
points: k(le)({ series: e.plots }),
|
|
1936
1948
|
fill: k(d)(e.color, z.value.giftWrap.fillOpacity * 100),
|
|
1937
1949
|
"stroke-width": z.value.giftWrap.strokeWidth,
|
|
1938
1950
|
"stroke-dasharray": z.value.giftWrap.strokeDasharray,
|
|
1939
1951
|
stroke: e.color,
|
|
1940
1952
|
"stroke-linejoin": "round",
|
|
1941
1953
|
"stroke-linecap": "round"
|
|
1942
|
-
}, null, 8,
|
|
1943
|
-
P.value.usePerformanceMode ? y("", !0) : (w(!0), b(_, { key: 8 }, E(q.value, (e, t) => (w(), b("g", { key: e.id }, [!e.shape || e.shape === "circle" ? (w(), b("g",
|
|
1954
|
+
}, null, 8, Ft)) : y("", !0)]))), 256))])) : y("", !0),
|
|
1955
|
+
P.value.usePerformanceMode ? y("", !0) : (w(!0), b(_, { key: 8 }, E(q.value, (e, t) => (w(), b("g", { key: e.id }, [!e.shape || e.shape === "circle" ? (w(), b("g", It, [(w(!0), b(_, null, E(e.plots, (n, r) => (w(), b("circle", {
|
|
1944
1956
|
key: n.id,
|
|
1945
1957
|
cx: n.x,
|
|
1946
1958
|
cy: n.y,
|
|
@@ -1948,11 +1960,11 @@ var Je = /* @__PURE__ */ e({ default: () => yn }), Ye = ["id"], Xe = ["id"], Ze
|
|
|
1948
1960
|
fill: k(d)(e.color, X.value && X.value !== n.id || Q.value.length && !Q.value.includes(n.id) ? z.value.opacityNotSelected * 100 : z.value.opacity * 100),
|
|
1949
1961
|
stroke: z.value.stroke,
|
|
1950
1962
|
"stroke-width": z.value.strokeWidth,
|
|
1951
|
-
style:
|
|
1952
|
-
onMouseover: (e) =>
|
|
1953
|
-
onMouseleave: (e) =>
|
|
1954
|
-
onClick: (e) =>
|
|
1955
|
-
}, null, 44,
|
|
1963
|
+
style: He(`opacity:${X.value && X.value === n.id || Q.value.includes(n.id) ? 1 : z.value.significance.useDistanceOpacity ? 1 - Math.abs(n.deviation) / Yr.value : z.value.significance.show && Math.abs(n.deviation) > z.value.significance.deviationThreshold ? z.value.significance.opacity : 1}`),
|
|
1964
|
+
onMouseover: (e) => ci(n, t, "pointer", Zi.value.get(n.id)),
|
|
1965
|
+
onMouseleave: (e) => li(n, t),
|
|
1966
|
+
onClick: (e) => ui(n, t)
|
|
1967
|
+
}, null, 44, Lt))), 128))])) : (w(), b("g", Rt, [(w(!0), b(_, null, E(e.plots, (n, r) => (w(), Pe(Se, {
|
|
1956
1968
|
class: "vue-ui-scatter-datapoint",
|
|
1957
1969
|
plot: {
|
|
1958
1970
|
x: n.x,
|
|
@@ -1963,10 +1975,10 @@ var Je = /* @__PURE__ */ e({ default: () => yn }), Ye = ["id"], Xe = ["id"], Ze
|
|
|
1963
1975
|
color: k(d)(e.color, X.value && X.value !== n.id || Q.value.length && !Q.value.includes(n.id) ? z.value.opacityNotSelected * 100 : z.value.opacity * 100),
|
|
1964
1976
|
stroke: z.value.stroke,
|
|
1965
1977
|
strokeWidth: z.value.strokeWidth,
|
|
1966
|
-
style:
|
|
1967
|
-
onMouseover: (e) =>
|
|
1968
|
-
onMouseleave: (e) =>
|
|
1969
|
-
onClick: (e) =>
|
|
1978
|
+
style: He(`opacity:${X.value && X.value === n.id || Q.value.includes(n.id) ? 1 : z.value.significance.useDistanceOpacity ? 1 - Math.abs(n.deviation) / Yr.value : z.value.significance.show && Math.abs(n.deviation) > z.value.significance.deviationThreshold ? z.value.significance.opacity : 1}`),
|
|
1979
|
+
onMouseover: (e) => ci(n, t, "pointer", Zi.value.get(n.id)),
|
|
1980
|
+
onMouseleave: (e) => li(n, t),
|
|
1981
|
+
onClick: (e) => ui(n, t)
|
|
1970
1982
|
}, null, 8, [
|
|
1971
1983
|
"plot",
|
|
1972
1984
|
"radius",
|
|
@@ -1985,12 +1997,12 @@ var Je = /* @__PURE__ */ e({ default: () => yn }), Ye = ["id"], Xe = ["id"], Ze
|
|
|
1985
1997
|
"text-anchor": "middle",
|
|
1986
1998
|
"font-size": z.value.name.fontSize,
|
|
1987
1999
|
fill: k(d)(z.value.name.color, X.value && X.value !== e.id || Q.value.length && !Q.value.includes(e.id) ? z.value.opacityNotSelected * 100 : 100),
|
|
1988
|
-
onMouseover: (n) =>
|
|
1989
|
-
onMouseleave: (n) =>
|
|
1990
|
-
onClick: (n) =>
|
|
1991
|
-
}, O(e.clusterName), 41,
|
|
2000
|
+
onMouseover: (n) => ci(e, t, "pointer", Zi.value.get(e.id)),
|
|
2001
|
+
onMouseleave: (n) => li(e, t),
|
|
2002
|
+
onClick: (n) => ui(e, t)
|
|
2003
|
+
}, O(e.clusterName), 41, zt))), 128)) : y("", !0)]))), 128)),
|
|
1992
2004
|
P.value.usePerformanceMode ? (w(), b(_, { key: 9 }, [
|
|
1993
|
-
x("g", { "clip-path": `url(#clip_path_${M.value})` }, [(w(!0), b(_, null, E(
|
|
2005
|
+
x("g", { "clip-path": `url(#clip_path_${M.value})` }, [(w(!0), b(_, null, E(Ai.value, (e) => (w(), b("path", {
|
|
1994
2006
|
key: e.id,
|
|
1995
2007
|
d: e.d,
|
|
1996
2008
|
fill: e.fill,
|
|
@@ -1999,15 +2011,15 @@ var Je = /* @__PURE__ */ e({ default: () => yn }), Ye = ["id"], Xe = ["id"], Ze
|
|
|
1999
2011
|
"stroke-opacity": e.strokeOpacity,
|
|
2000
2012
|
"vector-effect": "non-scaling-stroke",
|
|
2001
2013
|
"paint-order": "fill"
|
|
2002
|
-
}, null, 8,
|
|
2003
|
-
Z.value && z.value.selectors.show ? (w(), b("g",
|
|
2014
|
+
}, null, 8, Vt))), 128))], 8, Bt),
|
|
2015
|
+
Z.value && z.value.selectors.show ? (w(), b("g", Ht, [Le(Se, {
|
|
2004
2016
|
shape: Z.value.shape || "circle",
|
|
2005
2017
|
color: Z.value.color,
|
|
2006
2018
|
plot: {
|
|
2007
2019
|
x: Z.value.x,
|
|
2008
2020
|
y: Z.value.y
|
|
2009
2021
|
},
|
|
2010
|
-
radius: Math.max(4 *
|
|
2022
|
+
radius: Math.max(4 * Oi[Z.value.shape || "circle"], Z.value.weight * z.value.hoverRadiusRatio),
|
|
2011
2023
|
stroke: z.value.stroke,
|
|
2012
2024
|
strokeWidth: z.value.strokeWidth
|
|
2013
2025
|
}, null, 8, [
|
|
@@ -2024,12 +2036,12 @@ var Je = /* @__PURE__ */ e({ default: () => yn }), Ye = ["id"], Xe = ["id"], Ze
|
|
|
2024
2036
|
width: Math.max(1e-4, W.value.width),
|
|
2025
2037
|
height: Math.max(1e-4, W.value.height),
|
|
2026
2038
|
fill: "transparent",
|
|
2027
|
-
onMousemove: t[2] ||= (...e) => k(
|
|
2028
|
-
onMouseleave:
|
|
2029
|
-
onClick:
|
|
2030
|
-
}, null, 40,
|
|
2039
|
+
onMousemove: t[2] ||= (...e) => k(Mi) && k(Mi)(...e),
|
|
2040
|
+
onMouseleave: Ni,
|
|
2041
|
+
onClick: Pi
|
|
2042
|
+
}, null, 40, Ut)
|
|
2031
2043
|
], 64)) : y("", !0),
|
|
2032
|
-
(w(!0), b(_, null, E(
|
|
2044
|
+
(w(!0), b(_, null, E(ai.value, (e) => (w(), b(_, { key: `selector_${e.id}` }, [z.value.selectors.show ? (w(), b("g", Wt, [
|
|
2033
2045
|
x("line", {
|
|
2034
2046
|
x1: K.value.x,
|
|
2035
2047
|
x2: e.x,
|
|
@@ -2040,7 +2052,7 @@ var Je = /* @__PURE__ */ e({ default: () => yn }), Ye = ["id"], Xe = ["id"], Ze
|
|
|
2040
2052
|
"stroke-dasharray": z.value.selectors.strokeDasharray,
|
|
2041
2053
|
"stroke-linecap": "round",
|
|
2042
2054
|
class: "line-pointer"
|
|
2043
|
-
}, null, 8,
|
|
2055
|
+
}, null, 8, Gt),
|
|
2044
2056
|
x("line", {
|
|
2045
2057
|
x1: e.x,
|
|
2046
2058
|
x2: e.x,
|
|
@@ -2051,7 +2063,7 @@ var Je = /* @__PURE__ */ e({ default: () => yn }), Ye = ["id"], Xe = ["id"], Ze
|
|
|
2051
2063
|
"stroke-dasharray": z.value.selectors.strokeDasharray,
|
|
2052
2064
|
"stroke-linecap": "round",
|
|
2053
2065
|
class: "line-pointer"
|
|
2054
|
-
}, null, 8,
|
|
2066
|
+
}, null, 8, Kt),
|
|
2055
2067
|
L.value.scales.show ? y("", !0) : (w(), b("text", {
|
|
2056
2068
|
key: 0,
|
|
2057
2069
|
x: K.value.x + (e.x > K.value.x ? -6 : 6),
|
|
@@ -2065,7 +2077,7 @@ var Je = /* @__PURE__ */ e({ default: () => yn }), Ye = ["id"], Xe = ["id"], Ze
|
|
|
2065
2077
|
v: k(h)(e.v.y),
|
|
2066
2078
|
s: z.value.selectors.labels.suffix,
|
|
2067
2079
|
r: z.value.selectors.labels.rounding
|
|
2068
|
-
}), { datapoint: e })), 9,
|
|
2080
|
+
}), { datapoint: e })), 9, qt)),
|
|
2069
2081
|
I.value.scales.show ? y("", !0) : (w(), b("text", {
|
|
2070
2082
|
key: 1,
|
|
2071
2083
|
x: e.x,
|
|
@@ -2079,7 +2091,7 @@ var Je = /* @__PURE__ */ e({ default: () => yn }), Ye = ["id"], Xe = ["id"], Ze
|
|
|
2079
2091
|
v: k(h)(e.v.x),
|
|
2080
2092
|
s: z.value.selectors.labels.suffix,
|
|
2081
2093
|
r: z.value.selectors.labels.rounding
|
|
2082
|
-
}), { datapoint: e })), 9,
|
|
2094
|
+
}), { datapoint: e })), 9, Jt)),
|
|
2083
2095
|
I.value.scales.show ? (w(), b("text", {
|
|
2084
2096
|
key: 2,
|
|
2085
2097
|
x: e.x,
|
|
@@ -2087,7 +2099,7 @@ var Je = /* @__PURE__ */ e({ default: () => yn }), Ye = ["id"], Xe = ["id"], Ze
|
|
|
2087
2099
|
"text-anchor": "middle",
|
|
2088
2100
|
"font-size": I.value.scales.labels.fontSize,
|
|
2089
2101
|
fill: I.value.scales.labels.color
|
|
2090
|
-
}, O(
|
|
2102
|
+
}, O(oi(e)), 9, Yt)) : y("", !0),
|
|
2091
2103
|
L.value.scales.show ? (w(), b("text", {
|
|
2092
2104
|
key: 3,
|
|
2093
2105
|
x: K.value.x - L.value.scales.labels.fontSize / 2 - 8 + L.value.scales.labels.offsetX,
|
|
@@ -2095,7 +2107,7 @@ var Je = /* @__PURE__ */ e({ default: () => yn }), Ye = ["id"], Xe = ["id"], Ze
|
|
|
2095
2107
|
"text-anchor": "end",
|
|
2096
2108
|
"font-size": L.value.scales.labels.fontSize,
|
|
2097
2109
|
fill: L.value.scales.labels.color
|
|
2098
|
-
}, O(
|
|
2110
|
+
}, O(si(e)), 9, Xt)) : y("", !0),
|
|
2099
2111
|
x("circle", {
|
|
2100
2112
|
cx: K.value.x,
|
|
2101
2113
|
cy: e.y,
|
|
@@ -2104,7 +2116,7 @@ var Je = /* @__PURE__ */ e({ default: () => yn }), Ye = ["id"], Xe = ["id"], Ze
|
|
|
2104
2116
|
stroke: z.value.selectors.markers.stroke,
|
|
2105
2117
|
"stroke-width": z.value.selectors.markers.strokeWidth,
|
|
2106
2118
|
class: "line-pointer"
|
|
2107
|
-
}, null, 8,
|
|
2119
|
+
}, null, 8, Zt),
|
|
2108
2120
|
x("circle", {
|
|
2109
2121
|
cx: e.x,
|
|
2110
2122
|
cy: K.value.y,
|
|
@@ -2113,7 +2125,7 @@ var Je = /* @__PURE__ */ e({ default: () => yn }), Ye = ["id"], Xe = ["id"], Ze
|
|
|
2113
2125
|
stroke: z.value.selectors.markers.stroke,
|
|
2114
2126
|
"stroke-width": z.value.selectors.markers.strokeWidth,
|
|
2115
2127
|
class: "line-pointer"
|
|
2116
|
-
}, null, 8,
|
|
2128
|
+
}, null, 8, Qt),
|
|
2117
2129
|
z.value.selectors.labels.showName && !z.value.name.show ? (w(), b("text", {
|
|
2118
2130
|
key: 4,
|
|
2119
2131
|
x: e.x,
|
|
@@ -2122,12 +2134,12 @@ var Je = /* @__PURE__ */ e({ default: () => yn }), Ye = ["id"], Xe = ["id"], Ze
|
|
|
2122
2134
|
fill: z.value.selectors.labels.color,
|
|
2123
2135
|
"font-weight": z.value.selectors.labels.bold ? "bold" : "normal",
|
|
2124
2136
|
"text-anchor": e.x < W.value.left + 100 ? "start" : e.x > W.value.right - 100 ? "end" : e.x > K.value.x ? "start" : "end"
|
|
2125
|
-
}, O(e.v.name), 9,
|
|
2137
|
+
}, O(e.v.name), 9, $t)) : y("", !0)
|
|
2126
2138
|
])) : y("", !0)], 64))), 128)),
|
|
2127
2139
|
I.value.show ? (w(), b("g", {
|
|
2128
2140
|
key: 10,
|
|
2129
2141
|
ref_key: "xAxisLabelLeft",
|
|
2130
|
-
ref:
|
|
2142
|
+
ref: Yn
|
|
2131
2143
|
}, [x("text", {
|
|
2132
2144
|
id: `vue-ui-scatter-xAxis-label-${M.value}`,
|
|
2133
2145
|
transform: `translate(${I.value.fontSize + (V.value.layout.dataLabels.reverseAxisLabels ? L.value.offsetX : I.value.offsetX)}, ${W.value.top + W.value.height / 2 + (V.value.layout.dataLabels.reverseAxisLabels ? L.value.offsetY : I.value.offsetY)}), rotate(-90)`,
|
|
@@ -2135,7 +2147,7 @@ var Je = /* @__PURE__ */ e({ default: () => yn }), Ye = ["id"], Xe = ["id"], Ze
|
|
|
2135
2147
|
"font-size": I.value.fontSize,
|
|
2136
2148
|
"font-weight": I.value.bold ? "bold" : "normal",
|
|
2137
2149
|
fill: I.value.color
|
|
2138
|
-
}, O(V.value.layout.dataLabels.reverseAxisLabels ? L.value.name : I.value.name), 9,
|
|
2150
|
+
}, O(V.value.layout.dataLabels.reverseAxisLabels ? L.value.name : I.value.name), 9, en), I.value.showValue ? (w(), b("text", {
|
|
2139
2151
|
key: 0,
|
|
2140
2152
|
"text-anchor": "middle",
|
|
2141
2153
|
"font-size": I.value.fontSize,
|
|
@@ -2146,11 +2158,11 @@ var Je = /* @__PURE__ */ e({ default: () => yn }), Ye = ["id"], Xe = ["id"], Ze
|
|
|
2146
2158
|
v: k(h)(G.value.xMin),
|
|
2147
2159
|
s: z.value.selectors.labels.suffix,
|
|
2148
2160
|
r: V.value.layout.dataLabels.xAxis.rounding
|
|
2149
|
-
}))), 9,
|
|
2161
|
+
}))), 9, tn)) : y("", !0)], 512)) : y("", !0),
|
|
2150
2162
|
I.value.show && I.value.showValue ? (w(), b("text", {
|
|
2151
2163
|
key: 11,
|
|
2152
2164
|
ref_key: "xAxisLabelRight",
|
|
2153
|
-
ref:
|
|
2165
|
+
ref: Xn,
|
|
2154
2166
|
"text-anchor": "middle",
|
|
2155
2167
|
transform: `translate(${W.value.right + V.value.layout.padding.right + 6}, ${K.value.y + I.value.fontSize / 3}), rotate(-90)`,
|
|
2156
2168
|
"font-size": I.value.fontSize,
|
|
@@ -2160,11 +2172,11 @@ var Je = /* @__PURE__ */ e({ default: () => yn }), Ye = ["id"], Xe = ["id"], Ze
|
|
|
2160
2172
|
v: k(h)(G.value.xMax),
|
|
2161
2173
|
s: z.value.selectors.labels.suffix,
|
|
2162
2174
|
r: I.value.rounding
|
|
2163
|
-
}))), 9,
|
|
2175
|
+
}))), 9, nn)) : y("", !0),
|
|
2164
2176
|
L.value.show && L.value.showValue ? (w(), b("text", {
|
|
2165
2177
|
key: 12,
|
|
2166
2178
|
ref_key: "yAxisLabelTop",
|
|
2167
|
-
ref:
|
|
2179
|
+
ref: Zn,
|
|
2168
2180
|
x: K.value.x,
|
|
2169
2181
|
y: W.value.top - L.value.fontSize,
|
|
2170
2182
|
"text-anchor": "middle",
|
|
@@ -2175,11 +2187,11 @@ var Je = /* @__PURE__ */ e({ default: () => yn }), Ye = ["id"], Xe = ["id"], Ze
|
|
|
2175
2187
|
v: k(h)(G.value.yMax),
|
|
2176
2188
|
s: z.value.selectors.labels.suffix,
|
|
2177
2189
|
r: L.value.rounding
|
|
2178
|
-
}))), 9,
|
|
2190
|
+
}))), 9, rn)) : y("", !0),
|
|
2179
2191
|
L.value.show ? (w(), b("g", {
|
|
2180
2192
|
key: 13,
|
|
2181
2193
|
ref_key: "yAxisLabelBottom",
|
|
2182
|
-
ref:
|
|
2194
|
+
ref: Qn
|
|
2183
2195
|
}, [L.value.showValue ? (w(), b("text", {
|
|
2184
2196
|
key: 0,
|
|
2185
2197
|
x: K.value.x,
|
|
@@ -2192,21 +2204,21 @@ var Je = /* @__PURE__ */ e({ default: () => yn }), Ye = ["id"], Xe = ["id"], Ze
|
|
|
2192
2204
|
v: k(h)(G.value.yMin),
|
|
2193
2205
|
s: z.value.selectors.labels.suffix,
|
|
2194
2206
|
r: V.value.layout.dataLabels.yAxis.rounding
|
|
2195
|
-
}))), 9,
|
|
2207
|
+
}))), 9, an)) : y("", !0), x("text", {
|
|
2196
2208
|
"text-anchor": "middle",
|
|
2197
2209
|
"font-size": L.value.fontSize,
|
|
2198
2210
|
"font-weight": L.value.bold ? "bold" : "normal",
|
|
2199
2211
|
fill: L.value.color,
|
|
2200
2212
|
x: W.value.left + W.value.width / 2 + (V.value.layout.dataLabels.reverseAxisLabels ? I.value.offsetX : L.value.offsetX),
|
|
2201
2213
|
y: U.value.height + (V.value.layout.dataLabels.reverseAxisLabels ? I.value.offsetY : L.value.offsetY)
|
|
2202
|
-
}, O(V.value.layout.dataLabels.reverseAxisLabels ? I.value.name : L.value.name), 9,
|
|
2214
|
+
}, O(V.value.layout.dataLabels.reverseAxisLabels ? I.value.name : L.value.name), 9, on)], 512)) : y("", !0),
|
|
2203
2215
|
x("clipPath", { id: `clip_path_${M.value}` }, [x("rect", {
|
|
2204
2216
|
x: W.value.left,
|
|
2205
2217
|
y: W.value.top,
|
|
2206
2218
|
width: W.value.width <= 0 ? 1e-4 : W.value.width,
|
|
2207
2219
|
height: W.value.height <= 0 ? 1e-4 : W.value.height
|
|
2208
|
-
}, null, 8,
|
|
2209
|
-
V.value.layout.correlation.show ? (w(), b("g",
|
|
2220
|
+
}, null, 8, cn)], 8, sn),
|
|
2221
|
+
V.value.layout.correlation.show ? (w(), b("g", ln, [(w(!0), b(_, null, E(q.value.filter((e) => e.correlation), (e, t) => (w(), b("line", {
|
|
2210
2222
|
x1: e.correlation.x1,
|
|
2211
2223
|
x2: e.correlation.x2,
|
|
2212
2224
|
y1: e.correlation.y1,
|
|
@@ -2215,7 +2227,7 @@ var Je = /* @__PURE__ */ e({ default: () => yn }), Ye = ["id"], Xe = ["id"], Ze
|
|
|
2215
2227
|
stroke: e.color,
|
|
2216
2228
|
"stroke-width": V.value.layout.correlation.strokeWidth,
|
|
2217
2229
|
"clip-path": `url(#clip_path_${M.value})`
|
|
2218
|
-
}, null, 8,
|
|
2230
|
+
}, null, 8, un))), 256)), (w(!0), b(_, null, E(q.value.filter((e) => e.correlation), (e, t) => (w(), b("g", null, [V.value.layout.correlation.label.show ? (w(), b("text", {
|
|
2219
2231
|
key: 0,
|
|
2220
2232
|
x: e.correlation.x2,
|
|
2221
2233
|
y: e.correlation.y2,
|
|
@@ -2226,48 +2238,48 @@ var Je = /* @__PURE__ */ e({ default: () => yn }), Ye = ["id"], Xe = ["id"], Ze
|
|
|
2226
2238
|
}, O(k(f)({
|
|
2227
2239
|
v: k(h)(e.correlation?.coefficient ?? 0),
|
|
2228
2240
|
r: V.value.layout.correlation.label.roundingValue
|
|
2229
|
-
})), 9,
|
|
2241
|
+
})), 9, dn)) : y("", !0)]))), 256))])) : y("", !0),
|
|
2230
2242
|
D(e.$slots, "svg", { svg: {
|
|
2231
2243
|
...U.value,
|
|
2232
2244
|
drawingArea: {
|
|
2233
2245
|
...W.value,
|
|
2234
2246
|
zero: K.value
|
|
2235
2247
|
},
|
|
2236
|
-
data:
|
|
2237
|
-
isPrintingImg: k(
|
|
2238
|
-
isPrintingSvg: k(
|
|
2248
|
+
data: Jr.value,
|
|
2249
|
+
isPrintingImg: k(wr) || k(Tr) || k(Bi),
|
|
2250
|
+
isPrintingSvg: k(Vi)
|
|
2239
2251
|
} }, void 0, !0)
|
|
2240
|
-
], 46,
|
|
2252
|
+
], 46, tt)), e.$slots.hint ? (w(), b("div", fn, [D(e.$slots, "hint", C(S({
|
|
2241
2253
|
hint: P.value.a11y.translations.keyboardNavigation,
|
|
2242
|
-
isVisible:
|
|
2254
|
+
isVisible: ir.value
|
|
2243
2255
|
})), void 0, !0)])) : y("", !0)]),
|
|
2244
|
-
e.$slots.watermark ? (w(), b("div",
|
|
2245
|
-
x("div", { id: `legend-bottom-${M.value}` }, null, 8,
|
|
2246
|
-
|
|
2256
|
+
e.$slots.watermark ? (w(), b("div", pn, [D(e.$slots, "watermark", C(S({ isPrinting: k(wr) || k(Tr) || k(Bi) || k(Vi) })), void 0, !0)])) : y("", !0),
|
|
2257
|
+
x("div", { id: `legend-bottom-${M.value}` }, null, 8, mn),
|
|
2258
|
+
Mn.value && Wn.value && (V.value.legend.show || e.$slots.legend) ? (w(), Pe(Ne, {
|
|
2247
2259
|
key: 7,
|
|
2248
2260
|
to: V.value.legend.position === "top" ? `#legend-top-${M.value}` : `#legend-bottom-${M.value}`
|
|
2249
2261
|
}, [x("div", {
|
|
2250
2262
|
ref_key: "chartLegend",
|
|
2251
|
-
ref:
|
|
2252
|
-
}, [D(e.$slots, "legend", { legend:
|
|
2253
|
-
key: `legend_${
|
|
2254
|
-
legendSet:
|
|
2255
|
-
config:
|
|
2256
|
-
isCursorPointer:
|
|
2257
|
-
onClickMarker: t[3] ||= ({ legend: e }) =>
|
|
2263
|
+
ref: Rn
|
|
2264
|
+
}, [D(e.$slots, "legend", { legend: Kr.value }, () => [V.value.legend.show ? (w(), Pe(je, {
|
|
2265
|
+
key: `legend_${Un.value}`,
|
|
2266
|
+
legendSet: Kr.value,
|
|
2267
|
+
config: qr.value,
|
|
2268
|
+
isCursorPointer: sr.value,
|
|
2269
|
+
onClickMarker: t[3] ||= ({ legend: e }) => fi(e.id)
|
|
2258
2270
|
}, {
|
|
2259
2271
|
item: A(({ legend: e }) => [x("div", {
|
|
2260
2272
|
onClick: (t) => e.segregate(),
|
|
2261
|
-
style:
|
|
2262
|
-
}, O(e.name), 13,
|
|
2263
|
-
legendToggle: A(() => [
|
|
2273
|
+
style: He(`opacity:${N.value.includes(e.id) ? .5 : 1}`)
|
|
2274
|
+
}, O(e.name), 13, hn)]),
|
|
2275
|
+
legendToggle: A(() => [Kr.value.length > 2 && V.value.legend.selectAllToggle.show && !k(ur) ? (w(), Pe(De, {
|
|
2264
2276
|
key: 0,
|
|
2265
2277
|
backgroundColor: V.value.legend.selectAllToggle.backgroundColor,
|
|
2266
2278
|
color: V.value.legend.selectAllToggle.color,
|
|
2267
2279
|
fontSize: V.value.legend.fontSize,
|
|
2268
2280
|
checked: N.value.length > 0,
|
|
2269
|
-
isCursorPointer:
|
|
2270
|
-
onToggle:
|
|
2281
|
+
isCursorPointer: sr.value,
|
|
2282
|
+
onToggle: di
|
|
2271
2283
|
}, null, 8, [
|
|
2272
2284
|
"backgroundColor",
|
|
2273
2285
|
"color",
|
|
@@ -2284,12 +2296,12 @@ var Je = /* @__PURE__ */ e({ default: () => yn }), Ye = ["id"], Xe = ["id"], Ze
|
|
|
2284
2296
|
e.$slots.source ? (w(), b("div", {
|
|
2285
2297
|
key: 8,
|
|
2286
2298
|
ref_key: "source",
|
|
2287
|
-
ref:
|
|
2299
|
+
ref: zn,
|
|
2288
2300
|
dir: "auto"
|
|
2289
2301
|
}, [D(e.$slots, "source", {}, void 0, !0)], 512)) : y("", !0),
|
|
2290
|
-
|
|
2302
|
+
Le(k(bn), {
|
|
2291
2303
|
teleportTo: B.value.teleportTo,
|
|
2292
|
-
show: H.value.showTooltip &&
|
|
2304
|
+
show: H.value.showTooltip && Nn.value,
|
|
2293
2305
|
backgroundColor: B.value.backgroundColor,
|
|
2294
2306
|
color: B.value.color,
|
|
2295
2307
|
borderRadius: B.value.borderRadius,
|
|
@@ -2300,21 +2312,21 @@ var Je = /* @__PURE__ */ e({ default: () => yn }), Ye = ["id"], Xe = ["id"], Ze
|
|
|
2300
2312
|
position: B.value.position,
|
|
2301
2313
|
offsetX: B.value.offsetX,
|
|
2302
2314
|
offsetY: B.value.offsetY,
|
|
2303
|
-
parent:
|
|
2304
|
-
content:
|
|
2305
|
-
isFullscreen:
|
|
2315
|
+
parent: In.value,
|
|
2316
|
+
content: Pn.value,
|
|
2317
|
+
isFullscreen: vi.value,
|
|
2306
2318
|
isCustom: B.value.customFormat && typeof B.value.customFormat == "function",
|
|
2307
2319
|
smooth: B.value.smooth,
|
|
2308
2320
|
backdropFilter: B.value.backdropFilter,
|
|
2309
2321
|
smoothForce: B.value.smoothForce,
|
|
2310
2322
|
smoothSnapThreshold: B.value.smoothSnapThreshold,
|
|
2311
|
-
isA11yMode:
|
|
2312
|
-
a11yPosition:
|
|
2323
|
+
isA11yMode: rr.value === "keyboard",
|
|
2324
|
+
a11yPosition: nr.value
|
|
2313
2325
|
}, {
|
|
2314
|
-
"tooltip-before": A(() => [D(e.$slots, "tooltip-before", C(S({
|
|
2315
|
-
tooltip: A(() => [D(e.$slots, "tooltip", C(S({
|
|
2316
|
-
"tooltip-after": A(() => [D(e.$slots, "tooltip-after", C(S({
|
|
2317
|
-
default: A(() => [B.value.showShape ? (w(), b("div",
|
|
2326
|
+
"tooltip-before": A(() => [D(e.$slots, "tooltip-before", C(S({ ...$r.value })), void 0, !0)]),
|
|
2327
|
+
tooltip: A(() => [D(e.$slots, "tooltip", C(S({ ...$r.value })), void 0, !0)]),
|
|
2328
|
+
"tooltip-after": A(() => [D(e.$slots, "tooltip-after", C(S({ ...$r.value })), void 0, !0)]),
|
|
2329
|
+
default: A(() => [B.value.showShape ? (w(), b("div", gn, [(w(), b("svg", _n, [Le(Se, {
|
|
2318
2330
|
shape: Z.value.shape,
|
|
2319
2331
|
color: Z.value.color,
|
|
2320
2332
|
plot: {
|
|
@@ -2348,27 +2360,27 @@ var Je = /* @__PURE__ */ e({ default: () => yn }), Ye = ["id"], Xe = ["id"], Ze
|
|
|
2348
2360
|
"isA11yMode",
|
|
2349
2361
|
"a11yPosition"
|
|
2350
2362
|
]),
|
|
2351
|
-
|
|
2363
|
+
Mn.value && F.value.buttons.table ? (w(), Pe(Ge(Fi.value.component), ze({ key: 9 }, Fi.value.props, {
|
|
2352
2364
|
ref_key: "tableUnit",
|
|
2353
|
-
ref:
|
|
2354
|
-
onClose:
|
|
2355
|
-
}),
|
|
2356
|
-
content: A(() => [(w(),
|
|
2357
|
-
key: `table_${
|
|
2358
|
-
colNames:
|
|
2359
|
-
head:
|
|
2360
|
-
body:
|
|
2361
|
-
config:
|
|
2362
|
-
title: P.value.table.useDialog ? "" :
|
|
2365
|
+
ref: qn,
|
|
2366
|
+
onClose: Ii
|
|
2367
|
+
}), Fe({
|
|
2368
|
+
content: A(() => [(w(), Pe(k(Cn), {
|
|
2369
|
+
key: `table_${Hn.value}`,
|
|
2370
|
+
colNames: _i.value.colNames,
|
|
2371
|
+
head: _i.value.head,
|
|
2372
|
+
body: _i.value.body,
|
|
2373
|
+
config: _i.value.config,
|
|
2374
|
+
title: P.value.table.useDialog ? "" : Fi.value.title,
|
|
2363
2375
|
withCloseButton: !P.value.table.useDialog,
|
|
2364
|
-
isCursorPointer:
|
|
2365
|
-
onClose:
|
|
2376
|
+
isCursorPointer: sr.value,
|
|
2377
|
+
onClose: Ii
|
|
2366
2378
|
}, {
|
|
2367
|
-
th: A(({ th: e }) => [
|
|
2368
|
-
td: A(({ td: e }) => [e.shape ? (w(), b("div",
|
|
2379
|
+
th: A(({ th: e }) => [Ie(O(e), 1)]),
|
|
2380
|
+
td: A(({ td: e }) => [e.shape ? (w(), b("div", vn, [x("span", null, O(e.content), 1)])) : (w(), b("div", {
|
|
2369
2381
|
key: 1,
|
|
2370
2382
|
innerHTML: e
|
|
2371
|
-
}, null, 8,
|
|
2383
|
+
}, null, 8, yn))]),
|
|
2372
2384
|
_: 1
|
|
2373
2385
|
}, 8, [
|
|
2374
2386
|
"colNames",
|
|
@@ -2382,24 +2394,24 @@ var Je = /* @__PURE__ */ e({ default: () => yn }), Ye = ["id"], Xe = ["id"], Ze
|
|
|
2382
2394
|
_: 2
|
|
2383
2395
|
}, [P.value.table.useDialog ? {
|
|
2384
2396
|
name: "title",
|
|
2385
|
-
fn: A(() => [
|
|
2397
|
+
fn: A(() => [Ie(O(Fi.value.title), 1)]),
|
|
2386
2398
|
key: "0"
|
|
2387
2399
|
} : void 0, P.value.table.useDialog ? {
|
|
2388
2400
|
name: "actions",
|
|
2389
2401
|
fn: A(() => [x("button", {
|
|
2390
2402
|
tabindex: "0",
|
|
2391
2403
|
class: "vue-ui-user-options-button",
|
|
2392
|
-
onClick: t[4] ||= (e) =>
|
|
2393
|
-
style:
|
|
2394
|
-
}, [
|
|
2404
|
+
onClick: t[4] ||= (e) => gi(F.value.callbacks.csv),
|
|
2405
|
+
style: He({ cursor: sr.value ? "pointer" : "default" })
|
|
2406
|
+
}, [Le(k(xn), {
|
|
2395
2407
|
name: "fileCsv",
|
|
2396
|
-
stroke:
|
|
2408
|
+
stroke: Fi.value.props.color
|
|
2397
2409
|
}, null, 8, ["stroke"])], 4)]),
|
|
2398
2410
|
key: "1"
|
|
2399
2411
|
} : void 0]), 1040)) : y("", !0),
|
|
2400
|
-
D(e.$slots, "skeleton", {}, () => [k(
|
|
2401
|
-
], 46,
|
|
2412
|
+
D(e.$slots, "skeleton", {}, () => [k(ur) ? (w(), Pe(he, { key: 0 })) : y("", !0)], !0)
|
|
2413
|
+
], 46, Xe));
|
|
2402
2414
|
}
|
|
2403
|
-
}, [["__scopeId", "data-v-
|
|
2415
|
+
}, [["__scopeId", "data-v-36a8b08b"]]);
|
|
2404
2416
|
//#endregion
|
|
2405
|
-
export {
|
|
2417
|
+
export { Ye as n, bn as t };
|