@dynatrace/strato-geo 0.6.32

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 (665) hide show
  1. package/LICENSE +174 -0
  2. package/README.md +15 -0
  3. package/esm/index.js +16 -0
  4. package/esm/index.js.map +7 -0
  5. package/esm/map/MapView.js +16 -0
  6. package/esm/map/MapView.js.map +7 -0
  7. package/esm/map/components/BubbleLayer/BubbleCircleLayer.js +16 -0
  8. package/esm/map/components/BubbleLayer/BubbleCircleLayer.js.map +7 -0
  9. package/esm/map/components/BubbleLayer/BubbleLayer.js +16 -0
  10. package/esm/map/components/BubbleLayer/BubbleLayer.js.map +7 -0
  11. package/esm/map/components/BubbleLayer/BubbleLayerTooltip.js +16 -0
  12. package/esm/map/components/BubbleLayer/BubbleLayerTooltip.js.map +7 -0
  13. package/esm/map/components/BubbleLayer/BubbleOutlineLayer.js +16 -0
  14. package/esm/map/components/BubbleLayer/BubbleOutlineLayer.js.map +7 -0
  15. package/esm/map/components/BubbleLayer/contexts/size-interpolation.context.js +16 -0
  16. package/esm/map/components/BubbleLayer/contexts/size-interpolation.context.js.map +7 -0
  17. package/esm/map/components/BubbleLayer/functions/add-outline-size.js +16 -0
  18. package/esm/map/components/BubbleLayer/functions/add-outline-size.js.map +7 -0
  19. package/esm/map/components/BubbleLayer/functions/build-radius-scale.js +16 -0
  20. package/esm/map/components/BubbleLayer/functions/build-radius-scale.js.map +7 -0
  21. package/esm/map/components/BubbleLayer/functions/build-stick-to-distance-expressions.js +16 -0
  22. package/esm/map/components/BubbleLayer/functions/build-stick-to-distance-expressions.js.map +7 -0
  23. package/esm/map/components/BubbleLayer/functions/parse-bubble-data-to-geo-json.js +16 -0
  24. package/esm/map/components/BubbleLayer/functions/parse-bubble-data-to-geo-json.js.map +7 -0
  25. package/esm/map/components/BubbleLayer/hooks/use-size-interpolation.js +16 -0
  26. package/esm/map/components/BubbleLayer/hooks/use-size-interpolation.js.map +7 -0
  27. package/esm/map/components/ChoroplethLayer.js +16 -0
  28. package/esm/map/components/ChoroplethLayer.js.map +7 -0
  29. package/esm/map/components/ChoroplethLayerTooltip.js +16 -0
  30. package/esm/map/components/ChoroplethLayerTooltip.js.map +7 -0
  31. package/esm/map/components/ConnectionLayer/ConnectionLayer.js +16 -0
  32. package/esm/map/components/ConnectionLayer/ConnectionLayer.js.map +7 -0
  33. package/esm/map/components/ConnectionLayer/ConnectionLayerDirection.js +16 -0
  34. package/esm/map/components/ConnectionLayer/ConnectionLayerDirection.js.map +7 -0
  35. package/esm/map/components/ConnectionLayer/ConnectionLayerTooltip.js +16 -0
  36. package/esm/map/components/ConnectionLayer/ConnectionLayerTooltip.js.map +7 -0
  37. package/esm/map/components/ConnectionLayer/functions/get-arc-line-features.js +16 -0
  38. package/esm/map/components/ConnectionLayer/functions/get-arc-line-features.js.map +7 -0
  39. package/esm/map/components/ConnectionLayer/functions/get-arrows-angles.js +16 -0
  40. package/esm/map/components/ConnectionLayer/functions/get-arrows-angles.js.map +7 -0
  41. package/esm/map/components/ConnectionLayer/functions/get-straight-line-features.js +16 -0
  42. package/esm/map/components/ConnectionLayer/functions/get-straight-line-features.js.map +7 -0
  43. package/esm/map/components/ConnectionLayer/functions/parse-connection-data-to-geo-json.js +16 -0
  44. package/esm/map/components/ConnectionLayer/functions/parse-connection-data-to-geo-json.js.map +7 -0
  45. package/esm/map/components/ConnectionLayer/functions/parse-direction-data-to-geo-json.js +16 -0
  46. package/esm/map/components/ConnectionLayer/functions/parse-direction-data-to-geo-json.js.map +7 -0
  47. package/esm/map/components/DefaultTooltip.js +16 -0
  48. package/esm/map/components/DefaultTooltip.js.map +7 -0
  49. package/esm/map/components/DotLayer/BackgroundLayer.js +16 -0
  50. package/esm/map/components/DotLayer/BackgroundLayer.js.map +7 -0
  51. package/esm/map/components/DotLayer/DotLayer.js +16 -0
  52. package/esm/map/components/DotLayer/DotLayer.js.map +7 -0
  53. package/esm/map/components/DotLayer/DotLayerTooltip.js +16 -0
  54. package/esm/map/components/DotLayer/DotLayerTooltip.js.map +7 -0
  55. package/esm/map/components/DotLayer/functions/calculate-circle-translate.js +16 -0
  56. package/esm/map/components/DotLayer/functions/calculate-circle-translate.js.map +7 -0
  57. package/esm/map/components/DotLayer/functions/resolve-icon-background.js +16 -0
  58. package/esm/map/components/DotLayer/functions/resolve-icon-background.js.map +7 -0
  59. package/esm/map/components/MapContent.js +16 -0
  60. package/esm/map/components/MapContent.js.map +7 -0
  61. package/esm/map/components/legend/CategoricalLegendRenderer.js +16 -0
  62. package/esm/map/components/legend/CategoricalLegendRenderer.js.map +7 -0
  63. package/esm/map/components/legend/MapLegendRenderer.js +16 -0
  64. package/esm/map/components/legend/MapLegendRenderer.js.map +7 -0
  65. package/esm/map/components/legend/SequentialLegendRenderer.js +16 -0
  66. package/esm/map/components/legend/SequentialLegendRenderer.js.map +7 -0
  67. package/esm/map/components/legend/ThresholdLegendRenderer.js +16 -0
  68. package/esm/map/components/legend/ThresholdLegendRenderer.js.map +7 -0
  69. package/esm/map/components/legend/functions/resolve-color.js +16 -0
  70. package/esm/map/components/legend/functions/resolve-color.js.map +7 -0
  71. package/esm/map/components/toolbar/MapToolbar.js +16 -0
  72. package/esm/map/components/toolbar/MapToolbar.js.map +7 -0
  73. package/esm/map/components/toolbar/buttons/MapDownloadDataButton.js +16 -0
  74. package/esm/map/components/toolbar/buttons/MapDownloadDataButton.js.map +7 -0
  75. package/esm/map/components/toolbar/buttons/MapResetButton.js +16 -0
  76. package/esm/map/components/toolbar/buttons/MapResetButton.js.map +7 -0
  77. package/esm/map/components/toolbar/buttons/MapZoomInOutButtons.js +16 -0
  78. package/esm/map/components/toolbar/buttons/MapZoomInOutButtons.js.map +7 -0
  79. package/esm/map/components/toolbar/buttons/MapZoomToFitButton.js +16 -0
  80. package/esm/map/components/toolbar/buttons/MapZoomToFitButton.js.map +7 -0
  81. package/esm/map/components/toolbar/constants.js +16 -0
  82. package/esm/map/components/toolbar/constants.js.map +7 -0
  83. package/esm/map/constants.js +16 -0
  84. package/esm/map/constants.js.map +7 -0
  85. package/esm/map/contexts/a11y-toolbar-tab-index.context.js +16 -0
  86. package/esm/map/contexts/a11y-toolbar-tab-index.context.js.map +7 -0
  87. package/esm/map/contexts/color-scale.context.js +16 -0
  88. package/esm/map/contexts/color-scale.context.js.map +7 -0
  89. package/esm/map/contexts/layer-coloring-strategy.context.js +16 -0
  90. package/esm/map/contexts/layer-coloring-strategy.context.js.map +7 -0
  91. package/esm/map/contexts/layer-ids.context.js +16 -0
  92. package/esm/map/contexts/layer-ids.context.js.map +7 -0
  93. package/esm/map/contexts/map-configuration.context.js +16 -0
  94. package/esm/map/contexts/map-configuration.context.js.map +7 -0
  95. package/esm/map/contexts/map-country-code.context.js +16 -0
  96. package/esm/map/contexts/map-country-code.context.js.map +7 -0
  97. package/esm/map/contexts/map-data-bounding-box.context.js +16 -0
  98. package/esm/map/contexts/map-data-bounding-box.context.js.map +7 -0
  99. package/esm/map/contexts/map-initial-view.context.js +16 -0
  100. package/esm/map/contexts/map-initial-view.context.js.map +7 -0
  101. package/esm/map/contexts/map-raw-data.context.js +16 -0
  102. package/esm/map/contexts/map-raw-data.context.js.map +7 -0
  103. package/esm/map/functions/__test__/fixtures/business-locations.js +16 -0
  104. package/esm/map/functions/__test__/fixtures/business-locations.js.map +7 -0
  105. package/esm/map/functions/__test__/fixtures/connection-layer.js +16 -0
  106. package/esm/map/functions/__test__/fixtures/connection-layer.js.map +7 -0
  107. package/esm/map/functions/__test__/fixtures/countries-stats.js +16 -0
  108. package/esm/map/functions/__test__/fixtures/countries-stats.js.map +7 -0
  109. package/esm/map/functions/__test__/fixtures/csv-download-cases.js +16 -0
  110. package/esm/map/functions/__test__/fixtures/csv-download-cases.js.map +7 -0
  111. package/esm/map/functions/__test__/fixtures/events-locations.js +16 -0
  112. package/esm/map/functions/__test__/fixtures/events-locations.js.map +7 -0
  113. package/esm/map/functions/__test__/fixtures/facilities-locations.js +16 -0
  114. package/esm/map/functions/__test__/fixtures/facilities-locations.js.map +7 -0
  115. package/esm/map/functions/__test__/fixtures/flight-connections.js +16 -0
  116. package/esm/map/functions/__test__/fixtures/flight-connections.js.map +7 -0
  117. package/esm/map/functions/a11y-toolbar-controls.js +16 -0
  118. package/esm/map/functions/a11y-toolbar-controls.js.map +7 -0
  119. package/esm/map/functions/attach-image-from-shape.js +16 -0
  120. package/esm/map/functions/attach-image-from-shape.js.map +7 -0
  121. package/esm/map/functions/attach-image-from-string.js +16 -0
  122. package/esm/map/functions/attach-image-from-string.js.map +7 -0
  123. package/esm/map/functions/attach-image-from-text.js +16 -0
  124. package/esm/map/functions/attach-image-from-text.js.map +7 -0
  125. package/esm/map/functions/attach-image-to-map.js +16 -0
  126. package/esm/map/functions/attach-image-to-map.js.map +7 -0
  127. package/esm/map/functions/build-and-download-csv.js +16 -0
  128. package/esm/map/functions/build-and-download-csv.js.map +7 -0
  129. package/esm/map/functions/build-categorical-scale.js +16 -0
  130. package/esm/map/functions/build-categorical-scale.js.map +7 -0
  131. package/esm/map/functions/build-scale-from-legend-config.js +16 -0
  132. package/esm/map/functions/build-scale-from-legend-config.js.map +7 -0
  133. package/esm/map/functions/calculate-hovered-color.js +16 -0
  134. package/esm/map/functions/calculate-hovered-color.js.map +7 -0
  135. package/esm/map/functions/create-bitmap-config-options.js +16 -0
  136. package/esm/map/functions/create-bitmap-config-options.js.map +7 -0
  137. package/esm/map/functions/define-bearing.js +16 -0
  138. package/esm/map/functions/define-bearing.js.map +7 -0
  139. package/esm/map/functions/define-color.js +16 -0
  140. package/esm/map/functions/define-color.js.map +7 -0
  141. package/esm/map/functions/define-radius.js +16 -0
  142. package/esm/map/functions/define-radius.js.map +7 -0
  143. package/esm/map/functions/extract-layers-data.js +16 -0
  144. package/esm/map/functions/extract-layers-data.js.map +7 -0
  145. package/esm/map/functions/get-client-settings.js +16 -0
  146. package/esm/map/functions/get-client-settings.js.map +7 -0
  147. package/esm/map/functions/get-color-from-token.js +16 -0
  148. package/esm/map/functions/get-color-from-token.js.map +7 -0
  149. package/esm/map/functions/get-countries-geo-code.js +16 -0
  150. package/esm/map/functions/get-countries-geo-code.js.map +7 -0
  151. package/esm/map/functions/get-data-layers-bounding-box.js +16 -0
  152. package/esm/map/functions/get-data-layers-bounding-box.js.map +7 -0
  153. package/esm/map/functions/get-data-uri.js +16 -0
  154. package/esm/map/functions/get-data-uri.js.map +7 -0
  155. package/esm/map/functions/get-map-states-template.js +16 -0
  156. package/esm/map/functions/get-map-states-template.js.map +7 -0
  157. package/esm/map/functions/get-scaled-symbol-size.js +16 -0
  158. package/esm/map/functions/get-scaled-symbol-size.js.map +7 -0
  159. package/esm/map/functions/get-tenant-country-code.js +16 -0
  160. package/esm/map/functions/get-tenant-country-code.js.map +7 -0
  161. package/esm/map/functions/is-valid-shape.js +16 -0
  162. package/esm/map/functions/is-valid-shape.js.map +7 -0
  163. package/esm/map/functions/iterate-config-slots.js +16 -0
  164. package/esm/map/functions/iterate-config-slots.js.map +7 -0
  165. package/esm/map/functions/parse-dot-data-to-geo-json.js +16 -0
  166. package/esm/map/functions/parse-dot-data-to-geo-json.js.map +7 -0
  167. package/esm/map/functions/parse-region-data-to-geo-json.js +16 -0
  168. package/esm/map/functions/parse-region-data-to-geo-json.js.map +7 -0
  169. package/esm/map/functions/safe-reactdom-render.js +16 -0
  170. package/esm/map/functions/safe-reactdom-render.js.map +7 -0
  171. package/esm/map/functions/set-layers-id.js +16 -0
  172. package/esm/map/functions/set-layers-id.js.map +7 -0
  173. package/esm/map/functions/tabularize-layers-data.js +18 -0
  174. package/esm/map/functions/tabularize-layers-data.js.map +7 -0
  175. package/esm/map/functions/to-mapbox-initial-view-state.js +16 -0
  176. package/esm/map/functions/to-mapbox-initial-view-state.js.map +7 -0
  177. package/esm/map/functions/tooltip-type-guards.js +16 -0
  178. package/esm/map/functions/tooltip-type-guards.js.map +7 -0
  179. package/esm/map/hooks/use-a11y-toolbar-tab-index.js +16 -0
  180. package/esm/map/hooks/use-a11y-toolbar-tab-index.js.map +7 -0
  181. package/esm/map/hooks/use-active-interaction.js +16 -0
  182. package/esm/map/hooks/use-active-interaction.js.map +7 -0
  183. package/esm/map/hooks/use-attach-image-from-icon.js +16 -0
  184. package/esm/map/hooks/use-attach-image-from-icon.js.map +7 -0
  185. package/esm/map/hooks/use-attach-symbol-to-map.js +16 -0
  186. package/esm/map/hooks/use-attach-symbol-to-map.js.map +7 -0
  187. package/esm/map/hooks/use-color-scale.js +16 -0
  188. package/esm/map/hooks/use-color-scale.js.map +7 -0
  189. package/esm/map/hooks/use-connection-direction-interaction-highlighting.js +16 -0
  190. package/esm/map/hooks/use-connection-direction-interaction-highlighting.js.map +7 -0
  191. package/esm/map/hooks/use-connection-interaction-highlighting.js +16 -0
  192. package/esm/map/hooks/use-connection-interaction-highlighting.js.map +7 -0
  193. package/esm/map/hooks/use-data-bounding-box.js +16 -0
  194. package/esm/map/hooks/use-data-bounding-box.js.map +7 -0
  195. package/esm/map/hooks/use-hover-interaction.js +16 -0
  196. package/esm/map/hooks/use-hover-interaction.js.map +7 -0
  197. package/esm/map/hooks/use-initial-view-context.js +16 -0
  198. package/esm/map/hooks/use-initial-view-context.js.map +7 -0
  199. package/esm/map/hooks/use-initial-view-state.js +16 -0
  200. package/esm/map/hooks/use-initial-view-state.js.map +7 -0
  201. package/esm/map/hooks/use-layer-coloring-strategy.js +16 -0
  202. package/esm/map/hooks/use-layer-coloring-strategy.js.map +7 -0
  203. package/esm/map/hooks/use-legend-interaction-highlighting.js +16 -0
  204. package/esm/map/hooks/use-legend-interaction-highlighting.js.map +7 -0
  205. package/esm/map/hooks/use-legend-interaction-visibility.js +16 -0
  206. package/esm/map/hooks/use-legend-interaction-visibility.js.map +7 -0
  207. package/esm/map/hooks/use-load-symbol-into-map.js +16 -0
  208. package/esm/map/hooks/use-load-symbol-into-map.js.map +7 -0
  209. package/esm/map/hooks/use-map-config.js +16 -0
  210. package/esm/map/hooks/use-map-config.js.map +7 -0
  211. package/esm/map/hooks/use-map-country-code.js +16 -0
  212. package/esm/map/hooks/use-map-country-code.js.map +7 -0
  213. package/esm/map/hooks/use-map-raw-data.js +16 -0
  214. package/esm/map/hooks/use-map-raw-data.js.map +7 -0
  215. package/esm/map/hooks/use-map-settings.js +16 -0
  216. package/esm/map/hooks/use-map-settings.js.map +7 -0
  217. package/esm/map/hooks/use-map-source.js +16 -0
  218. package/esm/map/hooks/use-map-source.js.map +7 -0
  219. package/esm/map/hooks/use-overlay-events.js +16 -0
  220. package/esm/map/hooks/use-overlay-events.js.map +7 -0
  221. package/esm/map/hooks/use-resolve-color.js +16 -0
  222. package/esm/map/hooks/use-resolve-color.js.map +7 -0
  223. package/esm/map/hooks/use-safe-svg-parser.js +16 -0
  224. package/esm/map/hooks/use-safe-svg-parser.js.map +7 -0
  225. package/esm/map/hooks/use-tooltip-event-listeners.js +16 -0
  226. package/esm/map/hooks/use-tooltip-event-listeners.js.map +7 -0
  227. package/esm/map/hooks/use-tooltip-template.js +16 -0
  228. package/esm/map/hooks/use-tooltip-template.js.map +7 -0
  229. package/esm/map/hooks/useDefaultTooltipActions.js +16 -0
  230. package/esm/map/hooks/useDefaultTooltipActions.js.map +7 -0
  231. package/esm/map/map-styles/default-style.js +16 -0
  232. package/esm/map/map-styles/default-style.js.map +7 -0
  233. package/esm/map/providers/color-scale.provider.js +16 -0
  234. package/esm/map/providers/color-scale.provider.js.map +7 -0
  235. package/esm/map/providers/layer-color-strategy.provider.js +16 -0
  236. package/esm/map/providers/layer-color-strategy.provider.js.map +7 -0
  237. package/esm/map/providers/map-initial-view.provider.js +16 -0
  238. package/esm/map/providers/map-initial-view.provider.js.map +7 -0
  239. package/esm/map/shapes/circle.js +33 -0
  240. package/esm/map/shapes/circle.js.map +7 -0
  241. package/esm/map/shapes/cross.js +28 -0
  242. package/esm/map/shapes/cross.js.map +7 -0
  243. package/esm/map/shapes/diamond.js +21 -0
  244. package/esm/map/shapes/diamond.js.map +7 -0
  245. package/esm/map/shapes/heart.js +28 -0
  246. package/esm/map/shapes/heart.js.map +7 -0
  247. package/esm/map/shapes/pin.js +22 -0
  248. package/esm/map/shapes/pin.js.map +7 -0
  249. package/esm/map/shapes/shape-picker.js +16 -0
  250. package/esm/map/shapes/shape-picker.js.map +7 -0
  251. package/esm/map/shapes/square.js +19 -0
  252. package/esm/map/shapes/square.js.map +7 -0
  253. package/esm/map/shapes/star.js +33 -0
  254. package/esm/map/shapes/star.js.map +7 -0
  255. package/esm/map/shapes/triangle.js +28 -0
  256. package/esm/map/shapes/triangle.js.map +7 -0
  257. package/esm/map/slots/BubbleLayer.js +16 -0
  258. package/esm/map/slots/BubbleLayer.js.map +7 -0
  259. package/esm/map/slots/BubbleLayerTooltip.js +16 -0
  260. package/esm/map/slots/BubbleLayerTooltip.js.map +7 -0
  261. package/esm/map/slots/CategoricalLegend.js +16 -0
  262. package/esm/map/slots/CategoricalLegend.js.map +7 -0
  263. package/esm/map/slots/ChartInteractions.js +16 -0
  264. package/esm/map/slots/ChartInteractions.js.map +7 -0
  265. package/esm/map/slots/ChoroplethLayer.js +16 -0
  266. package/esm/map/slots/ChoroplethLayer.js.map +7 -0
  267. package/esm/map/slots/ChoroplethLayerTooltip.js +16 -0
  268. package/esm/map/slots/ChoroplethLayerTooltip.js.map +7 -0
  269. package/esm/map/slots/ConnectionLayer.js +16 -0
  270. package/esm/map/slots/ConnectionLayer.js.map +7 -0
  271. package/esm/map/slots/ConnectionLayerTooltip.js +16 -0
  272. package/esm/map/slots/ConnectionLayerTooltip.js.map +7 -0
  273. package/esm/map/slots/DotLayer.js +16 -0
  274. package/esm/map/slots/DotLayer.js.map +7 -0
  275. package/esm/map/slots/DotLayerTooltip.js +16 -0
  276. package/esm/map/slots/DotLayerTooltip.js.map +7 -0
  277. package/esm/map/slots/SequentialLegend.js +16 -0
  278. package/esm/map/slots/SequentialLegend.js.map +7 -0
  279. package/esm/map/slots/ThresholdLegend.js +16 -0
  280. package/esm/map/slots/ThresholdLegend.js.map +7 -0
  281. package/esm/map/slots/Tooltip.js +16 -0
  282. package/esm/map/slots/Tooltip.js.map +7 -0
  283. package/esm/map/slots/Zoom.js +16 -0
  284. package/esm/map/slots/Zoom.js.map +7 -0
  285. package/esm/map/slots/ZoomToFit.js +16 -0
  286. package/esm/map/slots/ZoomToFit.js.map +7 -0
  287. package/esm/map/slots/states/DisabledState.js +16 -0
  288. package/esm/map/slots/states/DisabledState.js.map +7 -0
  289. package/esm/map/slots/states/ErrorStateSlot.js +16 -0
  290. package/esm/map/slots/states/ErrorStateSlot.js.map +7 -0
  291. package/esm/map/sources/CN.js +16 -0
  292. package/esm/map/sources/CN.js.map +7 -0
  293. package/esm/map/sources/IL.js +16 -0
  294. package/esm/map/sources/IL.js.map +7 -0
  295. package/esm/map/sources/IN.js +16 -0
  296. package/esm/map/sources/IN.js.map +7 -0
  297. package/esm/map/sources/countries.js +16 -0
  298. package/esm/map/sources/countries.js.map +7 -0
  299. package/esm/map/store/map-store.context.js +16 -0
  300. package/esm/map/store/map-store.context.js.map +7 -0
  301. package/esm/map/store/map-store.provider.js +16 -0
  302. package/esm/map/store/map-store.provider.js.map +7 -0
  303. package/esm/map/store/selectors.js +16 -0
  304. package/esm/map/store/selectors.js.map +7 -0
  305. package/esm/map/store/store.js +16 -0
  306. package/esm/map/store/store.js.map +7 -0
  307. package/esm/map/styles/react-mapgl-styles.css +671 -0
  308. package/esm/map/types/bubble-layer.js +16 -0
  309. package/esm/map/types/bubble-layer.js.map +7 -0
  310. package/esm/map/types/choropleth-layer.js +16 -0
  311. package/esm/map/types/choropleth-layer.js.map +7 -0
  312. package/esm/map/types/coloring.js +16 -0
  313. package/esm/map/types/coloring.js.map +7 -0
  314. package/esm/map/types/configuration.js +16 -0
  315. package/esm/map/types/configuration.js.map +7 -0
  316. package/esm/map/types/connection-layer.js +16 -0
  317. package/esm/map/types/connection-layer.js.map +7 -0
  318. package/esm/map/types/dot-layer.js +16 -0
  319. package/esm/map/types/dot-layer.js.map +7 -0
  320. package/esm/map/types/legend.js +16 -0
  321. package/esm/map/types/legend.js.map +7 -0
  322. package/esm/map/types/location.js +16 -0
  323. package/esm/map/types/location.js.map +7 -0
  324. package/esm/map/types/map-view.js +16 -0
  325. package/esm/map/types/map-view.js.map +7 -0
  326. package/esm/map/types/shapes.js +16 -0
  327. package/esm/map/types/shapes.js.map +7 -0
  328. package/esm/map/types/state.js +16 -0
  329. package/esm/map/types/state.js.map +7 -0
  330. package/esm/map/types/toolbar.js +16 -0
  331. package/esm/map/types/toolbar.js.map +7 -0
  332. package/esm/map/types/tooltip.js +16 -0
  333. package/esm/map/types/tooltip.js.map +7 -0
  334. package/index.d.ts +37 -0
  335. package/index.js +15 -0
  336. package/map/MapView.d.ts +25 -0
  337. package/map/MapView.js +15 -0
  338. package/map/components/BubbleLayer/BubbleCircleLayer.d.ts +20 -0
  339. package/map/components/BubbleLayer/BubbleCircleLayer.js +15 -0
  340. package/map/components/BubbleLayer/BubbleLayer.d.ts +22 -0
  341. package/map/components/BubbleLayer/BubbleLayer.js +15 -0
  342. package/map/components/BubbleLayer/BubbleLayerTooltip.d.ts +26 -0
  343. package/map/components/BubbleLayer/BubbleLayerTooltip.js +15 -0
  344. package/map/components/BubbleLayer/BubbleOutlineLayer.d.ts +5 -0
  345. package/map/components/BubbleLayer/BubbleOutlineLayer.js +15 -0
  346. package/map/components/BubbleLayer/contexts/size-interpolation.context.d.ts +2 -0
  347. package/map/components/BubbleLayer/contexts/size-interpolation.context.js +15 -0
  348. package/map/components/BubbleLayer/functions/add-outline-size.d.ts +21 -0
  349. package/map/components/BubbleLayer/functions/add-outline-size.js +15 -0
  350. package/map/components/BubbleLayer/functions/build-radius-scale.d.ts +18 -0
  351. package/map/components/BubbleLayer/functions/build-radius-scale.js +15 -0
  352. package/map/components/BubbleLayer/functions/build-stick-to-distance-expressions.d.ts +28 -0
  353. package/map/components/BubbleLayer/functions/build-stick-to-distance-expressions.js +15 -0
  354. package/map/components/BubbleLayer/functions/parse-bubble-data-to-geo-json.d.ts +35 -0
  355. package/map/components/BubbleLayer/functions/parse-bubble-data-to-geo-json.js +15 -0
  356. package/map/components/BubbleLayer/hooks/use-size-interpolation.d.ts +1 -0
  357. package/map/components/BubbleLayer/hooks/use-size-interpolation.js +15 -0
  358. package/map/components/ChoroplethLayer.d.ts +21 -0
  359. package/map/components/ChoroplethLayer.js +15 -0
  360. package/map/components/ChoroplethLayerTooltip.d.ts +25 -0
  361. package/map/components/ChoroplethLayerTooltip.js +15 -0
  362. package/map/components/ConnectionLayer/ConnectionLayer.d.ts +22 -0
  363. package/map/components/ConnectionLayer/ConnectionLayer.js +15 -0
  364. package/map/components/ConnectionLayer/ConnectionLayerDirection.d.ts +26 -0
  365. package/map/components/ConnectionLayer/ConnectionLayerDirection.js +15 -0
  366. package/map/components/ConnectionLayer/ConnectionLayerTooltip.d.ts +26 -0
  367. package/map/components/ConnectionLayer/ConnectionLayerTooltip.js +15 -0
  368. package/map/components/ConnectionLayer/functions/get-arc-line-features.d.ts +18 -0
  369. package/map/components/ConnectionLayer/functions/get-arc-line-features.js +15 -0
  370. package/map/components/ConnectionLayer/functions/get-arrows-angles.d.ts +4 -0
  371. package/map/components/ConnectionLayer/functions/get-arrows-angles.js +15 -0
  372. package/map/components/ConnectionLayer/functions/get-straight-line-features.d.ts +18 -0
  373. package/map/components/ConnectionLayer/functions/get-straight-line-features.js +15 -0
  374. package/map/components/ConnectionLayer/functions/parse-connection-data-to-geo-json.d.ts +18 -0
  375. package/map/components/ConnectionLayer/functions/parse-connection-data-to-geo-json.js +15 -0
  376. package/map/components/ConnectionLayer/functions/parse-direction-data-to-geo-json.d.ts +7 -0
  377. package/map/components/ConnectionLayer/functions/parse-direction-data-to-geo-json.js +15 -0
  378. package/map/components/DefaultTooltip.d.ts +26 -0
  379. package/map/components/DefaultTooltip.js +15 -0
  380. package/map/components/DotLayer/BackgroundLayer.d.ts +25 -0
  381. package/map/components/DotLayer/BackgroundLayer.js +15 -0
  382. package/map/components/DotLayer/DotLayer.d.ts +25 -0
  383. package/map/components/DotLayer/DotLayer.js +15 -0
  384. package/map/components/DotLayer/DotLayerTooltip.d.ts +26 -0
  385. package/map/components/DotLayer/DotLayerTooltip.js +15 -0
  386. package/map/components/DotLayer/functions/calculate-circle-translate.d.ts +16 -0
  387. package/map/components/DotLayer/functions/calculate-circle-translate.js +15 -0
  388. package/map/components/DotLayer/functions/resolve-icon-background.d.ts +19 -0
  389. package/map/components/DotLayer/functions/resolve-icon-background.js +15 -0
  390. package/map/components/MapContent.d.ts +18 -0
  391. package/map/components/MapContent.js +15 -0
  392. package/map/components/legend/CategoricalLegendRenderer.d.ts +2 -0
  393. package/map/components/legend/CategoricalLegendRenderer.js +15 -0
  394. package/map/components/legend/MapLegendRenderer.d.ts +17 -0
  395. package/map/components/legend/MapLegendRenderer.js +15 -0
  396. package/map/components/legend/SequentialLegendRenderer.d.ts +17 -0
  397. package/map/components/legend/SequentialLegendRenderer.js +15 -0
  398. package/map/components/legend/ThresholdLegendRenderer.d.ts +17 -0
  399. package/map/components/legend/ThresholdLegendRenderer.js +15 -0
  400. package/map/components/legend/functions/resolve-color.d.ts +23 -0
  401. package/map/components/legend/functions/resolve-color.js +15 -0
  402. package/map/components/toolbar/MapToolbar.d.ts +20 -0
  403. package/map/components/toolbar/MapToolbar.js +15 -0
  404. package/map/components/toolbar/buttons/MapDownloadDataButton.d.ts +17 -0
  405. package/map/components/toolbar/buttons/MapDownloadDataButton.js +15 -0
  406. package/map/components/toolbar/buttons/MapResetButton.d.ts +17 -0
  407. package/map/components/toolbar/buttons/MapResetButton.js +15 -0
  408. package/map/components/toolbar/buttons/MapZoomInOutButtons.d.ts +17 -0
  409. package/map/components/toolbar/buttons/MapZoomInOutButtons.js +15 -0
  410. package/map/components/toolbar/buttons/MapZoomToFitButton.d.ts +20 -0
  411. package/map/components/toolbar/buttons/MapZoomToFitButton.js +15 -0
  412. package/map/components/toolbar/constants.d.ts +19 -0
  413. package/map/components/toolbar/constants.js +15 -0
  414. package/map/constants.d.ts +73 -0
  415. package/map/constants.js +15 -0
  416. package/map/contexts/a11y-toolbar-tab-index.context.d.ts +18 -0
  417. package/map/contexts/a11y-toolbar-tab-index.context.js +15 -0
  418. package/map/contexts/color-scale.context.d.ts +19 -0
  419. package/map/contexts/color-scale.context.js +15 -0
  420. package/map/contexts/layer-coloring-strategy.context.d.ts +2 -0
  421. package/map/contexts/layer-coloring-strategy.context.js +15 -0
  422. package/map/contexts/layer-ids.context.d.ts +17 -0
  423. package/map/contexts/layer-ids.context.js +15 -0
  424. package/map/contexts/map-configuration.context.d.ts +18 -0
  425. package/map/contexts/map-configuration.context.js +15 -0
  426. package/map/contexts/map-country-code.context.d.ts +17 -0
  427. package/map/contexts/map-country-code.context.js +15 -0
  428. package/map/contexts/map-data-bounding-box.context.d.ts +17 -0
  429. package/map/contexts/map-data-bounding-box.context.js +15 -0
  430. package/map/contexts/map-initial-view.context.d.ts +18 -0
  431. package/map/contexts/map-initial-view.context.js +15 -0
  432. package/map/contexts/map-raw-data.context.d.ts +17 -0
  433. package/map/contexts/map-raw-data.context.js +15 -0
  434. package/map/functions/__test__/fixtures/business-locations.d.ts +31 -0
  435. package/map/functions/__test__/fixtures/business-locations.js +15 -0
  436. package/map/functions/__test__/fixtures/connection-layer.d.ts +28 -0
  437. package/map/functions/__test__/fixtures/connection-layer.js +15 -0
  438. package/map/functions/__test__/fixtures/countries-stats.d.ts +31 -0
  439. package/map/functions/__test__/fixtures/countries-stats.js +15 -0
  440. package/map/functions/__test__/fixtures/csv-download-cases.d.ts +59 -0
  441. package/map/functions/__test__/fixtures/csv-download-cases.js +15 -0
  442. package/map/functions/__test__/fixtures/events-locations.d.ts +31 -0
  443. package/map/functions/__test__/fixtures/events-locations.js +15 -0
  444. package/map/functions/__test__/fixtures/facilities-locations.d.ts +40 -0
  445. package/map/functions/__test__/fixtures/facilities-locations.js +15 -0
  446. package/map/functions/__test__/fixtures/flight-connections.d.ts +26 -0
  447. package/map/functions/__test__/fixtures/flight-connections.js +15 -0
  448. package/map/functions/a11y-toolbar-controls.d.ts +22 -0
  449. package/map/functions/a11y-toolbar-controls.js +15 -0
  450. package/map/functions/attach-image-from-shape.d.ts +18 -0
  451. package/map/functions/attach-image-from-shape.js +15 -0
  452. package/map/functions/attach-image-from-string.d.ts +18 -0
  453. package/map/functions/attach-image-from-string.js +15 -0
  454. package/map/functions/attach-image-from-text.d.ts +17 -0
  455. package/map/functions/attach-image-from-text.js +15 -0
  456. package/map/functions/attach-image-to-map.d.ts +17 -0
  457. package/map/functions/attach-image-to-map.js +15 -0
  458. package/map/functions/build-and-download-csv.d.ts +6 -0
  459. package/map/functions/build-and-download-csv.js +15 -0
  460. package/map/functions/build-categorical-scale.d.ts +2 -0
  461. package/map/functions/build-categorical-scale.js +15 -0
  462. package/map/functions/build-scale-from-legend-config.d.ts +23 -0
  463. package/map/functions/build-scale-from-legend-config.js +15 -0
  464. package/map/functions/calculate-hovered-color.d.ts +1 -0
  465. package/map/functions/calculate-hovered-color.js +15 -0
  466. package/map/functions/create-bitmap-config-options.d.ts +16 -0
  467. package/map/functions/create-bitmap-config-options.js +15 -0
  468. package/map/functions/define-bearing.d.ts +17 -0
  469. package/map/functions/define-bearing.js +15 -0
  470. package/map/functions/define-color.d.ts +16 -0
  471. package/map/functions/define-color.js +15 -0
  472. package/map/functions/define-radius.d.ts +17 -0
  473. package/map/functions/define-radius.js +15 -0
  474. package/map/functions/extract-layers-data.d.ts +7 -0
  475. package/map/functions/extract-layers-data.js +15 -0
  476. package/map/functions/get-client-settings.d.ts +16 -0
  477. package/map/functions/get-client-settings.js +15 -0
  478. package/map/functions/get-color-from-token.d.ts +1 -0
  479. package/map/functions/get-color-from-token.js +15 -0
  480. package/map/functions/get-countries-geo-code.d.ts +16 -0
  481. package/map/functions/get-countries-geo-code.js +15 -0
  482. package/map/functions/get-data-layers-bounding-box.d.ts +17 -0
  483. package/map/functions/get-data-layers-bounding-box.js +15 -0
  484. package/map/functions/get-data-uri.d.ts +16 -0
  485. package/map/functions/get-data-uri.js +15 -0
  486. package/map/functions/get-map-states-template.d.ts +19 -0
  487. package/map/functions/get-map-states-template.js +15 -0
  488. package/map/functions/get-scaled-symbol-size.d.ts +17 -0
  489. package/map/functions/get-scaled-symbol-size.js +15 -0
  490. package/map/functions/get-tenant-country-code.d.ts +16 -0
  491. package/map/functions/get-tenant-country-code.js +15 -0
  492. package/map/functions/is-valid-shape.d.ts +18 -0
  493. package/map/functions/is-valid-shape.js +15 -0
  494. package/map/functions/iterate-config-slots.d.ts +23 -0
  495. package/map/functions/iterate-config-slots.js +15 -0
  496. package/map/functions/parse-dot-data-to-geo-json.d.ts +31 -0
  497. package/map/functions/parse-dot-data-to-geo-json.js +15 -0
  498. package/map/functions/parse-region-data-to-geo-json.d.ts +17 -0
  499. package/map/functions/parse-region-data-to-geo-json.js +15 -0
  500. package/map/functions/safe-reactdom-render.d.ts +22 -0
  501. package/map/functions/safe-reactdom-render.js +15 -0
  502. package/map/functions/set-layers-id.d.ts +25 -0
  503. package/map/functions/set-layers-id.js +15 -0
  504. package/map/functions/tabularize-layers-data.d.ts +27 -0
  505. package/map/functions/tabularize-layers-data.js +17 -0
  506. package/map/functions/to-mapbox-initial-view-state.d.ts +1 -0
  507. package/map/functions/to-mapbox-initial-view-state.js +15 -0
  508. package/map/functions/tooltip-type-guards.d.ts +32 -0
  509. package/map/functions/tooltip-type-guards.js +15 -0
  510. package/map/hooks/use-a11y-toolbar-tab-index.d.ts +22 -0
  511. package/map/hooks/use-a11y-toolbar-tab-index.js +15 -0
  512. package/map/hooks/use-active-interaction.d.ts +1 -0
  513. package/map/hooks/use-active-interaction.js +15 -0
  514. package/map/hooks/use-attach-image-from-icon.d.ts +18 -0
  515. package/map/hooks/use-attach-image-from-icon.js +15 -0
  516. package/map/hooks/use-attach-symbol-to-map.d.ts +18 -0
  517. package/map/hooks/use-attach-symbol-to-map.js +15 -0
  518. package/map/hooks/use-color-scale.d.ts +17 -0
  519. package/map/hooks/use-color-scale.js +15 -0
  520. package/map/hooks/use-connection-direction-interaction-highlighting.d.ts +1 -0
  521. package/map/hooks/use-connection-direction-interaction-highlighting.js +15 -0
  522. package/map/hooks/use-connection-interaction-highlighting.d.ts +1 -0
  523. package/map/hooks/use-connection-interaction-highlighting.js +15 -0
  524. package/map/hooks/use-data-bounding-box.d.ts +1 -0
  525. package/map/hooks/use-data-bounding-box.js +15 -0
  526. package/map/hooks/use-hover-interaction.d.ts +1 -0
  527. package/map/hooks/use-hover-interaction.js +15 -0
  528. package/map/hooks/use-initial-view-context.d.ts +1 -0
  529. package/map/hooks/use-initial-view-context.js +15 -0
  530. package/map/hooks/use-initial-view-state.d.ts +2 -0
  531. package/map/hooks/use-initial-view-state.js +15 -0
  532. package/map/hooks/use-layer-coloring-strategy.d.ts +1 -0
  533. package/map/hooks/use-layer-coloring-strategy.js +15 -0
  534. package/map/hooks/use-legend-interaction-highlighting.d.ts +5 -0
  535. package/map/hooks/use-legend-interaction-highlighting.js +15 -0
  536. package/map/hooks/use-legend-interaction-visibility.d.ts +5 -0
  537. package/map/hooks/use-legend-interaction-visibility.js +15 -0
  538. package/map/hooks/use-load-symbol-into-map.d.ts +21 -0
  539. package/map/hooks/use-load-symbol-into-map.js +15 -0
  540. package/map/hooks/use-map-config.d.ts +1 -0
  541. package/map/hooks/use-map-config.js +15 -0
  542. package/map/hooks/use-map-country-code.d.ts +1 -0
  543. package/map/hooks/use-map-country-code.js +15 -0
  544. package/map/hooks/use-map-raw-data.d.ts +1 -0
  545. package/map/hooks/use-map-raw-data.js +15 -0
  546. package/map/hooks/use-map-settings.d.ts +5 -0
  547. package/map/hooks/use-map-settings.js +15 -0
  548. package/map/hooks/use-map-source.d.ts +1 -0
  549. package/map/hooks/use-map-source.js +15 -0
  550. package/map/hooks/use-overlay-events.d.ts +24 -0
  551. package/map/hooks/use-overlay-events.js +15 -0
  552. package/map/hooks/use-resolve-color.d.ts +16 -0
  553. package/map/hooks/use-resolve-color.js +15 -0
  554. package/map/hooks/use-safe-svg-parser.d.ts +23 -0
  555. package/map/hooks/use-safe-svg-parser.js +15 -0
  556. package/map/hooks/use-tooltip-event-listeners.d.ts +16 -0
  557. package/map/hooks/use-tooltip-event-listeners.js +15 -0
  558. package/map/hooks/use-tooltip-template.d.ts +11 -0
  559. package/map/hooks/use-tooltip-template.js +15 -0
  560. package/map/hooks/useDefaultTooltipActions.d.ts +18 -0
  561. package/map/hooks/useDefaultTooltipActions.js +15 -0
  562. package/map/map-styles/default-style.d.ts +17 -0
  563. package/map/map-styles/default-style.js +15 -0
  564. package/map/providers/color-scale.provider.d.ts +15 -0
  565. package/map/providers/color-scale.provider.js +15 -0
  566. package/map/providers/layer-color-strategy.provider.d.ts +30 -0
  567. package/map/providers/layer-color-strategy.provider.js +15 -0
  568. package/map/providers/map-initial-view.provider.d.ts +28 -0
  569. package/map/providers/map-initial-view.provider.js +15 -0
  570. package/map/shapes/circle.d.ts +16 -0
  571. package/map/shapes/circle.js +32 -0
  572. package/map/shapes/cross.d.ts +16 -0
  573. package/map/shapes/cross.js +27 -0
  574. package/map/shapes/diamond.d.ts +16 -0
  575. package/map/shapes/diamond.js +20 -0
  576. package/map/shapes/heart.d.ts +16 -0
  577. package/map/shapes/heart.js +27 -0
  578. package/map/shapes/pin.d.ts +16 -0
  579. package/map/shapes/pin.js +21 -0
  580. package/map/shapes/shape-picker.d.ts +2 -0
  581. package/map/shapes/shape-picker.js +15 -0
  582. package/map/shapes/square.d.ts +16 -0
  583. package/map/shapes/square.js +18 -0
  584. package/map/shapes/star.d.ts +16 -0
  585. package/map/shapes/star.js +32 -0
  586. package/map/shapes/triangle.d.ts +16 -0
  587. package/map/shapes/triangle.js +27 -0
  588. package/map/slots/BubbleLayer.d.ts +31 -0
  589. package/map/slots/BubbleLayer.js +15 -0
  590. package/map/slots/BubbleLayerTooltip.d.ts +22 -0
  591. package/map/slots/BubbleLayerTooltip.js +15 -0
  592. package/map/slots/CategoricalLegend.d.ts +21 -0
  593. package/map/slots/CategoricalLegend.js +15 -0
  594. package/map/slots/ChartInteractions.d.ts +31 -0
  595. package/map/slots/ChartInteractions.js +15 -0
  596. package/map/slots/ChoroplethLayer.d.ts +31 -0
  597. package/map/slots/ChoroplethLayer.js +15 -0
  598. package/map/slots/ChoroplethLayerTooltip.d.ts +20 -0
  599. package/map/slots/ChoroplethLayerTooltip.js +15 -0
  600. package/map/slots/ConnectionLayer.d.ts +32 -0
  601. package/map/slots/ConnectionLayer.js +15 -0
  602. package/map/slots/ConnectionLayerTooltip.d.ts +21 -0
  603. package/map/slots/ConnectionLayerTooltip.js +15 -0
  604. package/map/slots/DotLayer.d.ts +33 -0
  605. package/map/slots/DotLayer.js +15 -0
  606. package/map/slots/DotLayerTooltip.d.ts +22 -0
  607. package/map/slots/DotLayerTooltip.js +15 -0
  608. package/map/slots/SequentialLegend.d.ts +21 -0
  609. package/map/slots/SequentialLegend.js +15 -0
  610. package/map/slots/ThresholdLegend.d.ts +21 -0
  611. package/map/slots/ThresholdLegend.js +15 -0
  612. package/map/slots/Tooltip.d.ts +29 -0
  613. package/map/slots/Tooltip.js +15 -0
  614. package/map/slots/Zoom.d.ts +22 -0
  615. package/map/slots/Zoom.js +15 -0
  616. package/map/slots/ZoomToFit.d.ts +22 -0
  617. package/map/slots/ZoomToFit.js +15 -0
  618. package/map/slots/states/DisabledState.d.ts +29 -0
  619. package/map/slots/states/DisabledState.js +15 -0
  620. package/map/slots/states/ErrorStateSlot.d.ts +20 -0
  621. package/map/slots/states/ErrorStateSlot.js +15 -0
  622. package/map/sources/CN.d.ts +16 -0
  623. package/map/sources/CN.js +15 -0
  624. package/map/sources/IL.d.ts +16 -0
  625. package/map/sources/IL.js +15 -0
  626. package/map/sources/IN.d.ts +16 -0
  627. package/map/sources/IN.js +15 -0
  628. package/map/sources/countries.d.ts +41 -0
  629. package/map/sources/countries.js +15 -0
  630. package/map/store/map-store.context.d.ts +20 -0
  631. package/map/store/map-store.context.js +15 -0
  632. package/map/store/map-store.provider.d.ts +17 -0
  633. package/map/store/map-store.provider.js +15 -0
  634. package/map/store/selectors.d.ts +30 -0
  635. package/map/store/selectors.js +15 -0
  636. package/map/store/store.d.ts +7 -0
  637. package/map/store/store.js +15 -0
  638. package/map/styles/react-mapgl-styles.css +671 -0
  639. package/map/types/bubble-layer.d.ts +85 -0
  640. package/map/types/bubble-layer.js +15 -0
  641. package/map/types/choropleth-layer.d.ts +40 -0
  642. package/map/types/choropleth-layer.js +15 -0
  643. package/map/types/coloring.d.ts +46 -0
  644. package/map/types/coloring.js +15 -0
  645. package/map/types/configuration.d.ts +25 -0
  646. package/map/types/configuration.js +15 -0
  647. package/map/types/connection-layer.d.ts +77 -0
  648. package/map/types/connection-layer.js +15 -0
  649. package/map/types/dot-layer.d.ts +62 -0
  650. package/map/types/dot-layer.js +15 -0
  651. package/map/types/legend.d.ts +85 -0
  652. package/map/types/legend.js +15 -0
  653. package/map/types/location.d.ts +22 -0
  654. package/map/types/location.js +15 -0
  655. package/map/types/map-view.d.ts +97 -0
  656. package/map/types/map-view.js +15 -0
  657. package/map/types/shapes.d.ts +18 -0
  658. package/map/types/shapes.js +15 -0
  659. package/map/types/state.d.ts +39 -0
  660. package/map/types/state.js +15 -0
  661. package/map/types/toolbar.d.ts +47 -0
  662. package/map/types/toolbar.js +15 -0
  663. package/map/types/tooltip.d.ts +77 -0
  664. package/map/types/tooltip.js +15 -0
  665. package/package.json +59 -0
