@math.gl/geospatial 5.0.0-beta.10 → 5.0.0-beta.12

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.
Files changed (360) hide show
  1. package/README.md +3 -3
  2. package/dist/crs/index.cjs +54 -0
  3. package/dist/crs/index.cjs.map +2 -2
  4. package/dist/crs/index.d.ts +1 -0
  5. package/dist/crs/index.d.ts.map +1 -1
  6. package/dist/crs/index.js +1 -0
  7. package/dist/crs/index.js.map +1 -1
  8. package/dist/crs/spatial-reference-metadata.d.ts +20 -0
  9. package/dist/crs/spatial-reference-metadata.d.ts.map +1 -0
  10. package/dist/crs/spatial-reference-metadata.js +86 -0
  11. package/dist/crs/spatial-reference-metadata.js.map +1 -0
  12. package/dist/expressions.d.ts +1 -1
  13. package/dist/expressions.d.ts.map +1 -1
  14. package/dist/index.cjs +1738 -316
  15. package/dist/index.cjs.map +3 -3
  16. package/dist/index.d.ts +14 -1
  17. package/dist/index.d.ts.map +1 -1
  18. package/dist/index.js +12 -0
  19. package/dist/index.js.map +1 -1
  20. package/dist/projection/experimental/core.cjs.map +1 -1
  21. package/dist/projection/experimental/crs/spatial-reference.d.ts.map +1 -1
  22. package/dist/projection/experimental/crs/spatial-reference.js.map +1 -1
  23. package/dist/projection/experimental/crs/types.d.ts.map +1 -1
  24. package/dist/projection/experimental/lazy-projections/aea.cjs +4 -1
  25. package/dist/projection/experimental/lazy-projections/aea.cjs.map +1 -1
  26. package/dist/projection/experimental/lazy-projections/aea.d.ts.map +1 -1
  27. package/dist/projection/experimental/lazy-projections/aea.js +4 -1
  28. package/dist/projection/experimental/lazy-projections/aea.js.map +1 -1
  29. package/dist/projection/experimental/lazy-projections/bonne.cjs +4 -1
  30. package/dist/projection/experimental/lazy-projections/bonne.cjs.map +1 -1
  31. package/dist/projection/experimental/lazy-projections/bonne.d.ts.map +1 -1
  32. package/dist/projection/experimental/lazy-projections/bonne.js +4 -1
  33. package/dist/projection/experimental/lazy-projections/bonne.js.map +1 -1
  34. package/dist/projection/experimental/lazy-projections/cass.cjs +4 -1
  35. package/dist/projection/experimental/lazy-projections/cass.cjs.map +1 -1
  36. package/dist/projection/experimental/lazy-projections/cass.d.ts.map +1 -1
  37. package/dist/projection/experimental/lazy-projections/cass.js +4 -1
  38. package/dist/projection/experimental/lazy-projections/cass.js.map +1 -1
  39. package/dist/projection/experimental/lazy-projections/eck6.cjs +4 -1
  40. package/dist/projection/experimental/lazy-projections/eck6.cjs.map +1 -1
  41. package/dist/projection/experimental/lazy-projections/eck6.d.ts.map +1 -1
  42. package/dist/projection/experimental/lazy-projections/eck6.js +4 -1
  43. package/dist/projection/experimental/lazy-projections/eck6.js.map +1 -1
  44. package/dist/projection/experimental/lazy-projections/eqdc.cjs +4 -1
  45. package/dist/projection/experimental/lazy-projections/eqdc.cjs.map +1 -1
  46. package/dist/projection/experimental/lazy-projections/eqdc.d.ts.map +1 -1
  47. package/dist/projection/experimental/lazy-projections/eqdc.js +4 -1
  48. package/dist/projection/experimental/lazy-projections/eqdc.js.map +1 -1
  49. package/dist/projection/experimental/lazy-projections/eqearth.cjs +4 -1
  50. package/dist/projection/experimental/lazy-projections/eqearth.cjs.map +1 -1
  51. package/dist/projection/experimental/lazy-projections/eqearth.d.ts.map +1 -1
  52. package/dist/projection/experimental/lazy-projections/eqearth.js +4 -1
  53. package/dist/projection/experimental/lazy-projections/eqearth.js.map +1 -1
  54. package/dist/projection/experimental/lazy-projections/equi.cjs +4 -1
  55. package/dist/projection/experimental/lazy-projections/equi.cjs.map +1 -1
  56. package/dist/projection/experimental/lazy-projections/equi.d.ts.map +1 -1
  57. package/dist/projection/experimental/lazy-projections/equi.js +4 -1
  58. package/dist/projection/experimental/lazy-projections/equi.js.map +1 -1
  59. package/dist/projection/experimental/lazy-projections/geocent.cjs +4 -1
  60. package/dist/projection/experimental/lazy-projections/geocent.cjs.map +1 -1
  61. package/dist/projection/experimental/lazy-projections/geocent.d.ts.map +1 -1
  62. package/dist/projection/experimental/lazy-projections/geocent.js +4 -1
  63. package/dist/projection/experimental/lazy-projections/geocent.js.map +1 -1
  64. package/dist/projection/experimental/lazy-projections/geos.cjs +4 -1
  65. package/dist/projection/experimental/lazy-projections/geos.cjs.map +1 -1
  66. package/dist/projection/experimental/lazy-projections/geos.d.ts.map +1 -1
  67. package/dist/projection/experimental/lazy-projections/geos.js +4 -1
  68. package/dist/projection/experimental/lazy-projections/geos.js.map +1 -1
  69. package/dist/projection/experimental/lazy-projections/gnom.cjs +4 -1
  70. package/dist/projection/experimental/lazy-projections/gnom.cjs.map +1 -1
  71. package/dist/projection/experimental/lazy-projections/gnom.d.ts.map +1 -1
  72. package/dist/projection/experimental/lazy-projections/gnom.js +4 -1
  73. package/dist/projection/experimental/lazy-projections/gnom.js.map +1 -1
  74. package/dist/projection/experimental/lazy-projections/index.cjs +92 -23
  75. package/dist/projection/experimental/lazy-projections/index.cjs.map +1 -1
  76. package/dist/projection/experimental/lazy-projections/krovak.cjs +4 -1
  77. package/dist/projection/experimental/lazy-projections/krovak.cjs.map +1 -1
  78. package/dist/projection/experimental/lazy-projections/krovak.d.ts.map +1 -1
  79. package/dist/projection/experimental/lazy-projections/krovak.js +4 -1
  80. package/dist/projection/experimental/lazy-projections/krovak.js.map +1 -1
  81. package/dist/projection/experimental/lazy-projections/merc.cjs +4 -1
  82. package/dist/projection/experimental/lazy-projections/merc.cjs.map +1 -1
  83. package/dist/projection/experimental/lazy-projections/merc.d.ts.map +1 -1
  84. package/dist/projection/experimental/lazy-projections/merc.js +4 -1
  85. package/dist/projection/experimental/lazy-projections/merc.js.map +1 -1
  86. package/dist/projection/experimental/lazy-projections/mill.cjs +4 -1
  87. package/dist/projection/experimental/lazy-projections/mill.cjs.map +1 -1
  88. package/dist/projection/experimental/lazy-projections/mill.d.ts.map +1 -1
  89. package/dist/projection/experimental/lazy-projections/mill.js +4 -1
  90. package/dist/projection/experimental/lazy-projections/mill.js.map +1 -1
  91. package/dist/projection/experimental/lazy-projections/moll.cjs +4 -1
  92. package/dist/projection/experimental/lazy-projections/moll.cjs.map +1 -1
  93. package/dist/projection/experimental/lazy-projections/moll.d.ts.map +1 -1
  94. package/dist/projection/experimental/lazy-projections/moll.js +4 -1
  95. package/dist/projection/experimental/lazy-projections/moll.js.map +1 -1
  96. package/dist/projection/experimental/lazy-projections/nzmg.cjs +4 -1
  97. package/dist/projection/experimental/lazy-projections/nzmg.cjs.map +1 -1
  98. package/dist/projection/experimental/lazy-projections/nzmg.d.ts.map +1 -1
  99. package/dist/projection/experimental/lazy-projections/nzmg.js +4 -1
  100. package/dist/projection/experimental/lazy-projections/nzmg.js.map +1 -1
  101. package/dist/projection/experimental/lazy-projections/omerc.cjs +4 -1
  102. package/dist/projection/experimental/lazy-projections/omerc.cjs.map +1 -1
  103. package/dist/projection/experimental/lazy-projections/omerc.d.ts.map +1 -1
  104. package/dist/projection/experimental/lazy-projections/omerc.js +4 -1
  105. package/dist/projection/experimental/lazy-projections/omerc.js.map +1 -1
  106. package/dist/projection/experimental/lazy-projections/ortho.cjs +4 -1
  107. package/dist/projection/experimental/lazy-projections/ortho.cjs.map +1 -1
  108. package/dist/projection/experimental/lazy-projections/ortho.d.ts.map +1 -1
  109. package/dist/projection/experimental/lazy-projections/ortho.js +4 -1
  110. package/dist/projection/experimental/lazy-projections/ortho.js.map +1 -1
  111. package/dist/projection/experimental/lazy-projections/poly.cjs +4 -1
  112. package/dist/projection/experimental/lazy-projections/poly.cjs.map +1 -1
  113. package/dist/projection/experimental/lazy-projections/poly.d.ts.map +1 -1
  114. package/dist/projection/experimental/lazy-projections/poly.js +4 -1
  115. package/dist/projection/experimental/lazy-projections/poly.js.map +1 -1
  116. package/dist/projection/experimental/lazy-projections/robin.cjs +4 -1
  117. package/dist/projection/experimental/lazy-projections/robin.cjs.map +1 -1
  118. package/dist/projection/experimental/lazy-projections/robin.d.ts.map +1 -1
  119. package/dist/projection/experimental/lazy-projections/robin.js +4 -1
  120. package/dist/projection/experimental/lazy-projections/robin.js.map +1 -1
  121. package/dist/projection/experimental/lazy-projections/sinu.cjs +4 -1
  122. package/dist/projection/experimental/lazy-projections/sinu.cjs.map +1 -1
  123. package/dist/projection/experimental/lazy-projections/sinu.d.ts.map +1 -1
  124. package/dist/projection/experimental/lazy-projections/sinu.js +4 -1
  125. package/dist/projection/experimental/lazy-projections/sinu.js.map +1 -1
  126. package/dist/projection/experimental/lazy-projections/stere.cjs +4 -1
  127. package/dist/projection/experimental/lazy-projections/stere.cjs.map +1 -1
  128. package/dist/projection/experimental/lazy-projections/stere.d.ts.map +1 -1
  129. package/dist/projection/experimental/lazy-projections/stere.js +4 -1
  130. package/dist/projection/experimental/lazy-projections/stere.js.map +1 -1
  131. package/dist/projection/experimental/lazy-projections/tpers.cjs +4 -1
  132. package/dist/projection/experimental/lazy-projections/tpers.cjs.map +1 -1
  133. package/dist/projection/experimental/lazy-projections/tpers.d.ts.map +1 -1
  134. package/dist/projection/experimental/lazy-projections/tpers.js +4 -1
  135. package/dist/projection/experimental/lazy-projections/tpers.js.map +1 -1
  136. package/dist/projection/experimental/lazy-projections/vandg.cjs +4 -1
  137. package/dist/projection/experimental/lazy-projections/vandg.cjs.map +1 -1
  138. package/dist/projection/experimental/lazy-projections/vandg.d.ts.map +1 -1
  139. package/dist/projection/experimental/lazy-projections/vandg.js +4 -1
  140. package/dist/projection/experimental/lazy-projections/vandg.js.map +1 -1
  141. package/dist/projection/index.cjs.map +1 -1
  142. package/dist/projection/index.d.ts.map +1 -1
  143. package/dist/projection/index.js.map +1 -1
  144. package/dist/projection/lib/projection.js.map +1 -1
  145. package/dist/projection/pipeline.cjs.map +1 -1
  146. package/dist/projection/transform-analysis.cjs.map +1 -1
  147. package/dist/tasks/index.cjs +181 -84
  148. package/dist/tasks/index.cjs.map +2 -2
  149. package/dist/tasks/terrain-residency.d.ts.map +1 -1
  150. package/dist/tasks/terrain-residency.js +80 -18
  151. package/dist/tasks/terrain-residency.js.map +1 -1
  152. package/dist/terrain/cutout-polygons.d.ts +21 -0
  153. package/dist/terrain/cutout-polygons.d.ts.map +1 -0
  154. package/dist/terrain/cutout-polygons.js +172 -0
  155. package/dist/terrain/cutout-polygons.js.map +1 -0
  156. package/dist/terrain/cutout-region.d.ts +34 -0
  157. package/dist/terrain/cutout-region.d.ts.map +1 -0
  158. package/dist/terrain/cutout-region.js +33 -0
  159. package/dist/terrain/cutout-region.js.map +1 -0
  160. package/dist/terrain/cutout-skirts.d.ts +34 -0
  161. package/dist/terrain/cutout-skirts.d.ts.map +1 -0
  162. package/dist/terrain/cutout-skirts.js +29 -0
  163. package/dist/terrain/cutout-skirts.js.map +1 -0
  164. package/dist/terrain/depression-fill.d.ts +25 -0
  165. package/dist/terrain/depression-fill.d.ts.map +1 -0
  166. package/dist/terrain/depression-fill.js +106 -0
  167. package/dist/terrain/depression-fill.js.map +1 -0
  168. package/dist/terrain/geographic-cutout.d.ts +38 -0
  169. package/dist/terrain/geographic-cutout.d.ts.map +1 -0
  170. package/dist/terrain/geographic-cutout.js +120 -0
  171. package/dist/terrain/geographic-cutout.js.map +1 -0
  172. package/dist/terrain/hydrology.d.ts +42 -0
  173. package/dist/terrain/hydrology.d.ts.map +1 -0
  174. package/dist/terrain/hydrology.js +112 -0
  175. package/dist/terrain/hydrology.js.map +1 -0
  176. package/dist/terrain/index.cjs +1529 -107
  177. package/dist/terrain/index.cjs.map +3 -3
  178. package/dist/terrain/index.d.ts +15 -1
  179. package/dist/terrain/index.d.ts.map +1 -1
  180. package/dist/terrain/index.js +13 -0
  181. package/dist/terrain/index.js.map +1 -1
  182. package/dist/terrain/lod-screen-error.d.ts +28 -0
  183. package/dist/terrain/lod-screen-error.d.ts.map +1 -0
  184. package/dist/terrain/lod-screen-error.js +95 -0
  185. package/dist/terrain/lod-screen-error.js.map +1 -0
  186. package/dist/terrain/lod-select.d.ts +26 -10
  187. package/dist/terrain/lod-select.d.ts.map +1 -1
  188. package/dist/terrain/lod-select.js +27 -14
  189. package/dist/terrain/lod-select.js.map +1 -1
  190. package/dist/terrain/mesh-cutout.d.ts +45 -0
  191. package/dist/terrain/mesh-cutout.d.ts.map +1 -0
  192. package/dist/terrain/mesh-cutout.js +336 -0
  193. package/dist/terrain/mesh-cutout.js.map +1 -0
  194. package/dist/terrain/mesh-skirts.d.ts +8 -2
  195. package/dist/terrain/mesh-skirts.d.ts.map +1 -1
  196. package/dist/terrain/mesh-skirts.js +5 -4
  197. package/dist/terrain/mesh-skirts.js.map +1 -1
  198. package/dist/terrain/mixed-halo-update.d.ts.map +1 -1
  199. package/dist/terrain/mixed-halo-update.js +58 -23
  200. package/dist/terrain/mixed-halo-update.js.map +1 -1
  201. package/dist/terrain/mixed-vertex-halos.d.ts +24 -1
  202. package/dist/terrain/mixed-vertex-halos.d.ts.map +1 -1
  203. package/dist/terrain/mixed-vertex-halos.js +75 -58
  204. package/dist/terrain/mixed-vertex-halos.js.map +1 -1
  205. package/dist/terrain/regional-viewshed.d.ts +55 -0
  206. package/dist/terrain/regional-viewshed.d.ts.map +1 -0
  207. package/dist/terrain/regional-viewshed.js +119 -0
  208. package/dist/terrain/regional-viewshed.js.map +1 -0
  209. package/dist/terrain/sweep-polytope.d.ts +4 -0
  210. package/dist/terrain/sweep-polytope.d.ts.map +1 -1
  211. package/dist/terrain/sweep-polytope.js +15 -5
  212. package/dist/terrain/sweep-polytope.js.map +1 -1
  213. package/dist/terrain/sweep-rotating-capsule.d.ts +17 -0
  214. package/dist/terrain/sweep-rotating-capsule.d.ts.map +1 -0
  215. package/dist/terrain/sweep-rotating-capsule.js +118 -0
  216. package/dist/terrain/sweep-rotating-capsule.js.map +1 -0
  217. package/dist/terrain/sweep-rotation.d.ts +35 -0
  218. package/dist/terrain/sweep-rotation.d.ts.map +1 -0
  219. package/dist/terrain/sweep-rotation.js +114 -0
  220. package/dist/terrain/sweep-rotation.js.map +1 -0
  221. package/dist/terrain/tile-cutout-update.d.ts +73 -0
  222. package/dist/terrain/tile-cutout-update.d.ts.map +1 -0
  223. package/dist/terrain/tile-cutout-update.js +181 -0
  224. package/dist/terrain/tile-cutout-update.js.map +1 -0
  225. package/dist/terrain/tile-cutout.d.ts +33 -0
  226. package/dist/terrain/tile-cutout.d.ts.map +1 -0
  227. package/dist/terrain/tile-cutout.js +93 -0
  228. package/dist/terrain/tile-cutout.js.map +1 -0
  229. package/dist/terrain/watershed-accumulation.d.ts +20 -0
  230. package/dist/terrain/watershed-accumulation.d.ts.map +1 -0
  231. package/dist/terrain/watershed-accumulation.js +53 -0
  232. package/dist/terrain/watershed-accumulation.js.map +1 -0
  233. package/dist/turf/expressions.cjs +4 -4
  234. package/dist/turf/expressions.cjs.map +2 -2
  235. package/dist/turf/expressions.d.ts +2 -2
  236. package/dist/turf/expressions.d.ts.map +1 -1
  237. package/dist/turf/expressions.js +2 -2
  238. package/dist/turf/expressions.js.map +1 -1
  239. package/dist/turf.cjs +25 -25
  240. package/dist/turf.cjs.map +2 -2
  241. package/dist/turf.d.ts +1 -1
  242. package/dist/turf.d.ts.map +1 -1
  243. package/dist/turf.js +2 -2
  244. package/dist/turf.js.map +1 -1
  245. package/dist/web-mercator/assert.d.ts +2 -0
  246. package/dist/web-mercator/assert.d.ts.map +1 -0
  247. package/dist/web-mercator/assert.js +12 -0
  248. package/dist/web-mercator/assert.js.map +1 -0
  249. package/dist/web-mercator/fit-bounds.d.ts +52 -0
  250. package/dist/web-mercator/fit-bounds.d.ts.map +1 -0
  251. package/dist/web-mercator/fit-bounds.js +70 -0
  252. package/dist/web-mercator/fit-bounds.js.map +1 -0
  253. package/dist/web-mercator/fly-to-viewport.d.ts +19 -0
  254. package/dist/web-mercator/fly-to-viewport.d.ts.map +1 -0
  255. package/dist/web-mercator/fly-to-viewport.js +94 -0
  256. package/dist/web-mercator/fly-to-viewport.js.map +1 -0
  257. package/dist/web-mercator/get-bounds.d.ts +3 -0
  258. package/dist/web-mercator/get-bounds.d.ts.map +1 -0
  259. package/dist/web-mercator/get-bounds.js +56 -0
  260. package/dist/web-mercator/get-bounds.js.map +1 -0
  261. package/dist/web-mercator/index.cjs +705 -0
  262. package/dist/web-mercator/index.cjs.map +6 -0
  263. package/dist/web-mercator/index.d.ts +14 -0
  264. package/dist/web-mercator/index.d.ts.map +1 -0
  265. package/dist/web-mercator/index.js +14 -0
  266. package/dist/web-mercator/index.js.map +1 -0
  267. package/dist/web-mercator/math-utils.d.ts +7 -0
  268. package/dist/web-mercator/math-utils.d.ts.map +1 -0
  269. package/dist/web-mercator/math-utils.js +30 -0
  270. package/dist/web-mercator/math-utils.js.map +1 -0
  271. package/dist/web-mercator/mercator-meters.d.ts +29 -0
  272. package/dist/web-mercator/mercator-meters.d.ts.map +1 -0
  273. package/dist/web-mercator/mercator-meters.js +61 -0
  274. package/dist/web-mercator/mercator-meters.js.map +1 -0
  275. package/dist/web-mercator/normalize-viewport-props.d.ts +16 -0
  276. package/dist/web-mercator/normalize-viewport-props.d.ts.map +1 -0
  277. package/dist/web-mercator/normalize-viewport-props.js +45 -0
  278. package/dist/web-mercator/normalize-viewport-props.js.map +1 -0
  279. package/dist/web-mercator/web-mercator-utils.d.ts +192 -0
  280. package/dist/web-mercator/web-mercator-utils.d.ts.map +1 -0
  281. package/dist/web-mercator/web-mercator-utils.js +321 -0
  282. package/dist/web-mercator/web-mercator-utils.js.map +1 -0
  283. package/dist/web-mercator/web-mercator-viewport.d.ts +177 -0
  284. package/dist/web-mercator/web-mercator-viewport.d.ts.map +1 -0
  285. package/dist/web-mercator/web-mercator-viewport.js +276 -0
  286. package/dist/web-mercator/web-mercator-viewport.js.map +1 -0
  287. package/dist/web-mercator.d.ts +1 -1
  288. package/dist/web-mercator.d.ts.map +1 -1
  289. package/dist/web-mercator.js +1 -1
  290. package/dist/web-mercator.js.map +1 -1
  291. package/package.json +19 -458
  292. package/src/crs/index.ts +7 -0
  293. package/src/crs/spatial-reference-metadata.ts +118 -0
  294. package/src/expressions.ts +1 -1
  295. package/src/index.ts +92 -4
  296. package/src/projection/experimental/crs/spatial-reference.ts +1 -6
  297. package/src/projection/experimental/crs/types.ts +1 -1
  298. package/src/projection/experimental/crs/wkt.ts +1 -1
  299. package/src/projection/experimental/crs-descriptor.ts +1 -1
  300. package/src/projection/experimental/lazy-projections/aea.ts +4 -1
  301. package/src/projection/experimental/lazy-projections/bonne.ts +4 -1
  302. package/src/projection/experimental/lazy-projections/cass.ts +4 -1
  303. package/src/projection/experimental/lazy-projections/eck6.ts +4 -1
  304. package/src/projection/experimental/lazy-projections/eqdc.ts +4 -1
  305. package/src/projection/experimental/lazy-projections/eqearth.ts +4 -1
  306. package/src/projection/experimental/lazy-projections/equi.ts +4 -1
  307. package/src/projection/experimental/lazy-projections/geocent.ts +4 -1
  308. package/src/projection/experimental/lazy-projections/geos.ts +4 -1
  309. package/src/projection/experimental/lazy-projections/gnom.ts +4 -1
  310. package/src/projection/experimental/lazy-projections/krovak.ts +4 -1
  311. package/src/projection/experimental/lazy-projections/merc.ts +4 -1
  312. package/src/projection/experimental/lazy-projections/mill.ts +4 -1
  313. package/src/projection/experimental/lazy-projections/moll.ts +4 -1
  314. package/src/projection/experimental/lazy-projections/nzmg.ts +4 -1
  315. package/src/projection/experimental/lazy-projections/omerc.ts +4 -1
  316. package/src/projection/experimental/lazy-projections/ortho.ts +4 -1
  317. package/src/projection/experimental/lazy-projections/poly.ts +4 -1
  318. package/src/projection/experimental/lazy-projections/robin.ts +4 -1
  319. package/src/projection/experimental/lazy-projections/sinu.ts +4 -1
  320. package/src/projection/experimental/lazy-projections/stere.ts +4 -1
  321. package/src/projection/experimental/lazy-projections/tpers.ts +4 -1
  322. package/src/projection/experimental/lazy-projections/vandg.ts +4 -1
  323. package/src/projection/index.ts +1 -1
  324. package/src/projection/lib/projection.ts +1 -1
  325. package/src/tasks/terrain-residency.ts +86 -21
  326. package/src/terrain/cutout-polygons.ts +202 -0
  327. package/src/terrain/cutout-region.ts +54 -0
  328. package/src/terrain/cutout-skirts.ts +52 -0
  329. package/src/terrain/depression-fill.ts +125 -0
  330. package/src/terrain/geographic-cutout.ts +154 -0
  331. package/src/terrain/hydrology.ts +149 -0
  332. package/src/terrain/index.ts +85 -1
  333. package/src/terrain/lod-screen-error.ts +128 -0
  334. package/src/terrain/lod-select.ts +65 -31
  335. package/src/terrain/mesh-cutout.ts +420 -0
  336. package/src/terrain/mesh-skirts.ts +10 -7
  337. package/src/terrain/mixed-halo-update.ts +54 -20
  338. package/src/terrain/mixed-vertex-halos.ts +94 -78
  339. package/src/terrain/regional-viewshed.ts +177 -0
  340. package/src/terrain/sweep-polytope.ts +49 -25
  341. package/src/terrain/sweep-rotating-capsule.ts +139 -0
  342. package/src/terrain/sweep-rotation.ts +149 -0
  343. package/src/terrain/tile-cutout-update.ts +293 -0
  344. package/src/terrain/tile-cutout.ts +123 -0
  345. package/src/terrain/watershed-accumulation.ts +67 -0
  346. package/src/turf/expressions.ts +3 -3
  347. package/src/turf.ts +3 -7
  348. package/src/web-mercator/assert.ts +11 -0
  349. package/src/web-mercator/fit-bounds.ts +132 -0
  350. package/src/web-mercator/fly-to-viewport.ts +157 -0
  351. package/src/web-mercator/get-bounds.ts +62 -0
  352. package/src/web-mercator/index.ts +49 -0
  353. package/src/web-mercator/math-utils.ts +35 -0
  354. package/src/web-mercator/mercator-meters.ts +83 -0
  355. package/src/web-mercator/normalize-viewport-props.ts +58 -0
  356. package/src/web-mercator/web-mercator-utils.ts +468 -0
  357. package/src/web-mercator/web-mercator-viewport.ts +406 -0
  358. package/src/web-mercator.ts +1 -1
  359. package/dist/projection/experimental/index.cjs +0 -11707
  360. package/dist/projection/experimental/index.cjs.map +0 -6
