vue-data-ui 3.25.3 → 3.25.4

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