vue-data-ui 3.0.23 → 3.1.1

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 (108) hide show
  1. package/dist/{Arrow-B1Op9F3x.js → Arrow-xQM7mBzd.js} +1 -1
  2. package/dist/{BaseDraggableDialog-B4OaMIom.js → BaseDraggableDialog-B2BQC0-h.js} +72 -59
  3. package/dist/{BaseIcon-CgUOIGjr.js → BaseIcon-DLesaZpW.js} +1 -1
  4. package/dist/{useLoading-D7YHNtLX.js → BaseScanner-BgWxam9d.js} +11 -11
  5. package/dist/{ColorPicker-C0nf8VH0.js → ColorPicker-BKvJvFtX.js} +2 -2
  6. package/dist/DataTable-BAf4Obr9.js +140 -0
  7. package/dist/{Legend-CyYXMSsW.js → Legend-8_V5egWW.js} +2 -2
  8. package/dist/{NonSvgPenAndPaper-D63qeScu.js → NonSvgPenAndPaper-Cq4fHmA0.js} +3 -3
  9. package/dist/{PackageVersion-B6M-3jRt.js → PackageVersion-Cv_ypT0N.js} +1 -1
  10. package/dist/{PenAndPaper-zym5uEeN.js → PenAndPaper-B6OvfyHH.js} +3 -3
  11. package/dist/{Shape-CYVs2kYz.js → Shape-Cjca5zta.js} +1 -1
  12. package/dist/{Slicer-BTIFUO4x.js → Slicer-6w3K8gAc.js} +2 -2
  13. package/dist/{SparkTooltip-CNz7AYUL.js → SparkTooltip-BV4Z-NMp.js} +1 -1
  14. package/dist/{Title-D_e0SFWS.js → Title-Dz-j6ERs.js} +1 -1
  15. package/dist/{Tooltip-DjVoFYj1.js → Tooltip-BTGOEC7w.js} +1 -1
  16. package/dist/{UserOptions-z0NWZ7aQ.js → UserOptions-CsDlFB0L.js} +2 -2
  17. package/dist/{dom-to-png-DD0au3Qz.js → dom-to-png-BOu5-Ohz.js} +1 -1
  18. package/dist/{img-z5p1gGfY.js → img-gBDz7xQQ.js} +1 -1
  19. package/dist/{index-BEuUtONc.js → index-BKQqb9lF.js} +37 -2
  20. package/dist/{pdf-BmUjVBni.js → pdf-Cjsn5GEE.js} +1 -1
  21. package/dist/style.css +1 -1
  22. package/dist/types/vue-data-ui.d.cts +35 -0
  23. package/dist/types/vue-data-ui.d.ts +35 -0
  24. package/dist/{useAutoSizeLabelsInsideViewbox-CchB8S-o.js → useAutoSizeLabelsInsideViewbox-IO2dh0Uq.js} +1 -1
  25. package/dist/{useNestedProp-DhLFhguL.js → useNestedProp-aBOhgs4U.js} +1 -1
  26. package/dist/{usePrinter-DiB0_UNt.js → usePrinter-BzuXiubT.js} +2 -2
  27. package/dist/useTableResponsive-Cbx-ACcP.js +22 -0
  28. package/dist/{vue-data-ui-DJIAas-7.js → vue-data-ui-B6eM6hF3.js} +64 -64
  29. package/dist/vue-data-ui.js +1 -1
  30. package/dist/vue-ui-3d-bar-DBeWmnvH.js +1369 -0
  31. package/dist/{vue-ui-accordion-B4YfUjZ5.js → vue-ui-accordion-B5QeV3BK.js} +3 -3
  32. package/dist/{vue-ui-age-pyramid-CkXXNN79.js → vue-ui-age-pyramid-rZFdUsgz.js} +333 -286
  33. package/dist/{vue-ui-annotator-DnSsIkvU.js → vue-ui-annotator-CCCuslrT.js} +2 -2
  34. package/dist/{vue-ui-bullet-kZkBsWPY.js → vue-ui-bullet-DhJf9mvK.js} +8 -8
  35. package/dist/{vue-ui-candlestick-CIn0xZm0.js → vue-ui-candlestick-CGVtDKqZ.js} +453 -406
  36. package/dist/{vue-ui-carousel-table-f1FDOAqH.js → vue-ui-carousel-table-DLAR3WY8.js} +4 -4
  37. package/dist/{vue-ui-chestnut-B-jSj7FT.js → vue-ui-chestnut-BXnSxoXB.js} +563 -520
  38. package/dist/vue-ui-chord-DH_MwAKX.js +1100 -0
  39. package/dist/vue-ui-circle-pack-Cx_E1R63.js +755 -0
  40. package/dist/{vue-ui-cursor-DdBrui6i.js → vue-ui-cursor-CEvH1qDS.js} +2 -2
  41. package/dist/{vue-ui-dashboard-DSUfW7mI.js → vue-ui-dashboard-CvduVgEy.js} +62 -62
  42. package/dist/{vue-ui-digits-Cb3Wq5WR.js → vue-ui-digits-PTozKs3l.js} +2 -2
  43. package/dist/{vue-ui-donut-BCZqlAO3.js → vue-ui-donut-CsEtKJJD.js} +477 -431
  44. package/dist/{vue-ui-donut-evolution-HmQBq9VP.js → vue-ui-donut-evolution-DD7o-CxF.js} +482 -435
  45. package/dist/{vue-ui-dumbbell-B5w2oqNO.js → vue-ui-dumbbell-DfPYl3fu.js} +443 -398
  46. package/dist/vue-ui-flow-CSTTZHwg.js +900 -0
  47. package/dist/vue-ui-funnel-C-NUZqIo.js +666 -0
  48. package/dist/vue-ui-galaxy-BwsZnU6T.js +744 -0
  49. package/dist/{vue-ui-gauge-C_KLPWk2.js → vue-ui-gauge-D9MUneq0.js} +8 -8
  50. package/dist/{vue-ui-gizmo-CsPX25Ti.js → vue-ui-gizmo-Dnzs9wSf.js} +4 -4
  51. package/dist/{vue-ui-heatmap-BHq6hBaL.js → vue-ui-heatmap-CYaQIhy8.js} +501 -461
  52. package/dist/{vue-ui-history-plot-DgpYiaUD.js → vue-ui-history-plot-DMTFzl-_.js} +408 -361
  53. package/dist/{vue-ui-kpi-DOgibU7W.js → vue-ui-kpi-CkPotdff.js} +3 -3
  54. package/dist/{vue-ui-mini-loader-BjsQAxDx.js → vue-ui-mini-loader-CCE-bDOJ.js} +2 -2
  55. package/dist/vue-ui-molecule-DaN5lroq.js +702 -0
  56. package/dist/{vue-ui-mood-radar-DMwVl3wz.js → vue-ui-mood-radar-tM0mmZh8.js} +342 -291
  57. package/dist/{vue-ui-nested-donuts-H0GzIAF0.js → vue-ui-nested-donuts-RB4r6beI.js} +548 -502
  58. package/dist/{vue-ui-onion-A6nKcus1.js → vue-ui-onion-CxDozHg3.js} +363 -317
  59. package/dist/vue-ui-parallel-coordinate-plot-CK9nNExU.js +979 -0
  60. package/dist/vue-ui-quadrant-C7tLJYn7.js +1483 -0
  61. package/dist/{vue-ui-quick-chart-mwXE3w_o.js → vue-ui-quick-chart-MUBAkrHb.js} +7 -7
  62. package/dist/vue-ui-radar-Br4K80I9.js +858 -0
  63. package/dist/{vue-ui-rating-CleNHFo5.js → vue-ui-rating-NtvT9r_M.js} +2 -2
  64. package/dist/{vue-ui-relation-circle-CMCH7Ia6.js → vue-ui-relation-circle-CPQjAy1g.js} +8 -8
  65. package/dist/vue-ui-ridgeline-C2M_Cjlh.js +1204 -0
  66. package/dist/vue-ui-rings-DEru-cWN.js +785 -0
  67. package/dist/{vue-ui-scatter-kv28dsT3.js → vue-ui-scatter-CJKkiKle.js} +594 -548
  68. package/dist/{vue-ui-skeleton-DCNOYh9x.js → vue-ui-skeleton--twnjS2t.js} +3 -3
  69. package/dist/{vue-ui-smiley-DcS0CM-z.js → vue-ui-smiley-CNccdPZ7.js} +2 -2
  70. package/dist/{vue-ui-spark-trend-LHgReXth.js → vue-ui-spark-trend-9BFkkC0u.js} +4 -4
  71. package/dist/{vue-ui-sparkbar-Da315uRq.js → vue-ui-sparkbar-RYAThoA4.js} +4 -4
  72. package/dist/{vue-ui-sparkgauge-BeAkjGap.js → vue-ui-sparkgauge-DkPlmgMF.js} +4 -4
  73. package/dist/{vue-ui-sparkhistogram-Cy19W3y1.js → vue-ui-sparkhistogram-6EkCyYRF.js} +5 -5
  74. package/dist/{vue-ui-sparkline-IjlQWgs3.js → vue-ui-sparkline-Bl3nj8zd.js} +4 -4
  75. package/dist/{vue-ui-sparkstackbar-CoFgOa3r.js → vue-ui-sparkstackbar-B88lA7iy.js} +4 -4
  76. package/dist/{vue-ui-stackbar-fbCs4sHF.js → vue-ui-stackbar-Csj7NhT6.js} +525 -479
  77. package/dist/{vue-ui-strip-plot-Cm8Zr6RE.js → vue-ui-strip-plot-yY9NsUUI.js} +390 -343
  78. package/dist/{vue-ui-table-q7jWgS26.js → vue-ui-table-Dg6U31ex.js} +3 -3
  79. package/dist/{vue-ui-table-heatmap-CsK9gR1G.js → vue-ui-table-heatmap-BWU7CAWP.js} +5 -5
  80. package/dist/{vue-ui-table-sparkline-CXTPucPr.js → vue-ui-table-sparkline-DV4Y9aRL.js} +4 -4
  81. package/dist/{vue-ui-thermometer-BFxdNgrd.js → vue-ui-thermometer-C3fKamV-.js} +8 -8
  82. package/dist/{vue-ui-timer-BsoeDFjK.js → vue-ui-timer-6VAK9XyF.js} +5 -5
  83. package/dist/{vue-ui-tiremarks-BW_jSayT.js → vue-ui-tiremarks-BB-KAkF7.js} +7 -7
  84. package/dist/vue-ui-treemap-GrXkD_3Z.js +1092 -0
  85. package/dist/{vue-ui-vertical-bar-OrLV4CxH.js → vue-ui-vertical-bar-Mmz6u4aX.js} +504 -461
  86. package/dist/{vue-ui-waffle-BA6rNfVs.js → vue-ui-waffle-DzPVRUOA.js} +416 -370
  87. package/dist/{vue-ui-wheel-B_BkI-5f.js → vue-ui-wheel-idRCvS5t.js} +7 -7
  88. package/dist/vue-ui-word-cloud-B2641uNP.js +811 -0
  89. package/dist/{vue-ui-world-B4mKuSSn.js → vue-ui-world-D6s5Eph8.js} +512 -466
  90. package/dist/{vue-ui-xy-m1SWJk77.js → vue-ui-xy-BKTGSvfU.js} +1551 -1500
  91. package/dist/vue-ui-xy-canvas-BOQyxVRl.js +1291 -0
  92. package/package.json +1 -1
  93. package/dist/DataTable-nO6ydJO2.js +0 -133
  94. package/dist/vue-ui-3d-bar-B56WqLJ-.js +0 -1323
  95. package/dist/vue-ui-chord-Ck4yV3Tb.js +0 -1049
  96. package/dist/vue-ui-circle-pack-BAfRk_Hd.js +0 -709
  97. package/dist/vue-ui-flow-BXkxtUoF.js +0 -852
  98. package/dist/vue-ui-funnel-DFvDO--q.js +0 -620
  99. package/dist/vue-ui-galaxy-BXNLLc3U.js +0 -691
  100. package/dist/vue-ui-molecule-BtyMTwEn.js +0 -656
  101. package/dist/vue-ui-parallel-coordinate-plot-DZ9_0F5c.js +0 -927
  102. package/dist/vue-ui-quadrant-CUggSeUN.js +0 -1432
  103. package/dist/vue-ui-radar-BRKZ8e_X.js +0 -807
  104. package/dist/vue-ui-ridgeline-xW7UrSfR.js +0 -1157
  105. package/dist/vue-ui-rings-D3NfFMaO.js +0 -739
  106. package/dist/vue-ui-treemap-DhAYSVB9.js +0 -1046
  107. package/dist/vue-ui-word-cloud-CrSLGFOK.js +0 -765
  108. package/dist/vue-ui-xy-canvas-CX2JT6T3.js +0 -1243
