@mountaya/elements 0.0.0-stage → 0.1.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 +235 -0
- package/LICENCE.fr.txt +280 -0
- package/LICENSE.txt +262 -0
- package/README.md +1509 -2
- package/THIRD-PARTY-NOTICES.txt +103 -0
- package/dist/accentColor-GNKBD2CW.js +4 -0
- package/dist/accentColor-GNKBD2CW.js.map +1 -0
- package/dist/accentColor-VX2JSMGE.cjs +17 -0
- package/dist/accentColor-VX2JSMGE.cjs.map +1 -0
- package/dist/agent/index.cjs +1964 -0
- package/dist/agent/index.cjs.map +1 -0
- package/dist/agent/index.d.cts +2016 -0
- package/dist/agent/index.d.ts +2016 -0
- package/dist/agent/index.js +1937 -0
- package/dist/agent/index.js.map +1 -0
- package/dist/amenities-B3-qAjxu.d.cts +160 -0
- package/dist/amenities-B3-qAjxu.d.ts +160 -0
- package/dist/bundle-Je5zsRFg.d.cts +222 -0
- package/dist/bundle-xYrrbJTH.d.ts +222 -0
- package/dist/camera/index.cjs +3477 -0
- package/dist/camera/index.cjs.map +1 -0
- package/dist/camera/index.d.cts +1751 -0
- package/dist/camera/index.d.ts +1751 -0
- package/dist/camera/index.js +3328 -0
- package/dist/camera/index.js.map +1 -0
- package/dist/camera-BrFLU1DH.d.cts +549 -0
- package/dist/camera-C48Ykaxv.d.ts +549 -0
- package/dist/chunk-23PFRRB6.js +3 -0
- package/dist/chunk-23PFRRB6.js.map +1 -0
- package/dist/chunk-2GI5SAH2.js +71 -0
- package/dist/chunk-2GI5SAH2.js.map +1 -0
- package/dist/chunk-2MQK6A74.js +39 -0
- package/dist/chunk-2MQK6A74.js.map +1 -0
- package/dist/chunk-2RE7R4LD.js +73 -0
- package/dist/chunk-2RE7R4LD.js.map +1 -0
- package/dist/chunk-3JZQKN4O.js +6 -0
- package/dist/chunk-3JZQKN4O.js.map +1 -0
- package/dist/chunk-3NDXVUUI.js +50 -0
- package/dist/chunk-3NDXVUUI.js.map +1 -0
- package/dist/chunk-3R4GFTUM.cjs +59 -0
- package/dist/chunk-3R4GFTUM.cjs.map +1 -0
- package/dist/chunk-3RVUQ6JN.cjs +22 -0
- package/dist/chunk-3RVUQ6JN.cjs.map +1 -0
- package/dist/chunk-4F6BJMJC.cjs +49 -0
- package/dist/chunk-4F6BJMJC.cjs.map +1 -0
- package/dist/chunk-4NWQD4BX.js +132 -0
- package/dist/chunk-4NWQD4BX.js.map +1 -0
- package/dist/chunk-5K2MH3R6.js +10 -0
- package/dist/chunk-5K2MH3R6.js.map +1 -0
- package/dist/chunk-6ACRNQQQ.cjs +8 -0
- package/dist/chunk-6ACRNQQQ.cjs.map +1 -0
- package/dist/chunk-6D26E3IA.js +66 -0
- package/dist/chunk-6D26E3IA.js.map +1 -0
- package/dist/chunk-6ESAW35P.cjs +80 -0
- package/dist/chunk-6ESAW35P.cjs.map +1 -0
- package/dist/chunk-6LIW2A5M.cjs +1176 -0
- package/dist/chunk-6LIW2A5M.cjs.map +1 -0
- package/dist/chunk-6OTTWVCA.js +57 -0
- package/dist/chunk-6OTTWVCA.js.map +1 -0
- package/dist/chunk-6VROJ4UG.js +862 -0
- package/dist/chunk-6VROJ4UG.js.map +1 -0
- package/dist/chunk-6Y7FTGO4.js +23 -0
- package/dist/chunk-6Y7FTGO4.js.map +1 -0
- package/dist/chunk-75I4CG64.js +104 -0
- package/dist/chunk-75I4CG64.js.map +1 -0
- package/dist/chunk-7CUBXHAH.cjs +14 -0
- package/dist/chunk-7CUBXHAH.cjs.map +1 -0
- package/dist/chunk-7GTCURVY.js +52 -0
- package/dist/chunk-7GTCURVY.js.map +1 -0
- package/dist/chunk-7IWOL6AM.cjs +100 -0
- package/dist/chunk-7IWOL6AM.cjs.map +1 -0
- package/dist/chunk-7QN7M667.cjs +151 -0
- package/dist/chunk-7QN7M667.cjs.map +1 -0
- package/dist/chunk-A6KQDKLM.cjs +1197 -0
- package/dist/chunk-A6KQDKLM.cjs.map +1 -0
- package/dist/chunk-A77EA67G.js +354 -0
- package/dist/chunk-A77EA67G.js.map +1 -0
- package/dist/chunk-AFKOABJ4.cjs +7194 -0
- package/dist/chunk-AFKOABJ4.cjs.map +1 -0
- package/dist/chunk-AG6JV5Z2.cjs +183 -0
- package/dist/chunk-AG6JV5Z2.cjs.map +1 -0
- package/dist/chunk-APBK7NMS.js +30 -0
- package/dist/chunk-APBK7NMS.js.map +1 -0
- package/dist/chunk-AWO5YA7A.cjs +33 -0
- package/dist/chunk-AWO5YA7A.cjs.map +1 -0
- package/dist/chunk-AZATU6QW.js +108 -0
- package/dist/chunk-AZATU6QW.js.map +1 -0
- package/dist/chunk-BD2U3WST.cjs +623 -0
- package/dist/chunk-BD2U3WST.cjs.map +1 -0
- package/dist/chunk-BHBEOU6L.cjs +65 -0
- package/dist/chunk-BHBEOU6L.cjs.map +1 -0
- package/dist/chunk-CNOSNYNE.js +8 -0
- package/dist/chunk-CNOSNYNE.js.map +1 -0
- package/dist/chunk-CW3EFR4O.js +12 -0
- package/dist/chunk-CW3EFR4O.js.map +1 -0
- package/dist/chunk-DASVRNBK.js +7187 -0
- package/dist/chunk-DASVRNBK.js.map +1 -0
- package/dist/chunk-DJ6LCKYP.js +42 -0
- package/dist/chunk-DJ6LCKYP.js.map +1 -0
- package/dist/chunk-E5FHQAIO.cjs +45 -0
- package/dist/chunk-E5FHQAIO.cjs.map +1 -0
- package/dist/chunk-EOML5OTY.cjs +360 -0
- package/dist/chunk-EOML5OTY.cjs.map +1 -0
- package/dist/chunk-EP5CASHL.js +613 -0
- package/dist/chunk-EP5CASHL.js.map +1 -0
- package/dist/chunk-EP5OEEVZ.cjs +14 -0
- package/dist/chunk-EP5OEEVZ.cjs.map +1 -0
- package/dist/chunk-EUXI3FGQ.js +150 -0
- package/dist/chunk-EUXI3FGQ.js.map +1 -0
- package/dist/chunk-EWFSHCOS.js +40 -0
- package/dist/chunk-EWFSHCOS.js.map +1 -0
- package/dist/chunk-EX2C5K2T.cjs +25 -0
- package/dist/chunk-EX2C5K2T.cjs.map +1 -0
- package/dist/chunk-FEXWDQIZ.cjs +8 -0
- package/dist/chunk-FEXWDQIZ.cjs.map +1 -0
- package/dist/chunk-FEYBFY7H.cjs +358 -0
- package/dist/chunk-FEYBFY7H.cjs.map +1 -0
- package/dist/chunk-FRGAV6N6.cjs +34 -0
- package/dist/chunk-FRGAV6N6.cjs.map +1 -0
- package/dist/chunk-G5DHP5VF.js +6 -0
- package/dist/chunk-G5DHP5VF.js.map +1 -0
- package/dist/chunk-G5W2UHV2.js +99 -0
- package/dist/chunk-G5W2UHV2.js.map +1 -0
- package/dist/chunk-G7OP7O2C.cjs +39 -0
- package/dist/chunk-G7OP7O2C.cjs.map +1 -0
- package/dist/chunk-GE6CFCAM.cjs +25 -0
- package/dist/chunk-GE6CFCAM.cjs.map +1 -0
- package/dist/chunk-GIFALLHI.cjs +111 -0
- package/dist/chunk-GIFALLHI.cjs.map +1 -0
- package/dist/chunk-GLFET5GM.js +129 -0
- package/dist/chunk-GLFET5GM.js.map +1 -0
- package/dist/chunk-GQ6UFPFM.js +22 -0
- package/dist/chunk-GQ6UFPFM.js.map +1 -0
- package/dist/chunk-GQJWVMXS.js +129 -0
- package/dist/chunk-GQJWVMXS.js.map +1 -0
- package/dist/chunk-GVVJPUKC.js +80 -0
- package/dist/chunk-GVVJPUKC.js.map +1 -0
- package/dist/chunk-GZ2HOCQ2.cjs +134 -0
- package/dist/chunk-GZ2HOCQ2.cjs.map +1 -0
- package/dist/chunk-HCBOHXWP.js +37 -0
- package/dist/chunk-HCBOHXWP.js.map +1 -0
- package/dist/chunk-IBQJDVHF.cjs +281 -0
- package/dist/chunk-IBQJDVHF.cjs.map +1 -0
- package/dist/chunk-ISLB6Y5Q.cjs +106 -0
- package/dist/chunk-ISLB6Y5Q.cjs.map +1 -0
- package/dist/chunk-J55CRR4F.js +105 -0
- package/dist/chunk-J55CRR4F.js.map +1 -0
- package/dist/chunk-JBG6Z6MQ.cjs +28 -0
- package/dist/chunk-JBG6Z6MQ.cjs.map +1 -0
- package/dist/chunk-K3RQOZRU.js +61 -0
- package/dist/chunk-K3RQOZRU.js.map +1 -0
- package/dist/chunk-KDJYS4GB.cjs +703 -0
- package/dist/chunk-KDJYS4GB.cjs.map +1 -0
- package/dist/chunk-KMCAHUZM.cjs +4 -0
- package/dist/chunk-KMCAHUZM.cjs.map +1 -0
- package/dist/chunk-KUCBNPC6.js +87 -0
- package/dist/chunk-KUCBNPC6.js.map +1 -0
- package/dist/chunk-KV6UE5A4.js +50 -0
- package/dist/chunk-KV6UE5A4.js.map +1 -0
- package/dist/chunk-L6TZ2HQR.cjs +18 -0
- package/dist/chunk-L6TZ2HQR.cjs.map +1 -0
- package/dist/chunk-L7QHHGG2.cjs +141 -0
- package/dist/chunk-L7QHHGG2.cjs.map +1 -0
- package/dist/chunk-LHK3Y2AL.js +271 -0
- package/dist/chunk-LHK3Y2AL.js.map +1 -0
- package/dist/chunk-LO5RYRBH.cjs +6317 -0
- package/dist/chunk-LO5RYRBH.cjs.map +1 -0
- package/dist/chunk-LS5SJMUO.cjs +194 -0
- package/dist/chunk-LS5SJMUO.cjs.map +1 -0
- package/dist/chunk-LUGTMZFN.cjs +42 -0
- package/dist/chunk-LUGTMZFN.cjs.map +1 -0
- package/dist/chunk-LVUQU6D5.js +32 -0
- package/dist/chunk-LVUQU6D5.js.map +1 -0
- package/dist/chunk-M2QRC2GZ.js +166 -0
- package/dist/chunk-M2QRC2GZ.js.map +1 -0
- package/dist/chunk-M6QJYQIM.cjs +53 -0
- package/dist/chunk-M6QJYQIM.cjs.map +1 -0
- package/dist/chunk-MGCPH5EO.js +12 -0
- package/dist/chunk-MGCPH5EO.js.map +1 -0
- package/dist/chunk-MLVUWEZR.cjs +474 -0
- package/dist/chunk-MLVUWEZR.cjs.map +1 -0
- package/dist/chunk-MTAMJMZL.cjs +707 -0
- package/dist/chunk-MTAMJMZL.cjs.map +1 -0
- package/dist/chunk-MXL5AT3N.js +48 -0
- package/dist/chunk-MXL5AT3N.js.map +1 -0
- package/dist/chunk-MYEQSESM.cjs +75 -0
- package/dist/chunk-MYEQSESM.cjs.map +1 -0
- package/dist/chunk-N3VPF6ZD.js +427 -0
- package/dist/chunk-N3VPF6ZD.js.map +1 -0
- package/dist/chunk-N6VUAIGI.js +7 -0
- package/dist/chunk-N6VUAIGI.js.map +1 -0
- package/dist/chunk-N6XRLUN6.js +6286 -0
- package/dist/chunk-N6XRLUN6.js.map +1 -0
- package/dist/chunk-NOGDOZIT.cjs +114 -0
- package/dist/chunk-NOGDOZIT.cjs.map +1 -0
- package/dist/chunk-NUWXEISH.cjs +10 -0
- package/dist/chunk-NUWXEISH.cjs.map +1 -0
- package/dist/chunk-NZCZHXYN.cjs +161 -0
- package/dist/chunk-NZCZHXYN.cjs.map +1 -0
- package/dist/chunk-ODROSWQX.cjs +53 -0
- package/dist/chunk-ODROSWQX.cjs.map +1 -0
- package/dist/chunk-OE36AYKG.cjs +82 -0
- package/dist/chunk-OE36AYKG.cjs.map +1 -0
- package/dist/chunk-OLON7MO6.cjs +437 -0
- package/dist/chunk-OLON7MO6.cjs.map +1 -0
- package/dist/chunk-PBUOR2IT.js +277 -0
- package/dist/chunk-PBUOR2IT.js.map +1 -0
- package/dist/chunk-PC2ELXFF.cjs +225 -0
- package/dist/chunk-PC2ELXFF.cjs.map +1 -0
- package/dist/chunk-PCSGXLOC.js +71 -0
- package/dist/chunk-PCSGXLOC.js.map +1 -0
- package/dist/chunk-PFNMP6FQ.js +56 -0
- package/dist/chunk-PFNMP6FQ.js.map +1 -0
- package/dist/chunk-PIWSZTIP.js +690 -0
- package/dist/chunk-PIWSZTIP.js.map +1 -0
- package/dist/chunk-PKWHJ2GI.js +136 -0
- package/dist/chunk-PKWHJ2GI.js.map +1 -0
- package/dist/chunk-PLMVBX2A.cjs +76 -0
- package/dist/chunk-PLMVBX2A.cjs.map +1 -0
- package/dist/chunk-PM3XCD2G.cjs +113 -0
- package/dist/chunk-PM3XCD2G.cjs.map +1 -0
- package/dist/chunk-QAL4GZO7.cjs +143 -0
- package/dist/chunk-QAL4GZO7.cjs.map +1 -0
- package/dist/chunk-QDB2SEA2.js +74 -0
- package/dist/chunk-QDB2SEA2.js.map +1 -0
- package/dist/chunk-QOV7UNUN.js +25 -0
- package/dist/chunk-QOV7UNUN.js.map +1 -0
- package/dist/chunk-QQUWYLSF.cjs +50 -0
- package/dist/chunk-QQUWYLSF.cjs.map +1 -0
- package/dist/chunk-QUMBH3U4.cjs +9 -0
- package/dist/chunk-QUMBH3U4.cjs.map +1 -0
- package/dist/chunk-R4KA7OFQ.js +12 -0
- package/dist/chunk-R4KA7OFQ.js.map +1 -0
- package/dist/chunk-RBSGAZQQ.js +17 -0
- package/dist/chunk-RBSGAZQQ.js.map +1 -0
- package/dist/chunk-RM5YJWZI.js +46 -0
- package/dist/chunk-RM5YJWZI.js.map +1 -0
- package/dist/chunk-ROKNKXA4.cjs +8 -0
- package/dist/chunk-ROKNKXA4.cjs.map +1 -0
- package/dist/chunk-RQG6D546.cjs +75 -0
- package/dist/chunk-RQG6D546.cjs.map +1 -0
- package/dist/chunk-SG4YDD5L.cjs +74 -0
- package/dist/chunk-SG4YDD5L.cjs.map +1 -0
- package/dist/chunk-SNRCA7EO.js +56 -0
- package/dist/chunk-SNRCA7EO.js.map +1 -0
- package/dist/chunk-SO75R4WW.cjs +22 -0
- package/dist/chunk-SO75R4WW.cjs.map +1 -0
- package/dist/chunk-SP34NHFI.js +45 -0
- package/dist/chunk-SP34NHFI.js.map +1 -0
- package/dist/chunk-SSKSSBWJ.cjs +179 -0
- package/dist/chunk-SSKSSBWJ.cjs.map +1 -0
- package/dist/chunk-TB5663C2.js +1108 -0
- package/dist/chunk-TB5663C2.js.map +1 -0
- package/dist/chunk-TGH4NRES.js +220 -0
- package/dist/chunk-TGH4NRES.js.map +1 -0
- package/dist/chunk-TJ6ZPNID.js +189 -0
- package/dist/chunk-TJ6ZPNID.js.map +1 -0
- package/dist/chunk-U45T35N2.cjs +90 -0
- package/dist/chunk-U45T35N2.cjs.map +1 -0
- package/dist/chunk-UKVOPEZ2.js +442 -0
- package/dist/chunk-UKVOPEZ2.js.map +1 -0
- package/dist/chunk-UTB4NROA.cjs +887 -0
- package/dist/chunk-UTB4NROA.cjs.map +1 -0
- package/dist/chunk-UTW33B5V.js +6 -0
- package/dist/chunk-UTW33B5V.js.map +1 -0
- package/dist/chunk-UYUBSD2V.cjs +33 -0
- package/dist/chunk-UYUBSD2V.cjs.map +1 -0
- package/dist/chunk-V3JEP5AG.cjs +59 -0
- package/dist/chunk-V3JEP5AG.cjs.map +1 -0
- package/dist/chunk-VFAGJXHR.js +18 -0
- package/dist/chunk-VFAGJXHR.js.map +1 -0
- package/dist/chunk-VMEE57E5.cjs +58 -0
- package/dist/chunk-VMEE57E5.cjs.map +1 -0
- package/dist/chunk-VQVBEX3Y.cjs +113 -0
- package/dist/chunk-VQVBEX3Y.cjs.map +1 -0
- package/dist/chunk-VZDXX7TT.cjs +64 -0
- package/dist/chunk-VZDXX7TT.cjs.map +1 -0
- package/dist/chunk-WE5ZTI4D.js +346 -0
- package/dist/chunk-WE5ZTI4D.js.map +1 -0
- package/dist/chunk-WEFUVABP.js +19 -0
- package/dist/chunk-WEFUVABP.js.map +1 -0
- package/dist/chunk-WMU4LRKC.js +28 -0
- package/dist/chunk-WMU4LRKC.js.map +1 -0
- package/dist/chunk-WQ24RRHL.cjs +354 -0
- package/dist/chunk-WQ24RRHL.cjs.map +1 -0
- package/dist/chunk-WW4CGS7G.cjs +26 -0
- package/dist/chunk-WW4CGS7G.cjs.map +1 -0
- package/dist/chunk-WXE5WCTM.js +1144 -0
- package/dist/chunk-WXE5WCTM.js.map +1 -0
- package/dist/chunk-X23BGIYA.cjs +37 -0
- package/dist/chunk-X23BGIYA.cjs.map +1 -0
- package/dist/chunk-XEW4FTR2.js +98 -0
- package/dist/chunk-XEW4FTR2.js.map +1 -0
- package/dist/chunk-XIOI4IYW.js +167 -0
- package/dist/chunk-XIOI4IYW.js.map +1 -0
- package/dist/chunk-XLVPJ37V.cjs +44 -0
- package/dist/chunk-XLVPJ37V.cjs.map +1 -0
- package/dist/chunk-XOHAXXZA.cjs +51 -0
- package/dist/chunk-XOHAXXZA.cjs.map +1 -0
- package/dist/chunk-Y4NRIHK6.cjs +313 -0
- package/dist/chunk-Y4NRIHK6.cjs.map +1 -0
- package/dist/chunk-Y4YMMKL3.js +23 -0
- package/dist/chunk-Y4YMMKL3.js.map +1 -0
- package/dist/chunk-YJNYBVE3.cjs +14 -0
- package/dist/chunk-YJNYBVE3.cjs.map +1 -0
- package/dist/chunk-Z762QNQP.cjs +60 -0
- package/dist/chunk-Z762QNQP.cjs.map +1 -0
- package/dist/chunk-ZG5KMBOF.js +669 -0
- package/dist/chunk-ZG5KMBOF.js.map +1 -0
- package/dist/chunk-ZKONQEFA.js +344 -0
- package/dist/chunk-ZKONQEFA.js.map +1 -0
- package/dist/chunk-ZR5X7QMH.js +39 -0
- package/dist/chunk-ZR5X7QMH.js.map +1 -0
- package/dist/chunk-ZW4BJQ26.js +84 -0
- package/dist/chunk-ZW4BJQ26.js.map +1 -0
- package/dist/climbs-BhlWuu0x.d.ts +70 -0
- package/dist/climbs-DgBFwySV.d.cts +70 -0
- package/dist/collab/index.cjs +1283 -0
- package/dist/collab/index.cjs.map +1 -0
- package/dist/collab/index.d.cts +850 -0
- package/dist/collab/index.d.ts +850 -0
- package/dist/collab/index.js +1274 -0
- package/dist/collab/index.js.map +1 -0
- package/dist/data/index.cjs +132 -0
- package/dist/data/index.cjs.map +1 -0
- package/dist/data/index.d.cts +468 -0
- package/dist/data/index.d.ts +468 -0
- package/dist/data/index.js +15 -0
- package/dist/data/index.js.map +1 -0
- package/dist/editor/index.cjs +4506 -0
- package/dist/editor/index.cjs.map +1 -0
- package/dist/editor/index.d.cts +59 -0
- package/dist/editor/index.d.ts +59 -0
- package/dist/editor/index.js +4486 -0
- package/dist/editor/index.js.map +1 -0
- package/dist/elevationTiles-pmsb9wnU.d.cts +77 -0
- package/dist/elevationTiles-pmsb9wnU.d.ts +77 -0
- package/dist/errors/index.cjs +28 -0
- package/dist/errors/index.cjs.map +1 -0
- package/dist/errors/index.d.cts +125 -0
- package/dist/errors/index.d.ts +125 -0
- package/dist/errors/index.js +3 -0
- package/dist/errors/index.js.map +1 -0
- package/dist/geo/index.cjs +232 -0
- package/dist/geo/index.cjs.map +1 -0
- package/dist/geo/index.d.cts +821 -0
- package/dist/geo/index.d.ts +821 -0
- package/dist/geo/index.js +15 -0
- package/dist/geo/index.js.map +1 -0
- package/dist/geodesy-543qXKtI.d.cts +78 -0
- package/dist/geodesy-543qXKtI.d.ts +78 -0
- package/dist/geolocation-DDkQdWMN.d.cts +106 -0
- package/dist/geolocation-DDkQdWMN.d.ts +106 -0
- package/dist/i18n/fr/index.cjs +338 -0
- package/dist/i18n/fr/index.cjs.map +1 -0
- package/dist/i18n/fr/index.d.cts +25 -0
- package/dist/i18n/fr/index.d.ts +25 -0
- package/dist/i18n/fr/index.js +336 -0
- package/dist/i18n/fr/index.js.map +1 -0
- package/dist/i18n/index.cjs +464 -0
- package/dist/i18n/index.cjs.map +1 -0
- package/dist/i18n/index.d.cts +227 -0
- package/dist/i18n/index.d.ts +227 -0
- package/dist/i18n/index.js +430 -0
- package/dist/i18n/index.js.map +1 -0
- package/dist/icons/index.cjs +116 -0
- package/dist/icons/index.cjs.map +1 -0
- package/dist/icons/index.d.cts +457 -0
- package/dist/icons/index.d.ts +457 -0
- package/dist/icons/index.js +11 -0
- package/dist/icons/index.js.map +1 -0
- package/dist/index.cjs +1869 -0
- package/dist/index.cjs.map +1 -0
- package/dist/index.d.cts +251 -0
- package/dist/index.d.ts +251 -0
- package/dist/index.js +67 -0
- package/dist/index.js.map +1 -0
- package/dist/itinerary-Dp2ZnqgD.d.cts +178 -0
- package/dist/itinerary-Dp2ZnqgD.d.ts +178 -0
- package/dist/language-CEWQ5uYw.d.cts +69 -0
- package/dist/language-CEWQ5uYw.d.ts +69 -0
- package/dist/layers/index.cjs +318 -0
- package/dist/layers/index.cjs.map +1 -0
- package/dist/layers/index.d.cts +1555 -0
- package/dist/layers/index.d.ts +1555 -0
- package/dist/layers/index.js +17 -0
- package/dist/layers/index.js.map +1 -0
- package/dist/map-client/index.cjs +4 -0
- package/dist/map-client/index.cjs.map +1 -0
- package/dist/map-client/index.d.cts +1856 -0
- package/dist/map-client/index.d.ts +1856 -0
- package/dist/map-client/index.js +3 -0
- package/dist/map-client/index.js.map +1 -0
- package/dist/maplibre-worker.mjs +12 -0
- package/dist/markerSprite-DGBQF6PO.cjs +49 -0
- package/dist/markerSprite-DGBQF6PO.cjs.map +1 -0
- package/dist/markerSprite-DZLTR6F6.js +8 -0
- package/dist/markerSprite-DZLTR6F6.js.map +1 -0
- package/dist/mountayaMap-C9mxRFib.d.cts +3277 -0
- package/dist/mountayaMap-DgnlQ2fE.d.ts +3277 -0
- package/dist/navigation/index.cjs +699 -0
- package/dist/navigation/index.cjs.map +1 -0
- package/dist/navigation/index.d.cts +632 -0
- package/dist/navigation/index.d.ts +632 -0
- package/dist/navigation/index.js +689 -0
- package/dist/navigation/index.js.map +1 -0
- package/dist/order-BLhsGsH8.d.ts +132 -0
- package/dist/order-BZkUwMou.d.cts +132 -0
- package/dist/paint-BgUcj8l7.d.cts +118 -0
- package/dist/paint-Dx_qGNE_.d.ts +118 -0
- package/dist/profile/index.cjs +675 -0
- package/dist/profile/index.cjs.map +1 -0
- package/dist/profile/index.d.cts +2086 -0
- package/dist/profile/index.d.ts +2086 -0
- package/dist/profile/index.js +18 -0
- package/dist/profile/index.js.map +1 -0
- package/dist/provider-DM71XnLX.d.cts +121 -0
- package/dist/provider-DM71XnLX.d.ts +121 -0
- package/dist/roadAccess-D_rOE4xW.d.cts +86 -0
- package/dist/roadAccess-D_rOE4xW.d.ts +86 -0
- package/dist/routeProfile-BKfSfxx6.d.ts +210 -0
- package/dist/routeProfile-BsSUABXv.d.cts +210 -0
- package/dist/seams/index.cjs +39 -0
- package/dist/seams/index.cjs.map +1 -0
- package/dist/seams/index.d.cts +254 -0
- package/dist/seams/index.d.ts +254 -0
- package/dist/seams/index.js +6 -0
- package/dist/seams/index.js.map +1 -0
- package/dist/search/index.cjs +147 -0
- package/dist/search/index.cjs.map +1 -0
- package/dist/search/index.d.cts +888 -0
- package/dist/search/index.d.ts +888 -0
- package/dist/search/index.js +14 -0
- package/dist/search/index.js.map +1 -0
- package/dist/searchHighlight-DFE7LVIL.cjs +33 -0
- package/dist/searchHighlight-DFE7LVIL.cjs.map +1 -0
- package/dist/searchHighlight-MHAQZVWG.js +12 -0
- package/dist/searchHighlight-MHAQZVWG.js.map +1 -0
- package/dist/searchLimits-j99-NTXR.d.cts +24 -0
- package/dist/searchLimits-j99-NTXR.d.ts +24 -0
- package/dist/sections-CVlc2Inr.d.cts +953 -0
- package/dist/sections-CmtaduLc.d.ts +953 -0
- package/dist/segmentRoute-C5UL_5bp.d.ts +172 -0
- package/dist/segmentRoute-CIo6dR8Y.d.cts +172 -0
- package/dist/strings-30RSdIat.d.cts +552 -0
- package/dist/strings-DPTIbzT5.d.ts +552 -0
- package/dist/stripeImage-CQUXM2YI.js +14 -0
- package/dist/stripeImage-CQUXM2YI.js.map +1 -0
- package/dist/stripeImage-R43OPA6U.cjs +39 -0
- package/dist/stripeImage-R43OPA6U.cjs.map +1 -0
- package/dist/style/index.cjs +116 -0
- package/dist/style/index.cjs.map +1 -0
- package/dist/style/index.d.cts +538 -0
- package/dist/style/index.d.ts +538 -0
- package/dist/style/index.js +11 -0
- package/dist/style/index.js.map +1 -0
- package/dist/styles.css +11 -0
- package/dist/testing/index.cjs +629 -0
- package/dist/testing/index.cjs.map +1 -0
- package/dist/testing/index.d.cts +265 -0
- package/dist/testing/index.d.ts +265 -0
- package/dist/testing/index.js +623 -0
- package/dist/testing/index.js.map +1 -0
- package/dist/timezone/index.cjs +759 -0
- package/dist/timezone/index.cjs.map +1 -0
- package/dist/timezone/index.d.cts +53 -0
- package/dist/timezone/index.d.ts +53 -0
- package/dist/timezone/index.js +757 -0
- package/dist/timezone/index.js.map +1 -0
- package/dist/types-B034JMjl.d.ts +973 -0
- package/dist/types-B2NDLxQA.d.cts +21 -0
- package/dist/types-B2NDLxQA.d.ts +21 -0
- package/dist/types-BEv8V_8V.d.cts +55 -0
- package/dist/types-BEv8V_8V.d.ts +55 -0
- package/dist/types-C8aX5KMU.d.cts +973 -0
- package/dist/types-CTQwbSdA.d.cts +321 -0
- package/dist/types-nO2joeRk.d.ts +321 -0
- package/dist/units/index.cjs +99 -0
- package/dist/units/index.cjs.map +1 -0
- package/dist/units/index.d.cts +75 -0
- package/dist/units/index.d.ts +75 -0
- package/dist/units/index.js +6 -0
- package/dist/units/index.js.map +1 -0
- package/dist/units-D9mBrusY.d.cts +900 -0
- package/dist/units-D9mBrusY.d.ts +900 -0
- package/dist/video/index.cjs +2198 -0
- package/dist/video/index.cjs.map +1 -0
- package/dist/video/index.d.cts +873 -0
- package/dist/video/index.d.ts +873 -0
- package/dist/video/index.js +2173 -0
- package/dist/video/index.js.map +1 -0
- package/dist/videoOverlay-Dh_D5_Zs.d.cts +44 -0
- package/dist/videoOverlay-Dh_D5_Zs.d.ts +44 -0
- package/dist/view/index.cjs +43 -0
- package/dist/view/index.cjs.map +1 -0
- package/dist/view/index.d.cts +836 -0
- package/dist/view/index.d.ts +836 -0
- package/dist/view/index.js +34 -0
- package/dist/view/index.js.map +1 -0
- package/dist/zones-B05QA8fy.d.cts +75 -0
- package/dist/zones-B05QA8fy.d.ts +75 -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 +1023 -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 +104 -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 +56 -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 +5674 -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 +166 -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 +566 -0
- package/src/compose/rules/urlHash.ts +19 -0
- package/src/compose/rules/viewOptions.ts +451 -0
- package/src/compose/rules/workerUrl.ts +96 -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 +286 -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 +4083 -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 +125 -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 +157 -0
- package/src/errors/rules/print.ts +129 -0
- package/src/geo/index.ts +94 -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 +81 -0
- package/src/i18n/rules/bundle.ts +378 -0
- package/src/i18n/rules/config.ts +71 -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 +1012 -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 +1943 -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 +650 -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 +593 -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 +114 -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 +212 -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,348 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* The control glyph vocabulary.
|
|
3
|
+
*
|
|
4
|
+
* Every glyph a Mountaya control draws, named by the ROLE it plays rather than by the shape
|
|
5
|
+
* it happens to have. `zoom-in` rather than `plus`, because the role is what stays fixed
|
|
6
|
+
* when a glyph set is swapped: a licensee keying their table `plus` would have to know
|
|
7
|
+
* which control happens to use a plus today, and would be wrong the moment one changes.
|
|
8
|
+
*
|
|
9
|
+
* This list is the contract between `@mountaya/elements-react`'s controls and whoever supplies
|
|
10
|
+
* their glyphs. A control asking for a name that is not here has no fallback, so the list
|
|
11
|
+
* is exported and covered by a test rather than left implicit in the generated table.
|
|
12
|
+
*/
|
|
13
|
+
|
|
14
|
+
export const UI_GLYPHS = [
|
|
15
|
+
// The contextual-menu ACTION vocabulary, prefixed so it reads as one family.
|
|
16
|
+
//
|
|
17
|
+
// A menu action is a role in the strongest sense the rest of this list means: `action-merge`
|
|
18
|
+
// is "fold this into its neighbour", and every surface that offers it (a row menu, a seam
|
|
19
|
+
// between two rows, a keyboard shortcut sheet) must draw the same thing. Naming them by
|
|
20
|
+
// action rather than by shape is what lets a licensee key their table once and have every
|
|
21
|
+
// menu agree, and what lets the glyph change without a single call site moving.
|
|
22
|
+
"action-delete",
|
|
23
|
+
"action-edit",
|
|
24
|
+
"action-engine",
|
|
25
|
+
"action-export",
|
|
26
|
+
"action-group",
|
|
27
|
+
"action-insert",
|
|
28
|
+
"action-insert-after",
|
|
29
|
+
"action-insert-before",
|
|
30
|
+
"action-merge",
|
|
31
|
+
"action-merge-next",
|
|
32
|
+
"action-merge-previous",
|
|
33
|
+
// Repositioning an entity by pointing at where it should go. Named for the ACT rather
|
|
34
|
+
// than for the four-way arrow it draws, so a set whose move glyph is a hand keys it once.
|
|
35
|
+
"action-move",
|
|
36
|
+
"action-rename",
|
|
37
|
+
"action-add",
|
|
38
|
+
"action-set-speed",
|
|
39
|
+
"action-split",
|
|
40
|
+
"action-split-merge",
|
|
41
|
+
// The rest of the menu and button verbs the studio's surfaces draw. Each names the ACT and
|
|
42
|
+
// not the drawing, so several of them resolve to one shape in any given set and stay free
|
|
43
|
+
// to diverge: a set drawing `action-retry`, `route-loop` and `shot-orbit` with one clockwise
|
|
44
|
+
// arrow can give the orbit its own mark without a call site moving.
|
|
45
|
+
//
|
|
46
|
+
// `action-add-poi` and `action-add-waypoint` are the two halves of one button: the map's
|
|
47
|
+
// context menu drops a plain point where there is nothing under the cursor, and adopts
|
|
48
|
+
// the place that IS under it where there is one. They differ by what the click captures,
|
|
49
|
+
// which is why they are two roles rather than one with a variant.
|
|
50
|
+
"action-add-poi",
|
|
51
|
+
"action-add-waypoint",
|
|
52
|
+
// Freezing the camera a viewer opens on, from wherever the author has it now.
|
|
53
|
+
"action-capture-view",
|
|
54
|
+
// Opening the settings for the thing this row IS, as opposed to `preferences`, which is
|
|
55
|
+
// the application's own.
|
|
56
|
+
"action-configure",
|
|
57
|
+
"action-copy",
|
|
58
|
+
"action-duplicate",
|
|
59
|
+
"action-embed",
|
|
60
|
+
"action-disable-link",
|
|
61
|
+
// Authoring a shape by hand, as a choice offered before anything is drawn. Distinct from
|
|
62
|
+
// `freehand`, which labels a line that ALREADY was.
|
|
63
|
+
"action-draw",
|
|
64
|
+
// Arming the next map click to answer a coordinate field.
|
|
65
|
+
"action-publish",
|
|
66
|
+
"action-pick-point",
|
|
67
|
+
// Making a route pass through the same point twice.
|
|
68
|
+
"action-repeat-via",
|
|
69
|
+
"action-reset",
|
|
70
|
+
"action-retry",
|
|
71
|
+
// Issuing a replacement share link, which revokes the one before it.
|
|
72
|
+
"action-rotate-link",
|
|
73
|
+
"action-send",
|
|
74
|
+
"action-stop",
|
|
75
|
+
// Opening the street-level panorama for a point. Its own role rather than `streetview`,
|
|
76
|
+
// which is the draggable figure a reader positions: the two are the same destination
|
|
77
|
+
// reached two ways, and a set is free to key them alike.
|
|
78
|
+
"action-streetview",
|
|
79
|
+
"action-ungroup",
|
|
80
|
+
|
|
81
|
+
// The upward trend arrow that captions an elevation gain. Named for what it MEANS beside a
|
|
82
|
+
// number rather than for the arrow it draws, so a set whose ascent glyph is a mountain
|
|
83
|
+
// rather than a trend line keys it here and every readout follows.
|
|
84
|
+
"ascent",
|
|
85
|
+
// Its twin, for the meters a leg gives back. Both roles exist because a chip stating a gain
|
|
86
|
+
// and a loss side by side needs the reader to tell them apart at eleven pixels, where a sign
|
|
87
|
+
// in front of the number does not survive.
|
|
88
|
+
"descent",
|
|
89
|
+
"check",
|
|
90
|
+
"chevron-down",
|
|
91
|
+
"chevron-right",
|
|
92
|
+
"chevron-up",
|
|
93
|
+
"back",
|
|
94
|
+
"close",
|
|
95
|
+
"menu",
|
|
96
|
+
"scope-organization",
|
|
97
|
+
"scope-personal",
|
|
98
|
+
"compass",
|
|
99
|
+
"directions",
|
|
100
|
+
"download",
|
|
101
|
+
// The three severities an alert wears: `info` and `warning` qualify an action, and `error`
|
|
102
|
+
// reports one failing. The set is complete on purpose: a severity vocabulary missing its
|
|
103
|
+
// worst level makes the consumer choose a substitute, and every consumer chooses a
|
|
104
|
+
// different one.
|
|
105
|
+
"error",
|
|
106
|
+
"folder",
|
|
107
|
+
"freehand",
|
|
108
|
+
"geolocate",
|
|
109
|
+
// The reference material a surface can send its reader to. Named for what the link OFFERS
|
|
110
|
+
// rather than for the book it draws, so a set whose guide glyph is a question mark keys it
|
|
111
|
+
// once and every "how does this work" affordance follows.
|
|
112
|
+
"guide",
|
|
113
|
+
"info",
|
|
114
|
+
"itinerary",
|
|
115
|
+
"layers",
|
|
116
|
+
"locked",
|
|
117
|
+
"more",
|
|
118
|
+
"pin",
|
|
119
|
+
"pin-filled",
|
|
120
|
+
"preferences",
|
|
121
|
+
"routed",
|
|
122
|
+
"search",
|
|
123
|
+
"search-empty",
|
|
124
|
+
"streetview",
|
|
125
|
+
"warning",
|
|
126
|
+
"zoom-in",
|
|
127
|
+
"zoom-out",
|
|
128
|
+
"zone",
|
|
129
|
+
|
|
130
|
+
// The outcomes a settled step can wear that `error` above does not already cover, read
|
|
131
|
+
// together with it: a reader tells a success from a failure by the mark before the colour,
|
|
132
|
+
// and a status missing its glyph falls back to whichever neighbour a call site reached for,
|
|
133
|
+
// which reports a failure looking exactly like a success.
|
|
134
|
+
//
|
|
135
|
+
// `rejected` is a refusal to take something (a dropped file in the wrong format), and is
|
|
136
|
+
// neither `close`, which dismisses a surface, nor `error`, which reports one failing.
|
|
137
|
+
// `skipped` is the one easiest to leave out and the one that matters most: a step that
|
|
138
|
+
// never ran is not a failure, and drawing it as one makes a declined tool call read as a
|
|
139
|
+
// broken product.
|
|
140
|
+
"rejected",
|
|
141
|
+
"skipped",
|
|
142
|
+
"success",
|
|
143
|
+
|
|
144
|
+
// The assistant, wherever it appears: the entry affordance, the panel header, the badge on
|
|
145
|
+
// a row it is touching, the card that offers it. One role because a reader has to
|
|
146
|
+
// recognise the same thing in all four.
|
|
147
|
+
"agent",
|
|
148
|
+
// Aborting the assistant's turn mid-stream. Separate from `action-stop` because the two
|
|
149
|
+
// are drawn on different surfaces at different weights (a composer button and a menu
|
|
150
|
+
// item), and a set that keys them alike simply repeats a glyph.
|
|
151
|
+
"agent-stop",
|
|
152
|
+
"api-key",
|
|
153
|
+
// The two verdicts a reader can give a generated answer.
|
|
154
|
+
"feedback-negative",
|
|
155
|
+
"feedback-positive",
|
|
156
|
+
// Leaving the application. Named for what the link DOES rather than for the arrow it
|
|
157
|
+
// draws, so a set marking it with a superscript keys it once.
|
|
158
|
+
"external-link",
|
|
159
|
+
|
|
160
|
+
// The `datum-*` family: a glyph that captions a MEASURED VALUE rather than an action.
|
|
161
|
+
//
|
|
162
|
+
// They are a family because they share a failure. A readout strip is a row of numbers,
|
|
163
|
+
// and at the size those are drawn the glyph is what tells a reader which number is which,
|
|
164
|
+
// so a datum whose glyph is missing does not read as "no icon", it reads as the number
|
|
165
|
+
// beside it. Naming them for the quantity rather than for the picture is what lets a set
|
|
166
|
+
// draw altitude as a contour line instead of a mountain and stay correct.
|
|
167
|
+
//
|
|
168
|
+
// Several resolve to the same shape as an action role in any one set (`datum-speed` and
|
|
169
|
+
// `action-set-speed` are both a gauge in ours), and that is the point of keeping them
|
|
170
|
+
// apart: one captions a reading, the other changes it.
|
|
171
|
+
"datum-aspect",
|
|
172
|
+
"datum-difficulty",
|
|
173
|
+
"datum-distance",
|
|
174
|
+
"datum-duration",
|
|
175
|
+
"datum-elevation",
|
|
176
|
+
// The fallback caption, for a reading a surface can display but has no glyph for. The one
|
|
177
|
+
// member of this family that names no quantity, and it is deliberate: a weather overlay
|
|
178
|
+
// can carry a variable this vocabulary has never heard of, and a blank cell is worse than
|
|
179
|
+
// a generic dial.
|
|
180
|
+
"datum-generic",
|
|
181
|
+
"datum-humidity",
|
|
182
|
+
"datum-slope",
|
|
183
|
+
"datum-snow-depth",
|
|
184
|
+
"datum-snowfall",
|
|
185
|
+
"datum-speed",
|
|
186
|
+
// What the ground underfoot is made of, as opposed to `layers`, which is the map's own
|
|
187
|
+
// stack of them.
|
|
188
|
+
"datum-surface",
|
|
189
|
+
"datum-temperature",
|
|
190
|
+
"datum-visibility",
|
|
191
|
+
// What kind of way a leg follows: a path, a track, a road.
|
|
192
|
+
"datum-waytype",
|
|
193
|
+
"datum-wind",
|
|
194
|
+
|
|
195
|
+
// The `format-*` family: the file an export produces.
|
|
196
|
+
//
|
|
197
|
+
// Named for the format rather than for the picture, because the picture is a metaphor
|
|
198
|
+
// that does not travel: ours draws GPX as a satellite and FIT as a watch, which is
|
|
199
|
+
// legible here and would be nonsense in a product whose users know those formats from
|
|
200
|
+
// somewhere else. A set keys the names and chooses its own metaphors.
|
|
201
|
+
"format-csv",
|
|
202
|
+
"format-fit",
|
|
203
|
+
"format-geojson",
|
|
204
|
+
"format-gpx",
|
|
205
|
+
"format-kml",
|
|
206
|
+
"format-kmz",
|
|
207
|
+
"format-tcx",
|
|
208
|
+
|
|
209
|
+
// The `camera-mode-*` family: how a fly-through follows a route.
|
|
210
|
+
//
|
|
211
|
+
// Keyed by the published camera-mode vocabulary rather than by the drawings, so the family
|
|
212
|
+
// stays complete as a set. `camera-mode-director` and `camera-mode-smart` draw the same
|
|
213
|
+
// marks as `agent` and `suggest` in our set and are still their own roles, because a
|
|
214
|
+
// consumer restyling the card grid should not have to restyle the assistant with it.
|
|
215
|
+
"camera-mode-chase",
|
|
216
|
+
"camera-mode-cinematic",
|
|
217
|
+
"camera-mode-director",
|
|
218
|
+
"camera-mode-drone",
|
|
219
|
+
"camera-mode-helicopter",
|
|
220
|
+
"camera-mode-overview",
|
|
221
|
+
"camera-mode-smart",
|
|
222
|
+
|
|
223
|
+
// The `frame-*` family: the shape of the frame a video is rendered into.
|
|
224
|
+
"frame-custom",
|
|
225
|
+
"frame-square",
|
|
226
|
+
"frame-vertical",
|
|
227
|
+
"frame-widescreen",
|
|
228
|
+
// The `media-*` family: transport controls over a preview.
|
|
229
|
+
"media-loop",
|
|
230
|
+
"media-pause",
|
|
231
|
+
"media-play",
|
|
232
|
+
"media-stop",
|
|
233
|
+
// The two things a shot can be beyond a move: a pause on the spot, and a turn around it.
|
|
234
|
+
"shot-hold",
|
|
235
|
+
"shot-orbit",
|
|
236
|
+
// The `profile-*` family: how an elevation profile is drawn over a frame.
|
|
237
|
+
"profile-graph",
|
|
238
|
+
"profile-minimal",
|
|
239
|
+
"profile-strip",
|
|
240
|
+
// Rendering the video itself, on the button that starts it.
|
|
241
|
+
"video",
|
|
242
|
+
|
|
243
|
+
// The sections an embed's configuration is grouped into. They are roles rather than
|
|
244
|
+
// decoration: a collapsed accordion is read by its headers alone, so the glyph is half of
|
|
245
|
+
// what a reader has to find the section by.
|
|
246
|
+
"appearance",
|
|
247
|
+
"controls",
|
|
248
|
+
"default-view",
|
|
249
|
+
"profile",
|
|
250
|
+
// Light and dark, on the cards that choose between them.
|
|
251
|
+
"theme-dark",
|
|
252
|
+
"theme-light",
|
|
253
|
+
|
|
254
|
+
// The `zone-mode-*` family: the primitive a zone's geometry is authored as. Keyed by the
|
|
255
|
+
// published mode vocabulary so the set stays complete, and named for the primitive rather
|
|
256
|
+
// than the drawing: a sector is an angular wedge whether a set draws it as a pie slice or
|
|
257
|
+
// as a pair of bearings.
|
|
258
|
+
"zone-mode-circle",
|
|
259
|
+
"zone-mode-freehand",
|
|
260
|
+
"zone-mode-polygon",
|
|
261
|
+
"zone-mode-sector",
|
|
262
|
+
"zone-mode-sensor",
|
|
263
|
+
// How far a given activity can get from a point inside a budget. One role because the idea
|
|
264
|
+
// appears in two places a reader moves between in a single gesture (the map menu that
|
|
265
|
+
// offers it, and the panel it lands on), and two glyphs there would read as two ideas.
|
|
266
|
+
"reachability",
|
|
267
|
+
// The stretch of time something is in force, beside the dates that state it.
|
|
268
|
+
"time-window",
|
|
269
|
+
|
|
270
|
+
// Creating and renaming a collection. Their own roles rather than `action-add` and
|
|
271
|
+
// `action-rename` beside a `folder`, because both are single glyphs in the sets that draw
|
|
272
|
+
// them and composing two would not survive at the size a card header uses.
|
|
273
|
+
"collection-edit",
|
|
274
|
+
"collection-new",
|
|
275
|
+
|
|
276
|
+
// Sharing, and the destinations a share row offers.
|
|
277
|
+
//
|
|
278
|
+
// The networks are roles like every other name here, and naming them is what lets their
|
|
279
|
+
// artwork arrive through the provider seam: a studio that draws real brand marks holds a
|
|
280
|
+
// licence for them, and a licence to draw a mark is not a licence for a package to
|
|
281
|
+
// redistribute one. The role is the only half that can be published.
|
|
282
|
+
//
|
|
283
|
+
// The bundled set answers every network with the generic share glyph, because Lucide carries
|
|
284
|
+
// no brand marks and an approximation would be worse than a neutral mark: a paper plane for
|
|
285
|
+
// Telegram is a guess AT the trademark rather than a substitute FOR it. Identical marks stay
|
|
286
|
+
// readable because every button in the row is named, which is the property a row of
|
|
287
|
+
// destinations has to keep whichever set draws it.
|
|
288
|
+
"share",
|
|
289
|
+
"share-email",
|
|
290
|
+
"share-facebook",
|
|
291
|
+
"share-linkedin",
|
|
292
|
+
"share-reddit",
|
|
293
|
+
"share-telegram",
|
|
294
|
+
"share-whatsapp",
|
|
295
|
+
"share-x",
|
|
296
|
+
|
|
297
|
+
// Bringing a route in from somewhere else: from a file the reader drops, and from a
|
|
298
|
+
// service they name. Two roles because the affordance differs (one takes a file, the
|
|
299
|
+
// other an identifier), and a reader choosing between them reads the glyph first.
|
|
300
|
+
"import",
|
|
301
|
+
"import-external",
|
|
302
|
+
"upload",
|
|
303
|
+
// The hand-writing mark, for the step where the reader takes over from the machine.
|
|
304
|
+
// Distinct from `action-edit`, which is the verb on a row rather than a stage in a story.
|
|
305
|
+
"authoring",
|
|
306
|
+
// "How does this work": a question mark rather than the `guide`'s book, because they sit
|
|
307
|
+
// side by side. The guide opens reference material, this opens an explanation of the rule
|
|
308
|
+
// in front of you.
|
|
309
|
+
"help",
|
|
310
|
+
|
|
311
|
+
// The things a place can say about itself, on the section headers that group them.
|
|
312
|
+
"amenities",
|
|
313
|
+
"contact",
|
|
314
|
+
"media",
|
|
315
|
+
"properties",
|
|
316
|
+
"timing",
|
|
317
|
+
// A located place, as opposed to `pin`, which is the marker drawn for one. The two are
|
|
318
|
+
// deliberately different: a search result naming a town and a pin dropped on a map are not
|
|
319
|
+
// the same idea, and our set draws them differently.
|
|
320
|
+
"place",
|
|
321
|
+
|
|
322
|
+
// Wayfinding, on the surfaces that offer to find a route for the reader rather than take
|
|
323
|
+
// one they already have.
|
|
324
|
+
"explore",
|
|
325
|
+
// The generated-content mark: a suggestion, a draft the machine seeded, a limit on how
|
|
326
|
+
// many of them are left.
|
|
327
|
+
"suggest",
|
|
328
|
+
|
|
329
|
+
// Public and private, on the control that switches between them. `visibility-private`
|
|
330
|
+
// rather than `locked`: the padlock in this pair states a CHOICE the author made, where
|
|
331
|
+
// `locked` states something the reader may not have, and a set may well want to draw the
|
|
332
|
+
// two differently.
|
|
333
|
+
"visibility-private",
|
|
334
|
+
"visibility-public",
|
|
335
|
+
|
|
336
|
+
// The two shapes a generated route can take.
|
|
337
|
+
"route-loop",
|
|
338
|
+
"route-point-to-point",
|
|
339
|
+
|
|
340
|
+
// The severity above `warning`, for a hazard rather than a caution.
|
|
341
|
+
"danger",
|
|
342
|
+
// The negative half of a capability table: a dash rather than a cross, because an activity
|
|
343
|
+
// that cannot do something is not broken. Paired with `check` for the positive half.
|
|
344
|
+
"unavailable",
|
|
345
|
+
] as const;
|
|
346
|
+
|
|
347
|
+
/** One of the control glyph roles. */
|
|
348
|
+
export type UiGlyph = (typeof UI_GLYPHS)[number];
|
|
@@ -0,0 +1,215 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* The waypoint glyph vocabulary.
|
|
3
|
+
*
|
|
4
|
+
* Every icon an itinerary's waypoints can state, in the wire's own spelling. Unlike the control
|
|
5
|
+
* roles beside it, this list is not ours to choose: it is a closed enum on the API, and
|
|
6
|
+
* `itineraryWaypoints` carries the stated name straight through to `Waypoint.glyph`, so the
|
|
7
|
+
* names here and the names the API emits must be the same set or a pin draws nothing.
|
|
8
|
+
*
|
|
9
|
+
* That equality is a type check at the declaration. The list is the keys of a record the
|
|
10
|
+
* schema's own union keys, so an icon removed from the API fails this file's build on the entry
|
|
11
|
+
* that no longer exists, and an icon added to the API fails it on the key that is missing: it
|
|
12
|
+
* fails here and never as a blank pin in somebody's chart.
|
|
13
|
+
*
|
|
14
|
+
* The bundled marker set answers every one of them. That is what the accompanying test holds,
|
|
15
|
+
* and it is the difference between a profile whose waypoints read as a summit, a refuge and a
|
|
16
|
+
* water point and one that draws the same pin for every place.
|
|
17
|
+
*/
|
|
18
|
+
|
|
19
|
+
import type { RestSchema } from "@mountaya/client";
|
|
20
|
+
|
|
21
|
+
/**
|
|
22
|
+
* waypointGlyphs is every icon the contract lets a waypoint carry, each keyed by itself, in the
|
|
23
|
+
* order {@link WAYPOINT_GLYPHS} lists them.
|
|
24
|
+
*
|
|
25
|
+
* The `satisfies` clause ties it to the generated `WaypointIcon` in both directions: an icon the
|
|
26
|
+
* contract adds leaves a missing key, and one it does not declare is an excess property of the
|
|
27
|
+
* literal, so `tsc` fails at this declaration either way. Each value is typed by its own key, so
|
|
28
|
+
* none can name another icon in place of its own.
|
|
29
|
+
*/
|
|
30
|
+
const waypointGlyphs = {
|
|
31
|
+
"apartment-building": "apartment-building",
|
|
32
|
+
bed: "bed",
|
|
33
|
+
bus: "bus",
|
|
34
|
+
"cable-car": "cable-car",
|
|
35
|
+
"camper-van": "camper-van",
|
|
36
|
+
camping: "camping",
|
|
37
|
+
"charging-station": "charging-station",
|
|
38
|
+
"circle-check": "circle-check",
|
|
39
|
+
"circle-info": "circle-info",
|
|
40
|
+
"circle-warning": "circle-warning",
|
|
41
|
+
climbing: "climbing",
|
|
42
|
+
cutlery: "cutlery",
|
|
43
|
+
droplet: "droplet",
|
|
44
|
+
eye: "eye",
|
|
45
|
+
flag: "flag",
|
|
46
|
+
// The two endpoint glyphs. An itinerary marks where it begins and where it ends, and a
|
|
47
|
+
// reader scanning a curve needs those two to differ from the service points between
|
|
48
|
+
// them, so they are their own names rather than `flag` twice.
|
|
49
|
+
"flag-end": "flag-end",
|
|
50
|
+
"flag-start": "flag-start",
|
|
51
|
+
gate: "gate",
|
|
52
|
+
helicopter: "helicopter",
|
|
53
|
+
hut: "hut",
|
|
54
|
+
ladder: "ladder",
|
|
55
|
+
"map-pin": "map-pin",
|
|
56
|
+
"medical-cross": "medical-cross",
|
|
57
|
+
megaphone: "megaphone",
|
|
58
|
+
"parking-sign": "parking-sign",
|
|
59
|
+
picnic: "picnic",
|
|
60
|
+
shop: "shop",
|
|
61
|
+
shower: "shower",
|
|
62
|
+
signal: "signal",
|
|
63
|
+
toilet: "toilet",
|
|
64
|
+
train: "train",
|
|
65
|
+
trash: "trash",
|
|
66
|
+
trophy: "trophy",
|
|
67
|
+
} as const satisfies { [K in RestSchema.WaypointIcon]: K };
|
|
68
|
+
|
|
69
|
+
/**
|
|
70
|
+
* WAYPOINT_GLYPHS is every icon a waypoint can state, in the wire's own spelling and in the
|
|
71
|
+
* order an icon set is walked.
|
|
72
|
+
*
|
|
73
|
+
* Read off the keys of a record the contract's own type keys, in the order that record is
|
|
74
|
+
* written in, so an icon the contract adds or drops fails to compile at the record.
|
|
75
|
+
*/
|
|
76
|
+
export const WAYPOINT_GLYPHS: readonly WaypointGlyph[] = Object.keys(
|
|
77
|
+
waypointGlyphs,
|
|
78
|
+
) as WaypointGlyph[];
|
|
79
|
+
|
|
80
|
+
/** One of the icons a waypoint can state. */
|
|
81
|
+
export type WaypointGlyph = keyof typeof waypointGlyphs;
|
|
82
|
+
|
|
83
|
+
/** The pin drawn for a waypoint that states no icon, or one no installed set answers. */
|
|
84
|
+
export const WAYPOINT_FALLBACK_GLYPH = "map-pin" satisfies WaypointGlyph;
|
|
85
|
+
|
|
86
|
+
/**
|
|
87
|
+
* EndpointGlyph is the two glyphs an itinerary's own ends are drawn with, which no user claims:
|
|
88
|
+
* the backend emits them at the head and the tail of a segment chain.
|
|
89
|
+
*/
|
|
90
|
+
type EndpointGlyph = "flag-end" | "flag-start";
|
|
91
|
+
|
|
92
|
+
/**
|
|
93
|
+
* userWaypointIcons is every icon a user may claim, each keyed by itself, in the order
|
|
94
|
+
* {@link USER_WAYPOINT_ICONS} lists them.
|
|
95
|
+
*
|
|
96
|
+
* It is keyed by the generated `WaypointIcon` less the two glyphs of {@link EndpointGlyph}, so
|
|
97
|
+
* it is tied to the contract as {@link waypointGlyphs} is: an icon the contract adds leaves a
|
|
98
|
+
* missing key here too, and an endpoint glyph written among them is an excess property.
|
|
99
|
+
*/
|
|
100
|
+
const userWaypointIcons = {
|
|
101
|
+
"apartment-building": "apartment-building",
|
|
102
|
+
bed: "bed",
|
|
103
|
+
bus: "bus",
|
|
104
|
+
"cable-car": "cable-car",
|
|
105
|
+
"camper-van": "camper-van",
|
|
106
|
+
camping: "camping",
|
|
107
|
+
"charging-station": "charging-station",
|
|
108
|
+
"circle-check": "circle-check",
|
|
109
|
+
"circle-info": "circle-info",
|
|
110
|
+
"circle-warning": "circle-warning",
|
|
111
|
+
climbing: "climbing",
|
|
112
|
+
cutlery: "cutlery",
|
|
113
|
+
droplet: "droplet",
|
|
114
|
+
eye: "eye",
|
|
115
|
+
flag: "flag",
|
|
116
|
+
gate: "gate",
|
|
117
|
+
helicopter: "helicopter",
|
|
118
|
+
hut: "hut",
|
|
119
|
+
ladder: "ladder",
|
|
120
|
+
"map-pin": "map-pin",
|
|
121
|
+
"medical-cross": "medical-cross",
|
|
122
|
+
megaphone: "megaphone",
|
|
123
|
+
"parking-sign": "parking-sign",
|
|
124
|
+
picnic: "picnic",
|
|
125
|
+
shop: "shop",
|
|
126
|
+
shower: "shower",
|
|
127
|
+
signal: "signal",
|
|
128
|
+
toilet: "toilet",
|
|
129
|
+
train: "train",
|
|
130
|
+
trash: "trash",
|
|
131
|
+
trophy: "trophy",
|
|
132
|
+
} as const satisfies { [K in Exclude<RestSchema.WaypointIcon, EndpointGlyph>]: K };
|
|
133
|
+
|
|
134
|
+
/**
|
|
135
|
+
* USER_WAYPOINT_ICONS is the subset of {@link WAYPOINT_GLYPHS} a USER may claim, and the list
|
|
136
|
+
* the icon picker walks.
|
|
137
|
+
*
|
|
138
|
+
* `flag-start` and `flag-end` are excluded because they are not a user's to choose: the backend
|
|
139
|
+
* auto-emits them at the head and tail of a segment chain, so a waypoint carrying one would
|
|
140
|
+
* draw as an endpoint it is not. The tool layer rejects the attempt before a write goes out and
|
|
141
|
+
* the backend applies the same rule as defence in depth; this is the third statement of it, the
|
|
142
|
+
* one the picker reads.
|
|
143
|
+
*
|
|
144
|
+
* Written out as a record of its own rather than derived with `.filter()`: a contract that
|
|
145
|
+
* validates an icon reads the members where they are declared, and a filtered list declares
|
|
146
|
+
* none. The relationship to {@link WAYPOINT_GLYPHS} is held by the type that keys the record,
|
|
147
|
+
* in both directions: a glyph added to the wire and forgotten here fails to compile, and so
|
|
148
|
+
* does an entry here that the wire dropped.
|
|
149
|
+
*/
|
|
150
|
+
export const USER_WAYPOINT_ICONS: readonly UserWaypointIcon[] = Object.keys(
|
|
151
|
+
userWaypointIcons,
|
|
152
|
+
) as UserWaypointIcon[];
|
|
153
|
+
|
|
154
|
+
/** UserWaypointIcon is the icon vocabulary a user-supplied waypoint may carry. */
|
|
155
|
+
export type UserWaypointIcon = keyof typeof userWaypointIcons;
|
|
156
|
+
|
|
157
|
+
/**
|
|
158
|
+
* DEFAULT_WAYPOINT_ICON is the initial pin glyph a fresh waypoint carries: the catalog's pin
|
|
159
|
+
* matches the visual the tile-overlay POI markers reference, and is safe across every activity.
|
|
160
|
+
*/
|
|
161
|
+
export const DEFAULT_WAYPOINT_ICON: UserWaypointIcon = "map-pin";
|
|
162
|
+
|
|
163
|
+
/**
|
|
164
|
+
* DEFAULT_WAYPOINT_COLOR is the color a waypoint is drawn in until a POI capture or a manual
|
|
165
|
+
* edit overwrites it. The tile-overlay POI markers default to the same hex when the category
|
|
166
|
+
* contract has no opinion.
|
|
167
|
+
*
|
|
168
|
+
* A raw hex literal rather than a CSS custom property, and that is a constraint rather than a
|
|
169
|
+
* preference: it seeds map paint and a color picker, and MapLibre paint expressions do not
|
|
170
|
+
* resolve CSS variables. Spelled in `var(--…)` it would render as nothing on the map while
|
|
171
|
+
* looking correct in the swatch.
|
|
172
|
+
*/
|
|
173
|
+
export const DEFAULT_WAYPOINT_COLOR = "#3b82f6";
|
|
174
|
+
|
|
175
|
+
/**
|
|
176
|
+
* WaypointIconGroupId names one section of the icon picker. The ids are the
|
|
177
|
+
* question the user is answering when they scan that section: where does this
|
|
178
|
+
* point sit on the itinerary, how do you reach it, where do you sleep, what does it
|
|
179
|
+
* offer, what does it warn you about.
|
|
180
|
+
*/
|
|
181
|
+
export type WaypointIconGroupId = "access" | "facilities" | "markers" | "safety" | "stay";
|
|
182
|
+
|
|
183
|
+
/**
|
|
184
|
+
* WAYPOINT_ICON_GROUPS partitions the user-pickable vocabulary into the sections
|
|
185
|
+
* the picker renders. A flat grid fails past roughly twenty glyphs: the user has to
|
|
186
|
+
* recognise a shape rather than look up a meaning, and a single unlabelled block makes
|
|
187
|
+
* that a scan of the whole set every time.
|
|
188
|
+
*
|
|
189
|
+
* The partition is exhaustive and disjoint over USER_WAYPOINT_ICONS, pinned by a
|
|
190
|
+
* test rather than by the type system (TypeScript cannot express "these arrays
|
|
191
|
+
* union to exactly this set"), so a new icon that lands in no group, or in two,
|
|
192
|
+
* fails the suite instead of quietly disappearing from the picker.
|
|
193
|
+
*/
|
|
194
|
+
export const WAYPOINT_ICON_GROUPS: ReadonlyArray<{
|
|
195
|
+
readonly icons: readonly UserWaypointIcon[];
|
|
196
|
+
readonly id: WaypointIconGroupId;
|
|
197
|
+
}> = [
|
|
198
|
+
{
|
|
199
|
+
icons: ["map-pin", "flag", "circle-info", "circle-check", "megaphone", "trophy", "eye"],
|
|
200
|
+
id: "markers",
|
|
201
|
+
},
|
|
202
|
+
{
|
|
203
|
+
icons: ["parking-sign", "bus", "train", "cable-car", "charging-station", "gate"],
|
|
204
|
+
id: "access",
|
|
205
|
+
},
|
|
206
|
+
{ icons: ["bed", "hut", "apartment-building", "camping", "camper-van"], id: "stay" },
|
|
207
|
+
{
|
|
208
|
+
icons: ["droplet", "cutlery", "shop", "toilet", "shower", "picnic", "trash"],
|
|
209
|
+
id: "facilities",
|
|
210
|
+
},
|
|
211
|
+
{
|
|
212
|
+
icons: ["circle-warning", "medical-cross", "helicopter", "signal", "climbing", "ladder"],
|
|
213
|
+
id: "safety",
|
|
214
|
+
},
|
|
215
|
+
];
|