vue-data-ui 3.17.13 → 3.18.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 (493) hide show
  1. package/README.md +1 -1
  2. package/dist/A11yDataTable-q2-8fSlJ.js +45 -0
  3. package/dist/Arrow-BU2Z7mfz.js +116 -0
  4. package/dist/BaseDraggableDialog-LE75fWYz.js +272 -0
  5. package/dist/BaseIcon-CL6Y7alf.js +499 -0
  6. package/dist/BaseLegendToggle-BvPOFMVZ.js +56 -0
  7. package/dist/BaseScanner-C7dmAref.js +27 -0
  8. package/dist/BaseZoomControls-DSwf4HhS.js +111 -0
  9. package/dist/ColorPicker-BGbMrtup.js +255 -0
  10. package/dist/DataTable-ZG4GX2Zg.js +150 -0
  11. package/dist/Legend-BPb8i4aC.js +114 -0
  12. package/dist/NonSvgPenAndPaper-BT3YMjgo.js +577 -0
  13. package/dist/PackageVersion-B1cPtZ3Q.js +11 -0
  14. package/dist/PenAndPaper-DxBCVZAx.js +461 -0
  15. package/dist/RecursiveCircles-DPpLel6f.js +117 -0
  16. package/dist/RecursiveLabels-DBMJf_to.js +56 -0
  17. package/dist/RecursiveLinks-D06dBL4a.js +78 -0
  18. package/dist/Shape-Dbug7CtK.js +141 -0
  19. package/dist/Slicer-SEdaKYPX.js +1144 -0
  20. package/dist/SlicerPreview-BLlQTUI_.js +1523 -0
  21. package/dist/SparkTooltip-BaONR2nq.js +93 -0
  22. package/dist/Title-ByyzJzpc.js +87 -0
  23. package/dist/Tooltip-V6Z0Ko-1.js +307 -0
  24. package/dist/UserOptions-Gaw1761w.js +1407 -0
  25. package/dist/_plugin-vue_export-helper-Dq1MygBL.js +8 -0
  26. package/dist/canvas-lib-DTaADQOK.js +79 -0
  27. package/dist/components/arrow.js +2 -5
  28. package/dist/components/vue-ui-3d-bar.js +2 -5
  29. package/dist/components/vue-ui-accordion.js +2 -5
  30. package/dist/components/vue-ui-age-pyramid.js +2 -5
  31. package/dist/components/vue-ui-annotator.js +2 -5
  32. package/dist/components/vue-ui-bullet.js +2 -5
  33. package/dist/components/vue-ui-bump.js +2 -5
  34. package/dist/components/vue-ui-candlestick.js +2 -5
  35. package/dist/components/vue-ui-carousel-table.js +2 -5
  36. package/dist/components/vue-ui-chestnut.js +2 -5
  37. package/dist/components/vue-ui-chord.js +2 -5
  38. package/dist/components/vue-ui-circle-pack.js +2 -5
  39. package/dist/components/vue-ui-cursor.js +2 -5
  40. package/dist/components/vue-ui-dag.js +2 -5
  41. package/dist/components/vue-ui-dashboard.js +2 -5
  42. package/dist/components/vue-ui-digits.js +2 -5
  43. package/dist/components/vue-ui-donut-evolution.js +2 -5
  44. package/dist/components/vue-ui-donut.js +2 -5
  45. package/dist/components/vue-ui-dumbbell.js +2 -5
  46. package/dist/components/vue-ui-flow.js +2 -5
  47. package/dist/components/vue-ui-funnel.js +2 -5
  48. package/dist/components/vue-ui-galaxy.js +2 -5
  49. package/dist/components/vue-ui-gauge.js +2 -5
  50. package/dist/components/vue-ui-geo.js +2 -5
  51. package/dist/components/vue-ui-gizmo.js +2 -5
  52. package/dist/components/vue-ui-heatmap.js +2 -5
  53. package/dist/components/vue-ui-history-plot.js +2 -5
  54. package/dist/components/vue-ui-horizontal-bar.js +2 -5
  55. package/dist/components/vue-ui-icon.js +2 -5
  56. package/dist/components/vue-ui-kpi.js +2 -5
  57. package/dist/components/vue-ui-mini-loader.js +2 -5
  58. package/dist/components/vue-ui-molecule.js +2 -5
  59. package/dist/components/vue-ui-mood-radar.js +2 -5
  60. package/dist/components/vue-ui-nested-donuts.js +2 -5
  61. package/dist/components/vue-ui-onion.js +2 -5
  62. package/dist/components/vue-ui-parallel-coordinate-plot.js +2 -5
  63. package/dist/components/vue-ui-pattern-seed.js +2 -5
  64. package/dist/components/vue-ui-pattern.js +2 -5
  65. package/dist/components/vue-ui-quadrant.js +2 -5
  66. package/dist/components/vue-ui-quick-chart.js +2 -5
  67. package/dist/components/vue-ui-radar.js +2 -5
  68. package/dist/components/vue-ui-rating.js +2 -5
  69. package/dist/components/vue-ui-relation-circle.js +2 -5
  70. package/dist/components/vue-ui-ridgeline.js +2 -5
  71. package/dist/components/vue-ui-rings.js +2 -5
  72. package/dist/components/vue-ui-scatter.js +2 -5
  73. package/dist/components/vue-ui-skeleton.js +2 -5
  74. package/dist/components/vue-ui-smiley.js +2 -5
  75. package/dist/components/vue-ui-spark-trend.js +2 -5
  76. package/dist/components/vue-ui-sparkbar.js +2 -5
  77. package/dist/components/vue-ui-sparkgauge.js +2 -5
  78. package/dist/components/vue-ui-sparkhistogram.js +2 -5
  79. package/dist/components/vue-ui-sparkline.js +2 -5
  80. package/dist/components/vue-ui-sparkstackbar.js +2 -5
  81. package/dist/components/vue-ui-stackbar.js +2 -5
  82. package/dist/components/vue-ui-stackline.js +2 -5
  83. package/dist/components/vue-ui-strip-plot.js +2 -5
  84. package/dist/components/vue-ui-table-heatmap.js +2 -5
  85. package/dist/components/vue-ui-table-sparkline.js +2 -5
  86. package/dist/components/vue-ui-table.js +2 -5
  87. package/dist/components/vue-ui-thermometer.js +2 -5
  88. package/dist/components/vue-ui-timer.js +2 -5
  89. package/dist/components/vue-ui-tiremarks.js +2 -5
  90. package/dist/components/vue-ui-treemap.js +2 -5
  91. package/dist/components/vue-ui-vertical-bar.js +2 -5
  92. package/dist/components/vue-ui-waffle.js +2 -5
  93. package/dist/components/vue-ui-wheel.js +2 -5
  94. package/dist/components/vue-ui-word-cloud.js +2 -5
  95. package/dist/components/vue-ui-world.js +2 -5
  96. package/dist/components/vue-ui-xy-canvas.js +2 -5
  97. package/dist/components/vue-ui-xy.js +2 -5
  98. package/dist/dom-to-png-C9UOX1d2.js +237 -0
  99. package/dist/exposedLib-BQjH823l.js +19 -0
  100. package/dist/geoProjections-CQIkC70z.js +146 -0
  101. package/dist/img-NMY-_LiJ.js +74 -0
  102. package/dist/labelUtils-BiSegLOT.js +19 -0
  103. package/dist/lib-B83ZCydz.js +1879 -0
  104. package/dist/patternUtils-B7BWu5bV.js +258 -0
  105. package/dist/pdf-Ey2KFETK.js +90 -0
  106. package/dist/rolldown-runtime-CAFD8bLK.js +11 -0
  107. package/dist/style.css +2 -1
  108. package/dist/types/arrow.d.ts +1 -1
  109. package/dist/types/utils.d.ts +23 -0
  110. package/dist/types/vue-data-ui.d.ts +4766 -630
  111. package/dist/types/vue-ui-3d-bar.d.ts +64 -9
  112. package/dist/types/vue-ui-accordion.d.ts +4 -3
  113. package/dist/types/vue-ui-age-pyramid.d.ts +79 -9
  114. package/dist/types/vue-ui-annotator.d.ts +3 -5
  115. package/dist/types/vue-ui-bullet.d.ts +60 -9
  116. package/dist/types/vue-ui-bump.d.ts +65 -9
  117. package/dist/types/vue-ui-candlestick.d.ts +83 -9
  118. package/dist/types/vue-ui-carousel-table.d.ts +36 -6
  119. package/dist/types/vue-ui-chestnut.d.ts +66 -9
  120. package/dist/types/vue-ui-chord.d.ts +78 -9
  121. package/dist/types/vue-ui-circle-pack.d.ts +86 -9
  122. package/dist/types/vue-ui-cursor.d.ts +4 -2
  123. package/dist/types/vue-ui-dag.d.ts +92 -9
  124. package/dist/types/vue-ui-dashboard.d.ts +43 -6
  125. package/dist/types/vue-ui-digits.d.ts +4 -2
  126. package/dist/types/vue-ui-donut-evolution.d.ts +70 -9
  127. package/dist/types/vue-ui-donut.d.ts +92 -9
  128. package/dist/types/vue-ui-dumbbell.d.ts +65 -9
  129. package/dist/types/vue-ui-flow.d.ts +79 -9
  130. package/dist/types/vue-ui-funnel.d.ts +55 -9
  131. package/dist/types/vue-ui-galaxy.d.ts +83 -9
  132. package/dist/types/vue-ui-gauge.d.ts +64 -9
  133. package/dist/types/vue-ui-geo.d.ts +71 -9
  134. package/dist/types/vue-ui-gizmo.d.ts +17 -6
  135. package/dist/types/vue-ui-heatmap.d.ts +73 -9
  136. package/dist/types/vue-ui-history-plot.d.ts +82 -9
  137. package/dist/types/vue-ui-horizontal-bar.d.ts +84 -9
  138. package/dist/types/vue-ui-icon.d.ts +2 -2
  139. package/dist/types/vue-ui-kpi.d.ts +21 -7
  140. package/dist/types/vue-ui-mini-loader.d.ts +5 -3
  141. package/dist/types/vue-ui-molecule.d.ts +86 -9
  142. package/dist/types/vue-ui-mood-radar.d.ts +66 -9
  143. package/dist/types/vue-ui-nested-donuts.d.ts +80 -9
  144. package/dist/types/vue-ui-onion.d.ts +77 -9
  145. package/dist/types/vue-ui-parallel-coordinate-plot.d.ts +92 -9
  146. package/dist/types/vue-ui-pattern-seed.d.ts +1 -1
  147. package/dist/types/vue-ui-pattern.d.ts +2 -2
  148. package/dist/types/vue-ui-quadrant.d.ts +86 -9
  149. package/dist/types/vue-ui-quick-chart.d.ts +79 -9
  150. package/dist/types/vue-ui-radar.d.ts +83 -9
  151. package/dist/types/vue-ui-rating.d.ts +22 -6
  152. package/dist/types/vue-ui-relation-circle.d.ts +66 -9
  153. package/dist/types/vue-ui-ridgeline.d.ts +69 -9
  154. package/dist/types/vue-ui-rings.d.ts +70 -9
  155. package/dist/types/vue-ui-scatter.d.ts +67 -9
  156. package/dist/types/vue-ui-skeleton.d.ts +3 -2
  157. package/dist/types/vue-ui-smiley.d.ts +3 -2
  158. package/dist/types/vue-ui-spark-trend.d.ts +14 -6
  159. package/dist/types/vue-ui-sparkbar.d.ts +27 -6
  160. package/dist/types/vue-ui-sparkgauge.d.ts +20 -6
  161. package/dist/types/vue-ui-sparkhistogram.d.ts +24 -6
  162. package/dist/types/vue-ui-sparkline.d.ts +35 -6
  163. package/dist/types/vue-ui-sparkstackbar.d.ts +35 -6
  164. package/dist/types/vue-ui-stackbar.d.ts +85 -9
  165. package/dist/types/vue-ui-stackline.d.ts +81 -9
  166. package/dist/types/vue-ui-strip-plot.d.ts +66 -9
  167. package/dist/types/vue-ui-table-heatmap.d.ts +52 -6
  168. package/dist/types/vue-ui-table-sparkline.d.ts +30 -6
  169. package/dist/types/vue-ui-table.d.ts +10 -2
  170. package/dist/types/vue-ui-thermometer.d.ts +46 -9
  171. package/dist/types/vue-ui-timer.d.ts +31 -5
  172. package/dist/types/vue-ui-tiremarks.d.ts +46 -9
  173. package/dist/types/vue-ui-treemap.d.ts +73 -9
  174. package/dist/types/vue-ui-vertical-bar.d.ts +2 -2
  175. package/dist/types/vue-ui-waffle.d.ts +72 -9
  176. package/dist/types/vue-ui-wheel.d.ts +46 -9
  177. package/dist/types/vue-ui-word-cloud.d.ts +73 -9
  178. package/dist/types/vue-ui-world.d.ts +68 -9
  179. package/dist/types/vue-ui-xy-canvas.d.ts +75 -9
  180. package/dist/types/vue-ui-xy.d.ts +108 -10
  181. package/dist/useAutoSizeLabelsInsideViewbox-De0rTecW.js +50 -0
  182. package/dist/useChartAccessibility-Do37qcw2.js +12 -0
  183. package/dist/useConfig-KnOLHtlJ.js +7419 -0
  184. package/dist/useFitSvgText-C-MEdAfe.js +63 -0
  185. package/dist/useNestedProp-CcxL1gUU.js +10 -0
  186. package/dist/useObjectBindings-Dc8Rf6Qy.js +189 -0
  187. package/dist/usePanZoom-B-4M_gmY.js +157 -0
  188. package/dist/usePrefersMotion-BywLbIko.js +15 -0
  189. package/dist/usePrinter-CMLF900n.js +49 -0
  190. package/dist/useResponsive-CrAInupd.js +19 -0
  191. package/dist/useStableElementSize-0I1IpHPl.js +77 -0
  192. package/dist/useSvgExport-Dtu973wa.js +755 -0
  193. package/dist/useTableResponsive-DrM1xqII.js +24 -0
  194. package/dist/useThemeCheck-rFK9Zlb_.js +24 -0
  195. package/dist/useTimeLabelCollider-Dm55Emzg.js +57 -0
  196. package/dist/useTimeLabels-C0x7zUXP.js +272 -0
  197. package/dist/useUserOptionState-CjPJPTg2.js +15 -0
  198. package/dist/utils.js +27 -44
  199. package/dist/vClickOutside-CbX_bC9A.js +13 -0
  200. package/dist/vue-data-ui-D1REqS_k.js +274 -0
  201. package/dist/vue-data-ui.js +76 -167
  202. package/dist/vue-ui-3d-bar-vO_kSCd6.js +1747 -0
  203. package/dist/vue-ui-accordion-Cf-jZELj.js +81 -0
  204. package/dist/vue-ui-age-pyramid-DHXhrP_3.js +1226 -0
  205. package/dist/vue-ui-annotator-B0o6czmF.js +2899 -0
  206. package/dist/vue-ui-bullet-C93-cf0H.js +700 -0
  207. package/dist/vue-ui-bump-C_Szk9AZ.js +1239 -0
  208. package/dist/vue-ui-candlestick-6JdMEJKO.js +1802 -0
  209. package/dist/vue-ui-carousel-table-CZ_HK0Iw.js +445 -0
  210. package/dist/vue-ui-chestnut-B8ixU585.js +2000 -0
  211. package/dist/vue-ui-chord-DC5sLapz.js +1381 -0
  212. package/dist/vue-ui-circle-pack-CsmSEwt3.js +1183 -0
  213. package/dist/vue-ui-cursor-B-QODIL3.js +283 -0
  214. package/dist/vue-ui-dag-C9LYfjS_.js +2899 -0
  215. package/dist/vue-ui-dashboard-D-f4ZaLi.js +503 -0
  216. package/dist/vue-ui-digits-CcB3odN7.js +209 -0
  217. package/dist/vue-ui-donut-DR0ngnZC.js +2396 -0
  218. package/dist/vue-ui-donut-evolution-BXpOscCe.js +1490 -0
  219. package/dist/vue-ui-dumbbell-CB_clJWA.js +1517 -0
  220. package/dist/vue-ui-flow-CUiOAEy1.js +1223 -0
  221. package/dist/vue-ui-funnel-BAlGDK0o.js +767 -0
  222. package/dist/vue-ui-galaxy-DbYNfSHb.js +1062 -0
  223. package/dist/vue-ui-gauge-Cie7jykM.js +910 -0
  224. package/dist/vue-ui-geo-Ce_gBRye.js +1504 -0
  225. package/dist/vue-ui-gizmo-B9POi_SN.js +225 -0
  226. package/dist/vue-ui-heatmap-DFfRSbnk.js +1556 -0
  227. package/dist/vue-ui-history-plot-DHp5WFgx.js +1551 -0
  228. package/dist/vue-ui-horizontal-bar-DI4yoARv.js +1669 -0
  229. package/dist/vue-ui-kpi-oUfso4UP.js +96 -0
  230. package/dist/vue-ui-mini-loader-aZMi1_uX.js +125 -0
  231. package/dist/vue-ui-molecule-D72kzel_.js +912 -0
  232. package/dist/vue-ui-mood-radar-Tw2ZFP7Y.js +1138 -0
  233. package/dist/vue-ui-nested-donuts-Bza1LczX.js +1472 -0
  234. package/dist/vue-ui-onion-BOuuib5d.js +1188 -0
  235. package/dist/vue-ui-parallel-coordinate-plot-BuQUq6-o.js +1413 -0
  236. package/dist/vue-ui-pattern-Bj-IPFr2.js +154 -0
  237. package/dist/vue-ui-pattern-seed-abRweCDE.js +61 -0
  238. package/dist/vue-ui-quadrant-zNFIXNt9.js +1966 -0
  239. package/dist/vue-ui-quick-chart-B1a8QVUn.js +2459 -0
  240. package/dist/vue-ui-radar-VFn-YP_2.js +1214 -0
  241. package/dist/vue-ui-rating-Dxgn21FA.js +343 -0
  242. package/dist/vue-ui-relation-circle-B0sZaCgX.js +914 -0
  243. package/dist/vue-ui-ridgeline-BsBAbg5V.js +1612 -0
  244. package/dist/vue-ui-rings-CDwUzMF-.js +1231 -0
  245. package/dist/vue-ui-scatter-Du_b-zM8.js +2380 -0
  246. package/dist/vue-ui-skeleton-BAq6J_6G.js +2556 -0
  247. package/dist/vue-ui-smiley-CoHvkS0c.js +356 -0
  248. package/dist/vue-ui-spark-trend-BmCcJ17C.js +438 -0
  249. package/dist/vue-ui-sparkbar-9z05IMx8.js +393 -0
  250. package/dist/vue-ui-sparkgauge-BlWri9DP.js +255 -0
  251. package/dist/vue-ui-sparkhistogram-CHZTt8d8.js +560 -0
  252. package/dist/vue-ui-sparkline-DirLW9Nd.js +1503 -0
  253. package/dist/vue-ui-sparkstackbar-Dk6cEI2o.js +660 -0
  254. package/dist/vue-ui-stackbar-DNIrGHkt.js +2235 -0
  255. package/dist/vue-ui-stackline-HoWn_ur2.js +2362 -0
  256. package/dist/vue-ui-strip-plot-Bi8u_fLr.js +1328 -0
  257. package/dist/vue-ui-table-XLjOOfdI.js +1338 -0
  258. package/dist/vue-ui-table-heatmap-DvnFiveI.js +334 -0
  259. package/dist/vue-ui-table-sparkline-CSZf8XxP.js +697 -0
  260. package/dist/vue-ui-thermometer-7eUO_7CP.js +753 -0
  261. package/dist/vue-ui-timer-DCbxsREb.js +439 -0
  262. package/dist/vue-ui-tiremarks-p_sfTufv.js +542 -0
  263. package/dist/vue-ui-treemap-BdZOW7TM.js +1575 -0
  264. package/dist/vue-ui-waffle-Bf9dWWCM.js +1350 -0
  265. package/dist/vue-ui-wheel-CZrIiB0K.js +875 -0
  266. package/dist/vue-ui-word-cloud-BeLjxoRe.js +1644 -0
  267. package/dist/vue-ui-world-D9ahzEQ2.js +14252 -0
  268. package/dist/vue-ui-xy-DrvbVuHO.js +4063 -0
  269. package/dist/vue-ui-xy-canvas-DU7vFrQr.js +1774 -0
  270. package/dist/vue_ui_3d_bar-CXKqO5Ej.js +185 -0
  271. package/dist/vue_ui_age_pyramid-BON8QI6X.js +301 -0
  272. package/dist/vue_ui_bullet-CE5sFT7u.js +186 -0
  273. package/dist/vue_ui_bump-frnXaXul.js +201 -0
  274. package/dist/vue_ui_candlestick-sY6UtOop.js +374 -0
  275. package/dist/vue_ui_chestnut-BiUZFv40.js +305 -0
  276. package/dist/vue_ui_chord-DpyR_b9A.js +275 -0
  277. package/dist/vue_ui_circle_pack-DBKz_Fi_.js +130 -0
  278. package/dist/vue_ui_dag-Ci_MOnvd.js +258 -0
  279. package/dist/vue_ui_donut-Cx2_BGcQ.js +358 -0
  280. package/dist/vue_ui_donut_evolution-CAJefrHs.js +717 -0
  281. package/dist/vue_ui_dumbbell-CClzAZTN.js +304 -0
  282. package/dist/vue_ui_flow-CCHO1Lo9.js +238 -0
  283. package/dist/vue_ui_funnel-h8q2mRpC.js +234 -0
  284. package/dist/vue_ui_galaxy-70vtkEBw.js +265 -0
  285. package/dist/vue_ui_gauge-C17CgfzN.js +178 -0
  286. package/dist/vue_ui_geo-C0UbQ0Lc.js +248 -0
  287. package/dist/vue_ui_heatmap-BqPP3J4M.js +319 -0
  288. package/dist/vue_ui_history_plot-C5nytDHh.js +413 -0
  289. package/dist/vue_ui_horizontal_bar-Bqxorkc_.js +341 -0
  290. package/dist/vue_ui_molecule-Dka4JBOp.js +231 -0
  291. package/dist/vue_ui_mood_radar-Dg4ijm53.js +281 -0
  292. package/dist/vue_ui_nested_donuts-BY9cOoHF.js +273 -0
  293. package/dist/vue_ui_onion-DTV9cup-.js +293 -0
  294. package/dist/vue_ui_parallel_coordinate_plot-CNWrDh96.js +278 -0
  295. package/dist/vue_ui_quadrant-3kjYvxpj.js +428 -0
  296. package/dist/vue_ui_quick_chart--VaYQuM4.js +139 -0
  297. package/dist/vue_ui_radar-Dxx9GJmj.js +306 -0
  298. package/dist/vue_ui_relation_circle-Cr0I2SoU.js +98 -0
  299. package/dist/vue_ui_ridgeline-CAtYca4b.js +767 -0
  300. package/dist/vue_ui_rings-DXC1VeX5.js +320 -0
  301. package/dist/vue_ui_scatter-D2S2j0ap.js +479 -0
  302. package/dist/vue_ui_spark_trend-BHMQ6_1p.js +82 -0
  303. package/dist/vue_ui_sparkbar-BR6hbuDE.js +64 -0
  304. package/dist/vue_ui_sparkgauge-xfPRHnMv.js +90 -0
  305. package/dist/vue_ui_sparkhistogram-CJRENZ1C.js +123 -0
  306. package/dist/vue_ui_sparkline-wgk7yO7E.js +151 -0
  307. package/dist/vue_ui_sparkstackbar-C5qZMmAl.js +175 -0
  308. package/dist/vue_ui_stackbar-BW_C3MXw.js +412 -0
  309. package/dist/vue_ui_stackline-DpI2LnjO.js +426 -0
  310. package/dist/vue_ui_strip_plot-8ZelqC5b.js +301 -0
  311. package/dist/vue_ui_table_heatmap-BGUjA0WA.js +80 -0
  312. package/dist/vue_ui_table_sparkline-i0Q-N_we.js +124 -0
  313. package/dist/vue_ui_thermometer-CuN7Gpez.js +123 -0
  314. package/dist/vue_ui_tiremarks-A6UHC0c3.js +122 -0
  315. package/dist/vue_ui_treemap-BQp06q-g.js +328 -0
  316. package/dist/vue_ui_vertical_bar-CJSD1FZS.js +247 -0
  317. package/dist/vue_ui_waffle-C_Ev4l7B.js +292 -0
  318. package/dist/vue_ui_wheel-DdkTPXJU.js +133 -0
  319. package/dist/vue_ui_word_cloud-B1PbsYPc.js +254 -0
  320. package/dist/vue_ui_xy-BYPqfYyx.js +482 -0
  321. package/dist/vue_ui_xy_canvas-CMHGNrLf.js +408 -0
  322. package/package.json +7 -7
  323. package/dist/A11yDataTable-BpmuNomI.js +0 -54
  324. package/dist/Arrow-dSvLFssU.js +0 -101
  325. package/dist/BaseDraggableDialog-Di8Hlru3.js +0 -249
  326. package/dist/BaseIcon-DX0hTWa-.js +0 -476
  327. package/dist/BaseLegendToggle-cMP8M2u0.js +0 -47
  328. package/dist/BaseScanner-C2j3TsSY.js +0 -36
  329. package/dist/BaseZoomControls-CVSC1-SU.js +0 -123
  330. package/dist/ColorPicker-bAxGcXK0.js +0 -271
  331. package/dist/DataTable-cMnb68Ik.js +0 -145
  332. package/dist/Legend-DGN5lY60.js +0 -104
  333. package/dist/NonSvgPenAndPaper-B6E0zEYe.js +0 -573
  334. package/dist/PackageVersion-BfrCAH6_.js +0 -10
  335. package/dist/PenAndPaper-CJDoB5H9.js +0 -527
  336. package/dist/RecursiveCircles-BE6GoMmo.js +0 -101
  337. package/dist/RecursiveLabels-BhQMS9Sm.js +0 -55
  338. package/dist/RecursiveLinks-BDwyYfP-.js +0 -83
  339. package/dist/Shape-CxJ5_Rre.js +0 -116
  340. package/dist/Slicer-D7UcO8sN.js +0 -1145
  341. package/dist/SlicerPreview-D_CgrN_7.js +0 -1580
  342. package/dist/SparkTooltip-D4bM-kfz.js +0 -68
  343. package/dist/Title-BbKoiBk2.js +0 -88
  344. package/dist/Tooltip-Cvt7Fi0Q.js +0 -299
  345. package/dist/UserOptions-DVduN6X7.js +0 -1474
  346. package/dist/_plugin-vue_export-helper-CHgC5LLL.js +0 -9
  347. package/dist/dom-to-png-DGvx6i5V.js +0 -262
  348. package/dist/exposedLib-sJvY1pST.js +0 -22
  349. package/dist/geoProjections-BFq2sOBY.js +0 -162
  350. package/dist/img-CjTQXS0U.js +0 -57
  351. package/dist/labelUtils-DX9oyq3C.js +0 -26
  352. package/dist/lib-DMzrGQHK.js +0 -2477
  353. package/dist/patternUtils-BINhU4Ky.js +0 -615
  354. package/dist/pdf-C4H4o1Cj.js +0 -88
  355. package/dist/useAutoSizeLabelsInsideViewbox-izlGDfwu.js +0 -55
  356. package/dist/useChartAccessibility-cp6XQtqi.js +0 -15
  357. package/dist/useConfig-CG4HT3wS.js +0 -7901
  358. package/dist/useFitSvgText-2crs6Fv5.js +0 -69
  359. package/dist/useNestedProp-DH0BEVVS.js +0 -13
  360. package/dist/useObjectBindings-Dixg-RIe.js +0 -228
  361. package/dist/usePanZoom-BbDhcKWf.js +0 -141
  362. package/dist/usePrefersMotion-Co0nj1eS.js +0 -17
  363. package/dist/usePrinter-C4t8DdQ-.js +0 -51
  364. package/dist/useResponsive-DfdjqQps.js +0 -195
  365. package/dist/useStableElementSize-C48ZVcZQ.js +0 -77
  366. package/dist/useSvgExport-BTG4hVPO.js +0 -870
  367. package/dist/useTableResponsive-BpfiEtzR.js +0 -26
  368. package/dist/useThemeCheck-C9Ccl7U9.js +0 -36
  369. package/dist/useTimeLabelCollider-D3JeJ6Ye.js +0 -86
  370. package/dist/useTimeLabels-Cv0tD9In.js +0 -307
  371. package/dist/useUserOptionState-B7Ej974k.js +0 -19
  372. package/dist/vClickOutside-C6WiFswA.js +0 -13
  373. package/dist/vue-data-ui-D1ZI7Y4l.js +0 -433
  374. package/dist/vue-ui-3d-bar-DEjKYzI5.js +0 -1824
  375. package/dist/vue-ui-accordion-DFtpH_16.js +0 -92
  376. package/dist/vue-ui-age-pyramid-LiC9hTjP.js +0 -1179
  377. package/dist/vue-ui-annotator-DrKnQoHf.js +0 -2991
  378. package/dist/vue-ui-bullet-DdxEINdq.js +0 -769
  379. package/dist/vue-ui-bump-CdgO1V7z.js +0 -1250
  380. package/dist/vue-ui-candlestick-DxJnPwto.js +0 -1775
  381. package/dist/vue-ui-carousel-table-CMefu5TI.js +0 -487
  382. package/dist/vue-ui-chestnut-BnGN72PO.js +0 -2001
  383. package/dist/vue-ui-chord-DWyar45U.js +0 -1457
  384. package/dist/vue-ui-circle-pack-CQ8vF2XH.js +0 -1076
  385. package/dist/vue-ui-cursor-HHOdkmyB.js +0 -260
  386. package/dist/vue-ui-dag-BDWPBElq.js +0 -3209
  387. package/dist/vue-ui-dashboard-Dg_I3X2a.js +0 -627
  388. package/dist/vue-ui-digits-CZmdir8V.js +0 -211
  389. package/dist/vue-ui-donut-BKegKHxj.js +0 -2608
  390. package/dist/vue-ui-donut-evolution-047dE4Lu.js +0 -1578
  391. package/dist/vue-ui-dumbbell-BL4ZMChj.js +0 -1552
  392. package/dist/vue-ui-flow-BAqtyunQ.js +0 -1279
  393. package/dist/vue-ui-funnel-Pl2sEOZs.js +0 -823
  394. package/dist/vue-ui-galaxy-CBF5Wsax.js +0 -1108
  395. package/dist/vue-ui-gauge-COV_S0Vp.js +0 -955
  396. package/dist/vue-ui-geo-CaPXElPf.js +0 -1510
  397. package/dist/vue-ui-gizmo-Csn7up96.js +0 -238
  398. package/dist/vue-ui-heatmap-Cpb0BYLa.js +0 -1694
  399. package/dist/vue-ui-history-plot-ZZEdzFCE.js +0 -1564
  400. package/dist/vue-ui-horizontal-bar-BonPYUZf.js +0 -1735
  401. package/dist/vue-ui-kpi-DoHhSsDK.js +0 -130
  402. package/dist/vue-ui-mini-loader-DOTBVCLE.js +0 -138
  403. package/dist/vue-ui-molecule-mVYnXouV.js +0 -945
  404. package/dist/vue-ui-mood-radar-DPvwnc3z.js +0 -1197
  405. package/dist/vue-ui-nested-donuts-C7E6TXrZ.js +0 -1702
  406. package/dist/vue-ui-onion-BGIlFhGB.js +0 -1207
  407. package/dist/vue-ui-parallel-coordinate-plot-C6G_A9ua.js +0 -1432
  408. package/dist/vue-ui-pattern-mXZW_pvA.js +0 -146
  409. package/dist/vue-ui-pattern-seed-BcNlxb2i.js +0 -36
  410. package/dist/vue-ui-quadrant-CVpIeYOB.js +0 -1918
  411. package/dist/vue-ui-quick-chart-CcV8qn9-.js +0 -2514
  412. package/dist/vue-ui-radar-G4AV1rBo.js +0 -1259
  413. package/dist/vue-ui-rating-CqPlP88P.js +0 -370
  414. package/dist/vue-ui-relation-circle-CkZ8oFVV.js +0 -856
  415. package/dist/vue-ui-ridgeline-CBTyYn6Q.js +0 -1737
  416. package/dist/vue-ui-rings-CSIOqFiP.js +0 -1256
  417. package/dist/vue-ui-scatter-AuC46ufT.js +0 -2345
  418. package/dist/vue-ui-skeleton-YD6rZjY_.js +0 -2475
  419. package/dist/vue-ui-smiley-CY0WFv2j.js +0 -391
  420. package/dist/vue-ui-spark-trend-D8KGIt-R.js +0 -423
  421. package/dist/vue-ui-sparkbar-BjWGJjzN.js +0 -424
  422. package/dist/vue-ui-sparkgauge-Dab5mss7.js +0 -285
  423. package/dist/vue-ui-sparkhistogram-D0rsmiPh.js +0 -559
  424. package/dist/vue-ui-sparkline-BCaauQuX.js +0 -1550
  425. package/dist/vue-ui-sparkstackbar-NT5yD6xA.js +0 -672
  426. package/dist/vue-ui-stackbar-ChBk_A1c.js +0 -2393
  427. package/dist/vue-ui-stackline-Cujamlze.js +0 -2490
  428. package/dist/vue-ui-strip-plot-CGBumG6I.js +0 -1293
  429. package/dist/vue-ui-table-BX2iMku4.js +0 -1726
  430. package/dist/vue-ui-table-heatmap-KXgXYVXm.js +0 -353
  431. package/dist/vue-ui-table-sparkline-C3NWnry0.js +0 -803
  432. package/dist/vue-ui-thermometer-DvdceZB1.js +0 -743
  433. package/dist/vue-ui-timer-XWAbvuAY.js +0 -504
  434. package/dist/vue-ui-tiremarks-B-YI1RlT.js +0 -578
  435. package/dist/vue-ui-treemap-AzorGfmd.js +0 -1757
  436. package/dist/vue-ui-waffle-CKtUvdTE.js +0 -1442
  437. package/dist/vue-ui-wheel-CnsLEArZ.js +0 -908
  438. package/dist/vue-ui-word-cloud-iAme2ihe.js +0 -1644
  439. package/dist/vue-ui-world-D5rrC9rw.js +0 -14452
  440. package/dist/vue-ui-xy-C_Q9chQe.js +0 -4468
  441. package/dist/vue-ui-xy-canvas-DG0299qE.js +0 -2107
  442. package/dist/vue_ui_3d_bar-CL0iX8Qi.js +0 -22
  443. package/dist/vue_ui_age_pyramid-8H8WSL7J.js +0 -22
  444. package/dist/vue_ui_bullet-Ckqieba5.js +0 -22
  445. package/dist/vue_ui_bump-CIht647H.js +0 -22
  446. package/dist/vue_ui_candlestick-BAMn-VGw.js +0 -22
  447. package/dist/vue_ui_chestnut-BloFvDuV.js +0 -22
  448. package/dist/vue_ui_chord-Bc1_ocwK.js +0 -22
  449. package/dist/vue_ui_circle_pack-CLmw8nHe.js +0 -22
  450. package/dist/vue_ui_dag-ZOwuDBZ8.js +0 -22
  451. package/dist/vue_ui_donut-CA4dgV8J.js +0 -22
  452. package/dist/vue_ui_donut_evolution-DFQU-rqE.js +0 -22
  453. package/dist/vue_ui_dumbbell-BCOHDiPk.js +0 -22
  454. package/dist/vue_ui_flow-BErINgox.js +0 -22
  455. package/dist/vue_ui_funnel-yuaMZ-yb.js +0 -22
  456. package/dist/vue_ui_galaxy-D95AN4FT.js +0 -22
  457. package/dist/vue_ui_gauge-BMEuRC4J.js +0 -22
  458. package/dist/vue_ui_geo--kg4VoVX.js +0 -22
  459. package/dist/vue_ui_heatmap-C9u993qE.js +0 -22
  460. package/dist/vue_ui_history_plot-BCKk1CrQ.js +0 -22
  461. package/dist/vue_ui_horizontal_bar-BEagrV0T.js +0 -22
  462. package/dist/vue_ui_molecule-BtvlINUh.js +0 -22
  463. package/dist/vue_ui_mood_radar-BUs6Fdn8.js +0 -22
  464. package/dist/vue_ui_nested_donuts-DvTrWT_C.js +0 -22
  465. package/dist/vue_ui_onion-CxWH9_OZ.js +0 -22
  466. package/dist/vue_ui_parallel_coordinate_plot-DH3cFJ3n.js +0 -22
  467. package/dist/vue_ui_quadrant-DjRs--Uz.js +0 -22
  468. package/dist/vue_ui_quick_chart-DMCjEjPe.js +0 -22
  469. package/dist/vue_ui_radar-DryGBOrz.js +0 -22
  470. package/dist/vue_ui_relation_circle-CCroen7h.js +0 -22
  471. package/dist/vue_ui_ridgeline-j4rVmpEp.js +0 -22
  472. package/dist/vue_ui_rings-CxOrekqA.js +0 -22
  473. package/dist/vue_ui_scatter-Bu1EAy9H.js +0 -22
  474. package/dist/vue_ui_spark_trend-3BjrSprO.js +0 -22
  475. package/dist/vue_ui_sparkbar-BsMzz5Um.js +0 -22
  476. package/dist/vue_ui_sparkgauge-KnjASOZs.js +0 -22
  477. package/dist/vue_ui_sparkhistogram-GBdzIVvS.js +0 -22
  478. package/dist/vue_ui_sparkline-CQ8DJVJx.js +0 -22
  479. package/dist/vue_ui_sparkstackbar-BSexvOuM.js +0 -22
  480. package/dist/vue_ui_stackbar-CuDC4O4b.js +0 -22
  481. package/dist/vue_ui_stackline-QTh-nuxE.js +0 -22
  482. package/dist/vue_ui_strip_plot-B9ypi_F3.js +0 -22
  483. package/dist/vue_ui_table_heatmap-CkvipPVy.js +0 -16
  484. package/dist/vue_ui_table_sparkline-yQdijcyJ.js +0 -22
  485. package/dist/vue_ui_thermometer-BTmjRBH8.js +0 -22
  486. package/dist/vue_ui_tiremarks-DBotWfi8.js +0 -22
  487. package/dist/vue_ui_treemap-D9-AIkT-.js +0 -22
  488. package/dist/vue_ui_vertical_bar-CELc39b8.js +0 -18
  489. package/dist/vue_ui_waffle-M2h-uJQ_.js +0 -22
  490. package/dist/vue_ui_wheel-LqBz3lv4.js +0 -22
  491. package/dist/vue_ui_word_cloud-mKAtBxHR.js +0 -22
  492. package/dist/vue_ui_xy-esktmpg-.js +0 -22
  493. package/dist/vue_ui_xy_canvas-6BBDSowT.js +0 -22
