vue-data-ui 3.22.6 → 3.22.7

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 (191) hide show
  1. package/dist/{Arrow-Ds4xmpiQ.js → Arrow-DaGI9u-b.js} +1 -1
  2. package/dist/{BaseDraggableDialog-VbypEaAa.js → BaseDraggableDialog-1wwwdwV2.js} +2 -2
  3. package/dist/{BaseIcon-DcUvOfxf.js → BaseIcon-_-BX7be3.js} +1 -1
  4. package/dist/{BaseLegendToggle-DFwIY5bE.js → BaseLegendToggle-CHnlKalt.js} +1 -1
  5. package/dist/{BaseZoomControls-DwolSINF.js → BaseZoomControls-C9bdZSCj.js} +2 -2
  6. package/dist/{ColorPicker-UVDPcrjE.js → ColorPicker-TB3KhY3j.js} +2 -2
  7. package/dist/{DataTable-CXfvIulC.js → DataTable-CVF7DoZn.js} +2 -2
  8. package/dist/{Legend-D-635Kag.js → Legend-kAr7Vqqu.js} +2 -2
  9. package/dist/{NonSvgPenAndPaper-pR_1qp3s.js → NonSvgPenAndPaper-CEiv7_gM.js} +29 -29
  10. package/dist/{PackageVersion-Da7hl-34.js → PackageVersion-Dse0n05o.js} +1 -1
  11. package/dist/{PenAndPaper-Bk2-E7V4.js → PenAndPaper-gaV1QPpP.js} +18 -18
  12. package/dist/{Shape-BSetplwm.js → Shape-CiQIxyyT.js} +1 -1
  13. package/dist/{Slicer-ClIGOuoX.js → Slicer-6FOtg9py.js} +2 -2
  14. package/dist/{SlicerPreview-D1n9AW39.js → SlicerPreview-DUywypFu.js} +4 -4
  15. package/dist/{SparkTooltip-CjDAyolg.js → SparkTooltip-B-qsPj68.js} +1 -1
  16. package/dist/{Title-C-p0ilWB.js → Title-PiTKr6sp.js} +1 -1
  17. package/dist/{Tooltip-YabpoXo1.js → Tooltip-B8yYfISA.js} +1 -1
  18. package/dist/{UserOptions-BO4VFL8O.js → UserOptions-BL9VlHop.js} +2 -2
  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-CVJfsfwL.js → dom-to-png-BZjYWNEg.js} +1 -1
  89. package/dist/exposedLib-Be0ifkti.js +19 -0
  90. package/dist/{img-B_y5qDdm.js → img-B_abIg0o.js} +1 -1
  91. package/dist/{labelUtils-CyVwqXSh.js → labelUtils-CTDRZdP1.js} +1 -1
  92. package/dist/{lib-DRBJCmHW.js → lib-EAmk-PgA.js} +14 -1
  93. package/dist/{package-DyQ_PQis.js → package-DeMimPej.js} +1 -1
  94. package/dist/{pdf-CG02qhAH.js → pdf-B6qrdEqB.js} +1 -1
  95. package/dist/{render-common-CUAlQvAQ.js → render-common-DMai0gHB.js} +2 -2
  96. package/dist/ssr/vue-ui-donut.js +1 -1
  97. package/dist/ssr/vue-ui-xy.js +1 -1
  98. package/dist/ssr.js +2 -2
  99. package/dist/style.css +1 -1
  100. package/dist/{useAutoSizeLabelsInsideViewbox-DPMOys9n.js → useAutoSizeLabelsInsideViewbox-CyOGrdD_.js} +1 -1
  101. package/dist/{useNestedProp-BEo2N1Db.js → useNestedProp-D8XqxgOU.js} +1 -1
  102. package/dist/{usePrinter-CRp5IW3v.js → usePrinter-DnGzpp6Q.js} +2 -2
  103. package/dist/utils.js +10 -10
  104. package/dist/{vue-data-ui-Bpu4kxlm.js → vue-data-ui-D6qVWloL.js} +68 -68
  105. package/dist/vue-data-ui.js +72 -72
  106. package/dist/vue-ui-3d-bar-CjNuWXoA.js +1757 -0
  107. package/dist/{vue-ui-accordion-CfMrbDoq.js → vue-ui-accordion-Dzz8XhX3.js} +3 -3
  108. package/dist/{vue-ui-age-pyramid-BF5ZuuyI.js → vue-ui-age-pyramid-CC7Dxli-.js} +21 -21
  109. package/dist/{vue-ui-annotator-CG6rhFpy.js → vue-ui-annotator-DXZumSP8.js} +67 -67
  110. package/dist/{vue-ui-bullet-C_oBS1cr.js → vue-ui-bullet-Dde6FhbR.js} +17 -17
  111. package/dist/{vue-ui-bump-BZB1Na8h.js → vue-ui-bump-C5pni1JV.js} +243 -243
  112. package/dist/{vue-ui-candlestick-8d_1xO8X.js → vue-ui-candlestick-Ctw65O4_.js} +449 -446
  113. package/dist/{vue-ui-carousel-table-BfZNcwmY.js → vue-ui-carousel-table-BEUvhUH0.js} +42 -42
  114. package/dist/vue-ui-chestnut-C3IbAdkQ.js +2010 -0
  115. package/dist/vue-ui-chord-5eCWG4br.js +1391 -0
  116. package/dist/{vue-ui-circle-pack-BLh8HnGK.js → vue-ui-circle-pack-Cq4lkmee.js} +31 -31
  117. package/dist/{vue-ui-cursor-DVsEm_4l.js → vue-ui-cursor-DLJcFwRZ.js} +3 -3
  118. package/dist/{vue-ui-dag-Cfi0b9qm.js → vue-ui-dag-DemsIecS.js} +23 -23
  119. package/dist/{vue-ui-dashboard-F_NZ1xoQ.js → vue-ui-dashboard-DWHD_wNN.js} +69 -69
  120. package/dist/{vue-ui-digits-BfP1kbj3.js → vue-ui-digits-sIKc85vS.js} +3 -3
  121. package/dist/{vue-ui-donut-BwAyvV3-.js → vue-ui-donut-CLheJPcO.js} +414 -414
  122. package/dist/{vue-ui-donut-DlVRnVr_.js → vue-ui-donut-Dp6GW0dw.js} +85 -85
  123. package/dist/{vue-ui-donut-evolution-D1k4u6cA.js → vue-ui-donut-evolution-zmRPpJLj.js} +419 -419
  124. package/dist/vue-ui-dumbbell-bSbgHd0U.js +1530 -0
  125. package/dist/{vue-ui-flow-D_7Idmmw.js → vue-ui-flow-q_M7O1BK.js} +83 -83
  126. package/dist/vue-ui-funnel-BEZUEuuh.js +777 -0
  127. package/dist/{vue-ui-galaxy-Bjxbg5_B.js → vue-ui-galaxy-DCCWmIyH.js} +250 -250
  128. package/dist/{vue-ui-gauge-Dt0H7DgC.js → vue-ui-gauge-B1ljgfE1.js} +216 -216
  129. package/dist/{vue-ui-geo-89DEQb5l.js → vue-ui-geo-CM59rpnj.js} +17 -17
  130. package/dist/{vue-ui-gizmo-CQyLK18v.js → vue-ui-gizmo-D2RL6IVp.js} +62 -62
  131. package/dist/{vue-ui-heatmap-o6MvoxBK.js → vue-ui-heatmap-BX6PQxML.js} +245 -245
  132. package/dist/vue-ui-history-plot-DaHAeQph.js +1715 -0
  133. package/dist/{vue-ui-horizontal-bar-CwB4sc6M.js → vue-ui-horizontal-bar-CTW6l4n3.js} +274 -274
  134. package/dist/{vue-ui-kpi-4C-j92D-.js → vue-ui-kpi-DLbP7lJR.js} +3 -3
  135. package/dist/{vue-ui-mini-loader-Bj4Wv-i8.js → vue-ui-mini-loader-DPHzHsM7.js} +2 -2
  136. package/dist/vue-ui-molecule-aD0SMTiX.js +925 -0
  137. package/dist/{vue-ui-mood-radar-B5W35Fvp.js → vue-ui-mood-radar-CCWaPr0P.js} +29 -29
  138. package/dist/{vue-ui-nested-donuts-wfesrzle.js → vue-ui-nested-donuts--BCPWkl7.js} +104 -104
  139. package/dist/{vue-ui-onion-B8-psLbF.js → vue-ui-onion-s4iMCGAP.js} +39 -39
  140. package/dist/vue-ui-parallel-coordinate-plot-CfgvpyoC.js +1416 -0
  141. package/dist/vue-ui-quadrant-T_UmRAAy.js +1978 -0
  142. package/dist/vue-ui-quick-chart-D1OWBgQJ.js +2469 -0
  143. package/dist/{vue-ui-radar-5fQ5AAWD.js → vue-ui-radar-CHjeGOMC.js} +78 -78
  144. package/dist/{vue-ui-rating-CKWHDKOT.js → vue-ui-rating-Bek8Tgr-.js} +33 -33
  145. package/dist/vue-ui-relation-circle-DRZGQ_UX.js +924 -0
  146. package/dist/{vue-ui-ridgeline-DVbYznRz.js → vue-ui-ridgeline-DIODGiu8.js} +101 -101
  147. package/dist/vue-ui-rings-CcdUSXGG.js +1246 -0
  148. package/dist/vue-ui-scatter-CixnqLoi.js +2413 -0
  149. package/dist/{vue-ui-skeleton-BkxB6Dik.js → vue-ui-skeleton-Fmue6DAG.js} +3 -3
  150. package/dist/{vue-ui-smiley-C4g0iaF7.js → vue-ui-smiley-BVMI5vUy.js} +9 -9
  151. package/dist/{vue-ui-spark-trend-0FELlq4x.js → vue-ui-spark-trend-DfZeLiWA.js} +98 -98
  152. package/dist/{vue-ui-sparkbar-D-i_VLO6.js → vue-ui-sparkbar-Cl1e49sw.js} +87 -87
  153. package/dist/{vue-ui-sparkgauge-CWw6w_ng.js → vue-ui-sparkgauge-DDNNBIdf.js} +48 -48
  154. package/dist/{vue-ui-sparkhistogram-DuGpkfma.js → vue-ui-sparkhistogram-ny_liYa6.js} +104 -104
  155. package/dist/{vue-ui-sparkline-Bi06lHQd.js → vue-ui-sparkline-BNxdO-Bx.js} +268 -268
  156. package/dist/vue-ui-sparkstackbar-BfF5-Wg2.js +662 -0
  157. package/dist/vue-ui-stackbar-B-2Me3d-.js +2332 -0
  158. package/dist/{vue-ui-stackline-C0NHBUaE.js → vue-ui-stackline-CdvVPQUM.js} +697 -694
  159. package/dist/{vue-ui-strip-plot-_6LL45i9.js → vue-ui-strip-plot-CRXPXA5V.js} +368 -368
  160. package/dist/{vue-ui-table-DBlZswRi.js → vue-ui-table-Dr1dK3d_.js} +25 -25
  161. package/dist/{vue-ui-table-heatmap-3xYIDKcP.js → vue-ui-table-heatmap-D-Qrm3oX.js} +5 -5
  162. package/dist/{vue-ui-table-sparkline-BH5PzEnJ.js → vue-ui-table-sparkline-C31Q32My.js} +201 -201
  163. package/dist/{vue-ui-thermometer-BxMzAqoT.js → vue-ui-thermometer-BUrtIfuo.js} +119 -119
  164. package/dist/{vue-ui-timer-ONSitYDm.js → vue-ui-timer-B5bkNNHS.js} +29 -29
  165. package/dist/{vue-ui-tiremarks-DWXM-9nR.js → vue-ui-tiremarks-Bn8b-ZSz.js} +14 -14
  166. package/dist/vue-ui-treemap-LMWiicop.js +1713 -0
  167. package/dist/{vue-ui-waffle-afa8HSxz.js → vue-ui-waffle-B_L3gkky.js} +306 -306
  168. package/dist/{vue-ui-wheel-DRP7X8S2.js → vue-ui-wheel-CeVwXtEX.js} +36 -36
  169. package/dist/{vue-ui-word-cloud-AKpMO97a.js → vue-ui-word-cloud-D81-qJLw.js} +37 -37
  170. package/dist/{vue-ui-world-CqS-HhZl.js → vue-ui-world-B7npRmTa.js} +399 -399
  171. package/dist/{vue-ui-xy-Bmd11BxR.js → vue-ui-xy-C2p9H2IX.js} +1438 -1436
  172. package/dist/{vue-ui-xy-DJ8YKPgs.js → vue-ui-xy-OhwS0kcZ.js} +218 -218
  173. package/dist/{vue-ui-xy-canvas-DO_PDGKf.js → vue-ui-xy-canvas-DLKDdH35.js} +420 -417
  174. package/package.json +1 -1
  175. package/dist/exposedLib-CjwriUaG.js +0 -19
  176. package/dist/vue-ui-3d-bar-BAH0jNtT.js +0 -1757
  177. package/dist/vue-ui-chestnut-Cx8T3NEl.js +0 -2010
  178. package/dist/vue-ui-chord-B-sauvLo.js +0 -1391
  179. package/dist/vue-ui-dumbbell-DgmvPpK2.js +0 -1530
  180. package/dist/vue-ui-funnel-BYCFV5TD.js +0 -777
  181. package/dist/vue-ui-history-plot-B7zuCfdg.js +0 -1715
  182. package/dist/vue-ui-molecule-BDrRmwmm.js +0 -925
  183. package/dist/vue-ui-parallel-coordinate-plot-DBpHCFxa.js +0 -1416
  184. package/dist/vue-ui-quadrant-BzyGOJR2.js +0 -1978
  185. package/dist/vue-ui-quick-chart-so_8PzvS.js +0 -2469
  186. package/dist/vue-ui-relation-circle-Bd_ONHCz.js +0 -924
  187. package/dist/vue-ui-rings-c-yLWFHr.js +0 -1246
  188. package/dist/vue-ui-scatter-QhmE7n1H.js +0 -2413
  189. package/dist/vue-ui-sparkstackbar-DrKgBUmt.js +0 -662
  190. package/dist/vue-ui-stackbar-DDvuDGQ_.js +0 -2329
  191. package/dist/vue-ui-treemap-B03c4RIy.js +0 -1713
