vue-data-ui 3.4.1 → 3.4.3
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/{PackageVersion-VpPtLYhK.js → PackageVersion-Df-8U2yE.js} +1 -1
- package/dist/{Title-CFmv95In.js → Title-D7_5ICX_.js} +1 -1
- package/dist/components/vue-ui-3d-bar.js +1 -1
- package/dist/components/vue-ui-accordion.js +1 -1
- package/dist/components/vue-ui-age-pyramid.js +1 -1
- package/dist/components/vue-ui-annotator.js +1 -1
- package/dist/components/vue-ui-bullet.js +1 -1
- package/dist/components/vue-ui-candlestick.js +1 -1
- package/dist/components/vue-ui-carousel-table.js +1 -1
- package/dist/components/vue-ui-chestnut.js +1 -1
- package/dist/components/vue-ui-chord.js +1 -1
- package/dist/components/vue-ui-circle-pack.js +1 -1
- package/dist/components/vue-ui-cursor.js +1 -1
- package/dist/components/vue-ui-dashboard.js +1 -1
- package/dist/components/vue-ui-digits.js +1 -1
- package/dist/components/vue-ui-donut-evolution.js +1 -1
- package/dist/components/vue-ui-donut.js +1 -1
- package/dist/components/vue-ui-dumbbell.js +1 -1
- package/dist/components/vue-ui-flow.js +1 -1
- package/dist/components/vue-ui-funnel.js +1 -1
- package/dist/components/vue-ui-galaxy.js +1 -1
- package/dist/components/vue-ui-gauge.js +1 -1
- package/dist/components/vue-ui-gizmo.js +1 -1
- package/dist/components/vue-ui-heatmap.js +1 -1
- package/dist/components/vue-ui-history-plot.js +1 -1
- package/dist/components/vue-ui-horizontal-bar.js +1 -1
- package/dist/components/vue-ui-kpi.js +1 -1
- package/dist/components/vue-ui-mini-loader.js +1 -1
- package/dist/components/vue-ui-molecule.js +1 -1
- package/dist/components/vue-ui-mood-radar.js +1 -1
- package/dist/components/vue-ui-nested-donuts.js +1 -1
- package/dist/components/vue-ui-onion.js +1 -1
- package/dist/components/vue-ui-parallel-coordinate-plot.js +1 -1
- package/dist/components/vue-ui-quadrant.js +1 -1
- package/dist/components/vue-ui-quick-chart.js +1 -1
- package/dist/components/vue-ui-radar.js +1 -1
- package/dist/components/vue-ui-rating.js +1 -1
- package/dist/components/vue-ui-relation-circle.js +1 -1
- package/dist/components/vue-ui-ridgeline.js +1 -1
- package/dist/components/vue-ui-rings.js +1 -1
- package/dist/components/vue-ui-scatter.js +1 -1
- package/dist/components/vue-ui-skeleton.js +1 -1
- package/dist/components/vue-ui-smiley.js +1 -1
- package/dist/components/vue-ui-spark-trend.js +1 -1
- package/dist/components/vue-ui-sparkbar.js +1 -1
- package/dist/components/vue-ui-sparkgauge.js +1 -1
- package/dist/components/vue-ui-sparkhistogram.js +1 -1
- package/dist/components/vue-ui-sparkline.js +1 -1
- package/dist/components/vue-ui-sparkstackbar.js +1 -1
- package/dist/components/vue-ui-stackbar.js +1 -1
- package/dist/components/vue-ui-strip-plot.js +1 -1
- package/dist/components/vue-ui-table-heatmap.js +1 -1
- package/dist/components/vue-ui-table-sparkline.js +1 -1
- package/dist/components/vue-ui-table.js +1 -1
- package/dist/components/vue-ui-thermometer.js +1 -1
- package/dist/components/vue-ui-timer.js +1 -1
- package/dist/components/vue-ui-tiremarks.js +1 -1
- package/dist/components/vue-ui-treemap.js +1 -1
- package/dist/components/vue-ui-vertical-bar.js +1 -1
- package/dist/components/vue-ui-waffle.js +1 -1
- package/dist/components/vue-ui-wheel.js +1 -1
- package/dist/components/vue-ui-word-cloud.js +1 -1
- package/dist/components/vue-ui-world.js +1 -1
- package/dist/components/vue-ui-xy-canvas.js +1 -1
- package/dist/components/vue-ui-xy.js +1 -1
- package/dist/style.css +1 -1
- package/dist/{themes-Dw-dDudK.js → themes-AUNCOb2G.js} +5 -5
- package/dist/types/vue-data-ui.d.ts +8 -0
- package/dist/{useNestedProp-B7CiTRDS.js → useNestedProp-CtheCta-.js} +4 -2
- package/dist/{vue-data-ui-oDJui39L.js → vue-data-ui-OfJx8jSP.js} +63 -63
- package/dist/vue-data-ui.js +65 -65
- package/dist/{vue-ui-3d-bar-wycTM073.js → vue-ui-3d-bar-Bp-sqsyU.js} +4 -4
- package/dist/{vue-ui-accordion-BKkTS12x.js → vue-ui-accordion-DXdd_qAk.js} +1 -1
- package/dist/{vue-ui-age-pyramid-C5NUZ_Y7.js → vue-ui-age-pyramid-CUVtajBe.js} +4 -4
- package/dist/{vue-ui-annotator-DkSYrnwb.js → vue-ui-annotator-D5GKadj6.js} +2 -2
- package/dist/{vue-ui-bullet-CIsX5UJw.js → vue-ui-bullet-rQoLiK2b.js} +4 -4
- package/dist/{vue-ui-candlestick-BRFx3_KK.js → vue-ui-candlestick-D7eCxbQ8.js} +479 -456
- package/dist/{vue-ui-carousel-table-hJySHJTu.js → vue-ui-carousel-table-Bu8HSJRc.js} +2 -2
- package/dist/{vue-ui-chestnut-D4GjvQh0.js → vue-ui-chestnut-BqyduBAg.js} +3 -3
- package/dist/{vue-ui-chord-By2NOs0N.js → vue-ui-chord-VTRyVBx4.js} +4 -4
- package/dist/{vue-ui-circle-pack-OCmAkTNs.js → vue-ui-circle-pack-DIXUixuK.js} +4 -4
- package/dist/{vue-ui-cursor-iuati4v1.js → vue-ui-cursor-TFVxgVEa.js} +1 -1
- package/dist/{vue-ui-dashboard-C7fwU9xb.js → vue-ui-dashboard-DeFPygcZ.js} +63 -63
- package/dist/{vue-ui-digits-eYxf3UFN.js → vue-ui-digits-B6cIiy1Z.js} +1 -1
- package/dist/{vue-ui-donut-dVVBUQJz.js → vue-ui-donut-B3kaTm1I.js} +4 -4
- package/dist/{vue-ui-donut-evolution-BoWGaQP0.js → vue-ui-donut-evolution-CGxyHap0.js} +4 -4
- package/dist/{vue-ui-dumbbell-YMPZ3CVA.js → vue-ui-dumbbell-BpHU2gPm.js} +4 -4
- package/dist/{vue-ui-flow-BE62rVS3.js → vue-ui-flow-B1jwV-to.js} +4 -4
- package/dist/{vue-ui-funnel-kNpDFAWo.js → vue-ui-funnel-C07ghZCo.js} +4 -4
- package/dist/{vue-ui-galaxy-BBBiXXyk.js → vue-ui-galaxy-C2aCa9u0.js} +4 -4
- package/dist/{vue-ui-gauge-PQNTTl3Y.js → vue-ui-gauge-BymG1mO4.js} +4 -4
- package/dist/{vue-ui-gizmo-D3gQxQz3.js → vue-ui-gizmo-BjPbDZKf.js} +2 -2
- package/dist/{vue-ui-heatmap-CKWQButF.js → vue-ui-heatmap-D2udHyOO.js} +5 -5
- package/dist/{vue-ui-history-plot-DYFzdR4Z.js → vue-ui-history-plot-C1v5py9J.js} +4 -4
- package/dist/{vue-ui-kpi-N8s0i48S.js → vue-ui-kpi-4fToBGEE.js} +2 -2
- package/dist/{vue-ui-mini-loader-Db-9iQcC.js → vue-ui-mini-loader-o6xsgflK.js} +1 -1
- package/dist/{vue-ui-molecule-Cklyb74B.js → vue-ui-molecule-QJY9Jg--.js} +3 -3
- package/dist/{vue-ui-mood-radar-Cvq4ZuLe.js → vue-ui-mood-radar-CYz7t7cO.js} +4 -4
- package/dist/{vue-ui-nested-donuts-Bm78P1ES.js → vue-ui-nested-donuts-Cs_KVggH.js} +4 -4
- package/dist/{vue-ui-onion-Bh5jTb31.js → vue-ui-onion-DI__t0Yo.js} +4 -4
- package/dist/{vue-ui-parallel-coordinate-plot-BKdN2OsW.js → vue-ui-parallel-coordinate-plot-BUFBIY0H.js} +4 -4
- package/dist/{vue-ui-quadrant-BPhJzots.js → vue-ui-quadrant-q27Crjhv.js} +4 -4
- package/dist/{vue-ui-quick-chart-DbJR9CN3.js → vue-ui-quick-chart-vA-5-zU_.js} +3 -3
- package/dist/{vue-ui-radar-CrenQprr.js → vue-ui-radar-v6sFZlta.js} +66 -66
- package/dist/{vue-ui-rating-fR2WRHYO.js → vue-ui-rating-B1TGv80Y.js} +1 -1
- package/dist/{vue-ui-relation-circle-BJ5RuZ0j.js → vue-ui-relation-circle-C_7j_HC1.js} +4 -4
- package/dist/{vue-ui-ridgeline-CKuom5Bu.js → vue-ui-ridgeline-BaDr8YsQ.js} +4 -4
- package/dist/{vue-ui-rings-B84GAEf4.js → vue-ui-rings-BcsyGpD-.js} +4 -4
- package/dist/{vue-ui-scatter-CBX-g9w3.js → vue-ui-scatter-DsvtDcRf.js} +121 -112
- package/dist/{vue-ui-skeleton-CZ8xxpEU.js → vue-ui-skeleton-DJka_Bjy.js} +2 -2
- package/dist/{vue-ui-smiley-BKXuAviQ.js → vue-ui-smiley-D-W7GeoN.js} +1 -1
- package/dist/{vue-ui-spark-trend-DOf7-cIf.js → vue-ui-spark-trend-ufRxrEgv.js} +3 -3
- package/dist/{vue-ui-sparkbar-D-MPA2zf.js → vue-ui-sparkbar-C0hU8raA.js} +3 -3
- package/dist/{vue-ui-sparkgauge-B9xRiVSU.js → vue-ui-sparkgauge-1bi-EEqb.js} +3 -3
- package/dist/{vue-ui-sparkhistogram-BWb0lqQP.js → vue-ui-sparkhistogram-H1BSDVyx.js} +3 -3
- package/dist/{vue-ui-sparkline-BF-qr8Ti.js → vue-ui-sparkline-DElVjWGk.js} +3 -3
- package/dist/{vue-ui-sparkstackbar-DnCUpk50.js → vue-ui-sparkstackbar-DE3D2xTJ.js} +3 -3
- package/dist/{vue-ui-stackbar-DvJ8Hahn.js → vue-ui-stackbar-DVTV6JcM.js} +50 -45
- package/dist/{vue-ui-strip-plot-SAh1gIs5.js → vue-ui-strip-plot-0RudVLPB.js} +4 -4
- package/dist/{vue-ui-table-heatmap-DU6GKPVy.js → vue-ui-table-heatmap-BQgeM3lZ.js} +2 -2
- package/dist/{vue-ui-table-BJdDfMYD.js → vue-ui-table-jbkT9pG2.js} +3 -3
- package/dist/{vue-ui-table-sparkline-BBFEJ8c6.js → vue-ui-table-sparkline-Elk05A1j.js} +3 -3
- package/dist/{vue-ui-thermometer-D8DH6QSN.js → vue-ui-thermometer-6QNHvlxi.js} +4 -4
- package/dist/{vue-ui-timer-CaUdAHBE.js → vue-ui-timer-BvHuXOu1.js} +3 -3
- package/dist/{vue-ui-tiremarks-_sUH1d3J.js → vue-ui-tiremarks-CCfLSw7X.js} +4 -4
- package/dist/{vue-ui-treemap-DXduzuW4.js → vue-ui-treemap-DNimXWh4.js} +4 -4
- package/dist/{vue-ui-vertical-bar-JdjmgwQj.js → vue-ui-vertical-bar-C8UcI92_.js} +5 -5
- package/dist/{vue-ui-waffle-h8zoi4Rc.js → vue-ui-waffle-CMO0x41z.js} +4 -4
- package/dist/{vue-ui-wheel-Ck1Mx37j.js → vue-ui-wheel-CB2KRY13.js} +4 -4
- package/dist/{vue-ui-word-cloud-CjWvuukM.js → vue-ui-word-cloud-BDP2WP1p.js} +162 -151
- package/dist/{vue-ui-world-Dw71_Mu2.js → vue-ui-world-CobFs5Vm.js} +2 -2
- package/dist/{vue-ui-xy-tSMgXqqb.js → vue-ui-xy-DmWHarZg.js} +841 -835
- package/dist/{vue-ui-xy-canvas-Dct7tf8w.js → vue-ui-xy-canvas-BwhZD5_d.js} +4 -4
- package/package.json +1 -1
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
import { defineAsyncComponent as ne, computed as T, ref as M, toRefs as hl, watch as
|
|
2
|
-
import { c as kl, t as wl, b as _l, p as ye, o as Ot, f as Qe, e as $l, g as Dt, aa as Ml, h as Je, ac as Cl, z as Al, s as
|
|
1
|
+
import { defineAsyncComponent as ne, computed as T, ref as M, toRefs as hl, watch as ze, shallowRef as Bt, onMounted as pl, onBeforeUnmount as fl, createElementBlock as y, openBlock as r, unref as c, normalizeStyle as ue, normalizeClass as Tt, createBlock as le, createCommentVNode as x, createElementVNode as w, createVNode as $e, createSlots as zt, withCtx as X, renderSlot as j, normalizeProps as pe, guardReactiveProps as fe, Fragment as Z, renderList as J, toDisplayString as G, Teleport as gl, resolveDynamicComponent as ml, mergeProps as xl, createTextVNode as Pt, nextTick as bl } from "vue";
|
|
2
|
+
import { c as kl, t as wl, b as _l, p as ye, o as Ot, f as Qe, e as $l, g as Dt, aa as Ml, h as Je, ac as Cl, z as Al, s as Pe, X as Sl, ab as Ll, a as ie, x as q, d as K, P as Bl, Q as Tl, G as zl, H as Pl } from "./lib-BcBZIm6u.js";
|
|
3
3
|
import { t as Ol, u as Dl } from "./useResponsive-DfdjqQps.js";
|
|
4
|
-
import { u as El, a as Et } from "./useNestedProp-
|
|
4
|
+
import { u as El, a as Et } from "./useNestedProp-CtheCta-.js";
|
|
5
5
|
import { u as Fl, B as Wl } from "./BaseScanner-BgWxam9d.js";
|
|
6
6
|
import { u as Nl } from "./usePrinter-C1GiglOH.js";
|
|
7
7
|
import { u as Il } from "./useSvgExport-DrjCWun4.js";
|
|
8
8
|
import { u as Xl } from "./useUserOptionState-BIvW1Kz7.js";
|
|
9
9
|
import { u as Yl } from "./useChartAccessibility-9icAAmYg.js";
|
|
10
|
-
import { t as Rl } from "./themes-
|
|
10
|
+
import { t as Rl } from "./themes-AUNCOb2G.js";
|
|
11
11
|
import jl from "./Legend-C8u37J42.js";
|
|
12
|
-
import Ul from "./Title-
|
|
12
|
+
import Ul from "./Title-D7_5ICX_.js";
|
|
13
13
|
import { _ as Ke } from "./Shape-BhNvlGIN.js";
|
|
14
14
|
import Vl from "./img-CFY3JivG.js";
|
|
15
15
|
import { _ as Gl } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
@@ -59,32 +59,32 @@ const ql = ["id"], Hl = ["id"], Zl = ["xmlns", "viewBox"], Ql = ["width", "heigh
|
|
|
59
59
|
}
|
|
60
60
|
},
|
|
61
61
|
setup(Ft, { expose: Wt }) {
|
|
62
|
-
const Nt = ne(() => import("./Tooltip-Cs4v8OnI.js")), It = ne(() => import("./BaseIcon-B5KaGWWC.js")), Xt = ne(() => import("./vue-ui-accordion-
|
|
62
|
+
const Nt = ne(() => import("./Tooltip-Cs4v8OnI.js")), It = ne(() => import("./BaseIcon-B5KaGWWC.js")), Xt = ne(() => import("./vue-ui-accordion-DXdd_qAk.js")), Yt = ne(() => import("./DataTable-DOx3zgih.js")), Rt = ne(() => import("./PenAndPaper-Dj2diYr0.js")), jt = ne(() => import("./UserOptions-C0YT60JN.js")), Ut = ne(() => import("./PackageVersion-Df-8U2yE.js")), Vt = ne(() => import("./BaseDraggableDialog-CbuLbfrc.js")), { vue_ui_scatter: Gt } = El(), ee = Ft, et = T(() => !!ee.dataset && ee.dataset.length), W = M(kl()), Oe = M(!1), De = 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), Ee = M(null), Fe = M(null), qt = M(null), Ht = M(null), We = M(null), e = M(Ye());
|
|
63
63
|
function Zt(l = 100, s = 0.8, t = {}) {
|
|
64
64
|
const { meanX: o = 0, sdX: a = 1, meanY: u = 0, sdY: i = 1, seed: p } = t;
|
|
65
65
|
let v = (p ?? Math.floor(Math.random() * 2 ** 31)) >>> 0;
|
|
66
66
|
const g = () => (v = v * 1664525 + 1013904223 >>> 0, v / 2 ** 32), L = () => {
|
|
67
|
-
let m = 0,
|
|
67
|
+
let m = 0, E = 0;
|
|
68
68
|
for (; m === 0; ) m = g();
|
|
69
|
-
for (;
|
|
70
|
-
return Math.sqrt(-2 * Math.log(m)) * Math.cos(2 * Math.PI *
|
|
71
|
-
}, d = l / 2, $ = Array.from({ length: d }, L),
|
|
69
|
+
for (; E === 0; ) E = g();
|
|
70
|
+
return Math.sqrt(-2 * Math.log(m)) * Math.cos(2 * Math.PI * E);
|
|
71
|
+
}, d = l / 2, $ = Array.from({ length: d }, L), D = Array.from({ length: d }, L), C = (m) => m.reduce((E, _e) => E + _e, 0) / m.length, z = C($), I = C(D);
|
|
72
72
|
for (let m = 0; m < d; m += 1)
|
|
73
|
-
$[m] -= z,
|
|
74
|
-
const B = (m,
|
|
75
|
-
const
|
|
76
|
-
return m.map((Ze) => _e + (
|
|
73
|
+
$[m] -= z, D[m] -= I;
|
|
74
|
+
const B = (m, E) => m.reduce((_e, Te, Ze) => _e + Te * E[Ze], 0), _ = (m) => B(m, m), h = B(D, $) / _($), S = D.map((m, E) => m - h * $[E]), V = _($) / d, Q = _(S) / d, se = Math.sqrt((1 - s * s) * V / Q), R = $.map((m, E) => s * m + se * S[E]), ve = $.concat($.map((m) => -m)), He = R.concat(R.map((m) => -m)), ke = (m) => Math.sqrt(_(m) / m.length), de = (m, E, _e) => {
|
|
75
|
+
const Te = ke(m);
|
|
76
|
+
return m.map((Ze) => _e + (Te ? Ze / Te * E : 0));
|
|
77
77
|
}, he = de(ve, a, o), we = de(He, i, u);
|
|
78
78
|
for (let m = he.length - 1; m > 0; m -= 1) {
|
|
79
|
-
const
|
|
80
|
-
[he[m], he[
|
|
79
|
+
const E = Math.floor(g() * (m + 1));
|
|
80
|
+
[he[m], he[E]] = [he[E], he[m]], [we[m], we[E]] = [we[E], we[m]];
|
|
81
81
|
}
|
|
82
|
-
return he.map((m,
|
|
82
|
+
return he.map((m, E) => ({ x: m, y: we[E] }));
|
|
83
83
|
}
|
|
84
|
-
const { loading: vt, FINAL_DATASET:
|
|
84
|
+
const { loading: vt, FINAL_DATASET: Ne, manualLoading: Ie } = Fl({
|
|
85
85
|
...hl(ee),
|
|
86
86
|
FINAL_CONFIG: e,
|
|
87
|
-
prepareConfig:
|
|
87
|
+
prepareConfig: Ye,
|
|
88
88
|
skeletonDataset: [
|
|
89
89
|
{
|
|
90
90
|
name: "",
|
|
@@ -125,8 +125,8 @@ const ql = ["id"], Hl = ["id"], Zl = ["xmlns", "viewBox"], Ql = ["width", "heigh
|
|
|
125
125
|
}
|
|
126
126
|
}
|
|
127
127
|
})
|
|
128
|
-
}), { userOptionsVisible:
|
|
129
|
-
function
|
|
128
|
+
}), { userOptionsVisible: Xe, setUserOptionsVisibility: yt, keepUserOptionState: ct } = Xl({ config: e.value }), { svgRef: Me } = Yl({ config: e.value.style.title });
|
|
129
|
+
function Ye() {
|
|
130
130
|
const l = Et({
|
|
131
131
|
userConfig: ee.config,
|
|
132
132
|
defaultConfig: Gt
|
|
@@ -139,8 +139,8 @@ const ql = ["id"], Hl = ["id"], Zl = ["xmlns", "viewBox"], Ql = ["width", "heigh
|
|
|
139
139
|
customPalette: _l[l.theme] || ye
|
|
140
140
|
} : l;
|
|
141
141
|
}
|
|
142
|
-
|
|
143
|
-
vt.value || (e.value =
|
|
142
|
+
ze(() => ee.config, (l) => {
|
|
143
|
+
vt.value || (e.value = Ye()), Xe.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
|
|
144
144
|
|
|
145
145
|
- downsampling is disabled in this mode, all plots are rendered
|
|
146
146
|
|
|
@@ -149,8 +149,8 @@ const ql = ["id"], Hl = ["id"], Zl = ["xmlns", "viewBox"], Ql = ["width", "heigh
|
|
|
149
149
|
- Depending on plot density, shapes might not display a border (stroke) to avoid fuzziness
|
|
150
150
|
|
|
151
151
|
ℹ️ To remove this warning, set config.debug to false.`);
|
|
152
|
-
}, { deep: !0 }),
|
|
153
|
-
Array.isArray(l) && l.length > 0 && (
|
|
152
|
+
}, { deep: !0 }), ze(() => ee.dataset, (l) => {
|
|
153
|
+
Array.isArray(l) && l.length > 0 && (Ie.value = !1);
|
|
154
154
|
}, { deep: !0 });
|
|
155
155
|
const ae = Bt(null), ce = Bt(null);
|
|
156
156
|
pl(() => {
|
|
@@ -162,7 +162,7 @@ const ql = ["id"], Hl = ["id"], Zl = ["xmlns", "viewBox"], Ql = ["width", "heigh
|
|
|
162
162
|
componentName: "VueUiScatter",
|
|
163
163
|
type: "dataset",
|
|
164
164
|
debug: dt.value
|
|
165
|
-
}),
|
|
165
|
+
}), Ie.value = !0), Ot(ee.dataset) || (Ie.value = e.value.loading), e.value.responsive) {
|
|
166
166
|
const l = Ol(() => {
|
|
167
167
|
const { width: s, height: t } = Dl({
|
|
168
168
|
chart: te.value,
|
|
@@ -172,7 +172,7 @@ const ql = ["id"], Hl = ["id"], Zl = ["xmlns", "viewBox"], Ql = ["width", "heigh
|
|
|
172
172
|
noTitle: st.value
|
|
173
173
|
});
|
|
174
174
|
requestAnimationFrame(() => {
|
|
175
|
-
|
|
175
|
+
F.value.width = s, F.value.height = t;
|
|
176
176
|
});
|
|
177
177
|
});
|
|
178
178
|
ae.value && (ce.value && ae.value.unobserve(ce.value), ae.value.disconnect()), ae.value = new ResizeObserver(l), ce.value = te.value.parentNode, ae.value.observe(ce.value);
|
|
@@ -189,27 +189,27 @@ const ql = ["id"], Hl = ["id"], Zl = ["xmlns", "viewBox"], Ql = ["width", "heigh
|
|
|
189
189
|
showTable: e.value.table.show,
|
|
190
190
|
showTooltip: e.value.style.tooltip.show
|
|
191
191
|
});
|
|
192
|
-
|
|
192
|
+
ze(e, () => {
|
|
193
193
|
H.value = {
|
|
194
194
|
showTable: e.value.table.show,
|
|
195
195
|
showTooltip: e.value.style.tooltip.show
|
|
196
196
|
};
|
|
197
197
|
}, { immediate: !0 });
|
|
198
|
-
const
|
|
198
|
+
const F = M({
|
|
199
199
|
height: e.value.style.layout.height,
|
|
200
200
|
width: e.value.style.layout.width
|
|
201
201
|
}), Ce = T(() => e.value.style.layout.marginalBars.show ? e.value.style.layout.marginalBars.size + e.value.style.layout.marginalBars.offset : 0), n = T(() => {
|
|
202
202
|
let l = 0, s = 0;
|
|
203
|
-
return
|
|
203
|
+
return Fe.value && (l = Fe.value.getBBox().width + 6), We.value && (s = We.value.getBBox().height + 6), {
|
|
204
204
|
top: e.value.style.layout.padding.top + Ce.value + e.value.style.layout.dataLabels.yAxis.fontSize * 2,
|
|
205
|
-
right:
|
|
206
|
-
bottom:
|
|
205
|
+
right: F.value.width - e.value.style.layout.padding.right - Ce.value - 6,
|
|
206
|
+
bottom: F.value.height - e.value.style.layout.padding.bottom - s,
|
|
207
207
|
left: e.value.style.layout.padding.left + l,
|
|
208
|
-
height:
|
|
209
|
-
width:
|
|
208
|
+
height: F.value.height - e.value.style.layout.padding.top - e.value.style.layout.padding.bottom - Ce.value - s - e.value.style.layout.dataLabels.yAxis.fontSize * 2,
|
|
209
|
+
width: F.value.width - e.value.style.layout.padding.left - e.value.style.layout.padding.right - Ce.value - l - 6
|
|
210
210
|
};
|
|
211
211
|
}), P = T(() => {
|
|
212
|
-
|
|
212
|
+
Ne.value.forEach((a, u) => {
|
|
213
213
|
Dt({
|
|
214
214
|
datasetObject: a,
|
|
215
215
|
requiredAttributes: ["values"]
|
|
@@ -236,10 +236,10 @@ const ql = ["id"], Hl = ["id"], Zl = ["xmlns", "viewBox"], Ql = ["width", "heigh
|
|
|
236
236
|
});
|
|
237
237
|
const l = Math.min(...oe.value.filter((a) => !N.value.includes(a.id)).flatMap((a) => a.values.map((u) => u.x))), s = Math.max(...oe.value.filter((a) => !N.value.includes(a.id)).flatMap((a) => a.values.map((u) => u.x))), t = Math.min(...oe.value.filter((a) => !N.value.includes(a.id)).flatMap((a) => a.values.map((u) => u.y))), o = Math.max(...oe.value.filter((a) => !N.value.includes(a.id)).flatMap((a) => a.values.map((u) => u.y)));
|
|
238
238
|
return { xMin: l >= 0 ? 0 : l, xMax: s, yMin: t >= 0 ? 0 : t, yMax: o };
|
|
239
|
-
}),
|
|
239
|
+
}), O = T(() => ({
|
|
240
240
|
x: n.value.left + Math.abs(P.value.xMin) / (P.value.xMax + Math.abs(P.value.xMin)) * n.value.width,
|
|
241
241
|
y: n.value.bottom - Math.abs(P.value.yMin) / (P.value.yMax + Math.abs(P.value.yMin)) * n.value.height
|
|
242
|
-
})), oe = T(() =>
|
|
242
|
+
})), oe = T(() => Ne.value.map((l, s) => {
|
|
243
243
|
const t = `cluster_${W.value}_${s}`;
|
|
244
244
|
return {
|
|
245
245
|
...l,
|
|
@@ -261,7 +261,7 @@ const ql = ["id"], Hl = ["id"], Zl = ["xmlns", "viewBox"], Ql = ["width", "heigh
|
|
|
261
261
|
fontSize: e.value.style.legend.fontSize,
|
|
262
262
|
paddingBottom: 12,
|
|
263
263
|
fontWeight: e.value.style.legend.bold ? "bold" : ""
|
|
264
|
-
})),
|
|
264
|
+
})), Ae = T(() => oe.value.map((l, s) => ({
|
|
265
265
|
...l,
|
|
266
266
|
plots: l.values.map((t) => ({
|
|
267
267
|
x: n.value.left + (t.x + Math.abs(P.value.xMin)) / (P.value.xMax + Math.abs(P.value.xMin)) * n.value.width,
|
|
@@ -281,8 +281,8 @@ const ql = ["id"], Hl = ["id"], Zl = ["xmlns", "viewBox"], Ql = ["width", "heigh
|
|
|
281
281
|
Number.isFinite(_) && Number.isFinite(h) && L.push({ x: _, y: h });
|
|
282
282
|
}, $ = ({ x: _, y: h }) => _ >= i - 1e-9 && _ <= p + 1e-9 && h >= v - 1e-9 && h <= g + 1e-9;
|
|
283
283
|
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)));
|
|
284
|
-
const
|
|
285
|
-
for (const _ of
|
|
284
|
+
const D = L.filter($), C = [];
|
|
285
|
+
for (const _ of D)
|
|
286
286
|
C.some((h) => Math.abs(h.x - _.x) < 1e-6 && Math.abs(h.y - _.y) < 1e-6) || C.push(_);
|
|
287
287
|
if (C.length < 2) return null;
|
|
288
288
|
let z = C[0], I = C[1], B = 0;
|
|
@@ -293,7 +293,7 @@ const ql = ["id"], Hl = ["id"], Zl = ["xmlns", "viewBox"], Ql = ["width", "heigh
|
|
|
293
293
|
}
|
|
294
294
|
return { x1: z.x, y1: z.y, x2: I.x, y2: I.y };
|
|
295
295
|
};
|
|
296
|
-
return
|
|
296
|
+
return Ae.value.map((t) => {
|
|
297
297
|
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;
|
|
298
298
|
let i = 0, p = 0;
|
|
299
299
|
for (const h of t.plots) {
|
|
@@ -304,14 +304,14 @@ const ql = ["id"], Hl = ["id"], Zl = ["xmlns", "viewBox"], Ql = ["width", "heigh
|
|
|
304
304
|
p < 1e-9 ? (L = a, v = 1 / 0, g = null) : (v = i / p, g = u - v * a);
|
|
305
305
|
let d, $;
|
|
306
306
|
L !== null ? (d = 1 / 0, $ = null) : (d = v, $ = g);
|
|
307
|
-
const
|
|
307
|
+
const D = t.plots.every((h) => h.v && typeof h.v.x == "number" && typeof h.v.y == "number");
|
|
308
308
|
let C = NaN;
|
|
309
309
|
if (o >= 2) {
|
|
310
310
|
let h = 0, S = 0;
|
|
311
|
-
|
|
311
|
+
D ? (h = t.plots.reduce((R, ve) => R + ve.v.x, 0) / o, S = t.plots.reduce((R, ve) => R + ve.v.y, 0) / o) : (h = a, S = -u);
|
|
312
312
|
let V = 0, Q = 0, se = 0;
|
|
313
313
|
for (const R of t.plots) {
|
|
314
|
-
const ve =
|
|
314
|
+
const ve = D ? R.v.x : R.x, He = D ? R.v.y : -R.y, ke = ve - h, de = He - S;
|
|
315
315
|
V += ke * de, Q += ke * ke, se += de * de;
|
|
316
316
|
}
|
|
317
317
|
if (Q >= 1e-9 && se >= 1e-9) {
|
|
@@ -375,15 +375,15 @@ const ql = ["id"], Hl = ["id"], Zl = ["xmlns", "viewBox"], Ql = ["width", "heigh
|
|
|
375
375
|
const h = Math.floor((B - o) / g), S = Math.floor((_ - u) / L);
|
|
376
376
|
d[h] || (d[h] = 0), $[S] || ($[S] = 0), d[h] += 1, $[S] += 1;
|
|
377
377
|
});
|
|
378
|
-
const
|
|
378
|
+
const D = [], C = [];
|
|
379
379
|
for (let B = 0; B < s; B += 1)
|
|
380
|
-
|
|
380
|
+
D.push(o + (B + 0.5) * g), C.push(u + (B + 0.5) * L);
|
|
381
381
|
const z = Math.max(...d), I = Math.max(...$);
|
|
382
|
-
return { x: d, y: $, avgX:
|
|
382
|
+
return { x: d, y: $, avgX: D, avgY: C, maxX: z, maxY: I };
|
|
383
383
|
}
|
|
384
|
-
const b = T(() => e.value.style.layout.marginalBars.tranches), A = T(() => kt(
|
|
384
|
+
const b = T(() => e.value.style.layout.marginalBars.tranches), A = T(() => kt(Ae.value, b.value)), el = T(() => {
|
|
385
385
|
const l = n.value.top - e.value.style.layout.marginalBars.offset, s = n.value.right + e.value.style.layout.marginalBars.offset;
|
|
386
|
-
return
|
|
386
|
+
return Ae.value.map((t) => {
|
|
387
387
|
const o = kt(t, b.value);
|
|
388
388
|
return {
|
|
389
389
|
coords: o,
|
|
@@ -415,7 +415,7 @@ const ql = ["id"], Hl = ["id"], Zl = ["xmlns", "viewBox"], Ql = ["width", "heigh
|
|
|
415
415
|
seriesIndex: s,
|
|
416
416
|
series: U.value,
|
|
417
417
|
config: e.value
|
|
418
|
-
})) ?
|
|
418
|
+
})) ? De.value = o({
|
|
419
419
|
datapoint: l,
|
|
420
420
|
seriesIndex: s,
|
|
421
421
|
series: U.value,
|
|
@@ -443,16 +443,16 @@ const ql = ["id"], Hl = ["id"], Zl = ["xmlns", "viewBox"], Ql = ["width", "heigh
|
|
|
443
443
|
)}</b></div>`, t += `${e.value.style.layout.plots.deviation.translation}: <b>${K({
|
|
444
444
|
v: l.deviation,
|
|
445
445
|
r: e.value.style.layout.plots.deviation.roundingValue
|
|
446
|
-
})}</b>`, t += "</div>",
|
|
446
|
+
})}</b>`, t += "</div>", De.value = `<div>${t}</div>`), Oe.value = !0;
|
|
447
447
|
}
|
|
448
|
-
function
|
|
449
|
-
e.value.events.datapointLeave && e.value.events.datapointLeave({ datapoint: l, seriesIndex: s }),
|
|
448
|
+
function Se(l, s) {
|
|
449
|
+
e.value.events.datapointLeave && e.value.events.datapointLeave({ datapoint: l, seriesIndex: s }), Oe.value = !1, Y.value = void 0, f.value = null;
|
|
450
450
|
}
|
|
451
451
|
function Ue(l, s) {
|
|
452
452
|
e.value.events.datapointClick && e.value.events.datapointClick({ datapoint: l, seriesIndex: s });
|
|
453
453
|
}
|
|
454
454
|
function wt(l) {
|
|
455
|
-
N.value.includes(l) ? N.value = N.value.filter((s) => s !== l) : N.value.length <
|
|
455
|
+
N.value.includes(l) ? N.value = N.value.filter((s) => s !== l) : N.value.length < Ne.value.length - 1 && N.value.push(l);
|
|
456
456
|
}
|
|
457
457
|
function Ve(l = null) {
|
|
458
458
|
bl(() => {
|
|
@@ -466,7 +466,7 @@ const ql = ["id"], Hl = ["id"], Zl = ["xmlns", "viewBox"], Ql = ["width", "heigh
|
|
|
466
466
|
l ? l(a) : Tl({ csvContent: a, title: e.value.style.title.text || "vue-ui-heatmap" });
|
|
467
467
|
});
|
|
468
468
|
}
|
|
469
|
-
const
|
|
469
|
+
const Le = T(() => {
|
|
470
470
|
const l = [
|
|
471
471
|
e.value.table.translations.series,
|
|
472
472
|
e.value.table.translations.correlationCoefficient,
|
|
@@ -507,9 +507,9 @@ const ql = ["id"], Hl = ["id"], Zl = ["xmlns", "viewBox"], Ql = ["width", "heigh
|
|
|
507
507
|
function Mt() {
|
|
508
508
|
H.value.showTooltip = !H.value.showTooltip;
|
|
509
509
|
}
|
|
510
|
-
const
|
|
510
|
+
const Be = M(!1);
|
|
511
511
|
function Ge() {
|
|
512
|
-
|
|
512
|
+
Be.value = !Be.value;
|
|
513
513
|
}
|
|
514
514
|
async function tl({ scale: l = 2 } = {}) {
|
|
515
515
|
if (!te.value) return;
|
|
@@ -615,13 +615,13 @@ const ql = ["id"], Hl = ["id"], Zl = ["xmlns", "viewBox"], Ql = ["width", "heigh
|
|
|
615
615
|
}));
|
|
616
616
|
}
|
|
617
617
|
if (!$.length) return null;
|
|
618
|
-
const
|
|
618
|
+
const D = u(d.plots.length) > i || d.plots.length > p;
|
|
619
619
|
return {
|
|
620
620
|
id: d.id,
|
|
621
621
|
d: $.join(""),
|
|
622
|
-
fill:
|
|
623
|
-
stroke:
|
|
624
|
-
strokeWidth:
|
|
622
|
+
fill: Pe(d.color, L * 100),
|
|
623
|
+
stroke: D ? "none" : v,
|
|
624
|
+
strokeWidth: D ? 0 : g,
|
|
625
625
|
strokeOpacity: 1
|
|
626
626
|
};
|
|
627
627
|
}).filter(Boolean);
|
|
@@ -637,15 +637,15 @@ const ql = ["id"], Hl = ["id"], Zl = ["xmlns", "viewBox"], Ql = ["width", "heigh
|
|
|
637
637
|
const a = o.inverse(), u = t.matrixTransform(a), i = 8, p = i * i;
|
|
638
638
|
let v = null, g = 1 / 0, L = -1;
|
|
639
639
|
if (U.value.forEach((d, $) => {
|
|
640
|
-
d.plots.forEach((
|
|
641
|
-
const C =
|
|
642
|
-
I <= p && I < g && (g = I, v =
|
|
640
|
+
d.plots.forEach((D) => {
|
|
641
|
+
const C = D.x - u.x, z = D.y - u.y, I = C * C + z * z;
|
|
642
|
+
I <= p && I < g && (g = I, v = D, L = $);
|
|
643
643
|
});
|
|
644
644
|
}), v)
|
|
645
645
|
Y.value !== v.id && (Y.value = v.id, je(v, L));
|
|
646
646
|
else if (Y.value) {
|
|
647
647
|
const d = f.value;
|
|
648
|
-
Y.value = void 0,
|
|
648
|
+
Y.value = void 0, Se(d, L);
|
|
649
649
|
}
|
|
650
650
|
} : () => null;
|
|
651
651
|
}
|
|
@@ -653,7 +653,7 @@ const ql = ["id"], Hl = ["id"], Zl = ["xmlns", "viewBox"], Ql = ["width", "heigh
|
|
|
653
653
|
function ul() {
|
|
654
654
|
if (Y.value) {
|
|
655
655
|
const l = f.value;
|
|
656
|
-
Y.value = void 0,
|
|
656
|
+
Y.value = void 0, Se(l, null);
|
|
657
657
|
}
|
|
658
658
|
}
|
|
659
659
|
function il(l) {
|
|
@@ -693,11 +693,11 @@ const ql = ["id"], Hl = ["id"], Zl = ["xmlns", "viewBox"], Ql = ["width", "heigh
|
|
|
693
693
|
}
|
|
694
694
|
};
|
|
695
695
|
});
|
|
696
|
-
|
|
696
|
+
ze(() => H.value.showTable, (l) => {
|
|
697
697
|
e.value.table.show || (l && e.value.table.useDialog && xe.value ? xe.value.open() : "close" in xe.value && xe.value.close());
|
|
698
698
|
});
|
|
699
699
|
function St() {
|
|
700
|
-
H.value.showTable = !1,
|
|
700
|
+
H.value.showTable = !1, Ee.value && Ee.value.setTableIconState(!1);
|
|
701
701
|
}
|
|
702
702
|
const rl = T(() => e.value.style.backgroundColor), vl = T(() => e.value.style.legend), yl = T(() => e.value.style.title), { exportSvg: cl, getSvg: dl } = Il({
|
|
703
703
|
svg: Me,
|
|
@@ -738,7 +738,7 @@ const ql = ["id"], Hl = ["id"], Zl = ["xmlns", "viewBox"], Ql = ["width", "heigh
|
|
|
738
738
|
svgRef: c(Me),
|
|
739
739
|
backgroundColor: e.value.style.backgroundColor,
|
|
740
740
|
color: e.value.style.color,
|
|
741
|
-
active:
|
|
741
|
+
active: Be.value,
|
|
742
742
|
onClose: Ge
|
|
743
743
|
}, null, 8, ["svgRef", "backgroundColor", "color", "active"])) : x("", !0),
|
|
744
744
|
Qt.value ? (r(), y("div", {
|
|
@@ -771,9 +771,9 @@ const ql = ["id"], Hl = ["id"], Zl = ["xmlns", "viewBox"], Ql = ["width", "heigh
|
|
|
771
771
|
w("div", {
|
|
772
772
|
id: `legend-top-${W.value}`
|
|
773
773
|
}, null, 8, Hl),
|
|
774
|
-
e.value.userOptions.show && et.value && (c(ct) || c(
|
|
774
|
+
e.value.userOptions.show && et.value && (c(ct) || c(Xe)) ? (r(), le(c(jt), {
|
|
775
775
|
ref_key: "userOptionsRef",
|
|
776
|
-
ref:
|
|
776
|
+
ref: Ee,
|
|
777
777
|
key: `user_options_${tt.value}`,
|
|
778
778
|
backgroundColor: e.value.style.backgroundColor,
|
|
779
779
|
color: e.value.style.color,
|
|
@@ -793,7 +793,7 @@ const ql = ["id"], Hl = ["id"], Zl = ["xmlns", "viewBox"], Ql = ["width", "heigh
|
|
|
793
793
|
chartElement: te.value,
|
|
794
794
|
position: e.value.userOptions.position,
|
|
795
795
|
hasAnnotator: e.value.userOptions.buttons.annotator,
|
|
796
|
-
isAnnotation:
|
|
796
|
+
isAnnotation: Be.value,
|
|
797
797
|
callbacks: e.value.userOptions.callbacks,
|
|
798
798
|
printScale: e.value.userOptions.print.scale,
|
|
799
799
|
tableDialog: e.value.table.useDialog,
|
|
@@ -806,7 +806,7 @@ const ql = ["id"], Hl = ["id"], Zl = ["xmlns", "viewBox"], Ql = ["width", "heigh
|
|
|
806
806
|
onToggleTooltip: Mt,
|
|
807
807
|
onToggleAnnotator: Ge,
|
|
808
808
|
style: ue({
|
|
809
|
-
visibility: c(ct) ? c(
|
|
809
|
+
visibility: c(ct) ? c(Xe) ? "visible" : "hidden" : "visible"
|
|
810
810
|
})
|
|
811
811
|
}, zt({ _: 2 }, [
|
|
812
812
|
l.$slots.menuIcon ? {
|
|
@@ -871,7 +871,7 @@ const ql = ["id"], Hl = ["id"], Zl = ["xmlns", "viewBox"], Ql = ["width", "heigh
|
|
|
871
871
|
ref: Me,
|
|
872
872
|
xmlns: c(Sl),
|
|
873
873
|
class: Tt({ "vue-data-ui-fullscreen--on": re.value, "vue-data-ui-fulscreen--off": !re.value, animated: e.value.useCssAnimation }),
|
|
874
|
-
viewBox: `0 0 ${
|
|
874
|
+
viewBox: `0 0 ${F.value.width <= 0 ? 10 : F.value.width} ${F.value.height <= 0 ? 10 : F.value.height}`,
|
|
875
875
|
style: ue(`max-width:100%;overflow:visible;background:transparent;color:${e.value.style.color}`),
|
|
876
876
|
onMouseleave: qe
|
|
877
877
|
}, [
|
|
@@ -880,8 +880,8 @@ const ql = ["id"], Hl = ["id"], Zl = ["xmlns", "viewBox"], Ql = ["width", "heigh
|
|
|
880
880
|
key: 0,
|
|
881
881
|
x: 0,
|
|
882
882
|
y: 0,
|
|
883
|
-
width:
|
|
884
|
-
height:
|
|
883
|
+
width: F.value.width <= 0 ? 10 : F.value.width,
|
|
884
|
+
height: F.value.height <= 0 ? 10 : F.value.height,
|
|
885
885
|
style: {
|
|
886
886
|
pointerEvents: "none"
|
|
887
887
|
}
|
|
@@ -890,8 +890,8 @@ const ql = ["id"], Hl = ["id"], Zl = ["xmlns", "viewBox"], Ql = ["width", "heigh
|
|
|
890
890
|
], 8, Ql)) : x("", !0),
|
|
891
891
|
e.value.style.layout.axis.show ? (r(), y("g", Jl, [
|
|
892
892
|
w("line", {
|
|
893
|
-
x1:
|
|
894
|
-
x2:
|
|
893
|
+
x1: O.value.x,
|
|
894
|
+
x2: O.value.x,
|
|
895
895
|
y1: n.value.top,
|
|
896
896
|
y2: n.value.bottom,
|
|
897
897
|
stroke: e.value.style.layout.axis.stroke,
|
|
@@ -901,8 +901,8 @@ const ql = ["id"], Hl = ["id"], Zl = ["xmlns", "viewBox"], Ql = ["width", "heigh
|
|
|
901
901
|
w("line", {
|
|
902
902
|
x1: n.value.left,
|
|
903
903
|
x2: n.value.right,
|
|
904
|
-
y1:
|
|
905
|
-
y2:
|
|
904
|
+
y1: O.value.y,
|
|
905
|
+
y2: O.value.y,
|
|
906
906
|
stroke: e.value.style.layout.axis.stroke,
|
|
907
907
|
"stroke-width": e.value.style.layout.axis.strokeWidth,
|
|
908
908
|
"stroke-linecap": "round"
|
|
@@ -1031,7 +1031,7 @@ const ql = ["id"], Hl = ["id"], Zl = ["xmlns", "viewBox"], Ql = ["width", "heigh
|
|
|
1031
1031
|
}, null, 8, ga),
|
|
1032
1032
|
w("line", {
|
|
1033
1033
|
x1: n.value.left,
|
|
1034
|
-
x2:
|
|
1034
|
+
x2: F.value.width,
|
|
1035
1035
|
y1: A.value.avgY[o] - n.value.height / b.value / 2,
|
|
1036
1036
|
y2: A.value.avgY[o] - n.value.height / b.value / 2,
|
|
1037
1037
|
stroke: e.value.style.layout.marginalBars.highlighter.stroke,
|
|
@@ -1041,7 +1041,7 @@ const ql = ["id"], Hl = ["id"], Zl = ["xmlns", "viewBox"], Ql = ["width", "heigh
|
|
|
1041
1041
|
}, null, 8, ma),
|
|
1042
1042
|
w("line", {
|
|
1043
1043
|
x1: n.value.left,
|
|
1044
|
-
x2:
|
|
1044
|
+
x2: F.value.width,
|
|
1045
1045
|
y1: A.value.avgY[o] - n.value.height / b.value / 2 + (n.value.height / b.value <= 0 ? 1e-4 : n.value.height / b.value),
|
|
1046
1046
|
y2: A.value.avgY[o] - n.value.height / b.value / 2 + (n.value.height / b.value <= 0 ? 1e-4 : n.value.height / b.value),
|
|
1047
1047
|
stroke: e.value.style.layout.marginalBars.highlighter.stroke,
|
|
@@ -1097,7 +1097,7 @@ const ql = ["id"], Hl = ["id"], Zl = ["xmlns", "viewBox"], Ql = ["width", "heigh
|
|
|
1097
1097
|
t.plots.length > 2 ? (r(), y("polygon", {
|
|
1098
1098
|
key: 0,
|
|
1099
1099
|
points: c(Ll)({ series: t.plots }),
|
|
1100
|
-
fill: c(
|
|
1100
|
+
fill: c(Pe)(t.color, e.value.style.layout.plots.giftWrap.fillOpacity * 100),
|
|
1101
1101
|
"stroke-width": e.value.style.layout.plots.giftWrap.strokeWidth,
|
|
1102
1102
|
"stroke-dasharray": e.value.style.layout.plots.giftWrap.strokeDasharray,
|
|
1103
1103
|
stroke: t.color,
|
|
@@ -1112,12 +1112,12 @@ const ql = ["id"], Hl = ["id"], Zl = ["xmlns", "viewBox"], Ql = ["width", "heigh
|
|
|
1112
1112
|
cx: a.x,
|
|
1113
1113
|
cy: a.y,
|
|
1114
1114
|
r: Y.value && Y.value === a.id ? a.weight * 2 : a.weight,
|
|
1115
|
-
fill: c(
|
|
1115
|
+
fill: c(Pe)(t.color, e.value.style.layout.plots.opacity * 100),
|
|
1116
1116
|
stroke: e.value.style.layout.plots.stroke,
|
|
1117
1117
|
"stroke-width": e.value.style.layout.plots.strokeWidth,
|
|
1118
1118
|
style: ue(`opacity:${Y.value && Y.value === a.id ? 1 : e.value.style.layout.plots.significance.useDistanceOpacity ? 1 - Math.abs(a.deviation) / bt.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}`),
|
|
1119
1119
|
onMouseover: (i) => je(a, o),
|
|
1120
|
-
onMouseleave: (i) =>
|
|
1120
|
+
onMouseleave: (i) => Se(a, o),
|
|
1121
1121
|
onClick: (i) => Ue(a, o)
|
|
1122
1122
|
}, null, 44, Sa))), 256))
|
|
1123
1123
|
])) : (r(), y("g", La, [
|
|
@@ -1125,12 +1125,12 @@ const ql = ["id"], Hl = ["id"], Zl = ["xmlns", "viewBox"], Ql = ["width", "heigh
|
|
|
1125
1125
|
plot: { x: a.x, y: a.y },
|
|
1126
1126
|
radius: Y.value && Y.value === a.id ? a.weight * 2 : a.weight,
|
|
1127
1127
|
shape: t.shape,
|
|
1128
|
-
color: c(
|
|
1128
|
+
color: c(Pe)(t.color, e.value.style.layout.plots.opacity * 100),
|
|
1129
1129
|
stroke: e.value.style.layout.plots.stroke,
|
|
1130
1130
|
strokeWidth: e.value.style.layout.plots.strokeWidth,
|
|
1131
1131
|
style: ue(`opacity:${Y.value && Y.value === a.id ? 1 : e.value.style.layout.plots.significance.useDistanceOpacity ? 1 - Math.abs(a.deviation) / bt.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}`),
|
|
1132
1132
|
onMouseover: (i) => je(a, o),
|
|
1133
|
-
onMouseleave: (i) =>
|
|
1133
|
+
onMouseleave: (i) => Se(a, o),
|
|
1134
1134
|
onClick: (i) => Ue(a, o)
|
|
1135
1135
|
}, null, 8, ["plot", "radius", "shape", "color", "stroke", "strokeWidth", "style", "onMouseover", "onMouseleave", "onClick"]))), 256))
|
|
1136
1136
|
]))
|
|
@@ -1173,7 +1173,7 @@ const ql = ["id"], Hl = ["id"], Zl = ["xmlns", "viewBox"], Ql = ["width", "heigh
|
|
|
1173
1173
|
], 64)) : x("", !0),
|
|
1174
1174
|
f.value && e.value.style.layout.plots.selectors.show ? (r(), y("g", Oa, [
|
|
1175
1175
|
w("line", {
|
|
1176
|
-
x1:
|
|
1176
|
+
x1: O.value.x,
|
|
1177
1177
|
x2: f.value.x,
|
|
1178
1178
|
y1: f.value.y,
|
|
1179
1179
|
y2: f.value.y,
|
|
@@ -1186,7 +1186,7 @@ const ql = ["id"], Hl = ["id"], Zl = ["xmlns", "viewBox"], Ql = ["width", "heigh
|
|
|
1186
1186
|
w("line", {
|
|
1187
1187
|
x1: f.value.x,
|
|
1188
1188
|
x2: f.value.x,
|
|
1189
|
-
y1:
|
|
1189
|
+
y1: O.value.y,
|
|
1190
1190
|
y2: f.value.y,
|
|
1191
1191
|
stroke: e.value.style.layout.plots.selectors.stroke,
|
|
1192
1192
|
"stroke-width": e.value.style.layout.plots.selectors.strokeWidth,
|
|
@@ -1195,12 +1195,12 @@ const ql = ["id"], Hl = ["id"], Zl = ["xmlns", "viewBox"], Ql = ["width", "heigh
|
|
|
1195
1195
|
class: "line-pointer"
|
|
1196
1196
|
}, null, 8, Ea),
|
|
1197
1197
|
w("text", {
|
|
1198
|
-
x:
|
|
1198
|
+
x: O.value.x + (f.value.x > O.value.x ? -6 : 6),
|
|
1199
1199
|
y: f.value.y + e.value.style.layout.plots.selectors.labels.fontSize / 3,
|
|
1200
1200
|
"font-size": e.value.style.layout.plots.selectors.labels.fontSize,
|
|
1201
1201
|
fill: e.value.style.layout.plots.selectors.labels.color,
|
|
1202
1202
|
"font-weight": e.value.style.layout.plots.selectors.labels.bold ? "bold" : "normal",
|
|
1203
|
-
"text-anchor": f.value.x >
|
|
1203
|
+
"text-anchor": f.value.x > O.value.x ? "end" : "start"
|
|
1204
1204
|
}, G(c(ie)(
|
|
1205
1205
|
e.value.style.layout.plots.selectors.labels.y.formatter,
|
|
1206
1206
|
c(q)(f.value.v.y),
|
|
@@ -1214,7 +1214,7 @@ const ql = ["id"], Hl = ["id"], Zl = ["xmlns", "viewBox"], Ql = ["width", "heigh
|
|
|
1214
1214
|
)), 9, Fa),
|
|
1215
1215
|
w("text", {
|
|
1216
1216
|
x: f.value.x,
|
|
1217
|
-
y:
|
|
1217
|
+
y: O.value.y + (f.value.y > O.value.y ? -6 : e.value.style.layout.plots.selectors.labels.fontSize + 6),
|
|
1218
1218
|
"font-size": e.value.style.layout.plots.selectors.labels.fontSize,
|
|
1219
1219
|
fill: e.value.style.layout.plots.selectors.labels.color,
|
|
1220
1220
|
"font-weight": e.value.style.layout.plots.selectors.labels.bold ? "bold" : "normal",
|
|
@@ -1231,7 +1231,7 @@ const ql = ["id"], Hl = ["id"], Zl = ["xmlns", "viewBox"], Ql = ["width", "heigh
|
|
|
1231
1231
|
{ datapoint: f.value }
|
|
1232
1232
|
)), 9, Wa),
|
|
1233
1233
|
w("circle", {
|
|
1234
|
-
cx:
|
|
1234
|
+
cx: O.value.x,
|
|
1235
1235
|
cy: f.value.y,
|
|
1236
1236
|
r: e.value.style.layout.plots.selectors.markers.radius,
|
|
1237
1237
|
fill: e.value.style.layout.plots.selectors.markers.fill,
|
|
@@ -1241,7 +1241,7 @@ const ql = ["id"], Hl = ["id"], Zl = ["xmlns", "viewBox"], Ql = ["width", "heigh
|
|
|
1241
1241
|
}, null, 8, Na),
|
|
1242
1242
|
w("circle", {
|
|
1243
1243
|
cx: f.value.x,
|
|
1244
|
-
cy:
|
|
1244
|
+
cy: O.value.y,
|
|
1245
1245
|
r: e.value.style.layout.plots.selectors.markers.radius,
|
|
1246
1246
|
fill: e.value.style.layout.plots.selectors.markers.fill,
|
|
1247
1247
|
stroke: e.value.style.layout.plots.selectors.markers.stroke,
|
|
@@ -1251,17 +1251,17 @@ const ql = ["id"], Hl = ["id"], Zl = ["xmlns", "viewBox"], Ql = ["width", "heigh
|
|
|
1251
1251
|
e.value.style.layout.plots.selectors.labels.showName ? (r(), y("text", {
|
|
1252
1252
|
key: 0,
|
|
1253
1253
|
x: f.value.x,
|
|
1254
|
-
y: f.value.y + (f.value.y <
|
|
1254
|
+
y: f.value.y + (f.value.y < O.value.y ? -e.value.style.layout.plots.selectors.labels.fontSize / 2 : e.value.style.layout.plots.selectors.labels.fontSize),
|
|
1255
1255
|
"font-size": e.value.style.layout.plots.selectors.labels.fontSize,
|
|
1256
1256
|
fill: e.value.style.layout.plots.selectors.labels.color,
|
|
1257
1257
|
"font-weight": e.value.style.layout.plots.selectors.labels.bold ? "bold" : "normal",
|
|
1258
|
-
"text-anchor": f.value.x < n.value.left + 100 ? "start" : f.value.x > n.value.right - 100 ? "end" : f.value.x >
|
|
1258
|
+
"text-anchor": f.value.x < n.value.left + 100 ? "start" : f.value.x > n.value.right - 100 ? "end" : f.value.x > O.value.x ? "start" : "end"
|
|
1259
1259
|
}, G(f.value.v.name), 9, Xa)) : x("", !0)
|
|
1260
1260
|
])) : x("", !0),
|
|
1261
1261
|
e.value.style.layout.dataLabels.xAxis.show ? (r(), y("g", {
|
|
1262
1262
|
key: 7,
|
|
1263
1263
|
ref_key: "xAxisLabelLeft",
|
|
1264
|
-
ref:
|
|
1264
|
+
ref: Fe
|
|
1265
1265
|
}, [
|
|
1266
1266
|
w("text", {
|
|
1267
1267
|
id: `vue-ui-scatter-xAxis-label-${W.value}`,
|
|
@@ -1275,7 +1275,7 @@ const ql = ["id"], Hl = ["id"], Zl = ["xmlns", "viewBox"], Ql = ["width", "heigh
|
|
|
1275
1275
|
"text-anchor": "middle",
|
|
1276
1276
|
"font-size": e.value.style.layout.dataLabels.xAxis.fontSize,
|
|
1277
1277
|
fill: e.value.style.layout.dataLabels.xAxis.color,
|
|
1278
|
-
transform: `translate(${e.value.style.layout.dataLabels.xAxis.name ? e.value.style.layout.dataLabels.xAxis.fontSize * 3 : 0}, ${
|
|
1278
|
+
transform: `translate(${e.value.style.layout.dataLabels.xAxis.name ? e.value.style.layout.dataLabels.xAxis.fontSize * 3 : 0}, ${O.value.y + e.value.style.layout.dataLabels.xAxis.fontSize / 3}), rotate(-90)`
|
|
1279
1279
|
}, G(c(ie)(
|
|
1280
1280
|
e.value.style.layout.plots.selectors.labels.x.formatter,
|
|
1281
1281
|
c(q)(P.value.xMin),
|
|
@@ -1292,7 +1292,7 @@ const ql = ["id"], Hl = ["id"], Zl = ["xmlns", "viewBox"], Ql = ["width", "heigh
|
|
|
1292
1292
|
ref_key: "xAxisLabelRight",
|
|
1293
1293
|
ref: qt,
|
|
1294
1294
|
"text-anchor": "middle",
|
|
1295
|
-
transform: `translate(${n.value.right + e.value.style.layout.padding.right + 6}, ${
|
|
1295
|
+
transform: `translate(${n.value.right + e.value.style.layout.padding.right + 6}, ${O.value.y + e.value.style.layout.dataLabels.xAxis.fontSize / 3}), rotate(-90)`,
|
|
1296
1296
|
"font-size": e.value.style.layout.dataLabels.xAxis.fontSize,
|
|
1297
1297
|
fill: e.value.style.layout.dataLabels.xAxis.color
|
|
1298
1298
|
}, G(c(ie)(
|
|
@@ -1309,7 +1309,7 @@ const ql = ["id"], Hl = ["id"], Zl = ["xmlns", "viewBox"], Ql = ["width", "heigh
|
|
|
1309
1309
|
key: 9,
|
|
1310
1310
|
ref_key: "yAxisLabelTop",
|
|
1311
1311
|
ref: Ht,
|
|
1312
|
-
x:
|
|
1312
|
+
x: O.value.x,
|
|
1313
1313
|
y: n.value.top - e.value.style.layout.dataLabels.yAxis.fontSize,
|
|
1314
1314
|
"text-anchor": "middle",
|
|
1315
1315
|
"font-size": e.value.style.layout.dataLabels.yAxis.fontSize,
|
|
@@ -1327,11 +1327,11 @@ const ql = ["id"], Hl = ["id"], Zl = ["xmlns", "viewBox"], Ql = ["width", "heigh
|
|
|
1327
1327
|
e.value.style.layout.dataLabels.yAxis.show ? (r(), y("g", {
|
|
1328
1328
|
key: 10,
|
|
1329
1329
|
ref_key: "yAxisLabelBottom",
|
|
1330
|
-
ref:
|
|
1330
|
+
ref: We
|
|
1331
1331
|
}, [
|
|
1332
1332
|
w("text", {
|
|
1333
|
-
x:
|
|
1334
|
-
y:
|
|
1333
|
+
x: O.value.x,
|
|
1334
|
+
y: F.value.height - e.value.style.layout.dataLabels.yAxis.fontSize * 2,
|
|
1335
1335
|
"text-anchor": "middle",
|
|
1336
1336
|
"font-size": e.value.style.layout.dataLabels.yAxis.fontSize,
|
|
1337
1337
|
fill: e.value.style.layout.dataLabels.yAxis.color
|
|
@@ -1351,7 +1351,7 @@ const ql = ["id"], Hl = ["id"], Zl = ["xmlns", "viewBox"], Ql = ["width", "heigh
|
|
|
1351
1351
|
"font-weight": e.value.style.layout.dataLabels.yAxis.bold ? "bold" : "normal",
|
|
1352
1352
|
fill: e.value.style.layout.dataLabels.yAxis.color,
|
|
1353
1353
|
x: n.value.left + n.value.width / 2,
|
|
1354
|
-
y:
|
|
1354
|
+
y: F.value.height
|
|
1355
1355
|
}, G(e.value.style.layout.dataLabels.yAxis.name), 9, Ga)
|
|
1356
1356
|
], 512)) : x("", !0),
|
|
1357
1357
|
w("clipPath", {
|
|
@@ -1390,7 +1390,16 @@ const ql = ["id"], Hl = ["id"], Zl = ["xmlns", "viewBox"], Ql = ["width", "heigh
|
|
|
1390
1390
|
})), 9, Ja)) : x("", !0)
|
|
1391
1391
|
]))), 256))
|
|
1392
1392
|
])) : x("", !0),
|
|
1393
|
-
j(l.$slots, "svg", {
|
|
1393
|
+
j(l.$slots, "svg", {
|
|
1394
|
+
svg: {
|
|
1395
|
+
...F.value,
|
|
1396
|
+
drawingArea: {
|
|
1397
|
+
...n.value,
|
|
1398
|
+
zero: O.value
|
|
1399
|
+
},
|
|
1400
|
+
data: Ae.value
|
|
1401
|
+
}
|
|
1402
|
+
}, void 0, !0)
|
|
1394
1403
|
], 46, Zl)),
|
|
1395
1404
|
l.$slots.watermark ? (r(), y("div", Ka, [
|
|
1396
1405
|
j(l.$slots, "watermark", pe(fe({ isPrinting: c(pt) || c(ft) })), void 0, !0)
|
|
@@ -1434,7 +1443,7 @@ const ql = ["id"], Hl = ["id"], Zl = ["xmlns", "viewBox"], Ql = ["width", "heigh
|
|
|
1434
1443
|
j(l.$slots, "source", {}, void 0, !0)
|
|
1435
1444
|
], 512)) : x("", !0),
|
|
1436
1445
|
$e(c(Nt), {
|
|
1437
|
-
show: H.value.showTooltip &&
|
|
1446
|
+
show: H.value.showTooltip && Oe.value,
|
|
1438
1447
|
backgroundColor: e.value.style.tooltip.backgroundColor,
|
|
1439
1448
|
color: e.value.style.tooltip.color,
|
|
1440
1449
|
borderRadius: e.value.style.tooltip.borderRadius,
|
|
@@ -1445,7 +1454,7 @@ const ql = ["id"], Hl = ["id"], Zl = ["xmlns", "viewBox"], Ql = ["width", "heigh
|
|
|
1445
1454
|
position: e.value.style.tooltip.position,
|
|
1446
1455
|
offsetY: e.value.style.tooltip.offsetY,
|
|
1447
1456
|
parent: te.value,
|
|
1448
|
-
content:
|
|
1457
|
+
content: De.value,
|
|
1449
1458
|
isFullscreen: re.value,
|
|
1450
1459
|
isCustom: e.value.style.tooltip.customFormat && typeof e.value.style.tooltip.customFormat == "function",
|
|
1451
1460
|
smooth: e.value.style.tooltip.smooth,
|
|
@@ -1481,10 +1490,10 @@ const ql = ["id"], Hl = ["id"], Zl = ["xmlns", "viewBox"], Ql = ["width", "heigh
|
|
|
1481
1490
|
content: X(() => [
|
|
1482
1491
|
(r(), le(c(Yt), {
|
|
1483
1492
|
key: `table_${ut.value}`,
|
|
1484
|
-
colNames:
|
|
1485
|
-
head:
|
|
1486
|
-
body:
|
|
1487
|
-
config:
|
|
1493
|
+
colNames: Le.value.colNames,
|
|
1494
|
+
head: Le.value.head,
|
|
1495
|
+
body: Le.value.body,
|
|
1496
|
+
config: Le.value.config,
|
|
1488
1497
|
title: e.value.table.useDialog ? "" : be.value.title,
|
|
1489
1498
|
withCloseButton: !e.value.table.useDialog,
|
|
1490
1499
|
onClose: St
|
|
@@ -1532,7 +1541,7 @@ const ql = ["id"], Hl = ["id"], Zl = ["xmlns", "viewBox"], Ql = ["width", "heigh
|
|
|
1532
1541
|
c(vt) ? (r(), le(Wl, { key: 8 })) : x("", !0)
|
|
1533
1542
|
], 46, ql));
|
|
1534
1543
|
}
|
|
1535
|
-
}, _o = /* @__PURE__ */ Gl(no, [["__scopeId", "data-v-
|
|
1544
|
+
}, _o = /* @__PURE__ */ Gl(no, [["__scopeId", "data-v-5baf3192"]]);
|
|
1536
1545
|
export {
|
|
1537
1546
|
_o as default
|
|
1538
1547
|
};
|