vue-data-ui 3.22.9 → 3.22.11

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 (216) hide show
  1. package/dist/{Arrow-DdymhUfY.js → Arrow-DKx74WtM.js} +1 -1
  2. package/dist/{BaseDraggableDialog-Av7Uxq5V.js → BaseDraggableDialog-3n8udWmh.js} +2 -2
  3. package/dist/{BaseIcon-UdRAvP2h.js → BaseIcon-CP5RWnqt.js} +1 -1
  4. package/dist/{BaseLegendToggle-DWtet-Hh.js → BaseLegendToggle-DsWphmIb.js} +1 -1
  5. package/dist/{BaseZoomControls-BY2KLqs6.js → BaseZoomControls-C9_ygNN4.js} +2 -2
  6. package/dist/{ColorPicker-DR_ummtM.js → ColorPicker-3N_HVgXs.js} +2 -2
  7. package/dist/{DataTable-BxpTMgfK.js → DataTable-DzPEVvSo.js} +2 -2
  8. package/dist/{Legend-ROt6ugzW.js → Legend-C0xAnJdO.js} +2 -2
  9. package/dist/{NonSvgPenAndPaper-B6EG_Sga.js → NonSvgPenAndPaper-B_mE5UbR.js} +3 -3
  10. package/dist/{PackageVersion-D__dRVRA.js → PackageVersion-1MNr72Bz.js} +1 -1
  11. package/dist/{PenAndPaper-DsXi7GJ-.js → PenAndPaper-CSMVXpg2.js} +3 -3
  12. package/dist/{Shape-UpH0a4Ur.js → Shape-BfnXr1nJ.js} +3 -3
  13. package/dist/Slicer-C6qNUmZ4.js +1149 -0
  14. package/dist/{SlicerPreview-CTz41lOu.js → SlicerPreview-BIdvqU32.js} +554 -553
  15. package/dist/{SparkTooltip-BTLN-Kex.js → SparkTooltip-uoUiL_P8.js} +1 -1
  16. package/dist/{Title-CcNiYzEo.js → Title-BuPs74IB.js} +1 -1
  17. package/dist/{Tooltip-CxOrWlFy.js → Tooltip-CA1rtSyl.js} +1 -1
  18. package/dist/{UserOptions-trvJ26nz.js → UserOptions-B69xBEVP.js} +6 -5
  19. package/dist/components/arrow.js +1 -1
  20. package/dist/components/vue-ui-3d-bar.js +1 -1
  21. package/dist/components/vue-ui-accordion.js +1 -1
  22. package/dist/components/vue-ui-age-pyramid.js +1 -1
  23. package/dist/components/vue-ui-annotator.js +1 -1
  24. package/dist/components/vue-ui-bullet.js +1 -1
  25. package/dist/components/vue-ui-bump.js +1 -1
  26. package/dist/components/vue-ui-candlestick.js +1 -1
  27. package/dist/components/vue-ui-carousel-table.js +1 -1
  28. package/dist/components/vue-ui-chestnut.js +1 -1
  29. package/dist/components/vue-ui-chord.js +1 -1
  30. package/dist/components/vue-ui-circle-pack.js +1 -1
  31. package/dist/components/vue-ui-cursor.js +1 -1
  32. package/dist/components/vue-ui-dag.js +1 -1
  33. package/dist/components/vue-ui-dashboard.js +1 -1
  34. package/dist/components/vue-ui-digits.js +1 -1
  35. package/dist/components/vue-ui-donut-evolution.js +1 -1
  36. package/dist/components/vue-ui-donut.js +1 -1
  37. package/dist/components/vue-ui-dumbbell.js +1 -1
  38. package/dist/components/vue-ui-flow.js +1 -1
  39. package/dist/components/vue-ui-funnel.js +1 -1
  40. package/dist/components/vue-ui-galaxy.js +1 -1
  41. package/dist/components/vue-ui-gauge.js +1 -1
  42. package/dist/components/vue-ui-geo.js +1 -1
  43. package/dist/components/vue-ui-gizmo.js +1 -1
  44. package/dist/components/vue-ui-heatmap.js +1 -1
  45. package/dist/components/vue-ui-history-plot.js +1 -1
  46. package/dist/components/vue-ui-horizontal-bar.js +1 -1
  47. package/dist/components/vue-ui-icon.js +1 -1
  48. package/dist/components/vue-ui-kpi.js +1 -1
  49. package/dist/components/vue-ui-mini-loader.js +1 -1
  50. package/dist/components/vue-ui-molecule.js +1 -1
  51. package/dist/components/vue-ui-mood-radar.js +1 -1
  52. package/dist/components/vue-ui-nested-donuts.js +1 -1
  53. package/dist/components/vue-ui-onion.js +1 -1
  54. package/dist/components/vue-ui-parallel-coordinate-plot.js +1 -1
  55. package/dist/components/vue-ui-quadrant.js +1 -1
  56. package/dist/components/vue-ui-quick-chart.js +1 -1
  57. package/dist/components/vue-ui-radar.js +1 -1
  58. package/dist/components/vue-ui-rating.js +1 -1
  59. package/dist/components/vue-ui-relation-circle.js +1 -1
  60. package/dist/components/vue-ui-ridgeline.js +1 -1
  61. package/dist/components/vue-ui-rings.js +1 -1
  62. package/dist/components/vue-ui-scatter.js +1 -1
  63. package/dist/components/vue-ui-skeleton.js +1 -1
  64. package/dist/components/vue-ui-smiley.js +1 -1
  65. package/dist/components/vue-ui-spark-trend.js +1 -1
  66. package/dist/components/vue-ui-sparkbar.js +1 -1
  67. package/dist/components/vue-ui-sparkgauge.js +1 -1
  68. package/dist/components/vue-ui-sparkhistogram.js +1 -1
  69. package/dist/components/vue-ui-sparkline.js +1 -1
  70. package/dist/components/vue-ui-sparkstackbar.js +1 -1
  71. package/dist/components/vue-ui-stackbar.js +1 -1
  72. package/dist/components/vue-ui-stackline.js +1 -1
  73. package/dist/components/vue-ui-strip-plot.js +1 -1
  74. package/dist/components/vue-ui-table-heatmap.js +1 -1
  75. package/dist/components/vue-ui-table-sparkline.js +1 -1
  76. package/dist/components/vue-ui-table.js +1 -1
  77. package/dist/components/vue-ui-thermometer.js +1 -1
  78. package/dist/components/vue-ui-timer.js +1 -1
  79. package/dist/components/vue-ui-tiremarks.js +1 -1
  80. package/dist/components/vue-ui-treemap.js +1 -1
  81. package/dist/components/vue-ui-vertical-bar.js +1 -1
  82. package/dist/components/vue-ui-waffle.js +1 -1
  83. package/dist/components/vue-ui-wheel.js +1 -1
  84. package/dist/components/vue-ui-word-cloud.js +1 -1
  85. package/dist/components/vue-ui-world.js +1 -1
  86. package/dist/components/vue-ui-xy-canvas.js +1 -1
  87. package/dist/components/vue-ui-xy.js +1 -1
  88. package/dist/{dom-to-png-BbwhsRIr.js → dom-to-png-BdAFKZQg.js} +1 -1
  89. package/dist/exposedLib-Ciw6TGtP.js +25 -0
  90. package/dist/{geoProjections-BbN7z57k.js → geoProjections-BCP_PoiB.js} +94 -94
  91. package/dist/{img-DnP3eXuv.js → img-Bikk1dGb.js} +1 -1
  92. package/dist/{labelUtils-DBEh078l.js → labelUtils-BUhssos9.js} +1 -1
  93. package/dist/{lib-JqW18y5I.js → lib-CFm_J26b.js} +121 -110
  94. package/dist/{package-ByOT60IK.js → package-Bf-Nk9qU.js} +1 -1
  95. package/dist/{pdf-hj3gzrE7.js → pdf-zmz3l2uy.js} +1 -1
  96. package/dist/{render-common-D18VrP0h.js → render-common-DEb-WjM1.js} +10 -10
  97. package/dist/ssr/vue-ui-donut.js +1 -1
  98. package/dist/ssr/vue-ui-xy.js +1 -1
  99. package/dist/ssr.js +2 -2
  100. package/dist/style.css +1 -1
  101. package/dist/types/utils.d.ts +40 -0
  102. package/dist/types/vue-data-ui.d.ts +1 -0
  103. package/dist/{useAutoSizeLabelsInsideViewbox-BGnDfZdg.js → useAutoSizeLabelsInsideViewbox-C9RNjsGv.js} +4 -4
  104. package/dist/{useConfig-DYM3f6EI.js → useConfig-C0V0eG7L.js} +1 -0
  105. package/dist/{useFitSvgText-CT3nmlaS.js → useFitSvgText-CXTzBplU.js} +3 -1
  106. package/dist/{useNestedProp-DIuuzG1r.js → useNestedProp-BY6DNN3i.js} +2 -2
  107. package/dist/{useObjectBindings-CD31syQb.js → useObjectBindings-Djwpii4d.js} +1 -1
  108. package/dist/{usePrinter-CqqHmnBI.js → usePrinter-BH-xle1O.js} +2 -2
  109. package/dist/{canvas-lib-BOP_HS11.js → useResponsive-ZtArZtUf.js} +19 -1
  110. package/dist/{useSvgExport-SVIsDot8.js → useSvgExport-Ba9qBr9M.js} +6 -5
  111. package/dist/{useTableResponsive-B24Uwt2E.js → useTableResponsive-BAqJPR68.js} +2 -1
  112. package/dist/{useTimeLabels-BmBRv27Y.js → useTimeLabels-B9CEuiLZ.js} +1 -1
  113. package/dist/utils.js +26 -24
  114. package/dist/{vue-data-ui-ub3fCh6P.js → vue-data-ui-Bme9usjG.js} +68 -68
  115. package/dist/vue-data-ui.js +77 -77
  116. package/dist/vue-ui-3d-bar-Ds1BPxqb.js +1824 -0
  117. package/dist/{vue-ui-accordion-CjAGqEJg.js → vue-ui-accordion-nNxnZTg9.js} +4 -4
  118. package/dist/vue-ui-age-pyramid-CNCrH8Kd.js +1246 -0
  119. package/dist/{vue-ui-annotator-BIucnT0L.js → vue-ui-annotator-BfZ8RTzJ.js} +17 -11
  120. package/dist/vue-ui-bullet-DscMmM2b.js +709 -0
  121. package/dist/vue-ui-bump-BvwU1_-N.js +1248 -0
  122. package/dist/{vue-ui-candlestick-DULUMU-Q.js → vue-ui-candlestick-Cp6r8ktf.js} +288 -288
  123. package/dist/vue-ui-carousel-table-CbtccW1g.js +455 -0
  124. package/dist/vue-ui-chestnut-C3Hmf1-m.js +2042 -0
  125. package/dist/{vue-ui-chord-DL1M7cgL.js → vue-ui-chord-DJk9j45J.js} +45 -46
  126. package/dist/{vue-ui-circle-pack-C1Pgq6si.js → vue-ui-circle-pack-CJe2wETT.js} +50 -51
  127. package/dist/{vue-ui-cursor-d2uLAKTQ.js → vue-ui-cursor-BAi9omna.js} +6 -6
  128. package/dist/{vue-ui-dag-CVh9FpZr.js → vue-ui-dag-D7BEbS71.js} +41 -39
  129. package/dist/{vue-ui-dashboard-BH0N3ebj.js → vue-ui-dashboard-BYFQjwgC.js} +70 -70
  130. package/dist/{vue-ui-digits-R6wi3J-Y.js → vue-ui-digits-Bx8nZl9d.js} +4 -4
  131. package/dist/{vue-ui-donut-BWDeVzLc.js → vue-ui-donut-BUX4ybT6.js} +208 -208
  132. package/dist/vue-ui-donut-evolution-MWDjQPQ5.js +1521 -0
  133. package/dist/vue-ui-donut-jXRV-3ON.js +2418 -0
  134. package/dist/vue-ui-dumbbell-CnwsHaIy.js +1564 -0
  135. package/dist/{vue-ui-flow-CNczKwTh.js → vue-ui-flow-CKXGk4Lm.js} +74 -75
  136. package/dist/vue-ui-funnel-CJwD7s7e.js +781 -0
  137. package/dist/{vue-ui-galaxy-v3cTbUiM.js → vue-ui-galaxy-DL85_SWR.js} +275 -276
  138. package/dist/{vue-ui-gauge-DxvMjfoc.js → vue-ui-gauge-Dkx-aUQr.js} +177 -178
  139. package/dist/{vue-ui-geo-BgmLkZZ2.js → vue-ui-geo-fkLF1rHB.js} +28 -27
  140. package/dist/{vue-ui-gizmo-n1kmcGeE.js → vue-ui-gizmo-S8w_p769.js} +9 -9
  141. package/dist/{vue-ui-heatmap-dSTh8ah_.js → vue-ui-heatmap-Dopkbn2N.js} +330 -331
  142. package/dist/{vue-ui-history-plot-N8BqMFVU.js → vue-ui-history-plot-DDYpEapS.js} +413 -414
  143. package/dist/vue-ui-horizontal-bar-Bi8WvKeD.js +1689 -0
  144. package/dist/{vue-ui-kpi-BKrUk9o8.js → vue-ui-kpi-BeJ-ajaS.js} +4 -4
  145. package/dist/{vue-ui-mini-loader-D5we7V_W.js → vue-ui-mini-loader-D9pprk2c.js} +3 -3
  146. package/dist/vue-ui-molecule-CBTgGZ-s.js +932 -0
  147. package/dist/{vue-ui-mood-radar-CpBRHQo_.js → vue-ui-mood-radar-CF83PcCx.js} +260 -261
  148. package/dist/vue-ui-nested-donuts-D5dO-Uyg.js +1492 -0
  149. package/dist/vue-ui-onion-BxjaQKo8.js +1199 -0
  150. package/dist/vue-ui-parallel-coordinate-plot-Dz6ozRAM.js +1415 -0
  151. package/dist/vue-ui-quadrant-Bnxpa6m5.js +1985 -0
  152. package/dist/{vue-ui-quick-chart-BO98uEPl.js → vue-ui-quick-chart-CAE0-NYj.js} +112 -113
  153. package/dist/vue-ui-radar-O4BhBOyp.js +1286 -0
  154. package/dist/{vue-ui-rating-CN-ZiAES.js → vue-ui-rating-DbxK-ftN.js} +101 -101
  155. package/dist/vue-ui-relation-circle-BZ0Xf-Nc.js +923 -0
  156. package/dist/vue-ui-ridgeline-DHVTPiM6.js +1627 -0
  157. package/dist/vue-ui-rings-DAfY1V--.js +1251 -0
  158. package/dist/vue-ui-scatter-Cb63SWJT.js +2421 -0
  159. package/dist/{vue-ui-skeleton-DC2bZ0nk.js → vue-ui-skeleton-DoIqQtIV.js} +100 -100
  160. package/dist/{vue-ui-smiley-Dyyu1je3.js → vue-ui-smiley-Da2jgkb7.js} +18 -18
  161. package/dist/vue-ui-spark-trend-Db-FsXch.js +442 -0
  162. package/dist/{vue-ui-sparkbar-DhIo1qsW.js → vue-ui-sparkbar-Ce55FP_3.js} +67 -67
  163. package/dist/{vue-ui-sparkgauge-D0Fo3Hts.js → vue-ui-sparkgauge-hB59dXm7.js} +65 -65
  164. package/dist/vue-ui-sparkhistogram-DjnaStBw.js +575 -0
  165. package/dist/{vue-ui-sparkline-ApivEMBP.js → vue-ui-sparkline-D1dyhLvG.js} +54 -55
  166. package/dist/vue-ui-sparkstackbar-BhOBFjts.js +674 -0
  167. package/dist/{vue-ui-stackbar-Ds4hXATH.js → vue-ui-stackbar-BZKw8WYn.js} +123 -122
  168. package/dist/vue-ui-stackline-DLFNVbAz.js +2425 -0
  169. package/dist/{vue-ui-strip-plot-C3ZHf4bD.js → vue-ui-strip-plot-DyN2WELD.js} +68 -69
  170. package/dist/vue-ui-table-DL_R4ppI.js +1339 -0
  171. package/dist/{vue-ui-table-heatmap-CNXNXXBU.js → vue-ui-table-heatmap-C9gF__Np.js} +16 -16
  172. package/dist/{vue-ui-table-sparkline-B9JJ4pFF.js → vue-ui-table-sparkline-CT-0w9-a.js} +26 -24
  173. package/dist/vue-ui-thermometer-MP0dliC3.js +769 -0
  174. package/dist/{vue-ui-timer-5NAWw5BN.js → vue-ui-timer-B5S-6Da4.js} +7 -8
  175. package/dist/{vue-ui-tiremarks-Caz_g1c5.js → vue-ui-tiremarks-DcJiLDsm.js} +20 -21
  176. package/dist/{vue-ui-treemap-F9upPyOI.js → vue-ui-treemap-CjldCPnX.js} +615 -603
  177. package/dist/vue-ui-waffle-dZM-9z1J.js +1367 -0
  178. package/dist/{vue-ui-wheel-DD6Q39BA.js → vue-ui-wheel-or7a6-Ce.js} +47 -48
  179. package/dist/{vue-ui-word-cloud-BZLT5svo.js → vue-ui-word-cloud-8BwQ0cuB.js} +40 -37
  180. package/dist/{vue-ui-world-DbEJN5NA.js → vue-ui-world-Q0KZb7A_.js} +210 -210
  181. package/dist/{vue-ui-xy-Cn9Q8YPr.js → vue-ui-xy-4uzwZJcj.js} +141 -141
  182. package/dist/{vue-ui-xy-BYMAITk_.js → vue-ui-xy-DZIs53tH.js} +791 -783
  183. package/dist/vue-ui-xy-canvas-Dz9aii7f.js +1790 -0
  184. package/package.json +2 -2
  185. package/dist/Slicer-CW_XPIKL.js +0 -1150
  186. package/dist/exposedLib-VXFp3Z2c.js +0 -19
  187. package/dist/useResponsive-BfnK0KxU.js +0 -19
  188. package/dist/vue-ui-3d-bar-taPI41_I.js +0 -1825
  189. package/dist/vue-ui-age-pyramid-jvQZbF8E.js +0 -1247
  190. package/dist/vue-ui-bullet-CIATzlsk.js +0 -710
  191. package/dist/vue-ui-bump-D8MxltQE.js +0 -1249
  192. package/dist/vue-ui-carousel-table-BSmdexG7.js +0 -455
  193. package/dist/vue-ui-chestnut-BIh1nQ7q.js +0 -2042
  194. package/dist/vue-ui-donut-BoZdciGh.js +0 -2419
  195. package/dist/vue-ui-donut-evolution-CpC9EMro.js +0 -1522
  196. package/dist/vue-ui-dumbbell-DGA5Bfnl.js +0 -1564
  197. package/dist/vue-ui-funnel-CaD2tZCT.js +0 -782
  198. package/dist/vue-ui-horizontal-bar-CwiQxYzv.js +0 -1689
  199. package/dist/vue-ui-molecule--kK1JfnP.js +0 -931
  200. package/dist/vue-ui-nested-donuts-8Ehwcuns.js +0 -1493
  201. package/dist/vue-ui-onion-Cf6JiYTH.js +0 -1200
  202. package/dist/vue-ui-parallel-coordinate-plot-Blnqp1DB.js +0 -1416
  203. package/dist/vue-ui-quadrant-CxU0jiOm.js +0 -1984
  204. package/dist/vue-ui-radar-eH2Qih4_.js +0 -1287
  205. package/dist/vue-ui-relation-circle-BIcP-aAt.js +0 -924
  206. package/dist/vue-ui-ridgeline-ChXHzEJw.js +0 -1628
  207. package/dist/vue-ui-rings-J990vNbX.js +0 -1252
  208. package/dist/vue-ui-scatter-BeJB0EKg.js +0 -2422
  209. package/dist/vue-ui-spark-trend-CpDX85H3.js +0 -443
  210. package/dist/vue-ui-sparkhistogram-CUjFiuAh.js +0 -576
  211. package/dist/vue-ui-sparkstackbar-DsKQJx_n.js +0 -674
  212. package/dist/vue-ui-stackline-DJbcVvmN.js +0 -2425
  213. package/dist/vue-ui-table-uudidrYt.js +0 -1338
  214. package/dist/vue-ui-thermometer-Bvw3oQb3.js +0 -770
  215. package/dist/vue-ui-waffle-Bk9AsrPp.js +0 -1368
  216. package/dist/vue-ui-xy-canvas-Dcm2ftwm.js +0 -1790
