@mountaya/elements 0.1.0 → 0.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +38 -0
- package/README.md +4 -3
- package/THIRD-PARTY-NOTICES.txt +1 -1
- package/dist/agent/index.cjs +1152 -1905
- package/dist/agent/index.cjs.map +1 -1
- package/dist/agent/index.d.cts +1152 -1202
- package/dist/agent/index.d.ts +1152 -1202
- package/dist/agent/index.js +1147 -1903
- package/dist/agent/index.js.map +1 -1
- package/dist/camera/index.cjs +2470 -3435
- package/dist/camera/index.cjs.map +1 -1
- package/dist/camera/index.d.cts +716 -744
- package/dist/camera/index.d.ts +716 -744
- package/dist/camera/index.js +2438 -3323
- package/dist/camera/index.js.map +1 -1
- package/dist/{units-D9mBrusY.d.cts → chunk-5pTPpv4v.d.cts} +38 -41
- package/dist/{units-D9mBrusY.d.ts → chunk-5pTPpv4v.d.ts} +38 -41
- package/dist/{order-BLhsGsH8.d.ts → chunk-6JzFMFHh.d.ts} +15 -28
- package/dist/chunk-6qyuJVvt.d.ts +513 -0
- package/dist/chunk-9fp0lDic.cjs +583 -0
- package/dist/chunk-9fp0lDic.cjs.map +1 -0
- package/dist/{zones-B05QA8fy.d.ts → chunk-A48H1rDg.d.cts} +2 -4
- package/dist/{zones-B05QA8fy.d.cts → chunk-A48H1rDg.d.ts} +2 -4
- package/dist/chunk-B-m1AchR.cjs +57 -0
- package/dist/chunk-B-m1AchR.cjs.map +1 -0
- package/dist/{bundle-xYrrbJTH.d.ts → chunk-B-qFTf04.d.ts} +51 -57
- package/dist/chunk-B0YROiZh.d.cts +1475 -0
- package/dist/chunk-B14wgOvH.d.cts +68 -0
- package/dist/chunk-B19l3j9r.cjs +150 -0
- package/dist/chunk-B19l3j9r.cjs.map +1 -0
- package/dist/chunk-B2PtjVKg.cjs +86 -0
- package/dist/chunk-B2PtjVKg.cjs.map +1 -0
- package/dist/chunk-B56Oyb7W.cjs +70 -0
- package/dist/chunk-B56Oyb7W.cjs.map +1 -0
- package/dist/chunk-B5WGMQwK.cjs +113 -0
- package/dist/chunk-B5WGMQwK.cjs.map +1 -0
- package/dist/{types-nO2joeRk.d.ts → chunk-B98mKrdu.d.cts} +103 -122
- package/dist/{videoOverlay-Dh_D5_Zs.d.ts → chunk-BB0PmqIM.d.cts} +10 -10
- package/dist/chunk-BBikve0Z.cjs +269 -0
- package/dist/chunk-BBikve0Z.cjs.map +1 -0
- package/dist/chunk-BHeXmM0X.js +37 -0
- package/dist/chunk-BHeXmM0X.js.map +1 -0
- package/dist/chunk-BI8WZLpU.cjs +281 -0
- package/dist/chunk-BI8WZLpU.cjs.map +1 -0
- package/dist/chunk-BIEc_SkR.cjs +29 -0
- package/dist/chunk-BIEc_SkR.cjs.map +1 -0
- package/dist/chunk-BJ6L6_W9.cjs +553 -0
- package/dist/chunk-BJ6L6_W9.cjs.map +1 -0
- package/dist/chunk-BJ91UCbB.js +11 -0
- package/dist/chunk-BJ91UCbB.js.map +1 -0
- package/dist/chunk-BJEZWTKj.cjs +166 -0
- package/dist/chunk-BJEZWTKj.cjs.map +1 -0
- package/dist/chunk-BJz54mfg.cjs +10 -0
- package/dist/chunk-BJz54mfg.cjs.map +1 -0
- package/dist/{sections-CVlc2Inr.d.cts → chunk-BNX5LAfN.d.cts} +289 -330
- package/dist/chunk-BP6KgA86.js +35 -0
- package/dist/chunk-BP6KgA86.js.map +1 -0
- package/dist/{segmentRoute-C5UL_5bp.d.ts → chunk-BRnjQq6K.d.cts} +44 -59
- package/dist/chunk-BSiMEwPS.js +46 -0
- package/dist/chunk-BSiMEwPS.js.map +1 -0
- package/dist/chunk-BTPjDw_y.cjs +16 -0
- package/dist/chunk-BTPjDw_y.cjs.map +1 -0
- package/dist/chunk-BTUUABGI.js +17 -0
- package/dist/chunk-BTUUABGI.js.map +1 -0
- package/dist/chunk-BUeL9y7s.cjs +45 -0
- package/dist/chunk-BUeL9y7s.cjs.map +1 -0
- package/dist/chunk-BWMuCNc9.cjs +172 -0
- package/dist/chunk-BWMuCNc9.cjs.map +1 -0
- package/dist/chunk-BWjRfhpF.js +126 -0
- package/dist/chunk-BWjRfhpF.js.map +1 -0
- package/dist/{types-CTQwbSdA.d.cts → chunk-BZ5KyZXI.d.ts} +103 -122
- package/dist/chunk-B_4SVmvh.js +94 -0
- package/dist/chunk-B_4SVmvh.js.map +1 -0
- package/dist/chunk-BcTUuZQ3.js +95 -0
- package/dist/chunk-BcTUuZQ3.js.map +1 -0
- package/dist/chunk-BdkqSsJe.cjs +140 -0
- package/dist/chunk-BdkqSsJe.cjs.map +1 -0
- package/dist/chunk-BfktMVmI.js +70 -0
- package/dist/chunk-BfktMVmI.js.map +1 -0
- package/dist/chunk-BfzQb0EK.cjs +6 -0
- package/dist/chunk-BhWfT-22.d.cts +808 -0
- package/dist/chunk-BjJcqX5J.cjs +60 -0
- package/dist/chunk-BjJcqX5J.cjs.map +1 -0
- package/dist/{geodesy-543qXKtI.d.ts → chunk-Bk0L8g5J.d.cts} +3 -4
- package/dist/{geodesy-543qXKtI.d.cts → chunk-Bk0L8g5J.d.ts} +3 -4
- package/dist/chunk-Bl4_uVa6.cjs +11 -0
- package/dist/chunk-Bl4_uVa6.cjs.map +1 -0
- package/dist/chunk-BlKF4lrp.js +43 -0
- package/dist/chunk-BlKF4lrp.js.map +1 -0
- package/dist/chunk-Bm1FieGR.js +4 -0
- package/dist/chunk-Bm1FieGR.js.map +1 -0
- package/dist/chunk-Bn6ZbxkS.cjs +27 -0
- package/dist/chunk-BpN3hr6a.cjs +541 -0
- package/dist/chunk-BpN3hr6a.cjs.map +1 -0
- package/dist/{order-BZkUwMou.d.cts → chunk-Bq_WHTfd.d.cts} +15 -28
- package/dist/chunk-Bqt4LBBz.cjs +648 -0
- package/dist/chunk-Bqt4LBBz.cjs.map +1 -0
- package/dist/{language-CEWQ5uYw.d.cts → chunk-Bqt97zwf.d.cts} +3 -18
- package/dist/{language-CEWQ5uYw.d.ts → chunk-Bqt97zwf.d.ts} +3 -18
- package/dist/chunk-BsBiN4w6.d.cts +245 -0
- package/dist/chunk-BvTpOUoC.cjs +207 -0
- package/dist/chunk-BvTpOUoC.cjs.map +1 -0
- package/dist/chunk-BwK6Hl3q.cjs +446 -0
- package/dist/chunk-BwK6Hl3q.cjs.map +1 -0
- package/dist/{elevationTiles-pmsb9wnU.d.cts → chunk-BxDQZDXR.d.cts} +26 -27
- package/dist/{elevationTiles-pmsb9wnU.d.ts → chunk-BxDQZDXR.d.ts} +26 -27
- package/dist/chunk-BxUio8kX.js +20 -0
- package/dist/chunk-BxUio8kX.js.map +1 -0
- package/dist/chunk-BxaocpFi.d.cts +1 -0
- package/dist/chunk-Bywi0K1N.js +36 -0
- package/dist/chunk-Bywi0K1N.js.map +1 -0
- package/dist/chunk-C-IlmkDl.js +59 -0
- package/dist/chunk-C-IlmkDl.js.map +1 -0
- package/dist/chunk-C5PtVewq.d.ts +389 -0
- package/dist/chunk-C5dpC7mQ.js +19 -0
- package/dist/chunk-C5dpC7mQ.js.map +1 -0
- package/dist/chunk-C5q1sgSa.js +46 -0
- package/dist/chunk-C5q1sgSa.js.map +1 -0
- package/dist/chunk-C6fU9G5I.cjs +221 -0
- package/dist/chunk-C6fU9G5I.cjs.map +1 -0
- package/dist/chunk-C71dpWUK.js +5 -0
- package/dist/chunk-C71dpWUK.js.map +1 -0
- package/dist/chunk-C82N1gQX.d.ts +1831 -0
- package/dist/chunk-C8HdaHpu.js +118 -0
- package/dist/chunk-C8HdaHpu.js.map +1 -0
- package/dist/chunk-C8ZGryck.js +236 -0
- package/dist/chunk-C8ZGryck.js.map +1 -0
- package/dist/chunk-C95NG0oD.cjs +43 -0
- package/dist/chunk-C95NG0oD.cjs.map +1 -0
- package/dist/chunk-C9aR8DXb.js +9 -0
- package/dist/chunk-C9aR8DXb.js.map +1 -0
- package/dist/{camera-C48Ykaxv.d.ts → chunk-CAUZnoCs.d.ts} +135 -159
- package/dist/chunk-CBXWWuM9.cjs +82 -0
- package/dist/chunk-CBXWWuM9.cjs.map +1 -0
- package/dist/chunk-CC_Kquu7.d.cts +125 -0
- package/dist/chunk-CC_Kquu7.d.ts +125 -0
- package/dist/chunk-CCp85vXg.cjs +60 -0
- package/dist/chunk-CCp85vXg.cjs.map +1 -0
- package/dist/chunk-CEcB1_uK.js +39 -0
- package/dist/chunk-CEcB1_uK.js.map +1 -0
- package/dist/{bundle-Je5zsRFg.d.cts → chunk-CFIo021l.d.cts} +51 -57
- package/dist/chunk-CH_IZoJE.js +33 -0
- package/dist/chunk-CH_IZoJE.js.map +1 -0
- package/dist/chunk-CHrasH_g.cjs +25 -0
- package/dist/chunk-CHrasH_g.cjs.map +1 -0
- package/dist/chunk-CJVoSaAE.cjs +3 -0
- package/dist/chunk-CJp8nGcb.js +96 -0
- package/dist/chunk-CJp8nGcb.js.map +1 -0
- package/dist/chunk-CJwUtkOt.js +112 -0
- package/dist/chunk-CJwUtkOt.js.map +1 -0
- package/dist/chunk-CKhCOVIf.d.cts +751 -0
- package/dist/chunk-CKiVSRYg.js +50 -0
- package/dist/chunk-CKiVSRYg.js.map +1 -0
- package/dist/chunk-CKtd19eD.cjs +59 -0
- package/dist/chunk-CKtd19eD.cjs.map +1 -0
- package/dist/chunk-CL92KE3j.d.ts +3188 -0
- package/dist/chunk-CLqUlkAe.js +54 -0
- package/dist/chunk-CLqUlkAe.js.map +1 -0
- package/dist/chunk-CMG5OV0q.cjs +4741 -0
- package/dist/chunk-CMG5OV0q.cjs.map +1 -0
- package/dist/chunk-CN_TKSgm.js +10 -0
- package/dist/chunk-CN_TKSgm.js.map +1 -0
- package/dist/chunk-CNe6MtqV.cjs +29 -0
- package/dist/chunk-CNe6MtqV.cjs.map +1 -0
- package/dist/chunk-COQkDTC5.js +83 -0
- package/dist/chunk-COQkDTC5.js.map +1 -0
- package/dist/chunk-CPBl6K4M.cjs +168 -0
- package/dist/chunk-CPBl6K4M.cjs.map +1 -0
- package/dist/chunk-CPx0ZYFB.d.ts +3 -0
- package/dist/chunk-CQQhcP_C.d.ts +197 -0
- package/dist/chunk-CTNoajFh.d.cts +389 -0
- package/dist/chunk-CTd-qgJc.cjs +384 -0
- package/dist/chunk-CTd-qgJc.cjs.map +1 -0
- package/dist/chunk-CW80YYtU.cjs +1056 -0
- package/dist/chunk-CW80YYtU.cjs.map +1 -0
- package/dist/{searchLimits-j99-NTXR.d.ts → chunk-CWpqBgkF.d.cts} +2 -2
- package/dist/{searchLimits-j99-NTXR.d.cts → chunk-CWpqBgkF.d.ts} +2 -2
- package/dist/chunk-CXjRArgy.d.ts +3 -0
- package/dist/chunk-CXonfH3-.cjs +14 -0
- package/dist/chunk-CXonfH3-.cjs.map +1 -0
- package/dist/chunk-CYcouGXN.d.ts +825 -0
- package/dist/chunk-CZDAzEBw.cjs +1621 -0
- package/dist/chunk-CZDAzEBw.cjs.map +1 -0
- package/dist/{amenities-B3-qAjxu.d.cts → chunk-C_fQFr70.d.cts} +40 -41
- package/dist/{amenities-B3-qAjxu.d.ts → chunk-C_fQFr70.d.ts} +40 -41
- package/dist/chunk-CbOtHnnB.cjs +359 -0
- package/dist/chunk-CbOtHnnB.cjs.map +1 -0
- package/dist/chunk-CdA6ZMGk.d.cts +825 -0
- package/dist/chunk-Ce1_thm7.js +146 -0
- package/dist/chunk-Ce1_thm7.js.map +1 -0
- package/dist/chunk-CeD8Hw0j.d.cts +3188 -0
- package/dist/{camera-BrFLU1DH.d.cts → chunk-CeiTuMyt.d.cts} +135 -159
- package/dist/chunk-Ch1OLzLi.js +1 -0
- package/dist/chunk-Cizu_j1N.cjs +87 -0
- package/dist/chunk-Cizu_j1N.cjs.map +1 -0
- package/dist/chunk-CjDe9z6A.d.cts +427 -0
- package/dist/chunk-Cl1etdlu.js +63 -0
- package/dist/chunk-Cl1etdlu.js.map +1 -0
- package/dist/chunk-CmoVJDoz.js +4 -0
- package/dist/chunk-CmoVJDoz.js.map +1 -0
- package/dist/chunk-CnLucxjG.cjs +197 -0
- package/dist/chunk-CnLucxjG.cjs.map +1 -0
- package/dist/chunk-CsWjBmdi.cjs +56 -0
- package/dist/chunk-CsWjBmdi.cjs.map +1 -0
- package/dist/chunk-CuseO5MZ.d.cts +3 -0
- package/dist/chunk-CvMHibbA.d.ts +427 -0
- package/dist/chunk-CwDeiN5U.js +870 -0
- package/dist/chunk-CwDeiN5U.js.map +1 -0
- package/dist/chunk-Cwdmx4tG.js +1 -0
- package/dist/{geolocation-DDkQdWMN.d.cts → chunk-D-4MxHTt.d.cts} +33 -34
- package/dist/{geolocation-DDkQdWMN.d.ts → chunk-D-4MxHTt.d.ts} +33 -34
- package/dist/chunk-D0LF-99V.js +1093 -0
- package/dist/chunk-D0LF-99V.js.map +1 -0
- package/dist/chunk-D1fe-0c_.js +367 -0
- package/dist/chunk-D1fe-0c_.js.map +1 -0
- package/dist/chunk-D21fEI6A.d.ts +1926 -0
- package/dist/chunk-D39gAxya.cjs +89 -0
- package/dist/chunk-D39gAxya.cjs.map +1 -0
- package/dist/chunk-D6KdIW5e.cjs +228 -0
- package/dist/chunk-D6KdIW5e.cjs.map +1 -0
- package/dist/chunk-D6qHYbgW.d.cts +36 -0
- package/dist/{videoOverlay-Dh_D5_Zs.d.cts → chunk-D89E-w70.d.ts} +10 -10
- package/dist/chunk-D8bdTysL.js +552 -0
- package/dist/chunk-D8bdTysL.js.map +1 -0
- package/dist/chunk-D96QJT24.cjs +109 -0
- package/dist/chunk-D96QJT24.cjs.map +1 -0
- package/dist/chunk-DAmkQl-i.js +119 -0
- package/dist/chunk-DAmkQl-i.js.map +1 -0
- package/dist/chunk-DEfsb2lc.cjs +10 -0
- package/dist/chunk-DEfsb2lc.cjs.map +1 -0
- package/dist/chunk-DIFjT5-V.d.cts +66 -0
- package/dist/{sections-CmtaduLc.d.ts → chunk-DJpUw8TN.d.ts} +289 -330
- package/dist/chunk-DK6lm2IZ.cjs +11 -0
- package/dist/chunk-DK6lm2IZ.cjs.map +1 -0
- package/dist/chunk-DKqgr31j.cjs +61 -0
- package/dist/chunk-DKqgr31j.cjs.map +1 -0
- package/dist/chunk-DLZ0QYm9.js +37 -0
- package/dist/chunk-DLZ0QYm9.js.map +1 -0
- package/dist/chunk-DLjS0uaC.js +4 -0
- package/dist/chunk-DLjS0uaC.js.map +1 -0
- package/dist/chunk-DMokwmOV.cjs +49 -0
- package/dist/chunk-DMokwmOV.cjs.map +1 -0
- package/dist/chunk-DMvWgBZL.d.cts +1831 -0
- package/dist/chunk-DNfGfIF3.js +31 -0
- package/dist/chunk-DNfGfIF3.js.map +1 -0
- package/dist/chunk-DQbSRe8D.d.ts +245 -0
- package/dist/chunk-DSGkP8_y.js +45 -0
- package/dist/chunk-DSGkP8_y.js.map +1 -0
- package/dist/chunk-DTctvfSd.d.cts +197 -0
- package/dist/chunk-DWe7igyw.cjs +206 -0
- package/dist/chunk-DWe7igyw.cjs.map +1 -0
- package/dist/chunk-DWsMP5JR.d.ts +68 -0
- package/dist/{provider-DM71XnLX.d.cts → chunk-DWsm3HIW.d.cts} +37 -38
- package/dist/{provider-DM71XnLX.d.ts → chunk-DWsm3HIW.d.ts} +37 -38
- package/dist/chunk-DXABHjLa.cjs +3 -0
- package/dist/chunk-D_BeqSbc.cjs +42 -0
- package/dist/chunk-D_BeqSbc.cjs.map +1 -0
- package/dist/chunk-D_svQNdW.d.ts +66 -0
- package/dist/chunk-Dav4xWrp.js +330 -0
- package/dist/chunk-Dav4xWrp.js.map +1 -0
- package/dist/chunk-DbCPhepL.js +293 -0
- package/dist/chunk-DbCPhepL.js.map +1 -0
- package/dist/chunk-DcrTy-y2.cjs +43 -0
- package/dist/chunk-DcrTy-y2.cjs.map +1 -0
- package/dist/chunk-Ddv484ld.js +487 -0
- package/dist/chunk-Ddv484ld.js.map +1 -0
- package/dist/chunk-De0bjnhY.cjs +88 -0
- package/dist/chunk-De0bjnhY.cjs.map +1 -0
- package/dist/chunk-De2FmNPu.cjs +32 -0
- package/dist/chunk-De2FmNPu.cjs.map +1 -0
- package/dist/{segmentRoute-CIo6dR8Y.d.cts → chunk-DeSjQXiI.d.ts} +44 -59
- package/dist/chunk-Den0Ta6C.js +132 -0
- package/dist/chunk-Den0Ta6C.js.map +1 -0
- package/dist/chunk-DiDKEeEa.js +8 -0
- package/dist/chunk-DiDKEeEa.js.map +1 -0
- package/dist/chunk-Dj60k5PU.js +197 -0
- package/dist/chunk-Dj60k5PU.js.map +1 -0
- package/dist/chunk-DjnYQBCN.js +4705 -0
- package/dist/chunk-DjnYQBCN.js.map +1 -0
- package/dist/chunk-Dk9VKvyq.d.ts +1 -0
- package/dist/chunk-Dor1ERI9.cjs +85 -0
- package/dist/chunk-Dor1ERI9.cjs.map +1 -0
- package/dist/chunk-DpMouOoH.js +451 -0
- package/dist/chunk-DpMouOoH.js.map +1 -0
- package/dist/chunk-DposgdNL.cjs +52 -0
- package/dist/chunk-DposgdNL.cjs.map +1 -0
- package/dist/chunk-DqLTG_5Q.d.cts +3 -0
- package/dist/{roadAccess-D_rOE4xW.d.cts → chunk-Dr5MCIpS.d.cts} +5 -28
- package/dist/{roadAccess-D_rOE4xW.d.ts → chunk-Dr5MCIpS.d.ts} +5 -28
- package/dist/chunk-DrudttCC.cjs +4 -0
- package/dist/chunk-DsDYVJQC.js +173 -0
- package/dist/chunk-DsDYVJQC.js.map +1 -0
- package/dist/chunk-Dw8ur6FJ.js +27 -0
- package/dist/chunk-Dw8ur6FJ.js.map +1 -0
- package/dist/chunk-DwG6M_0v.js +64 -0
- package/dist/chunk-DwG6M_0v.js.map +1 -0
- package/dist/chunk-Dy9a5ibO.js +284 -0
- package/dist/chunk-Dy9a5ibO.js.map +1 -0
- package/dist/chunk-DyayZlQJ.js +157 -0
- package/dist/chunk-DyayZlQJ.js.map +1 -0
- package/dist/chunk-DyhJZC2i.js +126 -0
- package/dist/chunk-DyhJZC2i.js.map +1 -0
- package/dist/chunk-F9zBzmmG.cjs +45 -0
- package/dist/chunk-F9zBzmmG.cjs.map +1 -0
- package/dist/chunk-FyCYofv2.js +116 -0
- package/dist/chunk-FyCYofv2.js.map +1 -0
- package/dist/chunk-GHJRjAk2.js +1 -0
- package/dist/chunk-H14isiSf.d.ts +751 -0
- package/dist/chunk-HIJzXoN4.js +7 -0
- package/dist/chunk-HIJzXoN4.js.map +1 -0
- package/dist/chunk-Id_8kRtu.d.ts +36 -0
- package/dist/chunk-KN60yxBQ.js +5 -0
- package/dist/chunk-KN60yxBQ.js.map +1 -0
- package/dist/chunk-NM5yg6bh.cjs +82 -0
- package/dist/chunk-NM5yg6bh.cjs.map +1 -0
- package/dist/chunk-OXr3zJfM.cjs +119 -0
- package/dist/chunk-OXr3zJfM.cjs.map +1 -0
- package/dist/chunk-QGqgNC4z.d.ts +928 -0
- package/dist/chunk-QJBtJrZ0.js +36 -0
- package/dist/chunk-QJBtJrZ0.js.map +1 -0
- package/dist/{routeProfile-BsSUABXv.d.cts → chunk-QKWhxfPv.d.cts} +196 -45
- package/dist/{routeProfile-BKfSfxx6.d.ts → chunk-QKWhxfPv.d.ts} +196 -45
- package/dist/chunk-QXW7b4Ev.d.cts +410 -0
- package/dist/chunk-RHZrxUrM.cjs +39 -0
- package/dist/chunk-RHZrxUrM.cjs.map +1 -0
- package/dist/chunk-RTxe2i66.js +91 -0
- package/dist/chunk-RTxe2i66.js.map +1 -0
- package/dist/chunk-RrKkJb6P.js +16 -0
- package/dist/chunk-RrKkJb6P.js.map +1 -0
- package/dist/chunk-VOJqpcnM.cjs +181 -0
- package/dist/chunk-VOJqpcnM.cjs.map +1 -0
- package/dist/chunk-VljGTrid.js +1 -0
- package/dist/chunk-X3UVwUEK.d.cts +513 -0
- package/dist/chunk-X9K2WChn.cjs +28 -0
- package/dist/chunk-X9K2WChn.cjs.map +1 -0
- package/dist/chunk-YrtOx6oy.js +251 -0
- package/dist/chunk-YrtOx6oy.js.map +1 -0
- package/dist/chunk-bY7ySujI.d.cts +928 -0
- package/dist/chunk-bYf1sBz5.d.cts +11 -0
- package/dist/chunk-bYf1sBz5.d.ts +11 -0
- package/dist/chunk-blfknWoM.d.cts +1926 -0
- package/dist/chunk-blqsohAb.js +113 -0
- package/dist/chunk-blqsohAb.js.map +1 -0
- package/dist/chunk-cDMCjodI.cjs +58 -0
- package/dist/chunk-cDMCjodI.cjs.map +1 -0
- package/dist/chunk-cWjE3qd6.cjs +10 -0
- package/dist/chunk-cWjE3qd6.cjs.map +1 -0
- package/dist/chunk-dfOgV3fu.js +26 -0
- package/dist/chunk-dfOgV3fu.js.map +1 -0
- package/dist/chunk-f9cTwUX1.cjs +125 -0
- package/dist/chunk-f9cTwUX1.cjs.map +1 -0
- package/dist/chunk-fHVYEZs4.cjs +28 -0
- package/dist/chunk-fHVYEZs4.cjs.map +1 -0
- package/dist/chunk-fWRUMgRI.js +22 -0
- package/dist/chunk-fWRUMgRI.js.map +1 -0
- package/dist/{types-BEv8V_8V.d.cts → chunk-fozLXfHY.d.cts} +8 -8
- package/dist/{types-BEv8V_8V.d.ts → chunk-fozLXfHY.d.ts} +8 -8
- package/dist/chunk-gWmB1l3A.cjs +3122 -0
- package/dist/chunk-gWmB1l3A.cjs.map +1 -0
- package/dist/chunk-gbj2R-_w.js +58 -0
- package/dist/chunk-gbj2R-_w.js.map +1 -0
- package/dist/chunk-iIWxsAXd.js +59 -0
- package/dist/chunk-iIWxsAXd.js.map +1 -0
- package/dist/chunk-lItIuOIS.cjs +137 -0
- package/dist/chunk-lItIuOIS.cjs.map +1 -0
- package/dist/chunk-m6Rh4PCe.cjs +798 -0
- package/dist/chunk-m6Rh4PCe.cjs.map +1 -0
- package/dist/chunk-o3IRANDf.cjs +99 -0
- package/dist/chunk-o3IRANDf.cjs.map +1 -0
- package/dist/chunk-obUcg3Sk.d.ts +808 -0
- package/dist/chunk-ohsf-6Rn.js +600 -0
- package/dist/chunk-ohsf-6Rn.js.map +1 -0
- package/dist/chunk-pBleU6Nv.js +3061 -0
- package/dist/chunk-pBleU6Nv.js.map +1 -0
- package/dist/chunk-px4e99cy.js +71 -0
- package/dist/chunk-px4e99cy.js.map +1 -0
- package/dist/chunk-qwYDLeXc.cjs +99 -0
- package/dist/chunk-qwYDLeXc.cjs.map +1 -0
- package/dist/chunk-rF_859Qk.cjs +101 -0
- package/dist/chunk-rF_859Qk.cjs.map +1 -0
- package/dist/chunk-rLJkqJ5j.d.ts +1475 -0
- package/dist/chunk-twQItIRg.cjs +338 -0
- package/dist/chunk-twQItIRg.cjs.map +1 -0
- package/dist/chunk-vnPrMVjY.js +10 -0
- package/dist/chunk-vnPrMVjY.js.map +1 -0
- package/dist/chunk-ws3bVwaS.d.ts +410 -0
- package/dist/chunk-xh3UkuVs.cjs +246 -0
- package/dist/chunk-xh3UkuVs.cjs.map +1 -0
- package/dist/chunk-yMzRr26E.js +153 -0
- package/dist/chunk-yMzRr26E.js.map +1 -0
- package/dist/collab/index.cjs +802 -1254
- package/dist/collab/index.cjs.map +1 -1
- package/dist/collab/index.d.cts +518 -544
- package/dist/collab/index.d.ts +518 -544
- package/dist/collab/index.js +797 -1252
- package/dist/collab/index.js.map +1 -1
- package/dist/data/index.cjs +39 -132
- package/dist/data/index.d.cts +6 -468
- package/dist/data/index.d.ts +6 -468
- package/dist/data/index.js +7 -15
- package/dist/editor/index.cjs +2631 -4424
- package/dist/editor/index.cjs.map +1 -1
- package/dist/editor/index.d.cts +10 -59
- package/dist/editor/index.d.ts +10 -59
- package/dist/editor/index.js +2619 -4403
- package/dist/editor/index.js.map +1 -1
- package/dist/errors/index.cjs +11 -28
- package/dist/errors/index.d.cts +2 -125
- package/dist/errors/index.d.ts +2 -125
- package/dist/errors/index.js +1 -3
- package/dist/geo/index.cjs +68 -232
- package/dist/geo/index.d.cts +6 -821
- package/dist/geo/index.d.ts +6 -821
- package/dist/geo/index.js +11 -15
- package/dist/i18n/fr/index.cjs +329 -334
- package/dist/i18n/fr/index.cjs.map +1 -1
- package/dist/i18n/fr/index.d.cts +3 -10
- package/dist/i18n/fr/index.d.ts +3 -10
- package/dist/i18n/fr/index.js +324 -332
- package/dist/i18n/fr/index.js.map +1 -1
- package/dist/i18n/index.cjs +434 -447
- package/dist/i18n/index.cjs.map +1 -1
- package/dist/i18n/index.d.cts +152 -111
- package/dist/i18n/index.d.ts +152 -111
- package/dist/i18n/index.js +420 -420
- package/dist/i18n/index.js.map +1 -1
- package/dist/icons/index.cjs +37 -116
- package/dist/icons/index.d.cts +4 -457
- package/dist/icons/index.d.ts +4 -457
- package/dist/icons/index.js +8 -11
- package/dist/index.cjs +515 -1867
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +44 -121
- package/dist/index.d.ts +44 -121
- package/dist/index.js +52 -65
- package/dist/index.js.map +1 -1
- package/dist/layers/index.cjs +83 -318
- package/dist/layers/index.d.cts +3 -1555
- package/dist/layers/index.d.ts +3 -1555
- package/dist/layers/index.js +5 -17
- package/dist/map-client/index.cjs +5 -4
- package/dist/map-client/index.d.cts +6 -1856
- package/dist/map-client/index.d.ts +6 -1856
- package/dist/map-client/index.js +0 -3
- package/dist/maplibre-worker.mjs +4 -4
- package/dist/navigation/index.cjs +584 -671
- package/dist/navigation/index.cjs.map +1 -1
- package/dist/navigation/index.d.cts +191 -272
- package/dist/navigation/index.d.ts +191 -272
- package/dist/navigation/index.js +579 -669
- package/dist/navigation/index.js.map +1 -1
- package/dist/profile/index.cjs +177 -675
- package/dist/profile/index.d.cts +8 -2086
- package/dist/profile/index.d.ts +8 -2086
- package/dist/profile/index.js +10 -18
- package/dist/seams/index.cjs +15 -39
- package/dist/seams/index.d.cts +4 -254
- package/dist/seams/index.d.ts +4 -254
- package/dist/seams/index.js +4 -6
- package/dist/search/index.cjs +39 -147
- package/dist/search/index.d.cts +6 -888
- package/dist/search/index.d.ts +6 -888
- package/dist/search/index.js +3 -14
- package/dist/style/index.cjs +34 -116
- package/dist/style/index.d.cts +5 -538
- package/dist/style/index.d.ts +5 -538
- package/dist/style/index.js +5 -11
- package/dist/testing/index.cjs +432 -617
- package/dist/testing/index.cjs.map +1 -1
- package/dist/testing/index.d.cts +61 -109
- package/dist/testing/index.d.ts +61 -109
- package/dist/testing/index.js +427 -615
- package/dist/testing/index.js.map +1 -1
- package/dist/timezone/index.cjs +1946 -752
- package/dist/timezone/index.cjs.map +1 -1
- package/dist/timezone/index.d.cts +4 -29
- package/dist/timezone/index.d.ts +4 -29
- package/dist/timezone/index.js +1941 -750
- package/dist/timezone/index.js.map +1 -1
- package/dist/units/index.cjs +29 -99
- package/dist/units/index.d.cts +3 -75
- package/dist/units/index.d.ts +3 -75
- package/dist/units/index.js +3 -6
- package/dist/video/index.cjs +1684 -2169
- package/dist/video/index.cjs.map +1 -1
- package/dist/video/index.d.cts +386 -413
- package/dist/video/index.d.ts +386 -413
- package/dist/video/index.js +1678 -2162
- package/dist/video/index.js.map +1 -1
- package/dist/view/index.cjs +6 -42
- package/dist/view/index.d.cts +3 -836
- package/dist/view/index.d.ts +3 -836
- package/dist/view/index.js +1 -34
- package/package.json +12 -12
- package/src/auth/rules/clientHeader.ts +1 -1
- package/src/camera/rules/modes.ts +38 -42
- package/src/camera/rules/routeContent.ts +1 -0
- package/src/collab/index.ts +1 -5
- package/src/compose/engines/mountayaMap.ts +16 -42
- package/src/compose/rules/developmentWarnings.ts +4 -3
- package/src/compose/rules/fitBox.ts +67 -0
- package/src/compose/rules/maplibreWorkerVersion.gen.ts +1 -1
- package/src/compose/rules/maxBounds.ts +5 -5
- package/src/compose/rules/types.ts +4 -11
- package/src/compose/rules/workerUrl.ts +41 -6
- package/src/editing/rules/engine.ts +4 -2
- package/src/editor/engines/viewClient.ts +8 -0
- package/src/editor/rules/contract.ts +1 -6
- package/src/errors/rules/errors.ts +1 -0
- package/src/geo/index.ts +1 -6
- package/src/i18n/index.ts +1 -0
- package/src/i18n/rules/dates.ts +165 -0
- package/src/index.ts +5 -24
- package/src/map-client/rules/mapClient.ts +4 -2
- package/src/profile/rules/scale.ts +1 -5
- package/src/profile/rules/waypointCard.ts +8 -11
- package/src/search/index.ts +3 -18
- package/src/video/index.ts +1 -1
- package/src/video/profileOverlay/rules/contract.ts +1 -3
- package/src/video/rules/videoEncoder.ts +1 -1
- package/dist/accentColor-GNKBD2CW.js +0 -4
- package/dist/accentColor-GNKBD2CW.js.map +0 -1
- package/dist/accentColor-VX2JSMGE.cjs +0 -17
- package/dist/accentColor-VX2JSMGE.cjs.map +0 -1
- package/dist/chunk-23PFRRB6.js +0 -3
- package/dist/chunk-23PFRRB6.js.map +0 -1
- package/dist/chunk-2GI5SAH2.js +0 -71
- package/dist/chunk-2GI5SAH2.js.map +0 -1
- package/dist/chunk-2MQK6A74.js +0 -39
- package/dist/chunk-2MQK6A74.js.map +0 -1
- package/dist/chunk-2RE7R4LD.js +0 -73
- package/dist/chunk-2RE7R4LD.js.map +0 -1
- package/dist/chunk-3JZQKN4O.js +0 -6
- package/dist/chunk-3JZQKN4O.js.map +0 -1
- package/dist/chunk-3NDXVUUI.js +0 -50
- package/dist/chunk-3NDXVUUI.js.map +0 -1
- package/dist/chunk-3R4GFTUM.cjs +0 -59
- package/dist/chunk-3R4GFTUM.cjs.map +0 -1
- package/dist/chunk-3RVUQ6JN.cjs +0 -22
- package/dist/chunk-3RVUQ6JN.cjs.map +0 -1
- package/dist/chunk-4F6BJMJC.cjs +0 -49
- package/dist/chunk-4F6BJMJC.cjs.map +0 -1
- package/dist/chunk-4NWQD4BX.js +0 -132
- package/dist/chunk-4NWQD4BX.js.map +0 -1
- package/dist/chunk-5K2MH3R6.js +0 -10
- package/dist/chunk-5K2MH3R6.js.map +0 -1
- package/dist/chunk-6ACRNQQQ.cjs +0 -8
- package/dist/chunk-6ACRNQQQ.cjs.map +0 -1
- package/dist/chunk-6D26E3IA.js +0 -66
- package/dist/chunk-6D26E3IA.js.map +0 -1
- package/dist/chunk-6ESAW35P.cjs +0 -80
- package/dist/chunk-6ESAW35P.cjs.map +0 -1
- package/dist/chunk-6LIW2A5M.cjs +0 -1176
- package/dist/chunk-6LIW2A5M.cjs.map +0 -1
- package/dist/chunk-6OTTWVCA.js +0 -57
- package/dist/chunk-6OTTWVCA.js.map +0 -1
- package/dist/chunk-6VROJ4UG.js +0 -862
- package/dist/chunk-6VROJ4UG.js.map +0 -1
- package/dist/chunk-6Y7FTGO4.js +0 -23
- package/dist/chunk-6Y7FTGO4.js.map +0 -1
- package/dist/chunk-75I4CG64.js +0 -104
- package/dist/chunk-75I4CG64.js.map +0 -1
- package/dist/chunk-7CUBXHAH.cjs +0 -14
- package/dist/chunk-7CUBXHAH.cjs.map +0 -1
- package/dist/chunk-7GTCURVY.js +0 -52
- package/dist/chunk-7GTCURVY.js.map +0 -1
- package/dist/chunk-7IWOL6AM.cjs +0 -100
- package/dist/chunk-7IWOL6AM.cjs.map +0 -1
- package/dist/chunk-7QN7M667.cjs +0 -151
- package/dist/chunk-7QN7M667.cjs.map +0 -1
- package/dist/chunk-A6KQDKLM.cjs +0 -1197
- package/dist/chunk-A6KQDKLM.cjs.map +0 -1
- package/dist/chunk-A77EA67G.js +0 -354
- package/dist/chunk-A77EA67G.js.map +0 -1
- package/dist/chunk-AFKOABJ4.cjs +0 -7194
- package/dist/chunk-AFKOABJ4.cjs.map +0 -1
- package/dist/chunk-AG6JV5Z2.cjs +0 -183
- package/dist/chunk-AG6JV5Z2.cjs.map +0 -1
- package/dist/chunk-APBK7NMS.js +0 -30
- package/dist/chunk-APBK7NMS.js.map +0 -1
- package/dist/chunk-AWO5YA7A.cjs +0 -33
- package/dist/chunk-AWO5YA7A.cjs.map +0 -1
- package/dist/chunk-AZATU6QW.js +0 -108
- package/dist/chunk-AZATU6QW.js.map +0 -1
- package/dist/chunk-BD2U3WST.cjs +0 -623
- package/dist/chunk-BD2U3WST.cjs.map +0 -1
- package/dist/chunk-BHBEOU6L.cjs +0 -65
- package/dist/chunk-BHBEOU6L.cjs.map +0 -1
- package/dist/chunk-CNOSNYNE.js +0 -8
- package/dist/chunk-CNOSNYNE.js.map +0 -1
- package/dist/chunk-CW3EFR4O.js +0 -12
- package/dist/chunk-CW3EFR4O.js.map +0 -1
- package/dist/chunk-DASVRNBK.js +0 -7187
- package/dist/chunk-DASVRNBK.js.map +0 -1
- package/dist/chunk-DJ6LCKYP.js +0 -42
- package/dist/chunk-DJ6LCKYP.js.map +0 -1
- package/dist/chunk-E5FHQAIO.cjs +0 -45
- package/dist/chunk-E5FHQAIO.cjs.map +0 -1
- package/dist/chunk-EOML5OTY.cjs +0 -360
- package/dist/chunk-EOML5OTY.cjs.map +0 -1
- package/dist/chunk-EP5CASHL.js +0 -613
- package/dist/chunk-EP5CASHL.js.map +0 -1
- package/dist/chunk-EP5OEEVZ.cjs +0 -14
- package/dist/chunk-EP5OEEVZ.cjs.map +0 -1
- package/dist/chunk-EUXI3FGQ.js +0 -150
- package/dist/chunk-EUXI3FGQ.js.map +0 -1
- package/dist/chunk-EWFSHCOS.js +0 -40
- package/dist/chunk-EWFSHCOS.js.map +0 -1
- package/dist/chunk-EX2C5K2T.cjs +0 -25
- package/dist/chunk-EX2C5K2T.cjs.map +0 -1
- package/dist/chunk-FEXWDQIZ.cjs +0 -8
- package/dist/chunk-FEXWDQIZ.cjs.map +0 -1
- package/dist/chunk-FEYBFY7H.cjs +0 -358
- package/dist/chunk-FEYBFY7H.cjs.map +0 -1
- package/dist/chunk-FRGAV6N6.cjs +0 -34
- package/dist/chunk-FRGAV6N6.cjs.map +0 -1
- package/dist/chunk-G5DHP5VF.js +0 -6
- package/dist/chunk-G5DHP5VF.js.map +0 -1
- package/dist/chunk-G5W2UHV2.js +0 -99
- package/dist/chunk-G5W2UHV2.js.map +0 -1
- package/dist/chunk-G7OP7O2C.cjs +0 -39
- package/dist/chunk-G7OP7O2C.cjs.map +0 -1
- package/dist/chunk-GE6CFCAM.cjs +0 -25
- package/dist/chunk-GE6CFCAM.cjs.map +0 -1
- package/dist/chunk-GIFALLHI.cjs +0 -111
- package/dist/chunk-GIFALLHI.cjs.map +0 -1
- package/dist/chunk-GLFET5GM.js +0 -129
- package/dist/chunk-GLFET5GM.js.map +0 -1
- package/dist/chunk-GQ6UFPFM.js +0 -22
- package/dist/chunk-GQ6UFPFM.js.map +0 -1
- package/dist/chunk-GQJWVMXS.js +0 -129
- package/dist/chunk-GQJWVMXS.js.map +0 -1
- package/dist/chunk-GVVJPUKC.js +0 -80
- package/dist/chunk-GVVJPUKC.js.map +0 -1
- package/dist/chunk-GZ2HOCQ2.cjs +0 -134
- package/dist/chunk-GZ2HOCQ2.cjs.map +0 -1
- package/dist/chunk-HCBOHXWP.js +0 -37
- package/dist/chunk-HCBOHXWP.js.map +0 -1
- package/dist/chunk-IBQJDVHF.cjs +0 -281
- package/dist/chunk-IBQJDVHF.cjs.map +0 -1
- package/dist/chunk-ISLB6Y5Q.cjs +0 -106
- package/dist/chunk-ISLB6Y5Q.cjs.map +0 -1
- package/dist/chunk-J55CRR4F.js +0 -105
- package/dist/chunk-J55CRR4F.js.map +0 -1
- package/dist/chunk-JBG6Z6MQ.cjs +0 -28
- package/dist/chunk-JBG6Z6MQ.cjs.map +0 -1
- package/dist/chunk-K3RQOZRU.js +0 -61
- package/dist/chunk-K3RQOZRU.js.map +0 -1
- package/dist/chunk-KDJYS4GB.cjs +0 -703
- package/dist/chunk-KDJYS4GB.cjs.map +0 -1
- package/dist/chunk-KMCAHUZM.cjs +0 -4
- package/dist/chunk-KMCAHUZM.cjs.map +0 -1
- package/dist/chunk-KUCBNPC6.js +0 -87
- package/dist/chunk-KUCBNPC6.js.map +0 -1
- package/dist/chunk-KV6UE5A4.js +0 -50
- package/dist/chunk-KV6UE5A4.js.map +0 -1
- package/dist/chunk-L6TZ2HQR.cjs +0 -18
- package/dist/chunk-L6TZ2HQR.cjs.map +0 -1
- package/dist/chunk-L7QHHGG2.cjs +0 -141
- package/dist/chunk-L7QHHGG2.cjs.map +0 -1
- package/dist/chunk-LHK3Y2AL.js +0 -271
- package/dist/chunk-LHK3Y2AL.js.map +0 -1
- package/dist/chunk-LO5RYRBH.cjs +0 -6317
- package/dist/chunk-LO5RYRBH.cjs.map +0 -1
- package/dist/chunk-LS5SJMUO.cjs +0 -194
- package/dist/chunk-LS5SJMUO.cjs.map +0 -1
- package/dist/chunk-LUGTMZFN.cjs +0 -42
- package/dist/chunk-LUGTMZFN.cjs.map +0 -1
- package/dist/chunk-LVUQU6D5.js +0 -32
- package/dist/chunk-LVUQU6D5.js.map +0 -1
- package/dist/chunk-M2QRC2GZ.js +0 -166
- package/dist/chunk-M2QRC2GZ.js.map +0 -1
- package/dist/chunk-M6QJYQIM.cjs +0 -53
- package/dist/chunk-M6QJYQIM.cjs.map +0 -1
- package/dist/chunk-MGCPH5EO.js +0 -12
- package/dist/chunk-MGCPH5EO.js.map +0 -1
- package/dist/chunk-MLVUWEZR.cjs +0 -474
- package/dist/chunk-MLVUWEZR.cjs.map +0 -1
- package/dist/chunk-MTAMJMZL.cjs +0 -707
- package/dist/chunk-MTAMJMZL.cjs.map +0 -1
- package/dist/chunk-MXL5AT3N.js +0 -48
- package/dist/chunk-MXL5AT3N.js.map +0 -1
- package/dist/chunk-MYEQSESM.cjs +0 -75
- package/dist/chunk-MYEQSESM.cjs.map +0 -1
- package/dist/chunk-N3VPF6ZD.js +0 -427
- package/dist/chunk-N3VPF6ZD.js.map +0 -1
- package/dist/chunk-N6VUAIGI.js +0 -7
- package/dist/chunk-N6VUAIGI.js.map +0 -1
- package/dist/chunk-N6XRLUN6.js +0 -6286
- package/dist/chunk-N6XRLUN6.js.map +0 -1
- package/dist/chunk-NOGDOZIT.cjs +0 -114
- package/dist/chunk-NOGDOZIT.cjs.map +0 -1
- package/dist/chunk-NUWXEISH.cjs +0 -10
- package/dist/chunk-NUWXEISH.cjs.map +0 -1
- package/dist/chunk-NZCZHXYN.cjs +0 -161
- package/dist/chunk-NZCZHXYN.cjs.map +0 -1
- package/dist/chunk-ODROSWQX.cjs +0 -53
- package/dist/chunk-ODROSWQX.cjs.map +0 -1
- package/dist/chunk-OE36AYKG.cjs +0 -82
- package/dist/chunk-OE36AYKG.cjs.map +0 -1
- package/dist/chunk-OLON7MO6.cjs +0 -437
- package/dist/chunk-OLON7MO6.cjs.map +0 -1
- package/dist/chunk-PBUOR2IT.js +0 -277
- package/dist/chunk-PBUOR2IT.js.map +0 -1
- package/dist/chunk-PC2ELXFF.cjs +0 -225
- package/dist/chunk-PC2ELXFF.cjs.map +0 -1
- package/dist/chunk-PCSGXLOC.js +0 -71
- package/dist/chunk-PCSGXLOC.js.map +0 -1
- package/dist/chunk-PFNMP6FQ.js +0 -56
- package/dist/chunk-PFNMP6FQ.js.map +0 -1
- package/dist/chunk-PIWSZTIP.js +0 -690
- package/dist/chunk-PIWSZTIP.js.map +0 -1
- package/dist/chunk-PKWHJ2GI.js +0 -136
- package/dist/chunk-PKWHJ2GI.js.map +0 -1
- package/dist/chunk-PLMVBX2A.cjs +0 -76
- package/dist/chunk-PLMVBX2A.cjs.map +0 -1
- package/dist/chunk-PM3XCD2G.cjs +0 -113
- package/dist/chunk-PM3XCD2G.cjs.map +0 -1
- package/dist/chunk-QAL4GZO7.cjs +0 -143
- package/dist/chunk-QAL4GZO7.cjs.map +0 -1
- package/dist/chunk-QDB2SEA2.js +0 -74
- package/dist/chunk-QDB2SEA2.js.map +0 -1
- package/dist/chunk-QOV7UNUN.js +0 -25
- package/dist/chunk-QOV7UNUN.js.map +0 -1
- package/dist/chunk-QQUWYLSF.cjs +0 -50
- package/dist/chunk-QQUWYLSF.cjs.map +0 -1
- package/dist/chunk-QUMBH3U4.cjs +0 -9
- package/dist/chunk-QUMBH3U4.cjs.map +0 -1
- package/dist/chunk-R4KA7OFQ.js +0 -12
- package/dist/chunk-R4KA7OFQ.js.map +0 -1
- package/dist/chunk-RBSGAZQQ.js +0 -17
- package/dist/chunk-RBSGAZQQ.js.map +0 -1
- package/dist/chunk-RM5YJWZI.js +0 -46
- package/dist/chunk-RM5YJWZI.js.map +0 -1
- package/dist/chunk-ROKNKXA4.cjs +0 -8
- package/dist/chunk-ROKNKXA4.cjs.map +0 -1
- package/dist/chunk-RQG6D546.cjs +0 -75
- package/dist/chunk-RQG6D546.cjs.map +0 -1
- package/dist/chunk-SG4YDD5L.cjs +0 -74
- package/dist/chunk-SG4YDD5L.cjs.map +0 -1
- package/dist/chunk-SNRCA7EO.js +0 -56
- package/dist/chunk-SNRCA7EO.js.map +0 -1
- package/dist/chunk-SO75R4WW.cjs +0 -22
- package/dist/chunk-SO75R4WW.cjs.map +0 -1
- package/dist/chunk-SP34NHFI.js +0 -45
- package/dist/chunk-SP34NHFI.js.map +0 -1
- package/dist/chunk-SSKSSBWJ.cjs +0 -179
- package/dist/chunk-SSKSSBWJ.cjs.map +0 -1
- package/dist/chunk-TB5663C2.js +0 -1108
- package/dist/chunk-TB5663C2.js.map +0 -1
- package/dist/chunk-TGH4NRES.js +0 -220
- package/dist/chunk-TGH4NRES.js.map +0 -1
- package/dist/chunk-TJ6ZPNID.js +0 -189
- package/dist/chunk-TJ6ZPNID.js.map +0 -1
- package/dist/chunk-U45T35N2.cjs +0 -90
- package/dist/chunk-U45T35N2.cjs.map +0 -1
- package/dist/chunk-UKVOPEZ2.js +0 -442
- package/dist/chunk-UKVOPEZ2.js.map +0 -1
- package/dist/chunk-UTB4NROA.cjs +0 -887
- package/dist/chunk-UTB4NROA.cjs.map +0 -1
- package/dist/chunk-UTW33B5V.js +0 -6
- package/dist/chunk-UTW33B5V.js.map +0 -1
- package/dist/chunk-UYUBSD2V.cjs +0 -33
- package/dist/chunk-UYUBSD2V.cjs.map +0 -1
- package/dist/chunk-V3JEP5AG.cjs +0 -59
- package/dist/chunk-V3JEP5AG.cjs.map +0 -1
- package/dist/chunk-VFAGJXHR.js +0 -18
- package/dist/chunk-VFAGJXHR.js.map +0 -1
- package/dist/chunk-VMEE57E5.cjs +0 -58
- package/dist/chunk-VMEE57E5.cjs.map +0 -1
- package/dist/chunk-VQVBEX3Y.cjs +0 -113
- package/dist/chunk-VQVBEX3Y.cjs.map +0 -1
- package/dist/chunk-VZDXX7TT.cjs +0 -64
- package/dist/chunk-VZDXX7TT.cjs.map +0 -1
- package/dist/chunk-WE5ZTI4D.js +0 -346
- package/dist/chunk-WE5ZTI4D.js.map +0 -1
- package/dist/chunk-WEFUVABP.js +0 -19
- package/dist/chunk-WEFUVABP.js.map +0 -1
- package/dist/chunk-WMU4LRKC.js +0 -28
- package/dist/chunk-WMU4LRKC.js.map +0 -1
- package/dist/chunk-WQ24RRHL.cjs +0 -354
- package/dist/chunk-WQ24RRHL.cjs.map +0 -1
- package/dist/chunk-WW4CGS7G.cjs +0 -26
- package/dist/chunk-WW4CGS7G.cjs.map +0 -1
- package/dist/chunk-WXE5WCTM.js +0 -1144
- package/dist/chunk-WXE5WCTM.js.map +0 -1
- package/dist/chunk-X23BGIYA.cjs +0 -37
- package/dist/chunk-X23BGIYA.cjs.map +0 -1
- package/dist/chunk-XEW4FTR2.js +0 -98
- package/dist/chunk-XEW4FTR2.js.map +0 -1
- package/dist/chunk-XIOI4IYW.js +0 -167
- package/dist/chunk-XIOI4IYW.js.map +0 -1
- package/dist/chunk-XLVPJ37V.cjs +0 -44
- package/dist/chunk-XLVPJ37V.cjs.map +0 -1
- package/dist/chunk-XOHAXXZA.cjs +0 -51
- package/dist/chunk-XOHAXXZA.cjs.map +0 -1
- package/dist/chunk-Y4NRIHK6.cjs +0 -313
- package/dist/chunk-Y4NRIHK6.cjs.map +0 -1
- package/dist/chunk-Y4YMMKL3.js +0 -23
- package/dist/chunk-Y4YMMKL3.js.map +0 -1
- package/dist/chunk-YJNYBVE3.cjs +0 -14
- package/dist/chunk-YJNYBVE3.cjs.map +0 -1
- package/dist/chunk-Z762QNQP.cjs +0 -60
- package/dist/chunk-Z762QNQP.cjs.map +0 -1
- package/dist/chunk-ZG5KMBOF.js +0 -669
- package/dist/chunk-ZG5KMBOF.js.map +0 -1
- package/dist/chunk-ZKONQEFA.js +0 -344
- package/dist/chunk-ZKONQEFA.js.map +0 -1
- package/dist/chunk-ZR5X7QMH.js +0 -39
- package/dist/chunk-ZR5X7QMH.js.map +0 -1
- package/dist/chunk-ZW4BJQ26.js +0 -84
- package/dist/chunk-ZW4BJQ26.js.map +0 -1
- package/dist/climbs-BhlWuu0x.d.ts +0 -70
- package/dist/climbs-DgBFwySV.d.cts +0 -70
- package/dist/data/index.cjs.map +0 -1
- package/dist/data/index.js.map +0 -1
- package/dist/errors/index.cjs.map +0 -1
- package/dist/errors/index.js.map +0 -1
- package/dist/geo/index.cjs.map +0 -1
- package/dist/geo/index.js.map +0 -1
- package/dist/icons/index.cjs.map +0 -1
- package/dist/icons/index.js.map +0 -1
- package/dist/itinerary-Dp2ZnqgD.d.cts +0 -178
- package/dist/itinerary-Dp2ZnqgD.d.ts +0 -178
- package/dist/layers/index.cjs.map +0 -1
- package/dist/layers/index.js.map +0 -1
- package/dist/map-client/index.cjs.map +0 -1
- package/dist/map-client/index.js.map +0 -1
- package/dist/markerSprite-DGBQF6PO.cjs +0 -49
- package/dist/markerSprite-DGBQF6PO.cjs.map +0 -1
- package/dist/markerSprite-DZLTR6F6.js +0 -8
- package/dist/markerSprite-DZLTR6F6.js.map +0 -1
- package/dist/mountayaMap-C9mxRFib.d.cts +0 -3277
- package/dist/mountayaMap-DgnlQ2fE.d.ts +0 -3277
- package/dist/paint-BgUcj8l7.d.cts +0 -118
- package/dist/paint-Dx_qGNE_.d.ts +0 -118
- package/dist/profile/index.cjs.map +0 -1
- package/dist/profile/index.js.map +0 -1
- package/dist/seams/index.cjs.map +0 -1
- package/dist/seams/index.js.map +0 -1
- package/dist/search/index.cjs.map +0 -1
- package/dist/search/index.js.map +0 -1
- package/dist/searchHighlight-DFE7LVIL.cjs +0 -33
- package/dist/searchHighlight-DFE7LVIL.cjs.map +0 -1
- package/dist/searchHighlight-MHAQZVWG.js +0 -12
- package/dist/searchHighlight-MHAQZVWG.js.map +0 -1
- package/dist/strings-30RSdIat.d.cts +0 -552
- package/dist/strings-DPTIbzT5.d.ts +0 -552
- package/dist/stripeImage-CQUXM2YI.js +0 -14
- package/dist/stripeImage-CQUXM2YI.js.map +0 -1
- package/dist/stripeImage-R43OPA6U.cjs +0 -39
- package/dist/stripeImage-R43OPA6U.cjs.map +0 -1
- package/dist/style/index.cjs.map +0 -1
- package/dist/style/index.js.map +0 -1
- package/dist/types-B034JMjl.d.ts +0 -973
- package/dist/types-B2NDLxQA.d.cts +0 -21
- package/dist/types-B2NDLxQA.d.ts +0 -21
- package/dist/types-C8aX5KMU.d.cts +0 -973
- package/dist/units/index.cjs.map +0 -1
- package/dist/units/index.js.map +0 -1
- package/dist/view/index.cjs.map +0 -1
- package/dist/view/index.js.map +0 -1
|
@@ -0,0 +1,1926 @@
|
|
|
1
|
+
import { y as RouteProfilePoint } from "./chunk-QKWhxfPv.js";
|
|
2
|
+
import { A as ElevationSeries, D as CumulativeElevation, L as ProfileInput, R as ProfileRange, _ as WaypointPhotoDetail, c as PlacedWaypoint, i as ItinerarySegmentRowMetrics, k as ElevationPoint, l as ResolvedCharacteristics, m as WaypointLinkDetail, o as ItineraryWaypointRow, p as WaypointDetails, r as ItinerarySegmentRow, u as Waypoint, v as WaypointPropertyDetail } from "./chunk-DJpUw8TN.js";
|
|
3
|
+
import { r as UnitFormatOptions } from "./chunk-5pTPpv4v.js";
|
|
4
|
+
import { n as FitBoundsPadding } from "./chunk-fozLXfHY.js";
|
|
5
|
+
import { n as IconProvider } from "./chunk-DWsm3HIW.js";
|
|
6
|
+
import { SurfaceType, WayType } from "@mountaya/client";
|
|
7
|
+
import { Feature, Geometry, LineString } from "geojson";
|
|
8
|
+
/**
|
|
9
|
+
* CLIMB_CATEGORIES names the classified climb categories the broadcast overlay badges a climb
|
|
10
|
+
* with, in ascending severity: Cat 4 (the lightest categorized climb) through Cat 1, then `hc`
|
|
11
|
+
* (hors categorie: beyond categorization). The values are the Tour-de-France roadbook
|
|
12
|
+
* vocabulary.
|
|
13
|
+
*
|
|
14
|
+
* A tuple rather than a zod enum, because the category rides resolved profile samples into a map
|
|
15
|
+
* OVERLAY, something that draws. `@mountaya/studio` builds `climbCategorySchema` from this
|
|
16
|
+
* tuple for the tool seam that validates it, which is the direction that keeps a renderer-free
|
|
17
|
+
* entry free of zod.
|
|
18
|
+
*/
|
|
19
|
+
declare const CLIMB_CATEGORIES: readonly ["4", "3", "2", "1", "hc"];
|
|
20
|
+
/** ClimbCategory names a classified climb category. */
|
|
21
|
+
type ClimbCategory = (typeof CLIMB_CATEGORIES)[number];
|
|
22
|
+
/**
|
|
23
|
+
* ClimbSpan is one detected climb on the itinerary's cumulative distance axis: the
|
|
24
|
+
* `[startKm, endKm]` stretch from the climb's foot to its summit, the summit's
|
|
25
|
+
* `peakElevation` (m), the climb's `avgGradePercent` (rise over run, percent),
|
|
26
|
+
* and its `category`. The overlay resolves the span containing each frame's
|
|
27
|
+
* distance to badge the climb and read the distance to its summit.
|
|
28
|
+
*/
|
|
29
|
+
interface ClimbSpan {
|
|
30
|
+
avgGradePercent: number;
|
|
31
|
+
category: ClimbCategory;
|
|
32
|
+
endKm: number;
|
|
33
|
+
peakElevation: number;
|
|
34
|
+
startKm: number;
|
|
35
|
+
}
|
|
36
|
+
/**
|
|
37
|
+
* climbCategoryFor classifies a climb from its length (m) and average grade (%)
|
|
38
|
+
* via the score product `lengthMeters × avgGradePercent`: null under a 3 % grade
|
|
39
|
+
* (never categorized) or under the Cat 4 score floor (too easy to badge), else
|
|
40
|
+
* the hardest category whose threshold the score reaches. Pure and deterministic;
|
|
41
|
+
* the single classification rule {@link detectClimbs} and any other climb consumer share.
|
|
42
|
+
*
|
|
43
|
+
* @param lengthMeters The climb's length, in meters.
|
|
44
|
+
* @param avgGradePercent The climb's average grade, rise over run in percent.
|
|
45
|
+
* @returns The category, or null for a climb too shallow or too easy to categorize.
|
|
46
|
+
*/
|
|
47
|
+
declare const climbCategoryFor: (lengthMeters: number, avgGradePercent: number) => ClimbCategory | null;
|
|
48
|
+
/**
|
|
49
|
+
* detectClimbs walks an elevation-point series and returns the categorized climbs on it,
|
|
50
|
+
* ordered by their start.
|
|
51
|
+
*
|
|
52
|
+
* A climb OPENS when the rolling grade over a 300 m window reaches 3 % (the foot is the
|
|
53
|
+
* window's start, so the badge covers the whole ramp); while open, the summit (the highest
|
|
54
|
+
* elevation so far) is tracked. It CLOSES when the rolling grade stays below 1 % for 500 m (or
|
|
55
|
+
* at the series end), and the span is cut at the summit, not at the flat that followed: a
|
|
56
|
+
* climb ends at its top, the roadbook convention. Spans shorter than 500 m or scoring below
|
|
57
|
+
* Cat 4 ({@link climbCategoryFor}) are dropped.
|
|
58
|
+
*
|
|
59
|
+
* Pure and deterministic: the same points always yield the same climbs, so the preview and
|
|
60
|
+
* the recorder badge identically.
|
|
61
|
+
*
|
|
62
|
+
* @param points The series, ascending by distance.
|
|
63
|
+
* @returns The climbs, ordered by their start; empty for a series with none.
|
|
64
|
+
*/
|
|
65
|
+
declare const detectClimbs: (points: readonly RouteProfilePoint[]) => ClimbSpan[];
|
|
66
|
+
/**
|
|
67
|
+
* climbAt returns the climb span containing a cumulative distance (km), or null
|
|
68
|
+
* when the point is not on a categorized climb. Containment is inclusive at both
|
|
69
|
+
* ends: a frame exactly on the summit still badges the climb it just topped.
|
|
70
|
+
* Spans are ordered and non-overlapping, so the first match is the match.
|
|
71
|
+
*/
|
|
72
|
+
declare const climbAt: (climbs: readonly ClimbSpan[], distanceKm: number) => ClimbSpan | null;
|
|
73
|
+
/**
|
|
74
|
+
* The text an amenity's badge is written as where the installed glyph set cannot draw its glyph.
|
|
75
|
+
*
|
|
76
|
+
* A badge stands for a service the itinerary genuinely carries, so a set with no `amenity-*`
|
|
77
|
+
* family must not leave it empty: where a table cell has room for the word it is written as the
|
|
78
|
+
* service's name, and where a badge stands in a profile's narrow stack, as its first letter.
|
|
79
|
+
* Beside a label of its own it says nothing the label does not, and is written as nothing.
|
|
80
|
+
*/
|
|
81
|
+
/**
|
|
82
|
+
* BadgeSurface is where an amenity's badge stands: in a table's cell, in a profile's stack, or
|
|
83
|
+
* beside a label that names the amenity already.
|
|
84
|
+
*/
|
|
85
|
+
type BadgeSurface = "cell" | "labelled" | "stack";
|
|
86
|
+
/**
|
|
87
|
+
* badgeFallback answers the text that stands in an amenity's badge where the set cannot draw its
|
|
88
|
+
* glyph: the amenity's name in a table cell, that name's first letter in capitals in a profile's
|
|
89
|
+
* stack, and nothing beside a label of its own, which already says it.
|
|
90
|
+
*
|
|
91
|
+
* The first letter is the first character a reader sees, never the first code unit: a letter
|
|
92
|
+
* written with a combining accent keeps its accent, and an emoji is never cut in half.
|
|
93
|
+
*
|
|
94
|
+
* @param name The amenity's name, in the reader's language.
|
|
95
|
+
* @param surface Where the badge stands.
|
|
96
|
+
* @returns The text to write in place of the glyph, or `null` for nothing.
|
|
97
|
+
*/
|
|
98
|
+
declare const badgeFallback: (name: string, surface: BadgeSurface) => string | null;
|
|
99
|
+
/** The services a table can be filtered by, and the rows a choice of them leaves. */
|
|
100
|
+
interface AmenityFilter<T> {
|
|
101
|
+
/** Each service the places offer, once, ordered by the reader's name for it. */
|
|
102
|
+
readonly available: readonly string[];
|
|
103
|
+
/** The rows offering every service picked, in their order. */
|
|
104
|
+
readonly shown: readonly T[];
|
|
105
|
+
}
|
|
106
|
+
/**
|
|
107
|
+
* amenityFilter answers the chips a waypoint table offers and the rows a choice of them leaves.
|
|
108
|
+
*
|
|
109
|
+
* A chip stands for each service any place offers, once, sorted by the reader's name for it in
|
|
110
|
+
* the reader's locale, so a filter row does not reshuffle itself between itineraries. A row stays
|
|
111
|
+
* only where its place offers every service picked: a reader picking water and a hot meal is
|
|
112
|
+
* asking where they can have both, and no service picked leaves every row.
|
|
113
|
+
*
|
|
114
|
+
* @param rows The table's rows, in their order.
|
|
115
|
+
* @param picked The services picked.
|
|
116
|
+
* @param names The reader's name for each service, keyed by the wire's own vocabulary; a service
|
|
117
|
+
* with none is named by its own value.
|
|
118
|
+
* @param locale The reader's locale, which the names are collated in. A tag `Intl` cannot read is
|
|
119
|
+
* read as the formatters read it.
|
|
120
|
+
* @returns The chips and the rows left.
|
|
121
|
+
*/
|
|
122
|
+
declare const amenityFilter: <T extends {
|
|
123
|
+
readonly details?: Pick<WaypointDetails, "amenities"> | undefined;
|
|
124
|
+
}>(rows: readonly T[], picked: readonly string[], names: Readonly<Record<string, string>>, locale: string) => AmenityFilter<T>;
|
|
125
|
+
/**
|
|
126
|
+
* toggleAmenity answers the services picked after a reader presses a service's chip: the service
|
|
127
|
+
* taken out where it was picked, and added at the end of the choice where it was not.
|
|
128
|
+
*
|
|
129
|
+
* @param picked The services picked before the press.
|
|
130
|
+
* @param amenity The service whose chip was pressed.
|
|
131
|
+
* @returns The services picked after it.
|
|
132
|
+
*/
|
|
133
|
+
declare const toggleAmenity: (picked: readonly string[], amenity: string) => string[];
|
|
134
|
+
/**
|
|
135
|
+
* DEFAULT_AMENITY_STACK_MAX is how many badges a stack shows before it counts the rest, where its
|
|
136
|
+
* caller names no other: four and a count, narrow enough that two checkpoints a kilometer apart
|
|
137
|
+
* on a long course do not touch.
|
|
138
|
+
*/
|
|
139
|
+
declare const DEFAULT_AMENITY_STACK_MAX = 4;
|
|
140
|
+
/** One place's stack: the place, the services shown, how many are counted and what it names. */
|
|
141
|
+
interface AmenityStack<T> {
|
|
142
|
+
/** The place, as the caller gave it. */
|
|
143
|
+
readonly place: T;
|
|
144
|
+
/** The services drawn as badges, the first ones in the order the place states them. */
|
|
145
|
+
readonly shown: readonly string[];
|
|
146
|
+
/** How many services follow the ones shown, drawn as one count. */
|
|
147
|
+
readonly counted: number;
|
|
148
|
+
/** Every service the place offers, in its order: the one label the stack is read by. */
|
|
149
|
+
readonly named: readonly string[];
|
|
150
|
+
}
|
|
151
|
+
/**
|
|
152
|
+
* amenityStacks answers the stack of services above each pinned place that offers any.
|
|
153
|
+
*
|
|
154
|
+
* The services stack in the order the place states them. The first ones up to the maximum are
|
|
155
|
+
* shown, the maximum rounded down and none shown below zero or for a maximum that is no number,
|
|
156
|
+
* and the rest are counted. Every service is named in the stack's one label, the counted ones
|
|
157
|
+
* included, so a reader hears the whole list once rather than a badge at a time. A place that
|
|
158
|
+
* offers no service takes no stack.
|
|
159
|
+
*
|
|
160
|
+
* @param places The pinned places, in the order they are drawn.
|
|
161
|
+
* @param max How many badges a stack shows before it counts the rest.
|
|
162
|
+
* @default max {@link DEFAULT_AMENITY_STACK_MAX}
|
|
163
|
+
* @returns One stack per place that offers a service, in the order given.
|
|
164
|
+
*/
|
|
165
|
+
declare const amenityStacks: <T extends {
|
|
166
|
+
readonly details?: Pick<WaypointDetails, "amenities"> | undefined;
|
|
167
|
+
}>(places: readonly T[], max?: number) => AmenityStack<T>[];
|
|
168
|
+
/**
|
|
169
|
+
* One part of a route's stretch of the distance axis, in meters from the route's start.
|
|
170
|
+
*
|
|
171
|
+
* A {@link ProfileRange}, the one shape a stretch of the axis has, under the name a caller that
|
|
172
|
+
* places parts on the axis reads it by.
|
|
173
|
+
*/
|
|
174
|
+
type ProfileSpan = ProfileRange;
|
|
175
|
+
/**
|
|
176
|
+
* carriesElevation answers whether a route has a curve to draw at all.
|
|
177
|
+
*
|
|
178
|
+
* Elevation is the third coordinate of a position, so this is the cheapest honest form of the
|
|
179
|
+
* question: it stops at the first vertex the series would read a sample off, and builds no
|
|
180
|
+
* series to find out. That is a vertex that names a place and states a finite elevation, the
|
|
181
|
+
* rule `buildElevationSeries` reads by, so the answer is the series' own `hasElevation`. A
|
|
182
|
+
* partially 3D route counts: the profile bridges the gap with a straight line, which is a
|
|
183
|
+
* curve, where a fully 2D one has nothing to plot at any distance.
|
|
184
|
+
*/
|
|
185
|
+
declare const carriesElevation: (parts: readonly (readonly Geometry[])[]) => boolean;
|
|
186
|
+
/**
|
|
187
|
+
* profileSpans lays one geometry list per part of a route onto the axis.
|
|
188
|
+
*
|
|
189
|
+
* A part is given as its own list of geometries, the shape `flattenGeometries` produces for a
|
|
190
|
+
* segment, so a part carrying several lines is measured as the sum of them. The jump from one
|
|
191
|
+
* line to the next costs no distance, which is what the profile does with them too: the gap
|
|
192
|
+
* between two lines is not ground anybody covered.
|
|
193
|
+
*
|
|
194
|
+
* Each geometry is measured by {@link profileLength}, the series' own walk, and not by a
|
|
195
|
+
* segment's server-computed `distance`, for two reasons. The boundaries have to agree with the
|
|
196
|
+
* curve exactly, or every colour change lands beside the stretch it describes. And the studio
|
|
197
|
+
* plots an edit in progress through `substituteLiveSegment`, whose geometry is live while its
|
|
198
|
+
* stored distance is not, so the geometry is the only thing that describes what is drawn.
|
|
199
|
+
*
|
|
200
|
+
* A part with no line still gets a span. It is a zero-length one at the running total, so the
|
|
201
|
+
* parts stay index-aligned with what was passed in: a caller zipping colours or labels onto the
|
|
202
|
+
* result must not have them slide by one because a segment happened to hold only a point.
|
|
203
|
+
*/
|
|
204
|
+
declare const profileSpans: (parts: readonly (readonly Geometry[])[]) => ProfileSpan[];
|
|
205
|
+
/**
|
|
206
|
+
* Deciding which place names under the distance axis are drawn.
|
|
207
|
+
*
|
|
208
|
+
* Every dividing waypoint gets a label, positioned at the meter it names. On an itinerary with
|
|
209
|
+
* a handful of places that is the whole design; on one with seventeen it is a row of names lying
|
|
210
|
+
* on top of each other, which states nothing at all.
|
|
211
|
+
*
|
|
212
|
+
* So the labels are laid out in full and then thinned, rather than laid out differently. Their
|
|
213
|
+
* positions carry the meaning (a name sits under the meter it belongs to), and every alternative
|
|
214
|
+
* that fits more of them (staggering rows, rotating the text, elbowing neighbours aside) breaks
|
|
215
|
+
* exactly that. Dropping the crowded ones keeps every remaining label truthful.
|
|
216
|
+
*
|
|
217
|
+
* Nothing is lost by dropping one. Each place is also a pin on the curve, carrying its own name,
|
|
218
|
+
* and the pins are what a reader hovers and what a screen reader walks: the axis row is the
|
|
219
|
+
* second statement of the same set, and the second statement is the one that can afford to thin.
|
|
220
|
+
*/
|
|
221
|
+
/** One laid-out label, in whatever unit the caller measured. */
|
|
222
|
+
interface AxisLabelBox {
|
|
223
|
+
readonly key: string;
|
|
224
|
+
readonly left: number;
|
|
225
|
+
readonly right: number;
|
|
226
|
+
}
|
|
227
|
+
/**
|
|
228
|
+
* cullCrowdedLabels answers which labels to leave undrawn.
|
|
229
|
+
*
|
|
230
|
+
* The ends are kept whatever happens. They are the itinerary's own two extremities, they are
|
|
231
|
+
* where a reader looks first, and a chart that dropped its finish to fit a col in the middle
|
|
232
|
+
* would have thinned the wrong thing. Everything between them is greedy left to right: a label
|
|
233
|
+
* is kept when it clears the last kept one AND clears the finish, so the walk cannot paint
|
|
234
|
+
* itself into a collision at the far end.
|
|
235
|
+
*
|
|
236
|
+
* Boxes arrive in itinerary order, which is what makes "first" the start and "last" the finish
|
|
237
|
+
* on a loop where both sit on the same meter: `resolveWaypoints` breaks that tie on the
|
|
238
|
+
* authored order for this reason.
|
|
239
|
+
*
|
|
240
|
+
* @param boxes The laid-out labels, in itinerary order.
|
|
241
|
+
* @param gutter The clear space a kept label keeps from its neighbours, in the boxes' unit.
|
|
242
|
+
* @default gutter 8
|
|
243
|
+
* @returns The keys of the labels to leave undrawn.
|
|
244
|
+
*/
|
|
245
|
+
declare const cullCrowdedLabels: (boxes: readonly AxisLabelBox[], gutter?: number) => ReadonlySet<string>;
|
|
246
|
+
/**
|
|
247
|
+
* The map marker an element's cursor stands under: a profile's, and each table's.
|
|
248
|
+
*
|
|
249
|
+
* An element that a reader scrubs pins the point it stands on to the map beside it, as one marker
|
|
250
|
+
* under an id of its own. Which write the marker takes as the cursor moves, and which marker the
|
|
251
|
+
* element may take down, are decided here, against the marker calls a map answers. The cadence
|
|
252
|
+
* of the writes is the binding's own. It renders nothing.
|
|
253
|
+
*/
|
|
254
|
+
/**
|
|
255
|
+
* CURSOR_MARKER_GLYPH is the glyph an element's cursor marker is drawn with where its caller names
|
|
256
|
+
* none: the filled pin.
|
|
257
|
+
*/
|
|
258
|
+
declare const CURSOR_MARKER_GLYPH = "pin-filled";
|
|
259
|
+
/**
|
|
260
|
+
* cursorMarkerIds are the ids each element pins its cursor marker under, unless its caller names
|
|
261
|
+
* another: one each, so a profile and two tables over one map never move or take down each
|
|
262
|
+
* other's pin.
|
|
263
|
+
*/
|
|
264
|
+
declare const cursorMarkerIds: {
|
|
265
|
+
readonly profile: "mtya-profile-cursor";
|
|
266
|
+
readonly segmentTable: "mtya-segment-table-cursor";
|
|
267
|
+
readonly waypointTable: "mtya-waypoint-table-cursor";
|
|
268
|
+
};
|
|
269
|
+
/** The marker calls of a map an element's cursor writes through. */
|
|
270
|
+
interface CursorMarkerMap {
|
|
271
|
+
addMarker(marker: {
|
|
272
|
+
readonly color?: string | undefined;
|
|
273
|
+
readonly glyph: string;
|
|
274
|
+
readonly id: string;
|
|
275
|
+
readonly lngLat: [number, number];
|
|
276
|
+
}): void;
|
|
277
|
+
/**
|
|
278
|
+
* Moves the marker pinned under `id`.
|
|
279
|
+
*
|
|
280
|
+
* @throws {MountayaElementsNotFoundError} When no marker is pinned under `id`.
|
|
281
|
+
*/
|
|
282
|
+
editMarker(id: string, patch: {
|
|
283
|
+
readonly lngLat: [number, number];
|
|
284
|
+
}): void;
|
|
285
|
+
removeMarker(id: string): void;
|
|
286
|
+
}
|
|
287
|
+
/** What the marker an element added is drawn with. */
|
|
288
|
+
interface CursorMarkerPin {
|
|
289
|
+
readonly color: string | undefined;
|
|
290
|
+
readonly glyph: string;
|
|
291
|
+
}
|
|
292
|
+
/** Where an element's cursor stands, and how its marker is drawn. */
|
|
293
|
+
interface CursorMarkerPoint {
|
|
294
|
+
/** The colour of the pin, or `undefined` for the map's own. */
|
|
295
|
+
readonly color: string | undefined;
|
|
296
|
+
readonly glyph: string;
|
|
297
|
+
/** The id the marker is pinned under. */
|
|
298
|
+
readonly id: string;
|
|
299
|
+
/** Where the cursor stands, as `[longitude, latitude]`. */
|
|
300
|
+
readonly lngLat: readonly [number, number];
|
|
301
|
+
}
|
|
302
|
+
/**
|
|
303
|
+
* showCursorMarker pins an element's cursor marker where the cursor stands, and answers what the
|
|
304
|
+
* pin is drawn with.
|
|
305
|
+
*
|
|
306
|
+
* A marker the element already added is moved by editing its position, so a popup opened on it
|
|
307
|
+
* stays open; one whose colour or glyph changed is added again, since an edit cannot take a colour
|
|
308
|
+
* off. A marker something else took down (another holder of the id, a host clearing the map) is
|
|
309
|
+
* added again where the edit finds none.
|
|
310
|
+
*
|
|
311
|
+
* @param map The map the marker is pinned to.
|
|
312
|
+
* @param pinned What the marker this element added is drawn with, or `null` where it added none.
|
|
313
|
+
* @param point Where the cursor stands, and how its marker is drawn.
|
|
314
|
+
* @returns What the marker is drawn with now.
|
|
315
|
+
* @throws What the map throws for a write it refuses, but a missing marker on an edit.
|
|
316
|
+
*/
|
|
317
|
+
declare const showCursorMarker: (map: CursorMarkerMap, pinned: CursorMarkerPin | null, point: CursorMarkerPoint) => CursorMarkerPin;
|
|
318
|
+
/**
|
|
319
|
+
* hideCursorMarker takes an element's cursor marker down where the cursor no longer stands, and
|
|
320
|
+
* only where the element added it: a marker another holder of the id pinned is never its to take.
|
|
321
|
+
*
|
|
322
|
+
* @param map The map the marker is pinned to.
|
|
323
|
+
* @param pinned What the marker this element added is drawn with, or `null` where it added none.
|
|
324
|
+
* @param id The id the marker is pinned under.
|
|
325
|
+
* @returns `null`: the element holds no marker after it.
|
|
326
|
+
*/
|
|
327
|
+
declare const hideCursorMarker: (map: Pick<CursorMarkerMap, "removeMarker">, pinned: CursorMarkerPin | null, id: string) => null;
|
|
328
|
+
/** One figure a cursor's readout can state. */
|
|
329
|
+
type ReadoutStat = "ascent" | "descent" | "distance" | "elevation";
|
|
330
|
+
/**
|
|
331
|
+
* DEFAULT_READOUT_STATS is what a readout states where its caller names nothing: where the cursor
|
|
332
|
+
* stands, then what it took to get there.
|
|
333
|
+
*/
|
|
334
|
+
declare const DEFAULT_READOUT_STATS: readonly ReadoutStat[];
|
|
335
|
+
/** One figure a readout states: which it is, and its value in meters. */
|
|
336
|
+
interface ReadoutCell {
|
|
337
|
+
readonly key: ReadoutStat;
|
|
338
|
+
readonly value: number;
|
|
339
|
+
}
|
|
340
|
+
/** What a readout states about the sample a cursor stands on. */
|
|
341
|
+
interface ProfileReadout<T> {
|
|
342
|
+
/** The figures asked for, in the order asked, each with a value. */
|
|
343
|
+
readonly cells: readonly ReadoutCell[];
|
|
344
|
+
/** The grade at the sample, in degrees, negative for a descent, or `null` where none reads. */
|
|
345
|
+
readonly grade: number | null;
|
|
346
|
+
/** The stretch the sample stands in, which names it and colours it, or `null` in none. */
|
|
347
|
+
readonly stretch: T | null;
|
|
348
|
+
}
|
|
349
|
+
/** What a readout reads beside the sample: the figures asked for and the stretches it names. */
|
|
350
|
+
interface ProfileReadoutOptions<T> {
|
|
351
|
+
/**
|
|
352
|
+
* The figures asked for, in the order the readout states them.
|
|
353
|
+
*
|
|
354
|
+
* @default {@link DEFAULT_READOUT_STATS}
|
|
355
|
+
*/
|
|
356
|
+
readonly stats?: readonly ReadoutStat[] | undefined;
|
|
357
|
+
/** The stretches the curve is classified into, one of which may hold the sample. */
|
|
358
|
+
readonly stretches?: readonly T[] | undefined;
|
|
359
|
+
}
|
|
360
|
+
/**
|
|
361
|
+
* profileReadout answers what a readout states about the sample a cursor stands on.
|
|
362
|
+
*
|
|
363
|
+
* Its distance and its altitude are the sample's own, never a point read between two samples. The
|
|
364
|
+
* ascent and the descent are cumulative from the itinerary's start, read off the one scan of the
|
|
365
|
+
* whole series (`rangeTotals`), so the figure and the last row of a table beside it are the same
|
|
366
|
+
* number. The grade is the slope across the 100 m centred on the sample (`gradeAt`), and the
|
|
367
|
+
* stretch is the one the sample's distance reads (`classAt`), the later of two at the meter they
|
|
368
|
+
* share. A figure with no value is left out.
|
|
369
|
+
*
|
|
370
|
+
* @param series The series the cursor stands on.
|
|
371
|
+
* @param cumulative The series' one cumulative scan.
|
|
372
|
+
* @param point The sample the cursor stands on.
|
|
373
|
+
* @param options The figures asked for, and the stretches the curve is classified into.
|
|
374
|
+
* @returns The readout.
|
|
375
|
+
*/
|
|
376
|
+
declare const profileReadout: <T extends ProfileRange>(series: ElevationSeries, cumulative: CumulativeElevation, point: ElevationPoint, { stats, stretches }?: ProfileReadoutOptions<T>) => ProfileReadout<T>;
|
|
377
|
+
/** The elevation range a curve is drawn against, in meters. */
|
|
378
|
+
interface ElevationDomain {
|
|
379
|
+
readonly min: number;
|
|
380
|
+
readonly max: number;
|
|
381
|
+
}
|
|
382
|
+
/** One labelled stop on the distance scale. */
|
|
383
|
+
interface DistanceTick {
|
|
384
|
+
/** Fraction digits the label needs for neighbouring stops to read as different numbers. */
|
|
385
|
+
readonly fractionDigits: number;
|
|
386
|
+
/** Meters from the start of the itinerary: the position `profileX` projects. */
|
|
387
|
+
readonly meters: number;
|
|
388
|
+
/** The same stop in the display unit, exact on the 1/2/5 lattice. */
|
|
389
|
+
readonly value: number;
|
|
390
|
+
}
|
|
391
|
+
/**
|
|
392
|
+
* distanceTicks picks the distances a scale is labelled at, on a 1/2/5 step.
|
|
393
|
+
*
|
|
394
|
+
* Takes a range rather than a total, so a zoomed chart gets a scale for what it shows rather
|
|
395
|
+
* than a scale for an itinerary most of which is off-frame.
|
|
396
|
+
*
|
|
397
|
+
* The step is chosen from a 1/2/5 sequence because those are the intervals a reader adds up
|
|
398
|
+
* without thinking: a 25 km tick is arithmetic, a 20 km tick is a glance. `target` is a
|
|
399
|
+
* target and not a count: rounding the step is what makes the labels legible, and it moves
|
|
400
|
+
* how many of them fit.
|
|
401
|
+
*
|
|
402
|
+
* **The lattice is laid in the display unit, which is why `units` is not optional.** A step
|
|
403
|
+
* rounded in meters is only round in meters: 1 000 m stops under an imperial reader become
|
|
404
|
+
* 0.62, 1.24, 1.86 miles, and a label asking for whole miles renders them as 1, 1, 2: a
|
|
405
|
+
* scale that skips numbers and repeats others while every individual label is correct. The
|
|
406
|
+
* same happens metric-side under a zoom window narrow enough for a sub-kilometer step. So the
|
|
407
|
+
* lattice is computed in whatever unit the reader is being shown, and `meters` carries the
|
|
408
|
+
* position back for `profileX`, which knows only distance.
|
|
409
|
+
*
|
|
410
|
+
* `fractionDigits` travels with each stop rather than being left to the caller because it is
|
|
411
|
+
* a property of the step, not of the reader: a 0.5 mile step needs one digit or half its
|
|
412
|
+
* labels collide, and a 20 km step needs none.
|
|
413
|
+
*/
|
|
414
|
+
declare const distanceTicks: (range: ProfileRange, units: Pick<UnitFormatOptions, "length">, target?: number) => DistanceTick[];
|
|
415
|
+
/** The width and height of the unit space. Both axes, because it is stretched on both. */
|
|
416
|
+
declare const PROFILE_VIEWBOX = 100;
|
|
417
|
+
/** Headroom above the highest sample, so a summit is not flush against the frame. */
|
|
418
|
+
declare const PROFILE_TOP_INSET = 6;
|
|
419
|
+
/** Room below the lowest sample, so a valley floor reads as a floor rather than a crop. */
|
|
420
|
+
declare const PROFILE_BOTTOM_INSET = 4;
|
|
421
|
+
/** The unit-space y of the lowest sample. */
|
|
422
|
+
declare const PROFILE_BASELINE: number;
|
|
423
|
+
/**
|
|
424
|
+
* profileDomain chooses the elevation range a series is drawn against.
|
|
425
|
+
*
|
|
426
|
+
* Anchored on the itinerary's own minimum rather than on sea level, because the shape of the
|
|
427
|
+
* climb is what a profile is read for and a zero-based axis flattens exactly the itineraries
|
|
428
|
+
* people most want to see: a ridge traverse between 2,400 m and 2,600 m is a ridge, not a
|
|
429
|
+
* flat line four fifths of the way up an empty chart. The absolute altitudes are stated in
|
|
430
|
+
* the stat strip, where a number belongs.
|
|
431
|
+
*
|
|
432
|
+
* A window frames the stretch it holds: the lowest and the highest the curve stands between the
|
|
433
|
+
* window's two ends, read at each end on the line between the two samples either side of it and
|
|
434
|
+
* at every sample between them. So a window narrower than the gap between two samples frames the
|
|
435
|
+
* line that crosses it. A window that holds the whole curve is no zoom and reads the series'
|
|
436
|
+
* stated extent, as no window does. A window the samples do not reach reads that extent too, so
|
|
437
|
+
* the frame keeps its scale with no curve in it.
|
|
438
|
+
*
|
|
439
|
+
* A series with no elevation gets a nominal domain rather than a degenerate one, so a caller
|
|
440
|
+
* that draws the frame before the data arrives gets the frame it will keep.
|
|
441
|
+
*
|
|
442
|
+
* @param series The series to frame. Its `minElevation` and `maxElevation` are the stated extent.
|
|
443
|
+
* @param range The window the chart is drawn in, in meters from the start of the itinerary, its
|
|
444
|
+
* two ends in either order. Omitted, the domain frames the whole series.
|
|
445
|
+
* @returns The domain in meters above sea level, rounded outward at both ends and never narrower
|
|
446
|
+
* than the floor a flat itinerary is drawn against.
|
|
447
|
+
*/
|
|
448
|
+
declare const profileDomain: (series: ElevationSeries, range?: ProfileRange) => ElevationDomain;
|
|
449
|
+
/**
|
|
450
|
+
* What a chart's elevation scale is anchored on: the itinerary's own extent, sea level, or the
|
|
451
|
+
* stretch the window drawn holds.
|
|
452
|
+
*/
|
|
453
|
+
type ProfileAnchor = "route" | "sea-level" | "window";
|
|
454
|
+
/**
|
|
455
|
+
* anchoredDomain chooses the elevation range a chart is drawn against, by what its scale is
|
|
456
|
+
* anchored on.
|
|
457
|
+
*
|
|
458
|
+
* `route` frames the whole itinerary whatever the window, so a zoomed curve keeps the height it
|
|
459
|
+
* had. `window` frames the stretch the window holds, as {@link profileDomain} reads a window, so
|
|
460
|
+
* zooming into a section rescales to its own relief. `sea-level` moves only the floor, to zero:
|
|
461
|
+
* the ceiling stays the one the itinerary's own extent was rounded to, so a sea-level scale is the
|
|
462
|
+
* itinerary's scale extended downward rather than a second rounding rule.
|
|
463
|
+
*
|
|
464
|
+
* @param series The series the chart draws.
|
|
465
|
+
* @param anchor What the scale is anchored on.
|
|
466
|
+
* @param range The window drawn, its two ends in either order. Read only where the scale is
|
|
467
|
+
* anchored on it, and the whole itinerary where omitted.
|
|
468
|
+
* @returns The domain in meters above sea level.
|
|
469
|
+
*/
|
|
470
|
+
declare const anchoredDomain: (series: ElevationSeries, anchor: ProfileAnchor, range?: ProfileRange) => ElevationDomain;
|
|
471
|
+
/**
|
|
472
|
+
* domainTicks answers the elevations a chart's scale is labelled at, low to high: the domain's
|
|
473
|
+
* floor, its middle and its ceiling.
|
|
474
|
+
*
|
|
475
|
+
* Three, because that is what a short plot holds without its labels touching, and enough to read
|
|
476
|
+
* a curve against: the two bounds, and the halfway mark that says whether a climb is in the top
|
|
477
|
+
* or the bottom half of its range. They need no rounded lattice the way the distance axis does,
|
|
478
|
+
* because they are not a scale of chosen intervals: each states one of the frame's own bounds, so
|
|
479
|
+
* an unround figure is the honest reading of a summit, and rounding it would move the frame.
|
|
480
|
+
*/
|
|
481
|
+
declare const domainTicks: (domain: ElevationDomain) => readonly [number, number, number];
|
|
482
|
+
/**
|
|
483
|
+
* profileX maps a distance along the itinerary to the unit space, and to a CSS percentage.
|
|
484
|
+
*
|
|
485
|
+
* A zero-length itinerary collapses to the origin rather than dividing by zero.
|
|
486
|
+
*
|
|
487
|
+
* `range` narrows the frame to a stretch of the itinerary: the window's start becomes 0 and its
|
|
488
|
+
* end becomes 100, which is the whole of what zooming a profile is. It is an optional trailing
|
|
489
|
+
* parameter rather than a replacement for `totalDistance` because an omitted window IS the
|
|
490
|
+
* whole itinerary, so a call that never zooms states no window, and the two paths cannot drift.
|
|
491
|
+
*
|
|
492
|
+
* The result stays clamped to the frame in both cases, so a pin placed outside the window
|
|
493
|
+
* lands on the edge rather than off it. A caller that wants it truly gone filters the pin out;
|
|
494
|
+
* a mark hidden by clipping would still be in the tab order.
|
|
495
|
+
*/
|
|
496
|
+
declare const profileX: (meters: number, totalDistance: number, range?: ProfileRange) => number;
|
|
497
|
+
/**
|
|
498
|
+
* profileY maps an elevation to the unit space, inverted, and to a CSS percentage.
|
|
499
|
+
*
|
|
500
|
+
* A domain with no span centres its samples instead of pinning them to the floor, so a
|
|
501
|
+
* hand-built degenerate domain draws a line through the middle rather than along the edge.
|
|
502
|
+
*/
|
|
503
|
+
declare const profileY: (elevation: number, domain: ElevationDomain) => number;
|
|
504
|
+
/**
|
|
505
|
+
* profilePolyline renders a series as the `points` attribute of an SVG `<polyline>`.
|
|
506
|
+
*
|
|
507
|
+
* `range` draws only the stretch a zoomed chart shows. It projects through the unclamped
|
|
508
|
+
* mapping so the curve runs off-frame at both ends and the `<svg>` clips it, rather than
|
|
509
|
+
* standing every off-window sample upright against the edge.
|
|
510
|
+
*/
|
|
511
|
+
declare const profilePolyline: (points: readonly ElevationPoint[], totalDistance: number, domain: ElevationDomain, range?: ProfileRange) => string;
|
|
512
|
+
/** A stretch of the itinerary, drawn in a colour of its own. */
|
|
513
|
+
interface CurveColor {
|
|
514
|
+
/** Meters from the start of the itinerary. */
|
|
515
|
+
readonly from: number;
|
|
516
|
+
/** Meters from the start of the itinerary. */
|
|
517
|
+
readonly to: number;
|
|
518
|
+
/** Any CSS colour, painted as given. This is data, not a theme token. */
|
|
519
|
+
readonly color: string;
|
|
520
|
+
}
|
|
521
|
+
/** One stop of the gradient a multi-coloured curve is painted with. */
|
|
522
|
+
interface CurveStop {
|
|
523
|
+
/** A 0..1 fraction of the itinerary, which is what an SVG `<stop offset>` takes. */
|
|
524
|
+
readonly offset: number;
|
|
525
|
+
/**
|
|
526
|
+
* The caller's colour for the stretch, or null where the caller coloured nothing.
|
|
527
|
+
*
|
|
528
|
+
* Null rather than a colour of this module's choosing, because a stretch nobody coloured is
|
|
529
|
+
* painted with the renderer's own accent, and a theme token is the renderer's to name: this
|
|
530
|
+
* entry renders nothing. `@mountaya/elements-react` paints null with `var(--mtya-accent)`, so
|
|
531
|
+
* an uncoloured stretch follows the theme it would have followed with no colours at all.
|
|
532
|
+
*/
|
|
533
|
+
readonly color: string | null;
|
|
534
|
+
}
|
|
535
|
+
/**
|
|
536
|
+
* A stretch of the itinerary the caller has classified: a colour, and the word it reads as.
|
|
537
|
+
*
|
|
538
|
+
* The label is what a tooltip's dot says. Deliberately untyped as to meaning, exactly like the
|
|
539
|
+
* band strip: surface, way type, technicality, avalanche exposure, a sponsor's sectors. This
|
|
540
|
+
* module paints `from` to `to` in `color` and hands the word back, and never learns the
|
|
541
|
+
* taxonomy. A vocabulary baked in here would be Mountaya's imposed on every consumer, and
|
|
542
|
+
* would need a release to extend.
|
|
543
|
+
*/
|
|
544
|
+
interface ProfileClass extends CurveColor {
|
|
545
|
+
readonly label: string;
|
|
546
|
+
}
|
|
547
|
+
/**
|
|
548
|
+
* curveSpans normalizes stretches into distance order with no overlap.
|
|
549
|
+
*
|
|
550
|
+
* {@link curveStops} reads it, and so does the lookup, so the rule (where two stretches would
|
|
551
|
+
* share ground, the EARLIER one keeps it) is stated once for the gradient and the tooltip. A
|
|
552
|
+
* tooltip that resolved overlap the other way would name a colour the curve is not painted in,
|
|
553
|
+
* which is a disagreement no type can catch.
|
|
554
|
+
*
|
|
555
|
+
* Generic, so a classified span keeps its label through the pass, and a table's row its own
|
|
556
|
+
* members. A stretch given backwards is read in order, and one of no length is left out.
|
|
557
|
+
*/
|
|
558
|
+
declare const curveSpans: <T extends ProfileRange>(stretches: readonly T[]) => T[];
|
|
559
|
+
/**
|
|
560
|
+
* classAt finds the stretch a distance falls in, or `null` where none does.
|
|
561
|
+
*
|
|
562
|
+
* Half-open at the top, so a distance exactly on a boundary reads as the stretch that starts
|
|
563
|
+
* there rather than the one that ends there, the same way a cursor moving forward reads it.
|
|
564
|
+
* Where no stretch starts on a boundary, the one that ends there keeps it: its own last meter
|
|
565
|
+
* before a gap, and the last meter of the itinerary.
|
|
566
|
+
*
|
|
567
|
+
* The one reading of a distance against stretches: the word a hover card names, the colour it
|
|
568
|
+
* shows and the leg a cursor lights on a map are each this answer, so two of them can never name
|
|
569
|
+
* two neighbours at the meter they share. Read through {@link curveSpans}, so an overlap is
|
|
570
|
+
* resolved as the curve is painted and a stretch of no length is never the answer.
|
|
571
|
+
*
|
|
572
|
+
* @param classes The stretches, in any order.
|
|
573
|
+
* @param distance Meters from the start of the itinerary.
|
|
574
|
+
* @returns The stretch, as {@link curveSpans} states it, or `null` in a gap, before the first
|
|
575
|
+
* stretch and past the last.
|
|
576
|
+
*/
|
|
577
|
+
declare const classAt: <T extends ProfileRange>(classes: readonly T[], distance: number) => T | null;
|
|
578
|
+
/**
|
|
579
|
+
* One bucket of the slope ramp: everything from `grade` up to the next stop, painted in
|
|
580
|
+
* `color`.
|
|
581
|
+
*
|
|
582
|
+
* `key` rather than a label, because a label is a word and words belong to the renderer:
|
|
583
|
+
* this entry point ships no strings runtime and must not grow one. `@mountaya/elements-react`
|
|
584
|
+
* maps the key onto its own translatable table.
|
|
585
|
+
*/
|
|
586
|
+
interface SlopeColorStop {
|
|
587
|
+
/** Degrees. Signed, so a descent bucket is negative. */
|
|
588
|
+
readonly grade: number;
|
|
589
|
+
readonly color: string;
|
|
590
|
+
readonly key: string;
|
|
591
|
+
}
|
|
592
|
+
/**
|
|
593
|
+
* The default slope ramp: steep descent, descent, flat, ascent, steep ascent.
|
|
594
|
+
*
|
|
595
|
+
* Five buckets rather than a continuous gradient, because a reader compares a stretch against
|
|
596
|
+
* a category and not against a hue. The boundaries are in degrees (roughly ±3° for the flat
|
|
597
|
+
* band and ±10° for steep), which are the angles a walker feels the difference at, and the
|
|
598
|
+
* colours run green through orange in the direction difficulty runs.
|
|
599
|
+
*/
|
|
600
|
+
declare const SLOPE_COLOR_STOPS: readonly SlopeColorStop[];
|
|
601
|
+
/**
|
|
602
|
+
* slopeColors buckets an itinerary's own steepness into coloured, labelled stretches.
|
|
603
|
+
*
|
|
604
|
+
* Grade is read with `gradeAt` where the sampling supports it, so a bucket boundary is a real
|
|
605
|
+
* change in the terrain rather than a change between two adjacent DEM samples, and is the
|
|
606
|
+
* sample interval's own where it does not: see {@link stretchGrade}. Adjacent samples in the
|
|
607
|
+
* same bucket coalesce into one stretch, which is what keeps the gradient a handful of stops
|
|
608
|
+
* rather than one per sample: a five-hundred-sample itinerary would otherwise mount a
|
|
609
|
+
* thousand-stop gradient and repaint it on every hover.
|
|
610
|
+
*
|
|
611
|
+
* The result is a {@link ProfileClass} list, which is the same shape a caller's own
|
|
612
|
+
* classification takes: one colouring pipeline, whether the stretches were computed or stated.
|
|
613
|
+
*
|
|
614
|
+
* @param points The series' samples, ascending by distance.
|
|
615
|
+
* @param stops The ramp's buckets, ascending by grade.
|
|
616
|
+
* @default stops {@link SLOPE_COLOR_STOPS}
|
|
617
|
+
*/
|
|
618
|
+
declare const slopeColors: (points: readonly ElevationPoint[], stops?: readonly SlopeColorStop[]) => ProfileClass[];
|
|
619
|
+
/**
|
|
620
|
+
* curveStops turns coloured stretches of itinerary into the gradient that paints the curve.
|
|
621
|
+
*
|
|
622
|
+
* A gradient rather than one path per stretch, for two reasons that both come down to the
|
|
623
|
+
* joins. Separate paths meet at a seam that antialiases into a hairline of background at
|
|
624
|
+
* every boundary, and each one needs its own clip in a space the caller can resize; a single
|
|
625
|
+
* path filled with a gradient has no boundary to seam. **Every colour change is a hard edge**
|
|
626
|
+
* (two stops at the same offset), because these are stretches of itinerary, not a blend.
|
|
627
|
+
*
|
|
628
|
+
* Stretches are taken in distance order and cannot overlap: where two would, the earlier one
|
|
629
|
+
* keeps the shared ground. Overlap is the one case a gradient genuinely cannot express (a
|
|
630
|
+
* stop offset can only move forward), so it is resolved here, in the open, rather than
|
|
631
|
+
* emitting stops that go backwards and render as a colour nobody asked for.
|
|
632
|
+
*
|
|
633
|
+
* Ground no stretch covers is emitted as stops whose `color` is null, which the renderer paints
|
|
634
|
+
* with its own accent. The stops never name a colour the caller did not pass.
|
|
635
|
+
*
|
|
636
|
+
* @returns The stops in offset order, or nothing at all when no stretch survives, which is the
|
|
637
|
+
* signal to paint the curve with the plain CSS fill and mount no gradient: the common case,
|
|
638
|
+
* and free.
|
|
639
|
+
*/
|
|
640
|
+
declare const curveStops: (colors: readonly CurveColor[], totalDistance: number, range?: ProfileRange) => CurveStop[];
|
|
641
|
+
/**
|
|
642
|
+
* profileAreaPath renders a series as the filled region under its curve.
|
|
643
|
+
*
|
|
644
|
+
* Closed against the bottom of the viewBox rather than against the baseline, so the fill
|
|
645
|
+
* reads as ground under the itinerary rather than as a band floating above the frame.
|
|
646
|
+
*/
|
|
647
|
+
declare const profileAreaPath: (points: readonly ElevationPoint[], totalDistance: number, domain: ElevationDomain, range?: ProfileRange) => string;
|
|
648
|
+
/**
|
|
649
|
+
* A waypoint resolved to a position in the chart's unit space.
|
|
650
|
+
*
|
|
651
|
+
* The placement is done once, below, so the pin layer, the axis labels and the section chips
|
|
652
|
+
* all read the same projection rather than three of their own. It is declared beside the rule
|
|
653
|
+
* that places it, so the rule does not depend on the component that draws the pins.
|
|
654
|
+
*/
|
|
655
|
+
interface PlacedWaypointMark {
|
|
656
|
+
readonly key: string;
|
|
657
|
+
readonly id: string;
|
|
658
|
+
readonly label?: string | undefined;
|
|
659
|
+
readonly glyph?: string | undefined;
|
|
660
|
+
readonly color?: string | undefined;
|
|
661
|
+
readonly x: number;
|
|
662
|
+
readonly y: number;
|
|
663
|
+
/**
|
|
664
|
+
* What the waypoint says about the place it marks, carried through from the itinerary.
|
|
665
|
+
*
|
|
666
|
+
* On the mark rather than looked up by id, because a lookup would need the caller's waypoint
|
|
667
|
+
* array threaded into every renderer that draws one, and because an itinerary that doubles
|
|
668
|
+
* back past a place has two marks for one id, so the id is not a key here.
|
|
669
|
+
*/
|
|
670
|
+
readonly details?: WaypointDetails | undefined;
|
|
671
|
+
/**
|
|
672
|
+
* Meters above sea level where the curve sits under this mark, read on the line between the
|
|
673
|
+
* two samples either side of it.
|
|
674
|
+
*/
|
|
675
|
+
readonly altitude: number;
|
|
676
|
+
/** Meters from the itinerary's start. */
|
|
677
|
+
readonly distance: number;
|
|
678
|
+
}
|
|
679
|
+
/** A dividing waypoint resolved to its label position on the distance axis. */
|
|
680
|
+
interface PlacedDivider {
|
|
681
|
+
readonly key: string;
|
|
682
|
+
readonly id: string;
|
|
683
|
+
readonly name: string;
|
|
684
|
+
readonly color?: string | undefined;
|
|
685
|
+
/** Meters from the itinerary's start. */
|
|
686
|
+
readonly distance: number;
|
|
687
|
+
/** Unit-space x, which is also a CSS percentage. */
|
|
688
|
+
readonly x: number;
|
|
689
|
+
/**
|
|
690
|
+
* Where the curve sits at that distance, for the drop line's far end. `null` on a 2D
|
|
691
|
+
* itinerary.
|
|
692
|
+
*/
|
|
693
|
+
readonly y: number | null;
|
|
694
|
+
}
|
|
695
|
+
/**
|
|
696
|
+
* What placing waypoints on the curve reads: the itinerary, its series, the window and the
|
|
697
|
+
* places.
|
|
698
|
+
*/
|
|
699
|
+
interface PlaceOnCurveInput {
|
|
700
|
+
/** The same value the element takes, `undefined` included, so a caller passes theirs through. */
|
|
701
|
+
readonly geojson: ProfileInput | null | undefined;
|
|
702
|
+
readonly series: ElevationSeries;
|
|
703
|
+
readonly domain: ElevationDomain;
|
|
704
|
+
readonly range: ProfileRange;
|
|
705
|
+
readonly waypoints: readonly Waypoint[];
|
|
706
|
+
}
|
|
707
|
+
/**
|
|
708
|
+
* A waypoint that publishes a cut-off, resolved to its mark on the distance axis.
|
|
709
|
+
*
|
|
710
|
+
* The cut-off is carried as the instant the place publishes, unformatted: printing it needs a
|
|
711
|
+
* time zone, which the renderer holds and this module does not.
|
|
712
|
+
*/
|
|
713
|
+
interface PlacedCutoff {
|
|
714
|
+
readonly key: string;
|
|
715
|
+
readonly id: string;
|
|
716
|
+
/** The place's name, for the label's accessible description. */
|
|
717
|
+
readonly name?: string | undefined;
|
|
718
|
+
/** Meters from the itinerary's start. */
|
|
719
|
+
readonly distance: number;
|
|
720
|
+
/** Unit-space x, which is also a CSS percentage. */
|
|
721
|
+
readonly x: number;
|
|
722
|
+
/** RFC 3339 instant by which the place must be left, where one is published. */
|
|
723
|
+
readonly cutoffAt?: string | undefined;
|
|
724
|
+
}
|
|
725
|
+
/** The waypoints placed on the curve, sorted by what each is drawn as. */
|
|
726
|
+
interface PlaceOnCurveValue {
|
|
727
|
+
/** Every waypoint, in itinerary order, whatever it is drawn as. */
|
|
728
|
+
readonly placed: readonly PlacedWaypoint[];
|
|
729
|
+
/** The ones drawn as pins on the curve, already filtered to the window. */
|
|
730
|
+
readonly pins: PlacedWaypointMark[];
|
|
731
|
+
/** The ones that divide the itinerary, already filtered to the window. */
|
|
732
|
+
readonly dividers: PlacedDivider[];
|
|
733
|
+
/**
|
|
734
|
+
* The ones publishing a cut-off, already filtered to the window.
|
|
735
|
+
*
|
|
736
|
+
* Falls out of the same walk rather than being a second pass: a cut-off belongs to a waypoint,
|
|
737
|
+
* and the waypoint has already been projected onto the axis by the time it is read.
|
|
738
|
+
*/
|
|
739
|
+
readonly cutoffs: PlacedCutoff[];
|
|
740
|
+
}
|
|
741
|
+
/**
|
|
742
|
+
* placeOnCurve resolves every waypoint once, and hands each renderer the slice it draws.
|
|
743
|
+
*
|
|
744
|
+
* One projection, three readers: the pin layer, the axis labels and the drop lines. Not
|
|
745
|
+
* tidiness: `resolveWaypoints` walks the geometry, and calling it once per renderer would
|
|
746
|
+
* walk a recorded track three times on every geometry change.
|
|
747
|
+
*
|
|
748
|
+
* **Anything outside the window is filtered out rather than clipped.** Pins and axis labels are
|
|
749
|
+
* focusable or semantic: `overflow: hidden` would leave an off-screen `<button>` in the tab
|
|
750
|
+
* order, and it would clip the two pins at the very ends of the itinerary, which sit half outside
|
|
751
|
+
* the frame by design (`translate(-50%, -100%)`). Clipping is for the curve, which the `<svg>`
|
|
752
|
+
* does for itself.
|
|
753
|
+
*/
|
|
754
|
+
declare const placeOnCurve: ({ geojson, series, domain, range, waypoints }: PlaceOnCurveInput) => PlaceOnCurveValue;
|
|
755
|
+
/**
|
|
756
|
+
* EMBED_FIT_BASE_MARGIN is the breathing room (CSS pixels) the embed keeps on every
|
|
757
|
+
* side between the framed route and the viewport edge, so the route sits clear of the
|
|
758
|
+
* edges, the top-left watermark, and the top-right controls rather than running up
|
|
759
|
+
* against them. Sized for the short embed frame (a 480px preview): a heavier margin
|
|
760
|
+
* pushes the fit to zoom further out to leave the inset, which in a small viewport can
|
|
761
|
+
* force the route past the organization's minimum zoom and overflow, so it stays modest
|
|
762
|
+
* here while the bottom side adds the docked-profile inset on top of it.
|
|
763
|
+
*/
|
|
764
|
+
declare const EMBED_FIT_BASE_MARGIN = 56;
|
|
765
|
+
/**
|
|
766
|
+
* EMBED_PROFILE_ANCHOR_INSET is the docked profile's bottom offset from the viewport
|
|
767
|
+
* edge, the gap the embed positions the panel with.
|
|
768
|
+
* The profile's reserved bottom inset starts from this gap, so the camera clears the
|
|
769
|
+
* panel AND the gap beneath it.
|
|
770
|
+
*/
|
|
771
|
+
declare const EMBED_PROFILE_ANCHOR_INSET = 16;
|
|
772
|
+
/**
|
|
773
|
+
* EMBED_PROFILE_PANEL_CHROME is the docked panel's own vertical chrome (its padding, top
|
|
774
|
+
* and bottom, plus its border), reserved once whenever any profile section shows, so the
|
|
775
|
+
* camera clears the panel's full painted box rather than just its inner content.
|
|
776
|
+
*/
|
|
777
|
+
declare const EMBED_PROFILE_PANEL_CHROME = 24;
|
|
778
|
+
/**
|
|
779
|
+
* EMBED_PROFILE_CHARACTERISTICS_HEIGHT is the height the characteristics row occupies:
|
|
780
|
+
* the activity badge (36px) and the single-line key-figures / segment-chooser row fit
|
|
781
|
+
* within it. Reserved when the characteristics section is enabled.
|
|
782
|
+
*/
|
|
783
|
+
declare const EMBED_PROFILE_CHARACTERISTICS_HEIGHT = 40;
|
|
784
|
+
/**
|
|
785
|
+
* EMBED_PROFILE_ANALYSIS_HEIGHT is the height the two analysis bars (way type +
|
|
786
|
+
* surface) and the gap between them occupy. Reserved when the analysis section is
|
|
787
|
+
* enabled. A route with neither classified renders no bar at all and comes in under
|
|
788
|
+
* the reservation, which is the safe direction: the padding is a floor for fitting
|
|
789
|
+
* the map around the profile, so over-reserving leaves a little slack rather than
|
|
790
|
+
* clipping the bars.
|
|
791
|
+
*/
|
|
792
|
+
declare const EMBED_PROFILE_ANALYSIS_HEIGHT = 36;
|
|
793
|
+
/**
|
|
794
|
+
* EMBED_PROFILE_SECTION_GAP is the vertical gap between two stacked sections, added once
|
|
795
|
+
* per gap between the enabled sections so the reserved height tracks the rendered layout.
|
|
796
|
+
*/
|
|
797
|
+
declare const EMBED_PROFILE_SECTION_GAP = 12;
|
|
798
|
+
/**
|
|
799
|
+
* PROFILE_PANEL_MIN_GAP is the breathing gap (CSS pixels) kept between an open floating
|
|
800
|
+
* panel's bottom edge and the docked profile's top edge, so the profile never butts
|
|
801
|
+
* directly against the panel. The visibility resolver subtracts it from the room beneath
|
|
802
|
+
* an open panel before deciding which profile tier fits.
|
|
803
|
+
*/
|
|
804
|
+
declare const PROFILE_PANEL_MIN_GAP = 12;
|
|
805
|
+
/**
|
|
806
|
+
* EmbedProfileSections is which profile sections the embed config enables: the same
|
|
807
|
+
* three flags the docked panel renders from. They decide how tall the reserved bottom
|
|
808
|
+
* inset is: an embed showing only the characteristics row reserves far less than one
|
|
809
|
+
* showing the chart and the analysis bars.
|
|
810
|
+
*/
|
|
811
|
+
interface EmbedProfileSections {
|
|
812
|
+
showAnalysis: boolean;
|
|
813
|
+
showCharacteristics: boolean;
|
|
814
|
+
showElevation: boolean;
|
|
815
|
+
}
|
|
816
|
+
/**
|
|
817
|
+
* estimateProfileHeight estimates the docked profile panel's rendered box height (CSS
|
|
818
|
+
* pixels) for a section combination: its inner content plus the panel's own chrome,
|
|
819
|
+
* excluding the anchor inset beneath it and the base breathing margin above it.
|
|
820
|
+
*
|
|
821
|
+
* Which sections contribute follows the docked profile's collapse rules: the characteristics
|
|
822
|
+
* row renders whenever it is enabled; the elevation chart renders when it is enabled AND
|
|
823
|
+
* is not collapsed away (a panel hides the chart only while the characteristics row stays
|
|
824
|
+
* as the visible summary); the analysis bars render only while no panel collapses them.
|
|
825
|
+
* With `collapsed` false the estimate is the full profile; with it true the estimate is
|
|
826
|
+
* the stat bar an open panel shrinks the profile to. Pure: it reads only the section flags
|
|
827
|
+
* and the layout constants.
|
|
828
|
+
*
|
|
829
|
+
* @returns 0 when nothing renders (the panel is not mounted), otherwise the panel chrome plus
|
|
830
|
+
* the enabled section heights and the gaps between them.
|
|
831
|
+
*/
|
|
832
|
+
declare const estimateProfileHeight: (sections: EmbedProfileSections, options?: {
|
|
833
|
+
collapsed?: boolean | undefined;
|
|
834
|
+
}) => number;
|
|
835
|
+
/**
|
|
836
|
+
* embedFitPadding derives the camera padding the embed frames its route with: the base
|
|
837
|
+
* breathing margin on every side, plus a BOTTOM inset sized to the docked profile so
|
|
838
|
+
* the framed route never hides behind it.
|
|
839
|
+
*
|
|
840
|
+
* When `measuredPanelHeight` is supplied (the docked panel's real rendered box height,
|
|
841
|
+
* measured via a ResizeObserver on its anchor container), the bottom inset is that
|
|
842
|
+
* height plus the panel's anchor offset and the base margin, so the fit tracks the
|
|
843
|
+
* actual panel at every profile-section combination rather than a constant estimate. A
|
|
844
|
+
* zero/negative measurement (a 2D itinerary whose profile renders nothing, or a
|
|
845
|
+
* not-yet-laid-out box) means no visible panel, so the bottom keeps only the base
|
|
846
|
+
* margin.
|
|
847
|
+
*
|
|
848
|
+
* When no measurement exists yet (the first tick before the observer fires, or a
|
|
849
|
+
* render-free/test context) it falls back to the shared full-profile estimate
|
|
850
|
+
* ({@link estimateProfileHeight}): the enabled sections' heights, the gaps between them, and
|
|
851
|
+
* the panel's own chrome, plus its anchor offset. With no section enabled the estimate is
|
|
852
|
+
* zero (the profile is suppressed entirely), so the bottom side keeps only the base margin.
|
|
853
|
+
*
|
|
854
|
+
* Pure: it reads the section flags, the optional measured height, and the profile layout
|
|
855
|
+
* constants and returns the per-edge padding, with no store, map, or DOM access.
|
|
856
|
+
*/
|
|
857
|
+
declare const embedFitPadding: (sections: EmbedProfileSections, measuredPanelHeight?: number | null) => FitBoundsPadding;
|
|
858
|
+
/**
|
|
859
|
+
* ProfileVisibility is the docked profile's three-state visibility on the embed: the full
|
|
860
|
+
* area chart ("chart"), the collapsed stat bar an open floating panel shrinks it to
|
|
861
|
+
* ("bar"), or fully removed ("hidden") when even the stat bar cannot clear an open panel
|
|
862
|
+
* on a short surface.
|
|
863
|
+
*/
|
|
864
|
+
type ProfileVisibility = "chart" | "bar" | "hidden";
|
|
865
|
+
/**
|
|
866
|
+
* ProfileVisibilityInput is the measured geometry {@link resolveProfileVisibility} reads.
|
|
867
|
+
*
|
|
868
|
+
* Every length is in CSS pixels, in the embed root's own coordinate space, so a root that is
|
|
869
|
+
* offset on its page measures the same as one that is not. A caller measures the root and the
|
|
870
|
+
* open panel, fills this, and hands it over: the rule reads it and never writes to it.
|
|
871
|
+
*/
|
|
872
|
+
interface ProfileVisibilityInput {
|
|
873
|
+
/**
|
|
874
|
+
* The open panel's bottom edge, measured down from the root's top edge. Read only while
|
|
875
|
+
* `panelOpen` is true.
|
|
876
|
+
*/
|
|
877
|
+
readonly panelBottom: number;
|
|
878
|
+
/** Whether a floating panel is open over the surface, which the profile has to clear. */
|
|
879
|
+
readonly panelOpen: boolean;
|
|
880
|
+
/**
|
|
881
|
+
* The root's rendered height. Zero or less reads as a surface not laid out yet, which shows
|
|
882
|
+
* the full chart.
|
|
883
|
+
*/
|
|
884
|
+
readonly rootHeight: number;
|
|
885
|
+
/** The profile sections the embed's configuration enables. */
|
|
886
|
+
readonly sections: EmbedProfileSections;
|
|
887
|
+
}
|
|
888
|
+
/**
|
|
889
|
+
* resolveProfileVisibility picks the docked profile's visibility tier from the measured
|
|
890
|
+
* surface geometry, so the profile stays out of an open floating panel's way on a short
|
|
891
|
+
* surface.
|
|
892
|
+
*
|
|
893
|
+
* An unmeasured or degenerate layout (rootHeight <= 0) fails open to the full chart, so the
|
|
894
|
+
* profile never flashes to hidden before the first real measurement lands. For a real
|
|
895
|
+
* (positive) height it computes the vertical room below any open panel (the root height less
|
|
896
|
+
* the anchor inset and, when a panel is open, the panel's bottom plus a breathing gap) and
|
|
897
|
+
* compares it against the profile's estimated full and collapsed heights: with no panel open
|
|
898
|
+
* the full chart shows when it fits, else the stat bar, else nothing; with a panel open the
|
|
899
|
+
* chart stays hidden (preserving the collapse UX), so it resolves to the stat bar when that
|
|
900
|
+
* fits and hidden otherwise. A panel taller than the surface yields a negative capacity,
|
|
901
|
+
* which every comparison treats as "hidden".
|
|
902
|
+
*
|
|
903
|
+
* Pure geometry: no store, map, or DOM access.
|
|
904
|
+
*/
|
|
905
|
+
declare const resolveProfileVisibility: (input: ProfileVisibilityInput) => ProfileVisibility;
|
|
906
|
+
/**
|
|
907
|
+
* An instant a place records, read as the client reads a timestamp and handed to the caller's
|
|
908
|
+
* formatter: a cut-off and a `date` field alike.
|
|
909
|
+
*
|
|
910
|
+
* A wall-clock time needs a time zone, and only the application holds the reader's, so the words a
|
|
911
|
+
* cut-off is printed in are the caller's formatter's. What reaches that formatter is the instant
|
|
912
|
+
* itself, never its text: a formatter handed text parses it again, and two formatters parse one
|
|
913
|
+
* text two ways. The reading is the contract's, the one `@mountaya/client` decodes a declared
|
|
914
|
+
* instant by. This package takes the client as a type-only peer, so it states the grammar here
|
|
915
|
+
* rather than importing the client's.
|
|
916
|
+
*/
|
|
917
|
+
/**
|
|
918
|
+
* formattedInstant writes an instant a place records through the caller's formatter: it hands
|
|
919
|
+
* `format` the instant `value` names, read as the client reads a timestamp, and answers `value` as
|
|
920
|
+
* it stands where it names none.
|
|
921
|
+
*
|
|
922
|
+
* @param value The instant as the place records it, an RFC 3339 timestamp with its zone.
|
|
923
|
+
* @param format The caller's formatter, which writes an instant in the reader's zone and language.
|
|
924
|
+
* @returns What the formatter writes, or `value` itself where it names no instant.
|
|
925
|
+
*
|
|
926
|
+
* @example
|
|
927
|
+
* ```ts
|
|
928
|
+
* import { formattedInstant } from "@mountaya/elements/profile";
|
|
929
|
+
*
|
|
930
|
+
* const time = new Intl.DateTimeFormat("fr", { timeStyle: "short", timeZone: "Europe/Paris" });
|
|
931
|
+
*
|
|
932
|
+
* formattedInstant("2026-07-14T09:00:00.000Z", (instant) => time.format(instant)); // "11:00"
|
|
933
|
+
* formattedInstant("at dawn", (instant) => time.format(instant)); // "at dawn"
|
|
934
|
+
* ```
|
|
935
|
+
*/
|
|
936
|
+
declare const formattedInstant: (value: string, format: (instant: Date) => string) => string;
|
|
937
|
+
/**
|
|
938
|
+
* A memoized `Intl.NumberFormat` for one locale and option shape.
|
|
939
|
+
*
|
|
940
|
+
* A language `Intl` refuses as a tag formats as the tag it spells with hyphens, or in English.
|
|
941
|
+
* An option `Intl` refuses still throws its `RangeError`.
|
|
942
|
+
*/
|
|
943
|
+
declare const numberFormat: (locale: string, options?: Intl.NumberFormatOptions) => Intl.NumberFormat;
|
|
944
|
+
/**
|
|
945
|
+
* A memoized `Intl.DateTimeFormat` for one locale and option shape, writing dates in the
|
|
946
|
+
* Gregorian calendar.
|
|
947
|
+
*
|
|
948
|
+
* The calendar is Gregorian whatever calendar the locale keeps, its tag names (`-u-ca-buddhist`)
|
|
949
|
+
* or the options ask for, so a Thai reader's date carries the year 2026 and never the Buddhist
|
|
950
|
+
* year 2569: every Mountaya SDK writes a date so, the one calendar each platform's locale services
|
|
951
|
+
* all write. The fields, their order, their words and their digits stay the locale's own.
|
|
952
|
+
*
|
|
953
|
+
* A language `Intl` refuses as a tag formats as the tag it spells with hyphens, or in English.
|
|
954
|
+
*
|
|
955
|
+
* @param locale The BCP 47 tag of the locale a date is written for.
|
|
956
|
+
* @param options The options `Intl.DateTimeFormat` takes: `dateStyle` for the locale's own date
|
|
957
|
+
* of a length, `timeStyle` (`short` or `medium`, the lengths every SDK writes alike) for its own
|
|
958
|
+
* time of day on the locale's own clock, both joined as the locale joins them, and `timeZone` for
|
|
959
|
+
* the IANA zone a date is placed in.
|
|
960
|
+
* @returns The formatter, or `null` where `options.timeZone` names a zone the runtime's zone data
|
|
961
|
+
* does not hold, which writes no date.
|
|
962
|
+
*
|
|
963
|
+
* @example
|
|
964
|
+
* ```ts
|
|
965
|
+
* import { dateTimeFormat } from "@mountaya/elements/profile";
|
|
966
|
+
*
|
|
967
|
+
* dateTimeFormat("th-TH", { dateStyle: "long", timeZone: "UTC" })?.format(new Date(0));
|
|
968
|
+
* // "1 มกราคม ค.ศ. 1970"
|
|
969
|
+
* ```
|
|
970
|
+
*/
|
|
971
|
+
declare const dateTimeFormat: (locale: string, options?: Intl.DateTimeFormatOptions) => Intl.DateTimeFormat | null;
|
|
972
|
+
/**
|
|
973
|
+
* A memoized `Intl.RelativeTimeFormat` for one locale and option shape.
|
|
974
|
+
*
|
|
975
|
+
* A language `Intl` refuses as a tag formats as the tag it spells with hyphens, or in English.
|
|
976
|
+
*/
|
|
977
|
+
declare const relativeTimeFormat: (locale: string, options?: Intl.RelativeTimeFormatOptions) => Intl.RelativeTimeFormat;
|
|
978
|
+
/**
|
|
979
|
+
* A memoized `Intl.DisplayNames` for one locale and option shape.
|
|
980
|
+
*
|
|
981
|
+
* A language `Intl` refuses as a tag names things as the tag it spells with hyphens does, or in
|
|
982
|
+
* English.
|
|
983
|
+
*/
|
|
984
|
+
declare const displayNames: (locale: string, options: Intl.DisplayNamesOptions) => Intl.DisplayNames;
|
|
985
|
+
/**
|
|
986
|
+
* clearIntlCache empties the cache.
|
|
987
|
+
*
|
|
988
|
+
* Published for one reader: a suite asserting that a formatter is constructed once, which
|
|
989
|
+
* cannot observe that without a way to start from empty. Nothing in the shipped source calls
|
|
990
|
+
* it, and `boundary.test.ts` is what keeps that true.
|
|
991
|
+
*/
|
|
992
|
+
declare const clearIntlCache: () => void;
|
|
993
|
+
/** The emphasis calls of a map an element lights a leg through. */
|
|
994
|
+
interface LegEmphasisMap {
|
|
995
|
+
setEmphasis(feature: Feature | null, options?: {
|
|
996
|
+
readonly color?: string | undefined;
|
|
997
|
+
} | undefined): void;
|
|
998
|
+
clearEmphasis(): void;
|
|
999
|
+
}
|
|
1000
|
+
/**
|
|
1001
|
+
* writeLegEmphasis lights the stretch an element points at on the map's emphasis slot, or takes
|
|
1002
|
+
* down what the element lit where it points at none, and answers whether the slot holds the
|
|
1003
|
+
* element's stretch afterwards.
|
|
1004
|
+
*
|
|
1005
|
+
* An element clears only a slot it wrote: two elements over one map would otherwise take turns
|
|
1006
|
+
* clearing each other's stretch as a pointer left one for the other, and an element that never
|
|
1007
|
+
* pointed at a leg leaves the slot as it found it.
|
|
1008
|
+
*
|
|
1009
|
+
* @param map The map whose emphasis slot is written.
|
|
1010
|
+
* @param lit Whether the slot holds this element's stretch.
|
|
1011
|
+
* @param stretch The stretch pointed at, or `null` where the element points at none.
|
|
1012
|
+
* @param color The colour the stretch is lit in, or `undefined` for the map's own.
|
|
1013
|
+
* @returns Whether the slot holds this element's stretch after the write.
|
|
1014
|
+
*/
|
|
1015
|
+
declare const writeLegEmphasis: (map: LegEmphasisMap, lit: boolean, stretch: Geometry | null, color?: string) => boolean;
|
|
1016
|
+
/**
|
|
1017
|
+
* The classification palettes an elevation profile's bars are filled from: one colour per surface
|
|
1018
|
+
* and one per way type, for the stretches a routed segment's analysis classifies.
|
|
1019
|
+
*
|
|
1020
|
+
* Each is keyed by the contract's own enum, `SurfaceType` and `WayType` from `@mountaya/client`,
|
|
1021
|
+
* so every value has a colour and a value the contract adds fails to type-check until it is given
|
|
1022
|
+
* one. They are a fixed data-visualization scale of hex literals rather than theme tokens, so a
|
|
1023
|
+
* legend reads the same under every organization's branding. The slope ramp is not one of them: it
|
|
1024
|
+
* is `slopeRampColor`, a continuous blend rather than a lookup.
|
|
1025
|
+
*/
|
|
1026
|
+
/**
|
|
1027
|
+
* surfaceColors maps every surface classification to the hex colour the elevation profile's
|
|
1028
|
+
* surface bar fills that stretch with.
|
|
1029
|
+
*
|
|
1030
|
+
* Grouped by material family, so the bar reads as a material legend at a glance: slate and stone
|
|
1031
|
+
* greys for hard surfaces (asphalt, concrete, paving), browns and ambers for loose ground (dirt,
|
|
1032
|
+
* gravel, sand), greens for vegetation (grass, grass paver). An unclassified stretch (`unknown`)
|
|
1033
|
+
* takes the neutral grey {@link wayTypeColors} gives it too.
|
|
1034
|
+
*/
|
|
1035
|
+
declare const surfaceColors: Readonly<Record<SurfaceType, string>>;
|
|
1036
|
+
/**
|
|
1037
|
+
* wayTypeColors maps every way-type classification to the hex colour the elevation profile's
|
|
1038
|
+
* way-type bar fills that stretch with.
|
|
1039
|
+
*
|
|
1040
|
+
* Grouped by who the way is built for, so the bar reads as a way-type legend at a glance: blues
|
|
1041
|
+
* for cycle infrastructure, greens for natural paths, oranges and reds for vehicle roads, purples
|
|
1042
|
+
* and indigos for pedestrian ways. An unclassified stretch (`unknown`) takes the neutral grey
|
|
1043
|
+
* {@link surfaceColors} gives it too.
|
|
1044
|
+
*/
|
|
1045
|
+
declare const wayTypeColors: Readonly<Record<WayType, string>>;
|
|
1046
|
+
/**
|
|
1047
|
+
* The box the elevation profile is drawn in, not the projections it is drawn with.
|
|
1048
|
+
*
|
|
1049
|
+
* The rest of this directory owns those: the 0..100 unit space, its insets, the elevation
|
|
1050
|
+
* domain a curve is fitted to. Nothing here restates them. What lives here is the frame around
|
|
1051
|
+
* the plot (the gutter the analysis bars' captions occupy, the inset their right edge stops
|
|
1052
|
+
* at, the height the unit space is stretched into) and the one map from a distance to a
|
|
1053
|
+
* position along it.
|
|
1054
|
+
*
|
|
1055
|
+
* It is here rather than in `@mountaya/elements-react` because two surfaces lay out against
|
|
1056
|
+
* these numbers and only one of them is the chart: the React elevation element draws the curve,
|
|
1057
|
+
* and the studio's analysis bars draw coloured bands underneath it that have to start and stop
|
|
1058
|
+
* on the same pixels. A constant two packages measure against is a rule, and a port writing its
|
|
1059
|
+
* own bar strip needs it before it has written a single widget.
|
|
1060
|
+
*
|
|
1061
|
+
* No colour lives here. The tint of the bars' cursor line is written in Mantine's custom
|
|
1062
|
+
* properties, so it names a design system, which this package's `boundary.test.ts` refuses
|
|
1063
|
+
* outright: geometry ports, and a tint expressed in somebody else's custom properties does not.
|
|
1064
|
+
* It lives in `@mountaya/studio-react`, the package that brings Mantine.
|
|
1065
|
+
*/
|
|
1066
|
+
/**
|
|
1067
|
+
* PROFILE_LABEL_COLUMN is the pixel gutter the analysis bars' captions occupy. It matches the
|
|
1068
|
+
* elevation element's own axis gutter (`--mtya-profile-axis-size`, restated in that element's
|
|
1069
|
+
* stylesheet because CSS cannot import a constant), so the bars' strips start exactly where the
|
|
1070
|
+
* curve does and a surface band sits under the stretch of route it describes. Widening one
|
|
1071
|
+
* without the other slides the two apart, and nothing renders wrong enough to notice, so
|
|
1072
|
+
* `elementTokens.test.ts` in `@mountaya/elements-react` holds this number against the token the
|
|
1073
|
+
* sheet declares. Sized so a four-digit metric elevation label ("2,600 m") and a two-word
|
|
1074
|
+
* caption ("Way type") each fit on one line.
|
|
1075
|
+
*/
|
|
1076
|
+
declare const PROFILE_LABEL_COLUMN = 68;
|
|
1077
|
+
/**
|
|
1078
|
+
* PROFILE_PLOT_RIGHT_INSET is the pixel inset at the right of the chart and the analysis
|
|
1079
|
+
* bars alike: breathing room so the curve's last sample and the final band do not run into
|
|
1080
|
+
* the panel's edge. Shared for the same reason as the gutter above: both plots have to end
|
|
1081
|
+
* on the same x or a band stops describing the stretch above it.
|
|
1082
|
+
*/
|
|
1083
|
+
declare const PROFILE_PLOT_RIGHT_INSET = 12;
|
|
1084
|
+
/**
|
|
1085
|
+
* PROFILE_CHART_HEIGHT is the plot's height in CSS pixels, handed to the elevation element
|
|
1086
|
+
* as its `height`. The curve is drawn in a stretched unit space rather than in pixels, so
|
|
1087
|
+
* this is the box that space is stretched into and nothing else reads it: a mark placed on
|
|
1088
|
+
* the curve is placed by percentage, so the waypoint overlay does not read it. A starting value
|
|
1089
|
+
* tuned visually by the caller.
|
|
1090
|
+
*/
|
|
1091
|
+
declare const PROFILE_CHART_HEIGHT = 80;
|
|
1092
|
+
/**
|
|
1093
|
+
* distanceToFraction maps a cumulative distance (km) to its fraction along the profile's
|
|
1094
|
+
* full distance, clamped to [0, 1] so a value at (or just past) the curve's extent still
|
|
1095
|
+
* resolves inside the plot rather than off its edge. A non-positive total collapses to 0.
|
|
1096
|
+
* The analysis bars' cells and their synced cursor line both call it, so a band and the line
|
|
1097
|
+
* at the same distance land on the same x fraction the curve is drawn against.
|
|
1098
|
+
*/
|
|
1099
|
+
declare const distanceToFraction: (km: number, totalKm: number) => number;
|
|
1100
|
+
/**
|
|
1101
|
+
* How many buckets a scrub is quantized into.
|
|
1102
|
+
*
|
|
1103
|
+
* On an eight-hundred-pixel chart that is a little over three pixels a bucket, which is finer
|
|
1104
|
+
* than a pointer is read and far finer than a curve drawn from five hundred samples can
|
|
1105
|
+
* distinguish. The count is fixed rather than derived from the element's width because
|
|
1106
|
+
* deriving it would mean measuring the element, which is the whole thing this design avoids.
|
|
1107
|
+
*/
|
|
1108
|
+
declare const HIT_SLICES = 240;
|
|
1109
|
+
/** SLICE_WIDTH is the width of one of the {@link HIT_SLICES} columns, in the chart's unit space. */
|
|
1110
|
+
declare const SLICE_WIDTH: number;
|
|
1111
|
+
/** One column of the invisible grid a pointer is read through. */
|
|
1112
|
+
interface HitSlice {
|
|
1113
|
+
readonly slice: number;
|
|
1114
|
+
/** Unit-space x of the column's left edge, which is also a CSS percentage. */
|
|
1115
|
+
readonly x: number;
|
|
1116
|
+
/** The sample this column resolves to, or `-1` where the series has none. */
|
|
1117
|
+
readonly index: number;
|
|
1118
|
+
}
|
|
1119
|
+
/**
|
|
1120
|
+
* buildSlices resolves the whole grid once, rather than binary-searching per pointer move.
|
|
1121
|
+
*
|
|
1122
|
+
* The geometry depends only on the series and the window, so these columns are stable across
|
|
1123
|
+
* an entire scrub, and a bucket index is exactly what an arrow key steps, which is why
|
|
1124
|
+
* keyboard scrubbing is the same code path as the pointer.
|
|
1125
|
+
*
|
|
1126
|
+
* The navigator drags through the same grid as the chart. Two grids with two ways of reading a
|
|
1127
|
+
* pointer would be two interaction models, and the second one is always the one nobody tested.
|
|
1128
|
+
*/
|
|
1129
|
+
declare const buildSlices: (points: readonly ElevationPoint[], range: ProfileRange) => HitSlice[];
|
|
1130
|
+
/**
|
|
1131
|
+
* distanceForSlice reads the distance a column stands for.
|
|
1132
|
+
*
|
|
1133
|
+
* The navigator needs the distance rather than the sample: a window edge is a place on the
|
|
1134
|
+
* axis, not a point on the curve, and snapping it to the nearest sample would make a drag
|
|
1135
|
+
* jump by a sample's width on a coarsely-sampled itinerary.
|
|
1136
|
+
*/
|
|
1137
|
+
declare const distanceForSlice: (slice: number, range: ProfileRange) => number;
|
|
1138
|
+
/**
|
|
1139
|
+
* rowStandsFor reports whether a row answers to a segment's id: its own, or, where the row is a
|
|
1140
|
+
* collapsed group, one of the segments it stands for.
|
|
1141
|
+
*
|
|
1142
|
+
* A map reports the segment its tiles carry, which for a group is always a member and never the id
|
|
1143
|
+
* the row was given, so a row matched on its own id alone would light nothing on exactly the
|
|
1144
|
+
* itineraries that most need it.
|
|
1145
|
+
*
|
|
1146
|
+
* @param row The row.
|
|
1147
|
+
* @param id The segment's id, or nothing.
|
|
1148
|
+
*/
|
|
1149
|
+
declare const rowStandsFor: (row: Pick<ItinerarySegmentRow, "id" | "memberIds">, id: string | null | undefined) => boolean;
|
|
1150
|
+
/**
|
|
1151
|
+
* rowAt answers the row a profile's cursor stands in: the one whose span holds the cursor's
|
|
1152
|
+
* distance, read as {@link classAt} reads a stretch.
|
|
1153
|
+
*
|
|
1154
|
+
* So the later of two rows holds the meter they share, the last meter of a row nothing follows
|
|
1155
|
+
* stays in that row, a row of no length holds nothing, and a distance in no row answers none. The
|
|
1156
|
+
* row the map lights and the stretch the hover card names are then one answer.
|
|
1157
|
+
*
|
|
1158
|
+
* @param rows The rows, each spanning its stretch of the distance axis.
|
|
1159
|
+
* @param distance Meters from the start of the itinerary.
|
|
1160
|
+
* @returns The row as given, or `null`.
|
|
1161
|
+
*/
|
|
1162
|
+
declare const rowAt: <T extends ProfileRange>(rows: readonly T[], distance: number) => T | null;
|
|
1163
|
+
/** One figure a section chip can state, each about its leg alone. */
|
|
1164
|
+
type SectionChipStat = "ascent" | "descent" | "distance" | "grade";
|
|
1165
|
+
/**
|
|
1166
|
+
* DEFAULT_SECTION_CHIP_STATS is what a chip states where its caller names nothing: its leg's
|
|
1167
|
+
* length and climb, the two a reader compares two legs on.
|
|
1168
|
+
*/
|
|
1169
|
+
declare const DEFAULT_SECTION_CHIP_STATS: readonly SectionChipStat[];
|
|
1170
|
+
/** One figure a chip states: which it is, and its value in meters or degrees. */
|
|
1171
|
+
interface SectionChipCell {
|
|
1172
|
+
readonly key: SectionChipStat;
|
|
1173
|
+
readonly value: number;
|
|
1174
|
+
}
|
|
1175
|
+
/** The figures of a leg a chip reads. */
|
|
1176
|
+
type SectionFigures = Pick<ItinerarySegmentRowMetrics, "sectionAscent" | "sectionDescent" | "sectionDistance">;
|
|
1177
|
+
/**
|
|
1178
|
+
* sectionGrade states a leg's average slope, in degrees: its climb less its loss, over its
|
|
1179
|
+
* length.
|
|
1180
|
+
*
|
|
1181
|
+
* The average rather than the steepest meter: a chip a few characters wide is read as "how hard
|
|
1182
|
+
* is this leg", and a maximum stated in that space reads as an average anyway. The itinerary's
|
|
1183
|
+
* true maximum is the stat strip's, where there is room to name it.
|
|
1184
|
+
*
|
|
1185
|
+
* @returns The grade, or `null` where a figure is missing or the leg has no length.
|
|
1186
|
+
*/
|
|
1187
|
+
declare const sectionGrade: ({ sectionAscent, sectionDescent, sectionDistance }: SectionFigures) => number | null;
|
|
1188
|
+
/**
|
|
1189
|
+
* sectionChipCells answers the figures a section chip states about its leg, in the order asked.
|
|
1190
|
+
*
|
|
1191
|
+
* Each is the leg's own: its length, its climb and its loss, stated positive as the wire states
|
|
1192
|
+
* them, and its average grade ({@link sectionGrade}). A figure with no value takes no cell, so a
|
|
1193
|
+
* leg of an itinerary with no elevation states its length alone.
|
|
1194
|
+
*
|
|
1195
|
+
* @param metrics The leg's figures, as a segment row states them.
|
|
1196
|
+
* @param stats The figures asked for, in the order the chip states them.
|
|
1197
|
+
* @default stats {@link DEFAULT_SECTION_CHIP_STATS}
|
|
1198
|
+
* @returns One cell per figure asked that has a value.
|
|
1199
|
+
*/
|
|
1200
|
+
declare const sectionChipCells: (metrics: SectionFigures, stats?: readonly SectionChipStat[]) => SectionChipCell[];
|
|
1201
|
+
/**
|
|
1202
|
+
* The continuous slope colour ramp: a signed grade in, a hex colour out.
|
|
1203
|
+
*
|
|
1204
|
+
* The third of three slope-colouring rules this family ships, and the reason all three are
|
|
1205
|
+
* named apart rather than spelled the same: they answer different questions and a reader who
|
|
1206
|
+
* reaches the wrong one gets a plausible colour. {@link slopeColors} buckets a whole itinerary
|
|
1207
|
+
* into coloured STRETCHES for a gradient; `slopeBandColor` in `@mountaya/elements/video` paints
|
|
1208
|
+
* one sample by its avalanche steepness BAND, symmetrically, because a 30° descent is as steep
|
|
1209
|
+
* as a 30° climb; this one paints one sample on a CONTINUOUS ramp that is asymmetric on purpose
|
|
1210
|
+
* (warm reds climbing, cool blues descending), so a reader tells the direction from the hue
|
|
1211
|
+
* before they read the number.
|
|
1212
|
+
*
|
|
1213
|
+
* A bare `slopeColor` would name any of the three, and two published declarations under one name
|
|
1214
|
+
* with two different palettes are a choice a reader cannot see; `slopeRampColor` names this one.
|
|
1215
|
+
* It is here because nothing in it is about React or about a studio: it is arithmetic over a
|
|
1216
|
+
* colour table, which is the same reason the projections and the formatters are here, and the
|
|
1217
|
+
* reason a Flutter port finds it.
|
|
1218
|
+
*/
|
|
1219
|
+
/**
|
|
1220
|
+
* One anchor on the ramp: a slope magnitude in degrees and the hex colour at exactly that
|
|
1221
|
+
* steepness. The ramp interpolates between adjacent stops, so a slope between two thresholds
|
|
1222
|
+
* reads a blended colour rather than snapping to a band.
|
|
1223
|
+
*/
|
|
1224
|
+
interface SlopeRampStop {
|
|
1225
|
+
readonly color: string;
|
|
1226
|
+
/** Degrees, unsigned: each half of the ramp is read by magnitude. */
|
|
1227
|
+
readonly degrees: number;
|
|
1228
|
+
}
|
|
1229
|
+
/**
|
|
1230
|
+
* The uphill half, from flat green through yellow and orange to deep red at the steepest.
|
|
1231
|
+
*
|
|
1232
|
+
* The stops are the thresholds an uphill gradient is coloured against; a slope between two is a
|
|
1233
|
+
* linear blend of their colours.
|
|
1234
|
+
*/
|
|
1235
|
+
declare const ASCENT_RAMP_STOPS: readonly SlopeRampStop[];
|
|
1236
|
+
/**
|
|
1237
|
+
* The downhill half, from flat through light to deep blue at the steepest.
|
|
1238
|
+
*
|
|
1239
|
+
* It mirrors {@link ASCENT_RAMP_STOPS} at the same degree thresholds, so a downhill stretch
|
|
1240
|
+
* reads cool blues against the uphill warm reds at matching steepness.
|
|
1241
|
+
*/
|
|
1242
|
+
declare const DESCENT_RAMP_STOPS: readonly SlopeRampStop[];
|
|
1243
|
+
/**
|
|
1244
|
+
* slopeRampColor resolves a SIGNED slope angle in degrees to its colour on the ramp.
|
|
1245
|
+
*
|
|
1246
|
+
* A positive (uphill) angle reads the warm ascent half, a negative (downhill) angle the cool
|
|
1247
|
+
* descent half by its magnitude, and a flat slope the green floor the two share. Angles steeper
|
|
1248
|
+
* than the last stop clamp to its colour.
|
|
1249
|
+
*
|
|
1250
|
+
* The result is lowercased, and that is not cosmetic: an at-stop colour is returned verbatim
|
|
1251
|
+
* from the table above while a blended one is built channel-by-channel in lowercase, so without
|
|
1252
|
+
* this a caller comparing two colours for equality (a chart deciding whether a stretch needs a
|
|
1253
|
+
* new gradient stop) sees `#FF9800` and `#ff9800` as different paints.
|
|
1254
|
+
*
|
|
1255
|
+
* A slope that is no number (`NaN`, or a value of another type from a caller the compiler does
|
|
1256
|
+
* not check) is neither uphill, downhill nor flat. It reads the neutral `#94a3b8` and never the
|
|
1257
|
+
* green floor, which would paint a stretch with no grade as level ground.
|
|
1258
|
+
*
|
|
1259
|
+
* @param degrees The slope angle, in degrees: positive uphill, negative downhill.
|
|
1260
|
+
* @returns A lowercase `#rrggbb` colour.
|
|
1261
|
+
*/
|
|
1262
|
+
declare const slopeRampColor: (degrees: number) => string;
|
|
1263
|
+
/** One figure the stat strip can state. */
|
|
1264
|
+
type StatStripStat = "ascent" | "descent" | "difficulty" | "distance" | "duration" | "elevation" | "grade";
|
|
1265
|
+
/**
|
|
1266
|
+
* DEFAULT_STAT_STRIP_STATS is what the strip states where its caller names nothing: the
|
|
1267
|
+
* itinerary's length, its climb, its loss and its highest point.
|
|
1268
|
+
*
|
|
1269
|
+
* The steepest grade is not among them, since a maximum stated beside three totals reads as an
|
|
1270
|
+
* average, and neither is the duration nor the difficulty, which no geometry implies.
|
|
1271
|
+
*/
|
|
1272
|
+
declare const DEFAULT_STAT_STRIP_STATS: readonly StatStripStat[];
|
|
1273
|
+
/**
|
|
1274
|
+
* One figure the strip states: which it is, and its value in meters, seconds or degrees, but the
|
|
1275
|
+
* difficulty, which is the itinerary's own word as written.
|
|
1276
|
+
*/
|
|
1277
|
+
type StatStripCell = {
|
|
1278
|
+
readonly key: Exclude<StatStripStat, "difficulty">;
|
|
1279
|
+
readonly value: number;
|
|
1280
|
+
} | {
|
|
1281
|
+
readonly key: "difficulty";
|
|
1282
|
+
readonly value: string;
|
|
1283
|
+
};
|
|
1284
|
+
/** Where a scrub stands, as the strip reads it. */
|
|
1285
|
+
interface StatStripCursor {
|
|
1286
|
+
/** Meters from the start of the itinerary, of the sample the cursor stands on. */
|
|
1287
|
+
readonly distance: number;
|
|
1288
|
+
/** Meters above sea level, of that sample. */
|
|
1289
|
+
readonly elevation: number;
|
|
1290
|
+
/** The grade there, in degrees, or `null` where none reads. */
|
|
1291
|
+
readonly grade: number | null;
|
|
1292
|
+
}
|
|
1293
|
+
/**
|
|
1294
|
+
* statStripCells answers the figures the stat strip states, in the order asked.
|
|
1295
|
+
*
|
|
1296
|
+
* Each is the itinerary's: its length, its duration, its climb and its loss, its highest
|
|
1297
|
+
* altitude, its steepest grade and its hardest difficulty. While a scrub stands the cursor takes
|
|
1298
|
+
* over three of them, the distance, the altitude and the grade, each the cursor's own and never
|
|
1299
|
+
* the itinerary's in its place. A figure with no value takes no cell, so a 2D itinerary states no
|
|
1300
|
+
* climb rather than a climb of zero.
|
|
1301
|
+
*
|
|
1302
|
+
* @param characteristics The itinerary's figures, stated over derived.
|
|
1303
|
+
* @param cursor Where a scrub stands, or `null` where none does.
|
|
1304
|
+
* @param stats The figures asked for, in the order the strip states them.
|
|
1305
|
+
* @default stats {@link DEFAULT_STAT_STRIP_STATS}
|
|
1306
|
+
* @returns One cell per figure asked that has a value.
|
|
1307
|
+
*/
|
|
1308
|
+
declare const statStripCells: (characteristics: ResolvedCharacteristics, cursor: StatStripCursor | null, stats?: readonly StatStripStat[]) => StatStripCell[];
|
|
1309
|
+
/**
|
|
1310
|
+
* STEEPNESS_OVERLAY_SLUG is the slug of the platform's steepness overlay. The studio
|
|
1311
|
+
* uses this single identifier wherever it branches on which surface overlay is
|
|
1312
|
+
* active, never the layer type or the display name.
|
|
1313
|
+
*/
|
|
1314
|
+
declare const STEEPNESS_OVERLAY_SLUG = "steepness";
|
|
1315
|
+
/**
|
|
1316
|
+
* SteepnessClass is the discrete five-band slope-angle classification the right-
|
|
1317
|
+
* click readout shows when the slope steepness overlay is active. The band
|
|
1318
|
+
* thresholds are the ones the platform's steepness overlay draws.
|
|
1319
|
+
*/
|
|
1320
|
+
type SteepnessClass = "25-30" | "30-35" | "35-40" | "40-45" | "45+";
|
|
1321
|
+
/**
|
|
1322
|
+
* STEEPNESS_THRESHOLDS are the degree breakpoints the right-click classifier
|
|
1323
|
+
* walks, the breakpoints of the platform's steepness overlay.
|
|
1324
|
+
*/
|
|
1325
|
+
declare const STEEPNESS_THRESHOLDS: readonly [25, 30, 35, 40, 45];
|
|
1326
|
+
/**
|
|
1327
|
+
* classifySteepness buckets a slope angle in degrees into its steepness band
|
|
1328
|
+
* label, or null when the slope is below the lowest threshold (the overlay
|
|
1329
|
+
* paints transparent there, so there's nothing to classify).
|
|
1330
|
+
*
|
|
1331
|
+
* A slope that is no number has no band and answers null: `NaN`, or what a caller the compiler
|
|
1332
|
+
* does not check hands over for a point with no slope. Every comparison with `NaN` is false, so
|
|
1333
|
+
* the first threshold is asked as what the slope reaches and never as what it falls short of,
|
|
1334
|
+
* or such a slope would fall through to the steepest band.
|
|
1335
|
+
*
|
|
1336
|
+
* @param slope The slope angle, in degrees.
|
|
1337
|
+
*/
|
|
1338
|
+
declare const classifySteepness: (slope: number) => SteepnessClass | null;
|
|
1339
|
+
/** One column the segment table draws for itself. */
|
|
1340
|
+
type SegmentTableColumn = "altitude" | "difficulty" | "distance" | "duration" | "elevation" | "profile" | "segment";
|
|
1341
|
+
/**
|
|
1342
|
+
* DEFAULT_SEGMENT_TABLE_COLUMNS is the columns a segment table draws where its caller names
|
|
1343
|
+
* none: the leg's name, its shape, how far and how much, which is what a roadbook is read for.
|
|
1344
|
+
*/
|
|
1345
|
+
declare const DEFAULT_SEGMENT_TABLE_COLUMNS: readonly SegmentTableColumn[];
|
|
1346
|
+
/**
|
|
1347
|
+
* What one cell of a segment row states. Figures are in meters and seconds, stated positive as
|
|
1348
|
+
* the wire states them, and `null` where the row has none.
|
|
1349
|
+
*/
|
|
1350
|
+
type SegmentRowCell = {
|
|
1351
|
+
readonly column: "segment";
|
|
1352
|
+
readonly name: string;
|
|
1353
|
+
} | {
|
|
1354
|
+
readonly column: "profile";
|
|
1355
|
+
/** The leg's stretch of the whole itinerary's sparkline, lit. */
|
|
1356
|
+
readonly lit: ProfileRange;
|
|
1357
|
+
/** The colour the stretch is lit in, or `null` for the table's own. */
|
|
1358
|
+
readonly color: string | null;
|
|
1359
|
+
} | {
|
|
1360
|
+
readonly column: "distance";
|
|
1361
|
+
/** The leg's own length. */
|
|
1362
|
+
readonly leg: number | null;
|
|
1363
|
+
/** The running distance at the leg's end, under it. */
|
|
1364
|
+
readonly total: number | null;
|
|
1365
|
+
} | {
|
|
1366
|
+
readonly column: "elevation";
|
|
1367
|
+
readonly ascent: number | null;
|
|
1368
|
+
readonly descent: number | null;
|
|
1369
|
+
/** The running ascent at the leg's end, under them: the climb alone. */
|
|
1370
|
+
readonly totalAscent: number | null;
|
|
1371
|
+
} | {
|
|
1372
|
+
readonly column: "altitude";
|
|
1373
|
+
/** The leg's altitude band, where both its ends are known. */
|
|
1374
|
+
readonly band: {
|
|
1375
|
+
readonly min: number;
|
|
1376
|
+
readonly max: number;
|
|
1377
|
+
} | null;
|
|
1378
|
+
/** The one end known, the lower first, where the band is not. */
|
|
1379
|
+
readonly single: number | null;
|
|
1380
|
+
} | {
|
|
1381
|
+
readonly column: "duration";
|
|
1382
|
+
readonly seconds: number | null;
|
|
1383
|
+
} | {
|
|
1384
|
+
readonly column: "difficulty";
|
|
1385
|
+
readonly text: string | null;
|
|
1386
|
+
};
|
|
1387
|
+
/**
|
|
1388
|
+
* segmentRowCell answers what one of the segment table's own columns states about a leg.
|
|
1389
|
+
*
|
|
1390
|
+
* The name; the whole itinerary's sparkline with the leg's own stretch lit in its colour; the
|
|
1391
|
+
* leg's distance over the running distance; its ascent and descent over the running ascent alone;
|
|
1392
|
+
* its altitude band, or the one end known where the other is not; its duration; and its
|
|
1393
|
+
* difficulty as the itinerary writes it, never translated, since the taxonomy is the itinerary's.
|
|
1394
|
+
*
|
|
1395
|
+
* @param row The leg's row.
|
|
1396
|
+
* @param column The column.
|
|
1397
|
+
* @returns The cell's model.
|
|
1398
|
+
*/
|
|
1399
|
+
declare const segmentRowCell: (row: ItinerarySegmentRow, column: SegmentTableColumn) => SegmentRowCell;
|
|
1400
|
+
/** One column the waypoint table draws for itself. */
|
|
1401
|
+
type WaypointTableColumn = "altitude" | "amenities" | "cutoff" | "distance" | "elevation" | "profile" | "properties" | "waypoint";
|
|
1402
|
+
/**
|
|
1403
|
+
* DEFAULT_WAYPOINT_TABLE_COLUMNS is the columns a waypoint table draws where its caller names
|
|
1404
|
+
* none: the place, its shape, how far, how much climb, and what is there.
|
|
1405
|
+
*/
|
|
1406
|
+
declare const DEFAULT_WAYPOINT_TABLE_COLUMNS: readonly WaypointTableColumn[];
|
|
1407
|
+
/**
|
|
1408
|
+
* What one cell of a waypoint row states. Figures are in meters, stated positive as the wire
|
|
1409
|
+
* states them, and `null` where the row has none.
|
|
1410
|
+
*/
|
|
1411
|
+
type WaypointRowCell = {
|
|
1412
|
+
readonly column: "waypoint";
|
|
1413
|
+
/** The glyph the place is marked with: its own where the set draws it, else the pin. */
|
|
1414
|
+
readonly glyph: string;
|
|
1415
|
+
/** The place's name, or the `profile` word an unnamed place is listed under. */
|
|
1416
|
+
readonly label: {
|
|
1417
|
+
readonly name: string;
|
|
1418
|
+
} | {
|
|
1419
|
+
readonly word: "unlabelledWaypoint";
|
|
1420
|
+
};
|
|
1421
|
+
} | {
|
|
1422
|
+
readonly column: "profile";
|
|
1423
|
+
/** The stretch reaching the place, lit on the whole itinerary's sparkline. */
|
|
1424
|
+
readonly lit: ProfileRange;
|
|
1425
|
+
} | {
|
|
1426
|
+
readonly column: "distance";
|
|
1427
|
+
readonly total: number;
|
|
1428
|
+
} | {
|
|
1429
|
+
readonly column: "elevation";
|
|
1430
|
+
/** The climb since the previous place. */
|
|
1431
|
+
readonly ascent: number | null;
|
|
1432
|
+
/** The loss since the previous place. */
|
|
1433
|
+
readonly descent: number | null;
|
|
1434
|
+
} | {
|
|
1435
|
+
readonly column: "altitude";
|
|
1436
|
+
readonly altitude: number | null;
|
|
1437
|
+
} | {
|
|
1438
|
+
readonly column: "amenities";
|
|
1439
|
+
/** The services the place offers, in the order it states them. */
|
|
1440
|
+
readonly services: readonly string[];
|
|
1441
|
+
} | {
|
|
1442
|
+
readonly column: "cutoff";
|
|
1443
|
+
/** The place's cut-off as the caller's formatter writes it, or `null`. */
|
|
1444
|
+
readonly moment: string | null;
|
|
1445
|
+
} | {
|
|
1446
|
+
readonly column: "properties";
|
|
1447
|
+
/** The custom fields: each key, its author's label and its value by its declared format. */
|
|
1448
|
+
readonly fields: readonly {
|
|
1449
|
+
readonly key: string;
|
|
1450
|
+
readonly label: string;
|
|
1451
|
+
readonly value: string;
|
|
1452
|
+
}[];
|
|
1453
|
+
};
|
|
1454
|
+
/** What a waypoint row's cells read beside the row. */
|
|
1455
|
+
interface WaypointRowCellOptions {
|
|
1456
|
+
/**
|
|
1457
|
+
* Writes a cut-off's instant, and a `date` field's, handed the instant each names. Without it
|
|
1458
|
+
* neither is stated; a value that names no instant is stated as it stands.
|
|
1459
|
+
*/
|
|
1460
|
+
readonly formatCutoffAt?: ((instant: Date) => string) | undefined;
|
|
1461
|
+
/** The glyph set the table marks its places with. */
|
|
1462
|
+
readonly icons: Pick<IconProvider, "has">;
|
|
1463
|
+
/** The reader's language and length unit, which a custom field's value is written in. */
|
|
1464
|
+
readonly units: Pick<UnitFormatOptions, "language" | "length">;
|
|
1465
|
+
}
|
|
1466
|
+
/**
|
|
1467
|
+
* waypointRowCell answers what one of the waypoint table's own columns states about a place.
|
|
1468
|
+
*
|
|
1469
|
+
* The place's glyph, the fallback pin where the set cannot draw its own, and its name, or the
|
|
1470
|
+
* word an unnamed place is listed under; the whole itinerary's sparkline with the stretch reaching
|
|
1471
|
+
* the place lit; its running distance; the ascent and descent since the previous place; its
|
|
1472
|
+
* altitude; its services in the order it states them; its cut-off only through the caller's
|
|
1473
|
+
* formatter, since an instant needs a time zone only the caller holds; and its custom fields, each
|
|
1474
|
+
* written by the format its author declared.
|
|
1475
|
+
*
|
|
1476
|
+
* @param row The place's row.
|
|
1477
|
+
* @param column The column.
|
|
1478
|
+
* @param options The glyph set, the cut-off's formatter and the reader's units.
|
|
1479
|
+
* @returns The cell's model.
|
|
1480
|
+
*/
|
|
1481
|
+
declare const waypointRowCell: (row: ItineraryWaypointRow, column: WaypointTableColumn, { formatCutoffAt, icons, units }: WaypointRowCellOptions) => WaypointRowCell;
|
|
1482
|
+
/** What a table writes to its map for the row a reader points at. */
|
|
1483
|
+
interface TableCursor {
|
|
1484
|
+
/** The sample the table's cursor marker is pinned at, or `null` where none is pinned. */
|
|
1485
|
+
readonly marker: ElevationPoint | null;
|
|
1486
|
+
/** The stretch lit on the map's emphasis slot, or `null` where none is lit. */
|
|
1487
|
+
readonly stretch: LineString | null;
|
|
1488
|
+
}
|
|
1489
|
+
/**
|
|
1490
|
+
* segmentRowCursor answers what a segment table writes to its map for the row a reader points at:
|
|
1491
|
+
* its cursor marker at the sample of the series nearest the end of the row's leg, the earlier of
|
|
1492
|
+
* two as near, and the leg lit, the series cut between the leg's two ends.
|
|
1493
|
+
*
|
|
1494
|
+
* The stretch is cut out of the series rather than read off the leg's geometry, so a collapsed
|
|
1495
|
+
* group, one row standing for several legs, lights the run it stands for.
|
|
1496
|
+
*
|
|
1497
|
+
* @param points The itinerary's series.
|
|
1498
|
+
* @param row The row pointed at, or `null` for none.
|
|
1499
|
+
*/
|
|
1500
|
+
declare const segmentRowCursor: (points: readonly ElevationPoint[], row: ProfileRange | null) => TableCursor;
|
|
1501
|
+
/**
|
|
1502
|
+
* waypointRowCursor answers what a waypoint table writes to its map for the row a reader points
|
|
1503
|
+
* at: its cursor marker at the sample of the series nearest the place's pass, the earlier of two
|
|
1504
|
+
* as near, and no leg lit.
|
|
1505
|
+
*
|
|
1506
|
+
* @param points The itinerary's series.
|
|
1507
|
+
* @param row The row pointed at, its `to` the meter the itinerary passes the place at, or `null`.
|
|
1508
|
+
*/
|
|
1509
|
+
declare const waypointRowCursor: (points: readonly ElevationPoint[], row: Pick<ProfileRange, "to"> | null) => TableCursor;
|
|
1510
|
+
/**
|
|
1511
|
+
* litSegmentId answers the segment whose row a segment table lights for its map: the one the app
|
|
1512
|
+
* names, which it goes on naming, and otherwise the one the map's cursor is over.
|
|
1513
|
+
*
|
|
1514
|
+
* @param highlighted The segment the app names, `null` where it names none to light, or
|
|
1515
|
+
* `undefined` where it leaves the row to the map's cursor.
|
|
1516
|
+
* @param hovered The segment the map's cursor is over, or `null`.
|
|
1517
|
+
*/
|
|
1518
|
+
declare const litSegmentId: (highlighted: string | null | undefined, hovered: string | null) => string | null;
|
|
1519
|
+
/**
|
|
1520
|
+
* isSegmentRowLit reports whether a segment table lights a row: the reader points at it, or it
|
|
1521
|
+
* stands for the lit segment ({@link litSegmentId}), a collapsed group's row standing for each of
|
|
1522
|
+
* its members.
|
|
1523
|
+
*
|
|
1524
|
+
* @param row The row.
|
|
1525
|
+
* @param pointedKey The key of the row the reader points at, or `null`.
|
|
1526
|
+
* @param litId The lit segment, or `null`.
|
|
1527
|
+
*/
|
|
1528
|
+
declare const isSegmentRowLit: (row: Pick<ItinerarySegmentRow, "id" | "key" | "memberIds">, pointedKey: string | null, litId: string | null) => boolean;
|
|
1529
|
+
/**
|
|
1530
|
+
* WaypointCardStringsLike is the copy this module reads, stated structurally.
|
|
1531
|
+
*
|
|
1532
|
+
* A local interface rather than an import from `../../i18n`: this entry point is the one a port
|
|
1533
|
+
* reimplements and a renderer-free consumer installs, and a maths module that imported the copy
|
|
1534
|
+
* bundle would put every language's strings into the graph of a formatting rule. The shipped
|
|
1535
|
+
* bundle satisfies this shape; a consumer passing their own only has to match it.
|
|
1536
|
+
*/
|
|
1537
|
+
interface WaypointCardStringsLike {
|
|
1538
|
+
/** One name per service, keyed by the wire's own vocabulary. */
|
|
1539
|
+
readonly amenities: Readonly<Record<string, string>>;
|
|
1540
|
+
readonly waypointCard: {
|
|
1541
|
+
readonly address: string;
|
|
1542
|
+
readonly amenities: string;
|
|
1543
|
+
readonly booking: string;
|
|
1544
|
+
readonly contact: string;
|
|
1545
|
+
readonly cutoff: string;
|
|
1546
|
+
readonly email: string;
|
|
1547
|
+
readonly empty: string;
|
|
1548
|
+
readonly emptyHint: string;
|
|
1549
|
+
readonly media: string;
|
|
1550
|
+
readonly openingHours: string;
|
|
1551
|
+
readonly phone: string;
|
|
1552
|
+
readonly properties: string;
|
|
1553
|
+
readonly stop: string;
|
|
1554
|
+
/** The clauses the one-line summary is assembled from. */
|
|
1555
|
+
readonly summary: {
|
|
1556
|
+
readonly cutoffAt: (moment: string) => string;
|
|
1557
|
+
readonly openingHours: (hours: string) => string;
|
|
1558
|
+
readonly stop: (elapsed: string) => string;
|
|
1559
|
+
};
|
|
1560
|
+
readonly timing: string;
|
|
1561
|
+
readonly website: string;
|
|
1562
|
+
};
|
|
1563
|
+
}
|
|
1564
|
+
/**
|
|
1565
|
+
* amenityName names a service for a reader, and answers the value the itinerary carries where
|
|
1566
|
+
* the names hold none for it.
|
|
1567
|
+
*
|
|
1568
|
+
* The lookup can miss by design. A waypoint's `amenities` is a list of plain strings: the
|
|
1569
|
+
* vocabulary is named and not closed, so an itinerary served by a deployment newer than the
|
|
1570
|
+
* names carries a value with no translation, and `hot-meal` is a better label than nothing.
|
|
1571
|
+
*
|
|
1572
|
+
* It is the one lookup behind every surface that names a service: a badge stack, a table's cell
|
|
1573
|
+
* and its filter chips, and a card.
|
|
1574
|
+
*
|
|
1575
|
+
* @param names One name per service, keyed by the wire's own vocabulary: the `amenities`
|
|
1576
|
+
* section of a strings bundle.
|
|
1577
|
+
* @param amenity The value the itinerary carries.
|
|
1578
|
+
* @returns The name `names` holds under `amenity` as an entry of its own, so a value spelled as
|
|
1579
|
+
* an inherited property (`constructor`, `toString`) is answered as itself, and `amenity` where
|
|
1580
|
+
* it holds none.
|
|
1581
|
+
*
|
|
1582
|
+
* @example
|
|
1583
|
+
* ```ts
|
|
1584
|
+
* import { amenityName } from "@mountaya/elements/profile";
|
|
1585
|
+
*
|
|
1586
|
+
* amenityName({ water: "Water" }, "water"); // "Water"
|
|
1587
|
+
* amenityName({ water: "Water" }, "hot-meal"); // "hot-meal"
|
|
1588
|
+
* ```
|
|
1589
|
+
*/
|
|
1590
|
+
declare const amenityName: (names: Readonly<Record<string, string>>, amenity: string) => string;
|
|
1591
|
+
/**
|
|
1592
|
+
* waypointSummary is what a place says about itself in one line, when its author wrote no
|
|
1593
|
+
* description.
|
|
1594
|
+
*
|
|
1595
|
+
* **It exists because the description is optional and the header is not.** A card about a place
|
|
1596
|
+
* states its name and then a line under it; with no description, the fallback for that line is
|
|
1597
|
+
* the word "details", which tells a reader nothing they did not already know from having clicked
|
|
1598
|
+
* the pin.
|
|
1599
|
+
*
|
|
1600
|
+
* **Two clauses at most: whether it is EQUIPPED, and WHEN it can be used.** Naming the services
|
|
1601
|
+
* one by one ("Water, Hot meal and Medical post and 6 more") spends the whole line on a list
|
|
1602
|
+
* the card repeats as badges directly underneath, in the same order, with the glyphs. The word
|
|
1603
|
+
* alone answers what a reader scanning a dozen places is actually asking, and leaves room for
|
|
1604
|
+
* the fact they cannot get anywhere else at a glance.
|
|
1605
|
+
*
|
|
1606
|
+
* `formatCutoffAt` is the caller's, on `ItineraryProfileCutoffs`' precedent: a wall-clock instant
|
|
1607
|
+
* needs a time zone, and an element cannot know the reader's. Without it the summary states no
|
|
1608
|
+
* cut-off and the clause falls through to the stop.
|
|
1609
|
+
*/
|
|
1610
|
+
declare const waypointSummary: (details: WaypointDetails | undefined, copy: WaypointCardStringsLike, units: Pick<UnitFormatOptions, "language">, formatCutoffAt?: (instant: Date) => string) => string | null;
|
|
1611
|
+
/**
|
|
1612
|
+
* waypointHeadline is the line a card states under a place's name: what its author WROTE about
|
|
1613
|
+
* it, or failing that what the place's own record says.
|
|
1614
|
+
*
|
|
1615
|
+
* The precedence runs one way only. A description is the author's own sentence and always wins,
|
|
1616
|
+
* even a terse one, because an author who wrote "closed in winter" chose that over anything a
|
|
1617
|
+
* summary could have assembled. The summary stands in when they wrote nothing, which is the
|
|
1618
|
+
* common case for a place captured from a POI rather than typed out by hand.
|
|
1619
|
+
*/
|
|
1620
|
+
declare const waypointHeadline: (details: WaypointDetails | undefined, copy: WaypointCardStringsLike, units: Pick<UnitFormatOptions, "language">, formatCutoffAt?: (instant: Date) => string) => string | null;
|
|
1621
|
+
/** One labelled fact a card states: the reader's noun, and the value beside it. */
|
|
1622
|
+
interface WaypointCardRow {
|
|
1623
|
+
readonly label: string;
|
|
1624
|
+
readonly value: string;
|
|
1625
|
+
}
|
|
1626
|
+
/**
|
|
1627
|
+
* waypointTimingRows is when a place can be used, as labelled lines.
|
|
1628
|
+
*
|
|
1629
|
+
* Every duration arrives in seconds and leaves in the reader's own units through
|
|
1630
|
+
* `formatDuration`, which is the same seam the tables print a leg's duration with, so a stop of
|
|
1631
|
+
* 1200 reads the same here as everywhere else in the product rather than as a second convention.
|
|
1632
|
+
*
|
|
1633
|
+
* A stop of no time, or of under thirty seconds, rounds to no minute and takes no row, as it
|
|
1634
|
+
* takes no clause in {@link waypointSummary}: a label beside an empty value states nothing.
|
|
1635
|
+
*/
|
|
1636
|
+
declare const waypointTimingRows: (details: WaypointDetails | undefined, copy: WaypointCardStringsLike, units: Pick<UnitFormatOptions, "language">, formatCutoffAt?: (instant: Date) => string) => readonly WaypointCardRow[];
|
|
1637
|
+
/** WaypointContactRow is a contact line, plus the href a reader can act on it through. */
|
|
1638
|
+
interface WaypointContactRow extends WaypointCardRow {
|
|
1639
|
+
/** Set where the value is actionable: a phone, an email, a URL. */
|
|
1640
|
+
readonly href?: string | undefined;
|
|
1641
|
+
/** True for an href that leaves the page, which a renderer opens in a new context. */
|
|
1642
|
+
readonly external?: boolean | undefined;
|
|
1643
|
+
}
|
|
1644
|
+
/**
|
|
1645
|
+
* waypointContactRows is how to reach a place, as labelled lines that can be acted on.
|
|
1646
|
+
*
|
|
1647
|
+
* A phone and an email carry their scheme, because a card read on a phone is a card somebody
|
|
1648
|
+
* taps; the two URLs are marked external, because a reader following one is mid-route in a map
|
|
1649
|
+
* and must not lose it. The renderer decides what to do with that: this layer states what the
|
|
1650
|
+
* value IS rather than what a link policy should be.
|
|
1651
|
+
*
|
|
1652
|
+
* A website or a booking address carries its `href` only where it is an absolute `http` or
|
|
1653
|
+
* `https` address. Any other value, `javascript:` and `data:` among them, is stated as text with
|
|
1654
|
+
* no `href` and no `external`, so no renderer anchors it.
|
|
1655
|
+
*/
|
|
1656
|
+
declare const waypointContactRows: (details: WaypointDetails | undefined, copy: WaypointCardStringsLike) => readonly WaypointContactRow[];
|
|
1657
|
+
/**
|
|
1658
|
+
* waypointPropertyValue renders one customer-defined field according to the format its author
|
|
1659
|
+
* declared.
|
|
1660
|
+
*
|
|
1661
|
+
* The format is why `WaypointPropertyDetail` carries one at all: `3600` is a duration, a distance
|
|
1662
|
+
* or a number depending on what the author meant, and a renderer guessing from the digits would
|
|
1663
|
+
* be right two times in three. Anything unrecognised prints the text it already is.
|
|
1664
|
+
*
|
|
1665
|
+
* The same rule `ItineraryWaypointTable` prints a property with, stated once so a field reads
|
|
1666
|
+
* identically in a table row and on a card.
|
|
1667
|
+
*
|
|
1668
|
+
* A `number` is stated through {@link formatNumber}, as a `distance` and a `duration` are through
|
|
1669
|
+
* their own formatters: grouped as the language groups, with no sign on a value that rounds to
|
|
1670
|
+
* zero, and in a language `Intl` refuses read as the card's other rows read it.
|
|
1671
|
+
*
|
|
1672
|
+
* @param property The field, with the format its author declared.
|
|
1673
|
+
* @param units The reader's language and units.
|
|
1674
|
+
* @param formatInstant Spells a `date` field's instant, handed the instant its RFC 3339 value
|
|
1675
|
+
* names. Omitted, or for a value that names none, the string is shown as written.
|
|
1676
|
+
* @returns The text to print: the value as written where the format cannot interpret it.
|
|
1677
|
+
*/
|
|
1678
|
+
declare const waypointPropertyValue: (property: WaypointPropertyDetail, units: Pick<UnitFormatOptions, "language" | "length">, formatInstant?: (instant: Date) => string) => string;
|
|
1679
|
+
/**
|
|
1680
|
+
* waypointPropertyIsLink reports a customer field a renderer may draw as an anchor.
|
|
1681
|
+
*
|
|
1682
|
+
* **The declared format is not enough on its own, and that is a security rule rather than a
|
|
1683
|
+
* tidiness one.** A renderer told a value is a link draws `<a href={value}>`, so a field declared
|
|
1684
|
+
* `url` carrying `javascript:…` is a clickable script on every surface that draws a waypoint card,
|
|
1685
|
+
* including the published embed an anonymous visitor sees. The API refuses that value on write;
|
|
1686
|
+
* this refuses it on read, because a record written before the rule existed, or by a client that
|
|
1687
|
+
* reached the column another way, still arrives here.
|
|
1688
|
+
*
|
|
1689
|
+
* So the format says what the author MEANT and the value says what it IS, and a link needs both.
|
|
1690
|
+
* A `url` field whose value is not a web address renders as the text it is, which is the same
|
|
1691
|
+
* thing every other format does with a value it cannot interpret.
|
|
1692
|
+
*/
|
|
1693
|
+
declare const waypointPropertyIsLink: (property: WaypointPropertyDetail) => boolean;
|
|
1694
|
+
/**
|
|
1695
|
+
* waypointMediaLinkIsLink reports a media link a renderer may draw as an anchor.
|
|
1696
|
+
*
|
|
1697
|
+
* A place's media links are the one list its author fills freely, and each `url` reaches a card
|
|
1698
|
+
* as written. The rule is the one {@link waypointPropertyIsLink} and a contact's website follow:
|
|
1699
|
+
* a link is a link only where its address, read past the white space around it, is one
|
|
1700
|
+
* {@link isWebAddress} accepts. Any other entry is stated as its `label` in text, so a
|
|
1701
|
+
* `javascript:` or a `data:` address is never an `href`.
|
|
1702
|
+
*
|
|
1703
|
+
* @param link One entry of `WaypointDetails.media.links`.
|
|
1704
|
+
* @returns `true` where a renderer may draw `<a href={link.url}>`, `false` where it prints
|
|
1705
|
+
* `link.label` alone.
|
|
1706
|
+
*
|
|
1707
|
+
* @example
|
|
1708
|
+
* ```ts
|
|
1709
|
+
* import { waypointMediaLinkIsLink } from "@mountaya/elements/profile";
|
|
1710
|
+
*
|
|
1711
|
+
* waypointMediaLinkIsLink({ label: "Topo", url: "https://refuge.example/topo" }); // true
|
|
1712
|
+
* waypointMediaLinkIsLink({ label: "Notes", url: "ask at the bar" }); // false
|
|
1713
|
+
* ```
|
|
1714
|
+
*/
|
|
1715
|
+
declare const waypointMediaLinkIsLink: (link: WaypointLinkDetail) => boolean;
|
|
1716
|
+
/**
|
|
1717
|
+
* WaypointMediaLink is one media link of a place, with the address a renderer may anchor.
|
|
1718
|
+
*
|
|
1719
|
+
* `label` and `url` are the author's own, as written. `url` is text to read and never an
|
|
1720
|
+
* address to anchor: the one a renderer links is `href`.
|
|
1721
|
+
*/
|
|
1722
|
+
interface WaypointMediaLink extends WaypointLinkDetail {
|
|
1723
|
+
/**
|
|
1724
|
+
* The address a renderer anchors: `url`, read past the white space around it.
|
|
1725
|
+
*
|
|
1726
|
+
* Set only where {@link waypointMediaLinkIsLink} calls the entry a link, which is an absolute
|
|
1727
|
+
* `http` or `https` address. Any other entry, a `javascript:` or a `data:` address among them,
|
|
1728
|
+
* states no `href`, and a renderer prints its `label` in text.
|
|
1729
|
+
*/
|
|
1730
|
+
readonly href?: string | undefined;
|
|
1731
|
+
}
|
|
1732
|
+
/**
|
|
1733
|
+
* waypointMediaLinks is every media link a place records, each with the address a renderer may
|
|
1734
|
+
* anchor it by.
|
|
1735
|
+
*
|
|
1736
|
+
* The rule a card draws its links by, stated once so every binding anchors the same entries: an
|
|
1737
|
+
* entry {@link waypointMediaLinkIsLink} calls a link states its `href`, the address read past
|
|
1738
|
+
* the white space around it, and any other entry is handed back as it is, with none.
|
|
1739
|
+
*
|
|
1740
|
+
* @param details The place's details, or `undefined` for a place that records none.
|
|
1741
|
+
* @returns The links in the author's order, never fewer than the place records: an entry that
|
|
1742
|
+
* is no link is still a line a card prints.
|
|
1743
|
+
*
|
|
1744
|
+
* @example
|
|
1745
|
+
* ```ts
|
|
1746
|
+
* import { waypointMediaLinks } from "@mountaya/elements/profile";
|
|
1747
|
+
*
|
|
1748
|
+
* waypointMediaLinks({
|
|
1749
|
+
* media: {
|
|
1750
|
+
* links: [
|
|
1751
|
+
* { label: "Topo", url: " https://refuge.example/topo " },
|
|
1752
|
+
* { label: "Notes", url: "ask at the bar" },
|
|
1753
|
+
* ],
|
|
1754
|
+
* },
|
|
1755
|
+
* });
|
|
1756
|
+
* // [
|
|
1757
|
+
* // {
|
|
1758
|
+
* // href: "https://refuge.example/topo",
|
|
1759
|
+
* // label: "Topo",
|
|
1760
|
+
* // url: " https://refuge.example/topo ",
|
|
1761
|
+
* // },
|
|
1762
|
+
* // { label: "Notes", url: "ask at the bar" },
|
|
1763
|
+
* // ]
|
|
1764
|
+
* ```
|
|
1765
|
+
*/
|
|
1766
|
+
declare const waypointMediaLinks: (details: WaypointDetails | undefined) => readonly WaypointMediaLink[];
|
|
1767
|
+
/**
|
|
1768
|
+
* waypointMediaPhotos is the photos of a place a renderer may load.
|
|
1769
|
+
*
|
|
1770
|
+
* A photo's `url` reaches an image source, so it is held to the rule a link's address is: only
|
|
1771
|
+
* a photo whose address, read past the white space around it, is one {@link isWebAddress}
|
|
1772
|
+
* accepts is stated, with that address as its `url`. A photo with any other address has nothing
|
|
1773
|
+
* to show and is left out, and the place still counts as recording something
|
|
1774
|
+
* ({@link waypointDeclaresNothing}).
|
|
1775
|
+
*
|
|
1776
|
+
* @param details The place's details, or `undefined` for a place that records none.
|
|
1777
|
+
* @returns The photos in the author's order, each with a `url` an image source takes. A photo
|
|
1778
|
+
* whose address needs no reading is the entry itself.
|
|
1779
|
+
*
|
|
1780
|
+
* @example
|
|
1781
|
+
* ```ts
|
|
1782
|
+
* import { waypointMediaPhotos } from "@mountaya/elements/profile";
|
|
1783
|
+
*
|
|
1784
|
+
* waypointMediaPhotos({
|
|
1785
|
+
* media: {
|
|
1786
|
+
* photos: [{ url: " https://refuge.example/hut.jpg" }, { url: "javascript:alert(1)" }],
|
|
1787
|
+
* },
|
|
1788
|
+
* });
|
|
1789
|
+
* // [{ url: "https://refuge.example/hut.jpg" }]
|
|
1790
|
+
* ```
|
|
1791
|
+
*/
|
|
1792
|
+
declare const waypointMediaPhotos: (details: WaypointDetails | undefined) => readonly WaypointPhotoDetail[];
|
|
1793
|
+
/**
|
|
1794
|
+
* waypointDeclaresNothing reports a place that has no facts to state.
|
|
1795
|
+
*
|
|
1796
|
+
* The description is deliberately NOT part of it. A card states the place's facts under a header
|
|
1797
|
+
* that already carries the description, so a place whose only record is its sentence has nothing
|
|
1798
|
+
* left for the body, and saying "nothing recorded yet" under a description is the honest answer
|
|
1799
|
+
* rather than a contradiction.
|
|
1800
|
+
*/
|
|
1801
|
+
declare const waypointDeclaresNothing: (details: WaypointDetails | undefined) => boolean;
|
|
1802
|
+
/** One service a place offers, keyed for its glyph and named for a reader. */
|
|
1803
|
+
interface WaypointCardService {
|
|
1804
|
+
/** The wire's own value, which `amenityGlyph` turns into the glyph a set draws. */
|
|
1805
|
+
readonly amenity: string;
|
|
1806
|
+
/** The reader's name for it, or the value itself where the names hold none. */
|
|
1807
|
+
readonly name: string;
|
|
1808
|
+
}
|
|
1809
|
+
/** One custom field of a place, written by the format its author declared. */
|
|
1810
|
+
interface WaypointCardField extends WaypointCardRow {
|
|
1811
|
+
/**
|
|
1812
|
+
* The address a renderer anchors: the field's value, read past the white space around it.
|
|
1813
|
+
*
|
|
1814
|
+
* Set only where {@link waypointPropertyIsLink} calls the field a link. Any other field states
|
|
1815
|
+
* no `href`, and a renderer prints its `value` as the text it is.
|
|
1816
|
+
*/
|
|
1817
|
+
readonly href?: string | undefined;
|
|
1818
|
+
readonly key: string;
|
|
1819
|
+
}
|
|
1820
|
+
/** Everything a card about one place states, before any of it is drawn. */
|
|
1821
|
+
interface WaypointCardFacts {
|
|
1822
|
+
/** The services, in the order the place states them, each named. */
|
|
1823
|
+
readonly amenities: readonly WaypointCardService[];
|
|
1824
|
+
/** How to reach the place, as {@link waypointContactRows} states it. */
|
|
1825
|
+
readonly contact: readonly WaypointContactRow[];
|
|
1826
|
+
/** Whether the place states no fact at all, as {@link waypointDeclaresNothing} reads it. */
|
|
1827
|
+
readonly empty: boolean;
|
|
1828
|
+
/** The author's description, or the summary {@link waypointHeadline} assembles. */
|
|
1829
|
+
readonly headline: string | null;
|
|
1830
|
+
/** The media links, as {@link waypointMediaLinks} states them. */
|
|
1831
|
+
readonly links: readonly WaypointMediaLink[];
|
|
1832
|
+
/** The photos a renderer may load, as {@link waypointMediaPhotos} states them. */
|
|
1833
|
+
readonly photos: readonly WaypointPhotoDetail[];
|
|
1834
|
+
/** The custom fields, in their order, each written by its declared format. */
|
|
1835
|
+
readonly properties: readonly WaypointCardField[];
|
|
1836
|
+
/** When the place can be used, as {@link waypointTimingRows} states it. */
|
|
1837
|
+
readonly timing: readonly WaypointCardRow[];
|
|
1838
|
+
}
|
|
1839
|
+
/**
|
|
1840
|
+
* waypointCard states everything a card about one place says, in the order a card says it.
|
|
1841
|
+
*
|
|
1842
|
+
* Its services by name, a service the names hold none for named by its own value. Its timing: the
|
|
1843
|
+
* cut-off only through the caller's formatter, since an instant needs a time zone only the caller
|
|
1844
|
+
* holds, then the planned stop. Its contact lines as opening hours, address, phone, email, website
|
|
1845
|
+
* and booking page, a phone and an email carrying their scheme. Its custom fields by their
|
|
1846
|
+
* declared format, a `url` field anchored only where its value is a web address. A section with no
|
|
1847
|
+
* line states nothing, and a place with no fact says so.
|
|
1848
|
+
*
|
|
1849
|
+
* It is the derivation behind every binding's card, stated once so each states the same facts in
|
|
1850
|
+
* the same order with the same fallbacks.
|
|
1851
|
+
*
|
|
1852
|
+
* @param details What the place records, or `undefined` for a place that records nothing.
|
|
1853
|
+
* @param copy The words the card is written in.
|
|
1854
|
+
* @param units The reader's language and units, which a duration, a distance and a number are
|
|
1855
|
+
* written in.
|
|
1856
|
+
* @param formatCutoffAt Writes a cut-off's instant, and a `date` field's. Omitted, no cut-off is
|
|
1857
|
+
* stated and a `date` field reads as written.
|
|
1858
|
+
* @returns The card's facts.
|
|
1859
|
+
*/
|
|
1860
|
+
declare const waypointCard: (details: WaypointDetails | undefined, copy: WaypointCardStringsLike, units: Pick<UnitFormatOptions, "language" | "length">, formatCutoffAt?: (instant: Date) => string) => WaypointCardFacts;
|
|
1861
|
+
/**
|
|
1862
|
+
* isWebAddress reports an absolute `http` or `https` address the API accepts: the scheme in lower
|
|
1863
|
+
* case, two slashes, then a host, and no character the API's parser refuses.
|
|
1864
|
+
*
|
|
1865
|
+
* It is the one predicate for the rule. Every address a place records is drawn as something a
|
|
1866
|
+
* reader acts on (an anchor, an image source), so `javascript:` and `data:` are refused here, in
|
|
1867
|
+
* the API, and in the contract's own pattern, because a value reaches a renderer through any of
|
|
1868
|
+
* the three. A form shows its field error by it and a card anchors an address by it, so a value
|
|
1869
|
+
* with no error is a value the save takes and the card links.
|
|
1870
|
+
*
|
|
1871
|
+
* It answers by {@link webAddressShape}, then by where the host stands, then by the characters the
|
|
1872
|
+
* API's parser refuses (a control character, a percent sign that opens no escape outside the
|
|
1873
|
+
* query), then by a name ending in another script's decimal digits, which a runtime's parser reads
|
|
1874
|
+
* as its Unicode version does, then by the platform's URL parser, which is called in a `try`
|
|
1875
|
+
* because it throws on an address it cannot read.
|
|
1876
|
+
*
|
|
1877
|
+
* The value is read as written: white space at either end is no part of an address, and a caller
|
|
1878
|
+
* that reads a stored value trims it first.
|
|
1879
|
+
*
|
|
1880
|
+
* @param value The address, as written.
|
|
1881
|
+
* @returns `true` where a renderer may link `value` and the API takes it on a write.
|
|
1882
|
+
*
|
|
1883
|
+
* @example
|
|
1884
|
+
* ```ts
|
|
1885
|
+
* import { isWebAddress } from "@mountaya/elements/profile";
|
|
1886
|
+
*
|
|
1887
|
+
* isWebAddress("https://refuge.example/topo"); // true
|
|
1888
|
+
* isWebAddress("javascript:alert(1)"); // false
|
|
1889
|
+
* isWebAddress("https:refuge.example"); // false, no host after two slashes
|
|
1890
|
+
* ```
|
|
1891
|
+
*/
|
|
1892
|
+
declare const isWebAddress: (value: string) => boolean;
|
|
1893
|
+
/** A stretch placed under a chart, with where it stands in the chart's unit space. */
|
|
1894
|
+
interface PlacedSpan<T> {
|
|
1895
|
+
/** The stretch as the caller gave it. */
|
|
1896
|
+
readonly span: T;
|
|
1897
|
+
/** Its place in the list the caller gave, from zero. */
|
|
1898
|
+
readonly index: number;
|
|
1899
|
+
/** Where the stretch starts, in meters from the start of the itinerary: the lower of its ends. */
|
|
1900
|
+
readonly from: number;
|
|
1901
|
+
/** Where the stretch ends: the higher of its ends. */
|
|
1902
|
+
readonly to: number;
|
|
1903
|
+
/** Unit-space x of its start, held to the frame, which is also a CSS percentage. */
|
|
1904
|
+
readonly start: number;
|
|
1905
|
+
/** Unit-space x of its end, held to the frame. Always past {@link PlacedSpan.start}. */
|
|
1906
|
+
readonly end: number;
|
|
1907
|
+
}
|
|
1908
|
+
/**
|
|
1909
|
+
* placeSpans answers the stretches a chart draws under itself, each where it stands.
|
|
1910
|
+
*
|
|
1911
|
+
* A stretch is drawn only where it overlaps the window, and cut at the window's ends, so a band
|
|
1912
|
+
* stays under the stretch of curve it describes at any zoom. A stretch the window does not reach
|
|
1913
|
+
* is left out rather than clamped onto the window's edge, and so is one of no length, given or
|
|
1914
|
+
* cut: a sliver of no width is still announced to a screen reader, as a stretch that is not there.
|
|
1915
|
+
*
|
|
1916
|
+
* The stretches keep the order they are given in, since that is the order a renderer paints and a
|
|
1917
|
+
* reader hears them, and a stretch given backwards is read in order.
|
|
1918
|
+
*
|
|
1919
|
+
* @param spans The stretches, each its two ends in meters from the start of the itinerary.
|
|
1920
|
+
* @param totalDistance The itinerary's length, in meters.
|
|
1921
|
+
* @param range The window the chart is drawn over. Omitted, the whole itinerary.
|
|
1922
|
+
* @returns The stretches drawn, in the order given.
|
|
1923
|
+
*/
|
|
1924
|
+
declare const placeSpans: <T extends ProfileRange>(spans: readonly T[], totalDistance: number, range?: ProfileRange) => PlacedSpan<T>[];
|
|
1925
|
+
export { sectionChipCells as $, curveSpans as $t, SegmentRowCell as A, DEFAULT_AMENITY_STACK_MAX as An, ProfileVisibility as At, classifySteepness as B, climbAt as Bn, placeOnCurve as Bt, TableCursor as C, showCursorMarker as Cn, EMBED_PROFILE_ANALYSIS_HEIGHT as Ct, waypointRowCursor as D, carriesElevation as Dn, EMBED_PROFILE_SECTION_GAP as Dt, segmentRowCursor as E, ProfileSpan as En, EMBED_PROFILE_PANEL_CHROME as Et, segmentRowCell as F, BadgeSurface as Fn, PlaceOnCurveInput as Ft, statStripCells as G, PROFILE_TOP_INSET as Gt, StatStripCell as H, detectClimbs as Hn, CurveStop as Ht, waypointRowCell as I, badgeFallback as In, PlaceOnCurveValue as It, SlopeRampStop as J, ProfileClass as Jt, ASCENT_RAMP_STOPS as K, PROFILE_VIEWBOX as Kt, STEEPNESS_OVERLAY_SLUG as L, CLIMB_CATEGORIES as Ln, PlacedCutoff as Lt, WaypointRowCell as M, AmenityFilter as Mn, embedFitPadding as Mt, WaypointRowCellOptions as N, amenityFilter as Nn, estimateProfileHeight as Nt, DEFAULT_SEGMENT_TABLE_COLUMNS as O, profileSpans as On, EmbedProfileSections as Ot, WaypointTableColumn as P, toggleAmenity as Pn, resolveProfileVisibility as Pt, SectionChipStat as Q, classAt as Qt, STEEPNESS_THRESHOLDS as R, ClimbCategory as Rn, PlacedDivider as Rt, waypointTimingRows as S, hideCursorMarker as Sn, EMBED_FIT_BASE_MARGIN as St, litSegmentId as T, cullCrowdedLabels as Tn, EMBED_PROFILE_CHARACTERISTICS_HEIGHT as Tt, StatStripCursor as U, PROFILE_BASELINE as Ut, DEFAULT_STAT_STRIP_STATS as V, climbCategoryFor as Vn, CurveColor as Vt, StatStripStat as W, PROFILE_BOTTOM_INSET as Wt, DEFAULT_SECTION_CHIP_STATS as X, SlopeColorStop as Xt, slopeRampColor as Y, SLOPE_COLOR_STOPS as Yt, SectionChipCell as Z, anchoredDomain as Zt, waypointMediaLinks as _, CURSOR_MARKER_GLYPH as _n, dateTimeFormat as _t, WaypointCardField as a, profileX as an, SLICE_WIDTH as at, waypointPropertyValue as b, CursorMarkerPoint as bn, relativeTimeFormat as bt, WaypointCardStringsLike as c, DistanceTick as cn, PROFILE_CHART_HEIGHT as ct, amenityName as d, DEFAULT_READOUT_STATS as dn, distanceToFraction as dt, curveStops as en, sectionGrade as et, waypointCard as f, ProfileReadout as fn, surfaceColors as ft, waypointMediaLinkIsLink as g, profileReadout as gn, clearIntlCache as gt, waypointHeadline as h, ReadoutStat as hn, writeLegEmphasis as ht, WaypointCardFacts as i, profilePolyline as in, HitSlice as it, SegmentTableColumn as j, amenityStacks as jn, ProfileVisibilityInput as jt, DEFAULT_WAYPOINT_TABLE_COLUMNS as k, AmenityStack as kn, PROFILE_PANEL_MIN_GAP as kt, WaypointContactRow as l, ElevationDomain as ln, PROFILE_LABEL_COLUMN as lt, waypointDeclaresNothing as m, ReadoutCell as mn, LegEmphasisMap as mt, placeSpans as n, profileAreaPath as nn, rowStandsFor as nt, WaypointCardRow as o, profileY as on, buildSlices as ot, waypointContactRows as p, ProfileReadoutOptions as pn, wayTypeColors as pt, DESCENT_RAMP_STOPS as q, ProfileAnchor as qt, isWebAddress as r, profileDomain as rn, HIT_SLICES as rt, WaypointCardService as s, slopeColors as sn, distanceForSlice as st, PlacedSpan as t, domainTicks as tn, rowAt as tt, WaypointMediaLink as u, distanceTicks as un, PROFILE_PLOT_RIGHT_INSET as ut, waypointMediaPhotos as v, CursorMarkerMap as vn, displayNames as vt, isSegmentRowLit as w, AxisLabelBox as wn, EMBED_PROFILE_ANCHOR_INSET as wt, waypointSummary as x, cursorMarkerIds as xn, formattedInstant as xt, waypointPropertyIsLink as y, CursorMarkerPin as yn, numberFormat as yt, SteepnessClass as z, ClimbSpan as zn, PlacedWaypointMark as zt };
|
|
1926
|
+
//# sourceMappingURL=chunk-D21fEI6A.d.ts.map
|