@mountaya/elements 0.1.0 → 0.2.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (862) hide show
  1. package/CHANGELOG.md +38 -0
  2. package/README.md +4 -3
  3. package/THIRD-PARTY-NOTICES.txt +1 -1
  4. package/dist/agent/index.cjs +1152 -1905
  5. package/dist/agent/index.cjs.map +1 -1
  6. package/dist/agent/index.d.cts +1152 -1202
  7. package/dist/agent/index.d.ts +1152 -1202
  8. package/dist/agent/index.js +1147 -1903
  9. package/dist/agent/index.js.map +1 -1
  10. package/dist/camera/index.cjs +2470 -3435
  11. package/dist/camera/index.cjs.map +1 -1
  12. package/dist/camera/index.d.cts +716 -744
  13. package/dist/camera/index.d.ts +716 -744
  14. package/dist/camera/index.js +2438 -3323
  15. package/dist/camera/index.js.map +1 -1
  16. package/dist/{units-D9mBrusY.d.cts → chunk-5pTPpv4v.d.cts} +38 -41
  17. package/dist/{units-D9mBrusY.d.ts → chunk-5pTPpv4v.d.ts} +38 -41
  18. package/dist/{order-BLhsGsH8.d.ts → chunk-6JzFMFHh.d.ts} +15 -28
  19. package/dist/chunk-6qyuJVvt.d.ts +513 -0
  20. package/dist/chunk-9fp0lDic.cjs +583 -0
  21. package/dist/chunk-9fp0lDic.cjs.map +1 -0
  22. package/dist/{zones-B05QA8fy.d.ts → chunk-A48H1rDg.d.cts} +2 -4
  23. package/dist/{zones-B05QA8fy.d.cts → chunk-A48H1rDg.d.ts} +2 -4
  24. package/dist/chunk-B-m1AchR.cjs +57 -0
  25. package/dist/chunk-B-m1AchR.cjs.map +1 -0
  26. package/dist/{bundle-xYrrbJTH.d.ts → chunk-B-qFTf04.d.ts} +51 -57
  27. package/dist/chunk-B0YROiZh.d.cts +1475 -0
  28. package/dist/chunk-B14wgOvH.d.cts +68 -0
  29. package/dist/chunk-B19l3j9r.cjs +150 -0
  30. package/dist/chunk-B19l3j9r.cjs.map +1 -0
  31. package/dist/chunk-B2PtjVKg.cjs +86 -0
  32. package/dist/chunk-B2PtjVKg.cjs.map +1 -0
  33. package/dist/chunk-B56Oyb7W.cjs +70 -0
  34. package/dist/chunk-B56Oyb7W.cjs.map +1 -0
  35. package/dist/chunk-B5WGMQwK.cjs +113 -0
  36. package/dist/chunk-B5WGMQwK.cjs.map +1 -0
  37. package/dist/{types-nO2joeRk.d.ts → chunk-B98mKrdu.d.cts} +103 -122
  38. package/dist/{videoOverlay-Dh_D5_Zs.d.ts → chunk-BB0PmqIM.d.cts} +10 -10
  39. package/dist/chunk-BBikve0Z.cjs +269 -0
  40. package/dist/chunk-BBikve0Z.cjs.map +1 -0
  41. package/dist/chunk-BHeXmM0X.js +37 -0
  42. package/dist/chunk-BHeXmM0X.js.map +1 -0
  43. package/dist/chunk-BI8WZLpU.cjs +281 -0
  44. package/dist/chunk-BI8WZLpU.cjs.map +1 -0
  45. package/dist/chunk-BIEc_SkR.cjs +29 -0
  46. package/dist/chunk-BIEc_SkR.cjs.map +1 -0
  47. package/dist/chunk-BJ6L6_W9.cjs +553 -0
  48. package/dist/chunk-BJ6L6_W9.cjs.map +1 -0
  49. package/dist/chunk-BJ91UCbB.js +11 -0
  50. package/dist/chunk-BJ91UCbB.js.map +1 -0
  51. package/dist/chunk-BJEZWTKj.cjs +166 -0
  52. package/dist/chunk-BJEZWTKj.cjs.map +1 -0
  53. package/dist/chunk-BJz54mfg.cjs +10 -0
  54. package/dist/chunk-BJz54mfg.cjs.map +1 -0
  55. package/dist/{sections-CVlc2Inr.d.cts → chunk-BNX5LAfN.d.cts} +289 -330
  56. package/dist/chunk-BP6KgA86.js +35 -0
  57. package/dist/chunk-BP6KgA86.js.map +1 -0
  58. package/dist/{segmentRoute-C5UL_5bp.d.ts → chunk-BRnjQq6K.d.cts} +44 -59
  59. package/dist/chunk-BSiMEwPS.js +46 -0
  60. package/dist/chunk-BSiMEwPS.js.map +1 -0
  61. package/dist/chunk-BTPjDw_y.cjs +16 -0
  62. package/dist/chunk-BTPjDw_y.cjs.map +1 -0
  63. package/dist/chunk-BTUUABGI.js +17 -0
  64. package/dist/chunk-BTUUABGI.js.map +1 -0
  65. package/dist/chunk-BUeL9y7s.cjs +45 -0
  66. package/dist/chunk-BUeL9y7s.cjs.map +1 -0
  67. package/dist/chunk-BWMuCNc9.cjs +172 -0
  68. package/dist/chunk-BWMuCNc9.cjs.map +1 -0
  69. package/dist/chunk-BWjRfhpF.js +126 -0
  70. package/dist/chunk-BWjRfhpF.js.map +1 -0
  71. package/dist/{types-CTQwbSdA.d.cts → chunk-BZ5KyZXI.d.ts} +103 -122
  72. package/dist/chunk-B_4SVmvh.js +94 -0
  73. package/dist/chunk-B_4SVmvh.js.map +1 -0
  74. package/dist/chunk-BcTUuZQ3.js +95 -0
  75. package/dist/chunk-BcTUuZQ3.js.map +1 -0
  76. package/dist/chunk-BdkqSsJe.cjs +140 -0
  77. package/dist/chunk-BdkqSsJe.cjs.map +1 -0
  78. package/dist/chunk-BfktMVmI.js +70 -0
  79. package/dist/chunk-BfktMVmI.js.map +1 -0
  80. package/dist/chunk-BfzQb0EK.cjs +6 -0
  81. package/dist/chunk-BhWfT-22.d.cts +808 -0
  82. package/dist/chunk-BjJcqX5J.cjs +60 -0
  83. package/dist/chunk-BjJcqX5J.cjs.map +1 -0
  84. package/dist/{geodesy-543qXKtI.d.ts → chunk-Bk0L8g5J.d.cts} +3 -4
  85. package/dist/{geodesy-543qXKtI.d.cts → chunk-Bk0L8g5J.d.ts} +3 -4
  86. package/dist/chunk-Bl4_uVa6.cjs +11 -0
  87. package/dist/chunk-Bl4_uVa6.cjs.map +1 -0
  88. package/dist/chunk-BlKF4lrp.js +43 -0
  89. package/dist/chunk-BlKF4lrp.js.map +1 -0
  90. package/dist/chunk-Bm1FieGR.js +4 -0
  91. package/dist/chunk-Bm1FieGR.js.map +1 -0
  92. package/dist/chunk-Bn6ZbxkS.cjs +27 -0
  93. package/dist/chunk-BpN3hr6a.cjs +541 -0
  94. package/dist/chunk-BpN3hr6a.cjs.map +1 -0
  95. package/dist/{order-BZkUwMou.d.cts → chunk-Bq_WHTfd.d.cts} +15 -28
  96. package/dist/chunk-Bqt4LBBz.cjs +648 -0
  97. package/dist/chunk-Bqt4LBBz.cjs.map +1 -0
  98. package/dist/{language-CEWQ5uYw.d.cts → chunk-Bqt97zwf.d.cts} +3 -18
  99. package/dist/{language-CEWQ5uYw.d.ts → chunk-Bqt97zwf.d.ts} +3 -18
  100. package/dist/chunk-BsBiN4w6.d.cts +245 -0
  101. package/dist/chunk-BvTpOUoC.cjs +207 -0
  102. package/dist/chunk-BvTpOUoC.cjs.map +1 -0
  103. package/dist/chunk-BwK6Hl3q.cjs +446 -0
  104. package/dist/chunk-BwK6Hl3q.cjs.map +1 -0
  105. package/dist/{elevationTiles-pmsb9wnU.d.cts → chunk-BxDQZDXR.d.cts} +26 -27
  106. package/dist/{elevationTiles-pmsb9wnU.d.ts → chunk-BxDQZDXR.d.ts} +26 -27
  107. package/dist/chunk-BxUio8kX.js +20 -0
  108. package/dist/chunk-BxUio8kX.js.map +1 -0
  109. package/dist/chunk-BxaocpFi.d.cts +1 -0
  110. package/dist/chunk-Bywi0K1N.js +36 -0
  111. package/dist/chunk-Bywi0K1N.js.map +1 -0
  112. package/dist/chunk-C-IlmkDl.js +59 -0
  113. package/dist/chunk-C-IlmkDl.js.map +1 -0
  114. package/dist/chunk-C5PtVewq.d.ts +389 -0
  115. package/dist/chunk-C5dpC7mQ.js +19 -0
  116. package/dist/chunk-C5dpC7mQ.js.map +1 -0
  117. package/dist/chunk-C5q1sgSa.js +46 -0
  118. package/dist/chunk-C5q1sgSa.js.map +1 -0
  119. package/dist/chunk-C6fU9G5I.cjs +221 -0
  120. package/dist/chunk-C6fU9G5I.cjs.map +1 -0
  121. package/dist/chunk-C71dpWUK.js +5 -0
  122. package/dist/chunk-C71dpWUK.js.map +1 -0
  123. package/dist/chunk-C82N1gQX.d.ts +1831 -0
  124. package/dist/chunk-C8HdaHpu.js +118 -0
  125. package/dist/chunk-C8HdaHpu.js.map +1 -0
  126. package/dist/chunk-C8ZGryck.js +236 -0
  127. package/dist/chunk-C8ZGryck.js.map +1 -0
  128. package/dist/chunk-C95NG0oD.cjs +43 -0
  129. package/dist/chunk-C95NG0oD.cjs.map +1 -0
  130. package/dist/chunk-C9aR8DXb.js +9 -0
  131. package/dist/chunk-C9aR8DXb.js.map +1 -0
  132. package/dist/{camera-C48Ykaxv.d.ts → chunk-CAUZnoCs.d.ts} +135 -159
  133. package/dist/chunk-CBXWWuM9.cjs +82 -0
  134. package/dist/chunk-CBXWWuM9.cjs.map +1 -0
  135. package/dist/chunk-CC_Kquu7.d.cts +125 -0
  136. package/dist/chunk-CC_Kquu7.d.ts +125 -0
  137. package/dist/chunk-CCp85vXg.cjs +60 -0
  138. package/dist/chunk-CCp85vXg.cjs.map +1 -0
  139. package/dist/chunk-CEcB1_uK.js +39 -0
  140. package/dist/chunk-CEcB1_uK.js.map +1 -0
  141. package/dist/{bundle-Je5zsRFg.d.cts → chunk-CFIo021l.d.cts} +51 -57
  142. package/dist/chunk-CH_IZoJE.js +33 -0
  143. package/dist/chunk-CH_IZoJE.js.map +1 -0
  144. package/dist/chunk-CHrasH_g.cjs +25 -0
  145. package/dist/chunk-CHrasH_g.cjs.map +1 -0
  146. package/dist/chunk-CJVoSaAE.cjs +3 -0
  147. package/dist/chunk-CJp8nGcb.js +96 -0
  148. package/dist/chunk-CJp8nGcb.js.map +1 -0
  149. package/dist/chunk-CJwUtkOt.js +112 -0
  150. package/dist/chunk-CJwUtkOt.js.map +1 -0
  151. package/dist/chunk-CKhCOVIf.d.cts +751 -0
  152. package/dist/chunk-CKiVSRYg.js +50 -0
  153. package/dist/chunk-CKiVSRYg.js.map +1 -0
  154. package/dist/chunk-CKtd19eD.cjs +59 -0
  155. package/dist/chunk-CKtd19eD.cjs.map +1 -0
  156. package/dist/chunk-CL92KE3j.d.ts +3188 -0
  157. package/dist/chunk-CLqUlkAe.js +54 -0
  158. package/dist/chunk-CLqUlkAe.js.map +1 -0
  159. package/dist/chunk-CMG5OV0q.cjs +4741 -0
  160. package/dist/chunk-CMG5OV0q.cjs.map +1 -0
  161. package/dist/chunk-CN_TKSgm.js +10 -0
  162. package/dist/chunk-CN_TKSgm.js.map +1 -0
  163. package/dist/chunk-CNe6MtqV.cjs +29 -0
  164. package/dist/chunk-CNe6MtqV.cjs.map +1 -0
  165. package/dist/chunk-COQkDTC5.js +83 -0
  166. package/dist/chunk-COQkDTC5.js.map +1 -0
  167. package/dist/chunk-CPBl6K4M.cjs +168 -0
  168. package/dist/chunk-CPBl6K4M.cjs.map +1 -0
  169. package/dist/chunk-CPx0ZYFB.d.ts +3 -0
  170. package/dist/chunk-CQQhcP_C.d.ts +197 -0
  171. package/dist/chunk-CTNoajFh.d.cts +389 -0
  172. package/dist/chunk-CTd-qgJc.cjs +384 -0
  173. package/dist/chunk-CTd-qgJc.cjs.map +1 -0
  174. package/dist/chunk-CW80YYtU.cjs +1056 -0
  175. package/dist/chunk-CW80YYtU.cjs.map +1 -0
  176. package/dist/{searchLimits-j99-NTXR.d.ts → chunk-CWpqBgkF.d.cts} +2 -2
  177. package/dist/{searchLimits-j99-NTXR.d.cts → chunk-CWpqBgkF.d.ts} +2 -2
  178. package/dist/chunk-CXjRArgy.d.ts +3 -0
  179. package/dist/chunk-CXonfH3-.cjs +14 -0
  180. package/dist/chunk-CXonfH3-.cjs.map +1 -0
  181. package/dist/chunk-CYcouGXN.d.ts +825 -0
  182. package/dist/chunk-CZDAzEBw.cjs +1621 -0
  183. package/dist/chunk-CZDAzEBw.cjs.map +1 -0
  184. package/dist/{amenities-B3-qAjxu.d.cts → chunk-C_fQFr70.d.cts} +40 -41
  185. package/dist/{amenities-B3-qAjxu.d.ts → chunk-C_fQFr70.d.ts} +40 -41
  186. package/dist/chunk-CbOtHnnB.cjs +359 -0
  187. package/dist/chunk-CbOtHnnB.cjs.map +1 -0
  188. package/dist/chunk-CdA6ZMGk.d.cts +825 -0
  189. package/dist/chunk-Ce1_thm7.js +146 -0
  190. package/dist/chunk-Ce1_thm7.js.map +1 -0
  191. package/dist/chunk-CeD8Hw0j.d.cts +3188 -0
  192. package/dist/{camera-BrFLU1DH.d.cts → chunk-CeiTuMyt.d.cts} +135 -159
  193. package/dist/chunk-Ch1OLzLi.js +1 -0
  194. package/dist/chunk-Cizu_j1N.cjs +87 -0
  195. package/dist/chunk-Cizu_j1N.cjs.map +1 -0
  196. package/dist/chunk-CjDe9z6A.d.cts +427 -0
  197. package/dist/chunk-Cl1etdlu.js +63 -0
  198. package/dist/chunk-Cl1etdlu.js.map +1 -0
  199. package/dist/chunk-CmoVJDoz.js +4 -0
  200. package/dist/chunk-CmoVJDoz.js.map +1 -0
  201. package/dist/chunk-CnLucxjG.cjs +197 -0
  202. package/dist/chunk-CnLucxjG.cjs.map +1 -0
  203. package/dist/chunk-CsWjBmdi.cjs +56 -0
  204. package/dist/chunk-CsWjBmdi.cjs.map +1 -0
  205. package/dist/chunk-CuseO5MZ.d.cts +3 -0
  206. package/dist/chunk-CvMHibbA.d.ts +427 -0
  207. package/dist/chunk-CwDeiN5U.js +870 -0
  208. package/dist/chunk-CwDeiN5U.js.map +1 -0
  209. package/dist/chunk-Cwdmx4tG.js +1 -0
  210. package/dist/{geolocation-DDkQdWMN.d.cts → chunk-D-4MxHTt.d.cts} +33 -34
  211. package/dist/{geolocation-DDkQdWMN.d.ts → chunk-D-4MxHTt.d.ts} +33 -34
  212. package/dist/chunk-D0LF-99V.js +1093 -0
  213. package/dist/chunk-D0LF-99V.js.map +1 -0
  214. package/dist/chunk-D1fe-0c_.js +367 -0
  215. package/dist/chunk-D1fe-0c_.js.map +1 -0
  216. package/dist/chunk-D21fEI6A.d.ts +1926 -0
  217. package/dist/chunk-D39gAxya.cjs +89 -0
  218. package/dist/chunk-D39gAxya.cjs.map +1 -0
  219. package/dist/chunk-D6KdIW5e.cjs +228 -0
  220. package/dist/chunk-D6KdIW5e.cjs.map +1 -0
  221. package/dist/chunk-D6qHYbgW.d.cts +36 -0
  222. package/dist/{videoOverlay-Dh_D5_Zs.d.cts → chunk-D89E-w70.d.ts} +10 -10
  223. package/dist/chunk-D8bdTysL.js +552 -0
  224. package/dist/chunk-D8bdTysL.js.map +1 -0
  225. package/dist/chunk-D96QJT24.cjs +109 -0
  226. package/dist/chunk-D96QJT24.cjs.map +1 -0
  227. package/dist/chunk-DAmkQl-i.js +119 -0
  228. package/dist/chunk-DAmkQl-i.js.map +1 -0
  229. package/dist/chunk-DEfsb2lc.cjs +10 -0
  230. package/dist/chunk-DEfsb2lc.cjs.map +1 -0
  231. package/dist/chunk-DIFjT5-V.d.cts +66 -0
  232. package/dist/{sections-CmtaduLc.d.ts → chunk-DJpUw8TN.d.ts} +289 -330
  233. package/dist/chunk-DK6lm2IZ.cjs +11 -0
  234. package/dist/chunk-DK6lm2IZ.cjs.map +1 -0
  235. package/dist/chunk-DKqgr31j.cjs +61 -0
  236. package/dist/chunk-DKqgr31j.cjs.map +1 -0
  237. package/dist/chunk-DLZ0QYm9.js +37 -0
  238. package/dist/chunk-DLZ0QYm9.js.map +1 -0
  239. package/dist/chunk-DLjS0uaC.js +4 -0
  240. package/dist/chunk-DLjS0uaC.js.map +1 -0
  241. package/dist/chunk-DMokwmOV.cjs +49 -0
  242. package/dist/chunk-DMokwmOV.cjs.map +1 -0
  243. package/dist/chunk-DMvWgBZL.d.cts +1831 -0
  244. package/dist/chunk-DNfGfIF3.js +31 -0
  245. package/dist/chunk-DNfGfIF3.js.map +1 -0
  246. package/dist/chunk-DQbSRe8D.d.ts +245 -0
  247. package/dist/chunk-DSGkP8_y.js +45 -0
  248. package/dist/chunk-DSGkP8_y.js.map +1 -0
  249. package/dist/chunk-DTctvfSd.d.cts +197 -0
  250. package/dist/chunk-DWe7igyw.cjs +206 -0
  251. package/dist/chunk-DWe7igyw.cjs.map +1 -0
  252. package/dist/chunk-DWsMP5JR.d.ts +68 -0
  253. package/dist/{provider-DM71XnLX.d.cts → chunk-DWsm3HIW.d.cts} +37 -38
  254. package/dist/{provider-DM71XnLX.d.ts → chunk-DWsm3HIW.d.ts} +37 -38
  255. package/dist/chunk-DXABHjLa.cjs +3 -0
  256. package/dist/chunk-D_BeqSbc.cjs +42 -0
  257. package/dist/chunk-D_BeqSbc.cjs.map +1 -0
  258. package/dist/chunk-D_svQNdW.d.ts +66 -0
  259. package/dist/chunk-Dav4xWrp.js +330 -0
  260. package/dist/chunk-Dav4xWrp.js.map +1 -0
  261. package/dist/chunk-DbCPhepL.js +293 -0
  262. package/dist/chunk-DbCPhepL.js.map +1 -0
  263. package/dist/chunk-DcrTy-y2.cjs +43 -0
  264. package/dist/chunk-DcrTy-y2.cjs.map +1 -0
  265. package/dist/chunk-Ddv484ld.js +487 -0
  266. package/dist/chunk-Ddv484ld.js.map +1 -0
  267. package/dist/chunk-De0bjnhY.cjs +88 -0
  268. package/dist/chunk-De0bjnhY.cjs.map +1 -0
  269. package/dist/chunk-De2FmNPu.cjs +32 -0
  270. package/dist/chunk-De2FmNPu.cjs.map +1 -0
  271. package/dist/{segmentRoute-CIo6dR8Y.d.cts → chunk-DeSjQXiI.d.ts} +44 -59
  272. package/dist/chunk-Den0Ta6C.js +132 -0
  273. package/dist/chunk-Den0Ta6C.js.map +1 -0
  274. package/dist/chunk-DiDKEeEa.js +8 -0
  275. package/dist/chunk-DiDKEeEa.js.map +1 -0
  276. package/dist/chunk-Dj60k5PU.js +197 -0
  277. package/dist/chunk-Dj60k5PU.js.map +1 -0
  278. package/dist/chunk-DjnYQBCN.js +4705 -0
  279. package/dist/chunk-DjnYQBCN.js.map +1 -0
  280. package/dist/chunk-Dk9VKvyq.d.ts +1 -0
  281. package/dist/chunk-Dor1ERI9.cjs +85 -0
  282. package/dist/chunk-Dor1ERI9.cjs.map +1 -0
  283. package/dist/chunk-DpMouOoH.js +451 -0
  284. package/dist/chunk-DpMouOoH.js.map +1 -0
  285. package/dist/chunk-DposgdNL.cjs +52 -0
  286. package/dist/chunk-DposgdNL.cjs.map +1 -0
  287. package/dist/chunk-DqLTG_5Q.d.cts +3 -0
  288. package/dist/{roadAccess-D_rOE4xW.d.cts → chunk-Dr5MCIpS.d.cts} +5 -28
  289. package/dist/{roadAccess-D_rOE4xW.d.ts → chunk-Dr5MCIpS.d.ts} +5 -28
  290. package/dist/chunk-DrudttCC.cjs +4 -0
  291. package/dist/chunk-DsDYVJQC.js +173 -0
  292. package/dist/chunk-DsDYVJQC.js.map +1 -0
  293. package/dist/chunk-Dw8ur6FJ.js +27 -0
  294. package/dist/chunk-Dw8ur6FJ.js.map +1 -0
  295. package/dist/chunk-DwG6M_0v.js +64 -0
  296. package/dist/chunk-DwG6M_0v.js.map +1 -0
  297. package/dist/chunk-Dy9a5ibO.js +284 -0
  298. package/dist/chunk-Dy9a5ibO.js.map +1 -0
  299. package/dist/chunk-DyayZlQJ.js +157 -0
  300. package/dist/chunk-DyayZlQJ.js.map +1 -0
  301. package/dist/chunk-DyhJZC2i.js +126 -0
  302. package/dist/chunk-DyhJZC2i.js.map +1 -0
  303. package/dist/chunk-F9zBzmmG.cjs +45 -0
  304. package/dist/chunk-F9zBzmmG.cjs.map +1 -0
  305. package/dist/chunk-FyCYofv2.js +116 -0
  306. package/dist/chunk-FyCYofv2.js.map +1 -0
  307. package/dist/chunk-GHJRjAk2.js +1 -0
  308. package/dist/chunk-H14isiSf.d.ts +751 -0
  309. package/dist/chunk-HIJzXoN4.js +7 -0
  310. package/dist/chunk-HIJzXoN4.js.map +1 -0
  311. package/dist/chunk-Id_8kRtu.d.ts +36 -0
  312. package/dist/chunk-KN60yxBQ.js +5 -0
  313. package/dist/chunk-KN60yxBQ.js.map +1 -0
  314. package/dist/chunk-NM5yg6bh.cjs +82 -0
  315. package/dist/chunk-NM5yg6bh.cjs.map +1 -0
  316. package/dist/chunk-OXr3zJfM.cjs +119 -0
  317. package/dist/chunk-OXr3zJfM.cjs.map +1 -0
  318. package/dist/chunk-QGqgNC4z.d.ts +928 -0
  319. package/dist/chunk-QJBtJrZ0.js +36 -0
  320. package/dist/chunk-QJBtJrZ0.js.map +1 -0
  321. package/dist/{routeProfile-BsSUABXv.d.cts → chunk-QKWhxfPv.d.cts} +196 -45
  322. package/dist/{routeProfile-BKfSfxx6.d.ts → chunk-QKWhxfPv.d.ts} +196 -45
  323. package/dist/chunk-QXW7b4Ev.d.cts +410 -0
  324. package/dist/chunk-RHZrxUrM.cjs +39 -0
  325. package/dist/chunk-RHZrxUrM.cjs.map +1 -0
  326. package/dist/chunk-RTxe2i66.js +91 -0
  327. package/dist/chunk-RTxe2i66.js.map +1 -0
  328. package/dist/chunk-RrKkJb6P.js +16 -0
  329. package/dist/chunk-RrKkJb6P.js.map +1 -0
  330. package/dist/chunk-VOJqpcnM.cjs +181 -0
  331. package/dist/chunk-VOJqpcnM.cjs.map +1 -0
  332. package/dist/chunk-VljGTrid.js +1 -0
  333. package/dist/chunk-X3UVwUEK.d.cts +513 -0
  334. package/dist/chunk-X9K2WChn.cjs +28 -0
  335. package/dist/chunk-X9K2WChn.cjs.map +1 -0
  336. package/dist/chunk-YrtOx6oy.js +251 -0
  337. package/dist/chunk-YrtOx6oy.js.map +1 -0
  338. package/dist/chunk-bY7ySujI.d.cts +928 -0
  339. package/dist/chunk-bYf1sBz5.d.cts +11 -0
  340. package/dist/chunk-bYf1sBz5.d.ts +11 -0
  341. package/dist/chunk-blfknWoM.d.cts +1926 -0
  342. package/dist/chunk-blqsohAb.js +113 -0
  343. package/dist/chunk-blqsohAb.js.map +1 -0
  344. package/dist/chunk-cDMCjodI.cjs +58 -0
  345. package/dist/chunk-cDMCjodI.cjs.map +1 -0
  346. package/dist/chunk-cWjE3qd6.cjs +10 -0
  347. package/dist/chunk-cWjE3qd6.cjs.map +1 -0
  348. package/dist/chunk-dfOgV3fu.js +26 -0
  349. package/dist/chunk-dfOgV3fu.js.map +1 -0
  350. package/dist/chunk-f9cTwUX1.cjs +125 -0
  351. package/dist/chunk-f9cTwUX1.cjs.map +1 -0
  352. package/dist/chunk-fHVYEZs4.cjs +28 -0
  353. package/dist/chunk-fHVYEZs4.cjs.map +1 -0
  354. package/dist/chunk-fWRUMgRI.js +22 -0
  355. package/dist/chunk-fWRUMgRI.js.map +1 -0
  356. package/dist/{types-BEv8V_8V.d.cts → chunk-fozLXfHY.d.cts} +8 -8
  357. package/dist/{types-BEv8V_8V.d.ts → chunk-fozLXfHY.d.ts} +8 -8
  358. package/dist/chunk-gWmB1l3A.cjs +3122 -0
  359. package/dist/chunk-gWmB1l3A.cjs.map +1 -0
  360. package/dist/chunk-gbj2R-_w.js +58 -0
  361. package/dist/chunk-gbj2R-_w.js.map +1 -0
  362. package/dist/chunk-iIWxsAXd.js +59 -0
  363. package/dist/chunk-iIWxsAXd.js.map +1 -0
  364. package/dist/chunk-lItIuOIS.cjs +137 -0
  365. package/dist/chunk-lItIuOIS.cjs.map +1 -0
  366. package/dist/chunk-m6Rh4PCe.cjs +798 -0
  367. package/dist/chunk-m6Rh4PCe.cjs.map +1 -0
  368. package/dist/chunk-o3IRANDf.cjs +99 -0
  369. package/dist/chunk-o3IRANDf.cjs.map +1 -0
  370. package/dist/chunk-obUcg3Sk.d.ts +808 -0
  371. package/dist/chunk-ohsf-6Rn.js +600 -0
  372. package/dist/chunk-ohsf-6Rn.js.map +1 -0
  373. package/dist/chunk-pBleU6Nv.js +3061 -0
  374. package/dist/chunk-pBleU6Nv.js.map +1 -0
  375. package/dist/chunk-px4e99cy.js +71 -0
  376. package/dist/chunk-px4e99cy.js.map +1 -0
  377. package/dist/chunk-qwYDLeXc.cjs +99 -0
  378. package/dist/chunk-qwYDLeXc.cjs.map +1 -0
  379. package/dist/chunk-rF_859Qk.cjs +101 -0
  380. package/dist/chunk-rF_859Qk.cjs.map +1 -0
  381. package/dist/chunk-rLJkqJ5j.d.ts +1475 -0
  382. package/dist/chunk-twQItIRg.cjs +338 -0
  383. package/dist/chunk-twQItIRg.cjs.map +1 -0
  384. package/dist/chunk-vnPrMVjY.js +10 -0
  385. package/dist/chunk-vnPrMVjY.js.map +1 -0
  386. package/dist/chunk-ws3bVwaS.d.ts +410 -0
  387. package/dist/chunk-xh3UkuVs.cjs +246 -0
  388. package/dist/chunk-xh3UkuVs.cjs.map +1 -0
  389. package/dist/chunk-yMzRr26E.js +153 -0
  390. package/dist/chunk-yMzRr26E.js.map +1 -0
  391. package/dist/collab/index.cjs +802 -1254
  392. package/dist/collab/index.cjs.map +1 -1
  393. package/dist/collab/index.d.cts +518 -544
  394. package/dist/collab/index.d.ts +518 -544
  395. package/dist/collab/index.js +797 -1252
  396. package/dist/collab/index.js.map +1 -1
  397. package/dist/data/index.cjs +39 -132
  398. package/dist/data/index.d.cts +6 -468
  399. package/dist/data/index.d.ts +6 -468
  400. package/dist/data/index.js +7 -15
  401. package/dist/editor/index.cjs +2631 -4424
  402. package/dist/editor/index.cjs.map +1 -1
  403. package/dist/editor/index.d.cts +10 -59
  404. package/dist/editor/index.d.ts +10 -59
  405. package/dist/editor/index.js +2619 -4403
  406. package/dist/editor/index.js.map +1 -1
  407. package/dist/errors/index.cjs +11 -28
  408. package/dist/errors/index.d.cts +2 -125
  409. package/dist/errors/index.d.ts +2 -125
  410. package/dist/errors/index.js +1 -3
  411. package/dist/geo/index.cjs +68 -232
  412. package/dist/geo/index.d.cts +6 -821
  413. package/dist/geo/index.d.ts +6 -821
  414. package/dist/geo/index.js +11 -15
  415. package/dist/i18n/fr/index.cjs +329 -334
  416. package/dist/i18n/fr/index.cjs.map +1 -1
  417. package/dist/i18n/fr/index.d.cts +3 -10
  418. package/dist/i18n/fr/index.d.ts +3 -10
  419. package/dist/i18n/fr/index.js +324 -332
  420. package/dist/i18n/fr/index.js.map +1 -1
  421. package/dist/i18n/index.cjs +434 -447
  422. package/dist/i18n/index.cjs.map +1 -1
  423. package/dist/i18n/index.d.cts +152 -111
  424. package/dist/i18n/index.d.ts +152 -111
  425. package/dist/i18n/index.js +420 -420
  426. package/dist/i18n/index.js.map +1 -1
  427. package/dist/icons/index.cjs +37 -116
  428. package/dist/icons/index.d.cts +4 -457
  429. package/dist/icons/index.d.ts +4 -457
  430. package/dist/icons/index.js +8 -11
  431. package/dist/index.cjs +515 -1867
  432. package/dist/index.cjs.map +1 -1
  433. package/dist/index.d.cts +44 -121
  434. package/dist/index.d.ts +44 -121
  435. package/dist/index.js +52 -65
  436. package/dist/index.js.map +1 -1
  437. package/dist/layers/index.cjs +83 -318
  438. package/dist/layers/index.d.cts +3 -1555
  439. package/dist/layers/index.d.ts +3 -1555
  440. package/dist/layers/index.js +5 -17
  441. package/dist/map-client/index.cjs +5 -4
  442. package/dist/map-client/index.d.cts +6 -1856
  443. package/dist/map-client/index.d.ts +6 -1856
  444. package/dist/map-client/index.js +0 -3
  445. package/dist/maplibre-worker.mjs +4 -4
  446. package/dist/navigation/index.cjs +584 -671
  447. package/dist/navigation/index.cjs.map +1 -1
  448. package/dist/navigation/index.d.cts +191 -272
  449. package/dist/navigation/index.d.ts +191 -272
  450. package/dist/navigation/index.js +579 -669
  451. package/dist/navigation/index.js.map +1 -1
  452. package/dist/profile/index.cjs +177 -675
  453. package/dist/profile/index.d.cts +8 -2086
  454. package/dist/profile/index.d.ts +8 -2086
  455. package/dist/profile/index.js +10 -18
  456. package/dist/seams/index.cjs +15 -39
  457. package/dist/seams/index.d.cts +4 -254
  458. package/dist/seams/index.d.ts +4 -254
  459. package/dist/seams/index.js +4 -6
  460. package/dist/search/index.cjs +39 -147
  461. package/dist/search/index.d.cts +6 -888
  462. package/dist/search/index.d.ts +6 -888
  463. package/dist/search/index.js +3 -14
  464. package/dist/style/index.cjs +34 -116
  465. package/dist/style/index.d.cts +5 -538
  466. package/dist/style/index.d.ts +5 -538
  467. package/dist/style/index.js +5 -11
  468. package/dist/testing/index.cjs +432 -617
  469. package/dist/testing/index.cjs.map +1 -1
  470. package/dist/testing/index.d.cts +61 -109
  471. package/dist/testing/index.d.ts +61 -109
  472. package/dist/testing/index.js +427 -615
  473. package/dist/testing/index.js.map +1 -1
  474. package/dist/timezone/index.cjs +1946 -752
  475. package/dist/timezone/index.cjs.map +1 -1
  476. package/dist/timezone/index.d.cts +4 -29
  477. package/dist/timezone/index.d.ts +4 -29
  478. package/dist/timezone/index.js +1941 -750
  479. package/dist/timezone/index.js.map +1 -1
  480. package/dist/units/index.cjs +29 -99
  481. package/dist/units/index.d.cts +3 -75
  482. package/dist/units/index.d.ts +3 -75
  483. package/dist/units/index.js +3 -6
  484. package/dist/video/index.cjs +1684 -2169
  485. package/dist/video/index.cjs.map +1 -1
  486. package/dist/video/index.d.cts +386 -413
  487. package/dist/video/index.d.ts +386 -413
  488. package/dist/video/index.js +1678 -2162
  489. package/dist/video/index.js.map +1 -1
  490. package/dist/view/index.cjs +6 -42
  491. package/dist/view/index.d.cts +3 -836
  492. package/dist/view/index.d.ts +3 -836
  493. package/dist/view/index.js +1 -34
  494. package/package.json +12 -12
  495. package/src/auth/rules/clientHeader.ts +1 -1
  496. package/src/camera/rules/modes.ts +38 -42
  497. package/src/camera/rules/routeContent.ts +1 -0
  498. package/src/collab/index.ts +1 -5
  499. package/src/compose/engines/mountayaMap.ts +16 -42
  500. package/src/compose/rules/developmentWarnings.ts +4 -3
  501. package/src/compose/rules/fitBox.ts +67 -0
  502. package/src/compose/rules/maplibreWorkerVersion.gen.ts +1 -1
  503. package/src/compose/rules/maxBounds.ts +5 -5
  504. package/src/compose/rules/types.ts +4 -11
  505. package/src/compose/rules/workerUrl.ts +41 -6
  506. package/src/editing/rules/engine.ts +4 -2
  507. package/src/editor/engines/viewClient.ts +8 -0
  508. package/src/editor/rules/contract.ts +1 -6
  509. package/src/errors/rules/errors.ts +1 -0
  510. package/src/geo/index.ts +1 -6
  511. package/src/i18n/index.ts +1 -0
  512. package/src/i18n/rules/dates.ts +165 -0
  513. package/src/index.ts +5 -24
  514. package/src/map-client/rules/mapClient.ts +4 -2
  515. package/src/profile/rules/scale.ts +1 -5
  516. package/src/profile/rules/waypointCard.ts +8 -11
  517. package/src/search/index.ts +3 -18
  518. package/src/video/index.ts +1 -1
  519. package/src/video/profileOverlay/rules/contract.ts +1 -3
  520. package/src/video/rules/videoEncoder.ts +1 -1
  521. package/dist/accentColor-GNKBD2CW.js +0 -4
  522. package/dist/accentColor-GNKBD2CW.js.map +0 -1
  523. package/dist/accentColor-VX2JSMGE.cjs +0 -17
  524. package/dist/accentColor-VX2JSMGE.cjs.map +0 -1
  525. package/dist/chunk-23PFRRB6.js +0 -3
  526. package/dist/chunk-23PFRRB6.js.map +0 -1
  527. package/dist/chunk-2GI5SAH2.js +0 -71
  528. package/dist/chunk-2GI5SAH2.js.map +0 -1
  529. package/dist/chunk-2MQK6A74.js +0 -39
  530. package/dist/chunk-2MQK6A74.js.map +0 -1
  531. package/dist/chunk-2RE7R4LD.js +0 -73
  532. package/dist/chunk-2RE7R4LD.js.map +0 -1
  533. package/dist/chunk-3JZQKN4O.js +0 -6
  534. package/dist/chunk-3JZQKN4O.js.map +0 -1
  535. package/dist/chunk-3NDXVUUI.js +0 -50
  536. package/dist/chunk-3NDXVUUI.js.map +0 -1
  537. package/dist/chunk-3R4GFTUM.cjs +0 -59
  538. package/dist/chunk-3R4GFTUM.cjs.map +0 -1
  539. package/dist/chunk-3RVUQ6JN.cjs +0 -22
  540. package/dist/chunk-3RVUQ6JN.cjs.map +0 -1
  541. package/dist/chunk-4F6BJMJC.cjs +0 -49
  542. package/dist/chunk-4F6BJMJC.cjs.map +0 -1
  543. package/dist/chunk-4NWQD4BX.js +0 -132
  544. package/dist/chunk-4NWQD4BX.js.map +0 -1
  545. package/dist/chunk-5K2MH3R6.js +0 -10
  546. package/dist/chunk-5K2MH3R6.js.map +0 -1
  547. package/dist/chunk-6ACRNQQQ.cjs +0 -8
  548. package/dist/chunk-6ACRNQQQ.cjs.map +0 -1
  549. package/dist/chunk-6D26E3IA.js +0 -66
  550. package/dist/chunk-6D26E3IA.js.map +0 -1
  551. package/dist/chunk-6ESAW35P.cjs +0 -80
  552. package/dist/chunk-6ESAW35P.cjs.map +0 -1
  553. package/dist/chunk-6LIW2A5M.cjs +0 -1176
  554. package/dist/chunk-6LIW2A5M.cjs.map +0 -1
  555. package/dist/chunk-6OTTWVCA.js +0 -57
  556. package/dist/chunk-6OTTWVCA.js.map +0 -1
  557. package/dist/chunk-6VROJ4UG.js +0 -862
  558. package/dist/chunk-6VROJ4UG.js.map +0 -1
  559. package/dist/chunk-6Y7FTGO4.js +0 -23
  560. package/dist/chunk-6Y7FTGO4.js.map +0 -1
  561. package/dist/chunk-75I4CG64.js +0 -104
  562. package/dist/chunk-75I4CG64.js.map +0 -1
  563. package/dist/chunk-7CUBXHAH.cjs +0 -14
  564. package/dist/chunk-7CUBXHAH.cjs.map +0 -1
  565. package/dist/chunk-7GTCURVY.js +0 -52
  566. package/dist/chunk-7GTCURVY.js.map +0 -1
  567. package/dist/chunk-7IWOL6AM.cjs +0 -100
  568. package/dist/chunk-7IWOL6AM.cjs.map +0 -1
  569. package/dist/chunk-7QN7M667.cjs +0 -151
  570. package/dist/chunk-7QN7M667.cjs.map +0 -1
  571. package/dist/chunk-A6KQDKLM.cjs +0 -1197
  572. package/dist/chunk-A6KQDKLM.cjs.map +0 -1
  573. package/dist/chunk-A77EA67G.js +0 -354
  574. package/dist/chunk-A77EA67G.js.map +0 -1
  575. package/dist/chunk-AFKOABJ4.cjs +0 -7194
  576. package/dist/chunk-AFKOABJ4.cjs.map +0 -1
  577. package/dist/chunk-AG6JV5Z2.cjs +0 -183
  578. package/dist/chunk-AG6JV5Z2.cjs.map +0 -1
  579. package/dist/chunk-APBK7NMS.js +0 -30
  580. package/dist/chunk-APBK7NMS.js.map +0 -1
  581. package/dist/chunk-AWO5YA7A.cjs +0 -33
  582. package/dist/chunk-AWO5YA7A.cjs.map +0 -1
  583. package/dist/chunk-AZATU6QW.js +0 -108
  584. package/dist/chunk-AZATU6QW.js.map +0 -1
  585. package/dist/chunk-BD2U3WST.cjs +0 -623
  586. package/dist/chunk-BD2U3WST.cjs.map +0 -1
  587. package/dist/chunk-BHBEOU6L.cjs +0 -65
  588. package/dist/chunk-BHBEOU6L.cjs.map +0 -1
  589. package/dist/chunk-CNOSNYNE.js +0 -8
  590. package/dist/chunk-CNOSNYNE.js.map +0 -1
  591. package/dist/chunk-CW3EFR4O.js +0 -12
  592. package/dist/chunk-CW3EFR4O.js.map +0 -1
  593. package/dist/chunk-DASVRNBK.js +0 -7187
  594. package/dist/chunk-DASVRNBK.js.map +0 -1
  595. package/dist/chunk-DJ6LCKYP.js +0 -42
  596. package/dist/chunk-DJ6LCKYP.js.map +0 -1
  597. package/dist/chunk-E5FHQAIO.cjs +0 -45
  598. package/dist/chunk-E5FHQAIO.cjs.map +0 -1
  599. package/dist/chunk-EOML5OTY.cjs +0 -360
  600. package/dist/chunk-EOML5OTY.cjs.map +0 -1
  601. package/dist/chunk-EP5CASHL.js +0 -613
  602. package/dist/chunk-EP5CASHL.js.map +0 -1
  603. package/dist/chunk-EP5OEEVZ.cjs +0 -14
  604. package/dist/chunk-EP5OEEVZ.cjs.map +0 -1
  605. package/dist/chunk-EUXI3FGQ.js +0 -150
  606. package/dist/chunk-EUXI3FGQ.js.map +0 -1
  607. package/dist/chunk-EWFSHCOS.js +0 -40
  608. package/dist/chunk-EWFSHCOS.js.map +0 -1
  609. package/dist/chunk-EX2C5K2T.cjs +0 -25
  610. package/dist/chunk-EX2C5K2T.cjs.map +0 -1
  611. package/dist/chunk-FEXWDQIZ.cjs +0 -8
  612. package/dist/chunk-FEXWDQIZ.cjs.map +0 -1
  613. package/dist/chunk-FEYBFY7H.cjs +0 -358
  614. package/dist/chunk-FEYBFY7H.cjs.map +0 -1
  615. package/dist/chunk-FRGAV6N6.cjs +0 -34
  616. package/dist/chunk-FRGAV6N6.cjs.map +0 -1
  617. package/dist/chunk-G5DHP5VF.js +0 -6
  618. package/dist/chunk-G5DHP5VF.js.map +0 -1
  619. package/dist/chunk-G5W2UHV2.js +0 -99
  620. package/dist/chunk-G5W2UHV2.js.map +0 -1
  621. package/dist/chunk-G7OP7O2C.cjs +0 -39
  622. package/dist/chunk-G7OP7O2C.cjs.map +0 -1
  623. package/dist/chunk-GE6CFCAM.cjs +0 -25
  624. package/dist/chunk-GE6CFCAM.cjs.map +0 -1
  625. package/dist/chunk-GIFALLHI.cjs +0 -111
  626. package/dist/chunk-GIFALLHI.cjs.map +0 -1
  627. package/dist/chunk-GLFET5GM.js +0 -129
  628. package/dist/chunk-GLFET5GM.js.map +0 -1
  629. package/dist/chunk-GQ6UFPFM.js +0 -22
  630. package/dist/chunk-GQ6UFPFM.js.map +0 -1
  631. package/dist/chunk-GQJWVMXS.js +0 -129
  632. package/dist/chunk-GQJWVMXS.js.map +0 -1
  633. package/dist/chunk-GVVJPUKC.js +0 -80
  634. package/dist/chunk-GVVJPUKC.js.map +0 -1
  635. package/dist/chunk-GZ2HOCQ2.cjs +0 -134
  636. package/dist/chunk-GZ2HOCQ2.cjs.map +0 -1
  637. package/dist/chunk-HCBOHXWP.js +0 -37
  638. package/dist/chunk-HCBOHXWP.js.map +0 -1
  639. package/dist/chunk-IBQJDVHF.cjs +0 -281
  640. package/dist/chunk-IBQJDVHF.cjs.map +0 -1
  641. package/dist/chunk-ISLB6Y5Q.cjs +0 -106
  642. package/dist/chunk-ISLB6Y5Q.cjs.map +0 -1
  643. package/dist/chunk-J55CRR4F.js +0 -105
  644. package/dist/chunk-J55CRR4F.js.map +0 -1
  645. package/dist/chunk-JBG6Z6MQ.cjs +0 -28
  646. package/dist/chunk-JBG6Z6MQ.cjs.map +0 -1
  647. package/dist/chunk-K3RQOZRU.js +0 -61
  648. package/dist/chunk-K3RQOZRU.js.map +0 -1
  649. package/dist/chunk-KDJYS4GB.cjs +0 -703
  650. package/dist/chunk-KDJYS4GB.cjs.map +0 -1
  651. package/dist/chunk-KMCAHUZM.cjs +0 -4
  652. package/dist/chunk-KMCAHUZM.cjs.map +0 -1
  653. package/dist/chunk-KUCBNPC6.js +0 -87
  654. package/dist/chunk-KUCBNPC6.js.map +0 -1
  655. package/dist/chunk-KV6UE5A4.js +0 -50
  656. package/dist/chunk-KV6UE5A4.js.map +0 -1
  657. package/dist/chunk-L6TZ2HQR.cjs +0 -18
  658. package/dist/chunk-L6TZ2HQR.cjs.map +0 -1
  659. package/dist/chunk-L7QHHGG2.cjs +0 -141
  660. package/dist/chunk-L7QHHGG2.cjs.map +0 -1
  661. package/dist/chunk-LHK3Y2AL.js +0 -271
  662. package/dist/chunk-LHK3Y2AL.js.map +0 -1
  663. package/dist/chunk-LO5RYRBH.cjs +0 -6317
  664. package/dist/chunk-LO5RYRBH.cjs.map +0 -1
  665. package/dist/chunk-LS5SJMUO.cjs +0 -194
  666. package/dist/chunk-LS5SJMUO.cjs.map +0 -1
  667. package/dist/chunk-LUGTMZFN.cjs +0 -42
  668. package/dist/chunk-LUGTMZFN.cjs.map +0 -1
  669. package/dist/chunk-LVUQU6D5.js +0 -32
  670. package/dist/chunk-LVUQU6D5.js.map +0 -1
  671. package/dist/chunk-M2QRC2GZ.js +0 -166
  672. package/dist/chunk-M2QRC2GZ.js.map +0 -1
  673. package/dist/chunk-M6QJYQIM.cjs +0 -53
  674. package/dist/chunk-M6QJYQIM.cjs.map +0 -1
  675. package/dist/chunk-MGCPH5EO.js +0 -12
  676. package/dist/chunk-MGCPH5EO.js.map +0 -1
  677. package/dist/chunk-MLVUWEZR.cjs +0 -474
  678. package/dist/chunk-MLVUWEZR.cjs.map +0 -1
  679. package/dist/chunk-MTAMJMZL.cjs +0 -707
  680. package/dist/chunk-MTAMJMZL.cjs.map +0 -1
  681. package/dist/chunk-MXL5AT3N.js +0 -48
  682. package/dist/chunk-MXL5AT3N.js.map +0 -1
  683. package/dist/chunk-MYEQSESM.cjs +0 -75
  684. package/dist/chunk-MYEQSESM.cjs.map +0 -1
  685. package/dist/chunk-N3VPF6ZD.js +0 -427
  686. package/dist/chunk-N3VPF6ZD.js.map +0 -1
  687. package/dist/chunk-N6VUAIGI.js +0 -7
  688. package/dist/chunk-N6VUAIGI.js.map +0 -1
  689. package/dist/chunk-N6XRLUN6.js +0 -6286
  690. package/dist/chunk-N6XRLUN6.js.map +0 -1
  691. package/dist/chunk-NOGDOZIT.cjs +0 -114
  692. package/dist/chunk-NOGDOZIT.cjs.map +0 -1
  693. package/dist/chunk-NUWXEISH.cjs +0 -10
  694. package/dist/chunk-NUWXEISH.cjs.map +0 -1
  695. package/dist/chunk-NZCZHXYN.cjs +0 -161
  696. package/dist/chunk-NZCZHXYN.cjs.map +0 -1
  697. package/dist/chunk-ODROSWQX.cjs +0 -53
  698. package/dist/chunk-ODROSWQX.cjs.map +0 -1
  699. package/dist/chunk-OE36AYKG.cjs +0 -82
  700. package/dist/chunk-OE36AYKG.cjs.map +0 -1
  701. package/dist/chunk-OLON7MO6.cjs +0 -437
  702. package/dist/chunk-OLON7MO6.cjs.map +0 -1
  703. package/dist/chunk-PBUOR2IT.js +0 -277
  704. package/dist/chunk-PBUOR2IT.js.map +0 -1
  705. package/dist/chunk-PC2ELXFF.cjs +0 -225
  706. package/dist/chunk-PC2ELXFF.cjs.map +0 -1
  707. package/dist/chunk-PCSGXLOC.js +0 -71
  708. package/dist/chunk-PCSGXLOC.js.map +0 -1
  709. package/dist/chunk-PFNMP6FQ.js +0 -56
  710. package/dist/chunk-PFNMP6FQ.js.map +0 -1
  711. package/dist/chunk-PIWSZTIP.js +0 -690
  712. package/dist/chunk-PIWSZTIP.js.map +0 -1
  713. package/dist/chunk-PKWHJ2GI.js +0 -136
  714. package/dist/chunk-PKWHJ2GI.js.map +0 -1
  715. package/dist/chunk-PLMVBX2A.cjs +0 -76
  716. package/dist/chunk-PLMVBX2A.cjs.map +0 -1
  717. package/dist/chunk-PM3XCD2G.cjs +0 -113
  718. package/dist/chunk-PM3XCD2G.cjs.map +0 -1
  719. package/dist/chunk-QAL4GZO7.cjs +0 -143
  720. package/dist/chunk-QAL4GZO7.cjs.map +0 -1
  721. package/dist/chunk-QDB2SEA2.js +0 -74
  722. package/dist/chunk-QDB2SEA2.js.map +0 -1
  723. package/dist/chunk-QOV7UNUN.js +0 -25
  724. package/dist/chunk-QOV7UNUN.js.map +0 -1
  725. package/dist/chunk-QQUWYLSF.cjs +0 -50
  726. package/dist/chunk-QQUWYLSF.cjs.map +0 -1
  727. package/dist/chunk-QUMBH3U4.cjs +0 -9
  728. package/dist/chunk-QUMBH3U4.cjs.map +0 -1
  729. package/dist/chunk-R4KA7OFQ.js +0 -12
  730. package/dist/chunk-R4KA7OFQ.js.map +0 -1
  731. package/dist/chunk-RBSGAZQQ.js +0 -17
  732. package/dist/chunk-RBSGAZQQ.js.map +0 -1
  733. package/dist/chunk-RM5YJWZI.js +0 -46
  734. package/dist/chunk-RM5YJWZI.js.map +0 -1
  735. package/dist/chunk-ROKNKXA4.cjs +0 -8
  736. package/dist/chunk-ROKNKXA4.cjs.map +0 -1
  737. package/dist/chunk-RQG6D546.cjs +0 -75
  738. package/dist/chunk-RQG6D546.cjs.map +0 -1
  739. package/dist/chunk-SG4YDD5L.cjs +0 -74
  740. package/dist/chunk-SG4YDD5L.cjs.map +0 -1
  741. package/dist/chunk-SNRCA7EO.js +0 -56
  742. package/dist/chunk-SNRCA7EO.js.map +0 -1
  743. package/dist/chunk-SO75R4WW.cjs +0 -22
  744. package/dist/chunk-SO75R4WW.cjs.map +0 -1
  745. package/dist/chunk-SP34NHFI.js +0 -45
  746. package/dist/chunk-SP34NHFI.js.map +0 -1
  747. package/dist/chunk-SSKSSBWJ.cjs +0 -179
  748. package/dist/chunk-SSKSSBWJ.cjs.map +0 -1
  749. package/dist/chunk-TB5663C2.js +0 -1108
  750. package/dist/chunk-TB5663C2.js.map +0 -1
  751. package/dist/chunk-TGH4NRES.js +0 -220
  752. package/dist/chunk-TGH4NRES.js.map +0 -1
  753. package/dist/chunk-TJ6ZPNID.js +0 -189
  754. package/dist/chunk-TJ6ZPNID.js.map +0 -1
  755. package/dist/chunk-U45T35N2.cjs +0 -90
  756. package/dist/chunk-U45T35N2.cjs.map +0 -1
  757. package/dist/chunk-UKVOPEZ2.js +0 -442
  758. package/dist/chunk-UKVOPEZ2.js.map +0 -1
  759. package/dist/chunk-UTB4NROA.cjs +0 -887
  760. package/dist/chunk-UTB4NROA.cjs.map +0 -1
  761. package/dist/chunk-UTW33B5V.js +0 -6
  762. package/dist/chunk-UTW33B5V.js.map +0 -1
  763. package/dist/chunk-UYUBSD2V.cjs +0 -33
  764. package/dist/chunk-UYUBSD2V.cjs.map +0 -1
  765. package/dist/chunk-V3JEP5AG.cjs +0 -59
  766. package/dist/chunk-V3JEP5AG.cjs.map +0 -1
  767. package/dist/chunk-VFAGJXHR.js +0 -18
  768. package/dist/chunk-VFAGJXHR.js.map +0 -1
  769. package/dist/chunk-VMEE57E5.cjs +0 -58
  770. package/dist/chunk-VMEE57E5.cjs.map +0 -1
  771. package/dist/chunk-VQVBEX3Y.cjs +0 -113
  772. package/dist/chunk-VQVBEX3Y.cjs.map +0 -1
  773. package/dist/chunk-VZDXX7TT.cjs +0 -64
  774. package/dist/chunk-VZDXX7TT.cjs.map +0 -1
  775. package/dist/chunk-WE5ZTI4D.js +0 -346
  776. package/dist/chunk-WE5ZTI4D.js.map +0 -1
  777. package/dist/chunk-WEFUVABP.js +0 -19
  778. package/dist/chunk-WEFUVABP.js.map +0 -1
  779. package/dist/chunk-WMU4LRKC.js +0 -28
  780. package/dist/chunk-WMU4LRKC.js.map +0 -1
  781. package/dist/chunk-WQ24RRHL.cjs +0 -354
  782. package/dist/chunk-WQ24RRHL.cjs.map +0 -1
  783. package/dist/chunk-WW4CGS7G.cjs +0 -26
  784. package/dist/chunk-WW4CGS7G.cjs.map +0 -1
  785. package/dist/chunk-WXE5WCTM.js +0 -1144
  786. package/dist/chunk-WXE5WCTM.js.map +0 -1
  787. package/dist/chunk-X23BGIYA.cjs +0 -37
  788. package/dist/chunk-X23BGIYA.cjs.map +0 -1
  789. package/dist/chunk-XEW4FTR2.js +0 -98
  790. package/dist/chunk-XEW4FTR2.js.map +0 -1
  791. package/dist/chunk-XIOI4IYW.js +0 -167
  792. package/dist/chunk-XIOI4IYW.js.map +0 -1
  793. package/dist/chunk-XLVPJ37V.cjs +0 -44
  794. package/dist/chunk-XLVPJ37V.cjs.map +0 -1
  795. package/dist/chunk-XOHAXXZA.cjs +0 -51
  796. package/dist/chunk-XOHAXXZA.cjs.map +0 -1
  797. package/dist/chunk-Y4NRIHK6.cjs +0 -313
  798. package/dist/chunk-Y4NRIHK6.cjs.map +0 -1
  799. package/dist/chunk-Y4YMMKL3.js +0 -23
  800. package/dist/chunk-Y4YMMKL3.js.map +0 -1
  801. package/dist/chunk-YJNYBVE3.cjs +0 -14
  802. package/dist/chunk-YJNYBVE3.cjs.map +0 -1
  803. package/dist/chunk-Z762QNQP.cjs +0 -60
  804. package/dist/chunk-Z762QNQP.cjs.map +0 -1
  805. package/dist/chunk-ZG5KMBOF.js +0 -669
  806. package/dist/chunk-ZG5KMBOF.js.map +0 -1
  807. package/dist/chunk-ZKONQEFA.js +0 -344
  808. package/dist/chunk-ZKONQEFA.js.map +0 -1
  809. package/dist/chunk-ZR5X7QMH.js +0 -39
  810. package/dist/chunk-ZR5X7QMH.js.map +0 -1
  811. package/dist/chunk-ZW4BJQ26.js +0 -84
  812. package/dist/chunk-ZW4BJQ26.js.map +0 -1
  813. package/dist/climbs-BhlWuu0x.d.ts +0 -70
  814. package/dist/climbs-DgBFwySV.d.cts +0 -70
  815. package/dist/data/index.cjs.map +0 -1
  816. package/dist/data/index.js.map +0 -1
  817. package/dist/errors/index.cjs.map +0 -1
  818. package/dist/errors/index.js.map +0 -1
  819. package/dist/geo/index.cjs.map +0 -1
  820. package/dist/geo/index.js.map +0 -1
  821. package/dist/icons/index.cjs.map +0 -1
  822. package/dist/icons/index.js.map +0 -1
  823. package/dist/itinerary-Dp2ZnqgD.d.cts +0 -178
  824. package/dist/itinerary-Dp2ZnqgD.d.ts +0 -178
  825. package/dist/layers/index.cjs.map +0 -1
  826. package/dist/layers/index.js.map +0 -1
  827. package/dist/map-client/index.cjs.map +0 -1
  828. package/dist/map-client/index.js.map +0 -1
  829. package/dist/markerSprite-DGBQF6PO.cjs +0 -49
  830. package/dist/markerSprite-DGBQF6PO.cjs.map +0 -1
  831. package/dist/markerSprite-DZLTR6F6.js +0 -8
  832. package/dist/markerSprite-DZLTR6F6.js.map +0 -1
  833. package/dist/mountayaMap-C9mxRFib.d.cts +0 -3277
  834. package/dist/mountayaMap-DgnlQ2fE.d.ts +0 -3277
  835. package/dist/paint-BgUcj8l7.d.cts +0 -118
  836. package/dist/paint-Dx_qGNE_.d.ts +0 -118
  837. package/dist/profile/index.cjs.map +0 -1
  838. package/dist/profile/index.js.map +0 -1
  839. package/dist/seams/index.cjs.map +0 -1
  840. package/dist/seams/index.js.map +0 -1
  841. package/dist/search/index.cjs.map +0 -1
  842. package/dist/search/index.js.map +0 -1
  843. package/dist/searchHighlight-DFE7LVIL.cjs +0 -33
  844. package/dist/searchHighlight-DFE7LVIL.cjs.map +0 -1
  845. package/dist/searchHighlight-MHAQZVWG.js +0 -12
  846. package/dist/searchHighlight-MHAQZVWG.js.map +0 -1
  847. package/dist/strings-30RSdIat.d.cts +0 -552
  848. package/dist/strings-DPTIbzT5.d.ts +0 -552
  849. package/dist/stripeImage-CQUXM2YI.js +0 -14
  850. package/dist/stripeImage-CQUXM2YI.js.map +0 -1
  851. package/dist/stripeImage-R43OPA6U.cjs +0 -39
  852. package/dist/stripeImage-R43OPA6U.cjs.map +0 -1
  853. package/dist/style/index.cjs.map +0 -1
  854. package/dist/style/index.js.map +0 -1
  855. package/dist/types-B034JMjl.d.ts +0 -973
  856. package/dist/types-B2NDLxQA.d.cts +0 -21
  857. package/dist/types-B2NDLxQA.d.ts +0 -21
  858. package/dist/types-C8aX5KMU.d.cts +0 -973
  859. package/dist/units/index.cjs.map +0 -1
  860. package/dist/units/index.js.map +0 -1
  861. package/dist/view/index.cjs.map +0 -1
  862. package/dist/view/index.js.map +0 -1
