@mapvx/web-js 4.0.3 → 4.0.4

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 (338) hide show
  1. package/dist/cjs/index.js +4 -2
  2. package/dist/es/assets/icons.d.ts +0 -1
  3. package/dist/es/assets/icons.js +0 -50
  4. package/dist/es/config/draco.d.ts +0 -1
  5. package/dist/es/config/draco.js +0 -10
  6. package/dist/es/config/sdkConfig.d.ts +0 -1
  7. package/dist/es/config/sdkConfig.js +0 -1
  8. package/dist/es/controllers/markerLayoutController.d.ts +0 -1
  9. package/dist/es/controllers/markerLayoutController.js +0 -103
  10. package/dist/es/controllers/routeController.d.ts +0 -1
  11. package/dist/es/controllers/routeController.js +1 -473
  12. package/dist/es/domain/models/_internal.d.ts +0 -1
  13. package/dist/es/domain/models/_internal.js +0 -8
  14. package/dist/es/domain/models/animation.d.ts +0 -1
  15. package/dist/es/domain/models/animation.js +0 -6
  16. package/dist/es/domain/models/banner.d.ts +0 -1
  17. package/dist/es/domain/models/banner.js +0 -10
  18. package/dist/es/domain/models/campaign.d.ts +0 -1
  19. package/dist/es/domain/models/campaign.js +0 -29
  20. package/dist/es/domain/models/categories.d.ts +0 -1
  21. package/dist/es/domain/models/categories.js +0 -20
  22. package/dist/es/domain/models/circle.d.ts +0 -1
  23. package/dist/es/domain/models/circle.js +0 -118
  24. package/dist/es/domain/models/cityFilterOption.d.ts +0 -1
  25. package/dist/es/domain/models/cityFilterOption.js +0 -1
  26. package/dist/es/domain/models/configuration.d.ts +0 -1
  27. package/dist/es/domain/models/configuration.js +0 -1
  28. package/dist/es/domain/models/cssCustomization.d.ts +0 -1
  29. package/dist/es/domain/models/cssCustomization.js +0 -1
  30. package/dist/es/domain/models/fitOptions.d.ts +0 -1
  31. package/dist/es/domain/models/fitOptions.js +0 -1
  32. package/dist/es/domain/models/innerFloors.d.ts +0 -1
  33. package/dist/es/domain/models/innerFloors.js +0 -1
  34. package/dist/es/domain/models/institution.d.ts +0 -1
  35. package/dist/es/domain/models/institution.js +0 -26
  36. package/dist/es/domain/models/latLng.d.ts +0 -1
  37. package/dist/es/domain/models/latLng.js +0 -1
  38. package/dist/es/domain/models/location.d.ts +0 -1
  39. package/dist/es/domain/models/location.js +0 -1
  40. package/dist/es/domain/models/loggeable.d.ts +0 -1
  41. package/dist/es/domain/models/loggeable.js +0 -24
  42. package/dist/es/domain/models/mapCamera.d.ts +0 -1
  43. package/dist/es/domain/models/mapCamera.js +0 -1
  44. package/dist/es/domain/models/mapConfig.d.ts +0 -1
  45. package/dist/es/domain/models/mapConfig.js +1 -17
  46. package/dist/es/domain/models/marker.d.ts +0 -1
  47. package/dist/es/domain/models/marker.js +0 -292
  48. package/dist/es/domain/models/multilanguage.d.ts +0 -1
  49. package/dist/es/domain/models/multilanguage.js +0 -10
  50. package/dist/es/domain/models/openingHours.d.ts +0 -1
  51. package/dist/es/domain/models/openingHours.js +0 -1
  52. package/dist/es/domain/models/place.d.ts +0 -1
  53. package/dist/es/domain/models/place.js +0 -68
  54. package/dist/es/domain/models/platform.d.ts +0 -1
  55. package/dist/es/domain/models/platform.js +0 -1
  56. package/dist/es/domain/models/popover.d.ts +0 -1
  57. package/dist/es/domain/models/popover.js +0 -1
  58. package/dist/es/domain/models/product.d.ts +0 -1
  59. package/dist/es/domain/models/product.js +0 -1
  60. package/dist/es/domain/models/property.d.ts +0 -1
  61. package/dist/es/domain/models/property.js +0 -16
  62. package/dist/es/domain/models/route.d.ts +0 -1
  63. package/dist/es/domain/models/route.js +0 -71
  64. package/dist/es/domain/models/routeConfiguration.d.ts +0 -1
  65. package/dist/es/domain/models/routeConfiguration.js +0 -36
  66. package/dist/es/domain/models/routeInstance.d.ts +0 -1
  67. package/dist/es/domain/models/routeInstance.js +0 -8
  68. package/dist/es/domain/models/routeStyle.d.ts +0 -1
  69. package/dist/es/domain/models/routeStyle.js +0 -1
  70. package/dist/es/domain/models/scene3D.d.ts +0 -1
  71. package/dist/es/domain/models/scene3D.js +0 -1
  72. package/dist/es/domain/models/transport.d.ts +0 -1
  73. package/dist/es/domain/models/transport.js +0 -12
  74. package/dist/es/domain/ports/ICache.d.ts +0 -1
  75. package/dist/es/domain/ports/ICache.js +0 -1
  76. package/dist/es/domain/ports/IHttpClient.d.ts +0 -1
  77. package/dist/es/domain/ports/IHttpClient.js +0 -1
  78. package/dist/es/domain/ports/ILogger.d.ts +0 -1
  79. package/dist/es/domain/ports/ILogger.js +0 -9
  80. package/dist/es/domain/ports/index.d.ts +0 -1
  81. package/dist/es/domain/ports/index.js +0 -5
  82. package/dist/es/index.d.ts +0 -1
  83. package/dist/es/index.js +1 -28
  84. package/dist/es/infrastructure/cache/CacheManager.d.ts +0 -1
  85. package/dist/es/infrastructure/cache/CacheManager.js +0 -94
  86. package/dist/es/infrastructure/cache/LRUCache.d.ts +0 -1
  87. package/dist/es/infrastructure/cache/LRUCache.js +0 -57
  88. package/dist/es/infrastructure/cache/PersistentCache.d.ts +0 -1
  89. package/dist/es/infrastructure/cache/PersistentCache.js +0 -51
  90. package/dist/es/infrastructure/cache/cacheConfig.d.ts +0 -1
  91. package/dist/es/infrastructure/cache/cacheConfig.js +8 -27
  92. package/dist/es/infrastructure/http/FetchHttpClient.d.ts +0 -1
  93. package/dist/es/infrastructure/http/FetchHttpClient.js +0 -36
  94. package/dist/es/infrastructure/logging/MVXLogger.d.ts +0 -1
  95. package/dist/es/infrastructure/logging/MVXLogger.js +0 -37
  96. package/dist/es/interfaces/cache.d.ts +0 -1
  97. package/dist/es/interfaces/cache.js +0 -1
  98. package/dist/es/interfaces/healthResponse.d.ts +0 -1
  99. package/dist/es/interfaces/healthResponse.js +0 -1
  100. package/dist/es/interfaces/institutionResponse.d.ts +0 -1
  101. package/dist/es/interfaces/institutionResponse.js +0 -1
  102. package/dist/es/interfaces/metadata.d.ts +0 -1
  103. package/dist/es/interfaces/metadata.js +0 -1
  104. package/dist/es/interfaces/placeResponse.d.ts +0 -1
  105. package/dist/es/interfaces/placeResponse.js +0 -1
  106. package/dist/es/interfaces/routeCacheResponse.d.ts +0 -1
  107. package/dist/es/interfaces/routeCacheResponse.js +0 -1
  108. package/dist/es/interfaces/routeResponse.d.ts +0 -1
  109. package/dist/es/interfaces/routeResponse.js +0 -1
  110. package/dist/es/interfaces/styleResponse.d.ts +0 -1
  111. package/dist/es/interfaces/styleResponse.js +0 -1
  112. package/dist/es/logger/logger.d.ts +0 -1
  113. package/dist/es/logger/logger.js +0 -10
  114. package/dist/es/logger/sentry.d.ts +0 -1
  115. package/dist/es/logger/sentry.js +1 -39
  116. package/dist/es/map/fitCamera.d.ts +0 -1
  117. package/dist/es/map/fitCamera.js +0 -44
  118. package/dist/es/map/generated/maplibreWorkerSource.d.ts +0 -1
  119. package/dist/es/map/generated/maplibreWorkerSource.js +0 -12
  120. package/dist/es/map/installMapLibreWorker.d.ts +0 -1
  121. package/dist/es/map/installMapLibreWorker.js +0 -100
  122. package/dist/es/map/liveMapFitTransform.d.ts +0 -1
  123. package/dist/es/map/liveMapFitTransform.js +0 -82
  124. package/dist/es/map/map.d.ts +0 -1
  125. package/dist/es/map/map.js +4 -681
  126. package/dist/es/map/mapInteractionOptions.d.ts +0 -1
  127. package/dist/es/map/mapInteractionOptions.js +0 -35
  128. package/dist/es/map/scene3DController.d.ts +0 -1
  129. package/dist/es/map/scene3DController.js +0 -221
  130. package/dist/es/repository/repository.d.ts +0 -1
  131. package/dist/es/repository/repository.js +0 -56
  132. package/dist/es/repository/requester.d.ts +0 -1
  133. package/dist/es/repository/requester.js +0 -233
  134. package/dist/es/sdk.d.ts +0 -1
  135. package/dist/es/sdk.js +0 -35
  136. package/dist/es/utils/3d.d.ts +0 -1
  137. package/dist/es/utils/3d.js +0 -79
  138. package/dist/es/utils/deckLayers.d.ts +0 -1
  139. package/dist/es/utils/deckLayers.js +1 -27
  140. package/dist/es/utils/error.d.ts +0 -1
  141. package/dist/es/utils/error.js +0 -7
  142. package/dist/es/utils/images.d.ts +0 -1
  143. package/dist/es/utils/images.js +0 -7
  144. package/dist/es/utils/loadGlb.d.ts +0 -1
  145. package/dist/es/utils/loadGlb.js +2 -96
  146. package/dist/es/utils/mapvxHostname.d.ts +0 -1
  147. package/dist/es/utils/mapvxHostname.js +0 -11
  148. package/dist/es/utils/nav-functions.d.ts +0 -1
  149. package/dist/es/utils/nav-functions.js +0 -82
  150. package/dist/es/utils/opening-hours-helper.d.ts +0 -1
  151. package/dist/es/utils/opening-hours-helper.js +6 -382
  152. package/dist/es/utils/preconnect.d.ts +0 -1
  153. package/dist/es/utils/preconnect.js +0 -61
  154. package/dist/es/utils/route-utils.d.ts +0 -1
  155. package/dist/es/utils/route-utils.js +0 -25
  156. package/dist/es/utils/semaphore.d.ts +0 -1
  157. package/dist/es/utils/semaphore.js +0 -78
  158. package/dist/es/utils/three.d.ts +0 -1
  159. package/dist/es/utils/three.js +0 -43
  160. package/dist/es/utils/threeScene.d.ts +0 -1
  161. package/dist/es/utils/threeScene.js +0 -38
  162. package/dist/es/utils/update-css.d.ts +0 -1
  163. package/dist/es/utils/update-css.js +0 -26
  164. package/dist/es/utils/utils.d.ts +0 -1
  165. package/dist/es/utils/utils.js +0 -53
  166. package/dist/umd/index.js +4 -29240
  167. package/dist/umd/index.js.LICENSE.txt +1 -0
  168. package/dist/umd/styles.css +0 -1
  169. package/dist/umd/styles.js +3 -32
  170. package/package.json +11 -5
  171. package/dist/cjs/index.js.map +0 -1
  172. package/dist/es/assets/icons.d.ts.map +0 -1
  173. package/dist/es/assets/icons.js.map +0 -1
  174. package/dist/es/config/draco.d.ts.map +0 -1
  175. package/dist/es/config/draco.js.map +0 -1
  176. package/dist/es/config/sdkConfig.d.ts.map +0 -1
  177. package/dist/es/config/sdkConfig.js.map +0 -1
  178. package/dist/es/controllers/markerLayoutController.d.ts.map +0 -1
  179. package/dist/es/controllers/markerLayoutController.js.map +0 -1
  180. package/dist/es/controllers/routeController.d.ts.map +0 -1
  181. package/dist/es/controllers/routeController.js.map +0 -1
  182. package/dist/es/domain/models/_internal.d.ts.map +0 -1
  183. package/dist/es/domain/models/_internal.js.map +0 -1
  184. package/dist/es/domain/models/animation.d.ts.map +0 -1
  185. package/dist/es/domain/models/animation.js.map +0 -1
  186. package/dist/es/domain/models/banner.d.ts.map +0 -1
  187. package/dist/es/domain/models/banner.js.map +0 -1
  188. package/dist/es/domain/models/campaign.d.ts.map +0 -1
  189. package/dist/es/domain/models/campaign.js.map +0 -1
  190. package/dist/es/domain/models/categories.d.ts.map +0 -1
  191. package/dist/es/domain/models/categories.js.map +0 -1
  192. package/dist/es/domain/models/circle.d.ts.map +0 -1
  193. package/dist/es/domain/models/circle.js.map +0 -1
  194. package/dist/es/domain/models/cityFilterOption.d.ts.map +0 -1
  195. package/dist/es/domain/models/cityFilterOption.js.map +0 -1
  196. package/dist/es/domain/models/configuration.d.ts.map +0 -1
  197. package/dist/es/domain/models/configuration.js.map +0 -1
  198. package/dist/es/domain/models/cssCustomization.d.ts.map +0 -1
  199. package/dist/es/domain/models/cssCustomization.js.map +0 -1
  200. package/dist/es/domain/models/fitOptions.d.ts.map +0 -1
  201. package/dist/es/domain/models/fitOptions.js.map +0 -1
  202. package/dist/es/domain/models/innerFloors.d.ts.map +0 -1
  203. package/dist/es/domain/models/innerFloors.js.map +0 -1
  204. package/dist/es/domain/models/institution.d.ts.map +0 -1
  205. package/dist/es/domain/models/institution.js.map +0 -1
  206. package/dist/es/domain/models/latLng.d.ts.map +0 -1
  207. package/dist/es/domain/models/latLng.js.map +0 -1
  208. package/dist/es/domain/models/location.d.ts.map +0 -1
  209. package/dist/es/domain/models/location.js.map +0 -1
  210. package/dist/es/domain/models/loggeable.d.ts.map +0 -1
  211. package/dist/es/domain/models/loggeable.js.map +0 -1
  212. package/dist/es/domain/models/mapCamera.d.ts.map +0 -1
  213. package/dist/es/domain/models/mapCamera.js.map +0 -1
  214. package/dist/es/domain/models/mapConfig.d.ts.map +0 -1
  215. package/dist/es/domain/models/mapConfig.js.map +0 -1
  216. package/dist/es/domain/models/marker.d.ts.map +0 -1
  217. package/dist/es/domain/models/marker.js.map +0 -1
  218. package/dist/es/domain/models/multilanguage.d.ts.map +0 -1
  219. package/dist/es/domain/models/multilanguage.js.map +0 -1
  220. package/dist/es/domain/models/openingHours.d.ts.map +0 -1
  221. package/dist/es/domain/models/openingHours.js.map +0 -1
  222. package/dist/es/domain/models/place.d.ts.map +0 -1
  223. package/dist/es/domain/models/place.js.map +0 -1
  224. package/dist/es/domain/models/platform.d.ts.map +0 -1
  225. package/dist/es/domain/models/platform.js.map +0 -1
  226. package/dist/es/domain/models/popover.d.ts.map +0 -1
  227. package/dist/es/domain/models/popover.js.map +0 -1
  228. package/dist/es/domain/models/product.d.ts.map +0 -1
  229. package/dist/es/domain/models/product.js.map +0 -1
  230. package/dist/es/domain/models/property.d.ts.map +0 -1
  231. package/dist/es/domain/models/property.js.map +0 -1
  232. package/dist/es/domain/models/route.d.ts.map +0 -1
  233. package/dist/es/domain/models/route.js.map +0 -1
  234. package/dist/es/domain/models/routeConfiguration.d.ts.map +0 -1
  235. package/dist/es/domain/models/routeConfiguration.js.map +0 -1
  236. package/dist/es/domain/models/routeInstance.d.ts.map +0 -1
  237. package/dist/es/domain/models/routeInstance.js.map +0 -1
  238. package/dist/es/domain/models/routeStyle.d.ts.map +0 -1
  239. package/dist/es/domain/models/routeStyle.js.map +0 -1
  240. package/dist/es/domain/models/scene3D.d.ts.map +0 -1
  241. package/dist/es/domain/models/scene3D.js.map +0 -1
  242. package/dist/es/domain/models/transport.d.ts.map +0 -1
  243. package/dist/es/domain/models/transport.js.map +0 -1
  244. package/dist/es/domain/ports/ICache.d.ts.map +0 -1
  245. package/dist/es/domain/ports/ICache.js.map +0 -1
  246. package/dist/es/domain/ports/IHttpClient.d.ts.map +0 -1
  247. package/dist/es/domain/ports/IHttpClient.js.map +0 -1
  248. package/dist/es/domain/ports/ILogger.d.ts.map +0 -1
  249. package/dist/es/domain/ports/ILogger.js.map +0 -1
  250. package/dist/es/domain/ports/index.d.ts.map +0 -1
  251. package/dist/es/domain/ports/index.js.map +0 -1
  252. package/dist/es/index.d.ts.map +0 -1
  253. package/dist/es/index.js.map +0 -1
  254. package/dist/es/infrastructure/cache/CacheManager.d.ts.map +0 -1
  255. package/dist/es/infrastructure/cache/CacheManager.js.map +0 -1
  256. package/dist/es/infrastructure/cache/LRUCache.d.ts.map +0 -1
  257. package/dist/es/infrastructure/cache/LRUCache.js.map +0 -1
  258. package/dist/es/infrastructure/cache/PersistentCache.d.ts.map +0 -1
  259. package/dist/es/infrastructure/cache/PersistentCache.js.map +0 -1
  260. package/dist/es/infrastructure/cache/cacheConfig.d.ts.map +0 -1
  261. package/dist/es/infrastructure/cache/cacheConfig.js.map +0 -1
  262. package/dist/es/infrastructure/http/FetchHttpClient.d.ts.map +0 -1
  263. package/dist/es/infrastructure/http/FetchHttpClient.js.map +0 -1
  264. package/dist/es/infrastructure/logging/MVXLogger.d.ts.map +0 -1
  265. package/dist/es/infrastructure/logging/MVXLogger.js.map +0 -1
  266. package/dist/es/interfaces/cache.d.ts.map +0 -1
  267. package/dist/es/interfaces/cache.js.map +0 -1
  268. package/dist/es/interfaces/healthResponse.d.ts.map +0 -1
  269. package/dist/es/interfaces/healthResponse.js.map +0 -1
  270. package/dist/es/interfaces/institutionResponse.d.ts.map +0 -1
  271. package/dist/es/interfaces/institutionResponse.js.map +0 -1
  272. package/dist/es/interfaces/metadata.d.ts.map +0 -1
  273. package/dist/es/interfaces/metadata.js.map +0 -1
  274. package/dist/es/interfaces/placeResponse.d.ts.map +0 -1
  275. package/dist/es/interfaces/placeResponse.js.map +0 -1
  276. package/dist/es/interfaces/routeCacheResponse.d.ts.map +0 -1
  277. package/dist/es/interfaces/routeCacheResponse.js.map +0 -1
  278. package/dist/es/interfaces/routeResponse.d.ts.map +0 -1
  279. package/dist/es/interfaces/routeResponse.js.map +0 -1
  280. package/dist/es/interfaces/styleResponse.d.ts.map +0 -1
  281. package/dist/es/interfaces/styleResponse.js.map +0 -1
  282. package/dist/es/logger/logger.d.ts.map +0 -1
  283. package/dist/es/logger/logger.js.map +0 -1
  284. package/dist/es/logger/sentry.d.ts.map +0 -1
  285. package/dist/es/logger/sentry.js.map +0 -1
  286. package/dist/es/map/fitCamera.d.ts.map +0 -1
  287. package/dist/es/map/fitCamera.js.map +0 -1
  288. package/dist/es/map/generated/maplibreWorkerSource.d.ts.map +0 -1
  289. package/dist/es/map/generated/maplibreWorkerSource.js.map +0 -1
  290. package/dist/es/map/installMapLibreWorker.d.ts.map +0 -1
  291. package/dist/es/map/installMapLibreWorker.js.map +0 -1
  292. package/dist/es/map/liveMapFitTransform.d.ts.map +0 -1
  293. package/dist/es/map/liveMapFitTransform.js.map +0 -1
  294. package/dist/es/map/map.d.ts.map +0 -1
  295. package/dist/es/map/map.js.map +0 -1
  296. package/dist/es/map/mapInteractionOptions.d.ts.map +0 -1
  297. package/dist/es/map/mapInteractionOptions.js.map +0 -1
  298. package/dist/es/map/scene3DController.d.ts.map +0 -1
  299. package/dist/es/map/scene3DController.js.map +0 -1
  300. package/dist/es/repository/repository.d.ts.map +0 -1
  301. package/dist/es/repository/repository.js.map +0 -1
  302. package/dist/es/repository/requester.d.ts.map +0 -1
  303. package/dist/es/repository/requester.js.map +0 -1
  304. package/dist/es/sdk.d.ts.map +0 -1
  305. package/dist/es/sdk.js.map +0 -1
  306. package/dist/es/utils/3d.d.ts.map +0 -1
  307. package/dist/es/utils/3d.js.map +0 -1
  308. package/dist/es/utils/deckLayers.d.ts.map +0 -1
  309. package/dist/es/utils/deckLayers.js.map +0 -1
  310. package/dist/es/utils/error.d.ts.map +0 -1
  311. package/dist/es/utils/error.js.map +0 -1
  312. package/dist/es/utils/images.d.ts.map +0 -1
  313. package/dist/es/utils/images.js.map +0 -1
  314. package/dist/es/utils/loadGlb.d.ts.map +0 -1
  315. package/dist/es/utils/loadGlb.js.map +0 -1
  316. package/dist/es/utils/mapvxHostname.d.ts.map +0 -1
  317. package/dist/es/utils/mapvxHostname.js.map +0 -1
  318. package/dist/es/utils/nav-functions.d.ts.map +0 -1
  319. package/dist/es/utils/nav-functions.js.map +0 -1
  320. package/dist/es/utils/opening-hours-helper.d.ts.map +0 -1
  321. package/dist/es/utils/opening-hours-helper.js.map +0 -1
  322. package/dist/es/utils/preconnect.d.ts.map +0 -1
  323. package/dist/es/utils/preconnect.js.map +0 -1
  324. package/dist/es/utils/route-utils.d.ts.map +0 -1
  325. package/dist/es/utils/route-utils.js.map +0 -1
  326. package/dist/es/utils/semaphore.d.ts.map +0 -1
  327. package/dist/es/utils/semaphore.js.map +0 -1
  328. package/dist/es/utils/three.d.ts.map +0 -1
  329. package/dist/es/utils/three.js.map +0 -1
  330. package/dist/es/utils/threeScene.d.ts.map +0 -1
  331. package/dist/es/utils/threeScene.js.map +0 -1
  332. package/dist/es/utils/update-css.d.ts.map +0 -1
  333. package/dist/es/utils/update-css.js.map +0 -1
  334. package/dist/es/utils/utils.d.ts.map +0 -1
  335. package/dist/es/utils/utils.js.map +0 -1
  336. package/dist/umd/index.js.map +0 -1
  337. package/dist/umd/styles.css.map +0 -1
  338. package/dist/umd/styles.js.map +0 -1