@@ -0,0 +1,118 @@
1
+ // math.gl
2
+ // SPDX-License-Identifier: MIT
3
+ // SPDX-FileCopyrightText: Copyright (c) vis.gl contributors
4
+
5
+ import {createSpatialReference} from './spatial-reference';
6
+ import type {SpatialReference} from './spatial-reference';
7
+
8
+ /** JSON spatial reference for current coordinate values in schema or field metadata. */
9
+ export const SPATIAL_REFERENCE_METADATA_KEY = 'vis.gl:spatial_reference';
10
+
11
+ /**
12
+ * Returns a copy of metadata containing the spatial reference for current coordinate values.
13
+ * Other entries and caller-owned objects are preserved. Invalid descriptors throw.
14
+ */
15
+ export function setSpatialReferenceMetadata(
16
+ metadata: ReadonlyMap<string, string> | undefined,
17
+ spatialReference: SpatialReference
18
+ ): Map<string, string> {
19
+ validateSpatialReference(spatialReference);
20
+ const result = new Map(metadata);
21
+ result.set(SPATIAL_REFERENCE_METADATA_KEY, JSON.stringify(spatialReference));
22
+ return result;
23
+ }
24
+
25
+ /**
26
+ * Reads an immutable spatial reference, or undefined when the metadata key is missing.
27
+ * Malformed JSON or descriptors throw; CRS definitions are not parsed or resolved.
28
+ */
29
+ export function getSpatialReferenceMetadata(
30
+ metadata: ReadonlyMap<string, string> | undefined
31
+ ): SpatialReference | undefined {
32
+ const value = metadata?.get(SPATIAL_REFERENCE_METADATA_KEY);
33
+ if (value === undefined) {
34
+ return undefined;
35
+ }
36
+ const reference: unknown = JSON.parse(value);
37
+ validateSpatialReference(reference);
38
+ return createSpatialReference(reference);
39
+ }
40
+
41
+ /**
42
+ * Resolves a coordinate field's declaration before the schema default.
43
+ * Explicit unknown or absent field references block inheritance. The caller identifies coordinate
44
+ * fields and handles format-specific metadata such as GeoArrow before using this convention.
45
+ */
46
+ export function resolveSpatialReferenceMetadata(
47
+ schemaMetadata: ReadonlyMap<string, string> | undefined,
48
+ fieldMetadata?: ReadonlyMap<string, string>
49
+ ): SpatialReference | undefined {
50
+ return getSpatialReferenceMetadata(fieldMetadata) ?? getSpatialReferenceMetadata(schemaMetadata);
51
+ }
52
+
53
+ /** Validate the descriptor envelope without importing a CRS parser or projection engine. */
54
+ function validateSpatialReference(value: unknown): asserts value is SpatialReference {
55
+ if (
56
+ !isObject(value) ||
57
+ !isReference(value['crs']) ||
58
+ (value['vertical'] !== undefined && !isReference(value['vertical'])) ||
59
+ !['geographic', 'geocentric', 'projected', 'local', 'unknown'].includes(
60
+ value['coordinateFrame'] as string
61
+ ) ||
62
+ !isStringArray(value['coordinateOrder']) ||
63
+ (value['units'] !== undefined && !isStringArray(value['units'])) ||
64
+ (value['coordinateEpoch'] !== undefined &&
65
+ (typeof value['coordinateEpoch'] !== 'number' || !Number.isFinite(value['coordinateEpoch'])))
66
+ ) {
67
+ throw new Error('Invalid spatial reference metadata');
68
+ }
69
+ }
70
+
71
+ /** Check known and unresolved reference variants, including alternate representations. */
72
+ function isReference(value: unknown): boolean {
73
+ if (
74
+ !isObject(value) ||
75
+ !['metadata', 'format-default', 'caller-override', 'legacy-assumption', 'unknown'].includes(
76
+ value['provenance'] as string
77
+ )
78
+ ) {
79
+ return false;
80
+ }
81
+ if (value['state'] === 'unknown' || value['state'] === 'absent') {
82
+ return (
83
+ value['definition'] === undefined &&
84
+ value['representation'] === undefined &&
85
+ value['alternatives'] === undefined
86
+ );
87
+ }
88
+ return (
89
+ (value['state'] === 'explicit' || value['state'] === 'default') &&
90
+ isDefinition(value) &&
91
+ (value['alternatives'] === undefined ||
92
+ (Array.isArray(value['alternatives']) && value['alternatives'].every(isDefinition)))
93
+ );
94
+ }
95
+
96
+ /** Check representation and serialized value shape without validating CRS semantics. */
97
+ function isDefinition(value: unknown): boolean {
98
+ if (!isObject(value)) {
99
+ return false;
100
+ }
101
+ if (value['representation'] === 'projjson') {
102
+ return isObject(value['definition']);
103
+ }
104
+ return (
105
+ ['identifier', 'wkt', 'proj-string', 'opaque'].includes(value['representation'] as string) &&
106
+ typeof value['definition'] === 'string'
107
+ );
108
+ }
109
+
110
+ /** Exclude arrays and null from JSON objects. */
111
+ function isObject(value: unknown): value is Record<string, unknown> {
112
+ return value !== null && typeof value === 'object' && !Array.isArray(value);
113
+ }
114
+
115
+ /** Check coordinate order and unit arrays. */
116
+ function isStringArray(value: unknown): value is string[] {
117
+ return Array.isArray(value) && value['every'](item => typeof item === 'string');
118
+ }
@@ -7,7 +7,7 @@ import {eastNorthUpToFixedFrame} from './ellipsoid-transforms';
7
7
  import {Ellipsoid} from './ellipsoid';
