vue-data-ui 3.0.0-next.4 → 3.0.0-next.41
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{Arrow-COeGcYaf.js → Arrow-FZbM_OMm.js} +1 -1
- package/dist/{BaseDraggableDialog-B6a_nUd1.js → BaseDraggableDialog-rjsCDxdM.js} +2 -2
- package/dist/{BaseIcon-C_m_NEgt.js → BaseIcon-d5M_8gn6.js} +1 -1
- package/dist/{useLoading-Bt5Doa8m.js → BaseScanner-DIK2NTdp.js} +11 -11
- package/dist/{ColorPicker-_xpvmgl6.js → ColorPicker-Br0iohs5.js} +2 -2
- package/dist/{DataTable-kd4xY9pT.js → DataTable-CyFoVhAB.js} +2 -2
- package/dist/{Legend-Bow74t3d.js → Legend-BY-3lPeC.js} +2 -2
- package/dist/{NonSvgPenAndPaper-cUcAGGV2.js → NonSvgPenAndPaper-DjILEBYN.js} +3 -3
- package/dist/{PackageVersion-3ZfzB951.js → PackageVersion-QefvdSlr.js} +1 -1
- package/dist/{PenAndPaper-BZddJqUG.js → PenAndPaper-CeTnED7E.js} +3 -3
- package/dist/{Shape-BsptIVCm.js → Shape-ClINMlel.js} +43 -37
- package/dist/Slicer-CTVgtwAo.js +588 -0
- package/dist/{SparkTooltip-BdD0e0jv.js → SparkTooltip-D7iBCVUT.js} +7 -7
- package/dist/{Title-FiH2Kirc.js → Title-C2MeWc6b.js} +1 -1
- package/dist/{Tooltip-BLtR7DBZ.js → Tooltip-CyC0lofV.js} +23 -19
- package/dist/{UserOptions-DOwmMJId.js → UserOptions-Q4MLYmK1.js} +2 -2
- package/dist/{dom-to-png-DnsK-Zal.js → dom-to-png-Bmhnn6-_.js} +1 -1
- package/dist/{img-CP2uNkKq.js → img-1ZBpWF3A.js} +1 -1
- package/dist/{index-BnnNoGGd.js → index-D-ozSgn5.js} +1555 -1268
- package/dist/{pdf-urw1sGoX.js → pdf-Dm9wepT-.js} +1 -1
- package/dist/style.css +1 -1
- package/dist/types/vue-data-ui.d.cts +245 -12
- package/dist/types/vue-data-ui.d.ts +245 -12
- package/dist/{useNestedProp-B6Dz15k2.js → useNestedProp-xgFDyd-D.js} +1 -1
- package/dist/{usePrinter-Dd-RkmL8.js → usePrinter-CyhyubAW.js} +2 -2
- package/dist/useTimeLabelCollider-CIsgDrl9.js +78 -0
- package/dist/{useTimeLabels-Mrr0jrpL.js → useTimeLabels-DkzmKfZn.js} +211 -152
- package/dist/{vue-data-ui-Dql75T3d.js → vue-data-ui-BvqaMmwo.js} +64 -64
- package/dist/vue-data-ui.js +26 -25
- package/dist/{vue-ui-3d-bar-CUDEgTKp.js → vue-ui-3d-bar-wFrj_nHo.js} +6 -6
- package/dist/{vue-ui-accordion-qNR0BQCP.js → vue-ui-accordion-CzcfvDc6.js} +3 -3
- package/dist/vue-ui-age-pyramid-C06opmye.js +834 -0
- package/dist/{vue-ui-annotator-CeMOjHpf.js → vue-ui-annotator-rLnZGNrU.js} +2 -2
- package/dist/vue-ui-bullet-BrtBslm2.js +571 -0
- package/dist/vue-ui-candlestick-CTHK4Nkb.js +999 -0
- package/dist/{vue-ui-carousel-table-CAr64-2F.js → vue-ui-carousel-table-BEot5M0l.js} +4 -4
- package/dist/{vue-ui-chestnut-B0zNp1jY.js → vue-ui-chestnut-C4xlmyWV.js} +5 -5
- package/dist/{vue-ui-chord-C-_tz6Tb.js → vue-ui-chord-odv0oGun.js} +8 -8
- package/dist/{vue-ui-circle-pack-BSTkkKx-.js → vue-ui-circle-pack-Dv7OO-jl.js} +26 -26
- package/dist/{vue-ui-cursor-Dqd6RkcK.js → vue-ui-cursor-CHPi6ptC.js} +2 -2
- package/dist/{vue-ui-dashboard-CspqjC6x.js → vue-ui-dashboard-yZ6EoUYB.js} +62 -62
- package/dist/{vue-ui-digits-CazGAGyM.js → vue-ui-digits-C502piFU.js} +2 -2
- package/dist/{vue-ui-donut-BK35Gt-7.js → vue-ui-donut-XKTZp6vn.js} +408 -381
- package/dist/vue-ui-donut-evolution-BETQ3m-1.js +1075 -0
- package/dist/{vue-ui-dumbbell-CJal89Ud.js → vue-ui-dumbbell-B0koyYHY.js} +7 -7
- package/dist/vue-ui-flow-BOXbr-B4.js +841 -0
- package/dist/{vue-ui-funnel-Dm0LCakq.js → vue-ui-funnel-BuLuXMWN.js} +6 -6
- package/dist/{vue-ui-galaxy-C9poCSSD.js → vue-ui-galaxy-Duo4_PQ0.js} +60 -58
- package/dist/{vue-ui-gauge-CYXXfMRC.js → vue-ui-gauge-CzvkhWyr.js} +6 -6
- package/dist/{vue-ui-gizmo-B-8rhor5.js → vue-ui-gizmo-C_s3Mad5.js} +3 -3
- package/dist/vue-ui-heatmap-BfPyDKrE.js +1078 -0
- package/dist/{vue-ui-history-plot-C_Si7S5S.js → vue-ui-history-plot-11zollOK.js} +12 -10
- package/dist/{vue-ui-kpi-BYYBkt55.js → vue-ui-kpi-BAFYYyfo.js} +3 -3
- package/dist/{vue-ui-mini-loader-DmHE-wrb.js → vue-ui-mini-loader-DUDhlnIj.js} +2 -2
- package/dist/{vue-ui-molecule-I2ZUVtal.js → vue-ui-molecule-Dng9xRXp.js} +46 -44
- package/dist/{vue-ui-mood-radar-BYUr9rcv.js → vue-ui-mood-radar-CZITumE0.js} +7 -7
- package/dist/vue-ui-nested-donuts-BvLGT-wp.js +1286 -0
- package/dist/{vue-ui-onion-BpGz1RFC.js → vue-ui-onion-BVXel8xL.js} +46 -44
- package/dist/vue-ui-parallel-coordinate-plot-CCVeKuyk.js +915 -0
- package/dist/{vue-ui-quadrant-CByC4r8k.js → vue-ui-quadrant-CvH-NZdr.js} +59 -57
- package/dist/vue-ui-quick-chart-Cw9hhg7p.js +1761 -0
- package/dist/{vue-ui-radar-CBVb6GyN.js → vue-ui-radar-CgOon7mZ.js} +12 -10
- package/dist/{vue-ui-rating-Thf6P6AF.js → vue-ui-rating-B5c-kqdn.js} +2 -2
- package/dist/{vue-ui-relation-circle-Blg3GkeU.js → vue-ui-relation-circle-qt6Rkmmg.js} +6 -6
- package/dist/{vue-ui-ridgeline-D6kxALQN.js → vue-ui-ridgeline-BbLx23HV.js} +12 -10
- package/dist/{vue-ui-rings-bBHc4cwe.js → vue-ui-rings-CRRnF21q.js} +13 -11
- package/dist/{vue-ui-scatter-DS6-kGZL.js → vue-ui-scatter-CmFDRXa2.js} +99 -97
- package/dist/{vue-ui-skeleton-gHkpLBcj.js → vue-ui-skeleton-CIU55VVP.js} +3 -3
- package/dist/{vue-ui-smiley-S7qJ-dRf.js → vue-ui-smiley-BBTuuurS.js} +2 -2
- package/dist/{vue-ui-spark-trend-Co-sKoQX.js → vue-ui-spark-trend-CfCb4r4K.js} +3 -3
- package/dist/{vue-ui-sparkbar-G1Jhr305.js → vue-ui-sparkbar-CY2g4HPf.js} +3 -3
- package/dist/{vue-ui-sparkgauge-Bzm5X8us.js → vue-ui-sparkgauge-0xVecWxL.js} +3 -3
- package/dist/{vue-ui-sparkhistogram-IGnxrQK9.js → vue-ui-sparkhistogram-DXT4M8c6.js} +4 -4
- package/dist/vue-ui-sparkline-BgUGZ1AX.js +489 -0
- package/dist/{vue-ui-sparkstackbar-C_cbbRT_.js → vue-ui-sparkstackbar-ic4Q92W2.js} +55 -53
- package/dist/vue-ui-stackbar-C1K77Eph.js +1370 -0
- package/dist/{vue-ui-strip-plot-Cw1CDIL0.js → vue-ui-strip-plot-B-EluNpw.js} +30 -28
- package/dist/{vue-ui-table-C4A73F9D.js → vue-ui-table-D8yiQSAZ.js} +11 -11
- package/dist/{vue-ui-table-heatmap-DDlDAXMI.js → vue-ui-table-heatmap-BV03Xipx.js} +5 -5
- package/dist/{vue-ui-table-sparkline-CQDLqNvX.js → vue-ui-table-sparkline-BJDrPMNM.js} +4 -4
- package/dist/{vue-ui-thermometer-DgBtT1Ts.js → vue-ui-thermometer-BfTaCEvy.js} +6 -6
- package/dist/{vue-ui-timer-DwL2EUHc.js → vue-ui-timer-yaD9CnrU.js} +5 -5
- package/dist/{vue-ui-tiremarks-J9v9JAmf.js → vue-ui-tiremarks-DZmn0x0x.js} +19 -19
- package/dist/{vue-ui-treemap-BSPd3wFo.js → vue-ui-treemap-cLoY4lkA.js} +47 -45
- package/dist/vue-ui-vertical-bar-CptPUybG.js +1108 -0
- package/dist/vue-ui-waffle-C6_JY56k.js +910 -0
- package/dist/{vue-ui-wheel-B_r_vUFd.js → vue-ui-wheel-CZa3V2a8.js} +6 -6
- package/dist/{vue-ui-word-cloud-DqvRfwF3.js → vue-ui-word-cloud-Bwa3o0gV.js} +12 -10
- package/dist/{vue-ui-world-DguPtgux.js → vue-ui-world-Dk4VR0iE.js} +11 -9
- package/dist/vue-ui-xy-CLRcmnNU.js +3755 -0
- package/dist/{vue-ui-xy-canvas-Cv4Fs6Jw.js → vue-ui-xy-canvas-CVW7Wok4.js} +265 -264
- package/package.json +1 -1
- package/dist/Slicer-i0BAmgHn.js +0 -577
- package/dist/vue-ui-age-pyramid-BFWU1VGZ.js +0 -746
- package/dist/vue-ui-bullet-CmNollxj.js +0 -513
- package/dist/vue-ui-candlestick-CkoAVYNh.js +0 -873
- package/dist/vue-ui-donut-evolution-SomhFGJh.js +0 -903
- package/dist/vue-ui-flow-BFsmk2iL.js +0 -765
- package/dist/vue-ui-heatmap-BQzObiF9.js +0 -877
- package/dist/vue-ui-nested-donuts-DEm7s2uC.js +0 -1177
- package/dist/vue-ui-parallel-coordinate-plot-SkVvzSSQ.js +0 -807
- package/dist/vue-ui-quick-chart-GEYFXShR.js +0 -1612
- package/dist/vue-ui-sparkline-ezu4qjgC.js +0 -459
- package/dist/vue-ui-stackbar-BD9gyxAb.js +0 -1207
- package/dist/vue-ui-vertical-bar-B5b5tXjT.js +0 -1029
- package/dist/vue-ui-waffle-Bh_gS8y2.js +0 -863
- package/dist/vue-ui-xy-MFNbJqgb.js +0 -2980
|
@@ -1,22 +1,22 @@
|
|
|
1
|
-
import { defineAsyncComponent as Z, computed as
|
|
2
|
-
import { u as
|
|
3
|
-
import { t as Pt, u as
|
|
4
|
-
import { u as Ze } from "./useNestedProp-
|
|
5
|
-
import { u as
|
|
1
|
+
import { defineAsyncComponent as Z, computed as x, ref as h, watch as ht, shallowRef as Ge, onMounted as pt, onBeforeUnmount as ft, createElementBlock as r, openBlock as s, unref as u, normalizeStyle as j, normalizeClass as qe, createBlock as E, createCommentVNode as c, createElementVNode as d, createVNode as ge, createSlots as gt, withCtx as _, renderSlot as M, normalizeProps as te, guardReactiveProps as le, Fragment as F, renderList as Y, toDisplayString as C, createTextVNode as mt, nextTick as bt } from "vue";
|
|
2
|
+
import { u as xt, c as kt, t as wt, p as J, a as _t, o as Mt, e as me, b as $t, g as He, Y as Ct, a4 as At, V as zt, X as St, s as be, Z as Tt, i as U, w as A, f as W, q as Lt, r as Bt, y as Ot, z as Nt } from "./index-D-ozSgn5.js";
|
|
3
|
+
import { t as Pt, u as Ft } from "./useResponsive-DfdjqQps.js";
|
|
4
|
+
import { u as Ze } from "./useNestedProp-xgFDyd-D.js";
|
|
5
|
+
import { u as Wt } from "./usePrinter-CyhyubAW.js";
|
|
6
6
|
import { u as It } from "./useUserOptionState-BIvW1Kz7.js";
|
|
7
7
|
import { u as Xt } from "./useChartAccessibility-9icAAmYg.js";
|
|
8
|
-
import Yt from "./Legend-
|
|
9
|
-
import Dt from "./Title-
|
|
10
|
-
import { _ as Je } from "./Shape-
|
|
11
|
-
import Rt from "./img-
|
|
8
|
+
import Yt from "./Legend-BY-3lPeC.js";
|
|
9
|
+
import Dt from "./Title-C2MeWc6b.js";
|
|
10
|
+
import { _ as Je } from "./Shape-ClINMlel.js";
|
|
11
|
+
import Rt from "./img-1ZBpWF3A.js";
|
|
12
12
|
import { _ as Vt } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
13
13
|
const jt = ["id"], Et = ["xmlns", "viewBox"], Ut = ["width", "height"], Gt = { key: 1 }, qt = ["x1", "x2", "y1", "y2", "stroke", "stroke-width"], Ht = ["x1", "x2", "y1", "y2", "stroke", "stroke-width"], Zt = { key: 2 }, Jt = ["points", "fill", "stroke-width", "stroke-dasharray", "stroke"], Kt = { key: 0 }, Qt = ["cx", "cy", "r", "fill", "stroke", "stroke-width", "onMouseover"], el = { key: 1 }, tl = { key: 3 }, ll = ["id"], al = ["stop-color"], ol = ["stop-color"], sl = ["id"], ul = ["stop-color"], il = ["stop-color"], rl = ["x", "y", "width", "height", "fill", "stroke", "stroke-width", "rx"], nl = ["x", "y", "height", "width", "fill", "stroke", "stroke-width", "rx"], vl = { key: 0 }, yl = ["d", "stroke", "stroke-width"], cl = ["d", "stroke", "stroke-width"], dl = ["d", "stroke", "stroke-width"], hl = ["d", "stroke", "stroke-width"], pl = {
|
|
14
14
|
key: 4,
|
|
15
15
|
style: { "pointer-events": "none !important" }
|
|
16
|
-
}, fl = ["x1", "x2", "y1", "y2", "stroke", "stroke-width", "stroke-dasharray"], gl = ["x1", "x2", "y1", "y2", "stroke", "stroke-width", "stroke-dasharray"], ml = ["x", "y", "font-size", "fill", "font-weight", "text-anchor"],
|
|
16
|
+
}, fl = ["x1", "x2", "y1", "y2", "stroke", "stroke-width", "stroke-dasharray"], gl = ["x1", "x2", "y1", "y2", "stroke", "stroke-width", "stroke-dasharray"], ml = ["x", "y", "font-size", "fill", "font-weight", "text-anchor"], bl = ["x", "y", "font-size", "fill", "font-weight"], xl = ["cx", "cy", "r", "fill", "stroke", "stroke-width"], kl = ["cx", "cy", "r", "fill", "stroke", "stroke-width"], wl = ["x", "y", "font-size", "fill", "font-weight", "text-anchor"], _l = { key: 5 }, Ml = ["x", "y", "font-size", "fill"], $l = ["x", "y", "font-size", "fill"], Cl = ["id", "transform", "font-size", "font-weight", "fill"], Al = { key: 6 }, zl = ["x", "y", "font-size", "fill"], Sl = ["x", "y", "font-size", "fill"], Tl = ["font-size", "font-weight", "fill", "x", "y"], Ll = ["id"], Bl = ["x", "y", "width", "height"], Ol = { key: 7 }, Nl = ["x1", "x2", "y1", "y2", "stroke-dasharray", "stroke", "stroke-width", "clip-path"], Pl = ["x", "y", "fill", "font-size", "font-weight"], Fl = {
|
|
17
17
|
key: 5,
|
|
18
18
|
class: "vue-data-ui-watermark"
|
|
19
|
-
},
|
|
19
|
+
}, Wl = ["onClick"], Il = {
|
|
20
20
|
key: 0,
|
|
21
21
|
style: { width: "100%", display: "flex", "align-items": "center", "justify-content": "center" }
|
|
22
22
|
}, Xl = {
|
|
@@ -41,10 +41,10 @@ const jt = ["id"], Et = ["xmlns", "viewBox"], Ut = ["width", "height"], Gt = { k
|
|
|
41
41
|
}
|
|
42
42
|
},
|
|
43
43
|
setup(Ke, { expose: Qe }) {
|
|
44
|
-
const et = Z(() => import("./vue-ui-accordion-
|
|
44
|
+
const et = Z(() => import("./vue-ui-accordion-CzcfvDc6.js")), tt = Z(() => import("./DataTable-CyFoVhAB.js")), lt = Z(() => import("./PackageVersion-QefvdSlr.js")), at = Z(() => import("./PenAndPaper-CeTnED7E.js")), ot = Z(() => import("./vue-ui-skeleton-CIU55VVP.js")), st = Z(() => import("./Tooltip-CyC0lofV.js")), ut = Z(() => import("./UserOptions-Q4MLYmK1.js")), { vue_ui_scatter: it } = xt(), I = Ke, ae = x(() => !!I.dataset && I.dataset.length), z = h(kt()), rt = h(null), re = h(!1), ne = h(""), xe = h(0), D = h(null), ke = h(null), we = h(null), _e = h(null), Me = h(null), $e = h(0), Ce = h(0), Ae = h(0), b = h([]), e = x({
|
|
45
45
|
get: () => Le(),
|
|
46
46
|
set: (t) => t
|
|
47
|
-
}), { userOptionsVisible: ve, setUserOptionsVisibility:
|
|
47
|
+
}), { userOptionsVisible: ve, setUserOptionsVisibility: ze, keepUserOptionState: Se } = It({ config: e.value }), { svgRef: Te } = Xt({ config: e.value.style.title });
|
|
48
48
|
function Le() {
|
|
49
49
|
const t = Ze({
|
|
50
50
|
userConfig: I.config,
|
|
@@ -71,7 +71,7 @@ const jt = ["id"], Et = ["xmlns", "viewBox"], Ut = ["width", "height"], Gt = { k
|
|
|
71
71
|
type: "dataset"
|
|
72
72
|
}), e.value.responsive) {
|
|
73
73
|
const t = Pt(() => {
|
|
74
|
-
const { width: i, height: l } =
|
|
74
|
+
const { width: i, height: l } = Ft({
|
|
75
75
|
chart: D.value,
|
|
76
76
|
title: e.value.style.title.text ? ke.value : null,
|
|
77
77
|
legend: e.value.style.legend.show ? we.value : null,
|
|
@@ -88,24 +88,24 @@ const jt = ["id"], Et = ["xmlns", "viewBox"], Ut = ["width", "height"], Gt = { k
|
|
|
88
88
|
ft(() => {
|
|
89
89
|
R.value && (K.value && R.value.unobserve(K.value), R.value.disconnect());
|
|
90
90
|
});
|
|
91
|
-
const { isPrinting: Oe, isImaging: Ne, generatePdf: Pe, generateImage:
|
|
92
|
-
elementId: `vue-ui-scatter_${
|
|
91
|
+
const { isPrinting: Oe, isImaging: Ne, generatePdf: Pe, generateImage: Fe } = Wt({
|
|
92
|
+
elementId: `vue-ui-scatter_${z.value}`,
|
|
93
93
|
fileName: e.value.style.title.text || "vue-ui-scatter",
|
|
94
94
|
options: e.value.userOptions.print
|
|
95
|
-
}), nt =
|
|
95
|
+
}), nt = x(() => e.value.userOptions.show && !e.value.style.title.text), We = x(() => $t(e.value.customPalette)), O = h({
|
|
96
96
|
showTable: e.value.table.show,
|
|
97
97
|
showTooltip: e.value.style.tooltip.show
|
|
98
98
|
}), k = h({
|
|
99
99
|
height: e.value.style.layout.height,
|
|
100
100
|
width: e.value.style.layout.width
|
|
101
|
-
}), oe =
|
|
101
|
+
}), oe = x(() => e.value.style.layout.marginalBars.show ? e.value.style.layout.marginalBars.size + e.value.style.layout.marginalBars.offset : 0), n = x(() => ({
|
|
102
102
|
top: e.value.style.layout.padding.top + oe.value,
|
|
103
103
|
right: k.value.width - e.value.style.layout.padding.right - oe.value,
|
|
104
104
|
bottom: k.value.height - e.value.style.layout.padding.bottom,
|
|
105
105
|
left: e.value.style.layout.padding.left,
|
|
106
106
|
height: k.value.height - e.value.style.layout.padding.top - e.value.style.layout.padding.bottom - oe.value,
|
|
107
107
|
width: k.value.width - e.value.style.layout.padding.left - e.value.style.layout.padding.right - oe.value
|
|
108
|
-
})), p =
|
|
108
|
+
})), p = x(() => {
|
|
109
109
|
I.dataset.forEach((a, v) => {
|
|
110
110
|
He({
|
|
111
111
|
datasetObject: a,
|
|
@@ -131,13 +131,13 @@ const jt = ["id"], Et = ["xmlns", "viewBox"], Ut = ["width", "height"], Gt = { k
|
|
|
131
131
|
});
|
|
132
132
|
});
|
|
133
133
|
});
|
|
134
|
-
const t = Math.min(...G.value.filter((a) => !
|
|
134
|
+
const t = Math.min(...G.value.filter((a) => !b.value.includes(a.id)).flatMap((a) => a.values.map((v) => v.x))), i = Math.max(...G.value.filter((a) => !b.value.includes(a.id)).flatMap((a) => a.values.map((v) => v.x))), l = Math.min(...G.value.filter((a) => !b.value.includes(a.id)).flatMap((a) => a.values.map((v) => v.y))), o = Math.max(...G.value.filter((a) => !b.value.includes(a.id)).flatMap((a) => a.values.map((v) => v.y)));
|
|
135
135
|
return { xMin: t >= 0 ? 0 : t, xMax: i, yMin: l >= 0 ? 0 : l, yMax: o };
|
|
136
|
-
}), g =
|
|
136
|
+
}), g = x(() => ({
|
|
137
137
|
x: n.value.left + Math.abs(p.value.xMin) / (p.value.xMax + Math.abs(p.value.xMin)) * n.value.width,
|
|
138
138
|
y: n.value.bottom - Math.abs(p.value.yMin) / (p.value.yMax + Math.abs(p.value.yMin)) * n.value.height
|
|
139
|
-
})), G =
|
|
140
|
-
const l = `cluster_${
|
|
139
|
+
})), G = x(() => I.dataset.map((t, i) => {
|
|
140
|
+
const l = `cluster_${z.value}_${i}`;
|
|
141
141
|
return {
|
|
142
142
|
...t,
|
|
143
143
|
values: Ct({
|
|
@@ -145,20 +145,20 @@ const jt = ["id"], Et = ["xmlns", "viewBox"], Ut = ["width", "height"], Gt = { k
|
|
|
145
145
|
threshold: e.value.downsample.threshold
|
|
146
146
|
}),
|
|
147
147
|
id: l,
|
|
148
|
-
color: t.color ? t.color :
|
|
149
|
-
opacity:
|
|
148
|
+
color: t.color ? t.color : We.value[i] || J[i] || J[i % J.length],
|
|
149
|
+
opacity: b.value.includes(l) ? 0.5 : 1,
|
|
150
150
|
shape: t.shape ?? "circle",
|
|
151
151
|
segregate: () => Re(l),
|
|
152
|
-
isSegregated:
|
|
152
|
+
isSegregated: b.value.includes(l)
|
|
153
153
|
};
|
|
154
|
-
})), vt =
|
|
154
|
+
})), vt = x(() => ({
|
|
155
155
|
cy: "scatter-div-legend",
|
|
156
156
|
backgroundColor: e.value.style.legend.backgroundColor,
|
|
157
157
|
color: e.value.style.legend.color,
|
|
158
158
|
fontSize: e.value.style.legend.fontSize,
|
|
159
159
|
paddingBottom: 12,
|
|
160
160
|
fontWeight: e.value.style.legend.bold ? "bold" : ""
|
|
161
|
-
})), ye =
|
|
161
|
+
})), ye = x(() => G.value.map((t, i) => ({
|
|
162
162
|
...t,
|
|
163
163
|
plots: t.values.map((l) => ({
|
|
164
164
|
x: n.value.left + (l.x + Math.abs(p.value.xMin)) / (p.value.xMax + Math.abs(p.value.xMin)) * n.value.width,
|
|
@@ -168,11 +168,11 @@ const jt = ["id"], Et = ["xmlns", "viewBox"], Ut = ["width", "height"], Gt = { k
|
|
|
168
168
|
name: l.name || ""
|
|
169
169
|
},
|
|
170
170
|
clusterName: t.name,
|
|
171
|
-
color: t.color ? t.color :
|
|
172
|
-
id: `plot_${
|
|
171
|
+
color: t.color ? t.color : We.value[i] || J[i] || J[i % J.length],
|
|
172
|
+
id: `plot_${z.value}_${Math.random()}`,
|
|
173
173
|
weight: l.weight ?? e.value.style.layout.plots.radius
|
|
174
174
|
}))
|
|
175
|
-
})).filter((t) => !
|
|
175
|
+
})).filter((t) => !b.value.includes(t.id))), S = x(() => ye.value.map((t) => {
|
|
176
176
|
const i = t.plots.reduce((m, q) => m + q.x, 0) / t.plots.length, l = t.plots.reduce((m, q) => m + q.y, 0) / t.plots.length;
|
|
177
177
|
let o = 0, a = 0, v = 0;
|
|
178
178
|
for (const m of t.plots)
|
|
@@ -201,9 +201,9 @@ const jt = ["id"], Et = ["xmlns", "viewBox"], Ut = ["width", "height"], Gt = { k
|
|
|
201
201
|
};
|
|
202
202
|
})
|
|
203
203
|
};
|
|
204
|
-
})), Ie =
|
|
204
|
+
})), Ie = x(() => Math.max(...S.value.flatMap((t) => t.plots.map((i) => Math.abs(i.deviation)))));
|
|
205
205
|
function yt() {
|
|
206
|
-
return
|
|
206
|
+
return S.value;
|
|
207
207
|
}
|
|
208
208
|
function Xe(t, i) {
|
|
209
209
|
const l = Array.isArray(t) ? t.flatMap((w) => w.plots.map((H) => ({
|
|
@@ -228,13 +228,13 @@ const jt = ["id"], Et = ["xmlns", "viewBox"], Ut = ["width", "height"], Gt = { k
|
|
|
228
228
|
const q = Math.max(...B), he = Math.max(...X);
|
|
229
229
|
return { x: B, y: X, avgX: ie, avgY: m, maxX: q, maxY: he };
|
|
230
230
|
}
|
|
231
|
-
const V =
|
|
231
|
+
const V = x(() => e.value.style.layout.marginalBars.tranches), T = x(() => Xe(ye.value, V.value)), ct = x(() => {
|
|
232
232
|
const t = n.value.top - e.value.style.layout.marginalBars.offset, i = n.value.right + e.value.style.layout.marginalBars.offset;
|
|
233
233
|
return ye.value.map((l) => {
|
|
234
234
|
const o = Xe(l, V.value);
|
|
235
235
|
return {
|
|
236
236
|
coords: o,
|
|
237
|
-
dX:
|
|
237
|
+
dX: zt(o.avgX.map((a, v) => ({
|
|
238
238
|
x: a,
|
|
239
239
|
y: t - o.x[v] / o.maxX * e.value.style.layout.marginalBars.size
|
|
240
240
|
}))),
|
|
@@ -253,24 +253,24 @@ const jt = ["id"], Et = ["xmlns", "viewBox"], Ut = ["width", "height"], Gt = { k
|
|
|
253
253
|
ce.value = {
|
|
254
254
|
datapoint: t,
|
|
255
255
|
seriesIndex: i,
|
|
256
|
-
series:
|
|
256
|
+
series: S.value,
|
|
257
257
|
config: e.value
|
|
258
258
|
};
|
|
259
259
|
const o = e.value.style.tooltip.customFormat;
|
|
260
260
|
Ot(o) && Nt(() => o({
|
|
261
261
|
datapoint: t,
|
|
262
262
|
seriesIndex: i,
|
|
263
|
-
series:
|
|
263
|
+
series: S.value,
|
|
264
264
|
config: e.value
|
|
265
265
|
})) ? ne.value = o({
|
|
266
266
|
datapoint: t,
|
|
267
267
|
seriesIndex: i,
|
|
268
|
-
series:
|
|
268
|
+
series: S.value,
|
|
269
269
|
config: e.value
|
|
270
270
|
}) : (t.clusterName && (l += `<div style="display:flex;gap:3px;align-items:center">${t.clusterName}</div>`), t.v.name && (l += `<div>${t.v.name}</div>`), l += `<div style="text-align:left;margin-top:6px;padding-top:6px;border-top:1px solid ${e.value.style.tooltip.borderColor}">`, l += `<div>${e.value.style.layout.dataLabels.xAxis.name}: <b>${isNaN(t.v.x) ? "-" : U(
|
|
271
271
|
e.value.style.layout.plots.selectors.labels.x.formatter,
|
|
272
272
|
t.v.x,
|
|
273
|
-
|
|
273
|
+
W({
|
|
274
274
|
p: e.value.style.tooltip.prefix,
|
|
275
275
|
v: t.v.x,
|
|
276
276
|
s: e.value.style.tooltip.suffix,
|
|
@@ -280,14 +280,14 @@ const jt = ["id"], Et = ["xmlns", "viewBox"], Ut = ["width", "height"], Gt = { k
|
|
|
280
280
|
)}</b></div>`, l += `<div>${e.value.style.layout.dataLabels.yAxis.name}: <b>${isNaN(t.v.y) ? "-" : U(
|
|
281
281
|
e.value.style.layout.plots.selectors.labels.y.formatter,
|
|
282
282
|
t.v.y,
|
|
283
|
-
|
|
283
|
+
W({
|
|
284
284
|
p: e.value.style.tooltip.prefix,
|
|
285
285
|
v: t.v.y,
|
|
286
286
|
s: e.value.style.tooltip.suffix,
|
|
287
287
|
r: e.value.style.tooltip.roundingValue
|
|
288
288
|
}),
|
|
289
289
|
{ datapoint: t, seriesIndex: i }
|
|
290
|
-
)}</b></div>`, l += `${e.value.style.layout.plots.deviation.translation}: <b>${
|
|
290
|
+
)}</b></div>`, l += `${e.value.style.layout.plots.deviation.translation}: <b>${W({
|
|
291
291
|
v: t.deviation,
|
|
292
292
|
r: e.value.style.layout.plots.deviation.roundingValue
|
|
293
293
|
})}</b>`, l += "</div>", ne.value = `<div>${l}</div>`), re.value = !0;
|
|
@@ -296,11 +296,11 @@ const jt = ["id"], Et = ["xmlns", "viewBox"], Ut = ["width", "height"], Gt = { k
|
|
|
296
296
|
re.value = !1, N.value = void 0, y.value = null;
|
|
297
297
|
}
|
|
298
298
|
function Re(t) {
|
|
299
|
-
|
|
299
|
+
b.value.includes(t) ? b.value = b.value.filter((i) => i !== t) : b.value.length < I.dataset.length - 1 && b.value.push(t);
|
|
300
300
|
}
|
|
301
301
|
function Ve(t = null) {
|
|
302
|
-
|
|
303
|
-
const i = ["", e.value.table.translations.correlationCoefficient, e.value.table.translations.nbrPlots, `${e.value.style.layout.dataLabels.xAxis.name} ${e.value.table.translations.average}`, `${e.value.style.layout.dataLabels.yAxis.name} ${e.value.table.translations.average}`], l =
|
|
302
|
+
bt(() => {
|
|
303
|
+
const i = ["", e.value.table.translations.correlationCoefficient, e.value.table.translations.nbrPlots, `${e.value.style.layout.dataLabels.xAxis.name} ${e.value.table.translations.average}`, `${e.value.style.layout.dataLabels.yAxis.name} ${e.value.table.translations.average}`], l = S.value.map((v) => [
|
|
304
304
|
v.name,
|
|
305
305
|
v.correlation.coefficient,
|
|
306
306
|
v.plots.length,
|
|
@@ -310,14 +310,14 @@ const jt = ["id"], Et = ["xmlns", "viewBox"], Ut = ["width", "height"], Gt = { k
|
|
|
310
310
|
t ? t(a) : Bt({ csvContent: a, title: e.value.style.title.text || "vue-ui-heatmap" });
|
|
311
311
|
});
|
|
312
312
|
}
|
|
313
|
-
const se =
|
|
313
|
+
const se = x(() => {
|
|
314
314
|
const t = [
|
|
315
315
|
e.value.table.translations.series,
|
|
316
316
|
e.value.table.translations.correlationCoefficient,
|
|
317
317
|
e.value.table.translations.nbrPlots,
|
|
318
318
|
`${e.value.style.layout.dataLabels.xAxis.name} ${e.value.table.translations.average}`,
|
|
319
319
|
`${e.value.style.layout.dataLabels.yAxis.name} ${e.value.table.translations.average}`
|
|
320
|
-
], i =
|
|
320
|
+
], i = S.value.map((o) => [
|
|
321
321
|
{
|
|
322
322
|
shape: o.shape,
|
|
323
323
|
content: o.name,
|
|
@@ -343,7 +343,7 @@ const jt = ["id"], Et = ["xmlns", "viewBox"], Ut = ["width", "height"], Gt = { k
|
|
|
343
343
|
return { head: t, body: i, config: l, colNames: t };
|
|
344
344
|
}), Q = h(!1);
|
|
345
345
|
function je(t) {
|
|
346
|
-
Q.value = t,
|
|
346
|
+
Q.value = t, xe.value += 1;
|
|
347
347
|
}
|
|
348
348
|
function Ee() {
|
|
349
349
|
O.value.showTable = !O.value.showTable;
|
|
@@ -372,7 +372,7 @@ const jt = ["id"], Et = ["xmlns", "viewBox"], Ut = ["width", "height"], Gt = { k
|
|
|
372
372
|
getImage: dt,
|
|
373
373
|
generatePdf: Pe,
|
|
374
374
|
generateCsv: Ve,
|
|
375
|
-
generateImage:
|
|
375
|
+
generateImage: Fe,
|
|
376
376
|
toggleTable: Ee,
|
|
377
377
|
toggleTooltip: Ue,
|
|
378
378
|
toggleAnnotator: de,
|
|
@@ -381,10 +381,10 @@ const jt = ["id"], Et = ["xmlns", "viewBox"], Ut = ["width", "height"], Gt = { k
|
|
|
381
381
|
class: qe(`vue-ui-scatter ${Q.value ? "vue-data-ui-wrapper-fullscreen" : ""} ${e.value.useCssAnimation ? "" : "vue-ui-dna"}`),
|
|
382
382
|
ref_key: "scatterChart",
|
|
383
383
|
ref: D,
|
|
384
|
-
id: `vue-ui-scatter_${
|
|
384
|
+
id: `vue-ui-scatter_${z.value}`,
|
|
385
385
|
style: j(`font-family:${e.value.style.fontFamily};width:100%; text-align:center;background:${e.value.style.backgroundColor};${e.value.responsive ? "height: 100%" : ""}`),
|
|
386
|
-
onMouseenter: i[2] || (i[2] = () => u(
|
|
387
|
-
onMouseleave: i[3] || (i[3] = () => u(
|
|
386
|
+
onMouseenter: i[2] || (i[2] = () => u(ze)(!0)),
|
|
387
|
+
onMouseleave: i[3] || (i[3] = () => u(ze)(!1))
|
|
388
388
|
}, [
|
|
389
389
|
e.value.userOptions.buttons.annotator ? (s(), E(u(at), {
|
|
390
390
|
key: 0,
|
|
@@ -421,15 +421,15 @@ const jt = ["id"], Et = ["xmlns", "viewBox"], Ut = ["width", "height"], Gt = { k
|
|
|
421
421
|
}
|
|
422
422
|
}, null, 8, ["config"]))
|
|
423
423
|
], 512)) : c("", !0),
|
|
424
|
-
e.value.userOptions.show && ae.value && (u(
|
|
424
|
+
e.value.userOptions.show && ae.value && (u(Se) || u(ve)) ? (s(), E(u(ut), {
|
|
425
425
|
ref_key: "details",
|
|
426
426
|
ref: rt,
|
|
427
|
-
key: `user_options_${
|
|
427
|
+
key: `user_options_${xe.value}`,
|
|
428
428
|
backgroundColor: e.value.style.backgroundColor,
|
|
429
429
|
color: e.value.style.color,
|
|
430
430
|
isImaging: u(Ne),
|
|
431
431
|
isPrinting: u(Oe),
|
|
432
|
-
uid:
|
|
432
|
+
uid: z.value,
|
|
433
433
|
hasTooltip: e.value.userOptions.buttons.tooltip && e.value.style.tooltip.show,
|
|
434
434
|
hasPdf: e.value.userOptions.buttons.pdf,
|
|
435
435
|
hasImg: e.value.userOptions.buttons.img,
|
|
@@ -448,12 +448,12 @@ const jt = ["id"], Et = ["xmlns", "viewBox"], Ut = ["width", "height"], Gt = { k
|
|
|
448
448
|
onToggleFullscreen: je,
|
|
449
449
|
onGeneratePdf: u(Pe),
|
|
450
450
|
onGenerateCsv: Ve,
|
|
451
|
-
onGenerateImage: u(
|
|
451
|
+
onGenerateImage: u(Fe),
|
|
452
452
|
onToggleTable: Ee,
|
|
453
453
|
onToggleTooltip: Ue,
|
|
454
454
|
onToggleAnnotator: de,
|
|
455
455
|
style: j({
|
|
456
|
-
visibility: u(
|
|
456
|
+
visibility: u(Se) ? u(ve) ? "visible" : "hidden" : "visible"
|
|
457
457
|
})
|
|
458
458
|
}, gt({ _: 2 }, [
|
|
459
459
|
t.$slots.menuIcon ? {
|
|
@@ -517,7 +517,7 @@ const jt = ["id"], Et = ["xmlns", "viewBox"], Ut = ["width", "height"], Gt = { k
|
|
|
517
517
|
key: 4,
|
|
518
518
|
ref_key: "svgRef",
|
|
519
519
|
ref: Te,
|
|
520
|
-
xmlns: u(
|
|
520
|
+
xmlns: u(St),
|
|
521
521
|
class: qe({ "vue-data-ui-fullscreen--on": Q.value, "vue-data-ui-fulscreen--off": !Q.value }),
|
|
522
522
|
viewBox: `0 0 ${k.value.width <= 0 ? 10 : k.value.width} ${k.value.height <= 0 ? 10 : k.value.height}`,
|
|
523
523
|
style: j(`max-width:100%;overflow:visible;background:transparent;color:${e.value.style.color}`)
|
|
@@ -556,11 +556,11 @@ const jt = ["id"], Et = ["xmlns", "viewBox"], Ut = ["width", "height"], Gt = { k
|
|
|
556
556
|
}, null, 8, Ht)
|
|
557
557
|
])) : c("", !0),
|
|
558
558
|
e.value.style.layout.plots.giftWrap.show ? (s(), r("g", Zt, [
|
|
559
|
-
(s(!0), r(
|
|
559
|
+
(s(!0), r(F, null, Y(S.value, (l, o) => (s(), r("g", null, [
|
|
560
560
|
l.plots.length > 2 ? (s(), r("polygon", {
|
|
561
561
|
key: 0,
|
|
562
562
|
points: u(Tt)({ series: l.plots }),
|
|
563
|
-
fill: u(
|
|
563
|
+
fill: u(be)(l.color, e.value.style.layout.plots.giftWrap.fillOpacity * 100),
|
|
564
564
|
"stroke-width": e.value.style.layout.plots.giftWrap.strokeWidth,
|
|
565
565
|
"stroke-dasharray": e.value.style.layout.plots.giftWrap.strokeDasharray,
|
|
566
566
|
stroke: l.color,
|
|
@@ -569,13 +569,13 @@ const jt = ["id"], Et = ["xmlns", "viewBox"], Ut = ["width", "height"], Gt = { k
|
|
|
569
569
|
}, null, 8, Jt)) : c("", !0)
|
|
570
570
|
]))), 256))
|
|
571
571
|
])) : c("", !0),
|
|
572
|
-
(s(!0), r(
|
|
572
|
+
(s(!0), r(F, null, Y(S.value, (l, o) => (s(), r("g", null, [
|
|
573
573
|
!l.shape || l.shape === "circle" ? (s(), r("g", Kt, [
|
|
574
|
-
(s(!0), r(
|
|
574
|
+
(s(!0), r(F, null, Y(l.plots, (a, v) => (s(), r("circle", {
|
|
575
575
|
cx: a.x,
|
|
576
576
|
cy: a.y,
|
|
577
577
|
r: N.value && N.value === a.id ? a.weight * 2 : a.weight,
|
|
578
|
-
fill: u(
|
|
578
|
+
fill: u(be)(l.color, e.value.style.layout.plots.opacity * 100),
|
|
579
579
|
stroke: e.value.style.layout.plots.stroke,
|
|
580
580
|
"stroke-width": e.value.style.layout.plots.strokeWidth,
|
|
581
581
|
onMouseover: (f) => Ye(a, o),
|
|
@@ -583,11 +583,11 @@ const jt = ["id"], Et = ["xmlns", "viewBox"], Ut = ["width", "height"], Gt = { k
|
|
|
583
583
|
style: j(`opacity:${N.value && N.value === a.id ? 1 : e.value.style.layout.plots.significance.useDistanceOpacity ? 1 - Math.abs(a.deviation) / Ie.value : e.value.style.layout.plots.significance.show && Math.abs(a.deviation) > e.value.style.layout.plots.significance.deviationThreshold ? e.value.style.layout.plots.significance.opacity : 1}`)
|
|
584
584
|
}, null, 44, Qt))), 256))
|
|
585
585
|
])) : (s(), r("g", el, [
|
|
586
|
-
(s(!0), r(
|
|
586
|
+
(s(!0), r(F, null, Y(l.plots, (a, v) => (s(), E(Je, {
|
|
587
587
|
plot: { x: a.x, y: a.y },
|
|
588
588
|
radius: N.value && N.value === a.id ? a.weight * 2 : a.weight,
|
|
589
589
|
shape: l.shape,
|
|
590
|
-
color: u(
|
|
590
|
+
color: u(be)(l.color, e.value.style.layout.plots.opacity * 100),
|
|
591
591
|
stroke: e.value.style.layout.plots.stroke,
|
|
592
592
|
strokeWidth: e.value.style.layout.plots.strokeWidth,
|
|
593
593
|
onMouseover: (f) => Ye(a, o),
|
|
@@ -599,7 +599,7 @@ const jt = ["id"], Et = ["xmlns", "viewBox"], Ut = ["width", "height"], Gt = { k
|
|
|
599
599
|
e.value.style.layout.marginalBars.show ? (s(), r("g", tl, [
|
|
600
600
|
d("defs", null, [
|
|
601
601
|
d("linearGradient", {
|
|
602
|
-
id: `marginal_x_${
|
|
602
|
+
id: `marginal_x_${z.value}`,
|
|
603
603
|
x1: "0%",
|
|
604
604
|
y1: "0%",
|
|
605
605
|
x2: "0%",
|
|
@@ -615,7 +615,7 @@ const jt = ["id"], Et = ["xmlns", "viewBox"], Ut = ["width", "height"], Gt = { k
|
|
|
615
615
|
}, null, 8, ol)
|
|
616
616
|
], 8, ll),
|
|
617
617
|
d("linearGradient", {
|
|
618
|
-
id: `marginal_y_${
|
|
618
|
+
id: `marginal_y_${z.value}`,
|
|
619
619
|
x1: "0%",
|
|
620
620
|
x2: "100%",
|
|
621
621
|
y1: "0%",
|
|
@@ -631,28 +631,28 @@ const jt = ["id"], Et = ["xmlns", "viewBox"], Ut = ["width", "height"], Gt = { k
|
|
|
631
631
|
}, null, 8, il)
|
|
632
632
|
], 8, sl)
|
|
633
633
|
]),
|
|
634
|
-
(s(!0), r(
|
|
634
|
+
(s(!0), r(F, null, Y(T.value.x, (l, o) => (s(), r("g", null, [
|
|
635
635
|
l && T.value.avgX[o] ? (s(), r("rect", {
|
|
636
636
|
key: 0,
|
|
637
637
|
x: T.value.avgX[o] - n.value.width / V.value / 2,
|
|
638
638
|
y: n.value.top - e.value.style.layout.marginalBars.offset - l / T.value.maxX * e.value.style.layout.marginalBars.size,
|
|
639
639
|
width: n.value.width / V.value <= 0 ? 1e-4 : n.value.width / V.value,
|
|
640
640
|
height: l / T.value.maxX * e.value.style.layout.marginalBars.size <= 0 ? 1e-4 : l / T.value.maxX * e.value.style.layout.marginalBars.size,
|
|
641
|
-
fill: e.value.style.layout.marginalBars.useGradient ? `url(#marginal_x_${
|
|
641
|
+
fill: e.value.style.layout.marginalBars.useGradient ? `url(#marginal_x_${z.value})` : e.value.style.layout.marginalBars.fill,
|
|
642
642
|
style: j(`opacity:${e.value.style.layout.marginalBars.opacity}`),
|
|
643
643
|
stroke: e.value.style.backgroundColor,
|
|
644
644
|
"stroke-width": e.value.style.layout.marginalBars.strokeWidth,
|
|
645
645
|
rx: e.value.style.layout.marginalBars.borderRadius
|
|
646
646
|
}, null, 12, rl)) : c("", !0)
|
|
647
647
|
]))), 256)),
|
|
648
|
-
(s(!0), r(
|
|
648
|
+
(s(!0), r(F, null, Y(T.value.y, (l, o) => (s(), r("g", null, [
|
|
649
649
|
l && T.value.avgY[o] ? (s(), r("rect", {
|
|
650
650
|
key: 0,
|
|
651
651
|
x: n.value.right + e.value.style.layout.marginalBars.offset,
|
|
652
652
|
y: T.value.avgY[o] - n.value.height / V.value / 2,
|
|
653
653
|
height: n.value.height / V.value <= 0 ? 1e-4 : n.value.height / V.value,
|
|
654
654
|
width: l / T.value.maxY * e.value.style.layout.marginalBars.size <= 0 ? 1e-4 : l / T.value.maxY * e.value.style.layout.marginalBars.size,
|
|
655
|
-
fill: e.value.style.layout.marginalBars.useGradient ? `url(#marginal_y_${
|
|
655
|
+
fill: e.value.style.layout.marginalBars.useGradient ? `url(#marginal_y_${z.value})` : e.value.style.layout.marginalBars.fill,
|
|
656
656
|
style: j(`opacity:${e.value.style.layout.marginalBars.opacity}`),
|
|
657
657
|
stroke: e.value.style.backgroundColor,
|
|
658
658
|
"stroke-width": e.value.style.layout.marginalBars.strokeWidth,
|
|
@@ -660,8 +660,8 @@ const jt = ["id"], Et = ["xmlns", "viewBox"], Ut = ["width", "height"], Gt = { k
|
|
|
660
660
|
}, null, 12, nl)) : c("", !0)
|
|
661
661
|
]))), 256)),
|
|
662
662
|
e.value.style.layout.marginalBars.showLines ? (s(), r("g", vl, [
|
|
663
|
-
(s(!0), r(
|
|
664
|
-
|
|
663
|
+
(s(!0), r(F, null, Y(ct.value, (l) => (s(), r(F, null, [
|
|
664
|
+
b.value.includes(l.id) ? c("", !0) : (s(), r("path", {
|
|
665
665
|
key: 0,
|
|
666
666
|
d: `M ${l.dX}`,
|
|
667
667
|
stroke: e.value.style.backgroundColor,
|
|
@@ -670,7 +670,7 @@ const jt = ["id"], Et = ["xmlns", "viewBox"], Ut = ["width", "height"], Gt = { k
|
|
|
670
670
|
"stroke-linejoin": "round",
|
|
671
671
|
fill: "none"
|
|
672
672
|
}, null, 8, yl)),
|
|
673
|
-
|
|
673
|
+
b.value.includes(l.id) ? c("", !0) : (s(), r("path", {
|
|
674
674
|
key: 1,
|
|
675
675
|
d: `M ${l.dX}`,
|
|
676
676
|
stroke: l.color,
|
|
@@ -679,7 +679,7 @@ const jt = ["id"], Et = ["xmlns", "viewBox"], Ut = ["width", "height"], Gt = { k
|
|
|
679
679
|
"stroke-linejoin": "round",
|
|
680
680
|
fill: "none"
|
|
681
681
|
}, null, 8, cl)),
|
|
682
|
-
|
|
682
|
+
b.value.includes(l.id) ? c("", !0) : (s(), r("path", {
|
|
683
683
|
key: 2,
|
|
684
684
|
d: `M ${l.dY}`,
|
|
685
685
|
stroke: e.value.style.backgroundColor,
|
|
@@ -688,7 +688,7 @@ const jt = ["id"], Et = ["xmlns", "viewBox"], Ut = ["width", "height"], Gt = { k
|
|
|
688
688
|
"stroke-linejoin": "round",
|
|
689
689
|
fill: "none"
|
|
690
690
|
}, null, 8, dl)),
|
|
691
|
-
|
|
691
|
+
b.value.includes(l.id) ? c("", !0) : (s(), r("path", {
|
|
692
692
|
key: 3,
|
|
693
693
|
d: `M ${l.dY}`,
|
|
694
694
|
stroke: l.color,
|
|
@@ -733,7 +733,7 @@ const jt = ["id"], Et = ["xmlns", "viewBox"], Ut = ["width", "height"], Gt = { k
|
|
|
733
733
|
}, C(u(U)(
|
|
734
734
|
e.value.style.layout.plots.selectors.labels.y.formatter,
|
|
735
735
|
u(A)(y.value.v.y),
|
|
736
|
-
u(
|
|
736
|
+
u(W)({
|
|
737
737
|
p: e.value.style.layout.plots.selectors.labels.prefix,
|
|
738
738
|
v: u(A)(y.value.v.y),
|
|
739
739
|
s: e.value.style.layout.plots.selectors.labels.suffix,
|
|
@@ -751,14 +751,14 @@ const jt = ["id"], Et = ["xmlns", "viewBox"], Ut = ["width", "height"], Gt = { k
|
|
|
751
751
|
}, C(u(U)(
|
|
752
752
|
e.value.style.layout.plots.selectors.labels.y.formatter,
|
|
753
753
|
u(A)(y.value.v.x),
|
|
754
|
-
u(
|
|
754
|
+
u(W)({
|
|
755
755
|
p: e.value.style.layout.plots.selectors.labels.prefix,
|
|
756
756
|
v: u(A)(y.value.v.x),
|
|
757
757
|
s: e.value.style.layout.plots.selectors.labels.suffix,
|
|
758
758
|
r: e.value.style.layout.plots.selectors.labels.rounding
|
|
759
759
|
}),
|
|
760
760
|
{ datapoint: y.value }
|
|
761
|
-
)), 9,
|
|
761
|
+
)), 9, bl),
|
|
762
762
|
d("circle", {
|
|
763
763
|
cx: g.value.x,
|
|
764
764
|
cy: y.value.y,
|
|
@@ -767,7 +767,7 @@ const jt = ["id"], Et = ["xmlns", "viewBox"], Ut = ["width", "height"], Gt = { k
|
|
|
767
767
|
stroke: e.value.style.layout.plots.selectors.markers.stroke,
|
|
768
768
|
"stroke-width": e.value.style.layout.plots.selectors.markers.strokeWidth,
|
|
769
769
|
class: "line-pointer"
|
|
770
|
-
}, null, 8,
|
|
770
|
+
}, null, 8, xl),
|
|
771
771
|
d("circle", {
|
|
772
772
|
cx: y.value.x,
|
|
773
773
|
cy: g.value.y,
|
|
@@ -797,7 +797,7 @@ const jt = ["id"], Et = ["xmlns", "viewBox"], Ut = ["width", "height"], Gt = { k
|
|
|
797
797
|
}, C(u(U)(
|
|
798
798
|
e.value.style.layout.plots.selectors.labels.x.formatter,
|
|
799
799
|
u(A)(p.value.xMin),
|
|
800
|
-
u(
|
|
800
|
+
u(W)({
|
|
801
801
|
p: e.value.style.layout.plots.selectors.labels.prefix,
|
|
802
802
|
v: u(A)(p.value.xMin),
|
|
803
803
|
s: e.value.style.layout.plots.selectors.labels.suffix,
|
|
@@ -813,7 +813,7 @@ const jt = ["id"], Et = ["xmlns", "viewBox"], Ut = ["width", "height"], Gt = { k
|
|
|
813
813
|
}, C(u(U)(
|
|
814
814
|
e.value.style.layout.plots.selectors.labels.x.formatter,
|
|
815
815
|
u(A)(p.value.xMax),
|
|
816
|
-
u(
|
|
816
|
+
u(W)({
|
|
817
817
|
p: e.value.style.layout.plots.selectors.labels.prefix,
|
|
818
818
|
v: u(A)(p.value.xMax),
|
|
819
819
|
s: e.value.style.layout.plots.selectors.labels.suffix,
|
|
@@ -821,7 +821,7 @@ const jt = ["id"], Et = ["xmlns", "viewBox"], Ut = ["width", "height"], Gt = { k
|
|
|
821
821
|
})
|
|
822
822
|
)), 9, $l),
|
|
823
823
|
d("text", {
|
|
824
|
-
id: `vue-ui-scatter-xAxis-label-${
|
|
824
|
+
id: `vue-ui-scatter-xAxis-label-${z.value}`,
|
|
825
825
|
transform: `translate(${e.value.style.layout.dataLabels.xAxis.fontSize * 2}, ${n.value.top + n.value.height / 2}), rotate(-90)`,
|
|
826
826
|
"text-anchor": "middle",
|
|
827
827
|
"font-size": e.value.style.layout.dataLabels.xAxis.fontSize,
|
|
@@ -839,13 +839,13 @@ const jt = ["id"], Et = ["xmlns", "viewBox"], Ut = ["width", "height"], Gt = { k
|
|
|
839
839
|
}, C(u(U)(
|
|
840
840
|
e.value.style.layout.plots.selectors.labels.y.formatter,
|
|
841
841
|
u(A)(p.value.yMin),
|
|
842
|
-
u(
|
|
842
|
+
u(W)({
|
|
843
843
|
p: e.value.style.layout.plots.selectors.labels.prefix,
|
|
844
844
|
v: u(A)(p.value.yMin),
|
|
845
845
|
s: e.value.style.layout.plots.selectors.labels.suffix,
|
|
846
846
|
r: e.value.style.layout.dataLabels.yAxis.rounding
|
|
847
847
|
})
|
|
848
|
-
)), 9,
|
|
848
|
+
)), 9, zl),
|
|
849
849
|
d("text", {
|
|
850
850
|
x: g.value.x,
|
|
851
851
|
y: n.value.top - e.value.style.layout.dataLabels.yAxis.fontSize / 2,
|
|
@@ -855,13 +855,13 @@ const jt = ["id"], Et = ["xmlns", "viewBox"], Ut = ["width", "height"], Gt = { k
|
|
|
855
855
|
}, C(u(U)(
|
|
856
856
|
e.value.style.layout.plots.selectors.labels.y.formatter,
|
|
857
857
|
u(A)(p.value.yMax),
|
|
858
|
-
u(
|
|
858
|
+
u(W)({
|
|
859
859
|
p: e.value.style.layout.plots.selectors.labels.prefix,
|
|
860
860
|
v: u(A)(p.value.yMax),
|
|
861
861
|
s: e.value.style.layout.plots.selectors.labels.suffix,
|
|
862
862
|
r: e.value.style.layout.dataLabels.yAxis.rounding
|
|
863
863
|
})
|
|
864
|
-
)), 9,
|
|
864
|
+
)), 9, Sl),
|
|
865
865
|
d("text", {
|
|
866
866
|
"text-anchor": "middle",
|
|
867
867
|
"font-size": e.value.style.layout.dataLabels.yAxis.fontSize,
|
|
@@ -872,7 +872,7 @@ const jt = ["id"], Et = ["xmlns", "viewBox"], Ut = ["width", "height"], Gt = { k
|
|
|
872
872
|
}, C(e.value.style.layout.dataLabels.yAxis.name), 9, Tl)
|
|
873
873
|
])) : c("", !0),
|
|
874
874
|
d("clipPath", {
|
|
875
|
-
id: `clip_path_${
|
|
875
|
+
id: `clip_path_${z.value}`
|
|
876
876
|
}, [
|
|
877
877
|
d("rect", {
|
|
878
878
|
x: n.value.left,
|
|
@@ -882,7 +882,7 @@ const jt = ["id"], Et = ["xmlns", "viewBox"], Ut = ["width", "height"], Gt = { k
|
|
|
882
882
|
}, null, 8, Bl)
|
|
883
883
|
], 8, Ll),
|
|
884
884
|
e.value.style.layout.correlation.show ? (s(), r("g", Ol, [
|
|
885
|
-
(s(!0), r(
|
|
885
|
+
(s(!0), r(F, null, Y(S.value, (l, o) => (s(), r("line", {
|
|
886
886
|
x1: l.correlation.x1,
|
|
887
887
|
x2: l.correlation.x2,
|
|
888
888
|
y1: l.correlation.y1,
|
|
@@ -890,9 +890,9 @@ const jt = ["id"], Et = ["xmlns", "viewBox"], Ut = ["width", "height"], Gt = { k
|
|
|
890
890
|
"stroke-dasharray": e.value.style.layout.correlation.strokeDasharray,
|
|
891
891
|
stroke: l.color,
|
|
892
892
|
"stroke-width": e.value.style.layout.correlation.strokeWidth,
|
|
893
|
-
"clip-path": `url(#clip_path_${
|
|
893
|
+
"clip-path": `url(#clip_path_${z.value})`
|
|
894
894
|
}, null, 8, Nl))), 256)),
|
|
895
|
-
(s(!0), r(
|
|
895
|
+
(s(!0), r(F, null, Y(S.value, (l, o) => (s(), r("g", null, [
|
|
896
896
|
e.value.style.layout.correlation.label.show ? (s(), r("text", {
|
|
897
897
|
key: 0,
|
|
898
898
|
x: l.label.x,
|
|
@@ -900,7 +900,7 @@ const jt = ["id"], Et = ["xmlns", "viewBox"], Ut = ["width", "height"], Gt = { k
|
|
|
900
900
|
fill: e.value.style.layout.correlation.label.useSerieColor ? l.color : e.value.style.layout.correlation.label.color,
|
|
901
901
|
"font-size": e.value.style.layout.correlation.label.fontSize,
|
|
902
902
|
"font-weight": e.value.style.layout.correlation.label.bold ? "bold" : "normal"
|
|
903
|
-
}, C(u(
|
|
903
|
+
}, C(u(W)({
|
|
904
904
|
v: u(A)(l.correlation.coefficient),
|
|
905
905
|
r: e.value.style.layout.correlation.label.roundingValue
|
|
906
906
|
})), 9, Pl)) : c("", !0)
|
|
@@ -908,7 +908,7 @@ const jt = ["id"], Et = ["xmlns", "viewBox"], Ut = ["width", "height"], Gt = { k
|
|
|
908
908
|
])) : c("", !0),
|
|
909
909
|
M(t.$slots, "svg", { svg: k.value }, void 0, !0)
|
|
910
910
|
], 14, Et)) : c("", !0),
|
|
911
|
-
t.$slots.watermark ? (s(), r("div",
|
|
911
|
+
t.$slots.watermark ? (s(), r("div", Fl, [
|
|
912
912
|
M(t.$slots, "watermark", te(le({ isPrinting: u(Oe) || u(Ne) })), void 0, !0)
|
|
913
913
|
])) : c("", !0),
|
|
914
914
|
ae.value ? c("", !0) : (s(), E(u(ot), {
|
|
@@ -942,8 +942,8 @@ const jt = ["id"], Et = ["xmlns", "viewBox"], Ut = ["width", "height"], Gt = { k
|
|
|
942
942
|
item: _(({ legend: l }) => [
|
|
943
943
|
d("div", {
|
|
944
944
|
onClick: (o) => l.segregate(),
|
|
945
|
-
style: j(`opacity:${
|
|
946
|
-
}, C(l.name), 13,
|
|
945
|
+
style: j(`opacity:${b.value.includes(l.id) ? 0.5 : 1}`)
|
|
946
|
+
}, C(l.name), 13, Wl)
|
|
947
947
|
]),
|
|
948
948
|
_: 1
|
|
949
949
|
}, 8, ["legendSet", "config"])) : M(t.$slots, "legend", {
|
|
@@ -973,7 +973,9 @@ const jt = ["id"], Et = ["xmlns", "viewBox"], Ut = ["width", "height"], Gt = { k
|
|
|
973
973
|
parent: D.value,
|
|
974
974
|
content: ne.value,
|
|
975
975
|
isFullscreen: Q.value,
|
|
976
|
-
isCustom: e.value.style.tooltip.customFormat && typeof e.value.style.tooltip.customFormat == "function"
|
|
976
|
+
isCustom: e.value.style.tooltip.customFormat && typeof e.value.style.tooltip.customFormat == "function",
|
|
977
|
+
smooth: e.value.style.tooltip.smooth,
|
|
978
|
+
backdropFilter: e.value.style.tooltip.backdropFilter
|
|
977
979
|
}, {
|
|
978
980
|
"tooltip-before": _(() => [
|
|
979
981
|
M(t.$slots, "tooltip-before", te(le({ ...ce.value })), void 0, !0)
|
|
@@ -994,7 +996,7 @@ const jt = ["id"], Et = ["xmlns", "viewBox"], Ut = ["width", "height"], Gt = { k
|
|
|
994
996
|
])) : c("", !0)
|
|
995
997
|
]),
|
|
996
998
|
_: 3
|
|
997
|
-
}, 8, ["show", "backgroundColor", "color", "borderRadius", "borderColor", "borderWidth", "fontSize", "backgroundOpacity", "position", "offsetY", "parent", "content", "isFullscreen", "isCustom"]),
|
|
999
|
+
}, 8, ["show", "backgroundColor", "color", "borderRadius", "borderColor", "borderWidth", "fontSize", "backgroundOpacity", "position", "offsetY", "parent", "content", "isFullscreen", "isCustom", "smooth", "backdropFilter"]),
|
|
998
1000
|
ae.value ? (s(), E(u(et), {
|
|
999
1001
|
key: 8,
|
|
1000
1002
|
hideDetails: "",
|
|
@@ -1039,7 +1041,7 @@ const jt = ["id"], Et = ["xmlns", "viewBox"], Ut = ["width", "height"], Gt = { k
|
|
|
1039
1041
|
}, 8, ["config"])) : c("", !0)
|
|
1040
1042
|
], 46, jt));
|
|
1041
1043
|
}
|
|
1042
|
-
}, ta = /* @__PURE__ */ Vt(Rl, [["__scopeId", "data-v-
|
|
1044
|
+
}, ta = /* @__PURE__ */ Vt(Rl, [["__scopeId", "data-v-bd20363e"]]);
|
|
1043
1045
|
export {
|
|
1044
1046
|
ta as default
|
|
1045
1047
|
};
|