vue-data-ui 3.17.13 → 3.18.1

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 (493) hide show
  1. package/README.md +1 -1
  2. package/dist/A11yDataTable-q2-8fSlJ.js +45 -0
  3. package/dist/Arrow-Cj6W6Xbi.js +116 -0
  4. package/dist/BaseDraggableDialog-BQcmQAK5.js +272 -0
  5. package/dist/BaseIcon-CEmt3Ifx.js +499 -0
  6. package/dist/BaseLegendToggle-DUIqQmwM.js +56 -0
  7. package/dist/BaseScanner-C7dmAref.js +27 -0
  8. package/dist/BaseZoomControls-Ce1yqas1.js +111 -0
  9. package/dist/ColorPicker-DS_QkH3W.js +255 -0
  10. package/dist/DataTable-BvDJEAma.js +150 -0
  11. package/dist/Legend-Gg5Q4Clb.js +114 -0
  12. package/dist/NonSvgPenAndPaper-D4Gh7O43.js +577 -0
  13. package/dist/PackageVersion-DhDKg-ez.js +11 -0
  14. package/dist/PenAndPaper-DwpL8Z0l.js +461 -0
  15. package/dist/RecursiveCircles-DPpLel6f.js +117 -0
  16. package/dist/RecursiveLabels-DBMJf_to.js +56 -0
  17. package/dist/RecursiveLinks-D06dBL4a.js +78 -0
  18. package/dist/Shape-DEGOZ6GG.js +141 -0
  19. package/dist/Slicer-BlfyiHHD.js +1144 -0
  20. package/dist/SlicerPreview-BPS8mYO2.js +1523 -0
  21. package/dist/SparkTooltip-c2DL7gqD.js +93 -0
  22. package/dist/Title-__gWq2g6.js +87 -0
  23. package/dist/Tooltip-B7lmdbac.js +307 -0
  24. package/dist/UserOptions-DMw8EZEo.js +1407 -0
  25. package/dist/_plugin-vue_export-helper-Dq1MygBL.js +8 -0
  26. package/dist/canvas-lib-DTaADQOK.js +79 -0
  27. package/dist/components/arrow.js +2 -5
  28. package/dist/components/vue-ui-3d-bar.js +2 -5
  29. package/dist/components/vue-ui-accordion.js +2 -5
  30. package/dist/components/vue-ui-age-pyramid.js +2 -5
  31. package/dist/components/vue-ui-annotator.js +2 -5
  32. package/dist/components/vue-ui-bullet.js +2 -5
  33. package/dist/components/vue-ui-bump.js +2 -5
  34. package/dist/components/vue-ui-candlestick.js +2 -5
  35. package/dist/components/vue-ui-carousel-table.js +2 -5
  36. package/dist/components/vue-ui-chestnut.js +2 -5
  37. package/dist/components/vue-ui-chord.js +2 -5
  38. package/dist/components/vue-ui-circle-pack.js +2 -5
  39. package/dist/components/vue-ui-cursor.js +2 -5
  40. package/dist/components/vue-ui-dag.js +2 -5
  41. package/dist/components/vue-ui-dashboard.js +2 -5
  42. package/dist/components/vue-ui-digits.js +2 -5
  43. package/dist/components/vue-ui-donut-evolution.js +2 -5
  44. package/dist/components/vue-ui-donut.js +2 -5
  45. package/dist/components/vue-ui-dumbbell.js +2 -5
  46. package/dist/components/vue-ui-flow.js +2 -5
  47. package/dist/components/vue-ui-funnel.js +2 -5
  48. package/dist/components/vue-ui-galaxy.js +2 -5
  49. package/dist/components/vue-ui-gauge.js +2 -5
  50. package/dist/components/vue-ui-geo.js +2 -5
  51. package/dist/components/vue-ui-gizmo.js +2 -5
  52. package/dist/components/vue-ui-heatmap.js +2 -5
  53. package/dist/components/vue-ui-history-plot.js +2 -5
  54. package/dist/components/vue-ui-horizontal-bar.js +2 -5
  55. package/dist/components/vue-ui-icon.js +2 -5
  56. package/dist/components/vue-ui-kpi.js +2 -5
  57. package/dist/components/vue-ui-mini-loader.js +2 -5
  58. package/dist/components/vue-ui-molecule.js +2 -5
  59. package/dist/components/vue-ui-mood-radar.js +2 -5
  60. package/dist/components/vue-ui-nested-donuts.js +2 -5
  61. package/dist/components/vue-ui-onion.js +2 -5
  62. package/dist/components/vue-ui-parallel-coordinate-plot.js +2 -5
  63. package/dist/components/vue-ui-pattern-seed.js +2 -5
  64. package/dist/components/vue-ui-pattern.js +2 -5
  65. package/dist/components/vue-ui-quadrant.js +2 -5
  66. package/dist/components/vue-ui-quick-chart.js +2 -5
  67. package/dist/components/vue-ui-radar.js +2 -5
  68. package/dist/components/vue-ui-rating.js +2 -5
  69. package/dist/components/vue-ui-relation-circle.js +2 -5
  70. package/dist/components/vue-ui-ridgeline.js +2 -5
  71. package/dist/components/vue-ui-rings.js +2 -5
  72. package/dist/components/vue-ui-scatter.js +2 -5
  73. package/dist/components/vue-ui-skeleton.js +2 -5
  74. package/dist/components/vue-ui-smiley.js +2 -5
  75. package/dist/components/vue-ui-spark-trend.js +2 -5
  76. package/dist/components/vue-ui-sparkbar.js +2 -5
  77. package/dist/components/vue-ui-sparkgauge.js +2 -5
  78. package/dist/components/vue-ui-sparkhistogram.js +2 -5
  79. package/dist/components/vue-ui-sparkline.js +2 -5
  80. package/dist/components/vue-ui-sparkstackbar.js +2 -5
  81. package/dist/components/vue-ui-stackbar.js +2 -5
  82. package/dist/components/vue-ui-stackline.js +2 -5
  83. package/dist/components/vue-ui-strip-plot.js +2 -5
  84. package/dist/components/vue-ui-table-heatmap.js +2 -5
  85. package/dist/components/vue-ui-table-sparkline.js +2 -5
  86. package/dist/components/vue-ui-table.js +2 -5
  87. package/dist/components/vue-ui-thermometer.js +2 -5
  88. package/dist/components/vue-ui-timer.js +2 -5
  89. package/dist/components/vue-ui-tiremarks.js +2 -5
  90. package/dist/components/vue-ui-treemap.js +2 -5
  91. package/dist/components/vue-ui-vertical-bar.js +2 -5
  92. package/dist/components/vue-ui-waffle.js +2 -5
  93. package/dist/components/vue-ui-wheel.js +2 -5
  94. package/dist/components/vue-ui-word-cloud.js +2 -5
  95. package/dist/components/vue-ui-world.js +2 -5
  96. package/dist/components/vue-ui-xy-canvas.js +2 -5
  97. package/dist/components/vue-ui-xy.js +2 -5
  98. package/dist/dom-to-png-9WSt6hXe.js +237 -0
  99. package/dist/exposedLib-CwWU4zv-.js +19 -0
  100. package/dist/geoProjections-CQIkC70z.js +146 -0
  101. package/dist/img-BjOr008R.js +74 -0
  102. package/dist/labelUtils-Cr97N8E1.js +19 -0
  103. package/dist/lib-BkiwukKO.js +1879 -0
  104. package/dist/patternUtils-B7BWu5bV.js +258 -0
  105. package/dist/pdf-DSXSFUnK.js +90 -0
  106. package/dist/rolldown-runtime-CAFD8bLK.js +11 -0
  107. package/dist/style.css +2 -1
  108. package/dist/types/arrow.d.ts +1 -1
  109. package/dist/types/utils.d.ts +23 -0
  110. package/dist/types/vue-data-ui.d.ts +4775 -627
  111. package/dist/types/vue-ui-3d-bar.d.ts +64 -9
  112. package/dist/types/vue-ui-accordion.d.ts +4 -3
  113. package/dist/types/vue-ui-age-pyramid.d.ts +79 -9
  114. package/dist/types/vue-ui-annotator.d.ts +3 -5
  115. package/dist/types/vue-ui-bullet.d.ts +60 -9
  116. package/dist/types/vue-ui-bump.d.ts +65 -9
  117. package/dist/types/vue-ui-candlestick.d.ts +83 -9
  118. package/dist/types/vue-ui-carousel-table.d.ts +36 -6
  119. package/dist/types/vue-ui-chestnut.d.ts +66 -9
  120. package/dist/types/vue-ui-chord.d.ts +78 -9
  121. package/dist/types/vue-ui-circle-pack.d.ts +86 -9
  122. package/dist/types/vue-ui-cursor.d.ts +4 -2
  123. package/dist/types/vue-ui-dag.d.ts +92 -9
  124. package/dist/types/vue-ui-dashboard.d.ts +43 -6
  125. package/dist/types/vue-ui-digits.d.ts +4 -2
  126. package/dist/types/vue-ui-donut-evolution.d.ts +70 -9
  127. package/dist/types/vue-ui-donut.d.ts +92 -9
  128. package/dist/types/vue-ui-dumbbell.d.ts +65 -9
  129. package/dist/types/vue-ui-flow.d.ts +79 -9
  130. package/dist/types/vue-ui-funnel.d.ts +55 -9
  131. package/dist/types/vue-ui-galaxy.d.ts +83 -9
  132. package/dist/types/vue-ui-gauge.d.ts +64 -9
  133. package/dist/types/vue-ui-geo.d.ts +71 -9
  134. package/dist/types/vue-ui-gizmo.d.ts +17 -6
  135. package/dist/types/vue-ui-heatmap.d.ts +73 -9
  136. package/dist/types/vue-ui-history-plot.d.ts +82 -9
  137. package/dist/types/vue-ui-horizontal-bar.d.ts +84 -9
  138. package/dist/types/vue-ui-icon.d.ts +2 -2
  139. package/dist/types/vue-ui-kpi.d.ts +21 -7
  140. package/dist/types/vue-ui-mini-loader.d.ts +5 -3
  141. package/dist/types/vue-ui-molecule.d.ts +86 -9
  142. package/dist/types/vue-ui-mood-radar.d.ts +66 -9
  143. package/dist/types/vue-ui-nested-donuts.d.ts +80 -9
  144. package/dist/types/vue-ui-onion.d.ts +77 -9
  145. package/dist/types/vue-ui-parallel-coordinate-plot.d.ts +92 -9
  146. package/dist/types/vue-ui-pattern-seed.d.ts +1 -1
  147. package/dist/types/vue-ui-pattern.d.ts +2 -2
  148. package/dist/types/vue-ui-quadrant.d.ts +86 -9
  149. package/dist/types/vue-ui-quick-chart.d.ts +79 -9
  150. package/dist/types/vue-ui-radar.d.ts +83 -9
  151. package/dist/types/vue-ui-rating.d.ts +22 -6
  152. package/dist/types/vue-ui-relation-circle.d.ts +66 -9
  153. package/dist/types/vue-ui-ridgeline.d.ts +69 -9
  154. package/dist/types/vue-ui-rings.d.ts +70 -9
  155. package/dist/types/vue-ui-scatter.d.ts +67 -9
  156. package/dist/types/vue-ui-skeleton.d.ts +3 -2
  157. package/dist/types/vue-ui-smiley.d.ts +3 -2
  158. package/dist/types/vue-ui-spark-trend.d.ts +14 -6
  159. package/dist/types/vue-ui-sparkbar.d.ts +27 -6
  160. package/dist/types/vue-ui-sparkgauge.d.ts +20 -6
  161. package/dist/types/vue-ui-sparkhistogram.d.ts +24 -6
  162. package/dist/types/vue-ui-sparkline.d.ts +35 -6
  163. package/dist/types/vue-ui-sparkstackbar.d.ts +35 -6
  164. package/dist/types/vue-ui-stackbar.d.ts +85 -9
  165. package/dist/types/vue-ui-stackline.d.ts +81 -9
  166. package/dist/types/vue-ui-strip-plot.d.ts +66 -9
  167. package/dist/types/vue-ui-table-heatmap.d.ts +52 -6
  168. package/dist/types/vue-ui-table-sparkline.d.ts +30 -6
  169. package/dist/types/vue-ui-table.d.ts +10 -2
  170. package/dist/types/vue-ui-thermometer.d.ts +46 -9
  171. package/dist/types/vue-ui-timer.d.ts +31 -5
  172. package/dist/types/vue-ui-tiremarks.d.ts +46 -9
  173. package/dist/types/vue-ui-treemap.d.ts +73 -9
  174. package/dist/types/vue-ui-vertical-bar.d.ts +2 -2
  175. package/dist/types/vue-ui-waffle.d.ts +72 -9
  176. package/dist/types/vue-ui-wheel.d.ts +46 -9
  177. package/dist/types/vue-ui-word-cloud.d.ts +73 -9
  178. package/dist/types/vue-ui-world.d.ts +68 -9
  179. package/dist/types/vue-ui-xy-canvas.d.ts +75 -9
  180. package/dist/types/vue-ui-xy.d.ts +108 -10
  181. package/dist/useAutoSizeLabelsInsideViewbox-dp-3Gg97.js +50 -0
  182. package/dist/useChartAccessibility-Do37qcw2.js +12 -0
  183. package/dist/useConfig-BV0kTCnO.js +7431 -0
  184. package/dist/useFitSvgText-C-MEdAfe.js +63 -0
  185. package/dist/useNestedProp-Ck4hsrpu.js +10 -0
  186. package/dist/useObjectBindings-Ce_ZZk-f.js +189 -0
  187. package/dist/usePanZoom-B-4M_gmY.js +157 -0
  188. package/dist/usePrefersMotion-BywLbIko.js +15 -0
  189. package/dist/usePrinter-X0yWOynH.js +49 -0
  190. package/dist/useResponsive-CrAInupd.js +19 -0
  191. package/dist/useStableElementSize-0I1IpHPl.js +77 -0
  192. package/dist/useSvgExport-Dtu973wa.js +755 -0
  193. package/dist/useTableResponsive-DrM1xqII.js +24 -0
  194. package/dist/useThemeCheck-rFK9Zlb_.js +24 -0
  195. package/dist/useTimeLabelCollider-Dm55Emzg.js +57 -0
  196. package/dist/useTimeLabels-C0x7zUXP.js +272 -0
  197. package/dist/useUserOptionState-CjPJPTg2.js +15 -0
  198. package/dist/utils.js +27 -44
  199. package/dist/vClickOutside-CbX_bC9A.js +13 -0
  200. package/dist/vue-data-ui-DIh8ayZc.js +274 -0
  201. package/dist/vue-data-ui.js +76 -167
  202. package/dist/vue-ui-3d-bar-BZ8_6ylo.js +1747 -0
  203. package/dist/vue-ui-accordion-cVv18nTV.js +81 -0
  204. package/dist/vue-ui-age-pyramid-BR3i-CgS.js +1226 -0
  205. package/dist/vue-ui-annotator-B9mA_PlF.js +2899 -0
  206. package/dist/vue-ui-bullet-ByJdNLVf.js +700 -0
  207. package/dist/vue-ui-bump-Ps1gkA-F.js +1239 -0
  208. package/dist/vue-ui-candlestick-0C1QFoV4.js +1802 -0
  209. package/dist/vue-ui-carousel-table-1P28pCRK.js +445 -0
  210. package/dist/vue-ui-chestnut-CJOCGWwX.js +2000 -0
  211. package/dist/vue-ui-chord-BpiVJCCm.js +1381 -0
  212. package/dist/vue-ui-circle-pack-C3wvXz1f.js +1183 -0
  213. package/dist/vue-ui-cursor-CNn_3b24.js +283 -0
  214. package/dist/vue-ui-dag-DRVXVCJV.js +2899 -0
  215. package/dist/vue-ui-dashboard-gOXyms0o.js +503 -0
  216. package/dist/vue-ui-digits-DIKyN3z6.js +209 -0
  217. package/dist/vue-ui-donut-RogzKj0G.js +2396 -0
  218. package/dist/vue-ui-donut-evolution-Bxz06Qqf.js +1490 -0
  219. package/dist/vue-ui-dumbbell-D10T4gmB.js +1517 -0
  220. package/dist/vue-ui-flow-OK563Z46.js +1223 -0
  221. package/dist/vue-ui-funnel-nWmbiJu5.js +767 -0
  222. package/dist/vue-ui-galaxy-CtaTlHWZ.js +1062 -0
  223. package/dist/vue-ui-gauge-DWTEHJqX.js +910 -0
  224. package/dist/vue-ui-geo-DUpWvv5m.js +1504 -0
  225. package/dist/vue-ui-gizmo-vddzP4dM.js +225 -0
  226. package/dist/vue-ui-heatmap-CUE_zJQa.js +1556 -0
  227. package/dist/vue-ui-history-plot-CcRg_NgJ.js +1551 -0
  228. package/dist/vue-ui-horizontal-bar-DX5aZOEn.js +1669 -0
  229. package/dist/vue-ui-kpi-B74v84Hu.js +96 -0
  230. package/dist/vue-ui-mini-loader-BcCG6Yqb.js +125 -0
  231. package/dist/vue-ui-molecule-CVdB8rxf.js +912 -0
  232. package/dist/vue-ui-mood-radar-CWDVBOck.js +1138 -0
  233. package/dist/vue-ui-nested-donuts-Be8b5d81.js +1472 -0
  234. package/dist/vue-ui-onion-Cs90yQQZ.js +1188 -0
  235. package/dist/vue-ui-parallel-coordinate-plot-D-mZdTop.js +1413 -0
  236. package/dist/vue-ui-pattern-Bj-IPFr2.js +154 -0
  237. package/dist/vue-ui-pattern-seed-abRweCDE.js +61 -0
  238. package/dist/vue-ui-quadrant-DLD_ZR9M.js +1966 -0
  239. package/dist/vue-ui-quick-chart-UWjZdmzt.js +2459 -0
  240. package/dist/vue-ui-radar-Bxu07MOG.js +1214 -0
  241. package/dist/vue-ui-rating-DA9Bmfyb.js +343 -0
  242. package/dist/vue-ui-relation-circle-O5s1UJtt.js +914 -0
  243. package/dist/vue-ui-ridgeline-C3siN0d_.js +1612 -0
  244. package/dist/vue-ui-rings-DVVDtwhB.js +1231 -0
  245. package/dist/vue-ui-scatter-Cfvh06OC.js +2380 -0
  246. package/dist/vue-ui-skeleton-CxTmGCQp.js +2556 -0
  247. package/dist/vue-ui-smiley-B6nc7b71.js +356 -0
  248. package/dist/vue-ui-spark-trend--39vutfQ.js +438 -0
  249. package/dist/vue-ui-sparkbar-DhCRNOu4.js +393 -0
  250. package/dist/vue-ui-sparkgauge-6Igkqlqs.js +255 -0
  251. package/dist/vue-ui-sparkhistogram-BLEzZSZi.js +560 -0
  252. package/dist/vue-ui-sparkline-ppwKM4aO.js +1503 -0
  253. package/dist/vue-ui-sparkstackbar-uIzSq9Wh.js +660 -0
  254. package/dist/vue-ui-stackbar-CdOkMCbI.js +2235 -0
  255. package/dist/vue-ui-stackline-DifD9OXC.js +2362 -0
  256. package/dist/vue-ui-strip-plot-D1LjIVqK.js +1328 -0
  257. package/dist/vue-ui-table-WDkEyyQ0.js +1338 -0
  258. package/dist/vue-ui-table-heatmap-CfGJVzI3.js +334 -0
  259. package/dist/vue-ui-table-sparkline-BEWWP4Rq.js +697 -0
  260. package/dist/vue-ui-thermometer-CFWOAB8K.js +753 -0
  261. package/dist/vue-ui-timer-D1DQyf9i.js +439 -0
  262. package/dist/vue-ui-tiremarks-IeM3BlPW.js +542 -0
  263. package/dist/vue-ui-treemap-BGZM7ibv.js +1575 -0
  264. package/dist/vue-ui-waffle-a3dFVBk4.js +1350 -0
  265. package/dist/vue-ui-wheel-OnIRQJ8a.js +875 -0
  266. package/dist/vue-ui-word-cloud-C9SkyutR.js +1644 -0
  267. package/dist/vue-ui-world-CEevuFbk.js +14252 -0
  268. package/dist/vue-ui-xy-1hee-IEM.js +4114 -0
  269. package/dist/vue-ui-xy-canvas-D2f0d45c.js +1774 -0
  270. package/dist/vue_ui_3d_bar-CXKqO5Ej.js +185 -0
  271. package/dist/vue_ui_age_pyramid-BON8QI6X.js +301 -0
  272. package/dist/vue_ui_bullet-CE5sFT7u.js +186 -0
  273. package/dist/vue_ui_bump-frnXaXul.js +201 -0
  274. package/dist/vue_ui_candlestick-sY6UtOop.js +374 -0
  275. package/dist/vue_ui_chestnut-BiUZFv40.js +305 -0
  276. package/dist/vue_ui_chord-DpyR_b9A.js +275 -0
  277. package/dist/vue_ui_circle_pack-DBKz_Fi_.js +130 -0
  278. package/dist/vue_ui_dag-Ci_MOnvd.js +258 -0
  279. package/dist/vue_ui_donut-Cx2_BGcQ.js +358 -0
  280. package/dist/vue_ui_donut_evolution-CAJefrHs.js +717 -0
  281. package/dist/vue_ui_dumbbell-CClzAZTN.js +304 -0
  282. package/dist/vue_ui_flow-CCHO1Lo9.js +238 -0
  283. package/dist/vue_ui_funnel-h8q2mRpC.js +234 -0
  284. package/dist/vue_ui_galaxy-70vtkEBw.js +265 -0
  285. package/dist/vue_ui_gauge-C17CgfzN.js +178 -0
  286. package/dist/vue_ui_geo-C0UbQ0Lc.js +248 -0
  287. package/dist/vue_ui_heatmap-BqPP3J4M.js +319 -0
  288. package/dist/vue_ui_history_plot-C5nytDHh.js +413 -0
  289. package/dist/vue_ui_horizontal_bar-Bqxorkc_.js +341 -0
  290. package/dist/vue_ui_molecule-Dka4JBOp.js +231 -0
  291. package/dist/vue_ui_mood_radar-Dg4ijm53.js +281 -0
  292. package/dist/vue_ui_nested_donuts-BY9cOoHF.js +273 -0
  293. package/dist/vue_ui_onion-DTV9cup-.js +293 -0
  294. package/dist/vue_ui_parallel_coordinate_plot-CNWrDh96.js +278 -0
  295. package/dist/vue_ui_quadrant-3kjYvxpj.js +428 -0
  296. package/dist/vue_ui_quick_chart--VaYQuM4.js +139 -0
  297. package/dist/vue_ui_radar-Dxx9GJmj.js +306 -0
  298. package/dist/vue_ui_relation_circle-Cr0I2SoU.js +98 -0
  299. package/dist/vue_ui_ridgeline-CAtYca4b.js +767 -0
  300. package/dist/vue_ui_rings-DXC1VeX5.js +320 -0
  301. package/dist/vue_ui_scatter-D2S2j0ap.js +479 -0
  302. package/dist/vue_ui_spark_trend-BHMQ6_1p.js +82 -0
  303. package/dist/vue_ui_sparkbar-BR6hbuDE.js +64 -0
  304. package/dist/vue_ui_sparkgauge-xfPRHnMv.js +90 -0
  305. package/dist/vue_ui_sparkhistogram-CJRENZ1C.js +123 -0
  306. package/dist/vue_ui_sparkline-wgk7yO7E.js +151 -0
  307. package/dist/vue_ui_sparkstackbar-C5qZMmAl.js +175 -0
  308. package/dist/vue_ui_stackbar-BW_C3MXw.js +412 -0
  309. package/dist/vue_ui_stackline-DpI2LnjO.js +426 -0
  310. package/dist/vue_ui_strip_plot-8ZelqC5b.js +301 -0
  311. package/dist/vue_ui_table_heatmap-BGUjA0WA.js +80 -0
  312. package/dist/vue_ui_table_sparkline-i0Q-N_we.js +124 -0
  313. package/dist/vue_ui_thermometer-CuN7Gpez.js +123 -0
  314. package/dist/vue_ui_tiremarks-A6UHC0c3.js +122 -0
  315. package/dist/vue_ui_treemap-BQp06q-g.js +328 -0
  316. package/dist/vue_ui_vertical_bar-CJSD1FZS.js +247 -0
  317. package/dist/vue_ui_waffle-C_Ev4l7B.js +292 -0
  318. package/dist/vue_ui_wheel-DdkTPXJU.js +133 -0
  319. package/dist/vue_ui_word_cloud-B1PbsYPc.js +254 -0
  320. package/dist/vue_ui_xy-BYPqfYyx.js +482 -0
  321. package/dist/vue_ui_xy_canvas-CMHGNrLf.js +408 -0
  322. package/package.json +7 -7
  323. package/dist/A11yDataTable-BpmuNomI.js +0 -54
  324. package/dist/Arrow-dSvLFssU.js +0 -101
  325. package/dist/BaseDraggableDialog-Di8Hlru3.js +0 -249
  326. package/dist/BaseIcon-DX0hTWa-.js +0 -476
  327. package/dist/BaseLegendToggle-cMP8M2u0.js +0 -47
  328. package/dist/BaseScanner-C2j3TsSY.js +0 -36
  329. package/dist/BaseZoomControls-CVSC1-SU.js +0 -123
  330. package/dist/ColorPicker-bAxGcXK0.js +0 -271
  331. package/dist/DataTable-cMnb68Ik.js +0 -145
  332. package/dist/Legend-DGN5lY60.js +0 -104
  333. package/dist/NonSvgPenAndPaper-B6E0zEYe.js +0 -573
  334. package/dist/PackageVersion-BfrCAH6_.js +0 -10
  335. package/dist/PenAndPaper-CJDoB5H9.js +0 -527
  336. package/dist/RecursiveCircles-BE6GoMmo.js +0 -101
  337. package/dist/RecursiveLabels-BhQMS9Sm.js +0 -55
  338. package/dist/RecursiveLinks-BDwyYfP-.js +0 -83
  339. package/dist/Shape-CxJ5_Rre.js +0 -116
  340. package/dist/Slicer-D7UcO8sN.js +0 -1145
  341. package/dist/SlicerPreview-D_CgrN_7.js +0 -1580
  342. package/dist/SparkTooltip-D4bM-kfz.js +0 -68
  343. package/dist/Title-BbKoiBk2.js +0 -88
  344. package/dist/Tooltip-Cvt7Fi0Q.js +0 -299
  345. package/dist/UserOptions-DVduN6X7.js +0 -1474
  346. package/dist/_plugin-vue_export-helper-CHgC5LLL.js +0 -9
  347. package/dist/dom-to-png-DGvx6i5V.js +0 -262
  348. package/dist/exposedLib-sJvY1pST.js +0 -22
  349. package/dist/geoProjections-BFq2sOBY.js +0 -162
  350. package/dist/img-CjTQXS0U.js +0 -57
  351. package/dist/labelUtils-DX9oyq3C.js +0 -26
  352. package/dist/lib-DMzrGQHK.js +0 -2477
  353. package/dist/patternUtils-BINhU4Ky.js +0 -615
  354. package/dist/pdf-C4H4o1Cj.js +0 -88
  355. package/dist/useAutoSizeLabelsInsideViewbox-izlGDfwu.js +0 -55
  356. package/dist/useChartAccessibility-cp6XQtqi.js +0 -15
  357. package/dist/useConfig-CG4HT3wS.js +0 -7901
  358. package/dist/useFitSvgText-2crs6Fv5.js +0 -69
  359. package/dist/useNestedProp-DH0BEVVS.js +0 -13
  360. package/dist/useObjectBindings-Dixg-RIe.js +0 -228
  361. package/dist/usePanZoom-BbDhcKWf.js +0 -141
  362. package/dist/usePrefersMotion-Co0nj1eS.js +0 -17
  363. package/dist/usePrinter-C4t8DdQ-.js +0 -51
  364. package/dist/useResponsive-DfdjqQps.js +0 -195
  365. package/dist/useStableElementSize-C48ZVcZQ.js +0 -77
  366. package/dist/useSvgExport-BTG4hVPO.js +0 -870
  367. package/dist/useTableResponsive-BpfiEtzR.js +0 -26
  368. package/dist/useThemeCheck-C9Ccl7U9.js +0 -36
  369. package/dist/useTimeLabelCollider-D3JeJ6Ye.js +0 -86
  370. package/dist/useTimeLabels-Cv0tD9In.js +0 -307
  371. package/dist/useUserOptionState-B7Ej974k.js +0 -19
  372. package/dist/vClickOutside-C6WiFswA.js +0 -13
  373. package/dist/vue-data-ui-D1ZI7Y4l.js +0 -433
  374. package/dist/vue-ui-3d-bar-DEjKYzI5.js +0 -1824
  375. package/dist/vue-ui-accordion-DFtpH_16.js +0 -92
  376. package/dist/vue-ui-age-pyramid-LiC9hTjP.js +0 -1179
  377. package/dist/vue-ui-annotator-DrKnQoHf.js +0 -2991
  378. package/dist/vue-ui-bullet-DdxEINdq.js +0 -769
  379. package/dist/vue-ui-bump-CdgO1V7z.js +0 -1250
  380. package/dist/vue-ui-candlestick-DxJnPwto.js +0 -1775
  381. package/dist/vue-ui-carousel-table-CMefu5TI.js +0 -487
  382. package/dist/vue-ui-chestnut-BnGN72PO.js +0 -2001
  383. package/dist/vue-ui-chord-DWyar45U.js +0 -1457
  384. package/dist/vue-ui-circle-pack-CQ8vF2XH.js +0 -1076
  385. package/dist/vue-ui-cursor-HHOdkmyB.js +0 -260
  386. package/dist/vue-ui-dag-BDWPBElq.js +0 -3209
  387. package/dist/vue-ui-dashboard-Dg_I3X2a.js +0 -627
  388. package/dist/vue-ui-digits-CZmdir8V.js +0 -211
  389. package/dist/vue-ui-donut-BKegKHxj.js +0 -2608
  390. package/dist/vue-ui-donut-evolution-047dE4Lu.js +0 -1578
  391. package/dist/vue-ui-dumbbell-BL4ZMChj.js +0 -1552
  392. package/dist/vue-ui-flow-BAqtyunQ.js +0 -1279
  393. package/dist/vue-ui-funnel-Pl2sEOZs.js +0 -823
  394. package/dist/vue-ui-galaxy-CBF5Wsax.js +0 -1108
  395. package/dist/vue-ui-gauge-COV_S0Vp.js +0 -955
  396. package/dist/vue-ui-geo-CaPXElPf.js +0 -1510
  397. package/dist/vue-ui-gizmo-Csn7up96.js +0 -238
  398. package/dist/vue-ui-heatmap-Cpb0BYLa.js +0 -1694
  399. package/dist/vue-ui-history-plot-ZZEdzFCE.js +0 -1564
  400. package/dist/vue-ui-horizontal-bar-BonPYUZf.js +0 -1735
  401. package/dist/vue-ui-kpi-DoHhSsDK.js +0 -130
  402. package/dist/vue-ui-mini-loader-DOTBVCLE.js +0 -138
  403. package/dist/vue-ui-molecule-mVYnXouV.js +0 -945
  404. package/dist/vue-ui-mood-radar-DPvwnc3z.js +0 -1197
  405. package/dist/vue-ui-nested-donuts-C7E6TXrZ.js +0 -1702
  406. package/dist/vue-ui-onion-BGIlFhGB.js +0 -1207
  407. package/dist/vue-ui-parallel-coordinate-plot-C6G_A9ua.js +0 -1432
  408. package/dist/vue-ui-pattern-mXZW_pvA.js +0 -146
  409. package/dist/vue-ui-pattern-seed-BcNlxb2i.js +0 -36
  410. package/dist/vue-ui-quadrant-CVpIeYOB.js +0 -1918
  411. package/dist/vue-ui-quick-chart-CcV8qn9-.js +0 -2514
  412. package/dist/vue-ui-radar-G4AV1rBo.js +0 -1259
  413. package/dist/vue-ui-rating-CqPlP88P.js +0 -370
  414. package/dist/vue-ui-relation-circle-CkZ8oFVV.js +0 -856
  415. package/dist/vue-ui-ridgeline-CBTyYn6Q.js +0 -1737
  416. package/dist/vue-ui-rings-CSIOqFiP.js +0 -1256
  417. package/dist/vue-ui-scatter-AuC46ufT.js +0 -2345
  418. package/dist/vue-ui-skeleton-YD6rZjY_.js +0 -2475
  419. package/dist/vue-ui-smiley-CY0WFv2j.js +0 -391
  420. package/dist/vue-ui-spark-trend-D8KGIt-R.js +0 -423
  421. package/dist/vue-ui-sparkbar-BjWGJjzN.js +0 -424
  422. package/dist/vue-ui-sparkgauge-Dab5mss7.js +0 -285
  423. package/dist/vue-ui-sparkhistogram-D0rsmiPh.js +0 -559
  424. package/dist/vue-ui-sparkline-BCaauQuX.js +0 -1550
  425. package/dist/vue-ui-sparkstackbar-NT5yD6xA.js +0 -672
  426. package/dist/vue-ui-stackbar-ChBk_A1c.js +0 -2393
  427. package/dist/vue-ui-stackline-Cujamlze.js +0 -2490
  428. package/dist/vue-ui-strip-plot-CGBumG6I.js +0 -1293
  429. package/dist/vue-ui-table-BX2iMku4.js +0 -1726
  430. package/dist/vue-ui-table-heatmap-KXgXYVXm.js +0 -353
  431. package/dist/vue-ui-table-sparkline-C3NWnry0.js +0 -803
  432. package/dist/vue-ui-thermometer-DvdceZB1.js +0 -743
  433. package/dist/vue-ui-timer-XWAbvuAY.js +0 -504
  434. package/dist/vue-ui-tiremarks-B-YI1RlT.js +0 -578
  435. package/dist/vue-ui-treemap-AzorGfmd.js +0 -1757
  436. package/dist/vue-ui-waffle-CKtUvdTE.js +0 -1442
  437. package/dist/vue-ui-wheel-CnsLEArZ.js +0 -908
  438. package/dist/vue-ui-word-cloud-iAme2ihe.js +0 -1644
  439. package/dist/vue-ui-world-D5rrC9rw.js +0 -14452
  440. package/dist/vue-ui-xy-C_Q9chQe.js +0 -4468
  441. package/dist/vue-ui-xy-canvas-DG0299qE.js +0 -2107
  442. package/dist/vue_ui_3d_bar-CL0iX8Qi.js +0 -22
  443. package/dist/vue_ui_age_pyramid-8H8WSL7J.js +0 -22
  444. package/dist/vue_ui_bullet-Ckqieba5.js +0 -22
  445. package/dist/vue_ui_bump-CIht647H.js +0 -22
  446. package/dist/vue_ui_candlestick-BAMn-VGw.js +0 -22
  447. package/dist/vue_ui_chestnut-BloFvDuV.js +0 -22
  448. package/dist/vue_ui_chord-Bc1_ocwK.js +0 -22
  449. package/dist/vue_ui_circle_pack-CLmw8nHe.js +0 -22
  450. package/dist/vue_ui_dag-ZOwuDBZ8.js +0 -22
  451. package/dist/vue_ui_donut-CA4dgV8J.js +0 -22
  452. package/dist/vue_ui_donut_evolution-DFQU-rqE.js +0 -22
  453. package/dist/vue_ui_dumbbell-BCOHDiPk.js +0 -22
  454. package/dist/vue_ui_flow-BErINgox.js +0 -22
  455. package/dist/vue_ui_funnel-yuaMZ-yb.js +0 -22
  456. package/dist/vue_ui_galaxy-D95AN4FT.js +0 -22
  457. package/dist/vue_ui_gauge-BMEuRC4J.js +0 -22
  458. package/dist/vue_ui_geo--kg4VoVX.js +0 -22
  459. package/dist/vue_ui_heatmap-C9u993qE.js +0 -22
  460. package/dist/vue_ui_history_plot-BCKk1CrQ.js +0 -22
  461. package/dist/vue_ui_horizontal_bar-BEagrV0T.js +0 -22
  462. package/dist/vue_ui_molecule-BtvlINUh.js +0 -22
  463. package/dist/vue_ui_mood_radar-BUs6Fdn8.js +0 -22
  464. package/dist/vue_ui_nested_donuts-DvTrWT_C.js +0 -22
  465. package/dist/vue_ui_onion-CxWH9_OZ.js +0 -22
  466. package/dist/vue_ui_parallel_coordinate_plot-DH3cFJ3n.js +0 -22
  467. package/dist/vue_ui_quadrant-DjRs--Uz.js +0 -22
  468. package/dist/vue_ui_quick_chart-DMCjEjPe.js +0 -22
  469. package/dist/vue_ui_radar-DryGBOrz.js +0 -22
  470. package/dist/vue_ui_relation_circle-CCroen7h.js +0 -22
  471. package/dist/vue_ui_ridgeline-j4rVmpEp.js +0 -22
  472. package/dist/vue_ui_rings-CxOrekqA.js +0 -22
  473. package/dist/vue_ui_scatter-Bu1EAy9H.js +0 -22
  474. package/dist/vue_ui_spark_trend-3BjrSprO.js +0 -22
  475. package/dist/vue_ui_sparkbar-BsMzz5Um.js +0 -22
  476. package/dist/vue_ui_sparkgauge-KnjASOZs.js +0 -22
  477. package/dist/vue_ui_sparkhistogram-GBdzIVvS.js +0 -22
  478. package/dist/vue_ui_sparkline-CQ8DJVJx.js +0 -22
  479. package/dist/vue_ui_sparkstackbar-BSexvOuM.js +0 -22
  480. package/dist/vue_ui_stackbar-CuDC4O4b.js +0 -22
  481. package/dist/vue_ui_stackline-QTh-nuxE.js +0 -22
  482. package/dist/vue_ui_strip_plot-B9ypi_F3.js +0 -22
  483. package/dist/vue_ui_table_heatmap-CkvipPVy.js +0 -16
  484. package/dist/vue_ui_table_sparkline-yQdijcyJ.js +0 -22
  485. package/dist/vue_ui_thermometer-BTmjRBH8.js +0 -22
  486. package/dist/vue_ui_tiremarks-DBotWfi8.js +0 -22
  487. package/dist/vue_ui_treemap-D9-AIkT-.js +0 -22
  488. package/dist/vue_ui_vertical_bar-CELc39b8.js +0 -18
  489. package/dist/vue_ui_waffle-M2h-uJQ_.js +0 -22
  490. package/dist/vue_ui_wheel-LqBz3lv4.js +0 -22
  491. package/dist/vue_ui_word_cloud-mKAtBxHR.js +0 -22
  492. package/dist/vue_ui_xy-esktmpg-.js +0 -22
  493. package/dist/vue_ui_xy_canvas-6BBDSowT.js +0 -22
