vue-data-ui 2.3.57 → 2.3.59

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 (145) hide show
  1. package/dist/{Arrow-ycy3_Slf.js → Arrow-BJ47KXjY.js} +1 -1
  2. package/dist/{Arrow-DzUipdZc.cjs → Arrow-VxZlHkwt.cjs} +1 -1
  3. package/dist/{BaseIcon-BkQhR5to.cjs → BaseIcon-Bv5uh10R.cjs} +1 -1
  4. package/dist/{BaseIcon-DuWxvGrs.js → BaseIcon-Fm7sUbd2.js} +1 -1
  5. package/dist/{DataTable-Cp8-9z9I.js → DataTable-1VV0us-8.js} +2 -2
  6. package/dist/{DataTable-BRux41DB.cjs → DataTable-CPAt686N.cjs} +1 -1
  7. package/dist/{Legend-Bkl0mNRU.cjs → Legend-BJ2Mynop.cjs} +1 -1
  8. package/dist/{Legend-Dxg4fgms.js → Legend-DB6v_LvZ.js} +1 -1
  9. package/dist/{Shape-9atoPZLR.js → Shape-B_f1_6Ob.js} +1 -1
  10. package/dist/{Shape-BqcaWTo1.cjs → Shape-DWZSJJ6-.cjs} +1 -1
  11. package/dist/{Slicer-DWXMDMkg.js → Slicer-CHiUxRAh.js} +55 -52
  12. package/dist/Slicer-PPS43jOo.cjs +1 -0
  13. package/dist/{Title-JorKJ3kW.cjs → Title-CR-JDJwq.cjs} +1 -1
  14. package/dist/{Title-Bft_Qodf.js → Title-xP0rAF4q.js} +1 -1
  15. package/dist/{Tooltip-DuhcODsb.cjs → Tooltip-B4DNihSF.cjs} +1 -1
  16. package/dist/{Tooltip-DsJ_DDEa.js → Tooltip-DfBa_7Ur.js} +1 -1
  17. package/dist/index-CDK3omwG.cjs +4 -0
  18. package/dist/{index-ByARe6xk.js → index-CpHoINpJ.js} +21 -19
  19. package/dist/style.css +1 -1
  20. package/dist/types/vue-data-ui.d.cts +2 -0
  21. package/dist/types/vue-data-ui.d.ts +2 -0
  22. package/dist/{useNestedProp-DcnyJpjm.js → useNestedProp-BOjw3Yqn.js} +1 -1
  23. package/dist/{useNestedProp-BUoCZrmY.cjs → useNestedProp-CaaW8JIS.cjs} +1 -1
  24. package/dist/{usePrinter-BUBRC6GE.js → usePrinter-BHy-mfVg.js} +1 -1
  25. package/dist/{usePrinter-D5ewpTd3.cjs → usePrinter-vQu-8tRD.cjs} +1 -1
  26. package/dist/{vue-data-ui-BzsqnKj2.cjs → vue-data-ui-Ccdrn4OV.cjs} +1 -1
  27. package/dist/{vue-data-ui-67aBhtaH.js → vue-data-ui-Dcg7DPMn.js} +57 -57
  28. package/dist/vue-data-ui.cjs +1 -1
  29. package/dist/vue-data-ui.js +5 -5
  30. package/dist/{vue-ui-3d-bar-CQ656C3D.js → vue-ui-3d-bar-BqtnNU7h.js} +7 -7
  31. package/dist/{vue-ui-3d-bar-NcBKcawL.cjs → vue-ui-3d-bar-DdBlV5AX.cjs} +1 -1
  32. package/dist/{vue-ui-accordion-B7sGXK-8.js → vue-ui-accordion-BZloYo0L.js} +3 -3
  33. package/dist/{vue-ui-accordion-CSnFq9e7.cjs → vue-ui-accordion-EVAolVkD.cjs} +1 -1
  34. package/dist/{vue-ui-age-pyramid-DcN9DXL7.js → vue-ui-age-pyramid-CTxkOn4v.js} +8 -8
  35. package/dist/{vue-ui-age-pyramid-B8KDJTmK.cjs → vue-ui-age-pyramid-Ce3DbeqC.cjs} +1 -1
  36. package/dist/{vue-ui-annotator-DINvjGdW.js → vue-ui-annotator-BDWKiQ6S.js} +1 -1
  37. package/dist/{vue-ui-annotator-BcKsg71t.cjs → vue-ui-annotator-D_AK0JCi.cjs} +1 -1
  38. package/dist/{vue-ui-candlestick-dE7VZ9c2.js → vue-ui-candlestick-ByA9FGZb.js} +9 -9
  39. package/dist/{vue-ui-candlestick-DokpJUMI.cjs → vue-ui-candlestick-CIKgu0F2.cjs} +1 -1
  40. package/dist/{vue-ui-carousel-table-CyvXkNVJ.js → vue-ui-carousel-table-BnYxbq5A.js} +4 -4
  41. package/dist/{vue-ui-carousel-table-CfkAq3aZ.cjs → vue-ui-carousel-table-ez9gbOZ7.cjs} +1 -1
  42. package/dist/{vue-ui-chestnut-BtbUx2K6.js → vue-ui-chestnut-BumsSmCv.js} +6 -6
  43. package/dist/{vue-ui-chestnut-C7UoeDnX.cjs → vue-ui-chestnut-CnYqa2Fx.cjs} +1 -1
  44. package/dist/{vue-ui-cursor-a04KGiW0.js → vue-ui-cursor-D-4-MMw7.js} +2 -2
  45. package/dist/{vue-ui-cursor-CdZf-yX5.cjs → vue-ui-cursor-Drl8jibt.cjs} +1 -1
  46. package/dist/{vue-ui-dashboard-C16uiqyH.js → vue-ui-dashboard-B_iV-3hq.js} +2 -2
  47. package/dist/{vue-ui-dashboard-BVfWXpf8.cjs → vue-ui-dashboard-CX0jA181.cjs} +1 -1
  48. package/dist/{vue-ui-digits-DrK1MsGL.js → vue-ui-digits-DMhl9plv.js} +2 -2
  49. package/dist/{vue-ui-digits-Ct2vS1BN.cjs → vue-ui-digits-RAZl_4Kb.cjs} +1 -1
  50. package/dist/{vue-ui-donut-DCw94nm5.cjs → vue-ui-donut-BG28U01c.cjs} +1 -1
  51. package/dist/{vue-ui-donut-gBfPKxL5.js → vue-ui-donut-BpQC9-Uz.js} +9 -9
  52. package/dist/{vue-ui-donut-evolution-w2VBVy8J.cjs → vue-ui-donut-evolution-BWvrYKlH.cjs} +1 -1
  53. package/dist/{vue-ui-donut-evolution-ci4AbPDx.js → vue-ui-donut-evolution-DPU-Nd8y.js} +9 -9
  54. package/dist/{vue-ui-dumbbell-DSeY7g70.cjs → vue-ui-dumbbell-2Lsks-8o.cjs} +1 -1
  55. package/dist/{vue-ui-dumbbell-CfRDGglI.js → vue-ui-dumbbell-C4JnuC1b.js} +8 -8
  56. package/dist/{vue-ui-flow-CCRXuD2w.cjs → vue-ui-flow-DBhdVKxF.cjs} +1 -1
  57. package/dist/{vue-ui-flow-sxRGOd3v.js → vue-ui-flow-DSdWqWgh.js} +7 -7
  58. package/dist/{vue-ui-galaxy-BtRwEK-N.js → vue-ui-galaxy-148JtEdK.js} +9 -9
  59. package/dist/{vue-ui-galaxy-7uOmICFQ.cjs → vue-ui-galaxy-BMsdd9Rh.cjs} +1 -1
  60. package/dist/{vue-ui-gauge-DF5cMUZq.js → vue-ui-gauge-DOJ98R_N.js} +5 -5
  61. package/dist/{vue-ui-gauge-CcGerm6-.cjs → vue-ui-gauge-fVk9B_1W.cjs} +1 -1
  62. package/dist/{vue-ui-gizmo-BxSR6Npw.js → vue-ui-gizmo-KeWvd226.js} +2 -2
  63. package/dist/{vue-ui-gizmo-DOdbL7oJ.cjs → vue-ui-gizmo-a6WNWyf7.cjs} +1 -1
  64. package/dist/{vue-ui-heatmap-BFebVyoq.js → vue-ui-heatmap-BGsSOTPJ.js} +176 -173
  65. package/dist/vue-ui-heatmap-DFpSo2gr.cjs +1 -0
  66. package/dist/{vue-ui-kpi-Bh3EQVzo.cjs → vue-ui-kpi-Dhah6Fgx.cjs} +1 -1
  67. package/dist/{vue-ui-kpi-kz6LxY4z.js → vue-ui-kpi-Leb1rK38.js} +3 -3
  68. package/dist/{vue-ui-mini-loader-XvpXZ4Lu.js → vue-ui-mini-loader-BLH4ncUB.js} +2 -2
  69. package/dist/{vue-ui-mini-loader-BUmmuBm2.cjs → vue-ui-mini-loader-Dpa9uYkn.cjs} +1 -1
  70. package/dist/{vue-ui-molecule-DAqPp6P1.cjs → vue-ui-molecule-DjvOvDUa.cjs} +1 -1
  71. package/dist/{vue-ui-molecule-CV9jYVPn.js → vue-ui-molecule-DuPAOQcj.js} +20 -20
  72. package/dist/{vue-ui-mood-radar-Rpgf2fO4.cjs → vue-ui-mood-radar-AOHK6R10.cjs} +1 -1
  73. package/dist/{vue-ui-mood-radar-BXksXL9W.js → vue-ui-mood-radar-BmcIz0JR.js} +16 -16
  74. package/dist/{vue-ui-nested-donuts-DP44vR6_.js → vue-ui-nested-donuts-BYLc86qs.js} +9 -9
  75. package/dist/{vue-ui-nested-donuts-Bi9o-a5M.cjs → vue-ui-nested-donuts-CMmcmAd9.cjs} +1 -1
  76. package/dist/{vue-ui-onion-BdQtE7OR.cjs → vue-ui-onion-BjG8xbMh.cjs} +1 -1
  77. package/dist/{vue-ui-onion-C-hnaK6-.js → vue-ui-onion-shZ4g9mJ.js} +9 -9
  78. package/dist/{vue-ui-parallel-coordinate-plot-Cl7HwAhr.cjs → vue-ui-parallel-coordinate-plot-O7lS6u2q.cjs} +1 -1
  79. package/dist/{vue-ui-parallel-coordinate-plot-CRfWMtfW.js → vue-ui-parallel-coordinate-plot-wv0O9t7U.js} +10 -10
  80. package/dist/{vue-ui-quadrant-BvmZuTNr.js → vue-ui-quadrant-BRF5Czj4.js} +52 -52
  81. package/dist/{vue-ui-quadrant-2jWkCnCZ.cjs → vue-ui-quadrant-CuB8sYgF.cjs} +1 -1
  82. package/dist/{vue-ui-quick-chart-Cf2bonoP.js → vue-ui-quick-chart-BQdUHrm2.js} +6 -6
  83. package/dist/{vue-ui-quick-chart-Dljdowyo.cjs → vue-ui-quick-chart-DsVFRO68.cjs} +1 -1
  84. package/dist/{vue-ui-radar-D8WUIeAJ.js → vue-ui-radar-CLUs0tD9.js} +20 -20
  85. package/dist/{vue-ui-radar-DWQT59Y3.cjs → vue-ui-radar-lcS6n5TC.cjs} +1 -1
  86. package/dist/{vue-ui-rating-C6EdVOFi.cjs → vue-ui-rating-CA25nHJe.cjs} +1 -1
  87. package/dist/{vue-ui-rating-DA5yVA82.js → vue-ui-rating-Dcy1l1PB.js} +10 -10
  88. package/dist/{vue-ui-relation-circle-D1HV7sEy.js → vue-ui-relation-circle-DC-RFa9X.js} +5 -5
  89. package/dist/{vue-ui-relation-circle-D1Dfp3vd.cjs → vue-ui-relation-circle-Drr6Gdnq.cjs} +1 -1
  90. package/dist/{vue-ui-rings-9KX262V6.js → vue-ui-rings-DbPbelCU.js} +9 -9
  91. package/dist/{vue-ui-rings-D7ZSknfw.cjs → vue-ui-rings-DxqSAs9h.cjs} +1 -1
  92. package/dist/{vue-ui-scatter-BS4fuY2e.js → vue-ui-scatter-D2jYZ4Wu.js} +67 -67
  93. package/dist/{vue-ui-scatter-BkE4TBcf.cjs → vue-ui-scatter-xyLvaw0d.cjs} +1 -1
  94. package/dist/{vue-ui-screenshot-BNsuh29D.cjs → vue-ui-screenshot-DGqjaE1x.cjs} +1 -1
  95. package/dist/{vue-ui-screenshot-ChhpX9vN.js → vue-ui-screenshot-DXCBzrPZ.js} +1 -1
  96. package/dist/{vue-ui-skeleton-H7E3SBMd.cjs → vue-ui-skeleton-DRDC3yxK.cjs} +1 -1
  97. package/dist/{vue-ui-skeleton-C2W5etGt.js → vue-ui-skeleton-DuM6yey6.js} +36 -36
  98. package/dist/{vue-ui-smiley-CSVsepz-.cjs → vue-ui-smiley-BCmY1siL.cjs} +1 -1
  99. package/dist/{vue-ui-smiley-DmvbdKQH.js → vue-ui-smiley-DQrvx_S9.js} +2 -2
  100. package/dist/{vue-ui-spark-trend-CIRMNMBi.js → vue-ui-spark-trend-B9PR0wxN.js} +17 -17
  101. package/dist/{vue-ui-spark-trend-B_jzBm-L.cjs → vue-ui-spark-trend-Kj1bJmBL.cjs} +1 -1
  102. package/dist/{vue-ui-sparkbar-Bc0UGC0I.cjs → vue-ui-sparkbar-C_vNsxM_.cjs} +1 -1
  103. package/dist/{vue-ui-sparkbar-CsPU3f7E.js → vue-ui-sparkbar-DiU5Yt-V.js} +3 -3
  104. package/dist/{vue-ui-sparkgauge-sf5NkOzU.js → vue-ui-sparkgauge-BnF9Vbs0.js} +9 -9
  105. package/dist/{vue-ui-sparkgauge-B9Z7UC0c.cjs → vue-ui-sparkgauge-SlYA1lqc.cjs} +1 -1
  106. package/dist/{vue-ui-sparkhistogram-BcbNk4hY.cjs → vue-ui-sparkhistogram-BUBwn9A4.cjs} +1 -1
  107. package/dist/{vue-ui-sparkhistogram-C9q2fgqW.js → vue-ui-sparkhistogram-CsOfCo_3.js} +4 -4
  108. package/dist/{vue-ui-sparkline-BW3H6hsT.js → vue-ui-sparkline-B628G3Nl.js} +18 -18
  109. package/dist/{vue-ui-sparkline-Cc-z4lug.cjs → vue-ui-sparkline-CoUeD8Np.cjs} +1 -1
  110. package/dist/{vue-ui-sparkstackbar-DRUOzvw_.cjs → vue-ui-sparkstackbar-Cr-Q7uDo.cjs} +1 -1
  111. package/dist/{vue-ui-sparkstackbar-DtdKmv0C.js → vue-ui-sparkstackbar-DIHGbrF5.js} +3 -3
  112. package/dist/{vue-ui-stackbar-C3hiDzB9.js → vue-ui-stackbar-DCbJhdZy.js} +22 -22
  113. package/dist/{vue-ui-stackbar-CJSxzmsC.cjs → vue-ui-stackbar-DMyP3IRK.cjs} +1 -1
  114. package/dist/{vue-ui-strip-plot-D6RdcG4r.js → vue-ui-strip-plot-CNb3VtYF.js} +9 -9
  115. package/dist/{vue-ui-strip-plot-Dea20UQo.cjs → vue-ui-strip-plot-Da_TQpOq.cjs} +1 -1
  116. package/dist/{vue-ui-table-Cl83ltew.js → vue-ui-table-BqcI8E7E.js} +1 -1
  117. package/dist/{vue-ui-table-DThpCd--.cjs → vue-ui-table-CjuXpy2d.cjs} +1 -1
  118. package/dist/{vue-ui-table-heatmap-C9znKJA2.cjs → vue-ui-table-heatmap-D6px_Z1a.cjs} +1 -1
  119. package/dist/{vue-ui-table-heatmap-P1qoQg4L.js → vue-ui-table-heatmap-nbBDuSiw.js} +7 -7
  120. package/dist/{vue-ui-table-sparkline-ByBzCnhr.js → vue-ui-table-sparkline-Blbaz2zX.js} +10 -10
  121. package/dist/{vue-ui-table-sparkline-B56XlhbD.cjs → vue-ui-table-sparkline-CqNPx5Zw.cjs} +1 -1
  122. package/dist/{vue-ui-thermometer-CEtqGDhU.js → vue-ui-thermometer-BCGHbgj9.js} +5 -5
  123. package/dist/{vue-ui-thermometer-D1BIwe-x.cjs → vue-ui-thermometer-coTC0T6k.cjs} +1 -1
  124. package/dist/{vue-ui-timer-CZv_iq9A.cjs → vue-ui-timer-BjqbxjQO.cjs} +1 -1
  125. package/dist/{vue-ui-timer-_OXWxSrR.js → vue-ui-timer-DhpBvc_5.js} +4 -4
  126. package/dist/{vue-ui-tiremarks-Vln9izs8.js → vue-ui-tiremarks-CNhB7Iqe.js} +5 -5
  127. package/dist/{vue-ui-tiremarks-Crjj6lAQ.cjs → vue-ui-tiremarks-DgbTo_Cb.cjs} +1 -1
  128. package/dist/{vue-ui-treemap-CvZ_PXHg.cjs → vue-ui-treemap-B5moKzuO.cjs} +1 -1
  129. package/dist/{vue-ui-treemap-CVSmQvg5.js → vue-ui-treemap-C4memkYu.js} +9 -9
  130. package/dist/{vue-ui-vertical-bar-B6gMyH90.cjs → vue-ui-vertical-bar-DtkGW5Tk.cjs} +1 -1
  131. package/dist/{vue-ui-vertical-bar-DW83JGF2.js → vue-ui-vertical-bar-LZ-GMZ2T.js} +9 -9
  132. package/dist/{vue-ui-waffle-C9SFbGDx.js → vue-ui-waffle-Cd4IU62n.js} +9 -9
  133. package/dist/{vue-ui-waffle-Ck6_fLgH.cjs → vue-ui-waffle-CtY5CSX9.cjs} +1 -1
  134. package/dist/{vue-ui-wheel-DaA4af-u.js → vue-ui-wheel-CaEAQhJt.js} +5 -5
  135. package/dist/{vue-ui-wheel-DvxUmFh9.cjs → vue-ui-wheel-Do3pWPFB.cjs} +1 -1
  136. package/dist/{vue-ui-word-cloud-X1mDRHqA.js → vue-ui-word-cloud-BSalPYqO.js} +28 -28
  137. package/dist/{vue-ui-word-cloud-B_3r5g7T.cjs → vue-ui-word-cloud-pzaBe3Et.cjs} +1 -1
  138. package/dist/{vue-ui-xy-CQGKoYPl.cjs → vue-ui-xy-BgLF5ZNP.cjs} +1 -1
  139. package/dist/{vue-ui-xy-CID8ZHKi.js → vue-ui-xy-C7tpVpGu.js} +21 -21
  140. package/dist/{vue-ui-xy-canvas-BiqWum4l.cjs → vue-ui-xy-canvas-OuDGiOOW.cjs} +1 -1
  141. package/dist/{vue-ui-xy-canvas-BNAlSGC5.js → vue-ui-xy-canvas-rHcYmvec.js} +36 -36
  142. package/package.json +1 -1
  143. package/dist/Slicer-DJ_rlsfN.cjs +0 -1
  144. package/dist/index-vvhNQFio.cjs +0 -4
  145. package/dist/vue-ui-heatmap-bCvQEgv4.cjs +0 -1
