@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 @@
|
|
|
1
|
+
{"version":3,"sources":["../src/compose/rules/urlHash.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAiBO,IAAM,cAAA,GAAiB,MAC5B,OAAO,UAAA,CAAW,MAAA,KAAW,WAAA,GAAc,EAAA,GAAK,UAAA,CAAW,MAAA,CAAO,QAAA,CAAS,IAAA,CAAK,OAAA,CAAQ,MAAM,EAAE","file":"index.cjs"}
|
package/dist/index.d.cts
ADDED
|
@@ -0,0 +1,251 @@
|
|
|
1
|
+
export { C as CameraConstraints, G as GeometrySlot, L as LayerPatch, a as MapCredential, b as MapEventEngine, c as MapEvents, d as MapLibreOptions, M as MountayaMap, e as MountayaMapOptions, R as RawMap, f as RequestTransform, S as STREETVIEW_COVERAGE_LAYER, g as STREETVIEW_COVERAGE_SOURCE, h as STREETVIEW_COVERAGE_TILES, T as TerrainVariant, i as TransformRequestOptions, j as TransformedRequest, Z as ZOOM_EASE_MS, k as createTransformRequest } from './mountayaMap-C9mxRFib.cjs';
|
|
2
|
+
import { Map } from 'maplibre-gl';
|
|
3
|
+
import * as maplibreGl from 'maplibre-gl';
|
|
4
|
+
export { maplibreGl as maplibregl };
|
|
5
|
+
import { L as LayerRank } from './order-BZkUwMou.cjs';
|
|
6
|
+
export { P as POI_SOURCE_LAYER_NAMES, p as poiSourceLayers, r as rankForTileLayer, t as tileSourceLayerRanks } from './order-BZkUwMou.cjs';
|
|
7
|
+
export { A as AnalysisHandle, h as AnalysisId, B as BoundaryDraft, a as BoundaryEditOptions, C as Camera, i as CameraPose, j as CategoryOverlays, k as CollectionDrawOptions, l as DataActivitySlug, m as DataRangeType, n as DirectionsInput, D as DraftPhase, o as DrawOptions, F as FitBoundsOptions, G as GeocodeInput, I as IsochronesInput, p as ItineraryDrawOptions, L as Layers, M as MarkerOptions, q as MatrixDrawOptions, r as MatrixInput, s as MatrixMetric, t as MountOptions, u as MountayaMapEvent, v as MountayaMapEvents, w as MountedSpecification, O as Overlay, P as PoiCategory, x as PoisInput, Q as QueriedFeature, R as RasterPaint, y as Renderable, z as RouteHazard, E as SearchInput, H as SearchTargetsInput, S as SegmentDraft, b as SegmentEditOptions, c as SegmentViaPromptEvent, J as SuggestionDrawOptions, K as SuggestionsInput, T as Terrain, U as Unsubscribe, W as WaypointDraftSnapshot, d as WaypointEditOptions, e as WaypointEngineDraftChange, f as WaypointPoiCapture, N as WaypointPoiSeed, Z as ZoneDraft, g as ZoneEditOptions, V as ZoomRange } from './types-C8aX5KMU.cjs';
|
|
8
|
+
export { ItineraryResource, ItineraryResourceEngine, ItineraryResourceEngineOptions, SEGMENT_GROUP_ID_PREFIX, SEGMENT_GROUP_MIN_MEMBERS, applySegmentGroups, groupIdForSegment, invalidateItineraryResource, itineraryCharacteristics, itineraryGeometry, itinerarySegments, itineraryWaypoint, itineraryWaypoints, maxOrNull, minOrNull, segmentGeometries, segmentGroupOptionId, segmentIdsForOption, segmentsForSelection, sumOrNull, waypointGeometries, waypointsForSelection } from './data/index.cjs';
|
|
9
|
+
export { d as SEGMENT_EDIT_MODES, S as SegmentEditMode, e as WAYPOINT_EDIT_MODES, W as WaypointEditMode, Z as ZONE_LEVELS, a as ZONE_MODES, b as ZoneLevel, c as ZoneMode } from './zones-B05QA8fy.cjs';
|
|
10
|
+
export { F as FetchItineraryOptions, a as InfoBand, I as ItinerarySegment, c as ItinerarySegmentGroup, d as ItinerarySource, b as ItineraryWaypoint, e as ItineraryWithDetails, R as RouteProfilePoint, f as bandValueAt, g as fetchItinerary, n as nearestRoutePointIndexAt } from './itinerary-Dp2ZnqgD.cjs';
|
|
11
|
+
export { R as ROAD_ACCESS_KINDS, a as RoadAccessKind, r as roadAccessFeatures, b as roadAccessKindOf } from './roadAccess-D_rOE4xW.cjs';
|
|
12
|
+
export { MountayaElementsError, MountayaElementsForbiddenError, MountayaElementsNotFoundError, MountayaElementsRejectionError, errorFrom } from './errors/index.cjs';
|
|
13
|
+
export { AspectCardinal, DIRECTIONS_VIA_COUNTER_THRESHOLD, DIRECTIONS_VIA_MAX, DIRECTIONS_VIA_MIN, EFFECTIVE_MIN_ZOOM_FLOOR, EFFECTIVE_ZOOM_MIN_SPAN, LATITUDE_LIMIT, LONGITUDE_LIMIT, MAX_BOUNDS_MIN_PAD_DEG, MAX_BOUNDS_PAD_FRACTION, SEGMENT_MIN_VIAS, SlopeAspect, TILE_ZOOM_MAX, TILE_ZOOM_MIN, TerrainNeighbours, WEB_MERCATOR_MAX_LAT, ZOOM_BUFFER, ZoomBounds, aspectCardinal, boundaryToBoundingBox, boundingBoxSpanMeters, boundingBoxToBoundary, boundingBoxToPolygon, boundsOf, boundsTuple, boundsWithPixelPadding, buildGeometryCollection, buildSegmentGeometry, distanceToSegmentMeters, effectiveZoomBounds, extractLineStrings, extractLines, extractPoint, extractVias, flattenGeometries, formatLngLat, geometriesEqual, longitudeDelta, maxBoundsLongitudes, metersToRoute, normalizeBoundingBox, paddedMaxBounds, pointTuple, routeLines, segmentLineCoordinates, selectBoundary, slopeAspectFromNeighbours, specificationBounds, viewportBoundsFrom, wrapLongitude, wrapLongitudePastRange } from './geo/index.cjs';
|
|
14
|
+
export { E as ElevationEncoding, a as ElevationSource, b as ElevationTile, T as TerrainReading, d as decodeElevation, e as elevationTilesAt, t as terrainFromElevationTiles } from './elevationTiles-pmsb9wnU.cjs';
|
|
15
|
+
export { E as EARTH_RADIUS_METERS, h as haversineMeters } from './geodesy-543qXKtI.cjs';
|
|
16
|
+
export { S as SEARCH_LIMIT_MAX } from './searchLimits-j99-NTXR.cjs';
|
|
17
|
+
export { B as BoundingBox, F as FitBoundsPadding, L as LngLat, M as MapViewport } from './types-BEv8V_8V.cjs';
|
|
18
|
+
export { ACTIVITY_MARKER_PREFIX, Artwork, DEFAULT_WAYPOINT_COLOR, DEFAULT_WAYPOINT_ICON, GlyphElement, ShapePaint, UI_GLYPHS, USER_WAYPOINT_ICONS, UiGlyph, UserWaypointIcon, WAYPOINT_FALLBACK_GLYPH, WAYPOINT_GLYPHS, WAYPOINT_ICON_GROUPS, WAYPOINT_ICON_PREFIX, WaypointGlyph, WaypointIconGroupId, activityMarkerIcon, allowedAttributes, glyphPaint, lucideIconProvider, lucideUiIconProvider, parseGlyph, placeGlyph, watermarkArtwork, waypointIconImageId } from './icons/index.cjs';
|
|
19
|
+
export { A as AMENITY_GLYPHS, b as AmenityGlyph, c as WAYPOINT_AMENITIES, d as WAYPOINT_AMENITY_GROUPS, e as WAYPOINT_PROPERTY_FORMATS, W as WaypointAmenity, f as WaypointAmenityGroupId, a as WaypointPropertyFormat, g as amenityGlyph } from './amenities-B3-qAjxu.cjs';
|
|
20
|
+
export { G as GlyphPaint, I as IconProvider, a as IconProviderOptions, c as createIconProvider, f as fallbackProvider } from './provider-DM71XnLX.cjs';
|
|
21
|
+
export { DIRECTIONS_LINE_COLOR, ENRICHMENT_CATEGORY_SLUG, HoveredItinerary, ISOCHRONE_FILL_OPACITY, ISOCHRONE_LINE_COLOR, ISOCHRONE_LINE_WIDTH, ISOCHRONE_RAMP, ITINERARY_CASING_COLOR, ITINERARY_CASING_LAYER_SUFFIX, ITINERARY_CASING_OPACITY, ITINERARY_CASING_WIDTH_STOPS, ITINERARY_DASHED_OPACITY, ITINERARY_ENDPOINT_ICONS, ITINERARY_LINE_DASHARRAY, ITINERARY_LINE_SOURCE_LAYER, ITINERARY_LINE_WIDTH_STOPS, ITINERARY_POINT_SOURCE_LAYER, ITINERARY_RESTRICTION_SOURCE_LAYER, LayersPanelCategory, LayersPanelChoice, LayersPanelInput, LayersPanelPress, LayersPanelRow, LayersPanelSection, LayersSelectionEngine, LayersSelectionEngineOptions, LayersSelectionSnapshot, LayersSelectionTarget, MATRIX_LINE_COLOR, MATRIX_LINE_MAX_WIDTH, MATRIX_LINE_MIN_WIDTH, MATRIX_LINE_OPACITY, OverlayKind, PLACE_POINT_COLOR, POIS_OVERLAY_SLUG, POI_RESULT_POINT_COLOR, PaintedLayers, PoiCategoryStyle, PoiPanelRow, PoiPanelRows, PoiPanelRowsInput, RESULT_POINT_RADIUS, RESULT_POINT_STROKE_COLOR, RESULT_POINT_STROKE_WIDTH, ReadoutCategoryLabel, ReadoutEngine, ReadoutEngineOptions, ReadoutInput, ReadoutMeasure, ReadoutOpen, ReadoutReading, ReadoutRow, STREETVIEW_MIN_ZOOM, SUGGESTION_ALTERNATIVE_COLOR, SUGGESTION_ALTERNATIVE_DASHARRAY, SUGGESTION_ALTERNATIVE_OPACITY, SUGGESTION_CHOSEN_COLOR, TIME_WINDOW_FUTURE_HOURS, TIME_WINDOW_PAST_HOURS, TimeSliderReadout, TimeSliderTick, TimeSliderWindow, TimestampedSource, ZONE_DEFAULT_COLOR, ZONE_FILL_SOURCE_LAYER, analysisProps, directionsToGeoJson, findOverlay, hoveredItinerary, isEnrichmentCategory, isItineraryCasingLayer, isochroneColor, isochronesToGeoJson, itineraryLineLayout, layersPanelPress, layersPanelSections, matrixLineWidth, matrixToGeoJson, omtCategoryToPoiEnum, overlayInstant, paintZoomRange, placesToGeoJson, poiCategoryStyles, poiPanelNoteZoom, poiPanelRows, poisToGeoJson, readoutRows, roadAccessIconLayerIdOf, suggestionsToGeoJson, timeSliderReadout, timeSliderRelease, timeSliderTicks, timeSliderWindow, timestampedSources, zoneLevelColors, zoomIntoRange } from './layers/index.cjs';
|
|
22
|
+
export { ASCENT_RAMP_STOPS, AmenityFilter, AmenityStack, AxisLabelBox, BadgeSurface, CURSOR_MARKER_GLYPH, CursorMarkerMap, CursorMarkerPin, CursorMarkerPoint, CurveColor, CurveStop, DEFAULT_AMENITY_STACK_MAX, DEFAULT_READOUT_STATS, DEFAULT_SECTION_CHIP_STATS, DEFAULT_SEGMENT_TABLE_COLUMNS, DEFAULT_STAT_STRIP_STATS, DEFAULT_WAYPOINT_TABLE_COLUMNS, DESCENT_RAMP_STOPS, DistanceTick, EMBED_FIT_BASE_MARGIN, EMBED_PROFILE_ANALYSIS_HEIGHT, EMBED_PROFILE_ANCHOR_INSET, EMBED_PROFILE_CHARACTERISTICS_HEIGHT, EMBED_PROFILE_PANEL_CHROME, EMBED_PROFILE_SECTION_GAP, ElevationDomain, EmbedProfileSections, HIT_SLICES, HitSlice, LegEmphasisMap, PROFILE_BASELINE, PROFILE_BOTTOM_INSET, PROFILE_CHART_HEIGHT, PROFILE_LABEL_COLUMN, PROFILE_PANEL_MIN_GAP, PROFILE_PLOT_RIGHT_INSET, PROFILE_TOP_INSET, PROFILE_VIEWBOX, PlaceOnCurveInput, PlaceOnCurveValue, PlacedCutoff, PlacedDivider, PlacedSpan, PlacedWaypointMark, ProfileAnchor, ProfileClass, ProfileReadout, ProfileReadoutOptions, ProfileSpan, ProfileVisibility, ProfileVisibilityInput, ReadoutCell, ReadoutStat, SLICE_WIDTH, SLOPE_COLOR_STOPS, STEEPNESS_OVERLAY_SLUG, STEEPNESS_THRESHOLDS, SectionChipCell, SectionChipStat, SegmentRowCell, SegmentTableColumn, SlopeColorStop, SlopeRampStop, StatStripCell, StatStripCursor, StatStripStat, SteepnessClass, TableCursor, WaypointCardFacts, WaypointCardField, WaypointCardRow, WaypointCardService, WaypointCardStringsLike, WaypointContactRow, WaypointMediaLink, WaypointRowCell, WaypointRowCellOptions, WaypointTableColumn, amenityFilter, amenityName, amenityStacks, anchoredDomain, badgeFallback, buildSlices, carriesElevation, classAt, classifySteepness, clearIntlCache, cullCrowdedLabels, cursorMarkerIds, curveSpans, curveStops, dateTimeFormat, displayNames, distanceForSlice, distanceTicks, distanceToFraction, domainTicks, embedFitPadding, estimateProfileHeight, formattedInstant, hideCursorMarker, isSegmentRowLit, isWebAddress, litSegmentId, numberFormat, placeOnCurve, placeSpans, profileAreaPath, profileDomain, profilePolyline, profileReadout, profileSpans, profileX, profileY, relativeTimeFormat, resolveProfileVisibility, rowAt, rowStandsFor, sectionChipCells, sectionGrade, segmentRowCell, segmentRowCursor, showCursorMarker, slopeColors, slopeRampColor, statStripCells, surfaceColors, toggleAmenity, wayTypeColors, waypointCard, waypointContactRows, waypointDeclaresNothing, waypointHeadline, waypointMediaLinkIsLink, waypointMediaLinks, waypointMediaPhotos, waypointPropertyIsLink, waypointPropertyValue, waypointRowCell, waypointRowCursor, waypointSummary, waypointTimingRows, writeLegEmphasis } from './profile/index.cjs';
|
|
23
|
+
export { a as CLIMB_CATEGORIES, C as ClimbCategory, b as ClimbSpan, c as climbAt, d as climbCategoryFor, e as detectClimbs } from './climbs-DgBFwySV.cjs';
|
|
24
|
+
export { C as CumulativeElevation, E as ELEVATION_NOISE_THRESHOLD_METERS, a as ElevationPoint, b as ElevationSeries, G as GRADE_WINDOW_METERS, I as ItineraryCharacteristics, c as ItinerarySegmentInput, d as ItinerarySegmentRow, e as ItinerarySegmentRowMetrics, f as ItinerarySegmentRowOverride, g as ItineraryWaypointRow, h as ItineraryWaypointRowMetrics, M as MARKER_BELONGING_METERS, i as MARKER_PROXIMITY_METERS, j as MAX_PROFILE_POINTS, k as MIN_RANGE_SPAN_METERS, l as MarkerToProject, P as PlacedWaypoint, m as ProfileInput, n as ProfileRange, o as ProfileTotals, p as ProjectedMarker, R as ResolvedCharacteristics, W as Waypoint, q as WaypointAt, r as WaypointContactDetail, s as WaypointDetails, t as WaypointLinkDetail, u as WaypointMediaDetail, v as WaypointOn, w as WaypointPhotoDetail, x as WaypointPropertyDetail, y as WaypointPropertyFormatDetail, z as WaypointTimingDetail, A as activePointAt, B as buildElevationSeries, D as chainGeometry, F as clampRange, H as cumulativeElevation, J as dividesRoute, K as downsampleElevation, L as elevationAt, N as gradeAt, O as itinerarySegmentRows, Q as itineraryWaypointRows, S as lineBetween, T as nearestPointIndexAt, U as profileLength, V as profileLines, X as profileTotals, Y as projectMarkers, Z as rangeTotals, _ as resolveCharacteristics, $ as resolveWaypoints } from './sections-CVlc2Inr.cjs';
|
|
25
|
+
export { I as IndexedInfo, P as ProfileCharacteristics, W as WAYPOINT_PROXIMITY_METERS, a as WaypointProjection, b as buildElevationPoints, c as buildInfoBands, d as committedPaceOf, p as profileCharacteristics, e as projectWaypoints, t as trailDifficultyRank } from './routeProfile-BsSUABXv.cjs';
|
|
26
|
+
export { D as DEGREES_PER_TURN, a as DEGREES_TO_RADIANS, b as DataSizeUnit, c as DurationForSpeedInput, d as DurationUnit, L as LengthUnit, M as METERS_PER_KILOMETER, e as MILLISECONDS_PER_SECOND, f as MINUTES_PER_HOUR, g as MeasurementFormatOptions, P as ProportionUnit, R as RADIANS_TO_DEGREES, S as SECONDS_PER_HOUR, h as SECONDS_PER_MINUTE, i as SlopeUnit, j as SpeedUnit, k as UNIT_LENGTHS, l as UNIT_PACES, m as UNIT_SLOPES, n as UNIT_TEMPERATURES, U as UnitFormatOptions, o as UnitLength, p as UnitPace, q as UnitSlope, r as UnitTemperature, s as convertDataSize, t as convertDuration, u as convertLength, v as convertProportion, w as convertSlope, x as convertSpeed, y as convertTemperature, z as defaultUnits, A as displayToKilometersPerHour, B as distanceUnitFor, C as durationForSpeed, E as elevationUnitFor, F as formatAltitudeRange, G as formatDistance, H as formatDuration, I as formatElevation, J as formatHumidity, K as formatNavDistance, N as formatNumber, O as formatPaceClock, Q as formatProportion, T as formatSlope, V as formatSnowDepth, W as formatSnowfall, X as formatSpeed, Y as formatTemperature, Z as isPaceUnit, _ as kilometersPerHourToDisplay, $ as paceClockNumberToMinutes, a0 as paceMinutesToClockNumber, a1 as parseAscentToMeters, a2 as parseDistanceToMeters, a3 as parsePaceClock, a4 as parseSpeedToKmh, a5 as resolveSpeedKmh, a6 as speedUnitFor, a7 as splitDuration } from './units-D9mBrusY.cjs';
|
|
27
|
+
export { T as TileLayer, b as TileSource, c as TileSourceType, a as TileSpecification } from './types-B2NDLxQA.cjs';
|
|
28
|
+
export { Clock, GeolocateControlEngine, GeolocateControlEngineOptions, GeolocateControlSnapshot, GeolocateControlTarget, manualClock, repeatEvery, systemClock } from './seams/index.cjs';
|
|
29
|
+
export { G as GeolocationFix, a as GeolocationFixOptions, b as GeolocationPermission, c as GeolocationSeam, d as browserGeolocation, i as inertGeolocation } from './geolocation-DDkQdWMN.cjs';
|
|
30
|
+
export { S as SEGMENT_ROUTE_REFUSED, a as SegmentAnalyzeFn, b as SegmentRoute, c as SegmentRouteAnalysis, d as SegmentRouteAnalysisEntry, e as SegmentRouteElevation, f as SegmentRouteFn, g as SegmentRouteOptions, h as SegmentRouteResult } from './segmentRoute-CIo6dR8Y.cjs';
|
|
31
|
+
export { FailedSearchSection, HighlightPart, SEARCH_DEBOUNCE_MS, SEARCH_FILTERS, SEARCH_TARGETS, SEARCH_VIEWPORT_REFRESH_MS, SearchCameraSource, SearchConfig, SearchEngine, SearchEngineOptions, SearchFetch, SearchFilter, SearchListState, SearchListStatus, SearchOwed, SearchPick, SearchPickCamera, SearchUnsubscribe, SearchViewport, collectionRow, createSearchViewport, describePlace, describePoi, describeWay, describeZone, everySectionEmpty, firstActiveSection, highlightRanges, itineraryRow, pickTarget, placeRow, placeTitle, poiRow, poiTitle, searchFilterTargets, searchListState, sectionHasRows, sectionsForFilter, shownSearchSnapshot, splitByRanges, unansweredSearchSnapshot, wayRow, wayTitle, zoneRow } from './search/index.cjs';
|
|
32
|
+
export { C as CollectionRow, D as DataZoneLevel, I as ItineraryRow, M as MatchedRange, P as PlaceRow, a as PoiRow, b as SECTION_ORDER, S as SearchHighlight, c as SearchLabel, d as SearchLabelResolver, e as SearchRow, f as SearchRowPayload, g as SearchRowPayloadCollection, h as SearchRowPayloadItinerary, i as SearchRowPayloadPlace, j as SearchRowPayloadPoi, k as SearchRowPayloadWay, l as SearchRowPayloadZone, m as SearchRowSecondary, n as SearchSection, o as SearchSectionState, p as SearchSnapshot, q as SearchTargetName, r as SearchWording, W as WayRow, Z as ZoneRow } from './types-CTQwbSdA.cjs';
|
|
33
|
+
export { ApplySpecificationOptions, BASEMAP_ATTRIBUTION, DEFAULT_SEGMENT_COLOR, ItineraryLineOptions, LIVELY_PALETTE, LanguageStyleTarget, OrganizationReadEngine, OrganizationReadState, PanelFrame, PanelLayout, StyleTarget, WatermarkPage, WatermarkPlacement, applyLanguageToStyle, applySpecification, assignDistinctColors, itineraryCasingSpec, itineraryDashedLineSpec, itineraryLineSpec, organizationWatermark, panelLayout, pickLivelyColor, removeSpecification, roadAccessColors, roadAccessGlyph, segmentColorAt, tileLayerSpec, tileSourceSpec, zoomInterpolatedWidth } from './style/index.cjs';
|
|
34
|
+
export { M as MapPaint, a as MapPaintOverrides, d as defaultMapPaint, r as resolveMapPaint } from './paint-BgUcj8l7.cjs';
|
|
35
|
+
export { PreferenceChoice, PreferenceField, PreferenceOption, PreferencePress, preferenceChoices, preferencePress } from './units/index.cjs';
|
|
36
|
+
export { D as DataLanguage, a as MAP_LANGUAGES, M as MapLanguage, c as clampMapLanguage, l as languageEndonym } from './language-CEWQ5uYw.cjs';
|
|
37
|
+
export { DirectionsResult, GeocodeResult, IsochronesResult, MatrixResult, PoisResult, SearchResult, SuggestionsResult } from '@mountaya/client';
|
|
38
|
+
import 'geojson';
|
|
39
|
+
import './bundle-Je5zsRFg.cjs';
|
|
40
|
+
import './strings-30RSdIat.cjs';
|
|
41
|
+
import './videoOverlay-Dh_D5_Zs.cjs';
|
|
42
|
+
|
|
43
|
+
/**
|
|
44
|
+
* CURSOR_LOCK_DATA_ATTRIBUTE is the camelCase dataset key the lock writes on the
|
|
45
|
+
* map container, surfacing as the `data-cursor-lock` HTML attribute. CSS targets
|
|
46
|
+
* it (e.g. `[data-cursor-lock] .maplibregl-popup { pointer-events: none }`) so a
|
|
47
|
+
* locked edit cursor can restyle DOM overlays without the lock value leaking into
|
|
48
|
+
* component state. The value held there is the active lock cursor, so a selector
|
|
49
|
+
* can also key off the specific cursor (`[data-cursor-lock="crosshair"]`).
|
|
50
|
+
*/
|
|
51
|
+
declare const CURSOR_LOCK_DATA_ATTRIBUTE = "cursorLock";
|
|
52
|
+
/**
|
|
53
|
+
* EDIT_CROSS_CURSOR is the base cursor a segment edit locks for the whole gesture: a
|
|
54
|
+
* larger-than-standard cross in the accent's default ({@link DEFAULT_ACCENT}), encoded as an
|
|
55
|
+
* inline SVG data URI with a centred hotspot (13,13 of the 26px sprite). It is the editor's
|
|
56
|
+
* "click to add the next point" cursor, locked on edit begin through {@link CursorEngine.lock}
|
|
57
|
+
* and released on edit end. A data URI reads no custom property, so the cross keeps the default
|
|
58
|
+
* whatever accent a host sets. The trailing ", crosshair" is the fallback the browser uses if the
|
|
59
|
+
* SVG cannot load, so the affordance never degrades to the default arrow.
|
|
60
|
+
*/
|
|
61
|
+
declare const EDIT_CROSS_CURSOR: string;
|
|
62
|
+
/**
|
|
63
|
+
* ZONE_CREATE_CURSOR is the base cursor a zone edit locks for the whole drawing gesture: a "+"
|
|
64
|
+
* in the accent's default ({@link DEFAULT_ACCENT}), encoded as an inline SVG data URI with a
|
|
65
|
+
* centred hotspot (13,13 of the 26px sprite). It is the zone editor's "click to draw the zone
|
|
66
|
+
* here" cursor, locked on zone-edit begin by the host that opens the edit, the same way the
|
|
67
|
+
* segment edit's cross is, and released on edit end. It draws shorter strokes than
|
|
68
|
+
* {@link EDIT_CROSS_CURSOR}, so the "+" reads as an "add" affordance distinct from the segment
|
|
69
|
+
* edit's full-bleed cross. The trailing ", copy" is the browser fallback if the SVG cannot load
|
|
70
|
+
* (`copy` reads as "create/add" across platforms).
|
|
71
|
+
*/
|
|
72
|
+
declare const ZONE_CREATE_CURSOR: string;
|
|
73
|
+
/**
|
|
74
|
+
* EDIT_MOVE_CURSOR is the override the segment editor layers over the base cross while the
|
|
75
|
+
* pointer sits on an existing vertex of the editable line: the native "move" cursor (the four-way
|
|
76
|
+
* arrow) cues "click and drag to move this point". The editor pushes it through
|
|
77
|
+
* {@link CursorEngine.pushOverride} on the vertex layer's mouseenter and drops it through
|
|
78
|
+
* {@link CursorEngine.popOverride} on mouseleave, so leaving the vertex reverts to the base cross
|
|
79
|
+
* rather than the OS default. The native keyword reads identically across platforms, so it needs
|
|
80
|
+
* no SVG fallback.
|
|
81
|
+
*/
|
|
82
|
+
declare const EDIT_MOVE_CURSOR = "move";
|
|
83
|
+
/**
|
|
84
|
+
* EDIT_GRAB_CURSOR is the override an editor layers over its base lock while the
|
|
85
|
+
* pointer sits on the draggable INTERIOR of a whole-shape-translatable feature (a
|
|
86
|
+
* zone's fill or freehand line): the native "grab" hand cues "press and drag to
|
|
87
|
+
* move the whole shape". The zone engine pushes it through pushOverride() on the
|
|
88
|
+
* fill/line layer's hover and drops it through popOverride() on leave, so leaving
|
|
89
|
+
* the interior reverts to the base "+" create lock rather than the OS default. It
|
|
90
|
+
* sits at the OVERRIDE tier so it never fights the locked base. The native keyword
|
|
91
|
+
* reads identically across platforms; no SVG fallback is needed. Paired with
|
|
92
|
+
* {@link EDIT_GRABBING_CURSOR} for the active drag.
|
|
93
|
+
*/
|
|
94
|
+
declare const EDIT_GRAB_CURSOR = "grab";
|
|
95
|
+
/**
|
|
96
|
+
* EDIT_GRABBING_CURSOR is the override shown WHILE a whole-shape translate gesture
|
|
97
|
+
* is in flight (the pointer is down and dragging the fill/line interior): the
|
|
98
|
+
* native "grabbing" closed hand, the held-state counterpart of
|
|
99
|
+
* {@link EDIT_GRAB_CURSOR}. The zone engine swaps the grab override for this on the
|
|
100
|
+
* pointer-down over the interior and swaps back on release, so the affordance tracks
|
|
101
|
+
* the gesture the way a desktop drag does. Like grab it rides the OVERRIDE tier
|
|
102
|
+
* above the locked create base and needs no SVG fallback.
|
|
103
|
+
*/
|
|
104
|
+
declare const EDIT_GRABBING_CURSOR = "grabbing";
|
|
105
|
+
|
|
106
|
+
/**
|
|
107
|
+
* Building parsed glyph shapes into a live SVG element.
|
|
108
|
+
*
|
|
109
|
+
* The DOM half of the glyph pipeline, and it is a module of its own because it is the half
|
|
110
|
+
* that does not travel. `icons/rules/parse.ts` turns markup into structured shapes and is a
|
|
111
|
+
* function of its input, which is what a Dart, Swift or Kotlin port reimplements; this takes
|
|
112
|
+
* those shapes and asks a document to make nodes out of them, which no port reimplements
|
|
113
|
+
* because each platform's own SVG API is the answer there.
|
|
114
|
+
*
|
|
115
|
+
* It lives under `compose/` rather than under `icons/` for that reason alone: `compose` is the
|
|
116
|
+
* facade's tree and is reachable only from the package root, where the renderer already is,
|
|
117
|
+
* while `@mountaya/elements/icons` is an entry a consumer takes precisely because it costs
|
|
118
|
+
* nothing that needs a browser.
|
|
119
|
+
*/
|
|
120
|
+
/**
|
|
121
|
+
* appendGlyph builds the parsed shapes into an existing SVG element.
|
|
122
|
+
*
|
|
123
|
+
* `createElementNS` with the SVG namespace, not `innerHTML`: an element created in the HTML
|
|
124
|
+
* namespace looks right in the inspector and renders as nothing. The parse is what keeps the
|
|
125
|
+
* markup safe to build at all (see the allowlist it enforces).
|
|
126
|
+
*
|
|
127
|
+
* @param svg The element the shapes are appended to, in the document that owns it.
|
|
128
|
+
* @param markup The glyph's markup, as an icon provider answers it.
|
|
129
|
+
*/
|
|
130
|
+
declare const appendGlyph: (svg: SVGElement, markup: string) => void;
|
|
131
|
+
|
|
132
|
+
/**
|
|
133
|
+
* beforeIdForRank resolves the `beforeId` that inserts a layer of the given rank into its
|
|
134
|
+
* deterministic position. It walks the live layer ids in their current draw order (bottom
|
|
135
|
+
* to top) and returns the first one that is tracked AND ranks strictly higher: the new
|
|
136
|
+
* layer inserts directly beneath it, so it lands above every lower-or-equal-ranked tracked
|
|
137
|
+
* layer and below every higher-ranked one. When no tracked layer ranks higher it returns
|
|
138
|
+
* undefined, meaning "add on top".
|
|
139
|
+
*
|
|
140
|
+
* The ids come from `getLayersOrder` rather than `getStyle`: only the id is weighed, and
|
|
141
|
+
* `getStyle` serializes the entire style document on every call, a cost this resolver
|
|
142
|
+
* would pay once per insertion, and a terrain switch replays every slot through it.
|
|
143
|
+
*
|
|
144
|
+
* Only tracked layers are weighed, so untracked base-style layers are never chosen as an
|
|
145
|
+
* anchor and stay beneath the ranked ones.
|
|
146
|
+
*
|
|
147
|
+
* The registry has to be passed in rather than derived from the style, which is why this is
|
|
148
|
+
* a function over state rather than a pure ordering: MapLibre's style carries no notion of
|
|
149
|
+
* who added a layer or why, so the only way to tell a ranked layer from a base-style layer is
|
|
150
|
+
* to have recorded it at insertion time.
|
|
151
|
+
*
|
|
152
|
+
* @param map The map whose live layers are walked.
|
|
153
|
+
* @param layerRankById The rank of every tracked layer, by id.
|
|
154
|
+
* @param rank The rank of the layer about to be inserted.
|
|
155
|
+
* @returns The id to insert before, or `undefined` to add on top.
|
|
156
|
+
*/
|
|
157
|
+
declare const beforeIdForRank: (map: Map, layerRankById: ReadonlyMap<string, number>, rank: LayerRank) => string | undefined;
|
|
158
|
+
|
|
159
|
+
/**
|
|
160
|
+
* The camera in the URL.
|
|
161
|
+
*
|
|
162
|
+
* MapLibre owns the `#view` hash and writes it with `history.replaceState`, which most
|
|
163
|
+
* routers never observe. So a navigation that serializes the router's own idea of the hash
|
|
164
|
+
* writes an empty one and **drops the camera from the URL**: a shared or bookmarked link
|
|
165
|
+
* then opens on the default view rather than the one that was shared.
|
|
166
|
+
*
|
|
167
|
+
* This is a published contract rather than an application detail: `#view` is what every
|
|
168
|
+
* Mountaya embed URL carries, so a consumer building their own routing needs the same
|
|
169
|
+
* value on every navigation.
|
|
170
|
+
*/
|
|
171
|
+
/**
|
|
172
|
+
* currentMapHash returns the live URL hash without its leading `#`, for a router navigation
|
|
173
|
+
* to carry through. Empty outside a browser.
|
|
174
|
+
*/
|
|
175
|
+
declare const currentMapHash: () => string;
|
|
176
|
+
|
|
177
|
+
/**
|
|
178
|
+
* ensureMapLibreWorker points MapLibre at the tile worker this package publishes, unless the
|
|
179
|
+
* consumer has already pointed it somewhere themselves.
|
|
180
|
+
*
|
|
181
|
+
* **What it is for.** MapLibre 6 loads its worker from a URL instead of inlining it, and derives
|
|
182
|
+
* one from its own `import.meta.url` when nobody supplies it. After bundling that is the
|
|
183
|
+
* consumer's emitted chunk rather than the installed package, so it asks for a worker beside
|
|
184
|
+
* their hashed assets and gets a 404. Nothing throws: the canvas mounts, the controls work, and
|
|
185
|
+
* no tile ever loads. Upstream's answer is a one-time `setWorkerUrl()` per application, spelled
|
|
186
|
+
* differently for every bundler: a setup step with a silent failure mode, which is exactly the
|
|
187
|
+
* kind of step this package exists to absorb.
|
|
188
|
+
*
|
|
189
|
+
* **Why a bare self-reference.** `new URL(…, import.meta.url)` is the one asset form every
|
|
190
|
+
* bundler resolves and emits, and it is matched SYNTACTICALLY: the specifier and
|
|
191
|
+
* `import.meta.url` have to sit in the expression literally, which is why neither is lifted into
|
|
192
|
+
* a variable here however much tidier that would read. Naming the package rather than a relative
|
|
193
|
+
* path is what makes it survive the layouts this module is read under: `tsup` may place this
|
|
194
|
+
* code in any chunk at any depth, and the `@mountaya/source` condition resolves it straight out
|
|
195
|
+
* of `src/`, so any `./` is right in one layout and wrong in another. A package name is the same
|
|
196
|
+
* string from all of them.
|
|
197
|
+
*
|
|
198
|
+
* **Why the worker is this package's and not the consumer's copy.** Pointing at
|
|
199
|
+
* `maplibre-gl/dist/maplibre-gl-worker.mjs` is worse than doing nothing: that file imports a far
|
|
200
|
+
* larger sibling by literal filename, bundlers hash asset names, and the emitted result is a stub
|
|
201
|
+
* whose first import 404s. `scripts/build-worker.mjs` inlines the sibling so the published
|
|
202
|
+
* artifact is a plain self-contained asset. The cost is that it is built against the maplibre-gl
|
|
203
|
+
* this package pins while the peer admits any `^6`, which is what the version check below is
|
|
204
|
+
* for.
|
|
205
|
+
*
|
|
206
|
+
* **A consumer who chose always wins.** The URL is only written when nothing holds one, so
|
|
207
|
+
* calling `setWorkerUrl` yourself (the exact-version escape hatch, and the CDN case where
|
|
208
|
+
* MapLibre's own detection is already right) keeps working and is never second-guessed.
|
|
209
|
+
*
|
|
210
|
+
* **A build that resolves nothing is told so.** A bundler with no asset handling, and a module
|
|
211
|
+
* served from a CDN, leave the expression to the browser, which joins the specifier onto the
|
|
212
|
+
* chunk's own address. In development `warnOnUnrewrittenWorker` says so once, naming the address
|
|
213
|
+
* and the `setWorkerUrl` call that replaces it.
|
|
214
|
+
*/
|
|
215
|
+
declare const ensureMapLibreWorker: () => void;
|
|
216
|
+
|
|
217
|
+
/**
|
|
218
|
+
* Whether a developer is the one reading the page, for what is said to a developer alone: a
|
|
219
|
+
* console warning, the cause of a failure beside its sentence.
|
|
220
|
+
*/
|
|
221
|
+
/**
|
|
222
|
+
* inDevelopment reports whether a developer is reading this page: every build a bundler did not
|
|
223
|
+
* mark as production, and every page served with no bundler at all.
|
|
224
|
+
*
|
|
225
|
+
* It reads `process.env.NODE_ENV`, whole, because that expression is what a bundler replaces with
|
|
226
|
+
* a literal: a production build then reads `"production" !== "production"`. Under Node the name
|
|
227
|
+
* is the real one. A page that loads a package from a CDN has neither a bundler nor a `process`,
|
|
228
|
+
* and it is a developer's page.
|
|
229
|
+
*
|
|
230
|
+
* The answer is a reading of the build, never a proof of it. A production build whose bundler
|
|
231
|
+
* writes nothing over `process.env.NODE_ENV`, run where no `process` exists, states no mode and
|
|
232
|
+
* is read as development. Gate on it only what is safe to show a visitor of such a build, a
|
|
233
|
+
* warning or a diagnostic detail, and never a credential or a debugging door.
|
|
234
|
+
*
|
|
235
|
+
* @returns `false` when the mode is `"production"`, and `true` for every other mode, for no mode
|
|
236
|
+
* and where no `process` exists to read.
|
|
237
|
+
*
|
|
238
|
+
* @example
|
|
239
|
+
* ```ts
|
|
240
|
+
* import { inDevelopment } from "@mountaya/elements";
|
|
241
|
+
*
|
|
242
|
+
* declare const cause: Error;
|
|
243
|
+
*
|
|
244
|
+
* if (inDevelopment()) {
|
|
245
|
+
* console.warn("The map's stylesheet is not loaded.", cause);
|
|
246
|
+
* }
|
|
247
|
+
* ```
|
|
248
|
+
*/
|
|
249
|
+
declare const inDevelopment: () => boolean;
|
|
250
|
+
|
|
251
|
+
export { CURSOR_LOCK_DATA_ATTRIBUTE, EDIT_CROSS_CURSOR, EDIT_GRABBING_CURSOR, EDIT_GRAB_CURSOR, EDIT_MOVE_CURSOR, LayerRank, ZONE_CREATE_CURSOR, appendGlyph, beforeIdForRank, currentMapHash, ensureMapLibreWorker, inDevelopment };
|
package/dist/index.d.ts
ADDED
|
@@ -0,0 +1,251 @@
|
|
|
1
|
+
export { C as CameraConstraints, G as GeometrySlot, L as LayerPatch, a as MapCredential, b as MapEventEngine, c as MapEvents, d as MapLibreOptions, M as MountayaMap, e as MountayaMapOptions, R as RawMap, f as RequestTransform, S as STREETVIEW_COVERAGE_LAYER, g as STREETVIEW_COVERAGE_SOURCE, h as STREETVIEW_COVERAGE_TILES, T as TerrainVariant, i as TransformRequestOptions, j as TransformedRequest, Z as ZOOM_EASE_MS, k as createTransformRequest } from './mountayaMap-DgnlQ2fE.js';
|
|
2
|
+
import { Map } from 'maplibre-gl';
|
|
3
|
+
import * as maplibreGl from 'maplibre-gl';
|
|
4
|
+
export { maplibreGl as maplibregl };
|
|
5
|
+
import { L as LayerRank } from './order-BLhsGsH8.js';
|
|
6
|
+
export { P as POI_SOURCE_LAYER_NAMES, p as poiSourceLayers, r as rankForTileLayer, t as tileSourceLayerRanks } from './order-BLhsGsH8.js';
|
|
7
|
+
export { A as AnalysisHandle, h as AnalysisId, B as BoundaryDraft, a as BoundaryEditOptions, C as Camera, i as CameraPose, j as CategoryOverlays, k as CollectionDrawOptions, l as DataActivitySlug, m as DataRangeType, n as DirectionsInput, D as DraftPhase, o as DrawOptions, F as FitBoundsOptions, G as GeocodeInput, I as IsochronesInput, p as ItineraryDrawOptions, L as Layers, M as MarkerOptions, q as MatrixDrawOptions, r as MatrixInput, s as MatrixMetric, t as MountOptions, u as MountayaMapEvent, v as MountayaMapEvents, w as MountedSpecification, O as Overlay, P as PoiCategory, x as PoisInput, Q as QueriedFeature, R as RasterPaint, y as Renderable, z as RouteHazard, E as SearchInput, H as SearchTargetsInput, S as SegmentDraft, b as SegmentEditOptions, c as SegmentViaPromptEvent, J as SuggestionDrawOptions, K as SuggestionsInput, T as Terrain, U as Unsubscribe, W as WaypointDraftSnapshot, d as WaypointEditOptions, e as WaypointEngineDraftChange, f as WaypointPoiCapture, N as WaypointPoiSeed, Z as ZoneDraft, g as ZoneEditOptions, V as ZoomRange } from './types-B034JMjl.js';
|
|
8
|
+
export { ItineraryResource, ItineraryResourceEngine, ItineraryResourceEngineOptions, SEGMENT_GROUP_ID_PREFIX, SEGMENT_GROUP_MIN_MEMBERS, applySegmentGroups, groupIdForSegment, invalidateItineraryResource, itineraryCharacteristics, itineraryGeometry, itinerarySegments, itineraryWaypoint, itineraryWaypoints, maxOrNull, minOrNull, segmentGeometries, segmentGroupOptionId, segmentIdsForOption, segmentsForSelection, sumOrNull, waypointGeometries, waypointsForSelection } from './data/index.js';
|
|
9
|
+
export { d as SEGMENT_EDIT_MODES, S as SegmentEditMode, e as WAYPOINT_EDIT_MODES, W as WaypointEditMode, Z as ZONE_LEVELS, a as ZONE_MODES, b as ZoneLevel, c as ZoneMode } from './zones-B05QA8fy.js';
|
|
10
|
+
export { F as FetchItineraryOptions, a as InfoBand, I as ItinerarySegment, c as ItinerarySegmentGroup, d as ItinerarySource, b as ItineraryWaypoint, e as ItineraryWithDetails, R as RouteProfilePoint, f as bandValueAt, g as fetchItinerary, n as nearestRoutePointIndexAt } from './itinerary-Dp2ZnqgD.js';
|
|
11
|
+
export { R as ROAD_ACCESS_KINDS, a as RoadAccessKind, r as roadAccessFeatures, b as roadAccessKindOf } from './roadAccess-D_rOE4xW.js';
|
|
12
|
+
export { MountayaElementsError, MountayaElementsForbiddenError, MountayaElementsNotFoundError, MountayaElementsRejectionError, errorFrom } from './errors/index.js';
|
|
13
|
+
export { AspectCardinal, DIRECTIONS_VIA_COUNTER_THRESHOLD, DIRECTIONS_VIA_MAX, DIRECTIONS_VIA_MIN, EFFECTIVE_MIN_ZOOM_FLOOR, EFFECTIVE_ZOOM_MIN_SPAN, LATITUDE_LIMIT, LONGITUDE_LIMIT, MAX_BOUNDS_MIN_PAD_DEG, MAX_BOUNDS_PAD_FRACTION, SEGMENT_MIN_VIAS, SlopeAspect, TILE_ZOOM_MAX, TILE_ZOOM_MIN, TerrainNeighbours, WEB_MERCATOR_MAX_LAT, ZOOM_BUFFER, ZoomBounds, aspectCardinal, boundaryToBoundingBox, boundingBoxSpanMeters, boundingBoxToBoundary, boundingBoxToPolygon, boundsOf, boundsTuple, boundsWithPixelPadding, buildGeometryCollection, buildSegmentGeometry, distanceToSegmentMeters, effectiveZoomBounds, extractLineStrings, extractLines, extractPoint, extractVias, flattenGeometries, formatLngLat, geometriesEqual, longitudeDelta, maxBoundsLongitudes, metersToRoute, normalizeBoundingBox, paddedMaxBounds, pointTuple, routeLines, segmentLineCoordinates, selectBoundary, slopeAspectFromNeighbours, specificationBounds, viewportBoundsFrom, wrapLongitude, wrapLongitudePastRange } from './geo/index.js';
|
|
14
|
+
export { E as ElevationEncoding, a as ElevationSource, b as ElevationTile, T as TerrainReading, d as decodeElevation, e as elevationTilesAt, t as terrainFromElevationTiles } from './elevationTiles-pmsb9wnU.js';
|
|
15
|
+
export { E as EARTH_RADIUS_METERS, h as haversineMeters } from './geodesy-543qXKtI.js';
|
|
16
|
+
export { S as SEARCH_LIMIT_MAX } from './searchLimits-j99-NTXR.js';
|
|
17
|
+
export { B as BoundingBox, F as FitBoundsPadding, L as LngLat, M as MapViewport } from './types-BEv8V_8V.js';
|
|
18
|
+
export { ACTIVITY_MARKER_PREFIX, Artwork, DEFAULT_WAYPOINT_COLOR, DEFAULT_WAYPOINT_ICON, GlyphElement, ShapePaint, UI_GLYPHS, USER_WAYPOINT_ICONS, UiGlyph, UserWaypointIcon, WAYPOINT_FALLBACK_GLYPH, WAYPOINT_GLYPHS, WAYPOINT_ICON_GROUPS, WAYPOINT_ICON_PREFIX, WaypointGlyph, WaypointIconGroupId, activityMarkerIcon, allowedAttributes, glyphPaint, lucideIconProvider, lucideUiIconProvider, parseGlyph, placeGlyph, watermarkArtwork, waypointIconImageId } from './icons/index.js';
|
|
19
|
+
export { A as AMENITY_GLYPHS, b as AmenityGlyph, c as WAYPOINT_AMENITIES, d as WAYPOINT_AMENITY_GROUPS, e as WAYPOINT_PROPERTY_FORMATS, W as WaypointAmenity, f as WaypointAmenityGroupId, a as WaypointPropertyFormat, g as amenityGlyph } from './amenities-B3-qAjxu.js';
|
|
20
|
+
export { G as GlyphPaint, I as IconProvider, a as IconProviderOptions, c as createIconProvider, f as fallbackProvider } from './provider-DM71XnLX.js';
|
|
21
|
+
export { DIRECTIONS_LINE_COLOR, ENRICHMENT_CATEGORY_SLUG, HoveredItinerary, ISOCHRONE_FILL_OPACITY, ISOCHRONE_LINE_COLOR, ISOCHRONE_LINE_WIDTH, ISOCHRONE_RAMP, ITINERARY_CASING_COLOR, ITINERARY_CASING_LAYER_SUFFIX, ITINERARY_CASING_OPACITY, ITINERARY_CASING_WIDTH_STOPS, ITINERARY_DASHED_OPACITY, ITINERARY_ENDPOINT_ICONS, ITINERARY_LINE_DASHARRAY, ITINERARY_LINE_SOURCE_LAYER, ITINERARY_LINE_WIDTH_STOPS, ITINERARY_POINT_SOURCE_LAYER, ITINERARY_RESTRICTION_SOURCE_LAYER, LayersPanelCategory, LayersPanelChoice, LayersPanelInput, LayersPanelPress, LayersPanelRow, LayersPanelSection, LayersSelectionEngine, LayersSelectionEngineOptions, LayersSelectionSnapshot, LayersSelectionTarget, MATRIX_LINE_COLOR, MATRIX_LINE_MAX_WIDTH, MATRIX_LINE_MIN_WIDTH, MATRIX_LINE_OPACITY, OverlayKind, PLACE_POINT_COLOR, POIS_OVERLAY_SLUG, POI_RESULT_POINT_COLOR, PaintedLayers, PoiCategoryStyle, PoiPanelRow, PoiPanelRows, PoiPanelRowsInput, RESULT_POINT_RADIUS, RESULT_POINT_STROKE_COLOR, RESULT_POINT_STROKE_WIDTH, ReadoutCategoryLabel, ReadoutEngine, ReadoutEngineOptions, ReadoutInput, ReadoutMeasure, ReadoutOpen, ReadoutReading, ReadoutRow, STREETVIEW_MIN_ZOOM, SUGGESTION_ALTERNATIVE_COLOR, SUGGESTION_ALTERNATIVE_DASHARRAY, SUGGESTION_ALTERNATIVE_OPACITY, SUGGESTION_CHOSEN_COLOR, TIME_WINDOW_FUTURE_HOURS, TIME_WINDOW_PAST_HOURS, TimeSliderReadout, TimeSliderTick, TimeSliderWindow, TimestampedSource, ZONE_DEFAULT_COLOR, ZONE_FILL_SOURCE_LAYER, analysisProps, directionsToGeoJson, findOverlay, hoveredItinerary, isEnrichmentCategory, isItineraryCasingLayer, isochroneColor, isochronesToGeoJson, itineraryLineLayout, layersPanelPress, layersPanelSections, matrixLineWidth, matrixToGeoJson, omtCategoryToPoiEnum, overlayInstant, paintZoomRange, placesToGeoJson, poiCategoryStyles, poiPanelNoteZoom, poiPanelRows, poisToGeoJson, readoutRows, roadAccessIconLayerIdOf, suggestionsToGeoJson, timeSliderReadout, timeSliderRelease, timeSliderTicks, timeSliderWindow, timestampedSources, zoneLevelColors, zoomIntoRange } from './layers/index.js';
|
|
22
|
+
export { ASCENT_RAMP_STOPS, AmenityFilter, AmenityStack, AxisLabelBox, BadgeSurface, CURSOR_MARKER_GLYPH, CursorMarkerMap, CursorMarkerPin, CursorMarkerPoint, CurveColor, CurveStop, DEFAULT_AMENITY_STACK_MAX, DEFAULT_READOUT_STATS, DEFAULT_SECTION_CHIP_STATS, DEFAULT_SEGMENT_TABLE_COLUMNS, DEFAULT_STAT_STRIP_STATS, DEFAULT_WAYPOINT_TABLE_COLUMNS, DESCENT_RAMP_STOPS, DistanceTick, EMBED_FIT_BASE_MARGIN, EMBED_PROFILE_ANALYSIS_HEIGHT, EMBED_PROFILE_ANCHOR_INSET, EMBED_PROFILE_CHARACTERISTICS_HEIGHT, EMBED_PROFILE_PANEL_CHROME, EMBED_PROFILE_SECTION_GAP, ElevationDomain, EmbedProfileSections, HIT_SLICES, HitSlice, LegEmphasisMap, PROFILE_BASELINE, PROFILE_BOTTOM_INSET, PROFILE_CHART_HEIGHT, PROFILE_LABEL_COLUMN, PROFILE_PANEL_MIN_GAP, PROFILE_PLOT_RIGHT_INSET, PROFILE_TOP_INSET, PROFILE_VIEWBOX, PlaceOnCurveInput, PlaceOnCurveValue, PlacedCutoff, PlacedDivider, PlacedSpan, PlacedWaypointMark, ProfileAnchor, ProfileClass, ProfileReadout, ProfileReadoutOptions, ProfileSpan, ProfileVisibility, ProfileVisibilityInput, ReadoutCell, ReadoutStat, SLICE_WIDTH, SLOPE_COLOR_STOPS, STEEPNESS_OVERLAY_SLUG, STEEPNESS_THRESHOLDS, SectionChipCell, SectionChipStat, SegmentRowCell, SegmentTableColumn, SlopeColorStop, SlopeRampStop, StatStripCell, StatStripCursor, StatStripStat, SteepnessClass, TableCursor, WaypointCardFacts, WaypointCardField, WaypointCardRow, WaypointCardService, WaypointCardStringsLike, WaypointContactRow, WaypointMediaLink, WaypointRowCell, WaypointRowCellOptions, WaypointTableColumn, amenityFilter, amenityName, amenityStacks, anchoredDomain, badgeFallback, buildSlices, carriesElevation, classAt, classifySteepness, clearIntlCache, cullCrowdedLabels, cursorMarkerIds, curveSpans, curveStops, dateTimeFormat, displayNames, distanceForSlice, distanceTicks, distanceToFraction, domainTicks, embedFitPadding, estimateProfileHeight, formattedInstant, hideCursorMarker, isSegmentRowLit, isWebAddress, litSegmentId, numberFormat, placeOnCurve, placeSpans, profileAreaPath, profileDomain, profilePolyline, profileReadout, profileSpans, profileX, profileY, relativeTimeFormat, resolveProfileVisibility, rowAt, rowStandsFor, sectionChipCells, sectionGrade, segmentRowCell, segmentRowCursor, showCursorMarker, slopeColors, slopeRampColor, statStripCells, surfaceColors, toggleAmenity, wayTypeColors, waypointCard, waypointContactRows, waypointDeclaresNothing, waypointHeadline, waypointMediaLinkIsLink, waypointMediaLinks, waypointMediaPhotos, waypointPropertyIsLink, waypointPropertyValue, waypointRowCell, waypointRowCursor, waypointSummary, waypointTimingRows, writeLegEmphasis } from './profile/index.js';
|
|
23
|
+
export { a as CLIMB_CATEGORIES, C as ClimbCategory, b as ClimbSpan, c as climbAt, d as climbCategoryFor, e as detectClimbs } from './climbs-BhlWuu0x.js';
|
|
24
|
+
export { C as CumulativeElevation, E as ELEVATION_NOISE_THRESHOLD_METERS, a as ElevationPoint, b as ElevationSeries, G as GRADE_WINDOW_METERS, I as ItineraryCharacteristics, c as ItinerarySegmentInput, d as ItinerarySegmentRow, e as ItinerarySegmentRowMetrics, f as ItinerarySegmentRowOverride, g as ItineraryWaypointRow, h as ItineraryWaypointRowMetrics, M as MARKER_BELONGING_METERS, i as MARKER_PROXIMITY_METERS, j as MAX_PROFILE_POINTS, k as MIN_RANGE_SPAN_METERS, l as MarkerToProject, P as PlacedWaypoint, m as ProfileInput, n as ProfileRange, o as ProfileTotals, p as ProjectedMarker, R as ResolvedCharacteristics, W as Waypoint, q as WaypointAt, r as WaypointContactDetail, s as WaypointDetails, t as WaypointLinkDetail, u as WaypointMediaDetail, v as WaypointOn, w as WaypointPhotoDetail, x as WaypointPropertyDetail, y as WaypointPropertyFormatDetail, z as WaypointTimingDetail, A as activePointAt, B as buildElevationSeries, D as chainGeometry, F as clampRange, H as cumulativeElevation, J as dividesRoute, K as downsampleElevation, L as elevationAt, N as gradeAt, O as itinerarySegmentRows, Q as itineraryWaypointRows, S as lineBetween, T as nearestPointIndexAt, U as profileLength, V as profileLines, X as profileTotals, Y as projectMarkers, Z as rangeTotals, _ as resolveCharacteristics, $ as resolveWaypoints } from './sections-CmtaduLc.js';
|
|
25
|
+
export { I as IndexedInfo, P as ProfileCharacteristics, W as WAYPOINT_PROXIMITY_METERS, a as WaypointProjection, b as buildElevationPoints, c as buildInfoBands, d as committedPaceOf, p as profileCharacteristics, e as projectWaypoints, t as trailDifficultyRank } from './routeProfile-BKfSfxx6.js';
|
|
26
|
+
export { D as DEGREES_PER_TURN, a as DEGREES_TO_RADIANS, b as DataSizeUnit, c as DurationForSpeedInput, d as DurationUnit, L as LengthUnit, M as METERS_PER_KILOMETER, e as MILLISECONDS_PER_SECOND, f as MINUTES_PER_HOUR, g as MeasurementFormatOptions, P as ProportionUnit, R as RADIANS_TO_DEGREES, S as SECONDS_PER_HOUR, h as SECONDS_PER_MINUTE, i as SlopeUnit, j as SpeedUnit, k as UNIT_LENGTHS, l as UNIT_PACES, m as UNIT_SLOPES, n as UNIT_TEMPERATURES, U as UnitFormatOptions, o as UnitLength, p as UnitPace, q as UnitSlope, r as UnitTemperature, s as convertDataSize, t as convertDuration, u as convertLength, v as convertProportion, w as convertSlope, x as convertSpeed, y as convertTemperature, z as defaultUnits, A as displayToKilometersPerHour, B as distanceUnitFor, C as durationForSpeed, E as elevationUnitFor, F as formatAltitudeRange, G as formatDistance, H as formatDuration, I as formatElevation, J as formatHumidity, K as formatNavDistance, N as formatNumber, O as formatPaceClock, Q as formatProportion, T as formatSlope, V as formatSnowDepth, W as formatSnowfall, X as formatSpeed, Y as formatTemperature, Z as isPaceUnit, _ as kilometersPerHourToDisplay, $ as paceClockNumberToMinutes, a0 as paceMinutesToClockNumber, a1 as parseAscentToMeters, a2 as parseDistanceToMeters, a3 as parsePaceClock, a4 as parseSpeedToKmh, a5 as resolveSpeedKmh, a6 as speedUnitFor, a7 as splitDuration } from './units-D9mBrusY.js';
|
|
27
|
+
export { T as TileLayer, b as TileSource, c as TileSourceType, a as TileSpecification } from './types-B2NDLxQA.js';
|
|
28
|
+
export { Clock, GeolocateControlEngine, GeolocateControlEngineOptions, GeolocateControlSnapshot, GeolocateControlTarget, manualClock, repeatEvery, systemClock } from './seams/index.js';
|
|
29
|
+
export { G as GeolocationFix, a as GeolocationFixOptions, b as GeolocationPermission, c as GeolocationSeam, d as browserGeolocation, i as inertGeolocation } from './geolocation-DDkQdWMN.js';
|
|
30
|
+
export { S as SEGMENT_ROUTE_REFUSED, a as SegmentAnalyzeFn, b as SegmentRoute, c as SegmentRouteAnalysis, d as SegmentRouteAnalysisEntry, e as SegmentRouteElevation, f as SegmentRouteFn, g as SegmentRouteOptions, h as SegmentRouteResult } from './segmentRoute-C5UL_5bp.js';
|
|
31
|
+
export { FailedSearchSection, HighlightPart, SEARCH_DEBOUNCE_MS, SEARCH_FILTERS, SEARCH_TARGETS, SEARCH_VIEWPORT_REFRESH_MS, SearchCameraSource, SearchConfig, SearchEngine, SearchEngineOptions, SearchFetch, SearchFilter, SearchListState, SearchListStatus, SearchOwed, SearchPick, SearchPickCamera, SearchUnsubscribe, SearchViewport, collectionRow, createSearchViewport, describePlace, describePoi, describeWay, describeZone, everySectionEmpty, firstActiveSection, highlightRanges, itineraryRow, pickTarget, placeRow, placeTitle, poiRow, poiTitle, searchFilterTargets, searchListState, sectionHasRows, sectionsForFilter, shownSearchSnapshot, splitByRanges, unansweredSearchSnapshot, wayRow, wayTitle, zoneRow } from './search/index.js';
|
|
32
|
+
export { C as CollectionRow, D as DataZoneLevel, I as ItineraryRow, M as MatchedRange, P as PlaceRow, a as PoiRow, b as SECTION_ORDER, S as SearchHighlight, c as SearchLabel, d as SearchLabelResolver, e as SearchRow, f as SearchRowPayload, g as SearchRowPayloadCollection, h as SearchRowPayloadItinerary, i as SearchRowPayloadPlace, j as SearchRowPayloadPoi, k as SearchRowPayloadWay, l as SearchRowPayloadZone, m as SearchRowSecondary, n as SearchSection, o as SearchSectionState, p as SearchSnapshot, q as SearchTargetName, r as SearchWording, W as WayRow, Z as ZoneRow } from './types-nO2joeRk.js';
|
|
33
|
+
export { ApplySpecificationOptions, BASEMAP_ATTRIBUTION, DEFAULT_SEGMENT_COLOR, ItineraryLineOptions, LIVELY_PALETTE, LanguageStyleTarget, OrganizationReadEngine, OrganizationReadState, PanelFrame, PanelLayout, StyleTarget, WatermarkPage, WatermarkPlacement, applyLanguageToStyle, applySpecification, assignDistinctColors, itineraryCasingSpec, itineraryDashedLineSpec, itineraryLineSpec, organizationWatermark, panelLayout, pickLivelyColor, removeSpecification, roadAccessColors, roadAccessGlyph, segmentColorAt, tileLayerSpec, tileSourceSpec, zoomInterpolatedWidth } from './style/index.js';
|
|
34
|
+
export { M as MapPaint, a as MapPaintOverrides, d as defaultMapPaint, r as resolveMapPaint } from './paint-Dx_qGNE_.js';
|
|
35
|
+
export { PreferenceChoice, PreferenceField, PreferenceOption, PreferencePress, preferenceChoices, preferencePress } from './units/index.js';
|
|
36
|
+
export { D as DataLanguage, a as MAP_LANGUAGES, M as MapLanguage, c as clampMapLanguage, l as languageEndonym } from './language-CEWQ5uYw.js';
|
|
37
|
+
export { DirectionsResult, GeocodeResult, IsochronesResult, MatrixResult, PoisResult, SearchResult, SuggestionsResult } from '@mountaya/client';
|
|
38
|
+
import 'geojson';
|
|
39
|
+
import './bundle-xYrrbJTH.js';
|
|
40
|
+
import './strings-DPTIbzT5.js';
|
|
41
|
+
import './videoOverlay-Dh_D5_Zs.js';
|
|
42
|
+
|
|
43
|
+
/**
|
|
44
|
+
* CURSOR_LOCK_DATA_ATTRIBUTE is the camelCase dataset key the lock writes on the
|
|
45
|
+
* map container, surfacing as the `data-cursor-lock` HTML attribute. CSS targets
|
|
46
|
+
* it (e.g. `[data-cursor-lock] .maplibregl-popup { pointer-events: none }`) so a
|
|
47
|
+
* locked edit cursor can restyle DOM overlays without the lock value leaking into
|
|
48
|
+
* component state. The value held there is the active lock cursor, so a selector
|
|
49
|
+
* can also key off the specific cursor (`[data-cursor-lock="crosshair"]`).
|
|
50
|
+
*/
|
|
51
|
+
declare const CURSOR_LOCK_DATA_ATTRIBUTE = "cursorLock";
|
|
52
|
+
/**
|
|
53
|
+
* EDIT_CROSS_CURSOR is the base cursor a segment edit locks for the whole gesture: a
|
|
54
|
+
* larger-than-standard cross in the accent's default ({@link DEFAULT_ACCENT}), encoded as an
|
|
55
|
+
* inline SVG data URI with a centred hotspot (13,13 of the 26px sprite). It is the editor's
|
|
56
|
+
* "click to add the next point" cursor, locked on edit begin through {@link CursorEngine.lock}
|
|
57
|
+
* and released on edit end. A data URI reads no custom property, so the cross keeps the default
|
|
58
|
+
* whatever accent a host sets. The trailing ", crosshair" is the fallback the browser uses if the
|
|
59
|
+
* SVG cannot load, so the affordance never degrades to the default arrow.
|
|
60
|
+
*/
|
|
61
|
+
declare const EDIT_CROSS_CURSOR: string;
|
|
62
|
+
/**
|
|
63
|
+
* ZONE_CREATE_CURSOR is the base cursor a zone edit locks for the whole drawing gesture: a "+"
|
|
64
|
+
* in the accent's default ({@link DEFAULT_ACCENT}), encoded as an inline SVG data URI with a
|
|
65
|
+
* centred hotspot (13,13 of the 26px sprite). It is the zone editor's "click to draw the zone
|
|
66
|
+
* here" cursor, locked on zone-edit begin by the host that opens the edit, the same way the
|
|
67
|
+
* segment edit's cross is, and released on edit end. It draws shorter strokes than
|
|
68
|
+
* {@link EDIT_CROSS_CURSOR}, so the "+" reads as an "add" affordance distinct from the segment
|
|
69
|
+
* edit's full-bleed cross. The trailing ", copy" is the browser fallback if the SVG cannot load
|
|
70
|
+
* (`copy` reads as "create/add" across platforms).
|
|
71
|
+
*/
|
|
72
|
+
declare const ZONE_CREATE_CURSOR: string;
|
|
73
|
+
/**
|
|
74
|
+
* EDIT_MOVE_CURSOR is the override the segment editor layers over the base cross while the
|
|
75
|
+
* pointer sits on an existing vertex of the editable line: the native "move" cursor (the four-way
|
|
76
|
+
* arrow) cues "click and drag to move this point". The editor pushes it through
|
|
77
|
+
* {@link CursorEngine.pushOverride} on the vertex layer's mouseenter and drops it through
|
|
78
|
+
* {@link CursorEngine.popOverride} on mouseleave, so leaving the vertex reverts to the base cross
|
|
79
|
+
* rather than the OS default. The native keyword reads identically across platforms, so it needs
|
|
80
|
+
* no SVG fallback.
|
|
81
|
+
*/
|
|
82
|
+
declare const EDIT_MOVE_CURSOR = "move";
|
|
83
|
+
/**
|
|
84
|
+
* EDIT_GRAB_CURSOR is the override an editor layers over its base lock while the
|
|
85
|
+
* pointer sits on the draggable INTERIOR of a whole-shape-translatable feature (a
|
|
86
|
+
* zone's fill or freehand line): the native "grab" hand cues "press and drag to
|
|
87
|
+
* move the whole shape". The zone engine pushes it through pushOverride() on the
|
|
88
|
+
* fill/line layer's hover and drops it through popOverride() on leave, so leaving
|
|
89
|
+
* the interior reverts to the base "+" create lock rather than the OS default. It
|
|
90
|
+
* sits at the OVERRIDE tier so it never fights the locked base. The native keyword
|
|
91
|
+
* reads identically across platforms; no SVG fallback is needed. Paired with
|
|
92
|
+
* {@link EDIT_GRABBING_CURSOR} for the active drag.
|
|
93
|
+
*/
|
|
94
|
+
declare const EDIT_GRAB_CURSOR = "grab";
|
|
95
|
+
/**
|
|
96
|
+
* EDIT_GRABBING_CURSOR is the override shown WHILE a whole-shape translate gesture
|
|
97
|
+
* is in flight (the pointer is down and dragging the fill/line interior): the
|
|
98
|
+
* native "grabbing" closed hand, the held-state counterpart of
|
|
99
|
+
* {@link EDIT_GRAB_CURSOR}. The zone engine swaps the grab override for this on the
|
|
100
|
+
* pointer-down over the interior and swaps back on release, so the affordance tracks
|
|
101
|
+
* the gesture the way a desktop drag does. Like grab it rides the OVERRIDE tier
|
|
102
|
+
* above the locked create base and needs no SVG fallback.
|
|
103
|
+
*/
|
|
104
|
+
declare const EDIT_GRABBING_CURSOR = "grabbing";
|
|
105
|
+
|
|
106
|
+
/**
|
|
107
|
+
* Building parsed glyph shapes into a live SVG element.
|
|
108
|
+
*
|
|
109
|
+
* The DOM half of the glyph pipeline, and it is a module of its own because it is the half
|
|
110
|
+
* that does not travel. `icons/rules/parse.ts` turns markup into structured shapes and is a
|
|
111
|
+
* function of its input, which is what a Dart, Swift or Kotlin port reimplements; this takes
|
|
112
|
+
* those shapes and asks a document to make nodes out of them, which no port reimplements
|
|
113
|
+
* because each platform's own SVG API is the answer there.
|
|
114
|
+
*
|
|
115
|
+
* It lives under `compose/` rather than under `icons/` for that reason alone: `compose` is the
|
|
116
|
+
* facade's tree and is reachable only from the package root, where the renderer already is,
|
|
117
|
+
* while `@mountaya/elements/icons` is an entry a consumer takes precisely because it costs
|
|
118
|
+
* nothing that needs a browser.
|
|
119
|
+
*/
|
|
120
|
+
/**
|
|
121
|
+
* appendGlyph builds the parsed shapes into an existing SVG element.
|
|
122
|
+
*
|
|
123
|
+
* `createElementNS` with the SVG namespace, not `innerHTML`: an element created in the HTML
|
|
124
|
+
* namespace looks right in the inspector and renders as nothing. The parse is what keeps the
|
|
125
|
+
* markup safe to build at all (see the allowlist it enforces).
|
|
126
|
+
*
|
|
127
|
+
* @param svg The element the shapes are appended to, in the document that owns it.
|
|
128
|
+
* @param markup The glyph's markup, as an icon provider answers it.
|
|
129
|
+
*/
|
|
130
|
+
declare const appendGlyph: (svg: SVGElement, markup: string) => void;
|
|
131
|
+
|
|
132
|
+
/**
|
|
133
|
+
* beforeIdForRank resolves the `beforeId` that inserts a layer of the given rank into its
|
|
134
|
+
* deterministic position. It walks the live layer ids in their current draw order (bottom
|
|
135
|
+
* to top) and returns the first one that is tracked AND ranks strictly higher: the new
|
|
136
|
+
* layer inserts directly beneath it, so it lands above every lower-or-equal-ranked tracked
|
|
137
|
+
* layer and below every higher-ranked one. When no tracked layer ranks higher it returns
|
|
138
|
+
* undefined, meaning "add on top".
|
|
139
|
+
*
|
|
140
|
+
* The ids come from `getLayersOrder` rather than `getStyle`: only the id is weighed, and
|
|
141
|
+
* `getStyle` serializes the entire style document on every call, a cost this resolver
|
|
142
|
+
* would pay once per insertion, and a terrain switch replays every slot through it.
|
|
143
|
+
*
|
|
144
|
+
* Only tracked layers are weighed, so untracked base-style layers are never chosen as an
|
|
145
|
+
* anchor and stay beneath the ranked ones.
|
|
146
|
+
*
|
|
147
|
+
* The registry has to be passed in rather than derived from the style, which is why this is
|
|
148
|
+
* a function over state rather than a pure ordering: MapLibre's style carries no notion of
|
|
149
|
+
* who added a layer or why, so the only way to tell a ranked layer from a base-style layer is
|
|
150
|
+
* to have recorded it at insertion time.
|
|
151
|
+
*
|
|
152
|
+
* @param map The map whose live layers are walked.
|
|
153
|
+
* @param layerRankById The rank of every tracked layer, by id.
|
|
154
|
+
* @param rank The rank of the layer about to be inserted.
|
|
155
|
+
* @returns The id to insert before, or `undefined` to add on top.
|
|
156
|
+
*/
|
|
157
|
+
declare const beforeIdForRank: (map: Map, layerRankById: ReadonlyMap<string, number>, rank: LayerRank) => string | undefined;
|
|
158
|
+
|
|
159
|
+
/**
|
|
160
|
+
* The camera in the URL.
|
|
161
|
+
*
|
|
162
|
+
* MapLibre owns the `#view` hash and writes it with `history.replaceState`, which most
|
|
163
|
+
* routers never observe. So a navigation that serializes the router's own idea of the hash
|
|
164
|
+
* writes an empty one and **drops the camera from the URL**: a shared or bookmarked link
|
|
165
|
+
* then opens on the default view rather than the one that was shared.
|
|
166
|
+
*
|
|
167
|
+
* This is a published contract rather than an application detail: `#view` is what every
|
|
168
|
+
* Mountaya embed URL carries, so a consumer building their own routing needs the same
|
|
169
|
+
* value on every navigation.
|
|
170
|
+
*/
|
|
171
|
+
/**
|
|
172
|
+
* currentMapHash returns the live URL hash without its leading `#`, for a router navigation
|
|
173
|
+
* to carry through. Empty outside a browser.
|
|
174
|
+
*/
|
|
175
|
+
declare const currentMapHash: () => string;
|
|
176
|
+
|
|
177
|
+
/**
|
|
178
|
+
* ensureMapLibreWorker points MapLibre at the tile worker this package publishes, unless the
|
|
179
|
+
* consumer has already pointed it somewhere themselves.
|
|
180
|
+
*
|
|
181
|
+
* **What it is for.** MapLibre 6 loads its worker from a URL instead of inlining it, and derives
|
|
182
|
+
* one from its own `import.meta.url` when nobody supplies it. After bundling that is the
|
|
183
|
+
* consumer's emitted chunk rather than the installed package, so it asks for a worker beside
|
|
184
|
+
* their hashed assets and gets a 404. Nothing throws: the canvas mounts, the controls work, and
|
|
185
|
+
* no tile ever loads. Upstream's answer is a one-time `setWorkerUrl()` per application, spelled
|
|
186
|
+
* differently for every bundler: a setup step with a silent failure mode, which is exactly the
|
|
187
|
+
* kind of step this package exists to absorb.
|
|
188
|
+
*
|
|
189
|
+
* **Why a bare self-reference.** `new URL(…, import.meta.url)` is the one asset form every
|
|
190
|
+
* bundler resolves and emits, and it is matched SYNTACTICALLY: the specifier and
|
|
191
|
+
* `import.meta.url` have to sit in the expression literally, which is why neither is lifted into
|
|
192
|
+
* a variable here however much tidier that would read. Naming the package rather than a relative
|
|
193
|
+
* path is what makes it survive the layouts this module is read under: `tsup` may place this
|
|
194
|
+
* code in any chunk at any depth, and the `@mountaya/source` condition resolves it straight out
|
|
195
|
+
* of `src/`, so any `./` is right in one layout and wrong in another. A package name is the same
|
|
196
|
+
* string from all of them.
|
|
197
|
+
*
|
|
198
|
+
* **Why the worker is this package's and not the consumer's copy.** Pointing at
|
|
199
|
+
* `maplibre-gl/dist/maplibre-gl-worker.mjs` is worse than doing nothing: that file imports a far
|
|
200
|
+
* larger sibling by literal filename, bundlers hash asset names, and the emitted result is a stub
|
|
201
|
+
* whose first import 404s. `scripts/build-worker.mjs` inlines the sibling so the published
|
|
202
|
+
* artifact is a plain self-contained asset. The cost is that it is built against the maplibre-gl
|
|
203
|
+
* this package pins while the peer admits any `^6`, which is what the version check below is
|
|
204
|
+
* for.
|
|
205
|
+
*
|
|
206
|
+
* **A consumer who chose always wins.** The URL is only written when nothing holds one, so
|
|
207
|
+
* calling `setWorkerUrl` yourself (the exact-version escape hatch, and the CDN case where
|
|
208
|
+
* MapLibre's own detection is already right) keeps working and is never second-guessed.
|
|
209
|
+
*
|
|
210
|
+
* **A build that resolves nothing is told so.** A bundler with no asset handling, and a module
|
|
211
|
+
* served from a CDN, leave the expression to the browser, which joins the specifier onto the
|
|
212
|
+
* chunk's own address. In development `warnOnUnrewrittenWorker` says so once, naming the address
|
|
213
|
+
* and the `setWorkerUrl` call that replaces it.
|
|
214
|
+
*/
|
|
215
|
+
declare const ensureMapLibreWorker: () => void;
|
|
216
|
+
|
|
217
|
+
/**
|
|
218
|
+
* Whether a developer is the one reading the page, for what is said to a developer alone: a
|
|
219
|
+
* console warning, the cause of a failure beside its sentence.
|
|
220
|
+
*/
|
|
221
|
+
/**
|
|
222
|
+
* inDevelopment reports whether a developer is reading this page: every build a bundler did not
|
|
223
|
+
* mark as production, and every page served with no bundler at all.
|
|
224
|
+
*
|
|
225
|
+
* It reads `process.env.NODE_ENV`, whole, because that expression is what a bundler replaces with
|
|
226
|
+
* a literal: a production build then reads `"production" !== "production"`. Under Node the name
|
|
227
|
+
* is the real one. A page that loads a package from a CDN has neither a bundler nor a `process`,
|
|
228
|
+
* and it is a developer's page.
|
|
229
|
+
*
|
|
230
|
+
* The answer is a reading of the build, never a proof of it. A production build whose bundler
|
|
231
|
+
* writes nothing over `process.env.NODE_ENV`, run where no `process` exists, states no mode and
|
|
232
|
+
* is read as development. Gate on it only what is safe to show a visitor of such a build, a
|
|
233
|
+
* warning or a diagnostic detail, and never a credential or a debugging door.
|
|
234
|
+
*
|
|
235
|
+
* @returns `false` when the mode is `"production"`, and `true` for every other mode, for no mode
|
|
236
|
+
* and where no `process` exists to read.
|
|
237
|
+
*
|
|
238
|
+
* @example
|
|
239
|
+
* ```ts
|
|
240
|
+
* import { inDevelopment } from "@mountaya/elements";
|
|
241
|
+
*
|
|
242
|
+
* declare const cause: Error;
|
|
243
|
+
*
|
|
244
|
+
* if (inDevelopment()) {
|
|
245
|
+
* console.warn("The map's stylesheet is not loaded.", cause);
|
|
246
|
+
* }
|
|
247
|
+
* ```
|
|
248
|
+
*/
|
|
249
|
+
declare const inDevelopment: () => boolean;
|
|
250
|
+
|
|
251
|
+
export { CURSOR_LOCK_DATA_ATTRIBUTE, EDIT_CROSS_CURSOR, EDIT_GRABBING_CURSOR, EDIT_GRAB_CURSOR, EDIT_MOVE_CURSOR, LayerRank, ZONE_CREATE_CURSOR, appendGlyph, beforeIdForRank, currentMapHash, ensureMapLibreWorker, inDevelopment };
|