vue-data-ui 3.1.3 → 3.1.5
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-DBaAWGvq.js → Arrow-BFbcF5Sq.js} +1 -1
- package/dist/{BaseDraggableDialog-BmN9jTP8.js → BaseDraggableDialog-BO4B1Kwa.js} +2 -2
- package/dist/{BaseIcon-BcOSijbz.js → BaseIcon-BQQGRQ2U.js} +1 -1
- package/dist/{ColorPicker-D1yNPt76.js → ColorPicker-d1kmGapq.js} +2 -2
- package/dist/{DataTable-Cm8Tt9PQ.js → DataTable-D6voeZvO.js} +2 -2
- package/dist/{Legend-5qvgVkrY.js → Legend-nPGcCxG_.js} +2 -2
- package/dist/{NonSvgPenAndPaper-D3QGd7vP.js → NonSvgPenAndPaper-xRGRe41H.js} +3 -3
- package/dist/{PackageVersion-0XlRFsI_.js → PackageVersion-BeStrsPr.js} +1 -1
- package/dist/{PenAndPaper-CyH7Ip2i.js → PenAndPaper-C6tiapdo.js} +3 -3
- package/dist/{Shape-DiplSMFy.js → Shape-DBVq0fdK.js} +1 -1
- package/dist/Slicer-Duqm7KZK.js +597 -0
- package/dist/{SparkTooltip-VveQSwlw.js → SparkTooltip-wNGmXZSx.js} +1 -1
- package/dist/{Title-CqYBs02Y.js → Title-ydtId0LC.js} +1 -1
- package/dist/Tooltip-oeu9knGI.js +200 -0
- package/dist/{UserOptions-ZmwlARCV.js → UserOptions-CnJxN2Vo.js} +29 -29
- package/dist/{dom-to-png-DGA4a3xT.js → dom-to-png-CMCYtLrX.js} +1 -1
- package/dist/{img-DSrvx9J6.js → img-Neec0VVb.js} +1 -1
- package/dist/{index-CaxArMHL.js → index-BkfuZCRT.js} +7 -2
- package/dist/{pdf-BG8PiGFH.js → pdf-CpQ-dqJh.js} +1 -1
- package/dist/style.css +1 -1
- package/dist/types/vue-data-ui.d.cts +12 -0
- package/dist/types/vue-data-ui.d.ts +12 -0
- package/dist/{useAutoSizeLabelsInsideViewbox-DmtFf4bt.js → useAutoSizeLabelsInsideViewbox-DR2HExYc.js} +1 -1
- package/dist/{useNestedProp-tWT02_6S.js → useNestedProp-BMzw9VUz.js} +1 -1
- package/dist/{usePrinter-BYtPmEo8.js → usePrinter-CEdg3j8S.js} +2 -2
- package/dist/{vue-data-ui-DVb8r5z7.js → vue-data-ui-D5B7a84o.js} +64 -64
- package/dist/vue-data-ui.js +1 -1
- package/dist/{vue-ui-3d-bar-BLKyWpz7.js → vue-ui-3d-bar-C8_Qu1rf.js} +6 -6
- package/dist/{vue-ui-accordion-DUlNpLir.js → vue-ui-accordion-DFxAHGEZ.js} +3 -3
- package/dist/{vue-ui-age-pyramid-LLqbXP1m.js → vue-ui-age-pyramid-D_kTImtX.js} +43 -41
- package/dist/{vue-ui-annotator-CcYIlcKF.js → vue-ui-annotator-B1vSlzfu.js} +2 -2
- package/dist/{vue-ui-bullet-BKmts_u4.js → vue-ui-bullet-VPchh2r2.js} +7 -7
- package/dist/{vue-ui-candlestick-C9l_NpXu.js → vue-ui-candlestick-CB3bj7_-.js} +42 -40
- package/dist/{vue-ui-carousel-table-H7xS6aBC.js → vue-ui-carousel-table-CUiSyrTY.js} +4 -4
- package/dist/{vue-ui-chestnut-CAW0IOdY.js → vue-ui-chestnut-BE5ZEt1N.js} +5 -5
- package/dist/{vue-ui-chord-CK5YhCqM.js → vue-ui-chord-DVSBY9ou.js} +8 -8
- package/dist/{vue-ui-circle-pack-NLyZgTGF.js → vue-ui-circle-pack-BfDjZFaF.js} +6 -6
- package/dist/{vue-ui-cursor-CyGUrKWU.js → vue-ui-cursor-BIuc6nds.js} +2 -2
- package/dist/{vue-ui-dashboard-Cf5pvEzD.js → vue-ui-dashboard-C7xIcrvD.js} +79 -80
- package/dist/{vue-ui-digits-BZWwwp7c.js → vue-ui-digits-C3mI-0Fg.js} +2 -2
- package/dist/{vue-ui-donut-g1WHrj6G.js → vue-ui-donut-BApz1ho5.js} +52 -50
- package/dist/{vue-ui-donut-evolution-CaEYMVZj.js → vue-ui-donut-evolution-B2PJiYY9.js} +8 -8
- package/dist/{vue-ui-dumbbell-BArS1nXS.js → vue-ui-dumbbell-DQjVvBH_.js} +7 -7
- package/dist/{vue-ui-flow-BR0CB5qt.js → vue-ui-flow-COtJRNLE.js} +40 -38
- package/dist/{vue-ui-funnel-D2OCItvq.js → vue-ui-funnel-BY2qeg-m.js} +6 -6
- package/dist/{vue-ui-galaxy-qgGF1AAf.js → vue-ui-galaxy-3zec_QLi.js} +58 -56
- package/dist/{vue-ui-gauge-BIXmGyQL.js → vue-ui-gauge-CFUA5ORH.js} +8 -8
- package/dist/{vue-ui-gizmo-DHEoS051.js → vue-ui-gizmo-CUPFU8GE.js} +3 -3
- package/dist/{vue-ui-heatmap-tRzq9BnI.js → vue-ui-heatmap-DakytdCv.js} +68 -66
- package/dist/{vue-ui-history-plot-DmwHhrDk.js → vue-ui-history-plot-DnSB7au4.js} +85 -83
- package/dist/{vue-ui-kpi-C2b2R5i1.js → vue-ui-kpi-UmcKQftv.js} +3 -3
- package/dist/{vue-ui-mini-loader-Bs1Mi1tD.js → vue-ui-mini-loader-Bl8GHasa.js} +2 -2
- package/dist/{vue-ui-molecule-BsUvf2v7.js → vue-ui-molecule-BZrmSVps.js} +63 -61
- package/dist/{vue-ui-mood-radar-D3JIpVvX.js → vue-ui-mood-radar-CVM8vl5N.js} +7 -7
- package/dist/{vue-ui-nested-donuts-dJEgQXTH.js → vue-ui-nested-donuts-LTzijeVK.js} +70 -68
- package/dist/{vue-ui-onion-D8dF1DdA.js → vue-ui-onion-aHCc3r7L.js} +38 -36
- package/dist/{vue-ui-parallel-coordinate-plot-LmFsg7UA.js → vue-ui-parallel-coordinate-plot-0xXe6A-6.js} +54 -52
- package/dist/{vue-ui-quadrant-C4O8ki4N.js → vue-ui-quadrant-BlM9WNN7.js} +203 -201
- package/dist/{vue-ui-quick-chart-6bEtTQBG.js → vue-ui-quick-chart-CJ2Wdln9.js} +152 -150
- package/dist/{vue-ui-radar-CfjGWGk3.js → vue-ui-radar-Cgnooz7-.js} +121 -119
- package/dist/{vue-ui-rating-D3WSs2OD.js → vue-ui-rating-DF71ymNG.js} +2 -2
- package/dist/{vue-ui-relation-circle-DzTfi7Tf.js → vue-ui-relation-circle-DsuEL1gY.js} +7 -7
- package/dist/{vue-ui-ridgeline-NtYOJvDy.js → vue-ui-ridgeline-DxP8uxgx.js} +8 -8
- package/dist/{vue-ui-rings-CYQ4i71V.js → vue-ui-rings-C4hKgrft.js} +162 -160
- package/dist/{vue-ui-scatter-meJEHdAD.js → vue-ui-scatter-B_SzTSE5.js} +157 -155
- package/dist/{vue-ui-skeleton-BtILTxx-.js → vue-ui-skeleton-DCAlHSMV.js} +3 -3
- package/dist/{vue-ui-smiley-B5bELpYD.js → vue-ui-smiley-B_JFtrl6.js} +2 -2
- package/dist/{vue-ui-spark-trend-lixdWq_N.js → vue-ui-spark-trend-CC7q1UbE.js} +3 -3
- package/dist/{vue-ui-sparkbar-CaGPav-J.js → vue-ui-sparkbar-C2YRX4mJ.js} +3 -3
- package/dist/{vue-ui-sparkgauge-BZBGYDjs.js → vue-ui-sparkgauge-BO4c3j-8.js} +3 -3
- package/dist/{vue-ui-sparkhistogram-Bp6KxpjH.js → vue-ui-sparkhistogram-BuGOHT9h.js} +4 -4
- package/dist/{vue-ui-sparkline-CF-EAZa6.js → vue-ui-sparkline-hOyPCIt8.js} +3 -3
- package/dist/{vue-ui-sparkstackbar-Cj1LAYC8.js → vue-ui-sparkstackbar-DhSc-U8u.js} +36 -34
- package/dist/{vue-ui-stackbar-BrzKhqAK.js → vue-ui-stackbar-VdBWv1wm.js} +14 -12
- package/dist/{vue-ui-strip-plot-BfVVaSFn.js → vue-ui-strip-plot-CBj5ntWM.js} +58 -56
- package/dist/{vue-ui-table-CBzNgzVP.js → vue-ui-table-BItmKbvF.js} +156 -121
- package/dist/{vue-ui-table-heatmap-CKz5bA7N.js → vue-ui-table-heatmap-DziHVKba.js} +5 -5
- package/dist/{vue-ui-table-sparkline-O-Z0YH6u.js → vue-ui-table-sparkline-CpWDqm7q.js} +4 -4
- package/dist/{vue-ui-thermometer-DpNyTGNH.js → vue-ui-thermometer-CWt0q_Tu.js} +7 -7
- package/dist/{vue-ui-timer-uvshaRMI.js → vue-ui-timer-BIv2sfQA.js} +5 -5
- package/dist/{vue-ui-tiremarks-A8Akuz-q.js → vue-ui-tiremarks-BE_VWjK-.js} +6 -6
- package/dist/{vue-ui-treemap-Dvmuo3tM.js → vue-ui-treemap-2AIbDpTo.js} +41 -39
- package/dist/{vue-ui-vertical-bar-eMgRMSKN.js → vue-ui-vertical-bar-CP-XFVV5.js} +53 -51
- package/dist/{vue-ui-waffle-Cm8VfnG8.js → vue-ui-waffle-CewP8k-W.js} +67 -65
- package/dist/{vue-ui-wheel-Bhsklf_m.js → vue-ui-wheel-Ik8FoLfz.js} +6 -6
- package/dist/{vue-ui-word-cloud-C9HGLsG4.js → vue-ui-word-cloud-CEEc5ep_.js} +83 -80
- package/dist/{vue-ui-world-B_MrjwGJ.js → vue-ui-world-CuwXMI3D.js} +11 -9
- package/dist/{vue-ui-xy-DnYJw2aS.js → vue-ui-xy-Bsh2OBHp.js} +1326 -1329
- package/dist/{vue-ui-xy-canvas-C0Snw0Dz.js → vue-ui-xy-canvas-CKzjhhNg.js} +46 -44
- package/package.json +1 -1
- package/dist/Slicer-DG99wPTy.js +0 -604
- package/dist/Tooltip-CP0tVHAf.js +0 -161
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
import { defineAsyncComponent as se, computed as
|
|
2
|
-
import { u as
|
|
1
|
+
import { defineAsyncComponent as se, computed as F, ref as M, toRefs as il, watch as Be, shallowRef as Lt, onMounted as rl, onBeforeUnmount as vl, createElementBlock as y, openBlock as r, unref as c, normalizeStyle as ne, normalizeClass as Bt, createBlock as le, createCommentVNode as x, createElementVNode as w, createVNode as $e, createSlots as Tt, withCtx as X, renderSlot as V, normalizeProps as pe, guardReactiveProps as fe, Fragment as Z, renderList as K, toDisplayString as G, Teleport as yl, resolveDynamicComponent as cl, mergeProps as dl, createTextVNode as zt, nextTick as hl } from "vue";
|
|
2
|
+
import { u as pl, c as fl, t as gl, a as ml, p as ye, b as xl, o as Pt, f as Je, d as bl, g as Ot, Y as kl, e as Ke, a3 as wl, V as _l, s as Te, X as $l, Z as Ml, k as ue, h as q, i as Q, v as Cl, w as Al, y as Sl, z as Ll } from "./index-BkfuZCRT.js";
|
|
3
3
|
import { t as Bl, u as Tl } from "./useResponsive-DfdjqQps.js";
|
|
4
4
|
import { u as zl, B as Pl } from "./BaseScanner-BgWxam9d.js";
|
|
5
|
-
import { u as Ol } from "./usePrinter-
|
|
6
|
-
import { u as Dt } from "./useNestedProp-
|
|
5
|
+
import { u as Ol } from "./usePrinter-CEdg3j8S.js";
|
|
6
|
+
import { u as Dt } from "./useNestedProp-BMzw9VUz.js";
|
|
7
7
|
import { u as Dl } from "./useUserOptionState-BIvW1Kz7.js";
|
|
8
8
|
import { u as El } from "./useChartAccessibility-9icAAmYg.js";
|
|
9
|
-
import
|
|
10
|
-
import
|
|
11
|
-
import { _ as Qe } from "./Shape-
|
|
12
|
-
import
|
|
9
|
+
import Fl from "./Legend-nPGcCxG_.js";
|
|
10
|
+
import Wl from "./Title-ydtId0LC.js";
|
|
11
|
+
import { _ as Qe } from "./Shape-DBVq0fdK.js";
|
|
12
|
+
import Nl from "./img-Neec0VVb.js";
|
|
13
13
|
import { _ as Il } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
14
14
|
const Xl = ["id"], Yl = ["id"], Rl = ["xmlns", "viewBox"], Vl = ["width", "height"], jl = { key: 1 }, Ul = ["x1", "x2", "y1", "y2", "stroke", "stroke-width"], Gl = ["x1", "x2", "y1", "y2", "stroke", "stroke-width"], ql = { key: 2 }, Hl = ["id"], Zl = ["stop-color"], Jl = ["stop-color"], Kl = ["id"], Ql = ["stop-color"], ea = ["stop-color"], ta = ["x", "y", "width", "height", "fill", "stroke", "stroke-width", "rx"], la = ["x", "y", "width", "height", "onMouseenter"], aa = {
|
|
15
15
|
key: 2,
|
|
@@ -20,13 +20,13 @@ const Xl = ["id"], Yl = ["id"], Rl = ["xmlns", "viewBox"], Vl = ["width", "heigh
|
|
|
20
20
|
}, va = ["x", "y", "width", "height", "fill", "fill-opacity"], ya = ["x1", "x2", "y1", "y2", "stroke", "stroke-dasharray", "stroke-width"], ca = ["x1", "x2", "y1", "y2", "stroke", "stroke-dasharray", "stroke-width"], da = {
|
|
21
21
|
key: 0,
|
|
22
22
|
style: { "pointer-events": "none" }
|
|
23
|
-
}, ha = ["d", "stroke", "stroke-width"],
|
|
23
|
+
}, ha = ["d", "stroke", "stroke-width"], pa = ["d", "stroke", "stroke-width"], fa = ["d", "stroke", "stroke-width"], ga = ["d", "stroke", "stroke-width"], ma = { key: 3 }, xa = ["points", "fill", "stroke-width", "stroke-dasharray", "stroke"], ba = { key: 0 }, ka = ["cx", "cy", "r", "fill", "stroke", "stroke-width", "onMouseover", "onMouseleave", "onClick"], wa = { key: 1 }, _a = ["clip-path"], $a = ["d", "fill", "stroke", "stroke-width", "stroke-opacity"], Ma = {
|
|
24
24
|
key: 0,
|
|
25
25
|
style: { "pointer-events": "none" }
|
|
26
26
|
}, Ca = ["x", "y", "width", "height"], Aa = {
|
|
27
27
|
key: 6,
|
|
28
28
|
style: { "pointer-events": "none !important" }
|
|
29
|
-
}, Sa = ["x1", "x2", "y1", "y2", "stroke", "stroke-width", "stroke-dasharray"], La = ["x1", "x2", "y1", "y2", "stroke", "stroke-width", "stroke-dasharray"], Ba = ["x", "y", "font-size", "fill", "font-weight", "text-anchor"], Ta = ["x", "y", "font-size", "fill", "font-weight"], za = ["cx", "cy", "r", "fill", "stroke", "stroke-width"], Pa = ["cx", "cy", "r", "fill", "stroke", "stroke-width"], Oa = ["x", "y", "font-size", "fill", "font-weight", "text-anchor"], Da = ["id", "transform", "font-size", "font-weight", "fill"], Ea = ["font-size", "fill", "transform"],
|
|
29
|
+
}, Sa = ["x1", "x2", "y1", "y2", "stroke", "stroke-width", "stroke-dasharray"], La = ["x1", "x2", "y1", "y2", "stroke", "stroke-width", "stroke-dasharray"], Ba = ["x", "y", "font-size", "fill", "font-weight", "text-anchor"], Ta = ["x", "y", "font-size", "fill", "font-weight"], za = ["cx", "cy", "r", "fill", "stroke", "stroke-width"], Pa = ["cx", "cy", "r", "fill", "stroke", "stroke-width"], Oa = ["x", "y", "font-size", "fill", "font-weight", "text-anchor"], Da = ["id", "transform", "font-size", "font-weight", "fill"], Ea = ["font-size", "fill", "transform"], Fa = ["transform", "font-size", "fill"], Wa = ["x", "y", "font-size", "fill"], Na = ["x", "y", "font-size", "fill"], Ia = ["font-size", "font-weight", "fill", "x", "y"], Xa = ["id"], Ya = ["x", "y", "width", "height"], Ra = {
|
|
30
30
|
key: 11,
|
|
31
31
|
style: { pointerEvents: "none" }
|
|
32
32
|
}, Va = ["x1", "x2", "y1", "y2", "stroke-dasharray", "stroke", "stroke-width", "clip-path"], ja = ["x", "y", "fill", "font-size", "font-weight"], Ua = {
|
|
@@ -56,11 +56,11 @@ const Xl = ["id"], Yl = ["id"], Rl = ["xmlns", "viewBox"], Vl = ["width", "heigh
|
|
|
56
56
|
}
|
|
57
57
|
}
|
|
58
58
|
},
|
|
59
|
-
setup(Et, { expose:
|
|
60
|
-
const
|
|
59
|
+
setup(Et, { expose: Ft }) {
|
|
60
|
+
const Wt = se(() => import("./Tooltip-oeu9knGI.js")), Nt = se(() => import("./BaseIcon-BQQGRQ2U.js")), It = se(() => import("./vue-ui-accordion-DFxAHGEZ.js")), Xt = se(() => import("./DataTable-D6voeZvO.js")), Yt = se(() => import("./PenAndPaper-C6tiapdo.js")), Rt = se(() => import("./UserOptions-CnJxN2Vo.js")), Vt = se(() => import("./PackageVersion-BeStrsPr.js")), jt = se(() => import("./BaseDraggableDialog-BO4B1Kwa.js")), { vue_ui_scatter: Ut } = pl(), ee = Et, et = F(() => !!ee.dataset && ee.dataset.length), W = M(fl()), ze = M(!1), Pe = M(""), tt = M(0), te = M(null), lt = M(null), at = M(null), ot = M(null), st = M(null), nt = M(0), ut = M(0), it = M(0), N = M([]), rt = M(!1), ge = M(null), me = M(null), xe = M(null), Oe = M(null), De = M(null), Gt = M(null), qt = M(null), Ee = M(null), e = M(Xe());
|
|
61
61
|
function Ht(l = 100, s = 0.8, t = {}) {
|
|
62
|
-
const { meanX: o = 0, sdX: a = 1, meanY: u = 0, sdY: i = 1, seed:
|
|
63
|
-
let v = (
|
|
62
|
+
const { meanX: o = 0, sdX: a = 1, meanY: u = 0, sdY: i = 1, seed: p } = t;
|
|
63
|
+
let v = (p ?? Math.floor(Math.random() * 2 ** 31)) >>> 0;
|
|
64
64
|
const g = () => (v = v * 1664525 + 1013904223 >>> 0, v / 2 ** 32), L = () => {
|
|
65
65
|
let m = 0, O = 0;
|
|
66
66
|
for (; m === 0; ) m = g();
|
|
@@ -79,7 +79,7 @@ const Xl = ["id"], Yl = ["id"], Rl = ["xmlns", "viewBox"], Vl = ["width", "heigh
|
|
|
79
79
|
}
|
|
80
80
|
return he.map((m, O) => ({ x: m, y: we[O] }));
|
|
81
81
|
}
|
|
82
|
-
const { loading: vt, FINAL_DATASET:
|
|
82
|
+
const { loading: vt, FINAL_DATASET: Fe, manualLoading: We } = zl({
|
|
83
83
|
...il(ee),
|
|
84
84
|
FINAL_CONFIG: e,
|
|
85
85
|
prepareConfig: Xe,
|
|
@@ -123,7 +123,7 @@ const Xl = ["id"], Yl = ["id"], Rl = ["xmlns", "viewBox"], Vl = ["width", "heigh
|
|
|
123
123
|
}
|
|
124
124
|
}
|
|
125
125
|
})
|
|
126
|
-
}), { userOptionsVisible:
|
|
126
|
+
}), { userOptionsVisible: Ne, setUserOptionsVisibility: yt, keepUserOptionState: ct } = Dl({ config: e.value }), { svgRef: Ie } = El({ config: e.value.style.title });
|
|
127
127
|
function Xe() {
|
|
128
128
|
const l = Dt({
|
|
129
129
|
userConfig: ee.config,
|
|
@@ -138,7 +138,7 @@ const Xl = ["id"], Yl = ["id"], Rl = ["xmlns", "viewBox"], Vl = ["width", "heigh
|
|
|
138
138
|
} : l;
|
|
139
139
|
}
|
|
140
140
|
Be(() => ee.config, (l) => {
|
|
141
|
-
vt.value || (e.value = Xe()),
|
|
141
|
+
vt.value || (e.value = Xe()), Ne.value = !e.value.userOptions.showOnChartHover, ht(), nt.value += 1, ut.value += 1, it.value += 1, H.value.showTable = e.value.table.show, H.value.showTooltip = e.value.style.tooltip.show, dt.value && e.value.usePerformanceMode && console.warn(`VueUiScatter : You are using performance mode
|
|
142
142
|
|
|
143
143
|
- downsampling is disabled in this mode, all plots are rendered
|
|
144
144
|
|
|
@@ -148,19 +148,19 @@ const Xl = ["id"], Yl = ["id"], Rl = ["xmlns", "viewBox"], Vl = ["width", "heigh
|
|
|
148
148
|
|
|
149
149
|
ℹ️ To remove this warning, set config.debug to false.`);
|
|
150
150
|
}, { deep: !0 }), Be(() => ee.dataset, (l) => {
|
|
151
|
-
Array.isArray(l) && l.length > 0 && (
|
|
151
|
+
Array.isArray(l) && l.length > 0 && (We.value = !1);
|
|
152
152
|
}, { deep: !0 });
|
|
153
153
|
const ae = Lt(null), ce = Lt(null);
|
|
154
154
|
rl(() => {
|
|
155
155
|
rt.value = !0, ht();
|
|
156
156
|
});
|
|
157
|
-
const dt =
|
|
157
|
+
const dt = F(() => !!e.value.debug);
|
|
158
158
|
function ht() {
|
|
159
159
|
if (Pt(ee.dataset) && (Je({
|
|
160
160
|
componentName: "VueUiScatter",
|
|
161
161
|
type: "dataset",
|
|
162
162
|
debug: dt.value
|
|
163
|
-
}),
|
|
163
|
+
}), We.value = !0), Pt(ee.dataset) || (We.value = e.value.loading), e.value.responsive) {
|
|
164
164
|
const l = Bl(() => {
|
|
165
165
|
const { width: s, height: t } = Tl({
|
|
166
166
|
chart: te.value,
|
|
@@ -179,11 +179,11 @@ const Xl = ["id"], Yl = ["id"], Rl = ["xmlns", "viewBox"], Vl = ["width", "heigh
|
|
|
179
179
|
vl(() => {
|
|
180
180
|
ae.value && (ce.value && ae.value.unobserve(ce.value), ae.value.disconnect());
|
|
181
181
|
});
|
|
182
|
-
const { isPrinting:
|
|
183
|
-
elementId: `vue-ui-scatter_${
|
|
182
|
+
const { isPrinting: pt, isImaging: ft, generatePdf: gt, generateImage: mt } = Ol({
|
|
183
|
+
elementId: `vue-ui-scatter_${W.value}`,
|
|
184
184
|
fileName: e.value.style.title.text || "vue-ui-scatter",
|
|
185
185
|
options: e.value.userOptions.print
|
|
186
|
-
}), Zt =
|
|
186
|
+
}), Zt = F(() => e.value.userOptions.show && !e.value.style.title.text), xt = F(() => bl(e.value.customPalette)), H = M({
|
|
187
187
|
showTable: e.value.table.show,
|
|
188
188
|
showTooltip: e.value.style.tooltip.show
|
|
189
189
|
});
|
|
@@ -196,7 +196,7 @@ const Xl = ["id"], Yl = ["id"], Rl = ["xmlns", "viewBox"], Vl = ["width", "heigh
|
|
|
196
196
|
const D = M({
|
|
197
197
|
height: e.value.style.layout.height,
|
|
198
198
|
width: e.value.style.layout.width
|
|
199
|
-
}), Me =
|
|
199
|
+
}), Me = F(() => e.value.style.layout.marginalBars.show ? e.value.style.layout.marginalBars.size + e.value.style.layout.marginalBars.offset : 0), n = F(() => {
|
|
200
200
|
let l = 0, s = 0;
|
|
201
201
|
return De.value && (l = De.value.getBBox().width + 6), Ee.value && (s = Ee.value.getBBox().height + 6), {
|
|
202
202
|
top: e.value.style.layout.padding.top + Me.value + e.value.style.layout.dataLabels.yAxis.fontSize * 2,
|
|
@@ -206,8 +206,8 @@ const Xl = ["id"], Yl = ["id"], Rl = ["xmlns", "viewBox"], Vl = ["width", "heigh
|
|
|
206
206
|
height: D.value.height - e.value.style.layout.padding.top - e.value.style.layout.padding.bottom - Me.value - s - e.value.style.layout.dataLabels.yAxis.fontSize * 2,
|
|
207
207
|
width: D.value.width - e.value.style.layout.padding.left - e.value.style.layout.padding.right - Me.value - l - 6
|
|
208
208
|
};
|
|
209
|
-
}), z =
|
|
210
|
-
|
|
209
|
+
}), z = F(() => {
|
|
210
|
+
Fe.value.forEach((a, u) => {
|
|
211
211
|
Ot({
|
|
212
212
|
datasetObject: a,
|
|
213
213
|
requiredAttributes: ["values"]
|
|
@@ -218,7 +218,7 @@ const Xl = ["id"], Yl = ["id"], Rl = ["xmlns", "viewBox"], Vl = ["width", "heigh
|
|
|
218
218
|
property: i,
|
|
219
219
|
index: u
|
|
220
220
|
});
|
|
221
|
-
}), a.values && a.values.forEach((i,
|
|
221
|
+
}), a.values && a.values.forEach((i, p) => {
|
|
222
222
|
Ot({
|
|
223
223
|
datasetObject: i,
|
|
224
224
|
requiredAttributes: ["x", "y"]
|
|
@@ -227,18 +227,18 @@ const Xl = ["id"], Yl = ["id"], Rl = ["xmlns", "viewBox"], Vl = ["width", "heigh
|
|
|
227
227
|
componentName: "VueUiScatter",
|
|
228
228
|
type: "datasetSerieAttribute",
|
|
229
229
|
property: `values.${v}`,
|
|
230
|
-
index: `${u} - ${
|
|
230
|
+
index: `${u} - ${p}`
|
|
231
231
|
});
|
|
232
232
|
});
|
|
233
233
|
});
|
|
234
234
|
});
|
|
235
|
-
const l = Math.min(...ie.value.filter((a) => !
|
|
235
|
+
const l = Math.min(...ie.value.filter((a) => !N.value.includes(a.id)).flatMap((a) => a.values.map((u) => u.x))), s = Math.max(...ie.value.filter((a) => !N.value.includes(a.id)).flatMap((a) => a.values.map((u) => u.x))), t = Math.min(...ie.value.filter((a) => !N.value.includes(a.id)).flatMap((a) => a.values.map((u) => u.y))), o = Math.max(...ie.value.filter((a) => !N.value.includes(a.id)).flatMap((a) => a.values.map((u) => u.y)));
|
|
236
236
|
return { xMin: l >= 0 ? 0 : l, xMax: s, yMin: t >= 0 ? 0 : t, yMax: o };
|
|
237
|
-
}), E =
|
|
237
|
+
}), E = F(() => ({
|
|
238
238
|
x: n.value.left + Math.abs(z.value.xMin) / (z.value.xMax + Math.abs(z.value.xMin)) * n.value.width,
|
|
239
239
|
y: n.value.bottom - Math.abs(z.value.yMin) / (z.value.yMax + Math.abs(z.value.yMin)) * n.value.height
|
|
240
|
-
})), ie =
|
|
241
|
-
const t = `cluster_${
|
|
240
|
+
})), ie = F(() => Fe.value.map((l, s) => {
|
|
241
|
+
const t = `cluster_${W.value}_${s}`;
|
|
242
242
|
return {
|
|
243
243
|
...l,
|
|
244
244
|
values: kl({
|
|
@@ -247,19 +247,19 @@ const Xl = ["id"], Yl = ["id"], Rl = ["xmlns", "viewBox"], Vl = ["width", "heigh
|
|
|
247
247
|
}),
|
|
248
248
|
id: t,
|
|
249
249
|
color: l.color ? l.color : xt.value[s] || ye[s] || ye[s % ye.length],
|
|
250
|
-
opacity:
|
|
250
|
+
opacity: N.value.includes(t) ? 0.5 : 1,
|
|
251
251
|
shape: l.shape ?? "circle",
|
|
252
252
|
segregate: () => wt(t),
|
|
253
|
-
isSegregated:
|
|
253
|
+
isSegregated: N.value.includes(t)
|
|
254
254
|
};
|
|
255
|
-
})), Jt =
|
|
255
|
+
})), Jt = F(() => ({
|
|
256
256
|
cy: "scatter-div-legend",
|
|
257
257
|
backgroundColor: e.value.style.legend.backgroundColor,
|
|
258
258
|
color: e.value.style.legend.color,
|
|
259
259
|
fontSize: e.value.style.legend.fontSize,
|
|
260
260
|
paddingBottom: 12,
|
|
261
261
|
fontWeight: e.value.style.legend.bold ? "bold" : ""
|
|
262
|
-
})), Ye =
|
|
262
|
+
})), Ye = F(() => ie.value.map((l, s) => ({
|
|
263
263
|
...l,
|
|
264
264
|
plots: l.values.map((t) => ({
|
|
265
265
|
x: n.value.left + (t.x + Math.abs(z.value.xMin)) / (z.value.xMax + Math.abs(z.value.xMin)) * n.value.width,
|
|
@@ -270,15 +270,15 @@ const Xl = ["id"], Yl = ["id"], Rl = ["xmlns", "viewBox"], Vl = ["width", "heigh
|
|
|
270
270
|
},
|
|
271
271
|
clusterName: l.name,
|
|
272
272
|
color: l.color ? l.color : xt.value[s] || ye[s] || ye[s % ye.length],
|
|
273
|
-
id: `plot_${
|
|
273
|
+
id: `plot_${W.value}_${Math.random()}`,
|
|
274
274
|
weight: t.weight ?? e.value.style.layout.plots.radius
|
|
275
275
|
}))
|
|
276
|
-
})).filter((l) => !
|
|
276
|
+
})).filter((l) => !N.value.includes(l.id))), j = F(() => {
|
|
277
277
|
const s = ({ m: t, b: o, rect: a, verticalX: u = null }) => {
|
|
278
|
-
const { left: i, right:
|
|
278
|
+
const { left: i, right: p, top: v, bottom: g } = a, L = [], d = (_, h) => {
|
|
279
279
|
Number.isFinite(_) && Number.isFinite(h) && L.push({ x: _, y: h });
|
|
280
|
-
}, $ = ({ x: _, y: h }) => _ >= i - 1e-9 && _ <=
|
|
281
|
-
u !== null ? u >= i - 1e-9 && u <=
|
|
280
|
+
}, $ = ({ x: _, y: h }) => _ >= i - 1e-9 && _ <= p + 1e-9 && h >= v - 1e-9 && h <= g + 1e-9;
|
|
281
|
+
u !== null ? u >= i - 1e-9 && u <= p + 1e-9 && (d(u, v), d(u, g)) : Number.isFinite(t) && (d(i, t * i + o), d(p, t * p + o), Math.abs(t) > 1e-9 ? (d((v - o) / t, v), d((g - o) / t, g)) : o >= v - 1e-9 && o <= g + 1e-9 && (d(i, o), d(p, o)));
|
|
282
282
|
const P = L.filter($), C = [];
|
|
283
283
|
for (const _ of P)
|
|
284
284
|
C.some((h) => Math.abs(h.x - _.x) < 1e-6 && Math.abs(h.y - _.y) < 1e-6) || C.push(_);
|
|
@@ -293,13 +293,13 @@ const Xl = ["id"], Yl = ["id"], Rl = ["xmlns", "viewBox"], Vl = ["width", "heigh
|
|
|
293
293
|
};
|
|
294
294
|
return Ye.value.map((t) => {
|
|
295
295
|
const o = t.plots.length, a = t.plots.reduce((h, S) => h + S.x, 0) / o, u = t.plots.reduce((h, S) => h + S.y, 0) / o;
|
|
296
|
-
let i = 0,
|
|
296
|
+
let i = 0, p = 0;
|
|
297
297
|
for (const h of t.plots) {
|
|
298
298
|
const S = h.x - a, U = h.y - u;
|
|
299
|
-
i += S * U,
|
|
299
|
+
i += S * U, p += S * S;
|
|
300
300
|
}
|
|
301
301
|
let v, g, L = null;
|
|
302
|
-
|
|
302
|
+
p < 1e-9 ? (L = a, v = 1 / 0, g = null) : (v = i / p, g = u - v * a);
|
|
303
303
|
let d, $;
|
|
304
304
|
L !== null ? (d = 1 / 0, $ = null) : (d = v, $ = g);
|
|
305
305
|
const P = t.plots.every((h) => h.v && typeof h.v.x == "number" && typeof h.v.y == "number");
|
|
@@ -352,7 +352,7 @@ const Xl = ["id"], Yl = ["id"], Rl = ["xmlns", "viewBox"], Vl = ["width", "heigh
|
|
|
352
352
|
})
|
|
353
353
|
};
|
|
354
354
|
});
|
|
355
|
-
}), bt =
|
|
355
|
+
}), bt = F(() => Math.max(...j.value.flatMap((l) => l.plots.map((s) => Math.abs(s.deviation)))));
|
|
356
356
|
function Kt() {
|
|
357
357
|
return j.value;
|
|
358
358
|
}
|
|
@@ -368,7 +368,7 @@ const Xl = ["id"], Yl = ["id"], Rl = ["xmlns", "viewBox"], Vl = ["width", "heigh
|
|
|
368
368
|
t.forEach(({ x: B, y: _ }) => {
|
|
369
369
|
o = Math.min(o, B), a = Math.max(a, B), u = Math.min(u, _), i = Math.max(i, _);
|
|
370
370
|
});
|
|
371
|
-
const
|
|
371
|
+
const p = a - o, v = i - u, g = p / s, L = v / s, d = Array(s).fill(0), $ = Array(s).fill(0);
|
|
372
372
|
t.forEach(({ x: B, y: _ }) => {
|
|
373
373
|
const h = Math.floor((B - o) / g), S = Math.floor((_ - u) / L);
|
|
374
374
|
d[h] || (d[h] = 0), $[S] || ($[S] = 0), d[h] += 1, $[S] += 1;
|
|
@@ -379,7 +379,7 @@ const Xl = ["id"], Yl = ["id"], Rl = ["xmlns", "viewBox"], Vl = ["width", "heigh
|
|
|
379
379
|
const T = Math.max(...d), I = Math.max(...$);
|
|
380
380
|
return { x: d, y: $, avgX: P, avgY: C, maxX: T, maxY: I };
|
|
381
381
|
}
|
|
382
|
-
const b =
|
|
382
|
+
const b = F(() => e.value.style.layout.marginalBars.tranches), A = F(() => kt(Ye.value, b.value)), Qt = F(() => {
|
|
383
383
|
const l = n.value.top - e.value.style.layout.marginalBars.offset, s = n.value.right + e.value.style.layout.marginalBars.offset;
|
|
384
384
|
return Ye.value.map((t) => {
|
|
385
385
|
const o = kt(t, b.value);
|
|
@@ -397,9 +397,9 @@ const Xl = ["id"], Yl = ["id"], Rl = ["xmlns", "viewBox"], Vl = ["width", "heigh
|
|
|
397
397
|
id: t.id
|
|
398
398
|
};
|
|
399
399
|
});
|
|
400
|
-
}), Y = M(void 0),
|
|
400
|
+
}), Y = M(void 0), f = M(null), Re = M(null);
|
|
401
401
|
function Ve(l, s) {
|
|
402
|
-
Y.value = l.id,
|
|
402
|
+
Y.value = l.id, f.value = l;
|
|
403
403
|
let t = "";
|
|
404
404
|
e.value.events.datapointEnter && e.value.events.datapointEnter({ datapoint: l, seriesIndex: s }), Re.value = {
|
|
405
405
|
datapoint: l,
|
|
@@ -444,13 +444,13 @@ const Xl = ["id"], Yl = ["id"], Rl = ["xmlns", "viewBox"], Vl = ["width", "heigh
|
|
|
444
444
|
})}</b>`, t += "</div>", Pe.value = `<div>${t}</div>`), ze.value = !0;
|
|
445
445
|
}
|
|
446
446
|
function Ce(l, s) {
|
|
447
|
-
e.value.events.datapointLeave && e.value.events.datapointLeave({ datapoint: l, seriesIndex: s }), ze.value = !1, Y.value = void 0,
|
|
447
|
+
e.value.events.datapointLeave && e.value.events.datapointLeave({ datapoint: l, seriesIndex: s }), ze.value = !1, Y.value = void 0, f.value = null;
|
|
448
448
|
}
|
|
449
449
|
function je(l, s) {
|
|
450
450
|
e.value.events.datapointClick && e.value.events.datapointClick({ datapoint: l, seriesIndex: s });
|
|
451
451
|
}
|
|
452
452
|
function wt(l) {
|
|
453
|
-
|
|
453
|
+
N.value.includes(l) ? N.value = N.value.filter((s) => s !== l) : N.value.length < Fe.value.length - 1 && N.value.push(l);
|
|
454
454
|
}
|
|
455
455
|
function Ue(l = null) {
|
|
456
456
|
hl(() => {
|
|
@@ -458,13 +458,13 @@ const Xl = ["id"], Yl = ["id"], Rl = ["xmlns", "viewBox"], Vl = ["width", "heigh
|
|
|
458
458
|
u.name,
|
|
459
459
|
u.correlation.coefficient,
|
|
460
460
|
u.plots.length,
|
|
461
|
-
u.plots.map((i) => i.v.x).reduce((i,
|
|
462
|
-
u.plots.map((i) => i.v.y).reduce((i,
|
|
461
|
+
u.plots.map((i) => i.v.x).reduce((i, p) => i + p, 0) / u.plots.length,
|
|
462
|
+
u.plots.map((i) => i.v.y).reduce((i, p) => i + p, 0) / u.plots.length
|
|
463
463
|
]), o = [[e.value.style.title.text], [e.value.style.title.subtitle.text], [[""], [""], [""]]].concat([s]).concat(t), a = Cl(o);
|
|
464
464
|
l ? l(a) : Al({ csvContent: a, title: e.value.style.title.text || "vue-ui-heatmap" });
|
|
465
465
|
});
|
|
466
466
|
}
|
|
467
|
-
const Ae =
|
|
467
|
+
const Ae = F(() => {
|
|
468
468
|
const l = [
|
|
469
469
|
e.value.table.translations.series,
|
|
470
470
|
e.value.table.translations.correlationCoefficient,
|
|
@@ -511,7 +511,7 @@ const Xl = ["id"], Yl = ["id"], Rl = ["xmlns", "viewBox"], Vl = ["width", "heigh
|
|
|
511
511
|
}
|
|
512
512
|
async function el({ scale: l = 2 } = {}) {
|
|
513
513
|
if (!te.value) return;
|
|
514
|
-
const { width: s, height: t } = te.value.getBoundingClientRect(), o = s / t, { imageUri: a, base64: u } = await
|
|
514
|
+
const { width: s, height: t } = te.value.getBoundingClientRect(), o = s / t, { imageUri: a, base64: u } = await Nl({ domElement: te.value, base64: !0, img: !0, scale: l });
|
|
515
515
|
return {
|
|
516
516
|
imageUri: a,
|
|
517
517
|
base64: u,
|
|
@@ -544,30 +544,30 @@ const Xl = ["id"], Yl = ["id"], Rl = ["xmlns", "viewBox"], Vl = ["width", "heigh
|
|
|
544
544
|
const a = Ct[l] * o;
|
|
545
545
|
switch (l) {
|
|
546
546
|
case "circle": {
|
|
547
|
-
const u = k(s - a), i = k(t),
|
|
548
|
-
return `M ${u} ${i} A ${v} ${v} 0 1 0 ${
|
|
547
|
+
const u = k(s - a), i = k(t), p = k(s + a), v = k(a);
|
|
548
|
+
return `M ${u} ${i} A ${v} ${v} 0 1 0 ${p} ${i} A ${v} ${v} 0 1 0 ${u} ${i} Z`;
|
|
549
549
|
}
|
|
550
550
|
case "square": {
|
|
551
|
-
const u = k(s - a), i = k(t - a),
|
|
552
|
-
return `M ${u} ${i} L ${
|
|
551
|
+
const u = k(s - a), i = k(t - a), p = k(s + a), v = k(t + a);
|
|
552
|
+
return `M ${u} ${i} L ${p} ${i} L ${p} ${v} L ${u} ${v} Z`;
|
|
553
553
|
}
|
|
554
554
|
case "diamond": {
|
|
555
555
|
const u = k(s), i = k(t);
|
|
556
556
|
return `M ${u} ${k(t - a)} L ${k(s + a)} ${i} L ${u} ${k(t + a)} L ${k(s - a)} ${i} Z`;
|
|
557
557
|
}
|
|
558
558
|
case "triangle": {
|
|
559
|
-
const u = a * Math.sqrt(3), i = s,
|
|
560
|
-
return `M ${k(i)} ${k(
|
|
559
|
+
const u = a * Math.sqrt(3), i = s, p = t - 2 / 3 * u, v = s - a, g = t + 1 / 3 * u, L = s + a, d = g;
|
|
560
|
+
return `M ${k(i)} ${k(p)} L ${k(v)} ${k(g)} L ${k(L)} ${k(d)} Z`;
|
|
561
561
|
}
|
|
562
562
|
case "star": {
|
|
563
|
-
const u = a, i = a * 0.5,
|
|
563
|
+
const u = a, i = a * 0.5, p = [];
|
|
564
564
|
for (let g = 0; g < 10; g += 1) {
|
|
565
565
|
const L = (-90 + g * 36) * Math.PI / 180, d = g % 2 === 0 ? u : i;
|
|
566
|
-
|
|
566
|
+
p.push([s + d * Math.cos(L), t + d * Math.sin(L)]);
|
|
567
567
|
}
|
|
568
|
-
let v = `M ${k(
|
|
569
|
-
for (let g = 1; g <
|
|
570
|
-
v += ` L ${k(
|
|
568
|
+
let v = `M ${k(p[0][0])} ${k(p[0][1])}`;
|
|
569
|
+
for (let g = 1; g < p.length; g += 1)
|
|
570
|
+
v += ` L ${k(p[g][0])} ${k(p[g][1])}`;
|
|
571
571
|
return v + " Z";
|
|
572
572
|
}
|
|
573
573
|
case "pentagon": {
|
|
@@ -576,9 +576,9 @@ const Xl = ["id"], Yl = ["id"], Rl = ["xmlns", "viewBox"], Vl = ["width", "heigh
|
|
|
576
576
|
const g = (-90 + v * 72) * Math.PI / 180;
|
|
577
577
|
i.push([s + a * Math.cos(g), t + a * Math.sin(g)]);
|
|
578
578
|
}
|
|
579
|
-
let
|
|
580
|
-
for (let v = 1; v < 5; v += 1)
|
|
581
|
-
return
|
|
579
|
+
let p = `M ${k(i[0][0])} ${k(i[0][1])}`;
|
|
580
|
+
for (let v = 1; v < 5; v += 1) p += ` L ${k(i[v][0])} ${k(i[v][1])}`;
|
|
581
|
+
return p + " Z";
|
|
582
582
|
}
|
|
583
583
|
case "hexagon": {
|
|
584
584
|
const i = [];
|
|
@@ -586,19 +586,19 @@ const Xl = ["id"], Yl = ["id"], Rl = ["xmlns", "viewBox"], Vl = ["width", "heigh
|
|
|
586
586
|
const g = (-60 + v * 60) * Math.PI / 180;
|
|
587
587
|
i.push([s + a * Math.cos(g), t + a * Math.sin(g)]);
|
|
588
588
|
}
|
|
589
|
-
let
|
|
590
|
-
for (let v = 1; v < 6; v += 1)
|
|
591
|
-
return
|
|
589
|
+
let p = `M ${k(i[0][0])} ${k(i[0][1])}`;
|
|
590
|
+
for (let v = 1; v < 6; v += 1) p += ` L ${k(i[v][0])} ${k(i[v][1])}`;
|
|
591
|
+
return p + " Z";
|
|
592
592
|
}
|
|
593
593
|
default: {
|
|
594
|
-
const u = k(s - a), i = k(t),
|
|
595
|
-
return `M ${u} ${i} A ${v} ${v} 0 1 0 ${
|
|
594
|
+
const u = k(s - a), i = k(t), p = k(s + a), v = k(a);
|
|
595
|
+
return `M ${u} ${i} A ${v} ${v} 0 1 0 ${p} ${i} A ${v} ${v} 0 1 0 ${u} ${i} Z`;
|
|
596
596
|
}
|
|
597
597
|
}
|
|
598
598
|
}
|
|
599
|
-
const ol =
|
|
599
|
+
const ol = F(() => {
|
|
600
600
|
if (!e.value.usePerformanceMode) return [""];
|
|
601
|
-
const { left: l, right: s, top: t, bottom: o } = n.value, a = Math.max(1, (s - l) * (o - t)), u = (d) => d / a * 1e4, i = 2.5,
|
|
601
|
+
const { left: l, right: s, top: t, bottom: o } = n.value, a = Math.max(1, (s - l) * (o - t)), u = (d) => d / a * 1e4, i = 2.5, p = 1e3, v = e.value.style.layout.plots.stroke, g = e.value.style.layout.plots.strokeWidth, L = e.value.style.layout.plots.opacity;
|
|
602
602
|
return j.value.map((d) => {
|
|
603
603
|
const $ = [];
|
|
604
604
|
for (const C of d.plots) {
|
|
@@ -613,7 +613,7 @@ const Xl = ["id"], Yl = ["id"], Rl = ["xmlns", "viewBox"], Vl = ["width", "heigh
|
|
|
613
613
|
}));
|
|
614
614
|
}
|
|
615
615
|
if (!$.length) return null;
|
|
616
|
-
const P = u(d.plots.length) > i || d.plots.length >
|
|
616
|
+
const P = u(d.plots.length) > i || d.plots.length > p;
|
|
617
617
|
return {
|
|
618
618
|
id: d.id,
|
|
619
619
|
d: $.join(""),
|
|
@@ -632,17 +632,17 @@ const Xl = ["id"], Yl = ["id"], Rl = ["xmlns", "viewBox"], Vl = ["width", "heigh
|
|
|
632
632
|
t.x = l.clientX, t.y = l.clientY;
|
|
633
633
|
const o = s.getScreenCTM();
|
|
634
634
|
if (!o) return;
|
|
635
|
-
const a = o.inverse(), u = t.matrixTransform(a), i = 8,
|
|
635
|
+
const a = o.inverse(), u = t.matrixTransform(a), i = 8, p = i * i;
|
|
636
636
|
let v = null, g = 1 / 0, L = -1;
|
|
637
637
|
if (j.value.forEach((d, $) => {
|
|
638
638
|
d.plots.forEach((P) => {
|
|
639
639
|
const C = P.x - u.x, T = P.y - u.y, I = C * C + T * T;
|
|
640
|
-
I <=
|
|
640
|
+
I <= p && I < g && (g = I, v = P, L = $);
|
|
641
641
|
});
|
|
642
642
|
}), v)
|
|
643
643
|
Y.value !== v.id && (Y.value = v.id, Ve(v, L));
|
|
644
644
|
else if (Y.value) {
|
|
645
|
-
const d =
|
|
645
|
+
const d = f.value;
|
|
646
646
|
Y.value = void 0, Ce(d, L);
|
|
647
647
|
}
|
|
648
648
|
} : () => null;
|
|
@@ -650,18 +650,18 @@ const Xl = ["id"], Yl = ["id"], Rl = ["xmlns", "viewBox"], Vl = ["width", "heigh
|
|
|
650
650
|
const At = sl();
|
|
651
651
|
function nl() {
|
|
652
652
|
if (Y.value) {
|
|
653
|
-
const l =
|
|
653
|
+
const l = f.value;
|
|
654
654
|
Y.value = void 0, Ce(l, null);
|
|
655
655
|
}
|
|
656
656
|
}
|
|
657
657
|
function ul(l) {
|
|
658
|
-
const s =
|
|
658
|
+
const s = f.value;
|
|
659
659
|
if (s) {
|
|
660
660
|
const t = j.value.findIndex((o) => o.id === s.clusterId);
|
|
661
661
|
je(s, t >= 0 ? t : 0);
|
|
662
662
|
}
|
|
663
663
|
}
|
|
664
|
-
const be =
|
|
664
|
+
const be = F(() => {
|
|
665
665
|
const l = e.value.table.useDialog && !e.value.table.show, s = H.value.showTable;
|
|
666
666
|
return {
|
|
667
667
|
component: l ? jt : It,
|
|
@@ -697,7 +697,7 @@ const Xl = ["id"], Yl = ["id"], Rl = ["xmlns", "viewBox"], Vl = ["width", "heigh
|
|
|
697
697
|
function St() {
|
|
698
698
|
H.value.showTable = !1, Oe.value && Oe.value.setTableIconState(!1);
|
|
699
699
|
}
|
|
700
|
-
return
|
|
700
|
+
return Ft({
|
|
701
701
|
getData: Kt,
|
|
702
702
|
getImage: el,
|
|
703
703
|
generatePdf: gt,
|
|
@@ -711,7 +711,7 @@ const Xl = ["id"], Yl = ["id"], Rl = ["xmlns", "viewBox"], Vl = ["width", "heigh
|
|
|
711
711
|
class: Bt(`vue-ui-scatter ${re.value ? "vue-data-ui-wrapper-fullscreen" : ""} ${e.value.useCssAnimation ? "" : "vue-ui-dna"}`),
|
|
712
712
|
ref_key: "scatterChart",
|
|
713
713
|
ref: te,
|
|
714
|
-
id: `vue-ui-scatter_${
|
|
714
|
+
id: `vue-ui-scatter_${W.value}`,
|
|
715
715
|
style: ne(`font-family:${e.value.style.fontFamily};width:100%; text-align:center;background:${e.value.style.backgroundColor};${e.value.responsive ? "height: 100%" : ""}`),
|
|
716
716
|
onMouseenter: s[5] || (s[5] = () => c(yt)(!0)),
|
|
717
717
|
onMouseleave: s[6] || (s[6] = () => c(yt)(!1))
|
|
@@ -737,7 +737,7 @@ const Xl = ["id"], Yl = ["id"], Rl = ["xmlns", "viewBox"], Vl = ["width", "heigh
|
|
|
737
737
|
ref: lt,
|
|
738
738
|
style: "width:100%;background:transparent"
|
|
739
739
|
}, [
|
|
740
|
-
(r(), le(
|
|
740
|
+
(r(), le(Wl, {
|
|
741
741
|
key: `title_${nt.value}`,
|
|
742
742
|
config: {
|
|
743
743
|
title: {
|
|
@@ -752,17 +752,17 @@ const Xl = ["id"], Yl = ["id"], Rl = ["xmlns", "viewBox"], Vl = ["width", "heigh
|
|
|
752
752
|
}, null, 8, ["config"]))
|
|
753
753
|
], 512)) : x("", !0),
|
|
754
754
|
w("div", {
|
|
755
|
-
id: `legend-top-${
|
|
755
|
+
id: `legend-top-${W.value}`
|
|
756
756
|
}, null, 8, Yl),
|
|
757
|
-
e.value.userOptions.show && et.value && (c(ct) || c(
|
|
757
|
+
e.value.userOptions.show && et.value && (c(ct) || c(Ne)) ? (r(), le(c(Rt), {
|
|
758
758
|
ref_key: "userOptionsRef",
|
|
759
759
|
ref: Oe,
|
|
760
760
|
key: `user_options_${tt.value}`,
|
|
761
761
|
backgroundColor: e.value.style.backgroundColor,
|
|
762
762
|
color: e.value.style.color,
|
|
763
|
-
isImaging: c(
|
|
764
|
-
isPrinting: c(
|
|
765
|
-
uid:
|
|
763
|
+
isImaging: c(ft),
|
|
764
|
+
isPrinting: c(pt),
|
|
765
|
+
uid: W.value,
|
|
766
766
|
hasTooltip: e.value.userOptions.buttons.tooltip && e.value.style.tooltip.show,
|
|
767
767
|
hasPdf: e.value.userOptions.buttons.pdf,
|
|
768
768
|
hasImg: e.value.userOptions.buttons.img,
|
|
@@ -787,13 +787,13 @@ const Xl = ["id"], Yl = ["id"], Rl = ["xmlns", "viewBox"], Vl = ["width", "heigh
|
|
|
787
787
|
onToggleTooltip: Mt,
|
|
788
788
|
onToggleAnnotator: Ge,
|
|
789
789
|
style: ne({
|
|
790
|
-
visibility: c(ct) ? c(
|
|
790
|
+
visibility: c(ct) ? c(Ne) ? "visible" : "hidden" : "visible"
|
|
791
791
|
})
|
|
792
792
|
}, Tt({ _: 2 }, [
|
|
793
793
|
l.$slots.menuIcon ? {
|
|
794
794
|
name: "menuIcon",
|
|
795
795
|
fn: X(({ isOpen: t, color: o }) => [
|
|
796
|
-
V(l.$slots, "menuIcon", fe(
|
|
796
|
+
V(l.$slots, "menuIcon", pe(fe({ isOpen: t, color: o })), void 0, !0)
|
|
797
797
|
]),
|
|
798
798
|
key: "0"
|
|
799
799
|
} : void 0,
|
|
@@ -835,14 +835,14 @@ const Xl = ["id"], Yl = ["id"], Rl = ["xmlns", "viewBox"], Vl = ["width", "heigh
|
|
|
835
835
|
l.$slots.optionFullscreen ? {
|
|
836
836
|
name: "optionFullscreen",
|
|
837
837
|
fn: X(({ toggleFullscreen: t, isFullscreen: o }) => [
|
|
838
|
-
V(l.$slots, "optionFullscreen", fe(
|
|
838
|
+
V(l.$slots, "optionFullscreen", pe(fe({ toggleFullscreen: t, isFullscreen: o })), void 0, !0)
|
|
839
839
|
]),
|
|
840
840
|
key: "6"
|
|
841
841
|
} : void 0,
|
|
842
842
|
l.$slots.optionAnnotator ? {
|
|
843
843
|
name: "optionAnnotator",
|
|
844
844
|
fn: X(({ toggleAnnotator: t, isAnnotator: o }) => [
|
|
845
|
-
V(l.$slots, "optionAnnotator", fe(
|
|
845
|
+
V(l.$slots, "optionAnnotator", pe(fe({ toggleAnnotator: t, isAnnotator: o })), void 0, !0)
|
|
846
846
|
]),
|
|
847
847
|
key: "7"
|
|
848
848
|
} : void 0
|
|
@@ -892,7 +892,7 @@ const Xl = ["id"], Yl = ["id"], Rl = ["xmlns", "viewBox"], Vl = ["width", "heigh
|
|
|
892
892
|
e.value.style.layout.marginalBars.show ? (r(), y("g", ql, [
|
|
893
893
|
w("defs", null, [
|
|
894
894
|
w("linearGradient", {
|
|
895
|
-
id: `marginal_x_${
|
|
895
|
+
id: `marginal_x_${W.value}`,
|
|
896
896
|
x1: "0%",
|
|
897
897
|
y1: "0%",
|
|
898
898
|
x2: "0%",
|
|
@@ -908,7 +908,7 @@ const Xl = ["id"], Yl = ["id"], Rl = ["xmlns", "viewBox"], Vl = ["width", "heigh
|
|
|
908
908
|
}, null, 8, Jl)
|
|
909
909
|
], 8, Hl),
|
|
910
910
|
w("linearGradient", {
|
|
911
|
-
id: `marginal_y_${
|
|
911
|
+
id: `marginal_y_${W.value}`,
|
|
912
912
|
x1: "0%",
|
|
913
913
|
x2: "100%",
|
|
914
914
|
y1: "0%",
|
|
@@ -931,7 +931,7 @@ const Xl = ["id"], Yl = ["id"], Rl = ["xmlns", "viewBox"], Vl = ["width", "heigh
|
|
|
931
931
|
y: n.value.top - e.value.style.layout.marginalBars.offset - t / A.value.maxX * e.value.style.layout.marginalBars.size,
|
|
932
932
|
width: n.value.width / b.value <= 0 ? 1e-4 : n.value.width / b.value,
|
|
933
933
|
height: t / A.value.maxX * e.value.style.layout.marginalBars.size <= 0 ? 1e-4 : t / A.value.maxX * e.value.style.layout.marginalBars.size,
|
|
934
|
-
fill: e.value.style.layout.marginalBars.useGradient ? `url(#marginal_x_${
|
|
934
|
+
fill: e.value.style.layout.marginalBars.useGradient ? `url(#marginal_x_${W.value})` : e.value.style.layout.marginalBars.fill,
|
|
935
935
|
style: ne([`opacity:${e.value.style.layout.marginalBars.opacity}`, { "pointer-events": "none" }]),
|
|
936
936
|
stroke: e.value.style.backgroundColor,
|
|
937
937
|
"stroke-width": e.value.style.layout.marginalBars.strokeWidth,
|
|
@@ -985,7 +985,7 @@ const Xl = ["id"], Yl = ["id"], Rl = ["xmlns", "viewBox"], Vl = ["width", "heigh
|
|
|
985
985
|
y: A.value.avgY[o] - n.value.height / b.value / 2,
|
|
986
986
|
height: n.value.height / b.value <= 0 ? 1e-4 : n.value.height / b.value,
|
|
987
987
|
width: t / A.value.maxY * e.value.style.layout.marginalBars.size <= 0 ? 1e-4 : t / A.value.maxY * e.value.style.layout.marginalBars.size,
|
|
988
|
-
fill: e.value.style.layout.marginalBars.useGradient ? `url(#marginal_y_${
|
|
988
|
+
fill: e.value.style.layout.marginalBars.useGradient ? `url(#marginal_y_${W.value})` : e.value.style.layout.marginalBars.fill,
|
|
989
989
|
style: ne([`opacity:${e.value.style.layout.marginalBars.opacity}`, { "pointer-events": "none" }]),
|
|
990
990
|
stroke: e.value.style.backgroundColor,
|
|
991
991
|
"stroke-width": e.value.style.layout.marginalBars.strokeWidth,
|
|
@@ -1034,7 +1034,7 @@ const Xl = ["id"], Yl = ["id"], Rl = ["xmlns", "viewBox"], Vl = ["width", "heigh
|
|
|
1034
1034
|
]))), 256)),
|
|
1035
1035
|
e.value.style.layout.marginalBars.showLines ? (r(), y("g", da, [
|
|
1036
1036
|
(r(!0), y(Z, null, K(Qt.value, (t) => (r(), y(Z, null, [
|
|
1037
|
-
|
|
1037
|
+
N.value.includes(t.id) ? x("", !0) : (r(), y("path", {
|
|
1038
1038
|
key: 0,
|
|
1039
1039
|
d: `M ${t.dX}`,
|
|
1040
1040
|
stroke: e.value.style.backgroundColor,
|
|
@@ -1043,7 +1043,7 @@ const Xl = ["id"], Yl = ["id"], Rl = ["xmlns", "viewBox"], Vl = ["width", "heigh
|
|
|
1043
1043
|
"stroke-linejoin": "round",
|
|
1044
1044
|
fill: "none"
|
|
1045
1045
|
}, null, 8, ha)),
|
|
1046
|
-
|
|
1046
|
+
N.value.includes(t.id) ? x("", !0) : (r(), y("path", {
|
|
1047
1047
|
key: 1,
|
|
1048
1048
|
d: `M ${t.dX}`,
|
|
1049
1049
|
stroke: t.color,
|
|
@@ -1051,8 +1051,8 @@ const Xl = ["id"], Yl = ["id"], Rl = ["xmlns", "viewBox"], Vl = ["width", "heigh
|
|
|
1051
1051
|
"stroke-linecap": "round",
|
|
1052
1052
|
"stroke-linejoin": "round",
|
|
1053
1053
|
fill: "none"
|
|
1054
|
-
}, null, 8,
|
|
1055
|
-
|
|
1054
|
+
}, null, 8, pa)),
|
|
1055
|
+
N.value.includes(t.id) ? x("", !0) : (r(), y("path", {
|
|
1056
1056
|
key: 2,
|
|
1057
1057
|
d: `M ${t.dY}`,
|
|
1058
1058
|
stroke: e.value.style.backgroundColor,
|
|
@@ -1060,8 +1060,8 @@ const Xl = ["id"], Yl = ["id"], Rl = ["xmlns", "viewBox"], Vl = ["width", "heigh
|
|
|
1060
1060
|
"stroke-linecap": "round",
|
|
1061
1061
|
"stroke-linejoin": "round",
|
|
1062
1062
|
fill: "none"
|
|
1063
|
-
}, null, 8,
|
|
1064
|
-
|
|
1063
|
+
}, null, 8, fa)),
|
|
1064
|
+
N.value.includes(t.id) ? x("", !0) : (r(), y("path", {
|
|
1065
1065
|
key: 3,
|
|
1066
1066
|
d: `M ${t.dY}`,
|
|
1067
1067
|
stroke: t.color,
|
|
@@ -1118,7 +1118,7 @@ const Xl = ["id"], Yl = ["id"], Rl = ["xmlns", "viewBox"], Vl = ["width", "heigh
|
|
|
1118
1118
|
]))), 256)),
|
|
1119
1119
|
e.value.usePerformanceMode ? (r(), y(Z, { key: 5 }, [
|
|
1120
1120
|
w("g", {
|
|
1121
|
-
"clip-path": `url(#clip_path_${
|
|
1121
|
+
"clip-path": `url(#clip_path_${W.value})`
|
|
1122
1122
|
}, [
|
|
1123
1123
|
(r(!0), y(Z, null, K(ol.value, (t) => (r(), y("path", {
|
|
1124
1124
|
key: t.id,
|
|
@@ -1131,12 +1131,12 @@ const Xl = ["id"], Yl = ["id"], Rl = ["xmlns", "viewBox"], Vl = ["width", "heigh
|
|
|
1131
1131
|
"paint-order": "fill"
|
|
1132
1132
|
}, null, 8, $a))), 128))
|
|
1133
1133
|
], 8, _a),
|
|
1134
|
-
|
|
1134
|
+
f.value && e.value.style.layout.plots.selectors.show ? (r(), y("g", Ma, [
|
|
1135
1135
|
$e(Qe, {
|
|
1136
|
-
shape:
|
|
1137
|
-
color:
|
|
1138
|
-
plot: { x:
|
|
1139
|
-
radius: Math.max(4 * Ct[
|
|
1136
|
+
shape: f.value.shape || "circle",
|
|
1137
|
+
color: f.value.color,
|
|
1138
|
+
plot: { x: f.value.x, y: f.value.y },
|
|
1139
|
+
radius: Math.max(4 * Ct[f.value.shape || "circle"], f.value.weight * 2),
|
|
1140
1140
|
stroke: e.value.style.layout.plots.stroke,
|
|
1141
1141
|
strokeWidth: e.value.style.layout.plots.strokeWidth
|
|
1142
1142
|
}, null, 8, ["shape", "color", "plot", "radius", "stroke", "strokeWidth"])
|
|
@@ -1152,12 +1152,12 @@ const Xl = ["id"], Yl = ["id"], Rl = ["xmlns", "viewBox"], Vl = ["width", "heigh
|
|
|
1152
1152
|
onClick: ul
|
|
1153
1153
|
}, null, 40, Ca)
|
|
1154
1154
|
], 64)) : x("", !0),
|
|
1155
|
-
|
|
1155
|
+
f.value && e.value.style.layout.plots.selectors.show ? (r(), y("g", Aa, [
|
|
1156
1156
|
w("line", {
|
|
1157
1157
|
x1: E.value.x,
|
|
1158
|
-
x2:
|
|
1159
|
-
y1:
|
|
1160
|
-
y2:
|
|
1158
|
+
x2: f.value.x,
|
|
1159
|
+
y1: f.value.y,
|
|
1160
|
+
y2: f.value.y,
|
|
1161
1161
|
stroke: e.value.style.layout.plots.selectors.stroke,
|
|
1162
1162
|
"stroke-width": e.value.style.layout.plots.selectors.strokeWidth,
|
|
1163
1163
|
"stroke-dasharray": e.value.style.layout.plots.selectors.strokeDasharray,
|
|
@@ -1165,10 +1165,10 @@ const Xl = ["id"], Yl = ["id"], Rl = ["xmlns", "viewBox"], Vl = ["width", "heigh
|
|
|
1165
1165
|
class: "line-pointer"
|
|
1166
1166
|
}, null, 8, Sa),
|
|
1167
1167
|
w("line", {
|
|
1168
|
-
x1:
|
|
1169
|
-
x2:
|
|
1168
|
+
x1: f.value.x,
|
|
1169
|
+
x2: f.value.x,
|
|
1170
1170
|
y1: E.value.y,
|
|
1171
|
-
y2:
|
|
1171
|
+
y2: f.value.y,
|
|
1172
1172
|
stroke: e.value.style.layout.plots.selectors.stroke,
|
|
1173
1173
|
"stroke-width": e.value.style.layout.plots.selectors.strokeWidth,
|
|
1174
1174
|
"stroke-dasharray": e.value.style.layout.plots.selectors.strokeDasharray,
|
|
@@ -1176,44 +1176,44 @@ const Xl = ["id"], Yl = ["id"], Rl = ["xmlns", "viewBox"], Vl = ["width", "heigh
|
|
|
1176
1176
|
class: "line-pointer"
|
|
1177
1177
|
}, null, 8, La),
|
|
1178
1178
|
w("text", {
|
|
1179
|
-
x: E.value.x + (
|
|
1180
|
-
y:
|
|
1179
|
+
x: E.value.x + (f.value.x > E.value.x ? -6 : 6),
|
|
1180
|
+
y: f.value.y + e.value.style.layout.plots.selectors.labels.fontSize / 3,
|
|
1181
1181
|
"font-size": e.value.style.layout.plots.selectors.labels.fontSize,
|
|
1182
1182
|
fill: e.value.style.layout.plots.selectors.labels.color,
|
|
1183
1183
|
"font-weight": e.value.style.layout.plots.selectors.labels.bold ? "bold" : "normal",
|
|
1184
|
-
"text-anchor":
|
|
1184
|
+
"text-anchor": f.value.x > E.value.x ? "end" : "start"
|
|
1185
1185
|
}, G(c(ue)(
|
|
1186
1186
|
e.value.style.layout.plots.selectors.labels.y.formatter,
|
|
1187
|
-
c(q)(
|
|
1187
|
+
c(q)(f.value.v.y),
|
|
1188
1188
|
c(Q)({
|
|
1189
1189
|
p: e.value.style.layout.plots.selectors.labels.prefix,
|
|
1190
|
-
v: c(q)(
|
|
1190
|
+
v: c(q)(f.value.v.y),
|
|
1191
1191
|
s: e.value.style.layout.plots.selectors.labels.suffix,
|
|
1192
1192
|
r: e.value.style.layout.plots.selectors.labels.rounding
|
|
1193
1193
|
}),
|
|
1194
|
-
{ datapoint:
|
|
1194
|
+
{ datapoint: f.value }
|
|
1195
1195
|
)), 9, Ba),
|
|
1196
1196
|
w("text", {
|
|
1197
|
-
x:
|
|
1198
|
-
y: E.value.y + (
|
|
1197
|
+
x: f.value.x,
|
|
1198
|
+
y: E.value.y + (f.value.y > E.value.y ? -6 : e.value.style.layout.plots.selectors.labels.fontSize + 6),
|
|
1199
1199
|
"font-size": e.value.style.layout.plots.selectors.labels.fontSize,
|
|
1200
1200
|
fill: e.value.style.layout.plots.selectors.labels.color,
|
|
1201
1201
|
"font-weight": e.value.style.layout.plots.selectors.labels.bold ? "bold" : "normal",
|
|
1202
1202
|
"text-anchor": "middle"
|
|
1203
1203
|
}, G(c(ue)(
|
|
1204
1204
|
e.value.style.layout.plots.selectors.labels.y.formatter,
|
|
1205
|
-
c(q)(
|
|
1205
|
+
c(q)(f.value.v.x),
|
|
1206
1206
|
c(Q)({
|
|
1207
1207
|
p: e.value.style.layout.plots.selectors.labels.prefix,
|
|
1208
|
-
v: c(q)(
|
|
1208
|
+
v: c(q)(f.value.v.x),
|
|
1209
1209
|
s: e.value.style.layout.plots.selectors.labels.suffix,
|
|
1210
1210
|
r: e.value.style.layout.plots.selectors.labels.rounding
|
|
1211
1211
|
}),
|
|
1212
|
-
{ datapoint:
|
|
1212
|
+
{ datapoint: f.value }
|
|
1213
1213
|
)), 9, Ta),
|
|
1214
1214
|
w("circle", {
|
|
1215
1215
|
cx: E.value.x,
|
|
1216
|
-
cy:
|
|
1216
|
+
cy: f.value.y,
|
|
1217
1217
|
r: e.value.style.layout.plots.selectors.markers.radius,
|
|
1218
1218
|
fill: e.value.style.layout.plots.selectors.markers.fill,
|
|
1219
1219
|
stroke: e.value.style.layout.plots.selectors.markers.stroke,
|
|
@@ -1221,7 +1221,7 @@ const Xl = ["id"], Yl = ["id"], Rl = ["xmlns", "viewBox"], Vl = ["width", "heigh
|
|
|
1221
1221
|
class: "line-pointer"
|
|
1222
1222
|
}, null, 8, za),
|
|
1223
1223
|
w("circle", {
|
|
1224
|
-
cx:
|
|
1224
|
+
cx: f.value.x,
|
|
1225
1225
|
cy: E.value.y,
|
|
1226
1226
|
r: e.value.style.layout.plots.selectors.markers.radius,
|
|
1227
1227
|
fill: e.value.style.layout.plots.selectors.markers.fill,
|
|
@@ -1231,13 +1231,13 @@ const Xl = ["id"], Yl = ["id"], Rl = ["xmlns", "viewBox"], Vl = ["width", "heigh
|
|
|
1231
1231
|
}, null, 8, Pa),
|
|
1232
1232
|
e.value.style.layout.plots.selectors.labels.showName ? (r(), y("text", {
|
|
1233
1233
|
key: 0,
|
|
1234
|
-
x:
|
|
1235
|
-
y:
|
|
1234
|
+
x: f.value.x,
|
|
1235
|
+
y: f.value.y + (f.value.y < E.value.y ? -e.value.style.layout.plots.selectors.labels.fontSize / 2 : e.value.style.layout.plots.selectors.labels.fontSize),
|
|
1236
1236
|
"font-size": e.value.style.layout.plots.selectors.labels.fontSize,
|
|
1237
1237
|
fill: e.value.style.layout.plots.selectors.labels.color,
|
|
1238
1238
|
"font-weight": e.value.style.layout.plots.selectors.labels.bold ? "bold" : "normal",
|
|
1239
|
-
"text-anchor":
|
|
1240
|
-
}, G(
|
|
1239
|
+
"text-anchor": f.value.x < n.value.left + 100 ? "start" : f.value.x > n.value.right - 100 ? "end" : f.value.x > E.value.x ? "start" : "end"
|
|
1240
|
+
}, G(f.value.v.name), 9, Oa)) : x("", !0)
|
|
1241
1241
|
])) : x("", !0),
|
|
1242
1242
|
e.value.style.layout.dataLabels.xAxis.show ? (r(), y("g", {
|
|
1243
1243
|
key: 7,
|
|
@@ -1245,7 +1245,7 @@ const Xl = ["id"], Yl = ["id"], Rl = ["xmlns", "viewBox"], Vl = ["width", "heigh
|
|
|
1245
1245
|
ref: De
|
|
1246
1246
|
}, [
|
|
1247
1247
|
w("text", {
|
|
1248
|
-
id: `vue-ui-scatter-xAxis-label-${
|
|
1248
|
+
id: `vue-ui-scatter-xAxis-label-${W.value}`,
|
|
1249
1249
|
transform: `translate(${e.value.style.layout.dataLabels.xAxis.fontSize}, ${n.value.top + n.value.height / 2}), rotate(-90)`,
|
|
1250
1250
|
"text-anchor": "middle",
|
|
1251
1251
|
"font-size": e.value.style.layout.dataLabels.xAxis.fontSize,
|
|
@@ -1285,7 +1285,7 @@ const Xl = ["id"], Yl = ["id"], Rl = ["xmlns", "viewBox"], Vl = ["width", "heigh
|
|
|
1285
1285
|
s: e.value.style.layout.plots.selectors.labels.suffix,
|
|
1286
1286
|
r: e.value.style.layout.dataLabels.xAxis.rounding
|
|
1287
1287
|
})
|
|
1288
|
-
)), 9,
|
|
1288
|
+
)), 9, Fa)) : x("", !0),
|
|
1289
1289
|
e.value.style.layout.dataLabels.yAxis.show ? (r(), y("text", {
|
|
1290
1290
|
key: 9,
|
|
1291
1291
|
ref_key: "yAxisLabelTop",
|
|
@@ -1304,7 +1304,7 @@ const Xl = ["id"], Yl = ["id"], Rl = ["xmlns", "viewBox"], Vl = ["width", "heigh
|
|
|
1304
1304
|
s: e.value.style.layout.plots.selectors.labels.suffix,
|
|
1305
1305
|
r: e.value.style.layout.dataLabels.yAxis.rounding
|
|
1306
1306
|
})
|
|
1307
|
-
)), 9,
|
|
1307
|
+
)), 9, Wa)) : x("", !0),
|
|
1308
1308
|
e.value.style.layout.dataLabels.yAxis.show ? (r(), y("g", {
|
|
1309
1309
|
key: 10,
|
|
1310
1310
|
ref_key: "yAxisLabelBottom",
|
|
@@ -1325,7 +1325,7 @@ const Xl = ["id"], Yl = ["id"], Rl = ["xmlns", "viewBox"], Vl = ["width", "heigh
|
|
|
1325
1325
|
s: e.value.style.layout.plots.selectors.labels.suffix,
|
|
1326
1326
|
r: e.value.style.layout.dataLabels.yAxis.rounding
|
|
1327
1327
|
})
|
|
1328
|
-
)), 9,
|
|
1328
|
+
)), 9, Na),
|
|
1329
1329
|
w("text", {
|
|
1330
1330
|
"text-anchor": "middle",
|
|
1331
1331
|
"font-size": e.value.style.layout.dataLabels.yAxis.fontSize,
|
|
@@ -1336,7 +1336,7 @@ const Xl = ["id"], Yl = ["id"], Rl = ["xmlns", "viewBox"], Vl = ["width", "heigh
|
|
|
1336
1336
|
}, G(e.value.style.layout.dataLabels.yAxis.name), 9, Ia)
|
|
1337
1337
|
], 512)) : x("", !0),
|
|
1338
1338
|
w("clipPath", {
|
|
1339
|
-
id: `clip_path_${
|
|
1339
|
+
id: `clip_path_${W.value}`
|
|
1340
1340
|
}, [
|
|
1341
1341
|
w("rect", {
|
|
1342
1342
|
x: n.value.left,
|
|
@@ -1354,7 +1354,7 @@ const Xl = ["id"], Yl = ["id"], Rl = ["xmlns", "viewBox"], Vl = ["width", "heigh
|
|
|
1354
1354
|
"stroke-dasharray": e.value.style.layout.correlation.strokeDasharray,
|
|
1355
1355
|
stroke: t.color,
|
|
1356
1356
|
"stroke-width": e.value.style.layout.correlation.strokeWidth,
|
|
1357
|
-
"clip-path": `url(#clip_path_${
|
|
1357
|
+
"clip-path": `url(#clip_path_${W.value})`
|
|
1358
1358
|
}, null, 8, Va))), 256)),
|
|
1359
1359
|
(r(!0), y(Z, null, K(j.value, (t, o) => (r(), y("g", null, [
|
|
1360
1360
|
e.value.style.layout.correlation.label.show ? (r(), y("text", {
|
|
@@ -1374,20 +1374,20 @@ const Xl = ["id"], Yl = ["id"], Rl = ["xmlns", "viewBox"], Vl = ["width", "heigh
|
|
|
1374
1374
|
V(l.$slots, "svg", { svg: D.value }, void 0, !0)
|
|
1375
1375
|
], 46, Rl)),
|
|
1376
1376
|
l.$slots.watermark ? (r(), y("div", Ua, [
|
|
1377
|
-
V(l.$slots, "watermark", fe(
|
|
1377
|
+
V(l.$slots, "watermark", pe(fe({ isPrinting: c(pt) || c(ft) })), void 0, !0)
|
|
1378
1378
|
])) : x("", !0),
|
|
1379
1379
|
w("div", {
|
|
1380
|
-
id: `legend-bottom-${
|
|
1380
|
+
id: `legend-bottom-${W.value}`
|
|
1381
1381
|
}, null, 8, Ga),
|
|
1382
1382
|
rt.value ? (r(), le(yl, {
|
|
1383
1383
|
key: 5,
|
|
1384
|
-
to: e.value.style.legend.position === "top" ? `#legend-top-${
|
|
1384
|
+
to: e.value.style.legend.position === "top" ? `#legend-top-${W.value}` : `#legend-bottom-${W.value}`
|
|
1385
1385
|
}, [
|
|
1386
1386
|
w("div", {
|
|
1387
1387
|
ref_key: "chartLegend",
|
|
1388
1388
|
ref: at
|
|
1389
1389
|
}, [
|
|
1390
|
-
e.value.style.legend.show ? (r(), le(
|
|
1390
|
+
e.value.style.legend.show ? (r(), le(Fl, {
|
|
1391
1391
|
key: `legend_${it.value}`,
|
|
1392
1392
|
legendSet: ie.value,
|
|
1393
1393
|
config: Jt.value,
|
|
@@ -1396,7 +1396,7 @@ const Xl = ["id"], Yl = ["id"], Rl = ["xmlns", "viewBox"], Vl = ["width", "heigh
|
|
|
1396
1396
|
item: X(({ legend: t }) => [
|
|
1397
1397
|
w("div", {
|
|
1398
1398
|
onClick: (o) => t.segregate(),
|
|
1399
|
-
style: ne(`opacity:${
|
|
1399
|
+
style: ne(`opacity:${N.value.includes(t.id) ? 0.5 : 1}`)
|
|
1400
1400
|
}, G(t.name), 13, qa)
|
|
1401
1401
|
]),
|
|
1402
1402
|
_: 1
|
|
@@ -1414,7 +1414,7 @@ const Xl = ["id"], Yl = ["id"], Rl = ["xmlns", "viewBox"], Vl = ["width", "heigh
|
|
|
1414
1414
|
}, [
|
|
1415
1415
|
V(l.$slots, "source", {}, void 0, !0)
|
|
1416
1416
|
], 512)) : x("", !0),
|
|
1417
|
-
$e(c(
|
|
1417
|
+
$e(c(Wt), {
|
|
1418
1418
|
show: H.value.showTooltip && ze.value,
|
|
1419
1419
|
backgroundColor: e.value.style.tooltip.backgroundColor,
|
|
1420
1420
|
color: e.value.style.tooltip.color,
|
|
@@ -1430,20 +1430,22 @@ const Xl = ["id"], Yl = ["id"], Rl = ["xmlns", "viewBox"], Vl = ["width", "heigh
|
|
|
1430
1430
|
isFullscreen: re.value,
|
|
1431
1431
|
isCustom: e.value.style.tooltip.customFormat && typeof e.value.style.tooltip.customFormat == "function",
|
|
1432
1432
|
smooth: e.value.style.tooltip.smooth,
|
|
1433
|
-
backdropFilter: e.value.style.tooltip.backdropFilter
|
|
1433
|
+
backdropFilter: e.value.style.tooltip.backdropFilter,
|
|
1434
|
+
smoothForce: e.value.style.tooltip.smoothForce,
|
|
1435
|
+
smoothSnapThreshold: e.value.style.tooltip.smoothSnapThreshold
|
|
1434
1436
|
}, {
|
|
1435
1437
|
"tooltip-before": X(() => [
|
|
1436
|
-
V(l.$slots, "tooltip-before", fe(
|
|
1438
|
+
V(l.$slots, "tooltip-before", pe(fe({ ...Re.value })), void 0, !0)
|
|
1437
1439
|
]),
|
|
1438
1440
|
"tooltip-after": X(() => [
|
|
1439
|
-
V(l.$slots, "tooltip-after", fe(
|
|
1441
|
+
V(l.$slots, "tooltip-after", pe(fe({ ...Re.value })), void 0, !0)
|
|
1440
1442
|
]),
|
|
1441
1443
|
default: X(() => [
|
|
1442
1444
|
e.value.style.tooltip.showShape ? (r(), y("div", Ha, [
|
|
1443
1445
|
(r(), y("svg", Za, [
|
|
1444
1446
|
$e(Qe, {
|
|
1445
|
-
shape:
|
|
1446
|
-
color:
|
|
1447
|
+
shape: f.value.shape,
|
|
1448
|
+
color: f.value.color,
|
|
1447
1449
|
plot: { x: 10, y: 10 },
|
|
1448
1450
|
radius: 7
|
|
1449
1451
|
}, null, 8, ["shape", "color"])
|
|
@@ -1451,7 +1453,7 @@ const Xl = ["id"], Yl = ["id"], Rl = ["xmlns", "viewBox"], Vl = ["width", "heigh
|
|
|
1451
1453
|
])) : x("", !0)
|
|
1452
1454
|
]),
|
|
1453
1455
|
_: 3
|
|
1454
|
-
}, 8, ["show", "backgroundColor", "color", "borderRadius", "borderColor", "borderWidth", "fontSize", "backgroundOpacity", "position", "offsetY", "parent", "content", "isFullscreen", "isCustom", "smooth", "backdropFilter"]),
|
|
1456
|
+
}, 8, ["show", "backgroundColor", "color", "borderRadius", "borderColor", "borderWidth", "fontSize", "backgroundOpacity", "position", "offsetY", "parent", "content", "isFullscreen", "isCustom", "smooth", "backdropFilter", "smoothForce", "smoothSnapThreshold"]),
|
|
1455
1457
|
et.value ? (r(), le(cl(be.value.component), dl({ key: 7 }, be.value.props, {
|
|
1456
1458
|
ref_key: "tableUnit",
|
|
1457
1459
|
ref: xe,
|
|
@@ -1499,7 +1501,7 @@ const Xl = ["id"], Yl = ["id"], Rl = ["xmlns", "viewBox"], Vl = ["width", "heigh
|
|
|
1499
1501
|
class: "vue-ui-user-options-button",
|
|
1500
1502
|
onClick: s[4] || (s[4] = (t) => Ue(e.value.userOptions.callbacks.csv))
|
|
1501
1503
|
}, [
|
|
1502
|
-
$e(c(
|
|
1504
|
+
$e(c(Nt), {
|
|
1503
1505
|
name: "excel",
|
|
1504
1506
|
stroke: be.value.props.color
|
|
1505
1507
|
}, null, 8, ["stroke"])
|
|
@@ -1511,7 +1513,7 @@ const Xl = ["id"], Yl = ["id"], Rl = ["xmlns", "viewBox"], Vl = ["width", "heigh
|
|
|
1511
1513
|
c(vt) ? (r(), le(Pl, { key: 8 })) : x("", !0)
|
|
1512
1514
|
], 46, Xl));
|
|
1513
1515
|
}
|
|
1514
|
-
}, ho = /* @__PURE__ */ Il(Qa, [["__scopeId", "data-v-
|
|
1516
|
+
}, ho = /* @__PURE__ */ Il(Qa, [["__scopeId", "data-v-da24fbac"]]);
|
|
1515
1517
|
export {
|
|
1516
1518
|
ho as default
|
|
1517
1519
|
};
|