@@ -1,1644 +0,0 @@
1
- import { defineAsyncComponent as se, computed as G, ref as M, toRefs as Qt, watch as Pe, shallowRef as mt, onMounted as eo, onBeforeUnmount as to, openBlock as Y, createElementBlock as K, unref as T, normalizeStyle as ze, createElementVNode as fe, toDisplayString as Ye, createBlock as oe, createCommentVNode as L, withCtx as F, renderSlot as A, normalizeProps as Z, guardReactiveProps as V, createSlots as ht, normalizeClass as pt, createVNode as je, Fragment as oo, renderList as ao, resolveDynamicComponent as no, mergeProps as lo, createTextVNode as gt, nextTick as We } from "vue";
2
- import { d as yt, u as so } from "./useResponsive-DfdjqQps.js";
3
- import { j as io, t as bt, e as uo, K as ro, m as co, p as De, o as wt, q as kt, r as vo, l as fo, X as mo, a0 as ho, a1 as po, T as go } from "./lib-DMzrGQHK.js";
4
- import { u as yo } from "./useConfig-CG4HT3wS.js";
5
- import { u as bo, B as wo } from "./BaseScanner-C2j3TsSY.js";
6
- import { u as ko } from "./usePrinter-C4t8DdQ-.js";
7
- import { u as xo } from "./useSvgExport-BTG4hVPO.js";
8
- import { u as Ge } from "./useNestedProp-DH0BEVVS.js";
9
- import { u as Co } from "./useThemeCheck-C9Ccl7U9.js";
10
- import { u as $o } from "./useUserOptionState-B7Ej974k.js";
11
- import { u as So } from "./useChartAccessibility-cp6XQtqi.js";
12
- import To from "./img-CjTQXS0U.js";
13
- import Po from "./Title-BbKoiBk2.js";
14
- import Mo from "./vue_ui_word_cloud-mKAtBxHR.js";
15
- import { u as Io } from "./usePanZoom-BbDhcKWf.js";
16
- import { A as Ao } from "./A11yDataTable-BpmuNomI.js";
17
- import { B as xt } from "./BaseZoomControls-CVSC1-SU.js";
18
- import { _ as Fo } from "./_plugin-vue_export-helper-CHgC5LLL.js";
19
- function Oo({
20
- word: a,
21
- fontSize: s,
22
- pad: m,
23
- canvas: c,
24
- ctx: r,
25
- svg: f
26
- }) {
27
- const n = `${f.style && f.style.bold ? "bold " : ""}${s}px Arial`;
28
- r.font = n;
29
- const p = r.measureText(a.name), h = Math.ceil(p.width) + 2 + (m ? m * 2 : 0), g = Math.ceil(s) + 2 + (m ? m * 2 : 0);
30
- c.width = h, c.height = g, r.font = n, r.textAlign = "center", r.textBaseline = "middle", r.fillStyle = "black", r.fillText(a.name, h / 2, g / 2);
31
- const y = r.getImageData(0, 0, h, g).data, k = [], l = [];
32
- let u = h, I = g, x = 0, P = 0, d = !1;
33
- for (let C = 0; C < g; C += 1) {
34
- const _ = C * h * 4;
35
- let E = -1, N = !1;
36
- for (let z = 0; z < h; z += 1) {
37
- const q = _ + z * 4 + 3;
38
- y[q] > 1 ? (k.push([z, C]), d = !0, z < u && (u = z), z > x && (x = z), C < I && (I = C), C > P && (P = C), N || (N = !0, E = z)) : N && (l.push([C, E, z - 1]), N = !1, E = -1);
39
- }
40
- N && l.push([C, E, h - 1]);
41
- }
42
- return d || (u = 0, I = 0, x = 0, P = 0), {
43
- w: h,
44
- h: g,
45
- wordMask: k,
46
- runs: l,
47
- minX: u,
48
- minY: I,
49
- maxX: x,
50
- maxY: P
51
- };
52
- }
53
- function Xo(a) {
54
- const s = [];
55
- if (!a.length) return s;
56
- let m = a[0][1], c = a[0][0], r = c;
57
- for (let f = 1; f < a.length; f += 1) {
58
- const i = a[f][0], n = a[f][1];
59
- n !== m ? (s.push([m, c, r]), m = n, c = i, r = i) : (i === r + 1 || (s.push([m, c, r]), c = i), r = i);
60
- }
61
- return s.push([m, c, r]), s;
62
- }
63
- function Tt(a, s) {
64
- return 4294967295 >>> 32 - (s - a + 1) << a >>> 0;
65
- }
66
- function Pt(a) {
67
- return 4294967295 << a >>> 0;
68
- }
69
- function Mt(a) {
70
- return 4294967295 >>> 31 - a >>> 0;
71
- }
72
- function Ro({
73
- maskBits: a,
74
- maskRowStride: s,
75
- maskW: m,
76
- maskH: c,
77
- wx: r,
78
- wy: f,
79
- runs: i
80
- }) {
81
- for (let n = 0; n < i.length; n += 1) {
82
- const p = i[n][0], h = i[n][1], g = i[n][2], b = f + p;
83
- if (b < 0 || b >= c) return !1;
84
- const y = r + h, k = r + g;
85
- if (y < 0 || k >= m) return !1;
86
- const l = b * s, u = y >>> 5, I = k >>> 5, x = y & 31, P = k & 31;
87
- if (u === I) {
88
- const d = a[l + u], C = Tt(x, P);
89
- if (d & C) return !1;
90
- } else {
91
- {
92
- const d = a[l + u], C = Pt(x);
93
- if (d & C) return !1;
94
- }
95
- for (let d = u + 1; d < I; d += 1)
96
- if (a[l + d]) return !1;
97
- {
98
- const d = a[l + I], C = Mt(P);
99
- if (d & C) return !1;
100
- }
101
- }
102
- }
103
- return !0;
104
- }
105
- function zo({
106
- maskBits: a,
107
- maskRowStride: s,
108
- maskW: m,
109
- maskH: c,
110
- wx: r,
111
- wy: f,
112
- runs: i
113
- }) {
114
- for (let n = 0; n < i.length; n += 1) {
115
- const p = i[n][0], h = i[n][1], g = i[n][2], b = f + p;
116
- if (b < 0 || b >= c) continue;
117
- const y = r + h, k = r + g;
118
- if (k < 0 || y >= m) continue;
119
- const l = b * s, u = y >>> 5, I = k >>> 5, x = y & 31, P = k & 31;
120
- if (u === I) {
121
- const d = Tt(x, P);
122
- a[l + u] |= d;
123
- } else {
124
- {
125
- const d = Pt(x);
126
- a[l + u] |= d;
127
- }
128
- for (let d = u + 1; d < I; d += 1)
129
- a[l + d] = 4294967295;
130
- {
131
- const d = Mt(P);
132
- a[l + I] |= d;
133
- }
134
- }
135
- }
136
- }
137
- function Yo({ wordMask: a, w: s, h: m, dilation: c }) {
138
- const r = new Uint8Array(s * m), f = [];
139
- for (let n = 0; n < a.length; n += 1) {
140
- const p = a[n][0], g = a[n][1] * s + p;
141
- r[g] || (r[g] = 1, f.push(g));
142
- }
143
- for (let n = 0; n < f.length; n += 1) {
144
- const p = f[n], h = p / s | 0, g = p - h * s;
145
- for (let b = -c; b <= c; b += 1) {
146
- const y = h + b;
147
- if (y < 0 || y >= m) continue;
148
- const k = y * s;
149
- for (let l = -c; l <= c; l += 1) {
150
- if (l === 0 && b === 0) continue;
151
- const u = g + l;
152
- u < 0 || u >= s || (r[k + u] = 1);
153
- }
154
- }
155
- }
156
- const i = [];
157
- for (let n = 0; n < r.length; n += 1)
158
- if (r[n]) {
159
- const p = n / s | 0, h = n - p * s;
160
- i.push([h, p]);
161
- }
162
- return i;
163
- }
164
- function Wo({ runs: a, w: s, h: m, dilation: c }) {
165
- const r = new Uint8Array(s * m), f = [];
166
- for (let n = 0; n < a.length; n += 1) {
167
- const p = a[n], h = p[0], g = p[1], b = p[2], y = h * s;
168
- for (let k = g; k <= b; k += 1) {
169
- const l = y + k;
170
- r[l] || (r[l] = 1, f.push(l));
171
- }
172
- }
173
- for (let n = 0; n < f.length; n += 1) {
174
- const p = f[n], h = p / s | 0, g = p - h * s;
175
- for (let b = -c; b <= c; b += 1) {
176
- const y = h + b;
177
- if (y < 0 || y >= m) continue;
178
- const k = y * s;
179
- for (let l = -c; l <= c; l += 1) {
180
- if (l === 0 && b === 0) continue;
181
- const u = g + l;
182
- u < 0 || u >= s || (r[k + u] = 1);
183
- }
184
- }
185
- }
186
- const i = [];
187
- for (let n = 0; n < m; n += 1) {
188
- const p = n * s;
189
- let h = -1, g = !1;
190
- for (let b = 0; b < s; b += 1)
191
- r[p + b] ? g || (g = !0, h = b) : g && (i.push([n, h, b - 1]), g = !1, h = -1);
192
- g && i.push([n, h, s - 1]);
193
- }
194
- return i;
195
- }
196
- function Do(a, s) {
197
- const m = a.runs, c = a.w, r = a.h, f = Math.max(1, Math.round(c * s)), i = Math.max(
198
- 1,
199
- Math.round(r * s)
200
- ), n = new Array(i);
201
- let p = f, h = i, g = 0, b = 0, y = !1;
202
- for (let l = 0; l < m.length; l += 1) {
203
- const u = m[l], I = u[0], x = u[1], P = u[2], d = Math.round(I * s);
204
- if (d < 0 || d >= i) continue;
205
- const C = Math.round(x * s), _ = Math.round((P + 1) * s) - 1;
206
- if (_ < C) continue;
207
- let E = n[d];
208
- E || (E = [], n[d] = E), E.push([C, _]), y = !0, C < p && (p = C), _ > g && (g = _), d < h && (h = d), d > b && (b = d);
209
- }
210
- if (!y)
211
- return {
212
- w: f,
213
- h: i,
214
- runs: [],
215
- minX: 0,
216
- minY: 0,
217
- maxX: 0,
218
- maxY: 0
219
- };
220
- const k = [];
221
- for (let l = 0; l < i; l += 1) {
222
- const u = n[l];
223
- if (!u || u.length === 0) continue;
224
- u.sort((P, d) => P[0] - d[0]);
225
- let I = u[0][0], x = u[0][1];
226
- for (let P = 1; P < u.length; P += 1) {
227
- const d = u[P][0], C = u[P][1];
228
- d <= x + 1 ? C > x && (x = C) : (k.push([l, I, x]), I = d, x = C);
229
- }
230
- k.push([l, I, x]);
231
- }
232
- return {
233
- w: f,
234
- h: i,
235
- runs: k,
236
- minX: p,
237
- minY: h,
238
- maxX: g,
239
- maxY: b
240
- };
241
- }
242
- const Ct = /* @__PURE__ */ new Map(), $t = /* @__PURE__ */ new Map();
243
- function Eo({ word: a, fontSize: s, pad: m, svg: c }) {
244
- const r = c.style && c.style.bold ? 1 : 0, f = m || 0;
245
- return `${a.name}::${s}::${f}::${r}`;
246
- }
247
- function No({
248
- word: a,
249
- fontSize: s,
250
- pad: m,
251
- canvas: c,
252
- ctx: r,
253
- svg: f
254
- }) {
255
- const i = Eo({ word: a, fontSize: s, pad: m, svg: f }), n = Ct.get(i);
256
- if (n) return { key: i, bitmap: n };
257
- const p = Oo({
258
- word: a,
259
- fontSize: s,
260
- pad: m,
261
- canvas: c,
262
- ctx: r,
263
- svg: f
264
- });
265
- return Ct.set(i, p), { key: i, bitmap: p };
266
- }
267
- function Bo({
268
- bitmapKey: a,
269
- wordMask: s,
270
- w: m,
271
- h: c,
272
- dilation: r
273
- }) {
274
- const f = `${a}::d${r}`, i = $t.get(f);
275
- if (i) return i;
276
- const n = Yo({
277
- wordMask: s,
278
- w: m,
279
- h: c,
280
- dilation: r
281
- }), p = Xo(n), h = { wordMask: n, runs: p };
282
- return $t.set(f, h), h;
283
- }
284
- const Zo = 6, Vo = 2, It = Math.PI / 180, At = [], Ft = [];
285
- for (let a = 0; a < 360; a += Zo) {
286
- const s = a * It;
287
- At.push(Math.cos(s)), Ft.push(Math.sin(s));
288
- }
289
- const Ot = [], Xt = [];
290
- for (let a = 0; a < 360; a += Vo) {
291
- const s = a * It;
292
- Ot.push(Math.cos(s)), Xt.push(Math.sin(s));
293
- }
294
- function _o(a, s, m) {
295
- if (!a.length) return;
296
- let c = 1 / 0, r = -1 / 0, f = 1 / 0, i = -1 / 0;
297
- for (let l = 0; l < a.length; l += 1) {
298
- const u = a[l], I = u.x + u.minX, x = u.x + u.maxX, P = u.y + u.minY, d = u.y + u.maxY;
299
- I < c && (c = I), x > r && (r = x), P < f && (f = P), d > i && (i = d);
300
- }
301
- if (!isFinite(c) || !isFinite(r) || !isFinite(f) || !isFinite(i)) return;
302
- const n = Math.max(
303
- Math.abs(c),
304
- Math.abs(r)
305
- ), p = Math.max(
306
- Math.abs(f),
307
- Math.abs(i)
308
- );
309
- if (n === 0 || p === 0) return;
310
- const h = 0.9, g = s * 0.5 * h / n, b = m * 0.5 * h / p;
311
- let y = Math.min(g, b);
312
- if (y <= 1) return;
313
- const k = 4;
314
- y > k && (y = k);
315
- for (let l = 0; l < a.length; l += 1) {
316
- const u = a[l];
317
- u.x *= y, u.y *= y, u.width *= y, u.height *= y, u.fontSize *= y, u.minX *= y, u.maxX *= y, u.minY *= y, u.maxY *= y;
318
- }
319
- }
320
- function Uo() {
321
- return typeof performance < "u" && typeof performance.now == "function" ? () => performance.now() : () => Date.now();
322
- }
323
- function Lo({
324
- value: a,
325
- minimumValue: s,
326
- maximumValue: m,
327
- configuredMinimumFontSize: c,
328
- maximumFontSize: r
329
- }) {
330
- if (m === s)
331
- return r;
332
- const i = (a - s) / (m - s) * (r - c) + c;
333
- return Math.max(
334
- c,
335
- Math.min(r, i)
336
- );
337
- }
338
- function qo({
339
- currentBitmap: a,
340
- strictPixelPadding: s,
341
- scaleFactor: m,
342
- baseBitmap: c,
343
- bitmapKey: r
344
- }) {
345
- let f = a.runs;
346
- const i = a.w, n = a.h, p = a.minX, h = a.minY, g = a.maxX, b = a.maxY;
347
- return !s || !f.length ? {
348
- runs: f,
349
- bitmapWidth: i,
350
- bitmapHeight: n,
351
- bitmapMinimumX: p,
352
- bitmapMinimumY: h,
353
- bitmapMaximumX: g,
354
- bitmapMaximumY: b
355
- } : m === 1 ? {
356
- runs: Bo({
357
- bitmapKey: r,
358
- wordMask: c.wordMask,
359
- w: c.w,
360
- h: c.h,
361
- dilation: 2
362
- }).runs,
363
- bitmapWidth: i,
364
- bitmapHeight: n,
365
- bitmapMinimumX: p,
366
- bitmapMinimumY: h,
367
- bitmapMaximumX: g,
368
- bitmapMaximumY: b
369
- } : {
370
- runs: Wo({
371
- runs: f,
372
- w: i,
373
- h: n,
374
- dilation: 2
375
- }),
376
- bitmapWidth: i,
377
- bitmapHeight: n,
378
- bitmapMinimumX: p,
379
- bitmapMinimumY: h,
380
- bitmapMaximumX: g,
381
- bitmapMaximumY: b
382
- };
383
- }
384
- async function St({
385
- baseBitmap: a,
386
- baseFontSize: s,
387
- minimumScaleFactor: m,
388
- maskBits: c,
389
- maskRowStride: r,
390
- maskWidth: f,
391
- maskHeight: i,
392
- centerX: n,
393
- centerY: p,
394
- maximumRadius: h,
395
- scaleStep: g,
396
- strictPixelPadding: b,
397
- bitmapKey: y,
398
- minimumFontSize: k,
399
- rawWord: l,
400
- cosineArray: u,
401
- sineArray: I,
402
- radiusStep: x,
403
- maximumAttempts: P,
404
- maybeYield: d
405
- }) {
406
- let C = 1;
407
- for (; C >= m; ) {
408
- const _ = C === 1 ? a : Do(a, C), E = qo({
409
- currentBitmap: _,
410
- strictPixelPadding: b,
411
- scaleFactor: C,
412
- baseBitmap: a,
413
- bitmapKey: y
414
- }), {
415
- runs: N,
416
- bitmapWidth: z,
417
- bitmapHeight: q,
418
- bitmapMinimumX: ae,
419
- bitmapMinimumY: ie,
420
- bitmapMaximumX: ue,
421
- bitmapMaximumY: re
422
- } = E;
423
- let J = 0, H = 0;
424
- for (; J < h && H < P; ) {
425
- for (let O = 0; O < u.length; O += 1) {
426
- H += 1;
427
- const Q = Math.round(
428
- n + J * u[O] - z / 2
429
- ), ee = Math.round(
430
- p + J * I[O] - q / 2
431
- );
432
- if (Q < 0 || ee < 0 || Q + z > f || ee + q > i)
433
- continue;
434
- if (Ro({
435
- maskBits: c,
436
- maskRowStride: r,
437
- maskW: f,
438
- maskH: i,
439
- wx: Q,
440
- wy: ee,
441
- runs: N
442
- })) {
443
- const { __wcIndex: e, ...R } = l, we = Math.max(
444
- k,
445
- Math.round(s * C)
446
- ), me = {
447
- ...R,
448
- x: Q - f / 2,
449
- y: ee - i / 2,
450
- fontSize: we,
451
- width: z,
452
- height: q,
453
- angle: 0,
454
- minX: ae,
455
- minY: ie,
456
- maxX: ue,
457
- maxY: re
458
- };
459
- return zo({
460
- maskBits: c,
461
- maskRowStride: r,
462
- maskW: f,
463
- maskH: i,
464
- wx: Q,
465
- wy: ee,
466
- runs: N
467
- }), me;
468
- }
469
- }
470
- J += x, (H & 1023) === 0 && await d();
471
- }
472
- C *= g, await d();
473
- }
474
- return null;
475
- }
476
- async function Ho({
477
- baseBitmap: a,
478
- baseFontSize: s,
479
- minimumScaleFactor: m,
480
- maskBits: c,
481
- maskRowStride: r,
482
- maskWidth: f,
483
- maskHeight: i,
484
- centerX: n,
485
- centerY: p,
486
- maximumRadius: h,
487
- scaleStep: g,
488
- strictPixelPadding: b,
489
- bitmapKey: y,
490
- minimumFontSize: k,
491
- rawWord: l,
492
- maybeYield: u,
493
- spiralRadiusStep: I,
494
- fallbackSpiralRadiusStep: x
495
- }) {
496
- const P = await St({
497
- baseBitmap: a,
498
- baseFontSize: s,
499
- minimumScaleFactor: m,
500
- maskBits: c,
501
- maskRowStride: r,
502
- maskWidth: f,
503
- maskHeight: i,
504
- centerX: n,
505
- centerY: p,
506
- maximumRadius: h,
507
- scaleStep: g,
508
- strictPixelPadding: b,
509
- bitmapKey: y,
510
- minimumFontSize: k,
511
- rawWord: l,
512
- cosineArray: At,
513
- sineArray: Ft,
514
- radiusStep: I,
515
- maximumAttempts: 1e4,
516
- maybeYield: u
517
- });
518
- return P || await St({
519
- baseBitmap: a,
520
- baseFontSize: s,
521
- minimumScaleFactor: m,
522
- maskBits: c,
523
- maskRowStride: r,
524
- maskWidth: f,
525
- maskHeight: i,
526
- centerX: n,
527
- centerY: p,
528
- maximumRadius: h,
529
- scaleStep: g,
530
- strictPixelPadding: b,
531
- bitmapKey: y,
532
- minimumFontSize: k,
533
- rawWord: l,
534
- cosineArray: Ot,
535
- sineArray: Xt,
536
- radiusStep: x,
537
- maximumAttempts: 25e3,
538
- maybeYield: u
539
- });
540
- }
541
- async function jo({
542
- words: a,
543
- proximity: s = 0,
544
- svg: m,
545
- strictPixelPadding: c,
546
- onProgress: r,
547
- debugTiming: f = !1
548
- }) {
549
- const i = Uo(), n = i(), p = 12;
550
- let h = n;
551
- async function g() {
552
- i() - h >= p && (await new Promise((R) => setTimeout(R, 0)), h = i());
553
- }
554
- const b = m.width, y = m.height, k = Math.round(b), l = Math.round(y), u = 1, I = m.minFontSize, x = Math.min(m.maxFontSize, 100), P = a.map((e) => e.value), d = Math.min(...P), C = Math.max(...P);
555
- if (k <= 0 || l <= 0) return [];
556
- const _ = k + 31 >>> 5, E = new Uint32Array(_ * l), N = document.createElement("canvas"), z = N.getContext("2d", { willReadFrequently: !0 });
557
- N.width = k, N.height = l;
558
- const q = 2, ae = 1, ie = Math.max(k, l), ue = Math.floor(k / 2), re = Math.floor(l / 2), H = [...a.map((e, R) => ({
559
- ...e,
560
- __wcIndex: R,
561
- id: e.id != null ? e.id : `${e.name}__${R}`
562
- }))].sort(
563
- (e, R) => R.value - e.value
564
- ), O = [], Q = 0.9;
565
- for (let e = 0; e < H.length; e += 1) {
566
- const R = H[e], we = O.length, de = Lo({
567
- value: R.value,
568
- minimumValue: d,
569
- maximumValue: C,
570
- configuredMinimumFontSize: I,
571
- maximumFontSize: x
572
- }), Me = No({
573
- word: R,
574
- fontSize: de,
575
- pad: s,
576
- canvas: N,
577
- ctx: z,
578
- svg: m
579
- }), he = Me.key, pe = Me.bitmap, ke = pe.w, Ie = pe.h;
580
- if (ke <= 0 || Ie <= 0) {
581
- await g();
582
- continue;
583
- }
584
- const Ae = Math.max(
585
- u / de,
586
- 0.1
587
- ), j = await Ho({
588
- baseBitmap: pe,
589
- baseFontSize: de,
590
- minimumScaleFactor: Ae,
591
- maskBits: E,
592
- maskRowStride: _,
593
- maskWidth: k,
594
- maskHeight: l,
595
- centerX: ue,
596
- centerY: re,
597
- maximumRadius: ie,
598
- scaleStep: Q,
599
- strictPixelPadding: c,
600
- bitmapKey: he,
601
- minimumFontSize: u,
602
- rawWord: R,
603
- maybeYield: g,
604
- spiralRadiusStep: q,
605
- fallbackSpiralRadiusStep: ae
606
- });
607
- if (j && (O.push(j), r && O.length > we)) {
608
- const xe = O[O.length - 1];
609
- r({ word: xe, all: O });
610
- }
611
- await g();
612
- }
613
- if (!O.length)
614
- return [];
615
- _o(O, k, l);
616
- const ce = i() - n;
617
- return f && typeof console < "u" && console.log && console.log(
618
- "[vue-data-ui][word-cloud] positionWordsAsync:",
619
- `${ce.toFixed(2)} ms for ${a.length} words`
620
- ), O.sort((e, R) => R.fontSize - e.fontSize);
621
- }
622
- const Go = ["id", "data-resizing", "data-relayout"], Ko = ["id"], Jo = { style: { position: "relative" } }, Qo = ["aria-describedby", "xmlns", "viewBox"], ea = ["width", "height"], ta = ["transform"], oa = ["transform"], aa = ["data-a11y-word-index", "x", "y", "width", "height", "aria-label", "onMouseover", "onMouseleave", "onClick"], na = ["fill", "font-weight", "font-size", "transform", "stroke", "stroke-width"], la = {
623
- key: 0,
624
- style: { position: "absolute", top: "100%", left: "0", width: "100%" },
625
- "data-dom-to-png-ignore": "",
626
- "aria-hidden": "true"
627
- }, sa = {
628
- key: 5,
629
- class: "vue-data-ui-watermark"
630
- }, ia = {
631
- key: 6,
632
- "data-dom-to-png-ignore": "",
633
- class: "reset-wrapper"
634
- }, ua = ["innerHTML"], ra = {
635
- __name: "vue-ui-word-cloud",
636
- props: {
637
- config: {
638
- type: Object,
639
- default() {
640
- return {};
641
- }
642
- },
643
- dataset: {
644
- type: [Array, String],
645
- default() {
646
- return [];
647
- }
648
- }
649
- },
650
- emits: ["copyAlt"],
651
- setup(a, { expose: s, emit: m }) {
652
- const c = se(() => import("./Tooltip-Cvt7Fi0Q.js")), r = se(() => import("./BaseIcon-DX0hTWa-.js")), f = se(() => import("./vue-ui-accordion-DFtpH_16.js")), i = se(() => import("./DataTable-cMnb68Ik.js")), n = se(
653
- () => import("./PenAndPaper-CJDoB5H9.js")
654
- ), p = se(
655
- () => import("./UserOptions-DVduN6X7.js")
656
- ), h = se(
657
- () => import("./PackageVersion-BfrCAH6_.js")
658
- ), g = se(
659
- () => import("./BaseDraggableDialog-Di8Hlru3.js")
660
- ), { vue_ui_word_cloud: b } = yo(), { isThemeValid: y, warnInvalidTheme: k } = Co(), l = a, u = m, I = G({
661
- get() {
662
- return !!l.dataset && l.dataset.length;
663
- },
664
- set(t) {
665
- return t;
666
- }
667
- }), x = M(io()), P = M(0), d = M(null), C = M(null), _ = M(null), E = M(0), N = M(0), z = M(!1), q = M(null), ae = M(null), ie = M(!1), ue = M(!1), re = M(null), J = M(!1), H = M(!1), O = M(null), Q = M({ x: 0, y: 0 }), ee = M("pointer"), ce = M(!1), e = M(xe()), R = G(
668
- () => e.value.userOptions.useCursorPointer
669
- ), we = G(() => bt({
670
- defaultConfig: {
671
- userOptions: { show: !1 },
672
- table: { show: !1 },
673
- useCssAnimation: !1,
674
- animationDelayMs: 0,
675
- nodeCategories: {},
676
- nodeCategoryColors: {},
677
- style: {
678
- chart: {
679
- backgroundColor: "#99999930",
680
- words: {
681
- color: "#6A6A6A",
682
- usePalette: !1,
683
- selectedStroke: "#CCCCCC"
684
- }
685
- }
686
- }
687
- },
688
- userConfig: e.value.skeletonConfig ?? {}
689
- })), { loading: me, FINAL_DATASET: de, manualLoading: Me } = bo({
690
- ...Qt(l),
691
- FINAL_CONFIG: e,
692
- prepareConfig: xe,
693
- callback: () => {
694
- Promise.resolve().then(() => {
695
- X.value.showTable = e.value.table.show, X.value.showTooltip = e.value.style.chart.tooltip.show, X.value.showZoom = e.value.style.chart.zoom.show;
696
- });
697
- },
698
- skeletonDataset: l.config?.skeletonDataset ?? [
699
- { name: "Lorem", value: 6 },
700
- { name: "ipsum", value: 3 },
701
- { name: "dolor", value: 1 },
702
- { name: "sit", value: 3 },
703
- { name: "amet", value: 3 },
704
- { name: "consectetur", value: 2 },
705
- { name: "adipiscing", value: 1 },
706
- { name: "elit", value: 2 },
707
- { name: "Vivamus", value: 2 },
708
- { name: "pulvinar", value: 1 },
709
- { name: "pretium", value: 1 },
710
- { name: "venenatis", value: 2 },
711
- { name: "Donec", value: 1 },
712
- { name: "imperdiet", value: 3 },
713
- { name: "id", value: 1 },
714
- { name: "porttitor", value: 2 },
715
- { name: "tristique", value: 1 },
716
- { name: "Aenean", value: 2 },
717
- { name: "ac", value: 5 },
718
- { name: "commodo", value: 2 },
719
- { name: "justo", value: 2 },
720
- { name: "Vestibulum", value: 2 },
721
- { name: "placerat", value: 1 },
722
- { name: "molestie", value: 1 },
723
- { name: "nisl", value: 1 },
724
- { name: "lacinia", value: 2 },
725
- { name: "nulla", value: 1 },
726
- { name: "posuere", value: 2 },
727
- { name: "quis", value: 3 },
728
- { name: "ullamcorper", value: 1 },
729
- { name: "eu", value: 1 },
730
- { name: "ex", value: 1 },
731
- { name: "vitae", value: 3 },
732
- { name: "facilisis", value: 1 },
733
- { name: "Aliquam", value: 1 },
734
- { name: "erat", value: 1 },
735
- { name: "volutpat", value: 1 },
736
- { name: "Proin", value: 1 },
737
- { name: "nunc", value: 1 },
738
- { name: "felis", value: 1 },
739
- { name: "gravida", value: 3 },
740
- { name: "sed", value: 1 },
741
- { name: "orci", value: 1 },
742
- { name: "Interdum", value: 1 },
743
- { name: "et", value: 1 },
744
- { name: "malesuada", value: 1 },
745
- { name: "fames", value: 1 },
746
- { name: "ante", value: 1 }
747
- ],
748
- skeletonConfig: bt({
749
- defaultConfig: e.value,
750
- userConfig: we.value
751
- })
752
- }), he = M(pe());
753
- function pe() {
754
- return typeof de.value == "string" ? uo(de.value) : de.value.map((t, v) => ({
755
- ...t,
756
- value: ro(t.value)
757
- }));
758
- }
759
- const { userOptionsVisible: ke, setUserOptionsVisibility: Ie, keepUserOptionState: Ae } = $o({ config: e.value }), { svgRef: j } = So({
760
- config: e.value.style.chart.title
761
- });
762
- function xe() {
763
- const t = Ge({
764
- userConfig: l.config,
765
- defaultConfig: b
766
- }), v = t.theme;
767
- if (!v) return t;
768
- if (!y.value(t))
769
- return k(t), t;
770
- const o = Ge({
771
- userConfig: Mo[v] || l.config,
772
- defaultConfig: t
773
- }), S = Ge({
774
- userConfig: l.config,
775
- defaultConfig: o
776
- });
777
- return {
778
- ...S,
779
- customPalette: S.customPalette.length ? S.customPalette : co[v] || De
780
- };
781
- }
782
- const Ee = M({ x: 0, y: 0 });
783
- function Ne() {
784
- const t = {
785
- x: 0,
786
- y: 0,
787
- width: Math.max(10, D.value.width),
788
- height: Math.max(10, D.value.height)
789
- };
790
- Bt(t), Ee.value = {
791
- x: t.x + t.width / 2,
792
- y: t.y + t.height / 2
793
- }, $e();
794
- }
795
- const Rt = yt(() => {
796
- et();
797
- }, 100), Fe = M(!1);
798
- Pe(
799
- () => Fe.value,
800
- (t) => {
801
- t === !1 && (ue.value = !0, Rt(), Ne());
802
- }
803
- ), Pe(
804
- () => l.config,
805
- (t) => {
806
- e.value = xe(), ke.value = !e.value.userOptions.showOnChartHover, Ke(), E.value += 1, N.value += 1, X.value.showTable = e.value.table.show, X.value.showTooltip = e.value.style.chart.tooltip.show, X.value.showZoom = e.value.style.chart.zoom.show;
807
- },
808
- { deep: !0 }
809
- );
810
- const D = M({
811
- width: e.value.style.chart.width,
812
- height: e.value.style.chart.height,
813
- maxFontSize: e.value.style.chart.words.maxFontSize,
814
- minFontSize: e.value.style.chart.words.minFontSize,
815
- bold: e.value.style.chart.words.bold
816
- }), zt = yt(() => {
817
- const { width: t, height: v } = so({
818
- chart: d.value,
819
- title: e.value.style.chart.title.text ? C.value : null,
820
- legend: e.value.style.chart.controls.show ? re.value?.$el : null,
821
- source: _.value
822
- });
823
- requestAnimationFrame(async () => {
824
- D.value.width = Math.max(10, t), D.value.height = Math.max(10, v - 12), await We(), Fe.value = !1;
825
- });
826
- }, 100), Yt = () => {
827
- Fe.value = !0, zt();
828
- }, ne = mt(null), ge = mt(null);
829
- eo(Ke);
830
- const Be = G(() => !!e.value.debug);
831
- function Ke() {
832
- wt(l.dataset) ? kt({
833
- componentName: "VueUiWordCloud",
834
- type: "dataset",
835
- debug: Be.value
836
- }) : he.value.forEach((t, v) => {
837
- vo({
838
- datasetObject: t,
839
- requiredAttributes: ["name", "value"]
840
- }).forEach((o) => {
841
- I.value = !1, kt({
842
- componentName: "VueUiWordCloud",
843
- type: "datasetSerieAttribute",
844
- property: o,
845
- index: v,
846
- debug: Be.value
847
- });
848
- });
849
- }), wt(l.dataset) || (Me.value = e.value.loading), e.value.responsive && (ne.value && (ge.value && ne.value.unobserve(ge.value), ne.value.disconnect()), ne.value = new ResizeObserver(Yt), ge.value = d.value.parentNode, ne.value.observe(ge.value)), Ne();
850
- }
851
- to(() => {
852
- ne.value && (ge.value && ne.value.unobserve(ge.value), ne.value.disconnect());
853
- });
854
- const { isPrinting: Ze, isImaging: Ve, generatePdf: Je, generateImage: Qe } = ko({
855
- elementId: `wordCloud_${x.value}`,
856
- fileName: e.value.style.chart.title.text || "vue-ui-word-cloud",
857
- options: e.value.userOptions.print
858
- }), X = M({
859
- showTable: e.value.table.show,
860
- showTooltip: e.value.style.chart.tooltip.show,
861
- showZoom: e.value.style.chart.zoom.show
862
- });
863
- Pe(
864
- e,
865
- () => {
866
- X.value.showTable = e.value.table.show, X.value.showTooltip = e.value.style.chart.tooltip.show, X.value.showZoom = e.value.style.chart.zoom.show;
867
- },
868
- { immediate: !0 }
869
- );
870
- function Wt(t, v, o = "Arial") {
871
- const $ = document.createElement("canvas").getContext("2d");
872
- return $.font = `${v}px ${e.value.style.chart.words.bold ? "bold" : "normal"} ${o}`, {
873
- width: $.measureText(t).width + e.value.style.chart.words.proximity,
874
- height: v
875
- };
876
- }
877
- const W = M([]), Ce = /* @__PURE__ */ new Map();
878
- function et() {
879
- const t = [...he.value].map(($) => $.value), v = Math.max(...t), o = Math.min(...t), S = [...he.value].map(($, w) => {
880
- let B = ($.value - o) / (v - o) * (D.value.maxFontSize - D.value.minFontSize) + D.value.minFontSize;
881
- B = isNaN(B) ? D.value.minFontSize : B;
882
- const U = Wt($.name, B);
883
- return {
884
- ...$,
885
- id: $.id ?? `${$.name}__${w}`,
886
- fontSize: B,
887
- width: U.width,
888
- height: U.height,
889
- color: e.value.style.chart.words.usePalette ? e.value.customPalette[w] || e.value.customPalette[w % e.value.customPalette.length] || De[w] || De[w % De.length] : e.value.style.chart.words.color
890
- };
891
- });
892
- W.value.length = 0, Ce.clear(), jo({
893
- debugTiming: Be.value,
894
- words: S,
895
- svg: D.value,
896
- proximity: e.value.style.chart.words.proximity,
897
- strictPixelPadding: e.value.strictPixelPadding,
898
- onProgress: ({ all: $ }) => {
899
- for (const w of $) {
900
- const B = w.id;
901
- let U = Ce.get(B);
902
- if (U === void 0)
903
- U = W.value.length, Ce.set(B, U), W.value.push({ ...w });
904
- else {
905
- const te = W.value[U];
906
- te.x = w.x, te.y = w.y, te.width = w.width, te.height = w.height, te.fontSize = w.fontSize, te.minX = w.minX, te.minY = w.minY, te.maxX = w.maxX, te.maxY = w.maxY;
907
- }
908
- }
909
- }
910
- }), W.value.sort(($, w) => w.fontSize - $.fontSize), Ce.clear(), W.value.forEach(($, w) => {
911
- Ce.set($.id, w);
912
- }), ie.value = !0, ue.value = !1;
913
- }
914
- const Oe = G(() => {
915
- const t = W.value.map((o) => ({
916
- name: o.name,
917
- color: o.color
918
- })), v = W.value.map((o) => o.value);
919
- return { head: t, body: v };
920
- });
921
- function _e(t = null) {
922
- We(() => {
923
- const v = Oe.value.head.map(($, w) => [[$.name], [Oe.value.body[w]]]), o = [
924
- [e.value.style.chart.title.text],
925
- [e.value.style.chart.title.subtitle.text],
926
- [[""], [e.value.table.columnNames.value]]
927
- ].concat(v), S = ho(o);
928
- t ? t(S) : po({
929
- csvContent: S,
930
- title: e.value.style.chart.title.text || "vue-ui-word-cloud"
931
- });
932
- });
933
- }
934
- const ye = G(() => {
935
- const t = [
936
- e.value.table.columnNames.series,
937
- e.value.table.columnNames.value
938
- ], v = Oe.value.head.map((w, B) => {
939
- const U = fo({
940
- p: e.value.table.td.prefix,
941
- v: Oe.value.body[B],
942
- s: e.value.table.td.suffix,
943
- r: e.value.table.td.roundingValue
944
- });
945
- return [
946
- {
947
- color: w.color,
948
- name: w.name
949
- },
950
- U
951
- ];
952
- }), o = v.map((w) => w.map((B, U) => U === 0 ? B.name : B)), S = {
953
- th: {
954
- backgroundColor: e.value.table.th.backgroundColor,
955
- color: e.value.table.th.color,
956
- outline: e.value.table.th.outline
957
- },
958
- td: {
959
- backgroundColor: e.value.table.td.backgroundColor,
960
- color: e.value.table.td.color,
961
- outline: e.value.table.td.outline
962
- },
963
- breakpoint: e.value.table.responsiveBreakpoint
964
- };
965
- return {
966
- colNames: [
967
- e.value.table.columnNames.series,
968
- e.value.table.columnNames.value
969
- ],
970
- head: t,
971
- body: v,
972
- a11yBody: o,
973
- config: S
974
- };
975
- }), le = M(!1);
976
- function tt(t) {
977
- le.value = t, P.value += 1;
978
- }
979
- function Dt() {
980
- return W.value;
981
- }
982
- function ot() {
983
- X.value.showTable = !X.value.showTable;
984
- }
985
- function at() {
986
- X.value.showTooltip = !X.value.showTooltip;
987
- }
988
- const be = M(!1);
989
- function Ue() {
990
- be.value = !be.value;
991
- }
992
- function nt() {
993
- X.value.showZoom = !X.value.showZoom;
994
- }
995
- const Et = G(
996
- () => !be.value && X.value.showZoom
997
- ), { viewBox: Xe, resetZoom: $e, isZoom: Nt, setInitialViewBox: Bt, zoomByFactor: lt, scale: st } = Io(
998
- j,
999
- {
1000
- x: 0,
1001
- y: 0,
1002
- width: D.value.width <= 0 ? 10 : D.value.width,
1003
- height: D.value.height <= 0 ? 10 : D.value.height
1004
- },
1005
- 1,
1006
- Et
1007
- );
1008
- Pe(
1009
- () => l.dataset,
1010
- () => {
1011
- he.value = pe(), e.value.responsive || (et(), Ne());
1012
- },
1013
- { immediate: !0 }
1014
- );
1015
- async function Zt({ scale: t = 2 } = {}) {
1016
- if (!d.value) return;
1017
- const { width: v, height: o } = d.value.getBoundingClientRect(), S = v / o, { imageUri: $, base64: w } = await To({
1018
- domElement: d.value,
1019
- base64: !0,
1020
- img: !0,
1021
- scale: t
1022
- });
1023
- return {
1024
- imageUri: $,
1025
- base64: w,
1026
- title: e.value.style.chart.title.text,
1027
- width: v,
1028
- height: o,
1029
- aspectRatio: S
1030
- };
1031
- }
1032
- const Se = G(() => {
1033
- const t = e.value.table.useDialog && !e.value.table.show, v = X.value.showTable;
1034
- return {
1035
- component: t ? g : f,
1036
- title: `${e.value.style.chart.title.text}${e.value.style.chart.title.subtitle.text ? `: ${e.value.style.chart.title.subtitle.text}` : ""}`,
1037
- props: t ? {
1038
- backgroundColor: e.value.table.th.backgroundColor,
1039
- color: e.value.table.th.color,
1040
- headerColor: e.value.table.th.color,
1041
- headerBg: e.value.table.th.backgroundColor,
1042
- isFullscreen: le.value,
1043
- fullscreenParent: d.value,
1044
- forcedWidth: Math.min(500, window.innerWidth * 0.8),
1045
- isCursorPointer: R.value
1046
- } : {
1047
- hideDetails: !0,
1048
- config: {
1049
- open: v,
1050
- maxHeight: 1e4,
1051
- body: {
1052
- backgroundColor: e.value.style.chart.backgroundColor,
1053
- color: e.value.style.chart.color
1054
- },
1055
- head: {
1056
- backgroundColor: e.value.style.chart.backgroundColor,
1057
- color: e.value.style.chart.color
1058
- }
1059
- }
1060
- }
1061
- };
1062
- });
1063
- Pe(
1064
- () => X.value.showTable,
1065
- (t) => {
1066
- e.value.table.show || (t && e.value.table.useDialog && q.value ? q.value.open() : "close" in q.value && q.value.close());
1067
- }
1068
- );
1069
- function it() {
1070
- X.value.showTable = !1, ae.value && ae.value.setTableIconState(!1);
1071
- }
1072
- const Vt = G(() => e.value.style.chart.backgroundColor), _t = G(() => e.value.style.chart.title), { exportSvg: Ut, getSvg: Lt } = xo({
1073
- svg: j,
1074
- title: _t,
1075
- backgroundColor: Vt
1076
- });
1077
- async function ut({ isCb: t }) {
1078
- H.value = !0, await We();
1079
- try {
1080
- if (t) {
1081
- const { blob: v, url: o, text: S, dataUrl: $ } = await Lt();
1082
- await Promise.resolve(
1083
- e.value.userOptions.callbacks.svg({
1084
- blob: v,
1085
- url: o,
1086
- text: S,
1087
- dataUrl: $
1088
- })
1089
- );
1090
- } else
1091
- await Promise.resolve(Ut());
1092
- } finally {
1093
- H.value = !1;
1094
- }
1095
- }
1096
- function qt(t) {
1097
- if (t?.stage === "start") {
1098
- J.value = !0;
1099
- return;
1100
- }
1101
- if (t?.stage === "end") {
1102
- J.value = !1;
1103
- return;
1104
- }
1105
- Qe();
1106
- }
1107
- function rt() {
1108
- lt(1.5, !0);
1109
- }
1110
- function ct() {
1111
- lt(1 / 1.5, !0);
1112
- }
1113
- const ve = M(null), Te = M(!1), Le = M(""), Re = M(null);
1114
- function qe() {
1115
- ve.value = null, O.value = null, z.value = !1;
1116
- }
1117
- function Ht(t, v) {
1118
- e.value.events.datapointLeave && e.value.events.datapointLeave({
1119
- datapoint: t,
1120
- seriesIndex: v
1121
- }), !(O.value === v && ee.value === "keyboard") && (ve.value = null, z.value = !1);
1122
- }
1123
- function dt(t, v) {
1124
- e.value.events.datapointClick && e.value.events.datapointClick({
1125
- datapoint: t,
1126
- seriesIndex: v
1127
- });
1128
- }
1129
- function jt(t) {
1130
- if (!j.value || t === null || t === void 0) return;
1131
- const v = j.value.querySelector(
1132
- `[data-a11y-word-index="${t}-${x.value}"]`
1133
- );
1134
- if (!v) return;
1135
- const o = v.getBoundingClientRect();
1136
- Q.value = {
1137
- x: o.left + o.width / 2,
1138
- y: o.top + o.height / 2
1139
- };
1140
- }
1141
- function vt(t, v, o = "pointer") {
1142
- if (e.value.events.datapointEnter && e.value.events.datapointEnter({
1143
- datapoint: t,
1144
- seriesIndex: v
1145
- }), !X.value.showTooltip) return;
1146
- ee.value = o, O.value = v, ve.value = t.id, Re.value = { datapoint: t, config: e.value };
1147
- const S = e.value.style.chart.tooltip.customFormat;
1148
- if (Te.value = !1, go(S))
1149
- try {
1150
- const $ = S({
1151
- datapoint: t,
1152
- config: e.value
1153
- });
1154
- typeof $ == "string" && (Le.value = $, Te.value = !0);
1155
- } catch {
1156
- console.warn("Custom format cannot be applied."), Te.value = !1;
1157
- }
1158
- if (!Te.value) {
1159
- let $ = `<svg viewBox="0 0 10 10" height="${e.value.style.chart.tooltip.fontSize}"><circle cx="5" cy="5" r="5" fill="${t.color}"/></svg><span>${t.name}:</span><b>${(t.value || 0).toFixed(e.value.style.chart.tooltip.roundingValue)}</b>`;
1160
- Le.value = `<div dir="auto" style="display:flex; gap:4px; align-items:center; jsutify-content:center;">${$}</div>`;
1161
- }
1162
- o === "keyboard" && We(() => {
1163
- jt(v);
1164
- }), z.value = !0;
1165
- }
1166
- async function ft() {
1167
- if (u("copyAlt", {
1168
- config: e.value,
1169
- dataset: W.value
1170
- }), !e.value.userOptions.callbacks.altCopy) {
1171
- console.warn(
1172
- "Vue Data UI - A callback must be set for `altCopy` in userOptions."
1173
- );
1174
- return;
1175
- }
1176
- await Promise.resolve(
1177
- e.value.userOptions.callbacks.altCopy({
1178
- config: e.value,
1179
- dataset: W.value
1180
- })
1181
- );
1182
- }
1183
- function Gt() {
1184
- O.value = null, ce.value = !0;
1185
- }
1186
- function Kt() {
1187
- qe(), ce.value = !1;
1188
- }
1189
- function Jt(t) {
1190
- if (!j.value || be.value || document.activeElement !== j.value || !W.value.length) return;
1191
- const v = t.key === "ArrowLeft" || t.key === "ArrowUp", o = t.key === "ArrowRight" || t.key === "ArrowDown", S = t.key === "Enter" || t.key === " ", $ = t.key === "Escape";
1192
- if (!v && !o && !S && !$)
1193
- return;
1194
- if (t.preventDefault(), t.stopPropagation(), $) {
1195
- qe();
1196
- return;
1197
- }
1198
- if (S) {
1199
- if (O.value === null) return;
1200
- const U = W.value[O.value];
1201
- if (!U) return;
1202
- dt(U, O.value);
1203
- return;
1204
- }
1205
- let w = O.value;
1206
- w === null || w < 0 || w >= W.value.length ? w = o ? 0 : W.value.length - 1 : (w += o ? 1 : -1, w < 0 && (w = W.value.length - 1), w >= W.value.length && (w = 0));
1207
- const B = W.value[w];
1208
- B && vt(B, w, "keyboard");
1209
- }
1210
- const He = G(() => {
1211
- const t = ye.value?.colNames ?? [], v = ye.value?.a11yBody ?? [];
1212
- return { headers: t, rows: v };
1213
- });
1214
- return s({
1215
- getData: Dt,
1216
- getImage: Zt,
1217
- generateCsv: _e,
1218
- generatePdf: Je,
1219
- generateImage: Qe,
1220
- generateSvg: ut,
1221
- resetZoom: $e,
1222
- toggleTable: ot,
1223
- toggleTooltip: at,
1224
- toggleAnnotator: Ue,
1225
- toggleFullscreen: tt,
1226
- toggleZoom: nt,
1227
- copyAlt: ft
1228
- }), (t, v) => (Y(), K("div", {
1229
- class: "vue-data-ui-component vue-ui-word-cloud",
1230
- ref_key: "wordCloudChart",
1231
- ref: d,
1232
- id: `wordCloud_${x.value}`,
1233
- "data-resizing": Fe.value,
1234
- "data-relayout": ue.value,
1235
- style: ze(`width: 100%; font-family:${e.value.style.fontFamily};background:${e.value.style.chart.backgroundColor};${e.value.responsive ? "height:100%" : ""}`),
1236
- onMouseenter: v[3] || (v[3] = () => T(Ie)(!0)),
1237
- onMouseleave: v[4] || (v[4] = () => {
1238
- T(Ie)(!1), ce.value || qe();
1239
- })
1240
- }, [
1241
- fe("div", {
1242
- id: `chart-instructions-${x.value}`,
1243
- class: "sr-only"
1244
- }, [
1245
- fe("p", null, Ye(e.value.a11y.translations.keyboardNavigation), 1)
1246
- ], 8, Ko),
1247
- He.value?.rows?.length ? (Y(), oe(Ao, {
1248
- key: 0,
1249
- uid: x.value,
1250
- head: He.value.headers,
1251
- body: He.value.rows,
1252
- notice: e.value.a11y.translations.tableAvailable,
1253
- caption: e.value.a11y.translations.tableCaption
1254
- }, null, 8, ["uid", "head", "body", "notice", "caption"])) : L("", !0),
1255
- e.value.userOptions.buttons.annotator ? (Y(), oe(T(n), {
1256
- key: 1,
1257
- svgRef: T(j),
1258
- backgroundColor: e.value.style.chart.backgroundColor,
1259
- color: e.value.style.chart.color,
1260
- active: be.value,
1261
- isCursorPointer: R.value,
1262
- onClose: Ue
1263
- }, {
1264
- "annotator-action-close": F(() => [
1265
- A(t.$slots, "annotator-action-close", {}, void 0, !0)
1266
- ]),
1267
- "annotator-action-color": F(({ color: o }) => [
1268
- A(t.$slots, "annotator-action-color", Z(V({ color: o })), void 0, !0)
1269
- ]),
1270
- "annotator-action-draw": F(({ mode: o }) => [
1271
- A(t.$slots, "annotator-action-draw", Z(V({ mode: o })), void 0, !0)
1272
- ]),
1273
- "annotator-action-undo": F(({ disabled: o }) => [
1274
- A(t.$slots, "annotator-action-undo", Z(V({ disabled: o })), void 0, !0)
1275
- ]),
1276
- "annotator-action-redo": F(({ disabled: o }) => [
1277
- A(t.$slots, "annotator-action-redo", Z(V({ disabled: o })), void 0, !0)
1278
- ]),
1279
- "annotator-action-delete": F(({ disabled: o }) => [
1280
- A(t.$slots, "annotator-action-delete", Z(V({ disabled: o })), void 0, !0)
1281
- ]),
1282
- _: 3
1283
- }, 8, ["svgRef", "backgroundColor", "color", "active", "isCursorPointer"])) : L("", !0),
1284
- e.value.style.chart.title.text ? (Y(), K("div", {
1285
- key: 2,
1286
- ref_key: "chartTitle",
1287
- ref: C,
1288
- style: "width:100%;background:transparent;padding-bottom:24px"
1289
- }, [
1290
- (Y(), oe(Po, {
1291
- key: `title_${E.value}`,
1292
- config: {
1293
- title: {
1294
- ...e.value.style.chart.title
1295
- },
1296
- subtitle: {
1297
- ...e.value.style.chart.title.subtitle
1298
- }
1299
- }
1300
- }, null, 8, ["config"]))
1301
- ], 512)) : L("", !0),
1302
- e.value.userOptions.show && I.value && (T(Ae) || T(ke)) ? (Y(), oe(T(p), {
1303
- ref_key: "userOptionsRef",
1304
- ref: ae,
1305
- key: `user_option_${P.value}`,
1306
- backgroundColor: e.value.style.chart.backgroundColor,
1307
- color: e.value.style.chart.color,
1308
- isPrinting: T(Ze),
1309
- isImaging: T(Ve),
1310
- uid: x.value,
1311
- hasPdf: e.value.userOptions.buttons.pdf,
1312
- hasXls: e.value.userOptions.buttons.csv,
1313
- hasImg: e.value.userOptions.buttons.img,
1314
- hasSvg: e.value.userOptions.buttons.svg,
1315
- hasTable: e.value.userOptions.buttons.table,
1316
- hasFullscreen: e.value.userOptions.buttons.fullscreen,
1317
- hasAltCopy: e.value.userOptions.buttons.altCopy,
1318
- isFullscreen: le.value,
1319
- titles: { ...e.value.userOptions.buttonTitles },
1320
- chartElement: d.value,
1321
- position: e.value.userOptions.position,
1322
- hasTooltip: e.value.style.chart.tooltip.show && e.value.userOptions.buttons.tooltip,
1323
- isTooltip: X.value.showTooltip,
1324
- hasAnnotator: e.value.userOptions.buttons.annotator,
1325
- isAnnotation: be.value,
1326
- callbacks: e.value.userOptions.callbacks,
1327
- printScale: e.value.userOptions.print.scale,
1328
- tableDialog: e.value.table.useDialog,
1329
- hasZoom: e.value.userOptions.buttons.zoom,
1330
- isZoom: X.value.showZoom,
1331
- isCursorPointer: R.value,
1332
- onToggleFullscreen: tt,
1333
- onGeneratePdf: T(Je),
1334
- onGenerateCsv: _e,
1335
- onGenerateImage: qt,
1336
- onGenerateSvg: ut,
1337
- onToggleTable: ot,
1338
- onToggleTooltip: at,
1339
- onToggleAnnotator: Ue,
1340
- onToggleZoom: nt,
1341
- onCopyAlt: ft,
1342
- style: ze({
1343
- visibility: T(Ae) ? T(ke) ? "visible" : "hidden" : "visible"
1344
- })
1345
- }, ht({ _: 2 }, [
1346
- t.$slots.menuIcon ? {
1347
- name: "menuIcon",
1348
- fn: F(({ isOpen: o, color: S }) => [
1349
- A(t.$slots, "menuIcon", Z(V({ isOpen: o, color: S })), void 0, !0)
1350
- ]),
1351
- key: "0"
1352
- } : void 0,
1353
- t.$slots.optionPdf ? {
1354
- name: "optionPdf",
1355
- fn: F(() => [
1356
- A(t.$slots, "optionPdf", {}, void 0, !0)
1357
- ]),
1358
- key: "1"
1359
- } : void 0,
1360
- t.$slots.optionCsv ? {
1361
- name: "optionCsv",
1362
- fn: F(() => [
1363
- A(t.$slots, "optionCsv", {}, void 0, !0)
1364
- ]),
1365
- key: "2"
1366
- } : void 0,
1367
- t.$slots.optionImg ? {
1368
- name: "optionImg",
1369
- fn: F(() => [
1370
- A(t.$slots, "optionImg", {}, void 0, !0)
1371
- ]),
1372
- key: "3"
1373
- } : void 0,
1374
- t.$slots.optionSvg ? {
1375
- name: "optionSvg",
1376
- fn: F(() => [
1377
- A(t.$slots, "optionSvg", {}, void 0, !0)
1378
- ]),
1379
- key: "4"
1380
- } : void 0,
1381
- t.$slots.optionTable ? {
1382
- name: "optionTable",
1383
- fn: F(() => [
1384
- A(t.$slots, "optionTable", {}, void 0, !0)
1385
- ]),
1386
- key: "5"
1387
- } : void 0,
1388
- t.$slots.optionFullscreen ? {
1389
- name: "optionFullscreen",
1390
- fn: F(({ toggleFullscreen: o, isFullscreen: S }) => [
1391
- A(t.$slots, "optionFullscreen", Z(V({ toggleFullscreen: o, isFullscreen: S })), void 0, !0)
1392
- ]),
1393
- key: "6"
1394
- } : void 0,
1395
- t.$slots.optionAnnotator ? {
1396
- name: "optionAnnotator",
1397
- fn: F(({ toggleAnnotator: o, isAnnotator: S }) => [
1398
- A(t.$slots, "optionAnnotator", Z(V({ toggleAnnotator: o, isAnnotator: S })), void 0, !0)
1399
- ]),
1400
- key: "7"
1401
- } : void 0,
1402
- t.$slots.optionZoom ? {
1403
- name: "optionZoom",
1404
- fn: F(({ toggleZoom: o, isZoomLocked: S }) => [
1405
- A(t.$slots, "optionZoom", Z(V({ toggleZoom: o, isZoomLocked: S })), void 0, !0)
1406
- ]),
1407
- key: "8"
1408
- } : void 0,
1409
- t.$slots.optionAltCopy ? {
1410
- name: "optionAltCopy",
1411
- fn: F(({ altCopy: o }) => [
1412
- A(t.$slots, "optionAltCopy", Z(V({ altCopy: o })), void 0, !0)
1413
- ]),
1414
- key: "9"
1415
- } : void 0
1416
- ]), 1032, ["backgroundColor", "color", "isPrinting", "isImaging", "uid", "hasPdf", "hasXls", "hasImg", "hasSvg", "hasTable", "hasFullscreen", "hasAltCopy", "isFullscreen", "titles", "chartElement", "position", "hasTooltip", "isTooltip", "hasAnnotator", "isAnnotation", "callbacks", "printScale", "tableDialog", "hasZoom", "isZoom", "isCursorPointer", "onGeneratePdf", "style"])) : L("", !0),
1417
- e.value.style.chart.controls.position === "top" && e.value.style.chart.controls.show && !T(me) ? (Y(), oe(xt, {
1418
- key: 4,
1419
- ref_key: "zoomControls",
1420
- ref: re,
1421
- config: e.value,
1422
- scale: T(st),
1423
- isFullscreen: le.value,
1424
- isCursorPointer: R.value,
1425
- onZoomIn: rt,
1426
- onZoomOut: ct,
1427
- onResetZoom: v[0] || (v[0] = (o) => T($e)(!0))
1428
- }, null, 8, ["config", "scale", "isFullscreen", "isCursorPointer"])) : L("", !0),
1429
- fe("div", Jo, [
1430
- (Y(), K("svg", {
1431
- ref_key: "svgRef",
1432
- ref: j,
1433
- class: pt({
1434
- "vue-data-ui-fullscreen--on": le.value,
1435
- "vue-data-ui-fulscreen--off": !le.value
1436
- }),
1437
- "aria-describedby": `chart-instructions-${x.value}`,
1438
- xmlns: T(mo),
1439
- viewBox: `${T(Xe).x} ${T(Xe).y} ${T(Xe).width} ${T(Xe).height}`,
1440
- style: "overflow:hidden;background:transparent;display:block",
1441
- tabindex: "0",
1442
- onFocus: Gt,
1443
- onBlur: Kt,
1444
- onKeydown: Jt
1445
- }, [
1446
- je(T(h)),
1447
- t.$slots["chart-background"] ? (Y(), K("foreignObject", {
1448
- key: 0,
1449
- x: 0,
1450
- y: 0,
1451
- width: D.value.width <= 0 ? 10 : D.value.width,
1452
- height: D.value.height <= 0 ? 10 : D.value.height,
1453
- style: {
1454
- pointerEvents: "none"
1455
- }
1456
- }, [
1457
- A(t.$slots, "chart-background", {}, void 0, !0)
1458
- ], 8, ea)) : L("", !0),
1459
- fe("g", {
1460
- transform: `translate(${Ee.value.x}, ${Ee.value.y})`,
1461
- class: pt({ "wc-finalized": ie.value })
1462
- }, [
1463
- (Y(!0), K(oo, null, ao(W.value, (o, S) => (Y(), K("g", {
1464
- key: o.id,
1465
- class: "vue-ui-word-cloud-word",
1466
- transform: `translate(${o.x}, ${o.y})`
1467
- }, [
1468
- o.minX !== void 0 ? (Y(), K("rect", {
1469
- key: 0,
1470
- "data-a11y-word-index": `${S}-${x.value}`,
1471
- x: o.minX,
1472
- y: o.minY * 1.25,
1473
- width: o.maxX - o.minX,
1474
- height: o.maxY - o.minY,
1475
- fill: "transparent",
1476
- "pointer-events": "visiblePainted",
1477
- "aria-label": `${o.name}: ${(o.value || 0).toFixed(e.value.style.chart.tooltip.roundingValue)}`,
1478
- onMouseover: ($) => vt(o, S),
1479
- onMouseleave: ($) => Ht(o, S),
1480
- onClick: ($) => dt(o, S)
1481
- }, null, 40, aa)) : L("", !0),
1482
- fe("text", {
1483
- fill: o.color,
1484
- "font-weight": e.value.style.chart.words.bold ? "bold" : "normal",
1485
- x: 0,
1486
- y: 0,
1487
- "font-size": o.fontSize,
1488
- transform: `translate(${o.width / 2}, ${o.height / 2})`,
1489
- "text-anchor": "middle",
1490
- "dominant-baseline": "central",
1491
- "paint-order": "stroke fill",
1492
- stroke: !ve.value || ve.value === o.id ? e.value.style.chart.words.selectedStroke : void 0,
1493
- "stroke-width": o.height * 0.05,
1494
- "stroke-linecap": "round",
1495
- "stroke-linejoin": "round",
1496
- style: ze(`
1497
- pointer-events:none;
1498
- fill-opacity:${!ve.value || ve.value === o.id || !ie.value ? 1 : e.value.style.chart.words.hoverOpacity} !important;
1499
- `)
1500
- }, Ye(o.name), 13, na)
1501
- ], 8, oa))), 128))
1502
- ], 10, ta),
1503
- A(t.$slots, "svg", {
1504
- svg: {
1505
- ...D.value,
1506
- isPrintingImg: T(Ze) | T(Ve) | J.value,
1507
- isPrintingSvg: H.value
1508
- }
1509
- }, void 0, !0)
1510
- ], 42, Qo)),
1511
- t.$slots.hint ? (Y(), K("div", la, [
1512
- A(t.$slots, "hint", Z(V({
1513
- hint: e.value.a11y.translations.keyboardNavigation,
1514
- isVisible: ce.value
1515
- })), void 0, !0)
1516
- ])) : L("", !0)
1517
- ]),
1518
- t.$slots.watermark ? (Y(), K("div", sa, [
1519
- A(t.$slots, "watermark", Z(V({
1520
- isPrinting: T(Ze) || T(Ve) || J.value || H.value
1521
- })), void 0, !0)
1522
- ])) : L("", !0),
1523
- T(Nt) ? (Y(), K("div", ia, [
1524
- A(t.$slots, "reset-action", { reset: T($e) }, void 0, !0)
1525
- ])) : L("", !0),
1526
- e.value.style.chart.controls.position === "bottom" && e.value.style.chart.controls.show && !T(me) ? (Y(), oe(xt, {
1527
- key: 7,
1528
- ref_key: "zoomControls",
1529
- ref: re,
1530
- config: e.value,
1531
- scale: T(st),
1532
- isFullscreen: le.value,
1533
- isCursorPointer: R.value,
1534
- onZoomIn: rt,
1535
- onZoomOut: ct,
1536
- onResetZoom: v[1] || (v[1] = (o) => T($e)(!0))
1537
- }, null, 8, ["config", "scale", "isFullscreen", "isCursorPointer"])) : L("", !0),
1538
- je(T(c), {
1539
- teleportTo: e.value.style.chart.tooltip.teleportTo,
1540
- show: X.value.showTooltip && z.value,
1541
- backgroundColor: e.value.style.chart.tooltip.backgroundColor,
1542
- color: e.value.style.chart.tooltip.color,
1543
- fontSize: e.value.style.chart.tooltip.fontSize,
1544
- borderRadius: e.value.style.chart.tooltip.borderRadius,
1545
- borderColor: e.value.style.chart.tooltip.borderColor,
1546
- borderWidth: e.value.style.chart.tooltip.borderWidth,
1547
- backgroundOpacity: e.value.style.chart.tooltip.backgroundOpacity,
1548
- position: e.value.style.chart.tooltip.position,
1549
- offsetY: e.value.style.chart.tooltip.offsetY,
1550
- parent: d.value,
1551
- content: Le.value,
1552
- isCustom: Te.value,
1553
- isFullscreen: le.value,
1554
- smooth: e.value.style.chart.tooltip.smooth,
1555
- backdropFilter: e.value.style.chart.tooltip.backdropFilter,
1556
- smoothForce: e.value.style.chart.tooltip.smoothForce,
1557
- smoothSnapThreshold: e.value.style.chart.tooltip.smoothSnapThreshold,
1558
- isA11yMode: ee.value === "keyboard",
1559
- a11yPosition: Q.value
1560
- }, {
1561
- "tooltip-before": F(() => [
1562
- A(t.$slots, "tooltip-before", Z(V({ ...Re.value })), void 0, !0)
1563
- ]),
1564
- tooltip: F(() => [
1565
- A(t.$slots, "tooltip", Z(V({ ...Re.value })), void 0, !0)
1566
- ]),
1567
- "tooltip-after": F(() => [
1568
- A(t.$slots, "tooltip-after", Z(V({ ...Re.value })), void 0, !0)
1569
- ]),
1570
- _: 3
1571
- }, 8, ["teleportTo", "show", "backgroundColor", "color", "fontSize", "borderRadius", "borderColor", "borderWidth", "backgroundOpacity", "position", "offsetY", "parent", "content", "isCustom", "isFullscreen", "smooth", "backdropFilter", "smoothForce", "smoothSnapThreshold", "isA11yMode", "a11yPosition"]),
1572
- t.$slots.source ? (Y(), K("div", {
1573
- key: 8,
1574
- ref_key: "source",
1575
- ref: _,
1576
- dir: "auto"
1577
- }, [
1578
- A(t.$slots, "source", {}, void 0, !0)
1579
- ], 512)) : L("", !0),
1580
- I.value && e.value.userOptions.buttons.table ? (Y(), oe(no(Se.value.component), lo({ key: 9 }, Se.value.props, {
1581
- ref_key: "tableUnit",
1582
- ref: q,
1583
- onClose: it
1584
- }), ht({
1585
- content: F(() => [
1586
- (Y(), oe(T(i), {
1587
- key: `table_${N.value}`,
1588
- colNames: ye.value.colNames,
1589
- head: ye.value.head,
1590
- body: ye.value.body,
1591
- config: ye.value.config,
1592
- title: e.value.table.useDialog ? "" : Se.value.title,
1593
- withCloseButton: !e.value.table.useDialog,
1594
- isCursorPointer: R.value,
1595
- onClose: it
1596
- }, {
1597
- th: F(({ th: o }) => [
1598
- fe("div", {
1599
- innerHTML: o,
1600
- style: { display: "flex", "align-items": "center" }
1601
- }, null, 8, ua)
1602
- ]),
1603
- td: F(({ td: o }) => [
1604
- gt(Ye(o.name || o), 1)
1605
- ]),
1606
- _: 1
1607
- }, 8, ["colNames", "head", "body", "config", "title", "withCloseButton", "isCursorPointer"]))
1608
- ]),
1609
- _: 2
1610
- }, [
1611
- e.value.table.useDialog ? {
1612
- name: "title",
1613
- fn: F(() => [
1614
- gt(Ye(Se.value.title), 1)
1615
- ]),
1616
- key: "0"
1617
- } : void 0,
1618
- e.value.table.useDialog ? {
1619
- name: "actions",
1620
- fn: F(() => [
1621
- fe("button", {
1622
- tabindex: "0",
1623
- class: "vue-ui-user-options-button",
1624
- onClick: v[2] || (v[2] = (o) => _e(e.value.userOptions.callbacks.csv)),
1625
- style: ze({ cursor: R.value ? "pointer" : "default" })
1626
- }, [
1627
- je(T(r), {
1628
- name: "fileCsv",
1629
- stroke: Se.value.props.color
1630
- }, null, 8, ["stroke"])
1631
- ], 4)
1632
- ]),
1633
- key: "1"
1634
- } : void 0
1635
- ]), 1040)) : L("", !0),
1636
- A(t.$slots, "skeleton", {}, () => [
1637
- T(me) ? (Y(), oe(wo, { key: 0 })) : L("", !0)
1638
- ], !0)
1639
- ], 44, Go));
1640
- }
1641
- }, Ma = /* @__PURE__ */ Fo(ra, [["__scopeId", "data-v-d5a6f6e2"]]);
1642
- export {
1643
- Ma as default
1644
- };