@mountaya/elements 0.0.0-stage → 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 +273 -0
- package/LICENCE.fr.txt +280 -0
- package/LICENSE.txt +262 -0
- package/README.md +1510 -2
- package/THIRD-PARTY-NOTICES.txt +103 -0
- package/dist/agent/index.cjs +1211 -0
- package/dist/agent/index.cjs.map +1 -0
- package/dist/agent/index.d.cts +1966 -0
- package/dist/agent/index.d.ts +1966 -0
- package/dist/agent/index.js +1181 -0
- package/dist/agent/index.js.map +1 -0
- package/dist/camera/index.cjs +2512 -0
- package/dist/camera/index.cjs.map +1 -0
- package/dist/camera/index.d.cts +1723 -0
- package/dist/camera/index.d.ts +1723 -0
- package/dist/camera/index.js +2443 -0
- package/dist/camera/index.js.map +1 -0
- package/dist/chunk-5pTPpv4v.d.cts +897 -0
- package/dist/chunk-5pTPpv4v.d.ts +897 -0
- package/dist/chunk-6JzFMFHh.d.ts +119 -0
- 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/chunk-A48H1rDg.d.cts +73 -0
- package/dist/chunk-A48H1rDg.d.ts +73 -0
- package/dist/chunk-B-m1AchR.cjs +57 -0
- package/dist/chunk-B-m1AchR.cjs.map +1 -0
- package/dist/chunk-B-qFTf04.d.ts +216 -0
- 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/chunk-B98mKrdu.d.cts +302 -0
- package/dist/chunk-BB0PmqIM.d.cts +44 -0
- 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/chunk-BNX5LAfN.d.cts +912 -0
- package/dist/chunk-BP6KgA86.js +35 -0
- package/dist/chunk-BP6KgA86.js.map +1 -0
- package/dist/chunk-BRnjQq6K.d.cts +157 -0
- 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/chunk-BZ5KyZXI.d.ts +302 -0
- 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/chunk-Bk0L8g5J.d.cts +77 -0
- package/dist/chunk-Bk0L8g5J.d.ts +77 -0
- 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/chunk-Bq_WHTfd.d.cts +119 -0
- package/dist/chunk-Bqt4LBBz.cjs +648 -0
- package/dist/chunk-Bqt4LBBz.cjs.map +1 -0
- package/dist/chunk-Bqt97zwf.d.cts +54 -0
- package/dist/chunk-Bqt97zwf.d.ts +54 -0
- 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/chunk-BxDQZDXR.d.cts +76 -0
- package/dist/chunk-BxDQZDXR.d.ts +76 -0
- 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/chunk-CAUZnoCs.d.ts +525 -0
- 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/chunk-CFIo021l.d.cts +216 -0
- 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/chunk-CWpqBgkF.d.cts +24 -0
- package/dist/chunk-CWpqBgkF.d.ts +24 -0
- 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/chunk-C_fQFr70.d.cts +159 -0
- package/dist/chunk-C_fQFr70.d.ts +159 -0
- 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/chunk-CeiTuMyt.d.cts +525 -0
- 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/chunk-D-4MxHTt.d.cts +105 -0
- package/dist/chunk-D-4MxHTt.d.ts +105 -0
- 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/chunk-D89E-w70.d.ts +44 -0
- 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/chunk-DJpUw8TN.d.ts +912 -0
- 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/chunk-DWsm3HIW.d.cts +120 -0
- package/dist/chunk-DWsm3HIW.d.ts +120 -0
- 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/chunk-DeSjQXiI.d.ts +157 -0
- 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/chunk-Dr5MCIpS.d.cts +63 -0
- package/dist/chunk-Dr5MCIpS.d.ts +63 -0
- 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/chunk-QKWhxfPv.d.cts +361 -0
- package/dist/chunk-QKWhxfPv.d.ts +361 -0
- 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/chunk-fozLXfHY.d.cts +55 -0
- package/dist/chunk-fozLXfHY.d.ts +55 -0
- 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 +831 -0
- package/dist/collab/index.cjs.map +1 -0
- package/dist/collab/index.d.cts +824 -0
- package/dist/collab/index.d.ts +824 -0
- package/dist/collab/index.js +819 -0
- package/dist/collab/index.js.map +1 -0
- package/dist/data/index.cjs +39 -0
- package/dist/data/index.d.cts +6 -0
- package/dist/data/index.d.ts +6 -0
- package/dist/data/index.js +7 -0
- package/dist/editor/index.cjs +2713 -0
- package/dist/editor/index.cjs.map +1 -0
- package/dist/editor/index.d.cts +10 -0
- package/dist/editor/index.d.ts +10 -0
- package/dist/editor/index.js +2702 -0
- package/dist/editor/index.js.map +1 -0
- package/dist/errors/index.cjs +11 -0
- package/dist/errors/index.d.cts +2 -0
- package/dist/errors/index.d.ts +2 -0
- package/dist/errors/index.js +1 -0
- package/dist/geo/index.cjs +68 -0
- package/dist/geo/index.d.cts +6 -0
- package/dist/geo/index.d.ts +6 -0
- package/dist/geo/index.js +11 -0
- package/dist/i18n/fr/index.cjs +333 -0
- package/dist/i18n/fr/index.cjs.map +1 -0
- package/dist/i18n/fr/index.d.cts +18 -0
- package/dist/i18n/fr/index.d.ts +18 -0
- package/dist/i18n/fr/index.js +328 -0
- package/dist/i18n/fr/index.js.map +1 -0
- package/dist/i18n/index.cjs +451 -0
- package/dist/i18n/index.cjs.map +1 -0
- package/dist/i18n/index.d.cts +268 -0
- package/dist/i18n/index.d.ts +268 -0
- package/dist/i18n/index.js +430 -0
- package/dist/i18n/index.js.map +1 -0
- package/dist/icons/index.cjs +37 -0
- package/dist/icons/index.d.cts +4 -0
- package/dist/icons/index.d.ts +4 -0
- package/dist/icons/index.js +8 -0
- package/dist/index.cjs +517 -0
- package/dist/index.cjs.map +1 -0
- package/dist/index.d.cts +174 -0
- package/dist/index.d.ts +174 -0
- package/dist/index.js +54 -0
- package/dist/index.js.map +1 -0
- package/dist/layers/index.cjs +83 -0
- package/dist/layers/index.d.cts +3 -0
- package/dist/layers/index.d.ts +3 -0
- package/dist/layers/index.js +5 -0
- package/dist/map-client/index.cjs +5 -0
- package/dist/map-client/index.d.cts +6 -0
- package/dist/map-client/index.d.ts +6 -0
- package/dist/map-client/index.js +0 -0
- package/dist/maplibre-worker.mjs +12 -0
- package/dist/navigation/index.cjs +612 -0
- package/dist/navigation/index.cjs.map +1 -0
- package/dist/navigation/index.d.cts +551 -0
- package/dist/navigation/index.d.ts +551 -0
- package/dist/navigation/index.js +599 -0
- package/dist/navigation/index.js.map +1 -0
- package/dist/profile/index.cjs +177 -0
- package/dist/profile/index.d.cts +8 -0
- package/dist/profile/index.d.ts +8 -0
- package/dist/profile/index.js +10 -0
- package/dist/seams/index.cjs +15 -0
- package/dist/seams/index.d.cts +4 -0
- package/dist/seams/index.d.ts +4 -0
- package/dist/seams/index.js +4 -0
- package/dist/search/index.cjs +39 -0
- package/dist/search/index.d.cts +6 -0
- package/dist/search/index.d.ts +6 -0
- package/dist/search/index.js +3 -0
- package/dist/style/index.cjs +34 -0
- package/dist/style/index.d.cts +5 -0
- package/dist/style/index.d.ts +5 -0
- package/dist/style/index.js +5 -0
- package/dist/styles.css +11 -0
- package/dist/testing/index.cjs +444 -0
- package/dist/testing/index.cjs.map +1 -0
- package/dist/testing/index.d.cts +217 -0
- package/dist/testing/index.d.ts +217 -0
- package/dist/testing/index.js +435 -0
- package/dist/testing/index.js.map +1 -0
- package/dist/timezone/index.cjs +1953 -0
- package/dist/timezone/index.cjs.map +1 -0
- package/dist/timezone/index.d.cts +28 -0
- package/dist/timezone/index.d.ts +28 -0
- package/dist/timezone/index.js +1948 -0
- package/dist/timezone/index.js.map +1 -0
- package/dist/units/index.cjs +29 -0
- package/dist/units/index.d.cts +3 -0
- package/dist/units/index.d.ts +3 -0
- package/dist/units/index.js +3 -0
- package/dist/video/index.cjs +1713 -0
- package/dist/video/index.cjs.map +1 -0
- package/dist/video/index.d.cts +846 -0
- package/dist/video/index.d.ts +846 -0
- package/dist/video/index.js +1689 -0
- package/dist/video/index.js.map +1 -0
- package/dist/view/index.cjs +7 -0
- package/dist/view/index.d.cts +3 -0
- package/dist/view/index.d.ts +3 -0
- package/dist/view/index.js +1 -0
- package/package.json +433 -4
- package/src/agent/engines/session.ts +2255 -0
- package/src/agent/index.ts +109 -0
- package/src/agent/rules/agentError.ts +128 -0
- package/src/agent/rules/boundedInputJson.ts +53 -0
- package/src/agent/rules/conversation.ts +629 -0
- package/src/agent/rules/conversationFaults.ts +349 -0
- package/src/agent/rules/conversationHost.ts +390 -0
- package/src/agent/rules/dispatcher.ts +102 -0
- package/src/agent/rules/errorCodes.ts +78 -0
- package/src/agent/rules/errorStatus.ts +65 -0
- package/src/agent/rules/scriptedTransport.ts +390 -0
- package/src/agent/rules/stickToBottom.ts +38 -0
- package/src/agent/rules/toolResultPayload.ts +197 -0
- package/src/auth/rules/clientHeader.ts +22 -0
- package/src/auth/rules/sentCredential.ts +76 -0
- package/src/auth/rules/transformRequest.ts +803 -0
- package/src/camera/engines/videoFlight.ts +1758 -0
- package/src/camera/index.ts +157 -0
- package/src/camera/rules/clearance.ts +1099 -0
- package/src/camera/rules/fit.ts +132 -0
- package/src/camera/rules/modes.ts +1019 -0
- package/src/camera/rules/plan.ts +478 -0
- package/src/camera/rules/planner.ts +129 -0
- package/src/camera/rules/poseRanges.ts +38 -0
- package/src/camera/rules/presets.ts +185 -0
- package/src/camera/rules/profileSamples.ts +243 -0
- package/src/camera/rules/route.ts +596 -0
- package/src/camera/rules/routeContent.ts +105 -0
- package/src/camera/rules/spline.ts +765 -0
- package/src/camera/rules/sweptViewports.ts +39 -0
- package/src/camera/rules/track.ts +1412 -0
- package/src/camera/rules/vocabulary.ts +130 -0
- package/src/camera/rules/zoom.ts +216 -0
- package/src/collab/engines/session.ts +1902 -0
- package/src/collab/engines/trailingThrottle.ts +151 -0
- package/src/collab/index.ts +52 -0
- package/src/collab/rules/dispatch.ts +143 -0
- package/src/collab/rules/peerNames.ts +51 -0
- package/src/collab/rules/scriptedTransport.ts +244 -0
- package/src/compose/engines/baseMapSwitch.ts +1136 -0
- package/src/compose/engines/events.ts +962 -0
- package/src/compose/engines/mountayaMap.ts +5648 -0
- package/src/compose/engines/sentCredentials.ts +146 -0
- package/src/compose/engines/slotRequests.ts +413 -0
- package/src/compose/rules/accessRefusal.ts +109 -0
- package/src/compose/rules/accessStanding.ts +75 -0
- package/src/compose/rules/analysisKinds.ts +331 -0
- package/src/compose/rules/analysisLayers.ts +176 -0
- package/src/compose/rules/cameraMoves.ts +38 -0
- package/src/compose/rules/carriedLayers.ts +87 -0
- package/src/compose/rules/developmentWarnings.ts +167 -0
- package/src/compose/rules/fitBox.ts +67 -0
- package/src/compose/rules/fitCamera.ts +54 -0
- package/src/compose/rules/geoJsonSlot.ts +61 -0
- package/src/compose/rules/geometrySlots.ts +155 -0
- package/src/compose/rules/glyphNode.ts +62 -0
- package/src/compose/rules/layerKeys.ts +92 -0
- package/src/compose/rules/layerOrder.ts +85 -0
- package/src/compose/rules/layersManifest.ts +26 -0
- package/src/compose/rules/mapOptions.ts +300 -0
- package/src/compose/rules/maplibreWorkerVersion.gen.ts +8 -0
- package/src/compose/rules/markerPin.ts +122 -0
- package/src/compose/rules/markerRegistry.ts +85 -0
- package/src/compose/rules/markerSprite.ts +382 -0
- package/src/compose/rules/maxBounds.ts +120 -0
- package/src/compose/rules/overlayLookup.ts +49 -0
- package/src/compose/rules/paintDiff.ts +38 -0
- package/src/compose/rules/panLock.ts +77 -0
- package/src/compose/rules/patch.ts +124 -0
- package/src/compose/rules/queriedFeature.ts +55 -0
- package/src/compose/rules/queryLayers.ts +46 -0
- package/src/compose/rules/searchHighlight.ts +313 -0
- package/src/compose/rules/slotNames.ts +19 -0
- package/src/compose/rules/stripeImage.ts +253 -0
- package/src/compose/rules/swapMarker.ts +66 -0
- package/src/compose/rules/terrainVariant.ts +88 -0
- package/src/compose/rules/types.ts +559 -0
- package/src/compose/rules/urlHash.ts +19 -0
- package/src/compose/rules/viewOptions.ts +451 -0
- package/src/compose/rules/workerUrl.ts +131 -0
- package/src/data/engines/itineraryResource.ts +643 -0
- package/src/data/index.ts +78 -0
- package/src/data/rules/adapt.ts +473 -0
- package/src/data/rules/editModes.ts +51 -0
- package/src/data/rules/itinerary.ts +168 -0
- package/src/data/rules/nullable.ts +63 -0
- package/src/data/rules/roadAccess.ts +169 -0
- package/src/data/rules/segmentGroups.ts +309 -0
- package/src/data/rules/selectors.ts +95 -0
- package/src/data/rules/zones.ts +79 -0
- package/src/draw/engines/boundaryEngine.ts +1003 -0
- package/src/draw/engines/framedAdapter.ts +198 -0
- package/src/draw/engines/pointerCursor.ts +205 -0
- package/src/draw/engines/segmentEngine.ts +1405 -0
- package/src/draw/engines/snapIndex.ts +254 -0
- package/src/draw/engines/waypointEngine.ts +574 -0
- package/src/draw/engines/zoneEngine.ts +1137 -0
- package/src/draw/rules/drawFrame.ts +123 -0
- package/src/draw/rules/insertVertex.ts +226 -0
- package/src/draw/rules/screenSpace.ts +62 -0
- package/src/draw/rules/seeds.ts +185 -0
- package/src/draw/rules/snap.ts +115 -0
- package/src/draw/rules/snapCameraKey.ts +50 -0
- package/src/draw/rules/terraDrawShared.ts +214 -0
- package/src/draw/rules/zoneOutline.ts +213 -0
- package/src/editing/engines/cursor.ts +505 -0
- package/src/editing/engines/draftMarker.ts +149 -0
- package/src/editing/rules/accent.ts +11 -0
- package/src/editing/rules/engine.ts +288 -0
- package/src/editing/rules/placement.ts +22 -0
- package/src/editing/rules/positions.ts +89 -0
- package/src/editing/rules/sources.ts +9 -0
- package/src/editing/rules/types.ts +457 -0
- package/src/editing/rules/vocabulary.ts +10 -0
- package/src/editing/rules/waypointCursor.ts +228 -0
- package/src/editor/engines/directionArrows.ts +459 -0
- package/src/editor/engines/directions.ts +1383 -0
- package/src/editor/engines/editorClient.ts +134 -0
- package/src/editor/engines/eventScope.ts +59 -0
- package/src/editor/engines/frameLoop.ts +159 -0
- package/src/editor/engines/itineraryPreview.ts +272 -0
- package/src/editor/engines/mapLockGuard.ts +66 -0
- package/src/editor/engines/overlayRenderer.ts +2696 -0
- package/src/editor/engines/peerDraft.ts +760 -0
- package/src/editor/engines/poiPick.ts +305 -0
- package/src/editor/engines/pointPick.ts +84 -0
- package/src/editor/engines/roadAccessLine.ts +140 -0
- package/src/editor/engines/searchHighlight.ts +183 -0
- package/src/editor/engines/viewClient.ts +4091 -0
- package/src/editor/engines/zoneBadges.ts +503 -0
- package/src/editor/index.ts +97 -0
- package/src/editor/rules/accentColor.ts +116 -0
- package/src/editor/rules/camera.ts +121 -0
- package/src/editor/rules/contract.ts +120 -0
- package/src/editor/rules/icons.ts +825 -0
- package/src/editor/rules/markerElements.ts +244 -0
- package/src/editor/rules/style.ts +51 -0
- package/src/editor/rules/terrain.ts +98 -0
- package/src/editor/rules/tileWarm.ts +191 -0
- package/src/editor/rules/tilesReload.ts +158 -0
- package/src/editor/rules/zoneBadgePlacement.ts +1832 -0
- package/src/editor/rules/zoneTimeStyling.ts +119 -0
- package/src/errors/index.ts +25 -0
- package/src/errors/rules/errors.ts +158 -0
- package/src/errors/rules/print.ts +129 -0
- package/src/geo/index.ts +89 -0
- package/src/geo/rules/boundaries.ts +105 -0
- package/src/geo/rules/camera.ts +496 -0
- package/src/geo/rules/corridor.ts +242 -0
- package/src/geo/rules/elevationTiles.ts +269 -0
- package/src/geo/rules/formatLngLat.ts +63 -0
- package/src/geo/rules/geodesy.ts +125 -0
- package/src/geo/rules/geometry.ts +362 -0
- package/src/geo/rules/lineWalk.ts +77 -0
- package/src/geo/rules/longitude.ts +99 -0
- package/src/geo/rules/searchLimits.ts +22 -0
- package/src/geo/rules/segmentGeometry.ts +80 -0
- package/src/geo/rules/terrain.ts +107 -0
- package/src/geo/rules/tuples.ts +124 -0
- package/src/geo/rules/types.ts +54 -0
- package/src/geo/rules/webMercator.ts +57 -0
- package/src/i18n/fr/index.ts +17 -0
- package/src/i18n/fr/rules/fr.ts +85 -0
- package/src/i18n/fr/rules/words.gen.ts +277 -0
- package/src/i18n/index.ts +82 -0
- package/src/i18n/rules/bundle.ts +378 -0
- package/src/i18n/rules/config.ts +71 -0
- package/src/i18n/rules/dates.ts +165 -0
- package/src/i18n/rules/endonyms.gen.ts +19 -0
- package/src/i18n/rules/language.ts +92 -0
- package/src/i18n/rules/localizedName.ts +33 -0
- package/src/i18n/rules/merge.ts +106 -0
- package/src/i18n/rules/scope.ts +127 -0
- package/src/i18n/rules/strings.ts +632 -0
- package/src/i18n/rules/videoOverlay.ts +121 -0
- package/src/i18n/rules/wordForms.ts +95 -0
- package/src/i18n/rules/words.gen.ts +277 -0
- package/src/icons/index.ts +54 -0
- package/src/icons/rules/activities.ts +40 -0
- package/src/icons/rules/amenities.ts +250 -0
- package/src/icons/rules/artwork.gen.ts +83 -0
- package/src/icons/rules/artwork.ts +47 -0
- package/src/icons/rules/fallback.ts +21 -0
- package/src/icons/rules/lucideMarkers.gen.ts +112 -0
- package/src/icons/rules/lucideUi.gen.ts +197 -0
- package/src/icons/rules/paint.ts +107 -0
- package/src/icons/rules/parse.ts +475 -0
- package/src/icons/rules/provider.ts +373 -0
- package/src/icons/rules/sprites.ts +54 -0
- package/src/icons/rules/ui.ts +348 -0
- package/src/icons/rules/waypoints.ts +215 -0
- package/src/index.ts +993 -0
- package/src/layers/engines/layersSelection.ts +515 -0
- package/src/layers/engines/readoutEngine.ts +131 -0
- package/src/layers/index.ts +151 -0
- package/src/layers/rules/analysis.ts +135 -0
- package/src/layers/rules/enrichment.ts +30 -0
- package/src/layers/rules/geoJson.ts +270 -0
- package/src/layers/rules/hover.ts +67 -0
- package/src/layers/rules/itineraries.ts +182 -0
- package/src/layers/rules/layersPanel.ts +237 -0
- package/src/layers/rules/order.ts +194 -0
- package/src/layers/rules/overlayInstant.ts +49 -0
- package/src/layers/rules/overlays.ts +52 -0
- package/src/layers/rules/poiPanel.ts +119 -0
- package/src/layers/rules/pois.ts +114 -0
- package/src/layers/rules/readout.ts +340 -0
- package/src/layers/rules/streetView.ts +16 -0
- package/src/layers/rules/tileTimestamp.ts +146 -0
- package/src/layers/rules/timeSlider.ts +192 -0
- package/src/layers/rules/timeWindow.ts +123 -0
- package/src/layers/rules/zones.ts +43 -0
- package/src/layers/rules/zoom.ts +77 -0
- package/src/map-client/index.ts +71 -0
- package/src/map-client/rules/mapClient.ts +1945 -0
- package/src/navigation/engines/navigation.ts +493 -0
- package/src/navigation/index.ts +51 -0
- package/src/navigation/rules/followedRoute.ts +78 -0
- package/src/navigation/rules/instructions.ts +89 -0
- package/src/navigation/rules/itineraryRoute.ts +232 -0
- package/src/navigation/rules/offRoute.ts +41 -0
- package/src/navigation/rules/progress.ts +230 -0
- package/src/navigation/rules/prompts.ts +217 -0
- package/src/navigation/rules/routeRequest.ts +98 -0
- package/src/navigation/rules/status.ts +142 -0
- package/src/navigation/rules/steps.ts +234 -0
- package/src/navigation/rules/types.ts +83 -0
- package/src/profile/index.ts +307 -0
- package/src/profile/rules/amenityBadge.ts +35 -0
- package/src/profile/rules/amenityFilter.ts +74 -0
- package/src/profile/rules/amenityStacks.ts +66 -0
- package/src/profile/rules/axis.ts +89 -0
- package/src/profile/rules/axisCulling.ts +83 -0
- package/src/profile/rules/axisLookup.ts +180 -0
- package/src/profile/rules/climbs.ts +292 -0
- package/src/profile/rules/cursorMarker.ts +122 -0
- package/src/profile/rules/cursorReadout.ts +104 -0
- package/src/profile/rules/curvePlacement.ts +216 -0
- package/src/profile/rules/dock.ts +293 -0
- package/src/profile/rules/elevation.ts +1263 -0
- package/src/profile/rules/instant.ts +89 -0
- package/src/profile/rules/intl.ts +237 -0
- package/src/profile/rules/legEmphasis.ts +53 -0
- package/src/profile/rules/profileColors.ts +66 -0
- package/src/profile/rules/profileLayout.ts +59 -0
- package/src/profile/rules/profileSlices.ts +55 -0
- package/src/profile/rules/routeProfile.ts +475 -0
- package/src/profile/rules/rowMatch.ts +50 -0
- package/src/profile/rules/scale.ts +646 -0
- package/src/profile/rules/scaleFrame.ts +171 -0
- package/src/profile/rules/sectionChips.ts +83 -0
- package/src/profile/rules/sections.ts +923 -0
- package/src/profile/rules/slopeRamp.ts +160 -0
- package/src/profile/rules/statStrip.ts +103 -0
- package/src/profile/rules/steepness.ts +51 -0
- package/src/profile/rules/tableCells.ts +269 -0
- package/src/profile/rules/tableCursor.ts +87 -0
- package/src/profile/rules/unitPatterns.ts +335 -0
- package/src/profile/rules/units.ts +1025 -0
- package/src/profile/rules/waypointCard.ts +590 -0
- package/src/profile/rules/webAddress.ts +130 -0
- package/src/profile/rules/windowSpans.ts +65 -0
- package/src/rules/asciiFold.ts +17 -0
- package/src/rules/inDevelopment.ts +54 -0
- package/src/rules/listeners.ts +62 -0
- package/src/rules/timers.ts +9 -0
- package/src/rules/types.ts +22 -0
- package/src/rules/uuid.ts +87 -0
- package/src/seams/engines/geolocateControl.ts +286 -0
- package/src/seams/index.ts +50 -0
- package/src/seams/rules/clock.ts +169 -0
- package/src/seams/rules/geolocation.ts +165 -0
- package/src/seams/rules/segmentRoute.ts +187 -0
- package/src/search/engines/search.ts +1093 -0
- package/src/search/index.ts +99 -0
- package/src/search/rules/describe.ts +383 -0
- package/src/search/rules/filters.ts +195 -0
- package/src/search/rules/highlight.ts +270 -0
- package/src/search/rules/pick.ts +90 -0
- package/src/search/rules/rows.ts +258 -0
- package/src/search/rules/searchFocus.ts +27 -0
- package/src/search/rules/searchViewport.ts +44 -0
- package/src/search/rules/shown.ts +77 -0
- package/src/search/rules/types.ts +340 -0
- package/src/stream/rules/reconnectSchedule.ts +83 -0
- package/src/style/engines/organizationRead.ts +80 -0
- package/src/style/index.ts +63 -0
- package/src/style/rules/apply.ts +268 -0
- package/src/style/rules/attribution.ts +119 -0
- package/src/style/rules/itineraryLine.ts +142 -0
- package/src/style/rules/language.ts +668 -0
- package/src/style/rules/layout.gen.ts +27 -0
- package/src/style/rules/organization.ts +96 -0
- package/src/style/rules/paint.ts +143 -0
- package/src/style/rules/panelLayout.ts +51 -0
- package/src/style/rules/roadAccessColors.ts +29 -0
- package/src/style/rules/roadAccessLine.ts +267 -0
- package/src/style/rules/segmentColors.ts +207 -0
- package/src/testing/catalogs.ts +103 -0
- package/src/testing/index.ts +30 -0
- package/src/testing/mapClient.ts +241 -0
- package/src/testing/mountayaMap.ts +741 -0
- package/src/timezone/index.ts +14 -0
- package/src/timezone/rules/viewport.ts +875 -0
- package/src/units/index.ts +55 -0
- package/src/units/rules/conversions.ts +620 -0
- package/src/units/rules/preferenceChoices.ts +124 -0
- package/src/units/rules/preferences.ts +77 -0
- package/src/units/rules/rounding.ts +69 -0
- package/src/video/engines/videoRun.ts +654 -0
- package/src/video/engines/viewClient.ts +6 -0
- package/src/video/index.ts +83 -0
- package/src/video/profileOverlay/rules/contract.ts +210 -0
- package/src/video/profileOverlay/rules/curve.ts +216 -0
- package/src/video/profileOverlay/rules/draw.ts +410 -0
- package/src/video/profileOverlay/rules/fonts.ts +54 -0
- package/src/video/profileOverlay/rules/graphDesign.ts +690 -0
- package/src/video/profileOverlay/rules/minimalDesign.ts +144 -0
- package/src/video/profileOverlay/rules/registry.ts +23 -0
- package/src/video/profileOverlay/rules/staticLayer.ts +582 -0
- package/src/video/profileOverlay/rules/stripDesign.ts +327 -0
- package/src/video/profileOverlay/rules/types.ts +78 -0
- package/src/video/rules/videoConstants.ts +250 -0
- package/src/video/rules/videoEncoder.ts +277 -0
- package/src/video/rules/videoFrames.ts +99 -0
- package/src/video/rules/videoPreview.ts +185 -0
- package/src/video/rules/videoRecorder.ts +746 -0
- package/src/video/rules/videoWatermark.ts +155 -0
- package/src/video/rules/watermarkMark.ts +40 -0
- package/src/view/engines/viewClient.ts +6 -0
- package/src/view/index.ts +20 -0
|
@@ -0,0 +1,206 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
const require_glyphNode = require("./chunk-De2FmNPu.cjs");
|
|
3
|
+
const require_errors = require("./chunk-o3IRANDf.cjs");
|
|
4
|
+
const require_paint = require("./chunk-twQItIRg.cjs");
|
|
5
|
+
const require_sprites = require("./chunk-CHrasH_g.cjs");
|
|
6
|
+
const WAYPOINT_CURSOR_RING_INSET = 3;
|
|
7
|
+
const WAYPOINT_CURSOR_FALLBACK_ICON = "map-pin";
|
|
8
|
+
const SVG_NAMESPACE = "http://www.w3.org/2000/svg";
|
|
9
|
+
const WAYPOINT_CURSOR_SIZE_FLOOR = 6;
|
|
10
|
+
const sizeFrom = (subject, size) => {
|
|
11
|
+
if (!Number.isFinite(size) || size <= WAYPOINT_CURSOR_SIZE_FLOOR) throw new require_errors.MountayaElementsError(`${subject}: size is ${String(size)}; pass the marker sprite's size in CSS pixels, a finite number above ${WAYPOINT_CURSOR_SIZE_FLOOR}.`);
|
|
12
|
+
return size;
|
|
13
|
+
};
|
|
14
|
+
const describeWaypointSvg = ({ color, icon, provider, size: stated }, subject = "describeWaypointSvg") => {
|
|
15
|
+
const size = sizeFrom(subject, stated);
|
|
16
|
+
const markup = provider.markup(icon) ?? provider.markup(WAYPOINT_CURSOR_FALLBACK_ICON) ?? "";
|
|
17
|
+
const glyph = require_paint.fitGlyph(size, provider.viewBox);
|
|
18
|
+
const half = size / 2;
|
|
19
|
+
const paint = {
|
|
20
|
+
color: "white",
|
|
21
|
+
...require_glyphNode.paintAttributes(require_paint.glyphPaint(provider), "white")
|
|
22
|
+
};
|
|
23
|
+
return {
|
|
24
|
+
attributes: {
|
|
25
|
+
width: String(size),
|
|
26
|
+
height: String(size),
|
|
27
|
+
viewBox: `0 0 ${size} ${size}`
|
|
28
|
+
},
|
|
29
|
+
children: [{
|
|
30
|
+
attributes: {
|
|
31
|
+
cx: String(half),
|
|
32
|
+
cy: String(half),
|
|
33
|
+
r: String(half - WAYPOINT_CURSOR_RING_INSET),
|
|
34
|
+
fill: color,
|
|
35
|
+
stroke: "white",
|
|
36
|
+
"stroke-width": "2"
|
|
37
|
+
},
|
|
38
|
+
tag: "circle"
|
|
39
|
+
}, {
|
|
40
|
+
attributes: {
|
|
41
|
+
transform: `translate(${glyph.offset} ${glyph.offset}) scale(${glyph.scale})`,
|
|
42
|
+
...paint
|
|
43
|
+
},
|
|
44
|
+
children: require_paint.parseGlyph(markup),
|
|
45
|
+
tag: "g"
|
|
46
|
+
}],
|
|
47
|
+
tag: "svg"
|
|
48
|
+
};
|
|
49
|
+
};
|
|
50
|
+
const escapeAttribute = (value) => value.replaceAll("&", "&").replaceAll("\"", """).replaceAll("<", "<").replaceAll(">", ">");
|
|
51
|
+
const MARKER_BORDER_PX = 3;
|
|
52
|
+
const MARKER_WHITE = "#ffffff";
|
|
53
|
+
const POI_ICON_PREFIX = "poi-icon-";
|
|
54
|
+
const poiIconImageId = (glyph, color) => `${POI_ICON_PREFIX}${glyph}-${require_sprites.spriteColorKey(color)}`;
|
|
55
|
+
const MARKER_ICON_PREFIXES = [require_sprites.WAYPOINT_ICON_PREFIX, POI_ICON_PREFIX];
|
|
56
|
+
const describeMarkerSprite = (glyph, color, icons) => {
|
|
57
|
+
if (!icons.has(glyph)) return null;
|
|
58
|
+
const half = 24;
|
|
59
|
+
const { offset, scale } = require_paint.fitGlyph(48, icons.viewBox);
|
|
60
|
+
return {
|
|
61
|
+
disc: {
|
|
62
|
+
border: {
|
|
63
|
+
color: MARKER_WHITE,
|
|
64
|
+
width: MARKER_BORDER_PX
|
|
65
|
+
},
|
|
66
|
+
center: [half, half],
|
|
67
|
+
fill: color,
|
|
68
|
+
radius: 21
|
|
69
|
+
},
|
|
70
|
+
glyph: {
|
|
71
|
+
color: MARKER_WHITE,
|
|
72
|
+
offset,
|
|
73
|
+
scale
|
|
74
|
+
},
|
|
75
|
+
size: 48
|
|
76
|
+
};
|
|
77
|
+
};
|
|
78
|
+
const attributesText = (attributes) => Object.entries(attributes).map(([name, value]) => ` ${name}="${escapeAttribute(value)}"`).join("");
|
|
79
|
+
const markerSvg = (glyph, color, icons) => {
|
|
80
|
+
const sprite = describeMarkerSprite(glyph, color, icons);
|
|
81
|
+
if (sprite === null) return null;
|
|
82
|
+
const { disc, size } = sprite;
|
|
83
|
+
const shapes = require_paint.parseGlyph(icons.markup(glyph) ?? "").map((shape) => `<${shape.tag}${attributesText(shape.attributes)}/>`).join("");
|
|
84
|
+
const group = attributesText({
|
|
85
|
+
transform: `translate(${sprite.glyph.offset} ${sprite.glyph.offset}) scale(${sprite.glyph.scale})`,
|
|
86
|
+
color: sprite.glyph.color,
|
|
87
|
+
...require_glyphNode.paintAttributes(require_paint.glyphPaint(icons), "currentColor")
|
|
88
|
+
});
|
|
89
|
+
return `<svg xmlns="http://www.w3.org/2000/svg" width="${size}" height="${size}" viewBox="0 0 ${size} ${size}"><circle cx="${disc.center[0]}" cy="${disc.center[1]}" r="${disc.radius}" fill="${escapeAttribute(disc.fill)}" stroke="${disc.border.color}" stroke-width="${disc.border.width}"/><g${group}>${shapes}</g></svg>`;
|
|
90
|
+
};
|
|
91
|
+
const markerIdTail = /^(.+)-([0-9a-f]{6})$/i;
|
|
92
|
+
const readMarkerImageId = (imageId, icons) => {
|
|
93
|
+
const prefix = MARKER_ICON_PREFIXES.find((one) => imageId.startsWith(one));
|
|
94
|
+
if (prefix === void 0) return null;
|
|
95
|
+
const [, glyph, hex] = markerIdTail.exec(imageId.slice(prefix.length)) ?? [];
|
|
96
|
+
if (glyph === void 0 || hex === void 0 || !icons.has(glyph)) return null;
|
|
97
|
+
return {
|
|
98
|
+
color: `#${hex}`,
|
|
99
|
+
glyph
|
|
100
|
+
};
|
|
101
|
+
};
|
|
102
|
+
const rasterizeMarkerBitmap = async (svg) => {
|
|
103
|
+
const image = new Image();
|
|
104
|
+
image.src = `data:image/svg+xml;charset=utf-8,${encodeURIComponent(svg)}`;
|
|
105
|
+
await image.decode();
|
|
106
|
+
const canvas = document.createElement("canvas");
|
|
107
|
+
canvas.width = 48;
|
|
108
|
+
canvas.height = 48;
|
|
109
|
+
const context = canvas.getContext("2d");
|
|
110
|
+
if (!context) throw new require_errors.MountayaElementsError("could not get canvas 2D context");
|
|
111
|
+
context.drawImage(image, 0, 0, 48, 48);
|
|
112
|
+
return context.getImageData(0, 0, 48, 48);
|
|
113
|
+
};
|
|
114
|
+
const bitmapCache = /* @__PURE__ */ new Map();
|
|
115
|
+
const inFlightRasterizations = /* @__PURE__ */ new Map();
|
|
116
|
+
const cachedMarkerBitmap = (svg) => bitmapCache.get(svg);
|
|
117
|
+
const ensureBitmap = async (svg) => {
|
|
118
|
+
const cached = bitmapCache.get(svg);
|
|
119
|
+
if (cached) return cached;
|
|
120
|
+
const inFlight = inFlightRasterizations.get(svg);
|
|
121
|
+
if (inFlight) return inFlight;
|
|
122
|
+
const pending = rasterizeMarkerBitmap(svg).then((data) => {
|
|
123
|
+
bitmapCache.set(svg, data);
|
|
124
|
+
return data;
|
|
125
|
+
}).finally(() => {
|
|
126
|
+
inFlightRasterizations.delete(svg);
|
|
127
|
+
});
|
|
128
|
+
inFlightRasterizations.set(svg, pending);
|
|
129
|
+
return pending;
|
|
130
|
+
};
|
|
131
|
+
const addMarkerIcon = async (map, imageId, svg) => {
|
|
132
|
+
if (map.hasImage(imageId)) return;
|
|
133
|
+
const imageData = bitmapCache.get(svg) ?? await ensureBitmap(svg);
|
|
134
|
+
if (!map.hasImage(imageId)) map.addImage(imageId, imageData, { pixelRatio: 1 });
|
|
135
|
+
};
|
|
136
|
+
const answerMarkerImage = async (map, imageId, icons) => {
|
|
137
|
+
try {
|
|
138
|
+
const marker = readMarkerImageId(imageId, icons);
|
|
139
|
+
const svg = marker === null ? null : markerSvg(marker.glyph, marker.color, icons);
|
|
140
|
+
if (svg === null) return;
|
|
141
|
+
await addMarkerIcon(map, imageId, svg);
|
|
142
|
+
map.triggerRepaint();
|
|
143
|
+
} catch {}
|
|
144
|
+
};
|
|
145
|
+
Object.defineProperty(exports, "SVG_NAMESPACE", {
|
|
146
|
+
enumerable: true,
|
|
147
|
+
get: function() {
|
|
148
|
+
return SVG_NAMESPACE;
|
|
149
|
+
}
|
|
150
|
+
});
|
|
151
|
+
Object.defineProperty(exports, "addMarkerIcon", {
|
|
152
|
+
enumerable: true,
|
|
153
|
+
get: function() {
|
|
154
|
+
return addMarkerIcon;
|
|
155
|
+
}
|
|
156
|
+
});
|
|
157
|
+
Object.defineProperty(exports, "answerMarkerImage", {
|
|
158
|
+
enumerable: true,
|
|
159
|
+
get: function() {
|
|
160
|
+
return answerMarkerImage;
|
|
161
|
+
}
|
|
162
|
+
});
|
|
163
|
+
Object.defineProperty(exports, "cachedMarkerBitmap", {
|
|
164
|
+
enumerable: true,
|
|
165
|
+
get: function() {
|
|
166
|
+
return cachedMarkerBitmap;
|
|
167
|
+
}
|
|
168
|
+
});
|
|
169
|
+
Object.defineProperty(exports, "describeMarkerSprite", {
|
|
170
|
+
enumerable: true,
|
|
171
|
+
get: function() {
|
|
172
|
+
return describeMarkerSprite;
|
|
173
|
+
}
|
|
174
|
+
});
|
|
175
|
+
Object.defineProperty(exports, "describeWaypointSvg", {
|
|
176
|
+
enumerable: true,
|
|
177
|
+
get: function() {
|
|
178
|
+
return describeWaypointSvg;
|
|
179
|
+
}
|
|
180
|
+
});
|
|
181
|
+
Object.defineProperty(exports, "ensureBitmap", {
|
|
182
|
+
enumerable: true,
|
|
183
|
+
get: function() {
|
|
184
|
+
return ensureBitmap;
|
|
185
|
+
}
|
|
186
|
+
});
|
|
187
|
+
Object.defineProperty(exports, "markerSvg", {
|
|
188
|
+
enumerable: true,
|
|
189
|
+
get: function() {
|
|
190
|
+
return markerSvg;
|
|
191
|
+
}
|
|
192
|
+
});
|
|
193
|
+
Object.defineProperty(exports, "poiIconImageId", {
|
|
194
|
+
enumerable: true,
|
|
195
|
+
get: function() {
|
|
196
|
+
return poiIconImageId;
|
|
197
|
+
}
|
|
198
|
+
});
|
|
199
|
+
Object.defineProperty(exports, "readMarkerImageId", {
|
|
200
|
+
enumerable: true,
|
|
201
|
+
get: function() {
|
|
202
|
+
return readMarkerImageId;
|
|
203
|
+
}
|
|
204
|
+
});
|
|
205
|
+
|
|
206
|
+
//# sourceMappingURL=chunk-DWe7igyw.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"chunk-DWe7igyw.cjs","names":["MountayaElementsError","fitGlyph","paintAttributes","glyphPaint","parseGlyph","spriteColorKey","WAYPOINT_ICON_PREFIX","fitGlyph","parseGlyph","paintAttributes","glyphPaint","MountayaElementsError"],"sources":["../src/editing/rules/waypointCursor.ts","../src/compose/rules/markerSprite.ts"],"mappings":"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"}
|
|
@@ -0,0 +1,68 @@
|
|
|
1
|
+
import { r as MapLanguage } from "./chunk-Bqt97zwf.js";
|
|
2
|
+
import { l as PreferencesStrings } from "./chunk-6qyuJVvt.js";
|
|
3
|
+
import { r as UnitFormatOptions } from "./chunk-5pTPpv4v.js";
|
|
4
|
+
/** A preference a preferences picker offers: a member of the set a press reports. */
|
|
5
|
+
type PreferenceField = keyof UnitFormatOptions;
|
|
6
|
+
/** One option of a preference: the value it takes, its label, and whether the set holds it. */
|
|
7
|
+
interface PreferenceOption {
|
|
8
|
+
/** The value the preference takes when the option is pressed, as the wire spells it. */
|
|
9
|
+
readonly value: string;
|
|
10
|
+
/**
|
|
11
|
+
* What the option is labelled with: a word of the elements' `preferences` section, or, for a
|
|
12
|
+
* language, its name in itself, which no language translates.
|
|
13
|
+
*/
|
|
14
|
+
readonly label: {
|
|
15
|
+
readonly word: keyof PreferencesStrings;
|
|
16
|
+
} | {
|
|
17
|
+
readonly name: string;
|
|
18
|
+
};
|
|
19
|
+
/**
|
|
20
|
+
* Whether the set holds the option. A language is held as the map reads one, by its primary
|
|
21
|
+
* subtag, so a set holding `fr-CA` holds French and one holding a tag the map does not label in
|
|
22
|
+
* holds English.
|
|
23
|
+
*/
|
|
24
|
+
readonly checked: boolean;
|
|
25
|
+
}
|
|
26
|
+
/** One preference a preferences picker offers, headed by the word its field names. */
|
|
27
|
+
interface PreferenceChoice {
|
|
28
|
+
readonly field: PreferenceField;
|
|
29
|
+
/** The preference's options, in the order the contract lists them. */
|
|
30
|
+
readonly options: readonly PreferenceOption[];
|
|
31
|
+
}
|
|
32
|
+
/** What a press on an option asks for. */
|
|
33
|
+
interface PreferencePress {
|
|
34
|
+
/** The whole set the press asks for: the set it was made over, with one preference changed. */
|
|
35
|
+
readonly next: UnitFormatOptions;
|
|
36
|
+
/** The language the map relabels in, for a press on a language, and null otherwise. */
|
|
37
|
+
readonly relabel: MapLanguage | null;
|
|
38
|
+
}
|
|
39
|
+
/**
|
|
40
|
+
* preferenceChoices lists what a preferences picker offers over a preference set: the length
|
|
41
|
+
* system, the form a travel rate takes, the slope notation, the temperature scale and the label
|
|
42
|
+
* language, in that order, each option in the order the contract lists it and a language by its
|
|
43
|
+
* own name.
|
|
44
|
+
*
|
|
45
|
+
* @example
|
|
46
|
+
* ```ts
|
|
47
|
+
* import { defaultUnits } from "@mountaya/elements/profile";
|
|
48
|
+
* import { preferenceChoices } from "@mountaya/elements/units";
|
|
49
|
+
*
|
|
50
|
+
* const choices = preferenceChoices({ ...defaultUnits, language: "fr-CA" });
|
|
51
|
+
* ```
|
|
52
|
+
*/
|
|
53
|
+
declare const preferenceChoices: (preferences: UnitFormatOptions) => readonly PreferenceChoice[];
|
|
54
|
+
/**
|
|
55
|
+
* preferencePress answers what a press on an option asks for: the whole set, with the pressed
|
|
56
|
+
* preference changed and every other as it was, and, for a language, the language the map
|
|
57
|
+
* relabels in, since a language is a concern of the map's labels as well.
|
|
58
|
+
*
|
|
59
|
+
* The set is reported rather than kept: units are an application's concern, read by surfaces a
|
|
60
|
+
* picker cannot see, so the picker holds no set of its own.
|
|
61
|
+
*
|
|
62
|
+
* @param preferences The set the press is made over.
|
|
63
|
+
* @param field The preference pressed.
|
|
64
|
+
* @param value The value of the option pressed.
|
|
65
|
+
*/
|
|
66
|
+
declare const preferencePress: (preferences: UnitFormatOptions, field: PreferenceField, value: string) => PreferencePress;
|
|
67
|
+
export { preferenceChoices as a, PreferencePress as i, PreferenceField as n, preferencePress as o, PreferenceOption as r, PreferenceChoice as t };
|
|
68
|
+
//# sourceMappingURL=chunk-DWsMP5JR.d.ts.map
|
|
@@ -0,0 +1,120 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Marker glyphs.
|
|
3
|
+
*
|
|
4
|
+
* A marker is a coloured pin with a glyph in it, and the glyph is the one part of this
|
|
5
|
+
* package that is a licensed *asset* rather than code. Mountaya's own studio uses the
|
|
6
|
+
* Nucleo Core family, whose licence does not permit redistributing derived path data, so
|
|
7
|
+
* a published package cannot contain it, and this package does not.
|
|
8
|
+
*
|
|
9
|
+
* Instead the glyph set is a seam. The default is Lucide (ISC, redistributable, bundled),
|
|
10
|
+
* and a consumer who holds a Nucleo licence can supply that set instead and get pixel
|
|
11
|
+
* parity with the studio.
|
|
12
|
+
*
|
|
13
|
+
* The seam carries a **paint mode**, and that field is the reason this is an interface
|
|
14
|
+
* rather than a bare `Record<string, string>`. Nucleo glyphs are filled shapes with no
|
|
15
|
+
* fill of their own, painted by the caller. Lucide glyphs are the opposite: open strokes
|
|
16
|
+
* with `fill="none"`. Applying Nucleo's fill treatment to a Lucide glyph paints nothing
|
|
17
|
+
* at all, and the failure is a blank marker rather than an error: the kind of bug that
|
|
18
|
+
* survives review because nothing throws.
|
|
19
|
+
*/
|
|
20
|
+
/** How the renderer must paint a provider's glyphs to make them visible. */
|
|
21
|
+
type GlyphPaint = "fill" | "stroke";
|
|
22
|
+
/**
|
|
23
|
+
* IconProvider is a glyph set a renderer draws from: the glyphs it carries, and how they are
|
|
24
|
+
* painted. {@link createIconProvider} builds one from a table of markup.
|
|
25
|
+
*/
|
|
26
|
+
interface IconProvider {
|
|
27
|
+
/** Identifies the set in diagnostics and in the sprite image ids. */
|
|
28
|
+
readonly name: string;
|
|
29
|
+
/**
|
|
30
|
+
* Whether the caller paints these glyphs by filling their shapes or by stroking their
|
|
31
|
+
* outlines. Getting this wrong renders nothing, silently.
|
|
32
|
+
*/
|
|
33
|
+
readonly paint: GlyphPaint;
|
|
34
|
+
/** Stroke width in viewBox units. Meaningful only when `paint` is "stroke". */
|
|
35
|
+
readonly strokeWidth: number;
|
|
36
|
+
/** The square viewBox the markup is authored against. */
|
|
37
|
+
readonly viewBox: number;
|
|
38
|
+
/** Whether this set can draw the named glyph. */
|
|
39
|
+
has(glyph: string): boolean;
|
|
40
|
+
/** The inner SVG markup for a glyph, or undefined when the set has no such glyph. */
|
|
41
|
+
markup(glyph: string): string | undefined;
|
|
42
|
+
/** Every glyph name this set can draw, sorted. */
|
|
43
|
+
names(): readonly string[];
|
|
44
|
+
}
|
|
45
|
+
/** IconProviderOptions is the glyph set {@link createIconProvider} builds a provider from. */
|
|
46
|
+
interface IconProviderOptions {
|
|
47
|
+
/** Identifies the set in diagnostics. Never empty. */
|
|
48
|
+
readonly name: string;
|
|
49
|
+
/** Whether a renderer fills the glyphs' shapes or strokes their outlines. */
|
|
50
|
+
readonly paint: GlyphPaint;
|
|
51
|
+
/** The inner SVG markup of each glyph, keyed by glyph name. */
|
|
52
|
+
readonly markup: Readonly<Record<string, string>>;
|
|
53
|
+
/**
|
|
54
|
+
* The stroke width, in viewBox units. Read only when `paint` is `"stroke"`.
|
|
55
|
+
*
|
|
56
|
+
* @default 2
|
|
57
|
+
*/
|
|
58
|
+
readonly strokeWidth?: number | undefined;
|
|
59
|
+
/**
|
|
60
|
+
* The side of the square viewBox the markup is drawn in.
|
|
61
|
+
*
|
|
62
|
+
* @default 24
|
|
63
|
+
*/
|
|
64
|
+
readonly viewBox?: number | undefined;
|
|
65
|
+
}
|
|
66
|
+
/**
|
|
67
|
+
* createIconProvider builds a provider from a glyph table.
|
|
68
|
+
*
|
|
69
|
+
* This is how a Nucleo licensee supplies their own set:
|
|
70
|
+
*
|
|
71
|
+
* ```ts
|
|
72
|
+
* import { MARKER_ICON_MARKUP } from "./my-licensed-nucleo-glyphs";
|
|
73
|
+
*
|
|
74
|
+
* const nucleo = createIconProvider({
|
|
75
|
+
* name: "nucleo",
|
|
76
|
+
* paint: "fill",
|
|
77
|
+
* markup: MARKER_ICON_MARKUP,
|
|
78
|
+
* });
|
|
79
|
+
* ```
|
|
80
|
+
*
|
|
81
|
+
* The path data stays in the consumer's own tree, where their licence covers it. Nothing
|
|
82
|
+
* about it enters this package.
|
|
83
|
+
*
|
|
84
|
+
* Every option is read once, here, so a set that cannot be drawn fails where it is declared
|
|
85
|
+
* and never as a blank marker on a map.
|
|
86
|
+
*
|
|
87
|
+
* @throws {MountayaElementsError} When `options` is no object, `name` is empty or no string,
|
|
88
|
+
* `paint` is neither `"fill"` nor `"stroke"`, `markup` is no object of strings, `viewBox` is not
|
|
89
|
+
* a finite number above 0, or `strokeWidth` is not a finite number: above 0 under `"stroke"`,
|
|
90
|
+
* 0 or above under `"fill"`. The message names the option and the value it held.
|
|
91
|
+
*/
|
|
92
|
+
declare const createIconProvider: (options: IconProviderOptions) => IconProvider;
|
|
93
|
+
/**
|
|
94
|
+
* fallbackProvider chains providers, taking each glyph from the first set that has it.
|
|
95
|
+
*
|
|
96
|
+
* The obvious use is a partial licensed set over the bundled one. It is deliberately NOT
|
|
97
|
+
* the default composition, because mixing a fill set with a stroke set inside one map
|
|
98
|
+
* would need per-glyph paint modes, and a marker row where some glyphs are hairlines and
|
|
99
|
+
* others are solid looks like a rendering bug rather than a design.
|
|
100
|
+
*
|
|
101
|
+
* So the paint mode comes from the FIRST provider, and chaining sets whose paint modes
|
|
102
|
+
* differ throws rather than producing that. Chain within a paint mode; switch sets
|
|
103
|
+
* wholesale across one.
|
|
104
|
+
*
|
|
105
|
+
* The viewBox and the stroke width come from the first provider too, and every glyph of the
|
|
106
|
+
* chain is drawn with them. A set drawn on another grid would be placed at the wrong scale, and
|
|
107
|
+
* a stroke set drawn for another width at the wrong weight, so each of those chains throws as
|
|
108
|
+
* well. A fill set's stroke width is never read, and is never compared.
|
|
109
|
+
*
|
|
110
|
+
* Every member is read once, here, so a chain that cannot be drawn fails where it is declared.
|
|
111
|
+
* A member that is no object is what a conditional leaves in a JavaScript call
|
|
112
|
+
* (`fallbackProvider(licensed, extra ?? undefined)`), and it is refused by its position.
|
|
113
|
+
*
|
|
114
|
+
* @throws {MountayaElementsError} When a member of the chain is no object, with its position in
|
|
115
|
+
* the message, or when a later provider differs from the first in `paint`, in `viewBox`, or in
|
|
116
|
+
* `strokeWidth` under `"stroke"`, with both sets and both values in the message.
|
|
117
|
+
*/
|
|
118
|
+
declare const fallbackProvider: (primary: IconProvider, ...rest: readonly IconProvider[]) => IconProvider;
|
|
119
|
+
export { fallbackProvider as a, createIconProvider as i, IconProvider as n, IconProviderOptions as r, GlyphPaint as t };
|
|
120
|
+
//# sourceMappingURL=chunk-DWsm3HIW.d.cts.map
|
|
@@ -0,0 +1,120 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Marker glyphs.
|
|
3
|
+
*
|
|
4
|
+
* A marker is a coloured pin with a glyph in it, and the glyph is the one part of this
|
|
5
|
+
* package that is a licensed *asset* rather than code. Mountaya's own studio uses the
|
|
6
|
+
* Nucleo Core family, whose licence does not permit redistributing derived path data, so
|
|
7
|
+
* a published package cannot contain it, and this package does not.
|
|
8
|
+
*
|
|
9
|
+
* Instead the glyph set is a seam. The default is Lucide (ISC, redistributable, bundled),
|
|
10
|
+
* and a consumer who holds a Nucleo licence can supply that set instead and get pixel
|
|
11
|
+
* parity with the studio.
|
|
12
|
+
*
|
|
13
|
+
* The seam carries a **paint mode**, and that field is the reason this is an interface
|
|
14
|
+
* rather than a bare `Record<string, string>`. Nucleo glyphs are filled shapes with no
|
|
15
|
+
* fill of their own, painted by the caller. Lucide glyphs are the opposite: open strokes
|
|
16
|
+
* with `fill="none"`. Applying Nucleo's fill treatment to a Lucide glyph paints nothing
|
|
17
|
+
* at all, and the failure is a blank marker rather than an error: the kind of bug that
|
|
18
|
+
* survives review because nothing throws.
|
|
19
|
+
*/
|
|
20
|
+
/** How the renderer must paint a provider's glyphs to make them visible. */
|
|
21
|
+
type GlyphPaint = "fill" | "stroke";
|
|
22
|
+
/**
|
|
23
|
+
* IconProvider is a glyph set a renderer draws from: the glyphs it carries, and how they are
|
|
24
|
+
* painted. {@link createIconProvider} builds one from a table of markup.
|
|
25
|
+
*/
|
|
26
|
+
interface IconProvider {
|
|
27
|
+
/** Identifies the set in diagnostics and in the sprite image ids. */
|
|
28
|
+
readonly name: string;
|
|
29
|
+
/**
|
|
30
|
+
* Whether the caller paints these glyphs by filling their shapes or by stroking their
|
|
31
|
+
* outlines. Getting this wrong renders nothing, silently.
|
|
32
|
+
*/
|
|
33
|
+
readonly paint: GlyphPaint;
|
|
34
|
+
/** Stroke width in viewBox units. Meaningful only when `paint` is "stroke". */
|
|
35
|
+
readonly strokeWidth: number;
|
|
36
|
+
/** The square viewBox the markup is authored against. */
|
|
37
|
+
readonly viewBox: number;
|
|
38
|
+
/** Whether this set can draw the named glyph. */
|
|
39
|
+
has(glyph: string): boolean;
|
|
40
|
+
/** The inner SVG markup for a glyph, or undefined when the set has no such glyph. */
|
|
41
|
+
markup(glyph: string): string | undefined;
|
|
42
|
+
/** Every glyph name this set can draw, sorted. */
|
|
43
|
+
names(): readonly string[];
|
|
44
|
+
}
|
|
45
|
+
/** IconProviderOptions is the glyph set {@link createIconProvider} builds a provider from. */
|
|
46
|
+
interface IconProviderOptions {
|
|
47
|
+
/** Identifies the set in diagnostics. Never empty. */
|
|
48
|
+
readonly name: string;
|
|
49
|
+
/** Whether a renderer fills the glyphs' shapes or strokes their outlines. */
|
|
50
|
+
readonly paint: GlyphPaint;
|
|
51
|
+
/** The inner SVG markup of each glyph, keyed by glyph name. */
|
|
52
|
+
readonly markup: Readonly<Record<string, string>>;
|
|
53
|
+
/**
|
|
54
|
+
* The stroke width, in viewBox units. Read only when `paint` is `"stroke"`.
|
|
55
|
+
*
|
|
56
|
+
* @default 2
|
|
57
|
+
*/
|
|
58
|
+
readonly strokeWidth?: number | undefined;
|
|
59
|
+
/**
|
|
60
|
+
* The side of the square viewBox the markup is drawn in.
|
|
61
|
+
*
|
|
62
|
+
* @default 24
|
|
63
|
+
*/
|
|
64
|
+
readonly viewBox?: number | undefined;
|
|
65
|
+
}
|
|
66
|
+
/**
|
|
67
|
+
* createIconProvider builds a provider from a glyph table.
|
|
68
|
+
*
|
|
69
|
+
* This is how a Nucleo licensee supplies their own set:
|
|
70
|
+
*
|
|
71
|
+
* ```ts
|
|
72
|
+
* import { MARKER_ICON_MARKUP } from "./my-licensed-nucleo-glyphs";
|
|
73
|
+
*
|
|
74
|
+
* const nucleo = createIconProvider({
|
|
75
|
+
* name: "nucleo",
|
|
76
|
+
* paint: "fill",
|
|
77
|
+
* markup: MARKER_ICON_MARKUP,
|
|
78
|
+
* });
|
|
79
|
+
* ```
|
|
80
|
+
*
|
|
81
|
+
* The path data stays in the consumer's own tree, where their licence covers it. Nothing
|
|
82
|
+
* about it enters this package.
|
|
83
|
+
*
|
|
84
|
+
* Every option is read once, here, so a set that cannot be drawn fails where it is declared
|
|
85
|
+
* and never as a blank marker on a map.
|
|
86
|
+
*
|
|
87
|
+
* @throws {MountayaElementsError} When `options` is no object, `name` is empty or no string,
|
|
88
|
+
* `paint` is neither `"fill"` nor `"stroke"`, `markup` is no object of strings, `viewBox` is not
|
|
89
|
+
* a finite number above 0, or `strokeWidth` is not a finite number: above 0 under `"stroke"`,
|
|
90
|
+
* 0 or above under `"fill"`. The message names the option and the value it held.
|
|
91
|
+
*/
|
|
92
|
+
declare const createIconProvider: (options: IconProviderOptions) => IconProvider;
|
|
93
|
+
/**
|
|
94
|
+
* fallbackProvider chains providers, taking each glyph from the first set that has it.
|
|
95
|
+
*
|
|
96
|
+
* The obvious use is a partial licensed set over the bundled one. It is deliberately NOT
|
|
97
|
+
* the default composition, because mixing a fill set with a stroke set inside one map
|
|
98
|
+
* would need per-glyph paint modes, and a marker row where some glyphs are hairlines and
|
|
99
|
+
* others are solid looks like a rendering bug rather than a design.
|
|
100
|
+
*
|
|
101
|
+
* So the paint mode comes from the FIRST provider, and chaining sets whose paint modes
|
|
102
|
+
* differ throws rather than producing that. Chain within a paint mode; switch sets
|
|
103
|
+
* wholesale across one.
|
|
104
|
+
*
|
|
105
|
+
* The viewBox and the stroke width come from the first provider too, and every glyph of the
|
|
106
|
+
* chain is drawn with them. A set drawn on another grid would be placed at the wrong scale, and
|
|
107
|
+
* a stroke set drawn for another width at the wrong weight, so each of those chains throws as
|
|
108
|
+
* well. A fill set's stroke width is never read, and is never compared.
|
|
109
|
+
*
|
|
110
|
+
* Every member is read once, here, so a chain that cannot be drawn fails where it is declared.
|
|
111
|
+
* A member that is no object is what a conditional leaves in a JavaScript call
|
|
112
|
+
* (`fallbackProvider(licensed, extra ?? undefined)`), and it is refused by its position.
|
|
113
|
+
*
|
|
114
|
+
* @throws {MountayaElementsError} When a member of the chain is no object, with its position in
|
|
115
|
+
* the message, or when a later provider differs from the first in `paint`, in `viewBox`, or in
|
|
116
|
+
* `strokeWidth` under `"stroke"`, with both sets and both values in the message.
|
|
117
|
+
*/
|
|
118
|
+
declare const fallbackProvider: (primary: IconProvider, ...rest: readonly IconProvider[]) => IconProvider;
|
|
119
|
+
export { fallbackProvider as a, createIconProvider as i, IconProvider as n, IconProviderOptions as r, GlyphPaint as t };
|
|
120
|
+
//# sourceMappingURL=chunk-DWsm3HIW.d.ts.map
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
const require_conversions = require("./chunk-BBikve0Z.cjs");
|
|
3
|
+
const worldX = (longitude) => longitude / 360 + .5;
|
|
4
|
+
const worldY = (latitude) => .5 - Math.atanh(Math.sin(latitude * require_conversions.DEGREES_TO_RADIANS)) / (2 * Math.PI);
|
|
5
|
+
const latitudeAt = (y) => Math.asin(Math.tanh(Math.PI * (1 - 2 * y))) * require_conversions.RADIANS_TO_DEGREES;
|
|
6
|
+
const cameraForBounds = (bounds, options) => {
|
|
7
|
+
const [west, south, east, north] = bounds;
|
|
8
|
+
const { padding = 0, window } = options;
|
|
9
|
+
const { bottom, left, right, top } = typeof padding === "number" ? {
|
|
10
|
+
bottom: padding,
|
|
11
|
+
left: padding,
|
|
12
|
+
right: padding,
|
|
13
|
+
top: padding
|
|
14
|
+
} : padding;
|
|
15
|
+
const [width, height] = options.canvas;
|
|
16
|
+
const roomX = width - left - right;
|
|
17
|
+
const roomY = height - top - bottom;
|
|
18
|
+
if (!(roomX > 0 && roomY > 0)) return null;
|
|
19
|
+
const x0 = worldX(west);
|
|
20
|
+
const x1 = worldX(east);
|
|
21
|
+
const y0 = worldY(north);
|
|
22
|
+
const y1 = worldY(south);
|
|
23
|
+
const fits = Math.log2(Math.min(roomX / (x1 - x0), roomY / (y1 - y0)) / 512);
|
|
24
|
+
const ceiling = Math.min(options.maxZoom ?? window.max, window.max);
|
|
25
|
+
const zoom = Math.max(Math.min(fits, ceiling), window.min);
|
|
26
|
+
const worldPixels = 512 * 2 ** zoom;
|
|
27
|
+
const x = (x0 + x1) / 2 - (left - right) / 2 / worldPixels;
|
|
28
|
+
const y = (y0 + y1) / 2 - (top - bottom) / 2 / worldPixels;
|
|
29
|
+
return {
|
|
30
|
+
bearing: 0,
|
|
31
|
+
center: [(x - .5) * 360, latitudeAt(y)],
|
|
32
|
+
zoom
|
|
33
|
+
};
|
|
34
|
+
};
|
|
35
|
+
Object.defineProperty(exports, "cameraForBounds", {
|
|
36
|
+
enumerable: true,
|
|
37
|
+
get: function() {
|
|
38
|
+
return cameraForBounds;
|
|
39
|
+
}
|
|
40
|
+
});
|
|
41
|
+
|
|
42
|
+
//# sourceMappingURL=chunk-D_BeqSbc.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"chunk-D_BeqSbc.cjs","names":["DEGREES_TO_RADIANS","RADIANS_TO_DEGREES"],"sources":["../src/camera/rules/fit.ts"],"mappings":";;AAsDA,MAAM,UAAU,cAA8B,YAAA,MAA+B;AAG7E,MAAM,UAAU,aACd,KAAM,KAAK,MAAM,KAAK,IAAI,WAAWA,oBAAAA,kBAAkB,CAAC,KAAK,IAAI,KAAK;AAGxE,MAAM,cAAc,MAClB,KAAK,KAAK,KAAK,KAAK,KAAK,MAAM,IAAI,IAAI,EAAE,CAAC,IAAIC,oBAAAA;AAgChD,MAAa,mBACX,QACA,YACwB;CACxB,MAAM,CAAC,MAAM,OAAO,MAAM,SAAS;CACnC,MAAM,EAAE,UAAU,GAAG,WAAW;CAChC,MAAM,EAAE,QAAQ,MAAM,OAAO,QAC3B,OAAO,YAAY,WACf;EAAE,QAAQ;EAAS,MAAM;EAAS,OAAO;EAAS,KAAK;CAAQ,IAC/D;CACN,MAAM,CAAC,OAAO,UAAU,QAAQ;CAChC,MAAM,QAAQ,QAAQ,OAAO;CAC7B,MAAM,QAAQ,SAAS,MAAM;CAC7B,IAAI,EAAE,QAAQ,KAAK,QAAQ,IACzB,OAAO;CAIT,MAAM,KAAK,OAAO,IAAI;CACtB,MAAM,KAAK,OAAO,IAAI;CACtB,MAAM,KAAK,OAAO,KAAK;CACvB,MAAM,KAAK,OAAO,KAAK;CACvB,MAAM,OAAO,KAAK,KAAK,KAAK,IAAI,SAAS,KAAK,KAAK,SAAS,KAAK,GAAG,IAAA,GAAgB;CACpF,MAAM,UAAU,KAAK,IAAI,QAAQ,WAAW,OAAO,KAAK,OAAO,GAAG;CAClE,MAAM,OAAO,KAAK,IAAI,KAAK,IAAI,MAAM,OAAO,GAAG,OAAO,GAAG;CAIzD,MAAM,cAAA,MAA6B,KAAK;CACxC,MAAM,KAAK,KAAK,MAAM,KAAK,OAAO,SAAS,IAAI;CAC/C,MAAM,KAAK,KAAK,MAAM,KAAK,MAAM,UAAU,IAAI;CAE/C,OAAO;EACL,SAAS;EACT,QAAQ,EAAE,IAAI,MAAA,KAAyB,WAAW,CAAC,CAAC;EACpD;CACF;AACF"}
|
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
import "./chunk-CL92KE3j.js";
|
|
2
|
+
import { Map } from "maplibre-gl";
|
|
3
|
+
/**
|
|
4
|
+
* CURSOR_LOCK_DATA_ATTRIBUTE is the camelCase dataset key the lock writes on the
|
|
5
|
+
* map container, surfacing as the `data-cursor-lock` HTML attribute. CSS targets
|
|
6
|
+
* it (e.g. `[data-cursor-lock] .maplibregl-popup { pointer-events: none }`) so a
|
|
7
|
+
* locked edit cursor can restyle DOM overlays without the lock value leaking into
|
|
8
|
+
* component state. The value held there is the active lock cursor, so a selector
|
|
9
|
+
* can also key off the specific cursor (`[data-cursor-lock="crosshair"]`).
|
|
10
|
+
*/
|
|
11
|
+
declare const CURSOR_LOCK_DATA_ATTRIBUTE = "cursorLock";
|
|
12
|
+
/**
|
|
13
|
+
* EDIT_CROSS_CURSOR is the base cursor a segment edit locks for the whole gesture: a
|
|
14
|
+
* larger-than-standard cross in the accent's default ({@link DEFAULT_ACCENT}), encoded as an
|
|
15
|
+
* inline SVG data URI with a centred hotspot (13,13 of the 26px sprite). It is the editor's
|
|
16
|
+
* "click to add the next point" cursor, locked on edit begin through {@link CursorEngine.lock}
|
|
17
|
+
* and released on edit end. A data URI reads no custom property, so the cross keeps the default
|
|
18
|
+
* whatever accent a host sets. The trailing ", crosshair" is the fallback the browser uses if the
|
|
19
|
+
* SVG cannot load, so the affordance never degrades to the default arrow.
|
|
20
|
+
*/
|
|
21
|
+
declare const EDIT_CROSS_CURSOR: string;
|
|
22
|
+
/**
|
|
23
|
+
* ZONE_CREATE_CURSOR is the base cursor a zone edit locks for the whole drawing gesture: a "+"
|
|
24
|
+
* in the accent's default ({@link DEFAULT_ACCENT}), encoded as an inline SVG data URI with a
|
|
25
|
+
* centred hotspot (13,13 of the 26px sprite). It is the zone editor's "click to draw the zone
|
|
26
|
+
* here" cursor, locked on zone-edit begin by the host that opens the edit, the same way the
|
|
27
|
+
* segment edit's cross is, and released on edit end. It draws shorter strokes than
|
|
28
|
+
* {@link EDIT_CROSS_CURSOR}, so the "+" reads as an "add" affordance distinct from the segment
|
|
29
|
+
* edit's full-bleed cross. The trailing ", copy" is the browser fallback if the SVG cannot load
|
|
30
|
+
* (`copy` reads as "create/add" across platforms).
|
|
31
|
+
*/
|
|
32
|
+
declare const ZONE_CREATE_CURSOR: string;
|
|
33
|
+
/**
|
|
34
|
+
* EDIT_MOVE_CURSOR is the override the segment editor layers over the base cross while the
|
|
35
|
+
* pointer sits on an existing vertex of the editable line: the native "move" cursor (the four-way
|
|
36
|
+
* arrow) cues "click and drag to move this point". The editor pushes it through
|
|
37
|
+
* {@link CursorEngine.pushOverride} on the vertex layer's mouseenter and drops it through
|
|
38
|
+
* {@link CursorEngine.popOverride} on mouseleave, so leaving the vertex reverts to the base cross
|
|
39
|
+
* rather than the OS default. The native keyword reads identically across platforms, so it needs
|
|
40
|
+
* no SVG fallback.
|
|
41
|
+
*/
|
|
42
|
+
declare const EDIT_MOVE_CURSOR = "move";
|
|
43
|
+
/**
|
|
44
|
+
* EDIT_GRAB_CURSOR is the override an editor layers over its base lock while the
|
|
45
|
+
* pointer sits on the draggable INTERIOR of a whole-shape-translatable feature (a
|
|
46
|
+
* zone's fill or freehand line): the native "grab" hand cues "press and drag to
|
|
47
|
+
* move the whole shape". The zone engine pushes it through pushOverride() on the
|
|
48
|
+
* fill/line layer's hover and drops it through popOverride() on leave, so leaving
|
|
49
|
+
* the interior reverts to the base "+" create lock rather than the OS default. It
|
|
50
|
+
* sits at the OVERRIDE tier so it never fights the locked base. The native keyword
|
|
51
|
+
* reads identically across platforms; no SVG fallback is needed. Paired with
|
|
52
|
+
* {@link EDIT_GRABBING_CURSOR} for the active drag.
|
|
53
|
+
*/
|
|
54
|
+
declare const EDIT_GRAB_CURSOR = "grab";
|
|
55
|
+
/**
|
|
56
|
+
* EDIT_GRABBING_CURSOR is the override shown WHILE a whole-shape translate gesture
|
|
57
|
+
* is in flight (the pointer is down and dragging the fill/line interior): the
|
|
58
|
+
* native "grabbing" closed hand, the held-state counterpart of
|
|
59
|
+
* {@link EDIT_GRAB_CURSOR}. The zone engine swaps the grab override for this on the
|
|
60
|
+
* pointer-down over the interior and swaps back on release, so the affordance tracks
|
|
61
|
+
* the gesture the way a desktop drag does. Like grab it rides the OVERRIDE tier
|
|
62
|
+
* above the locked create base and needs no SVG fallback.
|
|
63
|
+
*/
|
|
64
|
+
declare const EDIT_GRABBING_CURSOR = "grabbing";
|
|
65
|
+
export { EDIT_MOVE_CURSOR as a, EDIT_GRAB_CURSOR as i, EDIT_CROSS_CURSOR as n, ZONE_CREATE_CURSOR as o, EDIT_GRABBING_CURSOR as r, CURSOR_LOCK_DATA_ATTRIBUTE as t };
|
|
66
|
+
//# sourceMappingURL=chunk-D_svQNdW.d.ts.map
|