@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.
- package/CHANGELOG.md +38 -0
- package/README.md +4 -3
- package/THIRD-PARTY-NOTICES.txt +1 -1
- package/dist/agent/index.cjs +1152 -1905
- package/dist/agent/index.cjs.map +1 -1
- package/dist/agent/index.d.cts +1152 -1202
- package/dist/agent/index.d.ts +1152 -1202
- package/dist/agent/index.js +1147 -1903
- package/dist/agent/index.js.map +1 -1
- package/dist/camera/index.cjs +2470 -3435
- package/dist/camera/index.cjs.map +1 -1
- package/dist/camera/index.d.cts +716 -744
- package/dist/camera/index.d.ts +716 -744
- package/dist/camera/index.js +2438 -3323
- package/dist/camera/index.js.map +1 -1
- package/dist/{units-D9mBrusY.d.cts → chunk-5pTPpv4v.d.cts} +38 -41
- package/dist/{units-D9mBrusY.d.ts → chunk-5pTPpv4v.d.ts} +38 -41
- package/dist/{order-BLhsGsH8.d.ts → chunk-6JzFMFHh.d.ts} +15 -28
- package/dist/chunk-6qyuJVvt.d.ts +513 -0
- package/dist/chunk-9fp0lDic.cjs +583 -0
- package/dist/chunk-9fp0lDic.cjs.map +1 -0
- package/dist/{zones-B05QA8fy.d.ts → chunk-A48H1rDg.d.cts} +2 -4
- package/dist/{zones-B05QA8fy.d.cts → chunk-A48H1rDg.d.ts} +2 -4
- package/dist/chunk-B-m1AchR.cjs +57 -0
- package/dist/chunk-B-m1AchR.cjs.map +1 -0
- package/dist/{bundle-xYrrbJTH.d.ts → chunk-B-qFTf04.d.ts} +51 -57
- package/dist/chunk-B0YROiZh.d.cts +1475 -0
- package/dist/chunk-B14wgOvH.d.cts +68 -0
- package/dist/chunk-B19l3j9r.cjs +150 -0
- package/dist/chunk-B19l3j9r.cjs.map +1 -0
- package/dist/chunk-B2PtjVKg.cjs +86 -0
- package/dist/chunk-B2PtjVKg.cjs.map +1 -0
- package/dist/chunk-B56Oyb7W.cjs +70 -0
- package/dist/chunk-B56Oyb7W.cjs.map +1 -0
- package/dist/chunk-B5WGMQwK.cjs +113 -0
- package/dist/chunk-B5WGMQwK.cjs.map +1 -0
- package/dist/{types-nO2joeRk.d.ts → chunk-B98mKrdu.d.cts} +103 -122
- package/dist/{videoOverlay-Dh_D5_Zs.d.ts → chunk-BB0PmqIM.d.cts} +10 -10
- package/dist/chunk-BBikve0Z.cjs +269 -0
- package/dist/chunk-BBikve0Z.cjs.map +1 -0
- package/dist/chunk-BHeXmM0X.js +37 -0
- package/dist/chunk-BHeXmM0X.js.map +1 -0
- package/dist/chunk-BI8WZLpU.cjs +281 -0
- package/dist/chunk-BI8WZLpU.cjs.map +1 -0
- package/dist/chunk-BIEc_SkR.cjs +29 -0
- package/dist/chunk-BIEc_SkR.cjs.map +1 -0
- package/dist/chunk-BJ6L6_W9.cjs +553 -0
- package/dist/chunk-BJ6L6_W9.cjs.map +1 -0
- package/dist/chunk-BJ91UCbB.js +11 -0
- package/dist/chunk-BJ91UCbB.js.map +1 -0
- package/dist/chunk-BJEZWTKj.cjs +166 -0
- package/dist/chunk-BJEZWTKj.cjs.map +1 -0
- package/dist/chunk-BJz54mfg.cjs +10 -0
- package/dist/chunk-BJz54mfg.cjs.map +1 -0
- package/dist/{sections-CVlc2Inr.d.cts → chunk-BNX5LAfN.d.cts} +289 -330
- package/dist/chunk-BP6KgA86.js +35 -0
- package/dist/chunk-BP6KgA86.js.map +1 -0
- package/dist/{segmentRoute-C5UL_5bp.d.ts → chunk-BRnjQq6K.d.cts} +44 -59
- package/dist/chunk-BSiMEwPS.js +46 -0
- package/dist/chunk-BSiMEwPS.js.map +1 -0
- package/dist/chunk-BTPjDw_y.cjs +16 -0
- package/dist/chunk-BTPjDw_y.cjs.map +1 -0
- package/dist/chunk-BTUUABGI.js +17 -0
- package/dist/chunk-BTUUABGI.js.map +1 -0
- package/dist/chunk-BUeL9y7s.cjs +45 -0
- package/dist/chunk-BUeL9y7s.cjs.map +1 -0
- package/dist/chunk-BWMuCNc9.cjs +172 -0
- package/dist/chunk-BWMuCNc9.cjs.map +1 -0
- package/dist/chunk-BWjRfhpF.js +126 -0
- package/dist/chunk-BWjRfhpF.js.map +1 -0
- package/dist/{types-CTQwbSdA.d.cts → chunk-BZ5KyZXI.d.ts} +103 -122
- package/dist/chunk-B_4SVmvh.js +94 -0
- package/dist/chunk-B_4SVmvh.js.map +1 -0
- package/dist/chunk-BcTUuZQ3.js +95 -0
- package/dist/chunk-BcTUuZQ3.js.map +1 -0
- package/dist/chunk-BdkqSsJe.cjs +140 -0
- package/dist/chunk-BdkqSsJe.cjs.map +1 -0
- package/dist/chunk-BfktMVmI.js +70 -0
- package/dist/chunk-BfktMVmI.js.map +1 -0
- package/dist/chunk-BfzQb0EK.cjs +6 -0
- package/dist/chunk-BhWfT-22.d.cts +808 -0
- package/dist/chunk-BjJcqX5J.cjs +60 -0
- package/dist/chunk-BjJcqX5J.cjs.map +1 -0
- package/dist/{geodesy-543qXKtI.d.ts → chunk-Bk0L8g5J.d.cts} +3 -4
- package/dist/{geodesy-543qXKtI.d.cts → chunk-Bk0L8g5J.d.ts} +3 -4
- package/dist/chunk-Bl4_uVa6.cjs +11 -0
- package/dist/chunk-Bl4_uVa6.cjs.map +1 -0
- package/dist/chunk-BlKF4lrp.js +43 -0
- package/dist/chunk-BlKF4lrp.js.map +1 -0
- package/dist/chunk-Bm1FieGR.js +4 -0
- package/dist/chunk-Bm1FieGR.js.map +1 -0
- package/dist/chunk-Bn6ZbxkS.cjs +27 -0
- package/dist/chunk-BpN3hr6a.cjs +541 -0
- package/dist/chunk-BpN3hr6a.cjs.map +1 -0
- package/dist/{order-BZkUwMou.d.cts → chunk-Bq_WHTfd.d.cts} +15 -28
- package/dist/chunk-Bqt4LBBz.cjs +648 -0
- package/dist/chunk-Bqt4LBBz.cjs.map +1 -0
- package/dist/{language-CEWQ5uYw.d.cts → chunk-Bqt97zwf.d.cts} +3 -18
- package/dist/{language-CEWQ5uYw.d.ts → chunk-Bqt97zwf.d.ts} +3 -18
- package/dist/chunk-BsBiN4w6.d.cts +245 -0
- package/dist/chunk-BvTpOUoC.cjs +207 -0
- package/dist/chunk-BvTpOUoC.cjs.map +1 -0
- package/dist/chunk-BwK6Hl3q.cjs +446 -0
- package/dist/chunk-BwK6Hl3q.cjs.map +1 -0
- package/dist/{elevationTiles-pmsb9wnU.d.cts → chunk-BxDQZDXR.d.cts} +26 -27
- package/dist/{elevationTiles-pmsb9wnU.d.ts → chunk-BxDQZDXR.d.ts} +26 -27
- package/dist/chunk-BxUio8kX.js +20 -0
- package/dist/chunk-BxUio8kX.js.map +1 -0
- package/dist/chunk-BxaocpFi.d.cts +1 -0
- package/dist/chunk-Bywi0K1N.js +36 -0
- package/dist/chunk-Bywi0K1N.js.map +1 -0
- package/dist/chunk-C-IlmkDl.js +59 -0
- package/dist/chunk-C-IlmkDl.js.map +1 -0
- package/dist/chunk-C5PtVewq.d.ts +389 -0
- package/dist/chunk-C5dpC7mQ.js +19 -0
- package/dist/chunk-C5dpC7mQ.js.map +1 -0
- package/dist/chunk-C5q1sgSa.js +46 -0
- package/dist/chunk-C5q1sgSa.js.map +1 -0
- package/dist/chunk-C6fU9G5I.cjs +221 -0
- package/dist/chunk-C6fU9G5I.cjs.map +1 -0
- package/dist/chunk-C71dpWUK.js +5 -0
- package/dist/chunk-C71dpWUK.js.map +1 -0
- package/dist/chunk-C82N1gQX.d.ts +1831 -0
- package/dist/chunk-C8HdaHpu.js +118 -0
- package/dist/chunk-C8HdaHpu.js.map +1 -0
- package/dist/chunk-C8ZGryck.js +236 -0
- package/dist/chunk-C8ZGryck.js.map +1 -0
- package/dist/chunk-C95NG0oD.cjs +43 -0
- package/dist/chunk-C95NG0oD.cjs.map +1 -0
- package/dist/chunk-C9aR8DXb.js +9 -0
- package/dist/chunk-C9aR8DXb.js.map +1 -0
- package/dist/{camera-C48Ykaxv.d.ts → chunk-CAUZnoCs.d.ts} +135 -159
- package/dist/chunk-CBXWWuM9.cjs +82 -0
- package/dist/chunk-CBXWWuM9.cjs.map +1 -0
- package/dist/chunk-CC_Kquu7.d.cts +125 -0
- package/dist/chunk-CC_Kquu7.d.ts +125 -0
- package/dist/chunk-CCp85vXg.cjs +60 -0
- package/dist/chunk-CCp85vXg.cjs.map +1 -0
- package/dist/chunk-CEcB1_uK.js +39 -0
- package/dist/chunk-CEcB1_uK.js.map +1 -0
- package/dist/{bundle-Je5zsRFg.d.cts → chunk-CFIo021l.d.cts} +51 -57
- package/dist/chunk-CH_IZoJE.js +33 -0
- package/dist/chunk-CH_IZoJE.js.map +1 -0
- package/dist/chunk-CHrasH_g.cjs +25 -0
- package/dist/chunk-CHrasH_g.cjs.map +1 -0
- package/dist/chunk-CJVoSaAE.cjs +3 -0
- package/dist/chunk-CJp8nGcb.js +96 -0
- package/dist/chunk-CJp8nGcb.js.map +1 -0
- package/dist/chunk-CJwUtkOt.js +112 -0
- package/dist/chunk-CJwUtkOt.js.map +1 -0
- package/dist/chunk-CKhCOVIf.d.cts +751 -0
- package/dist/chunk-CKiVSRYg.js +50 -0
- package/dist/chunk-CKiVSRYg.js.map +1 -0
- package/dist/chunk-CKtd19eD.cjs +59 -0
- package/dist/chunk-CKtd19eD.cjs.map +1 -0
- package/dist/chunk-CL92KE3j.d.ts +3188 -0
- package/dist/chunk-CLqUlkAe.js +54 -0
- package/dist/chunk-CLqUlkAe.js.map +1 -0
- package/dist/chunk-CMG5OV0q.cjs +4741 -0
- package/dist/chunk-CMG5OV0q.cjs.map +1 -0
- package/dist/chunk-CN_TKSgm.js +10 -0
- package/dist/chunk-CN_TKSgm.js.map +1 -0
- package/dist/chunk-CNe6MtqV.cjs +29 -0
- package/dist/chunk-CNe6MtqV.cjs.map +1 -0
- package/dist/chunk-COQkDTC5.js +83 -0
- package/dist/chunk-COQkDTC5.js.map +1 -0
- package/dist/chunk-CPBl6K4M.cjs +168 -0
- package/dist/chunk-CPBl6K4M.cjs.map +1 -0
- package/dist/chunk-CPx0ZYFB.d.ts +3 -0
- package/dist/chunk-CQQhcP_C.d.ts +197 -0
- package/dist/chunk-CTNoajFh.d.cts +389 -0
- package/dist/chunk-CTd-qgJc.cjs +384 -0
- package/dist/chunk-CTd-qgJc.cjs.map +1 -0
- package/dist/chunk-CW80YYtU.cjs +1056 -0
- package/dist/chunk-CW80YYtU.cjs.map +1 -0
- package/dist/{searchLimits-j99-NTXR.d.ts → chunk-CWpqBgkF.d.cts} +2 -2
- package/dist/{searchLimits-j99-NTXR.d.cts → chunk-CWpqBgkF.d.ts} +2 -2
- package/dist/chunk-CXjRArgy.d.ts +3 -0
- package/dist/chunk-CXonfH3-.cjs +14 -0
- package/dist/chunk-CXonfH3-.cjs.map +1 -0
- package/dist/chunk-CYcouGXN.d.ts +825 -0
- package/dist/chunk-CZDAzEBw.cjs +1621 -0
- package/dist/chunk-CZDAzEBw.cjs.map +1 -0
- package/dist/{amenities-B3-qAjxu.d.cts → chunk-C_fQFr70.d.cts} +40 -41
- package/dist/{amenities-B3-qAjxu.d.ts → chunk-C_fQFr70.d.ts} +40 -41
- package/dist/chunk-CbOtHnnB.cjs +359 -0
- package/dist/chunk-CbOtHnnB.cjs.map +1 -0
- package/dist/chunk-CdA6ZMGk.d.cts +825 -0
- package/dist/chunk-Ce1_thm7.js +146 -0
- package/dist/chunk-Ce1_thm7.js.map +1 -0
- package/dist/chunk-CeD8Hw0j.d.cts +3188 -0
- package/dist/{camera-BrFLU1DH.d.cts → chunk-CeiTuMyt.d.cts} +135 -159
- package/dist/chunk-Ch1OLzLi.js +1 -0
- package/dist/chunk-Cizu_j1N.cjs +87 -0
- package/dist/chunk-Cizu_j1N.cjs.map +1 -0
- package/dist/chunk-CjDe9z6A.d.cts +427 -0
- package/dist/chunk-Cl1etdlu.js +63 -0
- package/dist/chunk-Cl1etdlu.js.map +1 -0
- package/dist/chunk-CmoVJDoz.js +4 -0
- package/dist/chunk-CmoVJDoz.js.map +1 -0
- package/dist/chunk-CnLucxjG.cjs +197 -0
- package/dist/chunk-CnLucxjG.cjs.map +1 -0
- package/dist/chunk-CsWjBmdi.cjs +56 -0
- package/dist/chunk-CsWjBmdi.cjs.map +1 -0
- package/dist/chunk-CuseO5MZ.d.cts +3 -0
- package/dist/chunk-CvMHibbA.d.ts +427 -0
- package/dist/chunk-CwDeiN5U.js +870 -0
- package/dist/chunk-CwDeiN5U.js.map +1 -0
- package/dist/chunk-Cwdmx4tG.js +1 -0
- package/dist/{geolocation-DDkQdWMN.d.cts → chunk-D-4MxHTt.d.cts} +33 -34
- package/dist/{geolocation-DDkQdWMN.d.ts → chunk-D-4MxHTt.d.ts} +33 -34
- package/dist/chunk-D0LF-99V.js +1093 -0
- package/dist/chunk-D0LF-99V.js.map +1 -0
- package/dist/chunk-D1fe-0c_.js +367 -0
- package/dist/chunk-D1fe-0c_.js.map +1 -0
- package/dist/chunk-D21fEI6A.d.ts +1926 -0
- package/dist/chunk-D39gAxya.cjs +89 -0
- package/dist/chunk-D39gAxya.cjs.map +1 -0
- package/dist/chunk-D6KdIW5e.cjs +228 -0
- package/dist/chunk-D6KdIW5e.cjs.map +1 -0
- package/dist/chunk-D6qHYbgW.d.cts +36 -0
- package/dist/{videoOverlay-Dh_D5_Zs.d.cts → chunk-D89E-w70.d.ts} +10 -10
- package/dist/chunk-D8bdTysL.js +552 -0
- package/dist/chunk-D8bdTysL.js.map +1 -0
- package/dist/chunk-D96QJT24.cjs +109 -0
- package/dist/chunk-D96QJT24.cjs.map +1 -0
- package/dist/chunk-DAmkQl-i.js +119 -0
- package/dist/chunk-DAmkQl-i.js.map +1 -0
- package/dist/chunk-DEfsb2lc.cjs +10 -0
- package/dist/chunk-DEfsb2lc.cjs.map +1 -0
- package/dist/chunk-DIFjT5-V.d.cts +66 -0
- package/dist/{sections-CmtaduLc.d.ts → chunk-DJpUw8TN.d.ts} +289 -330
- package/dist/chunk-DK6lm2IZ.cjs +11 -0
- package/dist/chunk-DK6lm2IZ.cjs.map +1 -0
- package/dist/chunk-DKqgr31j.cjs +61 -0
- package/dist/chunk-DKqgr31j.cjs.map +1 -0
- package/dist/chunk-DLZ0QYm9.js +37 -0
- package/dist/chunk-DLZ0QYm9.js.map +1 -0
- package/dist/chunk-DLjS0uaC.js +4 -0
- package/dist/chunk-DLjS0uaC.js.map +1 -0
- package/dist/chunk-DMokwmOV.cjs +49 -0
- package/dist/chunk-DMokwmOV.cjs.map +1 -0
- package/dist/chunk-DMvWgBZL.d.cts +1831 -0
- package/dist/chunk-DNfGfIF3.js +31 -0
- package/dist/chunk-DNfGfIF3.js.map +1 -0
- package/dist/chunk-DQbSRe8D.d.ts +245 -0
- package/dist/chunk-DSGkP8_y.js +45 -0
- package/dist/chunk-DSGkP8_y.js.map +1 -0
- package/dist/chunk-DTctvfSd.d.cts +197 -0
- package/dist/chunk-DWe7igyw.cjs +206 -0
- package/dist/chunk-DWe7igyw.cjs.map +1 -0
- package/dist/chunk-DWsMP5JR.d.ts +68 -0
- package/dist/{provider-DM71XnLX.d.cts → chunk-DWsm3HIW.d.cts} +37 -38
- package/dist/{provider-DM71XnLX.d.ts → chunk-DWsm3HIW.d.ts} +37 -38
- package/dist/chunk-DXABHjLa.cjs +3 -0
- package/dist/chunk-D_BeqSbc.cjs +42 -0
- package/dist/chunk-D_BeqSbc.cjs.map +1 -0
- package/dist/chunk-D_svQNdW.d.ts +66 -0
- package/dist/chunk-Dav4xWrp.js +330 -0
- package/dist/chunk-Dav4xWrp.js.map +1 -0
- package/dist/chunk-DbCPhepL.js +293 -0
- package/dist/chunk-DbCPhepL.js.map +1 -0
- package/dist/chunk-DcrTy-y2.cjs +43 -0
- package/dist/chunk-DcrTy-y2.cjs.map +1 -0
- package/dist/chunk-Ddv484ld.js +487 -0
- package/dist/chunk-Ddv484ld.js.map +1 -0
- package/dist/chunk-De0bjnhY.cjs +88 -0
- package/dist/chunk-De0bjnhY.cjs.map +1 -0
- package/dist/chunk-De2FmNPu.cjs +32 -0
- package/dist/chunk-De2FmNPu.cjs.map +1 -0
- package/dist/{segmentRoute-CIo6dR8Y.d.cts → chunk-DeSjQXiI.d.ts} +44 -59
- package/dist/chunk-Den0Ta6C.js +132 -0
- package/dist/chunk-Den0Ta6C.js.map +1 -0
- package/dist/chunk-DiDKEeEa.js +8 -0
- package/dist/chunk-DiDKEeEa.js.map +1 -0
- package/dist/chunk-Dj60k5PU.js +197 -0
- package/dist/chunk-Dj60k5PU.js.map +1 -0
- package/dist/chunk-DjnYQBCN.js +4705 -0
- package/dist/chunk-DjnYQBCN.js.map +1 -0
- package/dist/chunk-Dk9VKvyq.d.ts +1 -0
- package/dist/chunk-Dor1ERI9.cjs +85 -0
- package/dist/chunk-Dor1ERI9.cjs.map +1 -0
- package/dist/chunk-DpMouOoH.js +451 -0
- package/dist/chunk-DpMouOoH.js.map +1 -0
- package/dist/chunk-DposgdNL.cjs +52 -0
- package/dist/chunk-DposgdNL.cjs.map +1 -0
- package/dist/chunk-DqLTG_5Q.d.cts +3 -0
- package/dist/{roadAccess-D_rOE4xW.d.cts → chunk-Dr5MCIpS.d.cts} +5 -28
- package/dist/{roadAccess-D_rOE4xW.d.ts → chunk-Dr5MCIpS.d.ts} +5 -28
- package/dist/chunk-DrudttCC.cjs +4 -0
- package/dist/chunk-DsDYVJQC.js +173 -0
- package/dist/chunk-DsDYVJQC.js.map +1 -0
- package/dist/chunk-Dw8ur6FJ.js +27 -0
- package/dist/chunk-Dw8ur6FJ.js.map +1 -0
- package/dist/chunk-DwG6M_0v.js +64 -0
- package/dist/chunk-DwG6M_0v.js.map +1 -0
- package/dist/chunk-Dy9a5ibO.js +284 -0
- package/dist/chunk-Dy9a5ibO.js.map +1 -0
- package/dist/chunk-DyayZlQJ.js +157 -0
- package/dist/chunk-DyayZlQJ.js.map +1 -0
- package/dist/chunk-DyhJZC2i.js +126 -0
- package/dist/chunk-DyhJZC2i.js.map +1 -0
- package/dist/chunk-F9zBzmmG.cjs +45 -0
- package/dist/chunk-F9zBzmmG.cjs.map +1 -0
- package/dist/chunk-FyCYofv2.js +116 -0
- package/dist/chunk-FyCYofv2.js.map +1 -0
- package/dist/chunk-GHJRjAk2.js +1 -0
- package/dist/chunk-H14isiSf.d.ts +751 -0
- package/dist/chunk-HIJzXoN4.js +7 -0
- package/dist/chunk-HIJzXoN4.js.map +1 -0
- package/dist/chunk-Id_8kRtu.d.ts +36 -0
- package/dist/chunk-KN60yxBQ.js +5 -0
- package/dist/chunk-KN60yxBQ.js.map +1 -0
- package/dist/chunk-NM5yg6bh.cjs +82 -0
- package/dist/chunk-NM5yg6bh.cjs.map +1 -0
- package/dist/chunk-OXr3zJfM.cjs +119 -0
- package/dist/chunk-OXr3zJfM.cjs.map +1 -0
- package/dist/chunk-QGqgNC4z.d.ts +928 -0
- package/dist/chunk-QJBtJrZ0.js +36 -0
- package/dist/chunk-QJBtJrZ0.js.map +1 -0
- package/dist/{routeProfile-BsSUABXv.d.cts → chunk-QKWhxfPv.d.cts} +196 -45
- package/dist/{routeProfile-BKfSfxx6.d.ts → chunk-QKWhxfPv.d.ts} +196 -45
- package/dist/chunk-QXW7b4Ev.d.cts +410 -0
- package/dist/chunk-RHZrxUrM.cjs +39 -0
- package/dist/chunk-RHZrxUrM.cjs.map +1 -0
- package/dist/chunk-RTxe2i66.js +91 -0
- package/dist/chunk-RTxe2i66.js.map +1 -0
- package/dist/chunk-RrKkJb6P.js +16 -0
- package/dist/chunk-RrKkJb6P.js.map +1 -0
- package/dist/chunk-VOJqpcnM.cjs +181 -0
- package/dist/chunk-VOJqpcnM.cjs.map +1 -0
- package/dist/chunk-VljGTrid.js +1 -0
- package/dist/chunk-X3UVwUEK.d.cts +513 -0
- package/dist/chunk-X9K2WChn.cjs +28 -0
- package/dist/chunk-X9K2WChn.cjs.map +1 -0
- package/dist/chunk-YrtOx6oy.js +251 -0
- package/dist/chunk-YrtOx6oy.js.map +1 -0
- package/dist/chunk-bY7ySujI.d.cts +928 -0
- package/dist/chunk-bYf1sBz5.d.cts +11 -0
- package/dist/chunk-bYf1sBz5.d.ts +11 -0
- package/dist/chunk-blfknWoM.d.cts +1926 -0
- package/dist/chunk-blqsohAb.js +113 -0
- package/dist/chunk-blqsohAb.js.map +1 -0
- package/dist/chunk-cDMCjodI.cjs +58 -0
- package/dist/chunk-cDMCjodI.cjs.map +1 -0
- package/dist/chunk-cWjE3qd6.cjs +10 -0
- package/dist/chunk-cWjE3qd6.cjs.map +1 -0
- package/dist/chunk-dfOgV3fu.js +26 -0
- package/dist/chunk-dfOgV3fu.js.map +1 -0
- package/dist/chunk-f9cTwUX1.cjs +125 -0
- package/dist/chunk-f9cTwUX1.cjs.map +1 -0
- package/dist/chunk-fHVYEZs4.cjs +28 -0
- package/dist/chunk-fHVYEZs4.cjs.map +1 -0
- package/dist/chunk-fWRUMgRI.js +22 -0
- package/dist/chunk-fWRUMgRI.js.map +1 -0
- package/dist/{types-BEv8V_8V.d.cts → chunk-fozLXfHY.d.cts} +8 -8
- package/dist/{types-BEv8V_8V.d.ts → chunk-fozLXfHY.d.ts} +8 -8
- package/dist/chunk-gWmB1l3A.cjs +3122 -0
- package/dist/chunk-gWmB1l3A.cjs.map +1 -0
- package/dist/chunk-gbj2R-_w.js +58 -0
- package/dist/chunk-gbj2R-_w.js.map +1 -0
- package/dist/chunk-iIWxsAXd.js +59 -0
- package/dist/chunk-iIWxsAXd.js.map +1 -0
- package/dist/chunk-lItIuOIS.cjs +137 -0
- package/dist/chunk-lItIuOIS.cjs.map +1 -0
- package/dist/chunk-m6Rh4PCe.cjs +798 -0
- package/dist/chunk-m6Rh4PCe.cjs.map +1 -0
- package/dist/chunk-o3IRANDf.cjs +99 -0
- package/dist/chunk-o3IRANDf.cjs.map +1 -0
- package/dist/chunk-obUcg3Sk.d.ts +808 -0
- package/dist/chunk-ohsf-6Rn.js +600 -0
- package/dist/chunk-ohsf-6Rn.js.map +1 -0
- package/dist/chunk-pBleU6Nv.js +3061 -0
- package/dist/chunk-pBleU6Nv.js.map +1 -0
- package/dist/chunk-px4e99cy.js +71 -0
- package/dist/chunk-px4e99cy.js.map +1 -0
- package/dist/chunk-qwYDLeXc.cjs +99 -0
- package/dist/chunk-qwYDLeXc.cjs.map +1 -0
- package/dist/chunk-rF_859Qk.cjs +101 -0
- package/dist/chunk-rF_859Qk.cjs.map +1 -0
- package/dist/chunk-rLJkqJ5j.d.ts +1475 -0
- package/dist/chunk-twQItIRg.cjs +338 -0
- package/dist/chunk-twQItIRg.cjs.map +1 -0
- package/dist/chunk-vnPrMVjY.js +10 -0
- package/dist/chunk-vnPrMVjY.js.map +1 -0
- package/dist/chunk-ws3bVwaS.d.ts +410 -0
- package/dist/chunk-xh3UkuVs.cjs +246 -0
- package/dist/chunk-xh3UkuVs.cjs.map +1 -0
- package/dist/chunk-yMzRr26E.js +153 -0
- package/dist/chunk-yMzRr26E.js.map +1 -0
- package/dist/collab/index.cjs +802 -1254
- package/dist/collab/index.cjs.map +1 -1
- package/dist/collab/index.d.cts +518 -544
- package/dist/collab/index.d.ts +518 -544
- package/dist/collab/index.js +797 -1252
- package/dist/collab/index.js.map +1 -1
- package/dist/data/index.cjs +39 -132
- package/dist/data/index.d.cts +6 -468
- package/dist/data/index.d.ts +6 -468
- package/dist/data/index.js +7 -15
- package/dist/editor/index.cjs +2631 -4424
- package/dist/editor/index.cjs.map +1 -1
- package/dist/editor/index.d.cts +10 -59
- package/dist/editor/index.d.ts +10 -59
- package/dist/editor/index.js +2619 -4403
- package/dist/editor/index.js.map +1 -1
- package/dist/errors/index.cjs +11 -28
- package/dist/errors/index.d.cts +2 -125
- package/dist/errors/index.d.ts +2 -125
- package/dist/errors/index.js +1 -3
- package/dist/geo/index.cjs +68 -232
- package/dist/geo/index.d.cts +6 -821
- package/dist/geo/index.d.ts +6 -821
- package/dist/geo/index.js +11 -15
- package/dist/i18n/fr/index.cjs +329 -334
- package/dist/i18n/fr/index.cjs.map +1 -1
- package/dist/i18n/fr/index.d.cts +3 -10
- package/dist/i18n/fr/index.d.ts +3 -10
- package/dist/i18n/fr/index.js +324 -332
- package/dist/i18n/fr/index.js.map +1 -1
- package/dist/i18n/index.cjs +434 -447
- package/dist/i18n/index.cjs.map +1 -1
- package/dist/i18n/index.d.cts +152 -111
- package/dist/i18n/index.d.ts +152 -111
- package/dist/i18n/index.js +420 -420
- package/dist/i18n/index.js.map +1 -1
- package/dist/icons/index.cjs +37 -116
- package/dist/icons/index.d.cts +4 -457
- package/dist/icons/index.d.ts +4 -457
- package/dist/icons/index.js +8 -11
- package/dist/index.cjs +515 -1867
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +44 -121
- package/dist/index.d.ts +44 -121
- package/dist/index.js +52 -65
- package/dist/index.js.map +1 -1
- package/dist/layers/index.cjs +83 -318
- package/dist/layers/index.d.cts +3 -1555
- package/dist/layers/index.d.ts +3 -1555
- package/dist/layers/index.js +5 -17
- package/dist/map-client/index.cjs +5 -4
- package/dist/map-client/index.d.cts +6 -1856
- package/dist/map-client/index.d.ts +6 -1856
- package/dist/map-client/index.js +0 -3
- package/dist/maplibre-worker.mjs +4 -4
- package/dist/navigation/index.cjs +584 -671
- package/dist/navigation/index.cjs.map +1 -1
- package/dist/navigation/index.d.cts +191 -272
- package/dist/navigation/index.d.ts +191 -272
- package/dist/navigation/index.js +579 -669
- package/dist/navigation/index.js.map +1 -1
- package/dist/profile/index.cjs +177 -675
- package/dist/profile/index.d.cts +8 -2086
- package/dist/profile/index.d.ts +8 -2086
- package/dist/profile/index.js +10 -18
- package/dist/seams/index.cjs +15 -39
- package/dist/seams/index.d.cts +4 -254
- package/dist/seams/index.d.ts +4 -254
- package/dist/seams/index.js +4 -6
- package/dist/search/index.cjs +39 -147
- package/dist/search/index.d.cts +6 -888
- package/dist/search/index.d.ts +6 -888
- package/dist/search/index.js +3 -14
- package/dist/style/index.cjs +34 -116
- package/dist/style/index.d.cts +5 -538
- package/dist/style/index.d.ts +5 -538
- package/dist/style/index.js +5 -11
- package/dist/testing/index.cjs +432 -617
- package/dist/testing/index.cjs.map +1 -1
- package/dist/testing/index.d.cts +61 -109
- package/dist/testing/index.d.ts +61 -109
- package/dist/testing/index.js +427 -615
- package/dist/testing/index.js.map +1 -1
- package/dist/timezone/index.cjs +1946 -752
- package/dist/timezone/index.cjs.map +1 -1
- package/dist/timezone/index.d.cts +4 -29
- package/dist/timezone/index.d.ts +4 -29
- package/dist/timezone/index.js +1941 -750
- package/dist/timezone/index.js.map +1 -1
- package/dist/units/index.cjs +29 -99
- package/dist/units/index.d.cts +3 -75
- package/dist/units/index.d.ts +3 -75
- package/dist/units/index.js +3 -6
- package/dist/video/index.cjs +1684 -2169
- package/dist/video/index.cjs.map +1 -1
- package/dist/video/index.d.cts +386 -413
- package/dist/video/index.d.ts +386 -413
- package/dist/video/index.js +1678 -2162
- package/dist/video/index.js.map +1 -1
- package/dist/view/index.cjs +6 -42
- package/dist/view/index.d.cts +3 -836
- package/dist/view/index.d.ts +3 -836
- package/dist/view/index.js +1 -34
- package/package.json +12 -12
- package/src/auth/rules/clientHeader.ts +1 -1
- package/src/camera/rules/modes.ts +38 -42
- package/src/camera/rules/routeContent.ts +1 -0
- package/src/collab/index.ts +1 -5
- package/src/compose/engines/mountayaMap.ts +16 -42
- package/src/compose/rules/developmentWarnings.ts +4 -3
- package/src/compose/rules/fitBox.ts +67 -0
- package/src/compose/rules/maplibreWorkerVersion.gen.ts +1 -1
- package/src/compose/rules/maxBounds.ts +5 -5
- package/src/compose/rules/types.ts +4 -11
- package/src/compose/rules/workerUrl.ts +41 -6
- package/src/editing/rules/engine.ts +4 -2
- package/src/editor/engines/viewClient.ts +8 -0
- package/src/editor/rules/contract.ts +1 -6
- package/src/errors/rules/errors.ts +1 -0
- package/src/geo/index.ts +1 -6
- package/src/i18n/index.ts +1 -0
- package/src/i18n/rules/dates.ts +165 -0
- package/src/index.ts +5 -24
- package/src/map-client/rules/mapClient.ts +4 -2
- package/src/profile/rules/scale.ts +1 -5
- package/src/profile/rules/waypointCard.ts +8 -11
- package/src/search/index.ts +3 -18
- package/src/video/index.ts +1 -1
- package/src/video/profileOverlay/rules/contract.ts +1 -3
- package/src/video/rules/videoEncoder.ts +1 -1
- package/dist/accentColor-GNKBD2CW.js +0 -4
- package/dist/accentColor-GNKBD2CW.js.map +0 -1
- package/dist/accentColor-VX2JSMGE.cjs +0 -17
- package/dist/accentColor-VX2JSMGE.cjs.map +0 -1
- package/dist/chunk-23PFRRB6.js +0 -3
- package/dist/chunk-23PFRRB6.js.map +0 -1
- package/dist/chunk-2GI5SAH2.js +0 -71
- package/dist/chunk-2GI5SAH2.js.map +0 -1
- package/dist/chunk-2MQK6A74.js +0 -39
- package/dist/chunk-2MQK6A74.js.map +0 -1
- package/dist/chunk-2RE7R4LD.js +0 -73
- package/dist/chunk-2RE7R4LD.js.map +0 -1
- package/dist/chunk-3JZQKN4O.js +0 -6
- package/dist/chunk-3JZQKN4O.js.map +0 -1
- package/dist/chunk-3NDXVUUI.js +0 -50
- package/dist/chunk-3NDXVUUI.js.map +0 -1
- package/dist/chunk-3R4GFTUM.cjs +0 -59
- package/dist/chunk-3R4GFTUM.cjs.map +0 -1
- package/dist/chunk-3RVUQ6JN.cjs +0 -22
- package/dist/chunk-3RVUQ6JN.cjs.map +0 -1
- package/dist/chunk-4F6BJMJC.cjs +0 -49
- package/dist/chunk-4F6BJMJC.cjs.map +0 -1
- package/dist/chunk-4NWQD4BX.js +0 -132
- package/dist/chunk-4NWQD4BX.js.map +0 -1
- package/dist/chunk-5K2MH3R6.js +0 -10
- package/dist/chunk-5K2MH3R6.js.map +0 -1
- package/dist/chunk-6ACRNQQQ.cjs +0 -8
- package/dist/chunk-6ACRNQQQ.cjs.map +0 -1
- package/dist/chunk-6D26E3IA.js +0 -66
- package/dist/chunk-6D26E3IA.js.map +0 -1
- package/dist/chunk-6ESAW35P.cjs +0 -80
- package/dist/chunk-6ESAW35P.cjs.map +0 -1
- package/dist/chunk-6LIW2A5M.cjs +0 -1176
- package/dist/chunk-6LIW2A5M.cjs.map +0 -1
- package/dist/chunk-6OTTWVCA.js +0 -57
- package/dist/chunk-6OTTWVCA.js.map +0 -1
- package/dist/chunk-6VROJ4UG.js +0 -862
- package/dist/chunk-6VROJ4UG.js.map +0 -1
- package/dist/chunk-6Y7FTGO4.js +0 -23
- package/dist/chunk-6Y7FTGO4.js.map +0 -1
- package/dist/chunk-75I4CG64.js +0 -104
- package/dist/chunk-75I4CG64.js.map +0 -1
- package/dist/chunk-7CUBXHAH.cjs +0 -14
- package/dist/chunk-7CUBXHAH.cjs.map +0 -1
- package/dist/chunk-7GTCURVY.js +0 -52
- package/dist/chunk-7GTCURVY.js.map +0 -1
- package/dist/chunk-7IWOL6AM.cjs +0 -100
- package/dist/chunk-7IWOL6AM.cjs.map +0 -1
- package/dist/chunk-7QN7M667.cjs +0 -151
- package/dist/chunk-7QN7M667.cjs.map +0 -1
- package/dist/chunk-A6KQDKLM.cjs +0 -1197
- package/dist/chunk-A6KQDKLM.cjs.map +0 -1
- package/dist/chunk-A77EA67G.js +0 -354
- package/dist/chunk-A77EA67G.js.map +0 -1
- package/dist/chunk-AFKOABJ4.cjs +0 -7194
- package/dist/chunk-AFKOABJ4.cjs.map +0 -1
- package/dist/chunk-AG6JV5Z2.cjs +0 -183
- package/dist/chunk-AG6JV5Z2.cjs.map +0 -1
- package/dist/chunk-APBK7NMS.js +0 -30
- package/dist/chunk-APBK7NMS.js.map +0 -1
- package/dist/chunk-AWO5YA7A.cjs +0 -33
- package/dist/chunk-AWO5YA7A.cjs.map +0 -1
- package/dist/chunk-AZATU6QW.js +0 -108
- package/dist/chunk-AZATU6QW.js.map +0 -1
- package/dist/chunk-BD2U3WST.cjs +0 -623
- package/dist/chunk-BD2U3WST.cjs.map +0 -1
- package/dist/chunk-BHBEOU6L.cjs +0 -65
- package/dist/chunk-BHBEOU6L.cjs.map +0 -1
- package/dist/chunk-CNOSNYNE.js +0 -8
- package/dist/chunk-CNOSNYNE.js.map +0 -1
- package/dist/chunk-CW3EFR4O.js +0 -12
- package/dist/chunk-CW3EFR4O.js.map +0 -1
- package/dist/chunk-DASVRNBK.js +0 -7187
- package/dist/chunk-DASVRNBK.js.map +0 -1
- package/dist/chunk-DJ6LCKYP.js +0 -42
- package/dist/chunk-DJ6LCKYP.js.map +0 -1
- package/dist/chunk-E5FHQAIO.cjs +0 -45
- package/dist/chunk-E5FHQAIO.cjs.map +0 -1
- package/dist/chunk-EOML5OTY.cjs +0 -360
- package/dist/chunk-EOML5OTY.cjs.map +0 -1
- package/dist/chunk-EP5CASHL.js +0 -613
- package/dist/chunk-EP5CASHL.js.map +0 -1
- package/dist/chunk-EP5OEEVZ.cjs +0 -14
- package/dist/chunk-EP5OEEVZ.cjs.map +0 -1
- package/dist/chunk-EUXI3FGQ.js +0 -150
- package/dist/chunk-EUXI3FGQ.js.map +0 -1
- package/dist/chunk-EWFSHCOS.js +0 -40
- package/dist/chunk-EWFSHCOS.js.map +0 -1
- package/dist/chunk-EX2C5K2T.cjs +0 -25
- package/dist/chunk-EX2C5K2T.cjs.map +0 -1
- package/dist/chunk-FEXWDQIZ.cjs +0 -8
- package/dist/chunk-FEXWDQIZ.cjs.map +0 -1
- package/dist/chunk-FEYBFY7H.cjs +0 -358
- package/dist/chunk-FEYBFY7H.cjs.map +0 -1
- package/dist/chunk-FRGAV6N6.cjs +0 -34
- package/dist/chunk-FRGAV6N6.cjs.map +0 -1
- package/dist/chunk-G5DHP5VF.js +0 -6
- package/dist/chunk-G5DHP5VF.js.map +0 -1
- package/dist/chunk-G5W2UHV2.js +0 -99
- package/dist/chunk-G5W2UHV2.js.map +0 -1
- package/dist/chunk-G7OP7O2C.cjs +0 -39
- package/dist/chunk-G7OP7O2C.cjs.map +0 -1
- package/dist/chunk-GE6CFCAM.cjs +0 -25
- package/dist/chunk-GE6CFCAM.cjs.map +0 -1
- package/dist/chunk-GIFALLHI.cjs +0 -111
- package/dist/chunk-GIFALLHI.cjs.map +0 -1
- package/dist/chunk-GLFET5GM.js +0 -129
- package/dist/chunk-GLFET5GM.js.map +0 -1
- package/dist/chunk-GQ6UFPFM.js +0 -22
- package/dist/chunk-GQ6UFPFM.js.map +0 -1
- package/dist/chunk-GQJWVMXS.js +0 -129
- package/dist/chunk-GQJWVMXS.js.map +0 -1
- package/dist/chunk-GVVJPUKC.js +0 -80
- package/dist/chunk-GVVJPUKC.js.map +0 -1
- package/dist/chunk-GZ2HOCQ2.cjs +0 -134
- package/dist/chunk-GZ2HOCQ2.cjs.map +0 -1
- package/dist/chunk-HCBOHXWP.js +0 -37
- package/dist/chunk-HCBOHXWP.js.map +0 -1
- package/dist/chunk-IBQJDVHF.cjs +0 -281
- package/dist/chunk-IBQJDVHF.cjs.map +0 -1
- package/dist/chunk-ISLB6Y5Q.cjs +0 -106
- package/dist/chunk-ISLB6Y5Q.cjs.map +0 -1
- package/dist/chunk-J55CRR4F.js +0 -105
- package/dist/chunk-J55CRR4F.js.map +0 -1
- package/dist/chunk-JBG6Z6MQ.cjs +0 -28
- package/dist/chunk-JBG6Z6MQ.cjs.map +0 -1
- package/dist/chunk-K3RQOZRU.js +0 -61
- package/dist/chunk-K3RQOZRU.js.map +0 -1
- package/dist/chunk-KDJYS4GB.cjs +0 -703
- package/dist/chunk-KDJYS4GB.cjs.map +0 -1
- package/dist/chunk-KMCAHUZM.cjs +0 -4
- package/dist/chunk-KMCAHUZM.cjs.map +0 -1
- package/dist/chunk-KUCBNPC6.js +0 -87
- package/dist/chunk-KUCBNPC6.js.map +0 -1
- package/dist/chunk-KV6UE5A4.js +0 -50
- package/dist/chunk-KV6UE5A4.js.map +0 -1
- package/dist/chunk-L6TZ2HQR.cjs +0 -18
- package/dist/chunk-L6TZ2HQR.cjs.map +0 -1
- package/dist/chunk-L7QHHGG2.cjs +0 -141
- package/dist/chunk-L7QHHGG2.cjs.map +0 -1
- package/dist/chunk-LHK3Y2AL.js +0 -271
- package/dist/chunk-LHK3Y2AL.js.map +0 -1
- package/dist/chunk-LO5RYRBH.cjs +0 -6317
- package/dist/chunk-LO5RYRBH.cjs.map +0 -1
- package/dist/chunk-LS5SJMUO.cjs +0 -194
- package/dist/chunk-LS5SJMUO.cjs.map +0 -1
- package/dist/chunk-LUGTMZFN.cjs +0 -42
- package/dist/chunk-LUGTMZFN.cjs.map +0 -1
- package/dist/chunk-LVUQU6D5.js +0 -32
- package/dist/chunk-LVUQU6D5.js.map +0 -1
- package/dist/chunk-M2QRC2GZ.js +0 -166
- package/dist/chunk-M2QRC2GZ.js.map +0 -1
- package/dist/chunk-M6QJYQIM.cjs +0 -53
- package/dist/chunk-M6QJYQIM.cjs.map +0 -1
- package/dist/chunk-MGCPH5EO.js +0 -12
- package/dist/chunk-MGCPH5EO.js.map +0 -1
- package/dist/chunk-MLVUWEZR.cjs +0 -474
- package/dist/chunk-MLVUWEZR.cjs.map +0 -1
- package/dist/chunk-MTAMJMZL.cjs +0 -707
- package/dist/chunk-MTAMJMZL.cjs.map +0 -1
- package/dist/chunk-MXL5AT3N.js +0 -48
- package/dist/chunk-MXL5AT3N.js.map +0 -1
- package/dist/chunk-MYEQSESM.cjs +0 -75
- package/dist/chunk-MYEQSESM.cjs.map +0 -1
- package/dist/chunk-N3VPF6ZD.js +0 -427
- package/dist/chunk-N3VPF6ZD.js.map +0 -1
- package/dist/chunk-N6VUAIGI.js +0 -7
- package/dist/chunk-N6VUAIGI.js.map +0 -1
- package/dist/chunk-N6XRLUN6.js +0 -6286
- package/dist/chunk-N6XRLUN6.js.map +0 -1
- package/dist/chunk-NOGDOZIT.cjs +0 -114
- package/dist/chunk-NOGDOZIT.cjs.map +0 -1
- package/dist/chunk-NUWXEISH.cjs +0 -10
- package/dist/chunk-NUWXEISH.cjs.map +0 -1
- package/dist/chunk-NZCZHXYN.cjs +0 -161
- package/dist/chunk-NZCZHXYN.cjs.map +0 -1
- package/dist/chunk-ODROSWQX.cjs +0 -53
- package/dist/chunk-ODROSWQX.cjs.map +0 -1
- package/dist/chunk-OE36AYKG.cjs +0 -82
- package/dist/chunk-OE36AYKG.cjs.map +0 -1
- package/dist/chunk-OLON7MO6.cjs +0 -437
- package/dist/chunk-OLON7MO6.cjs.map +0 -1
- package/dist/chunk-PBUOR2IT.js +0 -277
- package/dist/chunk-PBUOR2IT.js.map +0 -1
- package/dist/chunk-PC2ELXFF.cjs +0 -225
- package/dist/chunk-PC2ELXFF.cjs.map +0 -1
- package/dist/chunk-PCSGXLOC.js +0 -71
- package/dist/chunk-PCSGXLOC.js.map +0 -1
- package/dist/chunk-PFNMP6FQ.js +0 -56
- package/dist/chunk-PFNMP6FQ.js.map +0 -1
- package/dist/chunk-PIWSZTIP.js +0 -690
- package/dist/chunk-PIWSZTIP.js.map +0 -1
- package/dist/chunk-PKWHJ2GI.js +0 -136
- package/dist/chunk-PKWHJ2GI.js.map +0 -1
- package/dist/chunk-PLMVBX2A.cjs +0 -76
- package/dist/chunk-PLMVBX2A.cjs.map +0 -1
- package/dist/chunk-PM3XCD2G.cjs +0 -113
- package/dist/chunk-PM3XCD2G.cjs.map +0 -1
- package/dist/chunk-QAL4GZO7.cjs +0 -143
- package/dist/chunk-QAL4GZO7.cjs.map +0 -1
- package/dist/chunk-QDB2SEA2.js +0 -74
- package/dist/chunk-QDB2SEA2.js.map +0 -1
- package/dist/chunk-QOV7UNUN.js +0 -25
- package/dist/chunk-QOV7UNUN.js.map +0 -1
- package/dist/chunk-QQUWYLSF.cjs +0 -50
- package/dist/chunk-QQUWYLSF.cjs.map +0 -1
- package/dist/chunk-QUMBH3U4.cjs +0 -9
- package/dist/chunk-QUMBH3U4.cjs.map +0 -1
- package/dist/chunk-R4KA7OFQ.js +0 -12
- package/dist/chunk-R4KA7OFQ.js.map +0 -1
- package/dist/chunk-RBSGAZQQ.js +0 -17
- package/dist/chunk-RBSGAZQQ.js.map +0 -1
- package/dist/chunk-RM5YJWZI.js +0 -46
- package/dist/chunk-RM5YJWZI.js.map +0 -1
- package/dist/chunk-ROKNKXA4.cjs +0 -8
- package/dist/chunk-ROKNKXA4.cjs.map +0 -1
- package/dist/chunk-RQG6D546.cjs +0 -75
- package/dist/chunk-RQG6D546.cjs.map +0 -1
- package/dist/chunk-SG4YDD5L.cjs +0 -74
- package/dist/chunk-SG4YDD5L.cjs.map +0 -1
- package/dist/chunk-SNRCA7EO.js +0 -56
- package/dist/chunk-SNRCA7EO.js.map +0 -1
- package/dist/chunk-SO75R4WW.cjs +0 -22
- package/dist/chunk-SO75R4WW.cjs.map +0 -1
- package/dist/chunk-SP34NHFI.js +0 -45
- package/dist/chunk-SP34NHFI.js.map +0 -1
- package/dist/chunk-SSKSSBWJ.cjs +0 -179
- package/dist/chunk-SSKSSBWJ.cjs.map +0 -1
- package/dist/chunk-TB5663C2.js +0 -1108
- package/dist/chunk-TB5663C2.js.map +0 -1
- package/dist/chunk-TGH4NRES.js +0 -220
- package/dist/chunk-TGH4NRES.js.map +0 -1
- package/dist/chunk-TJ6ZPNID.js +0 -189
- package/dist/chunk-TJ6ZPNID.js.map +0 -1
- package/dist/chunk-U45T35N2.cjs +0 -90
- package/dist/chunk-U45T35N2.cjs.map +0 -1
- package/dist/chunk-UKVOPEZ2.js +0 -442
- package/dist/chunk-UKVOPEZ2.js.map +0 -1
- package/dist/chunk-UTB4NROA.cjs +0 -887
- package/dist/chunk-UTB4NROA.cjs.map +0 -1
- package/dist/chunk-UTW33B5V.js +0 -6
- package/dist/chunk-UTW33B5V.js.map +0 -1
- package/dist/chunk-UYUBSD2V.cjs +0 -33
- package/dist/chunk-UYUBSD2V.cjs.map +0 -1
- package/dist/chunk-V3JEP5AG.cjs +0 -59
- package/dist/chunk-V3JEP5AG.cjs.map +0 -1
- package/dist/chunk-VFAGJXHR.js +0 -18
- package/dist/chunk-VFAGJXHR.js.map +0 -1
- package/dist/chunk-VMEE57E5.cjs +0 -58
- package/dist/chunk-VMEE57E5.cjs.map +0 -1
- package/dist/chunk-VQVBEX3Y.cjs +0 -113
- package/dist/chunk-VQVBEX3Y.cjs.map +0 -1
- package/dist/chunk-VZDXX7TT.cjs +0 -64
- package/dist/chunk-VZDXX7TT.cjs.map +0 -1
- package/dist/chunk-WE5ZTI4D.js +0 -346
- package/dist/chunk-WE5ZTI4D.js.map +0 -1
- package/dist/chunk-WEFUVABP.js +0 -19
- package/dist/chunk-WEFUVABP.js.map +0 -1
- package/dist/chunk-WMU4LRKC.js +0 -28
- package/dist/chunk-WMU4LRKC.js.map +0 -1
- package/dist/chunk-WQ24RRHL.cjs +0 -354
- package/dist/chunk-WQ24RRHL.cjs.map +0 -1
- package/dist/chunk-WW4CGS7G.cjs +0 -26
- package/dist/chunk-WW4CGS7G.cjs.map +0 -1
- package/dist/chunk-WXE5WCTM.js +0 -1144
- package/dist/chunk-WXE5WCTM.js.map +0 -1
- package/dist/chunk-X23BGIYA.cjs +0 -37
- package/dist/chunk-X23BGIYA.cjs.map +0 -1
- package/dist/chunk-XEW4FTR2.js +0 -98
- package/dist/chunk-XEW4FTR2.js.map +0 -1
- package/dist/chunk-XIOI4IYW.js +0 -167
- package/dist/chunk-XIOI4IYW.js.map +0 -1
- package/dist/chunk-XLVPJ37V.cjs +0 -44
- package/dist/chunk-XLVPJ37V.cjs.map +0 -1
- package/dist/chunk-XOHAXXZA.cjs +0 -51
- package/dist/chunk-XOHAXXZA.cjs.map +0 -1
- package/dist/chunk-Y4NRIHK6.cjs +0 -313
- package/dist/chunk-Y4NRIHK6.cjs.map +0 -1
- package/dist/chunk-Y4YMMKL3.js +0 -23
- package/dist/chunk-Y4YMMKL3.js.map +0 -1
- package/dist/chunk-YJNYBVE3.cjs +0 -14
- package/dist/chunk-YJNYBVE3.cjs.map +0 -1
- package/dist/chunk-Z762QNQP.cjs +0 -60
- package/dist/chunk-Z762QNQP.cjs.map +0 -1
- package/dist/chunk-ZG5KMBOF.js +0 -669
- package/dist/chunk-ZG5KMBOF.js.map +0 -1
- package/dist/chunk-ZKONQEFA.js +0 -344
- package/dist/chunk-ZKONQEFA.js.map +0 -1
- package/dist/chunk-ZR5X7QMH.js +0 -39
- package/dist/chunk-ZR5X7QMH.js.map +0 -1
- package/dist/chunk-ZW4BJQ26.js +0 -84
- package/dist/chunk-ZW4BJQ26.js.map +0 -1
- package/dist/climbs-BhlWuu0x.d.ts +0 -70
- package/dist/climbs-DgBFwySV.d.cts +0 -70
- package/dist/data/index.cjs.map +0 -1
- package/dist/data/index.js.map +0 -1
- package/dist/errors/index.cjs.map +0 -1
- package/dist/errors/index.js.map +0 -1
- package/dist/geo/index.cjs.map +0 -1
- package/dist/geo/index.js.map +0 -1
- package/dist/icons/index.cjs.map +0 -1
- package/dist/icons/index.js.map +0 -1
- package/dist/itinerary-Dp2ZnqgD.d.cts +0 -178
- package/dist/itinerary-Dp2ZnqgD.d.ts +0 -178
- package/dist/layers/index.cjs.map +0 -1
- package/dist/layers/index.js.map +0 -1
- package/dist/map-client/index.cjs.map +0 -1
- package/dist/map-client/index.js.map +0 -1
- package/dist/markerSprite-DGBQF6PO.cjs +0 -49
- package/dist/markerSprite-DGBQF6PO.cjs.map +0 -1
- package/dist/markerSprite-DZLTR6F6.js +0 -8
- package/dist/markerSprite-DZLTR6F6.js.map +0 -1
- package/dist/mountayaMap-C9mxRFib.d.cts +0 -3277
- package/dist/mountayaMap-DgnlQ2fE.d.ts +0 -3277
- package/dist/paint-BgUcj8l7.d.cts +0 -118
- package/dist/paint-Dx_qGNE_.d.ts +0 -118
- package/dist/profile/index.cjs.map +0 -1
- package/dist/profile/index.js.map +0 -1
- package/dist/seams/index.cjs.map +0 -1
- package/dist/seams/index.js.map +0 -1
- package/dist/search/index.cjs.map +0 -1
- package/dist/search/index.js.map +0 -1
- package/dist/searchHighlight-DFE7LVIL.cjs +0 -33
- package/dist/searchHighlight-DFE7LVIL.cjs.map +0 -1
- package/dist/searchHighlight-MHAQZVWG.js +0 -12
- package/dist/searchHighlight-MHAQZVWG.js.map +0 -1
- package/dist/strings-30RSdIat.d.cts +0 -552
- package/dist/strings-DPTIbzT5.d.ts +0 -552
- package/dist/stripeImage-CQUXM2YI.js +0 -14
- package/dist/stripeImage-CQUXM2YI.js.map +0 -1
- package/dist/stripeImage-R43OPA6U.cjs +0 -39
- package/dist/stripeImage-R43OPA6U.cjs.map +0 -1
- package/dist/style/index.cjs.map +0 -1
- package/dist/style/index.js.map +0 -1
- package/dist/types-B034JMjl.d.ts +0 -973
- package/dist/types-B2NDLxQA.d.cts +0 -21
- package/dist/types-B2NDLxQA.d.ts +0 -21
- package/dist/types-C8aX5KMU.d.cts +0 -973
- package/dist/units/index.cjs.map +0 -1
- package/dist/units/index.js.map +0 -1
- package/dist/view/index.cjs.map +0 -1
- package/dist/view/index.js.map +0 -1
|
@@ -0,0 +1,928 @@
|
|
|
1
|
+
import { n as FitBoundsPadding, t as BoundingBox } from "./chunk-fozLXfHY.js";
|
|
2
|
+
import { c as WaypointEditMode, i as ZoneMode, o as SegmentEditMode } from "./chunk-A48H1rDg.js";
|
|
3
|
+
import { i as TileSpecification } from "./chunk-bYf1sBz5.js";
|
|
4
|
+
import "./chunk-Bqt97zwf.js";
|
|
5
|
+
import { n as SegmentAnalyzeFn, r as SegmentRoute, s as SegmentRouteFn } from "./chunk-DeSjQXiI.js";
|
|
6
|
+
import { DataSchema, DirectionsResult as DirectionsResult$1, GeocodeResult as GeocodeResult$1, IsochronesResult as IsochronesResult$1, MatrixResult, MatrixResult as MatrixResult$1, PoisResult as PoisResult$1, RestSchema, SearchResult as SearchResult$1, SuggestionsResult as SuggestionsResult$1 } from "@mountaya/client";
|
|
7
|
+
import { Feature, Geometry, Polygon, Position } from "geojson";
|
|
8
|
+
/**
|
|
9
|
+
* Layers is the layers manifest: every terrain, overlay and enrichment a credential may draw, as
|
|
10
|
+
* `MountayaMap.loadLayers` answers it.
|
|
11
|
+
*/
|
|
12
|
+
type Layers = RestSchema.Layers;
|
|
13
|
+
/**
|
|
14
|
+
* Overlay is one overlay the layers manifest lists, tile sources included: the value a map
|
|
15
|
+
* client's overlay slots take whole.
|
|
16
|
+
*/
|
|
17
|
+
type Overlay = RestSchema.Overlay;
|
|
18
|
+
/** CategoryOverlays is one group of overlays the layers manifest lists, with its overlays. */
|
|
19
|
+
type CategoryOverlays = RestSchema.CategoryOverlays;
|
|
20
|
+
/** Terrain is one base map the layers manifest lists, with its light and dark variants. */
|
|
21
|
+
type Terrain = RestSchema.Terrain;
|
|
22
|
+
/** DirectionsInput is what `MountayaMap.addDirections` asks the Data API's directions read. */
|
|
23
|
+
type DirectionsInput = DataSchema.DirectionsInput;
|
|
24
|
+
/** SuggestionsInput is what `MountayaMap.addSuggestions` asks the Data API's suggestions read. */
|
|
25
|
+
type SuggestionsInput = DataSchema.SuggestionsInput;
|
|
26
|
+
/** IsochronesInput is what `MountayaMap.addIsochrones` asks the Data API's isochrones read. */
|
|
27
|
+
type IsochronesInput = DataSchema.IsochronesInput;
|
|
28
|
+
/** MatrixInput is what `MountayaMap.addMatrix` asks the Data API's matrix read. */
|
|
29
|
+
type MatrixInput = DataSchema.MatrixInput;
|
|
30
|
+
/** GeocodeInput is what `MountayaMap.addPlaces` asks the Data API's geocoding read. */
|
|
31
|
+
type GeocodeInput = DataSchema.GeocodeInput;
|
|
32
|
+
/**
|
|
33
|
+
* PoisInput is what `MountayaMap.setPointsOfInterest` asks the Data API's points-of-interest
|
|
34
|
+
* read: the contract's `PoisInput`.
|
|
35
|
+
*/
|
|
36
|
+
type PoisInput = DataSchema.PoisInput;
|
|
37
|
+
/** SearchInput is what `MountayaMap.search` asks the Data API's unified search. */
|
|
38
|
+
type SearchInput = DataSchema.SearchInput;
|
|
39
|
+
/** SearchTargetsInput names the targets a search looks through, one flag each. */
|
|
40
|
+
type SearchTargetsInput = DataSchema.SearchTargetsInput;
|
|
41
|
+
/** DataActivitySlug is an activity as the Data API spells it, such as `"BACKCOUNTRY_SKIING"`. */
|
|
42
|
+
type DataActivitySlug = DataSchema.ActivitySlug;
|
|
43
|
+
/** DataRangeType is what an isochrone's range budgets: `"DISTANCE"` or `"TIME"`. */
|
|
44
|
+
type DataRangeType = DataSchema.RangeType;
|
|
45
|
+
/** MatrixMetric is what a matrix measures between its locations: `"DISTANCE"` or `"DURATION"`. */
|
|
46
|
+
type MatrixMetric = DataSchema.MatrixMetric;
|
|
47
|
+
/** PoiCategory is a category of point of interest, as the Data API spells it. */
|
|
48
|
+
type PoiCategory = DataSchema.PoiCategory;
|
|
49
|
+
/** RouteHazard is a hazard a directions read can be asked to route around. */
|
|
50
|
+
type RouteHazard = DataSchema.RouteHazard;
|
|
51
|
+
/** Identifies one drawn analysis result, so `edit` and `remove` can name it. */
|
|
52
|
+
type AnalysisId = string;
|
|
53
|
+
/**
|
|
54
|
+
* What an `add*` answers: the id it drew under, and the result it drew.
|
|
55
|
+
*
|
|
56
|
+
* Both halves earn their place. The id is what makes the resource editable and removable
|
|
57
|
+
* rather than only replaceable; the result is the data the query already paid for, and
|
|
58
|
+
* withholding it would force a second call for numbers the first one returned, which is
|
|
59
|
+
* the whole point for `addMatrix`, whose result has no geometry at all.
|
|
60
|
+
*/
|
|
61
|
+
interface AnalysisHandle<Result> {
|
|
62
|
+
readonly id: AnalysisId;
|
|
63
|
+
readonly result: Result;
|
|
64
|
+
}
|
|
65
|
+
/** DrawOptions is what every drawing call on a map takes: whether the camera frames the drawing. */
|
|
66
|
+
interface DrawOptions {
|
|
67
|
+
/**
|
|
68
|
+
* Frames the camera on what the call draws, once it is drawn: `true` with MapLibre's own
|
|
69
|
+
* padding, zoom ceiling and ease, or the {@link FitBoundsOptions} to frame with.
|
|
70
|
+
*
|
|
71
|
+
* Off unless asked for, on every drawing call: a map that jumped on every added layer would
|
|
72
|
+
* fight an application driving its own camera, and opting in is one word.
|
|
73
|
+
*
|
|
74
|
+
* Read as the call is made: a value that is neither a boolean nor an object of options, and
|
|
75
|
+
* options `fitBounds` refuses, reject the call with a `MountayaElementsError` that names its
|
|
76
|
+
* method, before anything is asked or drawn.
|
|
77
|
+
*
|
|
78
|
+
* @default false
|
|
79
|
+
*/
|
|
80
|
+
readonly fit?: boolean | FitBoundsOptions | undefined;
|
|
81
|
+
}
|
|
82
|
+
/**
|
|
83
|
+
* CollectionDrawOptions is what `MountayaMap.setCollection` takes beside the collection: whether
|
|
84
|
+
* the camera frames it, and the signal that withdraws the call.
|
|
85
|
+
*/
|
|
86
|
+
interface CollectionDrawOptions extends DrawOptions {
|
|
87
|
+
/**
|
|
88
|
+
* Withdraws the call. The signal is handed to the read the call makes through the client, and
|
|
89
|
+
* an abort made before the collection is drawn rejects the call with the signal's reason, with
|
|
90
|
+
* nothing drawn and nothing framed.
|
|
91
|
+
*
|
|
92
|
+
* @default undefined The call cannot be withdrawn, and a later call or a clear supersedes it.
|
|
93
|
+
*/
|
|
94
|
+
readonly signal?: AbortSignal | undefined;
|
|
95
|
+
}
|
|
96
|
+
/**
|
|
97
|
+
* ItineraryDrawOptions is what `MountayaMap.setItinerary` takes beside the itinerary: whether the
|
|
98
|
+
* camera frames it, and the signal that withdraws the call.
|
|
99
|
+
*/
|
|
100
|
+
interface ItineraryDrawOptions extends DrawOptions {
|
|
101
|
+
/**
|
|
102
|
+
* Withdraws the call. The signal is handed to every read the call makes through the client,
|
|
103
|
+
* and an abort made before the itinerary is drawn rejects the call with the signal's reason,
|
|
104
|
+
* with nothing drawn and nothing framed.
|
|
105
|
+
*
|
|
106
|
+
* @default undefined The call cannot be withdrawn, and a later call or a clear supersedes it.
|
|
107
|
+
*/
|
|
108
|
+
readonly signal?: AbortSignal | undefined;
|
|
109
|
+
}
|
|
110
|
+
/**
|
|
111
|
+
* SuggestionDrawOptions is what `MountayaMap.addSuggestions` and `editSuggestions` take beside
|
|
112
|
+
* the input: whether the camera frames the drawing, and which candidate reads as chosen.
|
|
113
|
+
*/
|
|
114
|
+
interface SuggestionDrawOptions extends DrawOptions {
|
|
115
|
+
/**
|
|
116
|
+
* Which candidate reads as chosen: solid, in the chosen colour, with the rest dashed.
|
|
117
|
+
*
|
|
118
|
+
* Changing it through `editSuggestions(id, {}, { chosen })` restyles from the result already
|
|
119
|
+
* held rather than asking again: suggestions are seeded, so re-running would answer a
|
|
120
|
+
* *different* set of itineraries than the one whose candidate the user just picked.
|
|
121
|
+
*
|
|
122
|
+
* @default 0, because the API returns candidates best-first.
|
|
123
|
+
*/
|
|
124
|
+
readonly chosen?: number | undefined;
|
|
125
|
+
}
|
|
126
|
+
/**
|
|
127
|
+
* MatrixDrawOptions is what `MountayaMap.addMatrix` takes beside the input: whether the camera
|
|
128
|
+
* frames the matrix, and a result already held for that input.
|
|
129
|
+
*/
|
|
130
|
+
interface MatrixDrawOptions extends DrawOptions {
|
|
131
|
+
/**
|
|
132
|
+
* The result of this input, when the caller already holds it: the matrix is drawn from it and
|
|
133
|
+
* the client is asked nothing.
|
|
134
|
+
*
|
|
135
|
+
* A matrix result is grids of numbers and no geometry, so it rides beside the input whose
|
|
136
|
+
* locations its connectors run between, and never in its place. The result is the caller's
|
|
137
|
+
* to match to the input: a cell the grid does not hold for a pair of locations draws no
|
|
138
|
+
* connector. The input is kept, so `editMatrix` merges its patch onto it and asks the client
|
|
139
|
+
* then.
|
|
140
|
+
*
|
|
141
|
+
* @default undefined The map asks the client for the matrix.
|
|
142
|
+
*/
|
|
143
|
+
readonly result?: MatrixResult | undefined;
|
|
144
|
+
}
|
|
145
|
+
/**
|
|
146
|
+
* A renderable resource, given either as an id to fetch or as a specification already held.
|
|
147
|
+
*
|
|
148
|
+
* Both forms exist because both are real. An application that has just read an itinerary
|
|
149
|
+
* detail already holds its specification, and making it pass an id would buy a second round
|
|
150
|
+
* trip for bytes it has in hand; an application that only knows an id should not have to
|
|
151
|
+
* learn which endpoint answers a specification. `null` clears the slot.
|
|
152
|
+
*/
|
|
153
|
+
type Renderable = string | TileSpecification | null;
|
|
154
|
+
/** A camera position. Every field is optional; the ones omitted are left where they are. */
|
|
155
|
+
interface CameraPose {
|
|
156
|
+
readonly center?: [number, number] | undefined;
|
|
157
|
+
readonly zoom?: number | undefined;
|
|
158
|
+
readonly bearing?: number | undefined;
|
|
159
|
+
readonly pitch?: number | undefined;
|
|
160
|
+
}
|
|
161
|
+
/** The camera as it currently stands. Unlike `CameraPose`, every field is present. */
|
|
162
|
+
interface Camera {
|
|
163
|
+
readonly center: [number, number];
|
|
164
|
+
readonly zoom: number;
|
|
165
|
+
readonly bearing: number;
|
|
166
|
+
readonly pitch: number;
|
|
167
|
+
}
|
|
168
|
+
/** A pin on the map, drawn with Mountaya's own glyph set. */
|
|
169
|
+
interface MarkerOptions {
|
|
170
|
+
/**
|
|
171
|
+
* Identifies the marker for `removeMarker`. Adding a second marker with an id in use replaces
|
|
172
|
+
* the first.
|
|
173
|
+
*/
|
|
174
|
+
readonly id: string;
|
|
175
|
+
/**
|
|
176
|
+
* Where the marker is pinned: a longitude and a latitude, the latitude from -90 to 90, and an
|
|
177
|
+
* altitude after them where the caller holds one, as a GeoJSON position carries it. A marker is
|
|
178
|
+
* drawn flat on the map, so the altitude is ignored.
|
|
179
|
+
*/
|
|
180
|
+
readonly lngLat: [number, number] | [number, number, number];
|
|
181
|
+
/** A glyph name the icon provider can draw. Falls back to a plain pin when it cannot. */
|
|
182
|
+
readonly glyph?: string | undefined;
|
|
183
|
+
readonly color?: string | undefined;
|
|
184
|
+
/** Rendered in a popup on click, as text. Never as markup: a marker label is data. */
|
|
185
|
+
readonly label?: string | undefined;
|
|
186
|
+
readonly onClick?: (() => void) | undefined;
|
|
187
|
+
/**
|
|
188
|
+
* An element to stand up instead of the glyph pin, built fresh each time the marker is built.
|
|
189
|
+
*
|
|
190
|
+
* The escape hatch for a marker this package cannot describe: a rotating bearing arrow, a
|
|
191
|
+
* profile cursor that carries its own chrome, a focus dot drawn to a video's design. Without
|
|
192
|
+
* it the only way to draw one is `new maplibregl.Marker(...).addTo(map.raw)`, which is a
|
|
193
|
+
* second marker lifecycle beside this one: `removeMarker` and `clearMarkers` cannot see it,
|
|
194
|
+
* and an id collision is undetectable.
|
|
195
|
+
*
|
|
196
|
+
* A factory rather than an element, because a marker is built again from what it holds:
|
|
197
|
+
* `render` runs at `addMarker`, and again at every `editMarker` of the id. Handed a live node
|
|
198
|
+
* the map could only re-attach the same one, which is the arrangement that breaks the moment
|
|
199
|
+
* a caller mutates it. A marker is DOM over the canvas, so a base-map switch leaves it as it is.
|
|
200
|
+
*
|
|
201
|
+
* `glyph` and `color` are ignored when this is set: the element IS the marker. `label` and
|
|
202
|
+
* `onClick` still apply, so a custom marker keeps the popup and the handler.
|
|
203
|
+
*/
|
|
204
|
+
readonly render?: (() => HTMLElement) | undefined;
|
|
205
|
+
}
|
|
206
|
+
/**
|
|
207
|
+
* FitBoundsOptions is how `MountayaMap.fitBounds` frames a box, and what `fit` frames a drawing
|
|
208
|
+
* with: `padding` in pixels, on every side or per side, `maxZoom` the zoom the camera stops at,
|
|
209
|
+
* and `duration` the ease in milliseconds. A member left out, or stated as `undefined`, takes
|
|
210
|
+
* MapLibre's own default.
|
|
211
|
+
*/
|
|
212
|
+
interface FitBoundsOptions {
|
|
213
|
+
readonly padding?: FitBoundsPadding | number | undefined;
|
|
214
|
+
readonly maxZoom?: number | undefined;
|
|
215
|
+
readonly duration?: number | undefined;
|
|
216
|
+
}
|
|
217
|
+
/**
|
|
218
|
+
* The zoom window a layer draws over, as MapLibre spells it.
|
|
219
|
+
*
|
|
220
|
+
* `minzoom`/`maxzoom` rather than `min`/`max` because those are the names a layer carries in
|
|
221
|
+
* a style document, so a caller reading one off `map.raw.getLayer(id)` passes it straight in.
|
|
222
|
+
* A tile specification states the same window per source and is accepted in its place (see
|
|
223
|
+
* `MountayaMap.easeIntoZoomRange`).
|
|
224
|
+
*/
|
|
225
|
+
interface ZoomRange {
|
|
226
|
+
readonly minzoom: number;
|
|
227
|
+
readonly maxzoom: number;
|
|
228
|
+
}
|
|
229
|
+
/**
|
|
230
|
+
* What a slot has just put on the map, handed to `onMounted`.
|
|
231
|
+
*
|
|
232
|
+
* The ids are the payload, not a convenience. A manifest assigns layer and source ids with a
|
|
233
|
+
* per-source prefix that is not stable across specifications, so a caller cannot spell them
|
|
234
|
+
* in advance, and they are exactly what a companion layer needs: the anchor to draw against
|
|
235
|
+
* and the targets to re-assert a paint fold on. The specification travels with them so a
|
|
236
|
+
* handler shared across slots can read the source windows without holding the bytes twice.
|
|
237
|
+
*/
|
|
238
|
+
interface MountedSpecification {
|
|
239
|
+
/** The specification whose layers were just added. */
|
|
240
|
+
readonly specification: TileSpecification;
|
|
241
|
+
/** The layer ids now live, in the order they were added. */
|
|
242
|
+
readonly layerIds: readonly string[];
|
|
243
|
+
/** The source ids now registered. */
|
|
244
|
+
readonly sourceIds: readonly string[];
|
|
245
|
+
}
|
|
246
|
+
/** Options every specification mount accepts. */
|
|
247
|
+
interface MountOptions {
|
|
248
|
+
/**
|
|
249
|
+
* Called once the slot's layers are live, and again after every style swap replays them.
|
|
250
|
+
*
|
|
251
|
+
* The seam for content this package draws and a caller has to finish: a companion layer
|
|
252
|
+
* added with `MountayaMap.addLayer`, or a paint fold written straight onto the ids the
|
|
253
|
+
* manifest assigned. A paint fold is destroyed by `setStyle` and `setTerrain`, which rebuild
|
|
254
|
+
* the style from nothing and draw the slot's layers again as the manifest writes them, and a
|
|
255
|
+
* companion layer is carried over as `MountayaMap.addLayer` states, where the hook's own add
|
|
256
|
+
* finds it. Without a hook that fires on the replay too, a base-map switch leaves the mount
|
|
257
|
+
* whole and the caller's fold gone, silently.
|
|
258
|
+
*
|
|
259
|
+
* A mount made while a base-map switch is still fetching its document is drawn at once on
|
|
260
|
+
* the base map still shown when that base map reports loaded, which is where the reader sees
|
|
261
|
+
* it, so the hook runs then and again once the switch replays it. While that base map's own
|
|
262
|
+
* tiles are still loading the mount waits for the switch to end, and is drawn on the style
|
|
263
|
+
* the switch leaves on the map. A switch whose style does not arrive replays nothing that
|
|
264
|
+
* stayed drawn, and runs no hook for it.
|
|
265
|
+
*
|
|
266
|
+
* May return a promise, which is awaited: a swap resolves when the map is finished, folds
|
|
267
|
+
* included. A rejection at the call site rejects that `set` or `add`, since the caller is
|
|
268
|
+
* there to catch it. A rejection during a replay is emitted on the map's `error` event
|
|
269
|
+
* instead: one caller's fold must not be able to abort the replay of every other slot.
|
|
270
|
+
*/
|
|
271
|
+
readonly onMounted?: ((mounted: MountedSpecification) => void | Promise<void>) | undefined;
|
|
272
|
+
}
|
|
273
|
+
/**
|
|
274
|
+
* A feature a point query found: a GeoJSON feature, with the layer that drew it and the source
|
|
275
|
+
* layer it was read from.
|
|
276
|
+
*
|
|
277
|
+
* `id` is the feature's own, where the source gives it one. `properties` holds the ones that are a
|
|
278
|
+
* string, a number, a boolean or null. A feature two layers drew, a line and the casing under it,
|
|
279
|
+
* is answered once for each, each naming its own `layer`.
|
|
280
|
+
*/
|
|
281
|
+
interface QueriedFeature extends Feature<Geometry, Record<string, boolean | number | string | null>> {
|
|
282
|
+
/** The id of the layer that drew the feature. */
|
|
283
|
+
readonly layer: string;
|
|
284
|
+
/** The source layer the feature was read from, where its layer reads a vector source. */
|
|
285
|
+
readonly sourceLayer?: string | undefined;
|
|
286
|
+
}
|
|
287
|
+
/**
|
|
288
|
+
* The events a map emits.
|
|
289
|
+
*
|
|
290
|
+
* Deliberately smaller than MapLibre's own set. These are the ones expressed in Mountaya's
|
|
291
|
+
* vocabulary: a feature rather than a rendered layer, an access refusal rather than an HTTP
|
|
292
|
+
* status. Everything MapLibre emits stays reachable on `map.raw`.
|
|
293
|
+
*/
|
|
294
|
+
interface MountayaMapEvents {
|
|
295
|
+
/**
|
|
296
|
+
* A click anywhere on the map that no edit in progress took.
|
|
297
|
+
*
|
|
298
|
+
* Told once every listener of the gesture on the renderer has run, a microtask after it and
|
|
299
|
+
* inside the same task. A click an edit engine handled, such as one that places a vertex,
|
|
300
|
+
* marks the renderer's event with `preventDefault`, and is told to nobody here: neither as
|
|
301
|
+
* `click` nor as `featureclick`.
|
|
302
|
+
*
|
|
303
|
+
* `lngLat` is `[longitude, latitude]`, the longitude within [-180, 180] over every copy of the
|
|
304
|
+
* world the camera shows. `point` is the pixel, as the renderer reads it.
|
|
305
|
+
*/
|
|
306
|
+
click: {
|
|
307
|
+
readonly lngLat: [number, number];
|
|
308
|
+
readonly point: [number, number];
|
|
309
|
+
};
|
|
310
|
+
/**
|
|
311
|
+
* The camera as it changes: continuously through a pan, zoom, rotate or pitch, and once
|
|
312
|
+
* per rendered frame for as long as the gesture or the animation lasts.
|
|
313
|
+
*
|
|
314
|
+
* What a compass needle, a scale bar or a zoom readout follows: anything drawn from the
|
|
315
|
+
* pose has to arrive per frame or it sits still through the drag and then snaps. A handler
|
|
316
|
+
* here runs on the render path, so compare before acting on it: the four fields rarely
|
|
317
|
+
* change together, and a pan leaves three of them exactly where they were.
|
|
318
|
+
*/
|
|
319
|
+
move: Camera;
|
|
320
|
+
/**
|
|
321
|
+
* The camera settled after a pan, zoom, rotate or pitch.
|
|
322
|
+
*
|
|
323
|
+
* Where anything a frame cannot afford belongs: a query scoped to the visible area, a URL
|
|
324
|
+
* the pose is written into, a fetch for what is now on screen. The payload is the same as
|
|
325
|
+
* `move`, so the choice between the two is only ever about what the handler costs.
|
|
326
|
+
*/
|
|
327
|
+
moveend: Camera;
|
|
328
|
+
/**
|
|
329
|
+
* The zoom window changed: the lowest or the highest zoom the camera may reach, as
|
|
330
|
+
* `getZoomLimits` now answers it.
|
|
331
|
+
*
|
|
332
|
+
* Told once per change, by whichever caller made it (`setConstraints` on the map or on a client
|
|
333
|
+
* over it), and never for a call that left the window where it was. A window that leaves the
|
|
334
|
+
* camera outside it moves the camera to its nearest limit, which `move` and `moveend` tell; this
|
|
335
|
+
* tells a window that moved with the camera standing still, the one change a zoom button gated
|
|
336
|
+
* on the limits would otherwise miss.
|
|
337
|
+
*/
|
|
338
|
+
zoomlimitschange: {
|
|
339
|
+
readonly max: number;
|
|
340
|
+
readonly min: number;
|
|
341
|
+
};
|
|
342
|
+
/**
|
|
343
|
+
* A click that landed on one of the map's own features, told as `click` is and under the same
|
|
344
|
+
* rule, its longitude within [-180, 180].
|
|
345
|
+
*/
|
|
346
|
+
featureclick: {
|
|
347
|
+
readonly lngLat: [number, number];
|
|
348
|
+
readonly features: readonly QueriedFeature[];
|
|
349
|
+
};
|
|
350
|
+
/**
|
|
351
|
+
* The pointer moved over the map: `features` holds the itinerary's features under it, routed
|
|
352
|
+
* lines and waypoints, topmost first, and is empty while the pointer is off them and as it
|
|
353
|
+
* leaves the canvas.
|
|
354
|
+
*
|
|
355
|
+
* The itinerary's features alone, where `featureclick` reports every feature the map drew: a hover
|
|
356
|
+
* follows a route, and a hit-test across every overlay and point of interest the map holds
|
|
357
|
+
* would cost each pointer frame a query no listener reads. `poisAt` and `zonesAt` answer for
|
|
358
|
+
* the other layers at a point of your choosing.
|
|
359
|
+
*
|
|
360
|
+
* Reported at most once per animation frame, for the position the pointer ended the frame on,
|
|
361
|
+
* and for as long as the pointer moves, so a handler hears a feature again on every frame the
|
|
362
|
+
* pointer is still over it. Nothing is asked of the renderer while no handler is attached. The
|
|
363
|
+
* longitude is within [-180, 180].
|
|
364
|
+
*/
|
|
365
|
+
featurehover: {
|
|
366
|
+
readonly lngLat: [number, number];
|
|
367
|
+
readonly features: readonly QueriedFeature[];
|
|
368
|
+
};
|
|
369
|
+
/**
|
|
370
|
+
* A right-click, or a long press, anywhere on the map that no edit in progress took. Told as
|
|
371
|
+
* `click` is: after every listener of the gesture on the renderer has run, and never for one
|
|
372
|
+
* an edit engine marked with `preventDefault`. The longitude is within [-180, 180].
|
|
373
|
+
*/
|
|
374
|
+
contextmenu: {
|
|
375
|
+
readonly lngLat: [number, number];
|
|
376
|
+
readonly point: [number, number];
|
|
377
|
+
};
|
|
378
|
+
/**
|
|
379
|
+
* The API refused one of the map's own requests for want of access: a 401, a 402 or a 403.
|
|
380
|
+
*
|
|
381
|
+
* `status` is the refusal and `url` the address refused: a tile, a sprite, a glyph or a style
|
|
382
|
+
* MapLibre asked for, or the layers manifest the map reads for itself when it is built with no
|
|
383
|
+
* `style`. A 401 is a credential the API does not accept (a session token that expired), a 402
|
|
384
|
+
* an entitlement the agreement does not include, and a 403 a resource the credential may not
|
|
385
|
+
* read. To add an entitlement to the agreement, talk to us at https://mountaya.com/en/contact/.
|
|
386
|
+
*
|
|
387
|
+
* Emitted rather than thrown because it arrives asynchronously, from inside MapLibre's own
|
|
388
|
+
* fetching or from the read the constructor started, with no call of yours on the stack to
|
|
389
|
+
* reject. Entitlement itself is not this package's business: the API refuses and this
|
|
390
|
+
* reports that it did, so an application can show its own notice of what the credential or
|
|
391
|
+
* the agreement does not cover instead of a map that quietly stays blank. A refusal is never
|
|
392
|
+
* also reported as `error`.
|
|
393
|
+
*
|
|
394
|
+
* A 401 or a 403 answering a request that left with a session token the client has replaced
|
|
395
|
+
* since, or under the key alone before the client's first token arrived, is neither emitted nor
|
|
396
|
+
* reported as `error`, and starts no refusal: it refuses a credential the map has given up, and
|
|
397
|
+
* the next request carries the one the client sends now. A style refused so is asked for again.
|
|
398
|
+
* A refusal of a request a `transformRequest` of your own sent is emitted as it is, since the
|
|
399
|
+
* map cannot read what that transform attaches, and so is a refusal of a share-link visitor's
|
|
400
|
+
* cookie, which the browser holds out of the page's reach.
|
|
401
|
+
*
|
|
402
|
+
* The first can arrive before the style has loaded, so attach the handler as soon as the map
|
|
403
|
+
* is built. An event emitted while no handler is attached is not kept.
|
|
404
|
+
*/
|
|
405
|
+
accessrequired: {
|
|
406
|
+
readonly status: number;
|
|
407
|
+
readonly url: string;
|
|
408
|
+
};
|
|
409
|
+
/**
|
|
410
|
+
* The last refusal of access that stood has ended: what `accessrequired` reported is over, and
|
|
411
|
+
* `isAccessRequired` answers false.
|
|
412
|
+
*
|
|
413
|
+
* A refusal stands for the source it came from until a tile of that source loads, so one tile
|
|
414
|
+
* sent with a session token that had just expired is answered by the next tile sent with the
|
|
415
|
+
* fresh one, while an agreement that does not include what a source draws keeps it refused
|
|
416
|
+
* however many tiles load beside it. A source that leaves the style takes its refusal with it,
|
|
417
|
+
* which the next tile to load from any source, or the next style, finds. A refusal that names
|
|
418
|
+
* no source, of a style, a sprite or the layers manifest, ends as the next style loads.
|
|
419
|
+
*
|
|
420
|
+
* Told once as the last standing refusal ends, and again only after a later refusal has ended in
|
|
421
|
+
* turn. It is the event that lowers a notice `accessrequired` raised.
|
|
422
|
+
*/
|
|
423
|
+
accessrestored: undefined;
|
|
424
|
+
/**
|
|
425
|
+
* What the map draws from its tile slots, or shows of it, changed: an itinerary, a collection,
|
|
426
|
+
* an overlay, an enrichment, a named specification or a toggle was asked for, replaced or
|
|
427
|
+
* cleared; a layer of the caller's own was added, removed or placed at another rank; or a
|
|
428
|
+
* layer or a key was hidden or shown.
|
|
429
|
+
*
|
|
430
|
+
* It is the signal to read the map again: `drawnLayerKeys`, `layerIdsForKey`, `getEnrichments`,
|
|
431
|
+
* `getSpecifications`, `isLayerVisible` and `isKeyVisible` already answer the change as a
|
|
432
|
+
* handler hears of it. A getter that answers a list answers one frozen array from a change
|
|
433
|
+
* to the next, so read twice in between it answers the same array, which makes the event and
|
|
434
|
+
* a getter the pair `useSyncExternalStore` takes.
|
|
435
|
+
*
|
|
436
|
+
* Emitted once per change, by whichever caller made it, and never for a call that changed
|
|
437
|
+
* nothing: a slot restating the specification or the overlay it holds, a clear of an empty
|
|
438
|
+
* slot, a layer hidden twice. A key hidden across several layers is one change. A slot taken
|
|
439
|
+
* from a call still waiting on the style, by a call that has yet to load, is a change, and so
|
|
440
|
+
* is the slot given back as that call is withdrawn.
|
|
441
|
+
*
|
|
442
|
+
* A slot is reported as it is asked for, so its layers may still be waiting on the style:
|
|
443
|
+
* `onMounted` is the hook that follows them onto the map. A base-map switch replays the same
|
|
444
|
+
* content and is reported as `styleload` alone. A preview, a highlight, an emphasis, a Data
|
|
445
|
+
* API result, a marker and the Street View coverage are not reported: they move with the
|
|
446
|
+
* pointer or a gesture, and none of those getters reads them.
|
|
447
|
+
*/
|
|
448
|
+
displaychange: undefined;
|
|
449
|
+
/**
|
|
450
|
+
* What `getLayers` answers changed: a read of the layers manifest landed, or
|
|
451
|
+
* `setLayersOrganization` moved the studio scope and dropped the manifest held, which
|
|
452
|
+
* `getLayers` then answers as undefined until the new scope's read lands.
|
|
453
|
+
*
|
|
454
|
+
* It is the signal for a picker to read the catalogue again. A read that lands after the scope
|
|
455
|
+
* moved is never told: what it holds is another scope's catalogue.
|
|
456
|
+
*/
|
|
457
|
+
layerschange: undefined;
|
|
458
|
+
/**
|
|
459
|
+
* A style finished loading: the one the map is built with, the one each base-map switch
|
|
460
|
+
* brings in, and the one the map had as it returns with a lost WebGL context. A switch whose
|
|
461
|
+
* style does not arrive reports none.
|
|
462
|
+
*/
|
|
463
|
+
styleload: undefined;
|
|
464
|
+
/**
|
|
465
|
+
* A failure with no call of yours on the stack to reject: an error MapLibre reported (a style
|
|
466
|
+
* that does not parse, a tile the server failed on), the base map the constructor asked for
|
|
467
|
+
* not arriving (the layers manifest unreachable, a `terrain` it does not list), or the canvas
|
|
468
|
+
* losing its WebGL context. A refusal of access is `accessrequired` and never arrives here.
|
|
469
|
+
*
|
|
470
|
+
* A lost context arrives once per loss, as a `MountayaElementsError` whose `cause` is the
|
|
471
|
+
* browser's own `webglcontextlost` event. The canvas is blank from then until the browser
|
|
472
|
+
* restores the context, which MapLibre redraws on by itself. What the map is asked to draw or
|
|
473
|
+
* to clear meanwhile is on the style once the context is back, as `styleload` reports it.
|
|
474
|
+
*
|
|
475
|
+
* Attach the handler as soon as the map is built, for the reason `accessrequired` gives.
|
|
476
|
+
*/
|
|
477
|
+
error: {
|
|
478
|
+
readonly error: Error;
|
|
479
|
+
};
|
|
480
|
+
}
|
|
481
|
+
/** MountayaMapEvent names an event a map emits, as {@link MountayaMapEvents} keys it. */
|
|
482
|
+
type MountayaMapEvent = keyof MountayaMapEvents;
|
|
483
|
+
/** Unsubscribes a listener. Returned by `on` so a caller never needs the handler again. */
|
|
484
|
+
type Unsubscribe = () => void;
|
|
485
|
+
/**
|
|
486
|
+
* The paint a caller may state for a raster a map adds on its behalf.
|
|
487
|
+
*
|
|
488
|
+
* Spelled out rather than aliased to MapLibre's `RasterLayerSpecification["paint"]`, which is
|
|
489
|
+
* the wider set and includes the properties that would break the layer's contract with the
|
|
490
|
+
* rest of the map: `raster-fade-duration`, whose zero is the reason the coverage paints
|
|
491
|
+
* at all under draped terrain, and the source-driven properties a caller has no source to
|
|
492
|
+
* drive. The members here are the ones that describe how an already-correct raster should LOOK.
|
|
493
|
+
*/
|
|
494
|
+
interface RasterPaint {
|
|
495
|
+
readonly "raster-brightness-max"?: number | undefined;
|
|
496
|
+
readonly "raster-brightness-min"?: number | undefined;
|
|
497
|
+
readonly "raster-contrast"?: number | undefined;
|
|
498
|
+
readonly "raster-hue-rotate"?: number | undefined;
|
|
499
|
+
readonly "raster-saturation"?: number | undefined;
|
|
500
|
+
}
|
|
501
|
+
/**
|
|
502
|
+
* ZoneEditMode is one zone authoring mode: a member of `ZONE_MODES`, the zone vocabulary
|
|
503
|
+
* `./data` publishes, under the name a reader of an edit session reaches for.
|
|
504
|
+
*
|
|
505
|
+
* The segment and waypoint vocabularies, `SEGMENT_EDIT_MODES` and `WAYPOINT_EDIT_MODES`, are
|
|
506
|
+
* declared in `./data` beside `ZONE_MODES`.
|
|
507
|
+
*/
|
|
508
|
+
type ZoneEditMode = ZoneMode;
|
|
509
|
+
/**
|
|
510
|
+
* SegmentEditOptions starts an editable segment: the mode that picks the engine, the segment the
|
|
511
|
+
* edit stands for, the handles it opens on, the pins that keep it continuous with its neighbours
|
|
512
|
+
* and the colour it is drawn in. The whole edit render (the draggable handles and the routed
|
|
513
|
+
* line) is drawn in `color`, so the editable copy matches the segment it stands in for while its
|
|
514
|
+
* tile copy is hidden.
|
|
515
|
+
*/
|
|
516
|
+
interface SegmentEditOptions {
|
|
517
|
+
/**
|
|
518
|
+
* The slug of the activity the edit routes for: the itinerary's, which every segment shares.
|
|
519
|
+
*
|
|
520
|
+
* A directions edit requires it, and its engine throws `MountayaElementsError` from its
|
|
521
|
+
* constructor when it is missing or empty. The freehand engine hands it to `analyzeFn`.
|
|
522
|
+
*/
|
|
523
|
+
activitySlug?: string | undefined;
|
|
524
|
+
/**
|
|
525
|
+
* The elevation/analysis resolver the freehand engine asks for the drawn line's profile, the
|
|
526
|
+
* linestring twin of `routeFn`, so the live elevation panel reflects a freehand edit. The
|
|
527
|
+
* directions engine ignores it and reads `routeFn`.
|
|
528
|
+
*
|
|
529
|
+
* @default undefined, and a freehand edit resolves no profile.
|
|
530
|
+
*/
|
|
531
|
+
analyzeFn?: SegmentAnalyzeFn | undefined;
|
|
532
|
+
/**
|
|
533
|
+
* The colour the edit is drawn in, as `#rrggbb` or `#rgb` (hexadecimal digits, either case),
|
|
534
|
+
* the two forms the API stores. `#rgb` is drawn as `#rrggbb`, each digit twice. Any other form
|
|
535
|
+
* is refused by name as the edit opens and as its style is set.
|
|
536
|
+
*/
|
|
537
|
+
color: string;
|
|
538
|
+
/**
|
|
539
|
+
* The id of the segment the edit stands for. The edit feature is keyed on it, so a draft maps
|
|
540
|
+
* back to its segment without a translation.
|
|
541
|
+
*/
|
|
542
|
+
featureId: string;
|
|
543
|
+
/**
|
|
544
|
+
* The model the segment is edited under, which picks the engine: `directions` routes between
|
|
545
|
+
* vias, `linestring` draws a freehand line.
|
|
546
|
+
*/
|
|
547
|
+
mode: SegmentEditMode;
|
|
548
|
+
/**
|
|
549
|
+
* onViaCapRefused fires when an interactive add is declined because the draft
|
|
550
|
+
* already holds the router's maximum vias. The engine reverts the add silently
|
|
551
|
+
* (routing an over-cap set would floor to NoRoute and clear the painted line), so
|
|
552
|
+
* without this seam the click is indistinguishable from a missed one. Directions
|
|
553
|
+
* only; the freehand engine has no cap and never calls it.
|
|
554
|
+
*/
|
|
555
|
+
onViaCapRefused?: (() => void) | undefined;
|
|
556
|
+
/**
|
|
557
|
+
* The position the edit's last via is held on, `[longitude, latitude]`: the first via of the
|
|
558
|
+
* segment that follows, for an insert, so the insert meets both neighbours without moving either.
|
|
559
|
+
* An edit with no successor (an append, a reshape) leaves it out.
|
|
560
|
+
*
|
|
561
|
+
* An engine throws `MountayaElementsError` from its constructor for a pin no map can place.
|
|
562
|
+
* The directions engine takes two finite numbers with a latitude from -90 to 90, and names
|
|
563
|
+
* the member and the value. The freehand engine draws the pin as a via, so it holds it to
|
|
564
|
+
* what {@link SegmentEditOptions.seedVias} states of a line.
|
|
565
|
+
*
|
|
566
|
+
* @default No pin: the end is the user's to drag.
|
|
567
|
+
*/
|
|
568
|
+
pinnedEnd?: Position | undefined;
|
|
569
|
+
/**
|
|
570
|
+
* The position the edit's first via is held on, `[longitude, latitude]`: the last via of the
|
|
571
|
+
* segment before it, which keeps the chain continuous. The first segment leaves it out. It is
|
|
572
|
+
* read as {@link SegmentEditOptions.pinnedEnd} is.
|
|
573
|
+
*
|
|
574
|
+
* @default No pin: the start is the user's to drag.
|
|
575
|
+
*/
|
|
576
|
+
pinnedStart?: Position | undefined;
|
|
577
|
+
/**
|
|
578
|
+
* The router the directions engine computes the routed line from the vias with. A directions
|
|
579
|
+
* edit requires it, and its engine throws `MountayaElementsError` from its constructor when it
|
|
580
|
+
* is not a function. The freehand engine ignores it.
|
|
581
|
+
*/
|
|
582
|
+
routeFn?: SegmentRouteFn | undefined;
|
|
583
|
+
/**
|
|
584
|
+
* The handles the edit opens on. Both engines throw `MountayaElementsError` from their
|
|
585
|
+
* constructor for a via no map can place, naming it by its index.
|
|
586
|
+
*
|
|
587
|
+
* The freehand engine draws each via as its longitude and latitude alone, at nine decimals,
|
|
588
|
+
* and throws the same error for a line its drawing library refuses (a longitude past 180). It
|
|
589
|
+
* throws it, naming both members, for a line of two vias or more that does not start at
|
|
590
|
+
* `pinnedStart` or end at `pinnedEnd`, and for two pins that differ with a shorter line: the
|
|
591
|
+
* positions are compared as they are drawn. The directions engine opens a line whose head or
|
|
592
|
+
* tail is further from its pin than the backend's tolerance with the pin in its place.
|
|
593
|
+
*/
|
|
594
|
+
seedVias?: Position[] | undefined;
|
|
595
|
+
}
|
|
596
|
+
/**
|
|
597
|
+
* DraftPhase says whether a draft is a frame of a gesture still under way or a whole change.
|
|
598
|
+
*
|
|
599
|
+
* - `live`: one frame of a drag, while the pointer is still down. The next frame replaces it,
|
|
600
|
+
* so a subscriber previews it (the shape on the map, the live elevation profile) and records
|
|
601
|
+
* nothing.
|
|
602
|
+
* - `settled`: a whole change. The draft that closes a drag carries it, and so does every
|
|
603
|
+
* discrete edit (a click that adds a point) and every programmatic write (a draft applied, an
|
|
604
|
+
* undo or redo restore, a resolved route). A history subscriber records one step per settled
|
|
605
|
+
* draft its own gesture produced, which makes a drag of any length one undo step.
|
|
606
|
+
*
|
|
607
|
+
* It says nothing about who made the change; {@link SegmentDraft.programmatic} does. A
|
|
608
|
+
* programmatic draft is always `settled`, and a subscriber skips its own programmatic echo in
|
|
609
|
+
* either phase.
|
|
610
|
+
*/
|
|
611
|
+
type DraftPhase = "live" | "settled";
|
|
612
|
+
/**
|
|
613
|
+
* SegmentDraft is the current state of the segment being edited, read back for a re-route
|
|
614
|
+
* (directions) or a persist.
|
|
615
|
+
*/
|
|
616
|
+
interface SegmentDraft {
|
|
617
|
+
/**
|
|
618
|
+
* Whether the draft is one frame of a drag (`live`) or a whole change (`settled`): the draft
|
|
619
|
+
* that closes a drag and every discrete or programmatic change. See {@link DraftPhase}. An engine
|
|
620
|
+
* sets it on every draft it emits.
|
|
621
|
+
*/
|
|
622
|
+
phase: DraftPhase;
|
|
623
|
+
/**
|
|
624
|
+
* Whether the draft arrived programmatically (a draft applied, an undo or redo restore, a route
|
|
625
|
+
* re-apply) rather than from an interactive drag or insert, so a subscriber re-routes on an
|
|
626
|
+
* interactive change and skips its own programmatic echo rather than looping.
|
|
627
|
+
*/
|
|
628
|
+
programmatic: boolean;
|
|
629
|
+
/**
|
|
630
|
+
* The latest `routeFn` response the engine resolved for these vias (the 3D geometry, the
|
|
631
|
+
* elevation summary and the surface, way-type and slope analysis), so a downstream consumer such
|
|
632
|
+
* as the live elevation panel sees the freshly routed metrics without a second round-trip. Null
|
|
633
|
+
* when no route resolves (a below-floor via count, a `routeFn` error), undefined when the engine
|
|
634
|
+
* emits a vias-only draft.
|
|
635
|
+
*/
|
|
636
|
+
route?: SegmentRoute | null | undefined;
|
|
637
|
+
/**
|
|
638
|
+
* The editable handle coordinates: the via array in directions, the line vertices in freehand.
|
|
639
|
+
*/
|
|
640
|
+
vias: Position[];
|
|
641
|
+
}
|
|
642
|
+
/**
|
|
643
|
+
* SegmentViaPromptEvent is a request to ASK the user what a click on an existing
|
|
644
|
+
* handle should do, emitted instead of acting on it. Clicking a handle is
|
|
645
|
+
* ambiguous (a user closing a loop wants to route through that point again,
|
|
646
|
+
* while another wants it gone) and a segment edit has no undo affordance on the
|
|
647
|
+
* map itself, so neither reading may be assumed. The engine suppresses its own
|
|
648
|
+
* destructive default, emits this, and waits: the host resolves it by rewriting
|
|
649
|
+
* the draft (remove the handle, or append its coordinate so the line passes
|
|
650
|
+
* through it a second time) or by dismissing it.
|
|
651
|
+
*
|
|
652
|
+
* It is the EVENT, not the open prompt: `@mountaya/studio`'s `SegmentViaPrompt` is what the
|
|
653
|
+
* studio's store holds once one is open, and it carries a third field: `point`, the container
|
|
654
|
+
* pixel the popup anchors at. An engine cannot supply that. It knows the draft and the map, not
|
|
655
|
+
* where a host chose to mount its surface, so the projection belongs to whoever opens the
|
|
656
|
+
* prompt. The open prompt is assignable to the event and the event to no prompt, so a value
|
|
657
|
+
* without the pixel never stands where the pixel is read.
|
|
658
|
+
*/
|
|
659
|
+
interface SegmentViaPromptEvent {
|
|
660
|
+
/**
|
|
661
|
+
* The handle's position in the current draft coordinates, which a host rewrites the draft at.
|
|
662
|
+
*/
|
|
663
|
+
index: number;
|
|
664
|
+
/**
|
|
665
|
+
* Where the handle sits, `[longitude, latitude]`, so a surface can anchor its prompt at the
|
|
666
|
+
* handle without querying the map again.
|
|
667
|
+
*/
|
|
668
|
+
lngLat: [number, number];
|
|
669
|
+
}
|
|
670
|
+
/**
|
|
671
|
+
* WaypointDraftSnapshot is the engine-rendered shape of an active waypoint
|
|
672
|
+
* draft: the dropped coordinate the marker sits at and the icon + color the
|
|
673
|
+
* symbol layer paints in. It is what an engine reads back when an undo or redo restores a
|
|
674
|
+
* prior draft, and what applying a draft accepts.
|
|
675
|
+
*/
|
|
676
|
+
interface WaypointDraftSnapshot {
|
|
677
|
+
/** The colour the marker is painted in. */
|
|
678
|
+
color: string;
|
|
679
|
+
/** The glyph the marker shows. */
|
|
680
|
+
icon: string;
|
|
681
|
+
/** Where the marker sits, `[longitude, latitude]`. */
|
|
682
|
+
lngLat: [number, number];
|
|
683
|
+
}
|
|
684
|
+
/**
|
|
685
|
+
* WaypointPoiSeed is the POI capture context attached to a waypoint draft when its position came
|
|
686
|
+
* from a POI-pick. It rides through the commit so the persisted waypoint records its provenance;
|
|
687
|
+
* a `point`-mode draft carries null.
|
|
688
|
+
*
|
|
689
|
+
* This is the shape's one declaration. A package that validates it at a boundary states a
|
|
690
|
+
* schema for it (`@mountaya/studio` parses it as `waypointPoiSeedSchema`), and the interface is
|
|
691
|
+
* exported so that schema can be held to it with `satisfies`: a member added on one side alone
|
|
692
|
+
* then fails to compile on the other.
|
|
693
|
+
*/
|
|
694
|
+
interface WaypointPoiSeed {
|
|
695
|
+
/**
|
|
696
|
+
* The OpenMapTiles category that resolved the click.
|
|
697
|
+
*
|
|
698
|
+
* A plain string rather than the `PoiCategory` union, deliberately. The studio parses this at
|
|
699
|
+
* the BUS boundary, where the value may arrive from an agent or from a tile whose category set
|
|
700
|
+
* has moved ahead of ours; narrowing it would reject a whole draft over a provenance field
|
|
701
|
+
* nobody reads for logic. A producer that resolves a real tile feature holds the strict type
|
|
702
|
+
* on its own side, and the narrowing is theirs to keep.
|
|
703
|
+
*/
|
|
704
|
+
category: string;
|
|
705
|
+
/** The picked feature's display name from the tile, null when the tile carries none. */
|
|
706
|
+
name: string | null;
|
|
707
|
+
/**
|
|
708
|
+
* The id of the tile feature the click resolved, as a string, or null when the tile carries none
|
|
709
|
+
* (an auto-emitted feature has no stable id).
|
|
710
|
+
*/
|
|
711
|
+
sourceFeatureId: string | null;
|
|
712
|
+
}
|
|
713
|
+
/**
|
|
714
|
+
* WaypointPoiCapture is the POI context an engine carries on a draft-change emission when the
|
|
715
|
+
* click hit a POI feature. A host reads it to re-seed icon + color + name from the POI's
|
|
716
|
+
* category contract: the last POI wins, so manual overrides are discarded on each fresh capture.
|
|
717
|
+
*
|
|
718
|
+
* It is {@link WaypointPoiSeed} narrowed on one field, and the narrowing is the whole
|
|
719
|
+
* difference between the two ends of this value. An engine reads the feature under the click
|
|
720
|
+
* off the tile, so its `category` IS a `PoiCategory` and saying so costs nothing. The seed the
|
|
721
|
+
* store parses is a plain string, because there the value may arrive from an agent or from a
|
|
722
|
+
* tile whose category set has moved ahead of the client's, and rejecting a whole draft over a
|
|
723
|
+
* provenance field nobody reads for logic would be the wrong trade.
|
|
724
|
+
*
|
|
725
|
+
* Expressed as an extension rather than as a second interface so the relation is the one that
|
|
726
|
+
* has to hold (a capture is assignable to a seed, never the reverse) and so a field added to
|
|
727
|
+
* the schema cannot be forgotten here.
|
|
728
|
+
*/
|
|
729
|
+
interface WaypointPoiCapture extends WaypointPoiSeed {
|
|
730
|
+
/** The OpenMapTiles category of the feature under the click, as the tile states it. */
|
|
731
|
+
category: DataSchema.PoiCategory;
|
|
732
|
+
}
|
|
733
|
+
/**
|
|
734
|
+
* WaypointEngineDraftChange is the discrete event a waypoint engine emits on each click that
|
|
735
|
+
* lands a placement.
|
|
736
|
+
*/
|
|
737
|
+
interface WaypointEngineDraftChange {
|
|
738
|
+
/** The position the click resolved to, `[longitude, latitude]`. */
|
|
739
|
+
lngLat: [number, number];
|
|
740
|
+
/**
|
|
741
|
+
* The POI the click captured: present only in `poi-pick` mode when a POI feature was under the
|
|
742
|
+
* click, and null otherwise.
|
|
743
|
+
*/
|
|
744
|
+
poiSeed: WaypointPoiCapture | null;
|
|
745
|
+
}
|
|
746
|
+
/**
|
|
747
|
+
* WaypointEditOptions starts an editable waypoint: the id its session is keyed on, the mode that
|
|
748
|
+
* picks the engine, and the glyph, colour and position the draft marker starts from, so the first
|
|
749
|
+
* paint matches the side panel's display.
|
|
750
|
+
*/
|
|
751
|
+
interface WaypointEditOptions {
|
|
752
|
+
/** The colour the draft marker is first painted in. */
|
|
753
|
+
initialColor: string;
|
|
754
|
+
/** The glyph the draft marker first shows. */
|
|
755
|
+
initialIcon: string;
|
|
756
|
+
/**
|
|
757
|
+
* The position the marker starts at, `[longitude, latitude]`: the saved coordinate on an
|
|
758
|
+
* `update` session, or `null` for a waypoint not placed yet, which a `create` session opens
|
|
759
|
+
* on and which shows no draft until the first click lands.
|
|
760
|
+
*
|
|
761
|
+
* An engine throws `MountayaElementsError` from its constructor, naming the member and the
|
|
762
|
+
* value, for a position no map can place: it takes two finite numbers with a latitude from
|
|
763
|
+
* -90 to 90.
|
|
764
|
+
*/
|
|
765
|
+
initialLngLat: [number, number] | null;
|
|
766
|
+
/**
|
|
767
|
+
* How the waypoint is placed, which picks the engine: `point` drops it at the next click, and
|
|
768
|
+
* `poi-pick` captures the POI feature under the click.
|
|
769
|
+
*/
|
|
770
|
+
mode: WaypointEditMode;
|
|
771
|
+
/**
|
|
772
|
+
* Told when the pointer moves onto a POI a click would capture (`true`) and when it moves
|
|
773
|
+
* off it (`false`). Read by a `poi-pick` edit alone.
|
|
774
|
+
*
|
|
775
|
+
* It rides on the options the edit begins with, so the host that begins the edit is the one
|
|
776
|
+
* told, at the call site that began it. The engine reaches no element of the page for it:
|
|
777
|
+
* what the signal becomes (a tooltip's second line, an attribute, a store slot) is the
|
|
778
|
+
* host's to write.
|
|
779
|
+
*
|
|
780
|
+
* It is told of changes only, starting from `false`, at most once per animation frame, and
|
|
781
|
+
* of `false` when the edit ends over a POI. A handler that throws stops neither the edit nor
|
|
782
|
+
* its teardown: its error is handed to the runtime on a microtask.
|
|
783
|
+
*
|
|
784
|
+
* @default undefined, and the edit follows no pointer move for it.
|
|
785
|
+
*/
|
|
786
|
+
onPoiHoverChange?: ((isOverPoi: boolean) => void) | undefined;
|
|
787
|
+
/**
|
|
788
|
+
* The id the session is keyed on: a freshly generated client id on a `create`, the waypoint's
|
|
789
|
+
* own id on an `update`.
|
|
790
|
+
*/
|
|
791
|
+
waypointId: string;
|
|
792
|
+
}
|
|
793
|
+
/**
|
|
794
|
+
* ZoneEditOptions starts an editable zone: the primitive it is drawn as, the zone it stands for,
|
|
795
|
+
* the shape it opens on and the colour it is drawn in. `color` is the level color the whole
|
|
796
|
+
* draft renders in (its area + handles), resolved from the zone's level by the caller through
|
|
797
|
+
* zoneLevelColors so the editable copy matches the level it stands for. `seedGeometry` is left
|
|
798
|
+
* out for a fresh create, which has no shape until the first draw gesture lands.
|
|
799
|
+
*/
|
|
800
|
+
interface ZoneEditOptions {
|
|
801
|
+
/**
|
|
802
|
+
* The colour the edit is drawn in, as `#rrggbb` or `#rgb` (hexadecimal digits, either case),
|
|
803
|
+
* the two forms the API stores. `#rgb` is drawn as `#rrggbb`, each digit twice. Any other form
|
|
804
|
+
* is refused by name as the edit opens and as its style is set.
|
|
805
|
+
*/
|
|
806
|
+
color: string;
|
|
807
|
+
/**
|
|
808
|
+
* The id of the zone the edit stands for. The edit feature is keyed on it, so a draft maps back
|
|
809
|
+
* to its zone without a translation, as {@link SegmentEditOptions.featureId} does.
|
|
810
|
+
*/
|
|
811
|
+
featureId: string;
|
|
812
|
+
/**
|
|
813
|
+
* The geometric primitive the zone is drawn as, and so the TerraDraw draw mode the engine arms.
|
|
814
|
+
* It is immutable for the life of an edit (the engine never swaps draw modes mid-session), so a
|
|
815
|
+
* create that picks `circle` and an edit of a `freehand` zone each arm exactly one draw mode.
|
|
816
|
+
*/
|
|
817
|
+
mode: ZoneEditMode;
|
|
818
|
+
/**
|
|
819
|
+
* Told whether the edit's latest gesture was refused because the outline it would leave
|
|
820
|
+
* crosses itself, as it is stored or as the map draws it: `true` when a corner, a stretch of a
|
|
821
|
+
* freehand trace, a close or the removal of a corner is refused, and `false` when the next
|
|
822
|
+
* gesture is admitted or the edit ends. It is told only when that changes, so a pointer held
|
|
823
|
+
* where the outline would cross tells it once. A refused gesture changes nothing on the map,
|
|
824
|
+
* so this is how a host says why beside the pointer.
|
|
825
|
+
*
|
|
826
|
+
* A corner dragged where the outline would cross is held where it last stood and tells it
|
|
827
|
+
* nothing. Neither does a gesture on an outline too long to judge as it is drawn, which is
|
|
828
|
+
* left to the API to refuse when the zone is saved, nor a shape the host writes, which is drawn
|
|
829
|
+
* as written.
|
|
830
|
+
*/
|
|
831
|
+
onOutlineRefusedChange?: ((refused: boolean) => void) | undefined;
|
|
832
|
+
/**
|
|
833
|
+
* The shape the edit opens on. It is drawn with each position as its longitude and latitude
|
|
834
|
+
* alone, at nine decimals. A zone astride the antimeridian is one continuous ring, its
|
|
835
|
+
* longitudes running past 180 or below -180, and it is drawn and answered as that ring. The
|
|
836
|
+
* engine throws `MountayaElementsError` from its constructor for a shape its drawing library
|
|
837
|
+
* refuses (a hole, an open ring, a ring too wide to hold). A ring whose longitudes are within
|
|
838
|
+
* half a turn of each other is never too wide.
|
|
839
|
+
*/
|
|
840
|
+
seedGeometry?: Polygon | undefined;
|
|
841
|
+
}
|
|
842
|
+
/**
|
|
843
|
+
* ZoneDraft is the current state of the zone being edited, read back for a persist or a history
|
|
844
|
+
* snapshot.
|
|
845
|
+
*/
|
|
846
|
+
interface ZoneDraft {
|
|
847
|
+
/**
|
|
848
|
+
* The drawn shape, the Polygon every zone mode draws (circle, polygon, sector, sensor and
|
|
849
|
+
* freehand), which the backend stores in the `fills` source-layer. A null geometry is not
|
|
850
|
+
* representable: an engine emits a draft only once a shape exists, and reading the draft answers
|
|
851
|
+
* null before that. A shape astride the antimeridian is one continuous ring: its longitudes run
|
|
852
|
+
* past 180 or below -180, and no two consecutive positions sit a turn apart.
|
|
853
|
+
*/
|
|
854
|
+
geometry: Polygon;
|
|
855
|
+
/**
|
|
856
|
+
* The authoring mode the shape was drawn under. It is immutable for the session, so it rides
|
|
857
|
+
* every draft for the consumer that persists the zone.
|
|
858
|
+
*/
|
|
859
|
+
mode: ZoneEditMode;
|
|
860
|
+
/**
|
|
861
|
+
* `live` for each frame of a drag, `settled` for the draft that closes it, for a completed draw
|
|
862
|
+
* and for every programmatic write (see {@link DraftPhase}). An engine sets it on every draft it
|
|
863
|
+
* emits.
|
|
864
|
+
*/
|
|
865
|
+
phase: DraftPhase;
|
|
866
|
+
/**
|
|
867
|
+
* Whether the draft arrived programmatically (a draft applied, an undo or redo restore) rather
|
|
868
|
+
* than from an interactive draw or drag, so a history subscriber records its own interactive
|
|
869
|
+
* edits and skips its own programmatic echo rather than looping, as it does for
|
|
870
|
+
* {@link SegmentDraft.programmatic}.
|
|
871
|
+
*/
|
|
872
|
+
programmatic: boolean;
|
|
873
|
+
}
|
|
874
|
+
/**
|
|
875
|
+
* BoundaryEditOptions starts an editable boundary box: the named region an organization's embed
|
|
876
|
+
* geofence is made of. `color` paints the whole draft (its fill + outline), and `seedBbox` seeds
|
|
877
|
+
* an existing region so an edit opens on it; a fresh draw omits it and the surface starts empty.
|
|
878
|
+
* A seed that crosses the antimeridian is drawn up to the line from the side of its west edge,
|
|
879
|
+
* and one whose west edge is on the line is drawn whole from -180; the seed is not emitted, so
|
|
880
|
+
* the box as drawn reaches the host with the next change.
|
|
881
|
+
*
|
|
882
|
+
* The seam speaks {@link BoundingBox} rather than the safety-rule wire pair or a
|
|
883
|
+
* GeoJSON Polygon, so neither a drawing library's shape nor a wire shape leaks through it:
|
|
884
|
+
* a host converts once at its own boundary.
|
|
885
|
+
*/
|
|
886
|
+
interface BoundaryEditOptions {
|
|
887
|
+
/**
|
|
888
|
+
* The colour the edit is drawn in, as `#rrggbb` or `#rgb` (hexadecimal digits, either case),
|
|
889
|
+
* the two forms the API stores. `#rgb` is drawn as `#rrggbb`, each digit twice. Any other form
|
|
890
|
+
* is refused by name as the edit opens and as its style is set.
|
|
891
|
+
*/
|
|
892
|
+
color: string;
|
|
893
|
+
/** The id of the boundary the edit stands for, which the edit feature is keyed on. */
|
|
894
|
+
featureId: string;
|
|
895
|
+
/**
|
|
896
|
+
* The box the edit opens on, drawn at nine decimals. The engine throws
|
|
897
|
+
* `MountayaElementsError` from its constructor for a box its drawing library refuses, one
|
|
898
|
+
* that holds `NaN`. A box with an infinite longitude is drawn as wide as the whole world, and
|
|
899
|
+
* a latitude past the Web Mercator limit is drawn at the limit, as `normalizeBoundingBox`
|
|
900
|
+
* writes them. A box with no width or no height is drawn as it is.
|
|
901
|
+
*/
|
|
902
|
+
seedBbox?: BoundingBox | undefined;
|
|
903
|
+
}
|
|
904
|
+
/**
|
|
905
|
+
* BoundaryDraft is the current state of the boundary box being edited.
|
|
906
|
+
*/
|
|
907
|
+
interface BoundaryDraft {
|
|
908
|
+
/**
|
|
909
|
+
* The box, or null until a box exists and again after it is cleared for a redraw: a boundary
|
|
910
|
+
* editor is meaningfully empty, unlike a zone draft, which is only ever emitted once a shape has
|
|
911
|
+
* been drawn.
|
|
912
|
+
*/
|
|
913
|
+
bbox: BoundingBox | null;
|
|
914
|
+
/**
|
|
915
|
+
* `live` for each frame of a corner drag or a whole-box drag, and `settled` for the draft that
|
|
916
|
+
* closes it on release, for a completed draw, a clear and every programmatic write (see
|
|
917
|
+
* {@link DraftPhase}), so a subscriber records one undo step per drag.
|
|
918
|
+
*/
|
|
919
|
+
phase: DraftPhase;
|
|
920
|
+
/**
|
|
921
|
+
* Whether the draft arrived programmatically (a draft applied, a box written onto an empty
|
|
922
|
+
* surface) rather than from the user's own gesture, so a subscriber can skip its own echo, the
|
|
923
|
+
* same posture {@link ZoneDraft.programmatic} takes. The seed the edit opens on is not emitted.
|
|
924
|
+
*/
|
|
925
|
+
programmatic: boolean;
|
|
926
|
+
}
|
|
927
|
+
export { SuggestionsInput as $, ItineraryDrawOptions as A, MountedSpecification as B, DirectionsResult$1 as C, GeocodeResult$1 as D, GeocodeInput as E, MatrixMetric as F, QueriedFeature as G, PoiCategory as H, MatrixResult$1 as I, RouteHazard as J, RasterPaint as K, MountOptions as L, MarkerOptions as M, MatrixDrawOptions as N, IsochronesInput as O, MatrixInput as P, SuggestionDrawOptions as Q, MountayaMapEvent as R, DirectionsInput as S, FitBoundsOptions as T, PoisInput as U, Overlay as V, PoisResult$1 as W, SearchResult$1 as X, SearchInput as Y, SearchTargetsInput as Z, CameraPose as _, SegmentEditOptions as a, DataActivitySlug as b, WaypointEditOptions as c, WaypointPoiSeed as d, SuggestionsResult$1 as et, ZoneDraft as f, Camera as g, AnalysisId as h, SegmentDraft as i, Layers as j, IsochronesResult$1 as k, WaypointEngineDraftChange as l, AnalysisHandle as m, BoundaryEditOptions as n, Unsubscribe as nt, SegmentViaPromptEvent as o, ZoneEditOptions as p, Renderable as q, DraftPhase as r, ZoomRange as rt, WaypointDraftSnapshot as s, BoundaryDraft as t, Terrain as tt, WaypointPoiCapture as u, CategoryOverlays as v, DrawOptions as w, DataRangeType as x, CollectionDrawOptions as y, MountayaMapEvents as z };
|
|
928
|
+
//# sourceMappingURL=chunk-QGqgNC4z.d.ts.map
|