vue-data-ui 3.0.0-next.0 → 3.0.0-next.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +92 -66
- package/dist/{Arrow-CzFtSJ1v.js → Arrow-BKKETqRi.js} +1 -1
- package/dist/{BaseDraggableDialog-0S5xhs2P.js → BaseDraggableDialog-Duz4Bd3A.js} +2 -2
- package/dist/{BaseIcon-DoDjTdD5.js → BaseIcon-BAHAKjob.js} +1 -1
- package/dist/{ColorPicker-BGRchgqQ.js → ColorPicker-oPTO1J9Q.js} +2 -2
- package/dist/{DataTable-BBbOgI-a.js → DataTable-vByThHdN.js} +2 -2
- package/dist/{Legend-Q4bOb-Nf.js → Legend-CIElSUHU.js} +11 -11
- package/dist/{NonSvgPenAndPaper-DNKRvsBB.js → NonSvgPenAndPaper-CsY6Bf4e.js} +3 -3
- package/dist/{PackageVersion-D0VPY8-5.js → PackageVersion-B0wGS6pw.js} +1 -1
- package/dist/{PenAndPaper-DhBJsnob.js → PenAndPaper-7o0xS-d4.js} +32 -32
- package/dist/{Shape-DbsLJ-SE.js → Shape-Blrp5ZfP.js} +1 -1
- package/dist/{Slicer-DZEFp2GU.js → Slicer-CcM8hzCn.js} +2 -2
- package/dist/{SparkTooltip-CoOJR62O.js → SparkTooltip-iaouYun8.js} +1 -1
- package/dist/{Title-D29apS4l.js → Title-CWxjC3bE.js} +1 -1
- package/dist/{Tooltip-hVZUY_s5.js → Tooltip-Cq9HywcX.js} +1 -1
- package/dist/{UserOptions-Bdit7AWO.js → UserOptions-BEBaPSlU.js} +137 -129
- package/dist/{dom-to-png-BdPIrHOF.js → dom-to-png-CrAOuxmd.js} +1 -1
- package/dist/img-D3JvqNF8.js +33 -0
- package/dist/{index-DMqAxz7R.js → index-BSa4GlHG.js} +30 -8
- package/dist/pdf-DROWzopj.js +58 -0
- package/dist/style.css +1 -1
- package/dist/types/vue-data-ui.d.cts +1018 -166
- package/dist/types/vue-data-ui.d.ts +1018 -166
- package/dist/{useNestedProp-YgN3FV_8.js → useNestedProp-uR74_CFG.js} +1 -1
- package/dist/{usePrinter-COkTjv6C.js → usePrinter-j3g1L2nh.js} +2 -2
- package/dist/vue-data-ui-BzMRz9Un.js +314 -0
- package/dist/vue-data-ui.js +1 -1
- package/dist/{vue-ui-3d-bar-Ojgjl20n.js → vue-ui-3d-bar-BAOGEe-m.js} +261 -245
- package/dist/{vue-ui-accordion-P6eFHGQp.js → vue-ui-accordion-DzF-SPaZ.js} +3 -3
- package/dist/{vue-ui-age-pyramid-IcMpAhiw.js → vue-ui-age-pyramid-BRdQ44O4.js} +233 -217
- package/dist/{vue-ui-annotator-Bk7d86-x.js → vue-ui-annotator-mjIKrhYa.js} +2 -2
- package/dist/{vue-ui-bullet-DCvWbCPk.js → vue-ui-bullet-CLYmLvSB.js} +172 -156
- package/dist/{vue-ui-candlestick-DCf-88Yv.js → vue-ui-candlestick-BFLmoEEN.js} +271 -254
- package/dist/{vue-ui-carousel-table-DEsl0XUh.js → vue-ui-carousel-table-V89TMa5p.js} +17 -16
- package/dist/{vue-ui-chestnut-Cg10-3wu.js → vue-ui-chestnut-C7eNjkFo.js} +418 -402
- package/dist/{vue-ui-chord-BWYzR6vf.js → vue-ui-chord-BuYDLE7K.js} +256 -240
- package/dist/{vue-ui-circle-pack-CO2Ra2-5.js → vue-ui-circle-pack-CCMbsOpk.js} +234 -218
- package/dist/{vue-ui-cursor-BbYHJDbV.js → vue-ui-cursor-BrKIImfp.js} +2 -2
- package/dist/{vue-ui-dashboard-DkCnNuse.js → vue-ui-dashboard-WMKjx3iE.js} +62 -62
- package/dist/{vue-ui-digits-DRsphHt2.js → vue-ui-digits-BoYPIuXn.js} +2 -2
- package/dist/vue-ui-donut-DJVqqXEb.js +1338 -0
- package/dist/{vue-ui-donut-evolution-B5F2-0bh.js → vue-ui-donut-evolution-DSG8NUG0.js} +370 -357
- package/dist/{vue-ui-dumbbell-DqqSxoSh.js → vue-ui-dumbbell-BMveoLd_.js} +216 -200
- package/dist/{vue-ui-flow-CTIcUJgV.js → vue-ui-flow-Dnsik-8f.js} +217 -201
- package/dist/{vue-ui-funnel-k7KD7Xoc.js → vue-ui-funnel-CQ0nHCvy.js} +213 -197
- package/dist/{vue-ui-galaxy-C9EHaP4I.js → vue-ui-galaxy-D5L31IXm.js} +215 -202
- package/dist/{vue-ui-gauge-CBiM_1-n.js → vue-ui-gauge-BnuDe4Wj.js} +220 -204
- package/dist/{vue-ui-gizmo-CAc7b2oK.js → vue-ui-gizmo-DYYw-JEs.js} +3 -3
- package/dist/{vue-ui-heatmap-B3ubrP2v.js → vue-ui-heatmap-9KJYiKzE.js} +244 -224
- package/dist/{vue-ui-history-plot-XCqccO3b.js → vue-ui-history-plot-QOaVWh5L.js} +268 -252
- package/dist/{vue-ui-kpi-DTGMDjaZ.js → vue-ui-kpi-EtTBwHGS.js} +3 -3
- package/dist/{vue-ui-mini-loader-Cn_7nvVq.js → vue-ui-mini-loader-CRnUCpsm.js} +2 -2
- package/dist/{vue-ui-molecule-BugMXFAK.js → vue-ui-molecule-Bfk3Vhbi.js} +204 -188
- package/dist/{vue-ui-mood-radar-Cv4dHZPL.js → vue-ui-mood-radar-BfRkWvgp.js} +206 -190
- package/dist/vue-ui-nested-donuts-Ck9Zm1UU.js +1177 -0
- package/dist/{vue-ui-onion-Bha2hRAb.js → vue-ui-onion-DF7Z21x-.js} +196 -180
- package/dist/{vue-ui-parallel-coordinate-plot-DWJ2DWx4.js → vue-ui-parallel-coordinate-plot-JVogg7k5.js} +194 -178
- package/dist/{vue-ui-quadrant-BKHZoTml.js → vue-ui-quadrant-DpFjMZoK.js} +321 -305
- package/dist/{vue-ui-quick-chart-D_k3lbU8.js → vue-ui-quick-chart-NfXEFkoL.js} +347 -331
- package/dist/{vue-ui-radar-Co4EOjSk.js → vue-ui-radar-Dg8UovnR.js} +193 -177
- package/dist/{vue-ui-rating-dtNN0EdX.js → vue-ui-rating-D3cpdLRt.js} +2 -2
- package/dist/{vue-ui-relation-circle-CR4UpQzM.js → vue-ui-relation-circle-BZTTPLCi.js} +188 -172
- package/dist/{vue-ui-ridgeline-BKX97EnR.js → vue-ui-ridgeline-CtY_J3hk.js} +212 -196
- package/dist/{vue-ui-rings-EPTwyt6D.js → vue-ui-rings-BiA-bRgU.js} +223 -210
- package/dist/{vue-ui-scatter-BlxzblSR.js → vue-ui-scatter-C3sCChYD.js} +288 -273
- package/dist/{vue-ui-skeleton-CjN2ZdgT.js → vue-ui-skeleton-DY48gQ96.js} +3 -3
- package/dist/{vue-ui-smiley-DdF_ErYG.js → vue-ui-smiley-DopwmgcY.js} +2 -2
- package/dist/{vue-ui-spark-trend-RdOlCuT9.js → vue-ui-spark-trend-DO7P-2x8.js} +3 -3
- package/dist/{vue-ui-sparkbar-DWufRGcN.js → vue-ui-sparkbar-mqLbTvAg.js} +3 -3
- package/dist/{vue-ui-sparkgauge-IP1O3qyT.js → vue-ui-sparkgauge-CdfZYUAZ.js} +3 -3
- package/dist/{vue-ui-sparkhistogram-Cnv9xZ8H.js → vue-ui-sparkhistogram-DAy--kFA.js} +4 -4
- package/dist/{vue-ui-sparkline-CYgeD5V3.js → vue-ui-sparkline-KkG0FnmI.js} +3 -3
- package/dist/{vue-ui-sparkstackbar-BCwoK9xd.js → vue-ui-sparkstackbar-LDRannBB.js} +3 -3
- package/dist/{vue-ui-stackbar-CqFIvfrK.js → vue-ui-stackbar-Bys4yWs_.js} +497 -474
- package/dist/{vue-ui-strip-plot-Dq-kDRai.js → vue-ui-strip-plot-DUBqioS2.js} +241 -225
- package/dist/{vue-ui-table-vaIdQnPl.js → vue-ui-table-CPWgP-71.js} +3 -3
- package/dist/{vue-ui-table-heatmap-U_Td0cdh.js → vue-ui-table-heatmap-DfrMVDEE.js} +26 -25
- package/dist/{vue-ui-table-sparkline-DkOaHx5L.js → vue-ui-table-sparkline-CNC7Lp0t.js} +8 -7
- package/dist/{vue-ui-thermometer-CzckBZgs.js → vue-ui-thermometer-Bby5nWIi.js} +170 -154
- package/dist/{vue-ui-timer-DSdUshUs.js → vue-ui-timer-ym9etXUy.js} +5 -5
- package/dist/vue-ui-tiremarks-C0V_XedF.js +358 -0
- package/dist/vue-ui-treemap-B5k0NEO3.js +965 -0
- package/dist/{vue-ui-vertical-bar-Dd4sYeAC.js → vue-ui-vertical-bar-DRmHFEMu.js} +335 -319
- package/dist/{vue-ui-waffle-DusUVY6y.js → vue-ui-waffle-DrEQsTIO.js} +234 -221
- package/dist/vue-ui-wheel-BOTBLBOr.js +352 -0
- package/dist/{vue-ui-word-cloud-_7uYjJ5A.js → vue-ui-word-cloud-Btay9XOs.js} +249 -233
- package/dist/{vue-ui-world-COIyBHII.js → vue-ui-world-zBvIXrWH.js} +239 -223
- package/dist/{vue-ui-xy-C_OUyzTC.js → vue-ui-xy-C7uPPKm9.js} +700 -686
- package/dist/{vue-ui-xy-canvas-CuYRyub2.js → vue-ui-xy-canvas-CDjYeEkq.js} +447 -431
- package/package.json +1 -1
- package/dist/img-BeMVTwmF.js +0 -20
- package/dist/pdf-DPxOdzfi.js +0 -51
- package/dist/vue-data-ui-nceqWRts.js +0 -301
- package/dist/vue-ui-donut-DSE7ubVv.js +0 -1315
- package/dist/vue-ui-nested-donuts-CYe0Are_.js +0 -1154
- package/dist/vue-ui-tiremarks-B2WWklqG.js +0 -342
- package/dist/vue-ui-treemap-D1dgDhjG.js +0 -952
- package/dist/vue-ui-wheel-ClsKBh52.js +0 -336
|
@@ -1,29 +1,30 @@
|
|
|
1
|
-
import { defineAsyncComponent as
|
|
2
|
-
import { u as
|
|
3
|
-
import { t as
|
|
4
|
-
import { u as
|
|
5
|
-
import { u as
|
|
6
|
-
import { u as
|
|
7
|
-
import { u as
|
|
8
|
-
import
|
|
9
|
-
import
|
|
10
|
-
import { _ as
|
|
11
|
-
import
|
|
12
|
-
|
|
1
|
+
import { defineAsyncComponent as Z, computed as b, 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 W, renderList as Y, toDisplayString as C, createTextVNode as mt, nextTick as xt } from "vue";
|
|
2
|
+
import { u as bt, 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, a1 as At, V as St, X as zt, s as xe, Z as Tt, i as U, v as A, f as F, q as Lt, r as Bt, x as Ot, y as Nt } from "./index-BSa4GlHG.js";
|
|
3
|
+
import { t as Pt, u as Wt } from "./useResponsive-DfdjqQps.js";
|
|
4
|
+
import { u as Ze } from "./useNestedProp-uR74_CFG.js";
|
|
5
|
+
import { u as Ft } from "./usePrinter-j3g1L2nh.js";
|
|
6
|
+
import { u as It } from "./useUserOptionState-BIvW1Kz7.js";
|
|
7
|
+
import { u as Xt } from "./useChartAccessibility-9icAAmYg.js";
|
|
8
|
+
import Yt from "./Legend-CIElSUHU.js";
|
|
9
|
+
import Dt from "./Title-CWxjC3bE.js";
|
|
10
|
+
import { _ as Je } from "./Shape-Blrp5ZfP.js";
|
|
11
|
+
import Rt from "./img-D3JvqNF8.js";
|
|
12
|
+
import { _ as Vt } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
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 = {
|
|
13
14
|
key: 4,
|
|
14
15
|
style: { "pointer-events": "none !important" }
|
|
15
|
-
},
|
|
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"], xl = ["x", "y", "font-size", "fill", "font-weight"], bl = ["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 }, Sl = ["x", "y", "font-size", "fill"], zl = ["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"], Wl = {
|
|
16
17
|
key: 5,
|
|
17
18
|
class: "vue-data-ui-watermark"
|
|
18
|
-
},
|
|
19
|
+
}, Fl = ["onClick"], Il = {
|
|
19
20
|
key: 0,
|
|
20
21
|
style: { width: "100%", display: "flex", "align-items": "center", "justify-content": "center" }
|
|
21
|
-
},
|
|
22
|
+
}, Xl = {
|
|
22
23
|
viewBox: "0 0 20 20",
|
|
23
24
|
height: "20",
|
|
24
25
|
width: "20",
|
|
25
26
|
style: { overflow: "hidden", background: "transparent" }
|
|
26
|
-
},
|
|
27
|
+
}, Yl = { key: 0 }, Dl = ["innerHTML"], Rl = {
|
|
27
28
|
__name: "vue-ui-scatter",
|
|
28
29
|
props: {
|
|
29
30
|
config: {
|
|
@@ -39,59 +40,59 @@ const Vt = ["id"], jt = ["xmlns", "viewBox"], Rt = ["width", "height"], Et = { k
|
|
|
39
40
|
}
|
|
40
41
|
}
|
|
41
42
|
},
|
|
42
|
-
setup(
|
|
43
|
-
const
|
|
43
|
+
setup(Ke, { expose: Qe }) {
|
|
44
|
+
const et = Z(() => import("./vue-ui-accordion-DzF-SPaZ.js")), tt = Z(() => import("./DataTable-vByThHdN.js")), lt = Z(() => import("./PackageVersion-B0wGS6pw.js")), at = Z(() => import("./PenAndPaper-7o0xS-d4.js")), ot = Z(() => import("./vue-ui-skeleton-DY48gQ96.js")), st = Z(() => import("./Tooltip-Cq9HywcX.js")), ut = Z(() => import("./UserOptions-BEBaPSlU.js")), { vue_ui_scatter: it } = bt(), I = Ke, ae = b(() => !!I.dataset && I.dataset.length), S = h(kt()), rt = h(null), re = h(!1), ne = h(""), be = 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), x = h([]), e = b({
|
|
44
45
|
get: () => Le(),
|
|
45
46
|
set: (t) => t
|
|
46
|
-
}), { userOptionsVisible: ve, setUserOptionsVisibility:
|
|
47
|
+
}), { userOptionsVisible: ve, setUserOptionsVisibility: Se, keepUserOptionState: ze } = It({ config: e.value }), { svgRef: Te } = Xt({ config: e.value.style.title });
|
|
47
48
|
function Le() {
|
|
48
|
-
const t =
|
|
49
|
+
const t = Ze({
|
|
49
50
|
userConfig: I.config,
|
|
50
|
-
defaultConfig:
|
|
51
|
+
defaultConfig: it
|
|
51
52
|
});
|
|
52
53
|
return t.theme ? {
|
|
53
|
-
...
|
|
54
|
-
userConfig:
|
|
54
|
+
...Ze({
|
|
55
|
+
userConfig: _t.vue_ui_scatter[t.theme] || I.config,
|
|
55
56
|
defaultConfig: t
|
|
56
57
|
}),
|
|
57
|
-
customPalette:
|
|
58
|
+
customPalette: wt[t.theme] || J
|
|
58
59
|
} : t;
|
|
59
60
|
}
|
|
60
|
-
|
|
61
|
+
ht(() => I.config, (t) => {
|
|
61
62
|
e.value = Le(), ve.value = !e.value.userOptions.showOnChartHover, Be(), $e.value += 1, Ce.value += 1, Ae.value += 1, O.value.showTable = e.value.table.show, O.value.showTooltip = e.value.style.tooltip.show;
|
|
62
63
|
}, { deep: !0 });
|
|
63
|
-
const
|
|
64
|
-
|
|
64
|
+
const R = Ge(null), K = Ge(null);
|
|
65
|
+
pt(() => {
|
|
65
66
|
Be();
|
|
66
67
|
});
|
|
67
68
|
function Be() {
|
|
68
|
-
if (
|
|
69
|
+
if (Mt(I.dataset) && me({
|
|
69
70
|
componentName: "VueUiScatter",
|
|
70
71
|
type: "dataset"
|
|
71
72
|
}), e.value.responsive) {
|
|
72
|
-
const t =
|
|
73
|
-
const { width:
|
|
74
|
-
chart:
|
|
73
|
+
const t = Pt(() => {
|
|
74
|
+
const { width: i, height: l } = Wt({
|
|
75
|
+
chart: D.value,
|
|
75
76
|
title: e.value.style.title.text ? ke.value : null,
|
|
76
77
|
legend: e.value.style.legend.show ? we.value : null,
|
|
77
78
|
source: _e.value,
|
|
78
79
|
noTitle: Me.value
|
|
79
80
|
});
|
|
80
81
|
requestAnimationFrame(() => {
|
|
81
|
-
k.value.width =
|
|
82
|
+
k.value.width = i, k.value.height = l;
|
|
82
83
|
});
|
|
83
84
|
});
|
|
84
|
-
|
|
85
|
+
R.value && (K.value && R.value.unobserve(K.value), R.value.disconnect()), R.value = new ResizeObserver(t), K.value = D.value.parentNode, R.value.observe(K.value);
|
|
85
86
|
}
|
|
86
87
|
}
|
|
87
|
-
|
|
88
|
-
|
|
88
|
+
ft(() => {
|
|
89
|
+
R.value && (K.value && R.value.unobserve(K.value), R.value.disconnect());
|
|
89
90
|
});
|
|
90
|
-
const { isPrinting: Oe, isImaging: Ne, generatePdf: Pe, generateImage: We } =
|
|
91
|
-
elementId: `vue-ui-scatter_${
|
|
91
|
+
const { isPrinting: Oe, isImaging: Ne, generatePdf: Pe, generateImage: We } = Ft({
|
|
92
|
+
elementId: `vue-ui-scatter_${S.value}`,
|
|
92
93
|
fileName: e.value.style.title.text || "vue-ui-scatter",
|
|
93
94
|
options: e.value.userOptions.print
|
|
94
|
-
}),
|
|
95
|
+
}), nt = b(() => e.value.userOptions.show && !e.value.style.title.text), Fe = b(() => $t(e.value.customPalette)), O = h({
|
|
95
96
|
showTable: e.value.table.show,
|
|
96
97
|
showTooltip: e.value.style.tooltip.show
|
|
97
98
|
}), k = h({
|
|
@@ -106,7 +107,7 @@ const Vt = ["id"], jt = ["xmlns", "viewBox"], Rt = ["width", "height"], Et = { k
|
|
|
106
107
|
width: k.value.width - e.value.style.layout.padding.left - e.value.style.layout.padding.right - oe.value
|
|
107
108
|
})), p = b(() => {
|
|
108
109
|
I.dataset.forEach((a, v) => {
|
|
109
|
-
|
|
110
|
+
He({
|
|
110
111
|
datasetObject: a,
|
|
111
112
|
requiredAttributes: ["values"]
|
|
112
113
|
}).forEach((f) => {
|
|
@@ -117,47 +118,47 @@ const Vt = ["id"], jt = ["xmlns", "viewBox"], Rt = ["width", "height"], Et = { k
|
|
|
117
118
|
index: v
|
|
118
119
|
});
|
|
119
120
|
}), a.values && a.values.forEach((f, L) => {
|
|
120
|
-
|
|
121
|
+
He({
|
|
121
122
|
datasetObject: f,
|
|
122
123
|
requiredAttributes: ["x", "y"]
|
|
123
|
-
}).forEach((
|
|
124
|
+
}).forEach((ee) => {
|
|
124
125
|
me({
|
|
125
126
|
componentName: "VueUiScatter",
|
|
126
127
|
type: "datasetSerieAttribute",
|
|
127
|
-
property: `values.${
|
|
128
|
+
property: `values.${ee}`,
|
|
128
129
|
index: `${v} - ${L}`
|
|
129
130
|
});
|
|
130
131
|
});
|
|
131
132
|
});
|
|
132
133
|
});
|
|
133
|
-
const t = Math.min(...G.value.filter((a) => !x.value.includes(a.id)).flatMap((a) => a.values.map((v) => v.x))),
|
|
134
|
-
return { xMin: t >= 0 ? 0 : t, xMax:
|
|
134
|
+
const t = Math.min(...G.value.filter((a) => !x.value.includes(a.id)).flatMap((a) => a.values.map((v) => v.x))), i = Math.max(...G.value.filter((a) => !x.value.includes(a.id)).flatMap((a) => a.values.map((v) => v.x))), l = Math.min(...G.value.filter((a) => !x.value.includes(a.id)).flatMap((a) => a.values.map((v) => v.y))), o = Math.max(...G.value.filter((a) => !x.value.includes(a.id)).flatMap((a) => a.values.map((v) => v.y)));
|
|
135
|
+
return { xMin: t >= 0 ? 0 : t, xMax: i, yMin: l >= 0 ? 0 : l, yMax: o };
|
|
135
136
|
}), g = b(() => ({
|
|
136
137
|
x: n.value.left + Math.abs(p.value.xMin) / (p.value.xMax + Math.abs(p.value.xMin)) * n.value.width,
|
|
137
138
|
y: n.value.bottom - Math.abs(p.value.yMin) / (p.value.yMax + Math.abs(p.value.yMin)) * n.value.height
|
|
138
|
-
})), G = b(() => I.dataset.map((t,
|
|
139
|
-
const l = `cluster_${
|
|
139
|
+
})), G = b(() => I.dataset.map((t, i) => {
|
|
140
|
+
const l = `cluster_${S.value}_${i}`;
|
|
140
141
|
return {
|
|
141
142
|
...t,
|
|
142
|
-
values:
|
|
143
|
+
values: Ct({
|
|
143
144
|
data: t.values,
|
|
144
145
|
threshold: e.value.downsample.threshold
|
|
145
146
|
}),
|
|
146
147
|
id: l,
|
|
147
|
-
color: t.color ? t.color : Fe.value[
|
|
148
|
+
color: t.color ? t.color : Fe.value[i] || J[i] || J[i % J.length],
|
|
148
149
|
opacity: x.value.includes(l) ? 0.5 : 1,
|
|
149
150
|
shape: t.shape ?? "circle",
|
|
150
|
-
segregate: () =>
|
|
151
|
+
segregate: () => Re(l),
|
|
151
152
|
isSegregated: x.value.includes(l)
|
|
152
153
|
};
|
|
153
|
-
})),
|
|
154
|
+
})), vt = b(() => ({
|
|
154
155
|
cy: "scatter-div-legend",
|
|
155
156
|
backgroundColor: e.value.style.legend.backgroundColor,
|
|
156
157
|
color: e.value.style.legend.color,
|
|
157
158
|
fontSize: e.value.style.legend.fontSize,
|
|
158
159
|
paddingBottom: 12,
|
|
159
160
|
fontWeight: e.value.style.legend.bold ? "bold" : ""
|
|
160
|
-
})), ye = b(() => G.value.map((t,
|
|
161
|
+
})), ye = b(() => G.value.map((t, i) => ({
|
|
161
162
|
...t,
|
|
162
163
|
plots: t.values.map((l) => ({
|
|
163
164
|
x: n.value.left + (l.x + Math.abs(p.value.xMin)) / (p.value.xMax + Math.abs(p.value.xMin)) * n.value.width,
|
|
@@ -167,31 +168,31 @@ const Vt = ["id"], jt = ["xmlns", "viewBox"], Rt = ["width", "height"], Et = { k
|
|
|
167
168
|
name: l.name || ""
|
|
168
169
|
},
|
|
169
170
|
clusterName: t.name,
|
|
170
|
-
color: t.color ? t.color : Fe.value[
|
|
171
|
-
id: `plot_${
|
|
171
|
+
color: t.color ? t.color : Fe.value[i] || J[i] || J[i % J.length],
|
|
172
|
+
id: `plot_${S.value}_${Math.random()}`,
|
|
172
173
|
weight: l.weight ?? e.value.style.layout.plots.radius
|
|
173
174
|
}))
|
|
174
|
-
})).filter((t) => !x.value.includes(t.id))),
|
|
175
|
-
const
|
|
176
|
-
let
|
|
175
|
+
})).filter((t) => !x.value.includes(t.id))), z = b(() => ye.value.map((t) => {
|
|
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
|
+
let o = 0, a = 0, v = 0;
|
|
177
178
|
for (const m of t.plots)
|
|
178
|
-
|
|
179
|
-
const f =
|
|
179
|
+
o += (m.x - i) * (m.y - l), a += (m.x - i) ** 2, v += (m.y - l) ** 2;
|
|
180
|
+
const f = o / Math.sqrt(a * v), L = f * (Math.sqrt(v) / Math.sqrt(a)), ee = l - L * i, P = {
|
|
180
181
|
x1: n.value.left,
|
|
181
182
|
x2: n.value.right,
|
|
182
|
-
y1: L * n.value.left +
|
|
183
|
-
y2: L * n.value.right +
|
|
183
|
+
y1: L * n.value.left + ee,
|
|
184
|
+
y2: L * n.value.right + ee,
|
|
184
185
|
coefficient: f
|
|
185
|
-
}, $ = (P.y2 - P.y1) / (P.x2 - P.x1), B = P.y1 - $ * P.x1, X = Math.min(k.value.width - e.value.style.layout.padding.right, Math.max(e.value.style.layout.padding.left, (n.value.top - B) / $)),
|
|
186
|
+
}, $ = (P.y2 - P.y1) / (P.x2 - P.x1), B = P.y1 - $ * P.x1, X = Math.min(k.value.width - e.value.style.layout.padding.right, Math.max(e.value.style.layout.padding.left, (n.value.top - B) / $)), ie = {
|
|
186
187
|
x: X,
|
|
187
188
|
y: $ * X + B <= e.value.style.layout.padding.top ? n.value.top : $ * X + B
|
|
188
189
|
};
|
|
189
190
|
return {
|
|
190
191
|
...t,
|
|
191
192
|
correlation: P,
|
|
192
|
-
label:
|
|
193
|
+
label: ie,
|
|
193
194
|
plots: t.plots.map((m) => {
|
|
194
|
-
const
|
|
195
|
+
const q = (m.x + $ * m.y - $ * B) / (1 + Math.pow($, 2)), he = ($ * m.x + Math.pow($, 2) * m.y + B) / (1 + Math.pow($, 2)), w = Math.sqrt(Math.pow(m.x - q, 2) + Math.pow(m.y - he, 2));
|
|
195
196
|
return {
|
|
196
197
|
...m,
|
|
197
198
|
deviation: w,
|
|
@@ -200,73 +201,73 @@ const Vt = ["id"], jt = ["xmlns", "viewBox"], Rt = ["width", "height"], Et = { k
|
|
|
200
201
|
};
|
|
201
202
|
})
|
|
202
203
|
};
|
|
203
|
-
})), Ie = b(() => Math.max(...
|
|
204
|
-
function
|
|
205
|
-
return
|
|
204
|
+
})), Ie = b(() => Math.max(...z.value.flatMap((t) => t.plots.map((i) => Math.abs(i.deviation)))));
|
|
205
|
+
function yt() {
|
|
206
|
+
return z.value;
|
|
206
207
|
}
|
|
207
|
-
function Xe(t,
|
|
208
|
-
const l = Array.isArray(t) ? t.flatMap((w) => w.plots.map((
|
|
209
|
-
x:
|
|
210
|
-
y:
|
|
208
|
+
function Xe(t, i) {
|
|
209
|
+
const l = Array.isArray(t) ? t.flatMap((w) => w.plots.map((H) => ({
|
|
210
|
+
x: H.x,
|
|
211
|
+
y: H.y
|
|
211
212
|
}))) : t.plots.map((w) => ({
|
|
212
213
|
x: w.x,
|
|
213
214
|
y: w.y
|
|
214
215
|
}));
|
|
215
|
-
let
|
|
216
|
-
l.forEach(({ x: w, y:
|
|
217
|
-
|
|
216
|
+
let o = 1 / 0, a = -1 / 0, v = 1 / 0, f = -1 / 0;
|
|
217
|
+
l.forEach(({ x: w, y: H }) => {
|
|
218
|
+
o = Math.min(o, w), a = Math.max(a, w), v = Math.min(v, H), f = Math.max(f, H);
|
|
218
219
|
});
|
|
219
|
-
const L = a -
|
|
220
|
-
l.forEach(({ x: w, y:
|
|
221
|
-
const pe = Math.floor((w -
|
|
220
|
+
const L = a - o, ee = f - v, P = L / i, $ = ee / i, B = Array(i).fill(0), X = Array(i).fill(0);
|
|
221
|
+
l.forEach(({ x: w, y: H }) => {
|
|
222
|
+
const pe = Math.floor((w - o) / P), fe = Math.floor((H - v) / $);
|
|
222
223
|
B[pe] || (B[pe] = 0), X[fe] || (X[fe] = 0), B[pe] += 1, X[fe] += 1;
|
|
223
224
|
});
|
|
224
|
-
const
|
|
225
|
-
for (let w = 0; w <
|
|
226
|
-
|
|
227
|
-
const
|
|
228
|
-
return { x: B, y: X, avgX:
|
|
225
|
+
const ie = [], m = [];
|
|
226
|
+
for (let w = 0; w < i; w += 1)
|
|
227
|
+
ie.push(o + (w + 0.5) * P), m.push(v + (w + 0.5) * $);
|
|
228
|
+
const q = Math.max(...B), he = Math.max(...X);
|
|
229
|
+
return { x: B, y: X, avgX: ie, avgY: m, maxX: q, maxY: he };
|
|
229
230
|
}
|
|
230
|
-
const V = b(() => e.value.style.layout.marginalBars.tranches), T = b(() => Xe(ye.value, V.value)),
|
|
231
|
-
const t = n.value.top - e.value.style.layout.marginalBars.offset,
|
|
231
|
+
const V = b(() => e.value.style.layout.marginalBars.tranches), T = b(() => Xe(ye.value, V.value)), ct = b(() => {
|
|
232
|
+
const t = n.value.top - e.value.style.layout.marginalBars.offset, i = n.value.right + e.value.style.layout.marginalBars.offset;
|
|
232
233
|
return ye.value.map((l) => {
|
|
233
|
-
const
|
|
234
|
+
const o = Xe(l, V.value);
|
|
234
235
|
return {
|
|
235
|
-
coords:
|
|
236
|
-
dX:
|
|
236
|
+
coords: o,
|
|
237
|
+
dX: St(o.avgX.map((a, v) => ({
|
|
237
238
|
x: a,
|
|
238
|
-
y: t -
|
|
239
|
+
y: t - o.x[v] / o.maxX * e.value.style.layout.marginalBars.size
|
|
239
240
|
}))),
|
|
240
|
-
dY:
|
|
241
|
+
dY: At(o.avgY.map((a, v) => ({
|
|
241
242
|
y: a,
|
|
242
|
-
x:
|
|
243
|
+
x: i + e.value.style.layout.marginalBars.size * o.y[v] / o.maxY
|
|
243
244
|
}))),
|
|
244
245
|
color: l.color,
|
|
245
246
|
id: l.id
|
|
246
247
|
};
|
|
247
248
|
});
|
|
248
249
|
}), N = h(void 0), y = h(null), ce = h(null);
|
|
249
|
-
function Ye(t,
|
|
250
|
+
function Ye(t, i) {
|
|
250
251
|
N.value = t.id, y.value = t;
|
|
251
252
|
let l = "";
|
|
252
253
|
ce.value = {
|
|
253
254
|
datapoint: t,
|
|
254
|
-
seriesIndex:
|
|
255
|
-
series:
|
|
255
|
+
seriesIndex: i,
|
|
256
|
+
series: z.value,
|
|
256
257
|
config: e.value
|
|
257
258
|
};
|
|
258
|
-
const
|
|
259
|
-
|
|
259
|
+
const o = e.value.style.tooltip.customFormat;
|
|
260
|
+
Ot(o) && Nt(() => o({
|
|
260
261
|
datapoint: t,
|
|
261
|
-
seriesIndex:
|
|
262
|
-
series:
|
|
262
|
+
seriesIndex: i,
|
|
263
|
+
series: z.value,
|
|
263
264
|
config: e.value
|
|
264
|
-
})) ? ne.value =
|
|
265
|
+
})) ? ne.value = o({
|
|
265
266
|
datapoint: t,
|
|
266
|
-
seriesIndex:
|
|
267
|
-
series:
|
|
267
|
+
seriesIndex: i,
|
|
268
|
+
series: z.value,
|
|
268
269
|
config: e.value
|
|
269
|
-
}) : (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) ? "-" :
|
|
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(
|
|
270
271
|
e.value.style.layout.plots.selectors.labels.x.formatter,
|
|
271
272
|
t.v.x,
|
|
272
273
|
F({
|
|
@@ -275,8 +276,8 @@ const Vt = ["id"], jt = ["xmlns", "viewBox"], Rt = ["width", "height"], Et = { k
|
|
|
275
276
|
s: e.value.style.tooltip.suffix,
|
|
276
277
|
r: e.value.style.tooltip.roundingValue
|
|
277
278
|
}),
|
|
278
|
-
{ datapoint: t, seriesIndex:
|
|
279
|
-
)}</b></div>`, l += `<div>${e.value.style.layout.dataLabels.yAxis.name}: <b>${isNaN(t.v.y) ? "-" :
|
|
279
|
+
{ datapoint: t, seriesIndex: i }
|
|
280
|
+
)}</b></div>`, l += `<div>${e.value.style.layout.dataLabels.yAxis.name}: <b>${isNaN(t.v.y) ? "-" : U(
|
|
280
281
|
e.value.style.layout.plots.selectors.labels.y.formatter,
|
|
281
282
|
t.v.y,
|
|
282
283
|
F({
|
|
@@ -285,29 +286,28 @@ const Vt = ["id"], jt = ["xmlns", "viewBox"], Rt = ["width", "height"], Et = { k
|
|
|
285
286
|
s: e.value.style.tooltip.suffix,
|
|
286
287
|
r: e.value.style.tooltip.roundingValue
|
|
287
288
|
}),
|
|
288
|
-
{ datapoint: t, seriesIndex:
|
|
289
|
+
{ datapoint: t, seriesIndex: i }
|
|
289
290
|
)}</b></div>`, l += `${e.value.style.layout.plots.deviation.translation}: <b>${F({
|
|
290
291
|
v: t.deviation,
|
|
291
292
|
r: e.value.style.layout.plots.deviation.roundingValue
|
|
292
|
-
})}</b>`, l += "</div>", ne.value = `<div>${l}</div>`),
|
|
293
|
+
})}</b>`, l += "</div>", ne.value = `<div>${l}</div>`), re.value = !0;
|
|
293
294
|
}
|
|
294
295
|
function De() {
|
|
295
|
-
|
|
296
|
+
re.value = !1, N.value = void 0, y.value = null;
|
|
296
297
|
}
|
|
297
|
-
|
|
298
|
-
|
|
299
|
-
x.value.includes(t) ? x.value = x.value.filter((r) => r !== t) : x.value.length < I.dataset.length - 1 && x.value.push(t);
|
|
298
|
+
function Re(t) {
|
|
299
|
+
x.value.includes(t) ? x.value = x.value.filter((i) => i !== t) : x.value.length < I.dataset.length - 1 && x.value.push(t);
|
|
300
300
|
}
|
|
301
|
-
function
|
|
302
|
-
|
|
303
|
-
const
|
|
301
|
+
function Ve(t = null) {
|
|
302
|
+
xt(() => {
|
|
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 = z.value.map((v) => [
|
|
304
304
|
v.name,
|
|
305
305
|
v.correlation.coefficient,
|
|
306
306
|
v.plots.length,
|
|
307
307
|
v.plots.map((f) => f.v.x).reduce((f, L) => f + L, 0) / v.plots.length,
|
|
308
308
|
v.plots.map((f) => f.v.y).reduce((f, L) => f + L, 0) / v.plots.length
|
|
309
|
-
]),
|
|
310
|
-
t ? t(a) :
|
|
309
|
+
]), o = [[e.value.style.title.text], [e.value.style.title.subtitle.text], [[""], [""], [""]]].concat([i]).concat(l), a = Lt(o);
|
|
310
|
+
t ? t(a) : Bt({ csvContent: a, title: e.value.style.title.text || "vue-ui-heatmap" });
|
|
311
311
|
});
|
|
312
312
|
}
|
|
313
313
|
const se = b(() => {
|
|
@@ -317,16 +317,16 @@ const Vt = ["id"], jt = ["xmlns", "viewBox"], Rt = ["width", "height"], Et = { k
|
|
|
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
|
-
],
|
|
320
|
+
], i = z.value.map((o) => [
|
|
321
321
|
{
|
|
322
|
-
shape:
|
|
323
|
-
content:
|
|
324
|
-
color:
|
|
322
|
+
shape: o.shape,
|
|
323
|
+
content: o.name,
|
|
324
|
+
color: o.color
|
|
325
325
|
},
|
|
326
|
-
Number((
|
|
327
|
-
|
|
328
|
-
Number((
|
|
329
|
-
Number((
|
|
326
|
+
Number((o.correlation.coefficient ?? 0).toFixed(e.value.table.td.roundingValue)).toLocaleString(),
|
|
327
|
+
o.plots.length.toLocaleString(),
|
|
328
|
+
Number((o.plots.map((a) => a.v.x ?? 0).reduce((a, v) => a + v, 0) / o.plots.length).toFixed(e.value.table.td.roundingAverage)).toLocaleString(),
|
|
329
|
+
Number((o.plots.map((a) => a.v.y ?? 0).reduce((a, v) => a + v, 0) / o.plots.length).toFixed(e.value.table.td.roundingAverage)).toLocaleString()
|
|
330
330
|
]), l = {
|
|
331
331
|
th: {
|
|
332
332
|
backgroundColor: e.value.table.th.backgroundColor,
|
|
@@ -340,39 +340,53 @@ const Vt = ["id"], jt = ["xmlns", "viewBox"], Rt = ["width", "height"], Et = { k
|
|
|
340
340
|
},
|
|
341
341
|
breakpoint: e.value.table.responsiveBreakpoint
|
|
342
342
|
};
|
|
343
|
-
return { head: t, body:
|
|
344
|
-
}),
|
|
345
|
-
function
|
|
346
|
-
|
|
343
|
+
return { head: t, body: i, config: l, colNames: t };
|
|
344
|
+
}), Q = h(!1);
|
|
345
|
+
function je(t) {
|
|
346
|
+
Q.value = t, be.value += 1;
|
|
347
347
|
}
|
|
348
|
-
function
|
|
348
|
+
function Ee() {
|
|
349
349
|
O.value.showTable = !O.value.showTable;
|
|
350
350
|
}
|
|
351
|
-
function
|
|
351
|
+
function Ue() {
|
|
352
352
|
O.value.showTooltip = !O.value.showTooltip;
|
|
353
353
|
}
|
|
354
354
|
const ue = h(!1);
|
|
355
355
|
function de() {
|
|
356
356
|
ue.value = !ue.value;
|
|
357
357
|
}
|
|
358
|
-
|
|
359
|
-
|
|
358
|
+
async function dt({ scale: t = 2 } = {}) {
|
|
359
|
+
if (!D.value) return;
|
|
360
|
+
const { width: i, height: l } = D.value.getBoundingClientRect(), o = i / l, { imageUri: a, base64: v } = await Rt({ domElement: D.value, base64: !0, img: !0, scale: t });
|
|
361
|
+
return {
|
|
362
|
+
imageUri: a,
|
|
363
|
+
base64: v,
|
|
364
|
+
title: e.value.style.title.text,
|
|
365
|
+
width: i,
|
|
366
|
+
height: l,
|
|
367
|
+
aspectRatio: o
|
|
368
|
+
};
|
|
369
|
+
}
|
|
370
|
+
return Qe({
|
|
371
|
+
getData: yt,
|
|
372
|
+
getImage: dt,
|
|
360
373
|
generatePdf: Pe,
|
|
361
|
-
generateCsv:
|
|
374
|
+
generateCsv: Ve,
|
|
362
375
|
generateImage: We,
|
|
363
|
-
toggleTable:
|
|
364
|
-
toggleTooltip:
|
|
365
|
-
toggleAnnotator: de
|
|
366
|
-
|
|
367
|
-
|
|
376
|
+
toggleTable: Ee,
|
|
377
|
+
toggleTooltip: Ue,
|
|
378
|
+
toggleAnnotator: de,
|
|
379
|
+
toggleFullscreen: je
|
|
380
|
+
}), (t, i) => (s(), r("div", {
|
|
381
|
+
class: qe(`vue-ui-scatter ${Q.value ? "vue-data-ui-wrapper-fullscreen" : ""} ${e.value.useCssAnimation ? "" : "vue-ui-dna"}`),
|
|
368
382
|
ref_key: "scatterChart",
|
|
369
|
-
ref:
|
|
370
|
-
id: `vue-ui-scatter_${
|
|
383
|
+
ref: D,
|
|
384
|
+
id: `vue-ui-scatter_${S.value}`,
|
|
371
385
|
style: j(`font-family:${e.value.style.fontFamily};width:100%; text-align:center;background:${e.value.style.backgroundColor};${e.value.responsive ? "height: 100%" : ""}`),
|
|
372
|
-
onMouseenter:
|
|
373
|
-
onMouseleave:
|
|
386
|
+
onMouseenter: i[2] || (i[2] = () => u(Se)(!0)),
|
|
387
|
+
onMouseleave: i[3] || (i[3] = () => u(Se)(!1))
|
|
374
388
|
}, [
|
|
375
|
-
e.value.userOptions.buttons.annotator ? (
|
|
389
|
+
e.value.userOptions.buttons.annotator ? (s(), E(u(at), {
|
|
376
390
|
key: 0,
|
|
377
391
|
svgRef: u(Te),
|
|
378
392
|
backgroundColor: e.value.style.backgroundColor,
|
|
@@ -380,20 +394,20 @@ const Vt = ["id"], jt = ["xmlns", "viewBox"], Rt = ["width", "height"], Et = { k
|
|
|
380
394
|
active: ue.value,
|
|
381
395
|
onClose: de
|
|
382
396
|
}, null, 8, ["svgRef", "backgroundColor", "color", "active"])) : c("", !0),
|
|
383
|
-
|
|
397
|
+
nt.value ? (s(), r("div", {
|
|
384
398
|
key: 1,
|
|
385
399
|
ref_key: "noTitle",
|
|
386
400
|
ref: Me,
|
|
387
401
|
class: "vue-data-ui-no-title-space",
|
|
388
402
|
style: "height:36px; width: 100%;background:transparent"
|
|
389
403
|
}, null, 512)) : c("", !0),
|
|
390
|
-
e.value.style.title.text ? (
|
|
404
|
+
e.value.style.title.text ? (s(), r("div", {
|
|
391
405
|
key: 2,
|
|
392
406
|
ref_key: "chartTitle",
|
|
393
407
|
ref: ke,
|
|
394
408
|
style: "width:100%;background:transparent"
|
|
395
409
|
}, [
|
|
396
|
-
(
|
|
410
|
+
(s(), E(Dt, {
|
|
397
411
|
key: `title_${$e.value}`,
|
|
398
412
|
config: {
|
|
399
413
|
title: {
|
|
@@ -407,7 +421,7 @@ const Vt = ["id"], jt = ["xmlns", "viewBox"], Rt = ["width", "height"], Et = { k
|
|
|
407
421
|
}
|
|
408
422
|
}, null, 8, ["config"]))
|
|
409
423
|
], 512)) : c("", !0),
|
|
410
|
-
e.value.userOptions.show && ae.value && (u(
|
|
424
|
+
e.value.userOptions.show && ae.value && (u(ze) || u(ve)) ? (s(), E(u(ut), {
|
|
411
425
|
ref_key: "details",
|
|
412
426
|
ref: rt,
|
|
413
427
|
key: `user_options_${be.value}`,
|
|
@@ -415,7 +429,7 @@ const Vt = ["id"], jt = ["xmlns", "viewBox"], Rt = ["width", "height"], Et = { k
|
|
|
415
429
|
color: e.value.style.color,
|
|
416
430
|
isImaging: u(Ne),
|
|
417
431
|
isPrinting: u(Oe),
|
|
418
|
-
uid:
|
|
432
|
+
uid: S.value,
|
|
419
433
|
hasTooltip: e.value.userOptions.buttons.tooltip && e.value.style.tooltip.show,
|
|
420
434
|
hasPdf: e.value.userOptions.buttons.pdf,
|
|
421
435
|
hasImg: e.value.userOptions.buttons.img,
|
|
@@ -423,28 +437,29 @@ const Vt = ["id"], jt = ["xmlns", "viewBox"], Rt = ["width", "height"], Et = { k
|
|
|
423
437
|
hasTable: e.value.userOptions.buttons.table,
|
|
424
438
|
hasFullscreen: e.value.userOptions.buttons.fullscreen,
|
|
425
439
|
isTooltip: O.value.showTooltip,
|
|
426
|
-
isFullscreen:
|
|
440
|
+
isFullscreen: Q.value,
|
|
427
441
|
titles: { ...e.value.userOptions.buttonTitles },
|
|
428
|
-
chartElement:
|
|
442
|
+
chartElement: D.value,
|
|
429
443
|
position: e.value.userOptions.position,
|
|
430
444
|
hasAnnotator: e.value.userOptions.buttons.annotator,
|
|
431
445
|
isAnnotation: ue.value,
|
|
432
446
|
callbacks: e.value.userOptions.callbacks,
|
|
433
|
-
|
|
447
|
+
printScale: e.value.userOptions.print.scale,
|
|
448
|
+
onToggleFullscreen: je,
|
|
434
449
|
onGeneratePdf: u(Pe),
|
|
435
|
-
onGenerateCsv:
|
|
450
|
+
onGenerateCsv: Ve,
|
|
436
451
|
onGenerateImage: u(We),
|
|
437
|
-
onToggleTable:
|
|
438
|
-
onToggleTooltip:
|
|
452
|
+
onToggleTable: Ee,
|
|
453
|
+
onToggleTooltip: Ue,
|
|
439
454
|
onToggleAnnotator: de,
|
|
440
455
|
style: j({
|
|
441
|
-
visibility: u(
|
|
456
|
+
visibility: u(ze) ? u(ve) ? "visible" : "hidden" : "visible"
|
|
442
457
|
})
|
|
443
|
-
},
|
|
458
|
+
}, gt({ _: 2 }, [
|
|
444
459
|
t.$slots.menuIcon ? {
|
|
445
460
|
name: "menuIcon",
|
|
446
|
-
fn: _(({ isOpen: l, color:
|
|
447
|
-
M(t.$slots, "menuIcon",
|
|
461
|
+
fn: _(({ isOpen: l, color: o }) => [
|
|
462
|
+
M(t.$slots, "menuIcon", te(le({ isOpen: l, color: o })), void 0, !0)
|
|
448
463
|
]),
|
|
449
464
|
key: "0"
|
|
450
465
|
} : void 0,
|
|
@@ -485,30 +500,30 @@ const Vt = ["id"], jt = ["xmlns", "viewBox"], Rt = ["width", "height"], Et = { k
|
|
|
485
500
|
} : void 0,
|
|
486
501
|
t.$slots.optionFullscreen ? {
|
|
487
502
|
name: "optionFullscreen",
|
|
488
|
-
fn: _(({ toggleFullscreen: l, isFullscreen:
|
|
489
|
-
M(t.$slots, "optionFullscreen",
|
|
503
|
+
fn: _(({ toggleFullscreen: l, isFullscreen: o }) => [
|
|
504
|
+
M(t.$slots, "optionFullscreen", te(le({ toggleFullscreen: l, isFullscreen: o })), void 0, !0)
|
|
490
505
|
]),
|
|
491
506
|
key: "6"
|
|
492
507
|
} : void 0,
|
|
493
508
|
t.$slots.optionAnnotator ? {
|
|
494
509
|
name: "optionAnnotator",
|
|
495
|
-
fn: _(({ toggleAnnotator: l, isAnnotator:
|
|
496
|
-
M(t.$slots, "optionAnnotator",
|
|
510
|
+
fn: _(({ toggleAnnotator: l, isAnnotator: o }) => [
|
|
511
|
+
M(t.$slots, "optionAnnotator", te(le({ toggleAnnotator: l, isAnnotator: o })), void 0, !0)
|
|
497
512
|
]),
|
|
498
513
|
key: "7"
|
|
499
514
|
} : void 0
|
|
500
|
-
]), 1032, ["backgroundColor", "color", "isImaging", "isPrinting", "uid", "hasTooltip", "hasPdf", "hasImg", "hasXls", "hasTable", "hasFullscreen", "isTooltip", "isFullscreen", "titles", "chartElement", "position", "hasAnnotator", "isAnnotation", "callbacks", "onGeneratePdf", "onGenerateImage", "style"])) : c("", !0),
|
|
501
|
-
ae.value ? (
|
|
515
|
+
]), 1032, ["backgroundColor", "color", "isImaging", "isPrinting", "uid", "hasTooltip", "hasPdf", "hasImg", "hasXls", "hasTable", "hasFullscreen", "isTooltip", "isFullscreen", "titles", "chartElement", "position", "hasAnnotator", "isAnnotation", "callbacks", "printScale", "onGeneratePdf", "onGenerateImage", "style"])) : c("", !0),
|
|
516
|
+
ae.value ? (s(), r("svg", {
|
|
502
517
|
key: 4,
|
|
503
518
|
ref_key: "svgRef",
|
|
504
519
|
ref: Te,
|
|
505
520
|
xmlns: u(zt),
|
|
506
|
-
class:
|
|
521
|
+
class: qe({ "vue-data-ui-fullscreen--on": Q.value, "vue-data-ui-fulscreen--off": !Q.value }),
|
|
507
522
|
viewBox: `0 0 ${k.value.width <= 0 ? 10 : k.value.width} ${k.value.height <= 0 ? 10 : k.value.height}`,
|
|
508
523
|
style: j(`max-width:100%;overflow:visible;background:transparent;color:${e.value.style.color}`)
|
|
509
524
|
}, [
|
|
510
|
-
ge(u(
|
|
511
|
-
t.$slots["chart-background"] ? (
|
|
525
|
+
ge(u(lt)),
|
|
526
|
+
t.$slots["chart-background"] ? (s(), r("foreignObject", {
|
|
512
527
|
key: 0,
|
|
513
528
|
x: 0,
|
|
514
529
|
y: 0,
|
|
@@ -519,8 +534,8 @@ const Vt = ["id"], jt = ["xmlns", "viewBox"], Rt = ["width", "height"], Et = { k
|
|
|
519
534
|
}
|
|
520
535
|
}, [
|
|
521
536
|
M(t.$slots, "chart-background", {}, void 0, !0)
|
|
522
|
-
], 8,
|
|
523
|
-
e.value.style.layout.axis.show ? (
|
|
537
|
+
], 8, Ut)) : c("", !0),
|
|
538
|
+
e.value.style.layout.axis.show ? (s(), r("g", Gt, [
|
|
524
539
|
d("line", {
|
|
525
540
|
x1: g.value.x,
|
|
526
541
|
x2: g.value.x,
|
|
@@ -529,7 +544,7 @@ const Vt = ["id"], jt = ["xmlns", "viewBox"], Rt = ["width", "height"], Et = { k
|
|
|
529
544
|
stroke: e.value.style.layout.axis.stroke,
|
|
530
545
|
"stroke-width": e.value.style.layout.axis.strokeWidth,
|
|
531
546
|
"stroke-linecap": "round"
|
|
532
|
-
}, null, 8,
|
|
547
|
+
}, null, 8, qt),
|
|
533
548
|
d("line", {
|
|
534
549
|
x1: n.value.left,
|
|
535
550
|
x2: n.value.right,
|
|
@@ -538,53 +553,53 @@ const Vt = ["id"], jt = ["xmlns", "viewBox"], Rt = ["width", "height"], Et = { k
|
|
|
538
553
|
stroke: e.value.style.layout.axis.stroke,
|
|
539
554
|
"stroke-width": e.value.style.layout.axis.strokeWidth,
|
|
540
555
|
"stroke-linecap": "round"
|
|
541
|
-
}, null, 8,
|
|
556
|
+
}, null, 8, Ht)
|
|
542
557
|
])) : c("", !0),
|
|
543
|
-
e.value.style.layout.plots.giftWrap.show ? (
|
|
544
|
-
(
|
|
545
|
-
l.plots.length > 2 ? (
|
|
558
|
+
e.value.style.layout.plots.giftWrap.show ? (s(), r("g", Zt, [
|
|
559
|
+
(s(!0), r(W, null, Y(z.value, (l, o) => (s(), r("g", null, [
|
|
560
|
+
l.plots.length > 2 ? (s(), r("polygon", {
|
|
546
561
|
key: 0,
|
|
547
|
-
points: u(
|
|
562
|
+
points: u(Tt)({ series: l.plots }),
|
|
548
563
|
fill: u(xe)(l.color, e.value.style.layout.plots.giftWrap.fillOpacity * 100),
|
|
549
564
|
"stroke-width": e.value.style.layout.plots.giftWrap.strokeWidth,
|
|
550
565
|
"stroke-dasharray": e.value.style.layout.plots.giftWrap.strokeDasharray,
|
|
551
566
|
stroke: l.color,
|
|
552
567
|
"stroke-linejoin": "round",
|
|
553
568
|
"stroke-linecap": "round"
|
|
554
|
-
}, null, 8,
|
|
569
|
+
}, null, 8, Jt)) : c("", !0)
|
|
555
570
|
]))), 256))
|
|
556
571
|
])) : c("", !0),
|
|
557
|
-
(
|
|
558
|
-
!l.shape || l.shape === "circle" ? (
|
|
559
|
-
(
|
|
572
|
+
(s(!0), r(W, null, Y(z.value, (l, o) => (s(), r("g", null, [
|
|
573
|
+
!l.shape || l.shape === "circle" ? (s(), r("g", Kt, [
|
|
574
|
+
(s(!0), r(W, null, Y(l.plots, (a, v) => (s(), r("circle", {
|
|
560
575
|
cx: a.x,
|
|
561
576
|
cy: a.y,
|
|
562
577
|
r: N.value && N.value === a.id ? a.weight * 2 : a.weight,
|
|
563
578
|
fill: u(xe)(l.color, e.value.style.layout.plots.opacity * 100),
|
|
564
579
|
stroke: e.value.style.layout.plots.stroke,
|
|
565
580
|
"stroke-width": e.value.style.layout.plots.strokeWidth,
|
|
566
|
-
onMouseover: (f) => Ye(a,
|
|
581
|
+
onMouseover: (f) => Ye(a, o),
|
|
567
582
|
onMouseleave: De,
|
|
568
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}`)
|
|
569
|
-
}, null, 44,
|
|
570
|
-
])) : (
|
|
571
|
-
(
|
|
584
|
+
}, null, 44, Qt))), 256))
|
|
585
|
+
])) : (s(), r("g", el, [
|
|
586
|
+
(s(!0), r(W, null, Y(l.plots, (a, v) => (s(), E(Je, {
|
|
572
587
|
plot: { x: a.x, y: a.y },
|
|
573
588
|
radius: N.value && N.value === a.id ? a.weight * 2 : a.weight,
|
|
574
589
|
shape: l.shape,
|
|
575
590
|
color: u(xe)(l.color, e.value.style.layout.plots.opacity * 100),
|
|
576
591
|
stroke: e.value.style.layout.plots.stroke,
|
|
577
592
|
strokeWidth: e.value.style.layout.plots.strokeWidth,
|
|
578
|
-
onMouseover: (f) => Ye(a,
|
|
593
|
+
onMouseover: (f) => Ye(a, o),
|
|
579
594
|
onMouseleave: De,
|
|
580
595
|
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}`)
|
|
581
596
|
}, null, 8, ["plot", "radius", "shape", "color", "stroke", "strokeWidth", "onMouseover", "style"]))), 256))
|
|
582
597
|
]))
|
|
583
598
|
]))), 256)),
|
|
584
|
-
e.value.style.layout.marginalBars.show ? (
|
|
599
|
+
e.value.style.layout.marginalBars.show ? (s(), r("g", tl, [
|
|
585
600
|
d("defs", null, [
|
|
586
601
|
d("linearGradient", {
|
|
587
|
-
id: `marginal_x_${
|
|
602
|
+
id: `marginal_x_${S.value}`,
|
|
588
603
|
x1: "0%",
|
|
589
604
|
y1: "0%",
|
|
590
605
|
x2: "0%",
|
|
@@ -593,14 +608,14 @@ const Vt = ["id"], jt = ["xmlns", "viewBox"], Rt = ["width", "height"], Et = { k
|
|
|
593
608
|
d("stop", {
|
|
594
609
|
offset: "0%",
|
|
595
610
|
"stop-color": e.value.style.layout.marginalBars.fill
|
|
596
|
-
}, null, 8,
|
|
611
|
+
}, null, 8, al),
|
|
597
612
|
d("stop", {
|
|
598
613
|
offset: "100%",
|
|
599
614
|
"stop-color": e.value.style.backgroundColor
|
|
600
|
-
}, null, 8,
|
|
601
|
-
], 8,
|
|
615
|
+
}, null, 8, ol)
|
|
616
|
+
], 8, ll),
|
|
602
617
|
d("linearGradient", {
|
|
603
|
-
id: `marginal_y_${
|
|
618
|
+
id: `marginal_y_${S.value}`,
|
|
604
619
|
x1: "0%",
|
|
605
620
|
x2: "100%",
|
|
606
621
|
y1: "0%",
|
|
@@ -609,44 +624,44 @@ const Vt = ["id"], jt = ["xmlns", "viewBox"], Rt = ["width", "height"], Et = { k
|
|
|
609
624
|
d("stop", {
|
|
610
625
|
offset: "0%",
|
|
611
626
|
"stop-color": e.value.style.backgroundColor
|
|
612
|
-
}, null, 8,
|
|
627
|
+
}, null, 8, ul),
|
|
613
628
|
d("stop", {
|
|
614
629
|
offset: "100%",
|
|
615
630
|
"stop-color": e.value.style.layout.marginalBars.fill
|
|
616
|
-
}, null, 8,
|
|
617
|
-
], 8,
|
|
631
|
+
}, null, 8, il)
|
|
632
|
+
], 8, sl)
|
|
618
633
|
]),
|
|
619
|
-
(
|
|
620
|
-
l && T.value.avgX[
|
|
634
|
+
(s(!0), r(W, null, Y(T.value.x, (l, o) => (s(), r("g", null, [
|
|
635
|
+
l && T.value.avgX[o] ? (s(), r("rect", {
|
|
621
636
|
key: 0,
|
|
622
|
-
x: T.value.avgX[
|
|
637
|
+
x: T.value.avgX[o] - n.value.width / V.value / 2,
|
|
623
638
|
y: n.value.top - e.value.style.layout.marginalBars.offset - l / T.value.maxX * e.value.style.layout.marginalBars.size,
|
|
624
639
|
width: n.value.width / V.value <= 0 ? 1e-4 : n.value.width / V.value,
|
|
625
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,
|
|
626
|
-
fill: e.value.style.layout.marginalBars.useGradient ? `url(#marginal_x_${
|
|
641
|
+
fill: e.value.style.layout.marginalBars.useGradient ? `url(#marginal_x_${S.value})` : e.value.style.layout.marginalBars.fill,
|
|
627
642
|
style: j(`opacity:${e.value.style.layout.marginalBars.opacity}`),
|
|
628
643
|
stroke: e.value.style.backgroundColor,
|
|
629
644
|
"stroke-width": e.value.style.layout.marginalBars.strokeWidth,
|
|
630
645
|
rx: e.value.style.layout.marginalBars.borderRadius
|
|
631
|
-
}, null, 12,
|
|
646
|
+
}, null, 12, rl)) : c("", !0)
|
|
632
647
|
]))), 256)),
|
|
633
|
-
(
|
|
634
|
-
l && T.value.avgY[
|
|
648
|
+
(s(!0), r(W, null, Y(T.value.y, (l, o) => (s(), r("g", null, [
|
|
649
|
+
l && T.value.avgY[o] ? (s(), r("rect", {
|
|
635
650
|
key: 0,
|
|
636
651
|
x: n.value.right + e.value.style.layout.marginalBars.offset,
|
|
637
|
-
y: T.value.avgY[
|
|
652
|
+
y: T.value.avgY[o] - n.value.height / V.value / 2,
|
|
638
653
|
height: n.value.height / V.value <= 0 ? 1e-4 : n.value.height / V.value,
|
|
639
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,
|
|
640
|
-
fill: e.value.style.layout.marginalBars.useGradient ? `url(#marginal_y_${
|
|
655
|
+
fill: e.value.style.layout.marginalBars.useGradient ? `url(#marginal_y_${S.value})` : e.value.style.layout.marginalBars.fill,
|
|
641
656
|
style: j(`opacity:${e.value.style.layout.marginalBars.opacity}`),
|
|
642
657
|
stroke: e.value.style.backgroundColor,
|
|
643
658
|
"stroke-width": e.value.style.layout.marginalBars.strokeWidth,
|
|
644
659
|
rx: e.value.style.layout.marginalBars.borderRadius
|
|
645
|
-
}, null, 12,
|
|
660
|
+
}, null, 12, nl)) : c("", !0)
|
|
646
661
|
]))), 256)),
|
|
647
|
-
e.value.style.layout.marginalBars.showLines ? (
|
|
648
|
-
(
|
|
649
|
-
x.value.includes(l.id) ? c("", !0) : (
|
|
662
|
+
e.value.style.layout.marginalBars.showLines ? (s(), r("g", vl, [
|
|
663
|
+
(s(!0), r(W, null, Y(ct.value, (l) => (s(), r(W, null, [
|
|
664
|
+
x.value.includes(l.id) ? c("", !0) : (s(), r("path", {
|
|
650
665
|
key: 0,
|
|
651
666
|
d: `M ${l.dX}`,
|
|
652
667
|
stroke: e.value.style.backgroundColor,
|
|
@@ -654,8 +669,8 @@ const Vt = ["id"], jt = ["xmlns", "viewBox"], Rt = ["width", "height"], Et = { k
|
|
|
654
669
|
"stroke-linecap": "round",
|
|
655
670
|
"stroke-linejoin": "round",
|
|
656
671
|
fill: "none"
|
|
657
|
-
}, null, 8,
|
|
658
|
-
x.value.includes(l.id) ? c("", !0) : (
|
|
672
|
+
}, null, 8, yl)),
|
|
673
|
+
x.value.includes(l.id) ? c("", !0) : (s(), r("path", {
|
|
659
674
|
key: 1,
|
|
660
675
|
d: `M ${l.dX}`,
|
|
661
676
|
stroke: l.color,
|
|
@@ -663,8 +678,8 @@ const Vt = ["id"], jt = ["xmlns", "viewBox"], Rt = ["width", "height"], Et = { k
|
|
|
663
678
|
"stroke-linecap": "round",
|
|
664
679
|
"stroke-linejoin": "round",
|
|
665
680
|
fill: "none"
|
|
666
|
-
}, null, 8,
|
|
667
|
-
x.value.includes(l.id) ? c("", !0) : (
|
|
681
|
+
}, null, 8, cl)),
|
|
682
|
+
x.value.includes(l.id) ? c("", !0) : (s(), r("path", {
|
|
668
683
|
key: 2,
|
|
669
684
|
d: `M ${l.dY}`,
|
|
670
685
|
stroke: e.value.style.backgroundColor,
|
|
@@ -672,8 +687,8 @@ const Vt = ["id"], jt = ["xmlns", "viewBox"], Rt = ["width", "height"], Et = { k
|
|
|
672
687
|
"stroke-linecap": "round",
|
|
673
688
|
"stroke-linejoin": "round",
|
|
674
689
|
fill: "none"
|
|
675
|
-
}, null, 8,
|
|
676
|
-
x.value.includes(l.id) ? c("", !0) : (
|
|
690
|
+
}, null, 8, dl)),
|
|
691
|
+
x.value.includes(l.id) ? c("", !0) : (s(), r("path", {
|
|
677
692
|
key: 3,
|
|
678
693
|
d: `M ${l.dY}`,
|
|
679
694
|
stroke: l.color,
|
|
@@ -681,11 +696,11 @@ const Vt = ["id"], jt = ["xmlns", "viewBox"], Rt = ["width", "height"], Et = { k
|
|
|
681
696
|
"stroke-linecap": "round",
|
|
682
697
|
"stroke-linejoin": "round",
|
|
683
698
|
fill: "none"
|
|
684
|
-
}, null, 8,
|
|
699
|
+
}, null, 8, hl))
|
|
685
700
|
], 64))), 256))
|
|
686
701
|
])) : c("", !0)
|
|
687
702
|
])) : c("", !0),
|
|
688
|
-
y.value && e.value.style.layout.plots.selectors.show ? (
|
|
703
|
+
y.value && e.value.style.layout.plots.selectors.show ? (s(), r("g", pl, [
|
|
689
704
|
d("line", {
|
|
690
705
|
x1: g.value.x,
|
|
691
706
|
x2: y.value.x,
|
|
@@ -696,7 +711,7 @@ const Vt = ["id"], jt = ["xmlns", "viewBox"], Rt = ["width", "height"], Et = { k
|
|
|
696
711
|
"stroke-dasharray": e.value.style.layout.plots.selectors.strokeDasharray,
|
|
697
712
|
"stroke-linecap": "round",
|
|
698
713
|
class: "line-pointer"
|
|
699
|
-
}, null, 8,
|
|
714
|
+
}, null, 8, fl),
|
|
700
715
|
d("line", {
|
|
701
716
|
x1: y.value.x,
|
|
702
717
|
x2: y.value.x,
|
|
@@ -707,7 +722,7 @@ const Vt = ["id"], jt = ["xmlns", "viewBox"], Rt = ["width", "height"], Et = { k
|
|
|
707
722
|
"stroke-dasharray": e.value.style.layout.plots.selectors.strokeDasharray,
|
|
708
723
|
"stroke-linecap": "round",
|
|
709
724
|
class: "line-pointer"
|
|
710
|
-
}, null, 8,
|
|
725
|
+
}, null, 8, gl),
|
|
711
726
|
d("text", {
|
|
712
727
|
x: g.value.x + (y.value.x > g.value.x ? -6 : 6),
|
|
713
728
|
y: y.value.y + e.value.style.layout.plots.selectors.labels.fontSize / 3,
|
|
@@ -715,7 +730,7 @@ const Vt = ["id"], jt = ["xmlns", "viewBox"], Rt = ["width", "height"], Et = { k
|
|
|
715
730
|
fill: e.value.style.layout.plots.selectors.labels.color,
|
|
716
731
|
"font-weight": e.value.style.layout.plots.selectors.labels.bold ? "bold" : "normal",
|
|
717
732
|
"text-anchor": y.value.x > g.value.x ? "end" : "start"
|
|
718
|
-
}, C(u(
|
|
733
|
+
}, C(u(U)(
|
|
719
734
|
e.value.style.layout.plots.selectors.labels.y.formatter,
|
|
720
735
|
u(A)(y.value.v.y),
|
|
721
736
|
u(F)({
|
|
@@ -725,7 +740,7 @@ const Vt = ["id"], jt = ["xmlns", "viewBox"], Rt = ["width", "height"], Et = { k
|
|
|
725
740
|
r: e.value.style.layout.plots.selectors.labels.rounding
|
|
726
741
|
}),
|
|
727
742
|
{ datapoint: y.value }
|
|
728
|
-
)), 9,
|
|
743
|
+
)), 9, ml),
|
|
729
744
|
d("text", {
|
|
730
745
|
x: y.value.x,
|
|
731
746
|
y: g.value.y + (y.value.y > g.value.y ? -6 : e.value.style.layout.plots.selectors.labels.fontSize + 6),
|
|
@@ -733,7 +748,7 @@ const Vt = ["id"], jt = ["xmlns", "viewBox"], Rt = ["width", "height"], Et = { k
|
|
|
733
748
|
fill: e.value.style.layout.plots.selectors.labels.color,
|
|
734
749
|
"font-weight": e.value.style.layout.plots.selectors.labels.bold ? "bold" : "normal",
|
|
735
750
|
"text-anchor": "middle"
|
|
736
|
-
}, C(u(
|
|
751
|
+
}, C(u(U)(
|
|
737
752
|
e.value.style.layout.plots.selectors.labels.y.formatter,
|
|
738
753
|
u(A)(y.value.v.x),
|
|
739
754
|
u(F)({
|
|
@@ -743,7 +758,7 @@ const Vt = ["id"], jt = ["xmlns", "viewBox"], Rt = ["width", "height"], Et = { k
|
|
|
743
758
|
r: e.value.style.layout.plots.selectors.labels.rounding
|
|
744
759
|
}),
|
|
745
760
|
{ datapoint: y.value }
|
|
746
|
-
)), 9,
|
|
761
|
+
)), 9, xl),
|
|
747
762
|
d("circle", {
|
|
748
763
|
cx: g.value.x,
|
|
749
764
|
cy: y.value.y,
|
|
@@ -752,7 +767,7 @@ const Vt = ["id"], jt = ["xmlns", "viewBox"], Rt = ["width", "height"], Et = { k
|
|
|
752
767
|
stroke: e.value.style.layout.plots.selectors.markers.stroke,
|
|
753
768
|
"stroke-width": e.value.style.layout.plots.selectors.markers.strokeWidth,
|
|
754
769
|
class: "line-pointer"
|
|
755
|
-
}, null, 8,
|
|
770
|
+
}, null, 8, bl),
|
|
756
771
|
d("circle", {
|
|
757
772
|
cx: y.value.x,
|
|
758
773
|
cy: g.value.y,
|
|
@@ -761,8 +776,8 @@ const Vt = ["id"], jt = ["xmlns", "viewBox"], Rt = ["width", "height"], Et = { k
|
|
|
761
776
|
stroke: e.value.style.layout.plots.selectors.markers.stroke,
|
|
762
777
|
"stroke-width": e.value.style.layout.plots.selectors.markers.strokeWidth,
|
|
763
778
|
class: "line-pointer"
|
|
764
|
-
}, null, 8,
|
|
765
|
-
e.value.style.layout.plots.selectors.labels.showName ? (
|
|
779
|
+
}, null, 8, kl),
|
|
780
|
+
e.value.style.layout.plots.selectors.labels.showName ? (s(), r("text", {
|
|
766
781
|
key: 0,
|
|
767
782
|
x: y.value.x,
|
|
768
783
|
y: y.value.y + (y.value.y < g.value.y ? -e.value.style.layout.plots.selectors.labels.fontSize / 2 : e.value.style.layout.plots.selectors.labels.fontSize),
|
|
@@ -770,16 +785,16 @@ const Vt = ["id"], jt = ["xmlns", "viewBox"], Rt = ["width", "height"], Et = { k
|
|
|
770
785
|
fill: e.value.style.layout.plots.selectors.labels.color,
|
|
771
786
|
"font-weight": e.value.style.layout.plots.selectors.labels.bold ? "bold" : "normal",
|
|
772
787
|
"text-anchor": y.value.x < n.value.left + 100 ? "start" : y.value.x > n.value.right - 100 ? "end" : y.value.x > g.value.x ? "start" : "end"
|
|
773
|
-
}, C(y.value.v.name), 9,
|
|
788
|
+
}, C(y.value.v.name), 9, wl)) : c("", !0)
|
|
774
789
|
])) : c("", !0),
|
|
775
|
-
e.value.style.layout.dataLabels.xAxis.show ? (
|
|
790
|
+
e.value.style.layout.dataLabels.xAxis.show ? (s(), r("g", _l, [
|
|
776
791
|
d("text", {
|
|
777
792
|
x: n.value.left - 5,
|
|
778
793
|
y: g.value.y + e.value.style.layout.dataLabels.xAxis.fontSize / 3,
|
|
779
794
|
"text-anchor": "end",
|
|
780
795
|
"font-size": e.value.style.layout.dataLabels.xAxis.fontSize,
|
|
781
796
|
fill: e.value.style.layout.dataLabels.xAxis.color
|
|
782
|
-
}, C(u(
|
|
797
|
+
}, C(u(U)(
|
|
783
798
|
e.value.style.layout.plots.selectors.labels.x.formatter,
|
|
784
799
|
u(A)(p.value.xMin),
|
|
785
800
|
u(F)({
|
|
@@ -788,14 +803,14 @@ const Vt = ["id"], jt = ["xmlns", "viewBox"], Rt = ["width", "height"], Et = { k
|
|
|
788
803
|
s: e.value.style.layout.plots.selectors.labels.suffix,
|
|
789
804
|
r: e.value.style.layout.dataLabels.xAxis.rounding
|
|
790
805
|
})
|
|
791
|
-
)), 9,
|
|
806
|
+
)), 9, Ml),
|
|
792
807
|
d("text", {
|
|
793
808
|
x: n.value.right + 3,
|
|
794
809
|
y: g.value.y + e.value.style.layout.dataLabels.xAxis.fontSize / 3,
|
|
795
810
|
"text-anchor": "start",
|
|
796
811
|
"font-size": e.value.style.layout.dataLabels.xAxis.fontSize,
|
|
797
812
|
fill: e.value.style.layout.dataLabels.xAxis.color
|
|
798
|
-
}, C(u(
|
|
813
|
+
}, C(u(U)(
|
|
799
814
|
e.value.style.layout.plots.selectors.labels.x.formatter,
|
|
800
815
|
u(A)(p.value.xMax),
|
|
801
816
|
u(F)({
|
|
@@ -804,24 +819,24 @@ const Vt = ["id"], jt = ["xmlns", "viewBox"], Rt = ["width", "height"], Et = { k
|
|
|
804
819
|
s: e.value.style.layout.plots.selectors.labels.suffix,
|
|
805
820
|
r: e.value.style.layout.dataLabels.xAxis.rounding
|
|
806
821
|
})
|
|
807
|
-
)), 9,
|
|
822
|
+
)), 9, $l),
|
|
808
823
|
d("text", {
|
|
809
|
-
id: `vue-ui-scatter-xAxis-label-${
|
|
824
|
+
id: `vue-ui-scatter-xAxis-label-${S.value}`,
|
|
810
825
|
transform: `translate(${e.value.style.layout.dataLabels.xAxis.fontSize * 2}, ${n.value.top + n.value.height / 2}), rotate(-90)`,
|
|
811
826
|
"text-anchor": "middle",
|
|
812
827
|
"font-size": e.value.style.layout.dataLabels.xAxis.fontSize,
|
|
813
828
|
"font-weight": e.value.style.layout.dataLabels.xAxis.bold ? "bold" : "normal",
|
|
814
829
|
fill: e.value.style.layout.dataLabels.xAxis.color
|
|
815
|
-
}, C(e.value.style.layout.dataLabels.xAxis.name), 9,
|
|
830
|
+
}, C(e.value.style.layout.dataLabels.xAxis.name), 9, Cl)
|
|
816
831
|
])) : c("", !0),
|
|
817
|
-
e.value.style.layout.dataLabels.yAxis.show ? (
|
|
832
|
+
e.value.style.layout.dataLabels.yAxis.show ? (s(), r("g", Al, [
|
|
818
833
|
d("text", {
|
|
819
834
|
x: g.value.x,
|
|
820
835
|
y: n.value.bottom + e.value.style.layout.dataLabels.yAxis.fontSize + 3,
|
|
821
836
|
"text-anchor": "middle",
|
|
822
837
|
"font-size": e.value.style.layout.dataLabels.yAxis.fontSize,
|
|
823
838
|
fill: e.value.style.layout.dataLabels.yAxis.color
|
|
824
|
-
}, C(u(
|
|
839
|
+
}, C(u(U)(
|
|
825
840
|
e.value.style.layout.plots.selectors.labels.y.formatter,
|
|
826
841
|
u(A)(p.value.yMin),
|
|
827
842
|
u(F)({
|
|
@@ -830,14 +845,14 @@ const Vt = ["id"], jt = ["xmlns", "viewBox"], Rt = ["width", "height"], Et = { k
|
|
|
830
845
|
s: e.value.style.layout.plots.selectors.labels.suffix,
|
|
831
846
|
r: e.value.style.layout.dataLabels.yAxis.rounding
|
|
832
847
|
})
|
|
833
|
-
)), 9,
|
|
848
|
+
)), 9, Sl),
|
|
834
849
|
d("text", {
|
|
835
850
|
x: g.value.x,
|
|
836
851
|
y: n.value.top - e.value.style.layout.dataLabels.yAxis.fontSize / 2,
|
|
837
852
|
"text-anchor": "middle",
|
|
838
853
|
"font-size": e.value.style.layout.dataLabels.yAxis.fontSize,
|
|
839
854
|
fill: e.value.style.layout.dataLabels.yAxis.color
|
|
840
|
-
}, C(u(
|
|
855
|
+
}, C(u(U)(
|
|
841
856
|
e.value.style.layout.plots.selectors.labels.y.formatter,
|
|
842
857
|
u(A)(p.value.yMax),
|
|
843
858
|
u(F)({
|
|
@@ -846,7 +861,7 @@ const Vt = ["id"], jt = ["xmlns", "viewBox"], Rt = ["width", "height"], Et = { k
|
|
|
846
861
|
s: e.value.style.layout.plots.selectors.labels.suffix,
|
|
847
862
|
r: e.value.style.layout.dataLabels.yAxis.rounding
|
|
848
863
|
})
|
|
849
|
-
)), 9,
|
|
864
|
+
)), 9, zl),
|
|
850
865
|
d("text", {
|
|
851
866
|
"text-anchor": "middle",
|
|
852
867
|
"font-size": e.value.style.layout.dataLabels.yAxis.fontSize,
|
|
@@ -854,20 +869,20 @@ const Vt = ["id"], jt = ["xmlns", "viewBox"], Rt = ["width", "height"], Et = { k
|
|
|
854
869
|
fill: e.value.style.layout.dataLabels.yAxis.color,
|
|
855
870
|
x: n.value.left + n.value.width / 2,
|
|
856
871
|
y: n.value.bottom + 8 + e.value.style.layout.dataLabels.yAxis.fontSize * 2
|
|
857
|
-
}, C(e.value.style.layout.dataLabels.yAxis.name), 9,
|
|
872
|
+
}, C(e.value.style.layout.dataLabels.yAxis.name), 9, Tl)
|
|
858
873
|
])) : c("", !0),
|
|
859
874
|
d("clipPath", {
|
|
860
|
-
id: `clip_path_${
|
|
875
|
+
id: `clip_path_${S.value}`
|
|
861
876
|
}, [
|
|
862
877
|
d("rect", {
|
|
863
878
|
x: n.value.left,
|
|
864
879
|
y: n.value.top,
|
|
865
880
|
width: n.value.width <= 0 ? 1e-4 : n.value.width,
|
|
866
881
|
height: n.value.height <= 0 ? 1e-4 : n.value.height
|
|
867
|
-
}, null, 8,
|
|
868
|
-
], 8,
|
|
869
|
-
e.value.style.layout.correlation.show ? (
|
|
870
|
-
(
|
|
882
|
+
}, null, 8, Bl)
|
|
883
|
+
], 8, Ll),
|
|
884
|
+
e.value.style.layout.correlation.show ? (s(), r("g", Ol, [
|
|
885
|
+
(s(!0), r(W, null, Y(z.value, (l, o) => (s(), r("line", {
|
|
871
886
|
x1: l.correlation.x1,
|
|
872
887
|
x2: l.correlation.x2,
|
|
873
888
|
y1: l.correlation.y1,
|
|
@@ -875,10 +890,10 @@ const Vt = ["id"], jt = ["xmlns", "viewBox"], Rt = ["width", "height"], Et = { k
|
|
|
875
890
|
"stroke-dasharray": e.value.style.layout.correlation.strokeDasharray,
|
|
876
891
|
stroke: l.color,
|
|
877
892
|
"stroke-width": e.value.style.layout.correlation.strokeWidth,
|
|
878
|
-
"clip-path": `url(#clip_path_${
|
|
879
|
-
}, null, 8,
|
|
880
|
-
(
|
|
881
|
-
e.value.style.layout.correlation.label.show ? (
|
|
893
|
+
"clip-path": `url(#clip_path_${S.value})`
|
|
894
|
+
}, null, 8, Nl))), 256)),
|
|
895
|
+
(s(!0), r(W, null, Y(z.value, (l, o) => (s(), r("g", null, [
|
|
896
|
+
e.value.style.layout.correlation.label.show ? (s(), r("text", {
|
|
882
897
|
key: 0,
|
|
883
898
|
x: l.label.x,
|
|
884
899
|
y: l.label.y,
|
|
@@ -888,15 +903,15 @@ const Vt = ["id"], jt = ["xmlns", "viewBox"], Rt = ["width", "height"], Et = { k
|
|
|
888
903
|
}, C(u(F)({
|
|
889
904
|
v: u(A)(l.correlation.coefficient),
|
|
890
905
|
r: e.value.style.layout.correlation.label.roundingValue
|
|
891
|
-
})), 9,
|
|
906
|
+
})), 9, Pl)) : c("", !0)
|
|
892
907
|
]))), 256))
|
|
893
908
|
])) : c("", !0),
|
|
894
909
|
M(t.$slots, "svg", { svg: k.value }, void 0, !0)
|
|
895
|
-
], 14,
|
|
896
|
-
t.$slots.watermark ? (
|
|
897
|
-
M(t.$slots, "watermark",
|
|
910
|
+
], 14, Et)) : c("", !0),
|
|
911
|
+
t.$slots.watermark ? (s(), r("div", Wl, [
|
|
912
|
+
M(t.$slots, "watermark", te(le({ isPrinting: u(Oe) || u(Ne) })), void 0, !0)
|
|
898
913
|
])) : c("", !0),
|
|
899
|
-
ae.value ? c("", !0) : (
|
|
914
|
+
ae.value ? c("", !0) : (s(), E(u(ot), {
|
|
900
915
|
key: 6,
|
|
901
916
|
config: {
|
|
902
917
|
type: "quadrant",
|
|
@@ -918,17 +933,17 @@ const Vt = ["id"], jt = ["xmlns", "viewBox"], Rt = ["width", "height"], Et = { k
|
|
|
918
933
|
ref_key: "chartLegend",
|
|
919
934
|
ref: we
|
|
920
935
|
}, [
|
|
921
|
-
e.value.style.legend.show ? (
|
|
936
|
+
e.value.style.legend.show ? (s(), E(Yt, {
|
|
922
937
|
key: `legend_${Ae.value}`,
|
|
923
938
|
legendSet: G.value,
|
|
924
|
-
config:
|
|
925
|
-
onClickMarker:
|
|
939
|
+
config: vt.value,
|
|
940
|
+
onClickMarker: i[0] || (i[0] = ({ legend: l }) => Re(l.id))
|
|
926
941
|
}, {
|
|
927
942
|
item: _(({ legend: l }) => [
|
|
928
943
|
d("div", {
|
|
929
|
-
onClick: (
|
|
944
|
+
onClick: (o) => l.segregate(),
|
|
930
945
|
style: j(`opacity:${x.value.includes(l.id) ? 0.5 : 1}`)
|
|
931
|
-
}, C(l.name), 13,
|
|
946
|
+
}, C(l.name), 13, Fl)
|
|
932
947
|
]),
|
|
933
948
|
_: 1
|
|
934
949
|
}, 8, ["legendSet", "config"])) : M(t.$slots, "legend", {
|
|
@@ -936,7 +951,7 @@ const Vt = ["id"], jt = ["xmlns", "viewBox"], Rt = ["width", "height"], Et = { k
|
|
|
936
951
|
legend: G.value
|
|
937
952
|
}, void 0, !0)
|
|
938
953
|
], 512),
|
|
939
|
-
t.$slots.source ? (
|
|
954
|
+
t.$slots.source ? (s(), r("div", {
|
|
940
955
|
key: 7,
|
|
941
956
|
ref_key: "source",
|
|
942
957
|
ref: _e,
|
|
@@ -944,8 +959,8 @@ const Vt = ["id"], jt = ["xmlns", "viewBox"], Rt = ["width", "height"], Et = { k
|
|
|
944
959
|
}, [
|
|
945
960
|
M(t.$slots, "source", {}, void 0, !0)
|
|
946
961
|
], 512)) : c("", !0),
|
|
947
|
-
ge(u(
|
|
948
|
-
show: O.value.showTooltip &&
|
|
962
|
+
ge(u(st), {
|
|
963
|
+
show: O.value.showTooltip && re.value,
|
|
949
964
|
backgroundColor: e.value.style.tooltip.backgroundColor,
|
|
950
965
|
color: e.value.style.tooltip.color,
|
|
951
966
|
borderRadius: e.value.style.tooltip.borderRadius,
|
|
@@ -955,21 +970,21 @@ const Vt = ["id"], jt = ["xmlns", "viewBox"], Rt = ["width", "height"], Et = { k
|
|
|
955
970
|
backgroundOpacity: e.value.style.tooltip.backgroundOpacity,
|
|
956
971
|
position: e.value.style.tooltip.position,
|
|
957
972
|
offsetY: e.value.style.tooltip.offsetY,
|
|
958
|
-
parent:
|
|
973
|
+
parent: D.value,
|
|
959
974
|
content: ne.value,
|
|
960
|
-
isFullscreen:
|
|
975
|
+
isFullscreen: Q.value,
|
|
961
976
|
isCustom: e.value.style.tooltip.customFormat && typeof e.value.style.tooltip.customFormat == "function"
|
|
962
977
|
}, {
|
|
963
978
|
"tooltip-before": _(() => [
|
|
964
|
-
M(t.$slots, "tooltip-before",
|
|
979
|
+
M(t.$slots, "tooltip-before", te(le({ ...ce.value })), void 0, !0)
|
|
965
980
|
]),
|
|
966
981
|
"tooltip-after": _(() => [
|
|
967
|
-
M(t.$slots, "tooltip-after",
|
|
982
|
+
M(t.$slots, "tooltip-after", te(le({ ...ce.value })), void 0, !0)
|
|
968
983
|
]),
|
|
969
984
|
default: _(() => [
|
|
970
|
-
e.value.style.tooltip.showShape ? (
|
|
971
|
-
(
|
|
972
|
-
ge(
|
|
985
|
+
e.value.style.tooltip.showShape ? (s(), r("div", Il, [
|
|
986
|
+
(s(), r("svg", Xl, [
|
|
987
|
+
ge(Je, {
|
|
973
988
|
shape: y.value.shape,
|
|
974
989
|
color: y.value.color,
|
|
975
990
|
plot: { x: 10, y: 10 },
|
|
@@ -980,7 +995,7 @@ const Vt = ["id"], jt = ["xmlns", "viewBox"], Rt = ["width", "height"], Et = { k
|
|
|
980
995
|
]),
|
|
981
996
|
_: 3
|
|
982
997
|
}, 8, ["show", "backgroundColor", "color", "borderRadius", "borderColor", "borderWidth", "fontSize", "backgroundOpacity", "position", "offsetY", "parent", "content", "isFullscreen", "isCustom"]),
|
|
983
|
-
ae.value ? (
|
|
998
|
+
ae.value ? (s(), E(u(et), {
|
|
984
999
|
key: 8,
|
|
985
1000
|
hideDetails: "",
|
|
986
1001
|
config: {
|
|
@@ -997,34 +1012,34 @@ const Vt = ["id"], jt = ["xmlns", "viewBox"], Rt = ["width", "height"], Et = { k
|
|
|
997
1012
|
}
|
|
998
1013
|
}, {
|
|
999
1014
|
content: _(() => [
|
|
1000
|
-
(
|
|
1015
|
+
(s(), E(u(tt), {
|
|
1001
1016
|
key: `table_${Ce.value}`,
|
|
1002
1017
|
colNames: se.value.colNames,
|
|
1003
1018
|
head: se.value.head,
|
|
1004
1019
|
body: se.value.body,
|
|
1005
1020
|
config: se.value.config,
|
|
1006
1021
|
title: `${e.value.style.title.text}${e.value.style.title.subtitle.text ? ` : ${e.value.style.title.subtitle.text}` : ""}`,
|
|
1007
|
-
onClose:
|
|
1022
|
+
onClose: i[1] || (i[1] = (l) => O.value.showTable = !1)
|
|
1008
1023
|
}, {
|
|
1009
1024
|
th: _(({ th: l }) => [
|
|
1010
|
-
|
|
1025
|
+
mt(C(l), 1)
|
|
1011
1026
|
]),
|
|
1012
1027
|
td: _(({ td: l }) => [
|
|
1013
|
-
l.shape ? (
|
|
1028
|
+
l.shape ? (s(), r("div", Yl, [
|
|
1014
1029
|
d("span", null, C(l.content), 1)
|
|
1015
|
-
])) : (
|
|
1030
|
+
])) : (s(), r("div", {
|
|
1016
1031
|
key: 1,
|
|
1017
1032
|
innerHTML: l
|
|
1018
|
-
}, null, 8,
|
|
1033
|
+
}, null, 8, Dl))
|
|
1019
1034
|
]),
|
|
1020
1035
|
_: 1
|
|
1021
1036
|
}, 8, ["colNames", "head", "body", "config", "title"]))
|
|
1022
1037
|
]),
|
|
1023
1038
|
_: 1
|
|
1024
1039
|
}, 8, ["config"])) : c("", !0)
|
|
1025
|
-
], 46,
|
|
1040
|
+
], 46, jt));
|
|
1026
1041
|
}
|
|
1027
|
-
},
|
|
1042
|
+
}, ta = /* @__PURE__ */ Vt(Rl, [["__scopeId", "data-v-3b36f62b"]]);
|
|
1028
1043
|
export {
|
|
1029
|
-
|
|
1044
|
+
ta as default
|
|
1030
1045
|
};
|