@@ -1,1856 +1,6 @@
1
- import { Position, Polygon, Geometry } from 'geojson';
2
- import { TileSchema } from '@mountaya/client';
3
- import { O as Overlay, W as WaypointDraftSnapshot, b as SegmentEditOptions, d as WaypointEditOptions, g as ZoneEditOptions, a as BoundaryEditOptions, B as BoundaryDraft, Z as ZoneDraft, i as CameraPose, S as SegmentDraft, c as SegmentViaPromptEvent, e as WaypointEngineDraftChange } from '../types-C8aX5KMU.cjs';
4
- export { D as DraftPhase } from '../types-C8aX5KMU.cjs';
5
- import { IconProvider } from '../icons/index.cjs';
6
- import { b as RecordingCamera, V as VideoProgress, R as RecordOutput, a as RecordProfile, d as VideoRecordingResult } from '../camera-BrFLU1DH.cjs';
7
- import { B as BoundingBox, F as FitBoundsPadding, M as MapViewport } from '../types-BEv8V_8V.cjs';
8
- import { S as SearchHighlight } from '../types-CTQwbSdA.cjs';
9
- import '../types-B2NDLxQA.cjs';
10
- import '../zones-B05QA8fy.cjs';
11
- import '../segmentRoute-CIo6dR8Y.cjs';
12
- import '../routeProfile-BsSUABXv.cjs';
13
- import '../itinerary-Dp2ZnqgD.cjs';
14
- import '../climbs-DgBFwySV.cjs';
15
- import '../units-D9mBrusY.cjs';
16
-
17
- /**
18
- * WaypointCursorInput names what the cursor draws: the draft's icon and colour, the glyph set
19
- * to draw the icon from, and the canvas size in CSS pixels.
20
- *
21
- * `size` is stated rather than assumed because it has to equal the marker sprite's own size for
22
- * the cursor to be a preview rather than an approximation, and only the caller rendering the
23
- * sprite knows that number.
24
- */
25
- interface WaypointCursorInput {
26
- readonly color: string;
27
- readonly icon: string;
28
- readonly provider: IconProvider;
29
- readonly size: number;
30
- }
31
-
32
- /**
33
- * The map client contract: the command surface a tool bus drives a map through, and the shapes
34
- * its commands take and return.
35
- *
36
- * `MapLibreClient` in `@mountaya/elements/editor` implements it on the web, and a native renderer
37
- * implements the same interface. Everything here is a type and nothing here names a renderer, so
38
- * `@mountaya/elements/map-client` publishes it with no `maplibre-gl` in its declarations: a
39
- * package that types a map client (a studio's tool context, a fake in a test) and never draws one
40
- * type-checks with no renderer installed.
41
- *
42
- * The shapes the commands speak that are declared elsewhere (the editing drafts and options, the
43
- * geometry and viewport vocabulary, the manifest's overlay, the recording camera) are re-exported
44
- * from their renderer-free homes rather than restated, so each has one declaration.
45
- */
46
-
47
- /**
48
- * PoiInfo is one point of interest a right-click query resolves under the cursor: the feature's
49
- * display `name` (null when the tile carries none), its `category`, the OpenMapTiles class or
50
- * subclass that names what the feature is (for example "restaurant", "hotel", "parking"), and the
51
- * `id` the tile gives the feature (null when it gives none).
52
- *
53
- * The value crosses from the map to a tool, then to the store and the UI: the map client produces
54
- * it from the renderer, and the context-menu tool validates it before it lands in the store. It
55
- * carries no icon or color, because the Tile API's POI overlay owns how a tile POI is styled, so
56
- * the popup shows the name and category as text rather than inventing a parallel marker style.
57
- */
58
- interface PoiInfo {
59
- category: string;
60
- id: string | null;
61
- name: string | null;
62
- }
63
- /**
64
- * OverlayFeature is one active-overlay vector feature resolved under a right-click: a flat map of
65
- * the feature's display properties (a weather overlay's temperature, wind speed and wind
66
- * direction, for instance). Each value is a primitive the popup can render as text: a string, a
67
- * number, a boolean, or null when the tile carries the key with no value.
68
- *
69
- * It crosses from the map to a tool, then to the store and the UI, the way {@link PoiInfo} does:
70
- * the map client produces it from the renderer, and the context-menu tool validates it before it
71
- * lands in the store. The value carries the raw properties, and unit-aware formatting (degrees
72
- * Celsius or Fahrenheit, km/h, a wind-direction arrow) is left to a formatter that knows each
73
- * property by its key.
74
- */
75
- type OverlayFeature = Record<string, string | number | boolean | null>;
76
- /**
77
- * MapContextMenuEvent is the readout emitted on a right-click (MapLibre's `contextmenu` event): the
78
- * `[lng, lat]` under the cursor and the container pixel it sits at. The pixel positions the
79
- * context-menu popup inside the studio root; the coordinate seeds the POI query and the popup's
80
- * links.
81
- */
82
- interface MapContextMenuEvent {
83
- lngLat: [number, number];
84
- point: [number, number];
85
- }
86
- /**
87
- * MapPointerMove is the readout emitted as the pointer moves over the map (MapLibre's `mousemove`
88
- * event): the `[lng, lat]` under the cursor and the container pixel it sits at. The pixel positions
89
- * a cursor-following overlay (the editing tooltip) inside the studio root without the move ever
90
- * entering reactive state; the coordinate is there for a consumer that needs the geographic
91
- * position. It mirrors {@link MapContextMenuEvent}'s shape, so a follower and a right-click popup
92
- * anchor the same way.
93
- */
94
- interface MapPointerMove {
95
- lngLat: [number, number];
96
- point: [number, number];
97
- }
98
- /**
99
- * FeatureHit is one tile feature resolved under a click or hover on a scoped set of layers: the
100
- * feature's `id` (the tile feature id, which is a segment or waypoint id for the itinerary layers,
101
- * or null when the tile carries none) and a flat `properties` map of its tile attributes. Each
102
- * value is a primitive a caller can branch on: a string, a number, a boolean, or null.
103
- *
104
- * It is platform-neutral for the reason {@link PoiInfo} is: the value crosses from the map to the
105
- * application and a tool, so the raw renderer feature stays inside the map package and never
106
- * leaks through {@link MapClient}. The application reads the id and properties to decide which
107
- * tool to dispatch (select a segment, or a waypoint).
108
- */
109
- interface FeatureHit {
110
- /**
111
- * How many clicks in a row the click that made this hit closes, as the browser counts them on
112
- * one spot: 1 for a click, 2 for the second click of a double-click, and so on. It tells a
113
- * click that starts a gesture from one that ends a double-click the first click already
114
- * answered. Absent for a hit no click made (a hover), and for a click that counts none.
115
- */
116
- clickCount?: number | undefined;
117
- id: string | number | null;
118
- properties: Record<string, string | number | boolean | null>;
119
- /**
120
- * The vector source-layer the feature was drawn from (`itinerary_lines`, `itinerary_points`,
121
- * `itinerary_restrictions`), so a subscription over layers that draw several of them tells
122
- * the features apart by what the tiles state they are. Absent for a feature of a GeoJSON
123
- * source, which has no source-layer.
124
- */
125
- sourceLayer?: string | undefined;
126
- }
127
- /**
128
- * FeatureHoverHandlers are the two callbacks a layer-scoped hover subscription fires: `onEnter`
129
- * when the pointer moves onto a feature in the scoped layers (carrying the feature under it), and
130
- * `onLeave` when it moves off. A consumer drives a focus or an emphasis on enter and clears it on
131
- * leave. The enter is told again on each hit-test while the pointer stays on a feature, so what
132
- * it drives is idempotent.
133
- */
134
- interface FeatureHoverHandlers {
135
- onEnter: (hit: FeatureHit) => void;
136
- onLeave: () => void;
137
- }
138
- /**
139
- * FeatureSubscriptionOptions narrow a feature subscription below the layers it names: which of
140
- * the features on those layers it answers.
141
- *
142
- * A layer often draws features a surface treats differently. One layer draws every itinerary
143
- * the map shows, and a surface with one of them open answers that one's lines and markers and
144
- * none of the others, though all of them sit on the same layer.
145
- */
146
- interface FeatureSubscriptionOptions {
147
- /**
148
- * Whether the subscription answers the feature under the pointer: true to answer it, false to
149
- * treat it as if it were not on the subscription's layers at all.
150
- *
151
- * The pointer is read as hitting the topmost feature this accepts, so a feature it refuses
152
- * drawn over one it accepts never hides it. A refused feature sets no pointer cursor and
153
- * fires no click and no hover. It is asked on every hit-test, so it reads the surface's state
154
- * as it stands when the pointer moves, and it should be cheap. Left out, every feature on the
155
- * layers is answered.
156
- */
157
- readonly accepts?: ((hit: FeatureHit) => boolean) | undefined;
158
- }
159
- /**
160
- * TileRequest is the platform-agnostic shape a {@link TileRequestTransform} returns for a request
161
- * URL: the url, rewritten or not, and optional auth, either headers (an API key or a session token
162
- * for an embed) or `credentials: "include"` (the session cookie an authenticated studio carries).
163
- * It is a structural subset of the web renderer's request-parameters type, so a host builds the
164
- * transform without importing MapLibre at all (the renderer stays in the entries of
165
- * `@mountaya/elements` that draw), and the client hands it straight through.
166
- */
167
- interface TileRequest {
168
- /**
169
- * Whether the page's cookies ride the request: `"include"` sends them to the request's origin
170
- * whatever it is, and `"same-origin"` to the page's own alone.
171
- *
172
- * The member is typed as the web renderer types it, so a transform written against this type
173
- * is handed to the renderer as it is, and the renderer names only the two values that send
174
- * cookies somewhere. A request the package's own transform claims without the cookie flag
175
- * carries `"omit"`, the third value `fetch` takes, so a key or a share token is never joined
176
- * by the page's session (`TransformedRequest.credentials` says the same). A transform of your
177
- * own gets that request from `createTransformRequest`, which a host chains its own through
178
- * `next`.
179
- */
180
- credentials?: "same-origin" | "include" | undefined;
181
- headers?: Record<string, string> | undefined;
182
- url: string;
183
- }
184
- /**
185
- * TileRequestTransform rewrites a request URL before the map fetches it, to attach Tile API auth:
186
- * the map fetches tile URLs outside the REST client, so auth is wired here at map construction
187
- * rather than per request. It returns undefined to leave a URL that is not a tile's untouched. The
188
- * application builds it (it owns the auth strategy and the Tile API base) and passes it to the
189
- * map, and the renderer's client adapts it to its own request-transform hook.
190
- *
191
- * `@mountaya/elements` publishes `RequestTransform` for the same position in the pipeline, and
192
- * this is deliberately not it. The published one takes MapLibre's `resourceType` and answers a
193
- * `TransformedRequest`; this one is the narrower contract between the application and the map: a
194
- * URL in, an optional rewrite out, with the resource kind irrelevant because the only URLs it
195
- * claims are the Tile API's. Naming the same job twice is not the duplication that matters:
196
- * nothing stateful lives on either side of this seam, and the adaptation happens once, where the
197
- * map is constructed.
198
- */
199
- type TileRequestTransform = (url: string) => TileRequest | undefined;
200
- /**
201
- * BaseTerrainConfig is the base layer resolved from the GET /v1/tile-layers manifest: `styleUrl`
202
- * is the terrain variant's vector style document, loaded whole as the base map, and `demUrl`,
203
- * when present, is the raster-dem TileJSON that drives the always-on 3D relief. The renderer
204
- * loads the vector style and bakes the relief into that style document, so the 3D survives every
205
- * base-map switch.
206
- *
207
- * It is platform-agnostic: the application resolves a terrain slug and variant to this shape, and
208
- * the client loads the base style from it. The URLs carry their own credentials, so no key lives
209
- * on this config; section and overlay layers are added on top again once the style loads.
210
- */
211
- interface BaseTerrainConfig {
212
- /**
213
- * demUrl is the raster-dem TileJSON URL for the always-on 3D terrain. Absent, the base map stays
214
- * flat with no relief.
215
- */
216
- demUrl?: string | undefined;
217
- /** styleUrl is the terrain variant's vector style document URL, loaded whole as the base map. */
218
- styleUrl: string;
219
- }
220
- /**
221
- * MapViewportChange is the camera readout emitted on every viewport move: the current bearing (in
222
- * degrees), zoom and center. Passive overlays (a compass, a scale) subscribe to it through
223
- * {@link MapClient.onViewportChange}, and {@link MapClient.onViewportSettle} hands the same
224
- * readout once, as a move ends.
225
- *
226
- * It is a strict subset of the `Camera` the package root publishes, and it keeps its own name
227
- * because the two answer different questions. `Camera` is every channel resolved, pitch included,
228
- * which is what a caller restoring a view needs; this is what a passive readout reads, and pitch
229
- * is not one of them, since a compass that re-rendered on a tilt would re-render for nothing. The
230
- * three channels it does carry are pinned to the published ones in `cameraVocabulary.test.ts`, so
231
- * the subset stays a subset rather than becoming a second spelling.
232
- */
233
- interface MapViewportChange {
234
- bearing: number;
235
- center: [number, number];
236
- zoom: number;
237
- }
238
- /**
239
- * ContextMenuZone is one zone as the right-click context menu shows it: its id, its name and
240
- * description, the level it carries, the window it applies over, and the organization that owns it
241
- * (null for a personal zone, which belongs to no organization).
242
- *
243
- * It is declared here for the reason {@link ItineraryEmphasis} is: it describes what a POPUP DRAWS,
244
- * and the popup is a rendering concern. The studio's store holds it, and the schema that validates
245
- * a zone arriving in the store is pinned to this shape in `@mountaya/studio` with `satisfies`, so
246
- * both ends read one declaration.
247
- */
248
- interface ContextMenuZone {
249
- description: string;
250
- endAt: number | null;
251
- id: string;
252
- level: string;
253
- name: string;
254
- organizationId: string | null;
255
- startAt: number | null;
256
- }
257
- /**
258
- * ItineraryEmphasis is the focus state the itinerary tile geometries render under: nothing dimmed,
259
- * everything dimmed, or one itinerary, segment, set of segments or waypoint lit while the rest
260
- * dims.
261
- *
262
- * It is published because it is a tool INPUT: `studio.itinerary.emphasis.set` takes it, and the
263
- * contract that declares that tool declares this shape. It is a transient, high-frequency
264
- * interaction (a cursor moving over a list), so it is driven imperatively on the client rather
265
- * than held as reactive state, and still issued through the bus so a human hover and an agent call
266
- * drive the same path.
267
- *
268
- * Declared here rather than inferred from the studio's schema, which is the direction the
269
- * tie-break rule names: emphasis is DISPLAY STATE (what the map dims and what it lights), so a
270
- * consumer driving their own renderer needs the shape without a studio to hold it. The schema that
271
- * validates an emphasis arriving over the tool seam stays in `@mountaya/studio` and is pinned to
272
- * this union with `satisfies`, so the two cannot drift.
273
- */
274
- type ItineraryEmphasis = {
275
- mode: "none";
276
- } | {
277
- mode: "dimAll";
278
- } | {
279
- id: string;
280
- mode: "itinerary";
281
- } | {
282
- id: string;
283
- mode: "segment";
284
- } | {
285
- ids: string[];
286
- mode: "segments";
287
- } | {
288
- id: string;
289
- mode: "waypoint";
290
- };
291
-
292
- /**
293
- * ProfileMarkerIcon fills the follow-marker pin's head, in one of two ways.
294
- *
295
- * `url` masks an imported silhouette in the glyph color: the plain-DOM twin of the CSS mask
296
- * ActivityIcon paints, which the elevation profile uses to stamp the itinerary's activity. `glyph`
297
- * names an entry in the generated marker-glyph table and is inlined directly, so a caller that
298
- * wants a glyph the package already compiles does not ship a second copy of it as a standalone
299
- * asset.
300
- *
301
- * Two shapes rather than one optional-both object: exactly one source must be present, and a union
302
- * says so at the call site instead of leaving a both-null or both-set state to handle at render
303
- * time.
304
- *
305
- * `rotate` turns a GLYPH clockwise by that many degrees about its own centre, and it belongs to the
306
- * descriptor rather than to the glyph table because orientation is the caller's business: the
307
- * compiled marker glyph is drawn once, at the angle the icon set ships it, and a surface that wants
308
- * it pointing another way says so here instead of committing every other consumer to the same
309
- * turn. The `url` form has no counterpart: an imported silhouette is the application's own asset
310
- * and is authored at the angle it wants.
311
- */
312
- type ProfileMarkerIcon = {
313
- background: string;
314
- color: string;
315
- url: string;
316
- } | {
317
- background: string;
318
- color: string;
319
- glyph: string;
320
- rotate?: number | undefined;
321
- };
322
- /**
323
- * PeerDraftKind names the entity family a collaborator's live-draft ghost renders for: a segment
324
- * (a dashed line), a waypoint (a marker ghost), or a zone (a polygon outline). It mirrors the
325
- * collaboration lock and draft entity family, spelled here because the map package depends on no
326
- * application type, so the render surface stays platform-neutral.
327
- */
328
- type PeerDraftKind = "segment" | "waypoint" | "zone";
329
- /**
330
- * PeerDraftEntity is the `{ kind, id }` a peer-draft ghost is keyed on, so a per-entity set of
331
- * sources and layers is added, updated and cleared independently, and many collaborators' ghosts
332
- * can be on screen at once.
333
- */
334
- interface PeerDraftEntity {
335
- id: string;
336
- kind: PeerDraftKind;
337
- }
338
- /**
339
- * ItineraryPreviewLine is one line the itinerary preview overlay paints: a coordinate list, the CSS
340
- * `color` to stroke it in, and whether it renders `dashed`. The DTO is policy-free (it paints
341
- * exactly the lines it is handed, solid or dashed), so the ours-versus-theirs decision (which
342
- * candidate is the chosen one and which is the muted alternative) lives in the sync hook that
343
- * builds the DTO, not in the renderer.
344
- */
345
- interface ItineraryPreviewLine {
346
- color: string;
347
- coordinates: Position[];
348
- dashed: boolean;
349
- }
350
- /**
351
- * ItineraryPreviewWaypoint is one waypoint the itinerary preview overlay paints: the `[lng, lat]`
352
- * it sits at plus the `icon` glyph and `color` the symbol layer stamps, reusing the sprite contract
353
- * the persisted itinerary tiles paint with (a `section-icon-<icon>-<hex>` id rasterized by the
354
- * shared image-missing handler), so a preview waypoint matches, pixel for pixel, the tile it
355
- * becomes on confirm.
356
- */
357
- interface ItineraryPreviewWaypoint {
358
- color: string;
359
- icon: string;
360
- lngLat: [number, number];
361
- }
362
- /**
363
- * ItineraryPreviewRender is the render-free DTO for a NON-PERSISTED itinerary draft (an import
364
- * preview): the lines and waypoints to paint as a read-only GeoJSON overlay. A persisted itinerary
365
- * paints through the always-on vector tiles, so this overlay exists only for a draft that has no
366
- * tiles yet.
367
- *
368
- * It is policy-free: it carries fully styled lines (solid or dashed, a color per line) and
369
- * waypoints, leaving the ours-versus-theirs styling to the caller that builds it. It is
370
- * platform-agnostic too, so no map SDK type leaks through {@link MapClient}.
371
- */
372
- interface ItineraryPreviewRender {
373
- lines: ItineraryPreviewLine[];
374
- waypoints: ItineraryPreviewWaypoint[];
375
- }
376
- /**
377
- * ItineraryExclusions lists the itinerary features the tile render must suppress: the segment ids
378
- * dropped from the line layers and the waypoint ids dropped from the point layers. A feature is
379
- * hidden from the tiles when it is being drawn as an editable element elsewhere, so the editable
380
- * copy is the only one on screen and the two never double up. Empty lists draw the full itinerary.
381
- */
382
- interface ItineraryExclusions {
383
- segmentIds: string[];
384
- waypointIds: string[];
385
- }
386
- /**
387
- * PointPickChange is the discrete event a point pick emits on each map click while armed: the
388
- * `[lng, lat]` coordinate the click resolved to. It is a render-free DTO (no map SDK type leaks
389
- * through it), fanned out through the client's `onPointPickChange` registry. There is no "miss"
390
- * variant: a point pick captures a raw coordinate, not a feature, so every click produces one.
391
- */
392
- interface PointPickChange {
393
- lngLat: [number, number];
394
- }
395
- /**
396
- * PointPickOptions arms a point pick. `target` names what the captured coordinate stands for: the
397
- * `start` or the `end` of a route being assembled, the `split` point an existing segment is cut at,
398
- * or the `origin` a reachability zone is measured from. The map engine itself is target-agnostic
399
- * (it only captures clicks); `target` rides through for symmetry with the begin and end edit
400
- * families and for telemetry, and it lets the application's driver pick the right cursor tooltip
401
- * ("set the starting point", "set the ending point", "click the route where you want to split it",
402
- * "click to set the origin").
403
- *
404
- * The union is deliberately WIDER than the suggest flow's own `PickTarget`: the two route endpoints
405
- * are one surface's vocabulary, while this is every surface that captures a raw coordinate.
406
- */
407
- interface PointPickOptions {
408
- target: "end" | "origin" | "split" | "start";
409
- }
410
- /**
411
- * OverlayZoomRange is the minimal shape `ensureOverlayInZoomRange` reads: a slug and the zoom range
412
- * it paints at. It is a structural subset of the manifest's overlay catalogue entry, so a caller
413
- * can pass that entry as it is; the helper only ever inspects `minzoom` and `maxzoom`.
414
- */
415
- interface OverlayZoomRange {
416
- maxzoom: number;
417
- minzoom: number;
418
- slug: string;
419
- }
420
- /**
421
- * MapConstraints bound the camera: a minimum and maximum zoom, and a max-bounds box the center
422
- * cannot leave. Every field is optional so a caller asserts only what it knows, and a field
423
- * stated as `null` releases a bound set earlier: a null `maxBounds` lifts the lock, a null
424
- * `minZoom` puts the floor back at -2 and a null `maxZoom` the ceiling back at 22, the window a
425
- * map is built with when it is given none. Applied on load and asserted again after a base-layer
426
- * swap, so a terrain switch never drops them. A `maxBounds` holds an area: `setConstraints`
427
- * refuses one with no width, no height or an edge at no finite coordinate.
428
- */
429
- interface MapConstraints {
430
- maxBounds?: BoundingBox | null | undefined;
431
- maxZoom?: number | null | undefined;
432
- minZoom?: number | null | undefined;
433
- }
434
- /**
435
- * GeolocateResult is the structured outcome of a `tryGeolocate` attempt. `ok: true` means the
436
- * device fix landed and the camera framed it; `ok: false` carries the reason the attempt did not
437
- * produce one (the viewer denied the permission, the sensor was unavailable, or the browser has no
438
- * geolocation API at all), so the caller branches on the user-visible toast copy (a
439
- * request-permissions hint, or an unavailable note) without driving a separate state machine. The
440
- * map client never throws this: a denied permission is a resolved result, not a rejection.
441
- */
442
- type GeolocateResult = {
443
- ok: true;
444
- } | {
445
- ok: false;
446
- reason: "denied" | "no_api" | "unavailable";
447
- };
448
- /**
449
- * WaypointCursorOptions is the glyph set and canvas size the visible waypoint cursor is drawn with,
450
- * supplied by the host rather than bundled.
451
- *
452
- * The glyph markup belongs to whoever licensed it, so a map client cannot ship a table of path
453
- * data: it draws whatever an `IconProvider` gives it. `size` travels with the provider because it
454
- * has to equal the marker sprite's own size for the cursor to read as a preview of the marker the
455
- * next click lands, and only the host knows that. It is a finite number of CSS pixels above 6,
456
- * twice the inset of the cursor's ring, and an engine handed any other refuses it by name.
457
- *
458
- * Derived from the published cursor input by picking exactly the two fields the host supplies,
459
- * rather than restated. A second declaration would compile, and would stop matching the day the
460
- * published shape changed either one.
461
- */
462
- type WaypointCursorOptions = Pick<WaypointCursorInput, "provider" | "size">;
463
- /**
464
- * VideoSeam is the recording subsystem, injected into a map client rather than owned by it. It
465
- * orchestrates one preview or record flight: the camera snapshot and restore, the abort-signal
466
- * lifecycle, the frame capture and encode, and the moving "you are here" dot the flight drives
467
- * along the route.
468
- *
469
- * It is a seam and not a field because recording is an optional capability with the heaviest
470
- * dependency behind it: a video encoder. A map that only draws a route should not carry a codec,
471
- * so the client takes the seam when a host supplies one and reports the recording methods
472
- * unsupported when it does not. The map is the whole of what the seam needs: it holds no
473
- * back-reference to the client.
474
- *
475
- * `warmPoses` is deliberately NOT here. It jumps the camera through a strided subset of the flight
476
- * and waits for tiles to settle, which is the map's own work, as useful before a recording as
477
- * before any scripted camera tour.
478
- */
479
- interface VideoSeam {
480
- /**
481
- * dispose aborts any in-flight run, restores the camera and the renderer clock, and drops the
482
- * focus marker. The client calls it first in its own dispose, ahead of the event engine
483
- * teardown that detaches the recorder's render listener.
484
- */
485
- dispose: () => void;
486
- /** previewPoses flies the camera along the poses live, encoding nothing. */
487
- previewPoses: (poses: RecordingCamera[], options: {
488
- focusGlyphUrl?: string | undefined;
489
- markers?: [number, number][] | undefined;
490
- onProgress?: ((progress: VideoProgress) => void) | undefined;
491
- planDurationMs?: number | undefined;
492
- signal: AbortSignal;
493
- }) => Promise<void>;
494
- /** recordPoses captures and encodes one frame per pose into a video. */
495
- recordPoses: (poses: readonly RecordingCamera[], output: RecordOutput, options: {
496
- focusGlyphUrl?: string | undefined;
497
- markers?: [number, number][] | undefined;
498
- onProgress?: ((progress: VideoProgress) => void) | undefined;
499
- profile?: RecordProfile | undefined;
500
- signal: AbortSignal;
501
- /**
502
- * Whether the caller has just warmed these very poses' viewports, every frame's zoom and
503
- * pitch included, so no warm pass runs.
504
- *
505
- * @default false
506
- */
507
- warmed?: boolean | undefined;
508
- }) => Promise<VideoRecordingResult>;
509
- /** setVideoFocusMarker drops, or with null clears, the moving "you are here" dot. */
510
- setVideoFocusMarker: (lngLat: [number, number] | null) => void;
511
- }
512
- /**
513
- * MapClient is the platform-agnostic command surface each renderer's client implements
514
- * (`MapLibreClient` on the web, a native renderer's own client elsewhere). The tool bus issues
515
- * these commands, and the client translates them to the underlying SDK. Render-free: no platform
516
- * type leaks through this interface.
517
- */
518
- interface MapClient {
519
- /**
520
- * addTileSources adds vector and raster tile sources (from the GET /v1/tile-layers manifest) and
521
- * their layers to the map. `zoom_min` and `zoom_max` map onto the source's and the layers'
522
- * `minzoom` and `maxzoom`. Restating a source unchanged is a no-op, so a caller may declare the
523
- * manifest on every render; restating one whose content CHANGED under the same id redraws it
524
- * from the incoming manifest. Tile-request auth is wired separately, at map construction (the
525
- * request transform), not per source.
526
- */
527
- addTileSources: (sources: TileSchema.TileSource[]) => void;
528
- /**
529
- * setCategoryOverlay draws the one active category overlay from the GET /v1/tile-layers manifest,
530
- * replacing whichever was drawn before; `null` clears it.
531
- *
532
- * Category overlays are exclusive by contract (slope, snow depth and avalanche risk each repaint
533
- * the same ground), which is why this is a `set` against one slot rather than an `add` against a
534
- * bucket. The camera eases into the sources' zoom window on the way in, so an overlay whose tiles
535
- * only paint above (or below) the current zoom never reads as "I picked it but nothing appeared".
536
- *
537
- * Distinct from {@link addTileSources}, which takes a bare source list and carries the studio's
538
- * own itinerary and zone cartography. An overlay has neither, so it rides the slot instead: the
539
- * slot replaces rather than accumulates, and it survives a base-map switch on its own.
540
- */
541
- setCategoryOverlay: (overlay: Overlay | null) => void;
542
- /**
543
- * addEnrichmentOverlay stacks one enrichment overlay on top of whatever is already drawn, keyed
544
- * on the overlay's own slug.
545
- *
546
- * `add`, not `set`, because enrichments compose: hillshade under a slope overlay under a route is
547
- * the ordinary case, so each holds its own slot and a second never disturbs the first. Adding a
548
- * slug already drawn restates it rather than stacking a second copy. The camera eases into the
549
- * sources' zoom window exactly as {@link setCategoryOverlay} does.
550
- */
551
- addEnrichmentOverlay: (overlay: Overlay) => void;
552
- /**
553
- * removeEnrichmentOverlay removes the enrichment drawn for `slug`, leaving every other enrichment
554
- * and the category overlay untouched. A slug holding nothing is a no-op.
555
- */
556
- removeEnrichmentOverlay: (slug: string) => void;
557
- /**
558
- * setTileLayerVisibility shows or hides one tile layer already added, by id: the per-layer toggle
559
- * the POI overlay menu drives (a POI group maps to one or more manifest layer ids). The desired
560
- * value is intent rather than a paint: it outlives the layer, and every redraw bakes it into the
561
- * layer's layout, so a hidden layer stays hidden across a base-map switch. It is recorded just the
562
- * same against a layer that is not on the map yet, which is how a category toggled before its
563
- * source arrives is born hidden.
564
- */
565
- setTileLayerVisibility: (layerId: string, visible: boolean) => void;
566
- /**
567
- * applyCursor sets the map's cursor to the given CSS value, unless a cursor lock is held: then
568
- * the locked cursor stays, and the requested value is only remembered as the base to restore when
569
- * the lock releases. It is the single cursor-write seam: the layer hover handlers (a pointer over
570
- * a clickable feature, cleared to "" on leave) call it, so a hover firing its leave during an edit
571
- * cannot wipe the edit's pinned cursor. An empty string resets to the default cursor.
572
- */
573
- applyCursor: (cursor: string) => void;
574
- /**
575
- * applySegmentDraft replaces the editing feature's geometry with the given draft and pins the
576
- * start again to the new head: the swap an undo or redo restore performs (restoring a known-good
577
- * geometry rather than an incremental edit). It is a programmatic write, so the change it
578
- * triggers is flagged programmatic through `onSegmentDraftChange`. A subscriber records its own
579
- * interactive edits in history but must not record this replay again, or an undo would itself
580
- * push a history entry and the stack could never unwind. In directions mode the engine routes the
581
- * restored vias again internally. `vias` are the editable handle coordinates in the active mode
582
- * (directions vias, or freehand vertices). A no-op when no segment edit is active.
583
- *
584
- * A freehand edit draws each via as its longitude and latitude alone, at nine decimals, so a
585
- * third ordinate and a tenth decimal are dropped and `getSegmentDraft` answers the line as drawn.
586
- * On a freehand edit that has drawn nothing yet, the draft is the line's first and is seeded.
587
- *
588
- * @throws {MountayaElementsError} From a freehand edit, when its drawing library refuses the
589
- * line (a longitude past 180, a number that is not finite). Nothing is written and the draft
590
- * stays as it was.
591
- */
592
- applySegmentDraft: (vias: Position[]) => void;
593
- /**
594
- * applyWaypointDraft writes a new draft snapshot (position, icon and color) onto the active
595
- * waypoint engine's rendered marker. It is a programmatic write: the change does NOT fire
596
- * `onWaypointDraftChange` (the seam carries interactive clicks only), so the store's undo and
597
- * redo can paint the engine again without looping its own restore back through the change
598
- * subscribers. A no-op when no waypoint edit is active.
599
- */
600
- applyWaypointDraft: (snapshot: WaypointDraftSnapshot) => void;
601
- /**
602
- * clearWaypointDraft takes the active waypoint engine's dropped marker off the map, for an undo
603
- * back past a create's first placement: the store's draft holds no position, and the map shows
604
- * none either. The engine stays armed, so the next click places again. A programmatic write,
605
- * like {@link applyWaypointDraft}: it fires no `onWaypointDraftChange`. A no-op when no waypoint
606
- * edit is active or nothing is placed.
607
- */
608
- clearWaypointDraft: () => void;
609
- /**
610
- * reseedWaypointEdit moves the armed waypoint engine's rendered marker to a new coordinate,
611
- * keeping its current icon and color.
612
- *
613
- * It is the agent-iteration seam. The co-pilot proposing a new position for a waypoint whose edit
614
- * session is already open must move the live marker, but the waypoint editing hook keys its
615
- * arming effect on the session IDENTITY (the waypoint id and the mode) and deliberately holds the
616
- * seed OUT of its dependencies, since folding the live draft in would rebuild the engine
617
- * mid-drag. So a second begin with a new position never arms the engine again, and this seam
618
- * seeds the position directly instead.
619
- *
620
- * It is a programmatic write: it does NOT fire `onWaypointDraftChange`, so it never loops back
621
- * through the placement subscribers, mirroring {@link applyWaypointDraft}. A no-op when no
622
- * waypoint edit is active or no placement has landed yet (nothing to move). The first proposal
623
- * needs no seeding, because the hook arms the engine from the fresh session, so only an
624
- * iteration on a session already open calls it.
625
- */
626
- reseedWaypointEdit: (lngLat: [number, number]) => void;
627
- /**
628
- * beginSegmentEdit starts an editable segment, building the engine for its mode (the directions
629
- * SDK for vias, TerraDraw for a freehand line). It draws the seeded handles in the segment color
630
- * with the start pinned to `pinnedStart`, hides the segment's tile copy so the editable copy is
631
- * the only one on screen, and locks the map for the edit. The editable feature is keyed on the
632
- * segment id, so its draft maps straight back to the store. A directions edit routes through the
633
- * injected `routeFn`; edits flow out through `onSegmentDraftChange`.
634
- *
635
- * The lock has two halves: drag-pan is disabled, so a drag reshapes the line rather than panning,
636
- * and a base-map switch is refused, so a terrain swap cannot wipe the editable feature.
637
- * `endSegmentEdit` tears the engine down, restores the tile copy and releases both. Calling this
638
- * while another segment edit is active replaces that edit: the active engine is disposed before
639
- * the next is built, so at most one engine is ever attached. Mutual exclusion across waypoint
640
- * edits is enforced one level up, at the tool layer.
641
- *
642
- * A `directions` seed whose first or last via stands further from its pin than the backend's
643
- * tolerance opens with the pin in its place; a freehand seed of two vias or more must start at
644
- * `pinnedStart` and end at `pinnedEnd`.
645
- *
646
- * What the engine refuses is read first, a call that repeats the edit that stands included.
647
- *
648
- * @throws {MountayaElementsError} When the client holds no edit engine, as `MapLibreViewClient`
649
- * does; when a `directions` edit states no `routeFn` or no `activitySlug`; when a pin or a seed
650
- * via is a position no map can place (named as `seedVias[i]`), or `seedVias` is no list; when
651
- * a freehand seed disagrees with its pins; or when `color` is neither `#rrggbb` nor `#rgb`.
652
- * Each is read before anything changes: no edit is started, the map is not locked, and an edit
653
- * the call would have replaced stays open.
654
- */
655
- beginSegmentEdit: (options: SegmentEditOptions) => void;
656
- /**
657
- * beginWaypointEdit starts an editable waypoint, building the engine for its mode (a TerraDraw
658
- * point drop, or a POI pick that subscribes to map clicks and queries POIs). The shared draft
659
- * marker paints the active draft in the session's icon and color; an `update` session seeds the
660
- * marker at the saved coordinate, and a `create` session shows nothing until the first click
661
- * lands. The waypoint engine fires `onWaypointDraftChange` on every click that produces a draft
662
- * change.
663
- *
664
- * It refuses a base-map switch for the duration of the edit, so a terrain swap cannot wipe the
665
- * editable marker (released by `endWaypointEdit`), but leaves drag-pan enabled so the user can
666
- * roam the map to a fresh POI or drop spot. Calling it while another waypoint edit is active
667
- * replaces that edit: the active engine is disposed before the next is built, so at most one
668
- * waypoint engine is ever attached. Idempotent for an unchanged `(waypointId, mode)`: calling it
669
- * again leaves the engine in place, once what the engine refuses has been read, as on a first
670
- * call. Mutual exclusion across segment edits is enforced one level up, at the tool layer.
671
- *
672
- * @throws {MountayaElementsError} When the client holds no edit engine, as `MapLibreViewClient`
673
- * does, or when `initialLngLat` is a position no map can place. Both are read before anything
674
- * changes: no edit is started, the map is not locked, and an edit the call would have replaced
675
- * stays open.
676
- */
677
- beginWaypointEdit: (options: WaypointEditOptions) => void;
678
- /**
679
- * beginPointPick arms a generic point pick: while armed, each left click on the map emits the
680
- * clicked `[lng, lat]` through `onPointPickChange`. `target` names what the coordinate stands for
681
- * (a route endpoint, or a segment's split point); the map engine itself is target-agnostic and
682
- * only captures clicks. The cursor and tooltip the user sees are mounted on the application's
683
- * side by the shared edit-engine driver, exactly as the segment family's are.
684
- *
685
- * Each click the pick captures is taken: `onFeatureClick` reports none of them, so a click aimed
686
- * at a line because the point is on it does not also select the feature under it. `onMapClick`
687
- * still hears every click.
688
- *
689
- * It refuses a base-map switch for the duration of the pick, so a terrain swap cannot interrupt
690
- * it (released by `endPointPick`), but leaves drag-pan enabled so the user can roam the map to the
691
- * target before clicking. Calling it while a pick is already armed replaces it (the active engine
692
- * is disposed before the next is built, so at most one is ever armed). Mutual exclusion against
693
- * segment and waypoint edits is enforced one level up, at the tool layer. The pick renders
694
- * nothing of its own: start and end pins paint through `setItineraryPreview`.
695
- */
696
- beginPointPick: (options: PointPickOptions) => void;
697
- /**
698
- * beginZoneEdit starts an editable zone, building the TerraDraw zone engine for its mode. It arms
699
- * the matching draw mode (circle, polygon, sector, sensor or freehand) alongside TerraDraw's
700
- * select mode, draws any seeded shape in the level color, and locks the map for the edit (a
701
- * base-map switch is refused, so a terrain swap cannot wipe the editable feature). The editable
702
- * feature is keyed on the zone id, so its draft maps straight back to the store; edits flow out
703
- * through `onZoneDraftChange`.
704
- *
705
- * It also suppresses the edited zone's persisted tile copy, filtering the feature whose `id`
706
- * property is the zone id out of the zone geometry layers, so the saved copy does not paint
707
- * underneath the live editable feature. That is the dual-render guard `beginSegmentEdit` applies,
708
- * here a filter (the reshape replaces the zone) rather than a paint dim.
709
- *
710
- * The "+" create cursor (`ZONE_CREATE_CURSOR`) is locked one level up by the zone editing hook
711
- * for the duration, so a click reads as "draw the zone" rather than the default grab. That is
712
- * the split the segment edit uses: the client raises the terrain block and hides the tile copy
713
- * here, and the hook locks the cursor. `endZoneEdit` tears the engine down, restores the tile
714
- * copy and lowers the terrain block. Calling this while another zone edit is active replaces
715
- * that edit: the active engine is disposed before the next is built, so at most one zone engine
716
- * is ever attached. Mutual exclusion against segment and waypoint edits (one authoring surface
717
- * owns the engine at a time) is enforced one level up, at the tool layer.
718
- *
719
- * What the engine refuses is read first, a call that repeats the edit that stands included. A
720
- * call for the zone that stands, in the same mode, keeps its engine and draws it in the colour
721
- * the call states. A call under a new id, in the same mode and with a seed equal to the drawn
722
- * shape (the first save of a new zone), keeps the engine under the new id and draws it in the
723
- * colour the call states.
724
- *
725
- * @throws {MountayaElementsError} When the client holds no edit engine, as `MapLibreViewClient`
726
- * does; when the seed is not a Polygon of one ring with no hole, or holds no coordinates; or
727
- * when `color` is neither `#rrggbb` nor `#rgb`. Each is read before anything changes: no edit
728
- * is started, the map is not locked, and an edit the call would have replaced stays open. When
729
- * the drawing library refuses a seed past those (an open ring, longitudes more than half a turn
730
- * apart), no edit is started and an edit the call would have replaced has ended. A zone astride
731
- * the antimeridian is one continuous ring, its longitudes running past 180 or below -180, and
732
- * it is drawn and answered as that ring.
733
- */
734
- beginZoneEdit: (options: ZoneEditOptions) => void;
735
- /**
736
- * beginBoundaryEdit starts an editable boundary box: it arms TerraDraw's rectangle mode alongside
737
- * its select mode, draws any seeded box in the given color, and locks the map for the edit (a
738
- * base-map switch is refused, so a terrain swap cannot wipe the editable feature). Exactly one box
739
- * exists at a time (drawing a second replaces the first), and every change flows out through
740
- * `onBoundaryDraftChange`.
741
- *
742
- * Unlike the zone family this seam owns its own create cursor: a boundary is edited in a
743
- * self-contained surface with no hook layer above it to lock one. It is also deliberately
744
- * narrower, with no per-level restyle, because a boundary carries no level.
745
- *
746
- * Calling it while another boundary edit is active replaces that edit; the active engine is
747
- * disposed before the next is built, so at most one is ever attached. What the engine refuses
748
- * is read first, a call that repeats the edit that stands included.
749
- *
750
- * @throws {MountayaElementsError} When the client holds no edit engine, as `MapLibreViewClient`
751
- * does, or when `color` is neither `#rrggbb` nor `#rgb`, both read before the open boundary
752
- * edit ends, which then stays open; or when the drawing library refuses the seeded box, one
753
- * that holds `NaN`, after an edit the call would have replaced has ended. No edit is started
754
- * and the map is not locked.
755
- */
756
- beginBoundaryEdit: (options: BoundaryEditOptions) => void;
757
- /**
758
- * endBoundaryEdit tears down the active boundary edit, disposing the engine (its rendered layers,
759
- * sources and library-internal listeners, and the cursor lock it holds) and lowering the
760
- * base-map-switch block, even on a defensive call when no engine is active.
761
- */
762
- endBoundaryEdit: () => void;
763
- /**
764
- * applyBoundaryDraft replaces the editing feature with the given box, in canonical form. A box
765
- * that crosses the antimeridian is drawn up to the line from the side of its west edge, and one
766
- * whose west edge is on the line is drawn whole from -180. The change it triggers carries the box
767
- * as drawn and is flagged programmatic through `onBoundaryDraftChange`, so a subscriber skips its
768
- * own echo unless it gave a box across the line. Each corner is drawn at nine decimals, so
769
- * `getBoundaryDraft` answers the box as drawn. On an edit that has drawn nothing yet, the box is
770
- * the edit's first and is seeded and selected. A no-op when no boundary edit is active.
771
- *
772
- * @throws {MountayaElementsError} When the drawing library refuses the box, one that holds `NaN`.
773
- * Nothing is written and the draft stays as it was.
774
- */
775
- applyBoundaryDraft: (bbox: BoundingBox) => void;
776
- /**
777
- * clearBoundaryDraft removes the drawn box and arms the draw mode again, so the surface returns to
778
- * its empty "drag to draw" state. It is how a resize by redrawing starts, and it emits a draft with
779
- * a null bbox so the consumer's confirm disables again.
780
- */
781
- clearBoundaryDraft: () => void;
782
- /**
783
- * getBoundaryDraft returns the drawn box, or null before the first draw and after a clear. Read
784
- * for a persist that must not depend on having observed every change.
785
- */
786
- getBoundaryDraft: () => BoundingBox | null;
787
- /** isBoundaryEditing reports whether a boundary edit is currently armed. */
788
- isBoundaryEditing: () => boolean;
789
- /**
790
- * onBoundaryDraftChange subscribes to every change to the active boundary edit: the draw, the
791
- * corner resizes, the whole-box moves and the clears. Returns an unsubscribe. Subscribing before
792
- * `beginBoundaryEdit` is valid: the client fans changes out to whoever is listening when they
793
- * happen.
794
- */
795
- onBoundaryDraftChange: (cb: (draft: BoundaryDraft) => void) => () => void;
796
- /**
797
- * endZoneEdit tears down the active zone edit: it disposes the engine (its rendered layers,
798
- * sources and library-internal listeners, and any cursor override it pushed), restores the
799
- * edited zone's suppressed tile copy (dropping the exclusion filter, so the persisted geometry
800
- * paints again), and lowers the base-map-switch block the edit held, even on a defensive call
801
- * when no engine is active. A no-op beyond that release when no zone edit is active. After it no
802
- * zone engine is attached and the saved zone paints again; the hook releases the cursor lock.
803
- *
804
- * It runs before the edit teardown's tile refetch (`editCancel` and the cross-family teardown
805
- * call `refreshZoneTiles` right after this), so a reshape saved during the still-armed edit
806
- * paints again against a layer whose suppression filter is already back to the manifest base.
807
- */
808
- endZoneEdit: () => void;
809
- /**
810
- * applyZoneDraft replaces the editing feature's geometry with the given draft shape: the swap an
811
- * undo or redo restore performs. It is a programmatic write, so the change it triggers is
812
- * flagged programmatic through `onZoneDraftChange`. A subscriber records its own interactive
813
- * edits but must not record this replay again, or an undo would itself push a history entry and
814
- * the stack could never unwind. A no-op when no zone edit is active, or when the geometry is not
815
- * a Polygon (the shape every zone mode draws).
816
- *
817
- * The shape is drawn with each position as its longitude and latitude alone, at nine decimals,
818
- * so a third ordinate and a tenth decimal are dropped and `getZoneDraft` answers the shape as
819
- * drawn. On an edit that has drawn nothing yet (a create), the shape is the zone's first and is
820
- * seeded and selected.
821
- *
822
- * @throws {MountayaElementsError} When the drawing library refuses the shape (a hole,
823
- * longitudes more than half a turn apart, a number that is not finite). Nothing is written
824
- * and the draft stays as it was. A zone astride the antimeridian is one continuous ring, its
825
- * longitudes running past 180 or below -180, and it is drawn and answered as that ring.
826
- */
827
- applyZoneDraft: (geometry: Polygon) => void;
828
- /**
829
- * getZoneDraft returns the editing feature's current drawn shape and mode, or null when no zone
830
- * edit is active or no shape has been drawn yet. A caller reads it to snapshot the draft for the
831
- * history stack, or to build the geometry to persist.
832
- */
833
- getZoneDraft: () => ZoneDraft | null;
834
- /**
835
- * isZoneEditing reports whether a zone edit is currently armed on the client. With no argument
836
- * it returns true while ANY zone engine is attached; with a `zoneId` it narrows the answer to
837
- * whether the engine targets that specific id. It mirrors `isSegmentEditing` and
838
- * `isWaypointEditing`, so callers read the three authoring families through one shape.
839
- */
840
- isZoneEditing: (zoneId?: string) => boolean;
841
- /**
842
- * setZoneDraftStyle recolors the active zone edit live (the engine's drawn area or line, and its
843
- * handles) to the given level color. The zone's tile copy is hidden during the edit, so the
844
- * editable render cannot rely on a tile refresh to pick up a recolor; this is the seam a mid-edit
845
- * level change drives. A no-op when no zone edit is active, and when the colour is the one
846
- * already drawn.
847
- */
848
- setZoneDraftStyle: (style: {
849
- color: string;
850
- }) => void;
851
- /**
852
- * onZoneDraftChange subscribes to every change to the active zone edit's geometry, emitting the
853
- * current draft (the drawn shape and mode) with a flag telling an interactive edit (a draw, a
854
- * vertex drag) from a programmatic write (`applyZoneDraft`, an undo or redo restore). A
855
- * subscriber records an interactive change in history and skips its own programmatic echo, so an
856
- * applied draft does not loop back into the history.
857
- *
858
- * A drag reaches it as `live` frames, one per pointer frame, closed by one `settled` draft when
859
- * the pointer lets go (see `DraftPhase`), so a subscriber previews the frames and records the
860
- * settled draft: one history step per gesture.
861
- *
862
- * Returns an unsubscribe. The subscription outlives individual edits and engine swaps (the
863
- * `MapLibreClient` owns the registry, not the per-edit engine), so a caller subscribes once and
864
- * unsubscribes when it stops editing entirely. The name parallels `onSegmentDraftChange`, so the
865
- * authoring families read through one shape.
866
- */
867
- onZoneDraftChange: (cb: (draft: ZoneDraft) => void) => () => void;
868
- /**
869
- * setZoneTimeReference sets the epoch, in seconds, the zone tile layers evaluate their
870
- * time-bound styling against: "now". MapLibre expressions cannot read the wall clock, so the
871
- * renderer injects this value as a literal into the opacity and clock-symbol-visibility
872
- * expressions: a zone whose `[start_at, end_at]` window does not contain the reference paints
873
- * dimmed with a clock glyph, and an in-window (or unbounded) zone paints normally.
874
- *
875
- * The studio writes it as each clock minute turns, and on a camera move once the minute has
876
- * turned, so the styling tracks real time while the tiles stay cached (a paint-property write,
877
- * never a per-feature state or a tile refetch). The last reference is remembered and asserted
878
- * again after a base-map switch replays the zone layers. A no-op when no zone tile layers are
879
- * mounted.
880
- */
881
- setZoneTimeReference: (epochSeconds: number) => void;
882
- /**
883
- * ensureOverlayInZoomRange eases the camera's zoom into the overlay's `[minzoom, maxzoom]` range
884
- * when the current zoom falls outside it. A pure helper with no state: it reads the current
885
- * zoom, compares it against the overlay's range, and when needed eases to the nearest in-range
886
- * value over a short animation, so an overlay turned on at the wrong zoom paints something
887
- * visible right away. A no-op when the current zoom is already in range.
888
- */
889
- ensureOverlayInZoomRange: (overlay: OverlayZoomRange) => void;
890
- /**
891
- * endSegmentEdit tears down the active segment edit, disposing the engine (its rendered layers,
892
- * sources and library-internal listeners) and restoring the segment's hidden tile copy, and
893
- * releases both locks the edit held: it enables drag-pan again and lowers the base-map-switch
894
- * block. It releases them even on a defensive call when no engine is active, so an end always
895
- * lands the locks down. A no-op beyond that release when no segment edit is active. After it the
896
- * tile render is the only copy on screen and no engine is attached.
897
- */
898
- endSegmentEdit: () => void;
899
- /**
900
- * endWaypointEdit tears down the active waypoint edit, disposing the engine (its marker source and
901
- * layer, and any TerraDraw instance it owns), and lowers the base-map-switch block the edit held,
902
- * even on a defensive call when no engine is active. A no-op beyond that release when no waypoint
903
- * edit is active. After it no waypoint engine is attached.
904
- */
905
- endWaypointEdit: () => void;
906
- /**
907
- * endPointPick tears down the active point pick, disposing the engine (its click subscription),
908
- * and lowers the base-map-switch block the pick held, even on a defensive call when no pick is
909
- * armed. A no-op beyond that release when none is armed. After it no point-pick engine is
910
- * attached.
911
- */
912
- endPointPick: () => void;
913
- /**
914
- * applyCamera applies a partial view (center, zoom, bearing, pitch, or any of them), leaving each
915
- * omitted channel at its present value. It is the embed's default-view seam: a publisher captures
916
- * the full anchor (center, zoom, bearing and pitch) and this applies every channel they set.
917
- *
918
- * When `center` is present the camera JUMPS to the whole view at once, with no animation: the
919
- * captured anchor is the framing, so there is no fit-then-pan two-step. When `center` is absent it
920
- * EASES only the named angle and zoom on the current center (a tilt, rotation or zoom overlay),
921
- * matching `fitBounds`' easing. A view with no channels set is a no-op.
922
- */
923
- applyCamera: (view: CameraPose) => void;
924
- /**
925
- * fitBounds eases the camera to frame a `[west, south, east, north]` box.
926
- *
927
- * `padding` is an optional inset, in CSS pixels, kept between the box and the viewport edges:
928
- * a single number for all four sides, or a per-edge object the embed uses to reserve extra room
929
- * at the bottom for the docked elevation panel. `maxZoom` is an optional ceiling on the zoom the
930
- * fit may reach, so a short route frames with surrounding context instead of zooming to street
931
- * level. `animate` defaults to the renderer's animated ease; the embed's cold-load framing passes
932
- * false, so the FIRST painted frame jumps straight to the route (no visible pan) under its loading
933
- * cover and the reveal costs no latency. Any of them may be omitted; with all omitted the camera
934
- * eases to the bare box under the zoom window's ceiling.
935
- *
936
- * The camera lands where the contract's fit computes it, as `cameraForBounds` of
937
- * `@mountaya/elements/camera` answers it for the canvas and the zoom window the map holds, and
938
- * as a map's own `fitBounds` lands it. A box whose west edge lies east of its east edge is read
939
- * across the antimeridian, and a padding that leaves the canvas no room moves nothing.
940
- */
941
- fitBounds: (bounds: BoundingBox, padding?: FitBoundsPadding, maxZoom?: number, animate?: boolean) => void;
942
- /**
943
- * cameraForBounds resolves the camera a `fitBounds` with the SAME inputs would land on (the
944
- * center and zoom that frame a `[west, south, east, north]` box under the given padding and zoom
945
- * ceiling) WITHOUT moving the map. It mirrors `fitBounds`' arguments, and either the padding or
946
- * the ceiling may be omitted.
947
- *
948
- * The camera is held under the zoom window's ceiling and not by its floor: a box past the floor
949
- * answers the zoom it fits at, and a `fitBounds` of it lands on this camera once the floor stands
950
- * at or under that zoom. The embed reads the resolved zoom to lower its pan floor to it, so the
951
- * initial framing is never clamped above the route's fit zoom in a short viewport (a 480 px
952
- * preview with a heavy bottom inset). Returns null when the padding leaves the canvas no room to
953
- * frame the box in, so the caller falls back to its unrelaxed default.
954
- */
955
- cameraForBounds: (bounds: BoundingBox, padding?: FitBoundsPadding, maxZoom?: number) => MapViewport | null;
956
- /**
957
- * hadInitialViewHash reports whether the map was CONSTRUCTED with a MapLibre `#view` hash on the
958
- * URL: a genuine publisher default view, captured before the map writes its own `#view` on the
959
- * first move.
960
- *
961
- * It is the signal the embed reads to decide whether to frame the route. A preview (whose source
962
- * carries no `#view`) reports false and always frames, while a published embed that pasted a
963
- * captured view reports true and defers to it, whatever the live hash a read of
964
- * `window.location.hash` would see after the map wrote its own or a remount polluted it. A surface
965
- * not bound to the hash never owns `#view`, so it reports false.
966
- */
967
- hadInitialViewHash: () => boolean;
968
- /**
969
- * prewarmTerrain frames the given bounds, padded generously so the camera eye and its sightline
970
- * samples (which sit well outside the route) fall inside loaded coverage, and resolves once the
971
- * DEM tiles for the route and its surroundings are loaded and painted. The video pipeline awaits
972
- * it before resolving a flight, so the clearance pass's terrain reads (`sampleTerrainElevation`)
973
- * hit warm tiles rather than null. Best-effort: it resolves even when no DEM is configured (the
974
- * sampler then returns null and the clearance pass does nothing), so a caller never stalls
975
- * waiting for terrain that will not arrive.
976
- *
977
- * The box is padded by its own span on each side, with a floor for a short route. It is read in
978
- * canonical form (`normalizeBoundingBox`): a box across the antimeridian runs past 180 and is
979
- * padded by its width across the line, and the padded box is held inside the latitudes the
980
- * renderer frames, so a route that ends near a pole is warmed and never refused. A box with an
981
- * edge at no finite coordinate frames nothing, and the call still resolves.
982
- */
983
- prewarmTerrain: (bounds: BoundingBox) => Promise<void>;
984
- /**
985
- * warmPoses jumps the camera through a STRIDED subset of the given flight poses, awaiting tile
986
- * readiness at each stop, so the flight-zoom basemap, itinerary vector and DEM tiles the record
987
- * (and the clearance sampler) needs are loaded and resident before the capture loop runs.
988
- *
989
- * `prewarmTerrain` warms only the whole-route fit zoom, while the flight records at a much closer
990
- * zoom whose tiles were never requested; this visits the actual flight viewports, so no frame
991
- * captures empty or black tiles for a zoom that was never warmed. It strides the poses (every Nth,
992
- * capped so a long route warms a bounded number of viewports) and at each stop waits for the
993
- * renderer to settle (the idle seam `waitForRender` uses), bounded per stop so a stalled tile
994
- * fetch cannot hang the warm pass.
995
- *
996
- * Pair it with a generous map tile cache, so the warmed tiles stay resident through the flight
997
- * rather than being evicted. The video pipeline calls it both before resolving the DEM-aware
998
- * camera track (so the clearance sampler reads warm flight-zoom DEM) and before the record or
999
- * preview flight. It honors `signal`: an abort stops the warm pass at the next stop and resolves.
1000
- * It never rejects: a best-effort warm that cannot complete still resolves, so the caller
1001
- * proceeds to the flight.
1002
- */
1003
- warmPoses: (poses: readonly RecordingCamera[], signal?: AbortSignal) => Promise<void>;
1004
- /**
1005
- * sampleTerrainElevation reads the DEM elevation, in meters, at the given `[lng, lat]` through
1006
- * the always-on 3D terrain, or null when terrain is not loaded there (off coverage, or no DEM
1007
- * configured). It is the render-free readout the camera clearance pass samples to keep the flight
1008
- * above the surrounding terrain; unlike `sampleOverlayAt` it returns the bare elevation with no
1009
- * slope or aspect, since the clearance maths needs only the height. Pair it with `prewarmTerrain`,
1010
- * so the tiles it reads are loaded before the sampling runs.
1011
- */
1012
- sampleTerrainElevation: (lngLat: [number, number]) => number | null;
1013
- /**
1014
- * isSegmentEditing reports whether a segment edit is currently armed on the client. With no
1015
- * argument it returns true while ANY segment engine is attached; with a `segmentId` it narrows the
1016
- * answer to whether the engine targets that specific id.
1017
- */
1018
- isSegmentEditing: (segmentId?: string) => boolean;
1019
- /**
1020
- * isWaypointEditing reports whether a waypoint edit is currently armed on the client. With no
1021
- * argument it returns true while ANY waypoint engine is attached; with a `waypointId` it narrows
1022
- * the answer to whether the engine targets that specific id. It mirrors `isSegmentEditing`, so
1023
- * callers read the two families through one shape.
1024
- */
1025
- isWaypointEditing: (waypointId?: string) => boolean;
1026
- /**
1027
- * getSegmentDraft returns the editing feature's current handle coordinates (the directions vias,
1028
- * or the freehand vertices), or null when no segment edit is active. A caller reads it to
1029
- * snapshot the draft for the history stack, or to build the geometry to persist.
1030
- */
1031
- getSegmentDraft: () => Position[] | null;
1032
- /**
1033
- * getWaypointDraft returns the active waypoint engine's current draft snapshot (position, icon
1034
- * and color), or null when no waypoint edit is active or no draft has landed yet.
1035
- */
1036
- getWaypointDraft: () => WaypointDraftSnapshot | null;
1037
- /** getViewport returns the map's current center and zoom. */
1038
- getViewport: () => MapViewport;
1039
- /**
1040
- * getBearing returns the map's current bearing in degrees (0 is north, clockwise). It is the
1041
- * synchronous companion to `getViewport` for the one reader, the studio snapshot, that needs the
1042
- * rotation beside the center and zoom. `getViewport` is a center and zoom pair for its many
1043
- * callers, and the continuous bearing readout rides `onViewportChange`.
1044
- */
1045
- getBearing: () => number;
1046
- /**
1047
- * getCameraPose returns the map's full current camera state (center, zoom, pitch and bearing) as
1048
- * a render-free {@link RecordingCamera}. It is the snapshot a recording session captures before a
1049
- * flight, so the view from before the run is restored afterwards, and the seed a wizard reads to
1050
- * frame its dedicated map. It completes the synchronous camera readout beside `getViewport` and
1051
- * `getBearing` for the one caller, the video pipeline, that needs every channel at once.
1052
- */
1053
- getCameraPose: () => RecordingCamera;
1054
- /**
1055
- * jumpToPose snaps the camera to a full pose (center, zoom, pitch and bearing) with no animation.
1056
- * It is the synchronous companion to the preview and record flights for a one-off seek: where
1057
- * `previewPoses` and `recordPoses` step a whole pose array over time, this lands the camera on a
1058
- * single pose at once, so a scrubbed preview frame matches the pitch and bearing it would play or
1059
- * record at that fraction rather than flattening to a plain center and zoom move.
1060
- */
1061
- jumpToPose: (pose: RecordingCamera) => void;
1062
- /**
1063
- * previewPoses flies the camera along the given fully resolved poses on THIS map, with no frame
1064
- * capture: the live rehearsal of a recording. It steps the poses over the plan's wall-clock
1065
- * duration on an animation-frame loop, reporting progress through `onProgress` (the `recording`
1066
- * phase, a fraction from 0 to 1), and restores the camera from before the preview on completion
1067
- * or abort. It honors `options.signal`: an abort stops the loop at the next frame, restores the
1068
- * camera and resolves, so a cancelled preview is a clean resolve and never a thrown error. A
1069
- * preview that finishes resolves too, and so does one asked of a map with no recorder, which
1070
- * does not fly. It rejects in one case: a throw inside a frame (of the map, of the marker or of
1071
- * `onProgress`) rejects with what was thrown, once the camera is restored and the dot is
1072
- * cleared. So a caller that must settle its own state awaits it in a `try` with a `finally`.
1073
- * The map does no track maths; the poses arrive resolved.
1074
- *
1075
- * `options.markers`, when supplied, are the per-frame route-marker positions aligned to the poses
1076
- * (marker i for pose i): the map sets the moving "you are here" dot to each on its frame and
1077
- * clears it when the flight settles, so the dot tracks the trail. `options.planDurationMs` is the
1078
- * plan's wall-clock length (the base duration plus every hold): the rehearsal plays for that long
1079
- * and dwells on holds, so the preview matches the recording's speed rather than racing the
1080
- * fixed-cadence grid. The pose count alone undercounts the holds (they extend the wall-clock time
1081
- * the frames span, not their number), so the duration is threaded from the caller that resolved
1082
- * the plan. `options.focusGlyphUrl`, when set, is the activity silhouette the moving dot masks
1083
- * over its white disc, so the preview marker carries the itinerary's activity; absent, the dot
1084
- * renders as a plain disc.
1085
- */
1086
- previewPoses: (poses: RecordingCamera[], options: {
1087
- focusGlyphUrl?: string | undefined;
1088
- markers?: [number, number][] | undefined;
1089
- onProgress?: ((progress: VideoProgress) => void) | undefined;
1090
- planDurationMs?: number | undefined;
1091
- signal: AbortSignal;
1092
- }) => Promise<void>;
1093
- /**
1094
- * recordPoses captures and encodes the given fully resolved poses into a video, one frame per
1095
- * pose, on THIS map. It asserts the map was built with `preserveDrawingBuffer` (the WebGL back
1096
- * buffer must survive the present step for a per-frame read), freezes the renderer clock, and
1097
- * for each pose sets the virtual clock, jumps the camera, awaits the render, reads the back
1098
- * buffer, composites the watermark and encodes the frame, checking `options.signal` between
1099
- * frames so an abort leaves the loop. It reports progress through `onProgress` (preparing, then
1100
- * recording, then encoding) and resolves to a `VideoRecordingResult`: the encoded blob and its
1101
- * extension; a cancelled result when aborted; a cancelled result with `reason: "unavailable"`
1102
- * for a run that could not start, a map with no recorder among them; or, when the recording
1103
- * fails, no blob, `cancelled: false` and the `error` it stopped on. A result with no blob names
1104
- * the extension its output's container resolves to: `mp4`, or `webm` for each WebM output. The camera and the
1105
- * renderer clock are restored on finish, abort or failure. It NEVER rejects: a capture failure, a missing
1106
- * `mediabunny` or a cancellation resolves to a structured result. `output` is the render-free
1107
- * encoder configuration the recording targets.
1108
- *
1109
- * `options.markers`, when supplied, are the per-frame route-marker positions aligned to the poses
1110
- * (marker i for pose i): the map sets the moving "you are here" dot to each before capturing its
1111
- * frame and clears it on every exit path, so the dot is captured moving along the trail.
1112
- * `options.profile`, when supplied, is the live profile overlay's recording input (the per-frame
1113
- * samples, the design and the video-scoped format): the recorder composites the chosen design's
1114
- * data band onto each captured frame, so a recording matches the live preview overlay frame for
1115
- * frame. Absent, no overlay is composited and the run is byte for byte the run without one.
1116
- * `options.focusGlyphUrl`, when set, is the activity silhouette the recorder tints and stamps on
1117
- * the moving dot each frame, so the recorded marker matches the preview's; absent, the dot is a
1118
- * plain disc. Whether the frames carry the Mountaya watermark is the map's organization's to
1119
- * answer, as `MountayaMap.loadOrganization` reads it: no option takes the mark off. It governs
1120
- * the MARK only: tile attribution is a licence obligation of the sources the map draws, the
1121
- * renderer composites it, and no organization removes it.
1122
- */
1123
- recordPoses: (poses: readonly RecordingCamera[], output: RecordOutput, options: {
1124
- focusGlyphUrl?: string | undefined;
1125
- markers?: [number, number][] | undefined;
1126
- onProgress?: ((progress: VideoProgress) => void) | undefined;
1127
- profile?: RecordProfile | undefined;
1128
- signal: AbortSignal;
1129
- /**
1130
- * Whether the caller has just warmed these very poses' viewports, every frame's zoom and
1131
- * pitch included, so no warm pass runs.
1132
- *
1133
- * @default false
1134
- */
1135
- warmed?: boolean | undefined;
1136
- }) => Promise<VideoRecordingResult>;
1137
- /**
1138
- * tryGeolocate centers the map on the device location (framing the accuracy radius) when a fix
1139
- * lands, and reports the outcome through a structured `GeolocateResult`, so a caller branches on
1140
- * the failure reason without driving a separate state machine: `denied` for a refused permission,
1141
- * `unavailable` for an unreachable sensor or a timeout, `no_api` for an environment without a
1142
- * geolocation API. It never rejects: every failure mode resolves to `{ ok: false, reason }`, so
1143
- * the studio stays usable without a fix.
1144
- */
1145
- tryGeolocate: () => Promise<GeolocateResult>;
1146
- /**
1147
- * lockCursor pins the given CSS cursor on the map for the duration of an edit (a larger blue cross
1148
- * while adding the next point, a "+" while hovering the line to insert one). While locked,
1149
- * `applyCursor` only records its value as the base, so the layer hover handlers cannot clear the
1150
- * pinned cursor when the pointer leaves a feature. The lock also sets a `data-cursor-lock`
1151
- * attribute on the map container for CSS targeting, and survives the pointer leaving and entering
1152
- * the canvas again. It takes any cursor string, because the editor decides the specific edit
1153
- * cursor, not the map. A second lock overrides the first; `unlockCursor` releases it.
1154
- */
1155
- lockCursor: (cursor: string) => void;
1156
- /**
1157
- * onMapClick subscribes to left clicks on the map canvas, emitting the `[lng, lat]` the click
1158
- * landed at. It fires for every click, whatever layers are under the cursor; feature-scoped click
1159
- * routing rides `onFeatureClick` instead. The waypoint-from-POI flow uses this unscoped seam: the
1160
- * placement hook queries POIs at the clicked coordinate and dispatches a create when one resolves.
1161
- * Returns an unsubscribe that detaches the listener. The listener survives a base-map switch (the
1162
- * event engine holds it and attaches nothing again on a restyle) and is swept on dispose.
1163
- *
1164
- * The longitude is within [-180, 180], over a copy of the world too: a click on the meridian
1165
- * at -170 reads -170 where the camera, panned across the antimeridian, counts it as 190.
1166
- */
1167
- onMapClick: (cb: (lngLat: [number, number]) => void) => () => void;
1168
- /**
1169
- * onFeatureClick subscribes to clicks on the features of the given layers, emitting a
1170
- * platform-neutral `FeatureHit` (the feature's id and properties) for the topmost feature under
1171
- * the click. It scopes the hit-test to those layer ids, so a click off all of them does not fire,
1172
- * and a caller subscribes to the itinerary line and point layers and learns which segment or
1173
- * waypoint was clicked without inspecting the renderer.
1174
- *
1175
- * One click calls back at most once per subscription, however many of its layers hold a feature
1176
- * under the click: a waypoint that sits on its route reports the waypoint. A click another
1177
- * listener took is not reported, as {@link MapClient.onContextMenu} states it, so the callback
1178
- * runs a microtask after the click, in the same task. An armed point pick
1179
- * ({@link MapClient.beginPointPick}) takes every click it captures.
1180
- *
1181
- * `options.accepts` narrows the subscription to some of its layers' features: the click
1182
- * reports the topmost one it accepts, and a click on none of them does not fire.
1183
- *
1184
- * Returns an unsubscribe that detaches the listener. The listener survives a base-map switch
1185
- * (the event engine holds it and attaches nothing again on a restyle) and is swept on dispose
1186
- * even if a caller never unsubscribes. An empty list of layer ids is a subscription that does
1187
- * nothing, and its unsubscribe does nothing either.
1188
- */
1189
- onFeatureClick: (layerIds: string[], cb: (hit: FeatureHit) => void, options?: FeatureSubscriptionOptions | undefined) => () => void;
1190
- /**
1191
- * onFeatureHover subscribes to the pointer entering and leaving the features of the given layers,
1192
- * firing `onEnter` with the `FeatureHit` under the pointer and `onLeave` when it moves off them
1193
- * or out of the map.
1194
- *
1195
- * The pointer is hit-tested at most once per animation frame, for every subscription at once,
1196
- * and each one hears the topmost feature on its own layers: `onEnter` again on every hit-test
1197
- * that still finds one, so a consumer acts on it idempotently, and a leave before the enters of
1198
- * the same hit-test. The pointer cursor is set while any subscription has a feature and cleared
1199
- * once none has, through the cursor seam, so an edit's pinned cursor lock is never wiped by a
1200
- * hover.
1201
- *
1202
- * A subscription made while the pointer rests over the map is told what is under it on the next
1203
- * frame, with no pointer move.
1204
- *
1205
- * `options.accepts` narrows the subscription to some of its layers' features: a feature it
1206
- * refuses is read as no feature, so it fires no enter and sets no pointer cursor.
1207
- *
1208
- * Returns an unsubscribe that ends this subscription, and reports no leave to it. When the last
1209
- * subscription ends with the pointer cursor set, the cursor is cleared one animation frame
1210
- * later, unless a subscription is made before that frame: a caller that remakes its subscription
1211
- * in one task keeps the cursor, with no flicker. Subscriptions survive a base-map switch and are
1212
- * swept on dispose. An empty list of layer ids is a subscription that does nothing.
1213
- */
1214
- onFeatureHover: (layerIds: string[], handlers: FeatureHoverHandlers, options?: FeatureSubscriptionOptions | undefined) => () => void;
1215
- /**
1216
- * onContextMenu subscribes to right-clicks on the map, emitting the `[lng, lat]` under the cursor
1217
- * and the container pixel it sits at. The browser's native context menu is suppressed for as
1218
- * long as a subscription stands, so the studio's own popup takes its place. Returns an
1219
- * unsubscribe that removes the listener. It mirrors `onViewportChange`: a discrete user gesture
1220
- * surfaced through one subscription, so a human right-click and an agent-issued open share the
1221
- * one context-menu path.
1222
- *
1223
- * A right-click another listener took is not reported. An edit that handles a right-click
1224
- * itself (one on a handle of the line being edited) marks the renderer's event as prevented,
1225
- * and the callback is skipped for it, whichever of the two listeners was attached first. The
1226
- * callback therefore runs once the gesture has been dispatched to every listener: in the same
1227
- * task, a microtask after the right-click.
1228
- *
1229
- * The longitude is within [-180, 180], over a copy of the world too, as
1230
- * {@link MapClient.onMapClick} states it; the pixel is the one the pointer read.
1231
- */
1232
- onContextMenu: (cb: (event: MapContextMenuEvent) => void) => () => void;
1233
- /**
1234
- * onPointerMove subscribes to pointer moves over the map, emitting the `[lng, lat]` under the
1235
- * cursor and the container pixel it sits at on every move. Returns an unsubscribe that removes the
1236
- * listener. It is the seam a cursor-following overlay (the editing tooltip) reads to track the
1237
- * pointer without the high-frequency move ever entering reactive state; like `onViewportChange`
1238
- * it is a passive readout, and several consumers may subscribe independently.
1239
- *
1240
- * The longitude is within [-180, 180], over a copy of the world too, as
1241
- * {@link MapClient.onMapClick} states it; the pixel is the one the pointer read.
1242
- */
1243
- onPointerMove: (cb: (move: MapPointerMove) => void) => () => void;
1244
- /**
1245
- * onPointerLeave fires once when the pointer crosses out of the map canvas element. Listeners
1246
- * receive no point: the move stream already gave them the last position they need. It is the
1247
- * companion to `onPointerMove` a cursor-following overlay reads to hide itself when the pointer
1248
- * enters a panel or exits the map, so the overlay never stays glued to the last pixel. Returns an
1249
- * unsubscribe that detaches the listener.
1250
- */
1251
- onPointerLeave: (cb: () => void) => () => void;
1252
- /**
1253
- * onViewportChange subscribes to camera moves, emitting the bearing, zoom and center on every
1254
- * move. Returns an unsubscribe that removes the listener.
1255
- */
1256
- onViewportChange: (cb: (viewport: MapViewportChange) => void) => () => void;
1257
- /**
1258
- * onViewportSettle subscribes to the end of a camera move: it calls back once as the camera
1259
- * comes to rest, with the bearing, zoom and center it rests at.
1260
- *
1261
- * It is the renderer's `moveend`, reported for every move whatever began it: a pan, a zoom, a
1262
- * rotation or a tilt by the reader, and a move a call made (`applyCamera`, `fitBounds`,
1263
- * `setViewport`, an ease into an overlay's zoom range). A move that eases is reported once, as
1264
- * it ends, and a jump is reported in the step it is made.
1265
- *
1266
- * It is the companion of {@link MapClient.onViewportChange}, which calls back on every frame
1267
- * of the move: what a frame cannot afford belongs here. And it states what
1268
- * {@link MapClient.waitForRender} does not: that one resolves as soon as the map has nothing
1269
- * to load, the middle of a gesture included.
1270
- *
1271
- * @param cb Called with the camera as each move ends. A listener that throws stops no other.
1272
- * @returns An unsubscribe that removes the listener.
1273
- */
1274
- onViewportSettle: (cb: (viewport: MapViewportChange) => void) => () => void;
1275
- /**
1276
- * onResize calls back each time the renderer has resized its canvas to its container: after
1277
- * the renderer's own observer of the container has resized it, and after a call that resizes
1278
- * it. The canvas holds its new size by the time the callback runs, so a caller that frames the
1279
- * view for the canvas, as an embed fitting itself to a resized frame does, reads the size from
1280
- * the container then.
1281
- *
1282
- * A container change is told once the renderer resizes for it, which it may hold back by a
1283
- * moment to take a burst of changes in one resize. A renderer that has lost its drawing
1284
- * context resizes nothing and tells nothing until the context returns.
1285
- *
1286
- * @param cb Called after each resize. A listener that throws stops no other.
1287
- * @returns An unsubscribe that removes the listener.
1288
- */
1289
- onResize: (cb: () => void) => () => void;
1290
- /**
1291
- * onTilesAccessRequired subscribes to the tile-fetch failures the application must surface as
1292
- * product state: a refusal of access on a tile or source request, which the Tile API answers
1293
- * with a 401 for a credential it does not accept, a 402 for a Tile API entitlement the
1294
- * agreement does not include (talk to us at https://mountaya.com/en/contact/ to add one), and a
1295
- * 403 for a resource the credential may not read.
1296
- *
1297
- * The renderer fetches tiles outside the REST client (auth rides the request transform set at
1298
- * construction), so no response status is observed there. The client reads it off the renderer's
1299
- * error stream and calls back for those three statuses, the ones `MountayaMap` reports as
1300
- * `accessrequired`, and never for a transient tile error (a dropped connection, a 404, a 5xx),
1301
- * which is normal and recoverable. Nor does it call back for a refusal the map tells nobody of:
1302
- * a 401 or a 403 of a request that left with a session token the client has replaced since, or
1303
- * under the key alone before its first token arrived. The callback carries no status: an
1304
- * application that words an expired credential apart from an entitlement the agreement does not
1305
- * include listens to `accessrequired` on the map, which carries it. The application raises an
1306
- * access notice from it, and lowers it from {@link MapClient.onTilesAccessRestored}.
1307
- *
1308
- * @returns An unsubscribe that removes the listener.
1309
- */
1310
- onTilesAccessRequired: (cb: () => void) => () => void;
1311
- /**
1312
- * onTilesAccessRestored subscribes to the end of the refusals
1313
- * {@link MapClient.onTilesAccessRequired} reports: it calls back when the last source the API
1314
- * was refusing loads a tile.
1315
- *
1316
- * A refusal stands per source, for as long as that source's latest answer is one, and a tile
1317
- * of the source that loads ends it. So one tile sent with a session token that had just
1318
- * expired is answered by the next tile sent with the fresh one, and an account with no
1319
- * entitlement, whose every tile is refused, stays refused however many tiles its itineraries
1320
- * load beside them. A source that leaves the style takes its refusal with it, which the next
1321
- * tile to load from any source finds. A refusal that names no source, a style or a sprite,
1322
- * belongs to a request made once per style and ends when the next style loads.
1323
- *
1324
- * The callback runs once as the last standing refusal ends, and again only after a later
1325
- * refusal has ended in turn. The refusals are the client's own, kept from its construction: a
1326
- * subscription made while one stands is told when it ends, whether or not it heard it begin.
1327
- *
1328
- * @returns An unsubscribe that removes the listener.
1329
- */
1330
- onTilesAccessRestored: (cb: () => void) => () => void;
1331
- /**
1332
- * isTilesAccessRequired answers whether a refusal of access stands now: `true` from the first
1333
- * refusal {@link MapClient.onTilesAccessRequired} reports until
1334
- * {@link MapClient.onTilesAccessRestored} reports them over, and `false` otherwise.
1335
- *
1336
- * It is the standing answer the two subscriptions report the changes of. The client keeps it
1337
- * from its construction, subscribed to or not, because a host is handed the client after the
1338
- * map's first requests went out and a refusal among them is reported to nobody. So read it
1339
- * once when subscribing, then follow the two signals. It is already `true` when the required
1340
- * signal calls back and already `false` when the restored one does, and it answers `false` on
1341
- * a disposed client.
1342
- */
1343
- isTilesAccessRequired: () => boolean;
1344
- /**
1345
- * onSegmentDraftChange subscribes to every change to the active segment edit's geometry,
1346
- * emitting the current draft (the handle coordinates) with a flag telling an interactive edit (a
1347
- * drag, an insert) from a programmatic write (`applySegmentDraft`, an undo or redo restore). A
1348
- * subscriber records an interactive change in history and skips its own programmatic echo, so an
1349
- * applied draft does not loop back into the history. CONTINUOUS: it fires per drag frame, each
1350
- * frame `live`, and the drag closes with one `settled` draft when the pointer lets go (see
1351
- * `DraftPhase`), so a subscriber previews the frames and records the settled draft: one history
1352
- * step per gesture.
1353
- *
1354
- * Returns an unsubscribe. The subscription outlives individual edits and engine swaps (it is the
1355
- * seam the editor reads for the whole session, and the `MapLibreClient` owns the registry, not
1356
- * the per-edit engine), so a caller subscribes once and unsubscribes when it stops editing
1357
- * entirely.
1358
- */
1359
- onSegmentDraftChange: (cb: (draft: SegmentDraft) => void) => () => void;
1360
- /**
1361
- * onSegmentViaPrompt subscribes to the active segment edit's ask-the-user seam: the engine emits a
1362
- * {@link SegmentViaPromptEvent} when a gesture lands on an existing handle, INSTEAD of acting on
1363
- * it, and waits for the application to resolve the ambiguity. DISCRETE: it fires once per such
1364
- * gesture. Returns an unsubscribe; like `onSegmentDraftChange` the subscription is owned by the
1365
- * client, so it outlives individual edits and engine swaps and a caller subscribes once.
1366
- */
1367
- onSegmentViaPrompt: (cb: (prompt: SegmentViaPromptEvent) => void) => () => void;
1368
- /**
1369
- * onWaypointDraftChange subscribes to the waypoint engine's draft-change seam, emitting the
1370
- * coordinate the click landed at and, in `poi-pick` mode, the optional POI seed, each time the
1371
- * engine resolves a placement. DISCRETE: it fires once per click that produces a change, not per
1372
- * pointer move. The name parallels `onSegmentDraftChange` so both families read through one
1373
- * shape; the difference in cadence is the one stated here. Returns an unsubscribe; the
1374
- * subscription outlives individual edits and engine swaps.
1375
- */
1376
- onWaypointDraftChange: (cb: (change: WaypointEngineDraftChange) => void) => () => void;
1377
- /**
1378
- * onPointPickChange subscribes to the active point pick's capture seam, emitting the `[lng, lat]`
1379
- * each armed click resolves to. DISCRETE: it fires once per click, not per pointer move. The name
1380
- * parallels `onWaypointDraftChange`, so the families read through one shape. Returns an
1381
- * unsubscribe; the subscription is held on the client (not the per-pick engine), so it outlives an
1382
- * engine swap and a caller subscribes once for the whole session.
1383
- */
1384
- onPointPickChange: (cb: (change: PointPickChange) => void) => () => void;
1385
- /**
1386
- * project converts a `[lng, lat]` map coordinate to its container pixel, the inverse of
1387
- * `unproject`. It positions the context-menu popup when an open is driven by a coordinate alone
1388
- * (an agent-issued open carries no pixel), so the popup anchors at the spot a right-click there
1389
- * would.
1390
- */
1391
- project: (lngLat: [number, number]) => [number, number];
1392
- /**
1393
- * queryOverlayFeaturesAt returns the active overlay's vector features rendered at the given
1394
- * `[lng, lat]`, read from the layers set by `setOverlayQueryLayers`. It scopes the query to those
1395
- * layers, so it surfaces the active overlay's own features (a weather cell's temperature and wind,
1396
- * for instance) rather than every rendered feature. It is best-effort: with no overlay query
1397
- * layers set (a raster overlay, or no overlay) it yields an empty list, so the readout does
1398
- * nothing then. The results feed the right-click context menu's overlay readout.
1399
- *
1400
- * The place is read on the copy of the world the camera shows, as {@link MapClient.queryPoisAt}
1401
- * reads it.
1402
- */
1403
- queryOverlayFeaturesAt: (lngLat: [number, number]) => OverlayFeature[];
1404
- /**
1405
- * queryPoisAt returns the points of interest rendered at the given `[lng, lat]`, read from the
1406
- * vector tiles under that point. It is best-effort: a basemap (or a zoom) with no POI vector layer
1407
- * there yields an empty list, leaving the coordinate-only floor. The results feed the right-click
1408
- * context menu's name and category readout.
1409
- *
1410
- * The place is read on the copy of the world the camera shows, whichever turn its longitude is
1411
- * written in, so a position inside [-180, 180] and the one a pointer reads past it over a copy
1412
- * of the world answer alike.
1413
- */
1414
- queryPoisAt: (lngLat: [number, number]) => PoiInfo[];
1415
- /**
1416
- * zoneAtPoint returns the zone rendered under the given `[lng, lat]`, read from the mounted zone
1417
- * geometry layers (fills, lines and points), or null when no zone is there. It mirrors
1418
- * `queryPoisAt` and `queryOverlayFeaturesAt`: the MapLibre client projects the coordinate to a
1419
- * pixel and scopes a rendered-feature query to the zone layer ids (resolved at runtime from the
1420
- * live manifest by their stable source layer), so the renderer stays inside the map package and
1421
- * the raw renderer feature never crosses {@link MapClient}; only the cleaned `ContextMenuZone`
1422
- * does. The result feeds the right-click context menu's zone section. It returns the TOPMOST zone
1423
- * when several overlap (the first rendered feature), keeping the readout to a single zone the way
1424
- * the POI readout shows the first place.
1425
- *
1426
- * The place is read on the copy of the world the camera shows, as {@link MapClient.queryPoisAt}
1427
- * reads it.
1428
- */
1429
- zoneAtPoint: (lngLat: [number, number]) => ContextMenuZone | null;
1430
- /**
1431
- * sampleOverlayAt returns a per-cursor terrain readout (elevation in meters, slope in degrees,
1432
- * aspect as a compass bearing, a whole number from 0 to 359) whenever 3D terrain is loaded
1433
- * under the cursor, whichever overlay (if any) is active. Each value is a whole number. On flat
1434
- * ground the slope is 0 and the readout holds no `aspect` member, since no direction is
1435
- * downhill there: an aspect of 0 is a north-facing slope. The studio bakes terrain into every
1436
- * session, so the readout is on in effect always. It complements `queryOverlayFeaturesAt`, which
1437
- * reads the vector-tile features the active overlay paints. Returns null only when terrain is not
1438
- * enabled or the cursor falls outside loaded terrain coverage, and the right-click readout reads
1439
- * null as "no terrain sample". Overlay-specific classification (the steepness band, for
1440
- * instance) is layered on by the context-menu tool after it reads the active overlay's slug.
1441
- *
1442
- * The terrain is read on the copy of the world the camera shows, as
1443
- * {@link MapClient.queryPoisAt} reads a place, so a place inside [-180, 180] reads the elevation
1444
- * drawn under it over a map panned across the antimeridian.
1445
- */
1446
- sampleOverlayAt: (lngLat: [number, number]) => OverlayFeature | null;
1447
- /** removeTileSources removes the layers and sources for the given tile-source ids. */
1448
- removeTileSources: (ids: string[]) => void;
1449
- /**
1450
- * refreshItineraryTiles tells MapLibre to refetch every tile of the itinerary tile sources
1451
- * currently mounted (the manifest entries whose layers paint the itinerary line and point source
1452
- * layers). It is the post-commit seam the write-through path drives, so a freshly persisted
1453
- * segment or waypoint shows up at the current camera without a pan or a zoom change to evict the
1454
- * tile cache. A no-op when no itinerary tile sources are mounted (a render-free test, a base map
1455
- * that has not replayed them yet). It is independent of every other overlay, so a tile refresh
1456
- * is scoped to the itinerary geometry and other tiled overlays keep their cached tiles.
1457
- *
1458
- * `bustToken`, when given (a collaboration change frame's stream id), scopes the refetch to a
1459
- * deterministic per-change URL every peer shares, unique per change where a bare entity revision
1460
- * would collide across entities. Absent, a wall-clock token forces a plain cache miss: the local
1461
- * post-commit path, which has no change frame to key on.
1462
- */
1463
- refreshItineraryTiles: (bustToken?: string) => void;
1464
- /**
1465
- * refreshItineraryTilesWhenSettled is the deferred sibling of `refreshItineraryTiles`: it runs the
1466
- * same itinerary tile-cache bust, but only once the map has SETTLED rather than on the frame an
1467
- * edit teardown leaves still rendering. The itinerary edit-teardown paths (a segment or waypoint
1468
- * commit or cancel, the navigate-away teardown) call THIS, so the bust lands on an idle frame,
1469
- * where MapLibre's `setTiles` reliably refetches the tile at the current zoom. That is the idle
1470
- * constraint `refreshZoneTiles` documents, met here by the client deferring the bust instead of
1471
- * the caller sequencing it after a teardown.
1472
- *
1473
- * It is guaranteed to run exactly once, and it can never hang. Use it after a teardown; the
1474
- * synchronous `refreshItineraryTiles` stays for the recolor, delete and speed write-throughs that
1475
- * run while the map is already idle. A no-op when no itinerary tile sources are mounted.
1476
- * `bustToken` threads through to the deferred bust as it does for `refreshItineraryTiles`.
1477
- */
1478
- refreshItineraryTilesWhenSettled: (bustToken?: string) => void;
1479
- /**
1480
- * refreshZoneTiles tells MapLibre to refetch every tile of the zone tile sources currently mounted
1481
- * (the manifest entries whose layers paint the zone fill, line and point source layers). It is the
1482
- * post-mutation seam the zone write paths drive (a create, a delete, and the edit TEARDOWN after a
1483
- * reshape commit), so a freshly persisted or deleted zone shows up at the current camera without a
1484
- * pan or a zoom change to evict the tile cache. It mirrors `refreshItineraryTiles` exactly (the
1485
- * same `setTiles` bust); only the source predicate differs. A no-op when no zone tile sources are
1486
- * mounted.
1487
- *
1488
- * It must run when the map is idle, never mid-edit: the `setTiles` bust does not paint again while
1489
- * the live draw engine owns the zone's render. The `editCommit` tool keeps the edit armed and does
1490
- * NOT refetch (the live draft covers the in-edit view); the refetch is owned by `editCancel` and
1491
- * the cross-family teardown (the panel-close path), which call it right after `endZoneEdit`
1492
- * disposes the engine.
1493
- */
1494
- refreshZoneTiles: () => void;
1495
- /**
1496
- * clearMiniBearingMarker removes the bearing marker the Street View mini-map draws, and does
1497
- * nothing when that marker is not present. It pairs with `setMiniBearingMarker`: the panorama's
1498
- * unmount calls it, so the marker never outlives the modal.
1499
- */
1500
- clearMiniBearingMarker: () => void;
1501
- /**
1502
- * setMiniBearingMarker drops, or moves, a single arrow marker echoing the Street View panorama's
1503
- * current position and heading: the arrow rotates by `headingDeg` from north, so the same map
1504
- * orientation reads as a walker's facing direction. A second call moves the one marker rather
1505
- * than stacking, so a panorama sweep never accumulates markers. It is independent of the segment
1506
- * edit, the search highlight and the profile marker, so it neither begins nor disturbs any of
1507
- * them. Best-effort and render-only: it never throws.
1508
- */
1509
- setMiniBearingMarker: (position: [number, number], headingDeg: number) => void;
1510
- /**
1511
- * setMiniCenter centers the Street View mini-map on the given `[lng, lat]` without touching the
1512
- * camera's zoom, pitch or bearing: the mini-map is pinned to its initial zoom and to a top-down,
1513
- * north-up framing for the life of the panorama, so this is a position-only move. It pairs with
1514
- * `setMiniBearingMarker`: the panorama walking forward updates both the marker (the bearing
1515
- * arrow's anchor) and the camera, so the surrounding context follows the walker. Render-only and
1516
- * best-effort: it never throws.
1517
- */
1518
- setMiniCenter: (position: [number, number]) => void;
1519
- /** resetNorth resets the bearing and pitch to 0 (true north, top-down). */
1520
- resetNorth: () => void;
1521
- /**
1522
- * setBaseTerrain swaps the base layer to the given terrain config (resolved from the layers
1523
- * manifest). It tears down the overlay tile sources and replays them across the style reload, and
1524
- * asserts the active constraints, itinerary emphasis and exclusions again once the replayed layers
1525
- * land. It swaps nothing while an authoring edit or a point pick is active, since the style
1526
- * reload would wipe the editable feature mid-edit; every begin call raises that block and every
1527
- * end call lowers it. A switch asked for meanwhile is held, the last one when there are several,
1528
- * and applied when the edit ends, so a caller issues it once and never again. A begin call that
1529
- * throws after it ended the edit it replaces applies the switch that edit held. On a disposed
1530
- * client it swaps nothing and holds nothing.
1531
- */
1532
- setBaseTerrain: (config: BaseTerrainConfig) => void;
1533
- /**
1534
- * setConstraints applies the given camera bounds, setting only the fields present. They survive a
1535
- * style reload and are asserted again after `setBaseTerrain`, so a terrain switch never drops
1536
- * them. A `maxBounds` box is read in canonical form (`normalizeBoundingBox`), and one a turn or
1537
- * more wide is handed to MapLibre as the whole world a hair under a turn wide, centred on the
1538
- * box, as `MountayaMap.setConstraints` hands it.
1539
- *
1540
- * A `maxBounds` with no area leaves the camera nowhere to stand and is refused, and the call
1541
- * applies nothing, its zoom limits included.
1542
- *
1543
- * A zoom limit is read with the one already in force: a call that states one limit keeps the
1544
- * other, and the two must leave a window that holds a zoom. A call that states both moves the
1545
- * window whole, upward or downward, whatever the last call left. A window that cannot hold is
1546
- * refused before anything is applied or kept, so the window in force stands and is the one a
1547
- * later `setBaseTerrain` asserts.
1548
- *
1549
- * @throws {MountayaElementsError} When `maxBounds` has no width, no height or an edge at no
1550
- * finite coordinate; when `minZoom` or `maxZoom` is no finite number; when the minimum the
1551
- * call leaves is above the maximum it leaves; or when the renderer refuses a zoom outside the
1552
- * range it draws, with the renderer's own error as the cause.
1553
- */
1554
- setConstraints: (constraints: MapConstraints) => void;
1555
- /**
1556
- * setSegmentDraftStyle recolors the active segment edit live (the engine's draggable handles and,
1557
- * in directions mode, the routed line) to the given segment color. The segment's tile copy is
1558
- * hidden during the edit, so the editable render cannot rely on a tile refresh to pick up a
1559
- * recolor; this is the seam a mid-edit color change drives. A no-op when no segment edit is
1560
- * active.
1561
- */
1562
- setSegmentDraftStyle: (style: {
1563
- color: string;
1564
- }) => void;
1565
- /**
1566
- * setSegmentViaPromptPending suspends (true) or resumes (false) the active segment engine's own
1567
- * click grammar while a {@link SegmentViaPromptEvent} is open. Without it the very click that
1568
- * dismisses the prompt would also add the next point, since the engine treats a click on an empty
1569
- * map as an append, so the application raises this as it opens the prompt and lowers it as it
1570
- * resolves or dismisses it. A no-op when no segment edit is active.
1571
- */
1572
- setSegmentViaPromptPending: (pending: boolean) => void;
1573
- /**
1574
- * setWaypointDraftStyle updates the rendered draft marker's icon glyph and color live, so a
1575
- * side-panel attribute change shows on the map without a full apply round trip. It resolves the
1576
- * catalog sprite id `section-icon-<icon>-<hex>`, so the image-missing handler rasterizes it on
1577
- * demand. A no-op when no waypoint edit is active.
1578
- */
1579
- setWaypointDraftStyle: (style: {
1580
- color: string;
1581
- icon: string;
1582
- }) => void;
1583
- /**
1584
- * setHillshadeIllumination sets the illumination direction, in degrees, on the hillshade layers
1585
- * (the sun's azimuth at the selected time, for instance), so terrain shading tracks the time of
1586
- * day the user picks.
1587
- *
1588
- * `direction` is a compass bearing: 0 lights from the north and 90 from the east. Any finite
1589
- * number is taken and wrapped into one turn, so 495 and -225 both light from 135. The renderer
1590
- * takes a direction from 0 to 359, so a bearing between 359 and 360 lights from the nearer of
1591
- * the two ends: 359 below the half degree and 0 from it on. A `direction` that is no finite
1592
- * number leaves the lighting as it is.
1593
- */
1594
- setHillshadeIllumination: (direction: number) => void;
1595
- /**
1596
- * setMapLanguage switches the base map's label language. The base style's symbol layers carry a
1597
- * `name:{lang}` field per language (the OpenMapTiles schema), so each label-bearing layer's text
1598
- * field is rewritten to `["coalesce", ["get", "name:" + language], ["get", "name"]]`: the
1599
- * localized name when present, the default `name` otherwise. Symbol layers whose label does not
1600
- * read a name field (road shields, icon-only markers) are left untouched. The choice persists and
1601
- * is asserted again after a base-map switch, so a terrain swap keeps the selected language.
1602
- * `language` is one of `MAP_LANGUAGES` (a lowercase code); an unknown one still coalesces back to
1603
- * `name`.
1604
- */
1605
- setMapLanguage: (language: string) => void;
1606
- /**
1607
- * setOverlayQueryLayers sets which layer ids a right-click overlay-feature query inspects: the
1608
- * active overlay's vector layers. The active-overlay hook sets it when an overlay resolves and
1609
- * clears it (an empty array) on cleanup or when no overlay is active, so `queryOverlayFeaturesAt`
1610
- * scopes its query to the current overlay rather than every rendered feature. An empty set makes
1611
- * that query return nothing (a raster overlay, or no overlay, surfaces nothing).
1612
- */
1613
- setOverlayQueryLayers: (layerIds: string[]) => void;
1614
- /**
1615
- * prewarmItineraryIcons asks the map to register ahead of time the waypoint and endpoint sprites
1616
- * the active itinerary's tiles will paint. Each entry pairs a Nucleo glyph name (every name the
1617
- * itinerary tile overlay can emit: droplet, tent, flag-start, flag-end, and the rest) with the hex
1618
- * color the sprite is stamped in (a waypoint's own color, or a segment's color for the
1619
- * automatically emitted flag-start and flag-end endpoints).
1620
- *
1621
- * The image-missing handler stays as the safety net for sprites that slip through (a waypoint an
1622
- * agent added, a dynamic recolor), but the warm pass means the first paint of an itinerary never
1623
- * logs `Image … could not be loaded` for a sprite the tiles always reference. Best-effort and
1624
- * render-only: it never throws, and an unknown glyph is skipped without a word.
1625
- */
1626
- prewarmItineraryIcons: (icons: {
1627
- color: string;
1628
- icon: string;
1629
- }[]) => void;
1630
- /**
1631
- * setItineraryEmphasis rebuilds the opacity of the itinerary tile geometries to reflect the given
1632
- * focus, dimming the unfocused ones. It only touches the itinerary layers (other overlays keep
1633
- * their opacity), and it keeps the last emphasis so it is asserted again after the tile layers are
1634
- * added again on a base-terrain switch. Imperative, because the cursor that drives it is a
1635
- * transient, high-frequency value.
1636
- */
1637
- setItineraryEmphasis: (target: ItineraryEmphasis) => void;
1638
- /**
1639
- * setItineraryExclusions suppresses the given itinerary features from the tile render (the segment
1640
- * ids dropped from the line layers, the waypoint ids dropped from the point layers) by filtering
1641
- * them out of the matching tile layers. A feature is excluded while it is drawn as an editable
1642
- * element elsewhere, so the tile copy and the editable copy never double up. It only touches the
1643
- * itinerary layers, and it keeps the last set so it is asserted again after the tile layers are
1644
- * added again on a base-terrain switch. Empty lists restore the full itinerary.
1645
- */
1646
- setItineraryExclusions: (exclusions: ItineraryExclusions) => void;
1647
- /**
1648
- * setItineraryPreview paints a NON-PERSISTED itinerary draft (an import preview) as a read-only
1649
- * GeoJSON overlay (the lines and waypoints the DTO carries), or clears it with `null`. A persisted
1650
- * itinerary paints through the always-on vector tiles, so this is the only render on the map a
1651
- * draft (which has no tiles yet) gets.
1652
- *
1653
- * The render is idempotent (a second call updates the one source in place rather than stacking),
1654
- * survives a base-terrain style reload (the last preview is replayed onto the fresh style), and
1655
- * lives on its own source and layers, so it never touches the itinerary tiles or any other
1656
- * overlay. The DTO is policy-free: it paints exactly the lines it is given (solid or dashed), so
1657
- * the ours-versus-theirs styling is the caller's decision, not the renderer's. `null` removes the
1658
- * layers and the source, idempotently.
1659
- */
1660
- setItineraryPreview: (preview: ItineraryPreviewRender | null) => void;
1661
- /**
1662
- * setItinerarySegmentColor paints every itinerary segment in ONE color instead of each segment's
1663
- * own (the segment lines plus the derived start and end flag markers, which carry the segment's
1664
- * color), or restores the per-segment colors with `null`. An author's own waypoint pins keep the
1665
- * colors they chose either way.
1666
- *
1667
- * This is the embedded studio's organization branding: a publisher whose site is one accent color
1668
- * wants their embedded maps to read that way, while the same itinerary keeps its authoring colors
1669
- * in the studio and in a shared view. It only touches the itinerary layers, and it keeps the last
1670
- * color so it is asserted again after the tile layers are added again on a base-terrain switch. A
1671
- * color must be a hex string, because it is written as it is into a paint property and into a
1672
- * marker sprite id, and an unchanged value is a no-op.
1673
- */
1674
- setItinerarySegmentColor: (color: string | null) => void;
1675
- /**
1676
- * setAccessRestrictionsVisibility shows or hides the restricted stretches of every itinerary the
1677
- * map draws from its tiles: the stripes over a route where its access is restricted, and their
1678
- * warning icons. A hidden icon answers no click.
1679
- *
1680
- * This is the embedded studio's `with_access_restrictions`: a publisher may draw their routes
1681
- * without the warnings, while the studio and a shared view always draw them. The choice is kept
1682
- * across a base-map switch, the layers stay in the style while hidden so showing them again
1683
- * fetches nothing, and an unchanged value is a no-op. The stretches of a segment under edit are
1684
- * the edit's, and are drawn whatever this says.
1685
- */
1686
- setAccessRestrictionsVisibility: (visible: boolean) => void;
1687
- /**
1688
- * setActiveItinerarySegments registers the LineString coordinate arrays the waypoint magnet
1689
- * snaps onto (the active itinerary's segment geometries), so a click near one of them lands the
1690
- * draft marker on the line. The studio writes it from `useStudioMapSync` whenever the active
1691
- * itinerary, or its segments, change; an empty list disables the magnet, so a fresh studio session
1692
- * with no itinerary open drops points freely. The geometries are kept on the client, so the engine
1693
- * constructor needs no fresh injection each time it is armed.
1694
- */
1695
- setActiveItinerarySegments: (lines: readonly Position[][]) => void;
1696
- /**
1697
- * setProfileMarker drops (or, with null, clears) a single marker at the given `[lng, lat]`: the
1698
- * map's echo of the elevation profile's hovered position. The profile drives it as the cursor
1699
- * sweeps the chart, so the point under the chart cursor is shown on the map; passing a new
1700
- * coordinate moves the one marker rather than stacking, and null removes it (the cursor left the
1701
- * chart).
1702
- *
1703
- * The marker is a white teardrop pin anchored at its tip, so its point marks the exact coordinate.
1704
- * The optional `icon` descriptor fills the pin's head (the elevation profile passes the
1705
- * itinerary's activity silhouette, and an armed map gesture passes its own verb's glyph), while
1706
- * null or omitted renders the plain white pin. A later call carrying a DIFFERENT descriptor
1707
- * repaints the head rather than only moving the pin, so a surface that takes the marker over from
1708
- * another is not left wearing the previous gesture's glyph. Only strings cross this seam, so the
1709
- * map package needs no application type. It is independent of a segment edit and of the location
1710
- * marker, so it neither begins nor disturbs either. Best-effort and render-only: it never throws.
1711
- */
1712
- setProfileMarker: (lngLat: [number, number] | null, icon?: ProfileMarkerIcon | null) => void;
1713
- /**
1714
- * setVideoFocusMarker drops (or, with null, clears) the moving "you are here" dot the video
1715
- * preview and record drive along the route: the point on the trail under the camera for the
1716
- * current frame. The preview and record loop sets it each frame, so the dot tracks the route, and
1717
- * clears it when the flight settles, so the recording captures a moving cursor on the trail.
1718
- *
1719
- * It is a small centered dot rather than the teardrop `setProfileMarker` anchors at its tip, since
1720
- * the video flight is shot from a tilted, nearly overhead camera. It is independent of the
1721
- * profile, search and mini-map markers, so it neither begins nor disturbs any of them. Best-effort
1722
- * and render-only: it never throws.
1723
- */
1724
- setVideoFocusMarker: (lngLat: [number, number] | null) => void;
1725
- /**
1726
- * setSearchHighlight renders the transient search-result overlay for the most recent selection (a
1727
- * place pin, a POI category icon, or the chain from a way's polyline to its dashed bounds
1728
- * rectangle to a pin), tearing down any previous render first so only the latest selection is
1729
- * visible. Passing `null` clears the current highlight, idempotently: a clear with nothing on
1730
- * screen does nothing.
1731
- *
1732
- * The render is render-only and lives on its own transient source and layers, so it never
1733
- * interacts with the itinerary tiles or any other overlay; the POI variant reuses the tile
1734
- * overlay's icon and color contract, so a search-result POI marker overlaps the tile-rendered POI
1735
- * pixel for pixel at the zoom levels where both are visible.
1736
- */
1737
- setSearchHighlight: (payload: SearchHighlight | null) => void;
1738
- /**
1739
- * setPeerDraft renders, or updates, the read-only ghost of a collaborator's in-flight edit for
1740
- * one entity, in the peer's own color, as a LIVE edit someone owns: a segment glows (a blurred
1741
- * halo under a solid core) with an endpoint puck at its leading vertex, a zone tints its fill under
1742
- * the same glow outline, and a waypoint is a solid ring under a pulsing halo. The halo breathes on
1743
- * a shared animation loop, held still for a reader who prefers reduced motion.
1744
- *
1745
- * It is a plain GeoJSON overlay that NEVER arms TerraDraw: the local user cannot grab a peer's
1746
- * ghost, which only shows what the peer is drawing. `geometry` is the GeoJSON for the kind (a
1747
- * LineString, a Point or MultiPoint, or a Polygon), and a mismatched type is skipped. The optional
1748
- * `label` is the peer's name, painted above a segment's endpoint puck when the active style
1749
- * exposes glyphs; with no glyphs (or no label) the puck stands alone rather than rendering broken
1750
- * text.
1751
- *
1752
- * Calling it again for the same entity moves the ghost in place, and the ghost survives a base-map
1753
- * or terrain switch (it renders again on the new style, like the tile overlays). There is one
1754
- * ghost per entity, keyed by {@link PeerDraftEntity}, so many collaborators' drafts coexist.
1755
- * Render-only and best-effort: it never throws, and never disturbs the itinerary tiles, the local
1756
- * edit, or another ghost.
1757
- */
1758
- setPeerDraft: (entity: PeerDraftEntity, geometry: Geometry, color: string, label?: string) => void;
1759
- /**
1760
- * clearPeerDraft removes the ghost for one entity (the collaborator committed, cancelled, or
1761
- * left). Idempotent: clearing an entity with no ghost on screen does nothing. Render-only and
1762
- * best-effort: it never throws.
1763
- */
1764
- clearPeerDraft: (entity: PeerDraftEntity) => void;
1765
- /**
1766
- * setSourceTiles refreshes a tile source's URLs in place (an overlay's timestamp change, for
1767
- * instance) without a remove and add, so the tiles refetch with no flicker. The URLs stand for
1768
- * the overlay they were set on: across a base-map switch, and across a clear and a mount of
1769
- * the same overlay in the same slot. Another overlay mounted on the source id is drawn from
1770
- * the manifest's URLs.
1771
- */
1772
- setSourceTiles: (sourceId: string, tiles: string[]) => void;
1773
- /**
1774
- * setStreetviewCoverage shows or hides the Street View coverage raster overlay (drawn during a
1775
- * pegman drag).
1776
- */
1777
- setStreetviewCoverage: (visible: boolean) => void;
1778
- /**
1779
- * setStreetviewCorridor draws (or, on null, clears) a soft band along the given route lines during
1780
- * a pegman drag: the embed surface's droppable zone, shown beside the Street View coverage overlay
1781
- * so a visitor sees where they may drop and where imagery exists. Each line is a `[lng, lat]`
1782
- * coordinate array, and `radiusMeters` is the drop-gate radius, so the band is drawn at that true
1783
- * ground width on each side. A draw over a band already on the map replaces it, its lines and
1784
- * its width, so a caller redraws on a moved route with no clear in between. An empty list clears
1785
- * as `null` does, and a clear reads no radius.
1786
- *
1787
- * @throws {MountayaElementsError} On a draw whose `radiusMeters` is not a finite number above 0.
1788
- * It is thrown before anything is drawn, and the message names the argument and its value.
1789
- */
1790
- setStreetviewCorridor: (lines: [number, number][][] | null, radiusMeters: number) => void;
1791
- /** setViewport moves the camera to the given center and zoom. */
1792
- setViewport: (viewport: MapViewport) => void;
1793
- /**
1794
- * unlockCursor releases the cursor lock `lockCursor` set, removes the `data-cursor-lock`
1795
- * attribute, and restores the cursor to the last value `applyCursor` was asked for, so ending an
1796
- * edit lands the cursor on the natural hover state for the pointer's current position. A no-op
1797
- * when nothing is locked.
1798
- */
1799
- unlockCursor: () => void;
1800
- /**
1801
- * unproject converts a pixel coordinate (a pegman drop point, for instance) to its `[lng, lat]`
1802
- * map coordinate.
1803
- */
1804
- unproject: (point: [number, number]) => [number, number];
1805
- /**
1806
- * waitForCategoryOverlay answers once the category overlay of the given slug is on the map:
1807
- * `true` when it is drawn, at once when it already is, and `false` when the signal aborts or
1808
- * the client is disposed first.
1809
- *
1810
- * It is the wait of a caller that selected an overlay and did not mount it. A studio tool
1811
- * writes the selection to a store and a binding calls {@link MapClient.setCategoryOverlay} in
1812
- * reaction, a turn or more after the tool's own. Until then nothing is queued and nothing is
1813
- * in flight, so {@link MapClient.waitForRender} resolves within a frame over a map that holds
1814
- * none of the overlay. Wait for the overlay first, then for the render of its tiles.
1815
- *
1816
- * The wait ends on the mount of that overlay and on no other: another overlay drawn in the
1817
- * slot meanwhile, a clear, and an enrichment of the same slug leave it waiting. The answer is
1818
- * read once every overlay write asked for so far has run. It never rejects, and it runs no
1819
- * timer of its own: pass a signal to bound it.
1820
- *
1821
- * The answer says the client holds the overlay as its category overlay, and is never read off
1822
- * the style. A base-map switch in flight draws the overlay again on the style it brings, so a
1823
- * wait asked meanwhile answers `true` while the map holds none of the overlay's sources yet.
1824
- * The {@link MapClient.waitForRender} made next waits for the switch and for what it draws
1825
- * again.
1826
- *
1827
- * @param slug The slug of the overlay awaited, as its manifest entry states it.
1828
- * @param options.signal Ends the wait when it aborts, with `false`.
1829
- * @returns `true` once the client holds the overlay as its category overlay, `false` when the
1830
- * wait ended first.
1831
- */
1832
- waitForCategoryOverlay: (slug: string, options?: {
1833
- signal?: AbortSignal | undefined;
1834
- }) => Promise<boolean>;
1835
- /**
1836
- * waitForRender resolves once the overlay enabled most recently has rendered, so a caller can read
1837
- * a sample of it: every requested tile for the current view is loaded and painted and no
1838
- * transition is in flight. It resolves once the map has nothing in flight and no resize of its
1839
- * canvas on its way, read again in the next animation frame, and otherwise on the next render
1840
- * settle that has neither; a style reload in flight (a base-map switch) defers the resolve until
1841
- * the new style loads, so the sample reads the replayed layers rather than the ones being torn
1842
- * down. An overlay whose drawing is still queued behind an earlier one is waited for first, so the
1843
- * resolve never comes before its sources are on the map. The listener never leaks: it clears
1844
- * itself on resolve and is swept on dispose. It never rejects, and it resolves when the client is
1845
- * disposed. Overlay perception awaits it before sampling rendered features, so a tiles-first read
1846
- * happens after the tiles it reads are on screen.
1847
- */
1848
- waitForRender: () => Promise<void>;
1849
- /** zoomIn increments the zoom by one step, animated. */
1850
- zoomIn: () => void;
1851
- /** zoomOut decrements the zoom by one step, animated. */
1852
- zoomOut: () => void;
1853
- }
1854
-
1855
- export { BoundaryDraft, BoundaryEditOptions, BoundingBox, CameraPose, FitBoundsPadding, MapViewport, Overlay, RecordOutput, RecordProfile, RecordingCamera, SearchHighlight, SegmentDraft, SegmentEditOptions, SegmentViaPromptEvent, VideoProgress, VideoRecordingResult, WaypointDraftSnapshot, WaypointEditOptions, WaypointEngineDraftChange, ZoneDraft, ZoneEditOptions };
1856
- export type { BaseTerrainConfig, ContextMenuZone, FeatureHit, FeatureHoverHandlers, FeatureSubscriptionOptions, GeolocateResult, ItineraryEmphasis, ItineraryExclusions, ItineraryPreviewLine, ItineraryPreviewRender, ItineraryPreviewWaypoint, MapClient, MapConstraints, MapContextMenuEvent, MapPointerMove, MapViewportChange, OverlayFeature, OverlayZoomRange, PeerDraftEntity, PeerDraftKind, PoiInfo, PointPickChange, PointPickOptions, ProfileMarkerIcon, TileRequest, TileRequestTransform, VideoSeam, WaypointCursorOptions };
1
+ import { a as VideoRecordingResult, i as VideoProgress, n as RecordProfile, r as RecordingCamera, t as RecordOutput } from "../chunk-CeiTuMyt.cjs";
2
+ import { i as MapViewport, n as FitBoundsPadding, t as BoundingBox } from "../chunk-fozLXfHY.cjs";
3
+ import { c as SearchHighlight } from "../chunk-B98mKrdu.cjs";
4
+ import { V as Overlay, _ as CameraPose, a as SegmentEditOptions, c as WaypointEditOptions, f as ZoneDraft, i as SegmentDraft, l as WaypointEngineDraftChange, n as BoundaryEditOptions, o as SegmentViaPromptEvent, p as ZoneEditOptions, r as DraftPhase, s as WaypointDraftSnapshot, t as BoundaryDraft } from "../chunk-bY7ySujI.cjs";
5
+ import { C as PointPickOptions, D as VideoSeam, E as TileRequestTransform, O as WaypointCursorOptions, S as PointPickChange, T as TileRequest, _ as OverlayFeature, a as FeatureSubscriptionOptions, b as PeerDraftKind, c as ItineraryExclusions, d as ItineraryPreviewWaypoint, f as MapClient, g as MapViewportChange, h as MapPointerMove, i as FeatureHoverHandlers, l as ItineraryPreviewLine, m as MapContextMenuEvent, n as ContextMenuZone, o as GeolocateResult, p as MapConstraints, r as FeatureHit, s as ItineraryEmphasis, t as BaseTerrainConfig, u as ItineraryPreviewRender, v as OverlayZoomRange, w as ProfileMarkerIcon, x as PoiInfo, y as PeerDraftEntity } from "../chunk-DMvWgBZL.cjs";
6
+ export type { BaseTerrainConfig, BoundaryDraft, BoundaryEditOptions, BoundingBox, CameraPose, ContextMenuZone, DraftPhase, FeatureHit, FeatureHoverHandlers, FeatureSubscriptionOptions, FitBoundsPadding, GeolocateResult, ItineraryEmphasis, ItineraryExclusions, ItineraryPreviewLine, ItineraryPreviewRender, ItineraryPreviewWaypoint, MapClient, MapConstraints, MapContextMenuEvent, MapPointerMove, MapViewport, MapViewportChange, Overlay, OverlayFeature, OverlayZoomRange, PeerDraftEntity, PeerDraftKind, PoiInfo, PointPickChange, PointPickOptions, ProfileMarkerIcon, RecordOutput, RecordProfile, RecordingCamera, SearchHighlight, SegmentDraft, SegmentEditOptions, SegmentViaPromptEvent, TileRequest, TileRequestTransform, VideoProgress, VideoRecordingResult, VideoSeam, WaypointCursorOptions, WaypointDraftSnapshot, WaypointEditOptions, WaypointEngineDraftChange, ZoneDraft, ZoneEditOptions };