8
8
  import {isWGS84} from './type-utils';
9
9
  import {toDegrees, toRadians} from '@math.gl/core';
10
- import type {ExpressionFunctionLibrary} from '@math.gl/expressions';
10
+ import type {ExpressionFunctionLibrary} from '@math.gl/sql/expressions';
11
11
 
12
12
  /** WGS84 ellipsoid helpers available to the expression evaluator. */
13
13
  export const GEOSPATIAL_FUNCTION_LIBRARY: ExpressionFunctionLibrary = {
package/src/index.ts CHANGED
@@ -27,7 +27,7 @@ export {
27
27
  PROJStringSyntaxError,
28
28
  getCRSSignature,
29
29
  linearUnits
30
- } from './crs/index';
30
+ } from './crs';
31
31
  export type {
32
32
  CRSExecutionIdentity,
33
33
  CRSDefinition,
@@ -83,7 +83,7 @@ export type {
83
83
  CRSRenderingScale,
84
84
  CRSRenderingScaleCallback,
85
85
  CRSUnit
86
- } from './crs/index';
86
+ } from './crs';
87
87
  export {createCRSDictionaryProvider, createCRSResolver, CRSResolutionError} from './crs/resolver';
88
88
  export type {
89
89
  CRSDefinitionProvider,
@@ -191,7 +191,7 @@ export type {
191
191
  SubdivideGeographicCutRingOptions,
192
192
  SubdividedGeographicCutRing
193
193
  } from './geographic-cuts';
194
- export {HeightField, TerrainSampleStatus, createTerrainSkirt} from './terrain/index';
194
+ export {HeightField, TerrainSampleStatus, createTerrainSkirt} from './terrain';
195
195
  export type {
196
196
  HeightFieldProps,
197
197
  TerrainArray,
@@ -203,7 +203,7 @@ export type {
203
203
  TerrainSampleBatch,
204
204
  TerrainSkirtOptions,
205
205
  TerrainSkirtMesh
206
- } from './terrain/index';
206
+ } from './terrain';
207
207
  export {HeightFieldGeometry} from './terrain/geometry';
208
208
  export type {HeightFieldGeometryOptions} from './terrain/geometry';
209
209
  export {GeographicHeightField} from './terrain/geographic';
@@ -392,6 +392,7 @@ export {
392
392
  export {
393
393
  selectTerrainLod,
394
394
  type TerrainLodCandidate,
395
+ type TerrainLodCertifiedView,
395
396
  type TerrainLodView
396
397
  } from './terrain/lod-select';
397
398
  export {stitchTerrainLodCut, type TerrainLodSeam} from './terrain/lod-stitch';
@@ -433,6 +434,10 @@ export {
433
434
  type TerrainPolytopeSweepResult
434
435
  } from './terrain/sweep-polytope';
435
436
 
437
+ export {
438
+ sweepTerrainRotatingCapsule,
439
+ sweepTerrainRotatingSphere
440
+ } from './terrain/sweep-rotating-capsule';
436
441
  export {sweepTerrainCylinder} from './terrain/sweep-cylinder';
437
442
 
438
443
  export {sweepTerrainPlane} from './terrain/sweep-plane';
@@ -443,3 +448,86 @@ export {
443
448
  type TerrainPoleIncidence,
444
449
  type TerrainPoleCoverage
445
450
  } from './terrain/geographic-poles';
451
+
452
+ export {
453
+ sweepTerrainRotatingBox,
454
+ sweepTerrainRotatingPolytope,
455
+ type TerrainRigidMotion,
456
+ type TerrainRotationalSweepResult
457
+ } from './terrain/sweep-rotation';
458
+
459
+ export {
460
+ boundTerrainLodScreenError,
461
+ type TerrainLodErrorBounds,
462
+ type TerrainLodProjection
463
+ } from './terrain/lod-screen-error';
464
+
465
+ export {
466
+ createTerrainRegionalViewshed,
467
+ TerrainRegionalViewStatus,
468
+ type TerrainRegionalViewshed,
469
+ type TerrainRegionalViewshedOptions,
470
+ type TerrainViewshedGrid
471
+ } from './terrain/regional-viewshed';
472
+
473
+ export {
474
+ createTerrainDrainage,
475
+ getTerrainCellMetrics,
476
+ type TerrainCellMetrics,
477
+ type TerrainDrainage,
478
+ type TerrainDrainageOptions
479
+ } from './terrain/hydrology';
480
+
481
+ export {
482
+ fillTerrainDepressions,
483
+ type TerrainDepressionFill,
484
+ type TerrainDepressionFillOptions
485
+ } from './terrain/depression-fill';
486
+
487
+ export {
488
+ splitTerrainMesh,
489
+ createTerrainCutoutSkirts,
490
+ type TerrainCutout,
491
+ type TerrainCutoutInput,
492
+ type TerrainCutoutOptions,
493
+ type TerrainCutoutPiece,
494
+ type SkirtedTerrainCutout,
495
+ type TerrainCutoutSkirtOptions
496
+ } from './terrain';
497
+
498
+ export {
499
+ accumulateTerrainWatersheds,
500
+ type TerrainWatershedAccumulation,
501
+ type TerrainWatershedAccumulationOptions
502
+ } from './terrain/watershed-accumulation';
503
+
504
+ export {
505
+ splitTerrainMeshTiles,
506
+ type TerrainCutoutTile,
507
+ type TerrainTileCutout
508
+ } from './terrain/tile-cutout';
509
+
510
+ export {
511
+ updateTerrainTileCutouts,
512
+ type TerrainCutoutResident,
513
+ type TerrainTileCutoutUpdateOptions,
514
+ type TerrainTileCutoutCache,
515
+ type TerrainTileCutoutUpdate
516
+ } from './terrain/tile-cutout-update';
517
+ export {
518
+ createGeographicTerrainCutoutFrame,
519
+ projectGeographicTerrainCutout,
520
+ unprojectGeographicTerrainCutout,
521
+ type GeographicTerrainCutoutFrame,
522
+ type GeographicTerrainCutoutFrameOptions
523
+ } from './terrain/geographic-cutout';
524
+
525
+ export {
526
+ prepareTerrainCutoutPolygons,
527
+ type TerrainCutoutPolygonOptions
528
+ } from './terrain/cutout-polygons';
529
+ export type {
530
+ TerrainCutoutPolygon,
531
+ TerrainCutoutPolygonSet,
532
+ TerrainCutoutRegion
533
+ } from './terrain/cutout-region';
@@ -1,12 +1,7 @@
1
1
  // math.gl
2
2
  // SPDX-License-Identifier: MIT
3
3
  // SPDX-FileCopyrightText: Copyright (c) vis.gl contributors
4
- import type {
5
- CRSInput,
6
- CRSReference,
7
- ReadonlyCRSDefinition,
8
- SpatialReference
9
- } from '../../../crs/index';
4
+ import type {CRSInput, CRSReference, ReadonlyCRSDefinition, SpatialReference} from '../../../crs';
10
5
  import {TypeScriptCRSError, unsupportedStage} from './types';
11
6
  import type {CRSNormalizationOptions, NormalizedCRS} from './types';
12
7
 
@@ -2,7 +2,7 @@
2
2
  // SPDX-License-Identifier: MIT
3
3
  // SPDX-FileCopyrightText: Copyright (c) vis.gl contributors
4
4
  import type {SpheroidParameters} from '@math.gl/core';
5
- import type {CRSMetadata, ReadonlyCRSDefinition} from '../../../crs/index';
5
+ import type {CRSMetadata, ReadonlyCRSDefinition} from '../../../crs';
6
6
  import type {ProjectionParameters} from '../types';
7
7
  import type {DatumGridReference} from '../grids/types';
8
8
 
@@ -4,7 +4,7 @@
4
4
  // SPDX-FileComment: Original adapter; named-axis fallback inspired by proj4js 2.22.0 / wkt-parser (MIT). See ../../../../PROJ4-LICENSE.md for upstream attribution.
5
5
  import {inferCRSRepresentation} from '../../../crs/spatial-reference';
6
6
  import {parseWKTCRS} from '../../../crs/wkt-crs';
7
- import type {WKTCRSNode} from '../../../crs/index';
7
+ import type {WKTCRSNode} from '../../../crs';
8
8
  import type {CRSParser} from './types';
9
9
  import {unsupportedStage} from './types';
10
10
  import {readStructuredCRS} from './structured';
@@ -2,7 +2,7 @@
2
2
  // SPDX-License-Identifier: MIT
3
3
  // SPDX-FileCopyrightText: Copyright (c) vis.gl contributors
4
4
 
5
- import type {CRSMetadata, CRSUnit} from '../../crs/index';
5
+ import type {CRSMetadata, CRSUnit} from '../../crs';
6
6
  import type {CRSResolver} from '../../crs/resolver';
7
7
  import {normalizeCRS} from './crs/normalize';
8
8
  import {createRenderingScale} from './crs-rendering-scale';
@@ -6,5 +6,8 @@ import {createProjectionDescriptor} from '../projection-descriptor';
6
6
  import type {ProjectionDescriptor} from '../projection-descriptor';
7
7
  export const lazyAlbersEqualArea: ProjectionDescriptor = /* @__PURE__ */ createProjectionDescriptor(
8
8
  {name: 'aea', aliases: ['Albers_Conic_Equal_Area', 'Albers_Equal_Area', 'Albers']},
9
- async () => (await import('@math.gl/geospatial/projection/projections/aea')).albersEqualArea
9
+ async () => {
10
+ const projectionModule = await import('@math.gl/geospatial/projection/projections/aea');
11
+ return projectionModule.albersEqualArea;
12
+ }
10
13
  );
@@ -6,5 +6,8 @@ import {createProjectionDescriptor} from '../projection-descriptor';
6
6
  import type {ProjectionDescriptor} from '../projection-descriptor';
7
7
  export const lazyBonne: ProjectionDescriptor = /* @__PURE__ */ createProjectionDescriptor(
8
8
  {name: 'bonne', aliases: ['Bonne (Werner lat_1=90)']},
9
- async () => (await import('@math.gl/geospatial/projection/projections/bonne')).bonne
9
+ async () => {
10
+ const projectionModule = await import('@math.gl/geospatial/projection/projections/bonne');
11
+ return projectionModule.bonne;
12
+ }
10
13
  );
@@ -6,5 +6,8 @@ import {createProjectionDescriptor} from '../projection-descriptor';
6
6
  import type {ProjectionDescriptor} from '../projection-descriptor';
7
7
  export const lazyCassiniSoldner: ProjectionDescriptor = /* @__PURE__ */ createProjectionDescriptor(
8
8
  {name: 'cass', aliases: ['Cassini', 'Cassini_Soldner']},
9
- async () => (await import('@math.gl/geospatial/projection/projections/cass')).cassiniSoldner
9
+ async () => {
10
+ const projectionModule = await import('@math.gl/geospatial/projection/projections/cass');
11
+ return projectionModule.cassiniSoldner;
12
+ }
10
13
  );
@@ -6,5 +6,8 @@ import {createProjectionDescriptor} from '../projection-descriptor';
6
6
  import type {ProjectionDescriptor} from '../projection-descriptor';
7
7
  export const lazyEckertVI: ProjectionDescriptor = /* @__PURE__ */ createProjectionDescriptor(
8
8
  {name: 'eck6', aliases: ['Eckert_VI']},
9
- async () => (await import('@math.gl/geospatial/projection/projections/eck6')).eckertVI
9
+ async () => {
10
+ const projectionModule = await import('@math.gl/geospatial/projection/projections/eck6');
11
+ return projectionModule.eckertVI;
12
+ }
10
13
  );
@@ -7,5 +7,8 @@ import type {ProjectionDescriptor} from '../projection-descriptor';
7
7
  export const lazyEquidistantConic: ProjectionDescriptor =
8
8
  /* @__PURE__ */ createProjectionDescriptor(
9
9
  {name: 'eqdc', aliases: ['Equidistant_Conic']},
10
- async () => (await import('@math.gl/geospatial/projection/projections/eqdc')).equidistantConic
10
+ async () => {
11
+ const projectionModule = await import('@math.gl/geospatial/projection/projections/eqdc');
12
+ return projectionModule.equidistantConic;
13
+ }
11
14
  );
@@ -6,5 +6,8 @@ import {createProjectionDescriptor} from '../projection-descriptor';
6
6
  import type {ProjectionDescriptor} from '../projection-descriptor';
7
7
  export const lazyEqualEarth: ProjectionDescriptor = /* @__PURE__ */ createProjectionDescriptor(
8
8
  {name: 'eqearth', aliases: ['Equal Earth', 'Equal_Earth']},
9
- async () => (await import('@math.gl/geospatial/projection/projections/eqearth')).equalEarth
9
+ async () => {
10
+ const projectionModule = await import('@math.gl/geospatial/projection/projections/eqearth');
11
+ return projectionModule.equalEarth;
12
+ }
10
13
  );
@@ -6,5 +6,8 @@ import {createProjectionDescriptor} from '../projection-descriptor';
6
6
  import type {ProjectionDescriptor} from '../projection-descriptor';
7
7
  export const lazyEquirectangular: ProjectionDescriptor = /* @__PURE__ */ createProjectionDescriptor(
8
8
  {name: 'equi', aliases: []},
9
- async () => (await import('@math.gl/geospatial/projection/projections/equi')).equirectangular
9
+ async () => {
10
+ const projectionModule = await import('@math.gl/geospatial/projection/projections/equi');
11
+ return projectionModule.equirectangular;
12
+ }
10
13
  );
@@ -6,5 +6,8 @@ import {createProjectionDescriptor} from '../projection-descriptor';
6
6
  import type {ProjectionDescriptor} from '../projection-descriptor';
7
7
  export const lazyGeocentric: ProjectionDescriptor = /* @__PURE__ */ createProjectionDescriptor(
8
8
  {name: 'geocent', aliases: ['Geocentric', 'geocentric', 'Geocent']},
9
- async () => (await import('@math.gl/geospatial/projection/projections/geocent')).geocentric
9
+ async () => {
10
+ const projectionModule = await import('@math.gl/geospatial/projection/projections/geocent');
11
+ return projectionModule.geocentric;
12
+ }
10
13
  );
@@ -6,5 +6,8 @@ import {createProjectionDescriptor} from '../projection-descriptor';
6
6
  import type {ProjectionDescriptor} from '../projection-descriptor';
7
7
  export const lazyGeostationary: ProjectionDescriptor = /* @__PURE__ */ createProjectionDescriptor(
8
8
  {name: 'geos', aliases: ['Geostationary Satellite View', 'Geostationary_Satellite']},
9
- async () => (await import('@math.gl/geospatial/projection/projections/geos')).geostationary
9
+ async () => {
10
+ const projectionModule = await import('@math.gl/geospatial/projection/projections/geos');
11
+ return projectionModule.geostationary;
12
+ }
10
13
  );
@@ -6,5 +6,8 @@ import {createProjectionDescriptor} from '../projection-descriptor';
6
6
  import type {ProjectionDescriptor} from '../projection-descriptor';
7
7
  export const lazyGnomonic: ProjectionDescriptor = /* @__PURE__ */ createProjectionDescriptor(
8
8
  {name: 'gnom', aliases: []},
9
- async () => (await import('@math.gl/geospatial/projection/projections/gnom')).gnomonic
9
+ async () => {
10
+ const projectionModule = await import('@math.gl/geospatial/projection/projections/gnom');
11
+ return projectionModule.gnomonic;
12
+ }
10
13
  );
@@ -14,5 +14,8 @@ export const lazyKrovak: ProjectionDescriptor = /* @__PURE__ */ createProjection
14
14
  'Krovak Modified (North Orientated)'
15
15
  ]
16
16
  },