@@ -18,4 +18,3 @@ export interface DeviceOrientationEventExtended extends DeviceOrientationEvent {
18
18
  * @group Utils
19
19
  */
20
20
  export declare function isDeviceOrientationEventExtended(event: Event): event is DeviceOrientationEventExtended;
21
- //# sourceMappingURL=_internal.d.ts.map
@@ -1,11 +1,3 @@
1
- /**
2
- * Type guard function to check if an event is a DeviceOrientationEventExtended
3
- *
4
- * @param event The event to check
5
- * @returns True if the event is a DeviceOrientationEventExtended, false otherwise
6
- * @group Utils
7
- */
8
1
  export function isDeviceOrientationEventExtended(event) {
9
2
  return event instanceof DeviceOrientationEvent;
10
3
  }
11
- //# sourceMappingURL=_internal.js.map
@@ -185,4 +185,3 @@ export declare class InternalAnimationDrawingConfig implements AnimationDrawingC
185
185
  get aheadConfig(): InternalDrawRouteConfiguration;
186
186
  get behindConfig(): InternalDrawRouteConfiguration;
187
187
  }
188
- //# sourceMappingURL=animation.d.ts.map
@@ -12,11 +12,6 @@ export class InternalAnimationConfig {
12
12
  this.autoFitByPlace = config.autoFitByPlace;
13
13
  }
