vue-data-ui 3.25.5 → 3.25.6

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 (210) hide show
  1. package/dist/{BaseDraggableDialog-BM_R41j8.js → BaseDraggableDialog-Gm4Q30j0.js} +1 -1
  2. package/dist/{BaseIcon-t83PDe9k.js → BaseIcon-D8R6_sKH.js} +5 -5
  3. package/dist/{BaseLegendToggle-__JnV08B.js → BaseLegendToggle-CXQrLjd-.js} +1 -1
  4. package/dist/{BaseZoomControls-Xo16vFa4.js → BaseZoomControls-BTzjVDPM.js} +1 -1
  5. package/dist/{ColorPicker-Bn3MY7eL.js → ColorPicker-CUy15T72.js} +1 -1
  6. package/dist/{DataTable-COIO9gi4.js → DataTable-oiM9uWrQ.js} +1 -1
  7. package/dist/{HillActions-Cl-dNBZR.js → HillActions-Dn8aKOVJ.js} +1 -1
  8. package/dist/{NonSvgPenAndPaper-KXRhcsxM.js → NonSvgPenAndPaper-DFXjpRyl.js} +2 -2
  9. package/dist/{PackageVersion-M2Ws-VwJ.js → PackageVersion-ur6jKRL5.js} +1 -1
  10. package/dist/{PenAndPaper-BgH3m_LP.js → PenAndPaper-KFzKlvbi.js} +2 -2
  11. package/dist/{SlicerPreview-GvsdvE-h.js → SlicerPreview-B6iHOC9L.js} +1 -1
  12. package/dist/{UserOptions-f3Q0nqrj.js → UserOptions-2x4VklMW.js} +1 -1
  13. package/dist/components/vue-ui-3d-bar.js +1 -1
  14. package/dist/components/vue-ui-accordion.js +1 -1
  15. package/dist/components/vue-ui-age-pyramid.js +1 -1
  16. package/dist/components/vue-ui-annotator.js +1 -1
  17. package/dist/components/vue-ui-bullet.js +1 -1
  18. package/dist/components/vue-ui-bump.js +1 -1
  19. package/dist/components/vue-ui-candlestick.js +1 -1
  20. package/dist/components/vue-ui-carousel-table.js +1 -1
  21. package/dist/components/vue-ui-chestnut.js +1 -1
  22. package/dist/components/vue-ui-chord.js +1 -1
  23. package/dist/components/vue-ui-circle-pack.js +1 -1
  24. package/dist/components/vue-ui-cursor.js +1 -1
  25. package/dist/components/vue-ui-dag.js +1 -1
  26. package/dist/components/vue-ui-dashboard.js +1 -1
  27. package/dist/components/vue-ui-digits.js +1 -1
  28. package/dist/components/vue-ui-donut-evolution.js +1 -1
  29. package/dist/components/vue-ui-donut.js +1 -1
  30. package/dist/components/vue-ui-dumbbell.js +1 -1
  31. package/dist/components/vue-ui-flow.js +1 -1
  32. package/dist/components/vue-ui-funnel.js +1 -1
  33. package/dist/components/vue-ui-galaxy.js +1 -1
  34. package/dist/components/vue-ui-gauge.js +1 -1
  35. package/dist/components/vue-ui-geo.js +1 -1
  36. package/dist/components/vue-ui-gizmo.js +1 -1
  37. package/dist/components/vue-ui-heatmap.js +1 -1
  38. package/dist/components/vue-ui-hill.js +1 -1
  39. package/dist/components/vue-ui-history-plot.js +1 -1
  40. package/dist/components/vue-ui-horizontal-bar.js +1 -1
  41. package/dist/components/vue-ui-icon.js +1 -1
  42. package/dist/components/vue-ui-kpi.js +1 -1
  43. package/dist/components/vue-ui-label.js +1 -1
  44. package/dist/components/vue-ui-mini-loader.js +1 -1
  45. package/dist/components/vue-ui-molecule.js +1 -1
  46. package/dist/components/vue-ui-mood-radar.js +1 -1
  47. package/dist/components/vue-ui-nested-donuts.js +1 -1
  48. package/dist/components/vue-ui-onion.js +1 -1
  49. package/dist/components/vue-ui-parallel-coordinate-plot.js +1 -1
  50. package/dist/components/vue-ui-quadrant.js +1 -1
  51. package/dist/components/vue-ui-quick-chart.js +1 -1
  52. package/dist/components/vue-ui-radar.js +1 -1
  53. package/dist/components/vue-ui-rating.js +1 -1
  54. package/dist/components/vue-ui-relation-circle.js +1 -1
  55. package/dist/components/vue-ui-ridgeline.js +1 -1
  56. package/dist/components/vue-ui-rings.js +1 -1
  57. package/dist/components/vue-ui-scatter.js +1 -1
  58. package/dist/components/vue-ui-skeleton.js +1 -1
  59. package/dist/components/vue-ui-smiley.js +1 -1
  60. package/dist/components/vue-ui-spark-trend.js +1 -1
  61. package/dist/components/vue-ui-sparkbar.js +1 -1
  62. package/dist/components/vue-ui-sparkgauge.js +1 -1
  63. package/dist/components/vue-ui-sparkhistogram.js +1 -1
  64. package/dist/components/vue-ui-sparkline.js +1 -1
  65. package/dist/components/vue-ui-sparkstackbar.js +1 -1
  66. package/dist/components/vue-ui-stackbar.js +1 -1
  67. package/dist/components/vue-ui-stackline.js +1 -1
  68. package/dist/components/vue-ui-strip-plot.js +1 -1
  69. package/dist/components/vue-ui-table-heatmap.js +1 -1
  70. package/dist/components/vue-ui-table-sparkline.js +1 -1
  71. package/dist/components/vue-ui-table.js +1 -1
  72. package/dist/components/vue-ui-thermometer.js +1 -1
  73. package/dist/components/vue-ui-timer.js +1 -1
  74. package/dist/components/vue-ui-tiremarks.js +1 -1
  75. package/dist/components/vue-ui-treemap.js +1 -1
  76. package/dist/components/vue-ui-vertical-bar.js +1 -1
  77. package/dist/components/vue-ui-waffle.js +1 -1
  78. package/dist/components/vue-ui-wheel.js +1 -1
  79. package/dist/components/vue-ui-word-cloud.js +1 -1
  80. package/dist/components/vue-ui-world.js +1 -1
  81. package/dist/components/vue-ui-xy-canvas.js +1 -1
  82. package/dist/components/vue-ui-xy.js +1 -1
  83. package/dist/{package-ta2JoIjx.js → package-Dx7M6sYy.js} +1 -1
  84. package/dist/{render-common-bvOuxfN3.js → render-common-DETHvNhl.js} +1 -1
  85. package/dist/ssr/vue-ui-donut.js +1 -1
  86. package/dist/ssr/vue-ui-xy.js +1 -1
  87. package/dist/ssr.js +2 -2
  88. package/dist/style.css +1 -1
  89. package/dist/types/vue-data-ui.d.ts +10 -0
  90. package/dist/{useConfig-C_mX5pOZ.js → useConfig-CIQZ6_r7.js} +11 -1
  91. package/dist/{useObjectBindings-uXpBcVyo.js → useObjectBindings---mHNfbS.js} +2 -2
  92. package/dist/utils.js +1 -1
  93. package/dist/{vue-data-ui-BjdCpsRV.js → vue-data-ui-Dh3_EsHb.js} +70 -70
  94. package/dist/vue-data-ui.js +71 -71
  95. package/dist/vue-ui-3d-bar-i1REAKnM.js +1831 -0
  96. package/dist/{vue-ui-accordion-DRf3NQyH.js → vue-ui-accordion-BSmBUjwZ.js} +2 -2
  97. package/dist/vue-ui-age-pyramid-DuHblCNO.js +1293 -0
  98. package/dist/{vue-ui-annotator-DZ0O8Xa5.js → vue-ui-annotator-CTQHAPho.js} +676 -676
  99. package/dist/vue-ui-bullet-CYLnKrmM.js +702 -0
  100. package/dist/{vue-ui-bump-DoHnD1Xy.js → vue-ui-bump-DhwySwgn.js} +380 -380
  101. package/dist/vue-ui-candlestick-BpiECaDj.js +1859 -0
  102. package/dist/{vue-ui-carousel-table-k1cBJ1i1.js → vue-ui-carousel-table-D-T2yA7-.js} +2 -2
  103. package/dist/vue-ui-chestnut-1MsZ9Q3r.js +2016 -0
  104. package/dist/vue-ui-chord-QBQUSe7r.js +1347 -0
  105. package/dist/vue-ui-circle-pack-ZWEwtesD.js +1635 -0
  106. package/dist/{vue-ui-cursor-CQWLyEx0.js → vue-ui-cursor-CHQcHAHQ.js} +2 -2
  107. package/dist/{vue-ui-dag-BqlsutMj.js → vue-ui-dag-C_inEafb.js} +792 -792
  108. package/dist/{vue-ui-dashboard-Be3MmkgS.js → vue-ui-dashboard-Bs2mBur5.js} +67 -67
  109. package/dist/{vue-ui-digits-BqdfbcKX.js → vue-ui-digits-DwE4MoXI.js} +2 -2
  110. package/dist/vue-ui-donut-BM9dMHXj.js +2415 -0
  111. package/dist/{vue-ui-donut-gzGZ42uH.js → vue-ui-donut-CbOSJmRu.js} +2 -2
  112. package/dist/vue-ui-donut-evolution-C97_RHus.js +1552 -0
  113. package/dist/vue-ui-dumbbell-DwKa5EL5.js +1533 -0
  114. package/dist/vue-ui-flow-DTTr3YL9.js +1217 -0
  115. package/dist/vue-ui-funnel-C4pkBk3D.js +749 -0
  116. package/dist/vue-ui-galaxy-CuAPLOvX.js +1085 -0
  117. package/dist/vue-ui-gauge-DLDULH26.js +934 -0
  118. package/dist/{vue-ui-geo-Ca8kPYr-.js → vue-ui-geo-DXIHhp-G.js} +429 -429
  119. package/dist/{vue-ui-gizmo-wUqHJICb.js → vue-ui-gizmo-PuURiePo.js} +2 -2
  120. package/dist/vue-ui-heatmap-mvWLKB99.js +1555 -0
  121. package/dist/{vue-ui-hill-D6Y9Xy2K.js → vue-ui-hill-DqsVJkmO.js} +470 -470
  122. package/dist/vue-ui-history-plot-BBVLgt9_.js +1698 -0
  123. package/dist/{vue-ui-horizontal-bar-3on3-H3B.js → vue-ui-horizontal-bar-y8Q8PZwT.js} +511 -511
  124. package/dist/{vue-ui-kpi-CUpRRIUf.js → vue-ui-kpi-B2hf3kpp.js} +2 -2
  125. package/dist/{vue-ui-label-DR2qUZOG.js → vue-ui-label-ClMQ5Gez.js} +1 -1
  126. package/dist/{vue-ui-mini-loader-D8W-fERs.js → vue-ui-mini-loader-DtPOVIkK.js} +1 -1
  127. package/dist/vue-ui-molecule-eeW1Pmg8.js +929 -0
  128. package/dist/{vue-ui-mood-radar-TW251icr.js → vue-ui-mood-radar-Dd1qfUiu.js} +376 -376
  129. package/dist/vue-ui-nested-donuts-CUARCr6O.js +1503 -0
  130. package/dist/vue-ui-onion-NoxHP0cG.js +1235 -0
  131. package/dist/{vue-ui-parallel-coordinate-plot-RM25bxtf.js → vue-ui-parallel-coordinate-plot-Cp3pCyxK.js} +407 -407
  132. package/dist/vue-ui-quadrant-C3kQtaeX.js +1967 -0
  133. package/dist/{vue-ui-quick-chart-Cswm3_eI.js → vue-ui-quick-chart-BZq517pL.js} +4 -4
  134. package/dist/vue-ui-radar-DvNrl4uD.js +1374 -0
  135. package/dist/vue-ui-rating-CWFMoYpE.js +359 -0
  136. package/dist/vue-ui-relation-circle-1iS6C0xx.js +905 -0
  137. package/dist/vue-ui-ridgeline-B-EZiPCF.js +1630 -0
  138. package/dist/vue-ui-rings-BXuwrHos.js +1252 -0
  139. package/dist/vue-ui-scatter-ByL-ZZ3B.js +2405 -0
  140. package/dist/{vue-ui-skeleton-D_u8EWeW.js → vue-ui-skeleton-BcU1onF6.js} +698 -698
  141. package/dist/vue-ui-smiley-DJVusLnp.js +376 -0
  142. package/dist/vue-ui-spark-trend-DjS31avb.js +457 -0
  143. package/dist/vue-ui-sparkbar-1Al_TLw1.js +401 -0
  144. package/dist/vue-ui-sparkgauge-CwLo53Y8.js +268 -0
  145. package/dist/vue-ui-sparkhistogram-CGw6SThG.js +589 -0
  146. package/dist/{vue-ui-sparkline-9qkNNZG6.js → vue-ui-sparkline-CSZGBFfI.js} +511 -511
  147. package/dist/vue-ui-sparkstackbar-B8dloLMp.js +738 -0
  148. package/dist/vue-ui-stackbar-FvNd77t1.js +2355 -0
  149. package/dist/vue-ui-stackline-CP7PkqiG.js +2469 -0
  150. package/dist/vue-ui-strip-plot-DSMlDkv1.js +1740 -0
  151. package/dist/{vue-ui-table-heatmap-XmDK1aHJ.js → vue-ui-table-heatmap-DnP3pzh2.js} +2 -2
  152. package/dist/vue-ui-table-rwKtnJKt.js +1352 -0
  153. package/dist/vue-ui-table-sparkline-B6wyEAyC.js +738 -0
  154. package/dist/{vue-ui-thermometer-CLx3SPRv.js → vue-ui-thermometer-D0_KsB-y.js} +192 -192
  155. package/dist/{vue-ui-timer-BDWUNb6t.js → vue-ui-timer-1Z2zginj.js} +153 -153
  156. package/dist/vue-ui-tiremarks-zbl7aooy.js +540 -0
  157. package/dist/vue-ui-treemap-Drs4gK6L.js +1733 -0
  158. package/dist/vue-ui-waffle-DqUVsVNE.js +1621 -0
  159. package/dist/vue-ui-wheel-DLCBPW9t.js +873 -0
  160. package/dist/vue-ui-word-cloud-8Agk9h6c.js +1710 -0
  161. package/dist/{vue-ui-world-C2atz4Xm.js → vue-ui-world-BOBHo7-L.js} +524 -524
  162. package/dist/vue-ui-xy-CSTJzRkk.js +5283 -0
  163. package/dist/{vue-ui-xy-CpA0W6zM.js → vue-ui-xy-Dmk1gQkI.js} +2 -2
  164. package/dist/vue-ui-xy-canvas-DANPuyf4.js +1824 -0
  165. package/dist/{vue_ui_age_pyramid-BY6c-oX_.js → vue_ui_age_pyramid-B2R66DgQ.js} +15 -6
  166. package/package.json +1 -1
  167. package/dist/vue-ui-3d-bar-C0aLR6lw.js +0 -1831
  168. package/dist/vue-ui-age-pyramid-DUcB3lYs.js +0 -1243
  169. package/dist/vue-ui-bullet-DIOCMF2H.js +0 -702
  170. package/dist/vue-ui-candlestick-Cf8TYPl5.js +0 -1859
  171. package/dist/vue-ui-chestnut-BMAuaeif.js +0 -2016
  172. package/dist/vue-ui-chord-DCe2iPjk.js +0 -1347
  173. package/dist/vue-ui-circle-pack-Eb5hS_z3.js +0 -1635
  174. package/dist/vue-ui-donut-CuQVKuZa.js +0 -2415
  175. package/dist/vue-ui-donut-evolution-DckruxZ9.js +0 -1552
  176. package/dist/vue-ui-dumbbell-BYU-hh2E.js +0 -1531
  177. package/dist/vue-ui-flow-DLRcNDLc.js +0 -1217
  178. package/dist/vue-ui-funnel-DjoqNN1U.js +0 -749
  179. package/dist/vue-ui-galaxy-BhR4IOra.js +0 -1085
  180. package/dist/vue-ui-gauge-Cq161Kwp.js +0 -934
  181. package/dist/vue-ui-heatmap-Bl5ymvi9.js +0 -1555
  182. package/dist/vue-ui-history-plot-CvVjsdCL.js +0 -1698
  183. package/dist/vue-ui-molecule-BExVLLgE.js +0 -929
  184. package/dist/vue-ui-nested-donuts-CWzJKr3S.js +0 -1503
  185. package/dist/vue-ui-onion-VaYZQK5i.js +0 -1235
  186. package/dist/vue-ui-quadrant-Dmtwow7n.js +0 -1967
  187. package/dist/vue-ui-radar-C3GYthqu.js +0 -1374
  188. package/dist/vue-ui-rating-CBdDXL80.js +0 -359
  189. package/dist/vue-ui-relation-circle-BA0qy0kp.js +0 -905
  190. package/dist/vue-ui-ridgeline-C5skjBTe.js +0 -1630
  191. package/dist/vue-ui-rings-BJ8yEQMw.js +0 -1252
  192. package/dist/vue-ui-scatter-DXg8ESgr.js +0 -2405
  193. package/dist/vue-ui-smiley-DQOp87rr.js +0 -376
  194. package/dist/vue-ui-spark-trend-CjCufXof.js +0 -457
  195. package/dist/vue-ui-sparkbar-BniEM15a.js +0 -401
  196. package/dist/vue-ui-sparkgauge-BtyCrqTQ.js +0 -268
  197. package/dist/vue-ui-sparkhistogram-DQdn3PW1.js +0 -589
  198. package/dist/vue-ui-sparkstackbar-BXQlOdOk.js +0 -738
  199. package/dist/vue-ui-stackbar-CkjicNDv.js +0 -2355
  200. package/dist/vue-ui-stackline-BB1IZta8.js +0 -2469
  201. package/dist/vue-ui-strip-plot-DGLGuH6e.js +0 -1740
  202. package/dist/vue-ui-table-BXz_HY2g.js +0 -1352
  203. package/dist/vue-ui-table-sparkline-MTEw3imE.js +0 -738
  204. package/dist/vue-ui-tiremarks-DoaypTC-.js +0 -540
  205. package/dist/vue-ui-treemap-Bv7PgpiC.js +0 -1733
  206. package/dist/vue-ui-waffle-z2DhvSAx.js +0 -1621
  207. package/dist/vue-ui-wheel-DYLBJuFb.js +0 -873
  208. package/dist/vue-ui-word-cloud-CbpEhSdL.js +0 -1710
  209. package/dist/vue-ui-xy-B3DQ6t46.js +0 -5283
  210. package/dist/vue-ui-xy-canvas-CJefORWc.js +0 -1824
