vue-data-ui 3.25.2 → 3.25.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (194) hide show
  1. package/dist/{Arrow-CL6s6WpN.js → Arrow-DLn-pcrh.js} +1 -1
  2. package/dist/{BaseDraggableDialog-Cwj9aGdF.js → BaseDraggableDialog-BM_R41j8.js} +2 -2
  3. package/dist/{BaseIcon-Oj70ytWI.js → BaseIcon-t83PDe9k.js} +1 -1
  4. package/dist/{BaseLegendToggle-Cvuc-Mrr.js → BaseLegendToggle-__JnV08B.js} +1 -1
  5. package/dist/{BaseZoomControls-xstFfEqA.js → BaseZoomControls-Xo16vFa4.js} +2 -2
  6. package/dist/{ColorPicker-sZV-tVqO.js → ColorPicker-ZJrR3Olp.js} +2 -2
  7. package/dist/{DataTable-DcDMoMmQ.js → DataTable-COIO9gi4.js} +2 -2
  8. package/dist/{HillActions-BGA3Up35.js → HillActions-Cl-dNBZR.js} +1 -1
  9. package/dist/{Legend-BQxAKh7g.js → Legend-X4kF4PvW.js} +2 -2
  10. package/dist/{NonSvgPenAndPaper-1xl1Xynb.js → NonSvgPenAndPaper-DS84BAOx.js} +12 -12
  11. package/dist/{PackageVersion-DWq6mo_q.js → PackageVersion-5SWftabm.js} +1 -1
  12. package/dist/{PenAndPaper-Co2OSRzH.js → PenAndPaper-B_SdRSKH.js} +12 -12
  13. package/dist/{Shape-26P9pTZH.js → Shape-CIqU-p2F.js} +1 -1
  14. package/dist/{SlicerPreview-CPhQI1vX.js → SlicerPreview-GvsdvE-h.js} +27 -27
  15. package/dist/{SparkTooltip-CQDq9mwg.js → SparkTooltip-C-Y-mDrc.js} +1 -1
  16. package/dist/{Title-BLrnZl5j.js → Title-CPHi-evi.js} +1 -1
  17. package/dist/{Tooltip-CmmM0DtW.js → Tooltip-hhrkQ3Lk.js} +1 -1
  18. package/dist/{UserOptions-pq95M7ss.js → UserOptions-f3Q0nqrj.js} +2 -2
  19. package/dist/components/arrow.js +1 -1
  20. package/dist/components/vue-ui-3d-bar.js +1 -1
  21. package/dist/components/vue-ui-accordion.js +1 -1
  22. package/dist/components/vue-ui-age-pyramid.js +1 -1
  23. package/dist/components/vue-ui-annotator.js +1 -1
  24. package/dist/components/vue-ui-bullet.js +1 -1
  25. package/dist/components/vue-ui-bump.js +1 -1
  26. package/dist/components/vue-ui-candlestick.js +1 -1
  27. package/dist/components/vue-ui-carousel-table.js +1 -1
  28. package/dist/components/vue-ui-chestnut.js +1 -1
  29. package/dist/components/vue-ui-chord.js +1 -1
  30. package/dist/components/vue-ui-circle-pack.js +1 -1
  31. package/dist/components/vue-ui-cursor.js +1 -1
  32. package/dist/components/vue-ui-dag.js +1 -1
  33. package/dist/components/vue-ui-dashboard.js +1 -1
  34. package/dist/components/vue-ui-digits.js +1 -1
  35. package/dist/components/vue-ui-donut-evolution.js +1 -1
  36. package/dist/components/vue-ui-donut.js +1 -1
  37. package/dist/components/vue-ui-dumbbell.js +1 -1
  38. package/dist/components/vue-ui-flow.js +1 -1
  39. package/dist/components/vue-ui-funnel.js +1 -1
  40. package/dist/components/vue-ui-galaxy.js +1 -1
  41. package/dist/components/vue-ui-gauge.js +1 -1
  42. package/dist/components/vue-ui-geo.js +1 -1
  43. package/dist/components/vue-ui-gizmo.js +1 -1
  44. package/dist/components/vue-ui-heatmap.js +1 -1
  45. package/dist/components/vue-ui-hill.js +1 -1
  46. package/dist/components/vue-ui-history-plot.js +1 -1
  47. package/dist/components/vue-ui-horizontal-bar.js +1 -1
  48. package/dist/components/vue-ui-icon.js +1 -1
  49. package/dist/components/vue-ui-kpi.js +1 -1
  50. package/dist/components/vue-ui-label.js +1 -1
  51. package/dist/components/vue-ui-mini-loader.js +1 -1
  52. package/dist/components/vue-ui-molecule.js +1 -1
  53. package/dist/components/vue-ui-mood-radar.js +1 -1
  54. package/dist/components/vue-ui-nested-donuts.js +1 -1
  55. package/dist/components/vue-ui-onion.js +1 -1
  56. package/dist/components/vue-ui-parallel-coordinate-plot.js +1 -1
  57. package/dist/components/vue-ui-quadrant.js +1 -1
  58. package/dist/components/vue-ui-quick-chart.js +1 -1
  59. package/dist/components/vue-ui-radar.js +1 -1
  60. package/dist/components/vue-ui-rating.js +1 -1
  61. package/dist/components/vue-ui-relation-circle.js +1 -1
  62. package/dist/components/vue-ui-ridgeline.js +1 -1
  63. package/dist/components/vue-ui-rings.js +1 -1
  64. package/dist/components/vue-ui-scatter.js +1 -1
  65. package/dist/components/vue-ui-skeleton.js +1 -1
  66. package/dist/components/vue-ui-smiley.js +1 -1
  67. package/dist/components/vue-ui-spark-trend.js +1 -1
  68. package/dist/components/vue-ui-sparkbar.js +1 -1
  69. package/dist/components/vue-ui-sparkgauge.js +1 -1
  70. package/dist/components/vue-ui-sparkhistogram.js +1 -1
  71. package/dist/components/vue-ui-sparkline.js +1 -1
  72. package/dist/components/vue-ui-sparkstackbar.js +1 -1
  73. package/dist/components/vue-ui-stackbar.js +1 -1
  74. package/dist/components/vue-ui-stackline.js +1 -1
  75. package/dist/components/vue-ui-strip-plot.js +1 -1
  76. package/dist/components/vue-ui-table-heatmap.js +1 -1
  77. package/dist/components/vue-ui-table-sparkline.js +1 -1
  78. package/dist/components/vue-ui-table.js +1 -1
  79. package/dist/components/vue-ui-thermometer.js +1 -1
  80. package/dist/components/vue-ui-timer.js +1 -1
  81. package/dist/components/vue-ui-tiremarks.js +1 -1
  82. package/dist/components/vue-ui-treemap.js +1 -1
  83. package/dist/components/vue-ui-vertical-bar.js +1 -1
  84. package/dist/components/vue-ui-waffle.js +1 -1
  85. package/dist/components/vue-ui-wheel.js +1 -1
  86. package/dist/components/vue-ui-word-cloud.js +1 -1
  87. package/dist/components/vue-ui-world.js +1 -1
  88. package/dist/components/vue-ui-xy-canvas.js +1 -1
  89. package/dist/components/vue-ui-xy.js +1 -1
  90. package/dist/{dom-to-png-C2hxsVHU.js → dom-to-png-C6cQJ5Hq.js} +1 -1
  91. package/dist/{exposedLib-CHbGXzAI.js → exposedLib-CG3aXJ-v.js} +9 -9
  92. package/dist/{img-EYBQVkRw.js → img-DhGApYG0.js} +1 -1
  93. package/dist/{labelUtils-Ba5vMXV8.js → labelUtils-BXX2NzRe.js} +1 -1
  94. package/dist/{lib-BPg41jWd.js → lib-Dql7cqyA.js} +202 -168
  95. package/dist/{package-ciWqdXC5.js → package-DmsdiyeS.js} +1 -1
  96. package/dist/{pdf-BoZtb_Ft.js → pdf-Di5yPEw9.js} +1 -1
  97. package/dist/{render-common-BEWzwi32.js → render-common-zoPh9a78.js} +2 -2
  98. package/dist/ssr/vue-ui-donut.js +1 -1
  99. package/dist/ssr/vue-ui-xy.js +1 -1
  100. package/dist/ssr.js +2 -2
  101. package/dist/style.css +1 -1
  102. package/dist/{useNestedProp-fNUUtYXm.js → useNestedProp-Chvyfpl-.js} +1 -1
  103. package/dist/{usePrinter-CsDAx75S.js → usePrinter-DISD7q5m.js} +2 -2
  104. package/dist/utils.js +2 -2
  105. package/dist/{vue-data-ui-BHRh3z_-.js → vue-data-ui-DTj71yB7.js} +70 -70
  106. package/dist/vue-data-ui.js +73 -73
  107. package/dist/vue-ui-3d-bar-CH8SpxS2.js +1829 -0
  108. package/dist/{vue-ui-accordion-BGxpEtfk.js → vue-ui-accordion-D4zsdacF.js} +3 -3
  109. package/dist/{vue-ui-age-pyramid-CYHqR2NK.js → vue-ui-age-pyramid-B9MUVi75.js} +214 -214
  110. package/dist/{vue-ui-annotator-Q5zC15Pp.js → vue-ui-annotator-CmlcWPIm.js} +6 -6
  111. package/dist/vue-ui-bullet-n8KNnDwh.js +700 -0
  112. package/dist/{vue-ui-bump-DkntyN9G.js → vue-ui-bump-BkOtQNWe.js} +54 -54
  113. package/dist/{vue-ui-candlestick-Cz0s9M9a.js → vue-ui-candlestick-Bxlvqk49.js} +450 -446
  114. package/dist/vue-ui-carousel-table-CRgbs7jR.js +467 -0
  115. package/dist/{vue-ui-chestnut-iwScoeK0.js → vue-ui-chestnut-ByDKbkG9.js} +273 -273
  116. package/dist/{vue-ui-chord-Bl_91Sut.js → vue-ui-chord-DQRBgVOx.js} +31 -31
  117. package/dist/{vue-ui-circle-pack-Dm9BU5Kl.js → vue-ui-circle-pack-CBBc0HOe.js} +28 -28
  118. package/dist/{vue-ui-cursor-D_bkWVNS.js → vue-ui-cursor-BHyXRadA.js} +3 -3
  119. package/dist/{vue-ui-dag-CF4YxXqU.js → vue-ui-dag-CyVqaLbF.js} +75 -75
  120. package/dist/{vue-ui-dashboard-Bwhlqoe4.js → vue-ui-dashboard-7I-7wvCP.js} +69 -69
  121. package/dist/{vue-ui-digits-CXM0xSi6.js → vue-ui-digits-BBL8uERO.js} +3 -3
  122. package/dist/{vue-ui-donut-DEn7HF5c.js → vue-ui-donut-DcgUuefk.js} +101 -101
  123. package/dist/vue-ui-donut-DfiocufT.js +2413 -0
  124. package/dist/{vue-ui-donut-evolution-Z7fpl7Zf.js → vue-ui-donut-evolution-BoqO8By2.js} +374 -374
  125. package/dist/{vue-ui-dumbbell-BEFPs0t1.js → vue-ui-dumbbell-7M_oUQdi.js} +137 -137
  126. package/dist/{vue-ui-flow-DAId7lkh.js → vue-ui-flow-CoylrfnO.js} +40 -40
  127. package/dist/vue-ui-funnel-DaBYHWIC.js +747 -0
  128. package/dist/{vue-ui-galaxy-So95hmON.js → vue-ui-galaxy-BIebStQ3.js} +245 -245
  129. package/dist/vue-ui-gauge-CwdTmiRP.js +932 -0
  130. package/dist/{vue-ui-geo-MTJoJ3_A.js → vue-ui-geo-jR4P4pbt.js} +36 -36
  131. package/dist/{vue-ui-gizmo-D9tbjzYe.js → vue-ui-gizmo-D6W86s9o.js} +3 -3
  132. package/dist/{vue-ui-heatmap-DRdQFkV_.js → vue-ui-heatmap-DXYlGwqR.js} +180 -180
  133. package/dist/{vue-ui-hill-CdtIsBTO.js → vue-ui-hill-fFq7pm-g.js} +9 -9
  134. package/dist/vue-ui-history-plot-CgIELoD2.js +1696 -0
  135. package/dist/vue-ui-horizontal-bar-D3Sft4kp.js +1709 -0
  136. package/dist/{vue-ui-kpi-DHDy4LcL.js → vue-ui-kpi-fzLsKlyE.js} +3 -3
  137. package/dist/{vue-ui-label-Bm5iMSie.js → vue-ui-label-BSgLalWD.js} +64 -64
  138. package/dist/{vue-ui-mini-loader-EK0wtL10.js → vue-ui-mini-loader-BL2odRfu.js} +2 -2
  139. package/dist/vue-ui-molecule-DeHWkkhy.js +929 -0
  140. package/dist/{vue-ui-mood-radar-CTiFn6bj.js → vue-ui-mood-radar-bvGx6XgG.js} +201 -201
  141. package/dist/{vue-ui-nested-donuts-DKzeriUP.js → vue-ui-nested-donuts-CeAV2xPk.js} +124 -124
  142. package/dist/{vue-ui-onion-C3ZiE1dn.js → vue-ui-onion-B7oFulsQ.js} +119 -119
  143. package/dist/{vue-ui-parallel-coordinate-plot-D1xAQ_qP.js → vue-ui-parallel-coordinate-plot-B_QJ4N9o.js} +376 -376
  144. package/dist/{vue-ui-quadrant-B82S1-8b.js → vue-ui-quadrant-DrKnz37q.js} +46 -46
  145. package/dist/{vue-ui-quick-chart-BeIZ2KVy.js → vue-ui-quick-chart-BFscCR59.js} +185 -185
  146. package/dist/{vue-ui-radar-Bh7LKVWz.js → vue-ui-radar-Bzx69q8f.js} +311 -311
  147. package/dist/{vue-ui-rating-AbGGnd-1.js → vue-ui-rating-CimC9FQ9.js} +2 -2
  148. package/dist/vue-ui-relation-circle-DIQYyDGb.js +903 -0
  149. package/dist/{vue-ui-ridgeline-BmmcBvtt.js → vue-ui-ridgeline-CPEnM45x.js} +199 -199
  150. package/dist/{vue-ui-rings-Bx3lTcrM.js → vue-ui-rings-qPL5Iwji.js} +327 -327
  151. package/dist/vue-ui-scatter-BB0ClTsU.js +2403 -0
  152. package/dist/{vue-ui-skeleton-GSfVAGm5.js → vue-ui-skeleton-zmbcOVEf.js} +59 -59
  153. package/dist/{vue-ui-smiley-CVQ85iFx.js → vue-ui-smiley-DzPkCMN-.js} +2 -2
  154. package/dist/{vue-ui-spark-trend-BVS__UWD.js → vue-ui-spark-trend-Ciq7-k_q.js} +8 -8
  155. package/dist/{vue-ui-sparkbar-C-xEaUvd.js → vue-ui-sparkbar-D1M7-naP.js} +142 -142
  156. package/dist/{vue-ui-sparkgauge-_XSE8M-e.js → vue-ui-sparkgauge-rsqaeR_n.js} +33 -33
  157. package/dist/{vue-ui-sparkhistogram-DUM6ygCM.js → vue-ui-sparkhistogram-C4WXt2Ni.js} +26 -26
  158. package/dist/{vue-ui-sparkline-Dg9fXwZG.js → vue-ui-sparkline-Dv7XrEzO.js} +253 -253
  159. package/dist/vue-ui-sparkstackbar-DDOXdeV-.js +738 -0
  160. package/dist/vue-ui-stackbar-C_hMnOLb.js +2353 -0
  161. package/dist/vue-ui-stackline-BHGi63lD.js +2467 -0
  162. package/dist/vue-ui-strip-plot-Cygpn-l8.js +1738 -0
  163. package/dist/vue-ui-table-BQna1wL6.js +1352 -0
  164. package/dist/{vue-ui-table-heatmap-DgFFlNnz.js → vue-ui-table-heatmap-Dv_ZKKm3.js} +9 -9
  165. package/dist/{vue-ui-table-sparkline-BsVOuCvB.js → vue-ui-table-sparkline-BCuimtk6.js} +13 -13
  166. package/dist/{vue-ui-thermometer-DOECuI2_.js → vue-ui-thermometer-DytlLJ32.js} +28 -28
  167. package/dist/{vue-ui-timer-B2Cd2bc6.js → vue-ui-timer-CvHP4HoW.js} +5 -5
  168. package/dist/{vue-ui-tiremarks-CrnFAVS8.js → vue-ui-tiremarks-BvjdZwgh.js} +6 -6
  169. package/dist/{vue-ui-treemap-DHZ6BvAc.js → vue-ui-treemap-C5OpqzSc.js} +39 -39
  170. package/dist/vue-ui-waffle-B7T_Zzan.js +1619 -0
  171. package/dist/{vue-ui-wheel-7U-O7-xN.js → vue-ui-wheel-D1B0k7IW.js} +23 -23
  172. package/dist/{vue-ui-word-cloud-CVsvKOiI.js → vue-ui-word-cloud-C4pX6jop.js} +27 -27
  173. package/dist/{vue-ui-world-B9VGieBA.js → vue-ui-world-D0_2upjg.js} +116 -116
  174. package/dist/{vue-ui-xy-chRPjTTj.js → vue-ui-xy-Ck41KYqF.js} +1493 -1489
  175. package/dist/{vue-ui-xy-CNy0avUa.js → vue-ui-xy-D_5FfaH-.js} +423 -422
  176. package/dist/{vue-ui-xy-canvas-B9kzEFnY.js → vue-ui-xy-canvas-B_8Mu19r.js} +77 -77
  177. package/package.json +1 -1
  178. package/dist/vue-ui-3d-bar-DUbSp0so.js +0 -1829
  179. package/dist/vue-ui-bullet-DOF7UCo_.js +0 -700
  180. package/dist/vue-ui-carousel-table-f3ddW3LA.js +0 -467
  181. package/dist/vue-ui-donut-BfehCl28.js +0 -2413
  182. package/dist/vue-ui-funnel-D6Hvhb_C.js +0 -747
  183. package/dist/vue-ui-gauge-Cs96ssGw.js +0 -932
  184. package/dist/vue-ui-history-plot-BaVZe6Fy.js +0 -1696
  185. package/dist/vue-ui-horizontal-bar-DETeVTOn.js +0 -1709
  186. package/dist/vue-ui-molecule-Dt31r51l.js +0 -929
  187. package/dist/vue-ui-relation-circle-4ZeUHCx_.js +0 -903
  188. package/dist/vue-ui-scatter-Vw4JbCjp.js +0 -2403
  189. package/dist/vue-ui-sparkstackbar-8-iyImVK.js +0 -738
  190. package/dist/vue-ui-stackbar-zl-GieBs.js +0 -2349
  191. package/dist/vue-ui-stackline-HcXMSuwS.js +0 -2463
  192. package/dist/vue-ui-strip-plot-B_q_YQiP.js +0 -1738
  193. package/dist/vue-ui-table-CftOhYTO.js +0 -1352
  194. package/dist/vue-ui-waffle-Ca4QSb5z.js +0 -1619