@@ -1,46 +1,46 @@
1
- import { defineAsyncComponent as he, computed as W, ref as A, toRefs as tl, watch as Ue, shallowRef as Mt, onMounted as ll, onBeforeUnmount as al, createElementBlock as y, openBlock as r, unref as c, normalizeStyle as se, normalizeClass as At, createBlock as te, createCommentVNode as x, createElementVNode as w, createVNode as Ce, createSlots as ol, withCtx as R, renderSlot as V, normalizeProps as fe, guardReactiveProps as pe, Fragment as H, renderList as K, toDisplayString as G, Teleport as sl, createTextVNode as nl, nextTick as ul } from "vue";
2
- import { u as il, c as rl, t as vl, a as yl, p as re, b as cl, o as Ct, f as Ge, d as dl, g as St, Y as hl, e as qe, a3 as fl, V as pl, s as Se, X as gl, Z as ml, k as ne, h as q, i as Q, v as xl, w as kl, y as bl, z as wl } from "./index-BEuUtONc.js";
3
- import { t as _l, u as $l } from "./useResponsive-DfdjqQps.js";
4
- import { u as Ml, B as Al } from "./useLoading-D7YHNtLX.js";
5
- import { u as Cl } from "./usePrinter-DiB0_UNt.js";
6
- import { u as Lt } from "./useNestedProp-DhLFhguL.js";
7
- import { u as Sl } from "./useUserOptionState-BIvW1Kz7.js";
8
- import { u as Ll } from "./useChartAccessibility-9icAAmYg.js";
9
- import Bl from "./Legend-CyYXMSsW.js";
10
- import zl from "./Title-D_e0SFWS.js";
11
- import { _ as He } from "./Shape-CYVs2kYz.js";
12
- import Tl from "./img-z5p1gGfY.js";
13
- import { _ as Pl } from "./_plugin-vue_export-helper-CHgC5LLL.js";
14
- const El = ["id"], Ol = ["id"], Nl = ["xmlns", "viewBox"], Wl = ["width", "height"], Fl = { key: 1 }, Il = ["x1", "x2", "y1", "y2", "stroke", "stroke-width"], Xl = ["x1", "x2", "y1", "y2", "stroke", "stroke-width"], Yl = { key: 2 }, Dl = ["id"], Rl = ["stop-color"], Vl = ["stop-color"], jl = ["id"], Ul = ["stop-color"], Gl = ["stop-color"], ql = ["x", "y", "width", "height", "fill", "stroke", "stroke-width", "rx"], Hl = ["x", "y", "width", "height", "onMouseenter"], Zl = {
1
+ import { defineAsyncComponent as se, computed as W, ref as M, toRefs as ul, watch as Be, shallowRef as At, onMounted as il, onBeforeUnmount as rl, createElementBlock as y, openBlock as r, unref as c, normalizeStyle as ne, normalizeClass as St, createBlock as le, createCommentVNode as x, createElementVNode as w, createVNode as _e, createSlots as Lt, withCtx as X, renderSlot as V, normalizeProps as fe, guardReactiveProps as pe, Fragment as Z, renderList as K, toDisplayString as G, Teleport as vl, resolveDynamicComponent as yl, mergeProps as cl, createTextVNode as Bt, nextTick as dl } from "vue";
2
+ import { u as hl, c as fl, t as pl, a as gl, p as ye, b as ml, o as Tt, f as Ze, d as xl, g as zt, Y as bl, e as Je, a3 as kl, V as wl, s as Te, X as $l, Z as _l, k as ue, h as H, i as Q, v as Ml, w as Cl, y as Al, z as Sl } from "./index-BKQqb9lF.js";
3
+ import { t as Ll, u as Bl } from "./useResponsive-DfdjqQps.js";
4
+ import { u as Tl, B as zl } from "./BaseScanner-BgWxam9d.js";
5
+ import { u as Pl } from "./usePrinter-BzuXiubT.js";
6
+ import { u as Pt } from "./useNestedProp-aBOhgs4U.js";
7
+ import { u as Ol } from "./useUserOptionState-BIvW1Kz7.js";
8
+ import { u as El } from "./useChartAccessibility-9icAAmYg.js";
9
+ import Dl from "./Legend-8_V5egWW.js";
10
+ import Wl from "./Title-Dz-j6ERs.js";
11
+ import { _ as Ke } from "./Shape-Cjca5zta.js";
12
+ import Nl from "./img-gBDz7xQQ.js";
13
+ import { _ as Fl } from "./_plugin-vue_export-helper-CHgC5LLL.js";
14
+ const Il = ["id"], Xl = ["id"], Yl = ["xmlns", "viewBox"], Rl = ["width", "height"], Vl = { key: 1 }, jl = ["x1", "x2", "y1", "y2", "stroke", "stroke-width"], Ul = ["x1", "x2", "y1", "y2", "stroke", "stroke-width"], Gl = { key: 2 }, ql = ["id"], Hl = ["stop-color"], Zl = ["stop-color"], Jl = ["id"], Kl = ["stop-color"], Ql = ["stop-color"], ea = ["x", "y", "width", "height", "fill", "stroke", "stroke-width", "rx"], ta = ["x", "y", "width", "height", "onMouseenter"], la = {
15
15
  key: 2,
16
16
  style: { "pointer-events": "none" }
17
- }, Jl = ["x", "y", "width", "height", "fill", "fill-opacity"], Kl = ["x1", "x2", "y2", "stroke", "stroke-dasharray", "stroke-width"], Ql = ["x1", "x2", "y2", "stroke", "stroke-dasharray", "stroke-width"], ea = ["x", "y", "height", "width", "fill", "stroke", "stroke-width", "rx"], ta = ["x", "y", "width", "height", "onMouseenter"], la = {
17
+ }, aa = ["x", "y", "width", "height", "fill", "fill-opacity"], oa = ["x1", "x2", "y2", "stroke", "stroke-dasharray", "stroke-width"], sa = ["x1", "x2", "y2", "stroke", "stroke-dasharray", "stroke-width"], na = ["x", "y", "height", "width", "fill", "stroke", "stroke-width", "rx"], ua = ["x", "y", "width", "height", "onMouseenter"], ia = {
18
18
  key: 2,
19
19
  style: { "pointer-events": "none" }
20
- }, aa = ["x", "y", "width", "height", "fill", "fill-opacity"], oa = ["x1", "x2", "y1", "y2", "stroke", "stroke-dasharray", "stroke-width"], sa = ["x1", "x2", "y1", "y2", "stroke", "stroke-dasharray", "stroke-width"], na = {
20
+ }, ra = ["x", "y", "width", "height", "fill", "fill-opacity"], va = ["x1", "x2", "y1", "y2", "stroke", "stroke-dasharray", "stroke-width"], ya = ["x1", "x2", "y1", "y2", "stroke", "stroke-dasharray", "stroke-width"], ca = {
21
21
  key: 0,
22
22
  style: { "pointer-events": "none" }
23
- }, ua = ["d", "stroke", "stroke-width"], ia = ["d", "stroke", "stroke-width"], ra = ["d", "stroke", "stroke-width"], va = ["d", "stroke", "stroke-width"], ya = { key: 3 }, ca = ["points", "fill", "stroke-width", "stroke-dasharray", "stroke"], da = { key: 0 }, ha = ["cx", "cy", "r", "fill", "stroke", "stroke-width", "onMouseover", "onMouseleave", "onClick"], fa = { key: 1 }, pa = ["clip-path"], ga = ["d", "fill", "stroke", "stroke-width", "stroke-opacity"], ma = {
23
+ }, da = ["d", "stroke", "stroke-width"], ha = ["d", "stroke", "stroke-width"], fa = ["d", "stroke", "stroke-width"], pa = ["d", "stroke", "stroke-width"], ga = { key: 3 }, ma = ["points", "fill", "stroke-width", "stroke-dasharray", "stroke"], xa = { key: 0 }, ba = ["cx", "cy", "r", "fill", "stroke", "stroke-width", "onMouseover", "onMouseleave", "onClick"], ka = { key: 1 }, wa = ["clip-path"], $a = ["d", "fill", "stroke", "stroke-width", "stroke-opacity"], _a = {
24
24
  key: 0,
25
25
  style: { "pointer-events": "none" }
26
- }, xa = ["x", "y", "width", "height"], ka = {
26
+ }, Ma = ["x", "y", "width", "height"], Ca = {
27
27
  key: 6,
28
28
  style: { "pointer-events": "none !important" }
29
- }, ba = ["x1", "x2", "y1", "y2", "stroke", "stroke-width", "stroke-dasharray"], wa = ["x1", "x2", "y1", "y2", "stroke", "stroke-width", "stroke-dasharray"], _a = ["x", "y", "font-size", "fill", "font-weight", "text-anchor"], $a = ["x", "y", "font-size", "fill", "font-weight"], Ma = ["cx", "cy", "r", "fill", "stroke", "stroke-width"], Aa = ["cx", "cy", "r", "fill", "stroke", "stroke-width"], Ca = ["x", "y", "font-size", "fill", "font-weight", "text-anchor"], Sa = ["id", "transform", "font-size", "font-weight", "fill"], La = ["font-size", "fill", "transform"], Ba = ["transform", "font-size", "fill"], za = ["x", "y", "font-size", "fill"], Ta = ["x", "y", "font-size", "fill"], Pa = ["font-size", "font-weight", "fill", "x", "y"], Ea = ["id"], Oa = ["x", "y", "width", "height"], Na = {
29
+ }, Aa = ["x1", "x2", "y1", "y2", "stroke", "stroke-width", "stroke-dasharray"], Sa = ["x1", "x2", "y1", "y2", "stroke", "stroke-width", "stroke-dasharray"], La = ["x", "y", "font-size", "fill", "font-weight", "text-anchor"], Ba = ["x", "y", "font-size", "fill", "font-weight"], Ta = ["cx", "cy", "r", "fill", "stroke", "stroke-width"], za = ["cx", "cy", "r", "fill", "stroke", "stroke-width"], Pa = ["x", "y", "font-size", "fill", "font-weight", "text-anchor"], Oa = ["id", "transform", "font-size", "font-weight", "fill"], Ea = ["font-size", "fill", "transform"], Da = ["transform", "font-size", "fill"], Wa = ["x", "y", "font-size", "fill"], Na = ["x", "y", "font-size", "fill"], Fa = ["font-size", "font-weight", "fill", "x", "y"], Ia = ["id"], Xa = ["x", "y", "width", "height"], Ya = {
30
30
  key: 11,
31
31
  style: { pointerEvents: "none" }
32
- }, Wa = ["x1", "x2", "y1", "y2", "stroke-dasharray", "stroke", "stroke-width", "clip-path"], Fa = ["x", "y", "fill", "font-size", "font-weight"], Ia = {
32
+ }, Ra = ["x1", "x2", "y1", "y2", "stroke-dasharray", "stroke", "stroke-width", "clip-path"], Va = ["x", "y", "fill", "font-size", "font-weight"], ja = {
33
33
  key: 4,
34
34
  class: "vue-data-ui-watermark"
35
- }, Xa = ["id"], Ya = ["onClick"], Da = {
35
+ }, Ua = ["id"], Ga = ["onClick"], qa = {
36
36
  key: 0,
37
37
  style: { width: "100%", display: "flex", "align-items": "center", "justify-content": "center" }
38
- }, Ra = {
38
+ }, Ha = {
39
39
  viewBox: "0 0 20 20",
40
40
  height: "20",
41
41
  width: "20",
42
42
  style: { overflow: "hidden", background: "transparent" }
43
- }, Va = { key: 0 }, ja = ["innerHTML"], Ua = {
43
+ }, Za = { key: 0 }, Ja = ["innerHTML"], Ka = {
44
44
  __name: "vue-ui-scatter",
45
45
  props: {
46
46
  config: {
@@ -56,41 +56,41 @@ const El = ["id"], Ol = ["id"], Nl = ["xmlns", "viewBox"], Wl = ["width", "heigh
56
56
  }
57
57
  }
58
58
  },
59
- setup(Bt, { expose: zt }) {
60
- const Tt = he(() => import("./vue-ui-accordion-B4YfUjZ5.js")), Pt = he(() => import("./DataTable-nO6ydJO2.js")), Et = he(() => import("./PackageVersion-B6M-3jRt.js")), Ot = he(() => import("./PenAndPaper-zym5uEeN.js")), Nt = he(() => import("./Tooltip-DjVoFYj1.js")), Wt = he(() => import("./UserOptions-z0NWZ7aQ.js")), { vue_ui_scatter: Ft } = il(), ee = Bt, Ze = W(() => !!ee.dataset && ee.dataset.length), F = A(rl()), It = A(null), Le = A(!1), Be = A(""), Je = A(0), le = A(null), Ke = A(null), Qe = A(null), et = A(null), tt = A(null), lt = A(0), at = A(0), ot = A(0), I = A([]), st = A(!1), ge = A(null), me = A(null), ze = A(null), Xt = A(null), Yt = A(null), Te = A(null), e = A(We());
61
- function Dt(l = 100, s = 0.8, t = {}) {
59
+ setup(Ot, { expose: Et }) {
60
+ const Dt = se(() => import("./Tooltip-BTGOEC7w.js")), Wt = se(() => import("./BaseIcon-DLesaZpW.js")), Nt = se(() => import("./vue-ui-accordion-B5QeV3BK.js")), Ft = se(() => import("./DataTable-BAf4Obr9.js")), It = se(() => import("./PenAndPaper-B6OvfyHH.js")), Xt = se(() => import("./UserOptions-CsDlFB0L.js")), Yt = se(() => import("./PackageVersion-Cv_ypT0N.js")), Rt = se(() => import("./BaseDraggableDialog-B2BQC0-h.js")), { vue_ui_scatter: Vt } = hl(), ee = Ot, Qe = W(() => !!ee.dataset && ee.dataset.length), N = M(fl()), jt = M(null), ze = M(!1), Pe = M(""), et = M(0), te = M(null), tt = M(null), lt = M(null), at = M(null), ot = M(null), st = M(0), nt = M(0), ut = M(0), F = M([]), it = M(!1), ge = M(null), me = M(null), xe = M(null), Oe = M(null), Ut = M(null), Gt = M(null), Ee = M(null), e = M(Ie());
61
+ function qt(l = 100, s = 0.8, t = {}) {
62
62
  const { meanX: o = 0, sdX: a = 1, meanY: u = 0, sdY: i = 1, seed: f } = t;
63
63
  let v = (f ?? Math.floor(Math.random() * 2 ** 31)) >>> 0;
64
64
  const g = () => (v = v * 1664525 + 1013904223 >>> 0, v / 2 ** 32), L = () => {
65
- let m = 0, E = 0;
65
+ let m = 0, O = 0;
66
66
  for (; m === 0; ) m = g();
67
- for (; E === 0; ) E = g();
68
- return Math.sqrt(-2 * Math.log(m)) * Math.cos(2 * Math.PI * E);
69
- }, d = l / 2, $ = Array.from({ length: d }, L), P = Array.from({ length: d }, L), M = (m) => m.reduce((E, be) => E + be, 0) / m.length, z = M($), X = M(P);
67
+ for (; O === 0; ) O = g();
68
+ return Math.sqrt(-2 * Math.log(m)) * Math.cos(2 * Math.PI * O);
69
+ }, d = l / 2, _ = Array.from({ length: d }, L), P = Array.from({ length: d }, L), C = (m) => m.reduce((O, $e) => O + $e, 0) / m.length, T = C(_), I = C(P);
70
70
  for (let m = 0; m < d; m += 1)
71
- $[m] -= z, P[m] -= X;
72
- const B = (m, E) => m.reduce((be, Ae, je) => be + Ae * E[je], 0), _ = (m) => B(m, m), h = B(P, $) / _($), S = P.map((m, E) => m - h * $[E]), U = _($) / d, J = _(S) / d, oe = Math.sqrt((1 - s * s) * U / J), D = $.map((m, E) => s * m + oe * S[E]), ie = $.concat($.map((m) => -m)), Ve = D.concat(D.map((m) => -m)), xe = (m) => Math.sqrt(_(m) / m.length), ce = (m, E, be) => {
73
- const Ae = xe(m);
74
- return m.map((je) => be + (Ae ? je / Ae * E : 0));
75
- }, de = ce(ie, a, o), ke = ce(Ve, i, u);
76
- for (let m = de.length - 1; m > 0; m -= 1) {
77
- const E = Math.floor(g() * (m + 1));
78
- [de[m], de[E]] = [de[E], de[m]], [ke[m], ke[E]] = [ke[E], ke[m]];
71
+ _[m] -= T, P[m] -= I;
72
+ const B = (m, O) => m.reduce(($e, Le, He) => $e + Le * O[He], 0), $ = (m) => B(m, m), h = B(P, _) / $(_), S = P.map((m, O) => m - h * _[O]), U = $(_) / d, J = $(S) / d, oe = Math.sqrt((1 - s * s) * U / J), R = _.map((m, O) => s * m + oe * S[O]), ve = _.concat(_.map((m) => -m)), qe = R.concat(R.map((m) => -m)), ke = (m) => Math.sqrt($(m) / m.length), de = (m, O, $e) => {
73
+ const Le = ke(m);
74
+ return m.map((He) => $e + (Le ? He / Le * O : 0));
75
+ }, he = de(ve, a, o), we = de(qe, i, u);
76
+ for (let m = he.length - 1; m > 0; m -= 1) {
77
+ const O = Math.floor(g() * (m + 1));
78
+ [he[m], he[O]] = [he[O], he[m]], [we[m], we[O]] = [we[O], we[m]];
79
79
  }
80
- return de.map((m, E) => ({ x: m, y: ke[E] }));
80
+ return he.map((m, O) => ({ x: m, y: we[O] }));
81
81
  }
82
- const { loading: nt, FINAL_DATASET: Pe, manualLoading: Ee } = Ml({
83
- ...tl(ee),
82
+ const { loading: rt, FINAL_DATASET: De, manualLoading: We } = Tl({
83
+ ...ul(ee),
84
84
  FINAL_CONFIG: e,
85
- prepareConfig: We,
85
+ prepareConfig: Ie,
86
86
  skeletonDataset: [
87
87
  {
88
88
  name: "",
89
89
  color: "#999999",
90
- values: Dt(100, 0.5, { seed: 42 })
90
+ values: qt(100, 0.5, { seed: 42 })
91
91
  }
92
92
  ],
93
- skeletonConfig: vl({
93
+ skeletonConfig: pl({
94
94
  defaultConfig: e.value,
95
95
  userConfig: {
96
96
  userOptions: { show: !1 },
@@ -123,22 +123,22 @@ const El = ["id"], Ol = ["id"], Nl = ["xmlns", "viewBox"], Wl = ["width", "heigh
123
123
  }
124
124
  }
125
125
  })
126
- }), { userOptionsVisible: Oe, setUserOptionsVisibility: ut, keepUserOptionState: it } = Sl({ config: e.value }), { svgRef: Ne } = Ll({ config: e.value.style.title });
127
- function We() {
128
- const l = Lt({
126
+ }), { userOptionsVisible: Ne, setUserOptionsVisibility: vt, keepUserOptionState: yt } = Ol({ config: e.value }), { svgRef: Fe } = El({ config: e.value.style.title });
127
+ function Ie() {
128
+ const l = Pt({
129
129
  userConfig: ee.config,
130
- defaultConfig: Ft
130
+ defaultConfig: Vt
131
131
  });
132
132
  return l.theme ? {
133
- ...Lt({
134
- userConfig: cl.vue_ui_scatter[l.theme] || ee.config,
133
+ ...Pt({
134
+ userConfig: ml.vue_ui_scatter[l.theme] || ee.config,
135
135
  defaultConfig: l
136
136
  }),
137
- customPalette: yl[l.theme] || re
137
+ customPalette: gl[l.theme] || ye
138
138
  } : l;
139
139
  }
140
- Ue(() => ee.config, (l) => {
141
- nt.value || (e.value = We()), Oe.value = !e.value.userOptions.showOnChartHover, vt(), lt.value += 1, at.value += 1, ot.value += 1, Z.value.showTable = e.value.table.show, Z.value.showTooltip = e.value.style.tooltip.show, rt.value && e.value.usePerformanceMode && console.warn(`VueUiScatter : You are using performance mode
140
+ Be(() => ee.config, (l) => {
141
+ rt.value || (e.value = Ie()), Ne.value = !e.value.userOptions.showOnChartHover, dt(), st.value += 1, nt.value += 1, ut.value += 1, q.value.showTable = e.value.table.show, q.value.showTooltip = e.value.style.tooltip.show, ct.value && e.value.usePerformanceMode && console.warn(`VueUiScatter : You are using performance mode
142
142
 
143
143
  - downsampling is disabled in this mode, all plots are rendered
144
144
 
@@ -147,83 +147,83 @@ const El = ["id"], Ol = ["id"], Nl = ["xmlns", "viewBox"], Wl = ["width", "heigh
147
147
  - Depending on plot density, shapes might not display a border (stroke) to avoid fuzziness
148
148
 
149
149
  ℹ️ To remove this warning, set config.debug to false.`);
150
- }, { deep: !0 }), Ue(() => ee.dataset, (l) => {
151
- Array.isArray(l) && l.length > 0 && (Ee.value = !1);
150
+ }, { deep: !0 }), Be(() => ee.dataset, (l) => {
151
+ Array.isArray(l) && l.length > 0 && (We.value = !1);
152
152
  }, { deep: !0 });
153
- const ae = Mt(null), ve = Mt(null);
154
- ll(() => {
155
- st.value = !0, vt();
153
+ const ae = At(null), ce = At(null);
154
+ il(() => {
155
+ it.value = !0, dt();
156
156
  });
157
- const rt = W(() => !!e.value.debug);
158
- function vt() {
159
- if (Ct(ee.dataset) && (Ge({
157
+ const ct = W(() => !!e.value.debug);
158
+ function dt() {
159
+ if (Tt(ee.dataset) && (Ze({
160
160
  componentName: "VueUiScatter",
161
161
  type: "dataset",
162
- debug: rt.value
163
- }), Ee.value = !0), Ct(ee.dataset) || (Ee.value = e.value.loading), e.value.responsive) {
164
- const l = _l(() => {
165
- const { width: s, height: t } = $l({
166
- chart: le.value,
167
- title: e.value.style.title.text ? Ke.value : null,
168
- legend: e.value.style.legend.show ? Qe.value : null,
169
- source: et.value,
170
- noTitle: tt.value
162
+ debug: ct.value
163
+ }), We.value = !0), Tt(ee.dataset) || (We.value = e.value.loading), e.value.responsive) {
164
+ const l = Ll(() => {
165
+ const { width: s, height: t } = Bl({
166
+ chart: te.value,
167
+ title: e.value.style.title.text ? tt.value : null,
168
+ legend: e.value.style.legend.show ? lt.value : null,
169
+ source: at.value,
170
+ noTitle: ot.value
171
171
  });
172
172
  requestAnimationFrame(() => {
173
- O.value.width = s, O.value.height = t;
173
+ E.value.width = s, E.value.height = t;
174
174
  });
175
175
  });
176
- ae.value && (ve.value && ae.value.unobserve(ve.value), ae.value.disconnect()), ae.value = new ResizeObserver(l), ve.value = le.value.parentNode, ae.value.observe(ve.value);
176
+ ae.value && (ce.value && ae.value.unobserve(ce.value), ae.value.disconnect()), ae.value = new ResizeObserver(l), ce.value = te.value.parentNode, ae.value.observe(ce.value);
177
177
  }
178
178
  }
179
- al(() => {
180
- ae.value && (ve.value && ae.value.unobserve(ve.value), ae.value.disconnect());
179
+ rl(() => {
180
+ ae.value && (ce.value && ae.value.unobserve(ce.value), ae.value.disconnect());
181
181
  });
182
- const { isPrinting: yt, isImaging: ct, generatePdf: dt, generateImage: ht } = Cl({
183
- elementId: `vue-ui-scatter_${F.value}`,
182
+ const { isPrinting: ht, isImaging: ft, generatePdf: pt, generateImage: gt } = Pl({
183
+ elementId: `vue-ui-scatter_${N.value}`,
184
184
  fileName: e.value.style.title.text || "vue-ui-scatter",
185
185
  options: e.value.userOptions.print
186
- }), Rt = W(() => e.value.userOptions.show && !e.value.style.title.text), ft = W(() => dl(e.value.customPalette)), Z = A({
186
+ }), Ht = W(() => e.value.userOptions.show && !e.value.style.title.text), mt = W(() => xl(e.value.customPalette)), q = M({
187
187
  showTable: e.value.table.show,
188
188
  showTooltip: e.value.style.tooltip.show
189
189
  });
190
- Ue(e, () => {
191
- Z.value = {
190
+ Be(e, () => {
191
+ q.value = {
192
192
  showTable: e.value.table.show,
193
193
  showTooltip: e.value.style.tooltip.show
194
194
  };
195
195
  }, { immediate: !0 });
196
- const O = A({
196
+ const E = M({
197
197
  height: e.value.style.layout.height,
198
198
  width: e.value.style.layout.width
199
- }), we = W(() => e.value.style.layout.marginalBars.show ? e.value.style.layout.marginalBars.size + e.value.style.layout.marginalBars.offset : 0), n = W(() => {
199
+ }), Me = W(() => e.value.style.layout.marginalBars.show ? e.value.style.layout.marginalBars.size + e.value.style.layout.marginalBars.offset : 0), n = W(() => {
200
200
  let l = 0, s = 0;
201
- return ze.value && (l = ze.value.getBBox().width + 6), Te.value && (s = Te.value.getBBox().height + 6), {
202
- top: e.value.style.layout.padding.top + we.value + e.value.style.layout.dataLabels.yAxis.fontSize * 2,
203
- right: O.value.width - e.value.style.layout.padding.right - we.value - 6,
204
- bottom: O.value.height - e.value.style.layout.padding.bottom - s,
201
+ return Oe.value && (l = Oe.value.getBBox().width + 6), Ee.value && (s = Ee.value.getBBox().height + 6), {
202
+ top: e.value.style.layout.padding.top + Me.value + e.value.style.layout.dataLabels.yAxis.fontSize * 2,
203
+ right: E.value.width - e.value.style.layout.padding.right - Me.value - 6,
204
+ bottom: E.value.height - e.value.style.layout.padding.bottom - s,
205
205
  left: e.value.style.layout.padding.left + l,
206
- height: O.value.height - e.value.style.layout.padding.top - e.value.style.layout.padding.bottom - we.value - s - e.value.style.layout.dataLabels.yAxis.fontSize * 2,
207
- width: O.value.width - e.value.style.layout.padding.left - e.value.style.layout.padding.right - we.value - l - 6
206
+ height: E.value.height - e.value.style.layout.padding.top - e.value.style.layout.padding.bottom - Me.value - s - e.value.style.layout.dataLabels.yAxis.fontSize * 2,
207
+ width: E.value.width - e.value.style.layout.padding.left - e.value.style.layout.padding.right - Me.value - l - 6
208
208
  };
209
- }), T = W(() => {
210
- Pe.value.forEach((a, u) => {
211
- St({
209
+ }), z = W(() => {
210
+ De.value.forEach((a, u) => {
211
+ zt({
212
212
  datasetObject: a,
213
213
  requiredAttributes: ["values"]
214
214
  }).forEach((i) => {
215
- Ge({
215
+ Ze({
216
216
  componentName: "VueUiScatter",
217
217
  type: "datasetSerieAttribute",
218
218
  property: i,
219
219
  index: u
220
220
  });
221
221
  }), a.values && a.values.forEach((i, f) => {
222
- St({
222
+ zt({
223
223
  datasetObject: i,
224
224
  requiredAttributes: ["x", "y"]
225
225
  }).forEach((v) => {
226
- Ge({
226
+ Ze({
227
227
  componentName: "VueUiScatter",
228
228
  type: "datasetSerieAttribute",
229
229
  property: `values.${v}`,
@@ -232,66 +232,66 @@ const El = ["id"], Ol = ["id"], Nl = ["xmlns", "viewBox"], Wl = ["width", "heigh
232
232
  });
233
233
  });
234
234
  });
235
- const l = Math.min(...ue.value.filter((a) => !I.value.includes(a.id)).flatMap((a) => a.values.map((u) => u.x))), s = Math.max(...ue.value.filter((a) => !I.value.includes(a.id)).flatMap((a) => a.values.map((u) => u.x))), t = Math.min(...ue.value.filter((a) => !I.value.includes(a.id)).flatMap((a) => a.values.map((u) => u.y))), o = Math.max(...ue.value.filter((a) => !I.value.includes(a.id)).flatMap((a) => a.values.map((u) => u.y)));
235
+ const l = Math.min(...ie.value.filter((a) => !F.value.includes(a.id)).flatMap((a) => a.values.map((u) => u.x))), s = Math.max(...ie.value.filter((a) => !F.value.includes(a.id)).flatMap((a) => a.values.map((u) => u.x))), t = Math.min(...ie.value.filter((a) => !F.value.includes(a.id)).flatMap((a) => a.values.map((u) => u.y))), o = Math.max(...ie.value.filter((a) => !F.value.includes(a.id)).flatMap((a) => a.values.map((u) => u.y)));
236
236
  return { xMin: l >= 0 ? 0 : l, xMax: s, yMin: t >= 0 ? 0 : t, yMax: o };
237
- }), N = W(() => ({
238
- x: n.value.left + Math.abs(T.value.xMin) / (T.value.xMax + Math.abs(T.value.xMin)) * n.value.width,
239
- y: n.value.bottom - Math.abs(T.value.yMin) / (T.value.yMax + Math.abs(T.value.yMin)) * n.value.height
240
- })), ue = W(() => Pe.value.map((l, s) => {
241
- const t = `cluster_${F.value}_${s}`;
237
+ }), D = W(() => ({
238
+ x: n.value.left + Math.abs(z.value.xMin) / (z.value.xMax + Math.abs(z.value.xMin)) * n.value.width,
239
+ y: n.value.bottom - Math.abs(z.value.yMin) / (z.value.yMax + Math.abs(z.value.yMin)) * n.value.height
240
+ })), ie = W(() => De.value.map((l, s) => {
241
+ const t = `cluster_${N.value}_${s}`;
242
242
  return {
243
243
  ...l,
244
- values: hl({
244
+ values: bl({
245
245
  data: l.values,
246
246
  threshold: e.value.usePerformanceMode ? l.values.length + 1 : e.value.downsample.threshold
247
247
  }),
248
248
  id: t,
249
- color: l.color ? l.color : ft.value[s] || re[s] || re[s % re.length],
250
- opacity: I.value.includes(t) ? 0.5 : 1,
249
+ color: l.color ? l.color : mt.value[s] || ye[s] || ye[s % ye.length],
250
+ opacity: F.value.includes(t) ? 0.5 : 1,
251
251
  shape: l.shape ?? "circle",
252
- segregate: () => mt(t),
253
- isSegregated: I.value.includes(t)
252
+ segregate: () => kt(t),
253
+ isSegregated: F.value.includes(t)
254
254
  };
255
- })), Vt = W(() => ({
255
+ })), Zt = W(() => ({
256
256
  cy: "scatter-div-legend",
257
257
  backgroundColor: e.value.style.legend.backgroundColor,
258
258
  color: e.value.style.legend.color,
259
259
  fontSize: e.value.style.legend.fontSize,
260
260
  paddingBottom: 12,
261
261
  fontWeight: e.value.style.legend.bold ? "bold" : ""
262
- })), Fe = W(() => ue.value.map((l, s) => ({
262
+ })), Xe = W(() => ie.value.map((l, s) => ({
263
263
  ...l,
264
264
  plots: l.values.map((t) => ({
265
- x: n.value.left + (t.x + Math.abs(T.value.xMin)) / (T.value.xMax + Math.abs(T.value.xMin)) * n.value.width,
266
- y: n.value.bottom - (t.y + Math.abs(T.value.yMin)) / (T.value.yMax + Math.abs(T.value.yMin)) * n.value.height,
265
+ x: n.value.left + (t.x + Math.abs(z.value.xMin)) / (z.value.xMax + Math.abs(z.value.xMin)) * n.value.width,
266
+ y: n.value.bottom - (t.y + Math.abs(z.value.yMin)) / (z.value.yMax + Math.abs(z.value.yMin)) * n.value.height,
267
267
  v: {
268
268
  ...t,
269
269
  name: t.name || ""
270
270
  },
271
271
  clusterName: l.name,
272
- color: l.color ? l.color : ft.value[s] || re[s] || re[s % re.length],
273
- id: `plot_${F.value}_${Math.random()}`,
272
+ color: l.color ? l.color : mt.value[s] || ye[s] || ye[s % ye.length],
273
+ id: `plot_${N.value}_${Math.random()}`,
274
274
  weight: t.weight ?? e.value.style.layout.plots.radius
275
275
  }))
276
- })).filter((l) => !I.value.includes(l.id))), j = W(() => {
276
+ })).filter((l) => !F.value.includes(l.id))), j = W(() => {
277
277
  const s = ({ m: t, b: o, rect: a, verticalX: u = null }) => {
278
- const { left: i, right: f, top: v, bottom: g } = a, L = [], d = (_, h) => {
279
- Number.isFinite(_) && Number.isFinite(h) && L.push({ x: _, y: h });
280
- }, $ = ({ x: _, y: h }) => _ >= i - 1e-9 && _ <= f + 1e-9 && h >= v - 1e-9 && h <= g + 1e-9;
278
+ const { left: i, right: f, top: v, bottom: g } = a, L = [], d = ($, h) => {
279
+ Number.isFinite($) && Number.isFinite(h) && L.push({ x: $, y: h });
280
+ }, _ = ({ x: $, y: h }) => $ >= i - 1e-9 && $ <= f + 1e-9 && h >= v - 1e-9 && h <= g + 1e-9;
281
281
  u !== null ? u >= i - 1e-9 && u <= f + 1e-9 && (d(u, v), d(u, g)) : Number.isFinite(t) && (d(i, t * i + o), d(f, t * f + o), Math.abs(t) > 1e-9 ? (d((v - o) / t, v), d((g - o) / t, g)) : o >= v - 1e-9 && o <= g + 1e-9 && (d(i, o), d(f, o)));
282
- const P = L.filter($), M = [];
283
- for (const _ of P)
284
- M.some((h) => Math.abs(h.x - _.x) < 1e-6 && Math.abs(h.y - _.y) < 1e-6) || M.push(_);
285
- if (M.length < 2) return null;
286
- let z = M[0], X = M[1], B = 0;
287
- for (let _ = 0; _ < M.length; _ += 1)
288
- for (let h = _ + 1; h < M.length; h += 1) {
289
- const S = M[_].x - M[h].x, U = M[_].y - M[h].y, J = S * S + U * U;
290
- J > B && (B = J, z = M[_], X = M[h]);
282
+ const P = L.filter(_), C = [];
283
+ for (const $ of P)
284
+ C.some((h) => Math.abs(h.x - $.x) < 1e-6 && Math.abs(h.y - $.y) < 1e-6) || C.push($);
285
+ if (C.length < 2) return null;
286
+ let T = C[0], I = C[1], B = 0;
287
+ for (let $ = 0; $ < C.length; $ += 1)
288
+ for (let h = $ + 1; h < C.length; h += 1) {
289
+ const S = C[$].x - C[h].x, U = C[$].y - C[h].y, J = S * S + U * U;
290
+ J > B && (B = J, T = C[$], I = C[h]);
291
291
  }
292
- return { x1: z.x, y1: z.y, x2: X.x, y2: X.y };
292
+ return { x1: T.x, y1: T.y, x2: I.x, y2: I.y };
293
293
  };
294
- return Fe.value.map((t) => {
294
+ return Xe.value.map((t) => {
295
295
  const o = t.plots.length, a = t.plots.reduce((h, S) => h + S.x, 0) / o, u = t.plots.reduce((h, S) => h + S.y, 0) / o;
296
296
  let i = 0, f = 0;
297
297
  for (const h of t.plots) {
@@ -300,25 +300,25 @@ const El = ["id"], Ol = ["id"], Nl = ["xmlns", "viewBox"], Wl = ["width", "heigh
300
300
  }
301
301
  let v, g, L = null;
302
302
  f < 1e-9 ? (L = a, v = 1 / 0, g = null) : (v = i / f, g = u - v * a);
303
- let d, $;
304
- L !== null ? (d = 1 / 0, $ = null) : (d = v, $ = g);
303
+ let d, _;
304
+ L !== null ? (d = 1 / 0, _ = null) : (d = v, _ = g);
305
305
  const P = t.plots.every((h) => h.v && typeof h.v.x == "number" && typeof h.v.y == "number");
306
- let M = NaN;
306
+ let C = NaN;
307
307
  if (o >= 2) {
308
308
  let h = 0, S = 0;
309
- P ? (h = t.plots.reduce((D, ie) => D + ie.v.x, 0) / o, S = t.plots.reduce((D, ie) => D + ie.v.y, 0) / o) : (h = a, S = -u);
309
+ P ? (h = t.plots.reduce((R, ve) => R + ve.v.x, 0) / o, S = t.plots.reduce((R, ve) => R + ve.v.y, 0) / o) : (h = a, S = -u);
310
310
  let U = 0, J = 0, oe = 0;
311
- for (const D of t.plots) {
312
- const ie = P ? D.v.x : D.x, Ve = P ? D.v.y : -D.y, xe = ie - h, ce = Ve - S;
313
- U += xe * ce, J += xe * xe, oe += ce * ce;
311
+ for (const R of t.plots) {
312
+ const ve = P ? R.v.x : R.x, qe = P ? R.v.y : -R.y, ke = ve - h, de = qe - S;
313
+ U += ke * de, J += ke * ke, oe += de * de;
314
314
  }
315
315
  if (J >= 1e-9 && oe >= 1e-9) {
316
- const D = U / Math.sqrt(J * oe);
317
- M = Math.max(-1, Math.min(1, D));
316
+ const R = U / Math.sqrt(J * oe);
317
+ C = Math.max(-1, Math.min(1, R));
318
318
  }
319
319
  }
320
- const z = s({ m: d, b: $, rect: n.value, verticalX: L });
321
- if (!z)
320
+ const T = s({ m: d, b: _, rect: n.value, verticalX: L });
321
+ if (!T)
322
322
  return {
323
323
  ...t,
324
324
  correlation: null,
@@ -327,69 +327,69 @@ const El = ["id"], Ol = ["id"], Nl = ["xmlns", "viewBox"], Wl = ["width", "heigh
327
327
  ...h,
328
328
  deviation: 0,
329
329
  shape: t.shape,
330
- color: qe(t.color)
330
+ color: Je(t.color)
331
331
  }))
332
332
  };
333
- const X = (z.x1 + z.x2) / 2, B = (z.y1 + z.y2) / 2, _ = { x: X, y: B };
333
+ const I = (T.x1 + T.x2) / 2, B = (T.y1 + T.y2) / 2, $ = { x: I, y: B };
334
334
  return {
335
335
  ...t,
336
- color: qe(t.color),
336
+ color: Je(t.color),
337
337
  correlation: {
338
- ...z,
339
- coefficient: M
338
+ ...T,
339
+ coefficient: C
340
340
  },
341
- label: _,
341
+ label: $,
342
342
  plots: t.plots.map((h) => {
343
343
  let S, U;
344
- L !== null ? (S = L, U = h.y) : Math.abs(d) < 1e-9 ? (S = h.x, U = $) : (S = (h.x + d * h.y - d * $) / (1 + d * d), U = (d * h.x + d * d * h.y + $) / (1 + d * d));
345
- const J = h.x - S, oe = h.y - U, D = Math.sqrt(J * J + oe * oe);
344
+ L !== null ? (S = L, U = h.y) : Math.abs(d) < 1e-9 ? (S = h.x, U = _) : (S = (h.x + d * h.y - d * _) / (1 + d * d), U = (d * h.x + d * d * h.y + _) / (1 + d * d));
345
+ const J = h.x - S, oe = h.y - U, R = Math.sqrt(J * J + oe * oe);
346
346
  return {
347
347
  ...h,
348
- deviation: D,
348
+ deviation: R,
349
349
  shape: t.shape,
350
- color: qe(t.color)
350
+ color: Je(t.color)
351
351
  };
352
352
  })
353
353
  };
354
354
  });
355
- }), pt = W(() => Math.max(...j.value.flatMap((l) => l.plots.map((s) => Math.abs(s.deviation)))));
356
- function jt() {
355
+ }), xt = W(() => Math.max(...j.value.flatMap((l) => l.plots.map((s) => Math.abs(s.deviation)))));
356
+ function Jt() {
357
357
  return j.value;
358
358
  }
359
- function gt(l, s) {
360
- const t = Array.isArray(l) ? l.flatMap((B) => B.plots.map((_) => ({
361
- x: _.x,
362
- y: _.y
359
+ function bt(l, s) {
360
+ const t = Array.isArray(l) ? l.flatMap((B) => B.plots.map(($) => ({
361
+ x: $.x,
362
+ y: $.y
363
363
  }))) : l.plots.map((B) => ({
364
364
  x: B.x,
365
365
  y: B.y
366
366
  }));
367
367
  let o = 1 / 0, a = -1 / 0, u = 1 / 0, i = -1 / 0;
368
- t.forEach(({ x: B, y: _ }) => {
369
- o = Math.min(o, B), a = Math.max(a, B), u = Math.min(u, _), i = Math.max(i, _);
368
+ t.forEach(({ x: B, y: $ }) => {
369
+ o = Math.min(o, B), a = Math.max(a, B), u = Math.min(u, $), i = Math.max(i, $);
370
370
  });
371
- const f = a - o, v = i - u, g = f / s, L = v / s, d = Array(s).fill(0), $ = Array(s).fill(0);
372
- t.forEach(({ x: B, y: _ }) => {
373
- const h = Math.floor((B - o) / g), S = Math.floor((_ - u) / L);
374
- d[h] || (d[h] = 0), $[S] || ($[S] = 0), d[h] += 1, $[S] += 1;
371
+ const f = a - o, v = i - u, g = f / s, L = v / s, d = Array(s).fill(0), _ = Array(s).fill(0);
372
+ t.forEach(({ x: B, y: $ }) => {
373
+ const h = Math.floor((B - o) / g), S = Math.floor(($ - u) / L);
374
+ d[h] || (d[h] = 0), _[S] || (_[S] = 0), d[h] += 1, _[S] += 1;
375
375
  });
376
- const P = [], M = [];
376
+ const P = [], C = [];
377
377
  for (let B = 0; B < s; B += 1)
378
- P.push(o + (B + 0.5) * g), M.push(u + (B + 0.5) * L);
379
- const z = Math.max(...d), X = Math.max(...$);
380
- return { x: d, y: $, avgX: P, avgY: M, maxX: z, maxY: X };
378
+ P.push(o + (B + 0.5) * g), C.push(u + (B + 0.5) * L);
379
+ const T = Math.max(...d), I = Math.max(..._);
380
+ return { x: d, y: _, avgX: P, avgY: C, maxX: T, maxY: I };
381
381
  }
382
- const k = W(() => e.value.style.layout.marginalBars.tranches), C = W(() => gt(Fe.value, k.value)), Ut = W(() => {
382
+ const b = W(() => e.value.style.layout.marginalBars.tranches), A = W(() => bt(Xe.value, b.value)), Kt = W(() => {
383
383
  const l = n.value.top - e.value.style.layout.marginalBars.offset, s = n.value.right + e.value.style.layout.marginalBars.offset;
384
- return Fe.value.map((t) => {
385
- const o = gt(t, k.value);
384
+ return Xe.value.map((t) => {
385
+ const o = bt(t, b.value);
386
386
  return {
387
387
  coords: o,
388
- dX: pl(o.avgX.map((a, u) => ({
388
+ dX: wl(o.avgX.map((a, u) => ({
389
389
  x: a,
390
390
  y: l - o.x[u] / o.maxX * e.value.style.layout.marginalBars.size
391
391
  }))),
392
- dY: fl(o.avgY.map((a, u) => ({
392
+ dY: kl(o.avgY.map((a, u) => ({
393
393
  y: a,
394
394
  x: s + e.value.style.layout.marginalBars.size * o.y[u] / o.maxY
395
395
  }))),
@@ -397,28 +397,28 @@ const El = ["id"], Ol = ["id"], Nl = ["xmlns", "viewBox"], Wl = ["width", "heigh
397
397
  id: t.id
398
398
  };
399
399
  });
400
- }), Y = A(void 0), p = A(null), Ie = A(null);
401
- function Xe(l, s) {
400
+ }), Y = M(void 0), p = M(null), Ye = M(null);
401
+ function Re(l, s) {
402
402
  Y.value = l.id, p.value = l;
403
403
  let t = "";
404
- e.value.events.datapointEnter && e.value.events.datapointEnter({ datapoint: l, seriesIndex: s }), Ie.value = {
404
+ e.value.events.datapointEnter && e.value.events.datapointEnter({ datapoint: l, seriesIndex: s }), Ye.value = {
405
405
  datapoint: l,
406
406
  seriesIndex: s,
407
407
  series: j.value,
408
408
  config: e.value
409
409
  };
410
410
  const o = e.value.style.tooltip.customFormat;
411
- bl(o) && wl(() => o({
411
+ Al(o) && Sl(() => o({
412
412
  datapoint: l,
413
413
  seriesIndex: s,
414
414
  series: j.value,
415
415
  config: e.value
416
- })) ? Be.value = o({
416
+ })) ? Pe.value = o({
417
417
  datapoint: l,
418
418
  seriesIndex: s,
419
419
  series: j.value,
420
420
  config: e.value
421
- }) : (l.clusterName && (t += `<div style="display:flex;gap:3px;align-items:center">${l.clusterName}</div>`), l.v.name && (t += `<div>${l.v.name}</div>`), t += `<div style="text-align:left;margin-top:6px;padding-top:6px;border-top:1px solid ${e.value.style.tooltip.borderColor}">`, t += `<div>${e.value.style.layout.dataLabels.xAxis.name}: <b>${isNaN(l.v.x) ? "-" : ne(
421
+ }) : (l.clusterName && (t += `<div style="display:flex;gap:3px;align-items:center">${l.clusterName}</div>`), l.v.name && (t += `<div>${l.v.name}</div>`), t += `<div style="text-align:left;margin-top:6px;padding-top:6px;border-top:1px solid ${e.value.style.tooltip.borderColor}">`, t += `<div>${e.value.style.layout.dataLabels.xAxis.name}: <b>${isNaN(l.v.x) ? "-" : ue(
422
422
  e.value.style.layout.plots.selectors.labels.x.formatter,
423
423
  l.v.x,
424
424
  Q({
@@ -428,7 +428,7 @@ const El = ["id"], Ol = ["id"], Nl = ["xmlns", "viewBox"], Wl = ["width", "heigh
428
428
  r: e.value.style.tooltip.roundingValue
429
429
  }),
430
430
  { datapoint: l, seriesIndex: s }
431
- )}</b></div>`, t += `<div>${e.value.style.layout.dataLabels.yAxis.name}: <b>${isNaN(l.v.y) ? "-" : ne(
431
+ )}</b></div>`, t += `<div>${e.value.style.layout.dataLabels.yAxis.name}: <b>${isNaN(l.v.y) ? "-" : ue(
432
432
  e.value.style.layout.plots.selectors.labels.y.formatter,
433
433
  l.v.y,
434
434
  Q({
@@ -441,30 +441,30 @@ const El = ["id"], Ol = ["id"], Nl = ["xmlns", "viewBox"], Wl = ["width", "heigh
441
441
  )}</b></div>`, t += `${e.value.style.layout.plots.deviation.translation}: <b>${Q({
442
442
  v: l.deviation,
443
443
  r: e.value.style.layout.plots.deviation.roundingValue
444
- })}</b>`, t += "</div>", Be.value = `<div>${t}</div>`), Le.value = !0;
444
+ })}</b>`, t += "</div>", Pe.value = `<div>${t}</div>`), ze.value = !0;
445
445
  }
446
- function _e(l, s) {
447
- e.value.events.datapointLeave && e.value.events.datapointLeave({ datapoint: l, seriesIndex: s }), Le.value = !1, Y.value = void 0, p.value = null;
446
+ function Ce(l, s) {
447
+ e.value.events.datapointLeave && e.value.events.datapointLeave({ datapoint: l, seriesIndex: s }), ze.value = !1, Y.value = void 0, p.value = null;
448
448
  }
449
- function Ye(l, s) {
449
+ function Ve(l, s) {
450
450
  e.value.events.datapointClick && e.value.events.datapointClick({ datapoint: l, seriesIndex: s });
451
451
  }
452
- function mt(l) {
453
- I.value.includes(l) ? I.value = I.value.filter((s) => s !== l) : I.value.length < Pe.value.length - 1 && I.value.push(l);
452
+ function kt(l) {
453
+ F.value.includes(l) ? F.value = F.value.filter((s) => s !== l) : F.value.length < De.value.length - 1 && F.value.push(l);
454
454
  }
455
- function xt(l = null) {
456
- ul(() => {
455
+ function je(l = null) {
456
+ dl(() => {
457
457
  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((u) => [
458
458
  u.name,
459
459
  u.correlation.coefficient,
460
460
  u.plots.length,
461
461
  u.plots.map((i) => i.v.x).reduce((i, f) => i + f, 0) / u.plots.length,
462
462
  u.plots.map((i) => i.v.y).reduce((i, f) => i + f, 0) / u.plots.length
463
- ]), o = [[e.value.style.title.text], [e.value.style.title.subtitle.text], [[""], [""], [""]]].concat([s]).concat(t), a = xl(o);
464
- l ? l(a) : kl({ csvContent: a, title: e.value.style.title.text || "vue-ui-heatmap" });
463
+ ]), o = [[e.value.style.title.text], [e.value.style.title.subtitle.text], [[""], [""], [""]]].concat([s]).concat(t), a = Ml(o);
464
+ l ? l(a) : Cl({ csvContent: a, title: e.value.style.title.text || "vue-ui-heatmap" });
465
465
  });
466
466
  }
467
- const $e = W(() => {
467
+ const Ae = W(() => {
468
468
  const l = [
469
469
  e.value.table.translations.series,
470
470
  e.value.table.translations.correlationCoefficient,
@@ -495,23 +495,23 @@ const El = ["id"], Ol = ["id"], Nl = ["xmlns", "viewBox"], Wl = ["width", "heigh
495
495
  breakpoint: e.value.table.responsiveBreakpoint
496
496
  };
497
497
  return { head: l, body: s, config: t, colNames: l };
498
- }), ye = A(!1);
499
- function kt(l) {
500
- ye.value = l, Je.value += 1;
498
+ }), re = M(!1);
499
+ function wt(l) {
500
+ re.value = l, et.value += 1;
501
501
  }
502
- function bt() {
503
- Z.value.showTable = !Z.value.showTable;
502
+ function $t() {
503
+ q.value.showTable = !q.value.showTable;
504
504
  }
505
- function wt() {
506
- Z.value.showTooltip = !Z.value.showTooltip;
505
+ function _t() {
506
+ q.value.showTooltip = !q.value.showTooltip;
507
507
  }
508
- const Me = A(!1);
509
- function De() {
510
- Me.value = !Me.value;
508
+ const Se = M(!1);
509
+ function Ue() {
510
+ Se.value = !Se.value;
511
511
  }
512
- async function Gt({ scale: l = 2 } = {}) {
513
- if (!le.value) return;
514
- const { width: s, height: t } = le.value.getBoundingClientRect(), o = s / t, { imageUri: a, base64: u } = await Tl({ domElement: le.value, base64: !0, img: !0, scale: l });
512
+ async function Qt({ scale: l = 2 } = {}) {
513
+ if (!te.value) return;
514
+ const { width: s, height: t } = te.value.getBoundingClientRect(), o = s / t, { imageUri: a, base64: u } = await Nl({ domElement: te.value, base64: !0, img: !0, scale: l });
515
515
  return {
516
516
  imageUri: a,
517
517
  base64: u,
@@ -521,16 +521,16 @@ const El = ["id"], Ol = ["id"], Nl = ["xmlns", "viewBox"], Wl = ["width", "heigh
521
521
  aspectRatio: o
522
522
  };
523
523
  }
524
- function qt(l) {
525
- ge.value = l, e.value.style.layout.marginalBars.highlighter.highlightBothAxes && (me.value = C.value.y.length - 2 - l);
524
+ function el(l) {
525
+ ge.value = l, e.value.style.layout.marginalBars.highlighter.highlightBothAxes && (me.value = A.value.y.length - 2 - l);
526
526
  }
527
- function Ht(l) {
527
+ function tl(l) {
528
528
  me.value = l, e.value.style.layout.marginalBars.highlighter.highlightBothAxes && (ge.value = l);
529
529
  }
530
- function Re() {
530
+ function Ge() {
531
531
  ge.value = null, me.value = null;
532
532
  }
533
- const _t = {
533
+ const Mt = {
534
534
  circle: 1,
535
535
  square: 1,
536
536
  diamond: 1,
@@ -538,26 +538,26 @@ const El = ["id"], Ol = ["id"], Nl = ["xmlns", "viewBox"], Wl = ["width", "heigh
538
538
  star: 1.3,
539
539
  pentagon: 1.3,
540
540
  hexagon: 1.3
541
- }, b = (l) => l.toFixed(3);
542
- function Zt({ shape: l = "circle", cx: s, cy: t, r: o }) {
541
+ }, k = (l) => l.toFixed(3);
542
+ function ll({ shape: l = "circle", cx: s, cy: t, r: o }) {
543
543
  if (!e.value.usePerformanceMode) return "";
544
- const a = _t[l] * o;
544
+ const a = Mt[l] * o;
545
545
  switch (l) {
546
546
  case "circle": {
547
- const u = b(s - a), i = b(t), f = b(s + a), v = b(a);
547
+ const u = k(s - a), i = k(t), f = k(s + a), v = k(a);
548
548
  return `M ${u} ${i} A ${v} ${v} 0 1 0 ${f} ${i} A ${v} ${v} 0 1 0 ${u} ${i} Z`;
549
549
  }
550
550
  case "square": {
551
- const u = b(s - a), i = b(t - a), f = b(s + a), v = b(t + a);
551
+ const u = k(s - a), i = k(t - a), f = k(s + a), v = k(t + a);
552
552
  return `M ${u} ${i} L ${f} ${i} L ${f} ${v} L ${u} ${v} Z`;
553
553
  }
554
554
  case "diamond": {
555
- const u = b(s), i = b(t);
556
- return `M ${u} ${b(t - a)} L ${b(s + a)} ${i} L ${u} ${b(t + a)} L ${b(s - a)} ${i} Z`;
555
+ const u = k(s), i = k(t);
556
+ return `M ${u} ${k(t - a)} L ${k(s + a)} ${i} L ${u} ${k(t + a)} L ${k(s - a)} ${i} Z`;
557
557
  }
558
558
  case "triangle": {
559
559
  const u = a * Math.sqrt(3), i = s, f = t - 2 / 3 * u, v = s - a, g = t + 1 / 3 * u, L = s + a, d = g;
560
- return `M ${b(i)} ${b(f)} L ${b(v)} ${b(g)} L ${b(L)} ${b(d)} Z`;
560
+ return `M ${k(i)} ${k(f)} L ${k(v)} ${k(g)} L ${k(L)} ${k(d)} Z`;
561
561
  }
562
562
  case "star": {
563
563
  const u = a, i = a * 0.5, f = [];
@@ -565,9 +565,9 @@ const El = ["id"], Ol = ["id"], Nl = ["xmlns", "viewBox"], Wl = ["width", "heigh
565
565
  const L = (-90 + g * 36) * Math.PI / 180, d = g % 2 === 0 ? u : i;
566
566
  f.push([s + d * Math.cos(L), t + d * Math.sin(L)]);
567
567
  }
568
- let v = `M ${b(f[0][0])} ${b(f[0][1])}`;
568
+ let v = `M ${k(f[0][0])} ${k(f[0][1])}`;
569
569
  for (let g = 1; g < f.length; g += 1)
570
- v += ` L ${b(f[g][0])} ${b(f[g][1])}`;
570
+ v += ` L ${k(f[g][0])} ${k(f[g][1])}`;
571
571
  return v + " Z";
572
572
  }
573
573
  case "pentagon": {
@@ -576,8 +576,8 @@ const El = ["id"], Ol = ["id"], Nl = ["xmlns", "viewBox"], Wl = ["width", "heigh
576
576
  const g = (-90 + v * 72) * Math.PI / 180;
577
577
  i.push([s + a * Math.cos(g), t + a * Math.sin(g)]);
578
578
  }
579
- let f = `M ${b(i[0][0])} ${b(i[0][1])}`;
580
- for (let v = 1; v < 5; v += 1) f += ` L ${b(i[v][0])} ${b(i[v][1])}`;
579
+ let f = `M ${k(i[0][0])} ${k(i[0][1])}`;
580
+ for (let v = 1; v < 5; v += 1) f += ` L ${k(i[v][0])} ${k(i[v][1])}`;
581
581
  return f + " Z";
582
582
  }
583
583
  case "hexagon": {
@@ -586,47 +586,47 @@ const El = ["id"], Ol = ["id"], Nl = ["xmlns", "viewBox"], Wl = ["width", "heigh
586
586
  const g = (-60 + v * 60) * Math.PI / 180;
587
587
  i.push([s + a * Math.cos(g), t + a * Math.sin(g)]);
588
588
  }
589
- let f = `M ${b(i[0][0])} ${b(i[0][1])}`;
590
- for (let v = 1; v < 6; v += 1) f += ` L ${b(i[v][0])} ${b(i[v][1])}`;
589
+ let f = `M ${k(i[0][0])} ${k(i[0][1])}`;
590
+ for (let v = 1; v < 6; v += 1) f += ` L ${k(i[v][0])} ${k(i[v][1])}`;
591
591
  return f + " Z";
592
592
  }
593
593
  default: {
594
- const u = b(s - a), i = b(t), f = b(s + a), v = b(a);
594
+ const u = k(s - a), i = k(t), f = k(s + a), v = k(a);
595
595
  return `M ${u} ${i} A ${v} ${v} 0 1 0 ${f} ${i} A ${v} ${v} 0 1 0 ${u} ${i} Z`;
596
596
  }
597
597
  }
598
598
  }
599
- const Jt = W(() => {
599
+ const al = W(() => {
600
600
  if (!e.value.usePerformanceMode) return [""];
601
601
  const { left: l, right: s, top: t, bottom: o } = n.value, a = Math.max(1, (s - l) * (o - t)), u = (d) => d / a * 1e4, i = 2.5, f = 1e3, v = e.value.style.layout.plots.stroke, g = e.value.style.layout.plots.strokeWidth, L = e.value.style.layout.plots.opacity;
602
602
  return j.value.map((d) => {
603
- const $ = [];
604
- for (const M of d.plots) {
605
- const z = M.x, X = M.y;
606
- if (z < l || z > s || X < t || X > o) continue;
607
- const B = Math.max(e.value.style.layout.plots.radius, M.weight);
608
- $.push(Zt({
603
+ const _ = [];
604
+ for (const C of d.plots) {
605
+ const T = C.x, I = C.y;
606
+ if (T < l || T > s || I < t || I > o) continue;
607
+ const B = Math.max(e.value.style.layout.plots.radius, C.weight);
608
+ _.push(ll({
609
609
  shape: d.shape || "circle",
610
- cx: z,
611
- cy: X,
610
+ cx: T,
611
+ cy: I,
612
612
  r: B
613
613
  }));
614
614
  }
615
- if (!$.length) return null;
615
+ if (!_.length) return null;
616
616
  const P = u(d.plots.length) > i || d.plots.length > f;
617
617
  return {
618
618
  id: d.id,
619
- d: $.join(""),
620
- fill: Se(d.color, L * 100),
619
+ d: _.join(""),
620
+ fill: Te(d.color, L * 100),
621
621
  stroke: P ? "none" : v,
622
622
  strokeWidth: P ? 0 : g,
623
623
  strokeOpacity: 1
624
624
  };
625
625
  }).filter(Boolean);
626
626
  });
627
- function Kt() {
627
+ function ol() {
628
628
  return e.value.usePerformanceMode ? (l) => {
629
- const s = Ne.value;
629
+ const s = Fe.value;
630
630
  if (!s) return;
631
631
  const t = s.createSVGPoint();
632
632
  t.x = l.clientX, t.y = l.clientY;
@@ -634,75 +634,107 @@ const El = ["id"], Ol = ["id"], Nl = ["xmlns", "viewBox"], Wl = ["width", "heigh
634
634
  if (!o) return;
635
635
  const a = o.inverse(), u = t.matrixTransform(a), i = 8, f = i * i;
636
636
  let v = null, g = 1 / 0, L = -1;
637
- if (j.value.forEach((d, $) => {
637
+ if (j.value.forEach((d, _) => {
638
638
  d.plots.forEach((P) => {
639
- const M = P.x - u.x, z = P.y - u.y, X = M * M + z * z;
640
- X <= f && X < g && (g = X, v = P, L = $);
639
+ const C = P.x - u.x, T = P.y - u.y, I = C * C + T * T;
640
+ I <= f && I < g && (g = I, v = P, L = _);
641
641
  });
642
642
  }), v)
643
- Y.value !== v.id && (Y.value = v.id, Xe(v, L));
643
+ Y.value !== v.id && (Y.value = v.id, Re(v, L));
644
644
  else if (Y.value) {
645
645
  const d = p.value;
646
- Y.value = void 0, _e(d, L);
646
+ Y.value = void 0, Ce(d, L);
647
647
  }
648
648
  } : () => null;
649
649
  }
650
- const $t = Kt();
651
- function Qt() {
650
+ const Ct = ol();
651
+ function sl() {
652
652
  if (Y.value) {
653
653
  const l = p.value;
654
- Y.value = void 0, _e(l, null);
654
+ Y.value = void 0, Ce(l, null);
655
655
  }
656
656
  }
657
- function el(l) {
657
+ function nl(l) {
658
658
  const s = p.value;
659
659
  if (s) {
660
660
  const t = j.value.findIndex((o) => o.id === s.clusterId);
661
- Ye(s, t >= 0 ? t : 0);
661
+ Ve(s, t >= 0 ? t : 0);
662
662
  }
663
663
  }
664
- return zt({
665
- getData: jt,
666
- getImage: Gt,
667
- generatePdf: dt,
668
- generateCsv: xt,
669
- generateImage: ht,
670
- toggleTable: bt,
671
- toggleTooltip: wt,
672
- toggleAnnotator: De,
673
- toggleFullscreen: kt
664
+ const be = W(() => {
665
+ const l = e.value.table.useDialog && !e.value.table.show, s = q.value.showTable;
666
+ return {
667
+ component: l ? Rt : Nt,
668
+ title: `${e.value.style.title.text}${e.value.style.title.subtitle.text ? `: ${e.value.style.title.subtitle.text}` : ""}`,
669
+ props: l ? {
670
+ backgroundColor: e.value.table.th.backgroundColor,
671
+ color: e.value.table.th.color,
672
+ headerColor: e.value.table.th.color,
673
+ headerBg: e.value.table.th.backgroundColor,
674
+ isFullscreen: re.value,
675
+ fullscreenParent: te.value,
676
+ forcedWidth: Math.min(800, window.innerWidth * 0.8)
677
+ } : {
678
+ hideDetails: !0,
679
+ config: {
680
+ open: s,
681
+ maxHeight: 1e4,
682
+ body: {
683
+ backgroundColor: e.value.style.backgroundColor,
684
+ color: e.value.style.color
685
+ },
686
+ head: {
687
+ backgroundColor: e.value.style.backgroundColor,
688
+ color: e.value.style.color
689
+ }
690
+ }
691
+ }
692
+ };
693
+ });
694
+ return Be(() => q.value.showTable, (l) => {
695
+ e.value.table.show || (l && e.value.table.useDialog && xe.value ? xe.value.open() : "close" in xe.value && xe.value.close());
696
+ }), Et({
697
+ getData: Jt,
698
+ getImage: Qt,
699
+ generatePdf: pt,
700
+ generateCsv: je,
701
+ generateImage: gt,
702
+ toggleTable: $t,
703
+ toggleTooltip: _t,
704
+ toggleAnnotator: Ue,
705
+ toggleFullscreen: wt
674
706
  }), (l, s) => (r(), y("div", {
675
- class: At(`vue-ui-scatter ${ye.value ? "vue-data-ui-wrapper-fullscreen" : ""} ${e.value.useCssAnimation ? "" : "vue-ui-dna"}`),
707
+ class: St(`vue-ui-scatter ${re.value ? "vue-data-ui-wrapper-fullscreen" : ""} ${e.value.useCssAnimation ? "" : "vue-ui-dna"}`),
676
708
  ref_key: "scatterChart",
677
- ref: le,
678
- id: `vue-ui-scatter_${F.value}`,
679
- style: se(`font-family:${e.value.style.fontFamily};width:100%; text-align:center;background:${e.value.style.backgroundColor};${e.value.responsive ? "height: 100%" : ""}`),
680
- onMouseenter: s[5] || (s[5] = () => c(ut)(!0)),
681
- onMouseleave: s[6] || (s[6] = () => c(ut)(!1))
709
+ ref: te,
710
+ id: `vue-ui-scatter_${N.value}`,
711
+ style: ne(`font-family:${e.value.style.fontFamily};width:100%; text-align:center;background:${e.value.style.backgroundColor};${e.value.responsive ? "height: 100%" : ""}`),
712
+ onMouseenter: s[7] || (s[7] = () => c(vt)(!0)),
713
+ onMouseleave: s[8] || (s[8] = () => c(vt)(!1))
682
714
  }, [
683
- e.value.userOptions.buttons.annotator ? (r(), te(c(Ot), {
715
+ e.value.userOptions.buttons.annotator ? (r(), le(c(It), {
684
716
  key: 0,
685
- svgRef: c(Ne),
717
+ svgRef: c(Fe),
686
718
  backgroundColor: e.value.style.backgroundColor,
687
719
  color: e.value.style.color,
688
- active: Me.value,
689
- onClose: De
720
+ active: Se.value,
721
+ onClose: Ue
690
722
  }, null, 8, ["svgRef", "backgroundColor", "color", "active"])) : x("", !0),
691
- Rt.value ? (r(), y("div", {
723
+ Ht.value ? (r(), y("div", {
692
724
  key: 1,
693
725
  ref_key: "noTitle",
694
- ref: tt,
726
+ ref: ot,
695
727
  class: "vue-data-ui-no-title-space",
696
728
  style: "height:36px; width: 100%;background:transparent"
697
729
  }, null, 512)) : x("", !0),
698
730
  e.value.style.title.text ? (r(), y("div", {
699
731
  key: 2,
700
732
  ref_key: "chartTitle",
701
- ref: Ke,
733
+ ref: tt,
702
734
  style: "width:100%;background:transparent"
703
735
  }, [
704
- (r(), te(zl, {
705
- key: `title_${lt.value}`,
736
+ (r(), le(Wl, {
737
+ key: `title_${st.value}`,
706
738
  config: {
707
739
  title: {
708
740
  cy: "scatter-div-title",
@@ -716,95 +748,95 @@ const El = ["id"], Ol = ["id"], Nl = ["xmlns", "viewBox"], Wl = ["width", "heigh
716
748
  }, null, 8, ["config"]))
717
749
  ], 512)) : x("", !0),
718
750
  w("div", {
719
- id: `legend-top-${F.value}`
720
- }, null, 8, Ol),
721
- e.value.userOptions.show && Ze.value && (c(it) || c(Oe)) ? (r(), te(c(Wt), {
751
+ id: `legend-top-${N.value}`
752
+ }, null, 8, Xl),
753
+ e.value.userOptions.show && Qe.value && (c(yt) || c(Ne)) ? (r(), le(c(Xt), {
722
754
  ref_key: "details",
723
- ref: It,
724
- key: `user_options_${Je.value}`,
755
+ ref: jt,
756
+ key: `user_options_${et.value}`,
725
757
  backgroundColor: e.value.style.backgroundColor,
726
758
  color: e.value.style.color,
727
- isImaging: c(ct),
728
- isPrinting: c(yt),
729
- uid: F.value,
759
+ isImaging: c(ft),
760
+ isPrinting: c(ht),
761
+ uid: N.value,
730
762
  hasTooltip: e.value.userOptions.buttons.tooltip && e.value.style.tooltip.show,
731
763
  hasPdf: e.value.userOptions.buttons.pdf,
732
764
  hasImg: e.value.userOptions.buttons.img,
733
765
  hasXls: e.value.userOptions.buttons.csv,
734
766
  hasTable: e.value.userOptions.buttons.table,
735
767
  hasFullscreen: e.value.userOptions.buttons.fullscreen,
736
- isTooltip: Z.value.showTooltip,
737
- isFullscreen: ye.value,
768
+ isTooltip: q.value.showTooltip,
769
+ isFullscreen: re.value,
738
770
  titles: { ...e.value.userOptions.buttonTitles },
739
- chartElement: le.value,
771
+ chartElement: te.value,
740
772
  position: e.value.userOptions.position,
741
773
  hasAnnotator: e.value.userOptions.buttons.annotator,
742
- isAnnotation: Me.value,
774
+ isAnnotation: Se.value,
743
775
  callbacks: e.value.userOptions.callbacks,
744
776
  printScale: e.value.userOptions.print.scale,
745
- onToggleFullscreen: kt,
746
- onGeneratePdf: c(dt),
747
- onGenerateCsv: xt,
748
- onGenerateImage: c(ht),
749
- onToggleTable: bt,
750
- onToggleTooltip: wt,
751
- onToggleAnnotator: De,
752
- style: se({
753
- visibility: c(it) ? c(Oe) ? "visible" : "hidden" : "visible"
777
+ onToggleFullscreen: wt,
778
+ onGeneratePdf: c(pt),
779
+ onGenerateCsv: je,
780
+ onGenerateImage: c(gt),
781
+ onToggleTable: $t,
782
+ onToggleTooltip: _t,
783
+ onToggleAnnotator: Ue,
784
+ style: ne({
785
+ visibility: c(yt) ? c(Ne) ? "visible" : "hidden" : "visible"
754
786
  })
755
- }, ol({ _: 2 }, [
787
+ }, Lt({ _: 2 }, [
756
788
  l.$slots.menuIcon ? {
757
789
  name: "menuIcon",
758
- fn: R(({ isOpen: t, color: o }) => [
790
+ fn: X(({ isOpen: t, color: o }) => [
759
791
  V(l.$slots, "menuIcon", fe(pe({ isOpen: t, color: o })), void 0, !0)
760
792
  ]),
761
793
  key: "0"
762
794
  } : void 0,
763
795
  l.$slots.optionTooltip ? {
764
796
  name: "optionTooltip",
765
- fn: R(() => [
797
+ fn: X(() => [
766
798
  V(l.$slots, "optionTooltip", {}, void 0, !0)
767
799
  ]),
768
800
  key: "1"
769
801
  } : void 0,
770
802
  l.$slots.optionPdf ? {
771
803
  name: "optionPdf",
772
- fn: R(() => [
804
+ fn: X(() => [
773
805
  V(l.$slots, "optionPdf", {}, void 0, !0)
774
806
  ]),
775
807
  key: "2"
776
808
  } : void 0,
777
809
  l.$slots.optionCsv ? {
778
810
  name: "optionCsv",
779
- fn: R(() => [
811
+ fn: X(() => [
780
812
  V(l.$slots, "optionCsv", {}, void 0, !0)
781
813
  ]),
782
814
  key: "3"
783
815
  } : void 0,
784
816
  l.$slots.optionImg ? {
785
817
  name: "optionImg",
786
- fn: R(() => [
818
+ fn: X(() => [
787
819
  V(l.$slots, "optionImg", {}, void 0, !0)
788
820
  ]),
789
821
  key: "4"
790
822
  } : void 0,
791
823
  l.$slots.optionTable ? {
792
824
  name: "optionTable",
793
- fn: R(() => [
825
+ fn: X(() => [
794
826
  V(l.$slots, "optionTable", {}, void 0, !0)
795
827
  ]),
796
828
  key: "5"
797
829
  } : void 0,
798
830
  l.$slots.optionFullscreen ? {
799
831
  name: "optionFullscreen",
800
- fn: R(({ toggleFullscreen: t, isFullscreen: o }) => [
832
+ fn: X(({ toggleFullscreen: t, isFullscreen: o }) => [
801
833
  V(l.$slots, "optionFullscreen", fe(pe({ toggleFullscreen: t, isFullscreen: o })), void 0, !0)
802
834
  ]),
803
835
  key: "6"
804
836
  } : void 0,
805
837
  l.$slots.optionAnnotator ? {
806
838
  name: "optionAnnotator",
807
- fn: R(({ toggleAnnotator: t, isAnnotator: o }) => [
839
+ fn: X(({ toggleAnnotator: t, isAnnotator: o }) => [
808
840
  V(l.$slots, "optionAnnotator", fe(pe({ toggleAnnotator: t, isAnnotator: o })), void 0, !0)
809
841
  ]),
810
842
  key: "7"
@@ -812,50 +844,50 @@ const El = ["id"], Ol = ["id"], Nl = ["xmlns", "viewBox"], Wl = ["width", "heigh
812
844
  ]), 1032, ["backgroundColor", "color", "isImaging", "isPrinting", "uid", "hasTooltip", "hasPdf", "hasImg", "hasXls", "hasTable", "hasFullscreen", "isTooltip", "isFullscreen", "titles", "chartElement", "position", "hasAnnotator", "isAnnotation", "callbacks", "printScale", "onGeneratePdf", "onGenerateImage", "style"])) : x("", !0),
813
845
  (r(), y("svg", {
814
846
  ref_key: "svgRef",
815
- ref: Ne,
816
- xmlns: c(gl),
817
- class: At({ "vue-data-ui-fullscreen--on": ye.value, "vue-data-ui-fulscreen--off": !ye.value, animated: e.value.useCssAnimation }),
818
- viewBox: `0 0 ${O.value.width <= 0 ? 10 : O.value.width} ${O.value.height <= 0 ? 10 : O.value.height}`,
819
- style: se(`max-width:100%;overflow:visible;background:transparent;color:${e.value.style.color}`),
820
- onMouseleave: Re
847
+ ref: Fe,
848
+ xmlns: c($l),
849
+ class: St({ "vue-data-ui-fullscreen--on": re.value, "vue-data-ui-fulscreen--off": !re.value, animated: e.value.useCssAnimation }),
850
+ viewBox: `0 0 ${E.value.width <= 0 ? 10 : E.value.width} ${E.value.height <= 0 ? 10 : E.value.height}`,
851
+ style: ne(`max-width:100%;overflow:visible;background:transparent;color:${e.value.style.color}`),
852
+ onMouseleave: Ge
821
853
  }, [
822
- Ce(c(Et)),
854
+ _e(c(Yt)),
823
855
  l.$slots["chart-background"] ? (r(), y("foreignObject", {
824
856
  key: 0,
825
857
  x: 0,
826
858
  y: 0,
827
- width: O.value.width <= 0 ? 10 : O.value.width,
828
- height: O.value.height <= 0 ? 10 : O.value.height,
859
+ width: E.value.width <= 0 ? 10 : E.value.width,
860
+ height: E.value.height <= 0 ? 10 : E.value.height,
829
861
  style: {
830
862
  pointerEvents: "none"
831
863
  }
832
864
  }, [
833
865
  V(l.$slots, "chart-background", {}, void 0, !0)
834
- ], 8, Wl)) : x("", !0),
835
- e.value.style.layout.axis.show ? (r(), y("g", Fl, [
866
+ ], 8, Rl)) : x("", !0),
867
+ e.value.style.layout.axis.show ? (r(), y("g", Vl, [
836
868
  w("line", {
837
- x1: N.value.x,
838
- x2: N.value.x,
869
+ x1: D.value.x,
870
+ x2: D.value.x,
839
871
  y1: n.value.top,
840
872
  y2: n.value.bottom,
841
873
  stroke: e.value.style.layout.axis.stroke,
842
874
  "stroke-width": e.value.style.layout.axis.strokeWidth,
843
875
  "stroke-linecap": "round"
844
- }, null, 8, Il),
876
+ }, null, 8, jl),
845
877
  w("line", {
846
878
  x1: n.value.left,
847
879
  x2: n.value.right,
848
- y1: N.value.y,
849
- y2: N.value.y,
880
+ y1: D.value.y,
881
+ y2: D.value.y,
850
882
  stroke: e.value.style.layout.axis.stroke,
851
883
  "stroke-width": e.value.style.layout.axis.strokeWidth,
852
884
  "stroke-linecap": "round"
853
- }, null, 8, Xl)
885
+ }, null, 8, Ul)
854
886
  ])) : x("", !0),
855
- e.value.style.layout.marginalBars.show ? (r(), y("g", Yl, [
887
+ e.value.style.layout.marginalBars.show ? (r(), y("g", Gl, [
856
888
  w("defs", null, [
857
889
  w("linearGradient", {
858
- id: `marginal_x_${F.value}`,
890
+ id: `marginal_x_${N.value}`,
859
891
  x1: "0%",
860
892
  y1: "0%",
861
893
  x2: "0%",
@@ -864,14 +896,14 @@ const El = ["id"], Ol = ["id"], Nl = ["xmlns", "viewBox"], Wl = ["width", "heigh
864
896
  w("stop", {
865
897
  offset: "0%",
866
898
  "stop-color": e.value.style.layout.marginalBars.fill
867
- }, null, 8, Rl),
899
+ }, null, 8, Hl),
868
900
  w("stop", {
869
901
  offset: "100%",
870
902
  "stop-color": e.value.style.backgroundColor
871
- }, null, 8, Vl)
872
- ], 8, Dl),
903
+ }, null, 8, Zl)
904
+ ], 8, ql),
873
905
  w("linearGradient", {
874
- id: `marginal_y_${F.value}`,
906
+ id: `marginal_y_${N.value}`,
875
907
  x1: "0%",
876
908
  x2: "100%",
877
909
  y1: "0%",
@@ -880,124 +912,124 @@ const El = ["id"], Ol = ["id"], Nl = ["xmlns", "viewBox"], Wl = ["width", "heigh
880
912
  w("stop", {
881
913
  offset: "0%",
882
914
  "stop-color": e.value.style.backgroundColor
883
- }, null, 8, Ul),
915
+ }, null, 8, Kl),
884
916
  w("stop", {
885
917
  offset: "100%",
886
918
  "stop-color": e.value.style.layout.marginalBars.fill
887
- }, null, 8, Gl)
888
- ], 8, jl)
919
+ }, null, 8, Ql)
920
+ ], 8, Jl)
889
921
  ]),
890
- (r(!0), y(H, null, K(C.value.x, (t, o) => (r(), y("g", null, [
891
- t && C.value.avgX[o] ? (r(), y("rect", {
922
+ (r(!0), y(Z, null, K(A.value.x, (t, o) => (r(), y("g", null, [
923
+ t && A.value.avgX[o] ? (r(), y("rect", {
892
924
  key: 0,
893
- x: C.value.avgX[o] - n.value.width / k.value / 2,
894
- y: n.value.top - e.value.style.layout.marginalBars.offset - t / C.value.maxX * e.value.style.layout.marginalBars.size,
895
- width: n.value.width / k.value <= 0 ? 1e-4 : n.value.width / k.value,
896
- height: t / C.value.maxX * e.value.style.layout.marginalBars.size <= 0 ? 1e-4 : t / C.value.maxX * e.value.style.layout.marginalBars.size,
897
- fill: e.value.style.layout.marginalBars.useGradient ? `url(#marginal_x_${F.value})` : e.value.style.layout.marginalBars.fill,
898
- style: se([`opacity:${e.value.style.layout.marginalBars.opacity}`, { "pointer-events": "none" }]),
925
+ x: A.value.avgX[o] - n.value.width / b.value / 2,
926
+ y: n.value.top - e.value.style.layout.marginalBars.offset - t / A.value.maxX * e.value.style.layout.marginalBars.size,
927
+ width: n.value.width / b.value <= 0 ? 1e-4 : n.value.width / b.value,
928
+ height: t / A.value.maxX * e.value.style.layout.marginalBars.size <= 0 ? 1e-4 : t / A.value.maxX * e.value.style.layout.marginalBars.size,
929
+ fill: e.value.style.layout.marginalBars.useGradient ? `url(#marginal_x_${N.value})` : e.value.style.layout.marginalBars.fill,
930
+ style: ne([`opacity:${e.value.style.layout.marginalBars.opacity}`, { "pointer-events": "none" }]),
899
931
  stroke: e.value.style.backgroundColor,
900
932
  "stroke-width": e.value.style.layout.marginalBars.strokeWidth,
901
933
  rx: e.value.style.layout.marginalBars.borderRadius
902
- }, null, 12, ql)) : x("", !0),
903
- C.value.avgX[o] ? (r(), y("rect", {
934
+ }, null, 12, ea)) : x("", !0),
935
+ A.value.avgX[o] ? (r(), y("rect", {
904
936
  key: 1,
905
- x: C.value.avgX[o] - n.value.width / k.value / 2,
937
+ x: A.value.avgX[o] - n.value.width / b.value / 2,
906
938
  y: n.value.top - e.value.style.layout.marginalBars.offset - e.value.style.layout.marginalBars.size,
907
- width: n.value.width / k.value <= 0 ? 1e-4 : n.value.width / k.value,
939
+ width: n.value.width / b.value <= 0 ? 1e-4 : n.value.width / b.value,
908
940
  height: Math.max(0.1, e.value.style.layout.marginalBars.size),
909
941
  fill: "transparent",
910
- onMouseenter: (a) => qt(o),
911
- onMouseleave: s[0] || (s[0] = (a) => Re())
912
- }, null, 40, Hl)) : x("", !0),
913
- C.value.avgX[o] && ge.value != null && ge.value === o ? (r(), y("g", Zl, [
942
+ onMouseenter: (a) => el(o),
943
+ onMouseleave: s[0] || (s[0] = (a) => Ge())
944
+ }, null, 40, ta)) : x("", !0),
945
+ A.value.avgX[o] && ge.value != null && ge.value === o ? (r(), y("g", la, [
914
946
  w("rect", {
915
- x: C.value.avgX[o] - n.value.width / k.value / 2,
947
+ x: A.value.avgX[o] - n.value.width / b.value / 2,
916
948
  y: n.value.top,
917
- width: n.value.width / k.value <= 0 ? 1e-4 : n.value.width / k.value,
949
+ width: n.value.width / b.value <= 0 ? 1e-4 : n.value.width / b.value,
918
950
  height: n.value.height,
919
951
  fill: e.value.style.layout.marginalBars.highlighter.color,
920
952
  "fill-opacity": e.value.style.layout.marginalBars.highlighter.opacity
921
- }, null, 8, Jl),
953
+ }, null, 8, aa),
922
954
  w("line", {
923
- x1: C.value.avgX[o] - n.value.width / k.value / 2,
924
- x2: C.value.avgX[o] - n.value.width / k.value / 2,
955
+ x1: A.value.avgX[o] - n.value.width / b.value / 2,
956
+ x2: A.value.avgX[o] - n.value.width / b.value / 2,
925
957
  y1: 0,
926
958
  y2: n.value.top + n.value.height,
927
959
  stroke: e.value.style.layout.marginalBars.highlighter.stroke,
928
960
  "stroke-dasharray": e.value.style.layout.marginalBars.highlighter.strokeDasharray,
929
961
  "stroke-width": e.value.style.layout.marginalBars.highlighter.strokeWidth,
930
962
  style: { transition: "none !important", animation: "none !important" }
931
- }, null, 8, Kl),
963
+ }, null, 8, oa),
932
964
  w("line", {
933
- x1: C.value.avgX[o] - n.value.width / k.value / 2 + (n.value.width / k.value <= 0 ? 1e-4 : n.value.width / k.value),
934
- x2: C.value.avgX[o] - n.value.width / k.value / 2 + (n.value.width / k.value <= 0 ? 1e-4 : n.value.width / k.value),
965
+ x1: A.value.avgX[o] - n.value.width / b.value / 2 + (n.value.width / b.value <= 0 ? 1e-4 : n.value.width / b.value),
966
+ x2: A.value.avgX[o] - n.value.width / b.value / 2 + (n.value.width / b.value <= 0 ? 1e-4 : n.value.width / b.value),
935
967
  y1: 0,
936
968
  y2: n.value.top + n.value.height,
937
969
  stroke: e.value.style.layout.marginalBars.highlighter.stroke,
938
970
  "stroke-dasharray": e.value.style.layout.marginalBars.highlighter.strokeDasharray,
939
971
  "stroke-width": e.value.style.layout.marginalBars.highlighter.strokeWidth,
940
972
  style: { transition: "none !important", animation: "none !important" }
941
- }, null, 8, Ql)
973
+ }, null, 8, sa)
942
974
  ])) : x("", !0)
943
975
  ]))), 256)),