@@ -0,0 +1,2421 @@
1
+ import { t as e } from "./rolldown-runtime-Dy4uBu1J.js";
2
+ import { At as t, C as n, E as r, Gt as i, K as a, N as o, Nt as s, P as c, Q as l, Wt as u, Y as d, _ as f, bt as p, et as m, ft as ee, g as h, gt as te, i as g, qt as ne, st as re, t as ie, wt as ae, x as oe, y as _, zt as se } from "./lib-CFm_J26b.js";
3
+ import { t as ce } from "./useConfig-C0V0eG7L.js";
4
+ import { t as le } from "./usePrinter-BH-xle1O.js";
5
+ import { n as ue, t as de } from "./BaseScanner-DZvpgOjM.js";
6
+ import { t as fe } from "./useSvgExport-Ba9qBr9M.js";
7
+ import { t as pe } from "./useNestedProp-BY6DNN3i.js";
8
+ import { t as me } from "./useThemeCheck-C43Tcqmk.js";
9
+ import { t as he } from "./img-Bikk1dGb.js";
10
+ import { n as ge } from "./Title-BuPs74IB.js";
11
+ import { t as _e } from "./Shape-BfnXr1nJ.js";
12
+ import { t as ve } from "./_plugin-vue_export-helper-B3ysoDQm.js";
13
+ import { l as ye, t as be } from "./useResponsive-ZtArZtUf.js";
14
+ import { t as xe } from "./DefGrad-DVBqDjhO.js";
15
+ import { t as Se } from "./BaseLegendToggle-DsWphmIb.js";
16
+ import { t as Ce } from "./A11yDataTable-DdRsVULz.js";
17
+ import { t as we } from "./useUserOptionState-DK-_1ddE.js";
18
+ import { t as Te } from "./useChartAccessibility-DYqac8yF.js";
19
+ import { t as Ee } from "./Legend-C0xAnJdO.js";
20
+ import { t as De } from "./vue_ui_scatter-I0POnicu.js";
21
+ import { Fragment as v, Teleport as Oe, computed as y, createBlock as b, createCommentVNode as x, createElementBlock as S, createElementVNode as C, createSlots as ke, createTextVNode as Ae, createVNode as je, defineAsyncComponent as w, guardReactiveProps as T, mergeProps as Me, nextTick as Ne, normalizeClass as Pe, normalizeProps as E, normalizeStyle as D, onBeforeUnmount as Fe, onMounted as Ie, openBlock as O, ref as k, renderList as A, renderSlot as j, resolveDynamicComponent as Le, shallowRef as Re, toDisplayString as M, toRefs as ze, unref as N, watch as Be, withCtx as P } from "vue";
22
+ //#region src/components/vue-ui-scatter.vue
23
+ var Ve = /* @__PURE__ */ e({ default: () => fn }), He = ["id"], Ue = ["id"], We = {
24
+ key: 0,
25
+ class: "sr-only",
26
+ "aria-live": "polite",
27
+ "aria-atomic": "true"
28
+ }, Ge = ["id"], Ke = { style: { position: "relative" } }, qe = [
29
+ "xmlns",
30
+ "aria-describedby",
31
+ "viewBox"
32
+ ], Je = ["width", "height"], Ye = { key: 1 }, Xe = [
33
+ "x1",
34
+ "x2",
35
+ "y1",
36
+ "y2",
37
+ "stroke",
38
+ "stroke-width"
39
+ ], Ze = [
40
+ "x1",
41
+ "x2",
42
+ "y1",
43
+ "y2",
44
+ "stroke",
45
+ "stroke-width"
46
+ ], Qe = { key: 2 }, $e = [
47
+ "x1",
48
+ "x2",
49
+ "y1",
50
+ "y2",
51
+ "stroke",
52
+ "stroke-width"
53
+ ], et = ["opacity"], tt = [
54
+ "x1",
55
+ "x2",
56
+ "y1",
57
+ "y2",
58
+ "stroke",
59
+ "stroke-width"
60
+ ], nt = [
61
+ "x",
62
+ "y",
63
+ "font-size",
64
+ "fill",
65
+ "stroke"
66
+ ], rt = { key: 4 }, it = [
67
+ "x1",
68
+ "x2",
69
+ "y1",
70
+ "y2",
71
+ "stroke",
72
+ "stroke-width"
73
+ ], at = ["opacity"], ot = [
74
+ "x1",
75
+ "x2",
76
+ "y1",
77
+ "y2",
78
+ "stroke",
79
+ "stroke-width"
80
+ ], st = [
81
+ "x",
82
+ "y",
83
+ "font-size",
84
+ "fill",
85
+ "stroke"
86
+ ], ct = { key: 6 }, lt = [
87
+ "x",
88
+ "y",
89
+ "width",
90
+ "height",
91
+ "fill",
92
+ "stroke",
93
+ "stroke-width",
94
+ "rx"
95
+ ], ut = [
96
+ "x",
97
+ "y",
98
+ "width",
99
+ "height",
100
+ "onMouseenter"
101
+ ], dt = {
102
+ key: 2,
103
+ style: { "pointer-events": "none" }
104
+ }, ft = [
105
+ "x",
106
+ "y",
107
+ "width",
108
+ "height",
109
+ "fill",
110
+ "fill-opacity"
111
+ ], pt = [
112
+ "x1",
113
+ "x2",
114
+ "y2",
115
+ "stroke",
116
+ "stroke-dasharray",
117
+ "stroke-width"
118
+ ], mt = [
119
+ "x1",
120
+ "x2",
121
+ "y2",
122
+ "stroke",
123
+ "stroke-dasharray",
124
+ "stroke-width"
125
+ ], ht = [
126
+ "x",
127
+ "y",
128
+ "height",
129
+ "width",
130
+ "fill",
131
+ "stroke",
132
+ "stroke-width",
133
+ "rx"
134
+ ], gt = [
135
+ "x",
136
+ "y",
137
+ "width",
138
+ "height",
139
+ "onMouseenter"
140
+ ], _t = {
141
+ key: 2,
142
+ style: { "pointer-events": "none" }
143
+ }, vt = [
144
+ "x",
145
+ "y",
146
+ "width",
147
+ "height",
148
+ "fill",
149
+ "fill-opacity"
150
+ ], yt = [
151
+ "x1",
152
+ "x2",
153
+ "y1",
154
+ "y2",
155
+ "stroke",
156
+ "stroke-dasharray",
157
+ "stroke-width"
158
+ ], bt = [
159
+ "x1",
160
+ "x2",
161
+ "y1",
162
+ "y2",
163
+ "stroke",
164
+ "stroke-dasharray",
165
+ "stroke-width"
166
+ ], xt = {
167
+ key: 0,
168
+ style: { "pointer-events": "none" }
169
+ }, St = [
170
+ "d",
171
+ "stroke",
172
+ "stroke-width"
173
+ ], Ct = [
174
+ "d",
175
+ "stroke",
176
+ "stroke-width"
177
+ ], wt = [
178
+ "d",
179
+ "stroke",
180
+ "stroke-width"
181
+ ], Tt = [
182
+ "d",
183
+ "stroke",
184
+ "stroke-width"
185
+ ], Et = { key: 7 }, Dt = [
186
+ "points",
187
+ "fill",
188
+ "stroke-width",
189
+ "stroke-dasharray",
190
+ "stroke"
191
+ ], Ot = {
192
+ key: 0,
193
+ class: "vue-ui-scatter-datapoint"
194
+ }, kt = [
195
+ "cx",
196
+ "cy",
197
+ "r",
198
+ "fill",
199
+ "stroke",
200
+ "stroke-width",
201
+ "onMouseover",
202
+ "onMouseleave",
203
+ "onClick"
204
+ ], At = { key: 1 }, jt = [
205
+ "transform",
206
+ "font-size",
207
+ "fill",
208
+ "onMouseover",
209
+ "onMouseleave",
210
+ "onClick"
211
+ ], Mt = ["clip-path"], Nt = [
212
+ "d",
213
+ "fill",
214
+ "stroke",
215
+ "stroke-width",
216
+ "stroke-opacity"
217
+ ], Pt = {
218
+ key: 0,
219
+ style: { "pointer-events": "none" }
220
+ }, Ft = [
221
+ "x",
222
+ "y",
223
+ "width",
224
+ "height"
225
+ ], It = {
226
+ key: 0,
227
+ style: { "pointer-events": "none !important" }
228
+ }, Lt = [
229
+ "x1",
230
+ "x2",
231
+ "y1",
232
+ "y2",
233
+ "stroke",
234
+ "stroke-width",
235
+ "stroke-dasharray"
236
+ ], Rt = [
237
+ "x1",
238
+ "x2",
239
+ "y1",
240
+ "y2",
241
+ "stroke",
242
+ "stroke-width",
243
+ "stroke-dasharray"
244
+ ], zt = [
245
+ "x",
246
+ "y",
247
+ "font-size",
248
+ "fill",
249
+ "font-weight",
250
+ "text-anchor"
251
+ ], Bt = [
252
+ "x",
253
+ "y",
254
+ "font-size",
255
+ "fill",
256
+ "font-weight"
257
+ ], Vt = [
258
+ "x",
259
+ "y",
260
+ "font-size",
261
+ "fill"
262
+ ], Ht = [
263
+ "x",
264
+ "y",
265
+ "font-size",
266
+ "fill"
267
+ ], Ut = [
268
+ "cx",
269
+ "cy",
270
+ "r",
271
+ "fill",
272
+ "stroke",
273
+ "stroke-width"
274
+ ], Wt = [
275
+ "cx",
276
+ "cy",
277
+ "r",
278
+ "fill",
279
+ "stroke",
280
+ "stroke-width"
281
+ ], Gt = [
282
+ "x",
283
+ "y",
284
+ "font-size",
285
+ "fill",
286
+ "font-weight",
287
+ "text-anchor"
288
+ ], Kt = [
289
+ "id",
290
+ "transform",
291
+ "font-size",
292
+ "font-weight",
293
+ "fill"
294
+ ], qt = [
295
+ "font-size",
296
+ "fill",
297
+ "transform"
298
+ ], Jt = [
299
+ "transform",
300
+ "font-size",
301
+ "fill"
302
+ ], Yt = [
303
+ "x",
304
+ "y",
305
+ "font-size",
306
+ "fill"
307
+ ], Xt = [
308
+ "x",
309
+ "y",
310
+ "font-size",
311
+ "fill"
312
+ ], Zt = [
313
+ "font-size",
314
+ "font-weight",
315
+ "fill",
316
+ "x",
317
+ "y"
318
+ ], Qt = ["id"], $t = [
319
+ "x",
320
+ "y",
321
+ "width",
322
+ "height"
323
+ ], en = {
324
+ key: 14,
325
+ style: { pointerEvents: "none" }
326
+ }, tn = [
327
+ "x1",
328
+ "x2",
329
+ "y1",
330
+ "y2",
331
+ "stroke-dasharray",
332
+ "stroke",
333
+ "stroke-width",
334
+ "clip-path"
335
+ ], nn = [
336
+ "x",
337
+ "y",
338
+ "fill",
339
+ "font-size",
340
+ "font-weight"
341
+ ], rn = {
342
+ key: 0,
343
+ style: {
344
+ position: "absolute",
345
+ top: "100%",
346
+ left: "0",
347
+ width: "100%"
348
+ },
349
+ "data-dom-to-png-ignore": "",
350
+ "aria-hidden": "true"
351
+ }, an = {
352
+ key: 6,
353
+ class: "vue-data-ui-watermark"
354
+ }, on = ["id"], sn = ["onClick"], cn = {
355
+ key: 0,
356
+ style: {
357
+ width: "100%",
358
+ display: "flex",
359
+ "align-items": "center",
360
+ "justify-content": "center"
361
+ }
362
+ }, ln = {
363
+ viewBox: "0 0 20 20",
364
+ height: "20",
365
+ width: "20",
366
+ style: {
367
+ overflow: "hidden",
368
+ background: "transparent"
369
+ }
370
+ }, un = { key: 0 }, dn = ["innerHTML"], fn = /*#__PURE__*/ ve({
371
+ __name: "vue-ui-scatter",
372
+ props: {
373
+ config: {
374
+ type: Object,
375
+ default() {
376
+ return {};
377
+ }
378
+ },
379
+ dataset: {
380
+ type: Array,
381
+ default() {
382
+ return [];
383
+ }
384
+ }
385
+ },
386
+ emits: ["copyAlt", "selectLegend"],
387
+ setup(e, { expose: ve, emit: Ve }) {
388
+ let fn = w(() => import("./Tooltip-CA1rtSyl.js")), pn = w(() => import("./BaseIcon-CP5RWnqt.js").then((e) => e.n)), mn = w(() => import("./vue-ui-accordion-nNxnZTg9.js").then((e) => e.n)), hn = w(() => import("./DataTable-DzPEVvSo.js")), gn = w(() => import("./PenAndPaper-CSMVXpg2.js").then((e) => e.t)), _n = w(() => import("./UserOptions-B69xBEVP.js").then((e) => e.n)), vn = w(() => import("./PackageVersion-1MNr72Bz.js").then((e) => e.t)), yn = w(() => import("./BaseDraggableDialog-3n8udWmh.js").then((e) => e.n)), { vue_ui_scatter: bn } = ce(), { isThemeValid: xn, warnInvalidTheme: Sn } = me(), F = e, Cn = Ve, wn = y(() => !!F.dataset && F.dataset.length), I = k(a()), Tn = k(!1), En = k(""), Dn = k(0), L = k(null), On = k(null), kn = k(null), An = k(null), jn = k(null), Mn = k(0), Nn = k(0), Pn = k(0), R = k([]), Fn = k(!1), In = k(null), Ln = k(null), Rn = k(null), zn = k(null), Bn = k(!1), Vn = k(!1), Hn = k(null), Un = k(null), Wn = k(null), Gn = k(null), Kn = k(null), qn = k(null), Jn = k(null), Yn = k({
389
+ x: 0,
390
+ y: 0
391
+ }), Xn = k("pointer"), Zn = k(!1), Qn = k(null), z = k(lr()), $n = y(() => z.value.userOptions.useCursorPointer);
392
+ function er(e = 100, t = .8, n = {}) {
393
+ let { meanX: r = 0, sdX: i = 1, meanY: a = 0, sdY: o = 1, seed: s } = n, c = (s ?? Math.floor(Math.random() * 2 ** 31)) >>> 0, l = () => (c = c * 1664525 + 1013904223 >>> 0, c / 2 ** 32), u = () => {
394
+ let e = 0, t = 0;
395
+ for (; e === 0;) e = l();
396
+ for (; t === 0;) t = l();
397
+ return Math.sqrt(-2 * Math.log(e)) * Math.cos(2 * Math.PI * t);
398
+ }, d = e / 2, f = Array.from({ length: d }, u), p = Array.from({ length: d }, u), m = (e) => e.reduce((e, t) => e + t, 0) / e.length, ee = m(f), h = m(p);
399
+ for (let e = 0; e < d; e += 1) f[e] -= ee, p[e] -= h;
400
+ let te = (e, t) => e.reduce((e, n, r) => e + n * t[r], 0), g = (e) => te(e, e), ne = te(p, f) / g(f), re = p.map((e, t) => e - ne * f[t]), ie = g(f) / d, ae = g(re) / d, oe = Math.sqrt((1 - t * t) * ie / ae), _ = f.map((e, n) => t * e + oe * re[n]), se = f.concat(f.map((e) => -e)), ce = _.concat(_.map((e) => -e)), le = (e) => Math.sqrt(g(e) / e.length), ue = (e, t, n) => {
401
+ let r = le(e);
402
+ return e.map((e) => n + (r ? e / r * t : 0));
403
+ }, de = ue(se, i, r), fe = ue(ce, o, a);
404
+ for (let e = de.length - 1; e > 0; --e) {
405
+ let t = Math.floor(l() * (e + 1));
406
+ [de[e], de[t]] = [de[t], de[e]], [fe[e], fe[t]] = [fe[t], fe[e]];
407
+ }
408
+ return de.map((e, t) => ({
409
+ x: e,
410
+ y: fe[t]
411
+ }));
412
+ }
413
+ let tr = y(() => ne({
414
+ defaultConfig: {
415
+ userOptions: { show: !1 },
416
+ table: { show: !1 },
417
+ useCssAnimation: !1,
418
+ style: {
419
+ backgroundColor: "#99999930",
420
+ layout: {
421
+ axis: { stroke: "#6A6A6A" },
422
+ correlation: { label: { show: !1 } },
423
+ dataLabels: {
424
+ xAxis: { show: !1 },
425
+ yAxis: { show: !1 }
426
+ },
427
+ marginalBars: { fill: "#99999960" },
428
+ padding: {
429
+ top: 12,
430
+ right: 12,
431
+ bottom: 12,
432
+ left: 12
433
+ },
434
+ plots: { stroke: "#6A6A6A" }
435
+ },
436
+ legend: { backgroundColor: "transparent" }
437
+ }
438
+ },
439
+ userConfig: z.value.skeletonConfig ?? {}
440
+ })), { loading: nr, FINAL_DATASET: rr, manualLoading: ir } = ue({
441
+ ...ze(F),
442
+ FINAL_CONFIG: z,
443
+ prepareConfig: lr,
444
+ skeletonDataset: F.config?.skeletonDataset ?? [{
445
+ name: "",
446
+ color: "#999999",
447
+ values: er(100, .5, { seed: 42 })
448
+ }],
449
+ skeletonConfig: ne({
450
+ defaultConfig: z.value,
451
+ userConfig: tr.value
452
+ })
453
+ }), { userOptionsVisible: ar, setUserOptionsVisibility: or, keepUserOptionState: sr } = we({ config: z.value }), { svgRef: cr } = Te({ config: z.value.style.title });
454
+ function lr() {
455
+ let e = pe({
456
+ userConfig: F.config,
457
+ defaultConfig: bn
458
+ }), t = e.theme;
459
+ if (!t) return e;
460
+ if (!xn.value(e)) return Sn(e), e;
461
+ let n = pe({
462
+ userConfig: De[t] || F.config,
463
+ defaultConfig: e
464
+ }), r = pe({
465
+ userConfig: F.config,
466
+ defaultConfig: n
467
+ });
468
+ return {
469
+ ...r,
470
+ customPalette: r.customPalette.length ? r.customPalette : i[t] || s
471
+ };
472
+ }
473
+ Be(() => F.config, (e) => {
474
+ nr.value || (z.value = lr()), ar.value = !z.value.userOptions.showOnChartHover, pr(), Mn.value += 1, Nn.value += 1, Pn.value += 1, B.value.showTable = z.value.table.show, B.value.showTooltip = z.value.style.tooltip.show, fr.value && z.value.usePerformanceMode && console.warn("VueUiScatter : You are using performance mode\n\n- downsampling is disabled in this mode, all plots are rendered\n\n- plot significance is not active in this mode (all plots have the same opacity) \n\n- Depending on plot density, shapes might not display a border (stroke) to avoid fuzziness \n\nℹ️ To remove this warning, set config.debug to false.");
475
+ }, { deep: !0 }), Be(() => F.dataset, (e) => {
476
+ Array.isArray(e) && e.length > 0 && (ir.value = !1);
477
+ }, { deep: !0 });
478
+ let ur = Re(null), dr = Re(null);
479
+ Ie(async () => {
480
+ pr(), await Ne(), Fn.value = !0;
481
+ });
482
+ let fr = y(() => !!z.value.debug);
483
+ function pr() {
484
+ if (t(F.dataset) && (m({
485
+ componentName: "VueUiScatter",
486
+ type: "dataset",
487
+ debug: fr.value
488
+ }), ir.value = !0), t(F.dataset) || (ir.value = z.value.loading), z.value.responsive) {
489
+ let e = ye(() => {
490
+ let { width: e, height: t } = be({
491
+ chart: L.value,
492
+ title: z.value.style.title.text ? On.value : null,
493
+ legend: z.value.style.legend.show ? kn.value : null,
494
+ source: An.value,
495
+ noTitle: jn.value
496
+ });
497
+ requestAnimationFrame(() => {
498
+ V.value.width = e, V.value.height = t;
499
+ });
500
+ });
501
+ ur.value && (dr.value && ur.value.unobserve(dr.value), ur.value.disconnect()), ur.value = new ResizeObserver(e), dr.value = L.value.parentNode, ur.value.observe(dr.value);
502
+ }
503
+ }
504
+ Fe(() => {
505
+ ur.value && (dr.value && ur.value.unobserve(dr.value), ur.value.disconnect());
506
+ });
507
+ let { isPrinting: mr, isImaging: hr, generatePdf: gr, generateImage: _r } = le({
508
+ elementId: `vue-ui-scatter_${I.value}`,
509
+ fileName: z.value.style.title.text || "vue-ui-scatter",
510
+ options: z.value.userOptions.print
511
+ }), vr = y(() => z.value.userOptions.show && !z.value.style.title.text), yr = y(() => n(z.value.customPalette)), B = k({
512
+ showTable: z.value.table.show,
513
+ showTooltip: z.value.style.tooltip.show
514
+ });
515
+ Be(z, () => {
516
+ B.value = {
517
+ showTable: z.value.table.show,
518
+ showTooltip: z.value.style.tooltip.show
519
+ };
520
+ }, { immediate: !0 });
521
+ let V = k({
522
+ height: z.value.style.layout.height,
523
+ width: z.value.style.layout.width
524
+ }), br = y(() => z.value.style.layout.marginalBars.show ? z.value.style.layout.marginalBars.size + z.value.style.layout.marginalBars.offset : 0);
525
+ function xr() {
526
+ let e = 0;
527
+ if (z.value.style.layout.dataLabels.yAxis.scales.show && Kn.value) try {
528
+ e = Array.from(Kn.value.querySelectorAll("text")).reduce((e, t) => {
529
+ let n = t.getComputedTextLength();
530
+ return n > e ? n : e;
531
+ }, 0);
532
+ } catch {
533
+ e = 0;
534
+ }
535
+ let t = 0;
536
+ if (Hn.value) try {
537
+ t = Hn.value.getBBox().width;
538
+ } catch {
539
+ t = 0;
540
+ }
541
+ return Math.max(t, e ? e + 12 : 0);
542
+ }
543
+ function Sr() {
544
+ let e = 0;
545
+ if (Un.value) try {
546
+ let t = Un.value.getBBox(), n = t.x + t.width - V.value.width;
547
+ e = n > 0 ? n + 6 : 0;
548
+ } catch {
549
+ e = 0;
550
+ }
551
+ let t = 0;
552
+ if (z.value.style.layout.dataLabels.xAxis.scales.show && qn.value) try {
553
+ t = Array.from(qn.value.querySelectorAll("text")).reduce((e, t) => {
554
+ let n = t.getBBox(), r = n.x + n.width - V.value.width, i = r > 0 ? r + 6 : 0;
555
+ return i > e ? i : e;
556
+ }, 0);
557
+ } catch {
558
+ t = 0;
559
+ }
560
+ return e > t ? e : t;
561
+ }
562
+ let H = y(() => {
563
+ let e = 0, t = 0, n = 0;
564
+ if (e = xr(), t = Sr(), Gn.value) try {
565
+ n = Gn.value.getBBox().height + 6;
566
+ } catch {
567
+ n = 0;
568
+ }
569
+ return {
570
+ top: z.value.style.layout.padding.top + br.value + z.value.style.layout.dataLabels.yAxis.fontSize * 2,
571
+ right: V.value.width - z.value.style.layout.padding.right - br.value - 6 - t,
572
+ bottom: V.value.height - z.value.style.layout.padding.bottom - n,
573
+ left: z.value.style.layout.padding.left + e,
574
+ height: V.value.height - z.value.style.layout.padding.top - z.value.style.layout.padding.bottom - br.value - n - z.value.style.layout.dataLabels.yAxis.fontSize * 2,
575
+ width: V.value.width - z.value.style.layout.padding.left - z.value.style.layout.padding.right - br.value - e - t - 6
576
+ };
577
+ }), Cr = y(() => {
578
+ rr.value.forEach((e, t) => {
579
+ ee({
580
+ datasetObject: e,
581
+ requiredAttributes: ["values"]
582
+ }).forEach((e) => {
583
+ m({
584
+ componentName: "VueUiScatter",
585
+ type: "datasetSerieAttribute",
586
+ property: e,
587
+ index: t
588
+ });
589
+ }), e.values && e.values.forEach((e, n) => {
590
+ ee({
591
+ datasetObject: e,
592
+ requiredAttributes: ["x", "y"]
593
+ }).forEach((e) => {
594
+ m({
595
+ componentName: "VueUiScatter",
596
+ type: "datasetSerieAttribute",
597
+ property: `values.${e}`,
598
+ index: `${t} - ${n}`
599
+ });
600
+ });
601
+ });
602
+ });
603
+ let e = Math.min(...G.value.filter((e) => !R.value.includes(e.id)).flatMap((e) => e.values.map((e) => e.x))), t = Math.max(...G.value.filter((e) => !R.value.includes(e.id)).flatMap((e) => e.values.map((e) => e.x))), n = Math.min(...G.value.filter((e) => !R.value.includes(e.id)).flatMap((e) => e.values.map((e) => e.y))), r = Math.max(...G.value.filter((e) => !R.value.includes(e.id)).flatMap((e) => e.values.map((e) => e.y)));
604
+ return {
605
+ xMin: e < 0 ? e : 0,
606
+ xMax: t,
607
+ yMin: n < 0 ? n : 0,
608
+ yMax: r
609
+ };
610
+ }), wr = y(() => {
611
+ let e = z.value.style.layout.axis;
612
+ return {
613
+ xMin: e.xMin !== null && e.xMin !== void 0 ? e.xMin : Cr.value.xMin,
614
+ xMax: e.xMax !== null && e.xMax !== void 0 ? e.xMax : Cr.value.xMax,
615
+ yMin: e.yMin !== null && e.yMin !== void 0 ? e.yMin : Cr.value.yMin,
616
+ yMax: e.yMax !== null && e.yMax !== void 0 ? e.yMax : Cr.value.yMax
617
+ };
618
+ });
619
+ function Tr(e) {
620
+ return Number.isFinite(e) ? e < 2 ? 2 : Math.trunc(e) : 5;
621
+ }
622
+ function Er(e) {
623
+ return e.roundingValue !== void 0 && e.roundingValue !== null ? e.roundingValue : e.rounding !== void 0 && e.rounding !== null ? e.rounding : 0;
624
+ }
625
+ function Dr({ minimum: e, maximum: t, stepCount: n, useNiceScale: r }) {
626
+ let i = Tr(n);
627
+ if (e === t) {
628
+ let n = t + (e === 0 ? 1 : Math.abs(e) * .01);
629
+ return (r ? h : f)(e, n, i);
630
+ }
631
+ return (r ? h : f)(e, t, i);
632
+ }
633
+ let Or = y(() => {
634
+ let e = z.value.style.layout.dataLabels.xAxis;
635
+ return Dr({
636
+ minimum: wr.value.xMin,
637
+ maximum: wr.value.xMax,
638
+ stepCount: e.scales.steps,
639
+ useNiceScale: e.scales.useNiceScale
640
+ });
641
+ }), kr = y(() => {
642
+ let e = z.value.style.layout.dataLabels.yAxis;
643
+ return Dr({
644
+ minimum: wr.value.yMin,
645
+ maximum: wr.value.yMax,
646
+ stepCount: e.scales.steps,
647
+ useNiceScale: e.scales.useNiceScale
648
+ });
649
+ }), U = y(() => ({
650
+ xMin: Or.value.min,
651
+ xMax: Or.value.max,
652
+ yMin: kr.value.min,
653
+ yMax: kr.value.max
654
+ })), Ar = y(() => {
655
+ let e = z.value.style.layout.dataLabels.xAxis, t = e.scales.labels;
656
+ return Or.value.ticks.map((n) => ({
657
+ value: n,
658
+ x: Pr(n),
659
+ label: g(t.formatter, _(n), d({
660
+ p: z.value.style.layout.plots.selectors.labels.prefix,
661
+ v: _(n),
662
+ s: z.value.style.layout.plots.selectors.labels.suffix,
663
+ r: Er(e)
664
+ }))
665
+ }));
666
+ }), jr = y(() => {
667
+ let e = z.value.style.layout.dataLabels.yAxis, t = e.scales.labels;
668
+ return kr.value.ticks.map((n) => ({
669
+ value: n,
670
+ y: Fr(n),
671
+ label: g(t.formatter, _(n), d({
672
+ p: z.value.style.layout.plots.selectors.labels.prefix,
673
+ v: _(n),
674
+ s: z.value.style.layout.plots.selectors.labels.suffix,
675
+ r: Er(e)
676
+ }))
677
+ }));
678
+ }), Mr = y(() => Jr.value.length > 0 && z.value.style.layout.dataLabels.xAxis.scales.show), Nr = y(() => Jr.value.length > 0 && z.value.style.layout.dataLabels.yAxis.scales.show);
679
+ function Pr(e) {
680
+ let t = U.value.xMax - U.value.xMin;
681
+ return t === 0 ? H.value.left : H.value.left + (e - U.value.xMin) / t * H.value.width;
682
+ }
683
+ function Fr(e) {
684
+ let t = U.value.yMax - U.value.yMin;
685
+ return t === 0 ? H.value.bottom : H.value.bottom - (e - U.value.yMin) / t * H.value.height;
686
+ }
687
+ let W = y(() => {
688
+ let { xMin: e, xMax: t, yMin: n, yMax: r } = U.value, i = e > 0 ? e : t < 0 ? t : 0, a = n > 0 ? n : r < 0 ? r : 0;
689
+ return {
690
+ x: Pr(i),
691
+ y: Fr(a)
692
+ };
693
+ }), G = y(() => rr.value.map((e, t) => {
694
+ let n = `cluster_${I.value}_${t}`;
695
+ return {
696
+ ...e,
697
+ values: ae({
698
+ data: e.values,
699
+ threshold: z.value.usePerformanceMode ? e.values.length + 1 : z.value.downsample.threshold
700
+ }),
701
+ id: n,
702
+ color: e.color ? e.color : yr.value[t] || s[t] || s[t % s.length],
703
+ opacity: R.value.includes(n) ? .5 : 1,
704
+ shape: e.shape ?? "circle",
705
+ segregate: () => ti(n),
706
+ isSegregated: R.value.includes(n),
707
+ hasGroupSelection: !!Ur.value,
708
+ isGroupSelected: Ur.value === n,
709
+ onEnter: () => Gr(n),
710
+ onLeave: () => Kr()
711
+ };
712
+ })), Ir = y(() => ({
713
+ cy: "scatter-div-legend",
714
+ backgroundColor: z.value.style.legend.backgroundColor,
715
+ color: z.value.style.legend.color,
716
+ fontSize: z.value.style.legend.fontSize,
717
+ paddingBottom: 12,
718
+ fontWeight: z.value.style.legend.bold ? "bold" : ""
719
+ })), Lr = y(() => G.value.map((e, t) => ({
720
+ ...e,
721
+ plots: e.values.map((n, r) => ({
722
+ x: Pr(n.x),
723
+ y: Fr(n.y),
724
+ v: {
725
+ ...n,
726
+ name: n.name || ""
727
+ },
728
+ clusterName: e.name,
729
+ clusterId: e.id,
730
+ color: e.color ? e.color : yr.value[t] || s[t] || s[t % s.length],
731
+ id: `plot_${I.value}_${t}_${r}`,
732
+ weight: n.weight ?? z.value.style.layout.plots.radius
733
+ }))
734
+ })).filter((e) => !R.value.includes(e.id))), K = y(() => {
735
+ let e = 1e-9, t = ({ m: t, b: n, rect: r, verticalX: i = null }) => {
736
+ let { left: a, right: o, top: s, bottom: c } = r, l = [], u = (e, t) => {
737
+ Number.isFinite(e) && Number.isFinite(t) && l.push({
738
+ x: e,
739
+ y: t
740
+ });
741
+ }, d = ({ x: t, y: n }) => t >= a - e && t <= o + e && n >= s - e && n <= c + e;
742
+ i === null ? Number.isFinite(t) && (u(a, t * a + n), u(o, t * o + n), Math.abs(t) > e ? (u((s - n) / t, s), u((c - n) / t, c)) : n >= s - e && n <= c + e && (u(a, n), u(o, n))) : i >= a - e && i <= o + e && (u(i, s), u(i, c));
743
+ let f = l.filter(d), p = [];
744
+ for (let e of f) p.some((t) => Math.abs(t.x - e.x) < 1e-6 && Math.abs(t.y - e.y) < 1e-6) || p.push(e);
745
+ if (p.length < 2) return null;
746
+ let m = p[0], ee = p[1], h = 0;
747
+ for (let e = 0; e < p.length; e += 1) for (let t = e + 1; t < p.length; t += 1) {
748
+ let n = p[e].x - p[t].x, r = p[e].y - p[t].y, i = n * n + r * r;
749
+ i > h && (h = i, m = p[e], ee = p[t]);
750
+ }
751
+ return {
752
+ x1: m.x,
753
+ y1: m.y,
754
+ x2: ee.x,
755
+ y2: ee.y
756
+ };
757
+ };
758
+ return Lr.value.map((n) => {
759
+ let r = n.plots.length, i = n.plots.reduce((e, t) => e + t.x, 0) / r, a = n.plots.reduce((e, t) => e + t.y, 0) / r, o = 0, s = 0, c = 0;
760
+ for (let e of n.plots) {
761
+ let t = e.x - i, n = e.y - a;
762
+ o += t * n, s += t * t, c += n * n;
763
+ }
764
+ let l, u, d = null;
765
+ s < e ? (d = i, l = Infinity, u = null) : (l = o / s, u = a - l * i);
766
+ let f, p;
767
+ d === null ? (f = l, p = u) : (f = Infinity, p = null);
768
+ let m = n.plots.every((e) => e.v && typeof e.v.x == "number" && typeof e.v.y == "number"), ee = NaN;
769
+ if (r >= 2) {
770
+ let t = 0, o = 0;
771
+ m ? (t = n.plots.reduce((e, t) => e + t.v.x, 0) / r, o = n.plots.reduce((e, t) => e + t.v.y, 0) / r) : (t = i, o = -a);
772
+ let s = 0, c = 0, l = 0;
773
+ for (let e of n.plots) {
774
+ let n = m ? e.v.x : e.x, r = m ? e.v.y : -e.y, i = n - t, a = r - o;
775
+ s += i * a, c += i * i, l += a * a;
776
+ }
777
+ if (c >= e && l >= e) {
778
+ let e = s / Math.sqrt(c * l);
779
+ ee = Math.max(-1, Math.min(1, e));
780
+ }
781
+ }
782
+ let h = t({
783
+ m: f,
784
+ b: p,
785
+ rect: H.value,
786
+ verticalX: d
787
+ });
788
+ if (!h) return {
789
+ ...n,
790
+ correlation: null,
791
+ label: null,
792
+ plots: n.plots.map((e) => ({
793
+ ...e,
794
+ deviation: 0,
795
+ shape: n.shape,
796
+ color: oe(n.color)
797
+ }))
798
+ };
799
+ let te = {
800
+ x: (h.x1 + h.x2) / 2,
801
+ y: (h.y1 + h.y2) / 2
802
+ };
803
+ return {
804
+ ...n,
805
+ color: oe(n.color),
806
+ correlation: {
807
+ ...h,
808
+ coefficient: ee
809
+ },
810
+ label: te,
811
+ plots: n.plots.map((t) => {
812
+ let r, i;
813
+ d === null ? Math.abs(f) < e ? (r = t.x, i = p) : (r = (t.x + f * t.y - f * p) / (1 + f * f), i = (f * t.x + f * f * t.y + p) / (1 + f * f)) : (r = d, i = t.y);
814
+ let a = t.x - r, o = t.y - i, s = Math.sqrt(a * a + o * o);
815
+ return {
816
+ ...t,
817
+ deviation: s,
818
+ shape: n.shape,
819
+ color: oe(n.color)
820
+ };
821
+ })
822
+ };
823
+ });
824
+ }), Rr = y(() => Math.max(...K.value.flatMap((e) => e.plots.map((e) => Math.abs(e.deviation)))));
825
+ function zr() {
826
+ return K.value;
827
+ }
828
+ function Br(e, t) {
829
+ let n = Array.isArray(e) ? e.flatMap((e) => e.plots.map((e) => ({
830
+ x: e.x,
831
+ y: e.y
832
+ }))) : e.plots.map((e) => ({
833
+ x: e.x,
834
+ y: e.y
835
+ })), r = Infinity, i = -Infinity, a = Infinity, o = -Infinity;
836
+ n.forEach(({ x: e, y: t }) => {
837
+ r = Math.min(r, e), i = Math.max(i, e), a = Math.min(a, t), o = Math.max(o, t);
838
+ });
839
+ let s = i - r, c = o - a, l = s / t, u = c / t, d = Array(t).fill(0), f = Array(t).fill(0);
840
+ n.forEach(({ x: e, y: t }) => {
841
+ let n = Math.floor((e - r) / l), i = Math.floor((t - a) / u);
842
+ d[n] || (d[n] = 0), f[i] || (f[i] = 0), d[n] += 1, f[i] += 1;
843
+ });
844
+ let p = [], m = [];
845
+ for (let e = 0; e < t; e += 1) p.push(r + (e + .5) * l), m.push(a + (e + .5) * u);
846
+ return {
847
+ x: d,
848
+ y: f,
849
+ avgX: p,
850
+ avgY: m,
851
+ maxX: Math.max(...d),
852
+ maxY: Math.max(...f)
853
+ };
854
+ }
855
+ let q = y(() => z.value.style.layout.marginalBars.tranches), J = y(() => Br(Lr.value, q.value)), Vr = y(() => {
856
+ let e = H.value.top - z.value.style.layout.marginalBars.offset, t = H.value.right + z.value.style.layout.marginalBars.offset;
857
+ return Lr.value.map((n) => {
858
+ let r = Br(n, q.value);
859
+ return {
860
+ coords: r,
861
+ dX: o(r.avgX.map((t, n) => ({
862
+ x: t,
863
+ y: e - r.x[n] / r.maxX * z.value.style.layout.marginalBars.size
864
+ }))),
865
+ dY: c(r.avgY.map((e, n) => ({
866
+ y: e,
867
+ x: t + z.value.style.layout.marginalBars.size * r.y[n] / r.maxY
868
+ }))),
869
+ color: n.color,
870
+ id: n.id
871
+ };
872
+ });
873
+ }), Y = k(void 0), X = k(null), Z = k([]), Hr = k(null), Ur = k(void 0);
874
+ function Wr() {
875
+ Tn.value = !1, Y.value = void 0, Z.value = [], X.value = null, Qn.value = null, Jn.value = null, Ur.value = void 0;
876
+ }
877
+ function Gr(e) {
878
+ let t = K.value.find((t) => t.id === e);
879
+ if (!t) {
880
+ Z.value = [];
881
+ return;
882
+ }
883
+ Z.value = t.plots.map((e) => e.id), Ur.value = e;
884
+ }
885
+ function Kr() {
886
+ Z.value = [], Ur.value = void 0;
887
+ }
888
+ function qr(e) {
889
+ if (!cr.value || !e) return;
890
+ let t = u(e.x, e.y, cr.value);
891
+ t && (Yn.value = t);
892
+ }
893
+ let Jr = y(() => X.value ? [X.value] : Z.value.length ? K.value.flatMap((e) => e.plots).filter((e) => Z.value.includes(e.id)) : []);
894
+ function Yr(e) {
895
+ let t = z.value.style.layout.dataLabels.xAxis, n = t.scales.labels;
896
+ return g(n.formatter, _(e.v.x), d({
897
+ p: z.value.style.layout.plots.selectors.labels.prefix,
898
+ v: _(e.v.x),
899
+ s: z.value.style.layout.plots.selectors.labels.suffix,
900
+ r: Er(t)
901
+ }), { datapoint: e });
902
+ }
903
+ function Xr(e) {
904
+ let t = z.value.style.layout.dataLabels.yAxis, n = t.scales.labels;
905
+ return g(n.formatter, _(e.v.y), d({
906
+ p: z.value.style.layout.plots.selectors.labels.prefix,
907
+ v: _(e.v.y),
908
+ s: z.value.style.layout.plots.selectors.labels.suffix,
909
+ r: Er(t)
910
+ }), { datapoint: e });
911
+ }
912
+ function Zr(e, t, n = "pointer", r = null) {
913
+ Y.value = e.id, X.value = e, Xn.value = n, Qn.value = r, Jn.value = e.id;
914
+ let i = "";
915
+ z.value.events.datapointEnter && z.value.events.datapointEnter({
916
+ datapoint: e,
917
+ seriesIndex: t
918
+ }), Hr.value = {
919
+ datapoint: e,
920
+ seriesIndex: t,
921
+ series: K.value,
922
+ config: z.value
923
+ };
924
+ let a = z.value.style.tooltip.customFormat;
925
+ p(a) && re(() => a({
926
+ datapoint: e,
927
+ seriesIndex: t,
928
+ series: K.value,
929
+ config: z.value
930
+ })) ? En.value = a({
931
+ datapoint: e,
932
+ seriesIndex: t,
933
+ series: K.value,
934
+ config: z.value
935
+ }) : (e.clusterName && (i += `<div style="display:flex;gap:3px;align-items:center">${e.clusterName}</div>`), e.v.name && (i += `<div>${e.v.name}</div>`), i += `<div style="text-align:left;margin-top:6px;padding-top:6px;border-top:1px solid ${z.value.style.tooltip.borderColor}">`, i += `<div>${z.value.style.layout.dataLabels.xAxis.name}: <b>${isNaN(e.v.x) ? "-" : g(z.value.style.layout.plots.selectors.labels.x.formatter, e.v.x, d({
936
+ p: z.value.style.tooltip.prefix,
937
+ v: e.v.x,
938
+ s: z.value.style.tooltip.suffix,
939
+ r: z.value.style.tooltip.roundingValue
940
+ }), {
941
+ datapoint: e,
942
+ seriesIndex: t
943
+ })}</b></div>`, i += `<div>${z.value.style.layout.dataLabels.yAxis.name}: <b>${isNaN(e.v.y) ? "-" : g(z.value.style.layout.plots.selectors.labels.y.formatter, e.v.y, d({
944
+ p: z.value.style.tooltip.prefix,
945
+ v: e.v.y,
946
+ s: z.value.style.tooltip.suffix,
947
+ r: z.value.style.tooltip.roundingValue
948
+ }), {
949
+ datapoint: e,
950
+ seriesIndex: t
951
+ })}</b></div>`, i += `${z.value.style.layout.plots.deviation.translation}: <b>${d({
952
+ v: e.deviation,
953
+ r: z.value.style.layout.plots.deviation.roundingValue
954
+ })}</b>`, i += "</div>", En.value = `<div>${i}</div>`), Tn.value = !0, n === "keyboard" && Ne(() => {
955
+ qr(e);
956
+ });
957
+ }
958
+ function Qr(e, t) {
959
+ z.value.events.datapointLeave && z.value.events.datapointLeave({
960
+ datapoint: e,
961
+ seriesIndex: t
962
+ }), !(Xn.value === "keyboard" && Jn.value === e?.id) && (Tn.value = !1, Y.value = void 0, X.value = null);
963
+ }
964
+ function $r(e, t) {
965
+ z.value.events.datapointClick && z.value.events.datapointClick({
966
+ datapoint: e,
967
+ seriesIndex: t
968
+ });
969
+ }
970
+ function ei() {
971
+ R.value.length ? R.value = [] : G.value.forEach((e) => {
972
+ R.value.push(e.id);
973
+ }), Cn("selectLegend", Lr.value);
974
+ }
975
+ function ti(e) {
976
+ R.value.includes(e) ? R.value = R.value.filter((t) => t !== e) : R.value.length < rr.value.length - 1 && R.value.push(e), Cn("selectLegend", Lr.value);
977
+ }
978
+ function ni(e) {
979
+ return G.value.length ? G.value.find((t) => t.name === e) || (z.value.debug && console.warn(`VueUiScatter - Series name not found "${e}"`), null) : (z.value.debug && console.warn("VueUiScatter - There are no series to show."), null);
980
+ }
981
+ function ri(e) {
982
+ let t = ni(e);
983
+ t !== null && R.value.includes(t.id) && ti(t.id);
984
+ }
985
+ function ii(e) {
986
+ let t = ni(e);
987
+ t !== null && (R.value.includes(t.id) || ti(t.id));
988
+ }
989
+ function ai(e = null) {
990
+ Ne(() => {
991
+ let t = [
992
+ "",
993
+ z.value.table.translations.correlationCoefficient,
994
+ z.value.table.translations.nbrPlots,
995
+ `${z.value.style.layout.dataLabels.xAxis.name} ${z.value.table.translations.average}`,
996
+ `${z.value.style.layout.dataLabels.yAxis.name} ${z.value.table.translations.average}`
997
+ ], n = K.value.map((e) => [
998
+ e.name,
999
+ e.correlation.coefficient,
1000
+ e.plots.length,
1001
+ e.plots.map((e) => e.v.x).reduce((e, t) => e + t, 0) / e.plots.length,
1002
+ e.plots.map((e) => e.v.y).reduce((e, t) => e + t, 0) / e.plots.length
1003
+ ]), i = r([
1004
+ [z.value.style.title.text],
1005
+ [z.value.style.title.subtitle.text],
1006
+ [
1007
+ [""],
1008
+ [""],
1009
+ [""]
1010
+ ],
1011
+ t
1012
+ ].concat(n));
1013
+ e ? e(i) : l({
1014
+ csvContent: i,
1015
+ title: z.value.style.title.text || "vue-ui-heatmap"
1016
+ });
1017
+ });
1018
+ }
1019
+ let oi = y(() => {
1020
+ let e = [
1021
+ z.value.table.translations.series,
1022
+ z.value.table.translations.correlationCoefficient,
1023
+ z.value.table.translations.nbrPlots,
1024
+ `${z.value.style.layout.dataLabels.xAxis.name} ${z.value.table.translations.average}`,
1025
+ `${z.value.style.layout.dataLabels.yAxis.name} ${z.value.table.translations.average}`
1026
+ ], t = K.value.map((e) => [
1027
+ {
1028
+ shape: e.shape,
1029
+ content: e.name ?? "-",
1030
+ color: e.color
1031
+ },
1032
+ Number((e.correlation?.coefficient ?? 0).toFixed(z.value.table.td.roundingValue)).toLocaleString(),
1033
+ e.plots.length.toLocaleString(),
1034
+ Number((e.plots.map((e) => e.v.x ?? 0).reduce((e, t) => e + t, 0) / e.plots.length).toFixed(z.value.table.td.roundingAverage)).toLocaleString(),
1035
+ Number((e.plots.map((e) => e.v.y ?? 0).reduce((e, t) => e + t, 0) / e.plots.length).toFixed(z.value.table.td.roundingAverage)).toLocaleString()
1036
+ ]);
1037
+ return {
1038
+ head: e,
1039
+ body: t,
1040
+ a11yBody: t.map((e) => e.map((e, t) => t === 0 ? e.content : e)),
1041
+ config: {
1042
+ th: {
1043
+ backgroundColor: z.value.table.th.backgroundColor,
1044
+ color: z.value.table.th.color,
1045
+ outline: z.value.table.th.outline
1046
+ },
1047
+ td: {
1048
+ backgroundColor: z.value.table.td.backgroundColor,
1049
+ color: z.value.table.td.color,
1050
+ outline: z.value.table.td.outline
1051
+ },
1052
+ breakpoint: z.value.table.responsiveBreakpoint
1053
+ },
1054
+ colNames: e
1055
+ };
1056
+ }), si = k(!1);
1057
+ function ci(e) {
1058
+ si.value = e, Dn.value += 1;
1059
+ }
1060
+ function li() {
1061
+ B.value.showTable = !B.value.showTable;
1062
+ }
1063
+ function ui() {
1064
+ B.value.showTooltip = !B.value.showTooltip;
1065
+ }
1066
+ let di = k(!1);
1067
+ function fi() {
1068
+ di.value = !di.value;
1069
+ }
1070
+ async function pi({ scale: e = 2 } = {}) {
1071
+ if (!L.value) return;
1072
+ let { width: t, height: n } = L.value.getBoundingClientRect(), r = t / n, { imageUri: i, base64: a } = await he({
1073
+ domElement: L.value,
1074
+ base64: !0,
1075
+ img: !0,
1076
+ scale: e
1077
+ });
1078
+ return {
1079
+ imageUri: i,
1080
+ base64: a,
1081
+ title: z.value.style.title.text,
1082
+ width: t,
1083
+ height: n,
1084
+ aspectRatio: r
1085
+ };
1086
+ }
1087
+ function mi(e) {
1088
+ In.value = e, z.value.style.layout.marginalBars.highlighter.highlightBothAxes && (Ln.value = J.value.y.length - 2 - e);
1089
+ }
1090
+ function hi(e) {
1091
+ Ln.value = e, z.value.style.layout.marginalBars.highlighter.highlightBothAxes && (In.value = e);
1092
+ }
1093
+ function gi() {
1094
+ In.value = null, Ln.value = null;
1095
+ }
1096
+ let _i = {
1097
+ circle: 1,
1098
+ square: 1,
1099
+ diamond: 1,
1100
+ triangle: 1.2,
1101
+ star: 1.3,
1102
+ pentagon: 1.3,
1103
+ hexagon: 1.3
1104
+ }, Q = (e) => e.toFixed(3);
1105
+ function vi({ shape: e = "circle", cx: t, cy: n, r }) {
1106
+ if (!z.value.usePerformanceMode) return "";
1107
+ let i = _i[e] * r;
1108
+ switch (e) {
1109
+ case "circle": {
1110
+ let e = Q(t - i), r = Q(n), a = Q(t + i), o = Q(i);
1111
+ return `M ${e} ${r} A ${o} ${o} 0 1 0 ${a} ${r} A ${o} ${o} 0 1 0 ${e} ${r} Z`;
1112
+ }
1113
+ case "square": {
1114
+ let e = Q(t - i), r = Q(n - i), a = Q(t + i), o = Q(n + i);
1115
+ return `M ${e} ${r} L ${a} ${r} L ${a} ${o} L ${e} ${o} Z`;
1116
+ }
1117
+ case "diamond": {
1118
+ let e = Q(t), r = Q(n);
1119
+ return `M ${e} ${Q(n - i)} L ${Q(t + i)} ${r} L ${e} ${Q(n + i)} L ${Q(t - i)} ${r} Z`;
1120
+ }
1121
+ case "triangle": {
1122
+ let e = i * Math.sqrt(3), r = t, a = n - 2 / 3 * e, o = t - i, s = n + 1 / 3 * e, c = t + i, l = s;
1123
+ return `M ${Q(r)} ${Q(a)} L ${Q(o)} ${Q(s)} L ${Q(c)} ${Q(l)} Z`;
1124
+ }
1125
+ case "star": {
1126
+ let e = i, r = i * .5, a = [];
1127
+ for (let i = 0; i < 10; i += 1) {
1128
+ let o = (-90 + i * 36) * Math.PI / 180, s = i % 2 == 0 ? e : r;
1129
+ a.push([t + s * Math.cos(o), n + s * Math.sin(o)]);
1130
+ }
1131
+ let o = `M ${Q(a[0][0])} ${Q(a[0][1])}`;
1132
+ for (let e = 1; e < a.length; e += 1) o += ` L ${Q(a[e][0])} ${Q(a[e][1])}`;
1133
+ return o + " Z";
1134
+ }
1135
+ case "pentagon": {
1136
+ let e = [];
1137
+ for (let r = 0; r < 5; r += 1) {
1138
+ let a = (-90 + 360 / 5 * r) * Math.PI / 180;
1139
+ e.push([t + i * Math.cos(a), n + i * Math.sin(a)]);
1140
+ }
1141
+ let r = `M ${Q(e[0][0])} ${Q(e[0][1])}`;
1142
+ for (let t = 1; t < 5; t += 1) r += ` L ${Q(e[t][0])} ${Q(e[t][1])}`;
1143
+ return r + " Z";
1144
+ }
1145
+ case "hexagon": {
1146
+ let e = [];
1147
+ for (let r = 0; r < 6; r += 1) {
1148
+ let a = (-60 + 360 / 6 * r) * Math.PI / 180;
1149
+ e.push([t + i * Math.cos(a), n + i * Math.sin(a)]);
1150
+ }
1151
+ let r = `M ${Q(e[0][0])} ${Q(e[0][1])}`;
1152
+ for (let t = 1; t < 6; t += 1) r += ` L ${Q(e[t][0])} ${Q(e[t][1])}`;
1153
+ return r + " Z";
1154
+ }
1155
+ default: {
1156
+ let e = Q(t - i), r = Q(n), a = Q(t + i), o = Q(i);
1157
+ return `M ${e} ${r} A ${o} ${o} 0 1 0 ${a} ${r} A ${o} ${o} 0 1 0 ${e} ${r} Z`;
1158
+ }
1159
+ }
1160
+ }
1161
+ let yi = y(() => {
1162
+ if (!z.value.usePerformanceMode) return [""];
1163
+ let { left: e, right: t, top: n, bottom: r } = H.value, i = Math.max(1, (t - e) * (r - n)), a = (e) => e / i * 1e4, o = z.value.style.layout.plots.stroke, s = z.value.style.layout.plots.strokeWidth, c = z.value.style.layout.plots.opacity;
1164
+ return K.value.map((i) => {
1165
+ let l = [];
1166
+ for (let a of i.plots) {
1167
+ let o = a.x, s = a.y;
1168
+ if (o < e || o > t || s < n || s > r) continue;
1169
+ let c = Math.max(z.value.style.layout.plots.radius, a.weight);
1170
+ l.push(vi({
1171
+ shape: i.shape || "circle",
1172
+ cx: o,
1173
+ cy: s,
1174
+ r: c
1175
+ }));
1176
+ }
1177
+ if (!l.length) return null;
1178
+ let u = a(i.plots.length) > 2.5 || i.plots.length > 1e3;
1179
+ return {
1180
+ id: i.id,
1181
+ d: l.join(""),
1182
+ fill: se(i.color, c * 100),
1183
+ stroke: u ? "none" : o,
1184
+ strokeWidth: u ? 0 : s,
1185
+ strokeOpacity: 1
1186
+ };
1187
+ }).filter(Boolean);
1188
+ });
1189
+ function bi() {
1190
+ return z.value.usePerformanceMode ? (e) => {
1191
+ let t = cr.value;
1192
+ if (!t) return;
1193
+ let n = t.createSVGPoint();
1194
+ n.x = e.clientX, n.y = e.clientY;
1195
+ let r = t.getScreenCTM();
1196
+ if (!r) return;
1197
+ let i = r.inverse(), a = n.matrixTransform(i), o = null, s = Infinity, c = -1;
1198
+ if (K.value.forEach((e, t) => {
1199
+ e.plots.forEach((e) => {
1200
+ let n = e.x - a.x, r = e.y - a.y, i = n * n + r * r;
1201
+ i <= 64 && i < s && (s = i, o = e, c = t);
1202
+ });
1203
+ }), o) Y.value !== o.id && (Y.value = o.id, Zr(o, c, "pointer", $.value.get(o.id) ?? null));
1204
+ else if (Y.value) {
1205
+ let e = X.value;
1206
+ Y.value = void 0, Qr(e, c);
1207
+ }
1208
+ } : () => null;
1209
+ }
1210
+ let xi = bi();
1211
+ function Si() {
1212
+ if (Y.value) {
1213
+ let e = X.value;
1214
+ Y.value = void 0, Qr(e, null);
1215
+ }
1216
+ }
1217
+ function Ci(e) {
1218
+ let t = X.value;
1219
+ if (t) {
1220
+ let e = K.value.findIndex((e) => e.id === t.clusterId);
1221
+ $r(t, e >= 0 ? e : 0);
1222
+ }
1223
+ }
1224
+ let wi = y(() => {
1225
+ let e = z.value.table.useDialog && !z.value.table.show, t = B.value.showTable;
1226
+ return {
1227
+ component: e ? yn : mn,
1228
+ title: `${z.value.style.title.text}${z.value.style.title.subtitle.text ? `: ${z.value.style.title.subtitle.text}` : ""}`,
1229
+ props: e ? {
1230
+ backgroundColor: z.value.table.th.backgroundColor,
1231
+ color: z.value.table.th.color,
1232
+ headerColor: z.value.table.th.color,
1233
+ headerBg: z.value.table.th.backgroundColor,
1234
+ isFullscreen: si.value,
1235
+ fullscreenParent: L.value,
1236
+ forcedWidth: Math.min(800, window.innerWidth * .8),
1237
+ isCursorPointer: $n.value
1238
+ } : {
1239
+ hideDetails: !0,
1240
+ config: {
1241
+ open: t,
1242
+ maxHeight: 1e4,
1243
+ body: {
1244
+ backgroundColor: z.value.style.backgroundColor,
1245
+ color: z.value.style.color
1246
+ },
1247
+ head: {
1248
+ backgroundColor: z.value.style.backgroundColor,
1249
+ color: z.value.style.color
1250
+ }
1251
+ }
1252
+ }
1253
+ };
1254
+ });
1255
+ Be(() => B.value.showTable, (e) => {
1256
+ z.value.table.show || (e && z.value.table.useDialog && Rn.value ? Rn.value.open() : "close" in Rn.value && Rn.value.close());
1257
+ });
1258
+ function Ti() {
1259
+ B.value.showTable = !1, zn.value && zn.value.setTableIconState(!1);
1260
+ }
1261
+ let Ei = y(() => z.value.style.backgroundColor), Di = y(() => z.value.style.legend), { exportSvg: Oi, getSvg: ki } = fe({
1262
+ svg: cr,
1263
+ title: y(() => z.value.style.title),
1264
+ legend: Di,
1265
+ legendItems: G,
1266
+ backgroundColor: Ei
1267
+ });
1268
+ async function Ai({ isCb: e }) {
1269
+ Vn.value = !0, await Ne();
1270
+ try {
1271
+ if (e) {
1272
+ let { blob: e, url: t, text: n, dataUrl: r } = await ki();
1273
+ await Promise.resolve(z.value.userOptions.callbacks.svg({
1274
+ blob: e,
1275
+ url: t,
1276
+ text: n,
1277
+ dataUrl: r
1278
+ }));
1279
+ } else await Promise.resolve(Oi());
1280
+ } finally {
1281
+ Vn.value = !1;
1282
+ }
1283
+ }
1284
+ function ji(e) {
1285
+ if (e?.stage === "start") {
1286
+ Bn.value = !0;
1287
+ return;
1288
+ }
1289
+ if (e?.stage === "end") {
1290
+ Bn.value = !1;
1291
+ return;
1292
+ }
1293
+ _r();
1294
+ }
1295
+ async function Mi() {
1296
+ if (Cn("copyAlt", {
1297
+ config: z.value,
1298
+ dataset: Lr.value
1299
+ }), !z.value.userOptions.callbacks.altCopy) {
1300
+ console.warn("Vue Data UI - A callback must be set for `altCopy` in userOptions.");
1301
+ return;
1302
+ }
1303
+ await Promise.resolve(z.value.userOptions.callbacks.altCopy({
1304
+ config: z.value,
1305
+ dataset: Lr.value
1306
+ }));
1307
+ }
1308
+ function Ni(e, t) {
1309
+ let n = Ri.value.filter((t) => t.id !== e.id);
1310
+ if (!n.length) return null;
1311
+ let r = ((n) => {
1312
+ if (!n.length) return null;
1313
+ let r = null, i = Infinity;
1314
+ return n.forEach((n) => {
1315
+ let a = n.x - e.x, o = n.y - e.y, s = 0, c = 0;
1316
+ t === "right" || t === "left" ? (s = Math.abs(a), c = Math.abs(o)) : (s = Math.abs(o), c = Math.abs(a));
1317
+ let l = s * 1e3 + c;
1318
+ l < i && (r = n, i = l);
1319
+ }), r;
1320
+ })(n.filter((n) => t === "right" ? n.x > e.x : t === "left" ? n.x < e.x : t === "down" ? n.y > e.y : t === "up" && n.y < e.y));
1321
+ if (r) return r;
1322
+ let i = [];
1323
+ if (t === "right") {
1324
+ let e = Math.min(...n.map((e) => e.x));
1325
+ i = n.filter((t) => t.x === e);
1326
+ }
1327
+ if (t === "left") {
1328
+ let e = Math.max(...n.map((e) => e.x));
1329
+ i = n.filter((t) => t.x === e);
1330
+ }
1331
+ if (t === "down") {
1332
+ let e = Math.min(...n.map((e) => e.y));
1333
+ i = n.filter((t) => t.y === e);
1334
+ }
1335
+ if (t === "up") {
1336
+ let e = Math.max(...n.map((e) => e.y));
1337
+ i = n.filter((t) => t.y === e);
1338
+ }
1339
+ return i.length ? i.reduce((n, r) => {
1340
+ if (!n) return r;
1341
+ let i = Math.abs(t === "right" || t === "left" ? n.y - e.y : n.x - e.x);
1342
+ return Math.abs(t === "right" || t === "left" ? r.y - e.y : r.x - e.x) < i ? r : n;
1343
+ }, null) : null;
1344
+ }
1345
+ function Pi() {
1346
+ Qn.value = null, Jn.value = null, Zn.value = !0;
1347
+ }
1348
+ function Fi() {
1349
+ Wr(), Xn.value = "pointer", Zn.value = !1;
1350
+ }
1351
+ function Ii(e) {
1352
+ if (!cr.value || di.value || document.activeElement !== cr.value || !Ri.value.length) return;
1353
+ let t = e.key === "ArrowLeft", n = e.key === "ArrowRight", r = e.key === "ArrowUp", i = e.key === "ArrowDown", a = e.key === "Enter" || e.key === " ", o = e.key === "Escape";
1354
+ if (!t && !n && !r && !i && !a && !o) return;
1355
+ if (e.preventDefault(), e.stopPropagation(), o) {
1356
+ Wr(), Xn.value = "pointer";
1357
+ return;
1358
+ }
1359
+ if (a) {
1360
+ if (Qn.value === null) return;
1361
+ let e = Ri.value[Qn.value];
1362
+ if (!e) return;
1363
+ $r(e, e.seriesIndex);
1364
+ return;
1365
+ }
1366
+ let s = null;
1367
+ if (n && (s = "right"), t && (s = "left"), i && (s = "down"), r && (s = "up"), Jn.value === null) {
1368
+ let e = X.value;
1369
+ if (e && e.id) {
1370
+ let t = Ni(e, s);
1371
+ if (!t) {
1372
+ let t = $.value.get(e.id);
1373
+ if (t === void 0) return;
1374
+ Zr(e, e.seriesIndex, "keyboard", t);
1375
+ return;
1376
+ }
1377
+ let n = $.value.get(t.id);
1378
+ if (n === void 0) return;
1379
+ Zr(t, t.seriesIndex, "keyboard", n);
1380
+ return;
1381
+ }
1382
+ let t = Ri.value[0];
1383
+ if (!t) return;
1384
+ let n = $.value.get(t.id) ?? 0;
1385
+ Zr(t, t.seriesIndex, "keyboard", n);
1386
+ return;
1387
+ }
1388
+ let c = $.value.get(Jn.value);
1389
+ if (c === void 0) return;
1390
+ let l = Ri.value[c];
1391
+ if (!l) return;
1392
+ let u = Ni(l, s);
1393
+ if (!u) return;
1394
+ let d = $.value.get(u.id);
1395
+ d !== void 0 && Zr(u, u.seriesIndex, "keyboard", d);
1396
+ }
1397
+ let Li = y(() => {
1398
+ if (!X.value) return "";
1399
+ let e = X.value, t = isNaN(e.v.x) ? "-" : g(z.value.style.layout.plots.selectors.labels.x.formatter, e.v.x, d({
1400
+ p: z.value.style.tooltip.prefix,
1401
+ v: e.v.x,
1402
+ s: z.value.style.tooltip.suffix,
1403
+ r: z.value.style.tooltip.roundingValue
1404
+ }), {
1405
+ datapoint: e,
1406
+ seriesIndex: e.seriesIndex
1407
+ }), n = isNaN(e.v.y) ? "-" : g(z.value.style.layout.plots.selectors.labels.y.formatter, e.v.y, d({
1408
+ p: z.value.style.tooltip.prefix,
1409
+ v: e.v.y,
1410
+ s: z.value.style.tooltip.suffix,
1411
+ r: z.value.style.tooltip.roundingValue
1412
+ }), {
1413
+ datapoint: e,
1414
+ seriesIndex: e.seriesIndex
1415
+ });
1416
+ return [
1417
+ e.clusterName || "",
1418
+ e.v.name || "",
1419
+ `${z.value.style.layout.dataLabels.xAxis.name}: ${t}`,
1420
+ `${z.value.style.layout.dataLabels.yAxis.name}: ${n}`
1421
+ ].filter(Boolean).join(". ");
1422
+ }), Ri = y(() => K.value.flatMap((e, t) => e.plots.map((n) => ({
1423
+ ...n,
1424
+ seriesIndex: t,
1425
+ seriesId: e.id,
1426
+ seriesName: e.name,
1427
+ shape: e.shape || "circle",
1428
+ color: e.color
1429
+ })))), $ = y(() => {
1430
+ let e = /* @__PURE__ */ new Map();
1431
+ return Ri.value.forEach((t, n) => {
1432
+ e.set(t.id, n);
1433
+ }), e;
1434
+ }), zi = y(() => ({
1435
+ headers: oi.value?.colNames ?? [],
1436
+ rows: oi.value?.a11yBody ?? []
1437
+ }));
1438
+ return ve({
1439
+ getData: zr,
1440
+ getImage: pi,
1441
+ generatePdf: gr,
1442
+ generateCsv: ai,
1443
+ generateImage: _r,
1444
+ generateSvg: Ai,
1445
+ hideSeries: ii,
1446
+ showSeries: ri,
1447
+ toggleTable: li,
1448
+ toggleTooltip: ui,
1449
+ toggleAnnotator: fi,
1450
+ toggleFullscreen: ci,
1451
+ copyAlt: Mi
1452
+ }), (e, t) => (O(), S("div", {
1453
+ class: Pe(`vue-data-ui-component vue-ui-scatter ${si.value ? "vue-data-ui-wrapper-fullscreen" : ""} ${z.value.useCssAnimation ? "" : "vue-ui-dna"}`),
1454
+ ref_key: "scatterChart",
1455
+ ref: L,
1456
+ id: `vue-ui-scatter_${I.value}`,
1457
+ style: D(`font-family:${z.value.style.fontFamily};width:100%; text-align:center;background:${z.value.style.backgroundColor};${z.value.responsive ? "height: 100%" : ""}`),
1458
+ onMouseenter: t[5] ||= () => N(or)(!0),
1459
+ onMouseleave: t[6] ||= () => {
1460
+ N(or)(!1), Zn.value || Wr();
1461
+ }
1462
+ }, [
1463
+ C("div", {
1464
+ id: `chart-instructions-${I.value}`,
1465
+ class: "sr-only"
1466
+ }, [C("p", null, M(z.value.a11y.translations.keyboardNavigation), 1)], 8, Ue),
1467
+ B.value.showTooltip ? x("", !0) : (O(), S("div", We, M(Li.value), 1)),
1468
+ zi.value?.rows?.length && wn.value ? (O(), b(Ce, {
1469
+ key: 1,
1470
+ uid: I.value,
1471
+ head: zi.value.headers,
1472
+ body: zi.value.rows,
1473
+ notice: z.value.a11y.translations.tableAvailable,
1474
+ caption: z.value.a11y.translations.tableCaption
1475
+ }, null, 8, [
1476
+ "uid",
1477
+ "head",
1478
+ "body",
1479
+ "notice",
1480
+ "caption"
1481
+ ])) : x("", !0),
1482
+ z.value.userOptions.buttons.annotator ? (O(), b(N(gn), {
1483
+ key: 2,
1484
+ svgRef: N(cr),
1485
+ backgroundColor: z.value.style.backgroundColor,
1486
+ color: z.value.style.color,
1487
+ active: di.value,
1488
+ isCursorPointer: $n.value,
1489
+ onClose: fi
1490
+ }, {
1491
+ "annotator-action-close": P(() => [j(e.$slots, "annotator-action-close", {}, void 0, !0)]),
1492
+ "annotator-action-color": P(({ color: t }) => [j(e.$slots, "annotator-action-color", E(T({ color: t })), void 0, !0)]),
1493
+ "annotator-action-draw": P(({ mode: t }) => [j(e.$slots, "annotator-action-draw", E(T({ mode: t })), void 0, !0)]),
1494
+ "annotator-action-undo": P(({ disabled: t }) => [j(e.$slots, "annotator-action-undo", E(T({ disabled: t })), void 0, !0)]),
1495
+ "annotator-action-redo": P(({ disabled: t }) => [j(e.$slots, "annotator-action-redo", E(T({ disabled: t })), void 0, !0)]),
1496
+ "annotator-action-delete": P(({ disabled: t }) => [j(e.$slots, "annotator-action-delete", E(T({ disabled: t })), void 0, !0)]),
1497
+ _: 3
1498
+ }, 8, [
1499
+ "svgRef",
1500
+ "backgroundColor",
1501
+ "color",
1502
+ "active",
1503
+ "isCursorPointer"
1504
+ ])) : x("", !0),
1505
+ vr.value ? (O(), S("div", {
1506
+ key: 3,
1507
+ ref_key: "noTitle",
1508
+ ref: jn,
1509
+ class: "vue-data-ui-no-title-space",
1510
+ style: "height:36px; width: 100%;background:transparent"
1511
+ }, null, 512)) : x("", !0),
1512
+ z.value.style.title.text ? (O(), S("div", {
1513
+ key: 4,
1514
+ ref_key: "chartTitle",
1515
+ ref: On,
1516
+ style: "width:100%;background:transparent"
1517
+ }, [(O(), b(ge, {
1518
+ key: `title_${Mn.value}`,
1519
+ config: {
1520
+ title: {
1521
+ cy: "scatter-div-title",
1522
+ ...z.value.style.title
1523
+ },
1524
+ subtitle: {
1525
+ cy: "scatter-div-subtitle",
1526
+ ...z.value.style.title.subtitle
1527
+ }
1528
+ }
1529
+ }, null, 8, ["config"]))], 512)) : x("", !0),
1530
+ C("div", { id: `legend-top-${I.value}` }, null, 8, Ge),
1531
+ z.value.userOptions.show && wn.value && (N(sr) || N(ar)) ? (O(), b(N(_n), {
1532
+ ref_key: "userOptionsRef",
1533
+ ref: zn,
1534
+ key: `user_options_${Dn.value}`,
1535
+ backgroundColor: z.value.style.backgroundColor,
1536
+ color: z.value.style.color,
1537
+ isImaging: N(hr),
1538
+ isPrinting: N(mr),
1539
+ uid: I.value,
1540
+ hasTooltip: z.value.userOptions.buttons.tooltip && z.value.style.tooltip.show,
1541
+ hasPdf: z.value.userOptions.buttons.pdf,
1542
+ hasImg: z.value.userOptions.buttons.img,
1543
+ hasSvg: z.value.userOptions.buttons.svg,
1544
+ hasXls: z.value.userOptions.buttons.csv,
1545
+ hasTable: z.value.userOptions.buttons.table,
1546
+ hasFullscreen: z.value.userOptions.buttons.fullscreen,
1547
+ hasAltCopy: z.value.userOptions.buttons.altCopy,
1548
+ isTooltip: B.value.showTooltip,
1549
+ isFullscreen: si.value,
1550
+ titles: { ...z.value.userOptions.buttonTitles },
1551
+ chartElement: L.value,
1552
+ position: z.value.userOptions.position,
1553
+ hasAnnotator: z.value.userOptions.buttons.annotator,
1554
+ isAnnotation: di.value,
1555
+ callbacks: z.value.userOptions.callbacks,
1556
+ printScale: z.value.userOptions.print.scale,
1557
+ tableDialog: z.value.table.useDialog,
1558
+ isCursorPointer: $n.value,
1559
+ onToggleFullscreen: ci,
1560
+ onGeneratePdf: N(gr),
1561
+ onGenerateCsv: ai,
1562
+ onGenerateImage: ji,
1563
+ onGenerateSvg: Ai,
1564
+ onToggleTable: li,
1565
+ onToggleTooltip: ui,
1566
+ onToggleAnnotator: fi,
1567
+ onCopyAlt: Mi,
1568
+ style: D({ visibility: N(sr) ? N(ar) ? "visible" : "hidden" : "visible" })
1569
+ }, ke({ _: 2 }, [
1570
+ e.$slots.menuIcon ? {
1571
+ name: "menuIcon",
1572
+ fn: P(({ isOpen: t, color: n }) => [j(e.$slots, "menuIcon", E(T({
1573
+ isOpen: t,
1574
+ color: n
1575
+ })), void 0, !0)]),
1576
+ key: "0"
1577
+ } : void 0,
1578
+ e.$slots.optionTooltip ? {
1579
+ name: "optionTooltip",
1580
+ fn: P(() => [j(e.$slots, "optionTooltip", {}, void 0, !0)]),
1581
+ key: "1"
1582
+ } : void 0,
1583
+ e.$slots.optionPdf ? {
1584
+ name: "optionPdf",
1585
+ fn: P(() => [j(e.$slots, "optionPdf", {}, void 0, !0)]),
1586
+ key: "2"
1587
+ } : void 0,
1588
+ e.$slots.optionCsv ? {
1589
+ name: "optionCsv",
1590
+ fn: P(() => [j(e.$slots, "optionCsv", {}, void 0, !0)]),
1591
+ key: "3"
1592
+ } : void 0,
1593
+ e.$slots.optionImg ? {
1594
+ name: "optionImg",
1595
+ fn: P(() => [j(e.$slots, "optionImg", {}, void 0, !0)]),
1596
+ key: "4"
1597
+ } : void 0,
1598
+ e.$slots.optionSvg ? {
1599
+ name: "optionSvg",
1600
+ fn: P(() => [j(e.$slots, "optionSvg", {}, void 0, !0)]),
1601
+ key: "5"
1602
+ } : void 0,
1603
+ e.$slots.optionTable ? {
1604
+ name: "optionTable",
1605
+ fn: P(() => [j(e.$slots, "optionTable", {}, void 0, !0)]),
1606
+ key: "6"
1607
+ } : void 0,
1608
+ e.$slots.optionFullscreen ? {
1609
+ name: "optionFullscreen",
1610
+ fn: P(({ toggleFullscreen: t, isFullscreen: n }) => [j(e.$slots, "optionFullscreen", E(T({
1611
+ toggleFullscreen: t,
1612
+ isFullscreen: n
1613
+ })), void 0, !0)]),
1614
+ key: "7"
1615
+ } : void 0,
1616
+ e.$slots.optionAnnotator ? {
1617
+ name: "optionAnnotator",
1618
+ fn: P(({ toggleAnnotator: t, isAnnotator: n }) => [j(e.$slots, "optionAnnotator", E(T({
1619
+ toggleAnnotator: t,
1620
+ isAnnotator: n
1621
+ })), void 0, !0)]),
1622
+ key: "8"
1623
+ } : void 0,
1624
+ e.$slots.optionAltCopy ? {
1625
+ name: "optionAltCopy",
1626
+ fn: P(({ altCopy: t }) => [j(e.$slots, "optionAltCopy", E(T({ altCopy: t })), void 0, !0)]),
1627
+ key: "9"
1628
+ } : void 0,
1629
+ e.$slots["custom-menu-before"] ? {
1630
+ name: "custom-menu-before",
1631
+ fn: P(() => [j(e.$slots, "custom-menu-before", {}, void 0, !0)]),
1632
+ key: "10"
1633
+ } : void 0,
1634
+ e.$slots["custom-menu-after"] ? {
1635
+ name: "custom-menu-after",
1636
+ fn: P(() => [j(e.$slots, "custom-menu-after", {}, void 0, !0)]),
1637
+ key: "11"
1638
+ } : void 0
1639
+ ]), 1032, /* @__PURE__ */ "backgroundColor.color.isImaging.isPrinting.uid.hasTooltip.hasPdf.hasImg.hasSvg.hasXls.hasTable.hasFullscreen.hasAltCopy.isTooltip.isFullscreen.titles.chartElement.position.hasAnnotator.isAnnotation.callbacks.printScale.tableDialog.isCursorPointer.onGeneratePdf.style".split("."))) : x("", !0),
1640
+ C("div", Ke, [(O(), S("svg", {
1641
+ ref_key: "svgRef",
1642
+ ref: cr,
1643
+ xmlns: N(ie),
1644
+ "aria-describedby": `chart-instructions-${I.value}`,
1645
+ class: Pe({
1646
+ "vue-data-ui-fullscreen--on": si.value,
1647
+ "vue-data-ui-fulscreen--off": !si.value,
1648
+ animated: z.value.useCssAnimation
1649
+ }),
1650
+ viewBox: `0 0 ${V.value.width <= 0 ? 10 : V.value.width} ${V.value.height <= 0 ? 10 : V.value.height}`,
1651
+ style: D(`max-width:100%;overflow:visible;background:transparent;color:${z.value.style.color}`),
1652
+ onMouseleave: gi,
1653
+ tabindex: "0",
1654
+ onFocus: Pi,
1655
+ onBlur: Fi,
1656
+ onKeydown: Ii
1657
+ }, [
1658
+ je(N(vn)),
1659
+ e.$slots["chart-background"] ? (O(), S("foreignObject", {
1660
+ key: 0,
1661
+ x: 0,
1662
+ y: 0,
1663
+ width: V.value.width <= 0 ? 10 : V.value.width,
1664
+ height: V.value.height <= 0 ? 10 : V.value.height,
1665
+ style: { pointerEvents: "none" }
1666
+ }, [j(e.$slots, "chart-background", {}, void 0, !0)], 8, Je)) : x("", !0),
1667
+ z.value.style.layout.axis.show ? (O(), S("g", Ye, [C("line", {
1668
+ x1: W.value.x,
1669
+ x2: W.value.x,
1670
+ y1: H.value.top,
1671
+ y2: H.value.bottom,
1672
+ stroke: z.value.style.layout.axis.stroke,
1673
+ "stroke-width": z.value.style.layout.axis.strokeWidth,
1674
+ "stroke-linecap": "round"
1675
+ }, null, 8, Xe), C("line", {
1676
+ x1: H.value.left,
1677
+ x2: H.value.right,
1678
+ y1: W.value.y,
1679
+ y2: W.value.y,
1680
+ stroke: z.value.style.layout.axis.stroke,
1681
+ "stroke-width": z.value.style.layout.axis.strokeWidth,
1682
+ "stroke-linecap": "round"
1683
+ }, null, 8, Ze)])) : x("", !0),
1684
+ z.value.style.layout.dataLabels.xAxis.scales.verticalLines.show ? (O(), S("g", Qe, [(O(!0), S(v, null, A(Ar.value, (e, t) => (O(), S("line", {
1685
+ key: `scatter-x-scale-line-${I.value}-${t}`,
1686
+ x1: e.x,
1687
+ x2: e.x,
1688
+ y1: H.value.top,
1689
+ y2: H.value.bottom,
1690
+ stroke: z.value.style.layout.dataLabels.xAxis.scales.verticalLines.stroke,
1691
+ "stroke-width": z.value.style.layout.dataLabels.xAxis.scales.verticalLines.strokeWidth,
1692
+ "stroke-linecap": "round"
1693
+ }, null, 8, $e))), 128))])) : x("", !0),
1694
+ z.value.style.layout.dataLabels.xAxis.scales.show ? (O(), S("g", {
1695
+ key: 3,
1696
+ ref_key: "xAxisScaleLabels",
1697
+ ref: qn
1698
+ }, [(O(!0), S(v, null, A(Ar.value, (e, t) => (O(), S("g", {
1699
+ class: "vue-ui-scatter-scale-group",
1700
+ key: `scatter-x-scale-${I.value}-${t}`,
1701
+ opacity: +!Mr.value,
1702
+ style: { transition: "opacity 0.1s ease-in-out" }
1703
+ }, [C("line", {
1704
+ x1: e.x,
1705
+ x2: e.x,
1706
+ y1: W.value.y - 4,
1707
+ y2: W.value.y + 4,
1708
+ stroke: z.value.style.layout.axis.stroke,
1709
+ "stroke-width": z.value.style.layout.axis.strokeWidth,
1710
+ "stroke-linecap": "round"
1711
+ }, null, 8, tt), C("text", {
1712
+ x: e.x,
1713
+ y: W.value.y + z.value.style.layout.dataLabels.xAxis.scales.labels.fontSize + 6 + z.value.style.layout.dataLabels.xAxis.scales.labels.offsetY,
1714
+ "text-anchor": "middle",
1715
+ "font-size": z.value.style.layout.dataLabels.xAxis.scales.labels.fontSize,
1716
+ fill: z.value.style.layout.dataLabels.xAxis.scales.labels.color,
1717
+ stroke: z.value.style.backgroundColor,
1718
+ "stroke-width": "2",
1719
+ "paint-order": "stroke"
1720
+ }, M(e.label), 9, nt)], 8, et))), 128))], 512)) : x("", !0),
1721
+ z.value.style.layout.dataLabels.yAxis.scales.horizontalLines.show ? (O(), S("g", rt, [(O(!0), S(v, null, A(jr.value, (e, t) => (O(), S("line", {
1722
+ key: `scatter-y-scale-line-${I.value}-${t}`,
1723
+ x1: H.value.left,
1724
+ x2: H.value.right,
1725
+ y1: e.y,
1726
+ y2: e.y,
1727
+ stroke: z.value.style.layout.dataLabels.yAxis.scales.horizontalLines.stroke,
1728
+ "stroke-width": z.value.style.layout.dataLabels.yAxis.scales.horizontalLines.strokeWidth,
1729
+ "stroke-linecap": "round"
1730
+ }, null, 8, it))), 128))])) : x("", !0),
1731
+ z.value.style.layout.dataLabels.yAxis.scales.show ? (O(), S("g", {
1732
+ key: 5,
1733
+ ref_key: "yAxisScaleLabels",
1734
+ ref: Kn,
1735
+ opacity: +!Nr.value,
1736
+ style: { transition: "opacity 0.1s ease-in-out" },
1737
+ class: "vue-ui-scatter-scale-group"
1738
+ }, [(O(!0), S(v, null, A(jr.value, (e, t) => (O(), S("g", { key: `scatter-y-scale-${I.value}-${t}` }, [C("line", {
1739
+ x1: W.value.x - 4,
1740
+ x2: W.value.x + 4,
1741
+ y1: e.y,
1742
+ y2: e.y,
1743
+ stroke: z.value.style.layout.axis.stroke,
1744
+ "stroke-width": z.value.style.layout.axis.strokeWidth,
1745
+ "stroke-linecap": "round"
1746
+ }, null, 8, ot), C("text", {
1747
+ x: W.value.x - z.value.style.layout.dataLabels.yAxis.scales.labels.fontSize / 2 - 8 + z.value.style.layout.dataLabels.yAxis.scales.labels.offsetX,
1748
+ y: e.y + z.value.style.layout.dataLabels.yAxis.scales.labels.fontSize / 3,
1749
+ "text-anchor": "end",
1750
+ "font-size": z.value.style.layout.dataLabels.yAxis.scales.labels.fontSize,
1751
+ fill: z.value.style.layout.dataLabels.yAxis.scales.labels.color,
1752
+ stroke: z.value.style.backgroundColor,
1753
+ "stroke-width": "2",
1754
+ "paint-order": "stroke"
1755
+ }, M(e.label), 9, st)]))), 128))], 8, at)) : x("", !0),
1756
+ z.value.style.layout.marginalBars.show ? (O(), S("g", ct, [
1757
+ C("defs", null, [je(xe, {
1758
+ t: "linear",
1759
+ id: `marginal_x_${I.value}`,
1760
+ x1: "0%",
1761
+ y1: "0%",
1762
+ x2: "0%",
1763
+ y2: "100%",
1764
+ stops: [[
1765
+ "0%",
1766
+ z.value.style.layout.marginalBars.fill,
1767
+ 1
1768
+ ], [
1769
+ "100%",
1770
+ z.value.style.backgroundColor,
1771
+ 1
1772
+ ]]
1773
+ }, null, 8, ["id", "stops"]), je(xe, {
1774
+ t: "linear",
1775
+ id: `marginal_y_${I.value}`,
1776
+ x1: "0%",
1777
+ x2: "100%",
1778
+ y1: "0%",
1779
+ y2: "0%",
1780
+ stops: [[
1781
+ "0%",
1782
+ z.value.style.backgroundColor,
1783
+ 1
1784
+ ], [
1785
+ "100%",
1786
+ z.value.style.layout.marginalBars.fill,
1787
+ 1
1788
+ ]]
1789
+ }, null, 8, ["id", "stops"])]),
1790
+ (O(!0), S(v, null, A(J.value.x, (e, n) => (O(), S("g", null, [
1791
+ e && J.value.avgX[n] ? (O(), S("rect", {
1792
+ key: 0,
1793
+ x: J.value.avgX[n] - H.value.width / q.value / 2,
1794
+ y: H.value.top - z.value.style.layout.marginalBars.offset - e / J.value.maxX * z.value.style.layout.marginalBars.size,
1795
+ width: H.value.width / q.value <= 0 ? 1e-4 : H.value.width / q.value,
1796
+ height: e / J.value.maxX * z.value.style.layout.marginalBars.size <= 0 ? 1e-4 : e / J.value.maxX * z.value.style.layout.marginalBars.size,
1797
+ fill: z.value.style.layout.marginalBars.useGradient ? `url(#marginal_x_${I.value})` : z.value.style.layout.marginalBars.fill,
1798
+ style: D([`opacity:${z.value.style.layout.marginalBars.opacity}`, { "pointer-events": "none" }]),
1799
+ stroke: z.value.style.backgroundColor,
1800
+ "stroke-width": z.value.style.layout.marginalBars.strokeWidth,
1801
+ rx: z.value.style.layout.marginalBars.borderRadius
1802
+ }, null, 12, lt)) : x("", !0),
1803
+ J.value.avgX[n] ? (O(), S("rect", {
1804
+ key: 1,
1805
+ x: J.value.avgX[n] - H.value.width / q.value / 2,
1806
+ y: H.value.top - z.value.style.layout.marginalBars.offset - z.value.style.layout.marginalBars.size,
1807
+ width: H.value.width / q.value <= 0 ? 1e-4 : H.value.width / q.value,
1808
+ height: Math.max(.1, z.value.style.layout.marginalBars.size),
1809
+ fill: "transparent",
1810
+ onMouseenter: (e) => mi(n),
1811
+ onMouseleave: t[0] ||= (e) => gi()
1812
+ }, null, 40, ut)) : x("", !0),
1813
+ J.value.avgX[n] && In.value != null && In.value === n ? (O(), S("g", dt, [
1814
+ C("rect", {
1815
+ x: J.value.avgX[n] - H.value.width / q.value / 2,
1816
+ y: H.value.top,
1817
+ width: H.value.width / q.value <= 0 ? 1e-4 : H.value.width / q.value,
1818
+ height: H.value.height,
1819
+ fill: z.value.style.layout.marginalBars.highlighter.color,
1820
+ "fill-opacity": z.value.style.layout.marginalBars.highlighter.opacity
1821
+ }, null, 8, ft),
1822
+ C("line", {
1823
+ x1: J.value.avgX[n] - H.value.width / q.value / 2,
1824
+ x2: J.value.avgX[n] - H.value.width / q.value / 2,
1825
+ y1: 0,
1826
+ y2: H.value.top + H.value.height,
1827
+ stroke: z.value.style.layout.marginalBars.highlighter.stroke,
1828
+ "stroke-dasharray": z.value.style.layout.marginalBars.highlighter.strokeDasharray,
1829
+ "stroke-width": z.value.style.layout.marginalBars.highlighter.strokeWidth,
1830
+ style: {
1831
+ transition: "none !important",
1832
+ animation: "none !important"
1833
+ }
1834
+ }, null, 8, pt),
1835
+ C("line", {
1836
+ x1: J.value.avgX[n] - H.value.width / q.value / 2 + (H.value.width / q.value <= 0 ? 1e-4 : H.value.width / q.value),
1837
+ x2: J.value.avgX[n] - H.value.width / q.value / 2 + (H.value.width / q.value <= 0 ? 1e-4 : H.value.width / q.value),
1838
+ y1: 0,
1839
+ y2: H.value.top + H.value.height,
1840
+ stroke: z.value.style.layout.marginalBars.highlighter.stroke,
1841
+ "stroke-dasharray": z.value.style.layout.marginalBars.highlighter.strokeDasharray,
1842
+ "stroke-width": z.value.style.layout.marginalBars.highlighter.strokeWidth,
1843
+ style: {
1844
+ transition: "none !important",
1845
+ animation: "none !important"
1846
+ }
1847
+ }, null, 8, mt)
1848
+ ])) : x("", !0)
1849
+ ]))), 256)),
1850
+ (O(!0), S(v, null, A(J.value.y, (e, n) => (O(), S("g", null, [
1851
+ e && J.value.avgY[n] ? (O(), S("rect", {
1852
+ key: 0,
1853
+ x: H.value.right + z.value.style.layout.marginalBars.offset,
1854
+ y: J.value.avgY[n] - H.value.height / q.value / 2,
1855
+ height: H.value.height / q.value <= 0 ? 1e-4 : H.value.height / q.value,
1856
+ width: e / J.value.maxY * z.value.style.layout.marginalBars.size <= 0 ? 1e-4 : e / J.value.maxY * z.value.style.layout.marginalBars.size,
1857
+ fill: z.value.style.layout.marginalBars.useGradient ? `url(#marginal_y_${I.value})` : z.value.style.layout.marginalBars.fill,
1858
+ style: D([`opacity:${z.value.style.layout.marginalBars.opacity}`, { "pointer-events": "none" }]),
1859
+ stroke: z.value.style.backgroundColor,
1860
+ "stroke-width": z.value.style.layout.marginalBars.strokeWidth,
1861
+ rx: z.value.style.layout.marginalBars.borderRadius
1862
+ }, null, 12, ht)) : x("", !0),
1863
+ J.value.avgY[n] ? (O(), S("rect", {
1864
+ key: 1,
1865
+ x: H.value.right + z.value.style.layout.marginalBars.offset,
1866
+ y: J.value.avgY[n] - H.value.height / q.value / 2,
1867
+ width: Math.max(.1, z.value.style.layout.marginalBars.size),
1868
+ height: H.value.height / q.value <= 0 ? 1e-4 : H.value.height / q.value,
1869
+ fill: "transparent",
1870
+ onMouseenter: (e) => hi(n),
1871
+ onMouseleave: t[1] ||= (e) => gi()
1872
+ }, null, 40, gt)) : x("", !0),
1873
+ J.value.avgY[n] && Ln.value != null && Ln.value === n ? (O(), S("g", _t, [
1874
+ C("rect", {
1875
+ x: H.value.left,
1876
+ y: J.value.avgY[n] - H.value.height / q.value / 2,
1877
+ width: H.value.width,
1878
+ height: H.value.height / q.value <= 0 ? 1e-4 : H.value.height / q.value,
1879
+ fill: z.value.style.layout.marginalBars.highlighter.color,
1880
+ "fill-opacity": z.value.style.layout.marginalBars.highlighter.opacity
1881
+ }, null, 8, vt),
1882
+ C("line", {
1883
+ x1: H.value.left,
1884
+ x2: V.value.width,
1885
+ y1: J.value.avgY[n] - H.value.height / q.value / 2,
1886
+ y2: J.value.avgY[n] - H.value.height / q.value / 2,
1887
+ stroke: z.value.style.layout.marginalBars.highlighter.stroke,
1888
+ "stroke-dasharray": z.value.style.layout.marginalBars.highlighter.strokeDasharray,
1889
+ "stroke-width": z.value.style.layout.marginalBars.highlighter.strokeWidth,
1890
+ style: {
1891
+ transition: "none !important",
1892
+ animation: "none !important"
1893
+ }
1894
+ }, null, 8, yt),
1895
+ C("line", {
1896
+ x1: H.value.left,
1897
+ x2: V.value.width,
1898
+ y1: J.value.avgY[n] - H.value.height / q.value / 2 + (H.value.height / q.value <= 0 ? 1e-4 : H.value.height / q.value),
1899
+ y2: J.value.avgY[n] - H.value.height / q.value / 2 + (H.value.height / q.value <= 0 ? 1e-4 : H.value.height / q.value),
1900
+ stroke: z.value.style.layout.marginalBars.highlighter.stroke,
1901
+ "stroke-dasharray": z.value.style.layout.marginalBars.highlighter.strokeDasharray,
1902
+ "stroke-width": z.value.style.layout.marginalBars.highlighter.strokeWidth,
1903
+ style: {
1904
+ transition: "none !important",
1905
+ animation: "none !important"
1906
+ }
1907
+ }, null, 8, bt)
1908
+ ])) : x("", !0)
1909
+ ]))), 256)),
1910
+ z.value.style.layout.marginalBars.showLines ? (O(), S("g", xt, [(O(!0), S(v, null, A(Vr.value, (e) => (O(), S(v, null, [
1911
+ R.value.includes(e.id) ? x("", !0) : (O(), S("path", {
1912
+ key: 0,
1913
+ d: `M ${e.dX}`,
1914
+ stroke: z.value.style.backgroundColor,
1915
+ "stroke-width": z.value.style.layout.marginalBars.linesStrokeWidth + 1,
1916
+ "stroke-linecap": "round",
1917
+ "stroke-linejoin": "round",
1918
+ fill: "none"
1919
+ }, null, 8, St)),
1920
+ R.value.includes(e.id) ? x("", !0) : (O(), S("path", {
1921
+ key: 1,
1922
+ d: `M ${e.dX}`,
1923
+ stroke: e.color,
1924
+ "stroke-width": z.value.style.layout.marginalBars.linesStrokeWidth,
1925
+ "stroke-linecap": "round",
1926
+ "stroke-linejoin": "round",
1927
+ fill: "none"
1928
+ }, null, 8, Ct)),
1929
+ R.value.includes(e.id) ? x("", !0) : (O(), S("path", {
1930
+ key: 2,
1931
+ d: `M ${e.dY}`,
1932
+ stroke: z.value.style.backgroundColor,
1933
+ "stroke-width": z.value.style.layout.marginalBars.linesStrokeWidth + 1,
1934
+ "stroke-linecap": "round",
1935
+ "stroke-linejoin": "round",
1936
+ fill: "none"
1937
+ }, null, 8, wt)),
1938
+ R.value.includes(e.id) ? x("", !0) : (O(), S("path", {
1939
+ key: 3,
1940
+ d: `M ${e.dY}`,
1941
+ stroke: e.color,
1942
+ "stroke-width": z.value.style.layout.marginalBars.linesStrokeWidth,
1943
+ "stroke-linecap": "round",
1944
+ "stroke-linejoin": "round",
1945
+ fill: "none"
1946
+ }, null, 8, Tt))
1947
+ ], 64))), 256))])) : x("", !0)
1948
+ ])) : x("", !0),
1949
+ z.value.style.layout.plots.giftWrap.show ? (O(), S("g", Et, [(O(!0), S(v, null, A(K.value, (e, t) => (O(), S("g", null, [e.plots.length > 2 ? (O(), S("polygon", {
1950
+ key: 0,
1951
+ points: N(te)({ series: e.plots }),
1952
+ fill: N(se)(e.color, z.value.style.layout.plots.giftWrap.fillOpacity * 100),
1953
+ "stroke-width": z.value.style.layout.plots.giftWrap.strokeWidth,
1954
+ "stroke-dasharray": z.value.style.layout.plots.giftWrap.strokeDasharray,
1955
+ stroke: e.color,
1956
+ "stroke-linejoin": "round",
1957
+ "stroke-linecap": "round"
1958
+ }, null, 8, Dt)) : x("", !0)]))), 256))])) : x("", !0),
1959
+ z.value.usePerformanceMode ? x("", !0) : (O(!0), S(v, { key: 8 }, A(K.value, (e, t) => (O(), S("g", { key: e.id }, [!e.shape || e.shape === "circle" ? (O(), S("g", Ot, [(O(!0), S(v, null, A(e.plots, (n, r) => (O(), S("circle", {
1960
+ key: n.id,
1961
+ cx: n.x,
1962
+ cy: n.y,
1963
+ r: Y.value && Y.value === n.id || Z.value.includes(n.id) ? n.weight * z.value.style.layout.plots.hoverRadiusRatio : n.weight,
1964
+ fill: N(se)(e.color, Y.value && Y.value !== n.id || Z.value.length && !Z.value.includes(n.id) ? z.value.style.layout.plots.opacityNotSelected * 100 : z.value.style.layout.plots.opacity * 100),
1965
+ stroke: z.value.style.layout.plots.stroke,
1966
+ "stroke-width": z.value.style.layout.plots.strokeWidth,
1967
+ style: D(`opacity:${Y.value && Y.value === n.id || Z.value.includes(n.id) ? 1 : z.value.style.layout.plots.significance.useDistanceOpacity ? 1 - Math.abs(n.deviation) / Rr.value : z.value.style.layout.plots.significance.show && Math.abs(n.deviation) > z.value.style.layout.plots.significance.deviationThreshold ? z.value.style.layout.plots.significance.opacity : 1}`),
1968
+ onMouseover: (e) => Zr(n, t, "pointer", $.value.get(n.id)),
1969
+ onMouseleave: (e) => Qr(n, t),
1970
+ onClick: (e) => $r(n, t)
1971
+ }, null, 44, kt))), 128))])) : (O(), S("g", At, [(O(!0), S(v, null, A(e.plots, (n, r) => (O(), b(_e, {
1972
+ class: "vue-ui-scatter-datapoint",
1973
+ plot: {
1974
+ x: n.x,
1975
+ y: n.y
1976
+ },
1977
+ radius: Y.value && Y.value === n.id || Z.value.includes(n.id) ? n.weight * z.value.style.layout.plots.hoverRadiusRatio : n.weight,
1978
+ shape: e.shape,
1979
+ color: N(se)(e.color, Y.value && Y.value !== n.id || Z.value.length && !Z.value.includes(n.id) ? z.value.style.layout.plots.opacityNotSelected * 100 : z.value.style.layout.plots.opacity * 100),
1980
+ stroke: z.value.style.layout.plots.stroke,
1981
+ strokeWidth: z.value.style.layout.plots.strokeWidth,
1982
+ style: D(`opacity:${Y.value && Y.value === n.id || Z.value.includes(n.id) ? 1 : z.value.style.layout.plots.significance.useDistanceOpacity ? 1 - Math.abs(n.deviation) / Rr.value : z.value.style.layout.plots.significance.show && Math.abs(n.deviation) > z.value.style.layout.plots.significance.deviationThreshold ? z.value.style.layout.plots.significance.opacity : 1}`),
1983
+ onMouseover: (e) => Zr(n, t, "pointer", $.value.get(n.id)),
1984
+ onMouseleave: (e) => Qr(n, t),
1985
+ onClick: (e) => $r(n, t)
1986
+ }, null, 8, [
1987
+ "plot",
1988
+ "radius",
1989
+ "shape",
1990
+ "color",
1991
+ "stroke",
1992
+ "strokeWidth",
1993
+ "style",
1994
+ "onMouseover",
1995
+ "onMouseleave",
1996
+ "onClick"
1997
+ ]))), 256))])), z.value.style.layout.plots.name.show ? (O(!0), S(v, { key: 2 }, A(e.plots, (e, n) => (O(), S("text", {
1998
+ class: "vue-ui-scatter-datapoint-label",
1999
+ key: `datalabel-${e.id}`,
2000
+ transform: `translate(${e.x}, ${e.y - e.weight - z.value.style.layout.plots.name.fontSize + z.value.style.layout.plots.name.offsetY})`,
2001
+ "text-anchor": "middle",
2002
+ "font-size": z.value.style.layout.plots.name.fontSize,
2003
+ fill: N(se)(z.value.style.layout.plots.name.color, Y.value && Y.value !== e.id || Z.value.length && !Z.value.includes(e.id) ? z.value.style.layout.plots.opacityNotSelected * 100 : 100),
2004
+ onMouseover: (n) => Zr(e, t, "pointer", $.value.get(e.id)),
2005
+ onMouseleave: (n) => Qr(e, t),
2006
+ onClick: (n) => $r(e, t)
2007
+ }, M(e.clusterName), 41, jt))), 128)) : x("", !0)]))), 128)),
2008
+ z.value.usePerformanceMode ? (O(), S(v, { key: 9 }, [
2009
+ C("g", { "clip-path": `url(#clip_path_${I.value})` }, [(O(!0), S(v, null, A(yi.value, (e) => (O(), S("path", {
2010
+ key: e.id,
2011
+ d: e.d,
2012
+ fill: e.fill,
2013
+ stroke: e.stroke,
2014
+ "stroke-width": e.strokeWidth,
2015
+ "stroke-opacity": e.strokeOpacity,
2016
+ "vector-effect": "non-scaling-stroke",
2017
+ "paint-order": "fill"
2018
+ }, null, 8, Nt))), 128))], 8, Mt),
2019
+ X.value && z.value.style.layout.plots.selectors.show ? (O(), S("g", Pt, [je(_e, {
2020
+ shape: X.value.shape || "circle",
2021
+ color: X.value.color,
2022
+ plot: {
2023
+ x: X.value.x,
2024
+ y: X.value.y
2025
+ },
2026
+ radius: Math.max(4 * _i[X.value.shape || "circle"], X.value.weight * z.value.style.layout.plots.hoverRadiusRatio),
2027
+ stroke: z.value.style.layout.plots.stroke,
2028
+ strokeWidth: z.value.style.layout.plots.strokeWidth
2029
+ }, null, 8, [
2030
+ "shape",
2031
+ "color",
2032
+ "plot",
2033
+ "radius",
2034
+ "stroke",
2035
+ "strokeWidth"
2036
+ ])])) : x("", !0),
2037
+ C("rect", {
2038
+ x: H.value.left,
2039
+ y: H.value.top,
2040
+ width: Math.max(1e-4, H.value.width),
2041
+ height: Math.max(1e-4, H.value.height),
2042
+ fill: "transparent",
2043
+ onMousemove: t[2] ||= (...e) => N(xi) && N(xi)(...e),
2044
+ onMouseleave: Si,
2045
+ onClick: Ci
2046
+ }, null, 40, Ft)
2047
+ ], 64)) : x("", !0),
2048
+ (O(!0), S(v, null, A(Jr.value, (e) => (O(), S(v, { key: `selector_${e.id}` }, [z.value.style.layout.plots.selectors.show ? (O(), S("g", It, [
2049
+ C("line", {
2050
+ x1: W.value.x,
2051
+ x2: e.x,
2052
+ y1: e.y,
2053
+ y2: e.y,
2054
+ stroke: z.value.style.layout.plots.selectors.stroke,
2055
+ "stroke-width": z.value.style.layout.plots.selectors.strokeWidth,
2056
+ "stroke-dasharray": z.value.style.layout.plots.selectors.strokeDasharray,
2057
+ "stroke-linecap": "round",
2058
+ class: "line-pointer"
2059
+ }, null, 8, Lt),
2060
+ C("line", {
2061
+ x1: e.x,
2062
+ x2: e.x,
2063
+ y1: W.value.y,
2064
+ y2: e.y,
2065
+ stroke: z.value.style.layout.plots.selectors.stroke,
2066
+ "stroke-width": z.value.style.layout.plots.selectors.strokeWidth,
2067
+ "stroke-dasharray": z.value.style.layout.plots.selectors.strokeDasharray,
2068
+ "stroke-linecap": "round",
2069
+ class: "line-pointer"
2070
+ }, null, 8, Rt),
2071
+ z.value.style.layout.dataLabels.yAxis.scales.show ? x("", !0) : (O(), S("text", {
2072
+ key: 0,
2073
+ x: W.value.x + (e.x > W.value.x ? -6 : 6),
2074
+ y: e.y + z.value.style.layout.plots.selectors.labels.fontSize / 3,
2075
+ "font-size": z.value.style.layout.plots.selectors.labels.fontSize,
2076
+ fill: z.value.style.layout.plots.selectors.labels.color,
2077
+ "font-weight": z.value.style.layout.plots.selectors.labels.bold ? "bold" : "normal",
2078
+ "text-anchor": e.x > W.value.x ? "end" : "start"
2079
+ }, M(N(g)(z.value.style.layout.plots.selectors.labels.y.formatter, N(_)(e.v.y), N(d)({
2080
+ p: z.value.style.layout.plots.selectors.labels.prefix,
2081
+ v: N(_)(e.v.y),
2082
+ s: z.value.style.layout.plots.selectors.labels.suffix,
2083
+ r: z.value.style.layout.plots.selectors.labels.rounding
2084
+ }), { datapoint: e })), 9, zt)),
2085
+ z.value.style.layout.dataLabels.xAxis.scales.show ? x("", !0) : (O(), S("text", {
2086
+ key: 1,
2087
+ x: e.x,
2088
+ y: W.value.y + (e.y > W.value.y ? -6 : z.value.style.layout.plots.selectors.labels.fontSize + 6),
2089
+ "font-size": z.value.style.layout.plots.selectors.labels.fontSize,
2090
+ fill: z.value.style.layout.plots.selectors.labels.color,
2091
+ "font-weight": z.value.style.layout.plots.selectors.labels.bold ? "bold" : "normal",
2092
+ "text-anchor": "middle"
2093
+ }, M(N(g)(z.value.style.layout.plots.selectors.labels.y.formatter, N(_)(e.v.x), N(d)({
2094
+ p: z.value.style.layout.plots.selectors.labels.prefix,
2095
+ v: N(_)(e.v.x),
2096
+ s: z.value.style.layout.plots.selectors.labels.suffix,
2097
+ r: z.value.style.layout.plots.selectors.labels.rounding
2098
+ }), { datapoint: e })), 9, Bt)),
2099
+ z.value.style.layout.dataLabels.xAxis.scales.show ? (O(), S("text", {
2100
+ key: 2,
2101
+ x: e.x,
2102
+ y: W.value.y + z.value.style.layout.dataLabels.xAxis.scales.labels.fontSize + 6 + z.value.style.layout.dataLabels.xAxis.scales.labels.offsetY,
2103
+ "text-anchor": "middle",
2104
+ "font-size": z.value.style.layout.dataLabels.xAxis.scales.labels.fontSize,
2105
+ fill: z.value.style.layout.dataLabels.xAxis.scales.labels.color
2106
+ }, M(Yr(e)), 9, Vt)) : x("", !0),
2107
+ z.value.style.layout.dataLabels.yAxis.scales.show ? (O(), S("text", {
2108
+ key: 3,
2109
+ x: W.value.x - z.value.style.layout.dataLabels.yAxis.scales.labels.fontSize / 2 - 8 + z.value.style.layout.dataLabels.yAxis.scales.labels.offsetX,
2110
+ y: e.y + z.value.style.layout.dataLabels.yAxis.scales.labels.fontSize / 3,
2111
+ "text-anchor": "end",
2112
+ "font-size": z.value.style.layout.dataLabels.yAxis.scales.labels.fontSize,
2113
+ fill: z.value.style.layout.dataLabels.yAxis.scales.labels.color
2114
+ }, M(Xr(e)), 9, Ht)) : x("", !0),
2115
+ C("circle", {
2116
+ cx: W.value.x,
2117
+ cy: e.y,
2118
+ r: z.value.style.layout.plots.selectors.markers.radius,
2119
+ fill: z.value.style.layout.plots.selectors.markers.fill,
2120
+ stroke: z.value.style.layout.plots.selectors.markers.stroke,
2121
+ "stroke-width": z.value.style.layout.plots.selectors.markers.strokeWidth,
2122
+ class: "line-pointer"
2123
+ }, null, 8, Ut),
2124
+ C("circle", {
2125
+ cx: e.x,
2126
+ cy: W.value.y,
2127
+ r: z.value.style.layout.plots.selectors.markers.radius,
2128
+ fill: z.value.style.layout.plots.selectors.markers.fill,
2129
+ stroke: z.value.style.layout.plots.selectors.markers.stroke,
2130
+ "stroke-width": z.value.style.layout.plots.selectors.markers.strokeWidth,
2131
+ class: "line-pointer"
2132
+ }, null, 8, Wt),
2133
+ z.value.style.layout.plots.selectors.labels.showName && !z.value.style.layout.plots.name.show ? (O(), S("text", {
2134
+ key: 4,
2135
+ x: e.x,
2136
+ y: e.y + (e.y < W.value.y ? -z.value.style.layout.plots.selectors.labels.fontSize / 2 : z.value.style.layout.plots.selectors.labels.fontSize),
2137
+ "font-size": z.value.style.layout.plots.selectors.labels.fontSize,
2138
+ fill: z.value.style.layout.plots.selectors.labels.color,
2139
+ "font-weight": z.value.style.layout.plots.selectors.labels.bold ? "bold" : "normal",
2140
+ "text-anchor": e.x < H.value.left + 100 ? "start" : e.x > H.value.right - 100 ? "end" : e.x > W.value.x ? "start" : "end"
2141
+ }, M(e.v.name), 9, Gt)) : x("", !0)
2142
+ ])) : x("", !0)], 64))), 128)),
2143
+ z.value.style.layout.dataLabels.xAxis.show ? (O(), S("g", {
2144
+ key: 10,
2145
+ ref_key: "xAxisLabelLeft",
2146
+ ref: Hn
2147
+ }, [C("text", {
2148
+ id: `vue-ui-scatter-xAxis-label-${I.value}`,
2149
+ transform: `translate(${z.value.style.layout.dataLabels.xAxis.fontSize + (z.value.style.layout.dataLabels.reverseAxisLabels ? z.value.style.layout.dataLabels.yAxis.offsetX : z.value.style.layout.dataLabels.xAxis.offsetX)}, ${H.value.top + H.value.height / 2 + (z.value.style.layout.dataLabels.reverseAxisLabels ? z.value.style.layout.dataLabels.yAxis.offsetY : z.value.style.layout.dataLabels.xAxis.offsetY)}), rotate(-90)`,
2150
+ "text-anchor": "middle",
2151
+ "font-size": z.value.style.layout.dataLabels.xAxis.fontSize,
2152
+ "font-weight": z.value.style.layout.dataLabels.xAxis.bold ? "bold" : "normal",
2153
+ fill: z.value.style.layout.dataLabels.xAxis.color
2154
+ }, M(z.value.style.layout.dataLabels.reverseAxisLabels ? z.value.style.layout.dataLabels.yAxis.name : z.value.style.layout.dataLabels.xAxis.name), 9, Kt), z.value.style.layout.dataLabels.xAxis.showValue ? (O(), S("text", {
2155
+ key: 0,
2156
+ "text-anchor": "middle",
2157
+ "font-size": z.value.style.layout.dataLabels.xAxis.fontSize,
2158
+ fill: z.value.style.layout.dataLabels.xAxis.color,
2159
+ transform: `translate(${z.value.style.layout.dataLabels.xAxis.name ? z.value.style.layout.dataLabels.xAxis.fontSize * 3 : 0}, ${W.value.y + z.value.style.layout.dataLabels.xAxis.fontSize / 3}), rotate(-90)`
2160
+ }, M(N(g)(z.value.style.layout.plots.selectors.labels.x.formatter, N(_)(U.value.xMin), N(d)({
2161
+ p: z.value.style.layout.plots.selectors.labels.prefix,
2162
+ v: N(_)(U.value.xMin),
2163
+ s: z.value.style.layout.plots.selectors.labels.suffix,
2164
+ r: z.value.style.layout.dataLabels.xAxis.rounding
2165
+ }))), 9, qt)) : x("", !0)], 512)) : x("", !0),
2166
+ z.value.style.layout.dataLabels.xAxis.show && z.value.style.layout.dataLabels.xAxis.showValue ? (O(), S("text", {
2167
+ key: 11,
2168
+ ref_key: "xAxisLabelRight",
2169
+ ref: Un,
2170
+ "text-anchor": "middle",
2171
+ transform: `translate(${H.value.right + z.value.style.layout.padding.right + 6}, ${W.value.y + z.value.style.layout.dataLabels.xAxis.fontSize / 3}), rotate(-90)`,
2172
+ "font-size": z.value.style.layout.dataLabels.xAxis.fontSize,
2173
+ fill: z.value.style.layout.dataLabels.xAxis.color
2174
+ }, M(N(g)(z.value.style.layout.plots.selectors.labels.x.formatter, N(_)(U.value.xMax), N(d)({
2175
+ p: z.value.style.layout.plots.selectors.labels.prefix,
2176
+ v: N(_)(U.value.xMax),
2177
+ s: z.value.style.layout.plots.selectors.labels.suffix,
2178
+ r: z.value.style.layout.dataLabels.xAxis.rounding
2179
+ }))), 9, Jt)) : x("", !0),
2180
+ z.value.style.layout.dataLabels.yAxis.show && z.value.style.layout.dataLabels.yAxis.showValue ? (O(), S("text", {
2181
+ key: 12,
2182
+ ref_key: "yAxisLabelTop",
2183
+ ref: Wn,
2184
+ x: W.value.x,
2185
+ y: H.value.top - z.value.style.layout.dataLabels.yAxis.fontSize,
2186
+ "text-anchor": "middle",
2187
+ "font-size": z.value.style.layout.dataLabels.yAxis.fontSize,
2188
+ fill: z.value.style.layout.dataLabels.yAxis.color
2189
+ }, M(N(g)(z.value.style.layout.plots.selectors.labels.y.formatter, N(_)(U.value.yMax), N(d)({
2190
+ p: z.value.style.layout.plots.selectors.labels.prefix,
2191
+ v: N(_)(U.value.yMax),
2192
+ s: z.value.style.layout.plots.selectors.labels.suffix,
2193
+ r: z.value.style.layout.dataLabels.yAxis.rounding
2194
+ }))), 9, Yt)) : x("", !0),
2195
+ z.value.style.layout.dataLabels.yAxis.show ? (O(), S("g", {
2196
+ key: 13,
2197
+ ref_key: "yAxisLabelBottom",
2198
+ ref: Gn
2199
+ }, [z.value.style.layout.dataLabels.yAxis.showValue ? (O(), S("text", {
2200
+ key: 0,
2201
+ x: W.value.x,
2202
+ y: V.value.height - z.value.style.layout.dataLabels.yAxis.fontSize * 2,
2203
+ "text-anchor": "middle",
2204
+ "font-size": z.value.style.layout.dataLabels.yAxis.fontSize,
2205
+ fill: z.value.style.layout.dataLabels.yAxis.color
2206
+ }, M(N(g)(z.value.style.layout.plots.selectors.labels.y.formatter, N(_)(U.value.yMin), N(d)({
2207
+ p: z.value.style.layout.plots.selectors.labels.prefix,
2208
+ v: N(_)(U.value.yMin),
2209
+ s: z.value.style.layout.plots.selectors.labels.suffix,
2210
+ r: z.value.style.layout.dataLabels.yAxis.rounding
2211
+ }))), 9, Xt)) : x("", !0), C("text", {
2212
+ "text-anchor": "middle",
2213
+ "font-size": z.value.style.layout.dataLabels.yAxis.fontSize,
2214
+ "font-weight": z.value.style.layout.dataLabels.yAxis.bold ? "bold" : "normal",
2215
+ fill: z.value.style.layout.dataLabels.yAxis.color,
2216
+ x: H.value.left + H.value.width / 2 + (z.value.style.layout.dataLabels.reverseAxisLabels ? z.value.style.layout.dataLabels.xAxis.offsetX : z.value.style.layout.dataLabels.yAxis.offsetX),
2217
+ y: V.value.height + (z.value.style.layout.dataLabels.reverseAxisLabels ? z.value.style.layout.dataLabels.xAxis.offsetY : z.value.style.layout.dataLabels.yAxis.offsetY)
2218
+ }, M(z.value.style.layout.dataLabels.reverseAxisLabels ? z.value.style.layout.dataLabels.xAxis.name : z.value.style.layout.dataLabels.yAxis.name), 9, Zt)], 512)) : x("", !0),
2219
+ C("clipPath", { id: `clip_path_${I.value}` }, [C("rect", {
2220
+ x: H.value.left,
2221
+ y: H.value.top,
2222
+ width: H.value.width <= 0 ? 1e-4 : H.value.width,
2223
+ height: H.value.height <= 0 ? 1e-4 : H.value.height
2224
+ }, null, 8, $t)], 8, Qt),
2225
+ z.value.style.layout.correlation.show ? (O(), S("g", en, [(O(!0), S(v, null, A(K.value.filter((e) => e.correlation), (e, t) => (O(), S("line", {
2226
+ x1: e.correlation.x1,
2227
+ x2: e.correlation.x2,
2228
+ y1: e.correlation.y1,
2229
+ y2: e.correlation.y2,
2230
+ "stroke-dasharray": z.value.style.layout.correlation.strokeDasharray,
2231
+ stroke: e.color,
2232
+ "stroke-width": z.value.style.layout.correlation.strokeWidth,
2233
+ "clip-path": `url(#clip_path_${I.value})`
2234
+ }, null, 8, tn))), 256)), (O(!0), S(v, null, A(K.value.filter((e) => e.correlation), (e, t) => (O(), S("g", null, [z.value.style.layout.correlation.label.show ? (O(), S("text", {
2235
+ key: 0,
2236
+ x: e.correlation.x2,
2237
+ y: e.correlation.y2,
2238
+ fill: z.value.style.layout.correlation.label.useSerieColor ? e.color : z.value.style.layout.correlation.label.color,
2239
+ "text-anchor": "end",
2240
+ "font-size": z.value.style.layout.correlation.label.fontSize,
2241
+ "font-weight": z.value.style.layout.correlation.label.bold ? "bold" : "normal"
2242
+ }, M(N(d)({
2243
+ v: N(_)(e.correlation?.coefficient ?? 0),
2244
+ r: z.value.style.layout.correlation.label.roundingValue
2245
+ })), 9, nn)) : x("", !0)]))), 256))])) : x("", !0),
2246
+ j(e.$slots, "svg", { svg: {
2247
+ ...V.value,
2248
+ drawingArea: {
2249
+ ...H.value,
2250
+ zero: W.value
2251
+ },
2252
+ data: Lr.value,
2253
+ isPrintingImg: N(mr) || N(hr) || Bn.value,
2254
+ isPrintingSvg: Vn.value
2255
+ } }, void 0, !0)
2256
+ ], 46, qe)), e.$slots.hint ? (O(), S("div", rn, [j(e.$slots, "hint", E(T({
2257
+ hint: z.value.a11y.translations.keyboardNavigation,
2258
+ isVisible: Zn.value
2259
+ })), void 0, !0)])) : x("", !0)]),
2260
+ e.$slots.watermark ? (O(), S("div", an, [j(e.$slots, "watermark", E(T({ isPrinting: N(mr) || N(hr) || Bn.value || Vn.value })), void 0, !0)])) : x("", !0),
2261
+ C("div", { id: `legend-bottom-${I.value}` }, null, 8, on),
2262
+ wn.value && Fn.value && (z.value.style.legend.show || e.$slots.legend) ? (O(), b(Oe, {
2263
+ key: 7,
2264
+ to: z.value.style.legend.position === "top" ? `#legend-top-${I.value}` : `#legend-bottom-${I.value}`
2265
+ }, [C("div", {
2266
+ ref_key: "chartLegend",
2267
+ ref: kn
2268
+ }, [j(e.$slots, "legend", { legend: G.value }, () => [z.value.style.legend.show ? (O(), b(Ee, {
2269
+ key: `legend_${Pn.value}`,
2270
+ legendSet: G.value,
2271
+ config: Ir.value,
2272
+ isCursorPointer: $n.value,
2273
+ onClickMarker: t[3] ||= ({ legend: e }) => ti(e.id)
2274
+ }, {
2275
+ item: P(({ legend: e }) => [C("div", {
2276
+ onClick: (t) => e.segregate(),
2277
+ style: D(`opacity:${R.value.includes(e.id) ? .5 : 1}`)
2278
+ }, M(e.name), 13, sn)]),
2279
+ legendToggle: P(() => [G.value.length > 2 && z.value.style.legend.selectAllToggle.show && !N(nr) ? (O(), b(Se, {
2280
+ key: 0,
2281
+ backgroundColor: z.value.style.legend.selectAllToggle.backgroundColor,
2282
+ color: z.value.style.legend.selectAllToggle.color,
2283
+ fontSize: z.value.style.legend.fontSize,
2284
+ checked: R.value.length > 0,
2285
+ isCursorPointer: $n.value,
2286
+ onToggle: ei
2287
+ }, null, 8, [
2288
+ "backgroundColor",
2289
+ "color",
2290
+ "fontSize",
2291
+ "checked",
2292
+ "isCursorPointer"
2293
+ ])) : x("", !0)]),
2294
+ _: 1
2295
+ }, 8, [
2296
+ "legendSet",
2297
+ "config",
2298
+ "isCursorPointer"
2299
+ ])) : x("", !0)], !0)], 512)], 8, ["to"])) : x("", !0),
2300
+ e.$slots.source ? (O(), S("div", {
2301
+ key: 8,
2302
+ ref_key: "source",
2303
+ ref: An,
2304
+ dir: "auto"
2305
+ }, [j(e.$slots, "source", {}, void 0, !0)], 512)) : x("", !0),
2306
+ je(N(fn), {
2307
+ teleportTo: z.value.style.tooltip.teleportTo,
2308
+ show: B.value.showTooltip && Tn.value,
2309
+ backgroundColor: z.value.style.tooltip.backgroundColor,
2310
+ color: z.value.style.tooltip.color,
2311
+ borderRadius: z.value.style.tooltip.borderRadius,
2312
+ borderColor: z.value.style.tooltip.borderColor,
2313
+ borderWidth: z.value.style.tooltip.borderWidth,
2314
+ fontSize: z.value.style.tooltip.fontSize,
2315
+ backgroundOpacity: z.value.style.tooltip.backgroundOpacity,
2316
+ position: z.value.style.tooltip.position,
2317
+ offsetX: z.value.style.tooltip.offsetX,
2318
+ offsetY: z.value.style.tooltip.offsetY,
2319
+ parent: L.value,
2320
+ content: En.value,
2321
+ isFullscreen: si.value,
2322
+ isCustom: z.value.style.tooltip.customFormat && typeof z.value.style.tooltip.customFormat == "function",
2323
+ smooth: z.value.style.tooltip.smooth,
2324
+ backdropFilter: z.value.style.tooltip.backdropFilter,
2325
+ smoothForce: z.value.style.tooltip.smoothForce,
2326
+ smoothSnapThreshold: z.value.style.tooltip.smoothSnapThreshold,
2327
+ isA11yMode: Xn.value === "keyboard",
2328
+ a11yPosition: Yn.value
2329
+ }, {
2330
+ "tooltip-before": P(() => [j(e.$slots, "tooltip-before", E(T({ ...Hr.value })), void 0, !0)]),
2331
+ tooltip: P(() => [j(e.$slots, "tooltip", E(T({ ...Hr.value })), void 0, !0)]),
2332
+ "tooltip-after": P(() => [j(e.$slots, "tooltip-after", E(T({ ...Hr.value })), void 0, !0)]),
2333
+ default: P(() => [z.value.style.tooltip.showShape ? (O(), S("div", cn, [(O(), S("svg", ln, [je(_e, {
2334
+ shape: X.value.shape,
2335
+ color: X.value.color,
2336
+ plot: {
2337
+ x: 10,
2338
+ y: 10
2339
+ },
2340
+ radius: 7
2341
+ }, null, 8, ["shape", "color"])]))])) : x("", !0)]),
2342
+ _: 3
2343
+ }, 8, [
2344
+ "teleportTo",
2345
+ "show",
2346
+ "backgroundColor",
2347
+ "color",
2348
+ "borderRadius",
2349
+ "borderColor",
2350
+ "borderWidth",
2351
+ "fontSize",
2352
+ "backgroundOpacity",
2353
+ "position",
2354
+ "offsetX",
2355
+ "offsetY",
2356
+ "parent",
2357
+ "content",
2358
+ "isFullscreen",
2359
+ "isCustom",
2360
+ "smooth",
2361
+ "backdropFilter",
2362
+ "smoothForce",
2363
+ "smoothSnapThreshold",
2364
+ "isA11yMode",
2365
+ "a11yPosition"
2366
+ ]),
2367
+ wn.value && z.value.userOptions.buttons.table ? (O(), b(Le(wi.value.component), Me({ key: 9 }, wi.value.props, {
2368
+ ref_key: "tableUnit",
2369
+ ref: Rn,
2370
+ onClose: Ti
2371
+ }), ke({
2372
+ content: P(() => [(O(), b(N(hn), {
2373
+ key: `table_${Nn.value}`,
2374
+ colNames: oi.value.colNames,
2375
+ head: oi.value.head,
2376
+ body: oi.value.body,
2377
+ config: oi.value.config,
2378
+ title: z.value.table.useDialog ? "" : wi.value.title,
2379
+ withCloseButton: !z.value.table.useDialog,
2380
+ isCursorPointer: $n.value,
2381
+ onClose: Ti
2382
+ }, {
2383
+ th: P(({ th: e }) => [Ae(M(e), 1)]),
2384
+ td: P(({ td: e }) => [e.shape ? (O(), S("div", un, [C("span", null, M(e.content), 1)])) : (O(), S("div", {
2385
+ key: 1,
2386
+ innerHTML: e
2387
+ }, null, 8, dn))]),
2388
+ _: 1
2389
+ }, 8, [
2390
+ "colNames",
2391
+ "head",
2392
+ "body",
2393
+ "config",
2394
+ "title",
2395
+ "withCloseButton",
2396
+ "isCursorPointer"
2397
+ ]))]),
2398
+ _: 2
2399
+ }, [z.value.table.useDialog ? {
2400
+ name: "title",
2401
+ fn: P(() => [Ae(M(wi.value.title), 1)]),
2402
+ key: "0"
2403
+ } : void 0, z.value.table.useDialog ? {
2404
+ name: "actions",
2405
+ fn: P(() => [C("button", {
2406
+ tabindex: "0",
2407
+ class: "vue-ui-user-options-button",
2408
+ onClick: t[4] ||= (e) => ai(z.value.userOptions.callbacks.csv),
2409
+ style: D({ cursor: $n.value ? "pointer" : "default" })
2410
+ }, [je(N(pn), {
2411
+ name: "fileCsv",
2412
+ stroke: wi.value.props.color
2413
+ }, null, 8, ["stroke"])], 4)]),
2414
+ key: "1"
2415
+ } : void 0]), 1040)) : x("", !0),
2416
+ j(e.$slots, "skeleton", {}, () => [N(nr) ? (O(), b(de, { key: 0 })) : x("", !0)], !0)
2417
+ ], 46, He));
2418
+ }
2419
+ }, [["__scopeId", "data-v-d28b2dc7"]]);
2420
+ //#endregion
2421
+ export { Ve as n, fn as t };