17
- async () => (await import('@math.gl/geospatial/projection/projections/krovak')).krovak
17
+ async () => {
18
+ const projectionModule = await import('@math.gl/geospatial/projection/projections/krovak');
19
+ return projectionModule.krovak;
20
+ }
18
21
  );
@@ -15,5 +15,8 @@ export const lazyMercator: ProjectionDescriptor = /* @__PURE__ */ createProjecti
15
15
  'Mercator_Variant_A'
16
16
  ]
17
17
  },
18
- async () => (await import('@math.gl/geospatial/projection/projections/merc')).mercator
18
+ async () => {
19
+ const projectionModule = await import('@math.gl/geospatial/projection/projections/merc');
20
+ return projectionModule.mercator;
21
+ }
19
22
  );
@@ -7,5 +7,8 @@ import type {ProjectionDescriptor} from '../projection-descriptor';
7
7
  export const lazyMillerCylindrical: ProjectionDescriptor =
8
8
  /* @__PURE__ */ createProjectionDescriptor(
9
9
  {name: 'mill', aliases: ['Miller_Cylindrical']},
10
- async () => (await import('@math.gl/geospatial/projection/projections/mill')).millerCylindrical
10
+ async () => {
11
+ const projectionModule = await import('@math.gl/geospatial/projection/projections/mill');
12
+ return projectionModule.millerCylindrical;
13
+ }
11
14
  );
