vue-data-ui 2.4.85 → 2.4.87

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 (170) hide show
  1. package/dist/{Arrow-Ajt3NMEa.cjs → Arrow-B6C-c2DT.cjs} +1 -1
  2. package/dist/{Arrow-Qayb_B0s.js → Arrow-C8PrFeHS.js} +1 -1
  3. package/dist/{BaseIcon-BVrsMbvi.cjs → BaseIcon-CdOKZmHr.cjs} +1 -1
  4. package/dist/{BaseIcon-B8U62FEj.js → BaseIcon-plElWres.js} +1 -1
  5. package/dist/{DataTable-1PQD-SFb.cjs → DataTable-BmKl4AAb.cjs} +1 -1
  6. package/dist/{DataTable-C0tCPQ9i.js → DataTable-CKke7C6w.js} +2 -2
  7. package/dist/{Legend-BJ2Wbqut.cjs → Legend-CY6wjCYY.cjs} +1 -1
  8. package/dist/{Legend-BTpe6qQB.js → Legend-DMeEvZOT.js} +2 -2
  9. package/dist/{PackageVersion-BjfedMsH.cjs → PackageVersion-DvDNPRrJ.cjs} +1 -1
  10. package/dist/{PackageVersion-CENy3Lm2.js → PackageVersion-Rh3rgo6A.js} +1 -1
  11. package/dist/{PenAndPaper-nqRtAh6J.cjs → PenAndPaper--xHLJRME.cjs} +1 -1
  12. package/dist/{PenAndPaper-Dr7ndoP_.js → PenAndPaper-DqVsdeLc.js} +3 -3
  13. package/dist/{Shape-zFv85Gc2.js → Shape-CL3HglYL.js} +1 -1
  14. package/dist/{Shape-Boa32JEn.cjs → Shape-DEwnzwRB.cjs} +1 -1
  15. package/dist/{Slicer-D6QLMg5N.cjs → Slicer-CnNbe-dl.cjs} +1 -1
  16. package/dist/{Slicer-BUYuk07t.js → Slicer-ZryQKOl5.js} +2 -2
  17. package/dist/{Title-CaET2xuF.js → Title-BU5Aq1_x.js} +1 -1
  18. package/dist/{Title-DJUxOiaO.cjs → Title-C10173bN.cjs} +1 -1
  19. package/dist/{Tooltip-C5QuW94e.cjs → Tooltip-CL7aSMgq.cjs} +1 -1
  20. package/dist/{Tooltip-Bkc4233T.js → Tooltip-Dm-obTbx.js} +1 -1
  21. package/dist/{index-COIn1phv.cjs → index-1HOIfTy2.cjs} +1 -1
  22. package/dist/{index-B7nCQFK0.js → index-BG5J_ybN.js} +1 -1
  23. package/dist/style.css +1 -1
  24. package/dist/{useNestedProp-CbMuGGl3.cjs → useNestedProp-BFNnjpX-.cjs} +1 -1
  25. package/dist/{useNestedProp-C9rlBRTT.js → useNestedProp-BN1ZmAKT.js} +1 -1
  26. package/dist/{usePrinter-CQMn1b4E.js → usePrinter-CWeJt84b.js} +1 -1
  27. package/dist/{usePrinter-CXXfgFFN.cjs → usePrinter-i-j4CdEi.cjs} +1 -1
  28. package/dist/{vue-data-ui-Bu_VIHgr.cjs → vue-data-ui-549nX1yu.cjs} +1 -1
  29. package/dist/{vue-data-ui-BnsKGbqb.js → vue-data-ui-B5u9V9lC.js} +60 -60
  30. package/dist/vue-data-ui.cjs +1 -1
  31. package/dist/vue-data-ui.js +1 -1
  32. package/dist/{vue-ui-3d-bar-V5FBS9MA.js → vue-ui-3d-bar-DBtozgXL.js} +38 -38
  33. package/dist/{vue-ui-3d-bar-D39F2dKF.cjs → vue-ui-3d-bar-J7LkJgTZ.cjs} +11 -11
  34. package/dist/{vue-ui-accordion-CGlnNTr8.cjs → vue-ui-accordion-Cd6GaDwU.cjs} +1 -1
  35. package/dist/{vue-ui-accordion-B8ptB5BQ.js → vue-ui-accordion-JBOceVq2.js} +3 -3
  36. package/dist/{vue-ui-age-pyramid-Bjp1R8Ku.js → vue-ui-age-pyramid-BIkYjL8e.js} +29 -29
  37. package/dist/vue-ui-age-pyramid-DeryBRqg.cjs +1 -0
  38. package/dist/{vue-ui-annotator-V9m5fTGG.js → vue-ui-annotator-Bt90Iec6.js} +1 -1
  39. package/dist/{vue-ui-annotator-BoWZZRPg.cjs → vue-ui-annotator-Dw8cVACs.cjs} +1 -1
  40. package/dist/{vue-ui-bullet-DLIxlhFF.cjs → vue-ui-bullet-BMAYQESQ.cjs} +1 -1
  41. package/dist/{vue-ui-bullet-Bqvb5PV-.js → vue-ui-bullet-DzosZUYl.js} +8 -8
  42. package/dist/{vue-ui-candlestick-D4BD8LyJ.cjs → vue-ui-candlestick-BaLnAKB9.cjs} +2 -2
  43. package/dist/{vue-ui-candlestick-DHCtmsh3.js → vue-ui-candlestick-dTATEFOU.js} +48 -48
  44. package/dist/{vue-ui-carousel-table-VIuoh2QI.cjs → vue-ui-carousel-table-CWNI7Ri5.cjs} +1 -1
  45. package/dist/{vue-ui-carousel-table-Cn2RJkSb.js → vue-ui-carousel-table-rMcj65Bo.js} +4 -4
  46. package/dist/{vue-ui-chestnut-C5qUO1uK.js → vue-ui-chestnut-B_NLFSaY.js} +29 -29
  47. package/dist/{vue-ui-chestnut-ClG9HZoC.cjs → vue-ui-chestnut-DjOEVM3w.cjs} +2 -2
  48. package/dist/{vue-ui-cursor-Bo8et-dD.cjs → vue-ui-cursor-CBUwAZd1.cjs} +1 -1
  49. package/dist/{vue-ui-cursor-eJau3iyr.js → vue-ui-cursor-CTvVj3YO.js} +2 -2
  50. package/dist/{vue-ui-dashboard-DnaH9bCw.js → vue-ui-dashboard-CG9J3DLT.js} +2 -2
  51. package/dist/{vue-ui-dashboard-WJqGQ8iR.cjs → vue-ui-dashboard-DcfhPFVi.cjs} +1 -1
  52. package/dist/{vue-ui-digits-qIckO4-r.cjs → vue-ui-digits-B8lUQcKK.cjs} +1 -1
  53. package/dist/{vue-ui-digits-Cqjts2eq.js → vue-ui-digits-CF6qbsmO.js} +2 -2
  54. package/dist/{vue-ui-donut-pprcnbIw.js → vue-ui-donut-Bbkz0M-R.js} +76 -76
  55. package/dist/vue-ui-donut-CzmOCuxn.cjs +1 -0
  56. package/dist/{vue-ui-donut-evolution-EzYvP11F.js → vue-ui-donut-evolution-BkE-sAyn.js} +66 -66
  57. package/dist/vue-ui-donut-evolution-CjFUAKXU.cjs +1 -0
  58. package/dist/vue-ui-dumbbell-BiHzKPGP.cjs +9 -0
  59. package/dist/{vue-ui-dumbbell-DaxcxmnU.js → vue-ui-dumbbell-D8JuHhzi.js} +28 -28
  60. package/dist/vue-ui-flow-CR1Qo5Rt.cjs +1 -0
  61. package/dist/{vue-ui-flow-DbRgaKBu.js → vue-ui-flow-Cie8iHDK.js} +31 -31
  62. package/dist/vue-ui-funnel-B8uRuzDx.cjs +1 -0
  63. package/dist/{vue-ui-funnel-B2del8KB.js → vue-ui-funnel-tW6PGqcE.js} +32 -32
  64. package/dist/vue-ui-galaxy-BfbYEvnO.cjs +1 -0
  65. package/dist/{vue-ui-galaxy-pUYeASJf.js → vue-ui-galaxy-p4j0h3ZX.js} +81 -81
  66. package/dist/{vue-ui-gauge-DpsXpEaW.js → vue-ui-gauge-CtVmazzP.js} +7 -7
  67. package/dist/{vue-ui-gauge-BOXoAgWk.cjs → vue-ui-gauge-DnTOvr4T.cjs} +1 -1
  68. package/dist/{vue-ui-gizmo-Bq9uAmqd.cjs → vue-ui-gizmo-BdlVxVqD.cjs} +1 -1
  69. package/dist/{vue-ui-gizmo-BpYrhkon.js → vue-ui-gizmo-wjZJgWPe.js} +3 -3
  70. package/dist/{vue-ui-heatmap-Cz6_9Veh.js → vue-ui-heatmap-DJXLmzGL.js} +63 -63
  71. package/dist/vue-ui-heatmap-Gd3nkwzC.cjs +1 -0
  72. package/dist/vue-ui-history-plot-CevSrT7E.cjs +1 -0
  73. package/dist/{vue-ui-history-plot-DAotUjSF.js → vue-ui-history-plot-DJQck-9N.js} +69 -69
  74. package/dist/{vue-ui-kpi-D6mp6EQ2.cjs → vue-ui-kpi-D8NVXEfO.cjs} +1 -1
  75. package/dist/{vue-ui-kpi-Ch2p7m-i.js → vue-ui-kpi-MK6JH8yi.js} +3 -3
  76. package/dist/{vue-ui-mini-loader-E13lmwfO.js → vue-ui-mini-loader-UiC0NYsO.js} +2 -2
  77. package/dist/{vue-ui-mini-loader-CO-KGVlC.cjs → vue-ui-mini-loader-a8JZaxIy.cjs} +1 -1
  78. package/dist/vue-ui-molecule-CXgKUNCL.cjs +1 -0
  79. package/dist/{vue-ui-molecule-C69K6EPO.js → vue-ui-molecule-Cz9zZQ95.js} +155 -155
  80. package/dist/vue-ui-mood-radar-B-PSds5c.cjs +1 -0
  81. package/dist/{vue-ui-mood-radar-DDtky572.js → vue-ui-mood-radar-BMMCFkEk.js} +33 -33
  82. package/dist/{vue-ui-nested-donuts-DMCd6DqT.cjs → vue-ui-nested-donuts-Cdx6UQwF.cjs} +5 -5
  83. package/dist/{vue-ui-nested-donuts-AYPYIRrE.js → vue-ui-nested-donuts-Da9c-H0Y.js} +147 -147
  84. package/dist/{vue-ui-onion-Bsa88sKK.js → vue-ui-onion-D1wExDGP.js} +44 -44
  85. package/dist/{vue-ui-onion-BedLvfFe.cjs → vue-ui-onion-HAS4P8nS.cjs} +2 -2
  86. package/dist/{vue-ui-parallel-coordinate-plot-KCEb4iRs.js → vue-ui-parallel-coordinate-plot-BH0xKZAE.js} +79 -79
  87. package/dist/{vue-ui-parallel-coordinate-plot-CSOMIABF.cjs → vue-ui-parallel-coordinate-plot-BYeyzJnE.cjs} +3 -3
  88. package/dist/{vue-ui-quadrant-Bd_88Eht.js → vue-ui-quadrant-BDkbMaNf.js} +108 -108
  89. package/dist/vue-ui-quadrant-DbWSZWfP.cjs +1 -0
  90. package/dist/{vue-ui-quick-chart-CXAYKYHa.js → vue-ui-quick-chart-D3b2YwMY.js} +212 -212
  91. package/dist/vue-ui-quick-chart-qnbmA75J.cjs +15 -0
  92. package/dist/{vue-ui-radar-De397oTB.js → vue-ui-radar--Bt67L0i.js} +107 -107
  93. package/dist/vue-ui-radar-DSZpmaIZ.cjs +1 -0
  94. package/dist/{vue-ui-rating-wK3_ZWE5.js → vue-ui-rating-Bgr7tvIq.js} +2 -2
  95. package/dist/{vue-ui-rating-BjiMVoyX.cjs → vue-ui-rating-Z_ANkBeZ.cjs} +1 -1
  96. package/dist/{vue-ui-relation-circle-BEGyr1h-.cjs → vue-ui-relation-circle-3cgv8yC-.cjs} +1 -1
  97. package/dist/{vue-ui-relation-circle-BxlK8MVs.js → vue-ui-relation-circle-B22VP_p1.js} +7 -7
  98. package/dist/{vue-ui-rings-BcNMBXxq.cjs → vue-ui-rings-DZEwaUv5.cjs} +2 -2
  99. package/dist/{vue-ui-rings-BXrtMSML.js → vue-ui-rings-DgzfAEvJ.js} +66 -66
  100. package/dist/{vue-ui-scatter-BWZfLJ9P.js → vue-ui-scatter-BwlbShJE.js} +85 -85
  101. package/dist/vue-ui-scatter-CSI15Dgp.cjs +1 -0
  102. package/dist/{vue-ui-screenshot-BJgOwFMW.cjs → vue-ui-screenshot-DK2xyINC.cjs} +1 -1
  103. package/dist/{vue-ui-screenshot-hw4PC9Uu.js → vue-ui-screenshot-Dk0TqQpi.js} +1 -1
  104. package/dist/{vue-ui-skeleton-BIqMxXV7.cjs → vue-ui-skeleton-CLiDRcQX.cjs} +1 -1
  105. package/dist/{vue-ui-skeleton-D66ZIUln.js → vue-ui-skeleton-c211TxZ8.js} +3 -3
  106. package/dist/{vue-ui-smiley-Duy5Xo-j.cjs → vue-ui-smiley-Kr6bQ-7L.cjs} +1 -1
  107. package/dist/{vue-ui-smiley-DWPYdcDB.js → vue-ui-smiley-hIooew3m.js} +2 -2
  108. package/dist/{vue-ui-spark-trend-Ce4IaqPz.js → vue-ui-spark-trend-CgpDYM8f.js} +5 -5
  109. package/dist/{vue-ui-spark-trend-DP5foaNi.cjs → vue-ui-spark-trend-SVqMwS1X.cjs} +1 -1
  110. package/dist/{vue-ui-sparkbar-Bbns4V16.cjs → vue-ui-sparkbar-DY1J0X8K.cjs} +1 -1
  111. package/dist/{vue-ui-sparkbar-Fa-Kc9Fr.js → vue-ui-sparkbar-D_HgtfBM.js} +4 -4
  112. package/dist/{vue-ui-sparkgauge-BrLrvNLH.cjs → vue-ui-sparkgauge-C4p0nAHp.cjs} +1 -1
  113. package/dist/{vue-ui-sparkgauge-DUWcJ7cM.js → vue-ui-sparkgauge-jO5jKAyz.js} +4 -4
  114. package/dist/{vue-ui-sparkhistogram-PgC-c-5a.js → vue-ui-sparkhistogram-BpQfz14e.js} +5 -5
  115. package/dist/{vue-ui-sparkhistogram-B0rhs_UN.cjs → vue-ui-sparkhistogram-gSNvSVcP.cjs} +1 -1
  116. package/dist/{vue-ui-sparkline-BqNlrKjb.js → vue-ui-sparkline-BTgaJjMj.js} +4 -4
  117. package/dist/{vue-ui-sparkline-c5Awoj8J.cjs → vue-ui-sparkline-D53BDGCi.cjs} +1 -1
  118. package/dist/{vue-ui-sparkstackbar-DyJIUulr.js → vue-ui-sparkstackbar-COm1EqFN.js} +5 -5
  119. package/dist/{vue-ui-sparkstackbar-BmYIcpVZ.cjs → vue-ui-sparkstackbar-DcEhBuvP.cjs} +1 -1
  120. package/dist/{vue-ui-stackbar-BebRtOYL.js → vue-ui-stackbar-BHyysJyj.js} +51 -51
  121. package/dist/{vue-ui-stackbar-DJ9NH_l1.cjs → vue-ui-stackbar-D4-vrvMz.cjs} +3 -3
  122. package/dist/{vue-ui-strip-plot-BGHj1BHd.js → vue-ui-strip-plot-BOLWDlTl.js} +118 -118
  123. package/dist/vue-ui-strip-plot-iUjpocRA.cjs +1 -0
  124. package/dist/{vue-ui-table-BFdGppRF.cjs → vue-ui-table-DG3-RAEv.cjs} +1 -1
  125. package/dist/{vue-ui-table-ClPMKcMn.js → vue-ui-table-XThR7HtD.js} +1 -1
  126. package/dist/{vue-ui-table-heatmap-B7wTjM-H.cjs → vue-ui-table-heatmap-B82Dmfv2.cjs} +1 -1
  127. package/dist/{vue-ui-table-heatmap-DVQtPt-M.js → vue-ui-table-heatmap-DxWQ3cdf.js} +4 -4
  128. package/dist/{vue-ui-table-sparkline-DjxKXWQm.js → vue-ui-table-sparkline-BIQAc-eX.js} +5 -5
  129. package/dist/{vue-ui-table-sparkline-DaKODjfM.cjs → vue-ui-table-sparkline-C3JrSwmi.cjs} +1 -1
  130. package/dist/{vue-ui-thermometer-CV_9k37V.js → vue-ui-thermometer-Ci0OBAEN.js} +7 -7
  131. package/dist/{vue-ui-thermometer-DE9r0emf.cjs → vue-ui-thermometer-t1cul6jD.cjs} +1 -1
  132. package/dist/{vue-ui-timer-Ct-KYWSX.cjs → vue-ui-timer-BLqulQx5.cjs} +1 -1
  133. package/dist/{vue-ui-timer-2w5Ayq7G.js → vue-ui-timer-CwJoQApu.js} +5 -5
  134. package/dist/{vue-ui-tiremarks-BJnh0GBj.js → vue-ui-tiremarks-CFVl_w7d.js} +7 -7
  135. package/dist/{vue-ui-tiremarks-Cf04zARl.cjs → vue-ui-tiremarks-_d9WOe-N.cjs} +1 -1
  136. package/dist/vue-ui-treemap-BaQFfbqL.cjs +1 -0
  137. package/dist/{vue-ui-treemap-BD546LBi.js → vue-ui-treemap-BtjPxOzu.js} +108 -108
  138. package/dist/{vue-ui-vertical-bar-D3QKHHnS.cjs → vue-ui-vertical-bar-BcjM9qCI.cjs} +3 -3
  139. package/dist/{vue-ui-vertical-bar-E5CTb1Bd.js → vue-ui-vertical-bar-xnQDjCLE.js} +54 -54
  140. package/dist/{vue-ui-waffle-BAJIMbZK.js → vue-ui-waffle-BMFtG4mh.js} +99 -99
  141. package/dist/vue-ui-waffle-DGarEDP5.cjs +1 -0
  142. package/dist/{vue-ui-wheel-CPPLUSFq.js → vue-ui-wheel-DIr8JQt0.js} +7 -7
  143. package/dist/{vue-ui-wheel-Dy_B7BTG.cjs → vue-ui-wheel-DLFWUmdm.cjs} +1 -1
  144. package/dist/vue-ui-word-cloud-CDQ4rkP-.cjs +1 -0
  145. package/dist/{vue-ui-word-cloud-BVZcDY7m.js → vue-ui-word-cloud-CrSkUMkN.js} +81 -81
  146. package/dist/{vue-ui-xy-tB-6IP2y.js → vue-ui-xy-DPT3SYuU.js} +815 -818
  147. package/dist/vue-ui-xy-DfnDyl8o.cjs +3 -0
  148. package/dist/{vue-ui-xy-canvas-DFUfTZwz.js → vue-ui-xy-canvas-C3iMSkvP.js} +35 -35
  149. package/dist/{vue-ui-xy-canvas-BSZTrqci.cjs → vue-ui-xy-canvas-DEyhDtC-.cjs} +3 -3
  150. package/package.json +1 -1
  151. package/dist/vue-ui-age-pyramid-BdseHKUc.cjs +0 -1
  152. package/dist/vue-ui-donut-BP7yj2DU.cjs +0 -1
  153. package/dist/vue-ui-donut-evolution-Cz8uFJp8.cjs +0 -1
  154. package/dist/vue-ui-dumbbell-CYqHCr2S.cjs +0 -9
  155. package/dist/vue-ui-flow-HeRCplGL.cjs +0 -1
  156. package/dist/vue-ui-funnel-DxniWNkD.cjs +0 -1
  157. package/dist/vue-ui-galaxy-BDA64dud.cjs +0 -1
  158. package/dist/vue-ui-heatmap-CbKgGLtN.cjs +0 -1
  159. package/dist/vue-ui-history-plot-BoMdvItE.cjs +0 -1
  160. package/dist/vue-ui-molecule-CeoDnPXB.cjs +0 -1
  161. package/dist/vue-ui-mood-radar-BwOqQUuT.cjs +0 -1
  162. package/dist/vue-ui-quadrant-BXQVOvpY.cjs +0 -1
  163. package/dist/vue-ui-quick-chart-dLItYwM_.cjs +0 -15
  164. package/dist/vue-ui-radar-BuNtocmn.cjs +0 -1
  165. package/dist/vue-ui-scatter-DTy3yPVu.cjs +0 -1
  166. package/dist/vue-ui-strip-plot-f7vejZht.cjs +0 -1
  167. package/dist/vue-ui-treemap-D0vi4bv4.cjs +0 -1
  168. package/dist/vue-ui-waffle-BL0e3Yeq.cjs +0 -1
  169. package/dist/vue-ui-word-cloud-BPoAoeWZ.cjs +0 -1
  170. package/dist/vue-ui-xy-D4hRtHAi.cjs +0 -3