@@ -1,17 +1,17 @@
1
- import { computed as b, ref as k, onMounted as Ee, onBeforeUnmount as Ve, openBlock as s, createElementBlock as r, normalizeClass as Ae, normalizeStyle as D, createVNode as le, createCommentVNode as c, createBlock as J, unref as d, createSlots as Ge, withCtx as w, renderSlot as A, normalizeProps as ae, guardReactiveProps as oe, createElementVNode as v, Fragment as N, renderList as P, toDisplayString as M, createTextVNode as Re, nextTick as qe } from "vue";
2
- import { u as Ue, c as He, t as Je, a as Ke, p as R, o as Qe, e as ce, b as Ze, g as Te, M as Be, X as et, O as tt, v as de, i as Y, f as F, w as lt, x as at, q as ot, r as st } from "./index-ByARe6xk.js";
1
+ import { computed as b, ref as k, onMounted as Ee, onBeforeUnmount as Ve, openBlock as s, createElementBlock as r, normalizeClass as Ae, normalizeStyle as D, createVNode as le, createCommentVNode as c, createBlock as J, unref as d, createSlots as Ge, withCtx as w, renderSlot as A, normalizeProps as ae, guardReactiveProps as oe, createElementVNode as v, Fragment as N, renderList as W, toDisplayString as $, createTextVNode as Re, nextTick as qe } from "vue";
2
+ import { u as Ue, c as He, t as Je, a as Ke, p as R, o as Qe, e as ce, b as Ze, g as Te, N as Be, X as et, P as tt, v as de, i as Y, f as F, w as lt, x as at, q as ot, r as st } from "./index-CpHoINpJ.js";
3
3
  import { t as ut, u as rt } from "./useResponsive-NZB-WLRF.js";
4
- import { _ as it } from "./Title-Bft_Qodf.js";
5
- import { u as nt, U as yt } from "./usePrinter-BUBRC6GE.js";
6
- import { _ as vt } from "./Tooltip-DsJ_DDEa.js";
7
- import { L as ct } from "./Legend-Dxg4fgms.js";
8
- import { _ as Ne } from "./Shape-9atoPZLR.js";
9
- import { D as dt } from "./DataTable-Cp8-9z9I.js";
10
- import ht from "./vue-ui-skeleton-C2W5etGt.js";
11
- import pt from "./vue-ui-accordion-B7sGXK-8.js";
12
- import { u as We } from "./useNestedProp-DcnyJpjm.js";
4
+ import { _ as it } from "./Title-xP0rAF4q.js";
5
+ import { u as nt, U as yt } from "./usePrinter-BHy-mfVg.js";
6
+ import { _ as vt } from "./Tooltip-DfBa_7Ur.js";
7
+ import { L as ct } from "./Legend-DB6v_LvZ.js";
8
+ import { _ as Ne } from "./Shape-B_f1_6Ob.js";
9
+ import { D as dt } from "./DataTable-1VV0us-8.js";
10
+ import ht from "./vue-ui-skeleton-DuM6yey6.js";
11
+ import pt from "./vue-ui-accordion-BZloYo0L.js";
12
+ import { u as Pe } from "./useNestedProp-BOjw3Yqn.js";
13
13
  import { _ as ft } from "./_plugin-vue_export-helper-CHgC5LLL.js";
14
- const gt = ["id"], xt = ["xmlns", "viewBox"], mt = { key: 0 }, bt = ["x1", "x2", "y1", "y2", "stroke", "stroke-width"], kt = ["x1", "x2", "y1", "y2", "stroke", "stroke-width"], _t = { key: 1 }, wt = ["points", "fill", "stroke-width", "stroke-dasharray", "stroke"], Mt = { key: 0 }, $t = ["cx", "cy", "r", "fill", "stroke", "stroke-width", "onMouseover"], Ct = { key: 1 }, zt = { key: 2 }, St = ["id"], Lt = ["stop-color"], At = ["stop-color"], Tt = ["id"], Bt = ["stop-color"], Nt = ["stop-color"], Wt = ["x", "y", "width", "height", "fill", "stroke", "stroke-width", "rx"], Pt = ["x", "y", "height", "width", "fill", "stroke", "stroke-width", "rx"], Ft = { key: 0 }, Ot = ["d", "stroke", "stroke-width"], Xt = ["d", "stroke", "stroke-width"], It = ["d", "stroke", "stroke-width"], Dt = ["d", "stroke", "stroke-width"], Yt = {
14
+ const gt = ["id"], xt = ["xmlns", "viewBox"], mt = { key: 0 }, bt = ["x1", "x2", "y1", "y2", "stroke", "stroke-width"], kt = ["x1", "x2", "y1", "y2", "stroke", "stroke-width"], _t = { key: 1 }, wt = ["points", "fill", "stroke-width", "stroke-dasharray", "stroke"], $t = { key: 0 }, Mt = ["cx", "cy", "r", "fill", "stroke", "stroke-width", "onMouseover"], Ct = { key: 1 }, zt = { key: 2 }, St = ["id"], Lt = ["stop-color"], At = ["stop-color"], Tt = ["id"], Bt = ["stop-color"], Nt = ["stop-color"], Pt = ["x", "y", "width", "height", "fill", "stroke", "stroke-width", "rx"], Wt = ["x", "y", "height", "width", "fill", "stroke", "stroke-width", "rx"], Ft = { key: 0 }, Ot = ["d", "stroke", "stroke-width"], Xt = ["d", "stroke", "stroke-width"], It = ["d", "stroke", "stroke-width"], Dt = ["d", "stroke", "stroke-width"], Yt = {
15
15
  key: 3,
16
16
  style: { "pointer-events": "none !important" }
17
17
  }, jt = ["x1", "x2", "y1", "y2", "stroke", "stroke-width", "stroke-dasharray"], Et = ["x1", "x2", "y1", "y2", "stroke", "stroke-width", "stroke-dasharray"], Vt = ["x", "y", "font-size", "fill", "font-weight", "text-anchor"], Gt = ["x", "y", "font-size", "fill", "font-weight"], Rt = ["cx", "cy", "r", "fill", "stroke", "stroke-width"], qt = ["cx", "cy", "r", "fill", "stroke", "stroke-width"], Ut = ["x", "y", "font-size", "fill", "font-weight", "text-anchor"], Ht = { key: 4 }, Jt = ["x", "y", "font-size", "fill"], Kt = ["x", "y", "font-size", "fill"], Qt = ["id", "transform", "font-size", "font-weight", "fill"], Zt = { key: 5 }, el = ["x", "y", "font-size", "fill"], tl = ["x", "y", "font-size", "fill"], ll = ["font-size", "font-weight", "fill", "x", "y"], al = ["id"], ol = ["x", "y", "width", "height"], sl = { key: 6 }, ul = ["x1", "x2", "y1", "y2", "stroke-dasharray", "stroke", "stroke-width", "clip-path"], rl = ["x", "y", "fill", "font-size", "font-weight"], il = {
@@ -41,14 +41,14 @@ const gt = ["id"], xt = ["xmlns", "viewBox"], mt = { key: 0 }, bt = ["x1", "x2",
41
41
  }
42
42
  }
43
43
  },
