vue-data-ui 2.3.96 → 2.3.98
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-eiCuVfYA.cjs → Arrow-BLDzSVI-.cjs} +1 -1
- package/dist/{Arrow-Dse9W-xd.js → Arrow-DgyN_Z51.js} +1 -1
- package/dist/{BaseIcon-DJbzYsmN.cjs → BaseIcon-BriP3G7r.cjs} +1 -1
- package/dist/{BaseIcon-DFIHCTyJ.js → BaseIcon-CdxkWcA_.js} +1 -1
- package/dist/{DataTable-TdEc8llA.js → DataTable-CFtLoh2y.js} +2 -2
- package/dist/{DataTable-YpBvWSn5.cjs → DataTable-DT8VcwR5.cjs} +1 -1
- package/dist/{Legend-CsYNhmuM.cjs → Legend-BiaVNQjc.cjs} +1 -1
- package/dist/{Legend-BsB-CXKk.js → Legend-DlZZeU8Y.js} +1 -1
- package/dist/{PackageVersion-C5LvF-TN.js → PackageVersion-B2pJ6f4s.js} +1 -1
- package/dist/{PackageVersion-kqwH1rG4.cjs → PackageVersion-DMkpXFFU.cjs} +1 -1
- package/dist/{Shape-CyDjKOjw.cjs → Shape-CLCzNUYM.cjs} +1 -1
- package/dist/{Shape-DpWOBZlx.js → Shape-CbyenPbK.js} +1 -1
- package/dist/{Slicer-BQr2RZjz.js → Slicer-C2ocGjgt.js} +2 -2
- package/dist/{Slicer-D-wCwIJ3.cjs → Slicer-CCE1xFS8.cjs} +1 -1
- package/dist/{Title-BMSO566P.js → Title-DqYX5EDQ.js} +1 -1
- package/dist/{Title-DWSN4YUC.cjs → Title-spYln43E.cjs} +1 -1
- package/dist/{Tooltip-CHABi2zh.js → Tooltip-7I8a4mo2.js} +1 -1
- package/dist/{Tooltip-Bl8Ilf5h.cjs → Tooltip-BgkDlGZj.cjs} +1 -1
- package/dist/{index-BcpaEQjg.js → index-CHn5mpNE.js} +724 -702
- package/dist/{index-Bv8wGGBc.cjs → index-xtIm3ydy.cjs} +8 -8
- package/dist/style.css +1 -1
- package/dist/{useNestedProp-CEsVEbKF.js → useNestedProp-BF5raFbY.js} +1 -1
- package/dist/{useNestedProp-Bf7w6kTt.cjs → useNestedProp-XzXFHriE.cjs} +1 -1
- package/dist/{usePrinter-7jNVagoH.cjs → usePrinter-BrE53tUa.cjs} +1 -1
- package/dist/{usePrinter-DzCuoQHM.js → usePrinter-DNwJl64i.js} +1 -1
- package/dist/{vue-data-ui-BFU1Dig_.js → vue-data-ui-D74akyv3.js} +57 -57
- package/dist/{vue-data-ui-Bs74qL5y.cjs → vue-data-ui-DyzsgRrE.cjs} +1 -1
- package/dist/vue-data-ui.cjs +1 -1
- package/dist/vue-data-ui.js +7 -7
- package/dist/{vue-ui-3d-bar-4ue7sfgA.js → vue-ui-3d-bar-CEIsvuEw.js} +8 -8
- package/dist/{vue-ui-3d-bar-DxfiT-RQ.cjs → vue-ui-3d-bar-DABkuo-g.cjs} +1 -1
- package/dist/{vue-ui-accordion-CSkH8Ztm.cjs → vue-ui-accordion-DDiQi7FV.cjs} +1 -1
- package/dist/{vue-ui-accordion-Dhi5XiYk.js → vue-ui-accordion-DXd5ND_A.js} +3 -3
- package/dist/{vue-ui-age-pyramid-BApJ-rfW.js → vue-ui-age-pyramid-Bk87h-18.js} +9 -9
- package/dist/{vue-ui-age-pyramid-Ds5Q2JFz.cjs → vue-ui-age-pyramid-DgDByrGl.cjs} +1 -1
- package/dist/{vue-ui-annotator-BASwkqF2.js → vue-ui-annotator-B6velitp.js} +1 -1
- package/dist/{vue-ui-annotator-8qRRkhYB.cjs → vue-ui-annotator-CC523zDg.cjs} +1 -1
- package/dist/{vue-ui-candlestick-Dlgm0_M_.js → vue-ui-candlestick-BW7ajYg7.js} +10 -10
- package/dist/{vue-ui-candlestick-CljlKMFQ.cjs → vue-ui-candlestick-DbU_XaYN.cjs} +1 -1
- package/dist/{vue-ui-carousel-table-DkveY2W7.cjs → vue-ui-carousel-table-23OR7otR.cjs} +1 -1
- package/dist/{vue-ui-carousel-table-3izbh8XN.js → vue-ui-carousel-table-C2GpkqxJ.js} +4 -4
- package/dist/{vue-ui-chestnut-DzKXA8vJ.js → vue-ui-chestnut-s4sYE-Yq.js} +7 -7
- package/dist/{vue-ui-chestnut-CQu1jOyT.cjs → vue-ui-chestnut-ynySog92.cjs} +1 -1
- package/dist/{vue-ui-cursor-BrBsIJo3.js → vue-ui-cursor-B3OZaotE.js} +2 -2
- package/dist/{vue-ui-cursor-DbQV-LLF.cjs → vue-ui-cursor-C0JCZjSM.cjs} +1 -1
- package/dist/{vue-ui-dashboard-DXdmiwYq.js → vue-ui-dashboard-B8glPKoJ.js} +2 -2
- package/dist/{vue-ui-dashboard-Wzves807.cjs → vue-ui-dashboard-Bn3v9JMP.cjs} +1 -1
- package/dist/{vue-ui-digits-BppnP8CH.js → vue-ui-digits-BTw5A-9I.js} +2 -2
- package/dist/{vue-ui-digits-CSQi9Lh3.cjs → vue-ui-digits-Bf3jPyKq.cjs} +1 -1
- package/dist/{vue-ui-donut-DkHShWM1.js → vue-ui-donut-CMHiEbv5.js} +10 -10
- package/dist/{vue-ui-donut-evolution-oDtnYccI.js → vue-ui-donut-evolution-Cn-kZE-i.js} +10 -10
- package/dist/{vue-ui-donut-evolution-CwOes6ko.cjs → vue-ui-donut-evolution-DMM09v7x.cjs} +1 -1
- package/dist/{vue-ui-donut-CqlGTsGd.cjs → vue-ui-donut-yfNvdjlP.cjs} +1 -1
- package/dist/{vue-ui-dumbbell-DQlj4MnV.cjs → vue-ui-dumbbell-6liDM1Uq.cjs} +1 -1
- package/dist/{vue-ui-dumbbell-CDv2q1Sr.js → vue-ui-dumbbell-BRgiYAXh.js} +9 -9
- package/dist/{vue-ui-flow-Bx-zjQWh.cjs → vue-ui-flow-B7wvK8sK.cjs} +1 -1
- package/dist/{vue-ui-flow-1DFcpdAA.js → vue-ui-flow-CkRBNjsz.js} +8 -8
- package/dist/{vue-ui-galaxy-BqB8ilSB.cjs → vue-ui-galaxy-BuuC5iw-.cjs} +1 -1
- package/dist/{vue-ui-galaxy-bE0htYx4.js → vue-ui-galaxy-C1I2rPqV.js} +10 -10
- package/dist/{vue-ui-gauge-QgQpiMpP.js → vue-ui-gauge-B0PNChvw.js} +6 -6
- package/dist/{vue-ui-gauge-B3fJ7NBS.cjs → vue-ui-gauge-BvJ0qzq4.cjs} +1 -1
- package/dist/{vue-ui-gizmo-BPTXhk_5.cjs → vue-ui-gizmo-C6G_WlP5.cjs} +1 -1
- package/dist/{vue-ui-gizmo-Dvhxmifg.js → vue-ui-gizmo-HvL1eMUO.js} +3 -3
- package/dist/{vue-ui-heatmap-mKhWCDCz.cjs → vue-ui-heatmap-5ALzyHu_.cjs} +1 -1
- package/dist/{vue-ui-heatmap-Dz__vLIx.js → vue-ui-heatmap-CQXqbbaT.js} +9 -9
- package/dist/{vue-ui-kpi-By6cERhR.cjs → vue-ui-kpi-5u25Gbfg.cjs} +1 -1
- package/dist/{vue-ui-kpi-CBUwc_CD.js → vue-ui-kpi-JIlZQFAC.js} +3 -3
- package/dist/{vue-ui-mini-loader-jX_8sp7v.cjs → vue-ui-mini-loader-DcJ58uSW.cjs} +1 -1
- package/dist/{vue-ui-mini-loader-DgHibV20.js → vue-ui-mini-loader-Dktn_fME.js} +2 -2
- package/dist/{vue-ui-molecule-DKpW8ux_.js → vue-ui-molecule-BSSNMC6m.js} +10 -10
- package/dist/{vue-ui-molecule-B0U_SHX-.cjs → vue-ui-molecule-Wefpekma.cjs} +1 -1
- package/dist/{vue-ui-mood-radar-DVChUb6f.cjs → vue-ui-mood-radar-B7oYZs55.cjs} +1 -1
- package/dist/{vue-ui-mood-radar-DCDK2sIV.js → vue-ui-mood-radar-D4fVO5iO.js} +10 -10
- package/dist/{vue-ui-nested-donuts-FMQPCwII.js → vue-ui-nested-donuts-4_tabA8c.js} +10 -10
- package/dist/{vue-ui-nested-donuts-CGp-Jubi.cjs → vue-ui-nested-donuts-ClqZ-eJl.cjs} +1 -1
- package/dist/{vue-ui-onion-DL6021Q8.js → vue-ui-onion-Ch6BgUFP.js} +10 -10
- package/dist/{vue-ui-onion-uId6GP2z.cjs → vue-ui-onion-DQ9E4dGJ.cjs} +1 -1
- package/dist/{vue-ui-parallel-coordinate-plot-BQuvfJQt.js → vue-ui-parallel-coordinate-plot-BtZ1F37V.js} +11 -11
- package/dist/{vue-ui-parallel-coordinate-plot-BQnqXMkU.cjs → vue-ui-parallel-coordinate-plot-CeXmNMQ-.cjs} +1 -1
- package/dist/{vue-ui-quadrant-rUE9NWa4.js → vue-ui-quadrant-CGiq44Mt.js} +11 -11
- package/dist/{vue-ui-quadrant-D0aD-7Tw.cjs → vue-ui-quadrant-fhNZ5-B5.cjs} +1 -1
- package/dist/{vue-ui-quick-chart-Jh4YDviZ.js → vue-ui-quick-chart-B-vFmpy5.js} +8 -8
- package/dist/{vue-ui-quick-chart-D-sbJNy5.cjs → vue-ui-quick-chart-DI4IPOIj.cjs} +1 -1
- package/dist/{vue-ui-radar-De-YX5t1.cjs → vue-ui-radar-B80HMKEf.cjs} +1 -1
- package/dist/{vue-ui-radar-Bfdoz0Xo.js → vue-ui-radar-DWzxx466.js} +11 -11
- package/dist/{vue-ui-rating-Dur118_W.cjs → vue-ui-rating-BOGhqulq.cjs} +1 -1
- package/dist/{vue-ui-rating-D9vACqJ2.js → vue-ui-rating-CPuKzB4x.js} +2 -2
- package/dist/{vue-ui-relation-circle-Dux0WfBo.cjs → vue-ui-relation-circle-DNaNyiIv.cjs} +1 -1
- package/dist/{vue-ui-relation-circle-CnRm-wQ3.js → vue-ui-relation-circle-dUlg-_QI.js} +6 -6
- package/dist/{vue-ui-rings-BkrRebjS.cjs → vue-ui-rings-C_z0XK6f.cjs} +1 -1
- package/dist/{vue-ui-rings-B3K3LXLl.js → vue-ui-rings-CqFaPqaR.js} +10 -10
- package/dist/{vue-ui-scatter-DejGOjhr.js → vue-ui-scatter-Bsfc6z4K.js} +147 -147
- package/dist/vue-ui-scatter-DFiICBjw.cjs +1 -0
- package/dist/{vue-ui-screenshot-C08awO8c.js → vue-ui-screenshot-CXptYbDY.js} +1 -1
- package/dist/{vue-ui-screenshot-Bar9x-5m.cjs → vue-ui-screenshot-uE34c5Im.cjs} +1 -1
- package/dist/{vue-ui-skeleton-C53xk8CG.js → vue-ui-skeleton-BmPO8QNa.js} +3 -3
- package/dist/{vue-ui-skeleton-TRdDtmHK.cjs → vue-ui-skeleton-g8cEqYmt.cjs} +1 -1
- package/dist/{vue-ui-smiley-Cea-O3KH.js → vue-ui-smiley-ByBzn20M.js} +2 -2
- package/dist/{vue-ui-smiley-Dav2CD3O.cjs → vue-ui-smiley-DQEb9ejw.cjs} +1 -1
- package/dist/{vue-ui-spark-trend-6ntFUEU4.cjs → vue-ui-spark-trend-BXiiilKK.cjs} +1 -1
- package/dist/{vue-ui-spark-trend-Bs8twUaY.js → vue-ui-spark-trend-DYfjqLKr.js} +18 -18
- package/dist/{vue-ui-sparkbar-C21yWQQ3.cjs → vue-ui-sparkbar-BCqmWJWk.cjs} +1 -1
- package/dist/{vue-ui-sparkbar-Cbmc-caP.js → vue-ui-sparkbar-D37uDtG6.js} +4 -4
- package/dist/{vue-ui-sparkgauge-BmamgyGt.cjs → vue-ui-sparkgauge-Dp4bJ89f.cjs} +1 -1
- package/dist/{vue-ui-sparkgauge-0GVv8hjM.js → vue-ui-sparkgauge-f1tYOMwd.js} +4 -4
- package/dist/{vue-ui-sparkhistogram-DCM-BHkv.js → vue-ui-sparkhistogram-DHYJG6d0.js} +5 -5
- package/dist/{vue-ui-sparkhistogram-CfdPXl3J.cjs → vue-ui-sparkhistogram-Gh_h9QK_.cjs} +1 -1
- package/dist/{vue-ui-sparkline-BYJczOkd.js → vue-ui-sparkline-CENc9bgs.js} +4 -4
- package/dist/{vue-ui-sparkline-BTNHzn2V.cjs → vue-ui-sparkline-CkPExlPm.cjs} +1 -1
- package/dist/{vue-ui-sparkstackbar-CkAqCQvJ.js → vue-ui-sparkstackbar-BNUyfD4B.js} +4 -4
- package/dist/{vue-ui-sparkstackbar-DRhK17o6.cjs → vue-ui-sparkstackbar-WWR3yYii.cjs} +1 -1
- package/dist/{vue-ui-stackbar-CfYTo4Ku.js → vue-ui-stackbar-BQC8Ca_b.js} +33 -33
- package/dist/{vue-ui-stackbar-DYBUaxzj.cjs → vue-ui-stackbar-CFIZ94i3.cjs} +1 -1
- package/dist/{vue-ui-strip-plot-CIN4KwoI.cjs → vue-ui-strip-plot-BEyk6uih.cjs} +1 -1
- package/dist/{vue-ui-strip-plot-DEXBmsAI.js → vue-ui-strip-plot-OPkq7c7M.js} +10 -10
- package/dist/{vue-ui-table-DRpceoPe.cjs → vue-ui-table-Btz8Txup.cjs} +1 -1
- package/dist/{vue-ui-table-nN3CrtRu.js → vue-ui-table-DQno4vjF.js} +16 -16
- package/dist/{vue-ui-table-heatmap-DGJ9FlVp.cjs → vue-ui-table-heatmap-DAQ3DL1R.cjs} +1 -1
- package/dist/{vue-ui-table-heatmap-BA2teZNQ.js → vue-ui-table-heatmap-Dvl7B3i2.js} +15 -15
- package/dist/{vue-ui-table-sparkline-BvnGInz9.js → vue-ui-table-sparkline-DJwhjePK.js} +16 -16
- package/dist/{vue-ui-table-sparkline-Cu3WXN2z.cjs → vue-ui-table-sparkline-ZEGDkLve.cjs} +1 -1
- package/dist/{vue-ui-thermometer-DbZ0o20q.cjs → vue-ui-thermometer-DCP3GH7M.cjs} +1 -1
- package/dist/{vue-ui-thermometer-tMXK87ka.js → vue-ui-thermometer-Dmi60VAf.js} +6 -6
- package/dist/{vue-ui-timer-SzmYKRd2.js → vue-ui-timer-BffyRll5.js} +5 -5
- package/dist/{vue-ui-timer-BC8eaIGC.cjs → vue-ui-timer-BjlYd8dM.cjs} +1 -1
- package/dist/{vue-ui-tiremarks-D-OLOU0v.cjs → vue-ui-tiremarks-2RGbitnQ.cjs} +1 -1
- package/dist/{vue-ui-tiremarks-Ckslwdk8.js → vue-ui-tiremarks-GSBKzXEK.js} +6 -6
- package/dist/{vue-ui-treemap-Mm79m8P6.js → vue-ui-treemap-CuYV5RnC.js} +10 -10
- package/dist/{vue-ui-treemap-CUtRsRug.cjs → vue-ui-treemap-D0wMLDpi.cjs} +1 -1
- package/dist/{vue-ui-vertical-bar-CvLxGsDB.cjs → vue-ui-vertical-bar-CqH76_tw.cjs} +1 -1
- package/dist/{vue-ui-vertical-bar-r6pUOD2L.js → vue-ui-vertical-bar-n6-aILoL.js} +10 -10
- package/dist/{vue-ui-waffle-CSyW6ncV.cjs → vue-ui-waffle-CUw9wjum.cjs} +1 -1
- package/dist/{vue-ui-waffle-C_9IOFs2.js → vue-ui-waffle-DN0nEorT.js} +10 -10
- package/dist/{vue-ui-wheel-CKr2Vu47.cjs → vue-ui-wheel-bauD1n_w.cjs} +1 -1
- package/dist/{vue-ui-wheel-BOhOVAnh.js → vue-ui-wheel-gFxj5brx.js} +6 -6
- package/dist/{vue-ui-word-cloud-ES0R6vuB.js → vue-ui-word-cloud-BXCUAiAK.js} +26 -26
- package/dist/{vue-ui-word-cloud-D2pGh3Xa.cjs → vue-ui-word-cloud-CzXCfW8Q.cjs} +1 -1
- package/dist/{vue-ui-xy-CyFLJGSu.js → vue-ui-xy-BbRzriSg.js} +272 -272
- package/dist/{vue-ui-xy-BASuw3ZU.cjs → vue-ui-xy-CEfc7szr.cjs} +2 -2
- package/dist/{vue-ui-xy-canvas-BSV_IOwc.js → vue-ui-xy-canvas-Cw-F7w38.js} +34 -34
- package/dist/{vue-ui-xy-canvas-1N7guNkI.cjs → vue-ui-xy-canvas-DhHuhTxz.cjs} +1 -1
- package/package.json +1 -1
- package/dist/vue-ui-scatter-DeebI4Fn.cjs +0 -1
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
import { ref as v, computed as b, watch as Y, onMounted as pa, onBeforeUnmount as ba, openBlock as S, createElementBlock as se, normalizeStyle as Z, normalizeClass as ma, createBlock as
|
|
2
|
-
import { u as Ca, c as wa, t as Sa, a as $a, p as D, b as za, C as fe, i as J, f as K, I as Ta, d as Ze,
|
|
3
|
-
import { d as
|
|
4
|
-
import { _ as Wa } from "./Tooltip-
|
|
5
|
-
import { L as Ya } from "./Legend-
|
|
6
|
-
import { _ as Ba } from "./Title-
|
|
7
|
-
import { S as Xa } from "./Slicer-
|
|
8
|
-
import { u as Aa, U as Ua } from "./usePrinter-
|
|
9
|
-
import Za from "./vue-ui-accordion-
|
|
10
|
-
import { D as Ga } from "./DataTable-
|
|
11
|
-
import Va from "./vue-ui-skeleton-
|
|
12
|
-
import { u as qe } from "./useNestedProp-
|
|
1
|
+
import { ref as v, computed as b, watch as Y, onMounted as pa, onBeforeUnmount as ba, openBlock as S, createElementBlock as se, normalizeStyle as Z, normalizeClass as ma, createBlock as _, createCommentVNode as G, unref as N, createSlots as xa, withCtx as m, renderSlot as k, normalizeProps as V, guardReactiveProps as j, createElementVNode as q, createVNode as La, toDisplayString as Ue, createTextVNode as ka } from "vue";
|
|
2
|
+
import { u as Ca, c as wa, t as Sa, a as $a, p as D, b as za, C as fe, i as J, f as K, I as Ta, d as Ze, $ as Ma, o as Ra, e as Ia, x as Ge, y as Oa, q as Pa, r as Fa, s as Q, l as Ea } from "./index-CHn5mpNE.js";
|
|
3
|
+
import { d as _a, c as Na, a as Ve, t as Da, l as C, r as ye, b as P, p as je, u as Ha } from "./useResponsive-NZB-WLRF.js";
|
|
4
|
+
import { _ as Wa } from "./Tooltip-7I8a4mo2.js";
|
|
5
|
+
import { L as Ya } from "./Legend-DlZZeU8Y.js";
|
|
6
|
+
import { _ as Ba } from "./Title-DqYX5EDQ.js";
|
|
7
|
+
import { S as Xa } from "./Slicer-C2ocGjgt.js";
|
|
8
|
+
import { u as Aa, U as Ua } from "./usePrinter-DNwJl64i.js";
|
|
9
|
+
import Za from "./vue-ui-accordion-DXd5ND_A.js";
|
|
10
|
+
import { D as Ga } from "./DataTable-CFtLoh2y.js";
|
|
11
|
+
import Va from "./vue-ui-skeleton-BmPO8QNa.js";
|
|
12
|
+
import { u as qe } from "./useNestedProp-BF5raFbY.js";
|
|
13
13
|
import { _ as ja } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
14
14
|
const qa = ["id"], Ja = ["onClick"], Ka = {
|
|
15
15
|
key: 2,
|
|
@@ -32,7 +32,7 @@ const qa = ["id"], Ja = ["onClick"], Ka = {
|
|
|
32
32
|
},
|
|
33
33
|
emits: ["selectLegend"],
|
|
34
34
|
setup(ge, { expose: Je, emit: Ke }) {
|
|
35
|
-
const F = ge, { vue_ui_xy_canvas: Qe } = Ca(), ne = v(wa()), ee = v(null), $ = v(null), B = v(null), s = v(null), f = v(1), M = v(1), ae = v(!1), d = v(null), le = v(""), pe = v(null), w = v([]), H = v(1),
|
|
35
|
+
const F = ge, { vue_ui_xy_canvas: Qe } = Ca(), ne = v(wa()), ee = v(null), $ = v(null), B = v(null), s = v(null), f = v(1), M = v(1), ae = v(!1), d = v(null), le = v(""), pe = v(null), w = v([]), H = v(1), E = v(!0), z = v(!0), ie = v(null), be = v(0), me = v(0), ve = v(!1), xe = v(null), Le = v(null), ke = v(null), Ce = v(0), we = v(0), Se = v(0), ce = b(() => !!F.dataset && F.dataset.length), a = b({
|
|
36
36
|
get: () => $e(),
|
|
37
37
|
set: (e) => e
|
|
38
38
|
});
|
|
@@ -50,7 +50,7 @@ const qa = ["id"], Ja = ["onClick"], Ka = {
|
|
|
50
50
|
} : e;
|
|
51
51
|
}
|
|
52
52
|
Y(() => F.config, (e) => {
|
|
53
|
-
a.value = $e(),
|
|
53
|
+
a.value = $e(), _e(), Ce.value += 1, we.value += 1, Se.value += 1;
|
|
54
54
|
}, { deep: !0 });
|
|
55
55
|
const ze = v(a.value.style.chart.aspectRatio), { isPrinting: Te, isImaging: Me, generatePdf: Re, generateImage: Ie } = Aa({
|
|
56
56
|
elementId: `xy_canvas_${ne.value}`,
|
|
@@ -482,7 +482,7 @@ const qa = ["id"], Ja = ["onClick"], Ka = {
|
|
|
482
482
|
}
|
|
483
483
|
);
|
|
484
484
|
}
|
|
485
|
-
function
|
|
485
|
+
function Ee() {
|
|
486
486
|
C(
|
|
487
487
|
s.value,
|
|
488
488
|
[
|
|
@@ -534,7 +534,7 @@ const qa = ["id"], Ja = ["onClick"], Ka = {
|
|
|
534
534
|
},
|
|
535
535
|
stops: [
|
|
536
536
|
{ offset: 0, color: e.color },
|
|
537
|
-
{ offset: 1, color:
|
|
537
|
+
{ offset: 1, color: Ea(e.color, 0.5) }
|
|
538
538
|
]
|
|
539
539
|
}
|
|
540
540
|
}
|
|
@@ -599,9 +599,9 @@ const qa = ["id"], Ja = ["onClick"], Ka = {
|
|
|
599
599
|
});
|
|
600
600
|
}
|
|
601
601
|
function de() {
|
|
602
|
-
ua(),
|
|
602
|
+
ua(), E.value ? (z.value && d.value !== null && a.value.style.chart.selector.show && Ee(), ia(), r.value.stacked && a.value.style.chart.grid.x.showAxis && ca(), ta.value.forEach((e) => {
|
|
603
603
|
(e.type === "line" || !e.type) && va(e), z.value && (ra(e), r.value.showDataLabels && [!0, void 0].includes(e.dataLabels) && sa(e));
|
|
604
|
-
}), ie.value = Na($.value)) : (ie.value && (s.value.clearRect(0, 0, 1e4, 1e4), s.value.drawImage(ie.value, 0, 0)), z.value && d.value !== null && a.value.style.chart.selector.show &&
|
|
604
|
+
}), ie.value = Na($.value)) : (ie.value && (s.value.clearRect(0, 0, 1e4, 1e4), s.value.drawImage(ie.value, 0, 0)), z.value && d.value !== null && a.value.style.chart.selector.show && Ee(), z.value && d.value !== null && h.value.forEach((e) => {
|
|
605
605
|
if (e.type === "line" || !e.type || e.type === "plot") {
|
|
606
606
|
if (!e.coordinatesLine[d.value]) return;
|
|
607
607
|
e.coordinatesLine[d.value].x !== void 0 && e.coordinatesLine[d.value].y !== void 0 && Ve(
|
|
@@ -618,9 +618,9 @@ const qa = ["id"], Ja = ["onClick"], Ka = {
|
|
|
618
618
|
}
|
|
619
619
|
);
|
|
620
620
|
}
|
|
621
|
-
})), a.value.style.chart.grid.y.timeLabels.show && na(),
|
|
621
|
+
})), a.value.style.chart.grid.y.timeLabels.show && na(), E.value = !1;
|
|
622
622
|
}
|
|
623
|
-
const te =
|
|
623
|
+
const te = _a(() => {
|
|
624
624
|
z.value = !0, oa();
|
|
625
625
|
}, R.value > 200 ? 10 : 1, !z.value);
|
|
626
626
|
function da(e) {
|
|
@@ -660,22 +660,22 @@ const qa = ["id"], Ja = ["onClick"], Ka = {
|
|
|
660
660
|
Y(() => d.value, (e) => {
|
|
661
661
|
te();
|
|
662
662
|
}), Y(() => u.value, (e) => {
|
|
663
|
-
|
|
663
|
+
E.value = !0, de();
|
|
664
664
|
}, {
|
|
665
665
|
deep: !0
|
|
666
666
|
}), Y(() => r.value.showDataLabels, (e) => {
|
|
667
|
-
|
|
667
|
+
E.value = !0, de();
|
|
668
668
|
}), Y(() => r.value.stacked, (e) => {
|
|
669
|
-
|
|
669
|
+
E.value = !0, z.value = !0, te();
|
|
670
670
|
});
|
|
671
671
|
function ha() {
|
|
672
672
|
ae.value = !1, d.value = null, le.value = "";
|
|
673
673
|
}
|
|
674
674
|
const oe = v(null), ue = v(null);
|
|
675
675
|
pa(() => {
|
|
676
|
-
|
|
676
|
+
_e();
|
|
677
677
|
});
|
|
678
|
-
function
|
|
678
|
+
function _e() {
|
|
679
679
|
if (Ra(F.dataset) ? Ia({
|
|
680
680
|
componentName: "VueUiXyCanvas",
|
|
681
681
|
type: "dataset"
|
|
@@ -693,14 +693,14 @@ const qa = ["id"], Ja = ["onClick"], Ka = {
|
|
|
693
693
|
}
|
|
694
694
|
ue.value = new ResizeObserver((e) => {
|
|
695
695
|
for (const t of e)
|
|
696
|
-
t.contentBoxSize && B.value && (
|
|
696
|
+
t.contentBoxSize && B.value && (E.value = !0, te());
|
|
697
697
|
}), ue.value.observe(B.value);
|
|
698
698
|
}
|
|
699
699
|
ba(() => {
|
|
700
700
|
ue.value && ue.value.disconnect(), oe.value && oe.value.disconnect();
|
|
701
701
|
});
|
|
702
702
|
function Ne(e) {
|
|
703
|
-
Ke("selectLegend", h.value.find((t) => t.absoluteIndex === e)), w.value.includes(e) ? w.value = w.value.filter((t) => t !== e) : w.value.push(e),
|
|
703
|
+
Ke("selectLegend", h.value.find((t) => t.absoluteIndex === e)), w.value.includes(e) ? w.value = w.value.filter((t) => t !== e) : w.value.push(e), E.value = !0, te();
|
|
704
704
|
}
|
|
705
705
|
const De = b(() => W.value.map((e, t) => ({
|
|
706
706
|
...e,
|
|
@@ -799,7 +799,7 @@ const qa = ["id"], Ja = ["onClick"], Ka = {
|
|
|
799
799
|
ref: xe,
|
|
800
800
|
style: Z(`width:100%;background:${a.value.style.chart.backgroundColor};`)
|
|
801
801
|
}, [
|
|
802
|
-
(S(),
|
|
802
|
+
(S(), _(Ba, {
|
|
803
803
|
key: `title_${Ce.value}`,
|
|
804
804
|
config: {
|
|
805
805
|
title: {
|
|
@@ -813,7 +813,7 @@ const qa = ["id"], Ja = ["onClick"], Ka = {
|
|
|
813
813
|
}
|
|
814
814
|
}, null, 8, ["config"]))
|
|
815
815
|
], 4)) : G("", !0),
|
|
816
|
-
a.value.userOptions.show && ce.value ? (S(),
|
|
816
|
+
a.value.userOptions.show && ce.value ? (S(), _(Ua, {
|
|
817
817
|
ref: "details",
|
|
818
818
|
key: `user_option_${me.value}`,
|
|
819
819
|
backgroundColor: a.value.style.chart.backgroundColor,
|
|
@@ -914,7 +914,7 @@ const qa = ["id"], Ja = ["onClick"], Ka = {
|
|
|
914
914
|
style: { width: "100%", height: "100%" },
|
|
915
915
|
onMousemove: t[0] || (t[0] = (o) => da(o)),
|
|
916
916
|
onMouseleave: ha
|
|
917
|
-
}, null, 544)) : (S(),
|
|
917
|
+
}, null, 544)) : (S(), _(Va, {
|
|
918
918
|
key: 1,
|
|
919
919
|
config: {
|
|
920
920
|
type: "line",
|
|
@@ -962,7 +962,7 @@ const qa = ["id"], Ja = ["onClick"], Ka = {
|
|
|
962
962
|
style: Z(`width:100%;background:${a.value.style.chart.backgroundColor}`),
|
|
963
963
|
"data-html2canvas-ignore": ""
|
|
964
964
|
}, [
|
|
965
|
-
a.value.style.chart.zoom.show && R.value > 1 ? (S(),
|
|
965
|
+
a.value.style.chart.zoom.show && R.value > 1 ? (S(), _(Xa, {
|
|
966
966
|
key: `slicer_${be.value}`,
|
|
967
967
|
background: a.value.style.chart.zoom.color,
|
|
968
968
|
borderColor: a.value.style.chart.backgroundColor,
|
|
@@ -993,7 +993,7 @@ const qa = ["id"], Ja = ["onClick"], Ka = {
|
|
|
993
993
|
ref_key: "chartLegend",
|
|
994
994
|
ref: Le
|
|
995
995
|
}, [
|
|
996
|
-
a.value.style.chart.legend.show && ce.value ? (S(),
|
|
996
|
+
a.value.style.chart.legend.show && ce.value ? (S(), _(Ya, {
|
|
997
997
|
legendSet: De.value,
|
|
998
998
|
config: fa.value,
|
|
999
999
|
key: `legend_${Se.value}`,
|
|
@@ -1014,7 +1014,7 @@ const qa = ["id"], Ja = ["onClick"], Ka = {
|
|
|
1014
1014
|
e.$slots.watermark ? (S(), se("div", Ka, [
|
|
1015
1015
|
k(e.$slots, "watermark", V(j({ isPrinting: N(Te) || N(Me) })), void 0, !0)
|
|
1016
1016
|
])) : G("", !0),
|
|
1017
|
-
u.value.end - u.value.start < 200 ? (S(),
|
|
1017
|
+
u.value.end - u.value.start < 200 ? (S(), _(Za, {
|
|
1018
1018
|
key: 3,
|
|
1019
1019
|
hideDetails: "",
|
|
1020
1020
|
config: {
|
|
@@ -1031,7 +1031,7 @@ const qa = ["id"], Ja = ["onClick"], Ka = {
|
|
|
1031
1031
|
}
|
|
1032
1032
|
}, {
|
|
1033
1033
|
content: m(() => [
|
|
1034
|
-
(S(),
|
|
1034
|
+
(S(), _(Ga, {
|
|
1035
1035
|
key: `table_${we.value}`,
|
|
1036
1036
|
colNames: re.value.colNames,
|
|
1037
1037
|
head: re.value.head,
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const a=require("vue"),n=require("./index-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const a=require("vue"),n=require("./index-xtIm3ydy.cjs"),c=require("./useResponsive-B3TrDDIG.cjs"),Ze=require("./Tooltip-BgkDlGZj.cjs"),Ge=require("./Legend-BiaVNQjc.cjs"),je=require("./Title-spYln43E.cjs"),Je=require("./Slicer-CCE1xFS8.cjs"),ze=require("./usePrinter-BrE53tUa.cjs"),Ke=require("./vue-ui-accordion-DDiQi7FV.cjs"),Qe=require("./DataTable-DT8VcwR5.cjs"),et=require("./vue-ui-skeleton-g8cEqYmt.cjs"),$e=require("./useNestedProp-XzXFHriE.cjs"),tt=require("./_plugin-vue_export-helper-BHFhmbuH.cjs"),at=["id"],lt=["onClick"],ot={key:2,class:"vue-data-ui-watermark"},rt=["innerHTML"],ut={__name:"vue-ui-xy-canvas",props:{dataset:{type:Array,default(){return[]}},config:{type:Object,default(){return{}}}},emits:["selectLegend"],setup(J,{expose:Te,emit:Me}){const P=J,{vue_ui_xy_canvas:Pe}=n.useConfig(),U=a.ref(n.createUid()),D=a.ref(null),C=a.ref(null),N=a.ref(null),i=a.ref(null),g=a.ref(1),z=a.ref(1),_=a.ref(!1),f=a.ref(null),H=a.ref(""),K=a.ref(null),k=a.ref([]),O=a.ref(1),R=a.ref(!0),w=a.ref(!0),X=a.ref(null),Q=a.ref(0),ee=a.ref(0),A=a.ref(!1),te=a.ref(null),ae=a.ref(null),le=a.ref(null),oe=a.ref(0),re=a.ref(0),ue=a.ref(0),Z=a.computed(()=>!!P.dataset&&P.dataset.length),t=a.computed({get:()=>ne(),set:e=>e});function ne(){const e=$e.useNestedProp({userConfig:P.config,defaultConfig:Pe});return e.theme?{...$e.useNestedProp({userConfig:n.themes.vue_ui_xy_canvas[e.theme]||P.config,defaultConfig:e}),customPalette:n.themePalettes[e.theme]||n.palette}:e}a.watch(()=>P.config,e=>{t.value=ne(),pe(),oe.value+=1,re.value+=1,ue.value+=1},{deep:!0});const se=a.ref(t.value.style.chart.aspectRatio),{isPrinting:ie,isImaging:ve,generatePdf:ce,generateImage:de}=ze.usePrinter({elementId:`xy_canvas_${U.value}`,fileName:t.value.style.chart.title.text||"vue-ui-xy-canvas"}),s=a.ref({showTable:t.value.table.show,showDataLabels:t.value.style.chart.dataLabels.show,stacked:t.value.style.chart.stacked,showTooltip:t.value.style.chart.tooltip.show});function Re(e){A.value=e,ee.value+=1}const he=a.computed(()=>n.convertCustomPalette(t.value.customPalette)),$=a.computed(()=>I.value?Math.max(...I.value.filter((e,o)=>!k.value.includes(e.absoluteIndex)).map(e=>e.series.length)):0),l=a.computed(()=>{const e=g.value-g.value*(t.value.style.chart.paddingProportions.left+t.value.style.chart.paddingProportions.right);return{canvasWidth:g.value,canvasHeight:z.value,left:g.value*t.value.style.chart.paddingProportions.left,top:z.value*t.value.style.chart.paddingProportions.top,right:g.value-g.value*t.value.style.chart.paddingProportions.right,bottom:z.value-z.value*t.value.style.chart.paddingProportions.bottom,width:e,height:z.value-z.value*(t.value.style.chart.paddingProportions.top+t.value.style.chart.paddingProportions.bottom),slot:e/(u.value.end-u.value.start)}});function fe(e,o){return e/o}function Oe({hasAutoScale:e,series:o,min:r,max:d,scale:h,yOffset:p,individualHeight:v,stackIndex:m=null}){return o.map((L,j)=>{const S=h.min<0?Math.abs(h.min):0,T=fe(L+S,S+h.max);let M,E;e&&(M=Math.abs(h.min),E=fe(L+M,h.max+M));let B=0;return m===null?B=l.value.bottom-l.value.height*(e?E:T):B=l.value.bottom-p-v*(e?E:T),{x:l.value.left+l.value.slot*j+l.value.slot/2,y:B,value:L}})}const b=a.computed(()=>{const e=Math.min(...I.value.filter((v,m)=>!k.value.includes(v.absoluteIndex)).flatMap(v=>v.series.slice(u.value.start,u.value.end))),o=Math.max(...I.value.filter((v,m)=>!k.value.includes(v.absoluteIndex)).flatMap(v=>v.series.slice(u.value.start,u.value.end))),r=n.calculateNiceScale(e<0?e:0,o===e?e+1<0?0:e+1:o<0?0:o,t.value.style.chart.scale.ticks),d=r.min<0?Math.abs(r.min):0,h=l.value.bottom-l.value.height*(d/(r.max+d)),p=r.ticks.map(v=>({y:l.value.bottom-l.value.height*((v+d)/(r.max+d)),x:l.value.left-8,value:v}));return{absoluteMin:d,max:o,min:e,scale:r,yLabels:p,zero:h}}),Ie=a.computed(()=>y.value.map(e=>`
|
|
2
2
|
<div style="display:flex;flex-direction:row;gap:6px;align-items:center;">
|
|
3
3
|
<svg viewBox="0 0 10 10" height="12" width="12">
|
|
4
4
|
<circle cx="5" cy="5" r="5" fill="${e.color}"/>
|
package/package.json
CHANGED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),s=require("./index-Bv8wGGBc.cjs"),he=require("./useResponsive-B3TrDDIG.cjs"),Me=require("./Title-DWSN4YUC.cjs"),fe=require("./usePrinter-7jNVagoH.cjs"),Se=require("./Tooltip-Bl8Ilf5h.cjs"),$e=require("./Legend-CsYNhmuM.cjs"),me=require("./Shape-CyDjKOjw.cjs"),Ee=require("./DataTable-YpBvWSn5.cjs"),Le=require("./vue-ui-skeleton-TRdDtmHK.cjs"),ze=require("./vue-ui-accordion-CSkH8Ztm.cjs"),ge=require("./useNestedProp-Bf7w6kTt.cjs"),Ve=require("./PackageVersion-kqwH1rG4.cjs"),Ae=require("./_plugin-vue_export-helper-BHFhmbuH.cjs"),Te=["id"],Pe=["xmlns","viewBox"],De={key:0},Fe=["x1","x2","y1","y2","stroke","stroke-width"],We=["x1","x2","y1","y2","stroke","stroke-width"],Oe={key:1},qe=["points","fill","stroke-width","stroke-dasharray","stroke"],Ie={key:0},Xe=["cx","cy","r","fill","stroke","stroke-width","onMouseover"],Ye={key:1},je={key:2},Re=["id"],Ge=["stop-color"],Ue=["stop-color"],He=["id"],Je=["stop-color"],Ke=["stop-color"],Qe=["x","y","width","height","fill","stroke","stroke-width","rx"],Ze=["x","y","height","width","fill","stroke","stroke-width","rx"],et={key:0},tt=["d","stroke","stroke-width"],lt=["d","stroke","stroke-width"],at=["d","stroke","stroke-width"],ot=["d","stroke","stroke-width"],st={key:3,style:{"pointer-events":"none !important"}},rt=["x1","x2","y1","y2","stroke","stroke-width","stroke-dasharray"],nt=["x1","x2","y1","y2","stroke","stroke-width","stroke-dasharray"],ut=["x","y","font-size","fill","font-weight","text-anchor"],it=["x","y","font-size","fill","font-weight"],ct=["cx","cy","r","fill","stroke","stroke-width"],yt=["cx","cy","r","fill","stroke","stroke-width"],vt=["x","y","font-size","fill","font-weight","text-anchor"],dt={key:4},pt=["x","y","font-size","fill"],ht=["x","y","font-size","fill"],ft=["id","transform","font-size","font-weight","fill"],mt={key:5},gt=["x","y","font-size","fill"],kt=["x","y","font-size","fill"],xt=["font-size","font-weight","fill","x","y"],bt=["id"],_t=["x","y","width","height"],wt={key:6},Bt=["x1","x2","y1","y2","stroke-dasharray","stroke","stroke-width","clip-path"],Ct=["x","y","fill","font-size","font-weight"],Nt={key:3,class:"vue-data-ui-watermark"},Mt=["onClick"],St={key:0,style:{width:"100%",display:"flex","align-items":"center","justify-content":"center"}},$t={viewBox:"0 0 20 20",height:"20",width:"20",style:{overflow:"hidden",background:"transparent"}},Et={key:0},Lt=["innerHTML"],zt={__name:"vue-ui-scatter",props:{config:{type:Object,default(){return{}}},dataset:{type:Array,default(){return[]}}},setup(ke,{expose:xe}){const C=ke,{vue_ui_scatter:be}=s.useConfig(),P=e.computed(()=>!!C.dataset&&C.dataset.length),g=e.ref(s.createUid()),_e=e.ref(null),q=e.ref(!1),I=e.ref(""),U=e.ref(0),A=e.ref(null),H=e.ref(null),J=e.ref(null),K=e.ref(0),Q=e.ref(0),Z=e.ref(0),t=e.computed({get:()=>ee(),set:a=>a});function ee(){const a=ge.useNestedProp({userConfig:C.config,defaultConfig:be});return a.theme?{...ge.useNestedProp({userConfig:s.themes.vue_ui_scatter[a.theme]||C.config,defaultConfig:a}),customPalette:s.themePalettes[a.theme]||s.palette}:a}e.watch(()=>C.config,a=>{t.value=ee(),te(),K.value+=1,Q.value+=1,Z.value+=1},{deep:!0});const D=e.ref(null);e.onMounted(()=>{te()});function te(){if(s.objectIsEmpty(C.dataset)&&s.error({componentName:"VueUiScatter",type:"dataset"}),t.value.responsive){const a=he.throttle(()=>{const{width:u,height:l}=he.useResponsive({chart:A.value,title:t.value.style.title.text?H.value:null,legend:t.value.style.legend.show?J.value:null});k.value.width=u,k.value.height=l});D.value=new ResizeObserver(a),D.value.observe(A.value.parentNode)}}e.onBeforeUnmount(()=>{D.value&&D.value.disconnect()});const{isPrinting:le,isImaging:ae,generatePdf:oe,generateImage:se}=fe.usePrinter({elementId:`vue-ui-scatter_${g.value}`,fileName:t.value.style.title.text||"vue-ui-scatter"}),re=e.computed(()=>s.convertCustomPalette(t.value.customPalette)),M=e.ref({showTable:t.value.table.show,showTooltip:t.value.style.tooltip.show}),k=e.ref({height:t.value.style.layout.height,width:t.value.style.layout.width}),F=e.computed(()=>t.value.style.layout.marginalBars.show?t.value.style.layout.marginalBars.size+t.value.style.layout.marginalBars.offset:0),n=e.computed(()=>({top:t.value.style.layout.padding.top+F.value,right:k.value.width-t.value.style.layout.padding.right-F.value,bottom:k.value.height-t.value.style.layout.padding.bottom,left:t.value.style.layout.padding.left,height:k.value.height-t.value.style.layout.padding.top-t.value.style.layout.padding.bottom-F.value,width:k.value.width-t.value.style.layout.padding.left-t.value.style.layout.padding.right-F.value})),y=e.computed(()=>{C.dataset.forEach((o,i)=>{s.getMissingDatasetAttributes({datasetObject:o,requiredAttributes:["values"]}).forEach(h=>{s.error({componentName:"VueUiScatter",type:"datasetSerieAttribute",property:h,index:i})}),o.values&&o.values.forEach((h,E)=>{s.getMissingDatasetAttributes({datasetObject:h,requiredAttributes:["x","y"]}).forEach(V=>{s.error({componentName:"VueUiScatter",type:"datasetSerieAttribute",property:`values.${V}`,index:`${i} - ${E}`})})})});const a=Math.min(...$.value.filter(o=>!p.value.includes(o.id)).flatMap(o=>o.values.map(i=>i.x))),u=Math.max(...$.value.filter(o=>!p.value.includes(o.id)).flatMap(o=>o.values.map(i=>i.x))),l=Math.min(...$.value.filter(o=>!p.value.includes(o.id)).flatMap(o=>o.values.map(i=>i.y))),r=Math.max(...$.value.filter(o=>!p.value.includes(o.id)).flatMap(o=>o.values.map(i=>i.y)));return{xMin:a>=0?0:a,xMax:u,yMin:l>=0?0:l,yMax:r}}),v=e.computed(()=>({x:n.value.left+Math.abs(y.value.xMin)/(y.value.xMax+Math.abs(y.value.xMin))*n.value.width,y:n.value.bottom-Math.abs(y.value.yMin)/(y.value.yMax+Math.abs(y.value.yMin))*n.value.height})),$=e.computed(()=>C.dataset.map((a,u)=>{const l=`cluster_${g.value}_${u}`;return{...a,id:l,color:a.color?a.color:re.value[u]||s.palette[u]||s.palette[u%s.palette.length],opacity:p.value.includes(l)?.5:1,shape:a.shape??"circle",segregate:()=>ye(l),isSegregated:p.value.includes(l)}})),we=e.computed(()=>({cy:"scatter-div-legend",backgroundColor:t.value.style.legend.backgroundColor,color:t.value.style.legend.color,fontSize:t.value.style.legend.fontSize,paddingBottom:12,fontWeight:t.value.style.legend.bold?"bold":""})),X=e.computed(()=>$.value.map((a,u)=>({...a,plots:a.values.map(l=>({x:n.value.left+(l.x+Math.abs(y.value.xMin))/(y.value.xMax+Math.abs(y.value.xMin))*n.value.width,y:n.value.bottom-(l.y+Math.abs(y.value.yMin))/(y.value.yMax+Math.abs(y.value.yMin))*n.value.height,v:{...l,name:l.name||""},clusterName:a.name,color:a.color?a.color:re.value[u]||s.palette[u]||s.palette[u%s.palette.length],id:`plot_${g.value}_${Math.random()}`,weight:l.weight??t.value.style.layout.plots.radius}))})).filter(a=>!p.value.includes(a.id))),x=e.computed(()=>X.value.map(a=>{const u=a.plots.reduce((d,L)=>d+L.x,0)/a.plots.length,l=a.plots.reduce((d,L)=>d+L.y,0)/a.plots.length;let r=0,o=0,i=0;for(const d of a.plots)r+=(d.x-u)*(d.y-l),o+=(d.x-u)**2,i+=(d.y-l)**2;const h=r/Math.sqrt(o*i),E=h*(Math.sqrt(i)/Math.sqrt(o)),V=l-E*u,B={x1:n.value.left,x2:n.value.right,y1:E*n.value.left+V,y2:E*n.value.right+V,coefficient:h},m=(B.y2-B.y1)/(B.x2-B.x1),_=B.y1-m*B.x1,N=Math.min(k.value.width-t.value.style.layout.padding.right,Math.max(t.value.style.layout.padding.left,(n.value.top-_)/m)),O={x:N,y:m*N+_<=t.value.style.layout.padding.top?n.value.top:m*N+_};return{...a,correlation:B,label:O,plots:a.plots.map(d=>{const L=(d.x+m*d.y-m*_)/(1+Math.pow(m,2)),j=(m*d.x+Math.pow(m,2)*d.y+_)/(1+Math.pow(m,2)),f=Math.sqrt(Math.pow(d.x-L,2)+Math.pow(d.y-j,2));return{...d,deviation:f,shape:a.shape,color:a.color}})}})),ne=e.computed(()=>Math.max(...x.value.flatMap(a=>a.plots.map(u=>Math.abs(u.deviation)))));function Be(){return x.value}function ue(a,u){const l=Array.isArray(a)?a.flatMap(f=>f.plots.map(z=>({x:z.x,y:z.y}))):a.plots.map(f=>({x:f.x,y:f.y}));let r=1/0,o=-1/0,i=1/0,h=-1/0;l.forEach(({x:f,y:z})=>{r=Math.min(r,f),o=Math.max(o,f),i=Math.min(i,z),h=Math.max(h,z)});const E=o-r,V=h-i,B=E/u,m=V/u,_=Array(u).fill(0),N=Array(u).fill(0);l.forEach(({x:f,y:z})=>{const R=Math.floor((f-r)/B),G=Math.floor((z-i)/m);_[R]||(_[R]=0),N[G]||(N[G]=0),_[R]+=1,N[G]+=1});const O=[],d=[];for(let f=0;f<u;f+=1)O.push(r+(f+.5)*B),d.push(i+(f+.5)*m);const L=Math.max(..._),j=Math.max(...N);return{x:_,y:N,avgX:O,avgY:d,maxX:L,maxY:j}}const S=e.computed(()=>t.value.style.layout.marginalBars.tranches),b=e.computed(()=>ue(X.value,S.value)),Ce=e.computed(()=>{const a=n.value.top-t.value.style.layout.marginalBars.offset,u=n.value.right+t.value.style.layout.marginalBars.offset;return X.value.map(l=>{const r=ue(l,S.value);return{coords:r,dX:s.createSmoothPath(r.avgX.map((o,i)=>({x:o,y:a-r.x[i]/r.maxX*t.value.style.layout.marginalBars.size}))),dY:s.createSmoothPath(r.avgY.map((o,i)=>({y:o,x:u+t.value.style.layout.marginalBars.size*r.y[i]/r.maxY}))),color:l.color,id:l.id}})}),w=e.ref(void 0),c=e.ref(null),Y=e.ref(null);function ie(a,u){w.value=a.id,c.value=a;let l="";Y.value={datapoint:a,seriesIndex:u,series:x.value,config:t.value};const r=t.value.style.tooltip.customFormat;s.isFunction(r)&&s.functionReturnsString(()=>r({datapoint:a,seriesIndex:u,series:x.value,config:t.value}))?I.value=r({datapoint:a,seriesIndex:u,series:x.value,config:t.value}):(a.clusterName&&(l+=`<div style="display:flex;gap:3px;align-items:center">${a.clusterName}</div>`),a.v.name&&(l+=`<div>${a.v.name}</div>`),l+=`<div style="text-align:left;margin-top:6px;padding-top:6px;border-top:1px solid ${t.value.style.tooltip.borderColor}">`,l+=`<div>${t.value.style.layout.dataLabels.xAxis.name}: <b>${isNaN(a.v.x)?"-":s.applyDataLabel(t.value.style.layout.plots.selectors.labels.x.formatter,a.v.x,s.dataLabel({p:t.value.style.tooltip.prefix,v:a.v.x,s:t.value.style.tooltip.suffix,r:t.value.style.tooltip.roundingValue}),{datapoint:a,seriesIndex:u})}</b></div>`,l+=`<div>${t.value.style.layout.dataLabels.yAxis.name}: <b>${isNaN(a.v.y)?"-":s.applyDataLabel(t.value.style.layout.plots.selectors.labels.y.formatter,a.v.y,s.dataLabel({p:t.value.style.tooltip.prefix,v:a.v.y,s:t.value.style.tooltip.suffix,r:t.value.style.tooltip.roundingValue}),{datapoint:a,seriesIndex:u})}</b></div>`,l+=`${t.value.style.layout.plots.deviation.translation}: <b>${s.dataLabel({v:a.deviation,r:t.value.style.layout.plots.deviation.roundingValue})}</b>`,l+="</div>",I.value=`<div>${l}</div>`),q.value=!0}function ce(){q.value=!1,w.value=void 0,c.value=null}const p=e.ref([]);function ye(a){p.value.includes(a)?p.value=p.value.filter(u=>u!==a):p.value.length<C.dataset.length-1&&p.value.push(a)}function ve(){e.nextTick(()=>{const a=["",t.value.table.translations.correlationCoefficient,t.value.table.translations.nbrPlots,`${t.value.style.layout.dataLabels.xAxis.name} ${t.value.table.translations.average}`,`${t.value.style.layout.dataLabels.yAxis.name} ${t.value.table.translations.average}`],u=x.value.map(o=>[o.name,o.correlation.coefficient,o.plots.length,o.plots.map(i=>i.v.x).reduce((i,h)=>i+h,0)/o.plots.length,o.plots.map(i=>i.v.y).reduce((i,h)=>i+h,0)/o.plots.length]),l=[[t.value.style.title.text],[t.value.style.title.subtitle.text],[[""],[""],[""]]].concat([a]).concat(u),r=s.createCsvContent(l);s.downloadCsv({csvContent:r,title:t.value.style.title.text||"vue-ui-heatmap"})})}const W=e.computed(()=>{const a=[t.value.table.translations.series,t.value.table.translations.correlationCoefficient,t.value.table.translations.nbrPlots,`${t.value.style.layout.dataLabels.xAxis.name} ${t.value.table.translations.average}`,`${t.value.style.layout.dataLabels.yAxis.name} ${t.value.table.translations.average}`],u=x.value.map(r=>[{shape:r.shape,content:r.name,color:r.color},Number((r.correlation.coefficient??0).toFixed(t.value.table.td.roundingValue)).toLocaleString(),r.plots.length.toLocaleString(),Number((r.plots.map(o=>o.v.x??0).reduce((o,i)=>o+i,0)/r.plots.length).toFixed(t.value.table.td.roundingAverage)).toLocaleString(),Number((r.plots.map(o=>o.v.y??0).reduce((o,i)=>o+i,0)/r.plots.length).toFixed(t.value.table.td.roundingAverage)).toLocaleString()]),l={th:{backgroundColor:t.value.table.th.backgroundColor,color:t.value.table.th.color,outline:t.value.table.th.outline},td:{backgroundColor:t.value.table.td.backgroundColor,color:t.value.table.td.color,outline:t.value.table.td.outline},breakpoint:t.value.table.responsiveBreakpoint};return{head:a,body:u,config:l,colNames:a}}),T=e.ref(!1);function Ne(a){T.value=a,U.value+=1}function de(){M.value.showTable=!M.value.showTable}function pe(){M.value.showTooltip=!M.value.showTooltip}return xe({getData:Be,generatePdf:oe,generateCsv:ve,generateImage:se,toggleTable:de,toggleTooltip:pe}),(a,u)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(`vue-ui-scatter ${T.value?"vue-data-ui-wrapper-fullscreen":""} ${t.value.useCssAnimation?"":"vue-ui-dna"}`),ref_key:"scatterChart",ref:A,id:`vue-ui-scatter_${g.value}`,style:e.normalizeStyle(`font-family:${t.value.style.fontFamily};width:100%; text-align:center;${t.value.style.title.text?"":"padding-top:36px"};background:${t.value.style.backgroundColor};${t.value.responsive?"height: 100%":""}`)},[t.value.style.title.text?(e.openBlock(),e.createElementBlock("div",{key:0,ref_key:"chartTitle",ref:H,style:"width:100%;background:transparent"},[(e.openBlock(),e.createBlock(Me._sfc_main,{key:`title_${K.value}`,config:{title:{cy:"scatter-div-title",...t.value.style.title},subtitle:{cy:"scatter-div-subtitle",...t.value.style.title.subtitle}}},null,8,["config"]))],512)):e.createCommentVNode("",!0),t.value.userOptions.show&&P.value?(e.openBlock(),e.createBlock(fe.UserOptions,{ref_key:"details",ref:_e,key:`user_options_${U.value}`,backgroundColor:t.value.style.backgroundColor,color:t.value.style.color,isImaging:e.unref(ae),isPrinting:e.unref(le),uid:g.value,hasTooltip:t.value.userOptions.buttons.tooltip&&t.value.style.tooltip.show,hasPdf:t.value.userOptions.buttons.pdf,hasImg:t.value.userOptions.buttons.img,hasXls:t.value.userOptions.buttons.csv,hasTable:t.value.userOptions.buttons.table,hasFullscreen:t.value.userOptions.buttons.fullscreen,isTooltip:M.value.showTooltip,isFullscreen:T.value,titles:{...t.value.userOptions.buttonTitles},chartElement:A.value,position:t.value.userOptions.position,onToggleFullscreen:Ne,onGeneratePdf:e.unref(oe),onGenerateCsv:ve,onGenerateImage:e.unref(se),onToggleTable:de,onToggleTooltip:pe},e.createSlots({_:2},[a.$slots.optionTooltip?{name:"optionTooltip",fn:e.withCtx(()=>[e.renderSlot(a.$slots,"optionTooltip",{},void 0,!0)]),key:"0"}:void 0,a.$slots.optionPdf?{name:"optionPdf",fn:e.withCtx(()=>[e.renderSlot(a.$slots,"optionPdf",{},void 0,!0)]),key:"1"}:void 0,a.$slots.optionCsv?{name:"optionCsv",fn:e.withCtx(()=>[e.renderSlot(a.$slots,"optionCsv",{},void 0,!0)]),key:"2"}:void 0,a.$slots.optionImg?{name:"optionImg",fn:e.withCtx(()=>[e.renderSlot(a.$slots,"optionImg",{},void 0,!0)]),key:"3"}:void 0,a.$slots.optionTable?{name:"optionTable",fn:e.withCtx(()=>[e.renderSlot(a.$slots,"optionTable",{},void 0,!0)]),key:"4"}:void 0,a.$slots.optionFullscreen?{name:"optionFullscreen",fn:e.withCtx(({toggleFullscreen:l,isFullscreen:r})=>[e.renderSlot(a.$slots,"optionFullscreen",e.normalizeProps(e.guardReactiveProps({toggleFullscreen:l,isFullscreen:r})),void 0,!0)]),key:"5"}:void 0]),1032,["backgroundColor","color","isImaging","isPrinting","uid","hasTooltip","hasPdf","hasImg","hasXls","hasTable","hasFullscreen","isTooltip","isFullscreen","titles","chartElement","position","onGeneratePdf","onGenerateImage"])):e.createCommentVNode("",!0),P.value?(e.openBlock(),e.createElementBlock("svg",{key:2,xmlns:e.unref(s.XMLNS),class:e.normalizeClass({"vue-data-ui-fullscreen--on":T.value,"vue-data-ui-fulscreen--off":!T.value}),viewBox:`0 0 ${k.value.width<=0?10:k.value.width} ${k.value.height<=0?10:k.value.height}`,style:e.normalizeStyle(`max-width:100%;overflow:visible;background:transparent;color:${t.value.style.color}`)},[e.createVNode(Ve._sfc_main),t.value.style.layout.axis.show?(e.openBlock(),e.createElementBlock("g",De,[e.createElementVNode("line",{x1:v.value.x,x2:v.value.x,y1:n.value.top,y2:n.value.bottom,stroke:t.value.style.layout.axis.stroke,"stroke-width":t.value.style.layout.axis.strokeWidth,"stroke-linecap":"round"},null,8,Fe),e.createElementVNode("line",{x1:n.value.left,x2:n.value.right,y1:v.value.y,y2:v.value.y,stroke:t.value.style.layout.axis.stroke,"stroke-width":t.value.style.layout.axis.strokeWidth,"stroke-linecap":"round"},null,8,We)])):e.createCommentVNode("",!0),t.value.style.layout.plots.giftWrap.show?(e.openBlock(),e.createElementBlock("g",Oe,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(x.value,(l,r)=>(e.openBlock(),e.createElementBlock("g",null,[l.plots.length>2?(e.openBlock(),e.createElementBlock("polygon",{key:0,points:e.unref(s.giftWrap)({series:l.plots}),fill:e.unref(s.setOpacity)(l.color,t.value.style.layout.plots.giftWrap.fillOpacity*100),"stroke-width":t.value.style.layout.plots.giftWrap.strokeWidth,"stroke-dasharray":t.value.style.layout.plots.giftWrap.strokeDasharray,stroke:l.color,"stroke-linejoin":"round","stroke-linecap":"round"},null,8,qe)):e.createCommentVNode("",!0)]))),256))])):e.createCommentVNode("",!0),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(x.value,(l,r)=>(e.openBlock(),e.createElementBlock("g",null,[!l.shape||l.shape==="circle"?(e.openBlock(),e.createElementBlock("g",Ie,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(l.plots,(o,i)=>(e.openBlock(),e.createElementBlock("circle",{cx:o.x,cy:o.y,r:w.value&&w.value===o.id?o.weight*2:o.weight,fill:e.unref(s.setOpacity)(l.color,t.value.style.layout.plots.opacity*100),stroke:t.value.style.layout.plots.stroke,"stroke-width":t.value.style.layout.plots.strokeWidth,onMouseover:h=>ie(o,r),onMouseleave:ce,style:e.normalizeStyle(`opacity:${w.value&&w.value===o.id?1:t.value.style.layout.plots.significance.useDistanceOpacity?1-Math.abs(o.deviation)/ne.value:t.value.style.layout.plots.significance.show&&Math.abs(o.deviation)>t.value.style.layout.plots.significance.deviationThreshold?t.value.style.layout.plots.significance.opacity:1}`)},null,44,Xe))),256))])):(e.openBlock(),e.createElementBlock("g",Ye,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(l.plots,(o,i)=>(e.openBlock(),e.createBlock(me._sfc_main,{plot:{x:o.x,y:o.y},radius:w.value&&w.value===o.id?o.weight*2:o.weight,shape:l.shape,color:e.unref(s.setOpacity)(l.color,t.value.style.layout.plots.opacity*100),stroke:t.value.style.layout.plots.stroke,strokeWidth:t.value.style.layout.plots.strokeWidth,onMouseover:h=>ie(o,r),onMouseleave:ce,style:e.normalizeStyle(`opacity:${w.value&&w.value===o.id?1:t.value.style.layout.plots.significance.useDistanceOpacity?1-Math.abs(o.deviation)/ne.value:t.value.style.layout.plots.significance.show&&Math.abs(o.deviation)>t.value.style.layout.plots.significance.deviationThreshold?t.value.style.layout.plots.significance.opacity:1}`)},null,8,["plot","radius","shape","color","stroke","strokeWidth","onMouseover","style"]))),256))]))]))),256)),t.value.style.layout.marginalBars.show?(e.openBlock(),e.createElementBlock("g",je,[e.createElementVNode("defs",null,[e.createElementVNode("linearGradient",{id:`marginal_x_${g.value}`,x1:"0%",y1:"0%",x2:"0%",y2:"100%"},[e.createElementVNode("stop",{offset:"0%","stop-color":t.value.style.layout.marginalBars.fill},null,8,Ge),e.createElementVNode("stop",{offset:"100%","stop-color":t.value.style.backgroundColor},null,8,Ue)],8,Re),e.createElementVNode("linearGradient",{id:`marginal_y_${g.value}`,x1:"0%",x2:"100%",y1:"0%",y2:"0%"},[e.createElementVNode("stop",{offset:"0%","stop-color":t.value.style.backgroundColor},null,8,Je),e.createElementVNode("stop",{offset:"100%","stop-color":t.value.style.layout.marginalBars.fill},null,8,Ke)],8,He)]),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(b.value.x,(l,r)=>(e.openBlock(),e.createElementBlock("g",null,[l&&b.value.avgX[r]?(e.openBlock(),e.createElementBlock("rect",{key:0,x:b.value.avgX[r]-n.value.width/S.value/2,y:n.value.top-t.value.style.layout.marginalBars.offset-l/b.value.maxX*t.value.style.layout.marginalBars.size,width:n.value.width/S.value<=0?1e-4:n.value.width/S.value,height:l/b.value.maxX*t.value.style.layout.marginalBars.size<=0?1e-4:l/b.value.maxX*t.value.style.layout.marginalBars.size,fill:t.value.style.layout.marginalBars.useGradient?`url(#marginal_x_${g.value})`:t.value.style.layout.marginalBars.fill,style:e.normalizeStyle(`opacity:${t.value.style.layout.marginalBars.opacity}`),stroke:t.value.style.backgroundColor,"stroke-width":t.value.style.layout.marginalBars.strokeWidth,rx:t.value.style.layout.marginalBars.borderRadius},null,12,Qe)):e.createCommentVNode("",!0)]))),256)),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(b.value.y,(l,r)=>(e.openBlock(),e.createElementBlock("g",null,[l&&b.value.avgY[r]?(e.openBlock(),e.createElementBlock("rect",{key:0,x:n.value.right+t.value.style.layout.marginalBars.offset,y:b.value.avgY[r]-n.value.height/S.value/2,height:n.value.height/S.value<=0?1e-4:n.value.height/S.value,width:l/b.value.maxY*t.value.style.layout.marginalBars.size<=0?1e-4:l/b.value.maxY*t.value.style.layout.marginalBars.size,fill:t.value.style.layout.marginalBars.useGradient?`url(#marginal_y_${g.value})`:t.value.style.layout.marginalBars.fill,style:e.normalizeStyle(`opacity:${t.value.style.layout.marginalBars.opacity}`),stroke:t.value.style.backgroundColor,"stroke-width":t.value.style.layout.marginalBars.strokeWidth,rx:t.value.style.layout.marginalBars.borderRadius},null,12,Ze)):e.createCommentVNode("",!0)]))),256)),t.value.style.layout.marginalBars.showLines?(e.openBlock(),e.createElementBlock("g",et,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(Ce.value,l=>(e.openBlock(),e.createElementBlock(e.Fragment,null,[p.value.includes(l.id)?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("path",{key:0,d:`M ${l.dX}`,stroke:t.value.style.backgroundColor,"stroke-width":t.value.style.layout.marginalBars.linesStrokeWidth+1,"stroke-linecap":"round","stroke-linejoin":"round",fill:"none"},null,8,tt)),p.value.includes(l.id)?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("path",{key:1,d:`M ${l.dX}`,stroke:l.color,"stroke-width":t.value.style.layout.marginalBars.linesStrokeWidth,"stroke-linecap":"round","stroke-linejoin":"round",fill:"none"},null,8,lt)),p.value.includes(l.id)?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("path",{key:2,d:`M ${l.dY}`,stroke:t.value.style.backgroundColor,"stroke-width":t.value.style.layout.marginalBars.linesStrokeWidth+1,"stroke-linecap":"round","stroke-linejoin":"round",fill:"none"},null,8,at)),p.value.includes(l.id)?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("path",{key:3,d:`M ${l.dY}`,stroke:l.color,"stroke-width":t.value.style.layout.marginalBars.linesStrokeWidth,"stroke-linecap":"round","stroke-linejoin":"round",fill:"none"},null,8,ot))],64))),256))])):e.createCommentVNode("",!0)])):e.createCommentVNode("",!0),c.value&&t.value.style.layout.plots.selectors.show?(e.openBlock(),e.createElementBlock("g",st,[e.createElementVNode("line",{x1:v.value.x,x2:c.value.x,y1:c.value.y,y2:c.value.y,stroke:t.value.style.layout.plots.selectors.stroke,"stroke-width":t.value.style.layout.plots.selectors.strokeWidth,"stroke-dasharray":t.value.style.layout.plots.selectors.strokeDasharray,"stroke-linecap":"round",class:"line-pointer"},null,8,rt),e.createElementVNode("line",{x1:c.value.x,x2:c.value.x,y1:v.value.y,y2:c.value.y,stroke:t.value.style.layout.plots.selectors.stroke,"stroke-width":t.value.style.layout.plots.selectors.strokeWidth,"stroke-dasharray":t.value.style.layout.plots.selectors.strokeDasharray,"stroke-linecap":"round",class:"line-pointer"},null,8,nt),e.createElementVNode("text",{x:v.value.x+(c.value.x>v.value.x?-6:6),y:c.value.y+t.value.style.layout.plots.selectors.labels.fontSize/3,"font-size":t.value.style.layout.plots.selectors.labels.fontSize,fill:t.value.style.layout.plots.selectors.labels.color,"font-weight":t.value.style.layout.plots.selectors.labels.bold?"bold":"normal","text-anchor":c.value.x>v.value.x?"end":"start"},e.toDisplayString(e.unref(s.applyDataLabel)(t.value.style.layout.plots.selectors.labels.y.formatter,e.unref(s.checkNaN)(c.value.v.y),e.unref(s.dataLabel)({p:t.value.style.layout.plots.selectors.labels.prefix,v:e.unref(s.checkNaN)(c.value.v.y),s:t.value.style.layout.plots.selectors.labels.suffix,r:t.value.style.layout.plots.selectors.labels.rounding}),{datapoint:c.value})),9,ut),e.createElementVNode("text",{x:c.value.x,y:v.value.y+(c.value.y>v.value.y?-6:t.value.style.layout.plots.selectors.labels.fontSize+6),"font-size":t.value.style.layout.plots.selectors.labels.fontSize,fill:t.value.style.layout.plots.selectors.labels.color,"font-weight":t.value.style.layout.plots.selectors.labels.bold?"bold":"normal","text-anchor":"middle"},e.toDisplayString(e.unref(s.applyDataLabel)(t.value.style.layout.plots.selectors.labels.y.formatter,e.unref(s.checkNaN)(c.value.v.x),e.unref(s.dataLabel)({p:t.value.style.layout.plots.selectors.labels.prefix,v:e.unref(s.checkNaN)(c.value.v.x),s:t.value.style.layout.plots.selectors.labels.suffix,r:t.value.style.layout.plots.selectors.labels.rounding}),{datapoint:c.value})),9,it),e.createElementVNode("circle",{cx:v.value.x,cy:c.value.y,r:t.value.style.layout.plots.selectors.markers.radius,fill:t.value.style.layout.plots.selectors.markers.fill,stroke:t.value.style.layout.plots.selectors.markers.stroke,"stroke-width":t.value.style.layout.plots.selectors.markers.strokeWidth,class:"line-pointer"},null,8,ct),e.createElementVNode("circle",{cx:c.value.x,cy:v.value.y,r:t.value.style.layout.plots.selectors.markers.radius,fill:t.value.style.layout.plots.selectors.markers.fill,stroke:t.value.style.layout.plots.selectors.markers.stroke,"stroke-width":t.value.style.layout.plots.selectors.markers.strokeWidth,class:"line-pointer"},null,8,yt),t.value.style.layout.plots.selectors.labels.showName?(e.openBlock(),e.createElementBlock("text",{key:0,x:c.value.x,y:c.value.y+(c.value.y<v.value.y?-t.value.style.layout.plots.selectors.labels.fontSize/2:t.value.style.layout.plots.selectors.labels.fontSize),"font-size":t.value.style.layout.plots.selectors.labels.fontSize,fill:t.value.style.layout.plots.selectors.labels.color,"font-weight":t.value.style.layout.plots.selectors.labels.bold?"bold":"normal","text-anchor":c.value.x<n.value.left+100?"start":c.value.x>n.value.right-100?"end":c.value.x>v.value.x?"start":"end"},e.toDisplayString(c.value.v.name),9,vt)):e.createCommentVNode("",!0)])):e.createCommentVNode("",!0),t.value.style.layout.dataLabels.xAxis.show?(e.openBlock(),e.createElementBlock("g",dt,[e.createElementVNode("text",{x:n.value.left-5,y:v.value.y+t.value.style.layout.dataLabels.xAxis.fontSize/3,"text-anchor":"end","font-size":t.value.style.layout.dataLabels.xAxis.fontSize,fill:t.value.style.layout.dataLabels.xAxis.color},e.toDisplayString(e.unref(s.applyDataLabel)(t.value.style.layout.plots.selectors.labels.x.formatter,e.unref(s.checkNaN)(y.value.xMin),e.unref(s.dataLabel)({p:t.value.style.layout.plots.selectors.labels.prefix,v:e.unref(s.checkNaN)(y.value.xMin),s:t.value.style.layout.plots.selectors.labels.suffix,r:t.value.style.layout.dataLabels.xAxis.rounding}))),9,pt),e.createElementVNode("text",{x:n.value.right+3,y:v.value.y+t.value.style.layout.dataLabels.xAxis.fontSize/3,"text-anchor":"start","font-size":t.value.style.layout.dataLabels.xAxis.fontSize,fill:t.value.style.layout.dataLabels.xAxis.color},e.toDisplayString(e.unref(s.applyDataLabel)(t.value.style.layout.plots.selectors.labels.x.formatter,e.unref(s.checkNaN)(y.value.xMax),e.unref(s.dataLabel)({p:t.value.style.layout.plots.selectors.labels.prefix,v:e.unref(s.checkNaN)(y.value.xMax),s:t.value.style.layout.plots.selectors.labels.suffix,r:t.value.style.layout.dataLabels.xAxis.rounding}))),9,ht),e.createElementVNode("text",{id:`vue-ui-scatter-xAxis-label-${g.value}`,transform:`translate(${t.value.style.layout.dataLabels.xAxis.fontSize*2}, ${n.value.top+n.value.height/2}), rotate(-90)`,"text-anchor":"middle","font-size":t.value.style.layout.dataLabels.xAxis.fontSize,"font-weight":t.value.style.layout.dataLabels.xAxis.bold?"bold":"normal",fill:t.value.style.layout.dataLabels.xAxis.color},e.toDisplayString(t.value.style.layout.dataLabels.xAxis.name),9,ft)])):e.createCommentVNode("",!0),t.value.style.layout.dataLabels.yAxis.show?(e.openBlock(),e.createElementBlock("g",mt,[e.createElementVNode("text",{x:v.value.x,y:n.value.bottom+t.value.style.layout.dataLabels.yAxis.fontSize+3,"text-anchor":"middle","font-size":t.value.style.layout.dataLabels.yAxis.fontSize,fill:t.value.style.layout.dataLabels.yAxis.color},e.toDisplayString(e.unref(s.applyDataLabel)(t.value.style.layout.plots.selectors.labels.y.formatter,e.unref(s.checkNaN)(y.value.yMin),e.unref(s.dataLabel)({p:t.value.style.layout.plots.selectors.labels.prefix,v:e.unref(s.checkNaN)(y.value.yMin),s:t.value.style.layout.plots.selectors.labels.suffix,r:t.value.style.layout.dataLabels.yAxis.rounding}))),9,gt),e.createElementVNode("text",{x:v.value.x,y:n.value.top-t.value.style.layout.dataLabels.yAxis.fontSize/2,"text-anchor":"middle","font-size":t.value.style.layout.dataLabels.yAxis.fontSize,fill:t.value.style.layout.dataLabels.yAxis.color},e.toDisplayString(e.unref(s.applyDataLabel)(t.value.style.layout.plots.selectors.labels.y.formatter,e.unref(s.checkNaN)(y.value.yMax),e.unref(s.dataLabel)({p:t.value.style.layout.plots.selectors.labels.prefix,v:e.unref(s.checkNaN)(y.value.yMax),s:t.value.style.layout.plots.selectors.labels.suffix,r:t.value.style.layout.dataLabels.yAxis.rounding}))),9,kt),e.createElementVNode("text",{"text-anchor":"middle","font-size":t.value.style.layout.dataLabels.yAxis.fontSize,"font-weight":t.value.style.layout.dataLabels.yAxis.bold?"bold":"normal",fill:t.value.style.layout.dataLabels.yAxis.color,x:n.value.left+n.value.width/2,y:n.value.bottom+8+t.value.style.layout.dataLabels.yAxis.fontSize*2},e.toDisplayString(t.value.style.layout.dataLabels.yAxis.name),9,xt)])):e.createCommentVNode("",!0),e.createElementVNode("clipPath",{id:`clip_path_${g.value}`},[e.createElementVNode("rect",{x:n.value.left,y:n.value.top,width:n.value.width<=0?1e-4:n.value.width,height:n.value.height<=0?1e-4:n.value.height},null,8,_t)],8,bt),t.value.style.layout.correlation.show?(e.openBlock(),e.createElementBlock("g",wt,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(x.value,(l,r)=>(e.openBlock(),e.createElementBlock("line",{x1:l.correlation.x1,x2:l.correlation.x2,y1:l.correlation.y1,y2:l.correlation.y2,"stroke-dasharray":t.value.style.layout.correlation.strokeDasharray,stroke:l.color,"stroke-width":t.value.style.layout.correlation.strokeWidth,"clip-path":`url(#clip_path_${g.value})`},null,8,Bt))),256)),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(x.value,(l,r)=>(e.openBlock(),e.createElementBlock("g",null,[t.value.style.layout.correlation.label.show?(e.openBlock(),e.createElementBlock("text",{key:0,x:l.label.x,y:l.label.y,fill:t.value.style.layout.correlation.label.useSerieColor?l.color:t.value.style.layout.correlation.label.color,"font-size":t.value.style.layout.correlation.label.fontSize,"font-weight":t.value.style.layout.correlation.label.bold?"bold":"normal"},e.toDisplayString(e.unref(s.dataLabel)({v:e.unref(s.checkNaN)(l.correlation.coefficient),r:t.value.style.layout.correlation.label.roundingValue})),9,Ct)):e.createCommentVNode("",!0)]))),256))])):e.createCommentVNode("",!0),e.renderSlot(a.$slots,"svg",{svg:k.value},void 0,!0)],14,Pe)):e.createCommentVNode("",!0),a.$slots.watermark?(e.openBlock(),e.createElementBlock("div",Nt,[e.renderSlot(a.$slots,"watermark",e.normalizeProps(e.guardReactiveProps({isPrinting:e.unref(le)||e.unref(ae)})),void 0,!0)])):e.createCommentVNode("",!0),P.value?e.createCommentVNode("",!0):(e.openBlock(),e.createBlock(Le.default,{key:4,config:{type:"quadrant",style:{backgroundColor:t.value.style.backgroundColor,quadrant:{grid:{color:t.value.style.layout.axis.stroke},plots:{color:t.value.style.layout.axis.stroke,radius:1}}}}},null,8,["config"])),e.createElementVNode("div",{ref_key:"chartLegend",ref:J},[t.value.style.legend.show?(e.openBlock(),e.createBlock($e.Legend,{key:`legend_${Z.value}`,legendSet:$.value,config:we.value,onClickMarker:u[0]||(u[0]=({legend:l})=>ye(l.id))},{item:e.withCtx(({legend:l})=>[e.createElementVNode("div",{onClick:r=>l.segregate(),style:e.normalizeStyle(`opacity:${p.value.includes(l.id)?.5:1}`)},e.toDisplayString(l.name),13,Mt)]),_:1},8,["legendSet","config"])):e.renderSlot(a.$slots,"legend",{key:1,legend:$.value},void 0,!0)],512),e.createVNode(Se._sfc_main,{show:M.value.showTooltip&&q.value,backgroundColor:t.value.style.tooltip.backgroundColor,color:t.value.style.tooltip.color,borderRadius:t.value.style.tooltip.borderRadius,borderColor:t.value.style.tooltip.borderColor,borderWidth:t.value.style.tooltip.borderWidth,fontSize:t.value.style.tooltip.fontSize,backgroundOpacity:t.value.style.tooltip.backgroundOpacity,position:t.value.style.tooltip.position,offsetY:t.value.style.tooltip.offsetY,parent:A.value,content:I.value,isCustom:t.value.style.tooltip.customFormat&&typeof t.value.style.tooltip.customFormat=="function"},{"tooltip-before":e.withCtx(()=>[e.renderSlot(a.$slots,"tooltip-before",e.normalizeProps(e.guardReactiveProps({...Y.value})),void 0,!0)]),"tooltip-after":e.withCtx(()=>[e.renderSlot(a.$slots,"tooltip-after",e.normalizeProps(e.guardReactiveProps({...Y.value})),void 0,!0)]),default:e.withCtx(()=>[t.value.style.tooltip.showShape?(e.openBlock(),e.createElementBlock("div",St,[(e.openBlock(),e.createElementBlock("svg",$t,[e.createVNode(me._sfc_main,{shape:c.value.shape,color:c.value.color,plot:{x:10,y:10},radius:7},null,8,["shape","color"])]))])):e.createCommentVNode("",!0)]),_:3},8,["show","backgroundColor","color","borderRadius","borderColor","borderWidth","fontSize","backgroundOpacity","position","offsetY","parent","content","isCustom"]),P.value?(e.openBlock(),e.createBlock(ze.default,{key:5,hideDetails:"",config:{open:M.value.showTable,maxHeight:1e4,body:{backgroundColor:t.value.style.backgroundColor,color:t.value.style.color},head:{backgroundColor:t.value.style.backgroundColor,color:t.value.style.color}}},{content:e.withCtx(()=>[(e.openBlock(),e.createBlock(Ee.DataTable,{key:`table_${Q.value}`,colNames:W.value.colNames,head:W.value.head,body:W.value.body,config:W.value.config,title:`${t.value.style.title.text}${t.value.style.title.subtitle.text?` : ${t.value.style.title.subtitle.text}`:""}`,onClose:u[1]||(u[1]=l=>M.value.showTable=!1)},{th:e.withCtx(({th:l})=>[e.createTextVNode(e.toDisplayString(l),1)]),td:e.withCtx(({td:l})=>[l.shape?(e.openBlock(),e.createElementBlock("div",Et,[e.createElementVNode("span",null,e.toDisplayString(l.content),1)])):(e.openBlock(),e.createElementBlock("div",{key:1,innerHTML:l},null,8,Lt))]),_:1},8,["colNames","head","body","config","title"]))]),_:1},8,["config"])):e.createCommentVNode("",!0)],14,Te))}},Vt=Ae._export_sfc(zt,[["__scopeId","data-v-840f65fb"]]);exports.default=Vt;
|