@@ -6,5 +6,8 @@ import {createProjectionDescriptor} from '../projection-descriptor';
6
6
  import type {ProjectionDescriptor} from '../projection-descriptor';
7
7
  export const lazyMollweide: ProjectionDescriptor = /* @__PURE__ */ createProjectionDescriptor(
8
8
  {name: 'moll', aliases: ['Mollweide']},
9
- async () => (await import('@math.gl/geospatial/projection/projections/moll')).mollweide
9
+ async () => {
10
+ const projectionModule = await import('@math.gl/geospatial/projection/projections/moll');
11
+ return projectionModule.mollweide;
12
+ }
10
13
  );
@@ -7,5 +7,8 @@ import type {ProjectionDescriptor} from '../projection-descriptor';
7
7
  export const lazyNewZealandMapGrid: ProjectionDescriptor =
8
8
  /* @__PURE__ */ createProjectionDescriptor(
9
9
  {name: 'nzmg', aliases: ['New_Zealand_Map_Grid']},
10
- async () => (await import('@math.gl/geospatial/projection/projections/nzmg')).newZealandMapGrid
10
+ async () => {
11
+ const projectionModule = await import('@math.gl/geospatial/projection/projections/nzmg');
12
+ return projectionModule.newZealandMapGrid;
13
+ }
11
14
  );
