vue-data-ui 3.19.9 → 3.20.0

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