44
- setup(Pe, { expose: Fe }) {
45
- const O = Pe, { vue_ui_scatter: Oe } = Ue(), K = b(() => !!O.dataset && O.dataset.length), $ = k(He()), Xe = k(null), se = k(!1), ue = k(""), he = k(0), U = k(null), pe = k(null), fe = k(null), e = b(() => {
46
- const l = We({
44
+ setup(We, { expose: Fe }) {
45
+ const O = We, { vue_ui_scatter: Oe } = Ue(), K = b(() => !!O.dataset && O.dataset.length), M = k(He()), Xe = k(null), se = k(!1), ue = k(""), he = k(0), U = k(null), pe = k(null), fe = k(null), e = b(() => {
46
+ const l = Pe({
47
47
  userConfig: O.config,
48
48
  defaultConfig: Oe
49
49
  });
50
50
  return l.theme ? {
51
- ...We({
51
+ ...Pe({
52
52
  userConfig: Je.vue_ui_scatter[l.theme] || O.config,
53
53
  defaultConfig: l
54
54
  }),
@@ -74,7 +74,7 @@ const gt = ["id"], xt = ["xmlns", "viewBox"], mt = { key: 0 }, bt = ["x1", "x2",
74
74
  Q.value && Q.value.disconnect();
75
75
  });
76
76
  const { isPrinting: ge, isImaging: xe, generatePdf: me, generateImage: be } = nt({
77
- elementId: `vue-ui-scatter_${$.value}`,
77
+ elementId: `vue-ui-scatter_${M.value}`,
78
78
  fileName: e.value.style.title.text || "vue-ui-scatter"
79
79
  }), ke = b(() => Ze(e.value.customPalette)), X = k({
80
80
  showTable: e.value.table.show,
@@ -121,7 +121,7 @@ const gt = ["id"], xt = ["xmlns", "viewBox"], mt = { key: 0 }, bt = ["x1", "x2",
121
121
  x: u.value.left + Math.abs(h.value.xMin) / (h.value.xMax + Math.abs(h.value.xMin)) * u.value.width,
122
122
  y: u.value.bottom - Math.abs(h.value.yMin) / (h.value.yMax + Math.abs(h.value.yMin)) * u.value.height
123
123
  })), j = b(() => O.dataset.map((l, i) => {
124
- const t = `cluster_${$.value}_${i}`;
124
+ const t = `cluster_${M.value}_${i}`;
125
125
  return {
126
126
  ...l,
127
127
  id: t,
@@ -149,7 +149,7 @@ const gt = ["id"], xt = ["xmlns", "viewBox"], mt = { key: 0 }, bt = ["x1", "x2",
149
149
  },
150
150
  clusterName: l.name,
151
151
  color: l.color ? l.color : ke.value[i] || R[i] || R[i % R.length],
152
- id: `plot_${$.value}_${Math.random()}`,
152
+ id: `plot_${M.value}_${Math.random()}`,
153
153
  weight: t.weight ?? e.value.style.layout.plots.radius
154
154
  }))
155
155
  })).filter((l) => !g.value.includes(l.id))), z = b(() => re.value.map((l) => {
@@ -163,9 +163,9 @@ const gt = ["id"], xt = ["xmlns", "viewBox"], mt = { key: 0 }, bt = ["x1", "x2",
163
163
  y1: E * u.value.left + q,
164
164
  y2: E * u.value.right + q,
165
165
  coefficient: x
166
- }, _ = (B.y2 - B.y1) / (B.x2 - B.x1), L = B.y1 - _ * B.x1, W = Math.min(C.value.width - e.value.style.layout.padding.right, Math.max(e.value.style.layout.padding.left, (u.value.top - L) / _)), te = {
167
- x: W,
168
- y: _ * W + L <= e.value.style.layout.padding.top ? u.value.top : _ * W + L
166
+ }, _ = (B.y2 - B.y1) / (B.x2 - B.x1), L = B.y1 - _ * B.x1, P = Math.min(C.value.width - e.value.style.layout.padding.right, Math.max(e.value.style.layout.padding.left, (u.value.top - L) / _)), te = {
167
+ x: P,
168
+ y: _ * P + L <= e.value.style.layout.padding.top ? u.value.top : _ * P + L
169
169
  };
170
170
  return {
171
171
  ...l,
@@ -197,16 +197,16 @@ const gt = ["id"], xt = ["xmlns", "viewBox"], mt = { key: 0 }, bt = ["x1", "x2",
197
197
  t.forEach(({ x: m, y: G }) => {
198
198
  o = Math.min(o, m), a = Math.max(a, m), n = Math.min(n, G), x = Math.max(x, G);
199
199
  });
200
- const E = a - o, q = x - n, B = E / i, _ = q / i, L = Array(i).fill(0), W = Array(i).fill(0);
200
+ const E = a - o, q = x - n, B = E / i, _ = q / i, L = Array(i).fill(0), P = Array(i).fill(0);
201
201
  t.forEach(({ x: m, y: G }) => {
202
202
  const ye = Math.floor((m - o) / B), ve = Math.floor((G - n) / _);
203
- L[ye] || (L[ye] = 0), W[ve] || (W[ve] = 0), L[ye] += 1, W[ve] += 1;
203
+ L[ye] || (L[ye] = 0), P[ve] || (P[ve] = 0), L[ye] += 1, P[ve] += 1;
204
204
  });
205
205
  const te = [], f = [];
206
206
  for (let m = 0; m < i; m += 1)
207
207
  te.push(o + (m + 0.5) * B), f.push(n + (m + 0.5) * _);
208
- const V = Math.max(...L), ne = Math.max(...W);
209
- return { x: L, y: W, avgX: te, avgY: f, maxX: V, maxY: ne };
208
+ const V = Math.max(...L), ne = Math.max(...P);
209
+ return { x: L, y: P, avgX: te, avgY: f, maxX: V, maxY: ne };
210
210
  }
211
211
  const I = b(() => e.value.style.layout.marginalBars.tranches), S = b(() => we(re.value, I.value)), Ye = b(() => {
212
212
  const l = u.value.top - e.value.style.layout.marginalBars.offset, i = u.value.right + e.value.style.layout.marginalBars.offset;
@@ -227,7 +227,7 @@ const gt = ["id"], xt = ["xmlns", "viewBox"], mt = { key: 0 }, bt = ["x1", "x2",
227
227
  };
228
228
  });
229
229
  }), T = k(void 0), y = k(null), ie = k(null);
230
- function Me(l, i) {
230
+ function $e(l, i) {
231
231
  T.value = l.id, y.value = l;
232
232
  let t = "";
233
233
  ie.value = {
@@ -272,7 +272,7 @@ const gt = ["id"], xt = ["xmlns", "viewBox"], mt = { key: 0 }, bt = ["x1", "x2",
272
272
  r: e.value.style.layout.plots.deviation.roundingValue
273
273
  })}</b>`, t += "</div>", ue.value = `<div>${t}</div>`), se.value = !0;
274
274
  }
275
- function $e() {
275
+ function Me() {
276
276
  se.value = !1, T.value = void 0, y.value = null;
277
277
  }
278
278
  const g = k([]);
@@ -343,7 +343,7 @@ const gt = ["id"], xt = ["xmlns", "viewBox"], mt = { key: 0 }, bt = ["x1", "x2",
343
343
  class: Ae(`vue-ui-scatter ${H.value ? "vue-data-ui-wrapper-fullscreen" : ""} ${e.value.useCssAnimation ? "" : "vue-ui-dna"}`),
344
344
  ref_key: "scatterChart",
345
345
  ref: U,
346
- id: `vue-ui-scatter_${$.value}`,
346
+ id: `vue-ui-scatter_${M.value}`,
347
347
  style: D(`font-family:${e.value.style.fontFamily};width:100%; text-align:center;${e.value.style.title.text ? "" : "padding-top:36px"};background:${e.value.style.backgroundColor};${e.value.responsive ? "height: 100%" : ""}`)
348
348
  }, [
349
349
  e.value.style.title.text ? (s(), r("div", {
@@ -373,7 +373,7 @@ const gt = ["id"], xt = ["xmlns", "viewBox"], mt = { key: 0 }, bt = ["x1", "x2",
373
373
  color: e.value.style.color,
374
374
  isImaging: d(xe),
375
375
  isPrinting: d(ge),
376
- uid: $.value,
376
+ uid: M.value,
377
377
  hasTooltip: e.value.userOptions.buttons.tooltip && e.value.style.tooltip.show,
378
378
  hasPdf: e.value.userOptions.buttons.pdf,
379
379
  hasImg: e.value.userOptions.buttons.img,
@@ -462,7 +462,7 @@ const gt = ["id"], xt = ["xmlns", "viewBox"], mt = { key: 0 }, bt = ["x1", "x2",
462
462
  }, null, 8, kt)
463
463
  ])) : c("", !0),
464
464
  e.value.style.layout.plots.giftWrap.show ? (s(), r("g", _t, [
465
- (s(!0), r(N, null, P(z.value, (t, o) => (s(), r("g", null, [
465
+ (s(!0), r(N, null, W(z.value, (t, o) => (s(), r("g", null, [
466
466
  t.plots.length > 2 ? (s(), r("polygon", {
467
467
  key: 0,
468
468
  points: d(tt)({ series: t.plots }),
@@ -475,29 +475,29 @@ const gt = ["id"], xt = ["xmlns", "viewBox"], mt = { key: 0 }, bt = ["x1", "x2",
475
475
  }, null, 8, wt)) : c("", !0)
476
476
  ]))), 256))
477
477
  ])) : c("", !0),
478
- (s(!0), r(N, null, P(z.value, (t, o) => (s(), r("g", null, [
479
- !t.shape || t.shape === "circle" ? (s(), r("g", Mt, [
480
- (s(!0), r(N, null, P(t.plots, (a, n) => (s(), r("circle", {
478
+ (s(!0), r(N, null, W(z.value, (t, o) => (s(), r("g", null, [
479
+ !t.shape || t.shape === "circle" ? (s(), r("g", $t, [
480
+ (s(!0), r(N, null, W(t.plots, (a, n) => (s(), r("circle", {
481
481
  cx: a.x,
482
482
  cy: a.y,
483
483
  r: T.value && T.value === a.id ? a.weight * 2 : a.weight,
484
484
  fill: `${t.color}${d(de)[e.value.style.layout.plots.opacity * 100]}`,
485
485
  stroke: e.value.style.layout.plots.stroke,
486
486
  "stroke-width": e.value.style.layout.plots.strokeWidth,
487
- onMouseover: (x) => Me(a, o),
488
- onMouseleave: $e,
487
+ onMouseover: (x) => $e(a, o),
488
+ onMouseleave: Me,
489
489
  style: D(`opacity:${T.value && T.value === a.id ? 1 : e.value.style.layout.plots.significance.useDistanceOpacity ? 1 - Math.abs(a.deviation) / _e.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}`)
490
- }, null, 44, $t))), 256))
490
+ }, null, 44, Mt))), 256))
491
491
  ])) : (s(), r("g", Ct, [
492
- (s(!0), r(N, null, P(t.plots, (a, n) => (s(), J(Ne, {
492
+ (s(!0), r(N, null, W(t.plots, (a, n) => (s(), J(Ne, {
493
493
  plot: { x: a.x, y: a.y },
494
494
  radius: T.value && T.value === a.id ? a.weight * 2 : a.weight,
495
495
  shape: t.shape,
496
496
  color: `${t.color}${d(de)[e.value.style.layout.plots.opacity * 100]}`,
497
497
  stroke: e.value.style.layout.plots.stroke,
498
498
  strokeWidth: e.value.style.layout.plots.strokeWidth,
499
- onMouseover: (x) => Me(a, o),
500
- onMouseleave: $e,
499
+ onMouseover: (x) => $e(a, o),
500
+ onMouseleave: Me,
501
501
  style: D(`opacity:${T.value && T.value === a.id ? 1 : e.value.style.layout.plots.significance.useDistanceOpacity ? 1 - Math.abs(a.deviation) / _e.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}`)
502
502
  }, null, 8, ["plot", "radius", "shape", "color", "stroke", "strokeWidth", "onMouseover", "style"]))), 256))
503
503
  ]))
@@ -505,7 +505,7 @@ const gt = ["id"], xt = ["xmlns", "viewBox"], mt = { key: 0 }, bt = ["x1", "x2",
505
505
  e.value.style.layout.marginalBars.show ? (s(), r("g", zt, [
506
506
  v("defs", null, [
507
507
  v("linearGradient", {
508
- id: `marginal_x_${$.value}`,
508
+ id: `marginal_x_${M.value}`,
509
509
  x1: "0%",
510
510
  y1: "0%",
511
511
  x2: "0%",
@@ -521,7 +521,7 @@ const gt = ["id"], xt = ["xmlns", "viewBox"], mt = { key: 0 }, bt = ["x1", "x2",
521
521
  }, null, 8, At)
522
522
  ], 8, St),
523
523
  v("linearGradient", {
524
- id: `marginal_y_${$.value}`,
524
+ id: `marginal_y_${M.value}`,
525
525
  x1: "0%",
526
526
  x2: "100%",
527
527
  y1: "0%",
@@ -537,36 +537,36 @@ const gt = ["id"], xt = ["xmlns", "viewBox"], mt = { key: 0 }, bt = ["x1", "x2",
537
537
  }, null, 8, Nt)
538
538
  ], 8, Tt)
539
539
  ]),
540
- (s(!0), r(N, null, P(S.value.x, (t, o) => (s(), r("g", null, [
540
+ (s(!0), r(N, null, W(S.value.x, (t, o) => (s(), r("g", null, [
541
541
  t && S.value.avgX[o] ? (s(), r("rect", {
542
542
  key: 0,
543
543
  x: S.value.avgX[o] - u.value.width / I.value / 2,
544
544
  y: u.value.top - e.value.style.layout.marginalBars.offset - t / S.value.maxX * e.value.style.layout.marginalBars.size,
545
545
  width: u.value.width / I.value <= 0 ? 1e-4 : u.value.width / I.value,
546
546
  height: t / S.value.maxX * e.value.style.layout.marginalBars.size <= 0 ? 1e-4 : t / S.value.maxX * e.value.style.layout.marginalBars.size,
547
- fill: e.value.style.layout.marginalBars.useGradient ? `url(#marginal_x_${$.value})` : e.value.style.layout.marginalBars.fill,
547
+ fill: e.value.style.layout.marginalBars.useGradient ? `url(#marginal_x_${M.value})` : e.value.style.layout.marginalBars.fill,
548
548
  style: D(`opacity:${e.value.style.layout.marginalBars.opacity}`),
549
549
  stroke: e.value.style.backgroundColor,
550
550
  "stroke-width": e.value.style.layout.marginalBars.strokeWidth,
551
551
  rx: e.value.style.layout.marginalBars.borderRadius
552
- }, null, 12, Wt)) : c("", !0)
552
+ }, null, 12, Pt)) : c("", !0)
553
553
  ]))), 256)),