@@ -18,5 +18,8 @@ export const lazyObliqueMercator: ProjectionDescriptor = /* @__PURE__ */ createP
18
18
  'Oblique_Mercator'
19
19
  ]
20
20
  },
21
- async () => (await import('@math.gl/geospatial/projection/projections/omerc')).obliqueMercator
21
+ async () => {
22
+ const projectionModule = await import('@math.gl/geospatial/projection/projections/omerc');
23
+ return projectionModule.obliqueMercator;
24
+ }
22
25
  );
@@ -6,5 +6,8 @@ import {createProjectionDescriptor} from '../projection-descriptor';
6
6
  import type {ProjectionDescriptor} from '../projection-descriptor';
7
7
  export const lazyOrthographic: ProjectionDescriptor = /* @__PURE__ */ createProjectionDescriptor(
8
8
  {name: 'ortho', aliases: []},
9
- async () => (await import('@math.gl/geospatial/projection/projections/ortho')).orthographic
9
+ async () => {
10
+ const projectionModule = await import('@math.gl/geospatial/projection/projections/ortho');
11
+ return projectionModule.orthographic;
12
+ }
10
13
  );
@@ -6,5 +6,8 @@ import {createProjectionDescriptor} from '../projection-descriptor';
6
6
  import type {ProjectionDescriptor} from '../projection-descriptor';