@@ -1,2403 +0,0 @@
1
- import { t as e } from "./rolldown-runtime-Dy4uBu1J.js";
2
- import { $ as t, D as n, Et as r, F as i, Ht as a, It as o, Jt as s, Nt as c, P as l, S as u, St as d, X as f, Xt as p, _ as m, b as h, i as g, lt as _, mt as ee, nt as te, q as ne, qt as re, t as ie, v as ae, vt as oe, w as se } from "./lib-BPg41jWd.js";
3
- import { n as ce, t as le } from "./useHints-Dq_w2E8B.js";
4
- import { t as ue } from "./useConfig-CyCVHo81.js";
5
- import { t as de } from "./usePrinter-CsDAx75S.js";
6
- import { n as fe, t as pe } from "./BaseScanner-DZvpgOjM.js";
7
- import { t as me } from "./useNestedProp-fNUUtYXm.js";
8
- import { t as he } from "./useThemeCheck-C43Tcqmk.js";
9
- import { t as ge } from "./useChartExport-iwOqiIWX.js";
10
- import { t as _e } from "./useTransitions-g_zBREk2.js";
11
- import { t as ve } from "./img-EYBQVkRw.js";
12
- import { n as ye } from "./Title-BLrnZl5j.js";
13
- import { t as be } from "./Shape-26P9pTZH.js";
14
- import { t as xe } from "./_plugin-vue_export-helper-B3ysoDQm.js";
15
- import { l as Se, t as Ce } from "./useResponsive-ZtArZtUf.js";
16
- import { t as we } from "./DefGrad-DVBqDjhO.js";
17
- import { t as Te } from "./BaseLegendToggle-Cvuc-Mrr.js";
18
- import { t as Ee } from "./A11yDataTable-DdRsVULz.js";
19
- import { t as De } from "./useUserOptionState-DK-_1ddE.js";
20
- import { t as Oe } from "./useChartAccessibility-DYqac8yF.js";
21
- import { t as ke } from "./Legend-BQxAKh7g.js";
22
- import { t as Ae } from "./vue_ui_scatter-I0POnicu.js";
23
- import { Fragment as v, Teleport as je, computed as y, createBlock as b, createCommentVNode as x, createElementBlock as S, createElementVNode as C, createSlots as Me, createTextVNode as Ne, createVNode as Pe, defineAsyncComponent as Fe, guardReactiveProps as w, mergeProps as Ie, nextTick as Le, normalizeClass as Re, normalizeProps as T, normalizeStyle as E, onBeforeUnmount as ze, onMounted as Be, openBlock as D, ref as O, renderList as k, renderSlot as A, resolveDynamicComponent as Ve, shallowRef as He, toDisplayString as j, toRefs as Ue, unref as M, watch as We, withCtx as N } from "vue";
24
- //#region src/components/vue-ui-scatter.vue
25
- var Ge = /* @__PURE__ */ e({ default: () => gn }), Ke = ["id"], qe = ["id"], Je = {
26
- key: 0,
27
- class: "sr-only",
28
- "aria-live": "polite",
29
- "aria-atomic": "true"
30
- }, Ye = ["id"], Xe = { style: { position: "relative" } }, Ze = [
31
- "xmlns",
32
- "aria-describedby",
33
- "viewBox"
34
- ], Qe = ["width", "height"], $e = { key: 1 }, et = [
35
- "x1",
36
- "x2",
37
- "y1",
38
- "y2",
39
- "stroke",
40
- "stroke-width"
41
- ], tt = [
42
- "x1",
43
- "x2",
44
- "y1",
45
- "y2",
46
- "stroke",
47
- "stroke-width"
48
- ], nt = { key: 2 }, rt = [
49
- "x1",
50
- "x2",
51
- "y1",
52
- "y2",
53
- "stroke",
54
- "stroke-width"
55
- ], it = ["opacity"], at = [
56
- "stroke",
57
- "stroke-width",
58
- "d"
59
- ], ot = [
60
- "transform",
61
- "font-size",
62
- "fill",
63
- "stroke"
64
- ], st = { key: 4 }, ct = [
65
- "x1",
66
- "x2",
67
- "y1",
68
- "y2",
69
- "stroke",
70
- "stroke-width"
71
- ], lt = ["opacity"], ut = [
72
- "d",
73
- "stroke",
74
- "stroke-width"
75
- ], dt = [
76
- "transform",
77
- "font-size",
78
- "fill",
79
- "stroke"
80
- ], ft = { key: 6 }, pt = [
81
- "x",
82
- "y",
83
- "width",
84
- "height",
85
- "fill",
86
- "stroke",
87
- "stroke-width",
88
- "rx"
89
- ], mt = [
90
- "x",
91
- "y",
92
- "width",
93
- "height",
94
- "onMouseenter"
95
- ], ht = {
96
- key: 2,
97
- style: { "pointer-events": "none" }
98
- }, gt = [
99
- "x",
100
- "y",
101
- "width",
102
- "height",
103
- "fill",
104
- "fill-opacity"
105
- ], _t = [
106
- "x1",
107
- "x2",
108
- "y2",
109
- "stroke",
110
- "stroke-dasharray",
111
- "stroke-width"
112
- ], vt = [
113
- "x1",
114
- "x2",
115
- "y2",
116
- "stroke",
117
- "stroke-dasharray",
118
- "stroke-width"
119
- ], yt = [
120
- "x",
121
- "y",
122
- "height",
123
- "width",
124
- "fill",
125
- "stroke",
126
- "stroke-width",
127
- "rx"
128
- ], bt = [
129
- "x",
130
- "y",
131
- "width",
132
- "height",
133
- "onMouseenter"
134
- ], xt = {
135
- key: 2,
136
- style: { "pointer-events": "none" }
137
- }, St = [
138
- "x",
139
- "y",
140
- "width",
141
- "height",
142
- "fill",
143
- "fill-opacity"
144
- ], Ct = [
145
- "x1",
146
- "x2",
147
- "y1",
148
- "y2",
149
- "stroke",
150
- "stroke-dasharray",
151
- "stroke-width"
152
- ], wt = [
153
- "x1",
154
- "x2",
155
- "y1",
156
- "y2",
157
- "stroke",
158
- "stroke-dasharray",
159
- "stroke-width"
160
- ], Tt = {
161
- key: 0,
162
- style: { "pointer-events": "none" }
163
- }, Et = [
164
- "d",
165
- "stroke",
166
- "stroke-width"
167
- ], Dt = [
168
- "d",
169
- "stroke",
170
- "stroke-width"
171
- ], Ot = [
172
- "d",
173
- "stroke",
174
- "stroke-width"
175
- ], kt = [
176
- "d",
177
- "stroke",
178
- "stroke-width"
179
- ], At = { key: 7 }, jt = [
180
- "points",
181
- "fill",
182
- "stroke-width",
183
- "stroke-dasharray",
184
- "stroke"
185
- ], Mt = {
186
- key: 0,
187
- class: "vue-ui-scatter-datapoint"
188
- }, Nt = [
189
- "cx",
190
- "cy",
191
- "r",
192
- "fill",
193
- "stroke",
194
- "stroke-width",
195
- "onMouseover",
196
- "onMouseleave",
197
- "onClick"
198
- ], Pt = { key: 1 }, Ft = [
199
- "transform",
200
- "font-size",
201
- "fill",
202
- "onMouseover",
203
- "onMouseleave",
204
- "onClick"
205
- ], It = ["clip-path"], Lt = [
206
- "d",
207
- "fill",
208
- "stroke",
209
- "stroke-width",
210
- "stroke-opacity"
211
- ], Rt = {
212
- key: 0,
213
- style: { "pointer-events": "none" }
214
- }, zt = [
215
- "x",
216
- "y",
217
- "width",
218
- "height"
219
- ], Bt = {
220
- key: 0,
221
- style: { "pointer-events": "none !important" }
222
- }, Vt = [
223
- "x1",
224
- "x2",
225
- "y1",
226
- "y2",
227
- "stroke",
228
- "stroke-width",
229
- "stroke-dasharray"
230
- ], Ht = [
231
- "x1",
232
- "x2",
233
- "y1",
234
- "y2",
235
- "stroke",
236
- "stroke-width",
237
- "stroke-dasharray"
238
- ], Ut = [
239
- "x",
240
- "y",
241
- "font-size",
242
- "fill",
243
- "font-weight",
244
- "text-anchor"
245
- ], Wt = [
246
- "x",
247
- "y",
248
- "font-size",
249
- "fill",
250
- "font-weight"
251
- ], Gt = [
252
- "x",
253
- "y",
254
- "font-size",
255
- "fill"
256
- ], Kt = [
257
- "x",
258
- "y",
259
- "font-size",
260
- "fill"
261
- ], qt = [
262
- "cx",
263
- "cy",
264
- "r",
265
- "fill",
266
- "stroke",
267
- "stroke-width"
268
- ], Jt = [
269
- "cx",
270
- "cy",
271
- "r",
272
- "fill",
273
- "stroke",
274
- "stroke-width"
275
- ], Yt = [
276
- "x",
277
- "y",
278
- "font-size",
279
- "fill",
280
- "font-weight",
281
- "text-anchor"
282
- ], Xt = [
283
- "id",
284
- "transform",
285
- "font-size",
286
- "font-weight",
287
- "fill"
288
- ], Zt = [
289
- "font-size",
290
- "fill",
291
- "transform"
292
- ], Qt = [
293
- "transform",
294
- "font-size",
295
- "fill"
296
- ], $t = [
297
- "x",
298
- "y",
299
- "font-size",
300
- "fill"
301
- ], en = [
302
- "x",
303
- "y",
304
- "font-size",
305
- "fill"
306
- ], tn = [
307
- "font-size",
308
- "font-weight",
309
- "fill",
310
- "x",
311
- "y"
312
- ], nn = ["id"], rn = [
313
- "x",
314
- "y",
315
- "width",
316
- "height"
317
- ], an = {
318
- key: 14,
319
- style: { pointerEvents: "none" }
320
- }, on = [
321
- "x1",
322
- "x2",
323
- "y1",
324
- "y2",
325
- "stroke-dasharray",
326
- "stroke",
327
- "stroke-width",
328
- "clip-path"
329
- ], sn = [
330
- "x",
331
- "y",
332
- "fill",
333
- "font-size",
334
- "font-weight"
335
- ], cn = {
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
- }, ln = {
346
- key: 6,
347
- class: "vue-data-ui-watermark"
348
- }, un = ["id"], dn = ["onClick"], fn = {
349
- key: 0,
350
- style: {
351
- width: "100%",
352
- display: "flex",
353
- "align-items": "center",
354
- "justify-content": "center"
355
- }
356
- }, pn = {
357
- viewBox: "0 0 20 20",
358
- height: "20",
359
- width: "20",
360
- style: {
361
- overflow: "hidden",
362
- background: "transparent"
363
- }
364
- }, mn = { key: 0 }, hn = ["innerHTML"], gn = /*#__PURE__*/ xe({
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: xe, emit: Ge }) {
382
- let gn = Fe(() => import("./Tooltip-CmmM0DtW.js")), _n = Fe(() => import("./BaseIcon-Oj70ytWI.js").then((e) => e.n)), vn = Fe(() => import("./vue-ui-accordion-BGxpEtfk.js").then((e) => e.n)), yn = Fe(() => import("./DataTable-DcDMoMmQ.js")), bn = Fe(() => import("./PenAndPaper-Co2OSRzH.js").then((e) => e.t)), xn = Fe(() => import("./UserOptions-pq95M7ss.js").then((e) => e.n)), Sn = Fe(() => import("./PackageVersion-DWq6mo_q.js").then((e) => e.t)), Cn = Fe(() => import("./BaseDraggableDialog-Cwj9aGdF.js").then((e) => e.n)), { vue_ui_scatter: wn } = ue(), { isThemeValid: Tn, warnInvalidTheme: En } = he(), P = e, Dn = Ge, On = y(() => !!P.dataset && P.dataset.length), F = O(ne()), kn = O(!1), An = O(""), jn = O(0), I = O(null), Mn = O(null), Nn = O(null), Pn = O(null), Fn = O(null), In = O(0), Ln = O(0), Rn = O(0), L = O([]), zn = O(!1), Bn = O(null), Vn = O(null), Hn = O(null), Un = O(null), Wn = O(null), Gn = O(null), Kn = O(null), qn = O(null), Jn = O(null), Yn = O(null), Xn = O(null), Zn = O({
383
- x: 0,
384
- y: 0
385
- }), Qn = O("pointer"), $n = O(!1), er = O(null), R = O(dr());
386
- ce({
387
- config: () => R.value,
388
- dataset: () => P.dataset,
389
- component: "VueUiScatter",
390
- rules: [le.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: tr } = _e({
401
- config: () => R.value.transitions,
402
- dataset: () => P.dataset
403
- }), nr = y(() => R.value.userOptions.useCursorPointer);
404
- function rr(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), ee = (e) => _(e, e), te = _(p, f) / ee(f), ne = p.map((e, t) => e - te * f[t]), re = ee(f) / d, ie = ee(ne) / d, ae = Math.sqrt((1 - t * t) * re / ie), oe = f.map((e, n) => t * e + ae * ne[n]), se = f.concat(f.map((e) => -e)), ce = oe.concat(oe.map((e) => -e)), le = (e) => Math.sqrt(ee(e) / e.length), ue = (e, t, n) => {
413
- let r = le(e);
414
- return e.map((e) => n + (r ? e / r * t : 0));
415
- }, de = ue(se, i, r), fe = ue(ce, o, a);
416
- for (let e = de.length - 1; e > 0; --e) {
417
- let t = Math.floor(l() * (e + 1));
418
- [de[e], de[t]] = [de[t], de[e]], [fe[e], fe[t]] = [fe[t], fe[e]];
419
- }
420
- return de.map((e, t) => ({
421
- x: e,
422
- y: fe[t]
423
- }));
424
- }
425
- let ir = y(() => p({
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: R.value.skeletonConfig ?? {}
452
- })), { loading: ar, FINAL_DATASET: or, manualLoading: sr } = fe({
453
- ...Ue(P),
454
- FINAL_CONFIG: R,
455
- prepareConfig: dr,
456
- skeletonDataset: P.config?.skeletonDataset ?? [{
457
- name: "",
458
- color: "#999999",
459
- values: rr(100, .5, { seed: 42 })
460
- }],
461
- skeletonConfig: p({
462
- defaultConfig: R.value,
463
- userConfig: ir.value
464
- })
465
- }), { userOptionsVisible: cr, setUserOptionsVisibility: lr, keepUserOptionState: ur } = De({ config: R.value }), { svgRef: z } = Oe({ config: R.value.style.title });
466
- function dr() {
467
- let e = me({
468
- userConfig: P.config,
469
- defaultConfig: wn
470
- }), t = e.theme;
471
- if (!t) return e;
472
- if (!Tn.value(e)) return En(e), e;
473
- let n = me({
474
- userConfig: Ae[t] || P.config,
475
- defaultConfig: e
476
- }), r = me({
477
- userConfig: P.config,
478
- defaultConfig: n
479
- });
480
- return {
481
- ...r,
482
- customPalette: r.customPalette.length ? r.customPalette : s[t] || o
483
- };
484
- }
485
- We(() => P.config, (e) => {
486
- ar.value || (R.value = dr()), cr.value = !R.value.userOptions.showOnChartHover, hr(), In.value += 1, Ln.value += 1, Rn.value += 1, B.value.showTable = R.value.table.show, B.value.showTooltip = R.value.style.tooltip.show, mr.value && R.value.usePerformanceMode && console.warn("VueUiScatter : You are using performance mode\n\n- downsampling is disabled in this mode, all plots are rendered\n\n- plot significance is not active in this mode (all plots have the same opacity) \n\n- Depending on plot density, shapes might not display a border (stroke) to avoid fuzziness \n\nℹ️ To remove this warning, set config.debug to false.");
487
- }, { deep: !0 }), We(() => P.dataset, (e) => {
488
- Array.isArray(e) && e.length > 0 && (sr.value = !1);
489
- }, { deep: !0 });
490
- let fr = He(null), pr = He(null);
491
- Be(async () => {
492
- hr(), await Le(), zn.value = !0;
493
- });
494
- let mr = y(() => R.value.debug);
495
- function hr() {
496
- if (c(P.dataset) && (te({
497
- componentName: "VueUiScatter",
498
- type: "dataset",
499
- debug: mr.value
500
- }), sr.value = !0), c(P.dataset) || (sr.value = R.value.loading), R.value.responsive) {
501
- let e = Se(() => {
502
- let { width: e, height: t } = Ce({
503
- chart: I.value,
504
- title: R.value.style.title.text ? Mn.value : null,
505
- legend: R.value.style.legend.show ? Nn.value : null,
506
- source: Pn.value,
507
- noTitle: Fn.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 = I.value.parentNode, fr.value.observe(pr.value);
514
- }
515
- }
516
- ze(() => {
517
- fr.value && (pr.value && fr.value.unobserve(pr.value), fr.value.disconnect());
518
- });
519
- let { isPrinting: gr, isImaging: _r, generatePdf: vr, generateImage: yr } = de({
520
- elementId: `vue-ui-scatter_${F.value}`,
521
- fileName: R.value.style.title.text || "vue-ui-scatter",
522
- options: R.value.userOptions.print
523
- }), br = y(() => R.value.userOptions.show && !R.value.style.title.text), xr = y(() => se(R.value.customPalette)), B = O({
524
- showTable: R.value.table.show,
525
- showTooltip: R.value.style.tooltip.show
526
- });
527
- We(R, () => {
528
- B.value = {
529
- showTable: R.value.table.show,
530
- showTooltip: R.value.style.tooltip.show
531
- };
532
- }, { immediate: !0 });
533
- let V = O({
534
- height: R.value.style.layout.height,
535
- width: R.value.style.layout.width
536
- }), Sr = y(() => R.value.style.layout.marginalBars.show ? R.value.style.layout.marginalBars.size + R.value.style.layout.marginalBars.offset : 0);
537
- function Cr() {
538
- let e = 0;
539
- if (R.value.style.layout.dataLabels.yAxis.scales.show && Jn.value) try {
540
- e = Array.from(Jn.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 (Wn.value) try {
549
- t = Wn.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 (Gn.value) try {
558
- let t = Gn.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 (R.value.style.layout.dataLabels.xAxis.scales.show && Yn.value) try {
565
- t = Array.from(Yn.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 = y(() => {
575
- let e = 0, t = 0, n = 0;
576
- if (e = Cr(), t = wr(), qn.value) try {
577
- n = qn.value.getBBox().height + 6;
578
- } catch {
579
- n = 0;
580
- }
581
- return {
582
- top: R.value.style.layout.padding.top + Sr.value + R.value.style.layout.dataLabels.yAxis.fontSize * 2,
583
- right: V.value.width - R.value.style.layout.padding.right - Sr.value - 6 - t,
584
- bottom: V.value.height - R.value.style.layout.padding.bottom - n,
585
- left: R.value.style.layout.padding.left + e,
586
- height: V.value.height - R.value.style.layout.padding.top - R.value.style.layout.padding.bottom - Sr.value - n - R.value.style.layout.dataLabels.yAxis.fontSize * 2,
587
- width: V.value.width - R.value.style.layout.padding.left - R.value.style.layout.padding.right - Sr.value - e - t - 6
588
- };
589
- }), Tr = y(() => {
590
- mr.value && or.value.forEach((e, t) => {
591
- ee({
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
- ee({
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) => !L.value.includes(e.id)).flatMap((e) => e.values.map((e) => e.x))), t = Math.max(...G.value.filter((e) => !L.value.includes(e.id)).flatMap((e) => e.values.map((e) => e.x))), n = Math.min(...G.value.filter((e) => !L.value.includes(e.id)).flatMap((e) => e.values.map((e) => e.y))), r = Math.max(...G.value.filter((e) => !L.value.includes(e.id)).flatMap((e) => e.values.map((e) => e.y)));
616
- return {
617
- xMin: e < 0 ? e : 0,
618
- xMax: t,
619
- yMin: n < 0 ? n : 0,
620
- yMax: r
621
- };
622
- }), Er = y(() => {
623
- let e = R.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 ? m : ae)(e, n, i);
642
- }
643
- return (r ? m : ae)(e, t, i);
644
- }
645
- let Ar = y(() => {
646
- let e = R.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 = y(() => {
654
- let e = R.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 = y(() => ({
662
- xMin: Ar.value.min,
663
- xMax: Ar.value.max,
664
- yMin: jr.value.min,
665
- yMax: jr.value.max
666
- })), Mr = y(() => {
667
- let e = R.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: g(t.formatter, h(n), f({
672
- p: R.value.style.layout.plots.selectors.labels.prefix,
673
- v: h(n),
674
- s: R.value.style.layout.plots.selectors.labels.suffix,
675
- r: Or(e)
676
- }))
677
- }));
678
- }), Nr = y(() => {
679
- let e = R.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: g(t.formatter, h(n), f({
684
- p: R.value.style.layout.plots.selectors.labels.prefix,
685
- v: h(n),
686
- s: R.value.style.layout.plots.selectors.labels.suffix,
687
- r: Or(e)
688
- }))
689
- }));
690
- }), Pr = y(() => Xr.value.length > 0 && R.value.style.layout.dataLabels.xAxis.scales.show), Fr = y(() => Xr.value.length > 0 && R.value.style.layout.dataLabels.yAxis.scales.show);
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 = y(() => {
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 = y(() => or.value.map((e, t) => {
706
- let n = `cluster_${F.value}_${t}`;
707
- return {
708
- ...e,
709
- values: r({
710
- data: e.values,
711
- threshold: R.value.usePerformanceMode ? e.values.length + 1 : R.value.downsample.threshold
712
- }),
713
- id: n,
714
- color: e.color ? e.color : xr.value[t] || o[t] || o[t % o.length],
715
- opacity: L.value.includes(n) ? .5 : 1,
716
- shape: e.shape ?? "circle",
717
- segregate: () => ri(n),
718
- isSegregated: L.value.includes(n),
719
- hasGroupSelection: !!Gr.value,
720
- isGroupSelected: Gr.value === n,
721
- onEnter: () => qr(n),
722
- onLeave: () => Jr()
723
- };
724
- })), Rr = y(() => ({
725
- cy: "scatter-div-legend",
726
- backgroundColor: R.value.style.legend.backgroundColor,
727
- color: R.value.style.legend.color,
728
- fontSize: R.value.style.legend.fontSize,
729
- paddingBottom: 12,
730
- fontWeight: R.value.style.legend.bold ? "bold" : ""
731
- })), zr = y(() => 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] || o[t] || o[t % o.length],
743
- id: `plot_${F.value}_${t}_${r}`,
744
- weight: n.weight ?? R.value.style.layout.plots.radius
745
- }))
746
- })).filter((e) => !L.value.includes(e.id))), K = y(() => {
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 ee = {
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: ee,
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 = y(() => 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 = y(() => R.value.style.layout.marginalBars.tranches), J = y(() => Hr(zr.value, q.value)), Ur = y(() => {
868
- let e = H.value.top - R.value.style.layout.marginalBars.offset, t = H.value.right + R.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: l(r.avgX.map((t, n) => ({
874
- x: t,
875
- y: e - r.x[n] / r.maxX * R.value.style.layout.marginalBars.size
876
- }))),
877
- dY: i(r.avgY.map((e, n) => ({
878
- y: e,
879
- x: t + R.value.style.layout.marginalBars.size * r.y[n] / r.maxY
880
- }))),
881
- color: n.color,
882
- id: n.id
883
- };
884
- });
885
- }), Y = O(void 0), X = O(null), Z = O([]), Wr = O(null), Gr = O(void 0);
886
- function Kr() {
887
- kn.value = !1, Y.value = void 0, Z.value = [], X.value = null, er.value = null, Xn.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 (!z.value || !e) return;
902
- let t = re(e.x, e.y, z.value);
903
- t && (Zn.value = t);
904
- }
905
- let Xr = y(() => 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 = R.value.style.layout.dataLabels.xAxis, n = t.scales.labels;
908
- return g(n.formatter, h(e.v.x), f({
909
- p: R.value.style.layout.plots.selectors.labels.prefix,
910
- v: h(e.v.x),
911
- s: R.value.style.layout.plots.selectors.labels.suffix,
912
- r: Or(t)
913
- }), { datapoint: e });
914
- }
915
- function Qr(e) {
916
- let t = R.value.style.layout.dataLabels.yAxis, n = t.scales.labels;
917
- return g(n.formatter, h(e.v.y), f({
918
- p: R.value.style.layout.plots.selectors.labels.prefix,
919
- v: h(e.v.y),
920
- s: R.value.style.layout.plots.selectors.labels.suffix,
921
- r: Or(t)
922
- }), { datapoint: e });
923
- }
924
- function $r(e, t, n = "pointer", r = null) {
925
- Y.value = e.id, X.value = e, Qn.value = n, er.value = r, Xn.value = e.id;
926
- let i = "";
927
- R.value.events.datapointEnter && R.value.events.datapointEnter({
928
- datapoint: e,
929
- seriesIndex: t
930
- }), Wr.value = {
931
- datapoint: e,
932
- seriesIndex: t,
933
- series: K.value,
934
- config: R.value
935
- };
936
- let a = R.value.style.tooltip.customFormat;
937
- d(a) && _(() => a({
938
- datapoint: e,
939
- seriesIndex: t,
940
- series: K.value,
941
- config: R.value
942
- })) ? An.value = a({
943
- datapoint: e,
944
- seriesIndex: t,
945
- series: K.value,
946
- config: R.value
947
- }) : (e.clusterName && (i += `<div style="display:flex;gap:3px;align-items:center">${e.clusterName}</div>`), e.v.name && (i += `<div>${e.v.name}</div>`), i += `<div style="text-align:left;margin-top:6px;padding-top:6px;border-top:1px solid ${R.value.style.tooltip.borderColor}">`, i += `<div>${R.value.style.layout.dataLabels.xAxis.name}: <b>${isNaN(e.v.x) ? "-" : g(R.value.style.layout.plots.selectors.labels.x.formatter, e.v.x, f({
948
- p: R.value.style.tooltip.prefix,
949
- v: e.v.x,
950
- s: R.value.style.tooltip.suffix,
951
- r: R.value.style.tooltip.roundingValue
952
- }), {
953
- datapoint: e,
954
- seriesIndex: t
955
- })}</b></div>`, i += `<div>${R.value.style.layout.dataLabels.yAxis.name}: <b>${isNaN(e.v.y) ? "-" : g(R.value.style.layout.plots.selectors.labels.y.formatter, e.v.y, f({
956
- p: R.value.style.tooltip.prefix,
957
- v: e.v.y,
958
- s: R.value.style.tooltip.suffix,
959
- r: R.value.style.tooltip.roundingValue
960
- }), {
961
- datapoint: e,
962
- seriesIndex: t
963
- })}</b></div>`, i += `${R.value.style.layout.plots.deviation.translation}: <b>${f({
964
- v: e.deviation,
965
- r: R.value.style.layout.plots.deviation.roundingValue
966
- })}</b>`, i += "</div>", An.value = `<div>${i}</div>`), kn.value = !0, n === "keyboard" && Le(() => {
967
- Yr(e);
968
- });
969
- }
970
- function ei(e, t) {
971
- R.value.events.datapointLeave && R.value.events.datapointLeave({
972
- datapoint: e,
973
- seriesIndex: t
974
- }), (Qn.value !== "keyboard" || Xn.value !== e?.id) && (kn.value = !1, Y.value = void 0, X.value = null);
975
- }
976
- function ti(e, t) {
977
- R.value.events.datapointClick && R.value.events.datapointClick({
978
- datapoint: e,
979
- seriesIndex: t
980
- });
981
- }
982
- function ni() {
983
- L.value.length ? L.value = [] : G.value.forEach((e) => {
984
- L.value.push(e.id);
985
- }), Dn("selectLegend", zr.value);
986
- }
987
- function ri(e) {
988
- L.value.includes(e) ? L.value = L.value.filter((t) => t !== e) : L.value.length < or.value.length - 1 && L.value.push(e), Dn("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 && L.value.includes(t.id) && ri(t.id);
996
- }
997
- function oi(e) {
998
- let t = ii(e);
999
- t !== null && (L.value.includes(t.id) || ri(t.id));
1000
- }
1001
- function si(e = null) {
1002
- Le(() => {
1003
- let r = [
1004
- "",
1005
- R.value.table.translations.correlationCoefficient,
1006
- R.value.table.translations.nbrPlots,
1007
- `${R.value.style.layout.dataLabels.xAxis.name} ${R.value.table.translations.average}`,
1008
- `${R.value.style.layout.dataLabels.yAxis.name} ${R.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
- [R.value.style.title.text],
1017
- [R.value.style.title.subtitle.text],
1018
- [
1019
- [""],
1020
- [""],
1021
- [""]
1022
- ],
1023
- r
1024
- ].concat(i), o = n(a);
1025
- e ? e(o) : t({
1026
- csvContent: o,
1027
- title: R.value.style.title.text || "vue-ui-heatmap"
1028
- });
1029
- });
1030
- }
1031
- let ci = y(() => {
1032
- let e = [
1033
- R.value.table.translations.series,
1034
- R.value.table.translations.correlationCoefficient,
1035
- R.value.table.translations.nbrPlots,
1036
- `${R.value.style.layout.dataLabels.xAxis.name} ${R.value.table.translations.average}`,
1037
- `${R.value.style.layout.dataLabels.yAxis.name} ${R.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(R.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(R.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(R.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: R.value.table.th.backgroundColor,
1056
- color: R.value.table.th.color,
1057
- outline: R.value.table.th.outline
1058
- },
1059
- td: {
1060
- backgroundColor: R.value.table.td.backgroundColor,
1061
- color: R.value.table.td.color,
1062
- outline: R.value.table.td.outline
1063
- },
1064
- breakpoint: R.value.table.responsiveBreakpoint
1065
- },
1066
- colNames: e
1067
- };
1068
- }), li = O(!1);
1069
- function ui(e) {
1070
- li.value = e, jn.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 = O(!1);
1079
- function mi() {
1080
- pi.value = !pi.value;
1081
- }
1082
- async function hi({ scale: e = 2 } = {}) {
1083
- if (!I.value) return;
1084
- let { width: t, height: n } = I.value.getBoundingClientRect(), r = t / n, { imageUri: i, base64: a } = await ve({
1085
- domElement: I.value,
1086
- base64: !0,
1087
- img: !0,
1088
- scale: e
1089
- });
1090
- return {
1091
- imageUri: i,
1092
- base64: a,
1093
- title: R.value.style.title.text,
1094
- width: t,
1095
- height: n,
1096
- aspectRatio: r
1097
- };
1098
- }
1099
- function gi(e) {
1100
- Bn.value = e, R.value.style.layout.marginalBars.highlighter.highlightBothAxes && (Vn.value = J.value.y.length - 2 - e);
1101
- }
1102
- function _i(e) {
1103
- Vn.value = e, R.value.style.layout.marginalBars.highlighter.highlightBothAxes && (Bn.value = e);
1104
- }
1105
- function vi() {
1106
- Bn.value = null, Vn.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 (!R.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 = y(() => {
1174
- if (!R.value.usePerformanceMode) return [""];
1175
- let { left: e, right: t, top: n, bottom: r } = H.value, i = Math.max(1, (t - e) * (r - n)), o = (e) => e / i * 1e4, s = R.value.style.layout.plots.stroke, c = R.value.style.layout.plots.strokeWidth, l = R.value.style.layout.plots.opacity;
1176
- return K.value.map((i) => {
1177
- let u = [];
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(R.value.style.layout.plots.radius, a.weight);
1182
- u.push(bi({
1183
- shape: i.shape || "circle",
1184
- cx: o,
1185
- cy: s,
1186
- r: c
1187
- }));
1188
- }
1189
- if (!u.length) return null;
1190
- let d = o(i.plots.length) > 2.5 || i.plots.length > 1e3;
1191
- return {
1192
- id: i.id,
1193
- d: u.join(""),
1194
- fill: a(i.color, l * 100),
1195
- stroke: d ? "none" : s,
1196
- strokeWidth: d ? 0 : c,
1197
- strokeOpacity: 1
1198
- };
1199
- }).filter(Boolean);
1200
- });
1201
- function Si() {
1202
- return R.value.usePerformanceMode ? (e) => {
1203
- let t = z.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 = y(() => {
1237
- let e = R.value.table.useDialog && !R.value.table.show, t = B.value.showTable;
1238
- return {
1239
- component: e ? Cn : vn,
1240
- title: `${R.value.style.title.text}${R.value.style.title.subtitle.text ? `: ${R.value.style.title.subtitle.text}` : ""}`,
1241
- props: e ? {
1242
- backgroundColor: R.value.table.th.backgroundColor,
1243
- color: R.value.table.th.color,
1244
- headerColor: R.value.table.th.color,
1245
- headerBg: R.value.table.th.backgroundColor,
1246
- isFullscreen: li.value,
1247
- fullscreenParent: I.value,
1248
- forcedWidth: Math.min(800, window.innerWidth * .8),
1249
- isCursorPointer: nr.value
1250
- } : {
1251
- hideDetails: !0,
1252
- config: {
1253
- open: t,
1254
- maxHeight: 1e4,
1255
- body: {
1256
- backgroundColor: R.value.style.backgroundColor,
1257
- color: R.value.style.color
1258
- },
1259
- head: {
1260
- backgroundColor: R.value.style.backgroundColor,
1261
- color: R.value.style.color
1262
- }
1263
- }
1264
- }
1265
- };
1266
- });
1267
- We(() => B.value.showTable, (e) => {
1268
- R.value.table.show || (e && R.value.table.useDialog && Hn.value ? Hn.value.open() : "close" in Hn.value && Hn.value.close());
1269
- });
1270
- function Di() {
1271
- B.value.showTable = !1, Un.value && Un.value.setTableIconState(!1);
1272
- }
1273
- let Oi = y(() => R.value.style.backgroundColor), ki = y(() => R.value.style.legend), Ai = y(() => R.value.style.title), { isCallbackImaging: ji, isCallbackSvg: Mi, generateSvg: Ni, onGenerateImage: Pi } = ge({
1274
- svg: z,
1275
- title: Ai,
1276
- legend: ki,
1277
- legendItems: G,
1278
- backgroundColor: Oi,
1279
- getSvgCallback: () => R.value.userOptions.callbacks.svg,
1280
- generateImage: yr
1281
- });
1282
- async function Fi() {
1283
- if (Dn("copyAlt", {
1284
- config: R.value,
1285
- dataset: zr.value
1286
- }), !R.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(R.value.userOptions.callbacks.altCopy({
1291
- config: R.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
- er.value = null, Xn.value = null, $n.value = !0;
1334
- }
1335
- function Ri() {
1336
- Kr(), Qn.value = "pointer", $n.value = !1;
1337
- }
1338
- function zi(e) {
1339
- if (!z.value || pi.value || document.activeElement !== z.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(), Qn.value = "pointer";
1344
- return;
1345
- }
1346
- if (a) {
1347
- if (er.value === null) return;
1348
- let e = Vi.value[er.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"), Xn.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(Xn.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 = y(() => {
1385
- if (!X.value) return "";
1386
- let e = X.value, t = isNaN(e.v.x) ? "-" : g(R.value.style.layout.plots.selectors.labels.x.formatter, e.v.x, f({
1387
- p: R.value.style.tooltip.prefix,
1388
- v: e.v.x,
1389
- s: R.value.style.tooltip.suffix,
1390
- r: R.value.style.tooltip.roundingValue
1391
- }), {
1392
- datapoint: e,
1393
- seriesIndex: e.seriesIndex
1394
- }), n = isNaN(e.v.y) ? "-" : g(R.value.style.layout.plots.selectors.labels.y.formatter, e.v.y, f({
1395
- p: R.value.style.tooltip.prefix,
1396
- v: e.v.y,
1397
- s: R.value.style.tooltip.suffix,
1398
- r: R.value.style.tooltip.roundingValue
1399
- }), {
1400
- datapoint: e,
1401
- seriesIndex: e.seriesIndex
1402
- });
1403
- return [
1404
- e.clusterName || "",
1405
- e.v.name || "",
1406
- `${R.value.style.layout.dataLabels.xAxis.name}: ${t}`,
1407
- `${R.value.style.layout.dataLabels.yAxis.name}: ${n}`
1408
- ].filter(Boolean).join(". ");
1409
- }), Vi = y(() => 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
- })))), $ = y(() => {
1417
- let e = /* @__PURE__ */ new Map();
1418
- return Vi.value.forEach((t, n) => {
1419
- e.set(t.id, n);
1420
- }), e;
1421
- }), Hi = y(() => ({
1422
- headers: ci.value?.colNames ?? [],
1423
- rows: ci.value?.a11yBody ?? []
1424
- }));
1425
- return xe({
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) => (D(), S("div", {
1440
- class: Re(`vue-data-ui-component vue-ui-scatter ${li.value ? "vue-data-ui-wrapper-fullscreen" : ""} ${R.value.useCssAnimation ? "" : "vue-ui-dna"}`),
1441
- ref_key: "scatterChart",
1442
- ref: I,
1443
- id: `vue-ui-scatter_${F.value}`,
1444
- style: E(`font-family:${R.value.style.fontFamily};width:100%; text-align:center;background:${R.value.style.backgroundColor};${R.value.responsive ? "height: 100%" : ""}`),
1445
- onMouseenter: t[5] ||= () => M(lr)(!0),
1446
- onMouseleave: t[6] ||= () => {
1447
- M(lr)(!1), $n.value || Kr();
1448
- }
1449
- }, [
1450
- C("div", {
1451
- id: `chart-instructions-${F.value}`,
1452
- class: "sr-only"
1453
- }, [C("p", null, j(R.value.a11y.translations.keyboardNavigation), 1)], 8, qe),
1454
- B.value.showTooltip ? x("", !0) : (D(), S("div", Je, j(Bi.value), 1)),
1455
- Hi.value?.rows?.length && On.value ? (D(), b(Ee, {
1456
- key: 1,
1457
- uid: F.value,
1458
- head: Hi.value.headers,
1459
- body: Hi.value.rows,
1460
- notice: R.value.a11y.translations.tableAvailable,
1461
- caption: R.value.a11y.translations.tableCaption
1462
- }, null, 8, [
1463
- "uid",
1464
- "head",
1465
- "body",
1466
- "notice",
1467
- "caption"
1468
- ])) : x("", !0),
1469
- R.value.userOptions.buttons.annotator ? (D(), b(M(bn), {
1470
- key: 2,
1471
- svgRef: M(z),
1472
- backgroundColor: R.value.style.backgroundColor,
1473
- color: R.value.style.color,
1474
- active: pi.value,
1475
- isCursorPointer: nr.value,
1476
- onClose: mi
1477
- }, {
1478
- "annotator-action-close": N(() => [A(e.$slots, "annotator-action-close", {}, void 0, !0)]),
1479
- "annotator-action-color": N(({ color: t }) => [A(e.$slots, "annotator-action-color", T(w({ color: t })), void 0, !0)]),
1480
- "annotator-action-draw": N(({ mode: t }) => [A(e.$slots, "annotator-action-draw", T(w({ mode: t })), void 0, !0)]),
1481
- "annotator-action-undo": N(({ disabled: t }) => [A(e.$slots, "annotator-action-undo", T(w({ disabled: t })), void 0, !0)]),
1482
- "annotator-action-redo": N(({ disabled: t }) => [A(e.$slots, "annotator-action-redo", T(w({ disabled: t })), void 0, !0)]),
1483
- "annotator-action-delete": N(({ disabled: t }) => [A(e.$slots, "annotator-action-delete", T(w({ disabled: t })), void 0, !0)]),
1484
- _: 3
1485
- }, 8, [
1486
- "svgRef",
1487
- "backgroundColor",
1488
- "color",
1489
- "active",
1490
- "isCursorPointer"
1491
- ])) : x("", !0),
1492
- br.value ? (D(), S("div", {
1493
- key: 3,
1494
- ref_key: "noTitle",
1495
- ref: Fn,
1496
- class: "vue-data-ui-no-title-space",
1497
- style: "height:36px; width: 100%;background:transparent"
1498
- }, null, 512)) : x("", !0),
1499
- R.value.style.title.text ? (D(), S("div", {
1500
- key: 4,
1501
- ref_key: "chartTitle",
1502
- ref: Mn,
1503
- style: "width:100%;background:transparent"
1504
- }, [(D(), b(ye, {
1505
- key: `title_${In.value}`,
1506
- config: {
1507
- title: {
1508
- cy: "scatter-div-title",
1509
- ...R.value.style.title
1510
- },
1511
- subtitle: {
1512
- cy: "scatter-div-subtitle",
1513
- ...R.value.style.title.subtitle
1514
- }
1515
- }
1516
- }, null, 8, ["config"]))], 512)) : x("", !0),
1517
- C("div", { id: `legend-top-${F.value}` }, null, 8, Ye),
1518
- R.value.userOptions.show && On.value && (M(ur) || M(cr)) ? (D(), b(M(xn), {
1519
- ref_key: "userOptionsRef",
1520
- ref: Un,
1521
- key: `user_options_${jn.value}`,
1522
- backgroundColor: R.value.style.backgroundColor,
1523
- color: R.value.style.color,
1524
- isImaging: M(_r),
1525
- isPrinting: M(gr),
1526
- uid: F.value,
1527
- hasTooltip: R.value.userOptions.buttons.tooltip && R.value.style.tooltip.show,
1528
- hasPdf: R.value.userOptions.buttons.pdf,
1529
- hasImg: R.value.userOptions.buttons.img,
1530
- hasSvg: R.value.userOptions.buttons.svg,
1531
- hasXls: R.value.userOptions.buttons.csv,
1532
- hasTable: R.value.userOptions.buttons.table,
1533
- hasFullscreen: R.value.userOptions.buttons.fullscreen,
1534
- hasAltCopy: R.value.userOptions.buttons.altCopy,
1535
- isTooltip: B.value.showTooltip,
1536
- isFullscreen: li.value,
1537
- titles: { ...R.value.userOptions.buttonTitles },
1538
- chartElement: I.value,
1539
- position: R.value.userOptions.position,
1540
- hasAnnotator: R.value.userOptions.buttons.annotator,
1541
- isAnnotation: pi.value,
1542
- callbacks: R.value.userOptions.callbacks,
1543
- printScale: R.value.userOptions.print.scale,
1544
- tableDialog: R.value.table.useDialog,
1545
- isCursorPointer: nr.value,
1546
- onToggleFullscreen: ui,
1547
- onGeneratePdf: M(vr),
1548
- onGenerateCsv: si,
1549
- onGenerateImage: M(Pi),
1550
- onGenerateSvg: M(Ni),
1551
- onToggleTable: di,
1552
- onToggleTooltip: fi,
1553
- onToggleAnnotator: mi,
1554
- onCopyAlt: Fi,
1555
- style: E({ visibility: M(ur) ? M(cr) ? "visible" : "hidden" : "visible" })
1556
- }, Me({ _: 2 }, [
1557
- e.$slots.menuIcon ? {
1558
- name: "menuIcon",
1559
- fn: N(({ isOpen: t, color: n }) => [A(e.$slots, "menuIcon", T(w({
1560
- isOpen: t,
1561
- color: n
1562
- })), void 0, !0)]),
1563
- key: "0"
1564
- } : void 0,
1565
- e.$slots.optionTooltip ? {
1566
- name: "optionTooltip",
1567
- fn: N(() => [A(e.$slots, "optionTooltip", {}, void 0, !0)]),
1568
- key: "1"
1569
- } : void 0,
1570
- e.$slots.optionPdf ? {
1571
- name: "optionPdf",
1572
- fn: N(() => [A(e.$slots, "optionPdf", {}, void 0, !0)]),
1573
- key: "2"
1574
- } : void 0,
1575
- e.$slots.optionCsv ? {
1576
- name: "optionCsv",
1577
- fn: N(() => [A(e.$slots, "optionCsv", {}, void 0, !0)]),
1578
- key: "3"
1579
- } : void 0,
1580
- e.$slots.optionImg ? {
1581
- name: "optionImg",
1582
- fn: N(() => [A(e.$slots, "optionImg", {}, void 0, !0)]),
1583
- key: "4"
1584
- } : void 0,
1585
- e.$slots.optionSvg ? {
1586
- name: "optionSvg",
1587
- fn: N(() => [A(e.$slots, "optionSvg", {}, void 0, !0)]),
1588
- key: "5"
1589
- } : void 0,
1590
- e.$slots.optionTable ? {
1591
- name: "optionTable",
1592
- fn: N(() => [A(e.$slots, "optionTable", {}, void 0, !0)]),
1593
- key: "6"
1594
- } : void 0,
1595
- e.$slots.optionFullscreen ? {
1596
- name: "optionFullscreen",
1597
- fn: N(({ toggleFullscreen: t, isFullscreen: n }) => [A(e.$slots, "optionFullscreen", T(w({
1598
- toggleFullscreen: t,
1599
- isFullscreen: n
1600
- })), void 0, !0)]),
1601
- key: "7"
1602
- } : void 0,
1603
- e.$slots.optionAnnotator ? {
1604
- name: "optionAnnotator",
1605
- fn: N(({ toggleAnnotator: t, isAnnotator: n }) => [A(e.$slots, "optionAnnotator", T(w({
1606
- toggleAnnotator: t,
1607
- isAnnotator: n
1608
- })), void 0, !0)]),
1609
- key: "8"
1610
- } : void 0,
1611
- e.$slots.optionAltCopy ? {
1612
- name: "optionAltCopy",
1613
- fn: N(({ altCopy: t }) => [A(e.$slots, "optionAltCopy", T(w({ altCopy: t })), void 0, !0)]),
1614
- key: "9"
1615
- } : void 0,
1616
- e.$slots["custom-menu-before"] ? {
1617
- name: "custom-menu-before",
1618
- fn: N(() => [A(e.$slots, "custom-menu-before", {}, void 0, !0)]),
1619
- key: "10"
1620
- } : void 0,
1621
- e.$slots["custom-menu-after"] ? {
1622
- name: "custom-menu-after",
1623
- fn: N(() => [A(e.$slots, "custom-menu-after", {}, void 0, !0)]),
1624
- key: "11"
1625
- } : void 0
1626
- ]), 1032, /* @__PURE__ */ "backgroundColor.color.isImaging.isPrinting.uid.hasTooltip.hasPdf.hasImg.hasSvg.hasXls.hasTable.hasFullscreen.hasAltCopy.isTooltip.isFullscreen.titles.chartElement.position.hasAnnotator.isAnnotation.callbacks.printScale.tableDialog.isCursorPointer.onGeneratePdf.onGenerateImage.onGenerateSvg.style".split("."))) : x("", !0),
1627
- C("div", Xe, [(D(), S("svg", {
1628
- ref_key: "svgRef",
1629
- ref: z,
1630
- xmlns: M(ie),
1631
- "aria-describedby": `chart-instructions-${F.value}`,
1632
- class: Re({
1633
- "vue-data-ui-fullscreen--on": li.value,
1634
- "vue-data-ui-fulscreen--off": !li.value,
1635
- "vue-data-ui-no-transition": !M(tr)
1636
- }),
1637
- viewBox: `0 0 ${V.value.width <= 0 ? 10 : V.value.width} ${V.value.height <= 0 ? 10 : V.value.height}`,
1638
- style: E(`max-width:100%;overflow:visible;background:transparent;color:${R.value.style.color}`),
1639
- onMouseleave: vi,
1640
- tabindex: "0",
1641
- onFocus: Li,
1642
- onBlur: Ri,
1643
- onKeydown: zi
1644
- }, [
1645
- Pe(M(Sn)),
1646
- e.$slots["chart-background"] ? (D(), S("foreignObject", {
1647
- key: 0,
1648
- x: 0,
1649
- y: 0,
1650
- width: V.value.width <= 0 ? 10 : V.value.width,
1651
- height: V.value.height <= 0 ? 10 : V.value.height,
1652
- style: { pointerEvents: "none" }
1653
- }, [A(e.$slots, "chart-background", {}, void 0, !0)], 8, Qe)) : x("", !0),
1654
- R.value.style.layout.axis.show ? (D(), S("g", $e, [C("line", {
1655
- x1: W.value.x,
1656
- x2: W.value.x,
1657
- y1: H.value.top,
1658
- y2: H.value.bottom,
1659
- stroke: R.value.style.layout.axis.stroke,
1660
- "stroke-width": R.value.style.layout.axis.strokeWidth,
1661
- "stroke-linecap": "round"
1662
- }, null, 8, et), C("line", {
1663
- x1: H.value.left,
1664
- x2: H.value.right,
1665
- y1: W.value.y,
1666
- y2: W.value.y,
1667
- stroke: R.value.style.layout.axis.stroke,
1668
- "stroke-width": R.value.style.layout.axis.strokeWidth,
1669
- "stroke-linecap": "round"
1670
- }, null, 8, tt)])) : x("", !0),
1671
- R.value.style.layout.dataLabels.xAxis.scales.verticalLines.show ? (D(), S("g", nt, [(D(!0), S(v, null, k(Mr.value, (e, t) => (D(), S("line", {
1672
- key: `scatter-x-scale-line-${F.value}-${t}`,
1673
- x1: e.x,
1674
- x2: e.x,
1675
- y1: H.value.top,
1676
- y2: H.value.bottom,
1677
- stroke: R.value.style.layout.dataLabels.xAxis.scales.verticalLines.stroke,
1678
- "stroke-width": R.value.style.layout.dataLabels.xAxis.scales.verticalLines.strokeWidth,
1679
- "stroke-linecap": "round"
1680
- }, null, 8, rt))), 128))])) : x("", !0),
1681
- R.value.style.layout.dataLabels.xAxis.scales.show ? (D(), S("g", {
1682
- key: 3,
1683
- ref_key: "xAxisScaleLabels",
1684
- ref: Yn
1685
- }, [(D(!0), S(v, null, k(Mr.value, (e, t) => (D(), S("g", {
1686
- class: "vue-ui-scatter-scale-group",
1687
- key: `scatter-x-scale-${F.value}-${t}`,
1688
- opacity: +!Pr.value
1689
- }, [C("path", {
1690
- class: Re({ "vue-data-ui-transition": M(tr) }),
1691
- stroke: R.value.style.layout.axis.stroke,
1692
- "stroke-width": R.value.style.layout.axis.strokeWidth,
1693
- d: `M${e.x},${W.value.y - 4} ${e.x},${W.value.y + 4}`,
1694
- "stroke-linecap": "round"
1695
- }, null, 10, at), C("text", {
1696
- class: Re({ "vue-data-ui-transition": M(tr) }),
1697
- transform: `translate(${e.x}, ${W.value.y + R.value.style.layout.dataLabels.xAxis.scales.labels.fontSize + 6 + R.value.style.layout.dataLabels.xAxis.scales.labels.offsetY})`,
1698
- "text-anchor": "middle",
1699
- "font-size": R.value.style.layout.dataLabels.xAxis.scales.labels.fontSize,
1700
- fill: R.value.style.layout.dataLabels.xAxis.scales.labels.color,
1701
- stroke: R.value.style.backgroundColor,
1702
- "stroke-width": "2",
1703
- "paint-order": "stroke"
1704
- }, j(e.label), 11, ot)], 8, it))), 128))], 512)) : x("", !0),
1705
- R.value.style.layout.dataLabels.yAxis.scales.horizontalLines.show ? (D(), S("g", st, [(D(!0), S(v, null, k(Nr.value, (e, t) => (D(), S("line", {
1706
- key: `scatter-y-scale-line-${F.value}-${t}`,
1707
- x1: H.value.left,
1708
- x2: H.value.right,
1709
- y1: e.y,
1710
- y2: e.y,
1711
- stroke: R.value.style.layout.dataLabels.yAxis.scales.horizontalLines.stroke,
1712
- "stroke-width": R.value.style.layout.dataLabels.yAxis.scales.horizontalLines.strokeWidth,
1713
- "stroke-linecap": "round"
1714
- }, null, 8, ct))), 128))])) : x("", !0),
1715
- R.value.style.layout.dataLabels.yAxis.scales.show ? (D(), S("g", {
1716
- key: 5,
1717
- ref_key: "yAxisScaleLabels",
1718
- ref: Jn,
1719
- opacity: +!Fr.value,
1720
- style: { transition: "opacity 0.1s ease-in-out" },
1721
- class: "vue-ui-scatter-scale-group"
1722
- }, [(D(!0), S(v, null, k(Nr.value, (e, t) => (D(), S("g", { key: `scatter-y-scale-${F.value}-${t}` }, [C("path", {
1723
- class: Re({ "vue-data-ui-transition": M(tr) }),
1724
- d: `M${W.value.x - 4},${e.y} ${W.value.x + 4},${e.y}`,
1725
- stroke: R.value.style.layout.axis.stroke,
1726
- "stroke-width": R.value.style.layout.axis.strokeWidth,
1727
- "stroke-linecap": "round"
1728
- }, null, 10, ut), C("text", {
1729
- class: Re({ "vue-data-ui-transition": M(tr) }),
1730
- transform: `translate(${W.value.x - R.value.style.layout.dataLabels.yAxis.scales.labels.fontSize / 2 - 8 + R.value.style.layout.dataLabels.yAxis.scales.labels.offsetX}, ${e.y + R.value.style.layout.dataLabels.yAxis.scales.labels.fontSize / 3})`,
1731
- "text-anchor": "end",
1732
- "font-size": R.value.style.layout.dataLabels.yAxis.scales.labels.fontSize,
1733
- fill: R.value.style.layout.dataLabels.yAxis.scales.labels.color,
1734
- stroke: R.value.style.backgroundColor,
1735
- "stroke-width": "2",
1736
- "paint-order": "stroke"
1737
- }, j(e.label), 11, dt)]))), 128))], 8, lt)) : x("", !0),
1738
- R.value.style.layout.marginalBars.show ? (D(), S("g", ft, [
1739
- C("defs", null, [Pe(we, {
1740
- t: "linear",
1741
- id: `marginal_x_${F.value}`,
1742
- x1: "0%",
1743
- y1: "0%",
1744
- x2: "0%",
1745
- y2: "100%",
1746
- stops: [[
1747
- "0%",
1748
- R.value.style.layout.marginalBars.fill,
1749
- 1
1750
- ], [
1751
- "100%",
1752
- R.value.style.backgroundColor,
1753
- 1
1754
- ]]
1755
- }, null, 8, ["id", "stops"]), Pe(we, {
1756
- t: "linear",
1757
- id: `marginal_y_${F.value}`,
1758
- x1: "0%",
1759
- x2: "100%",
1760
- y1: "0%",
1761
- y2: "0%",
1762
- stops: [[
1763
- "0%",
1764
- R.value.style.backgroundColor,
1765
- 1
1766
- ], [
1767
- "100%",
1768
- R.value.style.layout.marginalBars.fill,
1769
- 1
1770
- ]]
1771
- }, null, 8, ["id", "stops"])]),
1772
- (D(!0), S(v, null, k(J.value.x, (e, n) => (D(), S("g", null, [
1773
- e && J.value.avgX[n] ? (D(), S("rect", {
1774
- key: 0,
1775
- x: J.value.avgX[n] - H.value.width / q.value / 2,
1776
- y: H.value.top - R.value.style.layout.marginalBars.offset - e / J.value.maxX * R.value.style.layout.marginalBars.size,
1777
- width: H.value.width / q.value <= 0 ? 1e-4 : H.value.width / q.value,
1778
- height: e / J.value.maxX * R.value.style.layout.marginalBars.size <= 0 ? 1e-4 : e / J.value.maxX * R.value.style.layout.marginalBars.size,
1779
- fill: R.value.style.layout.marginalBars.useGradient ? `url(#marginal_x_${F.value})` : R.value.style.layout.marginalBars.fill,
1780
- style: E([`opacity:${R.value.style.layout.marginalBars.opacity}`, { "pointer-events": "none" }]),
1781
- stroke: R.value.style.backgroundColor,
1782
- "stroke-width": R.value.style.layout.marginalBars.strokeWidth,
1783
- rx: R.value.style.layout.marginalBars.borderRadius
1784
- }, null, 12, pt)) : x("", !0),
1785
- J.value.avgX[n] ? (D(), S("rect", {
1786
- key: 1,
1787
- x: J.value.avgX[n] - H.value.width / q.value / 2,
1788
- y: H.value.top - R.value.style.layout.marginalBars.offset - R.value.style.layout.marginalBars.size,
1789
- width: H.value.width / q.value <= 0 ? 1e-4 : H.value.width / q.value,
1790
- height: Math.max(.1, R.value.style.layout.marginalBars.size),
1791
- fill: "transparent",
1792
- onMouseenter: (e) => gi(n),
1793
- onMouseleave: t[0] ||= (e) => vi()
1794
- }, null, 40, mt)) : x("", !0),
1795
- J.value.avgX[n] && Bn.value != null && Bn.value === n ? (D(), S("g", ht, [
1796
- C("rect", {
1797
- x: J.value.avgX[n] - H.value.width / q.value / 2,
1798
- y: H.value.top,
1799
- width: H.value.width / q.value <= 0 ? 1e-4 : H.value.width / q.value,
1800
- height: H.value.height,
1801
- fill: R.value.style.layout.marginalBars.highlighter.color,
1802
- "fill-opacity": R.value.style.layout.marginalBars.highlighter.opacity
1803
- }, null, 8, gt),
1804
- C("line", {
1805
- x1: J.value.avgX[n] - H.value.width / q.value / 2,
1806
- x2: J.value.avgX[n] - H.value.width / q.value / 2,
1807
- y1: 0,
1808
- y2: H.value.top + H.value.height,
1809
- stroke: R.value.style.layout.marginalBars.highlighter.stroke,
1810
- "stroke-dasharray": R.value.style.layout.marginalBars.highlighter.strokeDasharray,
1811
- "stroke-width": R.value.style.layout.marginalBars.highlighter.strokeWidth,
1812
- style: {
1813
- transition: "none !important",
1814
- animation: "none !important"
1815
- }
1816
- }, null, 8, _t),
1817
- C("line", {
1818
- x1: J.value.avgX[n] - H.value.width / q.value / 2 + (H.value.width / q.value <= 0 ? 1e-4 : H.value.width / q.value),
1819
- x2: J.value.avgX[n] - H.value.width / q.value / 2 + (H.value.width / q.value <= 0 ? 1e-4 : H.value.width / q.value),
1820
- y1: 0,
1821
- y2: H.value.top + H.value.height,
1822
- stroke: R.value.style.layout.marginalBars.highlighter.stroke,
1823
- "stroke-dasharray": R.value.style.layout.marginalBars.highlighter.strokeDasharray,
1824
- "stroke-width": R.value.style.layout.marginalBars.highlighter.strokeWidth,
1825
- style: {
1826
- transition: "none !important",
1827
- animation: "none !important"
1828
- }
1829
- }, null, 8, vt)
1830
- ])) : x("", !0)
1831
- ]))), 256)),
1832
- (D(!0), S(v, null, k(J.value.y, (e, n) => (D(), S("g", null, [
1833
- e && J.value.avgY[n] ? (D(), S("rect", {
1834
- key: 0,
1835
- x: H.value.right + R.value.style.layout.marginalBars.offset,
1836
- y: J.value.avgY[n] - H.value.height / q.value / 2,
1837
- height: H.value.height / q.value <= 0 ? 1e-4 : H.value.height / q.value,
1838
- width: e / J.value.maxY * R.value.style.layout.marginalBars.size <= 0 ? 1e-4 : e / J.value.maxY * R.value.style.layout.marginalBars.size,
1839
- fill: R.value.style.layout.marginalBars.useGradient ? `url(#marginal_y_${F.value})` : R.value.style.layout.marginalBars.fill,
1840
- style: E([`opacity:${R.value.style.layout.marginalBars.opacity}`, { "pointer-events": "none" }]),
1841
- stroke: R.value.style.backgroundColor,
1842
- "stroke-width": R.value.style.layout.marginalBars.strokeWidth,
1843
- rx: R.value.style.layout.marginalBars.borderRadius
1844
- }, null, 12, yt)) : x("", !0),
1845
- J.value.avgY[n] ? (D(), S("rect", {
1846
- key: 1,
1847
- x: H.value.right + R.value.style.layout.marginalBars.offset,
1848
- y: J.value.avgY[n] - H.value.height / q.value / 2,
1849
- width: Math.max(.1, R.value.style.layout.marginalBars.size),
1850
- height: H.value.height / q.value <= 0 ? 1e-4 : H.value.height / q.value,
1851
- fill: "transparent",
1852
- onMouseenter: (e) => _i(n),
1853
- onMouseleave: t[1] ||= (e) => vi()
1854
- }, null, 40, bt)) : x("", !0),
1855
- J.value.avgY[n] && Vn.value != null && Vn.value === n ? (D(), S("g", xt, [
1856
- C("rect", {
1857
- x: H.value.left,
1858
- y: J.value.avgY[n] - H.value.height / q.value / 2,
1859
- width: H.value.width,
1860
- height: H.value.height / q.value <= 0 ? 1e-4 : H.value.height / q.value,
1861
- fill: R.value.style.layout.marginalBars.highlighter.color,
1862
- "fill-opacity": R.value.style.layout.marginalBars.highlighter.opacity
1863
- }, null, 8, St),
1864
- C("line", {
1865
- x1: H.value.left,
1866
- x2: V.value.width,
1867
- y1: J.value.avgY[n] - H.value.height / q.value / 2,
1868
- y2: J.value.avgY[n] - H.value.height / q.value / 2,
1869
- stroke: R.value.style.layout.marginalBars.highlighter.stroke,
1870
- "stroke-dasharray": R.value.style.layout.marginalBars.highlighter.strokeDasharray,
1871
- "stroke-width": R.value.style.layout.marginalBars.highlighter.strokeWidth,
1872
- style: {
1873
- transition: "none !important",
1874
- animation: "none !important"
1875
- }
1876
- }, null, 8, Ct),
1877
- C("line", {
1878
- x1: H.value.left,
1879
- x2: V.value.width,
1880
- y1: J.value.avgY[n] - H.value.height / q.value / 2 + (H.value.height / q.value <= 0 ? 1e-4 : H.value.height / q.value),
1881
- y2: J.value.avgY[n] - H.value.height / q.value / 2 + (H.value.height / q.value <= 0 ? 1e-4 : H.value.height / q.value),
1882
- stroke: R.value.style.layout.marginalBars.highlighter.stroke,
1883
- "stroke-dasharray": R.value.style.layout.marginalBars.highlighter.strokeDasharray,
1884
- "stroke-width": R.value.style.layout.marginalBars.highlighter.strokeWidth,
1885
- style: {
1886
- transition: "none !important",
1887
- animation: "none !important"
1888
- }
1889
- }, null, 8, wt)
1890
- ])) : x("", !0)
1891
- ]))), 256)),
1892
- R.value.style.layout.marginalBars.showLines ? (D(), S("g", Tt, [(D(!0), S(v, null, k(Ur.value, (e) => (D(), S(v, null, [
1893
- L.value.includes(e.id) ? x("", !0) : (D(), S("path", {
1894
- key: 0,
1895
- d: `M ${e.dX}`,
1896
- stroke: R.value.style.backgroundColor,
1897
- "stroke-width": R.value.style.layout.marginalBars.linesStrokeWidth + 1,
1898
- "stroke-linecap": "round",
1899
- "stroke-linejoin": "round",
1900
- fill: "none"
1901
- }, null, 8, Et)),
1902
- L.value.includes(e.id) ? x("", !0) : (D(), S("path", {
1903
- key: 1,
1904
- d: `M ${e.dX}`,
1905
- stroke: e.color,
1906
- "stroke-width": R.value.style.layout.marginalBars.linesStrokeWidth,
1907
- "stroke-linecap": "round",
1908
- "stroke-linejoin": "round",
1909
- fill: "none"
1910
- }, null, 8, Dt)),
1911
- L.value.includes(e.id) ? x("", !0) : (D(), S("path", {
1912
- key: 2,
1913
- d: `M ${e.dY}`,
1914
- stroke: R.value.style.backgroundColor,
1915
- "stroke-width": R.value.style.layout.marginalBars.linesStrokeWidth + 1,
1916
- "stroke-linecap": "round",
1917
- "stroke-linejoin": "round",
1918
- fill: "none"
1919
- }, null, 8, Ot)),
1920
- L.value.includes(e.id) ? x("", !0) : (D(), S("path", {
1921
- key: 3,
1922
- d: `M ${e.dY}`,
1923
- stroke: e.color,
1924
- "stroke-width": R.value.style.layout.marginalBars.linesStrokeWidth,
1925
- "stroke-linecap": "round",
1926
- "stroke-linejoin": "round",
1927
- fill: "none"
1928
- }, null, 8, kt))
1929
- ], 64))), 256))])) : x("", !0)
1930
- ])) : x("", !0),
1931
- R.value.style.layout.plots.giftWrap.show ? (D(), S("g", At, [(D(!0), S(v, null, k(K.value, (e, t) => (D(), S("g", null, [e.plots.length > 2 ? (D(), S("polygon", {
1932
- key: 0,
1933
- points: M(oe)({ series: e.plots }),
1934
- fill: M(a)(e.color, R.value.style.layout.plots.giftWrap.fillOpacity * 100),
1935
- "stroke-width": R.value.style.layout.plots.giftWrap.strokeWidth,
1936
- "stroke-dasharray": R.value.style.layout.plots.giftWrap.strokeDasharray,
1937
- stroke: e.color,
1938
- "stroke-linejoin": "round",
1939
- "stroke-linecap": "round"
1940
- }, null, 8, jt)) : x("", !0)]))), 256))])) : x("", !0),
1941
- R.value.usePerformanceMode ? x("", !0) : (D(!0), S(v, { key: 8 }, k(K.value, (e, t) => (D(), S("g", { key: e.id }, [!e.shape || e.shape === "circle" ? (D(), S("g", Mt, [(D(!0), S(v, null, k(e.plots, (n, r) => (D(), S("circle", {
1942
- key: n.id,
1943
- cx: n.x,
1944
- cy: n.y,
1945
- r: Y.value && Y.value === n.id || Z.value.includes(n.id) ? n.weight * R.value.style.layout.plots.hoverRadiusRatio : n.weight,
1946
- fill: M(a)(e.color, Y.value && Y.value !== n.id || Z.value.length && !Z.value.includes(n.id) ? R.value.style.layout.plots.opacityNotSelected * 100 : R.value.style.layout.plots.opacity * 100),
1947
- stroke: R.value.style.layout.plots.stroke,
1948
- "stroke-width": R.value.style.layout.plots.strokeWidth,
1949
- style: E(`opacity:${Y.value && Y.value === n.id || Z.value.includes(n.id) ? 1 : R.value.style.layout.plots.significance.useDistanceOpacity ? 1 - Math.abs(n.deviation) / Br.value : R.value.style.layout.plots.significance.show && Math.abs(n.deviation) > R.value.style.layout.plots.significance.deviationThreshold ? R.value.style.layout.plots.significance.opacity : 1}`),
1950
- onMouseover: (e) => $r(n, t, "pointer", $.value.get(n.id)),
1951
- onMouseleave: (e) => ei(n, t),
1952
- onClick: (e) => ti(n, t)
1953
- }, null, 44, Nt))), 128))])) : (D(), S("g", Pt, [(D(!0), S(v, null, k(e.plots, (n, r) => (D(), b(be, {
1954
- class: "vue-ui-scatter-datapoint",
1955
- plot: {
1956
- x: n.x,
1957
- y: n.y
1958
- },
1959
- radius: Y.value && Y.value === n.id || Z.value.includes(n.id) ? n.weight * R.value.style.layout.plots.hoverRadiusRatio : n.weight,
1960
- shape: e.shape,
1961
- color: M(a)(e.color, Y.value && Y.value !== n.id || Z.value.length && !Z.value.includes(n.id) ? R.value.style.layout.plots.opacityNotSelected * 100 : R.value.style.layout.plots.opacity * 100),
1962
- stroke: R.value.style.layout.plots.stroke,
1963
- strokeWidth: R.value.style.layout.plots.strokeWidth,
1964
- style: E(`opacity:${Y.value && Y.value === n.id || Z.value.includes(n.id) ? 1 : R.value.style.layout.plots.significance.useDistanceOpacity ? 1 - Math.abs(n.deviation) / Br.value : R.value.style.layout.plots.significance.show && Math.abs(n.deviation) > R.value.style.layout.plots.significance.deviationThreshold ? R.value.style.layout.plots.significance.opacity : 1}`),
1965
- onMouseover: (e) => $r(n, t, "pointer", $.value.get(n.id)),
1966
- onMouseleave: (e) => ei(n, t),
1967
- onClick: (e) => ti(n, t)
1968
- }, null, 8, [
1969
- "plot",
1970
- "radius",
1971
- "shape",
1972
- "color",
1973
- "stroke",
1974
- "strokeWidth",
1975
- "style",
1976
- "onMouseover",
1977
- "onMouseleave",
1978
- "onClick"
1979
- ]))), 256))])), R.value.style.layout.plots.name.show ? (D(!0), S(v, { key: 2 }, k(e.plots, (e, n) => (D(), S("text", {
1980
- class: "vue-ui-scatter-datapoint-label",
1981
- key: `datalabel-${e.id}`,
1982
- transform: `translate(${e.x}, ${e.y - e.weight - R.value.style.layout.plots.name.fontSize + R.value.style.layout.plots.name.offsetY})`,
1983
- "text-anchor": "middle",
1984
- "font-size": R.value.style.layout.plots.name.fontSize,
1985
- fill: M(a)(R.value.style.layout.plots.name.color, Y.value && Y.value !== e.id || Z.value.length && !Z.value.includes(e.id) ? R.value.style.layout.plots.opacityNotSelected * 100 : 100),
1986
- onMouseover: (n) => $r(e, t, "pointer", $.value.get(e.id)),
1987
- onMouseleave: (n) => ei(e, t),
1988
- onClick: (n) => ti(e, t)
1989
- }, j(e.clusterName), 41, Ft))), 128)) : x("", !0)]))), 128)),
1990
- R.value.usePerformanceMode ? (D(), S(v, { key: 9 }, [
1991
- C("g", { "clip-path": `url(#clip_path_${F.value})` }, [(D(!0), S(v, null, k(xi.value, (e) => (D(), S("path", {
1992
- key: e.id,
1993
- d: e.d,
1994
- fill: e.fill,
1995
- stroke: e.stroke,
1996
- "stroke-width": e.strokeWidth,
1997
- "stroke-opacity": e.strokeOpacity,
1998
- "vector-effect": "non-scaling-stroke",
1999
- "paint-order": "fill"
2000
- }, null, 8, Lt))), 128))], 8, It),
2001
- X.value && R.value.style.layout.plots.selectors.show ? (D(), S("g", Rt, [Pe(be, {
2002
- shape: X.value.shape || "circle",
2003
- color: X.value.color,
2004
- plot: {
2005
- x: X.value.x,
2006
- y: X.value.y
2007
- },
2008
- radius: Math.max(4 * yi[X.value.shape || "circle"], X.value.weight * R.value.style.layout.plots.hoverRadiusRatio),
2009
- stroke: R.value.style.layout.plots.stroke,
2010
- strokeWidth: R.value.style.layout.plots.strokeWidth
2011
- }, null, 8, [
2012
- "shape",
2013
- "color",
2014
- "plot",
2015
- "radius",
2016
- "stroke",
2017
- "strokeWidth"
2018
- ])])) : x("", !0),
2019
- C("rect", {
2020
- x: H.value.left,
2021
- y: H.value.top,
2022
- width: Math.max(1e-4, H.value.width),
2023
- height: Math.max(1e-4, H.value.height),
2024
- fill: "transparent",
2025
- onMousemove: t[2] ||= (...e) => M(Ci) && M(Ci)(...e),
2026
- onMouseleave: wi,
2027
- onClick: Ti
2028
- }, null, 40, zt)
2029
- ], 64)) : x("", !0),
2030
- (D(!0), S(v, null, k(Xr.value, (e) => (D(), S(v, { key: `selector_${e.id}` }, [R.value.style.layout.plots.selectors.show ? (D(), S("g", Bt, [
2031
- C("line", {
2032
- x1: W.value.x,
2033
- x2: e.x,
2034
- y1: e.y,
2035
- y2: e.y,
2036
- stroke: R.value.style.layout.plots.selectors.stroke,
2037
- "stroke-width": R.value.style.layout.plots.selectors.strokeWidth,
2038
- "stroke-dasharray": R.value.style.layout.plots.selectors.strokeDasharray,
2039
- "stroke-linecap": "round",
2040
- class: "line-pointer"
2041
- }, null, 8, Vt),
2042
- C("line", {
2043
- x1: e.x,
2044
- x2: e.x,
2045
- y1: W.value.y,
2046
- y2: e.y,
2047
- stroke: R.value.style.layout.plots.selectors.stroke,
2048
- "stroke-width": R.value.style.layout.plots.selectors.strokeWidth,
2049
- "stroke-dasharray": R.value.style.layout.plots.selectors.strokeDasharray,
2050
- "stroke-linecap": "round",
2051
- class: "line-pointer"
2052
- }, null, 8, Ht),
2053
- R.value.style.layout.dataLabels.yAxis.scales.show ? x("", !0) : (D(), S("text", {
2054
- key: 0,
2055
- x: W.value.x + (e.x > W.value.x ? -6 : 6),
2056
- y: e.y + R.value.style.layout.plots.selectors.labels.fontSize / 3,
2057
- "font-size": R.value.style.layout.plots.selectors.labels.fontSize,
2058
- fill: R.value.style.layout.plots.selectors.labels.color,
2059
- "font-weight": R.value.style.layout.plots.selectors.labels.bold ? "bold" : "normal",
2060
- "text-anchor": e.x > W.value.x ? "end" : "start"
2061
- }, j(M(g)(R.value.style.layout.plots.selectors.labels.y.formatter, M(h)(e.v.y), M(f)({
2062
- p: R.value.style.layout.plots.selectors.labels.prefix,
2063
- v: M(h)(e.v.y),
2064
- s: R.value.style.layout.plots.selectors.labels.suffix,
2065
- r: R.value.style.layout.plots.selectors.labels.rounding
2066
- }), { datapoint: e })), 9, Ut)),
2067
- R.value.style.layout.dataLabels.xAxis.scales.show ? x("", !0) : (D(), S("text", {
2068
- key: 1,
2069
- x: e.x,
2070
- y: W.value.y + (e.y > W.value.y ? -6 : R.value.style.layout.plots.selectors.labels.fontSize + 6),
2071
- "font-size": R.value.style.layout.plots.selectors.labels.fontSize,
2072
- fill: R.value.style.layout.plots.selectors.labels.color,
2073
- "font-weight": R.value.style.layout.plots.selectors.labels.bold ? "bold" : "normal",
2074
- "text-anchor": "middle"
2075
- }, j(M(g)(R.value.style.layout.plots.selectors.labels.y.formatter, M(h)(e.v.x), M(f)({
2076
- p: R.value.style.layout.plots.selectors.labels.prefix,
2077
- v: M(h)(e.v.x),
2078
- s: R.value.style.layout.plots.selectors.labels.suffix,
2079
- r: R.value.style.layout.plots.selectors.labels.rounding
2080
- }), { datapoint: e })), 9, Wt)),
2081
- R.value.style.layout.dataLabels.xAxis.scales.show ? (D(), S("text", {
2082
- key: 2,
2083
- x: e.x,
2084
- y: W.value.y + R.value.style.layout.dataLabels.xAxis.scales.labels.fontSize + 6 + R.value.style.layout.dataLabels.xAxis.scales.labels.offsetY,
2085
- "text-anchor": "middle",
2086
- "font-size": R.value.style.layout.dataLabels.xAxis.scales.labels.fontSize,
2087
- fill: R.value.style.layout.dataLabels.xAxis.scales.labels.color
2088
- }, j(Zr(e)), 9, Gt)) : x("", !0),
2089
- R.value.style.layout.dataLabels.yAxis.scales.show ? (D(), S("text", {
2090
- key: 3,
2091
- x: W.value.x - R.value.style.layout.dataLabels.yAxis.scales.labels.fontSize / 2 - 8 + R.value.style.layout.dataLabels.yAxis.scales.labels.offsetX,
2092
- y: e.y + R.value.style.layout.dataLabels.yAxis.scales.labels.fontSize / 3,
2093
- "text-anchor": "end",
2094
- "font-size": R.value.style.layout.dataLabels.yAxis.scales.labels.fontSize,
2095
- fill: R.value.style.layout.dataLabels.yAxis.scales.labels.color
2096
- }, j(Qr(e)), 9, Kt)) : x("", !0),
2097
- C("circle", {
2098
- cx: W.value.x,
2099
- cy: e.y,
2100
- r: R.value.style.layout.plots.selectors.markers.radius,
2101
- fill: R.value.style.layout.plots.selectors.markers.fill,
2102
- stroke: R.value.style.layout.plots.selectors.markers.stroke,
2103
- "stroke-width": R.value.style.layout.plots.selectors.markers.strokeWidth,
2104
- class: "line-pointer"
2105
- }, null, 8, qt),
2106
- C("circle", {
2107
- cx: e.x,
2108
- cy: W.value.y,
2109
- r: R.value.style.layout.plots.selectors.markers.radius,
2110
- fill: R.value.style.layout.plots.selectors.markers.fill,
2111
- stroke: R.value.style.layout.plots.selectors.markers.stroke,
2112
- "stroke-width": R.value.style.layout.plots.selectors.markers.strokeWidth,
2113
- class: "line-pointer"
2114
- }, null, 8, Jt),
2115
- R.value.style.layout.plots.selectors.labels.showName && !R.value.style.layout.plots.name.show ? (D(), S("text", {
2116
- key: 4,
2117
- x: e.x,
2118
- y: e.y + (e.y < W.value.y ? -R.value.style.layout.plots.selectors.labels.fontSize / 2 : R.value.style.layout.plots.selectors.labels.fontSize),
2119
- "font-size": R.value.style.layout.plots.selectors.labels.fontSize,
2120
- fill: R.value.style.layout.plots.selectors.labels.color,
2121
- "font-weight": R.value.style.layout.plots.selectors.labels.bold ? "bold" : "normal",
2122
- "text-anchor": e.x < H.value.left + 100 ? "start" : e.x > H.value.right - 100 ? "end" : e.x > W.value.x ? "start" : "end"
2123
- }, j(e.v.name), 9, Yt)) : x("", !0)
2124
- ])) : x("", !0)], 64))), 128)),
2125
- R.value.style.layout.dataLabels.xAxis.show ? (D(), S("g", {
2126
- key: 10,
2127
- ref_key: "xAxisLabelLeft",
2128
- ref: Wn
2129
- }, [C("text", {
2130
- id: `vue-ui-scatter-xAxis-label-${F.value}`,
2131
- transform: `translate(${R.value.style.layout.dataLabels.xAxis.fontSize + (R.value.style.layout.dataLabels.reverseAxisLabels ? R.value.style.layout.dataLabels.yAxis.offsetX : R.value.style.layout.dataLabels.xAxis.offsetX)}, ${H.value.top + H.value.height / 2 + (R.value.style.layout.dataLabels.reverseAxisLabels ? R.value.style.layout.dataLabels.yAxis.offsetY : R.value.style.layout.dataLabels.xAxis.offsetY)}), rotate(-90)`,
2132
- "text-anchor": "middle",
2133
- "font-size": R.value.style.layout.dataLabels.xAxis.fontSize,
2134
- "font-weight": R.value.style.layout.dataLabels.xAxis.bold ? "bold" : "normal",
2135
- fill: R.value.style.layout.dataLabels.xAxis.color
2136
- }, j(R.value.style.layout.dataLabels.reverseAxisLabels ? R.value.style.layout.dataLabels.yAxis.name : R.value.style.layout.dataLabels.xAxis.name), 9, Xt), R.value.style.layout.dataLabels.xAxis.showValue ? (D(), S("text", {
2137
- key: 0,
2138
- "text-anchor": "middle",
2139
- "font-size": R.value.style.layout.dataLabels.xAxis.fontSize,
2140
- fill: R.value.style.layout.dataLabels.xAxis.color,
2141
- transform: `translate(${R.value.style.layout.dataLabels.xAxis.name ? R.value.style.layout.dataLabels.xAxis.fontSize * 3 : 0}, ${W.value.y + R.value.style.layout.dataLabels.xAxis.fontSize / 3}), rotate(-90)`
2142
- }, j(M(g)(R.value.style.layout.plots.selectors.labels.x.formatter, M(h)(U.value.xMin), M(f)({
2143
- p: R.value.style.layout.plots.selectors.labels.prefix,
2144
- v: M(h)(U.value.xMin),
2145
- s: R.value.style.layout.plots.selectors.labels.suffix,
2146
- r: R.value.style.layout.dataLabels.xAxis.rounding
2147
- }))), 9, Zt)) : x("", !0)], 512)) : x("", !0),
2148
- R.value.style.layout.dataLabels.xAxis.show && R.value.style.layout.dataLabels.xAxis.showValue ? (D(), S("text", {
2149
- key: 11,
2150
- ref_key: "xAxisLabelRight",
2151
- ref: Gn,
2152
- "text-anchor": "middle",
2153
- transform: `translate(${H.value.right + R.value.style.layout.padding.right + 6}, ${W.value.y + R.value.style.layout.dataLabels.xAxis.fontSize / 3}), rotate(-90)`,
2154
- "font-size": R.value.style.layout.dataLabels.xAxis.fontSize,
2155
- fill: R.value.style.layout.dataLabels.xAxis.color
2156
- }, j(M(g)(R.value.style.layout.plots.selectors.labels.x.formatter, M(h)(U.value.xMax), M(f)({
2157
- p: R.value.style.layout.plots.selectors.labels.prefix,
2158
- v: M(h)(U.value.xMax),
2159
- s: R.value.style.layout.plots.selectors.labels.suffix,
2160
- r: R.value.style.layout.dataLabels.xAxis.rounding
2161
- }))), 9, Qt)) : x("", !0),
2162
- R.value.style.layout.dataLabels.yAxis.show && R.value.style.layout.dataLabels.yAxis.showValue ? (D(), S("text", {
2163
- key: 12,
2164
- ref_key: "yAxisLabelTop",
2165
- ref: Kn,
2166
- x: W.value.x,
2167
- y: H.value.top - R.value.style.layout.dataLabels.yAxis.fontSize,
2168
- "text-anchor": "middle",
2169
- "font-size": R.value.style.layout.dataLabels.yAxis.fontSize,
2170
- fill: R.value.style.layout.dataLabels.yAxis.color
2171
- }, j(M(g)(R.value.style.layout.plots.selectors.labels.y.formatter, M(h)(U.value.yMax), M(f)({
2172
- p: R.value.style.layout.plots.selectors.labels.prefix,
2173
- v: M(h)(U.value.yMax),
2174
- s: R.value.style.layout.plots.selectors.labels.suffix,
2175
- r: R.value.style.layout.dataLabels.yAxis.rounding
2176
- }))), 9, $t)) : x("", !0),
2177
- R.value.style.layout.dataLabels.yAxis.show ? (D(), S("g", {
2178
- key: 13,
2179
- ref_key: "yAxisLabelBottom",
2180
- ref: qn
2181
- }, [R.value.style.layout.dataLabels.yAxis.showValue ? (D(), S("text", {
2182
- key: 0,
2183
- x: W.value.x,
2184
- y: V.value.height - R.value.style.layout.dataLabels.yAxis.fontSize * 2,
2185
- "text-anchor": "middle",
2186
- "font-size": R.value.style.layout.dataLabels.yAxis.fontSize,
2187
- fill: R.value.style.layout.dataLabels.yAxis.color
2188
- }, j(M(g)(R.value.style.layout.plots.selectors.labels.y.formatter, M(h)(U.value.yMin), M(f)({
2189
- p: R.value.style.layout.plots.selectors.labels.prefix,
2190
- v: M(h)(U.value.yMin),
2191
- s: R.value.style.layout.plots.selectors.labels.suffix,
2192
- r: R.value.style.layout.dataLabels.yAxis.rounding
2193
- }))), 9, en)) : x("", !0), C("text", {
2194
- "text-anchor": "middle",
2195
- "font-size": R.value.style.layout.dataLabels.yAxis.fontSize,
2196
- "font-weight": R.value.style.layout.dataLabels.yAxis.bold ? "bold" : "normal",
2197
- fill: R.value.style.layout.dataLabels.yAxis.color,
2198
- x: H.value.left + H.value.width / 2 + (R.value.style.layout.dataLabels.reverseAxisLabels ? R.value.style.layout.dataLabels.xAxis.offsetX : R.value.style.layout.dataLabels.yAxis.offsetX),
2199
- y: V.value.height + (R.value.style.layout.dataLabels.reverseAxisLabels ? R.value.style.layout.dataLabels.xAxis.offsetY : R.value.style.layout.dataLabels.yAxis.offsetY)
2200
- }, j(R.value.style.layout.dataLabels.reverseAxisLabels ? R.value.style.layout.dataLabels.xAxis.name : R.value.style.layout.dataLabels.yAxis.name), 9, tn)], 512)) : x("", !0),
2201
- C("clipPath", { id: `clip_path_${F.value}` }, [C("rect", {
2202
- x: H.value.left,
2203
- y: H.value.top,
2204
- width: H.value.width <= 0 ? 1e-4 : H.value.width,
2205
- height: H.value.height <= 0 ? 1e-4 : H.value.height
2206
- }, null, 8, rn)], 8, nn),
2207
- R.value.style.layout.correlation.show ? (D(), S("g", an, [(D(!0), S(v, null, k(K.value.filter((e) => e.correlation), (e, t) => (D(), S("line", {
2208
- x1: e.correlation.x1,
2209
- x2: e.correlation.x2,
2210
- y1: e.correlation.y1,
2211
- y2: e.correlation.y2,
2212
- "stroke-dasharray": R.value.style.layout.correlation.strokeDasharray,
2213
- stroke: e.color,
2214
- "stroke-width": R.value.style.layout.correlation.strokeWidth,
2215
- "clip-path": `url(#clip_path_${F.value})`
2216
- }, null, 8, on))), 256)), (D(!0), S(v, null, k(K.value.filter((e) => e.correlation), (e, t) => (D(), S("g", null, [R.value.style.layout.correlation.label.show ? (D(), S("text", {
2217
- key: 0,
2218
- x: e.correlation.x2,
2219
- y: e.correlation.y2,
2220
- fill: R.value.style.layout.correlation.label.useSerieColor ? e.color : R.value.style.layout.correlation.label.color,
2221
- "text-anchor": "end",
2222
- "font-size": R.value.style.layout.correlation.label.fontSize,
2223
- "font-weight": R.value.style.layout.correlation.label.bold ? "bold" : "normal"
2224
- }, j(M(f)({
2225
- v: M(h)(e.correlation?.coefficient ?? 0),
2226
- r: R.value.style.layout.correlation.label.roundingValue
2227
- })), 9, sn)) : x("", !0)]))), 256))])) : x("", !0),
2228
- A(e.$slots, "svg", { svg: {
2229
- ...V.value,
2230
- drawingArea: {
2231
- ...H.value,
2232
- zero: W.value
2233
- },
2234
- data: zr.value,
2235
- isPrintingImg: M(gr) || M(_r) || M(ji),
2236
- isPrintingSvg: M(Mi)
2237
- } }, void 0, !0)
2238
- ], 46, Ze)), e.$slots.hint ? (D(), S("div", cn, [A(e.$slots, "hint", T(w({
2239
- hint: R.value.a11y.translations.keyboardNavigation,
2240
- isVisible: $n.value
2241
- })), void 0, !0)])) : x("", !0)]),
2242
- e.$slots.watermark ? (D(), S("div", ln, [A(e.$slots, "watermark", T(w({ isPrinting: M(gr) || M(_r) || M(ji) || M(Mi) })), void 0, !0)])) : x("", !0),
2243
- C("div", { id: `legend-bottom-${F.value}` }, null, 8, un),
2244
- On.value && zn.value && (R.value.style.legend.show || e.$slots.legend) ? (D(), b(je, {
2245
- key: 7,
2246
- to: R.value.style.legend.position === "top" ? `#legend-top-${F.value}` : `#legend-bottom-${F.value}`
2247
- }, [C("div", {
2248
- ref_key: "chartLegend",
2249
- ref: Nn
2250
- }, [A(e.$slots, "legend", { legend: G.value }, () => [R.value.style.legend.show ? (D(), b(ke, {
2251
- key: `legend_${Rn.value}`,
2252
- legendSet: G.value,
2253
- config: Rr.value,
2254
- isCursorPointer: nr.value,
2255
- onClickMarker: t[3] ||= ({ legend: e }) => ri(e.id)
2256
- }, {
2257
- item: N(({ legend: e }) => [C("div", {
2258
- onClick: (t) => e.segregate(),
2259
- style: E(`opacity:${L.value.includes(e.id) ? .5 : 1}`)
2260
- }, j(e.name), 13, dn)]),
2261
- legendToggle: N(() => [G.value.length > 2 && R.value.style.legend.selectAllToggle.show && !M(ar) ? (D(), b(Te, {
2262
- key: 0,
2263
- backgroundColor: R.value.style.legend.selectAllToggle.backgroundColor,
2264
- color: R.value.style.legend.selectAllToggle.color,
2265
- fontSize: R.value.style.legend.fontSize,
2266
- checked: L.value.length > 0,
2267
- isCursorPointer: nr.value,
2268
- onToggle: ni
2269
- }, null, 8, [
2270
- "backgroundColor",
2271
- "color",
2272
- "fontSize",
2273
- "checked",
2274
- "isCursorPointer"
2275
- ])) : x("", !0)]),
2276
- _: 1
2277
- }, 8, [
2278
- "legendSet",
2279
- "config",
2280
- "isCursorPointer"
2281
- ])) : x("", !0)], !0)], 512)], 8, ["to"])) : x("", !0),
2282
- e.$slots.source ? (D(), S("div", {
2283
- key: 8,
2284
- ref_key: "source",
2285
- ref: Pn,
2286
- dir: "auto"
2287
- }, [A(e.$slots, "source", {}, void 0, !0)], 512)) : x("", !0),
2288
- Pe(M(gn), {
2289
- teleportTo: R.value.style.tooltip.teleportTo,
2290
- show: B.value.showTooltip && kn.value,
2291
- backgroundColor: R.value.style.tooltip.backgroundColor,
2292
- color: R.value.style.tooltip.color,
2293
- borderRadius: R.value.style.tooltip.borderRadius,
2294
- borderColor: R.value.style.tooltip.borderColor,
2295
- borderWidth: R.value.style.tooltip.borderWidth,
2296
- fontSize: R.value.style.tooltip.fontSize,
2297
- backgroundOpacity: R.value.style.tooltip.backgroundOpacity,
2298
- position: R.value.style.tooltip.position,
2299
- offsetX: R.value.style.tooltip.offsetX,
2300
- offsetY: R.value.style.tooltip.offsetY,
2301
- parent: I.value,
2302
- content: An.value,
2303
- isFullscreen: li.value,
2304
- isCustom: R.value.style.tooltip.customFormat && typeof R.value.style.tooltip.customFormat == "function",
2305
- smooth: R.value.style.tooltip.smooth,
2306
- backdropFilter: R.value.style.tooltip.backdropFilter,
2307
- smoothForce: R.value.style.tooltip.smoothForce,
2308
- smoothSnapThreshold: R.value.style.tooltip.smoothSnapThreshold,
2309
- isA11yMode: Qn.value === "keyboard",
2310
- a11yPosition: Zn.value
2311
- }, {
2312
- "tooltip-before": N(() => [A(e.$slots, "tooltip-before", T(w({ ...Wr.value })), void 0, !0)]),
2313
- tooltip: N(() => [A(e.$slots, "tooltip", T(w({ ...Wr.value })), void 0, !0)]),
2314
- "tooltip-after": N(() => [A(e.$slots, "tooltip-after", T(w({ ...Wr.value })), void 0, !0)]),
2315
- default: N(() => [R.value.style.tooltip.showShape ? (D(), S("div", fn, [(D(), S("svg", pn, [Pe(be, {
2316
- shape: X.value.shape,
2317
- color: X.value.color,
2318
- plot: {
2319
- x: 10,
2320
- y: 10
2321
- },
2322
- radius: 7
2323
- }, null, 8, ["shape", "color"])]))])) : x("", !0)]),
2324
- _: 3
2325
- }, 8, [
2326
- "teleportTo",
2327
- "show",
2328
- "backgroundColor",
2329
- "color",
2330
- "borderRadius",
2331
- "borderColor",
2332
- "borderWidth",
2333
- "fontSize",
2334
- "backgroundOpacity",
2335
- "position",
2336
- "offsetX",
2337
- "offsetY",
2338
- "parent",
2339
- "content",
2340
- "isFullscreen",
2341
- "isCustom",
2342
- "smooth",
2343
- "backdropFilter",
2344
- "smoothForce",
2345
- "smoothSnapThreshold",
2346
- "isA11yMode",
2347
- "a11yPosition"
2348
- ]),
2349
- On.value && R.value.userOptions.buttons.table ? (D(), b(Ve(Ei.value.component), Ie({ key: 9 }, Ei.value.props, {
2350
- ref_key: "tableUnit",
2351
- ref: Hn,
2352
- onClose: Di
2353
- }), Me({
2354
- content: N(() => [(D(), b(M(yn), {
2355
- key: `table_${Ln.value}`,
2356
- colNames: ci.value.colNames,
2357
- head: ci.value.head,
2358
- body: ci.value.body,
2359
- config: ci.value.config,
2360
- title: R.value.table.useDialog ? "" : Ei.value.title,
2361
- withCloseButton: !R.value.table.useDialog,
2362
- isCursorPointer: nr.value,
2363
- onClose: Di
2364
- }, {
2365
- th: N(({ th: e }) => [Ne(j(e), 1)]),
2366
- td: N(({ td: e }) => [e.shape ? (D(), S("div", mn, [C("span", null, j(e.content), 1)])) : (D(), S("div", {
2367
- key: 1,
2368
- innerHTML: e
2369
- }, null, 8, hn))]),
2370
- _: 1
2371
- }, 8, [
2372
- "colNames",
2373
- "head",
2374
- "body",
2375
- "config",
2376
- "title",
2377
- "withCloseButton",
2378
- "isCursorPointer"
2379
- ]))]),
2380
- _: 2
2381
- }, [R.value.table.useDialog ? {
2382
- name: "title",
2383
- fn: N(() => [Ne(j(Ei.value.title), 1)]),
2384
- key: "0"
2385
- } : void 0, R.value.table.useDialog ? {
2386
- name: "actions",
2387
- fn: N(() => [C("button", {
2388
- tabindex: "0",
2389
- class: "vue-ui-user-options-button",
2390
- onClick: t[4] ||= (e) => si(R.value.userOptions.callbacks.csv),
2391
- style: E({ cursor: nr.value ? "pointer" : "default" })
2392
- }, [Pe(M(_n), {
2393
- name: "fileCsv",
2394
- stroke: Ei.value.props.color
2395
- }, null, 8, ["stroke"])], 4)]),
2396
- key: "1"
2397
- } : void 0]), 1040)) : x("", !0),
2398
- A(e.$slots, "skeleton", {}, () => [M(ar) ? (D(), b(pe, { key: 0 })) : x("", !0)], !0)
2399
- ], 46, Ke));
2400
- }
2401
- }, [["__scopeId", "data-v-c9028944"]]);
2402
- //#endregion
2403
- export { Ge as n, gn as t };