@@ -0,0 +1,16 @@
1
+ /**
2
+ * @license
3
+ * Copyright 2023 Dynatrace LLC
4
+ * Licensed under the Apache License, Version 2.0 (the "License");
5
+ * you may not use this file except in compliance with the License.
6
+ * You may obtain a copy of the License at
7
+ *
8
+ * http://www.apache.org/licenses/LICENSE-2.0
9
+ *
10
+ * Unless required by applicable law or agreed to in writing, software
11
+ * distributed under the License is distributed on an "AS IS" BASIS,
12
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
+ * See the License for the specific language governing permissions and
14
+ * limitations under the License.
15
+ */import{_getCanvasColor as p}from"@dynatrace/strato-components-preview/charts";import{calculateHoveredColor as l}from"./calculate-hovered-color.js";import{defineBearing as c}from"./define-bearing.js";import{defineColor as C}from"./define-color.js";const T=(r,t,n)=>({type:"FeatureCollection",features:r.map(o=>{const{longitude:i,latitude:a,...m}=o,e=p(C(t,o)),s=l(e);return{type:"Feature",properties:{...m,__color:e,__hoveredColor:s,__bearing:c(n,o)},geometry:{type:"Point",coordinates:[i,a]}}})});export{T as parseDotDataToGeoJSON};
16
+ //# sourceMappingURL=parse-dot-data-to-geo-json.js.map
@@ -0,0 +1,7 @@
1
+ {
2
+ "version": 3,
3
+ "sources": ["../../../../src/map/functions/parse-dot-data-to-geo-json.ts"],
4
+ "sourcesContent": ["/**\n * @license\n * Copyright 2023 Dynatrace LLC\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nimport { _getCanvasColor as getCanvasColor } from '@dynatrace/strato-components-preview/charts';\n\nimport { calculateHoveredColor } from './calculate-hovered-color.js';\nimport { defineBearing } from './define-bearing.js';\nimport { defineColor } from './define-color.js';\nimport { Location } from '../types/location.js';\n\nexport const parseDotDataToGeoJSON = <T extends Location>(\n data: T[],\n color: string | ((item: T) => string),\n bearing: number | ((item: T) => number),\n) => {\n return {\n type: 'FeatureCollection',\n features: data.map((feature) => {\n const { longitude, latitude, ...properties } = feature;\n const canvasColor = getCanvasColor(defineColor(color, feature));\n const hoveredColor = calculateHoveredColor(canvasColor);\n\n return {\n type: 'Feature',\n properties: {\n ...properties,\n __color: canvasColor,\n __hoveredColor: hoveredColor,\n __bearing: defineBearing(bearing, feature),\n },\n geometry: { type: 'Point', coordinates: [longitude, latitude] },\n };\n }),\n };\n};\n"],
5
+ "mappings": "AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,GAgBA,OAAS,mBAAmBA,MAAsB,8CAElD,OAAS,yBAAAC,MAA6B,+BACtC,OAAS,iBAAAC,MAAqB,sBAC9B,OAAS,eAAAC,MAAmB,oBAGrB,MAAMC,EAAwB,CACnCC,EACAC,EACAC,KAEO,CACL,KAAM,oBACN,SAAUF,EAAK,IAAKG,GAAY,CAC9B,KAAM,CAAE,UAAAC,EAAW,SAAAC,EAAU,GAAGC,CAAW,EAAIH,EACzCI,EAAcZ,EAAeG,EAAYG,EAAOE,CAAO,CAAC,EACxDK,EAAeZ,EAAsBW,CAAW,EAEtD,MAAO,CACL,KAAM,UACN,WAAY,CACV,GAAGD,EACH,QAASC,EACT,eAAgBC,EAChB,UAAWX,EAAcK,EAASC,CAAO,CAC3C,EACA,SAAU,CAAE,KAAM,QAAS,YAAa,CAACC,EAAWC,CAAQ,CAAE,CAChE,CACF,CAAC,CACH",
6
+ "names": ["getCanvasColor", "calculateHoveredColor", "defineBearing", "defineColor", "parseDotDataToGeoJSON", "data", "color", "bearing", "feature", "longitude", "latitude", "properties", "canvasColor", "hoveredColor"]
7
+ }
@@ -0,0 +1,16 @@
1
+ /**
2
+ * @license
3
+ * Copyright 2023 Dynatrace LLC
4
+ * Licensed under the Apache License, Version 2.0 (the "License");
5
+ * you may not use this file except in compliance with the License.
6
+ * You may obtain a copy of the License at
7
+ *
8
+ * http://www.apache.org/licenses/LICENSE-2.0
9
+ *
10
+ * Unless required by applicable law or agreed to in writing, software
11
+ * distributed under the License is distributed on an "AS IS" BASIS,
12
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
+ * See the License for the specific language governing permissions and
14
+ * limitations under the License.
15
+ */import{_getCanvasColor as d}from"@dynatrace/strato-components-preview/charts";import{_accessValue as C}from"@dynatrace/strato-components-preview/core";import{calculateHoveredColor as g}from"./calculate-hovered-color.js";import{defineColor as m}from"./define-color.js";const J=(i,l,o,c,T)=>({type:"FeatureCollection",features:l.reduce((s,e)=>{let t="";typeof o=="function"?t=o(e):t=C(e,o);const r=i.features.find(n=>n.id===t);if(r!==void 0){const n=m(c,e),a=d(n),u=g(a),{n:f}=r.properties,p={...r,properties:{name:f,...e,__color:a,__hoveredColor:u}};s.push(p)}return s},[])});export{J as parseRegionDataToGeoJSON};
16
+ //# sourceMappingURL=parse-region-data-to-geo-json.js.map
@@ -0,0 +1,7 @@
1
+ {
2
+ "version": 3,
3
+ "sources": ["../../../../src/map/functions/parse-region-data-to-geo-json.ts"],
4
+ "sourcesContent": ["/**\n * @license\n * Copyright 2023 Dynatrace LLC\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nimport { _getCanvasColor as getCanvasColor } from '@dynatrace/strato-components-preview/charts';\nimport {\n _accessValue as accessValue,\n ThemeOptions,\n} from '@dynatrace/strato-components-preview/core';\n\nimport { calculateHoveredColor } from './calculate-hovered-color.js';\nimport { defineColor } from './define-color.js';\n\nexport const parseRegionDataToGeoJSON = <T extends Record<string, unknown>>(\n mapSource: GeoJSON.FeatureCollection,\n data: T[],\n regionAccessor: string | ((i: T) => string),\n color: string | ((i: T) => string),\n theme: ThemeOptions,\n): GeoJSON.FeatureCollection => {\n const features = data.reduce((features: GeoJSON.Feature[], item) => {\n let id: string | undefined = '';\n\n if (typeof regionAccessor === 'function') {\n id = regionAccessor(item);\n } else {\n id = accessValue<string>(item, regionAccessor);\n }\n\n const feature = mapSource.features.find((region) => region.id === id);\n if (feature !== undefined) {\n const regionColor = defineColor(color, item);\n const canvasColor = getCanvasColor(regionColor);\n const hoveredColor = calculateHoveredColor(canvasColor);\n const { n: name } = feature.properties as { n: string };\n const feat = {\n ...feature,\n properties: {\n name,\n ...item,\n __color: canvasColor,\n __hoveredColor: hoveredColor,\n },\n };\n\n features.push(feat);\n }\n\n return features;\n }, []);\n\n return {\n type: 'FeatureCollection',\n features,\n };\n};\n"],
5
+ "mappings": "AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,GAgBA,OAAS,mBAAmBA,MAAsB,8CAClD,OACE,gBAAgBC,MAEX,4CAEP,OAAS,yBAAAC,MAA6B,+BACtC,OAAS,eAAAC,MAAmB,oBAErB,MAAMC,EAA2B,CACtCC,EACAC,EACAC,EACAC,EACAC,KAiCO,CACL,KAAM,oBACN,SAjCeH,EAAK,OAAO,CAACI,EAA6BC,IAAS,CAClE,IAAIC,EAAyB,GAEzB,OAAOL,GAAmB,WAC5BK,EAAKL,EAAeI,CAAI,EAExBC,EAAKX,EAAoBU,EAAMJ,CAAc,EAG/C,MAAMM,EAAUR,EAAU,SAAS,KAAMS,GAAWA,EAAO,KAAOF,CAAE,EACpE,GAAIC,IAAY,OAAW,CACzB,MAAME,EAAcZ,EAAYK,EAAOG,CAAI,EACrCK,EAAchB,EAAee,CAAW,EACxCE,EAAef,EAAsBc,CAAW,EAChD,CAAE,EAAGE,CAAK,EAAIL,EAAQ,WACtBM,EAAO,CACX,GAAGN,EACH,WAAY,CACV,KAAAK,EACA,GAAGP,EACH,QAASK,EACT,eAAgBC,CAClB,CACF,EAEAP,EAAS,KAAKS,CAAI,CACpB,CAEA,OAAOT,CACT,EAAG,CAAC,CAAC,CAKL",
6
+ "names": ["getCanvasColor", "accessValue", "calculateHoveredColor", "defineColor", "parseRegionDataToGeoJSON", "mapSource", "data", "regionAccessor", "color", "theme", "features", "item", "id", "feature", "region", "regionColor", "canvasColor", "hoveredColor", "name", "feat"]
7
+ }
@@ -0,0 +1,16 @@
1
+ /**
2
+ * @license
3
+ * Copyright 2023 Dynatrace LLC
4
+ * Licensed under the Apache License, Version 2.0 (the "License");
5
+ * you may not use this file except in compliance with the License.
6
+ * You may obtain a copy of the License at
7
+ *
8
+ * http://www.apache.org/licenses/LICENSE-2.0
9
+ *
10
+ * Unless required by applicable law or agreed to in writing, software
11
+ * distributed under the License is distributed on an "AS IS" BASIS,
12
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
+ * See the License for the specific language governing permissions and
14
+ * limitations under the License.
15
+ */let t,o;import("react-dom/client").then(e=>{o=e}).catch(()=>import("react-dom")).then(e=>{t=e});function c(e,r){o&&o.createRoot?o.createRoot(r).render(e):t&&t.render&&t.render(e,r)}export{c as safeReactDomRender};
16
+ //# sourceMappingURL=safe-reactdom-render.js.map
@@ -0,0 +1,7 @@
1
+ {
2
+ "version": 3,
3
+ "sources": ["../../../../src/map/functions/safe-reactdom-render.ts"],
4
+ "sourcesContent": ["/**\n * @license\n * Copyright 2023 Dynatrace LLC\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\n// eslint-disable-next-line @typescript-eslint/no-explicit-any\nlet ReactDOM17: any;\n// eslint-disable-next-line @typescript-eslint/no-explicit-any\nlet ReactDOMClient: any;\n\nimport('react-dom/client')\n .then((module) => {\n ReactDOMClient = module;\n })\n .catch(() => import('react-dom'))\n .then((module) => {\n ReactDOM17 = module;\n });\n\n/**\n * @internal\n * @param component -\n * @param element -\n */\nexport function safeReactDomRender(\n component: React.ReactNode,\n element: Element,\n): void {\n if (ReactDOMClient && ReactDOMClient.createRoot) {\n const root = ReactDOMClient.createRoot(element);\n root.render(component);\n } else if (ReactDOM17 && ReactDOM17.render) {\n ReactDOM17.render(component, element);\n }\n}\n"],
5
+ "mappings": "AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,GAiBA,IAAIA,EAEAC,EAEJ,OAAO,kBAAkB,EACtB,KAAMC,GAAW,CAChBD,EAAiBC,CACnB,CAAC,EACA,MAAM,IAAM,OAAO,WAAW,CAAC,EAC/B,KAAMA,GAAW,CAChBF,EAAaE,CACf,CAAC,EAOI,SAASC,EACdC,EACAC,EACM,CACFJ,GAAkBA,EAAe,WACtBA,EAAe,WAAWI,CAAO,EACzC,OAAOD,CAAS,EACZJ,GAAcA,EAAW,QAClCA,EAAW,OAAOI,EAAWC,CAAO,CAExC",
6
+ "names": ["ReactDOM17", "ReactDOMClient", "module", "safeReactDomRender", "component", "element"]
7
+ }
@@ -0,0 +1,16 @@
1
+ /**
2
+ * @license
3
+ * Copyright 2023 Dynatrace LLC
4
+ * Licensed under the Apache License, Version 2.0 (the "License");
5
+ * you may not use this file except in compliance with the License.
6
+ * You may obtain a copy of the License at
7
+ *
8
+ * http://www.apache.org/licenses/LICENSE-2.0
9
+ *
10
+ * Unless required by applicable law or agreed to in writing, software
11
+ * distributed under the License is distributed on an "AS IS" BASIS,
12
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
+ * See the License for the specific language governing permissions and
14
+ * limitations under the License.
15
+ */import l from"react";import{isElement as f}from"react-is";import{BubbleLayer as L}from"../components/BubbleLayer/BubbleLayer.js";import{ChoroplethLayer as C}from"../components/ChoroplethLayer.js";import{ConnectionLayer as u}from"../components/ConnectionLayer/ConnectionLayer.js";import{DotLayer as b}from"../components/DotLayer/DotLayer.js";import{BubbleLayer as a}from"../slots/BubbleLayer.js";import{ChoroplethLayer as p}from"../slots/ChoroplethLayer.js";import{ConnectionLayer as s}from"../slots/ConnectionLayer.js";import{DotLayer as m}from"../slots/DotLayer.js";const h=new WeakMap([[a,{component:L,prefix:"bubble"}],[m,{component:b,prefix:"dot"}],[p,{component:C,prefix:"choropleth"}],[s,{component:u,prefix:"connection"}]]),k=c=>{const r=[];let o=0;const i=l.Children.map(c,e=>{if(f(e))switch(e.type){case a:case s:case p:case m:{const t=h.get(e.type),n=`${t?.prefix}-${o}`;o+=1,r.push(n);const y={...e.props,layerId:n};return{...e,props:y,type:t?.component}}default:return e}return e});return{layerIds:r,parsedChildren:i}};export{k as setLayersId};
16
+ //# sourceMappingURL=set-layers-id.js.map
@@ -0,0 +1,7 @@
1
+ {
2
+ "version": 3,
3
+ "sources": ["../../../../src/map/functions/set-layers-id.ts"],
4
+ "sourcesContent": ["/**\n * @license\n * Copyright 2023 Dynatrace LLC\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\nimport React from 'react';\nimport { isElement } from 'react-is';\n\nimport { BubbleLayer as _BubbleLayer } from '../components/BubbleLayer/BubbleLayer.js';\nimport { ChoroplethLayer as _ChoroplethLayer } from '../components/ChoroplethLayer.js';\nimport { ConnectionLayer as _ConnectionLayer } from '../components/ConnectionLayer/ConnectionLayer.js';\nimport { DotLayer as _DotLayer } from '../components/DotLayer/DotLayer.js';\nimport { BubbleLayer } from '../slots/BubbleLayer.js';\nimport { ChoroplethLayer } from '../slots/ChoroplethLayer.js';\nimport { ConnectionLayer } from '../slots/ConnectionLayer.js';\nimport { DotLayer } from '../slots/DotLayer.js';\nimport { InternalBubbleLayerProps } from '../types/bubble-layer.js';\nimport { InternalChoroplethLayerProps } from '../types/choropleth-layer.js';\nimport { InternalConnectionLayerProps } from '../types/connection-layer.js';\nimport { InternalDotLayerProps } from '../types/dot-layer.js';\n\nconst layers = new WeakMap<\n React.JSXElementConstructor<never>,\n { prefix: string; component: React.JSXElementConstructor<never> }\n>([\n [BubbleLayer, { component: _BubbleLayer, prefix: 'bubble' }],\n [DotLayer, { component: _DotLayer, prefix: 'dot' }],\n [ChoroplethLayer, { component: _ChoroplethLayer, prefix: 'choropleth' }],\n [ConnectionLayer, { component: _ConnectionLayer, prefix: 'connection' }],\n]);\n\n/**\n * Set layers id to layer slots provided by the consumer.\n * @param children - MapView children\n * @returns An array with all the layers IDs and the children using the layer component\n */\nexport const setLayersId = (children: React.ReactNode) => {\n const layerIds: string[] = [];\n let index = 0;\n\n const parsedChildren = React.Children.map(children, (child) => {\n if (isElement(child)) {\n switch (child.type) {\n case BubbleLayer:\n case ConnectionLayer:\n case ChoroplethLayer:\n case DotLayer: {\n const layer = layers.get(child.type);\n\n const layerId = `${layer?.prefix}-${index}`;\n index += 1;\n\n layerIds.push(layerId);\n\n const newProps: React.PropsWithChildren<\n | InternalBubbleLayerProps<never>\n | InternalConnectionLayerProps<never>\n | InternalDotLayerProps<never>\n | InternalChoroplethLayerProps<never>\n > = {\n ...child.props,\n layerId,\n };\n\n return {\n ...child,\n props: newProps,\n type: layer?.component,\n };\n }\n default: {\n return child;\n }\n }\n }\n\n return child;\n }) as React.ReactNode;\n\n return { layerIds, parsedChildren };\n};\n"],
5
+ "mappings": "AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,GAeA,OAAOA,MAAW,QAClB,OAAS,aAAAC,MAAiB,WAE1B,OAAS,eAAeC,MAAoB,2CAC5C,OAAS,mBAAmBC,MAAwB,mCACpD,OAAS,mBAAmBC,MAAwB,mDACpD,OAAS,YAAYC,MAAiB,qCACtC,OAAS,eAAAC,MAAmB,0BAC5B,OAAS,mBAAAC,MAAuB,8BAChC,OAAS,mBAAAC,MAAuB,8BAChC,OAAS,YAAAC,MAAgB,uBAMzB,MAAMC,EAAS,IAAI,QAGjB,CACA,CAACJ,EAAa,CAAE,UAAWJ,EAAc,OAAQ,QAAS,CAAC,EAC3D,CAACO,EAAU,CAAE,UAAWJ,EAAW,OAAQ,KAAM,CAAC,EAClD,CAACE,EAAiB,CAAE,UAAWJ,EAAkB,OAAQ,YAAa,CAAC,EACvE,CAACK,EAAiB,CAAE,UAAWJ,EAAkB,OAAQ,YAAa,CAAC,CACzE,CAAC,EAOYO,EAAeC,GAA8B,CACxD,MAAMC,EAAqB,CAAC,EAC5B,IAAIC,EAAQ,EAEZ,MAAMC,EAAiBf,EAAM,SAAS,IAAIY,EAAWI,GAAU,CAC7D,GAAIf,EAAUe,CAAK,EACjB,OAAQA,EAAM,KAAM,CAClB,KAAKV,EACL,KAAKE,EACL,KAAKD,EACL,KAAKE,EAAU,CACb,MAAMQ,EAAQP,EAAO,IAAIM,EAAM,IAAI,EAE7BE,EAAU,GAAGD,GAAO,MAAM,IAAIH,CAAK,GACzCA,GAAS,EAETD,EAAS,KAAKK,CAAO,EAErB,MAAMC,EAKF,CACF,GAAGH,EAAM,MACT,QAAAE,CACF,EAEA,MAAO,CACL,GAAGF,EACH,MAAOG,EACP,KAAMF,GAAO,SACf,CACF,CACA,QACE,OAAOD,CAEX,CAGF,OAAOA,CACT,CAAC,EAED,MAAO,CAAE,SAAAH,EAAU,eAAAE,CAAe,CACpC",
6
+ "names": ["React", "isElement", "_BubbleLayer", "_ChoroplethLayer", "_ConnectionLayer", "_DotLayer", "BubbleLayer", "ChoroplethLayer", "ConnectionLayer", "DotLayer", "layers", "setLayersId", "children", "layerIds", "index", "parsedChildren", "child", "layer", "layerId", "newProps"]
7
+ }
@@ -0,0 +1,18 @@
1
+ /**
2
+ * @license
3
+ * Copyright 2023 Dynatrace LLC
4
+ * Licensed under the Apache License, Version 2.0 (the "License");
5
+ * you may not use this file except in compliance with the License.
6
+ * You may obtain a copy of the License at
7
+ *
8
+ * http://www.apache.org/licenses/LICENSE-2.0
9
+ *
10
+ * Unless required by applicable law or agreed to in writing, software
11
+ * distributed under the License is distributed on an "AS IS" BASIS,
12
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
+ * See the License for the specific language governing permissions and
14
+ * limitations under the License.
15
+ */import{isObject as d,isUndefined as f}from"lodash-es";import{_accessValue as g}from"@dynatrace/strato-components-preview/core";const m=2,p=e=>new Map([...e].map((n,t)=>[n,t])),l=(e,n="",t=0)=>{let s=[];if(t<=m)for(let r=0;r<e.length;r++)for(const[c,o]of Object.entries(e[r])){const u=[n,c].filter(a=>a).join(".");if(!d(o))s.push(u);else if(!Array.isArray(o)){const a=l([o],u,t+1);s=s.concat(a)}}return s},H=e=>{const n=l(e),t=new Set(n),r=["layer-name","latitude","longitude"].reduce((c,o)=>(t.has(o)&&c.push(o),c),[]);return new Set([...r,...n])},j=e=>{let n="";if(e.length>0){const t=H(e);n+=`${[...t].join(",")}
16
+ `;const s=t.size,r=p(t);for(const c of e){const o=[];o.length=s;for(const[u,a]of r){let i=g(c,u);f(i)||(typeof i=="string"&&i.includes(",")&&(i=`"${i}"`),o[a]=i)}n+=`${o.join(",")}
17
+ `}}return n};export{H as getColumnHeaders,j as tabularizeLayersData};
18
+ //# sourceMappingURL=tabularize-layers-data.js.map
@@ -0,0 +1,7 @@
1
+ {
2
+ "version": 3,
3
+ "sources": ["../../../../src/map/functions/tabularize-layers-data.ts"],
4
+ "sourcesContent": ["/**\n * @license\n * Copyright 2023 Dynatrace LLC\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nimport { isObject, isUndefined } from 'lodash-es';\n\nimport { _accessValue as accessValue } from '@dynatrace/strato-components-preview/core';\n\nconst NESTED_LEVELS_SUPPORTED = 2;\n\nconst buildColumnsHeadersMapping = (columns: Set<string>) =>\n new Map([...columns].map((value, index) => [value, index]));\n\nconst getObjectHeaders = (\n data: Record<string, unknown>[],\n objectKey = '',\n nestingLevel = 0,\n) => {\n let columnHeaders: string[] = [];\n\n if (nestingLevel <= NESTED_LEVELS_SUPPORTED) {\n for (let i = 0; i < data.length; i++) {\n for (const [key, value] of Object.entries(data[i])) {\n const objectPath = [objectKey, key].filter((a) => a).join('.');\n if (!isObject(value)) {\n columnHeaders.push(objectPath);\n } else if (!Array.isArray(value)) {\n const headers = getObjectHeaders(\n [value as Record<string, unknown>],\n objectPath,\n nestingLevel + 1,\n );\n columnHeaders = columnHeaders.concat(headers);\n }\n }\n }\n }\n return columnHeaders;\n};\n\n/**\n * Returns a set of object keys as column headers\n *\n * @param data - layers data\n */\nexport const getColumnHeaders = (\n data: Record<string, unknown>[],\n): Set<string> => {\n const objectColumnHeaders = getObjectHeaders(data);\n const columnHeadersSet = new Set(objectColumnHeaders);\n const sortedHeaders = ['layer-name', 'latitude', 'longitude'];\n const startingHeaders = sortedHeaders.reduce(\n (headersList: string[], column) => {\n if (columnHeadersSet.has(column)) {\n headersList.push(column);\n }\n return headersList;\n },\n [],\n );\n\n return new Set([...startingHeaders, ...objectColumnHeaders]);\n};\n\n/**\n * Creates a tabular representation of the layer's data\n *\n * @param data - layers data\n */\nexport const tabularizeLayersData = (data: Record<string, unknown>[]) => {\n let csv = '';\n\n if (data.length > 0) {\n const columnHeaders = getColumnHeaders(data);\n csv += `${[...columnHeaders].join(',')}\\n`;\n\n const columnCount = columnHeaders.size;\n const headersMapping = buildColumnsHeadersMapping(columnHeaders);\n\n for (const datum of data) {\n const row: unknown[] = [];\n row.length = columnCount;\n for (const [column, index] of headersMapping) {\n let value = accessValue(datum, column);\n if (!isUndefined(value)) {\n if (typeof value === 'string' && value.includes(',')) {\n value = `\"${value}\"`;\n }\n row[index] = value;\n }\n }\n csv += `${row.join(',')}\\n`;\n }\n }\n\n return csv;\n};\n"],
5
+ "mappings": "AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,GAgBA,OAAS,YAAAA,EAAU,eAAAC,MAAmB,YAEtC,OAAS,gBAAgBC,MAAmB,4CAE5C,MAAMC,EAA0B,EAE1BC,EAA8BC,GAClC,IAAI,IAAI,CAAC,GAAGA,CAAO,EAAE,IAAI,CAACC,EAAOC,IAAU,CAACD,EAAOC,CAAK,CAAC,CAAC,EAEtDC,EAAmB,CACvBC,EACAC,EAAY,GACZC,EAAe,IACZ,CACH,IAAIC,EAA0B,CAAC,EAE/B,GAAID,GAAgBR,EAClB,QAASU,EAAI,EAAGA,EAAIJ,EAAK,OAAQI,IAC/B,SAAW,CAACC,EAAKR,CAAK,IAAK,OAAO,QAAQG,EAAKI,CAAC,CAAC,EAAG,CAClD,MAAME,EAAa,CAACL,EAAWI,CAAG,EAAE,OAAQ,GAAM,CAAC,EAAE,KAAK,GAAG,EAC7D,GAAI,CAACd,EAASM,CAAK,EACjBM,EAAc,KAAKG,CAAU,UACpB,CAAC,MAAM,QAAQT,CAAK,EAAG,CAChC,MAAMU,EAAUR,EACd,CAACF,CAAgC,EACjCS,EACAJ,EAAe,CACjB,EACAC,EAAgBA,EAAc,OAAOI,CAAO,CAC9C,CACF,CAGJ,OAAOJ,CACT,EAOaK,EACXR,GACgB,CAChB,MAAMS,EAAsBV,EAAiBC,CAAI,EAC3CU,EAAmB,IAAI,IAAID,CAAmB,EAE9CE,EADgB,CAAC,aAAc,WAAY,WAAW,EACtB,OACpC,CAACC,EAAuBC,KAClBH,EAAiB,IAAIG,CAAM,GAC7BD,EAAY,KAAKC,CAAM,EAElBD,GAET,CAAC,CACH,EAEA,OAAO,IAAI,IAAI,CAAC,GAAGD,EAAiB,GAAGF,CAAmB,CAAC,CAC7D,EAOaK,EAAwBd,GAAoC,CACvE,IAAIe,EAAM,GAEV,GAAIf,EAAK,OAAS,EAAG,CACnB,MAAMG,EAAgBK,EAAiBR,CAAI,EAC3Ce,GAAO,GAAG,CAAC,GAAGZ,CAAa,EAAE,KAAK,GAAG,CAAC;AAAA,EAEtC,MAAMa,EAAcb,EAAc,KAC5Bc,EAAiBtB,EAA2BQ,CAAa,EAE/D,UAAWe,KAASlB,EAAM,CACxB,MAAMmB,EAAiB,CAAC,EACxBA,EAAI,OAASH,EACb,SAAW,CAACH,EAAQf,CAAK,IAAKmB,EAAgB,CAC5C,IAAIpB,EAAQJ,EAAYyB,EAAOL,CAAM,EAChCrB,EAAYK,CAAK,IAChB,OAAOA,GAAU,UAAYA,EAAM,SAAS,GAAG,IACjDA,EAAQ,IAAIA,CAAK,KAEnBsB,EAAIrB,CAAK,EAAID,EAEjB,CACAkB,GAAO,GAAGI,EAAI,KAAK,GAAG,CAAC;AAAA,CACzB,CACF,CAEA,OAAOJ,CACT",
6
+ "names": ["isObject", "isUndefined", "accessValue", "NESTED_LEVELS_SUPPORTED", "buildColumnsHeadersMapping", "columns", "value", "index", "getObjectHeaders", "data", "objectKey", "nestingLevel", "columnHeaders", "i", "key", "objectPath", "headers", "getColumnHeaders", "objectColumnHeaders", "columnHeadersSet", "startingHeaders", "headersList", "column", "tabularizeLayersData", "csv", "columnCount", "headersMapping", "datum", "row"]
7
+ }
@@ -0,0 +1,16 @@
1
+ /**
2
+ * @license
3
+ * Copyright 2023 Dynatrace LLC
4
+ * Licensed under the Apache License, Version 2.0 (the "License");
5
+ * you may not use this file except in compliance with the License.
6
+ * You may obtain a copy of the License at
7
+ *
8
+ * http://www.apache.org/licenses/LICENSE-2.0
9
+ *
10
+ * Unless required by applicable law or agreed to in writing, software
11
+ * distributed under the License is distributed on an "AS IS" BASIS,
12
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
+ * See the License for the specific language governing permissions and
14
+ * limitations under the License.
15
+ */import{isArray as r}from"lodash-es";import{FIT_BOUNDS_OPTIONS as p}from"../constants.js";const t=o=>r(o)?{bounds:o,fitBoundsOptions:p}:o;export{t as toMapBoxInitialViewState};
16
+ //# sourceMappingURL=to-mapbox-initial-view-state.js.map
@@ -0,0 +1,7 @@
1
+ {
2
+ "version": 3,
3
+ "sources": ["../../../../src/map/functions/to-mapbox-initial-view-state.ts"],
4
+ "sourcesContent": ["/**\n * @license\n * Copyright 2023 Dynatrace LLC\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\nimport { isArray } from 'lodash-es';\n\nimport { FIT_BOUNDS_OPTIONS } from '../constants.js';\n\nexport const toMapBoxInitialViewState = (initialViewState) =>\n isArray(initialViewState)\n ? { bounds: initialViewState, fitBoundsOptions: FIT_BOUNDS_OPTIONS }\n : initialViewState;\n"],
5
+ "mappings": "AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,GAeA,OAAS,WAAAA,MAAe,YAExB,OAAS,sBAAAC,MAA0B,kBAE5B,MAAMC,EAA4BC,GACvCH,EAAQG,CAAgB,EACpB,CAAE,OAAQA,EAAkB,iBAAkBF,CAAmB,EACjEE",
6
+ "names": ["isArray", "FIT_BOUNDS_OPTIONS", "toMapBoxInitialViewState", "initialViewState"]
7
+ }
@@ -0,0 +1,16 @@
1
+ /**
2
+ * @license
3
+ * Copyright 2023 Dynatrace LLC
4
+ * Licensed under the Apache License, Version 2.0 (the "License");
5
+ * you may not use this file except in compliance with the License.
6
+ * You may obtain a copy of the License at
7
+ *
8
+ * http://www.apache.org/licenses/LICENSE-2.0
9
+ *
10
+ * Unless required by applicable law or agreed to in writing, software
11
+ * distributed under the License is distributed on an "AS IS" BASIS,
12
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
+ * See the License for the specific language governing permissions and
14
+ * limitations under the License.
15
+ */import{BubbleLayerTooltip as e}from"../slots/BubbleLayerTooltip.js";import{ChoroplethLayerTooltip as t}from"../slots/ChoroplethLayerTooltip.js";import{ConnectionLayerTooltip as n}from"../slots/ConnectionLayerTooltip.js";import{DotLayerTooltip as r}from"../slots/DotLayerTooltip.js";const H=o=>typeof o==typeof r,h=o=>typeof o==typeof e,b=o=>typeof o==typeof n,Q=o=>typeof o==typeof t,g=o=>o.path!==void 0,u=o=>o.name!==void 0&&o.color!==void 0;export{h as isBubbleTooltipTemplate,Q as isChoroplethTooltipTemplate,g as isConnection,b as isConnectionTooltipTemplate,H as isDotTooltipTemplate,u as isRegion};
16
+ //# sourceMappingURL=tooltip-type-guards.js.map
@@ -0,0 +1,7 @@
1
+ {
2
+ "version": 3,
3
+ "sources": ["../../../../src/map/functions/tooltip-type-guards.ts"],
4
+ "sourcesContent": ["/**\n * @license\n * Copyright 2023 Dynatrace LLC\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nimport { BubbleLayerTooltip } from '../slots/BubbleLayerTooltip.js';\nimport { ChoroplethLayerTooltip } from '../slots/ChoroplethLayerTooltip.js';\nimport { ConnectionLayerTooltip } from '../slots/ConnectionLayerTooltip.js';\nimport { DotLayerTooltip } from '../slots/DotLayerTooltip.js';\nimport { Connection } from '../types/connection-layer.js';\nimport { Location } from '../types/location.js';\nimport {\n BubbleLayerTooltipHandler,\n ChoroplethLayerTooltipHandler,\n ConnectionLayerTooltipHandler,\n DotLayerTooltipHandler,\n LayerTooltipHandler,\n} from '../types/tooltip.js';\n\n/**\n * Type guards for tooltip template\n * @param template\n */\nexport const isDotTooltipTemplate = <T extends Location>(\n template?: LayerTooltipHandler<T, never>,\n): template is DotLayerTooltipHandler<T> =>\n typeof template === typeof DotLayerTooltip;\n\nexport const isBubbleTooltipTemplate = <T extends Location>(\n template?: LayerTooltipHandler<T, never>,\n): template is BubbleLayerTooltipHandler<T> =>\n typeof template === typeof BubbleLayerTooltip;\n\nexport const isConnectionTooltipTemplate = <T extends Location>(\n template?: LayerTooltipHandler<T, never>,\n): template is ConnectionLayerTooltipHandler<T> =>\n typeof template === typeof ConnectionLayerTooltip;\n\nexport const isChoroplethTooltipTemplate = <Q extends Record<string, string>>(\n template?: LayerTooltipHandler<never, Q>,\n): template is ChoroplethLayerTooltipHandler<Q> =>\n typeof template === typeof ChoroplethLayerTooltip;\n\n/**\n * Type guards for map types in tooltip context\n * @param template\n */\nexport const isConnection = <\n T extends Location,\n Q extends Record<string, string>,\n>(\n data: T | Q | Connection<T>,\n): data is Connection<T> => data['path'] !== undefined;\n\nexport const isRegion = <T extends Location, Q extends Record<string, string>>(\n data: T | Q | Connection<T>,\n): data is Q => data['name'] !== undefined && data['color'] !== undefined;\n"],
5
+ "mappings": "AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,GAgBA,OAAS,sBAAAA,MAA0B,iCACnC,OAAS,0BAAAC,MAA8B,qCACvC,OAAS,0BAAAC,MAA8B,qCACvC,OAAS,mBAAAC,MAAuB,8BAezB,MAAMC,EACXC,GAEA,OAAOA,GAAa,OAAOF,EAEhBG,EACXD,GAEA,OAAOA,GAAa,OAAOL,EAEhBO,EACXF,GAEA,OAAOA,GAAa,OAAOH,EAEhBM,EACXH,GAEA,OAAOA,GAAa,OAAOJ,EAMhBQ,EAIXC,GAC0BA,EAAK,OAAY,OAEhCC,EACXD,GACcA,EAAK,OAAY,QAAaA,EAAK,QAAa",
6
+ "names": ["BubbleLayerTooltip", "ChoroplethLayerTooltip", "ConnectionLayerTooltip", "DotLayerTooltip", "isDotTooltipTemplate", "template", "isBubbleTooltipTemplate", "isConnectionTooltipTemplate", "isChoroplethTooltipTemplate", "isConnection", "data", "isRegion"]
7
+ }
@@ -0,0 +1,16 @@
1
+ /**
2
+ * @license
3
+ * Copyright 2023 Dynatrace LLC
4
+ * Licensed under the Apache License, Version 2.0 (the "License");
5
+ * you may not use this file except in compliance with the License.
6
+ * You may obtain a copy of the License at
7
+ *
8
+ * http://www.apache.org/licenses/LICENSE-2.0
9
+ *
10
+ * Unless required by applicable law or agreed to in writing, software
11
+ * distributed under the License is distributed on an "AS IS" BASIS,
12
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
+ * See the License for the specific language governing permissions and
14
+ * limitations under the License.
15
+ */import{useContext as n}from"react";import{_getTabIndexValue as a}from"@dynatrace/strato-components-preview/charts";import{A11yToolbarTabIndexContext as r}from"../contexts/a11y-toolbar-tab-index.context.js";import{getTabIndexKey as b}from"../functions/a11y-toolbar-controls.js";const f=e=>{const o=n(r).find(t=>b(t)===e);return o?a(o):-1};export{f as useA11yToolbarTabIndex};
16
+ //# sourceMappingURL=use-a11y-toolbar-tab-index.js.map
@@ -0,0 +1,7 @@
1
+ {
2
+ "version": 3,
3
+ "sources": ["../../../../src/map/hooks/use-a11y-toolbar-tab-index.ts"],
4
+ "sourcesContent": ["/**\n * @license\n * Copyright 2023 Dynatrace LLC\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nimport { useContext } from 'react';\n\nimport { _getTabIndexValue as getTabIndexValue } from '@dynatrace/strato-components-preview/charts';\n\nimport { A11yToolbarTabIndexContext } from '../contexts/a11y-toolbar-tab-index.context.js';\nimport { getTabIndexKey } from '../functions/a11y-toolbar-controls.js';\nimport {\n A11yToolbarTabIndex,\n ToolbarInteractionModes,\n} from '../types/toolbar.js';\n\n/**\n * Get tabIndex value from context. depending on the param type\n *\n * @param type - toolbar buttons type\n */\nexport const useA11yToolbarTabIndex = (type: ToolbarInteractionModes) => {\n const tabIndexContext = useContext<A11yToolbarTabIndex[]>(\n A11yToolbarTabIndexContext,\n );\n\n const toolbarTabIndex = tabIndexContext.find(\n (tab) => getTabIndexKey(tab) === type,\n );\n\n return toolbarTabIndex ? getTabIndexValue(toolbarTabIndex) : -1;\n};\n"],
5
+ "mappings": "AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,GAgBA,OAAS,cAAAA,MAAkB,QAE3B,OAAS,qBAAqBC,MAAwB,8CAEtD,OAAS,8BAAAC,MAAkC,gDAC3C,OAAS,kBAAAC,MAAsB,wCAWxB,MAAMC,EAA0BC,GAAkC,CAKvE,MAAMC,EAJkBN,EACtBE,CACF,EAEwC,KACrCK,GAAQJ,EAAeI,CAAG,IAAMF,CACnC,EAEA,OAAOC,EAAkBL,EAAiBK,CAAe,EAAI,EAC/D",
6
+ "names": ["useContext", "getTabIndexValue", "A11yToolbarTabIndexContext", "getTabIndexKey", "useA11yToolbarTabIndex", "type", "toolbarTabIndex", "tab"]
7
+ }
@@ -0,0 +1,16 @@
1
+ /**
2
+ * @license
3
+ * Copyright 2023 Dynatrace LLC
4
+ * Licensed under the Apache License, Version 2.0 (the "License");
5
+ * you may not use this file except in compliance with the License.
6
+ * You may obtain a copy of the License at
7
+ *
8
+ * http://www.apache.org/licenses/LICENSE-2.0
9
+ *
10
+ * Unless required by applicable law or agreed to in writing, software
11
+ * distributed under the License is distributed on an "AS IS" BASIS,
12
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
+ * See the License for the specific language governing permissions and
14
+ * limitations under the License.
15
+ */import{isNil as f,isUndefined as a}from"lodash-es";import{useCallback as l,useEffect as m}from"react";import{useMap as p}from"react-map-gl/maplibre";import{BASE_LAYER_IDS as v}from"../constants.js";const k=()=>{const e=p().current;let t,r;const i=l(({point:c})=>{const s=e.queryRenderedFeatures(c),o=s?.[0]?.layer?.id,n=!f(s)&&s.length>0&&!a(o),u=v.includes(o);if(n&&!u){!a(t)&&!a(r)&&e.setFeatureState({source:r,id:t},{active:!1}),t=s[0].id,r=s[0].layer.source;const d=s[0].state.active;e.setFeatureState({source:r,id:t},{active:!d})}else!a(t)&&!a(r)&&e.setFeatureState({source:r,id:t},{active:!1})},[t,r,e]);m(()=>(e.on("click",i),()=>{e.off("click",i)}),[])};export{k as useActiveInteraction};
16
+ //# sourceMappingURL=use-active-interaction.js.map
@@ -0,0 +1,7 @@
1
+ {
2
+ "version": 3,
3
+ "sources": ["../../../../src/map/hooks/use-active-interaction.ts"],
4
+ "sourcesContent": ["/**\n * @license\n * Copyright 2023 Dynatrace LLC\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\nimport { isNil, isUndefined } from 'lodash-es';\nimport { MapLayerMouseEvent } from 'maplibre-gl';\nimport { useCallback, useEffect } from 'react';\nimport { useMap } from 'react-map-gl/maplibre';\n\nimport { BASE_LAYER_IDS } from '../constants.js';\n\nexport const useActiveInteraction = () => {\n const map = useMap().current!;\n\n let featureId: string | number | undefined;\n let sourceId: string | undefined;\n const handleClick = useCallback(\n ({ point }: MapLayerMouseEvent) => {\n const features = map.queryRenderedFeatures(point);\n\n const layerId = features?.[0]?.layer?.id;\n\n const hasHoveredFeatures =\n !isNil(features) && features.length > 0 && !isUndefined(layerId);\n const isBaseLayer = BASE_LAYER_IDS.includes(layerId);\n\n if (hasHoveredFeatures && !isBaseLayer) {\n if (!isUndefined(featureId) && !isUndefined(sourceId)) {\n // if there's already an active feature, remove the active state\n map.setFeatureState(\n { source: sourceId, id: featureId },\n { active: false },\n );\n }\n\n featureId = features[0].id;\n sourceId = features[0].layer.source;\n const activeState = features[0].state.active;\n\n // add the active state to the closest feature\n map.setFeatureState(\n { source: sourceId, id: featureId },\n { active: !activeState },\n );\n } else {\n if (!isUndefined(featureId) && !isUndefined(sourceId)) {\n // remove the active state from the last active feature\n map.setFeatureState(\n { source: sourceId, id: featureId },\n { active: false },\n );\n }\n }\n },\n [featureId, sourceId, map],\n );\n\n useEffect(() => {\n map.on('click', handleClick);\n return () => {\n map.off('click', handleClick);\n };\n }, []);\n};\n"],
5
+ "mappings": "AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,GAeA,OAAS,SAAAA,EAAO,eAAAC,MAAmB,YAEnC,OAAS,eAAAC,EAAa,aAAAC,MAAiB,QACvC,OAAS,UAAAC,MAAc,wBAEvB,OAAS,kBAAAC,MAAsB,kBAExB,MAAMC,EAAuB,IAAM,CACxC,MAAMC,EAAMH,EAAO,EAAE,QAErB,IAAII,EACAC,EACJ,MAAMC,EAAcR,EAClB,CAAC,CAAE,MAAAS,CAAM,IAA0B,CACjC,MAAMC,EAAWL,EAAI,sBAAsBI,CAAK,EAE1CE,EAAUD,IAAW,CAAC,GAAG,OAAO,GAEhCE,EACJ,CAACd,EAAMY,CAAQ,GAAKA,EAAS,OAAS,GAAK,CAACX,EAAYY,CAAO,EAC3DE,EAAcV,EAAe,SAASQ,CAAO,EAEnD,GAAIC,GAAsB,CAACC,EAAa,CAClC,CAACd,EAAYO,CAAS,GAAK,CAACP,EAAYQ,CAAQ,GAElDF,EAAI,gBACF,CAAE,OAAQE,EAAU,GAAID,CAAU,EAClC,CAAE,OAAQ,EAAM,CAClB,EAGFA,EAAYI,EAAS,CAAC,EAAE,GACxBH,EAAWG,EAAS,CAAC,EAAE,MAAM,OAC7B,MAAMI,EAAcJ,EAAS,CAAC,EAAE,MAAM,OAGtCL,EAAI,gBACF,CAAE,OAAQE,EAAU,GAAID,CAAU,EAClC,CAAE,OAAQ,CAACQ,CAAY,CACzB,CACF,KACM,CAACf,EAAYO,CAAS,GAAK,CAACP,EAAYQ,CAAQ,GAElDF,EAAI,gBACF,CAAE,OAAQE,EAAU,GAAID,CAAU,EAClC,CAAE,OAAQ,EAAM,CAClB,CAGN,EACA,CAACA,EAAWC,EAAUF,CAAG,CAC3B,EAEAJ,EAAU,KACRI,EAAI,GAAG,QAASG,CAAW,EACpB,IAAM,CACXH,EAAI,IAAI,QAASG,CAAW,CAC9B,GACC,CAAC,CAAC,CACP",
6
+ "names": ["isNil", "isUndefined", "useCallback", "useEffect", "useMap", "BASE_LAYER_IDS", "useActiveInteraction", "map", "featureId", "sourceId", "handleClick", "point", "features", "layerId", "hasHoveredFeatures", "isBaseLayer", "activeState"]
7
+ }
@@ -0,0 +1,16 @@
1
+ /**
2
+ * @license
3
+ * Copyright 2023 Dynatrace LLC
4
+ * Licensed under the Apache License, Version 2.0 (the "License");
5
+ * you may not use this file except in compliance with the License.
6
+ * You may obtain a copy of the License at
7
+ *
8
+ * http://www.apache.org/licenses/LICENSE-2.0
9
+ *
10
+ * Unless required by applicable law or agreed to in writing, software
11
+ * distributed under the License is distributed on an "AS IS" BASIS,
12
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
+ * See the License for the specific language governing permissions and
14
+ * limitations under the License.
15
+ */import{isString as a}from"lodash-es";import{createElement as u,useLayoutEffect as S}from"react";import{useMap as l}from"react-map-gl/maplibre";import{useSafeSvgParser as I}from"./use-safe-svg-parser.js";import{DEFAULT_INPUT_ICON_SIZE as n}from"../constants.js";import{attachImageToMap as E}from"../functions/attach-image-to-map.js";import{createBitmapConfigOptions as N}from"../functions/create-bitmap-config-options.js";import{getDataUri as h}from"../functions/get-data-uri.js";import{getScaledSymbolSize as v}from"../functions/get-scaled-symbol-size.js";import{safeReactDomRender as R}from"../functions/safe-reactdom-render.js";const O=(e,i,c)=>{const{elementAsString:s,ref:p}=I(),o=v(),{current:f}=l(),t=new Image(o,o),m=document.createElement("div");S(()=>{if(a(e))return;const r=u("div",{ref:p},e);R(r,m)},[e]),m.remove();const g=h(s);return t.addEventListener("load",()=>{createImageBitmap(t,0,0,n,n,N(c)).then(r=>{const d=`custom-icon-${i}`;E(f,r,d)})}),t.src=g,!a(e)};export{O as useAttachImageFromIcon};
16
+ //# sourceMappingURL=use-attach-image-from-icon.js.map
@@ -0,0 +1,7 @@
1
+ {
2
+ "version": 3,
3
+ "sources": ["../../../../src/map/hooks/use-attach-image-from-icon.ts"],
4
+ "sourcesContent": ["/**\n * @license\n * Copyright 2023 Dynatrace LLC\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nimport { isString } from 'lodash-es';\nimport { createElement, ReactNode, useLayoutEffect } from 'react';\nimport { useMap } from 'react-map-gl/maplibre';\n\nimport { useSafeSvgParser } from './use-safe-svg-parser.js';\nimport { DEFAULT_INPUT_ICON_SIZE } from '../constants.js';\nimport { attachImageToMap } from '../functions/attach-image-to-map.js';\nimport { createBitmapConfigOptions } from '../functions/create-bitmap-config-options.js';\nimport { getDataUri } from '../functions/get-data-uri.js';\nimport { getScaledSymbolSize } from '../functions/get-scaled-symbol-size.js';\nimport { safeReactDomRender } from '../functions/safe-reactdom-render.js';\nimport { MapShape } from '../types/shapes.js';\n\nexport const useAttachImageFromIcon = (\n icon: string | MapShape | ReactNode,\n suffix: string,\n outputSize?: number,\n) => {\n const { elementAsString, ref } = useSafeSvgParser();\n const defaultScaledIconSize = getScaledSymbolSize();\n const { current: map } = useMap()!;\n const img = new Image(defaultScaledIconSize, defaultScaledIconSize);\n\n /*\n * As we can only create a reference in a React Node, but we need a virtual\n * 'root' element in the DOM to attach it, we create a 'div'\n * container that lately will hold the React Node. This is done to ensure\n * everything is cached prior any manipulation.\n */\n // Create a div element that acts as a container node in the DOM\n const fakeDomContainer = document.createElement('div');\n useLayoutEffect(() => {\n if (isString(icon)) {\n return;\n }\n // Create a React Node that will have a ref callback to be run when loaded and\n // the input icon as a children\n const reactNodeRefContainer = createElement('div', { ref }, icon);\n // Attach React Node with the ref callback into DOM Node\n safeReactDomRender(reactNodeRefContainer, fakeDomContainer);\n }, [icon]);\n\n // Remove cached element to free resources\n fakeDomContainer.remove();\n\n const stringUrl = getDataUri(elementAsString);\n\n img.addEventListener('load', () => {\n createImageBitmap(\n img,\n 0,\n 0,\n DEFAULT_INPUT_ICON_SIZE,\n DEFAULT_INPUT_ICON_SIZE,\n createBitmapConfigOptions(outputSize),\n ).then((bitmap) => {\n const iconName = `custom-icon-${suffix}`;\n attachImageToMap(map!, bitmap, iconName);\n });\n });\n img.src = stringUrl;\n\n return !isString(icon);\n};\n"],
5
+ "mappings": "AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,GAgBA,OAAS,YAAAA,MAAgB,YACzB,OAAS,iBAAAC,EAA0B,mBAAAC,MAAuB,QAC1D,OAAS,UAAAC,MAAc,wBAEvB,OAAS,oBAAAC,MAAwB,2BACjC,OAAS,2BAAAC,MAA+B,kBACxC,OAAS,oBAAAC,MAAwB,sCACjC,OAAS,6BAAAC,MAAiC,+CAC1C,OAAS,cAAAC,MAAkB,+BAC3B,OAAS,uBAAAC,MAA2B,yCACpC,OAAS,sBAAAC,MAA0B,uCAG5B,MAAMC,EAAyB,CACpCC,EACAC,EACAC,IACG,CACH,KAAM,CAAE,gBAAAC,EAAiB,IAAAC,CAAI,EAAIZ,EAAiB,EAC5Ca,EAAwBR,EAAoB,EAC5C,CAAE,QAASS,CAAI,EAAIf,EAAO,EAC1BgB,EAAM,IAAI,MAAMF,EAAuBA,CAAqB,EAS5DG,EAAmB,SAAS,cAAc,KAAK,EACrDlB,EAAgB,IAAM,CACpB,GAAIF,EAASY,CAAI,EACf,OAIF,MAAMS,EAAwBpB,EAAc,MAAO,CAAE,IAAAe,CAAI,EAAGJ,CAAI,EAEhEF,EAAmBW,EAAuBD,CAAgB,CAC5D,EAAG,CAACR,CAAI,CAAC,EAGTQ,EAAiB,OAAO,EAExB,MAAME,EAAYd,EAAWO,CAAe,EAE5C,OAAAI,EAAI,iBAAiB,OAAQ,IAAM,CACjC,kBACEA,EACA,EACA,EACAd,EACAA,EACAE,EAA0BO,CAAU,CACtC,EAAE,KAAMS,GAAW,CACjB,MAAMC,EAAW,eAAeX,CAAM,GACtCP,EAAiBY,EAAMK,EAAQC,CAAQ,CACzC,CAAC,CACH,CAAC,EACDL,EAAI,IAAMG,EAEH,CAACtB,EAASY,CAAI,CACvB",
6
+ "names": ["isString", "createElement", "useLayoutEffect", "useMap", "useSafeSvgParser", "DEFAULT_INPUT_ICON_SIZE", "attachImageToMap", "createBitmapConfigOptions", "getDataUri", "getScaledSymbolSize", "safeReactDomRender", "useAttachImageFromIcon", "icon", "suffix", "outputSize", "elementAsString", "ref", "defaultScaledIconSize", "map", "img", "fakeDomContainer", "reactNodeRefContainer", "stringUrl", "bitmap", "iconName"]
7
+ }
@@ -0,0 +1,16 @@
1
+ /**
2
+ * @license
3
+ * Copyright 2023 Dynatrace LLC
4
+ * Licensed under the Apache License, Version 2.0 (the "License");
5
+ * you may not use this file except in compliance with the License.
6
+ * You may obtain a copy of the License at
7
+ *
8
+ * http://www.apache.org/licenses/LICENSE-2.0
9
+ *
10
+ * Unless required by applicable law or agreed to in writing, software
11
+ * distributed under the License is distributed on an "AS IS" BASIS,
12
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
+ * See the License for the specific language governing permissions and
14
+ * limitations under the License.
15
+ */import{isNil as e,isString as p}from"lodash-es";import{useMap as c}from"react-map-gl/maplibre";import{useAttachImageFromIcon as i}from"./use-attach-image-from-icon.js";import{attachImageFromString as n}from"../functions/attach-image-from-string.js";const S=(t,r="",o)=>{const{current:m}=c(),a=i(t,r,o);if(e(m))return null;!a&&p(t)&&n(m,t,r,o)};export{S as useAttachSymbolToMap};
16
+ //# sourceMappingURL=use-attach-symbol-to-map.js.map
@@ -0,0 +1,7 @@
1
+ {
2
+ "version": 3,
3
+ "sources": ["../../../../src/map/hooks/use-attach-symbol-to-map.ts"],
4
+ "sourcesContent": ["/**\n * @license\n * Copyright 2023 Dynatrace LLC\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nimport { isNil, isString } from 'lodash-es';\nimport { ReactNode } from 'react';\nimport { useMap } from 'react-map-gl/maplibre';\n\nimport { useAttachImageFromIcon } from './use-attach-image-from-icon.js';\nimport { attachImageFromString } from '../functions/attach-image-from-string.js';\nimport { MapShape } from '../types/shapes.js';\n\nexport const useAttachSymbolToMap = (\n icon: string | MapShape | ReactNode,\n suffix: string = '',\n outputSize?: number,\n) => {\n const { current: map } = useMap();\n const customIconAttached = useAttachImageFromIcon(icon, suffix, outputSize);\n\n if (isNil(map)) {\n return null;\n }\n\n if (!customIconAttached && isString(icon)) {\n attachImageFromString(map, icon, suffix, outputSize);\n }\n};\n"],
5
+ "mappings": "AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,GAgBA,OAAS,SAAAA,EAAO,YAAAC,MAAgB,YAEhC,OAAS,UAAAC,MAAc,wBAEvB,OAAS,0BAAAC,MAA8B,kCACvC,OAAS,yBAAAC,MAA6B,2CAG/B,MAAMC,EAAuB,CAClCC,EACAC,EAAiB,GACjBC,IACG,CACH,KAAM,CAAE,QAASC,CAAI,EAAIP,EAAO,EAC1BQ,EAAqBP,EAAuBG,EAAMC,EAAQC,CAAU,EAE1E,GAAIR,EAAMS,CAAG,EACX,OAAO,KAGL,CAACC,GAAsBT,EAASK,CAAI,GACtCF,EAAsBK,EAAKH,EAAMC,EAAQC,CAAU,CAEvD",
6
+ "names": ["isNil", "isString", "useMap", "useAttachImageFromIcon", "attachImageFromString", "useAttachSymbolToMap", "icon", "suffix", "outputSize", "map", "customIconAttached"]
7
+ }
@@ -0,0 +1,16 @@
1
+ /**
2
+ * @license
3
+ * Copyright 2023 Dynatrace LLC
4
+ * Licensed under the Apache License, Version 2.0 (the "License");
5
+ * you may not use this file except in compliance with the License.
6
+ * You may obtain a copy of the License at
7
+ *
8
+ * http://www.apache.org/licenses/LICENSE-2.0
9
+ *
10
+ * Unless required by applicable law or agreed to in writing, software
11
+ * distributed under the License is distributed on an "AS IS" BASIS,
12
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
+ * See the License for the specific language governing permissions and
14
+ * limitations under the License.
15
+ */import{isUndefined as r}from"lodash-es";import i from"react";import{useMapConfig as t}from"./use-map-config.js";import{ColorScaleContext as s}from"../contexts/color-scale.context.js";import{isSequentialLegend as l,isThresholdLegend as o}from"../functions/build-scale-from-legend-config.js";function p(){const e=i.useContext(s),{legend:n}=t();if(!(r(n)||r(e)))return l(n)||o(n),e}export{p as useColorScale};
16
+ //# sourceMappingURL=use-color-scale.js.map
@@ -0,0 +1,7 @@
1
+ {
2
+ "version": 3,
3
+ "sources": ["../../../../src/map/hooks/use-color-scale.ts"],
4
+ "sourcesContent": ["/**\n * @license\n * Copyright 2023 Dynatrace LLC\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nimport { ScaleOrdinal, ScaleQuantize, ScaleThreshold } from 'd3-scale';\nimport { isUndefined } from 'lodash-es';\nimport React from 'react';\n\nimport { useMapConfig } from './use-map-config.js';\nimport { ColorScaleContext } from '../contexts/color-scale.context.js';\nimport {\n isSequentialLegend,\n isThresholdLegend,\n} from '../functions/build-scale-from-legend-config.js';\n\nexport function useColorScale():\n | ScaleQuantize<string>\n | ScaleThreshold<number, string>\n | ScaleOrdinal<string, string>\n | undefined {\n const context = React.useContext<\n | ScaleQuantize<string>\n | ScaleThreshold<number, string>\n | ScaleOrdinal<string, string>\n | undefined\n >(ColorScaleContext);\n const { legend } = useMapConfig();\n\n if (isUndefined(legend) || isUndefined(context)) {\n return undefined;\n }\n\n if (isSequentialLegend(legend)) {\n return context as ScaleQuantize<string>;\n } else if (isThresholdLegend(legend)) {\n return context as ScaleThreshold<number, string>;\n } else {\n return context as ScaleOrdinal<string, string>;\n }\n}\n"],
5
+ "mappings": "AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,GAiBA,OAAS,eAAAA,MAAmB,YAC5B,OAAOC,MAAW,QAElB,OAAS,gBAAAC,MAAoB,sBAC7B,OAAS,qBAAAC,MAAyB,qCAClC,OACE,sBAAAC,EACA,qBAAAC,MACK,iDAEA,SAASC,GAIF,CACZ,MAAMC,EAAUN,EAAM,WAKpBE,CAAiB,EACb,CAAE,OAAAK,CAAO,EAAIN,EAAa,EAEhC,GAAI,EAAAF,EAAYQ,CAAM,GAAKR,EAAYO,CAAO,GAI9C,OAAIH,EAAmBI,CAAM,GAElBH,EAAkBG,CAAM,EAC1BD,CAIX",
6
+ "names": ["isUndefined", "React", "useMapConfig", "ColorScaleContext", "isSequentialLegend", "isThresholdLegend", "useColorScale", "context", "legend"]
7
+ }
@@ -0,0 +1,16 @@
1
+ /**
2
+ * @license
3
+ * Copyright 2023 Dynatrace LLC
4
+ * Licensed under the Apache License, Version 2.0 (the "License");
5
+ * you may not use this file except in compliance with the License.
6
+ * You may obtain a copy of the License at
7
+ *
8
+ * http://www.apache.org/licenses/LICENSE-2.0
9
+ *
10
+ * Unless required by applicable law or agreed to in writing, software
11
+ * distributed under the License is distributed on an "AS IS" BASIS,
12
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
+ * See the License for the specific language governing permissions and
14
+ * limitations under the License.
15
+ */import{useCallback as d,useEffect as v,useRef as M}from"react";import{useMap as L}from"react-map-gl/maplibre";const E=(r,f)=>{const c=`${r}-direction`,t=`${f}-direction`,{current:S}=L(),e=S?.getMap();if(e){const o=e.getLayer(c),a=e.getSource(t);o&&e.removeLayer(c),a&&e.removeSource(t)}const n=M([]),u=d(o=>{o.sourceId===t&&(n.current=[],o.source.data.features.forEach((a,p)=>n.current.push(p)))},[n,t]),i=d((o,a)=>{if(!o)return null;const p=o[0].id,m=a.getFeatureState({source:r,id:p});n.current.forEach(g=>a.setFeatureState({source:t,id:g},m))},[n,t,r]),s=d(o=>{n.current.forEach(a=>o.setFeatureState({source:t,id:a},{hover:!1}))},[n,t]);v(()=>{if(e)return e.on("sourcedataloading",u),e.on("mousemove",r,({features:o})=>i(o,e)),e.on("mouseleave",r,()=>s(e)),()=>{e.off("sourcedataloading",u),e.off("mousemove",r,({features:o})=>i(o,e)),e.off("mouseleave",r,()=>s(e))}},[e,c,t,r,s,i,u])};export{E as useConnectionDirectionInteractionHighlighting};
16
+ //# sourceMappingURL=use-connection-direction-interaction-highlighting.js.map
@@ -0,0 +1,7 @@
1
+ {
2
+ "version": 3,
3
+ "sources": ["../../../../src/map/hooks/use-connection-direction-interaction-highlighting.ts"],
4
+ "sourcesContent": ["/**\n * @license\n * Copyright 2023 Dynatrace LLC\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\nimport type {\n Map,\n MapGeoJSONFeature,\n MapLibreEvent,\n MapSourceDataType,\n SourceSpecification,\n} from 'maplibre-gl';\nimport { useCallback, useEffect, useRef } from 'react';\nimport { useMap } from 'react-map-gl/maplibre';\n\ninterface SourceDataLoadingEvent extends MapLibreEvent<unknown> {\n dataType: 'source';\n isSourceLoaded: boolean;\n source: SourceSpecification;\n sourceId: string;\n sourceDataType: MapSourceDataType;\n}\n\nexport const useConnectionDirectionInteractionHighlighting = (\n layerId: string,\n sourceId: string,\n) => {\n const directionLayerId = `${layerId}-direction`;\n const directionSourceId = `${sourceId}-direction`;\n\n const { current: map } = useMap();\n\n const currentMap = map?.getMap();\n\n if (currentMap) {\n /**\n * Due to some cache problem, this cleanup is needed,\n * otherwise, the arrows indicator will keep\n * the first hovered color.\n */\n\n const layer = currentMap.getLayer(directionLayerId);\n const source = currentMap.getSource(directionSourceId);\n\n layer && currentMap.removeLayer(directionLayerId);\n source && currentMap.removeSource(directionSourceId);\n }\n\n const directionLayerFeaturesIds = useRef<number[]>([]);\n\n const onSourceDataLoadingHandler = useCallback(\n (e: SourceDataLoadingEvent) => {\n if (e.sourceId === directionSourceId) {\n directionLayerFeaturesIds.current = [];\n e.source['data'].features.forEach((_: never, index: number) =>\n directionLayerFeaturesIds.current.push(index),\n );\n }\n },\n [directionLayerFeaturesIds, directionSourceId],\n );\n\n const onMouseMoveHandler = useCallback(\n (features: MapGeoJSONFeature[] | undefined, currentMap: Map) => {\n if (!features) {\n return null;\n }\n\n const hoveredConnectionLayerId = features[0].id;\n\n const connectionLayerFeatureState = currentMap.getFeatureState({\n source: layerId,\n id: hoveredConnectionLayerId,\n });\n\n directionLayerFeaturesIds.current.forEach((id) =>\n currentMap.setFeatureState(\n { source: directionSourceId, id },\n connectionLayerFeatureState,\n ),\n );\n },\n [directionLayerFeaturesIds, directionSourceId, layerId],\n );\n\n const onMouseLeaveHandler = useCallback(\n (currentMap: Map) => {\n directionLayerFeaturesIds.current.forEach((id) =>\n currentMap.setFeatureState(\n { source: directionSourceId, id },\n { hover: false },\n ),\n );\n },\n [directionLayerFeaturesIds, directionSourceId],\n );\n\n useEffect(() => {\n if (currentMap) {\n currentMap.on('sourcedataloading', onSourceDataLoadingHandler);\n\n currentMap.on('mousemove', layerId, ({ features }) =>\n onMouseMoveHandler(features, currentMap),\n );\n\n currentMap.on('mouseleave', layerId, () =>\n onMouseLeaveHandler(currentMap),\n );\n\n return () => {\n currentMap.off('sourcedataloading', onSourceDataLoadingHandler);\n\n currentMap.off('mousemove', layerId, ({ features }) =>\n onMouseMoveHandler(features, currentMap),\n );\n\n currentMap.off('mouseleave', layerId, () =>\n onMouseLeaveHandler(currentMap),\n );\n };\n }\n }, [\n currentMap,\n directionLayerId,\n directionSourceId,\n layerId,\n onMouseLeaveHandler,\n onMouseMoveHandler,\n onSourceDataLoadingHandler,\n ]);\n};\n"],
5
+ "mappings": "AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,GAsBA,OAAS,eAAAA,EAAa,aAAAC,EAAW,UAAAC,MAAc,QAC/C,OAAS,UAAAC,MAAc,wBAUhB,MAAMC,EAAgD,CAC3DC,EACAC,IACG,CACH,MAAMC,EAAmB,GAAGF,CAAO,aAC7BG,EAAoB,GAAGF,CAAQ,aAE/B,CAAE,QAASG,CAAI,EAAIN,EAAO,EAE1BO,EAAaD,GAAK,OAAO,EAE/B,GAAIC,EAAY,CAOd,MAAMC,EAAQD,EAAW,SAASH,CAAgB,EAC5CK,EAASF,EAAW,UAAUF,CAAiB,EAErDG,GAASD,EAAW,YAAYH,CAAgB,EAChDK,GAAUF,EAAW,aAAaF,CAAiB,CACrD,CAEA,MAAMK,EAA4BX,EAAiB,CAAC,CAAC,EAE/CY,EAA6Bd,EAChCe,GAA8B,CACzBA,EAAE,WAAaP,IACjBK,EAA0B,QAAU,CAAC,EACrCE,EAAE,OAAO,KAAQ,SAAS,QAAQ,CAACC,EAAUC,IAC3CJ,EAA0B,QAAQ,KAAKI,CAAK,CAC9C,EAEJ,EACA,CAACJ,EAA2BL,CAAiB,CAC/C,EAEMU,EAAqBlB,EACzB,CAACmB,EAA2CT,IAAoB,CAC9D,GAAI,CAACS,EACH,OAAO,KAGT,MAAMC,EAA2BD,EAAS,CAAC,EAAE,GAEvCE,EAA8BX,EAAW,gBAAgB,CAC7D,OAAQL,EACR,GAAIe,CACN,CAAC,EAEDP,EAA0B,QAAQ,QAASS,GACzCZ,EAAW,gBACT,CAAE,OAAQF,EAAmB,GAAAc,CAAG,EAChCD,CACF,CACF,CACF,EACA,CAACR,EAA2BL,EAAmBH,CAAO,CACxD,EAEMkB,EAAsBvB,EACzBU,GAAoB,CACnBG,EAA0B,QAAQ,QAASS,GACzCZ,EAAW,gBACT,CAAE,OAAQF,EAAmB,GAAAc,CAAG,EAChC,CAAE,MAAO,EAAM,CACjB,CACF,CACF,EACA,CAACT,EAA2BL,CAAiB,CAC/C,EAEAP,EAAU,IAAM,CACd,GAAIS,EACF,OAAAA,EAAW,GAAG,oBAAqBI,CAA0B,EAE7DJ,EAAW,GAAG,YAAaL,EAAS,CAAC,CAAE,SAAAc,CAAS,IAC9CD,EAAmBC,EAAUT,CAAU,CACzC,EAEAA,EAAW,GAAG,aAAcL,EAAS,IACnCkB,EAAoBb,CAAU,CAChC,EAEO,IAAM,CACXA,EAAW,IAAI,oBAAqBI,CAA0B,EAE9DJ,EAAW,IAAI,YAAaL,EAAS,CAAC,CAAE,SAAAc,CAAS,IAC/CD,EAAmBC,EAAUT,CAAU,CACzC,EAEAA,EAAW,IAAI,aAAcL,EAAS,IACpCkB,EAAoBb,CAAU,CAChC,CACF,CAEJ,EAAG,CACDA,EACAH,EACAC,EACAH,EACAkB,EACAL,EACAJ,CACF,CAAC,CACH",
6
+ "names": ["useCallback", "useEffect", "useRef", "useMap", "useConnectionDirectionInteractionHighlighting", "layerId", "sourceId", "directionLayerId", "directionSourceId", "map", "currentMap", "layer", "source", "directionLayerFeaturesIds", "onSourceDataLoadingHandler", "e", "_", "index", "onMouseMoveHandler", "features", "hoveredConnectionLayerId", "connectionLayerFeatureState", "id", "onMouseLeaveHandler"]
7
+ }
@@ -0,0 +1,16 @@
1
+ /**
2
+ * @license
3
+ * Copyright 2023 Dynatrace LLC
4
+ * Licensed under the Apache License, Version 2.0 (the "License");
5
+ * you may not use this file except in compliance with the License.
6
+ * You may obtain a copy of the License at
7
+ *
8
+ * http://www.apache.org/licenses/LICENSE-2.0
9
+ *
10
+ * Unless required by applicable law or agreed to in writing, software
11
+ * distributed under the License is distributed on an "AS IS" BASIS,
12
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
+ * See the License for the specific language governing permissions and
14
+ * limitations under the License.
15
+ */import{useCallback as m,useEffect as h,useRef as d}from"react";import{useMap as g}from"react-map-gl/maplibre";const S=(t,o)=>{const{current:a}=g(),r=d(void 0),u=d([]),i=m((e,n)=>{if(!e||e[0].layer.id===r.current)return;r.current!==void 0&&u.current.forEach(c=>n.setFeatureState({source:o,id:c},{hover:!1}));const p=e[0];r.current=p.layer.id;const f=n.getSource(r.current);u.current=f?f._data.features.map((c,v)=>v):[],u.current.forEach(c=>n.setFeatureState({source:o,id:c},{hover:!0}))},[o]),s=m(e=>{r.current!==void 0&&(u.current.forEach(n=>e.setFeatureState({source:o,id:n},{hover:!1})),r.current=void 0,u.current=[])},[o]);h(()=>{if(a){const e=a.getMap();return e.on("mousemove",t,({features:n})=>i(n,e)),e.on("mouseleave",t,()=>s(e)),()=>{e.off("mousemove",t,({features:n})=>i(n,e)),e.off("mouseleave",t,()=>s(e))}}},[t,a,s,i])};export{S as useConnectionInteractionHighlighting};
16
+ //# sourceMappingURL=use-connection-interaction-highlighting.js.map
@@ -0,0 +1,7 @@
1
+ {
2
+ "version": 3,
3
+ "sources": ["../../../../src/map/hooks/use-connection-interaction-highlighting.ts"],
4
+ "sourcesContent": ["/**\n * @license\n * Copyright 2023 Dynatrace LLC\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\nimport type { MapGeoJSONFeature, Map } from 'maplibre-gl';\nimport { useCallback, useEffect, useRef } from 'react';\nimport { useMap } from 'react-map-gl/maplibre';\n\nexport const useConnectionInteractionHighlighting = (\n layerId: string,\n sourceId: string,\n) => {\n const { current: map } = useMap();\n\n const hoveredLayerId = useRef<string | number | undefined>(undefined);\n const hoveredConnectionIds = useRef<number[]>([]);\n\n const onMouseMoveHandler = useCallback(\n (features: MapGeoJSONFeature[] | undefined, currentMap: Map) => {\n if (!features || features[0].layer.id === hoveredLayerId.current) {\n return;\n }\n\n if (hoveredLayerId.current !== undefined) {\n hoveredConnectionIds.current.forEach((id) =>\n currentMap.setFeatureState(\n { source: sourceId, id },\n { hover: false },\n ),\n );\n }\n\n const hoveredConnection = features[0];\n\n hoveredLayerId.current = hoveredConnection.layer.id;\n\n const hoveredConnectionSource = currentMap.getSource(\n hoveredLayerId.current,\n );\n\n hoveredConnectionIds.current = hoveredConnectionSource\n ? hoveredConnectionSource['_data'].features.map(\n (_: never, index: number) => index,\n )\n : [];\n\n hoveredConnectionIds.current.forEach((id) =>\n currentMap.setFeatureState({ source: sourceId, id }, { hover: true }),\n );\n },\n [sourceId],\n );\n\n const onMouseLeaveHandler = useCallback(\n (currentMap: Map) => {\n if (hoveredLayerId.current !== undefined) {\n hoveredConnectionIds.current.forEach((id) =>\n currentMap.setFeatureState(\n { source: sourceId, id },\n { hover: false },\n ),\n );\n\n hoveredLayerId.current = undefined;\n hoveredConnectionIds.current = [];\n }\n },\n [sourceId],\n );\n\n useEffect(() => {\n if (map) {\n const currentMap = map.getMap();\n\n currentMap.on('mousemove', layerId, ({ features }) =>\n onMouseMoveHandler(features, currentMap),\n );\n\n currentMap.on('mouseleave', layerId, () =>\n onMouseLeaveHandler(currentMap),\n );\n\n return () => {\n currentMap.off('mousemove', layerId, ({ features }) =>\n onMouseMoveHandler(features, currentMap),\n );\n\n currentMap.off('mouseleave', layerId, () =>\n onMouseLeaveHandler(currentMap),\n );\n };\n }\n }, [layerId, map, onMouseLeaveHandler, onMouseMoveHandler]);\n};\n"],
5
+ "mappings": "AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,GAgBA,OAAS,eAAAA,EAAa,aAAAC,EAAW,UAAAC,MAAc,QAC/C,OAAS,UAAAC,MAAc,wBAEhB,MAAMC,EAAuC,CAClDC,EACAC,IACG,CACH,KAAM,CAAE,QAASC,CAAI,EAAIJ,EAAO,EAE1BK,EAAiBN,EAAoC,MAAS,EAC9DO,EAAuBP,EAAiB,CAAC,CAAC,EAE1CQ,EAAqBV,EACzB,CAACW,EAA2CC,IAAoB,CAC9D,GAAI,CAACD,GAAYA,EAAS,CAAC,EAAE,MAAM,KAAOH,EAAe,QACvD,OAGEA,EAAe,UAAY,QAC7BC,EAAqB,QAAQ,QAASI,GACpCD,EAAW,gBACT,CAAE,OAAQN,EAAU,GAAAO,CAAG,EACvB,CAAE,MAAO,EAAM,CACjB,CACF,EAGF,MAAMC,EAAoBH,EAAS,CAAC,EAEpCH,EAAe,QAAUM,EAAkB,MAAM,GAEjD,MAAMC,EAA0BH,EAAW,UACzCJ,EAAe,OACjB,EAEAC,EAAqB,QAAUM,EAC3BA,EAAwB,MAAS,SAAS,IACxC,CAACC,EAAUC,IAAkBA,CAC/B,EACA,CAAC,EAELR,EAAqB,QAAQ,QAASI,GACpCD,EAAW,gBAAgB,CAAE,OAAQN,EAAU,GAAAO,CAAG,EAAG,CAAE,MAAO,EAAK,CAAC,CACtE,CACF,EACA,CAACP,CAAQ,CACX,EAEMY,EAAsBlB,EACzBY,GAAoB,CACfJ,EAAe,UAAY,SAC7BC,EAAqB,QAAQ,QAASI,GACpCD,EAAW,gBACT,CAAE,OAAQN,EAAU,GAAAO,CAAG,EACvB,CAAE,MAAO,EAAM,CACjB,CACF,EAEAL,EAAe,QAAU,OACzBC,EAAqB,QAAU,CAAC,EAEpC,EACA,CAACH,CAAQ,CACX,EAEAL,EAAU,IAAM,CACd,GAAIM,EAAK,CACP,MAAMK,EAAaL,EAAI,OAAO,EAE9B,OAAAK,EAAW,GAAG,YAAaP,EAAS,CAAC,CAAE,SAAAM,CAAS,IAC9CD,EAAmBC,EAAUC,CAAU,CACzC,EAEAA,EAAW,GAAG,aAAcP,EAAS,IACnCa,EAAoBN,CAAU,CAChC,EAEO,IAAM,CACXA,EAAW,IAAI,YAAaP,EAAS,CAAC,CAAE,SAAAM,CAAS,IAC/CD,EAAmBC,EAAUC,CAAU,CACzC,EAEAA,EAAW,IAAI,aAAcP,EAAS,IACpCa,EAAoBN,CAAU,CAChC,CACF,CACF,CACF,EAAG,CAACP,EAASE,EAAKW,EAAqBR,CAAkB,CAAC,CAC5D",
6
+ "names": ["useCallback", "useEffect", "useRef", "useMap", "useConnectionInteractionHighlighting", "layerId", "sourceId", "map", "hoveredLayerId", "hoveredConnectionIds", "onMouseMoveHandler", "features", "currentMap", "id", "hoveredConnection", "hoveredConnectionSource", "_", "index", "onMouseLeaveHandler"]
7
+ }
@@ -0,0 +1,16 @@
1
+ /**
2
+ * @license
3
+ * Copyright 2023 Dynatrace LLC
4
+ * Licensed under the Apache License, Version 2.0 (the "License");
5
+ * you may not use this file except in compliance with the License.
6
+ * You may obtain a copy of the License at
7
+ *
8
+ * http://www.apache.org/licenses/LICENSE-2.0
9
+ *
10
+ * Unless required by applicable law or agreed to in writing, software
11
+ * distributed under the License is distributed on an "AS IS" BASIS,
12
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
+ * See the License for the specific language governing permissions and
14
+ * limitations under the License.
15
+ */import o from"react";import{MapDataBoundingBoxContext as t}from"../contexts/map-data-bounding-box.context.js";const e=()=>o.useContext(t);export{e as useDataBoundingBox};
16
+ //# sourceMappingURL=use-data-bounding-box.js.map
@@ -0,0 +1,7 @@
1
+ {
2
+ "version": 3,
3
+ "sources": ["../../../../src/map/hooks/use-data-bounding-box.ts"],
4
+ "sourcesContent": ["/**\n * @license\n * Copyright 2023 Dynatrace LLC\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\nimport React from 'react';\n\nimport { MapDataBoundingBoxContext } from '../contexts/map-data-bounding-box.context.js';\n\nexport const useDataBoundingBox = () =>\n React.useContext(MapDataBoundingBoxContext);\n"],
5
+ "mappings": "AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,GAeA,OAAOA,MAAW,QAElB,OAAS,6BAAAC,MAAiC,+CAEnC,MAAMC,EAAqB,IAChCF,EAAM,WAAWC,CAAyB",
6
+ "names": ["React", "MapDataBoundingBoxContext", "useDataBoundingBox"]
7
+ }
@@ -0,0 +1,16 @@
1
+ /**
2
+ * @license
3
+ * Copyright 2023 Dynatrace LLC
4
+ * Licensed under the Apache License, Version 2.0 (the "License");
5
+ * you may not use this file except in compliance with the License.
6
+ * You may obtain a copy of the License at
7
+ *
8
+ * http://www.apache.org/licenses/LICENSE-2.0
9
+ *
10
+ * Unless required by applicable law or agreed to in writing, software
11
+ * distributed under the License is distributed on an "AS IS" BASIS,
12
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
+ * See the License for the specific language governing permissions and
14
+ * limitations under the License.
15
+ */import{isNil as d,isUndefined as o}from"lodash-es";import{useCallback as f,useEffect as l}from"react";import{useMap as m}from"react-map-gl/maplibre";import{BASE_LAYER_IDS as v}from"../constants.js";const F=()=>{const e=m().current;let r,t;const a=f(({point:n})=>{const s=e.queryRenderedFeatures(n);e.getCanvas().style.cursor="grab";const u=s?.[0]?.layer?.id,i=!d(s)&&s.length>0&&!o(u),c=v.includes(u);i&&!c?(e.getCanvas().style.cursor="pointer",!o(r)&&!o(t)&&e.setFeatureState({source:t,id:r},{hover:!1}),r=s[0].id,t=s[0].layer.source,e.setFeatureState({source:t,id:r},{hover:!0})):(e.getCanvas().style.cursor="grab",!o(r)&&!o(t)&&e.setFeatureState({source:t,id:r},{hover:!1}))},[r,t,e]);l(()=>(e.on("mousemove",a),()=>{e.off("mousemove",a)}),[])};export{F as useHoverInteraction};
16
+ //# sourceMappingURL=use-hover-interaction.js.map
@@ -0,0 +1,7 @@
1
+ {
2
+ "version": 3,
3
+ "sources": ["../../../../src/map/hooks/use-hover-interaction.ts"],
4
+ "sourcesContent": ["/**\n * @license\n * Copyright 2023 Dynatrace LLC\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\nimport { isNil, isUndefined } from 'lodash-es';\nimport { MapLayerMouseEvent } from 'maplibre-gl';\nimport { useCallback, useEffect } from 'react';\nimport { useMap } from 'react-map-gl/maplibre';\n\nimport { BASE_LAYER_IDS } from '../constants.js';\n\nexport const useHoverInteraction = () => {\n const map = useMap().current!;\n\n let featureId: string | number | undefined;\n let sourceId: string | undefined;\n const handleMouseMove = useCallback(\n ({ point }: MapLayerMouseEvent) => {\n const features = map.queryRenderedFeatures(point);\n\n map.getCanvas().style.cursor = 'grab';\n const layerId = features?.[0]?.layer?.id;\n\n const hasHoveredFeatures =\n !isNil(features) && features.length > 0 && !isUndefined(layerId);\n const isBaseLayer = BASE_LAYER_IDS.includes(layerId);\n\n if (hasHoveredFeatures && !isBaseLayer) {\n map.getCanvas().style.cursor = 'pointer';\n\n if (!isUndefined(featureId) && !isUndefined(sourceId)) {\n // if there's already a hovered feature, remove the hover state\n map.setFeatureState(\n { source: sourceId, id: featureId },\n { hover: false },\n );\n }\n\n featureId = features[0].id;\n sourceId = features[0].layer.source;\n\n // add the hover state to the closest feature\n map.setFeatureState(\n { source: sourceId, id: featureId },\n { hover: true },\n );\n } else {\n map.getCanvas().style.cursor = 'grab';\n\n if (!isUndefined(featureId) && !isUndefined(sourceId)) {\n // remove the active state from the last hovered feature\n map.setFeatureState(\n { source: sourceId, id: featureId },\n { hover: false },\n );\n }\n }\n },\n [featureId, sourceId, map],\n );\n\n useEffect(() => {\n map.on('mousemove', handleMouseMove);\n return () => {\n map.off('mousemove', handleMouseMove);\n };\n }, []);\n};\n"],
5
+ "mappings": "AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,GAeA,OAAS,SAAAA,EAAO,eAAAC,MAAmB,YAEnC,OAAS,eAAAC,EAAa,aAAAC,MAAiB,QACvC,OAAS,UAAAC,MAAc,wBAEvB,OAAS,kBAAAC,MAAsB,kBAExB,MAAMC,EAAsB,IAAM,CACvC,MAAMC,EAAMH,EAAO,EAAE,QAErB,IAAII,EACAC,EACJ,MAAMC,EAAkBR,EACtB,CAAC,CAAE,MAAAS,CAAM,IAA0B,CACjC,MAAMC,EAAWL,EAAI,sBAAsBI,CAAK,EAEhDJ,EAAI,UAAU,EAAE,MAAM,OAAS,OAC/B,MAAMM,EAAUD,IAAW,CAAC,GAAG,OAAO,GAEhCE,EACJ,CAACd,EAAMY,CAAQ,GAAKA,EAAS,OAAS,GAAK,CAACX,EAAYY,CAAO,EAC3DE,EAAcV,EAAe,SAASQ,CAAO,EAE/CC,GAAsB,CAACC,GACzBR,EAAI,UAAU,EAAE,MAAM,OAAS,UAE3B,CAACN,EAAYO,CAAS,GAAK,CAACP,EAAYQ,CAAQ,GAElDF,EAAI,gBACF,CAAE,OAAQE,EAAU,GAAID,CAAU,EAClC,CAAE,MAAO,EAAM,CACjB,EAGFA,EAAYI,EAAS,CAAC,EAAE,GACxBH,EAAWG,EAAS,CAAC,EAAE,MAAM,OAG7BL,EAAI,gBACF,CAAE,OAAQE,EAAU,GAAID,CAAU,EAClC,CAAE,MAAO,EAAK,CAChB,IAEAD,EAAI,UAAU,EAAE,MAAM,OAAS,OAE3B,CAACN,EAAYO,CAAS,GAAK,CAACP,EAAYQ,CAAQ,GAElDF,EAAI,gBACF,CAAE,OAAQE,EAAU,GAAID,CAAU,EAClC,CAAE,MAAO,EAAM,CACjB,EAGN,EACA,CAACA,EAAWC,EAAUF,CAAG,CAC3B,EAEAJ,EAAU,KACRI,EAAI,GAAG,YAAaG,CAAe,EAC5B,IAAM,CACXH,EAAI,IAAI,YAAaG,CAAe,CACtC,GACC,CAAC,CAAC,CACP",
6
+ "names": ["isNil", "isUndefined", "useCallback", "useEffect", "useMap", "BASE_LAYER_IDS", "useHoverInteraction", "map", "featureId", "sourceId", "handleMouseMove", "point", "features", "layerId", "hasHoveredFeatures", "isBaseLayer"]
7
+ }
@@ -0,0 +1,16 @@
1
+ /**
2
+ * @license
3
+ * Copyright 2023 Dynatrace LLC
4
+ * Licensed under the Apache License, Version 2.0 (the "License");
5
+ * you may not use this file except in compliance with the License.
6
+ * You may obtain a copy of the License at
7
+ *
8
+ * http://www.apache.org/licenses/LICENSE-2.0
9
+ *
10
+ * Unless required by applicable law or agreed to in writing, software
11
+ * distributed under the License is distributed on an "AS IS" BASIS,
12
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
+ * See the License for the specific language governing permissions and
14
+ * limitations under the License.
15
+ */import{useContext as t}from"react";import{MapInitialViewContext as o}from"../contexts/map-initial-view.context.js";const n=()=>t(o);export{n as useInitialViewContext};
16
+ //# sourceMappingURL=use-initial-view-context.js.map
@@ -0,0 +1,7 @@
1
+ {
2
+ "version": 3,
3
+ "sources": ["../../../../src/map/hooks/use-initial-view-context.ts"],
4
+ "sourcesContent": ["/**\n * @license\n * Copyright 2023 Dynatrace LLC\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\nimport { useContext } from 'react';\n\nimport { MapInitialViewContext } from '../contexts/map-initial-view.context.js';\n\nexport const useInitialViewContext = () => useContext(MapInitialViewContext);\n"],
5
+ "mappings": "AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,GAeA,OAAS,cAAAA,MAAkB,QAE3B,OAAS,yBAAAC,MAA6B,0CAE/B,MAAMC,EAAwB,IAAMF,EAAWC,CAAqB",
6
+ "names": ["useContext", "MapInitialViewContext", "useInitialViewContext"]
7
+ }