944
- (r(!0), y(H, null, K(C.value.y, (t, o) => (r(), y("g", null, [
945
- t && C.value.avgY[o] ? (r(), y("rect", {
976
+ (r(!0), y(Z, null, K(A.value.y, (t, o) => (r(), y("g", null, [
977
+ t && A.value.avgY[o] ? (r(), y("rect", {
946
978
  key: 0,
947
979
  x: n.value.right + e.value.style.layout.marginalBars.offset,
948
- y: C.value.avgY[o] - n.value.height / k.value / 2,
949
- height: n.value.height / k.value <= 0 ? 1e-4 : n.value.height / k.value,
950
- width: t / C.value.maxY * e.value.style.layout.marginalBars.size <= 0 ? 1e-4 : t / C.value.maxY * e.value.style.layout.marginalBars.size,
951
- fill: e.value.style.layout.marginalBars.useGradient ? `url(#marginal_y_${F.value})` : e.value.style.layout.marginalBars.fill,
952
- style: se([`opacity:${e.value.style.layout.marginalBars.opacity}`, { "pointer-events": "none" }]),
980
+ y: A.value.avgY[o] - n.value.height / b.value / 2,
981
+ height: n.value.height / b.value <= 0 ? 1e-4 : n.value.height / b.value,
982
+ width: t / A.value.maxY * e.value.style.layout.marginalBars.size <= 0 ? 1e-4 : t / A.value.maxY * e.value.style.layout.marginalBars.size,
983
+ fill: e.value.style.layout.marginalBars.useGradient ? `url(#marginal_y_${N.value})` : e.value.style.layout.marginalBars.fill,
984
+ style: ne([`opacity:${e.value.style.layout.marginalBars.opacity}`, { "pointer-events": "none" }]),
953
985
  stroke: e.value.style.backgroundColor,
954
986
  "stroke-width": e.value.style.layout.marginalBars.strokeWidth,
955
987
  rx: e.value.style.layout.marginalBars.borderRadius
956
- }, null, 12, ea)) : x("", !0),
957
- C.value.avgY[o] ? (r(), y("rect", {
988
+ }, null, 12, na)) : x("", !0),
989
+ A.value.avgY[o] ? (r(), y("rect", {
958
990
  key: 1,
959
991
  x: n.value.right + e.value.style.layout.marginalBars.offset,
960
- y: C.value.avgY[o] - n.value.height / k.value / 2,
992
+ y: A.value.avgY[o] - n.value.height / b.value / 2,
961
993
  width: Math.max(0.1, e.value.style.layout.marginalBars.size),
962
- height: n.value.height / k.value <= 0 ? 1e-4 : n.value.height / k.value,
994
+ height: n.value.height / b.value <= 0 ? 1e-4 : n.value.height / b.value,
963
995
  fill: "transparent",
964
- onMouseenter: (a) => Ht(o),
965
- onMouseleave: s[1] || (s[1] = (a) => Re())
966
- }, null, 40, ta)) : x("", !0),
967
- C.value.avgY[o] && me.value != null && me.value === o ? (r(), y("g", la, [
996
+ onMouseenter: (a) => tl(o),
997
+ onMouseleave: s[1] || (s[1] = (a) => Ge())
998
+ }, null, 40, ua)) : x("", !0),
999
+ A.value.avgY[o] && me.value != null && me.value === o ? (r(), y("g", ia, [
968
1000
  w("rect", {
969
1001
  x: n.value.left,
970
- y: C.value.avgY[o] - n.value.height / k.value / 2,
1002
+ y: A.value.avgY[o] - n.value.height / b.value / 2,
971
1003
  width: n.value.width,
972
- height: n.value.height / k.value <= 0 ? 1e-4 : n.value.height / k.value,
1004
+ height: n.value.height / b.value <= 0 ? 1e-4 : n.value.height / b.value,
973
1005
  fill: e.value.style.layout.marginalBars.highlighter.color,
974
1006
  "fill-opacity": e.value.style.layout.marginalBars.highlighter.opacity
975
- }, null, 8, aa),
1007
+ }, null, 8, ra),
976
1008
  w("line", {
977
1009
  x1: n.value.left,
978
- x2: O.value.width,
979
- y1: C.value.avgY[o] - n.value.height / k.value / 2,
980
- y2: C.value.avgY[o] - n.value.height / k.value / 2,
1010
+ x2: E.value.width,
1011
+ y1: A.value.avgY[o] - n.value.height / b.value / 2,
1012
+ y2: A.value.avgY[o] - n.value.height / b.value / 2,
981
1013
  stroke: e.value.style.layout.marginalBars.highlighter.stroke,
982
1014
  "stroke-dasharray": e.value.style.layout.marginalBars.highlighter.strokeDasharray,
983
1015
  "stroke-width": e.value.style.layout.marginalBars.highlighter.strokeWidth,
984
1016
  style: { transition: "none !important", animation: "none !important" }
985
- }, null, 8, oa),
1017
+ }, null, 8, va),
986
1018
  w("line", {
987
1019
  x1: n.value.left,
988
- x2: O.value.width,
989
- y1: C.value.avgY[o] - n.value.height / k.value / 2 + (n.value.height / k.value <= 0 ? 1e-4 : n.value.height / k.value),
990
- y2: C.value.avgY[o] - n.value.height / k.value / 2 + (n.value.height / k.value <= 0 ? 1e-4 : n.value.height / k.value),
1020
+ x2: E.value.width,
1021
+ y1: A.value.avgY[o] - n.value.height / b.value / 2 + (n.value.height / b.value <= 0 ? 1e-4 : n.value.height / b.value),
1022
+ y2: A.value.avgY[o] - n.value.height / b.value / 2 + (n.value.height / b.value <= 0 ? 1e-4 : n.value.height / b.value),
991
1023
  stroke: e.value.style.layout.marginalBars.highlighter.stroke,
992
1024
  "stroke-dasharray": e.value.style.layout.marginalBars.highlighter.strokeDasharray,
993
1025
  "stroke-width": e.value.style.layout.marginalBars.highlighter.strokeWidth,
994
1026
  style: { transition: "none !important", animation: "none !important" }
995
- }, null, 8, sa)
1027
+ }, null, 8, ya)
996
1028
  ])) : x("", !0)
997
1029
  ]))), 256)),
998
- e.value.style.layout.marginalBars.showLines ? (r(), y("g", na, [
999
- (r(!0), y(H, null, K(Ut.value, (t) => (r(), y(H, null, [
1000
- I.value.includes(t.id) ? x("", !0) : (r(), y("path", {
1030
+ e.value.style.layout.marginalBars.showLines ? (r(), y("g", ca, [
1031
+ (r(!0), y(Z, null, K(Kt.value, (t) => (r(), y(Z, null, [
1032
+ F.value.includes(t.id) ? x("", !0) : (r(), y("path", {
1001
1033
  key: 0,
1002
1034
  d: `M ${t.dX}`,
1003
1035
  stroke: e.value.style.backgroundColor,
@@ -1005,8 +1037,8 @@ const El = ["id"], Ol = ["id"], Nl = ["xmlns", "viewBox"], Wl = ["width", "heigh
1005
1037
  "stroke-linecap": "round",
1006
1038
  "stroke-linejoin": "round",
1007
1039
  fill: "none"
1008
- }, null, 8, ua)),
1009
- I.value.includes(t.id) ? x("", !0) : (r(), y("path", {
1040
+ }, null, 8, da)),
1041
+ F.value.includes(t.id) ? x("", !0) : (r(), y("path", {
1010
1042
  key: 1,
1011
1043
  d: `M ${t.dX}`,
1012
1044
  stroke: t.color,
@@ -1014,8 +1046,8 @@ const El = ["id"], Ol = ["id"], Nl = ["xmlns", "viewBox"], Wl = ["width", "heigh
1014
1046
  "stroke-linecap": "round",
1015
1047
  "stroke-linejoin": "round",
1016
1048
  fill: "none"
1017
- }, null, 8, ia)),
1018
- I.value.includes(t.id) ? x("", !0) : (r(), y("path", {
1049
+ }, null, 8, ha)),
1050
+ F.value.includes(t.id) ? x("", !0) : (r(), y("path", {
1019
1051
  key: 2,
1020
1052
  d: `M ${t.dY}`,
1021
1053
  stroke: e.value.style.backgroundColor,
@@ -1023,8 +1055,8 @@ const El = ["id"], Ol = ["id"], Nl = ["xmlns", "viewBox"], Wl = ["width", "heigh
1023
1055
  "stroke-linecap": "round",
1024
1056
  "stroke-linejoin": "round",
1025
1057
  fill: "none"
1026
- }, null, 8, ra)),
1027
- I.value.includes(t.id) ? x("", !0) : (r(), y("path", {
1058
+ }, null, 8, fa)),
1059
+ F.value.includes(t.id) ? x("", !0) : (r(), y("path", {
1028
1060
  key: 3,
1029
1061
  d: `M ${t.dY}`,
1030
1062
  stroke: t.color,
@@ -1032,58 +1064,58 @@ const El = ["id"], Ol = ["id"], Nl = ["xmlns", "viewBox"], Wl = ["width", "heigh
1032
1064
  "stroke-linecap": "round",
1033
1065
  "stroke-linejoin": "round",
1034
1066
  fill: "none"
1035
- }, null, 8, va))
1067
+ }, null, 8, pa))
1036
1068
  ], 64))), 256))
1037
1069
  ])) : x("", !0)
1038
1070
  ])) : x("", !0),
1039
- e.value.style.layout.plots.giftWrap.show ? (r(), y("g", ya, [
1040
- (r(!0), y(H, null, K(j.value, (t, o) => (r(), y("g", null, [
1071
+ e.value.style.layout.plots.giftWrap.show ? (r(), y("g", ga, [
1072
+ (r(!0), y(Z, null, K(j.value, (t, o) => (r(), y("g", null, [
1041
1073
  t.plots.length > 2 ? (r(), y("polygon", {
1042
1074
  key: 0,
1043
- points: c(ml)({ series: t.plots }),
1044
- fill: c(Se)(t.color, e.value.style.layout.plots.giftWrap.fillOpacity * 100),
1075
+ points: c(_l)({ series: t.plots }),
1076
+ fill: c(Te)(t.color, e.value.style.layout.plots.giftWrap.fillOpacity * 100),
1045
1077
  "stroke-width": e.value.style.layout.plots.giftWrap.strokeWidth,
1046
1078
  "stroke-dasharray": e.value.style.layout.plots.giftWrap.strokeDasharray,
1047
1079
  stroke: t.color,
1048
1080
  "stroke-linejoin": "round",
1049
1081
  "stroke-linecap": "round"
1050
- }, null, 8, ca)) : x("", !0)
1082
+ }, null, 8, ma)) : x("", !0)
1051
1083
  ]))), 256))
1052
1084
  ])) : x("", !0),
1053
- e.value.usePerformanceMode ? x("", !0) : (r(!0), y(H, { key: 4 }, K(j.value, (t, o) => (r(), y("g", null, [
1054
- !t.shape || t.shape === "circle" ? (r(), y("g", da, [
1055
- (r(!0), y(H, null, K(t.plots, (a, u) => (r(), y("circle", {
1085
+ e.value.usePerformanceMode ? x("", !0) : (r(!0), y(Z, { key: 4 }, K(j.value, (t, o) => (r(), y("g", null, [
1086
+ !t.shape || t.shape === "circle" ? (r(), y("g", xa, [
1087
+ (r(!0), y(Z, null, K(t.plots, (a, u) => (r(), y("circle", {
1056
1088
  cx: a.x,
1057
1089
  cy: a.y,
1058
1090
  r: Y.value && Y.value === a.id ? a.weight * 2 : a.weight,
1059
- fill: c(Se)(t.color, e.value.style.layout.plots.opacity * 100),
1091
+ fill: c(Te)(t.color, e.value.style.layout.plots.opacity * 100),
1060
1092
  stroke: e.value.style.layout.plots.stroke,
1061
1093
  "stroke-width": e.value.style.layout.plots.strokeWidth,
1062
- style: se(`opacity:${Y.value && Y.value === a.id ? 1 : e.value.style.layout.plots.significance.useDistanceOpacity ? 1 - Math.abs(a.deviation) / pt.value : e.value.style.layout.plots.significance.show && Math.abs(a.deviation) > e.value.style.layout.plots.significance.deviationThreshold ? e.value.style.layout.plots.significance.opacity : 1}`),
1063
- onMouseover: (i) => Xe(a, o),
1064
- onMouseleave: (i) => _e(a, o),
1065
- onClick: (i) => Ye(a, o)
1066
- }, null, 44, ha))), 256))
1067
- ])) : (r(), y("g", fa, [
1068
- (r(!0), y(H, null, K(t.plots, (a, u) => (r(), te(He, {
1094
+ style: ne(`opacity:${Y.value && Y.value === a.id ? 1 : e.value.style.layout.plots.significance.useDistanceOpacity ? 1 - Math.abs(a.deviation) / xt.value : e.value.style.layout.plots.significance.show && Math.abs(a.deviation) > e.value.style.layout.plots.significance.deviationThreshold ? e.value.style.layout.plots.significance.opacity : 1}`),
1095
+ onMouseover: (i) => Re(a, o),
1096
+ onMouseleave: (i) => Ce(a, o),
1097
+ onClick: (i) => Ve(a, o)
1098
+ }, null, 44, ba))), 256))
1099
+ ])) : (r(), y("g", ka, [
1100
+ (r(!0), y(Z, null, K(t.plots, (a, u) => (r(), le(Ke, {
1069
1101
  plot: { x: a.x, y: a.y },
1070
1102
  radius: Y.value && Y.value === a.id ? a.weight * 2 : a.weight,
1071
1103
  shape: t.shape,
1072
- color: c(Se)(t.color, e.value.style.layout.plots.opacity * 100),
1104
+ color: c(Te)(t.color, e.value.style.layout.plots.opacity * 100),
1073
1105
  stroke: e.value.style.layout.plots.stroke,
1074
1106
  strokeWidth: e.value.style.layout.plots.strokeWidth,
1075
- style: se(`opacity:${Y.value && Y.value === a.id ? 1 : e.value.style.layout.plots.significance.useDistanceOpacity ? 1 - Math.abs(a.deviation) / pt.value : e.value.style.layout.plots.significance.show && Math.abs(a.deviation) > e.value.style.layout.plots.significance.deviationThreshold ? e.value.style.layout.plots.significance.opacity : 1}`),
1076
- onMouseover: (i) => Xe(a, o),
1077
- onMouseleave: (i) => _e(a, o),
1078
- onClick: (i) => Ye(a, o)
1107
+ style: ne(`opacity:${Y.value && Y.value === a.id ? 1 : e.value.style.layout.plots.significance.useDistanceOpacity ? 1 - Math.abs(a.deviation) / xt.value : e.value.style.layout.plots.significance.show && Math.abs(a.deviation) > e.value.style.layout.plots.significance.deviationThreshold ? e.value.style.layout.plots.significance.opacity : 1}`),
1108
+ onMouseover: (i) => Re(a, o),
1109
+ onMouseleave: (i) => Ce(a, o),
1110
+ onClick: (i) => Ve(a, o)
1079
1111
  }, null, 8, ["plot", "radius", "shape", "color", "stroke", "strokeWidth", "style", "onMouseover", "onMouseleave", "onClick"]))), 256))
1080
1112
  ]))
1081
1113
  ]))), 256)),
1082
- e.value.usePerformanceMode ? (r(), y(H, { key: 5 }, [
1114
+ e.value.usePerformanceMode ? (r(), y(Z, { key: 5 }, [
1083
1115
  w("g", {
1084
- "clip-path": `url(#clip_path_${F.value})`
1116
+ "clip-path": `url(#clip_path_${N.value})`
1085
1117
  }, [
1086
- (r(!0), y(H, null, K(Jt.value, (t) => (r(), y("path", {
1118
+ (r(!0), y(Z, null, K(al.value, (t) => (r(), y("path", {
1087
1119
  key: t.id,
1088
1120
  d: t.d,
1089
1121
  fill: t.fill,
@@ -1092,14 +1124,14 @@ const El = ["id"], Ol = ["id"], Nl = ["xmlns", "viewBox"], Wl = ["width", "heigh
1092
1124
  "stroke-opacity": t.strokeOpacity,
1093
1125
  "vector-effect": "non-scaling-stroke",
1094
1126
  "paint-order": "fill"
1095
- }, null, 8, ga))), 128))
1096
- ], 8, pa),
1097
- p.value && e.value.style.layout.plots.selectors.show ? (r(), y("g", ma, [
1098
- Ce(He, {
1127
+ }, null, 8, $a))), 128))
1128
+ ], 8, wa),
1129
+ p.value && e.value.style.layout.plots.selectors.show ? (r(), y("g", _a, [
1130
+ _e(Ke, {
1099
1131
  shape: p.value.shape || "circle",
1100
1132
  color: p.value.color,
1101
1133
  plot: { x: p.value.x, y: p.value.y },
1102
- radius: Math.max(4 * _t[p.value.shape || "circle"], p.value.weight * 2),
1134
+ radius: Math.max(4 * Mt[p.value.shape || "circle"], p.value.weight * 2),
1103
1135
  stroke: e.value.style.layout.plots.stroke,
1104
1136
  strokeWidth: e.value.style.layout.plots.strokeWidth
1105
1137
  }, null, 8, ["shape", "color", "plot", "radius", "stroke", "strokeWidth"])
@@ -1110,14 +1142,14 @@ const El = ["id"], Ol = ["id"], Nl = ["xmlns", "viewBox"], Wl = ["width", "heigh
1110
1142
  width: Math.max(1e-4, n.value.width),
1111
1143
  height: Math.max(1e-4, n.value.height),
1112
1144
  fill: "transparent",
1113
- onMousemove: s[2] || (s[2] = (...t) => c($t) && c($t)(...t)),
1114
- onMouseleave: Qt,
1115
- onClick: el
1116
- }, null, 40, xa)
1145
+ onMousemove: s[2] || (s[2] = (...t) => c(Ct) && c(Ct)(...t)),
1146
+ onMouseleave: sl,
1147
+ onClick: nl
1148
+ }, null, 40, Ma)
1117
1149
  ], 64)) : x("", !0),
1118
- p.value && e.value.style.layout.plots.selectors.show ? (r(), y("g", ka, [
1150
+ p.value && e.value.style.layout.plots.selectors.show ? (r(), y("g", Ca, [
1119
1151
  w("line", {
1120
- x1: N.value.x,
1152
+ x1: D.value.x,
1121
1153
  x2: p.value.x,
1122
1154
  y1: p.value.y,
1123
1155
  y2: p.value.y,
@@ -1126,190 +1158,190 @@ const El = ["id"], Ol = ["id"], Nl = ["xmlns", "viewBox"], Wl = ["width", "heigh
1126
1158
  "stroke-dasharray": e.value.style.layout.plots.selectors.strokeDasharray,
1127
1159
  "stroke-linecap": "round",
1128
1160
  class: "line-pointer"
1129
- }, null, 8, ba),
1161
+ }, null, 8, Aa),
1130
1162
  w("line", {
1131
1163
  x1: p.value.x,
1132
1164
  x2: p.value.x,
1133
- y1: N.value.y,
1165
+ y1: D.value.y,
1134
1166
  y2: p.value.y,
1135
1167
  stroke: e.value.style.layout.plots.selectors.stroke,
1136
1168
  "stroke-width": e.value.style.layout.plots.selectors.strokeWidth,
1137
1169
  "stroke-dasharray": e.value.style.layout.plots.selectors.strokeDasharray,
1138
1170
  "stroke-linecap": "round",
1139
1171
  class: "line-pointer"
1140
- }, null, 8, wa),
1172
+ }, null, 8, Sa),
1141
1173
  w("text", {
1142
- x: N.value.x + (p.value.x > N.value.x ? -6 : 6),
1174
+ x: D.value.x + (p.value.x > D.value.x ? -6 : 6),
1143
1175
  y: p.value.y + e.value.style.layout.plots.selectors.labels.fontSize / 3,
1144
1176
  "font-size": e.value.style.layout.plots.selectors.labels.fontSize,
1145
1177
  fill: e.value.style.layout.plots.selectors.labels.color,
1146
1178
  "font-weight": e.value.style.layout.plots.selectors.labels.bold ? "bold" : "normal",
1147
- "text-anchor": p.value.x > N.value.x ? "end" : "start"
1148
- }, G(c(ne)(
1179
+ "text-anchor": p.value.x > D.value.x ? "end" : "start"
1180
+ }, G(c(ue)(
1149
1181
  e.value.style.layout.plots.selectors.labels.y.formatter,
1150
- c(q)(p.value.v.y),
1182
+ c(H)(p.value.v.y),
1151
1183
  c(Q)({
1152
1184
  p: e.value.style.layout.plots.selectors.labels.prefix,
1153
- v: c(q)(p.value.v.y),
1185
+ v: c(H)(p.value.v.y),
1154
1186
  s: e.value.style.layout.plots.selectors.labels.suffix,
1155
1187
  r: e.value.style.layout.plots.selectors.labels.rounding
1156
1188
  }),
1157
1189
  { datapoint: p.value }
1158
- )), 9, _a),
1190
+ )), 9, La),
1159
1191
  w("text", {
1160
1192
  x: p.value.x,
1161
- y: N.value.y + (p.value.y > N.value.y ? -6 : e.value.style.layout.plots.selectors.labels.fontSize + 6),
1193
+ y: D.value.y + (p.value.y > D.value.y ? -6 : e.value.style.layout.plots.selectors.labels.fontSize + 6),
1162
1194
  "font-size": e.value.style.layout.plots.selectors.labels.fontSize,
1163
1195
  fill: e.value.style.layout.plots.selectors.labels.color,
1164
1196
  "font-weight": e.value.style.layout.plots.selectors.labels.bold ? "bold" : "normal",
1165
1197
  "text-anchor": "middle"
1166
- }, G(c(ne)(
1198
+ }, G(c(ue)(
1167
1199
  e.value.style.layout.plots.selectors.labels.y.formatter,
1168
- c(q)(p.value.v.x),
1200
+ c(H)(p.value.v.x),
1169
1201
  c(Q)({
1170
1202
  p: e.value.style.layout.plots.selectors.labels.prefix,
1171
- v: c(q)(p.value.v.x),
1203
+ v: c(H)(p.value.v.x),
1172
1204
  s: e.value.style.layout.plots.selectors.labels.suffix,
1173
1205
  r: e.value.style.layout.plots.selectors.labels.rounding
1174
1206
  }),
1175
1207
  { datapoint: p.value }
1176
- )), 9, $a),
1208
+ )), 9, Ba),
1177
1209
  w("circle", {
1178
- cx: N.value.x,
1210
+ cx: D.value.x,
1179
1211
  cy: p.value.y,
1180
1212
  r: e.value.style.layout.plots.selectors.markers.radius,
1181
1213
  fill: e.value.style.layout.plots.selectors.markers.fill,
1182
1214
  stroke: e.value.style.layout.plots.selectors.markers.stroke,
1183
1215
  "stroke-width": e.value.style.layout.plots.selectors.markers.strokeWidth,
1184
1216
  class: "line-pointer"
1185
- }, null, 8, Ma),
1217
+ }, null, 8, Ta),
1186
1218
  w("circle", {
1187
1219
  cx: p.value.x,
1188
- cy: N.value.y,
1220
+ cy: D.value.y,
1189
1221
  r: e.value.style.layout.plots.selectors.markers.radius,
1190
1222
  fill: e.value.style.layout.plots.selectors.markers.fill,
1191
1223
  stroke: e.value.style.layout.plots.selectors.markers.stroke,
1192
1224
  "stroke-width": e.value.style.layout.plots.selectors.markers.strokeWidth,
1193
1225
  class: "line-pointer"
1194
- }, null, 8, Aa),
1226
+ }, null, 8, za),
1195
1227
  e.value.style.layout.plots.selectors.labels.showName ? (r(), y("text", {
1196
1228
  key: 0,
1197
1229
  x: p.value.x,
1198
- y: p.value.y + (p.value.y < N.value.y ? -e.value.style.layout.plots.selectors.labels.fontSize / 2 : e.value.style.layout.plots.selectors.labels.fontSize),
1230
+ y: p.value.y + (p.value.y < D.value.y ? -e.value.style.layout.plots.selectors.labels.fontSize / 2 : e.value.style.layout.plots.selectors.labels.fontSize),
1199
1231
  "font-size": e.value.style.layout.plots.selectors.labels.fontSize,
1200
1232
  fill: e.value.style.layout.plots.selectors.labels.color,
1201
1233
  "font-weight": e.value.style.layout.plots.selectors.labels.bold ? "bold" : "normal",
1202
- "text-anchor": p.value.x < n.value.left + 100 ? "start" : p.value.x > n.value.right - 100 ? "end" : p.value.x > N.value.x ? "start" : "end"
1203
- }, G(p.value.v.name), 9, Ca)) : x("", !0)
1234
+ "text-anchor": p.value.x < n.value.left + 100 ? "start" : p.value.x > n.value.right - 100 ? "end" : p.value.x > D.value.x ? "start" : "end"
1235
+ }, G(p.value.v.name), 9, Pa)) : x("", !0)
1204
1236
  ])) : x("", !0),
1205
1237
  e.value.style.layout.dataLabels.xAxis.show ? (r(), y("g", {
1206
1238
  key: 7,
1207
1239
  ref_key: "xAxisLabelLeft",
1208
- ref: ze
1240
+ ref: Oe
1209
1241
  }, [
1210
1242
  w("text", {
1211
- id: `vue-ui-scatter-xAxis-label-${F.value}`,
1243
+ id: `vue-ui-scatter-xAxis-label-${N.value}`,
1212
1244
  transform: `translate(${e.value.style.layout.dataLabels.xAxis.fontSize}, ${n.value.top + n.value.height / 2}), rotate(-90)`,
1213
1245
  "text-anchor": "middle",
1214
1246
  "font-size": e.value.style.layout.dataLabels.xAxis.fontSize,
1215
1247
  "font-weight": e.value.style.layout.dataLabels.xAxis.bold ? "bold" : "normal",
1216
1248
  fill: e.value.style.layout.dataLabels.xAxis.color
1217
- }, G(e.value.style.layout.dataLabels.xAxis.name), 9, Sa),
1249
+ }, G(e.value.style.layout.dataLabels.xAxis.name), 9, Oa),
1218
1250
  w("text", {
1219
1251
  "text-anchor": "middle",
1220
1252
  "font-size": e.value.style.layout.dataLabels.xAxis.fontSize,
1221
1253
  fill: e.value.style.layout.dataLabels.xAxis.color,
1222
- transform: `translate(${e.value.style.layout.dataLabels.xAxis.name ? e.value.style.layout.dataLabels.xAxis.fontSize * 3 : 0}, ${N.value.y + e.value.style.layout.dataLabels.xAxis.fontSize / 3}), rotate(-90)`
1223
- }, G(c(ne)(
1254
+ transform: `translate(${e.value.style.layout.dataLabels.xAxis.name ? e.value.style.layout.dataLabels.xAxis.fontSize * 3 : 0}, ${D.value.y + e.value.style.layout.dataLabels.xAxis.fontSize / 3}), rotate(-90)`
1255
+ }, G(c(ue)(
1224
1256
  e.value.style.layout.plots.selectors.labels.x.formatter,
1225
- c(q)(T.value.xMin),
1257
+ c(H)(z.value.xMin),
1226
1258
  c(Q)({
1227
1259
  p: e.value.style.layout.plots.selectors.labels.prefix,
1228
- v: c(q)(T.value.xMin),
1260
+ v: c(H)(z.value.xMin),
1229
1261
  s: e.value.style.layout.plots.selectors.labels.suffix,
1230
1262
  r: e.value.style.layout.dataLabels.xAxis.rounding
1231
1263
  })
1232
- )), 9, La)
1264
+ )), 9, Ea)
1233
1265
  ], 512)) : x("", !0),
1234
1266
  e.value.style.layout.dataLabels.xAxis.show ? (r(), y("text", {
1235
1267
  key: 8,
1236
1268
  ref_key: "xAxisLabelRight",
1237
- ref: Xt,
1269
+ ref: Ut,
1238
1270
  "text-anchor": "middle",
1239
- transform: `translate(${n.value.right + e.value.style.layout.padding.right + 6}, ${N.value.y + e.value.style.layout.dataLabels.xAxis.fontSize / 3}), rotate(-90)`,
1271
+ transform: `translate(${n.value.right + e.value.style.layout.padding.right + 6}, ${D.value.y + e.value.style.layout.dataLabels.xAxis.fontSize / 3}), rotate(-90)`,
1240
1272
  "font-size": e.value.style.layout.dataLabels.xAxis.fontSize,
1241
1273
  fill: e.value.style.layout.dataLabels.xAxis.color
1242
- }, G(c(ne)(
1274
+ }, G(c(ue)(
1243
1275
  e.value.style.layout.plots.selectors.labels.x.formatter,
1244
- c(q)(T.value.xMax),
1276
+ c(H)(z.value.xMax),
1245
1277
  c(Q)({
1246
1278
  p: e.value.style.layout.plots.selectors.labels.prefix,
1247
- v: c(q)(T.value.xMax),
1279
+ v: c(H)(z.value.xMax),
1248
1280
  s: e.value.style.layout.plots.selectors.labels.suffix,
1249
1281
  r: e.value.style.layout.dataLabels.xAxis.rounding
1250
1282
  })
1251
- )), 9, Ba)) : x("", !0),
1283
+ )), 9, Da)) : x("", !0),
1252
1284
  e.value.style.layout.dataLabels.yAxis.show ? (r(), y("text", {
1253
1285
  key: 9,
1254
1286
  ref_key: "yAxisLabelTop",
1255
- ref: Yt,
1256
- x: N.value.x,
1287
+ ref: Gt,
1288
+ x: D.value.x,
1257
1289
  y: n.value.top - e.value.style.layout.dataLabels.yAxis.fontSize,
1258
1290
  "text-anchor": "middle",
1259
1291
  "font-size": e.value.style.layout.dataLabels.yAxis.fontSize,
1260
1292
  fill: e.value.style.layout.dataLabels.yAxis.color
1261
- }, G(c(ne)(
1293
+ }, G(c(ue)(
1262
1294
  e.value.style.layout.plots.selectors.labels.y.formatter,
1263
- c(q)(T.value.yMax),
1295
+ c(H)(z.value.yMax),
1264
1296
  c(Q)({
1265
1297
  p: e.value.style.layout.plots.selectors.labels.prefix,
1266
- v: c(q)(T.value.yMax),
1298
+ v: c(H)(z.value.yMax),
1267
1299
  s: e.value.style.layout.plots.selectors.labels.suffix,
1268
1300
  r: e.value.style.layout.dataLabels.yAxis.rounding
1269
1301
  })
1270
- )), 9, za)) : x("", !0),
1302
+ )), 9, Wa)) : x("", !0),
1271
1303
  e.value.style.layout.dataLabels.yAxis.show ? (r(), y("g", {
1272
1304
  key: 10,
1273
1305
  ref_key: "yAxisLabelBottom",
1274
- ref: Te
1306
+ ref: Ee
1275
1307
  }, [
1276
1308
  w("text", {
1277
- x: N.value.x,
1278
- y: O.value.height - e.value.style.layout.dataLabels.yAxis.fontSize * 2,
1309
+ x: D.value.x,
1310
+ y: E.value.height - e.value.style.layout.dataLabels.yAxis.fontSize * 2,
1279
1311
  "text-anchor": "middle",
1280
1312
  "font-size": e.value.style.layout.dataLabels.yAxis.fontSize,
1281
1313
  fill: e.value.style.layout.dataLabels.yAxis.color
1282
- }, G(c(ne)(
1314
+ }, G(c(ue)(
1283
1315
  e.value.style.layout.plots.selectors.labels.y.formatter,
1284
- c(q)(T.value.yMin),
1316
+ c(H)(z.value.yMin),
1285
1317
  c(Q)({
1286
1318
  p: e.value.style.layout.plots.selectors.labels.prefix,
1287
- v: c(q)(T.value.yMin),
1319
+ v: c(H)(z.value.yMin),
1288
1320
  s: e.value.style.layout.plots.selectors.labels.suffix,
1289
1321
  r: e.value.style.layout.dataLabels.yAxis.rounding
1290
1322
  })
1291
- )), 9, Ta),
1323
+ )), 9, Na),
1292
1324
  w("text", {
1293
1325
  "text-anchor": "middle",
1294
1326
  "font-size": e.value.style.layout.dataLabels.yAxis.fontSize,
1295
1327
  "font-weight": e.value.style.layout.dataLabels.yAxis.bold ? "bold" : "normal",
1296
1328
  fill: e.value.style.layout.dataLabels.yAxis.color,
1297
1329
  x: n.value.left + n.value.width / 2,
1298
- y: O.value.height
1299
- }, G(e.value.style.layout.dataLabels.yAxis.name), 9, Pa)
1330
+ y: E.value.height
1331
+ }, G(e.value.style.layout.dataLabels.yAxis.name), 9, Fa)
1300
1332
  ], 512)) : x("", !0),
1301
1333
  w("clipPath", {
1302
- id: `clip_path_${F.value}`
1334
+ id: `clip_path_${N.value}`
1303
1335
  }, [
1304
1336
  w("rect", {
1305
1337
  x: n.value.left,
1306
1338
  y: n.value.top,
1307
1339
  width: n.value.width <= 0 ? 1e-4 : n.value.width,
1308
1340
  height: n.value.height <= 0 ? 1e-4 : n.value.height
1309
- }, null, 8, Oa)
1310
- ], 8, Ea),
1311
- e.value.style.layout.correlation.show ? (r(), y("g", Na, [
1312
- (r(!0), y(H, null, K(j.value, (t, o) => (r(), y("line", {
1341
+ }, null, 8, Xa)
1342
+ ], 8, Ia),
1343
+ e.value.style.layout.correlation.show ? (r(), y("g", Ya, [
1344
+ (r(!0), y(Z, null, K(j.value, (t, o) => (r(), y("line", {
1313
1345
  x1: t.correlation.x1,
1314
1346
  x2: t.correlation.x2,
1315
1347
  y1: t.correlation.y1,
@@ -1317,9 +1349,9 @@ const El = ["id"], Ol = ["id"], Nl = ["xmlns", "viewBox"], Wl = ["width", "heigh
1317
1349
  "stroke-dasharray": e.value.style.layout.correlation.strokeDasharray,
1318
1350
  stroke: t.color,
1319
1351
  "stroke-width": e.value.style.layout.correlation.strokeWidth,
1320
- "clip-path": `url(#clip_path_${F.value})`
1321
- }, null, 8, Wa))), 256)),
1322
- (r(!0), y(H, null, K(j.value, (t, o) => (r(), y("g", null, [
1352
+ "clip-path": `url(#clip_path_${N.value})`
1353
+ }, null, 8, Ra))), 256)),
1354
+ (r(!0), y(Z, null, K(j.value, (t, o) => (r(), y("g", null, [
1323
1355
  e.value.style.layout.correlation.label.show ? (r(), y("text", {
1324
1356
  key: 0,
1325
1357
  x: t.correlation.x2,
@@ -1329,56 +1361,56 @@ const El = ["id"], Ol = ["id"], Nl = ["xmlns", "viewBox"], Wl = ["width", "heigh
1329
1361
  "font-size": e.value.style.layout.correlation.label.fontSize,
1330
1362
  "font-weight": e.value.style.layout.correlation.label.bold ? "bold" : "normal"
1331
1363
  }, G(c(Q)({
1332
- v: c(q)(t.correlation.coefficient),
1364
+ v: c(H)(t.correlation.coefficient),
1333
1365
  r: e.value.style.layout.correlation.label.roundingValue
1334
- })), 9, Fa)) : x("", !0)
1366
+ })), 9, Va)) : x("", !0)
1335
1367
  ]))), 256))
1336
1368
  ])) : x("", !0),
1337
- V(l.$slots, "svg", { svg: O.value }, void 0, !0)
1338
- ], 46, Nl)),
1339
- l.$slots.watermark ? (r(), y("div", Ia, [
1340
- V(l.$slots, "watermark", fe(pe({ isPrinting: c(yt) || c(ct) })), void 0, !0)
1369
+ V(l.$slots, "svg", { svg: E.value }, void 0, !0)
1370
+ ], 46, Yl)),
1371
+ l.$slots.watermark ? (r(), y("div", ja, [
1372
+ V(l.$slots, "watermark", fe(pe({ isPrinting: c(ht) || c(ft) })), void 0, !0)
1341
1373
  ])) : x("", !0),
1342
1374
  w("div", {
1343
- id: `legend-bottom-${F.value}`
1344
- }, null, 8, Xa),
1345
- st.value ? (r(), te(sl, {
1375
+ id: `legend-bottom-${N.value}`
1376
+ }, null, 8, Ua),
1377
+ it.value ? (r(), le(vl, {
1346
1378
  key: 5,
1347
- to: e.value.style.legend.position === "top" ? `#legend-top-${F.value}` : `#legend-bottom-${F.value}`
1379
+ to: e.value.style.legend.position === "top" ? `#legend-top-${N.value}` : `#legend-bottom-${N.value}`
1348
1380
  }, [
1349
1381
  w("div", {
1350
1382
  ref_key: "chartLegend",
1351
- ref: Qe
1383
+ ref: lt
1352
1384
  }, [
1353
- e.value.style.legend.show ? (r(), te(Bl, {
1354
- key: `legend_${ot.value}`,
1355
- legendSet: ue.value,
1356
- config: Vt.value,
1357
- onClickMarker: s[3] || (s[3] = ({ legend: t }) => mt(t.id))
1385
+ e.value.style.legend.show ? (r(), le(Dl, {
1386
+ key: `legend_${ut.value}`,
1387
+ legendSet: ie.value,
1388
+ config: Zt.value,
1389
+ onClickMarker: s[3] || (s[3] = ({ legend: t }) => kt(t.id))
1358
1390
  }, {
1359
- item: R(({ legend: t }) => [
1391
+ item: X(({ legend: t }) => [
1360
1392
  w("div", {
1361
1393
  onClick: (o) => t.segregate(),
1362
- style: se(`opacity:${I.value.includes(t.id) ? 0.5 : 1}`)
1363
- }, G(t.name), 13, Ya)
1394
+ style: ne(`opacity:${F.value.includes(t.id) ? 0.5 : 1}`)
1395
+ }, G(t.name), 13, Ga)
1364
1396
  ]),
1365
1397
  _: 1
1366
1398
  }, 8, ["legendSet", "config"])) : V(l.$slots, "legend", {
1367
1399
  key: 1,
1368
- legend: ue.value
1400
+ legend: ie.value
1369
1401
  }, void 0, !0)
1370
1402
  ], 512)
1371
1403
  ], 8, ["to"])) : x("", !0),
1372
1404
  l.$slots.source ? (r(), y("div", {
1373
1405
  key: 6,
1374
1406
  ref_key: "source",
1375
- ref: et,
1407
+ ref: at,
1376
1408
  dir: "auto"
1377
1409
  }, [
1378
1410
  V(l.$slots, "source", {}, void 0, !0)
1379
1411
  ], 512)) : x("", !0),
1380
- Ce(c(Nt), {
1381
- show: Z.value.showTooltip && Le.value,
1412
+ _e(c(Dt), {
1413
+ show: q.value.showTooltip && ze.value,
1382
1414
  backgroundColor: e.value.style.tooltip.backgroundColor,
1383
1415
  color: e.value.style.tooltip.color,
1384
1416
  borderRadius: e.value.style.tooltip.borderRadius,
@@ -1388,23 +1420,23 @@ const El = ["id"], Ol = ["id"], Nl = ["xmlns", "viewBox"], Wl = ["width", "heigh
1388
1420
  backgroundOpacity: e.value.style.tooltip.backgroundOpacity,
1389
1421
  position: e.value.style.tooltip.position,
1390
1422
  offsetY: e.value.style.tooltip.offsetY,
1391
- parent: le.value,
1392
- content: Be.value,
1393
- isFullscreen: ye.value,
1423
+ parent: te.value,
1424
+ content: Pe.value,
1425
+ isFullscreen: re.value,
1394
1426
  isCustom: e.value.style.tooltip.customFormat && typeof e.value.style.tooltip.customFormat == "function",
1395
1427
  smooth: e.value.style.tooltip.smooth,
1396
1428
  backdropFilter: e.value.style.tooltip.backdropFilter
1397
1429
  }, {
1398
- "tooltip-before": R(() => [
1399
- V(l.$slots, "tooltip-before", fe(pe({ ...Ie.value })), void 0, !0)
1430
+ "tooltip-before": X(() => [
1431
+ V(l.$slots, "tooltip-before", fe(pe({ ...Ye.value })), void 0, !0)
1400
1432
  ]),
1401
- "tooltip-after": R(() => [
1402
- V(l.$slots, "tooltip-after", fe(pe({ ...Ie.value })), void 0, !0)
1433
+ "tooltip-after": X(() => [
1434
+ V(l.$slots, "tooltip-after", fe(pe({ ...Ye.value })), void 0, !0)
1403
1435
  ]),
1404
- default: R(() => [
1405
- e.value.style.tooltip.showShape ? (r(), y("div", Da, [
1406
- (r(), y("svg", Ra, [
1407
- Ce(He, {
1436
+ default: X(() => [
1437
+ e.value.style.tooltip.showShape ? (r(), y("div", qa, [
1438
+ (r(), y("svg", Ha, [
1439
+ _e(Ke, {
1408
1440
  shape: p.value.shape,
1409
1441
  color: p.value.color,
1410
1442
  plot: { x: 10, y: 10 },
@@ -1415,52 +1447,66 @@ const El = ["id"], Ol = ["id"], Nl = ["xmlns", "viewBox"], Wl = ["width", "heigh
1415
1447
  ]),
1416
1448
  _: 3
1417
1449
  }, 8, ["show", "backgroundColor", "color", "borderRadius", "borderColor", "borderWidth", "fontSize", "backgroundOpacity", "position", "offsetY", "parent", "content", "isFullscreen", "isCustom", "smooth", "backdropFilter"]),
1418
- Ze.value ? (r(), te(c(Tt), {
1419
- key: 7,
1420
- hideDetails: "",
1421
- config: {
1422
- open: Z.value.showTable,
1423
- maxHeight: 1e4,
1424
- body: {
1425
- backgroundColor: e.value.style.backgroundColor,
1426
- color: e.value.style.color
1427
- },
1428
- head: {
1429
- backgroundColor: e.value.style.backgroundColor,
1430
- color: e.value.style.color
1431
- }
1432
- }
1433
- }, {
1434
- content: R(() => [
1435
- (r(), te(c(Pt), {
1436
- key: `table_${at.value}`,
1437
- colNames: $e.value.colNames,
1438
- head: $e.value.head,
1439
- body: $e.value.body,
1440
- config: $e.value.config,
1441
- title: `${e.value.style.title.text}${e.value.style.title.subtitle.text ? ` : ${e.value.style.title.subtitle.text}` : ""}`,
1442
- onClose: s[4] || (s[4] = (t) => Z.value.showTable = !1)
1450
+ Qe.value ? (r(), le(yl(be.value.component), cl({ key: 7 }, be.value.props, {
1451
+ ref_key: "tableUnit",
1452
+ ref: xe,
1453
+ onClose: s[6] || (s[6] = (t) => q.value.showTable = !1)
1454
+ }), Lt({
1455
+ content: X(() => [
1456
+ (r(), le(c(Ft), {
1457
+ key: `table_${nt.value}`,
1458
+ colNames: Ae.value.colNames,
1459
+ head: Ae.value.head,
1460
+ body: Ae.value.body,
1461
+ config: Ae.value.config,
1462
+ title: e.value.table.useDialog ? "" : be.value.title,
1463
+ withCloseButton: !e.value.table.useDialog,
1464
+ onClose: s[5] || (s[5] = (t) => q.value.showTable = !1)
1443
1465
  }, {
1444
- th: R(({ th: t }) => [
1445
- nl(G(t), 1)
1466
+ th: X(({ th: t }) => [
1467
+ Bt(G(t), 1)
1446
1468
  ]),
1447
- td: R(({ td: t }) => [
1448
- t.shape ? (r(), y("div", Va, [
1469
+ td: X(({ td: t }) => [
1470
+ t.shape ? (r(), y("div", Za, [
1449
1471
  w("span", null, G(t.content), 1)
1450
1472
  ])) : (r(), y("div", {
1451
1473
  key: 1,
1452
1474
  innerHTML: t
1453
- }, null, 8, ja))
1475
+ }, null, 8, Ja))
1454
1476
  ]),
1455
1477
  _: 1
1456
- }, 8, ["colNames", "head", "body", "config", "title"]))
1478
+ }, 8, ["colNames", "head", "body", "config", "title", "withCloseButton"]))
1457
1479
  ]),
1458
- _: 1
1459
- }, 8, ["config"])) : x("", !0),
1460
- c(nt) ? (r(), te(Al, { key: 8 })) : x("", !0)
1461
- ], 46, El));
1480
+ _: 2
1481
+ }, [
1482
+ e.value.table.useDialog ? {
1483
+ name: "title",
1484
+ fn: X(() => [
1485
+ Bt(G(be.value.title), 1)
1486
+ ]),
1487
+ key: "0"
1488
+ } : void 0,
1489
+ e.value.table.useDialog ? {
1490
+ name: "actions",
1491
+ fn: X(() => [
1492
+ w("button", {
1493
+ tabindex: "0",
1494
+ class: "vue-ui-user-options-button",
1495
+ onClick: s[4] || (s[4] = (t) => je(e.value.userOptions.callbacks.csv))
1496
+ }, [
1497
+ _e(c(Wt), {
1498
+ name: "excel",
1499
+ stroke: be.value.props.color
1500
+ }, null, 8, ["stroke"])
1501
+ ])
1502
+ ]),
1503
+ key: "1"
1504
+ } : void 0
1505
+ ]), 1040)) : x("", !0),
1506
+ c(rt) ? (r(), le(zl, { key: 8 })) : x("", !0)
1507
+ ], 46, Il));
1462
1508
  }
1463
- }, no = /* @__PURE__ */ Pl(Ua, [["__scopeId", "data-v-e6424ed5"]]);
1509
+ }, co = /* @__PURE__ */ Fl(Ka, [["__scopeId", "data-v-3a8aa912"]]);
1464
1510
  export {
1465
- no as default
1511
+ co as default
1466
1512
  };