vue-data-ui 3.4.6 → 3.4.8
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/{PackageVersion-BSldVhnp.js → PackageVersion-D-auaEEJ.js} +1 -1
- package/dist/{UserOptions-CnzumGJj.js → UserOptions-CGnQt6Fd.js} +91 -91
- package/dist/components/vue-ui-3d-bar.js +1 -1
- package/dist/components/vue-ui-age-pyramid.js +1 -1
- package/dist/components/vue-ui-bullet.js +1 -1
- package/dist/components/vue-ui-candlestick.js +1 -1
- package/dist/components/vue-ui-carousel-table.js +1 -1
- package/dist/components/vue-ui-chestnut.js +1 -1
- package/dist/components/vue-ui-chord.js +1 -1
- package/dist/components/vue-ui-circle-pack.js +1 -1
- package/dist/components/vue-ui-dashboard.js +1 -1
- package/dist/components/vue-ui-donut-evolution.js +1 -1
- package/dist/components/vue-ui-donut.js +1 -1
- package/dist/components/vue-ui-dumbbell.js +1 -1
- package/dist/components/vue-ui-flow.js +1 -1
- package/dist/components/vue-ui-funnel.js +1 -1
- package/dist/components/vue-ui-galaxy.js +1 -1
- package/dist/components/vue-ui-gauge.js +1 -1
- package/dist/components/vue-ui-gizmo.js +1 -1
- package/dist/components/vue-ui-heatmap.js +1 -1
- package/dist/components/vue-ui-history-plot.js +1 -1
- package/dist/components/vue-ui-horizontal-bar.js +1 -1
- package/dist/components/vue-ui-molecule.js +1 -1
- package/dist/components/vue-ui-mood-radar.js +1 -1
- package/dist/components/vue-ui-nested-donuts.js +1 -1
- package/dist/components/vue-ui-onion.js +1 -1
- package/dist/components/vue-ui-parallel-coordinate-plot.js +1 -1
- package/dist/components/vue-ui-quadrant.js +1 -1
- package/dist/components/vue-ui-quick-chart.js +1 -1
- package/dist/components/vue-ui-radar.js +1 -1
- package/dist/components/vue-ui-relation-circle.js +1 -1
- package/dist/components/vue-ui-ridgeline.js +1 -1
- package/dist/components/vue-ui-rings.js +1 -1
- package/dist/components/vue-ui-scatter.js +1 -1
- package/dist/components/vue-ui-skeleton.js +1 -1
- package/dist/components/vue-ui-spark-trend.js +1 -1
- package/dist/components/vue-ui-sparkbar.js +1 -1
- package/dist/components/vue-ui-sparkgauge.js +1 -1
- package/dist/components/vue-ui-sparkhistogram.js +1 -1
- package/dist/components/vue-ui-sparkline.js +1 -1
- package/dist/components/vue-ui-sparkstackbar.js +1 -1
- package/dist/components/vue-ui-stackbar.js +1 -1
- package/dist/components/vue-ui-strip-plot.js +1 -1
- package/dist/components/vue-ui-table-heatmap.js +1 -1
- package/dist/components/vue-ui-table-sparkline.js +1 -1
- package/dist/components/vue-ui-table.js +1 -1
- package/dist/components/vue-ui-thermometer.js +1 -1
- package/dist/components/vue-ui-timer.js +1 -1
- package/dist/components/vue-ui-tiremarks.js +1 -1
- package/dist/components/vue-ui-treemap.js +1 -1
- package/dist/components/vue-ui-vertical-bar.js +1 -1
- package/dist/components/vue-ui-waffle.js +1 -1
- package/dist/components/vue-ui-wheel.js +1 -1
- package/dist/components/vue-ui-word-cloud.js +1 -1
- package/dist/components/vue-ui-world.js +1 -1
- package/dist/components/vue-ui-xy-canvas.js +1 -1
- package/dist/components/vue-ui-xy.js +1 -1
- package/dist/style.css +1 -1
- package/dist/{vue-data-ui-BCOCglbX.js → vue-data-ui-CzqHcPqG.js} +55 -55
- package/dist/vue-data-ui.js +55 -55
- package/dist/{vue-ui-3d-bar-E-nuI5P-.js → vue-ui-3d-bar-CwXiD8zD.js} +49 -42
- package/dist/{vue-ui-age-pyramid-DfN03uDZ.js → vue-ui-age-pyramid-DlEPlWmV.js} +12 -5
- package/dist/{vue-ui-bullet-DVOmSxcg.js → vue-ui-bullet-DtzpeIu4.js} +59 -52
- package/dist/{vue-ui-candlestick-C0tlhgvf.js → vue-ui-candlestick-DzoiyaeB.js} +56 -49
- package/dist/{vue-ui-carousel-table-Bwf70lBb.js → vue-ui-carousel-table-BqRERrjs.js} +79 -72
- package/dist/{vue-ui-chestnut-CzNj08EH.js → vue-ui-chestnut-CzBGckif.js} +77 -70
- package/dist/{vue-ui-chord-CQAAGCjj.js → vue-ui-chord-B4waG93A.js} +71 -64
- package/dist/{vue-ui-circle-pack-8Ut7fxPJ.js → vue-ui-circle-pack-DiTw_p5r.js} +58 -51
- package/dist/{vue-ui-dashboard-CpG2L2Xk.js → vue-ui-dashboard-Bt-MUKqy.js} +56 -56
- package/dist/{vue-ui-donut-acdGdmqY.js → vue-ui-donut-Bc492JeS.js} +95 -88
- package/dist/{vue-ui-donut-evolution-J2tTLcht.js → vue-ui-donut-evolution-D6TaZK2x.js} +80 -73
- package/dist/{vue-ui-dumbbell-DhDvD0DH.js → vue-ui-dumbbell-BlZr68Sq.js} +12 -5
- package/dist/{vue-ui-flow-Du9joQEy.js → vue-ui-flow-ByEP18dA.js} +205 -198
- package/dist/{vue-ui-funnel-BPccZaVG.js → vue-ui-funnel-BU7d_U6T.js} +98 -91
- package/dist/{vue-ui-galaxy-D69X300F.js → vue-ui-galaxy-CpVrxaTr.js} +140 -133
- package/dist/{vue-ui-gauge-C_tPaN05.js → vue-ui-gauge-B9Z4EXoj.js} +108 -101
- package/dist/{vue-ui-gizmo-Bsc620Bs.js → vue-ui-gizmo-T1paJEJ3.js} +1 -1
- package/dist/{vue-ui-heatmap-CRoQ0Xo1.js → vue-ui-heatmap-Uw83eEMz.js} +97 -90
- package/dist/{vue-ui-history-plot-PQT8iCyT.js → vue-ui-history-plot-C93VwVCY.js} +41 -34
- package/dist/{vue-ui-molecule-C0hQ1BHF.js → vue-ui-molecule-CFMWwXFN.js} +94 -87
- package/dist/{vue-ui-mood-radar-DMng4w8x.js → vue-ui-mood-radar-FkVaaOVG.js} +71 -64
- package/dist/{vue-ui-nested-donuts-DtnysjV9.js → vue-ui-nested-donuts-Cyi98NXq.js} +93 -86
- package/dist/{vue-ui-onion-C0Z5_zay.js → vue-ui-onion-BCENNhsY.js} +82 -75
- package/dist/{vue-ui-parallel-coordinate-plot-C0grlzOd.js → vue-ui-parallel-coordinate-plot-Dca9wkD0.js} +116 -109
- package/dist/{vue-ui-quadrant-BJGF3wuL.js → vue-ui-quadrant-CEtFEZT3.js} +46 -39
- package/dist/{vue-ui-quick-chart-CaR3jp1D.js → vue-ui-quick-chart-bqcp6BIl.js} +171 -164
- package/dist/{vue-ui-radar-wYNRX7Uh.js → vue-ui-radar-lgRCmyNP.js} +36 -29
- package/dist/{vue-ui-relation-circle-CIwou-3d.js → vue-ui-relation-circle-cRRrbaIT.js} +100 -93
- package/dist/{vue-ui-ridgeline-DnzoIClq.js → vue-ui-ridgeline-CaeFJq9a.js} +23 -16
- package/dist/{vue-ui-rings-B7zSZa8h.js → vue-ui-rings-DbsYfGjx.js} +55 -48
- package/dist/{vue-ui-scatter-Bevyh8s3.js → vue-ui-scatter-DcMnoNrY.js} +189 -182
- package/dist/{vue-ui-skeleton-DfuGqFYM.js → vue-ui-skeleton-b5fdgyHv.js} +1 -1
- package/dist/{vue-ui-spark-trend-D16UBZxk.js → vue-ui-spark-trend-DrQ26BzL.js} +1 -1
- package/dist/{vue-ui-sparkbar-Dl1kY_5e.js → vue-ui-sparkbar-BlvXLcfO.js} +1 -1
- package/dist/{vue-ui-sparkgauge-iJIT26xG.js → vue-ui-sparkgauge-CQmNePxu.js} +1 -1
- package/dist/{vue-ui-sparkhistogram-Bawjmfxu.js → vue-ui-sparkhistogram-CJatqy8x.js} +1 -1
- package/dist/{vue-ui-sparkline-CGVoLIcr.js → vue-ui-sparkline-5m7hFiMq.js} +1 -1
- package/dist/{vue-ui-sparkstackbar-CdlGAlFM.js → vue-ui-sparkstackbar-Z5g6L2Hj.js} +1 -1
- package/dist/{vue-ui-stackbar-Cjz4PvOG.js → vue-ui-stackbar-WrexTg8_.js} +53 -46
- package/dist/{vue-ui-strip-plot-DS84cU6V.js → vue-ui-strip-plot-DqX7yya9.js} +13 -6
- package/dist/{vue-ui-table-t9Shp522.js → vue-ui-table-BhrP9BCp.js} +2 -2
- package/dist/{vue-ui-table-heatmap-B4rjR34n.js → vue-ui-table-heatmap-BqCEBoUf.js} +1 -1
- package/dist/{vue-ui-table-sparkline-CAqqSvhG.js → vue-ui-table-sparkline-BECa8n5_.js} +1 -1
- package/dist/{vue-ui-thermometer-CKciCjTK.js → vue-ui-thermometer-BxBGrsSR.js} +83 -76
- package/dist/{vue-ui-timer-CNwoVRn5.js → vue-ui-timer-BbHY5Ed5.js} +1 -1
- package/dist/{vue-ui-tiremarks-Dxp9rcJi.js → vue-ui-tiremarks-DzL3Sc1f.js} +43 -36
- package/dist/{vue-ui-treemap-D4cRZ9SZ.js → vue-ui-treemap-DoHoS5NK.js} +114 -107
- package/dist/{vue-ui-vertical-bar-Cz6yCNYK.js → vue-ui-vertical-bar-D0N5btU-.js} +89 -82
- package/dist/{vue-ui-waffle-BhQ0m4Ia.js → vue-ui-waffle-CTt7dxCY.js} +41 -34
- package/dist/{vue-ui-wheel-Bh_G3WQQ.js → vue-ui-wheel--TIPvQ9I.js} +132 -125
- package/dist/{vue-ui-word-cloud-Bk2yP7oQ.js → vue-ui-word-cloud-D5pZq4Jq.js} +116 -109
- package/dist/{vue-ui-world-C_eUAzmI.js → vue-ui-world-BERHgePa.js} +71 -64
- package/dist/{vue-ui-xy-BDc2EKMr.js → vue-ui-xy-BI5stV8f.js} +163 -156
- package/dist/{vue-ui-xy-canvas-BGl_2pHw.js → vue-ui-xy-canvas-DXnLFwW3.js} +1 -1
- package/package.json +2 -2
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { defineAsyncComponent as ne, computed as T, ref as M, toRefs as hl, watch as ze, shallowRef as Bt, onMounted as pl, onBeforeUnmount as fl, createElementBlock as y, openBlock as r, unref as c, normalizeStyle as ue, normalizeClass as Tt, createBlock as le, createCommentVNode as x, createElementVNode as w, createVNode as
|
|
2
|
-
import { c as kl, t as wl, b as
|
|
1
|
+
import { defineAsyncComponent as ne, computed as T, ref as M, toRefs as hl, watch as ze, shallowRef as Bt, onMounted as pl, onBeforeUnmount as fl, createElementBlock as y, openBlock as r, unref as c, normalizeStyle as ue, normalizeClass as Tt, createBlock as le, createCommentVNode as x, createElementVNode as w, createVNode as _e, createSlots as zt, withCtx as W, renderSlot as R, normalizeProps as pe, guardReactiveProps as fe, Fragment as Z, renderList as J, toDisplayString as G, Teleport as gl, resolveDynamicComponent as ml, mergeProps as xl, createTextVNode as Pt, nextTick as bl } from "vue";
|
|
2
|
+
import { c as kl, t as wl, b as $l, p as ye, o as Ot, f as Qe, e as _l, g as Dt, aa as Ml, h as Je, ac as Cl, z as Sl, s as Pe, X as Al, ab as Ll, a as ie, x as q, d as K, P as Bl, Q as Tl, G as zl, H as Pl } from "./lib-C_mNZmhD.js";
|
|
3
3
|
import { t as Ol, u as Dl } from "./useResponsive-DfdjqQps.js";
|
|
4
4
|
import { u as El, a as Et } from "./useNestedProp-BjZe1Y85.js";
|
|
5
5
|
import { u as Fl, B as Wl } from "./BaseScanner-BgWxam9d.js";
|
|
@@ -22,7 +22,7 @@ const ql = ["id"], Hl = ["id"], Zl = ["xmlns", "viewBox"], Ql = ["width", "heigh
|
|
|
22
22
|
}, ga = ["x", "y", "width", "height", "fill", "fill-opacity"], ma = ["x1", "x2", "y1", "y2", "stroke", "stroke-dasharray", "stroke-width"], xa = ["x1", "x2", "y1", "y2", "stroke", "stroke-dasharray", "stroke-width"], ba = {
|
|
23
23
|
key: 0,
|
|
24
24
|
style: { "pointer-events": "none" }
|
|
25
|
-
}, ka = ["d", "stroke", "stroke-width"], wa = ["d", "stroke", "stroke-width"],
|
|
25
|
+
}, ka = ["d", "stroke", "stroke-width"], wa = ["d", "stroke", "stroke-width"], $a = ["d", "stroke", "stroke-width"], _a = ["d", "stroke", "stroke-width"], Ma = { key: 3 }, Ca = ["points", "fill", "stroke-width", "stroke-dasharray", "stroke"], Sa = { key: 0 }, Aa = ["cx", "cy", "r", "fill", "stroke", "stroke-width", "onMouseover", "onMouseleave", "onClick"], La = { key: 1 }, Ba = ["clip-path"], Ta = ["d", "fill", "stroke", "stroke-width", "stroke-opacity"], za = {
|
|
26
26
|
key: 0,
|
|
27
27
|
style: { "pointer-events": "none" }
|
|
28
28
|
}, Pa = ["x", "y", "width", "height"], Oa = {
|
|
@@ -59,7 +59,7 @@ const ql = ["id"], Hl = ["id"], Zl = ["xmlns", "viewBox"], Ql = ["width", "heigh
|
|
|
59
59
|
}
|
|
60
60
|
},
|
|
61
61
|
setup(Ft, { expose: Wt }) {
|
|
62
|
-
const Nt = ne(() => import("./Tooltip-oWCO1HKy.js")), It = ne(() => import("./BaseIcon-BmMbm4d0.js")), Xt = ne(() => import("./vue-ui-accordion-CZ0thhxa.js")), Yt = ne(() => import("./DataTable-BT7VF2ua.js")), Rt = ne(() => import("./PenAndPaper-DSvu9dwa.js")), jt = ne(() => import("./UserOptions-
|
|
62
|
+
const Nt = ne(() => import("./Tooltip-oWCO1HKy.js")), It = ne(() => import("./BaseIcon-BmMbm4d0.js")), Xt = ne(() => import("./vue-ui-accordion-CZ0thhxa.js")), Yt = ne(() => import("./DataTable-BT7VF2ua.js")), Rt = ne(() => import("./PenAndPaper-DSvu9dwa.js")), jt = ne(() => import("./UserOptions-CGnQt6Fd.js")), Ut = ne(() => import("./PackageVersion-D-auaEEJ.js")), Vt = ne(() => import("./BaseDraggableDialog-ymf2sfB8.js")), { vue_ui_scatter: Gt } = El(), ee = Ft, et = T(() => !!ee.dataset && ee.dataset.length), N = M(kl()), Oe = M(!1), De = M(""), tt = M(0), te = M(null), lt = M(null), at = M(null), ot = M(null), st = M(null), nt = M(0), ut = M(0), it = M(0), I = M([]), rt = M(!1), ge = M(null), me = M(null), xe = M(null), Ee = M(null), Fe = M(null), qt = M(null), Ht = M(null), We = M(null), e = M(Ye());
|
|
63
63
|
function Zt(l = 100, s = 0.8, t = {}) {
|
|
64
64
|
const { meanX: o = 0, sdX: a = 1, meanY: u = 0, sdY: i = 1, seed: p } = t;
|
|
65
65
|
let v = (p ?? Math.floor(Math.random() * 2 ** 31)) >>> 0;
|
|
@@ -68,12 +68,12 @@ const ql = ["id"], Hl = ["id"], Zl = ["xmlns", "viewBox"], Ql = ["width", "heigh
|
|
|
68
68
|
for (; m === 0; ) m = g();
|
|
69
69
|
for (; E === 0; ) E = g();
|
|
70
70
|
return Math.sqrt(-2 * Math.log(m)) * Math.cos(2 * Math.PI * E);
|
|
71
|
-
}, d = l / 2,
|
|
71
|
+
}, d = l / 2, _ = Array.from({ length: d }, L), D = Array.from({ length: d }, L), C = (m) => m.reduce((E, $e) => E + $e, 0) / m.length, z = C(_), X = C(D);
|
|
72
72
|
for (let m = 0; m < d; m += 1)
|
|
73
|
-
|
|
74
|
-
const B = (m, E) => m.reduce((
|
|
73
|
+
_[m] -= z, D[m] -= X;
|
|
74
|
+
const B = (m, E) => m.reduce(($e, Te, Ze) => $e + Te * E[Ze], 0), $ = (m) => B(m, m), h = B(D, _) / $(_), A = D.map((m, E) => m - h * _[E]), V = $(_) / d, Q = $(A) / d, se = Math.sqrt((1 - s * s) * V / Q), j = _.map((m, E) => s * m + se * A[E]), ve = _.concat(_.map((m) => -m)), He = j.concat(j.map((m) => -m)), ke = (m) => Math.sqrt($(m) / m.length), de = (m, E, $e) => {
|
|
75
75
|
const Te = ke(m);
|
|
76
|
-
return m.map((Ze) =>
|
|
76
|
+
return m.map((Ze) => $e + (Te ? Ze / Te * E : 0));
|
|
77
77
|
}, he = de(ve, a, o), we = de(He, i, u);
|
|
78
78
|
for (let m = he.length - 1; m > 0; m -= 1) {
|
|
79
79
|
const E = Math.floor(g() * (m + 1));
|
|
@@ -136,7 +136,7 @@ const ql = ["id"], Hl = ["id"], Zl = ["xmlns", "viewBox"], Ql = ["width", "heigh
|
|
|
136
136
|
userConfig: Rl.vue_ui_scatter[l.theme] || ee.config,
|
|
137
137
|
defaultConfig: l
|
|
138
138
|
}),
|
|
139
|
-
customPalette:
|
|
139
|
+
customPalette: $l[l.theme] || ye
|
|
140
140
|
} : l;
|
|
141
141
|
}
|
|
142
142
|
ze(() => ee.config, (l) => {
|
|
@@ -182,10 +182,10 @@ const ql = ["id"], Hl = ["id"], Zl = ["xmlns", "viewBox"], Ql = ["width", "heigh
|
|
|
182
182
|
ae.value && (ce.value && ae.value.unobserve(ce.value), ae.value.disconnect());
|
|
183
183
|
});
|
|
184
184
|
const { isPrinting: pt, isImaging: ft, generatePdf: gt, generateImage: mt } = Nl({
|
|
185
|
-
elementId: `vue-ui-scatter_${
|
|
185
|
+
elementId: `vue-ui-scatter_${N.value}`,
|
|
186
186
|
fileName: e.value.style.title.text || "vue-ui-scatter",
|
|
187
187
|
options: e.value.userOptions.print
|
|
188
|
-
}), Qt = T(() => e.value.userOptions.show && !e.value.style.title.text), xt = T(() =>
|
|
188
|
+
}), Qt = T(() => e.value.userOptions.show && !e.value.style.title.text), xt = T(() => _l(e.value.customPalette)), H = M({
|
|
189
189
|
showTable: e.value.table.show,
|
|
190
190
|
showTooltip: e.value.style.tooltip.show
|
|
191
191
|
});
|
|
@@ -234,13 +234,13 @@ const ql = ["id"], Hl = ["id"], Zl = ["xmlns", "viewBox"], Ql = ["width", "heigh
|
|
|
234
234
|
});
|
|
235
235
|
});
|
|
236
236
|
});
|
|
237
|
-
const l = Math.min(...oe.value.filter((a) => !
|
|
237
|
+
const l = Math.min(...oe.value.filter((a) => !I.value.includes(a.id)).flatMap((a) => a.values.map((u) => u.x))), s = Math.max(...oe.value.filter((a) => !I.value.includes(a.id)).flatMap((a) => a.values.map((u) => u.x))), t = Math.min(...oe.value.filter((a) => !I.value.includes(a.id)).flatMap((a) => a.values.map((u) => u.y))), o = Math.max(...oe.value.filter((a) => !I.value.includes(a.id)).flatMap((a) => a.values.map((u) => u.y)));
|
|
238
238
|
return { xMin: l >= 0 ? 0 : l, xMax: s, yMin: t >= 0 ? 0 : t, yMax: o };
|
|
239
239
|
}), O = T(() => ({
|
|
240
240
|
x: n.value.left + Math.abs(P.value.xMin) / (P.value.xMax + Math.abs(P.value.xMin)) * n.value.width,
|
|
241
241
|
y: n.value.bottom - Math.abs(P.value.yMin) / (P.value.yMax + Math.abs(P.value.yMin)) * n.value.height
|
|
242
242
|
})), oe = T(() => Ne.value.map((l, s) => {
|
|
243
|
-
const t = `cluster_${
|
|
243
|
+
const t = `cluster_${N.value}_${s}`;
|
|
244
244
|
return {
|
|
245
245
|
...l,
|
|
246
246
|
values: Ml({
|
|
@@ -249,10 +249,10 @@ const ql = ["id"], Hl = ["id"], Zl = ["xmlns", "viewBox"], Ql = ["width", "heigh
|
|
|
249
249
|
}),
|
|
250
250
|
id: t,
|
|
251
251
|
color: l.color ? l.color : xt.value[s] || ye[s] || ye[s % ye.length],
|
|
252
|
-
opacity:
|
|
252
|
+
opacity: I.value.includes(t) ? 0.5 : 1,
|
|
253
253
|
shape: l.shape ?? "circle",
|
|
254
254
|
segregate: () => wt(t),
|
|
255
|
-
isSegregated:
|
|
255
|
+
isSegregated: I.value.includes(t)
|
|
256
256
|
};
|
|
257
257
|
})), Jt = T(() => ({
|
|
258
258
|
cy: "scatter-div-legend",
|
|
@@ -261,7 +261,7 @@ const ql = ["id"], Hl = ["id"], Zl = ["xmlns", "viewBox"], Ql = ["width", "heigh
|
|
|
261
261
|
fontSize: e.value.style.legend.fontSize,
|
|
262
262
|
paddingBottom: 12,
|
|
263
263
|
fontWeight: e.value.style.legend.bold ? "bold" : ""
|
|
264
|
-
})),
|
|
264
|
+
})), Se = T(() => oe.value.map((l, s) => ({
|
|
265
265
|
...l,
|
|
266
266
|
plots: l.values.map((t) => ({
|
|
267
267
|
x: n.value.left + (t.x + Math.abs(P.value.xMin)) / (P.value.xMax + Math.abs(P.value.xMin)) * n.value.width,
|
|
@@ -272,54 +272,54 @@ const ql = ["id"], Hl = ["id"], Zl = ["xmlns", "viewBox"], Ql = ["width", "heigh
|
|
|
272
272
|
},
|
|
273
273
|
clusterName: l.name,
|
|
274
274
|
color: l.color ? l.color : xt.value[s] || ye[s] || ye[s % ye.length],
|
|
275
|
-
id: `plot_${
|
|
275
|
+
id: `plot_${N.value}_${Math.random()}`,
|
|
276
276
|
weight: t.weight ?? e.value.style.layout.plots.radius
|
|
277
277
|
}))
|
|
278
|
-
})).filter((l) => !
|
|
278
|
+
})).filter((l) => !I.value.includes(l.id))), U = T(() => {
|
|
279
279
|
const s = ({ m: t, b: o, rect: a, verticalX: u = null }) => {
|
|
280
|
-
const { left: i, right: p, top: v, bottom: g } = a, L = [], d = (
|
|
281
|
-
Number.isFinite(
|
|
282
|
-
},
|
|
280
|
+
const { left: i, right: p, top: v, bottom: g } = a, L = [], d = ($, h) => {
|
|
281
|
+
Number.isFinite($) && Number.isFinite(h) && L.push({ x: $, y: h });
|
|
282
|
+
}, _ = ({ x: $, y: h }) => $ >= i - 1e-9 && $ <= p + 1e-9 && h >= v - 1e-9 && h <= g + 1e-9;
|
|
283
283
|
u !== null ? u >= i - 1e-9 && u <= p + 1e-9 && (d(u, v), d(u, g)) : Number.isFinite(t) && (d(i, t * i + o), d(p, t * p + 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(p, o)));
|
|
284
|
-
const D = L.filter(
|
|
285
|
-
for (const
|
|
286
|
-
C.some((h) => Math.abs(h.x -
|
|
284
|
+
const D = L.filter(_), C = [];
|
|
285
|
+
for (const $ of D)
|
|
286
|
+
C.some((h) => Math.abs(h.x - $.x) < 1e-6 && Math.abs(h.y - $.y) < 1e-6) || C.push($);
|
|
287
287
|
if (C.length < 2) return null;
|
|
288
|
-
let z = C[0],
|
|
289
|
-
for (let
|
|
290
|
-
for (let h =
|
|
291
|
-
const
|
|
292
|
-
Q > B && (B = Q, z = C[
|
|
288
|
+
let z = C[0], X = C[1], B = 0;
|
|
289
|
+
for (let $ = 0; $ < C.length; $ += 1)
|
|
290
|
+
for (let h = $ + 1; h < C.length; h += 1) {
|
|
291
|
+
const A = C[$].x - C[h].x, V = C[$].y - C[h].y, Q = A * A + V * V;
|
|
292
|
+
Q > B && (B = Q, z = C[$], X = C[h]);
|
|
293
293
|
}
|
|
294
|
-
return { x1: z.x, y1: z.y, x2:
|
|
294
|
+
return { x1: z.x, y1: z.y, x2: X.x, y2: X.y };
|
|
295
295
|
};
|
|
296
|
-
return
|
|
297
|
-
const o = t.plots.length, a = t.plots.reduce((h,
|
|
296
|
+
return Se.value.map((t) => {
|
|
297
|
+
const o = t.plots.length, a = t.plots.reduce((h, A) => h + A.x, 0) / o, u = t.plots.reduce((h, A) => h + A.y, 0) / o;
|
|
298
298
|
let i = 0, p = 0;
|
|
299
299
|
for (const h of t.plots) {
|
|
300
|
-
const
|
|
301
|
-
i +=
|
|
300
|
+
const A = h.x - a, V = h.y - u;
|
|
301
|
+
i += A * V, p += A * A;
|
|
302
302
|
}
|
|
303
303
|
let v, g, L = null;
|
|
304
304
|
p < 1e-9 ? (L = a, v = 1 / 0, g = null) : (v = i / p, g = u - v * a);
|
|
305
|
-
let d,
|
|
306
|
-
L !== null ? (d = 1 / 0,
|
|
305
|
+
let d, _;
|
|
306
|
+
L !== null ? (d = 1 / 0, _ = null) : (d = v, _ = g);
|
|
307
307
|
const D = t.plots.every((h) => h.v && typeof h.v.x == "number" && typeof h.v.y == "number");
|
|
308
308
|
let C = NaN;
|
|
309
309
|
if (o >= 2) {
|
|
310
|
-
let h = 0,
|
|
311
|
-
D ? (h = t.plots.reduce((
|
|
310
|
+
let h = 0, A = 0;
|
|
311
|
+
D ? (h = t.plots.reduce((j, ve) => j + ve.v.x, 0) / o, A = t.plots.reduce((j, ve) => j + ve.v.y, 0) / o) : (h = a, A = -u);
|
|
312
312
|
let V = 0, Q = 0, se = 0;
|
|
313
|
-
for (const
|
|
314
|
-
const ve = D ?
|
|
313
|
+
for (const j of t.plots) {
|
|
314
|
+
const ve = D ? j.v.x : j.x, He = D ? j.v.y : -j.y, ke = ve - h, de = He - A;
|
|
315
315
|
V += ke * de, Q += ke * ke, se += de * de;
|
|
316
316
|
}
|
|
317
317
|
if (Q >= 1e-9 && se >= 1e-9) {
|
|
318
|
-
const
|
|
319
|
-
C = Math.max(-1, Math.min(1,
|
|
318
|
+
const j = V / Math.sqrt(Q * se);
|
|
319
|
+
C = Math.max(-1, Math.min(1, j));
|
|
320
320
|
}
|
|
321
321
|
}
|
|
322
|
-
const z = s({ m: d, b:
|
|
322
|
+
const z = s({ m: d, b: _, rect: n.value, verticalX: L });
|
|
323
323
|
if (!z)
|
|
324
324
|
return {
|
|
325
325
|
...t,
|
|
@@ -332,7 +332,7 @@ const ql = ["id"], Hl = ["id"], Zl = ["xmlns", "viewBox"], Ql = ["width", "heigh
|
|
|
332
332
|
color: Je(t.color)
|
|
333
333
|
}))
|
|
334
334
|
};
|
|
335
|
-
const
|
|
335
|
+
const X = (z.x1 + z.x2) / 2, B = (z.y1 + z.y2) / 2, $ = { x: X, y: B };
|
|
336
336
|
return {
|
|
337
337
|
...t,
|
|
338
338
|
color: Je(t.color),
|
|
@@ -340,14 +340,14 @@ const ql = ["id"], Hl = ["id"], Zl = ["xmlns", "viewBox"], Ql = ["width", "heigh
|
|
|
340
340
|
...z,
|
|
341
341
|
coefficient: C
|
|
342
342
|
},
|
|
343
|
-
label:
|
|
343
|
+
label: $,
|
|
344
344
|
plots: t.plots.map((h) => {
|
|
345
|
-
let
|
|
346
|
-
L !== null ? (
|
|
347
|
-
const Q = h.x -
|
|
345
|
+
let A, V;
|
|
346
|
+
L !== null ? (A = L, V = h.y) : Math.abs(d) < 1e-9 ? (A = h.x, V = _) : (A = (h.x + d * h.y - d * _) / (1 + d * d), V = (d * h.x + d * d * h.y + _) / (1 + d * d));
|
|
347
|
+
const Q = h.x - A, se = h.y - V, j = Math.sqrt(Q * Q + se * se);
|
|
348
348
|
return {
|
|
349
349
|
...h,
|
|
350
|
-
deviation:
|
|
350
|
+
deviation: j,
|
|
351
351
|
shape: t.shape,
|
|
352
352
|
color: Je(t.color)
|
|
353
353
|
};
|
|
@@ -359,35 +359,35 @@ const ql = ["id"], Hl = ["id"], Zl = ["xmlns", "viewBox"], Ql = ["width", "heigh
|
|
|
359
359
|
return U.value;
|
|
360
360
|
}
|
|
361
361
|
function kt(l, s) {
|
|
362
|
-
const t = Array.isArray(l) ? l.flatMap((B) => B.plots.map((
|
|
363
|
-
x:
|
|
364
|
-
y:
|
|
362
|
+
const t = Array.isArray(l) ? l.flatMap((B) => B.plots.map(($) => ({
|
|
363
|
+
x: $.x,
|
|
364
|
+
y: $.y
|
|
365
365
|
}))) : l.plots.map((B) => ({
|
|
366
366
|
x: B.x,
|
|
367
367
|
y: B.y
|
|
368
368
|
}));
|
|
369
369
|
let o = 1 / 0, a = -1 / 0, u = 1 / 0, i = -1 / 0;
|
|
370
|
-
t.forEach(({ x: B, y:
|
|
371
|
-
o = Math.min(o, B), a = Math.max(a, B), u = Math.min(u,
|
|
370
|
+
t.forEach(({ x: B, y: $ }) => {
|
|
371
|
+
o = Math.min(o, B), a = Math.max(a, B), u = Math.min(u, $), i = Math.max(i, $);
|
|
372
372
|
});
|
|
373
|
-
const p = a - o, v = i - u, g = p / s, L = v / s, d = Array(s).fill(0),
|
|
374
|
-
t.forEach(({ x: B, y:
|
|
375
|
-
const h = Math.floor((B - o) / g),
|
|
376
|
-
d[h] || (d[h] = 0),
|
|
373
|
+
const p = a - o, v = i - u, g = p / s, L = v / s, d = Array(s).fill(0), _ = Array(s).fill(0);
|
|
374
|
+
t.forEach(({ x: B, y: $ }) => {
|
|
375
|
+
const h = Math.floor((B - o) / g), A = Math.floor(($ - u) / L);
|
|
376
|
+
d[h] || (d[h] = 0), _[A] || (_[A] = 0), d[h] += 1, _[A] += 1;
|
|
377
377
|
});
|
|
378
378
|
const D = [], C = [];
|
|
379
379
|
for (let B = 0; B < s; B += 1)
|
|
380
380
|
D.push(o + (B + 0.5) * g), C.push(u + (B + 0.5) * L);
|
|
381
|
-
const z = Math.max(...d),
|
|
382
|
-
return { x: d, y:
|
|
381
|
+
const z = Math.max(...d), X = Math.max(..._);
|
|
382
|
+
return { x: d, y: _, avgX: D, avgY: C, maxX: z, maxY: X };
|
|
383
383
|
}
|
|
384
|
-
const b = T(() => e.value.style.layout.marginalBars.tranches),
|
|
384
|
+
const b = T(() => e.value.style.layout.marginalBars.tranches), S = T(() => kt(Se.value, b.value)), el = T(() => {
|
|
385
385
|
const l = n.value.top - e.value.style.layout.marginalBars.offset, s = n.value.right + e.value.style.layout.marginalBars.offset;
|
|
386
|
-
return
|
|
386
|
+
return Se.value.map((t) => {
|
|
387
387
|
const o = kt(t, b.value);
|
|
388
388
|
return {
|
|
389
389
|
coords: o,
|
|
390
|
-
dX:
|
|
390
|
+
dX: Sl(o.avgX.map((a, u) => ({
|
|
391
391
|
x: a,
|
|
392
392
|
y: l - o.x[u] / o.maxX * e.value.style.layout.marginalBars.size
|
|
393
393
|
}))),
|
|
@@ -445,14 +445,14 @@ const ql = ["id"], Hl = ["id"], Zl = ["xmlns", "viewBox"], Ql = ["width", "heigh
|
|
|
445
445
|
r: e.value.style.layout.plots.deviation.roundingValue
|
|
446
446
|
})}</b>`, t += "</div>", De.value = `<div>${t}</div>`), Oe.value = !0;
|
|
447
447
|
}
|
|
448
|
-
function
|
|
448
|
+
function Ae(l, s) {
|
|
449
449
|
e.value.events.datapointLeave && e.value.events.datapointLeave({ datapoint: l, seriesIndex: s }), Oe.value = !1, Y.value = void 0, f.value = null;
|
|
450
450
|
}
|
|
451
451
|
function Ue(l, s) {
|
|
452
452
|
e.value.events.datapointClick && e.value.events.datapointClick({ datapoint: l, seriesIndex: s });
|
|
453
453
|
}
|
|
454
454
|
function wt(l) {
|
|
455
|
-
|
|
455
|
+
I.value.includes(l) ? I.value = I.value.filter((s) => s !== l) : I.value.length < Ne.value.length - 1 && I.value.push(l);
|
|
456
456
|
}
|
|
457
457
|
function Ve(l = null) {
|
|
458
458
|
bl(() => {
|
|
@@ -498,10 +498,10 @@ const ql = ["id"], Hl = ["id"], Zl = ["xmlns", "viewBox"], Ql = ["width", "heigh
|
|
|
498
498
|
};
|
|
499
499
|
return { head: l, body: s, config: t, colNames: l };
|
|
500
500
|
}), re = M(!1);
|
|
501
|
-
function
|
|
501
|
+
function $t(l) {
|
|
502
502
|
re.value = l, tt.value += 1;
|
|
503
503
|
}
|
|
504
|
-
function
|
|
504
|
+
function _t() {
|
|
505
505
|
H.value.showTable = !H.value.showTable;
|
|
506
506
|
}
|
|
507
507
|
function Mt() {
|
|
@@ -524,7 +524,7 @@ const ql = ["id"], Hl = ["id"], Zl = ["xmlns", "viewBox"], Ql = ["width", "heigh
|
|
|
524
524
|
};
|
|
525
525
|
}
|
|
526
526
|
function ll(l) {
|
|
527
|
-
ge.value = l, e.value.style.layout.marginalBars.highlighter.highlightBothAxes && (me.value =
|
|
527
|
+
ge.value = l, e.value.style.layout.marginalBars.highlighter.highlightBothAxes && (me.value = S.value.y.length - 2 - l);
|
|
528
528
|
}
|
|
529
529
|
function al(l) {
|
|
530
530
|
me.value = l, e.value.style.layout.marginalBars.highlighter.highlightBothAxes && (ge.value = l);
|
|
@@ -602,23 +602,23 @@ const ql = ["id"], Hl = ["id"], Zl = ["xmlns", "viewBox"], Ql = ["width", "heigh
|
|
|
602
602
|
if (!e.value.usePerformanceMode) return [""];
|
|
603
603
|
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, p = 1e3, v = e.value.style.layout.plots.stroke, g = e.value.style.layout.plots.strokeWidth, L = e.value.style.layout.plots.opacity;
|
|
604
604
|
return U.value.map((d) => {
|
|
605
|
-
const
|
|
605
|
+
const _ = [];
|
|
606
606
|
for (const C of d.plots) {
|
|
607
|
-
const z = C.x,
|
|
608
|
-
if (z < l || z > s ||
|
|
607
|
+
const z = C.x, X = C.y;
|
|
608
|
+
if (z < l || z > s || X < t || X > o) continue;
|
|
609
609
|
const B = Math.max(e.value.style.layout.plots.radius, C.weight);
|
|
610
|
-
|
|
610
|
+
_.push(ol({
|
|
611
611
|
shape: d.shape || "circle",
|
|
612
612
|
cx: z,
|
|
613
|
-
cy:
|
|
613
|
+
cy: X,
|
|
614
614
|
r: B
|
|
615
615
|
}));
|
|
616
616
|
}
|
|
617
|
-
if (
|
|
617
|
+
if (!_.length) return null;
|
|
618
618
|
const D = u(d.plots.length) > i || d.plots.length > p;
|
|
619
619
|
return {
|
|
620
620
|
id: d.id,
|
|
621
|
-
d:
|
|
621
|
+
d: _.join(""),
|
|
622
622
|
fill: Pe(d.color, L * 100),
|
|
623
623
|
stroke: D ? "none" : v,
|
|
624
624
|
strokeWidth: D ? 0 : g,
|
|
@@ -636,24 +636,24 @@ const ql = ["id"], Hl = ["id"], Zl = ["xmlns", "viewBox"], Ql = ["width", "heigh
|
|
|
636
636
|
if (!o) return;
|
|
637
637
|
const a = o.inverse(), u = t.matrixTransform(a), i = 8, p = i * i;
|
|
638
638
|
let v = null, g = 1 / 0, L = -1;
|
|
639
|
-
if (U.value.forEach((d,
|
|
639
|
+
if (U.value.forEach((d, _) => {
|
|
640
640
|
d.plots.forEach((D) => {
|
|
641
|
-
const C = D.x - u.x, z = D.y - u.y,
|
|
642
|
-
|
|
641
|
+
const C = D.x - u.x, z = D.y - u.y, X = C * C + z * z;
|
|
642
|
+
X <= p && X < g && (g = X, v = D, L = _);
|
|
643
643
|
});
|
|
644
644
|
}), v)
|
|
645
645
|
Y.value !== v.id && (Y.value = v.id, je(v, L));
|
|
646
646
|
else if (Y.value) {
|
|
647
647
|
const d = f.value;
|
|
648
|
-
Y.value = void 0,
|
|
648
|
+
Y.value = void 0, Ae(d, L);
|
|
649
649
|
}
|
|
650
650
|
} : () => null;
|
|
651
651
|
}
|
|
652
|
-
const
|
|
652
|
+
const St = nl();
|
|
653
653
|
function ul() {
|
|
654
654
|
if (Y.value) {
|
|
655
655
|
const l = f.value;
|
|
656
|
-
Y.value = void 0,
|
|
656
|
+
Y.value = void 0, Ae(l, null);
|
|
657
657
|
}
|
|
658
658
|
}
|
|
659
659
|
function il(l) {
|
|
@@ -696,7 +696,7 @@ const ql = ["id"], Hl = ["id"], Zl = ["xmlns", "viewBox"], Ql = ["width", "heigh
|
|
|
696
696
|
ze(() => H.value.showTable, (l) => {
|
|
697
697
|
e.value.table.show || (l && e.value.table.useDialog && xe.value ? xe.value.open() : "close" in xe.value && xe.value.close());
|
|
698
698
|
});
|
|
699
|
-
function
|
|
699
|
+
function At() {
|
|
700
700
|
H.value.showTable = !1, Ee.value && Ee.value.setTableIconState(!1);
|
|
701
701
|
}
|
|
702
702
|
const rl = T(() => e.value.style.backgroundColor), vl = T(() => e.value.style.legend), yl = T(() => e.value.style.title), { exportSvg: cl, getSvg: dl } = Il({
|
|
@@ -720,15 +720,15 @@ const ql = ["id"], Hl = ["id"], Zl = ["xmlns", "viewBox"], Ql = ["width", "heigh
|
|
|
720
720
|
generateCsv: Ve,
|
|
721
721
|
generateImage: mt,
|
|
722
722
|
generateSvg: Lt,
|
|
723
|
-
toggleTable:
|
|
723
|
+
toggleTable: _t,
|
|
724
724
|
toggleTooltip: Mt,
|
|
725
725
|
toggleAnnotator: Ge,
|
|
726
|
-
toggleFullscreen:
|
|
726
|
+
toggleFullscreen: $t
|
|
727
727
|
}), (l, s) => (r(), y("div", {
|
|
728
728
|
class: Tt(`vue-data-ui-component vue-ui-scatter ${re.value ? "vue-data-ui-wrapper-fullscreen" : ""} ${e.value.useCssAnimation ? "" : "vue-ui-dna"}`),
|
|
729
729
|
ref_key: "scatterChart",
|
|
730
730
|
ref: te,
|
|
731
|
-
id: `vue-ui-scatter_${
|
|
731
|
+
id: `vue-ui-scatter_${N.value}`,
|
|
732
732
|
style: ue(`font-family:${e.value.style.fontFamily};width:100%; text-align:center;background:${e.value.style.backgroundColor};${e.value.responsive ? "height: 100%" : ""}`),
|
|
733
733
|
onMouseenter: s[5] || (s[5] = () => c(yt)(!0)),
|
|
734
734
|
onMouseleave: s[6] || (s[6] = () => c(yt)(!1))
|
|
@@ -769,7 +769,7 @@ const ql = ["id"], Hl = ["id"], Zl = ["xmlns", "viewBox"], Ql = ["width", "heigh
|
|
|
769
769
|
}, null, 8, ["config"]))
|
|
770
770
|
], 512)) : x("", !0),
|
|
771
771
|
w("div", {
|
|
772
|
-
id: `legend-top-${
|
|
772
|
+
id: `legend-top-${N.value}`
|
|
773
773
|
}, null, 8, Hl),
|
|
774
774
|
e.value.userOptions.show && et.value && (c(ct) || c(Xe)) ? (r(), le(c(jt), {
|
|
775
775
|
ref_key: "userOptionsRef",
|
|
@@ -779,7 +779,7 @@ const ql = ["id"], Hl = ["id"], Zl = ["xmlns", "viewBox"], Ql = ["width", "heigh
|
|
|
779
779
|
color: e.value.style.color,
|
|
780
780
|
isImaging: c(ft),
|
|
781
781
|
isPrinting: c(pt),
|
|
782
|
-
uid:
|
|
782
|
+
uid: N.value,
|
|
783
783
|
hasTooltip: e.value.userOptions.buttons.tooltip && e.value.style.tooltip.show,
|
|
784
784
|
hasPdf: e.value.userOptions.buttons.pdf,
|
|
785
785
|
hasImg: e.value.userOptions.buttons.img,
|
|
@@ -797,12 +797,12 @@ const ql = ["id"], Hl = ["id"], Zl = ["xmlns", "viewBox"], Ql = ["width", "heigh
|
|
|
797
797
|
callbacks: e.value.userOptions.callbacks,
|
|
798
798
|
printScale: e.value.userOptions.print.scale,
|
|
799
799
|
tableDialog: e.value.table.useDialog,
|
|
800
|
-
onToggleFullscreen:
|
|
800
|
+
onToggleFullscreen: $t,
|
|
801
801
|
onGeneratePdf: c(gt),
|
|
802
802
|
onGenerateCsv: Ve,
|
|
803
803
|
onGenerateImage: c(mt),
|
|
804
804
|
onGenerateSvg: Lt,
|
|
805
|
-
onToggleTable:
|
|
805
|
+
onToggleTable: _t,
|
|
806
806
|
onToggleTooltip: Mt,
|
|
807
807
|
onToggleAnnotator: Ge,
|
|
808
808
|
style: ue({
|
|
@@ -811,71 +811,78 @@ const ql = ["id"], Hl = ["id"], Zl = ["xmlns", "viewBox"], Ql = ["width", "heigh
|
|
|
811
811
|
}, zt({ _: 2 }, [
|
|
812
812
|
l.$slots.menuIcon ? {
|
|
813
813
|
name: "menuIcon",
|
|
814
|
-
fn:
|
|
815
|
-
|
|
814
|
+
fn: W(({ isOpen: t, color: o }) => [
|
|
815
|
+
R(l.$slots, "menuIcon", pe(fe({ isOpen: t, color: o })), void 0, !0)
|
|
816
816
|
]),
|
|
817
817
|
key: "0"
|
|
818
818
|
} : void 0,
|
|
819
819
|
l.$slots.optionTooltip ? {
|
|
820
820
|
name: "optionTooltip",
|
|
821
|
-
fn:
|
|
822
|
-
|
|
821
|
+
fn: W(() => [
|
|
822
|
+
R(l.$slots, "optionTooltip", {}, void 0, !0)
|
|
823
823
|
]),
|
|
824
824
|
key: "1"
|
|
825
825
|
} : void 0,
|
|
826
826
|
l.$slots.optionPdf ? {
|
|
827
827
|
name: "optionPdf",
|
|
828
|
-
fn:
|
|
829
|
-
|
|
828
|
+
fn: W(() => [
|
|
829
|
+
R(l.$slots, "optionPdf", {}, void 0, !0)
|
|
830
830
|
]),
|
|
831
831
|
key: "2"
|
|
832
832
|
} : void 0,
|
|
833
833
|
l.$slots.optionCsv ? {
|
|
834
834
|
name: "optionCsv",
|
|
835
|
-
fn:
|
|
836
|
-
|
|
835
|
+
fn: W(() => [
|
|
836
|
+
R(l.$slots, "optionCsv", {}, void 0, !0)
|
|
837
837
|
]),
|
|
838
838
|
key: "3"
|
|
839
839
|
} : void 0,
|
|
840
840
|
l.$slots.optionImg ? {
|
|
841
841
|
name: "optionImg",
|
|
842
|
-
fn:
|
|
843
|
-
|
|
842
|
+
fn: W(() => [
|
|
843
|
+
R(l.$slots, "optionImg", {}, void 0, !0)
|
|
844
844
|
]),
|
|
845
845
|
key: "4"
|
|
846
846
|
} : void 0,
|
|
847
|
+
l.$slots.optionSvg ? {
|
|
848
|
+
name: "optionSvg",
|
|
849
|
+
fn: W(() => [
|
|
850
|
+
R(l.$slots, "optionSvg", {}, void 0, !0)
|
|
851
|
+
]),
|
|
852
|
+
key: "5"
|
|
853
|
+
} : void 0,
|
|
847
854
|
l.$slots.optionTable ? {
|
|
848
855
|
name: "optionTable",
|
|
849
|
-
fn:
|
|
850
|
-
|
|
856
|
+
fn: W(() => [
|
|
857
|
+
R(l.$slots, "optionTable", {}, void 0, !0)
|
|
851
858
|
]),
|
|
852
|
-
key: "
|
|
859
|
+
key: "6"
|
|
853
860
|
} : void 0,
|
|
854
861
|
l.$slots.optionFullscreen ? {
|
|
855
862
|
name: "optionFullscreen",
|
|
856
|
-
fn:
|
|
857
|
-
|
|
863
|
+
fn: W(({ toggleFullscreen: t, isFullscreen: o }) => [
|
|
864
|
+
R(l.$slots, "optionFullscreen", pe(fe({ toggleFullscreen: t, isFullscreen: o })), void 0, !0)
|
|
858
865
|
]),
|
|
859
|
-
key: "
|
|
866
|
+
key: "7"
|
|
860
867
|
} : void 0,
|
|
861
868
|
l.$slots.optionAnnotator ? {
|
|
862
869
|
name: "optionAnnotator",
|
|
863
|
-
fn:
|
|
864
|
-
|
|
870
|
+
fn: W(({ toggleAnnotator: t, isAnnotator: o }) => [
|
|
871
|
+
R(l.$slots, "optionAnnotator", pe(fe({ toggleAnnotator: t, isAnnotator: o })), void 0, !0)
|
|
865
872
|
]),
|
|
866
|
-
key: "
|
|
873
|
+
key: "8"
|
|
867
874
|
} : void 0
|
|
868
875
|
]), 1032, ["backgroundColor", "color", "isImaging", "isPrinting", "uid", "hasTooltip", "hasPdf", "hasImg", "hasSvg", "hasXls", "hasTable", "hasFullscreen", "isTooltip", "isFullscreen", "titles", "chartElement", "position", "hasAnnotator", "isAnnotation", "callbacks", "printScale", "tableDialog", "onGeneratePdf", "onGenerateImage", "style"])) : x("", !0),
|
|
869
876
|
(r(), y("svg", {
|
|
870
877
|
ref_key: "svgRef",
|
|
871
878
|
ref: Me,
|
|
872
|
-
xmlns: c(
|
|
879
|
+
xmlns: c(Al),
|
|
873
880
|
class: Tt({ "vue-data-ui-fullscreen--on": re.value, "vue-data-ui-fulscreen--off": !re.value, animated: e.value.useCssAnimation }),
|
|
874
881
|
viewBox: `0 0 ${F.value.width <= 0 ? 10 : F.value.width} ${F.value.height <= 0 ? 10 : F.value.height}`,
|
|
875
882
|
style: ue(`max-width:100%;overflow:visible;background:transparent;color:${e.value.style.color}`),
|
|
876
883
|
onMouseleave: qe
|
|
877
884
|
}, [
|
|
878
|
-
|
|
885
|
+
_e(c(Ut)),
|
|
879
886
|
l.$slots["chart-background"] ? (r(), y("foreignObject", {
|
|
880
887
|
key: 0,
|
|
881
888
|
x: 0,
|
|
@@ -886,7 +893,7 @@ const ql = ["id"], Hl = ["id"], Zl = ["xmlns", "viewBox"], Ql = ["width", "heigh
|
|
|
886
893
|
pointerEvents: "none"
|
|
887
894
|
}
|
|
888
895
|
}, [
|
|
889
|
-
|
|
896
|
+
R(l.$slots, "chart-background", {}, void 0, !0)
|
|
890
897
|
], 8, Ql)) : x("", !0),
|
|
891
898
|
e.value.style.layout.axis.show ? (r(), y("g", Jl, [
|
|
892
899
|
w("line", {
|
|
@@ -911,7 +918,7 @@ const ql = ["id"], Hl = ["id"], Zl = ["xmlns", "viewBox"], Ql = ["width", "heigh
|
|
|
911
918
|
e.value.style.layout.marginalBars.show ? (r(), y("g", ta, [
|
|
912
919
|
w("defs", null, [
|
|
913
920
|
w("linearGradient", {
|
|
914
|
-
id: `marginal_x_${
|
|
921
|
+
id: `marginal_x_${N.value}`,
|
|
915
922
|
x1: "0%",
|
|
916
923
|
y1: "0%",
|
|
917
924
|
x2: "0%",
|
|
@@ -927,7 +934,7 @@ const ql = ["id"], Hl = ["id"], Zl = ["xmlns", "viewBox"], Ql = ["width", "heigh
|
|
|
927
934
|
}, null, 8, oa)
|
|
928
935
|
], 8, la),
|
|
929
936
|
w("linearGradient", {
|
|
930
|
-
id: `marginal_y_${
|
|
937
|
+
id: `marginal_y_${N.value}`,
|
|
931
938
|
x1: "0%",
|
|
932
939
|
x2: "100%",
|
|
933
940
|
y1: "0%",
|
|
@@ -943,22 +950,22 @@ const ql = ["id"], Hl = ["id"], Zl = ["xmlns", "viewBox"], Ql = ["width", "heigh
|
|
|
943
950
|
}, null, 8, ua)
|
|
944
951
|
], 8, sa)
|
|
945
952
|
]),
|
|
946
|
-
(r(!0), y(Z, null, J(
|
|
947
|
-
t &&
|
|
953
|
+
(r(!0), y(Z, null, J(S.value.x, (t, o) => (r(), y("g", null, [
|
|
954
|
+
t && S.value.avgX[o] ? (r(), y("rect", {
|
|
948
955
|
key: 0,
|
|
949
|
-
x:
|
|
950
|
-
y: n.value.top - e.value.style.layout.marginalBars.offset - t /
|
|
956
|
+
x: S.value.avgX[o] - n.value.width / b.value / 2,
|
|
957
|
+
y: n.value.top - e.value.style.layout.marginalBars.offset - t / S.value.maxX * e.value.style.layout.marginalBars.size,
|
|
951
958
|
width: n.value.width / b.value <= 0 ? 1e-4 : n.value.width / b.value,
|
|
952
|
-
height: t /
|
|
953
|
-
fill: e.value.style.layout.marginalBars.useGradient ? `url(#marginal_x_${
|
|
959
|
+
height: t / S.value.maxX * e.value.style.layout.marginalBars.size <= 0 ? 1e-4 : t / S.value.maxX * e.value.style.layout.marginalBars.size,
|
|
960
|
+
fill: e.value.style.layout.marginalBars.useGradient ? `url(#marginal_x_${N.value})` : e.value.style.layout.marginalBars.fill,
|
|
954
961
|
style: ue([`opacity:${e.value.style.layout.marginalBars.opacity}`, { "pointer-events": "none" }]),
|
|
955
962
|
stroke: e.value.style.backgroundColor,
|
|
956
963
|
"stroke-width": e.value.style.layout.marginalBars.strokeWidth,
|
|
957
964
|
rx: e.value.style.layout.marginalBars.borderRadius
|
|
958
965
|
}, null, 12, ia)) : x("", !0),
|
|
959
|
-
|
|
966
|
+
S.value.avgX[o] ? (r(), y("rect", {
|
|
960
967
|
key: 1,
|
|
961
|
-
x:
|
|
968
|
+
x: S.value.avgX[o] - n.value.width / b.value / 2,
|
|
962
969
|
y: n.value.top - e.value.style.layout.marginalBars.offset - e.value.style.layout.marginalBars.size,
|
|
963
970
|
width: n.value.width / b.value <= 0 ? 1e-4 : n.value.width / b.value,
|
|
964
971
|
height: Math.max(0.1, e.value.style.layout.marginalBars.size),
|
|
@@ -966,9 +973,9 @@ const ql = ["id"], Hl = ["id"], Zl = ["xmlns", "viewBox"], Ql = ["width", "heigh
|
|
|
966
973
|
onMouseenter: (a) => ll(o),
|
|
967
974
|
onMouseleave: s[0] || (s[0] = (a) => qe())
|
|
968
975
|
}, null, 40, ra)) : x("", !0),
|
|
969
|
-
|
|
976
|
+
S.value.avgX[o] && ge.value != null && ge.value === o ? (r(), y("g", va, [
|
|
970
977
|
w("rect", {
|
|
971
|
-
x:
|
|
978
|
+
x: S.value.avgX[o] - n.value.width / b.value / 2,
|
|
972
979
|
y: n.value.top,
|
|
973
980
|
width: n.value.width / b.value <= 0 ? 1e-4 : n.value.width / b.value,
|
|
974
981
|
height: n.value.height,
|
|
@@ -976,8 +983,8 @@ const ql = ["id"], Hl = ["id"], Zl = ["xmlns", "viewBox"], Ql = ["width", "heigh
|
|
|
976
983
|
"fill-opacity": e.value.style.layout.marginalBars.highlighter.opacity
|
|
977
984
|
}, null, 8, ya),
|
|
978
985
|
w("line", {
|
|
979
|
-
x1:
|
|
980
|
-
x2:
|
|
986
|
+
x1: S.value.avgX[o] - n.value.width / b.value / 2,
|
|
987
|
+
x2: S.value.avgX[o] - n.value.width / b.value / 2,
|
|
981
988
|
y1: 0,
|
|
982
989
|
y2: n.value.top + n.value.height,
|
|
983
990
|
stroke: e.value.style.layout.marginalBars.highlighter.stroke,
|
|
@@ -986,8 +993,8 @@ const ql = ["id"], Hl = ["id"], Zl = ["xmlns", "viewBox"], Ql = ["width", "heigh
|
|
|
986
993
|
style: { transition: "none !important", animation: "none !important" }
|
|
987
994
|
}, null, 8, ca),
|
|
988
995
|
w("line", {
|
|
989
|
-
x1:
|
|
990
|
-
x2:
|
|
996
|
+
x1: S.value.avgX[o] - n.value.width / b.value / 2 + (n.value.width / b.value <= 0 ? 1e-4 : n.value.width / b.value),
|
|
997
|
+
x2: S.value.avgX[o] - n.value.width / b.value / 2 + (n.value.width / b.value <= 0 ? 1e-4 : n.value.width / b.value),
|
|
991
998
|
y1: 0,
|
|
992
999
|
y2: n.value.top + n.value.height,
|
|
993
1000
|
stroke: e.value.style.layout.marginalBars.highlighter.stroke,
|
|
@@ -997,33 +1004,33 @@ const ql = ["id"], Hl = ["id"], Zl = ["xmlns", "viewBox"], Ql = ["width", "heigh
|
|
|
997
1004
|
}, null, 8, da)
|
|
998
1005
|
])) : x("", !0)
|
|
999
1006
|
]))), 256)),
|
|
1000
|
-
(r(!0), y(Z, null, J(
|
|
1001
|
-
t &&
|
|
1007
|
+
(r(!0), y(Z, null, J(S.value.y, (t, o) => (r(), y("g", null, [
|
|
1008
|
+
t && S.value.avgY[o] ? (r(), y("rect", {
|
|
1002
1009
|
key: 0,
|
|
1003
1010
|
x: n.value.right + e.value.style.layout.marginalBars.offset,
|
|
1004
|
-
y:
|
|
1011
|
+
y: S.value.avgY[o] - n.value.height / b.value / 2,
|
|
1005
1012
|
height: n.value.height / b.value <= 0 ? 1e-4 : n.value.height / b.value,
|
|
1006
|
-
width: t /
|
|
1007
|
-
fill: e.value.style.layout.marginalBars.useGradient ? `url(#marginal_y_${
|
|
1013
|
+
width: t / S.value.maxY * e.value.style.layout.marginalBars.size <= 0 ? 1e-4 : t / S.value.maxY * e.value.style.layout.marginalBars.size,
|
|
1014
|
+
fill: e.value.style.layout.marginalBars.useGradient ? `url(#marginal_y_${N.value})` : e.value.style.layout.marginalBars.fill,
|
|
1008
1015
|
style: ue([`opacity:${e.value.style.layout.marginalBars.opacity}`, { "pointer-events": "none" }]),
|
|
1009
1016
|
stroke: e.value.style.backgroundColor,
|
|
1010
1017
|
"stroke-width": e.value.style.layout.marginalBars.strokeWidth,
|
|
1011
1018
|
rx: e.value.style.layout.marginalBars.borderRadius
|
|
1012
1019
|
}, null, 12, ha)) : x("", !0),
|
|
1013
|
-
|
|
1020
|
+
S.value.avgY[o] ? (r(), y("rect", {
|
|
1014
1021
|
key: 1,
|
|
1015
1022
|
x: n.value.right + e.value.style.layout.marginalBars.offset,
|
|
1016
|
-
y:
|
|
1023
|
+
y: S.value.avgY[o] - n.value.height / b.value / 2,
|
|
1017
1024
|
width: Math.max(0.1, e.value.style.layout.marginalBars.size),
|
|
1018
1025
|
height: n.value.height / b.value <= 0 ? 1e-4 : n.value.height / b.value,
|
|
1019
1026
|
fill: "transparent",
|
|
1020
1027
|
onMouseenter: (a) => al(o),
|
|
1021
1028
|
onMouseleave: s[1] || (s[1] = (a) => qe())
|
|
1022
1029
|
}, null, 40, pa)) : x("", !0),
|
|
1023
|
-
|
|
1030
|
+
S.value.avgY[o] && me.value != null && me.value === o ? (r(), y("g", fa, [
|
|
1024
1031
|
w("rect", {
|
|
1025
1032
|
x: n.value.left,
|
|
1026
|
-
y:
|
|
1033
|
+
y: S.value.avgY[o] - n.value.height / b.value / 2,
|
|
1027
1034
|
width: n.value.width,
|
|
1028
1035
|
height: n.value.height / b.value <= 0 ? 1e-4 : n.value.height / b.value,
|
|
1029
1036
|
fill: e.value.style.layout.marginalBars.highlighter.color,
|
|
@@ -1032,8 +1039,8 @@ const ql = ["id"], Hl = ["id"], Zl = ["xmlns", "viewBox"], Ql = ["width", "heigh
|
|
|
1032
1039
|
w("line", {
|
|
1033
1040
|
x1: n.value.left,
|
|
1034
1041
|
x2: F.value.width,
|
|
1035
|
-
y1:
|
|
1036
|
-
y2:
|
|
1042
|
+
y1: S.value.avgY[o] - n.value.height / b.value / 2,
|
|
1043
|
+
y2: S.value.avgY[o] - n.value.height / b.value / 2,
|
|
1037
1044
|
stroke: e.value.style.layout.marginalBars.highlighter.stroke,
|
|
1038
1045
|
"stroke-dasharray": e.value.style.layout.marginalBars.highlighter.strokeDasharray,
|
|
1039
1046
|
"stroke-width": e.value.style.layout.marginalBars.highlighter.strokeWidth,
|
|
@@ -1042,8 +1049,8 @@ const ql = ["id"], Hl = ["id"], Zl = ["xmlns", "viewBox"], Ql = ["width", "heigh
|
|
|
1042
1049
|
w("line", {
|
|
1043
1050
|
x1: n.value.left,
|
|
1044
1051
|
x2: F.value.width,
|
|
1045
|
-
y1:
|
|
1046
|
-
y2:
|
|
1052
|
+
y1: S.value.avgY[o] - n.value.height / b.value / 2 + (n.value.height / b.value <= 0 ? 1e-4 : n.value.height / b.value),
|
|
1053
|
+
y2: S.value.avgY[o] - n.value.height / b.value / 2 + (n.value.height / b.value <= 0 ? 1e-4 : n.value.height / b.value),
|
|
1047
1054
|
stroke: e.value.style.layout.marginalBars.highlighter.stroke,
|
|
1048
1055
|
"stroke-dasharray": e.value.style.layout.marginalBars.highlighter.strokeDasharray,
|
|
1049
1056
|
"stroke-width": e.value.style.layout.marginalBars.highlighter.strokeWidth,
|
|
@@ -1053,7 +1060,7 @@ const ql = ["id"], Hl = ["id"], Zl = ["xmlns", "viewBox"], Ql = ["width", "heigh
|
|
|
1053
1060
|
]))), 256)),
|
|
1054
1061
|
e.value.style.layout.marginalBars.showLines ? (r(), y("g", ba, [
|
|
1055
1062
|
(r(!0), y(Z, null, J(el.value, (t) => (r(), y(Z, null, [
|
|
1056
|
-
|
|
1063
|
+
I.value.includes(t.id) ? x("", !0) : (r(), y("path", {
|
|
1057
1064
|
key: 0,
|
|
1058
1065
|
d: `M ${t.dX}`,
|
|
1059
1066
|
stroke: e.value.style.backgroundColor,
|
|
@@ -1062,7 +1069,7 @@ const ql = ["id"], Hl = ["id"], Zl = ["xmlns", "viewBox"], Ql = ["width", "heigh
|
|
|
1062
1069
|
"stroke-linejoin": "round",
|
|
1063
1070
|
fill: "none"
|
|
1064
1071
|
}, null, 8, ka)),
|
|
1065
|
-
|
|
1072
|
+
I.value.includes(t.id) ? x("", !0) : (r(), y("path", {
|
|
1066
1073
|
key: 1,
|
|
1067
1074
|
d: `M ${t.dX}`,
|
|
1068
1075
|
stroke: t.color,
|
|
@@ -1071,7 +1078,7 @@ const ql = ["id"], Hl = ["id"], Zl = ["xmlns", "viewBox"], Ql = ["width", "heigh
|
|
|
1071
1078
|
"stroke-linejoin": "round",
|
|
1072
1079
|
fill: "none"
|
|
1073
1080
|
}, null, 8, wa)),
|
|
1074
|
-
|
|
1081
|
+
I.value.includes(t.id) ? x("", !0) : (r(), y("path", {
|
|
1075
1082
|
key: 2,
|
|
1076
1083
|
d: `M ${t.dY}`,
|
|
1077
1084
|
stroke: e.value.style.backgroundColor,
|
|
@@ -1079,8 +1086,8 @@ const ql = ["id"], Hl = ["id"], Zl = ["xmlns", "viewBox"], Ql = ["width", "heigh
|
|
|
1079
1086
|
"stroke-linecap": "round",
|
|
1080
1087
|
"stroke-linejoin": "round",
|
|
1081
1088
|
fill: "none"
|
|
1082
|
-
}, null, 8,
|
|
1083
|
-
|
|
1089
|
+
}, null, 8, $a)),
|
|
1090
|
+
I.value.includes(t.id) ? x("", !0) : (r(), y("path", {
|
|
1084
1091
|
key: 3,
|
|
1085
1092
|
d: `M ${t.dY}`,
|
|
1086
1093
|
stroke: t.color,
|
|
@@ -1088,7 +1095,7 @@ const ql = ["id"], Hl = ["id"], Zl = ["xmlns", "viewBox"], Ql = ["width", "heigh
|
|
|
1088
1095
|
"stroke-linecap": "round",
|
|
1089
1096
|
"stroke-linejoin": "round",
|
|
1090
1097
|
fill: "none"
|
|
1091
|
-
}, null, 8,
|
|
1098
|
+
}, null, 8, _a))
|
|
1092
1099
|
], 64))), 256))
|
|
1093
1100
|
])) : x("", !0)
|
|
1094
1101
|
])) : x("", !0),
|
|
@@ -1107,7 +1114,7 @@ const ql = ["id"], Hl = ["id"], Zl = ["xmlns", "viewBox"], Ql = ["width", "heigh
|
|
|
1107
1114
|
]))), 256))
|
|
1108
1115
|
])) : x("", !0),
|
|
1109
1116
|
e.value.usePerformanceMode ? x("", !0) : (r(!0), y(Z, { key: 4 }, J(U.value, (t, o) => (r(), y("g", null, [
|
|
1110
|
-
!t.shape || t.shape === "circle" ? (r(), y("g",
|
|
1117
|
+
!t.shape || t.shape === "circle" ? (r(), y("g", Sa, [
|
|
1111
1118
|
(r(!0), y(Z, null, J(t.plots, (a, u) => (r(), y("circle", {
|
|
1112
1119
|
cx: a.x,
|
|
1113
1120
|
cy: a.y,
|
|
@@ -1117,9 +1124,9 @@ const ql = ["id"], Hl = ["id"], Zl = ["xmlns", "viewBox"], Ql = ["width", "heigh
|
|
|
1117
1124
|
"stroke-width": e.value.style.layout.plots.strokeWidth,
|
|
1118
1125
|
style: ue(`opacity:${Y.value && Y.value === a.id ? 1 : e.value.style.layout.plots.significance.useDistanceOpacity ? 1 - Math.abs(a.deviation) / bt.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}`),
|
|
1119
1126
|
onMouseover: (i) => je(a, o),
|
|
1120
|
-
onMouseleave: (i) =>
|
|
1127
|
+
onMouseleave: (i) => Ae(a, o),
|
|
1121
1128
|
onClick: (i) => Ue(a, o)
|
|
1122
|
-
}, null, 44,
|
|
1129
|
+
}, null, 44, Aa))), 256))
|
|
1123
1130
|
])) : (r(), y("g", La, [
|
|
1124
1131
|
(r(!0), y(Z, null, J(t.plots, (a, u) => (r(), le(Ke, {
|
|
1125
1132
|
plot: { x: a.x, y: a.y },
|
|
@@ -1130,14 +1137,14 @@ const ql = ["id"], Hl = ["id"], Zl = ["xmlns", "viewBox"], Ql = ["width", "heigh
|
|
|
1130
1137
|
strokeWidth: e.value.style.layout.plots.strokeWidth,
|
|
1131
1138
|
style: ue(`opacity:${Y.value && Y.value === a.id ? 1 : e.value.style.layout.plots.significance.useDistanceOpacity ? 1 - Math.abs(a.deviation) / bt.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}`),
|
|
1132
1139
|
onMouseover: (i) => je(a, o),
|
|
1133
|
-
onMouseleave: (i) =>
|
|
1140
|
+
onMouseleave: (i) => Ae(a, o),
|
|
1134
1141
|
onClick: (i) => Ue(a, o)
|
|
1135
1142
|
}, null, 8, ["plot", "radius", "shape", "color", "stroke", "strokeWidth", "style", "onMouseover", "onMouseleave", "onClick"]))), 256))
|
|
1136
1143
|
]))
|
|
1137
1144
|
]))), 256)),
|
|
1138
1145
|
e.value.usePerformanceMode ? (r(), y(Z, { key: 5 }, [
|
|
1139
1146
|
w("g", {
|
|
1140
|
-
"clip-path": `url(#clip_path_${
|
|
1147
|
+
"clip-path": `url(#clip_path_${N.value})`
|
|
1141
1148
|
}, [
|
|
1142
1149
|
(r(!0), y(Z, null, J(sl.value, (t) => (r(), y("path", {
|
|
1143
1150
|
key: t.id,
|
|
@@ -1151,7 +1158,7 @@ const ql = ["id"], Hl = ["id"], Zl = ["xmlns", "viewBox"], Ql = ["width", "heigh
|
|
|
1151
1158
|
}, null, 8, Ta))), 128))
|
|
1152
1159
|
], 8, Ba),
|
|
1153
1160
|
f.value && e.value.style.layout.plots.selectors.show ? (r(), y("g", za, [
|
|
1154
|
-
|
|
1161
|
+
_e(Ke, {
|
|
1155
1162
|
shape: f.value.shape || "circle",
|
|
1156
1163
|
color: f.value.color,
|
|
1157
1164
|
plot: { x: f.value.x, y: f.value.y },
|
|
@@ -1166,7 +1173,7 @@ const ql = ["id"], Hl = ["id"], Zl = ["xmlns", "viewBox"], Ql = ["width", "heigh
|
|
|
1166
1173
|
width: Math.max(1e-4, n.value.width),
|
|
1167
1174
|
height: Math.max(1e-4, n.value.height),
|
|
1168
1175
|
fill: "transparent",
|
|
1169
|
-
onMousemove: s[2] || (s[2] = (...t) => c(
|
|
1176
|
+
onMousemove: s[2] || (s[2] = (...t) => c(St) && c(St)(...t)),
|
|
1170
1177
|
onMouseleave: ul,
|
|
1171
1178
|
onClick: il
|
|
1172
1179
|
}, null, 40, Pa)
|
|
@@ -1264,7 +1271,7 @@ const ql = ["id"], Hl = ["id"], Zl = ["xmlns", "viewBox"], Ql = ["width", "heigh
|
|
|
1264
1271
|
ref: Fe
|
|
1265
1272
|
}, [
|
|
1266
1273
|
w("text", {
|
|
1267
|
-
id: `vue-ui-scatter-xAxis-label-${
|
|
1274
|
+
id: `vue-ui-scatter-xAxis-label-${N.value}`,
|
|
1268
1275
|
transform: `translate(${e.value.style.layout.dataLabels.xAxis.fontSize}, ${n.value.top + n.value.height / 2}), rotate(-90)`,
|
|
1269
1276
|
"text-anchor": "middle",
|
|
1270
1277
|
"font-size": e.value.style.layout.dataLabels.xAxis.fontSize,
|
|
@@ -1355,7 +1362,7 @@ const ql = ["id"], Hl = ["id"], Zl = ["xmlns", "viewBox"], Ql = ["width", "heigh
|
|
|
1355
1362
|
}, G(e.value.style.layout.dataLabels.yAxis.name), 9, Ga)
|
|
1356
1363
|
], 512)) : x("", !0),
|
|
1357
1364
|
w("clipPath", {
|
|
1358
|
-
id: `clip_path_${
|
|
1365
|
+
id: `clip_path_${N.value}`
|
|
1359
1366
|
}, [
|
|
1360
1367
|
w("rect", {
|
|
1361
1368
|
x: n.value.left,
|
|
@@ -1373,7 +1380,7 @@ const ql = ["id"], Hl = ["id"], Zl = ["xmlns", "viewBox"], Ql = ["width", "heigh
|
|
|
1373
1380
|
"stroke-dasharray": e.value.style.layout.correlation.strokeDasharray,
|
|
1374
1381
|
stroke: t.color,
|
|
1375
1382
|
"stroke-width": e.value.style.layout.correlation.strokeWidth,
|
|
1376
|
-
"clip-path": `url(#clip_path_${
|
|
1383
|
+
"clip-path": `url(#clip_path_${N.value})`
|
|
1377
1384
|
}, null, 8, Qa))), 256)),
|
|
1378
1385
|
(r(!0), y(Z, null, J(U.value, (t, o) => (r(), y("g", null, [
|
|
1379
1386
|
e.value.style.layout.correlation.label.show ? (r(), y("text", {
|
|
@@ -1390,26 +1397,26 @@ const ql = ["id"], Hl = ["id"], Zl = ["xmlns", "viewBox"], Ql = ["width", "heigh
|
|
|
1390
1397
|
})), 9, Ja)) : x("", !0)
|
|
1391
1398
|
]))), 256))
|
|
1392
1399
|
])) : x("", !0),
|
|
1393
|
-
|
|
1400
|
+
R(l.$slots, "svg", {
|
|
1394
1401
|
svg: {
|
|
1395
1402
|
...F.value,
|
|
1396
1403
|
drawingArea: {
|
|
1397
1404
|
...n.value,
|
|
1398
1405
|
zero: O.value
|
|
1399
1406
|
},
|
|
1400
|
-
data:
|
|
1407
|
+
data: Se.value
|
|
1401
1408
|
}
|
|
1402
1409
|
}, void 0, !0)
|
|
1403
1410
|
], 46, Zl)),
|
|
1404
1411
|
l.$slots.watermark ? (r(), y("div", Ka, [
|
|
1405
|
-
|
|
1412
|
+
R(l.$slots, "watermark", pe(fe({ isPrinting: c(pt) || c(ft) })), void 0, !0)
|
|
1406
1413
|
])) : x("", !0),
|
|
1407
1414
|
w("div", {
|
|
1408
|
-
id: `legend-bottom-${
|
|
1415
|
+
id: `legend-bottom-${N.value}`
|
|
1409
1416
|
}, null, 8, eo),
|
|
1410
1417
|
rt.value ? (r(), le(gl, {
|
|
1411
1418
|
key: 5,
|
|
1412
|
-
to: e.value.style.legend.position === "top" ? `#legend-top-${
|
|
1419
|
+
to: e.value.style.legend.position === "top" ? `#legend-top-${N.value}` : `#legend-bottom-${N.value}`
|
|
1413
1420
|
}, [
|
|
1414
1421
|
w("div", {
|
|
1415
1422
|
ref_key: "chartLegend",
|
|
@@ -1421,14 +1428,14 @@ const ql = ["id"], Hl = ["id"], Zl = ["xmlns", "viewBox"], Ql = ["width", "heigh
|
|
|
1421
1428
|
config: Jt.value,
|
|
1422
1429
|
onClickMarker: s[3] || (s[3] = ({ legend: t }) => wt(t.id))
|
|
1423
1430
|
}, {
|
|
1424
|
-
item:
|
|
1431
|
+
item: W(({ legend: t }) => [
|
|
1425
1432
|
w("div", {
|
|
1426
1433
|
onClick: (o) => t.segregate(),
|
|
1427
|
-
style: ue(`opacity:${
|
|
1434
|
+
style: ue(`opacity:${I.value.includes(t.id) ? 0.5 : 1}`)
|
|
1428
1435
|
}, G(t.name), 13, to)
|
|
1429
1436
|
]),
|
|
1430
1437
|
_: 1
|
|
1431
|
-
}, 8, ["legendSet", "config"])) :
|
|
1438
|
+
}, 8, ["legendSet", "config"])) : R(l.$slots, "legend", {
|
|
1432
1439
|
key: 1,
|
|
1433
1440
|
legend: oe.value
|
|
1434
1441
|
}, void 0, !0)
|
|
@@ -1440,9 +1447,9 @@ const ql = ["id"], Hl = ["id"], Zl = ["xmlns", "viewBox"], Ql = ["width", "heigh
|
|
|
1440
1447
|
ref: ot,
|
|
1441
1448
|
dir: "auto"
|
|
1442
1449
|
}, [
|
|
1443
|
-
|
|
1450
|
+
R(l.$slots, "source", {}, void 0, !0)
|
|
1444
1451
|
], 512)) : x("", !0),
|
|
1445
|
-
|
|
1452
|
+
_e(c(Nt), {
|
|
1446
1453
|
show: H.value.showTooltip && Oe.value,
|
|
1447
1454
|
backgroundColor: e.value.style.tooltip.backgroundColor,
|
|
1448
1455
|
color: e.value.style.tooltip.color,
|
|
@@ -1462,16 +1469,16 @@ const ql = ["id"], Hl = ["id"], Zl = ["xmlns", "viewBox"], Ql = ["width", "heigh
|
|
|
1462
1469
|
smoothForce: e.value.style.tooltip.smoothForce,
|
|
1463
1470
|
smoothSnapThreshold: e.value.style.tooltip.smoothSnapThreshold
|
|
1464
1471
|
}, {
|
|
1465
|
-
"tooltip-before":
|
|
1466
|
-
|
|
1472
|
+
"tooltip-before": W(() => [
|
|
1473
|
+
R(l.$slots, "tooltip-before", pe(fe({ ...Re.value })), void 0, !0)
|
|
1467
1474
|
]),
|
|
1468
|
-
"tooltip-after":
|
|
1469
|
-
|
|
1475
|
+
"tooltip-after": W(() => [
|
|
1476
|
+
R(l.$slots, "tooltip-after", pe(fe({ ...Re.value })), void 0, !0)
|
|
1470
1477
|
]),
|
|
1471
|
-
default:
|
|
1478
|
+
default: W(() => [
|
|
1472
1479
|
e.value.style.tooltip.showShape ? (r(), y("div", lo, [
|
|
1473
1480
|
(r(), y("svg", ao, [
|
|
1474
|
-
|
|
1481
|
+
_e(Ke, {
|
|
1475
1482
|
shape: f.value.shape,
|
|
1476
1483
|
color: f.value.color,
|
|
1477
1484
|
plot: { x: 10, y: 10 },
|
|
@@ -1485,9 +1492,9 @@ const ql = ["id"], Hl = ["id"], Zl = ["xmlns", "viewBox"], Ql = ["width", "heigh
|
|
|
1485
1492
|
et.value && e.value.userOptions.buttons.table ? (r(), le(ml(be.value.component), xl({ key: 7 }, be.value.props, {
|
|
1486
1493
|
ref_key: "tableUnit",
|
|
1487
1494
|
ref: xe,
|
|
1488
|
-
onClose:
|
|
1495
|
+
onClose: At
|
|
1489
1496
|
}), zt({
|
|
1490
|
-
content:
|
|
1497
|
+
content: W(() => [
|
|
1491
1498
|
(r(), le(c(Yt), {
|
|
1492
1499
|
key: `table_${ut.value}`,
|
|
1493
1500
|
colNames: Le.value.colNames,
|
|
@@ -1496,12 +1503,12 @@ const ql = ["id"], Hl = ["id"], Zl = ["xmlns", "viewBox"], Ql = ["width", "heigh
|
|
|
1496
1503
|
config: Le.value.config,
|
|
1497
1504
|
title: e.value.table.useDialog ? "" : be.value.title,
|
|
1498
1505
|
withCloseButton: !e.value.table.useDialog,
|
|
1499
|
-
onClose:
|
|
1506
|
+
onClose: At
|
|
1500
1507
|
}, {
|
|
1501
|
-
th:
|
|
1508
|
+
th: W(({ th: t }) => [
|
|
1502
1509
|
Pt(G(t), 1)
|
|
1503
1510
|
]),
|
|
1504
|
-
td:
|
|
1511
|
+
td: W(({ td: t }) => [
|
|
1505
1512
|
t.shape ? (r(), y("div", oo, [
|
|
1506
1513
|
w("span", null, G(t.content), 1)
|
|
1507
1514
|
])) : (r(), y("div", {
|
|
@@ -1516,20 +1523,20 @@ const ql = ["id"], Hl = ["id"], Zl = ["xmlns", "viewBox"], Ql = ["width", "heigh
|
|
|
1516
1523
|
}, [
|
|
1517
1524
|
e.value.table.useDialog ? {
|
|
1518
1525
|
name: "title",
|
|
1519
|
-
fn:
|
|
1526
|
+
fn: W(() => [
|
|
1520
1527
|
Pt(G(be.value.title), 1)
|
|
1521
1528
|
]),
|
|
1522
1529
|
key: "0"
|
|
1523
1530
|
} : void 0,
|
|
1524
1531
|
e.value.table.useDialog ? {
|
|
1525
1532
|
name: "actions",
|
|
1526
|
-
fn:
|
|
1533
|
+
fn: W(() => [
|
|
1527
1534
|
w("button", {
|
|
1528
1535
|
tabindex: "0",
|
|
1529
1536
|
class: "vue-ui-user-options-button",
|
|
1530
1537
|
onClick: s[4] || (s[4] = (t) => Ve(e.value.userOptions.callbacks.csv))
|
|
1531
1538
|
}, [
|
|
1532
|
-
|
|
1539
|
+
_e(c(It), {
|
|
1533
1540
|
name: "excel",
|
|
1534
1541
|
stroke: be.value.props.color
|
|
1535
1542
|
}, null, 8, ["stroke"])
|
|
@@ -1541,7 +1548,7 @@ const ql = ["id"], Hl = ["id"], Zl = ["xmlns", "viewBox"], Ql = ["width", "heigh
|
|
|
1541
1548
|
c(vt) ? (r(), le(Wl, { key: 8 })) : x("", !0)
|
|
1542
1549
|
], 46, ql));
|
|
1543
1550
|
}
|
|
1544
|
-
},
|
|
1551
|
+
}, $o = /* @__PURE__ */ Gl(no, [["__scopeId", "data-v-85c86e6f"]]);
|
|
1545
1552
|
export {
|
|
1546
|
-
|
|
1553
|
+
$o as default
|
|
1547
1554
|
};
|