vue-data-ui 3.18.1 → 3.18.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{PackageVersion-DhDKg-ez.js → PackageVersion-JKSxFXYH.js} +1 -1
- package/dist/{SlicerPreview-BPS8mYO2.js → SlicerPreview-7pKvVSTr.js} +298 -266
- package/dist/components/vue-ui-3d-bar.js +1 -1
- package/dist/components/vue-ui-age-pyramid.js +1 -1
- package/dist/components/vue-ui-bullet.js +1 -1
- package/dist/components/vue-ui-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-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 +4 -0
- package/dist/{vue-data-ui-DIh8ayZc.js → vue-data-ui-DzKsRvlx.js} +61 -61
- package/dist/vue-data-ui.js +61 -61
- package/dist/{vue-ui-3d-bar-BZ8_6ylo.js → vue-ui-3d-bar-D9LYXQYA.js} +1 -1
- package/dist/{vue-ui-age-pyramid-BR3i-CgS.js → vue-ui-age-pyramid-tBkN13YF.js} +1 -1
- package/dist/{vue-ui-bullet-ByJdNLVf.js → vue-ui-bullet-Cn8Llr1F.js} +1 -1
- package/dist/{vue-ui-bump-Ps1gkA-F.js → vue-ui-bump-BIWr0tap.js} +1 -1
- package/dist/{vue-ui-candlestick-0C1QFoV4.js → vue-ui-candlestick-BIUIoePh.js} +2 -2
- package/dist/{vue-ui-carousel-table-1P28pCRK.js → vue-ui-carousel-table-CXDoCex4.js} +1 -1
- package/dist/{vue-ui-chestnut-CJOCGWwX.js → vue-ui-chestnut-BpTIBlpz.js} +1 -1
- package/dist/{vue-ui-chord-BpiVJCCm.js → vue-ui-chord-CSVW0JW_.js} +1 -1
- package/dist/{vue-ui-circle-pack-C3wvXz1f.js → vue-ui-circle-pack-CoDPNDE2.js} +1 -1
- package/dist/{vue-ui-cursor-CNn_3b24.js → vue-ui-cursor-ChkVrvf3.js} +1 -1
- package/dist/{vue-ui-dag-DRVXVCJV.js → vue-ui-dag-BtwtX2Fi.js} +1 -1
- package/dist/{vue-ui-dashboard-gOXyms0o.js → vue-ui-dashboard-D4zUixGJ.js} +58 -58
- package/dist/{vue-ui-digits-DIKyN3z6.js → vue-ui-digits-BGMccYmx.js} +1 -1
- package/dist/{vue-ui-donut-RogzKj0G.js → vue-ui-donut-CJUMy86f.js} +1 -1
- package/dist/{vue-ui-donut-evolution-Bxz06Qqf.js → vue-ui-donut-evolution-Cf9ohIyx.js} +1 -1
- package/dist/{vue-ui-dumbbell-D10T4gmB.js → vue-ui-dumbbell-BlvPXFFb.js} +1 -1
- package/dist/{vue-ui-flow-OK563Z46.js → vue-ui-flow-USVRlziU.js} +1 -1
- package/dist/{vue-ui-funnel-nWmbiJu5.js → vue-ui-funnel-CCWbAcHt.js} +1 -1
- package/dist/{vue-ui-galaxy-CtaTlHWZ.js → vue-ui-galaxy-CoZyQmVY.js} +1 -1
- package/dist/{vue-ui-gauge-DWTEHJqX.js → vue-ui-gauge-BC7ly4Na.js} +1 -1
- package/dist/{vue-ui-geo-DUpWvv5m.js → vue-ui-geo-C3Eow8Em.js} +1 -1
- package/dist/{vue-ui-gizmo-vddzP4dM.js → vue-ui-gizmo-Bn-vJ-Fx.js} +1 -1
- package/dist/{vue-ui-heatmap-CUE_zJQa.js → vue-ui-heatmap-CZ-9Sl1C.js} +1 -1
- package/dist/{vue-ui-history-plot-CcRg_NgJ.js → vue-ui-history-plot-BK_NzH11.js} +1 -1
- package/dist/{vue-ui-horizontal-bar-DX5aZOEn.js → vue-ui-horizontal-bar-DTf-34_T.js} +1 -1
- package/dist/{vue-ui-kpi-B74v84Hu.js → vue-ui-kpi-DsglnM8o.js} +1 -1
- package/dist/{vue-ui-molecule-CVdB8rxf.js → vue-ui-molecule-BcyHDynA.js} +1 -1
- package/dist/{vue-ui-mood-radar-CWDVBOck.js → vue-ui-mood-radar-BFaVUl-J.js} +1 -1
- package/dist/{vue-ui-nested-donuts-Be8b5d81.js → vue-ui-nested-donuts-C1BvqC__.js} +1 -1
- package/dist/{vue-ui-onion-Cs90yQQZ.js → vue-ui-onion-D283exqG.js} +1 -1
- package/dist/{vue-ui-parallel-coordinate-plot-D-mZdTop.js → vue-ui-parallel-coordinate-plot-DKt_zJUf.js} +1 -1
- package/dist/{vue-ui-quadrant-DLD_ZR9M.js → vue-ui-quadrant-B2qYddY2.js} +1 -1
- package/dist/{vue-ui-quick-chart-UWjZdmzt.js → vue-ui-quick-chart-Cyb40e0z.js} +1 -1
- package/dist/{vue-ui-radar-Bxu07MOG.js → vue-ui-radar-B3Hndp3R.js} +1 -1
- package/dist/{vue-ui-relation-circle-O5s1UJtt.js → vue-ui-relation-circle-WHH-LUI7.js} +1 -1
- package/dist/{vue-ui-ridgeline-C3siN0d_.js → vue-ui-ridgeline-CBOJva6x.js} +1 -1
- package/dist/{vue-ui-rings-DVVDtwhB.js → vue-ui-rings-BMhEVZjd.js} +1 -1
- package/dist/{vue-ui-scatter-Cfvh06OC.js → vue-ui-scatter-Dz1nCbwk.js} +488 -467
- package/dist/{vue-ui-skeleton-CxTmGCQp.js → vue-ui-skeleton-7UkhXYFe.js} +1 -1
- package/dist/{vue-ui-spark-trend--39vutfQ.js → vue-ui-spark-trend-Cu9sm4hx.js} +1 -1
- package/dist/{vue-ui-sparkbar-DhCRNOu4.js → vue-ui-sparkbar-kbKOfDoC.js} +1 -1
- package/dist/{vue-ui-sparkgauge-6Igkqlqs.js → vue-ui-sparkgauge-BmJwEpT7.js} +1 -1
- package/dist/{vue-ui-sparkhistogram-BLEzZSZi.js → vue-ui-sparkhistogram-C3QI82WU.js} +1 -1
- package/dist/{vue-ui-sparkline-ppwKM4aO.js → vue-ui-sparkline-D8WLb79z.js} +1 -1
- package/dist/{vue-ui-sparkstackbar-uIzSq9Wh.js → vue-ui-sparkstackbar-Brj7BhAd.js} +1 -1
- package/dist/{vue-ui-stackbar-CdOkMCbI.js → vue-ui-stackbar-kjSw0T8F.js} +2 -2
- package/dist/{vue-ui-stackline-DifD9OXC.js → vue-ui-stackline-CrqwQ36B.js} +2 -2
- package/dist/{vue-ui-strip-plot-D1LjIVqK.js → vue-ui-strip-plot-_4c_67kv.js} +1 -1
- package/dist/{vue-ui-table-WDkEyyQ0.js → vue-ui-table-BciCGbmw.js} +2 -2
- package/dist/{vue-ui-table-sparkline-BEWWP4Rq.js → vue-ui-table-sparkline-BMLytim1.js} +1 -1
- package/dist/{vue-ui-thermometer-CFWOAB8K.js → vue-ui-thermometer-F2UAOuyi.js} +1 -1
- package/dist/{vue-ui-timer-D1DQyf9i.js → vue-ui-timer-Cp5worjZ.js} +1 -1
- package/dist/{vue-ui-tiremarks-IeM3BlPW.js → vue-ui-tiremarks-B82wo09u.js} +1 -1
- package/dist/{vue-ui-treemap-BGZM7ibv.js → vue-ui-treemap-C1jyeafE.js} +1 -1
- package/dist/{vue-ui-waffle-a3dFVBk4.js → vue-ui-waffle-Cc261FVZ.js} +1 -1
- package/dist/{vue-ui-wheel-OnIRQJ8a.js → vue-ui-wheel-CSRn0Xrh.js} +1 -1
- package/dist/{vue-ui-word-cloud-C9SkyutR.js → vue-ui-word-cloud-Bdqfb9BC.js} +1 -1
- package/dist/{vue-ui-world-CEevuFbk.js → vue-ui-world-CtW4GPlU.js} +1 -1
- package/dist/{vue-ui-xy-1hee-IEM.js → vue-ui-xy-BnpMEtr8.js} +2 -2
- package/dist/{vue-ui-xy-canvas-D2f0d45c.js → vue-ui-xy-canvas-DF3izGyG.js} +1 -1
- package/package.json +1 -1
|
@@ -188,7 +188,10 @@ var Ve = /* @__PURE__ */ e({ default: () => vn }), He = ["id"], Ue = ["id"], We
|
|
|
188
188
|
"stroke-width",
|
|
189
189
|
"stroke-dasharray",
|
|
190
190
|
"stroke"
|
|
191
|
-
], Pt = {
|
|
191
|
+
], Pt = {
|
|
192
|
+
key: 0,
|
|
193
|
+
class: "vue-ui-scatter-datapoint"
|
|
194
|
+
}, Ft = [
|
|
192
195
|
"cx",
|
|
193
196
|
"cy",
|
|
194
197
|
"r",
|
|
@@ -199,8 +202,7 @@ var Ve = /* @__PURE__ */ e({ default: () => vn }), He = ["id"], Ue = ["id"], We
|
|
|
199
202
|
"onMouseleave",
|
|
200
203
|
"onClick"
|
|
201
204
|
], It = { key: 1 }, Lt = [
|
|
202
|
-
"
|
|
203
|
-
"y",
|
|
205
|
+
"transform",
|
|
204
206
|
"font-size",
|
|
205
207
|
"fill",
|
|
206
208
|
"onMouseover",
|
|
@@ -221,7 +223,7 @@ var Ve = /* @__PURE__ */ e({ default: () => vn }), He = ["id"], Ue = ["id"], We
|
|
|
221
223
|
"width",
|
|
222
224
|
"height"
|
|
223
225
|
], Ht = {
|
|
224
|
-
key:
|
|
226
|
+
key: 0,
|
|
225
227
|
style: { "pointer-events": "none !important" }
|
|
226
228
|
}, Ut = [
|
|
227
229
|
"x1",
|
|
@@ -319,7 +321,7 @@ var Ve = /* @__PURE__ */ e({ default: () => vn }), He = ["id"], Ue = ["id"], We
|
|
|
319
321
|
"width",
|
|
320
322
|
"height"
|
|
321
323
|
], sn = {
|
|
322
|
-
key:
|
|
324
|
+
key: 14,
|
|
323
325
|
style: { pointerEvents: "none" }
|
|
324
326
|
}, cn = [
|
|
325
327
|
"x1",
|
|
@@ -383,7 +385,7 @@ var Ve = /* @__PURE__ */ e({ default: () => vn }), He = ["id"], Ue = ["id"], We
|
|
|
383
385
|
},
|
|
384
386
|
emits: ["copyAlt"],
|
|
385
387
|
setup(e, { expose: ve, emit: Ve }) {
|
|
386
|
-
let vn = je(() => import("./Tooltip-B7lmdbac.js")), yn = je(() => import("./BaseIcon-CEmt3Ifx.js").then((e) => e.n)), bn = je(() => import("./vue-ui-accordion-cVv18nTV.js").then((e) => e.n)), xn = je(() => import("./DataTable-BvDJEAma.js")), Sn = je(() => import("./PenAndPaper-DwpL8Z0l.js").then((e) => e.t)), Cn = je(() => import("./UserOptions-DMw8EZEo.js").then((e) => e.n)), wn = je(() => import("./PackageVersion-
|
|
388
|
+
let vn = je(() => import("./Tooltip-B7lmdbac.js")), yn = je(() => import("./BaseIcon-CEmt3Ifx.js").then((e) => e.n)), bn = je(() => import("./vue-ui-accordion-cVv18nTV.js").then((e) => e.n)), xn = je(() => import("./DataTable-BvDJEAma.js")), Sn = je(() => import("./PenAndPaper-DwpL8Z0l.js").then((e) => e.t)), Cn = je(() => import("./UserOptions-DMw8EZEo.js").then((e) => e.n)), wn = je(() => import("./PackageVersion-JKSxFXYH.js").then((e) => e.t)), Tn = je(() => import("./BaseDraggableDialog-BQcmQAK5.js").then((e) => e.n)), { vue_ui_scatter: En } = ce(), { isThemeValid: Dn, warnInvalidTheme: On } = me(), P = e, kn = Ve, An = y(() => !!P.dataset && P.dataset.length), F = O(r()), jn = O(!1), Mn = O(""), Nn = O(0), I = O(null), Pn = O(null), Fn = O(null), In = O(null), Ln = O(null), Rn = O(0), zn = O(0), Bn = O(0), L = O([]), Vn = O(!1), Hn = O(null), Un = O(null), Wn = O(null), Gn = O(null), Kn = O(!1), qn = O(!1), Jn = O(null), Yn = O(null), Xn = O(null), Zn = O(null), Qn = O(null), $n = O(null), er = O(null), tr = O({
|
|
387
389
|
x: 0,
|
|
388
390
|
y: 0
|
|
389
391
|
}), nr = O("pointer"), rr = O(!1), ir = O(null), R = O(mr()), ar = y(() => R.value.userOptions.useCursorPointer);
|
|
@@ -469,20 +471,20 @@ var Ve = /* @__PURE__ */ e({ default: () => vn }), He = ["id"], Ue = ["id"], We
|
|
|
469
471
|
};
|
|
470
472
|
}
|
|
471
473
|
Be(() => P.config, (e) => {
|
|
472
|
-
cr.value || (R.value = mr()), dr.value = !R.value.userOptions.showOnChartHover,
|
|
474
|
+
cr.value || (R.value = mr()), dr.value = !R.value.userOptions.showOnChartHover, vr(), Rn.value += 1, zn.value += 1, Bn.value += 1, B.value.showTable = R.value.table.show, B.value.showTooltip = R.value.style.tooltip.show, _r.value && R.value.usePerformanceMode && console.warn("VueUiScatter : You are using performance mode\n\n- downsampling is disabled in this mode, all plots are rendered\n\n- plot significance is not active in this mode (all plots have the same opacity) \n\n- Depending on plot density, shapes might not display a border (stroke) to avoid fuzziness \n\nℹ️ To remove this warning, set config.debug to false.");
|
|
473
475
|
}, { deep: !0 }), Be(() => P.dataset, (e) => {
|
|
474
476
|
Array.isArray(e) && e.length > 0 && (ur.value = !1);
|
|
475
477
|
}, { deep: !0 });
|
|
476
|
-
let
|
|
478
|
+
let hr = Re(null), gr = Re(null);
|
|
477
479
|
Ie(async () => {
|
|
478
|
-
|
|
480
|
+
vr(), await Ne(), Vn.value = !0;
|
|
479
481
|
});
|
|
480
|
-
let
|
|
481
|
-
function
|
|
482
|
+
let _r = y(() => !!R.value.debug);
|
|
483
|
+
function vr() {
|
|
482
484
|
if (c(P.dataset) && (u({
|
|
483
485
|
componentName: "VueUiScatter",
|
|
484
486
|
type: "dataset",
|
|
485
|
-
debug:
|
|
487
|
+
debug: _r.value
|
|
486
488
|
}), ur.value = !0), c(P.dataset) || (ur.value = R.value.loading), R.value.responsive) {
|
|
487
489
|
let e = ye(() => {
|
|
488
490
|
let { width: e, height: t } = be({
|
|
@@ -493,34 +495,34 @@ var Ve = /* @__PURE__ */ e({ default: () => vn }), He = ["id"], Ue = ["id"], We
|
|
|
493
495
|
noTitle: Ln.value
|
|
494
496
|
});
|
|
495
497
|
requestAnimationFrame(() => {
|
|
496
|
-
|
|
498
|
+
V.value.width = e, V.value.height = t;
|
|
497
499
|
});
|
|
498
500
|
});
|
|
499
|
-
|
|
501
|
+
hr.value && (gr.value && hr.value.unobserve(gr.value), hr.value.disconnect()), hr.value = new ResizeObserver(e), gr.value = I.value.parentNode, hr.value.observe(gr.value);
|
|
500
502
|
}
|
|
501
503
|
}
|
|
502
504
|
Fe(() => {
|
|
503
|
-
|
|
505
|
+
hr.value && (gr.value && hr.value.unobserve(gr.value), hr.value.disconnect());
|
|
504
506
|
});
|
|
505
|
-
let { isPrinting:
|
|
507
|
+
let { isPrinting: yr, isImaging: br, generatePdf: xr, generateImage: Sr } = le({
|
|
506
508
|
elementId: `vue-ui-scatter_${F.value}`,
|
|
507
509
|
fileName: R.value.style.title.text || "vue-ui-scatter",
|
|
508
510
|
options: R.value.userOptions.print
|
|
509
|
-
}),
|
|
511
|
+
}), Cr = y(() => R.value.userOptions.show && !R.value.style.title.text), wr = y(() => ae(R.value.customPalette)), B = O({
|
|
510
512
|
showTable: R.value.table.show,
|
|
511
513
|
showTooltip: R.value.style.tooltip.show
|
|
512
514
|
});
|
|
513
515
|
Be(R, () => {
|
|
514
|
-
|
|
516
|
+
B.value = {
|
|
515
517
|
showTable: R.value.table.show,
|
|
516
518
|
showTooltip: R.value.style.tooltip.show
|
|
517
519
|
};
|
|
518
520
|
}, { immediate: !0 });
|
|
519
|
-
let
|
|
521
|
+
let V = O({
|
|
520
522
|
height: R.value.style.layout.height,
|
|
521
523
|
width: R.value.style.layout.width
|
|
522
|
-
}),
|
|
523
|
-
function
|
|
524
|
+
}), Tr = y(() => R.value.style.layout.marginalBars.show ? R.value.style.layout.marginalBars.size + R.value.style.layout.marginalBars.offset : 0);
|
|
525
|
+
function Er() {
|
|
524
526
|
let e = 0;
|
|
525
527
|
if (R.value.style.layout.dataLabels.yAxis.scales.show && Qn.value) try {
|
|
526
528
|
e = Array.from(Qn.value.querySelectorAll("text")).reduce((e, t) => {
|
|
@@ -538,10 +540,10 @@ var Ve = /* @__PURE__ */ e({ default: () => vn }), He = ["id"], Ue = ["id"], We
|
|
|
538
540
|
}
|
|
539
541
|
return Math.max(t, e ? e + 12 : 0);
|
|
540
542
|
}
|
|
541
|
-
function
|
|
543
|
+
function Dr() {
|
|
542
544
|
let e = 0;
|
|
543
545
|
if (Yn.value) try {
|
|
544
|
-
let t = Yn.value.getBBox(), n = t.x + t.width -
|
|
546
|
+
let t = Yn.value.getBBox(), n = t.x + t.width - V.value.width;
|
|
545
547
|
e = n > 0 ? n + 6 : 0;
|
|
546
548
|
} catch {
|
|
547
549
|
e = 0;
|
|
@@ -549,7 +551,7 @@ var Ve = /* @__PURE__ */ e({ default: () => vn }), He = ["id"], Ue = ["id"], We
|
|
|
549
551
|
let t = 0;
|
|
550
552
|
if (R.value.style.layout.dataLabels.xAxis.scales.show && $n.value) try {
|
|
551
553
|
t = Array.from($n.value.querySelectorAll("text")).reduce((e, t) => {
|
|
552
|
-
let n = t.getBBox(), r = n.x + n.width -
|
|
554
|
+
let n = t.getBBox(), r = n.x + n.width - V.value.width, i = r > 0 ? r + 6 : 0;
|
|
553
555
|
return i > e ? i : e;
|
|
554
556
|
}, 0);
|
|
555
557
|
} catch {
|
|
@@ -557,22 +559,22 @@ var Ve = /* @__PURE__ */ e({ default: () => vn }), He = ["id"], Ue = ["id"], We
|
|
|
557
559
|
}
|
|
558
560
|
return e > t ? e : t;
|
|
559
561
|
}
|
|
560
|
-
let
|
|
562
|
+
let H = y(() => {
|
|
561
563
|
let e = 0, t = 0, n = 0;
|
|
562
|
-
if (e =
|
|
564
|
+
if (e = Er(), t = Dr(), Zn.value) try {
|
|
563
565
|
n = Zn.value.getBBox().height + 6;
|
|
564
566
|
} catch {
|
|
565
567
|
n = 0;
|
|
566
568
|
}
|
|
567
569
|
return {
|
|
568
|
-
top: R.value.style.layout.padding.top +
|
|
569
|
-
right:
|
|
570
|
-
bottom:
|
|
570
|
+
top: R.value.style.layout.padding.top + Tr.value + R.value.style.layout.dataLabels.yAxis.fontSize * 2,
|
|
571
|
+
right: V.value.width - R.value.style.layout.padding.right - Tr.value - 6 - t,
|
|
572
|
+
bottom: V.value.height - R.value.style.layout.padding.bottom - n,
|
|
571
573
|
left: R.value.style.layout.padding.left + e,
|
|
572
|
-
height:
|
|
573
|
-
width:
|
|
574
|
+
height: V.value.height - R.value.style.layout.padding.top - R.value.style.layout.padding.bottom - Tr.value - n - R.value.style.layout.dataLabels.yAxis.fontSize * 2,
|
|
575
|
+
width: V.value.width - R.value.style.layout.padding.left - R.value.style.layout.padding.right - Tr.value - e - t - 6
|
|
574
576
|
};
|
|
575
|
-
}),
|
|
577
|
+
}), Or = y(() => {
|
|
576
578
|
lr.value.forEach((e, t) => {
|
|
577
579
|
te({
|
|
578
580
|
datasetObject: e,
|
|
@@ -598,115 +600,97 @@ var Ve = /* @__PURE__ */ e({ default: () => vn }), He = ["id"], Ue = ["id"], We
|
|
|
598
600
|
});
|
|
599
601
|
});
|
|
600
602
|
});
|
|
601
|
-
let e = Math.min(...
|
|
603
|
+
let e = Math.min(...G.value.filter((e) => !L.value.includes(e.id)).flatMap((e) => e.values.map((e) => e.x))), t = Math.max(...G.value.filter((e) => !L.value.includes(e.id)).flatMap((e) => e.values.map((e) => e.x))), n = Math.min(...G.value.filter((e) => !L.value.includes(e.id)).flatMap((e) => e.values.map((e) => e.y))), r = Math.max(...G.value.filter((e) => !L.value.includes(e.id)).flatMap((e) => e.values.map((e) => e.y)));
|
|
602
604
|
return {
|
|
603
605
|
xMin: e < 0 ? e : 0,
|
|
604
606
|
xMax: t,
|
|
605
607
|
yMin: n < 0 ? n : 0,
|
|
606
608
|
yMax: r
|
|
607
609
|
};
|
|
608
|
-
}),
|
|
610
|
+
}), kr = y(() => {
|
|
609
611
|
let e = R.value.style.layout.axis;
|
|
610
612
|
return {
|
|
611
|
-
xMin: e.xMin !== null && e.xMin !== void 0 ? e.xMin :
|
|
612
|
-
xMax: e.xMax !== null && e.xMax !== void 0 ? e.xMax :
|
|
613
|
-
yMin: e.yMin !== null && e.yMin !== void 0 ? e.yMin :
|
|
614
|
-
yMax: e.yMax !== null && e.yMax !== void 0 ? e.yMax :
|
|
613
|
+
xMin: e.xMin !== null && e.xMin !== void 0 ? e.xMin : Or.value.xMin,
|
|
614
|
+
xMax: e.xMax !== null && e.xMax !== void 0 ? e.xMax : Or.value.xMax,
|
|
615
|
+
yMin: e.yMin !== null && e.yMin !== void 0 ? e.yMin : Or.value.yMin,
|
|
616
|
+
yMax: e.yMax !== null && e.yMax !== void 0 ? e.yMax : Or.value.yMax
|
|
615
617
|
};
|
|
616
618
|
});
|
|
617
|
-
function
|
|
619
|
+
function Ar(e) {
|
|
618
620
|
return Number.isFinite(e) ? e < 2 ? 2 : Math.trunc(e) : 5;
|
|
619
621
|
}
|
|
620
|
-
function
|
|
622
|
+
function jr(e) {
|
|
621
623
|
return e.roundingValue !== void 0 && e.roundingValue !== null ? e.roundingValue : e.rounding !== void 0 && e.rounding !== null ? e.rounding : 0;
|
|
622
624
|
}
|
|
623
|
-
function
|
|
624
|
-
let i =
|
|
625
|
+
function Mr({ minimum: e, maximum: t, stepCount: n, useNiceScale: r }) {
|
|
626
|
+
let i = Ar(n);
|
|
625
627
|
if (e === t) {
|
|
626
628
|
let n = t + (e === 0 ? 1 : Math.abs(e) * .01);
|
|
627
629
|
return (r ? p : d)(e, n, i);
|
|
628
630
|
}
|
|
629
631
|
return (r ? p : d)(e, t, i);
|
|
630
632
|
}
|
|
631
|
-
let
|
|
633
|
+
let Nr = y(() => {
|
|
632
634
|
let e = R.value.style.layout.dataLabels.xAxis;
|
|
633
|
-
return
|
|
634
|
-
minimum:
|
|
635
|
-
maximum:
|
|
635
|
+
return Mr({
|
|
636
|
+
minimum: kr.value.xMin,
|
|
637
|
+
maximum: kr.value.xMax,
|
|
636
638
|
stepCount: e.scales.steps,
|
|
637
639
|
useNiceScale: e.scales.useNiceScale
|
|
638
640
|
});
|
|
639
|
-
}),
|
|
641
|
+
}), Pr = y(() => {
|
|
640
642
|
let e = R.value.style.layout.dataLabels.yAxis;
|
|
641
|
-
return
|
|
642
|
-
minimum:
|
|
643
|
-
maximum:
|
|
643
|
+
return Mr({
|
|
644
|
+
minimum: kr.value.yMin,
|
|
645
|
+
maximum: kr.value.yMax,
|
|
644
646
|
stepCount: e.scales.steps,
|
|
645
647
|
useNiceScale: e.scales.useNiceScale
|
|
646
648
|
});
|
|
647
|
-
}),
|
|
648
|
-
xMin:
|
|
649
|
-
xMax:
|
|
650
|
-
yMin:
|
|
651
|
-
yMax:
|
|
652
|
-
})),
|
|
649
|
+
}), U = y(() => ({
|
|
650
|
+
xMin: Nr.value.min,
|
|
651
|
+
xMax: Nr.value.max,
|
|
652
|
+
yMin: Pr.value.min,
|
|
653
|
+
yMax: Pr.value.max
|
|
654
|
+
})), Fr = y(() => {
|
|
653
655
|
let e = R.value.style.layout.dataLabels.xAxis, t = e.scales.labels;
|
|
654
|
-
return
|
|
656
|
+
return Nr.value.ticks.map((r) => ({
|
|
655
657
|
value: r,
|
|
656
|
-
x:
|
|
658
|
+
x: zr(r),
|
|
657
659
|
label: m(t.formatter, _(r), n({
|
|
658
660
|
p: R.value.style.layout.plots.selectors.labels.prefix,
|
|
659
661
|
v: _(r),
|
|
660
662
|
s: R.value.style.layout.plots.selectors.labels.suffix,
|
|
661
|
-
r:
|
|
663
|
+
r: jr(e)
|
|
662
664
|
}))
|
|
663
665
|
}));
|
|
664
|
-
}),
|
|
666
|
+
}), Ir = y(() => {
|
|
665
667
|
let e = R.value.style.layout.dataLabels.yAxis, t = e.scales.labels;
|
|
666
|
-
return
|
|
668
|
+
return Pr.value.ticks.map((r) => ({
|
|
667
669
|
value: r,
|
|
668
|
-
y:
|
|
670
|
+
y: Br(r),
|
|
669
671
|
label: m(t.formatter, _(r), n({
|
|
670
672
|
p: R.value.style.layout.plots.selectors.labels.prefix,
|
|
671
673
|
v: _(r),
|
|
672
674
|
s: R.value.style.layout.plots.selectors.labels.suffix,
|
|
673
|
-
r:
|
|
675
|
+
r: jr(e)
|
|
674
676
|
}))
|
|
675
677
|
}));
|
|
676
|
-
}),
|
|
677
|
-
|
|
678
|
-
let
|
|
679
|
-
return
|
|
680
|
-
p: R.value.style.layout.plots.selectors.labels.prefix,
|
|
681
|
-
v: _(Z.value.v.x),
|
|
682
|
-
s: R.value.style.layout.plots.selectors.labels.suffix,
|
|
683
|
-
r: Ar(e)
|
|
684
|
-
}), { datapoint: Z.value });
|
|
685
|
-
}), zr = y(() => {
|
|
686
|
-
if (!Z.value) return "";
|
|
687
|
-
let e = R.value.style.layout.dataLabels.yAxis, t = e.scales.labels;
|
|
688
|
-
return m(t.formatter, _(Z.value.v.y), n({
|
|
689
|
-
p: R.value.style.layout.plots.selectors.labels.prefix,
|
|
690
|
-
v: _(Z.value.v.y),
|
|
691
|
-
s: R.value.style.layout.plots.selectors.labels.suffix,
|
|
692
|
-
r: Ar(e)
|
|
693
|
-
}), { datapoint: Z.value });
|
|
694
|
-
});
|
|
695
|
-
function Br(e) {
|
|
696
|
-
let t = W.value.xMax - W.value.xMin;
|
|
697
|
-
return t === 0 ? U.value.left : U.value.left + (e - W.value.xMin) / t * U.value.width;
|
|
678
|
+
}), Lr = y(() => $r.value.length > 0 && R.value.style.layout.dataLabels.xAxis.scales.show), Rr = y(() => $r.value.length > 0 && R.value.style.layout.dataLabels.yAxis.scales.show);
|
|
679
|
+
function zr(e) {
|
|
680
|
+
let t = U.value.xMax - U.value.xMin;
|
|
681
|
+
return t === 0 ? H.value.left : H.value.left + (e - U.value.xMin) / t * H.value.width;
|
|
698
682
|
}
|
|
699
|
-
function
|
|
700
|
-
let t =
|
|
701
|
-
return t === 0 ?
|
|
683
|
+
function Br(e) {
|
|
684
|
+
let t = U.value.yMax - U.value.yMin;
|
|
685
|
+
return t === 0 ? H.value.bottom : H.value.bottom - (e - U.value.yMin) / t * H.value.height;
|
|
702
686
|
}
|
|
703
|
-
let
|
|
704
|
-
let { xMin: e, xMax: t, yMin: n, yMax: r } =
|
|
687
|
+
let W = y(() => {
|
|
688
|
+
let { xMin: e, xMax: t, yMin: n, yMax: r } = U.value, i = e > 0 ? e : t < 0 ? t : 0, a = n > 0 ? n : r < 0 ? r : 0;
|
|
705
689
|
return {
|
|
706
|
-
x:
|
|
707
|
-
y:
|
|
690
|
+
x: zr(i),
|
|
691
|
+
y: Br(a)
|
|
708
692
|
};
|
|
709
|
-
}),
|
|
693
|
+
}), G = y(() => lr.value.map((e, t) => {
|
|
710
694
|
let n = `cluster_${F.value}_${t}`;
|
|
711
695
|
return {
|
|
712
696
|
...e,
|
|
@@ -715,35 +699,39 @@ var Ve = /* @__PURE__ */ e({ default: () => vn }), He = ["id"], Ue = ["id"], We
|
|
|
715
699
|
threshold: R.value.usePerformanceMode ? e.values.length + 1 : R.value.downsample.threshold
|
|
716
700
|
}),
|
|
717
701
|
id: n,
|
|
718
|
-
color: e.color ? e.color :
|
|
702
|
+
color: e.color ? e.color : wr.value[t] || l[t] || l[t % l.length],
|
|
719
703
|
opacity: L.value.includes(n) ? .5 : 1,
|
|
720
704
|
shape: e.shape ?? "circle",
|
|
721
|
-
segregate: () =>
|
|
722
|
-
isSegregated: L.value.includes(n)
|
|
705
|
+
segregate: () => oi(n),
|
|
706
|
+
isSegregated: L.value.includes(n),
|
|
707
|
+
hasGroupSelection: !!Jr.value,
|
|
708
|
+
isGroupSelected: Jr.value === n,
|
|
709
|
+
onEnter: () => Xr(n),
|
|
710
|
+
onLeave: () => Zr()
|
|
723
711
|
};
|
|
724
|
-
})),
|
|
712
|
+
})), Vr = y(() => ({
|
|
725
713
|
cy: "scatter-div-legend",
|
|
726
714
|
backgroundColor: R.value.style.legend.backgroundColor,
|
|
727
715
|
color: R.value.style.legend.color,
|
|
728
716
|
fontSize: R.value.style.legend.fontSize,
|
|
729
717
|
paddingBottom: 12,
|
|
730
718
|
fontWeight: R.value.style.legend.bold ? "bold" : ""
|
|
731
|
-
})),
|
|
719
|
+
})), Hr = y(() => G.value.map((e, t) => ({
|
|
732
720
|
...e,
|
|
733
|
-
plots: e.values.map((n) => ({
|
|
734
|
-
x:
|
|
735
|
-
y:
|
|
721
|
+
plots: e.values.map((n, r) => ({
|
|
722
|
+
x: zr(n.x),
|
|
723
|
+
y: Br(n.y),
|
|
736
724
|
v: {
|
|
737
725
|
...n,
|
|
738
726
|
name: n.name || ""
|
|
739
727
|
},
|
|
740
728
|
clusterName: e.name,
|
|
741
729
|
clusterId: e.id,
|
|
742
|
-
color: e.color ? e.color :
|
|
743
|
-
id: `plot_${F.value}_${
|
|
730
|
+
color: e.color ? e.color : wr.value[t] || l[t] || l[t % l.length],
|
|
731
|
+
id: `plot_${F.value}_${t}_${r}`,
|
|
744
732
|
weight: n.weight ?? R.value.style.layout.plots.radius
|
|
745
733
|
}))
|
|
746
|
-
})).filter((e) => !L.value.includes(e.id))),
|
|
734
|
+
})).filter((e) => !L.value.includes(e.id))), K = y(() => {
|
|
747
735
|
let e = 1e-9, t = ({ m: t, b: n, rect: r, verticalX: i = null }) => {
|
|
748
736
|
let { left: a, right: o, top: s, bottom: c } = r, l = [], u = (e, t) => {
|
|
749
737
|
Number.isFinite(e) && Number.isFinite(t) && l.push({
|
|
@@ -767,7 +755,7 @@ var Ve = /* @__PURE__ */ e({ default: () => vn }), He = ["id"], Ue = ["id"], We
|
|
|
767
755
|
y2: h.y
|
|
768
756
|
};
|
|
769
757
|
};
|
|
770
|
-
return
|
|
758
|
+
return Hr.value.map((n) => {
|
|
771
759
|
let r = n.plots.length, i = n.plots.reduce((e, t) => e + t.x, 0) / r, a = n.plots.reduce((e, t) => e + t.y, 0) / r, o = 0, s = 0, c = 0;
|
|
772
760
|
for (let e of n.plots) {
|
|
773
761
|
let t = e.x - i, n = e.y - a;
|
|
@@ -794,7 +782,7 @@ var Ve = /* @__PURE__ */ e({ default: () => vn }), He = ["id"], Ue = ["id"], We
|
|
|
794
782
|
let g = t({
|
|
795
783
|
m: f,
|
|
796
784
|
b: p,
|
|
797
|
-
rect:
|
|
785
|
+
rect: H.value,
|
|
798
786
|
verticalX: d
|
|
799
787
|
});
|
|
800
788
|
if (!g) return {
|
|
@@ -833,11 +821,11 @@ var Ve = /* @__PURE__ */ e({ default: () => vn }), He = ["id"], Ue = ["id"], We
|
|
|
833
821
|
})
|
|
834
822
|
};
|
|
835
823
|
});
|
|
836
|
-
}),
|
|
837
|
-
function
|
|
838
|
-
return
|
|
824
|
+
}), Ur = y(() => Math.max(...K.value.flatMap((e) => e.plots.map((e) => Math.abs(e.deviation)))));
|
|
825
|
+
function Wr() {
|
|
826
|
+
return K.value;
|
|
839
827
|
}
|
|
840
|
-
function
|
|
828
|
+
function Gr(e, t) {
|
|
841
829
|
let n = Array.isArray(e) ? e.flatMap((e) => e.plots.map((e) => ({
|
|
842
830
|
x: e.x,
|
|
843
831
|
y: e.y
|
|
@@ -864,10 +852,10 @@ var Ve = /* @__PURE__ */ e({ default: () => vn }), He = ["id"], Ue = ["id"], We
|
|
|
864
852
|
maxY: Math.max(...f)
|
|
865
853
|
};
|
|
866
854
|
}
|
|
867
|
-
let
|
|
868
|
-
let e =
|
|
869
|
-
return
|
|
870
|
-
let i =
|
|
855
|
+
let q = y(() => R.value.style.layout.marginalBars.tranches), J = y(() => Gr(Hr.value, q.value)), Kr = y(() => {
|
|
856
|
+
let e = H.value.top - R.value.style.layout.marginalBars.offset, n = H.value.right + R.value.style.layout.marginalBars.offset;
|
|
857
|
+
return Hr.value.map((r) => {
|
|
858
|
+
let i = Gr(r, q.value);
|
|
871
859
|
return {
|
|
872
860
|
coords: i,
|
|
873
861
|
dX: g(i.avgX.map((t, n) => ({
|
|
@@ -882,37 +870,67 @@ var Ve = /* @__PURE__ */ e({ default: () => vn }), He = ["id"], Ue = ["id"], We
|
|
|
882
870
|
id: r.id
|
|
883
871
|
};
|
|
884
872
|
});
|
|
885
|
-
}),
|
|
873
|
+
}), Y = O(void 0), X = O(null), Z = O([]), qr = O(null), Jr = O(void 0);
|
|
886
874
|
function Yr() {
|
|
887
|
-
jn.value = !1,
|
|
875
|
+
jn.value = !1, Y.value = void 0, Z.value = [], X.value = null, ir.value = null, er.value = null, Jr.value = void 0;
|
|
888
876
|
}
|
|
889
877
|
function Xr(e) {
|
|
878
|
+
let t = K.value.find((t) => t.id === e);
|
|
879
|
+
if (!t) {
|
|
880
|
+
Z.value = [];
|
|
881
|
+
return;
|
|
882
|
+
}
|
|
883
|
+
Z.value = t.plots.map((e) => e.id), Jr.value = e;
|
|
884
|
+
}
|
|
885
|
+
function Zr() {
|
|
886
|
+
Z.value = [], Jr.value = void 0;
|
|
887
|
+
}
|
|
888
|
+
function Qr(e) {
|
|
890
889
|
if (!z.value || !e) return;
|
|
891
890
|
let t = i(e.x, e.y, z.value);
|
|
892
891
|
t && (tr.value = t);
|
|
893
892
|
}
|
|
894
|
-
|
|
895
|
-
|
|
893
|
+
let $r = y(() => X.value ? [X.value] : Z.value.length ? K.value.flatMap((e) => e.plots).filter((e) => Z.value.includes(e.id)) : []);
|
|
894
|
+
function ei(e) {
|
|
895
|
+
let t = R.value.style.layout.dataLabels.xAxis, r = t.scales.labels;
|
|
896
|
+
return m(r.formatter, _(e.v.x), n({
|
|
897
|
+
p: R.value.style.layout.plots.selectors.labels.prefix,
|
|
898
|
+
v: _(e.v.x),
|
|
899
|
+
s: R.value.style.layout.plots.selectors.labels.suffix,
|
|
900
|
+
r: jr(t)
|
|
901
|
+
}), { datapoint: e });
|
|
902
|
+
}
|
|
903
|
+
function ti(e) {
|
|
904
|
+
let t = R.value.style.layout.dataLabels.yAxis, r = t.scales.labels;
|
|
905
|
+
return m(r.formatter, _(e.v.y), n({
|
|
906
|
+
p: R.value.style.layout.plots.selectors.labels.prefix,
|
|
907
|
+
v: _(e.v.y),
|
|
908
|
+
s: R.value.style.layout.plots.selectors.labels.suffix,
|
|
909
|
+
r: jr(t)
|
|
910
|
+
}), { datapoint: e });
|
|
911
|
+
}
|
|
912
|
+
function ni(e, t, r = "pointer", i = null) {
|
|
913
|
+
Y.value = e.id, X.value = e, nr.value = r, ir.value = i, er.value = e.id;
|
|
896
914
|
let a = "";
|
|
897
915
|
R.value.events.datapointEnter && R.value.events.datapointEnter({
|
|
898
916
|
datapoint: e,
|
|
899
917
|
seriesIndex: t
|
|
900
|
-
}),
|
|
918
|
+
}), qr.value = {
|
|
901
919
|
datapoint: e,
|
|
902
920
|
seriesIndex: t,
|
|
903
|
-
series:
|
|
921
|
+
series: K.value,
|
|
904
922
|
config: R.value
|
|
905
923
|
};
|
|
906
924
|
let o = R.value.style.tooltip.customFormat;
|
|
907
925
|
ne(o) && ee(() => o({
|
|
908
926
|
datapoint: e,
|
|
909
927
|
seriesIndex: t,
|
|
910
|
-
series:
|
|
928
|
+
series: K.value,
|
|
911
929
|
config: R.value
|
|
912
930
|
})) ? Mn.value = o({
|
|
913
931
|
datapoint: e,
|
|
914
932
|
seriesIndex: t,
|
|
915
|
-
series:
|
|
933
|
+
series: K.value,
|
|
916
934
|
config: R.value
|
|
917
935
|
}) : (e.clusterName && (a += `<div style="display:flex;gap:3px;align-items:center">${e.clusterName}</div>`), e.v.name && (a += `<div>${e.v.name}</div>`), a += `<div style="text-align:left;margin-top:6px;padding-top:6px;border-top:1px solid ${R.value.style.tooltip.borderColor}">`, a += `<div>${R.value.style.layout.dataLabels.xAxis.name}: <b>${isNaN(e.v.x) ? "-" : m(R.value.style.layout.plots.selectors.labels.x.formatter, e.v.x, n({
|
|
918
936
|
p: R.value.style.tooltip.prefix,
|
|
@@ -934,41 +952,41 @@ var Ve = /* @__PURE__ */ e({ default: () => vn }), He = ["id"], Ue = ["id"], We
|
|
|
934
952
|
v: e.deviation,
|
|
935
953
|
r: R.value.style.layout.plots.deviation.roundingValue
|
|
936
954
|
})}</b>`, a += "</div>", Mn.value = `<div>${a}</div>`), jn.value = !0, r === "keyboard" && Ne(() => {
|
|
937
|
-
|
|
955
|
+
Qr(e);
|
|
938
956
|
});
|
|
939
957
|
}
|
|
940
|
-
function
|
|
958
|
+
function ri(e, t) {
|
|
941
959
|
R.value.events.datapointLeave && R.value.events.datapointLeave({
|
|
942
960
|
datapoint: e,
|
|
943
961
|
seriesIndex: t
|
|
944
|
-
}), !(nr.value === "keyboard" && er.value === e?.id) && (jn.value = !1,
|
|
962
|
+
}), !(nr.value === "keyboard" && er.value === e?.id) && (jn.value = !1, Y.value = void 0, X.value = null);
|
|
945
963
|
}
|
|
946
|
-
function
|
|
964
|
+
function ii(e, t) {
|
|
947
965
|
R.value.events.datapointClick && R.value.events.datapointClick({
|
|
948
966
|
datapoint: e,
|
|
949
967
|
seriesIndex: t
|
|
950
968
|
});
|
|
951
969
|
}
|
|
952
|
-
function
|
|
953
|
-
L.value.length ? L.value = [] :
|
|
970
|
+
function ai() {
|
|
971
|
+
L.value.length ? L.value = [] : G.value.forEach((e) => {
|
|
954
972
|
L.value.push(e.id);
|
|
955
973
|
});
|
|
956
974
|
}
|
|
957
|
-
function
|
|
975
|
+
function oi(e) {
|
|
958
976
|
L.value.includes(e) ? L.value = L.value.filter((t) => t !== e) : L.value.length < lr.value.length - 1 && L.value.push(e);
|
|
959
977
|
}
|
|
960
|
-
function
|
|
961
|
-
return
|
|
978
|
+
function si(e) {
|
|
979
|
+
return G.value.length ? G.value.find((t) => t.name === e) || (R.value.debug && console.warn(`VueUiScatter - Series name not found "${e}"`), null) : (R.value.debug && console.warn("VueUiScatter - There are no series to show."), null);
|
|
962
980
|
}
|
|
963
|
-
function
|
|
964
|
-
let t =
|
|
965
|
-
t !== null && L.value.includes(t.id) &&
|
|
981
|
+
function ci(e) {
|
|
982
|
+
let t = si(e);
|
|
983
|
+
t !== null && L.value.includes(t.id) && oi(t.id);
|
|
966
984
|
}
|
|
967
|
-
function
|
|
968
|
-
let t =
|
|
969
|
-
t !== null && (L.value.includes(t.id) ||
|
|
985
|
+
function li(e) {
|
|
986
|
+
let t = si(e);
|
|
987
|
+
t !== null && (L.value.includes(t.id) || oi(t.id));
|
|
970
988
|
}
|
|
971
|
-
function
|
|
989
|
+
function ui(e = null) {
|
|
972
990
|
Ne(() => {
|
|
973
991
|
let t = [
|
|
974
992
|
"",
|
|
@@ -976,7 +994,7 @@ var Ve = /* @__PURE__ */ e({ default: () => vn }), He = ["id"], Ue = ["id"], We
|
|
|
976
994
|
R.value.table.translations.nbrPlots,
|
|
977
995
|
`${R.value.style.layout.dataLabels.xAxis.name} ${R.value.table.translations.average}`,
|
|
978
996
|
`${R.value.style.layout.dataLabels.yAxis.name} ${R.value.table.translations.average}`
|
|
979
|
-
], n =
|
|
997
|
+
], n = K.value.map((e) => [
|
|
980
998
|
e.name,
|
|
981
999
|
e.correlation.coefficient,
|
|
982
1000
|
e.plots.length,
|
|
@@ -998,14 +1016,14 @@ var Ve = /* @__PURE__ */ e({ default: () => vn }), He = ["id"], Ue = ["id"], We
|
|
|
998
1016
|
});
|
|
999
1017
|
});
|
|
1000
1018
|
}
|
|
1001
|
-
let
|
|
1019
|
+
let di = y(() => {
|
|
1002
1020
|
let e = [
|
|
1003
1021
|
R.value.table.translations.series,
|
|
1004
1022
|
R.value.table.translations.correlationCoefficient,
|
|
1005
1023
|
R.value.table.translations.nbrPlots,
|
|
1006
1024
|
`${R.value.style.layout.dataLabels.xAxis.name} ${R.value.table.translations.average}`,
|
|
1007
1025
|
`${R.value.style.layout.dataLabels.yAxis.name} ${R.value.table.translations.average}`
|
|
1008
|
-
], t =
|
|
1026
|
+
], t = K.value.map((e) => [
|
|
1009
1027
|
{
|
|
1010
1028
|
shape: e.shape,
|
|
1011
1029
|
content: e.name ?? "-",
|
|
@@ -1035,21 +1053,21 @@ var Ve = /* @__PURE__ */ e({ default: () => vn }), He = ["id"], Ue = ["id"], We
|
|
|
1035
1053
|
},
|
|
1036
1054
|
colNames: e
|
|
1037
1055
|
};
|
|
1038
|
-
}),
|
|
1039
|
-
function
|
|
1040
|
-
|
|
1056
|
+
}), fi = O(!1);
|
|
1057
|
+
function pi(e) {
|
|
1058
|
+
fi.value = e, Nn.value += 1;
|
|
1041
1059
|
}
|
|
1042
|
-
function
|
|
1043
|
-
|
|
1060
|
+
function mi() {
|
|
1061
|
+
B.value.showTable = !B.value.showTable;
|
|
1044
1062
|
}
|
|
1045
|
-
function
|
|
1046
|
-
|
|
1063
|
+
function hi() {
|
|
1064
|
+
B.value.showTooltip = !B.value.showTooltip;
|
|
1047
1065
|
}
|
|
1048
|
-
let
|
|
1049
|
-
function
|
|
1050
|
-
|
|
1066
|
+
let gi = O(!1);
|
|
1067
|
+
function _i() {
|
|
1068
|
+
gi.value = !gi.value;
|
|
1051
1069
|
}
|
|
1052
|
-
async function
|
|
1070
|
+
async function vi({ scale: e = 2 } = {}) {
|
|
1053
1071
|
if (!I.value) return;
|
|
1054
1072
|
let { width: t, height: n } = I.value.getBoundingClientRect(), r = t / n, { imageUri: i, base64: a } = await he({
|
|
1055
1073
|
domElement: I.value,
|
|
@@ -1066,16 +1084,16 @@ var Ve = /* @__PURE__ */ e({ default: () => vn }), He = ["id"], Ue = ["id"], We
|
|
|
1066
1084
|
aspectRatio: r
|
|
1067
1085
|
};
|
|
1068
1086
|
}
|
|
1069
|
-
function
|
|
1070
|
-
Hn.value = e, R.value.style.layout.marginalBars.highlighter.highlightBothAxes && (Un.value =
|
|
1087
|
+
function yi(e) {
|
|
1088
|
+
Hn.value = e, R.value.style.layout.marginalBars.highlighter.highlightBothAxes && (Un.value = J.value.y.length - 2 - e);
|
|
1071
1089
|
}
|
|
1072
|
-
function
|
|
1090
|
+
function bi(e) {
|
|
1073
1091
|
Un.value = e, R.value.style.layout.marginalBars.highlighter.highlightBothAxes && (Hn.value = e);
|
|
1074
1092
|
}
|
|
1075
|
-
function
|
|
1093
|
+
function xi() {
|
|
1076
1094
|
Hn.value = null, Un.value = null;
|
|
1077
1095
|
}
|
|
1078
|
-
let
|
|
1096
|
+
let Si = {
|
|
1079
1097
|
circle: 1,
|
|
1080
1098
|
square: 1,
|
|
1081
1099
|
diamond: 1,
|
|
@@ -1084,9 +1102,9 @@ var Ve = /* @__PURE__ */ e({ default: () => vn }), He = ["id"], Ue = ["id"], We
|
|
|
1084
1102
|
pentagon: 1.3,
|
|
1085
1103
|
hexagon: 1.3
|
|
1086
1104
|
}, Q = (e) => e.toFixed(3);
|
|
1087
|
-
function
|
|
1105
|
+
function Ci({ shape: e = "circle", cx: t, cy: n, r }) {
|
|
1088
1106
|
if (!R.value.usePerformanceMode) return "";
|
|
1089
|
-
let i =
|
|
1107
|
+
let i = Si[e] * r;
|
|
1090
1108
|
switch (e) {
|
|
1091
1109
|
case "circle": {
|
|
1092
1110
|
let e = Q(t - i), r = Q(n), a = Q(t + i), o = Q(i);
|
|
@@ -1140,16 +1158,16 @@ var Ve = /* @__PURE__ */ e({ default: () => vn }), He = ["id"], Ue = ["id"], We
|
|
|
1140
1158
|
}
|
|
1141
1159
|
}
|
|
1142
1160
|
}
|
|
1143
|
-
let
|
|
1161
|
+
let wi = y(() => {
|
|
1144
1162
|
if (!R.value.usePerformanceMode) return [""];
|
|
1145
|
-
let { left: e, right: t, top: n, bottom: r } =
|
|
1146
|
-
return
|
|
1163
|
+
let { left: e, right: t, top: n, bottom: r } = H.value, i = Math.max(1, (t - e) * (r - n)), a = (e) => e / i * 1e4, o = R.value.style.layout.plots.stroke, s = R.value.style.layout.plots.strokeWidth, c = R.value.style.layout.plots.opacity;
|
|
1164
|
+
return K.value.map((i) => {
|
|
1147
1165
|
let l = [];
|
|
1148
1166
|
for (let a of i.plots) {
|
|
1149
1167
|
let o = a.x, s = a.y;
|
|
1150
1168
|
if (o < e || o > t || s < n || s > r) continue;
|
|
1151
1169
|
let c = Math.max(R.value.style.layout.plots.radius, a.weight);
|
|
1152
|
-
l.push(
|
|
1170
|
+
l.push(Ci({
|
|
1153
1171
|
shape: i.shape || "circle",
|
|
1154
1172
|
cx: o,
|
|
1155
1173
|
cy: s,
|
|
@@ -1168,7 +1186,7 @@ var Ve = /* @__PURE__ */ e({ default: () => vn }), He = ["id"], Ue = ["id"], We
|
|
|
1168
1186
|
};
|
|
1169
1187
|
}).filter(Boolean);
|
|
1170
1188
|
});
|
|
1171
|
-
function
|
|
1189
|
+
function Ti() {
|
|
1172
1190
|
return R.value.usePerformanceMode ? (e) => {
|
|
1173
1191
|
let t = z.value;
|
|
1174
1192
|
if (!t) return;
|
|
@@ -1177,34 +1195,34 @@ var Ve = /* @__PURE__ */ e({ default: () => vn }), He = ["id"], Ue = ["id"], We
|
|
|
1177
1195
|
let r = t.getScreenCTM();
|
|
1178
1196
|
if (!r) return;
|
|
1179
1197
|
let i = r.inverse(), a = n.matrixTransform(i), o = null, s = Infinity, c = -1;
|
|
1180
|
-
if (
|
|
1198
|
+
if (K.value.forEach((e, t) => {
|
|
1181
1199
|
e.plots.forEach((e) => {
|
|
1182
1200
|
let n = e.x - a.x, r = e.y - a.y, i = n * n + r * r;
|
|
1183
1201
|
i <= 64 && i < s && (s = i, o = e, c = t);
|
|
1184
1202
|
});
|
|
1185
|
-
}), o)
|
|
1186
|
-
else if (
|
|
1187
|
-
let e =
|
|
1188
|
-
|
|
1203
|
+
}), o) Y.value !== o.id && (Y.value = o.id, ni(o, c, "pointer", $.value.get(o.id) ?? null));
|
|
1204
|
+
else if (Y.value) {
|
|
1205
|
+
let e = X.value;
|
|
1206
|
+
Y.value = void 0, ri(e, c);
|
|
1189
1207
|
}
|
|
1190
1208
|
} : () => null;
|
|
1191
1209
|
}
|
|
1192
|
-
let
|
|
1193
|
-
function
|
|
1194
|
-
if (
|
|
1195
|
-
let e =
|
|
1196
|
-
|
|
1210
|
+
let Ei = Ti();
|
|
1211
|
+
function Di() {
|
|
1212
|
+
if (Y.value) {
|
|
1213
|
+
let e = X.value;
|
|
1214
|
+
Y.value = void 0, ri(e, null);
|
|
1197
1215
|
}
|
|
1198
1216
|
}
|
|
1199
|
-
function
|
|
1200
|
-
let t =
|
|
1217
|
+
function Oi(e) {
|
|
1218
|
+
let t = X.value;
|
|
1201
1219
|
if (t) {
|
|
1202
|
-
let e =
|
|
1203
|
-
|
|
1220
|
+
let e = K.value.findIndex((e) => e.id === t.clusterId);
|
|
1221
|
+
ii(t, e >= 0 ? e : 0);
|
|
1204
1222
|
}
|
|
1205
1223
|
}
|
|
1206
|
-
let
|
|
1207
|
-
let e = R.value.table.useDialog && !R.value.table.show, t =
|
|
1224
|
+
let ki = y(() => {
|
|
1225
|
+
let e = R.value.table.useDialog && !R.value.table.show, t = B.value.showTable;
|
|
1208
1226
|
return {
|
|
1209
1227
|
component: e ? Tn : bn,
|
|
1210
1228
|
title: `${R.value.style.title.text}${R.value.style.title.subtitle.text ? `: ${R.value.style.title.subtitle.text}` : ""}`,
|
|
@@ -1213,7 +1231,7 @@ var Ve = /* @__PURE__ */ e({ default: () => vn }), He = ["id"], Ue = ["id"], We
|
|
|
1213
1231
|
color: R.value.table.th.color,
|
|
1214
1232
|
headerColor: R.value.table.th.color,
|
|
1215
1233
|
headerBg: R.value.table.th.backgroundColor,
|
|
1216
|
-
isFullscreen:
|
|
1234
|
+
isFullscreen: fi.value,
|
|
1217
1235
|
fullscreenParent: I.value,
|
|
1218
1236
|
forcedWidth: Math.min(800, window.innerWidth * .8),
|
|
1219
1237
|
isCursorPointer: ar.value
|
|
@@ -1234,36 +1252,36 @@ var Ve = /* @__PURE__ */ e({ default: () => vn }), He = ["id"], Ue = ["id"], We
|
|
|
1234
1252
|
}
|
|
1235
1253
|
};
|
|
1236
1254
|
});
|
|
1237
|
-
Be(() =>
|
|
1255
|
+
Be(() => B.value.showTable, (e) => {
|
|
1238
1256
|
R.value.table.show || (e && R.value.table.useDialog && Wn.value ? Wn.value.open() : "close" in Wn.value && Wn.value.close());
|
|
1239
1257
|
});
|
|
1240
|
-
function
|
|
1241
|
-
|
|
1258
|
+
function Ai() {
|
|
1259
|
+
B.value.showTable = !1, Gn.value && Gn.value.setTableIconState(!1);
|
|
1242
1260
|
}
|
|
1243
|
-
let
|
|
1261
|
+
let ji = y(() => R.value.style.backgroundColor), Mi = y(() => R.value.style.legend), { exportSvg: Ni, getSvg: Pi } = fe({
|
|
1244
1262
|
svg: z,
|
|
1245
1263
|
title: y(() => R.value.style.title),
|
|
1246
|
-
legend:
|
|
1247
|
-
legendItems:
|
|
1248
|
-
backgroundColor:
|
|
1264
|
+
legend: Mi,
|
|
1265
|
+
legendItems: G,
|
|
1266
|
+
backgroundColor: ji
|
|
1249
1267
|
});
|
|
1250
|
-
async function
|
|
1268
|
+
async function Fi({ isCb: e }) {
|
|
1251
1269
|
qn.value = !0, await Ne();
|
|
1252
1270
|
try {
|
|
1253
1271
|
if (e) {
|
|
1254
|
-
let { blob: e, url: t, text: n, dataUrl: r } = await
|
|
1272
|
+
let { blob: e, url: t, text: n, dataUrl: r } = await Pi();
|
|
1255
1273
|
await Promise.resolve(R.value.userOptions.callbacks.svg({
|
|
1256
1274
|
blob: e,
|
|
1257
1275
|
url: t,
|
|
1258
1276
|
text: n,
|
|
1259
1277
|
dataUrl: r
|
|
1260
1278
|
}));
|
|
1261
|
-
} else await Promise.resolve(
|
|
1279
|
+
} else await Promise.resolve(Ni());
|
|
1262
1280
|
} finally {
|
|
1263
1281
|
qn.value = !1;
|
|
1264
1282
|
}
|
|
1265
1283
|
}
|
|
1266
|
-
function
|
|
1284
|
+
function Ii(e) {
|
|
1267
1285
|
if (e?.stage === "start") {
|
|
1268
1286
|
Kn.value = !0;
|
|
1269
1287
|
return;
|
|
@@ -1272,23 +1290,23 @@ var Ve = /* @__PURE__ */ e({ default: () => vn }), He = ["id"], Ue = ["id"], We
|
|
|
1272
1290
|
Kn.value = !1;
|
|
1273
1291
|
return;
|
|
1274
1292
|
}
|
|
1275
|
-
|
|
1293
|
+
Sr();
|
|
1276
1294
|
}
|
|
1277
|
-
async function
|
|
1295
|
+
async function Li() {
|
|
1278
1296
|
if (kn("copyAlt", {
|
|
1279
1297
|
config: R.value,
|
|
1280
|
-
dataset:
|
|
1298
|
+
dataset: Hr.value
|
|
1281
1299
|
}), !R.value.userOptions.callbacks.altCopy) {
|
|
1282
1300
|
console.warn("Vue Data UI - A callback must be set for `altCopy` in userOptions.");
|
|
1283
1301
|
return;
|
|
1284
1302
|
}
|
|
1285
1303
|
await Promise.resolve(R.value.userOptions.callbacks.altCopy({
|
|
1286
1304
|
config: R.value,
|
|
1287
|
-
dataset:
|
|
1305
|
+
dataset: Hr.value
|
|
1288
1306
|
}));
|
|
1289
1307
|
}
|
|
1290
|
-
function
|
|
1291
|
-
let n =
|
|
1308
|
+
function Ri(e, t) {
|
|
1309
|
+
let n = Ui.value.filter((t) => t.id !== e.id);
|
|
1292
1310
|
if (!n.length) return null;
|
|
1293
1311
|
let r = ((n) => {
|
|
1294
1312
|
if (!n.length) return null;
|
|
@@ -1324,14 +1342,14 @@ var Ve = /* @__PURE__ */ e({ default: () => vn }), He = ["id"], Ue = ["id"], We
|
|
|
1324
1342
|
return Math.abs(t === "right" || t === "left" ? r.y - e.y : r.x - e.x) < i ? r : n;
|
|
1325
1343
|
}, null) : null;
|
|
1326
1344
|
}
|
|
1327
|
-
function
|
|
1345
|
+
function zi() {
|
|
1328
1346
|
ir.value = null, er.value = null, rr.value = !0;
|
|
1329
1347
|
}
|
|
1330
|
-
function
|
|
1348
|
+
function Bi() {
|
|
1331
1349
|
Yr(), nr.value = "pointer", rr.value = !1;
|
|
1332
1350
|
}
|
|
1333
|
-
function
|
|
1334
|
-
if (!z.value ||
|
|
1351
|
+
function Vi(e) {
|
|
1352
|
+
if (!z.value || gi.value || document.activeElement !== z.value || !Ui.value.length) return;
|
|
1335
1353
|
let t = e.key === "ArrowLeft", n = e.key === "ArrowRight", r = e.key === "ArrowUp", i = e.key === "ArrowDown", a = e.key === "Enter" || e.key === " ", o = e.key === "Escape";
|
|
1336
1354
|
if (!t && !n && !r && !i && !a && !o) return;
|
|
1337
1355
|
if (e.preventDefault(), e.stopPropagation(), o) {
|
|
@@ -1340,45 +1358,45 @@ var Ve = /* @__PURE__ */ e({ default: () => vn }), He = ["id"], Ue = ["id"], We
|
|
|
1340
1358
|
}
|
|
1341
1359
|
if (a) {
|
|
1342
1360
|
if (ir.value === null) return;
|
|
1343
|
-
let e =
|
|
1361
|
+
let e = Ui.value[ir.value];
|
|
1344
1362
|
if (!e) return;
|
|
1345
|
-
|
|
1363
|
+
ii(e, e.seriesIndex);
|
|
1346
1364
|
return;
|
|
1347
1365
|
}
|
|
1348
1366
|
let s = null;
|
|
1349
1367
|
if (n && (s = "right"), t && (s = "left"), i && (s = "down"), r && (s = "up"), er.value === null) {
|
|
1350
|
-
let e =
|
|
1368
|
+
let e = X.value;
|
|
1351
1369
|
if (e && e.id) {
|
|
1352
|
-
let t =
|
|
1370
|
+
let t = Ri(e, s);
|
|
1353
1371
|
if (!t) {
|
|
1354
1372
|
let t = $.value.get(e.id);
|
|
1355
1373
|
if (t === void 0) return;
|
|
1356
|
-
|
|
1374
|
+
ni(e, e.seriesIndex, "keyboard", t);
|
|
1357
1375
|
return;
|
|
1358
1376
|
}
|
|
1359
1377
|
let n = $.value.get(t.id);
|
|
1360
1378
|
if (n === void 0) return;
|
|
1361
|
-
|
|
1379
|
+
ni(t, t.seriesIndex, "keyboard", n);
|
|
1362
1380
|
return;
|
|
1363
1381
|
}
|
|
1364
|
-
let t =
|
|
1382
|
+
let t = Ui.value[0];
|
|
1365
1383
|
if (!t) return;
|
|
1366
1384
|
let n = $.value.get(t.id) ?? 0;
|
|
1367
|
-
|
|
1385
|
+
ni(t, t.seriesIndex, "keyboard", n);
|
|
1368
1386
|
return;
|
|
1369
1387
|
}
|
|
1370
1388
|
let c = $.value.get(er.value);
|
|
1371
1389
|
if (c === void 0) return;
|
|
1372
|
-
let l =
|
|
1390
|
+
let l = Ui.value[c];
|
|
1373
1391
|
if (!l) return;
|
|
1374
|
-
let u =
|
|
1392
|
+
let u = Ri(l, s);
|
|
1375
1393
|
if (!u) return;
|
|
1376
1394
|
let d = $.value.get(u.id);
|
|
1377
|
-
d !== void 0 &&
|
|
1395
|
+
d !== void 0 && ni(u, u.seriesIndex, "keyboard", d);
|
|
1378
1396
|
}
|
|
1379
|
-
let
|
|
1380
|
-
if (!
|
|
1381
|
-
let e =
|
|
1397
|
+
let Hi = y(() => {
|
|
1398
|
+
if (!X.value) return "";
|
|
1399
|
+
let e = X.value, t = isNaN(e.v.x) ? "-" : m(R.value.style.layout.plots.selectors.labels.x.formatter, e.v.x, n({
|
|
1382
1400
|
p: R.value.style.tooltip.prefix,
|
|
1383
1401
|
v: e.v.x,
|
|
1384
1402
|
s: R.value.style.tooltip.suffix,
|
|
@@ -1401,7 +1419,7 @@ var Ve = /* @__PURE__ */ e({ default: () => vn }), He = ["id"], Ue = ["id"], We
|
|
|
1401
1419
|
`${R.value.style.layout.dataLabels.xAxis.name}: ${t}`,
|
|
1402
1420
|
`${R.value.style.layout.dataLabels.yAxis.name}: ${r}`
|
|
1403
1421
|
].filter(Boolean).join(". ");
|
|
1404
|
-
}),
|
|
1422
|
+
}), Ui = y(() => K.value.flatMap((e, t) => e.plots.map((n) => ({
|
|
1405
1423
|
...n,
|
|
1406
1424
|
seriesIndex: t,
|
|
1407
1425
|
seriesId: e.id,
|
|
@@ -1410,29 +1428,29 @@ var Ve = /* @__PURE__ */ e({ default: () => vn }), He = ["id"], Ue = ["id"], We
|
|
|
1410
1428
|
color: e.color
|
|
1411
1429
|
})))), $ = y(() => {
|
|
1412
1430
|
let e = /* @__PURE__ */ new Map();
|
|
1413
|
-
return
|
|
1431
|
+
return Ui.value.forEach((t, n) => {
|
|
1414
1432
|
e.set(t.id, n);
|
|
1415
1433
|
}), e;
|
|
1416
|
-
}),
|
|
1417
|
-
headers:
|
|
1418
|
-
rows:
|
|
1434
|
+
}), Wi = y(() => ({
|
|
1435
|
+
headers: di.value?.colNames ?? [],
|
|
1436
|
+
rows: di.value?.a11yBody ?? []
|
|
1419
1437
|
}));
|
|
1420
1438
|
return ve({
|
|
1421
|
-
getData:
|
|
1422
|
-
getImage:
|
|
1423
|
-
generatePdf:
|
|
1424
|
-
generateCsv:
|
|
1425
|
-
generateImage:
|
|
1426
|
-
generateSvg:
|
|
1427
|
-
hideSeries:
|
|
1428
|
-
showSeries:
|
|
1429
|
-
toggleTable:
|
|
1430
|
-
toggleTooltip:
|
|
1431
|
-
toggleAnnotator:
|
|
1432
|
-
toggleFullscreen:
|
|
1433
|
-
copyAlt:
|
|
1439
|
+
getData: Wr,
|
|
1440
|
+
getImage: vi,
|
|
1441
|
+
generatePdf: xr,
|
|
1442
|
+
generateCsv: ui,
|
|
1443
|
+
generateImage: Sr,
|
|
1444
|
+
generateSvg: Fi,
|
|
1445
|
+
hideSeries: li,
|
|
1446
|
+
showSeries: ci,
|
|
1447
|
+
toggleTable: mi,
|
|
1448
|
+
toggleTooltip: hi,
|
|
1449
|
+
toggleAnnotator: _i,
|
|
1450
|
+
toggleFullscreen: pi,
|
|
1451
|
+
copyAlt: Li
|
|
1434
1452
|
}), (e, t) => (D(), S("div", {
|
|
1435
|
-
class: Pe(`vue-data-ui-component vue-ui-scatter ${
|
|
1453
|
+
class: Pe(`vue-data-ui-component vue-ui-scatter ${fi.value ? "vue-data-ui-wrapper-fullscreen" : ""} ${R.value.useCssAnimation ? "" : "vue-ui-dna"}`),
|
|
1436
1454
|
ref_key: "scatterChart",
|
|
1437
1455
|
ref: I,
|
|
1438
1456
|
id: `vue-ui-scatter_${F.value}`,
|
|
@@ -1446,12 +1464,12 @@ var Ve = /* @__PURE__ */ e({ default: () => vn }), He = ["id"], Ue = ["id"], We
|
|
|
1446
1464
|
id: `chart-instructions-${F.value}`,
|
|
1447
1465
|
class: "sr-only"
|
|
1448
1466
|
}, [C("p", null, j(R.value.a11y.translations.keyboardNavigation), 1)], 8, Ue),
|
|
1449
|
-
|
|
1450
|
-
|
|
1467
|
+
B.value.showTooltip ? x("", !0) : (D(), S("div", We, j(Hi.value), 1)),
|
|
1468
|
+
Wi.value?.rows?.length && An.value ? (D(), b(Se, {
|
|
1451
1469
|
key: 1,
|
|
1452
1470
|
uid: F.value,
|
|
1453
|
-
head:
|
|
1454
|
-
body:
|
|
1471
|
+
head: Wi.value.headers,
|
|
1472
|
+
body: Wi.value.rows,
|
|
1455
1473
|
notice: R.value.a11y.translations.tableAvailable,
|
|
1456
1474
|
caption: R.value.a11y.translations.tableCaption
|
|
1457
1475
|
}, null, 8, [
|
|
@@ -1466,9 +1484,9 @@ var Ve = /* @__PURE__ */ e({ default: () => vn }), He = ["id"], Ue = ["id"], We
|
|
|
1466
1484
|
svgRef: M(z),
|
|
1467
1485
|
backgroundColor: R.value.style.backgroundColor,
|
|
1468
1486
|
color: R.value.style.color,
|
|
1469
|
-
active:
|
|
1487
|
+
active: gi.value,
|
|
1470
1488
|
isCursorPointer: ar.value,
|
|
1471
|
-
onClose:
|
|
1489
|
+
onClose: _i
|
|
1472
1490
|
}, {
|
|
1473
1491
|
"annotator-action-close": N(() => [A(e.$slots, "annotator-action-close", {}, void 0, !0)]),
|
|
1474
1492
|
"annotator-action-color": N(({ color: t }) => [A(e.$slots, "annotator-action-color", T(w({ color: t })), void 0, !0)]),
|
|
@@ -1484,7 +1502,7 @@ var Ve = /* @__PURE__ */ e({ default: () => vn }), He = ["id"], Ue = ["id"], We
|
|
|
1484
1502
|
"active",
|
|
1485
1503
|
"isCursorPointer"
|
|
1486
1504
|
])) : x("", !0),
|
|
1487
|
-
|
|
1505
|
+
Cr.value ? (D(), S("div", {
|
|
1488
1506
|
key: 3,
|
|
1489
1507
|
ref_key: "noTitle",
|
|
1490
1508
|
ref: Ln,
|
|
@@ -1516,8 +1534,8 @@ var Ve = /* @__PURE__ */ e({ default: () => vn }), He = ["id"], Ue = ["id"], We
|
|
|
1516
1534
|
key: `user_options_${Nn.value}`,
|
|
1517
1535
|
backgroundColor: R.value.style.backgroundColor,
|
|
1518
1536
|
color: R.value.style.color,
|
|
1519
|
-
isImaging: M(
|
|
1520
|
-
isPrinting: M(
|
|
1537
|
+
isImaging: M(br),
|
|
1538
|
+
isPrinting: M(yr),
|
|
1521
1539
|
uid: F.value,
|
|
1522
1540
|
hasTooltip: R.value.userOptions.buttons.tooltip && R.value.style.tooltip.show,
|
|
1523
1541
|
hasPdf: R.value.userOptions.buttons.pdf,
|
|
@@ -1527,26 +1545,26 @@ var Ve = /* @__PURE__ */ e({ default: () => vn }), He = ["id"], Ue = ["id"], We
|
|
|
1527
1545
|
hasTable: R.value.userOptions.buttons.table,
|
|
1528
1546
|
hasFullscreen: R.value.userOptions.buttons.fullscreen,
|
|
1529
1547
|
hasAltCopy: R.value.userOptions.buttons.altCopy,
|
|
1530
|
-
isTooltip:
|
|
1531
|
-
isFullscreen:
|
|
1548
|
+
isTooltip: B.value.showTooltip,
|
|
1549
|
+
isFullscreen: fi.value,
|
|
1532
1550
|
titles: { ...R.value.userOptions.buttonTitles },
|
|
1533
1551
|
chartElement: I.value,
|
|
1534
1552
|
position: R.value.userOptions.position,
|
|
1535
1553
|
hasAnnotator: R.value.userOptions.buttons.annotator,
|
|
1536
|
-
isAnnotation:
|
|
1554
|
+
isAnnotation: gi.value,
|
|
1537
1555
|
callbacks: R.value.userOptions.callbacks,
|
|
1538
1556
|
printScale: R.value.userOptions.print.scale,
|
|
1539
1557
|
tableDialog: R.value.table.useDialog,
|
|
1540
1558
|
isCursorPointer: ar.value,
|
|
1541
|
-
onToggleFullscreen:
|
|
1542
|
-
onGeneratePdf: M(
|
|
1543
|
-
onGenerateCsv:
|
|
1544
|
-
onGenerateImage:
|
|
1545
|
-
onGenerateSvg:
|
|
1546
|
-
onToggleTable:
|
|
1547
|
-
onToggleTooltip:
|
|
1548
|
-
onToggleAnnotator:
|
|
1549
|
-
onCopyAlt:
|
|
1559
|
+
onToggleFullscreen: pi,
|
|
1560
|
+
onGeneratePdf: M(xr),
|
|
1561
|
+
onGenerateCsv: ui,
|
|
1562
|
+
onGenerateImage: Ii,
|
|
1563
|
+
onGenerateSvg: Fi,
|
|
1564
|
+
onToggleTable: mi,
|
|
1565
|
+
onToggleTooltip: hi,
|
|
1566
|
+
onToggleAnnotator: _i,
|
|
1567
|
+
onCopyAlt: Li,
|
|
1550
1568
|
style: E({ visibility: M(pr) ? M(dr) ? "visible" : "hidden" : "visible" })
|
|
1551
1569
|
}, Oe({ _: 2 }, [
|
|
1552
1570
|
e.$slots.menuIcon ? {
|
|
@@ -1615,50 +1633,50 @@ var Ve = /* @__PURE__ */ e({ default: () => vn }), He = ["id"], Ue = ["id"], We
|
|
|
1615
1633
|
xmlns: M(re),
|
|
1616
1634
|
"aria-describedby": `chart-instructions-${F.value}`,
|
|
1617
1635
|
class: Pe({
|
|
1618
|
-
"vue-data-ui-fullscreen--on":
|
|
1619
|
-
"vue-data-ui-fulscreen--off": !
|
|
1636
|
+
"vue-data-ui-fullscreen--on": fi.value,
|
|
1637
|
+
"vue-data-ui-fulscreen--off": !fi.value,
|
|
1620
1638
|
animated: R.value.useCssAnimation
|
|
1621
1639
|
}),
|
|
1622
|
-
viewBox: `0 0 ${
|
|
1640
|
+
viewBox: `0 0 ${V.value.width <= 0 ? 10 : V.value.width} ${V.value.height <= 0 ? 10 : V.value.height}`,
|
|
1623
1641
|
style: E(`max-width:100%;overflow:visible;background:transparent;color:${R.value.style.color}`),
|
|
1624
|
-
onMouseleave:
|
|
1642
|
+
onMouseleave: xi,
|
|
1625
1643
|
tabindex: "0",
|
|
1626
|
-
onFocus:
|
|
1627
|
-
onBlur:
|
|
1628
|
-
onKeydown:
|
|
1644
|
+
onFocus: zi,
|
|
1645
|
+
onBlur: Bi,
|
|
1646
|
+
onKeydown: Vi
|
|
1629
1647
|
}, [
|
|
1630
1648
|
Ae(M(wn)),
|
|
1631
1649
|
e.$slots["chart-background"] ? (D(), S("foreignObject", {
|
|
1632
1650
|
key: 0,
|
|
1633
1651
|
x: 0,
|
|
1634
1652
|
y: 0,
|
|
1635
|
-
width:
|
|
1636
|
-
height:
|
|
1653
|
+
width: V.value.width <= 0 ? 10 : V.value.width,
|
|
1654
|
+
height: V.value.height <= 0 ? 10 : V.value.height,
|
|
1637
1655
|
style: { pointerEvents: "none" }
|
|
1638
1656
|
}, [A(e.$slots, "chart-background", {}, void 0, !0)], 8, Je)) : x("", !0),
|
|
1639
1657
|
R.value.style.layout.axis.show ? (D(), S("g", Ye, [C("line", {
|
|
1640
|
-
x1:
|
|
1641
|
-
x2:
|
|
1642
|
-
y1:
|
|
1643
|
-
y2:
|
|
1658
|
+
x1: W.value.x,
|
|
1659
|
+
x2: W.value.x,
|
|
1660
|
+
y1: H.value.top,
|
|
1661
|
+
y2: H.value.bottom,
|
|
1644
1662
|
stroke: R.value.style.layout.axis.stroke,
|
|
1645
1663
|
"stroke-width": R.value.style.layout.axis.strokeWidth,
|
|
1646
1664
|
"stroke-linecap": "round"
|
|
1647
1665
|
}, null, 8, Xe), C("line", {
|
|
1648
|
-
x1:
|
|
1649
|
-
x2:
|
|
1650
|
-
y1:
|
|
1651
|
-
y2:
|
|
1666
|
+
x1: H.value.left,
|
|
1667
|
+
x2: H.value.right,
|
|
1668
|
+
y1: W.value.y,
|
|
1669
|
+
y2: W.value.y,
|
|
1652
1670
|
stroke: R.value.style.layout.axis.stroke,
|
|
1653
1671
|
"stroke-width": R.value.style.layout.axis.strokeWidth,
|
|
1654
1672
|
"stroke-linecap": "round"
|
|
1655
1673
|
}, null, 8, Ze)])) : x("", !0),
|
|
1656
|
-
R.value.style.layout.dataLabels.xAxis.scales.verticalLines.show ? (D(), S("g", Qe, [(D(!0), S(v, null, k(
|
|
1674
|
+
R.value.style.layout.dataLabels.xAxis.scales.verticalLines.show ? (D(), S("g", Qe, [(D(!0), S(v, null, k(Fr.value, (e, t) => (D(), S("line", {
|
|
1657
1675
|
key: `scatter-x-scale-line-${F.value}-${t}`,
|
|
1658
1676
|
x1: e.x,
|
|
1659
1677
|
x2: e.x,
|
|
1660
|
-
y1:
|
|
1661
|
-
y2:
|
|
1678
|
+
y1: H.value.top,
|
|
1679
|
+
y2: H.value.bottom,
|
|
1662
1680
|
stroke: R.value.style.layout.dataLabels.xAxis.scales.verticalLines.stroke,
|
|
1663
1681
|
"stroke-width": R.value.style.layout.dataLabels.xAxis.scales.verticalLines.strokeWidth,
|
|
1664
1682
|
"stroke-linecap": "round"
|
|
@@ -1667,22 +1685,22 @@ var Ve = /* @__PURE__ */ e({ default: () => vn }), He = ["id"], Ue = ["id"], We
|
|
|
1667
1685
|
key: 3,
|
|
1668
1686
|
ref_key: "xAxisScaleLabels",
|
|
1669
1687
|
ref: $n
|
|
1670
|
-
}, [(D(!0), S(v, null, k(
|
|
1688
|
+
}, [(D(!0), S(v, null, k(Fr.value, (e, t) => (D(), S("g", {
|
|
1671
1689
|
class: "vue-ui-scatter-scale-group",
|
|
1672
1690
|
key: `scatter-x-scale-${F.value}-${t}`,
|
|
1673
|
-
opacity: +!
|
|
1691
|
+
opacity: +!Lr.value,
|
|
1674
1692
|
style: { transition: "opacity 0.1s ease-in-out" }
|
|
1675
1693
|
}, [C("line", {
|
|
1676
1694
|
x1: e.x,
|
|
1677
1695
|
x2: e.x,
|
|
1678
|
-
y1:
|
|
1679
|
-
y2:
|
|
1696
|
+
y1: W.value.y - 4,
|
|
1697
|
+
y2: W.value.y + 4,
|
|
1680
1698
|
stroke: R.value.style.layout.axis.stroke,
|
|
1681
1699
|
"stroke-width": R.value.style.layout.axis.strokeWidth,
|
|
1682
1700
|
"stroke-linecap": "round"
|
|
1683
1701
|
}, null, 8, tt), C("text", {
|
|
1684
1702
|
x: e.x,
|
|
1685
|
-
y:
|
|
1703
|
+
y: W.value.y + R.value.style.layout.dataLabels.xAxis.scales.labels.fontSize + 6 + R.value.style.layout.dataLabels.xAxis.scales.labels.offsetY,
|
|
1686
1704
|
"text-anchor": "middle",
|
|
1687
1705
|
"font-size": R.value.style.layout.dataLabels.xAxis.scales.labels.fontSize,
|
|
1688
1706
|
fill: R.value.style.layout.dataLabels.xAxis.scales.labels.color,
|
|
@@ -1690,10 +1708,10 @@ var Ve = /* @__PURE__ */ e({ default: () => vn }), He = ["id"], Ue = ["id"], We
|
|
|
1690
1708
|
"stroke-width": "2",
|
|
1691
1709
|
"paint-order": "stroke"
|
|
1692
1710
|
}, j(e.label), 9, nt)], 8, et))), 128))], 512)) : x("", !0),
|
|
1693
|
-
R.value.style.layout.dataLabels.yAxis.scales.horizontalLines.show ? (D(), S("g", rt, [(D(!0), S(v, null, k(
|
|
1711
|
+
R.value.style.layout.dataLabels.yAxis.scales.horizontalLines.show ? (D(), S("g", rt, [(D(!0), S(v, null, k(Ir.value, (e, t) => (D(), S("line", {
|
|
1694
1712
|
key: `scatter-y-scale-line-${F.value}-${t}`,
|
|
1695
|
-
x1:
|
|
1696
|
-
x2:
|
|
1713
|
+
x1: H.value.left,
|
|
1714
|
+
x2: H.value.right,
|
|
1697
1715
|
y1: e.y,
|
|
1698
1716
|
y2: e.y,
|
|
1699
1717
|
stroke: R.value.style.layout.dataLabels.yAxis.scales.horizontalLines.stroke,
|
|
@@ -1704,19 +1722,19 @@ var Ve = /* @__PURE__ */ e({ default: () => vn }), He = ["id"], Ue = ["id"], We
|
|
|
1704
1722
|
key: 5,
|
|
1705
1723
|
ref_key: "yAxisScaleLabels",
|
|
1706
1724
|
ref: Qn,
|
|
1707
|
-
opacity: +!
|
|
1725
|
+
opacity: +!Rr.value,
|
|
1708
1726
|
style: { transition: "opacity 0.1s ease-in-out" },
|
|
1709
1727
|
class: "vue-ui-scatter-scale-group"
|
|
1710
|
-
}, [(D(!0), S(v, null, k(
|
|
1711
|
-
x1:
|
|
1712
|
-
x2:
|
|
1728
|
+
}, [(D(!0), S(v, null, k(Ir.value, (e, t) => (D(), S("g", { key: `scatter-y-scale-${F.value}-${t}` }, [C("line", {
|
|
1729
|
+
x1: W.value.x - 4,
|
|
1730
|
+
x2: W.value.x + 4,
|
|
1713
1731
|
y1: e.y,
|
|
1714
1732
|
y2: e.y,
|
|
1715
1733
|
stroke: R.value.style.layout.axis.stroke,
|
|
1716
1734
|
"stroke-width": R.value.style.layout.axis.strokeWidth,
|
|
1717
1735
|
"stroke-linecap": "round"
|
|
1718
1736
|
}, null, 8, ot), C("text", {
|
|
1719
|
-
x:
|
|
1737
|
+
x: W.value.x - R.value.style.layout.dataLabels.yAxis.scales.labels.fontSize / 2 - 8 + R.value.style.layout.dataLabels.yAxis.scales.labels.offsetX,
|
|
1720
1738
|
y: e.y + R.value.style.layout.dataLabels.yAxis.scales.labels.fontSize / 3,
|
|
1721
1739
|
"text-anchor": "end",
|
|
1722
1740
|
"font-size": R.value.style.layout.dataLabels.yAxis.scales.labels.fontSize,
|
|
@@ -1751,43 +1769,43 @@ var Ve = /* @__PURE__ */ e({ default: () => vn }), He = ["id"], Ue = ["id"], We
|
|
|
1751
1769
|
offset: "100%",
|
|
1752
1770
|
"stop-color": R.value.style.layout.marginalBars.fill
|
|
1753
1771
|
}, null, 8, mt)], 8, ft)]),
|
|
1754
|
-
(D(!0), S(v, null, k(
|
|
1755
|
-
e &&
|
|
1772
|
+
(D(!0), S(v, null, k(J.value.x, (e, n) => (D(), S("g", null, [
|
|
1773
|
+
e && J.value.avgX[n] ? (D(), S("rect", {
|
|
1756
1774
|
key: 0,
|
|
1757
|
-
x:
|
|
1758
|
-
y:
|
|
1759
|
-
width:
|
|
1760
|
-
height: e /
|
|
1775
|
+
x: J.value.avgX[n] - H.value.width / q.value / 2,
|
|
1776
|
+
y: H.value.top - R.value.style.layout.marginalBars.offset - e / J.value.maxX * R.value.style.layout.marginalBars.size,
|
|
1777
|
+
width: H.value.width / q.value <= 0 ? 1e-4 : H.value.width / q.value,
|
|
1778
|
+
height: e / J.value.maxX * R.value.style.layout.marginalBars.size <= 0 ? 1e-4 : e / J.value.maxX * R.value.style.layout.marginalBars.size,
|
|
1761
1779
|
fill: R.value.style.layout.marginalBars.useGradient ? `url(#marginal_x_${F.value})` : R.value.style.layout.marginalBars.fill,
|
|
1762
1780
|
style: E([`opacity:${R.value.style.layout.marginalBars.opacity}`, { "pointer-events": "none" }]),
|
|
1763
1781
|
stroke: R.value.style.backgroundColor,
|
|
1764
1782
|
"stroke-width": R.value.style.layout.marginalBars.strokeWidth,
|
|
1765
1783
|
rx: R.value.style.layout.marginalBars.borderRadius
|
|
1766
1784
|
}, null, 12, ht)) : x("", !0),
|
|
1767
|
-
|
|
1785
|
+
J.value.avgX[n] ? (D(), S("rect", {
|
|
1768
1786
|
key: 1,
|
|
1769
|
-
x:
|
|
1770
|
-
y:
|
|
1771
|
-
width:
|
|
1787
|
+
x: J.value.avgX[n] - H.value.width / q.value / 2,
|
|
1788
|
+
y: H.value.top - R.value.style.layout.marginalBars.offset - R.value.style.layout.marginalBars.size,
|
|
1789
|
+
width: H.value.width / q.value <= 0 ? 1e-4 : H.value.width / q.value,
|
|
1772
1790
|
height: Math.max(.1, R.value.style.layout.marginalBars.size),
|
|
1773
1791
|
fill: "transparent",
|
|
1774
|
-
onMouseenter: (e) =>
|
|
1775
|
-
onMouseleave: t[0] ||= (e) =>
|
|
1792
|
+
onMouseenter: (e) => yi(n),
|
|
1793
|
+
onMouseleave: t[0] ||= (e) => xi()
|
|
1776
1794
|
}, null, 40, gt)) : x("", !0),
|
|
1777
|
-
|
|
1795
|
+
J.value.avgX[n] && Hn.value != null && Hn.value === n ? (D(), S("g", _t, [
|
|
1778
1796
|
C("rect", {
|
|
1779
|
-
x:
|
|
1780
|
-
y:
|
|
1781
|
-
width:
|
|
1782
|
-
height:
|
|
1797
|
+
x: J.value.avgX[n] - H.value.width / q.value / 2,
|
|
1798
|
+
y: H.value.top,
|
|
1799
|
+
width: H.value.width / q.value <= 0 ? 1e-4 : H.value.width / q.value,
|
|
1800
|
+
height: H.value.height,
|
|
1783
1801
|
fill: R.value.style.layout.marginalBars.highlighter.color,
|
|
1784
1802
|
"fill-opacity": R.value.style.layout.marginalBars.highlighter.opacity
|
|
1785
1803
|
}, null, 8, vt),
|
|
1786
1804
|
C("line", {
|
|
1787
|
-
x1:
|
|
1788
|
-
x2:
|
|
1805
|
+
x1: J.value.avgX[n] - H.value.width / q.value / 2,
|
|
1806
|
+
x2: J.value.avgX[n] - H.value.width / q.value / 2,
|
|
1789
1807
|
y1: 0,
|
|
1790
|
-
y2:
|
|
1808
|
+
y2: H.value.top + H.value.height,
|
|
1791
1809
|
stroke: R.value.style.layout.marginalBars.highlighter.stroke,
|
|
1792
1810
|
"stroke-dasharray": R.value.style.layout.marginalBars.highlighter.strokeDasharray,
|
|
1793
1811
|
"stroke-width": R.value.style.layout.marginalBars.highlighter.strokeWidth,
|
|
@@ -1797,10 +1815,10 @@ var Ve = /* @__PURE__ */ e({ default: () => vn }), He = ["id"], Ue = ["id"], We
|
|
|
1797
1815
|
}
|
|
1798
1816
|
}, null, 8, yt),
|
|
1799
1817
|
C("line", {
|
|
1800
|
-
x1:
|
|
1801
|
-
x2:
|
|
1818
|
+
x1: J.value.avgX[n] - H.value.width / q.value / 2 + (H.value.width / q.value <= 0 ? 1e-4 : H.value.width / q.value),
|
|
1819
|
+
x2: J.value.avgX[n] - H.value.width / q.value / 2 + (H.value.width / q.value <= 0 ? 1e-4 : H.value.width / q.value),
|
|
1802
1820
|
y1: 0,
|
|
1803
|
-
y2:
|
|
1821
|
+
y2: H.value.top + H.value.height,
|
|
1804
1822
|
stroke: R.value.style.layout.marginalBars.highlighter.stroke,
|
|
1805
1823
|
"stroke-dasharray": R.value.style.layout.marginalBars.highlighter.strokeDasharray,
|
|
1806
1824
|
"stroke-width": R.value.style.layout.marginalBars.highlighter.strokeWidth,
|
|
@@ -1811,43 +1829,43 @@ var Ve = /* @__PURE__ */ e({ default: () => vn }), He = ["id"], Ue = ["id"], We
|
|
|
1811
1829
|
}, null, 8, bt)
|
|
1812
1830
|
])) : x("", !0)
|
|
1813
1831
|
]))), 256)),
|
|
1814
|
-
(D(!0), S(v, null, k(
|
|
1815
|
-
e &&
|
|
1832
|
+
(D(!0), S(v, null, k(J.value.y, (e, n) => (D(), S("g", null, [
|
|
1833
|
+
e && J.value.avgY[n] ? (D(), S("rect", {
|
|
1816
1834
|
key: 0,
|
|
1817
|
-
x:
|
|
1818
|
-
y:
|
|
1819
|
-
height:
|
|
1820
|
-
width: e /
|
|
1835
|
+
x: H.value.right + R.value.style.layout.marginalBars.offset,
|
|
1836
|
+
y: J.value.avgY[n] - H.value.height / q.value / 2,
|
|
1837
|
+
height: H.value.height / q.value <= 0 ? 1e-4 : H.value.height / q.value,
|
|
1838
|
+
width: e / J.value.maxY * R.value.style.layout.marginalBars.size <= 0 ? 1e-4 : e / J.value.maxY * R.value.style.layout.marginalBars.size,
|
|
1821
1839
|
fill: R.value.style.layout.marginalBars.useGradient ? `url(#marginal_y_${F.value})` : R.value.style.layout.marginalBars.fill,
|
|
1822
1840
|
style: E([`opacity:${R.value.style.layout.marginalBars.opacity}`, { "pointer-events": "none" }]),
|
|
1823
1841
|
stroke: R.value.style.backgroundColor,
|
|
1824
1842
|
"stroke-width": R.value.style.layout.marginalBars.strokeWidth,
|
|
1825
1843
|
rx: R.value.style.layout.marginalBars.borderRadius
|
|
1826
1844
|
}, null, 12, xt)) : x("", !0),
|
|
1827
|
-
|
|
1845
|
+
J.value.avgY[n] ? (D(), S("rect", {
|
|
1828
1846
|
key: 1,
|
|
1829
|
-
x:
|
|
1830
|
-
y:
|
|
1847
|
+
x: H.value.right + R.value.style.layout.marginalBars.offset,
|
|
1848
|
+
y: J.value.avgY[n] - H.value.height / q.value / 2,
|
|
1831
1849
|
width: Math.max(.1, R.value.style.layout.marginalBars.size),
|
|
1832
|
-
height:
|
|
1850
|
+
height: H.value.height / q.value <= 0 ? 1e-4 : H.value.height / q.value,
|
|
1833
1851
|
fill: "transparent",
|
|
1834
|
-
onMouseenter: (e) =>
|
|
1835
|
-
onMouseleave: t[1] ||= (e) =>
|
|
1852
|
+
onMouseenter: (e) => bi(n),
|
|
1853
|
+
onMouseleave: t[1] ||= (e) => xi()
|
|
1836
1854
|
}, null, 40, St)) : x("", !0),
|
|
1837
|
-
|
|
1855
|
+
J.value.avgY[n] && Un.value != null && Un.value === n ? (D(), S("g", Ct, [
|
|
1838
1856
|
C("rect", {
|
|
1839
|
-
x:
|
|
1840
|
-
y:
|
|
1841
|
-
width:
|
|
1842
|
-
height:
|
|
1857
|
+
x: H.value.left,
|
|
1858
|
+
y: J.value.avgY[n] - H.value.height / q.value / 2,
|
|
1859
|
+
width: H.value.width,
|
|
1860
|
+
height: H.value.height / q.value <= 0 ? 1e-4 : H.value.height / q.value,
|
|
1843
1861
|
fill: R.value.style.layout.marginalBars.highlighter.color,
|
|
1844
1862
|
"fill-opacity": R.value.style.layout.marginalBars.highlighter.opacity
|
|
1845
1863
|
}, null, 8, wt),
|
|
1846
1864
|
C("line", {
|
|
1847
|
-
x1:
|
|
1848
|
-
x2:
|
|
1849
|
-
y1:
|
|
1850
|
-
y2:
|
|
1865
|
+
x1: H.value.left,
|
|
1866
|
+
x2: V.value.width,
|
|
1867
|
+
y1: J.value.avgY[n] - H.value.height / q.value / 2,
|
|
1868
|
+
y2: J.value.avgY[n] - H.value.height / q.value / 2,
|
|
1851
1869
|
stroke: R.value.style.layout.marginalBars.highlighter.stroke,
|
|
1852
1870
|
"stroke-dasharray": R.value.style.layout.marginalBars.highlighter.strokeDasharray,
|
|
1853
1871
|
"stroke-width": R.value.style.layout.marginalBars.highlighter.strokeWidth,
|
|
@@ -1857,10 +1875,10 @@ var Ve = /* @__PURE__ */ e({ default: () => vn }), He = ["id"], Ue = ["id"], We
|
|
|
1857
1875
|
}
|
|
1858
1876
|
}, null, 8, Tt),
|
|
1859
1877
|
C("line", {
|
|
1860
|
-
x1:
|
|
1861
|
-
x2:
|
|
1862
|
-
y1:
|
|
1863
|
-
y2:
|
|
1878
|
+
x1: H.value.left,
|
|
1879
|
+
x2: V.value.width,
|
|
1880
|
+
y1: J.value.avgY[n] - H.value.height / q.value / 2 + (H.value.height / q.value <= 0 ? 1e-4 : H.value.height / q.value),
|
|
1881
|
+
y2: J.value.avgY[n] - H.value.height / q.value / 2 + (H.value.height / q.value <= 0 ? 1e-4 : H.value.height / q.value),
|
|
1864
1882
|
stroke: R.value.style.layout.marginalBars.highlighter.stroke,
|
|
1865
1883
|
"stroke-dasharray": R.value.style.layout.marginalBars.highlighter.strokeDasharray,
|
|
1866
1884
|
"stroke-width": R.value.style.layout.marginalBars.highlighter.strokeWidth,
|
|
@@ -1871,7 +1889,7 @@ var Ve = /* @__PURE__ */ e({ default: () => vn }), He = ["id"], Ue = ["id"], We
|
|
|
1871
1889
|
}, null, 8, Et)
|
|
1872
1890
|
])) : x("", !0)
|
|
1873
1891
|
]))), 256)),
|
|
1874
|
-
R.value.style.layout.marginalBars.showLines ? (D(), S("g", Dt, [(D(!0), S(v, null, k(
|
|
1892
|
+
R.value.style.layout.marginalBars.showLines ? (D(), S("g", Dt, [(D(!0), S(v, null, k(Kr.value, (e) => (D(), S(v, null, [
|
|
1875
1893
|
L.value.includes(e.id) ? x("", !0) : (D(), S("path", {
|
|
1876
1894
|
key: 0,
|
|
1877
1895
|
d: `M ${e.dX}`,
|
|
@@ -1910,7 +1928,7 @@ var Ve = /* @__PURE__ */ e({ default: () => vn }), He = ["id"], Ue = ["id"], We
|
|
|
1910
1928
|
}, null, 8, jt))
|
|
1911
1929
|
], 64))), 256))])) : x("", !0)
|
|
1912
1930
|
])) : x("", !0),
|
|
1913
|
-
R.value.style.layout.plots.giftWrap.show ? (D(), S("g", Mt, [(D(!0), S(v, null, k(
|
|
1931
|
+
R.value.style.layout.plots.giftWrap.show ? (D(), S("g", Mt, [(D(!0), S(v, null, k(K.value, (e, t) => (D(), S("g", null, [e.plots.length > 2 ? (D(), S("polygon", {
|
|
1914
1932
|
key: 0,
|
|
1915
1933
|
points: M(ie)({ series: e.plots }),
|
|
1916
1934
|
fill: M(h)(e.color, R.value.style.layout.plots.giftWrap.fillOpacity * 100),
|
|
@@ -1920,31 +1938,33 @@ var Ve = /* @__PURE__ */ e({ default: () => vn }), He = ["id"], Ue = ["id"], We
|
|
|
1920
1938
|
"stroke-linejoin": "round",
|
|
1921
1939
|
"stroke-linecap": "round"
|
|
1922
1940
|
}, null, 8, Nt)) : x("", !0)]))), 256))])) : x("", !0),
|
|
1923
|
-
R.value.usePerformanceMode ? x("", !0) : (D(!0), S(v, { key: 8 }, k(
|
|
1941
|
+
R.value.usePerformanceMode ? x("", !0) : (D(!0), S(v, { key: 8 }, k(K.value, (e, t) => (D(), S("g", { key: e.id }, [!e.shape || e.shape === "circle" ? (D(), S("g", Pt, [(D(!0), S(v, null, k(e.plots, (n, r) => (D(), S("circle", {
|
|
1942
|
+
key: n.id,
|
|
1924
1943
|
cx: n.x,
|
|
1925
1944
|
cy: n.y,
|
|
1926
|
-
r:
|
|
1927
|
-
fill: M(h)(e.color,
|
|
1945
|
+
r: Y.value && Y.value === n.id || Z.value.includes(n.id) ? n.weight * R.value.style.layout.plots.hoverRadiusRatio : n.weight,
|
|
1946
|
+
fill: M(h)(e.color, Y.value && Y.value !== n.id || Z.value.length && !Z.value.includes(n.id) ? R.value.style.layout.plots.opacityNotSelected * 100 : R.value.style.layout.plots.opacity * 100),
|
|
1928
1947
|
stroke: R.value.style.layout.plots.stroke,
|
|
1929
1948
|
"stroke-width": R.value.style.layout.plots.strokeWidth,
|
|
1930
|
-
style: E(`opacity:${
|
|
1931
|
-
onMouseover: (e) =>
|
|
1932
|
-
onMouseleave: (e) =>
|
|
1933
|
-
onClick: (e) =>
|
|
1934
|
-
}, null, 44, Ft))),
|
|
1949
|
+
style: E(`opacity:${Y.value && Y.value === n.id || Z.value.includes(n.id) ? 1 : R.value.style.layout.plots.significance.useDistanceOpacity ? 1 - Math.abs(n.deviation) / Ur.value : R.value.style.layout.plots.significance.show && Math.abs(n.deviation) > R.value.style.layout.plots.significance.deviationThreshold ? R.value.style.layout.plots.significance.opacity : 1}`),
|
|
1950
|
+
onMouseover: (e) => ni(n, t, "pointer", $.value.get(n.id)),
|
|
1951
|
+
onMouseleave: (e) => ri(n, t),
|
|
1952
|
+
onClick: (e) => ii(n, t)
|
|
1953
|
+
}, null, 44, Ft))), 128))])) : (D(), S("g", It, [(D(!0), S(v, null, k(e.plots, (n, r) => (D(), b(_e, {
|
|
1954
|
+
class: "vue-ui-scatter-datapoint",
|
|
1935
1955
|
plot: {
|
|
1936
1956
|
x: n.x,
|
|
1937
1957
|
y: n.y
|
|
1938
1958
|
},
|
|
1939
|
-
radius:
|
|
1959
|
+
radius: Y.value && Y.value === n.id || Z.value.includes(n.id) ? n.weight * R.value.style.layout.plots.hoverRadiusRatio : n.weight,
|
|
1940
1960
|
shape: e.shape,
|
|
1941
|
-
color: M(h)(e.color,
|
|
1961
|
+
color: M(h)(e.color, Y.value && Y.value !== n.id || Z.value.length && !Z.value.includes(n.id) ? R.value.style.layout.plots.opacityNotSelected * 100 : R.value.style.layout.plots.opacity * 100),
|
|
1942
1962
|
stroke: R.value.style.layout.plots.stroke,
|
|
1943
1963
|
strokeWidth: R.value.style.layout.plots.strokeWidth,
|
|
1944
|
-
style: E(`opacity:${
|
|
1945
|
-
onMouseover: (e) =>
|
|
1946
|
-
onMouseleave: (e) =>
|
|
1947
|
-
onClick: (e) =>
|
|
1964
|
+
style: E(`opacity:${Y.value && Y.value === n.id || Z.value.includes(n.id) ? 1 : R.value.style.layout.plots.significance.useDistanceOpacity ? 1 - Math.abs(n.deviation) / Ur.value : R.value.style.layout.plots.significance.show && Math.abs(n.deviation) > R.value.style.layout.plots.significance.deviationThreshold ? R.value.style.layout.plots.significance.opacity : 1}`),
|
|
1965
|
+
onMouseover: (e) => ni(n, t, "pointer", $.value.get(n.id)),
|
|
1966
|
+
onMouseleave: (e) => ri(n, t),
|
|
1967
|
+
onClick: (e) => ii(n, t)
|
|
1948
1968
|
}, null, 8, [
|
|
1949
1969
|
"plot",
|
|
1950
1970
|
"radius",
|
|
@@ -1957,17 +1977,18 @@ var Ve = /* @__PURE__ */ e({ default: () => vn }), He = ["id"], Ue = ["id"], We
|
|
|
1957
1977
|
"onMouseleave",
|
|
1958
1978
|
"onClick"
|
|
1959
1979
|
]))), 256))])), R.value.style.layout.plots.name.show ? (D(!0), S(v, { key: 2 }, k(e.plots, (e, n) => (D(), S("text", {
|
|
1960
|
-
|
|
1961
|
-
|
|
1980
|
+
class: "vue-ui-scatter-datapoint-label",
|
|
1981
|
+
key: `datalabel-${e.id}`,
|
|
1982
|
+
transform: `translate(${e.x}, ${e.y - e.weight - R.value.style.layout.plots.name.fontSize + R.value.style.layout.plots.name.offsetY})`,
|
|
1962
1983
|
"text-anchor": "middle",
|
|
1963
1984
|
"font-size": R.value.style.layout.plots.name.fontSize,
|
|
1964
|
-
fill: M(h)(R.value.style.layout.plots.name.color,
|
|
1965
|
-
onMouseover: (n) =>
|
|
1966
|
-
onMouseleave: (n) =>
|
|
1967
|
-
onClick: (n) =>
|
|
1968
|
-
}, j(e.clusterName), 41, Lt))),
|
|
1985
|
+
fill: M(h)(R.value.style.layout.plots.name.color, Y.value && Y.value !== e.id || Z.value.length && !Z.value.includes(e.id) ? R.value.style.layout.plots.opacityNotSelected * 100 : 100),
|
|
1986
|
+
onMouseover: (n) => ni(e, t, "pointer", $.value.get(e.id)),
|
|
1987
|
+
onMouseleave: (n) => ri(e, t),
|
|
1988
|
+
onClick: (n) => ii(e, t)
|
|
1989
|
+
}, j(e.clusterName), 41, Lt))), 128)) : x("", !0)]))), 128)),
|
|
1969
1990
|
R.value.usePerformanceMode ? (D(), S(v, { key: 9 }, [
|
|
1970
|
-
C("g", { "clip-path": `url(#clip_path_${F.value})` }, [(D(!0), S(v, null, k(
|
|
1991
|
+
C("g", { "clip-path": `url(#clip_path_${F.value})` }, [(D(!0), S(v, null, k(wi.value, (e) => (D(), S("path", {
|
|
1971
1992
|
key: e.id,
|
|
1972
1993
|
d: e.d,
|
|
1973
1994
|
fill: e.fill,
|
|
@@ -1977,14 +1998,14 @@ var Ve = /* @__PURE__ */ e({ default: () => vn }), He = ["id"], Ue = ["id"], We
|
|
|
1977
1998
|
"vector-effect": "non-scaling-stroke",
|
|
1978
1999
|
"paint-order": "fill"
|
|
1979
2000
|
}, null, 8, zt))), 128))], 8, Rt),
|
|
1980
|
-
|
|
1981
|
-
shape:
|
|
1982
|
-
color:
|
|
2001
|
+
X.value && R.value.style.layout.plots.selectors.show ? (D(), S("g", Bt, [Ae(_e, {
|
|
2002
|
+
shape: X.value.shape || "circle",
|
|
2003
|
+
color: X.value.color,
|
|
1983
2004
|
plot: {
|
|
1984
|
-
x:
|
|
1985
|
-
y:
|
|
2005
|
+
x: X.value.x,
|
|
2006
|
+
y: X.value.y
|
|
1986
2007
|
},
|
|
1987
|
-
radius: Math.max(4 *
|
|
2008
|
+
radius: Math.max(4 * Si[X.value.shape || "circle"], X.value.weight * R.value.style.layout.plots.hoverRadiusRatio),
|
|
1988
2009
|
stroke: R.value.style.layout.plots.stroke,
|
|
1989
2010
|
strokeWidth: R.value.style.layout.plots.strokeWidth
|
|
1990
2011
|
}, null, 8, [
|
|
@@ -1996,22 +2017,22 @@ var Ve = /* @__PURE__ */ e({ default: () => vn }), He = ["id"], Ue = ["id"], We
|
|
|
1996
2017
|
"strokeWidth"
|
|
1997
2018
|
])])) : x("", !0),
|
|
1998
2019
|
C("rect", {
|
|
1999
|
-
x:
|
|
2000
|
-
y:
|
|
2001
|
-
width: Math.max(1e-4,
|
|
2002
|
-
height: Math.max(1e-4,
|
|
2020
|
+
x: H.value.left,
|
|
2021
|
+
y: H.value.top,
|
|
2022
|
+
width: Math.max(1e-4, H.value.width),
|
|
2023
|
+
height: Math.max(1e-4, H.value.height),
|
|
2003
2024
|
fill: "transparent",
|
|
2004
|
-
onMousemove: t[2] ||= (...e) => M(
|
|
2005
|
-
onMouseleave:
|
|
2006
|
-
onClick:
|
|
2025
|
+
onMousemove: t[2] ||= (...e) => M(Ei) && M(Ei)(...e),
|
|
2026
|
+
onMouseleave: Di,
|
|
2027
|
+
onClick: Oi
|
|
2007
2028
|
}, null, 40, Vt)
|
|
2008
2029
|
], 64)) : x("", !0),
|
|
2009
|
-
|
|
2030
|
+
(D(!0), S(v, null, k($r.value, (e) => (D(), S(v, { key: `selector_${e.id}` }, [R.value.style.layout.plots.selectors.show ? (D(), S("g", Ht, [
|
|
2010
2031
|
C("line", {
|
|
2011
|
-
x1:
|
|
2012
|
-
x2:
|
|
2013
|
-
y1:
|
|
2014
|
-
y2:
|
|
2032
|
+
x1: W.value.x,
|
|
2033
|
+
x2: e.x,
|
|
2034
|
+
y1: e.y,
|
|
2035
|
+
y2: e.y,
|
|
2015
2036
|
stroke: R.value.style.layout.plots.selectors.stroke,
|
|
2016
2037
|
"stroke-width": R.value.style.layout.plots.selectors.strokeWidth,
|
|
2017
2038
|
"stroke-dasharray": R.value.style.layout.plots.selectors.strokeDasharray,
|
|
@@ -2019,10 +2040,10 @@ var Ve = /* @__PURE__ */ e({ default: () => vn }), He = ["id"], Ue = ["id"], We
|
|
|
2019
2040
|
class: "line-pointer"
|
|
2020
2041
|
}, null, 8, Ut),
|
|
2021
2042
|
C("line", {
|
|
2022
|
-
x1:
|
|
2023
|
-
x2:
|
|
2024
|
-
y1:
|
|
2025
|
-
y2:
|
|
2043
|
+
x1: e.x,
|
|
2044
|
+
x2: e.x,
|
|
2045
|
+
y1: W.value.y,
|
|
2046
|
+
y2: e.y,
|
|
2026
2047
|
stroke: R.value.style.layout.plots.selectors.stroke,
|
|
2027
2048
|
"stroke-width": R.value.style.layout.plots.selectors.strokeWidth,
|
|
2028
2049
|
"stroke-dasharray": R.value.style.layout.plots.selectors.strokeDasharray,
|
|
@@ -2031,51 +2052,51 @@ var Ve = /* @__PURE__ */ e({ default: () => vn }), He = ["id"], Ue = ["id"], We
|
|
|
2031
2052
|
}, null, 8, Wt),
|
|
2032
2053
|
R.value.style.layout.dataLabels.yAxis.scales.show ? x("", !0) : (D(), S("text", {
|
|
2033
2054
|
key: 0,
|
|
2034
|
-
x:
|
|
2035
|
-
y:
|
|
2055
|
+
x: W.value.x + (e.x > W.value.x ? -6 : 6),
|
|
2056
|
+
y: e.y + R.value.style.layout.plots.selectors.labels.fontSize / 3,
|
|
2036
2057
|
"font-size": R.value.style.layout.plots.selectors.labels.fontSize,
|
|
2037
2058
|
fill: R.value.style.layout.plots.selectors.labels.color,
|
|
2038
2059
|
"font-weight": R.value.style.layout.plots.selectors.labels.bold ? "bold" : "normal",
|
|
2039
|
-
"text-anchor":
|
|
2040
|
-
}, j(M(m)(R.value.style.layout.plots.selectors.labels.y.formatter, M(_)(
|
|
2060
|
+
"text-anchor": e.x > W.value.x ? "end" : "start"
|
|
2061
|
+
}, j(M(m)(R.value.style.layout.plots.selectors.labels.y.formatter, M(_)(e.v.y), M(n)({
|
|
2041
2062
|
p: R.value.style.layout.plots.selectors.labels.prefix,
|
|
2042
|
-
v: M(_)(
|
|
2063
|
+
v: M(_)(e.v.y),
|
|
2043
2064
|
s: R.value.style.layout.plots.selectors.labels.suffix,
|
|
2044
2065
|
r: R.value.style.layout.plots.selectors.labels.rounding
|
|
2045
|
-
}), { datapoint:
|
|
2066
|
+
}), { datapoint: e })), 9, Gt)),
|
|
2046
2067
|
R.value.style.layout.dataLabels.xAxis.scales.show ? x("", !0) : (D(), S("text", {
|
|
2047
2068
|
key: 1,
|
|
2048
|
-
x:
|
|
2049
|
-
y:
|
|
2069
|
+
x: e.x,
|
|
2070
|
+
y: W.value.y + (e.y > W.value.y ? -6 : R.value.style.layout.plots.selectors.labels.fontSize + 6),
|
|
2050
2071
|
"font-size": R.value.style.layout.plots.selectors.labels.fontSize,
|
|
2051
2072
|
fill: R.value.style.layout.plots.selectors.labels.color,
|
|
2052
2073
|
"font-weight": R.value.style.layout.plots.selectors.labels.bold ? "bold" : "normal",
|
|
2053
2074
|
"text-anchor": "middle"
|
|
2054
|
-
}, j(M(m)(R.value.style.layout.plots.selectors.labels.y.formatter, M(_)(
|
|
2075
|
+
}, j(M(m)(R.value.style.layout.plots.selectors.labels.y.formatter, M(_)(e.v.x), M(n)({
|
|
2055
2076
|
p: R.value.style.layout.plots.selectors.labels.prefix,
|
|
2056
|
-
v: M(_)(
|
|
2077
|
+
v: M(_)(e.v.x),
|
|
2057
2078
|
s: R.value.style.layout.plots.selectors.labels.suffix,
|
|
2058
2079
|
r: R.value.style.layout.plots.selectors.labels.rounding
|
|
2059
|
-
}), { datapoint:
|
|
2080
|
+
}), { datapoint: e })), 9, Kt)),
|
|
2060
2081
|
R.value.style.layout.dataLabels.xAxis.scales.show ? (D(), S("text", {
|
|
2061
2082
|
key: 2,
|
|
2062
|
-
x:
|
|
2063
|
-
y:
|
|
2083
|
+
x: e.x,
|
|
2084
|
+
y: W.value.y + R.value.style.layout.dataLabels.xAxis.scales.labels.fontSize + 6 + R.value.style.layout.dataLabels.xAxis.scales.labels.offsetY,
|
|
2064
2085
|
"text-anchor": "middle",
|
|
2065
2086
|
"font-size": R.value.style.layout.dataLabels.xAxis.scales.labels.fontSize,
|
|
2066
2087
|
fill: R.value.style.layout.dataLabels.xAxis.scales.labels.color
|
|
2067
|
-
}, j(
|
|
2088
|
+
}, j(ei(e)), 9, qt)) : x("", !0),
|
|
2068
2089
|
R.value.style.layout.dataLabels.yAxis.scales.show ? (D(), S("text", {
|
|
2069
2090
|
key: 3,
|
|
2070
|
-
x:
|
|
2071
|
-
y:
|
|
2091
|
+
x: W.value.x - R.value.style.layout.dataLabels.yAxis.scales.labels.fontSize / 2 - 8 + R.value.style.layout.dataLabels.yAxis.scales.labels.offsetX,
|
|
2092
|
+
y: e.y + R.value.style.layout.dataLabels.yAxis.scales.labels.fontSize / 3,
|
|
2072
2093
|
"text-anchor": "end",
|
|
2073
2094
|
"font-size": R.value.style.layout.dataLabels.yAxis.scales.labels.fontSize,
|
|
2074
2095
|
fill: R.value.style.layout.dataLabels.yAxis.scales.labels.color
|
|
2075
|
-
}, j(
|
|
2096
|
+
}, j(ti(e)), 9, Jt)) : x("", !0),
|
|
2076
2097
|
C("circle", {
|
|
2077
|
-
cx:
|
|
2078
|
-
cy:
|
|
2098
|
+
cx: W.value.x,
|
|
2099
|
+
cy: e.y,
|
|
2079
2100
|
r: R.value.style.layout.plots.selectors.markers.radius,
|
|
2080
2101
|
fill: R.value.style.layout.plots.selectors.markers.fill,
|
|
2081
2102
|
stroke: R.value.style.layout.plots.selectors.markers.stroke,
|
|
@@ -2083,8 +2104,8 @@ var Ve = /* @__PURE__ */ e({ default: () => vn }), He = ["id"], Ue = ["id"], We
|
|
|
2083
2104
|
class: "line-pointer"
|
|
2084
2105
|
}, null, 8, Yt),
|
|
2085
2106
|
C("circle", {
|
|
2086
|
-
cx:
|
|
2087
|
-
cy:
|
|
2107
|
+
cx: e.x,
|
|
2108
|
+
cy: W.value.y,
|
|
2088
2109
|
r: R.value.style.layout.plots.selectors.markers.radius,
|
|
2089
2110
|
fill: R.value.style.layout.plots.selectors.markers.fill,
|
|
2090
2111
|
stroke: R.value.style.layout.plots.selectors.markers.stroke,
|
|
@@ -2093,21 +2114,21 @@ var Ve = /* @__PURE__ */ e({ default: () => vn }), He = ["id"], Ue = ["id"], We
|
|
|
2093
2114
|
}, null, 8, Xt),
|
|
2094
2115
|
R.value.style.layout.plots.selectors.labels.showName && !R.value.style.layout.plots.name.show ? (D(), S("text", {
|
|
2095
2116
|
key: 4,
|
|
2096
|
-
x:
|
|
2097
|
-
y:
|
|
2117
|
+
x: e.x,
|
|
2118
|
+
y: e.y + (e.y < W.value.y ? -R.value.style.layout.plots.selectors.labels.fontSize / 2 : R.value.style.layout.plots.selectors.labels.fontSize),
|
|
2098
2119
|
"font-size": R.value.style.layout.plots.selectors.labels.fontSize,
|
|
2099
2120
|
fill: R.value.style.layout.plots.selectors.labels.color,
|
|
2100
2121
|
"font-weight": R.value.style.layout.plots.selectors.labels.bold ? "bold" : "normal",
|
|
2101
|
-
"text-anchor":
|
|
2102
|
-
}, j(
|
|
2103
|
-
])) : x("", !0),
|
|
2122
|
+
"text-anchor": e.x < H.value.left + 100 ? "start" : e.x > H.value.right - 100 ? "end" : e.x > W.value.x ? "start" : "end"
|
|
2123
|
+
}, j(e.v.name), 9, Zt)) : x("", !0)
|
|
2124
|
+
])) : x("", !0)], 64))), 128)),
|
|
2104
2125
|
R.value.style.layout.dataLabels.xAxis.show ? (D(), S("g", {
|
|
2105
|
-
key:
|
|
2126
|
+
key: 10,
|
|
2106
2127
|
ref_key: "xAxisLabelLeft",
|
|
2107
2128
|
ref: Jn
|
|
2108
2129
|
}, [C("text", {
|
|
2109
2130
|
id: `vue-ui-scatter-xAxis-label-${F.value}`,
|
|
2110
|
-
transform: `translate(${R.value.style.layout.dataLabels.xAxis.fontSize + (R.value.style.layout.dataLabels.reverseAxisLabels ? R.value.style.layout.dataLabels.yAxis.offsetX : R.value.style.layout.dataLabels.xAxis.offsetX)}, ${
|
|
2131
|
+
transform: `translate(${R.value.style.layout.dataLabels.xAxis.fontSize + (R.value.style.layout.dataLabels.reverseAxisLabels ? R.value.style.layout.dataLabels.yAxis.offsetX : R.value.style.layout.dataLabels.xAxis.offsetX)}, ${H.value.top + H.value.height / 2 + (R.value.style.layout.dataLabels.reverseAxisLabels ? R.value.style.layout.dataLabels.yAxis.offsetY : R.value.style.layout.dataLabels.xAxis.offsetY)}), rotate(-90)`,
|
|
2111
2132
|
"text-anchor": "middle",
|
|
2112
2133
|
"font-size": R.value.style.layout.dataLabels.xAxis.fontSize,
|
|
2113
2134
|
"font-weight": R.value.style.layout.dataLabels.xAxis.bold ? "bold" : "normal",
|
|
@@ -2117,56 +2138,56 @@ var Ve = /* @__PURE__ */ e({ default: () => vn }), He = ["id"], Ue = ["id"], We
|
|
|
2117
2138
|
"text-anchor": "middle",
|
|
2118
2139
|
"font-size": R.value.style.layout.dataLabels.xAxis.fontSize,
|
|
2119
2140
|
fill: R.value.style.layout.dataLabels.xAxis.color,
|
|
2120
|
-
transform: `translate(${R.value.style.layout.dataLabels.xAxis.name ? R.value.style.layout.dataLabels.xAxis.fontSize * 3 : 0}, ${
|
|
2121
|
-
}, j(M(m)(R.value.style.layout.plots.selectors.labels.x.formatter, M(_)(
|
|
2141
|
+
transform: `translate(${R.value.style.layout.dataLabels.xAxis.name ? R.value.style.layout.dataLabels.xAxis.fontSize * 3 : 0}, ${W.value.y + R.value.style.layout.dataLabels.xAxis.fontSize / 3}), rotate(-90)`
|
|
2142
|
+
}, j(M(m)(R.value.style.layout.plots.selectors.labels.x.formatter, M(_)(U.value.xMin), M(n)({
|
|
2122
2143
|
p: R.value.style.layout.plots.selectors.labels.prefix,
|
|
2123
|
-
v: M(_)(
|
|
2144
|
+
v: M(_)(U.value.xMin),
|
|
2124
2145
|
s: R.value.style.layout.plots.selectors.labels.suffix,
|
|
2125
2146
|
r: R.value.style.layout.dataLabels.xAxis.rounding
|
|
2126
2147
|
}))), 9, $t)) : x("", !0)], 512)) : x("", !0),
|
|
2127
2148
|
R.value.style.layout.dataLabels.xAxis.show && R.value.style.layout.dataLabels.xAxis.showValue ? (D(), S("text", {
|
|
2128
|
-
key:
|
|
2149
|
+
key: 11,
|
|
2129
2150
|
ref_key: "xAxisLabelRight",
|
|
2130
2151
|
ref: Yn,
|
|
2131
2152
|
"text-anchor": "middle",
|
|
2132
|
-
transform: `translate(${
|
|
2153
|
+
transform: `translate(${H.value.right + R.value.style.layout.padding.right + 6}, ${W.value.y + R.value.style.layout.dataLabels.xAxis.fontSize / 3}), rotate(-90)`,
|
|
2133
2154
|
"font-size": R.value.style.layout.dataLabels.xAxis.fontSize,
|
|
2134
2155
|
fill: R.value.style.layout.dataLabels.xAxis.color
|
|
2135
|
-
}, j(M(m)(R.value.style.layout.plots.selectors.labels.x.formatter, M(_)(
|
|
2156
|
+
}, j(M(m)(R.value.style.layout.plots.selectors.labels.x.formatter, M(_)(U.value.xMax), M(n)({
|
|
2136
2157
|
p: R.value.style.layout.plots.selectors.labels.prefix,
|
|
2137
|
-
v: M(_)(
|
|
2158
|
+
v: M(_)(U.value.xMax),
|
|
2138
2159
|
s: R.value.style.layout.plots.selectors.labels.suffix,
|
|
2139
2160
|
r: R.value.style.layout.dataLabels.xAxis.rounding
|
|
2140
2161
|
}))), 9, en)) : x("", !0),
|
|
2141
2162
|
R.value.style.layout.dataLabels.yAxis.show && R.value.style.layout.dataLabels.yAxis.showValue ? (D(), S("text", {
|
|
2142
|
-
key:
|
|
2163
|
+
key: 12,
|
|
2143
2164
|
ref_key: "yAxisLabelTop",
|
|
2144
2165
|
ref: Xn,
|
|
2145
|
-
x:
|
|
2146
|
-
y:
|
|
2166
|
+
x: W.value.x,
|
|
2167
|
+
y: H.value.top - R.value.style.layout.dataLabels.yAxis.fontSize,
|
|
2147
2168
|
"text-anchor": "middle",
|
|
2148
2169
|
"font-size": R.value.style.layout.dataLabels.yAxis.fontSize,
|
|
2149
2170
|
fill: R.value.style.layout.dataLabels.yAxis.color
|
|
2150
|
-
}, j(M(m)(R.value.style.layout.plots.selectors.labels.y.formatter, M(_)(
|
|
2171
|
+
}, j(M(m)(R.value.style.layout.plots.selectors.labels.y.formatter, M(_)(U.value.yMax), M(n)({
|
|
2151
2172
|
p: R.value.style.layout.plots.selectors.labels.prefix,
|
|
2152
|
-
v: M(_)(
|
|
2173
|
+
v: M(_)(U.value.yMax),
|
|
2153
2174
|
s: R.value.style.layout.plots.selectors.labels.suffix,
|
|
2154
2175
|
r: R.value.style.layout.dataLabels.yAxis.rounding
|
|
2155
2176
|
}))), 9, tn)) : x("", !0),
|
|
2156
2177
|
R.value.style.layout.dataLabels.yAxis.show ? (D(), S("g", {
|
|
2157
|
-
key:
|
|
2178
|
+
key: 13,
|
|
2158
2179
|
ref_key: "yAxisLabelBottom",
|
|
2159
2180
|
ref: Zn
|
|
2160
2181
|
}, [R.value.style.layout.dataLabels.yAxis.showValue ? (D(), S("text", {
|
|
2161
2182
|
key: 0,
|
|
2162
|
-
x:
|
|
2163
|
-
y:
|
|
2183
|
+
x: W.value.x,
|
|
2184
|
+
y: V.value.height - R.value.style.layout.dataLabels.yAxis.fontSize * 2,
|
|
2164
2185
|
"text-anchor": "middle",
|
|
2165
2186
|
"font-size": R.value.style.layout.dataLabels.yAxis.fontSize,
|
|
2166
2187
|
fill: R.value.style.layout.dataLabels.yAxis.color
|
|
2167
|
-
}, j(M(m)(R.value.style.layout.plots.selectors.labels.y.formatter, M(_)(
|
|
2188
|
+
}, j(M(m)(R.value.style.layout.plots.selectors.labels.y.formatter, M(_)(U.value.yMin), M(n)({
|
|
2168
2189
|
p: R.value.style.layout.plots.selectors.labels.prefix,
|
|
2169
|
-
v: M(_)(
|
|
2190
|
+
v: M(_)(U.value.yMin),
|
|
2170
2191
|
s: R.value.style.layout.plots.selectors.labels.suffix,
|
|
2171
2192
|
r: R.value.style.layout.dataLabels.yAxis.rounding
|
|
2172
2193
|
}))), 9, nn)) : x("", !0), C("text", {
|
|
@@ -2174,16 +2195,16 @@ var Ve = /* @__PURE__ */ e({ default: () => vn }), He = ["id"], Ue = ["id"], We
|
|
|
2174
2195
|
"font-size": R.value.style.layout.dataLabels.yAxis.fontSize,
|
|
2175
2196
|
"font-weight": R.value.style.layout.dataLabels.yAxis.bold ? "bold" : "normal",
|
|
2176
2197
|
fill: R.value.style.layout.dataLabels.yAxis.color,
|
|
2177
|
-
x:
|
|
2178
|
-
y:
|
|
2198
|
+
x: H.value.left + H.value.width / 2 + (R.value.style.layout.dataLabels.reverseAxisLabels ? R.value.style.layout.dataLabels.xAxis.offsetX : R.value.style.layout.dataLabels.yAxis.offsetX),
|
|
2199
|
+
y: V.value.height + (R.value.style.layout.dataLabels.reverseAxisLabels ? R.value.style.layout.dataLabels.xAxis.offsetY : R.value.style.layout.dataLabels.yAxis.offsetY)
|
|
2179
2200
|
}, j(R.value.style.layout.dataLabels.reverseAxisLabels ? R.value.style.layout.dataLabels.xAxis.name : R.value.style.layout.dataLabels.yAxis.name), 9, rn)], 512)) : x("", !0),
|
|
2180
2201
|
C("clipPath", { id: `clip_path_${F.value}` }, [C("rect", {
|
|
2181
|
-
x:
|
|
2182
|
-
y:
|
|
2183
|
-
width:
|
|
2184
|
-
height:
|
|
2202
|
+
x: H.value.left,
|
|
2203
|
+
y: H.value.top,
|
|
2204
|
+
width: H.value.width <= 0 ? 1e-4 : H.value.width,
|
|
2205
|
+
height: H.value.height <= 0 ? 1e-4 : H.value.height
|
|
2185
2206
|
}, null, 8, on)], 8, an),
|
|
2186
|
-
R.value.style.layout.correlation.show ? (D(), S("g", sn, [(D(!0), S(v, null, k(
|
|
2207
|
+
R.value.style.layout.correlation.show ? (D(), S("g", sn, [(D(!0), S(v, null, k(K.value.filter((e) => e.correlation), (e, t) => (D(), S("line", {
|
|
2187
2208
|
x1: e.correlation.x1,
|
|
2188
2209
|
x2: e.correlation.x2,
|
|
2189
2210
|
y1: e.correlation.y1,
|
|
@@ -2192,7 +2213,7 @@ var Ve = /* @__PURE__ */ e({ default: () => vn }), He = ["id"], Ue = ["id"], We
|
|
|
2192
2213
|
stroke: e.color,
|
|
2193
2214
|
"stroke-width": R.value.style.layout.correlation.strokeWidth,
|
|
2194
2215
|
"clip-path": `url(#clip_path_${F.value})`
|
|
2195
|
-
}, null, 8, cn))), 256)), (D(!0), S(v, null, k(
|
|
2216
|
+
}, null, 8, cn))), 256)), (D(!0), S(v, null, k(K.value.filter((e) => e.correlation), (e, t) => (D(), S("g", null, [R.value.style.layout.correlation.label.show ? (D(), S("text", {
|
|
2196
2217
|
key: 0,
|
|
2197
2218
|
x: e.correlation.x2,
|
|
2198
2219
|
y: e.correlation.y2,
|
|
@@ -2205,20 +2226,20 @@ var Ve = /* @__PURE__ */ e({ default: () => vn }), He = ["id"], Ue = ["id"], We
|
|
|
2205
2226
|
r: R.value.style.layout.correlation.label.roundingValue
|
|
2206
2227
|
})), 9, ln)) : x("", !0)]))), 256))])) : x("", !0),
|
|
2207
2228
|
A(e.$slots, "svg", { svg: {
|
|
2208
|
-
...
|
|
2229
|
+
...V.value,
|
|
2209
2230
|
drawingArea: {
|
|
2210
|
-
...
|
|
2211
|
-
zero:
|
|
2231
|
+
...H.value,
|
|
2232
|
+
zero: W.value
|
|
2212
2233
|
},
|
|
2213
|
-
data:
|
|
2214
|
-
isPrintingImg: M(
|
|
2234
|
+
data: Hr.value,
|
|
2235
|
+
isPrintingImg: M(yr) || M(br) || Kn.value,
|
|
2215
2236
|
isPrintingSvg: qn.value
|
|
2216
2237
|
} }, void 0, !0)
|
|
2217
2238
|
], 46, qe)), e.$slots.hint ? (D(), S("div", un, [A(e.$slots, "hint", T(w({
|
|
2218
2239
|
hint: R.value.a11y.translations.keyboardNavigation,
|
|
2219
2240
|
isVisible: rr.value
|
|
2220
2241
|
})), void 0, !0)])) : x("", !0)]),
|
|
2221
|
-
e.$slots.watermark ? (D(), S("div", dn, [A(e.$slots, "watermark", T(w({ isPrinting: M(
|
|
2242
|
+
e.$slots.watermark ? (D(), S("div", dn, [A(e.$slots, "watermark", T(w({ isPrinting: M(yr) || M(br) || Kn.value || qn.value })), void 0, !0)])) : x("", !0),
|
|
2222
2243
|
C("div", { id: `legend-bottom-${F.value}` }, null, 8, fn),
|
|
2223
2244
|
An.value && Vn.value && (R.value.style.legend.show || e.$slots.legend) ? (D(), b(De, {
|
|
2224
2245
|
key: 7,
|
|
@@ -2226,25 +2247,25 @@ var Ve = /* @__PURE__ */ e({ default: () => vn }), He = ["id"], Ue = ["id"], We
|
|
|
2226
2247
|
}, [C("div", {
|
|
2227
2248
|
ref_key: "chartLegend",
|
|
2228
2249
|
ref: Fn
|
|
2229
|
-
}, [A(e.$slots, "legend", { legend:
|
|
2250
|
+
}, [A(e.$slots, "legend", { legend: G.value }, () => [R.value.style.legend.show ? (D(), b(Te, {
|
|
2230
2251
|
key: `legend_${Bn.value}`,
|
|
2231
|
-
legendSet:
|
|
2232
|
-
config:
|
|
2252
|
+
legendSet: G.value,
|
|
2253
|
+
config: Vr.value,
|
|
2233
2254
|
isCursorPointer: ar.value,
|
|
2234
|
-
onClickMarker: t[3] ||= ({ legend: e }) =>
|
|
2255
|
+
onClickMarker: t[3] ||= ({ legend: e }) => oi(e.id)
|
|
2235
2256
|
}, {
|
|
2236
2257
|
item: N(({ legend: e }) => [C("div", {
|
|
2237
2258
|
onClick: (t) => e.segregate(),
|
|
2238
2259
|
style: E(`opacity:${L.value.includes(e.id) ? .5 : 1}`)
|
|
2239
2260
|
}, j(e.name), 13, pn)]),
|
|
2240
|
-
legendToggle: N(() => [
|
|
2261
|
+
legendToggle: N(() => [G.value.length > 2 && R.value.style.legend.selectAllToggle.show && !M(cr) ? (D(), b(xe, {
|
|
2241
2262
|
key: 0,
|
|
2242
2263
|
backgroundColor: R.value.style.legend.selectAllToggle.backgroundColor,
|
|
2243
2264
|
color: R.value.style.legend.selectAllToggle.color,
|
|
2244
2265
|
fontSize: R.value.style.legend.fontSize,
|
|
2245
2266
|
checked: L.value.length > 0,
|
|
2246
2267
|
isCursorPointer: ar.value,
|
|
2247
|
-
onToggle:
|
|
2268
|
+
onToggle: ai
|
|
2248
2269
|
}, null, 8, [
|
|
2249
2270
|
"backgroundColor",
|
|
2250
2271
|
"color",
|
|
@@ -2266,7 +2287,7 @@ var Ve = /* @__PURE__ */ e({ default: () => vn }), He = ["id"], Ue = ["id"], We
|
|
|
2266
2287
|
}, [A(e.$slots, "source", {}, void 0, !0)], 512)) : x("", !0),
|
|
2267
2288
|
Ae(M(vn), {
|
|
2268
2289
|
teleportTo: R.value.style.tooltip.teleportTo,
|
|
2269
|
-
show:
|
|
2290
|
+
show: B.value.showTooltip && jn.value,
|
|
2270
2291
|
backgroundColor: R.value.style.tooltip.backgroundColor,
|
|
2271
2292
|
color: R.value.style.tooltip.color,
|
|
2272
2293
|
borderRadius: R.value.style.tooltip.borderRadius,
|
|
@@ -2278,7 +2299,7 @@ var Ve = /* @__PURE__ */ e({ default: () => vn }), He = ["id"], Ue = ["id"], We
|
|
|
2278
2299
|
offsetY: R.value.style.tooltip.offsetY,
|
|
2279
2300
|
parent: I.value,
|
|
2280
2301
|
content: Mn.value,
|
|
2281
|
-
isFullscreen:
|
|
2302
|
+
isFullscreen: fi.value,
|
|
2282
2303
|
isCustom: R.value.style.tooltip.customFormat && typeof R.value.style.tooltip.customFormat == "function",
|
|
2283
2304
|
smooth: R.value.style.tooltip.smooth,
|
|
2284
2305
|
backdropFilter: R.value.style.tooltip.backdropFilter,
|
|
@@ -2287,12 +2308,12 @@ var Ve = /* @__PURE__ */ e({ default: () => vn }), He = ["id"], Ue = ["id"], We
|
|
|
2287
2308
|
isA11yMode: nr.value === "keyboard",
|
|
2288
2309
|
a11yPosition: tr.value
|
|
2289
2310
|
}, {
|
|
2290
|
-
"tooltip-before": N(() => [A(e.$slots, "tooltip-before", T(w({ ...
|
|
2291
|
-
tooltip: N(() => [A(e.$slots, "tooltip", T(w({ ...
|
|
2292
|
-
"tooltip-after": N(() => [A(e.$slots, "tooltip-after", T(w({ ...
|
|
2311
|
+
"tooltip-before": N(() => [A(e.$slots, "tooltip-before", T(w({ ...qr.value })), void 0, !0)]),
|
|
2312
|
+
tooltip: N(() => [A(e.$slots, "tooltip", T(w({ ...qr.value })), void 0, !0)]),
|
|
2313
|
+
"tooltip-after": N(() => [A(e.$slots, "tooltip-after", T(w({ ...qr.value })), void 0, !0)]),
|
|
2293
2314
|
default: N(() => [R.value.style.tooltip.showShape ? (D(), S("div", mn, [(D(), S("svg", hn, [Ae(_e, {
|
|
2294
|
-
shape:
|
|
2295
|
-
color:
|
|
2315
|
+
shape: X.value.shape,
|
|
2316
|
+
color: X.value.color,
|
|
2296
2317
|
plot: {
|
|
2297
2318
|
x: 10,
|
|
2298
2319
|
y: 10
|
|
@@ -2323,21 +2344,21 @@ var Ve = /* @__PURE__ */ e({ default: () => vn }), He = ["id"], Ue = ["id"], We
|
|
|
2323
2344
|
"isA11yMode",
|
|
2324
2345
|
"a11yPosition"
|
|
2325
2346
|
]),
|
|
2326
|
-
An.value && R.value.userOptions.buttons.table ? (D(), b(Le(
|
|
2347
|
+
An.value && R.value.userOptions.buttons.table ? (D(), b(Le(ki.value.component), Me({ key: 9 }, ki.value.props, {
|
|
2327
2348
|
ref_key: "tableUnit",
|
|
2328
2349
|
ref: Wn,
|
|
2329
|
-
onClose:
|
|
2350
|
+
onClose: Ai
|
|
2330
2351
|
}), Oe({
|
|
2331
2352
|
content: N(() => [(D(), b(M(xn), {
|
|
2332
2353
|
key: `table_${zn.value}`,
|
|
2333
|
-
colNames:
|
|
2334
|
-
head:
|
|
2335
|
-
body:
|
|
2336
|
-
config:
|
|
2337
|
-
title: R.value.table.useDialog ? "" :
|
|
2354
|
+
colNames: di.value.colNames,
|
|
2355
|
+
head: di.value.head,
|
|
2356
|
+
body: di.value.body,
|
|
2357
|
+
config: di.value.config,
|
|
2358
|
+
title: R.value.table.useDialog ? "" : ki.value.title,
|
|
2338
2359
|
withCloseButton: !R.value.table.useDialog,
|
|
2339
2360
|
isCursorPointer: ar.value,
|
|
2340
|
-
onClose:
|
|
2361
|
+
onClose: Ai
|
|
2341
2362
|
}, {
|
|
2342
2363
|
th: N(({ th: e }) => [ke(j(e), 1)]),
|
|
2343
2364
|
td: N(({ td: e }) => [e.shape ? (D(), S("div", gn, [C("span", null, j(e.content), 1)])) : (D(), S("div", {
|
|
@@ -2357,24 +2378,24 @@ var Ve = /* @__PURE__ */ e({ default: () => vn }), He = ["id"], Ue = ["id"], We
|
|
|
2357
2378
|
_: 2
|
|
2358
2379
|
}, [R.value.table.useDialog ? {
|
|
2359
2380
|
name: "title",
|
|
2360
|
-
fn: N(() => [ke(j(
|
|
2381
|
+
fn: N(() => [ke(j(ki.value.title), 1)]),
|
|
2361
2382
|
key: "0"
|
|
2362
2383
|
} : void 0, R.value.table.useDialog ? {
|
|
2363
2384
|
name: "actions",
|
|
2364
2385
|
fn: N(() => [C("button", {
|
|
2365
2386
|
tabindex: "0",
|
|
2366
2387
|
class: "vue-ui-user-options-button",
|
|
2367
|
-
onClick: t[4] ||= (e) =>
|
|
2388
|
+
onClick: t[4] ||= (e) => ui(R.value.userOptions.callbacks.csv),
|
|
2368
2389
|
style: E({ cursor: ar.value ? "pointer" : "default" })
|
|
2369
2390
|
}, [Ae(M(yn), {
|
|
2370
2391
|
name: "fileCsv",
|
|
2371
|
-
stroke:
|
|
2392
|
+
stroke: ki.value.props.color
|
|
2372
2393
|
}, null, 8, ["stroke"])], 4)]),
|
|
2373
2394
|
key: "1"
|
|
2374
2395
|
} : void 0]), 1040)) : x("", !0),
|
|
2375
2396
|
A(e.$slots, "skeleton", {}, () => [M(cr) ? (D(), b(de, { key: 0 })) : x("", !0)], !0)
|
|
2376
2397
|
], 46, He));
|
|
2377
2398
|
}
|
|
2378
|
-
}, [["__scopeId", "data-v-
|
|
2399
|
+
}, [["__scopeId", "data-v-0ebafb37"]]);
|
|
2379
2400
|
//#endregion
|
|
2380
2401
|
export { Ve as n, vn as t };
|