@@ -0,0 +1,2413 @@
1
+ import { t as e } from "./rolldown-runtime-Dy4uBu1J.js";
2
+ import { Gt as t, Ht as n, Lt as r, M as i, Ot as a, Q as o, S as s, St as c, Ut as l, W as u, X as d, at as f, b as p, g as m, h as ee, i as h, j as g, jt as _, mt as te, q as v, t as ne, ut as re, v as y, vt as ie, w as ae } from "./lib-EAmk-PgA.js";
3
+ import { t as oe } from "./useConfig-DYM3f6EI.js";
4
+ import { t as se } from "./usePrinter-DnGzpp6Q.js";
5
+ import { n as ce, t as le } from "./BaseScanner-DZvpgOjM.js";
6
+ import { t as ue } from "./useSvgExport-SVIsDot8.js";
7
+ import { t as de } from "./useNestedProp-D8XqxgOU.js";
8
+ import { t as fe } from "./useThemeCheck-C43Tcqmk.js";
9
+ import { t as pe } from "./img-B_abIg0o.js";
10
+ import { n as me } from "./Title-PiTKr6sp.js";
11
+ import { t as he } from "./Shape-CiQIxyyT.js";
12
+ import { t as ge } from "./_plugin-vue_export-helper-B3ysoDQm.js";
13
+ import { c as _e } from "./canvas-lib-BOP_HS11.js";
14
+ import { t as ve } from "./useResponsive-BfnK0KxU.js";
15
+ import { t as ye } from "./BaseLegendToggle-CHnlKalt.js";
16
+ import { t as be } from "./A11yDataTable-DdRsVULz.js";
17
+ import { t as xe } from "./useUserOptionState-DK-_1ddE.js";
18
+ import { t as Se } from "./useChartAccessibility-DYqac8yF.js";
19
+ import { t as Ce } from "./Legend-kAr7Vqqu.js";
20
+ import { t as we } from "./vue_ui_scatter-I0POnicu.js";
21
+ import { Fragment as b, Teleport as Te, computed as x, createBlock as S, createCommentVNode as C, createElementBlock as w, createElementVNode as T, createSlots as Ee, createTextVNode as De, createVNode as Oe, defineAsyncComponent as ke, guardReactiveProps as E, mergeProps as Ae, nextTick as je, normalizeClass as Me, normalizeProps as D, normalizeStyle as O, onBeforeUnmount as Ne, onMounted as Pe, openBlock as k, ref as A, renderList as j, renderSlot as M, resolveDynamicComponent as Fe, shallowRef as Ie, toDisplayString as N, toRefs as Le, unref as P, watch as Re, withCtx as F } from "vue";
22
+ //#region src/components/vue-ui-scatter.vue
23
+ var ze = /* @__PURE__ */ e({ default: () => gn }), Be = ["id"], Ve = ["id"], He = {
24
+ key: 0,
25
+ class: "sr-only",
26
+ "aria-live": "polite",
27
+ "aria-atomic": "true"
28
+ }, Ue = ["id"], We = { style: { position: "relative" } }, Ge = [
29
+ "xmlns",
30
+ "aria-describedby",
31
+ "viewBox"
32
+ ], Ke = ["width", "height"], qe = { key: 1 }, Je = [
33
+ "x1",
34
+ "x2",
35
+ "y1",
36
+ "y2",
37
+ "stroke",
38
+ "stroke-width"
39
+ ], Ye = [
40
+ "x1",
41
+ "x2",
42
+ "y1",
43
+ "y2",
44
+ "stroke",
45
+ "stroke-width"
46
+ ], Xe = { key: 2 }, Ze = [
47
+ "x1",
48
+ "x2",
49
+ "y1",
50
+ "y2",
51
+ "stroke",
52
+ "stroke-width"
53
+ ], Qe = ["opacity"], $e = [
54
+ "x1",
55
+ "x2",
56
+ "y1",
57
+ "y2",
58
+ "stroke",
59
+ "stroke-width"
60
+ ], et = [
61
+ "x",
62
+ "y",
63
+ "font-size",
64
+ "fill",
65
+ "stroke"
66
+ ], tt = { key: 4 }, nt = [
67
+ "x1",
68
+ "x2",
69
+ "y1",
70
+ "y2",
71
+ "stroke",
72
+ "stroke-width"
73
+ ], rt = ["opacity"], it = [
74
+ "x1",
75
+ "x2",
76
+ "y1",
77
+ "y2",
78
+ "stroke",
79
+ "stroke-width"
80
+ ], at = [
81
+ "x",
82
+ "y",
83
+ "font-size",
84
+ "fill",
85
+ "stroke"
86
+ ], ot = { key: 6 }, st = ["id"], ct = ["stop-color"], lt = ["stop-color"], ut = ["id"], dt = ["stop-color"], ft = ["stop-color"], pt = [
87
+ "x",
88
+ "y",
89
+ "width",
90
+ "height",
91
+ "fill",
92
+ "stroke",
93
+ "stroke-width",
94
+ "rx"
95
+ ], mt = [
96
+ "x",
97
+ "y",
98
+ "width",
99
+ "height",
100
+ "onMouseenter"
101
+ ], ht = {
102
+ key: 2,
103
+ style: { "pointer-events": "none" }
104
+ }, gt = [
105
+ "x",
106
+ "y",
107
+ "width",
108
+ "height",
109
+ "fill",
110
+ "fill-opacity"
111
+ ], _t = [
112
+ "x1",
113
+ "x2",
114
+ "y2",
115
+ "stroke",
116
+ "stroke-dasharray",
117
+ "stroke-width"
118
+ ], vt = [
119
+ "x1",
120
+ "x2",
121
+ "y2",
122
+ "stroke",
123
+ "stroke-dasharray",
124
+ "stroke-width"
125
+ ], yt = [
126
+ "x",
127
+ "y",
128
+ "height",
129
+ "width",
130
+ "fill",
131
+ "stroke",
132
+ "stroke-width",
133
+ "rx"
134
+ ], bt = [
135
+ "x",
136
+ "y",
137
+ "width",
138
+ "height",
139
+ "onMouseenter"
140
+ ], xt = {
141
+ key: 2,
142
+ style: { "pointer-events": "none" }
143
+ }, St = [
144
+ "x",
145
+ "y",
146
+ "width",
147
+ "height",
148
+ "fill",
149
+ "fill-opacity"
150
+ ], Ct = [
151
+ "x1",
152
+ "x2",
153
+ "y1",
154
+ "y2",
155
+ "stroke",
156
+ "stroke-dasharray",
157
+ "stroke-width"
158
+ ], wt = [
159
+ "x1",
160
+ "x2",
161
+ "y1",
162
+ "y2",
163
+ "stroke",
164
+ "stroke-dasharray",
165
+ "stroke-width"
166
+ ], Tt = {
167
+ key: 0,
168
+ style: { "pointer-events": "none" }
169
+ }, Et = [
170
+ "d",
171
+ "stroke",
172
+ "stroke-width"
173
+ ], Dt = [
174
+ "d",
175
+ "stroke",
176
+ "stroke-width"
177
+ ], Ot = [
178
+ "d",
179
+ "stroke",
180
+ "stroke-width"
181
+ ], kt = [
182
+ "d",
183
+ "stroke",
184
+ "stroke-width"
185
+ ], At = { key: 7 }, jt = [
186
+ "points",
187
+ "fill",
188
+ "stroke-width",
189
+ "stroke-dasharray",
190
+ "stroke"
191
+ ], Mt = {
192
+ key: 0,
193
+ class: "vue-ui-scatter-datapoint"
194
+ }, Nt = [
195
+ "cx",
196
+ "cy",
197
+ "r",
198
+ "fill",
199
+ "stroke",
200
+ "stroke-width",
201
+ "onMouseover",
202
+ "onMouseleave",
203
+ "onClick"
204
+ ], Pt = { key: 1 }, Ft = [
205
+ "transform",
206
+ "font-size",
207
+ "fill",
208
+ "onMouseover",
209
+ "onMouseleave",
210
+ "onClick"
211
+ ], It = ["clip-path"], Lt = [
212
+ "d",
213
+ "fill",
214
+ "stroke",
215
+ "stroke-width",
216
+ "stroke-opacity"
217
+ ], Rt = {
218
+ key: 0,
219
+ style: { "pointer-events": "none" }
220
+ }, zt = [
221
+ "x",
222
+ "y",
223
+ "width",
224
+ "height"
225
+ ], Bt = {
226
+ key: 0,
227
+ style: { "pointer-events": "none !important" }
228
+ }, Vt = [
229
+ "x1",
230
+ "x2",
231
+ "y1",
232
+ "y2",
233
+ "stroke",
234
+ "stroke-width",
235
+ "stroke-dasharray"
236
+ ], Ht = [
237
+ "x1",
238
+ "x2",
239
+ "y1",
240
+ "y2",
241
+ "stroke",
242
+ "stroke-width",
243
+ "stroke-dasharray"
244
+ ], Ut = [
245
+ "x",
246
+ "y",
247
+ "font-size",
248
+ "fill",
249
+ "font-weight",
250
+ "text-anchor"
251
+ ], Wt = [
252
+ "x",
253
+ "y",
254
+ "font-size",
255
+ "fill",
256
+ "font-weight"
257
+ ], Gt = [
258
+ "x",
259
+ "y",
260
+ "font-size",
261
+ "fill"
262
+ ], Kt = [
263
+ "x",
264
+ "y",
265
+ "font-size",
266
+ "fill"
267
+ ], qt = [
268
+ "cx",
269
+ "cy",
270
+ "r",
271
+ "fill",
272
+ "stroke",
273
+ "stroke-width"
274
+ ], Jt = [
275
+ "cx",
276
+ "cy",
277
+ "r",
278
+ "fill",
279
+ "stroke",
280
+ "stroke-width"
281
+ ], Yt = [
282
+ "x",
283
+ "y",
284
+ "font-size",
285
+ "fill",
286
+ "font-weight",
287
+ "text-anchor"
288
+ ], Xt = [
289
+ "id",
290
+ "transform",
291
+ "font-size",
292
+ "font-weight",
293
+ "fill"
294
+ ], Zt = [
295
+ "font-size",
296
+ "fill",
297
+ "transform"
298
+ ], Qt = [
299
+ "transform",
300
+ "font-size",
301
+ "fill"
302
+ ], $t = [
303
+ "x",
304
+ "y",
305
+ "font-size",
306
+ "fill"
307
+ ], en = [
308
+ "x",
309
+ "y",
310
+ "font-size",
311
+ "fill"
312
+ ], tn = [
313
+ "font-size",
314
+ "font-weight",
315
+ "fill",
316
+ "x",
317
+ "y"
318
+ ], nn = ["id"], rn = [
319
+ "x",
320
+ "y",
321
+ "width",
322
+ "height"
323
+ ], an = {
324
+ key: 14,
325
+ style: { pointerEvents: "none" }
326
+ }, on = [
327
+ "x1",
328
+ "x2",
329
+ "y1",
330
+ "y2",
331
+ "stroke-dasharray",
332
+ "stroke",
333
+ "stroke-width",
334
+ "clip-path"
335
+ ], sn = [
336
+ "x",
337
+ "y",
338
+ "fill",
339
+ "font-size",
340
+ "font-weight"
341
+ ], cn = {
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
+ }, ln = {
352
+ key: 6,
353
+ class: "vue-data-ui-watermark"
354
+ }, un = ["id"], dn = ["onClick"], fn = {
355
+ key: 0,
356
+ style: {
357
+ width: "100%",
358
+ display: "flex",
359
+ "align-items": "center",
360
+ "justify-content": "center"
361
+ }
362
+ }, pn = {
363
+ viewBox: "0 0 20 20",
364
+ height: "20",
365
+ width: "20",
366
+ style: {
367
+ overflow: "hidden",
368
+ background: "transparent"
369
+ }
370
+ }, mn = { key: 0 }, hn = ["innerHTML"], gn = /*#__PURE__*/ ge({
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: ge, emit: ze }) {
388
+ let gn = ke(() => import("./Tooltip-B8yYfISA.js")), _n = ke(() => import("./BaseIcon-_-BX7be3.js").then((e) => e.n)), vn = ke(() => import("./vue-ui-accordion-Dzz8XhX3.js").then((e) => e.n)), yn = ke(() => import("./DataTable-CVF7DoZn.js")), bn = ke(() => import("./PenAndPaper-gaV1QPpP.js").then((e) => e.t)), xn = ke(() => import("./UserOptions-BL9VlHop.js").then((e) => e.n)), Sn = ke(() => import("./PackageVersion-Dse0n05o.js").then((e) => e.t)), Cn = ke(() => import("./BaseDraggableDialog-1wwwdwV2.js").then((e) => e.n)), { vue_ui_scatter: wn } = oe(), { isThemeValid: Tn, warnInvalidTheme: En } = fe(), I = e, Dn = ze, On = x(() => !!I.dataset && I.dataset.length), L = A(u()), kn = A(!1), An = A(""), jn = A(0), R = A(null), Mn = A(null), Nn = A(null), Pn = A(null), Fn = A(null), In = A(0), Ln = A(0), Rn = A(0), z = A([]), zn = A(!1), Bn = A(null), Vn = A(null), Hn = A(null), Un = A(null), Wn = A(!1), Gn = A(!1), Kn = A(null), qn = A(null), Jn = A(null), Yn = A(null), Xn = A(null), Zn = A(null), Qn = A(null), $n = A({
389
+ x: 0,
390
+ y: 0
391
+ }), er = A("pointer"), tr = A(!1), nr = A(null), B = A(pr()), rr = x(() => B.value.userOptions.useCursorPointer);
392
+ function ir(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 g = (e, t) => e.reduce((e, n, r) => e + n * t[r], 0), _ = (e) => g(e, e), te = g(p, f) / _(f), v = p.map((e, t) => e - te * f[t]), ne = _(f) / d, re = _(v) / d, y = Math.sqrt((1 - t * t) * ne / re), ie = f.map((e, n) => t * e + y * v[n]), ae = f.concat(f.map((e) => -e)), oe = ie.concat(ie.map((e) => -e)), se = (e) => Math.sqrt(_(e) / e.length), ce = (e, t, n) => {
401
+ let r = se(e);
402
+ return e.map((e) => n + (r ? e / r * t : 0));
403
+ }, le = ce(ae, i, r), ue = ce(oe, o, a);
404
+ for (let e = le.length - 1; e > 0; --e) {
405
+ let t = Math.floor(l() * (e + 1));
406
+ [le[e], le[t]] = [le[t], le[e]], [ue[e], ue[t]] = [ue[t], ue[e]];
407
+ }
408
+ return le.map((e, t) => ({
409
+ x: e,
410
+ y: ue[t]
411
+ }));
412
+ }
413
+ let ar = x(() => t({
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: B.value.skeletonConfig ?? {}
440
+ })), { loading: or, FINAL_DATASET: sr, manualLoading: cr } = ce({
441
+ ...Le(I),
442
+ FINAL_CONFIG: B,
443
+ prepareConfig: pr,
444
+ skeletonDataset: I.config?.skeletonDataset ?? [{
445
+ name: "",
446
+ color: "#999999",
447
+ values: ir(100, .5, { seed: 42 })
448
+ }],
449
+ skeletonConfig: t({
450
+ defaultConfig: B.value,
451
+ userConfig: ar.value
452
+ })
453
+ }), { userOptionsVisible: lr, setUserOptionsVisibility: ur, keepUserOptionState: dr } = xe({ config: B.value }), { svgRef: fr } = Se({ config: B.value.style.title });
454
+ function pr() {
455
+ let e = de({
456
+ userConfig: I.config,
457
+ defaultConfig: wn
458
+ }), t = e.theme;
459
+ if (!t) return e;
460
+ if (!Tn.value(e)) return En(e), e;
461
+ let n = de({
462
+ userConfig: we[t] || I.config,
463
+ defaultConfig: e
464
+ }), r = de({
465
+ userConfig: I.config,
466
+ defaultConfig: n
467
+ });
468
+ return {
469
+ ...r,
470
+ customPalette: r.customPalette.length ? r.customPalette : l[t] || _
471
+ };
472
+ }
473
+ Re(() => I.config, (e) => {
474
+ or.value || (B.value = pr()), lr.value = !B.value.userOptions.showOnChartHover, _r(), In.value += 1, Ln.value += 1, Rn.value += 1, V.value.showTable = B.value.table.show, V.value.showTooltip = B.value.style.tooltip.show, gr.value && B.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 }), Re(() => I.dataset, (e) => {
476
+ Array.isArray(e) && e.length > 0 && (cr.value = !1);
477
+ }, { deep: !0 });
478
+ let mr = Ie(null), hr = Ie(null);
479
+ Pe(async () => {
480
+ _r(), await je(), zn.value = !0;
481
+ });
482
+ let gr = x(() => !!B.value.debug);
483
+ function _r() {
484
+ if (a(I.dataset) && (o({
485
+ componentName: "VueUiScatter",
486
+ type: "dataset",
487
+ debug: gr.value
488
+ }), cr.value = !0), a(I.dataset) || (cr.value = B.value.loading), B.value.responsive) {
489
+ let e = _e(() => {
490
+ let { width: e, height: t } = ve({
491
+ chart: R.value,
492
+ title: B.value.style.title.text ? Mn.value : null,
493
+ legend: B.value.style.legend.show ? Nn.value : null,
494
+ source: Pn.value,
495
+ noTitle: Fn.value
496
+ });
497
+ requestAnimationFrame(() => {
498
+ H.value.width = e, H.value.height = t;
499
+ });
500
+ });
501
+ mr.value && (hr.value && mr.value.unobserve(hr.value), mr.value.disconnect()), mr.value = new ResizeObserver(e), hr.value = R.value.parentNode, mr.value.observe(hr.value);
502
+ }
503
+ }
504
+ Ne(() => {
505
+ mr.value && (hr.value && mr.value.unobserve(hr.value), mr.value.disconnect());
506
+ });
507
+ let { isPrinting: vr, isImaging: yr, generatePdf: br, generateImage: xr } = se({
508
+ elementId: `vue-ui-scatter_${L.value}`,
509
+ fileName: B.value.style.title.text || "vue-ui-scatter",
510
+ options: B.value.userOptions.print
511
+ }), Sr = x(() => B.value.userOptions.show && !B.value.style.title.text), Cr = x(() => s(B.value.customPalette)), V = A({
512
+ showTable: B.value.table.show,
513
+ showTooltip: B.value.style.tooltip.show
514
+ });
515
+ Re(B, () => {
516
+ V.value = {
517
+ showTable: B.value.table.show,
518
+ showTooltip: B.value.style.tooltip.show
519
+ };
520
+ }, { immediate: !0 });
521
+ let H = A({
522
+ height: B.value.style.layout.height,
523
+ width: B.value.style.layout.width
524
+ }), wr = x(() => B.value.style.layout.marginalBars.show ? B.value.style.layout.marginalBars.size + B.value.style.layout.marginalBars.offset : 0);
525
+ function Tr() {
526
+ let e = 0;
527
+ if (B.value.style.layout.dataLabels.yAxis.scales.show && Xn.value) try {
528
+ e = Array.from(Xn.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 (Kn.value) try {
537
+ t = Kn.value.getBBox().width;
538
+ } catch {
539
+ t = 0;
540
+ }
541
+ return Math.max(t, e ? e + 12 : 0);
542
+ }
543
+ function Er() {
544
+ let e = 0;
545
+ if (qn.value) try {
546
+ let t = qn.value.getBBox(), n = t.x + t.width - H.value.width;
547
+ e = n > 0 ? n + 6 : 0;
548
+ } catch {
549
+ e = 0;
550
+ }
551
+ let t = 0;
552
+ if (B.value.style.layout.dataLabels.xAxis.scales.show && Zn.value) try {
553
+ t = Array.from(Zn.value.querySelectorAll("text")).reduce((e, t) => {
554
+ let n = t.getBBox(), r = n.x + n.width - H.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 U = x(() => {
563
+ let e = 0, t = 0, n = 0;
564
+ if (e = Tr(), t = Er(), Yn.value) try {
565
+ n = Yn.value.getBBox().height + 6;
566
+ } catch {
567
+ n = 0;
568
+ }
569
+ return {
570
+ top: B.value.style.layout.padding.top + wr.value + B.value.style.layout.dataLabels.yAxis.fontSize * 2,
571
+ right: H.value.width - B.value.style.layout.padding.right - wr.value - 6 - t,
572
+ bottom: H.value.height - B.value.style.layout.padding.bottom - n,
573
+ left: B.value.style.layout.padding.left + e,
574
+ height: H.value.height - B.value.style.layout.padding.top - B.value.style.layout.padding.bottom - wr.value - n - B.value.style.layout.dataLabels.yAxis.fontSize * 2,
575
+ width: H.value.width - B.value.style.layout.padding.left - B.value.style.layout.padding.right - wr.value - e - t - 6
576
+ };
577
+ }), Dr = x(() => {
578
+ sr.value.forEach((e, t) => {
579
+ re({
580
+ datasetObject: e,
581
+ requiredAttributes: ["values"]
582
+ }).forEach((e) => {
583
+ o({
584
+ componentName: "VueUiScatter",
585
+ type: "datasetSerieAttribute",
586
+ property: e,
587
+ index: t
588
+ });
589
+ }), e.values && e.values.forEach((e, n) => {
590
+ re({
591
+ datasetObject: e,
592
+ requiredAttributes: ["x", "y"]
593
+ }).forEach((e) => {
594
+ o({
595
+ componentName: "VueUiScatter",
596
+ type: "datasetSerieAttribute",
597
+ property: `values.${e}`,
598
+ index: `${t} - ${n}`
599
+ });
600
+ });
601
+ });
602
+ });
603
+ let e = Math.min(...K.value.filter((e) => !z.value.includes(e.id)).flatMap((e) => e.values.map((e) => e.x))), t = Math.max(...K.value.filter((e) => !z.value.includes(e.id)).flatMap((e) => e.values.map((e) => e.x))), n = Math.min(...K.value.filter((e) => !z.value.includes(e.id)).flatMap((e) => e.values.map((e) => e.y))), r = Math.max(...K.value.filter((e) => !z.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
+ }), Or = x(() => {
611
+ let e = B.value.style.layout.axis;
612
+ return {
613
+ xMin: e.xMin !== null && e.xMin !== void 0 ? e.xMin : Dr.value.xMin,
614
+ xMax: e.xMax !== null && e.xMax !== void 0 ? e.xMax : Dr.value.xMax,
615
+ yMin: e.yMin !== null && e.yMin !== void 0 ? e.yMin : Dr.value.yMin,
616
+ yMax: e.yMax !== null && e.yMax !== void 0 ? e.yMax : Dr.value.yMax
617
+ };
618
+ });
619
+ function kr(e) {
620
+ return Number.isFinite(e) ? e < 2 ? 2 : Math.trunc(e) : 5;
621
+ }
622
+ function Ar(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 jr({ minimum: e, maximum: t, stepCount: n, useNiceScale: r }) {
626
+ let i = kr(n);
627
+ if (e === t) {
628
+ let n = t + (e === 0 ? 1 : Math.abs(e) * .01);
629
+ return (r ? ee : m)(e, n, i);
630
+ }
631
+ return (r ? ee : m)(e, t, i);
632
+ }
633
+ let Mr = x(() => {
634
+ let e = B.value.style.layout.dataLabels.xAxis;
635
+ return jr({
636
+ minimum: Or.value.xMin,
637
+ maximum: Or.value.xMax,
638
+ stepCount: e.scales.steps,
639
+ useNiceScale: e.scales.useNiceScale
640
+ });
641
+ }), Nr = x(() => {
642
+ let e = B.value.style.layout.dataLabels.yAxis;
643
+ return jr({
644
+ minimum: Or.value.yMin,
645
+ maximum: Or.value.yMax,
646
+ stepCount: e.scales.steps,
647
+ useNiceScale: e.scales.useNiceScale
648
+ });
649
+ }), W = x(() => ({
650
+ xMin: Mr.value.min,
651
+ xMax: Mr.value.max,
652
+ yMin: Nr.value.min,
653
+ yMax: Nr.value.max
654
+ })), Pr = x(() => {
655
+ let e = B.value.style.layout.dataLabels.xAxis, t = e.scales.labels;
656
+ return Mr.value.ticks.map((n) => ({
657
+ value: n,
658
+ x: Rr(n),
659
+ label: h(t.formatter, y(n), v({
660
+ p: B.value.style.layout.plots.selectors.labels.prefix,
661
+ v: y(n),
662
+ s: B.value.style.layout.plots.selectors.labels.suffix,
663
+ r: Ar(e)
664
+ }))
665
+ }));
666
+ }), Fr = x(() => {
667
+ let e = B.value.style.layout.dataLabels.yAxis, t = e.scales.labels;
668
+ return Nr.value.ticks.map((n) => ({
669
+ value: n,
670
+ y: zr(n),
671
+ label: h(t.formatter, y(n), v({
672
+ p: B.value.style.layout.plots.selectors.labels.prefix,
673
+ v: y(n),
674
+ s: B.value.style.layout.plots.selectors.labels.suffix,
675
+ r: Ar(e)
676
+ }))
677
+ }));
678
+ }), Ir = x(() => Qr.value.length > 0 && B.value.style.layout.dataLabels.xAxis.scales.show), Lr = x(() => Qr.value.length > 0 && B.value.style.layout.dataLabels.yAxis.scales.show);
679
+ function Rr(e) {
680
+ let t = W.value.xMax - W.value.xMin;
681
+ return t === 0 ? U.value.left : U.value.left + (e - W.value.xMin) / t * U.value.width;
682
+ }
683
+ function zr(e) {
684
+ let t = W.value.yMax - W.value.yMin;
685
+ return t === 0 ? U.value.bottom : U.value.bottom - (e - W.value.yMin) / t * U.value.height;
686
+ }
687
+ let G = x(() => {
688
+ let { xMin: e, xMax: t, yMin: n, yMax: r } = W.value, i = e > 0 ? e : t < 0 ? t : 0, a = n > 0 ? n : r < 0 ? r : 0;
689
+ return {
690
+ x: Rr(i),
691
+ y: zr(a)
692
+ };
693
+ }), K = x(() => sr.value.map((e, t) => {
694
+ let n = `cluster_${L.value}_${t}`;
695
+ return {
696
+ ...e,
697
+ values: c({
698
+ data: e.values,
699
+ threshold: B.value.usePerformanceMode ? e.values.length + 1 : B.value.downsample.threshold
700
+ }),
701
+ id: n,
702
+ color: e.color ? e.color : Cr.value[t] || _[t] || _[t % _.length],
703
+ opacity: z.value.includes(n) ? .5 : 1,
704
+ shape: e.shape ?? "circle",
705
+ segregate: () => ai(n),
706
+ isSegregated: z.value.includes(n),
707
+ hasGroupSelection: !!qr.value,
708
+ isGroupSelected: qr.value === n,
709
+ onEnter: () => Yr(n),
710
+ onLeave: () => Xr()
711
+ };
712
+ })), Br = x(() => ({
713
+ cy: "scatter-div-legend",
714
+ backgroundColor: B.value.style.legend.backgroundColor,
715
+ color: B.value.style.legend.color,
716
+ fontSize: B.value.style.legend.fontSize,
717
+ paddingBottom: 12,
718
+ fontWeight: B.value.style.legend.bold ? "bold" : ""
719
+ })), Vr = x(() => K.value.map((e, t) => ({
720
+ ...e,
721
+ plots: e.values.map((n, r) => ({
722
+ x: Rr(n.x),
723
+ y: zr(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 : Cr.value[t] || _[t] || _[t % _.length],
731
+ id: `plot_${L.value}_${t}_${r}`,
732
+ weight: n.weight ?? B.value.style.layout.plots.radius
733
+ }))
734
+ })).filter((e) => !z.value.includes(e.id))), q = x(() => {
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 Vr.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, m;
767
+ d === null ? (f = l, m = u) : (f = Infinity, m = null);
768
+ let ee = n.plots.every((e) => e.v && typeof e.v.x == "number" && typeof e.v.y == "number"), h = NaN;
769
+ if (r >= 2) {
770
+ let t = 0, o = 0;
771
+ ee ? (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 = ee ? e.v.x : e.x, r = ee ? 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
+ h = Math.max(-1, Math.min(1, e));
780
+ }
781
+ }
782
+ let g = t({
783
+ m: f,
784
+ b: m,
785
+ rect: U.value,
786
+ verticalX: d
787
+ });
788
+ if (!g) 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: p(n.color)
797
+ }))
798
+ };
799
+ let _ = {
800
+ x: (g.x1 + g.x2) / 2,
801
+ y: (g.y1 + g.y2) / 2
802
+ };
803
+ return {
804
+ ...n,
805
+ color: p(n.color),
806
+ correlation: {
807
+ ...g,
808
+ coefficient: h
809
+ },
810
+ label: _,
811
+ plots: n.plots.map((t) => {
812
+ let r, i;
813
+ d === null ? Math.abs(f) < e ? (r = t.x, i = m) : (r = (t.x + f * t.y - f * m) / (1 + f * f), i = (f * t.x + f * f * t.y + m) / (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: p(n.color)
820
+ };
821
+ })
822
+ };
823
+ });
824
+ }), Hr = x(() => Math.max(...q.value.flatMap((e) => e.plots.map((e) => Math.abs(e.deviation)))));
825
+ function Ur() {
826
+ return q.value;
827
+ }
828
+ function Wr(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 J = x(() => B.value.style.layout.marginalBars.tranches), Y = x(() => Wr(Vr.value, J.value)), Gr = x(() => {
856
+ let e = U.value.top - B.value.style.layout.marginalBars.offset, t = U.value.right + B.value.style.layout.marginalBars.offset;
857
+ return Vr.value.map((n) => {
858
+ let r = Wr(n, J.value);
859
+ return {
860
+ coords: r,
861
+ dX: g(r.avgX.map((t, n) => ({
862
+ x: t,
863
+ y: e - r.x[n] / r.maxX * B.value.style.layout.marginalBars.size
864
+ }))),
865
+ dY: i(r.avgY.map((e, n) => ({
866
+ y: e,
867
+ x: t + B.value.style.layout.marginalBars.size * r.y[n] / r.maxY
868
+ }))),
869
+ color: n.color,
870
+ id: n.id
871
+ };
872
+ });
873
+ }), X = A(void 0), Z = A(null), Q = A([]), Kr = A(null), qr = A(void 0);
874
+ function Jr() {
875
+ kn.value = !1, X.value = void 0, Q.value = [], Z.value = null, nr.value = null, Qn.value = null, qr.value = void 0;
876
+ }
877
+ function Yr(e) {
878
+ let t = q.value.find((t) => t.id === e);
879
+ if (!t) {
880
+ Q.value = [];
881
+ return;
882
+ }
883
+ Q.value = t.plots.map((e) => e.id), qr.value = e;
884
+ }
885
+ function Xr() {
886
+ Q.value = [], qr.value = void 0;
887
+ }
888
+ function Zr(e) {
889
+ if (!fr.value || !e) return;
890
+ let t = n(e.x, e.y, fr.value);
891
+ t && ($n.value = t);
892
+ }
893
+ let Qr = x(() => Z.value ? [Z.value] : Q.value.length ? q.value.flatMap((e) => e.plots).filter((e) => Q.value.includes(e.id)) : []);
894
+ function $r(e) {
895
+ let t = B.value.style.layout.dataLabels.xAxis, n = t.scales.labels;
896
+ return h(n.formatter, y(e.v.x), v({
897
+ p: B.value.style.layout.plots.selectors.labels.prefix,
898
+ v: y(e.v.x),
899
+ s: B.value.style.layout.plots.selectors.labels.suffix,
900
+ r: Ar(t)
901
+ }), { datapoint: e });
902
+ }
903
+ function ei(e) {
904
+ let t = B.value.style.layout.dataLabels.yAxis, n = t.scales.labels;
905
+ return h(n.formatter, y(e.v.y), v({
906
+ p: B.value.style.layout.plots.selectors.labels.prefix,
907
+ v: y(e.v.y),
908
+ s: B.value.style.layout.plots.selectors.labels.suffix,
909
+ r: Ar(t)
910
+ }), { datapoint: e });
911
+ }
912
+ function ti(e, t, n = "pointer", r = null) {
913
+ X.value = e.id, Z.value = e, er.value = n, nr.value = r, Qn.value = e.id;
914
+ let i = "";
915
+ B.value.events.datapointEnter && B.value.events.datapointEnter({
916
+ datapoint: e,
917
+ seriesIndex: t
918
+ }), Kr.value = {
919
+ datapoint: e,
920
+ seriesIndex: t,
921
+ series: q.value,
922
+ config: B.value
923
+ };
924
+ let a = B.value.style.tooltip.customFormat;
925
+ ie(a) && f(() => a({
926
+ datapoint: e,
927
+ seriesIndex: t,
928
+ series: q.value,
929
+ config: B.value
930
+ })) ? An.value = a({
931
+ datapoint: e,
932
+ seriesIndex: t,
933
+ series: q.value,
934
+ config: B.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 ${B.value.style.tooltip.borderColor}">`, i += `<div>${B.value.style.layout.dataLabels.xAxis.name}: <b>${isNaN(e.v.x) ? "-" : h(B.value.style.layout.plots.selectors.labels.x.formatter, e.v.x, v({
936
+ p: B.value.style.tooltip.prefix,
937
+ v: e.v.x,
938
+ s: B.value.style.tooltip.suffix,
939
+ r: B.value.style.tooltip.roundingValue
940
+ }), {
941
+ datapoint: e,
942
+ seriesIndex: t
943
+ })}</b></div>`, i += `<div>${B.value.style.layout.dataLabels.yAxis.name}: <b>${isNaN(e.v.y) ? "-" : h(B.value.style.layout.plots.selectors.labels.y.formatter, e.v.y, v({
944
+ p: B.value.style.tooltip.prefix,
945
+ v: e.v.y,
946
+ s: B.value.style.tooltip.suffix,
947
+ r: B.value.style.tooltip.roundingValue
948
+ }), {
949
+ datapoint: e,
950
+ seriesIndex: t
951
+ })}</b></div>`, i += `${B.value.style.layout.plots.deviation.translation}: <b>${v({
952
+ v: e.deviation,
953
+ r: B.value.style.layout.plots.deviation.roundingValue
954
+ })}</b>`, i += "</div>", An.value = `<div>${i}</div>`), kn.value = !0, n === "keyboard" && je(() => {
955
+ Zr(e);
956
+ });
957
+ }
958
+ function ni(e, t) {
959
+ B.value.events.datapointLeave && B.value.events.datapointLeave({
960
+ datapoint: e,
961
+ seriesIndex: t
962
+ }), !(er.value === "keyboard" && Qn.value === e?.id) && (kn.value = !1, X.value = void 0, Z.value = null);
963
+ }
964
+ function ri(e, t) {
965
+ B.value.events.datapointClick && B.value.events.datapointClick({
966
+ datapoint: e,
967
+ seriesIndex: t
968
+ });
969
+ }
970
+ function ii() {
971
+ z.value.length ? z.value = [] : K.value.forEach((e) => {
972
+ z.value.push(e.id);
973
+ }), Dn("selectLegend", Vr.value);
974
+ }
975
+ function ai(e) {
976
+ z.value.includes(e) ? z.value = z.value.filter((t) => t !== e) : z.value.length < sr.value.length - 1 && z.value.push(e), Dn("selectLegend", Vr.value);
977
+ }
978
+ function oi(e) {
979
+ return K.value.length ? K.value.find((t) => t.name === e) || (B.value.debug && console.warn(`VueUiScatter - Series name not found "${e}"`), null) : (B.value.debug && console.warn("VueUiScatter - There are no series to show."), null);
980
+ }
981
+ function si(e) {
982
+ let t = oi(e);
983
+ t !== null && z.value.includes(t.id) && ai(t.id);
984
+ }
985
+ function ci(e) {
986
+ let t = oi(e);
987
+ t !== null && (z.value.includes(t.id) || ai(t.id));
988
+ }
989
+ function li(e = null) {
990
+ je(() => {
991
+ let t = [
992
+ "",
993
+ B.value.table.translations.correlationCoefficient,
994
+ B.value.table.translations.nbrPlots,
995
+ `${B.value.style.layout.dataLabels.xAxis.name} ${B.value.table.translations.average}`,
996
+ `${B.value.style.layout.dataLabels.yAxis.name} ${B.value.table.translations.average}`
997
+ ], n = q.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
+ ]), r = ae([
1004
+ [B.value.style.title.text],
1005
+ [B.value.style.title.subtitle.text],
1006
+ [
1007
+ [""],
1008
+ [""],
1009
+ [""]
1010
+ ],
1011
+ t
1012
+ ].concat(n));
1013
+ e ? e(r) : d({
1014
+ csvContent: r,
1015
+ title: B.value.style.title.text || "vue-ui-heatmap"
1016
+ });
1017
+ });
1018
+ }
1019
+ let ui = x(() => {
1020
+ let e = [
1021
+ B.value.table.translations.series,
1022
+ B.value.table.translations.correlationCoefficient,
1023
+ B.value.table.translations.nbrPlots,
1024
+ `${B.value.style.layout.dataLabels.xAxis.name} ${B.value.table.translations.average}`,
1025
+ `${B.value.style.layout.dataLabels.yAxis.name} ${B.value.table.translations.average}`
1026
+ ], t = q.value.map((e) => [
1027
+ {
1028
+ shape: e.shape,
1029
+ content: e.name ?? "-",
1030
+ color: e.color
1031
+ },
1032
+ Number((e.correlation?.coefficient ?? 0).toFixed(B.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(B.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(B.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: B.value.table.th.backgroundColor,
1044
+ color: B.value.table.th.color,
1045
+ outline: B.value.table.th.outline
1046
+ },
1047
+ td: {
1048
+ backgroundColor: B.value.table.td.backgroundColor,
1049
+ color: B.value.table.td.color,
1050
+ outline: B.value.table.td.outline
1051
+ },
1052
+ breakpoint: B.value.table.responsiveBreakpoint
1053
+ },
1054
+ colNames: e
1055
+ };
1056
+ }), di = A(!1);
1057
+ function fi(e) {
1058
+ di.value = e, jn.value += 1;
1059
+ }
1060
+ function pi() {
1061
+ V.value.showTable = !V.value.showTable;
1062
+ }
1063
+ function mi() {
1064
+ V.value.showTooltip = !V.value.showTooltip;
1065
+ }
1066
+ let hi = A(!1);
1067
+ function gi() {
1068
+ hi.value = !hi.value;
1069
+ }
1070
+ async function _i({ scale: e = 2 } = {}) {
1071
+ if (!R.value) return;
1072
+ let { width: t, height: n } = R.value.getBoundingClientRect(), r = t / n, { imageUri: i, base64: a } = await pe({
1073
+ domElement: R.value,
1074
+ base64: !0,
1075
+ img: !0,
1076
+ scale: e
1077
+ });
1078
+ return {
1079
+ imageUri: i,
1080
+ base64: a,
1081
+ title: B.value.style.title.text,
1082
+ width: t,
1083
+ height: n,
1084
+ aspectRatio: r
1085
+ };
1086
+ }
1087
+ function vi(e) {
1088
+ Bn.value = e, B.value.style.layout.marginalBars.highlighter.highlightBothAxes && (Vn.value = Y.value.y.length - 2 - e);
1089
+ }
1090
+ function yi(e) {
1091
+ Vn.value = e, B.value.style.layout.marginalBars.highlighter.highlightBothAxes && (Bn.value = e);
1092
+ }
1093
+ function bi() {
1094
+ Bn.value = null, Vn.value = null;
1095
+ }
1096
+ let xi = {
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
+ }, $ = (e) => e.toFixed(3);
1105
+ function Si({ shape: e = "circle", cx: t, cy: n, r }) {
1106
+ if (!B.value.usePerformanceMode) return "";
1107
+ let i = xi[e] * r;
1108
+ switch (e) {
1109
+ case "circle": {
1110
+ let e = $(t - i), r = $(n), a = $(t + i), o = $(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 = $(t - i), r = $(n - i), a = $(t + i), o = $(n + i);
1115
+ return `M ${e} ${r} L ${a} ${r} L ${a} ${o} L ${e} ${o} Z`;
1116
+ }
1117
+ case "diamond": {
1118
+ let e = $(t), r = $(n);
1119
+ return `M ${e} ${$(n - i)} L ${$(t + i)} ${r} L ${e} ${$(n + i)} L ${$(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 ${$(r)} ${$(a)} L ${$(o)} ${$(s)} L ${$(c)} ${$(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 ${$(a[0][0])} ${$(a[0][1])}`;
1132
+ for (let e = 1; e < a.length; e += 1) o += ` L ${$(a[e][0])} ${$(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 ${$(e[0][0])} ${$(e[0][1])}`;
1142
+ for (let t = 1; t < 5; t += 1) r += ` L ${$(e[t][0])} ${$(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 ${$(e[0][0])} ${$(e[0][1])}`;
1152
+ for (let t = 1; t < 6; t += 1) r += ` L ${$(e[t][0])} ${$(e[t][1])}`;
1153
+ return r + " Z";
1154
+ }
1155
+ default: {
1156
+ let e = $(t - i), r = $(n), a = $(t + i), o = $(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 Ci = x(() => {
1162
+ if (!B.value.usePerformanceMode) return [""];
1163
+ let { left: e, right: t, top: n, bottom: i } = U.value, a = Math.max(1, (t - e) * (i - n)), o = (e) => e / a * 1e4, s = B.value.style.layout.plots.stroke, c = B.value.style.layout.plots.strokeWidth, l = B.value.style.layout.plots.opacity;
1164
+ return q.value.map((a) => {
1165
+ let u = [];
1166
+ for (let r of a.plots) {
1167
+ let o = r.x, s = r.y;
1168
+ if (o < e || o > t || s < n || s > i) continue;
1169
+ let c = Math.max(B.value.style.layout.plots.radius, r.weight);
1170
+ u.push(Si({
1171
+ shape: a.shape || "circle",
1172
+ cx: o,
1173
+ cy: s,
1174
+ r: c
1175
+ }));
1176
+ }
1177
+ if (!u.length) return null;
1178
+ let d = o(a.plots.length) > 2.5 || a.plots.length > 1e3;
1179
+ return {
1180
+ id: a.id,
1181
+ d: u.join(""),
1182
+ fill: r(a.color, l * 100),
1183
+ stroke: d ? "none" : s,
1184
+ strokeWidth: d ? 0 : c,
1185
+ strokeOpacity: 1
1186
+ };
1187
+ }).filter(Boolean);
1188
+ });
1189
+ function wi() {
1190
+ return B.value.usePerformanceMode ? (e) => {
1191
+ let t = fr.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 (q.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) X.value !== o.id && (X.value = o.id, ti(o, c, "pointer", Ui.value.get(o.id) ?? null));
1204
+ else if (X.value) {
1205
+ let e = Z.value;
1206
+ X.value = void 0, ni(e, c);
1207
+ }
1208
+ } : () => null;
1209
+ }
1210
+ let Ti = wi();
1211
+ function Ei() {
1212
+ if (X.value) {
1213
+ let e = Z.value;
1214
+ X.value = void 0, ni(e, null);
1215
+ }
1216
+ }
1217
+ function Di(e) {
1218
+ let t = Z.value;
1219
+ if (t) {
1220
+ let e = q.value.findIndex((e) => e.id === t.clusterId);
1221
+ ri(t, e >= 0 ? e : 0);
1222
+ }
1223
+ }
1224
+ let Oi = x(() => {
1225
+ let e = B.value.table.useDialog && !B.value.table.show, t = V.value.showTable;
1226
+ return {
1227
+ component: e ? Cn : vn,
1228
+ title: `${B.value.style.title.text}${B.value.style.title.subtitle.text ? `: ${B.value.style.title.subtitle.text}` : ""}`,
1229
+ props: e ? {
1230
+ backgroundColor: B.value.table.th.backgroundColor,
1231
+ color: B.value.table.th.color,
1232
+ headerColor: B.value.table.th.color,
1233
+ headerBg: B.value.table.th.backgroundColor,
1234
+ isFullscreen: di.value,
1235
+ fullscreenParent: R.value,
1236
+ forcedWidth: Math.min(800, window.innerWidth * .8),
1237
+ isCursorPointer: rr.value
1238
+ } : {
1239
+ hideDetails: !0,
1240
+ config: {
1241
+ open: t,
1242
+ maxHeight: 1e4,
1243
+ body: {
1244
+ backgroundColor: B.value.style.backgroundColor,
1245
+ color: B.value.style.color
1246
+ },
1247
+ head: {
1248
+ backgroundColor: B.value.style.backgroundColor,
1249
+ color: B.value.style.color
1250
+ }
1251
+ }
1252
+ }
1253
+ };
1254
+ });
1255
+ Re(() => V.value.showTable, (e) => {
1256
+ B.value.table.show || (e && B.value.table.useDialog && Hn.value ? Hn.value.open() : "close" in Hn.value && Hn.value.close());
1257
+ });
1258
+ function ki() {
1259
+ V.value.showTable = !1, Un.value && Un.value.setTableIconState(!1);
1260
+ }
1261
+ let Ai = x(() => B.value.style.backgroundColor), ji = x(() => B.value.style.legend), { exportSvg: Mi, getSvg: Ni } = ue({
1262
+ svg: fr,
1263
+ title: x(() => B.value.style.title),
1264
+ legend: ji,
1265
+ legendItems: K,
1266
+ backgroundColor: Ai
1267
+ });
1268
+ async function Pi({ isCb: e }) {
1269
+ Gn.value = !0, await je();
1270
+ try {
1271
+ if (e) {
1272
+ let { blob: e, url: t, text: n, dataUrl: r } = await Ni();
1273
+ await Promise.resolve(B.value.userOptions.callbacks.svg({
1274
+ blob: e,
1275
+ url: t,
1276
+ text: n,
1277
+ dataUrl: r
1278
+ }));
1279
+ } else await Promise.resolve(Mi());
1280
+ } finally {
1281
+ Gn.value = !1;
1282
+ }
1283
+ }
1284
+ function Fi(e) {
1285
+ if (e?.stage === "start") {
1286
+ Wn.value = !0;
1287
+ return;
1288
+ }
1289
+ if (e?.stage === "end") {
1290
+ Wn.value = !1;
1291
+ return;
1292
+ }
1293
+ xr();
1294
+ }
1295
+ async function Ii() {
1296
+ if (Dn("copyAlt", {
1297
+ config: B.value,
1298
+ dataset: Vr.value
1299
+ }), !B.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(B.value.userOptions.callbacks.altCopy({
1304
+ config: B.value,
1305
+ dataset: Vr.value
1306
+ }));
1307
+ }
1308
+ function Li(e, t) {
1309
+ let n = Hi.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 : !1));
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 Ri() {
1346
+ nr.value = null, Qn.value = null, tr.value = !0;
1347
+ }
1348
+ function zi() {
1349
+ Jr(), er.value = "pointer", tr.value = !1;
1350
+ }
1351
+ function Bi(e) {
1352
+ if (!fr.value || hi.value || document.activeElement !== fr.value || !Hi.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
+ Jr(), er.value = "pointer";
1357
+ return;
1358
+ }
1359
+ if (a) {
1360
+ if (nr.value === null) return;
1361
+ let e = Hi.value[nr.value];
1362
+ if (!e) return;
1363
+ ri(e, e.seriesIndex);
1364
+ return;
1365
+ }
1366
+ let s = null;
1367
+ if (n && (s = "right"), t && (s = "left"), i && (s = "down"), r && (s = "up"), Qn.value === null) {
1368
+ let e = Z.value;
1369
+ if (e && e.id) {
1370
+ let t = Li(e, s);
1371
+ if (!t) {
1372
+ let t = Ui.value.get(e.id);
1373
+ if (t === void 0) return;
1374
+ ti(e, e.seriesIndex, "keyboard", t);
1375
+ return;
1376
+ }
1377
+ let n = Ui.value.get(t.id);
1378
+ if (n === void 0) return;
1379
+ ti(t, t.seriesIndex, "keyboard", n);
1380
+ return;
1381
+ }
1382
+ let t = Hi.value[0];
1383
+ if (!t) return;
1384
+ let n = Ui.value.get(t.id) ?? 0;
1385
+ ti(t, t.seriesIndex, "keyboard", n);
1386
+ return;
1387
+ }
1388
+ let c = Ui.value.get(Qn.value);
1389
+ if (c === void 0) return;
1390
+ let l = Hi.value[c];
1391
+ if (!l) return;
1392
+ let u = Li(l, s);
1393
+ if (!u) return;
1394
+ let d = Ui.value.get(u.id);
1395
+ d !== void 0 && ti(u, u.seriesIndex, "keyboard", d);
1396
+ }
1397
+ let Vi = x(() => {
1398
+ if (!Z.value) return "";
1399
+ let e = Z.value, t = isNaN(e.v.x) ? "-" : h(B.value.style.layout.plots.selectors.labels.x.formatter, e.v.x, v({
1400
+ p: B.value.style.tooltip.prefix,
1401
+ v: e.v.x,
1402
+ s: B.value.style.tooltip.suffix,
1403
+ r: B.value.style.tooltip.roundingValue
1404
+ }), {
1405
+ datapoint: e,
1406
+ seriesIndex: e.seriesIndex
1407
+ }), n = isNaN(e.v.y) ? "-" : h(B.value.style.layout.plots.selectors.labels.y.formatter, e.v.y, v({
1408
+ p: B.value.style.tooltip.prefix,
1409
+ v: e.v.y,
1410
+ s: B.value.style.tooltip.suffix,
1411
+ r: B.value.style.tooltip.roundingValue
1412
+ }), {
1413
+ datapoint: e,
1414
+ seriesIndex: e.seriesIndex
1415
+ });
1416
+ return [
1417
+ e.clusterName || "",
1418
+ e.v.name || "",
1419
+ `${B.value.style.layout.dataLabels.xAxis.name}: ${t}`,
1420
+ `${B.value.style.layout.dataLabels.yAxis.name}: ${n}`
1421
+ ].filter(Boolean).join(". ");
1422
+ }), Hi = x(() => q.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
+ })))), Ui = x(() => {
1430
+ let e = /* @__PURE__ */ new Map();
1431
+ return Hi.value.forEach((t, n) => {
1432
+ e.set(t.id, n);
1433
+ }), e;
1434
+ }), Wi = x(() => ({
1435
+ headers: ui.value?.colNames ?? [],
1436
+ rows: ui.value?.a11yBody ?? []
1437
+ }));
1438
+ return ge({
1439
+ getData: Ur,
1440
+ getImage: _i,
1441
+ generatePdf: br,
1442
+ generateCsv: li,
1443
+ generateImage: xr,
1444
+ generateSvg: Pi,
1445
+ hideSeries: ci,
1446
+ showSeries: si,
1447
+ toggleTable: pi,
1448
+ toggleTooltip: mi,
1449
+ toggleAnnotator: gi,
1450
+ toggleFullscreen: fi,
1451
+ copyAlt: Ii
1452
+ }), (e, t) => (k(), w("div", {
1453
+ class: Me(`vue-data-ui-component vue-ui-scatter ${di.value ? "vue-data-ui-wrapper-fullscreen" : ""} ${B.value.useCssAnimation ? "" : "vue-ui-dna"}`),
1454
+ ref_key: "scatterChart",
1455
+ ref: R,
1456
+ id: `vue-ui-scatter_${L.value}`,
1457
+ style: O(`font-family:${B.value.style.fontFamily};width:100%; text-align:center;background:${B.value.style.backgroundColor};${B.value.responsive ? "height: 100%" : ""}`),
1458
+ onMouseenter: t[5] ||= () => P(ur)(!0),
1459
+ onMouseleave: t[6] ||= () => {
1460
+ P(ur)(!1), tr.value || Jr();
1461
+ }
1462
+ }, [
1463
+ T("div", {
1464
+ id: `chart-instructions-${L.value}`,
1465
+ class: "sr-only"
1466
+ }, [T("p", null, N(B.value.a11y.translations.keyboardNavigation), 1)], 8, Ve),
1467
+ V.value.showTooltip ? C("", !0) : (k(), w("div", He, N(Vi.value), 1)),
1468
+ Wi.value?.rows?.length && On.value ? (k(), S(be, {
1469
+ key: 1,
1470
+ uid: L.value,
1471
+ head: Wi.value.headers,
1472
+ body: Wi.value.rows,
1473
+ notice: B.value.a11y.translations.tableAvailable,
1474
+ caption: B.value.a11y.translations.tableCaption
1475
+ }, null, 8, [
1476
+ "uid",
1477
+ "head",
1478
+ "body",
1479
+ "notice",
1480
+ "caption"
1481
+ ])) : C("", !0),
1482
+ B.value.userOptions.buttons.annotator ? (k(), S(P(bn), {
1483
+ key: 2,
1484
+ svgRef: P(fr),
1485
+ backgroundColor: B.value.style.backgroundColor,
1486
+ color: B.value.style.color,
1487
+ active: hi.value,
1488
+ isCursorPointer: rr.value,
1489
+ onClose: gi
1490
+ }, {
1491
+ "annotator-action-close": F(() => [M(e.$slots, "annotator-action-close", {}, void 0, !0)]),
1492
+ "annotator-action-color": F(({ color: t }) => [M(e.$slots, "annotator-action-color", D(E({ color: t })), void 0, !0)]),
1493
+ "annotator-action-draw": F(({ mode: t }) => [M(e.$slots, "annotator-action-draw", D(E({ mode: t })), void 0, !0)]),
1494
+ "annotator-action-undo": F(({ disabled: t }) => [M(e.$slots, "annotator-action-undo", D(E({ disabled: t })), void 0, !0)]),
1495
+ "annotator-action-redo": F(({ disabled: t }) => [M(e.$slots, "annotator-action-redo", D(E({ disabled: t })), void 0, !0)]),
1496
+ "annotator-action-delete": F(({ disabled: t }) => [M(e.$slots, "annotator-action-delete", D(E({ disabled: t })), void 0, !0)]),
1497
+ _: 3
1498
+ }, 8, [
1499
+ "svgRef",
1500
+ "backgroundColor",
1501
+ "color",
1502
+ "active",
1503
+ "isCursorPointer"
1504
+ ])) : C("", !0),
1505
+ Sr.value ? (k(), w("div", {
1506
+ key: 3,
1507
+ ref_key: "noTitle",
1508
+ ref: Fn,
1509
+ class: "vue-data-ui-no-title-space",
1510
+ style: "height:36px; width: 100%;background:transparent"
1511
+ }, null, 512)) : C("", !0),
1512
+ B.value.style.title.text ? (k(), w("div", {
1513
+ key: 4,
1514
+ ref_key: "chartTitle",
1515
+ ref: Mn,
1516
+ style: "width:100%;background:transparent"
1517
+ }, [(k(), S(me, {
1518
+ key: `title_${In.value}`,
1519
+ config: {
1520
+ title: {
1521
+ cy: "scatter-div-title",
1522
+ ...B.value.style.title
1523
+ },
1524
+ subtitle: {
1525
+ cy: "scatter-div-subtitle",
1526
+ ...B.value.style.title.subtitle
1527
+ }
1528
+ }
1529
+ }, null, 8, ["config"]))], 512)) : C("", !0),
1530
+ T("div", { id: `legend-top-${L.value}` }, null, 8, Ue),
1531
+ B.value.userOptions.show && On.value && (P(dr) || P(lr)) ? (k(), S(P(xn), {
1532
+ ref_key: "userOptionsRef",
1533
+ ref: Un,
1534
+ key: `user_options_${jn.value}`,
1535
+ backgroundColor: B.value.style.backgroundColor,
1536
+ color: B.value.style.color,
1537
+ isImaging: P(yr),
1538
+ isPrinting: P(vr),
1539
+ uid: L.value,
1540
+ hasTooltip: B.value.userOptions.buttons.tooltip && B.value.style.tooltip.show,
1541
+ hasPdf: B.value.userOptions.buttons.pdf,
1542
+ hasImg: B.value.userOptions.buttons.img,
1543
+ hasSvg: B.value.userOptions.buttons.svg,
1544
+ hasXls: B.value.userOptions.buttons.csv,
1545
+ hasTable: B.value.userOptions.buttons.table,
1546
+ hasFullscreen: B.value.userOptions.buttons.fullscreen,
1547
+ hasAltCopy: B.value.userOptions.buttons.altCopy,
1548
+ isTooltip: V.value.showTooltip,
1549
+ isFullscreen: di.value,
1550
+ titles: { ...B.value.userOptions.buttonTitles },
1551
+ chartElement: R.value,
1552
+ position: B.value.userOptions.position,
1553
+ hasAnnotator: B.value.userOptions.buttons.annotator,
1554
+ isAnnotation: hi.value,
1555
+ callbacks: B.value.userOptions.callbacks,
1556
+ printScale: B.value.userOptions.print.scale,
1557
+ tableDialog: B.value.table.useDialog,
1558
+ isCursorPointer: rr.value,
1559
+ onToggleFullscreen: fi,
1560
+ onGeneratePdf: P(br),
1561
+ onGenerateCsv: li,
1562
+ onGenerateImage: Fi,
1563
+ onGenerateSvg: Pi,
1564
+ onToggleTable: pi,
1565
+ onToggleTooltip: mi,
1566
+ onToggleAnnotator: gi,
1567
+ onCopyAlt: Ii,
1568
+ style: O({ visibility: P(dr) ? P(lr) ? "visible" : "hidden" : "visible" })
1569
+ }, Ee({ _: 2 }, [
1570
+ e.$slots.menuIcon ? {
1571
+ name: "menuIcon",
1572
+ fn: F(({ isOpen: t, color: n }) => [M(e.$slots, "menuIcon", D(E({
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: F(() => [M(e.$slots, "optionTooltip", {}, void 0, !0)]),
1581
+ key: "1"
1582
+ } : void 0,
1583
+ e.$slots.optionPdf ? {
1584
+ name: "optionPdf",
1585
+ fn: F(() => [M(e.$slots, "optionPdf", {}, void 0, !0)]),
1586
+ key: "2"
1587
+ } : void 0,
1588
+ e.$slots.optionCsv ? {
1589
+ name: "optionCsv",
1590
+ fn: F(() => [M(e.$slots, "optionCsv", {}, void 0, !0)]),
1591
+ key: "3"
1592
+ } : void 0,
1593
+ e.$slots.optionImg ? {
1594
+ name: "optionImg",
1595
+ fn: F(() => [M(e.$slots, "optionImg", {}, void 0, !0)]),
1596
+ key: "4"
1597
+ } : void 0,
1598
+ e.$slots.optionSvg ? {
1599
+ name: "optionSvg",
1600
+ fn: F(() => [M(e.$slots, "optionSvg", {}, void 0, !0)]),
1601
+ key: "5"
1602
+ } : void 0,
1603
+ e.$slots.optionTable ? {
1604
+ name: "optionTable",
1605
+ fn: F(() => [M(e.$slots, "optionTable", {}, void 0, !0)]),
1606
+ key: "6"
1607
+ } : void 0,
1608
+ e.$slots.optionFullscreen ? {
1609
+ name: "optionFullscreen",
1610
+ fn: F(({ toggleFullscreen: t, isFullscreen: n }) => [M(e.$slots, "optionFullscreen", D(E({
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: F(({ toggleAnnotator: t, isAnnotator: n }) => [M(e.$slots, "optionAnnotator", D(E({
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: F(({ altCopy: t }) => [M(e.$slots, "optionAltCopy", D(E({ altCopy: t })), void 0, !0)]),
1627
+ key: "9"
1628
+ } : void 0,
1629
+ e.$slots["custom-menu-before"] ? {
1630
+ name: "custom-menu-before",
1631
+ fn: F(() => [M(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: F(() => [M(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("."))) : C("", !0),
1640
+ T("div", We, [(k(), w("svg", {
1641
+ ref_key: "svgRef",
1642
+ ref: fr,
1643
+ xmlns: P(ne),
1644
+ "aria-describedby": `chart-instructions-${L.value}`,
1645
+ class: Me({
1646
+ "vue-data-ui-fullscreen--on": di.value,
1647
+ "vue-data-ui-fulscreen--off": !di.value,
1648
+ animated: B.value.useCssAnimation
1649
+ }),
1650
+ viewBox: `0 0 ${H.value.width <= 0 ? 10 : H.value.width} ${H.value.height <= 0 ? 10 : H.value.height}`,
1651
+ style: O(`max-width:100%;overflow:visible;background:transparent;color:${B.value.style.color}`),
1652
+ onMouseleave: bi,
1653
+ tabindex: "0",
1654
+ onFocus: Ri,
1655
+ onBlur: zi,
1656
+ onKeydown: Bi
1657
+ }, [
1658
+ Oe(P(Sn)),
1659
+ e.$slots["chart-background"] ? (k(), w("foreignObject", {
1660
+ key: 0,
1661
+ x: 0,
1662
+ y: 0,
1663
+ width: H.value.width <= 0 ? 10 : H.value.width,
1664
+ height: H.value.height <= 0 ? 10 : H.value.height,
1665
+ style: { pointerEvents: "none" }
1666
+ }, [M(e.$slots, "chart-background", {}, void 0, !0)], 8, Ke)) : C("", !0),
1667
+ B.value.style.layout.axis.show ? (k(), w("g", qe, [T("line", {
1668
+ x1: G.value.x,
1669
+ x2: G.value.x,
1670
+ y1: U.value.top,
1671
+ y2: U.value.bottom,
1672
+ stroke: B.value.style.layout.axis.stroke,
1673
+ "stroke-width": B.value.style.layout.axis.strokeWidth,
1674
+ "stroke-linecap": "round"
1675
+ }, null, 8, Je), T("line", {
1676
+ x1: U.value.left,
1677
+ x2: U.value.right,
1678
+ y1: G.value.y,
1679
+ y2: G.value.y,
1680
+ stroke: B.value.style.layout.axis.stroke,
1681
+ "stroke-width": B.value.style.layout.axis.strokeWidth,
1682
+ "stroke-linecap": "round"
1683
+ }, null, 8, Ye)])) : C("", !0),
1684
+ B.value.style.layout.dataLabels.xAxis.scales.verticalLines.show ? (k(), w("g", Xe, [(k(!0), w(b, null, j(Pr.value, (e, t) => (k(), w("line", {
1685
+ key: `scatter-x-scale-line-${L.value}-${t}`,
1686
+ x1: e.x,
1687
+ x2: e.x,
1688
+ y1: U.value.top,
1689
+ y2: U.value.bottom,
1690
+ stroke: B.value.style.layout.dataLabels.xAxis.scales.verticalLines.stroke,
1691
+ "stroke-width": B.value.style.layout.dataLabels.xAxis.scales.verticalLines.strokeWidth,
1692
+ "stroke-linecap": "round"
1693
+ }, null, 8, Ze))), 128))])) : C("", !0),
1694
+ B.value.style.layout.dataLabels.xAxis.scales.show ? (k(), w("g", {
1695
+ key: 3,
1696
+ ref_key: "xAxisScaleLabels",
1697
+ ref: Zn
1698
+ }, [(k(!0), w(b, null, j(Pr.value, (e, t) => (k(), w("g", {
1699
+ class: "vue-ui-scatter-scale-group",
1700
+ key: `scatter-x-scale-${L.value}-${t}`,
1701
+ opacity: +!Ir.value,
1702
+ style: { transition: "opacity 0.1s ease-in-out" }
1703
+ }, [T("line", {
1704
+ x1: e.x,
1705
+ x2: e.x,
1706
+ y1: G.value.y - 4,
1707
+ y2: G.value.y + 4,
1708
+ stroke: B.value.style.layout.axis.stroke,
1709
+ "stroke-width": B.value.style.layout.axis.strokeWidth,
1710
+ "stroke-linecap": "round"
1711
+ }, null, 8, $e), T("text", {
1712
+ x: e.x,
1713
+ y: G.value.y + B.value.style.layout.dataLabels.xAxis.scales.labels.fontSize + 6 + B.value.style.layout.dataLabels.xAxis.scales.labels.offsetY,
1714
+ "text-anchor": "middle",
1715
+ "font-size": B.value.style.layout.dataLabels.xAxis.scales.labels.fontSize,
1716
+ fill: B.value.style.layout.dataLabels.xAxis.scales.labels.color,
1717
+ stroke: B.value.style.backgroundColor,
1718
+ "stroke-width": "2",
1719
+ "paint-order": "stroke"
1720
+ }, N(e.label), 9, et)], 8, Qe))), 128))], 512)) : C("", !0),
1721
+ B.value.style.layout.dataLabels.yAxis.scales.horizontalLines.show ? (k(), w("g", tt, [(k(!0), w(b, null, j(Fr.value, (e, t) => (k(), w("line", {
1722
+ key: `scatter-y-scale-line-${L.value}-${t}`,
1723
+ x1: U.value.left,
1724
+ x2: U.value.right,
1725
+ y1: e.y,
1726
+ y2: e.y,
1727
+ stroke: B.value.style.layout.dataLabels.yAxis.scales.horizontalLines.stroke,
1728
+ "stroke-width": B.value.style.layout.dataLabels.yAxis.scales.horizontalLines.strokeWidth,
1729
+ "stroke-linecap": "round"
1730
+ }, null, 8, nt))), 128))])) : C("", !0),
1731
+ B.value.style.layout.dataLabels.yAxis.scales.show ? (k(), w("g", {
1732
+ key: 5,
1733
+ ref_key: "yAxisScaleLabels",
1734
+ ref: Xn,
1735
+ opacity: +!Lr.value,
1736
+ style: { transition: "opacity 0.1s ease-in-out" },
1737
+ class: "vue-ui-scatter-scale-group"
1738
+ }, [(k(!0), w(b, null, j(Fr.value, (e, t) => (k(), w("g", { key: `scatter-y-scale-${L.value}-${t}` }, [T("line", {
1739
+ x1: G.value.x - 4,
1740
+ x2: G.value.x + 4,
1741
+ y1: e.y,
1742
+ y2: e.y,
1743
+ stroke: B.value.style.layout.axis.stroke,
1744
+ "stroke-width": B.value.style.layout.axis.strokeWidth,
1745
+ "stroke-linecap": "round"
1746
+ }, null, 8, it), T("text", {
1747
+ x: G.value.x - B.value.style.layout.dataLabels.yAxis.scales.labels.fontSize / 2 - 8 + B.value.style.layout.dataLabels.yAxis.scales.labels.offsetX,
1748
+ y: e.y + B.value.style.layout.dataLabels.yAxis.scales.labels.fontSize / 3,
1749
+ "text-anchor": "end",
1750
+ "font-size": B.value.style.layout.dataLabels.yAxis.scales.labels.fontSize,
1751
+ fill: B.value.style.layout.dataLabels.yAxis.scales.labels.color,
1752
+ stroke: B.value.style.backgroundColor,
1753
+ "stroke-width": "2",
1754
+ "paint-order": "stroke"
1755
+ }, N(e.label), 9, at)]))), 128))], 8, rt)) : C("", !0),
1756
+ B.value.style.layout.marginalBars.show ? (k(), w("g", ot, [
1757
+ T("defs", null, [T("linearGradient", {
1758
+ id: `marginal_x_${L.value}`,
1759
+ x1: "0%",
1760
+ y1: "0%",
1761
+ x2: "0%",
1762
+ y2: "100%"
1763
+ }, [T("stop", {
1764
+ offset: "0%",
1765
+ "stop-color": B.value.style.layout.marginalBars.fill
1766
+ }, null, 8, ct), T("stop", {
1767
+ offset: "100%",
1768
+ "stop-color": B.value.style.backgroundColor
1769
+ }, null, 8, lt)], 8, st), T("linearGradient", {
1770
+ id: `marginal_y_${L.value}`,
1771
+ x1: "0%",
1772
+ x2: "100%",
1773
+ y1: "0%",
1774
+ y2: "0%"
1775
+ }, [T("stop", {
1776
+ offset: "0%",
1777
+ "stop-color": B.value.style.backgroundColor
1778
+ }, null, 8, dt), T("stop", {
1779
+ offset: "100%",
1780
+ "stop-color": B.value.style.layout.marginalBars.fill
1781
+ }, null, 8, ft)], 8, ut)]),
1782
+ (k(!0), w(b, null, j(Y.value.x, (e, n) => (k(), w("g", null, [
1783
+ e && Y.value.avgX[n] ? (k(), w("rect", {
1784
+ key: 0,
1785
+ x: Y.value.avgX[n] - U.value.width / J.value / 2,
1786
+ y: U.value.top - B.value.style.layout.marginalBars.offset - e / Y.value.maxX * B.value.style.layout.marginalBars.size,
1787
+ width: U.value.width / J.value <= 0 ? 1e-4 : U.value.width / J.value,
1788
+ height: e / Y.value.maxX * B.value.style.layout.marginalBars.size <= 0 ? 1e-4 : e / Y.value.maxX * B.value.style.layout.marginalBars.size,
1789
+ fill: B.value.style.layout.marginalBars.useGradient ? `url(#marginal_x_${L.value})` : B.value.style.layout.marginalBars.fill,
1790
+ style: O([`opacity:${B.value.style.layout.marginalBars.opacity}`, { "pointer-events": "none" }]),
1791
+ stroke: B.value.style.backgroundColor,
1792
+ "stroke-width": B.value.style.layout.marginalBars.strokeWidth,
1793
+ rx: B.value.style.layout.marginalBars.borderRadius
1794
+ }, null, 12, pt)) : C("", !0),
1795
+ Y.value.avgX[n] ? (k(), w("rect", {
1796
+ key: 1,
1797
+ x: Y.value.avgX[n] - U.value.width / J.value / 2,
1798
+ y: U.value.top - B.value.style.layout.marginalBars.offset - B.value.style.layout.marginalBars.size,
1799
+ width: U.value.width / J.value <= 0 ? 1e-4 : U.value.width / J.value,
1800
+ height: Math.max(.1, B.value.style.layout.marginalBars.size),
1801
+ fill: "transparent",
1802
+ onMouseenter: (e) => vi(n),
1803
+ onMouseleave: t[0] ||= (e) => bi()
1804
+ }, null, 40, mt)) : C("", !0),
1805
+ Y.value.avgX[n] && Bn.value != null && Bn.value === n ? (k(), w("g", ht, [
1806
+ T("rect", {
1807
+ x: Y.value.avgX[n] - U.value.width / J.value / 2,
1808
+ y: U.value.top,
1809
+ width: U.value.width / J.value <= 0 ? 1e-4 : U.value.width / J.value,
1810
+ height: U.value.height,
1811
+ fill: B.value.style.layout.marginalBars.highlighter.color,
1812
+ "fill-opacity": B.value.style.layout.marginalBars.highlighter.opacity
1813
+ }, null, 8, gt),
1814
+ T("line", {
1815
+ x1: Y.value.avgX[n] - U.value.width / J.value / 2,
1816
+ x2: Y.value.avgX[n] - U.value.width / J.value / 2,
1817
+ y1: 0,
1818
+ y2: U.value.top + U.value.height,
1819
+ stroke: B.value.style.layout.marginalBars.highlighter.stroke,
1820
+ "stroke-dasharray": B.value.style.layout.marginalBars.highlighter.strokeDasharray,
1821
+ "stroke-width": B.value.style.layout.marginalBars.highlighter.strokeWidth,
1822
+ style: {
1823
+ transition: "none !important",
1824
+ animation: "none !important"
1825
+ }
1826
+ }, null, 8, _t),
1827
+ T("line", {
1828
+ x1: Y.value.avgX[n] - U.value.width / J.value / 2 + (U.value.width / J.value <= 0 ? 1e-4 : U.value.width / J.value),
1829
+ x2: Y.value.avgX[n] - U.value.width / J.value / 2 + (U.value.width / J.value <= 0 ? 1e-4 : U.value.width / J.value),
1830
+ y1: 0,
1831
+ y2: U.value.top + U.value.height,
1832
+ stroke: B.value.style.layout.marginalBars.highlighter.stroke,
1833
+ "stroke-dasharray": B.value.style.layout.marginalBars.highlighter.strokeDasharray,
1834
+ "stroke-width": B.value.style.layout.marginalBars.highlighter.strokeWidth,
1835
+ style: {
1836
+ transition: "none !important",
1837
+ animation: "none !important"
1838
+ }
1839
+ }, null, 8, vt)
1840
+ ])) : C("", !0)
1841
+ ]))), 256)),
1842
+ (k(!0), w(b, null, j(Y.value.y, (e, n) => (k(), w("g", null, [
1843
+ e && Y.value.avgY[n] ? (k(), w("rect", {
1844
+ key: 0,
1845
+ x: U.value.right + B.value.style.layout.marginalBars.offset,
1846
+ y: Y.value.avgY[n] - U.value.height / J.value / 2,
1847
+ height: U.value.height / J.value <= 0 ? 1e-4 : U.value.height / J.value,
1848
+ width: e / Y.value.maxY * B.value.style.layout.marginalBars.size <= 0 ? 1e-4 : e / Y.value.maxY * B.value.style.layout.marginalBars.size,
1849
+ fill: B.value.style.layout.marginalBars.useGradient ? `url(#marginal_y_${L.value})` : B.value.style.layout.marginalBars.fill,
1850
+ style: O([`opacity:${B.value.style.layout.marginalBars.opacity}`, { "pointer-events": "none" }]),
1851
+ stroke: B.value.style.backgroundColor,
1852
+ "stroke-width": B.value.style.layout.marginalBars.strokeWidth,
1853
+ rx: B.value.style.layout.marginalBars.borderRadius
1854
+ }, null, 12, yt)) : C("", !0),
1855
+ Y.value.avgY[n] ? (k(), w("rect", {
1856
+ key: 1,
1857
+ x: U.value.right + B.value.style.layout.marginalBars.offset,
1858
+ y: Y.value.avgY[n] - U.value.height / J.value / 2,
1859
+ width: Math.max(.1, B.value.style.layout.marginalBars.size),
1860
+ height: U.value.height / J.value <= 0 ? 1e-4 : U.value.height / J.value,
1861
+ fill: "transparent",
1862
+ onMouseenter: (e) => yi(n),
1863
+ onMouseleave: t[1] ||= (e) => bi()
1864
+ }, null, 40, bt)) : C("", !0),
1865
+ Y.value.avgY[n] && Vn.value != null && Vn.value === n ? (k(), w("g", xt, [
1866
+ T("rect", {
1867
+ x: U.value.left,
1868
+ y: Y.value.avgY[n] - U.value.height / J.value / 2,
1869
+ width: U.value.width,
1870
+ height: U.value.height / J.value <= 0 ? 1e-4 : U.value.height / J.value,
1871
+ fill: B.value.style.layout.marginalBars.highlighter.color,
1872
+ "fill-opacity": B.value.style.layout.marginalBars.highlighter.opacity
1873
+ }, null, 8, St),
1874
+ T("line", {
1875
+ x1: U.value.left,
1876
+ x2: H.value.width,
1877
+ y1: Y.value.avgY[n] - U.value.height / J.value / 2,
1878
+ y2: Y.value.avgY[n] - U.value.height / J.value / 2,
1879
+ stroke: B.value.style.layout.marginalBars.highlighter.stroke,
1880
+ "stroke-dasharray": B.value.style.layout.marginalBars.highlighter.strokeDasharray,
1881
+ "stroke-width": B.value.style.layout.marginalBars.highlighter.strokeWidth,
1882
+ style: {
1883
+ transition: "none !important",
1884
+ animation: "none !important"
1885
+ }
1886
+ }, null, 8, Ct),
1887
+ T("line", {
1888
+ x1: U.value.left,
1889
+ x2: H.value.width,
1890
+ y1: Y.value.avgY[n] - U.value.height / J.value / 2 + (U.value.height / J.value <= 0 ? 1e-4 : U.value.height / J.value),
1891
+ y2: Y.value.avgY[n] - U.value.height / J.value / 2 + (U.value.height / J.value <= 0 ? 1e-4 : U.value.height / J.value),
1892
+ stroke: B.value.style.layout.marginalBars.highlighter.stroke,
1893
+ "stroke-dasharray": B.value.style.layout.marginalBars.highlighter.strokeDasharray,
1894
+ "stroke-width": B.value.style.layout.marginalBars.highlighter.strokeWidth,
1895
+ style: {
1896
+ transition: "none !important",
1897
+ animation: "none !important"
1898
+ }
1899
+ }, null, 8, wt)
1900
+ ])) : C("", !0)
1901
+ ]))), 256)),
1902
+ B.value.style.layout.marginalBars.showLines ? (k(), w("g", Tt, [(k(!0), w(b, null, j(Gr.value, (e) => (k(), w(b, null, [
1903
+ z.value.includes(e.id) ? C("", !0) : (k(), w("path", {
1904
+ key: 0,
1905
+ d: `M ${e.dX}`,
1906
+ stroke: B.value.style.backgroundColor,
1907
+ "stroke-width": B.value.style.layout.marginalBars.linesStrokeWidth + 1,
1908
+ "stroke-linecap": "round",
1909
+ "stroke-linejoin": "round",
1910
+ fill: "none"
1911
+ }, null, 8, Et)),
1912
+ z.value.includes(e.id) ? C("", !0) : (k(), w("path", {
1913
+ key: 1,
1914
+ d: `M ${e.dX}`,
1915
+ stroke: e.color,
1916
+ "stroke-width": B.value.style.layout.marginalBars.linesStrokeWidth,
1917
+ "stroke-linecap": "round",
1918
+ "stroke-linejoin": "round",
1919
+ fill: "none"
1920
+ }, null, 8, Dt)),
1921
+ z.value.includes(e.id) ? C("", !0) : (k(), w("path", {
1922
+ key: 2,
1923
+ d: `M ${e.dY}`,
1924
+ stroke: B.value.style.backgroundColor,
1925
+ "stroke-width": B.value.style.layout.marginalBars.linesStrokeWidth + 1,
1926
+ "stroke-linecap": "round",
1927
+ "stroke-linejoin": "round",
1928
+ fill: "none"
1929
+ }, null, 8, Ot)),
1930
+ z.value.includes(e.id) ? C("", !0) : (k(), w("path", {
1931
+ key: 3,
1932
+ d: `M ${e.dY}`,
1933
+ stroke: e.color,
1934
+ "stroke-width": B.value.style.layout.marginalBars.linesStrokeWidth,
1935
+ "stroke-linecap": "round",
1936
+ "stroke-linejoin": "round",
1937
+ fill: "none"
1938
+ }, null, 8, kt))
1939
+ ], 64))), 256))])) : C("", !0)
1940
+ ])) : C("", !0),
1941
+ B.value.style.layout.plots.giftWrap.show ? (k(), w("g", At, [(k(!0), w(b, null, j(q.value, (e, t) => (k(), w("g", null, [e.plots.length > 2 ? (k(), w("polygon", {
1942
+ key: 0,
1943
+ points: P(te)({ series: e.plots }),
1944
+ fill: P(r)(e.color, B.value.style.layout.plots.giftWrap.fillOpacity * 100),
1945
+ "stroke-width": B.value.style.layout.plots.giftWrap.strokeWidth,
1946
+ "stroke-dasharray": B.value.style.layout.plots.giftWrap.strokeDasharray,
1947
+ stroke: e.color,
1948
+ "stroke-linejoin": "round",
1949
+ "stroke-linecap": "round"
1950
+ }, null, 8, jt)) : C("", !0)]))), 256))])) : C("", !0),
1951
+ B.value.usePerformanceMode ? C("", !0) : (k(!0), w(b, { key: 8 }, j(q.value, (e, t) => (k(), w("g", { key: e.id }, [!e.shape || e.shape === "circle" ? (k(), w("g", Mt, [(k(!0), w(b, null, j(e.plots, (n, i) => (k(), w("circle", {
1952
+ key: n.id,
1953
+ cx: n.x,
1954
+ cy: n.y,
1955
+ r: X.value && X.value === n.id || Q.value.includes(n.id) ? n.weight * B.value.style.layout.plots.hoverRadiusRatio : n.weight,
1956
+ fill: P(r)(e.color, X.value && X.value !== n.id || Q.value.length && !Q.value.includes(n.id) ? B.value.style.layout.plots.opacityNotSelected * 100 : B.value.style.layout.plots.opacity * 100),
1957
+ stroke: B.value.style.layout.plots.stroke,
1958
+ "stroke-width": B.value.style.layout.plots.strokeWidth,
1959
+ style: O(`opacity:${X.value && X.value === n.id || Q.value.includes(n.id) ? 1 : B.value.style.layout.plots.significance.useDistanceOpacity ? 1 - Math.abs(n.deviation) / Hr.value : B.value.style.layout.plots.significance.show && Math.abs(n.deviation) > B.value.style.layout.plots.significance.deviationThreshold ? B.value.style.layout.plots.significance.opacity : 1}`),
1960
+ onMouseover: (e) => ti(n, t, "pointer", Ui.value.get(n.id)),
1961
+ onMouseleave: (e) => ni(n, t),
1962
+ onClick: (e) => ri(n, t)
1963
+ }, null, 44, Nt))), 128))])) : (k(), w("g", Pt, [(k(!0), w(b, null, j(e.plots, (n, i) => (k(), S(he, {
1964
+ class: "vue-ui-scatter-datapoint",
1965
+ plot: {
1966
+ x: n.x,
1967
+ y: n.y
1968
+ },
1969
+ radius: X.value && X.value === n.id || Q.value.includes(n.id) ? n.weight * B.value.style.layout.plots.hoverRadiusRatio : n.weight,
1970
+ shape: e.shape,
1971
+ color: P(r)(e.color, X.value && X.value !== n.id || Q.value.length && !Q.value.includes(n.id) ? B.value.style.layout.plots.opacityNotSelected * 100 : B.value.style.layout.plots.opacity * 100),
1972
+ stroke: B.value.style.layout.plots.stroke,
1973
+ strokeWidth: B.value.style.layout.plots.strokeWidth,
1974
+ style: O(`opacity:${X.value && X.value === n.id || Q.value.includes(n.id) ? 1 : B.value.style.layout.plots.significance.useDistanceOpacity ? 1 - Math.abs(n.deviation) / Hr.value : B.value.style.layout.plots.significance.show && Math.abs(n.deviation) > B.value.style.layout.plots.significance.deviationThreshold ? B.value.style.layout.plots.significance.opacity : 1}`),
1975
+ onMouseover: (e) => ti(n, t, "pointer", Ui.value.get(n.id)),
1976
+ onMouseleave: (e) => ni(n, t),
1977
+ onClick: (e) => ri(n, t)
1978
+ }, null, 8, [
1979
+ "plot",
1980
+ "radius",
1981
+ "shape",
1982
+ "color",
1983
+ "stroke",
1984
+ "strokeWidth",
1985
+ "style",
1986
+ "onMouseover",
1987
+ "onMouseleave",
1988
+ "onClick"
1989
+ ]))), 256))])), B.value.style.layout.plots.name.show ? (k(!0), w(b, { key: 2 }, j(e.plots, (e, n) => (k(), w("text", {
1990
+ class: "vue-ui-scatter-datapoint-label",
1991
+ key: `datalabel-${e.id}`,
1992
+ transform: `translate(${e.x}, ${e.y - e.weight - B.value.style.layout.plots.name.fontSize + B.value.style.layout.plots.name.offsetY})`,
1993
+ "text-anchor": "middle",
1994
+ "font-size": B.value.style.layout.plots.name.fontSize,
1995
+ fill: P(r)(B.value.style.layout.plots.name.color, X.value && X.value !== e.id || Q.value.length && !Q.value.includes(e.id) ? B.value.style.layout.plots.opacityNotSelected * 100 : 100),
1996
+ onMouseover: (n) => ti(e, t, "pointer", Ui.value.get(e.id)),
1997
+ onMouseleave: (n) => ni(e, t),
1998
+ onClick: (n) => ri(e, t)
1999
+ }, N(e.clusterName), 41, Ft))), 128)) : C("", !0)]))), 128)),
2000
+ B.value.usePerformanceMode ? (k(), w(b, { key: 9 }, [
2001
+ T("g", { "clip-path": `url(#clip_path_${L.value})` }, [(k(!0), w(b, null, j(Ci.value, (e) => (k(), w("path", {
2002
+ key: e.id,
2003
+ d: e.d,
2004
+ fill: e.fill,
2005
+ stroke: e.stroke,
2006
+ "stroke-width": e.strokeWidth,
2007
+ "stroke-opacity": e.strokeOpacity,
2008
+ "vector-effect": "non-scaling-stroke",
2009
+ "paint-order": "fill"
2010
+ }, null, 8, Lt))), 128))], 8, It),
2011
+ Z.value && B.value.style.layout.plots.selectors.show ? (k(), w("g", Rt, [Oe(he, {
2012
+ shape: Z.value.shape || "circle",
2013
+ color: Z.value.color,
2014
+ plot: {
2015
+ x: Z.value.x,
2016
+ y: Z.value.y
2017
+ },
2018
+ radius: Math.max(4 * xi[Z.value.shape || "circle"], Z.value.weight * B.value.style.layout.plots.hoverRadiusRatio),
2019
+ stroke: B.value.style.layout.plots.stroke,
2020
+ strokeWidth: B.value.style.layout.plots.strokeWidth
2021
+ }, null, 8, [
2022
+ "shape",
2023
+ "color",
2024
+ "plot",
2025
+ "radius",
2026
+ "stroke",
2027
+ "strokeWidth"
2028
+ ])])) : C("", !0),
2029
+ T("rect", {
2030
+ x: U.value.left,
2031
+ y: U.value.top,
2032
+ width: Math.max(1e-4, U.value.width),
2033
+ height: Math.max(1e-4, U.value.height),
2034
+ fill: "transparent",
2035
+ onMousemove: t[2] ||= (...e) => P(Ti) && P(Ti)(...e),
2036
+ onMouseleave: Ei,
2037
+ onClick: Di
2038
+ }, null, 40, zt)
2039
+ ], 64)) : C("", !0),
2040
+ (k(!0), w(b, null, j(Qr.value, (e) => (k(), w(b, { key: `selector_${e.id}` }, [B.value.style.layout.plots.selectors.show ? (k(), w("g", Bt, [
2041
+ T("line", {
2042
+ x1: G.value.x,
2043
+ x2: e.x,
2044
+ y1: e.y,
2045
+ y2: e.y,
2046
+ stroke: B.value.style.layout.plots.selectors.stroke,
2047
+ "stroke-width": B.value.style.layout.plots.selectors.strokeWidth,
2048
+ "stroke-dasharray": B.value.style.layout.plots.selectors.strokeDasharray,
2049
+ "stroke-linecap": "round",
2050
+ class: "line-pointer"
2051
+ }, null, 8, Vt),
2052
+ T("line", {
2053
+ x1: e.x,
2054
+ x2: e.x,
2055
+ y1: G.value.y,
2056
+ y2: e.y,
2057
+ stroke: B.value.style.layout.plots.selectors.stroke,
2058
+ "stroke-width": B.value.style.layout.plots.selectors.strokeWidth,
2059
+ "stroke-dasharray": B.value.style.layout.plots.selectors.strokeDasharray,
2060
+ "stroke-linecap": "round",
2061
+ class: "line-pointer"
2062
+ }, null, 8, Ht),
2063
+ B.value.style.layout.dataLabels.yAxis.scales.show ? C("", !0) : (k(), w("text", {
2064
+ key: 0,
2065
+ x: G.value.x + (e.x > G.value.x ? -6 : 6),
2066
+ y: e.y + B.value.style.layout.plots.selectors.labels.fontSize / 3,
2067
+ "font-size": B.value.style.layout.plots.selectors.labels.fontSize,
2068
+ fill: B.value.style.layout.plots.selectors.labels.color,
2069
+ "font-weight": B.value.style.layout.plots.selectors.labels.bold ? "bold" : "normal",
2070
+ "text-anchor": e.x > G.value.x ? "end" : "start"
2071
+ }, N(P(h)(B.value.style.layout.plots.selectors.labels.y.formatter, P(y)(e.v.y), P(v)({
2072
+ p: B.value.style.layout.plots.selectors.labels.prefix,
2073
+ v: P(y)(e.v.y),
2074
+ s: B.value.style.layout.plots.selectors.labels.suffix,
2075
+ r: B.value.style.layout.plots.selectors.labels.rounding
2076
+ }), { datapoint: e })), 9, Ut)),
2077
+ B.value.style.layout.dataLabels.xAxis.scales.show ? C("", !0) : (k(), w("text", {
2078
+ key: 1,
2079
+ x: e.x,
2080
+ y: G.value.y + (e.y > G.value.y ? -6 : B.value.style.layout.plots.selectors.labels.fontSize + 6),
2081
+ "font-size": B.value.style.layout.plots.selectors.labels.fontSize,
2082
+ fill: B.value.style.layout.plots.selectors.labels.color,
2083
+ "font-weight": B.value.style.layout.plots.selectors.labels.bold ? "bold" : "normal",
2084
+ "text-anchor": "middle"
2085
+ }, N(P(h)(B.value.style.layout.plots.selectors.labels.y.formatter, P(y)(e.v.x), P(v)({
2086
+ p: B.value.style.layout.plots.selectors.labels.prefix,
2087
+ v: P(y)(e.v.x),
2088
+ s: B.value.style.layout.plots.selectors.labels.suffix,
2089
+ r: B.value.style.layout.plots.selectors.labels.rounding
2090
+ }), { datapoint: e })), 9, Wt)),
2091
+ B.value.style.layout.dataLabels.xAxis.scales.show ? (k(), w("text", {
2092
+ key: 2,
2093
+ x: e.x,
2094
+ y: G.value.y + B.value.style.layout.dataLabels.xAxis.scales.labels.fontSize + 6 + B.value.style.layout.dataLabels.xAxis.scales.labels.offsetY,
2095
+ "text-anchor": "middle",
2096
+ "font-size": B.value.style.layout.dataLabels.xAxis.scales.labels.fontSize,
2097
+ fill: B.value.style.layout.dataLabels.xAxis.scales.labels.color
2098
+ }, N($r(e)), 9, Gt)) : C("", !0),
2099
+ B.value.style.layout.dataLabels.yAxis.scales.show ? (k(), w("text", {
2100
+ key: 3,
2101
+ x: G.value.x - B.value.style.layout.dataLabels.yAxis.scales.labels.fontSize / 2 - 8 + B.value.style.layout.dataLabels.yAxis.scales.labels.offsetX,
2102
+ y: e.y + B.value.style.layout.dataLabels.yAxis.scales.labels.fontSize / 3,
2103
+ "text-anchor": "end",
2104
+ "font-size": B.value.style.layout.dataLabels.yAxis.scales.labels.fontSize,
2105
+ fill: B.value.style.layout.dataLabels.yAxis.scales.labels.color
2106
+ }, N(ei(e)), 9, Kt)) : C("", !0),
2107
+ T("circle", {
2108
+ cx: G.value.x,
2109
+ cy: e.y,
2110
+ r: B.value.style.layout.plots.selectors.markers.radius,
2111
+ fill: B.value.style.layout.plots.selectors.markers.fill,
2112
+ stroke: B.value.style.layout.plots.selectors.markers.stroke,
2113
+ "stroke-width": B.value.style.layout.plots.selectors.markers.strokeWidth,
2114
+ class: "line-pointer"
2115
+ }, null, 8, qt),
2116
+ T("circle", {
2117
+ cx: e.x,
2118
+ cy: G.value.y,
2119
+ r: B.value.style.layout.plots.selectors.markers.radius,
2120
+ fill: B.value.style.layout.plots.selectors.markers.fill,
2121
+ stroke: B.value.style.layout.plots.selectors.markers.stroke,
2122
+ "stroke-width": B.value.style.layout.plots.selectors.markers.strokeWidth,
2123
+ class: "line-pointer"
2124
+ }, null, 8, Jt),
2125
+ B.value.style.layout.plots.selectors.labels.showName && !B.value.style.layout.plots.name.show ? (k(), w("text", {
2126
+ key: 4,
2127
+ x: e.x,
2128
+ y: e.y + (e.y < G.value.y ? -B.value.style.layout.plots.selectors.labels.fontSize / 2 : B.value.style.layout.plots.selectors.labels.fontSize),
2129
+ "font-size": B.value.style.layout.plots.selectors.labels.fontSize,
2130
+ fill: B.value.style.layout.plots.selectors.labels.color,
2131
+ "font-weight": B.value.style.layout.plots.selectors.labels.bold ? "bold" : "normal",
2132
+ "text-anchor": e.x < U.value.left + 100 ? "start" : e.x > U.value.right - 100 ? "end" : e.x > G.value.x ? "start" : "end"
2133
+ }, N(e.v.name), 9, Yt)) : C("", !0)
2134
+ ])) : C("", !0)], 64))), 128)),
2135
+ B.value.style.layout.dataLabels.xAxis.show ? (k(), w("g", {
2136
+ key: 10,
2137
+ ref_key: "xAxisLabelLeft",
2138
+ ref: Kn
2139
+ }, [T("text", {
2140
+ id: `vue-ui-scatter-xAxis-label-${L.value}`,
2141
+ transform: `translate(${B.value.style.layout.dataLabels.xAxis.fontSize + (B.value.style.layout.dataLabels.reverseAxisLabels ? B.value.style.layout.dataLabels.yAxis.offsetX : B.value.style.layout.dataLabels.xAxis.offsetX)}, ${U.value.top + U.value.height / 2 + (B.value.style.layout.dataLabels.reverseAxisLabels ? B.value.style.layout.dataLabels.yAxis.offsetY : B.value.style.layout.dataLabels.xAxis.offsetY)}), rotate(-90)`,
2142
+ "text-anchor": "middle",
2143
+ "font-size": B.value.style.layout.dataLabels.xAxis.fontSize,
2144
+ "font-weight": B.value.style.layout.dataLabels.xAxis.bold ? "bold" : "normal",
2145
+ fill: B.value.style.layout.dataLabels.xAxis.color
2146
+ }, N(B.value.style.layout.dataLabels.reverseAxisLabels ? B.value.style.layout.dataLabels.yAxis.name : B.value.style.layout.dataLabels.xAxis.name), 9, Xt), B.value.style.layout.dataLabels.xAxis.showValue ? (k(), w("text", {
2147
+ key: 0,
2148
+ "text-anchor": "middle",
2149
+ "font-size": B.value.style.layout.dataLabels.xAxis.fontSize,
2150
+ fill: B.value.style.layout.dataLabels.xAxis.color,
2151
+ transform: `translate(${B.value.style.layout.dataLabels.xAxis.name ? B.value.style.layout.dataLabels.xAxis.fontSize * 3 : 0}, ${G.value.y + B.value.style.layout.dataLabels.xAxis.fontSize / 3}), rotate(-90)`
2152
+ }, N(P(h)(B.value.style.layout.plots.selectors.labels.x.formatter, P(y)(W.value.xMin), P(v)({
2153
+ p: B.value.style.layout.plots.selectors.labels.prefix,
2154
+ v: P(y)(W.value.xMin),
2155
+ s: B.value.style.layout.plots.selectors.labels.suffix,
2156
+ r: B.value.style.layout.dataLabels.xAxis.rounding
2157
+ }))), 9, Zt)) : C("", !0)], 512)) : C("", !0),
2158
+ B.value.style.layout.dataLabels.xAxis.show && B.value.style.layout.dataLabels.xAxis.showValue ? (k(), w("text", {
2159
+ key: 11,
2160
+ ref_key: "xAxisLabelRight",
2161
+ ref: qn,
2162
+ "text-anchor": "middle",
2163
+ transform: `translate(${U.value.right + B.value.style.layout.padding.right + 6}, ${G.value.y + B.value.style.layout.dataLabels.xAxis.fontSize / 3}), rotate(-90)`,
2164
+ "font-size": B.value.style.layout.dataLabels.xAxis.fontSize,
2165
+ fill: B.value.style.layout.dataLabels.xAxis.color
2166
+ }, N(P(h)(B.value.style.layout.plots.selectors.labels.x.formatter, P(y)(W.value.xMax), P(v)({
2167
+ p: B.value.style.layout.plots.selectors.labels.prefix,
2168
+ v: P(y)(W.value.xMax),
2169
+ s: B.value.style.layout.plots.selectors.labels.suffix,
2170
+ r: B.value.style.layout.dataLabels.xAxis.rounding
2171
+ }))), 9, Qt)) : C("", !0),
2172
+ B.value.style.layout.dataLabels.yAxis.show && B.value.style.layout.dataLabels.yAxis.showValue ? (k(), w("text", {
2173
+ key: 12,
2174
+ ref_key: "yAxisLabelTop",
2175
+ ref: Jn,
2176
+ x: G.value.x,
2177
+ y: U.value.top - B.value.style.layout.dataLabels.yAxis.fontSize,
2178
+ "text-anchor": "middle",
2179
+ "font-size": B.value.style.layout.dataLabels.yAxis.fontSize,
2180
+ fill: B.value.style.layout.dataLabels.yAxis.color
2181
+ }, N(P(h)(B.value.style.layout.plots.selectors.labels.y.formatter, P(y)(W.value.yMax), P(v)({
2182
+ p: B.value.style.layout.plots.selectors.labels.prefix,
2183
+ v: P(y)(W.value.yMax),
2184
+ s: B.value.style.layout.plots.selectors.labels.suffix,
2185
+ r: B.value.style.layout.dataLabels.yAxis.rounding
2186
+ }))), 9, $t)) : C("", !0),
2187
+ B.value.style.layout.dataLabels.yAxis.show ? (k(), w("g", {
2188
+ key: 13,
2189
+ ref_key: "yAxisLabelBottom",
2190
+ ref: Yn
2191
+ }, [B.value.style.layout.dataLabels.yAxis.showValue ? (k(), w("text", {
2192
+ key: 0,
2193
+ x: G.value.x,
2194
+ y: H.value.height - B.value.style.layout.dataLabels.yAxis.fontSize * 2,
2195
+ "text-anchor": "middle",
2196
+ "font-size": B.value.style.layout.dataLabels.yAxis.fontSize,
2197
+ fill: B.value.style.layout.dataLabels.yAxis.color
2198
+ }, N(P(h)(B.value.style.layout.plots.selectors.labels.y.formatter, P(y)(W.value.yMin), P(v)({
2199
+ p: B.value.style.layout.plots.selectors.labels.prefix,
2200
+ v: P(y)(W.value.yMin),
2201
+ s: B.value.style.layout.plots.selectors.labels.suffix,
2202
+ r: B.value.style.layout.dataLabels.yAxis.rounding
2203
+ }))), 9, en)) : C("", !0), T("text", {
2204
+ "text-anchor": "middle",
2205
+ "font-size": B.value.style.layout.dataLabels.yAxis.fontSize,
2206
+ "font-weight": B.value.style.layout.dataLabels.yAxis.bold ? "bold" : "normal",
2207
+ fill: B.value.style.layout.dataLabels.yAxis.color,
2208
+ x: U.value.left + U.value.width / 2 + (B.value.style.layout.dataLabels.reverseAxisLabels ? B.value.style.layout.dataLabels.xAxis.offsetX : B.value.style.layout.dataLabels.yAxis.offsetX),
2209
+ y: H.value.height + (B.value.style.layout.dataLabels.reverseAxisLabels ? B.value.style.layout.dataLabels.xAxis.offsetY : B.value.style.layout.dataLabels.yAxis.offsetY)
2210
+ }, N(B.value.style.layout.dataLabels.reverseAxisLabels ? B.value.style.layout.dataLabels.xAxis.name : B.value.style.layout.dataLabels.yAxis.name), 9, tn)], 512)) : C("", !0),
2211
+ T("clipPath", { id: `clip_path_${L.value}` }, [T("rect", {
2212
+ x: U.value.left,
2213
+ y: U.value.top,
2214
+ width: U.value.width <= 0 ? 1e-4 : U.value.width,
2215
+ height: U.value.height <= 0 ? 1e-4 : U.value.height
2216
+ }, null, 8, rn)], 8, nn),
2217
+ B.value.style.layout.correlation.show ? (k(), w("g", an, [(k(!0), w(b, null, j(q.value.filter((e) => e.correlation), (e, t) => (k(), w("line", {
2218
+ x1: e.correlation.x1,
2219
+ x2: e.correlation.x2,
2220
+ y1: e.correlation.y1,
2221
+ y2: e.correlation.y2,
2222
+ "stroke-dasharray": B.value.style.layout.correlation.strokeDasharray,
2223
+ stroke: e.color,
2224
+ "stroke-width": B.value.style.layout.correlation.strokeWidth,
2225
+ "clip-path": `url(#clip_path_${L.value})`
2226
+ }, null, 8, on))), 256)), (k(!0), w(b, null, j(q.value.filter((e) => e.correlation), (e, t) => (k(), w("g", null, [B.value.style.layout.correlation.label.show ? (k(), w("text", {
2227
+ key: 0,
2228
+ x: e.correlation.x2,
2229
+ y: e.correlation.y2,
2230
+ fill: B.value.style.layout.correlation.label.useSerieColor ? e.color : B.value.style.layout.correlation.label.color,
2231
+ "text-anchor": "end",
2232
+ "font-size": B.value.style.layout.correlation.label.fontSize,
2233
+ "font-weight": B.value.style.layout.correlation.label.bold ? "bold" : "normal"
2234
+ }, N(P(v)({
2235
+ v: P(y)(e.correlation?.coefficient ?? 0),
2236
+ r: B.value.style.layout.correlation.label.roundingValue
2237
+ })), 9, sn)) : C("", !0)]))), 256))])) : C("", !0),
2238
+ M(e.$slots, "svg", { svg: {
2239
+ ...H.value,
2240
+ drawingArea: {
2241
+ ...U.value,
2242
+ zero: G.value
2243
+ },
2244
+ data: Vr.value,
2245
+ isPrintingImg: P(vr) || P(yr) || Wn.value,
2246
+ isPrintingSvg: Gn.value
2247
+ } }, void 0, !0)
2248
+ ], 46, Ge)), e.$slots.hint ? (k(), w("div", cn, [M(e.$slots, "hint", D(E({
2249
+ hint: B.value.a11y.translations.keyboardNavigation,
2250
+ isVisible: tr.value
2251
+ })), void 0, !0)])) : C("", !0)]),
2252
+ e.$slots.watermark ? (k(), w("div", ln, [M(e.$slots, "watermark", D(E({ isPrinting: P(vr) || P(yr) || Wn.value || Gn.value })), void 0, !0)])) : C("", !0),
2253
+ T("div", { id: `legend-bottom-${L.value}` }, null, 8, un),
2254
+ On.value && zn.value && (B.value.style.legend.show || e.$slots.legend) ? (k(), S(Te, {
2255
+ key: 7,
2256
+ to: B.value.style.legend.position === "top" ? `#legend-top-${L.value}` : `#legend-bottom-${L.value}`
2257
+ }, [T("div", {
2258
+ ref_key: "chartLegend",
2259
+ ref: Nn
2260
+ }, [M(e.$slots, "legend", { legend: K.value }, () => [B.value.style.legend.show ? (k(), S(Ce, {
2261
+ key: `legend_${Rn.value}`,
2262
+ legendSet: K.value,
2263
+ config: Br.value,
2264
+ isCursorPointer: rr.value,
2265
+ onClickMarker: t[3] ||= ({ legend: e }) => ai(e.id)
2266
+ }, {
2267
+ item: F(({ legend: e }) => [T("div", {
2268
+ onClick: (t) => e.segregate(),
2269
+ style: O(`opacity:${z.value.includes(e.id) ? .5 : 1}`)
2270
+ }, N(e.name), 13, dn)]),
2271
+ legendToggle: F(() => [K.value.length > 2 && B.value.style.legend.selectAllToggle.show && !P(or) ? (k(), S(ye, {
2272
+ key: 0,
2273
+ backgroundColor: B.value.style.legend.selectAllToggle.backgroundColor,
2274
+ color: B.value.style.legend.selectAllToggle.color,
2275
+ fontSize: B.value.style.legend.fontSize,
2276
+ checked: z.value.length > 0,
2277
+ isCursorPointer: rr.value,
2278
+ onToggle: ii
2279
+ }, null, 8, [
2280
+ "backgroundColor",
2281
+ "color",
2282
+ "fontSize",
2283
+ "checked",
2284
+ "isCursorPointer"
2285
+ ])) : C("", !0)]),
2286
+ _: 1
2287
+ }, 8, [
2288
+ "legendSet",
2289
+ "config",
2290
+ "isCursorPointer"
2291
+ ])) : C("", !0)], !0)], 512)], 8, ["to"])) : C("", !0),
2292
+ e.$slots.source ? (k(), w("div", {
2293
+ key: 8,
2294
+ ref_key: "source",
2295
+ ref: Pn,
2296
+ dir: "auto"
2297
+ }, [M(e.$slots, "source", {}, void 0, !0)], 512)) : C("", !0),
2298
+ Oe(P(gn), {
2299
+ teleportTo: B.value.style.tooltip.teleportTo,
2300
+ show: V.value.showTooltip && kn.value,
2301
+ backgroundColor: B.value.style.tooltip.backgroundColor,
2302
+ color: B.value.style.tooltip.color,
2303
+ borderRadius: B.value.style.tooltip.borderRadius,
2304
+ borderColor: B.value.style.tooltip.borderColor,
2305
+ borderWidth: B.value.style.tooltip.borderWidth,
2306
+ fontSize: B.value.style.tooltip.fontSize,
2307
+ backgroundOpacity: B.value.style.tooltip.backgroundOpacity,
2308
+ position: B.value.style.tooltip.position,
2309
+ offsetX: B.value.style.tooltip.offsetX,
2310
+ offsetY: B.value.style.tooltip.offsetY,
2311
+ parent: R.value,
2312
+ content: An.value,
2313
+ isFullscreen: di.value,
2314
+ isCustom: B.value.style.tooltip.customFormat && typeof B.value.style.tooltip.customFormat == "function",
2315
+ smooth: B.value.style.tooltip.smooth,
2316
+ backdropFilter: B.value.style.tooltip.backdropFilter,
2317
+ smoothForce: B.value.style.tooltip.smoothForce,
2318
+ smoothSnapThreshold: B.value.style.tooltip.smoothSnapThreshold,
2319
+ isA11yMode: er.value === "keyboard",
2320
+ a11yPosition: $n.value
2321
+ }, {
2322
+ "tooltip-before": F(() => [M(e.$slots, "tooltip-before", D(E({ ...Kr.value })), void 0, !0)]),
2323
+ tooltip: F(() => [M(e.$slots, "tooltip", D(E({ ...Kr.value })), void 0, !0)]),
2324
+ "tooltip-after": F(() => [M(e.$slots, "tooltip-after", D(E({ ...Kr.value })), void 0, !0)]),
2325
+ default: F(() => [B.value.style.tooltip.showShape ? (k(), w("div", fn, [(k(), w("svg", pn, [Oe(he, {
2326
+ shape: Z.value.shape,
2327
+ color: Z.value.color,
2328
+ plot: {
2329
+ x: 10,
2330
+ y: 10
2331
+ },
2332
+ radius: 7
2333
+ }, null, 8, ["shape", "color"])]))])) : C("", !0)]),
2334
+ _: 3
2335
+ }, 8, [
2336
+ "teleportTo",
2337
+ "show",
2338
+ "backgroundColor",
2339
+ "color",
2340
+ "borderRadius",
2341
+ "borderColor",
2342
+ "borderWidth",
2343
+ "fontSize",
2344
+ "backgroundOpacity",
2345
+ "position",
2346
+ "offsetX",
2347
+ "offsetY",
2348
+ "parent",
2349
+ "content",
2350
+ "isFullscreen",
2351
+ "isCustom",
2352
+ "smooth",
2353
+ "backdropFilter",
2354
+ "smoothForce",
2355
+ "smoothSnapThreshold",
2356
+ "isA11yMode",
2357
+ "a11yPosition"
2358
+ ]),
2359
+ On.value && B.value.userOptions.buttons.table ? (k(), S(Fe(Oi.value.component), Ae({ key: 9 }, Oi.value.props, {
2360
+ ref_key: "tableUnit",
2361
+ ref: Hn,
2362
+ onClose: ki
2363
+ }), Ee({
2364
+ content: F(() => [(k(), S(P(yn), {
2365
+ key: `table_${Ln.value}`,
2366
+ colNames: ui.value.colNames,
2367
+ head: ui.value.head,
2368
+ body: ui.value.body,
2369
+ config: ui.value.config,
2370
+ title: B.value.table.useDialog ? "" : Oi.value.title,
2371
+ withCloseButton: !B.value.table.useDialog,
2372
+ isCursorPointer: rr.value,
2373
+ onClose: ki
2374
+ }, {
2375
+ th: F(({ th: e }) => [De(N(e), 1)]),
2376
+ td: F(({ td: e }) => [e.shape ? (k(), w("div", mn, [T("span", null, N(e.content), 1)])) : (k(), w("div", {
2377
+ key: 1,
2378
+ innerHTML: e
2379
+ }, null, 8, hn))]),
2380
+ _: 1
2381
+ }, 8, [
2382
+ "colNames",
2383
+ "head",
2384
+ "body",
2385
+ "config",
2386
+ "title",
2387
+ "withCloseButton",
2388
+ "isCursorPointer"
2389
+ ]))]),
2390
+ _: 2
2391
+ }, [B.value.table.useDialog ? {
2392
+ name: "title",
2393
+ fn: F(() => [De(N(Oi.value.title), 1)]),
2394
+ key: "0"
2395
+ } : void 0, B.value.table.useDialog ? {
2396
+ name: "actions",
2397
+ fn: F(() => [T("button", {
2398
+ tabindex: "0",
2399
+ class: "vue-ui-user-options-button",
2400
+ onClick: t[4] ||= (e) => li(B.value.userOptions.callbacks.csv),
2401
+ style: O({ cursor: rr.value ? "pointer" : "default" })
2402
+ }, [Oe(P(_n), {
2403
+ name: "fileCsv",
2404
+ stroke: Oi.value.props.color
2405
+ }, null, 8, ["stroke"])], 4)]),
2406
+ key: "1"
2407
+ } : void 0]), 1040)) : C("", !0),
2408
+ M(e.$slots, "skeleton", {}, () => [P(or) ? (k(), S(le, { key: 0 })) : C("", !0)], !0)
2409
+ ], 46, Be));
2410
+ }
2411
+ }, [["__scopeId", "data-v-18dd909c"]]);
2412
+ //#endregion
2413
+ export { ze as n, gn as t };