14
14
  }
15
- /**
16
- * Represents the drawing configuration for the animation.
17
- * @group Routes
18
- * @hidden
19
- */
20
15
  export class InternalAnimationDrawingConfig {
21
16
  constructor(data) {
22
17
  var _a, _b, _c;
@@ -56,4 +51,3 @@ export class InternalAnimationDrawingConfig {
56
51
  });
57
52
  }
58
53
  }
59
- //# sourceMappingURL=animation.js.map
@@ -61,4 +61,3 @@ export declare class Banner {
61
61
  */
62
62
  constructor(rawBanner: BannerResponse);
63
63
  }
64
- //# sourceMappingURL=banner.d.ts.map
@@ -1,13 +1,4 @@
1
- /**
2
- * Class that represents a banner in MapVX.
3
- * Contains information about the image, tags, and banner behavior.
4
- * @group Places & Locations
5
- */
6
1
  export class Banner {
7
- /**
8
- * Creates a new banner instance from API response data
9
- * @param rawBanner API response data containing banner information
10
- */
11
2
  constructor(rawBanner) {
12
3
  var _a;
13
4
  this.url = rawBanner.url;
@@ -17,4 +8,3 @@ export class Banner {
17
8
  this.description = rawBanner.description;
18
9
  }
19
10
  }
20
- //# sourceMappingURL=banner.js.map
@@ -113,4 +113,3 @@ export declare class Campaign {
113
113
  */
114
114
  constructor(rawCampaign: CampaignResponse);
115
115
  }
116
- //# sourceMappingURL=campaign.d.ts.map
@@ -1,40 +1,12 @@
1
- /**
2
- * Resolves a campaign image's media kind, tolerating the casing and spelling variations a
3
- * backend can return.
4
- *
5
- * A strict `mediaType === "video"` check silently classifies `"VIDEO"`, `"Video"` and
6
- * `"video/mp4"` as images, which puts an mp4 URL in an `<img>` slot — the screensaver
7
- * then holds a blank frame with no warning anywhere. The MIME-ish `type` field is
8
- * consulted as a fallback because it carries the same information (`"video/mp4"`) when
9
- * `mediaType` is missing or unrecognized.
10
- *
11
- * @param mediaType Raw `mediaType` from the API response, if any.
12
- * @param type Raw MIME `type` from the API response, used as the fallback signal.
13
- * @returns `"video"` when either field identifies video, otherwise `"image"`.
14
- * @hidden
15
- */
16
1
  function resolveMediaType(mediaType, type) {
17
2
  const declared = mediaType === null || mediaType === void 0 ? void 0 : mediaType.trim().toLowerCase();
18
3
  if (declared === "video" || (declared === null || declared === void 0 ? void 0 : declared.startsWith("video/")))
19
4
  return "video";
20
5
  if (declared === "image" || (declared === null || declared === void 0 ? void 0 : declared.startsWith("image/")))
21
6
  return "image";
22
- // `mediaType` absent or unrecognized: fall back to the MIME type.
23
7
  return (type === null || type === void 0 ? void 0 : type.trim().toLowerCase().startsWith("video/")) ? "video" : "image";
24
8
  }
25
- /**
26
- * A campaign shown by a totem screensaver. Its media items and weekly schedules
27
- * drive the playlist; the SDK returns campaigns for a maps-group verbatim (it does
28
- * NOT filter by status/date/schedule — the consumer decides which are active).
29
- * @group Campaigns
30
- */
31
9
  export class Campaign {
32
- /**
33
- * Creates a campaign from API response data, applying the same normalization the
34
- * backend uses: an unrecognized `mediaType` falls back to the MIME `type` and then to
35
- * `"image"`, `endDate` defaults to `null`, and `order` mirrors `sortOrder`.
36
- * @param rawCampaign API response data for a campaign.
37
- */
38
10
  constructor(rawCampaign) {
39
11
  var _a, _b, _c, _d, _e, _f;
40
12
  this.id = rawCampaign.id;
@@ -66,4 +38,3 @@ export class Campaign {
66
38
  }));
67
39
  }
