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,1510 +0,0 @@
1
- import { defineAsyncComponent as ye, ref as d, computed as v, toRefs as Ro, watch as fe, nextTick as ae, onBeforeUnmount as Bt, onMounted as Eo, openBlock as k, createElementBlock as P, normalizeStyle as ge, normalizeClass as jt, createElementVNode as W, toDisplayString as _t, createBlock as U, createCommentVNode as S, unref as w, withCtx as N, renderSlot as y, normalizeProps as $, guardReactiveProps as T, createSlots as Bo, createVNode as Gt, Fragment as be, renderList as ke, mergeProps as jo } from "vue";
2
- import { j as _o, t as zt, s as qe, X as Go, T as Lt, a3 as zo } from "./lib-DMzrGQHK.js";
3
- import { u as Lo } from "./usePanZoom-BbDhcKWf.js";
4
- import { t as Zo, u as Wo } from "./useResponsive-DfdjqQps.js";
5
- import { u as Do } from "./useConfig-CG4HT3wS.js";
6
- import { u as Yo, B as Xo } from "./BaseScanner-C2j3TsSY.js";
7
- import { u as qo } from "./usePrinter-C4t8DdQ-.js";
8
- import { u as Ho } from "./useSvgExport-BTG4hVPO.js";
9
- import { u as He } from "./useNestedProp-DH0BEVVS.js";
10
- import { u as Uo } from "./useThemeCheck-C9Ccl7U9.js";
11
- import { u as Vo } from "./useUserOptionState-B7Ej974k.js";
12
- import { u as Ko } from "./useChartAccessibility-cp6XQtqi.js";
13
- import Jo from "./img-CjTQXS0U.js";
14
- import { g as Qo } from "./geoProjections-BFq2sOBY.js";
15
- import en from "./Title-BbKoiBk2.js";
16
- import tn from "./vue_ui_geo--kg4VoVX.js";
17
- import { A as on } from "./A11yDataTable-BpmuNomI.js";
18
- import { B as Zt } from "./BaseZoomControls-CVSC1-SU.js";
19
- import { _ as nn } from "./_plugin-vue_export-helper-CHgC5LLL.js";
20
- const rn = ["id"], an = ["id"], ln = { style: { position: "relative" } }, sn = ["xmlns", "viewBox", "aria-describedby", "id"], un = ["transform"], cn = ["d", "fill", "stroke", "stroke-width", "onMouseenter", "onMouseleave", "onClick"], fn = ["d", "stroke", "stroke-width", "onMouseenter", "onMouseleave", "onClick"], dn = ["cx", "cy", "r", "fill", "stroke", "stroke-width", "onMouseenter"], vn = ["cx", "cy", "r", "fill", "stroke", "stroke-width", "onMouseenter", "onMouseleave", "onClick"], mn = ["x", "y", "fill", "font-size"], hn = {
21
- key: 0,
22
- style: { position: "absolute", top: "100%", left: "0", width: "100%" },
23
- "data-dom-to-png-ignore": "",
24
- "aria-hidden": "true"
25
- }, pn = {
26
- key: 6,
27
- class: "vue-data-ui-watermark"
28
- }, Wt = 1.5, yn = {
29
- __name: "vue-ui-geo",
30
- props: {
31
- config: {
32
- type: Object,
33
- default() {
34
- return {};
35
- }
36
- },
37
- dataset: {
38
- type: [Array, Object],
39
- default() {
40
- return [];
41
- }
42
- }
43
- },
44
- emits: ["copyAlt"],
45
- setup(Dt, { expose: Yt, emit: Xt }) {
46
- const qt = ye(() => import("./Tooltip-Cvt7Fi0Q.js")), Ht = ye(
47
- () => import("./UserOptions-DVduN6X7.js")
48
- ), Ut = ye(
49
- () => import("./PenAndPaper-CJDoB5H9.js")
50
- ), Vt = ye(
51
- () => import("./PackageVersion-BfrCAH6_.js")
52
- ), V = Dt, Kt = Xt, { vue_ui_geo: Jt } = Do(), { isThemeValid: Qt, warnInvalidTheme: eo } = Uo(), M = d(_o()), we = d(0), Ue = d(0), de = d(!1), ve = d(!1), R = d(null), _ = d(!1), le = d(null), Ve = d(null), Ke = d(null), Je = d(null), K = d(null), J = d(null), Qe = d(null), et = d(null), x = d(null), tt = d({ x: 0, y: 0 }), Q = d("pointer"), Ce = d(!1), G = d(!1);
53
- function ot(e) {
54
- G.value = e, we.value += 1;
55
- }
56
- function Ae() {
57
- const e = He({
58
- userConfig: V.config,
59
- defaultConfig: Jt
60
- }), o = e.theme;
61
- if (!o) return e;
62
- if (!Qt.value(e))
63
- return eo(e), e;
64
- const t = He({
65
- userConfig: tn[o] || V.config,
66
- defaultConfig: e
67
- });
68
- return He({
69
- userConfig: V.config,
70
- defaultConfig: t
71
- });
72
- }
73
- const i = d(Ae()), se = v(
74
- () => i.value.userOptions.useCursorPointer
75
- ), { userOptionsVisible: nt, keepUserOptionState: it } = Vo({
76
- config: i.value
77
- }), { svgRef: D } = Ko({
78
- config: i.value.style.chart.title
79
- }), to = v(() => zt({
80
- defaultConfig: {
81
- map: {
82
- geoJson: {
83
- type: "FeatureCollection",
84
- features: [
85
- {
86
- type: "Feature",
87
- properties: { name: "Island A" },
88
- geometry: {
89
- type: "Polygon",
90
- coordinates: [
91
- [
92
- [-6, 2],
93
- [-4, 2],
94
- [-4, 4],
95
- [-6, 4],
96
- [-6, 2]
97
- ]
98
- ]
99
- }
100
- },
101
- {
102
- type: "Feature",
103
- properties: { name: "Island B" },
104
- geometry: {
105
- type: "Polygon",
106
- coordinates: [
107
- [
108
- [-2, -1],
109
- [1, -1],
110
- [1, 2],
111
- [-2, 2],
112
- [-2, -1]
113
- ]
114
- ]
115
- }
116
- },
117
- {
118
- type: "Feature",
119
- properties: { name: "Island C" },
120
- geometry: {
121
- type: "Polygon",
122
- coordinates: [
123
- [
124
- [3, -3],
125
- [5, -3],
126
- [5, -1],
127
- [3, -1],
128
- [3, -3]
129
- ]
130
- ]
131
- }
132
- },
133
- {
134
- type: "Feature",
135
- properties: { name: "Island D" },
136
- geometry: {
137
- type: "Polygon",
138
- coordinates: [
139
- [
140
- [4, 3],
141
- [7, 3],
142
- [7, 5],
143
- [4, 5],
144
- [4, 3]
145
- ]
146
- ]
147
- }
148
- }
149
- ]
150
- }
151
- },
152
- userOptions: { show: !1 },
153
- style: {
154
- chart: {
155
- backgroundColor: "#99999930",
156
- territory: {
157
- fill: "#99999950",
158
- stroke: "#8A8A8A",
159
- strokeWidth: 0.5
160
- }
161
- }
162
- }
163
- },
164
- userConfig: i.value.skeletonConfig ?? {}
165
- })), { loading: Ne, FINAL_DATASET: Fe } = Yo({
166
- ...Ro(V),
167
- FINAL_CONFIG: i,
168
- prepareConfig: Ae,
169
- allowEmptyDataset: !0,
170
- skeletonDataset: V.config?.skeletonDataset ?? [],
171
- skeletonConfig: zt({
172
- defaultConfig: i.value,
173
- userConfig: to.value
174
- })
175
- }), { isPrinting: Pe, isImaging: $e, generatePdf: rt, generateImage: at } = qo({
176
- elementId: `vue-ui-geo_${M.value}`,
177
- fileName: i.value.style.chart.title.text || "vue-ui-geo",
178
- options: i.value.userOptions.print
179
- }), oo = v(() => i.value.style.chart.controls.show ? i.value.style.chart.controls.position === "top" ? Qe.value?.$el ?? null : i.value.style.chart.controls.position === "bottom" ? et.value?.$el ?? null : null : null);
180
- function Te() {
181
- K.value && (J.value && K.value.unobserve(J.value), K.value.disconnect(), K.value = null, J.value = null);
182
- }
183
- const ee = v(() => !!i.value.responsive && !G.value);
184
- fe(
185
- () => G.value,
186
- async (e) => {
187
- if (e) {
188
- Te(), te.value = Number(i.value.style.chart.dimensions.width) || te.value, z.value = Number(i.value.style.chart.dimensions.height) || z.value, await ae(), _.value = !1, requestAnimationFrame(() => {
189
- _.value || he();
190
- });
191
- return;
192
- }
193
- i.value.responsive && (await ae(), xe());
194
- }
195
- );
196
- function xe() {
197
- if (Te(), !ee.value) return;
198
- const e = Zo(() => {
199
- if (!R.value) return;
200
- const { width: o, height: t } = Wo({
201
- chart: R.value,
202
- noTitle: lt.value ? Ke.value : null,
203
- title: i.value.style.chart.title.text ? Ve.value : null,
204
- legend: oo.value,
205
- source: Je.value
206
- });
207
- requestAnimationFrame(() => {
208
- te.value = Math.max(0.1, Number(o) || 0.1), z.value = Math.max(0.1, Number(t) || 0.1) - 24;
209
- });
210
- });
211
- K.value = new ResizeObserver(e), J.value = R.value ? R.value.parentNode : null, J.value && K.value.observe(J.value), e();
212
- }
213
- const lt = v(() => i.value.userOptions.show && !i.value.style.chart.title.text), ue = d({
214
- showTooltip: i.value.style.chart.tooltip.show
215
- }), E = d(i.value.style.chart.zoom.active);
216
- fe(
217
- () => V.config,
218
- () => {
219
- i.value = Ae(), ue.value.showTooltip = i.value.style.chart.tooltip.show, E.value = i.value.style.chart.zoom.active, te.value = i.value.style.chart.dimensions.width, z.value = i.value.style.chart.dimensions.height, xe(), Ue.value += 1, we.value += 1;
220
- },
221
- { deep: !0 }
222
- );
223
- const { projections: st } = Qo, ut = v(
224
- () => i.value?.projection || "equirectangular"
225
- ), no = v(() => {
226
- const e = st?.[ut.value];
227
- return typeof e == "function" ? e : st.equirectangular;
228
- }), ct = v(() => i.value.map.geoJson ?? null), ft = {
229
- aitoff: { width: 1e3, height: 500 },
230
- azimuthalEquidistant: { width: 1e3, height: 1e3 },
231
- bonne: { width: 1e3, height: 1e3 },
232
- equirectangular: { width: 1e3, height: 700 },
233
- gallPeters: { width: 1e3, height: 800 },
234
- globe: { width: 1e3, height: 1e3 },
235
- hammer: { width: 1e3, height: 500 },
236
- mercator: { width: 1e3, height: 750 },
237
- mollweide: { width: 1e3, height: 600 },
238
- robinson: { width: 1e3, height: 600 },
239
- sinusoidal: { width: 1e3, height: 500 },
240
- vanDerGrinten: { width: 1e3, height: 1e3 },
241
- winkelTripel: { width: 1e3, height: 1e3 }
242
- }, te = d(i.value.style.chart.dimensions.width), z = d(i.value.style.chart.dimensions.height), Ie = v(() => {
243
- const e = ft[ut.value] || ft.equirectangular;
244
- return { width: e.width, height: e.height };
245
- }), I = v(() => {
246
- const e = Ie.value, o = te.value, t = z.value, n = Number.isFinite(o) && o > 0, r = Number.isFinite(t) && t > 0;
247
- if (n && r)
248
- return { width: o, height: t };
249
- if (n && !r) {
250
- const a = e.height / e.width;
251
- return { width: o, height: o * a };
252
- }
253
- if (!n && r) {
254
- const a = e.width / e.height;
255
- return { width: t * a, height: t };
256
- }
257
- return { width: e.width, height: e.height };
258
- }), io = v(() => {
259
- const e = i.value?.map?.center, o = [0, 0];
260
- if (!Array.isArray(e) || e.length !== 2) return o;
261
- const t = Number(e[0]), n = Number(e[1]);
262
- return !Number.isFinite(t) || !Number.isFinite(n) ? o : [t, n];
263
- });
264
- function oe([e, o]) {
265
- return no.value(
266
- [e, o],
267
- Ie.value.width,
268
- Ie.value.height,
269
- io.value
270
- );
271
- }
272
- function ro(e, o = {}) {
273
- const {
274
- defaultName: t = "",
275
- namePropertyCandidates: n = [
276
- "name",
277
- "nom",
278
- "admin",
279
- "NAME",
280
- "label",
281
- "title",
282
- "description",
283
- "DESCRIPTION",
284
- "NAME_1",
285
- "NAME_2",
286
- "NAME_3",
287
- "NAME_EN",
288
- "name:en",
289
- "name_en",
290
- "localname",
291
- "local_name"
292
- ],
293
- includeNullGeometries: r = !1
294
- } = o, a = { type: "FeatureCollection", features: [] };
295
- function l(c) {
296
- return c !== null && typeof c == "object" && !Array.isArray(c);
297
- }
298
- function f(c) {
299
- return !l(c) || typeof c.type != "string" ? !1 : c.type === "GeometryCollection" ? Array.isArray(c.geometries) : Object.hasOwn(c, "coordinates");
300
- }
301
- function u(c) {
302
- if (!l(c)) return "";
303
- for (const g of n) {
304
- const A = c[g];
305
- if (typeof A == "string" && A.trim())
306
- return A.trim();
307
- }
308
- return "";
309
- }
310
- function s({ geometry: c, properties: g, fallbackName: A, featureIndex: m }) {
311
- const b = l(g) ? { ...g } : {}, j = u(b), F = t ? `${t} ${m + 1}` : "", re = j || (typeof A == "string" ? A.trim() : "") || F;
312
- return !b.name && re && (b.name = re), {
313
- type: "Feature",
314
- geometry: c,
315
- properties: b
316
- };
317
- }
318
- function h(c, g, A, m, b) {
319
- const j = Array.isArray(c?.geometries) ? c.geometries : [];
320
- let F = m;
321
- for (let re = 0; re < j.length; re += 1) {
322
- const Z = j[re];
323
- if (Z) {
324
- if (l(Z) && Z.type === "GeometryCollection") {
325
- F = h(
326
- Z,
327
- g,
328
- A,
329
- F,
330
- b
331
- );
332
- continue;
333
- }
334
- if (f(Z)) {
335
- if (Z.coordinates == null && Z.type !== "GeometryCollection") {
336
- r && (b.push(
337
- s({
338
- geometry: null,
339
- properties: g,
340
- fallbackName: A,
341
- featureIndex: F
342
- })
343
- ), F += 1);
344
- continue;
345
- }
346
- b.push(
347
- s({
348
- geometry: Z,
349
- properties: g,
350
- fallbackName: A,
351
- featureIndex: F
352
- })
353
- ), F += 1;
354
- }
355
- }
356
- }
357
- return F;
358
- }
359
- function p(c, g, A = 0) {
360
- let m = A;
361
- if (c == null) return m;
362
- if (Array.isArray(c)) {
363
- for (const b of c)
364
- m = p(b, g, m);
365
- return m;
366
- }
367
- if (!l(c) || typeof c.type != "string")
368
- return m;
369
- if (c.type === "FeatureCollection") {
370
- const b = Array.isArray(c.features) ? c.features : [];
371
- for (const j of b)
372
- m = p(j, g, m);
373
- return m;
374
- }
375
- if (c.type === "Feature") {
376
- const b = l(c.properties) ? c.properties : {}, j = u(b), F = c.geometry ?? null;
377
- return F == null ? (r && (g.push(
378
- s({
379
- geometry: null,
380
- properties: b,
381
- fallbackName: j,
382
- featureIndex: m
383
- })
384
- ), m += 1), m) : l(F) && F.type === "GeometryCollection" ? h(
385
- F,
386
- b,
387
- j,
388
- m,
389
- g
390
- ) : (f(F) && (g.push(
391
- s({
392
- geometry: F,
393
- properties: b,
394
- fallbackName: j,
395
- featureIndex: m
396
- })
397
- ), m += 1), m);
398
- }
399
- return c.type === "GeometryCollection" ? h(
400
- c,
401
- {},
402
- "",
403
- m,
404
- g
405
- ) : (f(c) && (g.push(
406
- s({
407
- geometry: c,
408
- properties: {},
409
- fallbackName: "",
410
- featureIndex: m
411
- })
412
- ), m += 1), m);
413
- }
414
- const C = [];
415
- return p(e, C, 0), { ...a, features: C };
416
- }
417
- function ao(e) {
418
- const o = Array.isArray(e?.features) ? e.features : [];
419
- function t(n) {
420
- if (!n || typeof n != "object") return "";
421
- const r = [
422
- n.name,
423
- n.nom,
424
- n.admin,
425
- n.NAME,
426
- n.label,
427
- n.title,
428
- n.description,
429
- n.DESCRIPTION,
430
- n.NAME_1,
431
- n.NAME_2,
432
- n.NAME_3,
433
- n.NAME_EN,
434
- n["name:en"],
435
- n.name_en,
436
- n.localname,
437
- n.local_name
438
- ];
439
- for (const a of r)
440
- if (typeof a == "string" && a.trim())
441
- return a.trim();
442
- for (const a of Object.values(n))
443
- if (typeof a == "string" && a.trim()) return a.trim();
444
- return "";
445
- }
446
- return o.filter(
447
- (n) => n && n.type === "Feature" && n.geometry
448
- ).map((n, r) => {
449
- const a = n.properties || {}, l = t(a);
450
- return {
451
- feature: n,
452
- geometry: n.geometry,
453
- properties: a,
454
- name: l,
455
- uid: `map-feature-${M.value}-${r}`,
456
- index: r
457
- };
458
- });
459
- }
460
- const lo = v(
461
- () => ro(ct.value, {
462
- defaultName: "",
463
- includeNullGeometries: !1
464
- })
465
- ), me = v(
466
- () => ao(
467
- lo.value
468
- )
469
- );
470
- function Se(e) {
471
- if (!e || typeof e.type != "string") return "";
472
- if (e.type === "GeometryCollection")
473
- return (Array.isArray(e.geometries) ? e.geometries : []).map((a) => Se(a)).filter(Boolean).join(" ");
474
- const o = (r) => {
475
- if (!Array.isArray(r) || r.length < 2) return null;
476
- const a = Number(r[0]), l = Number(r[1]);
477
- if (!Number.isFinite(a) || !Number.isFinite(l))
478
- return null;
479
- const f = oe([a, l]);
480
- if (!Array.isArray(f) || f.length < 2) return null;
481
- const u = Number(f[0]), s = Number(f[1]);
482
- return !Number.isFinite(u) || !Number.isFinite(s) ? null : [u, s];
483
- }, t = (r) => {
484
- const a = (r || []).map(o).filter(Boolean);
485
- return a.length < 2 ? "" : "M" + a.map(([l, f]) => `${l},${f}`).join("L");
486
- }, n = (r) => (r || []).map((a) => {
487
- const l = t(a);
488
- return l ? l + "Z" : "";
489
- }).filter(Boolean).join(" ");
490
- return e.type === "Polygon" ? n(e.coordinates) : e.type === "MultiPolygon" ? (e.coordinates || []).map(n).filter(Boolean).join(" ") : e.type === "LineString" ? t(e.coordinates) : e.type === "MultiLineString" ? (e.coordinates || []).map(t).filter(Boolean).join(" ") : "";
491
- }
492
- function dt(e) {
493
- return e ? e.type === "GeometryCollection" ? (Array.isArray(e.geometries) ? e.geometries : []).flatMap(
494
- (t) => dt(t)
495
- ) : e.type === "Point" ? Array.isArray(e.coordinates) ? [e.coordinates] : [] : e.type === "MultiPoint" ? Array.isArray(e.coordinates) ? e.coordinates : [] : [] : [];
496
- }
497
- function vt(e) {
498
- return !e || typeof e.type != "string" ? !1 : e.type === "GeometryCollection" ? (Array.isArray(e.geometries) ? e.geometries : []).some((t) => vt(t)) : e.type === "Point" || e.type === "MultiPoint";
499
- }
500
- const so = v(
501
- () => me.value.filter((e) => {
502
- const o = e.geometry;
503
- return o ? o.type === "GeometryCollection" ? (Array.isArray(o.geometries) ? o.geometries : []).some(
504
- (n) => n?.type === "Polygon" || n?.type === "MultiPolygon"
505
- ) : o.type === "Polygon" || o.type === "MultiPolygon" : !1;
506
- })
507
- ), uo = v(
508
- () => me.value.filter((e) => {
509
- const o = e.geometry;
510
- return o ? o.type === "GeometryCollection" ? (Array.isArray(o.geometries) ? o.geometries : []).some(
511
- (n) => n?.type === "LineString" || n?.type === "MultiLineString"
512
- ) : o.type === "LineString" || o.type === "MultiLineString" : !1;
513
- })
514
- ), co = v(
515
- () => me.value.filter((e) => {
516
- const o = e.geometry;
517
- return o ? vt(o) : !1;
518
- })
519
- ), mt = v(() => so.value.map((e) => {
520
- const o = Se(e.geometry);
521
- return o ? { ...e, path: o } : null;
522
- }).filter(Boolean)), ht = v(() => uo.value.map((e) => {
523
- const o = Se(e.geometry);
524
- return o ? { ...e, path: o } : null;
525
- }).filter(Boolean)), pt = v(() => {
526
- const e = [];
527
- function o(t = {}) {
528
- const n = t?.style && typeof t.style == "object" ? t.style : {}, r = t.radius ?? t.r ?? n.radius ?? n.r, a = t.color ?? t.fill ?? n.color ?? n.fill, l = t.stroke ?? n.stroke, f = t.strokeWidth ?? t.stroke_width ?? n.strokeWidth ?? n.stroke_width, u = Number.isFinite(Number(r)) ? Number(r) : Number(i.value.style.chart.points.radius), s = a != null && String(a).trim() ? qe(String(a).trim()) : i.value.style.chart.points.fill, h = l != null && String(l).trim() ? qe(String(l).trim()) : i.value.style.chart.points.stroke, p = Number.isFinite(Number(f)) ? Number(f) : Number(i.value.style.chart.points.strokeWidth);
529
- return { radius: u, fill: s, stroke: h, strokeWidth: p };
530
- }
531
- for (const t of co.value) {
532
- const n = dt(t.geometry);
533
- for (let r = 0; r < n.length; r += 1) {
534
- const a = n[r];
535
- if (!Array.isArray(a) || a.length < 2) continue;
536
- const l = Number(a[0]), f = Number(a[1]);
537
- if (!Number.isFinite(l) || !Number.isFinite(f))
538
- continue;
539
- const u = oe([l, f]), s = u?.[0], h = u?.[1];
540
- if (!Number.isFinite(s) || !Number.isFinite(h)) continue;
541
- const p = t?.feature?.properties && typeof t.feature.properties == "object" ? t.feature.properties : {}, C = o(p);
542
- e.push({
543
- uid: `${t.uid}-geojson-point-${r}`,
544
- name: t.name || "",
545
- x: s,
546
- y: h,
547
- ...C,
548
- originalFeature: t.feature,
549
- featureIndex: t.index,
550
- pointIndex: r
551
- });
552
- }
553
- }
554
- return e;
555
- });
556
- function yt(e) {
557
- if (!e || typeof e.type != "string") return [];
558
- const o = [], t = (r) => {
559
- if (!Array.isArray(r) || r.length < 2) return;
560
- const a = Number(r[0]), l = Number(r[1]);
561
- if (!Number.isFinite(a) || !Number.isFinite(l)) return;
562
- const f = oe([a, l]), u = f?.[0], s = f?.[1];
563
- !Number.isFinite(u) || !Number.isFinite(s) || o.push([u, s]);
564
- }, n = (r) => {
565
- if (Array.isArray(r)) {
566
- if (r.length >= 2 && typeof r[0] == "number" && typeof r[1] == "number") {
567
- t(r);
568
- return;
569
- }
570
- for (const a of r)
571
- n(a);
572
- }
573
- };
574
- if (e.type === "GeometryCollection" && Array.isArray(e.geometries)) {
575
- for (const r of e.geometries)
576
- o.push(...yt(r));
577
- return o;
578
- }
579
- return e.type === "Point" ? (t(e.coordinates), o) : e.type === "MultiPoint" ? ((e.coordinates || []).forEach(t), o) : (n(e.coordinates), o);
580
- }
581
- function fo(e) {
582
- const o = [];
583
- for (const u of e)
584
- o.push(...yt(u.geometry));
585
- if (!o.length) return null;
586
- let t = 1 / 0, n = 1 / 0, r = -1 / 0, a = -1 / 0;
587
- for (const [u, s] of o)
588
- u < t && (t = u), s < n && (n = s), u > r && (r = u), s > a && (a = s);
589
- const l = r - t, f = a - n;
590
- return !(l > 0) || !(f > 0) ? null : { minX: t, minY: n, maxX: r, maxY: a, width: l, height: f };
591
- }
592
- const vo = v(() => fo(me.value));
593
- function mo({ bounds: e, targetWidth: o, targetHeight: t, padding: n }) {
594
- if (!e || !(e.width > 0) || !(e.height > 0))
595
- return { scale: 1, translateX: 0, translateY: 0, transform: "" };
596
- const r = Number.isFinite(Number(n)) ? Number(n) : 0, a = Math.max(1, o - r * 2), l = Math.max(1, t - r * 2), f = a / e.width, u = l / e.height, s = Math.min(f, u), h = e.width * s, p = e.height * s, C = r + (a - h) / 2, c = r + (l - p) / 2, g = C - e.minX * s, A = c - e.minY * s;
597
- return {
598
- scale: s,
599
- translateX: g,
600
- translateY: A,
601
- transform: `translate(${g} ${A}) scale(${s})`
602
- };
603
- }
604
- const gt = v(() => {
605
- const e = vo.value;
606
- if (!e)
607
- return { scale: 1, translateX: 0, translateY: 0, transform: "" };
608
- const o = i.value?.map?.fitPadding, t = Number.isFinite(Number(o)) ? Number(o) : 0;
609
- return mo({
610
- bounds: e,
611
- targetWidth: I.value.width,
612
- targetHeight: I.value.height,
613
- padding: t
614
- });
615
- }), ho = v(() => {
616
- const e = I.value.width, o = I.value.height;
617
- return `0 0 ${e} ${o}`;
618
- }), {
619
- viewBox: ce,
620
- resetZoom: bt,
621
- setInitialViewBox: Me,
622
- scale: kt,
623
- zoomByFactor: wt
624
- } = Lo(
625
- D,
626
- {
627
- x: 0,
628
- y: 0,
629
- width: I.value.width,
630
- height: I.value.height
631
- },
632
- 1,
633
- E
634
- );
635
- function po() {
636
- E.value = !E.value;
637
- }
638
- function Oe(e) {
639
- const o = gt.value, t = Number(o?.scale) || 1, n = Number(o?.translateX) || 0, r = Number(o?.translateY) || 0;
640
- return {
641
- x: e.x * t + n,
642
- y: e.y * t + r
643
- };
644
- }
645
- function Ct() {
646
- const e = i.value?.map?.center, o = Number(e?.[0]), t = Number(e?.[1]), n = Array.isArray(e) && e.length === 2 && Number.isFinite(o) && Number.isFinite(t) && (o !== 0 || t !== 0), r = I.value.width, a = I.value.height;
647
- if (!n)
648
- return { x: 0, y: 0, width: r, height: a };
649
- const l = oe([o, t]), f = l?.[0], u = l?.[1];
650
- if (!Number.isFinite(f) || !Number.isFinite(u))
651
- return { x: 0, y: 0, width: r, height: a };
652
- const s = Oe({ x: f, y: u });
653
- return {
654
- x: s.x - r / 2,
655
- y: s.y - a / 2,
656
- width: r,
657
- height: a
658
- };
659
- }
660
- function he() {
661
- const e = Ct();
662
- Me(e, { overwriteCurrentIfNotZoomed: !0 }), _.value = !0;
663
- }
664
- const At = v(() => {
665
- const e = ce.value;
666
- return e ? `${e.x} ${e.y} ${e.width} ${e.height}` : ho.value;
667
- });
668
- function Re() {
669
- wt(Wt, !0);
670
- }
671
- function Ee() {
672
- wt(1 / Wt, !0);
673
- }
674
- async function Nt() {
675
- const e = Ct();
676
- Me(e, { overwriteCurrentIfNotZoomed: !0 }), bt(!0);
677
- }
678
- fe(
679
- () => [
680
- i.value.projection,
681
- i.value.map.center?.[0],
682
- i.value.map.center?.[1],
683
- i.value.map.fitPadding,
684
- ct.value
685
- ],
686
- async () => {
687
- _.value = !1, await ae(), requestAnimationFrame(() => {
688
- _.value || he();
689
- });
690
- },
691
- { deep: !1 }
692
- ), fe(
693
- () => [te.value, z.value, ee.value],
694
- async () => {
695
- ee.value && (await ae(), Me(
696
- {
697
- x: 0,
698
- y: 0,
699
- width: I.value.width,
700
- height: I.value.height
701
- },
702
- { overwriteCurrentIfNotZoomed: !0 }
703
- ), _.value = !1, requestAnimationFrame(() => {
704
- _.value || he();
705
- }));
706
- },
707
- { flush: "post" }
708
- );
709
- function yo(e) {
710
- return e ? e.type === "FeatureCollection" && Array.isArray(e.features) ? e.features.filter(
711
- (o) => o?.type === "Feature" && o.geometry?.type === "Point"
712
- ).map((o, t) => {
713
- const n = o.properties || {}, r = n.name || n.label || n.title || `Point ${t + 1}`, a = o.geometry.coordinates;
714
- return {
715
- uid: `map-point-${M.value}-${t}`,
716
- name: r,
717
- coordinates: a,
718
- color: n.color ?? null,
719
- radius: n.radius ?? null,
720
- hoverRadiusRatio: i.value.style.chart.points.hoverRadiusRatio,
721
- description: n.description ?? null,
722
- original: o,
723
- index: t
724
- };
725
- }) : Array.isArray(e) ? e.map((o, t) => {
726
- let n = null, r = `Point ${t + 1}`, a = null, l = null, f = null;
727
- Array.isArray(o) && o.length >= 2 ? n = [Number(o[0]), Number(o[1])] : o && typeof o == "object" && (Array.isArray(o.coordinates) && o.coordinates.length >= 2 ? n = [
728
- Number(o.coordinates[0]),
729
- Number(o.coordinates[1])
730
- ] : Number.isFinite(Number(o.lon)) && Number.isFinite(Number(o.lat)) && (n = [Number(o.lon), Number(o.lat)]), typeof o.name == "string" && o.name.trim() && (r = o.name), o.description != null && (a = o.description), o.color != null && (l = o.color), o.radius != null && (f = o.radius));
731
- const u = n ? n[0] : NaN, s = n ? n[1] : NaN;
732
- return !Number.isFinite(u) || !Number.isFinite(s) ? null : {
733
- uid: `map-point-${M.value}-${t}`,
734
- name: r,
735
- coordinates: [u, s],
736
- color: l,
737
- radius: f,
738
- hoverRadiusRatio: i.value.style.chart.points.hoverRadiusRatio,
739
- description: a,
740
- original: o,
741
- index: t
742
- };
743
- }).filter(Boolean) : typeof e == "object" ? Object.entries(e).map(([o, t], n) => {
744
- if (!t || typeof t != "object") return null;
745
- const r = Array.isArray(t.coordinates) ? t.coordinates : null;
746
- if (!r || r.length < 2) return null;
747
- const a = Number(r[0]), l = Number(r[1]);
748
- return !Number.isFinite(a) || !Number.isFinite(l) ? null : {
749
- uid: `map-point-${M.value}-${n}-${o}`,
750
- name: t.name || o,
751
- coordinates: [a, l],
752
- color: t.color ?? null,
753
- radius: t.radius ?? null,
754
- hoverRadiusRatio: i.value.style.chart.points.hoverRadiusRatio,
755
- description: t.description ?? null,
756
- original: t,
757
- index: n
758
- };
759
- }).filter(Boolean) : [] : [];
760
- }
761
- const Be = v(() => yo(Fe.value)), je = v(() => Be.value.map((e) => {
762
- const o = oe(e.coordinates), t = o?.[0], n = o?.[1];
763
- return !Number.isFinite(t) || !Number.isFinite(n) ? null : {
764
- ...e,
765
- x: t,
766
- y: n,
767
- fill: e.color ? qe(e.color) : i.value.style.chart.points.fill,
768
- radius: Number.isFinite(Number(e.radius)) ? Number(e.radius) : i.value.style.chart.points.radius
769
- };
770
- }).filter(Boolean)), Y = v(() => je.value.map((e, o) => ({
771
- ...e,
772
- keyboardIndex: o
773
- })));
774
- function go(e) {
775
- const o = Oe(e), t = zo(
776
- o.x,
777
- o.y,
778
- D.value
779
- );
780
- t && (tt.value = {
781
- x: t.x,
782
- y: t.y
783
- });
784
- }
785
- const _e = d(!1), Ge = d(""), L = d(!1), X = d(null), O = d(null);
786
- function ze(e) {
787
- Ge.value = e, _e.value = !0;
788
- }
789
- function q() {
790
- _e.value = !1, Ge.value = "";
791
- }
792
- function Le(e) {
793
- return String(e ?? "").replaceAll("&", "&amp;").replaceAll("<", "&lt;").replaceAll(">", "&gt;").replaceAll('"', "&quot;").replaceAll("'", "&#039;");
794
- }
795
- function bo(e) {
796
- le.value = {
797
- datapoint: e,
798
- seriesIndex: e.index,
799
- series: Be.value,
800
- config: i.value
801
- }, L.value = !1;
802
- const o = i.value.style.chart.tooltip.customFormat;
803
- if (Lt(o))
804
- try {
805
- const r = o(le.value);
806
- if (typeof r == "string")
807
- return L.value = !0, r;
808
- } catch {
809
- console.warn("Custom format cannot be applied."), L.value = !1;
810
- }
811
- const t = Le(e.name), n = e.description != null ? `<div style="margin-top:6px">${Le(e.description)}</div>` : "";
812
- return `<div><div style="font-weight:600">${t}</div>${n}</div>`;
813
- }
814
- function Ft(e) {
815
- L.value = !1;
816
- const o = i.value.style.chart.tooltip.customFormat;
817
- if (Lt(o))
818
- try {
819
- const n = o({
820
- datapoint: e,
821
- config: i.value
822
- });
823
- if (typeof n == "string")
824
- return L.value = !0, n;
825
- } catch {
826
- console.warn("Custom format cannot be applied."), L.value = !1;
827
- }
828
- const t = typeof e?.name == "string" ? e.name.trim() : "";
829
- return t ? `<div><div style="font-weight:600">${Le(t)}</div></div>` : (L.value = !1, "");
830
- }
831
- function Pt(e) {
832
- if (i.value.events.territoryEnter && i.value.events.territoryEnter({
833
- datapoint: e,
834
- seriesIndex: e.index
835
- }), !(typeof e?.name == "string" ? e.name.trim() : "") && !i.value.style.chart.territory.hover.enabledWhenEmpty) {
836
- O.value = null, q();
837
- return;
838
- }
839
- O.value = e.uid, ze(Ft(e));
840
- }
841
- function $t(e) {
842
- O.value = null, q(), i.value.events.territoryLeave && i.value.events.territoryLeave({
843
- datapoint: e,
844
- seriesIndex: e.index
845
- });
846
- }
847
- function Tt(e) {
848
- i.value.events.territoryClick && i.value.events.territoryClick({
849
- datapoint: e,
850
- seriesIndex: e.index
851
- });
852
- }
853
- function Ze(e, o = null, t = "pointer") {
854
- Q.value = t, X.value = e.uid, Number.isInteger(o) && (x.value = o), t === "keyboard" && go(e), ze(bo(e)), i.value.events.datapointEnter && i.value.events.datapointEnter({
855
- datapoint: e,
856
- seriesIndex: e.index
857
- });
858
- }
859
- function pe(e, o = "pointer") {
860
- o === "pointer" && Q.value === "keyboard" || (X.value = null, q(), o !== "pointer" && (x.value = null, Q.value = "pointer"), i.value.events.datapointLeave && i.value.events.datapointLeave({
861
- datapoint: e,
862
- seriesIndex: e.index
863
- }));
864
- }
865
- const xt = v(() => !!i.value.events.datapointClick && typeof i.value.events.datapointClick == "function");
866
- function We(e) {
867
- xt.value && i.value.events.datapointClick({
868
- datapoint: e,
869
- seriesIndex: e.index
870
- });
871
- }
872
- const B = v(() => i.value.style.chart.territory), It = v(() => i.value.style.chart.points);
873
- function ko(e) {
874
- const o = typeof e?.name == "string" ? e.name.trim() : "";
875
- if (!o) {
876
- O.value = null, q();
877
- return;
878
- }
879
- const t = {
880
- name: o,
881
- uid: e.uid,
882
- index: e.featureIndex,
883
- properties: {}
884
- };
885
- O.value = e.uid, ze(Ft(t));
886
- }
887
- function wo() {
888
- O.value = null, q();
889
- }
890
- const ne = d(!1);
891
- function De() {
892
- ne.value = !ne.value;
893
- }
894
- fe(
895
- () => ne.value,
896
- (e) => {
897
- E.value = !e;
898
- }
899
- );
900
- function St() {
901
- ue.value.showTooltip = !ue.value.showTooltip;
902
- }
903
- const Co = v(() => i.value.style.chart.backgroundColor), Ao = v(() => i.value.style.chart.title), { exportSvg: No, getSvg: Fo } = Ho({
904
- svg: D,
905
- title: Ao,
906
- legend: void 0,
907
- legendItems: void 0,
908
- backgroundColor: Co
909
- });
910
- async function Mt({ isCb: e }) {
911
- ve.value = !0, await ae();
912
- try {
913
- if (e) {
914
- const { blob: o, url: t, text: n, dataUrl: r } = await Fo();
915
- await Promise.resolve(
916
- i.value.userOptions.callbacks.svg({
917
- blob: o,
918
- url: t,
919
- text: n,
920
- dataUrl: r
921
- })
922
- );
923
- } else
924
- await Promise.resolve(No());
925
- } finally {
926
- ve.value = !1;
927
- }
928
- }
929
- function Po(e) {
930
- if (e?.stage === "start") {
931
- de.value = !0;
932
- return;
933
- }
934
- if (e?.stage === "end") {
935
- de.value = !1;
936
- return;
937
- }
938
- at();
939
- }
940
- async function $o({ scale: e = 2 } = {}) {
941
- if (!R.value) return;
942
- const { width: o, height: t } = R.value.getBoundingClientRect(), n = o / t, { imageUri: r, base64: a } = await Jo({
943
- domElement: R.value,
944
- base64: !0,
945
- img: !0,
946
- scale: e
947
- });
948
- return {
949
- imageUri: r,
950
- base64: a,
951
- title: i.value.style.chart.title.text,
952
- width: o,
953
- height: t,
954
- aspectRatio: n
955
- };
956
- }
957
- const H = d(!1);
958
- let ie = null;
959
- function To() {
960
- E.value && (H.value = !0);
961
- }
962
- function Ye() {
963
- H.value = !1;
964
- }
965
- function xo() {
966
- E.value && (H.value = !0, ie && clearTimeout(ie), ie = setTimeout(() => {
967
- H.value = !1, ie = null;
968
- }, 140));
969
- }
970
- Bt(() => {
971
- ie && clearTimeout(ie);
972
- });
973
- async function Ot([e, o], { animated: t = !0 } = {}) {
974
- const n = Number(e), r = Number(o);
975
- if (!Number.isFinite(n) || !Number.isFinite(r)) return;
976
- const a = oe([n, r]), l = a?.[0], f = a?.[1];
977
- if (!Number.isFinite(l) || !Number.isFinite(f)) return;
978
- const u = Oe({ x: l, y: f }), s = ce.value ? { ...ce.value } : {
979
- x: 0,
980
- y: 0,
981
- width: I.value.width,
982
- height: I.value.height
983
- }, h = {
984
- x: u.x - s.width / 2,
985
- y: u.y - s.height / 2,
986
- width: s.width,
987
- height: s.height
988
- };
989
- if (!t) {
990
- ce.value = h;
991
- return;
992
- }
993
- const p = { ...s }, C = { ...h }, c = 250;
994
- let g = null;
995
- const A = (m) => {
996
- g == null && (g = m);
997
- const b = Math.min((m - g) / c, 1);
998
- ce.value = {
999
- x: p.x + (C.x - p.x) * b,
1000
- y: p.y + (C.y - p.y) * b,
1001
- width: p.width + (C.width - p.width) * b,
1002
- height: p.height + (C.height - p.height) * b
1003
- }, b < 1 && requestAnimationFrame(A);
1004
- };
1005
- requestAnimationFrame(A);
1006
- }
1007
- Eo(async () => {
1008
- xe(), await ae(), requestAnimationFrame(() => {
1009
- _.value || (he(), (i.value.map.center?.[0] || i.value.map.center?.[1]) && Ot(i.value.map.center, { animated: !1 }));
1010
- });
1011
- }), Bt(() => {
1012
- Te();
1013
- });
1014
- async function Rt() {
1015
- if (Kt("copyAlt", {
1016
- config: i.value,
1017
- dataset: Fe.value
1018
- }), !i.value.userOptions.callbacks.altCopy) {
1019
- console.warn(
1020
- "Vue Data UI - A callback must be set for `altCopy` in userOptions."
1021
- );
1022
- return;
1023
- }
1024
- await Promise.resolve(
1025
- i.value.userOptions.callbacks.altCopy({
1026
- config: i.value,
1027
- dataset: Fe.value
1028
- })
1029
- );
1030
- }
1031
- function Io(e, o) {
1032
- const t = Y.value;
1033
- if (!t.length) return null;
1034
- const n = t[e];
1035
- if (!n) return null;
1036
- let r = null, a = 1 / 0;
1037
- for (let l = 0; l < t.length; l += 1) {
1038
- if (l === e) continue;
1039
- const f = t[l], u = f.x - n.x, s = f.y - n.y;
1040
- let h = !1, p = 0, C = 0;
1041
- if (o === "right" && u > 0 && (h = !0, p = u, C = Math.abs(s)), o === "left" && u < 0 && (h = !0, p = Math.abs(u), C = Math.abs(s)), o === "down" && s > 0 && (h = !0, p = s, C = Math.abs(u)), o === "up" && s < 0 && (h = !0, p = Math.abs(s), C = Math.abs(u)), !h) continue;
1042
- const c = p * p + C * C * 4;
1043
- c < a && (a = c, r = l);
1044
- }
1045
- return r;
1046
- }
1047
- function Et(e) {
1048
- const o = Y.value;
1049
- return o.length ? e === "right" ? o.reduce((t, n, r, a) => n.x < a[t].x ? r : t, 0) : e === "left" ? o.reduce((t, n, r, a) => n.x > a[t].x ? r : t, 0) : e === "down" ? o.reduce((t, n, r, a) => n.y < a[t].y ? r : t, 0) : e === "up" ? o.reduce((t, n, r, a) => n.y > a[t].y ? r : t, 0) : 0 : null;
1050
- }
1051
- function So() {
1052
- Ce.value = !0;
1053
- }
1054
- function Mo() {
1055
- const e = x.value != null ? Y.value[x.value] : null;
1056
- e ? pe(e, "keyboard") : (x.value = null, Q.value = "pointer", q(), X.value = null), Ce.value = !1;
1057
- }
1058
- function Oo(e) {
1059
- if (!D.value || ne.value || document.activeElement !== D.value || !Y.value.length) return;
1060
- const o = e.key === "ArrowRight", t = e.key === "ArrowLeft", n = e.key === "ArrowDown", r = e.key === "ArrowUp", a = e.key === "Enter" || e.key === " ", l = e.key === "Escape";
1061
- if (!o && !t && !n && !r && !a && !l)
1062
- return;
1063
- if (e.preventDefault(), e.stopPropagation(), l) {
1064
- const h = x.value != null ? Y.value[x.value] : null;
1065
- h ? pe(h, "keyboard") : (x.value = null, Q.value = "pointer", q(), X.value = null);
1066
- return;
1067
- }
1068
- if (a) {
1069
- const h = x.value != null ? Y.value[x.value] : null;
1070
- if (!h) return;
1071
- We(h);
1072
- return;
1073
- }
1074
- const f = o ? "right" : t ? "left" : n ? "down" : "up";
1075
- let u = null;
1076
- if (x.value == null ? u = Et(f) : (u = Io(
1077
- x.value,
1078
- f
1079
- ), u == null && (u = Et(f))), u == null) return;
1080
- const s = Y.value[u];
1081
- s && Ze(s, u, "keyboard");
1082
- }
1083
- const Xe = v(() => {
1084
- const e = ["Name", "Latitude", "Longitude", "Description"], o = Be.value.map((t) => {
1085
- const n = Array.isArray(t.coordinates) ? t.coordinates[1] : null, r = Array.isArray(t.coordinates) ? t.coordinates[0] : null;
1086
- return [
1087
- t.name ?? "",
1088
- Number.isFinite(n) ? String(n) : "",
1089
- Number.isFinite(r) ? String(r) : "",
1090
- t.description ?? ""
1091
- ];
1092
- });
1093
- return {
1094
- headers: e,
1095
- rows: o
1096
- };
1097
- });
1098
- return Yt({
1099
- getImage: $o,
1100
- generatePdf: rt,
1101
- generateImage: at,
1102
- generateSvg: Mt,
1103
- toggleTooltip: St,
1104
- toggleAnnotator: De,
1105
- toggleFullscreen: ot,
1106
- zoomIn: Re,
1107
- zoomOut: Ee,
1108
- resetZoom: bt,
1109
- focusLocation: Ot,
1110
- copyAlt: Rt
1111
- }), (e, o) => (k(), P("div", {
1112
- class: jt(`vue-data-ui-component vue-ui-geo ${G.value ? "vue-data-ui-wrapper-fullscreen" : ""} ${ee.value ? "vue-ui-geo-responsive" : ""} ${H.value ? "vue-ui-geo-interacting" : ""}`),
1113
- ref_key: "geoChart",
1114
- ref: R,
1115
- id: `map_${M.value}`,
1116
- dir: "auto",
1117
- style: ge({
1118
- fontFamily: i.value.style.fontFamily,
1119
- width: "100%",
1120
- backgroundColor: i.value.style.chart.backgroundColor,
1121
- height: ee.value ? `${z.value}px` : void 0
1122
- })
1123
- }, [
1124
- W("div", {
1125
- id: `chart-instructions-${M.value}`,
1126
- class: "sr-only"
1127
- }, [
1128
- W("p", null, _t(i.value.a11y.translations.keyboardNavigation), 1)
1129
- ], 8, an),
1130
- Xe.value?.rows?.length ? (k(), U(on, {
1131
- key: 0,
1132
- uid: M.value,
1133
- head: Xe.value.headers,
1134
- body: Xe.value.rows,
1135
- notice: i.value.a11y.translations.tableAvailable,
1136
- caption: i.value.a11y.translations.tableCaption
1137
- }, null, 8, ["uid", "head", "body", "notice", "caption"])) : S("", !0),
1138
- lt.value ? (k(), P("div", {
1139
- key: 1,
1140
- ref_key: "noTitle",
1141
- ref: Ke,
1142
- class: "vue-data-ui-no-title-space",
1143
- style: "height:36px; width: 100%;background:transparent"
1144
- }, null, 512)) : S("", !0),
1145
- i.value.style.chart.title.text ? (k(), P("div", {
1146
- key: 2,
1147
- ref_key: "chartTitle",
1148
- ref: Ve,
1149
- style: "width:100%;background:transparent;padding-bottom:12px"
1150
- }, [
1151
- (k(), U(en, {
1152
- key: `title_${Ue.value}`,
1153
- config: {
1154
- title: {
1155
- cy: "geo-title",
1156
- ...i.value.style.chart.title
1157
- },
1158
- subtitle: {
1159
- cy: "geo-subtitle",
1160
- ...i.value.style.chart.title.subtitle
1161
- }
1162
- }
1163
- }, null, 8, ["config"]))
1164
- ], 512)) : S("", !0),
1165
- i.value.userOptions.buttons.annotator ? (k(), U(w(Ut), {
1166
- key: 3,
1167
- svgRef: w(D),
1168
- backgroundColor: i.value.style.chart.backgroundColor,
1169
- color: i.value.style.chart.color,
1170
- active: ne.value,
1171
- isCursorPointer: se.value,
1172
- onClose: De
1173
- }, {
1174
- "annotator-action-close": N(() => [
1175
- y(e.$slots, "annotator-action-close", {}, void 0, !0)
1176
- ]),
1177
- "annotator-action-color": N(({ color: t }) => [
1178
- y(e.$slots, "annotator-action-color", $(T({ color: t })), void 0, !0)
1179
- ]),
1180
- "annotator-action-draw": N(({ mode: t }) => [
1181
- y(e.$slots, "annotator-action-draw", $(T({ mode: t })), void 0, !0)
1182
- ]),
1183
- "annotator-action-undo": N(({ disabled: t }) => [
1184
- y(e.$slots, "annotator-action-undo", $(T({ disabled: t })), void 0, !0)
1185
- ]),
1186
- "annotator-action-redo": N(({ disabled: t }) => [
1187
- y(e.$slots, "annotator-action-redo", $(T({ disabled: t })), void 0, !0)
1188
- ]),
1189
- "annotator-action-delete": N(({ disabled: t }) => [
1190
- y(e.$slots, "annotator-action-delete", $(T({ disabled: t })), void 0, !0)
1191
- ]),
1192
- _: 3
1193
- }, 8, ["svgRef", "backgroundColor", "color", "active", "isCursorPointer"])) : S("", !0),
1194
- i.value.userOptions.show && (w(it) || w(nt)) ? (k(), U(w(Ht), {
1195
- ref: "userOptionsRef",
1196
- key: `user_options_${we.value}`,
1197
- backgroundColor: i.value.style.chart.backgroundColor,
1198
- color: i.value.style.chart.color,
1199
- isPrinting: w(Pe),
1200
- isImaging: w($e),
1201
- uid: M.value,
1202
- hasXls: !1,
1203
- hasTable: !1,
1204
- hasTooltip: i.value.userOptions.buttons.tooltip && i.value.style.chart.tooltip.show,
1205
- hasPdf: i.value.userOptions.buttons.pdf,
1206
- hasImg: i.value.userOptions.buttons.img,
1207
- hasSvg: i.value.userOptions.buttons.svg,
1208
- hasFullscreen: i.value.userOptions.buttons.fullscreen,
1209
- hasAltCopy: i.value.userOptions.buttons.altCopy,
1210
- hasAnnotator: i.value.userOptions.buttons.annotator,
1211
- hasZoom: i.value.userOptions.buttons.zoom,
1212
- isZoom: E.value,
1213
- isFullscreen: G.value,
1214
- isTooltip: ue.value.showTooltip,
1215
- titles: { ...i.value.userOptions.buttonTitles },
1216
- chartElement: R.value,
1217
- position: i.value.userOptions.position,
1218
- isAnnotation: ne.value,
1219
- callbacks: i.value.userOptions.callbacks,
1220
- printScale: i.value.userOptions.print.scale,
1221
- isCursorPointer: se.value,
1222
- onToggleFullscreen: ot,
1223
- onGeneratePdf: w(rt),
1224
- onGenerateImage: Po,
1225
- onGenerateSvg: Mt,
1226
- onToggleTooltip: St,
1227
- onToggleAnnotator: De,
1228
- onToggleZoom: po,
1229
- onCopyAlt: Rt,
1230
- style: ge({
1231
- visibility: w(it) ? w(nt) ? "visible" : "hidden" : "visible"
1232
- })
1233
- }, Bo({ _: 2 }, [
1234
- e.$slots.menuIcon ? {
1235
- name: "menuIcon",
1236
- fn: N(({ isOpen: t, color: n }) => [
1237
- y(e.$slots, "menuIcon", $(T({ isOpen: t, color: n })), void 0, !0)
1238
- ]),
1239
- key: "0"
1240
- } : void 0,
1241
- e.$slots.optionTooltip ? {
1242
- name: "optionTooltip",
1243
- fn: N(() => [
1244
- y(e.$slots, "optionTooltip", {}, void 0, !0)
1245
- ]),
1246
- key: "1"
1247
- } : void 0,
1248
- e.$slots.optionPdf ? {
1249
- name: "optionPdf",
1250
- fn: N(() => [
1251
- y(e.$slots, "optionPdf", {}, void 0, !0)
1252
- ]),
1253
- key: "2"
1254
- } : void 0,
1255
- e.$slots.optionImg ? {
1256
- name: "optionImg",
1257
- fn: N(() => [
1258
- y(e.$slots, "optionImg", {}, void 0, !0)
1259
- ]),
1260
- key: "3"
1261
- } : void 0,
1262
- e.$slots.optionSvg ? {
1263
- name: "optionSvg",
1264
- fn: N(() => [
1265
- y(e.$slots, "optionSvg", {}, void 0, !0)
1266
- ]),
1267
- key: "4"
1268
- } : void 0,
1269
- e.$slots.optionFullscreen ? {
1270
- name: "optionFullscreen",
1271
- fn: N(({ toggleFullscreen: t, isFullscreen: n }) => [
1272
- y(e.$slots, "optionFullscreen", $(T({ toggleFullscreen: t, isFullscreen: n })), void 0, !0)
1273
- ]),
1274
- key: "5"
1275
- } : void 0,
1276
- e.$slots.optionAnnotator ? {
1277
- name: "optionAnnotator",
1278
- fn: N(({ toggleAnnotator: t, isAnnotator: n }) => [
1279
- y(e.$slots, "optionAnnotator", $(T({ toggleAnnotator: t, isAnnotator: n })), void 0, !0)
1280
- ]),
1281
- key: "6"
1282
- } : void 0,
1283
- e.$slots.optionZoom ? {
1284
- name: "optionZoom",
1285
- fn: N(({ toggleZoom: t, isZoomLocked: n }) => [
1286
- y(e.$slots, "optionZoom", $(T({ toggleZoom: t, isZoomLocked: n })), void 0, !0)
1287
- ]),
1288
- key: "7"
1289
- } : void 0,
1290
- e.$slots.optionAltCopy ? {
1291
- name: "optionAltCopy",
1292
- fn: N(({ altCopy: t }) => [
1293
- y(e.$slots, "optionAltCopy", $(T({ altCopy: t })), void 0, !0)
1294
- ]),
1295
- key: "8"
1296
- } : void 0
1297
- ]), 1032, ["backgroundColor", "color", "isPrinting", "isImaging", "uid", "hasTooltip", "hasPdf", "hasImg", "hasSvg", "hasFullscreen", "hasAltCopy", "hasAnnotator", "hasZoom", "isZoom", "isFullscreen", "isTooltip", "titles", "chartElement", "position", "isAnnotation", "callbacks", "printScale", "isCursorPointer", "onGeneratePdf", "style"])) : S("", !0),
1298
- i.value.style.chart.controls.position === "top" && i.value.style.chart.controls.show && !w(Ne) ? (k(), U(Zt, {
1299
- key: 5,
1300
- ref_key: "zoomControlsTop",
1301
- ref: Qe,
1302
- config: i.value,
1303
- scale: w(kt),
1304
- isFullscreen: G.value,
1305
- isCursorPointer: se.value,
1306
- onZoomIn: Re,
1307
- onZoomOut: Ee,
1308
- onResetZoom: Nt
1309
- }, null, 8, ["config", "scale", "isFullscreen", "isCursorPointer"])) : S("", !0),
1310
- W("div", ln, [
1311
- (k(), P("svg", {
1312
- ref_key: "svgRef",
1313
- ref: D,
1314
- xmlns: w(Go),
1315
- viewBox: At.value,
1316
- preserveAspectRatio: "xMidYMid meet",
1317
- "aria-describedby": `map-keyboard-instructions-${M.value}`,
1318
- tabindex: "0",
1319
- style: ge({
1320
- display: "block",
1321
- width: "100%",
1322
- height: ee.value ? `${z.value}px` : "auto",
1323
- background: i.value.style.chart.backgroundColor,
1324
- touchAction: E.value ? "none" : "auto",
1325
- cursor: E.value ? H.value ? "grabbing" : "grab" : "default"
1326
- }),
1327
- id: `vue-ui-geo_${M.value}`,
1328
- onPointerdown: To,
1329
- onPointerup: Ye,
1330
- onPointercancel: Ye,
1331
- onPointerleave: Ye,
1332
- onWheel: xo,
1333
- onFocus: So,
1334
- onBlur: Mo,
1335
- onKeydown: Oo
1336
- }, [
1337
- Gt(w(Vt)),
1338
- W("g", {
1339
- transform: gt.value.transform,
1340
- style: ge({ pointerEvents: H.value ? "none" : "auto" })
1341
- }, [
1342
- W("g", null, [
1343
- (k(!0), P(be, null, ke(mt.value, (t) => (k(), P("path", {
1344
- class: "vue-ui-geo-territory",
1345
- key: t.uid,
1346
- d: t.path,
1347
- fill: O.value === t.uid ? B.value.hover.fill : B.value.fill,
1348
- stroke: O.value === t.uid ? B.value.hover.stroke : B.value.stroke,
1349
- "stroke-width": O.value === t.uid ? B.value.hover.strokeWidth : B.value.strokeWidth,
1350
- "vector-effect": "non-scaling-stroke",
1351
- onMouseenter: (n) => Pt(t),
1352
- onMouseleave: (n) => $t(t),
1353
- onClick: (n) => Tt(t)
1354
- }, null, 40, cn))), 128))
1355
- ]),
1356
- W("g", null, [
1357
- (k(!0), P(be, null, ke(ht.value, (t) => (k(), P("path", {
1358
- class: "vue-ui-geo-territory",
1359
- key: t.uid,
1360
- d: t.path,
1361
- fill: "none",
1362
- stroke: O.value === t.uid ? B.value.hover.stroke : B.value.stroke,
1363
- "stroke-width": O.value === t.uid ? B.value.hover.strokeWidth : B.value.strokeWidth,
1364
- "vector-effect": "non-scaling-stroke",
1365
- onMouseenter: (n) => Pt(t),
1366
- onMouseleave: (n) => $t(t),
1367
- onClick: (n) => Tt(t)
1368
- }, null, 40, fn))), 128))
1369
- ]),
1370
- W("g", null, [
1371
- (k(!0), P(be, null, ke(pt.value, (t) => (k(), P("circle", {
1372
- key: t.uid,
1373
- cx: t.x,
1374
- cy: t.y,
1375
- r: t.radius,
1376
- fill: t.fill,
1377
- stroke: t.stroke,
1378
- "stroke-width": t.strokeWidth,
1379
- "vector-effect": "non-scaling-stroke",
1380
- onMouseenter: (n) => ko(t),
1381
- onMouseleave: wo
1382
- }, null, 40, dn))), 128))
1383
- ]),
1384
- (k(!0), P(be, null, ke(je.value, (t, n) => (k(), P("g", {
1385
- key: t.uid
1386
- }, [
1387
- y(e.$slots, "datapoint", jo({ ref_for: !0 }, {
1388
- point: t,
1389
- onPointEnter: Ze,
1390
- onPointLeave: pe,
1391
- onPointClick: We,
1392
- highlighted: X.value === t.uid
1393
- }), () => [
1394
- W("circle", {
1395
- class: jt({
1396
- "vue-ui-geo-point": !0,
1397
- "vue-ui-geo-point-with-event": xt.value && se.value
1398
- }),
1399
- cx: t.x,
1400
- cy: t.y,
1401
- r: X.value === t.uid ? t.radius * t.hoverRadiusRatio : t.radius,
1402
- fill: t.fill,
1403
- stroke: It.value.stroke,
1404
- "stroke-width": It.value.strokeWidth,
1405
- "vector-effect": "non-scaling-stroke",
1406
- onMouseenter: (r) => Ze(t, n),
1407
- onMouseleave: (r) => pe(t),
1408
- onClick: (r) => We(t)
1409
- }, null, 42, vn)
1410
- ], !0),
1411
- i.value.style.chart.points.labels.show ? (k(), P("text", {
1412
- key: 0,
1413
- class: "vue-ui-geo-point-label",
1414
- x: t.x,
1415
- y: t.y + (X.value === t.uid ? t.radius * t.hoverRadiusRatio : t.radius) + i.value.style.chart.points.labels.offsetY + 1 * i.value.style.chart.points.labels.fontSizeRatio,
1416
- "text-anchor": "middle",
1417
- fill: i.value.style.chart.points.labels.color,
1418
- "font-size": 1 * i.value.style.chart.points.labels.fontSizeRatio
1419
- }, _t(t.name), 9, mn)) : S("", !0)
1420
- ]))), 128)),
1421
- y(e.$slots, "svg", {
1422
- svg: {
1423
- drawingArea: At.value,
1424
- isPrintingImg: w(Pe) | w($e) | de.value,
1425
- isPrintingSvg: ve.value,
1426
- data: {
1427
- areaPaths: mt.value,
1428
- linePaths: ht.value,
1429
- geoJsonPoints: pt.value,
1430
- projectedPoints: je.value
1431
- }
1432
- }
1433
- }, void 0, !0)
1434
- ], 12, un)
1435
- ], 44, sn)),
1436
- e.$slots.hint ? (k(), P("div", hn, [
1437
- y(e.$slots, "hint", $(T({
1438
- hint: i.value.a11y.translations.keyboardNavigation,
1439
- isVisible: Ce.value
1440
- })), void 0, !0)
1441
- ])) : S("", !0)
1442
- ]),
1443
- e.$slots.watermark ? (k(), P("div", pn, [
1444
- y(e.$slots, "watermark", $(T({
1445
- isPrinting: w(Pe) || w($e) || de.value || ve.value
1446
- })), void 0, !0)
1447
- ])) : S("", !0),
1448
- i.value.style.chart.controls.position === "bottom" && i.value.style.chart.controls.show && !w(Ne) ? (k(), U(Zt, {
1449
- key: 7,
1450
- ref_key: "zoomControlsBottom",
1451
- ref: et,
1452
- config: i.value,
1453
- scale: w(kt),
1454
- isFullscreen: G.value,
1455
- isCursorPointer: se.value,
1456
- onZoomIn: Re,
1457
- onZoomOut: Ee,
1458
- onResetZoom: Nt
1459
- }, null, 8, ["config", "scale", "isFullscreen", "isCursorPointer"])) : S("", !0),
1460
- Gt(w(qt), {
1461
- teleportTo: i.value.style.chart.tooltip.teleportTo,
1462
- show: ue.value.showTooltip && _e.value,
1463
- backgroundColor: i.value.style.chart.tooltip.backgroundColor,
1464
- color: i.value.style.chart.tooltip.color,
1465
- fontSize: i.value.style.chart.tooltip.fontSize,
1466
- borderRadius: i.value.style.chart.tooltip.borderRadius,
1467
- borderColor: i.value.style.chart.tooltip.borderColor,
1468
- borderWidth: i.value.style.chart.tooltip.borderWidth,
1469
- backgroundOpacity: i.value.style.chart.tooltip.backgroundOpacity,
1470
- position: i.value.style.chart.tooltip.position,
1471
- offsetY: i.value.style.chart.tooltip.offsetY,
1472
- parent: R.value,
1473
- content: Ge.value,
1474
- isCustom: L.value,
1475
- isFullscreen: G.value,
1476
- smooth: i.value.style.chart.tooltip.smooth,
1477
- backdropFilter: i.value.style.chart.tooltip.backdropFilter,
1478
- smoothForce: i.value.style.chart.tooltip.smoothForce,
1479
- smoothSnapThreshold: i.value.style.chart.tooltip.smoothSnapThreshold,
1480
- isA11yMode: Q.value === "keyboard",
1481
- a11yPosition: tt.value
1482
- }, {
1483
- "tooltip-before": N(() => [
1484
- y(e.$slots, "tooltip-before", $(T({ ...le.value })), void 0, !0)
1485
- ]),
1486
- tooltip: N(() => [
1487
- y(e.$slots, "tooltip", $(T({ ...le.value })), void 0, !0)
1488
- ]),
1489
- "tooltip-after": N(() => [
1490
- y(e.$slots, "tooltip-after", $(T({ ...le.value })), void 0, !0)
1491
- ]),
1492
- _: 3
1493
- }, 8, ["teleportTo", "show", "backgroundColor", "color", "fontSize", "borderRadius", "borderColor", "borderWidth", "backgroundOpacity", "position", "offsetY", "parent", "content", "isCustom", "isFullscreen", "smooth", "backdropFilter", "smoothForce", "smoothSnapThreshold", "isA11yMode", "a11yPosition"]),
1494
- e.$slots.source ? (k(), P("div", {
1495
- key: 8,
1496
- ref_key: "source",
1497
- ref: Je,
1498
- dir: "auto"
1499
- }, [
1500
- y(e.$slots, "source", {}, void 0, !0)
1501
- ], 512)) : S("", !0),
1502
- y(e.$slots, "skeleton", {}, () => [
1503
- w(Ne) ? (k(), U(Xo, { key: 0 })) : S("", !0)
1504
- ], !0)
1505
- ], 14, rn));
1506
- }
1507
- }, jn = /* @__PURE__ */ nn(yn, [["__scopeId", "data-v-eab5ef22"]]);
1508
- export {
1509
- jn as default
1510
- };