@@ -1,17 +1,17 @@
1
- import { computed as m, ref as h, watch as lt, onMounted as at, onBeforeUnmount as ot, openBlock as o, createElementBlock as r, normalizeClass as Ve, normalizeStyle as D, unref as n, createBlock as j, createCommentVNode as c, createSlots as st, withCtx as _, renderSlot as M, normalizeProps as Q, guardReactiveProps as Z, createVNode as pe, createElementVNode as d, Fragment as N, renderList as X, toDisplayString as C, createTextVNode as ut, nextTick as rt } from "vue";
2
- import { u as it, c as nt, t as vt, a as yt, p as q, o as ct, e as fe, b as dt, g as Ee, T as ht, R as pt, Y as ft, X as gt, U as xt, s as ge, i as V, v as A, f as P, x as mt, y as bt, q as kt, r as wt } from "./index-B7nCQFK0.js";
1
+ import { computed as m, ref as h, watch as lt, onMounted as at, onBeforeUnmount as ot, openBlock as o, createElementBlock as r, normalizeClass as Ve, normalizeStyle as D, unref as n, createBlock as j, createCommentVNode as c, createSlots as st, withCtx as _, renderSlot as M, normalizeProps as Q, guardReactiveProps as Z, createVNode as pe, createElementVNode as d, Fragment as P, renderList as I, toDisplayString as C, createTextVNode as ut, nextTick as rt } from "vue";
2
+ import { u as it, c as nt, t as vt, a as yt, p as q, o as ct, e as fe, b as dt, g as Ee, T as ht, R as pt, Y as ft, X as gt, U as xt, s as ge, i as V, v as A, f as W, x as mt, y as bt, q as kt, r as wt } from "./index-BG5J_ybN.js";
3
3
  import { t as _t, u as Mt } from "./useResponsive-CoxXLe23.js";
4
- import { _ as $t } from "./Title-CaET2xuF.js";
5
- import { u as Ct, U as At } from "./usePrinter-CQMn1b4E.js";
6
- import { _ as zt } from "./Tooltip-Bkc4233T.js";
7
- import { L as St } from "./Legend-BTpe6qQB.js";
8
- import { _ as Ue } from "./Shape-zFv85Gc2.js";
9
- import { D as Lt } from "./DataTable-C0tCPQ9i.js";
10
- import Tt from "./vue-ui-skeleton-D66ZIUln.js";
11
- import Bt from "./vue-ui-accordion-B8ptB5BQ.js";
12
- import { u as Ge } from "./useNestedProp-C9rlBRTT.js";
13
- import { _ as Ot } from "./PackageVersion-CENy3Lm2.js";
14
- import { P as Nt } from "./PenAndPaper-Dr7ndoP_.js";
4
+ import { _ as $t } from "./Title-BU5Aq1_x.js";
5
+ import { u as Ct, U as At } from "./usePrinter-CWeJt84b.js";
6
+ import { _ as zt } from "./Tooltip-Dm-obTbx.js";
7
+ import { L as St } from "./Legend-DMeEvZOT.js";
8
+ import { _ as Ue } from "./Shape-CL3HglYL.js";
9
+ import { D as Tt } from "./DataTable-CKke7C6w.js";
10
+ import Lt from "./vue-ui-skeleton-c211TxZ8.js";
11
+ import Bt from "./vue-ui-accordion-JBOceVq2.js";
12
+ import { u as Ge } from "./useNestedProp-BN1ZmAKT.js";
13
+ import { _ as Ot } from "./PackageVersion-Rh3rgo6A.js";
14
+ import { P as Nt } from "./PenAndPaper-DqVsdeLc.js";
15
15
  import { u as Pt } from "./useUserOptionState-BIvW1Kz7.js";
16
16
  import { _ as Wt } from "./_plugin-vue_export-helper-CHgC5LLL.js";
