vue-data-ui 3.0.22 → 3.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{Arrow-C3_2GkYQ.js → Arrow-DvG07exK.js} +1 -1
- package/dist/{BaseDraggableDialog-BhxUDwEm.js → BaseDraggableDialog-O7900pGp.js} +72 -59
- package/dist/{BaseIcon-B717hnWR.js → BaseIcon-DHtro8us.js} +1 -1
- package/dist/{useLoading-D7YHNtLX.js → BaseScanner-BgWxam9d.js} +11 -11
- package/dist/{ColorPicker-CH5_RNaK.js → ColorPicker-CpWzNn4r.js} +2 -2
- package/dist/DataTable-DJjA2_wf.js +140 -0
- package/dist/Legend-2-dC7DVb.js +72 -0
- package/dist/{NonSvgPenAndPaper-DCJGSteM.js → NonSvgPenAndPaper-DHeE4Yuv.js} +3 -3
- package/dist/{PackageVersion-CE7HSich.js → PackageVersion-DU12WH3O.js} +1 -1
- package/dist/{PenAndPaper-BMHsOtT8.js → PenAndPaper-B7QEDgx4.js} +3 -3
- package/dist/{Shape-C3J8aKNH.js → Shape-Dj2Hl33H.js} +1 -1
- package/dist/{Slicer-BEBDljWA.js → Slicer-D99HytqX.js} +2 -2
- package/dist/{SparkTooltip-CVSZQtoP.js → SparkTooltip-B-wL07rI.js} +1 -1
- package/dist/{Title-BL-IjQmj.js → Title-Dq2_Z9kR.js} +1 -1
- package/dist/{Tooltip-CCnDaboi.js → Tooltip-Y219DXZO.js} +1 -1
- package/dist/{UserOptions-BWMV0_Ze.js → UserOptions-BuGfCdAY.js} +2 -2
- package/dist/{dom-to-png-DwUGURhV.js → dom-to-png-BhciAKaM.js} +1 -1
- package/dist/{img-DsVqerdt.js → img-JOqdlnUs.js} +1 -1
- package/dist/{index-BHb_mcWF.js → index-CDQbCd41.js} +37 -2
- package/dist/{pdf-Ckt8JtYf.js → pdf-Dd-LIJqz.js} +1 -1
- package/dist/style.css +1 -1
- package/dist/types/vue-data-ui.d.cts +35 -0
- package/dist/types/vue-data-ui.d.ts +35 -0
- package/dist/{useAutoSizeLabelsInsideViewbox-Cy946l1e.js → useAutoSizeLabelsInsideViewbox-Bky5KGFZ.js} +1 -1
- package/dist/{useNestedProp-aC9S6EFJ.js → useNestedProp-BPEHGiYX.js} +1 -1
- package/dist/{usePrinter-B7rhbRrT.js → usePrinter-Bnl1YeUU.js} +2 -2
- package/dist/{vue-data-ui-Bu7qDtf0.js → vue-data-ui-DcNYz3cZ.js} +64 -64
- package/dist/vue-data-ui.js +1 -1
- package/dist/vue-ui-3d-bar-BNIFAeN-.js +1369 -0
- package/dist/{vue-ui-accordion-DsnF0JuK.js → vue-ui-accordion-Bf_LHFFX.js} +3 -3
- package/dist/{vue-ui-age-pyramid-s8xyb3Gf.js → vue-ui-age-pyramid-Bz-l1afR.js} +333 -286
- package/dist/{vue-ui-annotator-DRacM62z.js → vue-ui-annotator-BcfRH2BF.js} +2 -2
- package/dist/{vue-ui-bullet-DdDrdyOJ.js → vue-ui-bullet-DK1aM9fX.js} +8 -8
- package/dist/{vue-ui-candlestick-BsNnInNt.js → vue-ui-candlestick-D6mMjvtu.js} +453 -406
- package/dist/{vue-ui-carousel-table-Ci9mrUBd.js → vue-ui-carousel-table-Vp5f238W.js} +4 -4
- package/dist/{vue-ui-chestnut-fHfJNK0V.js → vue-ui-chestnut-BKc4v-lf.js} +509 -459
- package/dist/vue-ui-chord-CquhRjf0.js +1100 -0
- package/dist/vue-ui-circle-pack-D6zLgxa3.js +755 -0
- package/dist/{vue-ui-cursor-Bk5LHg5V.js → vue-ui-cursor-DIXb2S93.js} +2 -2
- package/dist/{vue-ui-dashboard-CjZMEYs6.js → vue-ui-dashboard-DmiriAK7.js} +62 -62
- package/dist/{vue-ui-digits-nDIvHyRB.js → vue-ui-digits-CLAIo9gW.js} +2 -2
- package/dist/{vue-ui-donut-CF9FdxfC.js → vue-ui-donut-C8h_tCSO.js} +477 -431
- package/dist/{vue-ui-donut-evolution-f5k-Yu3N.js → vue-ui-donut-evolution-C3r0YhKz.js} +482 -435
- package/dist/{vue-ui-dumbbell-Dm3gsrzi.js → vue-ui-dumbbell-D-t4M00E.js} +443 -398
- package/dist/vue-ui-flow-D7_D_UNm.js +900 -0
- package/dist/vue-ui-funnel-B0QOfZRz.js +666 -0
- package/dist/vue-ui-galaxy-Ccw5uNes.js +744 -0
- package/dist/{vue-ui-gauge-DkDpUAN7.js → vue-ui-gauge-DvW7nFmK.js} +8 -8
- package/dist/{vue-ui-gizmo-BD5fLs8r.js → vue-ui-gizmo-WGQxvGPy.js} +4 -4
- package/dist/vue-ui-heatmap-BQkLujyp.js +1127 -0
- package/dist/{vue-ui-history-plot-ICoBBO-y.js → vue-ui-history-plot-eU33r_Ot.js} +408 -361
- package/dist/{vue-ui-kpi-Dp2M2EFo.js → vue-ui-kpi-CKg2i71M.js} +3 -3
- package/dist/{vue-ui-mini-loader-C5672jjA.js → vue-ui-mini-loader-BmkGQsm_.js} +2 -2
- package/dist/vue-ui-molecule-Dlu0hjSg.js +702 -0
- package/dist/{vue-ui-mood-radar-B-qhYUcB.js → vue-ui-mood-radar-DQaxfw9R.js} +342 -291
- package/dist/{vue-ui-nested-donuts-V6BvP3pF.js → vue-ui-nested-donuts-Djj9Aw_i.js} +548 -502
- package/dist/{vue-ui-onion-BKqqbWbg.js → vue-ui-onion-ZgsErXis.js} +363 -317
- package/dist/vue-ui-parallel-coordinate-plot-B5fB22Jc.js +979 -0
- package/dist/vue-ui-quadrant-CMevCtXH.js +1483 -0
- package/dist/{vue-ui-quick-chart-BVZSdQeT.js → vue-ui-quick-chart-DcparKSX.js} +7 -7
- package/dist/vue-ui-radar-DFbxoKCK.js +858 -0
- package/dist/{vue-ui-rating-CncrxDCY.js → vue-ui-rating-ZUpxCWrk.js} +2 -2
- package/dist/{vue-ui-relation-circle-VYM1dclx.js → vue-ui-relation-circle-eNKJY4Sx.js} +8 -8
- package/dist/vue-ui-ridgeline-D4shpQZd.js +1204 -0
- package/dist/vue-ui-rings-TdTHMbsa.js +785 -0
- package/dist/{vue-ui-scatter-D2b-u5dv.js → vue-ui-scatter-CVuV9ljU.js} +594 -548
- package/dist/{vue-ui-skeleton-BTuBaaE_.js → vue-ui-skeleton-CFxBU2-p.js} +3 -3
- package/dist/{vue-ui-smiley-D1UxJNbV.js → vue-ui-smiley-Har3B3aQ.js} +2 -2
- package/dist/{vue-ui-spark-trend-BCP0BWMI.js → vue-ui-spark-trend-FPk-XEwI.js} +4 -4
- package/dist/{vue-ui-sparkbar-eBo-RSvE.js → vue-ui-sparkbar-V3eJ0w0t.js} +4 -4
- package/dist/{vue-ui-sparkgauge-DberOXWX.js → vue-ui-sparkgauge-DKTGkWnJ.js} +4 -4
- package/dist/{vue-ui-sparkhistogram-CoKQGG5X.js → vue-ui-sparkhistogram-DJsgFwHs.js} +5 -5
- package/dist/{vue-ui-sparkline-B_L4UNES.js → vue-ui-sparkline-Dmrm5SL5.js} +4 -4
- package/dist/{vue-ui-sparkstackbar-iAaRIyqb.js → vue-ui-sparkstackbar-B0Pl7VMI.js} +4 -4
- package/dist/{vue-ui-stackbar-B_0PJ7R2.js → vue-ui-stackbar-CNsgBPhj.js} +525 -479
- package/dist/{vue-ui-strip-plot-CWkA4l9P.js → vue-ui-strip-plot-CYAWwYOM.js} +390 -343
- package/dist/{vue-ui-table-CILVy7YP.js → vue-ui-table-Dn6H98rP.js} +3 -3
- package/dist/{vue-ui-table-heatmap-DL2n2Z7p.js → vue-ui-table-heatmap-COI9LRqC.js} +5 -5
- package/dist/{vue-ui-table-sparkline-DOt2EKpe.js → vue-ui-table-sparkline-B7Gg5FfJ.js} +4 -4
- package/dist/{vue-ui-thermometer-BTP1ic_T.js → vue-ui-thermometer-Bgynq5El.js} +8 -8
- package/dist/{vue-ui-timer-Bc-zJH9j.js → vue-ui-timer-CXng51v5.js} +5 -5
- package/dist/{vue-ui-tiremarks-B9n528e1.js → vue-ui-tiremarks-Cy1U3hO1.js} +7 -7
- package/dist/vue-ui-treemap-BsvIvRmE.js +1092 -0
- package/dist/{vue-ui-vertical-bar-CK2j09gJ.js → vue-ui-vertical-bar-DHqWeDIf.js} +512 -464
- package/dist/{vue-ui-waffle-DJkqgqlR.js → vue-ui-waffle-D1Mscj3N.js} +416 -370
- package/dist/{vue-ui-wheel-CcbgpIUr.js → vue-ui-wheel-DpV-N5tF.js} +7 -7
- package/dist/vue-ui-word-cloud-MaNQ3Kdk.js +811 -0
- package/dist/{vue-ui-world-DLmB_Z96.js → vue-ui-world-DYz6zw3x.js} +512 -466
- package/dist/{vue-ui-xy-KmrNT6qh.js → vue-ui-xy-B1nqNbzw.js} +1559 -1508
- package/dist/vue-ui-xy-canvas-D4wd-Asd.js +1291 -0
- package/package.json +1 -1
- package/dist/DataTable-Y5T9UxMO.js +0 -133
- package/dist/Legend-DkU3at-b.js +0 -72
- package/dist/vue-ui-3d-bar-CBfQ3Pcb.js +0 -1323
- package/dist/vue-ui-chord-0wf798ls.js +0 -1049
- package/dist/vue-ui-circle-pack-CuRHG8gr.js +0 -709
- package/dist/vue-ui-flow-K7UBguES.js +0 -852
- package/dist/vue-ui-funnel-DoDZbsTp.js +0 -620
- package/dist/vue-ui-galaxy-BsDlHxzE.js +0 -691
- package/dist/vue-ui-heatmap-DOT2tBy_.js +0 -1078
- package/dist/vue-ui-molecule-DgqVh2k0.js +0 -656
- package/dist/vue-ui-parallel-coordinate-plot-BZf24Zur.js +0 -927
- package/dist/vue-ui-quadrant-S58B2LrQ.js +0 -1432
- package/dist/vue-ui-radar-Dh67mQ9E.js +0 -807
- package/dist/vue-ui-ridgeline-CsByERvm.js +0 -1157
- package/dist/vue-ui-rings-CR2UfgnV.js +0 -739
- package/dist/vue-ui-treemap-Cl9qo9O-.js +0 -1046
- package/dist/vue-ui-word-cloud-CZ_TRf4o.js +0 -765
- package/dist/vue-ui-xy-canvas-6VYNyX6a.js +0 -1243
|
@@ -1,46 +1,46 @@
|
|
|
1
|
-
import { defineAsyncComponent as
|
|
2
|
-
import { u as
|
|
3
|
-
import { t as
|
|
4
|
-
import { u as
|
|
5
|
-
import { u as
|
|
6
|
-
import { u as
|
|
7
|
-
import { u as
|
|
8
|
-
import { u as
|
|
9
|
-
import
|
|
10
|
-
import
|
|
11
|
-
import { _ as
|
|
12
|
-
import
|
|
13
|
-
import { _ as
|
|
14
|
-
const
|
|
1
|
+
import { defineAsyncComponent as se, computed as W, ref as M, toRefs as ul, watch as Be, shallowRef as At, onMounted as il, onBeforeUnmount as rl, createElementBlock as y, openBlock as r, unref as c, normalizeStyle as ne, normalizeClass as St, createBlock as le, createCommentVNode as x, createElementVNode as w, createVNode as _e, createSlots as Lt, withCtx as X, renderSlot as V, normalizeProps as fe, guardReactiveProps as pe, Fragment as Z, renderList as K, toDisplayString as G, Teleport as vl, resolveDynamicComponent as yl, mergeProps as cl, createTextVNode as Bt, nextTick as dl } from "vue";
|
|
2
|
+
import { u as hl, c as fl, t as pl, a as gl, p as ye, b as ml, o as Tt, f as Ze, d as xl, g as zt, Y as bl, e as Je, a3 as kl, V as wl, s as Te, X as $l, Z as _l, k as ue, h as H, i as Q, v as Ml, w as Cl, y as Al, z as Sl } from "./index-CDQbCd41.js";
|
|
3
|
+
import { t as Ll, u as Bl } from "./useResponsive-DfdjqQps.js";
|
|
4
|
+
import { u as Tl, B as zl } from "./BaseScanner-BgWxam9d.js";
|
|
5
|
+
import { u as Pl } from "./usePrinter-Bnl1YeUU.js";
|
|
6
|
+
import { u as Pt } from "./useNestedProp-BPEHGiYX.js";
|
|
7
|
+
import { u as Ol } from "./useUserOptionState-BIvW1Kz7.js";
|
|
8
|
+
import { u as El } from "./useChartAccessibility-9icAAmYg.js";
|
|
9
|
+
import Dl from "./Legend-2-dC7DVb.js";
|
|
10
|
+
import Wl from "./Title-Dq2_Z9kR.js";
|
|
11
|
+
import { _ as Ke } from "./Shape-Dj2Hl33H.js";
|
|
12
|
+
import Nl from "./img-JOqdlnUs.js";
|
|
13
|
+
import { _ as Fl } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
14
|
+
const Il = ["id"], Xl = ["id"], Yl = ["xmlns", "viewBox"], Rl = ["width", "height"], Vl = { key: 1 }, jl = ["x1", "x2", "y1", "y2", "stroke", "stroke-width"], Ul = ["x1", "x2", "y1", "y2", "stroke", "stroke-width"], Gl = { key: 2 }, ql = ["id"], Hl = ["stop-color"], Zl = ["stop-color"], Jl = ["id"], Kl = ["stop-color"], Ql = ["stop-color"], ea = ["x", "y", "width", "height", "fill", "stroke", "stroke-width", "rx"], ta = ["x", "y", "width", "height", "onMouseenter"], la = {
|
|
15
15
|
key: 2,
|
|
16
16
|
style: { "pointer-events": "none" }
|
|
17
|
-
},
|
|
17
|
+
}, aa = ["x", "y", "width", "height", "fill", "fill-opacity"], oa = ["x1", "x2", "y2", "stroke", "stroke-dasharray", "stroke-width"], sa = ["x1", "x2", "y2", "stroke", "stroke-dasharray", "stroke-width"], na = ["x", "y", "height", "width", "fill", "stroke", "stroke-width", "rx"], ua = ["x", "y", "width", "height", "onMouseenter"], ia = {
|
|
18
18
|
key: 2,
|
|
19
19
|
style: { "pointer-events": "none" }
|
|
20
|
-
},
|
|
20
|
+
}, ra = ["x", "y", "width", "height", "fill", "fill-opacity"], va = ["x1", "x2", "y1", "y2", "stroke", "stroke-dasharray", "stroke-width"], ya = ["x1", "x2", "y1", "y2", "stroke", "stroke-dasharray", "stroke-width"], ca = {
|
|
21
21
|
key: 0,
|
|
22
22
|
style: { "pointer-events": "none" }
|
|
23
|
-
},
|
|
23
|
+
}, da = ["d", "stroke", "stroke-width"], ha = ["d", "stroke", "stroke-width"], fa = ["d", "stroke", "stroke-width"], pa = ["d", "stroke", "stroke-width"], ga = { key: 3 }, ma = ["points", "fill", "stroke-width", "stroke-dasharray", "stroke"], xa = { key: 0 }, ba = ["cx", "cy", "r", "fill", "stroke", "stroke-width", "onMouseover", "onMouseleave", "onClick"], ka = { key: 1 }, wa = ["clip-path"], $a = ["d", "fill", "stroke", "stroke-width", "stroke-opacity"], _a = {
|
|
24
24
|
key: 0,
|
|
25
25
|
style: { "pointer-events": "none" }
|
|
26
|
-
},
|
|
26
|
+
}, Ma = ["x", "y", "width", "height"], Ca = {
|
|
27
27
|
key: 6,
|
|
28
28
|
style: { "pointer-events": "none !important" }
|
|
29
|
-
},
|
|
29
|
+
}, Aa = ["x1", "x2", "y1", "y2", "stroke", "stroke-width", "stroke-dasharray"], Sa = ["x1", "x2", "y1", "y2", "stroke", "stroke-width", "stroke-dasharray"], La = ["x", "y", "font-size", "fill", "font-weight", "text-anchor"], Ba = ["x", "y", "font-size", "fill", "font-weight"], Ta = ["cx", "cy", "r", "fill", "stroke", "stroke-width"], za = ["cx", "cy", "r", "fill", "stroke", "stroke-width"], Pa = ["x", "y", "font-size", "fill", "font-weight", "text-anchor"], Oa = ["id", "transform", "font-size", "font-weight", "fill"], Ea = ["font-size", "fill", "transform"], Da = ["transform", "font-size", "fill"], Wa = ["x", "y", "font-size", "fill"], Na = ["x", "y", "font-size", "fill"], Fa = ["font-size", "font-weight", "fill", "x", "y"], Ia = ["id"], Xa = ["x", "y", "width", "height"], Ya = {
|
|
30
30
|
key: 11,
|
|
31
31
|
style: { pointerEvents: "none" }
|
|
32
|
-
},
|
|
32
|
+
}, Ra = ["x1", "x2", "y1", "y2", "stroke-dasharray", "stroke", "stroke-width", "clip-path"], Va = ["x", "y", "fill", "font-size", "font-weight"], ja = {
|
|
33
33
|
key: 4,
|
|
34
34
|
class: "vue-data-ui-watermark"
|
|
35
|
-
},
|
|
35
|
+
}, Ua = ["id"], Ga = ["onClick"], qa = {
|
|
36
36
|
key: 0,
|
|
37
37
|
style: { width: "100%", display: "flex", "align-items": "center", "justify-content": "center" }
|
|
38
|
-
},
|
|
38
|
+
}, Ha = {
|
|
39
39
|
viewBox: "0 0 20 20",
|
|
40
40
|
height: "20",
|
|
41
41
|
width: "20",
|
|
42
42
|
style: { overflow: "hidden", background: "transparent" }
|
|
43
|
-
},
|
|
43
|
+
}, Za = { key: 0 }, Ja = ["innerHTML"], Ka = {
|
|
44
44
|
__name: "vue-ui-scatter",
|
|
45
45
|
props: {
|
|
46
46
|
config: {
|
|
@@ -56,41 +56,41 @@ const El = ["id"], Ol = ["id"], Nl = ["xmlns", "viewBox"], Wl = ["width", "heigh
|
|
|
56
56
|
}
|
|
57
57
|
}
|
|
58
58
|
},
|
|
59
|
-
setup(
|
|
60
|
-
const
|
|
61
|
-
function
|
|
59
|
+
setup(Ot, { expose: Et }) {
|
|
60
|
+
const Dt = se(() => import("./Tooltip-Y219DXZO.js")), Wt = se(() => import("./BaseIcon-DHtro8us.js")), Nt = se(() => import("./vue-ui-accordion-Bf_LHFFX.js")), Ft = se(() => import("./DataTable-DJjA2_wf.js")), It = se(() => import("./PenAndPaper-B7QEDgx4.js")), Xt = se(() => import("./UserOptions-BuGfCdAY.js")), Yt = se(() => import("./PackageVersion-DU12WH3O.js")), Rt = se(() => import("./BaseDraggableDialog-O7900pGp.js")), { vue_ui_scatter: Vt } = hl(), ee = Ot, Qe = W(() => !!ee.dataset && ee.dataset.length), N = M(fl()), jt = M(null), ze = M(!1), Pe = M(""), et = M(0), te = M(null), tt = M(null), lt = M(null), at = M(null), ot = M(null), st = M(0), nt = M(0), ut = M(0), F = M([]), it = M(!1), ge = M(null), me = M(null), xe = M(null), Oe = M(null), Ut = M(null), Gt = M(null), Ee = M(null), e = M(Ie());
|
|
61
|
+
function qt(l = 100, s = 0.8, t = {}) {
|
|
62
62
|
const { meanX: o = 0, sdX: a = 1, meanY: u = 0, sdY: i = 1, seed: f } = t;
|
|
63
63
|
let v = (f ?? Math.floor(Math.random() * 2 ** 31)) >>> 0;
|
|
64
64
|
const g = () => (v = v * 1664525 + 1013904223 >>> 0, v / 2 ** 32), L = () => {
|
|
65
|
-
let m = 0,
|
|
65
|
+
let m = 0, O = 0;
|
|
66
66
|
for (; m === 0; ) m = g();
|
|
67
|
-
for (;
|
|
68
|
-
return Math.sqrt(-2 * Math.log(m)) * Math.cos(2 * Math.PI *
|
|
69
|
-
}, d = l / 2,
|
|
67
|
+
for (; O === 0; ) O = g();
|
|
68
|
+
return Math.sqrt(-2 * Math.log(m)) * Math.cos(2 * Math.PI * O);
|
|
69
|
+
}, d = l / 2, _ = Array.from({ length: d }, L), P = Array.from({ length: d }, L), C = (m) => m.reduce((O, $e) => O + $e, 0) / m.length, T = C(_), I = C(P);
|
|
70
70
|
for (let m = 0; m < d; m += 1)
|
|
71
|
-
|
|
72
|
-
const B = (m,
|
|
73
|
-
const
|
|
74
|
-
return m.map((
|
|
75
|
-
},
|
|
76
|
-
for (let m =
|
|
77
|
-
const
|
|
78
|
-
[
|
|
71
|
+
_[m] -= T, P[m] -= I;
|
|
72
|
+
const B = (m, O) => m.reduce(($e, Le, He) => $e + Le * O[He], 0), $ = (m) => B(m, m), h = B(P, _) / $(_), S = P.map((m, O) => m - h * _[O]), U = $(_) / d, J = $(S) / d, oe = Math.sqrt((1 - s * s) * U / J), R = _.map((m, O) => s * m + oe * S[O]), ve = _.concat(_.map((m) => -m)), qe = R.concat(R.map((m) => -m)), ke = (m) => Math.sqrt($(m) / m.length), de = (m, O, $e) => {
|
|
73
|
+
const Le = ke(m);
|
|
74
|
+
return m.map((He) => $e + (Le ? He / Le * O : 0));
|
|
75
|
+
}, he = de(ve, a, o), we = de(qe, i, u);
|
|
76
|
+
for (let m = he.length - 1; m > 0; m -= 1) {
|
|
77
|
+
const O = Math.floor(g() * (m + 1));
|
|
78
|
+
[he[m], he[O]] = [he[O], he[m]], [we[m], we[O]] = [we[O], we[m]];
|
|
79
79
|
}
|
|
80
|
-
return
|
|
80
|
+
return he.map((m, O) => ({ x: m, y: we[O] }));
|
|
81
81
|
}
|
|
82
|
-
const { loading:
|
|
83
|
-
...
|
|
82
|
+
const { loading: rt, FINAL_DATASET: De, manualLoading: We } = Tl({
|
|
83
|
+
...ul(ee),
|
|
84
84
|
FINAL_CONFIG: e,
|
|
85
|
-
prepareConfig:
|
|
85
|
+
prepareConfig: Ie,
|
|
86
86
|
skeletonDataset: [
|
|
87
87
|
{
|
|
88
88
|
name: "",
|
|
89
89
|
color: "#999999",
|
|
90
|
-
values:
|
|
90
|
+
values: qt(100, 0.5, { seed: 42 })
|
|
91
91
|
}
|
|
92
92
|
],
|
|
93
|
-
skeletonConfig:
|
|
93
|
+
skeletonConfig: pl({
|
|
94
94
|
defaultConfig: e.value,
|
|
95
95
|
userConfig: {
|
|
96
96
|
userOptions: { show: !1 },
|
|
@@ -123,22 +123,22 @@ const El = ["id"], Ol = ["id"], Nl = ["xmlns", "viewBox"], Wl = ["width", "heigh
|
|
|
123
123
|
}
|
|
124
124
|
}
|
|
125
125
|
})
|
|
126
|
-
}), { userOptionsVisible:
|
|
127
|
-
function
|
|
128
|
-
const l =
|
|
126
|
+
}), { userOptionsVisible: Ne, setUserOptionsVisibility: vt, keepUserOptionState: yt } = Ol({ config: e.value }), { svgRef: Fe } = El({ config: e.value.style.title });
|
|
127
|
+
function Ie() {
|
|
128
|
+
const l = Pt({
|
|
129
129
|
userConfig: ee.config,
|
|
130
|
-
defaultConfig:
|
|
130
|
+
defaultConfig: Vt
|
|
131
131
|
});
|
|
132
132
|
return l.theme ? {
|
|
133
|
-
...
|
|
134
|
-
userConfig:
|
|
133
|
+
...Pt({
|
|
134
|
+
userConfig: ml.vue_ui_scatter[l.theme] || ee.config,
|
|
135
135
|
defaultConfig: l
|
|
136
136
|
}),
|
|
137
|
-
customPalette:
|
|
137
|
+
customPalette: gl[l.theme] || ye
|
|
138
138
|
} : l;
|
|
139
139
|
}
|
|
140
|
-
|
|
141
|
-
|
|
140
|
+
Be(() => ee.config, (l) => {
|
|
141
|
+
rt.value || (e.value = Ie()), Ne.value = !e.value.userOptions.showOnChartHover, dt(), st.value += 1, nt.value += 1, ut.value += 1, q.value.showTable = e.value.table.show, q.value.showTooltip = e.value.style.tooltip.show, ct.value && e.value.usePerformanceMode && console.warn(`VueUiScatter : You are using performance mode
|
|
142
142
|
|
|
143
143
|
- downsampling is disabled in this mode, all plots are rendered
|
|
144
144
|
|
|
@@ -147,83 +147,83 @@ const El = ["id"], Ol = ["id"], Nl = ["xmlns", "viewBox"], Wl = ["width", "heigh
|
|
|
147
147
|
- Depending on plot density, shapes might not display a border (stroke) to avoid fuzziness
|
|
148
148
|
|
|
149
149
|
ℹ️ To remove this warning, set config.debug to false.`);
|
|
150
|
-
}, { deep: !0 }),
|
|
151
|
-
Array.isArray(l) && l.length > 0 && (
|
|
150
|
+
}, { deep: !0 }), Be(() => ee.dataset, (l) => {
|
|
151
|
+
Array.isArray(l) && l.length > 0 && (We.value = !1);
|
|
152
152
|
}, { deep: !0 });
|
|
153
|
-
const ae =
|
|
154
|
-
|
|
155
|
-
|
|
153
|
+
const ae = At(null), ce = At(null);
|
|
154
|
+
il(() => {
|
|
155
|
+
it.value = !0, dt();
|
|
156
156
|
});
|
|
157
|
-
const
|
|
158
|
-
function
|
|
159
|
-
if (
|
|
157
|
+
const ct = W(() => !!e.value.debug);
|
|
158
|
+
function dt() {
|
|
159
|
+
if (Tt(ee.dataset) && (Ze({
|
|
160
160
|
componentName: "VueUiScatter",
|
|
161
161
|
type: "dataset",
|
|
162
|
-
debug:
|
|
163
|
-
}),
|
|
164
|
-
const l =
|
|
165
|
-
const { width: s, height: t } =
|
|
166
|
-
chart:
|
|
167
|
-
title: e.value.style.title.text ?
|
|
168
|
-
legend: e.value.style.legend.show ?
|
|
169
|
-
source:
|
|
170
|
-
noTitle:
|
|
162
|
+
debug: ct.value
|
|
163
|
+
}), We.value = !0), Tt(ee.dataset) || (We.value = e.value.loading), e.value.responsive) {
|
|
164
|
+
const l = Ll(() => {
|
|
165
|
+
const { width: s, height: t } = Bl({
|
|
166
|
+
chart: te.value,
|
|
167
|
+
title: e.value.style.title.text ? tt.value : null,
|
|
168
|
+
legend: e.value.style.legend.show ? lt.value : null,
|
|
169
|
+
source: at.value,
|
|
170
|
+
noTitle: ot.value
|
|
171
171
|
});
|
|
172
172
|
requestAnimationFrame(() => {
|
|
173
|
-
|
|
173
|
+
E.value.width = s, E.value.height = t;
|
|
174
174
|
});
|
|
175
175
|
});
|
|
176
|
-
ae.value && (
|
|
176
|
+
ae.value && (ce.value && ae.value.unobserve(ce.value), ae.value.disconnect()), ae.value = new ResizeObserver(l), ce.value = te.value.parentNode, ae.value.observe(ce.value);
|
|
177
177
|
}
|
|
178
178
|
}
|
|
179
|
-
|
|
180
|
-
ae.value && (
|
|
179
|
+
rl(() => {
|
|
180
|
+
ae.value && (ce.value && ae.value.unobserve(ce.value), ae.value.disconnect());
|
|
181
181
|
});
|
|
182
|
-
const { isPrinting:
|
|
183
|
-
elementId: `vue-ui-scatter_${
|
|
182
|
+
const { isPrinting: ht, isImaging: ft, generatePdf: pt, generateImage: gt } = Pl({
|
|
183
|
+
elementId: `vue-ui-scatter_${N.value}`,
|
|
184
184
|
fileName: e.value.style.title.text || "vue-ui-scatter",
|
|
185
185
|
options: e.value.userOptions.print
|
|
186
|
-
}),
|
|
186
|
+
}), Ht = W(() => e.value.userOptions.show && !e.value.style.title.text), mt = W(() => xl(e.value.customPalette)), q = M({
|
|
187
187
|
showTable: e.value.table.show,
|
|
188
188
|
showTooltip: e.value.style.tooltip.show
|
|
189
189
|
});
|
|
190
|
-
|
|
191
|
-
|
|
190
|
+
Be(e, () => {
|
|
191
|
+
q.value = {
|
|
192
192
|
showTable: e.value.table.show,
|
|
193
193
|
showTooltip: e.value.style.tooltip.show
|
|
194
194
|
};
|
|
195
195
|
}, { immediate: !0 });
|
|
196
|
-
const
|
|
196
|
+
const E = M({
|
|
197
197
|
height: e.value.style.layout.height,
|
|
198
198
|
width: e.value.style.layout.width
|
|
199
|
-
}),
|
|
199
|
+
}), Me = W(() => e.value.style.layout.marginalBars.show ? e.value.style.layout.marginalBars.size + e.value.style.layout.marginalBars.offset : 0), n = W(() => {
|
|
200
200
|
let l = 0, s = 0;
|
|
201
|
-
return
|
|
202
|
-
top: e.value.style.layout.padding.top +
|
|
203
|
-
right:
|
|
204
|
-
bottom:
|
|
201
|
+
return Oe.value && (l = Oe.value.getBBox().width + 6), Ee.value && (s = Ee.value.getBBox().height + 6), {
|
|
202
|
+
top: e.value.style.layout.padding.top + Me.value + e.value.style.layout.dataLabels.yAxis.fontSize * 2,
|
|
203
|
+
right: E.value.width - e.value.style.layout.padding.right - Me.value - 6,
|
|
204
|
+
bottom: E.value.height - e.value.style.layout.padding.bottom - s,
|
|
205
205
|
left: e.value.style.layout.padding.left + l,
|
|
206
|
-
height:
|
|
207
|
-
width:
|
|
206
|
+
height: E.value.height - e.value.style.layout.padding.top - e.value.style.layout.padding.bottom - Me.value - s - e.value.style.layout.dataLabels.yAxis.fontSize * 2,
|
|
207
|
+
width: E.value.width - e.value.style.layout.padding.left - e.value.style.layout.padding.right - Me.value - l - 6
|
|
208
208
|
};
|
|
209
|
-
}),
|
|
210
|
-
|
|
211
|
-
|
|
209
|
+
}), z = W(() => {
|
|
210
|
+
De.value.forEach((a, u) => {
|
|
211
|
+
zt({
|
|
212
212
|
datasetObject: a,
|
|
213
213
|
requiredAttributes: ["values"]
|
|
214
214
|
}).forEach((i) => {
|
|
215
|
-
|
|
215
|
+
Ze({
|
|
216
216
|
componentName: "VueUiScatter",
|
|
217
217
|
type: "datasetSerieAttribute",
|
|
218
218
|
property: i,
|
|
219
219
|
index: u
|
|
220
220
|
});
|
|
221
221
|
}), a.values && a.values.forEach((i, f) => {
|
|
222
|
-
|
|
222
|
+
zt({
|
|
223
223
|
datasetObject: i,
|
|
224
224
|
requiredAttributes: ["x", "y"]
|
|
225
225
|
}).forEach((v) => {
|
|
226
|
-
|
|
226
|
+
Ze({
|
|
227
227
|
componentName: "VueUiScatter",
|
|
228
228
|
type: "datasetSerieAttribute",
|
|
229
229
|
property: `values.${v}`,
|
|
@@ -232,66 +232,66 @@ const El = ["id"], Ol = ["id"], Nl = ["xmlns", "viewBox"], Wl = ["width", "heigh
|
|
|
232
232
|
});
|
|
233
233
|
});
|
|
234
234
|
});
|
|
235
|
-
const l = Math.min(...
|
|
235
|
+
const l = Math.min(...ie.value.filter((a) => !F.value.includes(a.id)).flatMap((a) => a.values.map((u) => u.x))), s = Math.max(...ie.value.filter((a) => !F.value.includes(a.id)).flatMap((a) => a.values.map((u) => u.x))), t = Math.min(...ie.value.filter((a) => !F.value.includes(a.id)).flatMap((a) => a.values.map((u) => u.y))), o = Math.max(...ie.value.filter((a) => !F.value.includes(a.id)).flatMap((a) => a.values.map((u) => u.y)));
|
|
236
236
|
return { xMin: l >= 0 ? 0 : l, xMax: s, yMin: t >= 0 ? 0 : t, yMax: o };
|
|
237
|
-
}),
|
|
238
|
-
x: n.value.left + Math.abs(
|
|
239
|
-
y: n.value.bottom - Math.abs(
|
|
240
|
-
})),
|
|
241
|
-
const t = `cluster_${
|
|
237
|
+
}), D = W(() => ({
|
|
238
|
+
x: n.value.left + Math.abs(z.value.xMin) / (z.value.xMax + Math.abs(z.value.xMin)) * n.value.width,
|
|
239
|
+
y: n.value.bottom - Math.abs(z.value.yMin) / (z.value.yMax + Math.abs(z.value.yMin)) * n.value.height
|
|
240
|
+
})), ie = W(() => De.value.map((l, s) => {
|
|
241
|
+
const t = `cluster_${N.value}_${s}`;
|
|
242
242
|
return {
|
|
243
243
|
...l,
|
|
244
|
-
values:
|
|
244
|
+
values: bl({
|
|
245
245
|
data: l.values,
|
|
246
246
|
threshold: e.value.usePerformanceMode ? l.values.length + 1 : e.value.downsample.threshold
|
|
247
247
|
}),
|
|
248
248
|
id: t,
|
|
249
|
-
color: l.color ? l.color :
|
|
250
|
-
opacity:
|
|
249
|
+
color: l.color ? l.color : mt.value[s] || ye[s] || ye[s % ye.length],
|
|
250
|
+
opacity: F.value.includes(t) ? 0.5 : 1,
|
|
251
251
|
shape: l.shape ?? "circle",
|
|
252
|
-
segregate: () =>
|
|
253
|
-
isSegregated:
|
|
252
|
+
segregate: () => kt(t),
|
|
253
|
+
isSegregated: F.value.includes(t)
|
|
254
254
|
};
|
|
255
|
-
})),
|
|
255
|
+
})), Zt = W(() => ({
|
|
256
256
|
cy: "scatter-div-legend",
|
|
257
257
|
backgroundColor: e.value.style.legend.backgroundColor,
|
|
258
258
|
color: e.value.style.legend.color,
|
|
259
259
|
fontSize: e.value.style.legend.fontSize,
|
|
260
260
|
paddingBottom: 12,
|
|
261
261
|
fontWeight: e.value.style.legend.bold ? "bold" : ""
|
|
262
|
-
})),
|
|
262
|
+
})), Xe = W(() => ie.value.map((l, s) => ({
|
|
263
263
|
...l,
|
|
264
264
|
plots: l.values.map((t) => ({
|
|
265
|
-
x: n.value.left + (t.x + Math.abs(
|
|
266
|
-
y: n.value.bottom - (t.y + Math.abs(
|
|
265
|
+
x: n.value.left + (t.x + Math.abs(z.value.xMin)) / (z.value.xMax + Math.abs(z.value.xMin)) * n.value.width,
|
|
266
|
+
y: n.value.bottom - (t.y + Math.abs(z.value.yMin)) / (z.value.yMax + Math.abs(z.value.yMin)) * n.value.height,
|
|
267
267
|
v: {
|
|
268
268
|
...t,
|
|
269
269
|
name: t.name || ""
|
|
270
270
|
},
|
|
271
271
|
clusterName: l.name,
|
|
272
|
-
color: l.color ? l.color :
|
|
273
|
-
id: `plot_${
|
|
272
|
+
color: l.color ? l.color : mt.value[s] || ye[s] || ye[s % ye.length],
|
|
273
|
+
id: `plot_${N.value}_${Math.random()}`,
|
|
274
274
|
weight: t.weight ?? e.value.style.layout.plots.radius
|
|
275
275
|
}))
|
|
276
|
-
})).filter((l) => !
|
|
276
|
+
})).filter((l) => !F.value.includes(l.id))), j = W(() => {
|
|
277
277
|
const s = ({ m: t, b: o, rect: a, verticalX: u = null }) => {
|
|
278
|
-
const { left: i, right: f, top: v, bottom: g } = a, L = [], d = (
|
|
279
|
-
Number.isFinite(
|
|
280
|
-
},
|
|
278
|
+
const { left: i, right: f, top: v, bottom: g } = a, L = [], d = ($, h) => {
|
|
279
|
+
Number.isFinite($) && Number.isFinite(h) && L.push({ x: $, y: h });
|
|
280
|
+
}, _ = ({ x: $, y: h }) => $ >= i - 1e-9 && $ <= f + 1e-9 && h >= v - 1e-9 && h <= g + 1e-9;
|
|
281
281
|
u !== null ? u >= i - 1e-9 && u <= f + 1e-9 && (d(u, v), d(u, g)) : Number.isFinite(t) && (d(i, t * i + o), d(f, t * f + o), Math.abs(t) > 1e-9 ? (d((v - o) / t, v), d((g - o) / t, g)) : o >= v - 1e-9 && o <= g + 1e-9 && (d(i, o), d(f, o)));
|
|
282
|
-
const P = L.filter(
|
|
283
|
-
for (const
|
|
284
|
-
|
|
285
|
-
if (
|
|
286
|
-
let
|
|
287
|
-
for (let
|
|
288
|
-
for (let h =
|
|
289
|
-
const S =
|
|
290
|
-
J > B && (B = J,
|
|
282
|
+
const P = L.filter(_), C = [];
|
|
283
|
+
for (const $ of P)
|
|
284
|
+
C.some((h) => Math.abs(h.x - $.x) < 1e-6 && Math.abs(h.y - $.y) < 1e-6) || C.push($);
|
|
285
|
+
if (C.length < 2) return null;
|
|
286
|
+
let T = C[0], I = C[1], B = 0;
|
|
287
|
+
for (let $ = 0; $ < C.length; $ += 1)
|
|
288
|
+
for (let h = $ + 1; h < C.length; h += 1) {
|
|
289
|
+
const S = C[$].x - C[h].x, U = C[$].y - C[h].y, J = S * S + U * U;
|
|
290
|
+
J > B && (B = J, T = C[$], I = C[h]);
|
|
291
291
|
}
|
|
292
|
-
return { x1:
|
|
292
|
+
return { x1: T.x, y1: T.y, x2: I.x, y2: I.y };
|
|
293
293
|
};
|
|
294
|
-
return
|
|
294
|
+
return Xe.value.map((t) => {
|
|
295
295
|
const o = t.plots.length, a = t.plots.reduce((h, S) => h + S.x, 0) / o, u = t.plots.reduce((h, S) => h + S.y, 0) / o;
|
|
296
296
|
let i = 0, f = 0;
|
|
297
297
|
for (const h of t.plots) {
|
|
@@ -300,25 +300,25 @@ const El = ["id"], Ol = ["id"], Nl = ["xmlns", "viewBox"], Wl = ["width", "heigh
|
|
|
300
300
|
}
|
|
301
301
|
let v, g, L = null;
|
|
302
302
|
f < 1e-9 ? (L = a, v = 1 / 0, g = null) : (v = i / f, g = u - v * a);
|
|
303
|
-
let d,
|
|
304
|
-
L !== null ? (d = 1 / 0,
|
|
303
|
+
let d, _;
|
|
304
|
+
L !== null ? (d = 1 / 0, _ = null) : (d = v, _ = g);
|
|
305
305
|
const P = t.plots.every((h) => h.v && typeof h.v.x == "number" && typeof h.v.y == "number");
|
|
306
|
-
let
|
|
306
|
+
let C = NaN;
|
|
307
307
|
if (o >= 2) {
|
|
308
308
|
let h = 0, S = 0;
|
|
309
|
-
P ? (h = t.plots.reduce((
|
|
309
|
+
P ? (h = t.plots.reduce((R, ve) => R + ve.v.x, 0) / o, S = t.plots.reduce((R, ve) => R + ve.v.y, 0) / o) : (h = a, S = -u);
|
|
310
310
|
let U = 0, J = 0, oe = 0;
|
|
311
|
-
for (const
|
|
312
|
-
const
|
|
313
|
-
U +=
|
|
311
|
+
for (const R of t.plots) {
|
|
312
|
+
const ve = P ? R.v.x : R.x, qe = P ? R.v.y : -R.y, ke = ve - h, de = qe - S;
|
|
313
|
+
U += ke * de, J += ke * ke, oe += de * de;
|
|
314
314
|
}
|
|
315
315
|
if (J >= 1e-9 && oe >= 1e-9) {
|
|
316
|
-
const
|
|
317
|
-
|
|
316
|
+
const R = U / Math.sqrt(J * oe);
|
|
317
|
+
C = Math.max(-1, Math.min(1, R));
|
|
318
318
|
}
|
|
319
319
|
}
|
|
320
|
-
const
|
|
321
|
-
if (!
|
|
320
|
+
const T = s({ m: d, b: _, rect: n.value, verticalX: L });
|
|
321
|
+
if (!T)
|
|
322
322
|
return {
|
|
323
323
|
...t,
|
|
324
324
|
correlation: null,
|
|
@@ -327,69 +327,69 @@ const El = ["id"], Ol = ["id"], Nl = ["xmlns", "viewBox"], Wl = ["width", "heigh
|
|
|
327
327
|
...h,
|
|
328
328
|
deviation: 0,
|
|
329
329
|
shape: t.shape,
|
|
330
|
-
color:
|
|
330
|
+
color: Je(t.color)
|
|
331
331
|
}))
|
|
332
332
|
};
|
|
333
|
-
const
|
|
333
|
+
const I = (T.x1 + T.x2) / 2, B = (T.y1 + T.y2) / 2, $ = { x: I, y: B };
|
|
334
334
|
return {
|
|
335
335
|
...t,
|
|
336
|
-
color:
|
|
336
|
+
color: Je(t.color),
|
|
337
337
|
correlation: {
|
|
338
|
-
...
|
|
339
|
-
coefficient:
|
|
338
|
+
...T,
|
|
339
|
+
coefficient: C
|
|
340
340
|
},
|
|
341
|
-
label:
|
|
341
|
+
label: $,
|
|
342
342
|
plots: t.plots.map((h) => {
|
|
343
343
|
let S, U;
|
|
344
|
-
L !== null ? (S = L, U = h.y) : Math.abs(d) < 1e-9 ? (S = h.x, U =
|
|
345
|
-
const J = h.x - S, oe = h.y - U,
|
|
344
|
+
L !== null ? (S = L, U = h.y) : Math.abs(d) < 1e-9 ? (S = h.x, U = _) : (S = (h.x + d * h.y - d * _) / (1 + d * d), U = (d * h.x + d * d * h.y + _) / (1 + d * d));
|
|
345
|
+
const J = h.x - S, oe = h.y - U, R = Math.sqrt(J * J + oe * oe);
|
|
346
346
|
return {
|
|
347
347
|
...h,
|
|
348
|
-
deviation:
|
|
348
|
+
deviation: R,
|
|
349
349
|
shape: t.shape,
|
|
350
|
-
color:
|
|
350
|
+
color: Je(t.color)
|
|
351
351
|
};
|
|
352
352
|
})
|
|
353
353
|
};
|
|
354
354
|
});
|
|
355
|
-
}),
|
|
356
|
-
function
|
|
355
|
+
}), xt = W(() => Math.max(...j.value.flatMap((l) => l.plots.map((s) => Math.abs(s.deviation)))));
|
|
356
|
+
function Jt() {
|
|
357
357
|
return j.value;
|
|
358
358
|
}
|
|
359
|
-
function
|
|
360
|
-
const t = Array.isArray(l) ? l.flatMap((B) => B.plots.map((
|
|
361
|
-
x:
|
|
362
|
-
y:
|
|
359
|
+
function bt(l, s) {
|
|
360
|
+
const t = Array.isArray(l) ? l.flatMap((B) => B.plots.map(($) => ({
|
|
361
|
+
x: $.x,
|
|
362
|
+
y: $.y
|
|
363
363
|
}))) : l.plots.map((B) => ({
|
|
364
364
|
x: B.x,
|
|
365
365
|
y: B.y
|
|
366
366
|
}));
|
|
367
367
|
let o = 1 / 0, a = -1 / 0, u = 1 / 0, i = -1 / 0;
|
|
368
|
-
t.forEach(({ x: B, y:
|
|
369
|
-
o = Math.min(o, B), a = Math.max(a, B), u = Math.min(u,
|
|
368
|
+
t.forEach(({ x: B, y: $ }) => {
|
|
369
|
+
o = Math.min(o, B), a = Math.max(a, B), u = Math.min(u, $), i = Math.max(i, $);
|
|
370
370
|
});
|
|
371
|
-
const f = a - o, v = i - u, g = f / s, L = v / s, d = Array(s).fill(0),
|
|
372
|
-
t.forEach(({ x: B, y:
|
|
373
|
-
const h = Math.floor((B - o) / g), S = Math.floor((
|
|
374
|
-
d[h] || (d[h] = 0),
|
|
371
|
+
const f = a - o, v = i - u, g = f / s, L = v / s, d = Array(s).fill(0), _ = Array(s).fill(0);
|
|
372
|
+
t.forEach(({ x: B, y: $ }) => {
|
|
373
|
+
const h = Math.floor((B - o) / g), S = Math.floor(($ - u) / L);
|
|
374
|
+
d[h] || (d[h] = 0), _[S] || (_[S] = 0), d[h] += 1, _[S] += 1;
|
|
375
375
|
});
|
|
376
|
-
const P = [],
|
|
376
|
+
const P = [], C = [];
|
|
377
377
|
for (let B = 0; B < s; B += 1)
|
|
378
|
-
P.push(o + (B + 0.5) * g),
|
|
379
|
-
const
|
|
380
|
-
return { x: d, y:
|
|
378
|
+
P.push(o + (B + 0.5) * g), C.push(u + (B + 0.5) * L);
|
|
379
|
+
const T = Math.max(...d), I = Math.max(..._);
|
|
380
|
+
return { x: d, y: _, avgX: P, avgY: C, maxX: T, maxY: I };
|
|
381
381
|
}
|
|
382
|
-
const
|
|
382
|
+
const b = W(() => e.value.style.layout.marginalBars.tranches), A = W(() => bt(Xe.value, b.value)), Kt = W(() => {
|
|
383
383
|
const l = n.value.top - e.value.style.layout.marginalBars.offset, s = n.value.right + e.value.style.layout.marginalBars.offset;
|
|
384
|
-
return
|
|
385
|
-
const o =
|
|
384
|
+
return Xe.value.map((t) => {
|
|
385
|
+
const o = bt(t, b.value);
|
|
386
386
|
return {
|
|
387
387
|
coords: o,
|
|
388
|
-
dX:
|
|
388
|
+
dX: wl(o.avgX.map((a, u) => ({
|
|
389
389
|
x: a,
|
|
390
390
|
y: l - o.x[u] / o.maxX * e.value.style.layout.marginalBars.size
|
|
391
391
|
}))),
|
|
392
|
-
dY:
|
|
392
|
+
dY: kl(o.avgY.map((a, u) => ({
|
|
393
393
|
y: a,
|
|
394
394
|
x: s + e.value.style.layout.marginalBars.size * o.y[u] / o.maxY
|
|
395
395
|
}))),
|
|
@@ -397,28 +397,28 @@ const El = ["id"], Ol = ["id"], Nl = ["xmlns", "viewBox"], Wl = ["width", "heigh
|
|
|
397
397
|
id: t.id
|
|
398
398
|
};
|
|
399
399
|
});
|
|
400
|
-
}), Y =
|
|
401
|
-
function
|
|
400
|
+
}), Y = M(void 0), p = M(null), Ye = M(null);
|
|
401
|
+
function Re(l, s) {
|
|
402
402
|
Y.value = l.id, p.value = l;
|
|
403
403
|
let t = "";
|
|
404
|
-
e.value.events.datapointEnter && e.value.events.datapointEnter({ datapoint: l, seriesIndex: s }),
|
|
404
|
+
e.value.events.datapointEnter && e.value.events.datapointEnter({ datapoint: l, seriesIndex: s }), Ye.value = {
|
|
405
405
|
datapoint: l,
|
|
406
406
|
seriesIndex: s,
|
|
407
407
|
series: j.value,
|
|
408
408
|
config: e.value
|
|
409
409
|
};
|
|
410
410
|
const o = e.value.style.tooltip.customFormat;
|
|
411
|
-
|
|
411
|
+
Al(o) && Sl(() => o({
|
|
412
412
|
datapoint: l,
|
|
413
413
|
seriesIndex: s,
|
|
414
414
|
series: j.value,
|
|
415
415
|
config: e.value
|
|
416
|
-
})) ?
|
|
416
|
+
})) ? Pe.value = o({
|
|
417
417
|
datapoint: l,
|
|
418
418
|
seriesIndex: s,
|
|
419
419
|
series: j.value,
|
|
420
420
|
config: e.value
|
|
421
|
-
}) : (l.clusterName && (t += `<div style="display:flex;gap:3px;align-items:center">${l.clusterName}</div>`), l.v.name && (t += `<div>${l.v.name}</div>`), t += `<div style="text-align:left;margin-top:6px;padding-top:6px;border-top:1px solid ${e.value.style.tooltip.borderColor}">`, t += `<div>${e.value.style.layout.dataLabels.xAxis.name}: <b>${isNaN(l.v.x) ? "-" :
|
|
421
|
+
}) : (l.clusterName && (t += `<div style="display:flex;gap:3px;align-items:center">${l.clusterName}</div>`), l.v.name && (t += `<div>${l.v.name}</div>`), t += `<div style="text-align:left;margin-top:6px;padding-top:6px;border-top:1px solid ${e.value.style.tooltip.borderColor}">`, t += `<div>${e.value.style.layout.dataLabels.xAxis.name}: <b>${isNaN(l.v.x) ? "-" : ue(
|
|
422
422
|
e.value.style.layout.plots.selectors.labels.x.formatter,
|
|
423
423
|
l.v.x,
|
|
424
424
|
Q({
|
|
@@ -428,7 +428,7 @@ const El = ["id"], Ol = ["id"], Nl = ["xmlns", "viewBox"], Wl = ["width", "heigh
|
|
|
428
428
|
r: e.value.style.tooltip.roundingValue
|
|
429
429
|
}),
|
|
430
430
|
{ datapoint: l, seriesIndex: s }
|
|
431
|
-
)}</b></div>`, t += `<div>${e.value.style.layout.dataLabels.yAxis.name}: <b>${isNaN(l.v.y) ? "-" :
|
|
431
|
+
)}</b></div>`, t += `<div>${e.value.style.layout.dataLabels.yAxis.name}: <b>${isNaN(l.v.y) ? "-" : ue(
|
|
432
432
|
e.value.style.layout.plots.selectors.labels.y.formatter,
|
|
433
433
|
l.v.y,
|
|
434
434
|
Q({
|
|
@@ -441,30 +441,30 @@ const El = ["id"], Ol = ["id"], Nl = ["xmlns", "viewBox"], Wl = ["width", "heigh
|
|
|
441
441
|
)}</b></div>`, t += `${e.value.style.layout.plots.deviation.translation}: <b>${Q({
|
|
442
442
|
v: l.deviation,
|
|
443
443
|
r: e.value.style.layout.plots.deviation.roundingValue
|
|
444
|
-
})}</b>`, t += "</div>",
|
|
444
|
+
})}</b>`, t += "</div>", Pe.value = `<div>${t}</div>`), ze.value = !0;
|
|
445
445
|
}
|
|
446
|
-
function
|
|
447
|
-
e.value.events.datapointLeave && e.value.events.datapointLeave({ datapoint: l, seriesIndex: s }),
|
|
446
|
+
function Ce(l, s) {
|
|
447
|
+
e.value.events.datapointLeave && e.value.events.datapointLeave({ datapoint: l, seriesIndex: s }), ze.value = !1, Y.value = void 0, p.value = null;
|
|
448
448
|
}
|
|
449
|
-
function
|
|
449
|
+
function Ve(l, s) {
|
|
450
450
|
e.value.events.datapointClick && e.value.events.datapointClick({ datapoint: l, seriesIndex: s });
|
|
451
451
|
}
|
|
452
|
-
function
|
|
453
|
-
|
|
452
|
+
function kt(l) {
|
|
453
|
+
F.value.includes(l) ? F.value = F.value.filter((s) => s !== l) : F.value.length < De.value.length - 1 && F.value.push(l);
|
|
454
454
|
}
|
|
455
|
-
function
|
|
456
|
-
|
|
455
|
+
function je(l = null) {
|
|
456
|
+
dl(() => {
|
|
457
457
|
const s = ["", e.value.table.translations.correlationCoefficient, e.value.table.translations.nbrPlots, `${e.value.style.layout.dataLabels.xAxis.name} ${e.value.table.translations.average}`, `${e.value.style.layout.dataLabels.yAxis.name} ${e.value.table.translations.average}`], t = j.value.map((u) => [
|
|
458
458
|
u.name,
|
|
459
459
|
u.correlation.coefficient,
|
|
460
460
|
u.plots.length,
|
|
461
461
|
u.plots.map((i) => i.v.x).reduce((i, f) => i + f, 0) / u.plots.length,
|
|
462
462
|
u.plots.map((i) => i.v.y).reduce((i, f) => i + f, 0) / u.plots.length
|
|
463
|
-
]), o = [[e.value.style.title.text], [e.value.style.title.subtitle.text], [[""], [""], [""]]].concat([s]).concat(t), a =
|
|
464
|
-
l ? l(a) :
|
|
463
|
+
]), o = [[e.value.style.title.text], [e.value.style.title.subtitle.text], [[""], [""], [""]]].concat([s]).concat(t), a = Ml(o);
|
|
464
|
+
l ? l(a) : Cl({ csvContent: a, title: e.value.style.title.text || "vue-ui-heatmap" });
|
|
465
465
|
});
|
|
466
466
|
}
|
|
467
|
-
const
|
|
467
|
+
const Ae = W(() => {
|
|
468
468
|
const l = [
|
|
469
469
|
e.value.table.translations.series,
|
|
470
470
|
e.value.table.translations.correlationCoefficient,
|
|
@@ -495,23 +495,23 @@ const El = ["id"], Ol = ["id"], Nl = ["xmlns", "viewBox"], Wl = ["width", "heigh
|
|
|
495
495
|
breakpoint: e.value.table.responsiveBreakpoint
|
|
496
496
|
};
|
|
497
497
|
return { head: l, body: s, config: t, colNames: l };
|
|
498
|
-
}),
|
|
499
|
-
function
|
|
500
|
-
|
|
498
|
+
}), re = M(!1);
|
|
499
|
+
function wt(l) {
|
|
500
|
+
re.value = l, et.value += 1;
|
|
501
501
|
}
|
|
502
|
-
function
|
|
503
|
-
|
|
502
|
+
function $t() {
|
|
503
|
+
q.value.showTable = !q.value.showTable;
|
|
504
504
|
}
|
|
505
|
-
function
|
|
506
|
-
|
|
505
|
+
function _t() {
|
|
506
|
+
q.value.showTooltip = !q.value.showTooltip;
|
|
507
507
|
}
|
|
508
|
-
const
|
|
509
|
-
function
|
|
510
|
-
|
|
508
|
+
const Se = M(!1);
|
|
509
|
+
function Ue() {
|
|
510
|
+
Se.value = !Se.value;
|
|
511
511
|
}
|
|
512
|
-
async function
|
|
513
|
-
if (!
|
|
514
|
-
const { width: s, height: t } =
|
|
512
|
+
async function Qt({ scale: l = 2 } = {}) {
|
|
513
|
+
if (!te.value) return;
|
|
514
|
+
const { width: s, height: t } = te.value.getBoundingClientRect(), o = s / t, { imageUri: a, base64: u } = await Nl({ domElement: te.value, base64: !0, img: !0, scale: l });
|
|
515
515
|
return {
|
|
516
516
|
imageUri: a,
|
|
517
517
|
base64: u,
|
|
@@ -521,16 +521,16 @@ const El = ["id"], Ol = ["id"], Nl = ["xmlns", "viewBox"], Wl = ["width", "heigh
|
|
|
521
521
|
aspectRatio: o
|
|
522
522
|
};
|
|
523
523
|
}
|
|
524
|
-
function
|
|
525
|
-
ge.value = l, e.value.style.layout.marginalBars.highlighter.highlightBothAxes && (me.value =
|
|
524
|
+
function el(l) {
|
|
525
|
+
ge.value = l, e.value.style.layout.marginalBars.highlighter.highlightBothAxes && (me.value = A.value.y.length - 2 - l);
|
|
526
526
|
}
|
|
527
|
-
function
|
|
527
|
+
function tl(l) {
|
|
528
528
|
me.value = l, e.value.style.layout.marginalBars.highlighter.highlightBothAxes && (ge.value = l);
|
|
529
529
|
}
|
|
530
|
-
function
|
|
530
|
+
function Ge() {
|
|
531
531
|
ge.value = null, me.value = null;
|
|
532
532
|
}
|
|
533
|
-
const
|
|
533
|
+
const Mt = {
|
|
534
534
|
circle: 1,
|
|
535
535
|
square: 1,
|
|
536
536
|
diamond: 1,
|
|
@@ -538,26 +538,26 @@ const El = ["id"], Ol = ["id"], Nl = ["xmlns", "viewBox"], Wl = ["width", "heigh
|
|
|
538
538
|
star: 1.3,
|
|
539
539
|
pentagon: 1.3,
|
|
540
540
|
hexagon: 1.3
|
|
541
|
-
},
|
|
542
|
-
function
|
|
541
|
+
}, k = (l) => l.toFixed(3);
|
|
542
|
+
function ll({ shape: l = "circle", cx: s, cy: t, r: o }) {
|
|
543
543
|
if (!e.value.usePerformanceMode) return "";
|
|
544
|
-
const a =
|
|
544
|
+
const a = Mt[l] * o;
|
|
545
545
|
switch (l) {
|
|
546
546
|
case "circle": {
|
|
547
|
-
const u =
|
|
547
|
+
const u = k(s - a), i = k(t), f = k(s + a), v = k(a);
|
|
548
548
|
return `M ${u} ${i} A ${v} ${v} 0 1 0 ${f} ${i} A ${v} ${v} 0 1 0 ${u} ${i} Z`;
|
|
549
549
|
}
|
|
550
550
|
case "square": {
|
|
551
|
-
const u =
|
|
551
|
+
const u = k(s - a), i = k(t - a), f = k(s + a), v = k(t + a);
|
|
552
552
|
return `M ${u} ${i} L ${f} ${i} L ${f} ${v} L ${u} ${v} Z`;
|
|
553
553
|
}
|
|
554
554
|
case "diamond": {
|
|
555
|
-
const u =
|
|
556
|
-
return `M ${u} ${
|
|
555
|
+
const u = k(s), i = k(t);
|
|
556
|
+
return `M ${u} ${k(t - a)} L ${k(s + a)} ${i} L ${u} ${k(t + a)} L ${k(s - a)} ${i} Z`;
|
|
557
557
|
}
|
|
558
558
|
case "triangle": {
|
|
559
559
|
const u = a * Math.sqrt(3), i = s, f = t - 2 / 3 * u, v = s - a, g = t + 1 / 3 * u, L = s + a, d = g;
|
|
560
|
-
return `M ${
|
|
560
|
+
return `M ${k(i)} ${k(f)} L ${k(v)} ${k(g)} L ${k(L)} ${k(d)} Z`;
|
|
561
561
|
}
|
|
562
562
|
case "star": {
|
|
563
563
|
const u = a, i = a * 0.5, f = [];
|
|
@@ -565,9 +565,9 @@ const El = ["id"], Ol = ["id"], Nl = ["xmlns", "viewBox"], Wl = ["width", "heigh
|
|
|
565
565
|
const L = (-90 + g * 36) * Math.PI / 180, d = g % 2 === 0 ? u : i;
|
|
566
566
|
f.push([s + d * Math.cos(L), t + d * Math.sin(L)]);
|
|
567
567
|
}
|
|
568
|
-
let v = `M ${
|
|
568
|
+
let v = `M ${k(f[0][0])} ${k(f[0][1])}`;
|
|
569
569
|
for (let g = 1; g < f.length; g += 1)
|
|
570
|
-
v += ` L ${
|
|
570
|
+
v += ` L ${k(f[g][0])} ${k(f[g][1])}`;
|
|
571
571
|
return v + " Z";
|
|
572
572
|
}
|
|
573
573
|
case "pentagon": {
|
|
@@ -576,8 +576,8 @@ const El = ["id"], Ol = ["id"], Nl = ["xmlns", "viewBox"], Wl = ["width", "heigh
|
|
|
576
576
|
const g = (-90 + v * 72) * Math.PI / 180;
|
|
577
577
|
i.push([s + a * Math.cos(g), t + a * Math.sin(g)]);
|
|
578
578
|
}
|
|
579
|
-
let f = `M ${
|
|
580
|
-
for (let v = 1; v < 5; v += 1) f += ` L ${
|
|
579
|
+
let f = `M ${k(i[0][0])} ${k(i[0][1])}`;
|
|
580
|
+
for (let v = 1; v < 5; v += 1) f += ` L ${k(i[v][0])} ${k(i[v][1])}`;
|
|
581
581
|
return f + " Z";
|
|
582
582
|
}
|
|
583
583
|
case "hexagon": {
|
|
@@ -586,47 +586,47 @@ const El = ["id"], Ol = ["id"], Nl = ["xmlns", "viewBox"], Wl = ["width", "heigh
|
|
|
586
586
|
const g = (-60 + v * 60) * Math.PI / 180;
|
|
587
587
|
i.push([s + a * Math.cos(g), t + a * Math.sin(g)]);
|
|
588
588
|
}
|
|
589
|
-
let f = `M ${
|
|
590
|
-
for (let v = 1; v < 6; v += 1) f += ` L ${
|
|
589
|
+
let f = `M ${k(i[0][0])} ${k(i[0][1])}`;
|
|
590
|
+
for (let v = 1; v < 6; v += 1) f += ` L ${k(i[v][0])} ${k(i[v][1])}`;
|
|
591
591
|
return f + " Z";
|
|
592
592
|
}
|
|
593
593
|
default: {
|
|
594
|
-
const u =
|
|
594
|
+
const u = k(s - a), i = k(t), f = k(s + a), v = k(a);
|
|
595
595
|
return `M ${u} ${i} A ${v} ${v} 0 1 0 ${f} ${i} A ${v} ${v} 0 1 0 ${u} ${i} Z`;
|
|
596
596
|
}
|
|
597
597
|
}
|
|
598
598
|
}
|
|
599
|
-
const
|
|
599
|
+
const al = W(() => {
|
|
600
600
|
if (!e.value.usePerformanceMode) return [""];
|
|
601
601
|
const { left: l, right: s, top: t, bottom: o } = n.value, a = Math.max(1, (s - l) * (o - t)), u = (d) => d / a * 1e4, i = 2.5, f = 1e3, v = e.value.style.layout.plots.stroke, g = e.value.style.layout.plots.strokeWidth, L = e.value.style.layout.plots.opacity;
|
|
602
602
|
return j.value.map((d) => {
|
|
603
|
-
const
|
|
604
|
-
for (const
|
|
605
|
-
const
|
|
606
|
-
if (
|
|
607
|
-
const B = Math.max(e.value.style.layout.plots.radius,
|
|
608
|
-
|
|
603
|
+
const _ = [];
|
|
604
|
+
for (const C of d.plots) {
|
|
605
|
+
const T = C.x, I = C.y;
|
|
606
|
+
if (T < l || T > s || I < t || I > o) continue;
|
|
607
|
+
const B = Math.max(e.value.style.layout.plots.radius, C.weight);
|
|
608
|
+
_.push(ll({
|
|
609
609
|
shape: d.shape || "circle",
|
|
610
|
-
cx:
|
|
611
|
-
cy:
|
|
610
|
+
cx: T,
|
|
611
|
+
cy: I,
|
|
612
612
|
r: B
|
|
613
613
|
}));
|
|
614
614
|
}
|
|
615
|
-
if (
|
|
615
|
+
if (!_.length) return null;
|
|
616
616
|
const P = u(d.plots.length) > i || d.plots.length > f;
|
|
617
617
|
return {
|
|
618
618
|
id: d.id,
|
|
619
|
-
d:
|
|
620
|
-
fill:
|
|
619
|
+
d: _.join(""),
|
|
620
|
+
fill: Te(d.color, L * 100),
|
|
621
621
|
stroke: P ? "none" : v,
|
|
622
622
|
strokeWidth: P ? 0 : g,
|
|
623
623
|
strokeOpacity: 1
|
|
624
624
|
};
|
|
625
625
|
}).filter(Boolean);
|
|
626
626
|
});
|
|
627
|
-
function
|
|
627
|
+
function ol() {
|
|
628
628
|
return e.value.usePerformanceMode ? (l) => {
|
|
629
|
-
const s =
|
|
629
|
+
const s = Fe.value;
|
|
630
630
|
if (!s) return;
|
|
631
631
|
const t = s.createSVGPoint();
|
|
632
632
|
t.x = l.clientX, t.y = l.clientY;
|
|
@@ -634,75 +634,107 @@ const El = ["id"], Ol = ["id"], Nl = ["xmlns", "viewBox"], Wl = ["width", "heigh
|
|
|
634
634
|
if (!o) return;
|
|
635
635
|
const a = o.inverse(), u = t.matrixTransform(a), i = 8, f = i * i;
|
|
636
636
|
let v = null, g = 1 / 0, L = -1;
|
|
637
|
-
if (j.value.forEach((d,
|
|
637
|
+
if (j.value.forEach((d, _) => {
|
|
638
638
|
d.plots.forEach((P) => {
|
|
639
|
-
const
|
|
640
|
-
|
|
639
|
+
const C = P.x - u.x, T = P.y - u.y, I = C * C + T * T;
|
|
640
|
+
I <= f && I < g && (g = I, v = P, L = _);
|
|
641
641
|
});
|
|
642
642
|
}), v)
|
|
643
|
-
Y.value !== v.id && (Y.value = v.id,
|
|
643
|
+
Y.value !== v.id && (Y.value = v.id, Re(v, L));
|
|
644
644
|
else if (Y.value) {
|
|
645
645
|
const d = p.value;
|
|
646
|
-
Y.value = void 0,
|
|
646
|
+
Y.value = void 0, Ce(d, L);
|
|
647
647
|
}
|
|
648
648
|
} : () => null;
|
|
649
649
|
}
|
|
650
|
-
const
|
|
651
|
-
function
|
|
650
|
+
const Ct = ol();
|
|
651
|
+
function sl() {
|
|
652
652
|
if (Y.value) {
|
|
653
653
|
const l = p.value;
|
|
654
|
-
Y.value = void 0,
|
|
654
|
+
Y.value = void 0, Ce(l, null);
|
|
655
655
|
}
|
|
656
656
|
}
|
|
657
|
-
function
|
|
657
|
+
function nl(l) {
|
|
658
658
|
const s = p.value;
|
|
659
659
|
if (s) {
|
|
660
660
|
const t = j.value.findIndex((o) => o.id === s.clusterId);
|
|
661
|
-
|
|
661
|
+
Ve(s, t >= 0 ? t : 0);
|
|
662
662
|
}
|
|
663
663
|
}
|
|
664
|
-
|
|
665
|
-
|
|
666
|
-
|
|
667
|
-
|
|
668
|
-
|
|
669
|
-
|
|
670
|
-
|
|
671
|
-
|
|
672
|
-
|
|
673
|
-
|
|
664
|
+
const be = W(() => {
|
|
665
|
+
const l = e.value.table.useDialog && !e.value.table.show, s = q.value.showTable;
|
|
666
|
+
return {
|
|
667
|
+
component: l ? Rt : Nt,
|
|
668
|
+
title: `${e.value.style.title.text}${e.value.style.title.subtitle.text ? `: ${e.value.style.title.subtitle.text}` : ""}`,
|
|
669
|
+
props: l ? {
|
|
670
|
+
backgroundColor: e.value.table.th.backgroundColor,
|
|
671
|
+
color: e.value.table.th.color,
|
|
672
|
+
headerColor: e.value.table.th.color,
|
|
673
|
+
headerBg: e.value.table.th.backgroundColor,
|
|
674
|
+
isFullscreen: re.value,
|
|
675
|
+
fullscreenParent: te.value,
|
|
676
|
+
forcedWidth: Math.min(800, window.innerWidth * 0.8)
|
|
677
|
+
} : {
|
|
678
|
+
hideDetails: !0,
|
|
679
|
+
config: {
|
|
680
|
+
open: s,
|
|
681
|
+
maxHeight: 1e4,
|
|
682
|
+
body: {
|
|
683
|
+
backgroundColor: e.value.style.backgroundColor,
|
|
684
|
+
color: e.value.style.color
|
|
685
|
+
},
|
|
686
|
+
head: {
|
|
687
|
+
backgroundColor: e.value.style.backgroundColor,
|
|
688
|
+
color: e.value.style.color
|
|
689
|
+
}
|
|
690
|
+
}
|
|
691
|
+
}
|
|
692
|
+
};
|
|
693
|
+
});
|
|
694
|
+
return Be(() => q.value.showTable, (l) => {
|
|
695
|
+
e.value.table.show || (l && e.value.table.useDialog && xe.value ? xe.value.open() : "close" in xe.value && xe.value.close());
|
|
696
|
+
}), Et({
|
|
697
|
+
getData: Jt,
|
|
698
|
+
getImage: Qt,
|
|
699
|
+
generatePdf: pt,
|
|
700
|
+
generateCsv: je,
|
|
701
|
+
generateImage: gt,
|
|
702
|
+
toggleTable: $t,
|
|
703
|
+
toggleTooltip: _t,
|
|
704
|
+
toggleAnnotator: Ue,
|
|
705
|
+
toggleFullscreen: wt
|
|
674
706
|
}), (l, s) => (r(), y("div", {
|
|
675
|
-
class:
|
|
707
|
+
class: St(`vue-ui-scatter ${re.value ? "vue-data-ui-wrapper-fullscreen" : ""} ${e.value.useCssAnimation ? "" : "vue-ui-dna"}`),
|
|
676
708
|
ref_key: "scatterChart",
|
|
677
|
-
ref:
|
|
678
|
-
id: `vue-ui-scatter_${
|
|
679
|
-
style:
|
|
680
|
-
onMouseenter: s[
|
|
681
|
-
onMouseleave: s[
|
|
709
|
+
ref: te,
|
|
710
|
+
id: `vue-ui-scatter_${N.value}`,
|
|
711
|
+
style: ne(`font-family:${e.value.style.fontFamily};width:100%; text-align:center;background:${e.value.style.backgroundColor};${e.value.responsive ? "height: 100%" : ""}`),
|
|
712
|
+
onMouseenter: s[7] || (s[7] = () => c(vt)(!0)),
|
|
713
|
+
onMouseleave: s[8] || (s[8] = () => c(vt)(!1))
|
|
682
714
|
}, [
|
|
683
|
-
e.value.userOptions.buttons.annotator ? (r(),
|
|
715
|
+
e.value.userOptions.buttons.annotator ? (r(), le(c(It), {
|
|
684
716
|
key: 0,
|
|
685
|
-
svgRef: c(
|
|
717
|
+
svgRef: c(Fe),
|
|
686
718
|
backgroundColor: e.value.style.backgroundColor,
|
|
687
719
|
color: e.value.style.color,
|
|
688
|
-
active:
|
|
689
|
-
onClose:
|
|
720
|
+
active: Se.value,
|
|
721
|
+
onClose: Ue
|
|
690
722
|
}, null, 8, ["svgRef", "backgroundColor", "color", "active"])) : x("", !0),
|
|
691
|
-
|
|
723
|
+
Ht.value ? (r(), y("div", {
|
|
692
724
|
key: 1,
|
|
693
725
|
ref_key: "noTitle",
|
|
694
|
-
ref:
|
|
726
|
+
ref: ot,
|
|
695
727
|
class: "vue-data-ui-no-title-space",
|
|
696
728
|
style: "height:36px; width: 100%;background:transparent"
|
|
697
729
|
}, null, 512)) : x("", !0),
|
|
698
730
|
e.value.style.title.text ? (r(), y("div", {
|
|
699
731
|
key: 2,
|
|
700
732
|
ref_key: "chartTitle",
|
|
701
|
-
ref:
|
|
733
|
+
ref: tt,
|
|
702
734
|
style: "width:100%;background:transparent"
|
|
703
735
|
}, [
|
|
704
|
-
(r(),
|
|
705
|
-
key: `title_${
|
|
736
|
+
(r(), le(Wl, {
|
|
737
|
+
key: `title_${st.value}`,
|
|
706
738
|
config: {
|
|
707
739
|
title: {
|
|
708
740
|
cy: "scatter-div-title",
|
|
@@ -716,95 +748,95 @@ const El = ["id"], Ol = ["id"], Nl = ["xmlns", "viewBox"], Wl = ["width", "heigh
|
|
|
716
748
|
}, null, 8, ["config"]))
|
|
717
749
|
], 512)) : x("", !0),
|
|
718
750
|
w("div", {
|
|
719
|
-
id: `legend-top-${
|
|
720
|
-
}, null, 8,
|
|
721
|
-
e.value.userOptions.show &&
|
|
751
|
+
id: `legend-top-${N.value}`
|
|
752
|
+
}, null, 8, Xl),
|
|
753
|
+
e.value.userOptions.show && Qe.value && (c(yt) || c(Ne)) ? (r(), le(c(Xt), {
|
|
722
754
|
ref_key: "details",
|
|
723
|
-
ref:
|
|
724
|
-
key: `user_options_${
|
|
755
|
+
ref: jt,
|
|
756
|
+
key: `user_options_${et.value}`,
|
|
725
757
|
backgroundColor: e.value.style.backgroundColor,
|
|
726
758
|
color: e.value.style.color,
|
|
727
|
-
isImaging: c(
|
|
728
|
-
isPrinting: c(
|
|
729
|
-
uid:
|
|
759
|
+
isImaging: c(ft),
|
|
760
|
+
isPrinting: c(ht),
|
|
761
|
+
uid: N.value,
|
|
730
762
|
hasTooltip: e.value.userOptions.buttons.tooltip && e.value.style.tooltip.show,
|
|
731
763
|
hasPdf: e.value.userOptions.buttons.pdf,
|
|
732
764
|
hasImg: e.value.userOptions.buttons.img,
|
|
733
765
|
hasXls: e.value.userOptions.buttons.csv,
|
|
734
766
|
hasTable: e.value.userOptions.buttons.table,
|
|
735
767
|
hasFullscreen: e.value.userOptions.buttons.fullscreen,
|
|
736
|
-
isTooltip:
|
|
737
|
-
isFullscreen:
|
|
768
|
+
isTooltip: q.value.showTooltip,
|
|
769
|
+
isFullscreen: re.value,
|
|
738
770
|
titles: { ...e.value.userOptions.buttonTitles },
|
|
739
|
-
chartElement:
|
|
771
|
+
chartElement: te.value,
|
|
740
772
|
position: e.value.userOptions.position,
|
|
741
773
|
hasAnnotator: e.value.userOptions.buttons.annotator,
|
|
742
|
-
isAnnotation:
|
|
774
|
+
isAnnotation: Se.value,
|
|
743
775
|
callbacks: e.value.userOptions.callbacks,
|
|
744
776
|
printScale: e.value.userOptions.print.scale,
|
|
745
|
-
onToggleFullscreen:
|
|
746
|
-
onGeneratePdf: c(
|
|
747
|
-
onGenerateCsv:
|
|
748
|
-
onGenerateImage: c(
|
|
749
|
-
onToggleTable:
|
|
750
|
-
onToggleTooltip:
|
|
751
|
-
onToggleAnnotator:
|
|
752
|
-
style:
|
|
753
|
-
visibility: c(
|
|
777
|
+
onToggleFullscreen: wt,
|
|
778
|
+
onGeneratePdf: c(pt),
|
|
779
|
+
onGenerateCsv: je,
|
|
780
|
+
onGenerateImage: c(gt),
|
|
781
|
+
onToggleTable: $t,
|
|
782
|
+
onToggleTooltip: _t,
|
|
783
|
+
onToggleAnnotator: Ue,
|
|
784
|
+
style: ne({
|
|
785
|
+
visibility: c(yt) ? c(Ne) ? "visible" : "hidden" : "visible"
|
|
754
786
|
})
|
|
755
|
-
},
|
|
787
|
+
}, Lt({ _: 2 }, [
|
|
756
788
|
l.$slots.menuIcon ? {
|
|
757
789
|
name: "menuIcon",
|
|
758
|
-
fn:
|
|
790
|
+
fn: X(({ isOpen: t, color: o }) => [
|
|
759
791
|
V(l.$slots, "menuIcon", fe(pe({ isOpen: t, color: o })), void 0, !0)
|
|
760
792
|
]),
|
|
761
793
|
key: "0"
|
|
762
794
|
} : void 0,
|
|
763
795
|
l.$slots.optionTooltip ? {
|
|
764
796
|
name: "optionTooltip",
|
|
765
|
-
fn:
|
|
797
|
+
fn: X(() => [
|
|
766
798
|
V(l.$slots, "optionTooltip", {}, void 0, !0)
|
|
767
799
|
]),
|
|
768
800
|
key: "1"
|
|
769
801
|
} : void 0,
|
|
770
802
|
l.$slots.optionPdf ? {
|
|
771
803
|
name: "optionPdf",
|
|
772
|
-
fn:
|
|
804
|
+
fn: X(() => [
|
|
773
805
|
V(l.$slots, "optionPdf", {}, void 0, !0)
|
|
774
806
|
]),
|
|
775
807
|
key: "2"
|
|
776
808
|
} : void 0,
|
|
777
809
|
l.$slots.optionCsv ? {
|
|
778
810
|
name: "optionCsv",
|
|
779
|
-
fn:
|
|
811
|
+
fn: X(() => [
|
|
780
812
|
V(l.$slots, "optionCsv", {}, void 0, !0)
|
|
781
813
|
]),
|
|
782
814
|
key: "3"
|
|
783
815
|
} : void 0,
|
|
784
816
|
l.$slots.optionImg ? {
|
|
785
817
|
name: "optionImg",
|
|
786
|
-
fn:
|
|
818
|
+
fn: X(() => [
|
|
787
819
|
V(l.$slots, "optionImg", {}, void 0, !0)
|
|
788
820
|
]),
|
|
789
821
|
key: "4"
|
|
790
822
|
} : void 0,
|
|
791
823
|
l.$slots.optionTable ? {
|
|
792
824
|
name: "optionTable",
|
|
793
|
-
fn:
|
|
825
|
+
fn: X(() => [
|
|
794
826
|
V(l.$slots, "optionTable", {}, void 0, !0)
|
|
795
827
|
]),
|
|
796
828
|
key: "5"
|
|
797
829
|
} : void 0,
|
|
798
830
|
l.$slots.optionFullscreen ? {
|
|
799
831
|
name: "optionFullscreen",
|
|
800
|
-
fn:
|
|
832
|
+
fn: X(({ toggleFullscreen: t, isFullscreen: o }) => [
|
|
801
833
|
V(l.$slots, "optionFullscreen", fe(pe({ toggleFullscreen: t, isFullscreen: o })), void 0, !0)
|
|
802
834
|
]),
|
|
803
835
|
key: "6"
|
|
804
836
|
} : void 0,
|
|
805
837
|
l.$slots.optionAnnotator ? {
|
|
806
838
|
name: "optionAnnotator",
|
|
807
|
-
fn:
|
|
839
|
+
fn: X(({ toggleAnnotator: t, isAnnotator: o }) => [
|
|
808
840
|
V(l.$slots, "optionAnnotator", fe(pe({ toggleAnnotator: t, isAnnotator: o })), void 0, !0)
|
|
809
841
|
]),
|
|
810
842
|
key: "7"
|
|
@@ -812,50 +844,50 @@ const El = ["id"], Ol = ["id"], Nl = ["xmlns", "viewBox"], Wl = ["width", "heigh
|
|
|
812
844
|
]), 1032, ["backgroundColor", "color", "isImaging", "isPrinting", "uid", "hasTooltip", "hasPdf", "hasImg", "hasXls", "hasTable", "hasFullscreen", "isTooltip", "isFullscreen", "titles", "chartElement", "position", "hasAnnotator", "isAnnotation", "callbacks", "printScale", "onGeneratePdf", "onGenerateImage", "style"])) : x("", !0),
|
|
813
845
|
(r(), y("svg", {
|
|
814
846
|
ref_key: "svgRef",
|
|
815
|
-
ref:
|
|
816
|
-
xmlns: c(
|
|
817
|
-
class:
|
|
818
|
-
viewBox: `0 0 ${
|
|
819
|
-
style:
|
|
820
|
-
onMouseleave:
|
|
847
|
+
ref: Fe,
|
|
848
|
+
xmlns: c($l),
|
|
849
|
+
class: St({ "vue-data-ui-fullscreen--on": re.value, "vue-data-ui-fulscreen--off": !re.value, animated: e.value.useCssAnimation }),
|
|
850
|
+
viewBox: `0 0 ${E.value.width <= 0 ? 10 : E.value.width} ${E.value.height <= 0 ? 10 : E.value.height}`,
|
|
851
|
+
style: ne(`max-width:100%;overflow:visible;background:transparent;color:${e.value.style.color}`),
|
|
852
|
+
onMouseleave: Ge
|
|
821
853
|
}, [
|
|
822
|
-
|
|
854
|
+
_e(c(Yt)),
|
|
823
855
|
l.$slots["chart-background"] ? (r(), y("foreignObject", {
|
|
824
856
|
key: 0,
|
|
825
857
|
x: 0,
|
|
826
858
|
y: 0,
|
|
827
|
-
width:
|
|
828
|
-
height:
|
|
859
|
+
width: E.value.width <= 0 ? 10 : E.value.width,
|
|
860
|
+
height: E.value.height <= 0 ? 10 : E.value.height,
|
|
829
861
|
style: {
|
|
830
862
|
pointerEvents: "none"
|
|
831
863
|
}
|
|
832
864
|
}, [
|
|
833
865
|
V(l.$slots, "chart-background", {}, void 0, !0)
|
|
834
|
-
], 8,
|
|
835
|
-
e.value.style.layout.axis.show ? (r(), y("g",
|
|
866
|
+
], 8, Rl)) : x("", !0),
|
|
867
|
+
e.value.style.layout.axis.show ? (r(), y("g", Vl, [
|
|
836
868
|
w("line", {
|
|
837
|
-
x1:
|
|
838
|
-
x2:
|
|
869
|
+
x1: D.value.x,
|
|
870
|
+
x2: D.value.x,
|
|
839
871
|
y1: n.value.top,
|
|
840
872
|
y2: n.value.bottom,
|
|
841
873
|
stroke: e.value.style.layout.axis.stroke,
|
|
842
874
|
"stroke-width": e.value.style.layout.axis.strokeWidth,
|
|
843
875
|
"stroke-linecap": "round"
|
|
844
|
-
}, null, 8,
|
|
876
|
+
}, null, 8, jl),
|
|
845
877
|
w("line", {
|
|
846
878
|
x1: n.value.left,
|
|
847
879
|
x2: n.value.right,
|
|
848
|
-
y1:
|
|
849
|
-
y2:
|
|
880
|
+
y1: D.value.y,
|
|
881
|
+
y2: D.value.y,
|
|
850
882
|
stroke: e.value.style.layout.axis.stroke,
|
|
851
883
|
"stroke-width": e.value.style.layout.axis.strokeWidth,
|
|
852
884
|
"stroke-linecap": "round"
|
|
853
|
-
}, null, 8,
|
|
885
|
+
}, null, 8, Ul)
|
|
854
886
|
])) : x("", !0),
|
|
855
|
-
e.value.style.layout.marginalBars.show ? (r(), y("g",
|
|
887
|
+
e.value.style.layout.marginalBars.show ? (r(), y("g", Gl, [
|
|
856
888
|
w("defs", null, [
|
|
857
889
|
w("linearGradient", {
|
|
858
|
-
id: `marginal_x_${
|
|
890
|
+
id: `marginal_x_${N.value}`,
|
|
859
891
|
x1: "0%",
|
|
860
892
|
y1: "0%",
|
|
861
893
|
x2: "0%",
|
|
@@ -864,14 +896,14 @@ const El = ["id"], Ol = ["id"], Nl = ["xmlns", "viewBox"], Wl = ["width", "heigh
|
|
|
864
896
|
w("stop", {
|
|
865
897
|
offset: "0%",
|
|
866
898
|
"stop-color": e.value.style.layout.marginalBars.fill
|
|
867
|
-
}, null, 8,
|
|
899
|
+
}, null, 8, Hl),
|
|
868
900
|
w("stop", {
|
|
869
901
|
offset: "100%",
|
|
870
902
|
"stop-color": e.value.style.backgroundColor
|
|
871
|
-
}, null, 8,
|
|
872
|
-
], 8,
|
|
903
|
+
}, null, 8, Zl)
|
|
904
|
+
], 8, ql),
|
|
873
905
|
w("linearGradient", {
|
|
874
|
-
id: `marginal_y_${
|
|
906
|
+
id: `marginal_y_${N.value}`,
|
|
875
907
|
x1: "0%",
|
|
876
908
|
x2: "100%",
|
|
877
909
|
y1: "0%",
|
|
@@ -880,124 +912,124 @@ const El = ["id"], Ol = ["id"], Nl = ["xmlns", "viewBox"], Wl = ["width", "heigh
|
|
|
880
912
|
w("stop", {
|
|
881
913
|
offset: "0%",
|
|
882
914
|
"stop-color": e.value.style.backgroundColor
|
|
883
|
-
}, null, 8,
|
|
915
|
+
}, null, 8, Kl),
|
|
884
916
|
w("stop", {
|
|
885
917
|
offset: "100%",
|
|
886
918
|
"stop-color": e.value.style.layout.marginalBars.fill
|
|
887
|
-
}, null, 8,
|
|
888
|
-
], 8,
|
|
919
|
+
}, null, 8, Ql)
|
|
920
|
+
], 8, Jl)
|
|
889
921
|
]),
|
|
890
|
-
(r(!0), y(
|
|
891
|
-
t &&
|
|
922
|
+
(r(!0), y(Z, null, K(A.value.x, (t, o) => (r(), y("g", null, [
|
|
923
|
+
t && A.value.avgX[o] ? (r(), y("rect", {
|
|
892
924
|
key: 0,
|
|
893
|
-
x:
|
|
894
|
-
y: n.value.top - e.value.style.layout.marginalBars.offset - t /
|
|
895
|
-
width: n.value.width /
|
|
896
|
-
height: t /
|
|
897
|
-
fill: e.value.style.layout.marginalBars.useGradient ? `url(#marginal_x_${
|
|
898
|
-
style:
|
|
925
|
+
x: A.value.avgX[o] - n.value.width / b.value / 2,
|
|
926
|
+
y: n.value.top - e.value.style.layout.marginalBars.offset - t / A.value.maxX * e.value.style.layout.marginalBars.size,
|
|
927
|
+
width: n.value.width / b.value <= 0 ? 1e-4 : n.value.width / b.value,
|
|
928
|
+
height: t / A.value.maxX * e.value.style.layout.marginalBars.size <= 0 ? 1e-4 : t / A.value.maxX * e.value.style.layout.marginalBars.size,
|
|
929
|
+
fill: e.value.style.layout.marginalBars.useGradient ? `url(#marginal_x_${N.value})` : e.value.style.layout.marginalBars.fill,
|
|
930
|
+
style: ne([`opacity:${e.value.style.layout.marginalBars.opacity}`, { "pointer-events": "none" }]),
|
|
899
931
|
stroke: e.value.style.backgroundColor,
|
|
900
932
|
"stroke-width": e.value.style.layout.marginalBars.strokeWidth,
|
|
901
933
|
rx: e.value.style.layout.marginalBars.borderRadius
|
|
902
|
-
}, null, 12,
|
|
903
|
-
|
|
934
|
+
}, null, 12, ea)) : x("", !0),
|
|
935
|
+
A.value.avgX[o] ? (r(), y("rect", {
|
|
904
936
|
key: 1,
|
|
905
|
-
x:
|
|
937
|
+
x: A.value.avgX[o] - n.value.width / b.value / 2,
|
|
906
938
|
y: n.value.top - e.value.style.layout.marginalBars.offset - e.value.style.layout.marginalBars.size,
|
|
907
|
-
width: n.value.width /
|
|
939
|
+
width: n.value.width / b.value <= 0 ? 1e-4 : n.value.width / b.value,
|
|
908
940
|
height: Math.max(0.1, e.value.style.layout.marginalBars.size),
|
|
909
941
|
fill: "transparent",
|
|
910
|
-
onMouseenter: (a) =>
|
|
911
|
-
onMouseleave: s[0] || (s[0] = (a) =>
|
|
912
|
-
}, null, 40,
|
|
913
|
-
|
|
942
|
+
onMouseenter: (a) => el(o),
|
|
943
|
+
onMouseleave: s[0] || (s[0] = (a) => Ge())
|
|
944
|
+
}, null, 40, ta)) : x("", !0),
|
|
945
|
+
A.value.avgX[o] && ge.value != null && ge.value === o ? (r(), y("g", la, [
|
|
914
946
|
w("rect", {
|
|
915
|
-
x:
|
|
947
|
+
x: A.value.avgX[o] - n.value.width / b.value / 2,
|
|
916
948
|
y: n.value.top,
|
|
917
|
-
width: n.value.width /
|
|
949
|
+
width: n.value.width / b.value <= 0 ? 1e-4 : n.value.width / b.value,
|
|
918
950
|
height: n.value.height,
|
|
919
951
|
fill: e.value.style.layout.marginalBars.highlighter.color,
|
|
920
952
|
"fill-opacity": e.value.style.layout.marginalBars.highlighter.opacity
|
|
921
|
-
}, null, 8,
|
|
953
|
+
}, null, 8, aa),
|
|
922
954
|
w("line", {
|
|
923
|
-
x1:
|
|
924
|
-
x2:
|
|
955
|
+
x1: A.value.avgX[o] - n.value.width / b.value / 2,
|
|
956
|
+
x2: A.value.avgX[o] - n.value.width / b.value / 2,
|
|
925
957
|
y1: 0,
|
|
926
958
|
y2: n.value.top + n.value.height,
|
|
927
959
|
stroke: e.value.style.layout.marginalBars.highlighter.stroke,
|
|
928
960
|
"stroke-dasharray": e.value.style.layout.marginalBars.highlighter.strokeDasharray,
|
|
929
961
|
"stroke-width": e.value.style.layout.marginalBars.highlighter.strokeWidth,
|
|
930
962
|
style: { transition: "none !important", animation: "none !important" }
|
|
931
|
-
}, null, 8,
|
|
963
|
+
}, null, 8, oa),
|
|
932
964
|
w("line", {
|
|
933
|
-
x1:
|
|
934
|
-
x2:
|
|
965
|
+
x1: A.value.avgX[o] - n.value.width / b.value / 2 + (n.value.width / b.value <= 0 ? 1e-4 : n.value.width / b.value),
|
|
966
|
+
x2: A.value.avgX[o] - n.value.width / b.value / 2 + (n.value.width / b.value <= 0 ? 1e-4 : n.value.width / b.value),
|
|
935
967
|
y1: 0,
|
|
936
968
|
y2: n.value.top + n.value.height,
|
|
937
969
|
stroke: e.value.style.layout.marginalBars.highlighter.stroke,
|
|
938
970
|
"stroke-dasharray": e.value.style.layout.marginalBars.highlighter.strokeDasharray,
|
|
939
971
|
"stroke-width": e.value.style.layout.marginalBars.highlighter.strokeWidth,
|
|
940
972
|
style: { transition: "none !important", animation: "none !important" }
|
|
941
|
-
}, null, 8,
|
|
973
|
+
}, null, 8, sa)
|
|
942
974
|
])) : x("", !0)
|
|
943
975
|
]))), 256)),
|
|
944
|
-
(r(!0), y(
|
|
945
|
-
t &&
|
|
976
|
+
(r(!0), y(Z, null, K(A.value.y, (t, o) => (r(), y("g", null, [
|
|
977
|
+
t && A.value.avgY[o] ? (r(), y("rect", {
|
|
946
978
|
key: 0,
|
|
947
979
|
x: n.value.right + e.value.style.layout.marginalBars.offset,
|
|
948
|
-
y:
|
|
949
|
-
height: n.value.height /
|
|
950
|
-
width: t /
|
|
951
|
-
fill: e.value.style.layout.marginalBars.useGradient ? `url(#marginal_y_${
|
|
952
|
-
style:
|
|
980
|
+
y: A.value.avgY[o] - n.value.height / b.value / 2,
|
|
981
|
+
height: n.value.height / b.value <= 0 ? 1e-4 : n.value.height / b.value,
|
|
982
|
+
width: t / A.value.maxY * e.value.style.layout.marginalBars.size <= 0 ? 1e-4 : t / A.value.maxY * e.value.style.layout.marginalBars.size,
|
|
983
|
+
fill: e.value.style.layout.marginalBars.useGradient ? `url(#marginal_y_${N.value})` : e.value.style.layout.marginalBars.fill,
|
|
984
|
+
style: ne([`opacity:${e.value.style.layout.marginalBars.opacity}`, { "pointer-events": "none" }]),
|
|
953
985
|
stroke: e.value.style.backgroundColor,
|
|
954
986
|
"stroke-width": e.value.style.layout.marginalBars.strokeWidth,
|
|
955
987
|
rx: e.value.style.layout.marginalBars.borderRadius
|
|
956
|
-
}, null, 12,
|
|
957
|
-
|
|
988
|
+
}, null, 12, na)) : x("", !0),
|
|
989
|
+
A.value.avgY[o] ? (r(), y("rect", {
|
|
958
990
|
key: 1,
|
|
959
991
|
x: n.value.right + e.value.style.layout.marginalBars.offset,
|
|
960
|
-
y:
|
|
992
|
+
y: A.value.avgY[o] - n.value.height / b.value / 2,
|
|
961
993
|
width: Math.max(0.1, e.value.style.layout.marginalBars.size),
|
|
962
|
-
height: n.value.height /
|
|
994
|
+
height: n.value.height / b.value <= 0 ? 1e-4 : n.value.height / b.value,
|
|
963
995
|
fill: "transparent",
|
|
964
|
-
onMouseenter: (a) =>
|
|
965
|
-
onMouseleave: s[1] || (s[1] = (a) =>
|
|
966
|
-
}, null, 40,
|
|
967
|
-
|
|
996
|
+
onMouseenter: (a) => tl(o),
|
|
997
|
+
onMouseleave: s[1] || (s[1] = (a) => Ge())
|
|
998
|
+
}, null, 40, ua)) : x("", !0),
|
|
999
|
+
A.value.avgY[o] && me.value != null && me.value === o ? (r(), y("g", ia, [
|
|
968
1000
|
w("rect", {
|
|
969
1001
|
x: n.value.left,
|
|
970
|
-
y:
|
|
1002
|
+
y: A.value.avgY[o] - n.value.height / b.value / 2,
|
|
971
1003
|
width: n.value.width,
|
|
972
|
-
height: n.value.height /
|
|
1004
|
+
height: n.value.height / b.value <= 0 ? 1e-4 : n.value.height / b.value,
|
|
973
1005
|
fill: e.value.style.layout.marginalBars.highlighter.color,
|
|
974
1006
|
"fill-opacity": e.value.style.layout.marginalBars.highlighter.opacity
|
|
975
|
-
}, null, 8,
|
|
1007
|
+
}, null, 8, ra),
|
|
976
1008
|
w("line", {
|
|
977
1009
|
x1: n.value.left,
|
|
978
|
-
x2:
|
|
979
|
-
y1:
|
|
980
|
-
y2:
|
|
1010
|
+
x2: E.value.width,
|
|
1011
|
+
y1: A.value.avgY[o] - n.value.height / b.value / 2,
|
|
1012
|
+
y2: A.value.avgY[o] - n.value.height / b.value / 2,
|
|
981
1013
|
stroke: e.value.style.layout.marginalBars.highlighter.stroke,
|
|
982
1014
|
"stroke-dasharray": e.value.style.layout.marginalBars.highlighter.strokeDasharray,
|
|
983
1015
|
"stroke-width": e.value.style.layout.marginalBars.highlighter.strokeWidth,
|
|
984
1016
|
style: { transition: "none !important", animation: "none !important" }
|
|
985
|
-
}, null, 8,
|
|
1017
|
+
}, null, 8, va),
|
|
986
1018
|
w("line", {
|
|
987
1019
|
x1: n.value.left,
|
|
988
|
-
x2:
|
|
989
|
-
y1:
|
|
990
|
-
y2:
|
|
1020
|
+
x2: E.value.width,
|
|
1021
|
+
y1: A.value.avgY[o] - n.value.height / b.value / 2 + (n.value.height / b.value <= 0 ? 1e-4 : n.value.height / b.value),
|
|
1022
|
+
y2: A.value.avgY[o] - n.value.height / b.value / 2 + (n.value.height / b.value <= 0 ? 1e-4 : n.value.height / b.value),
|
|
991
1023
|
stroke: e.value.style.layout.marginalBars.highlighter.stroke,
|
|
992
1024
|
"stroke-dasharray": e.value.style.layout.marginalBars.highlighter.strokeDasharray,
|
|
993
1025
|
"stroke-width": e.value.style.layout.marginalBars.highlighter.strokeWidth,
|
|
994
1026
|
style: { transition: "none !important", animation: "none !important" }
|
|
995
|
-
}, null, 8,
|
|
1027
|
+
}, null, 8, ya)
|
|
996
1028
|
])) : x("", !0)
|
|
997
1029
|
]))), 256)),
|
|
998
|
-
e.value.style.layout.marginalBars.showLines ? (r(), y("g",
|
|
999
|
-
(r(!0), y(
|
|
1000
|
-
|
|
1030
|
+
e.value.style.layout.marginalBars.showLines ? (r(), y("g", ca, [
|
|
1031
|
+
(r(!0), y(Z, null, K(Kt.value, (t) => (r(), y(Z, null, [
|
|
1032
|
+
F.value.includes(t.id) ? x("", !0) : (r(), y("path", {
|
|
1001
1033
|
key: 0,
|
|
1002
1034
|
d: `M ${t.dX}`,
|
|
1003
1035
|
stroke: e.value.style.backgroundColor,
|
|
@@ -1005,8 +1037,8 @@ const El = ["id"], Ol = ["id"], Nl = ["xmlns", "viewBox"], Wl = ["width", "heigh
|
|
|
1005
1037
|
"stroke-linecap": "round",
|
|
1006
1038
|
"stroke-linejoin": "round",
|
|
1007
1039
|
fill: "none"
|
|
1008
|
-
}, null, 8,
|
|
1009
|
-
|
|
1040
|
+
}, null, 8, da)),
|
|
1041
|
+
F.value.includes(t.id) ? x("", !0) : (r(), y("path", {
|
|
1010
1042
|
key: 1,
|
|
1011
1043
|
d: `M ${t.dX}`,
|
|
1012
1044
|
stroke: t.color,
|
|
@@ -1014,8 +1046,8 @@ const El = ["id"], Ol = ["id"], Nl = ["xmlns", "viewBox"], Wl = ["width", "heigh
|
|
|
1014
1046
|
"stroke-linecap": "round",
|
|
1015
1047
|
"stroke-linejoin": "round",
|
|
1016
1048
|
fill: "none"
|
|
1017
|
-
}, null, 8,
|
|
1018
|
-
|
|
1049
|
+
}, null, 8, ha)),
|
|
1050
|
+
F.value.includes(t.id) ? x("", !0) : (r(), y("path", {
|
|
1019
1051
|
key: 2,
|
|
1020
1052
|
d: `M ${t.dY}`,
|
|
1021
1053
|
stroke: e.value.style.backgroundColor,
|
|
@@ -1023,8 +1055,8 @@ const El = ["id"], Ol = ["id"], Nl = ["xmlns", "viewBox"], Wl = ["width", "heigh
|
|
|
1023
1055
|
"stroke-linecap": "round",
|
|
1024
1056
|
"stroke-linejoin": "round",
|
|
1025
1057
|
fill: "none"
|
|
1026
|
-
}, null, 8,
|
|
1027
|
-
|
|
1058
|
+
}, null, 8, fa)),
|
|
1059
|
+
F.value.includes(t.id) ? x("", !0) : (r(), y("path", {
|
|
1028
1060
|
key: 3,
|
|
1029
1061
|
d: `M ${t.dY}`,
|
|
1030
1062
|
stroke: t.color,
|
|
@@ -1032,58 +1064,58 @@ const El = ["id"], Ol = ["id"], Nl = ["xmlns", "viewBox"], Wl = ["width", "heigh
|
|
|
1032
1064
|
"stroke-linecap": "round",
|
|
1033
1065
|
"stroke-linejoin": "round",
|
|
1034
1066
|
fill: "none"
|
|
1035
|
-
}, null, 8,
|
|
1067
|
+
}, null, 8, pa))
|
|
1036
1068
|
], 64))), 256))
|
|
1037
1069
|
])) : x("", !0)
|
|
1038
1070
|
])) : x("", !0),
|
|
1039
|
-
e.value.style.layout.plots.giftWrap.show ? (r(), y("g",
|
|
1040
|
-
(r(!0), y(
|
|
1071
|
+
e.value.style.layout.plots.giftWrap.show ? (r(), y("g", ga, [
|
|
1072
|
+
(r(!0), y(Z, null, K(j.value, (t, o) => (r(), y("g", null, [
|
|
1041
1073
|
t.plots.length > 2 ? (r(), y("polygon", {
|
|
1042
1074
|
key: 0,
|
|
1043
|
-
points: c(
|
|
1044
|
-
fill: c(
|
|
1075
|
+
points: c(_l)({ series: t.plots }),
|
|
1076
|
+
fill: c(Te)(t.color, e.value.style.layout.plots.giftWrap.fillOpacity * 100),
|
|
1045
1077
|
"stroke-width": e.value.style.layout.plots.giftWrap.strokeWidth,
|
|
1046
1078
|
"stroke-dasharray": e.value.style.layout.plots.giftWrap.strokeDasharray,
|
|
1047
1079
|
stroke: t.color,
|
|
1048
1080
|
"stroke-linejoin": "round",
|
|
1049
1081
|
"stroke-linecap": "round"
|
|
1050
|
-
}, null, 8,
|
|
1082
|
+
}, null, 8, ma)) : x("", !0)
|
|
1051
1083
|
]))), 256))
|
|
1052
1084
|
])) : x("", !0),
|
|
1053
|
-
e.value.usePerformanceMode ? x("", !0) : (r(!0), y(
|
|
1054
|
-
!t.shape || t.shape === "circle" ? (r(), y("g",
|
|
1055
|
-
(r(!0), y(
|
|
1085
|
+
e.value.usePerformanceMode ? x("", !0) : (r(!0), y(Z, { key: 4 }, K(j.value, (t, o) => (r(), y("g", null, [
|
|
1086
|
+
!t.shape || t.shape === "circle" ? (r(), y("g", xa, [
|
|
1087
|
+
(r(!0), y(Z, null, K(t.plots, (a, u) => (r(), y("circle", {
|
|
1056
1088
|
cx: a.x,
|
|
1057
1089
|
cy: a.y,
|
|
1058
1090
|
r: Y.value && Y.value === a.id ? a.weight * 2 : a.weight,
|
|
1059
|
-
fill: c(
|
|
1091
|
+
fill: c(Te)(t.color, e.value.style.layout.plots.opacity * 100),
|
|
1060
1092
|
stroke: e.value.style.layout.plots.stroke,
|
|
1061
1093
|
"stroke-width": e.value.style.layout.plots.strokeWidth,
|
|
1062
|
-
style:
|
|
1063
|
-
onMouseover: (i) =>
|
|
1064
|
-
onMouseleave: (i) =>
|
|
1065
|
-
onClick: (i) =>
|
|
1066
|
-
}, null, 44,
|
|
1067
|
-
])) : (r(), y("g",
|
|
1068
|
-
(r(!0), y(
|
|
1094
|
+
style: ne(`opacity:${Y.value && Y.value === a.id ? 1 : e.value.style.layout.plots.significance.useDistanceOpacity ? 1 - Math.abs(a.deviation) / xt.value : e.value.style.layout.plots.significance.show && Math.abs(a.deviation) > e.value.style.layout.plots.significance.deviationThreshold ? e.value.style.layout.plots.significance.opacity : 1}`),
|
|
1095
|
+
onMouseover: (i) => Re(a, o),
|
|
1096
|
+
onMouseleave: (i) => Ce(a, o),
|
|
1097
|
+
onClick: (i) => Ve(a, o)
|
|
1098
|
+
}, null, 44, ba))), 256))
|
|
1099
|
+
])) : (r(), y("g", ka, [
|
|
1100
|
+
(r(!0), y(Z, null, K(t.plots, (a, u) => (r(), le(Ke, {
|
|
1069
1101
|
plot: { x: a.x, y: a.y },
|
|
1070
1102
|
radius: Y.value && Y.value === a.id ? a.weight * 2 : a.weight,
|
|
1071
1103
|
shape: t.shape,
|
|
1072
|
-
color: c(
|
|
1104
|
+
color: c(Te)(t.color, e.value.style.layout.plots.opacity * 100),
|
|
1073
1105
|
stroke: e.value.style.layout.plots.stroke,
|
|
1074
1106
|
strokeWidth: e.value.style.layout.plots.strokeWidth,
|
|
1075
|
-
style:
|
|
1076
|
-
onMouseover: (i) =>
|
|
1077
|
-
onMouseleave: (i) =>
|
|
1078
|
-
onClick: (i) =>
|
|
1107
|
+
style: ne(`opacity:${Y.value && Y.value === a.id ? 1 : e.value.style.layout.plots.significance.useDistanceOpacity ? 1 - Math.abs(a.deviation) / xt.value : e.value.style.layout.plots.significance.show && Math.abs(a.deviation) > e.value.style.layout.plots.significance.deviationThreshold ? e.value.style.layout.plots.significance.opacity : 1}`),
|
|
1108
|
+
onMouseover: (i) => Re(a, o),
|
|
1109
|
+
onMouseleave: (i) => Ce(a, o),
|
|
1110
|
+
onClick: (i) => Ve(a, o)
|
|
1079
1111
|
}, null, 8, ["plot", "radius", "shape", "color", "stroke", "strokeWidth", "style", "onMouseover", "onMouseleave", "onClick"]))), 256))
|
|
1080
1112
|
]))
|
|
1081
1113
|
]))), 256)),
|
|
1082
|
-
e.value.usePerformanceMode ? (r(), y(
|
|
1114
|
+
e.value.usePerformanceMode ? (r(), y(Z, { key: 5 }, [
|
|
1083
1115
|
w("g", {
|
|
1084
|
-
"clip-path": `url(#clip_path_${
|
|
1116
|
+
"clip-path": `url(#clip_path_${N.value})`
|
|
1085
1117
|
}, [
|
|
1086
|
-
(r(!0), y(
|
|
1118
|
+
(r(!0), y(Z, null, K(al.value, (t) => (r(), y("path", {
|
|
1087
1119
|
key: t.id,
|
|
1088
1120
|
d: t.d,
|
|
1089
1121
|
fill: t.fill,
|
|
@@ -1092,14 +1124,14 @@ const El = ["id"], Ol = ["id"], Nl = ["xmlns", "viewBox"], Wl = ["width", "heigh
|
|
|
1092
1124
|
"stroke-opacity": t.strokeOpacity,
|
|
1093
1125
|
"vector-effect": "non-scaling-stroke",
|
|
1094
1126
|
"paint-order": "fill"
|
|
1095
|
-
}, null, 8,
|
|
1096
|
-
], 8,
|
|
1097
|
-
p.value && e.value.style.layout.plots.selectors.show ? (r(), y("g",
|
|
1098
|
-
|
|
1127
|
+
}, null, 8, $a))), 128))
|
|
1128
|
+
], 8, wa),
|
|
1129
|
+
p.value && e.value.style.layout.plots.selectors.show ? (r(), y("g", _a, [
|
|
1130
|
+
_e(Ke, {
|
|
1099
1131
|
shape: p.value.shape || "circle",
|
|
1100
1132
|
color: p.value.color,
|
|
1101
1133
|
plot: { x: p.value.x, y: p.value.y },
|
|
1102
|
-
radius: Math.max(4 *
|
|
1134
|
+
radius: Math.max(4 * Mt[p.value.shape || "circle"], p.value.weight * 2),
|
|
1103
1135
|
stroke: e.value.style.layout.plots.stroke,
|
|
1104
1136
|
strokeWidth: e.value.style.layout.plots.strokeWidth
|
|
1105
1137
|
}, null, 8, ["shape", "color", "plot", "radius", "stroke", "strokeWidth"])
|
|
@@ -1110,14 +1142,14 @@ const El = ["id"], Ol = ["id"], Nl = ["xmlns", "viewBox"], Wl = ["width", "heigh
|
|
|
1110
1142
|
width: Math.max(1e-4, n.value.width),
|
|
1111
1143
|
height: Math.max(1e-4, n.value.height),
|
|
1112
1144
|
fill: "transparent",
|
|
1113
|
-
onMousemove: s[2] || (s[2] = (...t) => c(
|
|
1114
|
-
onMouseleave:
|
|
1115
|
-
onClick:
|
|
1116
|
-
}, null, 40,
|
|
1145
|
+
onMousemove: s[2] || (s[2] = (...t) => c(Ct) && c(Ct)(...t)),
|
|
1146
|
+
onMouseleave: sl,
|
|
1147
|
+
onClick: nl
|
|
1148
|
+
}, null, 40, Ma)
|
|
1117
1149
|
], 64)) : x("", !0),
|
|
1118
|
-
p.value && e.value.style.layout.plots.selectors.show ? (r(), y("g",
|
|
1150
|
+
p.value && e.value.style.layout.plots.selectors.show ? (r(), y("g", Ca, [
|
|
1119
1151
|
w("line", {
|
|
1120
|
-
x1:
|
|
1152
|
+
x1: D.value.x,
|
|
1121
1153
|
x2: p.value.x,
|
|
1122
1154
|
y1: p.value.y,
|
|
1123
1155
|
y2: p.value.y,
|
|
@@ -1126,190 +1158,190 @@ const El = ["id"], Ol = ["id"], Nl = ["xmlns", "viewBox"], Wl = ["width", "heigh
|
|
|
1126
1158
|
"stroke-dasharray": e.value.style.layout.plots.selectors.strokeDasharray,
|
|
1127
1159
|
"stroke-linecap": "round",
|
|
1128
1160
|
class: "line-pointer"
|
|
1129
|
-
}, null, 8,
|
|
1161
|
+
}, null, 8, Aa),
|
|
1130
1162
|
w("line", {
|
|
1131
1163
|
x1: p.value.x,
|
|
1132
1164
|
x2: p.value.x,
|
|
1133
|
-
y1:
|
|
1165
|
+
y1: D.value.y,
|
|
1134
1166
|
y2: p.value.y,
|
|
1135
1167
|
stroke: e.value.style.layout.plots.selectors.stroke,
|
|
1136
1168
|
"stroke-width": e.value.style.layout.plots.selectors.strokeWidth,
|
|
1137
1169
|
"stroke-dasharray": e.value.style.layout.plots.selectors.strokeDasharray,
|
|
1138
1170
|
"stroke-linecap": "round",
|
|
1139
1171
|
class: "line-pointer"
|
|
1140
|
-
}, null, 8,
|
|
1172
|
+
}, null, 8, Sa),
|
|
1141
1173
|
w("text", {
|
|
1142
|
-
x:
|
|
1174
|
+
x: D.value.x + (p.value.x > D.value.x ? -6 : 6),
|
|
1143
1175
|
y: p.value.y + e.value.style.layout.plots.selectors.labels.fontSize / 3,
|
|
1144
1176
|
"font-size": e.value.style.layout.plots.selectors.labels.fontSize,
|
|
1145
1177
|
fill: e.value.style.layout.plots.selectors.labels.color,
|
|
1146
1178
|
"font-weight": e.value.style.layout.plots.selectors.labels.bold ? "bold" : "normal",
|
|
1147
|
-
"text-anchor": p.value.x >
|
|
1148
|
-
}, G(c(
|
|
1179
|
+
"text-anchor": p.value.x > D.value.x ? "end" : "start"
|
|
1180
|
+
}, G(c(ue)(
|
|
1149
1181
|
e.value.style.layout.plots.selectors.labels.y.formatter,
|
|
1150
|
-
c(
|
|
1182
|
+
c(H)(p.value.v.y),
|
|
1151
1183
|
c(Q)({
|
|
1152
1184
|
p: e.value.style.layout.plots.selectors.labels.prefix,
|
|
1153
|
-
v: c(
|
|
1185
|
+
v: c(H)(p.value.v.y),
|
|
1154
1186
|
s: e.value.style.layout.plots.selectors.labels.suffix,
|
|
1155
1187
|
r: e.value.style.layout.plots.selectors.labels.rounding
|
|
1156
1188
|
}),
|
|
1157
1189
|
{ datapoint: p.value }
|
|
1158
|
-
)), 9,
|
|
1190
|
+
)), 9, La),
|
|
1159
1191
|
w("text", {
|
|
1160
1192
|
x: p.value.x,
|
|
1161
|
-
y:
|
|
1193
|
+
y: D.value.y + (p.value.y > D.value.y ? -6 : e.value.style.layout.plots.selectors.labels.fontSize + 6),
|
|
1162
1194
|
"font-size": e.value.style.layout.plots.selectors.labels.fontSize,
|
|
1163
1195
|
fill: e.value.style.layout.plots.selectors.labels.color,
|
|
1164
1196
|
"font-weight": e.value.style.layout.plots.selectors.labels.bold ? "bold" : "normal",
|
|
1165
1197
|
"text-anchor": "middle"
|
|
1166
|
-
}, G(c(
|
|
1198
|
+
}, G(c(ue)(
|
|
1167
1199
|
e.value.style.layout.plots.selectors.labels.y.formatter,
|
|
1168
|
-
c(
|
|
1200
|
+
c(H)(p.value.v.x),
|
|
1169
1201
|
c(Q)({
|
|
1170
1202
|
p: e.value.style.layout.plots.selectors.labels.prefix,
|
|
1171
|
-
v: c(
|
|
1203
|
+
v: c(H)(p.value.v.x),
|
|
1172
1204
|
s: e.value.style.layout.plots.selectors.labels.suffix,
|
|
1173
1205
|
r: e.value.style.layout.plots.selectors.labels.rounding
|
|
1174
1206
|
}),
|
|
1175
1207
|
{ datapoint: p.value }
|
|
1176
|
-
)), 9,
|
|
1208
|
+
)), 9, Ba),
|
|
1177
1209
|
w("circle", {
|
|
1178
|
-
cx:
|
|
1210
|
+
cx: D.value.x,
|
|
1179
1211
|
cy: p.value.y,
|
|
1180
1212
|
r: e.value.style.layout.plots.selectors.markers.radius,
|
|
1181
1213
|
fill: e.value.style.layout.plots.selectors.markers.fill,
|
|
1182
1214
|
stroke: e.value.style.layout.plots.selectors.markers.stroke,
|
|
1183
1215
|
"stroke-width": e.value.style.layout.plots.selectors.markers.strokeWidth,
|
|
1184
1216
|
class: "line-pointer"
|
|
1185
|
-
}, null, 8,
|
|
1217
|
+
}, null, 8, Ta),
|
|
1186
1218
|
w("circle", {
|
|
1187
1219
|
cx: p.value.x,
|
|
1188
|
-
cy:
|
|
1220
|
+
cy: D.value.y,
|
|
1189
1221
|
r: e.value.style.layout.plots.selectors.markers.radius,
|
|
1190
1222
|
fill: e.value.style.layout.plots.selectors.markers.fill,
|
|
1191
1223
|
stroke: e.value.style.layout.plots.selectors.markers.stroke,
|
|
1192
1224
|
"stroke-width": e.value.style.layout.plots.selectors.markers.strokeWidth,
|
|
1193
1225
|
class: "line-pointer"
|
|
1194
|
-
}, null, 8,
|
|
1226
|
+
}, null, 8, za),
|
|
1195
1227
|
e.value.style.layout.plots.selectors.labels.showName ? (r(), y("text", {
|
|
1196
1228
|
key: 0,
|
|
1197
1229
|
x: p.value.x,
|
|
1198
|
-
y: p.value.y + (p.value.y <
|
|
1230
|
+
y: p.value.y + (p.value.y < D.value.y ? -e.value.style.layout.plots.selectors.labels.fontSize / 2 : e.value.style.layout.plots.selectors.labels.fontSize),
|
|
1199
1231
|
"font-size": e.value.style.layout.plots.selectors.labels.fontSize,
|
|
1200
1232
|
fill: e.value.style.layout.plots.selectors.labels.color,
|
|
1201
1233
|
"font-weight": e.value.style.layout.plots.selectors.labels.bold ? "bold" : "normal",
|
|
1202
|
-
"text-anchor": p.value.x < n.value.left + 100 ? "start" : p.value.x > n.value.right - 100 ? "end" : p.value.x >
|
|
1203
|
-
}, G(p.value.v.name), 9,
|
|
1234
|
+
"text-anchor": p.value.x < n.value.left + 100 ? "start" : p.value.x > n.value.right - 100 ? "end" : p.value.x > D.value.x ? "start" : "end"
|
|
1235
|
+
}, G(p.value.v.name), 9, Pa)) : x("", !0)
|
|
1204
1236
|
])) : x("", !0),
|
|
1205
1237
|
e.value.style.layout.dataLabels.xAxis.show ? (r(), y("g", {
|
|
1206
1238
|
key: 7,
|
|
1207
1239
|
ref_key: "xAxisLabelLeft",
|
|
1208
|
-
ref:
|
|
1240
|
+
ref: Oe
|
|
1209
1241
|
}, [
|
|
1210
1242
|
w("text", {
|
|
1211
|
-
id: `vue-ui-scatter-xAxis-label-${
|
|
1243
|
+
id: `vue-ui-scatter-xAxis-label-${N.value}`,
|
|
1212
1244
|
transform: `translate(${e.value.style.layout.dataLabels.xAxis.fontSize}, ${n.value.top + n.value.height / 2}), rotate(-90)`,
|
|
1213
1245
|
"text-anchor": "middle",
|
|
1214
1246
|
"font-size": e.value.style.layout.dataLabels.xAxis.fontSize,
|
|
1215
1247
|
"font-weight": e.value.style.layout.dataLabels.xAxis.bold ? "bold" : "normal",
|
|
1216
1248
|
fill: e.value.style.layout.dataLabels.xAxis.color
|
|
1217
|
-
}, G(e.value.style.layout.dataLabels.xAxis.name), 9,
|
|
1249
|
+
}, G(e.value.style.layout.dataLabels.xAxis.name), 9, Oa),
|
|
1218
1250
|
w("text", {
|
|
1219
1251
|
"text-anchor": "middle",
|
|
1220
1252
|
"font-size": e.value.style.layout.dataLabels.xAxis.fontSize,
|
|
1221
1253
|
fill: e.value.style.layout.dataLabels.xAxis.color,
|
|
1222
|
-
transform: `translate(${e.value.style.layout.dataLabels.xAxis.name ? e.value.style.layout.dataLabels.xAxis.fontSize * 3 : 0}, ${
|
|
1223
|
-
}, G(c(
|
|
1254
|
+
transform: `translate(${e.value.style.layout.dataLabels.xAxis.name ? e.value.style.layout.dataLabels.xAxis.fontSize * 3 : 0}, ${D.value.y + e.value.style.layout.dataLabels.xAxis.fontSize / 3}), rotate(-90)`
|
|
1255
|
+
}, G(c(ue)(
|
|
1224
1256
|
e.value.style.layout.plots.selectors.labels.x.formatter,
|
|
1225
|
-
c(
|
|
1257
|
+
c(H)(z.value.xMin),
|
|
1226
1258
|
c(Q)({
|
|
1227
1259
|
p: e.value.style.layout.plots.selectors.labels.prefix,
|
|
1228
|
-
v: c(
|
|
1260
|
+
v: c(H)(z.value.xMin),
|
|
1229
1261
|
s: e.value.style.layout.plots.selectors.labels.suffix,
|
|
1230
1262
|
r: e.value.style.layout.dataLabels.xAxis.rounding
|
|
1231
1263
|
})
|
|
1232
|
-
)), 9,
|
|
1264
|
+
)), 9, Ea)
|
|
1233
1265
|
], 512)) : x("", !0),
|
|
1234
1266
|
e.value.style.layout.dataLabels.xAxis.show ? (r(), y("text", {
|
|
1235
1267
|
key: 8,
|
|
1236
1268
|
ref_key: "xAxisLabelRight",
|
|
1237
|
-
ref:
|
|
1269
|
+
ref: Ut,
|
|
1238
1270
|
"text-anchor": "middle",
|
|
1239
|
-
transform: `translate(${n.value.right + e.value.style.layout.padding.right + 6}, ${
|
|
1271
|
+
transform: `translate(${n.value.right + e.value.style.layout.padding.right + 6}, ${D.value.y + e.value.style.layout.dataLabels.xAxis.fontSize / 3}), rotate(-90)`,
|
|
1240
1272
|
"font-size": e.value.style.layout.dataLabels.xAxis.fontSize,
|
|
1241
1273
|
fill: e.value.style.layout.dataLabels.xAxis.color
|
|
1242
|
-
}, G(c(
|
|
1274
|
+
}, G(c(ue)(
|
|
1243
1275
|
e.value.style.layout.plots.selectors.labels.x.formatter,
|
|
1244
|
-
c(
|
|
1276
|
+
c(H)(z.value.xMax),
|
|
1245
1277
|
c(Q)({
|
|
1246
1278
|
p: e.value.style.layout.plots.selectors.labels.prefix,
|
|
1247
|
-
v: c(
|
|
1279
|
+
v: c(H)(z.value.xMax),
|
|
1248
1280
|
s: e.value.style.layout.plots.selectors.labels.suffix,
|
|
1249
1281
|
r: e.value.style.layout.dataLabels.xAxis.rounding
|
|
1250
1282
|
})
|
|
1251
|
-
)), 9,
|
|
1283
|
+
)), 9, Da)) : x("", !0),
|
|
1252
1284
|
e.value.style.layout.dataLabels.yAxis.show ? (r(), y("text", {
|
|
1253
1285
|
key: 9,
|
|
1254
1286
|
ref_key: "yAxisLabelTop",
|
|
1255
|
-
ref:
|
|
1256
|
-
x:
|
|
1287
|
+
ref: Gt,
|
|
1288
|
+
x: D.value.x,
|
|
1257
1289
|
y: n.value.top - e.value.style.layout.dataLabels.yAxis.fontSize,
|
|
1258
1290
|
"text-anchor": "middle",
|
|
1259
1291
|
"font-size": e.value.style.layout.dataLabels.yAxis.fontSize,
|
|
1260
1292
|
fill: e.value.style.layout.dataLabels.yAxis.color
|
|
1261
|
-
}, G(c(
|
|
1293
|
+
}, G(c(ue)(
|
|
1262
1294
|
e.value.style.layout.plots.selectors.labels.y.formatter,
|
|
1263
|
-
c(
|
|
1295
|
+
c(H)(z.value.yMax),
|
|
1264
1296
|
c(Q)({
|
|
1265
1297
|
p: e.value.style.layout.plots.selectors.labels.prefix,
|
|
1266
|
-
v: c(
|
|
1298
|
+
v: c(H)(z.value.yMax),
|
|
1267
1299
|
s: e.value.style.layout.plots.selectors.labels.suffix,
|
|
1268
1300
|
r: e.value.style.layout.dataLabels.yAxis.rounding
|
|
1269
1301
|
})
|
|
1270
|
-
)), 9,
|
|
1302
|
+
)), 9, Wa)) : x("", !0),
|
|
1271
1303
|
e.value.style.layout.dataLabels.yAxis.show ? (r(), y("g", {
|
|
1272
1304
|
key: 10,
|
|
1273
1305
|
ref_key: "yAxisLabelBottom",
|
|
1274
|
-
ref:
|
|
1306
|
+
ref: Ee
|
|
1275
1307
|
}, [
|
|
1276
1308
|
w("text", {
|
|
1277
|
-
x:
|
|
1278
|
-
y:
|
|
1309
|
+
x: D.value.x,
|
|
1310
|
+
y: E.value.height - e.value.style.layout.dataLabels.yAxis.fontSize * 2,
|
|
1279
1311
|
"text-anchor": "middle",
|
|
1280
1312
|
"font-size": e.value.style.layout.dataLabels.yAxis.fontSize,
|
|
1281
1313
|
fill: e.value.style.layout.dataLabels.yAxis.color
|
|
1282
|
-
}, G(c(
|
|
1314
|
+
}, G(c(ue)(
|
|
1283
1315
|
e.value.style.layout.plots.selectors.labels.y.formatter,
|
|
1284
|
-
c(
|
|
1316
|
+
c(H)(z.value.yMin),
|
|
1285
1317
|
c(Q)({
|
|
1286
1318
|
p: e.value.style.layout.plots.selectors.labels.prefix,
|
|
1287
|
-
v: c(
|
|
1319
|
+
v: c(H)(z.value.yMin),
|
|
1288
1320
|
s: e.value.style.layout.plots.selectors.labels.suffix,
|
|
1289
1321
|
r: e.value.style.layout.dataLabels.yAxis.rounding
|
|
1290
1322
|
})
|
|
1291
|
-
)), 9,
|
|
1323
|
+
)), 9, Na),
|
|
1292
1324
|
w("text", {
|
|
1293
1325
|
"text-anchor": "middle",
|
|
1294
1326
|
"font-size": e.value.style.layout.dataLabels.yAxis.fontSize,
|
|
1295
1327
|
"font-weight": e.value.style.layout.dataLabels.yAxis.bold ? "bold" : "normal",
|
|
1296
1328
|
fill: e.value.style.layout.dataLabels.yAxis.color,
|
|
1297
1329
|
x: n.value.left + n.value.width / 2,
|
|
1298
|
-
y:
|
|
1299
|
-
}, G(e.value.style.layout.dataLabels.yAxis.name), 9,
|
|
1330
|
+
y: E.value.height
|
|
1331
|
+
}, G(e.value.style.layout.dataLabels.yAxis.name), 9, Fa)
|
|
1300
1332
|
], 512)) : x("", !0),
|
|
1301
1333
|
w("clipPath", {
|
|
1302
|
-
id: `clip_path_${
|
|
1334
|
+
id: `clip_path_${N.value}`
|
|
1303
1335
|
}, [
|
|
1304
1336
|
w("rect", {
|
|
1305
1337
|
x: n.value.left,
|
|
1306
1338
|
y: n.value.top,
|
|
1307
1339
|
width: n.value.width <= 0 ? 1e-4 : n.value.width,
|
|
1308
1340
|
height: n.value.height <= 0 ? 1e-4 : n.value.height
|
|
1309
|
-
}, null, 8,
|
|
1310
|
-
], 8,
|
|
1311
|
-
e.value.style.layout.correlation.show ? (r(), y("g",
|
|
1312
|
-
(r(!0), y(
|
|
1341
|
+
}, null, 8, Xa)
|
|
1342
|
+
], 8, Ia),
|
|
1343
|
+
e.value.style.layout.correlation.show ? (r(), y("g", Ya, [
|
|
1344
|
+
(r(!0), y(Z, null, K(j.value, (t, o) => (r(), y("line", {
|
|
1313
1345
|
x1: t.correlation.x1,
|
|
1314
1346
|
x2: t.correlation.x2,
|
|
1315
1347
|
y1: t.correlation.y1,
|
|
@@ -1317,9 +1349,9 @@ const El = ["id"], Ol = ["id"], Nl = ["xmlns", "viewBox"], Wl = ["width", "heigh
|
|
|
1317
1349
|
"stroke-dasharray": e.value.style.layout.correlation.strokeDasharray,
|
|
1318
1350
|
stroke: t.color,
|
|
1319
1351
|
"stroke-width": e.value.style.layout.correlation.strokeWidth,
|
|
1320
|
-
"clip-path": `url(#clip_path_${
|
|
1321
|
-
}, null, 8,
|
|
1322
|
-
(r(!0), y(
|
|
1352
|
+
"clip-path": `url(#clip_path_${N.value})`
|
|
1353
|
+
}, null, 8, Ra))), 256)),
|
|
1354
|
+
(r(!0), y(Z, null, K(j.value, (t, o) => (r(), y("g", null, [
|
|
1323
1355
|
e.value.style.layout.correlation.label.show ? (r(), y("text", {
|
|
1324
1356
|
key: 0,
|
|
1325
1357
|
x: t.correlation.x2,
|
|
@@ -1329,56 +1361,56 @@ const El = ["id"], Ol = ["id"], Nl = ["xmlns", "viewBox"], Wl = ["width", "heigh
|
|
|
1329
1361
|
"font-size": e.value.style.layout.correlation.label.fontSize,
|
|
1330
1362
|
"font-weight": e.value.style.layout.correlation.label.bold ? "bold" : "normal"
|
|
1331
1363
|
}, G(c(Q)({
|
|
1332
|
-
v: c(
|
|
1364
|
+
v: c(H)(t.correlation.coefficient),
|
|
1333
1365
|
r: e.value.style.layout.correlation.label.roundingValue
|
|
1334
|
-
})), 9,
|
|
1366
|
+
})), 9, Va)) : x("", !0)
|
|
1335
1367
|
]))), 256))
|
|
1336
1368
|
])) : x("", !0),
|
|
1337
|
-
V(l.$slots, "svg", { svg:
|
|
1338
|
-
], 46,
|
|
1339
|
-
l.$slots.watermark ? (r(), y("div",
|
|
1340
|
-
V(l.$slots, "watermark", fe(pe({ isPrinting: c(
|
|
1369
|
+
V(l.$slots, "svg", { svg: E.value }, void 0, !0)
|
|
1370
|
+
], 46, Yl)),
|
|
1371
|
+
l.$slots.watermark ? (r(), y("div", ja, [
|
|
1372
|
+
V(l.$slots, "watermark", fe(pe({ isPrinting: c(ht) || c(ft) })), void 0, !0)
|
|
1341
1373
|
])) : x("", !0),
|
|
1342
1374
|
w("div", {
|
|
1343
|
-
id: `legend-bottom-${
|
|
1344
|
-
}, null, 8,
|
|
1345
|
-
|
|
1375
|
+
id: `legend-bottom-${N.value}`
|
|
1376
|
+
}, null, 8, Ua),
|
|
1377
|
+
it.value ? (r(), le(vl, {
|
|
1346
1378
|
key: 5,
|
|
1347
|
-
to: e.value.style.legend.position === "top" ? `#legend-top-${
|
|
1379
|
+
to: e.value.style.legend.position === "top" ? `#legend-top-${N.value}` : `#legend-bottom-${N.value}`
|
|
1348
1380
|
}, [
|
|
1349
1381
|
w("div", {
|
|
1350
1382
|
ref_key: "chartLegend",
|
|
1351
|
-
ref:
|
|
1383
|
+
ref: lt
|
|
1352
1384
|
}, [
|
|
1353
|
-
e.value.style.legend.show ? (r(),
|
|
1354
|
-
key: `legend_${
|
|
1355
|
-
legendSet:
|
|
1356
|
-
config:
|
|
1357
|
-
onClickMarker: s[3] || (s[3] = ({ legend: t }) =>
|
|
1385
|
+
e.value.style.legend.show ? (r(), le(Dl, {
|
|
1386
|
+
key: `legend_${ut.value}`,
|
|
1387
|
+
legendSet: ie.value,
|
|
1388
|
+
config: Zt.value,
|
|
1389
|
+
onClickMarker: s[3] || (s[3] = ({ legend: t }) => kt(t.id))
|
|
1358
1390
|
}, {
|
|
1359
|
-
item:
|
|
1391
|
+
item: X(({ legend: t }) => [
|
|
1360
1392
|
w("div", {
|
|
1361
1393
|
onClick: (o) => t.segregate(),
|
|
1362
|
-
style:
|
|
1363
|
-
}, G(t.name), 13,
|
|
1394
|
+
style: ne(`opacity:${F.value.includes(t.id) ? 0.5 : 1}`)
|
|
1395
|
+
}, G(t.name), 13, Ga)
|
|
1364
1396
|
]),
|
|
1365
1397
|
_: 1
|
|
1366
1398
|
}, 8, ["legendSet", "config"])) : V(l.$slots, "legend", {
|
|
1367
1399
|
key: 1,
|
|
1368
|
-
legend:
|
|
1400
|
+
legend: ie.value
|
|
1369
1401
|
}, void 0, !0)
|
|
1370
1402
|
], 512)
|
|
1371
1403
|
], 8, ["to"])) : x("", !0),
|
|
1372
1404
|
l.$slots.source ? (r(), y("div", {
|
|
1373
1405
|
key: 6,
|
|
1374
1406
|
ref_key: "source",
|
|
1375
|
-
ref:
|
|
1407
|
+
ref: at,
|
|
1376
1408
|
dir: "auto"
|
|
1377
1409
|
}, [
|
|
1378
1410
|
V(l.$slots, "source", {}, void 0, !0)
|
|
1379
1411
|
], 512)) : x("", !0),
|
|
1380
|
-
|
|
1381
|
-
show:
|
|
1412
|
+
_e(c(Dt), {
|
|
1413
|
+
show: q.value.showTooltip && ze.value,
|
|
1382
1414
|
backgroundColor: e.value.style.tooltip.backgroundColor,
|
|
1383
1415
|
color: e.value.style.tooltip.color,
|
|
1384
1416
|
borderRadius: e.value.style.tooltip.borderRadius,
|
|
@@ -1388,23 +1420,23 @@ const El = ["id"], Ol = ["id"], Nl = ["xmlns", "viewBox"], Wl = ["width", "heigh
|
|
|
1388
1420
|
backgroundOpacity: e.value.style.tooltip.backgroundOpacity,
|
|
1389
1421
|
position: e.value.style.tooltip.position,
|
|
1390
1422
|
offsetY: e.value.style.tooltip.offsetY,
|
|
1391
|
-
parent:
|
|
1392
|
-
content:
|
|
1393
|
-
isFullscreen:
|
|
1423
|
+
parent: te.value,
|
|
1424
|
+
content: Pe.value,
|
|
1425
|
+
isFullscreen: re.value,
|
|
1394
1426
|
isCustom: e.value.style.tooltip.customFormat && typeof e.value.style.tooltip.customFormat == "function",
|
|
1395
1427
|
smooth: e.value.style.tooltip.smooth,
|
|
1396
1428
|
backdropFilter: e.value.style.tooltip.backdropFilter
|
|
1397
1429
|
}, {
|
|
1398
|
-
"tooltip-before":
|
|
1399
|
-
V(l.$slots, "tooltip-before", fe(pe({ ...
|
|
1430
|
+
"tooltip-before": X(() => [
|
|
1431
|
+
V(l.$slots, "tooltip-before", fe(pe({ ...Ye.value })), void 0, !0)
|
|
1400
1432
|
]),
|
|
1401
|
-
"tooltip-after":
|
|
1402
|
-
V(l.$slots, "tooltip-after", fe(pe({ ...
|
|
1433
|
+
"tooltip-after": X(() => [
|
|
1434
|
+
V(l.$slots, "tooltip-after", fe(pe({ ...Ye.value })), void 0, !0)
|
|
1403
1435
|
]),
|
|
1404
|
-
default:
|
|
1405
|
-
e.value.style.tooltip.showShape ? (r(), y("div",
|
|
1406
|
-
(r(), y("svg",
|
|
1407
|
-
|
|
1436
|
+
default: X(() => [
|
|
1437
|
+
e.value.style.tooltip.showShape ? (r(), y("div", qa, [
|
|
1438
|
+
(r(), y("svg", Ha, [
|
|
1439
|
+
_e(Ke, {
|
|
1408
1440
|
shape: p.value.shape,
|
|
1409
1441
|
color: p.value.color,
|
|
1410
1442
|
plot: { x: 10, y: 10 },
|
|
@@ -1415,52 +1447,66 @@ const El = ["id"], Ol = ["id"], Nl = ["xmlns", "viewBox"], Wl = ["width", "heigh
|
|
|
1415
1447
|
]),
|
|
1416
1448
|
_: 3
|
|
1417
1449
|
}, 8, ["show", "backgroundColor", "color", "borderRadius", "borderColor", "borderWidth", "fontSize", "backgroundOpacity", "position", "offsetY", "parent", "content", "isFullscreen", "isCustom", "smooth", "backdropFilter"]),
|
|
1418
|
-
|
|
1419
|
-
|
|
1420
|
-
|
|
1421
|
-
|
|
1422
|
-
|
|
1423
|
-
|
|
1424
|
-
|
|
1425
|
-
|
|
1426
|
-
|
|
1427
|
-
|
|
1428
|
-
|
|
1429
|
-
|
|
1430
|
-
|
|
1431
|
-
|
|
1432
|
-
|
|
1433
|
-
}, {
|
|
1434
|
-
content: R(() => [
|
|
1435
|
-
(r(), te(c(Pt), {
|
|
1436
|
-
key: `table_${at.value}`,
|
|
1437
|
-
colNames: $e.value.colNames,
|
|
1438
|
-
head: $e.value.head,
|
|
1439
|
-
body: $e.value.body,
|
|
1440
|
-
config: $e.value.config,
|
|
1441
|
-
title: `${e.value.style.title.text}${e.value.style.title.subtitle.text ? ` : ${e.value.style.title.subtitle.text}` : ""}`,
|
|
1442
|
-
onClose: s[4] || (s[4] = (t) => Z.value.showTable = !1)
|
|
1450
|
+
Qe.value ? (r(), le(yl(be.value.component), cl({ key: 7 }, be.value.props, {
|
|
1451
|
+
ref_key: "tableUnit",
|
|
1452
|
+
ref: xe,
|
|
1453
|
+
onClose: s[6] || (s[6] = (t) => q.value.showTable = !1)
|
|
1454
|
+
}), Lt({
|
|
1455
|
+
content: X(() => [
|
|
1456
|
+
(r(), le(c(Ft), {
|
|
1457
|
+
key: `table_${nt.value}`,
|
|
1458
|
+
colNames: Ae.value.colNames,
|
|
1459
|
+
head: Ae.value.head,
|
|
1460
|
+
body: Ae.value.body,
|
|
1461
|
+
config: Ae.value.config,
|
|
1462
|
+
title: e.value.table.useDialog ? "" : be.value.title,
|
|
1463
|
+
withCloseButton: !e.value.table.useDialog,
|
|
1464
|
+
onClose: s[5] || (s[5] = (t) => q.value.showTable = !1)
|
|
1443
1465
|
}, {
|
|
1444
|
-
th:
|
|
1445
|
-
|
|
1466
|
+
th: X(({ th: t }) => [
|
|
1467
|
+
Bt(G(t), 1)
|
|
1446
1468
|
]),
|
|
1447
|
-
td:
|
|
1448
|
-
t.shape ? (r(), y("div",
|
|
1469
|
+
td: X(({ td: t }) => [
|
|
1470
|
+
t.shape ? (r(), y("div", Za, [
|
|
1449
1471
|
w("span", null, G(t.content), 1)
|
|
1450
1472
|
])) : (r(), y("div", {
|
|
1451
1473
|
key: 1,
|
|
1452
1474
|
innerHTML: t
|
|
1453
|
-
}, null, 8,
|
|
1475
|
+
}, null, 8, Ja))
|
|
1454
1476
|
]),
|
|
1455
1477
|
_: 1
|
|
1456
|
-
}, 8, ["colNames", "head", "body", "config", "title"]))
|
|
1478
|
+
}, 8, ["colNames", "head", "body", "config", "title", "withCloseButton"]))
|
|
1457
1479
|
]),
|
|
1458
|
-
_:
|
|
1459
|
-
},
|
|
1460
|
-
|
|
1461
|
-
|
|
1480
|
+
_: 2
|
|
1481
|
+
}, [
|
|
1482
|
+
e.value.table.useDialog ? {
|
|
1483
|
+
name: "title",
|
|
1484
|
+
fn: X(() => [
|
|
1485
|
+
Bt(G(be.value.title), 1)
|
|
1486
|
+
]),
|
|
1487
|
+
key: "0"
|
|
1488
|
+
} : void 0,
|
|
1489
|
+
e.value.table.useDialog ? {
|
|
1490
|
+
name: "actions",
|
|
1491
|
+
fn: X(() => [
|
|
1492
|
+
w("button", {
|
|
1493
|
+
tabindex: "0",
|
|
1494
|
+
class: "vue-ui-user-options-button",
|
|
1495
|
+
onClick: s[4] || (s[4] = (t) => je(e.value.userOptions.callbacks.csv))
|
|
1496
|
+
}, [
|
|
1497
|
+
_e(c(Wt), {
|
|
1498
|
+
name: "excel",
|
|
1499
|
+
stroke: be.value.props.color
|
|
1500
|
+
}, null, 8, ["stroke"])
|
|
1501
|
+
])
|
|
1502
|
+
]),
|
|
1503
|
+
key: "1"
|
|
1504
|
+
} : void 0
|
|
1505
|
+
]), 1040)) : x("", !0),
|
|
1506
|
+
c(rt) ? (r(), le(zl, { key: 8 })) : x("", !0)
|
|
1507
|
+
], 46, Il));
|
|
1462
1508
|
}
|
|
1463
|
-
},
|
|
1509
|
+
}, co = /* @__PURE__ */ Fl(Ka, [["__scopeId", "data-v-3a8aa912"]]);
|
|
1464
1510
|
export {
|
|
1465
|
-
|
|
1511
|
+
co as default
|
|
1466
1512
|
};
|