vue-data-ui 3.6.0 → 3.7.0

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 (199) hide show
  1. package/README.md +26 -26
  2. package/dist/{Arrow-BGVin3AS.js → Arrow-CWYIBV-7.js} +1 -1
  3. package/dist/{BaseDraggableDialog-DhKIof09.js → BaseDraggableDialog-CRF94NJQ.js} +2 -2
  4. package/dist/{BaseIcon-DLFL0M4-.js → BaseIcon-CofSxalQ.js} +1 -1
  5. package/dist/{ColorPicker-CjIJvLdc.js → ColorPicker-e1-OSGlQ.js} +10 -10
  6. package/dist/{DataTable-UCyd_BQI.js → DataTable-CHaOCmsE.js} +2 -2
  7. package/dist/{Legend-D9ZTJKjh.js → Legend-Web3GjlR.js} +2 -2
  8. package/dist/{NonSvgPenAndPaper-a2UzZL0y.js → NonSvgPenAndPaper-CjYFLlns.js} +3 -3
  9. package/dist/{PackageVersion-D_4Hr4S4.js → PackageVersion-Bq_mtsqr.js} +1 -1
  10. package/dist/{PenAndPaper-BJSMejV9.js → PenAndPaper-HCZQTkqi.js} +20 -20
  11. package/dist/{Shape-CNXKB8O0.js → Shape-DE6X_t31.js} +3 -3
  12. package/dist/{Slicer-CJfhtoVn.js → Slicer-BFBBG6xv.js} +23 -23
  13. package/dist/{SlicerPreview-wXjV4LWO.js → SlicerPreview-D76aSViW.js} +2 -2
  14. package/dist/{SparkTooltip-BEewz-_Q.js → SparkTooltip-B2rpVWE1.js} +6 -6
  15. package/dist/{Title-Bb1VWCtR.js → Title-DfFUb9hd.js} +1 -1
  16. package/dist/{Tooltip-oWCO1HKy.js → Tooltip-WD0Ros6G.js} +1 -1
  17. package/dist/{UserOptions-BqmUW9Kp.js → UserOptions-B3I-s3Lw.js} +2 -2
  18. package/dist/components/arrow.js +1 -1
  19. package/dist/components/vue-ui-3d-bar.js +3 -3
  20. package/dist/components/vue-ui-accordion.js +1 -1
  21. package/dist/components/vue-ui-age-pyramid.js +3 -3
  22. package/dist/components/vue-ui-annotator.js +1 -1
  23. package/dist/components/vue-ui-bullet.js +3 -3
  24. package/dist/components/vue-ui-candlestick.js +3 -3
  25. package/dist/components/vue-ui-carousel-table.js +1 -1
  26. package/dist/components/vue-ui-chestnut.js +3 -3
  27. package/dist/components/vue-ui-chord.js +3 -3
  28. package/dist/components/vue-ui-circle-pack.js +3 -3
  29. package/dist/components/vue-ui-cursor.js +1 -1
  30. package/dist/components/vue-ui-dashboard.js +1 -1
  31. package/dist/components/vue-ui-digits.js +1 -1
  32. package/dist/components/vue-ui-donut-evolution.js +2 -2
  33. package/dist/components/vue-ui-donut.js +3 -3
  34. package/dist/components/vue-ui-dumbbell.js +3 -3
  35. package/dist/components/vue-ui-flow.js +3 -3
  36. package/dist/components/vue-ui-funnel.js +2 -2
  37. package/dist/components/vue-ui-galaxy.js +1 -1
  38. package/dist/components/vue-ui-gauge.js +1 -1
  39. package/dist/components/vue-ui-gizmo.js +1 -1
  40. package/dist/components/vue-ui-heatmap.js +1 -1
  41. package/dist/components/vue-ui-history-plot.js +3 -3
  42. package/dist/components/vue-ui-horizontal-bar.js +3 -3
  43. package/dist/components/vue-ui-icon.js +1 -1
  44. package/dist/components/vue-ui-kpi.js +1 -1
  45. package/dist/components/vue-ui-mini-loader.js +1 -1
  46. package/dist/components/vue-ui-molecule.js +3 -3
  47. package/dist/components/vue-ui-mood-radar.js +3 -3
  48. package/dist/components/vue-ui-nested-donuts.js +2 -2
  49. package/dist/components/vue-ui-onion.js +3 -3
  50. package/dist/components/vue-ui-parallel-coordinate-plot.js +1 -1
  51. package/dist/components/vue-ui-quadrant.js +3 -3
  52. package/dist/components/vue-ui-quick-chart.js +3 -3
  53. package/dist/components/vue-ui-radar.js +3 -3
  54. package/dist/components/vue-ui-rating.js +1 -1
  55. package/dist/components/vue-ui-relation-circle.js +3 -3
  56. package/dist/components/vue-ui-ridgeline.js +3 -3
  57. package/dist/components/vue-ui-rings.js +3 -3
  58. package/dist/components/vue-ui-scatter.js +3 -3
  59. package/dist/components/vue-ui-skeleton.js +1 -1
  60. package/dist/components/vue-ui-smiley.js +1 -1
  61. package/dist/components/vue-ui-spark-trend.js +1 -1
  62. package/dist/components/vue-ui-sparkbar.js +2 -2
  63. package/dist/components/vue-ui-sparkgauge.js +3 -3
  64. package/dist/components/vue-ui-sparkhistogram.js +3 -3
  65. package/dist/components/vue-ui-sparkline.js +3 -3
  66. package/dist/components/vue-ui-sparkstackbar.js +2 -2
  67. package/dist/components/vue-ui-stackbar.js +3 -3
  68. package/dist/components/vue-ui-stackline.js +1 -1
  69. package/dist/components/vue-ui-strip-plot.js +3 -3
  70. package/dist/components/vue-ui-table-heatmap.js +1 -1
  71. package/dist/components/vue-ui-table-sparkline.js +2 -2
  72. package/dist/components/vue-ui-table.js +1 -1
  73. package/dist/components/vue-ui-thermometer.js +3 -3
  74. package/dist/components/vue-ui-timer.js +1 -1
  75. package/dist/components/vue-ui-tiremarks.js +2 -2
  76. package/dist/components/vue-ui-treemap.js +3 -3
  77. package/dist/components/vue-ui-vertical-bar.js +1 -1
  78. package/dist/components/vue-ui-waffle.js +2 -2
  79. package/dist/components/vue-ui-wheel.js +1 -1
  80. package/dist/components/vue-ui-word-cloud.js +3 -3
  81. package/dist/components/vue-ui-world.js +1 -1
  82. package/dist/components/vue-ui-xy-canvas.js +3 -3
  83. package/dist/components/vue-ui-xy.js +3 -3
  84. package/dist/{dom-to-png--BNgrTZV.js → dom-to-png-CH2DfsJe.js} +1 -1
  85. package/dist/{img-BecE5qXd.js → img-DUzJeMlr.js} +1 -1
  86. package/dist/{lib-C_mNZmhD.js → lib-C5BH09_g.js} +111 -110
  87. package/dist/{pdf-DuG5j3Wv.js → pdf-BSWQncok.js} +1 -1
  88. package/dist/style.css +1 -1
  89. package/dist/types/vue-data-ui.d.ts +1 -0
  90. package/dist/{useAutoSizeLabelsInsideViewbox-BhzfwQ_k.js → useAutoSizeLabelsInsideViewbox-DOALwU4q.js} +7 -7
  91. package/dist/{useNestedProp-CIoDlpHu.js → useNestedProp-CWo6bftQ.js} +1 -1
  92. package/dist/{usePrinter-DTzqpYKF.js → usePrinter-DCJzEiS8.js} +2 -2
  93. package/dist/useThemeCheck-DGJ31Vi5.js +32 -0
  94. package/dist/{useTimeLabels-BGFjWgrv.js → useTimeLabels-C5qMhpbe.js} +50 -49
  95. package/dist/{vue-data-ui-BWuOXu_s.js → vue-data-ui-ByLTJx5V.js} +78 -78
  96. package/dist/vue-data-ui.js +225 -205
  97. package/dist/{vue-ui-3d-bar-BNQAuLqF.js → vue-ui-3d-bar-Dkds4k5N.js} +546 -517
  98. package/dist/{vue-ui-accordion-SSLXLlNz.js → vue-ui-accordion-DSdZUn2C.js} +3 -3
  99. package/dist/vue-ui-age-pyramid-C-fwZRYE.js +960 -0
  100. package/dist/{vue-ui-annotator-34Ld0u5M.js → vue-ui-annotator-DRaH8hXn.js} +7 -7
  101. package/dist/vue-ui-bullet-BKVJRjGh.js +657 -0
  102. package/dist/{vue-ui-candlestick-BcChw-8c.js → vue-ui-candlestick-BKFWHU4O.js} +596 -561
  103. package/dist/{vue-ui-carousel-table-Cp_od0lI.js → vue-ui-carousel-table-VmPH6y2g.js} +48 -48
  104. package/dist/{vue-ui-chestnut-DTaIsP72.js → vue-ui-chestnut-DpMHe-OI.js} +534 -505
  105. package/dist/vue-ui-chord-Djdr0PY_.js +1182 -0
  106. package/dist/vue-ui-circle-pack-CyUqNJQt.js +832 -0
  107. package/dist/{vue-ui-cursor-lW-dVs_k.js → vue-ui-cursor-BMe8ZiV6.js} +2 -2
  108. package/dist/{vue-ui-dashboard-DIymn9Cx.js → vue-ui-dashboard-eBXj-KCw.js} +140 -140
  109. package/dist/{vue-ui-digits-YHA3fA0j.js → vue-ui-digits-D382I0-w.js} +2 -2
  110. package/dist/{vue-ui-donut-BaDmbWLh.js → vue-ui-donut-BLb0kj_P.js} +634 -602
  111. package/dist/vue-ui-donut-evolution-BqrldXpI.js +1243 -0
  112. package/dist/vue-ui-dumbbell-BuZT5a-d.js +1258 -0
  113. package/dist/vue-ui-flow-LLp6ntEP.js +1026 -0
  114. package/dist/vue-ui-funnel-pILUR-OG.js +743 -0
  115. package/dist/vue-ui-galaxy-X6yiw8kx.js +837 -0
  116. package/dist/vue-ui-gauge-DBh-vFb9.js +864 -0
  117. package/dist/{vue-ui-gizmo-E33_xZte.js → vue-ui-gizmo-DtyEukIP.js} +3 -3
  118. package/dist/{vue-ui-heatmap-DJXMvFPp.js → vue-ui-heatmap-mkD6QkXo.js} +501 -466
  119. package/dist/vue-ui-history-plot-CyTaBaxA.js +1239 -0
  120. package/dist/{vue-ui-kpi-C-XuLBVQ.js → vue-ui-kpi-CKMZDc3n.js} +3 -3
  121. package/dist/{vue-ui-mini-loader-DawncJvl.js → vue-ui-mini-loader-BN72OfS0.js} +2 -2
  122. package/dist/vue-ui-molecule-UzQ3o5HW.js +782 -0
  123. package/dist/vue-ui-mood-radar-C2zkRLGy.js +930 -0
  124. package/dist/vue-ui-nested-donuts-B5OpvmJ9.js +1454 -0
  125. package/dist/vue-ui-onion-DbhIOGtF.js +944 -0
  126. package/dist/vue-ui-parallel-coordinate-plot-Dv_T4mWW.js +1080 -0
  127. package/dist/{vue-ui-quadrant-B2bLWyCm.js → vue-ui-quadrant-CG6_CWsQ.js} +510 -481
  128. package/dist/{vue-ui-quick-chart-J_RmCwI_.js → vue-ui-quick-chart-DOeRhk7r.js} +795 -758
  129. package/dist/vue-ui-radar-DdHa9Hsh.js +1013 -0
  130. package/dist/{vue-ui-rating-CBS8zaQd.js → vue-ui-rating-DtzmtJwF.js} +26 -26
  131. package/dist/vue-ui-relation-circle-B5lL4l9w.js +670 -0
  132. package/dist/vue-ui-ridgeline-3pk4Mlft.js +1302 -0
  133. package/dist/vue-ui-rings-DhyrjrZi.js +884 -0
  134. package/dist/vue-ui-scatter-DKCD70mi.js +1619 -0
  135. package/dist/{vue-ui-skeleton-DsrlMELy.js → vue-ui-skeleton-CzzdmraB.js} +3 -3
  136. package/dist/{vue-ui-smiley-P_8WIBDD.js → vue-ui-smiley-OYyM-ukP.js} +2 -2
  137. package/dist/vue-ui-spark-trend-BMTcxeCT.js +364 -0
  138. package/dist/vue-ui-sparkbar-DVk1JiPL.js +381 -0
  139. package/dist/vue-ui-sparkgauge-Cq9Nw_xu.js +260 -0
  140. package/dist/vue-ui-sparkhistogram-PFHlCE_k.js +411 -0
  141. package/dist/vue-ui-sparkline-BHHwO_cV.js +549 -0
  142. package/dist/vue-ui-sparkstackbar-BosVkkiC.js +470 -0
  143. package/dist/vue-ui-stackbar-Djk5CPUy.js +1867 -0
  144. package/dist/vue-ui-stackline-mU4CSol9.js +1963 -0
  145. package/dist/{vue-ui-strip-plot-CTtivaxm.js → vue-ui-strip-plot-CZQSL0GK.js} +343 -314
  146. package/dist/{vue-ui-table-CHt3AQiq.js → vue-ui-table-DMM090pe.js} +5 -5
  147. package/dist/vue-ui-table-heatmap-vQEFrjCX.js +307 -0
  148. package/dist/{vue-ui-table-sparkline-D5MckwMl.js → vue-ui-table-sparkline-CQJc0mJY.js} +292 -263
  149. package/dist/vue-ui-thermometer-D1uxoVeZ.js +613 -0
  150. package/dist/{vue-ui-timer-B-Xa6ALH.js → vue-ui-timer-jTnS3ES5.js} +25 -25
  151. package/dist/vue-ui-tiremarks-Bv-oIFVV.js +477 -0
  152. package/dist/vue-ui-treemap-B9MVtunp.js +1359 -0
  153. package/dist/{vue-ui-vertical-bar-D9XQe_ud.js → vue-ui-vertical-bar-BSbDj5qZ.js} +520 -485
  154. package/dist/{vue-ui-waffle-Bk98w86A.js → vue-ui-waffle-DIALVfvc.js} +376 -347
  155. package/dist/vue-ui-wheel-aUhrFpGk.js +690 -0
  156. package/dist/vue-ui-word-cloud-DZmMWsUu.js +904 -0
  157. package/dist/{vue-ui-world-xOY__pp8.js → vue-ui-world-CVLlgp2f.js} +57 -57
  158. package/dist/vue-ui-xy-Cy7mOurZ.js +3455 -0
  159. package/dist/vue-ui-xy-canvas-Cr13t9M5.js +1599 -0
  160. package/dist/vue_ui_vertical_bar-CELc39b8.js +18 -0
  161. package/package.json +5 -5
  162. package/dist/themes-DH-N_ePR.js +0 -54
  163. package/dist/vue-ui-age-pyramid-DsOlpJBh.js +0 -933
  164. package/dist/vue-ui-bullet-Ci4lO4_W.js +0 -630
  165. package/dist/vue-ui-chord-BKC--Nbq.js +0 -1153
  166. package/dist/vue-ui-circle-pack-B3sfU0Vo.js +0 -803
  167. package/dist/vue-ui-donut-evolution-BqUzmyW2.js +0 -1208
  168. package/dist/vue-ui-dumbbell-CWKTrzsm.js +0 -1231
  169. package/dist/vue-ui-flow-SMbuDPdL.js +0 -991
  170. package/dist/vue-ui-funnel-3fRlMBzq.js +0 -716
  171. package/dist/vue-ui-galaxy-CFZ1xYD5.js +0 -808
  172. package/dist/vue-ui-gauge-DJpbjfpL.js +0 -835
  173. package/dist/vue-ui-history-plot-CvPMx5Lg.js +0 -1204
  174. package/dist/vue-ui-molecule-CasngKZI.js +0 -753
  175. package/dist/vue-ui-mood-radar-DGz2TQi4.js +0 -903
  176. package/dist/vue-ui-nested-donuts-Bjjz2sWG.js +0 -1419
  177. package/dist/vue-ui-onion-DwTIY6i1.js +0 -915
  178. package/dist/vue-ui-parallel-coordinate-plot-DedxvtPN.js +0 -1051
  179. package/dist/vue-ui-radar-D1rz2RnH.js +0 -984
  180. package/dist/vue-ui-relation-circle-DUfRwwo1.js +0 -641
  181. package/dist/vue-ui-ridgeline-DKPWMWRc.js +0 -1273
  182. package/dist/vue-ui-rings-BY0EQGLb.js +0 -855
  183. package/dist/vue-ui-scatter-ky9p5Pgh.js +0 -1590
  184. package/dist/vue-ui-spark-trend-DkJn_3FI.js +0 -337
  185. package/dist/vue-ui-sparkbar-qB1fmgej.js +0 -352
  186. package/dist/vue-ui-sparkgauge-BezFN_Rc.js +0 -233
  187. package/dist/vue-ui-sparkhistogram-DGt5b8FR.js +0 -384
  188. package/dist/vue-ui-sparkline-D7Wx1ejg.js +0 -514
  189. package/dist/vue-ui-sparkstackbar-DtO7-yim.js +0 -441
  190. package/dist/vue-ui-stackbar-Dr48I48D.js +0 -1832
  191. package/dist/vue-ui-stackline-Juns5Yh4.js +0 -1928
  192. package/dist/vue-ui-table-heatmap-Cn-56b5F.js +0 -282
  193. package/dist/vue-ui-thermometer-BOidpwAZ.js +0 -584
  194. package/dist/vue-ui-tiremarks-BsTyVS2P.js +0 -450
  195. package/dist/vue-ui-treemap-BWTaY91B.js +0 -1330
  196. package/dist/vue-ui-wheel-nj73b_Dc.js +0 -663
  197. package/dist/vue-ui-word-cloud-Dcaogr-D.js +0 -875
  198. package/dist/vue-ui-xy-BT67faLv.js +0 -3424
  199. package/dist/vue-ui-xy-canvas-BoB7-4QK.js +0 -1564