7
7
  export const lazyPolyconic: ProjectionDescriptor = /* @__PURE__ */ createProjectionDescriptor(
8
8
  {name: 'poly', aliases: ['Polyconic', 'American_Polyconic']},
9
- async () => (await import('@math.gl/geospatial/projection/projections/poly')).polyconic
9
+ async () => {
10
+ const projectionModule = await import('@math.gl/geospatial/projection/projections/poly');
11
+ return projectionModule.polyconic;
12
+ }
10
13
  );
@@ -6,5 +6,8 @@ import {createProjectionDescriptor} from '../projection-descriptor';
6
6
  import type {ProjectionDescriptor} from '../projection-descriptor';
7
7
  export const lazyRobinson: ProjectionDescriptor = /* @__PURE__ */ createProjectionDescriptor(
8
8
  {name: 'robin', aliases: ['Robinson']},
9
- async () => (await import('@math.gl/geospatial/projection/projections/robin')).robinson
9
+ async () => {
10
+ const projectionModule = await import('@math.gl/geospatial/projection/projections/robin');
11
+ return projectionModule.robinson;
12
+ }
10
13
  );
@@ -6,5 +6,8 @@ import {createProjectionDescriptor} from '../projection-descriptor';
6
6
  import type {ProjectionDescriptor} from '../projection-descriptor';
