vue-data-ui 2.16.6 → 2.17.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 +84 -53
- package/dist/{Arrow-DCqxVwey.js → Arrow-BDCVJzQB.js} +1 -1
- package/dist/{BaseDraggableDialog-6DIKXIBU.js → BaseDraggableDialog-BvuWrldK.js} +2 -2
- package/dist/{BaseIcon-Bn996RXm.js → BaseIcon-D9Tz8ARD.js} +1 -1
- package/dist/{ColorPicker-OFfLkKNb.js → ColorPicker-wGf46G2G.js} +2 -2
- package/dist/{DataTable-CHBLjKtZ.js → DataTable-Dt-TIOyY.js} +2 -2
- package/dist/{Legend-nBXoxXJH.js → Legend-3LNqqLDg.js} +2 -2
- package/dist/{NonSvgPenAndPaper-Cls2idJS.js → NonSvgPenAndPaper-iDdMuUEo.js} +3 -3
- package/dist/{PackageVersion-Bg_9KCU-.js → PackageVersion-C-4Ee8BQ.js} +1 -1
- package/dist/{PenAndPaper-BPTpbnay.js → PenAndPaper-Cde-wJ3N.js} +32 -32
- package/dist/{Shape-Bnf512BA.js → Shape-C75836Jl.js} +1 -1
- package/dist/{Slicer-BrqtJG2E.js → Slicer-CpSu7plp.js} +2 -2
- package/dist/{SparkTooltip-C-rLATAw.js → SparkTooltip-B_GXa2tb.js} +1 -1
- package/dist/{Title-Gi81VwUM.js → Title-DpERl1yr.js} +1 -1
- package/dist/{Tooltip-CJxVw7-T.js → Tooltip-DA0bYKFG.js} +1 -1
- package/dist/{UserOptions-CBEK6_jo.js → UserOptions-DTEJ3UM_.js} +2 -2
- package/dist/{dom-to-png-CRHNL8VU.js → dom-to-png-DWDGYXFL.js} +1 -1
- package/dist/{img-BgOg8opa.js → img-utitT2Gd.js} +1 -1
- package/dist/{index-DvIXJm6t.js → index-CobsZUkv.js} +22 -8
- package/dist/{pdf-DhTxBrbJ.js → pdf-DWZ8IB56.js} +1 -1
- package/dist/style.css +1 -1
- package/dist/types/vue-data-ui.d.cts +999 -160
- package/dist/types/vue-data-ui.d.ts +999 -160
- package/dist/{useNestedProp-DrYHm61t.js → useNestedProp-BwL5wmVa.js} +1 -1
- package/dist/{usePrinter-CWnXbGMb.js → usePrinter-DPh6U_Qk.js} +2 -2
- package/dist/vue-data-ui-D7ZgRDQ_.js +312 -0
- package/dist/vue-data-ui.js +1 -1
- package/dist/{vue-ui-3d-bar-CtlB4p7i.js → vue-ui-3d-bar-ORUAjkg7.js} +246 -231
- package/dist/{vue-ui-accordion-D55kCO5G.js → vue-ui-accordion-UewqY6OI.js} +3 -3
- package/dist/{vue-ui-age-pyramid-DSshyUn-.js → vue-ui-age-pyramid-Yl4aRpNc.js} +225 -210
- package/dist/{vue-ui-annotator-DQSMv_k2.js → vue-ui-annotator-B1gqiBqq.js} +2 -2
- package/dist/{vue-ui-bullet-FeScjj7q.js → vue-ui-bullet-C307lCPt.js} +168 -153
- package/dist/{vue-ui-candlestick-Drupgyoi.js → vue-ui-candlestick-BE6PcEdh.js} +218 -203
- package/dist/{vue-ui-carousel-table-BTZQRZfO.js → vue-ui-carousel-table-Cpvjr677.js} +4 -4
- package/dist/{vue-ui-chestnut-DLWjPwRL.js → vue-ui-chestnut-CUw74AgC.js} +412 -397
- package/dist/{vue-ui-chord-BgLbFBT9.js → vue-ui-chord-CCPGeAiY.js} +202 -187
- package/dist/{vue-ui-circle-pack-VXcRh2gy.js → vue-ui-circle-pack-dfyPiQmy.js} +222 -207
- package/dist/{vue-ui-cursor-DWmfnM25.js → vue-ui-cursor-C2zmfeoD.js} +2 -2
- package/dist/{vue-ui-dashboard-CGIocEHj.js → vue-ui-dashboard-CotAqRbX.js} +62 -62
- package/dist/{vue-ui-digits-BgQch3Fc.js → vue-ui-digits-7qJFCuoI.js} +2 -2
- package/dist/{vue-ui-donut-B59bCV5_.js → vue-ui-donut-D41WeqQU.js} +420 -411
- package/dist/{vue-ui-donut-evolution-CI8qBIQd.js → vue-ui-donut-evolution-Deg0dsYg.js} +352 -340
- package/dist/{vue-ui-dumbbell-CXv7sk88.js → vue-ui-dumbbell-DDwNoTPG.js} +214 -199
- package/dist/{vue-ui-flow-DxF0ELtv.js → vue-ui-flow-6oR7IMyi.js} +215 -200
- package/dist/{vue-ui-funnel-Bco8rqF8.js → vue-ui-funnel-BnXtOJmh.js} +212 -197
- package/dist/{vue-ui-galaxy-CaPJwwOj.js → vue-ui-galaxy-75XC8SpV.js} +213 -201
- package/dist/{vue-ui-gauge-D7arhDmb.js → vue-ui-gauge-w31j915C.js} +218 -203
- package/dist/{vue-ui-gizmo-Dwli-Mip.js → vue-ui-gizmo-bZqk6oZS.js} +3 -3
- package/dist/{vue-ui-heatmap-Cyn-ahGO.js → vue-ui-heatmap-BfU62tMW.js} +242 -223
- package/dist/{vue-ui-history-plot-C2AEToqx.js → vue-ui-history-plot-CFfco-Yj.js} +267 -252
- package/dist/{vue-ui-kpi-DKDibSdl.js → vue-ui-kpi-DaJ1U3wf.js} +3 -3
- package/dist/{vue-ui-mini-loader-B8OVutUx.js → vue-ui-mini-loader-CF_2jAI8.js} +2 -2
- package/dist/{vue-ui-molecule-BVSrqIGw.js → vue-ui-molecule-Tdk3Gd8M.js} +207 -192
- package/dist/{vue-ui-mood-radar-DvlyS3RN.js → vue-ui-mood-radar-Dg5wS7W5.js} +204 -189
- package/dist/{vue-ui-nested-donuts-D9ssSus6.js → vue-ui-nested-donuts-CpRe0sQB.js} +248 -240
- package/dist/{vue-ui-onion-Buu4VX3u.js → vue-ui-onion-B8o4ft2v.js} +184 -169
- package/dist/{vue-ui-parallel-coordinate-plot-DFLUvhxD.js → vue-ui-parallel-coordinate-plot-zW-CNqWC.js} +192 -177
- package/dist/{vue-ui-quadrant-BMC7NBGd.js → vue-ui-quadrant-DiRtZ16w.js} +259 -244
- package/dist/{vue-ui-quick-chart-DB9RKUkb.js → vue-ui-quick-chart-BRlYC_yT.js} +324 -309
- package/dist/{vue-ui-radar-68NMPxxQ.js → vue-ui-radar-DKgX1Ibx.js} +195 -180
- package/dist/{vue-ui-rating-swH9kRr3.js → vue-ui-rating-DlklKr-X.js} +2 -2
- package/dist/{vue-ui-relation-circle-CT-EdSjO.js → vue-ui-relation-circle-MHiAp8dC.js} +186 -171
- package/dist/{vue-ui-ridgeline-DftROPaX.js → vue-ui-ridgeline-DA8verAe.js} +227 -212
- package/dist/{vue-ui-rings-M-9dPI5D.js → vue-ui-rings-Dh6lFqun.js} +214 -202
- package/dist/{vue-ui-scatter-CsGhaFJh.js → vue-ui-scatter-CLC5sTOi.js} +270 -256
- package/dist/{vue-ui-skeleton-BAOt2neL.js → vue-ui-skeleton-8s4xts8z.js} +3 -3
- package/dist/{vue-ui-smiley-7_kIgPg-.js → vue-ui-smiley-utuzw8uI.js} +2 -2
- package/dist/{vue-ui-spark-trend-DHlQQpwz.js → vue-ui-spark-trend-BODEqGRr.js} +3 -3
- package/dist/{vue-ui-sparkbar-BnHhzuKf.js → vue-ui-sparkbar-B8MB-kn9.js} +3 -3
- package/dist/{vue-ui-sparkgauge-WtfkCK8g.js → vue-ui-sparkgauge-CuD7kTS3.js} +3 -3
- package/dist/{vue-ui-sparkhistogram-B2u4XLVd.js → vue-ui-sparkhistogram-BYJszvna.js} +4 -4
- package/dist/{vue-ui-sparkline-DKIyUlSm.js → vue-ui-sparkline-D77GyWzG.js} +3 -3
- package/dist/{vue-ui-sparkstackbar-BLGz2qIb.js → vue-ui-sparkstackbar-DNb1yD64.js} +3 -3
- package/dist/{vue-ui-stackbar-BDpMsTYe.js → vue-ui-stackbar-C6rjCYDD.js} +251 -236
- package/dist/{vue-ui-strip-plot-5qDcYPnR.js → vue-ui-strip-plot-B6cYojHQ.js} +239 -224
- package/dist/{vue-ui-table-Bg5HIQ3O.js → vue-ui-table-IC7SmWVd.js} +3 -3
- package/dist/{vue-ui-table-heatmap-DmjNy1q1.js → vue-ui-table-heatmap-DHFpJMpA.js} +5 -5
- package/dist/{vue-ui-table-sparkline-CnkJkBk5.js → vue-ui-table-sparkline-D7wz-sCj.js} +4 -4
- package/dist/{vue-ui-thermometer-RlD-9mJf.js → vue-ui-thermometer-D-oiVT3n.js} +168 -153
- package/dist/{vue-ui-timer-Bes74INL.js → vue-ui-timer-C9jVyX5l.js} +5 -5
- package/dist/vue-ui-tiremarks-B1bM9Aoo.js +358 -0
- package/dist/{vue-ui-treemap-BG1Omm38.js → vue-ui-treemap-DX48YlU5.js} +374 -362
- package/dist/{vue-ui-vertical-bar-CwqQyZFX.js → vue-ui-vertical-bar-6SjKPQWR.js} +252 -237
- package/dist/{vue-ui-waffle-Ce3T4BPp.js → vue-ui-waffle-CYao9MMw.js} +232 -220
- package/dist/vue-ui-wheel-USuDhMwW.js +352 -0
- package/dist/vue-ui-word-cloud-TOBTs7yF.js +659 -0
- package/dist/{vue-ui-world-B9PxVO4n.js → vue-ui-world-C2qikqBa.js} +237 -222
- package/dist/{vue-ui-xy-DtJ7qJib.js → vue-ui-xy-DxwgKoO-.js} +557 -544
- package/dist/{vue-ui-xy-canvas-S6YpFgzs.js → vue-ui-xy-canvas-N69OpVn8.js} +395 -380
- package/package.json +1 -1
- package/dist/vue-data-ui-B8EWlMIK.js +0 -301
- package/dist/vue-ui-tiremarks-DiLS3akQ.js +0 -343
- package/dist/vue-ui-wheel-6B0WTkf2.js +0 -337
- package/dist/vue-ui-word-cloud-ByYZCOh7.js +0 -644
|
@@ -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-CobsZUkv.js";
|
|
3
|
+
import { t as Pt, u as Wt } from "./useResponsive-DfdjqQps.js";
|
|
4
|
+
import { u as Ze } from "./useNestedProp-BwL5wmVa.js";
|
|
5
|
+
import { u as Ft } from "./usePrinter-DPh6U_Qk.js";
|
|
6
|
+
import { u as It } from "./useUserOptionState-BIvW1Kz7.js";
|
|
7
|
+
import { u as Xt } from "./useChartAccessibility-9icAAmYg.js";
|
|
8
|
+
import Yt from "./Legend-3LNqqLDg.js";
|
|
9
|
+
import Dt from "./Title-DpERl1yr.js";
|
|
10
|
+
import { _ as Je } from "./Shape-C75836Jl.js";
|
|
11
|
+
import Rt from "./img-utitT2Gd.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-UewqY6OI.js")), tt = Z(() => import("./DataTable-Dt-TIOyY.js")), lt = Z(() => import("./PackageVersion-C-4Ee8BQ.js")), at = Z(() => import("./PenAndPaper-Cde-wJ3N.js")), ot = Z(() => import("./vue-ui-skeleton-8s4xts8z.js")), st = Z(() => import("./Tooltip-DA0bYKFG.js")), ut = Z(() => import("./UserOptions-DTEJ3UM_.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: Se, keepUserOptionState: ze } =
|
|
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
|
+
const { isPrinting: Oe, isImaging: Ne, generatePdf: Pe, generateImage: We } = Ft({
|
|
91
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_${S.value}_${
|
|
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
|
+
color: t.color ? t.color : Fe.value[i] || J[i] || J[i % J.length],
|
|
171
172
|
id: `plot_${S.value}_${Math.random()}`,
|
|
172
173
|
weight: l.weight ?? e.value.style.layout.plots.radius
|
|
173
174
|
}))
|
|
174
175
|
})).filter((t) => !x.value.includes(t.id))), z = b(() => ye.value.map((t) => {
|
|
175
|
-
const
|
|
176
|
-
let
|
|
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(...z.value.flatMap((t) => t.plots.map((
|
|
204
|
-
function
|
|
204
|
+
})), Ie = b(() => Math.max(...z.value.flatMap((t) => t.plots.map((i) => Math.abs(i.deviation)))));
|
|
205
|
+
function yt() {
|
|
205
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
|
+
seriesIndex: i,
|
|
255
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
|
+
seriesIndex: i,
|
|
262
263
|
series: z.value,
|
|
263
264
|
config: e.value
|
|
264
|
-
})) ? ne.value =
|
|
265
|
+
})) ? ne.value = o({
|
|
265
266
|
datapoint: t,
|
|
266
|
-
seriesIndex:
|
|
267
|
+
seriesIndex: i,
|
|
267
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:
|
|
383
|
+
ref: D,
|
|
370
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(ze) || u(ve)) ? (
|
|
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}`,
|
|
@@ -423,29 +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,
|
|
434
|
-
onToggleFullscreen:
|
|
448
|
+
onToggleFullscreen: je,
|
|
435
449
|
onGeneratePdf: u(Pe),
|
|
436
|
-
onGenerateCsv:
|
|
450
|
+
onGenerateCsv: Ve,
|
|
437
451
|
onGenerateImage: u(We),
|
|
438
|
-
onToggleTable:
|
|
439
|
-
onToggleTooltip:
|
|
452
|
+
onToggleTable: Ee,
|
|
453
|
+
onToggleTooltip: Ue,
|
|
440
454
|
onToggleAnnotator: de,
|
|
441
455
|
style: j({
|
|
442
456
|
visibility: u(ze) ? u(ve) ? "visible" : "hidden" : "visible"
|
|
443
457
|
})
|
|
444
|
-
},
|
|
458
|
+
}, gt({ _: 2 }, [
|
|
445
459
|
t.$slots.menuIcon ? {
|
|
446
460
|
name: "menuIcon",
|
|
447
|
-
fn: _(({ isOpen: l, color:
|
|
448
|
-
M(t.$slots, "menuIcon",
|
|
461
|
+
fn: _(({ isOpen: l, color: o }) => [
|
|
462
|
+
M(t.$slots, "menuIcon", te(le({ isOpen: l, color: o })), void 0, !0)
|
|
449
463
|
]),
|
|
450
464
|
key: "0"
|
|
451
465
|
} : void 0,
|
|
@@ -486,30 +500,30 @@ const Vt = ["id"], jt = ["xmlns", "viewBox"], Rt = ["width", "height"], Et = { k
|
|
|
486
500
|
} : void 0,
|
|
487
501
|
t.$slots.optionFullscreen ? {
|
|
488
502
|
name: "optionFullscreen",
|
|
489
|
-
fn: _(({ toggleFullscreen: l, isFullscreen:
|
|
490
|
-
M(t.$slots, "optionFullscreen",
|
|
503
|
+
fn: _(({ toggleFullscreen: l, isFullscreen: o }) => [
|
|
504
|
+
M(t.$slots, "optionFullscreen", te(le({ toggleFullscreen: l, isFullscreen: o })), void 0, !0)
|
|
491
505
|
]),
|
|
492
506
|
key: "6"
|
|
493
507
|
} : void 0,
|
|
494
508
|
t.$slots.optionAnnotator ? {
|
|
495
509
|
name: "optionAnnotator",
|
|
496
|
-
fn: _(({ toggleAnnotator: l, isAnnotator:
|
|
497
|
-
M(t.$slots, "optionAnnotator",
|
|
510
|
+
fn: _(({ toggleAnnotator: l, isAnnotator: o }) => [
|
|
511
|
+
M(t.$slots, "optionAnnotator", te(le({ toggleAnnotator: l, isAnnotator: o })), void 0, !0)
|
|
498
512
|
]),
|
|
499
513
|
key: "7"
|
|
500
514
|
} : void 0
|
|
501
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),
|
|
502
|
-
ae.value ? (
|
|
516
|
+
ae.value ? (s(), r("svg", {
|
|
503
517
|
key: 4,
|
|
504
518
|
ref_key: "svgRef",
|
|
505
519
|
ref: Te,
|
|
506
|
-
xmlns: u(
|
|
507
|
-
class:
|
|
520
|
+
xmlns: u(zt),
|
|
521
|
+
class: qe({ "vue-data-ui-fullscreen--on": Q.value, "vue-data-ui-fulscreen--off": !Q.value }),
|
|
508
522
|
viewBox: `0 0 ${k.value.width <= 0 ? 10 : k.value.width} ${k.value.height <= 0 ? 10 : k.value.height}`,
|
|
509
523
|
style: j(`max-width:100%;overflow:visible;background:transparent;color:${e.value.style.color}`)
|
|
510
524
|
}, [
|
|
511
|
-
ge(u(
|
|
512
|
-
t.$slots["chart-background"] ? (
|
|
525
|
+
ge(u(lt)),
|
|
526
|
+
t.$slots["chart-background"] ? (s(), r("foreignObject", {
|
|
513
527
|
key: 0,
|
|
514
528
|
x: 0,
|
|
515
529
|
y: 0,
|
|
@@ -520,8 +534,8 @@ const Vt = ["id"], jt = ["xmlns", "viewBox"], Rt = ["width", "height"], Et = { k
|
|
|
520
534
|
}
|
|
521
535
|
}, [
|
|
522
536
|
M(t.$slots, "chart-background", {}, void 0, !0)
|
|
523
|
-
], 8,
|
|
524
|
-
e.value.style.layout.axis.show ? (
|
|
537
|
+
], 8, Ut)) : c("", !0),
|
|
538
|
+
e.value.style.layout.axis.show ? (s(), r("g", Gt, [
|
|
525
539
|
d("line", {
|
|
526
540
|
x1: g.value.x,
|
|
527
541
|
x2: g.value.x,
|
|
@@ -530,7 +544,7 @@ const Vt = ["id"], jt = ["xmlns", "viewBox"], Rt = ["width", "height"], Et = { k
|
|
|
530
544
|
stroke: e.value.style.layout.axis.stroke,
|
|
531
545
|
"stroke-width": e.value.style.layout.axis.strokeWidth,
|
|
532
546
|
"stroke-linecap": "round"
|
|
533
|
-
}, null, 8,
|
|
547
|
+
}, null, 8, qt),
|
|
534
548
|
d("line", {
|
|
535
549
|
x1: n.value.left,
|
|
536
550
|
x2: n.value.right,
|
|
@@ -539,50 +553,50 @@ const Vt = ["id"], jt = ["xmlns", "viewBox"], Rt = ["width", "height"], Et = { k
|
|
|
539
553
|
stroke: e.value.style.layout.axis.stroke,
|
|
540
554
|
"stroke-width": e.value.style.layout.axis.strokeWidth,
|
|
541
555
|
"stroke-linecap": "round"
|
|
542
|
-
}, null, 8,
|
|
556
|
+
}, null, 8, Ht)
|
|
543
557
|
])) : c("", !0),
|
|
544
|
-
e.value.style.layout.plots.giftWrap.show ? (
|
|
545
|
-
(
|
|
546
|
-
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", {
|
|
547
561
|
key: 0,
|
|
548
|
-
points: u(
|
|
562
|
+
points: u(Tt)({ series: l.plots }),
|
|
549
563
|
fill: u(xe)(l.color, e.value.style.layout.plots.giftWrap.fillOpacity * 100),
|
|
550
564
|
"stroke-width": e.value.style.layout.plots.giftWrap.strokeWidth,
|
|
551
565
|
"stroke-dasharray": e.value.style.layout.plots.giftWrap.strokeDasharray,
|
|
552
566
|
stroke: l.color,
|
|
553
567
|
"stroke-linejoin": "round",
|
|
554
568
|
"stroke-linecap": "round"
|
|
555
|
-
}, null, 8,
|
|
569
|
+
}, null, 8, Jt)) : c("", !0)
|
|
556
570
|
]))), 256))
|
|
557
571
|
])) : c("", !0),
|
|
558
|
-
(
|
|
559
|
-
!l.shape || l.shape === "circle" ? (
|
|
560
|
-
(
|
|
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", {
|
|
561
575
|
cx: a.x,
|
|
562
576
|
cy: a.y,
|
|
563
577
|
r: N.value && N.value === a.id ? a.weight * 2 : a.weight,
|
|
564
578
|
fill: u(xe)(l.color, e.value.style.layout.plots.opacity * 100),
|
|
565
579
|
stroke: e.value.style.layout.plots.stroke,
|
|
566
580
|
"stroke-width": e.value.style.layout.plots.strokeWidth,
|
|
567
|
-
onMouseover: (f) => Ye(a,
|
|
581
|
+
onMouseover: (f) => Ye(a, o),
|
|
568
582
|
onMouseleave: De,
|
|
569
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}`)
|
|
570
|
-
}, null, 44,
|
|
571
|
-
])) : (
|
|
572
|
-
(
|
|
584
|
+
}, null, 44, Qt))), 256))
|
|
585
|
+
])) : (s(), r("g", el, [
|
|
586
|
+
(s(!0), r(W, null, Y(l.plots, (a, v) => (s(), E(Je, {
|
|
573
587
|
plot: { x: a.x, y: a.y },
|
|
574
588
|
radius: N.value && N.value === a.id ? a.weight * 2 : a.weight,
|
|
575
589
|
shape: l.shape,
|
|
576
590
|
color: u(xe)(l.color, e.value.style.layout.plots.opacity * 100),
|
|
577
591
|
stroke: e.value.style.layout.plots.stroke,
|
|
578
592
|
strokeWidth: e.value.style.layout.plots.strokeWidth,
|
|
579
|
-
onMouseover: (f) => Ye(a,
|
|
593
|
+
onMouseover: (f) => Ye(a, o),
|
|
580
594
|
onMouseleave: De,
|
|
581
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}`)
|
|
582
596
|
}, null, 8, ["plot", "radius", "shape", "color", "stroke", "strokeWidth", "onMouseover", "style"]))), 256))
|
|
583
597
|
]))
|
|
584
598
|
]))), 256)),
|
|
585
|
-
e.value.style.layout.marginalBars.show ? (
|
|
599
|
+
e.value.style.layout.marginalBars.show ? (s(), r("g", tl, [
|
|
586
600
|
d("defs", null, [
|
|
587
601
|
d("linearGradient", {
|
|
588
602
|
id: `marginal_x_${S.value}`,
|
|
@@ -594,12 +608,12 @@ const Vt = ["id"], jt = ["xmlns", "viewBox"], Rt = ["width", "height"], Et = { k
|
|
|
594
608
|
d("stop", {
|
|
595
609
|
offset: "0%",
|
|
596
610
|
"stop-color": e.value.style.layout.marginalBars.fill
|
|
597
|
-
}, null, 8,
|
|
611
|
+
}, null, 8, al),
|
|
598
612
|
d("stop", {
|
|
599
613
|
offset: "100%",
|
|
600
614
|
"stop-color": e.value.style.backgroundColor
|
|
601
|
-
}, null, 8,
|
|
602
|
-
], 8,
|
|
615
|
+
}, null, 8, ol)
|
|
616
|
+
], 8, ll),
|
|
603
617
|
d("linearGradient", {
|
|
604
618
|
id: `marginal_y_${S.value}`,
|
|
605
619
|
x1: "0%",
|
|
@@ -610,17 +624,17 @@ const Vt = ["id"], jt = ["xmlns", "viewBox"], Rt = ["width", "height"], Et = { k
|
|
|
610
624
|
d("stop", {
|
|
611
625
|
offset: "0%",
|
|
612
626
|
"stop-color": e.value.style.backgroundColor
|
|
613
|
-
}, null, 8,
|
|
627
|
+
}, null, 8, ul),
|
|
614
628
|
d("stop", {
|
|
615
629
|
offset: "100%",
|
|
616
630
|
"stop-color": e.value.style.layout.marginalBars.fill
|
|
617
|
-
}, null, 8,
|
|
618
|
-
], 8,
|
|
631
|
+
}, null, 8, il)
|
|
632
|
+
], 8, sl)
|
|
619
633
|
]),
|
|
620
|
-
(
|
|
621
|
-
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", {
|
|
622
636
|
key: 0,
|
|
623
|
-
x: T.value.avgX[
|
|
637
|
+
x: T.value.avgX[o] - n.value.width / V.value / 2,
|
|
624
638
|
y: n.value.top - e.value.style.layout.marginalBars.offset - l / T.value.maxX * e.value.style.layout.marginalBars.size,
|
|
625
639
|
width: n.value.width / V.value <= 0 ? 1e-4 : n.value.width / V.value,
|
|
626
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,
|
|
@@ -629,13 +643,13 @@ const Vt = ["id"], jt = ["xmlns", "viewBox"], Rt = ["width", "height"], Et = { k
|
|
|
629
643
|
stroke: e.value.style.backgroundColor,
|
|
630
644
|
"stroke-width": e.value.style.layout.marginalBars.strokeWidth,
|
|
631
645
|
rx: e.value.style.layout.marginalBars.borderRadius
|
|
632
|
-
}, null, 12,
|
|
646
|
+
}, null, 12, rl)) : c("", !0)
|
|
633
647
|
]))), 256)),
|
|
634
|
-
(
|
|
635
|
-
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", {
|
|
636
650
|
key: 0,
|
|
637
651
|
x: n.value.right + e.value.style.layout.marginalBars.offset,
|
|
638
|
-
y: T.value.avgY[
|
|
652
|
+
y: T.value.avgY[o] - n.value.height / V.value / 2,
|
|
639
653
|
height: n.value.height / V.value <= 0 ? 1e-4 : n.value.height / V.value,
|
|
640
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,
|
|
641
655
|
fill: e.value.style.layout.marginalBars.useGradient ? `url(#marginal_y_${S.value})` : e.value.style.layout.marginalBars.fill,
|
|
@@ -643,11 +657,11 @@ const Vt = ["id"], jt = ["xmlns", "viewBox"], Rt = ["width", "height"], Et = { k
|
|
|
643
657
|
stroke: e.value.style.backgroundColor,
|
|
644
658
|
"stroke-width": e.value.style.layout.marginalBars.strokeWidth,
|
|
645
659
|
rx: e.value.style.layout.marginalBars.borderRadius
|
|
646
|
-
}, null, 12,
|
|
660
|
+
}, null, 12, nl)) : c("", !0)
|
|
647
661
|
]))), 256)),
|
|
648
|
-
e.value.style.layout.marginalBars.showLines ? (
|
|
649
|
-
(
|
|
650
|
-
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", {
|
|
651
665
|
key: 0,
|
|
652
666
|
d: `M ${l.dX}`,
|
|
653
667
|
stroke: e.value.style.backgroundColor,
|
|
@@ -655,8 +669,8 @@ const Vt = ["id"], jt = ["xmlns", "viewBox"], Rt = ["width", "height"], Et = { k
|
|
|
655
669
|
"stroke-linecap": "round",
|
|
656
670
|
"stroke-linejoin": "round",
|
|
657
671
|
fill: "none"
|
|
658
|
-
}, null, 8,
|
|
659
|
-
x.value.includes(l.id) ? c("", !0) : (
|
|
672
|
+
}, null, 8, yl)),
|
|
673
|
+
x.value.includes(l.id) ? c("", !0) : (s(), r("path", {
|
|
660
674
|
key: 1,
|
|
661
675
|
d: `M ${l.dX}`,
|
|
662
676
|
stroke: l.color,
|
|
@@ -664,8 +678,8 @@ const Vt = ["id"], jt = ["xmlns", "viewBox"], Rt = ["width", "height"], Et = { k
|
|
|
664
678
|
"stroke-linecap": "round",
|
|
665
679
|
"stroke-linejoin": "round",
|
|
666
680
|
fill: "none"
|
|
667
|
-
}, null, 8,
|
|
668
|
-
x.value.includes(l.id) ? c("", !0) : (
|
|
681
|
+
}, null, 8, cl)),
|
|
682
|
+
x.value.includes(l.id) ? c("", !0) : (s(), r("path", {
|
|
669
683
|
key: 2,
|
|
670
684
|
d: `M ${l.dY}`,
|
|
671
685
|
stroke: e.value.style.backgroundColor,
|
|
@@ -673,8 +687,8 @@ const Vt = ["id"], jt = ["xmlns", "viewBox"], Rt = ["width", "height"], Et = { k
|
|
|
673
687
|
"stroke-linecap": "round",
|
|
674
688
|
"stroke-linejoin": "round",
|
|
675
689
|
fill: "none"
|
|
676
|
-
}, null, 8,
|
|
677
|
-
x.value.includes(l.id) ? c("", !0) : (
|
|
690
|
+
}, null, 8, dl)),
|
|
691
|
+
x.value.includes(l.id) ? c("", !0) : (s(), r("path", {
|
|
678
692
|
key: 3,
|
|
679
693
|
d: `M ${l.dY}`,
|
|
680
694
|
stroke: l.color,
|
|
@@ -682,11 +696,11 @@ const Vt = ["id"], jt = ["xmlns", "viewBox"], Rt = ["width", "height"], Et = { k
|
|
|
682
696
|
"stroke-linecap": "round",
|
|
683
697
|
"stroke-linejoin": "round",
|
|
684
698
|
fill: "none"
|
|
685
|
-
}, null, 8,
|
|
699
|
+
}, null, 8, hl))
|
|
686
700
|
], 64))), 256))
|
|
687
701
|
])) : c("", !0)
|
|
688
702
|
])) : c("", !0),
|
|
689
|
-
y.value && e.value.style.layout.plots.selectors.show ? (
|
|
703
|
+
y.value && e.value.style.layout.plots.selectors.show ? (s(), r("g", pl, [
|
|
690
704
|
d("line", {
|
|
691
705
|
x1: g.value.x,
|
|
692
706
|
x2: y.value.x,
|
|
@@ -697,7 +711,7 @@ const Vt = ["id"], jt = ["xmlns", "viewBox"], Rt = ["width", "height"], Et = { k
|
|
|
697
711
|
"stroke-dasharray": e.value.style.layout.plots.selectors.strokeDasharray,
|
|
698
712
|
"stroke-linecap": "round",
|
|
699
713
|
class: "line-pointer"
|
|
700
|
-
}, null, 8,
|
|
714
|
+
}, null, 8, fl),
|
|
701
715
|
d("line", {
|
|
702
716
|
x1: y.value.x,
|
|
703
717
|
x2: y.value.x,
|
|
@@ -708,7 +722,7 @@ const Vt = ["id"], jt = ["xmlns", "viewBox"], Rt = ["width", "height"], Et = { k
|
|
|
708
722
|
"stroke-dasharray": e.value.style.layout.plots.selectors.strokeDasharray,
|
|
709
723
|
"stroke-linecap": "round",
|
|
710
724
|
class: "line-pointer"
|
|
711
|
-
}, null, 8,
|
|
725
|
+
}, null, 8, gl),
|
|
712
726
|
d("text", {
|
|
713
727
|
x: g.value.x + (y.value.x > g.value.x ? -6 : 6),
|
|
714
728
|
y: y.value.y + e.value.style.layout.plots.selectors.labels.fontSize / 3,
|
|
@@ -716,7 +730,7 @@ const Vt = ["id"], jt = ["xmlns", "viewBox"], Rt = ["width", "height"], Et = { k
|
|
|
716
730
|
fill: e.value.style.layout.plots.selectors.labels.color,
|
|
717
731
|
"font-weight": e.value.style.layout.plots.selectors.labels.bold ? "bold" : "normal",
|
|
718
732
|
"text-anchor": y.value.x > g.value.x ? "end" : "start"
|
|
719
|
-
}, C(u(
|
|
733
|
+
}, C(u(U)(
|
|
720
734
|
e.value.style.layout.plots.selectors.labels.y.formatter,
|
|
721
735
|
u(A)(y.value.v.y),
|
|
722
736
|
u(F)({
|
|
@@ -726,7 +740,7 @@ const Vt = ["id"], jt = ["xmlns", "viewBox"], Rt = ["width", "height"], Et = { k
|
|
|
726
740
|
r: e.value.style.layout.plots.selectors.labels.rounding
|
|
727
741
|
}),
|
|
728
742
|
{ datapoint: y.value }
|
|
729
|
-
)), 9,
|
|
743
|
+
)), 9, ml),
|
|
730
744
|
d("text", {
|
|
731
745
|
x: y.value.x,
|
|
732
746
|
y: g.value.y + (y.value.y > g.value.y ? -6 : e.value.style.layout.plots.selectors.labels.fontSize + 6),
|
|
@@ -734,7 +748,7 @@ const Vt = ["id"], jt = ["xmlns", "viewBox"], Rt = ["width", "height"], Et = { k
|
|
|
734
748
|
fill: e.value.style.layout.plots.selectors.labels.color,
|
|
735
749
|
"font-weight": e.value.style.layout.plots.selectors.labels.bold ? "bold" : "normal",
|
|
736
750
|
"text-anchor": "middle"
|
|
737
|
-
}, C(u(
|
|
751
|
+
}, C(u(U)(
|
|
738
752
|
e.value.style.layout.plots.selectors.labels.y.formatter,
|
|
739
753
|
u(A)(y.value.v.x),
|
|
740
754
|
u(F)({
|
|
@@ -744,7 +758,7 @@ const Vt = ["id"], jt = ["xmlns", "viewBox"], Rt = ["width", "height"], Et = { k
|
|
|
744
758
|
r: e.value.style.layout.plots.selectors.labels.rounding
|
|
745
759
|
}),
|
|
746
760
|
{ datapoint: y.value }
|
|
747
|
-
)), 9,
|
|
761
|
+
)), 9, xl),
|
|
748
762
|
d("circle", {
|
|
749
763
|
cx: g.value.x,
|
|
750
764
|
cy: y.value.y,
|
|
@@ -753,7 +767,7 @@ const Vt = ["id"], jt = ["xmlns", "viewBox"], Rt = ["width", "height"], Et = { k
|
|
|
753
767
|
stroke: e.value.style.layout.plots.selectors.markers.stroke,
|
|
754
768
|
"stroke-width": e.value.style.layout.plots.selectors.markers.strokeWidth,
|
|
755
769
|
class: "line-pointer"
|
|
756
|
-
}, null, 8,
|
|
770
|
+
}, null, 8, bl),
|
|
757
771
|
d("circle", {
|
|
758
772
|
cx: y.value.x,
|
|
759
773
|
cy: g.value.y,
|
|
@@ -762,8 +776,8 @@ const Vt = ["id"], jt = ["xmlns", "viewBox"], Rt = ["width", "height"], Et = { k
|
|
|
762
776
|
stroke: e.value.style.layout.plots.selectors.markers.stroke,
|
|
763
777
|
"stroke-width": e.value.style.layout.plots.selectors.markers.strokeWidth,
|
|
764
778
|
class: "line-pointer"
|
|
765
|
-
}, null, 8,
|
|
766
|
-
e.value.style.layout.plots.selectors.labels.showName ? (
|
|
779
|
+
}, null, 8, kl),
|
|
780
|
+
e.value.style.layout.plots.selectors.labels.showName ? (s(), r("text", {
|
|
767
781
|
key: 0,
|
|
768
782
|
x: y.value.x,
|
|
769
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),
|
|
@@ -771,16 +785,16 @@ const Vt = ["id"], jt = ["xmlns", "viewBox"], Rt = ["width", "height"], Et = { k
|
|
|
771
785
|
fill: e.value.style.layout.plots.selectors.labels.color,
|
|
772
786
|
"font-weight": e.value.style.layout.plots.selectors.labels.bold ? "bold" : "normal",
|
|
773
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"
|
|
774
|
-
}, C(y.value.v.name), 9,
|
|
788
|
+
}, C(y.value.v.name), 9, wl)) : c("", !0)
|
|
775
789
|
])) : c("", !0),
|
|
776
|
-
e.value.style.layout.dataLabels.xAxis.show ? (
|
|
790
|
+
e.value.style.layout.dataLabels.xAxis.show ? (s(), r("g", _l, [
|
|
777
791
|
d("text", {
|
|
778
792
|
x: n.value.left - 5,
|
|
779
793
|
y: g.value.y + e.value.style.layout.dataLabels.xAxis.fontSize / 3,
|
|
780
794
|
"text-anchor": "end",
|
|
781
795
|
"font-size": e.value.style.layout.dataLabels.xAxis.fontSize,
|
|
782
796
|
fill: e.value.style.layout.dataLabels.xAxis.color
|
|
783
|
-
}, C(u(
|
|
797
|
+
}, C(u(U)(
|
|
784
798
|
e.value.style.layout.plots.selectors.labels.x.formatter,
|
|
785
799
|
u(A)(p.value.xMin),
|
|
786
800
|
u(F)({
|
|
@@ -789,14 +803,14 @@ const Vt = ["id"], jt = ["xmlns", "viewBox"], Rt = ["width", "height"], Et = { k
|
|
|
789
803
|
s: e.value.style.layout.plots.selectors.labels.suffix,
|
|
790
804
|
r: e.value.style.layout.dataLabels.xAxis.rounding
|
|
791
805
|
})
|
|
792
|
-
)), 9,
|
|
806
|
+
)), 9, Ml),
|
|
793
807
|
d("text", {
|
|
794
808
|
x: n.value.right + 3,
|
|
795
809
|
y: g.value.y + e.value.style.layout.dataLabels.xAxis.fontSize / 3,
|
|
796
810
|
"text-anchor": "start",
|
|
797
811
|
"font-size": e.value.style.layout.dataLabels.xAxis.fontSize,
|
|
798
812
|
fill: e.value.style.layout.dataLabels.xAxis.color
|
|
799
|
-
}, C(u(
|
|
813
|
+
}, C(u(U)(
|
|
800
814
|
e.value.style.layout.plots.selectors.labels.x.formatter,
|
|
801
815
|
u(A)(p.value.xMax),
|
|
802
816
|
u(F)({
|
|
@@ -805,7 +819,7 @@ const Vt = ["id"], jt = ["xmlns", "viewBox"], Rt = ["width", "height"], Et = { k
|
|
|
805
819
|
s: e.value.style.layout.plots.selectors.labels.suffix,
|
|
806
820
|
r: e.value.style.layout.dataLabels.xAxis.rounding
|
|
807
821
|
})
|
|
808
|
-
)), 9,
|
|
822
|
+
)), 9, $l),
|
|
809
823
|
d("text", {
|
|
810
824
|
id: `vue-ui-scatter-xAxis-label-${S.value}`,
|
|
811
825
|
transform: `translate(${e.value.style.layout.dataLabels.xAxis.fontSize * 2}, ${n.value.top + n.value.height / 2}), rotate(-90)`,
|
|
@@ -813,16 +827,16 @@ const Vt = ["id"], jt = ["xmlns", "viewBox"], Rt = ["width", "height"], Et = { k
|
|
|
813
827
|
"font-size": e.value.style.layout.dataLabels.xAxis.fontSize,
|
|
814
828
|
"font-weight": e.value.style.layout.dataLabels.xAxis.bold ? "bold" : "normal",
|
|
815
829
|
fill: e.value.style.layout.dataLabels.xAxis.color
|
|
816
|
-
}, C(e.value.style.layout.dataLabels.xAxis.name), 9,
|
|
830
|
+
}, C(e.value.style.layout.dataLabels.xAxis.name), 9, Cl)
|
|
817
831
|
])) : c("", !0),
|
|
818
|
-
e.value.style.layout.dataLabels.yAxis.show ? (
|
|
832
|
+
e.value.style.layout.dataLabels.yAxis.show ? (s(), r("g", Al, [
|
|
819
833
|
d("text", {
|
|
820
834
|
x: g.value.x,
|
|
821
835
|
y: n.value.bottom + e.value.style.layout.dataLabels.yAxis.fontSize + 3,
|
|
822
836
|
"text-anchor": "middle",
|
|
823
837
|
"font-size": e.value.style.layout.dataLabels.yAxis.fontSize,
|
|
824
838
|
fill: e.value.style.layout.dataLabels.yAxis.color
|
|
825
|
-
}, C(u(
|
|
839
|
+
}, C(u(U)(
|
|
826
840
|
e.value.style.layout.plots.selectors.labels.y.formatter,
|
|
827
841
|
u(A)(p.value.yMin),
|
|
828
842
|
u(F)({
|
|
@@ -831,14 +845,14 @@ const Vt = ["id"], jt = ["xmlns", "viewBox"], Rt = ["width", "height"], Et = { k
|
|
|
831
845
|
s: e.value.style.layout.plots.selectors.labels.suffix,
|
|
832
846
|
r: e.value.style.layout.dataLabels.yAxis.rounding
|
|
833
847
|
})
|
|
834
|
-
)), 9,
|
|
848
|
+
)), 9, Sl),
|
|
835
849
|
d("text", {
|
|
836
850
|
x: g.value.x,
|
|
837
851
|
y: n.value.top - e.value.style.layout.dataLabels.yAxis.fontSize / 2,
|
|
838
852
|
"text-anchor": "middle",
|
|
839
853
|
"font-size": e.value.style.layout.dataLabels.yAxis.fontSize,
|
|
840
854
|
fill: e.value.style.layout.dataLabels.yAxis.color
|
|
841
|
-
}, C(u(
|
|
855
|
+
}, C(u(U)(
|
|
842
856
|
e.value.style.layout.plots.selectors.labels.y.formatter,
|
|
843
857
|
u(A)(p.value.yMax),
|
|
844
858
|
u(F)({
|
|
@@ -847,7 +861,7 @@ const Vt = ["id"], jt = ["xmlns", "viewBox"], Rt = ["width", "height"], Et = { k
|
|
|
847
861
|
s: e.value.style.layout.plots.selectors.labels.suffix,
|
|
848
862
|
r: e.value.style.layout.dataLabels.yAxis.rounding
|
|
849
863
|
})
|
|
850
|
-
)), 9,
|
|
864
|
+
)), 9, zl),
|
|
851
865
|
d("text", {
|
|
852
866
|
"text-anchor": "middle",
|
|
853
867
|
"font-size": e.value.style.layout.dataLabels.yAxis.fontSize,
|
|
@@ -855,7 +869,7 @@ const Vt = ["id"], jt = ["xmlns", "viewBox"], Rt = ["width", "height"], Et = { k
|
|
|
855
869
|
fill: e.value.style.layout.dataLabels.yAxis.color,
|
|
856
870
|
x: n.value.left + n.value.width / 2,
|
|
857
871
|
y: n.value.bottom + 8 + e.value.style.layout.dataLabels.yAxis.fontSize * 2
|
|
858
|
-
}, C(e.value.style.layout.dataLabels.yAxis.name), 9,
|
|
872
|
+
}, C(e.value.style.layout.dataLabels.yAxis.name), 9, Tl)
|
|
859
873
|
])) : c("", !0),
|
|
860
874
|
d("clipPath", {
|
|
861
875
|
id: `clip_path_${S.value}`
|
|
@@ -865,10 +879,10 @@ const Vt = ["id"], jt = ["xmlns", "viewBox"], Rt = ["width", "height"], Et = { k
|
|
|
865
879
|
y: n.value.top,
|
|
866
880
|
width: n.value.width <= 0 ? 1e-4 : n.value.width,
|
|
867
881
|
height: n.value.height <= 0 ? 1e-4 : n.value.height
|
|
868
|
-
}, null, 8,
|
|
869
|
-
], 8,
|
|
870
|
-
e.value.style.layout.correlation.show ? (
|
|
871
|
-
(
|
|
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", {
|
|
872
886
|
x1: l.correlation.x1,
|
|
873
887
|
x2: l.correlation.x2,
|
|
874
888
|
y1: l.correlation.y1,
|
|
@@ -877,9 +891,9 @@ const Vt = ["id"], jt = ["xmlns", "viewBox"], Rt = ["width", "height"], Et = { k
|
|
|
877
891
|
stroke: l.color,
|
|
878
892
|
"stroke-width": e.value.style.layout.correlation.strokeWidth,
|
|
879
893
|
"clip-path": `url(#clip_path_${S.value})`
|
|
880
|
-
}, null, 8,
|
|
881
|
-
(
|
|
882
|
-
e.value.style.layout.correlation.label.show ? (
|
|
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", {
|
|
883
897
|
key: 0,
|
|
884
898
|
x: l.label.x,
|
|
885
899
|
y: l.label.y,
|
|
@@ -889,15 +903,15 @@ const Vt = ["id"], jt = ["xmlns", "viewBox"], Rt = ["width", "height"], Et = { k
|
|
|
889
903
|
}, C(u(F)({
|
|
890
904
|
v: u(A)(l.correlation.coefficient),
|
|
891
905
|
r: e.value.style.layout.correlation.label.roundingValue
|
|
892
|
-
})), 9,
|
|
906
|
+
})), 9, Pl)) : c("", !0)
|
|
893
907
|
]))), 256))
|
|
894
908
|
])) : c("", !0),
|
|
895
909
|
M(t.$slots, "svg", { svg: k.value }, void 0, !0)
|
|
896
|
-
], 14,
|
|
897
|
-
t.$slots.watermark ? (
|
|
898
|
-
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)
|
|
899
913
|
])) : c("", !0),
|
|
900
|
-
ae.value ? c("", !0) : (
|
|
914
|
+
ae.value ? c("", !0) : (s(), E(u(ot), {
|
|
901
915
|
key: 6,
|
|
902
916
|
config: {
|
|
903
917
|
type: "quadrant",
|
|
@@ -919,17 +933,17 @@ const Vt = ["id"], jt = ["xmlns", "viewBox"], Rt = ["width", "height"], Et = { k
|
|
|
919
933
|
ref_key: "chartLegend",
|
|
920
934
|
ref: we
|
|
921
935
|
}, [
|
|
922
|
-
e.value.style.legend.show ? (
|
|
936
|
+
e.value.style.legend.show ? (s(), E(Yt, {
|
|
923
937
|
key: `legend_${Ae.value}`,
|
|
924
938
|
legendSet: G.value,
|
|
925
|
-
config:
|
|
926
|
-
onClickMarker:
|
|
939
|
+
config: vt.value,
|
|
940
|
+
onClickMarker: i[0] || (i[0] = ({ legend: l }) => Re(l.id))
|
|
927
941
|
}, {
|
|
928
942
|
item: _(({ legend: l }) => [
|
|
929
943
|
d("div", {
|
|
930
|
-
onClick: (
|
|
944
|
+
onClick: (o) => l.segregate(),
|
|
931
945
|
style: j(`opacity:${x.value.includes(l.id) ? 0.5 : 1}`)
|
|
932
|
-
}, C(l.name), 13,
|
|
946
|
+
}, C(l.name), 13, Fl)
|
|
933
947
|
]),
|
|
934
948
|
_: 1
|
|
935
949
|
}, 8, ["legendSet", "config"])) : M(t.$slots, "legend", {
|
|
@@ -937,7 +951,7 @@ const Vt = ["id"], jt = ["xmlns", "viewBox"], Rt = ["width", "height"], Et = { k
|
|
|
937
951
|
legend: G.value
|
|
938
952
|
}, void 0, !0)
|
|
939
953
|
], 512),
|
|
940
|
-
t.$slots.source ? (
|
|
954
|
+
t.$slots.source ? (s(), r("div", {
|
|
941
955
|
key: 7,
|
|
942
956
|
ref_key: "source",
|
|
943
957
|
ref: _e,
|
|
@@ -945,8 +959,8 @@ const Vt = ["id"], jt = ["xmlns", "viewBox"], Rt = ["width", "height"], Et = { k
|
|
|
945
959
|
}, [
|
|
946
960
|
M(t.$slots, "source", {}, void 0, !0)
|
|
947
961
|
], 512)) : c("", !0),
|
|
948
|
-
ge(u(
|
|
949
|
-
show: O.value.showTooltip &&
|
|
962
|
+
ge(u(st), {
|
|
963
|
+
show: O.value.showTooltip && re.value,
|
|
950
964
|
backgroundColor: e.value.style.tooltip.backgroundColor,
|
|
951
965
|
color: e.value.style.tooltip.color,
|
|
952
966
|
borderRadius: e.value.style.tooltip.borderRadius,
|
|
@@ -956,21 +970,21 @@ const Vt = ["id"], jt = ["xmlns", "viewBox"], Rt = ["width", "height"], Et = { k
|
|
|
956
970
|
backgroundOpacity: e.value.style.tooltip.backgroundOpacity,
|
|
957
971
|
position: e.value.style.tooltip.position,
|
|
958
972
|
offsetY: e.value.style.tooltip.offsetY,
|
|
959
|
-
parent:
|
|
973
|
+
parent: D.value,
|
|
960
974
|
content: ne.value,
|
|
961
|
-
isFullscreen:
|
|
975
|
+
isFullscreen: Q.value,
|
|
962
976
|
isCustom: e.value.style.tooltip.customFormat && typeof e.value.style.tooltip.customFormat == "function"
|
|
963
977
|
}, {
|
|
964
978
|
"tooltip-before": _(() => [
|
|
965
|
-
M(t.$slots, "tooltip-before",
|
|
979
|
+
M(t.$slots, "tooltip-before", te(le({ ...ce.value })), void 0, !0)
|
|
966
980
|
]),
|
|
967
981
|
"tooltip-after": _(() => [
|
|
968
|
-
M(t.$slots, "tooltip-after",
|
|
982
|
+
M(t.$slots, "tooltip-after", te(le({ ...ce.value })), void 0, !0)
|
|
969
983
|
]),
|
|
970
984
|
default: _(() => [
|
|
971
|
-
e.value.style.tooltip.showShape ? (
|
|
972
|
-
(
|
|
973
|
-
ge(
|
|
985
|
+
e.value.style.tooltip.showShape ? (s(), r("div", Il, [
|
|
986
|
+
(s(), r("svg", Xl, [
|
|
987
|
+
ge(Je, {
|
|
974
988
|
shape: y.value.shape,
|
|
975
989
|
color: y.value.color,
|
|
976
990
|
plot: { x: 10, y: 10 },
|
|
@@ -981,7 +995,7 @@ const Vt = ["id"], jt = ["xmlns", "viewBox"], Rt = ["width", "height"], Et = { k
|
|
|
981
995
|
]),
|
|
982
996
|
_: 3
|
|
983
997
|
}, 8, ["show", "backgroundColor", "color", "borderRadius", "borderColor", "borderWidth", "fontSize", "backgroundOpacity", "position", "offsetY", "parent", "content", "isFullscreen", "isCustom"]),
|
|
984
|
-
ae.value ? (
|
|
998
|
+
ae.value ? (s(), E(u(et), {
|
|
985
999
|
key: 8,
|
|
986
1000
|
hideDetails: "",
|
|
987
1001
|
config: {
|
|
@@ -998,34 +1012,34 @@ const Vt = ["id"], jt = ["xmlns", "viewBox"], Rt = ["width", "height"], Et = { k
|
|
|
998
1012
|
}
|
|
999
1013
|
}, {
|
|
1000
1014
|
content: _(() => [
|
|
1001
|
-
(
|
|
1015
|
+
(s(), E(u(tt), {
|
|
1002
1016
|
key: `table_${Ce.value}`,
|
|
1003
1017
|
colNames: se.value.colNames,
|
|
1004
1018
|
head: se.value.head,
|
|
1005
1019
|
body: se.value.body,
|
|
1006
1020
|
config: se.value.config,
|
|
1007
1021
|
title: `${e.value.style.title.text}${e.value.style.title.subtitle.text ? ` : ${e.value.style.title.subtitle.text}` : ""}`,
|
|
1008
|
-
onClose:
|
|
1022
|
+
onClose: i[1] || (i[1] = (l) => O.value.showTable = !1)
|
|
1009
1023
|
}, {
|
|
1010
1024
|
th: _(({ th: l }) => [
|
|
1011
|
-
|
|
1025
|
+
mt(C(l), 1)
|
|
1012
1026
|
]),
|
|
1013
1027
|
td: _(({ td: l }) => [
|
|
1014
|
-
l.shape ? (
|
|
1028
|
+
l.shape ? (s(), r("div", Yl, [
|
|
1015
1029
|
d("span", null, C(l.content), 1)
|
|
1016
|
-
])) : (
|
|
1030
|
+
])) : (s(), r("div", {
|
|
1017
1031
|
key: 1,
|
|
1018
1032
|
innerHTML: l
|
|
1019
|
-
}, null, 8,
|
|
1033
|
+
}, null, 8, Dl))
|
|
1020
1034
|
]),
|
|
1021
1035
|
_: 1
|
|
1022
1036
|
}, 8, ["colNames", "head", "body", "config", "title"]))
|
|
1023
1037
|
]),
|
|
1024
1038
|
_: 1
|
|
1025
1039
|
}, 8, ["config"])) : c("", !0)
|
|
1026
|
-
], 46,
|
|
1040
|
+
], 46, jt));
|
|
1027
1041
|
}
|
|
1028
|
-
},
|
|
1042
|
+
}, ta = /* @__PURE__ */ Vt(Rl, [["__scopeId", "data-v-6b775119"]]);
|
|
1029
1043
|
export {
|
|
1030
|
-
|
|
1044
|
+
ta as default
|
|
1031
1045
|
};
|