vue-data-ui 3.22.11 → 3.22.13

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