554
- (s(!0), r(N, null, P(S.value.y, (t, o) => (s(), r("g", null, [
554
+ (s(!0), r(N, null, W(S.value.y, (t, o) => (s(), r("g", null, [
555
555
  t && S.value.avgY[o] ? (s(), r("rect", {
556
556
  key: 0,
557
557
  x: u.value.right + e.value.style.layout.marginalBars.offset,
558
558
  y: S.value.avgY[o] - u.value.height / I.value / 2,
559
559
  height: u.value.height / I.value <= 0 ? 1e-4 : u.value.height / I.value,
560
560
  width: t / S.value.maxY * e.value.style.layout.marginalBars.size <= 0 ? 1e-4 : t / S.value.maxY * e.value.style.layout.marginalBars.size,
561
- fill: e.value.style.layout.marginalBars.useGradient ? `url(#marginal_y_${$.value})` : e.value.style.layout.marginalBars.fill,
561
+ fill: e.value.style.layout.marginalBars.useGradient ? `url(#marginal_y_${M.value})` : e.value.style.layout.marginalBars.fill,
562
562
  style: D(`opacity:${e.value.style.layout.marginalBars.opacity}`),
563
563
  stroke: e.value.style.backgroundColor,
564
564
  "stroke-width": e.value.style.layout.marginalBars.strokeWidth,
565
565
  rx: e.value.style.layout.marginalBars.borderRadius
566
- }, null, 12, Pt)) : c("", !0)
566
+ }, null, 12, Wt)) : c("", !0)
567
567
  ]))), 256)),
568
568
  e.value.style.layout.marginalBars.showLines ? (s(), r("g", Ft, [
569
- (s(!0), r(N, null, P(Ye.value, (t) => (s(), r(N, null, [
569
+ (s(!0), r(N, null, W(Ye.value, (t) => (s(), r(N, null, [
570
570
  g.value.includes(t.id) ? c("", !0) : (s(), r("path", {
571
571
  key: 0,
572
572
  d: `M ${t.dX}`,
@@ -636,7 +636,7 @@ const gt = ["id"], xt = ["xmlns", "viewBox"], mt = { key: 0 }, bt = ["x1", "x2",
636
636
  fill: e.value.style.layout.plots.selectors.labels.color,
637
637
  "font-weight": e.value.style.layout.plots.selectors.labels.bold ? "bold" : "normal",
638
638
  "text-anchor": y.value.x > p.value.x ? "end" : "start"
639
- }, M(d(Y)(
639
+ }, $(d(Y)(
640
640
  e.value.style.layout.plots.selectors.labels.y.formatter,
641
641
  y.value.v.y,
642
642
  d(F)({
@@ -654,7 +654,7 @@ const gt = ["id"], xt = ["xmlns", "viewBox"], mt = { key: 0 }, bt = ["x1", "x2",
654
654
  fill: e.value.style.layout.plots.selectors.labels.color,
655
655
  "font-weight": e.value.style.layout.plots.selectors.labels.bold ? "bold" : "normal",
656
656
  "text-anchor": "middle"
657
- }, M(d(Y)(
657
+ }, $(d(Y)(
658
658
  e.value.style.layout.plots.selectors.labels.y.formatter,
659
659
  y.value.v.x,
660
660
  d(F)({
@@ -691,7 +691,7 @@ const gt = ["id"], xt = ["xmlns", "viewBox"], mt = { key: 0 }, bt = ["x1", "x2",
691
691
  fill: e.value.style.layout.plots.selectors.labels.color,
692
692
  "font-weight": e.value.style.layout.plots.selectors.labels.bold ? "bold" : "normal",
693
693
  "text-anchor": y.value.x < u.value.left + 100 ? "start" : y.value.x > u.value.right - 100 ? "end" : y.value.x > p.value.x ? "start" : "end"
694
- }, M(y.value.v.name), 9, Ut)) : c("", !0)
694
+ }, $(y.value.v.name), 9, Ut)) : c("", !0)
695
695
  ])) : c("", !0),
696
696
  e.value.style.layout.dataLabels.xAxis.show ? (s(), r("g", Ht, [
697
697
  v("text", {
@@ -700,7 +700,7 @@ const gt = ["id"], xt = ["xmlns", "viewBox"], mt = { key: 0 }, bt = ["x1", "x2",
700
700
  "text-anchor": "end",
701
701
  "font-size": e.value.style.layout.dataLabels.xAxis.fontSize,
702
702
  fill: e.value.style.layout.dataLabels.xAxis.color
703
- }, M(d(Y)(
703
+ }, $(d(Y)(
704
704
  e.value.style.layout.plots.selectors.labels.x.formatter,
705
705
  h.value.xMin,
706
706
  d(F)({
@@ -716,7 +716,7 @@ const gt = ["id"], xt = ["xmlns", "viewBox"], mt = { key: 0 }, bt = ["x1", "x2",
716
716
  "text-anchor": "start",
717
717
  "font-size": e.value.style.layout.dataLabels.xAxis.fontSize,
718
718
  fill: e.value.style.layout.dataLabels.xAxis.color
719
- }, M(d(Y)(
719
+ }, $(d(Y)(
720
720
  e.value.style.layout.plots.selectors.labels.x.formatter,
721
721
  h.value.xMax,
722
722
  d(F)({
@@ -727,13 +727,13 @@ const gt = ["id"], xt = ["xmlns", "viewBox"], mt = { key: 0 }, bt = ["x1", "x2",
727
727
  })
728
728
  )), 9, Kt),
729
729
  v("text", {
730
- id: `vue-ui-scatter-xAxis-label-${$.value}`,
730
+ id: `vue-ui-scatter-xAxis-label-${M.value}`,
731
731
  transform: `translate(${e.value.style.layout.dataLabels.xAxis.fontSize * 2}, ${u.value.top + u.value.height / 2}), rotate(-90)`,
732
732
  "text-anchor": "middle",
733
733
  "font-size": e.value.style.layout.dataLabels.xAxis.fontSize,
734
734
  "font-weight": e.value.style.layout.dataLabels.xAxis.bold ? "bold" : "normal",
735
735
  fill: e.value.style.layout.dataLabels.xAxis.color
736
- }, M(e.value.style.layout.dataLabels.xAxis.name), 9, Qt)
736
+ }, $(e.value.style.layout.dataLabels.xAxis.name), 9, Qt)
737
737
  ])) : c("", !0),
738
738
  e.value.style.layout.dataLabels.yAxis.show ? (s(), r("g", Zt, [
739
739
  v("text", {
@@ -742,7 +742,7 @@ const gt = ["id"], xt = ["xmlns", "viewBox"], mt = { key: 0 }, bt = ["x1", "x2",
742
742
  "text-anchor": "middle",
743
743
  "font-size": e.value.style.layout.dataLabels.yAxis.fontSize,
744
744
  fill: e.value.style.layout.dataLabels.yAxis.color
745
- }, M(d(Y)(
745
+ }, $(d(Y)(
746
746
  e.value.style.layout.plots.selectors.labels.y.formatter,
747
747
  h.value.yMin,
748
748
  d(F)({
@@ -758,7 +758,7 @@ const gt = ["id"], xt = ["xmlns", "viewBox"], mt = { key: 0 }, bt = ["x1", "x2",
758
758
  "text-anchor": "middle",
759
759
  "font-size": e.value.style.layout.dataLabels.yAxis.fontSize,
760
760
  fill: e.value.style.layout.dataLabels.yAxis.color
761
- }, M(d(Y)(
761
+ }, $(d(Y)(
762
762
  e.value.style.layout.plots.selectors.labels.y.formatter,
763
763
  h.value.yMax,
764
764
  d(F)({
@@ -775,10 +775,10 @@ const gt = ["id"], xt = ["xmlns", "viewBox"], mt = { key: 0 }, bt = ["x1", "x2",
775
775
  fill: e.value.style.layout.dataLabels.yAxis.color,
776
776
  x: u.value.left + u.value.width / 2,
777
777
  y: u.value.bottom + 8 + e.value.style.layout.dataLabels.yAxis.fontSize * 2
778
- }, M(e.value.style.layout.dataLabels.yAxis.name), 9, ll)
778
+ }, $(e.value.style.layout.dataLabels.yAxis.name), 9, ll)
779
779
  ])) : c("", !0),
780
780
  v("clipPath", {
781
- id: `clip_path_${$.value}`
781
+ id: `clip_path_${M.value}`
782
782
  }, [
783
783
  v("rect", {
784
784
  x: u.value.left,
@@ -788,7 +788,7 @@ const gt = ["id"], xt = ["xmlns", "viewBox"], mt = { key: 0 }, bt = ["x1", "x2",
788
788
  }, null, 8, ol)
789
789
  ], 8, al),
790
790
  e.value.style.layout.correlation.show ? (s(), r("g", sl, [
791
- (s(!0), r(N, null, P(z.value, (t, o) => (s(), r("line", {
791
+ (s(!0), r(N, null, W(z.value, (t, o) => (s(), r("line", {
792
792
  x1: t.correlation.x1,
793
793
  x2: t.correlation.x2,
794
794
  y1: t.correlation.y1,
@@ -796,9 +796,9 @@ const gt = ["id"], xt = ["xmlns", "viewBox"], mt = { key: 0 }, bt = ["x1", "x2",
796
796
  "stroke-dasharray": e.value.style.layout.correlation.strokeDasharray,
797
797
  stroke: t.color,
798
798
  "stroke-width": e.value.style.layout.correlation.strokeWidth,
799
- "clip-path": `url(#clip_path_${$.value})`
799
+ "clip-path": `url(#clip_path_${M.value})`
800
800
  }, null, 8, ul))), 256)),
801
- (s(!0), r(N, null, P(z.value, (t, o) => (s(), r("g", null, [
801
+ (s(!0), r(N, null, W(z.value, (t, o) => (s(), r("g", null, [
802
802
  e.value.style.layout.correlation.label.show ? (s(), r("text", {
803
803
  key: 0,
804
804
  x: t.label.x,
@@ -806,7 +806,7 @@ const gt = ["id"], xt = ["xmlns", "viewBox"], mt = { key: 0 }, bt = ["x1", "x2",
806
806
  fill: e.value.style.layout.correlation.label.useSerieColor ? t.color : e.value.style.layout.correlation.label.color,
807
807
  "font-size": e.value.style.layout.correlation.label.fontSize,
808
808
  "font-weight": e.value.style.layout.correlation.label.bold ? "bold" : "normal"
809
- }, M(Number(t.correlation.coefficient.toFixed(e.value.style.layout.correlation.label.roundingValue)).toLocaleString()), 9, rl)) : c("", !0)
809
+ }, $(Number(t.correlation.coefficient.toFixed(e.value.style.layout.correlation.label.roundingValue)).toLocaleString()), 9, rl)) : c("", !0)
810
810
  ]))), 256))
811
811
  ])) : c("", !0),
812
812
  A(l.$slots, "svg", { svg: C.value }, void 0, !0)
@@ -846,7 +846,7 @@ const gt = ["id"], xt = ["xmlns", "viewBox"], mt = { key: 0 }, bt = ["x1", "x2",
846
846
  v("div", {
847
847
  onClick: (o) => t.segregate(),
848
848
  style: D(`opacity:${g.value.includes(t.id) ? 0.5 : 1}`)
849
- }, M(t.name), 13, nl)
849
+ }, $(t.name), 13, nl)
850
850
  ]),
851
851
  _: 1
852
852
  }, 8, ["legendSet", "config"])) : A(l.$slots, "legend", {
@@ -915,11 +915,11 @@ const gt = ["id"], xt = ["xmlns", "viewBox"], mt = { key: 0 }, bt = ["x1", "x2",
915
915
  onClose: i[1] || (i[1] = (t) => X.value.showTable = !1)
916
916
  }, {
917
917
  th: w(({ th: t }) => [
918
- Re(M(t), 1)
918
+ Re($(t), 1)
919
919
  ]),
920
920
  td: w(({ td: t }) => [
921
921
  t.shape ? (s(), r("div", cl, [
922
- v("span", null, M(t.content), 1)
922
+ v("span", null, $(t.content), 1)
923
923
  ])) : (s(), r("div", {
924
924
  key: 1,
925
925
  innerHTML: t
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),r=require("./index-vvhNQFio.cjs"),ce=require("./useResponsive-B3TrDDIG.cjs"),we=require("./Title-JorKJ3kW.cjs"),ye=require("./usePrinter-D5ewpTd3.cjs"),Be=require("./Tooltip-DuhcODsb.cjs"),_e=require("./Legend-Bkl0mNRU.cjs"),ve=require("./Shape-BqcaWTo1.cjs"),Ce=require("./DataTable-BRux41DB.cjs"),Me=require("./vue-ui-skeleton-H7E3SBMd.cjs"),Se=require("./vue-ui-accordion-CSnFq9e7.cjs"),de=require("./useNestedProp-BUoCZrmY.cjs"),$e=require("./_plugin-vue_export-helper-BHFhmbuH.cjs"),Ne=["id"],Ee=["xmlns","viewBox"],Le={key:0},ze=["x1","x2","y1","y2","stroke","stroke-width"],Ve=["x1","x2","y1","y2","stroke","stroke-width"],Ae={key:1},Te=["points","fill","stroke-width","stroke-dasharray","stroke"],De={key:0},Pe=["cx","cy","r","fill","stroke","stroke-width","onMouseover"],Fe={key:1},We={key:2},Oe=["id"],qe=["stop-color"],Ie=["stop-color"],Xe=["id"],Ye=["stop-color"],je=["stop-color"],Re=["x","y","width","height","fill","stroke","stroke-width","rx"],Ge=["x","y","height","width","fill","stroke","stroke-width","rx"],Ue={key:0},He=["d","stroke","stroke-width"],Je=["d","stroke","stroke-width"],Ke=["d","stroke","stroke-width"],Qe=["d","stroke","stroke-width"],Ze={key:3,style:{"pointer-events":"none !important"}},et=["x1","x2","y1","y2","stroke","stroke-width","stroke-dasharray"],tt=["x1","x2","y1","y2","stroke","stroke-width","stroke-dasharray"],lt=["x","y","font-size","fill","font-weight","text-anchor"],at=["x","y","font-size","fill","font-weight"],ot=["cx","cy","r","fill","stroke","stroke-width"],st=["cx","cy","r","fill","stroke","stroke-width"],rt=["x","y","font-size","fill","font-weight","text-anchor"],nt={key:4},ut=["x","y","font-size","fill"],it=["x","y","font-size","fill"],ct=["id","transform","font-size","font-weight","fill"],yt={key:5},vt=["x","y","font-size","fill"],dt=["x","y","font-size","fill"],pt=["font-size","font-weight","fill","x","y"],ht=["id"],ft=["x","y","width","height"],mt={key:6},gt=["x1","x2","y1","y2","stroke-dasharray","stroke","stroke-width","clip-path"],kt=["x","y","fill","font-size","font-weight"],xt={key:3,class:"vue-data-ui-watermark"},bt=["onClick"],wt={key:0,style:{width:"100%",display:"flex","align-items":"center","justify-content":"center"}},Bt={viewBox:"0 0 20 20",height:"20",width:"20",style:{overflow:"hidden",background:"transparent"}},_t={key:0},Ct=["innerHTML"],Mt={__name:"vue-ui-scatter",props:{config:{type:Object,default(){return{}}},dataset:{type:Array,default(){return[]}}},setup(pe,{expose:he}){const M=pe,{vue_ui_scatter:fe}=r.useConfig(),D=e.computed(()=>!!M.dataset&&M.dataset.length),g=e.ref(r.createUid()),me=e.ref(null),q=e.ref(!1),I=e.ref(""),U=e.ref(0),A=e.ref(null),H=e.ref(null),J=e.ref(null),t=e.computed(()=>{const a=de.useNestedProp({userConfig:M.config,defaultConfig:fe});return a.theme?{...de.useNestedProp({userConfig:r.themes.vue_ui_scatter[a.theme]||M.config,defaultConfig:a}),customPalette:r.themePalettes[a.theme]||r.palette}:a}),P=e.ref(null);e.onMounted(()=>{if(r.objectIsEmpty(M.dataset)&&r.error({componentName:"VueUiScatter",type:"dataset"}),t.value.responsive){const a=ce.throttle(()=>{const{width:u,height:l}=ce.useResponsive({chart:A.value,title:t.value.style.title.text?H.value:null,legend:t.value.style.legend.show?J.value:null});k.value.width=u,k.value.height=l});P.value=new ResizeObserver(a),P.value.observe(A.value.parentNode)}}),e.onBeforeUnmount(()=>{P.value&&P.value.disconnect()});const{isPrinting:K,isImaging:Q,generatePdf:Z,generateImage:ee}=ye.usePrinter({elementId:`vue-ui-scatter_${g.value}`,fileName:t.value.style.title.text||"vue-ui-scatter"}),te=e.computed(()=>r.convertCustomPalette(t.value.customPalette)),S=e.ref({showTable:t.value.table.show,showTooltip:t.value.style.tooltip.show}),k=e.ref({height:t.value.style.layout.height,width:t.value.style.layout.width}),F=e.computed(()=>t.value.style.layout.marginalBars.show?t.value.style.layout.marginalBars.size+t.value.style.layout.marginalBars.offset:0),n=e.computed(()=>({top:t.value.style.layout.padding.top+F.value,right:k.value.width-t.value.style.layout.padding.right-F.value,bottom:k.value.height-t.value.style.layout.padding.bottom,left:t.value.style.layout.padding.left,height:k.value.height-t.value.style.layout.padding.top-t.value.style.layout.padding.bottom-F.value,width:k.value.width-t.value.style.layout.padding.left-t.value.style.layout.padding.right-F.value})),y=e.computed(()=>{M.dataset.forEach((o,i)=>{r.getMissingDatasetAttributes({datasetObject:o,requiredAttributes:["values"]}).forEach(h=>{r.error({componentName:"VueUiScatter",type:"datasetSerieAttribute",property:h,index:i})}),o.values&&o.values.forEach((h,E)=>{r.getMissingDatasetAttributes({datasetObject:h,requiredAttributes:["x","y"]}).forEach(V=>{r.error({componentName:"VueUiScatter",type:"datasetSerieAttribute",property:`values.${V}`,index:`${i} - ${E}`})})})});const a=Math.min(...N.value.filter(o=>!p.value.includes(o.id)).flatMap(o=>o.values.map(i=>i.x))),u=Math.max(...N.value.filter(o=>!p.value.includes(o.id)).flatMap(o=>o.values.map(i=>i.x))),l=Math.min(...N.value.filter(o=>!p.value.includes(o.id)).flatMap(o=>o.values.map(i=>i.y))),s=Math.max(...N.value.filter(o=>!p.value.includes(o.id)).flatMap(o=>o.values.map(i=>i.y)));return{xMin:a>=0?0:a,xMax:u,yMin:l>=0?0:l,yMax:s}}),v=e.computed(()=>({x:n.value.left+Math.abs(y.value.xMin)/(y.value.xMax+Math.abs(y.value.xMin))*n.value.width,y:n.value.bottom-Math.abs(y.value.yMin)/(y.value.yMax+Math.abs(y.value.yMin))*n.value.height})),N=e.computed(()=>M.dataset.map((a,u)=>{const l=`cluster_${g.value}_${u}`;return{...a,id:l,color:a.color?a.color:te.value[u]||r.palette[u]||r.palette[u%r.palette.length],opacity:p.value.includes(l)?.5:1,shape:a.shape??"circle",segregate:()=>re(l),isSegregated:p.value.includes(l)}})),ge=e.computed(()=>({cy:"scatter-div-legend",backgroundColor:t.value.style.legend.backgroundColor,color:t.value.style.legend.color,fontSize:t.value.style.legend.fontSize,paddingBottom:12,fontWeight:t.value.style.legend.bold?"bold":""})),X=e.computed(()=>N.value.map((a,u)=>({...a,plots:a.values.map(l=>({x:n.value.left+(l.x+Math.abs(y.value.xMin))/(y.value.xMax+Math.abs(y.value.xMin))*n.value.width,y:n.value.bottom-(l.y+Math.abs(y.value.yMin))/(y.value.yMax+Math.abs(y.value.yMin))*n.value.height,v:{...l,name:l.name||""},clusterName:a.name,color:a.color?a.color:te.value[u]||r.palette[u]||r.palette[u%r.palette.length],id:`plot_${g.value}_${Math.random()}`,weight:l.weight??t.value.style.layout.plots.radius}))})).filter(a=>!p.value.includes(a.id))),x=e.computed(()=>X.value.map(a=>{const u=a.plots.reduce((d,L)=>d+L.x,0)/a.plots.length,l=a.plots.reduce((d,L)=>d+L.y,0)/a.plots.length;let s=0,o=0,i=0;for(const d of a.plots)s+=(d.x-u)*(d.y-l),o+=(d.x-u)**2,i+=(d.y-l)**2;const h=s/Math.sqrt(o*i),E=h*(Math.sqrt(i)/Math.sqrt(o)),V=l-E*u,_={x1:n.value.left,x2:n.value.right,y1:E*n.value.left+V,y2:E*n.value.right+V,coefficient:h},m=(_.y2-_.y1)/(_.x2-_.x1),w=_.y1-m*_.x1,C=Math.min(k.value.width-t.value.style.layout.padding.right,Math.max(t.value.style.layout.padding.left,(n.value.top-w)/m)),O={x:C,y:m*C+w<=t.value.style.layout.padding.top?n.value.top:m*C+w};return{...a,correlation:_,label:O,plots:a.plots.map(d=>{const L=(d.x+m*d.y-m*w)/(1+Math.pow(m,2)),j=(m*d.x+Math.pow(m,2)*d.y+w)/(1+Math.pow(m,2)),f=Math.sqrt(Math.pow(d.x-L,2)+Math.pow(d.y-j,2));return{...d,deviation:f,shape:a.shape,color:a.color}})}})),le=e.computed(()=>Math.max(...x.value.flatMap(a=>a.plots.map(u=>Math.abs(u.deviation)))));function ke(){return x.value}function ae(a,u){const l=Array.isArray(a)?a.flatMap(f=>f.plots.map(z=>({x:z.x,y:z.y}))):a.plots.map(f=>({x:f.x,y:f.y}));let s=1/0,o=-1/0,i=1/0,h=-1/0;l.forEach(({x:f,y:z})=>{s=Math.min(s,f),o=Math.max(o,f),i=Math.min(i,z),h=Math.max(h,z)});const E=o-s,V=h-i,_=E/u,m=V/u,w=Array(u).fill(0),C=Array(u).fill(0);l.forEach(({x:f,y:z})=>{const R=Math.floor((f-s)/_),G=Math.floor((z-i)/m);w[R]||(w[R]=0),C[G]||(C[G]=0),w[R]+=1,C[G]+=1});const O=[],d=[];for(let f=0;f<u;f+=1)O.push(s+(f+.5)*_),d.push(i+(f+.5)*m);const L=Math.max(...w),j=Math.max(...C);return{x:w,y:C,avgX:O,avgY:d,maxX:L,maxY:j}}const $=e.computed(()=>t.value.style.layout.marginalBars.tranches),b=e.computed(()=>ae(X.value,$.value)),xe=e.computed(()=>{const a=n.value.top-t.value.style.layout.marginalBars.offset,u=n.value.right+t.value.style.layout.marginalBars.offset;return X.value.map(l=>{const s=ae(l,$.value);return{coords:s,dX:r.createSmoothPath(s.avgX.map((o,i)=>({x:o,y:a-s.x[i]/s.maxX*t.value.style.layout.marginalBars.size}))),dY:r.createSmoothPath(s.avgY.map((o,i)=>({y:o,x:u+t.value.style.layout.marginalBars.size*s.y[i]/s.maxY}))),color:l.color,id:l.id}})}),B=e.ref(void 0),c=e.ref(null),Y=e.ref(null);function oe(a,u){B.value=a.id,c.value=a;let l="";Y.value={datapoint:a,seriesIndex:u,series:x.value,config:t.value};const s=t.value.style.tooltip.customFormat;r.isFunction(s)&&r.functionReturnsString(()=>s({datapoint:a,seriesIndex:u,series:x.value,config:t.value}))?I.value=s({datapoint:a,seriesIndex:u,series:x.value,config:t.value}):(a.clusterName&&(l+=`<div style="display:flex;gap:3px;align-items:center">${a.clusterName}</div>`),a.v.name&&(l+=`<div>${a.v.name}</div>`),l+=`<div style="text-align:left;margin-top:6px;padding-top:6px;border-top:1px solid ${t.value.style.tooltip.borderColor}">`,l+=`<div>${t.value.style.layout.dataLabels.xAxis.name}: <b>${isNaN(a.v.x)?"-":r.applyDataLabel(t.value.style.layout.plots.selectors.labels.x.formatter,a.v.x,r.dataLabel({p:t.value.style.tooltip.prefix,v:a.v.x,s:t.value.style.tooltip.suffix,r:t.value.style.tooltip.roundingValue}),{datapoint:a,seriesIndex:u})}</b></div>`,l+=`<div>${t.value.style.layout.dataLabels.yAxis.name}: <b>${isNaN(a.v.y)?"-":r.applyDataLabel(t.value.style.layout.plots.selectors.labels.y.formatter,a.v.y,r.dataLabel({p:t.value.style.tooltip.prefix,v:a.v.y,s:t.value.style.tooltip.suffix,r:t.value.style.tooltip.roundingValue}),{datapoint:a,seriesIndex:u})}</b></div>`,l+=`${t.value.style.layout.plots.deviation.translation}: <b>${r.dataLabel({v:a.deviation,r:t.value.style.layout.plots.deviation.roundingValue})}</b>`,l+="</div>",I.value=`<div>${l}</div>`),q.value=!0}function se(){q.value=!1,B.value=void 0,c.value=null}const p=e.ref([]);function re(a){p.value.includes(a)?p.value=p.value.filter(u=>u!==a):p.value.length<M.dataset.length-1&&p.value.push(a)}function ne(){e.nextTick(()=>{const a=["",t.value.table.translations.correlationCoefficient,t.value.table.translations.nbrPlots,`${t.value.style.layout.dataLabels.xAxis.name} ${t.value.table.translations.average}`,`${t.value.style.layout.dataLabels.yAxis.name} ${t.value.table.translations.average}`],u=x.value.map(o=>[o.name,o.correlation.coefficient,o.plots.length,o.plots.map(i=>i.v.x).reduce((i,h)=>i+h,0)/o.plots.length,o.plots.map(i=>i.v.y).reduce((i,h)=>i+h,0)/o.plots.length]),l=[[t.value.style.title.text],[t.value.style.title.subtitle.text],[[""],[""],[""]]].concat([a]).concat(u),s=r.createCsvContent(l);r.downloadCsv({csvContent:s,title:t.value.style.title.text||"vue-ui-heatmap"})})}const W=e.computed(()=>{const a=[t.value.table.translations.series,t.value.table.translations.correlationCoefficient,t.value.table.translations.nbrPlots,`${t.value.style.layout.dataLabels.xAxis.name} ${t.value.table.translations.average}`,`${t.value.style.layout.dataLabels.yAxis.name} ${t.value.table.translations.average}`],u=x.value.map(s=>[{shape:s.shape,content:s.name,color:s.color},Number((s.correlation.coefficient??0).toFixed(t.value.table.td.roundingValue)).toLocaleString(),s.plots.length.toLocaleString(),Number((s.plots.map(o=>o.v.x??0).reduce((o,i)=>o+i,0)/s.plots.length).toFixed(t.value.table.td.roundingAverage)).toLocaleString(),Number((s.plots.map(o=>o.v.y??0).reduce((o,i)=>o+i,0)/s.plots.length).toFixed(t.value.table.td.roundingAverage)).toLocaleString()]),l={th:{backgroundColor:t.value.table.th.backgroundColor,color:t.value.table.th.color,outline:t.value.table.th.outline},td:{backgroundColor:t.value.table.td.backgroundColor,color:t.value.table.td.color,outline:t.value.table.td.outline},breakpoint:t.value.table.responsiveBreakpoint};return{head:a,body:u,config:l,colNames:a}}),T=e.ref(!1);function be(a){T.value=a,U.value+=1}function ue(){S.value.showTable=!S.value.showTable}function ie(){S.value.showTooltip=!S.value.showTooltip}return he({getData:ke,generatePdf:Z,generateCsv:ne,generateImage:ee,toggleTable:ue,toggleTooltip:ie}),(a,u)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(`vue-ui-scatter ${T.value?"vue-data-ui-wrapper-fullscreen":""} ${t.value.useCssAnimation?"":"vue-ui-dna"}`),ref_key:"scatterChart",ref:A,id:`vue-ui-scatter_${g.value}`,style:e.normalizeStyle(`font-family:${t.value.style.fontFamily};width:100%; text-align:center;${t.value.style.title.text?"":"padding-top:36px"};background:${t.value.style.backgroundColor};${t.value.responsive?"height: 100%":""}`)},[t.value.style.title.text?(e.openBlock(),e.createElementBlock("div",{key:0,ref_key:"chartTitle",ref:H,style:e.normalizeStyle(`width:100%;background:${t.value.style.backgroundColor}`)},[e.createVNode(we._sfc_main,{config:{title:{cy:"scatter-div-title",...t.value.style.title},subtitle:{cy:"scatter-div-subtitle",...t.value.style.title.subtitle}}},null,8,["config"])],4)):e.createCommentVNode("",!0),t.value.userOptions.show&&D.value?(e.openBlock(),e.createBlock(ye.UserOptions,{ref_key:"details",ref:me,key:`user_options_${U.value}`,backgroundColor:t.value.style.backgroundColor,color:t.value.style.color,isImaging:e.unref(Q),isPrinting:e.unref(K),uid:g.value,hasTooltip:t.value.userOptions.buttons.tooltip&&t.value.style.tooltip.show,hasPdf:t.value.userOptions.buttons.pdf,hasImg:t.value.userOptions.buttons.img,hasXls:t.value.userOptions.buttons.csv,hasTable:t.value.userOptions.buttons.table,hasFullscreen:t.value.userOptions.buttons.fullscreen,isTooltip:S.value.showTooltip,isFullscreen:T.value,titles:{...t.value.userOptions.buttonTitles},chartElement:A.value,onToggleFullscreen:be,onGeneratePdf:e.unref(Z),onGenerateCsv:ne,onGenerateImage:e.unref(ee),onToggleTable:ue,onToggleTooltip:ie},e.createSlots({_:2},[a.$slots.optionTooltip?{name:"optionTooltip",fn:e.withCtx(()=>[e.renderSlot(a.$slots,"optionTooltip",{},void 0,!0)]),key:"0"}:void 0,a.$slots.optionPdf?{name:"optionPdf",fn:e.withCtx(()=>[e.renderSlot(a.$slots,"optionPdf",{},void 0,!0)]),key:"1"}:void 0,a.$slots.optionCsv?{name:"optionCsv",fn:e.withCtx(()=>[e.renderSlot(a.$slots,"optionCsv",{},void 0,!0)]),key:"2"}:void 0,a.$slots.optionImg?{name:"optionImg",fn:e.withCtx(()=>[e.renderSlot(a.$slots,"optionImg",{},void 0,!0)]),key:"3"}:void 0,a.$slots.optionTable?{name:"optionTable",fn:e.withCtx(()=>[e.renderSlot(a.$slots,"optionTable",{},void 0,!0)]),key:"4"}:void 0,a.$slots.optionFullscreen?{name:"optionFullscreen",fn:e.withCtx(({toggleFullscreen:l,isFullscreen:s})=>[e.renderSlot(a.$slots,"optionFullscreen",e.normalizeProps(e.guardReactiveProps({toggleFullscreen:l,isFullscreen:s})),void 0,!0)]),key:"5"}:void 0]),1032,["backgroundColor","color","isImaging","isPrinting","uid","hasTooltip","hasPdf","hasImg","hasXls","hasTable","hasFullscreen","isTooltip","isFullscreen","titles","chartElement","onGeneratePdf","onGenerateImage"])):e.createCommentVNode("",!0),D.value?(e.openBlock(),e.createElementBlock("svg",{key:2,xmlns:e.unref(r.XMLNS),class:e.normalizeClass({"vue-data-ui-fullscreen--on":T.value,"vue-data-ui-fulscreen--off":!T.value}),viewBox:`0 0 ${k.value.width<=0?10:k.value.width} ${k.value.height<=0?10:k.value.height}`,style:e.normalizeStyle(`max-width:100%;overflow:visible;background:${t.value.style.backgroundColor};color:${t.value.style.color}`)},[t.value.style.layout.axis.show?(e.openBlock(),e.createElementBlock("g",Le,[e.createElementVNode("line",{x1:v.value.x,x2:v.value.x,y1:n.value.top,y2:n.value.bottom,stroke:t.value.style.layout.axis.stroke,"stroke-width":t.value.style.layout.axis.strokeWidth,"stroke-linecap":"round"},null,8,ze),e.createElementVNode("line",{x1:n.value.left,x2:n.value.right,y1:v.value.y,y2:v.value.y,stroke:t.value.style.layout.axis.stroke,"stroke-width":t.value.style.layout.axis.strokeWidth,"stroke-linecap":"round"},null,8,Ve)])):e.createCommentVNode("",!0),t.value.style.layout.plots.giftWrap.show?(e.openBlock(),e.createElementBlock("g",Ae,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(x.value,(l,s)=>(e.openBlock(),e.createElementBlock("g",null,[l.plots.length>2?(e.openBlock(),e.createElementBlock("polygon",{key:0,points:e.unref(r.giftWrap)({series:l.plots}),fill:`${l.color}${e.unref(r.opacity)[t.value.style.layout.plots.giftWrap.fillOpacity*100]}`,"stroke-width":t.value.style.layout.plots.giftWrap.strokeWidth,"stroke-dasharray":t.value.style.layout.plots.giftWrap.strokeDasharray,stroke:l.color,"stroke-linejoin":"round","stroke-linecap":"round"},null,8,Te)):e.createCommentVNode("",!0)]))),256))])):e.createCommentVNode("",!0),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(x.value,(l,s)=>(e.openBlock(),e.createElementBlock("g",null,[!l.shape||l.shape==="circle"?(e.openBlock(),e.createElementBlock("g",De,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(l.plots,(o,i)=>(e.openBlock(),e.createElementBlock("circle",{cx:o.x,cy:o.y,r:B.value&&B.value===o.id?o.weight*2:o.weight,fill:`${l.color}${e.unref(r.opacity)[t.value.style.layout.plots.opacity*100]}`,stroke:t.value.style.layout.plots.stroke,"stroke-width":t.value.style.layout.plots.strokeWidth,onMouseover:h=>oe(o,s),onMouseleave:se,style:e.normalizeStyle(`opacity:${B.value&&B.value===o.id?1:t.value.style.layout.plots.significance.useDistanceOpacity?1-Math.abs(o.deviation)/le.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,Pe))),256))])):(e.openBlock(),e.createElementBlock("g",Fe,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(l.plots,(o,i)=>(e.openBlock(),e.createBlock(ve._sfc_main,{plot:{x:o.x,y:o.y},radius:B.value&&B.value===o.id?o.weight*2:o.weight,shape:l.shape,color:`${l.color}${e.unref(r.opacity)[t.value.style.layout.plots.opacity*100]}`,stroke:t.value.style.layout.plots.stroke,strokeWidth:t.value.style.layout.plots.strokeWidth,onMouseover:h=>oe(o,s),onMouseleave:se,style:e.normalizeStyle(`opacity:${B.value&&B.value===o.id?1:t.value.style.layout.plots.significance.useDistanceOpacity?1-Math.abs(o.deviation)/le.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",We,[e.createElementVNode("defs",null,[e.createElementVNode("linearGradient",{id:`marginal_x_${g.value}`,x1:"0%",y1:"0%",x2:"0%",y2:"100%"},[e.createElementVNode("stop",{offset:"0%","stop-color":t.value.style.layout.marginalBars.fill},null,8,qe),e.createElementVNode("stop",{offset:"100%","stop-color":t.value.style.backgroundColor},null,8,Ie)],8,Oe),e.createElementVNode("linearGradient",{id:`marginal_y_${g.value}`,x1:"0%",x2:"100%",y1:"0%",y2:"0%"},[e.createElementVNode("stop",{offset:"0%","stop-color":t.value.style.backgroundColor},null,8,Ye),e.createElementVNode("stop",{offset:"100%","stop-color":t.value.style.layout.marginalBars.fill},null,8,je)],8,Xe)]),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(b.value.x,(l,s)=>(e.openBlock(),e.createElementBlock("g",null,[l&&b.value.avgX[s]?(e.openBlock(),e.createElementBlock("rect",{key:0,x:b.value.avgX[s]-n.value.width/$.value/2,y:n.value.top-t.value.style.layout.marginalBars.offset-l/b.value.maxX*t.value.style.layout.marginalBars.size,width:n.value.width/$.value<=0?1e-4:n.value.width/$.value,height:l/b.value.maxX*t.value.style.layout.marginalBars.size<=0?1e-4:l/b.value.maxX*t.value.style.layout.marginalBars.size,fill:t.value.style.layout.marginalBars.useGradient?`url(#marginal_x_${g.value})`:t.value.style.layout.marginalBars.fill,style:e.normalizeStyle(`opacity:${t.value.style.layout.marginalBars.opacity}`),stroke:t.value.style.backgroundColor,"stroke-width":t.value.style.layout.marginalBars.strokeWidth,rx:t.value.style.layout.marginalBars.borderRadius},null,12,Re)):e.createCommentVNode("",!0)]))),256)),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(b.value.y,(l,s)=>(e.openBlock(),e.createElementBlock("g",null,[l&&b.value.avgY[s]?(e.openBlock(),e.createElementBlock("rect",{key:0,x:n.value.right+t.value.style.layout.marginalBars.offset,y:b.value.avgY[s]-n.value.height/$.value/2,height:n.value.height/$.value<=0?1e-4:n.value.height/$.value,width:l/b.value.maxY*t.value.style.layout.marginalBars.size<=0?1e-4:l/b.value.maxY*t.value.style.layout.marginalBars.size,fill:t.value.style.layout.marginalBars.useGradient?`url(#marginal_y_${g.value})`:t.value.style.layout.marginalBars.fill,style:e.normalizeStyle(`opacity:${t.value.style.layout.marginalBars.opacity}`),stroke:t.value.style.backgroundColor,"stroke-width":t.value.style.layout.marginalBars.strokeWidth,rx:t.value.style.layout.marginalBars.borderRadius},null,12,Ge)):e.createCommentVNode("",!0)]))),256)),t.value.style.layout.marginalBars.showLines?(e.openBlock(),e.createElementBlock("g",Ue,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(xe.value,l=>(e.openBlock(),e.createElementBlock(e.Fragment,null,[p.value.includes(l.id)?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("path",{key:0,d:`M ${l.dX}`,stroke:t.value.style.backgroundColor,"stroke-width":t.value.style.layout.marginalBars.linesStrokeWidth+1,"stroke-linecap":"round","stroke-linejoin":"round",fill:"none"},null,8,He)),p.value.includes(l.id)?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("path",{key:1,d:`M ${l.dX}`,stroke:l.color,"stroke-width":t.value.style.layout.marginalBars.linesStrokeWidth,"stroke-linecap":"round","stroke-linejoin":"round",fill:"none"},null,8,Je)),p.value.includes(l.id)?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("path",{key:2,d:`M ${l.dY}`,stroke:t.value.style.backgroundColor,"stroke-width":t.value.style.layout.marginalBars.linesStrokeWidth+1,"stroke-linecap":"round","stroke-linejoin":"round",fill:"none"},null,8,Ke)),p.value.includes(l.id)?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("path",{key:3,d:`M ${l.dY}`,stroke:l.color,"stroke-width":t.value.style.layout.marginalBars.linesStrokeWidth,"stroke-linecap":"round","stroke-linejoin":"round",fill:"none"},null,8,Qe))],64))),256))])):e.createCommentVNode("",!0)])):e.createCommentVNode("",!0),c.value&&t.value.style.layout.plots.selectors.show?(e.openBlock(),e.createElementBlock("g",Ze,[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,et),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,tt),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(r.applyDataLabel)(t.value.style.layout.plots.selectors.labels.y.formatter,c.value.v.y,e.unref(r.dataLabel)({p:t.value.style.layout.plots.selectors.labels.prefix,v: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,lt),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(r.applyDataLabel)(t.value.style.layout.plots.selectors.labels.y.formatter,c.value.v.x,e.unref(r.dataLabel)({p:t.value.style.layout.plots.selectors.labels.prefix,v: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,at),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,ot),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,st),t.value.style.layout.plots.selectors.labels.showName?(e.openBlock(),e.createElementBlock("text",{key:0,x:c.value.x,y:c.value.y+(c.value.y<v.value.y?-t.value.style.layout.plots.selectors.labels.fontSize/2:t.value.style.layout.plots.selectors.labels.fontSize),"font-size":t.value.style.layout.plots.selectors.labels.fontSize,fill:t.value.style.layout.plots.selectors.labels.color,"font-weight":t.value.style.layout.plots.selectors.labels.bold?"bold":"normal","text-anchor":c.value.x<n.value.left+100?"start":c.value.x>n.value.right-100?"end":c.value.x>v.value.x?"start":"end"},e.toDisplayString(c.value.v.name),9,rt)):e.createCommentVNode("",!0)])):e.createCommentVNode("",!0),t.value.style.layout.dataLabels.xAxis.show?(e.openBlock(),e.createElementBlock("g",nt,[e.createElementVNode("text",{x:n.value.left-5,y:v.value.y+t.value.style.layout.dataLabels.xAxis.fontSize/3,"text-anchor":"end","font-size":t.value.style.layout.dataLabels.xAxis.fontSize,fill:t.value.style.layout.dataLabels.xAxis.color},e.toDisplayString(e.unref(r.applyDataLabel)(t.value.style.layout.plots.selectors.labels.x.formatter,y.value.xMin,e.unref(r.dataLabel)({p:t.value.style.layout.plots.selectors.labels.prefix,v:y.value.xMin,s:t.value.style.layout.plots.selectors.labels.suffix,r:t.value.style.layout.dataLabels.xAxis.rounding}))),9,ut),e.createElementVNode("text",{x:n.value.right+3,y:v.value.y+t.value.style.layout.dataLabels.xAxis.fontSize/3,"text-anchor":"start","font-size":t.value.style.layout.dataLabels.xAxis.fontSize,fill:t.value.style.layout.dataLabels.xAxis.color},e.toDisplayString(e.unref(r.applyDataLabel)(t.value.style.layout.plots.selectors.labels.x.formatter,y.value.xMax,e.unref(r.dataLabel)({p:t.value.style.layout.plots.selectors.labels.prefix,v:y.value.xMax,s:t.value.style.layout.plots.selectors.labels.suffix,r:t.value.style.layout.dataLabels.xAxis.rounding}))),9,it),e.createElementVNode("text",{id:`vue-ui-scatter-xAxis-label-${g.value}`,transform:`translate(${t.value.style.layout.dataLabels.xAxis.fontSize*2}, ${n.value.top+n.value.height/2}), rotate(-90)`,"text-anchor":"middle","font-size":t.value.style.layout.dataLabels.xAxis.fontSize,"font-weight":t.value.style.layout.dataLabels.xAxis.bold?"bold":"normal",fill:t.value.style.layout.dataLabels.xAxis.color},e.toDisplayString(t.value.style.layout.dataLabels.xAxis.name),9,ct)])):e.createCommentVNode("",!0),t.value.style.layout.dataLabels.yAxis.show?(e.openBlock(),e.createElementBlock("g",yt,[e.createElementVNode("text",{x:v.value.x,y:n.value.bottom+t.value.style.layout.dataLabels.yAxis.fontSize+3,"text-anchor":"middle","font-size":t.value.style.layout.dataLabels.yAxis.fontSize,fill:t.value.style.layout.dataLabels.yAxis.color},e.toDisplayString(e.unref(r.applyDataLabel)(t.value.style.layout.plots.selectors.labels.y.formatter,y.value.yMin,e.unref(r.dataLabel)({p:t.value.style.layout.plots.selectors.labels.prefix,v:y.value.yMin,s:t.value.style.layout.plots.selectors.labels.suffix,r:t.value.style.layout.dataLabels.yAxis.rounding}))),9,vt),e.createElementVNode("text",{x:v.value.x,y:n.value.top-t.value.style.layout.dataLabels.yAxis.fontSize/2,"text-anchor":"middle","font-size":t.value.style.layout.dataLabels.yAxis.fontSize,fill:t.value.style.layout.dataLabels.yAxis.color},e.toDisplayString(e.unref(r.applyDataLabel)(t.value.style.layout.plots.selectors.labels.y.formatter,y.value.yMax,e.unref(r.dataLabel)({p:t.value.style.layout.plots.selectors.labels.prefix,v:y.value.yMax,s:t.value.style.layout.plots.selectors.labels.suffix,r:t.value.style.layout.dataLabels.yAxis.rounding}))),9,dt),e.createElementVNode("text",{"text-anchor":"middle","font-size":t.value.style.layout.dataLabels.yAxis.fontSize,"font-weight":t.value.style.layout.dataLabels.yAxis.bold?"bold":"normal",fill:t.value.style.layout.dataLabels.yAxis.color,x:n.value.left+n.value.width/2,y:n.value.bottom+8+t.value.style.layout.dataLabels.yAxis.fontSize*2},e.toDisplayString(t.value.style.layout.dataLabels.yAxis.name),9,pt)])):e.createCommentVNode("",!0),e.createElementVNode("clipPath",{id:`clip_path_${g.value}`},[e.createElementVNode("rect",{x:n.value.left,y:n.value.top,width:n.value.width<=0?1e-4:n.value.width,height:n.value.height<=0?1e-4:n.value.height},null,8,ft)],8,ht),t.value.style.layout.correlation.show?(e.openBlock(),e.createElementBlock("g",mt,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(x.value,(l,s)=>(e.openBlock(),e.createElementBlock("line",{x1:l.correlation.x1,x2:l.correlation.x2,y1:l.correlation.y1,y2:l.correlation.y2,"stroke-dasharray":t.value.style.layout.correlation.strokeDasharray,stroke:l.color,"stroke-width":t.value.style.layout.correlation.strokeWidth,"clip-path":`url(#clip_path_${g.value})`},null,8,gt))),256)),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(x.value,(l,s)=>(e.openBlock(),e.createElementBlock("g",null,[t.value.style.layout.correlation.label.show?(e.openBlock(),e.createElementBlock("text",{key:0,x:l.label.x,y:l.label.y,fill:t.value.style.layout.correlation.label.useSerieColor?l.color:t.value.style.layout.correlation.label.color,"font-size":t.value.style.layout.correlation.label.fontSize,"font-weight":t.value.style.layout.correlation.label.bold?"bold":"normal"},e.toDisplayString(Number(l.correlation.coefficient.toFixed(t.value.style.layout.correlation.label.roundingValue)).toLocaleString()),9,kt)):e.createCommentVNode("",!0)]))),256))])):e.createCommentVNode("",!0),e.renderSlot(a.$slots,"svg",{svg:k.value},void 0,!0)],14,Ee)):e.createCommentVNode("",!0),a.$slots.watermark?(e.openBlock(),e.createElementBlock("div",xt,[e.renderSlot(a.$slots,"watermark",e.normalizeProps(e.guardReactiveProps({isPrinting:e.unref(K)||e.unref(Q)})),void 0,!0)])):e.createCommentVNode("",!0),D.value?e.createCommentVNode("",!0):(e.openBlock(),e.createBlock(Me.default,{key:4,config:{type:"quadrant",style:{backgroundColor:t.value.style.backgroundColor,quadrant:{grid:{color:t.value.style.layout.axis.stroke},plots:{color:t.value.style.layout.axis.stroke,radius:1}}}}},null,8,["config"])),e.createElementVNode("div",{ref_key:"chartLegend",ref:J},[t.value.style.legend.show?(e.openBlock(),e.createBlock(_e.Legend,{key:0,legendSet:N.value,config:ge.value,onClickMarker:u[0]||(u[0]=({legend:l})=>re(l.id))},{item:e.withCtx(({legend:l})=>[e.createElementVNode("div",{onClick:s=>l.segregate(),style:e.normalizeStyle(`opacity:${p.value.includes(l.id)?.5:1}`)},e.toDisplayString(l.name),13,bt)]),_:1},8,["legendSet","config"])):e.renderSlot(a.$slots,"legend",{key:1,legend:N.value},void 0,!0)],512),e.createVNode(Be._sfc_main,{show:S.value.showTooltip&&q.value,backgroundColor:t.value.style.tooltip.backgroundColor,color:t.value.style.tooltip.color,borderRadius:t.value.style.tooltip.borderRadius,borderColor:t.value.style.tooltip.borderColor,borderWidth:t.value.style.tooltip.borderWidth,fontSize:t.value.style.tooltip.fontSize,backgroundOpacity:t.value.style.tooltip.backgroundOpacity,position:t.value.style.tooltip.position,offsetY:t.value.style.tooltip.offsetY,parent:A.value,content:I.value,isCustom:t.value.style.tooltip.customFormat&&typeof t.value.style.tooltip.customFormat=="function"},{"tooltip-before":e.withCtx(()=>[e.renderSlot(a.$slots,"tooltip-before",e.normalizeProps(e.guardReactiveProps({...Y.value})),void 0,!0)]),"tooltip-after":e.withCtx(()=>[e.renderSlot(a.$slots,"tooltip-after",e.normalizeProps(e.guardReactiveProps({...Y.value})),void 0,!0)]),default:e.withCtx(()=>[t.value.style.tooltip.showShape?(e.openBlock(),e.createElementBlock("div",wt,[(e.openBlock(),e.createElementBlock("svg",Bt,[e.createVNode(ve._sfc_main,{shape:c.value.shape,color:c.value.color,plot:{x:10,y:10},radius:7},null,8,["shape","color"])]))])):e.createCommentVNode("",!0)]),_:3},8,["show","backgroundColor","color","borderRadius","borderColor","borderWidth","fontSize","backgroundOpacity","position","offsetY","parent","content","isCustom"]),D.value?(e.openBlock(),e.createBlock(Se.default,{key:5,hideDetails:"",config:{open:S.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.createVNode(Ce.DataTable,{colNames:W.value.colNames,head:W.value.head,body:W.value.body,config:W.value.config,title:`${t.value.style.title.text}${t.value.style.title.subtitle.text?` : ${t.value.style.title.subtitle.text}`:""}`,onClose:u[1]||(u[1]=l=>S.value.showTable=!1)},{th:e.withCtx(({th:l})=>[e.createTextVNode(e.toDisplayString(l),1)]),td:e.withCtx(({td:l})=>[l.shape?(e.openBlock(),e.createElementBlock("div",_t,[e.createElementVNode("span",null,e.toDisplayString(l.content),1)])):(e.openBlock(),e.createElementBlock("div",{key:1,innerHTML:l},null,8,Ct))]),_:1},8,["colNames","head","body","config","title"])]),_:1},8,["config"])):e.createCommentVNode("",!0)],14,Ne))}},St=$e._export_sfc(Mt,[["__scopeId","data-v-4009bc76"]]);exports.default=St;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),r=require("./index-CDK3omwG.cjs"),ce=require("./useResponsive-B3TrDDIG.cjs"),we=require("./Title-CR-JDJwq.cjs"),ye=require("./usePrinter-vQu-8tRD.cjs"),Be=require("./Tooltip-B4DNihSF.cjs"),_e=require("./Legend-BJ2Mynop.cjs"),ve=require("./Shape-DWZSJJ6-.cjs"),Ce=require("./DataTable-CPAt686N.cjs"),Me=require("./vue-ui-skeleton-DRDC3yxK.cjs"),Se=require("./vue-ui-accordion-EVAolVkD.cjs"),de=require("./useNestedProp-CaaW8JIS.cjs"),$e=require("./_plugin-vue_export-helper-BHFhmbuH.cjs"),Ne=["id"],Ee=["xmlns","viewBox"],Le={key:0},ze=["x1","x2","y1","y2","stroke","stroke-width"],Ve=["x1","x2","y1","y2","stroke","stroke-width"],Ae={key:1},Te=["points","fill","stroke-width","stroke-dasharray","stroke"],De={key:0},Pe=["cx","cy","r","fill","stroke","stroke-width","onMouseover"],Fe={key:1},We={key:2},Oe=["id"],qe=["stop-color"],Ie=["stop-color"],Xe=["id"],Ye=["stop-color"],je=["stop-color"],Re=["x","y","width","height","fill","stroke","stroke-width","rx"],Ge=["x","y","height","width","fill","stroke","stroke-width","rx"],Ue={key:0},He=["d","stroke","stroke-width"],Je=["d","stroke","stroke-width"],Ke=["d","stroke","stroke-width"],Qe=["d","stroke","stroke-width"],Ze={key:3,style:{"pointer-events":"none !important"}},et=["x1","x2","y1","y2","stroke","stroke-width","stroke-dasharray"],tt=["x1","x2","y1","y2","stroke","stroke-width","stroke-dasharray"],lt=["x","y","font-size","fill","font-weight","text-anchor"],at=["x","y","font-size","fill","font-weight"],ot=["cx","cy","r","fill","stroke","stroke-width"],st=["cx","cy","r","fill","stroke","stroke-width"],rt=["x","y","font-size","fill","font-weight","text-anchor"],nt={key:4},ut=["x","y","font-size","fill"],it=["x","y","font-size","fill"],ct=["id","transform","font-size","font-weight","fill"],yt={key:5},vt=["x","y","font-size","fill"],dt=["x","y","font-size","fill"],pt=["font-size","font-weight","fill","x","y"],ht=["id"],ft=["x","y","width","height"],mt={key:6},gt=["x1","x2","y1","y2","stroke-dasharray","stroke","stroke-width","clip-path"],kt=["x","y","fill","font-size","font-weight"],xt={key:3,class:"vue-data-ui-watermark"},bt=["onClick"],wt={key:0,style:{width:"100%",display:"flex","align-items":"center","justify-content":"center"}},Bt={viewBox:"0 0 20 20",height:"20",width:"20",style:{overflow:"hidden",background:"transparent"}},_t={key:0},Ct=["innerHTML"],Mt={__name:"vue-ui-scatter",props:{config:{type:Object,default(){return{}}},dataset:{type:Array,default(){return[]}}},setup(pe,{expose:he}){const M=pe,{vue_ui_scatter:fe}=r.useConfig(),D=e.computed(()=>!!M.dataset&&M.dataset.length),g=e.ref(r.createUid()),me=e.ref(null),q=e.ref(!1),I=e.ref(""),U=e.ref(0),A=e.ref(null),H=e.ref(null),J=e.ref(null),t=e.computed(()=>{const a=de.useNestedProp({userConfig:M.config,defaultConfig:fe});return a.theme?{...de.useNestedProp({userConfig:r.themes.vue_ui_scatter[a.theme]||M.config,defaultConfig:a}),customPalette:r.themePalettes[a.theme]||r.palette}:a}),P=e.ref(null);e.onMounted(()=>{if(r.objectIsEmpty(M.dataset)&&r.error({componentName:"VueUiScatter",type:"dataset"}),t.value.responsive){const a=ce.throttle(()=>{const{width:u,height:l}=ce.useResponsive({chart:A.value,title:t.value.style.title.text?H.value:null,legend:t.value.style.legend.show?J.value:null});k.value.width=u,k.value.height=l});P.value=new ResizeObserver(a),P.value.observe(A.value.parentNode)}}),e.onBeforeUnmount(()=>{P.value&&P.value.disconnect()});const{isPrinting:K,isImaging:Q,generatePdf:Z,generateImage:ee}=ye.usePrinter({elementId:`vue-ui-scatter_${g.value}`,fileName:t.value.style.title.text||"vue-ui-scatter"}),te=e.computed(()=>r.convertCustomPalette(t.value.customPalette)),S=e.ref({showTable:t.value.table.show,showTooltip:t.value.style.tooltip.show}),k=e.ref({height:t.value.style.layout.height,width:t.value.style.layout.width}),F=e.computed(()=>t.value.style.layout.marginalBars.show?t.value.style.layout.marginalBars.size+t.value.style.layout.marginalBars.offset:0),n=e.computed(()=>({top:t.value.style.layout.padding.top+F.value,right:k.value.width-t.value.style.layout.padding.right-F.value,bottom:k.value.height-t.value.style.layout.padding.bottom,left:t.value.style.layout.padding.left,height:k.value.height-t.value.style.layout.padding.top-t.value.style.layout.padding.bottom-F.value,width:k.value.width-t.value.style.layout.padding.left-t.value.style.layout.padding.right-F.value})),y=e.computed(()=>{M.dataset.forEach((o,i)=>{r.getMissingDatasetAttributes({datasetObject:o,requiredAttributes:["values"]}).forEach(h=>{r.error({componentName:"VueUiScatter",type:"datasetSerieAttribute",property:h,index:i})}),o.values&&o.values.forEach((h,E)=>{r.getMissingDatasetAttributes({datasetObject:h,requiredAttributes:["x","y"]}).forEach(V=>{r.error({componentName:"VueUiScatter",type:"datasetSerieAttribute",property:`values.${V}`,index:`${i} - ${E}`})})})});const a=Math.min(...N.value.filter(o=>!p.value.includes(o.id)).flatMap(o=>o.values.map(i=>i.x))),u=Math.max(...N.value.filter(o=>!p.value.includes(o.id)).flatMap(o=>o.values.map(i=>i.x))),l=Math.min(...N.value.filter(o=>!p.value.includes(o.id)).flatMap(o=>o.values.map(i=>i.y))),s=Math.max(...N.value.filter(o=>!p.value.includes(o.id)).flatMap(o=>o.values.map(i=>i.y)));return{xMin:a>=0?0:a,xMax:u,yMin:l>=0?0:l,yMax:s}}),v=e.computed(()=>({x:n.value.left+Math.abs(y.value.xMin)/(y.value.xMax+Math.abs(y.value.xMin))*n.value.width,y:n.value.bottom-Math.abs(y.value.yMin)/(y.value.yMax+Math.abs(y.value.yMin))*n.value.height})),N=e.computed(()=>M.dataset.map((a,u)=>{const l=`cluster_${g.value}_${u}`;return{...a,id:l,color:a.color?a.color:te.value[u]||r.palette[u]||r.palette[u%r.palette.length],opacity:p.value.includes(l)?.5:1,shape:a.shape??"circle",segregate:()=>re(l),isSegregated:p.value.includes(l)}})),ge=e.computed(()=>({cy:"scatter-div-legend",backgroundColor:t.value.style.legend.backgroundColor,color:t.value.style.legend.color,fontSize:t.value.style.legend.fontSize,paddingBottom:12,fontWeight:t.value.style.legend.bold?"bold":""})),X=e.computed(()=>N.value.map((a,u)=>({...a,plots:a.values.map(l=>({x:n.value.left+(l.x+Math.abs(y.value.xMin))/(y.value.xMax+Math.abs(y.value.xMin))*n.value.width,y:n.value.bottom-(l.y+Math.abs(y.value.yMin))/(y.value.yMax+Math.abs(y.value.yMin))*n.value.height,v:{...l,name:l.name||""},clusterName:a.name,color:a.color?a.color:te.value[u]||r.palette[u]||r.palette[u%r.palette.length],id:`plot_${g.value}_${Math.random()}`,weight:l.weight??t.value.style.layout.plots.radius}))})).filter(a=>!p.value.includes(a.id))),x=e.computed(()=>X.value.map(a=>{const u=a.plots.reduce((d,L)=>d+L.x,0)/a.plots.length,l=a.plots.reduce((d,L)=>d+L.y,0)/a.plots.length;let s=0,o=0,i=0;for(const d of a.plots)s+=(d.x-u)*(d.y-l),o+=(d.x-u)**2,i+=(d.y-l)**2;const h=s/Math.sqrt(o*i),E=h*(Math.sqrt(i)/Math.sqrt(o)),V=l-E*u,_={x1:n.value.left,x2:n.value.right,y1:E*n.value.left+V,y2:E*n.value.right+V,coefficient:h},m=(_.y2-_.y1)/(_.x2-_.x1),w=_.y1-m*_.x1,C=Math.min(k.value.width-t.value.style.layout.padding.right,Math.max(t.value.style.layout.padding.left,(n.value.top-w)/m)),O={x:C,y:m*C+w<=t.value.style.layout.padding.top?n.value.top:m*C+w};return{...a,correlation:_,label:O,plots:a.plots.map(d=>{const L=(d.x+m*d.y-m*w)/(1+Math.pow(m,2)),j=(m*d.x+Math.pow(m,2)*d.y+w)/(1+Math.pow(m,2)),f=Math.sqrt(Math.pow(d.x-L,2)+Math.pow(d.y-j,2));return{...d,deviation:f,shape:a.shape,color:a.color}})}})),le=e.computed(()=>Math.max(...x.value.flatMap(a=>a.plots.map(u=>Math.abs(u.deviation)))));function ke(){return x.value}function ae(a,u){const l=Array.isArray(a)?a.flatMap(f=>f.plots.map(z=>({x:z.x,y:z.y}))):a.plots.map(f=>({x:f.x,y:f.y}));let s=1/0,o=-1/0,i=1/0,h=-1/0;l.forEach(({x:f,y:z})=>{s=Math.min(s,f),o=Math.max(o,f),i=Math.min(i,z),h=Math.max(h,z)});const E=o-s,V=h-i,_=E/u,m=V/u,w=Array(u).fill(0),C=Array(u).fill(0);l.forEach(({x:f,y:z})=>{const R=Math.floor((f-s)/_),G=Math.floor((z-i)/m);w[R]||(w[R]=0),C[G]||(C[G]=0),w[R]+=1,C[G]+=1});const O=[],d=[];for(let f=0;f<u;f+=1)O.push(s+(f+.5)*_),d.push(i+(f+.5)*m);const L=Math.max(...w),j=Math.max(...C);return{x:w,y:C,avgX:O,avgY:d,maxX:L,maxY:j}}const $=e.computed(()=>t.value.style.layout.marginalBars.tranches),b=e.computed(()=>ae(X.value,$.value)),xe=e.computed(()=>{const a=n.value.top-t.value.style.layout.marginalBars.offset,u=n.value.right+t.value.style.layout.marginalBars.offset;return X.value.map(l=>{const s=ae(l,$.value);return{coords:s,dX:r.createSmoothPath(s.avgX.map((o,i)=>({x:o,y:a-s.x[i]/s.maxX*t.value.style.layout.marginalBars.size}))),dY:r.createSmoothPath(s.avgY.map((o,i)=>({y:o,x:u+t.value.style.layout.marginalBars.size*s.y[i]/s.maxY}))),color:l.color,id:l.id}})}),B=e.ref(void 0),c=e.ref(null),Y=e.ref(null);function oe(a,u){B.value=a.id,c.value=a;let l="";Y.value={datapoint:a,seriesIndex:u,series:x.value,config:t.value};const s=t.value.style.tooltip.customFormat;r.isFunction(s)&&r.functionReturnsString(()=>s({datapoint:a,seriesIndex:u,series:x.value,config:t.value}))?I.value=s({datapoint:a,seriesIndex:u,series:x.value,config:t.value}):(a.clusterName&&(l+=`<div style="display:flex;gap:3px;align-items:center">${a.clusterName}</div>`),a.v.name&&(l+=`<div>${a.v.name}</div>`),l+=`<div style="text-align:left;margin-top:6px;padding-top:6px;border-top:1px solid ${t.value.style.tooltip.borderColor}">`,l+=`<div>${t.value.style.layout.dataLabels.xAxis.name}: <b>${isNaN(a.v.x)?"-":r.applyDataLabel(t.value.style.layout.plots.selectors.labels.x.formatter,a.v.x,r.dataLabel({p:t.value.style.tooltip.prefix,v:a.v.x,s:t.value.style.tooltip.suffix,r:t.value.style.tooltip.roundingValue}),{datapoint:a,seriesIndex:u})}</b></div>`,l+=`<div>${t.value.style.layout.dataLabels.yAxis.name}: <b>${isNaN(a.v.y)?"-":r.applyDataLabel(t.value.style.layout.plots.selectors.labels.y.formatter,a.v.y,r.dataLabel({p:t.value.style.tooltip.prefix,v:a.v.y,s:t.value.style.tooltip.suffix,r:t.value.style.tooltip.roundingValue}),{datapoint:a,seriesIndex:u})}</b></div>`,l+=`${t.value.style.layout.plots.deviation.translation}: <b>${r.dataLabel({v:a.deviation,r:t.value.style.layout.plots.deviation.roundingValue})}</b>`,l+="</div>",I.value=`<div>${l}</div>`),q.value=!0}function se(){q.value=!1,B.value=void 0,c.value=null}const p=e.ref([]);function re(a){p.value.includes(a)?p.value=p.value.filter(u=>u!==a):p.value.length<M.dataset.length-1&&p.value.push(a)}function ne(){e.nextTick(()=>{const a=["",t.value.table.translations.correlationCoefficient,t.value.table.translations.nbrPlots,`${t.value.style.layout.dataLabels.xAxis.name} ${t.value.table.translations.average}`,`${t.value.style.layout.dataLabels.yAxis.name} ${t.value.table.translations.average}`],u=x.value.map(o=>[o.name,o.correlation.coefficient,o.plots.length,o.plots.map(i=>i.v.x).reduce((i,h)=>i+h,0)/o.plots.length,o.plots.map(i=>i.v.y).reduce((i,h)=>i+h,0)/o.plots.length]),l=[[t.value.style.title.text],[t.value.style.title.subtitle.text],[[""],[""],[""]]].concat([a]).concat(u),s=r.createCsvContent(l);r.downloadCsv({csvContent:s,title:t.value.style.title.text||"vue-ui-heatmap"})})}const W=e.computed(()=>{const a=[t.value.table.translations.series,t.value.table.translations.correlationCoefficient,t.value.table.translations.nbrPlots,`${t.value.style.layout.dataLabels.xAxis.name} ${t.value.table.translations.average}`,`${t.value.style.layout.dataLabels.yAxis.name} ${t.value.table.translations.average}`],u=x.value.map(s=>[{shape:s.shape,content:s.name,color:s.color},Number((s.correlation.coefficient??0).toFixed(t.value.table.td.roundingValue)).toLocaleString(),s.plots.length.toLocaleString(),Number((s.plots.map(o=>o.v.x??0).reduce((o,i)=>o+i,0)/s.plots.length).toFixed(t.value.table.td.roundingAverage)).toLocaleString(),Number((s.plots.map(o=>o.v.y??0).reduce((o,i)=>o+i,0)/s.plots.length).toFixed(t.value.table.td.roundingAverage)).toLocaleString()]),l={th:{backgroundColor:t.value.table.th.backgroundColor,color:t.value.table.th.color,outline:t.value.table.th.outline},td:{backgroundColor:t.value.table.td.backgroundColor,color:t.value.table.td.color,outline:t.value.table.td.outline},breakpoint:t.value.table.responsiveBreakpoint};return{head:a,body:u,config:l,colNames:a}}),T=e.ref(!1);function be(a){T.value=a,U.value+=1}function ue(){S.value.showTable=!S.value.showTable}function ie(){S.value.showTooltip=!S.value.showTooltip}return he({getData:ke,generatePdf:Z,generateCsv:ne,generateImage:ee,toggleTable:ue,toggleTooltip:ie}),(a,u)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(`vue-ui-scatter ${T.value?"vue-data-ui-wrapper-fullscreen":""} ${t.value.useCssAnimation?"":"vue-ui-dna"}`),ref_key:"scatterChart",ref:A,id:`vue-ui-scatter_${g.value}`,style:e.normalizeStyle(`font-family:${t.value.style.fontFamily};width:100%; text-align:center;${t.value.style.title.text?"":"padding-top:36px"};background:${t.value.style.backgroundColor};${t.value.responsive?"height: 100%":""}`)},[t.value.style.title.text?(e.openBlock(),e.createElementBlock("div",{key:0,ref_key:"chartTitle",ref:H,style:e.normalizeStyle(`width:100%;background:${t.value.style.backgroundColor}`)},[e.createVNode(we._sfc_main,{config:{title:{cy:"scatter-div-title",...t.value.style.title},subtitle:{cy:"scatter-div-subtitle",...t.value.style.title.subtitle}}},null,8,["config"])],4)):e.createCommentVNode("",!0),t.value.userOptions.show&&D.value?(e.openBlock(),e.createBlock(ye.UserOptions,{ref_key:"details",ref:me,key:`user_options_${U.value}`,backgroundColor:t.value.style.backgroundColor,color:t.value.style.color,isImaging:e.unref(Q),isPrinting:e.unref(K),uid:g.value,hasTooltip:t.value.userOptions.buttons.tooltip&&t.value.style.tooltip.show,hasPdf:t.value.userOptions.buttons.pdf,hasImg:t.value.userOptions.buttons.img,hasXls:t.value.userOptions.buttons.csv,hasTable:t.value.userOptions.buttons.table,hasFullscreen:t.value.userOptions.buttons.fullscreen,isTooltip:S.value.showTooltip,isFullscreen:T.value,titles:{...t.value.userOptions.buttonTitles},chartElement:A.value,onToggleFullscreen:be,onGeneratePdf:e.unref(Z),onGenerateCsv:ne,onGenerateImage:e.unref(ee),onToggleTable:ue,onToggleTooltip:ie},e.createSlots({_:2},[a.$slots.optionTooltip?{name:"optionTooltip",fn:e.withCtx(()=>[e.renderSlot(a.$slots,"optionTooltip",{},void 0,!0)]),key:"0"}:void 0,a.$slots.optionPdf?{name:"optionPdf",fn:e.withCtx(()=>[e.renderSlot(a.$slots,"optionPdf",{},void 0,!0)]),key:"1"}:void 0,a.$slots.optionCsv?{name:"optionCsv",fn:e.withCtx(()=>[e.renderSlot(a.$slots,"optionCsv",{},void 0,!0)]),key:"2"}:void 0,a.$slots.optionImg?{name:"optionImg",fn:e.withCtx(()=>[e.renderSlot(a.$slots,"optionImg",{},void 0,!0)]),key:"3"}:void 0,a.$slots.optionTable?{name:"optionTable",fn:e.withCtx(()=>[e.renderSlot(a.$slots,"optionTable",{},void 0,!0)]),key:"4"}:void 0,a.$slots.optionFullscreen?{name:"optionFullscreen",fn:e.withCtx(({toggleFullscreen:l,isFullscreen:s})=>[e.renderSlot(a.$slots,"optionFullscreen",e.normalizeProps(e.guardReactiveProps({toggleFullscreen:l,isFullscreen:s})),void 0,!0)]),key:"5"}:void 0]),1032,["backgroundColor","color","isImaging","isPrinting","uid","hasTooltip","hasPdf","hasImg","hasXls","hasTable","hasFullscreen","isTooltip","isFullscreen","titles","chartElement","onGeneratePdf","onGenerateImage"])):e.createCommentVNode("",!0),D.value?(e.openBlock(),e.createElementBlock("svg",{key:2,xmlns:e.unref(r.XMLNS),class:e.normalizeClass({"vue-data-ui-fullscreen--on":T.value,"vue-data-ui-fulscreen--off":!T.value}),viewBox:`0 0 ${k.value.width<=0?10:k.value.width} ${k.value.height<=0?10:k.value.height}`,style:e.normalizeStyle(`max-width:100%;overflow:visible;background:${t.value.style.backgroundColor};color:${t.value.style.color}`)},[t.value.style.layout.axis.show?(e.openBlock(),e.createElementBlock("g",Le,[e.createElementVNode("line",{x1:v.value.x,x2:v.value.x,y1:n.value.top,y2:n.value.bottom,stroke:t.value.style.layout.axis.stroke,"stroke-width":t.value.style.layout.axis.strokeWidth,"stroke-linecap":"round"},null,8,ze),e.createElementVNode("line",{x1:n.value.left,x2:n.value.right,y1:v.value.y,y2:v.value.y,stroke:t.value.style.layout.axis.stroke,"stroke-width":t.value.style.layout.axis.strokeWidth,"stroke-linecap":"round"},null,8,Ve)])):e.createCommentVNode("",!0),t.value.style.layout.plots.giftWrap.show?(e.openBlock(),e.createElementBlock("g",Ae,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(x.value,(l,s)=>(e.openBlock(),e.createElementBlock("g",null,[l.plots.length>2?(e.openBlock(),e.createElementBlock("polygon",{key:0,points:e.unref(r.giftWrap)({series:l.plots}),fill:`${l.color}${e.unref(r.opacity)[t.value.style.layout.plots.giftWrap.fillOpacity*100]}`,"stroke-width":t.value.style.layout.plots.giftWrap.strokeWidth,"stroke-dasharray":t.value.style.layout.plots.giftWrap.strokeDasharray,stroke:l.color,"stroke-linejoin":"round","stroke-linecap":"round"},null,8,Te)):e.createCommentVNode("",!0)]))),256))])):e.createCommentVNode("",!0),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(x.value,(l,s)=>(e.openBlock(),e.createElementBlock("g",null,[!l.shape||l.shape==="circle"?(e.openBlock(),e.createElementBlock("g",De,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(l.plots,(o,i)=>(e.openBlock(),e.createElementBlock("circle",{cx:o.x,cy:o.y,r:B.value&&B.value===o.id?o.weight*2:o.weight,fill:`${l.color}${e.unref(r.opacity)[t.value.style.layout.plots.opacity*100]}`,stroke:t.value.style.layout.plots.stroke,"stroke-width":t.value.style.layout.plots.strokeWidth,onMouseover:h=>oe(o,s),onMouseleave:se,style:e.normalizeStyle(`opacity:${B.value&&B.value===o.id?1:t.value.style.layout.plots.significance.useDistanceOpacity?1-Math.abs(o.deviation)/le.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,Pe))),256))])):(e.openBlock(),e.createElementBlock("g",Fe,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(l.plots,(o,i)=>(e.openBlock(),e.createBlock(ve._sfc_main,{plot:{x:o.x,y:o.y},radius:B.value&&B.value===o.id?o.weight*2:o.weight,shape:l.shape,color:`${l.color}${e.unref(r.opacity)[t.value.style.layout.plots.opacity*100]}`,stroke:t.value.style.layout.plots.stroke,strokeWidth:t.value.style.layout.plots.strokeWidth,onMouseover:h=>oe(o,s),onMouseleave:se,style:e.normalizeStyle(`opacity:${B.value&&B.value===o.id?1:t.value.style.layout.plots.significance.useDistanceOpacity?1-Math.abs(o.deviation)/le.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",We,[e.createElementVNode("defs",null,[e.createElementVNode("linearGradient",{id:`marginal_x_${g.value}`,x1:"0%",y1:"0%",x2:"0%",y2:"100%"},[e.createElementVNode("stop",{offset:"0%","stop-color":t.value.style.layout.marginalBars.fill},null,8,qe),e.createElementVNode("stop",{offset:"100%","stop-color":t.value.style.backgroundColor},null,8,Ie)],8,Oe),e.createElementVNode("linearGradient",{id:`marginal_y_${g.value}`,x1:"0%",x2:"100%",y1:"0%",y2:"0%"},[e.createElementVNode("stop",{offset:"0%","stop-color":t.value.style.backgroundColor},null,8,Ye),e.createElementVNode("stop",{offset:"100%","stop-color":t.value.style.layout.marginalBars.fill},null,8,je)],8,Xe)]),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(b.value.x,(l,s)=>(e.openBlock(),e.createElementBlock("g",null,[l&&b.value.avgX[s]?(e.openBlock(),e.createElementBlock("rect",{key:0,x:b.value.avgX[s]-n.value.width/$.value/2,y:n.value.top-t.value.style.layout.marginalBars.offset-l/b.value.maxX*t.value.style.layout.marginalBars.size,width:n.value.width/$.value<=0?1e-4:n.value.width/$.value,height:l/b.value.maxX*t.value.style.layout.marginalBars.size<=0?1e-4:l/b.value.maxX*t.value.style.layout.marginalBars.size,fill:t.value.style.layout.marginalBars.useGradient?`url(#marginal_x_${g.value})`:t.value.style.layout.marginalBars.fill,style:e.normalizeStyle(`opacity:${t.value.style.layout.marginalBars.opacity}`),stroke:t.value.style.backgroundColor,"stroke-width":t.value.style.layout.marginalBars.strokeWidth,rx:t.value.style.layout.marginalBars.borderRadius},null,12,Re)):e.createCommentVNode("",!0)]))),256)),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(b.value.y,(l,s)=>(e.openBlock(),e.createElementBlock("g",null,[l&&b.value.avgY[s]?(e.openBlock(),e.createElementBlock("rect",{key:0,x:n.value.right+t.value.style.layout.marginalBars.offset,y:b.value.avgY[s]-n.value.height/$.value/2,height:n.value.height/$.value<=0?1e-4:n.value.height/$.value,width:l/b.value.maxY*t.value.style.layout.marginalBars.size<=0?1e-4:l/b.value.maxY*t.value.style.layout.marginalBars.size,fill:t.value.style.layout.marginalBars.useGradient?`url(#marginal_y_${g.value})`:t.value.style.layout.marginalBars.fill,style:e.normalizeStyle(`opacity:${t.value.style.layout.marginalBars.opacity}`),stroke:t.value.style.backgroundColor,"stroke-width":t.value.style.layout.marginalBars.strokeWidth,rx:t.value.style.layout.marginalBars.borderRadius},null,12,Ge)):e.createCommentVNode("",!0)]))),256)),t.value.style.layout.marginalBars.showLines?(e.openBlock(),e.createElementBlock("g",Ue,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(xe.value,l=>(e.openBlock(),e.createElementBlock(e.Fragment,null,[p.value.includes(l.id)?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("path",{key:0,d:`M ${l.dX}`,stroke:t.value.style.backgroundColor,"stroke-width":t.value.style.layout.marginalBars.linesStrokeWidth+1,"stroke-linecap":"round","stroke-linejoin":"round",fill:"none"},null,8,He)),p.value.includes(l.id)?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("path",{key:1,d:`M ${l.dX}`,stroke:l.color,"stroke-width":t.value.style.layout.marginalBars.linesStrokeWidth,"stroke-linecap":"round","stroke-linejoin":"round",fill:"none"},null,8,Je)),p.value.includes(l.id)?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("path",{key:2,d:`M ${l.dY}`,stroke:t.value.style.backgroundColor,"stroke-width":t.value.style.layout.marginalBars.linesStrokeWidth+1,"stroke-linecap":"round","stroke-linejoin":"round",fill:"none"},null,8,Ke)),p.value.includes(l.id)?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("path",{key:3,d:`M ${l.dY}`,stroke:l.color,"stroke-width":t.value.style.layout.marginalBars.linesStrokeWidth,"stroke-linecap":"round","stroke-linejoin":"round",fill:"none"},null,8,Qe))],64))),256))])):e.createCommentVNode("",!0)])):e.createCommentVNode("",!0),c.value&&t.value.style.layout.plots.selectors.show?(e.openBlock(),e.createElementBlock("g",Ze,[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,et),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,tt),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(r.applyDataLabel)(t.value.style.layout.plots.selectors.labels.y.formatter,c.value.v.y,e.unref(r.dataLabel)({p:t.value.style.layout.plots.selectors.labels.prefix,v: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,lt),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(r.applyDataLabel)(t.value.style.layout.plots.selectors.labels.y.formatter,c.value.v.x,e.unref(r.dataLabel)({p:t.value.style.layout.plots.selectors.labels.prefix,v: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,at),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,ot),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,st),t.value.style.layout.plots.selectors.labels.showName?(e.openBlock(),e.createElementBlock("text",{key:0,x:c.value.x,y:c.value.y+(c.value.y<v.value.y?-t.value.style.layout.plots.selectors.labels.fontSize/2:t.value.style.layout.plots.selectors.labels.fontSize),"font-size":t.value.style.layout.plots.selectors.labels.fontSize,fill:t.value.style.layout.plots.selectors.labels.color,"font-weight":t.value.style.layout.plots.selectors.labels.bold?"bold":"normal","text-anchor":c.value.x<n.value.left+100?"start":c.value.x>n.value.right-100?"end":c.value.x>v.value.x?"start":"end"},e.toDisplayString(c.value.v.name),9,rt)):e.createCommentVNode("",!0)])):e.createCommentVNode("",!0),t.value.style.layout.dataLabels.xAxis.show?(e.openBlock(),e.createElementBlock("g",nt,[e.createElementVNode("text",{x:n.value.left-5,y:v.value.y+t.value.style.layout.dataLabels.xAxis.fontSize/3,"text-anchor":"end","font-size":t.value.style.layout.dataLabels.xAxis.fontSize,fill:t.value.style.layout.dataLabels.xAxis.color},e.toDisplayString(e.unref(r.applyDataLabel)(t.value.style.layout.plots.selectors.labels.x.formatter,y.value.xMin,e.unref(r.dataLabel)({p:t.value.style.layout.plots.selectors.labels.prefix,v:y.value.xMin,s:t.value.style.layout.plots.selectors.labels.suffix,r:t.value.style.layout.dataLabels.xAxis.rounding}))),9,ut),e.createElementVNode("text",{x:n.value.right+3,y:v.value.y+t.value.style.layout.dataLabels.xAxis.fontSize/3,"text-anchor":"start","font-size":t.value.style.layout.dataLabels.xAxis.fontSize,fill:t.value.style.layout.dataLabels.xAxis.color},e.toDisplayString(e.unref(r.applyDataLabel)(t.value.style.layout.plots.selectors.labels.x.formatter,y.value.xMax,e.unref(r.dataLabel)({p:t.value.style.layout.plots.selectors.labels.prefix,v:y.value.xMax,s:t.value.style.layout.plots.selectors.labels.suffix,r:t.value.style.layout.dataLabels.xAxis.rounding}))),9,it),e.createElementVNode("text",{id:`vue-ui-scatter-xAxis-label-${g.value}`,transform:`translate(${t.value.style.layout.dataLabels.xAxis.fontSize*2}, ${n.value.top+n.value.height/2}), rotate(-90)`,"text-anchor":"middle","font-size":t.value.style.layout.dataLabels.xAxis.fontSize,"font-weight":t.value.style.layout.dataLabels.xAxis.bold?"bold":"normal",fill:t.value.style.layout.dataLabels.xAxis.color},e.toDisplayString(t.value.style.layout.dataLabels.xAxis.name),9,ct)])):e.createCommentVNode("",!0),t.value.style.layout.dataLabels.yAxis.show?(e.openBlock(),e.createElementBlock("g",yt,[e.createElementVNode("text",{x:v.value.x,y:n.value.bottom+t.value.style.layout.dataLabels.yAxis.fontSize+3,"text-anchor":"middle","font-size":t.value.style.layout.dataLabels.yAxis.fontSize,fill:t.value.style.layout.dataLabels.yAxis.color},e.toDisplayString(e.unref(r.applyDataLabel)(t.value.style.layout.plots.selectors.labels.y.formatter,y.value.yMin,e.unref(r.dataLabel)({p:t.value.style.layout.plots.selectors.labels.prefix,v:y.value.yMin,s:t.value.style.layout.plots.selectors.labels.suffix,r:t.value.style.layout.dataLabels.yAxis.rounding}))),9,vt),e.createElementVNode("text",{x:v.value.x,y:n.value.top-t.value.style.layout.dataLabels.yAxis.fontSize/2,"text-anchor":"middle","font-size":t.value.style.layout.dataLabels.yAxis.fontSize,fill:t.value.style.layout.dataLabels.yAxis.color},e.toDisplayString(e.unref(r.applyDataLabel)(t.value.style.layout.plots.selectors.labels.y.formatter,y.value.yMax,e.unref(r.dataLabel)({p:t.value.style.layout.plots.selectors.labels.prefix,v:y.value.yMax,s:t.value.style.layout.plots.selectors.labels.suffix,r:t.value.style.layout.dataLabels.yAxis.rounding}))),9,dt),e.createElementVNode("text",{"text-anchor":"middle","font-size":t.value.style.layout.dataLabels.yAxis.fontSize,"font-weight":t.value.style.layout.dataLabels.yAxis.bold?"bold":"normal",fill:t.value.style.layout.dataLabels.yAxis.color,x:n.value.left+n.value.width/2,y:n.value.bottom+8+t.value.style.layout.dataLabels.yAxis.fontSize*2},e.toDisplayString(t.value.style.layout.dataLabels.yAxis.name),9,pt)])):e.createCommentVNode("",!0),e.createElementVNode("clipPath",{id:`clip_path_${g.value}`},[e.createElementVNode("rect",{x:n.value.left,y:n.value.top,width:n.value.width<=0?1e-4:n.value.width,height:n.value.height<=0?1e-4:n.value.height},null,8,ft)],8,ht),t.value.style.layout.correlation.show?(e.openBlock(),e.createElementBlock("g",mt,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(x.value,(l,s)=>(e.openBlock(),e.createElementBlock("line",{x1:l.correlation.x1,x2:l.correlation.x2,y1:l.correlation.y1,y2:l.correlation.y2,"stroke-dasharray":t.value.style.layout.correlation.strokeDasharray,stroke:l.color,"stroke-width":t.value.style.layout.correlation.strokeWidth,"clip-path":`url(#clip_path_${g.value})`},null,8,gt))),256)),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(x.value,(l,s)=>(e.openBlock(),e.createElementBlock("g",null,[t.value.style.layout.correlation.label.show?(e.openBlock(),e.createElementBlock("text",{key:0,x:l.label.x,y:l.label.y,fill:t.value.style.layout.correlation.label.useSerieColor?l.color:t.value.style.layout.correlation.label.color,"font-size":t.value.style.layout.correlation.label.fontSize,"font-weight":t.value.style.layout.correlation.label.bold?"bold":"normal"},e.toDisplayString(Number(l.correlation.coefficient.toFixed(t.value.style.layout.correlation.label.roundingValue)).toLocaleString()),9,kt)):e.createCommentVNode("",!0)]))),256))])):e.createCommentVNode("",!0),e.renderSlot(a.$slots,"svg",{svg:k.value},void 0,!0)],14,Ee)):e.createCommentVNode("",!0),a.$slots.watermark?(e.openBlock(),e.createElementBlock("div",xt,[e.renderSlot(a.$slots,"watermark",e.normalizeProps(e.guardReactiveProps({isPrinting:e.unref(K)||e.unref(Q)})),void 0,!0)])):e.createCommentVNode("",!0),D.value?e.createCommentVNode("",!0):(e.openBlock(),e.createBlock(Me.default,{key:4,config:{type:"quadrant",style:{backgroundColor:t.value.style.backgroundColor,quadrant:{grid:{color:t.value.style.layout.axis.stroke},plots:{color:t.value.style.layout.axis.stroke,radius:1}}}}},null,8,["config"])),e.createElementVNode("div",{ref_key:"chartLegend",ref:J},[t.value.style.legend.show?(e.openBlock(),e.createBlock(_e.Legend,{key:0,legendSet:N.value,config:ge.value,onClickMarker:u[0]||(u[0]=({legend:l})=>re(l.id))},{item:e.withCtx(({legend:l})=>[e.createElementVNode("div",{onClick:s=>l.segregate(),style:e.normalizeStyle(`opacity:${p.value.includes(l.id)?.5:1}`)},e.toDisplayString(l.name),13,bt)]),_:1},8,["legendSet","config"])):e.renderSlot(a.$slots,"legend",{key:1,legend:N.value},void 0,!0)],512),e.createVNode(Be._sfc_main,{show:S.value.showTooltip&&q.value,backgroundColor:t.value.style.tooltip.backgroundColor,color:t.value.style.tooltip.color,borderRadius:t.value.style.tooltip.borderRadius,borderColor:t.value.style.tooltip.borderColor,borderWidth:t.value.style.tooltip.borderWidth,fontSize:t.value.style.tooltip.fontSize,backgroundOpacity:t.value.style.tooltip.backgroundOpacity,position:t.value.style.tooltip.position,offsetY:t.value.style.tooltip.offsetY,parent:A.value,content:I.value,isCustom:t.value.style.tooltip.customFormat&&typeof t.value.style.tooltip.customFormat=="function"},{"tooltip-before":e.withCtx(()=>[e.renderSlot(a.$slots,"tooltip-before",e.normalizeProps(e.guardReactiveProps({...Y.value})),void 0,!0)]),"tooltip-after":e.withCtx(()=>[e.renderSlot(a.$slots,"tooltip-after",e.normalizeProps(e.guardReactiveProps({...Y.value})),void 0,!0)]),default:e.withCtx(()=>[t.value.style.tooltip.showShape?(e.openBlock(),e.createElementBlock("div",wt,[(e.openBlock(),e.createElementBlock("svg",Bt,[e.createVNode(ve._sfc_main,{shape:c.value.shape,color:c.value.color,plot:{x:10,y:10},radius:7},null,8,["shape","color"])]))])):e.createCommentVNode("",!0)]),_:3},8,["show","backgroundColor","color","borderRadius","borderColor","borderWidth","fontSize","backgroundOpacity","position","offsetY","parent","content","isCustom"]),D.value?(e.openBlock(),e.createBlock(Se.default,{key:5,hideDetails:"",config:{open:S.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.createVNode(Ce.DataTable,{colNames:W.value.colNames,head:W.value.head,body:W.value.body,config:W.value.config,title:`${t.value.style.title.text}${t.value.style.title.subtitle.text?` : ${t.value.style.title.subtitle.text}`:""}`,onClose:u[1]||(u[1]=l=>S.value.showTable=!1)},{th:e.withCtx(({th:l})=>[e.createTextVNode(e.toDisplayString(l),1)]),td:e.withCtx(({td:l})=>[l.shape?(e.openBlock(),e.createElementBlock("div",_t,[e.createElementVNode("span",null,e.toDisplayString(l.content),1)])):(e.openBlock(),e.createElementBlock("div",{key:1,innerHTML:l},null,8,Ct))]),_:1},8,["colNames","head","body","config","title"])]),_:1},8,["config"])):e.createCommentVNode("",!0)],14,Ne))}},St=$e._export_sfc(Mt,[["__scopeId","data-v-4009bc76"]]);exports.default=St;