68
40
  }
69
- //# sourceMappingURL=campaign.js.map
@@ -178,4 +178,3 @@ export declare function isBasicWithIcon(category: BasicCategory): category is Ba
178
178
  */
179
179
  export declare function isBasicWithImageUrl(category: BasicCategory): category is BasicWithImageUrl;
180
180
  export {};
181
- //# sourceMappingURL=categories.d.ts.map
@@ -1,32 +1,12 @@
1
- // Category.ts
2
- /**
3
- * Checks if the category carries a logo image.
4
- * @group Utils
5
- * @param category - The category to inspect.
6
- * @returns `true` if the category exposes a non-empty `logo` URL, narrowing it to {@link BasicWithLogo}.
7
- */
8
1
  export function isBasicWithLogo(category) {
9
2
  const input = category;
10
3
  return input.logo != null && input.logo !== "";
11
4
  }
12
- /**
13
- * Checks if the category carries a Font Awesome icon.
14
- * @group Utils
15
- * @param category - The category to inspect.
16
- * @returns `true` if the category exposes a non-empty `icon` name, narrowing it to {@link BasicWithIcon}.
17
- */
18
5
  export function isBasicWithIcon(category) {
19
6
  const input = category;
20
7
  return input.icon != null && input.icon !== "";
21
8
  }
