@math.gl/geospatial 5.0.0-beta.9 → 5.0.0-rc.1
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/README.md +3 -3
- package/dist/crs/crs-descriptor-types.d.ts +2 -1
- package/dist/crs/crs-descriptor-types.d.ts.map +1 -1
- package/dist/crs/index.cjs +54 -0
- package/dist/crs/index.cjs.map +2 -2
- package/dist/crs/index.d.ts +1 -0
- package/dist/crs/index.d.ts.map +1 -1
- package/dist/crs/index.js +1 -0
- package/dist/crs/index.js.map +1 -1
- package/dist/crs/spatial-reference-metadata.d.ts +20 -0
- package/dist/crs/spatial-reference-metadata.d.ts.map +1 -0
- package/dist/crs/spatial-reference-metadata.js +86 -0
- package/dist/crs/spatial-reference-metadata.js.map +1 -0
- package/dist/ellipsoid-helpers/ellipsoid-transform.d.ts +1 -1
- package/dist/ellipsoid-helpers/ellipsoid-transform.d.ts.map +1 -1
- package/dist/ellipsoid-helpers/ellipsoid-transform.js +2 -2
- package/dist/ellipsoid-helpers/ellipsoid-transform.js.map +1 -1
- package/dist/ellipsoid-helpers/scale-to-geodetic-surface.js +1 -1
- package/dist/ellipsoid-helpers/scale-to-geodetic-surface.js.map +1 -1
- package/dist/ellipsoid-helpers/tangent-plane-numerics.d.ts +1 -1
- package/dist/ellipsoid-helpers/tangent-plane-numerics.d.ts.map +1 -1
- package/dist/ellipsoid-tangent-plane.d.ts +2 -2
- package/dist/ellipsoid-tangent-plane.d.ts.map +1 -1
- package/dist/ellipsoid-tangent-plane.js +1 -1
- package/dist/ellipsoid-tangent-plane.js.map +1 -1
- package/dist/ellipsoid-transforms.d.ts +2 -2
- package/dist/ellipsoid-transforms.d.ts.map +1 -1
- package/dist/ellipsoid-transforms.js +1 -1
- package/dist/ellipsoid-transforms.js.map +1 -1
- package/dist/ellipsoid.d.ts +2 -2
- package/dist/ellipsoid.d.ts.map +1 -1
- package/dist/ellipsoid.js +2 -2
- package/dist/ellipsoid.js.map +1 -1
- package/dist/expressions.d.ts +1 -1
- package/dist/expressions.d.ts.map +1 -1
- package/dist/expressions.js +1 -1
- package/dist/expressions.js.map +1 -1
- package/dist/geodesic-buffer.d.ts +1 -1
- package/dist/geodesic-buffer.d.ts.map +1 -1
- package/dist/geodesic-path.d.ts +1 -1
- package/dist/geodesic-path.d.ts.map +1 -1
- package/dist/geometry-constructors.d.ts +6 -0
- package/dist/geometry-constructors.d.ts.map +1 -0
- package/dist/geometry-constructors.js +37 -0
- package/dist/geometry-constructors.js.map +1 -0
- package/dist/geometry-inspection.d.ts +8 -0
- package/dist/geometry-inspection.d.ts.map +1 -0
- package/dist/geometry-inspection.js +61 -0
- package/dist/geometry-inspection.js.map +1 -0
- package/dist/index.cjs +2514 -558
- package/dist/index.cjs.map +3 -3
- package/dist/index.d.ts +164 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +106 -0
- package/dist/index.js.map +1 -1
- package/dist/line-simplification.d.ts +4 -0
- package/dist/line-simplification.d.ts.map +1 -0
- package/dist/line-simplification.js +83 -0
- package/dist/line-simplification.js.map +1 -0
- package/dist/linear-referencing.d.ts +6 -0
- package/dist/linear-referencing.d.ts.map +1 -0
- package/dist/linear-referencing.js +74 -0
- package/dist/linear-referencing.js.map +1 -0
- package/dist/lng-lat-rectangle.d.ts +1 -1
- package/dist/lng-lat-rectangle.d.ts.map +1 -1
- package/dist/lng-lat-rectangle.js +1 -1
- package/dist/lng-lat-rectangle.js.map +1 -1
- package/dist/local-reference-frame.d.ts +3 -3
- package/dist/local-reference-frame.d.ts.map +1 -1
- package/dist/local-reference-frame.js +2 -2
- package/dist/local-reference-frame.js.map +1 -1
- package/dist/make-obb-from-region.d.ts +1 -1
- package/dist/make-obb-from-region.d.ts.map +1 -1
- package/dist/make-obb-from-region.js +1 -1
- package/dist/make-obb-from-region.js.map +1 -1
- package/dist/maps/air-ocean-mesh.js +1 -1
- package/dist/maps/air-ocean-mesh.js.map +1 -1
- package/dist/maps/myriahedral/unfold.d.ts +1 -1
- package/dist/maps/myriahedral/unfold.d.ts.map +1 -1
- package/dist/maps/myriahedral/unfold.js +1 -1
- package/dist/maps/myriahedral/unfold.js.map +1 -1
- package/dist/maps/presets.cjs +6 -6
- package/dist/maps/presets.cjs.map +2 -2
- package/dist/maps.cjs +6 -6
- package/dist/maps.cjs.map +2 -2
- package/dist/projection/deformation.cjs +5 -5
- package/dist/projection/deformation.cjs.map +2 -2
- package/dist/projection/experimental/core.cjs +8 -4
- package/dist/projection/experimental/core.cjs.map +1 -1
- package/dist/projection/experimental/crs/spatial-reference.d.ts.map +1 -1
- package/dist/projection/experimental/crs/spatial-reference.js.map +1 -1
- package/dist/projection/experimental/crs/types.d.ts +1 -1
- package/dist/projection/experimental/crs/types.d.ts.map +1 -1
- package/dist/projection/experimental/crs-rendering-scale.d.ts.map +1 -1
- package/dist/projection/experimental/crs-rendering-scale.js +13 -2
- package/dist/projection/experimental/crs-rendering-scale.js.map +1 -1
- package/dist/projection/experimental/datum.js +1 -1
- package/dist/projection/experimental/datum.js.map +1 -1
- package/dist/projection/experimental/entries/projections/geocent.cjs +3 -3
- package/dist/projection/experimental/entries/projections/geocent.cjs.map +1 -1
- package/dist/projection/experimental/lazy-projections/aea.cjs +4 -1
- package/dist/projection/experimental/lazy-projections/aea.cjs.map +1 -1
- package/dist/projection/experimental/lazy-projections/aea.d.ts.map +1 -1
- package/dist/projection/experimental/lazy-projections/aea.js +4 -1
- package/dist/projection/experimental/lazy-projections/aea.js.map +1 -1
- package/dist/projection/experimental/lazy-projections/bonne.cjs +4 -1
- package/dist/projection/experimental/lazy-projections/bonne.cjs.map +1 -1
- package/dist/projection/experimental/lazy-projections/bonne.d.ts.map +1 -1
- package/dist/projection/experimental/lazy-projections/bonne.js +4 -1
- package/dist/projection/experimental/lazy-projections/bonne.js.map +1 -1
- package/dist/projection/experimental/lazy-projections/cass.cjs +4 -1
- package/dist/projection/experimental/lazy-projections/cass.cjs.map +1 -1
- package/dist/projection/experimental/lazy-projections/cass.d.ts.map +1 -1
- package/dist/projection/experimental/lazy-projections/cass.js +4 -1
- package/dist/projection/experimental/lazy-projections/cass.js.map +1 -1
- package/dist/projection/experimental/lazy-projections/eck6.cjs +4 -1
- package/dist/projection/experimental/lazy-projections/eck6.cjs.map +1 -1
- package/dist/projection/experimental/lazy-projections/eck6.d.ts.map +1 -1
- package/dist/projection/experimental/lazy-projections/eck6.js +4 -1
- package/dist/projection/experimental/lazy-projections/eck6.js.map +1 -1
- package/dist/projection/experimental/lazy-projections/eqdc.cjs +4 -1
- package/dist/projection/experimental/lazy-projections/eqdc.cjs.map +1 -1
- package/dist/projection/experimental/lazy-projections/eqdc.d.ts.map +1 -1
- package/dist/projection/experimental/lazy-projections/eqdc.js +4 -1
- package/dist/projection/experimental/lazy-projections/eqdc.js.map +1 -1
- package/dist/projection/experimental/lazy-projections/eqearth.cjs +4 -1
- package/dist/projection/experimental/lazy-projections/eqearth.cjs.map +1 -1
- package/dist/projection/experimental/lazy-projections/eqearth.d.ts.map +1 -1
- package/dist/projection/experimental/lazy-projections/eqearth.js +4 -1
- package/dist/projection/experimental/lazy-projections/eqearth.js.map +1 -1
- package/dist/projection/experimental/lazy-projections/equi.cjs +4 -1
- package/dist/projection/experimental/lazy-projections/equi.cjs.map +1 -1
- package/dist/projection/experimental/lazy-projections/equi.d.ts.map +1 -1
- package/dist/projection/experimental/lazy-projections/equi.js +4 -1
- package/dist/projection/experimental/lazy-projections/equi.js.map +1 -1
- package/dist/projection/experimental/lazy-projections/geocent.cjs +4 -1
- package/dist/projection/experimental/lazy-projections/geocent.cjs.map +1 -1
- package/dist/projection/experimental/lazy-projections/geocent.d.ts.map +1 -1
- package/dist/projection/experimental/lazy-projections/geocent.js +4 -1
- package/dist/projection/experimental/lazy-projections/geocent.js.map +1 -1
- package/dist/projection/experimental/lazy-projections/geos.cjs +4 -1
- package/dist/projection/experimental/lazy-projections/geos.cjs.map +1 -1
- package/dist/projection/experimental/lazy-projections/geos.d.ts.map +1 -1
- package/dist/projection/experimental/lazy-projections/geos.js +4 -1
- package/dist/projection/experimental/lazy-projections/geos.js.map +1 -1
- package/dist/projection/experimental/lazy-projections/gnom.cjs +4 -1
- package/dist/projection/experimental/lazy-projections/gnom.cjs.map +1 -1
- package/dist/projection/experimental/lazy-projections/gnom.d.ts.map +1 -1
- package/dist/projection/experimental/lazy-projections/gnom.js +4 -1
- package/dist/projection/experimental/lazy-projections/gnom.js.map +1 -1
- package/dist/projection/experimental/lazy-projections/index.cjs +100 -27
- package/dist/projection/experimental/lazy-projections/index.cjs.map +1 -1
- package/dist/projection/experimental/lazy-projections/krovak.cjs +4 -1
- package/dist/projection/experimental/lazy-projections/krovak.cjs.map +1 -1
- package/dist/projection/experimental/lazy-projections/krovak.d.ts.map +1 -1
- package/dist/projection/experimental/lazy-projections/krovak.js +4 -1
- package/dist/projection/experimental/lazy-projections/krovak.js.map +1 -1
- package/dist/projection/experimental/lazy-projections/merc.cjs +4 -1
- package/dist/projection/experimental/lazy-projections/merc.cjs.map +1 -1
- package/dist/projection/experimental/lazy-projections/merc.d.ts.map +1 -1
- package/dist/projection/experimental/lazy-projections/merc.js +4 -1
- package/dist/projection/experimental/lazy-projections/merc.js.map +1 -1
- package/dist/projection/experimental/lazy-projections/mill.cjs +4 -1
- package/dist/projection/experimental/lazy-projections/mill.cjs.map +1 -1
- package/dist/projection/experimental/lazy-projections/mill.d.ts.map +1 -1
- package/dist/projection/experimental/lazy-projections/mill.js +4 -1
- package/dist/projection/experimental/lazy-projections/mill.js.map +1 -1
- package/dist/projection/experimental/lazy-projections/moll.cjs +4 -1
- package/dist/projection/experimental/lazy-projections/moll.cjs.map +1 -1
- package/dist/projection/experimental/lazy-projections/moll.d.ts.map +1 -1
- package/dist/projection/experimental/lazy-projections/moll.js +4 -1
- package/dist/projection/experimental/lazy-projections/moll.js.map +1 -1
- package/dist/projection/experimental/lazy-projections/nzmg.cjs +4 -1
- package/dist/projection/experimental/lazy-projections/nzmg.cjs.map +1 -1
- package/dist/projection/experimental/lazy-projections/nzmg.d.ts.map +1 -1
- package/dist/projection/experimental/lazy-projections/nzmg.js +4 -1
- package/dist/projection/experimental/lazy-projections/nzmg.js.map +1 -1
- package/dist/projection/experimental/lazy-projections/omerc.cjs +4 -1
- package/dist/projection/experimental/lazy-projections/omerc.cjs.map +1 -1
- package/dist/projection/experimental/lazy-projections/omerc.d.ts.map +1 -1
- package/dist/projection/experimental/lazy-projections/omerc.js +4 -1
- package/dist/projection/experimental/lazy-projections/omerc.js.map +1 -1
- package/dist/projection/experimental/lazy-projections/ortho.cjs +4 -1
- package/dist/projection/experimental/lazy-projections/ortho.cjs.map +1 -1
- package/dist/projection/experimental/lazy-projections/ortho.d.ts.map +1 -1
- package/dist/projection/experimental/lazy-projections/ortho.js +4 -1
- package/dist/projection/experimental/lazy-projections/ortho.js.map +1 -1
- package/dist/projection/experimental/lazy-projections/poly.cjs +4 -1
- package/dist/projection/experimental/lazy-projections/poly.cjs.map +1 -1
- package/dist/projection/experimental/lazy-projections/poly.d.ts.map +1 -1
- package/dist/projection/experimental/lazy-projections/poly.js +4 -1
- package/dist/projection/experimental/lazy-projections/poly.js.map +1 -1
- package/dist/projection/experimental/lazy-projections/robin.cjs +4 -1
- package/dist/projection/experimental/lazy-projections/robin.cjs.map +1 -1
- package/dist/projection/experimental/lazy-projections/robin.d.ts.map +1 -1
- package/dist/projection/experimental/lazy-projections/robin.js +4 -1
- package/dist/projection/experimental/lazy-projections/robin.js.map +1 -1
- package/dist/projection/experimental/lazy-projections/sinu.cjs +4 -1
- package/dist/projection/experimental/lazy-projections/sinu.cjs.map +1 -1
- package/dist/projection/experimental/lazy-projections/sinu.d.ts.map +1 -1
- package/dist/projection/experimental/lazy-projections/sinu.js +4 -1
- package/dist/projection/experimental/lazy-projections/sinu.js.map +1 -1
- package/dist/projection/experimental/lazy-projections/stere.cjs +4 -1
- package/dist/projection/experimental/lazy-projections/stere.cjs.map +1 -1
- package/dist/projection/experimental/lazy-projections/stere.d.ts.map +1 -1
- package/dist/projection/experimental/lazy-projections/stere.js +4 -1
- package/dist/projection/experimental/lazy-projections/stere.js.map +1 -1
- package/dist/projection/experimental/lazy-projections/tpers.cjs +4 -1
- package/dist/projection/experimental/lazy-projections/tpers.cjs.map +1 -1
- package/dist/projection/experimental/lazy-projections/tpers.d.ts.map +1 -1
- package/dist/projection/experimental/lazy-projections/tpers.js +4 -1
- package/dist/projection/experimental/lazy-projections/tpers.js.map +1 -1
- package/dist/projection/experimental/lazy-projections/vandg.cjs +4 -1
- package/dist/projection/experimental/lazy-projections/vandg.cjs.map +1 -1
- package/dist/projection/experimental/lazy-projections/vandg.d.ts.map +1 -1
- package/dist/projection/experimental/lazy-projections/vandg.js +4 -1
- package/dist/projection/experimental/lazy-projections/vandg.js.map +1 -1
- package/dist/projection/experimental/spatial-deformation.js +1 -1
- package/dist/projection/experimental/spatial-deformation.js.map +1 -1
- package/dist/projection/index.cjs +8 -4
- package/dist/projection/index.cjs.map +1 -1
- package/dist/projection/index.d.ts.map +1 -1
- package/dist/projection/index.js.map +1 -1
- package/dist/projection/lib/projection.js.map +1 -1
- package/dist/projection/pipeline.cjs +3 -3
- package/dist/projection/pipeline.cjs.map +1 -1
- package/dist/projection/temporal.cjs +5 -5
- package/dist/projection/temporal.cjs.map +2 -2
- package/dist/projection/transform-analysis.cjs +3 -3
- package/dist/projection/transform-analysis.cjs.map +1 -1
- package/dist/rhumb-path.d.ts +1 -1
- package/dist/rhumb-path.d.ts.map +1 -1
- package/dist/spatial-planar-intersects.d.ts +4 -0
- package/dist/spatial-planar-intersects.d.ts.map +1 -0
- package/dist/spatial-planar-intersects.js +108 -0
- package/dist/spatial-planar-intersects.js.map +1 -0
- package/dist/spatial-planar.d.ts +16 -0
- package/dist/spatial-planar.d.ts.map +1 -0
- package/dist/spatial-planar.js +240 -0
- package/dist/spatial-planar.js.map +1 -0
- package/dist/spatial-sql.d.ts +45 -0
- package/dist/spatial-sql.d.ts.map +1 -0
- package/dist/spatial-sql.js +192 -0
- package/dist/spatial-sql.js.map +1 -0
- package/dist/st-functions.cjs +1616 -0
- package/dist/st-functions.cjs.map +6 -0
- package/dist/st-functions.d.ts +307 -0
- package/dist/st-functions.d.ts.map +1 -0
- package/dist/st-functions.js +593 -0
- package/dist/st-functions.js.map +1 -0
- package/dist/subdivide-globe-mesh.js +1 -1
- package/dist/subdivide-globe-mesh.js.map +1 -1
- package/dist/tasks/index.cjs +216 -98
- package/dist/tasks/index.cjs.map +2 -2
- package/dist/tasks/terrain-residency.d.ts +9 -0
- package/dist/tasks/terrain-residency.d.ts.map +1 -1
- package/dist/tasks/terrain-residency.js +98 -19
- package/dist/tasks/terrain-residency.js.map +1 -1
- package/dist/terrain/cutout-polygons.d.ts +21 -0
- package/dist/terrain/cutout-polygons.d.ts.map +1 -0
- package/dist/terrain/cutout-polygons.js +172 -0
- package/dist/terrain/cutout-polygons.js.map +1 -0
- package/dist/terrain/cutout-region.d.ts +34 -0
- package/dist/terrain/cutout-region.d.ts.map +1 -0
- package/dist/terrain/cutout-region.js +33 -0
- package/dist/terrain/cutout-region.js.map +1 -0
- package/dist/terrain/cutout-skirts.d.ts +34 -0
- package/dist/terrain/cutout-skirts.d.ts.map +1 -0
- package/dist/terrain/cutout-skirts.js +29 -0
- package/dist/terrain/cutout-skirts.js.map +1 -0
- package/dist/terrain/depression-fill.d.ts +25 -0
- package/dist/terrain/depression-fill.d.ts.map +1 -0
- package/dist/terrain/depression-fill.js +106 -0
- package/dist/terrain/depression-fill.js.map +1 -0
- package/dist/terrain/geographic-cutout.d.ts +38 -0
- package/dist/terrain/geographic-cutout.d.ts.map +1 -0
- package/dist/terrain/geographic-cutout.js +120 -0
- package/dist/terrain/geographic-cutout.js.map +1 -0
- package/dist/terrain/geographic-lod-seams.d.ts +10 -0
- package/dist/terrain/geographic-lod-seams.d.ts.map +1 -0
- package/dist/terrain/geographic-lod-seams.js +100 -0
- package/dist/terrain/geographic-lod-seams.js.map +1 -0
- package/dist/terrain/geographic-neighbor.d.ts +18 -0
- package/dist/terrain/geographic-neighbor.d.ts.map +1 -0
- package/dist/terrain/geographic-neighbor.js +44 -0
- package/dist/terrain/geographic-neighbor.js.map +1 -0
- package/dist/terrain/geographic-poles.d.ts +24 -0
- package/dist/terrain/geographic-poles.d.ts.map +1 -0
- package/dist/terrain/geographic-poles.js +34 -0
- package/dist/terrain/geographic-poles.js.map +1 -0
- package/dist/terrain/hydrology.d.ts +42 -0
- package/dist/terrain/hydrology.d.ts.map +1 -0
- package/dist/terrain/hydrology.js +112 -0
- package/dist/terrain/hydrology.js.map +1 -0
- package/dist/terrain/index.cjs +2135 -161
- package/dist/terrain/index.cjs.map +3 -3
- package/dist/terrain/index.d.ts +23 -1
- package/dist/terrain/index.d.ts.map +1 -1
- package/dist/terrain/index.js +21 -0
- package/dist/terrain/index.js.map +1 -1
- package/dist/terrain/lod-screen-error.d.ts +28 -0
- package/dist/terrain/lod-screen-error.d.ts.map +1 -0
- package/dist/terrain/lod-screen-error.js +95 -0
- package/dist/terrain/lod-screen-error.js.map +1 -0
- package/dist/terrain/lod-select.d.ts +26 -10
- package/dist/terrain/lod-select.d.ts.map +1 -1
- package/dist/terrain/lod-select.js +27 -14
- package/dist/terrain/lod-select.js.map +1 -1
- package/dist/terrain/lod-stitch.d.ts +2 -0
- package/dist/terrain/lod-stitch.d.ts.map +1 -1
- package/dist/terrain/lod-stitch.js +21 -6
- package/dist/terrain/lod-stitch.js.map +1 -1
- package/dist/terrain/mesh-cutout.d.ts +45 -0
- package/dist/terrain/mesh-cutout.d.ts.map +1 -0
- package/dist/terrain/mesh-cutout.js +336 -0
- package/dist/terrain/mesh-cutout.js.map +1 -0
- package/dist/terrain/mesh-skirts.d.ts +8 -2
- package/dist/terrain/mesh-skirts.d.ts.map +1 -1
- package/dist/terrain/mesh-skirts.js +5 -4
- package/dist/terrain/mesh-skirts.js.map +1 -1
- package/dist/terrain/mixed-halo-update.d.ts.map +1 -1
- package/dist/terrain/mixed-halo-update.js +58 -23
- package/dist/terrain/mixed-halo-update.js.map +1 -1
- package/dist/terrain/mixed-vertex-halos.d.ts +24 -1
- package/dist/terrain/mixed-vertex-halos.d.ts.map +1 -1
- package/dist/terrain/mixed-vertex-halos.js +75 -58
- package/dist/terrain/mixed-vertex-halos.js.map +1 -1
- package/dist/terrain/regional-viewshed.d.ts +55 -0
- package/dist/terrain/regional-viewshed.d.ts.map +1 -0
- package/dist/terrain/regional-viewshed.js +119 -0
- package/dist/terrain/regional-viewshed.js.map +1 -0
- package/dist/terrain/surface.d.ts +1 -1
- package/dist/terrain/surface.d.ts.map +1 -1
- package/dist/terrain/surface.js +1 -1
- package/dist/terrain/surface.js.map +1 -1
- package/dist/terrain/sweep-capsule.d.ts +27 -0
- package/dist/terrain/sweep-capsule.d.ts.map +1 -0
- package/dist/terrain/sweep-capsule.js +104 -0
- package/dist/terrain/sweep-capsule.js.map +1 -0
- package/dist/terrain/sweep-cylinder.d.ts +16 -0
- package/dist/terrain/sweep-cylinder.d.ts.map +1 -0
- package/dist/terrain/sweep-cylinder.js +52 -0
- package/dist/terrain/sweep-cylinder.js.map +1 -0
- package/dist/terrain/sweep-plane.d.ts +9 -0
- package/dist/terrain/sweep-plane.d.ts.map +1 -0
- package/dist/terrain/sweep-plane.js +52 -0
- package/dist/terrain/sweep-plane.js.map +1 -0
- package/dist/terrain/sweep-polytope.d.ts +42 -0
- package/dist/terrain/sweep-polytope.d.ts.map +1 -0
- package/dist/terrain/sweep-polytope.js +189 -0
- package/dist/terrain/sweep-polytope.js.map +1 -0
- package/dist/terrain/sweep-rotating-capsule.d.ts +17 -0
- package/dist/terrain/sweep-rotating-capsule.d.ts.map +1 -0
- package/dist/terrain/sweep-rotating-capsule.js +118 -0
- package/dist/terrain/sweep-rotating-capsule.js.map +1 -0
- package/dist/terrain/sweep-rotation.d.ts +35 -0
- package/dist/terrain/sweep-rotation.d.ts.map +1 -0
- package/dist/terrain/sweep-rotation.js +114 -0
- package/dist/terrain/sweep-rotation.js.map +1 -0
- package/dist/terrain/sweep-sphere.d.ts +27 -0
- package/dist/terrain/sweep-sphere.d.ts.map +1 -0
- package/dist/terrain/sweep-sphere.js +69 -0
- package/dist/terrain/sweep-sphere.js.map +1 -0
- package/dist/terrain/tile-cutout-update.d.ts +73 -0
- package/dist/terrain/tile-cutout-update.d.ts.map +1 -0
- package/dist/terrain/tile-cutout-update.js +181 -0
- package/dist/terrain/tile-cutout-update.js.map +1 -0
- package/dist/terrain/tile-cutout.d.ts +33 -0
- package/dist/terrain/tile-cutout.d.ts.map +1 -0
- package/dist/terrain/tile-cutout.js +93 -0
- package/dist/terrain/tile-cutout.js.map +1 -0
- package/dist/terrain/watershed-accumulation.d.ts +20 -0
- package/dist/terrain/watershed-accumulation.d.ts.map +1 -0
- package/dist/terrain/watershed-accumulation.js +53 -0
- package/dist/terrain/watershed-accumulation.js.map +1 -0
- package/dist/triaxial.d.ts +1 -1
- package/dist/triaxial.d.ts.map +1 -1
- package/dist/turf-expressions.cjs +1997 -0
- package/dist/turf-expressions.cjs.map +6 -0
- package/dist/turf-expressions.d.ts +3 -0
- package/dist/turf-expressions.d.ts.map +1 -0
- package/dist/turf-expressions.js +7 -0
- package/dist/turf-expressions.js.map +1 -0
- package/dist/turf-functions.cjs +743 -0
- package/dist/turf-functions.cjs.map +6 -0
- package/dist/turf-functions.d.ts +90 -0
- package/dist/turf-functions.d.ts.map +1 -0
- package/dist/{turf/expressions.js → turf-functions.js} +51 -5
- package/dist/turf-functions.js.map +1 -0
- package/dist/turf.cjs +25 -25
- package/dist/turf.cjs.map +2 -2
- package/dist/turf.d.ts +1 -1
- package/dist/turf.d.ts.map +1 -1
- package/dist/turf.js +2 -2
- package/dist/turf.js.map +1 -1
- package/dist/type-utils.d.ts +1 -1
- package/dist/type-utils.d.ts.map +1 -1
- package/dist/type-utils.js +1 -1
- package/dist/type-utils.js.map +1 -1
- package/dist/web-mercator/assert.d.ts +2 -0
- package/dist/web-mercator/assert.d.ts.map +1 -0
- package/dist/web-mercator/assert.js +12 -0
- package/dist/web-mercator/assert.js.map +1 -0
- package/dist/web-mercator/fit-bounds.d.ts +52 -0
- package/dist/web-mercator/fit-bounds.d.ts.map +1 -0
- package/dist/web-mercator/fit-bounds.js +70 -0
- package/dist/web-mercator/fit-bounds.js.map +1 -0
- package/dist/web-mercator/fly-to-viewport.d.ts +19 -0
- package/dist/web-mercator/fly-to-viewport.d.ts.map +1 -0
- package/dist/web-mercator/fly-to-viewport.js +94 -0
- package/dist/web-mercator/fly-to-viewport.js.map +1 -0
- package/dist/web-mercator/get-bounds.d.ts +3 -0
- package/dist/web-mercator/get-bounds.d.ts.map +1 -0
- package/dist/web-mercator/get-bounds.js +56 -0
- package/dist/web-mercator/get-bounds.js.map +1 -0
- package/dist/web-mercator/index.cjs +705 -0
- package/dist/web-mercator/index.cjs.map +6 -0
- package/dist/web-mercator/index.d.ts +14 -0
- package/dist/web-mercator/index.d.ts.map +1 -0
- package/dist/web-mercator/index.js +14 -0
- package/dist/web-mercator/index.js.map +1 -0
- package/dist/web-mercator/math-utils.d.ts +7 -0
- package/dist/web-mercator/math-utils.d.ts.map +1 -0
- package/dist/web-mercator/math-utils.js +30 -0
- package/dist/web-mercator/math-utils.js.map +1 -0
- package/dist/web-mercator/mercator-meters.d.ts +29 -0
- package/dist/web-mercator/mercator-meters.d.ts.map +1 -0
- package/dist/web-mercator/mercator-meters.js +61 -0
- package/dist/web-mercator/mercator-meters.js.map +1 -0
- package/dist/web-mercator/normalize-viewport-props.d.ts +16 -0
- package/dist/web-mercator/normalize-viewport-props.d.ts.map +1 -0
- package/dist/web-mercator/normalize-viewport-props.js +45 -0
- package/dist/web-mercator/normalize-viewport-props.js.map +1 -0
- package/dist/web-mercator/web-mercator-utils.d.ts +192 -0
- package/dist/web-mercator/web-mercator-utils.d.ts.map +1 -0
- package/dist/web-mercator/web-mercator-utils.js +321 -0
- package/dist/web-mercator/web-mercator-utils.js.map +1 -0
- package/dist/web-mercator/web-mercator-viewport.d.ts +177 -0
- package/dist/web-mercator/web-mercator-viewport.d.ts.map +1 -0
- package/dist/web-mercator/web-mercator-viewport.js +276 -0
- package/dist/web-mercator/web-mercator-viewport.js.map +1 -0
- package/dist/web-mercator.d.ts +1 -1
- package/dist/web-mercator.d.ts.map +1 -1
- package/dist/web-mercator.js +1 -1
- package/dist/web-mercator.js.map +1 -1
- package/package.json +34 -462
- package/src/crs/crs-descriptor-types.ts +2 -1
- package/src/crs/index.ts +7 -0
- package/src/crs/spatial-reference-metadata.ts +118 -0
- package/src/ellipsoid-helpers/ellipsoid-transform.ts +3 -3
- package/src/ellipsoid-helpers/scale-to-geodetic-surface.ts +1 -1
- package/src/ellipsoid-helpers/tangent-plane-numerics.ts +1 -1
- package/src/ellipsoid-tangent-plane.ts +2 -2
- package/src/ellipsoid-transforms.ts +2 -2
- package/src/ellipsoid.ts +7 -3
- package/src/expressions.ts +2 -2
- package/src/geodesic-buffer.ts +1 -1
- package/src/geodesic-path.ts +1 -1
- package/src/geometry-constructors.ts +36 -0
- package/src/geometry-inspection.ts +66 -0
- package/src/index.ts +271 -4
- package/src/line-simplification.ts +97 -0
- package/src/linear-referencing.ts +94 -0
- package/src/lng-lat-rectangle.ts +1 -1
- package/src/local-reference-frame.ts +4 -4
- package/src/make-obb-from-region.ts +9 -1
- package/src/maps/air-ocean-mesh.ts +1 -1
- package/src/maps/myriahedral/unfold.ts +1 -1
- package/src/projection/experimental/crs/spatial-reference.ts +1 -6
- package/src/projection/experimental/crs/types.ts +2 -2
- package/src/projection/experimental/crs/wkt.ts +1 -1
- package/src/projection/experimental/crs-descriptor.ts +1 -1
- package/src/projection/experimental/crs-rendering-scale.ts +16 -4
- package/src/projection/experimental/datum.ts +1 -1
- package/src/projection/experimental/lazy-projections/aea.ts +4 -1
- package/src/projection/experimental/lazy-projections/bonne.ts +4 -1
- package/src/projection/experimental/lazy-projections/cass.ts +4 -1
- package/src/projection/experimental/lazy-projections/eck6.ts +4 -1
- package/src/projection/experimental/lazy-projections/eqdc.ts +4 -1
- package/src/projection/experimental/lazy-projections/eqearth.ts +4 -1
- package/src/projection/experimental/lazy-projections/equi.ts +4 -1
- package/src/projection/experimental/lazy-projections/geocent.ts +4 -1
- package/src/projection/experimental/lazy-projections/geos.ts +4 -1
- package/src/projection/experimental/lazy-projections/gnom.ts +4 -1
- package/src/projection/experimental/lazy-projections/krovak.ts +4 -1
- package/src/projection/experimental/lazy-projections/merc.ts +4 -1
- package/src/projection/experimental/lazy-projections/mill.ts +4 -1
- package/src/projection/experimental/lazy-projections/moll.ts +4 -1
- package/src/projection/experimental/lazy-projections/nzmg.ts +4 -1
- package/src/projection/experimental/lazy-projections/omerc.ts +4 -1
- package/src/projection/experimental/lazy-projections/ortho.ts +4 -1
- package/src/projection/experimental/lazy-projections/poly.ts +4 -1
- package/src/projection/experimental/lazy-projections/robin.ts +4 -1
- package/src/projection/experimental/lazy-projections/sinu.ts +4 -1
- package/src/projection/experimental/lazy-projections/stere.ts +4 -1
- package/src/projection/experimental/lazy-projections/tpers.ts +4 -1
- package/src/projection/experimental/lazy-projections/vandg.ts +4 -1
- package/src/projection/experimental/spatial-deformation.ts +1 -1
- package/src/projection/index.ts +1 -1
- package/src/projection/lib/projection.ts +1 -1
- package/src/rhumb-path.ts +1 -1
- package/src/spatial-planar-intersects.ts +134 -0
- package/src/spatial-planar.ts +266 -0
- package/src/spatial-sql.ts +276 -0
- package/src/st-functions.ts +852 -0
- package/src/subdivide-globe-mesh.ts +1 -1
- package/src/tasks/terrain-residency.ts +120 -24
- package/src/terrain/cutout-polygons.ts +202 -0
- package/src/terrain/cutout-region.ts +54 -0
- package/src/terrain/cutout-skirts.ts +52 -0
- package/src/terrain/depression-fill.ts +125 -0
- package/src/terrain/geographic-cutout.ts +154 -0
- package/src/terrain/geographic-lod-seams.ts +109 -0
- package/src/terrain/geographic-neighbor.ts +58 -0
- package/src/terrain/geographic-poles.ts +52 -0
- package/src/terrain/hydrology.ts +149 -0
- package/src/terrain/index.ts +122 -1
- package/src/terrain/lod-screen-error.ts +128 -0
- package/src/terrain/lod-select.ts +65 -31
- package/src/terrain/lod-stitch.ts +25 -7
- package/src/terrain/mesh-cutout.ts +420 -0
- package/src/terrain/mesh-skirts.ts +10 -7
- package/src/terrain/mixed-halo-update.ts +54 -20
- package/src/terrain/mixed-vertex-halos.ts +94 -78
- package/src/terrain/regional-viewshed.ts +177 -0
- package/src/terrain/surface.ts +1 -1
- package/src/terrain/sweep-capsule.ts +148 -0
- package/src/terrain/sweep-cylinder.ts +64 -0
- package/src/terrain/sweep-plane.ts +61 -0
- package/src/terrain/sweep-polytope.ts +253 -0
- package/src/terrain/sweep-rotating-capsule.ts +139 -0
- package/src/terrain/sweep-rotation.ts +149 -0
- package/src/terrain/sweep-sphere.ts +100 -0
- package/src/terrain/tile-cutout-update.ts +293 -0
- package/src/terrain/tile-cutout.ts +123 -0
- package/src/terrain/watershed-accumulation.ts +67 -0
- package/src/triaxial.ts +1 -1
- package/src/turf-expressions.ts +7 -0
- package/src/{turf/expressions.ts → turf-functions.ts} +121 -6
- package/src/turf.ts +3 -7
- package/src/type-utils.ts +2 -2
- package/src/web-mercator/assert.ts +11 -0
- package/src/web-mercator/fit-bounds.ts +132 -0
- package/src/web-mercator/fly-to-viewport.ts +157 -0
- package/src/web-mercator/get-bounds.ts +62 -0
- package/src/web-mercator/index.ts +49 -0
- package/src/web-mercator/math-utils.ts +35 -0
- package/src/web-mercator/mercator-meters.ts +83 -0
- package/src/web-mercator/normalize-viewport-props.ts +58 -0
- package/src/web-mercator/web-mercator-utils.ts +468 -0
- package/src/web-mercator/web-mercator-viewport.ts +406 -0
- package/src/web-mercator.ts +1 -1
- package/dist/projection/experimental/index.cjs +0 -11707
- package/dist/projection/experimental/index.cjs.map +0 -6
- package/dist/turf/expressions.cjs +0 -87
- package/dist/turf/expressions.cjs.map +0 -6
- package/dist/turf/expressions.d.ts +0 -24
- package/dist/turf/expressions.d.ts.map +0 -1
- package/dist/turf/expressions.js.map +0 -1
package/src/index.ts
CHANGED
|
@@ -7,6 +7,7 @@ export * from './globe';
|
|
|
7
7
|
export * from './tiles';
|
|
8
8
|
|
|
9
9
|
// Public named exports. Implementations remain in independently tree-shakable files.
|
|
10
|
+
/** @deprecated Import these APIs from `@math.gl/geospatial/crs`. */
|
|
10
11
|
export {
|
|
11
12
|
PROJJSON_SCHEMA_URL,
|
|
12
13
|
PROJJSON_SCHEMA_VERSION,
|
|
@@ -27,7 +28,8 @@ export {
|
|
|
27
28
|
PROJStringSyntaxError,
|
|
28
29
|
getCRSSignature,
|
|
29
30
|
linearUnits
|
|
30
|
-
} from './crs
|
|
31
|
+
} from './crs';
|
|
32
|
+
/** @deprecated Import these APIs from `@math.gl/geospatial/crs`. */
|
|
31
33
|
export type {
|
|
32
34
|
CRSExecutionIdentity,
|
|
33
35
|
CRSDefinition,
|
|
@@ -83,8 +85,10 @@ export type {
|
|
|
83
85
|
CRSRenderingScale,
|
|
84
86
|
CRSRenderingScaleCallback,
|
|
85
87
|
CRSUnit
|
|
86
|
-
} from './crs
|
|
88
|
+
} from './crs';
|
|
89
|
+
/** @deprecated Import these APIs from `@math.gl/geospatial/crs`. */
|
|
87
90
|
export {createCRSDictionaryProvider, createCRSResolver, CRSResolutionError} from './crs/resolver';
|
|
91
|
+
/** @deprecated Import these APIs from `@math.gl/geospatial/crs`. */
|
|
88
92
|
export type {
|
|
89
93
|
CRSDefinitionProvider,
|
|
90
94
|
CRSLookup,
|
|
@@ -92,6 +96,7 @@ export type {
|
|
|
92
96
|
CRSResolverOptions,
|
|
93
97
|
CRSResolver
|
|
94
98
|
} from './crs/resolver';
|
|
99
|
+
/** @deprecated Import these APIs from `@math.gl/geospatial/web-mercator`. */
|
|
95
100
|
export {
|
|
96
101
|
WebMercatorViewport,
|
|
97
102
|
getBounds,
|
|
@@ -124,6 +129,7 @@ export {
|
|
|
124
129
|
EPSG4326ToEPSG3857,
|
|
125
130
|
EPSG3857ToEPSG4326
|
|
126
131
|
} from './web-mercator';
|
|
132
|
+
/** @deprecated Import these APIs from `@math.gl/geospatial/web-mercator`. */
|
|
127
133
|
export type {EPSG3857Options, FitBoundsOptions, DistanceScales} from './web-mercator';
|
|
128
134
|
|
|
129
135
|
export {GEOSPATIAL_FUNCTION_LIBRARY} from './expressions';
|
|
@@ -191,7 +197,9 @@ export type {
|
|
|
191
197
|
SubdivideGeographicCutRingOptions,
|
|
192
198
|
SubdividedGeographicCutRing
|
|
193
199
|
} from './geographic-cuts';
|
|
194
|
-
|
|
200
|
+
/** @deprecated Import these APIs from `@math.gl/geospatial/terrain`. */
|
|
201
|
+
export {HeightField, TerrainSampleStatus, createTerrainSkirt} from './terrain';
|
|
202
|
+
/** @deprecated Import these APIs from `@math.gl/geospatial/terrain`. */
|
|
195
203
|
export type {
|
|
196
204
|
HeightFieldProps,
|
|
197
205
|
TerrainArray,
|
|
@@ -203,12 +211,18 @@ export type {
|
|
|
203
211
|
TerrainSampleBatch,
|
|
204
212
|
TerrainSkirtOptions,
|
|
205
213
|
TerrainSkirtMesh
|
|
206
|
-
} from './terrain
|
|
214
|
+
} from './terrain';
|
|
215
|
+
/** @deprecated Import these APIs from `@math.gl/geospatial/terrain`. */
|
|
207
216
|
export {HeightFieldGeometry} from './terrain/geometry';
|
|
217
|
+
/** @deprecated Import these APIs from `@math.gl/geospatial/terrain`. */
|
|
208
218
|
export type {HeightFieldGeometryOptions} from './terrain/geometry';
|
|
219
|
+
/** @deprecated Import these APIs from `@math.gl/geospatial/terrain`. */
|
|
209
220
|
export {GeographicHeightField} from './terrain/geographic';
|
|
221
|
+
/** @deprecated Import these APIs from `@math.gl/geospatial/terrain`. */
|
|
210
222
|
export type {GeographicHeightFieldProps} from './terrain/geographic';
|
|
223
|
+
/** @deprecated Import these APIs from `@math.gl/geospatial/terrain`. */
|
|
211
224
|
export {TiledHeightField} from './terrain/tiled';
|
|
225
|
+
/** @deprecated Import these APIs from `@math.gl/geospatial/terrain`. */
|
|
212
226
|
export type {
|
|
213
227
|
TerrainTileId,
|
|
214
228
|
TerrainHaloChange,
|
|
@@ -217,13 +231,17 @@ export type {
|
|
|
217
231
|
TiledHeightFieldProps,
|
|
218
232
|
TiledTerrainSample
|
|
219
233
|
} from './terrain/tiled';
|
|
234
|
+
/** @deprecated Import these APIs from `@math.gl/geospatial/terrain`. */
|
|
220
235
|
export {
|
|
221
236
|
packTerrainHeightField,
|
|
222
237
|
unpackTerrainHeightField,
|
|
223
238
|
TERRAIN_BUFFER_VERSION
|
|
224
239
|
} from './terrain/packed';
|
|
240
|
+
/** @deprecated Import these APIs from `@math.gl/geospatial/terrain`. */
|
|
225
241
|
export type {PackedTerrain, PackTerrainOptions} from './terrain/packed';
|
|
242
|
+
/** @deprecated Import these APIs from `@math.gl/geospatial/terrain`. */
|
|
226
243
|
export {createTerrainSurface, TerrainSurface} from './terrain/surface';
|
|
244
|
+
/** @deprecated Import these APIs from `@math.gl/geospatial/terrain`. */
|
|
227
245
|
export type {
|
|
228
246
|
TerrainSurfaceProps,
|
|
229
247
|
TerrainSurfaceSample,
|
|
@@ -236,140 +254,235 @@ export type {
|
|
|
236
254
|
TerrainCapsuleContact,
|
|
237
255
|
TerrainSurfaceTopology
|
|
238
256
|
} from './terrain/surface';
|
|
257
|
+
/** @deprecated Import these APIs from `@math.gl/geospatial/terrain`. */
|
|
239
258
|
export {HeightFieldMinMax} from './terrain/bounds';
|
|
259
|
+
/** @deprecated Import these APIs from `@math.gl/geospatial/terrain`. */
|
|
240
260
|
export type {TerrainCellWindow, TerrainHeightBounds, TerrainBoundsLevel} from './terrain/bounds';
|
|
261
|
+
/** @deprecated Import these APIs from `@math.gl/geospatial/terrain`. */
|
|
241
262
|
export {createTerrainMesh} from './terrain/mesh';
|
|
263
|
+
/** @deprecated Import these APIs from `@math.gl/geospatial/terrain`. */
|
|
242
264
|
export type {TerrainGridMesh, TerrainMeshOptions} from './terrain/mesh';
|
|
265
|
+
/** @deprecated Import these APIs from `@math.gl/geospatial/terrain`. */
|
|
243
266
|
export {measureTerrainMeshError} from './terrain/mesh-error';
|
|
267
|
+
/** @deprecated Import these APIs from `@math.gl/geospatial/terrain`. */
|
|
244
268
|
export type {TerrainMeshError} from './terrain/mesh-error';
|
|
269
|
+
/** @deprecated Import these APIs from `@math.gl/geospatial/terrain`. */
|
|
245
270
|
export {getTerrainMeshEdge} from './terrain/mesh-edges';
|
|
271
|
+
/** @deprecated Import these APIs from `@math.gl/geospatial/terrain`. */
|
|
246
272
|
export type {TerrainMeshEdge} from './terrain/mesh-edges';
|
|
273
|
+
/** @deprecated Import these APIs from `@math.gl/geospatial/terrain`. */
|
|
247
274
|
export {createMartiniTerrainMesh} from './terrain/martini';
|
|
275
|
+
/** @deprecated Import these APIs from `@math.gl/geospatial/terrain`. */
|
|
248
276
|
export type {AdaptiveTerrainMesh, MartiniTerrainMeshOptions} from './terrain/martini';
|
|
277
|
+
/** @deprecated Import these APIs from `@math.gl/geospatial/terrain`. */
|
|
249
278
|
export {createDelatinTerrainMesh} from './terrain/delatin';
|
|
279
|
+
/** @deprecated Import these APIs from `@math.gl/geospatial/terrain`. */
|
|
250
280
|
export type {DelatinTerrainMeshOptions} from './terrain/delatin';
|
|
281
|
+
/** @deprecated Import these APIs from `@math.gl/geospatial/terrain`. */
|
|
251
282
|
export {createTerrainGradientGrid} from './terrain/derivatives';
|
|
283
|
+
/** @deprecated Import these APIs from `@math.gl/geospatial/terrain`. */
|
|
252
284
|
export type {TerrainGradientMethod, TerrainGradientGrid} from './terrain/derivatives';
|
|
285
|
+
/** @deprecated Import these APIs from `@math.gl/geospatial/terrain`. */
|
|
253
286
|
export {getTerrainSlopeAspect, createTerrainSlopeAspectGrid} from './terrain/slope-aspect';
|
|
287
|
+
/** @deprecated Import these APIs from `@math.gl/geospatial/terrain`. */
|
|
254
288
|
export type {TerrainSlopeAspectGrid} from './terrain/slope-aspect';
|
|
289
|
+
/** @deprecated Import these APIs from `@math.gl/geospatial/terrain`. */
|
|
255
290
|
export {sampleTerrainProfile} from './terrain/profile';
|
|
291
|
+
/** @deprecated Import these APIs from `@math.gl/geospatial/terrain`. */
|
|
256
292
|
export type {TerrainProfileSampler, TerrainProfile} from './terrain/profile';
|
|
293
|
+
/** @deprecated Import these APIs from `@math.gl/geospatial/terrain`. */
|
|
257
294
|
export {createTerrainContours} from './terrain/contours';
|
|
295
|
+
/** @deprecated Import these APIs from `@math.gl/geospatial/terrain`. */
|
|
258
296
|
export type {TerrainContours, TerrainContourOptions} from './terrain/contours';
|
|
297
|
+
/** @deprecated Import these APIs from `@math.gl/geospatial/terrain`. */
|
|
259
298
|
export {stitchTerrainContours} from './terrain/contour-paths';
|
|
299
|
+
/** @deprecated Import these APIs from `@math.gl/geospatial/terrain`. */
|
|
260
300
|
export {weldTerrainContourTiles} from './terrain/contour-tile-weld';
|
|
301
|
+
/** @deprecated Import these APIs from `@math.gl/geospatial/terrain`. */
|
|
261
302
|
export {
|
|
262
303
|
diagnoseTerrainContourBoundaries,
|
|
263
304
|
TerrainContourBoundaryAxis
|
|
264
305
|
} from './terrain/contour-boundary-diagnostics';
|
|
306
|
+
/** @deprecated Import these APIs from `@math.gl/geospatial/terrain`. */
|
|
265
307
|
export type {TerrainContourBoundaryDiagnostics} from './terrain/contour-boundary-diagnostics';
|
|
308
|
+
/** @deprecated Import these APIs from `@math.gl/geospatial/terrain`. */
|
|
266
309
|
export {stitchTerrainContourTiles} from './terrain/contour-tile-paths';
|
|
310
|
+
/** @deprecated Import these APIs from `@math.gl/geospatial/terrain`. */
|
|
267
311
|
export {createTerrainGradientPyramid} from './terrain/gradient-pyramid';
|
|
312
|
+
/** @deprecated Import these APIs from `@math.gl/geospatial/terrain`. */
|
|
268
313
|
export type {TerrainGradientPyramid, TerrainGradientPyramidLevel} from './terrain/gradient-pyramid';
|
|
314
|
+
/** @deprecated Import these APIs from `@math.gl/geospatial/terrain`. */
|
|
269
315
|
export type {TerrainContourTile, TerrainContourTileWeldOptions} from './terrain/contour-tile-weld';
|
|
316
|
+
/** @deprecated Import these APIs from `@math.gl/geospatial/terrain`. */
|
|
270
317
|
export type {TerrainContourPaths, TerrainContourPathLimits} from './terrain/contour-paths';
|
|
318
|
+
/** @deprecated Import these APIs from `@math.gl/geospatial/terrain`. */
|
|
271
319
|
export {simplifyTerrainContourPaths} from './terrain/contour-simplify';
|
|
320
|
+
/** @deprecated Import these APIs from `@math.gl/geospatial/terrain`. */
|
|
272
321
|
export type {TerrainSimplifiedContourPaths} from './terrain/contour-simplify';
|
|
322
|
+
/** @deprecated Import these APIs from `@math.gl/geospatial/terrain`. */
|
|
273
323
|
export {measureTerrainProfile} from './terrain/profile-measure';
|
|
324
|
+
/** @deprecated Import these APIs from `@math.gl/geospatial/terrain`. */
|
|
274
325
|
export {getTerrainProfileVisibility} from './terrain/profile-visibility';
|
|
326
|
+
/** @deprecated Import these APIs from `@math.gl/geospatial/terrain`. */
|
|
275
327
|
export type {TerrainProfileVisibility} from './terrain/profile-visibility';
|
|
328
|
+
/** @deprecated Import these APIs from `@math.gl/geospatial/terrain`. */
|
|
276
329
|
export {getTerrainProfileHorizon} from './terrain/profile-horizon';
|
|
330
|
+
/** @deprecated Import these APIs from `@math.gl/geospatial/terrain`. */
|
|
277
331
|
export type {TerrainProfileHorizon, TerrainProfileHorizonOptions} from './terrain/profile-horizon';
|
|
332
|
+
/** @deprecated Import these APIs from `@math.gl/geospatial/terrain`. */
|
|
278
333
|
export {getTerrainProfileViewshed, TerrainProfileViewStatus} from './terrain/profile-viewshed';
|
|
334
|
+
/** @deprecated Import these APIs from `@math.gl/geospatial/terrain`. */
|
|
279
335
|
export type {TerrainProfileMeasurements} from './terrain/profile-measure';
|
|
336
|
+
/** @deprecated Import these APIs from `@math.gl/geospatial/terrain`. */
|
|
280
337
|
export {reconcileTerrainVertexTiles} from './terrain/vertex-tiles';
|
|
338
|
+
/** @deprecated Import these APIs from `@math.gl/geospatial/terrain`. */
|
|
281
339
|
export {createTerrainVertexTileHalos, TerrainVertexHaloStatus} from './terrain/vertex-halos';
|
|
340
|
+
/** @deprecated Import these APIs from `@math.gl/geospatial/terrain`. */
|
|
282
341
|
export type {TerrainVertexHaloTile} from './terrain/vertex-halos';
|
|
342
|
+
/** @deprecated Import these APIs from `@math.gl/geospatial/terrain`. */
|
|
283
343
|
export {getTerrainVertexHaloAffectedTiles} from './terrain/vertex-halo-invalidation';
|
|
344
|
+
/** @deprecated Import these APIs from `@math.gl/geospatial/terrain`. */
|
|
284
345
|
export type {TerrainVertexTileAddress} from './terrain/vertex-halo-invalidation';
|
|
346
|
+
/** @deprecated Import these APIs from `@math.gl/geospatial/terrain`. */
|
|
285
347
|
export {updateTerrainVertexTileHalos} from './terrain/vertex-halo-update';
|
|
348
|
+
/** @deprecated Import these APIs from `@math.gl/geospatial/terrain`. */
|
|
286
349
|
export {createTerrainFilteredPyramid} from './terrain/filtered-pyramid';
|
|
350
|
+
/** @deprecated Import these APIs from `@math.gl/geospatial/terrain`. */
|
|
287
351
|
export type {TerrainFilteredLevel} from './terrain/filtered-pyramid';
|
|
352
|
+
/** @deprecated Import these APIs from `@math.gl/geospatial/terrain`. */
|
|
288
353
|
export type {
|
|
289
354
|
TerrainVertexTile,
|
|
290
355
|
TerrainVertexTileOptions,
|
|
291
356
|
ReconciledTerrainVertexTile
|
|
292
357
|
} from './terrain/vertex-tiles';
|
|
358
|
+
/** @deprecated Import these APIs from `@math.gl/geospatial/terrain`. */
|
|
293
359
|
export {stitchTerrainMeshEdges} from './terrain/mesh-stitch';
|
|
360
|
+
/** @deprecated Import these APIs from `@math.gl/geospatial/terrain`. */
|
|
294
361
|
export type {TerrainSeamMesh, TerrainMeshStitchOptions} from './terrain/mesh-stitch';
|
|
295
362
|
|
|
363
|
+
/** @deprecated Import these APIs from `@math.gl/geospatial/terrain`. */
|
|
296
364
|
export {weldTerrainMixedContourTiles} from './terrain/contour-mixed-weld';
|
|
365
|
+
/** @deprecated Import these APIs from `@math.gl/geospatial/terrain`. */
|
|
297
366
|
export type {
|
|
298
367
|
TerrainMixedContourTile,
|
|
299
368
|
TerrainMixedContourWeldOptions
|
|
300
369
|
} from './terrain/contour-mixed-weld';
|
|
301
370
|
|
|
371
|
+
/** @deprecated Import these APIs from `@math.gl/geospatial/terrain`. */
|
|
302
372
|
export {createTerrainMixedVertexTileHalos} from './terrain/mixed-vertex-halos';
|
|
373
|
+
/** @deprecated Import these APIs from `@math.gl/geospatial/terrain`. */
|
|
303
374
|
export type {TerrainMixedVertexTile} from './terrain/mixed-vertex-halos';
|
|
304
375
|
|
|
376
|
+
/** @deprecated Import these APIs from `@math.gl/geospatial/terrain`. */
|
|
305
377
|
export {updateTerrainMixedVertexTileHalos} from './terrain/mixed-halo-update';
|
|
306
378
|
|
|
379
|
+
/** @deprecated Import these APIs from `@math.gl/geospatial/terrain`. */
|
|
307
380
|
export {updateTerrainMixedGradientGrids} from './terrain/mixed-gradient-update';
|
|
308
381
|
|
|
382
|
+
/** @deprecated Import these APIs from `@math.gl/geospatial/terrain`. */
|
|
309
383
|
export {simplifyTerrainContourPathsTopology} from './terrain/contour-topology';
|
|
384
|
+
/** @deprecated Import these APIs from `@math.gl/geospatial/terrain`. */
|
|
310
385
|
export type {TerrainMixedHaloSnapshot} from './terrain/mixed-halo-update';
|
|
386
|
+
/** @deprecated Import these APIs from `@math.gl/geospatial/terrain`. */
|
|
311
387
|
export type {TerrainMixedGradientSnapshot} from './terrain/mixed-gradient-update';
|
|
312
388
|
|
|
389
|
+
/** @deprecated Import these APIs from `@math.gl/geospatial/terrain`. */
|
|
313
390
|
export {createTerrainIsobands} from './terrain/isobands';
|
|
391
|
+
/** @deprecated Import these APIs from `@math.gl/geospatial/terrain`. */
|
|
314
392
|
export type {TerrainIsobands} from './terrain/isobands';
|
|
315
393
|
|
|
394
|
+
/** @deprecated Import these APIs from `@math.gl/geospatial/terrain`. */
|
|
316
395
|
export {updateTerrainMeshes} from './terrain/mesh-update';
|
|
396
|
+
/** @deprecated Import these APIs from `@math.gl/geospatial/terrain`. */
|
|
317
397
|
export type {TerrainMeshSnapshot} from './terrain/mesh-update';
|
|
318
398
|
|
|
399
|
+
/** @deprecated Import these APIs from `@math.gl/geospatial/terrain`. */
|
|
319
400
|
export {updateTerrainBounds} from './terrain/bounds-update';
|
|
401
|
+
/** @deprecated Import these APIs from `@math.gl/geospatial/terrain`. */
|
|
320
402
|
export type {TerrainBoundsSnapshot} from './terrain/bounds-update';
|
|
321
403
|
|
|
404
|
+
/** @deprecated Import these APIs from `@math.gl/geospatial/terrain`. */
|
|
322
405
|
export {updateTerrainGradientPyramids} from './terrain/gradient-pyramid-update';
|
|
406
|
+
/** @deprecated Import these APIs from `@math.gl/geospatial/terrain`. */
|
|
323
407
|
export type {TerrainGradientPyramidSnapshot} from './terrain/gradient-pyramid-update';
|
|
408
|
+
/** @deprecated Import these APIs from `@math.gl/geospatial/terrain`. */
|
|
324
409
|
export type {TerrainFieldTile} from './terrain/tile-update-data';
|
|
325
410
|
|
|
411
|
+
/** @deprecated Import these APIs from `@math.gl/geospatial/terrain`. */
|
|
326
412
|
export {updateTerrainMeshRegions} from './terrain/mesh-regions';
|
|
413
|
+
/** @deprecated Import these APIs from `@math.gl/geospatial/terrain`. */
|
|
327
414
|
export type {TerrainRegularMeshRegions} from './terrain/mesh-regions';
|
|
328
415
|
|
|
416
|
+
/** @deprecated Import these APIs from `@math.gl/geospatial/terrain`. */
|
|
329
417
|
export {updateTerrainMartiniMeshRegions} from './terrain/martini-regions';
|
|
418
|
+
/** @deprecated Import these APIs from `@math.gl/geospatial/terrain`. */
|
|
330
419
|
export type {TerrainMartiniMeshRegions} from './terrain/martini-regions';
|
|
331
420
|
|
|
421
|
+
/** @deprecated Import these APIs from `@math.gl/geospatial/terrain`. */
|
|
332
422
|
export {updateTerrainDelatinMeshRegions} from './terrain/delatin-regions';
|
|
423
|
+
/** @deprecated Import these APIs from `@math.gl/geospatial/terrain`. */
|
|
333
424
|
export type {TerrainDelatinMeshRegions} from './terrain/delatin-regions';
|
|
334
425
|
|
|
426
|
+
/** @deprecated Import these APIs from `@math.gl/geospatial/terrain`. */
|
|
335
427
|
export {updateTerrainBoundsRegions} from './terrain/bounds-regions';
|
|
428
|
+
/** @deprecated Import these APIs from `@math.gl/geospatial/terrain`. */
|
|
336
429
|
export type {TerrainBoundsRegions} from './terrain/bounds-regions';
|
|
337
430
|
|
|
431
|
+
/** @deprecated Import these APIs from `@math.gl/geospatial/terrain`. */
|
|
338
432
|
export {updateTerrainGradientPyramidRegions} from './terrain/gradient-pyramid-regions';
|
|
433
|
+
/** @deprecated Import these APIs from `@math.gl/geospatial/terrain`. */
|
|
339
434
|
export type {TerrainGradientPyramidRegions} from './terrain/gradient-pyramid-regions';
|
|
435
|
+
/** @deprecated Import these APIs from `@math.gl/geospatial/terrain`. */
|
|
340
436
|
export type {TerrainDirtyWindow} from './terrain/dirty-regions';
|
|
341
437
|
|
|
438
|
+
/** @deprecated Import these APIs from `@math.gl/geospatial/terrain`. */
|
|
342
439
|
export {updateTerrainPersistentBounds} from './terrain/persistent-bounds';
|
|
440
|
+
/** @deprecated Import these APIs from `@math.gl/geospatial/terrain`. */
|
|
343
441
|
export type {TerrainPersistentBounds} from './terrain/persistent-bounds';
|
|
344
442
|
|
|
443
|
+
/** @deprecated Import these APIs from `@math.gl/geospatial/terrain`. */
|
|
345
444
|
export {updateTerrainPersistentGradients} from './terrain/persistent-gradients';
|
|
445
|
+
/** @deprecated Import these APIs from `@math.gl/geospatial/terrain`. */
|
|
346
446
|
export type {TerrainPersistentGradients} from './terrain/persistent-gradients';
|
|
347
447
|
|
|
448
|
+
/** @deprecated Import these APIs from `@math.gl/geospatial/terrain`. */
|
|
348
449
|
export {getTerrainHierarchyNode} from './terrain/persistent-hierarchy-data';
|
|
450
|
+
/** @deprecated Import these APIs from `@math.gl/geospatial/terrain`. */
|
|
349
451
|
export type {TerrainPersistentLevel} from './terrain/persistent-hierarchy-data';
|
|
350
452
|
|
|
453
|
+
/** @deprecated Import these APIs from `@math.gl/geospatial/terrain`. */
|
|
351
454
|
export {createTerrainLodMorph} from './terrain/lod-morph';
|
|
455
|
+
/** @deprecated Import these APIs from `@math.gl/geospatial/terrain`. */
|
|
352
456
|
export type {TerrainLodMorph} from './terrain/lod-morph';
|
|
353
457
|
|
|
458
|
+
/** @deprecated Import these APIs from `@math.gl/geospatial/terrain`. */
|
|
354
459
|
export {evaluateTerrainLodMorph} from './terrain/lod-morph-evaluate';
|
|
460
|
+
/** @deprecated Import these APIs from `@math.gl/geospatial/terrain`. */
|
|
355
461
|
export {TerrainMorphStatus} from './terrain/lod-morph';
|
|
462
|
+
/** @deprecated Import these APIs from `@math.gl/geospatial/terrain`. */
|
|
356
463
|
export type {
|
|
357
464
|
TerrainHierarchyBlock,
|
|
358
465
|
TerrainHierarchyUpdateStats
|
|
359
466
|
} from './terrain/persistent-hierarchy-data';
|
|
360
467
|
|
|
468
|
+
/** @deprecated Import these APIs from `@math.gl/geospatial/terrain`. */
|
|
361
469
|
export {coordinateTerrainLodMorphs} from './terrain/lod-coordinate';
|
|
362
470
|
|
|
471
|
+
/** @deprecated Import these APIs from `@math.gl/geospatial/terrain`. */
|
|
363
472
|
export {createTerrainMixedIsobands} from './terrain/isobands-mixed';
|
|
473
|
+
/** @deprecated Import these APIs from `@math.gl/geospatial/terrain`. */
|
|
364
474
|
export type {TerrainLodTile} from './terrain/lod-coordinate';
|
|
475
|
+
/** @deprecated Import these APIs from `@math.gl/geospatial/terrain`. */
|
|
365
476
|
export type {TerrainMixedSurface, TerrainMixedSurfaceOptions} from './terrain/mixed-surface';
|
|
366
477
|
|
|
478
|
+
/** @deprecated Import these APIs from `@math.gl/geospatial/terrain`. */
|
|
367
479
|
export {
|
|
368
480
|
createValidDomainTerrainMesh,
|
|
369
481
|
type ValidDomainTerrainMesh,
|
|
370
482
|
type ValidDomainMeshOptions
|
|
371
483
|
} from './terrain/valid-domain-mesh';
|
|
372
484
|
|
|
485
|
+
/** @deprecated Import these APIs from `@math.gl/geospatial/terrain`. */
|
|
373
486
|
export {
|
|
374
487
|
createBreaklineTerrainMesh,
|
|
375
488
|
type TerrainBreaklinePoint,
|
|
@@ -378,31 +491,185 @@ export {
|
|
|
378
491
|
type BreaklineMeshOptions
|
|
379
492
|
} from './terrain/breakline-mesh';
|
|
380
493
|
|
|
494
|
+
/** @deprecated Import these APIs from `@math.gl/geospatial/terrain`. */
|
|
381
495
|
export {
|
|
382
496
|
boundTerrainMeshError,
|
|
383
497
|
type TerrainContinuousMesh,
|
|
384
498
|
type TerrainContinuousError
|
|
385
499
|
} from './terrain/continuous-mesh-error';
|
|
386
500
|
|
|
501
|
+
/** @deprecated Import these APIs from `@math.gl/geospatial/terrain`. */
|
|
387
502
|
export {
|
|
388
503
|
wrapTerrainLongitude,
|
|
389
504
|
measureGeographicTerrainSeam,
|
|
390
505
|
type TerrainGeographicProbe
|
|
391
506
|
} from './terrain/geographic-seam';
|
|
507
|
+
/** @deprecated Import these APIs from `@math.gl/geospatial/terrain`. */
|
|
392
508
|
export {
|
|
393
509
|
selectTerrainLod,
|
|
394
510
|
type TerrainLodCandidate,
|
|
511
|
+
type TerrainLodCertifiedView,
|
|
395
512
|
type TerrainLodView
|
|
396
513
|
} from './terrain/lod-select';
|
|
514
|
+
/** @deprecated Import these APIs from `@math.gl/geospatial/terrain`. */
|
|
397
515
|
export {stitchTerrainLodCut, type TerrainLodSeam} from './terrain/lod-stitch';
|
|
398
516
|
|
|
517
|
+
/** @deprecated Import these APIs from `@math.gl/geospatial/terrain`. */
|
|
399
518
|
export {splitTerrainBreaklines} from './terrain/breakline-preprocess';
|
|
400
519
|
|
|
520
|
+
/** @deprecated Import these APIs from `@math.gl/geospatial/terrain`. */
|
|
401
521
|
export {
|
|
402
522
|
updateTerrainValidDomainMeshRegions,
|
|
403
523
|
type TerrainValidDomainMeshRegions,
|
|
404
524
|
type TerrainValidDomainRegionOptions
|
|
405
525
|
} from './terrain/valid-domain-regions';
|
|
406
526
|
|
|
527
|
+
/** @deprecated Import these APIs from `@math.gl/geospatial/terrain`. */
|
|
407
528
|
export {certifyTerrainMeshCoverage} from './terrain/mesh-coverage';
|
|
529
|
+
/** @deprecated Import these APIs from `@math.gl/geospatial/terrain`. */
|
|
408
530
|
export type {TerrainCoverageMesh, TerrainMeshCoverage} from './terrain/mesh-coverage';
|
|
531
|
+
|
|
532
|
+
/** @deprecated Import these APIs from `@math.gl/geospatial/terrain`. */
|
|
533
|
+
export {
|
|
534
|
+
getGeographicTerrainNeighbor,
|
|
535
|
+
type TerrainGeographicEdge,
|
|
536
|
+
type TerrainGeographicNeighbor
|
|
537
|
+
} from './terrain/geographic-neighbor';
|
|
538
|
+
|
|
539
|
+
/** @deprecated Import these APIs from `@math.gl/geospatial/terrain`. */
|
|
540
|
+
export {
|
|
541
|
+
sweepTerrainSphere,
|
|
542
|
+
type TerrainSphereSweepOptions,
|
|
543
|
+
type TerrainSphereSweepResult
|
|
544
|
+
} from './terrain/sweep-sphere';
|
|
545
|
+
|
|
546
|
+
/** @deprecated Import these APIs from `@math.gl/geospatial/terrain`. */
|
|
547
|
+
export {
|
|
548
|
+
sweepTerrainCapsule,
|
|
549
|
+
sweepTerrainTaperedCapsule,
|
|
550
|
+
type TerrainCapsuleSweepResult
|
|
551
|
+
} from './terrain/sweep-capsule';
|
|
552
|
+
|
|
553
|
+
/** @deprecated Import these APIs from `@math.gl/geospatial/terrain`. */
|
|
554
|
+
export {
|
|
555
|
+
sweepTerrainBox,
|
|
556
|
+
sweepTerrainPolytope,
|
|
557
|
+
sweepTerrainTriangleMesh,
|
|
558
|
+
type TerrainPolytope,
|
|
559
|
+
type TerrainPolytopeSweepResult
|
|
560
|
+
} from './terrain/sweep-polytope';
|
|
561
|
+
|
|
562
|
+
/** @deprecated Import these APIs from `@math.gl/geospatial/terrain`. */
|
|
563
|
+
export {
|
|
564
|
+
sweepTerrainRotatingCapsule,
|
|
565
|
+
sweepTerrainRotatingSphere
|
|
566
|
+
} from './terrain/sweep-rotating-capsule';
|
|
567
|
+
/** @deprecated Import these APIs from `@math.gl/geospatial/terrain`. */
|
|
568
|
+
export {sweepTerrainCylinder} from './terrain/sweep-cylinder';
|
|
569
|
+
|
|
570
|
+
/** @deprecated Import these APIs from `@math.gl/geospatial/terrain`. */
|
|
571
|
+
export {sweepTerrainPlane} from './terrain/sweep-plane';
|
|
572
|
+
/** @deprecated Import these APIs from `@math.gl/geospatial/terrain`. */
|
|
573
|
+
export {discoverGeographicTerrainLodSeams} from './terrain/geographic-lod-seams';
|
|
574
|
+
|
|
575
|
+
/** @deprecated Import these APIs from `@math.gl/geospatial/terrain`. */
|
|
576
|
+
export {
|
|
577
|
+
discoverGeographicTerrainPoles,
|
|
578
|
+
type TerrainPoleIncidence,
|
|
579
|
+
type TerrainPoleCoverage
|
|
580
|
+
} from './terrain/geographic-poles';
|
|
581
|
+
|
|
582
|
+
/** @deprecated Import these APIs from `@math.gl/geospatial/terrain`. */
|
|
583
|
+
export {
|
|
584
|
+
sweepTerrainRotatingBox,
|
|
585
|
+
sweepTerrainRotatingPolytope,
|
|
586
|
+
type TerrainRigidMotion,
|
|
587
|
+
type TerrainRotationalSweepResult
|
|
588
|
+
} from './terrain/sweep-rotation';
|
|
589
|
+
|
|
590
|
+
/** @deprecated Import these APIs from `@math.gl/geospatial/terrain`. */
|
|
591
|
+
export {
|
|
592
|
+
boundTerrainLodScreenError,
|
|
593
|
+
type TerrainLodErrorBounds,
|
|
594
|
+
type TerrainLodProjection
|
|
595
|
+
} from './terrain/lod-screen-error';
|
|
596
|
+
|
|
597
|
+
/** @deprecated Import these APIs from `@math.gl/geospatial/terrain`. */
|
|
598
|
+
export {
|
|
599
|
+
createTerrainRegionalViewshed,
|
|
600
|
+
TerrainRegionalViewStatus,
|
|
601
|
+
type TerrainRegionalViewshed,
|
|
602
|
+
type TerrainRegionalViewshedOptions,
|
|
603
|
+
type TerrainViewshedGrid
|
|
604
|
+
} from './terrain/regional-viewshed';
|
|
605
|
+
|
|
606
|
+
/** @deprecated Import these APIs from `@math.gl/geospatial/terrain`. */
|
|
607
|
+
export {
|
|
608
|
+
createTerrainDrainage,
|
|
609
|
+
getTerrainCellMetrics,
|
|
610
|
+
type TerrainCellMetrics,
|
|
611
|
+
type TerrainDrainage,
|
|
612
|
+
type TerrainDrainageOptions
|
|
613
|
+
} from './terrain/hydrology';
|
|
614
|
+
|
|
615
|
+
/** @deprecated Import these APIs from `@math.gl/geospatial/terrain`. */
|
|
616
|
+
export {
|
|
617
|
+
fillTerrainDepressions,
|
|
618
|
+
type TerrainDepressionFill,
|
|
619
|
+
type TerrainDepressionFillOptions
|
|
620
|
+
} from './terrain/depression-fill';
|
|
621
|
+
|
|
622
|
+
/** @deprecated Import these APIs from `@math.gl/geospatial/terrain`. */
|
|
623
|
+
export {
|
|
624
|
+
splitTerrainMesh,
|
|
625
|
+
createTerrainCutoutSkirts,
|
|
626
|
+
type TerrainCutout,
|
|
627
|
+
type TerrainCutoutInput,
|
|
628
|
+
type TerrainCutoutOptions,
|
|
629
|
+
type TerrainCutoutPiece,
|
|
630
|
+
type SkirtedTerrainCutout,
|
|
631
|
+
type TerrainCutoutSkirtOptions
|
|
632
|
+
} from './terrain';
|
|
633
|
+
|
|
634
|
+
/** @deprecated Import these APIs from `@math.gl/geospatial/terrain`. */
|
|
635
|
+
export {
|
|
636
|
+
accumulateTerrainWatersheds,
|
|
637
|
+
type TerrainWatershedAccumulation,
|
|
638
|
+
type TerrainWatershedAccumulationOptions
|
|
639
|
+
} from './terrain/watershed-accumulation';
|
|
640
|
+
|
|
641
|
+
/** @deprecated Import these APIs from `@math.gl/geospatial/terrain`. */
|
|
642
|
+
export {
|
|
643
|
+
splitTerrainMeshTiles,
|
|
644
|
+
type TerrainCutoutTile,
|
|
645
|
+
type TerrainTileCutout
|
|
646
|
+
} from './terrain/tile-cutout';
|
|
647
|
+
|
|
648
|
+
/** @deprecated Import these APIs from `@math.gl/geospatial/terrain`. */
|
|
649
|
+
export {
|
|
650
|
+
updateTerrainTileCutouts,
|
|
651
|
+
type TerrainCutoutResident,
|
|
652
|
+
type TerrainTileCutoutUpdateOptions,
|
|
653
|
+
type TerrainTileCutoutCache,
|
|
654
|
+
type TerrainTileCutoutUpdate
|
|
655
|
+
} from './terrain/tile-cutout-update';
|
|
656
|
+
/** @deprecated Import these APIs from `@math.gl/geospatial/terrain`. */
|
|
657
|
+
export {
|
|
658
|
+
createGeographicTerrainCutoutFrame,
|
|
659
|
+
projectGeographicTerrainCutout,
|
|
660
|
+
unprojectGeographicTerrainCutout,
|
|
661
|
+
type GeographicTerrainCutoutFrame,
|
|
662
|
+
type GeographicTerrainCutoutFrameOptions
|
|
663
|
+
} from './terrain/geographic-cutout';
|
|
664
|
+
|
|
665
|
+
/** @deprecated Import these APIs from `@math.gl/geospatial/terrain`. */
|
|
666
|
+
export {
|
|
667
|
+
prepareTerrainCutoutPolygons,
|
|
668
|
+
type TerrainCutoutPolygonOptions
|
|
669
|
+
} from './terrain/cutout-polygons';
|
|
670
|
+
/** @deprecated Import these APIs from `@math.gl/geospatial/terrain`. */
|
|
671
|
+
export type {
|
|
672
|
+
TerrainCutoutPolygon,
|
|
673
|
+
TerrainCutoutPolygonSet,
|
|
674
|
+
TerrainCutoutRegion
|
|
675
|
+
} from './terrain/cutout-region';
|
|
@@ -0,0 +1,97 @@
|
|
|
1
|
+
// math.gl
|
|
2
|
+
// SPDX-License-Identifier: MIT
|
|
3
|
+
// SPDX-FileCopyrightText: Copyright (c) vis.gl contributors
|
|
4
|
+
|
|
5
|
+
import type {WellKnownGeometry} from '@math.gl/core/arrow';
|
|
6
|
+
|
|
7
|
+
/** One vertex in planar XY coordinates. */
|
|
8
|
+
type Position = readonly number[];
|
|
9
|
+
/** Ordered vertices in a single line component. */
|
|
10
|
+
type Path = readonly Position[];
|
|
11
|
+
|
|
12
|
+
/** Removes consecutive near-duplicates while retaining both line endpoints. */
|
|
13
|
+
function removeRepeated(path: Path, tolerance: number): Path {
|
|
14
|
+
if (path.length <= 2) return path;
|
|
15
|
+
const kept = [path[0]!];
|
|
16
|
+
for (let i = 1; i < path.length; i++) {
|
|
17
|
+
const current = path[i]!,
|
|
18
|
+
last = kept[kept.length - 1]!;
|
|
19
|
+
const close = Math.hypot(current[0]! - last[0]!, current[1]! - last[1]!) <= tolerance;
|
|
20
|
+
if (i === path.length - 1) {
|
|
21
|
+
if (close && kept.length > 1) kept.pop();
|
|
22
|
+
} else if (close) continue;
|
|
23
|
+
kept.push(current);
|
|
24
|
+
}
|
|
25
|
+
return kept;
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
/** Measures the distance to a finite segment, including its endpoints. */
|
|
29
|
+
function distanceToSegment(p: Position, a: Position, b: Position): number {
|
|
30
|
+
const dx = b[0]! - a[0]!,
|
|
31
|
+
dy = b[1]! - a[1]!;
|
|
32
|
+
const length = Math.hypot(dx, dy);
|
|
33
|
+
const px = p[0]! - a[0]!,
|
|
34
|
+
py = p[1]! - a[1]!;
|
|
35
|
+
const t = length
|
|
36
|
+
? Math.max(0, Math.min(1, (px * (dx / length) + py * (dy / length)) / length))
|
|
37
|
+
: 0;
|
|
38
|
+
return Math.hypot(px - t * dx, py - t * dy);
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
/** Iterative Douglas-Peucker simplification of a single planar line. */
|
|
42
|
+
function simplify(path: Path, tolerance: number): Path {
|
|
43
|
+
if (!path.length) return path;
|
|
44
|
+
const last = path.length - 1;
|
|
45
|
+
const kept = new Uint8Array(path.length);
|
|
46
|
+
kept[0] = kept[last] = 1;
|
|
47
|
+
const spans = [0, last];
|
|
48
|
+
while (spans.length) {
|
|
49
|
+
const end = spans.pop()!,
|
|
50
|
+
start = spans.pop()!;
|
|
51
|
+
let split = start,
|
|
52
|
+
maximum = tolerance;
|
|
53
|
+
for (let i = start + 1; i < end; i++) {
|
|
54
|
+
const distance = distanceToSegment(path[i]!, path[start]!, path[end]!);
|
|
55
|
+
if (distance > maximum) {
|
|
56
|
+
maximum = distance;
|
|
57
|
+
split = i;
|
|
58
|
+
}
|
|
59
|
+
}
|
|
60
|
+
if (split !== start) {
|
|
61
|
+
kept[split] = 1;
|
|
62
|
+
spans.push(start, split, split, end);
|
|
63
|
+
}
|
|
64
|
+
}
|
|
65
|
+
const result = path.filter((_, i) => kept[i]);
|
|
66
|
+
if (result.length === 2 && result[0]![0] === result[1]![0] && result[0]![1] === result[1]![1])
|
|
67
|
+
return [];
|
|
68
|
+
return result;
|
|
69
|
+
}
|
|
70
|
+
|
|
71
|
+
/** Reduces each route component independently using a planar coordinate tolerance. */
|
|
72
|
+
export function reduceLineVertices(
|
|
73
|
+
geometry: WellKnownGeometry,
|
|
74
|
+
tolerance: number,
|
|
75
|
+
mode: 'simplify' | 'removeRepeated'
|
|
76
|
+
): WellKnownGeometry | null {
|
|
77
|
+
if (!Number.isFinite(tolerance) || tolerance < 0)
|
|
78
|
+
throw new Error('Expected a finite nonnegative tolerance');
|
|
79
|
+
if (
|
|
80
|
+
(geometry.type === 'LineString' || geometry.type === 'MultiLineString') &&
|
|
81
|
+
(!geometry.coordinates.length ||
|
|
82
|
+
(geometry.type === 'MultiLineString' && geometry.coordinates.every(path => !path.length)))
|
|
83
|
+
)
|
|
84
|
+
return geometry;
|
|
85
|
+
const reduce = mode === 'simplify' ? simplify : removeRepeated;
|
|
86
|
+
if (geometry.type === 'LineString') {
|
|
87
|
+
const coordinates = reduce(geometry.coordinates, tolerance);
|
|
88
|
+
return coordinates.length || mode === 'removeRepeated'
|
|
89
|
+
? {type: 'LineString', coordinates}
|
|
90
|
+
: null;
|
|
91
|
+
}
|
|
92
|
+
if (geometry.type !== 'MultiLineString') throw new Error('Expected line geometry');
|
|
93
|
+
const reduced = geometry.coordinates.map(path => reduce(path, tolerance));
|
|
94
|
+
if (mode === 'removeRepeated') return {type: 'MultiLineString', coordinates: reduced};
|
|
95
|
+
const coordinates = reduced.filter(path => path.length);
|
|
96
|
+
return coordinates.length ? {type: 'MultiLineString', coordinates} : null;
|
|
97
|
+
}
|