@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
package/dist/camera/index.d.cts
CHANGED
|
@@ -1,13 +1,8 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import { ItineraryWithDetails } from
|
|
6
|
-
export { c as cumulativeMeters, r as routeLengthMeters } from '../geodesy-543qXKtI.cjs';
|
|
7
|
-
import '../climbs-DgBFwySV.cjs';
|
|
8
|
-
import '@mountaya/client';
|
|
9
|
-
import 'geojson';
|
|
10
|
-
|
|
1
|
+
import { A as CameraMode, B as VideoRecordingPhase, C as CAMERA_FPS, D as CameraAspect, E as CAMERA_RESOLUTIONS, F as QUALITY_TIERS, I as Quality, L as VIDEO_PRESETS_AVAILABLE, M as CameraResolution, N as PROFILE_DESIGNS, O as CameraBearingMode, P as ProfileDesign, R as VIDEO_RECORDING_PHASES, S as CAMERA_BEARING_MODES, T as CAMERA_OUTPUT_FORMATS, _ as createCameraPlan, a as VideoRecordingResult, b as insertShotSorted, c as SegmentSpan, d as CameraPlan, f as CameraPlanInput, g as ShotCamera, h as RouteGeometry, i as VideoProgress, j as CameraOutputFormat, k as CameraFps, l as resolveProfileSamples, m as DEFAULT_TARGET_DURATION_MS, n as RecordProfile, o as ProfileSample, p as CameraShot, r as RecordingCamera, s as ProfileSource, t as RecordOutput, u as CameraOutput, v as defaultCameraOutput, w as CAMERA_MODES, x as CAMERA_ASPECTS, y as defaultCameraShot, z as VideoPreset } from "../chunk-CeiTuMyt.cjs";
|
|
2
|
+
import { r as LngLat, t as BoundingBox } from "../chunk-fozLXfHY.cjs";
|
|
3
|
+
import { r as UnitFormatOptions } from "../chunk-5pTPpv4v.cjs";
|
|
4
|
+
import { i as routeLengthMeters, n as cumulativeMeters } from "../chunk-Bk0L8g5J.cjs";
|
|
5
|
+
import { g as ItineraryWithDetails } from "../chunk-QKWhxfPv.cjs";
|
|
11
6
|
/**
|
|
12
7
|
* RouteCursor is a sampled position along an itinerary: the interpolated [lng, lat]
|
|
13
8
|
* `point`, the `bearingDeg` of the itinerary's tangent there (the heading the path
|
|
@@ -16,9 +11,9 @@ import 'geojson';
|
|
|
16
11
|
* second search). Produced by cursorAtFraction.
|
|
17
12
|
*/
|
|
18
13
|
interface RouteCursor {
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
14
|
+
bearingDeg: number;
|
|
15
|
+
index: number;
|
|
16
|
+
point: LngLat;
|
|
22
17
|
}
|
|
23
18
|
/**
|
|
24
19
|
* pointAtMeters returns the [lng, lat] located at the given arc-length along the
|
|
@@ -42,13 +37,13 @@ interface RouteCursor {
|
|
|
42
37
|
* @param targetMeters How far along the line, in meters; held to the line's length.
|
|
43
38
|
* @param cumulative The line's {@link cumulativeMeters}. Defaults to measuring the line again.
|
|
44
39
|
*/
|
|
45
|
-
declare const pointAtMeters: (line: readonly LngLat[], targetMeters: number, cumulative?: readonly number[]) => LngLat;
|
|
40
|
+
export declare const pointAtMeters: (line: readonly LngLat[], targetMeters: number, cumulative?: readonly number[]) => LngLat;
|
|
46
41
|
/**
|
|
47
42
|
* bearingDegBetween returns the initial great-circle bearing in degrees (0..360)
|
|
48
43
|
* from a to b: the heading to travel to go from the first point to the second.
|
|
49
44
|
* Two identical points have no defined heading and return 0.
|
|
50
45
|
*/
|
|
51
|
-
declare const bearingDegBetween: (a: LngLat, b: LngLat) => number;
|
|
46
|
+
export declare const bearingDegBetween: (a: LngLat, b: LngLat) => number;
|
|
52
47
|
/**
|
|
53
48
|
* tangentBearingAtMeters returns the itinerary's heading in degrees (0..360) at the
|
|
54
49
|
* given arc-length, sampled by looking `lookaheadMeters` further along the line
|
|
@@ -69,7 +64,7 @@ declare const bearingDegBetween: (a: LngLat, b: LngLat) => number;
|
|
|
69
64
|
* @param lookaheadMeters How far ahead of that point the heading aims, in meters.
|
|
70
65
|
* @param cumulative The line's {@link cumulativeMeters}. Defaults to measuring the line again.
|
|
71
66
|
*/
|
|
72
|
-
declare const tangentBearingAtMeters: (line: readonly LngLat[], targetMeters: number, lookaheadMeters: number, cumulative?: readonly number[]) => number;
|
|
67
|
+
export declare const tangentBearingAtMeters: (line: readonly LngLat[], targetMeters: number, lookaheadMeters: number, cumulative?: readonly number[]) => number;
|
|
73
68
|
/**
|
|
74
69
|
* cursorAtFraction samples an itinerary at a progress fraction (0..1 of total
|
|
75
70
|
* length): it returns the interpolated point, the tangent bearing there (using
|
|
@@ -84,7 +79,7 @@ declare const tangentBearingAtMeters: (line: readonly LngLat[], targetMeters: nu
|
|
|
84
79
|
* @param lookaheadMeters How far ahead of the point the tangent bearing aims, in meters.
|
|
85
80
|
* @param cumulative The line's {@link cumulativeMeters}. Defaults to measuring the line again.
|
|
86
81
|
*/
|
|
87
|
-
declare const cursorAtFraction: (line: readonly LngLat[], fraction: number, lookaheadMeters: number, cumulative?: readonly number[]) => RouteCursor;
|
|
82
|
+
export declare const cursorAtFraction: (line: readonly LngLat[], fraction: number, lookaheadMeters: number, cumulative?: readonly number[]) => RouteCursor;
|
|
88
83
|
/**
|
|
89
84
|
* itineraryToRouteGeometry flattens an itinerary, or one of its segments, into the single
|
|
90
85
|
* {@link RouteGeometry} a camera plan resolves against.
|
|
@@ -109,7 +104,7 @@ declare const cursorAtFraction: (line: readonly LngLat[], fraction: number, look
|
|
|
109
104
|
* @returns The route, or null where fewer than two vertices name a place: no itinerary, an
|
|
110
105
|
* unknown segment, or segments holding no line. A flight needs a direction.
|
|
111
106
|
*/
|
|
112
|
-
declare const itineraryToRouteGeometry: (itinerary: ItineraryWithDetails | null, segmentId?: string | null) => RouteGeometry | null;
|
|
107
|
+
export declare const itineraryToRouteGeometry: (itinerary: ItineraryWithDetails | null, segmentId?: string | null) => RouteGeometry | null;
|
|
113
108
|
/**
|
|
114
109
|
* elevationAtFraction returns the itinerary's embedded surface elevation in meters at
|
|
115
110
|
* a progress fraction (0..1), interpolating linearly between the two vertices
|
|
@@ -124,7 +119,7 @@ declare const itineraryToRouteGeometry: (itinerary: ItineraryWithDetails | null,
|
|
|
124
119
|
* @param fraction The progress along the route, 0 at its start and 1 at its end.
|
|
125
120
|
* @param cumulative The route's {@link cumulativeMeters}. Defaults to measuring the line again.
|
|
126
121
|
*/
|
|
127
|
-
declare const elevationAtFraction: (itinerary: RouteGeometry, fraction: number, cumulative?: readonly number[]) => number | null;
|
|
122
|
+
export declare const elevationAtFraction: (itinerary: RouteGeometry, fraction: number, cumulative?: readonly number[]) => number | null;
|
|
128
123
|
/**
|
|
129
124
|
* slopeDegAtFraction returns the itinerary's local slope in degrees at a progress
|
|
130
125
|
* fraction (positive climbing, negative descending), measured as the rise over
|
|
@@ -145,8 +140,7 @@ declare const elevationAtFraction: (itinerary: RouteGeometry, fraction: number,
|
|
|
145
140
|
* @param fraction The progress along the route the window starts at, 0 to 1.
|
|
146
141
|
* @param lookaheadMeters The length of the window the grade is measured over, in meters.
|
|
147
142
|
*/
|
|
148
|
-
declare const slopeDegAtFraction: (itinerary: RouteGeometry, fraction: number, lookaheadMeters: number) => number;
|
|
149
|
-
|
|
143
|
+
export declare const slopeDegAtFraction: (itinerary: RouteGeometry, fraction: number, lookaheadMeters: number) => number;
|
|
150
144
|
/**
|
|
151
145
|
* TerrainSampler reads the DEM elevation in meters at a [lng, lat], or null when
|
|
152
146
|
* the terrain is not loaded there (off-coverage, or no DEM configured at all). It
|
|
@@ -167,11 +161,11 @@ type TerrainSampler = (lngLat: [number, number]) => number | null;
|
|
|
167
161
|
* resolver already holds per frame, handed across without copying the whole pose.
|
|
168
162
|
*/
|
|
169
163
|
interface ClearanceFrame {
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
164
|
+
bearing: number;
|
|
165
|
+
center: LngLat;
|
|
166
|
+
fraction: number;
|
|
167
|
+
pitch: number;
|
|
168
|
+
zoom: number;
|
|
175
169
|
}
|
|
176
170
|
/**
|
|
177
171
|
* ClearanceOptions tune the clearance pass.
|
|
@@ -199,10 +193,10 @@ interface ClearanceFrame {
|
|
|
199
193
|
* derives the stride a preview should pass.
|
|
200
194
|
*/
|
|
201
195
|
interface ClearanceOptions {
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
196
|
+
anticipationMeters?: number | undefined;
|
|
197
|
+
mode?: CameraMode | undefined;
|
|
198
|
+
sampleStride?: number | undefined;
|
|
199
|
+
viewportHeightPx?: number | undefined;
|
|
206
200
|
}
|
|
207
201
|
/**
|
|
208
202
|
* ClearanceAdjustment is the per-frame clearance solution: aligned `zoom` and
|
|
@@ -213,8 +207,8 @@ interface ClearanceOptions {
|
|
|
213
207
|
* resolver's min is a no-op and an un-cleared track is reproduced exactly.
|
|
214
208
|
*/
|
|
215
209
|
interface ClearanceAdjustment {
|
|
216
|
-
|
|
217
|
-
|
|
210
|
+
pitch: number[];
|
|
211
|
+
zoom: number[];
|
|
218
212
|
}
|
|
219
213
|
/**
|
|
220
214
|
* resolveClearanceAdjustments returns a clearance-adjusted zoom AND pitch per
|
|
@@ -250,8 +244,7 @@ interface ClearanceAdjustment {
|
|
|
250
244
|
* @param options The anticipation, viewport, mode and stride the pass runs with.
|
|
251
245
|
* @returns One zoom and one pitch per frame, each at or under the frame's own input.
|
|
252
246
|
*/
|
|
253
|
-
declare const resolveClearanceAdjustments: (frames: readonly ClearanceFrame[], itinerary: RouteGeometry, sampler: TerrainSampler, options: ClearanceOptions) => ClearanceAdjustment;
|
|
254
|
-
|
|
247
|
+
export declare const resolveClearanceAdjustments: (frames: readonly ClearanceFrame[], itinerary: RouteGeometry, sampler: TerrainSampler, options: ClearanceOptions) => ClearanceAdjustment;
|
|
255
248
|
/**
|
|
256
249
|
* CameraPlanner is where a camera plan is turned into the per-frame arrays a preview flies and
|
|
257
250
|
* a record composites.
|
|
@@ -280,19 +273,19 @@ declare const resolveClearanceAdjustments: (frames: readonly ClearanceFrame[], i
|
|
|
280
273
|
* decision to take when there is a worker to widen it for.
|
|
281
274
|
*/
|
|
282
275
|
interface CameraPlanner {
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
|
|
292
|
-
|
|
293
|
-
|
|
294
|
-
|
|
295
|
-
|
|
276
|
+
/**
|
|
277
|
+
* resolveSamples produces the per-frame overlay readout (distance, elevation, running
|
|
278
|
+
* ascent, the categorical bands), index-aligned with the poses.
|
|
279
|
+
*/
|
|
280
|
+
readonly resolveSamples: (plan: CameraPlan, itinerary: RouteGeometry, source: ProfileSource) => ProfileSample[];
|
|
281
|
+
/**
|
|
282
|
+
* resolveTrack produces the per-frame camera poses.
|
|
283
|
+
*
|
|
284
|
+
* `sampler` is the map's DEM readout, which turns on the clearance pass; `clearanceStride`
|
|
285
|
+
* decimates that pass for a preview. Both are absent on the sampler-free call a host makes to
|
|
286
|
+
* warm tiles.
|
|
287
|
+
*/
|
|
288
|
+
readonly resolveTrack: (plan: CameraPlan, itinerary: RouteGeometry, sampler?: TerrainSampler, clearanceStride?: number) => readonly ShotCamera[];
|
|
296
289
|
}
|
|
297
290
|
/**
|
|
298
291
|
* synchronousCameraPlanner resolves on the calling thread, exactly as `resolveCameraTrack` and
|
|
@@ -302,7 +295,7 @@ interface CameraPlanner {
|
|
|
302
295
|
* to memoize their own results, so a second call for an unchanged plan and route costs a map
|
|
303
296
|
* lookup, which is most of what a session of authoring does.
|
|
304
297
|
*/
|
|
305
|
-
declare const synchronousCameraPlanner: () => CameraPlanner;
|
|
298
|
+
export declare const synchronousCameraPlanner: () => CameraPlanner;
|
|
306
299
|
/**
|
|
307
300
|
* measuredCameraPlanner wraps a planner so each resolve lands on the performance timeline.
|
|
308
301
|
*
|
|
@@ -328,8 +321,7 @@ declare const synchronousCameraPlanner: () => CameraPlanner;
|
|
|
328
321
|
* a runtime without `performance.mark` simply gets the durations: the wrapper never changes what
|
|
329
322
|
* the planner returns, and never throws where the planner would not.
|
|
330
323
|
*/
|
|
331
|
-
declare const measuredCameraPlanner: (planner: CameraPlanner, onMeasure?: (name: string, durationMs: number) => void) => CameraPlanner;
|
|
332
|
-
|
|
324
|
+
export declare const measuredCameraPlanner: (planner: CameraPlanner, onMeasure?: (name: string, durationMs: number) => void) => CameraPlanner;
|
|
333
325
|
/**
|
|
334
326
|
* Authoring and running one fly-through, with no product around it.
|
|
335
327
|
*
|
|
@@ -368,42 +360,42 @@ declare const measuredCameraPlanner: (planner: CameraPlanner, onMeasure?: (name:
|
|
|
368
360
|
* plan; the second is about the picture.
|
|
369
361
|
*/
|
|
370
362
|
interface VideoFlightMap {
|
|
363
|
+
/**
|
|
364
|
+
* jumpToPose lands the camera on one full pose immediately, with no animation.
|
|
365
|
+
*
|
|
366
|
+
* The full pose and not a centre: a scrubbed frame has to match the pitch and bearing the flight
|
|
367
|
+
* would be at that fraction, or the scrubber shows a picture the video never contains.
|
|
368
|
+
*/
|
|
369
|
+
jumpToPose: (pose: RecordingCamera) => void;
|
|
370
|
+
/**
|
|
371
|
+
* prewarmTerrain frames the route's bounds and resolves once the DEM under them has settled.
|
|
372
|
+
*
|
|
373
|
+
* The box of a route across the antimeridian runs past 180 or below -180, the form a
|
|
374
|
+
* renderer frames across the line.
|
|
375
|
+
*/
|
|
376
|
+
prewarmTerrain: (bounds: BoundingBox) => Promise<void>;
|
|
377
|
+
previewPoses: (poses: RecordingCamera[], options: {
|
|
378
|
+
focusGlyphUrl?: string | undefined;
|
|
379
|
+
markers?: [number, number][] | undefined;
|
|
380
|
+
onProgress?: ((progress: VideoProgress) => void) | undefined;
|
|
381
|
+
planDurationMs?: number | undefined;
|
|
382
|
+
signal: AbortSignal;
|
|
383
|
+
}) => Promise<void>;
|
|
384
|
+
recordPoses: (poses: readonly RecordingCamera[], output: RecordOutput, options: {
|
|
385
|
+
focusGlyphUrl?: string | undefined;
|
|
386
|
+
markers?: [number, number][] | undefined;
|
|
387
|
+
onProgress?: ((progress: VideoProgress) => void) | undefined;
|
|
388
|
+
profile?: RecordProfile | undefined;
|
|
389
|
+
signal: AbortSignal;
|
|
371
390
|
/**
|
|
372
|
-
*
|
|
373
|
-
*
|
|
374
|
-
*
|
|
375
|
-
* would be at that fraction, or the scrubber shows a picture the video never contains.
|
|
391
|
+
* Whether the caller has just warmed these very poses' viewports, every frame's zoom and
|
|
392
|
+
* pitch included, so the recorder captures without a warm pass of its own. Absent or
|
|
393
|
+
* false, the recorder warms them first.
|
|
376
394
|
*/
|
|
377
|
-
|
|
378
|
-
|
|
379
|
-
|
|
380
|
-
|
|
381
|
-
* The box of a route across the antimeridian runs past 180 or below -180, the form a
|
|
382
|
-
* renderer frames across the line.
|
|
383
|
-
*/
|
|
384
|
-
prewarmTerrain: (bounds: BoundingBox) => Promise<void>;
|
|
385
|
-
previewPoses: (poses: RecordingCamera[], options: {
|
|
386
|
-
focusGlyphUrl?: string | undefined;
|
|
387
|
-
markers?: [number, number][] | undefined;
|
|
388
|
-
onProgress?: ((progress: VideoProgress) => void) | undefined;
|
|
389
|
-
planDurationMs?: number | undefined;
|
|
390
|
-
signal: AbortSignal;
|
|
391
|
-
}) => Promise<void>;
|
|
392
|
-
recordPoses: (poses: readonly RecordingCamera[], output: RecordOutput, options: {
|
|
393
|
-
focusGlyphUrl?: string | undefined;
|
|
394
|
-
markers?: [number, number][] | undefined;
|
|
395
|
-
onProgress?: ((progress: VideoProgress) => void) | undefined;
|
|
396
|
-
profile?: RecordProfile | undefined;
|
|
397
|
-
signal: AbortSignal;
|
|
398
|
-
/**
|
|
399
|
-
* Whether the caller has just warmed these very poses' viewports, every frame's zoom and
|
|
400
|
-
* pitch included, so the recorder captures without a warm pass of its own. Absent or
|
|
401
|
-
* false, the recorder warms them first.
|
|
402
|
-
*/
|
|
403
|
-
warmed?: boolean | undefined;
|
|
404
|
-
}) => Promise<VideoRecordingResult>;
|
|
405
|
-
sampleTerrainElevation: (lngLat: [number, number]) => number | null;
|
|
406
|
-
warmPoses: (poses: readonly RecordingCamera[], signal?: AbortSignal) => Promise<void>;
|
|
395
|
+
warmed?: boolean | undefined;
|
|
396
|
+
}) => Promise<VideoRecordingResult>;
|
|
397
|
+
sampleTerrainElevation: (lngLat: [number, number]) => number | null;
|
|
398
|
+
warmPoses: (poses: readonly RecordingCamera[], signal?: AbortSignal) => Promise<void>;
|
|
407
399
|
}
|
|
408
400
|
/**
|
|
409
401
|
* The elevation overlay burnt into the frame, and the units it is written in.
|
|
@@ -414,18 +406,18 @@ interface VideoFlightMap {
|
|
|
414
406
|
* screen reads in. `language` doubles as the BCP 47 locale the numbers are formatted with.
|
|
415
407
|
*/
|
|
416
408
|
interface VideoFlightProfile {
|
|
417
|
-
|
|
418
|
-
|
|
419
|
-
|
|
420
|
-
|
|
421
|
-
|
|
422
|
-
|
|
409
|
+
readonly design: ProfileDesign;
|
|
410
|
+
readonly enabled: boolean;
|
|
411
|
+
readonly language: UnitFormatOptions["language"];
|
|
412
|
+
readonly length: UnitFormatOptions["length"];
|
|
413
|
+
readonly pace: UnitFormatOptions["pace"];
|
|
414
|
+
readonly slope: UnitFormatOptions["slope"];
|
|
423
415
|
}
|
|
424
416
|
/**
|
|
425
417
|
* The overlay a flight opens with: off, the graph design, metric, degrees and a speed
|
|
426
418
|
* stated per unit of time, in English.
|
|
427
419
|
*/
|
|
428
|
-
declare const defaultVideoFlightProfile: VideoFlightProfile;
|
|
420
|
+
export declare const defaultVideoFlightProfile: VideoFlightProfile;
|
|
429
421
|
/**
|
|
430
422
|
* What a flight is doing, as a subscriber reads it.
|
|
431
423
|
*
|
|
@@ -441,34 +433,34 @@ declare const defaultVideoFlightProfile: VideoFlightProfile;
|
|
|
441
433
|
* over a preview under way, and a scrubber reads its position off either.
|
|
442
434
|
*/
|
|
443
435
|
type VideoFlightStatus = {
|
|
444
|
-
|
|
436
|
+
readonly kind: "idle";
|
|
445
437
|
} | {
|
|
446
|
-
|
|
447
|
-
|
|
438
|
+
readonly fraction: number;
|
|
439
|
+
readonly kind: "parked";
|
|
448
440
|
} | {
|
|
449
|
-
|
|
450
|
-
|
|
441
|
+
readonly fraction: number;
|
|
442
|
+
readonly kind: "previewing";
|
|
451
443
|
} | {
|
|
452
|
-
|
|
453
|
-
|
|
454
|
-
|
|
444
|
+
readonly fraction: number;
|
|
445
|
+
readonly kind: "recording";
|
|
446
|
+
readonly phase: VideoRecordingPhase;
|
|
455
447
|
};
|
|
456
448
|
/** Everything a UI renders from, and the whole of what `subscribe` announces a change to. */
|
|
457
449
|
interface VideoFlight {
|
|
458
|
-
|
|
459
|
-
|
|
460
|
-
|
|
461
|
-
|
|
462
|
-
|
|
463
|
-
|
|
464
|
-
|
|
465
|
-
|
|
466
|
-
|
|
467
|
-
|
|
468
|
-
|
|
469
|
-
|
|
470
|
-
|
|
471
|
-
|
|
450
|
+
/**
|
|
451
|
+
* The activity silhouette the moving focus dot masks over its white disc, or null for a plain
|
|
452
|
+
* disc. A URL rather than a glyph name: what artwork an activity has is the caller's vocabulary.
|
|
453
|
+
*/
|
|
454
|
+
readonly activityGlyphUrl: string | null;
|
|
455
|
+
readonly plan: CameraPlan;
|
|
456
|
+
readonly profile: VideoFlightProfile;
|
|
457
|
+
/**
|
|
458
|
+
* Where the overlay's per-frame readouts are resolved from. Null leaves the overlay unpainted.
|
|
459
|
+
*/
|
|
460
|
+
readonly profileSource: ProfileSource | null;
|
|
461
|
+
/** The flattened route the plan is anchored to. Null until a caller supplies one. */
|
|
462
|
+
readonly route: RouteGeometry | null;
|
|
463
|
+
readonly status: VideoFlightStatus;
|
|
472
464
|
}
|
|
473
465
|
/**
|
|
474
466
|
* Why a flight did not run, as a value rather than a throw.
|
|
@@ -485,14 +477,14 @@ interface VideoFlight {
|
|
|
485
477
|
* subscriber that throws is no failure of the flight, and never arrives here.
|
|
486
478
|
*/
|
|
487
479
|
type VideoFlightOutcome = {
|
|
488
|
-
|
|
480
|
+
readonly ok: true;
|
|
489
481
|
} | {
|
|
490
|
-
|
|
491
|
-
|
|
492
|
-
|
|
482
|
+
readonly error: Error;
|
|
483
|
+
readonly ok: false;
|
|
484
|
+
readonly reason: "failed";
|
|
493
485
|
} | {
|
|
494
|
-
|
|
495
|
-
|
|
486
|
+
readonly ok: false;
|
|
487
|
+
readonly reason: "aborted" | "no-map" | "no-route";
|
|
496
488
|
};
|
|
497
489
|
/**
|
|
498
490
|
* A finished recording, or why there is not one.
|
|
@@ -508,16 +500,16 @@ type VideoFlightOutcome = {
|
|
|
508
500
|
* supplies may.
|
|
509
501
|
*/
|
|
510
502
|
type VideoFlightRecording = {
|
|
511
|
-
|
|
512
|
-
|
|
513
|
-
|
|
503
|
+
readonly blob: Blob;
|
|
504
|
+
readonly extension: string;
|
|
505
|
+
readonly ok: true;
|
|
514
506
|
} | {
|
|
515
|
-
|
|
516
|
-
|
|
517
|
-
|
|
507
|
+
readonly error: Error;
|
|
508
|
+
readonly ok: false;
|
|
509
|
+
readonly reason: "failed";
|
|
518
510
|
} | {
|
|
519
|
-
|
|
520
|
-
|
|
511
|
+
readonly ok: false;
|
|
512
|
+
readonly reason: "aborted" | "no-frames" | "no-map" | "no-route" | "unavailable";
|
|
521
513
|
};
|
|
522
514
|
/**
|
|
523
515
|
* VideoFlightOptions is what a {@link VideoFlightEngine} is built with: the plan it opens on, and
|
|
@@ -525,33 +517,33 @@ type VideoFlightRecording = {
|
|
|
525
517
|
* and whether a recording carries the brand mark.
|
|
526
518
|
*/
|
|
527
519
|
interface VideoFlightOptions {
|
|
528
|
-
|
|
529
|
-
|
|
530
|
-
|
|
531
|
-
|
|
532
|
-
|
|
533
|
-
|
|
534
|
-
|
|
535
|
-
|
|
536
|
-
|
|
537
|
-
|
|
538
|
-
|
|
539
|
-
|
|
540
|
-
|
|
541
|
-
|
|
542
|
-
|
|
543
|
-
|
|
544
|
-
|
|
545
|
-
|
|
546
|
-
|
|
547
|
-
|
|
548
|
-
|
|
549
|
-
|
|
550
|
-
|
|
551
|
-
|
|
552
|
-
|
|
553
|
-
|
|
554
|
-
|
|
520
|
+
/**
|
|
521
|
+
* The plan a flight opens on. Required, because there is no default worth inventing: a plan
|
|
522
|
+
* names a mode, an output and a keyframe list, and `cameraPlanGenerators` builds one from a
|
|
523
|
+
* route in a line.
|
|
524
|
+
*/
|
|
525
|
+
readonly plan: CameraPlan;
|
|
526
|
+
/**
|
|
527
|
+
* The map the flight drives. Omitted or null, every run answers `no-map` and the state still
|
|
528
|
+
* works, which is what lets a caller author a plan before a canvas exists.
|
|
529
|
+
*/
|
|
530
|
+
readonly map?: VideoFlightMap | null | undefined;
|
|
531
|
+
/**
|
|
532
|
+
* Where a plan is turned into per-frame poses. Defaults to resolving on the calling thread,
|
|
533
|
+
* which is what the studio does; `measuredCameraPlanner` answers whether anything else is
|
|
534
|
+
* warranted.
|
|
535
|
+
*/
|
|
536
|
+
readonly planner?: CameraPlanner | undefined;
|
|
537
|
+
/**
|
|
538
|
+
* How many resolved flights to memoize. Four covers a session's working set (the current
|
|
539
|
+
* preview, the record's full-density resolve, and a recent edit or two) while keeping the
|
|
540
|
+
* retained per-frame pose arrays to a handful.
|
|
541
|
+
*
|
|
542
|
+
* A whole number, 0 or more. At 0 no flight is kept and every run resolves again.
|
|
543
|
+
*
|
|
544
|
+
* @default 4
|
|
545
|
+
*/
|
|
546
|
+
readonly poseCacheSize?: number | undefined;
|
|
555
547
|
}
|
|
556
548
|
/**
|
|
557
549
|
* VideoFlightEngine authors and runs one fly-through over a route a host holds: it holds the
|
|
@@ -597,547 +589,537 @@ interface VideoFlightOptions {
|
|
|
597
589
|
* flight.dispose();
|
|
598
590
|
* ```
|
|
599
591
|
*/
|
|
600
|
-
declare class VideoFlightEngine {
|
|
601
|
-
|
|
602
|
-
|
|
603
|
-
|
|
604
|
-
|
|
605
|
-
|
|
606
|
-
|
|
607
|
-
|
|
608
|
-
|
|
609
|
-
|
|
610
|
-
|
|
611
|
-
|
|
612
|
-
|
|
613
|
-
|
|
614
|
-
|
|
615
|
-
|
|
616
|
-
|
|
617
|
-
|
|
618
|
-
|
|
619
|
-
|
|
620
|
-
|
|
621
|
-
|
|
622
|
-
|
|
623
|
-
|
|
624
|
-
|
|
625
|
-
|
|
626
|
-
|
|
627
|
-
|
|
628
|
-
|
|
629
|
-
|
|
630
|
-
|
|
631
|
-
|
|
632
|
-
|
|
633
|
-
|
|
634
|
-
|
|
635
|
-
|
|
636
|
-
|
|
637
|
-
|
|
638
|
-
|
|
639
|
-
|
|
640
|
-
|
|
641
|
-
|
|
642
|
-
|
|
643
|
-
|
|
644
|
-
|
|
645
|
-
|
|
646
|
-
|
|
647
|
-
|
|
648
|
-
|
|
649
|
-
|
|
650
|
-
|
|
651
|
-
|
|
652
|
-
|
|
653
|
-
|
|
654
|
-
|
|
655
|
-
|
|
656
|
-
|
|
657
|
-
|
|
658
|
-
|
|
659
|
-
|
|
660
|
-
|
|
661
|
-
|
|
662
|
-
|
|
663
|
-
|
|
664
|
-
|
|
665
|
-
|
|
666
|
-
|
|
667
|
-
|
|
668
|
-
|
|
669
|
-
|
|
670
|
-
|
|
671
|
-
|
|
672
|
-
|
|
673
|
-
|
|
674
|
-
|
|
675
|
-
|
|
676
|
-
|
|
677
|
-
|
|
678
|
-
|
|
679
|
-
|
|
680
|
-
|
|
681
|
-
|
|
682
|
-
|
|
683
|
-
|
|
684
|
-
|
|
685
|
-
|
|
686
|
-
|
|
687
|
-
|
|
688
|
-
|
|
689
|
-
|
|
690
|
-
|
|
691
|
-
|
|
692
|
-
|
|
693
|
-
|
|
694
|
-
|
|
695
|
-
|
|
696
|
-
|
|
697
|
-
|
|
698
|
-
|
|
699
|
-
|
|
700
|
-
|
|
701
|
-
|
|
702
|
-
|
|
703
|
-
|
|
704
|
-
|
|
705
|
-
|
|
706
|
-
|
|
707
|
-
|
|
708
|
-
|
|
709
|
-
|
|
710
|
-
|
|
711
|
-
|
|
712
|
-
|
|
713
|
-
|
|
714
|
-
|
|
715
|
-
|
|
716
|
-
|
|
717
|
-
|
|
718
|
-
|
|
719
|
-
|
|
720
|
-
|
|
721
|
-
|
|
722
|
-
|
|
723
|
-
|
|
724
|
-
|
|
725
|
-
|
|
726
|
-
|
|
727
|
-
|
|
728
|
-
|
|
729
|
-
|
|
730
|
-
|
|
731
|
-
|
|
732
|
-
|
|
733
|
-
|
|
734
|
-
|
|
735
|
-
|
|
736
|
-
|
|
737
|
-
|
|
738
|
-
|
|
739
|
-
|
|
740
|
-
|
|
741
|
-
|
|
742
|
-
|
|
743
|
-
|
|
744
|
-
|
|
745
|
-
|
|
746
|
-
|
|
747
|
-
|
|
748
|
-
|
|
749
|
-
|
|
750
|
-
|
|
751
|
-
|
|
752
|
-
|
|
753
|
-
|
|
754
|
-
|
|
755
|
-
|
|
756
|
-
|
|
757
|
-
|
|
758
|
-
|
|
759
|
-
|
|
760
|
-
|
|
761
|
-
|
|
762
|
-
|
|
763
|
-
|
|
764
|
-
|
|
765
|
-
|
|
766
|
-
|
|
767
|
-
|
|
768
|
-
|
|
769
|
-
|
|
770
|
-
|
|
771
|
-
|
|
772
|
-
|
|
773
|
-
|
|
774
|
-
|
|
775
|
-
|
|
776
|
-
|
|
777
|
-
|
|
778
|
-
|
|
779
|
-
|
|
780
|
-
|
|
781
|
-
|
|
782
|
-
|
|
783
|
-
|
|
784
|
-
|
|
785
|
-
|
|
786
|
-
|
|
787
|
-
|
|
788
|
-
|
|
789
|
-
|
|
790
|
-
|
|
791
|
-
|
|
792
|
-
|
|
793
|
-
|
|
794
|
-
|
|
795
|
-
|
|
796
|
-
|
|
797
|
-
|
|
798
|
-
|
|
799
|
-
|
|
800
|
-
|
|
801
|
-
|
|
802
|
-
|
|
803
|
-
|
|
804
|
-
|
|
805
|
-
|
|
806
|
-
|
|
807
|
-
|
|
808
|
-
|
|
809
|
-
|
|
810
|
-
|
|
811
|
-
|
|
812
|
-
|
|
813
|
-
|
|
814
|
-
|
|
815
|
-
|
|
816
|
-
|
|
817
|
-
|
|
818
|
-
|
|
819
|
-
|
|
820
|
-
|
|
821
|
-
|
|
822
|
-
|
|
823
|
-
|
|
824
|
-
|
|
825
|
-
|
|
826
|
-
|
|
827
|
-
|
|
828
|
-
|
|
829
|
-
|
|
830
|
-
|
|
831
|
-
|
|
832
|
-
|
|
833
|
-
|
|
834
|
-
|
|
835
|
-
|
|
836
|
-
|
|
837
|
-
|
|
838
|
-
|
|
839
|
-
|
|
840
|
-
|
|
841
|
-
|
|
842
|
-
|
|
843
|
-
|
|
844
|
-
|
|
845
|
-
|
|
846
|
-
|
|
847
|
-
|
|
848
|
-
|
|
849
|
-
|
|
850
|
-
|
|
851
|
-
|
|
852
|
-
|
|
853
|
-
|
|
854
|
-
|
|
855
|
-
|
|
856
|
-
|
|
857
|
-
|
|
858
|
-
|
|
859
|
-
|
|
860
|
-
|
|
861
|
-
|
|
862
|
-
|
|
863
|
-
|
|
864
|
-
|
|
865
|
-
|
|
866
|
-
|
|
867
|
-
|
|
868
|
-
|
|
869
|
-
|
|
870
|
-
|
|
871
|
-
|
|
872
|
-
|
|
873
|
-
|
|
874
|
-
|
|
875
|
-
|
|
876
|
-
|
|
877
|
-
|
|
878
|
-
|
|
879
|
-
|
|
880
|
-
|
|
881
|
-
|
|
882
|
-
|
|
883
|
-
|
|
884
|
-
|
|
885
|
-
|
|
886
|
-
|
|
887
|
-
|
|
888
|
-
|
|
889
|
-
|
|
890
|
-
|
|
891
|
-
|
|
892
|
-
|
|
893
|
-
|
|
894
|
-
|
|
895
|
-
|
|
896
|
-
|
|
897
|
-
|
|
898
|
-
|
|
899
|
-
|
|
900
|
-
|
|
901
|
-
|
|
902
|
-
|
|
903
|
-
|
|
904
|
-
|
|
905
|
-
|
|
906
|
-
|
|
907
|
-
|
|
908
|
-
|
|
909
|
-
|
|
910
|
-
|
|
911
|
-
|
|
912
|
-
|
|
913
|
-
|
|
914
|
-
|
|
915
|
-
|
|
916
|
-
|
|
917
|
-
|
|
918
|
-
|
|
919
|
-
|
|
920
|
-
|
|
921
|
-
|
|
922
|
-
|
|
923
|
-
|
|
924
|
-
|
|
925
|
-
|
|
926
|
-
|
|
927
|
-
|
|
928
|
-
|
|
929
|
-
|
|
930
|
-
|
|
931
|
-
|
|
932
|
-
|
|
933
|
-
|
|
934
|
-
|
|
935
|
-
|
|
936
|
-
|
|
937
|
-
|
|
938
|
-
|
|
939
|
-
|
|
940
|
-
|
|
941
|
-
|
|
942
|
-
|
|
943
|
-
|
|
944
|
-
|
|
945
|
-
|
|
946
|
-
|
|
947
|
-
|
|
948
|
-
|
|
949
|
-
|
|
950
|
-
|
|
951
|
-
|
|
952
|
-
|
|
953
|
-
|
|
954
|
-
|
|
955
|
-
|
|
956
|
-
|
|
957
|
-
|
|
958
|
-
|
|
959
|
-
|
|
960
|
-
|
|
961
|
-
|
|
962
|
-
|
|
963
|
-
|
|
964
|
-
|
|
965
|
-
|
|
966
|
-
|
|
967
|
-
|
|
968
|
-
|
|
969
|
-
|
|
970
|
-
|
|
971
|
-
|
|
972
|
-
|
|
973
|
-
|
|
974
|
-
|
|
975
|
-
|
|
976
|
-
|
|
977
|
-
|
|
978
|
-
|
|
979
|
-
|
|
980
|
-
|
|
981
|
-
|
|
982
|
-
|
|
983
|
-
|
|
984
|
-
|
|
985
|
-
|
|
986
|
-
|
|
987
|
-
|
|
988
|
-
|
|
989
|
-
|
|
990
|
-
|
|
991
|
-
|
|
992
|
-
|
|
993
|
-
|
|
994
|
-
|
|
995
|
-
|
|
996
|
-
|
|
997
|
-
|
|
998
|
-
|
|
999
|
-
|
|
1000
|
-
|
|
1001
|
-
|
|
1002
|
-
|
|
1003
|
-
|
|
1004
|
-
|
|
1005
|
-
|
|
1006
|
-
|
|
1007
|
-
|
|
1008
|
-
|
|
1009
|
-
|
|
1010
|
-
|
|
1011
|
-
|
|
1012
|
-
|
|
1013
|
-
|
|
1014
|
-
|
|
1015
|
-
|
|
1016
|
-
|
|
1017
|
-
|
|
1018
|
-
|
|
1019
|
-
|
|
1020
|
-
|
|
1021
|
-
|
|
1022
|
-
|
|
1023
|
-
|
|
1024
|
-
|
|
1025
|
-
|
|
1026
|
-
|
|
1027
|
-
|
|
1028
|
-
|
|
1029
|
-
|
|
1030
|
-
|
|
1031
|
-
|
|
1032
|
-
|
|
1033
|
-
|
|
1034
|
-
|
|
1035
|
-
|
|
1036
|
-
|
|
1037
|
-
|
|
1038
|
-
|
|
1039
|
-
|
|
1040
|
-
|
|
1041
|
-
|
|
1042
|
-
|
|
1043
|
-
|
|
1044
|
-
|
|
1045
|
-
|
|
1046
|
-
|
|
1047
|
-
|
|
1048
|
-
|
|
1049
|
-
|
|
1050
|
-
|
|
1051
|
-
|
|
1052
|
-
|
|
1053
|
-
|
|
1054
|
-
|
|
1055
|
-
|
|
1056
|
-
|
|
1057
|
-
|
|
1058
|
-
|
|
1059
|
-
|
|
1060
|
-
|
|
1061
|
-
|
|
1062
|
-
|
|
1063
|
-
|
|
1064
|
-
|
|
1065
|
-
|
|
1066
|
-
|
|
1067
|
-
|
|
1068
|
-
|
|
1069
|
-
|
|
1070
|
-
|
|
1071
|
-
|
|
1072
|
-
|
|
1073
|
-
|
|
1074
|
-
|
|
1075
|
-
|
|
1076
|
-
|
|
1077
|
-
|
|
1078
|
-
|
|
1079
|
-
|
|
1080
|
-
|
|
1081
|
-
|
|
1082
|
-
|
|
1083
|
-
|
|
1084
|
-
|
|
1085
|
-
|
|
1086
|
-
|
|
1087
|
-
|
|
1088
|
-
|
|
1089
|
-
|
|
1090
|
-
|
|
1091
|
-
|
|
1092
|
-
|
|
1093
|
-
|
|
1094
|
-
|
|
1095
|
-
|
|
1096
|
-
|
|
592
|
+
export declare class VideoFlightEngine {
|
|
593
|
+
private flight;
|
|
594
|
+
private readonly listeners;
|
|
595
|
+
private readonly map;
|
|
596
|
+
private readonly planner;
|
|
597
|
+
private readonly poseCacheSize;
|
|
598
|
+
/**
|
|
599
|
+
* The run in flight. One at a time: every preview and record stops the run before it as it
|
|
600
|
+
* starts, because two flights over one map would fight for the camera.
|
|
601
|
+
*/
|
|
602
|
+
private run;
|
|
603
|
+
/**
|
|
604
|
+
* How far through the flight a preview that {@link pause} stopped in the air had flown, which
|
|
605
|
+
* {@link play} flies on from. Null when no flight is paused.
|
|
606
|
+
*/
|
|
607
|
+
private pausedAt;
|
|
608
|
+
/**
|
|
609
|
+
* The memoized flights, an insertion-ordered LRU. Keyed on the pose-affecting plan fields, the
|
|
610
|
+
* route's revision, whether this is the full-density record resolve or a decimated preview one,
|
|
611
|
+
* and the DEM epoch, so a format-only edit collapses onto the same key and reuses the flight,
|
|
612
|
+
* while a resolve cached against a cold DEM is dropped once the flight warm lands.
|
|
613
|
+
*/
|
|
614
|
+
private readonly poseCache;
|
|
615
|
+
/** Bumped when the flight terrain warms, which is what invalidates a cold-DEM resolve. */
|
|
616
|
+
private demEpoch;
|
|
617
|
+
/**
|
|
618
|
+
* Advanced each time the route's content is read and differs from {@link routeContent}: as
|
|
619
|
+
* {@link setRoute} is handed a route, and as a flight begins. The warm guards and the pose
|
|
620
|
+
* cache name a route by it, so telling two routes apart costs one walk per `setRoute` and one
|
|
621
|
+
* per flight, each ending at the first difference.
|
|
622
|
+
*/
|
|
623
|
+
private routeRevision;
|
|
624
|
+
/** What the held route held when it was last read, or null while no route is held. */
|
|
625
|
+
private routeContent;
|
|
626
|
+
/** The route revision each warm has already run for, so neither repeats. */
|
|
627
|
+
private terrainWarmedRevision;
|
|
628
|
+
private flightWarmedRevision;
|
|
629
|
+
/** The terrain warm in progress, which a flight asked for meanwhile over the same route joins. */
|
|
630
|
+
private terrainWarm;
|
|
631
|
+
/**
|
|
632
|
+
* The flight warm in progress, shared the same way. One sweep at a time moves the camera, and
|
|
633
|
+
* the engine holds the handle that ends it: {@link abort}, {@link dispose}, another route and
|
|
634
|
+
* a record, which sweeps for itself, each end it.
|
|
635
|
+
*/
|
|
636
|
+
private flightWarm;
|
|
637
|
+
/**
|
|
638
|
+
* The sweep a record makes for itself, while it is in progress. It is the flight's sweep over
|
|
639
|
+
* that route, so a flight asked for meanwhile joins it and starts none of its own. It ends on
|
|
640
|
+
* the record's run and on nothing else, which is why it is held apart from
|
|
641
|
+
* {@link flightWarm}: another route set meanwhile ends a shared sweep, and leaves a record on
|
|
642
|
+
* the route it began with.
|
|
643
|
+
*/
|
|
644
|
+
private recordWarm;
|
|
645
|
+
/**
|
|
646
|
+
* The settling of every map call that still holds the camera: the run in flight's, and that of
|
|
647
|
+
* each flight stopped since whose `previewPoses` or `recordPoses` has yet to settle. A seek
|
|
648
|
+
* parks the camera once all of them have let go of it.
|
|
649
|
+
*/
|
|
650
|
+
private readonly landings;
|
|
651
|
+
/**
|
|
652
|
+
* Whether a seek stopped a flight and no status has replaced the one that flight left. A
|
|
653
|
+
* stopped flight's own exit commits nothing, so its status is settled by the seek that
|
|
654
|
+
* stopped it or, when that seek was overtaken, by the one that parks or fails in its place.
|
|
655
|
+
* {@link commit} clears it on every status it states.
|
|
656
|
+
*/
|
|
657
|
+
private seekStoppedFlight;
|
|
658
|
+
/** The last encoded recording, so a save does not re-encode. */
|
|
659
|
+
private lastRecording;
|
|
660
|
+
/** Aborted by {@link dispose}, and the signal a seek resolves under, since it holds no run. */
|
|
661
|
+
private readonly disposal;
|
|
662
|
+
/** Whether {@link dispose} has run, read off the one signal it aborts. */
|
|
663
|
+
private get disposed();
|
|
664
|
+
/**
|
|
665
|
+
* Advanced by every flight asked for, a seek included, and by {@link abort}. A seek holds no
|
|
666
|
+
* run, so it reads this after each of its awaits to learn whether a newer preview, record or
|
|
667
|
+
* seek was asked for since it began, or an abort, and leaves the camera alone when one was.
|
|
668
|
+
*/
|
|
669
|
+
private flightSequence;
|
|
670
|
+
/**
|
|
671
|
+
* @throws {MountayaElementsError} When `poseCacheSize` is not a whole number, 0 or more, when
|
|
672
|
+
* the plan is no object, or when it holds a member no flight can be planned with.
|
|
673
|
+
* {@link setPlan} lists them.
|
|
674
|
+
*/
|
|
675
|
+
constructor(options: VideoFlightOptions);
|
|
676
|
+
/**
|
|
677
|
+
* getSnapshot returns the current flight, by reference.
|
|
678
|
+
*
|
|
679
|
+
* Stable between changes, deliberately: it is `useSyncExternalStore`'s second argument, and a
|
|
680
|
+
* fresh object per call makes React's own tearing check loop forever. Every command below
|
|
681
|
+
* replaces the object rather than mutating it, so identity IS the change signal.
|
|
682
|
+
*/
|
|
683
|
+
getSnapshot(): VideoFlight;
|
|
684
|
+
/**
|
|
685
|
+
* subscribe registers a listener for every change, and returns its own unsubscribe.
|
|
686
|
+
*
|
|
687
|
+
* A listener that throws keeps no other listener from being told and changes no command's
|
|
688
|
+
* answer: a setter, {@link abort} and {@link reset} throw nothing, and a preview, a record or
|
|
689
|
+
* a seek answers for the flight alone. What the listener threw is the subscribing program's
|
|
690
|
+
* own fault, and it reaches the runtime as an uncaught error on a microtask, once per change
|
|
691
|
+
* the listener threw at.
|
|
692
|
+
*/
|
|
693
|
+
subscribe(listener: () => void): () => void;
|
|
694
|
+
/** The last encoded recording, or null. Held so a save does not re-encode what was just made. */
|
|
695
|
+
get recording(): {
|
|
696
|
+
blob: Blob;
|
|
697
|
+
extension: string;
|
|
698
|
+
} | null;
|
|
699
|
+
/**
|
|
700
|
+
* setPlan replaces the plan. Does not abort a run: a plan edit mid-preview takes on the next.
|
|
701
|
+
*
|
|
702
|
+
* @throws {MountayaElementsError} Naming `plan`, when it is no object. Naming the member,
|
|
703
|
+
* when `output` is no object, `shots` no array or an entry of `shots` no object, when
|
|
704
|
+
* `version` is not 1, when `targetDurationMs` is
|
|
705
|
+
* not a finite number above 0, when `output.fps` is not 24, 30 or 60, when a stated
|
|
706
|
+
* `output.bitrateMbps` is not a finite number above 0, or when a shot holds a number that is
|
|
707
|
+
* not finite, a `holdMs` below 0 or a `speedScale` at or below 0: what `createCameraPlan`
|
|
708
|
+
* refuses, by the same rule. The plan the engine held stands.
|
|
709
|
+
*/
|
|
710
|
+
setPlan(plan: CameraPlan): void;
|
|
711
|
+
/**
|
|
712
|
+
* setRoute anchors the flight to a route, and resets both warm guards when it changes.
|
|
713
|
+
*
|
|
714
|
+
* Reset on CONTENT, so a re-supplied identical route keeps its warms. A different route has
|
|
715
|
+
* different terrain under it and different tiles to settle, so neither warm carries over, and
|
|
716
|
+
* a flight warm still sweeping the route before it ends at its next stop.
|
|
717
|
+
*
|
|
718
|
+
* The route is held as the object it is given, never copied for a reader, and its content is
|
|
719
|
+
* read here and again as each preview, record and seek begins. So a route edited in place (a
|
|
720
|
+
* track that grows by a push) is flown as it stands when the next flight is asked for, with
|
|
721
|
+
* its warms run again, whether or not it is handed over a second time.
|
|
722
|
+
*
|
|
723
|
+
* A line of fewer than two vertices is held as it is given and flown as no route: every run
|
|
724
|
+
* over it answers `no-route`.
|
|
725
|
+
*
|
|
726
|
+
* Another route stops a preview flying the one before it, and lands a `previewing` or a
|
|
727
|
+
* `parked` status on idle: the camera would fly, or rest on, a route the engine has let go
|
|
728
|
+
* of, under a status that says otherwise. It forgets a paused flight as well, so the next
|
|
729
|
+
* {@link play} flies the route that arrived from its first frame. A preview still in its
|
|
730
|
+
* warm-up flies the route that arrived, and a record flies the route it began with.
|
|
731
|
+
*/
|
|
732
|
+
setRoute(route: RouteGeometry | null): void;
|
|
733
|
+
/**
|
|
734
|
+
* setProfile merges a partial overlay update over the current one.
|
|
735
|
+
*
|
|
736
|
+
* A merge rather than a replacement, because every caller changes one field (the enable flag, a
|
|
737
|
+
* unit, the design), and a replacement would make each of those restate the others.
|
|
738
|
+
*/
|
|
739
|
+
setProfile(profile: Partial<VideoFlightProfile>): void;
|
|
740
|
+
/** setProfileSource sets where the overlay's per-frame readouts are resolved from. */
|
|
741
|
+
setProfileSource(profileSource: ProfileSource | null): void;
|
|
742
|
+
/** setActivityGlyph sets the silhouette the moving focus dot masks, or null for a plain disc. */
|
|
743
|
+
setActivityGlyph(activityGlyphUrl: string | null): void;
|
|
744
|
+
/**
|
|
745
|
+
* preview flies the plan live over the map from its first frame, encoding nothing, and reports
|
|
746
|
+
* progress. It forgets a flight {@link pause} stopped.
|
|
747
|
+
*
|
|
748
|
+
* Paced to the plan's own wall-clock so the rehearsal runs at the speed the recording will and
|
|
749
|
+
* dwells on holds: a preview that ran at frame rate would mislead about both.
|
|
750
|
+
*
|
|
751
|
+
* The run opens before the two warms rather than after them. Both warms move the camera and can
|
|
752
|
+
* take seconds on a cold cache, which is when a caller reaches for {@link pause}: a run opened
|
|
753
|
+
* after them would leave a pause, an abort, a dispose or a newer flight during the warm with
|
|
754
|
+
* nothing to stop, and the fly would start anyway. A stop there answers `aborted`, starts no
|
|
755
|
+
* further warm and flies no frame.
|
|
756
|
+
*
|
|
757
|
+
* The flight is of the plan and the route the engine holds once both warms have settled. A
|
|
758
|
+
* route set during a warm is warmed in turn, the DEM over its bounds and then its viewports,
|
|
759
|
+
* before any pose is resolved over it.
|
|
760
|
+
*
|
|
761
|
+
* It never rejects. A map or a planner that throws answers `failed` with the error it stopped
|
|
762
|
+
* on. A throw that follows a stop answers `aborted`, because the caller asked the run to
|
|
763
|
+
* stop. A subscriber that throws changes neither ({@link subscribe}). Every exit ends the run
|
|
764
|
+
* and lands on idle unless a newer one holds it by then.
|
|
765
|
+
*/
|
|
766
|
+
preview(): Promise<VideoFlightOutcome>;
|
|
767
|
+
/**
|
|
768
|
+
* play flies the plan on from where a flight was stopped, as {@link preview} flies it.
|
|
769
|
+
*
|
|
770
|
+
* It resumes a preview {@link pause} stopped in the air, from the frame nearest where it was and
|
|
771
|
+
* over the rest of the plan's wall-clock. Over a `parked` status it flies on from the frame
|
|
772
|
+
* {@link seek} parked the camera on, as a player plays on from where its reader put the head.
|
|
773
|
+
* It flies from the first frame when there is neither, and when nothing is left to fly past the
|
|
774
|
+
* frame it would start on. A play stopped in its warm-up flies nothing, and keeps where it was
|
|
775
|
+
* to fly on from for the next one.
|
|
776
|
+
*/
|
|
777
|
+
play(): Promise<VideoFlightOutcome>;
|
|
778
|
+
/**
|
|
779
|
+
* startPreview is {@link preview} and {@link play}: it opens the run, reads where the flight
|
|
780
|
+
* flies on from, and answers what the fly settled on.
|
|
781
|
+
*/
|
|
782
|
+
private startPreview;
|
|
783
|
+
/**
|
|
784
|
+
* flyPreview is {@link preview} and {@link play} from their first warm to the end of their
|
|
785
|
+
* fly, under the run they opened. It throws what the map or the planner threw, which they
|
|
786
|
+
* answer.
|
|
787
|
+
*/
|
|
788
|
+
private flyPreview;
|
|
789
|
+
/**
|
|
790
|
+
* record captures one frame per pose and encodes them, reporting progress with its phase.
|
|
791
|
+
*
|
|
792
|
+
* Resolved at full density (stride 1), where a preview resolves at the decimated clearance
|
|
793
|
+
* stride, so the artifact is what the plan describes rather than what was cheap to rehearse.
|
|
794
|
+
*
|
|
795
|
+
* The run opens before the terrain warm, for the reason {@link preview} gives, and the flight
|
|
796
|
+
* warm inside the resolve takes its signal: a stop, an abort or a dispose during either warm
|
|
797
|
+
* answers `aborted`, starts no further warm and captures no frame. Over a route a flight can
|
|
798
|
+
* follow, the status reads `recording` in its `preparing` phase from the moment the run opens,
|
|
799
|
+
* so a reader sees the press land while the terrain warms.
|
|
800
|
+
*
|
|
801
|
+
* A run stopped before the recorder answers keeps nothing: it answers `aborted`, whatever the
|
|
802
|
+
* map resolved, since a recorder a host supplies may finish a file after its signal aborted.
|
|
803
|
+
*
|
|
804
|
+
* It never rejects. A recorder that fails, or a map or planner that throws on the way to the
|
|
805
|
+
* first frame, answers `failed` with the error it stopped on, and a throw that follows an abort
|
|
806
|
+
* answers `aborted`, because the caller asked the run to stop. A subscriber that throws
|
|
807
|
+
* changes neither ({@link subscribe}). A recording
|
|
808
|
+
* the map could not start answers `unavailable`, which is no cancel: the result states
|
|
809
|
+
* `reason: "unavailable"` beside its `cancelled`. Every exit ends the run and lands on idle
|
|
810
|
+
* unless a newer run holds it by then, so a caller holding a recording state always has an
|
|
811
|
+
* outcome to settle it on.
|
|
812
|
+
*
|
|
813
|
+
* The record flies the plan and the route it began with. One set while it warms takes on the
|
|
814
|
+
* next flight, so the poses, the encoder's output and the overlay's samples stay those of one
|
|
815
|
+
* plan. Whether its frames carry the Mountaya watermark is the map's organization's to answer,
|
|
816
|
+
* read as the capture begins: no member of the engine takes the mark off.
|
|
817
|
+
*/
|
|
818
|
+
record(): Promise<VideoFlightRecording>;
|
|
819
|
+
/**
|
|
820
|
+
* flyRecording is {@link record} from its terrain warm to the recorder's answer, under the run
|
|
821
|
+
* it opened. It throws what the map or the planner threw, which `record` answers.
|
|
822
|
+
*/
|
|
823
|
+
private flyRecording;
|
|
824
|
+
/**
|
|
825
|
+
* seek parks the camera on the pose the flight is at, a fraction of the way through.
|
|
826
|
+
*
|
|
827
|
+
* It aborts any live fly first (a seek that did not would be overwritten by the next preview
|
|
828
|
+
* frame), resolves the flight, and jumps to the nearest frame's FULL pose. The status is left
|
|
829
|
+
* reading `parked` at the requested fraction rather than idle, because that is what a
|
|
830
|
+
* scrubber reads to position itself: the camera is parked mid-flight, not stopped.
|
|
831
|
+
*
|
|
832
|
+
* The pose is of the plan and the route the engine holds as the camera lands. One set while
|
|
833
|
+
* the seek waits, on a warm or on a stopped flight that still holds the camera, is warmed and
|
|
834
|
+
* resolved before the seek parks.
|
|
835
|
+
*
|
|
836
|
+
* The fraction is clamped rather than validated, so a scrubber dragged past its own track is a
|
|
837
|
+
* camera at an endpoint instead of a failure a UI has to render. A fraction that is no number
|
|
838
|
+
* (`NaN`, or a value of another type from a caller the compiler does not check) has no end to
|
|
839
|
+
* clamp to: the seek answers `failed` and touches nothing.
|
|
840
|
+
*
|
|
841
|
+
* A seek waits on the warms like any flight and starts neither twice: one asked for while a
|
|
842
|
+
* warm over the same route is in progress joins it, so a scrubber dragged on a cold route sweeps
|
|
843
|
+
* the camera once. A {@link pause} or a {@link stop} takes no camera, so a seek in its warm-up
|
|
844
|
+
* goes on to park, and the sweep it waits on goes on with it. A seek that parks forgets a
|
|
845
|
+
* paused flight: the next {@link play} flies on from the frame it parked on.
|
|
846
|
+
*
|
|
847
|
+
* A stopped flight lets go of the camera before the seek parks it, whoever stopped it: this
|
|
848
|
+
* seek, a seek before it, an {@link abort} or a newer flight. The seek waits for the map's
|
|
849
|
+
* `previewPoses` or `recordPoses` to settle on the aborted signal, because a run restores the
|
|
850
|
+
* camera it found as it settles, which for a record is once the frame in flight has ended, and
|
|
851
|
+
* that restore would land on top of the parked pose.
|
|
852
|
+
*
|
|
853
|
+
* A seek after {@link dispose}, or one whose warms a dispose overtook, answers `aborted` and
|
|
854
|
+
* leaves the camera where it is: a disposed engine does not move the map it let go of. A dispose
|
|
855
|
+
* during the terrain warm starts no flight warm, and one during the flight warm ends its sweep
|
|
856
|
+
* at the next stop, as an {@link abort} does. A seek a newer preview, record or seek overtook
|
|
857
|
+
* during its warms answers `aborted` as well and leaves the camera to the newer one, so a scrub
|
|
858
|
+
* that lands late never aborts a flight asked for after it, nor parks the camera over a later
|
|
859
|
+
* scrub.
|
|
860
|
+
*
|
|
861
|
+
* It never rejects. A map or a planner that throws answers `failed` with the error it stopped
|
|
862
|
+
* on and leaves the status as it was, or on idle when a seek had stopped a flight whose status
|
|
863
|
+
* nothing had replaced: this seek, or one it overtook before that one parked. A seek that
|
|
864
|
+
* answers `no-route` settles such a status the same way. A subscriber that throws changes
|
|
865
|
+
* none of it ({@link subscribe}).
|
|
866
|
+
*/
|
|
867
|
+
seek(fraction: number): Promise<VideoFlightOutcome>;
|
|
868
|
+
/**
|
|
869
|
+
* park is {@link seek} from its first warm to the pose it lands on. `overtaken` answers
|
|
870
|
+
* whether a dispose, an abort or a newer flight has taken the camera since the seek began. It
|
|
871
|
+
* throws what the map or the planner threw, which `seek` answers.
|
|
872
|
+
*/
|
|
873
|
+
private park;
|
|
874
|
+
/**
|
|
875
|
+
* invalidatePoses drops the memoized flights without touching the terrain warms.
|
|
876
|
+
*
|
|
877
|
+
* What a PLAN edit needs, and the distinction from {@link reset} is the expensive half: a new
|
|
878
|
+
* plan resolves to different poses over the same ground, so the pose cache is stale and the
|
|
879
|
+
* warms are not. Clearing both would re-run a visible multi-second camera sweep on every shot
|
|
880
|
+
* nudge.
|
|
881
|
+
*/
|
|
882
|
+
invalidatePoses(): void;
|
|
883
|
+
/**
|
|
884
|
+
* reset returns the engine to the state a fresh session starts in: no run, no caches, no
|
|
885
|
+
* warms, no recording, no paused flight, status idle. The plan and the route are left alone:
|
|
886
|
+
* a caller that wants those changed says so.
|
|
887
|
+
*
|
|
888
|
+
* It throws nothing, whatever a subscriber throws as the idle is announced
|
|
889
|
+
* ({@link subscribe}).
|
|
890
|
+
*/
|
|
891
|
+
reset(): void;
|
|
892
|
+
/**
|
|
893
|
+
* pause stops the run in flight and lands on idle, remembering how far a preview in the air
|
|
894
|
+
* had flown, which {@link play} flies on from.
|
|
895
|
+
*
|
|
896
|
+
* A preview stopped in its warm-up had flown nothing, so the flight paused before it stays
|
|
897
|
+
* paused. It takes no camera: a {@link seek} in its warm-up goes on to park, and a flight warm
|
|
898
|
+
* it waits on goes on sweeping. A sweep only stopped flights wait on ends at its next stop.
|
|
899
|
+
* With nothing running it lands a `parked` status on idle. Idempotent.
|
|
900
|
+
*/
|
|
901
|
+
pause(): void;
|
|
902
|
+
/**
|
|
903
|
+
* stop stops the run in flight, forgets a paused flight and lands on idle, and answers which
|
|
904
|
+
* run it stopped: `"preview"` for a preview or a play in the air or in its warm-up,
|
|
905
|
+
* `"record"` for a recording, and null when nothing was running.
|
|
906
|
+
*
|
|
907
|
+
* Like {@link pause} it takes no camera: a {@link seek} in its warm-up goes on to park. The run
|
|
908
|
+
* a stop ends answers `aborted`. Idempotent, and safe with nothing running.
|
|
909
|
+
*/
|
|
910
|
+
stop(): "preview" | "record" | null;
|
|
911
|
+
/**
|
|
912
|
+
* abort stops whatever is running, a seek in its warm-up included, forgets a paused flight and
|
|
913
|
+
* lands on idle.
|
|
914
|
+
*
|
|
915
|
+
* Idempotent, and safe with nothing running, which is what lets a UI wire it to a close button
|
|
916
|
+
* and an unmount without either of them checking first.
|
|
917
|
+
*
|
|
918
|
+
* A seek still in its warm-up holds no run, so the abort overtakes it the way a newer flight
|
|
919
|
+
* does: it answers `aborted` when its warm settles and parks no camera. A flight warm in
|
|
920
|
+
* progress ends its sweep at the next stop, whichever flight began it.
|
|
921
|
+
*/
|
|
922
|
+
abort(): void;
|
|
923
|
+
/**
|
|
924
|
+
* dispose aborts the run, drops every listener and forgets the caches.
|
|
925
|
+
*
|
|
926
|
+
* Idempotent. It does NOT dispose the map: the engine was handed one and does not own it,
|
|
927
|
+
* which is the same one-way dependency `VideoRunEngine` keeps. For the same reason it starts
|
|
928
|
+
* nothing on the map after it: a warm in progress holds a signal this aborts, which ends its
|
|
929
|
+
* sweep at the next stop, and a preview, record or seek still in its warm-up, or asked for
|
|
930
|
+
* later, answers `aborted` without warming again, flying, capturing or parking the camera.
|
|
931
|
+
*
|
|
932
|
+
* A disposed engine keeps the snapshot it showed. Nothing is announced after a dispose, so a
|
|
933
|
+
* reader that still holds the engine reads the status it last saw, a flight in progress
|
|
934
|
+
* included, and no later command changes it.
|
|
935
|
+
*/
|
|
936
|
+
dispose(): void;
|
|
937
|
+
/**
|
|
938
|
+
* commit replaces the snapshot and announces it. A no-op after dispose.
|
|
939
|
+
*
|
|
940
|
+
* It never throws. Every listener is told through {@link notifyListeners}, one that throws
|
|
941
|
+
* included, and the first thing a listener threw is surfaced once they all have been, so no
|
|
942
|
+
* command has to decide what a listener's exception does to a flight. The snapshot is replaced
|
|
943
|
+
* before anyone is told, so what a later reader holds is the change, whatever a listener did
|
|
944
|
+
* with it.
|
|
945
|
+
*/
|
|
946
|
+
private commit;
|
|
947
|
+
/**
|
|
948
|
+
* beginRun opens the one run a flight holds, aborting the one before it, and advances the
|
|
949
|
+
* {@link flightSequence} a seek in its warm-up reads.
|
|
950
|
+
*
|
|
951
|
+
* After {@link dispose} the run is born aborted and is not held, so every entry point answers
|
|
952
|
+
* `aborted` before it touches the map: a disposed engine was handed its map and let go of it.
|
|
953
|
+
*/
|
|
954
|
+
private beginRun;
|
|
955
|
+
/**
|
|
956
|
+
* stopRun is {@link pause} and {@link stop} past what each remembers: it stops the run in
|
|
957
|
+
* flight, ends a flight warm only stopped flights wait on, and lands on idle. It advances no
|
|
958
|
+
* {@link flightSequence}, so a seek in its warm-up goes on to park.
|
|
959
|
+
*/
|
|
960
|
+
private stopRun;
|
|
961
|
+
/**
|
|
962
|
+
* endRun lands on idle unless a newer run has already replaced this one, and answers the
|
|
963
|
+
* outcome the run settled on, as {@link land} reads it.
|
|
964
|
+
*/
|
|
965
|
+
private endRun;
|
|
966
|
+
/** land commits idle and answers the outcome the flight settled on. */
|
|
967
|
+
private land;
|
|
968
|
+
/**
|
|
969
|
+
* routeChanged names a route whose content differs from the one last read: it keeps the new
|
|
970
|
+
* content, advances the revision the warms and the pose cache are keyed on, ends a flight warm
|
|
971
|
+
* still sweeping the content before it, and forgets a flight paused over it.
|
|
972
|
+
*/
|
|
973
|
+
private routeChanged;
|
|
974
|
+
/**
|
|
975
|
+
* readRoute reads the held route against the content it held when it was last read, as a
|
|
976
|
+
* flight begins: the route is the caller's own object, and one edited in place since is
|
|
977
|
+
* another route. One walk that ends at the first difference, small beside a resolve.
|
|
978
|
+
*/
|
|
979
|
+
private readRoute;
|
|
980
|
+
/**
|
|
981
|
+
* endFlightWarm ends the flight warm in progress at its next stop, and lets go of it so a flight
|
|
982
|
+
* asked for afterwards sweeps for itself and does not wait on a sweep that is ending.
|
|
983
|
+
*/
|
|
984
|
+
private endFlightWarm;
|
|
985
|
+
/**
|
|
986
|
+
* fly awaits a map call that holds the camera, keeping its settling among the
|
|
987
|
+
* {@link landings} until it has settled, a stop of its run in between or not.
|
|
988
|
+
*/
|
|
989
|
+
private fly;
|
|
990
|
+
/**
|
|
991
|
+
* flyableRoute is the route a flight can follow, or null: no route, or a line of fewer than
|
|
992
|
+
* {@link ROUTE_VERTICES_MIN} vertices, which has no direction to fly in and whose bounds frame
|
|
993
|
+
* nothing.
|
|
994
|
+
*/
|
|
995
|
+
private flyableRoute;
|
|
996
|
+
/**
|
|
997
|
+
* prewarmRoute settles the DEM over the route's bounds, once per route.
|
|
998
|
+
*
|
|
999
|
+
* Before any resolve, because the clearance pass samples terrain through the live map: without
|
|
1000
|
+
* this it reads null and the flight plans a camera straight through a ridge. Once per route
|
|
1001
|
+
* because it is a visible camera move that can take seconds on a cold cache, and repeating it on
|
|
1002
|
+
* every play would make each transport action drag.
|
|
1003
|
+
*
|
|
1004
|
+
* A flight asked for while the warm is in progress awaits the one in progress. A warm that
|
|
1005
|
+
* rejects is not recorded as done, and rejects for every flight that waited on it.
|
|
1006
|
+
*/
|
|
1007
|
+
private prewarmRoute;
|
|
1008
|
+
/**
|
|
1009
|
+
* warmRoute warms the route the engine holds as a preview or a seek takes it: the DEM over its
|
|
1010
|
+
* bounds ({@link prewarmRoute}), then its flight's viewports ({@link warmFlight}), each once per
|
|
1011
|
+
* route.
|
|
1012
|
+
*
|
|
1013
|
+
* The route is read again after each warm. One set while a warm ran is the route the flight is
|
|
1014
|
+
* of, so it is warmed in turn, the DEM before the sweep, and no pose is resolved over terrain a
|
|
1015
|
+
* warm of another route settled. It settles once the route it last warmed is the one held, or
|
|
1016
|
+
* as soon as `stopped` answers true after a warm.
|
|
1017
|
+
*
|
|
1018
|
+
* @param stopped Whether the flight has let go of the camera: its run was stopped, or a newer
|
|
1019
|
+
* flight overtook it. The flight warm reads it to tell a sweep somebody still waits on from
|
|
1020
|
+
* one nobody does.
|
|
1021
|
+
*/
|
|
1022
|
+
private warmRoute;
|
|
1023
|
+
/**
|
|
1024
|
+
* warmFlight jumps the camera through the flight's own viewports, once per route.
|
|
1025
|
+
*
|
|
1026
|
+
* The sampler-free resolve is used for the warm pass (its centers and bearings match the final
|
|
1027
|
+
* poses, so warming against it loads exactly the tiles the flight crosses), and the DEM epoch is
|
|
1028
|
+
* bumped afterwards, which drops any resolve cached against the colder terrain.
|
|
1029
|
+
*
|
|
1030
|
+
* A flight asked for while the sweep is in progress awaits the one in progress, a record's own
|
|
1031
|
+
* sweep included ({@link sweepForRecord}): two sweeps over one route would fight for the
|
|
1032
|
+
* camera. The sweep takes a signal of its own, which {@link endFlightWarm} aborts. A warm cut
|
|
1033
|
+
* short covered part of the flight, so it is not recorded as done and the next flight warms
|
|
1034
|
+
* again.
|
|
1035
|
+
*
|
|
1036
|
+
* @param stopped Whether the waiting flight has let go of the camera, held among the sweep's
|
|
1037
|
+
* waiters while it waits.
|
|
1038
|
+
*/
|
|
1039
|
+
private warmFlight;
|
|
1040
|
+
/**
|
|
1041
|
+
* sweepForRecord jumps the camera through the sampler-free viewports of the flight a record is
|
|
1042
|
+
* about to capture, under the record's own run.
|
|
1043
|
+
*
|
|
1044
|
+
* It settles the DEM at flight zoom before the full-density resolve samples clearance. The
|
|
1045
|
+
* recorder skips its own warm pass only where the clearance pass moved no frame
|
|
1046
|
+
* ({@link capturesSweptViewports}): a frame it widened or tilted frames ground this sweep never
|
|
1047
|
+
* did.
|
|
1048
|
+
*
|
|
1049
|
+
* A record sweeps whenever its poses are not cached, whatever was warmed before, so the capture
|
|
1050
|
+
* never films a tile that has been let go since. The sweep is the flight's own over that
|
|
1051
|
+
* route, so it is held where {@link warmFlight} finds it: a seek asked for meanwhile waits on
|
|
1052
|
+
* it and starts no second sweep. One that runs to its end counts as the route's flight warm,
|
|
1053
|
+
* with the DEM epoch moved as `warmFlight` moves it. One its run cut short counts for nothing.
|
|
1054
|
+
*
|
|
1055
|
+
* @param track The sampler-free track of the plan and the route the record began with.
|
|
1056
|
+
* @param revision The route's revision as the record began.
|
|
1057
|
+
* @param signal The record's run.
|
|
1058
|
+
*/
|
|
1059
|
+
private sweepForRecord;
|
|
1060
|
+
/**
|
|
1061
|
+
* resolve turns the plan into poses, markers and a duration, memoized.
|
|
1062
|
+
*
|
|
1063
|
+
* Returns null when there is no route a flight can follow, which is the one input a flight
|
|
1064
|
+
* cannot be invented without. The record pass warms the flight-zoom tiles first so the capture
|
|
1065
|
+
* never films an unloaded tile and the clearance sampler reads real peak heights; the preview
|
|
1066
|
+
* pass skips that internal warm because `preview` already ran it once per route.
|
|
1067
|
+
*
|
|
1068
|
+
* It also returns null when `signal` aborted before or during that warm, which its caller reads
|
|
1069
|
+
* off the signal: a warm never starts on a dead signal, because the sweep moves the camera and a
|
|
1070
|
+
* map a host supplies need not honour one; and the full-density resolve after it is the costliest
|
|
1071
|
+
* step a record takes before its first frame, so poses sampled against a half-warmed DEM do not
|
|
1072
|
+
* belong in the cache.
|
|
1073
|
+
*
|
|
1074
|
+
* The plan and the route are read once, as the resolve begins, and the flight it answers names
|
|
1075
|
+
* both. A plan or a route set while the record pass warms takes on the next flight: the one in
|
|
1076
|
+
* progress is resolved, stored and recorded for what it began with.
|
|
1077
|
+
*/
|
|
1078
|
+
private resolve;
|
|
1079
|
+
/**
|
|
1080
|
+
* recordProfile builds the overlay's recording input for a resolved flight, or nothing.
|
|
1081
|
+
*
|
|
1082
|
+
* All three inputs or none: the overlay is composited only when a caller enabled it AND both the
|
|
1083
|
+
* route and the profile source are present. The samples are resolved through the same planner and
|
|
1084
|
+
* the same frame progression as the poses, over the plan and the route the poses were resolved
|
|
1085
|
+
* for, so the readout on frame N describes the place frame N is looking at: index alignment is
|
|
1086
|
+
* the whole correctness condition here.
|
|
1087
|
+
*/
|
|
1088
|
+
private recordProfile;
|
|
1097
1089
|
}
|
|
1098
|
-
|
|
1099
|
-
/**
|
|
1100
|
-
* The camera that frames a box, computed rather than asked of a renderer.
|
|
1101
|
-
*
|
|
1102
|
-
* MapLibre GL JS frames a box itself (`fitBounds`), facing north under the zoom ceiling it is
|
|
1103
|
-
* handed. A renderer whose own fit takes no ceiling, or keeps the bearing, would frame the same box
|
|
1104
|
-
* elsewhere, so the camera a fit lands on is stated here once, on the Web Mercator world of
|
|
1105
|
-
* 512-pixel tiles MapLibre measures it on, and a renderer is handed the camera rather than the box.
|
|
1106
|
-
*/
|
|
1107
|
-
|
|
1108
1090
|
/** What a fit is framed in: the canvas, the inset kept clear, the ceiling and the zoom window. */
|
|
1109
1091
|
interface BoundsCameraOptions {
|
|
1110
|
-
|
|
1111
|
-
|
|
1112
|
-
|
|
1113
|
-
|
|
1114
|
-
|
|
1115
|
-
|
|
1116
|
-
|
|
1117
|
-
|
|
1118
|
-
|
|
1119
|
-
|
|
1120
|
-
|
|
1121
|
-
|
|
1122
|
-
|
|
1123
|
-
|
|
1124
|
-
|
|
1125
|
-
|
|
1126
|
-
|
|
1127
|
-
|
|
1128
|
-
|
|
1129
|
-
|
|
1130
|
-
|
|
1131
|
-
|
|
1092
|
+
/** The canvas the camera frames, as `[width, height]` in CSS pixels. */
|
|
1093
|
+
readonly canvas: readonly [width: number, height: number];
|
|
1094
|
+
/**
|
|
1095
|
+
* The inset kept clear between the box and each edge of the canvas, in CSS pixels: one number
|
|
1096
|
+
* for every edge, or one per edge, as `FitBoundsPadding` writes it. None where it is left out.
|
|
1097
|
+
*
|
|
1098
|
+
* Stated by its shape rather than by that name: this entry promises no renderer, and naming
|
|
1099
|
+
* the type made the published declarations borrow it from a renderer-bearing entry.
|
|
1100
|
+
*/
|
|
1101
|
+
readonly padding?: number | {
|
|
1102
|
+
readonly bottom: number;
|
|
1103
|
+
readonly left: number;
|
|
1104
|
+
readonly right: number;
|
|
1105
|
+
readonly top: number;
|
|
1106
|
+
} | undefined;
|
|
1107
|
+
/** The highest zoom the fit lands at. The zoom window's ceiling where it is left out. */
|
|
1108
|
+
readonly maxZoom?: number | undefined;
|
|
1109
|
+
/** The zoom window the camera is held to, its lowest zoom and its highest. */
|
|
1110
|
+
readonly window: {
|
|
1111
|
+
readonly max: number;
|
|
1112
|
+
readonly min: number;
|
|
1113
|
+
};
|
|
1132
1114
|
}
|
|
1133
1115
|
/** The camera a fit lands on. It faces north, and keeps the pitch the camera has. */
|
|
1134
1116
|
interface BoundsCamera {
|
|
1135
|
-
|
|
1136
|
-
|
|
1137
|
-
|
|
1138
|
-
|
|
1139
|
-
|
|
1140
|
-
|
|
1117
|
+
/** Always 0: a fit faces north. */
|
|
1118
|
+
readonly bearing: number;
|
|
1119
|
+
/** The centre, `[longitude, latitude]`. */
|
|
1120
|
+
readonly center: LngLat;
|
|
1121
|
+
/** The zoom. */
|
|
1122
|
+
readonly zoom: number;
|
|
1141
1123
|
}
|
|
1142
1124
|
/**
|
|
1143
1125
|
* cameraForBounds answers the camera that fits a box in a canvas: facing north, at the highest
|
|
@@ -1169,8 +1151,7 @@ interface BoundsCamera {
|
|
|
1169
1151
|
* }); // { bearing: 0, center: [6.875, 45.85…], zoom: 11.27… }
|
|
1170
1152
|
* ```
|
|
1171
1153
|
*/
|
|
1172
|
-
declare const cameraForBounds: (bounds: BoundingBox, options: BoundsCameraOptions) => BoundsCamera | null;
|
|
1173
|
-
|
|
1154
|
+
export declare const cameraForBounds: (bounds: BoundingBox, options: BoundsCameraOptions) => BoundsCamera | null;
|
|
1174
1155
|
/**
|
|
1175
1156
|
* GeneratorParams are the inputs a preset generator reads beyond the itinerary: the
|
|
1176
1157
|
* whole flight's `targetDurationMs`. Held as an interface so a later input (a
|
|
@@ -1178,7 +1159,7 @@ declare const cameraForBounds: (bounds: BoundingBox, options: BoundsCameraOption
|
|
|
1178
1159
|
* argument.
|
|
1179
1160
|
*/
|
|
1180
1161
|
interface GeneratorParams {
|
|
1181
|
-
|
|
1162
|
+
targetDurationMs: number;
|
|
1182
1163
|
}
|
|
1183
1164
|
/**
|
|
1184
1165
|
* CameraPlanGenerator builds a deterministic {@link CameraPlan} from an itinerary and the
|
|
@@ -1203,7 +1184,7 @@ type CameraPlanGenerator = (itinerary: RouteGeometry, params: GeneratorParams) =
|
|
|
1203
1184
|
* the broadcast lateral, `drone` the highest aerial. A consumer framing shots of its
|
|
1204
1185
|
* own reads a preset's altitude here, the table the generators read.
|
|
1205
1186
|
*/
|
|
1206
|
-
declare const modeEyeHeightMeters: Readonly<Record<Exclude<CameraMode, "director">, number>>;
|
|
1187
|
+
export declare const modeEyeHeightMeters: Readonly<Record<Exclude<CameraMode, "director">, number>>;
|
|
1207
1188
|
/**
|
|
1208
1189
|
* generateSmartPlan lays an adaptive `smart` flight: its interior pitch is derived
|
|
1209
1190
|
* per keyframe from the local slope (flatter ground tilts the camera up to read
|
|
@@ -1228,7 +1209,7 @@ declare const modeEyeHeightMeters: Readonly<Record<Exclude<CameraMode, "director
|
|
|
1228
1209
|
* @throws {MountayaElementsError} When the route holds a vertex whose longitude or latitude is
|
|
1229
1210
|
* no finite number, as {@link CameraPlanGenerator} states.
|
|
1230
1211
|
*/
|
|
1231
|
-
declare const generateSmartPlan: CameraPlanGenerator;
|
|
1212
|
+
export declare const generateSmartPlan: CameraPlanGenerator;
|
|
1232
1213
|
/**
|
|
1233
1214
|
* generateCinematicPlan lays a narrative, expressive `cinematic` flight: a tight,
|
|
1234
1215
|
* grounded fixed pitch that fills the frame with the horizon, a positive zoom bias
|
|
@@ -1248,7 +1229,7 @@ declare const generateSmartPlan: CameraPlanGenerator;
|
|
|
1248
1229
|
* @throws {MountayaElementsError} When the route holds a vertex whose longitude or latitude is
|
|
1249
1230
|
* no finite number, as {@link CameraPlanGenerator} states.
|
|
1250
1231
|
*/
|
|
1251
|
-
declare const generateCinematicPlan: CameraPlanGenerator;
|
|
1232
|
+
export declare const generateCinematicPlan: CameraPlanGenerator;
|
|
1252
1233
|
/**
|
|
1253
1234
|
* generateDronePlan lays an aerial bird's-eye `drone` flight: the steepest fixed
|
|
1254
1235
|
* pitch, a genuinely high eye (modeEyeHeightMeters.drone, real altitude with real
|
|
@@ -1261,7 +1242,7 @@ declare const generateCinematicPlan: CameraPlanGenerator;
|
|
|
1261
1242
|
* @throws {MountayaElementsError} When the route holds a vertex whose longitude or latitude is
|
|
1262
1243
|
* no finite number, as {@link CameraPlanGenerator} states.
|
|
1263
1244
|
*/
|
|
1264
|
-
declare const generateDronePlan: CameraPlanGenerator;
|
|
1245
|
+
export declare const generateDronePlan: CameraPlanGenerator;
|
|
1265
1246
|
/**
|
|
1266
1247
|
* generateHelicopterPlan lays the broadcast lateral `helicopter` flight: every
|
|
1267
1248
|
* keyframe's bearing is pinned (`value`) to the itinerary tangent + 90°, so the eye
|
|
@@ -1278,7 +1259,7 @@ declare const generateDronePlan: CameraPlanGenerator;
|
|
|
1278
1259
|
* @throws {MountayaElementsError} When the route holds a vertex whose longitude or latitude is
|
|
1279
1260
|
* no finite number, as {@link CameraPlanGenerator} states.
|
|
1280
1261
|
*/
|
|
1281
|
-
declare const generateHelicopterPlan: CameraPlanGenerator;
|
|
1262
|
+
export declare const generateHelicopterPlan: CameraPlanGenerator;
|
|
1282
1263
|
/**
|
|
1283
1264
|
* generateChasePlan lays the low behind-the-athlete `chase` flight: the highest
|
|
1284
1265
|
* travelling pitch (nearly horizon-filled), a strong positive zoom bias over the
|
|
@@ -1295,7 +1276,7 @@ declare const generateHelicopterPlan: CameraPlanGenerator;
|
|
|
1295
1276
|
* @throws {MountayaElementsError} When the route holds a vertex whose longitude or latitude is
|
|
1296
1277
|
* no finite number, as {@link CameraPlanGenerator} states.
|
|
1297
1278
|
*/
|
|
1298
|
-
declare const generateChasePlan: CameraPlanGenerator;
|
|
1279
|
+
export declare const generateChasePlan: CameraPlanGenerator;
|
|
1299
1280
|
/**
|
|
1300
1281
|
* generateOverviewPlan lays the cartographic `overview` reveal. The endpoints are
|
|
1301
1282
|
* explicit near-nadir whole-itinerary frames, each held long enough for the map to
|
|
@@ -1319,22 +1300,21 @@ declare const generateChasePlan: CameraPlanGenerator;
|
|
|
1319
1300
|
* @throws {MountayaElementsError} When the route holds a vertex whose longitude or latitude is
|
|
1320
1301
|
* no finite number, as {@link CameraPlanGenerator} states.
|
|
1321
1302
|
*/
|
|
1322
|
-
declare const generateOverviewPlan: CameraPlanGenerator;
|
|
1303
|
+
export declare const generateOverviewPlan: CameraPlanGenerator;
|
|
1323
1304
|
/**
|
|
1324
1305
|
* neutralDirectorPlan seeds an empty `director` plan: no shots, just the mode and
|
|
1325
1306
|
* the target duration. An explicit shot sequence (a control or an agent's camera
|
|
1326
1307
|
* edits) fills it; until then the resolver falls back to a full-itinerary follow shot
|
|
1327
1308
|
* so a preview is never blank.
|
|
1328
1309
|
*/
|
|
1329
|
-
declare const neutralDirectorPlan: (params: GeneratorParams) => CameraPlan;
|
|
1310
|
+
export declare const neutralDirectorPlan: (params: GeneratorParams) => CameraPlan;
|
|
1330
1311
|
/**
|
|
1331
1312
|
* cameraPlanGenerators dispatches a non-director mode to its deterministic
|
|
1332
1313
|
* generator. `director` is excluded because it has no generator (its plan is
|
|
1333
1314
|
* seeded empty by {@link neutralDirectorPlan} and filled by explicit shots), so a
|
|
1334
1315
|
* caller picking a generator handles only the modes that produce one.
|
|
1335
1316
|
*/
|
|
1336
|
-
declare const cameraPlanGenerators: Readonly<Record<Exclude<CameraMode, "director">, CameraPlanGenerator>>;
|
|
1337
|
-
|
|
1317
|
+
export declare const cameraPlanGenerators: Readonly<Record<Exclude<CameraMode, "director">, CameraPlanGenerator>>;
|
|
1338
1318
|
/**
|
|
1339
1319
|
* The encoder vocabulary, read from `./vocabulary` rather than restated: the vocabulary is a
|
|
1340
1320
|
* leaf both this module and the plan import DOWNWARD, so there is nothing to keep in step by
|
|
@@ -1352,11 +1332,11 @@ type VideoFormat = CameraOutputFormat;
|
|
|
1352
1332
|
* template is a single spread over the plan's output.
|
|
1353
1333
|
*/
|
|
1354
1334
|
interface VideoPresetTemplate {
|
|
1355
|
-
|
|
1356
|
-
|
|
1357
|
-
|
|
1358
|
-
|
|
1359
|
-
|
|
1335
|
+
readonly aspect: CameraAspect;
|
|
1336
|
+
readonly bitrateMbps: number;
|
|
1337
|
+
readonly format: VideoFormat;
|
|
1338
|
+
readonly fps: VideoFps;
|
|
1339
|
+
readonly resolution: VideoResolution;
|
|
1360
1340
|
}
|
|
1361
1341
|
/**
|
|
1362
1342
|
* videoPresets holds the ready-made templates for the platforms a video is posted to, keyed by
|
|
@@ -1368,7 +1348,7 @@ interface VideoPresetTemplate {
|
|
|
1368
1348
|
* platform presets appear here. Applying one spreads its template over the plan's output and
|
|
1369
1349
|
* names the preset.
|
|
1370
1350
|
*/
|
|
1371
|
-
declare const videoPresets: Readonly<Record<Exclude<VideoPreset, "custom">, VideoPresetTemplate>>;
|
|
1351
|
+
export declare const videoPresets: Readonly<Record<Exclude<VideoPreset, "custom">, VideoPresetTemplate>>;
|
|
1372
1352
|
/**
|
|
1373
1353
|
* BITRATE_MBPS_MIN and BITRATE_MBPS_MAX bound an encoder bitrate override.
|
|
1374
1354
|
*
|
|
@@ -1379,9 +1359,9 @@ declare const videoPresets: Readonly<Record<Exclude<VideoPreset, "custom">, Vide
|
|
|
1379
1359
|
* then rejects. A validator of a plan's output reads them, and so does any encoder clamping a
|
|
1380
1360
|
* caller-supplied override before handing it to the codec.
|
|
1381
1361
|
*/
|
|
1382
|
-
declare const BITRATE_MBPS_MIN = 1;
|
|
1362
|
+
export declare const BITRATE_MBPS_MIN = 1;
|
|
1383
1363
|
/** The highest encoder bitrate an override may state, in Mbps. */
|
|
1384
|
-
declare const BITRATE_MBPS_MAX: number;
|
|
1364
|
+
export declare const BITRATE_MBPS_MAX: number;
|
|
1385
1365
|
/**
|
|
1386
1366
|
* bitrateForOutput returns the recommended encoder bitrate in Mbps for a
|
|
1387
1367
|
* resolution + frame rate + quality tier, read straight from bitrateTableMbps.
|
|
@@ -1396,7 +1376,7 @@ declare const BITRATE_MBPS_MAX: number;
|
|
|
1396
1376
|
* @param quality The quality tier: the column of the row read.
|
|
1397
1377
|
* @returns The bitrate, in Mbps.
|
|
1398
1378
|
*/
|
|
1399
|
-
declare const bitrateForOutput: (resolution: VideoResolution, fps: VideoFps, quality: Quality) => number;
|
|
1379
|
+
export declare const bitrateForOutput: (resolution: VideoResolution, fps: VideoFps, quality: Quality) => number;
|
|
1400
1380
|
/**
|
|
1401
1381
|
* estimatedVideoSizeMb estimates the encoded file size in decimal megabytes for a
|
|
1402
1382
|
* constant-bitrate recording: the megabits the bitrate carries over the flight's length, stated
|
|
@@ -1410,7 +1390,7 @@ declare const bitrateForOutput: (resolution: VideoResolution, fps: VideoFps, qua
|
|
|
1410
1390
|
* @param durationMs The recording's length, in milliseconds.
|
|
1411
1391
|
* @returns The size, in decimal megabytes.
|
|
1412
1392
|
*/
|
|
1413
|
-
declare const estimatedVideoSizeMb: (bitrateMbps: number, durationMs: number) => number;
|
|
1393
|
+
export declare const estimatedVideoSizeMb: (bitrateMbps: number, durationMs: number) => number;
|
|
1414
1394
|
/**
|
|
1415
1395
|
* aspectRatio returns the numeric width/height ratio for a frame aspect (16:9
|
|
1416
1396
|
* landscape, 9:16 portrait, or 1:1 square), so a preview surface can size its box to
|
|
@@ -1418,7 +1398,7 @@ declare const estimatedVideoSizeMb: (bitrateMbps: number, durationMs: number) =>
|
|
|
1418
1398
|
* landscape default). A pure mapping with no encoder side, kept beside the presets that
|
|
1419
1399
|
* set the aspect.
|
|
1420
1400
|
*/
|
|
1421
|
-
declare const aspectRatio: (aspect: CameraAspect) => number;
|
|
1401
|
+
export declare const aspectRatio: (aspect: CameraAspect) => number;
|
|
1422
1402
|
/**
|
|
1423
1403
|
* suggestVideoLengthMs proposes a flight duration (ms) for an itinerary from its length:
|
|
1424
1404
|
* roughly one second per kilometer plus a 10 s establishing cushion, rounded to
|
|
@@ -1429,8 +1409,7 @@ declare const aspectRatio: (aspect: CameraAspect) => number;
|
|
|
1429
1409
|
*
|
|
1430
1410
|
* @param routeLengthMeters The itinerary's length, in meters.
|
|
1431
1411
|
*/
|
|
1432
|
-
declare const suggestVideoLengthMs: (routeLengthMeters: number) => number;
|
|
1433
|
-
|
|
1412
|
+
export declare const suggestVideoLengthMs: (routeLengthMeters: number) => number;
|
|
1434
1413
|
/**
|
|
1435
1414
|
* sameRouteContent answers whether two routes hold the same content: every vertex, every
|
|
1436
1415
|
* elevation and every jump, in order, by the rule {@link holdsRouteContent} states.
|
|
@@ -1450,8 +1429,7 @@ declare const suggestVideoLengthMs: (routeLengthMeters: number) => number;
|
|
|
1450
1429
|
* }
|
|
1451
1430
|
* ```
|
|
1452
1431
|
*/
|
|
1453
|
-
declare const sameRouteContent: (a: RouteGeometry, b: RouteGeometry) => boolean;
|
|
1454
|
-
|
|
1432
|
+
export declare const sameRouteContent: (a: RouteGeometry, b: RouteGeometry) => boolean;
|
|
1455
1433
|
/**
|
|
1456
1434
|
* planDurationMs is the wall-clock length a plan plays for in milliseconds: its
|
|
1457
1435
|
* base `targetDurationMs` plus the sum of every shot's `holdMs` (each hold pauses
|
|
@@ -1459,8 +1437,7 @@ declare const sameRouteContent: (a: RouteGeometry, b: RouteGeometry) => boolean;
|
|
|
1459
1437
|
* is the duration the track resolver sizes its per-frame grid from, so the frame
|
|
1460
1438
|
* count reflects the holds the user added.
|
|
1461
1439
|
*/
|
|
1462
|
-
declare const planDurationMs: (plan: CameraPlan) => number;
|
|
1463
|
-
|
|
1440
|
+
export declare const planDurationMs: (plan: CameraPlan) => number;
|
|
1464
1441
|
/**
|
|
1465
1442
|
* capturesSweptViewports answers whether a record captures exactly the viewports its sweep jumped
|
|
1466
1443
|
* through, frame by frame, so the recorder needs no warm pass of its own.
|
|
@@ -1477,8 +1454,7 @@ declare const planDurationMs: (plan: CameraPlan) => number;
|
|
|
1477
1454
|
* @param captured - The poses the recorder captures.
|
|
1478
1455
|
* @returns True when both hold the same viewport at every frame.
|
|
1479
1456
|
*/
|
|
1480
|
-
declare const capturesSweptViewports: (swept: readonly ShotCamera[], captured: readonly ShotCamera[]) => boolean;
|
|
1481
|
-
|
|
1457
|
+
export declare const capturesSweptViewports: (swept: readonly ShotCamera[], captured: readonly ShotCamera[]) => boolean;
|
|
1482
1458
|
/**
|
|
1483
1459
|
* resolveFrameProgressions is the per-frame itinerary-progress fraction sequence both
|
|
1484
1460
|
* resolveCameraTrack and resolveRouteMarkers walk: for each of the
|
|
@@ -1492,7 +1468,7 @@ declare const capturesSweptViewports: (swept: readonly ShotCamera[], captured: r
|
|
|
1492
1468
|
* full-itinerary follow shots, so the sequence sweeps 0→1 even on a freshly-seeded
|
|
1493
1469
|
* director plan.
|
|
1494
1470
|
*/
|
|
1495
|
-
declare const resolveFrameProgressions: (plan: CameraPlan) => number[];
|
|
1471
|
+
export declare const resolveFrameProgressions: (plan: CameraPlan) => number[];
|
|
1496
1472
|
/**
|
|
1497
1473
|
* resolveCameraTrack turns a camera plan and its itinerary into the render-free
|
|
1498
1474
|
* per-frame pose array the map flies and records. The frame count is
|
|
@@ -1558,7 +1534,7 @@ declare const resolveFrameProgressions: (plan: CameraPlan) => number[];
|
|
|
1558
1534
|
* no finite number, naming it as `itinerary.line[index]`: such a vertex would turn every pose
|
|
1559
1535
|
* of the flight into `NaN`.
|
|
1560
1536
|
*/
|
|
1561
|
-
declare const resolveCameraTrack: (plan: CameraPlan, itinerary: RouteGeometry, sampler?: TerrainSampler, clearanceStride?: number) => readonly ShotCamera[];
|
|
1537
|
+
export declare const resolveCameraTrack: (plan: CameraPlan, itinerary: RouteGeometry, sampler?: TerrainSampler, clearanceStride?: number) => readonly ShotCamera[];
|
|
1562
1538
|
/**
|
|
1563
1539
|
* resolveRouteMarkers is the public per-frame moving-marker path, a thin wrapper
|
|
1564
1540
|
* over resolveMarkerSeries. Every returned point lies exactly on the itinerary polyline
|
|
@@ -1573,7 +1549,7 @@ declare const resolveCameraTrack: (plan: CameraPlan, itinerary: RouteGeometry, s
|
|
|
1573
1549
|
* @throws {MountayaElementsError} When the route holds a vertex whose longitude or latitude is
|
|
1574
1550
|
* no finite number, naming it as `itinerary.line[index]`, as {@link resolveCameraTrack} does.
|
|
1575
1551
|
*/
|
|
1576
|
-
declare const resolveRouteMarkers: (plan: CameraPlan, itinerary: RouteGeometry) => LngLat[];
|
|
1552
|
+
export declare const resolveRouteMarkers: (plan: CameraPlan, itinerary: RouteGeometry) => LngLat[];
|
|
1577
1553
|
/**
|
|
1578
1554
|
* clearanceStrideFor is the plan-level convenience the preview resolve uses to pick
|
|
1579
1555
|
* the clearance sample stride, mirroring resolveFrameProgressions in taking a whole
|
|
@@ -1583,7 +1559,7 @@ declare const resolveRouteMarkers: (plan: CameraPlan, itinerary: RouteGeometry)
|
|
|
1583
1559
|
* stride that keeps the solve a sub-100 ms task while a record passes 1 for full
|
|
1584
1560
|
* density and a byte-unchanged artifact.
|
|
1585
1561
|
*/
|
|
1586
|
-
declare const clearanceStrideFor: (plan: CameraPlan, itinerary: RouteGeometry) => number;
|
|
1562
|
+
export declare const clearanceStrideFor: (plan: CameraPlan, itinerary: RouteGeometry) => number;
|
|
1587
1563
|
/**
|
|
1588
1564
|
* posePlanSignature is a compact, stable string of ONLY the plan fields that change
|
|
1589
1565
|
* the resolved poses: the `mode`, the whole-flight `targetDurationMs`, and the output
|
|
@@ -1596,7 +1572,7 @@ declare const clearanceStrideFor: (plan: CameraPlan, itinerary: RouteGeometry) =
|
|
|
1596
1572
|
* the cached flight instead of re-resolving it. Shot order is the plan's own
|
|
1597
1573
|
* sorted-by-`at` order, so two plans with identical framing hash identically.
|
|
1598
1574
|
*/
|
|
1599
|
-
declare const posePlanSignature: (plan: CameraPlan) => string;
|
|
1575
|
+
export declare const posePlanSignature: (plan: CameraPlan) => string;
|
|
1600
1576
|
/**
|
|
1601
1577
|
* representativeStillFraction is the flight-fraction (0..1 over the frame grid) a
|
|
1602
1578
|
* parked preview should sit at so it shows the mode's TRAVELLING framing immediately
|
|
@@ -1608,8 +1584,7 @@ declare const posePlanSignature: (plan: CameraPlan) => string;
|
|
|
1608
1584
|
* this fraction to the pose at `round(fraction * lastFrame)`, so on a hold-warped grid
|
|
1609
1585
|
* it still lands past the frozen intro frames.
|
|
1610
1586
|
*/
|
|
1611
|
-
declare const representativeStillFraction: (plan: CameraPlan) => number;
|
|
1612
|
-
|
|
1587
|
+
export declare const representativeStillFraction: (plan: CameraPlan) => number;
|
|
1613
1588
|
/**
|
|
1614
1589
|
* groundMetersPerPixel returns the Web Mercator ground resolution at a zoom and latitude: how many
|
|
1615
1590
|
* ground meters one screen pixel spans, `(circumference * cos(lat)) / (tileSize * 2^zoom)`.
|
|
@@ -1623,8 +1598,7 @@ declare const representativeStillFraction: (plan: CameraPlan) => number;
|
|
|
1623
1598
|
* @returns Ground meters per CSS pixel, or 0 for a zoom that is no finite number (a degenerate
|
|
1624
1599
|
* span the caller reads as no budget).
|
|
1625
1600
|
*/
|
|
1626
|
-
declare const groundMetersPerPixel: (zoom: number, latitude: number) => number;
|
|
1627
|
-
|
|
1601
|
+
export declare const groundMetersPerPixel: (zoom: number, latitude: number) => number;
|
|
1628
1602
|
/**
|
|
1629
1603
|
* CINEMATIC_EYE_HEIGHT_METERS is the height, in meters, the `cinematic` preset's eye flies above
|
|
1630
1604
|
* the route's surface elevation.
|
|
@@ -1634,7 +1608,7 @@ declare const groundMetersPerPixel: (zoom: number, latitude: number) => number;
|
|
|
1634
1608
|
* keyframe before it derives the zoom, and `modeEyeHeightMeters.cinematic` is this constant, so a
|
|
1635
1609
|
* consumer reproducing the preset's framing reads the height the preset flies at.
|
|
1636
1610
|
*/
|
|
1637
|
-
declare const CINEMATIC_EYE_HEIGHT_METERS = 260;
|
|
1611
|
+
export declare const CINEMATIC_EYE_HEIGHT_METERS = 260;
|
|
1638
1612
|
/**
|
|
1639
1613
|
* POINT_ZOOM is the zoom a camera lands at on a point that names no extent, when the caller
|
|
1640
1614
|
* names no zoom either: close enough to read the place, wide enough to keep its surroundings.
|
|
@@ -1652,7 +1626,7 @@ declare const CINEMATIC_EYE_HEIGHT_METERS = 260;
|
|
|
1652
1626
|
* map.flyTo({ center: point, zoom: POINT_ZOOM });
|
|
1653
1627
|
* ```
|
|
1654
1628
|
*/
|
|
1655
|
-
declare const POINT_ZOOM = 13;
|
|
1629
|
+
export declare const POINT_ZOOM = 13;
|
|
1656
1630
|
/**
|
|
1657
1631
|
* DEFAULT_VIEWPORT_HEIGHT_PX is the canvas height, in CSS pixels, altitudeToZoom and
|
|
1658
1632
|
* viewportGroundSpanMeters calibrate against when a caller does not pass the live
|
|
@@ -1661,7 +1635,7 @@ declare const POINT_ZOOM = 13;
|
|
|
1661
1635
|
* running without a map). The track resolver's framing budget reads the same
|
|
1662
1636
|
* nominal height, and so does a consumer that frames shots of its own with no canvas.
|
|
1663
1637
|
*/
|
|
1664
|
-
declare const DEFAULT_VIEWPORT_HEIGHT_PX = 800;
|
|
1638
|
+
export declare const DEFAULT_VIEWPORT_HEIGHT_PX = 800;
|
|
1665
1639
|
/**
|
|
1666
1640
|
* altitudeToZoom converts a camera eye altitude in meters to a MapLibre zoom
|
|
1667
1641
|
* level, from MapLibre's perspective model: the camera's altitude projects to a
|
|
@@ -1678,7 +1652,7 @@ declare const DEFAULT_VIEWPORT_HEIGHT_PX = 800;
|
|
|
1678
1652
|
* @param viewportHeightPx The canvas height in CSS pixels. Defaults to
|
|
1679
1653
|
* {@link DEFAULT_VIEWPORT_HEIGHT_PX}.
|
|
1680
1654
|
*/
|
|
1681
|
-
declare const altitudeToZoom: (altitudeMeters: number, latitude: number, viewportHeightPx?: number) => number;
|
|
1655
|
+
export declare const altitudeToZoom: (altitudeMeters: number, latitude: number, viewportHeightPx?: number) => number;
|
|
1682
1656
|
/**
|
|
1683
1657
|
* zoomToAltitude is the inverse of altitudeToZoom: it converts a MapLibre zoom
|
|
1684
1658
|
* level back to the camera eye altitude in meters the perspective model places
|
|
@@ -1697,7 +1671,7 @@ declare const altitudeToZoom: (altitudeMeters: number, latitude: number, viewpor
|
|
|
1697
1671
|
* @param viewportHeightPx The canvas height in CSS pixels. Defaults to
|
|
1698
1672
|
* {@link DEFAULT_VIEWPORT_HEIGHT_PX}.
|
|
1699
1673
|
*/
|
|
1700
|
-
declare const zoomToAltitude: (zoom: number, latitude: number, viewportHeightPx?: number) => number;
|
|
1674
|
+
export declare const zoomToAltitude: (zoom: number, latitude: number, viewportHeightPx?: number) => number;
|
|
1701
1675
|
/**
|
|
1702
1676
|
* viewportGroundSpanMeters returns the ground distance in meters the full
|
|
1703
1677
|
* viewport height covers at a zoom and latitude: the viewport height in pixels
|
|
@@ -1710,8 +1684,7 @@ declare const zoomToAltitude: (zoom: number, latitude: number, viewportHeightPx?
|
|
|
1710
1684
|
* {@link DEFAULT_VIEWPORT_HEIGHT_PX}, the render-free nominal height, so the value is
|
|
1711
1685
|
* usable without a live canvas.
|
|
1712
1686
|
*/
|
|
1713
|
-
declare const viewportGroundSpanMeters: (zoom: number, latitude: number, viewportHeightPx?: number) => number;
|
|
1714
|
-
|
|
1687
|
+
export declare const viewportGroundSpanMeters: (zoom: number, latitude: number, viewportHeightPx?: number) => number;
|
|
1715
1688
|
/**
|
|
1716
1689
|
* ZoomLimitReached is which end of its zoom window a camera stands at: the ceiling, the floor, both
|
|
1717
1690
|
* (a window of one zoom), or neither.
|
|
@@ -1735,9 +1708,9 @@ type ZoomLimitReached = "both" | "ceiling" | "floor" | "none";
|
|
|
1735
1708
|
* zoomLimitReached(12, { max: 12, min: 12 }); // "both"
|
|
1736
1709
|
* ```
|
|
1737
1710
|
*/
|
|
1738
|
-
declare const zoomLimitReached: (zoom: number, window: {
|
|
1739
|
-
|
|
1740
|
-
|
|
1711
|
+
export declare const zoomLimitReached: (zoom: number, window: {
|
|
1712
|
+
readonly max: number;
|
|
1713
|
+
readonly min: number;
|
|
1741
1714
|
}) => ZoomLimitReached;
|
|
1742
1715
|
/**
|
|
1743
1716
|
* zoomControlsDisabled names the zoom controls disabled at each end a camera stands at: zoom in at
|
|
@@ -1745,7 +1718,6 @@ declare const zoomLimitReached: (zoom: number, window: {
|
|
|
1745
1718
|
* whoever answers its press, the map or a handler that takes the press over, since either would
|
|
1746
1719
|
* move the camera nowhere.
|
|
1747
1720
|
*/
|
|
1748
|
-
declare const zoomControlsDisabled: Readonly<Record<ZoomLimitReached, readonly ("zoom-in" | "zoom-out")[]>>;
|
|
1749
|
-
|
|
1750
|
-
|
|
1751
|
-
export type { BoundsCamera, BoundsCameraOptions, CameraPlanGenerator, CameraPlanner, ClearanceAdjustment, ClearanceFrame, ClearanceOptions, GeneratorParams, RouteCursor, TerrainSampler, VideoFlight, VideoFlightMap, VideoFlightOptions, VideoFlightOutcome, VideoFlightProfile, VideoFlightRecording, VideoFlightStatus, VideoPresetTemplate, ZoomLimitReached };
|
|
1721
|
+
export declare const zoomControlsDisabled: Readonly<Record<ZoomLimitReached, readonly ("zoom-in" | "zoom-out")[]>>;
|
|
1722
|
+
export { type BoundingBox, type BoundsCamera, type BoundsCameraOptions, CAMERA_ASPECTS, CAMERA_BEARING_MODES, CAMERA_FPS, CAMERA_MODES, CAMERA_OUTPUT_FORMATS, CAMERA_RESOLUTIONS, type CameraAspect, type CameraBearingMode, type CameraFps, type CameraMode, type CameraOutput, type CameraOutputFormat, type CameraPlan, type CameraPlanGenerator, type CameraPlanInput, type CameraPlanner, type CameraResolution, type CameraShot, type ClearanceAdjustment, type ClearanceFrame, type ClearanceOptions, DEFAULT_TARGET_DURATION_MS, type GeneratorParams, type LngLat, PROFILE_DESIGNS, type ProfileDesign, type ProfileSample, type ProfileSource, QUALITY_TIERS, type Quality, type RecordOutput, type RecordProfile, type RecordingCamera, type RouteCursor, type RouteGeometry, type SegmentSpan, type ShotCamera, type TerrainSampler, type UnitFormatOptions, VIDEO_PRESETS_AVAILABLE, VIDEO_RECORDING_PHASES, type VideoFlight, type VideoFlightMap, type VideoFlightOptions, type VideoFlightOutcome, type VideoFlightProfile, type VideoFlightRecording, type VideoFlightStatus, type VideoPreset, type VideoPresetTemplate, type VideoProgress, type VideoRecordingPhase, type VideoRecordingResult, type ZoomLimitReached, createCameraPlan, cumulativeMeters, defaultCameraOutput, defaultCameraShot, insertShotSorted, resolveProfileSamples, routeLengthMeters };
|
|
1723
|
+
//# sourceMappingURL=index.d.cts.map
|