vue-data-ui 3.0.2 → 3.0.4

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.
Files changed (91) hide show
  1. package/dist/{Arrow-uNlT54JX.js → Arrow-YUJc3FQi.js} +1 -1
  2. package/dist/{BaseDraggableDialog-CujvKo06.js → BaseDraggableDialog-DdXLTRiK.js} +2 -2
  3. package/dist/{BaseIcon-B8CknCYk.js → BaseIcon-CCivwZUq.js} +1 -1
  4. package/dist/{ColorPicker-Dmdfq2VV.js → ColorPicker-CWed-s-E.js} +2 -2
  5. package/dist/{DataTable-osx68WLA.js → DataTable-rj9-mAwF.js} +2 -2
  6. package/dist/{Legend-CQsASoei.js → Legend-DcDSkq99.js} +2 -2
  7. package/dist/{NonSvgPenAndPaper-BWz0WtJG.js → NonSvgPenAndPaper-W2N17kLY.js} +3 -3
  8. package/dist/{PackageVersion-DZGrOKw5.js → PackageVersion-5ZjKSIei.js} +1 -1
  9. package/dist/{PenAndPaper-CdXspg5R.js → PenAndPaper-BJ0hcgsa.js} +3 -3
  10. package/dist/{Shape-0sW2StrO.js → Shape-DHIaJs9G.js} +1 -1
  11. package/dist/{Slicer-52shR-Vu.js → Slicer-BarTZZDU.js} +2 -2
  12. package/dist/{SparkTooltip-Dxrruu4s.js → SparkTooltip-Diyt3BTN.js} +1 -1
  13. package/dist/{Title-CntvKJss.js → Title-B55R8CAZ.js} +1 -1
  14. package/dist/{Tooltip-DF8e4iB9.js → Tooltip-BMOddG-M.js} +1 -1
  15. package/dist/{UserOptions-DQyIO0ts.js → UserOptions-DVzyjG-W.js} +2 -2
  16. package/dist/{dom-to-png-KC3tMd8p.js → dom-to-png-BNHsLwF7.js} +1 -1
  17. package/dist/{img-Cv4nScI0.js → img-Ctts6JQb.js} +1 -1
  18. package/dist/{index-B9Ct1B_p.js → index-q-LPw2IT.js} +908 -871
  19. package/dist/{pdf-D0GEfQrI.js → pdf-BfwnBQtY.js} +1 -1
  20. package/dist/style.css +1 -1
  21. package/dist/types/vue-data-ui.d.cts +23 -0
  22. package/dist/types/vue-data-ui.d.ts +23 -0
  23. package/dist/{useAutoSizeLabelsInsideViewbox-DvdDLkzw.js → useAutoSizeLabelsInsideViewbox-bEAG5sD1.js} +1 -1
  24. package/dist/{useNestedProp-C0gKxLur.js → useNestedProp-04aFeUYu.js} +1 -1
  25. package/dist/{usePrinter-DcZXg1hH.js → usePrinter-DX7efa1s.js} +2 -2
  26. package/dist/{vue-data-ui-DZMDT7RA.js → vue-data-ui-DJTYiV9o.js} +64 -64
  27. package/dist/vue-data-ui.js +1 -1
  28. package/dist/{vue-ui-3d-bar-BnCv2CD_.js → vue-ui-3d-bar-DGu87lcK.js} +6 -6
  29. package/dist/{vue-ui-accordion-B31QK9Hj.js → vue-ui-accordion-D46i_gkB.js} +3 -3
  30. package/dist/{vue-ui-age-pyramid-Bc4V0a3k.js → vue-ui-age-pyramid-DeS1T-Bw.js} +6 -6
  31. package/dist/{vue-ui-annotator-D8haGQiH.js → vue-ui-annotator-CrqM9fa9.js} +2 -2
  32. package/dist/{vue-ui-bullet-n7Y6jYLj.js → vue-ui-bullet-0TypghaZ.js} +199 -186
  33. package/dist/{vue-ui-candlestick-nCI5GlX7.js → vue-ui-candlestick-n8koDNMv.js} +7 -7
  34. package/dist/{vue-ui-carousel-table-JH2NjnOk.js → vue-ui-carousel-table-BeUapat0.js} +4 -4
  35. package/dist/{vue-ui-chestnut-CQtV9AR4.js → vue-ui-chestnut-HbK7CLPq.js} +5 -5
  36. package/dist/{vue-ui-chord-CGi_iSaL.js → vue-ui-chord-DdNd8wIQ.js} +377 -366
  37. package/dist/{vue-ui-circle-pack-C8v3Okle.js → vue-ui-circle-pack-HrpJA3B3.js} +6 -6
  38. package/dist/{vue-ui-cursor-0DHciy1D.js → vue-ui-cursor-Dl_Gep_y.js} +2 -2
  39. package/dist/{vue-ui-dashboard-CDHJk8sC.js → vue-ui-dashboard-B0clnW3D.js} +62 -62
  40. package/dist/{vue-ui-digits-Bn1P1K9u.js → vue-ui-digits-BapPpCcj.js} +2 -2
  41. package/dist/{vue-ui-donut-GqHffshG.js → vue-ui-donut-CdLAu_O5.js} +345 -334
  42. package/dist/{vue-ui-donut-evolution-Crn7Nnpy.js → vue-ui-donut-evolution-DHYtqqYZ.js} +388 -377
  43. package/dist/{vue-ui-dumbbell-C__nFV3V.js → vue-ui-dumbbell-SgiIfwyE.js} +354 -343
  44. package/dist/{vue-ui-flow-7q9o4Jxp.js → vue-ui-flow-D7dra0Tp.js} +299 -288
  45. package/dist/{vue-ui-funnel-DjmlAdRf.js → vue-ui-funnel-CfhMmeX5.js} +6 -6
  46. package/dist/{vue-ui-galaxy-Crh7xV6s.js → vue-ui-galaxy-BnPiyPdD.js} +252 -241
  47. package/dist/{vue-ui-gauge-PjjV3JmB.js → vue-ui-gauge-B6BeYUW3.js} +7 -7
  48. package/dist/{vue-ui-gizmo-DREMjBvZ.js → vue-ui-gizmo-DoTyGRKN.js} +3 -3
  49. package/dist/{vue-ui-heatmap-D2CF8Vn8.js → vue-ui-heatmap-Di-qNaDB.js} +7 -7
  50. package/dist/{vue-ui-history-plot-DX31nVYa.js → vue-ui-history-plot-D_ax0e1n.js} +283 -270
  51. package/dist/{vue-ui-kpi-FtnzfW7L.js → vue-ui-kpi-nZXBg4tm.js} +3 -3
  52. package/dist/{vue-ui-mini-loader-DaHPhzVf.js → vue-ui-mini-loader-NoQltPUC.js} +2 -2
  53. package/dist/{vue-ui-molecule--4MdUCOi.js → vue-ui-molecule-kZceITfL.js} +5 -5
  54. package/dist/{vue-ui-mood-radar-Ci416qv5.js → vue-ui-mood-radar-DtoNCs1x.js} +264 -253
  55. package/dist/{vue-ui-nested-donuts-DoVSN0qE.js → vue-ui-nested-donuts-BXZ2WcBF.js} +377 -366
  56. package/dist/{vue-ui-onion-ChqyoLl8.js → vue-ui-onion-DNP-X1Kr.js} +265 -254
  57. package/dist/{vue-ui-parallel-coordinate-plot-BPsH_W7X.js → vue-ui-parallel-coordinate-plot-BaMmD1DR.js} +276 -265
  58. package/dist/{vue-ui-quadrant-CLQqKyzu.js → vue-ui-quadrant-qQkLdaFk.js} +356 -345
  59. package/dist/{vue-ui-quick-chart-DogHdO42.js → vue-ui-quick-chart-CR-rtVnh.js} +639 -628
  60. package/dist/{vue-ui-radar-B4rGvzKn.js → vue-ui-radar-BMAqVZty.js} +254 -243
  61. package/dist/{vue-ui-rating-BvopSHNQ.js → vue-ui-rating-NQHqua4r.js} +2 -2
  62. package/dist/{vue-ui-relation-circle-C6GEmCiw.js → vue-ui-relation-circle-uYPKJzRP.js} +7 -7
  63. package/dist/{vue-ui-ridgeline-BJVJ02bA.js → vue-ui-ridgeline-Wesfuq0m.js} +8 -8
  64. package/dist/{vue-ui-rings-BRTxWhKI.js → vue-ui-rings-C8ofrNp2.js} +250 -239
  65. package/dist/{vue-ui-scatter-D_BP7XBR.js → vue-ui-scatter-l4Q3KmVI.js} +383 -372
  66. package/dist/{vue-ui-skeleton-C_nf6VDZ.js → vue-ui-skeleton-DS0KyQM7.js} +3 -3
  67. package/dist/{vue-ui-smiley-DHCpzxMs.js → vue-ui-smiley-Dvz9CJOH.js} +2 -2
  68. package/dist/{vue-ui-spark-trend-DfM5OJIx.js → vue-ui-spark-trend-CZEFnuFC.js} +3 -3
  69. package/dist/{vue-ui-sparkbar-BrvOwqG_.js → vue-ui-sparkbar-BNoRSCo7.js} +3 -3
  70. package/dist/{vue-ui-sparkgauge-Dp2OkGrS.js → vue-ui-sparkgauge-Dlq3vjoo.js} +3 -3
  71. package/dist/{vue-ui-sparkhistogram-K_7q57W8.js → vue-ui-sparkhistogram-CfcpDn_W.js} +4 -4
  72. package/dist/{vue-ui-sparkline-BiEu6kq8.js → vue-ui-sparkline-ClRCVth4.js} +3 -3
  73. package/dist/{vue-ui-sparkstackbar-BNlyxt3y.js → vue-ui-sparkstackbar-XpDLFtos.js} +3 -3
  74. package/dist/{vue-ui-stackbar-BKb_dgUq.js → vue-ui-stackbar-B_2xrLjj.js} +443 -432
  75. package/dist/{vue-ui-strip-plot-D6dwyO-N.js → vue-ui-strip-plot-DoRnEXsU.js} +7 -7
  76. package/dist/{vue-ui-table-B9UWta9o.js → vue-ui-table-Cr8fNe8Z.js} +4 -9
  77. package/dist/{vue-ui-table-heatmap-JkwDydPq.js → vue-ui-table-heatmap-ClCYuGAL.js} +5 -5
  78. package/dist/{vue-ui-table-sparkline-BOKgPT0e.js → vue-ui-table-sparkline-BUzu6v2P.js} +4 -4
  79. package/dist/{vue-ui-thermometer-Dj0CVTk3.js → vue-ui-thermometer-BsJ_z0Nw.js} +7 -7
  80. package/dist/{vue-ui-timer-B407nCRd.js → vue-ui-timer-0x5nZPEp.js} +5 -5
  81. package/dist/{vue-ui-tiremarks-C_betH5B.js → vue-ui-tiremarks-qT3POAeD.js} +6 -6
  82. package/dist/{vue-ui-treemap-D0gScsaQ.js → vue-ui-treemap-B4ezfcLU.js} +356 -345
  83. package/dist/{vue-ui-vertical-bar-D3aoix_0.js → vue-ui-vertical-bar-Bwpe58hH.js} +9 -9
  84. package/dist/{vue-ui-waffle-hpsuszbt.js → vue-ui-waffle-CSKAC_dQ.js} +306 -295
  85. package/dist/{vue-ui-wheel-0etwsu-o.js → vue-ui-wheel-CVg1L12p.js} +6 -6
  86. package/dist/{vue-ui-word-cloud-tsEprRhX.js → vue-ui-word-cloud-DY88UMDD.js} +6 -6
  87. package/dist/{vue-ui-world-BCtGvXjy.js → vue-ui-world-UaCxKRrk.js} +343 -329
  88. package/dist/vue-ui-xy-Bsh6AmS0.js +3846 -0
  89. package/dist/{vue-ui-xy-canvas-B1s9twtZ.js → vue-ui-xy-canvas-D7VaVkKk.js} +305 -294
  90. package/package.json +1 -1
  91. package/dist/vue-ui-xy-BoT_c9bU.js +0 -3808