@@ -0,0 +1,1619 @@
1
+ import { defineAsyncComponent as ue, computed as D, ref as $, toRefs as _l, watch as Fe, shallowRef as Dt, onMounted as Ml, onBeforeUnmount as Bl, createElementBlock as c, openBlock as i, unref as y, normalizeStyle as ie, normalizeClass as Ft, createBlock as se, createCommentVNode as b, createElementVNode as C, createVNode as we, withCtx as T, renderSlot as F, normalizeProps as K, guardReactiveProps as Q, createSlots as zt, Fragment as Z, renderList as le, toDisplayString as G, Teleport as Sl, resolveDynamicComponent as Ll, mergeProps as Tl, createTextVNode as Et, nextTick as Dl } from "vue";
2
+ import { c as Fl, t as zl, i as El, p as de, o as Pt, g as Ke, j as Pl, k as Ot, ae as Ol, l as Qe, ag as Nl, z as Wl, s as ze, X as Il, af as Xl, a as ve, M as q, d as oe, u as Yl, q as Rl, x as jl, R as Ul } from "./lib-C5BH09_g.js";
3
+ import { t as Vl, u as Gl } from "./useResponsive-DfdjqQps.js";
4
+ import { u as ql, a as et } from "./useNestedProp-CWo6bftQ.js";
5
+ import { u as Hl, B as Zl } from "./BaseScanner-BgWxam9d.js";
6
+ import { u as Jl } from "./usePrinter-DCJzEiS8.js";
7
+ import { u as Kl } from "./useSvgExport-DrjCWun4.js";
8
+ import { u as Ql } from "./useThemeCheck-DGJ31Vi5.js";
9
+ import { u as eo } from "./useUserOptionState-BIvW1Kz7.js";
10
+ import { u as to } from "./useChartAccessibility-9icAAmYg.js";
11
+ import lo from "./Legend-Web3GjlR.js";
12
+ import oo from "./Title-DfFUb9hd.js";
13
+ import { _ as tt } from "./Shape-DE6X_t31.js";
14
+ import ao from "./img-DUzJeMlr.js";
15
+ import { _ as so } from "./_plugin-vue_export-helper-CHgC5LLL.js";
16
+ const Nt = { style: { backgroundColor: "#1A1A1A", color: "#CCCCCC", layout: { axis: { stroke: "#5A5A5A" }, marginalBars: { fill: "#5A5A5A" }, plots: { stroke: "#1A1A1A", selectors: { stroke: "#5A5A5A", labels: { color: "#CCCCCC" }, markers: { stroke: "#1A1A1A", fill: "#5A5A5A" } } }, correlation: { label: { color: "#CCCCCC" } }, dataLabels: { xAxis: { color: "#CCCCCC" }, yAxis: { color: "#CCCCCC" } } }, legend: { backgroundColor: "#1A1A1A", color: "#CCCCCC" }, title: { color: "#CCCCCC", subtitle: { color: "#757575" } }, tooltip: { backgroundColor: "#1A1A1A", backgroundOpacity: 70, color: "#CCCCCC", borderColor: "#5A5A5A" } }, table: { th: { backgroundColor: "#1A1A1A", color: "#CCCCCC" }, td: { backgroundColor: "#1A1A1A", color: "#CCCCCC" } } }, Wt = { style: { backgroundColor: "#FFF8E1", color: "#424242", layout: { axis: { stroke: "#5D403790" }, marginalBars: { fill: "#5D4037" }, plots: { stroke: "#FFF8E1", selectors: { stroke: "#5D4037", labels: { color: "#424242" }, markers: { stroke: "#FFF8E1", fill: "#D32F2F" } } }, correlation: { label: { color: "#424242" } }, dataLabels: { xAxis: { color: "#424242" }, yAxis: { color: "#424242" } } }, legend: { backgroundColor: "#FFF8E1", color: "#424242" }, title: { color: "#424242", subtitle: { color: "#757575" } }, tooltip: { backgroundColor: "#FFECB3", backgroundOpacity: 30, color: "#424242", borderColor: "#FF8A65" } }, table: { th: { backgroundColor: "#FFF8E1", color: "#424242" }, td: { backgroundColor: "#FFF8E1", color: "#424242" } } }, It = { style: { backgroundColor: "#1E1E1E", color: "#BDBDBD", layout: { axis: { stroke: "#5D4037" }, marginalBars: { fill: "#D32F2F" }, plots: { stroke: "#1E1E1E", selectors: { stroke: "#BDBDBD", labels: { color: "#BDBDBD" }, markers: { stroke: "#BDBDBD", fill: "#D32F2F" } } }, correlation: { label: { color: "#BDBDBD" } }, dataLabels: { xAxis: { color: "#BDBDBD" }, yAxis: { color: "#BDBDBD" } } }, legend: { backgroundColor: "#1E1E1E", color: "#BDBDBD" }, title: { color: "#FFF8E1", subtitle: { color: "#BDBDBD" } }, tooltip: { backgroundColor: "#1E1E1E", backgroundOpacity: 30, color: "#FFF8E1", borderColor: "#FF8A65" } }, table: { th: { backgroundColor: "#1E1E1E", color: "#BDBDBD" }, td: { backgroundColor: "#1E1E1E", color: "#BDBDBD" } } }, Xt = { style: { backgroundColor: "#1A1A1A", color: "#99AA99", layout: { axis: { stroke: "#334C33" }, marginalBars: { fill: "#66CC66" }, plots: { stroke: "#1A1A1A", selectors: { stroke: "#66CC66", labels: { color: "#AACCAA" }, markers: { stroke: "#66CC66", fill: "#1A1A1A" } } }, correlation: { label: { color: "#AACCAA" } }, dataLabels: { xAxis: { color: "#AACCAA" }, yAxis: { color: "#AACCAA" } } }, legend: { backgroundColor: "#1A1A1A", color: "#99AA99" }, title: { color: "#66CC66", subtitle: { color: "#99AA99" } }, tooltip: { backgroundColor: "#2A2F2A", color: "#AACCAA", borderColor: "#66CC66" } }, table: { th: { backgroundColor: "#1A1A1A", color: "#99AA99" }, td: { backgroundColor: "#1A1A1A", color: "#AACCAA" } } }, Yt = { style: { backgroundColor: "#fbfafa", color: "#8A9892", layout: { axis: { stroke: "transparent" }, marginalBars: { fill: "#B0B9A8" }, plots: { stroke: "#fbfafa", selectors: { stroke: "#4F5B75", labels: { color: "#928A98" }, markers: { stroke: "#4F5B75", fill: "#fbfafa" } } }, correlation: { label: { color: "#928A98" } }, dataLabels: { xAxis: { color: "#928A98" }, yAxis: { color: "#928A98" } } }, legend: { backgroundColor: "#fbfafa", color: "#99AA99" }, title: { color: "#8A9892", subtitle: { color: "#99AA99" } }, tooltip: { backgroundColor: "#fbfafa", color: "#8A9892" } }, table: { th: { backgroundColor: "#fbfafa", color: "#8F837A" }, td: { backgroundColor: "#fbfafa", color: "#8F837A" } } }, Rt = { style: { backgroundColor: "#f6f6fb", color: "#50606C", layout: { axis: { stroke: "#92B0B5" }, marginalBars: { fill: "#ABB1BC" }, plots: { stroke: "#fbfafa", selectors: { stroke: "#4F5B75", labels: { color: "#404C4D" }, markers: { stroke: "#4F5B75", fill: "#f6f6fb" } } }, correlation: { label: { color: "#61747E" } }, dataLabels: { xAxis: { color: "#61747E" }, yAxis: { color: "#61747E" } } }, legend: { backgroundColor: "#f6f6fb", color: "#61747E" }, title: { color: "#50606C", subtitle: { color: "#718890" } }, tooltip: { backgroundColor: "#f6f6fb", color: "#50606C" } }, table: { th: { backgroundColor: "#f6f6fb", color: "#50606C" }, td: { backgroundColor: "#f6f6fb", color: "#50606C" } } }, jt = {
17
+ default: {},
18
+ dark: Nt,
19
+ celebration: Wt,
20
+ celebrationNight: It,
21
+ hack: Xt,
22
+ zen: Yt,
23
+ concrete: Rt
24
+ }, Pa = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
25
+ __proto__: null,
26
+ celebration: Wt,
27
+ celebrationNight: It,
28
+ concrete: Rt,
29
+ dark: Nt,
30
+ default: jt,
31
+ hack: Xt,
32
+ zen: Yt
33
+ }, Symbol.toStringTag, { value: "Module" })), no = ["id"], ro = ["id"], uo = ["xmlns", "viewBox"], io = ["width", "height"], vo = { key: 1 }, co = ["x1", "x2", "y1", "y2", "stroke", "stroke-width"], yo = ["x1", "x2", "y1", "y2", "stroke", "stroke-width"], ho = { key: 2 }, fo = ["id"], go = ["stop-color"], po = ["stop-color"], mo = ["id"], bo = ["stop-color"], ko = ["stop-color"], xo = ["x", "y", "width", "height", "fill", "stroke", "stroke-width", "rx"], Co = ["x", "y", "width", "height", "onMouseenter"], Ao = {
34
+ key: 2,
35
+ style: { "pointer-events": "none" }
36
+ }, wo = ["x", "y", "width", "height", "fill", "fill-opacity"], $o = ["x1", "x2", "y2", "stroke", "stroke-dasharray", "stroke-width"], _o = ["x1", "x2", "y2", "stroke", "stroke-dasharray", "stroke-width"], Mo = ["x", "y", "height", "width", "fill", "stroke", "stroke-width", "rx"], Bo = ["x", "y", "width", "height", "onMouseenter"], So = {
37
+ key: 2,
38
+ style: { "pointer-events": "none" }
39
+ }, Lo = ["x", "y", "width", "height", "fill", "fill-opacity"], To = ["x1", "x2", "y1", "y2", "stroke", "stroke-dasharray", "stroke-width"], Do = ["x1", "x2", "y1", "y2", "stroke", "stroke-dasharray", "stroke-width"], Fo = {
40
+ key: 0,
41
+ style: { "pointer-events": "none" }
42
+ }, zo = ["d", "stroke", "stroke-width"], Eo = ["d", "stroke", "stroke-width"], Po = ["d", "stroke", "stroke-width"], Oo = ["d", "stroke", "stroke-width"], No = { key: 3 }, Wo = ["points", "fill", "stroke-width", "stroke-dasharray", "stroke"], Io = { key: 0 }, Xo = ["cx", "cy", "r", "fill", "stroke", "stroke-width", "onMouseover", "onMouseleave", "onClick"], Yo = { key: 1 }, Ro = ["clip-path"], jo = ["d", "fill", "stroke", "stroke-width", "stroke-opacity"], Uo = {
43
+ key: 0,
44
+ style: { "pointer-events": "none" }
45
+ }, Vo = ["x", "y", "width", "height"], Go = {
46
+ key: 6,
47
+ style: { "pointer-events": "none !important" }
48
+ }, qo = ["x1", "x2", "y1", "y2", "stroke", "stroke-width", "stroke-dasharray"], Ho = ["x1", "x2", "y1", "y2", "stroke", "stroke-width", "stroke-dasharray"], Zo = ["x", "y", "font-size", "fill", "font-weight", "text-anchor"], Jo = ["x", "y", "font-size", "fill", "font-weight"], Ko = ["cx", "cy", "r", "fill", "stroke", "stroke-width"], Qo = ["cx", "cy", "r", "fill", "stroke", "stroke-width"], ea = ["x", "y", "font-size", "fill", "font-weight", "text-anchor"], ta = ["id", "transform", "font-size", "font-weight", "fill"], la = ["font-size", "fill", "transform"], oa = ["transform", "font-size", "fill"], aa = ["x", "y", "font-size", "fill"], sa = ["x", "y", "font-size", "fill"], na = ["font-size", "font-weight", "fill", "x", "y"], ra = ["id"], ua = ["x", "y", "width", "height"], ia = {
49
+ key: 11,
50
+ style: { pointerEvents: "none" }
51
+ }, va = ["x1", "x2", "y1", "y2", "stroke-dasharray", "stroke", "stroke-width", "clip-path"], ca = ["x", "y", "fill", "font-size", "font-weight"], ya = {
52
+ key: 4,
53
+ class: "vue-data-ui-watermark"
54
+ }, da = ["id"], ha = ["onClick"], fa = {
55
+ key: 0,
56
+ style: { width: "100%", display: "flex", "align-items": "center", "justify-content": "center" }
57
+ }, ga = {
58
+ viewBox: "0 0 20 20",
59
+ height: "20",
60
+ width: "20",
61
+ style: { overflow: "hidden", background: "transparent" }
62
+ }, pa = { key: 0 }, ma = ["innerHTML"], ba = {
63
+ __name: "vue-ui-scatter",
64
+ props: {
65
+ config: {
66
+ type: Object,
67
+ default() {
68
+ return {};
69
+ }
70
+ },
71
+ dataset: {
72
+ type: Array,
73
+ default() {
74
+ return [];
75
+ }
76
+ }
77
+ },
78
+ setup(Ut, { expose: Vt }) {
79
+ const Gt = ue(() => import("./Tooltip-WD0Ros6G.js")), qt = ue(() => import("./BaseIcon-CofSxalQ.js")), Ht = ue(() => import("./vue-ui-accordion-DSdZUn2C.js")), Zt = ue(() => import("./DataTable-CHaOCmsE.js")), Jt = ue(() => import("./PenAndPaper-HCZQTkqi.js")), Kt = ue(() => import("./UserOptions-B3I-s3Lw.js")), Qt = ue(() => import("./PackageVersion-Bq_mtsqr.js")), el = ue(() => import("./BaseDraggableDialog-CRF94NJQ.js")), { vue_ui_scatter: tl } = ql(), { isThemeValid: ll, warnInvalidTheme: ol } = Ql(), ee = Ut, lt = D(() => !!ee.dataset && ee.dataset.length), X = $(Fl()), Ee = $(!1), Pe = $(""), ot = $(0), ae = $(null), at = $(null), st = $(null), nt = $(null), rt = $(null), ut = $(0), it = $(0), vt = $(0), W = $([]), ct = $(!1), pe = $(null), me = $(null), be = $(null), Oe = $(null), Ne = $(null), al = $(null), sl = $(null), We = $(null), e = $(Re());
80
+ function nl(l = 100, o = 0.8, t = {}) {
81
+ const { meanX: a = 0, sdX: s = 1, meanY: r = 0, sdY: u = 1, seed: f } = t;
82
+ let v = (f ?? Math.floor(Math.random() * 2 ** 31)) >>> 0;
83
+ const p = () => (v = v * 1664525 + 1013904223 >>> 0, v / 2 ** 32), S = () => {
84
+ let m = 0, N = 0;
85
+ for (; m === 0; ) m = p();
86
+ for (; N === 0; ) N = p();
87
+ return Math.sqrt(-2 * Math.log(m)) * Math.cos(2 * Math.PI * N);
88
+ }, d = l / 2, w = Array.from({ length: d }, S), O = Array.from({ length: d }, S), _ = (m) => m.reduce((N, Ae) => N + Ae, 0) / m.length, z = _(w), Y = _(O);
89
+ for (let m = 0; m < d; m += 1)
90
+ w[m] -= z, O[m] -= Y;
91
+ const L = (m, N) => m.reduce((Ae, De, Je) => Ae + De * N[Je], 0), A = (m) => L(m, m), h = L(O, w) / A(w), B = O.map((m, N) => m - h * w[N]), V = A(w) / d, J = A(B) / d, re = Math.sqrt((1 - o * o) * V / J), j = w.map((m, N) => o * m + re * B[N]), ye = w.concat(w.map((m) => -m)), Ze = j.concat(j.map((m) => -m)), xe = (m) => Math.sqrt(A(m) / m.length), fe = (m, N, Ae) => {
92
+ const De = xe(m);
93
+ return m.map((Je) => Ae + (De ? Je / De * N : 0));
94
+ }, ge = fe(ye, s, a), Ce = fe(Ze, u, r);
95
+ for (let m = ge.length - 1; m > 0; m -= 1) {
96
+ const N = Math.floor(p() * (m + 1));
97
+ [ge[m], ge[N]] = [ge[N], ge[m]], [Ce[m], Ce[N]] = [Ce[N], Ce[m]];
98
+ }
99
+ return ge.map((m, N) => ({ x: m, y: Ce[N] }));
100
+ }
101
+ const { loading: yt, FINAL_DATASET: Ie, manualLoading: Xe } = Hl({
102
+ ..._l(ee),
103
+ FINAL_CONFIG: e,
104
+ prepareConfig: Re,
105
+ skeletonDataset: [
106
+ {
107
+ name: "",
108
+ color: "#999999",
109
+ values: nl(100, 0.5, { seed: 42 })
110
+ }
111
+ ],
112
+ skeletonConfig: zl({
113
+ defaultConfig: e.value,
114
+ userConfig: {
115
+ userOptions: { show: !1 },
116
+ table: { show: !1 },
117
+ useCssAnimation: !1,
118
+ style: {
119
+ backgroundColor: "#99999930",
120
+ layout: {
121
+ axis: {
122
+ stroke: "#6A6A6A"
123
+ },
124
+ correlation: {
125
+ label: { show: !1 }
126
+ },
127
+ dataLabels: {
128
+ xAxis: { show: !1 },
129
+ yAxis: { show: !1 }
130
+ },
131
+ marginalBars: {
132
+ fill: "#99999960"
133
+ },
134
+ padding: { top: 12, right: 12, bottom: 12, left: 12 },
135
+ plots: {
136
+ stroke: "#6A6A6A"
137
+ }
138
+ },
139
+ legend: {
140
+ backgroundColor: "transparent"
141
+ }
142
+ }
143
+ }
144
+ })
145
+ }), { userOptionsVisible: Ye, setUserOptionsVisibility: dt, keepUserOptionState: ht } = eo({ config: e.value }), { svgRef: $e } = to({ config: e.value.style.title });
146
+ function Re() {
147
+ const l = et({
148
+ userConfig: ee.config,
149
+ defaultConfig: tl
150
+ }), o = l.theme;
151
+ if (!o) return l;
152
+ if (!ll.value(l))
153
+ return ol(l), l;
154
+ const t = et({
155
+ userConfig: jt[o] || ee.config,
156
+ defaultConfig: l
157
+ }), a = et({
158
+ userConfig: ee.config,
159
+ defaultConfig: t
160
+ });
161
+ return {
162
+ ...a,
163
+ customPalette: a.customPalette.length ? a.customPalette : El[o] || de
164
+ };
165
+ }
166
+ Fe(() => ee.config, (l) => {
167
+ yt.value || (e.value = Re()), Ye.value = !e.value.userOptions.showOnChartHover, gt(), ut.value += 1, it.value += 1, vt.value += 1, H.value.showTable = e.value.table.show, H.value.showTooltip = e.value.style.tooltip.show, ft.value && e.value.usePerformanceMode && console.warn(`VueUiScatter : You are using performance mode
168
+
169
+ - downsampling is disabled in this mode, all plots are rendered
170
+
171
+ - plot significance is not active in this mode (all plots have the same opacity)
172
+
173
+ - Depending on plot density, shapes might not display a border (stroke) to avoid fuzziness
174
+
175
+ ℹ️ To remove this warning, set config.debug to false.`);
176
+ }, { deep: !0 }), Fe(() => ee.dataset, (l) => {
177
+ Array.isArray(l) && l.length > 0 && (Xe.value = !1);
178
+ }, { deep: !0 });
179
+ const ne = Dt(null), he = Dt(null);
180
+ Ml(() => {
181
+ ct.value = !0, gt();
182
+ });
183
+ const ft = D(() => !!e.value.debug);
184
+ function gt() {
185
+ if (Pt(ee.dataset) && (Ke({
186
+ componentName: "VueUiScatter",
187
+ type: "dataset",
188
+ debug: ft.value
189
+ }), Xe.value = !0), Pt(ee.dataset) || (Xe.value = e.value.loading), e.value.responsive) {
190
+ const l = Vl(() => {
191
+ const { width: o, height: t } = Gl({
192
+ chart: ae.value,
193
+ title: e.value.style.title.text ? at.value : null,
194
+ legend: e.value.style.legend.show ? st.value : null,
195
+ source: nt.value,
196
+ noTitle: rt.value
197
+ });
198
+ requestAnimationFrame(() => {
199
+ I.value.width = o, I.value.height = t;
200
+ });
201
+ });
202
+ ne.value && (he.value && ne.value.unobserve(he.value), ne.value.disconnect()), ne.value = new ResizeObserver(l), he.value = ae.value.parentNode, ne.value.observe(he.value);
203
+ }
204
+ }
205
+ Bl(() => {
206
+ ne.value && (he.value && ne.value.unobserve(he.value), ne.value.disconnect());
207
+ });
208
+ const { isPrinting: pt, isImaging: mt, generatePdf: bt, generateImage: kt } = Jl({
209
+ elementId: `vue-ui-scatter_${X.value}`,
210
+ fileName: e.value.style.title.text || "vue-ui-scatter",
211
+ options: e.value.userOptions.print
212
+ }), rl = D(() => e.value.userOptions.show && !e.value.style.title.text), xt = D(() => Pl(e.value.customPalette)), H = $({
213
+ showTable: e.value.table.show,
214
+ showTooltip: e.value.style.tooltip.show
215
+ });
216
+ Fe(e, () => {
217
+ H.value = {
218
+ showTable: e.value.table.show,
219
+ showTooltip: e.value.style.tooltip.show
220
+ };
221
+ }, { immediate: !0 });
222
+ const I = $({
223
+ height: e.value.style.layout.height,
224
+ width: e.value.style.layout.width
225
+ }), _e = D(() => e.value.style.layout.marginalBars.show ? e.value.style.layout.marginalBars.size + e.value.style.layout.marginalBars.offset : 0), n = D(() => {
226
+ let l = 0, o = 0;
227
+ return Ne.value && (l = Ne.value.getBBox().width + 6), We.value && (o = We.value.getBBox().height + 6), {
228
+ top: e.value.style.layout.padding.top + _e.value + e.value.style.layout.dataLabels.yAxis.fontSize * 2,
229
+ right: I.value.width - e.value.style.layout.padding.right - _e.value - 6,
230
+ bottom: I.value.height - e.value.style.layout.padding.bottom - o,
231
+ left: e.value.style.layout.padding.left + l,
232
+ height: I.value.height - e.value.style.layout.padding.top - e.value.style.layout.padding.bottom - _e.value - o - e.value.style.layout.dataLabels.yAxis.fontSize * 2,
233
+ width: I.value.width - e.value.style.layout.padding.left - e.value.style.layout.padding.right - _e.value - l - 6
234
+ };
235
+ }), E = D(() => {
236
+ Ie.value.forEach((s, r) => {
237
+ Ot({
238
+ datasetObject: s,
239
+ requiredAttributes: ["values"]
240
+ }).forEach((u) => {
241
+ Ke({
242
+ componentName: "VueUiScatter",
243
+ type: "datasetSerieAttribute",
244
+ property: u,
245
+ index: r
246
+ });
247
+ }), s.values && s.values.forEach((u, f) => {
248
+ Ot({
249
+ datasetObject: u,
250
+ requiredAttributes: ["x", "y"]
251
+ }).forEach((v) => {
252
+ Ke({
253
+ componentName: "VueUiScatter",
254
+ type: "datasetSerieAttribute",
255
+ property: `values.${v}`,
256
+ index: `${r} - ${f}`
257
+ });
258
+ });
259
+ });
260
+ });
261
+ const l = Math.min(...te.value.filter((s) => !W.value.includes(s.id)).flatMap((s) => s.values.map((r) => r.x))), o = Math.max(...te.value.filter((s) => !W.value.includes(s.id)).flatMap((s) => s.values.map((r) => r.x))), t = Math.min(...te.value.filter((s) => !W.value.includes(s.id)).flatMap((s) => s.values.map((r) => r.y))), a = Math.max(...te.value.filter((s) => !W.value.includes(s.id)).flatMap((s) => s.values.map((r) => r.y)));
262
+ return { xMin: l >= 0 ? 0 : l, xMax: o, yMin: t >= 0 ? 0 : t, yMax: a };
263
+ }), P = D(() => ({
264
+ x: n.value.left + Math.abs(E.value.xMin) / (E.value.xMax + Math.abs(E.value.xMin)) * n.value.width,
265
+ y: n.value.bottom - Math.abs(E.value.yMin) / (E.value.yMax + Math.abs(E.value.yMin)) * n.value.height
266
+ })), te = D(() => Ie.value.map((l, o) => {
267
+ const t = `cluster_${X.value}_${o}`;
268
+ return {
269
+ ...l,
270
+ values: Ol({
271
+ data: l.values,
272
+ threshold: e.value.usePerformanceMode ? l.values.length + 1 : e.value.downsample.threshold
273
+ }),
274
+ id: t,
275
+ color: l.color ? l.color : xt.value[o] || de[o] || de[o % de.length],
276
+ opacity: W.value.includes(t) ? 0.5 : 1,
277
+ shape: l.shape ?? "circle",
278
+ segregate: () => Se(t),
279
+ isSegregated: W.value.includes(t)
280
+ };
281
+ })), ul = D(() => ({
282
+ cy: "scatter-div-legend",
283
+ backgroundColor: e.value.style.legend.backgroundColor,
284
+ color: e.value.style.legend.color,
285
+ fontSize: e.value.style.legend.fontSize,
286
+ paddingBottom: 12,
287
+ fontWeight: e.value.style.legend.bold ? "bold" : ""
288
+ })), Me = D(() => te.value.map((l, o) => ({
289
+ ...l,
290
+ plots: l.values.map((t) => ({
291
+ x: n.value.left + (t.x + Math.abs(E.value.xMin)) / (E.value.xMax + Math.abs(E.value.xMin)) * n.value.width,
292
+ y: n.value.bottom - (t.y + Math.abs(E.value.yMin)) / (E.value.yMax + Math.abs(E.value.yMin)) * n.value.height,
293
+ v: {
294
+ ...t,
295
+ name: t.name || ""
296
+ },
297
+ clusterName: l.name,
298
+ color: l.color ? l.color : xt.value[o] || de[o] || de[o % de.length],
299
+ id: `plot_${X.value}_${Math.random()}`,
300
+ weight: t.weight ?? e.value.style.layout.plots.radius
301
+ }))
302
+ })).filter((l) => !W.value.includes(l.id))), U = D(() => {
303
+ const o = ({ m: t, b: a, rect: s, verticalX: r = null }) => {
304
+ const { left: u, right: f, top: v, bottom: p } = s, S = [], d = (A, h) => {
305
+ Number.isFinite(A) && Number.isFinite(h) && S.push({ x: A, y: h });
306
+ }, w = ({ x: A, y: h }) => A >= u - 1e-9 && A <= f + 1e-9 && h >= v - 1e-9 && h <= p + 1e-9;
307
+ r !== null ? r >= u - 1e-9 && r <= f + 1e-9 && (d(r, v), d(r, p)) : Number.isFinite(t) && (d(u, t * u + a), d(f, t * f + a), Math.abs(t) > 1e-9 ? (d((v - a) / t, v), d((p - a) / t, p)) : a >= v - 1e-9 && a <= p + 1e-9 && (d(u, a), d(f, a)));
308
+ const O = S.filter(w), _ = [];
309
+ for (const A of O)
310
+ _.some((h) => Math.abs(h.x - A.x) < 1e-6 && Math.abs(h.y - A.y) < 1e-6) || _.push(A);
311
+ if (_.length < 2) return null;
312
+ let z = _[0], Y = _[1], L = 0;
313
+ for (let A = 0; A < _.length; A += 1)
314
+ for (let h = A + 1; h < _.length; h += 1) {
315
+ const B = _[A].x - _[h].x, V = _[A].y - _[h].y, J = B * B + V * V;
316
+ J > L && (L = J, z = _[A], Y = _[h]);
317
+ }
318
+ return { x1: z.x, y1: z.y, x2: Y.x, y2: Y.y };
319
+ };
320
+ return Me.value.map((t) => {
321
+ const a = t.plots.length, s = t.plots.reduce((h, B) => h + B.x, 0) / a, r = t.plots.reduce((h, B) => h + B.y, 0) / a;
322
+ let u = 0, f = 0;
323
+ for (const h of t.plots) {
324
+ const B = h.x - s, V = h.y - r;
325
+ u += B * V, f += B * B;
326
+ }
327
+ let v, p, S = null;
328
+ f < 1e-9 ? (S = s, v = 1 / 0, p = null) : (v = u / f, p = r - v * s);
329
+ let d, w;
330
+ S !== null ? (d = 1 / 0, w = null) : (d = v, w = p);
331
+ const O = t.plots.every((h) => h.v && typeof h.v.x == "number" && typeof h.v.y == "number");
332
+ let _ = NaN;
333
+ if (a >= 2) {
334
+ let h = 0, B = 0;
335
+ O ? (h = t.plots.reduce((j, ye) => j + ye.v.x, 0) / a, B = t.plots.reduce((j, ye) => j + ye.v.y, 0) / a) : (h = s, B = -r);
336
+ let V = 0, J = 0, re = 0;
337
+ for (const j of t.plots) {
338
+ const ye = O ? j.v.x : j.x, Ze = O ? j.v.y : -j.y, xe = ye - h, fe = Ze - B;
339
+ V += xe * fe, J += xe * xe, re += fe * fe;
340
+ }
341
+ if (J >= 1e-9 && re >= 1e-9) {
342
+ const j = V / Math.sqrt(J * re);
343
+ _ = Math.max(-1, Math.min(1, j));
344
+ }
345
+ }
346
+ const z = o({ m: d, b: w, rect: n.value, verticalX: S });
347
+ if (!z)
348
+ return {
349
+ ...t,
350
+ correlation: null,
351
+ label: null,
352
+ plots: t.plots.map((h) => ({
353
+ ...h,
354
+ deviation: 0,
355
+ shape: t.shape,
356
+ color: Qe(t.color)
357
+ }))
358
+ };
359
+ const Y = (z.x1 + z.x2) / 2, L = (z.y1 + z.y2) / 2, A = { x: Y, y: L };
360
+ return {
361
+ ...t,
362
+ color: Qe(t.color),
363
+ correlation: {
364
+ ...z,
365
+ coefficient: _
366
+ },
367
+ label: A,
368
+ plots: t.plots.map((h) => {
369
+ let B, V;
370
+ S !== null ? (B = S, V = h.y) : Math.abs(d) < 1e-9 ? (B = h.x, V = w) : (B = (h.x + d * h.y - d * w) / (1 + d * d), V = (d * h.x + d * d * h.y + w) / (1 + d * d));
371
+ const J = h.x - B, re = h.y - V, j = Math.sqrt(J * J + re * re);
372
+ return {
373
+ ...h,
374
+ deviation: j,
375
+ shape: t.shape,
376
+ color: Qe(t.color)
377
+ };
378
+ })
379
+ };
380
+ });
381
+ }), Ct = D(() => Math.max(...U.value.flatMap((l) => l.plots.map((o) => Math.abs(o.deviation)))));
382
+ function il() {
383
+ return U.value;
384
+ }
385
+ function At(l, o) {
386
+ const t = Array.isArray(l) ? l.flatMap((L) => L.plots.map((A) => ({
387
+ x: A.x,
388
+ y: A.y
389
+ }))) : l.plots.map((L) => ({
390
+ x: L.x,
391
+ y: L.y
392
+ }));
393
+ let a = 1 / 0, s = -1 / 0, r = 1 / 0, u = -1 / 0;
394
+ t.forEach(({ x: L, y: A }) => {
395
+ a = Math.min(a, L), s = Math.max(s, L), r = Math.min(r, A), u = Math.max(u, A);
396
+ });
397
+ const f = s - a, v = u - r, p = f / o, S = v / o, d = Array(o).fill(0), w = Array(o).fill(0);
398
+ t.forEach(({ x: L, y: A }) => {
399
+ const h = Math.floor((L - a) / p), B = Math.floor((A - r) / S);
400
+ d[h] || (d[h] = 0), w[B] || (w[B] = 0), d[h] += 1, w[B] += 1;
401
+ });
402
+ const O = [], _ = [];
403
+ for (let L = 0; L < o; L += 1)
404
+ O.push(a + (L + 0.5) * p), _.push(r + (L + 0.5) * S);
405
+ const z = Math.max(...d), Y = Math.max(...w);
406
+ return { x: d, y: w, avgX: O, avgY: _, maxX: z, maxY: Y };
407
+ }
408
+ const k = D(() => e.value.style.layout.marginalBars.tranches), M = D(() => At(Me.value, k.value)), vl = D(() => {
409
+ const l = n.value.top - e.value.style.layout.marginalBars.offset, o = n.value.right + e.value.style.layout.marginalBars.offset;
410
+ return Me.value.map((t) => {
411
+ const a = At(t, k.value);
412
+ return {
413
+ coords: a,
414
+ dX: Wl(a.avgX.map((s, r) => ({
415
+ x: s,
416
+ y: l - a.x[r] / a.maxX * e.value.style.layout.marginalBars.size
417
+ }))),
418
+ dY: Nl(a.avgY.map((s, r) => ({
419
+ y: s,
420
+ x: o + e.value.style.layout.marginalBars.size * a.y[r] / a.maxY
421
+ }))),
422
+ color: t.color,
423
+ id: t.id
424
+ };
425
+ });
426
+ }), R = $(void 0), g = $(null), je = $(null);
427
+ function Ue(l, o) {
428
+ R.value = l.id, g.value = l;
429
+ let t = "";
430
+ e.value.events.datapointEnter && e.value.events.datapointEnter({ datapoint: l, seriesIndex: o }), je.value = {
431
+ datapoint: l,
432
+ seriesIndex: o,
433
+ series: U.value,
434
+ config: e.value
435
+ };
436
+ const a = e.value.style.tooltip.customFormat;
437
+ jl(a) && Ul(() => a({
438
+ datapoint: l,
439
+ seriesIndex: o,
440
+ series: U.value,
441
+ config: e.value
442
+ })) ? Pe.value = a({
443
+ datapoint: l,
444
+ seriesIndex: o,
445
+ series: U.value,
446
+ config: e.value
447
+ }) : (l.clusterName && (t += `<div style="display:flex;gap:3px;align-items:center">${l.clusterName}</div>`), l.v.name && (t += `<div>${l.v.name}</div>`), t += `<div style="text-align:left;margin-top:6px;padding-top:6px;border-top:1px solid ${e.value.style.tooltip.borderColor}">`, t += `<div>${e.value.style.layout.dataLabels.xAxis.name}: <b>${isNaN(l.v.x) ? "-" : ve(
448
+ e.value.style.layout.plots.selectors.labels.x.formatter,
449
+ l.v.x,
450
+ oe({
451
+ p: e.value.style.tooltip.prefix,
452
+ v: l.v.x,
453
+ s: e.value.style.tooltip.suffix,
454
+ r: e.value.style.tooltip.roundingValue
455
+ }),
456
+ { datapoint: l, seriesIndex: o }
457
+ )}</b></div>`, t += `<div>${e.value.style.layout.dataLabels.yAxis.name}: <b>${isNaN(l.v.y) ? "-" : ve(
458
+ e.value.style.layout.plots.selectors.labels.y.formatter,
459
+ l.v.y,
460
+ oe({
461
+ p: e.value.style.tooltip.prefix,
462
+ v: l.v.y,
463
+ s: e.value.style.tooltip.suffix,
464
+ r: e.value.style.tooltip.roundingValue
465
+ }),
466
+ { datapoint: l, seriesIndex: o }
467
+ )}</b></div>`, t += `${e.value.style.layout.plots.deviation.translation}: <b>${oe({
468
+ v: l.deviation,
469
+ r: e.value.style.layout.plots.deviation.roundingValue
470
+ })}</b>`, t += "</div>", Pe.value = `<div>${t}</div>`), Ee.value = !0;
471
+ }
472
+ function Be(l, o) {
473
+ e.value.events.datapointLeave && e.value.events.datapointLeave({ datapoint: l, seriesIndex: o }), Ee.value = !1, R.value = void 0, g.value = null;
474
+ }
475
+ function Ve(l, o) {
476
+ e.value.events.datapointClick && e.value.events.datapointClick({ datapoint: l, seriesIndex: o });
477
+ }
478
+ function Se(l) {
479
+ W.value.includes(l) ? W.value = W.value.filter((o) => o !== l) : W.value.length < Ie.value.length - 1 && W.value.push(l);
480
+ }
481
+ function wt(l) {
482
+ if (!te.value.length)
483
+ return e.value.debug && console.warn("VueUiScatter - There are no series to show."), null;
484
+ const o = te.value.find((t) => t.name === l);
485
+ return o || (e.value.debug && console.warn(`VueUiScatter - Series name not found "${l}"`), null);
486
+ }
487
+ function cl(l) {
488
+ const o = wt(l);
489
+ o !== null && W.value.includes(o.id) && Se(o.id);
490
+ }
491
+ function yl(l) {
492
+ const o = wt(l);
493
+ o !== null && (W.value.includes(o.id) || Se(o.id));
494
+ }
495
+ function Ge(l = null) {
496
+ Dl(() => {
497
+ const o = ["", e.value.table.translations.correlationCoefficient, e.value.table.translations.nbrPlots, `${e.value.style.layout.dataLabels.xAxis.name} ${e.value.table.translations.average}`, `${e.value.style.layout.dataLabels.yAxis.name} ${e.value.table.translations.average}`], t = U.value.map((r) => [
498
+ r.name,
499
+ r.correlation.coefficient,
500
+ r.plots.length,
501
+ r.plots.map((u) => u.v.x).reduce((u, f) => u + f, 0) / r.plots.length,
502
+ r.plots.map((u) => u.v.y).reduce((u, f) => u + f, 0) / r.plots.length
503
+ ]), a = [[e.value.style.title.text], [e.value.style.title.subtitle.text], [[""], [""], [""]]].concat([o]).concat(t), s = Yl(a);
504
+ l ? l(s) : Rl({ csvContent: s, title: e.value.style.title.text || "vue-ui-heatmap" });
505
+ });
506
+ }
507
+ const Le = D(() => {
508
+ const l = [
509
+ e.value.table.translations.series,
510
+ e.value.table.translations.correlationCoefficient,
511
+ e.value.table.translations.nbrPlots,
512
+ `${e.value.style.layout.dataLabels.xAxis.name} ${e.value.table.translations.average}`,
513
+ `${e.value.style.layout.dataLabels.yAxis.name} ${e.value.table.translations.average}`
514
+ ], o = U.value.map((a) => [
515
+ {
516
+ shape: a.shape,
517
+ content: a.name,
518
+ color: a.color
519
+ },
520
+ Number((a.correlation.coefficient ?? 0).toFixed(e.value.table.td.roundingValue)).toLocaleString(),
521
+ a.plots.length.toLocaleString(),
522
+ Number((a.plots.map((s) => s.v.x ?? 0).reduce((s, r) => s + r, 0) / a.plots.length).toFixed(e.value.table.td.roundingAverage)).toLocaleString(),
523
+ Number((a.plots.map((s) => s.v.y ?? 0).reduce((s, r) => s + r, 0) / a.plots.length).toFixed(e.value.table.td.roundingAverage)).toLocaleString()
524
+ ]), t = {
525
+ th: {
526
+ backgroundColor: e.value.table.th.backgroundColor,
527
+ color: e.value.table.th.color,
528
+ outline: e.value.table.th.outline
529
+ },
530
+ td: {
531
+ backgroundColor: e.value.table.td.backgroundColor,
532
+ color: e.value.table.td.color,
533
+ outline: e.value.table.td.outline
534
+ },
535
+ breakpoint: e.value.table.responsiveBreakpoint
536
+ };
537
+ return { head: l, body: o, config: t, colNames: l };
538
+ }), ce = $(!1);
539
+ function $t(l) {
540
+ ce.value = l, ot.value += 1;
541
+ }
542
+ function _t() {
543
+ H.value.showTable = !H.value.showTable;
544
+ }
545
+ function Mt() {
546
+ H.value.showTooltip = !H.value.showTooltip;
547
+ }
548
+ const Te = $(!1);
549
+ function qe() {
550
+ Te.value = !Te.value;
551
+ }
552
+ async function dl({ scale: l = 2 } = {}) {
553
+ if (!ae.value) return;
554
+ const { width: o, height: t } = ae.value.getBoundingClientRect(), a = o / t, { imageUri: s, base64: r } = await ao({ domElement: ae.value, base64: !0, img: !0, scale: l });
555
+ return {
556
+ imageUri: s,
557
+ base64: r,
558
+ title: e.value.style.title.text,
559
+ width: o,
560
+ height: t,
561
+ aspectRatio: a
562
+ };
563
+ }
564
+ function hl(l) {
565
+ pe.value = l, e.value.style.layout.marginalBars.highlighter.highlightBothAxes && (me.value = M.value.y.length - 2 - l);
566
+ }
567
+ function fl(l) {
568
+ me.value = l, e.value.style.layout.marginalBars.highlighter.highlightBothAxes && (pe.value = l);
569
+ }
570
+ function He() {
571
+ pe.value = null, me.value = null;
572
+ }
573
+ const Bt = {
574
+ circle: 1,
575
+ square: 1,
576
+ diamond: 1,
577
+ triangle: 1.2,
578
+ star: 1.3,
579
+ pentagon: 1.3,
580
+ hexagon: 1.3
581
+ }, x = (l) => l.toFixed(3);
582
+ function gl({ shape: l = "circle", cx: o, cy: t, r: a }) {
583
+ if (!e.value.usePerformanceMode) return "";
584
+ const s = Bt[l] * a;
585
+ switch (l) {
586
+ case "circle": {
587
+ const r = x(o - s), u = x(t), f = x(o + s), v = x(s);
588
+ return `M ${r} ${u} A ${v} ${v} 0 1 0 ${f} ${u} A ${v} ${v} 0 1 0 ${r} ${u} Z`;
589
+ }
590
+ case "square": {
591
+ const r = x(o - s), u = x(t - s), f = x(o + s), v = x(t + s);
592
+ return `M ${r} ${u} L ${f} ${u} L ${f} ${v} L ${r} ${v} Z`;
593
+ }
594
+ case "diamond": {
595
+ const r = x(o), u = x(t);
596
+ return `M ${r} ${x(t - s)} L ${x(o + s)} ${u} L ${r} ${x(t + s)} L ${x(o - s)} ${u} Z`;
597
+ }
598
+ case "triangle": {
599
+ const r = s * Math.sqrt(3), u = o, f = t - 2 / 3 * r, v = o - s, p = t + 1 / 3 * r, S = o + s, d = p;
600
+ return `M ${x(u)} ${x(f)} L ${x(v)} ${x(p)} L ${x(S)} ${x(d)} Z`;
601
+ }
602
+ case "star": {
603
+ const r = s, u = s * 0.5, f = [];
604
+ for (let p = 0; p < 10; p += 1) {
605
+ const S = (-90 + p * 36) * Math.PI / 180, d = p % 2 === 0 ? r : u;
606
+ f.push([o + d * Math.cos(S), t + d * Math.sin(S)]);
607
+ }
608
+ let v = `M ${x(f[0][0])} ${x(f[0][1])}`;
609
+ for (let p = 1; p < f.length; p += 1)
610
+ v += ` L ${x(f[p][0])} ${x(f[p][1])}`;
611
+ return v + " Z";
612
+ }
613
+ case "pentagon": {
614
+ const u = [];
615
+ for (let v = 0; v < 5; v += 1) {
616
+ const p = (-90 + v * 72) * Math.PI / 180;
617
+ u.push([o + s * Math.cos(p), t + s * Math.sin(p)]);
618
+ }
619
+ let f = `M ${x(u[0][0])} ${x(u[0][1])}`;
620
+ for (let v = 1; v < 5; v += 1) f += ` L ${x(u[v][0])} ${x(u[v][1])}`;
621
+ return f + " Z";
622
+ }
623
+ case "hexagon": {
624
+ const u = [];
625
+ for (let v = 0; v < 6; v += 1) {
626
+ const p = (-60 + v * 60) * Math.PI / 180;
627
+ u.push([o + s * Math.cos(p), t + s * Math.sin(p)]);
628
+ }
629
+ let f = `M ${x(u[0][0])} ${x(u[0][1])}`;
630
+ for (let v = 1; v < 6; v += 1) f += ` L ${x(u[v][0])} ${x(u[v][1])}`;
631
+ return f + " Z";
632
+ }
633
+ default: {
634
+ const r = x(o - s), u = x(t), f = x(o + s), v = x(s);
635
+ return `M ${r} ${u} A ${v} ${v} 0 1 0 ${f} ${u} A ${v} ${v} 0 1 0 ${r} ${u} Z`;
636
+ }
637
+ }
638
+ }
639
+ const pl = D(() => {
640
+ if (!e.value.usePerformanceMode) return [""];
641
+ const { left: l, right: o, top: t, bottom: a } = n.value, s = Math.max(1, (o - l) * (a - t)), r = (d) => d / s * 1e4, u = 2.5, f = 1e3, v = e.value.style.layout.plots.stroke, p = e.value.style.layout.plots.strokeWidth, S = e.value.style.layout.plots.opacity;
642
+ return U.value.map((d) => {
643
+ const w = [];
644
+ for (const _ of d.plots) {
645
+ const z = _.x, Y = _.y;
646
+ if (z < l || z > o || Y < t || Y > a) continue;
647
+ const L = Math.max(e.value.style.layout.plots.radius, _.weight);
648
+ w.push(gl({
649
+ shape: d.shape || "circle",
650
+ cx: z,
651
+ cy: Y,
652
+ r: L
653
+ }));
654
+ }
655
+ if (!w.length) return null;
656
+ const O = r(d.plots.length) > u || d.plots.length > f;
657
+ return {
658
+ id: d.id,
659
+ d: w.join(""),
660
+ fill: ze(d.color, S * 100),
661
+ stroke: O ? "none" : v,
662
+ strokeWidth: O ? 0 : p,
663
+ strokeOpacity: 1
664
+ };
665
+ }).filter(Boolean);
666
+ });
667
+ function ml() {
668
+ return e.value.usePerformanceMode ? (l) => {
669
+ const o = $e.value;
670
+ if (!o) return;
671
+ const t = o.createSVGPoint();
672
+ t.x = l.clientX, t.y = l.clientY;
673
+ const a = o.getScreenCTM();
674
+ if (!a) return;
675
+ const s = a.inverse(), r = t.matrixTransform(s), u = 8, f = u * u;
676
+ let v = null, p = 1 / 0, S = -1;
677
+ if (U.value.forEach((d, w) => {
678
+ d.plots.forEach((O) => {
679
+ const _ = O.x - r.x, z = O.y - r.y, Y = _ * _ + z * z;
680
+ Y <= f && Y < p && (p = Y, v = O, S = w);
681
+ });
682
+ }), v)
683
+ R.value !== v.id && (R.value = v.id, Ue(v, S));
684
+ else if (R.value) {
685
+ const d = g.value;
686
+ R.value = void 0, Be(d, S);
687
+ }
688
+ } : () => null;
689
+ }
690
+ const St = ml();
691
+ function bl() {
692
+ if (R.value) {
693
+ const l = g.value;
694
+ R.value = void 0, Be(l, null);
695
+ }
696
+ }
697
+ function kl(l) {
698
+ const o = g.value;
699
+ if (o) {
700
+ const t = U.value.findIndex((a) => a.id === o.clusterId);
701
+ Ve(o, t >= 0 ? t : 0);
702
+ }
703
+ }
704
+ const ke = D(() => {
705
+ const l = e.value.table.useDialog && !e.value.table.show, o = H.value.showTable;
706
+ return {
707
+ component: l ? el : Ht,
708
+ title: `${e.value.style.title.text}${e.value.style.title.subtitle.text ? `: ${e.value.style.title.subtitle.text}` : ""}`,
709
+ props: l ? {
710
+ backgroundColor: e.value.table.th.backgroundColor,
711
+ color: e.value.table.th.color,
712
+ headerColor: e.value.table.th.color,
713
+ headerBg: e.value.table.th.backgroundColor,
714
+ isFullscreen: ce.value,
715
+ fullscreenParent: ae.value,
716
+ forcedWidth: Math.min(800, window.innerWidth * 0.8)
717
+ } : {
718
+ hideDetails: !0,
719
+ config: {
720
+ open: o,
721
+ maxHeight: 1e4,
722
+ body: {
723
+ backgroundColor: e.value.style.backgroundColor,
724
+ color: e.value.style.color
725
+ },
726
+ head: {
727
+ backgroundColor: e.value.style.backgroundColor,
728
+ color: e.value.style.color
729
+ }
730
+ }
731
+ }
732
+ };
733
+ });
734
+ Fe(() => H.value.showTable, (l) => {
735
+ e.value.table.show || (l && e.value.table.useDialog && be.value ? be.value.open() : "close" in be.value && be.value.close());
736
+ });
737
+ function Lt() {
738
+ H.value.showTable = !1, Oe.value && Oe.value.setTableIconState(!1);
739
+ }
740
+ const xl = D(() => e.value.style.backgroundColor), Cl = D(() => e.value.style.legend), Al = D(() => e.value.style.title), { exportSvg: wl, getSvg: $l } = Kl({
741
+ svg: $e,
742
+ title: Al,
743
+ legend: Cl,
744
+ legendItems: te,
745
+ backgroundColor: xl
746
+ });
747
+ async function Tt({ isCb: l }) {
748
+ if (l) {
749
+ const { blob: o, url: t, text: a, dataUrl: s } = await $l();
750
+ e.value.userOptions.callbacks.svg({ blob: o, url: t, text: a, dataUrl: s });
751
+ } else
752
+ wl();
753
+ }
754
+ return Vt({
755
+ getData: il,
756
+ getImage: dl,
757
+ generatePdf: bt,
758
+ generateCsv: Ge,
759
+ generateImage: kt,
760
+ generateSvg: Tt,
761
+ hideSeries: yl,
762
+ showSeries: cl,
763
+ toggleTable: _t,
764
+ toggleTooltip: Mt,
765
+ toggleAnnotator: qe,
766
+ toggleFullscreen: $t
767
+ }), (l, o) => (i(), c("div", {
768
+ class: Ft(`vue-data-ui-component vue-ui-scatter ${ce.value ? "vue-data-ui-wrapper-fullscreen" : ""} ${e.value.useCssAnimation ? "" : "vue-ui-dna"}`),
769
+ ref_key: "scatterChart",
770
+ ref: ae,
771
+ id: `vue-ui-scatter_${X.value}`,
772
+ style: ie(`font-family:${e.value.style.fontFamily};width:100%; text-align:center;background:${e.value.style.backgroundColor};${e.value.responsive ? "height: 100%" : ""}`),
773
+ onMouseenter: o[5] || (o[5] = () => y(dt)(!0)),
774
+ onMouseleave: o[6] || (o[6] = () => y(dt)(!1))
775
+ }, [
776
+ e.value.userOptions.buttons.annotator ? (i(), se(y(Jt), {
777
+ key: 0,
778
+ svgRef: y($e),
779
+ backgroundColor: e.value.style.backgroundColor,
780
+ color: e.value.style.color,
781
+ active: Te.value,
782
+ onClose: qe
783
+ }, {
784
+ "annotator-action-close": T(() => [
785
+ F(l.$slots, "annotator-action-close", {}, void 0, !0)
786
+ ]),
787
+ "annotator-action-color": T(({ color: t }) => [
788
+ F(l.$slots, "annotator-action-color", K(Q({ color: t })), void 0, !0)
789
+ ]),
790
+ "annotator-action-draw": T(({ mode: t }) => [
791
+ F(l.$slots, "annotator-action-draw", K(Q({ mode: t })), void 0, !0)
792
+ ]),
793
+ "annotator-action-undo": T(({ disabled: t }) => [
794
+ F(l.$slots, "annotator-action-undo", K(Q({ disabled: t })), void 0, !0)
795
+ ]),
796
+ "annotator-action-redo": T(({ disabled: t }) => [
797
+ F(l.$slots, "annotator-action-redo", K(Q({ disabled: t })), void 0, !0)
798
+ ]),
799
+ "annotator-action-delete": T(({ disabled: t }) => [
800
+ F(l.$slots, "annotator-action-delete", K(Q({ disabled: t })), void 0, !0)
801
+ ]),
802
+ _: 3
803
+ }, 8, ["svgRef", "backgroundColor", "color", "active"])) : b("", !0),
804
+ rl.value ? (i(), c("div", {
805
+ key: 1,
806
+ ref_key: "noTitle",
807
+ ref: rt,
808
+ class: "vue-data-ui-no-title-space",
809
+ style: "height:36px; width: 100%;background:transparent"
810
+ }, null, 512)) : b("", !0),
811
+ e.value.style.title.text ? (i(), c("div", {
812
+ key: 2,
813
+ ref_key: "chartTitle",
814
+ ref: at,
815
+ style: "width:100%;background:transparent"
816
+ }, [
817
+ (i(), se(oo, {
818
+ key: `title_${ut.value}`,
819
+ config: {
820
+ title: {
821
+ cy: "scatter-div-title",
822
+ ...e.value.style.title
823
+ },
824
+ subtitle: {
825
+ cy: "scatter-div-subtitle",
826
+ ...e.value.style.title.subtitle
827
+ }
828
+ }
829
+ }, null, 8, ["config"]))
830
+ ], 512)) : b("", !0),
831
+ C("div", {
832
+ id: `legend-top-${X.value}`
833
+ }, null, 8, ro),
834
+ e.value.userOptions.show && lt.value && (y(ht) || y(Ye)) ? (i(), se(y(Kt), {
835
+ ref_key: "userOptionsRef",
836
+ ref: Oe,
837
+ key: `user_options_${ot.value}`,
838
+ backgroundColor: e.value.style.backgroundColor,
839
+ color: e.value.style.color,
840
+ isImaging: y(mt),
841
+ isPrinting: y(pt),
842
+ uid: X.value,
843
+ hasTooltip: e.value.userOptions.buttons.tooltip && e.value.style.tooltip.show,
844
+ hasPdf: e.value.userOptions.buttons.pdf,
845
+ hasImg: e.value.userOptions.buttons.img,
846
+ hasSvg: e.value.userOptions.buttons.svg,
847
+ hasXls: e.value.userOptions.buttons.csv,
848
+ hasTable: e.value.userOptions.buttons.table,
849
+ hasFullscreen: e.value.userOptions.buttons.fullscreen,
850
+ isTooltip: H.value.showTooltip,
851
+ isFullscreen: ce.value,
852
+ titles: { ...e.value.userOptions.buttonTitles },
853
+ chartElement: ae.value,
854
+ position: e.value.userOptions.position,
855
+ hasAnnotator: e.value.userOptions.buttons.annotator,
856
+ isAnnotation: Te.value,
857
+ callbacks: e.value.userOptions.callbacks,
858
+ printScale: e.value.userOptions.print.scale,
859
+ tableDialog: e.value.table.useDialog,
860
+ onToggleFullscreen: $t,
861
+ onGeneratePdf: y(bt),
862
+ onGenerateCsv: Ge,
863
+ onGenerateImage: y(kt),
864
+ onGenerateSvg: Tt,
865
+ onToggleTable: _t,
866
+ onToggleTooltip: Mt,
867
+ onToggleAnnotator: qe,
868
+ style: ie({
869
+ visibility: y(ht) ? y(Ye) ? "visible" : "hidden" : "visible"
870
+ })
871
+ }, zt({ _: 2 }, [
872
+ l.$slots.menuIcon ? {
873
+ name: "menuIcon",
874
+ fn: T(({ isOpen: t, color: a }) => [
875
+ F(l.$slots, "menuIcon", K(Q({ isOpen: t, color: a })), void 0, !0)
876
+ ]),
877
+ key: "0"
878
+ } : void 0,
879
+ l.$slots.optionTooltip ? {
880
+ name: "optionTooltip",
881
+ fn: T(() => [
882
+ F(l.$slots, "optionTooltip", {}, void 0, !0)
883
+ ]),
884
+ key: "1"
885
+ } : void 0,
886
+ l.$slots.optionPdf ? {
887
+ name: "optionPdf",
888
+ fn: T(() => [
889
+ F(l.$slots, "optionPdf", {}, void 0, !0)
890
+ ]),
891
+ key: "2"
892
+ } : void 0,
893
+ l.$slots.optionCsv ? {
894
+ name: "optionCsv",
895
+ fn: T(() => [
896
+ F(l.$slots, "optionCsv", {}, void 0, !0)
897
+ ]),
898
+ key: "3"
899
+ } : void 0,
900
+ l.$slots.optionImg ? {
901
+ name: "optionImg",
902
+ fn: T(() => [
903
+ F(l.$slots, "optionImg", {}, void 0, !0)
904
+ ]),
905
+ key: "4"
906
+ } : void 0,
907
+ l.$slots.optionSvg ? {
908
+ name: "optionSvg",
909
+ fn: T(() => [
910
+ F(l.$slots, "optionSvg", {}, void 0, !0)
911
+ ]),
912
+ key: "5"
913
+ } : void 0,
914
+ l.$slots.optionTable ? {
915
+ name: "optionTable",
916
+ fn: T(() => [
917
+ F(l.$slots, "optionTable", {}, void 0, !0)
918
+ ]),
919
+ key: "6"
920
+ } : void 0,
921
+ l.$slots.optionFullscreen ? {
922
+ name: "optionFullscreen",
923
+ fn: T(({ toggleFullscreen: t, isFullscreen: a }) => [
924
+ F(l.$slots, "optionFullscreen", K(Q({ toggleFullscreen: t, isFullscreen: a })), void 0, !0)
925
+ ]),
926
+ key: "7"
927
+ } : void 0,
928
+ l.$slots.optionAnnotator ? {
929
+ name: "optionAnnotator",
930
+ fn: T(({ toggleAnnotator: t, isAnnotator: a }) => [
931
+ F(l.$slots, "optionAnnotator", K(Q({ toggleAnnotator: t, isAnnotator: a })), void 0, !0)
932
+ ]),
933
+ key: "8"
934
+ } : void 0
935
+ ]), 1032, ["backgroundColor", "color", "isImaging", "isPrinting", "uid", "hasTooltip", "hasPdf", "hasImg", "hasSvg", "hasXls", "hasTable", "hasFullscreen", "isTooltip", "isFullscreen", "titles", "chartElement", "position", "hasAnnotator", "isAnnotation", "callbacks", "printScale", "tableDialog", "onGeneratePdf", "onGenerateImage", "style"])) : b("", !0),
936
+ (i(), c("svg", {
937
+ ref_key: "svgRef",
938
+ ref: $e,
939
+ xmlns: y(Il),
940
+ class: Ft({ "vue-data-ui-fullscreen--on": ce.value, "vue-data-ui-fulscreen--off": !ce.value, animated: e.value.useCssAnimation }),
941
+ viewBox: `0 0 ${I.value.width <= 0 ? 10 : I.value.width} ${I.value.height <= 0 ? 10 : I.value.height}`,
942
+ style: ie(`max-width:100%;overflow:visible;background:transparent;color:${e.value.style.color}`),
943
+ onMouseleave: He
944
+ }, [
945
+ we(y(Qt)),
946
+ l.$slots["chart-background"] ? (i(), c("foreignObject", {
947
+ key: 0,
948
+ x: 0,
949
+ y: 0,
950
+ width: I.value.width <= 0 ? 10 : I.value.width,
951
+ height: I.value.height <= 0 ? 10 : I.value.height,
952
+ style: {
953
+ pointerEvents: "none"
954
+ }
955
+ }, [
956
+ F(l.$slots, "chart-background", {}, void 0, !0)
957
+ ], 8, io)) : b("", !0),
958
+ e.value.style.layout.axis.show ? (i(), c("g", vo, [
959
+ C("line", {
960
+ x1: P.value.x,
961
+ x2: P.value.x,
962
+ y1: n.value.top,
963
+ y2: n.value.bottom,
964
+ stroke: e.value.style.layout.axis.stroke,
965
+ "stroke-width": e.value.style.layout.axis.strokeWidth,
966
+ "stroke-linecap": "round"
967
+ }, null, 8, co),
968
+ C("line", {
969
+ x1: n.value.left,
970
+ x2: n.value.right,
971
+ y1: P.value.y,
972
+ y2: P.value.y,
973
+ stroke: e.value.style.layout.axis.stroke,
974
+ "stroke-width": e.value.style.layout.axis.strokeWidth,
975
+ "stroke-linecap": "round"
976
+ }, null, 8, yo)
977
+ ])) : b("", !0),
978
+ e.value.style.layout.marginalBars.show ? (i(), c("g", ho, [
979
+ C("defs", null, [
980
+ C("linearGradient", {
981
+ id: `marginal_x_${X.value}`,
982
+ x1: "0%",
983
+ y1: "0%",
984
+ x2: "0%",
985
+ y2: "100%"
986
+ }, [
987
+ C("stop", {
988
+ offset: "0%",
989
+ "stop-color": e.value.style.layout.marginalBars.fill
990
+ }, null, 8, go),
991
+ C("stop", {
992
+ offset: "100%",
993
+ "stop-color": e.value.style.backgroundColor
994
+ }, null, 8, po)
995
+ ], 8, fo),
996
+ C("linearGradient", {
997
+ id: `marginal_y_${X.value}`,
998
+ x1: "0%",
999
+ x2: "100%",
1000
+ y1: "0%",
1001
+ y2: "0%"
1002
+ }, [
1003
+ C("stop", {
1004
+ offset: "0%",
1005
+ "stop-color": e.value.style.backgroundColor
1006
+ }, null, 8, bo),
1007
+ C("stop", {
1008
+ offset: "100%",
1009
+ "stop-color": e.value.style.layout.marginalBars.fill
1010
+ }, null, 8, ko)
1011
+ ], 8, mo)
1012
+ ]),
1013
+ (i(!0), c(Z, null, le(M.value.x, (t, a) => (i(), c("g", null, [
1014
+ t && M.value.avgX[a] ? (i(), c("rect", {
1015
+ key: 0,
1016
+ x: M.value.avgX[a] - n.value.width / k.value / 2,
1017
+ y: n.value.top - e.value.style.layout.marginalBars.offset - t / M.value.maxX * e.value.style.layout.marginalBars.size,
1018
+ width: n.value.width / k.value <= 0 ? 1e-4 : n.value.width / k.value,
1019
+ height: t / M.value.maxX * e.value.style.layout.marginalBars.size <= 0 ? 1e-4 : t / M.value.maxX * e.value.style.layout.marginalBars.size,
1020
+ fill: e.value.style.layout.marginalBars.useGradient ? `url(#marginal_x_${X.value})` : e.value.style.layout.marginalBars.fill,
1021
+ style: ie([`opacity:${e.value.style.layout.marginalBars.opacity}`, { "pointer-events": "none" }]),
1022
+ stroke: e.value.style.backgroundColor,
1023
+ "stroke-width": e.value.style.layout.marginalBars.strokeWidth,
1024
+ rx: e.value.style.layout.marginalBars.borderRadius
1025
+ }, null, 12, xo)) : b("", !0),
1026
+ M.value.avgX[a] ? (i(), c("rect", {
1027
+ key: 1,
1028
+ x: M.value.avgX[a] - n.value.width / k.value / 2,
1029
+ y: n.value.top - e.value.style.layout.marginalBars.offset - e.value.style.layout.marginalBars.size,
1030
+ width: n.value.width / k.value <= 0 ? 1e-4 : n.value.width / k.value,
1031
+ height: Math.max(0.1, e.value.style.layout.marginalBars.size),
1032
+ fill: "transparent",
1033
+ onMouseenter: (s) => hl(a),
1034
+ onMouseleave: o[0] || (o[0] = (s) => He())
1035
+ }, null, 40, Co)) : b("", !0),
1036
+ M.value.avgX[a] && pe.value != null && pe.value === a ? (i(), c("g", Ao, [
1037
+ C("rect", {
1038
+ x: M.value.avgX[a] - n.value.width / k.value / 2,
1039
+ y: n.value.top,
1040
+ width: n.value.width / k.value <= 0 ? 1e-4 : n.value.width / k.value,
1041
+ height: n.value.height,
1042
+ fill: e.value.style.layout.marginalBars.highlighter.color,
1043
+ "fill-opacity": e.value.style.layout.marginalBars.highlighter.opacity
1044
+ }, null, 8, wo),
1045
+ C("line", {
1046
+ x1: M.value.avgX[a] - n.value.width / k.value / 2,
1047
+ x2: M.value.avgX[a] - n.value.width / k.value / 2,
1048
+ y1: 0,
1049
+ y2: n.value.top + n.value.height,
1050
+ stroke: e.value.style.layout.marginalBars.highlighter.stroke,
1051
+ "stroke-dasharray": e.value.style.layout.marginalBars.highlighter.strokeDasharray,
1052
+ "stroke-width": e.value.style.layout.marginalBars.highlighter.strokeWidth,
1053
+ style: { transition: "none !important", animation: "none !important" }
1054
+ }, null, 8, $o),
1055
+ C("line", {
1056
+ x1: M.value.avgX[a] - n.value.width / k.value / 2 + (n.value.width / k.value <= 0 ? 1e-4 : n.value.width / k.value),
1057
+ x2: M.value.avgX[a] - n.value.width / k.value / 2 + (n.value.width / k.value <= 0 ? 1e-4 : n.value.width / k.value),
1058
+ y1: 0,
1059
+ y2: n.value.top + n.value.height,
1060
+ stroke: e.value.style.layout.marginalBars.highlighter.stroke,
1061
+ "stroke-dasharray": e.value.style.layout.marginalBars.highlighter.strokeDasharray,
1062
+ "stroke-width": e.value.style.layout.marginalBars.highlighter.strokeWidth,
1063
+ style: { transition: "none !important", animation: "none !important" }
1064
+ }, null, 8, _o)
1065
+ ])) : b("", !0)
1066
+ ]))), 256)),
1067
+ (i(!0), c(Z, null, le(M.value.y, (t, a) => (i(), c("g", null, [
1068
+ t && M.value.avgY[a] ? (i(), c("rect", {
1069
+ key: 0,
1070
+ x: n.value.right + e.value.style.layout.marginalBars.offset,
1071
+ y: M.value.avgY[a] - n.value.height / k.value / 2,
1072
+ height: n.value.height / k.value <= 0 ? 1e-4 : n.value.height / k.value,
1073
+ width: t / M.value.maxY * e.value.style.layout.marginalBars.size <= 0 ? 1e-4 : t / M.value.maxY * e.value.style.layout.marginalBars.size,
1074
+ fill: e.value.style.layout.marginalBars.useGradient ? `url(#marginal_y_${X.value})` : e.value.style.layout.marginalBars.fill,
1075
+ style: ie([`opacity:${e.value.style.layout.marginalBars.opacity}`, { "pointer-events": "none" }]),
1076
+ stroke: e.value.style.backgroundColor,
1077
+ "stroke-width": e.value.style.layout.marginalBars.strokeWidth,
1078
+ rx: e.value.style.layout.marginalBars.borderRadius
1079
+ }, null, 12, Mo)) : b("", !0),
1080
+ M.value.avgY[a] ? (i(), c("rect", {
1081
+ key: 1,
1082
+ x: n.value.right + e.value.style.layout.marginalBars.offset,
1083
+ y: M.value.avgY[a] - n.value.height / k.value / 2,
1084
+ width: Math.max(0.1, e.value.style.layout.marginalBars.size),
1085
+ height: n.value.height / k.value <= 0 ? 1e-4 : n.value.height / k.value,
1086
+ fill: "transparent",
1087
+ onMouseenter: (s) => fl(a),
1088
+ onMouseleave: o[1] || (o[1] = (s) => He())
1089
+ }, null, 40, Bo)) : b("", !0),
1090
+ M.value.avgY[a] && me.value != null && me.value === a ? (i(), c("g", So, [
1091
+ C("rect", {
1092
+ x: n.value.left,
1093
+ y: M.value.avgY[a] - n.value.height / k.value / 2,
1094
+ width: n.value.width,
1095
+ height: n.value.height / k.value <= 0 ? 1e-4 : n.value.height / k.value,
1096
+ fill: e.value.style.layout.marginalBars.highlighter.color,
1097
+ "fill-opacity": e.value.style.layout.marginalBars.highlighter.opacity
1098
+ }, null, 8, Lo),
1099
+ C("line", {
1100
+ x1: n.value.left,
1101
+ x2: I.value.width,
1102
+ y1: M.value.avgY[a] - n.value.height / k.value / 2,
1103
+ y2: M.value.avgY[a] - n.value.height / k.value / 2,
1104
+ stroke: e.value.style.layout.marginalBars.highlighter.stroke,
1105
+ "stroke-dasharray": e.value.style.layout.marginalBars.highlighter.strokeDasharray,
1106
+ "stroke-width": e.value.style.layout.marginalBars.highlighter.strokeWidth,
1107
+ style: { transition: "none !important", animation: "none !important" }
1108
+ }, null, 8, To),
1109
+ C("line", {
1110
+ x1: n.value.left,
1111
+ x2: I.value.width,
1112
+ y1: M.value.avgY[a] - n.value.height / k.value / 2 + (n.value.height / k.value <= 0 ? 1e-4 : n.value.height / k.value),
1113
+ y2: M.value.avgY[a] - n.value.height / k.value / 2 + (n.value.height / k.value <= 0 ? 1e-4 : n.value.height / k.value),
1114
+ stroke: e.value.style.layout.marginalBars.highlighter.stroke,
1115
+ "stroke-dasharray": e.value.style.layout.marginalBars.highlighter.strokeDasharray,
1116
+ "stroke-width": e.value.style.layout.marginalBars.highlighter.strokeWidth,
1117
+ style: { transition: "none !important", animation: "none !important" }
1118
+ }, null, 8, Do)
1119
+ ])) : b("", !0)
1120
+ ]))), 256)),
1121
+ e.value.style.layout.marginalBars.showLines ? (i(), c("g", Fo, [
1122
+ (i(!0), c(Z, null, le(vl.value, (t) => (i(), c(Z, null, [
1123
+ W.value.includes(t.id) ? b("", !0) : (i(), c("path", {
1124
+ key: 0,
1125
+ d: `M ${t.dX}`,
1126
+ stroke: e.value.style.backgroundColor,
1127
+ "stroke-width": e.value.style.layout.marginalBars.linesStrokeWidth + 1,
1128
+ "stroke-linecap": "round",
1129
+ "stroke-linejoin": "round",
1130
+ fill: "none"
1131
+ }, null, 8, zo)),
1132
+ W.value.includes(t.id) ? b("", !0) : (i(), c("path", {
1133
+ key: 1,
1134
+ d: `M ${t.dX}`,
1135
+ stroke: t.color,
1136
+ "stroke-width": e.value.style.layout.marginalBars.linesStrokeWidth,
1137
+ "stroke-linecap": "round",
1138
+ "stroke-linejoin": "round",
1139
+ fill: "none"
1140
+ }, null, 8, Eo)),
1141
+ W.value.includes(t.id) ? b("", !0) : (i(), c("path", {
1142
+ key: 2,
1143
+ d: `M ${t.dY}`,
1144
+ stroke: e.value.style.backgroundColor,
1145
+ "stroke-width": e.value.style.layout.marginalBars.linesStrokeWidth + 1,
1146
+ "stroke-linecap": "round",
1147
+ "stroke-linejoin": "round",
1148
+ fill: "none"
1149
+ }, null, 8, Po)),
1150
+ W.value.includes(t.id) ? b("", !0) : (i(), c("path", {
1151
+ key: 3,
1152
+ d: `M ${t.dY}`,
1153
+ stroke: t.color,
1154
+ "stroke-width": e.value.style.layout.marginalBars.linesStrokeWidth,
1155
+ "stroke-linecap": "round",
1156
+ "stroke-linejoin": "round",
1157
+ fill: "none"
1158
+ }, null, 8, Oo))
1159
+ ], 64))), 256))
1160
+ ])) : b("", !0)
1161
+ ])) : b("", !0),
1162
+ e.value.style.layout.plots.giftWrap.show ? (i(), c("g", No, [
1163
+ (i(!0), c(Z, null, le(U.value, (t, a) => (i(), c("g", null, [
1164
+ t.plots.length > 2 ? (i(), c("polygon", {
1165
+ key: 0,
1166
+ points: y(Xl)({ series: t.plots }),
1167
+ fill: y(ze)(t.color, e.value.style.layout.plots.giftWrap.fillOpacity * 100),
1168
+ "stroke-width": e.value.style.layout.plots.giftWrap.strokeWidth,
1169
+ "stroke-dasharray": e.value.style.layout.plots.giftWrap.strokeDasharray,
1170
+ stroke: t.color,
1171
+ "stroke-linejoin": "round",
1172
+ "stroke-linecap": "round"
1173
+ }, null, 8, Wo)) : b("", !0)
1174
+ ]))), 256))
1175
+ ])) : b("", !0),
1176
+ e.value.usePerformanceMode ? b("", !0) : (i(!0), c(Z, { key: 4 }, le(U.value, (t, a) => (i(), c("g", null, [
1177
+ !t.shape || t.shape === "circle" ? (i(), c("g", Io, [
1178
+ (i(!0), c(Z, null, le(t.plots, (s, r) => (i(), c("circle", {
1179
+ cx: s.x,
1180
+ cy: s.y,
1181
+ r: R.value && R.value === s.id ? s.weight * 2 : s.weight,
1182
+ fill: y(ze)(t.color, e.value.style.layout.plots.opacity * 100),
1183
+ stroke: e.value.style.layout.plots.stroke,
1184
+ "stroke-width": e.value.style.layout.plots.strokeWidth,
1185
+ style: ie(`opacity:${R.value && R.value === s.id ? 1 : e.value.style.layout.plots.significance.useDistanceOpacity ? 1 - Math.abs(s.deviation) / Ct.value : e.value.style.layout.plots.significance.show && Math.abs(s.deviation) > e.value.style.layout.plots.significance.deviationThreshold ? e.value.style.layout.plots.significance.opacity : 1}`),
1186
+ onMouseover: (u) => Ue(s, a),
1187
+ onMouseleave: (u) => Be(s, a),
1188
+ onClick: (u) => Ve(s, a)
1189
+ }, null, 44, Xo))), 256))
1190
+ ])) : (i(), c("g", Yo, [
1191
+ (i(!0), c(Z, null, le(t.plots, (s, r) => (i(), se(tt, {
1192
+ plot: { x: s.x, y: s.y },
1193
+ radius: R.value && R.value === s.id ? s.weight * 2 : s.weight,
1194
+ shape: t.shape,
1195
+ color: y(ze)(t.color, e.value.style.layout.plots.opacity * 100),
1196
+ stroke: e.value.style.layout.plots.stroke,
1197
+ strokeWidth: e.value.style.layout.plots.strokeWidth,
1198
+ style: ie(`opacity:${R.value && R.value === s.id ? 1 : e.value.style.layout.plots.significance.useDistanceOpacity ? 1 - Math.abs(s.deviation) / Ct.value : e.value.style.layout.plots.significance.show && Math.abs(s.deviation) > e.value.style.layout.plots.significance.deviationThreshold ? e.value.style.layout.plots.significance.opacity : 1}`),
1199
+ onMouseover: (u) => Ue(s, a),
1200
+ onMouseleave: (u) => Be(s, a),
1201
+ onClick: (u) => Ve(s, a)
1202
+ }, null, 8, ["plot", "radius", "shape", "color", "stroke", "strokeWidth", "style", "onMouseover", "onMouseleave", "onClick"]))), 256))
1203
+ ]))
1204
+ ]))), 256)),
1205
+ e.value.usePerformanceMode ? (i(), c(Z, { key: 5 }, [
1206
+ C("g", {
1207
+ "clip-path": `url(#clip_path_${X.value})`
1208
+ }, [
1209
+ (i(!0), c(Z, null, le(pl.value, (t) => (i(), c("path", {
1210
+ key: t.id,
1211
+ d: t.d,
1212
+ fill: t.fill,
1213
+ stroke: t.stroke,
1214
+ "stroke-width": t.strokeWidth,
1215
+ "stroke-opacity": t.strokeOpacity,
1216
+ "vector-effect": "non-scaling-stroke",
1217
+ "paint-order": "fill"
1218
+ }, null, 8, jo))), 128))
1219
+ ], 8, Ro),
1220
+ g.value && e.value.style.layout.plots.selectors.show ? (i(), c("g", Uo, [
1221
+ we(tt, {
1222
+ shape: g.value.shape || "circle",
1223
+ color: g.value.color,
1224
+ plot: { x: g.value.x, y: g.value.y },
1225
+ radius: Math.max(4 * Bt[g.value.shape || "circle"], g.value.weight * 2),
1226
+ stroke: e.value.style.layout.plots.stroke,
1227
+ strokeWidth: e.value.style.layout.plots.strokeWidth
1228
+ }, null, 8, ["shape", "color", "plot", "radius", "stroke", "strokeWidth"])
1229
+ ])) : b("", !0),
1230
+ C("rect", {
1231
+ x: n.value.left,
1232
+ y: n.value.top,
1233
+ width: Math.max(1e-4, n.value.width),
1234
+ height: Math.max(1e-4, n.value.height),
1235
+ fill: "transparent",
1236
+ onMousemove: o[2] || (o[2] = (...t) => y(St) && y(St)(...t)),
1237
+ onMouseleave: bl,
1238
+ onClick: kl
1239
+ }, null, 40, Vo)
1240
+ ], 64)) : b("", !0),
1241
+ g.value && e.value.style.layout.plots.selectors.show ? (i(), c("g", Go, [
1242
+ C("line", {
1243
+ x1: P.value.x,
1244
+ x2: g.value.x,
1245
+ y1: g.value.y,
1246
+ y2: g.value.y,
1247
+ stroke: e.value.style.layout.plots.selectors.stroke,
1248
+ "stroke-width": e.value.style.layout.plots.selectors.strokeWidth,
1249
+ "stroke-dasharray": e.value.style.layout.plots.selectors.strokeDasharray,
1250
+ "stroke-linecap": "round",
1251
+ class: "line-pointer"
1252
+ }, null, 8, qo),
1253
+ C("line", {
1254
+ x1: g.value.x,
1255
+ x2: g.value.x,
1256
+ y1: P.value.y,
1257
+ y2: g.value.y,
1258
+ stroke: e.value.style.layout.plots.selectors.stroke,
1259
+ "stroke-width": e.value.style.layout.plots.selectors.strokeWidth,
1260
+ "stroke-dasharray": e.value.style.layout.plots.selectors.strokeDasharray,
1261
+ "stroke-linecap": "round",
1262
+ class: "line-pointer"
1263
+ }, null, 8, Ho),
1264
+ C("text", {
1265
+ x: P.value.x + (g.value.x > P.value.x ? -6 : 6),
1266
+ y: g.value.y + e.value.style.layout.plots.selectors.labels.fontSize / 3,
1267
+ "font-size": e.value.style.layout.plots.selectors.labels.fontSize,
1268
+ fill: e.value.style.layout.plots.selectors.labels.color,
1269
+ "font-weight": e.value.style.layout.plots.selectors.labels.bold ? "bold" : "normal",
1270
+ "text-anchor": g.value.x > P.value.x ? "end" : "start"
1271
+ }, G(y(ve)(
1272
+ e.value.style.layout.plots.selectors.labels.y.formatter,
1273
+ y(q)(g.value.v.y),
1274
+ y(oe)({
1275
+ p: e.value.style.layout.plots.selectors.labels.prefix,
1276
+ v: y(q)(g.value.v.y),
1277
+ s: e.value.style.layout.plots.selectors.labels.suffix,
1278
+ r: e.value.style.layout.plots.selectors.labels.rounding
1279
+ }),
1280
+ { datapoint: g.value }
1281
+ )), 9, Zo),
1282
+ C("text", {
1283
+ x: g.value.x,
1284
+ y: P.value.y + (g.value.y > P.value.y ? -6 : e.value.style.layout.plots.selectors.labels.fontSize + 6),
1285
+ "font-size": e.value.style.layout.plots.selectors.labels.fontSize,
1286
+ fill: e.value.style.layout.plots.selectors.labels.color,
1287
+ "font-weight": e.value.style.layout.plots.selectors.labels.bold ? "bold" : "normal",
1288
+ "text-anchor": "middle"
1289
+ }, G(y(ve)(
1290
+ e.value.style.layout.plots.selectors.labels.y.formatter,
1291
+ y(q)(g.value.v.x),
1292
+ y(oe)({
1293
+ p: e.value.style.layout.plots.selectors.labels.prefix,
1294
+ v: y(q)(g.value.v.x),
1295
+ s: e.value.style.layout.plots.selectors.labels.suffix,
1296
+ r: e.value.style.layout.plots.selectors.labels.rounding
1297
+ }),
1298
+ { datapoint: g.value }
1299
+ )), 9, Jo),
1300
+ C("circle", {
1301
+ cx: P.value.x,
1302
+ cy: g.value.y,
1303
+ r: e.value.style.layout.plots.selectors.markers.radius,
1304
+ fill: e.value.style.layout.plots.selectors.markers.fill,
1305
+ stroke: e.value.style.layout.plots.selectors.markers.stroke,
1306
+ "stroke-width": e.value.style.layout.plots.selectors.markers.strokeWidth,
1307
+ class: "line-pointer"
1308
+ }, null, 8, Ko),
1309
+ C("circle", {
1310
+ cx: g.value.x,
1311
+ cy: P.value.y,
1312
+ r: e.value.style.layout.plots.selectors.markers.radius,
1313
+ fill: e.value.style.layout.plots.selectors.markers.fill,
1314
+ stroke: e.value.style.layout.plots.selectors.markers.stroke,
1315
+ "stroke-width": e.value.style.layout.plots.selectors.markers.strokeWidth,
1316
+ class: "line-pointer"
1317
+ }, null, 8, Qo),
1318
+ e.value.style.layout.plots.selectors.labels.showName ? (i(), c("text", {
1319
+ key: 0,
1320
+ x: g.value.x,
1321
+ y: g.value.y + (g.value.y < P.value.y ? -e.value.style.layout.plots.selectors.labels.fontSize / 2 : e.value.style.layout.plots.selectors.labels.fontSize),
1322
+ "font-size": e.value.style.layout.plots.selectors.labels.fontSize,
1323
+ fill: e.value.style.layout.plots.selectors.labels.color,
1324
+ "font-weight": e.value.style.layout.plots.selectors.labels.bold ? "bold" : "normal",
1325
+ "text-anchor": g.value.x < n.value.left + 100 ? "start" : g.value.x > n.value.right - 100 ? "end" : g.value.x > P.value.x ? "start" : "end"
1326
+ }, G(g.value.v.name), 9, ea)) : b("", !0)
1327
+ ])) : b("", !0),
1328
+ e.value.style.layout.dataLabels.xAxis.show ? (i(), c("g", {
1329
+ key: 7,
1330
+ ref_key: "xAxisLabelLeft",
1331
+ ref: Ne
1332
+ }, [
1333
+ C("text", {
1334
+ id: `vue-ui-scatter-xAxis-label-${X.value}`,
1335
+ transform: `translate(${e.value.style.layout.dataLabels.xAxis.fontSize}, ${n.value.top + n.value.height / 2}), rotate(-90)`,
1336
+ "text-anchor": "middle",
1337
+ "font-size": e.value.style.layout.dataLabels.xAxis.fontSize,
1338
+ "font-weight": e.value.style.layout.dataLabels.xAxis.bold ? "bold" : "normal",
1339
+ fill: e.value.style.layout.dataLabels.xAxis.color
1340
+ }, G(e.value.style.layout.dataLabels.xAxis.name), 9, ta),
1341
+ C("text", {
1342
+ "text-anchor": "middle",
1343
+ "font-size": e.value.style.layout.dataLabels.xAxis.fontSize,
1344
+ fill: e.value.style.layout.dataLabels.xAxis.color,
1345
+ transform: `translate(${e.value.style.layout.dataLabels.xAxis.name ? e.value.style.layout.dataLabels.xAxis.fontSize * 3 : 0}, ${P.value.y + e.value.style.layout.dataLabels.xAxis.fontSize / 3}), rotate(-90)`
1346
+ }, G(y(ve)(
1347
+ e.value.style.layout.plots.selectors.labels.x.formatter,
1348
+ y(q)(E.value.xMin),
1349
+ y(oe)({
1350
+ p: e.value.style.layout.plots.selectors.labels.prefix,
1351
+ v: y(q)(E.value.xMin),
1352
+ s: e.value.style.layout.plots.selectors.labels.suffix,
1353
+ r: e.value.style.layout.dataLabels.xAxis.rounding
1354
+ })
1355
+ )), 9, la)
1356
+ ], 512)) : b("", !0),
1357
+ e.value.style.layout.dataLabels.xAxis.show ? (i(), c("text", {
1358
+ key: 8,
1359
+ ref_key: "xAxisLabelRight",
1360
+ ref: al,
1361
+ "text-anchor": "middle",
1362
+ transform: `translate(${n.value.right + e.value.style.layout.padding.right + 6}, ${P.value.y + e.value.style.layout.dataLabels.xAxis.fontSize / 3}), rotate(-90)`,
1363
+ "font-size": e.value.style.layout.dataLabels.xAxis.fontSize,
1364
+ fill: e.value.style.layout.dataLabels.xAxis.color
1365
+ }, G(y(ve)(
1366
+ e.value.style.layout.plots.selectors.labels.x.formatter,
1367
+ y(q)(E.value.xMax),
1368
+ y(oe)({
1369
+ p: e.value.style.layout.plots.selectors.labels.prefix,
1370
+ v: y(q)(E.value.xMax),
1371
+ s: e.value.style.layout.plots.selectors.labels.suffix,
1372
+ r: e.value.style.layout.dataLabels.xAxis.rounding
1373
+ })
1374
+ )), 9, oa)) : b("", !0),
1375
+ e.value.style.layout.dataLabels.yAxis.show ? (i(), c("text", {
1376
+ key: 9,
1377
+ ref_key: "yAxisLabelTop",
1378
+ ref: sl,
1379
+ x: P.value.x,
1380
+ y: n.value.top - e.value.style.layout.dataLabels.yAxis.fontSize,
1381
+ "text-anchor": "middle",
1382
+ "font-size": e.value.style.layout.dataLabels.yAxis.fontSize,
1383
+ fill: e.value.style.layout.dataLabels.yAxis.color
1384
+ }, G(y(ve)(
1385
+ e.value.style.layout.plots.selectors.labels.y.formatter,
1386
+ y(q)(E.value.yMax),
1387
+ y(oe)({
1388
+ p: e.value.style.layout.plots.selectors.labels.prefix,
1389
+ v: y(q)(E.value.yMax),
1390
+ s: e.value.style.layout.plots.selectors.labels.suffix,
1391
+ r: e.value.style.layout.dataLabels.yAxis.rounding
1392
+ })
1393
+ )), 9, aa)) : b("", !0),
1394
+ e.value.style.layout.dataLabels.yAxis.show ? (i(), c("g", {
1395
+ key: 10,
1396
+ ref_key: "yAxisLabelBottom",
1397
+ ref: We
1398
+ }, [
1399
+ C("text", {
1400
+ x: P.value.x,
1401
+ y: I.value.height - e.value.style.layout.dataLabels.yAxis.fontSize * 2,
1402
+ "text-anchor": "middle",
1403
+ "font-size": e.value.style.layout.dataLabels.yAxis.fontSize,
1404
+ fill: e.value.style.layout.dataLabels.yAxis.color
1405
+ }, G(y(ve)(
1406
+ e.value.style.layout.plots.selectors.labels.y.formatter,
1407
+ y(q)(E.value.yMin),
1408
+ y(oe)({
1409
+ p: e.value.style.layout.plots.selectors.labels.prefix,
1410
+ v: y(q)(E.value.yMin),
1411
+ s: e.value.style.layout.plots.selectors.labels.suffix,
1412
+ r: e.value.style.layout.dataLabels.yAxis.rounding
1413
+ })
1414
+ )), 9, sa),
1415
+ C("text", {
1416
+ "text-anchor": "middle",
1417
+ "font-size": e.value.style.layout.dataLabels.yAxis.fontSize,
1418
+ "font-weight": e.value.style.layout.dataLabels.yAxis.bold ? "bold" : "normal",
1419
+ fill: e.value.style.layout.dataLabels.yAxis.color,
1420
+ x: n.value.left + n.value.width / 2,
1421
+ y: I.value.height
1422
+ }, G(e.value.style.layout.dataLabels.yAxis.name), 9, na)
1423
+ ], 512)) : b("", !0),
1424
+ C("clipPath", {
1425
+ id: `clip_path_${X.value}`
1426
+ }, [
1427
+ C("rect", {
1428
+ x: n.value.left,
1429
+ y: n.value.top,
1430
+ width: n.value.width <= 0 ? 1e-4 : n.value.width,
1431
+ height: n.value.height <= 0 ? 1e-4 : n.value.height
1432
+ }, null, 8, ua)
1433
+ ], 8, ra),
1434
+ e.value.style.layout.correlation.show ? (i(), c("g", ia, [
1435
+ (i(!0), c(Z, null, le(U.value, (t, a) => (i(), c("line", {
1436
+ x1: t.correlation.x1,
1437
+ x2: t.correlation.x2,
1438
+ y1: t.correlation.y1,
1439
+ y2: t.correlation.y2,
1440
+ "stroke-dasharray": e.value.style.layout.correlation.strokeDasharray,
1441
+ stroke: t.color,
1442
+ "stroke-width": e.value.style.layout.correlation.strokeWidth,
1443
+ "clip-path": `url(#clip_path_${X.value})`
1444
+ }, null, 8, va))), 256)),
1445
+ (i(!0), c(Z, null, le(U.value, (t, a) => (i(), c("g", null, [
1446
+ e.value.style.layout.correlation.label.show ? (i(), c("text", {
1447
+ key: 0,
1448
+ x: t.correlation.x2,
1449
+ y: t.correlation.y2,
1450
+ fill: e.value.style.layout.correlation.label.useSerieColor ? t.color : e.value.style.layout.correlation.label.color,
1451
+ "text-anchor": "end",
1452
+ "font-size": e.value.style.layout.correlation.label.fontSize,
1453
+ "font-weight": e.value.style.layout.correlation.label.bold ? "bold" : "normal"
1454
+ }, G(y(oe)({
1455
+ v: y(q)(t.correlation.coefficient),
1456
+ r: e.value.style.layout.correlation.label.roundingValue
1457
+ })), 9, ca)) : b("", !0)
1458
+ ]))), 256))
1459
+ ])) : b("", !0),
1460
+ F(l.$slots, "svg", {
1461
+ svg: {
1462
+ ...I.value,
1463
+ drawingArea: {
1464
+ ...n.value,
1465
+ zero: P.value
1466
+ },
1467
+ data: Me.value
1468
+ }
1469
+ }, void 0, !0)
1470
+ ], 46, uo)),
1471
+ l.$slots.watermark ? (i(), c("div", ya, [
1472
+ F(l.$slots, "watermark", K(Q({ isPrinting: y(pt) || y(mt) })), void 0, !0)
1473
+ ])) : b("", !0),
1474
+ C("div", {
1475
+ id: `legend-bottom-${X.value}`
1476
+ }, null, 8, da),
1477
+ ct.value ? (i(), se(Sl, {
1478
+ key: 5,
1479
+ to: e.value.style.legend.position === "top" ? `#legend-top-${X.value}` : `#legend-bottom-${X.value}`
1480
+ }, [
1481
+ C("div", {
1482
+ ref_key: "chartLegend",
1483
+ ref: st
1484
+ }, [
1485
+ e.value.style.legend.show ? (i(), se(lo, {
1486
+ key: `legend_${vt.value}`,
1487
+ legendSet: te.value,
1488
+ config: ul.value,
1489
+ onClickMarker: o[3] || (o[3] = ({ legend: t }) => Se(t.id))
1490
+ }, {
1491
+ item: T(({ legend: t }) => [
1492
+ C("div", {
1493
+ onClick: (a) => t.segregate(),
1494
+ style: ie(`opacity:${W.value.includes(t.id) ? 0.5 : 1}`)
1495
+ }, G(t.name), 13, ha)
1496
+ ]),
1497
+ _: 1
1498
+ }, 8, ["legendSet", "config"])) : F(l.$slots, "legend", {
1499
+ key: 1,
1500
+ legend: te.value
1501
+ }, void 0, !0)
1502
+ ], 512)
1503
+ ], 8, ["to"])) : b("", !0),
1504
+ l.$slots.source ? (i(), c("div", {
1505
+ key: 6,
1506
+ ref_key: "source",
1507
+ ref: nt,
1508
+ dir: "auto"
1509
+ }, [
1510
+ F(l.$slots, "source", {}, void 0, !0)
1511
+ ], 512)) : b("", !0),
1512
+ we(y(Gt), {
1513
+ show: H.value.showTooltip && Ee.value,
1514
+ backgroundColor: e.value.style.tooltip.backgroundColor,
1515
+ color: e.value.style.tooltip.color,
1516
+ borderRadius: e.value.style.tooltip.borderRadius,
1517
+ borderColor: e.value.style.tooltip.borderColor,
1518
+ borderWidth: e.value.style.tooltip.borderWidth,
1519
+ fontSize: e.value.style.tooltip.fontSize,
1520
+ backgroundOpacity: e.value.style.tooltip.backgroundOpacity,
1521
+ position: e.value.style.tooltip.position,
1522
+ offsetY: e.value.style.tooltip.offsetY,
1523
+ parent: ae.value,
1524
+ content: Pe.value,
1525
+ isFullscreen: ce.value,
1526
+ isCustom: e.value.style.tooltip.customFormat && typeof e.value.style.tooltip.customFormat == "function",
1527
+ smooth: e.value.style.tooltip.smooth,
1528
+ backdropFilter: e.value.style.tooltip.backdropFilter,
1529
+ smoothForce: e.value.style.tooltip.smoothForce,
1530
+ smoothSnapThreshold: e.value.style.tooltip.smoothSnapThreshold
1531
+ }, {
1532
+ "tooltip-before": T(() => [
1533
+ F(l.$slots, "tooltip-before", K(Q({ ...je.value })), void 0, !0)
1534
+ ]),
1535
+ "tooltip-after": T(() => [
1536
+ F(l.$slots, "tooltip-after", K(Q({ ...je.value })), void 0, !0)
1537
+ ]),
1538
+ default: T(() => [
1539
+ e.value.style.tooltip.showShape ? (i(), c("div", fa, [
1540
+ (i(), c("svg", ga, [
1541
+ we(tt, {
1542
+ shape: g.value.shape,
1543
+ color: g.value.color,
1544
+ plot: { x: 10, y: 10 },
1545
+ radius: 7
1546
+ }, null, 8, ["shape", "color"])
1547
+ ]))
1548
+ ])) : b("", !0)
1549
+ ]),
1550
+ _: 3
1551
+ }, 8, ["show", "backgroundColor", "color", "borderRadius", "borderColor", "borderWidth", "fontSize", "backgroundOpacity", "position", "offsetY", "parent", "content", "isFullscreen", "isCustom", "smooth", "backdropFilter", "smoothForce", "smoothSnapThreshold"]),
1552
+ lt.value && e.value.userOptions.buttons.table ? (i(), se(Ll(ke.value.component), Tl({ key: 7 }, ke.value.props, {
1553
+ ref_key: "tableUnit",
1554
+ ref: be,
1555
+ onClose: Lt
1556
+ }), zt({
1557
+ content: T(() => [
1558
+ (i(), se(y(Zt), {
1559
+ key: `table_${it.value}`,
1560
+ colNames: Le.value.colNames,
1561
+ head: Le.value.head,
1562
+ body: Le.value.body,
1563
+ config: Le.value.config,
1564
+ title: e.value.table.useDialog ? "" : ke.value.title,
1565
+ withCloseButton: !e.value.table.useDialog,
1566
+ onClose: Lt
1567
+ }, {
1568
+ th: T(({ th: t }) => [
1569
+ Et(G(t), 1)
1570
+ ]),
1571
+ td: T(({ td: t }) => [
1572
+ t.shape ? (i(), c("div", pa, [
1573
+ C("span", null, G(t.content), 1)
1574
+ ])) : (i(), c("div", {
1575
+ key: 1,
1576
+ innerHTML: t
1577
+ }, null, 8, ma))
1578
+ ]),
1579
+ _: 1
1580
+ }, 8, ["colNames", "head", "body", "config", "title", "withCloseButton"]))
1581
+ ]),
1582
+ _: 2
1583
+ }, [
1584
+ e.value.table.useDialog ? {
1585
+ name: "title",
1586
+ fn: T(() => [
1587
+ Et(G(ke.value.title), 1)
1588
+ ]),
1589
+ key: "0"
1590
+ } : void 0,
1591
+ e.value.table.useDialog ? {
1592
+ name: "actions",
1593
+ fn: T(() => [
1594
+ C("button", {
1595
+ tabindex: "0",
1596
+ class: "vue-ui-user-options-button",
1597
+ onClick: o[4] || (o[4] = (t) => Ge(e.value.userOptions.callbacks.csv))
1598
+ }, [
1599
+ we(y(qt), {
1600
+ name: "excel",
1601
+ stroke: ke.value.props.color
1602
+ }, null, 8, ["stroke"])
1603
+ ])
1604
+ ]),
1605
+ key: "1"
1606
+ } : void 0
1607
+ ]), 1040)) : b("", !0),
1608
+ y(yt) ? (i(), se(Zl, { key: 8 })) : b("", !0)
1609
+ ], 46, no));
1610
+ }
1611
+ }, ka = /* @__PURE__ */ so(ba, [["__scopeId", "data-v-0b372a51"]]), Oa = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
1612
+ __proto__: null,
1613
+ default: ka
1614
+ }, Symbol.toStringTag, { value: "Module" }));
1615
+ export {
1616
+ Pa as a,
1617
+ Oa as b,
1618
+ ka as v
1619
+ };