vue-data-ui 2.16.5 → 2.17.0
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 +85 -55
- package/dist/{Arrow-D9B36pfx.js → Arrow-BAEkZGzL.js} +1 -1
- package/dist/{BaseDraggableDialog-DloHiD4h.js → BaseDraggableDialog-ChCkcmj_.js} +2 -2
- package/dist/{BaseIcon-DJab5OQD.js → BaseIcon-naqtCxVi.js} +1 -1
- package/dist/{ColorPicker-Br0rMnNb.js → ColorPicker-CfIPgxcj.js} +2 -2
- package/dist/{DataTable-B6MXw9cG.js → DataTable-D0VYDhfx.js} +2 -2
- package/dist/{Legend-DoxQwq_u.js → Legend-Bxlv67uY.js} +2 -2
- package/dist/{NonSvgPenAndPaper-DhbyLXKW.js → NonSvgPenAndPaper-b_oVy-Dd.js} +3 -3
- package/dist/{PackageVersion-DCreTQN4.js → PackageVersion-5TR4ocqp.js} +1 -1
- package/dist/{PenAndPaper-BS60tkQN.js → PenAndPaper-D6AqipIO.js} +32 -32
- package/dist/{Shape-CrstrfQ9.js → Shape-DtFT5EJa.js} +1 -1
- package/dist/{Slicer-Bd0AkciG.js → Slicer-CL6-MRI6.js} +2 -2
- package/dist/{SparkTooltip-B4j_rvhG.js → SparkTooltip-Bcv1aoA5.js} +1 -1
- package/dist/{Title-BQLtfM0P.js → Title-B-2bV0SW.js} +1 -1
- package/dist/{Tooltip-5JmGL7sR.js → Tooltip-CoQnTnr-.js} +1 -1
- package/dist/{UserOptions-DMGkAAIO.js → UserOptions-Dd34lEKb.js} +137 -129
- package/dist/{dom-to-png-g3Q8kjna.js → dom-to-png-2AA0wHlX.js} +1 -1
- package/dist/img-Y_hYz-ZC.js +27 -0
- package/dist/{index-CZNLCg7T.js → index-pPGk-uhD.js} +1 -1
- package/dist/{pdf-DJVOD0cz.js → pdf-yfk3d1is.js} +1 -1
- package/dist/style.css +1 -1
- package/dist/types/vue-data-ui.d.cts +1098 -162
- package/dist/types/vue-data-ui.d.ts +1098 -162
- package/dist/{useNestedProp-BcPDA6Xr.js → useNestedProp-DjACxgdZ.js} +1 -1
- package/dist/{usePrinter-ButWuZVm.js → usePrinter-DDHcrl0A.js} +2 -2
- package/dist/vue-data-ui-CIWxgKjd.js +312 -0
- package/dist/vue-data-ui.js +1 -1
- package/dist/{vue-ui-3d-bar-o8P0DCbz.js → vue-ui-3d-bar-D5Wpdqfk.js} +244 -235
- package/dist/{vue-ui-accordion-CO4hmfuX.js → vue-ui-accordion-CVnA550V.js} +3 -3
- package/dist/{vue-ui-age-pyramid-C9T5bAEl.js → vue-ui-age-pyramid-BuAl-zC5.js} +167 -158
- package/dist/{vue-ui-annotator-CyOygaxE.js → vue-ui-annotator-gl2A20m3.js} +2 -2
- package/dist/{vue-ui-bullet-CPT1jdcz.js → vue-ui-bullet-D-VMKpwe.js} +131 -122
- package/dist/{vue-ui-candlestick-BfZTMGE0.js → vue-ui-candlestick-1r6YwiUV.js} +248 -239
- package/dist/{vue-ui-carousel-table-Bam9qqkj.js → vue-ui-carousel-table-B6UJoNtP.js} +17 -16
- package/dist/{vue-ui-chestnut-BAIMBFaQ.js → vue-ui-chestnut-DnlBYpC5.js} +257 -248
- package/dist/{vue-ui-chord-92E1yKdu.js → vue-ui-chord-D3kpzYjp.js} +229 -220
- package/dist/{vue-ui-circle-pack-DxXPqA7Z.js → vue-ui-circle-pack-CHgdpoYu.js} +200 -191
- package/dist/{vue-ui-cursor-Bvy_o8wb.js → vue-ui-cursor-63EAvElT.js} +2 -2
- package/dist/{vue-ui-dashboard--QRCkp7q.js → vue-ui-dashboard-Da6CPET-.js} +62 -62
- package/dist/{vue-ui-digits-Dl8RHLvt.js → vue-ui-digits-CA8pUKej.js} +2 -2
- package/dist/{vue-ui-donut-BxSTOFDt.js → vue-ui-donut-CKa7nFjt.js} +352 -343
- package/dist/{vue-ui-donut-evolution-DNzTtWnJ.js → vue-ui-donut-evolution-qeBEA4W8.js} +267 -258
- package/dist/{vue-ui-dumbbell-D01p3t3P.js → vue-ui-dumbbell-Bm0PvAKT.js} +146 -137
- package/dist/{vue-ui-flow-BMvaRn7E.js → vue-ui-flow-C2dqXvrU.js} +171 -162
- package/dist/{vue-ui-funnel-Bd_3wouw.js → vue-ui-funnel-Dvy5rRld.js} +134 -125
- package/dist/{vue-ui-galaxy-D4HJH1qq.js → vue-ui-galaxy-Y8LYp5n2.js} +181 -172
- package/dist/{vue-ui-gauge-CgIlk2pu.js → vue-ui-gauge-BBo0jWAP.js} +166 -157
- package/dist/{vue-ui-gizmo-C1-QYvsn.js → vue-ui-gizmo-DjXfTOWn.js} +3 -3
- package/dist/{vue-ui-heatmap-tUn_BlSp.js → vue-ui-heatmap-BbxRpltP.js} +242 -229
- package/dist/{vue-ui-history-plot-TfVRzyIK.js → vue-ui-history-plot-ChYf3Nvc.js} +218 -209
- package/dist/{vue-ui-kpi-BuL8MAMD.js → vue-ui-kpi-Vfc5-JnE.js} +3 -3
- package/dist/{vue-ui-mini-loader-DIeG36P8.js → vue-ui-mini-loader-C0-Nsz8K.js} +2 -2
- package/dist/{vue-ui-molecule-8RJNzWIw.js → vue-ui-molecule-B7Yu7vzF.js} +155 -146
- package/dist/{vue-ui-mood-radar-DftzG_Bi.js → vue-ui-mood-radar-C8JUTwNw.js} +130 -121
- package/dist/{vue-ui-nested-donuts-B9JC_0xK.js → vue-ui-nested-donuts-D0RgFifU.js} +255 -246
- package/dist/{vue-ui-onion-DTjaH-Bu.js → vue-ui-onion-D4U7TL_N.js} +150 -141
- package/dist/{vue-ui-parallel-coordinate-plot-DwqfVqFB.js → vue-ui-parallel-coordinate-plot-CXMT7Rjr.js} +194 -185
- package/dist/{vue-ui-quadrant-Cv3VWA6d.js → vue-ui-quadrant-B13pTVVZ.js} +248 -239
- package/dist/{vue-ui-quick-chart-imc0KrbF.js → vue-ui-quick-chart-C0UL4o63.js} +328 -319
- package/dist/{vue-ui-radar-kNySclk1.js → vue-ui-radar-XpdiXnhz.js} +165 -156
- package/dist/{vue-ui-rating-DBhEbgwD.js → vue-ui-rating-CM8ZrUb1.js} +2 -2
- package/dist/{vue-ui-relation-circle-BJQhS0aG.js → vue-ui-relation-circle-CYoFNekk.js} +145 -136
- package/dist/{vue-ui-ridgeline-Bhd1Uwm8.js → vue-ui-ridgeline-QUquE6ck.js} +198 -189
- package/dist/{vue-ui-rings-C_IT2mi0.js → vue-ui-rings-DwT0IfOh.js} +136 -127
- package/dist/{vue-ui-scatter-i8XZreWa.js → vue-ui-scatter-zDpy1udm.js} +207 -199
- package/dist/{vue-ui-skeleton-D9B8DY_k.js → vue-ui-skeleton-DJPjyNYn.js} +3 -3
- package/dist/{vue-ui-smiley-gmdnUWcW.js → vue-ui-smiley-DoDXl6k0.js} +2 -2
- package/dist/{vue-ui-spark-trend-DOF3vl8_.js → vue-ui-spark-trend-CniV6Cpr.js} +3 -3
- package/dist/{vue-ui-sparkbar-BVOVq3dA.js → vue-ui-sparkbar-Ds2ITgwn.js} +3 -3
- package/dist/{vue-ui-sparkgauge-DVO2Z0Rg.js → vue-ui-sparkgauge-CosfK-kw.js} +3 -3
- package/dist/{vue-ui-sparkhistogram-CbV86a2i.js → vue-ui-sparkhistogram-C7O1wPAJ.js} +4 -4
- package/dist/{vue-ui-sparkline-jDNAVZu-.js → vue-ui-sparkline-B_iUj3F2.js} +3 -3
- package/dist/{vue-ui-sparkstackbar-auT8CUXm.js → vue-ui-sparkstackbar-DBhWrysr.js} +3 -3
- package/dist/{vue-ui-stackbar-DmO02We2.js → vue-ui-stackbar-C3aV4IcL.js} +242 -233
- package/dist/{vue-ui-strip-plot-B25s87lj.js → vue-ui-strip-plot-Bvr1GAzH.js} +204 -195
- package/dist/{vue-ui-table-B4xbQdK_.js → vue-ui-table-DQKKRgyo.js} +3 -3
- package/dist/{vue-ui-table-heatmap-DI57VcvH.js → vue-ui-table-heatmap-Dyqj5XJC.js} +26 -25
- package/dist/{vue-ui-table-sparkline-DRgsZztN.js → vue-ui-table-sparkline-D4RubyLj.js} +8 -7
- package/dist/{vue-ui-thermometer-DkeT5DV_.js → vue-ui-thermometer-B0FKI5cG.js} +149 -140
- package/dist/{vue-ui-timer-uon_DLeH.js → vue-ui-timer-DUCBRIl-.js} +5 -5
- package/dist/{vue-ui-tiremarks-BV0qXRF2.js → vue-ui-tiremarks-CRt4UQZD.js} +114 -105
- package/dist/{vue-ui-treemap-DzJsjtz7.js → vue-ui-treemap-CWP5nYDx.js} +298 -289
- package/dist/{vue-ui-vertical-bar-CkLS_DGb.js → vue-ui-vertical-bar-C5fPYltO.js} +294 -285
- package/dist/{vue-ui-waffle-B2XiLGQx.js → vue-ui-waffle-BpWLlfpg.js} +190 -181
- package/dist/{vue-ui-wheel-BR1DDpKU.js → vue-ui-wheel-CTzuCroy.js} +96 -87
- package/dist/{vue-ui-word-cloud-BvOT6hu2.js → vue-ui-word-cloud-BPokdaP1.js} +212 -203
- package/dist/{vue-ui-world-BeP91MNX.js → vue-ui-world-CS6k-oil.js} +201 -192
- package/dist/{vue-ui-xy-BaR-ZDba.js → vue-ui-xy-CQ425kLR.js} +517 -510
- package/dist/{vue-ui-xy-canvas-B4ZmECCK.js → vue-ui-xy-canvas-D2IFwAr7.js} +364 -355
- package/package.json +1 -1
- package/dist/img-CTC5DLKL.js +0 -20
- package/dist/vue-data-ui-BB8Upnjm.js +0 -301
|
@@ -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 i, openBlock as o, 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 R, v as A, f as F, q as Lt, r as Bt, x as Ot, y as Nt } from "./index-pPGk-uhD.js";
|
|
3
|
+
import { t as Pt, u as Wt } from "./useResponsive-DfdjqQps.js";
|
|
4
|
+
import { u as Ze } from "./useNestedProp-DjACxgdZ.js";
|
|
5
|
+
import { u as Ft } from "./usePrinter-DDHcrl0A.js";
|
|
6
|
+
import { u as It } from "./useUserOptionState-BIvW1Kz7.js";
|
|
7
|
+
import { u as Xt } from "./useChartAccessibility-9icAAmYg.js";
|
|
8
|
+
import Yt from "./Legend-Bxlv67uY.js";
|
|
9
|
+
import Dt from "./Title-B-2bV0SW.js";
|
|
10
|
+
import { _ as Je } from "./Shape-DtFT5EJa.js";
|
|
11
|
+
import Vt from "./img-Y_hYz-ZC.js";
|
|
12
|
+
import { _ as jt } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
13
|
+
const Et = ["id"], Rt = ["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"], rl = ["stop-color"], il = ["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"], Vl = {
|
|
27
28
|
__name: "vue-ui-scatter",
|
|
28
29
|
props: {
|
|
29
30
|
config: {
|
|
@@ -39,39 +40,39 @@ 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-CVnA550V.js")), tt = Z(() => import("./DataTable-D0VYDhfx.js")), lt = Z(() => import("./PackageVersion-5TR4ocqp.js")), at = Z(() => import("./PenAndPaper-D6AqipIO.js")), ot = Z(() => import("./vue-ui-skeleton-DJPjyNYn.js")), st = Z(() => import("./Tooltip-CoQnTnr-.js")), ut = Z(() => import("./UserOptions-Dd34lEKb.js")), { vue_ui_scatter: rt } = bt(), I = Ke, ae = b(() => !!I.dataset && I.dataset.length), S = h(kt()), it = h(null), ie = h(!1), ne = h(""), be = h(0), U = h(null), ke = h(null), we = h(null), _e = h(null), Me = h(null), $e = h(0), Ce = h(0), Ae = h(0), x = h([]), e = b({
|
|
44
45
|
get: () => Le(),
|
|
45
46
|
set: (t) => t
|
|
46
|
-
}), { userOptionsVisible: ve, setUserOptionsVisibility:
|
|
47
|
+
}), { userOptionsVisible: ve, setUserOptionsVisibility: Se, keepUserOptionState: ze } = It({ config: e.value }), { svgRef: Te } = Xt({ config: e.value.style.title });
|
|
47
48
|
function Le() {
|
|
48
|
-
const t =
|
|
49
|
+
const t = Ze({
|
|
49
50
|
userConfig: I.config,
|
|
50
|
-
defaultConfig:
|
|
51
|
+
defaultConfig: rt
|
|
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 D = Ge(null),
|
|
64
|
-
|
|
64
|
+
const D = 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: r, height: l } =
|
|
74
|
-
chart:
|
|
73
|
+
const t = Pt(() => {
|
|
74
|
+
const { width: r, height: l } = Wt({
|
|
75
|
+
chart: U.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,
|
|
@@ -81,17 +82,17 @@ const Vt = ["id"], jt = ["xmlns", "viewBox"], Rt = ["width", "height"], Et = { k
|
|
|
81
82
|
k.value.width = r, k.value.height = l;
|
|
82
83
|
});
|
|
83
84
|
});
|
|
84
|
-
D.value && (
|
|
85
|
+
D.value && (K.value && D.value.unobserve(K.value), D.value.disconnect()), D.value = new ResizeObserver(t), K.value = U.value.parentNode, D.value.observe(K.value);
|
|
85
86
|
}
|
|
86
87
|
}
|
|
87
|
-
|
|
88
|
-
D.value && (
|
|
88
|
+
ft(() => {
|
|
89
|
+
D.value && (K.value && D.value.unobserve(K.value), D.value.disconnect());
|
|
89
90
|
});
|
|
90
|
-
const { isPrinting: Oe, isImaging: Ne, generatePdf: Pe, generateImage: We } =
|
|
91
|
-
elementId: `vue-ui-scatter_${
|
|
91
|
+
const { isPrinting: Oe, isImaging: Ne, generatePdf: Pe, generateImage: We } = Ft({
|
|
92
|
+
elementId: `vue-ui-scatter_${S.value}`,
|
|
92
93
|
fileName: e.value.style.title.text || "vue-ui-scatter",
|
|
93
94
|
options: e.value.userOptions.print
|
|
94
|
-
}),
|
|
95
|
+
}), nt = b(() => e.value.userOptions.show && !e.value.style.title.text), Fe = b(() => $t(e.value.customPalette)), O = h({
|
|
95
96
|
showTable: e.value.table.show,
|
|
96
97
|
showTooltip: e.value.style.tooltip.show
|
|
97
98
|
}), k = h({
|
|
@@ -106,7 +107,7 @@ const Vt = ["id"], jt = ["xmlns", "viewBox"], Rt = ["width", "height"], Et = { k
|
|
|
106
107
|
width: k.value.width - e.value.style.layout.padding.left - e.value.style.layout.padding.right - oe.value
|
|
107
108
|
})), p = b(() => {
|
|
108
109
|
I.dataset.forEach((a, v) => {
|
|
109
|
-
|
|
110
|
+
He({
|
|
110
111
|
datasetObject: a,
|
|
111
112
|
requiredAttributes: ["values"]
|
|
112
113
|
}).forEach((f) => {
|
|
@@ -117,14 +118,14 @@ 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
|
});
|
|
@@ -136,21 +137,21 @@ const Vt = ["id"], jt = ["xmlns", "viewBox"], Rt = ["width", "height"], Et = { k
|
|
|
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
139
|
})), G = b(() => I.dataset.map((t, r) => {
|
|
139
|
-
const l = `cluster_${
|
|
140
|
+
const l = `cluster_${S.value}_${r}`;
|
|
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[r] ||
|
|
148
|
+
color: t.color ? t.color : Fe.value[r] || J[r] || J[r % J.length],
|
|
148
149
|
opacity: x.value.includes(l) ? 0.5 : 1,
|
|
149
150
|
shape: t.shape ?? "circle",
|
|
150
151
|
segregate: () => Ve(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,
|
|
@@ -167,20 +168,20 @@ 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[r] ||
|
|
171
|
-
id: `plot_${
|
|
171
|
+
color: t.color ? t.color : Fe.value[r] || J[r] || J[r % J.length],
|
|
172
|
+
id: `plot_${S.value}_${Math.random()}`,
|
|
172
173
|
weight: l.weight ?? e.value.style.layout.plots.radius
|
|
173
174
|
}))
|
|
174
|
-
})).filter((t) => !x.value.includes(t.id))),
|
|
175
|
-
const r = t.plots.reduce((m,
|
|
175
|
+
})).filter((t) => !x.value.includes(t.id))), z = b(() => ye.value.map((t) => {
|
|
176
|
+
const r = 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;
|
|
176
177
|
let s = 0, a = 0, v = 0;
|
|
177
178
|
for (const m of t.plots)
|
|
178
179
|
s += (m.x - r) * (m.y - l), a += (m.x - r) ** 2, v += (m.y - l) ** 2;
|
|
179
|
-
const f = s / Math.sqrt(a * v), L = f * (Math.sqrt(v) / Math.sqrt(a)),
|
|
180
|
+
const f = s / Math.sqrt(a * v), L = f * (Math.sqrt(v) / Math.sqrt(a)), ee = l - L * r, 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
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) / $)), re = {
|
|
186
187
|
x: X,
|
|
@@ -191,7 +192,7 @@ const Vt = ["id"], jt = ["xmlns", "viewBox"], Rt = ["width", "height"], Et = { k
|
|
|
191
192
|
correlation: P,
|
|
192
193
|
label: re,
|
|
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,44 +201,44 @@ const Vt = ["id"], jt = ["xmlns", "viewBox"], Rt = ["width", "height"], Et = { k
|
|
|
200
201
|
};
|
|
201
202
|
})
|
|
202
203
|
};
|
|
203
|
-
})), Ie = b(() => Math.max(...
|
|
204
|
-
function
|
|
205
|
-
return
|
|
204
|
+
})), Ie = b(() => Math.max(...z.value.flatMap((t) => t.plots.map((r) => Math.abs(r.deviation)))));
|
|
205
|
+
function yt() {
|
|
206
|
+
return z.value;
|
|
206
207
|
}
|
|
207
208
|
function Xe(t, r) {
|
|
208
|
-
const l = Array.isArray(t) ? t.flatMap((w) => w.plots.map((
|
|
209
|
-
x:
|
|
210
|
-
y:
|
|
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
216
|
let s = 1 / 0, a = -1 / 0, v = 1 / 0, f = -1 / 0;
|
|
216
|
-
l.forEach(({ x: w, y:
|
|
217
|
-
s = Math.min(s, w), a = Math.max(a, w), v = Math.min(v,
|
|
217
|
+
l.forEach(({ x: w, y: H }) => {
|
|
218
|
+
s = Math.min(s, w), a = Math.max(a, w), v = Math.min(v, H), f = Math.max(f, H);
|
|
218
219
|
});
|
|
219
|
-
const L = a - s,
|
|
220
|
-
l.forEach(({ x: w, y:
|
|
221
|
-
const pe = Math.floor((w - s) / P), fe = Math.floor((
|
|
220
|
+
const L = a - s, ee = f - v, P = L / r, $ = ee / r, B = Array(r).fill(0), X = Array(r).fill(0);
|
|
221
|
+
l.forEach(({ x: w, y: H }) => {
|
|
222
|
+
const pe = Math.floor((w - s) / 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
225
|
const re = [], m = [];
|
|
225
226
|
for (let w = 0; w < r; w += 1)
|
|
226
227
|
re.push(s + (w + 0.5) * P), m.push(v + (w + 0.5) * $);
|
|
227
|
-
const
|
|
228
|
-
return { x: B, y: X, avgX: re, avgY: m, maxX:
|
|
228
|
+
const q = Math.max(...B), he = Math.max(...X);
|
|
229
|
+
return { x: B, y: X, avgX: re, 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 V = b(() => e.value.style.layout.marginalBars.tranches), T = b(() => Xe(ye.value, V.value)), ct = b(() => {
|
|
231
232
|
const t = n.value.top - e.value.style.layout.marginalBars.offset, r = n.value.right + e.value.style.layout.marginalBars.offset;
|
|
232
233
|
return ye.value.map((l) => {
|
|
233
234
|
const s = Xe(l, V.value);
|
|
234
235
|
return {
|
|
235
236
|
coords: s,
|
|
236
|
-
dX:
|
|
237
|
+
dX: St(s.avgX.map((a, v) => ({
|
|
237
238
|
x: a,
|
|
238
239
|
y: t - s.x[v] / s.maxX * e.value.style.layout.marginalBars.size
|
|
239
240
|
}))),
|
|
240
|
-
dY:
|
|
241
|
+
dY: At(s.avgY.map((a, v) => ({
|
|
241
242
|
y: a,
|
|
242
243
|
x: r + e.value.style.layout.marginalBars.size * s.y[v] / s.maxY
|
|
243
244
|
}))),
|
|
@@ -252,21 +253,21 @@ const Vt = ["id"], jt = ["xmlns", "viewBox"], Rt = ["width", "height"], Et = { k
|
|
|
252
253
|
ce.value = {
|
|
253
254
|
datapoint: t,
|
|
254
255
|
seriesIndex: r,
|
|
255
|
-
series:
|
|
256
|
+
series: z.value,
|
|
256
257
|
config: e.value
|
|
257
258
|
};
|
|
258
259
|
const s = e.value.style.tooltip.customFormat;
|
|
259
|
-
|
|
260
|
+
Ot(s) && Nt(() => s({
|
|
260
261
|
datapoint: t,
|
|
261
262
|
seriesIndex: r,
|
|
262
|
-
series:
|
|
263
|
+
series: z.value,
|
|
263
264
|
config: e.value
|
|
264
265
|
})) ? ne.value = s({
|
|
265
266
|
datapoint: t,
|
|
266
267
|
seriesIndex: r,
|
|
267
|
-
series:
|
|
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) ? "-" : R(
|
|
270
271
|
e.value.style.layout.plots.selectors.labels.x.formatter,
|
|
271
272
|
t.v.x,
|
|
272
273
|
F({
|
|
@@ -276,7 +277,7 @@ const Vt = ["id"], jt = ["xmlns", "viewBox"], Rt = ["width", "height"], Et = { k
|
|
|
276
277
|
r: e.value.style.tooltip.roundingValue
|
|
277
278
|
}),
|
|
278
279
|
{ datapoint: t, seriesIndex: r }
|
|
279
|
-
)}</b></div>`, l += `<div>${e.value.style.layout.dataLabels.yAxis.name}: <b>${isNaN(t.v.y) ? "-" :
|
|
280
|
+
)}</b></div>`, l += `<div>${e.value.style.layout.dataLabels.yAxis.name}: <b>${isNaN(t.v.y) ? "-" : R(
|
|
280
281
|
e.value.style.layout.plots.selectors.labels.y.formatter,
|
|
281
282
|
t.v.y,
|
|
282
283
|
F({
|
|
@@ -294,20 +295,19 @@ const Vt = ["id"], jt = ["xmlns", "viewBox"], Rt = ["width", "height"], Et = { k
|
|
|
294
295
|
function De() {
|
|
295
296
|
ie.value = !1, N.value = void 0, y.value = null;
|
|
296
297
|
}
|
|
297
|
-
const x = h([]);
|
|
298
298
|
function Ve(t) {
|
|
299
299
|
x.value.includes(t) ? x.value = x.value.filter((r) => r !== t) : x.value.length < I.dataset.length - 1 && x.value.push(t);
|
|
300
300
|
}
|
|
301
301
|
function je(t = null) {
|
|
302
|
-
|
|
303
|
-
const r = ["", e.value.table.translations.correlationCoefficient, e.value.table.translations.nbrPlots, `${e.value.style.layout.dataLabels.xAxis.name} ${e.value.table.translations.average}`, `${e.value.style.layout.dataLabels.yAxis.name} ${e.value.table.translations.average}`], l =
|
|
302
|
+
xt(() => {
|
|
303
|
+
const r = ["", 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
|
-
]), s = [[e.value.style.title.text], [e.value.style.title.subtitle.text], [[""], [""], [""]]].concat([r]).concat(l), a =
|
|
310
|
-
t ? t(a) :
|
|
309
|
+
]), s = [[e.value.style.title.text], [e.value.style.title.subtitle.text], [[""], [""], [""]]].concat([r]).concat(l), a = Lt(s);
|
|
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,7 +317,7 @@ 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
|
-
], r =
|
|
320
|
+
], r = z.value.map((s) => [
|
|
321
321
|
{
|
|
322
322
|
shape: s.shape,
|
|
323
323
|
content: s.name,
|
|
@@ -341,38 +341,45 @@ const Vt = ["id"], jt = ["xmlns", "viewBox"], Rt = ["width", "height"], Et = { k
|
|
|
341
341
|
breakpoint: e.value.table.responsiveBreakpoint
|
|
342
342
|
};
|
|
343
343
|
return { head: t, body: r, config: l, colNames: t };
|
|
344
|
-
}),
|
|
345
|
-
function
|
|
346
|
-
|
|
344
|
+
}), Q = h(!1);
|
|
345
|
+
function Ee(t) {
|
|
346
|
+
Q.value = t, be.value += 1;
|
|
347
347
|
}
|
|
348
348
|
function Re() {
|
|
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 (!U.value) return;
|
|
360
|
+
const { imageUri: r, base64: l } = await Vt({ domElement: U.value, base64: !0, img: !0, scale: t });
|
|
361
|
+
return { imageUri: r, base64: l };
|
|
362
|
+
}
|
|
363
|
+
return Qe({
|
|
364
|
+
getData: yt,
|
|
365
|
+
getImage: dt,
|
|
360
366
|
generatePdf: Pe,
|
|
361
367
|
generateCsv: je,
|
|
362
368
|
generateImage: We,
|
|
363
369
|
toggleTable: Re,
|
|
364
|
-
toggleTooltip:
|
|
365
|
-
toggleAnnotator: de
|
|
370
|
+
toggleTooltip: Ue,
|
|
371
|
+
toggleAnnotator: de,
|
|
372
|
+
toggleFullscreen: Ee
|
|
366
373
|
}), (t, r) => (o(), i("div", {
|
|
367
|
-
class:
|
|
374
|
+
class: qe(`vue-ui-scatter ${Q.value ? "vue-data-ui-wrapper-fullscreen" : ""} ${e.value.useCssAnimation ? "" : "vue-ui-dna"}`),
|
|
368
375
|
ref_key: "scatterChart",
|
|
369
|
-
ref:
|
|
370
|
-
id: `vue-ui-scatter_${
|
|
376
|
+
ref: U,
|
|
377
|
+
id: `vue-ui-scatter_${S.value}`,
|
|
371
378
|
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: r[2] || (r[2] = () => u(
|
|
373
|
-
onMouseleave: r[3] || (r[3] = () => u(
|
|
379
|
+
onMouseenter: r[2] || (r[2] = () => u(Se)(!0)),
|
|
380
|
+
onMouseleave: r[3] || (r[3] = () => u(Se)(!1))
|
|
374
381
|
}, [
|
|
375
|
-
e.value.userOptions.buttons.annotator ? (o(),
|
|
382
|
+
e.value.userOptions.buttons.annotator ? (o(), E(u(at), {
|
|
376
383
|
key: 0,
|
|
377
384
|
svgRef: u(Te),
|
|
378
385
|
backgroundColor: e.value.style.backgroundColor,
|
|
@@ -380,7 +387,7 @@ const Vt = ["id"], jt = ["xmlns", "viewBox"], Rt = ["width", "height"], Et = { k
|
|
|
380
387
|
active: ue.value,
|
|
381
388
|
onClose: de
|
|
382
389
|
}, null, 8, ["svgRef", "backgroundColor", "color", "active"])) : c("", !0),
|
|
383
|
-
|
|
390
|
+
nt.value ? (o(), i("div", {
|
|
384
391
|
key: 1,
|
|
385
392
|
ref_key: "noTitle",
|
|
386
393
|
ref: Me,
|
|
@@ -393,7 +400,7 @@ const Vt = ["id"], jt = ["xmlns", "viewBox"], Rt = ["width", "height"], Et = { k
|
|
|
393
400
|
ref: ke,
|
|
394
401
|
style: "width:100%;background:transparent"
|
|
395
402
|
}, [
|
|
396
|
-
(o(),
|
|
403
|
+
(o(), E(Dt, {
|
|
397
404
|
key: `title_${$e.value}`,
|
|
398
405
|
config: {
|
|
399
406
|
title: {
|
|
@@ -407,15 +414,15 @@ const Vt = ["id"], jt = ["xmlns", "viewBox"], Rt = ["width", "height"], Et = { k
|
|
|
407
414
|
}
|
|
408
415
|
}, null, 8, ["config"]))
|
|
409
416
|
], 512)) : c("", !0),
|
|
410
|
-
e.value.userOptions.show && ae.value && (u(
|
|
417
|
+
e.value.userOptions.show && ae.value && (u(ze) || u(ve)) ? (o(), E(u(ut), {
|
|
411
418
|
ref_key: "details",
|
|
412
|
-
ref:
|
|
419
|
+
ref: it,
|
|
413
420
|
key: `user_options_${be.value}`,
|
|
414
421
|
backgroundColor: e.value.style.backgroundColor,
|
|
415
422
|
color: e.value.style.color,
|
|
416
423
|
isImaging: u(Ne),
|
|
417
424
|
isPrinting: u(Oe),
|
|
418
|
-
uid:
|
|
425
|
+
uid: S.value,
|
|
419
426
|
hasTooltip: e.value.userOptions.buttons.tooltip && e.value.style.tooltip.show,
|
|
420
427
|
hasPdf: e.value.userOptions.buttons.pdf,
|
|
421
428
|
hasImg: e.value.userOptions.buttons.img,
|
|
@@ -423,28 +430,29 @@ const Vt = ["id"], jt = ["xmlns", "viewBox"], Rt = ["width", "height"], Et = { k
|
|
|
423
430
|
hasTable: e.value.userOptions.buttons.table,
|
|
424
431
|
hasFullscreen: e.value.userOptions.buttons.fullscreen,
|
|
425
432
|
isTooltip: O.value.showTooltip,
|
|
426
|
-
isFullscreen:
|
|
433
|
+
isFullscreen: Q.value,
|
|
427
434
|
titles: { ...e.value.userOptions.buttonTitles },
|
|
428
|
-
chartElement:
|
|
435
|
+
chartElement: U.value,
|
|
429
436
|
position: e.value.userOptions.position,
|
|
430
437
|
hasAnnotator: e.value.userOptions.buttons.annotator,
|
|
431
438
|
isAnnotation: ue.value,
|
|
432
439
|
callbacks: e.value.userOptions.callbacks,
|
|
433
|
-
|
|
440
|
+
printScale: e.value.userOptions.print.scale,
|
|
441
|
+
onToggleFullscreen: Ee,
|
|
434
442
|
onGeneratePdf: u(Pe),
|
|
435
443
|
onGenerateCsv: je,
|
|
436
444
|
onGenerateImage: u(We),
|
|
437
445
|
onToggleTable: Re,
|
|
438
|
-
onToggleTooltip:
|
|
446
|
+
onToggleTooltip: Ue,
|
|
439
447
|
onToggleAnnotator: de,
|
|
440
448
|
style: j({
|
|
441
|
-
visibility: u(
|
|
449
|
+
visibility: u(ze) ? u(ve) ? "visible" : "hidden" : "visible"
|
|
442
450
|
})
|
|
443
|
-
},
|
|
451
|
+
}, gt({ _: 2 }, [
|
|
444
452
|
t.$slots.menuIcon ? {
|
|
445
453
|
name: "menuIcon",
|
|
446
454
|
fn: _(({ isOpen: l, color: s }) => [
|
|
447
|
-
M(t.$slots, "menuIcon",
|
|
455
|
+
M(t.$slots, "menuIcon", te(le({ isOpen: l, color: s })), void 0, !0)
|
|
448
456
|
]),
|
|
449
457
|
key: "0"
|
|
450
458
|
} : void 0,
|
|
@@ -486,28 +494,28 @@ const Vt = ["id"], jt = ["xmlns", "viewBox"], Rt = ["width", "height"], Et = { k
|
|
|
486
494
|
t.$slots.optionFullscreen ? {
|
|
487
495
|
name: "optionFullscreen",
|
|
488
496
|
fn: _(({ toggleFullscreen: l, isFullscreen: s }) => [
|
|
489
|
-
M(t.$slots, "optionFullscreen",
|
|
497
|
+
M(t.$slots, "optionFullscreen", te(le({ toggleFullscreen: l, isFullscreen: s })), void 0, !0)
|
|
490
498
|
]),
|
|
491
499
|
key: "6"
|
|
492
500
|
} : void 0,
|
|
493
501
|
t.$slots.optionAnnotator ? {
|
|
494
502
|
name: "optionAnnotator",
|
|
495
503
|
fn: _(({ toggleAnnotator: l, isAnnotator: s }) => [
|
|
496
|
-
M(t.$slots, "optionAnnotator",
|
|
504
|
+
M(t.$slots, "optionAnnotator", te(le({ toggleAnnotator: l, isAnnotator: s })), void 0, !0)
|
|
497
505
|
]),
|
|
498
506
|
key: "7"
|
|
499
507
|
} : void 0
|
|
500
|
-
]), 1032, ["backgroundColor", "color", "isImaging", "isPrinting", "uid", "hasTooltip", "hasPdf", "hasImg", "hasXls", "hasTable", "hasFullscreen", "isTooltip", "isFullscreen", "titles", "chartElement", "position", "hasAnnotator", "isAnnotation", "callbacks", "onGeneratePdf", "onGenerateImage", "style"])) : c("", !0),
|
|
508
|
+
]), 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),
|
|
501
509
|
ae.value ? (o(), i("svg", {
|
|
502
510
|
key: 4,
|
|
503
511
|
ref_key: "svgRef",
|
|
504
512
|
ref: Te,
|
|
505
513
|
xmlns: u(zt),
|
|
506
|
-
class:
|
|
514
|
+
class: qe({ "vue-data-ui-fullscreen--on": Q.value, "vue-data-ui-fulscreen--off": !Q.value }),
|
|
507
515
|
viewBox: `0 0 ${k.value.width <= 0 ? 10 : k.value.width} ${k.value.height <= 0 ? 10 : k.value.height}`,
|
|
508
516
|
style: j(`max-width:100%;overflow:visible;background:transparent;color:${e.value.style.color}`)
|
|
509
517
|
}, [
|
|
510
|
-
ge(u(
|
|
518
|
+
ge(u(lt)),
|
|
511
519
|
t.$slots["chart-background"] ? (o(), i("foreignObject", {
|
|
512
520
|
key: 0,
|
|
513
521
|
x: 0,
|
|
@@ -519,8 +527,8 @@ const Vt = ["id"], jt = ["xmlns", "viewBox"], Rt = ["width", "height"], Et = { k
|
|
|
519
527
|
}
|
|
520
528
|
}, [
|
|
521
529
|
M(t.$slots, "chart-background", {}, void 0, !0)
|
|
522
|
-
], 8,
|
|
523
|
-
e.value.style.layout.axis.show ? (o(), i("g",
|
|
530
|
+
], 8, Ut)) : c("", !0),
|
|
531
|
+
e.value.style.layout.axis.show ? (o(), i("g", Gt, [
|
|
524
532
|
d("line", {
|
|
525
533
|
x1: g.value.x,
|
|
526
534
|
x2: g.value.x,
|
|
@@ -529,7 +537,7 @@ const Vt = ["id"], jt = ["xmlns", "viewBox"], Rt = ["width", "height"], Et = { k
|
|
|
529
537
|
stroke: e.value.style.layout.axis.stroke,
|
|
530
538
|
"stroke-width": e.value.style.layout.axis.strokeWidth,
|
|
531
539
|
"stroke-linecap": "round"
|
|
532
|
-
}, null, 8,
|
|
540
|
+
}, null, 8, qt),
|
|
533
541
|
d("line", {
|
|
534
542
|
x1: n.value.left,
|
|
535
543
|
x2: n.value.right,
|
|
@@ -538,24 +546,24 @@ const Vt = ["id"], jt = ["xmlns", "viewBox"], Rt = ["width", "height"], Et = { k
|
|
|
538
546
|
stroke: e.value.style.layout.axis.stroke,
|
|
539
547
|
"stroke-width": e.value.style.layout.axis.strokeWidth,
|
|
540
548
|
"stroke-linecap": "round"
|
|
541
|
-
}, null, 8,
|
|
549
|
+
}, null, 8, Ht)
|
|
542
550
|
])) : c("", !0),
|
|
543
|
-
e.value.style.layout.plots.giftWrap.show ? (o(), i("g",
|
|
544
|
-
(o(!0), i(W, null, Y(
|
|
551
|
+
e.value.style.layout.plots.giftWrap.show ? (o(), i("g", Zt, [
|
|
552
|
+
(o(!0), i(W, null, Y(z.value, (l, s) => (o(), i("g", null, [
|
|
545
553
|
l.plots.length > 2 ? (o(), i("polygon", {
|
|
546
554
|
key: 0,
|
|
547
|
-
points: u(
|
|
555
|
+
points: u(Tt)({ series: l.plots }),
|
|
548
556
|
fill: u(xe)(l.color, e.value.style.layout.plots.giftWrap.fillOpacity * 100),
|
|
549
557
|
"stroke-width": e.value.style.layout.plots.giftWrap.strokeWidth,
|
|
550
558
|
"stroke-dasharray": e.value.style.layout.plots.giftWrap.strokeDasharray,
|
|
551
559
|
stroke: l.color,
|
|
552
560
|
"stroke-linejoin": "round",
|
|
553
561
|
"stroke-linecap": "round"
|
|
554
|
-
}, null, 8,
|
|
562
|
+
}, null, 8, Jt)) : c("", !0)
|
|
555
563
|
]))), 256))
|
|
556
564
|
])) : c("", !0),
|
|
557
|
-
(o(!0), i(W, null, Y(
|
|
558
|
-
!l.shape || l.shape === "circle" ? (o(), i("g",
|
|
565
|
+
(o(!0), i(W, null, Y(z.value, (l, s) => (o(), i("g", null, [
|
|
566
|
+
!l.shape || l.shape === "circle" ? (o(), i("g", Kt, [
|
|
559
567
|
(o(!0), i(W, null, Y(l.plots, (a, v) => (o(), i("circle", {
|
|
560
568
|
cx: a.x,
|
|
561
569
|
cy: a.y,
|
|
@@ -566,9 +574,9 @@ const Vt = ["id"], jt = ["xmlns", "viewBox"], Rt = ["width", "height"], Et = { k
|
|
|
566
574
|
onMouseover: (f) => Ye(a, s),
|
|
567
575
|
onMouseleave: De,
|
|
568
576
|
style: j(`opacity:${N.value && N.value === a.id ? 1 : e.value.style.layout.plots.significance.useDistanceOpacity ? 1 - Math.abs(a.deviation) / Ie.value : e.value.style.layout.plots.significance.show && Math.abs(a.deviation) > e.value.style.layout.plots.significance.deviationThreshold ? e.value.style.layout.plots.significance.opacity : 1}`)
|
|
569
|
-
}, null, 44,
|
|
570
|
-
])) : (o(), i("g",
|
|
571
|
-
(o(!0), i(W, null, Y(l.plots, (a, v) => (o(),
|
|
577
|
+
}, null, 44, Qt))), 256))
|
|
578
|
+
])) : (o(), i("g", el, [
|
|
579
|
+
(o(!0), i(W, null, Y(l.plots, (a, v) => (o(), E(Je, {
|
|
572
580
|
plot: { x: a.x, y: a.y },
|
|
573
581
|
radius: N.value && N.value === a.id ? a.weight * 2 : a.weight,
|
|
574
582
|
shape: l.shape,
|
|
@@ -581,10 +589,10 @@ const Vt = ["id"], jt = ["xmlns", "viewBox"], Rt = ["width", "height"], Et = { k
|
|
|
581
589
|
}, null, 8, ["plot", "radius", "shape", "color", "stroke", "strokeWidth", "onMouseover", "style"]))), 256))
|
|
582
590
|
]))
|
|
583
591
|
]))), 256)),
|
|
584
|
-
e.value.style.layout.marginalBars.show ? (o(), i("g",
|
|
592
|
+
e.value.style.layout.marginalBars.show ? (o(), i("g", tl, [
|
|
585
593
|
d("defs", null, [
|
|
586
594
|
d("linearGradient", {
|
|
587
|
-
id: `marginal_x_${
|
|
595
|
+
id: `marginal_x_${S.value}`,
|
|
588
596
|
x1: "0%",
|
|
589
597
|
y1: "0%",
|
|
590
598
|
x2: "0%",
|
|
@@ -593,14 +601,14 @@ const Vt = ["id"], jt = ["xmlns", "viewBox"], Rt = ["width", "height"], Et = { k
|
|
|
593
601
|
d("stop", {
|
|
594
602
|
offset: "0%",
|
|
595
603
|
"stop-color": e.value.style.layout.marginalBars.fill
|
|
596
|
-
}, null, 8,
|
|
604
|
+
}, null, 8, al),
|
|
597
605
|
d("stop", {
|
|
598
606
|
offset: "100%",
|
|
599
607
|
"stop-color": e.value.style.backgroundColor
|
|
600
|
-
}, null, 8,
|
|
601
|
-
], 8,
|
|
608
|
+
}, null, 8, ol)
|
|
609
|
+
], 8, ll),
|
|
602
610
|
d("linearGradient", {
|
|
603
|
-
id: `marginal_y_${
|
|
611
|
+
id: `marginal_y_${S.value}`,
|
|
604
612
|
x1: "0%",
|
|
605
613
|
x2: "100%",
|
|
606
614
|
y1: "0%",
|
|
@@ -609,12 +617,12 @@ const Vt = ["id"], jt = ["xmlns", "viewBox"], Rt = ["width", "height"], Et = { k
|
|
|
609
617
|
d("stop", {
|
|
610
618
|
offset: "0%",
|
|
611
619
|
"stop-color": e.value.style.backgroundColor
|
|
612
|
-
}, null, 8,
|
|
620
|
+
}, null, 8, ul),
|
|
613
621
|
d("stop", {
|
|
614
622
|
offset: "100%",
|
|
615
623
|
"stop-color": e.value.style.layout.marginalBars.fill
|
|
616
|
-
}, null, 8,
|
|
617
|
-
], 8,
|
|
624
|
+
}, null, 8, rl)
|
|
625
|
+
], 8, sl)
|
|
618
626
|
]),
|
|
619
627
|
(o(!0), i(W, null, Y(T.value.x, (l, s) => (o(), i("g", null, [
|
|
620
628
|
l && T.value.avgX[s] ? (o(), i("rect", {
|
|
@@ -623,12 +631,12 @@ const Vt = ["id"], jt = ["xmlns", "viewBox"], Rt = ["width", "height"], Et = { k
|
|
|
623
631
|
y: n.value.top - e.value.style.layout.marginalBars.offset - l / T.value.maxX * e.value.style.layout.marginalBars.size,
|
|
624
632
|
width: n.value.width / V.value <= 0 ? 1e-4 : n.value.width / V.value,
|
|
625
633
|
height: l / T.value.maxX * e.value.style.layout.marginalBars.size <= 0 ? 1e-4 : l / T.value.maxX * e.value.style.layout.marginalBars.size,
|
|
626
|
-
fill: e.value.style.layout.marginalBars.useGradient ? `url(#marginal_x_${
|
|
634
|
+
fill: e.value.style.layout.marginalBars.useGradient ? `url(#marginal_x_${S.value})` : e.value.style.layout.marginalBars.fill,
|
|
627
635
|
style: j(`opacity:${e.value.style.layout.marginalBars.opacity}`),
|
|
628
636
|
stroke: e.value.style.backgroundColor,
|
|
629
637
|
"stroke-width": e.value.style.layout.marginalBars.strokeWidth,
|
|
630
638
|
rx: e.value.style.layout.marginalBars.borderRadius
|
|
631
|
-
}, null, 12,
|
|
639
|
+
}, null, 12, il)) : c("", !0)
|
|
632
640
|
]))), 256)),
|
|
633
641
|
(o(!0), i(W, null, Y(T.value.y, (l, s) => (o(), i("g", null, [
|
|
634
642
|
l && T.value.avgY[s] ? (o(), i("rect", {
|
|
@@ -637,15 +645,15 @@ const Vt = ["id"], jt = ["xmlns", "viewBox"], Rt = ["width", "height"], Et = { k
|
|
|
637
645
|
y: T.value.avgY[s] - n.value.height / V.value / 2,
|
|
638
646
|
height: n.value.height / V.value <= 0 ? 1e-4 : n.value.height / V.value,
|
|
639
647
|
width: l / T.value.maxY * e.value.style.layout.marginalBars.size <= 0 ? 1e-4 : l / T.value.maxY * e.value.style.layout.marginalBars.size,
|
|
640
|
-
fill: e.value.style.layout.marginalBars.useGradient ? `url(#marginal_y_${
|
|
648
|
+
fill: e.value.style.layout.marginalBars.useGradient ? `url(#marginal_y_${S.value})` : e.value.style.layout.marginalBars.fill,
|
|
641
649
|
style: j(`opacity:${e.value.style.layout.marginalBars.opacity}`),
|
|
642
650
|
stroke: e.value.style.backgroundColor,
|
|
643
651
|
"stroke-width": e.value.style.layout.marginalBars.strokeWidth,
|
|
644
652
|
rx: e.value.style.layout.marginalBars.borderRadius
|
|
645
|
-
}, null, 12,
|
|
653
|
+
}, null, 12, nl)) : c("", !0)
|
|
646
654
|
]))), 256)),
|
|
647
|
-
e.value.style.layout.marginalBars.showLines ? (o(), i("g",
|
|
648
|
-
(o(!0), i(W, null, Y(
|
|
655
|
+
e.value.style.layout.marginalBars.showLines ? (o(), i("g", vl, [
|
|
656
|
+
(o(!0), i(W, null, Y(ct.value, (l) => (o(), i(W, null, [
|
|
649
657
|
x.value.includes(l.id) ? c("", !0) : (o(), i("path", {
|
|
650
658
|
key: 0,
|
|
651
659
|
d: `M ${l.dX}`,
|
|
@@ -654,7 +662,7 @@ const Vt = ["id"], jt = ["xmlns", "viewBox"], Rt = ["width", "height"], Et = { k
|
|
|
654
662
|
"stroke-linecap": "round",
|
|
655
663
|
"stroke-linejoin": "round",
|
|
656
664
|
fill: "none"
|
|
657
|
-
}, null, 8,
|
|
665
|
+
}, null, 8, yl)),
|
|
658
666
|
x.value.includes(l.id) ? c("", !0) : (o(), i("path", {
|
|
659
667
|
key: 1,
|
|
660
668
|
d: `M ${l.dX}`,
|
|
@@ -663,7 +671,7 @@ const Vt = ["id"], jt = ["xmlns", "viewBox"], Rt = ["width", "height"], Et = { k
|
|
|
663
671
|
"stroke-linecap": "round",
|
|
664
672
|
"stroke-linejoin": "round",
|
|
665
673
|
fill: "none"
|
|
666
|
-
}, null, 8,
|
|
674
|
+
}, null, 8, cl)),
|
|
667
675
|
x.value.includes(l.id) ? c("", !0) : (o(), i("path", {
|
|
668
676
|
key: 2,
|
|
669
677
|
d: `M ${l.dY}`,
|
|
@@ -672,7 +680,7 @@ const Vt = ["id"], jt = ["xmlns", "viewBox"], Rt = ["width", "height"], Et = { k
|
|
|
672
680
|
"stroke-linecap": "round",
|
|
673
681
|
"stroke-linejoin": "round",
|
|
674
682
|
fill: "none"
|
|
675
|
-
}, null, 8,
|
|
683
|
+
}, null, 8, dl)),
|
|
676
684
|
x.value.includes(l.id) ? c("", !0) : (o(), i("path", {
|
|
677
685
|
key: 3,
|
|
678
686
|
d: `M ${l.dY}`,
|
|
@@ -681,11 +689,11 @@ const Vt = ["id"], jt = ["xmlns", "viewBox"], Rt = ["width", "height"], Et = { k
|
|
|
681
689
|
"stroke-linecap": "round",
|
|
682
690
|
"stroke-linejoin": "round",
|
|
683
691
|
fill: "none"
|
|
684
|
-
}, null, 8,
|
|
692
|
+
}, null, 8, hl))
|
|
685
693
|
], 64))), 256))
|
|
686
694
|
])) : c("", !0)
|
|
687
695
|
])) : c("", !0),
|
|
688
|
-
y.value && e.value.style.layout.plots.selectors.show ? (o(), i("g",
|
|
696
|
+
y.value && e.value.style.layout.plots.selectors.show ? (o(), i("g", pl, [
|
|
689
697
|
d("line", {
|
|
690
698
|
x1: g.value.x,
|
|
691
699
|
x2: y.value.x,
|
|
@@ -696,7 +704,7 @@ const Vt = ["id"], jt = ["xmlns", "viewBox"], Rt = ["width", "height"], Et = { k
|
|
|
696
704
|
"stroke-dasharray": e.value.style.layout.plots.selectors.strokeDasharray,
|
|
697
705
|
"stroke-linecap": "round",
|
|
698
706
|
class: "line-pointer"
|
|
699
|
-
}, null, 8,
|
|
707
|
+
}, null, 8, fl),
|
|
700
708
|
d("line", {
|
|
701
709
|
x1: y.value.x,
|
|
702
710
|
x2: y.value.x,
|
|
@@ -707,7 +715,7 @@ const Vt = ["id"], jt = ["xmlns", "viewBox"], Rt = ["width", "height"], Et = { k
|
|
|
707
715
|
"stroke-dasharray": e.value.style.layout.plots.selectors.strokeDasharray,
|
|
708
716
|
"stroke-linecap": "round",
|
|
709
717
|
class: "line-pointer"
|
|
710
|
-
}, null, 8,
|
|
718
|
+
}, null, 8, gl),
|
|
711
719
|
d("text", {
|
|
712
720
|
x: g.value.x + (y.value.x > g.value.x ? -6 : 6),
|
|
713
721
|
y: y.value.y + e.value.style.layout.plots.selectors.labels.fontSize / 3,
|
|
@@ -715,7 +723,7 @@ const Vt = ["id"], jt = ["xmlns", "viewBox"], Rt = ["width", "height"], Et = { k
|
|
|
715
723
|
fill: e.value.style.layout.plots.selectors.labels.color,
|
|
716
724
|
"font-weight": e.value.style.layout.plots.selectors.labels.bold ? "bold" : "normal",
|
|
717
725
|
"text-anchor": y.value.x > g.value.x ? "end" : "start"
|
|
718
|
-
}, C(u(
|
|
726
|
+
}, C(u(R)(
|
|
719
727
|
e.value.style.layout.plots.selectors.labels.y.formatter,
|
|
720
728
|
u(A)(y.value.v.y),
|
|
721
729
|
u(F)({
|
|
@@ -725,7 +733,7 @@ const Vt = ["id"], jt = ["xmlns", "viewBox"], Rt = ["width", "height"], Et = { k
|
|
|
725
733
|
r: e.value.style.layout.plots.selectors.labels.rounding
|
|
726
734
|
}),
|
|
727
735
|
{ datapoint: y.value }
|
|
728
|
-
)), 9,
|
|
736
|
+
)), 9, ml),
|
|
729
737
|
d("text", {
|
|
730
738
|
x: y.value.x,
|
|
731
739
|
y: g.value.y + (y.value.y > g.value.y ? -6 : e.value.style.layout.plots.selectors.labels.fontSize + 6),
|
|
@@ -733,7 +741,7 @@ const Vt = ["id"], jt = ["xmlns", "viewBox"], Rt = ["width", "height"], Et = { k
|
|
|
733
741
|
fill: e.value.style.layout.plots.selectors.labels.color,
|
|
734
742
|
"font-weight": e.value.style.layout.plots.selectors.labels.bold ? "bold" : "normal",
|
|
735
743
|
"text-anchor": "middle"
|
|
736
|
-
}, C(u(
|
|
744
|
+
}, C(u(R)(
|
|
737
745
|
e.value.style.layout.plots.selectors.labels.y.formatter,
|
|
738
746
|
u(A)(y.value.v.x),
|
|
739
747
|
u(F)({
|
|
@@ -743,7 +751,7 @@ const Vt = ["id"], jt = ["xmlns", "viewBox"], Rt = ["width", "height"], Et = { k
|
|
|
743
751
|
r: e.value.style.layout.plots.selectors.labels.rounding
|
|
744
752
|
}),
|
|
745
753
|
{ datapoint: y.value }
|
|
746
|
-
)), 9,
|
|
754
|
+
)), 9, xl),
|
|
747
755
|
d("circle", {
|
|
748
756
|
cx: g.value.x,
|
|
749
757
|
cy: y.value.y,
|
|
@@ -752,7 +760,7 @@ const Vt = ["id"], jt = ["xmlns", "viewBox"], Rt = ["width", "height"], Et = { k
|
|
|
752
760
|
stroke: e.value.style.layout.plots.selectors.markers.stroke,
|
|
753
761
|
"stroke-width": e.value.style.layout.plots.selectors.markers.strokeWidth,
|
|
754
762
|
class: "line-pointer"
|
|
755
|
-
}, null, 8,
|
|
763
|
+
}, null, 8, bl),
|
|
756
764
|
d("circle", {
|
|
757
765
|
cx: y.value.x,
|
|
758
766
|
cy: g.value.y,
|
|
@@ -761,7 +769,7 @@ const Vt = ["id"], jt = ["xmlns", "viewBox"], Rt = ["width", "height"], Et = { k
|
|
|
761
769
|
stroke: e.value.style.layout.plots.selectors.markers.stroke,
|
|
762
770
|
"stroke-width": e.value.style.layout.plots.selectors.markers.strokeWidth,
|
|
763
771
|
class: "line-pointer"
|
|
764
|
-
}, null, 8,
|
|
772
|
+
}, null, 8, kl),
|
|
765
773
|
e.value.style.layout.plots.selectors.labels.showName ? (o(), i("text", {
|
|
766
774
|
key: 0,
|
|
767
775
|
x: y.value.x,
|
|
@@ -770,16 +778,16 @@ const Vt = ["id"], jt = ["xmlns", "viewBox"], Rt = ["width", "height"], Et = { k
|
|
|
770
778
|
fill: e.value.style.layout.plots.selectors.labels.color,
|
|
771
779
|
"font-weight": e.value.style.layout.plots.selectors.labels.bold ? "bold" : "normal",
|
|
772
780
|
"text-anchor": y.value.x < n.value.left + 100 ? "start" : y.value.x > n.value.right - 100 ? "end" : y.value.x > g.value.x ? "start" : "end"
|
|
773
|
-
}, C(y.value.v.name), 9,
|
|
781
|
+
}, C(y.value.v.name), 9, wl)) : c("", !0)
|
|
774
782
|
])) : c("", !0),
|
|
775
|
-
e.value.style.layout.dataLabels.xAxis.show ? (o(), i("g",
|
|
783
|
+
e.value.style.layout.dataLabels.xAxis.show ? (o(), i("g", _l, [
|
|
776
784
|
d("text", {
|
|
777
785
|
x: n.value.left - 5,
|
|
778
786
|
y: g.value.y + e.value.style.layout.dataLabels.xAxis.fontSize / 3,
|
|
779
787
|
"text-anchor": "end",
|
|
780
788
|
"font-size": e.value.style.layout.dataLabels.xAxis.fontSize,
|
|
781
789
|
fill: e.value.style.layout.dataLabels.xAxis.color
|
|
782
|
-
}, C(u(
|
|
790
|
+
}, C(u(R)(
|
|
783
791
|
e.value.style.layout.plots.selectors.labels.x.formatter,
|
|
784
792
|
u(A)(p.value.xMin),
|
|
785
793
|
u(F)({
|
|
@@ -788,14 +796,14 @@ const Vt = ["id"], jt = ["xmlns", "viewBox"], Rt = ["width", "height"], Et = { k
|
|
|
788
796
|
s: e.value.style.layout.plots.selectors.labels.suffix,
|
|
789
797
|
r: e.value.style.layout.dataLabels.xAxis.rounding
|
|
790
798
|
})
|
|
791
|
-
)), 9,
|
|
799
|
+
)), 9, Ml),
|
|
792
800
|
d("text", {
|
|
793
801
|
x: n.value.right + 3,
|
|
794
802
|
y: g.value.y + e.value.style.layout.dataLabels.xAxis.fontSize / 3,
|
|
795
803
|
"text-anchor": "start",
|
|
796
804
|
"font-size": e.value.style.layout.dataLabels.xAxis.fontSize,
|
|
797
805
|
fill: e.value.style.layout.dataLabels.xAxis.color
|
|
798
|
-
}, C(u(
|
|
806
|
+
}, C(u(R)(
|
|
799
807
|
e.value.style.layout.plots.selectors.labels.x.formatter,
|
|
800
808
|
u(A)(p.value.xMax),
|
|
801
809
|
u(F)({
|
|
@@ -804,24 +812,24 @@ const Vt = ["id"], jt = ["xmlns", "viewBox"], Rt = ["width", "height"], Et = { k
|
|
|
804
812
|
s: e.value.style.layout.plots.selectors.labels.suffix,
|
|
805
813
|
r: e.value.style.layout.dataLabels.xAxis.rounding
|
|
806
814
|
})
|
|
807
|
-
)), 9,
|
|
815
|
+
)), 9, $l),
|
|
808
816
|
d("text", {
|
|
809
|
-
id: `vue-ui-scatter-xAxis-label-${
|
|
817
|
+
id: `vue-ui-scatter-xAxis-label-${S.value}`,
|
|
810
818
|
transform: `translate(${e.value.style.layout.dataLabels.xAxis.fontSize * 2}, ${n.value.top + n.value.height / 2}), rotate(-90)`,
|
|
811
819
|
"text-anchor": "middle",
|
|
812
820
|
"font-size": e.value.style.layout.dataLabels.xAxis.fontSize,
|
|
813
821
|
"font-weight": e.value.style.layout.dataLabels.xAxis.bold ? "bold" : "normal",
|
|
814
822
|
fill: e.value.style.layout.dataLabels.xAxis.color
|
|
815
|
-
}, C(e.value.style.layout.dataLabels.xAxis.name), 9,
|
|
823
|
+
}, C(e.value.style.layout.dataLabels.xAxis.name), 9, Cl)
|
|
816
824
|
])) : c("", !0),
|
|
817
|
-
e.value.style.layout.dataLabels.yAxis.show ? (o(), i("g",
|
|
825
|
+
e.value.style.layout.dataLabels.yAxis.show ? (o(), i("g", Al, [
|
|
818
826
|
d("text", {
|
|
819
827
|
x: g.value.x,
|
|
820
828
|
y: n.value.bottom + e.value.style.layout.dataLabels.yAxis.fontSize + 3,
|
|
821
829
|
"text-anchor": "middle",
|
|
822
830
|
"font-size": e.value.style.layout.dataLabels.yAxis.fontSize,
|
|
823
831
|
fill: e.value.style.layout.dataLabels.yAxis.color
|
|
824
|
-
}, C(u(
|
|
832
|
+
}, C(u(R)(
|
|
825
833
|
e.value.style.layout.plots.selectors.labels.y.formatter,
|
|
826
834
|
u(A)(p.value.yMin),
|
|
827
835
|
u(F)({
|
|
@@ -830,14 +838,14 @@ const Vt = ["id"], jt = ["xmlns", "viewBox"], Rt = ["width", "height"], Et = { k
|
|
|
830
838
|
s: e.value.style.layout.plots.selectors.labels.suffix,
|
|
831
839
|
r: e.value.style.layout.dataLabels.yAxis.rounding
|
|
832
840
|
})
|
|
833
|
-
)), 9,
|
|
841
|
+
)), 9, Sl),
|
|
834
842
|
d("text", {
|
|
835
843
|
x: g.value.x,
|
|
836
844
|
y: n.value.top - e.value.style.layout.dataLabels.yAxis.fontSize / 2,
|
|
837
845
|
"text-anchor": "middle",
|
|
838
846
|
"font-size": e.value.style.layout.dataLabels.yAxis.fontSize,
|
|
839
847
|
fill: e.value.style.layout.dataLabels.yAxis.color
|
|
840
|
-
}, C(u(
|
|
848
|
+
}, C(u(R)(
|
|
841
849
|
e.value.style.layout.plots.selectors.labels.y.formatter,
|
|
842
850
|
u(A)(p.value.yMax),
|
|
843
851
|
u(F)({
|
|
@@ -846,7 +854,7 @@ const Vt = ["id"], jt = ["xmlns", "viewBox"], Rt = ["width", "height"], Et = { k
|
|
|
846
854
|
s: e.value.style.layout.plots.selectors.labels.suffix,
|
|
847
855
|
r: e.value.style.layout.dataLabels.yAxis.rounding
|
|
848
856
|
})
|
|
849
|
-
)), 9,
|
|
857
|
+
)), 9, zl),
|
|
850
858
|
d("text", {
|
|
851
859
|
"text-anchor": "middle",
|
|
852
860
|
"font-size": e.value.style.layout.dataLabels.yAxis.fontSize,
|
|
@@ -854,20 +862,20 @@ const Vt = ["id"], jt = ["xmlns", "viewBox"], Rt = ["width", "height"], Et = { k
|
|
|
854
862
|
fill: e.value.style.layout.dataLabels.yAxis.color,
|
|
855
863
|
x: n.value.left + n.value.width / 2,
|
|
856
864
|
y: n.value.bottom + 8 + e.value.style.layout.dataLabels.yAxis.fontSize * 2
|
|
857
|
-
}, C(e.value.style.layout.dataLabels.yAxis.name), 9,
|
|
865
|
+
}, C(e.value.style.layout.dataLabels.yAxis.name), 9, Tl)
|
|
858
866
|
])) : c("", !0),
|
|
859
867
|
d("clipPath", {
|
|
860
|
-
id: `clip_path_${
|
|
868
|
+
id: `clip_path_${S.value}`
|
|
861
869
|
}, [
|
|
862
870
|
d("rect", {
|
|
863
871
|
x: n.value.left,
|
|
864
872
|
y: n.value.top,
|
|
865
873
|
width: n.value.width <= 0 ? 1e-4 : n.value.width,
|
|
866
874
|
height: n.value.height <= 0 ? 1e-4 : n.value.height
|
|
867
|
-
}, null, 8,
|
|
868
|
-
], 8,
|
|
869
|
-
e.value.style.layout.correlation.show ? (o(), i("g",
|
|
870
|
-
(o(!0), i(W, null, Y(
|
|
875
|
+
}, null, 8, Bl)
|
|
876
|
+
], 8, Ll),
|
|
877
|
+
e.value.style.layout.correlation.show ? (o(), i("g", Ol, [
|
|
878
|
+
(o(!0), i(W, null, Y(z.value, (l, s) => (o(), i("line", {
|
|
871
879
|
x1: l.correlation.x1,
|
|
872
880
|
x2: l.correlation.x2,
|
|
873
881
|
y1: l.correlation.y1,
|
|
@@ -875,9 +883,9 @@ const Vt = ["id"], jt = ["xmlns", "viewBox"], Rt = ["width", "height"], Et = { k
|
|
|
875
883
|
"stroke-dasharray": e.value.style.layout.correlation.strokeDasharray,
|
|
876
884
|
stroke: l.color,
|
|
877
885
|
"stroke-width": e.value.style.layout.correlation.strokeWidth,
|
|
878
|
-
"clip-path": `url(#clip_path_${
|
|
879
|
-
}, null, 8,
|
|
880
|
-
(o(!0), i(W, null, Y(
|
|
886
|
+
"clip-path": `url(#clip_path_${S.value})`
|
|
887
|
+
}, null, 8, Nl))), 256)),
|
|
888
|
+
(o(!0), i(W, null, Y(z.value, (l, s) => (o(), i("g", null, [
|
|
881
889
|
e.value.style.layout.correlation.label.show ? (o(), i("text", {
|
|
882
890
|
key: 0,
|
|
883
891
|
x: l.label.x,
|
|
@@ -888,15 +896,15 @@ const Vt = ["id"], jt = ["xmlns", "viewBox"], Rt = ["width", "height"], Et = { k
|
|
|
888
896
|
}, C(u(F)({
|
|
889
897
|
v: u(A)(l.correlation.coefficient),
|
|
890
898
|
r: e.value.style.layout.correlation.label.roundingValue
|
|
891
|
-
})), 9,
|
|
899
|
+
})), 9, Pl)) : c("", !0)
|
|
892
900
|
]))), 256))
|
|
893
901
|
])) : c("", !0),
|
|
894
902
|
M(t.$slots, "svg", { svg: k.value }, void 0, !0)
|
|
895
|
-
], 14,
|
|
896
|
-
t.$slots.watermark ? (o(), i("div",
|
|
897
|
-
M(t.$slots, "watermark",
|
|
903
|
+
], 14, Rt)) : c("", !0),
|
|
904
|
+
t.$slots.watermark ? (o(), i("div", Wl, [
|
|
905
|
+
M(t.$slots, "watermark", te(le({ isPrinting: u(Oe) || u(Ne) })), void 0, !0)
|
|
898
906
|
])) : c("", !0),
|
|
899
|
-
ae.value ? c("", !0) : (o(),
|
|
907
|
+
ae.value ? c("", !0) : (o(), E(u(ot), {
|
|
900
908
|
key: 6,
|
|
901
909
|
config: {
|
|
902
910
|
type: "quadrant",
|
|
@@ -918,17 +926,17 @@ const Vt = ["id"], jt = ["xmlns", "viewBox"], Rt = ["width", "height"], Et = { k
|
|
|
918
926
|
ref_key: "chartLegend",
|
|
919
927
|
ref: we
|
|
920
928
|
}, [
|
|
921
|
-
e.value.style.legend.show ? (o(),
|
|
929
|
+
e.value.style.legend.show ? (o(), E(Yt, {
|
|
922
930
|
key: `legend_${Ae.value}`,
|
|
923
931
|
legendSet: G.value,
|
|
924
|
-
config:
|
|
932
|
+
config: vt.value,
|
|
925
933
|
onClickMarker: r[0] || (r[0] = ({ legend: l }) => Ve(l.id))
|
|
926
934
|
}, {
|
|
927
935
|
item: _(({ legend: l }) => [
|
|
928
936
|
d("div", {
|
|
929
937
|
onClick: (s) => l.segregate(),
|
|
930
938
|
style: j(`opacity:${x.value.includes(l.id) ? 0.5 : 1}`)
|
|
931
|
-
}, C(l.name), 13,
|
|
939
|
+
}, C(l.name), 13, Fl)
|
|
932
940
|
]),
|
|
933
941
|
_: 1
|
|
934
942
|
}, 8, ["legendSet", "config"])) : M(t.$slots, "legend", {
|
|
@@ -944,7 +952,7 @@ const Vt = ["id"], jt = ["xmlns", "viewBox"], Rt = ["width", "height"], Et = { k
|
|
|
944
952
|
}, [
|
|
945
953
|
M(t.$slots, "source", {}, void 0, !0)
|
|
946
954
|
], 512)) : c("", !0),
|
|
947
|
-
ge(u(
|
|
955
|
+
ge(u(st), {
|
|
948
956
|
show: O.value.showTooltip && ie.value,
|
|
949
957
|
backgroundColor: e.value.style.tooltip.backgroundColor,
|
|
950
958
|
color: e.value.style.tooltip.color,
|
|
@@ -955,21 +963,21 @@ const Vt = ["id"], jt = ["xmlns", "viewBox"], Rt = ["width", "height"], Et = { k
|
|
|
955
963
|
backgroundOpacity: e.value.style.tooltip.backgroundOpacity,
|
|
956
964
|
position: e.value.style.tooltip.position,
|
|
957
965
|
offsetY: e.value.style.tooltip.offsetY,
|
|
958
|
-
parent:
|
|
966
|
+
parent: U.value,
|
|
959
967
|
content: ne.value,
|
|
960
|
-
isFullscreen:
|
|
968
|
+
isFullscreen: Q.value,
|
|
961
969
|
isCustom: e.value.style.tooltip.customFormat && typeof e.value.style.tooltip.customFormat == "function"
|
|
962
970
|
}, {
|
|
963
971
|
"tooltip-before": _(() => [
|
|
964
|
-
M(t.$slots, "tooltip-before",
|
|
972
|
+
M(t.$slots, "tooltip-before", te(le({ ...ce.value })), void 0, !0)
|
|
965
973
|
]),
|
|
966
974
|
"tooltip-after": _(() => [
|
|
967
|
-
M(t.$slots, "tooltip-after",
|
|
975
|
+
M(t.$slots, "tooltip-after", te(le({ ...ce.value })), void 0, !0)
|
|
968
976
|
]),
|
|
969
977
|
default: _(() => [
|
|
970
|
-
e.value.style.tooltip.showShape ? (o(), i("div",
|
|
971
|
-
(o(), i("svg",
|
|
972
|
-
ge(
|
|
978
|
+
e.value.style.tooltip.showShape ? (o(), i("div", Il, [
|
|
979
|
+
(o(), i("svg", Xl, [
|
|
980
|
+
ge(Je, {
|
|
973
981
|
shape: y.value.shape,
|
|
974
982
|
color: y.value.color,
|
|
975
983
|
plot: { x: 10, y: 10 },
|
|
@@ -980,7 +988,7 @@ const Vt = ["id"], jt = ["xmlns", "viewBox"], Rt = ["width", "height"], Et = { k
|
|
|
980
988
|
]),
|
|
981
989
|
_: 3
|
|
982
990
|
}, 8, ["show", "backgroundColor", "color", "borderRadius", "borderColor", "borderWidth", "fontSize", "backgroundOpacity", "position", "offsetY", "parent", "content", "isFullscreen", "isCustom"]),
|
|
983
|
-
ae.value ? (o(),
|
|
991
|
+
ae.value ? (o(), E(u(et), {
|
|
984
992
|
key: 8,
|
|
985
993
|
hideDetails: "",
|
|
986
994
|
config: {
|
|
@@ -997,7 +1005,7 @@ const Vt = ["id"], jt = ["xmlns", "viewBox"], Rt = ["width", "height"], Et = { k
|
|
|
997
1005
|
}
|
|
998
1006
|
}, {
|
|
999
1007
|
content: _(() => [
|
|
1000
|
-
(o(),
|
|
1008
|
+
(o(), E(u(tt), {
|
|
1001
1009
|
key: `table_${Ce.value}`,
|
|
1002
1010
|
colNames: se.value.colNames,
|
|
1003
1011
|
head: se.value.head,
|
|
@@ -1007,24 +1015,24 @@ const Vt = ["id"], jt = ["xmlns", "viewBox"], Rt = ["width", "height"], Et = { k
|
|
|
1007
1015
|
onClose: r[1] || (r[1] = (l) => O.value.showTable = !1)
|
|
1008
1016
|
}, {
|
|
1009
1017
|
th: _(({ th: l }) => [
|
|
1010
|
-
|
|
1018
|
+
mt(C(l), 1)
|
|
1011
1019
|
]),
|
|
1012
1020
|
td: _(({ td: l }) => [
|
|
1013
|
-
l.shape ? (o(), i("div",
|
|
1021
|
+
l.shape ? (o(), i("div", Yl, [
|
|
1014
1022
|
d("span", null, C(l.content), 1)
|
|
1015
1023
|
])) : (o(), i("div", {
|
|
1016
1024
|
key: 1,
|
|
1017
1025
|
innerHTML: l
|
|
1018
|
-
}, null, 8,
|
|
1026
|
+
}, null, 8, Dl))
|
|
1019
1027
|
]),
|
|
1020
1028
|
_: 1
|
|
1021
1029
|
}, 8, ["colNames", "head", "body", "config", "title"]))
|
|
1022
1030
|
]),
|
|
1023
1031
|
_: 1
|
|
1024
1032
|
}, 8, ["config"])) : c("", !0)
|
|
1025
|
-
], 46,
|
|
1033
|
+
], 46, Et));
|
|
1026
1034
|
}
|
|
1027
|
-
},
|
|
1035
|
+
}, ta = /* @__PURE__ */ jt(Vl, [["__scopeId", "data-v-c8a05df5"]]);
|
|
1028
1036
|
export {
|
|
1029
|
-
|
|
1037
|
+
ta as default
|
|
1030
1038
|
};
|