vue-data-ui 3.16.0 → 3.16.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/ColorPicker-B0mV4xzu.js +255 -0
- package/dist/{NonSvgPenAndPaper-vqweC0WU.js → NonSvgPenAndPaper-VyJFyJ6X.js} +1 -1
- package/dist/{PackageVersion-IIGK_e2C.js → PackageVersion-DPO-OOVI.js} +1 -1
- package/dist/{PenAndPaper-DARlvvKW.js → PenAndPaper-Ct3qJ4lA.js} +109 -101
- package/dist/{UserOptions-DWHf8jyO.js → UserOptions-rW2fRf3V.js} +2 -2
- 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-annotator.js +1 -1
- package/dist/components/vue-ui-bullet.js +1 -1
- package/dist/components/vue-ui-bump.js +1 -1
- package/dist/components/vue-ui-candlestick.js +1 -1
- package/dist/components/vue-ui-carousel-table.js +1 -1
- package/dist/components/vue-ui-chestnut.js +1 -1
- package/dist/components/vue-ui-chord.js +1 -1
- package/dist/components/vue-ui-circle-pack.js +1 -1
- package/dist/components/vue-ui-cursor.js +1 -1
- package/dist/components/vue-ui-dag.js +1 -1
- package/dist/components/vue-ui-dashboard.js +1 -1
- package/dist/components/vue-ui-digits.js +1 -1
- package/dist/components/vue-ui-donut-evolution.js +1 -1
- package/dist/components/vue-ui-donut.js +1 -1
- package/dist/components/vue-ui-dumbbell.js +1 -1
- package/dist/components/vue-ui-flow.js +1 -1
- package/dist/components/vue-ui-funnel.js +1 -1
- package/dist/components/vue-ui-galaxy.js +1 -1
- package/dist/components/vue-ui-gauge.js +1 -1
- package/dist/components/vue-ui-geo.js +1 -1
- package/dist/components/vue-ui-gizmo.js +1 -1
- package/dist/components/vue-ui-heatmap.js +1 -1
- package/dist/components/vue-ui-history-plot.js +1 -1
- package/dist/components/vue-ui-horizontal-bar.js +1 -1
- package/dist/components/vue-ui-kpi.js +1 -1
- package/dist/components/vue-ui-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-stackline.js +1 -1
- package/dist/components/vue-ui-strip-plot.js +1 -1
- package/dist/components/vue-ui-table-heatmap.js +1 -1
- package/dist/components/vue-ui-table-sparkline.js +1 -1
- package/dist/components/vue-ui-table.js +1 -1
- package/dist/components/vue-ui-thermometer.js +1 -1
- package/dist/components/vue-ui-timer.js +1 -1
- package/dist/components/vue-ui-tiremarks.js +1 -1
- package/dist/components/vue-ui-treemap.js +1 -1
- package/dist/components/vue-ui-vertical-bar.js +1 -1
- package/dist/components/vue-ui-waffle.js +1 -1
- package/dist/components/vue-ui-wheel.js +1 -1
- package/dist/components/vue-ui-word-cloud.js +1 -1
- package/dist/components/vue-ui-world.js +1 -1
- package/dist/components/vue-ui-xy-canvas.js +1 -1
- package/dist/components/vue-ui-xy.js +1 -1
- package/dist/style.css +1 -1
- package/dist/types/vue-data-ui.d.ts +1 -0
- package/dist/{vue-data-ui-CykQ4SW2.js → vue-data-ui-DXGkXRnC.js} +63 -63
- package/dist/vue-data-ui.js +63 -63
- package/dist/{vue-ui-3d-bar-D5KRiVmZ.js → vue-ui-3d-bar-BaFpQnd5.js} +1 -1
- package/dist/{vue-ui-age-pyramid-QfZ1J5Xx.js → vue-ui-age-pyramid-CRM498Pc.js} +342 -341
- package/dist/{vue-ui-annotator-CpSMITlP.js → vue-ui-annotator-CkPi9moo.js} +1 -1
- package/dist/{vue-ui-bullet-B-mo7tzz.js → vue-ui-bullet-BBiwof3c.js} +1 -1
- package/dist/{vue-ui-bump-NfZcJ9Q0.js → vue-ui-bump-Brxpu4xV.js} +1 -1
- package/dist/{vue-ui-candlestick-CGU-0rrF.js → vue-ui-candlestick-DAnZv77-.js} +240 -239
- package/dist/{vue-ui-carousel-table-BsdD3wU7.js → vue-ui-carousel-table-BHRZBYY0.js} +1 -1
- package/dist/{vue-ui-chestnut-JpoNeiHD.js → vue-ui-chestnut-CbrYnRgm.js} +1 -1
- package/dist/{vue-ui-chord-CxhxjRQz.js → vue-ui-chord-CaX_IUVs.js} +1 -1
- package/dist/{vue-ui-circle-pack-DbxOzzk2.js → vue-ui-circle-pack-CR3h53sc.js} +1 -1
- package/dist/{vue-ui-cursor-CZGKKkeT.js → vue-ui-cursor-Cjfazw7Z.js} +1 -1
- package/dist/{vue-ui-dag-gal2eIv-.js → vue-ui-dag-B9vH3c66.js} +1 -1
- package/dist/{vue-ui-dashboard-ClnkPMc5.js → vue-ui-dashboard-DWll05qs.js} +62 -62
- package/dist/{vue-ui-digits-DColgbmH.js → vue-ui-digits-DcM67rMx.js} +1 -1
- package/dist/{vue-ui-donut-Bckj-DX2.js → vue-ui-donut-Be5G38P5.js} +395 -394
- package/dist/{vue-ui-donut-evolution-B6HtvZVs.js → vue-ui-donut-evolution-BLSesj3c.js} +265 -264
- package/dist/{vue-ui-dumbbell-r3Jv9uut.js → vue-ui-dumbbell-DIMiCY4r.js} +1 -1
- package/dist/{vue-ui-flow-BxfLqYXa.js → vue-ui-flow-zvZylhgr.js} +1 -1
- package/dist/{vue-ui-funnel-B6Gevxqh.js → vue-ui-funnel-CSri-oWm.js} +1 -1
- package/dist/{vue-ui-galaxy-BJr1ddJZ.js → vue-ui-galaxy-CGykxsAI.js} +1 -1
- package/dist/{vue-ui-gauge-Q-Slhgwx.js → vue-ui-gauge-D1MNB9Jq.js} +1 -1
- package/dist/{vue-ui-geo-Dow4oyTv.js → vue-ui-geo-DdJDGhG2.js} +1 -1
- package/dist/{vue-ui-gizmo-zpVjAoDG.js → vue-ui-gizmo-BZYRHGFm.js} +1 -1
- package/dist/{vue-ui-heatmap-mKX5Bzql.js → vue-ui-heatmap-CryOx6XK.js} +494 -482
- package/dist/{vue-ui-history-plot-D6kiRkhD.js → vue-ui-history-plot-C85iw9Kl.js} +1 -1
- package/dist/{vue-ui-horizontal-bar-FKkR13e7.js → vue-ui-horizontal-bar-BoBZOybC.js} +430 -429
- package/dist/{vue-ui-kpi-CMRe29m5.js → vue-ui-kpi-DHrolXw6.js} +1 -1
- package/dist/{vue-ui-molecule-7eT7D17p.js → vue-ui-molecule-DJ_BQ4DK.js} +1 -1
- package/dist/{vue-ui-mood-radar-DsC0X_C2.js → vue-ui-mood-radar-CBE02TpQ.js} +1 -1
- package/dist/{vue-ui-nested-donuts-FbiXKFZX.js → vue-ui-nested-donuts-YTFtb4CL.js} +284 -283
- package/dist/{vue-ui-onion-CjWiTq2x.js → vue-ui-onion-B9l81-PS.js} +1 -1
- package/dist/{vue-ui-parallel-coordinate-plot-kl1jgKIX.js → vue-ui-parallel-coordinate-plot-C1e_rs8J.js} +1 -1
- package/dist/{vue-ui-quadrant-CyalzEfW.js → vue-ui-quadrant-C1qsLCRn.js} +556 -555
- package/dist/{vue-ui-quick-chart-DgWwf7SJ.js → vue-ui-quick-chart-DFoz3WiA.js} +360 -359
- package/dist/{vue-ui-radar-Bw9veQKf.js → vue-ui-radar-Cmo3p-UA.js} +1 -1
- package/dist/{vue-ui-relation-circle-D4-9g-5t.js → vue-ui-relation-circle-BqwznVwf.js} +1 -1
- package/dist/{vue-ui-ridgeline-BZy69VT6.js → vue-ui-ridgeline-CDk9eXJq.js} +1 -1
- package/dist/{vue-ui-rings-LDs6OFnx.js → vue-ui-rings-BRkGoQdL.js} +1 -1
- package/dist/{vue-ui-scatter-i_hakuFa.js → vue-ui-scatter-BxDtWASQ.js} +479 -466
- package/dist/{vue-ui-skeleton-F2qaXsQ2.js → vue-ui-skeleton-D6kTb9aO.js} +1 -1
- package/dist/{vue-ui-spark-trend-ZIMooBi3.js → vue-ui-spark-trend-D8Mf2A1w.js} +1 -1
- package/dist/{vue-ui-sparkbar-BYRKG_Mm.js → vue-ui-sparkbar-BbYj56c3.js} +1 -1
- package/dist/{vue-ui-sparkgauge-BM0mnDHp.js → vue-ui-sparkgauge-DXzOSLRb.js} +1 -1
- package/dist/{vue-ui-sparkhistogram-z4-7Q6J8.js → vue-ui-sparkhistogram-DMfSx1iH.js} +1 -1
- package/dist/{vue-ui-sparkline-9m1__jVp.js → vue-ui-sparkline-D-rQ9PsC.js} +439 -438
- package/dist/{vue-ui-sparkstackbar-uM98VUDw.js → vue-ui-sparkstackbar-DK5n8IKP.js} +1 -1
- package/dist/{vue-ui-stackbar-DcSJuwTC.js → vue-ui-stackbar-BHthy6jf.js} +212 -211
- package/dist/{vue-ui-stackline-Dl_FfJAO.js → vue-ui-stackline-C6-WNpKD.js} +363 -362
- package/dist/{vue-ui-strip-plot-CcV8bOkg.js → vue-ui-strip-plot-CHu-1ilI.js} +1 -1
- package/dist/{vue-ui-table-Dx-N-eF1.js → vue-ui-table-DW9JGsLq.js} +2 -2
- package/dist/{vue-ui-table-heatmap-CVxNZzGe.js → vue-ui-table-heatmap-LYqoBit9.js} +1 -1
- package/dist/{vue-ui-table-sparkline-DdtbqaUL.js → vue-ui-table-sparkline-CXK1dFr-.js} +1 -1
- package/dist/{vue-ui-thermometer-Clwz-wUE.js → vue-ui-thermometer-BN8tflOz.js} +1 -1
- package/dist/{vue-ui-timer-BYVk_bvz.js → vue-ui-timer-DGT0UBOF.js} +1 -1
- package/dist/{vue-ui-tiremarks-D5TSv5yw.js → vue-ui-tiremarks-BZ-osQqY.js} +1 -1
- package/dist/{vue-ui-treemap-C0zhPMxE.js → vue-ui-treemap-98KaVRyd.js} +388 -387
- package/dist/{vue-ui-waffle-BtjLPkLm.js → vue-ui-waffle-Cb7oJnIc.js} +1 -1
- package/dist/{vue-ui-wheel-DSlnowV4.js → vue-ui-wheel-sfew1fjw.js} +1 -1
- package/dist/{vue-ui-word-cloud-DFdiRCqc.js → vue-ui-word-cloud-vq1t9JHr.js} +1 -1
- package/dist/{vue-ui-world-CymT7_Ep.js → vue-ui-world-CN0f6elD.js} +1 -1
- package/dist/{vue-ui-xy-B9Q4FR0g.js → vue-ui-xy-BdzEiImZ.js} +956 -955
- package/dist/{vue-ui-xy-canvas-CrnBxoa0.js → vue-ui-xy-canvas-CWQzUQzY.js} +113 -113
- package/package.json +1 -1
- package/dist/ColorPicker-DQ5sdRrl.js +0 -244
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { defineAsyncComponent as
|
|
2
|
-
import { j as Zl, t as
|
|
1
|
+
import { defineAsyncComponent as ye, computed as T, ref as w, toRefs as Ul, watch as Ue, shallowRef as Gt, onMounted as jl, onBeforeUnmount as Gl, openBlock as v, createElementBlock as c, unref as h, normalizeStyle as ue, normalizeClass as qt, createElementVNode as k, toDisplayString as V, createCommentVNode as x, createBlock as ae, withCtx as B, renderSlot as z, normalizeProps as H, guardReactiveProps as K, createSlots as Ht, createVNode as Oe, Fragment as Q, renderList as oe, Teleport as ql, resolveDynamicComponent as Hl, mergeProps as Kl, createTextVNode as Kt, nextTick as yt } from "vue";
|
|
2
|
+
import { j as Zl, t as Zt, m as Jl, p as ge, o as Jt, q as dt, n as Ql, r as Qt, ak as ea, s as ht, am as ta, c as la, u as je, k as se, l as ee, X as aa, al as oa, K as Z, a0 as sa, a1 as na, T as ua, U as ia, a3 as ra } from "./lib-DBptbyyI.js";
|
|
3
3
|
import { t as va, u as ca } from "./useResponsive-DfdjqQps.js";
|
|
4
4
|
import { u as ya } from "./useConfig-DO94Aj5s.js";
|
|
5
5
|
import { u as da, B as ha } from "./BaseScanner-BhhkKVoj.js";
|
|
@@ -8,8 +8,8 @@ import { u as pa } from "./useSvgExport-ByUukOZt.js";
|
|
|
8
8
|
import { u as ft } from "./useNestedProp-Bf5XFbs8.js";
|
|
9
9
|
import { u as ga } from "./useThemeCheck-D1ZYXUwG.js";
|
|
10
10
|
import { u as ma } from "./useUserOptionState-BIvW1Kz7.js";
|
|
11
|
-
import { u as
|
|
12
|
-
import
|
|
11
|
+
import { u as xa } from "./useChartAccessibility-9icAAmYg.js";
|
|
12
|
+
import ba from "./img-LXxMLmCg.js";
|
|
13
13
|
import { _ as pt } from "./Shape-BKRUOeKk.js";
|
|
14
14
|
import ka from "./Title-BeMKE1cj.js";
|
|
15
15
|
import wa from "./vue_ui_scatter-CO5Iq9ai.js";
|
|
@@ -22,7 +22,7 @@ const Aa = ["id"], Sa = ["id"], Ta = {
|
|
|
22
22
|
class: "sr-only",
|
|
23
23
|
"aria-live": "polite",
|
|
24
24
|
"aria-atomic": "true"
|
|
25
|
-
}, La = ["id"],
|
|
25
|
+
}, La = ["id"], Pa = { style: { position: "relative" } }, Ba = ["xmlns", "aria-describedby", "viewBox"], za = ["width", "height"], Ia = { key: 1 }, Oa = ["x1", "x2", "y1", "y2", "stroke", "stroke-width"], Da = ["x1", "x2", "y1", "y2", "stroke", "stroke-width"], Ea = { key: 2 }, Na = ["id"], Fa = ["stop-color"], Wa = ["stop-color"], Xa = ["id"], Ya = ["stop-color"], Ra = ["stop-color"], Va = ["x", "y", "width", "height", "fill", "stroke", "stroke-width", "rx"], Ua = ["x", "y", "width", "height", "onMouseenter"], ja = {
|
|
26
26
|
key: 2,
|
|
27
27
|
style: { "pointer-events": "none" }
|
|
28
28
|
}, Ga = ["x", "y", "width", "height", "fill", "fill-opacity"], qa = ["x1", "x2", "y2", "stroke", "stroke-dasharray", "stroke-width"], Ha = ["x1", "x2", "y2", "stroke", "stroke-dasharray", "stroke-width"], Ka = ["x", "y", "height", "width", "fill", "stroke", "stroke-width", "rx"], Za = ["x", "y", "width", "height", "onMouseenter"], Ja = {
|
|
@@ -37,7 +37,7 @@ const Aa = ["id"], Sa = ["id"], Ta = {
|
|
|
37
37
|
}, po = ["x", "y", "width", "height"], go = {
|
|
38
38
|
key: 6,
|
|
39
39
|
style: { "pointer-events": "none !important" }
|
|
40
|
-
}, mo = ["x1", "x2", "y1", "y2", "stroke", "stroke-width", "stroke-dasharray"],
|
|
40
|
+
}, mo = ["x1", "x2", "y1", "y2", "stroke", "stroke-width", "stroke-dasharray"], xo = ["x1", "x2", "y1", "y2", "stroke", "stroke-width", "stroke-dasharray"], bo = ["x", "y", "font-size", "fill", "font-weight", "text-anchor"], ko = ["x", "y", "font-size", "fill", "font-weight"], wo = ["cx", "cy", "r", "fill", "stroke", "stroke-width"], $o = ["cx", "cy", "r", "fill", "stroke", "stroke-width"], Mo = ["x", "y", "font-size", "fill", "font-weight", "text-anchor"], _o = ["id", "transform", "font-size", "font-weight", "fill"], Co = ["font-size", "fill", "transform"], Ao = ["transform", "font-size", "fill"], So = ["x", "y", "font-size", "fill"], To = ["x", "y", "font-size", "fill"], Lo = ["font-size", "font-weight", "fill", "x", "y"], Po = ["id"], Bo = ["x", "y", "width", "height"], zo = {
|
|
41
41
|
key: 11,
|
|
42
42
|
style: { pointerEvents: "none" }
|
|
43
43
|
}, Io = ["x1", "x2", "y1", "y2", "stroke-dasharray", "stroke", "stroke-width", "clip-path"], Oo = ["x", "y", "fill", "font-size", "font-weight"], Do = {
|
|
@@ -73,30 +73,30 @@ const Aa = ["id"], Sa = ["id"], Ta = {
|
|
|
73
73
|
}
|
|
74
74
|
},
|
|
75
75
|
emits: ["copyAlt"],
|
|
76
|
-
setup(
|
|
77
|
-
const
|
|
78
|
-
function
|
|
79
|
-
const { meanX: s = 0, sdX: o = 1, meanY: n = 0, sdY: i = 1, seed:
|
|
80
|
-
let r = (
|
|
81
|
-
const f = () => (r = r * 1664525 + 1013904223 >>> 0, r / 2 ** 32),
|
|
82
|
-
let b = 0,
|
|
76
|
+
setup(el, { expose: tl, emit: ll }) {
|
|
77
|
+
const al = ye(() => import("./Tooltip-Bf-kM3_A.js")), ol = ye(() => import("./BaseIcon-Cb3zzG6s.js")), sl = ye(() => import("./vue-ui-accordion-nvggWcGN.js")), nl = ye(() => import("./DataTable-DT2kIdQ6.js")), ul = ye(() => import("./PenAndPaper-Ct3qJ4lA.js")), il = ye(() => import("./UserOptions-rW2fRf3V.js")), rl = ye(() => import("./PackageVersion-DPO-OOVI.js")), vl = ye(() => import("./BaseDraggableDialog-CIb-iD9g.js")), { vue_ui_scatter: cl } = ya(), { isThemeValid: yl, warnInvalidTheme: dl } = ga(), te = el, hl = ll, gt = T(() => !!te.dataset && te.dataset.length), N = w(Zl()), De = w(!1), Ge = w(""), mt = w(0), ne = w(null), xt = w(null), bt = w(null), kt = w(null), wt = w(null), $t = w(0), Mt = w(0), _t = w(0), I = w([]), Ct = w(!1), _e = w(null), Ce = w(null), Ae = w(null), qe = w(null), Ee = w(!1), Ne = w(!1), He = w(null), fl = w(null), pl = w(null), Ke = w(null), me = w(null), At = w({ x: 0, y: 0 }), Se = w("pointer"), Fe = w(!1), Te = w(null), e = w(tt()), de = T(() => e.value.userOptions.useCursorPointer);
|
|
78
|
+
function gl(t = 100, a = 0.8, l = {}) {
|
|
79
|
+
const { meanX: s = 0, sdX: o = 1, meanY: n = 0, sdY: i = 1, seed: y } = l;
|
|
80
|
+
let r = (y ?? Math.floor(Math.random() * 2 ** 31)) >>> 0;
|
|
81
|
+
const f = () => (r = r * 1664525 + 1013904223 >>> 0, r / 2 ** 32), A = () => {
|
|
82
|
+
let b = 0, X = 0;
|
|
83
83
|
for (; b === 0; ) b = f();
|
|
84
|
-
for (;
|
|
85
|
-
return Math.sqrt(-2 * Math.log(b)) * Math.cos(2 * Math.PI *
|
|
86
|
-
},
|
|
87
|
-
for (let b = 0; b <
|
|
88
|
-
|
|
89
|
-
const
|
|
90
|
-
const Ve =
|
|
91
|
-
return b.map((ct) => Ie + (Ve ? ct / Ve *
|
|
92
|
-
},
|
|
93
|
-
for (let b =
|
|
94
|
-
const
|
|
95
|
-
[
|
|
84
|
+
for (; X === 0; ) X = f();
|
|
85
|
+
return Math.sqrt(-2 * Math.log(b)) * Math.cos(2 * Math.PI * X);
|
|
86
|
+
}, d = t / 2, m = Array.from({ length: d }, A), E = Array.from({ length: d }, A), _ = (b) => b.reduce((X, Ie) => X + Ie, 0) / b.length, O = _(m), D = _(E);
|
|
87
|
+
for (let b = 0; b < d; b += 1)
|
|
88
|
+
m[b] -= O, E[b] -= D;
|
|
89
|
+
const L = (b, X) => b.reduce((Ie, Ve, ct) => Ie + Ve * X[ct], 0), C = (b) => L(b, b), p = L(E, m) / C(m), P = E.map((b, X) => b - p * m[X]), G = C(m) / d, le = C(P) / d, ce = Math.sqrt((1 - a * a) * G / le), j = m.map((b, X) => a * b + ce * P[X]), pe = m.concat(m.map((b) => -b)), vt = j.concat(j.map((b) => -b)), Be = (b) => Math.sqrt(C(b) / b.length), $e = (b, X, Ie) => {
|
|
90
|
+
const Ve = Be(b);
|
|
91
|
+
return b.map((ct) => Ie + (Ve ? ct / Ve * X : 0));
|
|
92
|
+
}, Me = $e(pe, o, s), ze = $e(vt, i, n);
|
|
93
|
+
for (let b = Me.length - 1; b > 0; b -= 1) {
|
|
94
|
+
const X = Math.floor(f() * (b + 1));
|
|
95
|
+
[Me[b], Me[X]] = [Me[X], Me[b]], [ze[b], ze[X]] = [ze[X], ze[b]];
|
|
96
96
|
}
|
|
97
|
-
return
|
|
97
|
+
return Me.map((b, X) => ({ x: b, y: ze[X] }));
|
|
98
98
|
}
|
|
99
|
-
const
|
|
99
|
+
const ml = T(() => Zt({
|
|
100
100
|
defaultConfig: {
|
|
101
101
|
userOptions: { show: !1 },
|
|
102
102
|
table: { show: !1 },
|
|
@@ -136,22 +136,22 @@ const Aa = ["id"], Sa = ["id"], Ta = {
|
|
|
136
136
|
{
|
|
137
137
|
name: "",
|
|
138
138
|
color: "#999999",
|
|
139
|
-
values:
|
|
139
|
+
values: gl(100, 0.5, { seed: 42 })
|
|
140
140
|
}
|
|
141
141
|
],
|
|
142
|
-
skeletonConfig:
|
|
142
|
+
skeletonConfig: Zt({
|
|
143
143
|
defaultConfig: e.value,
|
|
144
|
-
userConfig:
|
|
144
|
+
userConfig: ml.value
|
|
145
145
|
})
|
|
146
|
-
}), { userOptionsVisible: et, setUserOptionsVisibility: St, keepUserOptionState: Tt } = ma({ config: e.value }), { svgRef: ie } =
|
|
146
|
+
}), { userOptionsVisible: et, setUserOptionsVisibility: St, keepUserOptionState: Tt } = ma({ config: e.value }), { svgRef: ie } = xa({ config: e.value.style.title });
|
|
147
147
|
function tt() {
|
|
148
148
|
const t = ft({
|
|
149
149
|
userConfig: te.config,
|
|
150
|
-
defaultConfig:
|
|
150
|
+
defaultConfig: cl
|
|
151
151
|
}), a = t.theme;
|
|
152
152
|
if (!a) return t;
|
|
153
|
-
if (!
|
|
154
|
-
return
|
|
153
|
+
if (!yl.value(t))
|
|
154
|
+
return dl(t), t;
|
|
155
155
|
const l = ft({
|
|
156
156
|
userConfig: wa[a] || te.config,
|
|
157
157
|
defaultConfig: t
|
|
@@ -161,11 +161,11 @@ const Aa = ["id"], Sa = ["id"], Ta = {
|
|
|
161
161
|
});
|
|
162
162
|
return {
|
|
163
163
|
...s,
|
|
164
|
-
customPalette: s.customPalette.length ? s.customPalette : Jl[a] ||
|
|
164
|
+
customPalette: s.customPalette.length ? s.customPalette : Jl[a] || ge
|
|
165
165
|
};
|
|
166
166
|
}
|
|
167
167
|
Ue(() => te.config, (t) => {
|
|
168
|
-
Ze.value || (e.value = tt()), et.value = !e.value.userOptions.showOnChartHover,
|
|
168
|
+
Ze.value || (e.value = tt()), et.value = !e.value.userOptions.showOnChartHover, Pt(), $t.value += 1, Mt.value += 1, _t.value += 1, q.value.showTable = e.value.table.show, q.value.showTooltip = e.value.style.tooltip.show, Lt.value && e.value.usePerformanceMode && console.warn(`VueUiScatter : You are using performance mode
|
|
169
169
|
|
|
170
170
|
- downsampling is disabled in this mode, all plots are rendered
|
|
171
171
|
|
|
@@ -177,40 +177,40 @@ const Aa = ["id"], Sa = ["id"], Ta = {
|
|
|
177
177
|
}, { deep: !0 }), Ue(() => te.dataset, (t) => {
|
|
178
178
|
Array.isArray(t) && t.length > 0 && (Qe.value = !1);
|
|
179
179
|
}, { deep: !0 });
|
|
180
|
-
const re =
|
|
180
|
+
const re = Gt(null), xe = Gt(null);
|
|
181
181
|
jl(() => {
|
|
182
|
-
Ct.value = !0,
|
|
182
|
+
Ct.value = !0, Pt();
|
|
183
183
|
});
|
|
184
184
|
const Lt = T(() => !!e.value.debug);
|
|
185
|
-
function
|
|
186
|
-
if (
|
|
185
|
+
function Pt() {
|
|
186
|
+
if (Jt(te.dataset) && (dt({
|
|
187
187
|
componentName: "VueUiScatter",
|
|
188
188
|
type: "dataset",
|
|
189
189
|
debug: Lt.value
|
|
190
|
-
}), Qe.value = !0),
|
|
190
|
+
}), Qe.value = !0), Jt(te.dataset) || (Qe.value = e.value.loading), e.value.responsive) {
|
|
191
191
|
const t = va(() => {
|
|
192
192
|
const { width: a, height: l } = ca({
|
|
193
193
|
chart: ne.value,
|
|
194
|
-
title: e.value.style.title.text ?
|
|
195
|
-
legend: e.value.style.legend.show ?
|
|
194
|
+
title: e.value.style.title.text ? xt.value : null,
|
|
195
|
+
legend: e.value.style.legend.show ? bt.value : null,
|
|
196
196
|
source: kt.value,
|
|
197
197
|
noTitle: wt.value
|
|
198
198
|
});
|
|
199
199
|
requestAnimationFrame(() => {
|
|
200
|
-
|
|
200
|
+
Y.value.width = a, Y.value.height = l;
|
|
201
201
|
});
|
|
202
202
|
});
|
|
203
|
-
re.value && (
|
|
203
|
+
re.value && (xe.value && re.value.unobserve(xe.value), re.value.disconnect()), re.value = new ResizeObserver(t), xe.value = ne.value.parentNode, re.value.observe(xe.value);
|
|
204
204
|
}
|
|
205
205
|
}
|
|
206
206
|
Gl(() => {
|
|
207
|
-
re.value && (
|
|
207
|
+
re.value && (xe.value && re.value.unobserve(xe.value), re.value.disconnect());
|
|
208
208
|
});
|
|
209
|
-
const { isPrinting: lt, isImaging: at, generatePdf:
|
|
210
|
-
elementId: `vue-ui-scatter_${
|
|
209
|
+
const { isPrinting: lt, isImaging: at, generatePdf: Bt, generateImage: zt } = fa({
|
|
210
|
+
elementId: `vue-ui-scatter_${N.value}`,
|
|
211
211
|
fileName: e.value.style.title.text || "vue-ui-scatter",
|
|
212
212
|
options: e.value.userOptions.print
|
|
213
|
-
}),
|
|
213
|
+
}), xl = T(() => e.value.userOptions.show && !e.value.style.title.text), It = T(() => Ql(e.value.customPalette)), q = w({
|
|
214
214
|
showTable: e.value.table.show,
|
|
215
215
|
showTooltip: e.value.style.tooltip.show
|
|
216
216
|
});
|
|
@@ -220,22 +220,22 @@ const Aa = ["id"], Sa = ["id"], Ta = {
|
|
|
220
220
|
showTooltip: e.value.style.tooltip.show
|
|
221
221
|
};
|
|
222
222
|
}, { immediate: !0 });
|
|
223
|
-
const
|
|
223
|
+
const Y = w({
|
|
224
224
|
height: e.value.style.layout.height,
|
|
225
225
|
width: e.value.style.layout.width
|
|
226
226
|
}), We = T(() => e.value.style.layout.marginalBars.show ? e.value.style.layout.marginalBars.size + e.value.style.layout.marginalBars.offset : 0), u = T(() => {
|
|
227
227
|
let t = 0, a = 0;
|
|
228
228
|
return He.value && (t = He.value.getBBox().width + 6), Ke.value && (a = Ke.value.getBBox().height + 6), {
|
|
229
229
|
top: e.value.style.layout.padding.top + We.value + e.value.style.layout.dataLabels.yAxis.fontSize * 2,
|
|
230
|
-
right:
|
|
231
|
-
bottom:
|
|
230
|
+
right: Y.value.width - e.value.style.layout.padding.right - We.value - 6,
|
|
231
|
+
bottom: Y.value.height - e.value.style.layout.padding.bottom - a,
|
|
232
232
|
left: e.value.style.layout.padding.left + t,
|
|
233
|
-
height:
|
|
234
|
-
width:
|
|
233
|
+
height: Y.value.height - e.value.style.layout.padding.top - e.value.style.layout.padding.bottom - We.value - a - e.value.style.layout.dataLabels.yAxis.fontSize * 2,
|
|
234
|
+
width: Y.value.width - e.value.style.layout.padding.left - e.value.style.layout.padding.right - We.value - t - 6
|
|
235
235
|
};
|
|
236
|
-
}),
|
|
236
|
+
}), F = T(() => {
|
|
237
237
|
Je.value.forEach((o, n) => {
|
|
238
|
-
|
|
238
|
+
Qt({
|
|
239
239
|
datasetObject: o,
|
|
240
240
|
requiredAttributes: ["values"]
|
|
241
241
|
}).forEach((i) => {
|
|
@@ -245,8 +245,8 @@ const Aa = ["id"], Sa = ["id"], Ta = {
|
|
|
245
245
|
property: i,
|
|
246
246
|
index: n
|
|
247
247
|
});
|
|
248
|
-
}), o.values && o.values.forEach((i,
|
|
249
|
-
|
|
248
|
+
}), o.values && o.values.forEach((i, y) => {
|
|
249
|
+
Qt({
|
|
250
250
|
datasetObject: i,
|
|
251
251
|
requiredAttributes: ["x", "y"]
|
|
252
252
|
}).forEach((r) => {
|
|
@@ -254,18 +254,18 @@ const Aa = ["id"], Sa = ["id"], Ta = {
|
|
|
254
254
|
componentName: "VueUiScatter",
|
|
255
255
|
type: "datasetSerieAttribute",
|
|
256
256
|
property: `values.${r}`,
|
|
257
|
-
index: `${n} - ${
|
|
257
|
+
index: `${n} - ${y}`
|
|
258
258
|
});
|
|
259
259
|
});
|
|
260
260
|
});
|
|
261
261
|
});
|
|
262
262
|
const t = Math.min(...J.value.filter((o) => !I.value.includes(o.id)).flatMap((o) => o.values.map((n) => n.x))), a = Math.max(...J.value.filter((o) => !I.value.includes(o.id)).flatMap((o) => o.values.map((n) => n.x))), l = Math.min(...J.value.filter((o) => !I.value.includes(o.id)).flatMap((o) => o.values.map((n) => n.y))), s = Math.max(...J.value.filter((o) => !I.value.includes(o.id)).flatMap((o) => o.values.map((n) => n.y)));
|
|
263
263
|
return { xMin: t >= 0 ? 0 : t, xMax: a, yMin: l >= 0 ? 0 : l, yMax: s };
|
|
264
|
-
}),
|
|
265
|
-
x: u.value.left + Math.abs(
|
|
266
|
-
y: u.value.bottom - Math.abs(
|
|
264
|
+
}), W = T(() => ({
|
|
265
|
+
x: u.value.left + Math.abs(F.value.xMin) / (F.value.xMax + Math.abs(F.value.xMin)) * u.value.width,
|
|
266
|
+
y: u.value.bottom - Math.abs(F.value.yMin) / (F.value.yMax + Math.abs(F.value.yMin)) * u.value.height
|
|
267
267
|
})), J = T(() => Je.value.map((t, a) => {
|
|
268
|
-
const l = `cluster_${
|
|
268
|
+
const l = `cluster_${N.value}_${a}`;
|
|
269
269
|
return {
|
|
270
270
|
...t,
|
|
271
271
|
values: ea({
|
|
@@ -273,7 +273,7 @@ const Aa = ["id"], Sa = ["id"], Ta = {
|
|
|
273
273
|
threshold: e.value.usePerformanceMode ? t.values.length + 1 : e.value.downsample.threshold
|
|
274
274
|
}),
|
|
275
275
|
id: l,
|
|
276
|
-
color: t.color ? t.color : It.value[a] ||
|
|
276
|
+
color: t.color ? t.color : It.value[a] || ge[a] || ge[a % ge.length],
|
|
277
277
|
opacity: I.value.includes(l) ? 0.5 : 1,
|
|
278
278
|
shape: t.shape ?? "circle",
|
|
279
279
|
segregate: () => Re(l),
|
|
@@ -286,67 +286,67 @@ const Aa = ["id"], Sa = ["id"], Ta = {
|
|
|
286
286
|
fontSize: e.value.style.legend.fontSize,
|
|
287
287
|
paddingBottom: 12,
|
|
288
288
|
fontWeight: e.value.style.legend.bold ? "bold" : ""
|
|
289
|
-
})),
|
|
289
|
+
})), be = T(() => J.value.map((t, a) => ({
|
|
290
290
|
...t,
|
|
291
291
|
plots: t.values.map((l) => ({
|
|
292
|
-
x: u.value.left + (l.x + Math.abs(
|
|
293
|
-
y: u.value.bottom - (l.y + Math.abs(
|
|
292
|
+
x: u.value.left + (l.x + Math.abs(F.value.xMin)) / (F.value.xMax + Math.abs(F.value.xMin)) * u.value.width,
|
|
293
|
+
y: u.value.bottom - (l.y + Math.abs(F.value.yMin)) / (F.value.yMax + Math.abs(F.value.yMin)) * u.value.height,
|
|
294
294
|
v: {
|
|
295
295
|
...l,
|
|
296
296
|
name: l.name || ""
|
|
297
297
|
},
|
|
298
298
|
clusterName: t.name,
|
|
299
299
|
clusterId: t.id,
|
|
300
|
-
color: t.color ? t.color : It.value[a] ||
|
|
301
|
-
id: `plot_${
|
|
300
|
+
color: t.color ? t.color : It.value[a] || ge[a] || ge[a % ge.length],
|
|
301
|
+
id: `plot_${N.value}_${Math.random()}`,
|
|
302
302
|
weight: l.weight ?? e.value.style.layout.plots.radius
|
|
303
303
|
}))
|
|
304
304
|
})).filter((t) => !I.value.includes(t.id))), U = T(() => {
|
|
305
305
|
const a = ({ m: l, b: s, rect: o, verticalX: n = null }) => {
|
|
306
|
-
const { left: i, right:
|
|
307
|
-
Number.isFinite(C) && Number.isFinite(p) &&
|
|
308
|
-
},
|
|
309
|
-
n !== null ? n >= i - 1e-9 && n <=
|
|
310
|
-
const
|
|
311
|
-
for (const C of
|
|
312
|
-
|
|
313
|
-
if (
|
|
314
|
-
let
|
|
315
|
-
for (let C = 0; C <
|
|
316
|
-
for (let p = C + 1; p <
|
|
317
|
-
const
|
|
318
|
-
le >
|
|
306
|
+
const { left: i, right: y, top: r, bottom: f } = o, A = [], d = (C, p) => {
|
|
307
|
+
Number.isFinite(C) && Number.isFinite(p) && A.push({ x: C, y: p });
|
|
308
|
+
}, m = ({ x: C, y: p }) => C >= i - 1e-9 && C <= y + 1e-9 && p >= r - 1e-9 && p <= f + 1e-9;
|
|
309
|
+
n !== null ? n >= i - 1e-9 && n <= y + 1e-9 && (d(n, r), d(n, f)) : Number.isFinite(l) && (d(i, l * i + s), d(y, l * y + s), Math.abs(l) > 1e-9 ? (d((r - s) / l, r), d((f - s) / l, f)) : s >= r - 1e-9 && s <= f + 1e-9 && (d(i, s), d(y, s)));
|
|
310
|
+
const E = A.filter(m), _ = [];
|
|
311
|
+
for (const C of E)
|
|
312
|
+
_.some((p) => Math.abs(p.x - C.x) < 1e-6 && Math.abs(p.y - C.y) < 1e-6) || _.push(C);
|
|
313
|
+
if (_.length < 2) return null;
|
|
314
|
+
let O = _[0], D = _[1], L = 0;
|
|
315
|
+
for (let C = 0; C < _.length; C += 1)
|
|
316
|
+
for (let p = C + 1; p < _.length; p += 1) {
|
|
317
|
+
const P = _[C].x - _[p].x, G = _[C].y - _[p].y, le = P * P + G * G;
|
|
318
|
+
le > L && (L = le, O = _[C], D = _[p]);
|
|
319
319
|
}
|
|
320
|
-
return { x1:
|
|
320
|
+
return { x1: O.x, y1: O.y, x2: D.x, y2: D.y };
|
|
321
321
|
};
|
|
322
|
-
return
|
|
323
|
-
const s = l.plots.length, o = l.plots.reduce((p,
|
|
324
|
-
let i = 0,
|
|
322
|
+
return be.value.map((l) => {
|
|
323
|
+
const s = l.plots.length, o = l.plots.reduce((p, P) => p + P.x, 0) / s, n = l.plots.reduce((p, P) => p + P.y, 0) / s;
|
|
324
|
+
let i = 0, y = 0;
|
|
325
325
|
for (const p of l.plots) {
|
|
326
|
-
const
|
|
327
|
-
i +=
|
|
326
|
+
const P = p.x - o, G = p.y - n;
|
|
327
|
+
i += P * G, y += P * P;
|
|
328
328
|
}
|
|
329
|
-
let r, f,
|
|
330
|
-
|
|
331
|
-
let
|
|
332
|
-
|
|
333
|
-
const
|
|
334
|
-
let
|
|
329
|
+
let r, f, A = null;
|
|
330
|
+
y < 1e-9 ? (A = o, r = 1 / 0, f = null) : (r = i / y, f = n - r * o);
|
|
331
|
+
let d, m;
|
|
332
|
+
A !== null ? (d = 1 / 0, m = null) : (d = r, m = f);
|
|
333
|
+
const E = l.plots.every((p) => p.v && typeof p.v.x == "number" && typeof p.v.y == "number");
|
|
334
|
+
let _ = NaN;
|
|
335
335
|
if (s >= 2) {
|
|
336
|
-
let p = 0,
|
|
337
|
-
|
|
338
|
-
let G = 0, le = 0,
|
|
336
|
+
let p = 0, P = 0;
|
|
337
|
+
E ? (p = l.plots.reduce((j, pe) => j + pe.v.x, 0) / s, P = l.plots.reduce((j, pe) => j + pe.v.y, 0) / s) : (p = o, P = -n);
|
|
338
|
+
let G = 0, le = 0, ce = 0;
|
|
339
339
|
for (const j of l.plots) {
|
|
340
|
-
const
|
|
341
|
-
G +=
|
|
340
|
+
const pe = E ? j.v.x : j.x, vt = E ? j.v.y : -j.y, Be = pe - p, $e = vt - P;
|
|
341
|
+
G += Be * $e, le += Be * Be, ce += $e * $e;
|
|
342
342
|
}
|
|
343
|
-
if (le >= 1e-9 &&
|
|
344
|
-
const j = G / Math.sqrt(le *
|
|
345
|
-
|
|
343
|
+
if (le >= 1e-9 && ce >= 1e-9) {
|
|
344
|
+
const j = G / Math.sqrt(le * ce);
|
|
345
|
+
_ = Math.max(-1, Math.min(1, j));
|
|
346
346
|
}
|
|
347
347
|
}
|
|
348
|
-
const
|
|
349
|
-
if (!
|
|
348
|
+
const O = a({ m: d, b: m, rect: u.value, verticalX: A });
|
|
349
|
+
if (!O)
|
|
350
350
|
return {
|
|
351
351
|
...l,
|
|
352
352
|
correlation: null,
|
|
@@ -358,19 +358,19 @@ const Aa = ["id"], Sa = ["id"], Ta = {
|
|
|
358
358
|
color: ht(l.color)
|
|
359
359
|
}))
|
|
360
360
|
};
|
|
361
|
-
const
|
|
361
|
+
const D = (O.x1 + O.x2) / 2, L = (O.y1 + O.y2) / 2, C = { x: D, y: L };
|
|
362
362
|
return {
|
|
363
363
|
...l,
|
|
364
364
|
color: ht(l.color),
|
|
365
365
|
correlation: {
|
|
366
|
-
...
|
|
367
|
-
coefficient:
|
|
366
|
+
...O,
|
|
367
|
+
coefficient: _
|
|
368
368
|
},
|
|
369
369
|
label: C,
|
|
370
370
|
plots: l.plots.map((p) => {
|
|
371
|
-
let
|
|
372
|
-
|
|
373
|
-
const le = p.x -
|
|
371
|
+
let P, G;
|
|
372
|
+
A !== null ? (P = A, G = p.y) : Math.abs(d) < 1e-9 ? (P = p.x, G = m) : (P = (p.x + d * p.y - d * m) / (1 + d * d), G = (d * p.x + d * d * p.y + m) / (1 + d * d));
|
|
373
|
+
const le = p.x - P, ce = p.y - G, j = Math.sqrt(le * le + ce * ce);
|
|
374
374
|
return {
|
|
375
375
|
...p,
|
|
376
376
|
deviation: j,
|
|
@@ -381,35 +381,35 @@ const Aa = ["id"], Sa = ["id"], Ta = {
|
|
|
381
381
|
};
|
|
382
382
|
});
|
|
383
383
|
}), Ot = T(() => Math.max(...U.value.flatMap((t) => t.plots.map((a) => Math.abs(a.deviation)))));
|
|
384
|
-
function
|
|
384
|
+
function kl() {
|
|
385
385
|
return U.value;
|
|
386
386
|
}
|
|
387
387
|
function Dt(t, a) {
|
|
388
|
-
const l = Array.isArray(t) ? t.flatMap((
|
|
388
|
+
const l = Array.isArray(t) ? t.flatMap((L) => L.plots.map((C) => ({
|
|
389
389
|
x: C.x,
|
|
390
390
|
y: C.y
|
|
391
|
-
}))) : t.plots.map((
|
|
392
|
-
x:
|
|
393
|
-
y:
|
|
391
|
+
}))) : t.plots.map((L) => ({
|
|
392
|
+
x: L.x,
|
|
393
|
+
y: L.y
|
|
394
394
|
}));
|
|
395
395
|
let s = 1 / 0, o = -1 / 0, n = 1 / 0, i = -1 / 0;
|
|
396
|
-
l.forEach(({ x:
|
|
397
|
-
s = Math.min(s,
|
|
396
|
+
l.forEach(({ x: L, y: C }) => {
|
|
397
|
+
s = Math.min(s, L), o = Math.max(o, L), n = Math.min(n, C), i = Math.max(i, C);
|
|
398
398
|
});
|
|
399
|
-
const
|
|
400
|
-
l.forEach(({ x:
|
|
401
|
-
const p = Math.floor((
|
|
402
|
-
|
|
399
|
+
const y = o - s, r = i - n, f = y / a, A = r / a, d = Array(a).fill(0), m = Array(a).fill(0);
|
|
400
|
+
l.forEach(({ x: L, y: C }) => {
|
|
401
|
+
const p = Math.floor((L - s) / f), P = Math.floor((C - n) / A);
|
|
402
|
+
d[p] || (d[p] = 0), m[P] || (m[P] = 0), d[p] += 1, m[P] += 1;
|
|
403
403
|
});
|
|
404
|
-
const
|
|
405
|
-
for (let
|
|
406
|
-
|
|
407
|
-
const
|
|
408
|
-
return { x:
|
|
404
|
+
const E = [], _ = [];
|
|
405
|
+
for (let L = 0; L < a; L += 1)
|
|
406
|
+
E.push(s + (L + 0.5) * f), _.push(n + (L + 0.5) * A);
|
|
407
|
+
const O = Math.max(...d), D = Math.max(...m);
|
|
408
|
+
return { x: d, y: m, avgX: E, avgY: _, maxX: O, maxY: D };
|
|
409
409
|
}
|
|
410
|
-
const $ = T(() => e.value.style.layout.marginalBars.tranches), S = T(() => Dt(
|
|
410
|
+
const $ = T(() => e.value.style.layout.marginalBars.tranches), S = T(() => Dt(be.value, $.value)), wl = T(() => {
|
|
411
411
|
const t = u.value.top - e.value.style.layout.marginalBars.offset, a = u.value.right + e.value.style.layout.marginalBars.offset;
|
|
412
|
-
return
|
|
412
|
+
return be.value.map((l) => {
|
|
413
413
|
const s = Dt(l, $.value);
|
|
414
414
|
return {
|
|
415
415
|
coords: s,
|
|
@@ -425,17 +425,17 @@ const Aa = ["id"], Sa = ["id"], Ta = {
|
|
|
425
425
|
id: l.id
|
|
426
426
|
};
|
|
427
427
|
});
|
|
428
|
-
}),
|
|
428
|
+
}), R = w(void 0), g = w(null), ot = w(null);
|
|
429
429
|
function st() {
|
|
430
|
-
De.value = !1,
|
|
430
|
+
De.value = !1, R.value = void 0, g.value = null, Te.value = null, me.value = null;
|
|
431
431
|
}
|
|
432
|
-
function
|
|
432
|
+
function $l(t) {
|
|
433
433
|
if (!ie.value || !t) return;
|
|
434
434
|
const a = ra(t.x, t.y, ie.value);
|
|
435
435
|
a && (At.value = a);
|
|
436
436
|
}
|
|
437
|
-
function
|
|
438
|
-
|
|
437
|
+
function he(t, a, l = "pointer", s = null) {
|
|
438
|
+
R.value = t.id, g.value = t, Se.value = l, Te.value = s, me.value = t.id;
|
|
439
439
|
let o = "";
|
|
440
440
|
e.value.events.datapointEnter && e.value.events.datapointEnter({ datapoint: t, seriesIndex: a }), ot.value = {
|
|
441
441
|
datapoint: t,
|
|
@@ -478,16 +478,16 @@ const Aa = ["id"], Sa = ["id"], Ta = {
|
|
|
478
478
|
v: t.deviation,
|
|
479
479
|
r: e.value.style.layout.plots.deviation.roundingValue
|
|
480
480
|
})}</b>`, o += "</div>", Ge.value = `<div>${o}</div>`), De.value = !0, l === "keyboard" && yt(() => {
|
|
481
|
-
|
|
481
|
+
$l(t);
|
|
482
482
|
});
|
|
483
483
|
}
|
|
484
484
|
function Xe(t, a) {
|
|
485
|
-
e.value.events.datapointLeave && e.value.events.datapointLeave({ datapoint: t, seriesIndex: a }), !(
|
|
485
|
+
e.value.events.datapointLeave && e.value.events.datapointLeave({ datapoint: t, seriesIndex: a }), !(Se.value === "keyboard" && me.value === t?.id) && (De.value = !1, R.value = void 0, g.value = null);
|
|
486
486
|
}
|
|
487
487
|
function Ye(t, a) {
|
|
488
488
|
e.value.events.datapointClick && e.value.events.datapointClick({ datapoint: t, seriesIndex: a });
|
|
489
489
|
}
|
|
490
|
-
function
|
|
490
|
+
function Ml() {
|
|
491
491
|
I.value.length ? I.value = [] : J.value.forEach((t) => {
|
|
492
492
|
I.value.push(t.id);
|
|
493
493
|
});
|
|
@@ -501,11 +501,11 @@ const Aa = ["id"], Sa = ["id"], Ta = {
|
|
|
501
501
|
const a = J.value.find((l) => l.name === t);
|
|
502
502
|
return a || (e.value.debug && console.warn(`VueUiScatter - Series name not found "${t}"`), null);
|
|
503
503
|
}
|
|
504
|
-
function
|
|
504
|
+
function _l(t) {
|
|
505
505
|
const a = Et(t);
|
|
506
506
|
a !== null && I.value.includes(a.id) && Re(a.id);
|
|
507
507
|
}
|
|
508
|
-
function
|
|
508
|
+
function Cl(t) {
|
|
509
509
|
const a = Et(t);
|
|
510
510
|
a !== null && (I.value.includes(a.id) || Re(a.id));
|
|
511
511
|
}
|
|
@@ -515,13 +515,13 @@ const Aa = ["id"], Sa = ["id"], Ta = {
|
|
|
515
515
|
n.name,
|
|
516
516
|
n.correlation.coefficient,
|
|
517
517
|
n.plots.length,
|
|
518
|
-
n.plots.map((i) => i.v.x).reduce((i,
|
|
519
|
-
n.plots.map((i) => i.v.y).reduce((i,
|
|
518
|
+
n.plots.map((i) => i.v.x).reduce((i, y) => i + y, 0) / n.plots.length,
|
|
519
|
+
n.plots.map((i) => i.v.y).reduce((i, y) => i + y, 0) / n.plots.length
|
|
520
520
|
]), s = [[e.value.style.title.text], [e.value.style.title.subtitle.text], [[""], [""], [""]]].concat([a]).concat(l), o = sa(s);
|
|
521
521
|
t ? t(o) : na({ csvContent: o, title: e.value.style.title.text || "vue-ui-heatmap" });
|
|
522
522
|
});
|
|
523
523
|
}
|
|
524
|
-
const
|
|
524
|
+
const ke = T(() => {
|
|
525
525
|
const t = [
|
|
526
526
|
e.value.table.translations.series,
|
|
527
527
|
e.value.table.translations.correlationCoefficient,
|
|
@@ -552,9 +552,9 @@ const Aa = ["id"], Sa = ["id"], Ta = {
|
|
|
552
552
|
breakpoint: e.value.table.responsiveBreakpoint
|
|
553
553
|
};
|
|
554
554
|
return { head: t, body: a, a11yBody: l, config: s, colNames: t };
|
|
555
|
-
}),
|
|
555
|
+
}), fe = w(!1);
|
|
556
556
|
function Nt(t) {
|
|
557
|
-
|
|
557
|
+
fe.value = t, mt.value += 1;
|
|
558
558
|
}
|
|
559
559
|
function Ft() {
|
|
560
560
|
q.value.showTable = !q.value.showTable;
|
|
@@ -566,9 +566,9 @@ const Aa = ["id"], Sa = ["id"], Ta = {
|
|
|
566
566
|
function ut() {
|
|
567
567
|
Le.value = !Le.value;
|
|
568
568
|
}
|
|
569
|
-
async function
|
|
569
|
+
async function Al({ scale: t = 2 } = {}) {
|
|
570
570
|
if (!ne.value) return;
|
|
571
|
-
const { width: a, height: l } = ne.value.getBoundingClientRect(), s = a / l, { imageUri: o, base64: n } = await
|
|
571
|
+
const { width: a, height: l } = ne.value.getBoundingClientRect(), s = a / l, { imageUri: o, base64: n } = await ba({ domElement: ne.value, base64: !0, img: !0, scale: t });
|
|
572
572
|
return {
|
|
573
573
|
imageUri: o,
|
|
574
574
|
base64: n,
|
|
@@ -578,14 +578,14 @@ const Aa = ["id"], Sa = ["id"], Ta = {
|
|
|
578
578
|
aspectRatio: s
|
|
579
579
|
};
|
|
580
580
|
}
|
|
581
|
-
function Al(t) {
|
|
582
|
-
Me.value = t, e.value.style.layout.marginalBars.highlighter.highlightBothAxes && (_e.value = S.value.y.length - 2 - t);
|
|
583
|
-
}
|
|
584
581
|
function Sl(t) {
|
|
585
|
-
_e.value = t, e.value.style.layout.marginalBars.highlighter.highlightBothAxes && (
|
|
582
|
+
_e.value = t, e.value.style.layout.marginalBars.highlighter.highlightBothAxes && (Ce.value = S.value.y.length - 2 - t);
|
|
583
|
+
}
|
|
584
|
+
function Tl(t) {
|
|
585
|
+
Ce.value = t, e.value.style.layout.marginalBars.highlighter.highlightBothAxes && (_e.value = t);
|
|
586
586
|
}
|
|
587
587
|
function it() {
|
|
588
|
-
|
|
588
|
+
_e.value = null, Ce.value = null;
|
|
589
589
|
}
|
|
590
590
|
const Xt = {
|
|
591
591
|
circle: 1,
|
|
@@ -596,35 +596,35 @@ const Aa = ["id"], Sa = ["id"], Ta = {
|
|
|
596
596
|
pentagon: 1.3,
|
|
597
597
|
hexagon: 1.3
|
|
598
598
|
}, M = (t) => t.toFixed(3);
|
|
599
|
-
function
|
|
599
|
+
function Ll({ shape: t = "circle", cx: a, cy: l, r: s }) {
|
|
600
600
|
if (!e.value.usePerformanceMode) return "";
|
|
601
601
|
const o = Xt[t] * s;
|
|
602
602
|
switch (t) {
|
|
603
603
|
case "circle": {
|
|
604
|
-
const n = M(a - o), i = M(l),
|
|
605
|
-
return `M ${n} ${i} A ${r} ${r} 0 1 0 ${
|
|
604
|
+
const n = M(a - o), i = M(l), y = M(a + o), r = M(o);
|
|
605
|
+
return `M ${n} ${i} A ${r} ${r} 0 1 0 ${y} ${i} A ${r} ${r} 0 1 0 ${n} ${i} Z`;
|
|
606
606
|
}
|
|
607
607
|
case "square": {
|
|
608
|
-
const n = M(a - o), i = M(l - o),
|
|
609
|
-
return `M ${n} ${i} L ${
|
|
608
|
+
const n = M(a - o), i = M(l - o), y = M(a + o), r = M(l + o);
|
|
609
|
+
return `M ${n} ${i} L ${y} ${i} L ${y} ${r} L ${n} ${r} Z`;
|
|
610
610
|
}
|
|
611
611
|
case "diamond": {
|
|
612
612
|
const n = M(a), i = M(l);
|
|
613
613
|
return `M ${n} ${M(l - o)} L ${M(a + o)} ${i} L ${n} ${M(l + o)} L ${M(a - o)} ${i} Z`;
|
|
614
614
|
}
|
|
615
615
|
case "triangle": {
|
|
616
|
-
const n = o * Math.sqrt(3), i = a,
|
|
617
|
-
return `M ${M(i)} ${M(
|
|
616
|
+
const n = o * Math.sqrt(3), i = a, y = l - 2 / 3 * n, r = a - o, f = l + 1 / 3 * n, A = a + o, d = f;
|
|
617
|
+
return `M ${M(i)} ${M(y)} L ${M(r)} ${M(f)} L ${M(A)} ${M(d)} Z`;
|
|
618
618
|
}
|
|
619
619
|
case "star": {
|
|
620
|
-
const n = o, i = o * 0.5,
|
|
620
|
+
const n = o, i = o * 0.5, y = [];
|
|
621
621
|
for (let f = 0; f < 10; f += 1) {
|
|
622
|
-
const
|
|
623
|
-
|
|
622
|
+
const A = (-90 + f * 36) * Math.PI / 180, d = f % 2 === 0 ? n : i;
|
|
623
|
+
y.push([a + d * Math.cos(A), l + d * Math.sin(A)]);
|
|
624
624
|
}
|
|
625
|
-
let r = `M ${M(
|
|
626
|
-
for (let f = 1; f <
|
|
627
|
-
r += ` L ${M(
|
|
625
|
+
let r = `M ${M(y[0][0])} ${M(y[0][1])}`;
|
|
626
|
+
for (let f = 1; f < y.length; f += 1)
|
|
627
|
+
r += ` L ${M(y[f][0])} ${M(y[f][1])}`;
|
|
628
628
|
return r + " Z";
|
|
629
629
|
}
|
|
630
630
|
case "pentagon": {
|
|
@@ -633,9 +633,9 @@ const Aa = ["id"], Sa = ["id"], Ta = {
|
|
|
633
633
|
const f = (-90 + r * 72) * Math.PI / 180;
|
|
634
634
|
i.push([a + o * Math.cos(f), l + o * Math.sin(f)]);
|
|
635
635
|
}
|
|
636
|
-
let
|
|
637
|
-
for (let r = 1; r < 5; r += 1)
|
|
638
|
-
return
|
|
636
|
+
let y = `M ${M(i[0][0])} ${M(i[0][1])}`;
|
|
637
|
+
for (let r = 1; r < 5; r += 1) y += ` L ${M(i[r][0])} ${M(i[r][1])}`;
|
|
638
|
+
return y + " Z";
|
|
639
639
|
}
|
|
640
640
|
case "hexagon": {
|
|
641
641
|
const i = [];
|
|
@@ -643,40 +643,40 @@ const Aa = ["id"], Sa = ["id"], Ta = {
|
|
|
643
643
|
const f = (-60 + r * 60) * Math.PI / 180;
|
|
644
644
|
i.push([a + o * Math.cos(f), l + o * Math.sin(f)]);
|
|
645
645
|
}
|
|
646
|
-
let
|
|
647
|
-
for (let r = 1; r < 6; r += 1)
|
|
648
|
-
return
|
|
646
|
+
let y = `M ${M(i[0][0])} ${M(i[0][1])}`;
|
|
647
|
+
for (let r = 1; r < 6; r += 1) y += ` L ${M(i[r][0])} ${M(i[r][1])}`;
|
|
648
|
+
return y + " Z";
|
|
649
649
|
}
|
|
650
650
|
default: {
|
|
651
|
-
const n = M(a - o), i = M(l),
|
|
652
|
-
return `M ${n} ${i} A ${r} ${r} 0 1 0 ${
|
|
651
|
+
const n = M(a - o), i = M(l), y = M(a + o), r = M(o);
|
|
652
|
+
return `M ${n} ${i} A ${r} ${r} 0 1 0 ${y} ${i} A ${r} ${r} 0 1 0 ${n} ${i} Z`;
|
|
653
653
|
}
|
|
654
654
|
}
|
|
655
655
|
}
|
|
656
|
-
const
|
|
656
|
+
const Pl = T(() => {
|
|
657
657
|
if (!e.value.usePerformanceMode) return [""];
|
|
658
|
-
const { left: t, right: a, top: l, bottom: s } = u.value, o = Math.max(1, (a - t) * (s - l)), n = (
|
|
659
|
-
return U.value.map((
|
|
660
|
-
const
|
|
661
|
-
for (const
|
|
662
|
-
const
|
|
663
|
-
if (
|
|
664
|
-
const
|
|
665
|
-
|
|
666
|
-
shape:
|
|
667
|
-
cx:
|
|
668
|
-
cy:
|
|
669
|
-
r:
|
|
658
|
+
const { left: t, right: a, top: l, bottom: s } = u.value, o = Math.max(1, (a - t) * (s - l)), n = (d) => d / o * 1e4, i = 2.5, y = 1e3, r = e.value.style.layout.plots.stroke, f = e.value.style.layout.plots.strokeWidth, A = e.value.style.layout.plots.opacity;
|
|
659
|
+
return U.value.map((d) => {
|
|
660
|
+
const m = [];
|
|
661
|
+
for (const _ of d.plots) {
|
|
662
|
+
const O = _.x, D = _.y;
|
|
663
|
+
if (O < t || O > a || D < l || D > s) continue;
|
|
664
|
+
const L = Math.max(e.value.style.layout.plots.radius, _.weight);
|
|
665
|
+
m.push(Ll({
|
|
666
|
+
shape: d.shape || "circle",
|
|
667
|
+
cx: O,
|
|
668
|
+
cy: D,
|
|
669
|
+
r: L
|
|
670
670
|
}));
|
|
671
671
|
}
|
|
672
|
-
if (!
|
|
673
|
-
const
|
|
672
|
+
if (!m.length) return null;
|
|
673
|
+
const E = n(d.plots.length) > i || d.plots.length > y;
|
|
674
674
|
return {
|
|
675
|
-
id:
|
|
676
|
-
d:
|
|
677
|
-
fill: je(
|
|
678
|
-
stroke:
|
|
679
|
-
strokeWidth:
|
|
675
|
+
id: d.id,
|
|
676
|
+
d: m.join(""),
|
|
677
|
+
fill: je(d.color, A * 100),
|
|
678
|
+
stroke: E ? "none" : r,
|
|
679
|
+
strokeWidth: E ? 0 : f,
|
|
680
680
|
strokeOpacity: 1
|
|
681
681
|
};
|
|
682
682
|
}).filter(Boolean);
|
|
@@ -689,49 +689,49 @@ const Aa = ["id"], Sa = ["id"], Ta = {
|
|
|
689
689
|
l.x = t.clientX, l.y = t.clientY;
|
|
690
690
|
const s = a.getScreenCTM();
|
|
691
691
|
if (!s) return;
|
|
692
|
-
const o = s.inverse(), n = l.matrixTransform(o), i = 8,
|
|
693
|
-
let r = null, f = 1 / 0,
|
|
694
|
-
if (U.value.forEach((
|
|
695
|
-
|
|
696
|
-
const
|
|
697
|
-
|
|
692
|
+
const o = s.inverse(), n = l.matrixTransform(o), i = 8, y = i * i;
|
|
693
|
+
let r = null, f = 1 / 0, A = -1;
|
|
694
|
+
if (U.value.forEach((d, m) => {
|
|
695
|
+
d.plots.forEach((E) => {
|
|
696
|
+
const _ = E.x - n.x, O = E.y - n.y, D = _ * _ + O * O;
|
|
697
|
+
D <= y && D < f && (f = D, r = E, A = m);
|
|
698
698
|
});
|
|
699
699
|
}), r)
|
|
700
|
-
|
|
701
|
-
else if (
|
|
702
|
-
const
|
|
703
|
-
|
|
700
|
+
R.value !== r.id && (R.value = r.id, he(r, A, "pointer", ve.value.get(r.id) ?? null));
|
|
701
|
+
else if (R.value) {
|
|
702
|
+
const d = g.value;
|
|
703
|
+
R.value = void 0, Xe(d, A);
|
|
704
704
|
}
|
|
705
705
|
} : () => null;
|
|
706
706
|
}
|
|
707
707
|
const Yt = Bl();
|
|
708
|
-
function
|
|
709
|
-
if (
|
|
708
|
+
function zl() {
|
|
709
|
+
if (R.value) {
|
|
710
710
|
const t = g.value;
|
|
711
|
-
|
|
711
|
+
R.value = void 0, Xe(t, null);
|
|
712
712
|
}
|
|
713
713
|
}
|
|
714
|
-
function
|
|
714
|
+
function Il(t) {
|
|
715
715
|
const a = g.value;
|
|
716
716
|
if (a) {
|
|
717
717
|
const l = U.value.findIndex((s) => s.id === a.clusterId);
|
|
718
718
|
Ye(a, l >= 0 ? l : 0);
|
|
719
719
|
}
|
|
720
720
|
}
|
|
721
|
-
const
|
|
721
|
+
const Pe = T(() => {
|
|
722
722
|
const t = e.value.table.useDialog && !e.value.table.show, a = q.value.showTable;
|
|
723
723
|
return {
|
|
724
|
-
component: t ?
|
|
724
|
+
component: t ? vl : sl,
|
|
725
725
|
title: `${e.value.style.title.text}${e.value.style.title.subtitle.text ? `: ${e.value.style.title.subtitle.text}` : ""}`,
|
|
726
726
|
props: t ? {
|
|
727
727
|
backgroundColor: e.value.table.th.backgroundColor,
|
|
728
728
|
color: e.value.table.th.color,
|
|
729
729
|
headerColor: e.value.table.th.color,
|
|
730
730
|
headerBg: e.value.table.th.backgroundColor,
|
|
731
|
-
isFullscreen:
|
|
731
|
+
isFullscreen: fe.value,
|
|
732
732
|
fullscreenParent: ne.value,
|
|
733
733
|
forcedWidth: Math.min(800, window.innerWidth * 0.8),
|
|
734
|
-
isCursorPointer:
|
|
734
|
+
isCursorPointer: de.value
|
|
735
735
|
} : {
|
|
736
736
|
hideDetails: !0,
|
|
737
737
|
config: {
|
|
@@ -750,31 +750,31 @@ const Aa = ["id"], Sa = ["id"], Ta = {
|
|
|
750
750
|
};
|
|
751
751
|
});
|
|
752
752
|
Ue(() => q.value.showTable, (t) => {
|
|
753
|
-
e.value.table.show || (t && e.value.table.useDialog &&
|
|
753
|
+
e.value.table.show || (t && e.value.table.useDialog && Ae.value ? Ae.value.open() : "close" in Ae.value && Ae.value.close());
|
|
754
754
|
});
|
|
755
755
|
function Rt() {
|
|
756
756
|
q.value.showTable = !1, qe.value && qe.value.setTableIconState(!1);
|
|
757
757
|
}
|
|
758
|
-
const
|
|
758
|
+
const Ol = T(() => e.value.style.backgroundColor), Dl = T(() => e.value.style.legend), El = T(() => e.value.style.title), { exportSvg: Nl, getSvg: Fl } = pa({
|
|
759
759
|
svg: ie,
|
|
760
|
-
title:
|
|
761
|
-
legend:
|
|
760
|
+
title: El,
|
|
761
|
+
legend: Dl,
|
|
762
762
|
legendItems: J,
|
|
763
|
-
backgroundColor:
|
|
763
|
+
backgroundColor: Ol
|
|
764
764
|
});
|
|
765
765
|
async function Vt({ isCb: t }) {
|
|
766
766
|
Ne.value = !0, await yt();
|
|
767
767
|
try {
|
|
768
768
|
if (t) {
|
|
769
|
-
const { blob: a, url: l, text: s, dataUrl: o } = await
|
|
769
|
+
const { blob: a, url: l, text: s, dataUrl: o } = await Fl();
|
|
770
770
|
await Promise.resolve(e.value.userOptions.callbacks.svg({ blob: a, url: l, text: s, dataUrl: o }));
|
|
771
771
|
} else
|
|
772
|
-
await Promise.resolve(
|
|
772
|
+
await Promise.resolve(Nl());
|
|
773
773
|
} finally {
|
|
774
774
|
Ne.value = !1;
|
|
775
775
|
}
|
|
776
776
|
}
|
|
777
|
-
function
|
|
777
|
+
function Wl(t) {
|
|
778
778
|
if (t?.stage === "start") {
|
|
779
779
|
Ee.value = !0;
|
|
780
780
|
return;
|
|
@@ -786,68 +786,81 @@ const Aa = ["id"], Sa = ["id"], Ta = {
|
|
|
786
786
|
zt();
|
|
787
787
|
}
|
|
788
788
|
async function Ut() {
|
|
789
|
-
if (
|
|
789
|
+
if (hl("copyAlt", {
|
|
790
790
|
config: e.value,
|
|
791
|
-
dataset:
|
|
791
|
+
dataset: be.value
|
|
792
792
|
}), !e.value.userOptions.callbacks.altCopy) {
|
|
793
793
|
console.warn("Vue Data UI - A callback must be set for `altCopy` in userOptions.");
|
|
794
794
|
return;
|
|
795
795
|
}
|
|
796
796
|
await Promise.resolve(e.value.userOptions.callbacks.altCopy({
|
|
797
797
|
config: e.value,
|
|
798
|
-
dataset:
|
|
798
|
+
dataset: be.value
|
|
799
799
|
}));
|
|
800
800
|
}
|
|
801
|
-
function
|
|
802
|
-
const l =
|
|
801
|
+
function jt(t, a) {
|
|
802
|
+
const l = we.value.filter((n) => n.id === t.id ? !1 : a === "right" ? n.x > t.x : a === "left" ? n.x < t.x : a === "down" ? n.y > t.y : a === "up" ? n.y < t.y : !1);
|
|
803
803
|
if (!l.length) return null;
|
|
804
804
|
let s = null, o = 1 / 0;
|
|
805
805
|
return l.forEach((n) => {
|
|
806
|
-
const i = n.x - t.x,
|
|
806
|
+
const i = n.x - t.x, y = n.y - t.y;
|
|
807
807
|
let r = 0, f = 0;
|
|
808
|
-
a === "right" || a === "left" ? (r = Math.abs(i), f = Math.abs(
|
|
809
|
-
const
|
|
810
|
-
|
|
808
|
+
a === "right" || a === "left" ? (r = Math.abs(i), f = Math.abs(y)) : (r = Math.abs(y), f = Math.abs(i));
|
|
809
|
+
const A = r * 1e3 + f;
|
|
810
|
+
A < o && (s = n, o = A);
|
|
811
811
|
}), s;
|
|
812
812
|
}
|
|
813
813
|
function Xl() {
|
|
814
|
-
|
|
814
|
+
Te.value = null, me.value = null, Fe.value = !0;
|
|
815
815
|
}
|
|
816
816
|
function Yl() {
|
|
817
|
-
st(),
|
|
817
|
+
st(), Se.value = "pointer", Fe.value = !1;
|
|
818
818
|
}
|
|
819
819
|
function Rl(t) {
|
|
820
|
-
if (!ie.value || Le.value || document.activeElement !== ie.value || !
|
|
820
|
+
if (!ie.value || Le.value || document.activeElement !== ie.value || !we.value.length) return;
|
|
821
821
|
const a = t.key === "ArrowLeft", l = t.key === "ArrowRight", s = t.key === "ArrowUp", o = t.key === "ArrowDown", n = t.key === "Enter" || t.key === " ", i = t.key === "Escape";
|
|
822
822
|
if (!a && !l && !s && !o && !n && !i) return;
|
|
823
823
|
if (t.preventDefault(), t.stopPropagation(), i) {
|
|
824
|
-
st(),
|
|
824
|
+
st(), Se.value = "pointer";
|
|
825
825
|
return;
|
|
826
826
|
}
|
|
827
827
|
if (n) {
|
|
828
|
-
if (
|
|
829
|
-
const
|
|
830
|
-
if (!
|
|
831
|
-
Ye(
|
|
828
|
+
if (Te.value === null) return;
|
|
829
|
+
const m = we.value[Te.value];
|
|
830
|
+
if (!m) return;
|
|
831
|
+
Ye(m, m.seriesIndex);
|
|
832
832
|
return;
|
|
833
833
|
}
|
|
834
|
-
|
|
835
|
-
|
|
836
|
-
|
|
837
|
-
|
|
838
|
-
|
|
834
|
+
let y = null;
|
|
835
|
+
if (l && (y = "right"), a && (y = "left"), o && (y = "down"), s && (y = "up"), me.value === null) {
|
|
836
|
+
const m = g.value;
|
|
837
|
+
if (m && m.id) {
|
|
838
|
+
const D = jt(m, y);
|
|
839
|
+
if (!D) {
|
|
840
|
+
const C = ve.value.get(m.id);
|
|
841
|
+
if (C === void 0) return;
|
|
842
|
+
he(m, m.seriesIndex, "keyboard", C);
|
|
843
|
+
return;
|
|
844
|
+
}
|
|
845
|
+
const L = ve.value.get(D.id);
|
|
846
|
+
if (L === void 0) return;
|
|
847
|
+
he(D, D.seriesIndex, "keyboard", L);
|
|
848
|
+
return;
|
|
849
|
+
}
|
|
850
|
+
const _ = we.value[0];
|
|
851
|
+
if (!_) return;
|
|
852
|
+
const O = ve.value.get(_.id) ?? 0;
|
|
853
|
+
he(_, _.seriesIndex, "keyboard", O);
|
|
839
854
|
return;
|
|
840
855
|
}
|
|
841
|
-
const
|
|
842
|
-
if (
|
|
843
|
-
const
|
|
844
|
-
if (!
|
|
845
|
-
|
|
846
|
-
|
|
847
|
-
const
|
|
848
|
-
|
|
849
|
-
const y = ke.value.get(_.id);
|
|
850
|
-
y !== void 0 && Te(_, _.seriesIndex, "keyboard", y);
|
|
856
|
+
const r = ve.value.get(me.value);
|
|
857
|
+
if (r === void 0) return;
|
|
858
|
+
const f = we.value[r];
|
|
859
|
+
if (!f) return;
|
|
860
|
+
const A = jt(f, y);
|
|
861
|
+
if (!A) return;
|
|
862
|
+
const d = ve.value.get(A.id);
|
|
863
|
+
d !== void 0 && he(A, A.seriesIndex, "keyboard", d);
|
|
851
864
|
}
|
|
852
865
|
const Vl = T(() => {
|
|
853
866
|
if (!g.value)
|
|
@@ -879,102 +892,102 @@ const Aa = ["id"], Sa = ["id"], Ta = {
|
|
|
879
892
|
`${e.value.style.layout.dataLabels.xAxis.name}: ${a}`,
|
|
880
893
|
`${e.value.style.layout.dataLabels.yAxis.name}: ${l}`
|
|
881
894
|
].filter(Boolean).join(". ");
|
|
882
|
-
}),
|
|
895
|
+
}), we = T(() => U.value.flatMap((t, a) => t.plots.map((l) => ({
|
|
883
896
|
...l,
|
|
884
897
|
seriesIndex: a,
|
|
885
898
|
seriesId: t.id,
|
|
886
899
|
seriesName: t.name,
|
|
887
900
|
shape: t.shape || "circle",
|
|
888
901
|
color: t.color
|
|
889
|
-
})))),
|
|
902
|
+
})))), ve = T(() => {
|
|
890
903
|
const t = /* @__PURE__ */ new Map();
|
|
891
|
-
return
|
|
904
|
+
return we.value.forEach((a, l) => {
|
|
892
905
|
t.set(a.id, l);
|
|
893
906
|
}), t;
|
|
894
907
|
}), rt = T(() => {
|
|
895
|
-
const t =
|
|
908
|
+
const t = ke.value?.colNames ?? [], a = ke.value?.a11yBody ?? [];
|
|
896
909
|
return { headers: t, rows: a };
|
|
897
910
|
});
|
|
898
|
-
return
|
|
899
|
-
getData:
|
|
900
|
-
getImage:
|
|
901
|
-
generatePdf:
|
|
911
|
+
return tl({
|
|
912
|
+
getData: kl,
|
|
913
|
+
getImage: Al,
|
|
914
|
+
generatePdf: Bt,
|
|
902
915
|
generateCsv: nt,
|
|
903
916
|
generateImage: zt,
|
|
904
917
|
generateSvg: Vt,
|
|
905
|
-
hideSeries:
|
|
906
|
-
showSeries:
|
|
918
|
+
hideSeries: Cl,
|
|
919
|
+
showSeries: _l,
|
|
907
920
|
toggleTable: Ft,
|
|
908
921
|
toggleTooltip: Wt,
|
|
909
922
|
toggleAnnotator: ut,
|
|
910
923
|
toggleFullscreen: Nt,
|
|
911
924
|
copyAlt: Ut
|
|
912
925
|
}), (t, a) => (v(), c("div", {
|
|
913
|
-
class:
|
|
926
|
+
class: qt(`vue-data-ui-component vue-ui-scatter ${fe.value ? "vue-data-ui-wrapper-fullscreen" : ""} ${e.value.useCssAnimation ? "" : "vue-ui-dna"}`),
|
|
914
927
|
ref_key: "scatterChart",
|
|
915
928
|
ref: ne,
|
|
916
|
-
id: `vue-ui-scatter_${
|
|
929
|
+
id: `vue-ui-scatter_${N.value}`,
|
|
917
930
|
style: ue(`font-family:${e.value.style.fontFamily};width:100%; text-align:center;background:${e.value.style.backgroundColor};${e.value.responsive ? "height: 100%" : ""}`),
|
|
918
|
-
onMouseenter: a[5] || (a[5] = () =>
|
|
931
|
+
onMouseenter: a[5] || (a[5] = () => h(St)(!0)),
|
|
919
932
|
onMouseleave: a[6] || (a[6] = () => {
|
|
920
|
-
|
|
933
|
+
h(St)(!1), Fe.value || st();
|
|
921
934
|
})
|
|
922
935
|
}, [
|
|
923
936
|
k("div", {
|
|
924
|
-
id: `chart-instructions-${
|
|
937
|
+
id: `chart-instructions-${N.value}`,
|
|
925
938
|
class: "sr-only"
|
|
926
939
|
}, [
|
|
927
940
|
k("p", null, V(e.value.a11y.translations.keyboardNavigation), 1)
|
|
928
941
|
], 8, Sa),
|
|
929
|
-
q.value.showTooltip ?
|
|
942
|
+
q.value.showTooltip ? x("", !0) : (v(), c("div", Ta, V(Vl.value), 1)),
|
|
930
943
|
rt.value?.rows?.length ? (v(), ae(Ma, {
|
|
931
944
|
key: 1,
|
|
932
|
-
uid:
|
|
945
|
+
uid: N.value,
|
|
933
946
|
head: rt.value.headers,
|
|
934
947
|
body: rt.value.rows,
|
|
935
948
|
notice: e.value.a11y.translations.tableAvailable,
|
|
936
949
|
caption: e.value.a11y.translations.tableCaption
|
|
937
|
-
}, null, 8, ["uid", "head", "body", "notice", "caption"])) :
|
|
938
|
-
e.value.userOptions.buttons.annotator ? (v(), ae(
|
|
950
|
+
}, null, 8, ["uid", "head", "body", "notice", "caption"])) : x("", !0),
|
|
951
|
+
e.value.userOptions.buttons.annotator ? (v(), ae(h(ul), {
|
|
939
952
|
key: 2,
|
|
940
|
-
svgRef:
|
|
953
|
+
svgRef: h(ie),
|
|
941
954
|
backgroundColor: e.value.style.backgroundColor,
|
|
942
955
|
color: e.value.style.color,
|
|
943
956
|
active: Le.value,
|
|
944
|
-
isCursorPointer:
|
|
957
|
+
isCursorPointer: de.value,
|
|
945
958
|
onClose: ut
|
|
946
959
|
}, {
|
|
947
960
|
"annotator-action-close": B(() => [
|
|
948
|
-
|
|
961
|
+
z(t.$slots, "annotator-action-close", {}, void 0, !0)
|
|
949
962
|
]),
|
|
950
963
|
"annotator-action-color": B(({ color: l }) => [
|
|
951
|
-
|
|
964
|
+
z(t.$slots, "annotator-action-color", H(K({ color: l })), void 0, !0)
|
|
952
965
|
]),
|
|
953
966
|
"annotator-action-draw": B(({ mode: l }) => [
|
|
954
|
-
|
|
967
|
+
z(t.$slots, "annotator-action-draw", H(K({ mode: l })), void 0, !0)
|
|
955
968
|
]),
|
|
956
969
|
"annotator-action-undo": B(({ disabled: l }) => [
|
|
957
|
-
|
|
970
|
+
z(t.$slots, "annotator-action-undo", H(K({ disabled: l })), void 0, !0)
|
|
958
971
|
]),
|
|
959
972
|
"annotator-action-redo": B(({ disabled: l }) => [
|
|
960
|
-
|
|
973
|
+
z(t.$slots, "annotator-action-redo", H(K({ disabled: l })), void 0, !0)
|
|
961
974
|
]),
|
|
962
975
|
"annotator-action-delete": B(({ disabled: l }) => [
|
|
963
|
-
|
|
976
|
+
z(t.$slots, "annotator-action-delete", H(K({ disabled: l })), void 0, !0)
|
|
964
977
|
]),
|
|
965
978
|
_: 3
|
|
966
|
-
}, 8, ["svgRef", "backgroundColor", "color", "active", "isCursorPointer"])) :
|
|
967
|
-
|
|
979
|
+
}, 8, ["svgRef", "backgroundColor", "color", "active", "isCursorPointer"])) : x("", !0),
|
|
980
|
+
xl.value ? (v(), c("div", {
|
|
968
981
|
key: 3,
|
|
969
982
|
ref_key: "noTitle",
|
|
970
983
|
ref: wt,
|
|
971
984
|
class: "vue-data-ui-no-title-space",
|
|
972
985
|
style: "height:36px; width: 100%;background:transparent"
|
|
973
|
-
}, null, 512)) :
|
|
986
|
+
}, null, 512)) : x("", !0),
|
|
974
987
|
e.value.style.title.text ? (v(), c("div", {
|
|
975
988
|
key: 4,
|
|
976
989
|
ref_key: "chartTitle",
|
|
977
|
-
ref:
|
|
990
|
+
ref: xt,
|
|
978
991
|
style: "width:100%;background:transparent"
|
|
979
992
|
}, [
|
|
980
993
|
(v(), ae(ka, {
|
|
@@ -990,19 +1003,19 @@ const Aa = ["id"], Sa = ["id"], Ta = {
|
|
|
990
1003
|
}
|
|
991
1004
|
}
|
|
992
1005
|
}, null, 8, ["config"]))
|
|
993
|
-
], 512)) :
|
|
1006
|
+
], 512)) : x("", !0),
|
|
994
1007
|
k("div", {
|
|
995
|
-
id: `legend-top-${
|
|
1008
|
+
id: `legend-top-${N.value}`
|
|
996
1009
|
}, null, 8, La),
|
|
997
|
-
e.value.userOptions.show && gt.value && (
|
|
1010
|
+
e.value.userOptions.show && gt.value && (h(Tt) || h(et)) ? (v(), ae(h(il), {
|
|
998
1011
|
ref_key: "userOptionsRef",
|
|
999
1012
|
ref: qe,
|
|
1000
1013
|
key: `user_options_${mt.value}`,
|
|
1001
1014
|
backgroundColor: e.value.style.backgroundColor,
|
|
1002
1015
|
color: e.value.style.color,
|
|
1003
|
-
isImaging:
|
|
1004
|
-
isPrinting:
|
|
1005
|
-
uid:
|
|
1016
|
+
isImaging: h(at),
|
|
1017
|
+
isPrinting: h(lt),
|
|
1018
|
+
uid: N.value,
|
|
1006
1019
|
hasTooltip: e.value.userOptions.buttons.tooltip && e.value.style.tooltip.show,
|
|
1007
1020
|
hasPdf: e.value.userOptions.buttons.pdf,
|
|
1008
1021
|
hasImg: e.value.userOptions.buttons.img,
|
|
@@ -1012,7 +1025,7 @@ const Aa = ["id"], Sa = ["id"], Ta = {
|
|
|
1012
1025
|
hasFullscreen: e.value.userOptions.buttons.fullscreen,
|
|
1013
1026
|
hasAltCopy: e.value.userOptions.buttons.altCopy,
|
|
1014
1027
|
isTooltip: q.value.showTooltip,
|
|
1015
|
-
isFullscreen:
|
|
1028
|
+
isFullscreen: fe.value,
|
|
1016
1029
|
titles: { ...e.value.userOptions.buttonTitles },
|
|
1017
1030
|
chartElement: ne.value,
|
|
1018
1031
|
position: e.value.userOptions.position,
|
|
@@ -1021,99 +1034,99 @@ const Aa = ["id"], Sa = ["id"], Ta = {
|
|
|
1021
1034
|
callbacks: e.value.userOptions.callbacks,
|
|
1022
1035
|
printScale: e.value.userOptions.print.scale,
|
|
1023
1036
|
tableDialog: e.value.table.useDialog,
|
|
1024
|
-
isCursorPointer:
|
|
1037
|
+
isCursorPointer: de.value,
|
|
1025
1038
|
onToggleFullscreen: Nt,
|
|
1026
|
-
onGeneratePdf:
|
|
1039
|
+
onGeneratePdf: h(Bt),
|
|
1027
1040
|
onGenerateCsv: nt,
|
|
1028
|
-
onGenerateImage:
|
|
1041
|
+
onGenerateImage: Wl,
|
|
1029
1042
|
onGenerateSvg: Vt,
|
|
1030
1043
|
onToggleTable: Ft,
|
|
1031
1044
|
onToggleTooltip: Wt,
|
|
1032
1045
|
onToggleAnnotator: ut,
|
|
1033
1046
|
onCopyAlt: Ut,
|
|
1034
1047
|
style: ue({
|
|
1035
|
-
visibility:
|
|
1048
|
+
visibility: h(Tt) ? h(et) ? "visible" : "hidden" : "visible"
|
|
1036
1049
|
})
|
|
1037
|
-
},
|
|
1050
|
+
}, Ht({ _: 2 }, [
|
|
1038
1051
|
t.$slots.menuIcon ? {
|
|
1039
1052
|
name: "menuIcon",
|
|
1040
1053
|
fn: B(({ isOpen: l, color: s }) => [
|
|
1041
|
-
|
|
1054
|
+
z(t.$slots, "menuIcon", H(K({ isOpen: l, color: s })), void 0, !0)
|
|
1042
1055
|
]),
|
|
1043
1056
|
key: "0"
|
|
1044
1057
|
} : void 0,
|
|
1045
1058
|
t.$slots.optionTooltip ? {
|
|
1046
1059
|
name: "optionTooltip",
|
|
1047
1060
|
fn: B(() => [
|
|
1048
|
-
|
|
1061
|
+
z(t.$slots, "optionTooltip", {}, void 0, !0)
|
|
1049
1062
|
]),
|
|
1050
1063
|
key: "1"
|
|
1051
1064
|
} : void 0,
|
|
1052
1065
|
t.$slots.optionPdf ? {
|
|
1053
1066
|
name: "optionPdf",
|
|
1054
1067
|
fn: B(() => [
|
|
1055
|
-
|
|
1068
|
+
z(t.$slots, "optionPdf", {}, void 0, !0)
|
|
1056
1069
|
]),
|
|
1057
1070
|
key: "2"
|
|
1058
1071
|
} : void 0,
|
|
1059
1072
|
t.$slots.optionCsv ? {
|
|
1060
1073
|
name: "optionCsv",
|
|
1061
1074
|
fn: B(() => [
|
|
1062
|
-
|
|
1075
|
+
z(t.$slots, "optionCsv", {}, void 0, !0)
|
|
1063
1076
|
]),
|
|
1064
1077
|
key: "3"
|
|
1065
1078
|
} : void 0,
|
|
1066
1079
|
t.$slots.optionImg ? {
|
|
1067
1080
|
name: "optionImg",
|
|
1068
1081
|
fn: B(() => [
|
|
1069
|
-
|
|
1082
|
+
z(t.$slots, "optionImg", {}, void 0, !0)
|
|
1070
1083
|
]),
|
|
1071
1084
|
key: "4"
|
|
1072
1085
|
} : void 0,
|
|
1073
1086
|
t.$slots.optionSvg ? {
|
|
1074
1087
|
name: "optionSvg",
|
|
1075
1088
|
fn: B(() => [
|
|
1076
|
-
|
|
1089
|
+
z(t.$slots, "optionSvg", {}, void 0, !0)
|
|
1077
1090
|
]),
|
|
1078
1091
|
key: "5"
|
|
1079
1092
|
} : void 0,
|
|
1080
1093
|
t.$slots.optionTable ? {
|
|
1081
1094
|
name: "optionTable",
|
|
1082
1095
|
fn: B(() => [
|
|
1083
|
-
|
|
1096
|
+
z(t.$slots, "optionTable", {}, void 0, !0)
|
|
1084
1097
|
]),
|
|
1085
1098
|
key: "6"
|
|
1086
1099
|
} : void 0,
|
|
1087
1100
|
t.$slots.optionFullscreen ? {
|
|
1088
1101
|
name: "optionFullscreen",
|
|
1089
1102
|
fn: B(({ toggleFullscreen: l, isFullscreen: s }) => [
|
|
1090
|
-
|
|
1103
|
+
z(t.$slots, "optionFullscreen", H(K({ toggleFullscreen: l, isFullscreen: s })), void 0, !0)
|
|
1091
1104
|
]),
|
|
1092
1105
|
key: "7"
|
|
1093
1106
|
} : void 0,
|
|
1094
1107
|
t.$slots.optionAnnotator ? {
|
|
1095
1108
|
name: "optionAnnotator",
|
|
1096
1109
|
fn: B(({ toggleAnnotator: l, isAnnotator: s }) => [
|
|
1097
|
-
|
|
1110
|
+
z(t.$slots, "optionAnnotator", H(K({ toggleAnnotator: l, isAnnotator: s })), void 0, !0)
|
|
1098
1111
|
]),
|
|
1099
1112
|
key: "8"
|
|
1100
1113
|
} : void 0,
|
|
1101
1114
|
t.$slots.optionAltCopy ? {
|
|
1102
1115
|
name: "optionAltCopy",
|
|
1103
1116
|
fn: B(({ altCopy: l }) => [
|
|
1104
|
-
|
|
1117
|
+
z(t.$slots, "optionAltCopy", H(K({ altCopy: l })), void 0, !0)
|
|
1105
1118
|
]),
|
|
1106
1119
|
key: "9"
|
|
1107
1120
|
} : void 0
|
|
1108
|
-
]), 1032, ["backgroundColor", "color", "isImaging", "isPrinting", "uid", "hasTooltip", "hasPdf", "hasImg", "hasSvg", "hasXls", "hasTable", "hasFullscreen", "hasAltCopy", "isTooltip", "isFullscreen", "titles", "chartElement", "position", "hasAnnotator", "isAnnotation", "callbacks", "printScale", "tableDialog", "isCursorPointer", "onGeneratePdf", "style"])) :
|
|
1109
|
-
k("div",
|
|
1121
|
+
]), 1032, ["backgroundColor", "color", "isImaging", "isPrinting", "uid", "hasTooltip", "hasPdf", "hasImg", "hasSvg", "hasXls", "hasTable", "hasFullscreen", "hasAltCopy", "isTooltip", "isFullscreen", "titles", "chartElement", "position", "hasAnnotator", "isAnnotation", "callbacks", "printScale", "tableDialog", "isCursorPointer", "onGeneratePdf", "style"])) : x("", !0),
|
|
1122
|
+
k("div", Pa, [
|
|
1110
1123
|
(v(), c("svg", {
|
|
1111
1124
|
ref_key: "svgRef",
|
|
1112
1125
|
ref: ie,
|
|
1113
|
-
xmlns:
|
|
1114
|
-
"aria-describedby": `chart-instructions-${
|
|
1115
|
-
class:
|
|
1116
|
-
viewBox: `0 0 ${
|
|
1126
|
+
xmlns: h(aa),
|
|
1127
|
+
"aria-describedby": `chart-instructions-${N.value}`,
|
|
1128
|
+
class: qt({ "vue-data-ui-fullscreen--on": fe.value, "vue-data-ui-fulscreen--off": !fe.value, animated: e.value.useCssAnimation }),
|
|
1129
|
+
viewBox: `0 0 ${Y.value.width <= 0 ? 10 : Y.value.width} ${Y.value.height <= 0 ? 10 : Y.value.height}`,
|
|
1117
1130
|
style: ue(`max-width:100%;overflow:visible;background:transparent;color:${e.value.style.color}`),
|
|
1118
1131
|
onMouseleave: it,
|
|
1119
1132
|
tabindex: "0",
|
|
@@ -1121,23 +1134,23 @@ const Aa = ["id"], Sa = ["id"], Ta = {
|
|
|
1121
1134
|
onBlur: Yl,
|
|
1122
1135
|
onKeydown: Rl
|
|
1123
1136
|
}, [
|
|
1124
|
-
Oe(
|
|
1137
|
+
Oe(h(rl)),
|
|
1125
1138
|
t.$slots["chart-background"] ? (v(), c("foreignObject", {
|
|
1126
1139
|
key: 0,
|
|
1127
1140
|
x: 0,
|
|
1128
1141
|
y: 0,
|
|
1129
|
-
width:
|
|
1130
|
-
height:
|
|
1142
|
+
width: Y.value.width <= 0 ? 10 : Y.value.width,
|
|
1143
|
+
height: Y.value.height <= 0 ? 10 : Y.value.height,
|
|
1131
1144
|
style: {
|
|
1132
1145
|
pointerEvents: "none"
|
|
1133
1146
|
}
|
|
1134
1147
|
}, [
|
|
1135
|
-
|
|
1136
|
-
], 8, za)) :
|
|
1148
|
+
z(t.$slots, "chart-background", {}, void 0, !0)
|
|
1149
|
+
], 8, za)) : x("", !0),
|
|
1137
1150
|
e.value.style.layout.axis.show ? (v(), c("g", Ia, [
|
|
1138
1151
|
k("line", {
|
|
1139
|
-
x1:
|
|
1140
|
-
x2:
|
|
1152
|
+
x1: W.value.x,
|
|
1153
|
+
x2: W.value.x,
|
|
1141
1154
|
y1: u.value.top,
|
|
1142
1155
|
y2: u.value.bottom,
|
|
1143
1156
|
stroke: e.value.style.layout.axis.stroke,
|
|
@@ -1147,17 +1160,17 @@ const Aa = ["id"], Sa = ["id"], Ta = {
|
|
|
1147
1160
|
k("line", {
|
|
1148
1161
|
x1: u.value.left,
|
|
1149
1162
|
x2: u.value.right,
|
|
1150
|
-
y1:
|
|
1151
|
-
y2:
|
|
1163
|
+
y1: W.value.y,
|
|
1164
|
+
y2: W.value.y,
|
|
1152
1165
|
stroke: e.value.style.layout.axis.stroke,
|
|
1153
1166
|
"stroke-width": e.value.style.layout.axis.strokeWidth,
|
|
1154
1167
|
"stroke-linecap": "round"
|
|
1155
1168
|
}, null, 8, Da)
|
|
1156
|
-
])) :
|
|
1169
|
+
])) : x("", !0),
|
|
1157
1170
|
e.value.style.layout.marginalBars.show ? (v(), c("g", Ea, [
|
|
1158
1171
|
k("defs", null, [
|
|
1159
1172
|
k("linearGradient", {
|
|
1160
|
-
id: `marginal_x_${
|
|
1173
|
+
id: `marginal_x_${N.value}`,
|
|
1161
1174
|
x1: "0%",
|
|
1162
1175
|
y1: "0%",
|
|
1163
1176
|
x2: "0%",
|
|
@@ -1173,7 +1186,7 @@ const Aa = ["id"], Sa = ["id"], Ta = {
|
|
|
1173
1186
|
}, null, 8, Wa)
|
|
1174
1187
|
], 8, Na),
|
|
1175
1188
|
k("linearGradient", {
|
|
1176
|
-
id: `marginal_y_${
|
|
1189
|
+
id: `marginal_y_${N.value}`,
|
|
1177
1190
|
x1: "0%",
|
|
1178
1191
|
x2: "100%",
|
|
1179
1192
|
y1: "0%",
|
|
@@ -1196,12 +1209,12 @@ const Aa = ["id"], Sa = ["id"], Ta = {
|
|
|
1196
1209
|
y: u.value.top - e.value.style.layout.marginalBars.offset - l / S.value.maxX * e.value.style.layout.marginalBars.size,
|
|
1197
1210
|
width: u.value.width / $.value <= 0 ? 1e-4 : u.value.width / $.value,
|
|
1198
1211
|
height: l / S.value.maxX * e.value.style.layout.marginalBars.size <= 0 ? 1e-4 : l / S.value.maxX * e.value.style.layout.marginalBars.size,
|
|
1199
|
-
fill: e.value.style.layout.marginalBars.useGradient ? `url(#marginal_x_${
|
|
1212
|
+
fill: e.value.style.layout.marginalBars.useGradient ? `url(#marginal_x_${N.value})` : e.value.style.layout.marginalBars.fill,
|
|
1200
1213
|
style: ue([`opacity:${e.value.style.layout.marginalBars.opacity}`, { "pointer-events": "none" }]),
|
|
1201
1214
|
stroke: e.value.style.backgroundColor,
|
|
1202
1215
|
"stroke-width": e.value.style.layout.marginalBars.strokeWidth,
|
|
1203
1216
|
rx: e.value.style.layout.marginalBars.borderRadius
|
|
1204
|
-
}, null, 12, Va)) :
|
|
1217
|
+
}, null, 12, Va)) : x("", !0),
|
|
1205
1218
|
S.value.avgX[s] ? (v(), c("rect", {
|
|
1206
1219
|
key: 1,
|
|
1207
1220
|
x: S.value.avgX[s] - u.value.width / $.value / 2,
|
|
@@ -1209,10 +1222,10 @@ const Aa = ["id"], Sa = ["id"], Ta = {
|
|
|
1209
1222
|
width: u.value.width / $.value <= 0 ? 1e-4 : u.value.width / $.value,
|
|
1210
1223
|
height: Math.max(0.1, e.value.style.layout.marginalBars.size),
|
|
1211
1224
|
fill: "transparent",
|
|
1212
|
-
onMouseenter: (o) =>
|
|
1225
|
+
onMouseenter: (o) => Sl(s),
|
|
1213
1226
|
onMouseleave: a[0] || (a[0] = (o) => it())
|
|
1214
|
-
}, null, 40, Ua)) :
|
|
1215
|
-
S.value.avgX[s] &&
|
|
1227
|
+
}, null, 40, Ua)) : x("", !0),
|
|
1228
|
+
S.value.avgX[s] && _e.value != null && _e.value === s ? (v(), c("g", ja, [
|
|
1216
1229
|
k("rect", {
|
|
1217
1230
|
x: S.value.avgX[s] - u.value.width / $.value / 2,
|
|
1218
1231
|
y: u.value.top,
|
|
@@ -1241,7 +1254,7 @@ const Aa = ["id"], Sa = ["id"], Ta = {
|
|
|
1241
1254
|
"stroke-width": e.value.style.layout.marginalBars.highlighter.strokeWidth,
|
|
1242
1255
|
style: { transition: "none !important", animation: "none !important" }
|
|
1243
1256
|
}, null, 8, Ha)
|
|
1244
|
-
])) :
|
|
1257
|
+
])) : x("", !0)
|
|
1245
1258
|
]))), 256)),
|
|
1246
1259
|
(v(!0), c(Q, null, oe(S.value.y, (l, s) => (v(), c("g", null, [
|
|
1247
1260
|
l && S.value.avgY[s] ? (v(), c("rect", {
|
|
@@ -1250,12 +1263,12 @@ const Aa = ["id"], Sa = ["id"], Ta = {
|
|
|
1250
1263
|
y: S.value.avgY[s] - u.value.height / $.value / 2,
|
|
1251
1264
|
height: u.value.height / $.value <= 0 ? 1e-4 : u.value.height / $.value,
|
|
1252
1265
|
width: l / S.value.maxY * e.value.style.layout.marginalBars.size <= 0 ? 1e-4 : l / S.value.maxY * e.value.style.layout.marginalBars.size,
|
|
1253
|
-
fill: e.value.style.layout.marginalBars.useGradient ? `url(#marginal_y_${
|
|
1266
|
+
fill: e.value.style.layout.marginalBars.useGradient ? `url(#marginal_y_${N.value})` : e.value.style.layout.marginalBars.fill,
|
|
1254
1267
|
style: ue([`opacity:${e.value.style.layout.marginalBars.opacity}`, { "pointer-events": "none" }]),
|
|
1255
1268
|
stroke: e.value.style.backgroundColor,
|
|
1256
1269
|
"stroke-width": e.value.style.layout.marginalBars.strokeWidth,
|
|
1257
1270
|
rx: e.value.style.layout.marginalBars.borderRadius
|
|
1258
|
-
}, null, 12, Ka)) :
|
|
1271
|
+
}, null, 12, Ka)) : x("", !0),
|
|
1259
1272
|
S.value.avgY[s] ? (v(), c("rect", {
|
|
1260
1273
|
key: 1,
|
|
1261
1274
|
x: u.value.right + e.value.style.layout.marginalBars.offset,
|
|
@@ -1263,10 +1276,10 @@ const Aa = ["id"], Sa = ["id"], Ta = {
|
|
|
1263
1276
|
width: Math.max(0.1, e.value.style.layout.marginalBars.size),
|
|
1264
1277
|
height: u.value.height / $.value <= 0 ? 1e-4 : u.value.height / $.value,
|
|
1265
1278
|
fill: "transparent",
|
|
1266
|
-
onMouseenter: (o) =>
|
|
1279
|
+
onMouseenter: (o) => Tl(s),
|
|
1267
1280
|
onMouseleave: a[1] || (a[1] = (o) => it())
|
|
1268
|
-
}, null, 40, Za)) :
|
|
1269
|
-
S.value.avgY[s] &&
|
|
1281
|
+
}, null, 40, Za)) : x("", !0),
|
|
1282
|
+
S.value.avgY[s] && Ce.value != null && Ce.value === s ? (v(), c("g", Ja, [
|
|
1270
1283
|
k("rect", {
|
|
1271
1284
|
x: u.value.left,
|
|
1272
1285
|
y: S.value.avgY[s] - u.value.height / $.value / 2,
|
|
@@ -1277,7 +1290,7 @@ const Aa = ["id"], Sa = ["id"], Ta = {
|
|
|
1277
1290
|
}, null, 8, Qa),
|
|
1278
1291
|
k("line", {
|
|
1279
1292
|
x1: u.value.left,
|
|
1280
|
-
x2:
|
|
1293
|
+
x2: Y.value.width,
|
|
1281
1294
|
y1: S.value.avgY[s] - u.value.height / $.value / 2,
|
|
1282
1295
|
y2: S.value.avgY[s] - u.value.height / $.value / 2,
|
|
1283
1296
|
stroke: e.value.style.layout.marginalBars.highlighter.stroke,
|
|
@@ -1287,7 +1300,7 @@ const Aa = ["id"], Sa = ["id"], Ta = {
|
|
|
1287
1300
|
}, null, 8, eo),
|
|
1288
1301
|
k("line", {
|
|
1289
1302
|
x1: u.value.left,
|
|
1290
|
-
x2:
|
|
1303
|
+
x2: Y.value.width,
|
|
1291
1304
|
y1: S.value.avgY[s] - u.value.height / $.value / 2 + (u.value.height / $.value <= 0 ? 1e-4 : u.value.height / $.value),
|
|
1292
1305
|
y2: S.value.avgY[s] - u.value.height / $.value / 2 + (u.value.height / $.value <= 0 ? 1e-4 : u.value.height / $.value),
|
|
1293
1306
|
stroke: e.value.style.layout.marginalBars.highlighter.stroke,
|
|
@@ -1295,11 +1308,11 @@ const Aa = ["id"], Sa = ["id"], Ta = {
|
|
|
1295
1308
|
"stroke-width": e.value.style.layout.marginalBars.highlighter.strokeWidth,
|
|
1296
1309
|
style: { transition: "none !important", animation: "none !important" }
|
|
1297
1310
|
}, null, 8, to)
|
|
1298
|
-
])) :
|
|
1311
|
+
])) : x("", !0)
|
|
1299
1312
|
]))), 256)),
|
|
1300
1313
|
e.value.style.layout.marginalBars.showLines ? (v(), c("g", lo, [
|
|
1301
|
-
(v(!0), c(Q, null, oe(
|
|
1302
|
-
I.value.includes(l.id) ?
|
|
1314
|
+
(v(!0), c(Q, null, oe(wl.value, (l) => (v(), c(Q, null, [
|
|
1315
|
+
I.value.includes(l.id) ? x("", !0) : (v(), c("path", {
|
|
1303
1316
|
key: 0,
|
|
1304
1317
|
d: `M ${l.dX}`,
|
|
1305
1318
|
stroke: e.value.style.backgroundColor,
|
|
@@ -1308,7 +1321,7 @@ const Aa = ["id"], Sa = ["id"], Ta = {
|
|
|
1308
1321
|
"stroke-linejoin": "round",
|
|
1309
1322
|
fill: "none"
|
|
1310
1323
|
}, null, 8, ao)),
|
|
1311
|
-
I.value.includes(l.id) ?
|
|
1324
|
+
I.value.includes(l.id) ? x("", !0) : (v(), c("path", {
|
|
1312
1325
|
key: 1,
|
|
1313
1326
|
d: `M ${l.dX}`,
|
|
1314
1327
|
stroke: l.color,
|
|
@@ -1317,7 +1330,7 @@ const Aa = ["id"], Sa = ["id"], Ta = {
|
|
|
1317
1330
|
"stroke-linejoin": "round",
|
|
1318
1331
|
fill: "none"
|
|
1319
1332
|
}, null, 8, oo)),
|
|
1320
|
-
I.value.includes(l.id) ?
|
|
1333
|
+
I.value.includes(l.id) ? x("", !0) : (v(), c("path", {
|
|
1321
1334
|
key: 2,
|
|
1322
1335
|
d: `M ${l.dY}`,
|
|
1323
1336
|
stroke: e.value.style.backgroundColor,
|
|
@@ -1326,7 +1339,7 @@ const Aa = ["id"], Sa = ["id"], Ta = {
|
|
|
1326
1339
|
"stroke-linejoin": "round",
|
|
1327
1340
|
fill: "none"
|
|
1328
1341
|
}, null, 8, so)),
|
|
1329
|
-
I.value.includes(l.id) ?
|
|
1342
|
+
I.value.includes(l.id) ? x("", !0) : (v(), c("path", {
|
|
1330
1343
|
key: 3,
|
|
1331
1344
|
d: `M ${l.dY}`,
|
|
1332
1345
|
stroke: l.color,
|
|
@@ -1336,46 +1349,46 @@ const Aa = ["id"], Sa = ["id"], Ta = {
|
|
|
1336
1349
|
fill: "none"
|
|
1337
1350
|
}, null, 8, no))
|
|
1338
1351
|
], 64))), 256))
|
|
1339
|
-
])) :
|
|
1340
|
-
])) :
|
|
1352
|
+
])) : x("", !0)
|
|
1353
|
+
])) : x("", !0),
|
|
1341
1354
|
e.value.style.layout.plots.giftWrap.show ? (v(), c("g", uo, [
|
|
1342
1355
|
(v(!0), c(Q, null, oe(U.value, (l, s) => (v(), c("g", null, [
|
|
1343
1356
|
l.plots.length > 2 ? (v(), c("polygon", {
|
|
1344
1357
|
key: 0,
|
|
1345
|
-
points:
|
|
1346
|
-
fill:
|
|
1358
|
+
points: h(oa)({ series: l.plots }),
|
|
1359
|
+
fill: h(je)(l.color, e.value.style.layout.plots.giftWrap.fillOpacity * 100),
|
|
1347
1360
|
"stroke-width": e.value.style.layout.plots.giftWrap.strokeWidth,
|
|
1348
1361
|
"stroke-dasharray": e.value.style.layout.plots.giftWrap.strokeDasharray,
|
|
1349
1362
|
stroke: l.color,
|
|
1350
1363
|
"stroke-linejoin": "round",
|
|
1351
1364
|
"stroke-linecap": "round"
|
|
1352
|
-
}, null, 8, io)) :
|
|
1365
|
+
}, null, 8, io)) : x("", !0)
|
|
1353
1366
|
]))), 256))
|
|
1354
|
-
])) :
|
|
1355
|
-
e.value.usePerformanceMode ?
|
|
1367
|
+
])) : x("", !0),
|
|
1368
|
+
e.value.usePerformanceMode ? x("", !0) : (v(!0), c(Q, { key: 4 }, oe(U.value, (l, s) => (v(), c("g", null, [
|
|
1356
1369
|
!l.shape || l.shape === "circle" ? (v(), c("g", ro, [
|
|
1357
1370
|
(v(!0), c(Q, null, oe(l.plots, (o, n) => (v(), c("circle", {
|
|
1358
1371
|
cx: o.x,
|
|
1359
1372
|
cy: o.y,
|
|
1360
|
-
r:
|
|
1361
|
-
fill:
|
|
1373
|
+
r: R.value && R.value === o.id ? o.weight * 2 : o.weight,
|
|
1374
|
+
fill: h(je)(l.color, e.value.style.layout.plots.opacity * 100),
|
|
1362
1375
|
stroke: e.value.style.layout.plots.stroke,
|
|
1363
1376
|
"stroke-width": e.value.style.layout.plots.strokeWidth,
|
|
1364
|
-
style: ue(`opacity:${
|
|
1365
|
-
onMouseover: (i) =>
|
|
1377
|
+
style: ue(`opacity:${R.value && R.value === o.id ? 1 : e.value.style.layout.plots.significance.useDistanceOpacity ? 1 - Math.abs(o.deviation) / Ot.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}`),
|
|
1378
|
+
onMouseover: (i) => he(o, s, "pointer", ve.value.get(o.id)),
|
|
1366
1379
|
onMouseleave: (i) => Xe(o, s),
|
|
1367
1380
|
onClick: (i) => Ye(o, s)
|
|
1368
1381
|
}, null, 44, vo))), 256))
|
|
1369
1382
|
])) : (v(), c("g", co, [
|
|
1370
1383
|
(v(!0), c(Q, null, oe(l.plots, (o, n) => (v(), ae(pt, {
|
|
1371
1384
|
plot: { x: o.x, y: o.y },
|
|
1372
|
-
radius:
|
|
1385
|
+
radius: R.value && R.value === o.id ? o.weight * 2 : o.weight,
|
|
1373
1386
|
shape: l.shape,
|
|
1374
|
-
color:
|
|
1387
|
+
color: h(je)(l.color, e.value.style.layout.plots.opacity * 100),
|
|
1375
1388
|
stroke: e.value.style.layout.plots.stroke,
|
|
1376
1389
|
strokeWidth: e.value.style.layout.plots.strokeWidth,
|
|
1377
|
-
style: ue(`opacity:${
|
|
1378
|
-
onMouseover: (i) =>
|
|
1390
|
+
style: ue(`opacity:${R.value && R.value === o.id ? 1 : e.value.style.layout.plots.significance.useDistanceOpacity ? 1 - Math.abs(o.deviation) / Ot.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}`),
|
|
1391
|
+
onMouseover: (i) => he(o, s, "pointer", ve.value.get(o.id)),
|
|
1379
1392
|
onMouseleave: (i) => Xe(o, s),
|
|
1380
1393
|
onClick: (i) => Ye(o, s)
|
|
1381
1394
|
}, null, 8, ["plot", "radius", "shape", "color", "stroke", "strokeWidth", "style", "onMouseover", "onMouseleave", "onClick"]))), 256))
|
|
@@ -1383,9 +1396,9 @@ const Aa = ["id"], Sa = ["id"], Ta = {
|
|
|
1383
1396
|
]))), 256)),
|
|
1384
1397
|
e.value.usePerformanceMode ? (v(), c(Q, { key: 5 }, [
|
|
1385
1398
|
k("g", {
|
|
1386
|
-
"clip-path": `url(#clip_path_${
|
|
1399
|
+
"clip-path": `url(#clip_path_${N.value})`
|
|
1387
1400
|
}, [
|
|
1388
|
-
(v(!0), c(Q, null, oe(
|
|
1401
|
+
(v(!0), c(Q, null, oe(Pl.value, (l) => (v(), c("path", {
|
|
1389
1402
|
key: l.id,
|
|
1390
1403
|
d: l.d,
|
|
1391
1404
|
fill: l.fill,
|
|
@@ -1405,21 +1418,21 @@ const Aa = ["id"], Sa = ["id"], Ta = {
|
|
|
1405
1418
|
stroke: e.value.style.layout.plots.stroke,
|
|
1406
1419
|
strokeWidth: e.value.style.layout.plots.strokeWidth
|
|
1407
1420
|
}, null, 8, ["shape", "color", "plot", "radius", "stroke", "strokeWidth"])
|
|
1408
|
-
])) :
|
|
1421
|
+
])) : x("", !0),
|
|
1409
1422
|
k("rect", {
|
|
1410
1423
|
x: u.value.left,
|
|
1411
1424
|
y: u.value.top,
|
|
1412
1425
|
width: Math.max(1e-4, u.value.width),
|
|
1413
1426
|
height: Math.max(1e-4, u.value.height),
|
|
1414
1427
|
fill: "transparent",
|
|
1415
|
-
onMousemove: a[2] || (a[2] = (...l) =>
|
|
1416
|
-
onMouseleave:
|
|
1417
|
-
onClick:
|
|
1428
|
+
onMousemove: a[2] || (a[2] = (...l) => h(Yt) && h(Yt)(...l)),
|
|
1429
|
+
onMouseleave: zl,
|
|
1430
|
+
onClick: Il
|
|
1418
1431
|
}, null, 40, po)
|
|
1419
|
-
], 64)) :
|
|
1432
|
+
], 64)) : x("", !0),
|
|
1420
1433
|
g.value && e.value.style.layout.plots.selectors.show ? (v(), c("g", go, [
|
|
1421
1434
|
k("line", {
|
|
1422
|
-
x1:
|
|
1435
|
+
x1: W.value.x,
|
|
1423
1436
|
x2: g.value.x,
|
|
1424
1437
|
y1: g.value.y,
|
|
1425
1438
|
y2: g.value.y,
|
|
@@ -1432,52 +1445,52 @@ const Aa = ["id"], Sa = ["id"], Ta = {
|
|
|
1432
1445
|
k("line", {
|
|
1433
1446
|
x1: g.value.x,
|
|
1434
1447
|
x2: g.value.x,
|
|
1435
|
-
y1:
|
|
1448
|
+
y1: W.value.y,
|
|
1436
1449
|
y2: g.value.y,
|
|
1437
1450
|
stroke: e.value.style.layout.plots.selectors.stroke,
|
|
1438
1451
|
"stroke-width": e.value.style.layout.plots.selectors.strokeWidth,
|
|
1439
1452
|
"stroke-dasharray": e.value.style.layout.plots.selectors.strokeDasharray,
|
|
1440
1453
|
"stroke-linecap": "round",
|
|
1441
1454
|
class: "line-pointer"
|
|
1442
|
-
}, null, 8,
|
|
1455
|
+
}, null, 8, xo),
|
|
1443
1456
|
k("text", {
|
|
1444
|
-
x:
|
|
1457
|
+
x: W.value.x + (g.value.x > W.value.x ? -6 : 6),
|
|
1445
1458
|
y: g.value.y + e.value.style.layout.plots.selectors.labels.fontSize / 3,
|
|
1446
1459
|
"font-size": e.value.style.layout.plots.selectors.labels.fontSize,
|
|
1447
1460
|
fill: e.value.style.layout.plots.selectors.labels.color,
|
|
1448
1461
|
"font-weight": e.value.style.layout.plots.selectors.labels.bold ? "bold" : "normal",
|
|
1449
|
-
"text-anchor": g.value.x >
|
|
1450
|
-
}, V(
|
|
1462
|
+
"text-anchor": g.value.x > W.value.x ? "end" : "start"
|
|
1463
|
+
}, V(h(se)(
|
|
1451
1464
|
e.value.style.layout.plots.selectors.labels.y.formatter,
|
|
1452
|
-
|
|
1453
|
-
|
|
1465
|
+
h(Z)(g.value.v.y),
|
|
1466
|
+
h(ee)({
|
|
1454
1467
|
p: e.value.style.layout.plots.selectors.labels.prefix,
|
|
1455
|
-
v:
|
|
1468
|
+
v: h(Z)(g.value.v.y),
|
|
1456
1469
|
s: e.value.style.layout.plots.selectors.labels.suffix,
|
|
1457
1470
|
r: e.value.style.layout.plots.selectors.labels.rounding
|
|
1458
1471
|
}),
|
|
1459
1472
|
{ datapoint: g.value }
|
|
1460
|
-
)), 9,
|
|
1473
|
+
)), 9, bo),
|
|
1461
1474
|
k("text", {
|
|
1462
1475
|
x: g.value.x,
|
|
1463
|
-
y:
|
|
1476
|
+
y: W.value.y + (g.value.y > W.value.y ? -6 : e.value.style.layout.plots.selectors.labels.fontSize + 6),
|
|
1464
1477
|
"font-size": e.value.style.layout.plots.selectors.labels.fontSize,
|
|
1465
1478
|
fill: e.value.style.layout.plots.selectors.labels.color,
|
|
1466
1479
|
"font-weight": e.value.style.layout.plots.selectors.labels.bold ? "bold" : "normal",
|
|
1467
1480
|
"text-anchor": "middle"
|
|
1468
|
-
}, V(
|
|
1481
|
+
}, V(h(se)(
|
|
1469
1482
|
e.value.style.layout.plots.selectors.labels.y.formatter,
|
|
1470
|
-
|
|
1471
|
-
|
|
1483
|
+
h(Z)(g.value.v.x),
|
|
1484
|
+
h(ee)({
|
|
1472
1485
|
p: e.value.style.layout.plots.selectors.labels.prefix,
|
|
1473
|
-
v:
|
|
1486
|
+
v: h(Z)(g.value.v.x),
|
|
1474
1487
|
s: e.value.style.layout.plots.selectors.labels.suffix,
|
|
1475
1488
|
r: e.value.style.layout.plots.selectors.labels.rounding
|
|
1476
1489
|
}),
|
|
1477
1490
|
{ datapoint: g.value }
|
|
1478
1491
|
)), 9, ko),
|
|
1479
1492
|
k("circle", {
|
|
1480
|
-
cx:
|
|
1493
|
+
cx: W.value.x,
|
|
1481
1494
|
cy: g.value.y,
|
|
1482
1495
|
r: e.value.style.layout.plots.selectors.markers.radius,
|
|
1483
1496
|
fill: e.value.style.layout.plots.selectors.markers.fill,
|
|
@@ -1487,7 +1500,7 @@ const Aa = ["id"], Sa = ["id"], Ta = {
|
|
|
1487
1500
|
}, null, 8, wo),
|
|
1488
1501
|
k("circle", {
|
|
1489
1502
|
cx: g.value.x,
|
|
1490
|
-
cy:
|
|
1503
|
+
cy: W.value.y,
|
|
1491
1504
|
r: e.value.style.layout.plots.selectors.markers.radius,
|
|
1492
1505
|
fill: e.value.style.layout.plots.selectors.markers.fill,
|
|
1493
1506
|
stroke: e.value.style.layout.plots.selectors.markers.stroke,
|
|
@@ -1497,20 +1510,20 @@ const Aa = ["id"], Sa = ["id"], Ta = {
|
|
|
1497
1510
|
e.value.style.layout.plots.selectors.labels.showName ? (v(), c("text", {
|
|
1498
1511
|
key: 0,
|
|
1499
1512
|
x: g.value.x,
|
|
1500
|
-
y: g.value.y + (g.value.y <
|
|
1513
|
+
y: g.value.y + (g.value.y < W.value.y ? -e.value.style.layout.plots.selectors.labels.fontSize / 2 : e.value.style.layout.plots.selectors.labels.fontSize),
|
|
1501
1514
|
"font-size": e.value.style.layout.plots.selectors.labels.fontSize,
|
|
1502
1515
|
fill: e.value.style.layout.plots.selectors.labels.color,
|
|
1503
1516
|
"font-weight": e.value.style.layout.plots.selectors.labels.bold ? "bold" : "normal",
|
|
1504
|
-
"text-anchor": g.value.x < u.value.left + 100 ? "start" : g.value.x > u.value.right - 100 ? "end" : g.value.x >
|
|
1505
|
-
}, V(g.value.v.name), 9, Mo)) :
|
|
1506
|
-
])) :
|
|
1517
|
+
"text-anchor": g.value.x < u.value.left + 100 ? "start" : g.value.x > u.value.right - 100 ? "end" : g.value.x > W.value.x ? "start" : "end"
|
|
1518
|
+
}, V(g.value.v.name), 9, Mo)) : x("", !0)
|
|
1519
|
+
])) : x("", !0),
|
|
1507
1520
|
e.value.style.layout.dataLabels.xAxis.show ? (v(), c("g", {
|
|
1508
1521
|
key: 7,
|
|
1509
1522
|
ref_key: "xAxisLabelLeft",
|
|
1510
1523
|
ref: He
|
|
1511
1524
|
}, [
|
|
1512
1525
|
k("text", {
|
|
1513
|
-
id: `vue-ui-scatter-xAxis-label-${
|
|
1526
|
+
id: `vue-ui-scatter-xAxis-label-${N.value}`,
|
|
1514
1527
|
transform: `translate(${e.value.style.layout.dataLabels.xAxis.fontSize}, ${u.value.top + u.value.height / 2}), rotate(-90)`,
|
|
1515
1528
|
"text-anchor": "middle",
|
|
1516
1529
|
"font-size": e.value.style.layout.dataLabels.xAxis.fontSize,
|
|
@@ -1521,72 +1534,72 @@ const Aa = ["id"], Sa = ["id"], Ta = {
|
|
|
1521
1534
|
"text-anchor": "middle",
|
|
1522
1535
|
"font-size": e.value.style.layout.dataLabels.xAxis.fontSize,
|
|
1523
1536
|
fill: e.value.style.layout.dataLabels.xAxis.color,
|
|
1524
|
-
transform: `translate(${e.value.style.layout.dataLabels.xAxis.name ? e.value.style.layout.dataLabels.xAxis.fontSize * 3 : 0}, ${
|
|
1525
|
-
}, V(
|
|
1537
|
+
transform: `translate(${e.value.style.layout.dataLabels.xAxis.name ? e.value.style.layout.dataLabels.xAxis.fontSize * 3 : 0}, ${W.value.y + e.value.style.layout.dataLabels.xAxis.fontSize / 3}), rotate(-90)`
|
|
1538
|
+
}, V(h(se)(
|
|
1526
1539
|
e.value.style.layout.plots.selectors.labels.x.formatter,
|
|
1527
|
-
|
|
1528
|
-
|
|
1540
|
+
h(Z)(F.value.xMin),
|
|
1541
|
+
h(ee)({
|
|
1529
1542
|
p: e.value.style.layout.plots.selectors.labels.prefix,
|
|
1530
|
-
v:
|
|
1543
|
+
v: h(Z)(F.value.xMin),
|
|
1531
1544
|
s: e.value.style.layout.plots.selectors.labels.suffix,
|
|
1532
1545
|
r: e.value.style.layout.dataLabels.xAxis.rounding
|
|
1533
1546
|
})
|
|
1534
1547
|
)), 9, Co)
|
|
1535
|
-
], 512)) :
|
|
1548
|
+
], 512)) : x("", !0),
|
|
1536
1549
|
e.value.style.layout.dataLabels.xAxis.show ? (v(), c("text", {
|
|
1537
1550
|
key: 8,
|
|
1538
1551
|
ref_key: "xAxisLabelRight",
|
|
1539
|
-
ref:
|
|
1552
|
+
ref: fl,
|
|
1540
1553
|
"text-anchor": "middle",
|
|
1541
|
-
transform: `translate(${u.value.right + e.value.style.layout.padding.right + 6}, ${
|
|
1554
|
+
transform: `translate(${u.value.right + e.value.style.layout.padding.right + 6}, ${W.value.y + e.value.style.layout.dataLabels.xAxis.fontSize / 3}), rotate(-90)`,
|
|
1542
1555
|
"font-size": e.value.style.layout.dataLabels.xAxis.fontSize,
|
|
1543
1556
|
fill: e.value.style.layout.dataLabels.xAxis.color
|
|
1544
|
-
}, V(
|
|
1557
|
+
}, V(h(se)(
|
|
1545
1558
|
e.value.style.layout.plots.selectors.labels.x.formatter,
|
|
1546
|
-
|
|
1547
|
-
|
|
1559
|
+
h(Z)(F.value.xMax),
|
|
1560
|
+
h(ee)({
|
|
1548
1561
|
p: e.value.style.layout.plots.selectors.labels.prefix,
|
|
1549
|
-
v:
|
|
1562
|
+
v: h(Z)(F.value.xMax),
|
|
1550
1563
|
s: e.value.style.layout.plots.selectors.labels.suffix,
|
|
1551
1564
|
r: e.value.style.layout.dataLabels.xAxis.rounding
|
|
1552
1565
|
})
|
|
1553
|
-
)), 9, Ao)) :
|
|
1566
|
+
)), 9, Ao)) : x("", !0),
|
|
1554
1567
|
e.value.style.layout.dataLabels.yAxis.show ? (v(), c("text", {
|
|
1555
1568
|
key: 9,
|
|
1556
1569
|
ref_key: "yAxisLabelTop",
|
|
1557
|
-
ref:
|
|
1558
|
-
x:
|
|
1570
|
+
ref: pl,
|
|
1571
|
+
x: W.value.x,
|
|
1559
1572
|
y: u.value.top - e.value.style.layout.dataLabels.yAxis.fontSize,
|
|
1560
1573
|
"text-anchor": "middle",
|
|
1561
1574
|
"font-size": e.value.style.layout.dataLabels.yAxis.fontSize,
|
|
1562
1575
|
fill: e.value.style.layout.dataLabels.yAxis.color
|
|
1563
|
-
}, V(
|
|
1576
|
+
}, V(h(se)(
|
|
1564
1577
|
e.value.style.layout.plots.selectors.labels.y.formatter,
|
|
1565
|
-
|
|
1566
|
-
|
|
1578
|
+
h(Z)(F.value.yMax),
|
|
1579
|
+
h(ee)({
|
|
1567
1580
|
p: e.value.style.layout.plots.selectors.labels.prefix,
|
|
1568
|
-
v:
|
|
1581
|
+
v: h(Z)(F.value.yMax),
|
|
1569
1582
|
s: e.value.style.layout.plots.selectors.labels.suffix,
|
|
1570
1583
|
r: e.value.style.layout.dataLabels.yAxis.rounding
|
|
1571
1584
|
})
|
|
1572
|
-
)), 9, So)) :
|
|
1585
|
+
)), 9, So)) : x("", !0),
|
|
1573
1586
|
e.value.style.layout.dataLabels.yAxis.show ? (v(), c("g", {
|
|
1574
1587
|
key: 10,
|
|
1575
1588
|
ref_key: "yAxisLabelBottom",
|
|
1576
1589
|
ref: Ke
|
|
1577
1590
|
}, [
|
|
1578
1591
|
k("text", {
|
|
1579
|
-
x:
|
|
1580
|
-
y:
|
|
1592
|
+
x: W.value.x,
|
|
1593
|
+
y: Y.value.height - e.value.style.layout.dataLabels.yAxis.fontSize * 2,
|
|
1581
1594
|
"text-anchor": "middle",
|
|
1582
1595
|
"font-size": e.value.style.layout.dataLabels.yAxis.fontSize,
|
|
1583
1596
|
fill: e.value.style.layout.dataLabels.yAxis.color
|
|
1584
|
-
}, V(
|
|
1597
|
+
}, V(h(se)(
|
|
1585
1598
|
e.value.style.layout.plots.selectors.labels.y.formatter,
|
|
1586
|
-
|
|
1587
|
-
|
|
1599
|
+
h(Z)(F.value.yMin),
|
|
1600
|
+
h(ee)({
|
|
1588
1601
|
p: e.value.style.layout.plots.selectors.labels.prefix,
|
|
1589
|
-
v:
|
|
1602
|
+
v: h(Z)(F.value.yMin),
|
|
1590
1603
|
s: e.value.style.layout.plots.selectors.labels.suffix,
|
|
1591
1604
|
r: e.value.style.layout.dataLabels.yAxis.rounding
|
|
1592
1605
|
})
|
|
@@ -1597,19 +1610,19 @@ const Aa = ["id"], Sa = ["id"], Ta = {
|
|
|
1597
1610
|
"font-weight": e.value.style.layout.dataLabels.yAxis.bold ? "bold" : "normal",
|
|
1598
1611
|
fill: e.value.style.layout.dataLabels.yAxis.color,
|
|
1599
1612
|
x: u.value.left + u.value.width / 2,
|
|
1600
|
-
y:
|
|
1613
|
+
y: Y.value.height
|
|
1601
1614
|
}, V(e.value.style.layout.dataLabels.yAxis.name), 9, Lo)
|
|
1602
|
-
], 512)) :
|
|
1615
|
+
], 512)) : x("", !0),
|
|
1603
1616
|
k("clipPath", {
|
|
1604
|
-
id: `clip_path_${
|
|
1617
|
+
id: `clip_path_${N.value}`
|
|
1605
1618
|
}, [
|
|
1606
1619
|
k("rect", {
|
|
1607
1620
|
x: u.value.left,
|
|
1608
1621
|
y: u.value.top,
|
|
1609
1622
|
width: u.value.width <= 0 ? 1e-4 : u.value.width,
|
|
1610
1623
|
height: u.value.height <= 0 ? 1e-4 : u.value.height
|
|
1611
|
-
}, null, 8,
|
|
1612
|
-
], 8,
|
|
1624
|
+
}, null, 8, Bo)
|
|
1625
|
+
], 8, Po),
|
|
1613
1626
|
e.value.style.layout.correlation.show ? (v(), c("g", zo, [
|
|
1614
1627
|
(v(!0), c(Q, null, oe(U.value, (l, s) => (v(), c("line", {
|
|
1615
1628
|
x1: l.correlation.x1,
|
|
@@ -1619,7 +1632,7 @@ const Aa = ["id"], Sa = ["id"], Ta = {
|
|
|
1619
1632
|
"stroke-dasharray": e.value.style.layout.correlation.strokeDasharray,
|
|
1620
1633
|
stroke: l.color,
|
|
1621
1634
|
"stroke-width": e.value.style.layout.correlation.strokeWidth,
|
|
1622
|
-
"clip-path": `url(#clip_path_${
|
|
1635
|
+
"clip-path": `url(#clip_path_${N.value})`
|
|
1623
1636
|
}, null, 8, Io))), 256)),
|
|
1624
1637
|
(v(!0), c(Q, null, oe(U.value, (l, s) => (v(), c("g", null, [
|
|
1625
1638
|
e.value.style.layout.correlation.label.show ? (v(), c("text", {
|
|
@@ -1630,48 +1643,48 @@ const Aa = ["id"], Sa = ["id"], Ta = {
|
|
|
1630
1643
|
"text-anchor": "end",
|
|
1631
1644
|
"font-size": e.value.style.layout.correlation.label.fontSize,
|
|
1632
1645
|
"font-weight": e.value.style.layout.correlation.label.bold ? "bold" : "normal"
|
|
1633
|
-
}, V(
|
|
1634
|
-
v:
|
|
1646
|
+
}, V(h(ee)({
|
|
1647
|
+
v: h(Z)(l.correlation.coefficient),
|
|
1635
1648
|
r: e.value.style.layout.correlation.label.roundingValue
|
|
1636
|
-
})), 9, Oo)) :
|
|
1649
|
+
})), 9, Oo)) : x("", !0)
|
|
1637
1650
|
]))), 256))
|
|
1638
|
-
])) :
|
|
1639
|
-
|
|
1651
|
+
])) : x("", !0),
|
|
1652
|
+
z(t.$slots, "svg", {
|
|
1640
1653
|
svg: {
|
|
1641
|
-
...
|
|
1654
|
+
...Y.value,
|
|
1642
1655
|
drawingArea: {
|
|
1643
1656
|
...u.value,
|
|
1644
|
-
zero:
|
|
1657
|
+
zero: W.value
|
|
1645
1658
|
},
|
|
1646
|
-
data:
|
|
1647
|
-
isPrintingImg:
|
|
1659
|
+
data: be.value,
|
|
1660
|
+
isPrintingImg: h(lt) | h(at) | Ee.value,
|
|
1648
1661
|
isPrintingSvg: Ne.value
|
|
1649
1662
|
}
|
|
1650
1663
|
}, void 0, !0)
|
|
1651
|
-
], 46,
|
|
1664
|
+
], 46, Ba)),
|
|
1652
1665
|
t.$slots.hint ? (v(), c("div", Do, [
|
|
1653
|
-
|
|
1654
|
-
])) :
|
|
1666
|
+
z(t.$slots, "hint", H(K({ hint: e.value.a11y.translations.keyboardNavigation, isVisible: Fe.value })), void 0, !0)
|
|
1667
|
+
])) : x("", !0)
|
|
1655
1668
|
]),
|
|
1656
1669
|
t.$slots.watermark ? (v(), c("div", Eo, [
|
|
1657
|
-
|
|
1658
|
-
])) :
|
|
1670
|
+
z(t.$slots, "watermark", H(K({ isPrinting: h(lt) || h(at) || Ee.value || Ne.value })), void 0, !0)
|
|
1671
|
+
])) : x("", !0),
|
|
1659
1672
|
k("div", {
|
|
1660
|
-
id: `legend-bottom-${
|
|
1673
|
+
id: `legend-bottom-${N.value}`
|
|
1661
1674
|
}, null, 8, No),
|
|
1662
1675
|
Ct.value ? (v(), ae(ql, {
|
|
1663
1676
|
key: 7,
|
|
1664
|
-
to: e.value.style.legend.position === "top" ? `#legend-top-${
|
|
1677
|
+
to: e.value.style.legend.position === "top" ? `#legend-top-${N.value}` : `#legend-bottom-${N.value}`
|
|
1665
1678
|
}, [
|
|
1666
1679
|
k("div", {
|
|
1667
1680
|
ref_key: "chartLegend",
|
|
1668
|
-
ref:
|
|
1681
|
+
ref: bt
|
|
1669
1682
|
}, [
|
|
1670
1683
|
e.value.style.legend.show ? (v(), ae($a, {
|
|
1671
1684
|
key: `legend_${_t.value}`,
|
|
1672
1685
|
legendSet: J.value,
|
|
1673
1686
|
config: bl.value,
|
|
1674
|
-
isCursorPointer:
|
|
1687
|
+
isCursorPointer: de.value,
|
|
1675
1688
|
onClickMarker: a[3] || (a[3] = ({ legend: l }) => Re(l.id))
|
|
1676
1689
|
}, {
|
|
1677
1690
|
item: B(({ legend: l }) => [
|
|
@@ -1681,32 +1694,32 @@ const Aa = ["id"], Sa = ["id"], Ta = {
|
|
|
1681
1694
|
}, V(l.name), 13, Fo)
|
|
1682
1695
|
]),
|
|
1683
1696
|
legendToggle: B(() => [
|
|
1684
|
-
J.value.length > 2 && e.value.style.legend.selectAllToggle.show && !
|
|
1697
|
+
J.value.length > 2 && e.value.style.legend.selectAllToggle.show && !h(Ze) ? (v(), ae(_a, {
|
|
1685
1698
|
key: 0,
|
|
1686
1699
|
backgroundColor: e.value.style.legend.selectAllToggle.backgroundColor,
|
|
1687
1700
|
color: e.value.style.legend.selectAllToggle.color,
|
|
1688
1701
|
fontSize: e.value.style.legend.fontSize,
|
|
1689
1702
|
checked: I.value.length > 0,
|
|
1690
|
-
isCursorPointer:
|
|
1691
|
-
onToggle:
|
|
1692
|
-
}, null, 8, ["backgroundColor", "color", "fontSize", "checked", "isCursorPointer"])) :
|
|
1703
|
+
isCursorPointer: de.value,
|
|
1704
|
+
onToggle: Ml
|
|
1705
|
+
}, null, 8, ["backgroundColor", "color", "fontSize", "checked", "isCursorPointer"])) : x("", !0)
|
|
1693
1706
|
]),
|
|
1694
1707
|
_: 1
|
|
1695
|
-
}, 8, ["legendSet", "config", "isCursorPointer"])) :
|
|
1708
|
+
}, 8, ["legendSet", "config", "isCursorPointer"])) : z(t.$slots, "legend", {
|
|
1696
1709
|
key: 1,
|
|
1697
1710
|
legend: J.value
|
|
1698
1711
|
}, void 0, !0)
|
|
1699
1712
|
], 512)
|
|
1700
|
-
], 8, ["to"])) :
|
|
1713
|
+
], 8, ["to"])) : x("", !0),
|
|
1701
1714
|
t.$slots.source ? (v(), c("div", {
|
|
1702
1715
|
key: 8,
|
|
1703
1716
|
ref_key: "source",
|
|
1704
1717
|
ref: kt,
|
|
1705
1718
|
dir: "auto"
|
|
1706
1719
|
}, [
|
|
1707
|
-
|
|
1708
|
-
], 512)) :
|
|
1709
|
-
Oe(
|
|
1720
|
+
z(t.$slots, "source", {}, void 0, !0)
|
|
1721
|
+
], 512)) : x("", !0),
|
|
1722
|
+
Oe(h(al), {
|
|
1710
1723
|
teleportTo: e.value.style.tooltip.teleportTo,
|
|
1711
1724
|
show: q.value.showTooltip && De.value,
|
|
1712
1725
|
backgroundColor: e.value.style.tooltip.backgroundColor,
|
|
@@ -1720,20 +1733,20 @@ const Aa = ["id"], Sa = ["id"], Ta = {
|
|
|
1720
1733
|
offsetY: e.value.style.tooltip.offsetY,
|
|
1721
1734
|
parent: ne.value,
|
|
1722
1735
|
content: Ge.value,
|
|
1723
|
-
isFullscreen:
|
|
1736
|
+
isFullscreen: fe.value,
|
|
1724
1737
|
isCustom: e.value.style.tooltip.customFormat && typeof e.value.style.tooltip.customFormat == "function",
|
|
1725
1738
|
smooth: e.value.style.tooltip.smooth,
|
|
1726
1739
|
backdropFilter: e.value.style.tooltip.backdropFilter,
|
|
1727
1740
|
smoothForce: e.value.style.tooltip.smoothForce,
|
|
1728
1741
|
smoothSnapThreshold: e.value.style.tooltip.smoothSnapThreshold,
|
|
1729
|
-
isA11yMode:
|
|
1742
|
+
isA11yMode: Se.value === "keyboard",
|
|
1730
1743
|
a11yPosition: At.value
|
|
1731
1744
|
}, {
|
|
1732
1745
|
"tooltip-before": B(() => [
|
|
1733
|
-
|
|
1746
|
+
z(t.$slots, "tooltip-before", H(K({ ...ot.value })), void 0, !0)
|
|
1734
1747
|
]),
|
|
1735
1748
|
"tooltip-after": B(() => [
|
|
1736
|
-
|
|
1749
|
+
z(t.$slots, "tooltip-after", H(K({ ...ot.value })), void 0, !0)
|
|
1737
1750
|
]),
|
|
1738
1751
|
default: B(() => [
|
|
1739
1752
|
e.value.style.tooltip.showShape ? (v(), c("div", Wo, [
|
|
@@ -1745,29 +1758,29 @@ const Aa = ["id"], Sa = ["id"], Ta = {
|
|
|
1745
1758
|
radius: 7
|
|
1746
1759
|
}, null, 8, ["shape", "color"])
|
|
1747
1760
|
]))
|
|
1748
|
-
])) :
|
|
1761
|
+
])) : x("", !0)
|
|
1749
1762
|
]),
|
|
1750
1763
|
_: 3
|
|
1751
1764
|
}, 8, ["teleportTo", "show", "backgroundColor", "color", "borderRadius", "borderColor", "borderWidth", "fontSize", "backgroundOpacity", "position", "offsetY", "parent", "content", "isFullscreen", "isCustom", "smooth", "backdropFilter", "smoothForce", "smoothSnapThreshold", "isA11yMode", "a11yPosition"]),
|
|
1752
|
-
gt.value && e.value.userOptions.buttons.table ? (v(), ae(Hl(
|
|
1765
|
+
gt.value && e.value.userOptions.buttons.table ? (v(), ae(Hl(Pe.value.component), Kl({ key: 9 }, Pe.value.props, {
|
|
1753
1766
|
ref_key: "tableUnit",
|
|
1754
|
-
ref:
|
|
1767
|
+
ref: Ae,
|
|
1755
1768
|
onClose: Rt
|
|
1756
|
-
}),
|
|
1769
|
+
}), Ht({
|
|
1757
1770
|
content: B(() => [
|
|
1758
|
-
(v(), ae(
|
|
1771
|
+
(v(), ae(h(nl), {
|
|
1759
1772
|
key: `table_${Mt.value}`,
|
|
1760
|
-
colNames:
|
|
1761
|
-
head:
|
|
1762
|
-
body:
|
|
1763
|
-
config:
|
|
1764
|
-
title: e.value.table.useDialog ? "" :
|
|
1773
|
+
colNames: ke.value.colNames,
|
|
1774
|
+
head: ke.value.head,
|
|
1775
|
+
body: ke.value.body,
|
|
1776
|
+
config: ke.value.config,
|
|
1777
|
+
title: e.value.table.useDialog ? "" : Pe.value.title,
|
|
1765
1778
|
withCloseButton: !e.value.table.useDialog,
|
|
1766
|
-
isCursorPointer:
|
|
1779
|
+
isCursorPointer: de.value,
|
|
1767
1780
|
onClose: Rt
|
|
1768
1781
|
}, {
|
|
1769
1782
|
th: B(({ th: l }) => [
|
|
1770
|
-
|
|
1783
|
+
Kt(V(l), 1)
|
|
1771
1784
|
]),
|
|
1772
1785
|
td: B(({ td: l }) => [
|
|
1773
1786
|
l.shape ? (v(), c("div", Yo, [
|
|
@@ -1785,7 +1798,7 @@ const Aa = ["id"], Sa = ["id"], Ta = {
|
|
|
1785
1798
|
e.value.table.useDialog ? {
|
|
1786
1799
|
name: "title",
|
|
1787
1800
|
fn: B(() => [
|
|
1788
|
-
|
|
1801
|
+
Kt(V(Pe.value.title), 1)
|
|
1789
1802
|
]),
|
|
1790
1803
|
key: "0"
|
|
1791
1804
|
} : void 0,
|
|
@@ -1796,23 +1809,23 @@ const Aa = ["id"], Sa = ["id"], Ta = {
|
|
|
1796
1809
|
tabindex: "0",
|
|
1797
1810
|
class: "vue-ui-user-options-button",
|
|
1798
1811
|
onClick: a[4] || (a[4] = (l) => nt(e.value.userOptions.callbacks.csv)),
|
|
1799
|
-
style: ue({ cursor:
|
|
1812
|
+
style: ue({ cursor: de.value ? "pointer" : "default" })
|
|
1800
1813
|
}, [
|
|
1801
|
-
Oe(
|
|
1814
|
+
Oe(h(ol), {
|
|
1802
1815
|
name: "fileCsv",
|
|
1803
|
-
stroke:
|
|
1816
|
+
stroke: Pe.value.props.color
|
|
1804
1817
|
}, null, 8, ["stroke"])
|
|
1805
1818
|
], 4)
|
|
1806
1819
|
]),
|
|
1807
1820
|
key: "1"
|
|
1808
1821
|
} : void 0
|
|
1809
|
-
]), 1040)) :
|
|
1810
|
-
|
|
1811
|
-
|
|
1822
|
+
]), 1040)) : x("", !0),
|
|
1823
|
+
z(t.$slots, "skeleton", {}, () => [
|
|
1824
|
+
h(Ze) ? (v(), ae(ha, { key: 0 })) : x("", !0)
|
|
1812
1825
|
], !0)
|
|
1813
1826
|
], 46, Aa));
|
|
1814
1827
|
}
|
|
1815
|
-
}, vs = /* @__PURE__ */ Ca(Vo, [["__scopeId", "data-v-
|
|
1828
|
+
}, vs = /* @__PURE__ */ Ca(Vo, [["__scopeId", "data-v-cde737cf"]]);
|
|
1816
1829
|
export {
|
|
1817
1830
|
vs as default
|
|
1818
1831
|
};
|