vue-data-ui 2.12.7-beta.0 → 2.12.7-beta.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{Arrow-CmqjRRUl.js → Arrow-BhI2Y-DB.js} +1 -1
- package/dist/{BaseDraggableDialog-BMlyvt7E.js → BaseDraggableDialog-DyUBiw-C.js} +68 -64
- package/dist/{BaseIcon-CZdMutjs.js → BaseIcon-PZPlJOYf.js} +1 -1
- package/dist/{ColorPicker-DvVKgyAl.js → ColorPicker-Bni7kKI_.js} +2 -2
- package/dist/{DataTable-Cv9CIz-a.js → DataTable-bcUa-A_V.js} +2 -2
- package/dist/{Legend-DFunFf8i.js → Legend-iNd1Vv1J.js} +2 -2
- package/dist/{NonSvgPenAndPaper-pVuHj6_A.js → NonSvgPenAndPaper-DwB3JfsE.js} +3 -3
- package/dist/{PackageVersion-CLY-udAA.js → PackageVersion-BVH19wf6.js} +1 -1
- package/dist/{PenAndPaper-B9na2mbr.js → PenAndPaper-U4bWifCe.js} +3 -3
- package/dist/{Shape-D3w9qas1.js → Shape-CTyy5HJi.js} +1 -1
- package/dist/{Slicer-ncY8krrM.js → Slicer-hiaHGsme.js} +2 -2
- package/dist/{SparkTooltip-CwThutH2.js → SparkTooltip-oo_wqrT6.js} +1 -1
- package/dist/{Title-B5qqUI3M.js → Title-BTCPUIcD.js} +1 -1
- package/dist/{Tooltip-C9rxJ-Ru.js → Tooltip-B9AfUFVK.js} +1 -1
- package/dist/{UserOptions-Ddy6CuLC.js → UserOptions-yZJ8noVU.js} +1 -1
- package/dist/{dom-to-png-DDlooC9r.js → dom-to-png-BgRIWz9M.js} +1 -1
- package/dist/{img-m9g7lR5d.js → img-CgYxq-UP.js} +1 -1
- package/dist/{index-BiHmNd1-.js → index-CaxNz2cE.js} +1 -1
- package/dist/{pdf-BqM953uL.js → pdf-eUy0b_yU.js} +1 -1
- package/dist/style.css +1 -1
- package/dist/{useNestedProp-tRqS0ZAM.js → useNestedProp-DpK9-Xt0.js} +1 -1
- package/dist/{usePrinter-CRCbl1WG.js → usePrinter-BprQttno.js} +2 -2
- package/dist/{vue-data-ui-D9uTDt73.js → vue-data-ui-BkO9svuE.js} +63 -63
- package/dist/vue-data-ui.js +1 -1
- package/dist/{vue-ui-3d-bar-rtuSc8FS.js → vue-ui-3d-bar-Bft3k9wg.js} +5 -5
- package/dist/{vue-ui-accordion-CmCs2yR2.js → vue-ui-accordion-BZ16n4QT.js} +3 -3
- package/dist/{vue-ui-age-pyramid-BrzMSiyu.js → vue-ui-age-pyramid-BblPK5iv.js} +5 -5
- package/dist/{vue-ui-annotator-CYxmTpf6.js → vue-ui-annotator-DW3swnxO.js} +2 -2
- package/dist/{vue-ui-bullet-D25qNQfb.js → vue-ui-bullet-DybokJeh.js} +6 -6
- package/dist/{vue-ui-candlestick-BuerNa-r.js → vue-ui-candlestick-aXzuaWXT.js} +6 -6
- package/dist/{vue-ui-carousel-table-aN0HLsOO.js → vue-ui-carousel-table-D7_v27hl.js} +4 -4
- package/dist/{vue-ui-chestnut-oUj2ocsZ.js → vue-ui-chestnut-ClfPFRWK.js} +4 -4
- package/dist/{vue-ui-chord-C4evlXYB.js → vue-ui-chord-Clo2yN8x.js} +84 -83
- package/dist/{vue-ui-circle-pack-CWrNiKTY.js → vue-ui-circle-pack-B8JmpYZU.js} +5 -5
- package/dist/{vue-ui-cursor-DgpSttlt.js → vue-ui-cursor-1NiHT8ua.js} +2 -2
- package/dist/{vue-ui-dashboard-BN2ha1Eh.js → vue-ui-dashboard-Dqu8UHsY.js} +62 -62
- package/dist/{vue-ui-digits-BhjAxXgm.js → vue-ui-digits-CUtyrFQ-.js} +2 -2
- package/dist/{vue-ui-donut-D3_z61HI.js → vue-ui-donut-5_qG_tB0.js} +105 -104
- package/dist/{vue-ui-donut-evolution-oKtmZPx4.js → vue-ui-donut-evolution-1lYLTlUJ.js} +106 -104
- package/dist/{vue-ui-dumbbell-C8Lokx-F.js → vue-ui-dumbbell-CuwZfqp-.js} +6 -6
- package/dist/{vue-ui-flow-BVRkH0PS.js → vue-ui-flow-nxV5Lnel.js} +6 -6
- package/dist/{vue-ui-funnel-DFxcmAB5.js → vue-ui-funnel-tTYudPKX.js} +5 -5
- package/dist/{vue-ui-galaxy-CGE0hlBC.js → vue-ui-galaxy-CB7f2IrG.js} +4 -4
- package/dist/{vue-ui-gauge-B48eMvOR.js → vue-ui-gauge-C-GUoJrH.js} +5 -5
- package/dist/{vue-ui-gizmo-zTKNpjvv.js → vue-ui-gizmo-DJCYaqYy.js} +3 -3
- package/dist/{vue-ui-heatmap-UNfTt8SM.js → vue-ui-heatmap-Bbzq8KZx.js} +6 -6
- package/dist/{vue-ui-history-plot-CbCWmvtg.js → vue-ui-history-plot-B8-Tt_rt.js} +6 -6
- package/dist/{vue-ui-kpi-Drf_lrlh.js → vue-ui-kpi-VZWKmy4e.js} +3 -3
- package/dist/{vue-ui-mini-loader-DU3G6BVs.js → vue-ui-mini-loader-DzRSBGF2.js} +2 -2
- package/dist/{vue-ui-molecule-B5MOXYEA.js → vue-ui-molecule-Bd_c8Hcd.js} +4 -4
- package/dist/{vue-ui-mood-radar-CC_CVLvn.js → vue-ui-mood-radar-CjiJjcj8.js} +6 -6
- package/dist/{vue-ui-nested-donuts-D_H962kk.js → vue-ui-nested-donuts-CVhAGwOt.js} +6 -6
- package/dist/{vue-ui-onion-P8k6T724.js → vue-ui-onion-D9pp5ytM.js} +6 -6
- package/dist/{vue-ui-parallel-coordinate-plot-B5Los0vX.js → vue-ui-parallel-coordinate-plot-hOcz4qfM.js} +135 -134
- package/dist/{vue-ui-quadrant-B3wzCTxK.js → vue-ui-quadrant-Ht49w0AN.js} +119 -118
- package/dist/{vue-ui-quick-chart-oucj6hXk.js → vue-ui-quick-chart-SFe7EifM.js} +5 -5
- package/dist/{vue-ui-radar-Cjqlyu6d.js → vue-ui-radar-C1mc0XYY.js} +6 -6
- package/dist/{vue-ui-rating-gryk_h_6.js → vue-ui-rating-DVYexEqN.js} +2 -2
- package/dist/{vue-ui-relation-circle-ielvWC-1.js → vue-ui-relation-circle-CFkW0M7L.js} +5 -5
- package/dist/{vue-ui-ridgeline-Dydqo68b.js → vue-ui-ridgeline-DcOstg2I.js} +145 -142
- package/dist/{vue-ui-rings-BRBXektJ.js → vue-ui-rings-C56TMht1.js} +79 -78
- package/dist/{vue-ui-scatter-Df-BM7Ts.js → vue-ui-scatter-C2S6nsP6.js} +145 -144
- package/dist/{vue-ui-skeleton-CbYQYRvD.js → vue-ui-skeleton-C2paDc2u.js} +3 -3
- package/dist/{vue-ui-smiley-BfHaQMaW.js → vue-ui-smiley-gtVgClTv.js} +2 -2
- package/dist/{vue-ui-spark-trend-z3fUChs_.js → vue-ui-spark-trend-C_p-qgkO.js} +3 -3
- package/dist/{vue-ui-sparkbar-ChtFIugH.js → vue-ui-sparkbar-DIS3FVja.js} +3 -3
- package/dist/{vue-ui-sparkgauge-DtpODCww.js → vue-ui-sparkgauge-D92XnV3e.js} +3 -3
- package/dist/{vue-ui-sparkhistogram-C3XnYiXI.js → vue-ui-sparkhistogram-BQlf7QW3.js} +62 -61
- package/dist/{vue-ui-sparkline-CoL8jiX8.js → vue-ui-sparkline-C9vOtZav.js} +3 -3
- package/dist/{vue-ui-sparkstackbar-CYk3mZJH.js → vue-ui-sparkstackbar-B2G5fOpR.js} +3 -3
- package/dist/{vue-ui-stackbar-D9LGbuG5.js → vue-ui-stackbar-L_7f4pZj.js} +144 -143
- package/dist/{vue-ui-strip-plot-C5r1Ee2R.js → vue-ui-strip-plot-Dhj9PQvC.js} +136 -135
- package/dist/{vue-ui-table-DBaT_TfA.js → vue-ui-table-CZ1DXGtE.js} +3 -3
- package/dist/{vue-ui-table-heatmap-CYW4YfKN.js → vue-ui-table-heatmap-C8oJOBM-.js} +70 -69
- package/dist/{vue-ui-table-sparkline-Di0MYR4p.js → vue-ui-table-sparkline-D-ZfWmxu.js} +4 -4
- package/dist/{vue-ui-thermometer-BF1btHY2.js → vue-ui-thermometer-D7S49sXa.js} +5 -5
- package/dist/{vue-ui-timer-D9FfRWN5.js → vue-ui-timer-Bh_0k4fp.js} +5 -5
- package/dist/{vue-ui-tiremarks-CQ0lk8fJ.js → vue-ui-tiremarks-CQVFXHjo.js} +5 -5
- package/dist/{vue-ui-treemap-1Lx7YRtc.js → vue-ui-treemap-DshqhXXR.js} +7 -7
- package/dist/{vue-ui-vertical-bar-DdVVQ1ED.js → vue-ui-vertical-bar-64gS06ES.js} +145 -144
- package/dist/{vue-ui-waffle-BhnuPiRD.js → vue-ui-waffle-MjyNmQ85.js} +138 -137
- package/dist/{vue-ui-wheel-BIjJ0fg8.js → vue-ui-wheel-FzQbyvix.js} +5 -5
- package/dist/{vue-ui-word-cloud-3-r8HwO_.js → vue-ui-word-cloud-BHPSrRVK.js} +5 -5
- package/dist/{vue-ui-world-CPIGEswq.js → vue-ui-world-8UgjM7P9.js} +361 -360
- package/dist/{vue-ui-xy-9e_epIN4.js → vue-ui-xy-BbYuna1k.js} +16 -16
- package/dist/{vue-ui-xy-canvas-DcGgQ7s4.js → vue-ui-xy-canvas-CDNUpxZ5.js} +7 -7
- package/package.json +1 -1
|
@@ -1,17 +1,18 @@
|
|
|
1
|
-
import { defineAsyncComponent as
|
|
2
|
-
import { u as
|
|
1
|
+
import { defineAsyncComponent as H, computed as x, ref as h, watch as dt, shallowRef as Ue, onMounted as ht, onBeforeUnmount as pt, createElementBlock as i, openBlock as o, unref as u, normalizeStyle as V, normalizeClass as Ge, createBlock as j, createCommentVNode as c, createElementVNode as d, createVNode as ge, createSlots as ft, withCtx as _, renderSlot as M, normalizeProps as ee, guardReactiveProps as te, Fragment as P, renderList as X, toDisplayString as C, createTextVNode as gt, nextTick as mt } from "vue";
|
|
2
|
+
import { u as xt, c as bt, t as kt, p as J, a as wt, o as _t, e as me, b as Mt, g as qe, W as $t, a0 as Ct, U as At, X as zt, s as xe, Y as St, i as R, v as A, f as W, q as Tt, r as Lt, x as Bt, y as Ot } from "./index-CaxNz2cE.js";
|
|
3
3
|
import { t as Nt, u as Pt } from "./useResponsive-JZ9xq-JV.js";
|
|
4
|
-
import { u as
|
|
5
|
-
import { u as Wt } from "./usePrinter-
|
|
4
|
+
import { u as He } from "./useNestedProp-DpK9-Xt0.js";
|
|
5
|
+
import { u as Wt } from "./usePrinter-BprQttno.js";
|
|
6
6
|
import { u as Ft } from "./useUserOptionState-BIvW1Kz7.js";
|
|
7
7
|
import { u as It } from "./useChartAccessibility-9icAAmYg.js";
|
|
8
|
-
import Xt from "./Legend-
|
|
9
|
-
import Yt from "./Title-
|
|
8
|
+
import Xt from "./Legend-iNd1Vv1J.js";
|
|
9
|
+
import Yt from "./Title-BTCPUIcD.js";
|
|
10
|
+
import Je from "./Shape-CTyy5HJi.js";
|
|
10
11
|
import { _ as Dt } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
11
12
|
const Vt = ["id"], jt = ["xmlns", "viewBox"], Rt = ["width", "height"], Et = { key: 1 }, Ut = ["x1", "x2", "y1", "y2", "stroke", "stroke-width"], Gt = ["x1", "x2", "y1", "y2", "stroke", "stroke-width"], qt = { key: 2 }, Ht = ["points", "fill", "stroke-width", "stroke-dasharray", "stroke"], Jt = { key: 0 }, Kt = ["cx", "cy", "r", "fill", "stroke", "stroke-width", "onMouseover"], Qt = { key: 1 }, Zt = { key: 3 }, el = ["id"], tl = ["stop-color"], ll = ["stop-color"], al = ["id"], ol = ["stop-color"], sl = ["stop-color"], ul = ["x", "y", "width", "height", "fill", "stroke", "stroke-width", "rx"], rl = ["x", "y", "height", "width", "fill", "stroke", "stroke-width", "rx"], il = { key: 0 }, nl = ["d", "stroke", "stroke-width"], vl = ["d", "stroke", "stroke-width"], yl = ["d", "stroke", "stroke-width"], cl = ["d", "stroke", "stroke-width"], dl = {
|
|
12
13
|
key: 4,
|
|
13
14
|
style: { "pointer-events": "none !important" }
|
|
14
|
-
}, hl = ["x1", "x2", "y1", "y2", "stroke", "stroke-width", "stroke-dasharray"], pl = ["x1", "x2", "y1", "y2", "stroke", "stroke-width", "stroke-dasharray"], fl = ["x", "y", "font-size", "fill", "font-weight", "text-anchor"], gl = ["x", "y", "font-size", "fill", "font-weight"],
|
|
15
|
+
}, hl = ["x1", "x2", "y1", "y2", "stroke", "stroke-width", "stroke-dasharray"], pl = ["x1", "x2", "y1", "y2", "stroke", "stroke-width", "stroke-dasharray"], fl = ["x", "y", "font-size", "fill", "font-weight", "text-anchor"], gl = ["x", "y", "font-size", "fill", "font-weight"], ml = ["cx", "cy", "r", "fill", "stroke", "stroke-width"], xl = ["cx", "cy", "r", "fill", "stroke", "stroke-width"], bl = ["x", "y", "font-size", "fill", "font-weight", "text-anchor"], kl = { key: 5 }, wl = ["x", "y", "font-size", "fill"], _l = ["x", "y", "font-size", "fill"], Ml = ["id", "transform", "font-size", "font-weight", "fill"], $l = { key: 6 }, Cl = ["x", "y", "font-size", "fill"], Al = ["x", "y", "font-size", "fill"], zl = ["font-size", "font-weight", "fill", "x", "y"], Sl = ["id"], Tl = ["x", "y", "width", "height"], Ll = { key: 7 }, Bl = ["x1", "x2", "y1", "y2", "stroke-dasharray", "stroke", "stroke-width", "clip-path"], Ol = ["x", "y", "fill", "font-size", "font-weight"], Nl = {
|
|
15
16
|
key: 5,
|
|
16
17
|
class: "vue-data-ui-watermark"
|
|
17
18
|
}, Pl = ["onClick"], Wl = {
|
|
@@ -39,17 +40,17 @@ const Vt = ["id"], jt = ["xmlns", "viewBox"], Rt = ["width", "height"], Et = { k
|
|
|
39
40
|
}
|
|
40
41
|
},
|
|
41
42
|
setup(Ke, { expose: Qe }) {
|
|
42
|
-
const Ze =
|
|
43
|
-
get: () =>
|
|
43
|
+
const Ze = H(() => import("./vue-ui-accordion-BZ16n4QT.js")), et = H(() => import("./DataTable-bcUa-A_V.js")), tt = H(() => import("./PackageVersion-BVH19wf6.js")), lt = H(() => import("./PenAndPaper-U4bWifCe.js")), at = H(() => import("./vue-ui-skeleton-C2paDc2u.js")), ot = H(() => import("./Tooltip-B9AfUFVK.js")), st = H(() => import("./UserOptions-yZJ8noVU.js")), { vue_ui_scatter: ut } = xt(), F = Ke, ae = x(() => !!F.dataset && F.dataset.length), z = h(bt()), rt = h(null), ie = h(!1), ne = h(""), be = h(0), le = h(null), ke = h(null), we = h(null), _e = h(null), Me = h(null), $e = h(0), Ce = h(0), Ae = h(0), e = x({
|
|
44
|
+
get: () => Le(),
|
|
44
45
|
set: (t) => t
|
|
45
|
-
}), { userOptionsVisible: ve, setUserOptionsVisibility:
|
|
46
|
-
function
|
|
47
|
-
const t =
|
|
46
|
+
}), { userOptionsVisible: ve, setUserOptionsVisibility: ze, keepUserOptionState: Se } = Ft({ config: e.value }), { svgRef: Te } = It({ config: e.value.style.title });
|
|
47
|
+
function Le() {
|
|
48
|
+
const t = He({
|
|
48
49
|
userConfig: F.config,
|
|
49
50
|
defaultConfig: ut
|
|
50
51
|
});
|
|
51
52
|
return t.theme ? {
|
|
52
|
-
...
|
|
53
|
+
...He({
|
|
53
54
|
userConfig: wt.vue_ui_scatter[t.theme] || F.config,
|
|
54
55
|
defaultConfig: t
|
|
55
56
|
}),
|
|
@@ -57,24 +58,24 @@ const Vt = ["id"], jt = ["xmlns", "viewBox"], Rt = ["width", "height"], Et = { k
|
|
|
57
58
|
} : t;
|
|
58
59
|
}
|
|
59
60
|
dt(() => F.config, (t) => {
|
|
60
|
-
e.value =
|
|
61
|
+
e.value = Le(), ve.value = !e.value.userOptions.showOnChartHover, Be(), $e.value += 1, Ce.value += 1, Ae.value += 1, B.value.showTable = e.value.table.show, B.value.showTooltip = e.value.style.tooltip.show;
|
|
61
62
|
}, { deep: !0 });
|
|
62
|
-
const Y =
|
|
63
|
+
const Y = Ue(null), K = Ue(null);
|
|
63
64
|
ht(() => {
|
|
64
|
-
|
|
65
|
+
Be();
|
|
65
66
|
});
|
|
66
|
-
function
|
|
67
|
-
if (_t(F.dataset) &&
|
|
67
|
+
function Be() {
|
|
68
|
+
if (_t(F.dataset) && me({
|
|
68
69
|
componentName: "VueUiScatter",
|
|
69
70
|
type: "dataset"
|
|
70
71
|
}), e.value.responsive) {
|
|
71
72
|
const t = Nt(() => {
|
|
72
73
|
const { width: r, height: l } = Pt({
|
|
73
74
|
chart: le.value,
|
|
74
|
-
title: e.value.style.title.text ?
|
|
75
|
-
legend: e.value.style.legend.show ?
|
|
76
|
-
source:
|
|
77
|
-
noTitle:
|
|
75
|
+
title: e.value.style.title.text ? ke.value : null,
|
|
76
|
+
legend: e.value.style.legend.show ? we.value : null,
|
|
77
|
+
source: _e.value,
|
|
78
|
+
noTitle: Me.value
|
|
78
79
|
});
|
|
79
80
|
requestAnimationFrame(() => {
|
|
80
81
|
b.value.width = r, b.value.height = l;
|
|
@@ -86,55 +87,55 @@ const Vt = ["id"], jt = ["xmlns", "viewBox"], Rt = ["width", "height"], Et = { k
|
|
|
86
87
|
pt(() => {
|
|
87
88
|
Y.value && (K.value && Y.value.unobserve(K.value), Y.value.disconnect());
|
|
88
89
|
});
|
|
89
|
-
const { isPrinting:
|
|
90
|
+
const { isPrinting: Oe, isImaging: Ne, generatePdf: Pe, generateImage: We } = Wt({
|
|
90
91
|
elementId: `vue-ui-scatter_${z.value}`,
|
|
91
92
|
fileName: e.value.style.title.text || "vue-ui-scatter",
|
|
92
93
|
options: e.value.userOptions.print
|
|
93
|
-
}), it =
|
|
94
|
+
}), it = x(() => e.value.userOptions.show && !e.value.style.title.text), Fe = x(() => Mt(e.value.customPalette)), B = h({
|
|
94
95
|
showTable: e.value.table.show,
|
|
95
96
|
showTooltip: e.value.style.tooltip.show
|
|
96
97
|
}), b = h({
|
|
97
98
|
height: e.value.style.layout.height,
|
|
98
99
|
width: e.value.style.layout.width
|
|
99
|
-
}), oe =
|
|
100
|
+
}), oe = x(() => e.value.style.layout.marginalBars.show ? e.value.style.layout.marginalBars.size + e.value.style.layout.marginalBars.offset : 0), n = x(() => ({
|
|
100
101
|
top: e.value.style.layout.padding.top + oe.value,
|
|
101
102
|
right: b.value.width - e.value.style.layout.padding.right - oe.value,
|
|
102
103
|
bottom: b.value.height - e.value.style.layout.padding.bottom,
|
|
103
104
|
left: e.value.style.layout.padding.left,
|
|
104
105
|
height: b.value.height - e.value.style.layout.padding.top - e.value.style.layout.padding.bottom - oe.value,
|
|
105
106
|
width: b.value.width - e.value.style.layout.padding.left - e.value.style.layout.padding.right - oe.value
|
|
106
|
-
})), p =
|
|
107
|
+
})), p = x(() => {
|
|
107
108
|
F.dataset.forEach((a, v) => {
|
|
108
|
-
|
|
109
|
+
qe({
|
|
109
110
|
datasetObject: a,
|
|
110
111
|
requiredAttributes: ["values"]
|
|
111
112
|
}).forEach((k) => {
|
|
112
|
-
|
|
113
|
+
me({
|
|
113
114
|
componentName: "VueUiScatter",
|
|
114
115
|
type: "datasetSerieAttribute",
|
|
115
116
|
property: k,
|
|
116
117
|
index: v
|
|
117
118
|
});
|
|
118
|
-
}), a.values && a.values.forEach((k,
|
|
119
|
-
|
|
119
|
+
}), a.values && a.values.forEach((k, U) => {
|
|
120
|
+
qe({
|
|
120
121
|
datasetObject: k,
|
|
121
122
|
requiredAttributes: ["x", "y"]
|
|
122
123
|
}).forEach((Z) => {
|
|
123
|
-
|
|
124
|
+
me({
|
|
124
125
|
componentName: "VueUiScatter",
|
|
125
126
|
type: "datasetSerieAttribute",
|
|
126
127
|
property: `values.${Z}`,
|
|
127
|
-
index: `${v} - ${
|
|
128
|
+
index: `${v} - ${U}`
|
|
128
129
|
});
|
|
129
130
|
});
|
|
130
131
|
});
|
|
131
132
|
});
|
|
132
|
-
const t = Math.min(...
|
|
133
|
+
const t = Math.min(...E.value.filter((a) => !m.value.includes(a.id)).flatMap((a) => a.values.map((v) => v.x))), r = Math.max(...E.value.filter((a) => !m.value.includes(a.id)).flatMap((a) => a.values.map((v) => v.x))), l = Math.min(...E.value.filter((a) => !m.value.includes(a.id)).flatMap((a) => a.values.map((v) => v.y))), s = Math.max(...E.value.filter((a) => !m.value.includes(a.id)).flatMap((a) => a.values.map((v) => v.y)));
|
|
133
134
|
return { xMin: t >= 0 ? 0 : t, xMax: r, yMin: l >= 0 ? 0 : l, yMax: s };
|
|
134
|
-
}), f =
|
|
135
|
+
}), f = x(() => ({
|
|
135
136
|
x: n.value.left + Math.abs(p.value.xMin) / (p.value.xMax + Math.abs(p.value.xMin)) * n.value.width,
|
|
136
137
|
y: n.value.bottom - Math.abs(p.value.yMin) / (p.value.yMax + Math.abs(p.value.yMin)) * n.value.height
|
|
137
|
-
})),
|
|
138
|
+
})), E = x(() => F.dataset.map((t, r) => {
|
|
138
139
|
const l = `cluster_${z.value}_${r}`;
|
|
139
140
|
return {
|
|
140
141
|
...t,
|
|
@@ -143,20 +144,20 @@ const Vt = ["id"], jt = ["xmlns", "viewBox"], Rt = ["width", "height"], Et = { k
|
|
|
143
144
|
threshold: e.value.downsample.threshold
|
|
144
145
|
}),
|
|
145
146
|
id: l,
|
|
146
|
-
color: t.color ? t.color :
|
|
147
|
-
opacity:
|
|
147
|
+
color: t.color ? t.color : Fe.value[r] || J[r] || J[r % J.length],
|
|
148
|
+
opacity: m.value.includes(l) ? 0.5 : 1,
|
|
148
149
|
shape: t.shape ?? "circle",
|
|
149
|
-
segregate: () =>
|
|
150
|
-
isSegregated:
|
|
150
|
+
segregate: () => Ve(l),
|
|
151
|
+
isSegregated: m.value.includes(l)
|
|
151
152
|
};
|
|
152
|
-
})), nt =
|
|
153
|
+
})), nt = x(() => ({
|
|
153
154
|
cy: "scatter-div-legend",
|
|
154
155
|
backgroundColor: e.value.style.legend.backgroundColor,
|
|
155
156
|
color: e.value.style.legend.color,
|
|
156
157
|
fontSize: e.value.style.legend.fontSize,
|
|
157
158
|
paddingBottom: 12,
|
|
158
159
|
fontWeight: e.value.style.legend.bold ? "bold" : ""
|
|
159
|
-
})), ye =
|
|
160
|
+
})), ye = x(() => E.value.map((t, r) => ({
|
|
160
161
|
...t,
|
|
161
162
|
plots: t.values.map((l) => ({
|
|
162
163
|
x: n.value.left + (l.x + Math.abs(p.value.xMin)) / (p.value.xMax + Math.abs(p.value.xMin)) * n.value.width,
|
|
@@ -166,20 +167,20 @@ const Vt = ["id"], jt = ["xmlns", "viewBox"], Rt = ["width", "height"], Et = { k
|
|
|
166
167
|
name: l.name || ""
|
|
167
168
|
},
|
|
168
169
|
clusterName: t.name,
|
|
169
|
-
color: t.color ? t.color :
|
|
170
|
+
color: t.color ? t.color : Fe.value[r] || J[r] || J[r % J.length],
|
|
170
171
|
id: `plot_${z.value}_${Math.random()}`,
|
|
171
172
|
weight: l.weight ?? e.value.style.layout.plots.radius
|
|
172
173
|
}))
|
|
173
|
-
})).filter((t) => !
|
|
174
|
-
const r = t.plots.reduce((g,
|
|
174
|
+
})).filter((t) => !m.value.includes(t.id))), S = x(() => ye.value.map((t) => {
|
|
175
|
+
const r = t.plots.reduce((g, G) => g + G.x, 0) / t.plots.length, l = t.plots.reduce((g, G) => g + G.y, 0) / t.plots.length;
|
|
175
176
|
let s = 0, a = 0, v = 0;
|
|
176
177
|
for (const g of t.plots)
|
|
177
178
|
s += (g.x - r) * (g.y - l), a += (g.x - r) ** 2, v += (g.y - l) ** 2;
|
|
178
|
-
const k = s / Math.sqrt(a * v),
|
|
179
|
+
const k = s / Math.sqrt(a * v), U = k * (Math.sqrt(v) / Math.sqrt(a)), Z = l - U * r, N = {
|
|
179
180
|
x1: n.value.left,
|
|
180
181
|
x2: n.value.right,
|
|
181
|
-
y1:
|
|
182
|
-
y2:
|
|
182
|
+
y1: U * n.value.left + Z,
|
|
183
|
+
y2: U * n.value.right + Z,
|
|
183
184
|
coefficient: k
|
|
184
185
|
}, $ = (N.y2 - N.y1) / (N.x2 - N.x1), L = N.y1 - $ * N.x1, I = Math.min(b.value.width - e.value.style.layout.padding.right, Math.max(e.value.style.layout.padding.left, (n.value.top - L) / $)), re = {
|
|
185
186
|
x: I,
|
|
@@ -190,7 +191,7 @@ const Vt = ["id"], jt = ["xmlns", "viewBox"], Rt = ["width", "height"], Et = { k
|
|
|
190
191
|
correlation: N,
|
|
191
192
|
label: re,
|
|
192
193
|
plots: t.plots.map((g) => {
|
|
193
|
-
const
|
|
194
|
+
const G = (g.x + $ * g.y - $ * L) / (1 + Math.pow($, 2)), he = ($ * g.x + Math.pow($, 2) * g.y + L) / (1 + Math.pow($, 2)), w = Math.sqrt(Math.pow(g.x - G, 2) + Math.pow(g.y - he, 2));
|
|
194
195
|
return {
|
|
195
196
|
...g,
|
|
196
197
|
deviation: w,
|
|
@@ -199,37 +200,37 @@ const Vt = ["id"], jt = ["xmlns", "viewBox"], Rt = ["width", "height"], Et = { k
|
|
|
199
200
|
};
|
|
200
201
|
})
|
|
201
202
|
};
|
|
202
|
-
})),
|
|
203
|
+
})), Ie = x(() => Math.max(...S.value.flatMap((t) => t.plots.map((r) => Math.abs(r.deviation)))));
|
|
203
204
|
function vt() {
|
|
204
205
|
return S.value;
|
|
205
206
|
}
|
|
206
|
-
function
|
|
207
|
-
const l = Array.isArray(t) ? t.flatMap((w) => w.plots.map((
|
|
208
|
-
x:
|
|
209
|
-
y:
|
|
207
|
+
function Xe(t, r) {
|
|
208
|
+
const l = Array.isArray(t) ? t.flatMap((w) => w.plots.map((q) => ({
|
|
209
|
+
x: q.x,
|
|
210
|
+
y: q.y
|
|
210
211
|
}))) : t.plots.map((w) => ({
|
|
211
212
|
x: w.x,
|
|
212
213
|
y: w.y
|
|
213
214
|
}));
|
|
214
215
|
let s = 1 / 0, a = -1 / 0, v = 1 / 0, k = -1 / 0;
|
|
215
|
-
l.forEach(({ x: w, y:
|
|
216
|
-
s = Math.min(s, w), a = Math.max(a, w), v = Math.min(v,
|
|
216
|
+
l.forEach(({ x: w, y: q }) => {
|
|
217
|
+
s = Math.min(s, w), a = Math.max(a, w), v = Math.min(v, q), k = Math.max(k, q);
|
|
217
218
|
});
|
|
218
|
-
const
|
|
219
|
-
l.forEach(({ x: w, y:
|
|
220
|
-
const pe = Math.floor((w - s) / N), fe = Math.floor((
|
|
219
|
+
const U = a - s, Z = k - v, N = U / r, $ = Z / r, L = Array(r).fill(0), I = Array(r).fill(0);
|
|
220
|
+
l.forEach(({ x: w, y: q }) => {
|
|
221
|
+
const pe = Math.floor((w - s) / N), fe = Math.floor((q - v) / $);
|
|
221
222
|
L[pe] || (L[pe] = 0), I[fe] || (I[fe] = 0), L[pe] += 1, I[fe] += 1;
|
|
222
223
|
});
|
|
223
224
|
const re = [], g = [];
|
|
224
225
|
for (let w = 0; w < r; w += 1)
|
|
225
226
|
re.push(s + (w + 0.5) * N), g.push(v + (w + 0.5) * $);
|
|
226
|
-
const
|
|
227
|
-
return { x: L, y: I, avgX: re, avgY: g, maxX:
|
|
227
|
+
const G = Math.max(...L), he = Math.max(...I);
|
|
228
|
+
return { x: L, y: I, avgX: re, avgY: g, maxX: G, maxY: he };
|
|
228
229
|
}
|
|
229
|
-
const D =
|
|
230
|
+
const D = x(() => e.value.style.layout.marginalBars.tranches), T = x(() => Xe(ye.value, D.value)), yt = x(() => {
|
|
230
231
|
const t = n.value.top - e.value.style.layout.marginalBars.offset, r = n.value.right + e.value.style.layout.marginalBars.offset;
|
|
231
232
|
return ye.value.map((l) => {
|
|
232
|
-
const s =
|
|
233
|
+
const s = Xe(l, D.value);
|
|
233
234
|
return {
|
|
234
235
|
coords: s,
|
|
235
236
|
dX: At(s.avgX.map((a, v) => ({
|
|
@@ -245,7 +246,7 @@ const Vt = ["id"], jt = ["xmlns", "viewBox"], Rt = ["width", "height"], Et = { k
|
|
|
245
246
|
};
|
|
246
247
|
});
|
|
247
248
|
}), O = h(void 0), y = h(null), ce = h(null);
|
|
248
|
-
function
|
|
249
|
+
function Ye(t, r) {
|
|
249
250
|
O.value = t.id, y.value = t;
|
|
250
251
|
let l = "";
|
|
251
252
|
ce.value = {
|
|
@@ -265,7 +266,7 @@ const Vt = ["id"], jt = ["xmlns", "viewBox"], Rt = ["width", "height"], Et = { k
|
|
|
265
266
|
seriesIndex: r,
|
|
266
267
|
series: S.value,
|
|
267
268
|
config: e.value
|
|
268
|
-
}) : (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) ? "-" :
|
|
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) ? "-" : R(
|
|
269
270
|
e.value.style.layout.plots.selectors.labels.x.formatter,
|
|
270
271
|
t.v.x,
|
|
271
272
|
W({
|
|
@@ -275,7 +276,7 @@ const Vt = ["id"], jt = ["xmlns", "viewBox"], Rt = ["width", "height"], Et = { k
|
|
|
275
276
|
r: e.value.style.tooltip.roundingValue
|
|
276
277
|
}),
|
|
277
278
|
{ datapoint: t, seriesIndex: r }
|
|
278
|
-
)}</b></div>`, l += `<div>${e.value.style.layout.dataLabels.yAxis.name}: <b>${isNaN(t.v.y) ? "-" :
|
|
279
|
+
)}</b></div>`, l += `<div>${e.value.style.layout.dataLabels.yAxis.name}: <b>${isNaN(t.v.y) ? "-" : R(
|
|
279
280
|
e.value.style.layout.plots.selectors.labels.y.formatter,
|
|
280
281
|
t.v.y,
|
|
281
282
|
W({
|
|
@@ -290,15 +291,15 @@ const Vt = ["id"], jt = ["xmlns", "viewBox"], Rt = ["width", "height"], Et = { k
|
|
|
290
291
|
r: e.value.style.layout.plots.deviation.roundingValue
|
|
291
292
|
})}</b>`, l += "</div>", ne.value = `<div>${l}</div>`), ie.value = !0;
|
|
292
293
|
}
|
|
293
|
-
function
|
|
294
|
+
function De() {
|
|
294
295
|
ie.value = !1, O.value = void 0, y.value = null;
|
|
295
296
|
}
|
|
296
|
-
const
|
|
297
|
-
function
|
|
298
|
-
|
|
297
|
+
const m = h([]);
|
|
298
|
+
function Ve(t) {
|
|
299
|
+
m.value.includes(t) ? m.value = m.value.filter((r) => r !== t) : m.value.length < F.dataset.length - 1 && m.value.push(t);
|
|
299
300
|
}
|
|
300
|
-
function
|
|
301
|
-
|
|
301
|
+
function je() {
|
|
302
|
+
mt(() => {
|
|
302
303
|
const t = ["", 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}`], r = S.value.map((a) => [
|
|
303
304
|
a.name,
|
|
304
305
|
a.correlation.coefficient,
|
|
@@ -309,7 +310,7 @@ const Vt = ["id"], jt = ["xmlns", "viewBox"], Rt = ["width", "height"], Et = { k
|
|
|
309
310
|
Lt({ csvContent: s, title: e.value.style.title.text || "vue-ui-heatmap" });
|
|
310
311
|
});
|
|
311
312
|
}
|
|
312
|
-
const se =
|
|
313
|
+
const se = x(() => {
|
|
313
314
|
const t = [
|
|
314
315
|
e.value.table.translations.series,
|
|
315
316
|
e.value.table.translations.correlationCoefficient,
|
|
@@ -342,12 +343,12 @@ const Vt = ["id"], jt = ["xmlns", "viewBox"], Rt = ["width", "height"], Et = { k
|
|
|
342
343
|
return { head: t, body: r, config: l, colNames: t };
|
|
343
344
|
}), Q = h(!1);
|
|
344
345
|
function ct(t) {
|
|
345
|
-
Q.value = t,
|
|
346
|
+
Q.value = t, be.value += 1;
|
|
346
347
|
}
|
|
347
|
-
function
|
|
348
|
+
function Re() {
|
|
348
349
|
B.value.showTable = !B.value.showTable;
|
|
349
350
|
}
|
|
350
|
-
function
|
|
351
|
+
function Ee() {
|
|
351
352
|
B.value.showTooltip = !B.value.showTooltip;
|
|
352
353
|
}
|
|
353
354
|
const ue = h(!1);
|
|
@@ -356,24 +357,24 @@ const Vt = ["id"], jt = ["xmlns", "viewBox"], Rt = ["width", "height"], Et = { k
|
|
|
356
357
|
}
|
|
357
358
|
return Qe({
|
|
358
359
|
getData: vt,
|
|
359
|
-
generatePdf:
|
|
360
|
-
generateCsv:
|
|
361
|
-
generateImage:
|
|
362
|
-
toggleTable:
|
|
363
|
-
toggleTooltip:
|
|
360
|
+
generatePdf: Pe,
|
|
361
|
+
generateCsv: je,
|
|
362
|
+
generateImage: We,
|
|
363
|
+
toggleTable: Re,
|
|
364
|
+
toggleTooltip: Ee,
|
|
364
365
|
toggleAnnotator: de
|
|
365
366
|
}), (t, r) => (o(), i("div", {
|
|
366
|
-
class:
|
|
367
|
+
class: Ge(`vue-ui-scatter ${Q.value ? "vue-data-ui-wrapper-fullscreen" : ""} ${e.value.useCssAnimation ? "" : "vue-ui-dna"}`),
|
|
367
368
|
ref_key: "scatterChart",
|
|
368
369
|
ref: le,
|
|
369
370
|
id: `vue-ui-scatter_${z.value}`,
|
|
370
|
-
style:
|
|
371
|
-
onMouseenter: r[2] || (r[2] = () => u(
|
|
372
|
-
onMouseleave: r[3] || (r[3] = () => u(
|
|
371
|
+
style: V(`font-family:${e.value.style.fontFamily};width:100%; text-align:center;background:${e.value.style.backgroundColor};${e.value.responsive ? "height: 100%" : ""}`),
|
|
372
|
+
onMouseenter: r[2] || (r[2] = () => u(ze)(!0)),
|
|
373
|
+
onMouseleave: r[3] || (r[3] = () => u(ze)(!1))
|
|
373
374
|
}, [
|
|
374
|
-
e.value.userOptions.buttons.annotator ? (o(),
|
|
375
|
+
e.value.userOptions.buttons.annotator ? (o(), j(u(lt), {
|
|
375
376
|
key: 0,
|
|
376
|
-
svgRef: u(
|
|
377
|
+
svgRef: u(Te),
|
|
377
378
|
backgroundColor: e.value.style.backgroundColor,
|
|
378
379
|
color: e.value.style.color,
|
|
379
380
|
active: ue.value,
|
|
@@ -382,18 +383,18 @@ const Vt = ["id"], jt = ["xmlns", "viewBox"], Rt = ["width", "height"], Et = { k
|
|
|
382
383
|
it.value ? (o(), i("div", {
|
|
383
384
|
key: 1,
|
|
384
385
|
ref_key: "noTitle",
|
|
385
|
-
ref:
|
|
386
|
+
ref: Me,
|
|
386
387
|
class: "vue-data-ui-no-title-space",
|
|
387
388
|
style: "height:36px; width: 100%;background:transparent"
|
|
388
389
|
}, null, 512)) : c("", !0),
|
|
389
390
|
e.value.style.title.text ? (o(), i("div", {
|
|
390
391
|
key: 2,
|
|
391
392
|
ref_key: "chartTitle",
|
|
392
|
-
ref:
|
|
393
|
+
ref: ke,
|
|
393
394
|
style: "width:100%;background:transparent"
|
|
394
395
|
}, [
|
|
395
|
-
(o(),
|
|
396
|
-
key: `title_${
|
|
396
|
+
(o(), j(Yt, {
|
|
397
|
+
key: `title_${$e.value}`,
|
|
397
398
|
config: {
|
|
398
399
|
title: {
|
|
399
400
|
cy: "scatter-div-title",
|
|
@@ -406,14 +407,14 @@ const Vt = ["id"], jt = ["xmlns", "viewBox"], Rt = ["width", "height"], Et = { k
|
|
|
406
407
|
}
|
|
407
408
|
}, null, 8, ["config"]))
|
|
408
409
|
], 512)) : c("", !0),
|
|
409
|
-
e.value.userOptions.show && ae.value && (u(
|
|
410
|
+
e.value.userOptions.show && ae.value && (u(Se) || u(ve)) ? (o(), j(u(st), {
|
|
410
411
|
ref_key: "details",
|
|
411
412
|
ref: rt,
|
|
412
|
-
key: `user_options_${
|
|
413
|
+
key: `user_options_${be.value}`,
|
|
413
414
|
backgroundColor: e.value.style.backgroundColor,
|
|
414
415
|
color: e.value.style.color,
|
|
415
|
-
isImaging: u(
|
|
416
|
-
isPrinting: u(
|
|
416
|
+
isImaging: u(Ne),
|
|
417
|
+
isPrinting: u(Oe),
|
|
417
418
|
uid: z.value,
|
|
418
419
|
hasTooltip: e.value.userOptions.buttons.tooltip && e.value.style.tooltip.show,
|
|
419
420
|
hasPdf: e.value.userOptions.buttons.pdf,
|
|
@@ -429,14 +430,14 @@ const Vt = ["id"], jt = ["xmlns", "viewBox"], Rt = ["width", "height"], Et = { k
|
|
|
429
430
|
hasAnnotator: e.value.userOptions.buttons.annotator,
|
|
430
431
|
isAnnotation: ue.value,
|
|
431
432
|
onToggleFullscreen: ct,
|
|
432
|
-
onGeneratePdf: u(
|
|
433
|
-
onGenerateCsv:
|
|
434
|
-
onGenerateImage: u(
|
|
435
|
-
onToggleTable:
|
|
436
|
-
onToggleTooltip:
|
|
433
|
+
onGeneratePdf: u(Pe),
|
|
434
|
+
onGenerateCsv: je,
|
|
435
|
+
onGenerateImage: u(We),
|
|
436
|
+
onToggleTable: Re,
|
|
437
|
+
onToggleTooltip: Ee,
|
|
437
438
|
onToggleAnnotator: de,
|
|
438
|
-
style:
|
|
439
|
-
visibility: u(
|
|
439
|
+
style: V({
|
|
440
|
+
visibility: u(Se) ? u(ve) ? "visible" : "hidden" : "visible"
|
|
440
441
|
})
|
|
441
442
|
}, ft({ _: 2 }, [
|
|
442
443
|
t.$slots.menuIcon ? {
|
|
@@ -499,11 +500,11 @@ const Vt = ["id"], jt = ["xmlns", "viewBox"], Rt = ["width", "height"], Et = { k
|
|
|
499
500
|
ae.value ? (o(), i("svg", {
|
|
500
501
|
key: 4,
|
|
501
502
|
ref_key: "svgRef",
|
|
502
|
-
ref:
|
|
503
|
+
ref: Te,
|
|
503
504
|
xmlns: u(zt),
|
|
504
|
-
class:
|
|
505
|
+
class: Ge({ "vue-data-ui-fullscreen--on": Q.value, "vue-data-ui-fulscreen--off": !Q.value }),
|
|
505
506
|
viewBox: `0 0 ${b.value.width <= 0 ? 10 : b.value.width} ${b.value.height <= 0 ? 10 : b.value.height}`,
|
|
506
|
-
style:
|
|
507
|
+
style: V(`max-width:100%;overflow:visible;background:transparent;color:${e.value.style.color}`)
|
|
507
508
|
}, [
|
|
508
509
|
ge(u(tt)),
|
|
509
510
|
t.$slots["chart-background"] ? (o(), i("foreignObject", {
|
|
@@ -543,7 +544,7 @@ const Vt = ["id"], jt = ["xmlns", "viewBox"], Rt = ["width", "height"], Et = { k
|
|
|
543
544
|
l.plots.length > 2 ? (o(), i("polygon", {
|
|
544
545
|
key: 0,
|
|
545
546
|
points: u(St)({ series: l.plots }),
|
|
546
|
-
fill: u(
|
|
547
|
+
fill: u(xe)(l.color, e.value.style.layout.plots.giftWrap.fillOpacity * 100),
|
|
547
548
|
"stroke-width": e.value.style.layout.plots.giftWrap.strokeWidth,
|
|
548
549
|
"stroke-dasharray": e.value.style.layout.plots.giftWrap.strokeDasharray,
|
|
549
550
|
stroke: l.color,
|
|
@@ -558,24 +559,24 @@ const Vt = ["id"], jt = ["xmlns", "viewBox"], Rt = ["width", "height"], Et = { k
|
|
|
558
559
|
cx: a.x,
|
|
559
560
|
cy: a.y,
|
|
560
561
|
r: O.value && O.value === a.id ? a.weight * 2 : a.weight,
|
|
561
|
-
fill: u(
|
|
562
|
+
fill: u(xe)(l.color, e.value.style.layout.plots.opacity * 100),
|
|
562
563
|
stroke: e.value.style.layout.plots.stroke,
|
|
563
564
|
"stroke-width": e.value.style.layout.plots.strokeWidth,
|
|
564
|
-
onMouseover: (k) =>
|
|
565
|
-
onMouseleave:
|
|
566
|
-
style:
|
|
565
|
+
onMouseover: (k) => Ye(a, s),
|
|
566
|
+
onMouseleave: De,
|
|
567
|
+
style: V(`opacity:${O.value && O.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}`)
|
|
567
568
|
}, null, 44, Kt))), 256))
|
|
568
569
|
])) : (o(), i("g", Qt, [
|
|
569
|
-
(o(!0), i(P, null, X(l.plots, (a, v) => (o(),
|
|
570
|
+
(o(!0), i(P, null, X(l.plots, (a, v) => (o(), j(Je, {
|
|
570
571
|
plot: { x: a.x, y: a.y },
|
|
571
572
|
radius: O.value && O.value === a.id ? a.weight * 2 : a.weight,
|
|
572
573
|
shape: l.shape,
|
|
573
|
-
color: u(
|
|
574
|
+
color: u(xe)(l.color, e.value.style.layout.plots.opacity * 100),
|
|
574
575
|
stroke: e.value.style.layout.plots.stroke,
|
|
575
576
|
strokeWidth: e.value.style.layout.plots.strokeWidth,
|
|
576
|
-
onMouseover: (k) =>
|
|
577
|
-
onMouseleave:
|
|
578
|
-
style:
|
|
577
|
+
onMouseover: (k) => Ye(a, s),
|
|
578
|
+
onMouseleave: De,
|
|
579
|
+
style: V(`opacity:${O.value && O.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}`)
|
|
579
580
|
}, null, 8, ["plot", "radius", "shape", "color", "stroke", "strokeWidth", "onMouseover", "style"]))), 256))
|
|
580
581
|
]))
|
|
581
582
|
]))), 256)),
|
|
@@ -622,7 +623,7 @@ const Vt = ["id"], jt = ["xmlns", "viewBox"], Rt = ["width", "height"], Et = { k
|
|
|
622
623
|
width: n.value.width / D.value <= 0 ? 1e-4 : n.value.width / D.value,
|
|
623
624
|
height: l / T.value.maxX * e.value.style.layout.marginalBars.size <= 0 ? 1e-4 : l / T.value.maxX * e.value.style.layout.marginalBars.size,
|
|
624
625
|
fill: e.value.style.layout.marginalBars.useGradient ? `url(#marginal_x_${z.value})` : e.value.style.layout.marginalBars.fill,
|
|
625
|
-
style:
|
|
626
|
+
style: V(`opacity:${e.value.style.layout.marginalBars.opacity}`),
|
|
626
627
|
stroke: e.value.style.backgroundColor,
|
|
627
628
|
"stroke-width": e.value.style.layout.marginalBars.strokeWidth,
|
|
628
629
|
rx: e.value.style.layout.marginalBars.borderRadius
|
|
@@ -636,7 +637,7 @@ const Vt = ["id"], jt = ["xmlns", "viewBox"], Rt = ["width", "height"], Et = { k
|
|
|
636
637
|
height: n.value.height / D.value <= 0 ? 1e-4 : n.value.height / D.value,
|
|
637
638
|
width: l / T.value.maxY * e.value.style.layout.marginalBars.size <= 0 ? 1e-4 : l / T.value.maxY * e.value.style.layout.marginalBars.size,
|
|
638
639
|
fill: e.value.style.layout.marginalBars.useGradient ? `url(#marginal_y_${z.value})` : e.value.style.layout.marginalBars.fill,
|
|
639
|
-
style:
|
|
640
|
+
style: V(`opacity:${e.value.style.layout.marginalBars.opacity}`),
|
|
640
641
|
stroke: e.value.style.backgroundColor,
|
|
641
642
|
"stroke-width": e.value.style.layout.marginalBars.strokeWidth,
|
|
642
643
|
rx: e.value.style.layout.marginalBars.borderRadius
|
|
@@ -644,7 +645,7 @@ const Vt = ["id"], jt = ["xmlns", "viewBox"], Rt = ["width", "height"], Et = { k
|
|
|
644
645
|
]))), 256)),
|
|
645
646
|
e.value.style.layout.marginalBars.showLines ? (o(), i("g", il, [
|
|
646
647
|
(o(!0), i(P, null, X(yt.value, (l) => (o(), i(P, null, [
|
|
647
|
-
|
|
648
|
+
m.value.includes(l.id) ? c("", !0) : (o(), i("path", {
|
|
648
649
|
key: 0,
|
|
649
650
|
d: `M ${l.dX}`,
|
|
650
651
|
stroke: e.value.style.backgroundColor,
|
|
@@ -653,7 +654,7 @@ const Vt = ["id"], jt = ["xmlns", "viewBox"], Rt = ["width", "height"], Et = { k
|
|
|
653
654
|
"stroke-linejoin": "round",
|
|
654
655
|
fill: "none"
|
|
655
656
|
}, null, 8, nl)),
|
|
656
|
-
|
|
657
|
+
m.value.includes(l.id) ? c("", !0) : (o(), i("path", {
|
|
657
658
|
key: 1,
|
|
658
659
|
d: `M ${l.dX}`,
|
|
659
660
|
stroke: l.color,
|
|
@@ -662,7 +663,7 @@ const Vt = ["id"], jt = ["xmlns", "viewBox"], Rt = ["width", "height"], Et = { k
|
|
|
662
663
|
"stroke-linejoin": "round",
|
|
663
664
|
fill: "none"
|
|
664
665
|
}, null, 8, vl)),
|
|
665
|
-
|
|
666
|
+
m.value.includes(l.id) ? c("", !0) : (o(), i("path", {
|
|
666
667
|
key: 2,
|
|
667
668
|
d: `M ${l.dY}`,
|
|
668
669
|
stroke: e.value.style.backgroundColor,
|
|
@@ -671,7 +672,7 @@ const Vt = ["id"], jt = ["xmlns", "viewBox"], Rt = ["width", "height"], Et = { k
|
|
|
671
672
|
"stroke-linejoin": "round",
|
|
672
673
|
fill: "none"
|
|
673
674
|
}, null, 8, yl)),
|
|
674
|
-
|
|
675
|
+
m.value.includes(l.id) ? c("", !0) : (o(), i("path", {
|
|
675
676
|
key: 3,
|
|
676
677
|
d: `M ${l.dY}`,
|
|
677
678
|
stroke: l.color,
|
|
@@ -713,7 +714,7 @@ const Vt = ["id"], jt = ["xmlns", "viewBox"], Rt = ["width", "height"], Et = { k
|
|
|
713
714
|
fill: e.value.style.layout.plots.selectors.labels.color,
|
|
714
715
|
"font-weight": e.value.style.layout.plots.selectors.labels.bold ? "bold" : "normal",
|
|
715
716
|
"text-anchor": y.value.x > f.value.x ? "end" : "start"
|
|
716
|
-
}, C(u(
|
|
717
|
+
}, C(u(R)(
|
|
717
718
|
e.value.style.layout.plots.selectors.labels.y.formatter,
|
|
718
719
|
u(A)(y.value.v.y),
|
|
719
720
|
u(W)({
|
|
@@ -731,7 +732,7 @@ const Vt = ["id"], jt = ["xmlns", "viewBox"], Rt = ["width", "height"], Et = { k
|
|
|
731
732
|
fill: e.value.style.layout.plots.selectors.labels.color,
|
|
732
733
|
"font-weight": e.value.style.layout.plots.selectors.labels.bold ? "bold" : "normal",
|
|
733
734
|
"text-anchor": "middle"
|
|
734
|
-
}, C(u(
|
|
735
|
+
}, C(u(R)(
|
|
735
736
|
e.value.style.layout.plots.selectors.labels.y.formatter,
|
|
736
737
|
u(A)(y.value.v.x),
|
|
737
738
|
u(W)({
|
|
@@ -750,7 +751,7 @@ const Vt = ["id"], jt = ["xmlns", "viewBox"], Rt = ["width", "height"], Et = { k
|
|
|
750
751
|
stroke: e.value.style.layout.plots.selectors.markers.stroke,
|
|
751
752
|
"stroke-width": e.value.style.layout.plots.selectors.markers.strokeWidth,
|
|
752
753
|
class: "line-pointer"
|
|
753
|
-
}, null, 8,
|
|
754
|
+
}, null, 8, ml),
|
|
754
755
|
d("circle", {
|
|
755
756
|
cx: y.value.x,
|
|
756
757
|
cy: f.value.y,
|
|
@@ -759,7 +760,7 @@ const Vt = ["id"], jt = ["xmlns", "viewBox"], Rt = ["width", "height"], Et = { k
|
|
|
759
760
|
stroke: e.value.style.layout.plots.selectors.markers.stroke,
|
|
760
761
|
"stroke-width": e.value.style.layout.plots.selectors.markers.strokeWidth,
|
|
761
762
|
class: "line-pointer"
|
|
762
|
-
}, null, 8,
|
|
763
|
+
}, null, 8, xl),
|
|
763
764
|
e.value.style.layout.plots.selectors.labels.showName ? (o(), i("text", {
|
|
764
765
|
key: 0,
|
|
765
766
|
x: y.value.x,
|
|
@@ -777,7 +778,7 @@ const Vt = ["id"], jt = ["xmlns", "viewBox"], Rt = ["width", "height"], Et = { k
|
|
|
777
778
|
"text-anchor": "end",
|
|
778
779
|
"font-size": e.value.style.layout.dataLabels.xAxis.fontSize,
|
|
779
780
|
fill: e.value.style.layout.dataLabels.xAxis.color
|
|
780
|
-
}, C(u(
|
|
781
|
+
}, C(u(R)(
|
|
781
782
|
e.value.style.layout.plots.selectors.labels.x.formatter,
|
|
782
783
|
u(A)(p.value.xMin),
|
|
783
784
|
u(W)({
|
|
@@ -793,7 +794,7 @@ const Vt = ["id"], jt = ["xmlns", "viewBox"], Rt = ["width", "height"], Et = { k
|
|
|
793
794
|
"text-anchor": "start",
|
|
794
795
|
"font-size": e.value.style.layout.dataLabels.xAxis.fontSize,
|
|
795
796
|
fill: e.value.style.layout.dataLabels.xAxis.color
|
|
796
|
-
}, C(u(
|
|
797
|
+
}, C(u(R)(
|
|
797
798
|
e.value.style.layout.plots.selectors.labels.x.formatter,
|
|
798
799
|
u(A)(p.value.xMax),
|
|
799
800
|
u(W)({
|
|
@@ -819,7 +820,7 @@ const Vt = ["id"], jt = ["xmlns", "viewBox"], Rt = ["width", "height"], Et = { k
|
|
|
819
820
|
"text-anchor": "middle",
|
|
820
821
|
"font-size": e.value.style.layout.dataLabels.yAxis.fontSize,
|
|
821
822
|
fill: e.value.style.layout.dataLabels.yAxis.color
|
|
822
|
-
}, C(u(
|
|
823
|
+
}, C(u(R)(
|
|
823
824
|
e.value.style.layout.plots.selectors.labels.y.formatter,
|
|
824
825
|
u(A)(p.value.yMin),
|
|
825
826
|
u(W)({
|
|
@@ -835,7 +836,7 @@ const Vt = ["id"], jt = ["xmlns", "viewBox"], Rt = ["width", "height"], Et = { k
|
|
|
835
836
|
"text-anchor": "middle",
|
|
836
837
|
"font-size": e.value.style.layout.dataLabels.yAxis.fontSize,
|
|
837
838
|
fill: e.value.style.layout.dataLabels.yAxis.color
|
|
838
|
-
}, C(u(
|
|
839
|
+
}, C(u(R)(
|
|
839
840
|
e.value.style.layout.plots.selectors.labels.y.formatter,
|
|
840
841
|
u(A)(p.value.yMax),
|
|
841
842
|
u(W)({
|
|
@@ -892,9 +893,9 @@ const Vt = ["id"], jt = ["xmlns", "viewBox"], Rt = ["width", "height"], Et = { k
|
|
|
892
893
|
M(t.$slots, "svg", { svg: b.value }, void 0, !0)
|
|
893
894
|
], 14, jt)) : c("", !0),
|
|
894
895
|
t.$slots.watermark ? (o(), i("div", Nl, [
|
|
895
|
-
M(t.$slots, "watermark", ee(te({ isPrinting: u(
|
|
896
|
+
M(t.$slots, "watermark", ee(te({ isPrinting: u(Oe) || u(Ne) })), void 0, !0)
|
|
896
897
|
])) : c("", !0),
|
|
897
|
-
ae.value ? c("", !0) : (o(),
|
|
898
|
+
ae.value ? c("", !0) : (o(), j(u(at), {
|
|
898
899
|
key: 6,
|
|
899
900
|
config: {
|
|
900
901
|
type: "quadrant",
|
|
@@ -914,30 +915,30 @@ const Vt = ["id"], jt = ["xmlns", "viewBox"], Rt = ["width", "height"], Et = { k
|
|
|
914
915
|
}, null, 8, ["config"])),
|
|
915
916
|
d("div", {
|
|
916
917
|
ref_key: "chartLegend",
|
|
917
|
-
ref:
|
|
918
|
+
ref: we
|
|
918
919
|
}, [
|
|
919
|
-
e.value.style.legend.show ? (o(),
|
|
920
|
-
key: `legend_${
|
|
921
|
-
legendSet:
|
|
920
|
+
e.value.style.legend.show ? (o(), j(Xt, {
|
|
921
|
+
key: `legend_${Ae.value}`,
|
|
922
|
+
legendSet: E.value,
|
|
922
923
|
config: nt.value,
|
|
923
|
-
onClickMarker: r[0] || (r[0] = ({ legend: l }) =>
|
|
924
|
+
onClickMarker: r[0] || (r[0] = ({ legend: l }) => Ve(l.id))
|
|
924
925
|
}, {
|
|
925
926
|
item: _(({ legend: l }) => [
|
|
926
927
|
d("div", {
|
|
927
928
|
onClick: (s) => l.segregate(),
|
|
928
|
-
style:
|
|
929
|
+
style: V(`opacity:${m.value.includes(l.id) ? 0.5 : 1}`)
|
|
929
930
|
}, C(l.name), 13, Pl)
|
|
930
931
|
]),
|
|
931
932
|
_: 1
|
|
932
933
|
}, 8, ["legendSet", "config"])) : M(t.$slots, "legend", {
|
|
933
934
|
key: 1,
|
|
934
|
-
legend:
|
|
935
|
+
legend: E.value
|
|
935
936
|
}, void 0, !0)
|
|
936
937
|
], 512),
|
|
937
938
|
t.$slots.source ? (o(), i("div", {
|
|
938
939
|
key: 7,
|
|
939
940
|
ref_key: "source",
|
|
940
|
-
ref:
|
|
941
|
+
ref: _e,
|
|
941
942
|
dir: "auto"
|
|
942
943
|
}, [
|
|
943
944
|
M(t.$slots, "source", {}, void 0, !0)
|
|
@@ -967,7 +968,7 @@ const Vt = ["id"], jt = ["xmlns", "viewBox"], Rt = ["width", "height"], Et = { k
|
|
|
967
968
|
default: _(() => [
|
|
968
969
|
e.value.style.tooltip.showShape ? (o(), i("div", Wl, [
|
|
969
970
|
(o(), i("svg", Fl, [
|
|
970
|
-
ge(
|
|
971
|
+
ge(Je, {
|
|
971
972
|
shape: y.value.shape,
|
|
972
973
|
color: y.value.color,
|
|
973
974
|
plot: { x: 10, y: 10 },
|
|
@@ -978,7 +979,7 @@ const Vt = ["id"], jt = ["xmlns", "viewBox"], Rt = ["width", "height"], Et = { k
|
|
|
978
979
|
]),
|
|
979
980
|
_: 3
|
|
980
981
|
}, 8, ["show", "backgroundColor", "color", "borderRadius", "borderColor", "borderWidth", "fontSize", "backgroundOpacity", "position", "offsetY", "parent", "content", "isFullscreen", "isCustom"]),
|
|
981
|
-
ae.value ? (o(),
|
|
982
|
+
ae.value ? (o(), j(u(Ze), {
|
|
982
983
|
key: 8,
|
|
983
984
|
hideDetails: "",
|
|
984
985
|
config: {
|
|
@@ -995,8 +996,8 @@ const Vt = ["id"], jt = ["xmlns", "viewBox"], Rt = ["width", "height"], Et = { k
|
|
|
995
996
|
}
|
|
996
997
|
}, {
|
|
997
998
|
content: _(() => [
|
|
998
|
-
(o(),
|
|
999
|
-
key: `table_${
|
|
999
|
+
(o(), j(u(et), {
|
|
1000
|
+
key: `table_${Ce.value}`,
|
|
1000
1001
|
colNames: se.value.colNames,
|
|
1001
1002
|
head: se.value.head,
|
|
1002
1003
|
body: se.value.body,
|
|
@@ -1022,7 +1023,7 @@ const Vt = ["id"], jt = ["xmlns", "viewBox"], Rt = ["width", "height"], Et = { k
|
|
|
1022
1023
|
}, 8, ["config"])) : c("", !0)
|
|
1023
1024
|
], 46, Vt));
|
|
1024
1025
|
}
|
|
1025
|
-
},
|
|
1026
|
+
}, Ql = /* @__PURE__ */ Dt(Yl, [["__scopeId", "data-v-bebdc534"]]);
|
|
1026
1027
|
export {
|
|
1027
|
-
|
|
1028
|
+
Ql as default
|
|
1028
1029
|
};
|