@@ -1,2345 +0,0 @@
1
- import { defineAsyncComponent as de, computed as A, ref as k, toRefs as ca, watch as Ze, shallowRef as nl, onMounted as da, nextTick as Je, onBeforeUnmount as ha, openBlock as r, createElementBlock as y, unref as f, normalizeStyle as ie, normalizeClass as ul, createElementVNode as M, toDisplayString as F, createCommentVNode as p, createBlock as se, withCtx as B, renderSlot as D, normalizeProps as J, guardReactiveProps as Q, createSlots as il, createVNode as Ie, Fragment as U, renderList as K, Teleport as fa, resolveDynamicComponent as pa, mergeProps as ga, createTextVNode as rl } from "vue";
2
- import { j as xa, t as vl, m as ba, p as ge, o as yl, q as Mt, n as ma, r as cl, k as ee, l as j, K as R, ak as ka, s as $t, am as wa, c as Aa, u as Ee, X as Ma, al as $a, D as dl, E as hl, a0 as _a, a1 as La, T as Sa, U as Ca, a3 as Ta } from "./lib-DMzrGQHK.js";
3
- import { t as za, u as Ba } from "./useResponsive-DfdjqQps.js";
4
- import { u as Pa } from "./useConfig-CG4HT3wS.js";
5
- import { u as Oa, B as Da } from "./BaseScanner-C2j3TsSY.js";
6
- import { u as Na } from "./usePrinter-C4t8DdQ-.js";
7
- import { u as Ia } from "./useSvgExport-BTG4hVPO.js";
8
- import { u as _t } from "./useNestedProp-DH0BEVVS.js";
9
- import { u as Ea } from "./useThemeCheck-C9Ccl7U9.js";
10
- import { u as Wa } from "./useUserOptionState-B7Ej974k.js";
11
- import { u as Xa } from "./useChartAccessibility-cp6XQtqi.js";
12
- import Ya from "./img-CjTQXS0U.js";
13
- import { _ as Lt } from "./Shape-CxJ5_Rre.js";
14
- import Fa from "./Title-BbKoiBk2.js";
15
- import Ra from "./vue_ui_scatter-Bu1EAy9H.js";
16
- import Va from "./Legend-DGN5lY60.js";
17
- import { A as Ua } from "./A11yDataTable-BpmuNomI.js";
18
- import { B as ja } from "./BaseLegendToggle-cMP8M2u0.js";
19
- import { _ as qa } from "./_plugin-vue_export-helper-CHgC5LLL.js";
20
- const Ga = ["id"], Ha = ["id"], Ka = {
21
- key: 0,
22
- class: "sr-only",
23
- "aria-live": "polite",
24
- "aria-atomic": "true"
25
- }, Za = ["id"], Ja = { style: { position: "relative" } }, Qa = ["xmlns", "aria-describedby", "viewBox"], eo = ["width", "height"], to = { key: 1 }, lo = ["x1", "x2", "y1", "y2", "stroke", "stroke-width"], ao = ["x1", "x2", "y1", "y2", "stroke", "stroke-width"], oo = { key: 2 }, so = ["x1", "x2", "y1", "y2", "stroke", "stroke-width"], no = ["opacity"], uo = ["x1", "x2", "y1", "y2", "stroke", "stroke-width"], io = ["x", "y", "font-size", "fill", "stroke"], ro = { key: 4 }, vo = ["x1", "x2", "y1", "y2", "stroke", "stroke-width"], yo = ["opacity"], co = ["x1", "x2", "y1", "y2", "stroke", "stroke-width"], ho = ["x", "y", "font-size", "fill", "stroke"], fo = { key: 6 }, po = ["id"], go = ["stop-color"], xo = ["stop-color"], bo = ["id"], mo = ["stop-color"], ko = ["stop-color"], wo = ["x", "y", "width", "height", "fill", "stroke", "stroke-width", "rx"], Ao = ["x", "y", "width", "height", "onMouseenter"], Mo = {
26
- key: 2,
27
- style: { "pointer-events": "none" }
28
- }, $o = ["x", "y", "width", "height", "fill", "fill-opacity"], _o = ["x1", "x2", "y2", "stroke", "stroke-dasharray", "stroke-width"], Lo = ["x1", "x2", "y2", "stroke", "stroke-dasharray", "stroke-width"], So = ["x", "y", "height", "width", "fill", "stroke", "stroke-width", "rx"], Co = ["x", "y", "width", "height", "onMouseenter"], To = {
29
- key: 2,
30
- style: { "pointer-events": "none" }
31
- }, zo = ["x", "y", "width", "height", "fill", "fill-opacity"], Bo = ["x1", "x2", "y1", "y2", "stroke", "stroke-dasharray", "stroke-width"], Po = ["x1", "x2", "y1", "y2", "stroke", "stroke-dasharray", "stroke-width"], Oo = {
32
- key: 0,
33
- style: { "pointer-events": "none" }
34
- }, Do = ["d", "stroke", "stroke-width"], No = ["d", "stroke", "stroke-width"], Io = ["d", "stroke", "stroke-width"], Eo = ["d", "stroke", "stroke-width"], Wo = { key: 7 }, Xo = ["points", "fill", "stroke-width", "stroke-dasharray", "stroke"], Yo = { key: 0 }, Fo = ["cx", "cy", "r", "fill", "stroke", "stroke-width", "onMouseover", "onMouseleave", "onClick"], Ro = { key: 1 }, Vo = ["x", "y", "font-size", "fill", "onMouseover", "onMouseleave", "onClick"], Uo = ["clip-path"], jo = ["d", "fill", "stroke", "stroke-width", "stroke-opacity"], qo = {
35
- key: 0,
36
- style: { "pointer-events": "none" }
37
- }, Go = ["x", "y", "width", "height"], Ho = {
38
- key: 10,
39
- style: { "pointer-events": "none !important" }
40
- }, Ko = ["x1", "x2", "y1", "y2", "stroke", "stroke-width", "stroke-dasharray"], Zo = ["x1", "x2", "y1", "y2", "stroke", "stroke-width", "stroke-dasharray"], Jo = ["x", "y", "font-size", "fill", "font-weight", "text-anchor"], Qo = ["x", "y", "font-size", "fill", "font-weight"], es = ["x", "y", "font-size", "fill"], ts = ["x", "y", "font-size", "fill"], ls = ["cx", "cy", "r", "fill", "stroke", "stroke-width"], as = ["cx", "cy", "r", "fill", "stroke", "stroke-width"], os = ["x", "y", "font-size", "fill", "font-weight", "text-anchor"], ss = ["id", "transform", "font-size", "font-weight", "fill"], ns = ["font-size", "fill", "transform"], us = ["transform", "font-size", "fill"], is = ["x", "y", "font-size", "fill"], rs = ["x", "y", "font-size", "fill"], vs = ["font-size", "font-weight", "fill", "x", "y"], ys = ["id"], cs = ["x", "y", "width", "height"], ds = {
41
- key: 15,
42
- style: { pointerEvents: "none" }
43
- }, hs = ["x1", "x2", "y1", "y2", "stroke-dasharray", "stroke", "stroke-width", "clip-path"], fs = ["x", "y", "fill", "font-size", "font-weight"], ps = {
44
- key: 0,
45
- style: { position: "absolute", top: "100%", left: "0", width: "100%" },
46
- "data-dom-to-png-ignore": "",
47
- "aria-hidden": "true"
48
- }, gs = {
49
- key: 6,
50
- class: "vue-data-ui-watermark"
51
- }, xs = ["id"], bs = ["onClick"], ms = {
52
- key: 0,
53
- style: { width: "100%", display: "flex", "align-items": "center", "justify-content": "center" }
54
- }, ks = {
55
- viewBox: "0 0 20 20",
56
- height: "20",
57
- width: "20",
58
- style: { overflow: "hidden", background: "transparent" }
59
- }, ws = { key: 0 }, As = ["innerHTML"], Ms = {
60
- __name: "vue-ui-scatter",
61
- props: {
62
- config: {
63
- type: Object,
64
- default() {
65
- return {};
66
- }
67
- },
68
- dataset: {
69
- type: Array,
70
- default() {
71
- return [];
72
- }
73
- }
74
- },
75
- emits: ["copyAlt"],
76
- setup(fl, { expose: pl, emit: gl }) {
77
- const xl = de(() => import("./Tooltip-Cvt7Fi0Q.js")), bl = de(() => import("./BaseIcon-DX0hTWa-.js")), ml = de(() => import("./vue-ui-accordion-DFtpH_16.js")), kl = de(() => import("./DataTable-cMnb68Ik.js")), wl = de(
78
- () => import("./PenAndPaper-CJDoB5H9.js")
79
- ), Al = de(
80
- () => import("./UserOptions-DVduN6X7.js")
81
- ), Ml = de(
82
- () => import("./PackageVersion-BfrCAH6_.js")
83
- ), $l = de(
84
- () => import("./BaseDraggableDialog-Di8Hlru3.js")
85
- ), { vue_ui_scatter: _l } = Pa(), { isThemeValid: Ll, warnInvalidTheme: Sl } = Ea(), ae = fl, Cl = gl, We = A(() => !!ae.dataset && ae.dataset.length), I = k(xa()), Xe = k(!1), Qe = k(""), St = k(0), ne = k(null), Ct = k(null), Tt = k(null), zt = k(null), Bt = k(null), Pt = k(0), Ot = k(0), Dt = k(0), E = k([]), Nt = k(!1), $e = k(null), _e = k(null), Le = k(null), et = k(null), Ye = k(!1), Fe = k(!1), tt = k(null), lt = k(null), Tl = k(null), at = k(null), ot = k(null), st = k(null), xe = k(null), It = k({ x: 0, y: 0 }), Se = k("pointer"), Re = k(!1), Ce = k(null), e = k(vt()), he = A(
86
- () => e.value.userOptions.useCursorPointer
87
- );
88
- function zl(t = 100, a = 0.8, l = {}) {
89
- const { meanX: s = 0, sdX: o = 1, meanY: n = 0, sdY: u = 1, seed: c } = l;
90
- let i = (c ?? Math.floor(Math.random() * 2 ** 31)) >>> 0;
91
- const g = () => (i = i * 1664525 + 1013904223 >>> 0, i / 2 ** 32), L = () => {
92
- let m = 0, V = 0;
93
- for (; m === 0; ) m = g();
94
- for (; V === 0; ) V = g();
95
- return Math.sqrt(-2 * Math.log(m)) * Math.cos(2 * Math.PI * V);
96
- }, d = t / 2, b = Array.from({ length: d }, L), N = Array.from({ length: d }, L), w = (m) => m.reduce((V, Ne) => V + Ne, 0) / m.length, P = w(b), X = w(N);
97
- for (let m = 0; m < d; m += 1)
98
- b[m] -= P, N[m] -= X;
99
- const z = (m, V) => m.reduce((Ne, Ke, At) => Ne + Ke * V[At], 0), S = (m) => z(m, m), x = z(N, b) / S(b), O = N.map((m, V) => m - x * b[V]), Z = S(b) / d, oe = S(O) / d, ce = Math.sqrt((1 - a * a) * Z / oe), H = b.map((m, V) => a * m + ce * O[V]), pe = b.concat(b.map((m) => -m)), wt = H.concat(H.map((m) => -m)), Oe = (m) => Math.sqrt(S(m) / m.length), Ae = (m, V, Ne) => {
100
- const Ke = Oe(m);
101
- return m.map((At) => Ne + (Ke ? At / Ke * V : 0));
102
- }, Me = Ae(pe, o, s), De = Ae(wt, u, n);
103
- for (let m = Me.length - 1; m > 0; m -= 1) {
104
- const V = Math.floor(g() * (m + 1));
105
- [Me[m], Me[V]] = [Me[V], Me[m]], [De[m], De[V]] = [De[V], De[m]];
106
- }
107
- return Me.map((m, V) => ({ x: m, y: De[V] }));
108
- }
109
- const Bl = A(() => vl({
110
- defaultConfig: {
111
- userOptions: { show: !1 },
112
- table: { show: !1 },
113
- useCssAnimation: !1,
114
- style: {
115
- backgroundColor: "#99999930",
116
- layout: {
117
- axis: {
118
- stroke: "#6A6A6A"
119
- },
120
- correlation: {
121
- label: { show: !1 }
122
- },
123
- dataLabels: {
124
- xAxis: { show: !1 },
125
- yAxis: { show: !1 }
126
- },
127
- marginalBars: {
128
- fill: "#99999960"
129
- },
130
- padding: { top: 12, right: 12, bottom: 12, left: 12 },
131
- plots: {
132
- stroke: "#6A6A6A"
133
- }
134
- },
135
- legend: {
136
- backgroundColor: "transparent"
137
- }
138
- }
139
- },
140
- userConfig: e.value.skeletonConfig ?? {}
141
- })), { loading: nt, FINAL_DATASET: ut, manualLoading: it } = Oa({
142
- ...ca(ae),
143
- FINAL_CONFIG: e,
144
- prepareConfig: vt,
145
- skeletonDataset: ae.config?.skeletonDataset ?? [
146
- {
147
- name: "",
148
- color: "#999999",
149
- values: zl(100, 0.5, { seed: 42 })
150
- }
151
- ],
152
- skeletonConfig: vl({
153
- defaultConfig: e.value,
154
- userConfig: Bl.value
155
- })
156
- }), { userOptionsVisible: rt, setUserOptionsVisibility: Et, keepUserOptionState: Wt } = Wa({ config: e.value }), { svgRef: re } = Xa({
157
- config: e.value.style.title
158
- });
159
- function vt() {
160
- const t = _t({
161
- userConfig: ae.config,
162
- defaultConfig: _l
163
- }), a = t.theme;
164
- if (!a) return t;
165
- if (!Ll.value(t))
166
- return Sl(t), t;
167
- const l = _t({
168
- userConfig: Ra[a] || ae.config,
169
- defaultConfig: t
170
- }), s = _t({
171
- userConfig: ae.config,
172
- defaultConfig: l
173
- });
174
- return {
175
- ...s,
176
- customPalette: s.customPalette.length ? s.customPalette : ba[a] || ge
177
- };
178
- }
179
- Ze(
180
- () => ae.config,
181
- (t) => {
182
- nt.value || (e.value = vt()), rt.value = !e.value.userOptions.showOnChartHover, Yt(), Pt.value += 1, Ot.value += 1, Dt.value += 1, te.value.showTable = e.value.table.show, te.value.showTooltip = e.value.style.tooltip.show, Xt.value && e.value.usePerformanceMode && console.warn(
183
- `VueUiScatter : You are using performance mode
184
-
185
- - downsampling is disabled in this mode, all plots are rendered
186
-
187
- - plot significance is not active in this mode (all plots have the same opacity)
188
-
189
- - Depending on plot density, shapes might not display a border (stroke) to avoid fuzziness
190
-
191
- ℹ️ To remove this warning, set config.debug to false.`
192
- );
193
- },
194
- { deep: !0 }
195
- ), Ze(
196
- () => ae.dataset,
197
- (t) => {
198
- Array.isArray(t) && t.length > 0 && (it.value = !1);
199
- },
200
- { deep: !0 }
201
- );
202
- const ve = nl(null), be = nl(null);
203
- da(async () => {
204
- Yt(), await Je(), Nt.value = !0;
205
- });
206
- const Xt = A(() => !!e.value.debug);
207
- function Yt() {
208
- if (yl(ae.dataset) && (Mt({
209
- componentName: "VueUiScatter",
210
- type: "dataset",
211
- debug: Xt.value
212
- }), it.value = !0), yl(ae.dataset) || (it.value = e.value.loading), e.value.responsive) {
213
- const t = za(() => {
214
- const { width: a, height: l } = Ba({
215
- chart: ne.value,
216
- title: e.value.style.title.text ? Ct.value : null,
217
- legend: e.value.style.legend.show ? Tt.value : null,
218
- source: zt.value,
219
- noTitle: Bt.value
220
- });
221
- requestAnimationFrame(() => {
222
- Y.value.width = a, Y.value.height = l;
223
- });
224
- });
225
- ve.value && (be.value && ve.value.unobserve(be.value), ve.value.disconnect()), ve.value = new ResizeObserver(t), be.value = ne.value.parentNode, ve.value.observe(be.value);
226
- }
227
- }
228
- ha(() => {
229
- ve.value && (be.value && ve.value.unobserve(be.value), ve.value.disconnect());
230
- });
231
- const { isPrinting: yt, isImaging: ct, generatePdf: Ft, generateImage: Rt } = Na({
232
- elementId: `vue-ui-scatter_${I.value}`,
233
- fileName: e.value.style.title.text || "vue-ui-scatter",
234
- options: e.value.userOptions.print
235
- }), Pl = A(() => e.value.userOptions.show && !e.value.style.title.text), Vt = A(() => ma(e.value.customPalette)), te = k({
236
- showTable: e.value.table.show,
237
- showTooltip: e.value.style.tooltip.show
238
- });
239
- Ze(
240
- e,
241
- () => {
242
- te.value = {
243
- showTable: e.value.table.show,
244
- showTooltip: e.value.style.tooltip.show
245
- };
246
- },
247
- { immediate: !0 }
248
- );
249
- const Y = k({
250
- height: e.value.style.layout.height,
251
- width: e.value.style.layout.width
252
- }), Ve = A(() => e.value.style.layout.marginalBars.show ? e.value.style.layout.marginalBars.size + e.value.style.layout.marginalBars.offset : 0);
253
- function Ol() {
254
- let t = 0;
255
- if (e.value.style.layout.dataLabels.yAxis.scales.show && ot.value)
256
- try {
257
- t = Array.from(
258
- ot.value.querySelectorAll("text")
259
- ).reduce((s, o) => {
260
- const n = o.getComputedTextLength();
261
- return n > s ? n : s;
262
- }, 0);
263
- } catch {
264
- t = 0;
265
- }
266
- let a = 0;
267
- if (tt.value)
268
- try {
269
- a = tt.value.getBBox().width;
270
- } catch {
271
- a = 0;
272
- }
273
- return Math.max(
274
- a,
275
- t ? t + 12 : 0
276
- );
277
- }
278
- function Dl() {
279
- let t = 0;
280
- if (lt.value)
281
- try {
282
- const l = lt.value.getBBox(), s = l.x + l.width - Y.value.width;
283
- t = s > 0 ? s + 6 : 0;
284
- } catch {
285
- t = 0;
286
- }
287
- let a = 0;
288
- if (e.value.style.layout.dataLabels.xAxis.scales.show && st.value)
289
- try {
290
- a = Array.from(
291
- st.value.querySelectorAll("text")
292
- ).reduce(
293
- (s, o) => {
294
- const n = o.getBBox(), u = n.x + n.width - Y.value.width, c = u > 0 ? u + 6 : 0;
295
- return c > s ? c : s;
296
- },
297
- 0
298
- );
299
- } catch {
300
- a = 0;
301
- }
302
- return t > a ? t : a;
303
- }
304
- const v = A(() => {
305
- let t = 0, a = 0, l = 0;
306
- if (t = Ol(), a = Dl(), at.value)
307
- try {
308
- l = at.value.getBBox().height + 6;
309
- } catch {
310
- l = 0;
311
- }
312
- return {
313
- top: e.value.style.layout.padding.top + Ve.value + e.value.style.layout.dataLabels.yAxis.fontSize * 2,
314
- right: Y.value.width - e.value.style.layout.padding.right - Ve.value - 6 - a,
315
- bottom: Y.value.height - e.value.style.layout.padding.bottom - l,
316
- left: e.value.style.layout.padding.left + t,
317
- height: Y.value.height - e.value.style.layout.padding.top - e.value.style.layout.padding.bottom - Ve.value - l - e.value.style.layout.dataLabels.yAxis.fontSize * 2,
318
- width: Y.value.width - e.value.style.layout.padding.left - e.value.style.layout.padding.right - Ve.value - t - a - 6
319
- };
320
- }), Ue = A(() => {
321
- ut.value.forEach((o, n) => {
322
- cl({
323
- datasetObject: o,
324
- requiredAttributes: ["values"]
325
- }).forEach((u) => {
326
- Mt({
327
- componentName: "VueUiScatter",
328
- type: "datasetSerieAttribute",
329
- property: u,
330
- index: n
331
- });
332
- }), o.values && o.values.forEach((u, c) => {
333
- cl({
334
- datasetObject: u,
335
- requiredAttributes: ["x", "y"]
336
- }).forEach((i) => {
337
- Mt({
338
- componentName: "VueUiScatter",
339
- type: "datasetSerieAttribute",
340
- property: `values.${i}`,
341
- index: `${n} - ${c}`
342
- });
343
- });
344
- });
345
- });
346
- const t = Math.min(
347
- ...le.value.filter((o) => !E.value.includes(o.id)).flatMap((o) => o.values.map((n) => n.x))
348
- ), a = Math.max(
349
- ...le.value.filter((o) => !E.value.includes(o.id)).flatMap((o) => o.values.map((n) => n.x))
350
- ), l = Math.min(
351
- ...le.value.filter((o) => !E.value.includes(o.id)).flatMap((o) => o.values.map((n) => n.y))
352
- ), s = Math.max(
353
- ...le.value.filter((o) => !E.value.includes(o.id)).flatMap((o) => o.values.map((n) => n.y))
354
- );
355
- return {
356
- xMin: t < 0 ? t : 0,
357
- xMax: a,
358
- yMin: l < 0 ? l : 0,
359
- yMax: s
360
- };
361
- }), je = A(() => {
362
- const t = e.value.style.layout.axis;
363
- return {
364
- xMin: t.xMin !== null && t.xMin !== void 0 ? t.xMin : Ue.value.xMin,
365
- xMax: t.xMax !== null && t.xMax !== void 0 ? t.xMax : Ue.value.xMax,
366
- yMin: t.yMin !== null && t.yMin !== void 0 ? t.yMin : Ue.value.yMin,
367
- yMax: t.yMax !== null && t.yMax !== void 0 ? t.yMax : Ue.value.yMax
368
- };
369
- });
370
- function Nl(t) {
371
- return Number.isFinite(t) ? t < 2 ? 2 : Math.trunc(t) : 5;
372
- }
373
- function qe(t) {
374
- return t.roundingValue !== void 0 && t.roundingValue !== null ? t.roundingValue : t.rounding !== void 0 && t.rounding !== null ? t.rounding : 0;
375
- }
376
- function Ut({ minimum: t, maximum: a, stepCount: l, useNiceScale: s }) {
377
- const o = Nl(l);
378
- if (t === a) {
379
- const n = t === 0 ? 1 : Math.abs(t) * 0.01, u = a + n;
380
- return (s ? dl : hl)(t, u, o);
381
- }
382
- return (s ? dl : hl)(t, a, o);
383
- }
384
- const dt = A(() => {
385
- const t = e.value.style.layout.dataLabels.xAxis;
386
- return Ut({
387
- minimum: je.value.xMin,
388
- maximum: je.value.xMax,
389
- stepCount: t.scales.steps,
390
- useNiceScale: t.scales.useNiceScale
391
- });
392
- }), ht = A(() => {
393
- const t = e.value.style.layout.dataLabels.yAxis;
394
- return Ut({
395
- minimum: je.value.yMin,
396
- maximum: je.value.yMax,
397
- stepCount: t.scales.steps,
398
- useNiceScale: t.scales.useNiceScale
399
- });
400
- }), q = A(() => ({
401
- xMin: dt.value.min,
402
- xMax: dt.value.max,
403
- yMin: ht.value.min,
404
- yMax: ht.value.max
405
- })), jt = A(() => {
406
- const t = e.value.style.layout.dataLabels.xAxis, a = t.scales.labels;
407
- return dt.value.ticks.map((l) => ({
408
- value: l,
409
- x: ft(l),
410
- label: ee(
411
- a.formatter,
412
- R(l),
413
- j({
414
- p: e.value.style.layout.plots.selectors.labels.prefix,
415
- v: R(l),
416
- s: e.value.style.layout.plots.selectors.labels.suffix,
417
- r: qe(t)
418
- })
419
- )
420
- }));
421
- }), qt = A(() => {
422
- const t = e.value.style.layout.dataLabels.yAxis, a = t.scales.labels;
423
- return ht.value.ticks.map((l) => ({
424
- value: l,
425
- y: pt(l),
426
- label: ee(
427
- a.formatter,
428
- R(l),
429
- j({
430
- p: e.value.style.layout.plots.selectors.labels.prefix,
431
- v: R(l),
432
- s: e.value.style.layout.plots.selectors.labels.suffix,
433
- r: qe(t)
434
- })
435
- )
436
- }));
437
- }), Il = A(() => !!h.value && e.value.style.layout.dataLabels.xAxis.scales.show), El = A(() => !!h.value && e.value.style.layout.dataLabels.yAxis.scales.show), Wl = A(() => {
438
- if (!h.value) return "";
439
- const t = e.value.style.layout.dataLabels.xAxis, a = t.scales.labels;
440
- return ee(
441
- a.formatter,
442
- R(h.value.v.x),
443
- j({
444
- p: e.value.style.layout.plots.selectors.labels.prefix,
445
- v: R(h.value.v.x),
446
- s: e.value.style.layout.plots.selectors.labels.suffix,
447
- r: qe(t)
448
- }),
449
- { datapoint: h.value }
450
- );
451
- }), Xl = A(() => {
452
- if (!h.value) return "";
453
- const t = e.value.style.layout.dataLabels.yAxis, a = t.scales.labels;
454
- return ee(
455
- a.formatter,
456
- R(h.value.v.y),
457
- j({
458
- p: e.value.style.layout.plots.selectors.labels.prefix,
459
- v: R(h.value.v.y),
460
- s: e.value.style.layout.plots.selectors.labels.suffix,
461
- r: qe(t)
462
- }),
463
- { datapoint: h.value }
464
- );
465
- });
466
- function ft(t) {
467
- const a = q.value.xMax - q.value.xMin;
468
- return a === 0 ? v.value.left : v.value.left + (t - q.value.xMin) / a * v.value.width;
469
- }
470
- function pt(t) {
471
- const a = q.value.yMax - q.value.yMin;
472
- return a === 0 ? v.value.bottom : v.value.bottom - (t - q.value.yMin) / a * v.value.height;
473
- }
474
- const C = A(() => {
475
- const { xMin: t, xMax: a, yMin: l, yMax: s } = q.value, o = t > 0 ? t : a < 0 ? a : 0, n = l > 0 ? l : s < 0 ? s : 0;
476
- return {
477
- x: ft(o),
478
- y: pt(n)
479
- };
480
- }), le = A(() => ut.value.map((t, a) => {
481
- const l = `cluster_${I.value}_${a}`;
482
- return {
483
- ...t,
484
- values: ka({
485
- data: t.values,
486
- threshold: e.value.usePerformanceMode ? t.values.length + 1 : e.value.downsample.threshold
487
- }),
488
- id: l,
489
- color: t.color ? t.color : Vt.value[a] || ge[a] || ge[a % ge.length],
490
- opacity: E.value.includes(l) ? 0.5 : 1,
491
- shape: t.shape ?? "circle",
492
- segregate: () => He(l),
493
- isSegregated: E.value.includes(l)
494
- };
495
- })), Yl = A(() => ({
496
- cy: "scatter-div-legend",
497
- backgroundColor: e.value.style.legend.backgroundColor,
498
- color: e.value.style.legend.color,
499
- fontSize: e.value.style.legend.fontSize,
500
- paddingBottom: 12,
501
- fontWeight: e.value.style.legend.bold ? "bold" : ""
502
- })), me = A(() => le.value.map((t, a) => ({
503
- ...t,
504
- plots: t.values.map((l) => ({
505
- x: ft(l.x),
506
- y: pt(l.y),
507
- v: {
508
- ...l,
509
- name: l.name || ""
510
- },
511
- clusterName: t.name,
512
- clusterId: t.id,
513
- color: t.color ? t.color : Vt.value[a] || ge[a] || ge[a % ge.length],
514
- id: `plot_${I.value}_${Math.random()}`,
515
- weight: l.weight ?? e.value.style.layout.plots.radius
516
- }))
517
- })).filter((t) => !E.value.includes(t.id))), G = A(() => {
518
- const a = ({ m: l, b: s, rect: o, verticalX: n = null }) => {
519
- const { left: u, right: c, top: i, bottom: g } = o, L = [], d = (S, x) => {
520
- Number.isFinite(S) && Number.isFinite(x) && L.push({ x: S, y: x });
521
- }, b = ({ x: S, y: x }) => S >= u - 1e-9 && S <= c + 1e-9 && x >= i - 1e-9 && x <= g + 1e-9;
522
- n !== null ? n >= u - 1e-9 && n <= c + 1e-9 && (d(n, i), d(n, g)) : Number.isFinite(l) && (d(u, l * u + s), d(c, l * c + s), Math.abs(l) > 1e-9 ? (d((i - s) / l, i), d((g - s) / l, g)) : s >= i - 1e-9 && s <= g + 1e-9 && (d(u, s), d(c, s)));
523
- const N = L.filter(b), w = [];
524
- for (const S of N)
525
- w.some(
526
- (x) => Math.abs(x.x - S.x) < 1e-6 && Math.abs(x.y - S.y) < 1e-6
527
- ) || w.push(S);
528
- if (w.length < 2) return null;
529
- let P = w[0], X = w[1], z = 0;
530
- for (let S = 0; S < w.length; S += 1)
531
- for (let x = S + 1; x < w.length; x += 1) {
532
- const O = w[S].x - w[x].x, Z = w[S].y - w[x].y, oe = O * O + Z * Z;
533
- oe > z && (z = oe, P = w[S], X = w[x]);
534
- }
535
- return { x1: P.x, y1: P.y, x2: X.x, y2: X.y };
536
- };
537
- return me.value.map((l) => {
538
- const s = l.plots.length, o = l.plots.reduce((x, O) => x + O.x, 0) / s, n = l.plots.reduce((x, O) => x + O.y, 0) / s;
539
- let u = 0, c = 0;
540
- for (const x of l.plots) {
541
- const O = x.x - o, Z = x.y - n;
542
- u += O * Z, c += O * O;
543
- }
544
- let i, g, L = null;
545
- c < 1e-9 ? (L = o, i = 1 / 0, g = null) : (i = u / c, g = n - i * o);
546
- let d, b;
547
- L !== null ? (d = 1 / 0, b = null) : (d = i, b = g);
548
- const N = l.plots.every(
549
- (x) => x.v && typeof x.v.x == "number" && typeof x.v.y == "number"
550
- );
551
- let w = NaN;
552
- if (s >= 2) {
553
- let x = 0, O = 0;
554
- N ? (x = l.plots.reduce((H, pe) => H + pe.v.x, 0) / s, O = l.plots.reduce((H, pe) => H + pe.v.y, 0) / s) : (x = o, O = -n);
555
- let Z = 0, oe = 0, ce = 0;
556
- for (const H of l.plots) {
557
- const pe = N ? H.v.x : H.x, wt = N ? H.v.y : -H.y, Oe = pe - x, Ae = wt - O;
558
- Z += Oe * Ae, oe += Oe * Oe, ce += Ae * Ae;
559
- }
560
- if (oe >= 1e-9 && ce >= 1e-9) {
561
- const H = Z / Math.sqrt(oe * ce);
562
- w = Math.max(-1, Math.min(1, H));
563
- }
564
- }
565
- const P = a({
566
- m: d,
567
- b,
568
- rect: v.value,
569
- verticalX: L
570
- });
571
- if (!P)
572
- return {
573
- ...l,
574
- correlation: null,
575
- label: null,
576
- plots: l.plots.map((x) => ({
577
- ...x,
578
- deviation: 0,
579
- shape: l.shape,
580
- color: $t(l.color)
581
- }))
582
- };
583
- const X = (P.x1 + P.x2) / 2, z = (P.y1 + P.y2) / 2, S = { x: X, y: z };
584
- return {
585
- ...l,
586
- color: $t(l.color),
587
- correlation: {
588
- ...P,
589
- coefficient: w
590
- },
591
- label: S,
592
- plots: l.plots.map((x) => {
593
- let O, Z;
594
- L !== null ? (O = L, Z = x.y) : Math.abs(d) < 1e-9 ? (O = x.x, Z = b) : (O = (x.x + d * x.y - d * b) / (1 + d * d), Z = (d * x.x + d * d * x.y + b) / (1 + d * d));
595
- const oe = x.x - O, ce = x.y - Z, H = Math.sqrt(oe * oe + ce * ce);
596
- return {
597
- ...x,
598
- deviation: H,
599
- shape: l.shape,
600
- color: $t(l.color)
601
- };
602
- })
603
- };
604
- });
605
- }), Gt = A(() => Math.max(
606
- ...G.value.flatMap(
607
- (t) => t.plots.map((a) => Math.abs(a.deviation))
608
- )
609
- ));
610
- function Fl() {
611
- return G.value;
612
- }
613
- function Ht(t, a) {
614
- const l = Array.isArray(t) ? t.flatMap((z) => z.plots.map((S) => ({
615
- x: S.x,
616
- y: S.y
617
- }))) : t.plots.map((z) => ({
618
- x: z.x,
619
- y: z.y
620
- }));
621
- let s = 1 / 0, o = -1 / 0, n = 1 / 0, u = -1 / 0;
622
- l.forEach(({ x: z, y: S }) => {
623
- s = Math.min(s, z), o = Math.max(o, z), n = Math.min(n, S), u = Math.max(u, S);
624
- });
625
- const c = o - s, i = u - n, g = c / a, L = i / a, d = Array(a).fill(0), b = Array(a).fill(0);
626
- l.forEach(({ x: z, y: S }) => {
627
- const x = Math.floor((z - s) / g), O = Math.floor((S - n) / L);
628
- d[x] || (d[x] = 0), b[O] || (b[O] = 0), d[x] += 1, b[O] += 1;
629
- });
630
- const N = [], w = [];
631
- for (let z = 0; z < a; z += 1)
632
- N.push(s + (z + 0.5) * g), w.push(n + (z + 0.5) * L);
633
- const P = Math.max(...d), X = Math.max(...b);
634
- return { x: d, y: b, avgX: N, avgY: w, maxX: P, maxY: X };
635
- }
636
- const $ = A(
637
- () => e.value.style.layout.marginalBars.tranches
638
- ), T = A(() => Ht(me.value, $.value)), Rl = A(() => {
639
- const t = v.value.top - e.value.style.layout.marginalBars.offset, a = v.value.right + e.value.style.layout.marginalBars.offset;
640
- return me.value.map((l) => {
641
- const s = Ht(l, $.value);
642
- return {
643
- coords: s,
644
- dX: Aa(
645
- s.avgX.map((o, n) => ({
646
- x: o,
647
- y: t - s.x[n] / s.maxX * e.value.style.layout.marginalBars.size
648
- }))
649
- ),
650
- dY: wa(
651
- s.avgY.map((o, n) => ({
652
- y: o,
653
- x: a + e.value.style.layout.marginalBars.size * s.y[n] / s.maxY
654
- }))
655
- ),
656
- color: l.color,
657
- id: l.id
658
- };
659
- });
660
- }), W = k(void 0), h = k(null), Ge = k(null);
661
- function gt() {
662
- Xe.value = !1, W.value = void 0, h.value = null, Ce.value = null, xe.value = null;
663
- }
664
- function Vl(t) {
665
- if (!re.value || !t) return;
666
- const a = Ta(t.x, t.y, re.value);
667
- a && (It.value = a);
668
- }
669
- function ye(t, a, l = "pointer", s = null) {
670
- W.value = t.id, h.value = t, Se.value = l, Ce.value = s, xe.value = t.id;
671
- let o = "";
672
- e.value.events.datapointEnter && e.value.events.datapointEnter({
673
- datapoint: t,
674
- seriesIndex: a
675
- }), Ge.value = {
676
- datapoint: t,
677
- seriesIndex: a,
678
- series: G.value,
679
- config: e.value
680
- };
681
- const n = e.value.style.tooltip.customFormat;
682
- Sa(n) && Ca(
683
- () => n({
684
- datapoint: t,
685
- seriesIndex: a,
686
- series: G.value,
687
- config: e.value
688
- })
689
- ) ? Qe.value = n({
690
- datapoint: t,
691
- seriesIndex: a,
692
- series: G.value,
693
- config: e.value
694
- }) : (t.clusterName && (o += `<div style="display:flex;gap:3px;align-items:center">${t.clusterName}</div>`), t.v.name && (o += `<div>${t.v.name}</div>`), o += `<div style="text-align:left;margin-top:6px;padding-top:6px;border-top:1px solid ${e.value.style.tooltip.borderColor}">`, o += `<div>${e.value.style.layout.dataLabels.xAxis.name}: <b>${isNaN(t.v.x) ? "-" : ee(
695
- e.value.style.layout.plots.selectors.labels.x.formatter,
696
- t.v.x,
697
- j({
698
- p: e.value.style.tooltip.prefix,
699
- v: t.v.x,
700
- s: e.value.style.tooltip.suffix,
701
- r: e.value.style.tooltip.roundingValue
702
- }),
703
- { datapoint: t, seriesIndex: a }
704
- )}</b></div>`, o += `<div>${e.value.style.layout.dataLabels.yAxis.name}: <b>${isNaN(t.v.y) ? "-" : ee(
705
- e.value.style.layout.plots.selectors.labels.y.formatter,
706
- t.v.y,
707
- j({
708
- p: e.value.style.tooltip.prefix,
709
- v: t.v.y,
710
- s: e.value.style.tooltip.suffix,
711
- r: e.value.style.tooltip.roundingValue
712
- }),
713
- { datapoint: t, seriesIndex: a }
714
- )}</b></div>`, o += `${e.value.style.layout.plots.deviation.translation}: <b>${j(
715
- {
716
- v: t.deviation,
717
- r: e.value.style.layout.plots.deviation.roundingValue
718
- }
719
- )}</b>`, o += "</div>", Qe.value = `<div>${o}</div>`), Xe.value = !0, l === "keyboard" && Je(() => {
720
- Vl(t);
721
- });
722
- }
723
- function Te(t, a) {
724
- e.value.events.datapointLeave && e.value.events.datapointLeave({ datapoint: t, seriesIndex: a }), !(Se.value === "keyboard" && xe.value === t?.id) && (Xe.value = !1, W.value = void 0, h.value = null);
725
- }
726
- function ze(t, a) {
727
- e.value.events.datapointClick && e.value.events.datapointClick({ datapoint: t, seriesIndex: a });
728
- }
729
- function Ul() {
730
- E.value.length ? E.value = [] : le.value.forEach((t) => {
731
- E.value.push(t.id);
732
- });
733
- }
734
- function He(t) {
735
- E.value.includes(t) ? E.value = E.value.filter((a) => a !== t) : E.value.length < ut.value.length - 1 && E.value.push(t);
736
- }
737
- function Kt(t) {
738
- if (!le.value.length)
739
- return e.value.debug && console.warn("VueUiScatter - There are no series to show."), null;
740
- const a = le.value.find((l) => l.name === t);
741
- return a || (e.value.debug && console.warn(`VueUiScatter - Series name not found "${t}"`), null);
742
- }
743
- function jl(t) {
744
- const a = Kt(t);
745
- a !== null && E.value.includes(a.id) && He(a.id);
746
- }
747
- function ql(t) {
748
- const a = Kt(t);
749
- a !== null && (E.value.includes(a.id) || He(a.id));
750
- }
751
- function xt(t = null) {
752
- Je(() => {
753
- const a = [
754
- "",
755
- e.value.table.translations.correlationCoefficient,
756
- e.value.table.translations.nbrPlots,
757
- `${e.value.style.layout.dataLabels.xAxis.name} ${e.value.table.translations.average}`,
758
- `${e.value.style.layout.dataLabels.yAxis.name} ${e.value.table.translations.average}`
759
- ], l = G.value.map((n) => [
760
- n.name,
761
- n.correlation.coefficient,
762
- n.plots.length,
763
- n.plots.map((u) => u.v.x).reduce((u, c) => u + c, 0) / n.plots.length,
764
- n.plots.map((u) => u.v.y).reduce((u, c) => u + c, 0) / n.plots.length
765
- ]), s = [
766
- [e.value.style.title.text],
767
- [e.value.style.title.subtitle.text],
768
- [[""], [""], [""]]
769
- ].concat([a]).concat(l), o = _a(s);
770
- t ? t(o) : La({
771
- csvContent: o,
772
- title: e.value.style.title.text || "vue-ui-heatmap"
773
- });
774
- });
775
- }
776
- const ke = A(() => {
777
- const t = [
778
- e.value.table.translations.series,
779
- e.value.table.translations.correlationCoefficient,
780
- e.value.table.translations.nbrPlots,
781
- `${e.value.style.layout.dataLabels.xAxis.name} ${e.value.table.translations.average}`,
782
- `${e.value.style.layout.dataLabels.yAxis.name} ${e.value.table.translations.average}`
783
- ], a = G.value.map((o) => [
784
- {
785
- shape: o.shape,
786
- content: o.name ?? "-",
787
- color: o.color
788
- },
789
- Number(
790
- (o.correlation?.coefficient ?? 0).toFixed(
791
- e.value.table.td.roundingValue
792
- )
793
- ).toLocaleString(),
794
- o.plots.length.toLocaleString(),
795
- Number(
796
- (o.plots.map((n) => n.v.x ?? 0).reduce((n, u) => n + u, 0) / o.plots.length).toFixed(e.value.table.td.roundingAverage)
797
- ).toLocaleString(),
798
- Number(
799
- (o.plots.map((n) => n.v.y ?? 0).reduce((n, u) => n + u, 0) / o.plots.length).toFixed(e.value.table.td.roundingAverage)
800
- ).toLocaleString()
801
- ]), l = a.map((o) => o.map((n, u) => u === 0 ? n.content : n)), s = {
802
- th: {
803
- backgroundColor: e.value.table.th.backgroundColor,
804
- color: e.value.table.th.color,
805
- outline: e.value.table.th.outline
806
- },
807
- td: {
808
- backgroundColor: e.value.table.td.backgroundColor,
809
- color: e.value.table.td.color,
810
- outline: e.value.table.td.outline
811
- },
812
- breakpoint: e.value.table.responsiveBreakpoint
813
- };
814
- return { head: t, body: a, a11yBody: l, config: s, colNames: t };
815
- }), fe = k(!1);
816
- function Zt(t) {
817
- fe.value = t, St.value += 1;
818
- }
819
- function Jt() {
820
- te.value.showTable = !te.value.showTable;
821
- }
822
- function Qt() {
823
- te.value.showTooltip = !te.value.showTooltip;
824
- }
825
- const Be = k(!1);
826
- function bt() {
827
- Be.value = !Be.value;
828
- }
829
- async function Gl({ scale: t = 2 } = {}) {
830
- if (!ne.value) return;
831
- const { width: a, height: l } = ne.value.getBoundingClientRect(), s = a / l, { imageUri: o, base64: n } = await Ya({
832
- domElement: ne.value,
833
- base64: !0,
834
- img: !0,
835
- scale: t
836
- });
837
- return {
838
- imageUri: o,
839
- base64: n,
840
- title: e.value.style.title.text,
841
- width: a,
842
- height: l,
843
- aspectRatio: s
844
- };
845
- }
846
- function Hl(t) {
847
- $e.value = t, e.value.style.layout.marginalBars.highlighter.highlightBothAxes && (_e.value = T.value.y.length - 2 - t);
848
- }
849
- function Kl(t) {
850
- _e.value = t, e.value.style.layout.marginalBars.highlighter.highlightBothAxes && ($e.value = t);
851
- }
852
- function mt() {
853
- $e.value = null, _e.value = null;
854
- }
855
- const el = {
856
- circle: 1,
857
- square: 1,
858
- diamond: 1,
859
- triangle: 1.2,
860
- star: 1.3,
861
- pentagon: 1.3,
862
- hexagon: 1.3
863
- }, _ = (t) => t.toFixed(3);
864
- function Zl({ shape: t = "circle", cx: a, cy: l, r: s }) {
865
- if (!e.value.usePerformanceMode) return "";
866
- const o = el[t] * s;
867
- switch (t) {
868
- case "circle": {
869
- const n = _(a - o), u = _(l), c = _(a + o), i = _(o);
870
- return `M ${n} ${u} A ${i} ${i} 0 1 0 ${c} ${u} A ${i} ${i} 0 1 0 ${n} ${u} Z`;
871
- }
872
- case "square": {
873
- const n = _(a - o), u = _(l - o), c = _(a + o), i = _(l + o);
874
- return `M ${n} ${u} L ${c} ${u} L ${c} ${i} L ${n} ${i} Z`;
875
- }
876
- case "diamond": {
877
- const n = _(a), u = _(l);
878
- return `M ${n} ${_(l - o)} L ${_(a + o)} ${u} L ${n} ${_(l + o)} L ${_(a - o)} ${u} Z`;
879
- }
880
- case "triangle": {
881
- const n = o * Math.sqrt(3), u = a, c = l - 2 / 3 * n, i = a - o, g = l + 1 / 3 * n, L = a + o, d = g;
882
- return `M ${_(u)} ${_(c)} L ${_(i)} ${_(g)} L ${_(L)} ${_(d)} Z`;
883
- }
884
- case "star": {
885
- const n = o, u = o * 0.5, c = [];
886
- for (let g = 0; g < 10; g += 1) {
887
- const L = (-90 + g * 36) * Math.PI / 180, d = g % 2 === 0 ? n : u;
888
- c.push([a + d * Math.cos(L), l + d * Math.sin(L)]);
889
- }
890
- let i = `M ${_(c[0][0])} ${_(c[0][1])}`;
891
- for (let g = 1; g < c.length; g += 1)
892
- i += ` L ${_(c[g][0])} ${_(c[g][1])}`;
893
- return i + " Z";
894
- }
895
- case "pentagon": {
896
- const u = [];
897
- for (let i = 0; i < 5; i += 1) {
898
- const g = (-90 + i * 72) * Math.PI / 180;
899
- u.push([
900
- a + o * Math.cos(g),
901
- l + o * Math.sin(g)
902
- ]);
903
- }
904
- let c = `M ${_(u[0][0])} ${_(u[0][1])}`;
905
- for (let i = 1; i < 5; i += 1)
906
- c += ` L ${_(u[i][0])} ${_(u[i][1])}`;
907
- return c + " Z";
908
- }
909
- case "hexagon": {
910
- const u = [];
911
- for (let i = 0; i < 6; i += 1) {
912
- const g = (-60 + i * 60) * Math.PI / 180;
913
- u.push([
914
- a + o * Math.cos(g),
915
- l + o * Math.sin(g)
916
- ]);
917
- }
918
- let c = `M ${_(u[0][0])} ${_(u[0][1])}`;
919
- for (let i = 1; i < 6; i += 1)
920
- c += ` L ${_(u[i][0])} ${_(u[i][1])}`;
921
- return c + " Z";
922
- }
923
- default: {
924
- const n = _(a - o), u = _(l), c = _(a + o), i = _(o);
925
- return `M ${n} ${u} A ${i} ${i} 0 1 0 ${c} ${u} A ${i} ${i} 0 1 0 ${n} ${u} Z`;
926
- }
927
- }
928
- }
929
- const Jl = A(() => {
930
- if (!e.value.usePerformanceMode) return [""];
931
- const { left: t, right: a, top: l, bottom: s } = v.value, o = Math.max(1, (a - t) * (s - l)), n = (d) => d / o * 1e4, u = 2.5, c = 1e3, i = e.value.style.layout.plots.stroke, g = e.value.style.layout.plots.strokeWidth, L = e.value.style.layout.plots.opacity;
932
- return G.value.map((d) => {
933
- const b = [];
934
- for (const w of d.plots) {
935
- const P = w.x, X = w.y;
936
- if (P < t || P > a || X < l || X > s) continue;
937
- const z = Math.max(
938
- e.value.style.layout.plots.radius,
939
- w.weight
940
- );
941
- b.push(
942
- Zl({
943
- shape: d.shape || "circle",
944
- cx: P,
945
- cy: X,
946
- r: z
947
- })
948
- );
949
- }
950
- if (!b.length) return null;
951
- const N = n(d.plots.length) > u || d.plots.length > c;
952
- return {
953
- id: d.id,
954
- d: b.join(""),
955
- fill: Ee(d.color, L * 100),
956
- stroke: N ? "none" : i,
957
- strokeWidth: N ? 0 : g,
958
- strokeOpacity: 1
959
- };
960
- }).filter(Boolean);
961
- });
962
- function Ql() {
963
- return e.value.usePerformanceMode ? (t) => {
964
- const a = re.value;
965
- if (!a) return;
966
- const l = a.createSVGPoint();
967
- l.x = t.clientX, l.y = t.clientY;
968
- const s = a.getScreenCTM();
969
- if (!s) return;
970
- const o = s.inverse(), n = l.matrixTransform(o), u = 8, c = u * u;
971
- let i = null, g = 1 / 0, L = -1;
972
- if (G.value.forEach((d, b) => {
973
- d.plots.forEach((N) => {
974
- const w = N.x - n.x, P = N.y - n.y, X = w * w + P * P;
975
- X <= c && X < g && (g = X, i = N, L = b);
976
- });
977
- }), i)
978
- W.value !== i.id && (W.value = i.id, ye(
979
- i,
980
- L,
981
- "pointer",
982
- ue.value.get(i.id) ?? null
983
- ));
984
- else if (W.value) {
985
- const d = h.value;
986
- W.value = void 0, Te(d, L);
987
- }
988
- } : () => null;
989
- }
990
- const tl = Ql();
991
- function ea() {
992
- if (W.value) {
993
- const t = h.value;
994
- W.value = void 0, Te(t, null);
995
- }
996
- }
997
- function ta(t) {
998
- const a = h.value;
999
- if (a) {
1000
- const l = G.value.findIndex(
1001
- (s) => s.id === a.clusterId
1002
- );
1003
- ze(a, l >= 0 ? l : 0);
1004
- }
1005
- }
1006
- const Pe = A(() => {
1007
- const t = e.value.table.useDialog && !e.value.table.show, a = te.value.showTable;
1008
- return {
1009
- component: t ? $l : ml,
1010
- title: `${e.value.style.title.text}${e.value.style.title.subtitle.text ? `: ${e.value.style.title.subtitle.text}` : ""}`,
1011
- props: t ? {
1012
- backgroundColor: e.value.table.th.backgroundColor,
1013
- color: e.value.table.th.color,
1014
- headerColor: e.value.table.th.color,
1015
- headerBg: e.value.table.th.backgroundColor,
1016
- isFullscreen: fe.value,
1017
- fullscreenParent: ne.value,
1018
- forcedWidth: Math.min(800, window.innerWidth * 0.8),
1019
- isCursorPointer: he.value
1020
- } : {
1021
- hideDetails: !0,
1022
- config: {
1023
- open: a,
1024
- maxHeight: 1e4,
1025
- body: {
1026
- backgroundColor: e.value.style.backgroundColor,
1027
- color: e.value.style.color
1028
- },
1029
- head: {
1030
- backgroundColor: e.value.style.backgroundColor,
1031
- color: e.value.style.color
1032
- }
1033
- }
1034
- }
1035
- };
1036
- });
1037
- Ze(
1038
- () => te.value.showTable,
1039
- (t) => {
1040
- e.value.table.show || (t && e.value.table.useDialog && Le.value ? Le.value.open() : "close" in Le.value && Le.value.close());
1041
- }
1042
- );
1043
- function ll() {
1044
- te.value.showTable = !1, et.value && et.value.setTableIconState(!1);
1045
- }
1046
- const la = A(() => e.value.style.backgroundColor), aa = A(() => e.value.style.legend), oa = A(() => e.value.style.title), { exportSvg: sa, getSvg: na } = Ia({
1047
- svg: re,
1048
- title: oa,
1049
- legend: aa,
1050
- legendItems: le,
1051
- backgroundColor: la
1052
- });
1053
- async function al({ isCb: t }) {
1054
- Fe.value = !0, await Je();
1055
- try {
1056
- if (t) {
1057
- const { blob: a, url: l, text: s, dataUrl: o } = await na();
1058
- await Promise.resolve(
1059
- e.value.userOptions.callbacks.svg({
1060
- blob: a,
1061
- url: l,
1062
- text: s,
1063
- dataUrl: o
1064
- })
1065
- );
1066
- } else
1067
- await Promise.resolve(sa());
1068
- } finally {
1069
- Fe.value = !1;
1070
- }
1071
- }
1072
- function ua(t) {
1073
- if (t?.stage === "start") {
1074
- Ye.value = !0;
1075
- return;
1076
- }
1077
- if (t?.stage === "end") {
1078
- Ye.value = !1;
1079
- return;
1080
- }
1081
- Rt();
1082
- }
1083
- async function ol() {
1084
- if (Cl("copyAlt", {
1085
- config: e.value,
1086
- dataset: me.value
1087
- }), !e.value.userOptions.callbacks.altCopy) {
1088
- console.warn(
1089
- "Vue Data UI - A callback must be set for `altCopy` in userOptions."
1090
- );
1091
- return;
1092
- }
1093
- await Promise.resolve(
1094
- e.value.userOptions.callbacks.altCopy({
1095
- config: e.value,
1096
- dataset: me.value
1097
- })
1098
- );
1099
- }
1100
- function sl(t, a) {
1101
- const l = we.value.filter((c) => c.id !== t.id);
1102
- if (!l.length) return null;
1103
- const s = l.filter((c) => a === "right" ? c.x > t.x : a === "left" ? c.x < t.x : a === "down" ? c.y > t.y : a === "up" ? c.y < t.y : !1), n = ((c) => {
1104
- if (!c.length) return null;
1105
- let i = null, g = 1 / 0;
1106
- return c.forEach((L) => {
1107
- const d = L.x - t.x, b = L.y - t.y;
1108
- let N = 0, w = 0;
1109
- a === "right" || a === "left" ? (N = Math.abs(d), w = Math.abs(b)) : (N = Math.abs(b), w = Math.abs(d));
1110
- const P = N * 1e3 + w;
1111
- P < g && (i = L, g = P);
1112
- }), i;
1113
- })(s);
1114
- if (n) return n;
1115
- let u = [];
1116
- if (a === "right") {
1117
- const c = Math.min(...l.map((i) => i.x));
1118
- u = l.filter((i) => i.x === c);
1119
- }
1120
- if (a === "left") {
1121
- const c = Math.max(...l.map((i) => i.x));
1122
- u = l.filter((i) => i.x === c);
1123
- }
1124
- if (a === "down") {
1125
- const c = Math.min(...l.map((i) => i.y));
1126
- u = l.filter((i) => i.y === c);
1127
- }
1128
- if (a === "up") {
1129
- const c = Math.max(...l.map((i) => i.y));
1130
- u = l.filter((i) => i.y === c);
1131
- }
1132
- return u.length ? u.reduce((c, i) => {
1133
- if (!c) return i;
1134
- const g = Math.abs(a === "right" || a === "left" ? c.y - t.y : c.x - t.x);
1135
- return Math.abs(a === "right" || a === "left" ? i.y - t.y : i.x - t.x) < g ? i : c;
1136
- }, null) : null;
1137
- }
1138
- function ia() {
1139
- Ce.value = null, xe.value = null, Re.value = !0;
1140
- }
1141
- function ra() {
1142
- gt(), Se.value = "pointer", Re.value = !1;
1143
- }
1144
- function va(t) {
1145
- if (!re.value || Be.value || document.activeElement !== re.value || !we.value.length) return;
1146
- const a = t.key === "ArrowLeft", l = t.key === "ArrowRight", s = t.key === "ArrowUp", o = t.key === "ArrowDown", n = t.key === "Enter" || t.key === " ", u = t.key === "Escape";
1147
- if (!a && !l && !s && !o && !n && !u)
1148
- return;
1149
- if (t.preventDefault(), t.stopPropagation(), u) {
1150
- gt(), Se.value = "pointer";
1151
- return;
1152
- }
1153
- if (n) {
1154
- if (Ce.value === null) return;
1155
- const b = we.value[Ce.value];
1156
- if (!b) return;
1157
- ze(b, b.seriesIndex);
1158
- return;
1159
- }
1160
- let c = null;
1161
- if (l && (c = "right"), a && (c = "left"), o && (c = "down"), s && (c = "up"), xe.value === null) {
1162
- const b = h.value;
1163
- if (b && b.id) {
1164
- const X = sl(b, c);
1165
- if (!X) {
1166
- const S = ue.value.get(b.id);
1167
- if (S === void 0) return;
1168
- ye(
1169
- b,
1170
- b.seriesIndex,
1171
- "keyboard",
1172
- S
1173
- );
1174
- return;
1175
- }
1176
- const z = ue.value.get(X.id);
1177
- if (z === void 0) return;
1178
- ye(X, X.seriesIndex, "keyboard", z);
1179
- return;
1180
- }
1181
- const w = we.value[0];
1182
- if (!w) return;
1183
- const P = ue.value.get(w.id) ?? 0;
1184
- ye(w, w.seriesIndex, "keyboard", P);
1185
- return;
1186
- }
1187
- const i = ue.value.get(xe.value);
1188
- if (i === void 0) return;
1189
- const g = we.value[i];
1190
- if (!g) return;
1191
- const L = sl(g, c);
1192
- if (!L) return;
1193
- const d = ue.value.get(L.id);
1194
- d !== void 0 && ye(L, L.seriesIndex, "keyboard", d);
1195
- }
1196
- const ya = A(() => {
1197
- if (!h.value)
1198
- return "";
1199
- const t = h.value, a = isNaN(t.v.x) ? "-" : ee(
1200
- e.value.style.layout.plots.selectors.labels.x.formatter,
1201
- t.v.x,
1202
- j({
1203
- p: e.value.style.tooltip.prefix,
1204
- v: t.v.x,
1205
- s: e.value.style.tooltip.suffix,
1206
- r: e.value.style.tooltip.roundingValue
1207
- }),
1208
- { datapoint: t, seriesIndex: t.seriesIndex }
1209
- ), l = isNaN(t.v.y) ? "-" : ee(
1210
- e.value.style.layout.plots.selectors.labels.y.formatter,
1211
- t.v.y,
1212
- j({
1213
- p: e.value.style.tooltip.prefix,
1214
- v: t.v.y,
1215
- s: e.value.style.tooltip.suffix,
1216
- r: e.value.style.tooltip.roundingValue
1217
- }),
1218
- { datapoint: t, seriesIndex: t.seriesIndex }
1219
- );
1220
- return [
1221
- t.clusterName || "",
1222
- t.v.name || "",
1223
- `${e.value.style.layout.dataLabels.xAxis.name}: ${a}`,
1224
- `${e.value.style.layout.dataLabels.yAxis.name}: ${l}`
1225
- ].filter(Boolean).join(". ");
1226
- }), we = A(() => G.value.flatMap((t, a) => t.plots.map((l) => ({
1227
- ...l,
1228
- seriesIndex: a,
1229
- seriesId: t.id,
1230
- seriesName: t.name,
1231
- shape: t.shape || "circle",
1232
- color: t.color
1233
- })))), ue = A(() => {
1234
- const t = /* @__PURE__ */ new Map();
1235
- return we.value.forEach((a, l) => {
1236
- t.set(a.id, l);
1237
- }), t;
1238
- }), kt = A(() => {
1239
- const t = ke.value?.colNames ?? [], a = ke.value?.a11yBody ?? [];
1240
- return { headers: t, rows: a };
1241
- });
1242
- return pl({
1243
- getData: Fl,
1244
- getImage: Gl,
1245
- generatePdf: Ft,
1246
- generateCsv: xt,
1247
- generateImage: Rt,
1248
- generateSvg: al,
1249
- hideSeries: ql,
1250
- showSeries: jl,
1251
- toggleTable: Jt,
1252
- toggleTooltip: Qt,
1253
- toggleAnnotator: bt,
1254
- toggleFullscreen: Zt,
1255
- copyAlt: ol
1256
- }), (t, a) => (r(), y("div", {
1257
- class: ul(`vue-data-ui-component vue-ui-scatter ${fe.value ? "vue-data-ui-wrapper-fullscreen" : ""} ${e.value.useCssAnimation ? "" : "vue-ui-dna"}`),
1258
- ref_key: "scatterChart",
1259
- ref: ne,
1260
- id: `vue-ui-scatter_${I.value}`,
1261
- style: ie(`font-family:${e.value.style.fontFamily};width:100%; text-align:center;background:${e.value.style.backgroundColor};${e.value.responsive ? "height: 100%" : ""}`),
1262
- onMouseenter: a[5] || (a[5] = () => f(Et)(!0)),
1263
- onMouseleave: a[6] || (a[6] = () => {
1264
- f(Et)(!1), Re.value || gt();
1265
- })
1266
- }, [
1267
- M("div", {
1268
- id: `chart-instructions-${I.value}`,
1269
- class: "sr-only"
1270
- }, [
1271
- M("p", null, F(e.value.a11y.translations.keyboardNavigation), 1)
1272
- ], 8, Ha),
1273
- te.value.showTooltip ? p("", !0) : (r(), y("div", Ka, F(ya.value), 1)),
1274
- kt.value?.rows?.length && We.value ? (r(), se(Ua, {
1275
- key: 1,
1276
- uid: I.value,
1277
- head: kt.value.headers,
1278
- body: kt.value.rows,
1279
- notice: e.value.a11y.translations.tableAvailable,
1280
- caption: e.value.a11y.translations.tableCaption
1281
- }, null, 8, ["uid", "head", "body", "notice", "caption"])) : p("", !0),
1282
- e.value.userOptions.buttons.annotator ? (r(), se(f(wl), {
1283
- key: 2,
1284
- svgRef: f(re),
1285
- backgroundColor: e.value.style.backgroundColor,
1286
- color: e.value.style.color,
1287
- active: Be.value,
1288
- isCursorPointer: he.value,
1289
- onClose: bt
1290
- }, {
1291
- "annotator-action-close": B(() => [
1292
- D(t.$slots, "annotator-action-close", {}, void 0, !0)
1293
- ]),
1294
- "annotator-action-color": B(({ color: l }) => [
1295
- D(t.$slots, "annotator-action-color", J(Q({ color: l })), void 0, !0)
1296
- ]),
1297
- "annotator-action-draw": B(({ mode: l }) => [
1298
- D(t.$slots, "annotator-action-draw", J(Q({ mode: l })), void 0, !0)
1299
- ]),
1300
- "annotator-action-undo": B(({ disabled: l }) => [
1301
- D(t.$slots, "annotator-action-undo", J(Q({ disabled: l })), void 0, !0)
1302
- ]),
1303
- "annotator-action-redo": B(({ disabled: l }) => [
1304
- D(t.$slots, "annotator-action-redo", J(Q({ disabled: l })), void 0, !0)
1305
- ]),
1306
- "annotator-action-delete": B(({ disabled: l }) => [
1307
- D(t.$slots, "annotator-action-delete", J(Q({ disabled: l })), void 0, !0)
1308
- ]),
1309
- _: 3
1310
- }, 8, ["svgRef", "backgroundColor", "color", "active", "isCursorPointer"])) : p("", !0),
1311
- Pl.value ? (r(), y("div", {
1312
- key: 3,
1313
- ref_key: "noTitle",
1314
- ref: Bt,
1315
- class: "vue-data-ui-no-title-space",
1316
- style: "height:36px; width: 100%;background:transparent"
1317
- }, null, 512)) : p("", !0),
1318
- e.value.style.title.text ? (r(), y("div", {
1319
- key: 4,
1320
- ref_key: "chartTitle",
1321
- ref: Ct,
1322
- style: "width:100%;background:transparent"
1323
- }, [
1324
- (r(), se(Fa, {
1325
- key: `title_${Pt.value}`,
1326
- config: {
1327
- title: {
1328
- cy: "scatter-div-title",
1329
- ...e.value.style.title
1330
- },
1331
- subtitle: {
1332
- cy: "scatter-div-subtitle",
1333
- ...e.value.style.title.subtitle
1334
- }
1335
- }
1336
- }, null, 8, ["config"]))
1337
- ], 512)) : p("", !0),
1338
- M("div", {
1339
- id: `legend-top-${I.value}`
1340
- }, null, 8, Za),
1341
- e.value.userOptions.show && We.value && (f(Wt) || f(rt)) ? (r(), se(f(Al), {
1342
- ref_key: "userOptionsRef",
1343
- ref: et,
1344
- key: `user_options_${St.value}`,
1345
- backgroundColor: e.value.style.backgroundColor,
1346
- color: e.value.style.color,
1347
- isImaging: f(ct),
1348
- isPrinting: f(yt),
1349
- uid: I.value,
1350
- hasTooltip: e.value.userOptions.buttons.tooltip && e.value.style.tooltip.show,
1351
- hasPdf: e.value.userOptions.buttons.pdf,
1352
- hasImg: e.value.userOptions.buttons.img,
1353
- hasSvg: e.value.userOptions.buttons.svg,
1354
- hasXls: e.value.userOptions.buttons.csv,
1355
- hasTable: e.value.userOptions.buttons.table,
1356
- hasFullscreen: e.value.userOptions.buttons.fullscreen,
1357
- hasAltCopy: e.value.userOptions.buttons.altCopy,
1358
- isTooltip: te.value.showTooltip,
1359
- isFullscreen: fe.value,
1360
- titles: { ...e.value.userOptions.buttonTitles },
1361
- chartElement: ne.value,
1362
- position: e.value.userOptions.position,
1363
- hasAnnotator: e.value.userOptions.buttons.annotator,
1364
- isAnnotation: Be.value,
1365
- callbacks: e.value.userOptions.callbacks,
1366
- printScale: e.value.userOptions.print.scale,
1367
- tableDialog: e.value.table.useDialog,
1368
- isCursorPointer: he.value,
1369
- onToggleFullscreen: Zt,
1370
- onGeneratePdf: f(Ft),
1371
- onGenerateCsv: xt,
1372
- onGenerateImage: ua,
1373
- onGenerateSvg: al,
1374
- onToggleTable: Jt,
1375
- onToggleTooltip: Qt,
1376
- onToggleAnnotator: bt,
1377
- onCopyAlt: ol,
1378
- style: ie({
1379
- visibility: f(Wt) ? f(rt) ? "visible" : "hidden" : "visible"
1380
- })
1381
- }, il({ _: 2 }, [
1382
- t.$slots.menuIcon ? {
1383
- name: "menuIcon",
1384
- fn: B(({ isOpen: l, color: s }) => [
1385
- D(t.$slots, "menuIcon", J(Q({ isOpen: l, color: s })), void 0, !0)
1386
- ]),
1387
- key: "0"
1388
- } : void 0,
1389
- t.$slots.optionTooltip ? {
1390
- name: "optionTooltip",
1391
- fn: B(() => [
1392
- D(t.$slots, "optionTooltip", {}, void 0, !0)
1393
- ]),
1394
- key: "1"
1395
- } : void 0,
1396
- t.$slots.optionPdf ? {
1397
- name: "optionPdf",
1398
- fn: B(() => [
1399
- D(t.$slots, "optionPdf", {}, void 0, !0)
1400
- ]),
1401
- key: "2"
1402
- } : void 0,
1403
- t.$slots.optionCsv ? {
1404
- name: "optionCsv",
1405
- fn: B(() => [
1406
- D(t.$slots, "optionCsv", {}, void 0, !0)
1407
- ]),
1408
- key: "3"
1409
- } : void 0,
1410
- t.$slots.optionImg ? {
1411
- name: "optionImg",
1412
- fn: B(() => [
1413
- D(t.$slots, "optionImg", {}, void 0, !0)
1414
- ]),
1415
- key: "4"
1416
- } : void 0,
1417
- t.$slots.optionSvg ? {
1418
- name: "optionSvg",
1419
- fn: B(() => [
1420
- D(t.$slots, "optionSvg", {}, void 0, !0)
1421
- ]),
1422
- key: "5"
1423
- } : void 0,
1424
- t.$slots.optionTable ? {
1425
- name: "optionTable",
1426
- fn: B(() => [
1427
- D(t.$slots, "optionTable", {}, void 0, !0)
1428
- ]),
1429
- key: "6"
1430
- } : void 0,
1431
- t.$slots.optionFullscreen ? {
1432
- name: "optionFullscreen",
1433
- fn: B(({ toggleFullscreen: l, isFullscreen: s }) => [
1434
- D(t.$slots, "optionFullscreen", J(Q({ toggleFullscreen: l, isFullscreen: s })), void 0, !0)
1435
- ]),
1436
- key: "7"
1437
- } : void 0,
1438
- t.$slots.optionAnnotator ? {
1439
- name: "optionAnnotator",
1440
- fn: B(({ toggleAnnotator: l, isAnnotator: s }) => [
1441
- D(t.$slots, "optionAnnotator", J(Q({ toggleAnnotator: l, isAnnotator: s })), void 0, !0)
1442
- ]),
1443
- key: "8"
1444
- } : void 0,
1445
- t.$slots.optionAltCopy ? {
1446
- name: "optionAltCopy",
1447
- fn: B(({ altCopy: l }) => [
1448
- D(t.$slots, "optionAltCopy", J(Q({ altCopy: l })), void 0, !0)
1449
- ]),
1450
- key: "9"
1451
- } : void 0
1452
- ]), 1032, ["backgroundColor", "color", "isImaging", "isPrinting", "uid", "hasTooltip", "hasPdf", "hasImg", "hasSvg", "hasXls", "hasTable", "hasFullscreen", "hasAltCopy", "isTooltip", "isFullscreen", "titles", "chartElement", "position", "hasAnnotator", "isAnnotation", "callbacks", "printScale", "tableDialog", "isCursorPointer", "onGeneratePdf", "style"])) : p("", !0),
1453
- M("div", Ja, [
1454
- (r(), y("svg", {
1455
- ref_key: "svgRef",
1456
- ref: re,
1457
- xmlns: f(Ma),
1458
- "aria-describedby": `chart-instructions-${I.value}`,
1459
- class: ul({
1460
- "vue-data-ui-fullscreen--on": fe.value,
1461
- "vue-data-ui-fulscreen--off": !fe.value,
1462
- animated: e.value.useCssAnimation
1463
- }),
1464
- viewBox: `0 0 ${Y.value.width <= 0 ? 10 : Y.value.width} ${Y.value.height <= 0 ? 10 : Y.value.height}`,
1465
- style: ie(`max-width:100%;overflow:visible;background:transparent;color:${e.value.style.color}`),
1466
- onMouseleave: mt,
1467
- tabindex: "0",
1468
- onFocus: ia,
1469
- onBlur: ra,
1470
- onKeydown: va
1471
- }, [
1472
- Ie(f(Ml)),
1473
- t.$slots["chart-background"] ? (r(), y("foreignObject", {
1474
- key: 0,
1475
- x: 0,
1476
- y: 0,
1477
- width: Y.value.width <= 0 ? 10 : Y.value.width,
1478
- height: Y.value.height <= 0 ? 10 : Y.value.height,
1479
- style: {
1480
- pointerEvents: "none"
1481
- }
1482
- }, [
1483
- D(t.$slots, "chart-background", {}, void 0, !0)
1484
- ], 8, eo)) : p("", !0),
1485
- e.value.style.layout.axis.show ? (r(), y("g", to, [
1486
- M("line", {
1487
- x1: C.value.x,
1488
- x2: C.value.x,
1489
- y1: v.value.top,
1490
- y2: v.value.bottom,
1491
- stroke: e.value.style.layout.axis.stroke,
1492
- "stroke-width": e.value.style.layout.axis.strokeWidth,
1493
- "stroke-linecap": "round"
1494
- }, null, 8, lo),
1495
- M("line", {
1496
- x1: v.value.left,
1497
- x2: v.value.right,
1498
- y1: C.value.y,
1499
- y2: C.value.y,
1500
- stroke: e.value.style.layout.axis.stroke,
1501
- "stroke-width": e.value.style.layout.axis.strokeWidth,
1502
- "stroke-linecap": "round"
1503
- }, null, 8, ao)
1504
- ])) : p("", !0),
1505
- e.value.style.layout.dataLabels.xAxis.scales.verticalLines.show ? (r(), y("g", oo, [
1506
- (r(!0), y(U, null, K(jt.value, (l, s) => (r(), y("line", {
1507
- key: `scatter-x-scale-line-${I.value}-${s}`,
1508
- x1: l.x,
1509
- x2: l.x,
1510
- y1: v.value.top,
1511
- y2: v.value.bottom,
1512
- stroke: e.value.style.layout.dataLabels.xAxis.scales.verticalLines.stroke,
1513
- "stroke-width": e.value.style.layout.dataLabels.xAxis.scales.verticalLines.strokeWidth,
1514
- "stroke-linecap": "round"
1515
- }, null, 8, so))), 128))
1516
- ])) : p("", !0),
1517
- e.value.style.layout.dataLabels.xAxis.scales.show ? (r(), y("g", {
1518
- key: 3,
1519
- ref_key: "xAxisScaleLabels",
1520
- ref: st
1521
- }, [
1522
- (r(!0), y(U, null, K(jt.value, (l, s) => (r(), y("g", {
1523
- class: "vue-ui-scatter-scale-group",
1524
- key: `scatter-x-scale-${I.value}-${s}`,
1525
- opacity: Il.value ? 0 : 1,
1526
- style: { transition: "opacity 0.1s ease-in-out" }
1527
- }, [
1528
- M("line", {
1529
- x1: l.x,
1530
- x2: l.x,
1531
- y1: C.value.y - 4,
1532
- y2: C.value.y + 4,
1533
- stroke: e.value.style.layout.axis.stroke,
1534
- "stroke-width": e.value.style.layout.axis.strokeWidth,
1535
- "stroke-linecap": "round"
1536
- }, null, 8, uo),
1537
- M("text", {
1538
- x: l.x,
1539
- y: C.value.y + e.value.style.layout.dataLabels.xAxis.scales.labels.fontSize + 6 + e.value.style.layout.dataLabels.xAxis.scales.labels.offsetY,
1540
- "text-anchor": "middle",
1541
- "font-size": e.value.style.layout.dataLabels.xAxis.scales.labels.fontSize,
1542
- fill: e.value.style.layout.dataLabels.xAxis.scales.labels.color,
1543
- stroke: e.value.style.backgroundColor,
1544
- "stroke-width": "2",
1545
- "paint-order": "stroke"
1546
- }, F(l.label), 9, io)
1547
- ], 8, no))), 128))
1548
- ], 512)) : p("", !0),
1549
- e.value.style.layout.dataLabels.yAxis.scales.horizontalLines.show ? (r(), y("g", ro, [
1550
- (r(!0), y(U, null, K(qt.value, (l, s) => (r(), y("line", {
1551
- key: `scatter-y-scale-line-${I.value}-${s}`,
1552
- x1: v.value.left,
1553
- x2: v.value.right,
1554
- y1: l.y,
1555
- y2: l.y,
1556
- stroke: e.value.style.layout.dataLabels.yAxis.scales.horizontalLines.stroke,
1557
- "stroke-width": e.value.style.layout.dataLabels.yAxis.scales.horizontalLines.strokeWidth,
1558
- "stroke-linecap": "round"
1559
- }, null, 8, vo))), 128))
1560
- ])) : p("", !0),
1561
- e.value.style.layout.dataLabels.yAxis.scales.show ? (r(), y("g", {
1562
- key: 5,
1563
- ref_key: "yAxisScaleLabels",
1564
- ref: ot,
1565
- opacity: El.value ? 0 : 1,
1566
- style: { transition: "opacity 0.1s ease-in-out" },
1567
- class: "vue-ui-scatter-scale-group"
1568
- }, [
1569
- (r(!0), y(U, null, K(qt.value, (l, s) => (r(), y("g", {
1570
- key: `scatter-y-scale-${I.value}-${s}`
1571
- }, [
1572
- M("line", {
1573
- x1: C.value.x - 4,
1574
- x2: C.value.x + 4,
1575
- y1: l.y,
1576
- y2: l.y,
1577
- stroke: e.value.style.layout.axis.stroke,
1578
- "stroke-width": e.value.style.layout.axis.strokeWidth,
1579
- "stroke-linecap": "round"
1580
- }, null, 8, co),
1581
- M("text", {
1582
- x: C.value.x - e.value.style.layout.dataLabels.yAxis.scales.labels.fontSize / 2 - 8 + e.value.style.layout.dataLabels.yAxis.scales.labels.offsetX,
1583
- y: l.y + e.value.style.layout.dataLabels.yAxis.scales.labels.fontSize / 3,
1584
- "text-anchor": "end",
1585
- "font-size": e.value.style.layout.dataLabels.yAxis.scales.labels.fontSize,
1586
- fill: e.value.style.layout.dataLabels.yAxis.scales.labels.color,
1587
- stroke: e.value.style.backgroundColor,
1588
- "stroke-width": "2",
1589
- "paint-order": "stroke"
1590
- }, F(l.label), 9, ho)
1591
- ]))), 128))
1592
- ], 8, yo)) : p("", !0),
1593
- e.value.style.layout.marginalBars.show ? (r(), y("g", fo, [
1594
- M("defs", null, [
1595
- M("linearGradient", {
1596
- id: `marginal_x_${I.value}`,
1597
- x1: "0%",
1598
- y1: "0%",
1599
- x2: "0%",
1600
- y2: "100%"
1601
- }, [
1602
- M("stop", {
1603
- offset: "0%",
1604
- "stop-color": e.value.style.layout.marginalBars.fill
1605
- }, null, 8, go),
1606
- M("stop", {
1607
- offset: "100%",
1608
- "stop-color": e.value.style.backgroundColor
1609
- }, null, 8, xo)
1610
- ], 8, po),
1611
- M("linearGradient", {
1612
- id: `marginal_y_${I.value}`,
1613
- x1: "0%",
1614
- x2: "100%",
1615
- y1: "0%",
1616
- y2: "0%"
1617
- }, [
1618
- M("stop", {
1619
- offset: "0%",
1620
- "stop-color": e.value.style.backgroundColor
1621
- }, null, 8, mo),
1622
- M("stop", {
1623
- offset: "100%",
1624
- "stop-color": e.value.style.layout.marginalBars.fill
1625
- }, null, 8, ko)
1626
- ], 8, bo)
1627
- ]),
1628
- (r(!0), y(U, null, K(T.value.x, (l, s) => (r(), y("g", null, [
1629
- l && T.value.avgX[s] ? (r(), y("rect", {
1630
- key: 0,
1631
- x: T.value.avgX[s] - v.value.width / $.value / 2,
1632
- y: v.value.top - e.value.style.layout.marginalBars.offset - l / T.value.maxX * e.value.style.layout.marginalBars.size,
1633
- width: v.value.width / $.value <= 0 ? 1e-4 : v.value.width / $.value,
1634
- height: l / T.value.maxX * e.value.style.layout.marginalBars.size <= 0 ? 1e-4 : l / T.value.maxX * e.value.style.layout.marginalBars.size,
1635
- fill: e.value.style.layout.marginalBars.useGradient ? `url(#marginal_x_${I.value})` : e.value.style.layout.marginalBars.fill,
1636
- style: ie([`opacity:${e.value.style.layout.marginalBars.opacity}`, { "pointer-events": "none" }]),
1637
- stroke: e.value.style.backgroundColor,
1638
- "stroke-width": e.value.style.layout.marginalBars.strokeWidth,
1639
- rx: e.value.style.layout.marginalBars.borderRadius
1640
- }, null, 12, wo)) : p("", !0),
1641
- T.value.avgX[s] ? (r(), y("rect", {
1642
- key: 1,
1643
- x: T.value.avgX[s] - v.value.width / $.value / 2,
1644
- y: v.value.top - e.value.style.layout.marginalBars.offset - e.value.style.layout.marginalBars.size,
1645
- width: v.value.width / $.value <= 0 ? 1e-4 : v.value.width / $.value,
1646
- height: Math.max(
1647
- 0.1,
1648
- e.value.style.layout.marginalBars.size
1649
- ),
1650
- fill: "transparent",
1651
- onMouseenter: (o) => Hl(s),
1652
- onMouseleave: a[0] || (a[0] = (o) => mt())
1653
- }, null, 40, Ao)) : p("", !0),
1654
- T.value.avgX[s] && $e.value != null && $e.value === s ? (r(), y("g", Mo, [
1655
- M("rect", {
1656
- x: T.value.avgX[s] - v.value.width / $.value / 2,
1657
- y: v.value.top,
1658
- width: v.value.width / $.value <= 0 ? 1e-4 : v.value.width / $.value,
1659
- height: v.value.height,
1660
- fill: e.value.style.layout.marginalBars.highlighter.color,
1661
- "fill-opacity": e.value.style.layout.marginalBars.highlighter.opacity
1662
- }, null, 8, $o),
1663
- M("line", {
1664
- x1: T.value.avgX[s] - v.value.width / $.value / 2,
1665
- x2: T.value.avgX[s] - v.value.width / $.value / 2,
1666
- y1: 0,
1667
- y2: v.value.top + v.value.height,
1668
- stroke: e.value.style.layout.marginalBars.highlighter.stroke,
1669
- "stroke-dasharray": e.value.style.layout.marginalBars.highlighter.strokeDasharray,
1670
- "stroke-width": e.value.style.layout.marginalBars.highlighter.strokeWidth,
1671
- style: {
1672
- transition: "none !important",
1673
- animation: "none !important"
1674
- }
1675
- }, null, 8, _o),
1676
- M("line", {
1677
- x1: T.value.avgX[s] - v.value.width / $.value / 2 + (v.value.width / $.value <= 0 ? 1e-4 : v.value.width / $.value),
1678
- x2: T.value.avgX[s] - v.value.width / $.value / 2 + (v.value.width / $.value <= 0 ? 1e-4 : v.value.width / $.value),
1679
- y1: 0,
1680
- y2: v.value.top + v.value.height,
1681
- stroke: e.value.style.layout.marginalBars.highlighter.stroke,
1682
- "stroke-dasharray": e.value.style.layout.marginalBars.highlighter.strokeDasharray,
1683
- "stroke-width": e.value.style.layout.marginalBars.highlighter.strokeWidth,
1684
- style: {
1685
- transition: "none !important",
1686
- animation: "none !important"
1687
- }
1688
- }, null, 8, Lo)
1689
- ])) : p("", !0)
1690
- ]))), 256)),
1691
- (r(!0), y(U, null, K(T.value.y, (l, s) => (r(), y("g", null, [
1692
- l && T.value.avgY[s] ? (r(), y("rect", {
1693
- key: 0,
1694
- x: v.value.right + e.value.style.layout.marginalBars.offset,
1695
- y: T.value.avgY[s] - v.value.height / $.value / 2,
1696
- height: v.value.height / $.value <= 0 ? 1e-4 : v.value.height / $.value,
1697
- width: l / T.value.maxY * e.value.style.layout.marginalBars.size <= 0 ? 1e-4 : l / T.value.maxY * e.value.style.layout.marginalBars.size,
1698
- fill: e.value.style.layout.marginalBars.useGradient ? `url(#marginal_y_${I.value})` : e.value.style.layout.marginalBars.fill,
1699
- style: ie([`opacity:${e.value.style.layout.marginalBars.opacity}`, { "pointer-events": "none" }]),
1700
- stroke: e.value.style.backgroundColor,
1701
- "stroke-width": e.value.style.layout.marginalBars.strokeWidth,
1702
- rx: e.value.style.layout.marginalBars.borderRadius
1703
- }, null, 12, So)) : p("", !0),
1704
- T.value.avgY[s] ? (r(), y("rect", {
1705
- key: 1,
1706
- x: v.value.right + e.value.style.layout.marginalBars.offset,
1707
- y: T.value.avgY[s] - v.value.height / $.value / 2,
1708
- width: Math.max(
1709
- 0.1,
1710
- e.value.style.layout.marginalBars.size
1711
- ),
1712
- height: v.value.height / $.value <= 0 ? 1e-4 : v.value.height / $.value,
1713
- fill: "transparent",
1714
- onMouseenter: (o) => Kl(s),
1715
- onMouseleave: a[1] || (a[1] = (o) => mt())
1716
- }, null, 40, Co)) : p("", !0),
1717
- T.value.avgY[s] && _e.value != null && _e.value === s ? (r(), y("g", To, [
1718
- M("rect", {
1719
- x: v.value.left,
1720
- y: T.value.avgY[s] - v.value.height / $.value / 2,
1721
- width: v.value.width,
1722
- height: v.value.height / $.value <= 0 ? 1e-4 : v.value.height / $.value,
1723
- fill: e.value.style.layout.marginalBars.highlighter.color,
1724
- "fill-opacity": e.value.style.layout.marginalBars.highlighter.opacity
1725
- }, null, 8, zo),
1726
- M("line", {
1727
- x1: v.value.left,
1728
- x2: Y.value.width,
1729
- y1: T.value.avgY[s] - v.value.height / $.value / 2,
1730
- y2: T.value.avgY[s] - v.value.height / $.value / 2,
1731
- stroke: e.value.style.layout.marginalBars.highlighter.stroke,
1732
- "stroke-dasharray": e.value.style.layout.marginalBars.highlighter.strokeDasharray,
1733
- "stroke-width": e.value.style.layout.marginalBars.highlighter.strokeWidth,
1734
- style: {
1735
- transition: "none !important",
1736
- animation: "none !important"
1737
- }
1738
- }, null, 8, Bo),
1739
- M("line", {
1740
- x1: v.value.left,
1741
- x2: Y.value.width,
1742
- y1: T.value.avgY[s] - v.value.height / $.value / 2 + (v.value.height / $.value <= 0 ? 1e-4 : v.value.height / $.value),
1743
- y2: T.value.avgY[s] - v.value.height / $.value / 2 + (v.value.height / $.value <= 0 ? 1e-4 : v.value.height / $.value),
1744
- stroke: e.value.style.layout.marginalBars.highlighter.stroke,
1745
- "stroke-dasharray": e.value.style.layout.marginalBars.highlighter.strokeDasharray,
1746
- "stroke-width": e.value.style.layout.marginalBars.highlighter.strokeWidth,
1747
- style: {
1748
- transition: "none !important",
1749
- animation: "none !important"
1750
- }
1751
- }, null, 8, Po)
1752
- ])) : p("", !0)
1753
- ]))), 256)),
1754
- e.value.style.layout.marginalBars.showLines ? (r(), y("g", Oo, [
1755
- (r(!0), y(U, null, K(Rl.value, (l) => (r(), y(U, null, [
1756
- E.value.includes(l.id) ? p("", !0) : (r(), y("path", {
1757
- key: 0,
1758
- d: `M ${l.dX}`,
1759
- stroke: e.value.style.backgroundColor,
1760
- "stroke-width": e.value.style.layout.marginalBars.linesStrokeWidth + 1,
1761
- "stroke-linecap": "round",
1762
- "stroke-linejoin": "round",
1763
- fill: "none"
1764
- }, null, 8, Do)),
1765
- E.value.includes(l.id) ? p("", !0) : (r(), y("path", {
1766
- key: 1,
1767
- d: `M ${l.dX}`,
1768
- stroke: l.color,
1769
- "stroke-width": e.value.style.layout.marginalBars.linesStrokeWidth,
1770
- "stroke-linecap": "round",
1771
- "stroke-linejoin": "round",
1772
- fill: "none"
1773
- }, null, 8, No)),
1774
- E.value.includes(l.id) ? p("", !0) : (r(), y("path", {
1775
- key: 2,
1776
- d: `M ${l.dY}`,
1777
- stroke: e.value.style.backgroundColor,
1778
- "stroke-width": e.value.style.layout.marginalBars.linesStrokeWidth + 1,
1779
- "stroke-linecap": "round",
1780
- "stroke-linejoin": "round",
1781
- fill: "none"
1782
- }, null, 8, Io)),
1783
- E.value.includes(l.id) ? p("", !0) : (r(), y("path", {
1784
- key: 3,
1785
- d: `M ${l.dY}`,
1786
- stroke: l.color,
1787
- "stroke-width": e.value.style.layout.marginalBars.linesStrokeWidth,
1788
- "stroke-linecap": "round",
1789
- "stroke-linejoin": "round",
1790
- fill: "none"
1791
- }, null, 8, Eo))
1792
- ], 64))), 256))
1793
- ])) : p("", !0)
1794
- ])) : p("", !0),
1795
- e.value.style.layout.plots.giftWrap.show ? (r(), y("g", Wo, [
1796
- (r(!0), y(U, null, K(G.value, (l, s) => (r(), y("g", null, [
1797
- l.plots.length > 2 ? (r(), y("polygon", {
1798
- key: 0,
1799
- points: f($a)({ series: l.plots }),
1800
- fill: f(Ee)(
1801
- l.color,
1802
- e.value.style.layout.plots.giftWrap.fillOpacity * 100
1803
- ),
1804
- "stroke-width": e.value.style.layout.plots.giftWrap.strokeWidth,
1805
- "stroke-dasharray": e.value.style.layout.plots.giftWrap.strokeDasharray,
1806
- stroke: l.color,
1807
- "stroke-linejoin": "round",
1808
- "stroke-linecap": "round"
1809
- }, null, 8, Xo)) : p("", !0)
1810
- ]))), 256))
1811
- ])) : p("", !0),
1812
- e.value.usePerformanceMode ? p("", !0) : (r(!0), y(U, { key: 8 }, K(G.value, (l, s) => (r(), y("g", null, [
1813
- !l.shape || l.shape === "circle" ? (r(), y("g", Yo, [
1814
- (r(!0), y(U, null, K(l.plots, (o, n) => (r(), y("circle", {
1815
- cx: o.x,
1816
- cy: o.y,
1817
- r: W.value && W.value === o.id ? o.weight * e.value.style.layout.plots.hoverRadiusRatio : o.weight,
1818
- fill: f(Ee)(
1819
- l.color,
1820
- W.value && W.value !== o.id ? e.value.style.layout.plots.opacityNotSelected * 100 : e.value.style.layout.plots.opacity * 100
1821
- ),
1822
- stroke: e.value.style.layout.plots.stroke,
1823
- "stroke-width": e.value.style.layout.plots.strokeWidth,
1824
- style: ie(`opacity:${W.value && W.value === o.id ? 1 : e.value.style.layout.plots.significance.useDistanceOpacity ? 1 - Math.abs(o.deviation) / Gt.value : e.value.style.layout.plots.significance.show && Math.abs(o.deviation) > e.value.style.layout.plots.significance.deviationThreshold ? e.value.style.layout.plots.significance.opacity : 1}`),
1825
- onMouseover: (u) => ye(
1826
- o,
1827
- s,
1828
- "pointer",
1829
- ue.value.get(o.id)
1830
- ),
1831
- onMouseleave: (u) => Te(o, s),
1832
- onClick: (u) => ze(o, s)
1833
- }, null, 44, Fo))), 256))
1834
- ])) : (r(), y("g", Ro, [
1835
- (r(!0), y(U, null, K(l.plots, (o, n) => (r(), se(Lt, {
1836
- plot: { x: o.x, y: o.y },
1837
- radius: W.value && W.value === o.id ? o.weight * e.value.style.layout.plots.hoverRadiusRatio : o.weight,
1838
- shape: l.shape,
1839
- color: f(Ee)(
1840
- l.color,
1841
- W.value && W.value !== o.id ? e.value.style.layout.plots.opacityNotSelected * 100 : e.value.style.layout.plots.opacity * 100
1842
- ),
1843
- stroke: e.value.style.layout.plots.stroke,
1844
- strokeWidth: e.value.style.layout.plots.strokeWidth,
1845
- style: ie(`opacity:${W.value && W.value === o.id ? 1 : e.value.style.layout.plots.significance.useDistanceOpacity ? 1 - Math.abs(o.deviation) / Gt.value : e.value.style.layout.plots.significance.show && Math.abs(o.deviation) > e.value.style.layout.plots.significance.deviationThreshold ? e.value.style.layout.plots.significance.opacity : 1}`),
1846
- onMouseover: (u) => ye(
1847
- o,
1848
- s,
1849
- "pointer",
1850
- ue.value.get(o.id)
1851
- ),
1852
- onMouseleave: (u) => Te(o, s),
1853
- onClick: (u) => ze(o, s)
1854
- }, null, 8, ["plot", "radius", "shape", "color", "stroke", "strokeWidth", "style", "onMouseover", "onMouseleave", "onClick"]))), 256))
1855
- ])),
1856
- e.value.style.layout.plots.name.show ? (r(!0), y(U, { key: 2 }, K(l.plots, (o, n) => (r(), y("text", {
1857
- x: o.x,
1858
- y: o.y - o.weight - e.value.style.layout.plots.name.fontSize + e.value.style.layout.plots.name.offsetY,
1859
- "text-anchor": "middle",
1860
- "font-size": e.value.style.layout.plots.name.fontSize,
1861
- fill: f(Ee)(
1862
- e.value.style.layout.plots.name.color,
1863
- W.value && W.value !== o.id ? e.value.style.layout.plots.opacityNotSelected * 100 : 100
1864
- ),
1865
- onMouseover: (u) => ye(
1866
- o,
1867
- s,
1868
- "pointer",
1869
- ue.value.get(o.id)
1870
- ),
1871
- onMouseleave: (u) => Te(o, s),
1872
- onClick: (u) => ze(o, s)
1873
- }, F(o.clusterName), 41, Vo))), 256)) : p("", !0)
1874
- ]))), 256)),
1875
- e.value.usePerformanceMode ? (r(), y(U, { key: 9 }, [
1876
- M("g", {
1877
- "clip-path": `url(#clip_path_${I.value})`
1878
- }, [
1879
- (r(!0), y(U, null, K(Jl.value, (l) => (r(), y("path", {
1880
- key: l.id,
1881
- d: l.d,
1882
- fill: l.fill,
1883
- stroke: l.stroke,
1884
- "stroke-width": l.strokeWidth,
1885
- "stroke-opacity": l.strokeOpacity,
1886
- "vector-effect": "non-scaling-stroke",
1887
- "paint-order": "fill"
1888
- }, null, 8, jo))), 128))
1889
- ], 8, Uo),
1890
- h.value && e.value.style.layout.plots.selectors.show ? (r(), y("g", qo, [
1891
- Ie(Lt, {
1892
- shape: h.value.shape || "circle",
1893
- color: h.value.color,
1894
- plot: { x: h.value.x, y: h.value.y },
1895
- radius: Math.max(
1896
- 4 * el[h.value.shape || "circle"],
1897
- h.value.weight * e.value.style.layout.plots.hoverRadiusRatio
1898
- ),
1899
- stroke: e.value.style.layout.plots.stroke,
1900
- strokeWidth: e.value.style.layout.plots.strokeWidth
1901
- }, null, 8, ["shape", "color", "plot", "radius", "stroke", "strokeWidth"])
1902
- ])) : p("", !0),
1903
- M("rect", {
1904
- x: v.value.left,
1905
- y: v.value.top,
1906
- width: Math.max(1e-4, v.value.width),
1907
- height: Math.max(1e-4, v.value.height),
1908
- fill: "transparent",
1909
- onMousemove: a[2] || (a[2] = (...l) => f(tl) && f(tl)(...l)),
1910
- onMouseleave: ea,
1911
- onClick: ta
1912
- }, null, 40, Go)
1913
- ], 64)) : p("", !0),
1914
- h.value && e.value.style.layout.plots.selectors.show ? (r(), y("g", Ho, [
1915
- M("line", {
1916
- x1: C.value.x,
1917
- x2: h.value.x,
1918
- y1: h.value.y,
1919
- y2: h.value.y,
1920
- stroke: e.value.style.layout.plots.selectors.stroke,
1921
- "stroke-width": e.value.style.layout.plots.selectors.strokeWidth,
1922
- "stroke-dasharray": e.value.style.layout.plots.selectors.strokeDasharray,
1923
- "stroke-linecap": "round",
1924
- class: "line-pointer"
1925
- }, null, 8, Ko),
1926
- M("line", {
1927
- x1: h.value.x,
1928
- x2: h.value.x,
1929
- y1: C.value.y,
1930
- y2: h.value.y,
1931
- stroke: e.value.style.layout.plots.selectors.stroke,
1932
- "stroke-width": e.value.style.layout.plots.selectors.strokeWidth,
1933
- "stroke-dasharray": e.value.style.layout.plots.selectors.strokeDasharray,
1934
- "stroke-linecap": "round",
1935
- class: "line-pointer"
1936
- }, null, 8, Zo),
1937
- e.value.style.layout.dataLabels.yAxis.scales.show ? p("", !0) : (r(), y("text", {
1938
- key: 0,
1939
- x: C.value.x + (h.value.x > C.value.x ? -6 : 6),
1940
- y: h.value.y + e.value.style.layout.plots.selectors.labels.fontSize / 3,
1941
- "font-size": e.value.style.layout.plots.selectors.labels.fontSize,
1942
- fill: e.value.style.layout.plots.selectors.labels.color,
1943
- "font-weight": e.value.style.layout.plots.selectors.labels.bold ? "bold" : "normal",
1944
- "text-anchor": h.value.x > C.value.x ? "end" : "start"
1945
- }, F(f(ee)(
1946
- e.value.style.layout.plots.selectors.labels.y.formatter,
1947
- f(R)(h.value.v.y),
1948
- f(j)({
1949
- p: e.value.style.layout.plots.selectors.labels.prefix,
1950
- v: f(R)(h.value.v.y),
1951
- s: e.value.style.layout.plots.selectors.labels.suffix,
1952
- r: e.value.style.layout.plots.selectors.labels.rounding
1953
- }),
1954
- { datapoint: h.value }
1955
- )), 9, Jo)),
1956
- e.value.style.layout.dataLabels.xAxis.scales.show ? p("", !0) : (r(), y("text", {
1957
- key: 1,
1958
- x: h.value.x,
1959
- y: C.value.y + (h.value.y > C.value.y ? -6 : e.value.style.layout.plots.selectors.labels.fontSize + 6),
1960
- "font-size": e.value.style.layout.plots.selectors.labels.fontSize,
1961
- fill: e.value.style.layout.plots.selectors.labels.color,
1962
- "font-weight": e.value.style.layout.plots.selectors.labels.bold ? "bold" : "normal",
1963
- "text-anchor": "middle"
1964
- }, F(f(ee)(
1965
- e.value.style.layout.plots.selectors.labels.y.formatter,
1966
- f(R)(h.value.v.x),
1967
- f(j)({
1968
- p: e.value.style.layout.plots.selectors.labels.prefix,
1969
- v: f(R)(h.value.v.x),
1970
- s: e.value.style.layout.plots.selectors.labels.suffix,
1971
- r: e.value.style.layout.plots.selectors.labels.rounding
1972
- }),
1973
- { datapoint: h.value }
1974
- )), 9, Qo)),
1975
- e.value.style.layout.dataLabels.xAxis.scales.show ? (r(), y("text", {
1976
- key: 2,
1977
- x: h.value.x,
1978
- y: C.value.y + e.value.style.layout.dataLabels.xAxis.scales.labels.fontSize + 6 + e.value.style.layout.dataLabels.xAxis.scales.labels.offsetY,
1979
- "text-anchor": "middle",
1980
- "font-size": e.value.style.layout.dataLabels.xAxis.scales.labels.fontSize,
1981
- fill: e.value.style.layout.dataLabels.xAxis.scales.labels.color
1982
- }, F(Wl.value), 9, es)) : p("", !0),
1983
- e.value.style.layout.dataLabels.yAxis.scales.show ? (r(), y("text", {
1984
- key: 3,
1985
- x: C.value.x - e.value.style.layout.dataLabels.yAxis.scales.labels.fontSize / 2 - 8 + e.value.style.layout.dataLabels.yAxis.scales.labels.offsetX,
1986
- y: h.value.y + e.value.style.layout.dataLabels.yAxis.scales.labels.fontSize / 3,
1987
- "text-anchor": "end",
1988
- "font-size": e.value.style.layout.dataLabels.yAxis.scales.labels.fontSize,
1989
- fill: e.value.style.layout.dataLabels.yAxis.scales.labels.color
1990
- }, F(Xl.value), 9, ts)) : p("", !0),
1991
- M("circle", {
1992
- cx: C.value.x,
1993
- cy: h.value.y,
1994
- r: e.value.style.layout.plots.selectors.markers.radius,
1995
- fill: e.value.style.layout.plots.selectors.markers.fill,
1996
- stroke: e.value.style.layout.plots.selectors.markers.stroke,
1997
- "stroke-width": e.value.style.layout.plots.selectors.markers.strokeWidth,
1998
- class: "line-pointer"
1999
- }, null, 8, ls),
2000
- M("circle", {
2001
- cx: h.value.x,
2002
- cy: C.value.y,
2003
- r: e.value.style.layout.plots.selectors.markers.radius,
2004
- fill: e.value.style.layout.plots.selectors.markers.fill,
2005
- stroke: e.value.style.layout.plots.selectors.markers.stroke,
2006
- "stroke-width": e.value.style.layout.plots.selectors.markers.strokeWidth,
2007
- class: "line-pointer"
2008
- }, null, 8, as),
2009
- e.value.style.layout.plots.selectors.labels.showName && !e.value.style.layout.plots.name.show ? (r(), y("text", {
2010
- key: 4,
2011
- x: h.value.x,
2012
- y: h.value.y + (h.value.y < C.value.y ? -e.value.style.layout.plots.selectors.labels.fontSize / 2 : e.value.style.layout.plots.selectors.labels.fontSize),
2013
- "font-size": e.value.style.layout.plots.selectors.labels.fontSize,
2014
- fill: e.value.style.layout.plots.selectors.labels.color,
2015
- "font-weight": e.value.style.layout.plots.selectors.labels.bold ? "bold" : "normal",
2016
- "text-anchor": h.value.x < v.value.left + 100 ? "start" : h.value.x > v.value.right - 100 ? "end" : h.value.x > C.value.x ? "start" : "end"
2017
- }, F(h.value.v.name), 9, os)) : p("", !0)
2018
- ])) : p("", !0),
2019
- e.value.style.layout.dataLabels.xAxis.show ? (r(), y("g", {
2020
- key: 11,
2021
- ref_key: "xAxisLabelLeft",
2022
- ref: tt
2023
- }, [
2024
- M("text", {
2025
- id: `vue-ui-scatter-xAxis-label-${I.value}`,
2026
- transform: `translate(${e.value.style.layout.dataLabels.xAxis.fontSize + (e.value.style.layout.dataLabels.reverseAxisLabels ? e.value.style.layout.dataLabels.yAxis.offsetX : e.value.style.layout.dataLabels.xAxis.offsetX)}, ${v.value.top + v.value.height / 2 + (e.value.style.layout.dataLabels.reverseAxisLabels ? e.value.style.layout.dataLabels.yAxis.offsetY : e.value.style.layout.dataLabels.xAxis.offsetY)}), rotate(-90)`,
2027
- "text-anchor": "middle",
2028
- "font-size": e.value.style.layout.dataLabels.xAxis.fontSize,
2029
- "font-weight": e.value.style.layout.dataLabels.xAxis.bold ? "bold" : "normal",
2030
- fill: e.value.style.layout.dataLabels.xAxis.color
2031
- }, F(e.value.style.layout.dataLabels.reverseAxisLabels ? e.value.style.layout.dataLabels.yAxis.name : e.value.style.layout.dataLabels.xAxis.name), 9, ss),
2032
- e.value.style.layout.dataLabels.xAxis.showValue ? (r(), y("text", {
2033
- key: 0,
2034
- "text-anchor": "middle",
2035
- "font-size": e.value.style.layout.dataLabels.xAxis.fontSize,
2036
- fill: e.value.style.layout.dataLabels.xAxis.color,
2037
- transform: `translate(${e.value.style.layout.dataLabels.xAxis.name ? e.value.style.layout.dataLabels.xAxis.fontSize * 3 : 0}, ${C.value.y + e.value.style.layout.dataLabels.xAxis.fontSize / 3}), rotate(-90)`
2038
- }, F(f(ee)(
2039
- e.value.style.layout.plots.selectors.labels.x.formatter,
2040
- f(R)(q.value.xMin),
2041
- f(j)({
2042
- p: e.value.style.layout.plots.selectors.labels.prefix,
2043
- v: f(R)(q.value.xMin),
2044
- s: e.value.style.layout.plots.selectors.labels.suffix,
2045
- r: e.value.style.layout.dataLabels.xAxis.rounding
2046
- })
2047
- )), 9, ns)) : p("", !0)
2048
- ], 512)) : p("", !0),
2049
- e.value.style.layout.dataLabels.xAxis.show && e.value.style.layout.dataLabels.xAxis.showValue ? (r(), y("text", {
2050
- key: 12,
2051
- ref_key: "xAxisLabelRight",
2052
- ref: lt,
2053
- "text-anchor": "middle",
2054
- transform: `translate(${v.value.right + e.value.style.layout.padding.right + 6}, ${C.value.y + e.value.style.layout.dataLabels.xAxis.fontSize / 3}), rotate(-90)`,
2055
- "font-size": e.value.style.layout.dataLabels.xAxis.fontSize,
2056
- fill: e.value.style.layout.dataLabels.xAxis.color
2057
- }, F(f(ee)(
2058
- e.value.style.layout.plots.selectors.labels.x.formatter,
2059
- f(R)(q.value.xMax),
2060
- f(j)({
2061
- p: e.value.style.layout.plots.selectors.labels.prefix,
2062
- v: f(R)(q.value.xMax),
2063
- s: e.value.style.layout.plots.selectors.labels.suffix,
2064
- r: e.value.style.layout.dataLabels.xAxis.rounding
2065
- })
2066
- )), 9, us)) : p("", !0),
2067
- e.value.style.layout.dataLabels.yAxis.show && e.value.style.layout.dataLabels.yAxis.showValue ? (r(), y("text", {
2068
- key: 13,
2069
- ref_key: "yAxisLabelTop",
2070
- ref: Tl,
2071
- x: C.value.x,
2072
- y: v.value.top - e.value.style.layout.dataLabels.yAxis.fontSize,
2073
- "text-anchor": "middle",
2074
- "font-size": e.value.style.layout.dataLabels.yAxis.fontSize,
2075
- fill: e.value.style.layout.dataLabels.yAxis.color
2076
- }, F(f(ee)(
2077
- e.value.style.layout.plots.selectors.labels.y.formatter,
2078
- f(R)(q.value.yMax),
2079
- f(j)({
2080
- p: e.value.style.layout.plots.selectors.labels.prefix,
2081
- v: f(R)(q.value.yMax),
2082
- s: e.value.style.layout.plots.selectors.labels.suffix,
2083
- r: e.value.style.layout.dataLabels.yAxis.rounding
2084
- })
2085
- )), 9, is)) : p("", !0),
2086
- e.value.style.layout.dataLabels.yAxis.show ? (r(), y("g", {
2087
- key: 14,
2088
- ref_key: "yAxisLabelBottom",
2089
- ref: at
2090
- }, [
2091
- e.value.style.layout.dataLabels.yAxis.showValue ? (r(), y("text", {
2092
- key: 0,
2093
- x: C.value.x,
2094
- y: Y.value.height - e.value.style.layout.dataLabels.yAxis.fontSize * 2,
2095
- "text-anchor": "middle",
2096
- "font-size": e.value.style.layout.dataLabels.yAxis.fontSize,
2097
- fill: e.value.style.layout.dataLabels.yAxis.color
2098
- }, F(f(ee)(
2099
- e.value.style.layout.plots.selectors.labels.y.formatter,
2100
- f(R)(q.value.yMin),
2101
- f(j)({
2102
- p: e.value.style.layout.plots.selectors.labels.prefix,
2103
- v: f(R)(q.value.yMin),
2104
- s: e.value.style.layout.plots.selectors.labels.suffix,
2105
- r: e.value.style.layout.dataLabels.yAxis.rounding
2106
- })
2107
- )), 9, rs)) : p("", !0),
2108
- M("text", {
2109
- "text-anchor": "middle",
2110
- "font-size": e.value.style.layout.dataLabels.yAxis.fontSize,
2111
- "font-weight": e.value.style.layout.dataLabels.yAxis.bold ? "bold" : "normal",
2112
- fill: e.value.style.layout.dataLabels.yAxis.color,
2113
- x: v.value.left + v.value.width / 2 + (e.value.style.layout.dataLabels.reverseAxisLabels ? e.value.style.layout.dataLabels.xAxis.offsetX : e.value.style.layout.dataLabels.yAxis.offsetX),
2114
- y: Y.value.height + (e.value.style.layout.dataLabels.reverseAxisLabels ? e.value.style.layout.dataLabels.xAxis.offsetY : e.value.style.layout.dataLabels.yAxis.offsetY)
2115
- }, F(e.value.style.layout.dataLabels.reverseAxisLabels ? e.value.style.layout.dataLabels.xAxis.name : e.value.style.layout.dataLabels.yAxis.name), 9, vs)
2116
- ], 512)) : p("", !0),
2117
- M("clipPath", {
2118
- id: `clip_path_${I.value}`
2119
- }, [
2120
- M("rect", {
2121
- x: v.value.left,
2122
- y: v.value.top,
2123
- width: v.value.width <= 0 ? 1e-4 : v.value.width,
2124
- height: v.value.height <= 0 ? 1e-4 : v.value.height
2125
- }, null, 8, cs)
2126
- ], 8, ys),
2127
- e.value.style.layout.correlation.show ? (r(), y("g", ds, [
2128
- (r(!0), y(U, null, K(G.value.filter(
2129
- (l) => l.correlation
2130
- ), (l, s) => (r(), y("line", {
2131
- x1: l.correlation.x1,
2132
- x2: l.correlation.x2,
2133
- y1: l.correlation.y1,
2134
- y2: l.correlation.y2,
2135
- "stroke-dasharray": e.value.style.layout.correlation.strokeDasharray,
2136
- stroke: l.color,
2137
- "stroke-width": e.value.style.layout.correlation.strokeWidth,
2138
- "clip-path": `url(#clip_path_${I.value})`
2139
- }, null, 8, hs))), 256)),
2140
- (r(!0), y(U, null, K(G.value.filter(
2141
- (l) => l.correlation
2142
- ), (l, s) => (r(), y("g", null, [
2143
- e.value.style.layout.correlation.label.show ? (r(), y("text", {
2144
- key: 0,
2145
- x: l.correlation.x2,
2146
- y: l.correlation.y2,
2147
- fill: e.value.style.layout.correlation.label.useSerieColor ? l.color : e.value.style.layout.correlation.label.color,
2148
- "text-anchor": "end",
2149
- "font-size": e.value.style.layout.correlation.label.fontSize,
2150
- "font-weight": e.value.style.layout.correlation.label.bold ? "bold" : "normal"
2151
- }, F(f(j)({
2152
- v: f(R)(
2153
- l.correlation?.coefficient ?? 0
2154
- ),
2155
- r: e.value.style.layout.correlation.label.roundingValue
2156
- })), 9, fs)) : p("", !0)
2157
- ]))), 256))
2158
- ])) : p("", !0),
2159
- D(t.$slots, "svg", {
2160
- svg: {
2161
- ...Y.value,
2162
- drawingArea: {
2163
- ...v.value,
2164
- zero: C.value
2165
- },
2166
- data: me.value,
2167
- isPrintingImg: f(yt) | f(ct) | Ye.value,
2168
- isPrintingSvg: Fe.value
2169
- }
2170
- }, void 0, !0)
2171
- ], 46, Qa)),
2172
- t.$slots.hint ? (r(), y("div", ps, [
2173
- D(t.$slots, "hint", J(Q({
2174
- hint: e.value.a11y.translations.keyboardNavigation,
2175
- isVisible: Re.value
2176
- })), void 0, !0)
2177
- ])) : p("", !0)
2178
- ]),
2179
- t.$slots.watermark ? (r(), y("div", gs, [
2180
- D(t.$slots, "watermark", J(Q({
2181
- isPrinting: f(yt) || f(ct) || Ye.value || Fe.value
2182
- })), void 0, !0)
2183
- ])) : p("", !0),
2184
- M("div", {
2185
- id: `legend-bottom-${I.value}`
2186
- }, null, 8, xs),
2187
- We.value && Nt.value && (e.value.style.legend.show || t.$slots.legend) ? (r(), se(fa, {
2188
- key: 7,
2189
- to: e.value.style.legend.position === "top" ? `#legend-top-${I.value}` : `#legend-bottom-${I.value}`
2190
- }, [
2191
- M("div", {
2192
- ref_key: "chartLegend",
2193
- ref: Tt
2194
- }, [
2195
- D(t.$slots, "legend", { legend: le.value }, () => [
2196
- e.value.style.legend.show ? (r(), se(Va, {
2197
- key: `legend_${Dt.value}`,
2198
- legendSet: le.value,
2199
- config: Yl.value,
2200
- isCursorPointer: he.value,
2201
- onClickMarker: a[3] || (a[3] = ({ legend: l }) => He(l.id))
2202
- }, {
2203
- item: B(({ legend: l }) => [
2204
- M("div", {
2205
- onClick: (s) => l.segregate(),
2206
- style: ie(`opacity:${E.value.includes(l.id) ? 0.5 : 1}`)
2207
- }, F(l.name), 13, bs)
2208
- ]),
2209
- legendToggle: B(() => [
2210
- le.value.length > 2 && e.value.style.legend.selectAllToggle.show && !f(nt) ? (r(), se(ja, {
2211
- key: 0,
2212
- backgroundColor: e.value.style.legend.selectAllToggle.backgroundColor,
2213
- color: e.value.style.legend.selectAllToggle.color,
2214
- fontSize: e.value.style.legend.fontSize,
2215
- checked: E.value.length > 0,
2216
- isCursorPointer: he.value,
2217
- onToggle: Ul
2218
- }, null, 8, ["backgroundColor", "color", "fontSize", "checked", "isCursorPointer"])) : p("", !0)
2219
- ]),
2220
- _: 1
2221
- }, 8, ["legendSet", "config", "isCursorPointer"])) : p("", !0)
2222
- ], !0)
2223
- ], 512)
2224
- ], 8, ["to"])) : p("", !0),
2225
- t.$slots.source ? (r(), y("div", {
2226
- key: 8,
2227
- ref_key: "source",
2228
- ref: zt,
2229
- dir: "auto"
2230
- }, [
2231
- D(t.$slots, "source", {}, void 0, !0)
2232
- ], 512)) : p("", !0),
2233
- Ie(f(xl), {
2234
- teleportTo: e.value.style.tooltip.teleportTo,
2235
- show: te.value.showTooltip && Xe.value,
2236
- backgroundColor: e.value.style.tooltip.backgroundColor,
2237
- color: e.value.style.tooltip.color,
2238
- borderRadius: e.value.style.tooltip.borderRadius,
2239
- borderColor: e.value.style.tooltip.borderColor,
2240
- borderWidth: e.value.style.tooltip.borderWidth,
2241
- fontSize: e.value.style.tooltip.fontSize,
2242
- backgroundOpacity: e.value.style.tooltip.backgroundOpacity,
2243
- position: e.value.style.tooltip.position,
2244
- offsetY: e.value.style.tooltip.offsetY,
2245
- parent: ne.value,
2246
- content: Qe.value,
2247
- isFullscreen: fe.value,
2248
- isCustom: e.value.style.tooltip.customFormat && typeof e.value.style.tooltip.customFormat == "function",
2249
- smooth: e.value.style.tooltip.smooth,
2250
- backdropFilter: e.value.style.tooltip.backdropFilter,
2251
- smoothForce: e.value.style.tooltip.smoothForce,
2252
- smoothSnapThreshold: e.value.style.tooltip.smoothSnapThreshold,
2253
- isA11yMode: Se.value === "keyboard",
2254
- a11yPosition: It.value
2255
- }, {
2256
- "tooltip-before": B(() => [
2257
- D(t.$slots, "tooltip-before", J(Q({ ...Ge.value })), void 0, !0)
2258
- ]),
2259
- tooltip: B(() => [
2260
- D(t.$slots, "tooltip", J(Q({ ...Ge.value })), void 0, !0)
2261
- ]),
2262
- "tooltip-after": B(() => [
2263
- D(t.$slots, "tooltip-after", J(Q({ ...Ge.value })), void 0, !0)
2264
- ]),
2265
- default: B(() => [
2266
- e.value.style.tooltip.showShape ? (r(), y("div", ms, [
2267
- (r(), y("svg", ks, [
2268
- Ie(Lt, {
2269
- shape: h.value.shape,
2270
- color: h.value.color,
2271
- plot: { x: 10, y: 10 },
2272
- radius: 7
2273
- }, null, 8, ["shape", "color"])
2274
- ]))
2275
- ])) : p("", !0)
2276
- ]),
2277
- _: 3
2278
- }, 8, ["teleportTo", "show", "backgroundColor", "color", "borderRadius", "borderColor", "borderWidth", "fontSize", "backgroundOpacity", "position", "offsetY", "parent", "content", "isFullscreen", "isCustom", "smooth", "backdropFilter", "smoothForce", "smoothSnapThreshold", "isA11yMode", "a11yPosition"]),
2279
- We.value && e.value.userOptions.buttons.table ? (r(), se(pa(Pe.value.component), ga({ key: 9 }, Pe.value.props, {
2280
- ref_key: "tableUnit",
2281
- ref: Le,
2282
- onClose: ll
2283
- }), il({
2284
- content: B(() => [
2285
- (r(), se(f(kl), {
2286
- key: `table_${Ot.value}`,
2287
- colNames: ke.value.colNames,
2288
- head: ke.value.head,
2289
- body: ke.value.body,
2290
- config: ke.value.config,
2291
- title: e.value.table.useDialog ? "" : Pe.value.title,
2292
- withCloseButton: !e.value.table.useDialog,
2293
- isCursorPointer: he.value,
2294
- onClose: ll
2295
- }, {
2296
- th: B(({ th: l }) => [
2297
- rl(F(l), 1)
2298
- ]),
2299
- td: B(({ td: l }) => [
2300
- l.shape ? (r(), y("div", ws, [
2301
- M("span", null, F(l.content), 1)
2302
- ])) : (r(), y("div", {
2303
- key: 1,
2304
- innerHTML: l
2305
- }, null, 8, As))
2306
- ]),
2307
- _: 1
2308
- }, 8, ["colNames", "head", "body", "config", "title", "withCloseButton", "isCursorPointer"]))
2309
- ]),
2310
- _: 2
2311
- }, [
2312
- e.value.table.useDialog ? {
2313
- name: "title",
2314
- fn: B(() => [
2315
- rl(F(Pe.value.title), 1)
2316
- ]),
2317
- key: "0"
2318
- } : void 0,
2319
- e.value.table.useDialog ? {
2320
- name: "actions",
2321
- fn: B(() => [
2322
- M("button", {
2323
- tabindex: "0",
2324
- class: "vue-ui-user-options-button",
2325
- onClick: a[4] || (a[4] = (l) => xt(e.value.userOptions.callbacks.csv)),
2326
- style: ie({ cursor: he.value ? "pointer" : "default" })
2327
- }, [
2328
- Ie(f(bl), {
2329
- name: "fileCsv",
2330
- stroke: Pe.value.props.color
2331
- }, null, 8, ["stroke"])
2332
- ], 4)
2333
- ]),
2334
- key: "1"
2335
- } : void 0
2336
- ]), 1040)) : p("", !0),
2337
- D(t.$slots, "skeleton", {}, () => [
2338
- f(nt) ? (r(), se(Da, { key: 0 })) : p("", !0)
2339
- ], !0)
2340
- ], 46, Ga));
2341
- }
2342
- }, Vs = /* @__PURE__ */ qa(Ms, [["__scopeId", "data-v-58146ed0"]]);
2343
- export {
2344
- Vs as default
2345
- };