22
- /**
23
- * Checks if the category carries an image URL.
24
- * @group Utils
25
- * @param category - The category to inspect.
26
- * @returns `true` if the category exposes a non-empty `imageUrl`, narrowing it to {@link BasicWithImageUrl}.
27
- */
28
9
  export function isBasicWithImageUrl(category) {
29
10
  const input = category;
30
11
  return input.imageUrl != null && input.imageUrl !== "";
31
12
  }
32
- //# sourceMappingURL=categories.js.map
@@ -219,4 +219,3 @@ export declare function resolveCircleConfig(config: CircleConfig, hidden?: boole
219
219
  * @group Circles
220
220
  */
221
221
  export declare function circleRing(lng: number, lat: number, radiusMeters: number, points?: number): [number, number][];
222
- //# sourceMappingURL=circle.d.ts.map
@@ -1,26 +1,10 @@
1
1
  import { generateHexadecimalKey } from "../../utils/utils";
2
- /**
3
- * MapVX brand color used as the default for circle styling and other
4
- * SDK-drawn overlays (colored places, borders).
5
- *
6
- * @group Circles
7
- */
8
2
  export const MAPVX_BRAND_COLOR = "#276EF1";
9
- /**
10
- * Valid values for {@link CircleRenderOrder}, in rendering order.
11
- * @internal
12
- */
13
3
  export const CIRCLE_RENDER_ORDERS = [
14
4
  "belowLabels",
15
5
  "aboveBasemap",
16
6
  "top",
17
7
  ];
18
- /**
19
- * Default styling values applied to a circle when the corresponding
20
- * {@link CircleConfig} fields are omitted.
21
- *
22
- * @group Circles
23
- */
24
8
  export const CIRCLE_DEFAULTS = {
25
9
  fillColor: MAPVX_BRAND_COLOR,
26
10
  fillOpacity: 0.14,
@@ -29,36 +13,14 @@ export const CIRCLE_DEFAULTS = {
29
13
  strokeOpacity: 0.65,
30
14
  renderOrder: "aboveBasemap",
31
15
  };
32
- /**
33
- * Returns a deep copy of a {@link CircleRecord}, including the nested
34
- * coordinate. Used by the map accessors so callers can't mutate internal
35
- * circle state by writing to a returned record.
36
- *
37
- * @param record The circle record to clone.
38
- * @returns An independent copy of the record.
39
- *
40
- * @group Circles
41
- */
42
16
  export function cloneCircleRecord(record) {
43
17
  return Object.assign(Object.assign({}, record), { coordinate: Object.assign({}, record.coordinate) });
44
18
  }
45
- /**
46
- * Validates that a radius in meters is positive and finite.
47
- * @param radius The radius value to validate.
48
- * @throws {Error} If radius is ≤ 0 or not finite (NaN/Infinity).
49
- * @internal
50
- */
51
19
  function validateRadiusMeters(radius) {
52
20
  if (!Number.isFinite(radius) || radius <= 0) {
53
21
  throw new Error(`Invalid radiusMeters: ${radius}. Must be a positive finite number.`);
54
22
  }
55
23
  }
56
- /**
57
- * Validates that a coordinate is within valid geographic bounds.
58
- * @param coord The coordinate to validate.
59
- * @throws {Error} If latitude is outside [-90, 90] or longitude outside [-180, 180], or not finite.
60
- * @internal
61
- */
62
24
  function validateCoordinate(coord) {
63
25
  if (coord == null || typeof coord !== "object") {
64
26
  throw new Error("Invalid coordinate: expected an object with lat and lng properties.");
@@ -73,36 +35,11 @@ function validateCoordinate(coord) {
73
35
  `latitude must be in [-90, 90], longitude in [-180, 180], and both finite.`);
74
36
  }
75
37
  }
76
- /**
77
- * Clamps an opacity value to the valid range [0, 1].
78
- * @param opacity The opacity value to clamp.
79
- * @param defaultValue Value to use if opacity is not a finite number.
80
- * @returns The clamped opacity value.
81
- * @internal
82
- */
83
38
  function clampOpacity(opacity, defaultValue) {
84
39
  if (!Number.isFinite(opacity))
85
40
  return defaultValue;
86
41
  return Math.max(0, Math.min(1, opacity));
87
42
  }
88
- /**
89
- * Type guard for validating circle configurations without throwing.
90
- * Returns true if the configuration is valid and can be added to the map.
91
- *
92
- * @param config Configuration to validate.
93
- * @returns True if config is a valid CircleConfig, false otherwise.
94
- *
95
- * @example
96
- * ```typescript
97
- * if (isValidCircleConfig(userInput)) {
98
- * map.addCircle(userInput);
99
- * } else {
100
- * console.error('Invalid circle configuration');
101
- * }
102
- * ```
103
- *
104
- * @group Circles
105
- */
106
43
  export function isValidCircleConfig(config) {
107
44
  if (config === null || config === undefined || typeof config !== "object") {
108
45
  return false;
@@ -152,17 +89,6 @@ export function isValidCircleConfig(config) {
152
89
  }
153
90
  return true;
154
91
  }
155
- /**
156
- * Resolves a {@link CircleConfig} into a {@link CircleRecord}, applying
157
- * default styling, generating an id when one is not provided, and validating inputs.
158
- *
159
- * @param config Circle configuration provided by the SDK consumer.
160
- * @param hidden Initial hidden state, defaults to visible.
161
- * @returns The resolved circle record ready to be stored and rendered.
162
- * @throws {Error} If radiusMeters is ≤ 0, not finite, or coordinates are invalid.
163
- *
164
- * @group Circles
165
- */
166
92
  export function resolveCircleConfig(config, hidden = false) {
167
93
  var _a, _b, _c, _d, _e;
168
94
  validateRadiusMeters(config.radiusMeters);
@@ -173,8 +99,6 @@ export function resolveCircleConfig(config, hidden = false) {
173
99
  }
174
100
  return {
175
101
  id: (_a = config.id) !== null && _a !== void 0 ? _a : generateHexadecimalKey(),
176
- // Copy the coordinate so later mutations of the caller's object
177
- // can't change internal circle state
178
102
  coordinate: { lat: config.coordinate.lat, lng: config.coordinate.lng },
179
103
  radiusMeters: config.radiusMeters,
180
104
  fillColor: (_b = config.fillColor) !== null && _b !== void 0 ? _b : CIRCLE_DEFAULTS.fillColor,
@@ -187,47 +111,7 @@ export function resolveCircleConfig(config, hidden = false) {
187
111
  hidden,
188
112
  };
189
113
  }
190
- /**
191
- * Builds a closed GeoJSON polygon ring approximating a geographic circle.
192
- *
193
- * The ring is computed with an equirectangular approximation: meters are
194
- * converted to degrees independently per axis, with the longitude scale
195
- * corrected by the cosine of the latitude. For the radii the SDK works with
196
- * (tens to hundreds of meters) the metric error is negligible (≤1%) at any latitude
197
- * where the projection is defined. At extreme polar latitudes, the approximation
198
- * breaks down, so circles near poles (|lat| > 85°) should be used with caution.
199
- *
200
- * @param lng Longitude of the circle center in degrees.
201
- * @param lat Latitude of the circle center in degrees.
202
- * @param radiusMeters Radius of the circle in meters. Must be positive and finite.
203
- * @param points Number of segments in the ring. Defaults to 64. Non-integer
204
- * values are floored and the count is clamped to a minimum of 3,
205
- * the smallest valid GeoJSON linear ring; non-finite values fall
206
- * back to the default.
207
- * @returns A closed ring of `[lng, lat]` positions (first equals last).
208
- *
209
- * @example
210
- * ```typescript
211
- * import { circleRing } from '@mapvx/web-js';
212
- *
213
- * // Create a 150-meter radius circle ring
214
- * const ring = circleRing(-74.0060, 40.7128, 150);
215
- * const polygon = { type: "Polygon", coordinates: [ring] };
216
- *
217
- * // Custom segments (32 instead of 64) for lower resolution
218
- * const coarseRing = circleRing(-74.0060, 40.7128, 150, 32);
219
- * ```
220
- *
221
- * @note Equirectangular approximation is accurate for radii up to ~500 km and
222
- * latitudes between approximately ±80°. Beyond these limits, visual
223
- * distortion may occur near the poles.
224
- * @note Generated rings do not account for geographic obstacles, walls, or
225
- * buildings. For complex geofencing, consider server-side validation.
226
- *
227
- * @group Circles
228
- */
229
114
  export function circleRing(lng, lat, radiusMeters, points = 64) {
230
- // A linear ring needs at least 3 distinct positions to be valid GeoJSON
231
115
  const segments = Number.isFinite(points) ? Math.max(3, Math.floor(points)) : 64;
232
116
  const ring = [];
233
117
  const latRad = (lat * Math.PI) / 180;
@@ -239,8 +123,6 @@ export function circleRing(lng, lat, radiusMeters, points = 64) {
239
123
  const a = (i / segments) * Math.PI * 2;
240
124
  ring.push([lng + lngR * Math.cos(a), lat + latR * Math.sin(a)]);
241
125
  }
242
- // Close the ring with an exact copy of the first position, as GeoJSON requires
243
126
  ring.push([ring[0][0], ring[0][1]]);
244
127
  return ring;
245
128
  }
246
- //# sourceMappingURL=circle.js.map
@@ -12,4 +12,3 @@ export interface ParentPlaceCityFilterOption {
12
12
  institutionId: string;
13
13
  }
14
14
  export type CityFilterOption = InstitutionCityFilterOption | ParentPlaceCityFilterOption;
15
- //# sourceMappingURL=cityFilterOption.d.ts.map
@@ -1,2 +1 @@
1
1
  export {};
2
- //# sourceMappingURL=cityFilterOption.js.map
@@ -528,4 +528,3 @@ export interface Configuration {
528
528
  */
529
529
  routingUnitSystem?: string;
530
530
  }
531
- //# sourceMappingURL=configuration.d.ts.map
@@ -1,2 +1 @@
1
1
  export {};
2
- //# sourceMappingURL=configuration.js.map
@@ -60,4 +60,3 @@ export interface CssDefinitions {
60
60
  */
61
61
  textFonts?: Record<string, string>;
62
62
  }
63
- //# sourceMappingURL=cssCustomization.d.ts.map
@@ -1,2 +1 @@
1
1
  export {};
2
- //# sourceMappingURL=cssCustomization.js.map
@@ -172,4 +172,3 @@ export interface BoundsOptions {
172
172
  */
173
173
  onComplete?: () => void;
174
174
  }
175
- //# sourceMappingURL=fitOptions.d.ts.map
@@ -1,2 +1 @@
1
1
  export {};
2
- //# sourceMappingURL=fitOptions.js.map
@@ -39,4 +39,3 @@ export interface InnerFloor {
39
39
  */
40
40
  reachableFromGPS?: boolean;
41
41
  }
42
- //# sourceMappingURL=innerFloors.d.ts.map
@@ -1,2 +1 @@
1
1
  export {};
2
- //# sourceMappingURL=innerFloors.js.map
@@ -66,4 +66,3 @@ export declare class Institution {
66
66
  */
67
67
  constructor(rawInstitution: InstitutionResponse);
68
68
  }
69
- //# sourceMappingURL=institution.d.ts.map
@@ -1,30 +1,5 @@
1
1
  import { PropertyUtils } from "./property";
2
- /**
3
- * MapVX Institution object, is a custom object containing data of conglomerate of places (enterprise or subdivision).
4
- * Represents a collection of related places that form a larger organizational unit.
5
- *
6
- * @example
7
- * ```typescript
8
- * const institution = new Institution(institutionResponse);
9
- * console.log(institution.title); // "Shopping Mall"
10
- * console.log(institution.hasPlaces); // true
11
- * ```
12
- *
13
- * @group Places & Locations
14
- */
15
2
  export class Institution {
16
- /**
17
- * Creates a new instance of an Institution object with the rawInstitution arguments.
18
- *
19
- * @param rawInstitution - JSON configuration parameters for the institution from API response
20
- * @returns A new instance of Institution
21
- *
22
- * @example
23
- * ```typescript
24
- * const institutionResponse = await fetchInstitutionData(institutionId);
25
- * const institution = new Institution(institutionResponse);
26
- * ```
27
- */
28
3
  constructor(rawInstitution) {
29
4
  var _a;
30
5
  this.mapvxId = rawInstitution.id;
@@ -38,4 +13,3 @@ export class Institution {
38
13
  this.properties = PropertyUtils.parseProperties((_a = rawInstitution.properties) !== null && _a !== void 0 ? _a : []);
39
14
  }
40
15
  }
41
- //# sourceMappingURL=institution.js.map
@@ -11,4 +11,3 @@ export interface LatLng {
11
11
  * @group Utils
12
12
  */
13
13
  export type PositionCallback = (latLng: GeolocationPosition) => void;
14
- //# sourceMappingURL=latLng.d.ts.map
@@ -1,2 +1 @@
1
1
  export {};
2
- //# sourceMappingURL=latLng.js.map
@@ -7,4 +7,3 @@ export interface MVXLocation extends LatLng {
7
7
  floorId?: string;
8
8
  placeId?: string;
9
9
  }
10
- //# sourceMappingURL=location.d.ts.map
@@ -1,2 +1 @@
1
1
  export {};
2
- //# sourceMappingURL=location.js.map
@@ -39,4 +39,3 @@ export declare abstract class Loggeable {
39
39
  */
40
40
  protected debugLog(...args: unknown[]): void;
41
41
  }
42
- //# sourceMappingURL=loggeable.d.ts.map
@@ -1,35 +1,16 @@
1
1
  import { Logger } from "../../logger/logger";
2
2
  import { convertToError } from "../../utils/error";
3
- /**
4
- * Represents the abstract class for the loggeable.
5
- * @hidden
6
- */
7
3
  export class Loggeable {
8
4
  constructor() {
9
5
  this.logger = Logger.getInstance();
10
6
  }
11
- /**
12
- * To log a event in this class.
13
- * @param eventName The event name.
14
- * @param eventSegmentation The pair key, value to segment this event count.
15
- */
16
7
  logEvent(eventName, eventSegmentation = {}) {
17
8
  this.logger.logEvent(eventName, this.prepareSegmentation(eventSegmentation));
18
9
  }
19
- /**
20
- * To log a captured error in this class.
21
- * @param error The captured error
22
- * @param args The rest of the arguments.
23
- */
24
10
  logError(error, ...args) {
25
11
  const errorTyped = convertToError(error);
26
12
  this.logger.logError(errorTyped, ...args);
27
13
  }
28
- /**
29
- * To log a captured error as a warning.
30
- * @param error The captured error
31
- * @param args The rest of the arguments.
32
- */
33
14
  logWarning(error, ...args) {
34
15
  const errorTyped = convertToError(error);
35
16
  this.logger.logWarning(errorTyped, ...args);
@@ -37,12 +18,7 @@ export class Loggeable {
37
18
  logDebug(...args) {
38
19
  this.logger.logDebug(...args);
39
20
  }
40
- /**
41
- * Prints in console any number of given arguments, if and only if, app is running in debug mode.
42
- * @param args An array of arguments to log
43
- */
44
21
  debugLog(...args) {
45
22
  this.logger.debugLog(args);
46
23
  }
47
24
  }
48
- //# sourceMappingURL=loggeable.js.map
@@ -106,4 +106,3 @@ export interface CameraAnimation {
106
106
  */
107
107
  duration?: number;
108
108
  }
109
- //# sourceMappingURL=mapCamera.d.ts.map
@@ -1,2 +1 @@
1
1
  export {};
2
- //# sourceMappingURL=mapCamera.js.map
@@ -610,4 +610,3 @@ export interface MapConfig {
610
610
  */
611
611
  onScene3DModelsProgress?: (progress: Scene3DModelsProgress) => void;
612
612
  }
613
- //# sourceMappingURL=mapConfig.d.ts.map
@@ -1,28 +1,13 @@
1
1
  import { DEFAULT_MAX_LABEL_WIDTH_PX } from "./marker";
2
- /**
3
- * Default values for tile cache configuration
4
- * @internal
5
- */
6
2
  export const DEFAULT_TILE_CACHE_CONFIG = {
7
3
  enabled: true,
8
4
  maxTiles: 400,
9
- ttlMs: 30 * 60 * 1000, // 30 minutes
5
+ ttlMs: 30 * 60 * 1000,
10
6
  persistToServiceWorker: true,
11
7
  preloadAdjacentZooms: false,
12
8
  maxConcurrentTileFetches: 6,
13
9
  };
14
- /**
15
- * Hard cap for {@link MapTileCacheConfig.maxTiles}.
16
- * Configurations above this (e.g. millions) are clamped to avoid memory pressure
17
- * and excessive interaction with the tile CDN / service worker.
18
- *
19
- * @internal
20
- */
21
10
  export const MAPLIBRE_MAX_TILE_CACHE_HARD_CAP = 100000;
22
- /**
23
- * Default values for marker layout configuration
24
- * @internal
25
- */
26
11
  export const DEFAULT_MARKER_LAYOUT_CONFIG = {
27
12
  enabled: true,
28
13
  minZoomForLabels: Number.NEGATIVE_INFINITY,
@@ -31,4 +16,3 @@ export const DEFAULT_MARKER_LAYOUT_CONFIG = {
31
16
  paddingPx: 4,
32
17
  maxLabelWidthPx: DEFAULT_MAX_LABEL_WIDTH_PX,
33
18
  };
34
- //# sourceMappingURL=mapConfig.js.map
@@ -564,4 +564,3 @@ export declare class MarkerAttribute extends Marker {
564
564
  changeFloor(floorId: string | null | undefined, map: Map, isOutdoor?: boolean): void;
565
565
  }
566
566
  export {};
567
- //# sourceMappingURL=marker.d.ts.map