7
7
  export const lazySinusoidal: ProjectionDescriptor = /* @__PURE__ */ createProjectionDescriptor(
8
8
  {name: 'sinu', aliases: ['Sinusoidal']},
9
- async () => (await import('@math.gl/geospatial/projection/projections/sinu')).sinusoidal
9
+ async () => {
10
+ const projectionModule = await import('@math.gl/geospatial/projection/projections/sinu');
11
+ return projectionModule.sinusoidal;
12
+ }
10
13
  );
@@ -14,5 +14,8 @@ export const lazyStereographic: ProjectionDescriptor = /* @__PURE__ */ createPro
14
14
  'Polar_Stereographic'
15
15
  ]
16
16
  },
17
- async () => (await import('@math.gl/geospatial/projection/projections/stere')).stereographic
17
+ async () => {
18
+ const projectionModule = await import('@math.gl/geospatial/projection/projections/stere');
19
+ return projectionModule.stereographic;
20
+ }
18
21
  );
@@ -7,5 +7,8 @@ import type {ProjectionDescriptor} from '../projection-descriptor';
7
7
  export const lazyTiltedPerspective: ProjectionDescriptor =
8
8
  /* @__PURE__ */ createProjectionDescriptor(
9
9
  {name: 'tpers', aliases: ['Tilted_Perspective']},
10
- async () => (await import('@math.gl/geospatial/projection/projections/tpers')).tiltedPerspective
10
+ async () => {
11
+ const projectionModule = await import('@math.gl/geospatial/projection/projections/tpers');
12
+ return projectionModule.tiltedPerspective;
13
+ }
11
14
  );
@@ -6,5 +6,8 @@ import {createProjectionDescriptor} from '../projection-descriptor';
6
6
  import type {ProjectionDescriptor} from '../projection-descriptor';
7
7
  export const lazyVanDerGrinten: ProjectionDescriptor = /* @__PURE__ */ createProjectionDescriptor(
8
8
  {name: 'vandg', aliases: ['Van_der_Grinten_I', 'VanDerGrinten', 'Van_der_Grinten']},
9
- async () => (await import('@math.gl/geospatial/projection/projections/vandg')).vanDerGrinten
9
+ async () => {
10
+ const projectionModule = await import('@math.gl/geospatial/projection/projections/vandg');
11
+ return projectionModule.vanDerGrinten;
12
+ }
10
13
  );
@@ -2,5 +2,5 @@
2
2
  // SPDX-License-Identifier: MIT
3
3
  // SPDX-FileCopyrightText: Copyright (c) vis.gl contributors
4
4
 
5
- export * from './experimental/index';
5
+ export * from './experimental';
6
6
  export {FullProjectionEngine, projectionEngine} from './lib/projection';
@@ -46,7 +46,7 @@ import {
46
46
  obliqueTransformation,
47
47
  wktCRSParser,
48
48
  projJSONCRSParser
49
- } from '../experimental/index';
49
+ } from '../experimental';
50
50
  import {CORE_PARAMETERS} from '../experimental/crs/normalize';
51
51
  import type {ProjectionPlugin} from '../experimental/types';
52
52