@@ -1,34 +1,34 @@
1
- import { defineAsyncComponent as de, computed as T, ref as x, toRefs as Yt, watch as Ee, shallowRef as pt, onMounted as Dt, onBeforeUnmount as Rt, createElementBlock as i, openBlock as u, unref as n, normalizeStyle as ae, normalizeClass as gt, createBlock as oe, createCommentVNode as g, createElementVNode as k, createVNode as Fe, createSlots as jt, withCtx as O, renderSlot as N, normalizeProps as he, guardReactiveProps as fe, Fragment as q, renderList as K, toDisplayString as X, createTextVNode as Vt, nextTick as Ut } from "vue";
2
- import { u as Gt, c as qt, t as Ht, a as Zt, p as ie, b as Jt, o as mt, f as Ie, d as Kt, g as xt, Y as Qt, e as We, a3 as el, V as tl, X as ll, s as Xe, Z as al, k as se, h as Y, i as H, v as ol, w as sl, y as ul, z as nl } from "./index-B9Ct1B_p.js";
3
- import { t as il, u as rl } from "./useResponsive-DfdjqQps.js";
4
- import { u as vl, B as yl } from "./useLoading-D7YHNtLX.js";
5
- import { u as cl } from "./usePrinter-DcZXg1hH.js";
6
- import { u as bt } from "./useNestedProp-C0gKxLur.js";
7
- import { u as dl } from "./useUserOptionState-BIvW1Kz7.js";
8
- import { u as hl } from "./useChartAccessibility-9icAAmYg.js";
9
- import fl from "./Legend-CQsASoei.js";
10
- import pl from "./Title-CntvKJss.js";
11
- import { _ as kt } from "./Shape-0sW2StrO.js";
12
- import gl from "./img-Cv4nScI0.js";
13
- import { _ as ml } from "./_plugin-vue_export-helper-CHgC5LLL.js";
14
- const xl = ["id"], bl = ["xmlns", "viewBox"], kl = ["width", "height"], wl = { key: 1 }, _l = ["x1", "x2", "y1", "y2", "stroke", "stroke-width"], Ml = ["x1", "x2", "y1", "y2", "stroke", "stroke-width"], $l = { key: 2 }, Al = ["points", "fill", "stroke-width", "stroke-dasharray", "stroke"], Cl = { key: 0 }, Sl = ["cx", "cy", "r", "fill", "stroke", "stroke-width", "onMouseover", "onMouseleave", "onClick"], Ll = { key: 1 }, zl = { key: 3 }, Tl = ["id"], Bl = ["stop-color"], Pl = ["stop-color"], Ol = ["id"], Nl = ["stop-color"], El = ["stop-color"], Fl = ["x", "y", "width", "height", "fill", "stroke", "stroke-width", "rx"], Il = ["x", "y", "height", "width", "fill", "stroke", "stroke-width", "rx"], Wl = { key: 0 }, Xl = ["d", "stroke", "stroke-width"], Yl = ["d", "stroke", "stroke-width"], Dl = ["d", "stroke", "stroke-width"], Rl = ["d", "stroke", "stroke-width"], jl = {
1
+ import { defineAsyncComponent as de, computed as T, ref as m, toRefs as Dt, watch as Ee, shallowRef as gt, onMounted as Rt, onBeforeUnmount as jt, createElementBlock as i, openBlock as u, unref as n, normalizeStyle as oe, normalizeClass as mt, createBlock as K, createCommentVNode as g, createElementVNode as b, createVNode as Fe, createSlots as Vt, withCtx as N, renderSlot as E, normalizeProps as he, guardReactiveProps as fe, Fragment as q, renderList as Q, toDisplayString as Y, Teleport as Ut, createTextVNode as Gt, nextTick as qt } from "vue";
2
+ import { u as Ht, c as Zt, t as Jt, a as Kt, p as ie, b as Qt, o as xt, f as Ie, d as el, g as bt, Y as tl, e as We, a3 as ll, V as al, X as ol, s as Xe, Z as sl, k as se, h as D, i as H, v as ul, w as nl, y as il, z as rl } from "./index-q-LPw2IT.js";
3
+ import { t as vl, u as yl } from "./useResponsive-DfdjqQps.js";
4
+ import { u as cl, B as dl } from "./useLoading-D7YHNtLX.js";
5
+ import { u as hl } from "./usePrinter-DX7efa1s.js";
6
+ import { u as kt } from "./useNestedProp-04aFeUYu.js";
7
+ import { u as fl } from "./useUserOptionState-BIvW1Kz7.js";
8
+ import { u as pl } from "./useChartAccessibility-9icAAmYg.js";
9
+ import gl from "./Legend-DcDSkq99.js";
10
+ import ml from "./Title-B55R8CAZ.js";
11
+ import { _ as wt } from "./Shape-DHIaJs9G.js";
12
+ import xl from "./img-Ctts6JQb.js";
13
+ import { _ as bl } from "./_plugin-vue_export-helper-CHgC5LLL.js";
14
+ const kl = ["id"], wl = ["id"], _l = ["xmlns", "viewBox"], $l = ["width", "height"], Ml = { key: 1 }, Al = ["x1", "x2", "y1", "y2", "stroke", "stroke-width"], Cl = ["x1", "x2", "y1", "y2", "stroke", "stroke-width"], Sl = { key: 2 }, Ll = ["points", "fill", "stroke-width", "stroke-dasharray", "stroke"], zl = { key: 0 }, Tl = ["cx", "cy", "r", "fill", "stroke", "stroke-width", "onMouseover", "onMouseleave", "onClick"], Bl = { key: 1 }, Pl = { key: 3 }, Ol = ["id"], Nl = ["stop-color"], El = ["stop-color"], Fl = ["id"], Il = ["stop-color"], Wl = ["stop-color"], Xl = ["x", "y", "width", "height", "fill", "stroke", "stroke-width", "rx"], Yl = ["x", "y", "height", "width", "fill", "stroke", "stroke-width", "rx"], Dl = { key: 0 }, Rl = ["d", "stroke", "stroke-width"], jl = ["d", "stroke", "stroke-width"], Vl = ["d", "stroke", "stroke-width"], Ul = ["d", "stroke", "stroke-width"], Gl = {
15
15
  key: 4,
16
16
  style: { "pointer-events": "none !important" }
17
- }, Vl = ["x1", "x2", "y1", "y2", "stroke", "stroke-width", "stroke-dasharray"], Ul = ["x1", "x2", "y1", "y2", "stroke", "stroke-width", "stroke-dasharray"], Gl = ["x", "y", "font-size", "fill", "font-weight", "text-anchor"], ql = ["x", "y", "font-size", "fill", "font-weight"], Hl = ["cx", "cy", "r", "fill", "stroke", "stroke-width"], Zl = ["cx", "cy", "r", "fill", "stroke", "stroke-width"], Jl = ["x", "y", "font-size", "fill", "font-weight", "text-anchor"], Kl = ["id", "transform", "font-size", "font-weight", "fill"], Ql = ["font-size", "fill", "transform"], ea = ["transform", "font-size", "fill"], ta = ["x", "y", "font-size", "fill"], la = ["x", "y", "font-size", "fill"], aa = ["font-size", "font-weight", "fill", "x", "y"], oa = ["id"], sa = ["x", "y", "width", "height"], ua = {
17
+ }, ql = ["x1", "x2", "y1", "y2", "stroke", "stroke-width", "stroke-dasharray"], Hl = ["x1", "x2", "y1", "y2", "stroke", "stroke-width", "stroke-dasharray"], Zl = ["x", "y", "font-size", "fill", "font-weight", "text-anchor"], Jl = ["x", "y", "font-size", "fill", "font-weight"], Kl = ["cx", "cy", "r", "fill", "stroke", "stroke-width"], Ql = ["cx", "cy", "r", "fill", "stroke", "stroke-width"], ea = ["x", "y", "font-size", "fill", "font-weight", "text-anchor"], ta = ["id", "transform", "font-size", "font-weight", "fill"], la = ["font-size", "fill", "transform"], aa = ["transform", "font-size", "fill"], oa = ["x", "y", "font-size", "fill"], sa = ["x", "y", "font-size", "fill"], ua = ["font-size", "font-weight", "fill", "x", "y"], na = ["id"], ia = ["x", "y", "width", "height"], ra = {
18
18
  key: 9,
19
19
  style: { pointerEvents: "none" }
20
- }, na = ["x1", "x2", "y1", "y2", "stroke-dasharray", "stroke", "stroke-width", "clip-path"], ia = ["x", "y", "fill", "font-size", "font-weight"], ra = {
20
+ }, va = ["x1", "x2", "y1", "y2", "stroke-dasharray", "stroke", "stroke-width", "clip-path"], ya = ["x", "y", "fill", "font-size", "font-weight"], ca = {
21
21
  key: 4,
22
22
  class: "vue-data-ui-watermark"
23
- }, va = ["onClick"], ya = {
23
+ }, da = ["id"], ha = ["onClick"], fa = {
24
24
  key: 0,
25
25
  style: { width: "100%", display: "flex", "align-items": "center", "justify-content": "center" }
26
- }, ca = {
26
+ }, pa = {
27
27
  viewBox: "0 0 20 20",
28
28
  height: "20",
29
29
  width: "20",
30
30
  style: { overflow: "hidden", background: "transparent" }
31
- }, da = { key: 0 }, ha = ["innerHTML"], fa = {
31
+ }, ga = { key: 0 }, ma = ["innerHTML"], xa = {
32
32
  __name: "vue-ui-scatter",
33
33
  props: {
34
34
  config: {
@@ -44,41 +44,41 @@ const xl = ["id"], bl = ["xmlns", "viewBox"], kl = ["width", "height"], wl = { k
44
44
  }
45
45
  }
46
46
  },
47
- setup(wt, { expose: _t }) {
48
- const Mt = de(() => import("./vue-ui-accordion-B31QK9Hj.js")), $t = de(() => import("./DataTable-osx68WLA.js")), At = de(() => import("./PackageVersion-DZGrOKw5.js")), Ct = de(() => import("./PenAndPaper-CdXspg5R.js")), St = de(() => import("./Tooltip-DF8e4iB9.js")), Lt = de(() => import("./UserOptions-DQyIO0ts.js")), { vue_ui_scatter: zt } = Gt(), Z = wt, Ye = T(() => !!Z.dataset && Z.dataset.length), D = x(qt()), Tt = x(null), _e = x(!1), Me = x(""), De = x(0), Q = x(null), Re = x(null), je = x(null), Ve = x(null), Ue = x(null), Ge = x(0), qe = x(0), He = x(0), L = x([]), $e = x(null), Bt = x(null), Pt = x(null), Ae = x(null), e = x(ze());
49
- function Ot(l = 100, s = 0.8, t = {}) {
47
+ setup(_t, { expose: $t }) {
48
+ const Mt = de(() => import("./vue-ui-accordion-D46i_gkB.js")), At = de(() => import("./DataTable-rj9-mAwF.js")), Ct = de(() => import("./PackageVersion-5ZjKSIei.js")), St = de(() => import("./PenAndPaper-BJ0hcgsa.js")), Lt = de(() => import("./Tooltip-BMOddG-M.js")), zt = de(() => import("./UserOptions-DVzyjG-W.js")), { vue_ui_scatter: Tt } = Ht(), Z = _t, Ye = T(() => !!Z.dataset && Z.dataset.length), B = m(Zt()), Bt = m(null), _e = m(!1), $e = m(""), De = m(0), ee = m(null), Re = m(null), je = m(null), Ve = m(null), Ue = m(null), Ge = m(0), qe = m(0), He = m(0), L = m([]), Ze = m(!1), Me = m(null), Pt = m(null), Ot = m(null), Ae = m(null), e = m(ze());
49
+ function Nt(l = 100, s = 0.8, t = {}) {
50
50
  const { meanX: a = 0, sdX: o = 1, meanY: r = 0, sdY: h = 1, seed: C } = t;
51
51
  let S = (C ?? Math.floor(Math.random() * 2 ** 31)) >>> 0;
52
- const B = () => (S = S * 1664525 + 1013904223 >>> 0, S / 2 ** 32), E = () => {
53
- let y = 0, $ = 0;
54
- for (; y === 0; ) y = B();
55
- for (; $ === 0; ) $ = B();
56
- return Math.sqrt(-2 * Math.log(y)) * Math.cos(2 * Math.PI * $);
57
- }, d = l / 2, b = Array.from({ length: d }, E), W = Array.from({ length: d }, E), w = (y) => y.reduce(($, me) => $ + me, 0) / y.length, F = w(b), J = w(W);
52
+ const P = () => (S = S * 1664525 + 1013904223 >>> 0, S / 2 ** 32), F = () => {
53
+ let y = 0, M = 0;
54
+ for (; y === 0; ) y = P();
55
+ for (; M === 0; ) M = P();
56
+ return Math.sqrt(-2 * Math.log(y)) * Math.cos(2 * Math.PI * M);
57
+ }, d = l / 2, k = Array.from({ length: d }, F), X = Array.from({ length: d }, F), w = (y) => y.reduce((M, me) => M + me, 0) / y.length, I = w(k), J = w(X);
58
58
  for (let y = 0; y < d; y += 1)
59
- b[y] -= F, W[y] -= J;
60
- const _ = (y, $) => y.reduce((me, we, Ne) => me + we * $[Ne], 0), p = (y) => _(y, y), v = _(W, b) / p(b), m = W.map((y, $) => y - v * b[$]), I = p(b) / d, U = p(m) / d, le = Math.sqrt((1 - s * s) * I / U), P = b.map((y, $) => s * y + le * m[$]), ne = b.concat(b.map((y) => -y)), Oe = P.concat(P.map((y) => -y)), pe = (y) => Math.sqrt(p(y) / y.length), ye = (y, $, me) => {
59
+ k[y] -= I, X[y] -= J;
60
+ const _ = (y, M) => y.reduce((me, we, Ne) => me + we * M[Ne], 0), p = (y) => _(y, y), v = _(X, k) / p(k), x = X.map((y, M) => y - v * k[M]), W = p(k) / d, U = p(x) / d, ae = Math.sqrt((1 - s * s) * W / U), O = k.map((y, M) => s * y + ae * x[M]), ne = k.concat(k.map((y) => -y)), Oe = O.concat(O.map((y) => -y)), pe = (y) => Math.sqrt(p(y) / y.length), ye = (y, M, me) => {
61
61
  const we = pe(y);
62
- return y.map((Ne) => me + (we ? Ne / we * $ : 0));
62
+ return y.map((Ne) => me + (we ? Ne / we * M : 0));
63
63
  }, ce = ye(ne, o, a), ge = ye(Oe, h, r);
64
64
  for (let y = ce.length - 1; y > 0; y -= 1) {
65
- const $ = Math.floor(B() * (y + 1));
66
- [ce[y], ce[$]] = [ce[$], ce[y]], [ge[y], ge[$]] = [ge[$], ge[y]];
65
+ const M = Math.floor(P() * (y + 1));
66
+ [ce[y], ce[M]] = [ce[M], ce[y]], [ge[y], ge[M]] = [ge[M], ge[y]];
67
67
  }
68
- return ce.map((y, $) => ({ x: y, y: ge[$] }));
68
+ return ce.map((y, M) => ({ x: y, y: ge[M] }));
69
69
  }
70
- const { loading: Ze, FINAL_DATASET: Ce, manualLoading: Se } = vl({
71
- ...Yt(Z),
70
+ const { loading: Je, FINAL_DATASET: Ce, manualLoading: Se } = cl({
71
+ ...Dt(Z),
72
72
  FINAL_CONFIG: e,
73
73
  prepareConfig: ze,
74
74
  skeletonDataset: [
75
75
  {
76
76
  name: "",
77
77
  color: "#999999",
78
- values: Ot(100, 0.5, { seed: 42 })
78
+ values: Nt(100, 0.5, { seed: 42 })
79
79
  }
80
80
  ],
81
- skeletonConfig: Ht({
81
+ skeletonConfig: Jt({
82
82
  defaultConfig: e.value,
83
83
  userConfig: {
84
84
  userOptions: { show: !1 },
@@ -111,39 +111,39 @@ const xl = ["id"], bl = ["xmlns", "viewBox"], kl = ["width", "height"], wl = { k
111
111
  }
112
112
  }
113
113
  })
114
- }), { userOptionsVisible: Le, setUserOptionsVisibility: Je, keepUserOptionState: Ke } = dl({ config: e.value }), { svgRef: Qe } = hl({ config: e.value.style.title });
114
+ }), { userOptionsVisible: Le, setUserOptionsVisibility: Ke, keepUserOptionState: Qe } = fl({ config: e.value }), { svgRef: et } = pl({ config: e.value.style.title });
115
115
  function ze() {
116
- const l = bt({
116
+ const l = kt({
117
117
  userConfig: Z.config,
118
- defaultConfig: zt
118
+ defaultConfig: Tt
119
119
  });
120
120
  return l.theme ? {
121
- ...bt({
122
- userConfig: Jt.vue_ui_scatter[l.theme] || Z.config,
121
+ ...kt({
122
+ userConfig: Qt.vue_ui_scatter[l.theme] || Z.config,
123
123
  defaultConfig: l
124
124
  }),
125
- customPalette: Zt[l.theme] || ie
125
+ customPalette: Kt[l.theme] || ie
126
126
  } : l;
127
127
  }
128
128
  Ee(() => Z.config, (l) => {
129
- Ze.value || (e.value = ze()), Le.value = !e.value.userOptions.showOnChartHover, et(), Ge.value += 1, qe.value += 1, He.value += 1, R.value.showTable = e.value.table.show, R.value.showTooltip = e.value.style.tooltip.show;
129
+ Je.value || (e.value = ze()), Le.value = !e.value.userOptions.showOnChartHover, tt(), Ge.value += 1, qe.value += 1, He.value += 1, R.value.showTable = e.value.table.show, R.value.showTooltip = e.value.style.tooltip.show;
130
130
  }, { deep: !0 }), Ee(() => Z.dataset, (l) => {
131
131
  Array.isArray(l) && l.length > 0 && (Se.value = !1);
132
132
  }, { deep: !0 });
133
- const ee = pt(null), re = pt(null);
134
- Dt(() => {
135
- et();
133
+ const te = gt(null), re = gt(null);
134
+ Rt(() => {
135
+ Ze.value = !0, tt();
136
136
  });
137
- const Nt = T(() => !!e.value.debug);
138
- function et() {
139
- if (mt(Z.dataset) && (Ie({
137
+ const Et = T(() => !!e.value.debug);
138
+ function tt() {
139
+ if (xt(Z.dataset) && (Ie({
140
140
  componentName: "VueUiScatter",
141
141
  type: "dataset",
142
- debug: Nt.value
143
- }), Se.value = !0), mt(Z.dataset) || (Se.value = e.value.loading), e.value.responsive) {
144
- const l = il(() => {
145
- const { width: s, height: t } = rl({
146
- chart: Q.value,
142
+ debug: Et.value
143
+ }), Se.value = !0), xt(Z.dataset) || (Se.value = e.value.loading), e.value.responsive) {
144
+ const l = vl(() => {
145
+ const { width: s, height: t } = yl({
146
+ chart: ee.value,
147
147
  title: e.value.style.title.text ? Re.value : null,
148
148
  legend: e.value.style.legend.show ? je.value : null,
149
149
  source: Ve.value,
@@ -153,17 +153,17 @@ const xl = ["id"], bl = ["xmlns", "viewBox"], kl = ["width", "height"], wl = { k
153
153
  z.value.width = s, z.value.height = t;
154
154
  });
155
155
  });
156
- ee.value && (re.value && ee.value.unobserve(re.value), ee.value.disconnect()), ee.value = new ResizeObserver(l), re.value = Q.value.parentNode, ee.value.observe(re.value);
156
+ te.value && (re.value && te.value.unobserve(re.value), te.value.disconnect()), te.value = new ResizeObserver(l), re.value = ee.value.parentNode, te.value.observe(re.value);
157
157
  }
158
158
  }
159
- Rt(() => {
160
- ee.value && (re.value && ee.value.unobserve(re.value), ee.value.disconnect());
159
+ jt(() => {
160
+ te.value && (re.value && te.value.unobserve(re.value), te.value.disconnect());
161
161
  });
162
- const { isPrinting: tt, isImaging: lt, generatePdf: at, generateImage: ot } = cl({
163
- elementId: `vue-ui-scatter_${D.value}`,
162
+ const { isPrinting: lt, isImaging: at, generatePdf: ot, generateImage: st } = hl({
163
+ elementId: `vue-ui-scatter_${B.value}`,
164
164
  fileName: e.value.style.title.text || "vue-ui-scatter",
165
165
  options: e.value.userOptions.print
166
- }), Et = T(() => e.value.userOptions.show && !e.value.style.title.text), st = T(() => Kt(e.value.customPalette)), R = x({
166
+ }), Ft = T(() => e.value.userOptions.show && !e.value.style.title.text), ut = T(() => el(e.value.customPalette)), R = m({
167
167
  showTable: e.value.table.show,
168
168
  showTooltip: e.value.style.tooltip.show
169
169
  });
@@ -173,12 +173,12 @@ const xl = ["id"], bl = ["xmlns", "viewBox"], kl = ["width", "height"], wl = { k
173
173
  showTooltip: e.value.style.tooltip.show
174
174
  };
175
175
  }, { immediate: !0 });
176
- const z = x({
176
+ const z = m({
177
177
  height: e.value.style.layout.height,
178
178
  width: e.value.style.layout.width
179
179
  }), xe = T(() => e.value.style.layout.marginalBars.show ? e.value.style.layout.marginalBars.size + e.value.style.layout.marginalBars.offset : 0), c = T(() => {
180
180
  let l = 0, s = 0;
181
- return $e.value && (l = $e.value.getBBox().width + 6), Ae.value && (s = Ae.value.getBBox().height + 6), {
181
+ return Me.value && (l = Me.value.getBBox().width + 6), Ae.value && (s = Ae.value.getBBox().height + 6), {
182
182
  top: e.value.style.layout.padding.top + xe.value + e.value.style.layout.dataLabels.yAxis.fontSize * 2,
183
183
  right: z.value.width - e.value.style.layout.padding.right - xe.value - 6,
184
184
  bottom: z.value.height - e.value.style.layout.padding.bottom - s,
@@ -186,9 +186,9 @@ const xl = ["id"], bl = ["xmlns", "viewBox"], kl = ["width", "height"], wl = { k
186
186
  height: z.value.height - e.value.style.layout.padding.top - e.value.style.layout.padding.bottom - xe.value - s - e.value.style.layout.dataLabels.yAxis.fontSize * 2,
187
187
  width: z.value.width - e.value.style.layout.padding.left - e.value.style.layout.padding.right - xe.value - l - 6
188
188
  };
189
- }), M = T(() => {
189
+ }), $ = T(() => {
190
190
  Ce.value.forEach((o, r) => {
191
- xt({
191
+ bt({
192
192
  datasetObject: o,
193
193
  requiredAttributes: ["values"]
194
194
  }).forEach((h) => {
@@ -199,7 +199,7 @@ const xl = ["id"], bl = ["xmlns", "viewBox"], kl = ["width", "height"], wl = { k
199
199
  index: r
200
200
  });
201
201
  }), o.values && o.values.forEach((h, C) => {
202
- xt({
202
+ bt({
203
203
  datasetObject: h,
204
204
  requiredAttributes: ["x", "y"]
205
205
  }).forEach((S) => {
@@ -215,24 +215,24 @@ const xl = ["id"], bl = ["xmlns", "viewBox"], kl = ["width", "height"], wl = { k
215
215
  const l = Math.min(...ue.value.filter((o) => !L.value.includes(o.id)).flatMap((o) => o.values.map((r) => r.x))), s = Math.max(...ue.value.filter((o) => !L.value.includes(o.id)).flatMap((o) => o.values.map((r) => r.x))), t = Math.min(...ue.value.filter((o) => !L.value.includes(o.id)).flatMap((o) => o.values.map((r) => r.y))), a = Math.max(...ue.value.filter((o) => !L.value.includes(o.id)).flatMap((o) => o.values.map((r) => r.y)));
216
216
  return { xMin: l >= 0 ? 0 : l, xMax: s, yMin: t >= 0 ? 0 : t, yMax: a };
217
217
  }), A = T(() => ({
218
- x: c.value.left + Math.abs(M.value.xMin) / (M.value.xMax + Math.abs(M.value.xMin)) * c.value.width,
219
- y: c.value.bottom - Math.abs(M.value.yMin) / (M.value.yMax + Math.abs(M.value.yMin)) * c.value.height
218
+ x: c.value.left + Math.abs($.value.xMin) / ($.value.xMax + Math.abs($.value.xMin)) * c.value.width,
219
+ y: c.value.bottom - Math.abs($.value.yMin) / ($.value.yMax + Math.abs($.value.yMin)) * c.value.height
220
220
  })), ue = T(() => Ce.value.map((l, s) => {
221
- const t = `cluster_${D.value}_${s}`;
221
+ const t = `cluster_${B.value}_${s}`;
222
222
  return {
223
223
  ...l,
224
- values: Qt({
224
+ values: tl({
225
225
  data: l.values,
226
226
  threshold: e.value.downsample.threshold
227
227
  }),
228
228
  id: t,
229
- color: l.color ? l.color : st.value[s] || ie[s] || ie[s % ie.length],
229
+ color: l.color ? l.color : ut.value[s] || ie[s] || ie[s % ie.length],
230
230
  opacity: L.value.includes(t) ? 0.5 : 1,
231
231
  shape: l.shape ?? "circle",
232
- segregate: () => yt(t),
232
+ segregate: () => ct(t),
233
233
  isSegregated: L.value.includes(t)
234
234
  };
235
- })), Ft = T(() => ({
235
+ })), It = T(() => ({
236
236
  cy: "scatter-div-legend",
237
237
  backgroundColor: e.value.style.legend.backgroundColor,
238
238
  color: e.value.style.legend.color,
@@ -242,63 +242,63 @@ const xl = ["id"], bl = ["xmlns", "viewBox"], kl = ["width", "height"], wl = { k
242
242
  })), Te = T(() => ue.value.map((l, s) => ({
243
243
  ...l,
244
244
  plots: l.values.map((t) => ({
245
- x: c.value.left + (t.x + Math.abs(M.value.xMin)) / (M.value.xMax + Math.abs(M.value.xMin)) * c.value.width,
246
- y: c.value.bottom - (t.y + Math.abs(M.value.yMin)) / (M.value.yMax + Math.abs(M.value.yMin)) * c.value.height,
245
+ x: c.value.left + (t.x + Math.abs($.value.xMin)) / ($.value.xMax + Math.abs($.value.xMin)) * c.value.width,
246
+ y: c.value.bottom - (t.y + Math.abs($.value.yMin)) / ($.value.yMax + Math.abs($.value.yMin)) * c.value.height,
247
247
  v: {
248
248
  ...t,
249
249
  name: t.name || ""
250
250
  },
251
251
  clusterName: l.name,
252
- color: l.color ? l.color : st.value[s] || ie[s] || ie[s % ie.length],
253
- id: `plot_${D.value}_${Math.random()}`,
252
+ color: l.color ? l.color : ut.value[s] || ie[s] || ie[s % ie.length],
253
+ id: `plot_${B.value}_${Math.random()}`,
254
254
  weight: t.weight ?? e.value.style.layout.plots.radius
255
255
  }))
256
256
  })).filter((l) => !L.value.includes(l.id))), j = T(() => {
257
257
  const s = ({ m: t, b: a, rect: o, verticalX: r = null }) => {
258
- const { left: h, right: C, top: S, bottom: B } = o, E = [], d = (p, v) => {
259
- Number.isFinite(p) && Number.isFinite(v) && E.push({ x: p, y: v });
260
- }, b = ({ x: p, y: v }) => p >= h - 1e-9 && p <= C + 1e-9 && v >= S - 1e-9 && v <= B + 1e-9;
261
- r !== null ? r >= h - 1e-9 && r <= C + 1e-9 && (d(r, S), d(r, B)) : Number.isFinite(t) && (d(h, t * h + a), d(C, t * C + a), Math.abs(t) > 1e-9 ? (d((S - a) / t, S), d((B - a) / t, B)) : a >= S - 1e-9 && a <= B + 1e-9 && (d(h, a), d(C, a)));
262
- const W = E.filter(b), w = [];
263
- for (const p of W)
258
+ const { left: h, right: C, top: S, bottom: P } = o, F = [], d = (p, v) => {
259
+ Number.isFinite(p) && Number.isFinite(v) && F.push({ x: p, y: v });
260
+ }, k = ({ x: p, y: v }) => p >= h - 1e-9 && p <= C + 1e-9 && v >= S - 1e-9 && v <= P + 1e-9;
261
+ r !== null ? r >= h - 1e-9 && r <= C + 1e-9 && (d(r, S), d(r, P)) : Number.isFinite(t) && (d(h, t * h + a), d(C, t * C + a), Math.abs(t) > 1e-9 ? (d((S - a) / t, S), d((P - a) / t, P)) : a >= S - 1e-9 && a <= P + 1e-9 && (d(h, a), d(C, a)));
262
+ const X = F.filter(k), w = [];
263
+ for (const p of X)
264
264
  w.some((v) => Math.abs(v.x - p.x) < 1e-6 && Math.abs(v.y - p.y) < 1e-6) || w.push(p);
265
265
  if (w.length < 2) return null;
266
- let F = w[0], J = w[1], _ = 0;
266
+ let I = w[0], J = w[1], _ = 0;
267
267
  for (let p = 0; p < w.length; p += 1)
268
268
  for (let v = p + 1; v < w.length; v += 1) {
269
- const m = w[p].x - w[v].x, I = w[p].y - w[v].y, U = m * m + I * I;
270
- U > _ && (_ = U, F = w[p], J = w[v]);
269
+ const x = w[p].x - w[v].x, W = w[p].y - w[v].y, U = x * x + W * W;
270
+ U > _ && (_ = U, I = w[p], J = w[v]);
271
271
  }
272
- return { x1: F.x, y1: F.y, x2: J.x, y2: J.y };
272
+ return { x1: I.x, y1: I.y, x2: J.x, y2: J.y };
273
273
  };
274
274
  return Te.value.map((t) => {
275
- const a = t.plots.length, o = t.plots.reduce((v, m) => v + m.x, 0) / a, r = t.plots.reduce((v, m) => v + m.y, 0) / a;
275
+ const a = t.plots.length, o = t.plots.reduce((v, x) => v + x.x, 0) / a, r = t.plots.reduce((v, x) => v + x.y, 0) / a;
276
276
  let h = 0, C = 0;
277
277
  for (const v of t.plots) {
278
- const m = v.x - o, I = v.y - r;
279
- h += m * I, C += m * m;
278
+ const x = v.x - o, W = v.y - r;
279
+ h += x * W, C += x * x;
280
280
  }
281
- let S, B, E = null;
282
- C < 1e-9 ? (E = o, S = 1 / 0, B = null) : (S = h / C, B = r - S * o);
283
- let d, b;
284
- E !== null ? (d = 1 / 0, b = null) : (d = S, b = B);
285
- const W = t.plots.every((v) => v.v && typeof v.v.x == "number" && typeof v.v.y == "number");
281
+ let S, P, F = null;
282
+ C < 1e-9 ? (F = o, S = 1 / 0, P = null) : (S = h / C, P = r - S * o);
283
+ let d, k;
284
+ F !== null ? (d = 1 / 0, k = null) : (d = S, k = P);
285
+ const X = t.plots.every((v) => v.v && typeof v.v.x == "number" && typeof v.v.y == "number");
286
286
  let w = NaN;
287
287
  if (a >= 2) {
288
- let v = 0, m = 0;
289
- W ? (v = t.plots.reduce((P, ne) => P + ne.v.x, 0) / a, m = t.plots.reduce((P, ne) => P + ne.v.y, 0) / a) : (v = o, m = -r);
290
- let I = 0, U = 0, le = 0;
291
- for (const P of t.plots) {
292
- const ne = W ? P.v.x : P.x, Oe = W ? P.v.y : -P.y, pe = ne - v, ye = Oe - m;
293
- I += pe * ye, U += pe * pe, le += ye * ye;
288
+ let v = 0, x = 0;
289
+ X ? (v = t.plots.reduce((O, ne) => O + ne.v.x, 0) / a, x = t.plots.reduce((O, ne) => O + ne.v.y, 0) / a) : (v = o, x = -r);
290
+ let W = 0, U = 0, ae = 0;
291
+ for (const O of t.plots) {
292
+ const ne = X ? O.v.x : O.x, Oe = X ? O.v.y : -O.y, pe = ne - v, ye = Oe - x;
293
+ W += pe * ye, U += pe * pe, ae += ye * ye;
294
294
  }
295
- if (U >= 1e-9 && le >= 1e-9) {
296
- const P = I / Math.sqrt(U * le);
297
- w = Math.max(-1, Math.min(1, P));
295
+ if (U >= 1e-9 && ae >= 1e-9) {
296
+ const O = W / Math.sqrt(U * ae);
297
+ w = Math.max(-1, Math.min(1, O));
298
298
  }
299
299
  }
300
- const F = s({ m: d, b, rect: c.value, verticalX: E });
301
- if (!F)
300
+ const I = s({ m: d, b: k, rect: c.value, verticalX: F });
301
+ if (!I)
302
302
  return {
303
303
  ...t,
304
304
  correlation: null,
@@ -310,33 +310,33 @@ const xl = ["id"], bl = ["xmlns", "viewBox"], kl = ["width", "height"], wl = { k
310
310
  color: We(t.color)
311
311
  }))
312
312
  };
313
- const J = (F.x1 + F.x2) / 2, _ = (F.y1 + F.y2) / 2, p = { x: J, y: _ };
313
+ const J = (I.x1 + I.x2) / 2, _ = (I.y1 + I.y2) / 2, p = { x: J, y: _ };
314
314
  return {
315
315
  ...t,
316
316
  color: We(t.color),
317
317
  correlation: {
318
- ...F,
318
+ ...I,
319
319
  coefficient: w
320
320
  },
321
321
  label: p,
322
322
  plots: t.plots.map((v) => {
323
- let m, I;
324
- E !== null ? (m = E, I = v.y) : Math.abs(d) < 1e-9 ? (m = v.x, I = b) : (m = (v.x + d * v.y - d * b) / (1 + d * d), I = (d * v.x + d * d * v.y + b) / (1 + d * d));
325
- const U = v.x - m, le = v.y - I, P = Math.sqrt(U * U + le * le);
323
+ let x, W;
324
+ F !== null ? (x = F, W = v.y) : Math.abs(d) < 1e-9 ? (x = v.x, W = k) : (x = (v.x + d * v.y - d * k) / (1 + d * d), W = (d * v.x + d * d * v.y + k) / (1 + d * d));
325
+ const U = v.x - x, ae = v.y - W, O = Math.sqrt(U * U + ae * ae);
326
326
  return {
327
327
  ...v,
328
- deviation: P,
328
+ deviation: O,
329
329
  shape: t.shape,
330
330
  color: We(t.color)
331
331
  };
332
332
  })
333
333
  };
334
334
  });
335
- }), ut = T(() => Math.max(...j.value.flatMap((l) => l.plots.map((s) => Math.abs(s.deviation)))));
336
- function It() {
335
+ }), nt = T(() => Math.max(...j.value.flatMap((l) => l.plots.map((s) => Math.abs(s.deviation)))));
336
+ function Wt() {
337
337
  return j.value;
338
338
  }
339
- function nt(l, s) {
339
+ function it(l, s) {
340
340
  const t = Array.isArray(l) ? l.flatMap((_) => _.plots.map((p) => ({
341
341
  x: p.x,
342
342
  y: p.y
@@ -348,28 +348,28 @@ const xl = ["id"], bl = ["xmlns", "viewBox"], kl = ["width", "height"], wl = { k
348
348
  t.forEach(({ x: _, y: p }) => {
349
349
  a = Math.min(a, _), o = Math.max(o, _), r = Math.min(r, p), h = Math.max(h, p);
350
350
  });
351
- const C = o - a, S = h - r, B = C / s, E = S / s, d = Array(s).fill(0), b = Array(s).fill(0);
351
+ const C = o - a, S = h - r, P = C / s, F = S / s, d = Array(s).fill(0), k = Array(s).fill(0);
352
352
  t.forEach(({ x: _, y: p }) => {
353
- const v = Math.floor((_ - a) / B), m = Math.floor((p - r) / E);
354
- d[v] || (d[v] = 0), b[m] || (b[m] = 0), d[v] += 1, b[m] += 1;
353
+ const v = Math.floor((_ - a) / P), x = Math.floor((p - r) / F);
354
+ d[v] || (d[v] = 0), k[x] || (k[x] = 0), d[v] += 1, k[x] += 1;
355
355
  });
356
- const W = [], w = [];
356
+ const X = [], w = [];
357
357
  for (let _ = 0; _ < s; _ += 1)
358
- W.push(a + (_ + 0.5) * B), w.push(r + (_ + 0.5) * E);
359
- const F = Math.max(...d), J = Math.max(...b);
360
- return { x: d, y: b, avgX: W, avgY: w, maxX: F, maxY: J };
358
+ X.push(a + (_ + 0.5) * P), w.push(r + (_ + 0.5) * F);
359
+ const I = Math.max(...d), J = Math.max(...k);
360
+ return { x: d, y: k, avgX: X, avgY: w, maxX: I, maxY: J };
361
361
  }
362
- const te = T(() => e.value.style.layout.marginalBars.tranches), V = T(() => nt(Te.value, te.value)), Wt = T(() => {
362
+ const le = T(() => e.value.style.layout.marginalBars.tranches), V = T(() => it(Te.value, le.value)), Xt = T(() => {
363
363
  const l = c.value.top - e.value.style.layout.marginalBars.offset, s = c.value.right + e.value.style.layout.marginalBars.offset;
364
364
  return Te.value.map((t) => {
365
- const a = nt(t, te.value);
365
+ const a = it(t, le.value);
366
366
  return {
367
367
  coords: a,
368
- dX: tl(a.avgX.map((o, r) => ({
368
+ dX: al(a.avgX.map((o, r) => ({
369
369
  x: o,
370
370
  y: l - a.x[r] / a.maxX * e.value.style.layout.marginalBars.size
371
371
  }))),
372
- dY: el(a.avgY.map((o, r) => ({
372
+ dY: ll(a.avgY.map((o, r) => ({
373
373
  y: o,
374
374
  x: s + e.value.style.layout.marginalBars.size * a.y[r] / a.maxY
375
375
  }))),
@@ -377,8 +377,8 @@ const xl = ["id"], bl = ["xmlns", "viewBox"], kl = ["width", "height"], wl = { k
377
377
  id: t.id
378
378
  };
379
379
  });
380
- }), G = x(void 0), f = x(null), Be = x(null);
381
- function it(l, s) {
380
+ }), G = m(void 0), f = m(null), Be = m(null);
381
+ function rt(l, s) {
382
382
  G.value = l.id, f.value = l;
383
383
  let t = "";
384
384
  e.value.events.datapointEnter && e.value.events.datapointEnter({ datapoint: l, seriesIndex: s }), Be.value = {
@@ -388,12 +388,12 @@ const xl = ["id"], bl = ["xmlns", "viewBox"], kl = ["width", "height"], wl = { k
388
388
  config: e.value
389
389
  };
390
390
  const a = e.value.style.tooltip.customFormat;
391
- ul(a) && nl(() => a({
391
+ il(a) && rl(() => a({
392
392
  datapoint: l,
393
393
  seriesIndex: s,
394
394
  series: j.value,
395
395
  config: e.value
396
- })) ? Me.value = a({
396
+ })) ? $e.value = a({
397
397
  datapoint: l,
398
398
  seriesIndex: s,
399
399
  series: j.value,
@@ -421,27 +421,27 @@ const xl = ["id"], bl = ["xmlns", "viewBox"], kl = ["width", "height"], wl = { k
421
421
  )}</b></div>`, t += `${e.value.style.layout.plots.deviation.translation}: <b>${H({
422
422
  v: l.deviation,
423
423
  r: e.value.style.layout.plots.deviation.roundingValue
424
- })}</b>`, t += "</div>", Me.value = `<div>${t}</div>`), _e.value = !0;
424
+ })}</b>`, t += "</div>", $e.value = `<div>${t}</div>`), _e.value = !0;
425
425
  }
426
- function rt(l, s) {
426
+ function vt(l, s) {
427
427
  e.value.events.datapointLeave && e.value.events.datapointLeave({ datapoint: l, seriesIndex: s }), _e.value = !1, G.value = void 0, f.value = null;
428
428
  }
429
- function vt(l, s) {
429
+ function yt(l, s) {
430
430
  e.value.events.datapointClick && e.value.events.datapointClick({ datapoint: l, seriesIndex: s });
431
431
  }
432
- function yt(l) {
432
+ function ct(l) {
433
433
  L.value.includes(l) ? L.value = L.value.filter((s) => s !== l) : L.value.length < Ce.value.length - 1 && L.value.push(l);
434
434
  }
435
- function ct(l = null) {
436
- Ut(() => {
435
+ function dt(l = null) {
436
+ qt(() => {
437
437
  const s = ["", e.value.table.translations.correlationCoefficient, e.value.table.translations.nbrPlots, `${e.value.style.layout.dataLabels.xAxis.name} ${e.value.table.translations.average}`, `${e.value.style.layout.dataLabels.yAxis.name} ${e.value.table.translations.average}`], t = j.value.map((r) => [
438
438
  r.name,
439
439
  r.correlation.coefficient,
440
440
  r.plots.length,
441
441
  r.plots.map((h) => h.v.x).reduce((h, C) => h + C, 0) / r.plots.length,
442
442
  r.plots.map((h) => h.v.y).reduce((h, C) => h + C, 0) / r.plots.length
443
- ]), a = [[e.value.style.title.text], [e.value.style.title.subtitle.text], [[""], [""], [""]]].concat([s]).concat(t), o = ol(a);
444
- l ? l(o) : sl({ csvContent: o, title: e.value.style.title.text || "vue-ui-heatmap" });
443
+ ]), a = [[e.value.style.title.text], [e.value.style.title.subtitle.text], [[""], [""], [""]]].concat([s]).concat(t), o = ul(a);
444
+ l ? l(o) : nl({ csvContent: o, title: e.value.style.title.text || "vue-ui-heatmap" });
445
445
  });
446
446
  }
447
447
  const be = T(() => {
@@ -475,23 +475,23 @@ const xl = ["id"], bl = ["xmlns", "viewBox"], kl = ["width", "height"], wl = { k
475
475
  breakpoint: e.value.table.responsiveBreakpoint
476
476
  };
477
477
  return { head: l, body: s, config: t, colNames: l };
478
- }), ve = x(!1);
479
- function dt(l) {
478
+ }), ve = m(!1);
479
+ function ht(l) {
480
480
  ve.value = l, De.value += 1;
481
481
  }
482
- function ht() {
482
+ function ft() {
483
483
  R.value.showTable = !R.value.showTable;
484
484
  }
485
- function ft() {
485
+ function pt() {
486
486
  R.value.showTooltip = !R.value.showTooltip;
487
487
  }
488
- const ke = x(!1);
488
+ const ke = m(!1);
489
489
  function Pe() {
490
490
  ke.value = !ke.value;
491
491
  }
492
- async function Xt({ scale: l = 2 } = {}) {
493
- if (!Q.value) return;
494
- const { width: s, height: t } = Q.value.getBoundingClientRect(), a = s / t, { imageUri: o, base64: r } = await gl({ domElement: Q.value, base64: !0, img: !0, scale: l });
492
+ async function Yt({ scale: l = 2 } = {}) {
493
+ if (!ee.value) return;
494
+ const { width: s, height: t } = ee.value.getBoundingClientRect(), a = s / t, { imageUri: o, base64: r } = await xl({ domElement: ee.value, base64: !0, img: !0, scale: l });
495
495
  return {
496
496
  imageUri: o,
497
497
  base64: r,
@@ -501,34 +501,34 @@ const xl = ["id"], bl = ["xmlns", "viewBox"], kl = ["width", "height"], wl = { k
501
501
  aspectRatio: a
502
502
  };
503
503
  }
504
- return _t({
505
- getData: It,
506
- getImage: Xt,
507
- generatePdf: at,
508
- generateCsv: ct,
509
- generateImage: ot,
510
- toggleTable: ht,
511
- toggleTooltip: ft,
504
+ return $t({
505
+ getData: Wt,
506
+ getImage: Yt,
507
+ generatePdf: ot,
508
+ generateCsv: dt,
509
+ generateImage: st,
510
+ toggleTable: ft,
511
+ toggleTooltip: pt,
512
512
  toggleAnnotator: Pe,
513
- toggleFullscreen: dt
513
+ toggleFullscreen: ht
514
514
  }), (l, s) => (u(), i("div", {
515
- class: gt(`vue-ui-scatter ${ve.value ? "vue-data-ui-wrapper-fullscreen" : ""} ${e.value.useCssAnimation ? "" : "vue-ui-dna"}`),
515
+ class: mt(`vue-ui-scatter ${ve.value ? "vue-data-ui-wrapper-fullscreen" : ""} ${e.value.useCssAnimation ? "" : "vue-ui-dna"}`),
516
516
  ref_key: "scatterChart",
517
- ref: Q,
518
- id: `vue-ui-scatter_${D.value}`,
519
- style: ae(`font-family:${e.value.style.fontFamily};width:100%; text-align:center;background:${e.value.style.backgroundColor};${e.value.responsive ? "height: 100%" : ""}`),
520
- onMouseenter: s[2] || (s[2] = () => n(Je)(!0)),
521
- onMouseleave: s[3] || (s[3] = () => n(Je)(!1))
517
+ ref: ee,
518
+ id: `vue-ui-scatter_${B.value}`,
519
+ style: oe(`font-family:${e.value.style.fontFamily};width:100%; text-align:center;background:${e.value.style.backgroundColor};${e.value.responsive ? "height: 100%" : ""}`),
520
+ onMouseenter: s[2] || (s[2] = () => n(Ke)(!0)),
521
+ onMouseleave: s[3] || (s[3] = () => n(Ke)(!1))
522
522
  }, [
523
- e.value.userOptions.buttons.annotator ? (u(), oe(n(Ct), {
523
+ e.value.userOptions.buttons.annotator ? (u(), K(n(St), {
524
524
  key: 0,
525
- svgRef: n(Qe),
525
+ svgRef: n(et),
526
526
  backgroundColor: e.value.style.backgroundColor,
527
527
  color: e.value.style.color,
528
528
  active: ke.value,
529
529
  onClose: Pe
530
530
  }, null, 8, ["svgRef", "backgroundColor", "color", "active"])) : g("", !0),
531
- Et.value ? (u(), i("div", {
531
+ Ft.value ? (u(), i("div", {
532
532
  key: 1,
533
533
  ref_key: "noTitle",
534
534
  ref: Ue,
@@ -541,7 +541,7 @@ const xl = ["id"], bl = ["xmlns", "viewBox"], kl = ["width", "height"], wl = { k
541
541
  ref: Re,
542
542
  style: "width:100%;background:transparent"
543
543
  }, [
544
- (u(), oe(pl, {
544
+ (u(), K(ml, {
545
545
  key: `title_${Ge.value}`,
546
546
  config: {
547
547
  title: {
@@ -555,15 +555,18 @@ const xl = ["id"], bl = ["xmlns", "viewBox"], kl = ["width", "height"], wl = { k
555
555
  }
556
556
  }, null, 8, ["config"]))
557
557
  ], 512)) : g("", !0),
558
- e.value.userOptions.show && Ye.value && (n(Ke) || n(Le)) ? (u(), oe(n(Lt), {
558
+ b("div", {
559
+ id: `legend-top-${B.value}`
560
+ }, null, 8, wl),
561
+ e.value.userOptions.show && Ye.value && (n(Qe) || n(Le)) ? (u(), K(n(zt), {
559
562
  ref_key: "details",
560
- ref: Tt,
563
+ ref: Bt,
561
564
  key: `user_options_${De.value}`,
562
565
  backgroundColor: e.value.style.backgroundColor,
563
566
  color: e.value.style.color,
564
- isImaging: n(lt),
565
- isPrinting: n(tt),
566
- uid: D.value,
567
+ isImaging: n(at),
568
+ isPrinting: n(lt),
569
+ uid: B.value,
567
570
  hasTooltip: e.value.userOptions.buttons.tooltip && e.value.style.tooltip.show,
568
571
  hasPdf: e.value.userOptions.buttons.pdf,
569
572
  hasImg: e.value.userOptions.buttons.img,
@@ -573,89 +576,89 @@ const xl = ["id"], bl = ["xmlns", "viewBox"], kl = ["width", "height"], wl = { k
573
576
  isTooltip: R.value.showTooltip,
574
577
  isFullscreen: ve.value,
575
578
  titles: { ...e.value.userOptions.buttonTitles },
576
- chartElement: Q.value,
579
+ chartElement: ee.value,
577
580
  position: e.value.userOptions.position,
578
581
  hasAnnotator: e.value.userOptions.buttons.annotator,
579
582
  isAnnotation: ke.value,
580
583
  callbacks: e.value.userOptions.callbacks,
581
584
  printScale: e.value.userOptions.print.scale,
582
- onToggleFullscreen: dt,
583
- onGeneratePdf: n(at),
584
- onGenerateCsv: ct,
585
- onGenerateImage: n(ot),
586
- onToggleTable: ht,
587
- onToggleTooltip: ft,
585
+ onToggleFullscreen: ht,
586
+ onGeneratePdf: n(ot),
587
+ onGenerateCsv: dt,
588
+ onGenerateImage: n(st),
589
+ onToggleTable: ft,
590
+ onToggleTooltip: pt,
588
591
  onToggleAnnotator: Pe,
589
- style: ae({
590
- visibility: n(Ke) ? n(Le) ? "visible" : "hidden" : "visible"
592
+ style: oe({
593
+ visibility: n(Qe) ? n(Le) ? "visible" : "hidden" : "visible"
591
594
  })
592
- }, jt({ _: 2 }, [
595
+ }, Vt({ _: 2 }, [
593
596
  l.$slots.menuIcon ? {
594
597
  name: "menuIcon",
595
- fn: O(({ isOpen: t, color: a }) => [
596
- N(l.$slots, "menuIcon", he(fe({ isOpen: t, color: a })), void 0, !0)
598
+ fn: N(({ isOpen: t, color: a }) => [
599
+ E(l.$slots, "menuIcon", he(fe({ isOpen: t, color: a })), void 0, !0)
597
600
  ]),
598
601
  key: "0"
599
602
  } : void 0,
600
603
  l.$slots.optionTooltip ? {
601
604
  name: "optionTooltip",
602
- fn: O(() => [
603
- N(l.$slots, "optionTooltip", {}, void 0, !0)
605
+ fn: N(() => [
606
+ E(l.$slots, "optionTooltip", {}, void 0, !0)
604
607
  ]),
605
608
  key: "1"
606
609
  } : void 0,
607
610
  l.$slots.optionPdf ? {
608
611
  name: "optionPdf",
609
- fn: O(() => [
610
- N(l.$slots, "optionPdf", {}, void 0, !0)
612
+ fn: N(() => [
613
+ E(l.$slots, "optionPdf", {}, void 0, !0)
611
614
  ]),
612
615
  key: "2"
613
616
  } : void 0,
614
617
  l.$slots.optionCsv ? {
615
618
  name: "optionCsv",
616
- fn: O(() => [
617
- N(l.$slots, "optionCsv", {}, void 0, !0)
619
+ fn: N(() => [
620
+ E(l.$slots, "optionCsv", {}, void 0, !0)
618
621
  ]),
619
622
  key: "3"
620
623
  } : void 0,
621
624
  l.$slots.optionImg ? {
622
625
  name: "optionImg",
623
- fn: O(() => [
624
- N(l.$slots, "optionImg", {}, void 0, !0)
626
+ fn: N(() => [
627
+ E(l.$slots, "optionImg", {}, void 0, !0)
625
628
  ]),
626
629
  key: "4"
627
630
  } : void 0,
628
631
  l.$slots.optionTable ? {
629
632
  name: "optionTable",
630
- fn: O(() => [
631
- N(l.$slots, "optionTable", {}, void 0, !0)
633
+ fn: N(() => [
634
+ E(l.$slots, "optionTable", {}, void 0, !0)
632
635
  ]),
633
636
  key: "5"
634
637
  } : void 0,
635
638
  l.$slots.optionFullscreen ? {
636
639
  name: "optionFullscreen",
637
- fn: O(({ toggleFullscreen: t, isFullscreen: a }) => [
638
- N(l.$slots, "optionFullscreen", he(fe({ toggleFullscreen: t, isFullscreen: a })), void 0, !0)
640
+ fn: N(({ toggleFullscreen: t, isFullscreen: a }) => [
641
+ E(l.$slots, "optionFullscreen", he(fe({ toggleFullscreen: t, isFullscreen: a })), void 0, !0)
639
642
  ]),
640
643
  key: "6"
641
644
  } : void 0,
642
645
  l.$slots.optionAnnotator ? {
643
646
  name: "optionAnnotator",
644
- fn: O(({ toggleAnnotator: t, isAnnotator: a }) => [
645
- N(l.$slots, "optionAnnotator", he(fe({ toggleAnnotator: t, isAnnotator: a })), void 0, !0)
647
+ fn: N(({ toggleAnnotator: t, isAnnotator: a }) => [
648
+ E(l.$slots, "optionAnnotator", he(fe({ toggleAnnotator: t, isAnnotator: a })), void 0, !0)
646
649
  ]),
647
650
  key: "7"
648
651
  } : void 0
649
652
  ]), 1032, ["backgroundColor", "color", "isImaging", "isPrinting", "uid", "hasTooltip", "hasPdf", "hasImg", "hasXls", "hasTable", "hasFullscreen", "isTooltip", "isFullscreen", "titles", "chartElement", "position", "hasAnnotator", "isAnnotation", "callbacks", "printScale", "onGeneratePdf", "onGenerateImage", "style"])) : g("", !0),
650
653
  (u(), i("svg", {
651
654
  ref_key: "svgRef",
652
- ref: Qe,
653
- xmlns: n(ll),
654
- class: gt({ "vue-data-ui-fullscreen--on": ve.value, "vue-data-ui-fulscreen--off": !ve.value, animated: e.value.useCssAnimation }),
655
+ ref: et,
656
+ xmlns: n(ol),
657
+ class: mt({ "vue-data-ui-fullscreen--on": ve.value, "vue-data-ui-fulscreen--off": !ve.value, animated: e.value.useCssAnimation }),
655
658
  viewBox: `0 0 ${z.value.width <= 0 ? 10 : z.value.width} ${z.value.height <= 0 ? 10 : z.value.height}`,
656
- style: ae(`max-width:100%;overflow:visible;background:transparent;color:${e.value.style.color}`)
659
+ style: oe(`max-width:100%;overflow:visible;background:transparent;color:${e.value.style.color}`)
657
660
  }, [
658
- Fe(n(At)),
661
+ Fe(n(Ct)),
659
662
  l.$slots["chart-background"] ? (u(), i("foreignObject", {
660
663
  key: 0,
661
664
  x: 0,
@@ -666,10 +669,10 @@ const xl = ["id"], bl = ["xmlns", "viewBox"], kl = ["width", "height"], wl = { k
666
669
  pointerEvents: "none"
667
670
  }
668
671
  }, [
669
- N(l.$slots, "chart-background", {}, void 0, !0)
670
- ], 8, kl)) : g("", !0),
671
- e.value.style.layout.axis.show ? (u(), i("g", wl, [
672
- k("line", {
672
+ E(l.$slots, "chart-background", {}, void 0, !0)
673
+ ], 8, $l)) : g("", !0),
674
+ e.value.style.layout.axis.show ? (u(), i("g", Ml, [
675
+ b("line", {
673
676
  x1: A.value.x,
674
677
  x2: A.value.x,
675
678
  y1: c.value.top,
@@ -677,8 +680,8 @@ const xl = ["id"], bl = ["xmlns", "viewBox"], kl = ["width", "height"], wl = { k
677
680
  stroke: e.value.style.layout.axis.stroke,
678
681
  "stroke-width": e.value.style.layout.axis.strokeWidth,
679
682
  "stroke-linecap": "round"
680
- }, null, 8, _l),
681
- k("line", {
683
+ }, null, 8, Al),
684
+ b("line", {
682
685
  x1: c.value.left,
683
686
  x2: c.value.right,
684
687
  y1: A.value.y,
@@ -686,116 +689,116 @@ const xl = ["id"], bl = ["xmlns", "viewBox"], kl = ["width", "height"], wl = { k
686
689
  stroke: e.value.style.layout.axis.stroke,
687
690
  "stroke-width": e.value.style.layout.axis.strokeWidth,
688
691
  "stroke-linecap": "round"
689
- }, null, 8, Ml)
692
+ }, null, 8, Cl)
690
693
  ])) : g("", !0),
691
- e.value.style.layout.plots.giftWrap.show ? (u(), i("g", $l, [
692
- (u(!0), i(q, null, K(j.value, (t, a) => (u(), i("g", null, [
694
+ e.value.style.layout.plots.giftWrap.show ? (u(), i("g", Sl, [
695
+ (u(!0), i(q, null, Q(j.value, (t, a) => (u(), i("g", null, [
693
696
  t.plots.length > 2 ? (u(), i("polygon", {
694
697
  key: 0,
695
- points: n(al)({ series: t.plots }),
698
+ points: n(sl)({ series: t.plots }),
696
699
  fill: n(Xe)(t.color, e.value.style.layout.plots.giftWrap.fillOpacity * 100),
697
700
  "stroke-width": e.value.style.layout.plots.giftWrap.strokeWidth,
698
701
  "stroke-dasharray": e.value.style.layout.plots.giftWrap.strokeDasharray,
699
702
  stroke: t.color,
700
703
  "stroke-linejoin": "round",
701
704
  "stroke-linecap": "round"
702
- }, null, 8, Al)) : g("", !0)
705
+ }, null, 8, Ll)) : g("", !0)
703
706
  ]))), 256))
704
707
  ])) : g("", !0),
705
- (u(!0), i(q, null, K(j.value, (t, a) => (u(), i("g", null, [
706
- !t.shape || t.shape === "circle" ? (u(), i("g", Cl, [
707
- (u(!0), i(q, null, K(t.plots, (o, r) => (u(), i("circle", {
708
+ (u(!0), i(q, null, Q(j.value, (t, a) => (u(), i("g", null, [
709
+ !t.shape || t.shape === "circle" ? (u(), i("g", zl, [
710
+ (u(!0), i(q, null, Q(t.plots, (o, r) => (u(), i("circle", {
708
711
  cx: o.x,
709
712
  cy: o.y,
710
713
  r: G.value && G.value === o.id ? o.weight * 2 : o.weight,
711
714
  fill: n(Xe)(t.color, e.value.style.layout.plots.opacity * 100),
712
715
  stroke: e.value.style.layout.plots.stroke,
713
716
  "stroke-width": e.value.style.layout.plots.strokeWidth,
714
- style: ae(`opacity:${G.value && G.value === o.id ? 1 : e.value.style.layout.plots.significance.useDistanceOpacity ? 1 - Math.abs(o.deviation) / ut.value : e.value.style.layout.plots.significance.show && Math.abs(o.deviation) > e.value.style.layout.plots.significance.deviationThreshold ? e.value.style.layout.plots.significance.opacity : 1}`),
715
- onMouseover: (h) => it(o, a),
716
- onMouseleave: (h) => rt(o, a),
717
- onClick: (h) => vt(o, a)
718
- }, null, 44, Sl))), 256))
719
- ])) : (u(), i("g", Ll, [
720
- (u(!0), i(q, null, K(t.plots, (o, r) => (u(), oe(kt, {
717
+ style: oe(`opacity:${G.value && G.value === o.id ? 1 : e.value.style.layout.plots.significance.useDistanceOpacity ? 1 - Math.abs(o.deviation) / nt.value : e.value.style.layout.plots.significance.show && Math.abs(o.deviation) > e.value.style.layout.plots.significance.deviationThreshold ? e.value.style.layout.plots.significance.opacity : 1}`),
718
+ onMouseover: (h) => rt(o, a),
719
+ onMouseleave: (h) => vt(o, a),
720
+ onClick: (h) => yt(o, a)
721
+ }, null, 44, Tl))), 256))
722
+ ])) : (u(), i("g", Bl, [
723
+ (u(!0), i(q, null, Q(t.plots, (o, r) => (u(), K(wt, {
721
724
  plot: { x: o.x, y: o.y },
722
725
  radius: G.value && G.value === o.id ? o.weight * 2 : o.weight,
723
726
  shape: t.shape,
724
727
  color: n(Xe)(t.color, e.value.style.layout.plots.opacity * 100),
725
728
  stroke: e.value.style.layout.plots.stroke,
726
729
  strokeWidth: e.value.style.layout.plots.strokeWidth,
727
- style: ae(`opacity:${G.value && G.value === o.id ? 1 : e.value.style.layout.plots.significance.useDistanceOpacity ? 1 - Math.abs(o.deviation) / ut.value : e.value.style.layout.plots.significance.show && Math.abs(o.deviation) > e.value.style.layout.plots.significance.deviationThreshold ? e.value.style.layout.plots.significance.opacity : 1}`),
728
- onMouseover: (h) => it(o, a),
729
- onMouseleave: (h) => rt(o, a),
730
- onClick: (h) => vt(o, a)
730
+ style: oe(`opacity:${G.value && G.value === o.id ? 1 : e.value.style.layout.plots.significance.useDistanceOpacity ? 1 - Math.abs(o.deviation) / nt.value : e.value.style.layout.plots.significance.show && Math.abs(o.deviation) > e.value.style.layout.plots.significance.deviationThreshold ? e.value.style.layout.plots.significance.opacity : 1}`),
731
+ onMouseover: (h) => rt(o, a),
732
+ onMouseleave: (h) => vt(o, a),
733
+ onClick: (h) => yt(o, a)
731
734
  }, null, 8, ["plot", "radius", "shape", "color", "stroke", "strokeWidth", "style", "onMouseover", "onMouseleave", "onClick"]))), 256))
732
735
  ]))
733
736
  ]))), 256)),
734
- e.value.style.layout.marginalBars.show ? (u(), i("g", zl, [
735
- k("defs", null, [
736
- k("linearGradient", {
737
- id: `marginal_x_${D.value}`,
737
+ e.value.style.layout.marginalBars.show ? (u(), i("g", Pl, [
738
+ b("defs", null, [
739
+ b("linearGradient", {
740
+ id: `marginal_x_${B.value}`,
738
741
  x1: "0%",
739
742
  y1: "0%",
740
743
  x2: "0%",
741
744
  y2: "100%"
742
745
  }, [
743
- k("stop", {
746
+ b("stop", {
744
747
  offset: "0%",
745
748
  "stop-color": e.value.style.layout.marginalBars.fill
746
- }, null, 8, Bl),
747
- k("stop", {
749
+ }, null, 8, Nl),
750
+ b("stop", {
748
751
  offset: "100%",
749
752
  "stop-color": e.value.style.backgroundColor
750
- }, null, 8, Pl)
751
- ], 8, Tl),
752
- k("linearGradient", {
753
- id: `marginal_y_${D.value}`,
753
+ }, null, 8, El)
754
+ ], 8, Ol),
755
+ b("linearGradient", {
756
+ id: `marginal_y_${B.value}`,
754
757
  x1: "0%",
755
758
  x2: "100%",
756
759
  y1: "0%",
757
760
  y2: "0%"
758
761
  }, [
759
- k("stop", {
762
+ b("stop", {
760
763
  offset: "0%",
761
764
  "stop-color": e.value.style.backgroundColor
762
- }, null, 8, Nl),
763
- k("stop", {
765
+ }, null, 8, Il),
766
+ b("stop", {
764
767
  offset: "100%",
765
768
  "stop-color": e.value.style.layout.marginalBars.fill
766
- }, null, 8, El)
767
- ], 8, Ol)
769
+ }, null, 8, Wl)
770
+ ], 8, Fl)
768
771
  ]),
769
- (u(!0), i(q, null, K(V.value.x, (t, a) => (u(), i("g", null, [
772
+ (u(!0), i(q, null, Q(V.value.x, (t, a) => (u(), i("g", null, [
770
773
  t && V.value.avgX[a] ? (u(), i("rect", {
771
774
  key: 0,
772
- x: V.value.avgX[a] - c.value.width / te.value / 2,
775
+ x: V.value.avgX[a] - c.value.width / le.value / 2,
773
776
  y: c.value.top - e.value.style.layout.marginalBars.offset - t / V.value.maxX * e.value.style.layout.marginalBars.size,
774
- width: c.value.width / te.value <= 0 ? 1e-4 : c.value.width / te.value,
777
+ width: c.value.width / le.value <= 0 ? 1e-4 : c.value.width / le.value,
775
778
  height: t / V.value.maxX * e.value.style.layout.marginalBars.size <= 0 ? 1e-4 : t / V.value.maxX * e.value.style.layout.marginalBars.size,
776
- fill: e.value.style.layout.marginalBars.useGradient ? `url(#marginal_x_${D.value})` : e.value.style.layout.marginalBars.fill,
777
- style: ae(`opacity:${e.value.style.layout.marginalBars.opacity}`),
779
+ fill: e.value.style.layout.marginalBars.useGradient ? `url(#marginal_x_${B.value})` : e.value.style.layout.marginalBars.fill,
780
+ style: oe(`opacity:${e.value.style.layout.marginalBars.opacity}`),
778
781
  stroke: e.value.style.backgroundColor,
779
782
  "stroke-width": e.value.style.layout.marginalBars.strokeWidth,
780
783
  rx: e.value.style.layout.marginalBars.borderRadius
781
- }, null, 12, Fl)) : g("", !0)
784
+ }, null, 12, Xl)) : g("", !0)
782
785
  ]))), 256)),
783
- (u(!0), i(q, null, K(V.value.y, (t, a) => (u(), i("g", null, [
786
+ (u(!0), i(q, null, Q(V.value.y, (t, a) => (u(), i("g", null, [
784
787
  t && V.value.avgY[a] ? (u(), i("rect", {
785
788
  key: 0,
786
789
  x: c.value.right + e.value.style.layout.marginalBars.offset,
787
- y: V.value.avgY[a] - c.value.height / te.value / 2,
788
- height: c.value.height / te.value <= 0 ? 1e-4 : c.value.height / te.value,
790
+ y: V.value.avgY[a] - c.value.height / le.value / 2,
791
+ height: c.value.height / le.value <= 0 ? 1e-4 : c.value.height / le.value,
789
792
  width: t / V.value.maxY * e.value.style.layout.marginalBars.size <= 0 ? 1e-4 : t / V.value.maxY * e.value.style.layout.marginalBars.size,
790
- fill: e.value.style.layout.marginalBars.useGradient ? `url(#marginal_y_${D.value})` : e.value.style.layout.marginalBars.fill,
791
- style: ae(`opacity:${e.value.style.layout.marginalBars.opacity}`),
793
+ fill: e.value.style.layout.marginalBars.useGradient ? `url(#marginal_y_${B.value})` : e.value.style.layout.marginalBars.fill,
794
+ style: oe(`opacity:${e.value.style.layout.marginalBars.opacity}`),
792
795
  stroke: e.value.style.backgroundColor,
793
796
  "stroke-width": e.value.style.layout.marginalBars.strokeWidth,
794
797
  rx: e.value.style.layout.marginalBars.borderRadius
795
- }, null, 12, Il)) : g("", !0)
798
+ }, null, 12, Yl)) : g("", !0)
796
799
  ]))), 256)),
797
- e.value.style.layout.marginalBars.showLines ? (u(), i("g", Wl, [
798
- (u(!0), i(q, null, K(Wt.value, (t) => (u(), i(q, null, [
800
+ e.value.style.layout.marginalBars.showLines ? (u(), i("g", Dl, [
801
+ (u(!0), i(q, null, Q(Xt.value, (t) => (u(), i(q, null, [
799
802
  L.value.includes(t.id) ? g("", !0) : (u(), i("path", {
800
803
  key: 0,
801
804
  d: `M ${t.dX}`,
@@ -804,7 +807,7 @@ const xl = ["id"], bl = ["xmlns", "viewBox"], kl = ["width", "height"], wl = { k
804
807
  "stroke-linecap": "round",
805
808
  "stroke-linejoin": "round",
806
809
  fill: "none"
807
- }, null, 8, Xl)),
810
+ }, null, 8, Rl)),
808
811
  L.value.includes(t.id) ? g("", !0) : (u(), i("path", {
809
812
  key: 1,
810
813
  d: `M ${t.dX}`,
@@ -813,7 +816,7 @@ const xl = ["id"], bl = ["xmlns", "viewBox"], kl = ["width", "height"], wl = { k
813
816
  "stroke-linecap": "round",
814
817
  "stroke-linejoin": "round",
815
818
  fill: "none"
816
- }, null, 8, Yl)),
819
+ }, null, 8, jl)),
817
820
  L.value.includes(t.id) ? g("", !0) : (u(), i("path", {
818
821
  key: 2,
819
822
  d: `M ${t.dY}`,
@@ -822,7 +825,7 @@ const xl = ["id"], bl = ["xmlns", "viewBox"], kl = ["width", "height"], wl = { k
822
825
  "stroke-linecap": "round",
823
826
  "stroke-linejoin": "round",
824
827
  fill: "none"
825
- }, null, 8, Dl)),
828
+ }, null, 8, Vl)),
826
829
  L.value.includes(t.id) ? g("", !0) : (u(), i("path", {
827
830
  key: 3,
828
831
  d: `M ${t.dY}`,
@@ -831,12 +834,12 @@ const xl = ["id"], bl = ["xmlns", "viewBox"], kl = ["width", "height"], wl = { k
831
834
  "stroke-linecap": "round",
832
835
  "stroke-linejoin": "round",
833
836
  fill: "none"
834
- }, null, 8, Rl))
837
+ }, null, 8, Ul))
835
838
  ], 64))), 256))
836
839
  ])) : g("", !0)
837
840
  ])) : g("", !0),
838
- f.value && e.value.style.layout.plots.selectors.show ? (u(), i("g", jl, [
839
- k("line", {
841
+ f.value && e.value.style.layout.plots.selectors.show ? (u(), i("g", Gl, [
842
+ b("line", {
840
843
  x1: A.value.x,
841
844
  x2: f.value.x,
842
845
  y1: f.value.y,
@@ -846,8 +849,8 @@ const xl = ["id"], bl = ["xmlns", "viewBox"], kl = ["width", "height"], wl = { k
846
849
  "stroke-dasharray": e.value.style.layout.plots.selectors.strokeDasharray,
847
850
  "stroke-linecap": "round",
848
851
  class: "line-pointer"
849
- }, null, 8, Vl),
850
- k("line", {
852
+ }, null, 8, ql),
853
+ b("line", {
851
854
  x1: f.value.x,
852
855
  x2: f.value.x,
853
856
  y1: A.value.y,
@@ -857,44 +860,44 @@ const xl = ["id"], bl = ["xmlns", "viewBox"], kl = ["width", "height"], wl = { k
857
860
  "stroke-dasharray": e.value.style.layout.plots.selectors.strokeDasharray,
858
861
  "stroke-linecap": "round",
859
862
  class: "line-pointer"
860
- }, null, 8, Ul),
861
- k("text", {
863
+ }, null, 8, Hl),
864
+ b("text", {
862
865
  x: A.value.x + (f.value.x > A.value.x ? -6 : 6),
863
866
  y: f.value.y + e.value.style.layout.plots.selectors.labels.fontSize / 3,
864
867
  "font-size": e.value.style.layout.plots.selectors.labels.fontSize,
865
868
  fill: e.value.style.layout.plots.selectors.labels.color,
866
869
  "font-weight": e.value.style.layout.plots.selectors.labels.bold ? "bold" : "normal",
867
870
  "text-anchor": f.value.x > A.value.x ? "end" : "start"
868
- }, X(n(se)(
871
+ }, Y(n(se)(
869
872
  e.value.style.layout.plots.selectors.labels.y.formatter,
870
- n(Y)(f.value.v.y),
873
+ n(D)(f.value.v.y),
871
874
  n(H)({
872
875
  p: e.value.style.layout.plots.selectors.labels.prefix,
873
- v: n(Y)(f.value.v.y),
876
+ v: n(D)(f.value.v.y),
874
877
  s: e.value.style.layout.plots.selectors.labels.suffix,
875
878
  r: e.value.style.layout.plots.selectors.labels.rounding
876
879
  }),
877
880
  { datapoint: f.value }
878
- )), 9, Gl),
879
- k("text", {
881
+ )), 9, Zl),
882
+ b("text", {
880
883
  x: f.value.x,
881
884
  y: A.value.y + (f.value.y > A.value.y ? -6 : e.value.style.layout.plots.selectors.labels.fontSize + 6),
882
885
  "font-size": e.value.style.layout.plots.selectors.labels.fontSize,
883
886
  fill: e.value.style.layout.plots.selectors.labels.color,
884
887
  "font-weight": e.value.style.layout.plots.selectors.labels.bold ? "bold" : "normal",
885
888
  "text-anchor": "middle"
886
- }, X(n(se)(
889
+ }, Y(n(se)(
887
890
  e.value.style.layout.plots.selectors.labels.y.formatter,
888
- n(Y)(f.value.v.x),
891
+ n(D)(f.value.v.x),
889
892
  n(H)({
890
893
  p: e.value.style.layout.plots.selectors.labels.prefix,
891
- v: n(Y)(f.value.v.x),
894
+ v: n(D)(f.value.v.x),
892
895
  s: e.value.style.layout.plots.selectors.labels.suffix,
893
896
  r: e.value.style.layout.plots.selectors.labels.rounding
894
897
  }),
895
898
  { datapoint: f.value }
896
- )), 9, ql),
897
- k("circle", {
899
+ )), 9, Jl),
900
+ b("circle", {
898
901
  cx: A.value.x,
899
902
  cy: f.value.y,
900
903
  r: e.value.style.layout.plots.selectors.markers.radius,
@@ -902,8 +905,8 @@ const xl = ["id"], bl = ["xmlns", "viewBox"], kl = ["width", "height"], wl = { k
902
905
  stroke: e.value.style.layout.plots.selectors.markers.stroke,
903
906
  "stroke-width": e.value.style.layout.plots.selectors.markers.strokeWidth,
904
907
  class: "line-pointer"
905
- }, null, 8, Hl),
906
- k("circle", {
908
+ }, null, 8, Kl),
909
+ b("circle", {
907
910
  cx: f.value.x,
908
911
  cy: A.value.y,
909
912
  r: e.value.style.layout.plots.selectors.markers.radius,
@@ -911,7 +914,7 @@ const xl = ["id"], bl = ["xmlns", "viewBox"], kl = ["width", "height"], wl = { k
911
914
  stroke: e.value.style.layout.plots.selectors.markers.stroke,
912
915
  "stroke-width": e.value.style.layout.plots.selectors.markers.strokeWidth,
913
916
  class: "line-pointer"
914
- }, null, 8, Zl),
917
+ }, null, 8, Ql),
915
918
  e.value.style.layout.plots.selectors.labels.showName ? (u(), i("text", {
916
919
  key: 0,
917
920
  x: f.value.x,
@@ -920,116 +923,116 @@ const xl = ["id"], bl = ["xmlns", "viewBox"], kl = ["width", "height"], wl = { k
920
923
  fill: e.value.style.layout.plots.selectors.labels.color,
921
924
  "font-weight": e.value.style.layout.plots.selectors.labels.bold ? "bold" : "normal",
922
925
  "text-anchor": f.value.x < c.value.left + 100 ? "start" : f.value.x > c.value.right - 100 ? "end" : f.value.x > A.value.x ? "start" : "end"
923
- }, X(f.value.v.name), 9, Jl)) : g("", !0)
926
+ }, Y(f.value.v.name), 9, ea)) : g("", !0)
924
927
  ])) : g("", !0),
925
928
  e.value.style.layout.dataLabels.xAxis.show ? (u(), i("g", {
926
929
  key: 5,
927
930
  ref_key: "xAxisLabelLeft",
928
- ref: $e
931
+ ref: Me
929
932
  }, [
930
- k("text", {
931
- id: `vue-ui-scatter-xAxis-label-${D.value}`,
933
+ b("text", {
934
+ id: `vue-ui-scatter-xAxis-label-${B.value}`,
932
935
  transform: `translate(${e.value.style.layout.dataLabels.xAxis.fontSize}, ${c.value.top + c.value.height / 2}), rotate(-90)`,
933
936
  "text-anchor": "middle",
934
937
  "font-size": e.value.style.layout.dataLabels.xAxis.fontSize,
935
938
  "font-weight": e.value.style.layout.dataLabels.xAxis.bold ? "bold" : "normal",
936
939
  fill: e.value.style.layout.dataLabels.xAxis.color
937
- }, X(e.value.style.layout.dataLabels.xAxis.name), 9, Kl),
938
- k("text", {
940
+ }, Y(e.value.style.layout.dataLabels.xAxis.name), 9, ta),
941
+ b("text", {
939
942
  "text-anchor": "middle",
940
943
  "font-size": e.value.style.layout.dataLabels.xAxis.fontSize,
941
944
  fill: e.value.style.layout.dataLabels.xAxis.color,
942
945
  transform: `translate(${e.value.style.layout.dataLabels.xAxis.name ? e.value.style.layout.dataLabels.xAxis.fontSize * 3 : 0}, ${A.value.y + e.value.style.layout.dataLabels.xAxis.fontSize / 3}), rotate(-90)`
943
- }, X(n(se)(
946
+ }, Y(n(se)(
944
947
  e.value.style.layout.plots.selectors.labels.x.formatter,
945
- n(Y)(M.value.xMin),
948
+ n(D)($.value.xMin),
946
949
  n(H)({
947
950
  p: e.value.style.layout.plots.selectors.labels.prefix,
948
- v: n(Y)(M.value.xMin),
951
+ v: n(D)($.value.xMin),
949
952
  s: e.value.style.layout.plots.selectors.labels.suffix,
950
953
  r: e.value.style.layout.dataLabels.xAxis.rounding
951
954
  })
952
- )), 9, Ql)
955
+ )), 9, la)
953
956
  ], 512)) : g("", !0),
954
957
  e.value.style.layout.dataLabels.xAxis.show ? (u(), i("text", {
955
958
  key: 6,
956
959
  ref_key: "xAxisLabelRight",
957
- ref: Bt,
960
+ ref: Pt,
958
961
  "text-anchor": "middle",
959
962
  transform: `translate(${c.value.right + e.value.style.layout.padding.right + 6}, ${A.value.y + e.value.style.layout.dataLabels.xAxis.fontSize / 3}), rotate(-90)`,
960
963
  "font-size": e.value.style.layout.dataLabels.xAxis.fontSize,
961
964
  fill: e.value.style.layout.dataLabels.xAxis.color
962
- }, X(n(se)(
965
+ }, Y(n(se)(
963
966
  e.value.style.layout.plots.selectors.labels.x.formatter,
964
- n(Y)(M.value.xMax),
967
+ n(D)($.value.xMax),
965
968
  n(H)({
966
969
  p: e.value.style.layout.plots.selectors.labels.prefix,
967
- v: n(Y)(M.value.xMax),
970
+ v: n(D)($.value.xMax),
968
971
  s: e.value.style.layout.plots.selectors.labels.suffix,
969
972
  r: e.value.style.layout.dataLabels.xAxis.rounding
970
973
  })
971
- )), 9, ea)) : g("", !0),
974
+ )), 9, aa)) : g("", !0),
972
975
  e.value.style.layout.dataLabels.yAxis.show ? (u(), i("text", {
973
976
  key: 7,
974
977
  ref_key: "yAxisLabelTop",
975
- ref: Pt,
978
+ ref: Ot,
976
979
  x: A.value.x,
977
980
  y: c.value.top - e.value.style.layout.dataLabels.yAxis.fontSize,
978
981
  "text-anchor": "middle",
979
982
  "font-size": e.value.style.layout.dataLabels.yAxis.fontSize,
980
983
  fill: e.value.style.layout.dataLabels.yAxis.color
981
- }, X(n(se)(
984
+ }, Y(n(se)(
982
985
  e.value.style.layout.plots.selectors.labels.y.formatter,
983
- n(Y)(M.value.yMax),
986
+ n(D)($.value.yMax),
984
987
  n(H)({
985
988
  p: e.value.style.layout.plots.selectors.labels.prefix,
986
- v: n(Y)(M.value.yMax),
989
+ v: n(D)($.value.yMax),
987
990
  s: e.value.style.layout.plots.selectors.labels.suffix,
988
991
  r: e.value.style.layout.dataLabels.yAxis.rounding
989
992
  })
990
- )), 9, ta)) : g("", !0),
993
+ )), 9, oa)) : g("", !0),
991
994
  e.value.style.layout.dataLabels.yAxis.show ? (u(), i("g", {
992
995
  key: 8,
993
996
  ref_key: "yAxisLabelBottom",
994
997
  ref: Ae
995
998
  }, [
996
- k("text", {
999
+ b("text", {
997
1000
  x: A.value.x,
998
1001
  y: z.value.height - e.value.style.layout.dataLabels.yAxis.fontSize * 2,
999
1002
  "text-anchor": "middle",
1000
1003
  "font-size": e.value.style.layout.dataLabels.yAxis.fontSize,
1001
1004
  fill: e.value.style.layout.dataLabels.yAxis.color
1002
- }, X(n(se)(
1005
+ }, Y(n(se)(
1003
1006
  e.value.style.layout.plots.selectors.labels.y.formatter,
1004
- n(Y)(M.value.yMin),
1007
+ n(D)($.value.yMin),
1005
1008
  n(H)({
1006
1009
  p: e.value.style.layout.plots.selectors.labels.prefix,
1007
- v: n(Y)(M.value.yMin),
1010
+ v: n(D)($.value.yMin),
1008
1011
  s: e.value.style.layout.plots.selectors.labels.suffix,
1009
1012
  r: e.value.style.layout.dataLabels.yAxis.rounding
1010
1013
  })
1011
- )), 9, la),
1012
- k("text", {
1014
+ )), 9, sa),
1015
+ b("text", {
1013
1016
  "text-anchor": "middle",
1014
1017
  "font-size": e.value.style.layout.dataLabels.yAxis.fontSize,
1015
1018
  "font-weight": e.value.style.layout.dataLabels.yAxis.bold ? "bold" : "normal",
1016
1019
  fill: e.value.style.layout.dataLabels.yAxis.color,
1017
1020
  x: c.value.left + c.value.width / 2,
1018
1021
  y: z.value.height
1019
- }, X(e.value.style.layout.dataLabels.yAxis.name), 9, aa)
1022
+ }, Y(e.value.style.layout.dataLabels.yAxis.name), 9, ua)
1020
1023
  ], 512)) : g("", !0),
1021
- k("clipPath", {
1022
- id: `clip_path_${D.value}`
1024
+ b("clipPath", {
1025
+ id: `clip_path_${B.value}`
1023
1026
  }, [
1024
- k("rect", {
1027
+ b("rect", {
1025
1028
  x: c.value.left,
1026
1029
  y: c.value.top,
1027
1030
  width: c.value.width <= 0 ? 1e-4 : c.value.width,
1028
1031
  height: c.value.height <= 0 ? 1e-4 : c.value.height
1029
- }, null, 8, sa)
1030
- ], 8, oa),
1031
- e.value.style.layout.correlation.show ? (u(), i("g", ua, [
1032
- (u(!0), i(q, null, K(j.value, (t, a) => (u(), i("line", {
1032
+ }, null, 8, ia)
1033
+ ], 8, na),
1034
+ e.value.style.layout.correlation.show ? (u(), i("g", ra, [
1035
+ (u(!0), i(q, null, Q(j.value, (t, a) => (u(), i("line", {
1033
1036
  x1: t.correlation.x1,
1034
1037
  x2: t.correlation.x2,
1035
1038
  y1: t.correlation.y1,
@@ -1037,9 +1040,9 @@ const xl = ["id"], bl = ["xmlns", "viewBox"], kl = ["width", "height"], wl = { k
1037
1040
  "stroke-dasharray": e.value.style.layout.correlation.strokeDasharray,
1038
1041
  stroke: t.color,
1039
1042
  "stroke-width": e.value.style.layout.correlation.strokeWidth,
1040
- "clip-path": `url(#clip_path_${D.value})`
1041
- }, null, 8, na))), 256)),
1042
- (u(!0), i(q, null, K(j.value, (t, a) => (u(), i("g", null, [
1043
+ "clip-path": `url(#clip_path_${B.value})`
1044
+ }, null, 8, va))), 256)),
1045
+ (u(!0), i(q, null, Q(j.value, (t, a) => (u(), i("g", null, [
1043
1046
  e.value.style.layout.correlation.label.show ? (u(), i("text", {
1044
1047
  key: 0,
1045
1048
  x: t.correlation.x2,
@@ -1048,48 +1051,56 @@ const xl = ["id"], bl = ["xmlns", "viewBox"], kl = ["width", "height"], wl = { k
1048
1051
  "text-anchor": "end",
1049
1052
  "font-size": e.value.style.layout.correlation.label.fontSize,
1050
1053
  "font-weight": e.value.style.layout.correlation.label.bold ? "bold" : "normal"
1051
- }, X(n(H)({
1052
- v: n(Y)(t.correlation.coefficient),
1054
+ }, Y(n(H)({
1055
+ v: n(D)(t.correlation.coefficient),
1053
1056
  r: e.value.style.layout.correlation.label.roundingValue
1054
- })), 9, ia)) : g("", !0)
1057
+ })), 9, ya)) : g("", !0)
1055
1058
  ]))), 256))
1056
1059
  ])) : g("", !0),
1057
- N(l.$slots, "svg", { svg: z.value }, void 0, !0)
1058
- ], 14, bl)),
1059
- l.$slots.watermark ? (u(), i("div", ra, [
1060
- N(l.$slots, "watermark", he(fe({ isPrinting: n(tt) || n(lt) })), void 0, !0)
1060
+ E(l.$slots, "svg", { svg: z.value }, void 0, !0)
1061
+ ], 14, _l)),
1062
+ l.$slots.watermark ? (u(), i("div", ca, [
1063
+ E(l.$slots, "watermark", he(fe({ isPrinting: n(lt) || n(at) })), void 0, !0)
1061
1064
  ])) : g("", !0),
1062
- k("div", {
1063
- ref_key: "chartLegend",
1064
- ref: je
1065
+ b("div", {
1066
+ id: `legend-bottom-${B.value}`
1067
+ }, null, 8, da),
1068
+ Ze.value ? (u(), K(Ut, {
1069
+ key: 5,
1070
+ to: e.value.style.legend.position === "top" ? `#legend-top-${B.value}` : `#legend-bottom-${B.value}`
1065
1071
  }, [
1066
- e.value.style.legend.show ? (u(), oe(fl, {
1067
- key: `legend_${He.value}`,
1068
- legendSet: ue.value,
1069
- config: Ft.value,
1070
- onClickMarker: s[0] || (s[0] = ({ legend: t }) => yt(t.id))
1071
- }, {
1072
- item: O(({ legend: t }) => [
1073
- k("div", {
1074
- onClick: (a) => t.segregate(),
1075
- style: ae(`opacity:${L.value.includes(t.id) ? 0.5 : 1}`)
1076
- }, X(t.name), 13, va)
1077
- ]),
1078
- _: 1
1079
- }, 8, ["legendSet", "config"])) : N(l.$slots, "legend", {
1080
- key: 1,
1081
- legend: ue.value
1082
- }, void 0, !0)
1083
- ], 512),
1072
+ b("div", {
1073
+ ref_key: "chartLegend",
1074
+ ref: je
1075
+ }, [
1076
+ e.value.style.legend.show ? (u(), K(gl, {
1077
+ key: `legend_${He.value}`,
1078
+ legendSet: ue.value,
1079
+ config: It.value,
1080
+ onClickMarker: s[0] || (s[0] = ({ legend: t }) => ct(t.id))
1081
+ }, {
1082
+ item: N(({ legend: t }) => [
1083
+ b("div", {
1084
+ onClick: (a) => t.segregate(),
1085
+ style: oe(`opacity:${L.value.includes(t.id) ? 0.5 : 1}`)
1086
+ }, Y(t.name), 13, ha)
1087
+ ]),
1088
+ _: 1
1089
+ }, 8, ["legendSet", "config"])) : E(l.$slots, "legend", {
1090
+ key: 1,
1091
+ legend: ue.value
1092
+ }, void 0, !0)
1093
+ ], 512)
1094
+ ], 8, ["to"])) : g("", !0),
1084
1095
  l.$slots.source ? (u(), i("div", {
1085
- key: 5,
1096
+ key: 6,
1086
1097
  ref_key: "source",
1087
1098
  ref: Ve,
1088
1099
  dir: "auto"
1089
1100
  }, [
1090
- N(l.$slots, "source", {}, void 0, !0)
1101
+ E(l.$slots, "source", {}, void 0, !0)
1091
1102
  ], 512)) : g("", !0),
1092
- Fe(n(St), {
1103
+ Fe(n(Lt), {
1093
1104
  show: R.value.showTooltip && _e.value,
1094
1105
  backgroundColor: e.value.style.tooltip.backgroundColor,
1095
1106
  color: e.value.style.tooltip.color,
@@ -1100,23 +1111,23 @@ const xl = ["id"], bl = ["xmlns", "viewBox"], kl = ["width", "height"], wl = { k
1100
1111
  backgroundOpacity: e.value.style.tooltip.backgroundOpacity,
1101
1112
  position: e.value.style.tooltip.position,
1102
1113
  offsetY: e.value.style.tooltip.offsetY,
1103
- parent: Q.value,
1104
- content: Me.value,
1114
+ parent: ee.value,
1115
+ content: $e.value,
1105
1116
  isFullscreen: ve.value,
1106
1117
  isCustom: e.value.style.tooltip.customFormat && typeof e.value.style.tooltip.customFormat == "function",
1107
1118
  smooth: e.value.style.tooltip.smooth,
1108
1119
  backdropFilter: e.value.style.tooltip.backdropFilter
1109
1120
  }, {
1110
- "tooltip-before": O(() => [
1111
- N(l.$slots, "tooltip-before", he(fe({ ...Be.value })), void 0, !0)
1121
+ "tooltip-before": N(() => [
1122
+ E(l.$slots, "tooltip-before", he(fe({ ...Be.value })), void 0, !0)
1112
1123
  ]),
1113
- "tooltip-after": O(() => [
1114
- N(l.$slots, "tooltip-after", he(fe({ ...Be.value })), void 0, !0)
1124
+ "tooltip-after": N(() => [
1125
+ E(l.$slots, "tooltip-after", he(fe({ ...Be.value })), void 0, !0)
1115
1126
  ]),
1116
- default: O(() => [
1117
- e.value.style.tooltip.showShape ? (u(), i("div", ya, [
1118
- (u(), i("svg", ca, [
1119
- Fe(kt, {
1127
+ default: N(() => [
1128
+ e.value.style.tooltip.showShape ? (u(), i("div", fa, [
1129
+ (u(), i("svg", pa, [
1130
+ Fe(wt, {
1120
1131
  shape: f.value.shape,
1121
1132
  color: f.value.color,
1122
1133
  plot: { x: 10, y: 10 },
@@ -1127,8 +1138,8 @@ const xl = ["id"], bl = ["xmlns", "viewBox"], kl = ["width", "height"], wl = { k
1127
1138
  ]),
1128
1139
  _: 3
1129
1140
  }, 8, ["show", "backgroundColor", "color", "borderRadius", "borderColor", "borderWidth", "fontSize", "backgroundOpacity", "position", "offsetY", "parent", "content", "isFullscreen", "isCustom", "smooth", "backdropFilter"]),
1130
- Ye.value ? (u(), oe(n(Mt), {
1131
- key: 6,
1141
+ Ye.value ? (u(), K(n(Mt), {
1142
+ key: 7,
1132
1143
  hideDetails: "",
1133
1144
  config: {
1134
1145
  open: R.value.showTable,
@@ -1143,8 +1154,8 @@ const xl = ["id"], bl = ["xmlns", "viewBox"], kl = ["width", "height"], wl = { k
1143
1154
  }
1144
1155
  }
1145
1156
  }, {
1146
- content: O(() => [
1147
- (u(), oe(n($t), {
1157
+ content: N(() => [
1158
+ (u(), K(n(At), {
1148
1159
  key: `table_${qe.value}`,
1149
1160
  colNames: be.value.colNames,
1150
1161
  head: be.value.head,
@@ -1153,26 +1164,26 @@ const xl = ["id"], bl = ["xmlns", "viewBox"], kl = ["width", "height"], wl = { k
1153
1164
  title: `${e.value.style.title.text}${e.value.style.title.subtitle.text ? ` : ${e.value.style.title.subtitle.text}` : ""}`,
1154
1165
  onClose: s[1] || (s[1] = (t) => R.value.showTable = !1)
1155
1166
  }, {
1156
- th: O(({ th: t }) => [
1157
- Vt(X(t), 1)
1167
+ th: N(({ th: t }) => [
1168
+ Gt(Y(t), 1)
1158
1169
  ]),
1159
- td: O(({ td: t }) => [
1160
- t.shape ? (u(), i("div", da, [
1161
- k("span", null, X(t.content), 1)
1170
+ td: N(({ td: t }) => [
1171
+ t.shape ? (u(), i("div", ga, [
1172
+ b("span", null, Y(t.content), 1)
1162
1173
  ])) : (u(), i("div", {
1163
1174
  key: 1,
1164
1175
  innerHTML: t
1165
- }, null, 8, ha))
1176
+ }, null, 8, ma))
1166
1177
  ]),
1167
1178
  _: 1
1168
1179
  }, 8, ["colNames", "head", "body", "config", "title"]))
1169
1180
  ]),
1170
1181
  _: 1
1171
1182
  }, 8, ["config"])) : g("", !0),
1172
- n(Ze) ? (u(), oe(yl, { key: 7 })) : g("", !0)
1173
- ], 46, xl));
1183
+ n(Je) ? (u(), K(dl, { key: 8 })) : g("", !0)
1184
+ ], 46, kl));
1174
1185
  }
1175
- }, La = /* @__PURE__ */ ml(fa, [["__scopeId", "data-v-1fb1905d"]]);
1186
+ }, Pa = /* @__PURE__ */ bl(xa, [["__scopeId", "data-v-5baae5ec"]]);
1176
1187
  export {
1177
- La as default
1188
+ Pa as default
1178
1189
  };