17
17
  const Ft = ["id"], Xt = ["xmlns", "viewBox"], It = ["width", "height"], Yt = { key: 1 }, Dt = ["x1", "x2", "y1", "y2", "stroke", "stroke-width"], jt = ["x1", "x2", "y1", "y2", "stroke", "stroke-width"], Vt = { key: 2 }, Et = ["points", "fill", "stroke-width", "stroke-dasharray", "stroke"], Ut = { key: 0 }, Gt = ["cx", "cy", "r", "fill", "stroke", "stroke-width", "onMouseover"], Rt = { key: 1 }, qt = { key: 3 }, Ht = ["id"], Jt = ["stop-color"], Kt = ["stop-color"], Qt = ["id"], Zt = ["stop-color"], el = ["stop-color"], tl = ["x", "y", "width", "height", "fill", "stroke", "stroke-width", "rx"], ll = ["x", "y", "height", "width", "fill", "stroke", "stroke-width", "rx"], al = { key: 0 }, ol = ["d", "stroke", "stroke-width"], sl = ["d", "stroke", "stroke-width"], ul = ["d", "stroke", "stroke-width"], rl = ["d", "stroke", "stroke-width"], il = {
@@ -20,7 +20,7 @@ const Ft = ["id"], Xt = ["xmlns", "viewBox"], It = ["width", "height"], Yt = { k
20
20
  }, nl = ["x1", "x2", "y1", "y2", "stroke", "stroke-width", "stroke-dasharray"], vl = ["x1", "x2", "y1", "y2", "stroke", "stroke-width", "stroke-dasharray"], yl = ["x", "y", "font-size", "fill", "font-weight", "text-anchor"], cl = ["x", "y", "font-size", "fill", "font-weight"], dl = ["cx", "cy", "r", "fill", "stroke", "stroke-width"], hl = ["cx", "cy", "r", "fill", "stroke", "stroke-width"], pl = ["x", "y", "font-size", "fill", "font-weight", "text-anchor"], fl = { key: 5 }, gl = ["x", "y", "font-size", "fill"], xl = ["x", "y", "font-size", "fill"], ml = ["id", "transform", "font-size", "font-weight", "fill"], bl = { key: 6 }, kl = ["x", "y", "font-size", "fill"], wl = ["x", "y", "font-size", "fill"], _l = ["font-size", "font-weight", "fill", "x", "y"], Ml = ["id"], $l = ["x", "y", "width", "height"], Cl = { key: 7 }, Al = ["x1", "x2", "y1", "y2", "stroke-dasharray", "stroke", "stroke-width", "clip-path"], zl = ["x", "y", "fill", "font-size", "font-weight"], Sl = {
21
21
  key: 5,
22
22
  class: "vue-data-ui-watermark"
23
- }, Ll = ["onClick"], Tl = {
23
+ }, Tl = ["onClick"], Ll = {
24
24
  key: 0,
25
25
  style: { width: "100%", display: "flex", "align-items": "center", "justify-content": "center" }
26
26
  }, Bl = {
@@ -45,32 +45,32 @@ const Ft = ["id"], Xt = ["xmlns", "viewBox"], It = ["width", "height"], Yt = { k
45
45
  }
46
46
  },
47
47
  setup(Re, { expose: qe }) {
48
- const W = Re, { vue_ui_scatter: He } = it(), ee = m(() => !!W.dataset && W.dataset.length), z = h(nt()), Je = h(null), ue = h(!1), re = h(""), xe = h(0), H = h(null), me = h(null), be = h(null), ke = h(null), we = h(null), _e = h(0), Me = h(0), $e = h(0), e = m({
48
+ const F = Re, { vue_ui_scatter: He } = it(), ee = m(() => !!F.dataset && F.dataset.length), z = h(nt()), Je = h(null), ue = h(!1), re = h(""), xe = h(0), H = h(null), me = h(null), be = h(null), ke = h(null), we = h(null), _e = h(0), Me = h(0), $e = h(0), e = m({
49
49
  get: () => ze(),
50
50
  set: (t) => t
51
51
  }), { userOptionsVisible: ie, setUserOptionsVisibility: Ce, keepUserOptionState: Ae } = Pt({ config: e.value });
52
52
  function ze() {
53
53
  const t = Ge({
54
- userConfig: W.config,
54
+ userConfig: F.config,
55
55
  defaultConfig: He
56
56
  });
57
57
  return t.theme ? {
58
58
  ...Ge({
59
- userConfig: vt.vue_ui_scatter[t.theme] || W.config,
59
+ userConfig: vt.vue_ui_scatter[t.theme] || F.config,
60
60
  defaultConfig: t
61
61
  }),
62
62
  customPalette: yt[t.theme] || q
63
63
  } : t;
64
64
  }
65
- lt(() => W.config, (t) => {
66
- e.value = ze(), ie.value = !e.value.showOnChartHover, Se(), _e.value += 1, Me.value += 1, $e.value += 1;
65
+ lt(() => F.config, (t) => {
66
+ e.value = ze(), ie.value = !e.value.showOnChartHover, Se(), _e.value += 1, Me.value += 1, $e.value += 1, B.value.showTable = e.value.table.show, B.value.showTooltip = e.value.style.tooltip.show;
67
67
  }, { deep: !0 });
68
68
  const te = h(null);
69
69
  at(() => {
70
70
  Se();
71
71
  });
72
72
  function Se() {
73
- if (ct(W.dataset) && fe({
73
+ if (ct(F.dataset) && fe({
74
74
  componentName: "VueUiScatter",
75
75
  type: "dataset"
76
76
  }), e.value.responsive) {
@@ -92,10 +92,10 @@ const Ft = ["id"], Xt = ["xmlns", "viewBox"], It = ["width", "height"], Yt = { k
92
92
  ot(() => {
93
93
  te.value && te.value.disconnect();
94
94
  });
95
- const { isPrinting: Le, isImaging: Te, generatePdf: Be, generateImage: Oe } = Ct({
95
+ const { isPrinting: Te, isImaging: Le, generatePdf: Be, generateImage: Oe } = Ct({
96
96
  elementId: `vue-ui-scatter_${z.value}`,
97
97
  fileName: e.value.style.title.text || "vue-ui-scatter"
98
- }), Ke = m(() => e.value.userOptions.show && !e.value.style.title.text), Ne = m(() => dt(e.value.customPalette)), I = h({
98
+ }), Ke = m(() => e.value.userOptions.show && !e.value.style.title.text), Ne = m(() => dt(e.value.customPalette)), B = h({
99
99
  showTable: e.value.table.show,
100
100
  showTooltip: e.value.style.tooltip.show
101
101
  }), b = h({
@@ -109,7 +109,7 @@ const Ft = ["id"], Xt = ["xmlns", "viewBox"], It = ["width", "height"], Yt = { k
109
109
  height: b.value.height - e.value.style.layout.padding.top - e.value.style.layout.padding.bottom - le.value,
110
110
  width: b.value.width - e.value.style.layout.padding.left - e.value.style.layout.padding.right - le.value
111
111
  })), p = m(() => {
112
- W.dataset.forEach((a, v) => {
112
+ F.dataset.forEach((a, v) => {
113
113
  Ee({
114
114
  datasetObject: a,
115
115
  requiredAttributes: ["values"]
@@ -139,7 +139,7 @@ const Ft = ["id"], Xt = ["xmlns", "viewBox"], It = ["width", "height"], Yt = { k
139
139
  }), f = m(() => ({
140
140
  x: i.value.left + Math.abs(p.value.xMin) / (p.value.xMax + Math.abs(p.value.xMin)) * i.value.width,
141
141
  y: i.value.bottom - Math.abs(p.value.yMin) / (p.value.yMax + Math.abs(p.value.yMin)) * i.value.height
142
- })), E = m(() => W.dataset.map((t, u) => {
142
+ })), E = m(() => F.dataset.map((t, u) => {
143
143
  const l = `cluster_${z.value}_${u}`;
144
144
  return {
145
145
  ...t,
@@ -180,22 +180,22 @@ const Ft = ["id"], Xt = ["xmlns", "viewBox"], It = ["width", "height"], Yt = { k
180
180
  let s = 0, a = 0, v = 0;
181
181
  for (const g of t.plots)
182
182
  s += (g.x - u) * (g.y - l), a += (g.x - u) ** 2, v += (g.y - l) ** 2;
183
- const k = s / Math.sqrt(a * v), U = k * (Math.sqrt(v) / Math.sqrt(a)), K = l - U * u, O = {
183
+ const k = s / Math.sqrt(a * v), U = k * (Math.sqrt(v) / Math.sqrt(a)), K = l - U * u, N = {
184
184
  x1: i.value.left,
185
185
  x2: i.value.right,
186
186
  y1: U * i.value.left + K,
187
187
  y2: U * i.value.right + K,
188
188
  coefficient: k
189
- }, $ = (O.y2 - O.y1) / (O.x2 - O.x1), T = O.y1 - $ * O.x1, F = Math.min(b.value.width - e.value.style.layout.padding.right, Math.max(e.value.style.layout.padding.left, (i.value.top - T) / $)), se = {
190
- x: F,
191
- y: $ * F + T <= e.value.style.layout.padding.top ? i.value.top : $ * F + T
189
+ }, $ = (N.y2 - N.y1) / (N.x2 - N.x1), L = N.y1 - $ * N.x1, X = Math.min(b.value.width - e.value.style.layout.padding.right, Math.max(e.value.style.layout.padding.left, (i.value.top - L) / $)), se = {
190
+ x: X,
191
+ y: $ * X + L <= e.value.style.layout.padding.top ? i.value.top : $ * X + L
192
192
  };
193
193
  return {
194
194
  ...t,
195
- correlation: O,
195
+ correlation: N,
196
196
  label: se,
197
197
  plots: t.plots.map((g) => {
198
- const G = (g.x + $ * g.y - $ * T) / (1 + Math.pow($, 2)), ce = ($ * g.x + Math.pow($, 2) * g.y + T) / (1 + Math.pow($, 2)), w = Math.sqrt(Math.pow(g.x - G, 2) + Math.pow(g.y - ce, 2));
198
+ const G = (g.x + $ * g.y - $ * L) / (1 + Math.pow($, 2)), ce = ($ * g.x + Math.pow($, 2) * g.y + L) / (1 + Math.pow($, 2)), w = Math.sqrt(Math.pow(g.x - G, 2) + Math.pow(g.y - ce, 2));
199
199
  return {
200
200
  ...g,
201
201
  deviation: w,
@@ -220,18 +220,18 @@ const Ft = ["id"], Xt = ["xmlns", "viewBox"], It = ["width", "height"], Yt = { k
220
220
  l.forEach(({ x: w, y: R }) => {
221
221
  s = Math.min(s, w), a = Math.max(a, w), v = Math.min(v, R), k = Math.max(k, R);
222
222
  });
223
- const U = a - s, K = k - v, O = U / u, $ = K / u, T = Array(u).fill(0), F = Array(u).fill(0);
223
+ const U = a - s, K = k - v, N = U / u, $ = K / u, L = Array(u).fill(0), X = Array(u).fill(0);
224
224
  l.forEach(({ x: w, y: R }) => {
225
- const de = Math.floor((w - s) / O), he = Math.floor((R - v) / $);
226
- T[de] || (T[de] = 0), F[he] || (F[he] = 0), T[de] += 1, F[he] += 1;
225
+ const de = Math.floor((w - s) / N), he = Math.floor((R - v) / $);
226
+ L[de] || (L[de] = 0), X[he] || (X[he] = 0), L[de] += 1, X[he] += 1;
227
227
  });
228
228
  const se = [], g = [];
229
229
  for (let w = 0; w < u; w += 1)
230
- se.push(s + (w + 0.5) * O), g.push(v + (w + 0.5) * $);
231
- const G = Math.max(...T), ce = Math.max(...F);
232
- return { x: T, y: F, avgX: se, avgY: g, maxX: G, maxY: ce };
230
+ se.push(s + (w + 0.5) * N), g.push(v + (w + 0.5) * $);
231
+ const G = Math.max(...L), ce = Math.max(...X);
232
+ return { x: L, y: X, avgX: se, avgY: g, maxX: G, maxY: ce };
233
233
  }
234
- const Y = m(() => e.value.style.layout.marginalBars.tranches), L = m(() => We(ne.value, Y.value)), et = m(() => {
234
+ const Y = m(() => e.value.style.layout.marginalBars.tranches), T = m(() => We(ne.value, Y.value)), et = m(() => {
235
235
  const t = i.value.top - e.value.style.layout.marginalBars.offset, u = i.value.right + e.value.style.layout.marginalBars.offset;
236
236
  return ne.value.map((l) => {
237
237
  const s = We(l, Y.value);
@@ -249,9 +249,9 @@ const Ft = ["id"], Xt = ["xmlns", "viewBox"], It = ["width", "height"], Yt = { k
249
249
  id: l.id
250
250
  };
251
251
  });
252
- }), B = h(void 0), y = h(null), ve = h(null);
252
+ }), O = h(void 0), y = h(null), ve = h(null);
253
253
  function Fe(t, u) {
254
- B.value = t.id, y.value = t;
254
+ O.value = t.id, y.value = t;
255
255
  let l = "";
256
256
  ve.value = {
257
257
  datapoint: t,
@@ -273,7 +273,7 @@ const Ft = ["id"], Xt = ["xmlns", "viewBox"], It = ["width", "height"], Yt = { k
273
273
  }) : (t.clusterName && (l += `<div style="display:flex;gap:3px;align-items:center">${t.clusterName}</div>`), t.v.name && (l += `<div>${t.v.name}</div>`), l += `<div style="text-align:left;margin-top:6px;padding-top:6px;border-top:1px solid ${e.value.style.tooltip.borderColor}">`, l += `<div>${e.value.style.layout.dataLabels.xAxis.name}: <b>${isNaN(t.v.x) ? "-" : V(
274
274
  e.value.style.layout.plots.selectors.labels.x.formatter,
275
275
  t.v.x,
276
- P({
276
+ W({
277
277
  p: e.value.style.tooltip.prefix,
278
278
  v: t.v.x,
279
279
  s: e.value.style.tooltip.suffix,
@@ -283,24 +283,24 @@ const Ft = ["id"], Xt = ["xmlns", "viewBox"], It = ["width", "height"], Yt = { k
283
283
  )}</b></div>`, l += `<div>${e.value.style.layout.dataLabels.yAxis.name}: <b>${isNaN(t.v.y) ? "-" : V(
284
284
  e.value.style.layout.plots.selectors.labels.y.formatter,
285
285
  t.v.y,
286
- P({
286
+ W({
287
287
  p: e.value.style.tooltip.prefix,
288
288
  v: t.v.y,
289
289
  s: e.value.style.tooltip.suffix,
290
290
  r: e.value.style.tooltip.roundingValue
291
291
  }),
292
292
  { datapoint: t, seriesIndex: u }
293
- )}</b></div>`, l += `${e.value.style.layout.plots.deviation.translation}: <b>${P({
293
+ )}</b></div>`, l += `${e.value.style.layout.plots.deviation.translation}: <b>${W({
294
294
  v: t.deviation,
295
295
  r: e.value.style.layout.plots.deviation.roundingValue
296
296
  })}</b>`, l += "</div>", re.value = `<div>${l}</div>`), ue.value = !0;
297
297
  }
298
298
  function Xe() {
299
- ue.value = !1, B.value = void 0, y.value = null;
299
+ ue.value = !1, O.value = void 0, y.value = null;
300
300
  }
301
301
  const x = h([]);
302
302
  function Ie(t) {
303
- x.value.includes(t) ? x.value = x.value.filter((u) => u !== t) : x.value.length < W.dataset.length - 1 && x.value.push(t);
303
+ x.value.includes(t) ? x.value = x.value.filter((u) => u !== t) : x.value.length < F.dataset.length - 1 && x.value.push(t);
304
304
  }
305
305
  function Ye() {
306
306
  rt(() => {
@@ -350,10 +350,10 @@ const Ft = ["id"], Xt = ["xmlns", "viewBox"], It = ["width", "height"], Yt = { k
350
350
  J.value = t, xe.value += 1;
351
351
  }
352
352
  function De() {
353
- I.value.showTable = !I.value.showTable;
353
+ B.value.showTable = !B.value.showTable;
354
354
  }
355
355
  function je() {
356
- I.value.showTooltip = !I.value.showTooltip;
356
+ B.value.showTooltip = !B.value.showTooltip;
357
357
  }
358
358
  const oe = h(!1);
359
359
  function ye() {
@@ -417,8 +417,8 @@ const Ft = ["id"], Xt = ["xmlns", "viewBox"], It = ["width", "height"], Yt = { k
417
417
  key: `user_options_${xe.value}`,
418
418
  backgroundColor: e.value.style.backgroundColor,
419
419
  color: e.value.style.color,
420
- isImaging: n(Te),
421
- isPrinting: n(Le),
420
+ isImaging: n(Le),
421
+ isPrinting: n(Te),
422
422
  uid: z.value,
423
423
  hasTooltip: e.value.userOptions.buttons.tooltip && e.value.style.tooltip.show,
424
424
  hasPdf: e.value.userOptions.buttons.pdf,
@@ -426,7 +426,7 @@ const Ft = ["id"], Xt = ["xmlns", "viewBox"], It = ["width", "height"], Yt = { k
426
426
  hasXls: e.value.userOptions.buttons.csv,
427
427
  hasTable: e.value.userOptions.buttons.table,
428
428
  hasFullscreen: e.value.userOptions.buttons.fullscreen,
429
- isTooltip: I.value.showTooltip,
429
+ isTooltip: B.value.showTooltip,
430
430
  isFullscreen: J.value,
431
431
  titles: { ...e.value.userOptions.buttonTitles },
432
432
  chartElement: H.value,
@@ -535,7 +535,7 @@ const Ft = ["id"], Xt = ["xmlns", "viewBox"], It = ["width", "height"], Yt = { k
535
535
  }, null, 8, jt)
536
536
  ])) : c("", !0),
537
537
  e.value.style.layout.plots.giftWrap.show ? (o(), r("g", Vt, [
538
- (o(!0), r(N, null, X(S.value, (l, s) => (o(), r("g", null, [
538
+ (o(!0), r(P, null, I(S.value, (l, s) => (o(), r("g", null, [
539
539
  l.plots.length > 2 ? (o(), r("polygon", {
540
540
  key: 0,
541
541
  points: n(xt)({ series: l.plots }),
@@ -548,30 +548,30 @@ const Ft = ["id"], Xt = ["xmlns", "viewBox"], It = ["width", "height"], Yt = { k
548
548
  }, null, 8, Et)) : c("", !0)
549
549
  ]))), 256))
550
550
  ])) : c("", !0),
551
- (o(!0), r(N, null, X(S.value, (l, s) => (o(), r("g", null, [
551
+ (o(!0), r(P, null, I(S.value, (l, s) => (o(), r("g", null, [
552
552
  !l.shape || l.shape === "circle" ? (o(), r("g", Ut, [
553
- (o(!0), r(N, null, X(l.plots, (a, v) => (o(), r("circle", {
553
+ (o(!0), r(P, null, I(l.plots, (a, v) => (o(), r("circle", {
554
554
  cx: a.x,
555
555
  cy: a.y,
556
- r: B.value && B.value === a.id ? a.weight * 2 : a.weight,
556
+ r: O.value && O.value === a.id ? a.weight * 2 : a.weight,
557
557
  fill: n(ge)(l.color, e.value.style.layout.plots.opacity * 100),
558
558
  stroke: e.value.style.layout.plots.stroke,
559
559
  "stroke-width": e.value.style.layout.plots.strokeWidth,
560
560
  onMouseover: (k) => Fe(a, s),
561
561
  onMouseleave: Xe,
562
- style: D(`opacity:${B.value && B.value === a.id ? 1 : e.value.style.layout.plots.significance.useDistanceOpacity ? 1 - Math.abs(a.deviation) / Pe.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}`)
562
+ style: D(`opacity:${O.value && O.value === a.id ? 1 : e.value.style.layout.plots.significance.useDistanceOpacity ? 1 - Math.abs(a.deviation) / Pe.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}`)
563
563
  }, null, 44, Gt))), 256))
564
564
  ])) : (o(), r("g", Rt, [
565
- (o(!0), r(N, null, X(l.plots, (a, v) => (o(), j(Ue, {
565
+ (o(!0), r(P, null, I(l.plots, (a, v) => (o(), j(Ue, {
566
566
  plot: { x: a.x, y: a.y },
567
- radius: B.value && B.value === a.id ? a.weight * 2 : a.weight,
567
+ radius: O.value && O.value === a.id ? a.weight * 2 : a.weight,
568
568
  shape: l.shape,
569
569
  color: n(ge)(l.color, e.value.style.layout.plots.opacity * 100),
570
570
  stroke: e.value.style.layout.plots.stroke,
571
571
  strokeWidth: e.value.style.layout.plots.strokeWidth,
572
572
  onMouseover: (k) => Fe(a, s),
573
573
  onMouseleave: Xe,
574
- style: D(`opacity:${B.value && B.value === a.id ? 1 : e.value.style.layout.plots.significance.useDistanceOpacity ? 1 - Math.abs(a.deviation) / Pe.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}`)
574
+ style: D(`opacity:${O.value && O.value === a.id ? 1 : e.value.style.layout.plots.significance.useDistanceOpacity ? 1 - Math.abs(a.deviation) / Pe.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}`)
575
575
  }, null, 8, ["plot", "radius", "shape", "color", "stroke", "strokeWidth", "onMouseover", "style"]))), 256))
576
576
  ]))
577
577
  ]))), 256)),
@@ -610,13 +610,13 @@ const Ft = ["id"], Xt = ["xmlns", "viewBox"], It = ["width", "height"], Yt = { k
610
610
  }, null, 8, el)
611
611
  ], 8, Qt)
612
612
  ]),
613
- (o(!0), r(N, null, X(L.value.x, (l, s) => (o(), r("g", null, [
614
- l && L.value.avgX[s] ? (o(), r("rect", {
613
+ (o(!0), r(P, null, I(T.value.x, (l, s) => (o(), r("g", null, [
614
+ l && T.value.avgX[s] ? (o(), r("rect", {
615
615
  key: 0,
616
- x: L.value.avgX[s] - i.value.width / Y.value / 2,
617
- y: i.value.top - e.value.style.layout.marginalBars.offset - l / L.value.maxX * e.value.style.layout.marginalBars.size,
616
+ x: T.value.avgX[s] - i.value.width / Y.value / 2,
617
+ y: i.value.top - e.value.style.layout.marginalBars.offset - l / T.value.maxX * e.value.style.layout.marginalBars.size,
618
618
  width: i.value.width / Y.value <= 0 ? 1e-4 : i.value.width / Y.value,
619
- height: l / L.value.maxX * e.value.style.layout.marginalBars.size <= 0 ? 1e-4 : l / L.value.maxX * e.value.style.layout.marginalBars.size,
619
+ height: l / T.value.maxX * e.value.style.layout.marginalBars.size <= 0 ? 1e-4 : l / T.value.maxX * e.value.style.layout.marginalBars.size,
620
620
  fill: e.value.style.layout.marginalBars.useGradient ? `url(#marginal_x_${z.value})` : e.value.style.layout.marginalBars.fill,
621
621
  style: D(`opacity:${e.value.style.layout.marginalBars.opacity}`),
622
622
  stroke: e.value.style.backgroundColor,
@@ -624,13 +624,13 @@ const Ft = ["id"], Xt = ["xmlns", "viewBox"], It = ["width", "height"], Yt = { k
624
624
  rx: e.value.style.layout.marginalBars.borderRadius
625
625
  }, null, 12, tl)) : c("", !0)
626
626
  ]))), 256)),
627
- (o(!0), r(N, null, X(L.value.y, (l, s) => (o(), r("g", null, [
628
- l && L.value.avgY[s] ? (o(), r("rect", {
627
+ (o(!0), r(P, null, I(T.value.y, (l, s) => (o(), r("g", null, [
628
+ l && T.value.avgY[s] ? (o(), r("rect", {
629
629
  key: 0,
630
630
  x: i.value.right + e.value.style.layout.marginalBars.offset,
631
- y: L.value.avgY[s] - i.value.height / Y.value / 2,
631
+ y: T.value.avgY[s] - i.value.height / Y.value / 2,
632
632
  height: i.value.height / Y.value <= 0 ? 1e-4 : i.value.height / Y.value,
633
- width: l / L.value.maxY * e.value.style.layout.marginalBars.size <= 0 ? 1e-4 : l / L.value.maxY * e.value.style.layout.marginalBars.size,
633
+ width: l / T.value.maxY * e.value.style.layout.marginalBars.size <= 0 ? 1e-4 : l / T.value.maxY * e.value.style.layout.marginalBars.size,
634
634
  fill: e.value.style.layout.marginalBars.useGradient ? `url(#marginal_y_${z.value})` : e.value.style.layout.marginalBars.fill,
635
635
  style: D(`opacity:${e.value.style.layout.marginalBars.opacity}`),
636
636
  stroke: e.value.style.backgroundColor,
@@ -639,7 +639,7 @@ const Ft = ["id"], Xt = ["xmlns", "viewBox"], It = ["width", "height"], Yt = { k
639
639
  }, null, 12, ll)) : c("", !0)
640
640
  ]))), 256)),
641
641
  e.value.style.layout.marginalBars.showLines ? (o(), r("g", al, [
642
- (o(!0), r(N, null, X(et.value, (l) => (o(), r(N, null, [
642
+ (o(!0), r(P, null, I(et.value, (l) => (o(), r(P, null, [
643
643
  x.value.includes(l.id) ? c("", !0) : (o(), r("path", {
644
644
  key: 0,
645
645
  d: `M ${l.dX}`,
@@ -712,7 +712,7 @@ const Ft = ["id"], Xt = ["xmlns", "viewBox"], It = ["width", "height"], Yt = { k
712
712
  }, C(n(V)(
713
713
  e.value.style.layout.plots.selectors.labels.y.formatter,
714
714
  n(A)(y.value.v.y),
715
- n(P)({
715
+ n(W)({
716
716
  p: e.value.style.layout.plots.selectors.labels.prefix,
717
717
  v: n(A)(y.value.v.y),
718
718
  s: e.value.style.layout.plots.selectors.labels.suffix,
@@ -730,7 +730,7 @@ const Ft = ["id"], Xt = ["xmlns", "viewBox"], It = ["width", "height"], Yt = { k
730
730
  }, C(n(V)(
731
731
  e.value.style.layout.plots.selectors.labels.y.formatter,
732
732
  n(A)(y.value.v.x),
733
- n(P)({
733
+ n(W)({
734
734
  p: e.value.style.layout.plots.selectors.labels.prefix,
735
735
  v: n(A)(y.value.v.x),
736
736
  s: e.value.style.layout.plots.selectors.labels.suffix,
@@ -776,7 +776,7 @@ const Ft = ["id"], Xt = ["xmlns", "viewBox"], It = ["width", "height"], Yt = { k
776
776
  }, C(n(V)(
777
777
  e.value.style.layout.plots.selectors.labels.x.formatter,
778
778
  n(A)(p.value.xMin),
779
- n(P)({
779
+ n(W)({
780
780
  p: e.value.style.layout.plots.selectors.labels.prefix,
781
781
  v: n(A)(p.value.xMin),
782
782
  s: e.value.style.layout.plots.selectors.labels.suffix,
@@ -792,7 +792,7 @@ const Ft = ["id"], Xt = ["xmlns", "viewBox"], It = ["width", "height"], Yt = { k
792
792
  }, C(n(V)(
793
793
  e.value.style.layout.plots.selectors.labels.x.formatter,
794
794
  n(A)(p.value.xMax),
795
- n(P)({
795
+ n(W)({
796
796
  p: e.value.style.layout.plots.selectors.labels.prefix,
797
797
  v: n(A)(p.value.xMax),
798
798
  s: e.value.style.layout.plots.selectors.labels.suffix,
@@ -818,7 +818,7 @@ const Ft = ["id"], Xt = ["xmlns", "viewBox"], It = ["width", "height"], Yt = { k
818
818
  }, C(n(V)(
819
819
  e.value.style.layout.plots.selectors.labels.y.formatter,
820
820
  n(A)(p.value.yMin),
821
- n(P)({
821
+ n(W)({
822
822
  p: e.value.style.layout.plots.selectors.labels.prefix,
823
823
  v: n(A)(p.value.yMin),
824
824
  s: e.value.style.layout.plots.selectors.labels.suffix,
@@ -834,7 +834,7 @@ const Ft = ["id"], Xt = ["xmlns", "viewBox"], It = ["width", "height"], Yt = { k
834
834
  }, C(n(V)(
835
835
  e.value.style.layout.plots.selectors.labels.y.formatter,
836
836
  n(A)(p.value.yMax),
837
- n(P)({
837
+ n(W)({
838
838
  p: e.value.style.layout.plots.selectors.labels.prefix,
839
839
  v: n(A)(p.value.yMax),
840
840
  s: e.value.style.layout.plots.selectors.labels.suffix,
@@ -861,7 +861,7 @@ const Ft = ["id"], Xt = ["xmlns", "viewBox"], It = ["width", "height"], Yt = { k
861
861
  }, null, 8, $l)
862
862
  ], 8, Ml),
863
863
  e.value.style.layout.correlation.show ? (o(), r("g", Cl, [
864
- (o(!0), r(N, null, X(S.value, (l, s) => (o(), r("line", {
864
+ (o(!0), r(P, null, I(S.value, (l, s) => (o(), r("line", {
865
865
  x1: l.correlation.x1,
866
866
  x2: l.correlation.x2,
867
867
  y1: l.correlation.y1,
@@ -871,7 +871,7 @@ const Ft = ["id"], Xt = ["xmlns", "viewBox"], It = ["width", "height"], Yt = { k
871
871
  "stroke-width": e.value.style.layout.correlation.strokeWidth,
872
872
  "clip-path": `url(#clip_path_${z.value})`
873
873
  }, null, 8, Al))), 256)),
874
- (o(!0), r(N, null, X(S.value, (l, s) => (o(), r("g", null, [
874
+ (o(!0), r(P, null, I(S.value, (l, s) => (o(), r("g", null, [
875
875
  e.value.style.layout.correlation.label.show ? (o(), r("text", {
876
876
  key: 0,
877
877
  x: l.label.x,
@@ -879,7 +879,7 @@ const Ft = ["id"], Xt = ["xmlns", "viewBox"], It = ["width", "height"], Yt = { k
879
879
  fill: e.value.style.layout.correlation.label.useSerieColor ? l.color : e.value.style.layout.correlation.label.color,
880
880
  "font-size": e.value.style.layout.correlation.label.fontSize,
881
881
  "font-weight": e.value.style.layout.correlation.label.bold ? "bold" : "normal"
882
- }, C(n(P)({
882
+ }, C(n(W)({
883
883
  v: n(A)(l.correlation.coefficient),
884
884
  r: e.value.style.layout.correlation.label.roundingValue
885
885
  })), 9, zl)) : c("", !0)
@@ -888,9 +888,9 @@ const Ft = ["id"], Xt = ["xmlns", "viewBox"], It = ["width", "height"], Yt = { k
888
888
  M(t.$slots, "svg", { svg: b.value }, void 0, !0)
889
889
  ], 14, Xt)) : c("", !0),
890
890
  t.$slots.watermark ? (o(), r("div", Sl, [
891
- M(t.$slots, "watermark", Q(Z({ isPrinting: n(Le) || n(Te) })), void 0, !0)
891
+ M(t.$slots, "watermark", Q(Z({ isPrinting: n(Te) || n(Le) })), void 0, !0)
892
892
  ])) : c("", !0),
893
- ee.value ? c("", !0) : (o(), j(Tt, {
893
+ ee.value ? c("", !0) : (o(), j(Lt, {
894
894
  key: 6,
895
895
  config: {
896
896
  type: "quadrant",
@@ -922,7 +922,7 @@ const Ft = ["id"], Xt = ["xmlns", "viewBox"], It = ["width", "height"], Yt = { k
922
922
  d("div", {
923
923
  onClick: (s) => l.segregate(),
924
924
  style: D(`opacity:${x.value.includes(l.id) ? 0.5 : 1}`)
925
- }, C(l.name), 13, Ll)
925
+ }, C(l.name), 13, Tl)
926
926
  ]),
927
927
  _: 1
928
928
  }, 8, ["legendSet", "config"])) : M(t.$slots, "legend", {
@@ -939,7 +939,7 @@ const Ft = ["id"], Xt = ["xmlns", "viewBox"], It = ["width", "height"], Yt = { k
939
939
  M(t.$slots, "source", {}, void 0, !0)
940
940
  ], 512)) : c("", !0),
941
941
  pe(zt, {
942
- show: I.value.showTooltip && ue.value,
942
+ show: B.value.showTooltip && ue.value,
943
943
  backgroundColor: e.value.style.tooltip.backgroundColor,
944
944
  color: e.value.style.tooltip.color,
945
945
  borderRadius: e.value.style.tooltip.borderRadius,
@@ -961,7 +961,7 @@ const Ft = ["id"], Xt = ["xmlns", "viewBox"], It = ["width", "height"], Yt = { k
961
961
  M(t.$slots, "tooltip-after", Q(Z({ ...ve.value })), void 0, !0)
962
962
  ]),
963
963
  default: _(() => [
964
- e.value.style.tooltip.showShape ? (o(), r("div", Tl, [
964
+ e.value.style.tooltip.showShape ? (o(), r("div", Ll, [
965
965
  (o(), r("svg", Bl, [
966
966
  pe(Ue, {
967
967
  shape: y.value.shape,
@@ -978,7 +978,7 @@ const Ft = ["id"], Xt = ["xmlns", "viewBox"], It = ["width", "height"], Yt = { k
978
978
  key: 8,
979
979
  hideDetails: "",
980
980
  config: {
981
- open: I.value.showTable,
981
+ open: B.value.showTable,
982
982
  maxHeight: 1e4,
983
983
  body: {
984
984
  backgroundColor: e.value.style.backgroundColor,
@@ -991,14 +991,14 @@ const Ft = ["id"], Xt = ["xmlns", "viewBox"], It = ["width", "height"], Yt = { k
991
991
  }
992
992
  }, {
993
993
  content: _(() => [
994
- (o(), j(Lt, {
994
+ (o(), j(Tt, {
995
995
  key: `table_${Me.value}`,
996
996
  colNames: ae.value.colNames,
997
997
  head: ae.value.head,
998
998
  body: ae.value.body,
999
999
  config: ae.value.config,
1000
1000
  title: `${e.value.style.title.text}${e.value.style.title.subtitle.text ? ` : ${e.value.style.title.subtitle.text}` : ""}`,
1001
- onClose: u[1] || (u[1] = (l) => I.value.showTable = !1)
1001
+ onClose: u[1] || (u[1] = (l) => B.value.showTable = !1)
1002
1002
  }, {
1003
1003
  th: _(({ th: l }) => [
1004
1004
  ut(C(l), 1)
@@ -1018,7 +1018,7 @@ const Ft = ["id"], Xt = ["xmlns", "viewBox"], It = ["width", "height"], Yt = { k
1018
1018
  }, 8, ["config"])) : c("", !0)
1019
1019
  ], 46, Ft));
1020
1020
  }
1021
- }, Ql = /* @__PURE__ */ Wt(Pl, [["__scopeId", "data-v-259c67b4"]]);
1021
+ }, Ql = /* @__PURE__ */ Wt(Pl, [["__scopeId", "data-v-c274e32f"]]);
1022
1022
  export {
1023
1023
  Ql as default
1024
1024
  };
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),s=require("./index-1HOIfTy2.cjs"),we=require("./useResponsive-BJ7DTGpm.cjs"),Te=require("./Title-C10173bN.cjs"),Be=require("./usePrinter-i-j4CdEi.cjs"),Pe=require("./Tooltip-CL7aSMgq.cjs"),De=require("./Legend-CY6wjCYY.cjs"),_e=require("./Shape-DEwnzwRB.cjs"),Oe=require("./DataTable-BmKl4AAb.cjs"),Fe=require("./vue-ui-skeleton-CLiDRcQX.cjs"),We=require("./vue-ui-accordion-Cd6GaDwU.cjs"),Ce=require("./useNestedProp-BFNnjpX-.cjs"),qe=require("./PackageVersion-DvDNPRrJ.cjs"),Ie=require("./PenAndPaper--xHLJRME.cjs"),Xe=require("./useUserOptionState-BgepsfED.cjs"),Ye=require("./_plugin-vue_export-helper-BHFhmbuH.cjs"),je=["id"],Re=["xmlns","viewBox"],Ue=["width","height"],Ge={key:1},He=["x1","x2","y1","y2","stroke","stroke-width"],Je=["x1","x2","y1","y2","stroke","stroke-width"],Ke={key:2},Qe=["points","fill","stroke-width","stroke-dasharray","stroke"],Ze={key:0},et=["cx","cy","r","fill","stroke","stroke-width","onMouseover"],tt={key:1},lt={key:3},at=["id"],ot=["stop-color"],st=["stop-color"],rt=["id"],nt=["stop-color"],ut=["stop-color"],it=["x","y","width","height","fill","stroke","stroke-width","rx"],ct=["x","y","height","width","fill","stroke","stroke-width","rx"],yt={key:0},vt=["d","stroke","stroke-width"],dt=["d","stroke","stroke-width"],pt=["d","stroke","stroke-width"],ht=["d","stroke","stroke-width"],ft={key:4,style:{"pointer-events":"none !important"}},mt=["x1","x2","y1","y2","stroke","stroke-width","stroke-dasharray"],gt=["x1","x2","y1","y2","stroke","stroke-width","stroke-dasharray"],kt=["x","y","font-size","fill","font-weight","text-anchor"],xt=["x","y","font-size","fill","font-weight"],bt=["cx","cy","r","fill","stroke","stroke-width"],wt=["cx","cy","r","fill","stroke","stroke-width"],Bt=["x","y","font-size","fill","font-weight","text-anchor"],_t={key:5},Ct=["x","y","font-size","fill"],Nt=["x","y","font-size","fill"],St=["id","transform","font-size","font-weight","fill"],Mt={key:6},$t=["x","y","font-size","fill"],Et=["x","y","font-size","fill"],Lt=["font-size","font-weight","fill","x","y"],zt=["id"],Vt=["x","y","width","height"],At={key:7},Tt=["x1","x2","y1","y2","stroke-dasharray","stroke","stroke-width","clip-path"],Pt=["x","y","fill","font-size","font-weight"],Dt={key:5,class:"vue-data-ui-watermark"},Ot=["onClick"],Ft={key:0,style:{width:"100%",display:"flex","align-items":"center","justify-content":"center"}},Wt={viewBox:"0 0 20 20",height:"20",width:"20",style:{overflow:"hidden",background:"transparent"}},qt={key:0},It=["innerHTML"],Xt={__name:"vue-ui-scatter",props:{config:{type:Object,default(){return{}}},dataset:{type:Array,default(){return[]}}},setup(Ne,{expose:Se}){const N=Ne,{vue_ui_scatter:Me}=s.useConfig(),P=e.computed(()=>!!N.dataset&&N.dataset.length),k=e.ref(s.createUid()),$e=e.ref(null),I=e.ref(!1),X=e.ref(""),K=e.ref(0),V=e.ref(null),Q=e.ref(null),Z=e.ref(null),ee=e.ref(null),te=e.ref(null),le=e.ref(0),ae=e.ref(0),oe=e.ref(0),t=e.computed({get:()=>ne(),set:l=>l}),{userOptionsVisible:Y,setUserOptionsVisibility:se,keepUserOptionState:re}=Xe.useUserOptionState({config:t.value});function ne(){const l=Ce.useNestedProp({userConfig:N.config,defaultConfig:Me});return l.theme?{...Ce.useNestedProp({userConfig:s.themes.vue_ui_scatter[l.theme]||N.config,defaultConfig:l}),customPalette:s.themePalettes[l.theme]||s.palette}:l}e.watch(()=>N.config,l=>{t.value=ne(),Y.value=!t.value.showOnChartHover,ue(),le.value+=1,ae.value+=1,oe.value+=1,B.value.showTable=t.value.table.show,B.value.showTooltip=t.value.style.tooltip.show},{deep:!0});const D=e.ref(null);e.onMounted(()=>{ue()});function ue(){if(s.objectIsEmpty(N.dataset)&&s.error({componentName:"VueUiScatter",type:"dataset"}),t.value.responsive){const l=we.throttle(()=>{const{width:n,height:a}=we.useResponsive({chart:V.value,title:t.value.style.title.text?Q.value:null,legend:t.value.style.legend.show?Z.value:null,source:ee.value,noTitle:te.value});requestAnimationFrame(()=>{h.value.width=n,h.value.height=a})});D.value=new ResizeObserver(l),D.value.observe(V.value.parentNode)}}e.onBeforeUnmount(()=>{D.value&&D.value.disconnect()});const{isPrinting:ie,isImaging:ce,generatePdf:ye,generateImage:ve}=Be.usePrinter({elementId:`vue-ui-scatter_${k.value}`,fileName:t.value.style.title.text||"vue-ui-scatter"}),Ee=e.computed(()=>t.value.userOptions.show&&!t.value.style.title.text),de=e.computed(()=>s.convertCustomPalette(t.value.customPalette)),B=e.ref({showTable:t.value.table.show,showTooltip:t.value.style.tooltip.show}),h=e.ref({height:t.value.style.layout.height,width:t.value.style.layout.width}),O=e.computed(()=>t.value.style.layout.marginalBars.show?t.value.style.layout.marginalBars.size+t.value.style.layout.marginalBars.offset:0),u=e.computed(()=>({top:t.value.style.layout.padding.top+O.value,right:h.value.width-t.value.style.layout.padding.right-O.value,bottom:h.value.height-t.value.style.layout.padding.bottom,left:t.value.style.layout.padding.left,height:h.value.height-t.value.style.layout.padding.top-t.value.style.layout.padding.bottom-O.value,width:h.value.width-t.value.style.layout.padding.left-t.value.style.layout.padding.right-O.value})),y=e.computed(()=>{N.dataset.forEach((o,i)=>{s.getMissingDatasetAttributes({datasetObject:o,requiredAttributes:["values"]}).forEach(f=>{s.error({componentName:"VueUiScatter",type:"datasetSerieAttribute",property:f,index:i})}),o.values&&o.values.forEach((f,E)=>{s.getMissingDatasetAttributes({datasetObject:f,requiredAttributes:["x","y"]}).forEach(T=>{s.error({componentName:"VueUiScatter",type:"datasetSerieAttribute",property:`values.${T}`,index:`${i} - ${E}`})})})});const l=Math.min(...$.value.filter(o=>!p.value.includes(o.id)).flatMap(o=>o.values.map(i=>i.x))),n=Math.max(...$.value.filter(o=>!p.value.includes(o.id)).flatMap(o=>o.values.map(i=>i.x))),a=Math.min(...$.value.filter(o=>!p.value.includes(o.id)).flatMap(o=>o.values.map(i=>i.y))),r=Math.max(...$.value.filter(o=>!p.value.includes(o.id)).flatMap(o=>o.values.map(i=>i.y)));return{xMin:l>=0?0:l,xMax:n,yMin:a>=0?0:a,yMax:r}}),v=e.computed(()=>({x:u.value.left+Math.abs(y.value.xMin)/(y.value.xMax+Math.abs(y.value.xMin))*u.value.width,y:u.value.bottom-Math.abs(y.value.yMin)/(y.value.yMax+Math.abs(y.value.yMin))*u.value.height})),$=e.computed(()=>N.dataset.map((l,n)=>{const a=`cluster_${k.value}_${n}`;return{...l,values:s.largestTriangleThreeBuckets({data:l.values,threshold:t.value.downsample.threshold}),id:a,color:l.color?l.color:de.value[n]||s.palette[n]||s.palette[n%s.palette.length],opacity:p.value.includes(a)?.5:1,shape:l.shape??"circle",segregate:()=>ge(a),isSegregated:p.value.includes(a)}})),Le=e.computed(()=>({cy:"scatter-div-legend",backgroundColor:t.value.style.legend.backgroundColor,color:t.value.style.legend.color,fontSize:t.value.style.legend.fontSize,paddingBottom:12,fontWeight:t.value.style.legend.bold?"bold":""})),j=e.computed(()=>$.value.map((l,n)=>({...l,plots:l.values.map(a=>({x:u.value.left+(a.x+Math.abs(y.value.xMin))/(y.value.xMax+Math.abs(y.value.xMin))*u.value.width,y:u.value.bottom-(a.y+Math.abs(y.value.yMin))/(y.value.yMax+Math.abs(y.value.yMin))*u.value.height,v:{...a,name:a.name||""},clusterName:l.name,color:l.color?l.color:de.value[n]||s.palette[n]||s.palette[n%s.palette.length],id:`plot_${k.value}_${Math.random()}`,weight:a.weight??t.value.style.layout.plots.radius}))})).filter(l=>!p.value.includes(l.id))),x=e.computed(()=>j.value.map(l=>{const n=l.plots.reduce((d,L)=>d+L.x,0)/l.plots.length,a=l.plots.reduce((d,L)=>d+L.y,0)/l.plots.length;let r=0,o=0,i=0;for(const d of l.plots)r+=(d.x-n)*(d.y-a),o+=(d.x-n)**2,i+=(d.y-a)**2;const f=r/Math.sqrt(o*i),E=f*(Math.sqrt(i)/Math.sqrt(o)),T=a-E*n,C={x1:u.value.left,x2:u.value.right,y1:E*u.value.left+T,y2:E*u.value.right+T,coefficient:f},g=(C.y2-C.y1)/(C.x2-C.x1),w=C.y1-g*C.x1,S=Math.min(h.value.width-t.value.style.layout.padding.right,Math.max(t.value.style.layout.padding.left,(u.value.top-w)/g)),q={x:S,y:g*S+w<=t.value.style.layout.padding.top?u.value.top:g*S+w};return{...l,correlation:C,label:q,plots:l.plots.map(d=>{const L=(d.x+g*d.y-g*w)/(1+Math.pow(g,2)),G=(g*d.x+Math.pow(g,2)*d.y+w)/(1+Math.pow(g,2)),m=Math.sqrt(Math.pow(d.x-L,2)+Math.pow(d.y-G,2));return{...d,deviation:m,shape:l.shape,color:l.color}})}})),pe=e.computed(()=>Math.max(...x.value.flatMap(l=>l.plots.map(n=>Math.abs(n.deviation)))));function ze(){return x.value}function he(l,n){const a=Array.isArray(l)?l.flatMap(m=>m.plots.map(z=>({x:z.x,y:z.y}))):l.plots.map(m=>({x:m.x,y:m.y}));let r=1/0,o=-1/0,i=1/0,f=-1/0;a.forEach(({x:m,y:z})=>{r=Math.min(r,m),o=Math.max(o,m),i=Math.min(i,z),f=Math.max(f,z)});const E=o-r,T=f-i,C=E/n,g=T/n,w=Array(n).fill(0),S=Array(n).fill(0);a.forEach(({x:m,y:z})=>{const H=Math.floor((m-r)/C),J=Math.floor((z-i)/g);w[H]||(w[H]=0),S[J]||(S[J]=0),w[H]+=1,S[J]+=1});const q=[],d=[];for(let m=0;m<n;m+=1)q.push(r+(m+.5)*C),d.push(i+(m+.5)*g);const L=Math.max(...w),G=Math.max(...S);return{x:w,y:S,avgX:q,avgY:d,maxX:L,maxY:G}}const M=e.computed(()=>t.value.style.layout.marginalBars.tranches),b=e.computed(()=>he(j.value,M.value)),Ve=e.computed(()=>{const l=u.value.top-t.value.style.layout.marginalBars.offset,n=u.value.right+t.value.style.layout.marginalBars.offset;return j.value.map(a=>{const r=he(a,M.value);return{coords:r,dX:s.createSmoothPath(r.avgX.map((o,i)=>({x:o,y:l-r.x[i]/r.maxX*t.value.style.layout.marginalBars.size}))),dY:s.createSmoothPathVertical(r.avgY.map((o,i)=>({y:o,x:n+t.value.style.layout.marginalBars.size*r.y[i]/r.maxY}))),color:a.color,id:a.id}})}),_=e.ref(void 0),c=e.ref(null),R=e.ref(null);function fe(l,n){_.value=l.id,c.value=l;let a="";R.value={datapoint:l,seriesIndex:n,series:x.value,config:t.value};const r=t.value.style.tooltip.customFormat;s.isFunction(r)&&s.functionReturnsString(()=>r({datapoint:l,seriesIndex:n,series:x.value,config:t.value}))?X.value=r({datapoint:l,seriesIndex:n,series:x.value,config:t.value}):(l.clusterName&&(a+=`<div style="display:flex;gap:3px;align-items:center">${l.clusterName}</div>`),l.v.name&&(a+=`<div>${l.v.name}</div>`),a+=`<div style="text-align:left;margin-top:6px;padding-top:6px;border-top:1px solid ${t.value.style.tooltip.borderColor}">`,a+=`<div>${t.value.style.layout.dataLabels.xAxis.name}: <b>${isNaN(l.v.x)?"-":s.applyDataLabel(t.value.style.layout.plots.selectors.labels.x.formatter,l.v.x,s.dataLabel({p:t.value.style.tooltip.prefix,v:l.v.x,s:t.value.style.tooltip.suffix,r:t.value.style.tooltip.roundingValue}),{datapoint:l,seriesIndex:n})}</b></div>`,a+=`<div>${t.value.style.layout.dataLabels.yAxis.name}: <b>${isNaN(l.v.y)?"-":s.applyDataLabel(t.value.style.layout.plots.selectors.labels.y.formatter,l.v.y,s.dataLabel({p:t.value.style.tooltip.prefix,v:l.v.y,s:t.value.style.tooltip.suffix,r:t.value.style.tooltip.roundingValue}),{datapoint:l,seriesIndex:n})}</b></div>`,a+=`${t.value.style.layout.plots.deviation.translation}: <b>${s.dataLabel({v:l.deviation,r:t.value.style.layout.plots.deviation.roundingValue})}</b>`,a+="</div>",X.value=`<div>${a}</div>`),I.value=!0}function me(){I.value=!1,_.value=void 0,c.value=null}const p=e.ref([]);function ge(l){p.value.includes(l)?p.value=p.value.filter(n=>n!==l):p.value.length<N.dataset.length-1&&p.value.push(l)}function ke(){e.nextTick(()=>{const l=["",t.value.table.translations.correlationCoefficient,t.value.table.translations.nbrPlots,`${t.value.style.layout.dataLabels.xAxis.name} ${t.value.table.translations.average}`,`${t.value.style.layout.dataLabels.yAxis.name} ${t.value.table.translations.average}`],n=x.value.map(o=>[o.name,o.correlation.coefficient,o.plots.length,o.plots.map(i=>i.v.x).reduce((i,f)=>i+f,0)/o.plots.length,o.plots.map(i=>i.v.y).reduce((i,f)=>i+f,0)/o.plots.length]),a=[[t.value.style.title.text],[t.value.style.title.subtitle.text],[[""],[""],[""]]].concat([l]).concat(n),r=s.createCsvContent(a);s.downloadCsv({csvContent:r,title:t.value.style.title.text||"vue-ui-heatmap"})})}const F=e.computed(()=>{const l=[t.value.table.translations.series,t.value.table.translations.correlationCoefficient,t.value.table.translations.nbrPlots,`${t.value.style.layout.dataLabels.xAxis.name} ${t.value.table.translations.average}`,`${t.value.style.layout.dataLabels.yAxis.name} ${t.value.table.translations.average}`],n=x.value.map(r=>[{shape:r.shape,content:r.name,color:r.color},Number((r.correlation.coefficient??0).toFixed(t.value.table.td.roundingValue)).toLocaleString(),r.plots.length.toLocaleString(),Number((r.plots.map(o=>o.v.x??0).reduce((o,i)=>o+i,0)/r.plots.length).toFixed(t.value.table.td.roundingAverage)).toLocaleString(),Number((r.plots.map(o=>o.v.y??0).reduce((o,i)=>o+i,0)/r.plots.length).toFixed(t.value.table.td.roundingAverage)).toLocaleString()]),a={th:{backgroundColor:t.value.table.th.backgroundColor,color:t.value.table.th.color,outline:t.value.table.th.outline},td:{backgroundColor:t.value.table.td.backgroundColor,color:t.value.table.td.color,outline:t.value.table.td.outline},breakpoint:t.value.table.responsiveBreakpoint};return{head:l,body:n,config:a,colNames:l}}),A=e.ref(!1);function Ae(l){A.value=l,K.value+=1}function xe(){B.value.showTable=!B.value.showTable}function be(){B.value.showTooltip=!B.value.showTooltip}const W=e.ref(!1);function U(){W.value=!W.value}return Se({getData:ze,generatePdf:ye,generateCsv:ke,generateImage:ve,toggleTable:xe,toggleTooltip:be,toggleAnnotator:U}),(l,n)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(`vue-ui-scatter ${A.value?"vue-data-ui-wrapper-fullscreen":""} ${t.value.useCssAnimation?"":"vue-ui-dna"}`),ref_key:"scatterChart",ref:V,id:`vue-ui-scatter_${k.value}`,style:e.normalizeStyle(`font-family:${t.value.style.fontFamily};width:100%; text-align:center;background:${t.value.style.backgroundColor};${t.value.responsive?"height: 100%":""}`),onMouseenter:n[2]||(n[2]=()=>e.unref(se)(!0)),onMouseleave:n[3]||(n[3]=()=>e.unref(se)(!1))},[t.value.userOptions.buttons.annotator?(e.openBlock(),e.createBlock(Ie.PenAndPaper,{key:0,parent:V.value,backgroundColor:t.value.style.backgroundColor,color:t.value.style.color,active:W.value,onClose:U},null,8,["parent","backgroundColor","color","active"])):e.createCommentVNode("",!0),Ee.value?(e.openBlock(),e.createElementBlock("div",{key:1,ref_key:"noTitle",ref:te,class:"vue-data-ui-no-title-space",style:"height:36px; width: 100%;background:transparent"},null,512)):e.createCommentVNode("",!0),t.value.style.title.text?(e.openBlock(),e.createElementBlock("div",{key:2,ref_key:"chartTitle",ref:Q,style:"width:100%;background:transparent"},[(e.openBlock(),e.createBlock(Te._sfc_main,{key:`title_${le.value}`,config:{title:{cy:"scatter-div-title",...t.value.style.title},subtitle:{cy:"scatter-div-subtitle",...t.value.style.title.subtitle}}},null,8,["config"]))],512)):e.createCommentVNode("",!0),t.value.userOptions.show&&P.value&&(e.unref(re)||e.unref(Y))?(e.openBlock(),e.createBlock(Be.UserOptions,{ref_key:"details",ref:$e,key:`user_options_${K.value}`,backgroundColor:t.value.style.backgroundColor,color:t.value.style.color,isImaging:e.unref(ce),isPrinting:e.unref(ie),uid:k.value,hasTooltip:t.value.userOptions.buttons.tooltip&&t.value.style.tooltip.show,hasPdf:t.value.userOptions.buttons.pdf,hasImg:t.value.userOptions.buttons.img,hasXls:t.value.userOptions.buttons.csv,hasTable:t.value.userOptions.buttons.table,hasFullscreen:t.value.userOptions.buttons.fullscreen,isTooltip:B.value.showTooltip,isFullscreen:A.value,titles:{...t.value.userOptions.buttonTitles},chartElement:V.value,position:t.value.userOptions.position,hasAnnotator:t.value.userOptions.buttons.annotator,isAnnotation:W.value,onToggleFullscreen:Ae,onGeneratePdf:e.unref(ye),onGenerateCsv:ke,onGenerateImage:e.unref(ve),onToggleTable:xe,onToggleTooltip:be,onToggleAnnotator:U,style:e.normalizeStyle({visibility:e.unref(re)?e.unref(Y)?"visible":"hidden":"visible"})},e.createSlots({_:2},[l.$slots.optionTooltip?{name:"optionTooltip",fn:e.withCtx(()=>[e.renderSlot(l.$slots,"optionTooltip",{},void 0,!0)]),key:"0"}:void 0,l.$slots.optionPdf?{name:"optionPdf",fn:e.withCtx(()=>[e.renderSlot(l.$slots,"optionPdf",{},void 0,!0)]),key:"1"}:void 0,l.$slots.optionCsv?{name:"optionCsv",fn:e.withCtx(()=>[e.renderSlot(l.$slots,"optionCsv",{},void 0,!0)]),key:"2"}:void 0,l.$slots.optionImg?{name:"optionImg",fn:e.withCtx(()=>[e.renderSlot(l.$slots,"optionImg",{},void 0,!0)]),key:"3"}:void 0,l.$slots.optionTable?{name:"optionTable",fn:e.withCtx(()=>[e.renderSlot(l.$slots,"optionTable",{},void 0,!0)]),key:"4"}:void 0,l.$slots.optionFullscreen?{name:"optionFullscreen",fn:e.withCtx(({toggleFullscreen:a,isFullscreen:r})=>[e.renderSlot(l.$slots,"optionFullscreen",e.normalizeProps(e.guardReactiveProps({toggleFullscreen:a,isFullscreen:r})),void 0,!0)]),key:"5"}:void 0,l.$slots.optionAnnotator?{name:"optionAnnotator",fn:e.withCtx(({toggleAnnotator:a,isAnnotator:r})=>[e.renderSlot(l.$slots,"optionAnnotator",e.normalizeProps(e.guardReactiveProps({toggleAnnotator:a,isAnnotator:r})),void 0,!0)]),key:"6"}:void 0]),1032,["backgroundColor","color","isImaging","isPrinting","uid","hasTooltip","hasPdf","hasImg","hasXls","hasTable","hasFullscreen","isTooltip","isFullscreen","titles","chartElement","position","hasAnnotator","isAnnotation","onGeneratePdf","onGenerateImage","style"])):e.createCommentVNode("",!0),P.value?(e.openBlock(),e.createElementBlock("svg",{key:4,xmlns:e.unref(s.XMLNS),class:e.normalizeClass({"vue-data-ui-fullscreen--on":A.value,"vue-data-ui-fulscreen--off":!A.value}),viewBox:`0 0 ${h.value.width<=0?10:h.value.width} ${h.value.height<=0?10:h.value.height}`,style:e.normalizeStyle(`max-width:100%;overflow:visible;background:transparent;color:${t.value.style.color}`)},[e.createVNode(qe._sfc_main),l.$slots["chart-background"]?(e.openBlock(),e.createElementBlock("foreignObject",{key:0,x:0,y:0,width:h.value.width<=0?10:h.value.width,height:h.value.height<=0?10:h.value.height,style:{pointerEvents:"none"}},[e.renderSlot(l.$slots,"chart-background",{},void 0,!0)],8,Ue)):e.createCommentVNode("",!0),t.value.style.layout.axis.show?(e.openBlock(),e.createElementBlock("g",Ge,[e.createElementVNode("line",{x1:v.value.x,x2:v.value.x,y1:u.value.top,y2:u.value.bottom,stroke:t.value.style.layout.axis.stroke,"stroke-width":t.value.style.layout.axis.strokeWidth,"stroke-linecap":"round"},null,8,He),e.createElementVNode("line",{x1:u.value.left,x2:u.value.right,y1:v.value.y,y2:v.value.y,stroke:t.value.style.layout.axis.stroke,"stroke-width":t.value.style.layout.axis.strokeWidth,"stroke-linecap":"round"},null,8,Je)])):e.createCommentVNode("",!0),t.value.style.layout.plots.giftWrap.show?(e.openBlock(),e.createElementBlock("g",Ke,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(x.value,(a,r)=>(e.openBlock(),e.createElementBlock("g",null,[a.plots.length>2?(e.openBlock(),e.createElementBlock("polygon",{key:0,points:e.unref(s.giftWrap)({series:a.plots}),fill:e.unref(s.setOpacity)(a.color,t.value.style.layout.plots.giftWrap.fillOpacity*100),"stroke-width":t.value.style.layout.plots.giftWrap.strokeWidth,"stroke-dasharray":t.value.style.layout.plots.giftWrap.strokeDasharray,stroke:a.color,"stroke-linejoin":"round","stroke-linecap":"round"},null,8,Qe)):e.createCommentVNode("",!0)]))),256))])):e.createCommentVNode("",!0),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(x.value,(a,r)=>(e.openBlock(),e.createElementBlock("g",null,[!a.shape||a.shape==="circle"?(e.openBlock(),e.createElementBlock("g",Ze,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(a.plots,(o,i)=>(e.openBlock(),e.createElementBlock("circle",{cx:o.x,cy:o.y,r:_.value&&_.value===o.id?o.weight*2:o.weight,fill:e.unref(s.setOpacity)(a.color,t.value.style.layout.plots.opacity*100),stroke:t.value.style.layout.plots.stroke,"stroke-width":t.value.style.layout.plots.strokeWidth,onMouseover:f=>fe(o,r),onMouseleave:me,style:e.normalizeStyle(`opacity:${_.value&&_.value===o.id?1:t.value.style.layout.plots.significance.useDistanceOpacity?1-Math.abs(o.deviation)/pe.value:t.value.style.layout.plots.significance.show&&Math.abs(o.deviation)>t.value.style.layout.plots.significance.deviationThreshold?t.value.style.layout.plots.significance.opacity:1}`)},null,44,et))),256))])):(e.openBlock(),e.createElementBlock("g",tt,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(a.plots,(o,i)=>(e.openBlock(),e.createBlock(_e._sfc_main,{plot:{x:o.x,y:o.y},radius:_.value&&_.value===o.id?o.weight*2:o.weight,shape:a.shape,color:e.unref(s.setOpacity)(a.color,t.value.style.layout.plots.opacity*100),stroke:t.value.style.layout.plots.stroke,strokeWidth:t.value.style.layout.plots.strokeWidth,onMouseover:f=>fe(o,r),onMouseleave:me,style:e.normalizeStyle(`opacity:${_.value&&_.value===o.id?1:t.value.style.layout.plots.significance.useDistanceOpacity?1-Math.abs(o.deviation)/pe.value:t.value.style.layout.plots.significance.show&&Math.abs(o.deviation)>t.value.style.layout.plots.significance.deviationThreshold?t.value.style.layout.plots.significance.opacity:1}`)},null,8,["plot","radius","shape","color","stroke","strokeWidth","onMouseover","style"]))),256))]))]))),256)),t.value.style.layout.marginalBars.show?(e.openBlock(),e.createElementBlock("g",lt,[e.createElementVNode("defs",null,[e.createElementVNode("linearGradient",{id:`marginal_x_${k.value}`,x1:"0%",y1:"0%",x2:"0%",y2:"100%"},[e.createElementVNode("stop",{offset:"0%","stop-color":t.value.style.layout.marginalBars.fill},null,8,ot),e.createElementVNode("stop",{offset:"100%","stop-color":t.value.style.backgroundColor},null,8,st)],8,at),e.createElementVNode("linearGradient",{id:`marginal_y_${k.value}`,x1:"0%",x2:"100%",y1:"0%",y2:"0%"},[e.createElementVNode("stop",{offset:"0%","stop-color":t.value.style.backgroundColor},null,8,nt),e.createElementVNode("stop",{offset:"100%","stop-color":t.value.style.layout.marginalBars.fill},null,8,ut)],8,rt)]),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(b.value.x,(a,r)=>(e.openBlock(),e.createElementBlock("g",null,[a&&b.value.avgX[r]?(e.openBlock(),e.createElementBlock("rect",{key:0,x:b.value.avgX[r]-u.value.width/M.value/2,y:u.value.top-t.value.style.layout.marginalBars.offset-a/b.value.maxX*t.value.style.layout.marginalBars.size,width:u.value.width/M.value<=0?1e-4:u.value.width/M.value,height:a/b.value.maxX*t.value.style.layout.marginalBars.size<=0?1e-4:a/b.value.maxX*t.value.style.layout.marginalBars.size,fill:t.value.style.layout.marginalBars.useGradient?`url(#marginal_x_${k.value})`:t.value.style.layout.marginalBars.fill,style:e.normalizeStyle(`opacity:${t.value.style.layout.marginalBars.opacity}`),stroke:t.value.style.backgroundColor,"stroke-width":t.value.style.layout.marginalBars.strokeWidth,rx:t.value.style.layout.marginalBars.borderRadius},null,12,it)):e.createCommentVNode("",!0)]))),256)),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(b.value.y,(a,r)=>(e.openBlock(),e.createElementBlock("g",null,[a&&b.value.avgY[r]?(e.openBlock(),e.createElementBlock("rect",{key:0,x:u.value.right+t.value.style.layout.marginalBars.offset,y:b.value.avgY[r]-u.value.height/M.value/2,height:u.value.height/M.value<=0?1e-4:u.value.height/M.value,width:a/b.value.maxY*t.value.style.layout.marginalBars.size<=0?1e-4:a/b.value.maxY*t.value.style.layout.marginalBars.size,fill:t.value.style.layout.marginalBars.useGradient?`url(#marginal_y_${k.value})`:t.value.style.layout.marginalBars.fill,style:e.normalizeStyle(`opacity:${t.value.style.layout.marginalBars.opacity}`),stroke:t.value.style.backgroundColor,"stroke-width":t.value.style.layout.marginalBars.strokeWidth,rx:t.value.style.layout.marginalBars.borderRadius},null,12,ct)):e.createCommentVNode("",!0)]))),256)),t.value.style.layout.marginalBars.showLines?(e.openBlock(),e.createElementBlock("g",yt,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(Ve.value,a=>(e.openBlock(),e.createElementBlock(e.Fragment,null,[p.value.includes(a.id)?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("path",{key:0,d:`M ${a.dX}`,stroke:t.value.style.backgroundColor,"stroke-width":t.value.style.layout.marginalBars.linesStrokeWidth+1,"stroke-linecap":"round","stroke-linejoin":"round",fill:"none"},null,8,vt)),p.value.includes(a.id)?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("path",{key:1,d:`M ${a.dX}`,stroke:a.color,"stroke-width":t.value.style.layout.marginalBars.linesStrokeWidth,"stroke-linecap":"round","stroke-linejoin":"round",fill:"none"},null,8,dt)),p.value.includes(a.id)?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("path",{key:2,d:`M ${a.dY}`,stroke:t.value.style.backgroundColor,"stroke-width":t.value.style.layout.marginalBars.linesStrokeWidth+1,"stroke-linecap":"round","stroke-linejoin":"round",fill:"none"},null,8,pt)),p.value.includes(a.id)?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("path",{key:3,d:`M ${a.dY}`,stroke:a.color,"stroke-width":t.value.style.layout.marginalBars.linesStrokeWidth,"stroke-linecap":"round","stroke-linejoin":"round",fill:"none"},null,8,ht))],64))),256))])):e.createCommentVNode("",!0)])):e.createCommentVNode("",!0),c.value&&t.value.style.layout.plots.selectors.show?(e.openBlock(),e.createElementBlock("g",ft,[e.createElementVNode("line",{x1:v.value.x,x2:c.value.x,y1:c.value.y,y2:c.value.y,stroke:t.value.style.layout.plots.selectors.stroke,"stroke-width":t.value.style.layout.plots.selectors.strokeWidth,"stroke-dasharray":t.value.style.layout.plots.selectors.strokeDasharray,"stroke-linecap":"round",class:"line-pointer"},null,8,mt),e.createElementVNode("line",{x1:c.value.x,x2:c.value.x,y1:v.value.y,y2:c.value.y,stroke:t.value.style.layout.plots.selectors.stroke,"stroke-width":t.value.style.layout.plots.selectors.strokeWidth,"stroke-dasharray":t.value.style.layout.plots.selectors.strokeDasharray,"stroke-linecap":"round",class:"line-pointer"},null,8,gt),e.createElementVNode("text",{x:v.value.x+(c.value.x>v.value.x?-6:6),y:c.value.y+t.value.style.layout.plots.selectors.labels.fontSize/3,"font-size":t.value.style.layout.plots.selectors.labels.fontSize,fill:t.value.style.layout.plots.selectors.labels.color,"font-weight":t.value.style.layout.plots.selectors.labels.bold?"bold":"normal","text-anchor":c.value.x>v.value.x?"end":"start"},e.toDisplayString(e.unref(s.applyDataLabel)(t.value.style.layout.plots.selectors.labels.y.formatter,e.unref(s.checkNaN)(c.value.v.y),e.unref(s.dataLabel)({p:t.value.style.layout.plots.selectors.labels.prefix,v:e.unref(s.checkNaN)(c.value.v.y),s:t.value.style.layout.plots.selectors.labels.suffix,r:t.value.style.layout.plots.selectors.labels.rounding}),{datapoint:c.value})),9,kt),e.createElementVNode("text",{x:c.value.x,y:v.value.y+(c.value.y>v.value.y?-6:t.value.style.layout.plots.selectors.labels.fontSize+6),"font-size":t.value.style.layout.plots.selectors.labels.fontSize,fill:t.value.style.layout.plots.selectors.labels.color,"font-weight":t.value.style.layout.plots.selectors.labels.bold?"bold":"normal","text-anchor":"middle"},e.toDisplayString(e.unref(s.applyDataLabel)(t.value.style.layout.plots.selectors.labels.y.formatter,e.unref(s.checkNaN)(c.value.v.x),e.unref(s.dataLabel)({p:t.value.style.layout.plots.selectors.labels.prefix,v:e.unref(s.checkNaN)(c.value.v.x),s:t.value.style.layout.plots.selectors.labels.suffix,r:t.value.style.layout.plots.selectors.labels.rounding}),{datapoint:c.value})),9,xt),e.createElementVNode("circle",{cx:v.value.x,cy:c.value.y,r:t.value.style.layout.plots.selectors.markers.radius,fill:t.value.style.layout.plots.selectors.markers.fill,stroke:t.value.style.layout.plots.selectors.markers.stroke,"stroke-width":t.value.style.layout.plots.selectors.markers.strokeWidth,class:"line-pointer"},null,8,bt),e.createElementVNode("circle",{cx:c.value.x,cy:v.value.y,r:t.value.style.layout.plots.selectors.markers.radius,fill:t.value.style.layout.plots.selectors.markers.fill,stroke:t.value.style.layout.plots.selectors.markers.stroke,"stroke-width":t.value.style.layout.plots.selectors.markers.strokeWidth,class:"line-pointer"},null,8,wt),t.value.style.layout.plots.selectors.labels.showName?(e.openBlock(),e.createElementBlock("text",{key:0,x:c.value.x,y:c.value.y+(c.value.y<v.value.y?-t.value.style.layout.plots.selectors.labels.fontSize/2:t.value.style.layout.plots.selectors.labels.fontSize),"font-size":t.value.style.layout.plots.selectors.labels.fontSize,fill:t.value.style.layout.plots.selectors.labels.color,"font-weight":t.value.style.layout.plots.selectors.labels.bold?"bold":"normal","text-anchor":c.value.x<u.value.left+100?"start":c.value.x>u.value.right-100?"end":c.value.x>v.value.x?"start":"end"},e.toDisplayString(c.value.v.name),9,Bt)):e.createCommentVNode("",!0)])):e.createCommentVNode("",!0),t.value.style.layout.dataLabels.xAxis.show?(e.openBlock(),e.createElementBlock("g",_t,[e.createElementVNode("text",{x:u.value.left-5,y:v.value.y+t.value.style.layout.dataLabels.xAxis.fontSize/3,"text-anchor":"end","font-size":t.value.style.layout.dataLabels.xAxis.fontSize,fill:t.value.style.layout.dataLabels.xAxis.color},e.toDisplayString(e.unref(s.applyDataLabel)(t.value.style.layout.plots.selectors.labels.x.formatter,e.unref(s.checkNaN)(y.value.xMin),e.unref(s.dataLabel)({p:t.value.style.layout.plots.selectors.labels.prefix,v:e.unref(s.checkNaN)(y.value.xMin),s:t.value.style.layout.plots.selectors.labels.suffix,r:t.value.style.layout.dataLabels.xAxis.rounding}))),9,Ct),e.createElementVNode("text",{x:u.value.right+3,y:v.value.y+t.value.style.layout.dataLabels.xAxis.fontSize/3,"text-anchor":"start","font-size":t.value.style.layout.dataLabels.xAxis.fontSize,fill:t.value.style.layout.dataLabels.xAxis.color},e.toDisplayString(e.unref(s.applyDataLabel)(t.value.style.layout.plots.selectors.labels.x.formatter,e.unref(s.checkNaN)(y.value.xMax),e.unref(s.dataLabel)({p:t.value.style.layout.plots.selectors.labels.prefix,v:e.unref(s.checkNaN)(y.value.xMax),s:t.value.style.layout.plots.selectors.labels.suffix,r:t.value.style.layout.dataLabels.xAxis.rounding}))),9,Nt),e.createElementVNode("text",{id:`vue-ui-scatter-xAxis-label-${k.value}`,transform:`translate(${t.value.style.layout.dataLabels.xAxis.fontSize*2}, ${u.value.top+u.value.height/2}), rotate(-90)`,"text-anchor":"middle","font-size":t.value.style.layout.dataLabels.xAxis.fontSize,"font-weight":t.value.style.layout.dataLabels.xAxis.bold?"bold":"normal",fill:t.value.style.layout.dataLabels.xAxis.color},e.toDisplayString(t.value.style.layout.dataLabels.xAxis.name),9,St)])):e.createCommentVNode("",!0),t.value.style.layout.dataLabels.yAxis.show?(e.openBlock(),e.createElementBlock("g",Mt,[e.createElementVNode("text",{x:v.value.x,y:u.value.bottom+t.value.style.layout.dataLabels.yAxis.fontSize+3,"text-anchor":"middle","font-size":t.value.style.layout.dataLabels.yAxis.fontSize,fill:t.value.style.layout.dataLabels.yAxis.color},e.toDisplayString(e.unref(s.applyDataLabel)(t.value.style.layout.plots.selectors.labels.y.formatter,e.unref(s.checkNaN)(y.value.yMin),e.unref(s.dataLabel)({p:t.value.style.layout.plots.selectors.labels.prefix,v:e.unref(s.checkNaN)(y.value.yMin),s:t.value.style.layout.plots.selectors.labels.suffix,r:t.value.style.layout.dataLabels.yAxis.rounding}))),9,$t),e.createElementVNode("text",{x:v.value.x,y:u.value.top-t.value.style.layout.dataLabels.yAxis.fontSize/2,"text-anchor":"middle","font-size":t.value.style.layout.dataLabels.yAxis.fontSize,fill:t.value.style.layout.dataLabels.yAxis.color},e.toDisplayString(e.unref(s.applyDataLabel)(t.value.style.layout.plots.selectors.labels.y.formatter,e.unref(s.checkNaN)(y.value.yMax),e.unref(s.dataLabel)({p:t.value.style.layout.plots.selectors.labels.prefix,v:e.unref(s.checkNaN)(y.value.yMax),s:t.value.style.layout.plots.selectors.labels.suffix,r:t.value.style.layout.dataLabels.yAxis.rounding}))),9,Et),e.createElementVNode("text",{"text-anchor":"middle","font-size":t.value.style.layout.dataLabels.yAxis.fontSize,"font-weight":t.value.style.layout.dataLabels.yAxis.bold?"bold":"normal",fill:t.value.style.layout.dataLabels.yAxis.color,x:u.value.left+u.value.width/2,y:u.value.bottom+8+t.value.style.layout.dataLabels.yAxis.fontSize*2},e.toDisplayString(t.value.style.layout.dataLabels.yAxis.name),9,Lt)])):e.createCommentVNode("",!0),e.createElementVNode("clipPath",{id:`clip_path_${k.value}`},[e.createElementVNode("rect",{x:u.value.left,y:u.value.top,width:u.value.width<=0?1e-4:u.value.width,height:u.value.height<=0?1e-4:u.value.height},null,8,Vt)],8,zt),t.value.style.layout.correlation.show?(e.openBlock(),e.createElementBlock("g",At,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(x.value,(a,r)=>(e.openBlock(),e.createElementBlock("line",{x1:a.correlation.x1,x2:a.correlation.x2,y1:a.correlation.y1,y2:a.correlation.y2,"stroke-dasharray":t.value.style.layout.correlation.strokeDasharray,stroke:a.color,"stroke-width":t.value.style.layout.correlation.strokeWidth,"clip-path":`url(#clip_path_${k.value})`},null,8,Tt))),256)),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(x.value,(a,r)=>(e.openBlock(),e.createElementBlock("g",null,[t.value.style.layout.correlation.label.show?(e.openBlock(),e.createElementBlock("text",{key:0,x:a.label.x,y:a.label.y,fill:t.value.style.layout.correlation.label.useSerieColor?a.color:t.value.style.layout.correlation.label.color,"font-size":t.value.style.layout.correlation.label.fontSize,"font-weight":t.value.style.layout.correlation.label.bold?"bold":"normal"},e.toDisplayString(e.unref(s.dataLabel)({v:e.unref(s.checkNaN)(a.correlation.coefficient),r:t.value.style.layout.correlation.label.roundingValue})),9,Pt)):e.createCommentVNode("",!0)]))),256))])):e.createCommentVNode("",!0),e.renderSlot(l.$slots,"svg",{svg:h.value},void 0,!0)],14,Re)):e.createCommentVNode("",!0),l.$slots.watermark?(e.openBlock(),e.createElementBlock("div",Dt,[e.renderSlot(l.$slots,"watermark",e.normalizeProps(e.guardReactiveProps({isPrinting:e.unref(ie)||e.unref(ce)})),void 0,!0)])):e.createCommentVNode("",!0),P.value?e.createCommentVNode("",!0):(e.openBlock(),e.createBlock(Fe.default,{key:6,config:{type:"quadrant",style:{backgroundColor:t.value.style.backgroundColor,quadrant:{grid:{color:t.value.style.layout.axis.stroke},plots:{color:t.value.style.layout.axis.stroke,radius:1}}}}},null,8,["config"])),e.createElementVNode("div",{ref_key:"chartLegend",ref:Z},[t.value.style.legend.show?(e.openBlock(),e.createBlock(De.Legend,{key:`legend_${oe.value}`,legendSet:$.value,config:Le.value,onClickMarker:n[0]||(n[0]=({legend:a})=>ge(a.id))},{item:e.withCtx(({legend:a})=>[e.createElementVNode("div",{onClick:r=>a.segregate(),style:e.normalizeStyle(`opacity:${p.value.includes(a.id)?.5:1}`)},e.toDisplayString(a.name),13,Ot)]),_:1},8,["legendSet","config"])):e.renderSlot(l.$slots,"legend",{key:1,legend:$.value},void 0,!0)],512),l.$slots.source?(e.openBlock(),e.createElementBlock("div",{key:7,ref_key:"source",ref:ee,dir:"auto"},[e.renderSlot(l.$slots,"source",{},void 0,!0)],512)):e.createCommentVNode("",!0),e.createVNode(Pe._sfc_main,{show:B.value.showTooltip&&I.value,backgroundColor:t.value.style.tooltip.backgroundColor,color:t.value.style.tooltip.color,borderRadius:t.value.style.tooltip.borderRadius,borderColor:t.value.style.tooltip.borderColor,borderWidth:t.value.style.tooltip.borderWidth,fontSize:t.value.style.tooltip.fontSize,backgroundOpacity:t.value.style.tooltip.backgroundOpacity,position:t.value.style.tooltip.position,offsetY:t.value.style.tooltip.offsetY,parent:V.value,content:X.value,isFullscreen:A.value,isCustom:t.value.style.tooltip.customFormat&&typeof t.value.style.tooltip.customFormat=="function"},{"tooltip-before":e.withCtx(()=>[e.renderSlot(l.$slots,"tooltip-before",e.normalizeProps(e.guardReactiveProps({...R.value})),void 0,!0)]),"tooltip-after":e.withCtx(()=>[e.renderSlot(l.$slots,"tooltip-after",e.normalizeProps(e.guardReactiveProps({...R.value})),void 0,!0)]),default:e.withCtx(()=>[t.value.style.tooltip.showShape?(e.openBlock(),e.createElementBlock("div",Ft,[(e.openBlock(),e.createElementBlock("svg",Wt,[e.createVNode(_e._sfc_main,{shape:c.value.shape,color:c.value.color,plot:{x:10,y:10},radius:7},null,8,["shape","color"])]))])):e.createCommentVNode("",!0)]),_:3},8,["show","backgroundColor","color","borderRadius","borderColor","borderWidth","fontSize","backgroundOpacity","position","offsetY","parent","content","isFullscreen","isCustom"]),P.value?(e.openBlock(),e.createBlock(We.default,{key:8,hideDetails:"",config:{open:B.value.showTable,maxHeight:1e4,body:{backgroundColor:t.value.style.backgroundColor,color:t.value.style.color},head:{backgroundColor:t.value.style.backgroundColor,color:t.value.style.color}}},{content:e.withCtx(()=>[(e.openBlock(),e.createBlock(Oe.DataTable,{key:`table_${ae.value}`,colNames:F.value.colNames,head:F.value.head,body:F.value.body,config:F.value.config,title:`${t.value.style.title.text}${t.value.style.title.subtitle.text?` : ${t.value.style.title.subtitle.text}`:""}`,onClose:n[1]||(n[1]=a=>B.value.showTable=!1)},{th:e.withCtx(({th:a})=>[e.createTextVNode(e.toDisplayString(a),1)]),td:e.withCtx(({td:a})=>[a.shape?(e.openBlock(),e.createElementBlock("div",qt,[e.createElementVNode("span",null,e.toDisplayString(a.content),1)])):(e.openBlock(),e.createElementBlock("div",{key:1,innerHTML:a},null,8,It))]),_:1},8,["colNames","head","body","config","title"]))]),_:1},8,["config"])):e.createCommentVNode("",!0)],46,je))}},Yt=Ye._export_sfc(Xt,[["__scopeId","data-v-c274e32f"]]);exports.default=Yt;