@@ -1,2405 +0,0 @@
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-C_mX5pOZ.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-DRf3NQyH.js").then((e) => e.n)), vn = Pe(() => import("./DataTable-COIO9gi4.js")), yn = Pe(() => import("./PenAndPaper-BgH3m_LP.js").then((e) => e.t)), bn = Pe(() => import("./UserOptions-f3Q0nqrj.js").then((e) => e.n)), xn = Pe(() => import("./PackageVersion-M2Ws-VwJ.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
- palette: z.value.userOptions.annotatorPalette,
1477
- onClose: mi
1478
- }, {
1479
- "annotator-action-close": P(() => [j(e.$slots, "annotator-action-close", {}, void 0, !0)]),
1480
- "annotator-action-color": P(({ color: t }) => [j(e.$slots, "annotator-action-color", E(T({ color: t })), void 0, !0)]),
1481
- "annotator-action-draw": P(({ mode: t }) => [j(e.$slots, "annotator-action-draw", E(T({ mode: t })), void 0, !0)]),
1482
- "annotator-action-undo": P(({ disabled: t }) => [j(e.$slots, "annotator-action-undo", E(T({ disabled: t })), void 0, !0)]),
1483
- "annotator-action-redo": P(({ disabled: t }) => [j(e.$slots, "annotator-action-redo", E(T({ disabled: t })), void 0, !0)]),
1484
- "annotator-action-delete": P(({ disabled: t }) => [j(e.$slots, "annotator-action-delete", E(T({ disabled: t })), void 0, !0)]),
1485
- _: 3
1486
- }, 8, [
1487
- "svgRef",
1488
- "backgroundColor",
1489
- "color",
1490
- "active",
1491
- "isCursorPointer",
1492
- "palette"
1493
- ])) : S("", !0),
1494
- br.value ? (O(), C("div", {
1495
- key: 3,
1496
- ref_key: "noTitle",
1497
- ref: Pn,
1498
- class: "vue-data-ui-no-title-space",
1499
- style: "height:36px; width: 100%;background:transparent"
1500
- }, null, 512)) : S("", !0),
1501
- z.value.style.title.text ? (O(), C("div", {
1502
- key: 4,
1503
- ref_key: "chartTitle",
1504
- ref: jn,
1505
- style: "width:100%;background:transparent"
1506
- }, [(O(), x(ve, {
1507
- key: `title_${Fn.value}`,
1508
- config: {
1509
- title: {
1510
- cy: "scatter-div-title",
1511
- ...z.value.style.title
1512
- },
1513
- subtitle: {
1514
- cy: "scatter-div-subtitle",
1515
- ...z.value.style.title.subtitle
1516
- }
1517
- }
1518
- }, null, 8, ["config"]))], 512)) : S("", !0),
1519
- w("div", { id: `legend-top-${I.value}` }, null, 8, Je),
1520
- z.value.userOptions.show && Dn.value && (N(lr) || N(sr)) ? (O(), x(N(bn), {
1521
- ref_key: "userOptionsRef",
1522
- ref: Hn,
1523
- key: `user_options_${An.value}`,
1524
- backgroundColor: z.value.style.backgroundColor,
1525
- color: z.value.style.color,
1526
- isImaging: N(_r),
1527
- isPrinting: N(gr),
1528
- uid: I.value,
1529
- hasTooltip: z.value.userOptions.buttons.tooltip && z.value.style.tooltip.show,
1530
- hasPdf: z.value.userOptions.buttons.pdf,
1531
- hasImg: z.value.userOptions.buttons.img,
1532
- hasSvg: z.value.userOptions.buttons.svg,
1533
- hasXls: z.value.userOptions.buttons.csv,
1534
- hasTable: z.value.userOptions.buttons.table,
1535
- hasFullscreen: z.value.userOptions.buttons.fullscreen,
1536
- hasAltCopy: z.value.userOptions.buttons.altCopy,
1537
- isTooltip: B.value.showTooltip,
1538
- isFullscreen: li.value,
1539
- titles: { ...z.value.userOptions.buttonTitles },
1540
- chartElement: L.value,
1541
- position: z.value.userOptions.position,
1542
- hasAnnotator: z.value.userOptions.buttons.annotator,
1543
- isAnnotation: pi.value,
1544
- callbacks: z.value.userOptions.callbacks,
1545
- printScale: z.value.userOptions.print.scale,
1546
- tableDialog: z.value.table.useDialog,
1547
- isCursorPointer: tr.value,
1548
- onToggleFullscreen: ui,
1549
- onGeneratePdf: N(vr),
1550
- onGenerateCsv: si,
1551
- onGenerateImage: N(Pi),
1552
- onGenerateSvg: N(Ni),
1553
- onToggleTable: di,
1554
- onToggleTooltip: fi,
1555
- onToggleAnnotator: mi,
1556
- onCopyAlt: Fi,
1557
- style: D({ visibility: N(lr) ? N(sr) ? "visible" : "hidden" : "visible" })
1558
- }, je({ _: 2 }, [
1559
- e.$slots.menuIcon ? {
1560
- name: "menuIcon",
1561
- fn: P(({ isOpen: t, color: n }) => [j(e.$slots, "menuIcon", E(T({
1562
- isOpen: t,
1563
- color: n
1564
- })), void 0, !0)]),
1565
- key: "0"
1566
- } : void 0,
1567
- e.$slots.optionTooltip ? {
1568
- name: "optionTooltip",
1569
- fn: P(() => [j(e.$slots, "optionTooltip", {}, void 0, !0)]),
1570
- key: "1"
1571
- } : void 0,
1572
- e.$slots.optionPdf ? {
1573
- name: "optionPdf",
1574
- fn: P(() => [j(e.$slots, "optionPdf", {}, void 0, !0)]),
1575
- key: "2"
1576
- } : void 0,
1577
- e.$slots.optionCsv ? {
1578
- name: "optionCsv",
1579
- fn: P(() => [j(e.$slots, "optionCsv", {}, void 0, !0)]),
1580
- key: "3"
1581
- } : void 0,
1582
- e.$slots.optionImg ? {
1583
- name: "optionImg",
1584
- fn: P(() => [j(e.$slots, "optionImg", {}, void 0, !0)]),
1585
- key: "4"
1586
- } : void 0,
1587
- e.$slots.optionSvg ? {
1588
- name: "optionSvg",
1589
- fn: P(() => [j(e.$slots, "optionSvg", {}, void 0, !0)]),
1590
- key: "5"
1591
- } : void 0,
1592
- e.$slots.optionTable ? {
1593
- name: "optionTable",
1594
- fn: P(() => [j(e.$slots, "optionTable", {}, void 0, !0)]),
1595
- key: "6"
1596
- } : void 0,
1597
- e.$slots.optionFullscreen ? {
1598
- name: "optionFullscreen",
1599
- fn: P(({ toggleFullscreen: t, isFullscreen: n }) => [j(e.$slots, "optionFullscreen", E(T({
1600
- toggleFullscreen: t,
1601
- isFullscreen: n
1602
- })), void 0, !0)]),
1603
- key: "7"
1604
- } : void 0,
1605
- e.$slots.optionAnnotator ? {
1606
- name: "optionAnnotator",
1607
- fn: P(({ toggleAnnotator: t, isAnnotator: n }) => [j(e.$slots, "optionAnnotator", E(T({
1608
- toggleAnnotator: t,
1609
- isAnnotator: n
1610
- })), void 0, !0)]),
1611
- key: "8"
1612
- } : void 0,
1613
- e.$slots.optionAltCopy ? {
1614
- name: "optionAltCopy",
1615
- fn: P(({ altCopy: t }) => [j(e.$slots, "optionAltCopy", E(T({ altCopy: t })), void 0, !0)]),
1616
- key: "9"
1617
- } : void 0,
1618
- e.$slots["custom-menu-before"] ? {
1619
- name: "custom-menu-before",
1620
- fn: P(() => [j(e.$slots, "custom-menu-before", {}, void 0, !0)]),
1621
- key: "10"
1622
- } : void 0,
1623
- e.$slots["custom-menu-after"] ? {
1624
- name: "custom-menu-after",
1625
- fn: P(() => [j(e.$slots, "custom-menu-after", {}, void 0, !0)]),
1626
- key: "11"
1627
- } : void 0
1628
- ]), 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),
1629
- w("div", Ye, [(O(), C("svg", {
1630
- ref_key: "svgRef",
1631
- ref: ur,
1632
- xmlns: N(re),
1633
- "aria-describedby": `chart-instructions-${I.value}`,
1634
- class: Le({
1635
- "vue-data-ui-fullscreen--on": li.value,
1636
- "vue-data-ui-fulscreen--off": !li.value,
1637
- "vue-data-ui-no-transition": !N(er)
1638
- }),
1639
- viewBox: `0 0 ${V.value.width <= 0 ? 10 : V.value.width} ${V.value.height <= 0 ? 10 : V.value.height}`,
1640
- style: D(`max-width:100%;overflow:visible;background:transparent;color:${z.value.style.color}`),
1641
- onMouseleave: vi,
1642
- tabindex: "0",
1643
- onFocus: Li,
1644
- onBlur: Ri,
1645
- onKeydown: zi
1646
- }, [
1647
- Ne(N(xn)),
1648
- e.$slots["chart-background"] ? (O(), C("foreignObject", {
1649
- key: 0,
1650
- x: 0,
1651
- y: 0,
1652
- width: V.value.width <= 0 ? 10 : V.value.width,
1653
- height: V.value.height <= 0 ? 10 : V.value.height,
1654
- style: { pointerEvents: "none" }
1655
- }, [j(e.$slots, "chart-background", {}, void 0, !0)], 8, Ze)) : S("", !0),
1656
- z.value.style.layout.axis.show ? (O(), C("g", Qe, [w("line", {
1657
- x1: W.value.x,
1658
- x2: W.value.x,
1659
- y1: H.value.top,
1660
- y2: H.value.bottom,
1661
- stroke: z.value.style.layout.axis.stroke,
1662
- "stroke-width": z.value.style.layout.axis.strokeWidth,
1663
- "stroke-linecap": "round"
1664
- }, null, 8, $e), w("line", {
1665
- x1: H.value.left,
1666
- x2: H.value.right,
1667
- y1: W.value.y,
1668
- y2: W.value.y,
1669
- stroke: z.value.style.layout.axis.stroke,
1670
- "stroke-width": z.value.style.layout.axis.strokeWidth,
1671
- "stroke-linecap": "round"
1672
- }, null, 8, et)])) : S("", !0),
1673
- 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", {
1674
- key: `scatter-x-scale-line-${I.value}-${t}`,
1675
- x1: e.x,
1676
- x2: e.x,
1677
- y1: H.value.top,
1678
- y2: H.value.bottom,
1679
- stroke: z.value.style.layout.dataLabels.xAxis.scales.verticalLines.stroke,
1680
- "stroke-width": z.value.style.layout.dataLabels.xAxis.scales.verticalLines.strokeWidth,
1681
- "stroke-linecap": "round"
1682
- }, null, 8, nt))), 128))])) : S("", !0),
1683
- z.value.style.layout.dataLabels.xAxis.scales.show ? (O(), C("g", {
1684
- key: 3,
1685
- ref_key: "xAxisScaleLabels",
1686
- ref: Jn
1687
- }, [(O(!0), C(y, null, A(Mr.value, (e, t) => (O(), C("g", {
1688
- class: "vue-ui-scatter-scale-group",
1689
- key: `scatter-x-scale-${I.value}-${t}`,
1690
- opacity: +!Pr.value
1691
- }, [w("path", {
1692
- class: Le({ "vue-data-ui-transition": N(er) }),
1693
- stroke: z.value.style.layout.axis.stroke,
1694
- "stroke-width": z.value.style.layout.axis.strokeWidth,
1695
- d: `M${e.x},${W.value.y - 4} ${e.x},${W.value.y + 4}`,
1696
- "stroke-linecap": "round"
1697
- }, null, 10, it), w("text", {
1698
- class: Le({ "vue-data-ui-transition": N(er) }),
1699
- 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})`,
1700
- "text-anchor": "middle",
1701
- "font-size": z.value.style.layout.dataLabels.xAxis.scales.labels.fontSize,
1702
- fill: z.value.style.layout.dataLabels.xAxis.scales.labels.color,
1703
- stroke: z.value.style.backgroundColor,
1704
- "stroke-width": "2",
1705
- "paint-order": "stroke"
1706
- }, M(e.label), 11, at)], 8, rt))), 128))], 512)) : S("", !0),
1707
- 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", {
1708
- key: `scatter-y-scale-line-${I.value}-${t}`,
1709
- x1: H.value.left,
1710
- x2: H.value.right,
1711
- y1: e.y,
1712
- y2: e.y,
1713
- stroke: z.value.style.layout.dataLabels.yAxis.scales.horizontalLines.stroke,
1714
- "stroke-width": z.value.style.layout.dataLabels.yAxis.scales.horizontalLines.strokeWidth,
1715
- "stroke-linecap": "round"
1716
- }, null, 8, st))), 128))])) : S("", !0),
1717
- z.value.style.layout.dataLabels.yAxis.scales.show ? (O(), C("g", {
1718
- key: 5,
1719
- ref_key: "yAxisScaleLabels",
1720
- ref: qn,
1721
- opacity: +!Fr.value,
1722
- style: { transition: "opacity 0.1s ease-in-out" },
1723
- class: "vue-ui-scatter-scale-group"
1724
- }, [(O(!0), C(y, null, A(Nr.value, (e, t) => (O(), C("g", { key: `scatter-y-scale-${I.value}-${t}` }, [w("path", {
1725
- class: Le({ "vue-data-ui-transition": N(er) }),
1726
- d: `M${W.value.x - 4},${e.y} ${W.value.x + 4},${e.y}`,
1727
- stroke: z.value.style.layout.axis.stroke,
1728
- "stroke-width": z.value.style.layout.axis.strokeWidth,
1729
- "stroke-linecap": "round"
1730
- }, null, 10, lt), w("text", {
1731
- class: Le({ "vue-data-ui-transition": N(er) }),
1732
- 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})`,
1733
- "text-anchor": "end",
1734
- "font-size": z.value.style.layout.dataLabels.yAxis.scales.labels.fontSize,
1735
- fill: z.value.style.layout.dataLabels.yAxis.scales.labels.color,
1736
- stroke: z.value.style.backgroundColor,
1737
- "stroke-width": "2",
1738
- "paint-order": "stroke"
1739
- }, M(e.label), 11, ut)]))), 128))], 8, ct)) : S("", !0),
1740
- z.value.style.layout.marginalBars.show ? (O(), C("g", dt, [
1741
- w("defs", null, [Ne(Ce, {
1742
- t: "linear",
1743
- id: `marginal_x_${I.value}`,
1744
- x1: "0%",
1745
- y1: "0%",
1746
- x2: "0%",
1747
- y2: "100%",
1748
- stops: [[
1749
- "0%",
1750
- z.value.style.layout.marginalBars.fill,
1751
- 1
1752
- ], [
1753
- "100%",
1754
- z.value.style.backgroundColor,
1755
- 1
1756
- ]]
1757
- }, null, 8, ["id", "stops"]), Ne(Ce, {
1758
- t: "linear",
1759
- id: `marginal_y_${I.value}`,
1760
- x1: "0%",
1761
- x2: "100%",
1762
- y1: "0%",
1763
- y2: "0%",
1764
- stops: [[
1765
- "0%",
1766
- z.value.style.backgroundColor,
1767
- 1
1768
- ], [
1769
- "100%",
1770
- z.value.style.layout.marginalBars.fill,
1771
- 1
1772
- ]]
1773
- }, null, 8, ["id", "stops"])]),
1774
- (O(!0), C(y, null, A(J.value.x, (e, n) => (O(), C("g", null, [
1775
- e && J.value.avgX[n] ? (O(), C("rect", {
1776
- key: 0,
1777
- x: J.value.avgX[n] - H.value.width / q.value / 2,
1778
- y: H.value.top - z.value.style.layout.marginalBars.offset - e / J.value.maxX * z.value.style.layout.marginalBars.size,
1779
- width: H.value.width / q.value <= 0 ? 1e-4 : H.value.width / q.value,
1780
- height: e / J.value.maxX * z.value.style.layout.marginalBars.size <= 0 ? 1e-4 : e / J.value.maxX * z.value.style.layout.marginalBars.size,
1781
- fill: z.value.style.layout.marginalBars.useGradient ? `url(#marginal_x_${I.value})` : z.value.style.layout.marginalBars.fill,
1782
- style: D([`opacity:${z.value.style.layout.marginalBars.opacity}`, { "pointer-events": "none" }]),
1783
- stroke: z.value.style.backgroundColor,
1784
- "stroke-width": z.value.style.layout.marginalBars.strokeWidth,
1785
- rx: z.value.style.layout.marginalBars.borderRadius
1786
- }, null, 12, ft)) : S("", !0),
1787
- J.value.avgX[n] ? (O(), C("rect", {
1788
- key: 1,
1789
- x: J.value.avgX[n] - H.value.width / q.value / 2,
1790
- y: H.value.top - z.value.style.layout.marginalBars.offset - z.value.style.layout.marginalBars.size,
1791
- width: H.value.width / q.value <= 0 ? 1e-4 : H.value.width / q.value,
1792
- height: Math.max(.1, z.value.style.layout.marginalBars.size),
1793
- fill: "transparent",
1794
- onMouseenter: (e) => gi(n),
1795
- onMouseleave: t[0] ||= (e) => vi()
1796
- }, null, 40, pt)) : S("", !0),
1797
- J.value.avgX[n] && zn.value != null && zn.value === n ? (O(), C("g", mt, [
1798
- w("rect", {
1799
- x: J.value.avgX[n] - H.value.width / q.value / 2,
1800
- y: H.value.top,
1801
- width: H.value.width / q.value <= 0 ? 1e-4 : H.value.width / q.value,
1802
- height: H.value.height,
1803
- fill: z.value.style.layout.marginalBars.highlighter.color,
1804
- "fill-opacity": z.value.style.layout.marginalBars.highlighter.opacity
1805
- }, null, 8, ht),
1806
- w("line", {
1807
- x1: J.value.avgX[n] - H.value.width / q.value / 2,
1808
- x2: J.value.avgX[n] - H.value.width / q.value / 2,
1809
- y1: 0,
1810
- y2: H.value.top + H.value.height,
1811
- stroke: z.value.style.layout.marginalBars.highlighter.stroke,
1812
- "stroke-dasharray": z.value.style.layout.marginalBars.highlighter.strokeDasharray,
1813
- "stroke-width": z.value.style.layout.marginalBars.highlighter.strokeWidth,
1814
- style: {
1815
- transition: "none !important",
1816
- animation: "none !important"
1817
- }
1818
- }, null, 8, gt),
1819
- w("line", {
1820
- x1: J.value.avgX[n] - H.value.width / q.value / 2 + (H.value.width / q.value <= 0 ? 1e-4 : H.value.width / q.value),
1821
- x2: J.value.avgX[n] - H.value.width / q.value / 2 + (H.value.width / q.value <= 0 ? 1e-4 : H.value.width / q.value),
1822
- y1: 0,
1823
- y2: H.value.top + H.value.height,
1824
- stroke: z.value.style.layout.marginalBars.highlighter.stroke,
1825
- "stroke-dasharray": z.value.style.layout.marginalBars.highlighter.strokeDasharray,
1826
- "stroke-width": z.value.style.layout.marginalBars.highlighter.strokeWidth,
1827
- style: {
1828
- transition: "none !important",
1829
- animation: "none !important"
1830
- }
1831
- }, null, 8, _t)
1832
- ])) : S("", !0)
1833
- ]))), 256)),
1834
- (O(!0), C(y, null, A(J.value.y, (e, n) => (O(), C("g", null, [
1835
- e && J.value.avgY[n] ? (O(), C("rect", {
1836
- key: 0,
1837
- x: H.value.right + z.value.style.layout.marginalBars.offset,
1838
- y: J.value.avgY[n] - H.value.height / q.value / 2,
1839
- height: H.value.height / q.value <= 0 ? 1e-4 : H.value.height / q.value,
1840
- width: e / J.value.maxY * z.value.style.layout.marginalBars.size <= 0 ? 1e-4 : e / J.value.maxY * z.value.style.layout.marginalBars.size,
1841
- fill: z.value.style.layout.marginalBars.useGradient ? `url(#marginal_y_${I.value})` : z.value.style.layout.marginalBars.fill,
1842
- style: D([`opacity:${z.value.style.layout.marginalBars.opacity}`, { "pointer-events": "none" }]),
1843
- stroke: z.value.style.backgroundColor,
1844
- "stroke-width": z.value.style.layout.marginalBars.strokeWidth,
1845
- rx: z.value.style.layout.marginalBars.borderRadius
1846
- }, null, 12, vt)) : S("", !0),
1847
- J.value.avgY[n] ? (O(), C("rect", {
1848
- key: 1,
1849
- x: H.value.right + z.value.style.layout.marginalBars.offset,
1850
- y: J.value.avgY[n] - H.value.height / q.value / 2,
1851
- width: Math.max(.1, z.value.style.layout.marginalBars.size),
1852
- height: H.value.height / q.value <= 0 ? 1e-4 : H.value.height / q.value,
1853
- fill: "transparent",
1854
- onMouseenter: (e) => _i(n),
1855
- onMouseleave: t[1] ||= (e) => vi()
1856
- }, null, 40, yt)) : S("", !0),
1857
- J.value.avgY[n] && Bn.value != null && Bn.value === n ? (O(), C("g", bt, [
1858
- w("rect", {
1859
- x: H.value.left,
1860
- y: J.value.avgY[n] - H.value.height / q.value / 2,
1861
- width: H.value.width,
1862
- height: H.value.height / q.value <= 0 ? 1e-4 : H.value.height / q.value,
1863
- fill: z.value.style.layout.marginalBars.highlighter.color,
1864
- "fill-opacity": z.value.style.layout.marginalBars.highlighter.opacity
1865
- }, null, 8, xt),
1866
- w("line", {
1867
- x1: H.value.left,
1868
- x2: V.value.width,
1869
- y1: J.value.avgY[n] - H.value.height / q.value / 2,
1870
- y2: J.value.avgY[n] - H.value.height / q.value / 2,
1871
- stroke: z.value.style.layout.marginalBars.highlighter.stroke,
1872
- "stroke-dasharray": z.value.style.layout.marginalBars.highlighter.strokeDasharray,
1873
- "stroke-width": z.value.style.layout.marginalBars.highlighter.strokeWidth,
1874
- style: {
1875
- transition: "none !important",
1876
- animation: "none !important"
1877
- }
1878
- }, null, 8, St),
1879
- w("line", {
1880
- x1: H.value.left,
1881
- x2: V.value.width,
1882
- y1: J.value.avgY[n] - H.value.height / q.value / 2 + (H.value.height / q.value <= 0 ? 1e-4 : H.value.height / q.value),
1883
- y2: J.value.avgY[n] - H.value.height / q.value / 2 + (H.value.height / q.value <= 0 ? 1e-4 : H.value.height / q.value),
1884
- stroke: z.value.style.layout.marginalBars.highlighter.stroke,
1885
- "stroke-dasharray": z.value.style.layout.marginalBars.highlighter.strokeDasharray,
1886
- "stroke-width": z.value.style.layout.marginalBars.highlighter.strokeWidth,
1887
- style: {
1888
- transition: "none !important",
1889
- animation: "none !important"
1890
- }
1891
- }, null, 8, Ct)
1892
- ])) : S("", !0)
1893
- ]))), 256)),
1894
- z.value.style.layout.marginalBars.showLines ? (O(), C("g", wt, [(O(!0), C(y, null, A(Ur.value, (e) => (O(), C(y, null, [
1895
- R.value.includes(e.id) ? S("", !0) : (O(), C("path", {
1896
- key: 0,
1897
- d: `M ${e.dX}`,
1898
- stroke: z.value.style.backgroundColor,
1899
- "stroke-width": z.value.style.layout.marginalBars.linesStrokeWidth + 1,
1900
- "stroke-linecap": "round",
1901
- "stroke-linejoin": "round",
1902
- fill: "none"
1903
- }, null, 8, Tt)),
1904
- R.value.includes(e.id) ? S("", !0) : (O(), C("path", {
1905
- key: 1,
1906
- d: `M ${e.dX}`,
1907
- stroke: e.color,
1908
- "stroke-width": z.value.style.layout.marginalBars.linesStrokeWidth,
1909
- "stroke-linecap": "round",
1910
- "stroke-linejoin": "round",
1911
- fill: "none"
1912
- }, null, 8, Et)),
1913
- R.value.includes(e.id) ? S("", !0) : (O(), C("path", {
1914
- key: 2,
1915
- d: `M ${e.dY}`,
1916
- stroke: z.value.style.backgroundColor,
1917
- "stroke-width": z.value.style.layout.marginalBars.linesStrokeWidth + 1,
1918
- "stroke-linecap": "round",
1919
- "stroke-linejoin": "round",
1920
- fill: "none"
1921
- }, null, 8, Dt)),
1922
- R.value.includes(e.id) ? S("", !0) : (O(), C("path", {
1923
- key: 3,
1924
- d: `M ${e.dY}`,
1925
- stroke: e.color,
1926
- "stroke-width": z.value.style.layout.marginalBars.linesStrokeWidth,
1927
- "stroke-linecap": "round",
1928
- "stroke-linejoin": "round",
1929
- fill: "none"
1930
- }, null, 8, Ot))
1931
- ], 64))), 256))])) : S("", !0)
1932
- ])) : S("", !0),
1933
- 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", {
1934
- key: 0,
1935
- points: N(oe)({ series: e.plots }),
1936
- fill: N(d)(e.color, z.value.style.layout.plots.giftWrap.fillOpacity * 100),
1937
- "stroke-width": z.value.style.layout.plots.giftWrap.strokeWidth,
1938
- "stroke-dasharray": z.value.style.layout.plots.giftWrap.strokeDasharray,
1939
- stroke: e.color,
1940
- "stroke-linejoin": "round",
1941
- "stroke-linecap": "round"
1942
- }, null, 8, At)) : S("", !0)]))), 256))])) : S("", !0),
1943
- 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", {
1944
- key: n.id,
1945
- cx: n.x,
1946
- cy: n.y,
1947
- r: Y.value && Y.value === n.id || Z.value.includes(n.id) ? n.weight * z.value.style.layout.plots.hoverRadiusRatio : n.weight,
1948
- 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),
1949
- stroke: z.value.style.layout.plots.stroke,
1950
- "stroke-width": z.value.style.layout.plots.strokeWidth,
1951
- 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}`),
1952
- onMouseover: (e) => $r(n, t, "pointer", $.value.get(n.id)),
1953
- onMouseleave: (e) => ei(n, t),
1954
- onClick: (e) => ti(n, t)
1955
- }, null, 44, Mt))), 128))])) : (O(), C("g", Nt, [(O(!0), C(y, null, A(e.plots, (n, r) => (O(), x(ye, {
1956
- class: "vue-ui-scatter-datapoint",
1957
- plot: {
1958
- x: n.x,
1959
- y: n.y
1960
- },
1961
- radius: Y.value && Y.value === n.id || Z.value.includes(n.id) ? n.weight * z.value.style.layout.plots.hoverRadiusRatio : n.weight,
1962
- shape: e.shape,
1963
- 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),
1964
- stroke: z.value.style.layout.plots.stroke,
1965
- strokeWidth: z.value.style.layout.plots.strokeWidth,
1966
- 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}`),
1967
- onMouseover: (e) => $r(n, t, "pointer", $.value.get(n.id)),
1968
- onMouseleave: (e) => ei(n, t),
1969
- onClick: (e) => ti(n, t)
1970
- }, null, 8, [
1971
- "plot",
1972
- "radius",
1973
- "shape",
1974
- "color",
1975
- "stroke",
1976
- "strokeWidth",
1977
- "style",
1978
- "onMouseover",
1979
- "onMouseleave",
1980
- "onClick"
1981
- ]))), 256))])), z.value.style.layout.plots.name.show ? (O(!0), C(y, { key: 2 }, A(e.plots, (e, n) => (O(), C("text", {
1982
- class: "vue-ui-scatter-datapoint-label",
1983
- key: `datalabel-${e.id}`,
1984
- transform: `translate(${e.x}, ${e.y - e.weight - z.value.style.layout.plots.name.fontSize + z.value.style.layout.plots.name.offsetY})`,
1985
- "text-anchor": "middle",
1986
- "font-size": z.value.style.layout.plots.name.fontSize,
1987
- 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),
1988
- onMouseover: (n) => $r(e, t, "pointer", $.value.get(e.id)),
1989
- onMouseleave: (n) => ei(e, t),
1990
- onClick: (n) => ti(e, t)
1991
- }, M(e.clusterName), 41, Pt))), 128)) : S("", !0)]))), 128)),
1992
- z.value.usePerformanceMode ? (O(), C(y, { key: 9 }, [
1993
- w("g", { "clip-path": `url(#clip_path_${I.value})` }, [(O(!0), C(y, null, A(xi.value, (e) => (O(), C("path", {
1994
- key: e.id,
1995
- d: e.d,
1996
- fill: e.fill,
1997
- stroke: e.stroke,
1998
- "stroke-width": e.strokeWidth,
1999
- "stroke-opacity": e.strokeOpacity,
2000
- "vector-effect": "non-scaling-stroke",
2001
- "paint-order": "fill"
2002
- }, null, 8, It))), 128))], 8, Ft),
2003
- X.value && z.value.style.layout.plots.selectors.show ? (O(), C("g", Lt, [Ne(ye, {
2004
- shape: X.value.shape || "circle",
2005
- color: X.value.color,
2006
- plot: {
2007
- x: X.value.x,
2008
- y: X.value.y
2009
- },
2010
- radius: Math.max(4 * yi[X.value.shape || "circle"], X.value.weight * z.value.style.layout.plots.hoverRadiusRatio),
2011
- stroke: z.value.style.layout.plots.stroke,
2012
- strokeWidth: z.value.style.layout.plots.strokeWidth
2013
- }, null, 8, [
2014
- "shape",
2015
- "color",
2016
- "plot",
2017
- "radius",
2018
- "stroke",
2019
- "strokeWidth"
2020
- ])])) : S("", !0),
2021
- w("rect", {
2022
- x: H.value.left,
2023
- y: H.value.top,
2024
- width: Math.max(1e-4, H.value.width),
2025
- height: Math.max(1e-4, H.value.height),
2026
- fill: "transparent",
2027
- onMousemove: t[2] ||= (...e) => N(Ci) && N(Ci)(...e),
2028
- onMouseleave: wi,
2029
- onClick: Ti
2030
- }, null, 40, Rt)
2031
- ], 64)) : S("", !0),
2032
- (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, [
2033
- w("line", {
2034
- x1: W.value.x,
2035
- x2: e.x,
2036
- y1: e.y,
2037
- y2: e.y,
2038
- stroke: z.value.style.layout.plots.selectors.stroke,
2039
- "stroke-width": z.value.style.layout.plots.selectors.strokeWidth,
2040
- "stroke-dasharray": z.value.style.layout.plots.selectors.strokeDasharray,
2041
- "stroke-linecap": "round",
2042
- class: "line-pointer"
2043
- }, null, 8, Bt),
2044
- w("line", {
2045
- x1: e.x,
2046
- x2: e.x,
2047
- y1: W.value.y,
2048
- y2: e.y,
2049
- stroke: z.value.style.layout.plots.selectors.stroke,
2050
- "stroke-width": z.value.style.layout.plots.selectors.strokeWidth,
2051
- "stroke-dasharray": z.value.style.layout.plots.selectors.strokeDasharray,
2052
- "stroke-linecap": "round",
2053
- class: "line-pointer"
2054
- }, null, 8, Vt),
2055
- z.value.style.layout.dataLabels.yAxis.scales.show ? S("", !0) : (O(), C("text", {
2056
- key: 0,
2057
- x: W.value.x + (e.x > W.value.x ? -6 : 6),
2058
- y: e.y + z.value.style.layout.plots.selectors.labels.fontSize / 3,
2059
- "font-size": z.value.style.layout.plots.selectors.labels.fontSize,
2060
- fill: z.value.style.layout.plots.selectors.labels.color,
2061
- "font-weight": z.value.style.layout.plots.selectors.labels.bold ? "bold" : "normal",
2062
- "text-anchor": e.x > W.value.x ? "end" : "start"
2063
- }, M(N(v)(z.value.style.layout.plots.selectors.labels.y.formatter, N(g)(e.v.y), N(f)({
2064
- p: z.value.style.layout.plots.selectors.labels.prefix,
2065
- v: N(g)(e.v.y),
2066
- s: z.value.style.layout.plots.selectors.labels.suffix,
2067
- r: z.value.style.layout.plots.selectors.labels.rounding
2068
- }), { datapoint: e })), 9, Ht)),
2069
- z.value.style.layout.dataLabels.xAxis.scales.show ? S("", !0) : (O(), C("text", {
2070
- key: 1,
2071
- x: e.x,
2072
- y: W.value.y + (e.y > W.value.y ? -6 : z.value.style.layout.plots.selectors.labels.fontSize + 6),
2073
- "font-size": z.value.style.layout.plots.selectors.labels.fontSize,
2074
- fill: z.value.style.layout.plots.selectors.labels.color,
2075
- "font-weight": z.value.style.layout.plots.selectors.labels.bold ? "bold" : "normal",
2076
- "text-anchor": "middle"
2077
- }, M(N(v)(z.value.style.layout.plots.selectors.labels.y.formatter, N(g)(e.v.x), N(f)({
2078
- p: z.value.style.layout.plots.selectors.labels.prefix,
2079
- v: N(g)(e.v.x),
2080
- s: z.value.style.layout.plots.selectors.labels.suffix,
2081
- r: z.value.style.layout.plots.selectors.labels.rounding
2082
- }), { datapoint: e })), 9, Ut)),
2083
- z.value.style.layout.dataLabels.xAxis.scales.show ? (O(), C("text", {
2084
- key: 2,
2085
- x: e.x,
2086
- y: W.value.y + z.value.style.layout.dataLabels.xAxis.scales.labels.fontSize + 6 + z.value.style.layout.dataLabels.xAxis.scales.labels.offsetY,
2087
- "text-anchor": "middle",
2088
- "font-size": z.value.style.layout.dataLabels.xAxis.scales.labels.fontSize,
2089
- fill: z.value.style.layout.dataLabels.xAxis.scales.labels.color
2090
- }, M(Zr(e)), 9, Wt)) : S("", !0),
2091
- z.value.style.layout.dataLabels.yAxis.scales.show ? (O(), C("text", {
2092
- key: 3,
2093
- x: W.value.x - z.value.style.layout.dataLabels.yAxis.scales.labels.fontSize / 2 - 8 + z.value.style.layout.dataLabels.yAxis.scales.labels.offsetX,
2094
- y: e.y + z.value.style.layout.dataLabels.yAxis.scales.labels.fontSize / 3,
2095
- "text-anchor": "end",
2096
- "font-size": z.value.style.layout.dataLabels.yAxis.scales.labels.fontSize,
2097
- fill: z.value.style.layout.dataLabels.yAxis.scales.labels.color
2098
- }, M(Qr(e)), 9, Gt)) : S("", !0),
2099
- w("circle", {
2100
- cx: W.value.x,
2101
- cy: e.y,
2102
- r: z.value.style.layout.plots.selectors.markers.radius,
2103
- fill: z.value.style.layout.plots.selectors.markers.fill,
2104
- stroke: z.value.style.layout.plots.selectors.markers.stroke,
2105
- "stroke-width": z.value.style.layout.plots.selectors.markers.strokeWidth,
2106
- class: "line-pointer"
2107
- }, null, 8, Kt),
2108
- w("circle", {
2109
- cx: e.x,
2110
- cy: W.value.y,
2111
- r: z.value.style.layout.plots.selectors.markers.radius,
2112
- fill: z.value.style.layout.plots.selectors.markers.fill,
2113
- stroke: z.value.style.layout.plots.selectors.markers.stroke,
2114
- "stroke-width": z.value.style.layout.plots.selectors.markers.strokeWidth,
2115
- class: "line-pointer"
2116
- }, null, 8, qt),
2117
- z.value.style.layout.plots.selectors.labels.showName && !z.value.style.layout.plots.name.show ? (O(), C("text", {
2118
- key: 4,
2119
- x: e.x,
2120
- 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),
2121
- "font-size": z.value.style.layout.plots.selectors.labels.fontSize,
2122
- fill: z.value.style.layout.plots.selectors.labels.color,
2123
- "font-weight": z.value.style.layout.plots.selectors.labels.bold ? "bold" : "normal",
2124
- "text-anchor": e.x < H.value.left + 100 ? "start" : e.x > H.value.right - 100 ? "end" : e.x > W.value.x ? "start" : "end"
2125
- }, M(e.v.name), 9, Jt)) : S("", !0)
2126
- ])) : S("", !0)], 64))), 128)),
2127
- z.value.style.layout.dataLabels.xAxis.show ? (O(), C("g", {
2128
- key: 10,
2129
- ref_key: "xAxisLabelLeft",
2130
- ref: Un
2131
- }, [w("text", {
2132
- id: `vue-ui-scatter-xAxis-label-${I.value}`,
2133
- 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)`,
2134
- "text-anchor": "middle",
2135
- "font-size": z.value.style.layout.dataLabels.xAxis.fontSize,
2136
- "font-weight": z.value.style.layout.dataLabels.xAxis.bold ? "bold" : "normal",
2137
- fill: z.value.style.layout.dataLabels.xAxis.color
2138
- }, 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", {
2139
- key: 0,
2140
- "text-anchor": "middle",
2141
- "font-size": z.value.style.layout.dataLabels.xAxis.fontSize,
2142
- fill: z.value.style.layout.dataLabels.xAxis.color,
2143
- 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)`
2144
- }, M(N(v)(z.value.style.layout.plots.selectors.labels.x.formatter, N(g)(U.value.xMin), N(f)({
2145
- p: z.value.style.layout.plots.selectors.labels.prefix,
2146
- v: N(g)(U.value.xMin),
2147
- s: z.value.style.layout.plots.selectors.labels.suffix,
2148
- r: z.value.style.layout.dataLabels.xAxis.rounding
2149
- }))), 9, Xt)) : S("", !0)], 512)) : S("", !0),
2150
- z.value.style.layout.dataLabels.xAxis.show && z.value.style.layout.dataLabels.xAxis.showValue ? (O(), C("text", {
2151
- key: 11,
2152
- ref_key: "xAxisLabelRight",
2153
- ref: Wn,
2154
- "text-anchor": "middle",
2155
- 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)`,
2156
- "font-size": z.value.style.layout.dataLabels.xAxis.fontSize,
2157
- fill: z.value.style.layout.dataLabels.xAxis.color
2158
- }, M(N(v)(z.value.style.layout.plots.selectors.labels.x.formatter, N(g)(U.value.xMax), N(f)({
2159
- p: z.value.style.layout.plots.selectors.labels.prefix,
2160
- v: N(g)(U.value.xMax),
2161
- s: z.value.style.layout.plots.selectors.labels.suffix,
2162
- r: z.value.style.layout.dataLabels.xAxis.rounding
2163
- }))), 9, Zt)) : S("", !0),
2164
- z.value.style.layout.dataLabels.yAxis.show && z.value.style.layout.dataLabels.yAxis.showValue ? (O(), C("text", {
2165
- key: 12,
2166
- ref_key: "yAxisLabelTop",
2167
- ref: Gn,
2168
- x: W.value.x,
2169
- y: H.value.top - z.value.style.layout.dataLabels.yAxis.fontSize,
2170
- "text-anchor": "middle",
2171
- "font-size": z.value.style.layout.dataLabels.yAxis.fontSize,
2172
- fill: z.value.style.layout.dataLabels.yAxis.color
2173
- }, M(N(v)(z.value.style.layout.plots.selectors.labels.y.formatter, N(g)(U.value.yMax), N(f)({
2174
- p: z.value.style.layout.plots.selectors.labels.prefix,
2175
- v: N(g)(U.value.yMax),
2176
- s: z.value.style.layout.plots.selectors.labels.suffix,
2177
- r: z.value.style.layout.dataLabels.yAxis.rounding
2178
- }))), 9, Qt)) : S("", !0),
2179
- z.value.style.layout.dataLabels.yAxis.show ? (O(), C("g", {
2180
- key: 13,
2181
- ref_key: "yAxisLabelBottom",
2182
- ref: Kn
2183
- }, [z.value.style.layout.dataLabels.yAxis.showValue ? (O(), C("text", {
2184
- key: 0,
2185
- x: W.value.x,
2186
- y: V.value.height - z.value.style.layout.dataLabels.yAxis.fontSize * 2,
2187
- "text-anchor": "middle",
2188
- "font-size": z.value.style.layout.dataLabels.yAxis.fontSize,
2189
- fill: z.value.style.layout.dataLabels.yAxis.color
2190
- }, M(N(v)(z.value.style.layout.plots.selectors.labels.y.formatter, N(g)(U.value.yMin), N(f)({
2191
- p: z.value.style.layout.plots.selectors.labels.prefix,
2192
- v: N(g)(U.value.yMin),
2193
- s: z.value.style.layout.plots.selectors.labels.suffix,
2194
- r: z.value.style.layout.dataLabels.yAxis.rounding
2195
- }))), 9, $t)) : S("", !0), w("text", {
2196
- "text-anchor": "middle",
2197
- "font-size": z.value.style.layout.dataLabels.yAxis.fontSize,
2198
- "font-weight": z.value.style.layout.dataLabels.yAxis.bold ? "bold" : "normal",
2199
- fill: z.value.style.layout.dataLabels.yAxis.color,
2200
- 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),
2201
- y: V.value.height + (z.value.style.layout.dataLabels.reverseAxisLabels ? z.value.style.layout.dataLabels.xAxis.offsetY : z.value.style.layout.dataLabels.yAxis.offsetY)
2202
- }, 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),
2203
- w("clipPath", { id: `clip_path_${I.value}` }, [w("rect", {
2204
- x: H.value.left,
2205
- y: H.value.top,
2206
- width: H.value.width <= 0 ? 1e-4 : H.value.width,
2207
- height: H.value.height <= 0 ? 1e-4 : H.value.height
2208
- }, null, 8, nn)], 8, tn),
2209
- 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", {
2210
- x1: e.correlation.x1,
2211
- x2: e.correlation.x2,
2212
- y1: e.correlation.y1,
2213
- y2: e.correlation.y2,
2214
- "stroke-dasharray": z.value.style.layout.correlation.strokeDasharray,
2215
- stroke: e.color,
2216
- "stroke-width": z.value.style.layout.correlation.strokeWidth,
2217
- "clip-path": `url(#clip_path_${I.value})`
2218
- }, 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", {
2219
- key: 0,
2220
- x: e.correlation.x2,
2221
- y: e.correlation.y2,
2222
- fill: z.value.style.layout.correlation.label.useSerieColor ? e.color : z.value.style.layout.correlation.label.color,
2223
- "text-anchor": "end",
2224
- "font-size": z.value.style.layout.correlation.label.fontSize,
2225
- "font-weight": z.value.style.layout.correlation.label.bold ? "bold" : "normal"
2226
- }, M(N(f)({
2227
- v: N(g)(e.correlation?.coefficient ?? 0),
2228
- r: z.value.style.layout.correlation.label.roundingValue
2229
- })), 9, on)) : S("", !0)]))), 256))])) : S("", !0),
2230
- j(e.$slots, "svg", { svg: {
2231
- ...V.value,
2232
- drawingArea: {
2233
- ...H.value,
2234
- zero: W.value
2235
- },
2236
- data: zr.value,
2237
- isPrintingImg: N(gr) || N(_r) || N(ji),
2238
- isPrintingSvg: N(Mi)
2239
- } }, void 0, !0)
2240
- ], 46, Xe)), e.$slots.hint ? (O(), C("div", sn, [j(e.$slots, "hint", E(T({
2241
- hint: z.value.a11y.translations.keyboardNavigation,
2242
- isVisible: Qn.value
2243
- })), void 0, !0)])) : S("", !0)]),
2244
- 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),
2245
- w("div", { id: `legend-bottom-${I.value}` }, null, 8, ln),
2246
- Dn.value && Rn.value && (z.value.style.legend.show || e.$slots.legend) ? (O(), x(Ae, {
2247
- key: 7,
2248
- to: z.value.style.legend.position === "top" ? `#legend-top-${I.value}` : `#legend-bottom-${I.value}`
2249
- }, [w("div", {
2250
- ref_key: "chartLegend",
2251
- ref: Mn
2252
- }, [j(e.$slots, "legend", { legend: G.value }, () => [z.value.style.legend.show ? (O(), x(Oe, {
2253
- key: `legend_${Ln.value}`,
2254
- legendSet: G.value,
2255
- config: Rr.value,
2256
- isCursorPointer: tr.value,
2257
- onClickMarker: t[3] ||= ({ legend: e }) => ri(e.id)
2258
- }, {
2259
- item: P(({ legend: e }) => [w("div", {
2260
- onClick: (t) => e.segregate(),
2261
- style: D(`opacity:${R.value.includes(e.id) ? .5 : 1}`)
2262
- }, M(e.name), 13, un)]),
2263
- legendToggle: P(() => [G.value.length > 2 && z.value.style.legend.selectAllToggle.show && !N(ir) ? (O(), x(we, {
2264
- key: 0,
2265
- backgroundColor: z.value.style.legend.selectAllToggle.backgroundColor,
2266
- color: z.value.style.legend.selectAllToggle.color,
2267
- fontSize: z.value.style.legend.fontSize,
2268
- checked: R.value.length > 0,
2269
- isCursorPointer: tr.value,
2270
- onToggle: ni
2271
- }, null, 8, [
2272
- "backgroundColor",
2273
- "color",
2274
- "fontSize",
2275
- "checked",
2276
- "isCursorPointer"
2277
- ])) : S("", !0)]),
2278
- _: 1
2279
- }, 8, [
2280
- "legendSet",
2281
- "config",
2282
- "isCursorPointer"
2283
- ])) : S("", !0)], !0)], 512)], 8, ["to"])) : S("", !0),
2284
- e.$slots.source ? (O(), C("div", {
2285
- key: 8,
2286
- ref_key: "source",
2287
- ref: Nn,
2288
- dir: "auto"
2289
- }, [j(e.$slots, "source", {}, void 0, !0)], 512)) : S("", !0),
2290
- Ne(N(hn), {
2291
- teleportTo: z.value.style.tooltip.teleportTo,
2292
- show: B.value.showTooltip && On.value,
2293
- backgroundColor: z.value.style.tooltip.backgroundColor,
2294
- color: z.value.style.tooltip.color,
2295
- borderRadius: z.value.style.tooltip.borderRadius,
2296
- borderColor: z.value.style.tooltip.borderColor,
2297
- borderWidth: z.value.style.tooltip.borderWidth,
2298
- fontSize: z.value.style.tooltip.fontSize,
2299
- backgroundOpacity: z.value.style.tooltip.backgroundOpacity,
2300
- position: z.value.style.tooltip.position,
2301
- offsetX: z.value.style.tooltip.offsetX,
2302
- offsetY: z.value.style.tooltip.offsetY,
2303
- parent: L.value,
2304
- content: kn.value,
2305
- isFullscreen: li.value,
2306
- isCustom: z.value.style.tooltip.customFormat && typeof z.value.style.tooltip.customFormat == "function",
2307
- smooth: z.value.style.tooltip.smooth,
2308
- backdropFilter: z.value.style.tooltip.backdropFilter,
2309
- smoothForce: z.value.style.tooltip.smoothForce,
2310
- smoothSnapThreshold: z.value.style.tooltip.smoothSnapThreshold,
2311
- isA11yMode: Zn.value === "keyboard",
2312
- a11yPosition: Xn.value
2313
- }, {
2314
- "tooltip-before": P(() => [j(e.$slots, "tooltip-before", E(T({ ...Wr.value })), void 0, !0)]),
2315
- tooltip: P(() => [j(e.$slots, "tooltip", E(T({ ...Wr.value })), void 0, !0)]),
2316
- "tooltip-after": P(() => [j(e.$slots, "tooltip-after", E(T({ ...Wr.value })), void 0, !0)]),
2317
- default: P(() => [z.value.style.tooltip.showShape ? (O(), C("div", dn, [(O(), C("svg", fn, [Ne(ye, {
2318
- shape: X.value.shape,
2319
- color: X.value.color,
2320
- plot: {
2321
- x: 10,
2322
- y: 10
2323
- },
2324
- radius: 7
2325
- }, null, 8, ["shape", "color"])]))])) : S("", !0)]),
2326
- _: 3
2327
- }, 8, [
2328
- "teleportTo",
2329
- "show",
2330
- "backgroundColor",
2331
- "color",
2332
- "borderRadius",
2333
- "borderColor",
2334
- "borderWidth",
2335
- "fontSize",
2336
- "backgroundOpacity",
2337
- "position",
2338
- "offsetX",
2339
- "offsetY",
2340
- "parent",
2341
- "content",
2342
- "isFullscreen",
2343
- "isCustom",
2344
- "smooth",
2345
- "backdropFilter",
2346
- "smoothForce",
2347
- "smoothSnapThreshold",
2348
- "isA11yMode",
2349
- "a11yPosition"
2350
- ]),
2351
- Dn.value && z.value.userOptions.buttons.table ? (O(), x(Be(Ei.value.component), Fe({ key: 9 }, Ei.value.props, {
2352
- ref_key: "tableUnit",
2353
- ref: Vn,
2354
- onClose: Di
2355
- }), je({
2356
- content: P(() => [(O(), x(N(vn), {
2357
- key: `table_${In.value}`,
2358
- colNames: ci.value.colNames,
2359
- head: ci.value.head,
2360
- body: ci.value.body,
2361
- config: ci.value.config,
2362
- title: z.value.table.useDialog ? "" : Ei.value.title,
2363
- withCloseButton: !z.value.table.useDialog,
2364
- isCursorPointer: tr.value,
2365
- onClose: Di
2366
- }, {
2367
- th: P(({ th: e }) => [Me(M(e), 1)]),
2368
- td: P(({ td: e }) => [e.shape ? (O(), C("div", pn, [w("span", null, M(e.content), 1)])) : (O(), C("div", {
2369
- key: 1,
2370
- innerHTML: e
2371
- }, null, 8, mn))]),
2372
- _: 1
2373
- }, 8, [
2374
- "colNames",
2375
- "head",
2376
- "body",
2377
- "config",
2378
- "title",
2379
- "withCloseButton",
2380
- "isCursorPointer"
2381
- ]))]),
2382
- _: 2
2383
- }, [z.value.table.useDialog ? {
2384
- name: "title",
2385
- fn: P(() => [Me(M(Ei.value.title), 1)]),
2386
- key: "0"
2387
- } : void 0, z.value.table.useDialog ? {
2388
- name: "actions",
2389
- fn: P(() => [w("button", {
2390
- tabindex: "0",
2391
- class: "vue-ui-user-options-button",
2392
- onClick: t[4] ||= (e) => si(z.value.userOptions.callbacks.csv),
2393
- style: D({ cursor: tr.value ? "pointer" : "default" })
2394
- }, [Ne(N(gn), {
2395
- name: "fileCsv",
2396
- stroke: Ei.value.props.color
2397
- }, null, 8, ["stroke"])], 4)]),
2398
- key: "1"
2399
- } : void 0]), 1040)) : S("", !0),
2400
- j(e.$slots, "skeleton", {}, () => [N(ir) ? (O(), x(fe, { key: 0 })) : S("", !0)], !0)
2401
- ], 46, Ge));
2402
- }
2403
- }, [["__scopeId", "data-v-1ee8383a"]]);
2404
- //#endregion
2405
- export { We as n, hn as t };