vue-data-ui 3.0.2 → 3.0.3
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-uNlT54JX.js → Arrow-CUUMjZed.js} +1 -1
- package/dist/{BaseDraggableDialog-CujvKo06.js → BaseDraggableDialog-DgADqZE_.js} +2 -2
- package/dist/{BaseIcon-B8CknCYk.js → BaseIcon-DLm6QTwr.js} +1 -1
- package/dist/{ColorPicker-Dmdfq2VV.js → ColorPicker-Crz_B792.js} +2 -2
- package/dist/{DataTable-osx68WLA.js → DataTable-CWzb1j8d.js} +2 -2
- package/dist/{Legend-CQsASoei.js → Legend-CevCqVZ5.js} +2 -2
- package/dist/{NonSvgPenAndPaper-BWz0WtJG.js → NonSvgPenAndPaper-DOG92bzo.js} +3 -3
- package/dist/{PackageVersion-DZGrOKw5.js → PackageVersion-n4qokxnx.js} +1 -1
- package/dist/{PenAndPaper-CdXspg5R.js → PenAndPaper-C_R9vJkU.js} +3 -3
- package/dist/{Shape-0sW2StrO.js → Shape-BHVN6hj0.js} +1 -1
- package/dist/{Slicer-52shR-Vu.js → Slicer-BBjJsLlJ.js} +2 -2
- package/dist/{SparkTooltip-Dxrruu4s.js → SparkTooltip-BHlSggBm.js} +1 -1
- package/dist/{Title-CntvKJss.js → Title-CINHji0n.js} +1 -1
- package/dist/{Tooltip-DF8e4iB9.js → Tooltip-hfdFRoLp.js} +1 -1
- package/dist/{UserOptions-DQyIO0ts.js → UserOptions-r0epwyXR.js} +2 -2
- package/dist/{dom-to-png-KC3tMd8p.js → dom-to-png-m7MwDfMh.js} +1 -1
- package/dist/{img-Cv4nScI0.js → img-CBdOMFyn.js} +1 -1
- package/dist/{index-B9Ct1B_p.js → index-DrRiscPm.js} +908 -871
- package/dist/{pdf-D0GEfQrI.js → pdf-CITAFtf8.js} +1 -1
- package/dist/style.css +1 -1
- package/dist/types/vue-data-ui.d.cts +23 -0
- package/dist/types/vue-data-ui.d.ts +23 -0
- package/dist/{useAutoSizeLabelsInsideViewbox-DvdDLkzw.js → useAutoSizeLabelsInsideViewbox-C0d8h29h.js} +1 -1
- package/dist/{useNestedProp-C0gKxLur.js → useNestedProp-BXhArS-K.js} +1 -1
- package/dist/{usePrinter-DcZXg1hH.js → usePrinter-CZk2ISUm.js} +2 -2
- package/dist/{vue-data-ui-DZMDT7RA.js → vue-data-ui-omyV52aJ.js} +64 -64
- package/dist/vue-data-ui.js +1 -1
- package/dist/{vue-ui-3d-bar-BnCv2CD_.js → vue-ui-3d-bar-ByS7XX4A.js} +6 -6
- package/dist/{vue-ui-accordion-B31QK9Hj.js → vue-ui-accordion-s_m_NJzJ.js} +3 -3
- package/dist/{vue-ui-age-pyramid-Bc4V0a3k.js → vue-ui-age-pyramid-BJRjKF9G.js} +6 -6
- package/dist/{vue-ui-annotator-D8haGQiH.js → vue-ui-annotator-BcdnqcBy.js} +2 -2
- package/dist/{vue-ui-bullet-n7Y6jYLj.js → vue-ui-bullet-D82pT7tL.js} +199 -186
- package/dist/{vue-ui-candlestick-nCI5GlX7.js → vue-ui-candlestick-ThIDj7Q5.js} +7 -7
- package/dist/{vue-ui-carousel-table-JH2NjnOk.js → vue-ui-carousel-table-BHOAO0Gj.js} +4 -4
- package/dist/{vue-ui-chestnut-CQtV9AR4.js → vue-ui-chestnut-3sjb4gzU.js} +5 -5
- package/dist/{vue-ui-chord-CGi_iSaL.js → vue-ui-chord-CfVEqNV6.js} +377 -366
- package/dist/{vue-ui-circle-pack-C8v3Okle.js → vue-ui-circle-pack-u4ABWUZI.js} +6 -6
- package/dist/{vue-ui-cursor-0DHciy1D.js → vue-ui-cursor-ByfhuSzG.js} +2 -2
- package/dist/{vue-ui-dashboard-CDHJk8sC.js → vue-ui-dashboard-CBCck-UI.js} +62 -62
- package/dist/{vue-ui-digits-Bn1P1K9u.js → vue-ui-digits-BU-8e-1s.js} +2 -2
- package/dist/{vue-ui-donut-evolution-Crn7Nnpy.js → vue-ui-donut-evolution-B4lDDX7G.js} +388 -377
- package/dist/{vue-ui-donut-GqHffshG.js → vue-ui-donut-g5x3IpMV.js} +345 -334
- package/dist/{vue-ui-dumbbell-C__nFV3V.js → vue-ui-dumbbell-BJ8qcUud.js} +354 -343
- package/dist/{vue-ui-flow-7q9o4Jxp.js → vue-ui-flow-CRwGogHq.js} +299 -288
- package/dist/{vue-ui-funnel-DjmlAdRf.js → vue-ui-funnel-DzF_UOAJ.js} +6 -6
- package/dist/{vue-ui-galaxy-Crh7xV6s.js → vue-ui-galaxy-BqunXfkx.js} +252 -241
- package/dist/{vue-ui-gauge-PjjV3JmB.js → vue-ui-gauge-DPjvYyeF.js} +7 -7
- package/dist/{vue-ui-gizmo-DREMjBvZ.js → vue-ui-gizmo-CU7HsWOV.js} +3 -3
- package/dist/{vue-ui-heatmap-D2CF8Vn8.js → vue-ui-heatmap-CFh-br8X.js} +7 -7
- package/dist/{vue-ui-history-plot-DX31nVYa.js → vue-ui-history-plot-OdhJu988.js} +283 -270
- package/dist/{vue-ui-kpi-FtnzfW7L.js → vue-ui-kpi-CVp3sMeg.js} +3 -3
- package/dist/{vue-ui-mini-loader-DaHPhzVf.js → vue-ui-mini-loader-LtGcTTh2.js} +2 -2
- package/dist/{vue-ui-molecule--4MdUCOi.js → vue-ui-molecule-DklqwI8c.js} +5 -5
- package/dist/{vue-ui-mood-radar-Ci416qv5.js → vue-ui-mood-radar-CGuHZngw.js} +264 -253
- package/dist/{vue-ui-nested-donuts-DoVSN0qE.js → vue-ui-nested-donuts-CHrryP89.js} +377 -366
- package/dist/{vue-ui-onion-ChqyoLl8.js → vue-ui-onion-n74T6frI.js} +265 -254
- package/dist/{vue-ui-parallel-coordinate-plot-BPsH_W7X.js → vue-ui-parallel-coordinate-plot-DtQi0qWp.js} +276 -265
- package/dist/{vue-ui-quadrant-CLQqKyzu.js → vue-ui-quadrant-CZn3Ab1f.js} +356 -345
- package/dist/{vue-ui-quick-chart-DogHdO42.js → vue-ui-quick-chart-CUBOj0Y6.js} +639 -628
- package/dist/{vue-ui-radar-B4rGvzKn.js → vue-ui-radar-BAazL3Qv.js} +254 -243
- package/dist/{vue-ui-rating-BvopSHNQ.js → vue-ui-rating-CPa7MotU.js} +2 -2
- package/dist/{vue-ui-relation-circle-C6GEmCiw.js → vue-ui-relation-circle-g6pCa6y9.js} +7 -7
- package/dist/{vue-ui-ridgeline-BJVJ02bA.js → vue-ui-ridgeline-C_Mpseru.js} +8 -8
- package/dist/{vue-ui-rings-BRTxWhKI.js → vue-ui-rings-grCm0xEc.js} +250 -239
- package/dist/{vue-ui-scatter-D_BP7XBR.js → vue-ui-scatter-CEr615c-.js} +383 -372
- package/dist/{vue-ui-skeleton-C_nf6VDZ.js → vue-ui-skeleton-BaqJKjqR.js} +3 -3
- package/dist/{vue-ui-smiley-DHCpzxMs.js → vue-ui-smiley-DyIfQ5KW.js} +2 -2
- package/dist/{vue-ui-spark-trend-DfM5OJIx.js → vue-ui-spark-trend-CqVF6MXT.js} +3 -3
- package/dist/{vue-ui-sparkbar-BrvOwqG_.js → vue-ui-sparkbar-DwSd_DZu.js} +3 -3
- package/dist/{vue-ui-sparkgauge-Dp2OkGrS.js → vue-ui-sparkgauge-Bm4UGamr.js} +3 -3
- package/dist/{vue-ui-sparkhistogram-K_7q57W8.js → vue-ui-sparkhistogram-DTZK4gCA.js} +4 -4
- package/dist/{vue-ui-sparkline-BiEu6kq8.js → vue-ui-sparkline-DGfIevXQ.js} +3 -3
- package/dist/{vue-ui-sparkstackbar-BNlyxt3y.js → vue-ui-sparkstackbar-RT_LpLKL.js} +3 -3
- package/dist/{vue-ui-stackbar-BKb_dgUq.js → vue-ui-stackbar-9Yxdd7ko.js} +443 -432
- package/dist/{vue-ui-strip-plot-D6dwyO-N.js → vue-ui-strip-plot--2bdwjUL.js} +7 -7
- package/dist/{vue-ui-table-B9UWta9o.js → vue-ui-table-BSNxwgTV.js} +4 -9
- package/dist/{vue-ui-table-heatmap-JkwDydPq.js → vue-ui-table-heatmap-BaK9FRE1.js} +5 -5
- package/dist/{vue-ui-table-sparkline-BOKgPT0e.js → vue-ui-table-sparkline-Dbi7H7Xb.js} +4 -4
- package/dist/{vue-ui-thermometer-Dj0CVTk3.js → vue-ui-thermometer-9EIYVN0g.js} +7 -7
- package/dist/{vue-ui-timer-B407nCRd.js → vue-ui-timer-OH8HQjpu.js} +5 -5
- package/dist/{vue-ui-tiremarks-C_betH5B.js → vue-ui-tiremarks-D6JpH-vv.js} +6 -6
- package/dist/{vue-ui-treemap-D0gScsaQ.js → vue-ui-treemap-DqEQgjj-.js} +356 -345
- package/dist/{vue-ui-vertical-bar-D3aoix_0.js → vue-ui-vertical-bar-BfnMDmGN.js} +9 -9
- package/dist/{vue-ui-waffle-hpsuszbt.js → vue-ui-waffle-BJu7n_i7.js} +306 -295
- package/dist/{vue-ui-wheel-0etwsu-o.js → vue-ui-wheel-KDWfx0os.js} +6 -6
- package/dist/{vue-ui-word-cloud-tsEprRhX.js → vue-ui-word-cloud-Dcg3uI2O.js} +6 -6
- package/dist/{vue-ui-world-BCtGvXjy.js → vue-ui-world-SYtMz1jo.js} +343 -329
- package/dist/{vue-ui-xy-canvas-B1s9twtZ.js → vue-ui-xy-canvas-BGJg2doK.js} +305 -294
- package/dist/{vue-ui-xy-BoT_c9bU.js → vue-ui-xy-qzB1oN1A.js} +1356 -1345
- package/package.json +1 -1
|
@@ -1,34 +1,34 @@
|
|
|
1
|
-
import { defineAsyncComponent as de, computed as T, ref 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 de, computed as T, ref as m, toRefs as Dt, watch as Ee, shallowRef as gt, onMounted as Rt, onBeforeUnmount as jt, createElementBlock as i, openBlock as u, unref as n, normalizeStyle as oe, normalizeClass as mt, createBlock as K, createCommentVNode as g, createElementVNode as b, createVNode as Fe, createSlots as Vt, withCtx as N, renderSlot as E, normalizeProps as he, guardReactiveProps as fe, Fragment as q, renderList as Q, toDisplayString as Y, Teleport as Ut, createTextVNode as Gt, nextTick as qt } from "vue";
|
|
2
|
+
import { u as Ht, c as Zt, t as Jt, a as Kt, p as ie, b as Qt, o as xt, f as Ie, d as el, g as bt, Y as tl, e as We, a3 as ll, V as al, X as ol, s as Xe, Z as sl, k as se, h as D, i as H, v as ul, w as nl, y as il, z as rl } from "./index-DrRiscPm.js";
|
|
3
|
+
import { t as vl, u as yl } from "./useResponsive-DfdjqQps.js";
|
|
4
|
+
import { u as cl, B as dl } from "./useLoading-D7YHNtLX.js";
|
|
5
|
+
import { u as hl } from "./usePrinter-CZk2ISUm.js";
|
|
6
|
+
import { u as kt } from "./useNestedProp-BXhArS-K.js";
|
|
7
|
+
import { u as fl } from "./useUserOptionState-BIvW1Kz7.js";
|
|
8
|
+
import { u as pl } from "./useChartAccessibility-9icAAmYg.js";
|
|
9
|
+
import gl from "./Legend-CevCqVZ5.js";
|
|
10
|
+
import ml from "./Title-CINHji0n.js";
|
|
11
|
+
import { _ as wt } from "./Shape-BHVN6hj0.js";
|
|
12
|
+
import xl from "./img-CBdOMFyn.js";
|
|
13
|
+
import { _ as bl } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
14
|
+
const kl = ["id"], wl = ["id"], _l = ["xmlns", "viewBox"], $l = ["width", "height"], Ml = { key: 1 }, Al = ["x1", "x2", "y1", "y2", "stroke", "stroke-width"], Cl = ["x1", "x2", "y1", "y2", "stroke", "stroke-width"], Sl = { key: 2 }, Ll = ["points", "fill", "stroke-width", "stroke-dasharray", "stroke"], zl = { key: 0 }, Tl = ["cx", "cy", "r", "fill", "stroke", "stroke-width", "onMouseover", "onMouseleave", "onClick"], Bl = { key: 1 }, Pl = { key: 3 }, Ol = ["id"], Nl = ["stop-color"], El = ["stop-color"], Fl = ["id"], Il = ["stop-color"], Wl = ["stop-color"], Xl = ["x", "y", "width", "height", "fill", "stroke", "stroke-width", "rx"], Yl = ["x", "y", "height", "width", "fill", "stroke", "stroke-width", "rx"], Dl = { key: 0 }, Rl = ["d", "stroke", "stroke-width"], jl = ["d", "stroke", "stroke-width"], Vl = ["d", "stroke", "stroke-width"], Ul = ["d", "stroke", "stroke-width"], Gl = {
|
|
15
15
|
key: 4,
|
|
16
16
|
style: { "pointer-events": "none !important" }
|
|
17
|
-
},
|
|
17
|
+
}, ql = ["x1", "x2", "y1", "y2", "stroke", "stroke-width", "stroke-dasharray"], Hl = ["x1", "x2", "y1", "y2", "stroke", "stroke-width", "stroke-dasharray"], Zl = ["x", "y", "font-size", "fill", "font-weight", "text-anchor"], Jl = ["x", "y", "font-size", "fill", "font-weight"], Kl = ["cx", "cy", "r", "fill", "stroke", "stroke-width"], Ql = ["cx", "cy", "r", "fill", "stroke", "stroke-width"], ea = ["x", "y", "font-size", "fill", "font-weight", "text-anchor"], ta = ["id", "transform", "font-size", "font-weight", "fill"], la = ["font-size", "fill", "transform"], aa = ["transform", "font-size", "fill"], oa = ["x", "y", "font-size", "fill"], sa = ["x", "y", "font-size", "fill"], ua = ["font-size", "font-weight", "fill", "x", "y"], na = ["id"], ia = ["x", "y", "width", "height"], ra = {
|
|
18
18
|
key: 9,
|
|
19
19
|
style: { pointerEvents: "none" }
|
|
20
|
-
},
|
|
20
|
+
}, va = ["x1", "x2", "y1", "y2", "stroke-dasharray", "stroke", "stroke-width", "clip-path"], ya = ["x", "y", "fill", "font-size", "font-weight"], ca = {
|
|
21
21
|
key: 4,
|
|
22
22
|
class: "vue-data-ui-watermark"
|
|
23
|
-
},
|
|
23
|
+
}, da = ["id"], ha = ["onClick"], fa = {
|
|
24
24
|
key: 0,
|
|
25
25
|
style: { width: "100%", display: "flex", "align-items": "center", "justify-content": "center" }
|
|
26
|
-
},
|
|
26
|
+
}, pa = {
|
|
27
27
|
viewBox: "0 0 20 20",
|
|
28
28
|
height: "20",
|
|
29
29
|
width: "20",
|
|
30
30
|
style: { overflow: "hidden", background: "transparent" }
|
|
31
|
-
},
|
|
31
|
+
}, ga = { key: 0 }, ma = ["innerHTML"], xa = {
|
|
32
32
|
__name: "vue-ui-scatter",
|
|
33
33
|
props: {
|
|
34
34
|
config: {
|
|
@@ -44,41 +44,41 @@ const xl = ["id"], bl = ["xmlns", "viewBox"], kl = ["width", "height"], wl = { k
|
|
|
44
44
|
}
|
|
45
45
|
}
|
|
46
46
|
},
|
|
47
|
-
setup(
|
|
48
|
-
const Mt = de(() => import("./vue-ui-accordion-
|
|
49
|
-
function
|
|
47
|
+
setup(_t, { expose: $t }) {
|
|
48
|
+
const Mt = de(() => import("./vue-ui-accordion-s_m_NJzJ.js")), At = de(() => import("./DataTable-CWzb1j8d.js")), Ct = de(() => import("./PackageVersion-n4qokxnx.js")), St = de(() => import("./PenAndPaper-C_R9vJkU.js")), Lt = de(() => import("./Tooltip-hfdFRoLp.js")), zt = de(() => import("./UserOptions-r0epwyXR.js")), { vue_ui_scatter: Tt } = Ht(), Z = _t, Ye = T(() => !!Z.dataset && Z.dataset.length), B = m(Zt()), Bt = m(null), _e = m(!1), $e = m(""), De = m(0), ee = m(null), Re = m(null), je = m(null), Ve = m(null), Ue = m(null), Ge = m(0), qe = m(0), He = m(0), L = m([]), Ze = m(!1), Me = m(null), Pt = m(null), Ot = m(null), Ae = m(null), e = m(ze());
|
|
49
|
+
function Nt(l = 100, s = 0.8, t = {}) {
|
|
50
50
|
const { meanX: a = 0, sdX: o = 1, meanY: r = 0, sdY: h = 1, seed: C } = t;
|
|
51
51
|
let S = (C ?? Math.floor(Math.random() * 2 ** 31)) >>> 0;
|
|
52
|
-
const
|
|
53
|
-
let y = 0,
|
|
54
|
-
for (; y === 0; ) y =
|
|
55
|
-
for (;
|
|
56
|
-
return Math.sqrt(-2 * Math.log(y)) * Math.cos(2 * Math.PI *
|
|
57
|
-
}, d = l / 2,
|
|
52
|
+
const P = () => (S = S * 1664525 + 1013904223 >>> 0, S / 2 ** 32), F = () => {
|
|
53
|
+
let y = 0, M = 0;
|
|
54
|
+
for (; y === 0; ) y = P();
|
|
55
|
+
for (; M === 0; ) M = P();
|
|
56
|
+
return Math.sqrt(-2 * Math.log(y)) * Math.cos(2 * Math.PI * M);
|
|
57
|
+
}, d = l / 2, k = Array.from({ length: d }, F), X = Array.from({ length: d }, F), w = (y) => y.reduce((M, me) => M + me, 0) / y.length, I = w(k), J = w(X);
|
|
58
58
|
for (let y = 0; y < d; y += 1)
|
|
59
|
-
|
|
60
|
-
const _ = (y,
|
|
59
|
+
k[y] -= I, X[y] -= J;
|
|
60
|
+
const _ = (y, M) => y.reduce((me, we, Ne) => me + we * M[Ne], 0), p = (y) => _(y, y), v = _(X, k) / p(k), x = X.map((y, M) => y - v * k[M]), W = p(k) / d, U = p(x) / d, ae = Math.sqrt((1 - s * s) * W / U), O = k.map((y, M) => s * y + ae * x[M]), ne = k.concat(k.map((y) => -y)), Oe = O.concat(O.map((y) => -y)), pe = (y) => Math.sqrt(p(y) / y.length), ye = (y, M, me) => {
|
|
61
61
|
const we = pe(y);
|
|
62
|
-
return y.map((Ne) => me + (we ? Ne / we *
|
|
62
|
+
return y.map((Ne) => me + (we ? Ne / we * M : 0));
|
|
63
63
|
}, ce = ye(ne, o, a), ge = ye(Oe, h, r);
|
|
64
64
|
for (let y = ce.length - 1; y > 0; y -= 1) {
|
|
65
|
-
const
|
|
66
|
-
[ce[y], ce[
|
|
65
|
+
const M = Math.floor(P() * (y + 1));
|
|
66
|
+
[ce[y], ce[M]] = [ce[M], ce[y]], [ge[y], ge[M]] = [ge[M], ge[y]];
|
|
67
67
|
}
|
|
68
|
-
return ce.map((y,
|
|
68
|
+
return ce.map((y, M) => ({ x: y, y: ge[M] }));
|
|
69
69
|
}
|
|
70
|
-
const { loading:
|
|
71
|
-
...
|
|
70
|
+
const { loading: Je, FINAL_DATASET: Ce, manualLoading: Se } = cl({
|
|
71
|
+
...Dt(Z),
|
|
72
72
|
FINAL_CONFIG: e,
|
|
73
73
|
prepareConfig: ze,
|
|
74
74
|
skeletonDataset: [
|
|
75
75
|
{
|
|
76
76
|
name: "",
|
|
77
77
|
color: "#999999",
|
|
78
|
-
values:
|
|
78
|
+
values: Nt(100, 0.5, { seed: 42 })
|
|
79
79
|
}
|
|
80
80
|
],
|
|
81
|
-
skeletonConfig:
|
|
81
|
+
skeletonConfig: Jt({
|
|
82
82
|
defaultConfig: e.value,
|
|
83
83
|
userConfig: {
|
|
84
84
|
userOptions: { show: !1 },
|
|
@@ -111,39 +111,39 @@ const xl = ["id"], bl = ["xmlns", "viewBox"], kl = ["width", "height"], wl = { k
|
|
|
111
111
|
}
|
|
112
112
|
}
|
|
113
113
|
})
|
|
114
|
-
}), { userOptionsVisible: Le, setUserOptionsVisibility:
|
|
114
|
+
}), { userOptionsVisible: Le, setUserOptionsVisibility: Ke, keepUserOptionState: Qe } = fl({ config: e.value }), { svgRef: et } = pl({ config: e.value.style.title });
|
|
115
115
|
function ze() {
|
|
116
|
-
const l =
|
|
116
|
+
const l = kt({
|
|
117
117
|
userConfig: Z.config,
|
|
118
|
-
defaultConfig:
|
|
118
|
+
defaultConfig: Tt
|
|
119
119
|
});
|
|
120
120
|
return l.theme ? {
|
|
121
|
-
...
|
|
122
|
-
userConfig:
|
|
121
|
+
...kt({
|
|
122
|
+
userConfig: Qt.vue_ui_scatter[l.theme] || Z.config,
|
|
123
123
|
defaultConfig: l
|
|
124
124
|
}),
|
|
125
|
-
customPalette:
|
|
125
|
+
customPalette: Kt[l.theme] || ie
|
|
126
126
|
} : l;
|
|
127
127
|
}
|
|
128
128
|
Ee(() => Z.config, (l) => {
|
|
129
|
-
|
|
129
|
+
Je.value || (e.value = ze()), Le.value = !e.value.userOptions.showOnChartHover, tt(), Ge.value += 1, qe.value += 1, He.value += 1, R.value.showTable = e.value.table.show, R.value.showTooltip = e.value.style.tooltip.show;
|
|
130
130
|
}, { deep: !0 }), Ee(() => Z.dataset, (l) => {
|
|
131
131
|
Array.isArray(l) && l.length > 0 && (Se.value = !1);
|
|
132
132
|
}, { deep: !0 });
|
|
133
|
-
const
|
|
134
|
-
|
|
135
|
-
|
|
133
|
+
const te = gt(null), re = gt(null);
|
|
134
|
+
Rt(() => {
|
|
135
|
+
Ze.value = !0, tt();
|
|
136
136
|
});
|
|
137
|
-
const
|
|
138
|
-
function
|
|
139
|
-
if (
|
|
137
|
+
const Et = T(() => !!e.value.debug);
|
|
138
|
+
function tt() {
|
|
139
|
+
if (xt(Z.dataset) && (Ie({
|
|
140
140
|
componentName: "VueUiScatter",
|
|
141
141
|
type: "dataset",
|
|
142
|
-
debug:
|
|
143
|
-
}), Se.value = !0),
|
|
144
|
-
const l =
|
|
145
|
-
const { width: s, height: t } =
|
|
146
|
-
chart:
|
|
142
|
+
debug: Et.value
|
|
143
|
+
}), Se.value = !0), xt(Z.dataset) || (Se.value = e.value.loading), e.value.responsive) {
|
|
144
|
+
const l = vl(() => {
|
|
145
|
+
const { width: s, height: t } = yl({
|
|
146
|
+
chart: ee.value,
|
|
147
147
|
title: e.value.style.title.text ? Re.value : null,
|
|
148
148
|
legend: e.value.style.legend.show ? je.value : null,
|
|
149
149
|
source: Ve.value,
|
|
@@ -153,17 +153,17 @@ const xl = ["id"], bl = ["xmlns", "viewBox"], kl = ["width", "height"], wl = { k
|
|
|
153
153
|
z.value.width = s, z.value.height = t;
|
|
154
154
|
});
|
|
155
155
|
});
|
|
156
|
-
|
|
156
|
+
te.value && (re.value && te.value.unobserve(re.value), te.value.disconnect()), te.value = new ResizeObserver(l), re.value = ee.value.parentNode, te.value.observe(re.value);
|
|
157
157
|
}
|
|
158
158
|
}
|
|
159
|
-
|
|
160
|
-
|
|
159
|
+
jt(() => {
|
|
160
|
+
te.value && (re.value && te.value.unobserve(re.value), te.value.disconnect());
|
|
161
161
|
});
|
|
162
|
-
const { isPrinting:
|
|
163
|
-
elementId: `vue-ui-scatter_${
|
|
162
|
+
const { isPrinting: lt, isImaging: at, generatePdf: ot, generateImage: st } = hl({
|
|
163
|
+
elementId: `vue-ui-scatter_${B.value}`,
|
|
164
164
|
fileName: e.value.style.title.text || "vue-ui-scatter",
|
|
165
165
|
options: e.value.userOptions.print
|
|
166
|
-
}),
|
|
166
|
+
}), Ft = T(() => e.value.userOptions.show && !e.value.style.title.text), ut = T(() => el(e.value.customPalette)), R = m({
|
|
167
167
|
showTable: e.value.table.show,
|
|
168
168
|
showTooltip: e.value.style.tooltip.show
|
|
169
169
|
});
|
|
@@ -173,12 +173,12 @@ const xl = ["id"], bl = ["xmlns", "viewBox"], kl = ["width", "height"], wl = { k
|
|
|
173
173
|
showTooltip: e.value.style.tooltip.show
|
|
174
174
|
};
|
|
175
175
|
}, { immediate: !0 });
|
|
176
|
-
const z =
|
|
176
|
+
const z = m({
|
|
177
177
|
height: e.value.style.layout.height,
|
|
178
178
|
width: e.value.style.layout.width
|
|
179
179
|
}), xe = T(() => e.value.style.layout.marginalBars.show ? e.value.style.layout.marginalBars.size + e.value.style.layout.marginalBars.offset : 0), c = T(() => {
|
|
180
180
|
let l = 0, s = 0;
|
|
181
|
-
return
|
|
181
|
+
return Me.value && (l = Me.value.getBBox().width + 6), Ae.value && (s = Ae.value.getBBox().height + 6), {
|
|
182
182
|
top: e.value.style.layout.padding.top + xe.value + e.value.style.layout.dataLabels.yAxis.fontSize * 2,
|
|
183
183
|
right: z.value.width - e.value.style.layout.padding.right - xe.value - 6,
|
|
184
184
|
bottom: z.value.height - e.value.style.layout.padding.bottom - s,
|
|
@@ -186,9 +186,9 @@ const xl = ["id"], bl = ["xmlns", "viewBox"], kl = ["width", "height"], wl = { k
|
|
|
186
186
|
height: z.value.height - e.value.style.layout.padding.top - e.value.style.layout.padding.bottom - xe.value - s - e.value.style.layout.dataLabels.yAxis.fontSize * 2,
|
|
187
187
|
width: z.value.width - e.value.style.layout.padding.left - e.value.style.layout.padding.right - xe.value - l - 6
|
|
188
188
|
};
|
|
189
|
-
}),
|
|
189
|
+
}), $ = T(() => {
|
|
190
190
|
Ce.value.forEach((o, r) => {
|
|
191
|
-
|
|
191
|
+
bt({
|
|
192
192
|
datasetObject: o,
|
|
193
193
|
requiredAttributes: ["values"]
|
|
194
194
|
}).forEach((h) => {
|
|
@@ -199,7 +199,7 @@ const xl = ["id"], bl = ["xmlns", "viewBox"], kl = ["width", "height"], wl = { k
|
|
|
199
199
|
index: r
|
|
200
200
|
});
|
|
201
201
|
}), o.values && o.values.forEach((h, C) => {
|
|
202
|
-
|
|
202
|
+
bt({
|
|
203
203
|
datasetObject: h,
|
|
204
204
|
requiredAttributes: ["x", "y"]
|
|
205
205
|
}).forEach((S) => {
|
|
@@ -215,24 +215,24 @@ const xl = ["id"], bl = ["xmlns", "viewBox"], kl = ["width", "height"], wl = { k
|
|
|
215
215
|
const l = Math.min(...ue.value.filter((o) => !L.value.includes(o.id)).flatMap((o) => o.values.map((r) => r.x))), s = Math.max(...ue.value.filter((o) => !L.value.includes(o.id)).flatMap((o) => o.values.map((r) => r.x))), t = Math.min(...ue.value.filter((o) => !L.value.includes(o.id)).flatMap((o) => o.values.map((r) => r.y))), a = Math.max(...ue.value.filter((o) => !L.value.includes(o.id)).flatMap((o) => o.values.map((r) => r.y)));
|
|
216
216
|
return { xMin: l >= 0 ? 0 : l, xMax: s, yMin: t >= 0 ? 0 : t, yMax: a };
|
|
217
217
|
}), A = T(() => ({
|
|
218
|
-
x: c.value.left + Math.abs(
|
|
219
|
-
y: c.value.bottom - Math.abs(
|
|
218
|
+
x: c.value.left + Math.abs($.value.xMin) / ($.value.xMax + Math.abs($.value.xMin)) * c.value.width,
|
|
219
|
+
y: c.value.bottom - Math.abs($.value.yMin) / ($.value.yMax + Math.abs($.value.yMin)) * c.value.height
|
|
220
220
|
})), ue = T(() => Ce.value.map((l, s) => {
|
|
221
|
-
const t = `cluster_${
|
|
221
|
+
const t = `cluster_${B.value}_${s}`;
|
|
222
222
|
return {
|
|
223
223
|
...l,
|
|
224
|
-
values:
|
|
224
|
+
values: tl({
|
|
225
225
|
data: l.values,
|
|
226
226
|
threshold: e.value.downsample.threshold
|
|
227
227
|
}),
|
|
228
228
|
id: t,
|
|
229
|
-
color: l.color ? l.color :
|
|
229
|
+
color: l.color ? l.color : ut.value[s] || ie[s] || ie[s % ie.length],
|
|
230
230
|
opacity: L.value.includes(t) ? 0.5 : 1,
|
|
231
231
|
shape: l.shape ?? "circle",
|
|
232
|
-
segregate: () =>
|
|
232
|
+
segregate: () => ct(t),
|
|
233
233
|
isSegregated: L.value.includes(t)
|
|
234
234
|
};
|
|
235
|
-
})),
|
|
235
|
+
})), It = T(() => ({
|
|
236
236
|
cy: "scatter-div-legend",
|
|
237
237
|
backgroundColor: e.value.style.legend.backgroundColor,
|
|
238
238
|
color: e.value.style.legend.color,
|
|
@@ -242,63 +242,63 @@ const xl = ["id"], bl = ["xmlns", "viewBox"], kl = ["width", "height"], wl = { k
|
|
|
242
242
|
})), Te = T(() => ue.value.map((l, s) => ({
|
|
243
243
|
...l,
|
|
244
244
|
plots: l.values.map((t) => ({
|
|
245
|
-
x: c.value.left + (t.x + Math.abs(
|
|
246
|
-
y: c.value.bottom - (t.y + Math.abs(
|
|
245
|
+
x: c.value.left + (t.x + Math.abs($.value.xMin)) / ($.value.xMax + Math.abs($.value.xMin)) * c.value.width,
|
|
246
|
+
y: c.value.bottom - (t.y + Math.abs($.value.yMin)) / ($.value.yMax + Math.abs($.value.yMin)) * c.value.height,
|
|
247
247
|
v: {
|
|
248
248
|
...t,
|
|
249
249
|
name: t.name || ""
|
|
250
250
|
},
|
|
251
251
|
clusterName: l.name,
|
|
252
|
-
color: l.color ? l.color :
|
|
253
|
-
id: `plot_${
|
|
252
|
+
color: l.color ? l.color : ut.value[s] || ie[s] || ie[s % ie.length],
|
|
253
|
+
id: `plot_${B.value}_${Math.random()}`,
|
|
254
254
|
weight: t.weight ?? e.value.style.layout.plots.radius
|
|
255
255
|
}))
|
|
256
256
|
})).filter((l) => !L.value.includes(l.id))), j = T(() => {
|
|
257
257
|
const s = ({ m: t, b: a, rect: o, verticalX: r = null }) => {
|
|
258
|
-
const { left: h, right: C, top: S, bottom:
|
|
259
|
-
Number.isFinite(p) && Number.isFinite(v) &&
|
|
260
|
-
},
|
|
261
|
-
r !== null ? r >= h - 1e-9 && r <= C + 1e-9 && (d(r, S), d(r,
|
|
262
|
-
const
|
|
263
|
-
for (const p of
|
|
258
|
+
const { left: h, right: C, top: S, bottom: P } = o, F = [], d = (p, v) => {
|
|
259
|
+
Number.isFinite(p) && Number.isFinite(v) && F.push({ x: p, y: v });
|
|
260
|
+
}, k = ({ x: p, y: v }) => p >= h - 1e-9 && p <= C + 1e-9 && v >= S - 1e-9 && v <= P + 1e-9;
|
|
261
|
+
r !== null ? r >= h - 1e-9 && r <= C + 1e-9 && (d(r, S), d(r, P)) : Number.isFinite(t) && (d(h, t * h + a), d(C, t * C + a), Math.abs(t) > 1e-9 ? (d((S - a) / t, S), d((P - a) / t, P)) : a >= S - 1e-9 && a <= P + 1e-9 && (d(h, a), d(C, a)));
|
|
262
|
+
const X = F.filter(k), w = [];
|
|
263
|
+
for (const p of X)
|
|
264
264
|
w.some((v) => Math.abs(v.x - p.x) < 1e-6 && Math.abs(v.y - p.y) < 1e-6) || w.push(p);
|
|
265
265
|
if (w.length < 2) return null;
|
|
266
|
-
let
|
|
266
|
+
let I = w[0], J = w[1], _ = 0;
|
|
267
267
|
for (let p = 0; p < w.length; p += 1)
|
|
268
268
|
for (let v = p + 1; v < w.length; v += 1) {
|
|
269
|
-
const
|
|
270
|
-
U > _ && (_ = U,
|
|
269
|
+
const x = w[p].x - w[v].x, W = w[p].y - w[v].y, U = x * x + W * W;
|
|
270
|
+
U > _ && (_ = U, I = w[p], J = w[v]);
|
|
271
271
|
}
|
|
272
|
-
return { x1:
|
|
272
|
+
return { x1: I.x, y1: I.y, x2: J.x, y2: J.y };
|
|
273
273
|
};
|
|
274
274
|
return Te.value.map((t) => {
|
|
275
|
-
const a = t.plots.length, o = t.plots.reduce((v,
|
|
275
|
+
const a = t.plots.length, o = t.plots.reduce((v, x) => v + x.x, 0) / a, r = t.plots.reduce((v, x) => v + x.y, 0) / a;
|
|
276
276
|
let h = 0, C = 0;
|
|
277
277
|
for (const v of t.plots) {
|
|
278
|
-
const
|
|
279
|
-
h +=
|
|
278
|
+
const x = v.x - o, W = v.y - r;
|
|
279
|
+
h += x * W, C += x * x;
|
|
280
280
|
}
|
|
281
|
-
let S,
|
|
282
|
-
C < 1e-9 ? (
|
|
283
|
-
let d,
|
|
284
|
-
|
|
285
|
-
const
|
|
281
|
+
let S, P, F = null;
|
|
282
|
+
C < 1e-9 ? (F = o, S = 1 / 0, P = null) : (S = h / C, P = r - S * o);
|
|
283
|
+
let d, k;
|
|
284
|
+
F !== null ? (d = 1 / 0, k = null) : (d = S, k = P);
|
|
285
|
+
const X = t.plots.every((v) => v.v && typeof v.v.x == "number" && typeof v.v.y == "number");
|
|
286
286
|
let w = NaN;
|
|
287
287
|
if (a >= 2) {
|
|
288
|
-
let v = 0,
|
|
289
|
-
|
|
290
|
-
let
|
|
291
|
-
for (const
|
|
292
|
-
const ne =
|
|
293
|
-
|
|
288
|
+
let v = 0, x = 0;
|
|
289
|
+
X ? (v = t.plots.reduce((O, ne) => O + ne.v.x, 0) / a, x = t.plots.reduce((O, ne) => O + ne.v.y, 0) / a) : (v = o, x = -r);
|
|
290
|
+
let W = 0, U = 0, ae = 0;
|
|
291
|
+
for (const O of t.plots) {
|
|
292
|
+
const ne = X ? O.v.x : O.x, Oe = X ? O.v.y : -O.y, pe = ne - v, ye = Oe - x;
|
|
293
|
+
W += pe * ye, U += pe * pe, ae += ye * ye;
|
|
294
294
|
}
|
|
295
|
-
if (U >= 1e-9 &&
|
|
296
|
-
const
|
|
297
|
-
w = Math.max(-1, Math.min(1,
|
|
295
|
+
if (U >= 1e-9 && ae >= 1e-9) {
|
|
296
|
+
const O = W / Math.sqrt(U * ae);
|
|
297
|
+
w = Math.max(-1, Math.min(1, O));
|
|
298
298
|
}
|
|
299
299
|
}
|
|
300
|
-
const
|
|
301
|
-
if (!
|
|
300
|
+
const I = s({ m: d, b: k, rect: c.value, verticalX: F });
|
|
301
|
+
if (!I)
|
|
302
302
|
return {
|
|
303
303
|
...t,
|
|
304
304
|
correlation: null,
|
|
@@ -310,33 +310,33 @@ const xl = ["id"], bl = ["xmlns", "viewBox"], kl = ["width", "height"], wl = { k
|
|
|
310
310
|
color: We(t.color)
|
|
311
311
|
}))
|
|
312
312
|
};
|
|
313
|
-
const J = (
|
|
313
|
+
const J = (I.x1 + I.x2) / 2, _ = (I.y1 + I.y2) / 2, p = { x: J, y: _ };
|
|
314
314
|
return {
|
|
315
315
|
...t,
|
|
316
316
|
color: We(t.color),
|
|
317
317
|
correlation: {
|
|
318
|
-
...
|
|
318
|
+
...I,
|
|
319
319
|
coefficient: w
|
|
320
320
|
},
|
|
321
321
|
label: p,
|
|
322
322
|
plots: t.plots.map((v) => {
|
|
323
|
-
let
|
|
324
|
-
|
|
325
|
-
const U = v.x -
|
|
323
|
+
let x, W;
|
|
324
|
+
F !== null ? (x = F, W = v.y) : Math.abs(d) < 1e-9 ? (x = v.x, W = k) : (x = (v.x + d * v.y - d * k) / (1 + d * d), W = (d * v.x + d * d * v.y + k) / (1 + d * d));
|
|
325
|
+
const U = v.x - x, ae = v.y - W, O = Math.sqrt(U * U + ae * ae);
|
|
326
326
|
return {
|
|
327
327
|
...v,
|
|
328
|
-
deviation:
|
|
328
|
+
deviation: O,
|
|
329
329
|
shape: t.shape,
|
|
330
330
|
color: We(t.color)
|
|
331
331
|
};
|
|
332
332
|
})
|
|
333
333
|
};
|
|
334
334
|
});
|
|
335
|
-
}),
|
|
336
|
-
function
|
|
335
|
+
}), nt = T(() => Math.max(...j.value.flatMap((l) => l.plots.map((s) => Math.abs(s.deviation)))));
|
|
336
|
+
function Wt() {
|
|
337
337
|
return j.value;
|
|
338
338
|
}
|
|
339
|
-
function
|
|
339
|
+
function it(l, s) {
|
|
340
340
|
const t = Array.isArray(l) ? l.flatMap((_) => _.plots.map((p) => ({
|
|
341
341
|
x: p.x,
|
|
342
342
|
y: p.y
|
|
@@ -348,28 +348,28 @@ const xl = ["id"], bl = ["xmlns", "viewBox"], kl = ["width", "height"], wl = { k
|
|
|
348
348
|
t.forEach(({ x: _, y: p }) => {
|
|
349
349
|
a = Math.min(a, _), o = Math.max(o, _), r = Math.min(r, p), h = Math.max(h, p);
|
|
350
350
|
});
|
|
351
|
-
const C = o - a, S = h - r,
|
|
351
|
+
const C = o - a, S = h - r, P = C / s, F = S / s, d = Array(s).fill(0), k = Array(s).fill(0);
|
|
352
352
|
t.forEach(({ x: _, y: p }) => {
|
|
353
|
-
const v = Math.floor((_ - a) /
|
|
354
|
-
d[v] || (d[v] = 0),
|
|
353
|
+
const v = Math.floor((_ - a) / P), x = Math.floor((p - r) / F);
|
|
354
|
+
d[v] || (d[v] = 0), k[x] || (k[x] = 0), d[v] += 1, k[x] += 1;
|
|
355
355
|
});
|
|
356
|
-
const
|
|
356
|
+
const X = [], w = [];
|
|
357
357
|
for (let _ = 0; _ < s; _ += 1)
|
|
358
|
-
|
|
359
|
-
const
|
|
360
|
-
return { x: d, y:
|
|
358
|
+
X.push(a + (_ + 0.5) * P), w.push(r + (_ + 0.5) * F);
|
|
359
|
+
const I = Math.max(...d), J = Math.max(...k);
|
|
360
|
+
return { x: d, y: k, avgX: X, avgY: w, maxX: I, maxY: J };
|
|
361
361
|
}
|
|
362
|
-
const
|
|
362
|
+
const le = T(() => e.value.style.layout.marginalBars.tranches), V = T(() => it(Te.value, le.value)), Xt = T(() => {
|
|
363
363
|
const l = c.value.top - e.value.style.layout.marginalBars.offset, s = c.value.right + e.value.style.layout.marginalBars.offset;
|
|
364
364
|
return Te.value.map((t) => {
|
|
365
|
-
const a =
|
|
365
|
+
const a = it(t, le.value);
|
|
366
366
|
return {
|
|
367
367
|
coords: a,
|
|
368
|
-
dX:
|
|
368
|
+
dX: al(a.avgX.map((o, r) => ({
|
|
369
369
|
x: o,
|
|
370
370
|
y: l - a.x[r] / a.maxX * e.value.style.layout.marginalBars.size
|
|
371
371
|
}))),
|
|
372
|
-
dY:
|
|
372
|
+
dY: ll(a.avgY.map((o, r) => ({
|
|
373
373
|
y: o,
|
|
374
374
|
x: s + e.value.style.layout.marginalBars.size * a.y[r] / a.maxY
|
|
375
375
|
}))),
|
|
@@ -377,8 +377,8 @@ const xl = ["id"], bl = ["xmlns", "viewBox"], kl = ["width", "height"], wl = { k
|
|
|
377
377
|
id: t.id
|
|
378
378
|
};
|
|
379
379
|
});
|
|
380
|
-
}), G =
|
|
381
|
-
function
|
|
380
|
+
}), G = m(void 0), f = m(null), Be = m(null);
|
|
381
|
+
function rt(l, s) {
|
|
382
382
|
G.value = l.id, f.value = l;
|
|
383
383
|
let t = "";
|
|
384
384
|
e.value.events.datapointEnter && e.value.events.datapointEnter({ datapoint: l, seriesIndex: s }), Be.value = {
|
|
@@ -388,12 +388,12 @@ const xl = ["id"], bl = ["xmlns", "viewBox"], kl = ["width", "height"], wl = { k
|
|
|
388
388
|
config: e.value
|
|
389
389
|
};
|
|
390
390
|
const a = e.value.style.tooltip.customFormat;
|
|
391
|
-
|
|
391
|
+
il(a) && rl(() => a({
|
|
392
392
|
datapoint: l,
|
|
393
393
|
seriesIndex: s,
|
|
394
394
|
series: j.value,
|
|
395
395
|
config: e.value
|
|
396
|
-
})) ?
|
|
396
|
+
})) ? $e.value = a({
|
|
397
397
|
datapoint: l,
|
|
398
398
|
seriesIndex: s,
|
|
399
399
|
series: j.value,
|
|
@@ -421,27 +421,27 @@ const xl = ["id"], bl = ["xmlns", "viewBox"], kl = ["width", "height"], wl = { k
|
|
|
421
421
|
)}</b></div>`, t += `${e.value.style.layout.plots.deviation.translation}: <b>${H({
|
|
422
422
|
v: l.deviation,
|
|
423
423
|
r: e.value.style.layout.plots.deviation.roundingValue
|
|
424
|
-
})}</b>`, t += "</div>",
|
|
424
|
+
})}</b>`, t += "</div>", $e.value = `<div>${t}</div>`), _e.value = !0;
|
|
425
425
|
}
|
|
426
|
-
function
|
|
426
|
+
function vt(l, s) {
|
|
427
427
|
e.value.events.datapointLeave && e.value.events.datapointLeave({ datapoint: l, seriesIndex: s }), _e.value = !1, G.value = void 0, f.value = null;
|
|
428
428
|
}
|
|
429
|
-
function
|
|
429
|
+
function yt(l, s) {
|
|
430
430
|
e.value.events.datapointClick && e.value.events.datapointClick({ datapoint: l, seriesIndex: s });
|
|
431
431
|
}
|
|
432
|
-
function
|
|
432
|
+
function ct(l) {
|
|
433
433
|
L.value.includes(l) ? L.value = L.value.filter((s) => s !== l) : L.value.length < Ce.value.length - 1 && L.value.push(l);
|
|
434
434
|
}
|
|
435
|
-
function
|
|
436
|
-
|
|
435
|
+
function dt(l = null) {
|
|
436
|
+
qt(() => {
|
|
437
437
|
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((r) => [
|
|
438
438
|
r.name,
|
|
439
439
|
r.correlation.coefficient,
|
|
440
440
|
r.plots.length,
|
|
441
441
|
r.plots.map((h) => h.v.x).reduce((h, C) => h + C, 0) / r.plots.length,
|
|
442
442
|
r.plots.map((h) => h.v.y).reduce((h, C) => h + C, 0) / r.plots.length
|
|
443
|
-
]), a = [[e.value.style.title.text], [e.value.style.title.subtitle.text], [[""], [""], [""]]].concat([s]).concat(t), o =
|
|
444
|
-
l ? l(o) :
|
|
443
|
+
]), a = [[e.value.style.title.text], [e.value.style.title.subtitle.text], [[""], [""], [""]]].concat([s]).concat(t), o = ul(a);
|
|
444
|
+
l ? l(o) : nl({ csvContent: o, title: e.value.style.title.text || "vue-ui-heatmap" });
|
|
445
445
|
});
|
|
446
446
|
}
|
|
447
447
|
const be = T(() => {
|
|
@@ -475,23 +475,23 @@ const xl = ["id"], bl = ["xmlns", "viewBox"], kl = ["width", "height"], wl = { k
|
|
|
475
475
|
breakpoint: e.value.table.responsiveBreakpoint
|
|
476
476
|
};
|
|
477
477
|
return { head: l, body: s, config: t, colNames: l };
|
|
478
|
-
}), ve =
|
|
479
|
-
function
|
|
478
|
+
}), ve = m(!1);
|
|
479
|
+
function ht(l) {
|
|
480
480
|
ve.value = l, De.value += 1;
|
|
481
481
|
}
|
|
482
|
-
function
|
|
482
|
+
function ft() {
|
|
483
483
|
R.value.showTable = !R.value.showTable;
|
|
484
484
|
}
|
|
485
|
-
function
|
|
485
|
+
function pt() {
|
|
486
486
|
R.value.showTooltip = !R.value.showTooltip;
|
|
487
487
|
}
|
|
488
|
-
const ke =
|
|
488
|
+
const ke = m(!1);
|
|
489
489
|
function Pe() {
|
|
490
490
|
ke.value = !ke.value;
|
|
491
491
|
}
|
|
492
|
-
async function
|
|
493
|
-
if (!
|
|
494
|
-
const { width: s, height: t } =
|
|
492
|
+
async function Yt({ scale: l = 2 } = {}) {
|
|
493
|
+
if (!ee.value) return;
|
|
494
|
+
const { width: s, height: t } = ee.value.getBoundingClientRect(), a = s / t, { imageUri: o, base64: r } = await xl({ domElement: ee.value, base64: !0, img: !0, scale: l });
|
|
495
495
|
return {
|
|
496
496
|
imageUri: o,
|
|
497
497
|
base64: r,
|
|
@@ -501,34 +501,34 @@ const xl = ["id"], bl = ["xmlns", "viewBox"], kl = ["width", "height"], wl = { k
|
|
|
501
501
|
aspectRatio: a
|
|
502
502
|
};
|
|
503
503
|
}
|
|
504
|
-
return
|
|
505
|
-
getData:
|
|
506
|
-
getImage:
|
|
507
|
-
generatePdf:
|
|
508
|
-
generateCsv:
|
|
509
|
-
generateImage:
|
|
510
|
-
toggleTable:
|
|
511
|
-
toggleTooltip:
|
|
504
|
+
return $t({
|
|
505
|
+
getData: Wt,
|
|
506
|
+
getImage: Yt,
|
|
507
|
+
generatePdf: ot,
|
|
508
|
+
generateCsv: dt,
|
|
509
|
+
generateImage: st,
|
|
510
|
+
toggleTable: ft,
|
|
511
|
+
toggleTooltip: pt,
|
|
512
512
|
toggleAnnotator: Pe,
|
|
513
|
-
toggleFullscreen:
|
|
513
|
+
toggleFullscreen: ht
|
|
514
514
|
}), (l, s) => (u(), i("div", {
|
|
515
|
-
class:
|
|
515
|
+
class: mt(`vue-ui-scatter ${ve.value ? "vue-data-ui-wrapper-fullscreen" : ""} ${e.value.useCssAnimation ? "" : "vue-ui-dna"}`),
|
|
516
516
|
ref_key: "scatterChart",
|
|
517
|
-
ref:
|
|
518
|
-
id: `vue-ui-scatter_${
|
|
519
|
-
style:
|
|
520
|
-
onMouseenter: s[2] || (s[2] = () => n(
|
|
521
|
-
onMouseleave: s[3] || (s[3] = () => n(
|
|
517
|
+
ref: ee,
|
|
518
|
+
id: `vue-ui-scatter_${B.value}`,
|
|
519
|
+
style: oe(`font-family:${e.value.style.fontFamily};width:100%; text-align:center;background:${e.value.style.backgroundColor};${e.value.responsive ? "height: 100%" : ""}`),
|
|
520
|
+
onMouseenter: s[2] || (s[2] = () => n(Ke)(!0)),
|
|
521
|
+
onMouseleave: s[3] || (s[3] = () => n(Ke)(!1))
|
|
522
522
|
}, [
|
|
523
|
-
e.value.userOptions.buttons.annotator ? (u(),
|
|
523
|
+
e.value.userOptions.buttons.annotator ? (u(), K(n(St), {
|
|
524
524
|
key: 0,
|
|
525
|
-
svgRef: n(
|
|
525
|
+
svgRef: n(et),
|
|
526
526
|
backgroundColor: e.value.style.backgroundColor,
|
|
527
527
|
color: e.value.style.color,
|
|
528
528
|
active: ke.value,
|
|
529
529
|
onClose: Pe
|
|
530
530
|
}, null, 8, ["svgRef", "backgroundColor", "color", "active"])) : g("", !0),
|
|
531
|
-
|
|
531
|
+
Ft.value ? (u(), i("div", {
|
|
532
532
|
key: 1,
|
|
533
533
|
ref_key: "noTitle",
|
|
534
534
|
ref: Ue,
|
|
@@ -541,7 +541,7 @@ const xl = ["id"], bl = ["xmlns", "viewBox"], kl = ["width", "height"], wl = { k
|
|
|
541
541
|
ref: Re,
|
|
542
542
|
style: "width:100%;background:transparent"
|
|
543
543
|
}, [
|
|
544
|
-
(u(),
|
|
544
|
+
(u(), K(ml, {
|
|
545
545
|
key: `title_${Ge.value}`,
|
|
546
546
|
config: {
|
|
547
547
|
title: {
|
|
@@ -555,15 +555,18 @@ const xl = ["id"], bl = ["xmlns", "viewBox"], kl = ["width", "height"], wl = { k
|
|
|
555
555
|
}
|
|
556
556
|
}, null, 8, ["config"]))
|
|
557
557
|
], 512)) : g("", !0),
|
|
558
|
-
|
|
558
|
+
b("div", {
|
|
559
|
+
id: `legend-top-${B.value}`
|
|
560
|
+
}, null, 8, wl),
|
|
561
|
+
e.value.userOptions.show && Ye.value && (n(Qe) || n(Le)) ? (u(), K(n(zt), {
|
|
559
562
|
ref_key: "details",
|
|
560
|
-
ref:
|
|
563
|
+
ref: Bt,
|
|
561
564
|
key: `user_options_${De.value}`,
|
|
562
565
|
backgroundColor: e.value.style.backgroundColor,
|
|
563
566
|
color: e.value.style.color,
|
|
564
|
-
isImaging: n(
|
|
565
|
-
isPrinting: n(
|
|
566
|
-
uid:
|
|
567
|
+
isImaging: n(at),
|
|
568
|
+
isPrinting: n(lt),
|
|
569
|
+
uid: B.value,
|
|
567
570
|
hasTooltip: e.value.userOptions.buttons.tooltip && e.value.style.tooltip.show,
|
|
568
571
|
hasPdf: e.value.userOptions.buttons.pdf,
|
|
569
572
|
hasImg: e.value.userOptions.buttons.img,
|
|
@@ -573,89 +576,89 @@ const xl = ["id"], bl = ["xmlns", "viewBox"], kl = ["width", "height"], wl = { k
|
|
|
573
576
|
isTooltip: R.value.showTooltip,
|
|
574
577
|
isFullscreen: ve.value,
|
|
575
578
|
titles: { ...e.value.userOptions.buttonTitles },
|
|
576
|
-
chartElement:
|
|
579
|
+
chartElement: ee.value,
|
|
577
580
|
position: e.value.userOptions.position,
|
|
578
581
|
hasAnnotator: e.value.userOptions.buttons.annotator,
|
|
579
582
|
isAnnotation: ke.value,
|
|
580
583
|
callbacks: e.value.userOptions.callbacks,
|
|
581
584
|
printScale: e.value.userOptions.print.scale,
|
|
582
|
-
onToggleFullscreen:
|
|
583
|
-
onGeneratePdf: n(
|
|
584
|
-
onGenerateCsv:
|
|
585
|
-
onGenerateImage: n(
|
|
586
|
-
onToggleTable:
|
|
587
|
-
onToggleTooltip:
|
|
585
|
+
onToggleFullscreen: ht,
|
|
586
|
+
onGeneratePdf: n(ot),
|
|
587
|
+
onGenerateCsv: dt,
|
|
588
|
+
onGenerateImage: n(st),
|
|
589
|
+
onToggleTable: ft,
|
|
590
|
+
onToggleTooltip: pt,
|
|
588
591
|
onToggleAnnotator: Pe,
|
|
589
|
-
style:
|
|
590
|
-
visibility: n(
|
|
592
|
+
style: oe({
|
|
593
|
+
visibility: n(Qe) ? n(Le) ? "visible" : "hidden" : "visible"
|
|
591
594
|
})
|
|
592
|
-
},
|
|
595
|
+
}, Vt({ _: 2 }, [
|
|
593
596
|
l.$slots.menuIcon ? {
|
|
594
597
|
name: "menuIcon",
|
|
595
|
-
fn:
|
|
596
|
-
|
|
598
|
+
fn: N(({ isOpen: t, color: a }) => [
|
|
599
|
+
E(l.$slots, "menuIcon", he(fe({ isOpen: t, color: a })), void 0, !0)
|
|
597
600
|
]),
|
|
598
601
|
key: "0"
|
|
599
602
|
} : void 0,
|
|
600
603
|
l.$slots.optionTooltip ? {
|
|
601
604
|
name: "optionTooltip",
|
|
602
|
-
fn:
|
|
603
|
-
|
|
605
|
+
fn: N(() => [
|
|
606
|
+
E(l.$slots, "optionTooltip", {}, void 0, !0)
|
|
604
607
|
]),
|
|
605
608
|
key: "1"
|
|
606
609
|
} : void 0,
|
|
607
610
|
l.$slots.optionPdf ? {
|
|
608
611
|
name: "optionPdf",
|
|
609
|
-
fn:
|
|
610
|
-
|
|
612
|
+
fn: N(() => [
|
|
613
|
+
E(l.$slots, "optionPdf", {}, void 0, !0)
|
|
611
614
|
]),
|
|
612
615
|
key: "2"
|
|
613
616
|
} : void 0,
|
|
614
617
|
l.$slots.optionCsv ? {
|
|
615
618
|
name: "optionCsv",
|
|
616
|
-
fn:
|
|
617
|
-
|
|
619
|
+
fn: N(() => [
|
|
620
|
+
E(l.$slots, "optionCsv", {}, void 0, !0)
|
|
618
621
|
]),
|
|
619
622
|
key: "3"
|
|
620
623
|
} : void 0,
|
|
621
624
|
l.$slots.optionImg ? {
|
|
622
625
|
name: "optionImg",
|
|
623
|
-
fn:
|
|
624
|
-
|
|
626
|
+
fn: N(() => [
|
|
627
|
+
E(l.$slots, "optionImg", {}, void 0, !0)
|
|
625
628
|
]),
|
|
626
629
|
key: "4"
|
|
627
630
|
} : void 0,
|
|
628
631
|
l.$slots.optionTable ? {
|
|
629
632
|
name: "optionTable",
|
|
630
|
-
fn:
|
|
631
|
-
|
|
633
|
+
fn: N(() => [
|
|
634
|
+
E(l.$slots, "optionTable", {}, void 0, !0)
|
|
632
635
|
]),
|
|
633
636
|
key: "5"
|
|
634
637
|
} : void 0,
|
|
635
638
|
l.$slots.optionFullscreen ? {
|
|
636
639
|
name: "optionFullscreen",
|
|
637
|
-
fn:
|
|
638
|
-
|
|
640
|
+
fn: N(({ toggleFullscreen: t, isFullscreen: a }) => [
|
|
641
|
+
E(l.$slots, "optionFullscreen", he(fe({ toggleFullscreen: t, isFullscreen: a })), void 0, !0)
|
|
639
642
|
]),
|
|
640
643
|
key: "6"
|
|
641
644
|
} : void 0,
|
|
642
645
|
l.$slots.optionAnnotator ? {
|
|
643
646
|
name: "optionAnnotator",
|
|
644
|
-
fn:
|
|
645
|
-
|
|
647
|
+
fn: N(({ toggleAnnotator: t, isAnnotator: a }) => [
|
|
648
|
+
E(l.$slots, "optionAnnotator", he(fe({ toggleAnnotator: t, isAnnotator: a })), void 0, !0)
|
|
646
649
|
]),
|
|
647
650
|
key: "7"
|
|
648
651
|
} : void 0
|
|
649
652
|
]), 1032, ["backgroundColor", "color", "isImaging", "isPrinting", "uid", "hasTooltip", "hasPdf", "hasImg", "hasXls", "hasTable", "hasFullscreen", "isTooltip", "isFullscreen", "titles", "chartElement", "position", "hasAnnotator", "isAnnotation", "callbacks", "printScale", "onGeneratePdf", "onGenerateImage", "style"])) : g("", !0),
|
|
650
653
|
(u(), i("svg", {
|
|
651
654
|
ref_key: "svgRef",
|
|
652
|
-
ref:
|
|
653
|
-
xmlns: n(
|
|
654
|
-
class:
|
|
655
|
+
ref: et,
|
|
656
|
+
xmlns: n(ol),
|
|
657
|
+
class: mt({ "vue-data-ui-fullscreen--on": ve.value, "vue-data-ui-fulscreen--off": !ve.value, animated: e.value.useCssAnimation }),
|
|
655
658
|
viewBox: `0 0 ${z.value.width <= 0 ? 10 : z.value.width} ${z.value.height <= 0 ? 10 : z.value.height}`,
|
|
656
|
-
style:
|
|
659
|
+
style: oe(`max-width:100%;overflow:visible;background:transparent;color:${e.value.style.color}`)
|
|
657
660
|
}, [
|
|
658
|
-
Fe(n(
|
|
661
|
+
Fe(n(Ct)),
|
|
659
662
|
l.$slots["chart-background"] ? (u(), i("foreignObject", {
|
|
660
663
|
key: 0,
|
|
661
664
|
x: 0,
|
|
@@ -666,10 +669,10 @@ const xl = ["id"], bl = ["xmlns", "viewBox"], kl = ["width", "height"], wl = { k
|
|
|
666
669
|
pointerEvents: "none"
|
|
667
670
|
}
|
|
668
671
|
}, [
|
|
669
|
-
|
|
670
|
-
], 8,
|
|
671
|
-
e.value.style.layout.axis.show ? (u(), i("g",
|
|
672
|
-
|
|
672
|
+
E(l.$slots, "chart-background", {}, void 0, !0)
|
|
673
|
+
], 8, $l)) : g("", !0),
|
|
674
|
+
e.value.style.layout.axis.show ? (u(), i("g", Ml, [
|
|
675
|
+
b("line", {
|
|
673
676
|
x1: A.value.x,
|
|
674
677
|
x2: A.value.x,
|
|
675
678
|
y1: c.value.top,
|
|
@@ -677,8 +680,8 @@ const xl = ["id"], bl = ["xmlns", "viewBox"], kl = ["width", "height"], wl = { k
|
|
|
677
680
|
stroke: e.value.style.layout.axis.stroke,
|
|
678
681
|
"stroke-width": e.value.style.layout.axis.strokeWidth,
|
|
679
682
|
"stroke-linecap": "round"
|
|
680
|
-
}, null, 8,
|
|
681
|
-
|
|
683
|
+
}, null, 8, Al),
|
|
684
|
+
b("line", {
|
|
682
685
|
x1: c.value.left,
|
|
683
686
|
x2: c.value.right,
|
|
684
687
|
y1: A.value.y,
|
|
@@ -686,116 +689,116 @@ const xl = ["id"], bl = ["xmlns", "viewBox"], kl = ["width", "height"], wl = { k
|
|
|
686
689
|
stroke: e.value.style.layout.axis.stroke,
|
|
687
690
|
"stroke-width": e.value.style.layout.axis.strokeWidth,
|
|
688
691
|
"stroke-linecap": "round"
|
|
689
|
-
}, null, 8,
|
|
692
|
+
}, null, 8, Cl)
|
|
690
693
|
])) : g("", !0),
|
|
691
|
-
e.value.style.layout.plots.giftWrap.show ? (u(), i("g",
|
|
692
|
-
(u(!0), i(q, null,
|
|
694
|
+
e.value.style.layout.plots.giftWrap.show ? (u(), i("g", Sl, [
|
|
695
|
+
(u(!0), i(q, null, Q(j.value, (t, a) => (u(), i("g", null, [
|
|
693
696
|
t.plots.length > 2 ? (u(), i("polygon", {
|
|
694
697
|
key: 0,
|
|
695
|
-
points: n(
|
|
698
|
+
points: n(sl)({ series: t.plots }),
|
|
696
699
|
fill: n(Xe)(t.color, e.value.style.layout.plots.giftWrap.fillOpacity * 100),
|
|
697
700
|
"stroke-width": e.value.style.layout.plots.giftWrap.strokeWidth,
|
|
698
701
|
"stroke-dasharray": e.value.style.layout.plots.giftWrap.strokeDasharray,
|
|
699
702
|
stroke: t.color,
|
|
700
703
|
"stroke-linejoin": "round",
|
|
701
704
|
"stroke-linecap": "round"
|
|
702
|
-
}, null, 8,
|
|
705
|
+
}, null, 8, Ll)) : g("", !0)
|
|
703
706
|
]))), 256))
|
|
704
707
|
])) : g("", !0),
|
|
705
|
-
(u(!0), i(q, null,
|
|
706
|
-
!t.shape || t.shape === "circle" ? (u(), i("g",
|
|
707
|
-
(u(!0), i(q, null,
|
|
708
|
+
(u(!0), i(q, null, Q(j.value, (t, a) => (u(), i("g", null, [
|
|
709
|
+
!t.shape || t.shape === "circle" ? (u(), i("g", zl, [
|
|
710
|
+
(u(!0), i(q, null, Q(t.plots, (o, r) => (u(), i("circle", {
|
|
708
711
|
cx: o.x,
|
|
709
712
|
cy: o.y,
|
|
710
713
|
r: G.value && G.value === o.id ? o.weight * 2 : o.weight,
|
|
711
714
|
fill: n(Xe)(t.color, e.value.style.layout.plots.opacity * 100),
|
|
712
715
|
stroke: e.value.style.layout.plots.stroke,
|
|
713
716
|
"stroke-width": e.value.style.layout.plots.strokeWidth,
|
|
714
|
-
style:
|
|
715
|
-
onMouseover: (h) =>
|
|
716
|
-
onMouseleave: (h) =>
|
|
717
|
-
onClick: (h) =>
|
|
718
|
-
}, null, 44,
|
|
719
|
-
])) : (u(), i("g",
|
|
720
|
-
(u(!0), i(q, null,
|
|
717
|
+
style: oe(`opacity:${G.value && G.value === o.id ? 1 : e.value.style.layout.plots.significance.useDistanceOpacity ? 1 - Math.abs(o.deviation) / nt.value : e.value.style.layout.plots.significance.show && Math.abs(o.deviation) > e.value.style.layout.plots.significance.deviationThreshold ? e.value.style.layout.plots.significance.opacity : 1}`),
|
|
718
|
+
onMouseover: (h) => rt(o, a),
|
|
719
|
+
onMouseleave: (h) => vt(o, a),
|
|
720
|
+
onClick: (h) => yt(o, a)
|
|
721
|
+
}, null, 44, Tl))), 256))
|
|
722
|
+
])) : (u(), i("g", Bl, [
|
|
723
|
+
(u(!0), i(q, null, Q(t.plots, (o, r) => (u(), K(wt, {
|
|
721
724
|
plot: { x: o.x, y: o.y },
|
|
722
725
|
radius: G.value && G.value === o.id ? o.weight * 2 : o.weight,
|
|
723
726
|
shape: t.shape,
|
|
724
727
|
color: n(Xe)(t.color, e.value.style.layout.plots.opacity * 100),
|
|
725
728
|
stroke: e.value.style.layout.plots.stroke,
|
|
726
729
|
strokeWidth: e.value.style.layout.plots.strokeWidth,
|
|
727
|
-
style:
|
|
728
|
-
onMouseover: (h) =>
|
|
729
|
-
onMouseleave: (h) =>
|
|
730
|
-
onClick: (h) =>
|
|
730
|
+
style: oe(`opacity:${G.value && G.value === o.id ? 1 : e.value.style.layout.plots.significance.useDistanceOpacity ? 1 - Math.abs(o.deviation) / nt.value : e.value.style.layout.plots.significance.show && Math.abs(o.deviation) > e.value.style.layout.plots.significance.deviationThreshold ? e.value.style.layout.plots.significance.opacity : 1}`),
|
|
731
|
+
onMouseover: (h) => rt(o, a),
|
|
732
|
+
onMouseleave: (h) => vt(o, a),
|
|
733
|
+
onClick: (h) => yt(o, a)
|
|
731
734
|
}, null, 8, ["plot", "radius", "shape", "color", "stroke", "strokeWidth", "style", "onMouseover", "onMouseleave", "onClick"]))), 256))
|
|
732
735
|
]))
|
|
733
736
|
]))), 256)),
|
|
734
|
-
e.value.style.layout.marginalBars.show ? (u(), i("g",
|
|
735
|
-
|
|
736
|
-
|
|
737
|
-
id: `marginal_x_${
|
|
737
|
+
e.value.style.layout.marginalBars.show ? (u(), i("g", Pl, [
|
|
738
|
+
b("defs", null, [
|
|
739
|
+
b("linearGradient", {
|
|
740
|
+
id: `marginal_x_${B.value}`,
|
|
738
741
|
x1: "0%",
|
|
739
742
|
y1: "0%",
|
|
740
743
|
x2: "0%",
|
|
741
744
|
y2: "100%"
|
|
742
745
|
}, [
|
|
743
|
-
|
|
746
|
+
b("stop", {
|
|
744
747
|
offset: "0%",
|
|
745
748
|
"stop-color": e.value.style.layout.marginalBars.fill
|
|
746
|
-
}, null, 8,
|
|
747
|
-
|
|
749
|
+
}, null, 8, Nl),
|
|
750
|
+
b("stop", {
|
|
748
751
|
offset: "100%",
|
|
749
752
|
"stop-color": e.value.style.backgroundColor
|
|
750
|
-
}, null, 8,
|
|
751
|
-
], 8,
|
|
752
|
-
|
|
753
|
-
id: `marginal_y_${
|
|
753
|
+
}, null, 8, El)
|
|
754
|
+
], 8, Ol),
|
|
755
|
+
b("linearGradient", {
|
|
756
|
+
id: `marginal_y_${B.value}`,
|
|
754
757
|
x1: "0%",
|
|
755
758
|
x2: "100%",
|
|
756
759
|
y1: "0%",
|
|
757
760
|
y2: "0%"
|
|
758
761
|
}, [
|
|
759
|
-
|
|
762
|
+
b("stop", {
|
|
760
763
|
offset: "0%",
|
|
761
764
|
"stop-color": e.value.style.backgroundColor
|
|
762
|
-
}, null, 8,
|
|
763
|
-
|
|
765
|
+
}, null, 8, Il),
|
|
766
|
+
b("stop", {
|
|
764
767
|
offset: "100%",
|
|
765
768
|
"stop-color": e.value.style.layout.marginalBars.fill
|
|
766
|
-
}, null, 8,
|
|
767
|
-
], 8,
|
|
769
|
+
}, null, 8, Wl)
|
|
770
|
+
], 8, Fl)
|
|
768
771
|
]),
|
|
769
|
-
(u(!0), i(q, null,
|
|
772
|
+
(u(!0), i(q, null, Q(V.value.x, (t, a) => (u(), i("g", null, [
|
|
770
773
|
t && V.value.avgX[a] ? (u(), i("rect", {
|
|
771
774
|
key: 0,
|
|
772
|
-
x: V.value.avgX[a] - c.value.width /
|
|
775
|
+
x: V.value.avgX[a] - c.value.width / le.value / 2,
|
|
773
776
|
y: c.value.top - e.value.style.layout.marginalBars.offset - t / V.value.maxX * e.value.style.layout.marginalBars.size,
|
|
774
|
-
width: c.value.width /
|
|
777
|
+
width: c.value.width / le.value <= 0 ? 1e-4 : c.value.width / le.value,
|
|
775
778
|
height: t / V.value.maxX * e.value.style.layout.marginalBars.size <= 0 ? 1e-4 : t / V.value.maxX * e.value.style.layout.marginalBars.size,
|
|
776
|
-
fill: e.value.style.layout.marginalBars.useGradient ? `url(#marginal_x_${
|
|
777
|
-
style:
|
|
779
|
+
fill: e.value.style.layout.marginalBars.useGradient ? `url(#marginal_x_${B.value})` : e.value.style.layout.marginalBars.fill,
|
|
780
|
+
style: oe(`opacity:${e.value.style.layout.marginalBars.opacity}`),
|
|
778
781
|
stroke: e.value.style.backgroundColor,
|
|
779
782
|
"stroke-width": e.value.style.layout.marginalBars.strokeWidth,
|
|
780
783
|
rx: e.value.style.layout.marginalBars.borderRadius
|
|
781
|
-
}, null, 12,
|
|
784
|
+
}, null, 12, Xl)) : g("", !0)
|
|
782
785
|
]))), 256)),
|
|
783
|
-
(u(!0), i(q, null,
|
|
786
|
+
(u(!0), i(q, null, Q(V.value.y, (t, a) => (u(), i("g", null, [
|
|
784
787
|
t && V.value.avgY[a] ? (u(), i("rect", {
|
|
785
788
|
key: 0,
|
|
786
789
|
x: c.value.right + e.value.style.layout.marginalBars.offset,
|
|
787
|
-
y: V.value.avgY[a] - c.value.height /
|
|
788
|
-
height: c.value.height /
|
|
790
|
+
y: V.value.avgY[a] - c.value.height / le.value / 2,
|
|
791
|
+
height: c.value.height / le.value <= 0 ? 1e-4 : c.value.height / le.value,
|
|
789
792
|
width: t / V.value.maxY * e.value.style.layout.marginalBars.size <= 0 ? 1e-4 : t / V.value.maxY * e.value.style.layout.marginalBars.size,
|
|
790
|
-
fill: e.value.style.layout.marginalBars.useGradient ? `url(#marginal_y_${
|
|
791
|
-
style:
|
|
793
|
+
fill: e.value.style.layout.marginalBars.useGradient ? `url(#marginal_y_${B.value})` : e.value.style.layout.marginalBars.fill,
|
|
794
|
+
style: oe(`opacity:${e.value.style.layout.marginalBars.opacity}`),
|
|
792
795
|
stroke: e.value.style.backgroundColor,
|
|
793
796
|
"stroke-width": e.value.style.layout.marginalBars.strokeWidth,
|
|
794
797
|
rx: e.value.style.layout.marginalBars.borderRadius
|
|
795
|
-
}, null, 12,
|
|
798
|
+
}, null, 12, Yl)) : g("", !0)
|
|
796
799
|
]))), 256)),
|
|
797
|
-
e.value.style.layout.marginalBars.showLines ? (u(), i("g",
|
|
798
|
-
(u(!0), i(q, null,
|
|
800
|
+
e.value.style.layout.marginalBars.showLines ? (u(), i("g", Dl, [
|
|
801
|
+
(u(!0), i(q, null, Q(Xt.value, (t) => (u(), i(q, null, [
|
|
799
802
|
L.value.includes(t.id) ? g("", !0) : (u(), i("path", {
|
|
800
803
|
key: 0,
|
|
801
804
|
d: `M ${t.dX}`,
|
|
@@ -804,7 +807,7 @@ const xl = ["id"], bl = ["xmlns", "viewBox"], kl = ["width", "height"], wl = { k
|
|
|
804
807
|
"stroke-linecap": "round",
|
|
805
808
|
"stroke-linejoin": "round",
|
|
806
809
|
fill: "none"
|
|
807
|
-
}, null, 8,
|
|
810
|
+
}, null, 8, Rl)),
|
|
808
811
|
L.value.includes(t.id) ? g("", !0) : (u(), i("path", {
|
|
809
812
|
key: 1,
|
|
810
813
|
d: `M ${t.dX}`,
|
|
@@ -813,7 +816,7 @@ const xl = ["id"], bl = ["xmlns", "viewBox"], kl = ["width", "height"], wl = { k
|
|
|
813
816
|
"stroke-linecap": "round",
|
|
814
817
|
"stroke-linejoin": "round",
|
|
815
818
|
fill: "none"
|
|
816
|
-
}, null, 8,
|
|
819
|
+
}, null, 8, jl)),
|
|
817
820
|
L.value.includes(t.id) ? g("", !0) : (u(), i("path", {
|
|
818
821
|
key: 2,
|
|
819
822
|
d: `M ${t.dY}`,
|
|
@@ -822,7 +825,7 @@ const xl = ["id"], bl = ["xmlns", "viewBox"], kl = ["width", "height"], wl = { k
|
|
|
822
825
|
"stroke-linecap": "round",
|
|
823
826
|
"stroke-linejoin": "round",
|
|
824
827
|
fill: "none"
|
|
825
|
-
}, null, 8,
|
|
828
|
+
}, null, 8, Vl)),
|
|
826
829
|
L.value.includes(t.id) ? g("", !0) : (u(), i("path", {
|
|
827
830
|
key: 3,
|
|
828
831
|
d: `M ${t.dY}`,
|
|
@@ -831,12 +834,12 @@ const xl = ["id"], bl = ["xmlns", "viewBox"], kl = ["width", "height"], wl = { k
|
|
|
831
834
|
"stroke-linecap": "round",
|
|
832
835
|
"stroke-linejoin": "round",
|
|
833
836
|
fill: "none"
|
|
834
|
-
}, null, 8,
|
|
837
|
+
}, null, 8, Ul))
|
|
835
838
|
], 64))), 256))
|
|
836
839
|
])) : g("", !0)
|
|
837
840
|
])) : g("", !0),
|
|
838
|
-
f.value && e.value.style.layout.plots.selectors.show ? (u(), i("g",
|
|
839
|
-
|
|
841
|
+
f.value && e.value.style.layout.plots.selectors.show ? (u(), i("g", Gl, [
|
|
842
|
+
b("line", {
|
|
840
843
|
x1: A.value.x,
|
|
841
844
|
x2: f.value.x,
|
|
842
845
|
y1: f.value.y,
|
|
@@ -846,8 +849,8 @@ const xl = ["id"], bl = ["xmlns", "viewBox"], kl = ["width", "height"], wl = { k
|
|
|
846
849
|
"stroke-dasharray": e.value.style.layout.plots.selectors.strokeDasharray,
|
|
847
850
|
"stroke-linecap": "round",
|
|
848
851
|
class: "line-pointer"
|
|
849
|
-
}, null, 8,
|
|
850
|
-
|
|
852
|
+
}, null, 8, ql),
|
|
853
|
+
b("line", {
|
|
851
854
|
x1: f.value.x,
|
|
852
855
|
x2: f.value.x,
|
|
853
856
|
y1: A.value.y,
|
|
@@ -857,44 +860,44 @@ const xl = ["id"], bl = ["xmlns", "viewBox"], kl = ["width", "height"], wl = { k
|
|
|
857
860
|
"stroke-dasharray": e.value.style.layout.plots.selectors.strokeDasharray,
|
|
858
861
|
"stroke-linecap": "round",
|
|
859
862
|
class: "line-pointer"
|
|
860
|
-
}, null, 8,
|
|
861
|
-
|
|
863
|
+
}, null, 8, Hl),
|
|
864
|
+
b("text", {
|
|
862
865
|
x: A.value.x + (f.value.x > A.value.x ? -6 : 6),
|
|
863
866
|
y: f.value.y + e.value.style.layout.plots.selectors.labels.fontSize / 3,
|
|
864
867
|
"font-size": e.value.style.layout.plots.selectors.labels.fontSize,
|
|
865
868
|
fill: e.value.style.layout.plots.selectors.labels.color,
|
|
866
869
|
"font-weight": e.value.style.layout.plots.selectors.labels.bold ? "bold" : "normal",
|
|
867
870
|
"text-anchor": f.value.x > A.value.x ? "end" : "start"
|
|
868
|
-
},
|
|
871
|
+
}, Y(n(se)(
|
|
869
872
|
e.value.style.layout.plots.selectors.labels.y.formatter,
|
|
870
|
-
n(
|
|
873
|
+
n(D)(f.value.v.y),
|
|
871
874
|
n(H)({
|
|
872
875
|
p: e.value.style.layout.plots.selectors.labels.prefix,
|
|
873
|
-
v: n(
|
|
876
|
+
v: n(D)(f.value.v.y),
|
|
874
877
|
s: e.value.style.layout.plots.selectors.labels.suffix,
|
|
875
878
|
r: e.value.style.layout.plots.selectors.labels.rounding
|
|
876
879
|
}),
|
|
877
880
|
{ datapoint: f.value }
|
|
878
|
-
)), 9,
|
|
879
|
-
|
|
881
|
+
)), 9, Zl),
|
|
882
|
+
b("text", {
|
|
880
883
|
x: f.value.x,
|
|
881
884
|
y: A.value.y + (f.value.y > A.value.y ? -6 : e.value.style.layout.plots.selectors.labels.fontSize + 6),
|
|
882
885
|
"font-size": e.value.style.layout.plots.selectors.labels.fontSize,
|
|
883
886
|
fill: e.value.style.layout.plots.selectors.labels.color,
|
|
884
887
|
"font-weight": e.value.style.layout.plots.selectors.labels.bold ? "bold" : "normal",
|
|
885
888
|
"text-anchor": "middle"
|
|
886
|
-
},
|
|
889
|
+
}, Y(n(se)(
|
|
887
890
|
e.value.style.layout.plots.selectors.labels.y.formatter,
|
|
888
|
-
n(
|
|
891
|
+
n(D)(f.value.v.x),
|
|
889
892
|
n(H)({
|
|
890
893
|
p: e.value.style.layout.plots.selectors.labels.prefix,
|
|
891
|
-
v: n(
|
|
894
|
+
v: n(D)(f.value.v.x),
|
|
892
895
|
s: e.value.style.layout.plots.selectors.labels.suffix,
|
|
893
896
|
r: e.value.style.layout.plots.selectors.labels.rounding
|
|
894
897
|
}),
|
|
895
898
|
{ datapoint: f.value }
|
|
896
|
-
)), 9,
|
|
897
|
-
|
|
899
|
+
)), 9, Jl),
|
|
900
|
+
b("circle", {
|
|
898
901
|
cx: A.value.x,
|
|
899
902
|
cy: f.value.y,
|
|
900
903
|
r: e.value.style.layout.plots.selectors.markers.radius,
|
|
@@ -902,8 +905,8 @@ const xl = ["id"], bl = ["xmlns", "viewBox"], kl = ["width", "height"], wl = { k
|
|
|
902
905
|
stroke: e.value.style.layout.plots.selectors.markers.stroke,
|
|
903
906
|
"stroke-width": e.value.style.layout.plots.selectors.markers.strokeWidth,
|
|
904
907
|
class: "line-pointer"
|
|
905
|
-
}, null, 8,
|
|
906
|
-
|
|
908
|
+
}, null, 8, Kl),
|
|
909
|
+
b("circle", {
|
|
907
910
|
cx: f.value.x,
|
|
908
911
|
cy: A.value.y,
|
|
909
912
|
r: e.value.style.layout.plots.selectors.markers.radius,
|
|
@@ -911,7 +914,7 @@ const xl = ["id"], bl = ["xmlns", "viewBox"], kl = ["width", "height"], wl = { k
|
|
|
911
914
|
stroke: e.value.style.layout.plots.selectors.markers.stroke,
|
|
912
915
|
"stroke-width": e.value.style.layout.plots.selectors.markers.strokeWidth,
|
|
913
916
|
class: "line-pointer"
|
|
914
|
-
}, null, 8,
|
|
917
|
+
}, null, 8, Ql),
|
|
915
918
|
e.value.style.layout.plots.selectors.labels.showName ? (u(), i("text", {
|
|
916
919
|
key: 0,
|
|
917
920
|
x: f.value.x,
|
|
@@ -920,116 +923,116 @@ const xl = ["id"], bl = ["xmlns", "viewBox"], kl = ["width", "height"], wl = { k
|
|
|
920
923
|
fill: e.value.style.layout.plots.selectors.labels.color,
|
|
921
924
|
"font-weight": e.value.style.layout.plots.selectors.labels.bold ? "bold" : "normal",
|
|
922
925
|
"text-anchor": f.value.x < c.value.left + 100 ? "start" : f.value.x > c.value.right - 100 ? "end" : f.value.x > A.value.x ? "start" : "end"
|
|
923
|
-
},
|
|
926
|
+
}, Y(f.value.v.name), 9, ea)) : g("", !0)
|
|
924
927
|
])) : g("", !0),
|
|
925
928
|
e.value.style.layout.dataLabels.xAxis.show ? (u(), i("g", {
|
|
926
929
|
key: 5,
|
|
927
930
|
ref_key: "xAxisLabelLeft",
|
|
928
|
-
ref:
|
|
931
|
+
ref: Me
|
|
929
932
|
}, [
|
|
930
|
-
|
|
931
|
-
id: `vue-ui-scatter-xAxis-label-${
|
|
933
|
+
b("text", {
|
|
934
|
+
id: `vue-ui-scatter-xAxis-label-${B.value}`,
|
|
932
935
|
transform: `translate(${e.value.style.layout.dataLabels.xAxis.fontSize}, ${c.value.top + c.value.height / 2}), rotate(-90)`,
|
|
933
936
|
"text-anchor": "middle",
|
|
934
937
|
"font-size": e.value.style.layout.dataLabels.xAxis.fontSize,
|
|
935
938
|
"font-weight": e.value.style.layout.dataLabels.xAxis.bold ? "bold" : "normal",
|
|
936
939
|
fill: e.value.style.layout.dataLabels.xAxis.color
|
|
937
|
-
},
|
|
938
|
-
|
|
940
|
+
}, Y(e.value.style.layout.dataLabels.xAxis.name), 9, ta),
|
|
941
|
+
b("text", {
|
|
939
942
|
"text-anchor": "middle",
|
|
940
943
|
"font-size": e.value.style.layout.dataLabels.xAxis.fontSize,
|
|
941
944
|
fill: e.value.style.layout.dataLabels.xAxis.color,
|
|
942
945
|
transform: `translate(${e.value.style.layout.dataLabels.xAxis.name ? e.value.style.layout.dataLabels.xAxis.fontSize * 3 : 0}, ${A.value.y + e.value.style.layout.dataLabels.xAxis.fontSize / 3}), rotate(-90)`
|
|
943
|
-
},
|
|
946
|
+
}, Y(n(se)(
|
|
944
947
|
e.value.style.layout.plots.selectors.labels.x.formatter,
|
|
945
|
-
n(
|
|
948
|
+
n(D)($.value.xMin),
|
|
946
949
|
n(H)({
|
|
947
950
|
p: e.value.style.layout.plots.selectors.labels.prefix,
|
|
948
|
-
v: n(
|
|
951
|
+
v: n(D)($.value.xMin),
|
|
949
952
|
s: e.value.style.layout.plots.selectors.labels.suffix,
|
|
950
953
|
r: e.value.style.layout.dataLabels.xAxis.rounding
|
|
951
954
|
})
|
|
952
|
-
)), 9,
|
|
955
|
+
)), 9, la)
|
|
953
956
|
], 512)) : g("", !0),
|
|
954
957
|
e.value.style.layout.dataLabels.xAxis.show ? (u(), i("text", {
|
|
955
958
|
key: 6,
|
|
956
959
|
ref_key: "xAxisLabelRight",
|
|
957
|
-
ref:
|
|
960
|
+
ref: Pt,
|
|
958
961
|
"text-anchor": "middle",
|
|
959
962
|
transform: `translate(${c.value.right + e.value.style.layout.padding.right + 6}, ${A.value.y + e.value.style.layout.dataLabels.xAxis.fontSize / 3}), rotate(-90)`,
|
|
960
963
|
"font-size": e.value.style.layout.dataLabels.xAxis.fontSize,
|
|
961
964
|
fill: e.value.style.layout.dataLabels.xAxis.color
|
|
962
|
-
},
|
|
965
|
+
}, Y(n(se)(
|
|
963
966
|
e.value.style.layout.plots.selectors.labels.x.formatter,
|
|
964
|
-
n(
|
|
967
|
+
n(D)($.value.xMax),
|
|
965
968
|
n(H)({
|
|
966
969
|
p: e.value.style.layout.plots.selectors.labels.prefix,
|
|
967
|
-
v: n(
|
|
970
|
+
v: n(D)($.value.xMax),
|
|
968
971
|
s: e.value.style.layout.plots.selectors.labels.suffix,
|
|
969
972
|
r: e.value.style.layout.dataLabels.xAxis.rounding
|
|
970
973
|
})
|
|
971
|
-
)), 9,
|
|
974
|
+
)), 9, aa)) : g("", !0),
|
|
972
975
|
e.value.style.layout.dataLabels.yAxis.show ? (u(), i("text", {
|
|
973
976
|
key: 7,
|
|
974
977
|
ref_key: "yAxisLabelTop",
|
|
975
|
-
ref:
|
|
978
|
+
ref: Ot,
|
|
976
979
|
x: A.value.x,
|
|
977
980
|
y: c.value.top - e.value.style.layout.dataLabels.yAxis.fontSize,
|
|
978
981
|
"text-anchor": "middle",
|
|
979
982
|
"font-size": e.value.style.layout.dataLabels.yAxis.fontSize,
|
|
980
983
|
fill: e.value.style.layout.dataLabels.yAxis.color
|
|
981
|
-
},
|
|
984
|
+
}, Y(n(se)(
|
|
982
985
|
e.value.style.layout.plots.selectors.labels.y.formatter,
|
|
983
|
-
n(
|
|
986
|
+
n(D)($.value.yMax),
|
|
984
987
|
n(H)({
|
|
985
988
|
p: e.value.style.layout.plots.selectors.labels.prefix,
|
|
986
|
-
v: n(
|
|
989
|
+
v: n(D)($.value.yMax),
|
|
987
990
|
s: e.value.style.layout.plots.selectors.labels.suffix,
|
|
988
991
|
r: e.value.style.layout.dataLabels.yAxis.rounding
|
|
989
992
|
})
|
|
990
|
-
)), 9,
|
|
993
|
+
)), 9, oa)) : g("", !0),
|
|
991
994
|
e.value.style.layout.dataLabels.yAxis.show ? (u(), i("g", {
|
|
992
995
|
key: 8,
|
|
993
996
|
ref_key: "yAxisLabelBottom",
|
|
994
997
|
ref: Ae
|
|
995
998
|
}, [
|
|
996
|
-
|
|
999
|
+
b("text", {
|
|
997
1000
|
x: A.value.x,
|
|
998
1001
|
y: z.value.height - e.value.style.layout.dataLabels.yAxis.fontSize * 2,
|
|
999
1002
|
"text-anchor": "middle",
|
|
1000
1003
|
"font-size": e.value.style.layout.dataLabels.yAxis.fontSize,
|
|
1001
1004
|
fill: e.value.style.layout.dataLabels.yAxis.color
|
|
1002
|
-
},
|
|
1005
|
+
}, Y(n(se)(
|
|
1003
1006
|
e.value.style.layout.plots.selectors.labels.y.formatter,
|
|
1004
|
-
n(
|
|
1007
|
+
n(D)($.value.yMin),
|
|
1005
1008
|
n(H)({
|
|
1006
1009
|
p: e.value.style.layout.plots.selectors.labels.prefix,
|
|
1007
|
-
v: n(
|
|
1010
|
+
v: n(D)($.value.yMin),
|
|
1008
1011
|
s: e.value.style.layout.plots.selectors.labels.suffix,
|
|
1009
1012
|
r: e.value.style.layout.dataLabels.yAxis.rounding
|
|
1010
1013
|
})
|
|
1011
|
-
)), 9,
|
|
1012
|
-
|
|
1014
|
+
)), 9, sa),
|
|
1015
|
+
b("text", {
|
|
1013
1016
|
"text-anchor": "middle",
|
|
1014
1017
|
"font-size": e.value.style.layout.dataLabels.yAxis.fontSize,
|
|
1015
1018
|
"font-weight": e.value.style.layout.dataLabels.yAxis.bold ? "bold" : "normal",
|
|
1016
1019
|
fill: e.value.style.layout.dataLabels.yAxis.color,
|
|
1017
1020
|
x: c.value.left + c.value.width / 2,
|
|
1018
1021
|
y: z.value.height
|
|
1019
|
-
},
|
|
1022
|
+
}, Y(e.value.style.layout.dataLabels.yAxis.name), 9, ua)
|
|
1020
1023
|
], 512)) : g("", !0),
|
|
1021
|
-
|
|
1022
|
-
id: `clip_path_${
|
|
1024
|
+
b("clipPath", {
|
|
1025
|
+
id: `clip_path_${B.value}`
|
|
1023
1026
|
}, [
|
|
1024
|
-
|
|
1027
|
+
b("rect", {
|
|
1025
1028
|
x: c.value.left,
|
|
1026
1029
|
y: c.value.top,
|
|
1027
1030
|
width: c.value.width <= 0 ? 1e-4 : c.value.width,
|
|
1028
1031
|
height: c.value.height <= 0 ? 1e-4 : c.value.height
|
|
1029
|
-
}, null, 8,
|
|
1030
|
-
], 8,
|
|
1031
|
-
e.value.style.layout.correlation.show ? (u(), i("g",
|
|
1032
|
-
(u(!0), i(q, null,
|
|
1032
|
+
}, null, 8, ia)
|
|
1033
|
+
], 8, na),
|
|
1034
|
+
e.value.style.layout.correlation.show ? (u(), i("g", ra, [
|
|
1035
|
+
(u(!0), i(q, null, Q(j.value, (t, a) => (u(), i("line", {
|
|
1033
1036
|
x1: t.correlation.x1,
|
|
1034
1037
|
x2: t.correlation.x2,
|
|
1035
1038
|
y1: t.correlation.y1,
|
|
@@ -1037,9 +1040,9 @@ const xl = ["id"], bl = ["xmlns", "viewBox"], kl = ["width", "height"], wl = { k
|
|
|
1037
1040
|
"stroke-dasharray": e.value.style.layout.correlation.strokeDasharray,
|
|
1038
1041
|
stroke: t.color,
|
|
1039
1042
|
"stroke-width": e.value.style.layout.correlation.strokeWidth,
|
|
1040
|
-
"clip-path": `url(#clip_path_${
|
|
1041
|
-
}, null, 8,
|
|
1042
|
-
(u(!0), i(q, null,
|
|
1043
|
+
"clip-path": `url(#clip_path_${B.value})`
|
|
1044
|
+
}, null, 8, va))), 256)),
|
|
1045
|
+
(u(!0), i(q, null, Q(j.value, (t, a) => (u(), i("g", null, [
|
|
1043
1046
|
e.value.style.layout.correlation.label.show ? (u(), i("text", {
|
|
1044
1047
|
key: 0,
|
|
1045
1048
|
x: t.correlation.x2,
|
|
@@ -1048,48 +1051,56 @@ const xl = ["id"], bl = ["xmlns", "viewBox"], kl = ["width", "height"], wl = { k
|
|
|
1048
1051
|
"text-anchor": "end",
|
|
1049
1052
|
"font-size": e.value.style.layout.correlation.label.fontSize,
|
|
1050
1053
|
"font-weight": e.value.style.layout.correlation.label.bold ? "bold" : "normal"
|
|
1051
|
-
},
|
|
1052
|
-
v: n(
|
|
1054
|
+
}, Y(n(H)({
|
|
1055
|
+
v: n(D)(t.correlation.coefficient),
|
|
1053
1056
|
r: e.value.style.layout.correlation.label.roundingValue
|
|
1054
|
-
})), 9,
|
|
1057
|
+
})), 9, ya)) : g("", !0)
|
|
1055
1058
|
]))), 256))
|
|
1056
1059
|
])) : g("", !0),
|
|
1057
|
-
|
|
1058
|
-
], 14,
|
|
1059
|
-
l.$slots.watermark ? (u(), i("div",
|
|
1060
|
-
|
|
1060
|
+
E(l.$slots, "svg", { svg: z.value }, void 0, !0)
|
|
1061
|
+
], 14, _l)),
|
|
1062
|
+
l.$slots.watermark ? (u(), i("div", ca, [
|
|
1063
|
+
E(l.$slots, "watermark", he(fe({ isPrinting: n(lt) || n(at) })), void 0, !0)
|
|
1061
1064
|
])) : g("", !0),
|
|
1062
|
-
|
|
1063
|
-
|
|
1064
|
-
|
|
1065
|
+
b("div", {
|
|
1066
|
+
id: `legend-bottom-${B.value}`
|
|
1067
|
+
}, null, 8, da),
|
|
1068
|
+
Ze.value ? (u(), K(Ut, {
|
|
1069
|
+
key: 5,
|
|
1070
|
+
to: e.value.style.legend.position === "top" ? `#legend-top-${B.value}` : `#legend-bottom-${B.value}`
|
|
1065
1071
|
}, [
|
|
1066
|
-
|
|
1067
|
-
|
|
1068
|
-
|
|
1069
|
-
|
|
1070
|
-
|
|
1071
|
-
|
|
1072
|
-
|
|
1073
|
-
|
|
1074
|
-
|
|
1075
|
-
|
|
1076
|
-
|
|
1077
|
-
|
|
1078
|
-
|
|
1079
|
-
|
|
1080
|
-
|
|
1081
|
-
|
|
1082
|
-
|
|
1083
|
-
|
|
1072
|
+
b("div", {
|
|
1073
|
+
ref_key: "chartLegend",
|
|
1074
|
+
ref: je
|
|
1075
|
+
}, [
|
|
1076
|
+
e.value.style.legend.show ? (u(), K(gl, {
|
|
1077
|
+
key: `legend_${He.value}`,
|
|
1078
|
+
legendSet: ue.value,
|
|
1079
|
+
config: It.value,
|
|
1080
|
+
onClickMarker: s[0] || (s[0] = ({ legend: t }) => ct(t.id))
|
|
1081
|
+
}, {
|
|
1082
|
+
item: N(({ legend: t }) => [
|
|
1083
|
+
b("div", {
|
|
1084
|
+
onClick: (a) => t.segregate(),
|
|
1085
|
+
style: oe(`opacity:${L.value.includes(t.id) ? 0.5 : 1}`)
|
|
1086
|
+
}, Y(t.name), 13, ha)
|
|
1087
|
+
]),
|
|
1088
|
+
_: 1
|
|
1089
|
+
}, 8, ["legendSet", "config"])) : E(l.$slots, "legend", {
|
|
1090
|
+
key: 1,
|
|
1091
|
+
legend: ue.value
|
|
1092
|
+
}, void 0, !0)
|
|
1093
|
+
], 512)
|
|
1094
|
+
], 8, ["to"])) : g("", !0),
|
|
1084
1095
|
l.$slots.source ? (u(), i("div", {
|
|
1085
|
-
key:
|
|
1096
|
+
key: 6,
|
|
1086
1097
|
ref_key: "source",
|
|
1087
1098
|
ref: Ve,
|
|
1088
1099
|
dir: "auto"
|
|
1089
1100
|
}, [
|
|
1090
|
-
|
|
1101
|
+
E(l.$slots, "source", {}, void 0, !0)
|
|
1091
1102
|
], 512)) : g("", !0),
|
|
1092
|
-
Fe(n(
|
|
1103
|
+
Fe(n(Lt), {
|
|
1093
1104
|
show: R.value.showTooltip && _e.value,
|
|
1094
1105
|
backgroundColor: e.value.style.tooltip.backgroundColor,
|
|
1095
1106
|
color: e.value.style.tooltip.color,
|
|
@@ -1100,23 +1111,23 @@ const xl = ["id"], bl = ["xmlns", "viewBox"], kl = ["width", "height"], wl = { k
|
|
|
1100
1111
|
backgroundOpacity: e.value.style.tooltip.backgroundOpacity,
|
|
1101
1112
|
position: e.value.style.tooltip.position,
|
|
1102
1113
|
offsetY: e.value.style.tooltip.offsetY,
|
|
1103
|
-
parent:
|
|
1104
|
-
content:
|
|
1114
|
+
parent: ee.value,
|
|
1115
|
+
content: $e.value,
|
|
1105
1116
|
isFullscreen: ve.value,
|
|
1106
1117
|
isCustom: e.value.style.tooltip.customFormat && typeof e.value.style.tooltip.customFormat == "function",
|
|
1107
1118
|
smooth: e.value.style.tooltip.smooth,
|
|
1108
1119
|
backdropFilter: e.value.style.tooltip.backdropFilter
|
|
1109
1120
|
}, {
|
|
1110
|
-
"tooltip-before":
|
|
1111
|
-
|
|
1121
|
+
"tooltip-before": N(() => [
|
|
1122
|
+
E(l.$slots, "tooltip-before", he(fe({ ...Be.value })), void 0, !0)
|
|
1112
1123
|
]),
|
|
1113
|
-
"tooltip-after":
|
|
1114
|
-
|
|
1124
|
+
"tooltip-after": N(() => [
|
|
1125
|
+
E(l.$slots, "tooltip-after", he(fe({ ...Be.value })), void 0, !0)
|
|
1115
1126
|
]),
|
|
1116
|
-
default:
|
|
1117
|
-
e.value.style.tooltip.showShape ? (u(), i("div",
|
|
1118
|
-
(u(), i("svg",
|
|
1119
|
-
Fe(
|
|
1127
|
+
default: N(() => [
|
|
1128
|
+
e.value.style.tooltip.showShape ? (u(), i("div", fa, [
|
|
1129
|
+
(u(), i("svg", pa, [
|
|
1130
|
+
Fe(wt, {
|
|
1120
1131
|
shape: f.value.shape,
|
|
1121
1132
|
color: f.value.color,
|
|
1122
1133
|
plot: { x: 10, y: 10 },
|
|
@@ -1127,8 +1138,8 @@ const xl = ["id"], bl = ["xmlns", "viewBox"], kl = ["width", "height"], wl = { k
|
|
|
1127
1138
|
]),
|
|
1128
1139
|
_: 3
|
|
1129
1140
|
}, 8, ["show", "backgroundColor", "color", "borderRadius", "borderColor", "borderWidth", "fontSize", "backgroundOpacity", "position", "offsetY", "parent", "content", "isFullscreen", "isCustom", "smooth", "backdropFilter"]),
|
|
1130
|
-
Ye.value ? (u(),
|
|
1131
|
-
key:
|
|
1141
|
+
Ye.value ? (u(), K(n(Mt), {
|
|
1142
|
+
key: 7,
|
|
1132
1143
|
hideDetails: "",
|
|
1133
1144
|
config: {
|
|
1134
1145
|
open: R.value.showTable,
|
|
@@ -1143,8 +1154,8 @@ const xl = ["id"], bl = ["xmlns", "viewBox"], kl = ["width", "height"], wl = { k
|
|
|
1143
1154
|
}
|
|
1144
1155
|
}
|
|
1145
1156
|
}, {
|
|
1146
|
-
content:
|
|
1147
|
-
(u(),
|
|
1157
|
+
content: N(() => [
|
|
1158
|
+
(u(), K(n(At), {
|
|
1148
1159
|
key: `table_${qe.value}`,
|
|
1149
1160
|
colNames: be.value.colNames,
|
|
1150
1161
|
head: be.value.head,
|
|
@@ -1153,26 +1164,26 @@ const xl = ["id"], bl = ["xmlns", "viewBox"], kl = ["width", "height"], wl = { k
|
|
|
1153
1164
|
title: `${e.value.style.title.text}${e.value.style.title.subtitle.text ? ` : ${e.value.style.title.subtitle.text}` : ""}`,
|
|
1154
1165
|
onClose: s[1] || (s[1] = (t) => R.value.showTable = !1)
|
|
1155
1166
|
}, {
|
|
1156
|
-
th:
|
|
1157
|
-
|
|
1167
|
+
th: N(({ th: t }) => [
|
|
1168
|
+
Gt(Y(t), 1)
|
|
1158
1169
|
]),
|
|
1159
|
-
td:
|
|
1160
|
-
t.shape ? (u(), i("div",
|
|
1161
|
-
|
|
1170
|
+
td: N(({ td: t }) => [
|
|
1171
|
+
t.shape ? (u(), i("div", ga, [
|
|
1172
|
+
b("span", null, Y(t.content), 1)
|
|
1162
1173
|
])) : (u(), i("div", {
|
|
1163
1174
|
key: 1,
|
|
1164
1175
|
innerHTML: t
|
|
1165
|
-
}, null, 8,
|
|
1176
|
+
}, null, 8, ma))
|
|
1166
1177
|
]),
|
|
1167
1178
|
_: 1
|
|
1168
1179
|
}, 8, ["colNames", "head", "body", "config", "title"]))
|
|
1169
1180
|
]),
|
|
1170
1181
|
_: 1
|
|
1171
1182
|
}, 8, ["config"])) : g("", !0),
|
|
1172
|
-
n(
|
|
1173
|
-
], 46,
|
|
1183
|
+
n(Je) ? (u(), K(dl, { key: 8 })) : g("", !0)
|
|
1184
|
+
], 46, kl));
|
|
1174
1185
|
}
|
|
1175
|
-
},
|
|
1186
|
+
}, Pa = /* @__PURE__ */ bl(xa, [["__scopeId", "data-v-5baae5ec"]]);
|
|
1176
1187
|
export {
|
|
1177
|
-
|
|
1188
|
+
Pa as default
|
|
1178
1189
|
};
|