@math.gl/geospatial 5.0.0-rc.1 → 5.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +6 -6
- package/dist/coordinates.cjs +2523 -0
- package/dist/coordinates.cjs.map +6 -0
- package/dist/coordinates.d.ts +4 -0
- package/dist/coordinates.d.ts.map +1 -1
- package/dist/coordinates.js +2 -0
- package/dist/coordinates.js.map +1 -1
- package/dist/entries/ellipsoid.cjs +1209 -0
- package/dist/entries/ellipsoid.cjs.map +6 -0
- package/dist/entries/ellipsoid.d.ts +3 -19
- package/dist/entries/ellipsoid.d.ts.map +1 -1
- package/dist/entries/ellipsoid.js +1 -9
- package/dist/entries/ellipsoid.js.map +1 -1
- package/dist/expressions.cjs +726 -0
- package/dist/expressions.cjs.map +6 -0
- package/dist/geodesics.cjs +3195 -0
- package/dist/geodesics.cjs.map +6 -0
- package/dist/geodesics.d.ts +18 -0
- package/dist/geodesics.d.ts.map +1 -0
- package/dist/geodesics.js +13 -0
- package/dist/geodesics.js.map +1 -0
- package/dist/geographic-atlas/sampling.d.ts +1 -1
- package/dist/geographic-atlas/sampling.d.ts.map +1 -1
- package/dist/geographic-atlas/sampling.js +1 -1
- package/dist/geographic-atlas/sampling.js.map +1 -1
- package/dist/geographic-cuts.cjs +4160 -0
- package/dist/geographic-cuts.cjs.map +6 -0
- package/dist/geographic-cuts.d.ts +2 -0
- package/dist/geographic-cuts.d.ts.map +1 -1
- package/dist/geographic-cuts.js +1 -0
- package/dist/geographic-cuts.js.map +1 -1
- package/dist/geographic-seams/subdivide-cut.d.ts +1 -1
- package/dist/geographic-seams/subdivide-cut.d.ts.map +1 -1
- package/dist/geographic-seams/subdivide-cut.js +1 -1
- package/dist/geographic-seams/subdivide-cut.js.map +1 -1
- package/dist/geographic-seams/types.shared.cjs +32 -0
- package/dist/geographic-seams/types.shared.cjs.map +6 -0
- package/dist/globe.cjs +4223 -0
- package/dist/globe.cjs.map +6 -0
- package/dist/index.d.ts +2 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +2 -0
- package/dist/index.js.map +1 -1
- package/dist/maps/map-transition.shared.cjs +364 -0
- package/dist/maps/map-transition.shared.cjs.map +6 -0
- 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 +2 -2
- package/dist/maps/presets.cjs.map +2 -2
- package/dist/maps/transitions.cjs +3 -342
- package/dist/maps/transitions.cjs.map +3 -3
- package/dist/maps.cjs +15 -319
- package/dist/maps.cjs.map +3 -3
- package/dist/projection/experimental/core.cjs +63 -1317
- package/dist/projection/experimental/core.cjs.map +3 -3
- package/dist/projection/experimental/core.d.ts +1 -1
- package/dist/projection/experimental/core.d.ts.map +1 -1
- package/dist/projection/experimental/crs/projjson.cjs +26 -45
- package/dist/projection/experimental/crs/projjson.cjs.map +3 -3
- package/dist/projection/experimental/crs/types.shared.cjs +44 -0
- package/dist/projection/experimental/crs/types.shared.cjs.map +6 -0
- package/dist/projection/experimental/crs/wkt.cjs +36 -52
- package/dist/projection/experimental/crs/wkt.cjs.map +3 -3
- package/dist/projection/experimental/entries/projections/ob_tran.cjs +9 -23
- package/dist/projection/experimental/entries/projections/ob_tran.cjs.map +3 -3
- package/dist/projection/experimental/lazy-projections/aea.cjs +1 -1
- package/dist/projection/experimental/lazy-projections/aea.js +1 -1
- package/dist/projection/experimental/lazy-projections/aeqd.cjs +1 -1
- package/dist/projection/experimental/lazy-projections/aeqd.js +1 -1
- package/dist/projection/experimental/lazy-projections/bonne.cjs +1 -1
- package/dist/projection/experimental/lazy-projections/bonne.js +1 -1
- package/dist/projection/experimental/lazy-projections/cass.cjs +1 -1
- package/dist/projection/experimental/lazy-projections/cass.js +1 -1
- package/dist/projection/experimental/lazy-projections/cea.cjs +1 -1
- package/dist/projection/experimental/lazy-projections/cea.js +1 -1
- package/dist/projection/experimental/lazy-projections/eck6.cjs +1 -1
- package/dist/projection/experimental/lazy-projections/eck6.js +1 -1
- package/dist/projection/experimental/lazy-projections/eqc.cjs +1 -1
- package/dist/projection/experimental/lazy-projections/eqc.js +1 -1
- package/dist/projection/experimental/lazy-projections/eqdc.cjs +1 -1
- package/dist/projection/experimental/lazy-projections/eqdc.js +1 -1
- package/dist/projection/experimental/lazy-projections/eqearth.cjs +1 -1
- package/dist/projection/experimental/lazy-projections/eqearth.js +1 -1
- package/dist/projection/experimental/lazy-projections/equi.cjs +1 -1
- package/dist/projection/experimental/lazy-projections/equi.js +1 -1
- package/dist/projection/experimental/lazy-projections/etmerc.cjs +1 -1
- package/dist/projection/experimental/lazy-projections/etmerc.js +1 -1
- package/dist/projection/experimental/lazy-projections/geocent.cjs +1 -1
- package/dist/projection/experimental/lazy-projections/geocent.js +1 -1
- package/dist/projection/experimental/lazy-projections/geos.cjs +1 -1
- package/dist/projection/experimental/lazy-projections/geos.js +1 -1
- package/dist/projection/experimental/lazy-projections/gnom.cjs +1 -1
- package/dist/projection/experimental/lazy-projections/gnom.js +1 -1
- package/dist/projection/experimental/lazy-projections/gstmerc.cjs +1 -1
- package/dist/projection/experimental/lazy-projections/gstmerc.js +1 -1
- package/dist/projection/experimental/lazy-projections/index.cjs +60 -903
- package/dist/projection/experimental/lazy-projections/index.cjs.map +3 -3
- package/dist/projection/experimental/lazy-projections/krovak.cjs +1 -1
- package/dist/projection/experimental/lazy-projections/krovak.js +1 -1
- package/dist/projection/experimental/lazy-projections/laea.cjs +1 -1
- package/dist/projection/experimental/lazy-projections/laea.js +1 -1
- package/dist/projection/experimental/lazy-projections/lcc.cjs +1 -1
- package/dist/projection/experimental/lazy-projections/lcc.js +1 -1
- package/dist/projection/experimental/lazy-projections/merc.cjs +1 -1
- package/dist/projection/experimental/lazy-projections/merc.js +1 -1
- package/dist/projection/experimental/lazy-projections/mill.cjs +1 -1
- package/dist/projection/experimental/lazy-projections/mill.js +1 -1
- package/dist/projection/experimental/lazy-projections/moll.cjs +1 -1
- package/dist/projection/experimental/lazy-projections/moll.js +1 -1
- package/dist/projection/experimental/lazy-projections/nzmg.cjs +1 -1
- package/dist/projection/experimental/lazy-projections/nzmg.js +1 -1
- package/dist/projection/experimental/lazy-projections/ob_tran.cjs +1 -1
- package/dist/projection/experimental/lazy-projections/ob_tran.js +1 -1
- package/dist/projection/experimental/lazy-projections/omerc.cjs +1 -1
- package/dist/projection/experimental/lazy-projections/omerc.js +1 -1
- package/dist/projection/experimental/lazy-projections/ortho.cjs +1 -1
- package/dist/projection/experimental/lazy-projections/ortho.js +1 -1
- package/dist/projection/experimental/lazy-projections/poly.cjs +1 -1
- package/dist/projection/experimental/lazy-projections/poly.js +1 -1
- package/dist/projection/experimental/lazy-projections/qsc.cjs +1 -1
- package/dist/projection/experimental/lazy-projections/qsc.js +1 -1
- package/dist/projection/experimental/lazy-projections/robin.cjs +1 -1
- package/dist/projection/experimental/lazy-projections/robin.js +1 -1
- package/dist/projection/experimental/lazy-projections/sinu.cjs +1 -1
- package/dist/projection/experimental/lazy-projections/sinu.js +1 -1
- package/dist/projection/experimental/lazy-projections/somerc.cjs +1 -1
- package/dist/projection/experimental/lazy-projections/somerc.js +1 -1
- package/dist/projection/experimental/lazy-projections/stere.cjs +1 -1
- package/dist/projection/experimental/lazy-projections/stere.js +1 -1
- package/dist/projection/experimental/lazy-projections/sterea.cjs +1 -1
- package/dist/projection/experimental/lazy-projections/sterea.js +1 -1
- package/dist/projection/experimental/lazy-projections/tmerc.cjs +1 -1
- package/dist/projection/experimental/lazy-projections/tmerc.js +1 -1
- package/dist/projection/experimental/lazy-projections/tpers.cjs +1 -1
- package/dist/projection/experimental/lazy-projections/tpers.js +1 -1
- package/dist/projection/experimental/lazy-projections/utm.cjs +1 -1
- package/dist/projection/experimental/lazy-projections/utm.js +1 -1
- package/dist/projection/experimental/lazy-projections/vandg.cjs +1 -1
- package/dist/projection/experimental/lazy-projections/vandg.js +1 -1
- package/dist/projection/experimental/projection-engine.shared.cjs +1184 -0
- package/dist/projection/experimental/projection-engine.shared.cjs.map +6 -0
- package/dist/projection/experimental/typescript-projection.shared.cjs +1703 -0
- package/dist/projection/experimental/typescript-projection.shared.cjs.map +6 -0
- package/dist/projection/index.cjs +622 -1535
- package/dist/projection/index.cjs.map +3 -3
- package/dist/projection/pipeline.cjs +44 -58
- package/dist/projection/pipeline.cjs.map +3 -3
- package/dist/projection/transform-analysis.cjs +20 -936
- package/dist/projection/transform-analysis.cjs.map +3 -3
- package/dist/subdivide-geodesic-polyline.d.ts +1 -1
- package/dist/subdivide-geodesic-polyline.d.ts.map +1 -1
- package/dist/subdivide-geodesic-polyline.js +1 -1
- package/dist/subdivide-geodesic-polyline.js.map +1 -1
- package/dist/subdivide-globe-mesh.d.ts +1 -1
- package/dist/subdivide-globe-mesh.d.ts.map +1 -1
- package/dist/subdivide-globe-mesh.js +1 -1
- package/dist/subdivide-globe-mesh.js.map +1 -1
- package/dist/subdivide-rhumb-polyline.d.ts +1 -1
- package/dist/subdivide-rhumb-polyline.d.ts.map +1 -1
- package/dist/subdivide-rhumb-polyline.js +1 -1
- package/dist/subdivide-rhumb-polyline.js.map +1 -1
- package/dist/tasks/index.cjs +808 -2993
- package/dist/tasks/index.cjs.map +3 -3
- package/dist/terrain/geometry.d.ts +1 -1
- package/dist/terrain/geometry.d.ts.map +1 -1
- package/dist/terrain/geometry.js +1 -1
- package/dist/terrain/geometry.js.map +1 -1
- package/dist/terrain/index.cjs +2 -2
- package/dist/terrain/index.cjs.map +1 -1
- package/dist/tiles.cjs +354 -0
- package/dist/tiles.cjs.map +6 -0
- package/package.json +139 -117
- package/src/coordinates.ts +5 -0
- package/src/entries/ellipsoid.ts +7 -32
- package/src/geodesics.ts +40 -0
- package/src/geographic-atlas/sampling.ts +1 -1
- package/src/geographic-cuts.ts +21 -0
- package/src/geographic-seams/subdivide-cut.ts +1 -1
- package/src/index.ts +2 -0
- package/src/maps/myriahedral/unfold.ts +1 -1
- package/src/projection/experimental/core.ts +1 -1
- package/src/projection/experimental/lazy-projections/aea.ts +1 -1
- package/src/projection/experimental/lazy-projections/aeqd.ts +1 -1
- package/src/projection/experimental/lazy-projections/bonne.ts +1 -1
- package/src/projection/experimental/lazy-projections/cass.ts +1 -1
- package/src/projection/experimental/lazy-projections/cea.ts +1 -1
- package/src/projection/experimental/lazy-projections/eck6.ts +1 -1
- package/src/projection/experimental/lazy-projections/eqc.ts +1 -1
- package/src/projection/experimental/lazy-projections/eqdc.ts +1 -1
- package/src/projection/experimental/lazy-projections/eqearth.ts +1 -1
- package/src/projection/experimental/lazy-projections/equi.ts +1 -1
- package/src/projection/experimental/lazy-projections/etmerc.ts +1 -1
- package/src/projection/experimental/lazy-projections/geocent.ts +1 -1
- package/src/projection/experimental/lazy-projections/geos.ts +1 -1
- package/src/projection/experimental/lazy-projections/gnom.ts +1 -1
- package/src/projection/experimental/lazy-projections/gstmerc.ts +1 -1
- package/src/projection/experimental/lazy-projections/krovak.ts +1 -1
- package/src/projection/experimental/lazy-projections/laea.ts +1 -1
- package/src/projection/experimental/lazy-projections/lcc.ts +1 -1
- package/src/projection/experimental/lazy-projections/merc.ts +1 -1
- package/src/projection/experimental/lazy-projections/mill.ts +1 -1
- package/src/projection/experimental/lazy-projections/moll.ts +1 -1
- package/src/projection/experimental/lazy-projections/nzmg.ts +1 -1
- package/src/projection/experimental/lazy-projections/ob_tran.ts +1 -1
- package/src/projection/experimental/lazy-projections/omerc.ts +1 -1
- package/src/projection/experimental/lazy-projections/ortho.ts +1 -1
- package/src/projection/experimental/lazy-projections/poly.ts +1 -1
- package/src/projection/experimental/lazy-projections/qsc.ts +1 -1
- package/src/projection/experimental/lazy-projections/robin.ts +1 -1
- package/src/projection/experimental/lazy-projections/sinu.ts +1 -1
- package/src/projection/experimental/lazy-projections/somerc.ts +1 -1
- package/src/projection/experimental/lazy-projections/stere.ts +1 -1
- package/src/projection/experimental/lazy-projections/sterea.ts +1 -1
- package/src/projection/experimental/lazy-projections/tmerc.ts +1 -1
- package/src/projection/experimental/lazy-projections/tpers.ts +1 -1
- package/src/projection/experimental/lazy-projections/utm.ts +1 -1
- package/src/projection/experimental/lazy-projections/vandg.ts +1 -1
- package/src/subdivide-geodesic-polyline.ts +2 -2
- package/src/subdivide-globe-mesh.ts +2 -2
- package/src/subdivide-rhumb-polyline.ts +2 -2
- package/src/terrain/geometry.ts +1 -1
- package/dist/index.cjs +0 -18674
- package/dist/index.cjs.map +0 -6
- package/dist/turf-expressions.cjs +0 -1997
- package/dist/turf-expressions.cjs.map +0 -6
- package/dist/turf-expressions.d.ts +0 -3
- package/dist/turf-expressions.d.ts.map +0 -1
- package/dist/turf-expressions.js +0 -7
- package/dist/turf-expressions.js.map +0 -1
- package/src/turf-expressions.ts +0 -7
package/src/coordinates.ts
CHANGED
|
@@ -22,3 +22,8 @@ export {
|
|
|
22
22
|
parseMGRSZone
|
|
23
23
|
} from './coordinates/mgrs';
|
|
24
24
|
export type {MGRSCoordinate, MGRSZone} from './coordinates/mgrs';
|
|
25
|
+
|
|
26
|
+
export {LocalReferenceFrame} from './local-reference-frame';
|
|
27
|
+
export type {LocalReferenceFrameOptions, HeadingPitchRoll} from './local-reference-frame';
|
|
28
|
+
export {eastNorthUpToFixedFrame, localFrameToFixedFrame} from './ellipsoid-transforms';
|
|
29
|
+
export type {AxisDirection} from './ellipsoid-transforms';
|
package/src/entries/ellipsoid.ts
CHANGED
|
@@ -5,40 +5,15 @@
|
|
|
5
5
|
export {Ellipsoid} from '../ellipsoid';
|
|
6
6
|
export {EllipsoidTangentPlane} from '../ellipsoid-tangent-plane';
|
|
7
7
|
export {isWGS84} from '../type-utils';
|
|
8
|
-
export type {SpheroidParameters} from '@math.gl/core';
|
|
9
|
-
export {EllipsoidGeodesic} from '../ellipsoid-geodesic';
|
|
10
|
-
export type {
|
|
11
|
-
GeodesicResult,
|
|
12
|
-
GeodesicLine,
|
|
13
|
-
GeodesicParameters,
|
|
14
|
-
GeodesicOptions
|
|
15
|
-
} from '../ellipsoid-geodesic';
|
|
16
|
-
export {LocalReferenceFrame} from '../local-reference-frame';
|
|
17
|
-
export type {LocalReferenceFrameOptions, HeadingPitchRoll} from '../local-reference-frame';
|
|
8
|
+
export type {SpheroidParameters} from '@math.gl/core/types';
|
|
18
9
|
export type {TangentPlaneProjectionMode, TangentPlaneProjection} from '../ellipsoid-tangent-plane';
|
|
19
10
|
|
|
20
11
|
export {EllipsoidMetrics} from '../ellipsoid-metrics';
|
|
21
12
|
export type {AuxiliaryLatitude} from '../ellipsoid-metrics';
|
|
22
|
-
export {
|
|
23
|
-
export type {GeodesicPolygonResult, GeodesicPolygonOptions} from '../geodesic-polygon';
|
|
24
|
-
|
|
25
|
-
export {EllipsoidRhumb, RhumbDomainError} from '../ellipsoid-rhumb';
|
|
26
|
-
export type {RhumbOptions, RhumbResult, RhumbLine} from '../ellipsoid-rhumb';
|
|
27
|
-
export {RhumbPolygon} from '../rhumb-polygon';
|
|
28
|
-
export type {RhumbPolygonOptions, RhumbPolygonResult, RhumbPointOptions} from '../rhumb-polygon';
|
|
29
|
-
export {GeodesicIntersections} from '../geodesic-intersections';
|
|
13
|
+
export {TriaxialEllipsoid} from '../triaxial';
|
|
30
14
|
export type {
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
SegmentIntersection
|
|
37
|
-
} from '../geodesic-intersections';
|
|
38
|
-
export {GeodesicPath} from '../geodesic-path';
|
|
39
|
-
export type {GeodesicPathOptions} from '../geodesic-path';
|
|
40
|
-
export {RhumbPath} from '../rhumb-path';
|
|
41
|
-
export type {RhumbPathOptions} from '../rhumb-path';
|
|
42
|
-
|
|
43
|
-
export {eastNorthUpToFixedFrame, localFrameToFixedFrame} from '../ellipsoid-transforms';
|
|
44
|
-
export type {AxisDirection} from '../ellipsoid-transforms';
|
|
15
|
+
TriaxialCoordinates,
|
|
16
|
+
TriaxialParameters,
|
|
17
|
+
CartesianGeodesicState,
|
|
18
|
+
TriaxialGeodesicLine
|
|
19
|
+
} from '../triaxial';
|
package/src/geodesics.ts
ADDED
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
// math.gl
|
|
2
|
+
// SPDX-License-Identifier: MIT
|
|
3
|
+
// SPDX-FileCopyrightText: Copyright (c) vis.gl contributors
|
|
4
|
+
|
|
5
|
+
export {EllipsoidGeodesicExact, GeodesicPolygonExact} from './geodesic-exact';
|
|
6
|
+
export type {ExactGeodesicOptions, ExactPolygonOptions, ExactPolygonResult} from './geodesic-exact';
|
|
7
|
+
export {
|
|
8
|
+
GEODESIC_BUFFER_FIELDS,
|
|
9
|
+
RHUMB_BUFFER_FIELDS,
|
|
10
|
+
GeodesicLineBuffer,
|
|
11
|
+
RhumbLineBuffer
|
|
12
|
+
} from './geodesic-buffer';
|
|
13
|
+
|
|
14
|
+
export {EllipsoidGeodesic} from './ellipsoid-geodesic';
|
|
15
|
+
export type {
|
|
16
|
+
GeodesicResult,
|
|
17
|
+
GeodesicLine,
|
|
18
|
+
GeodesicParameters,
|
|
19
|
+
GeodesicOptions
|
|
20
|
+
} from './ellipsoid-geodesic';
|
|
21
|
+
export {GeodesicPolygon} from './geodesic-polygon';
|
|
22
|
+
export type {GeodesicPolygonResult, GeodesicPolygonOptions} from './geodesic-polygon';
|
|
23
|
+
|
|
24
|
+
export {EllipsoidRhumb, RhumbDomainError} from './ellipsoid-rhumb';
|
|
25
|
+
export type {RhumbOptions, RhumbResult, RhumbLine} from './ellipsoid-rhumb';
|
|
26
|
+
export {RhumbPolygon} from './rhumb-polygon';
|
|
27
|
+
export type {RhumbPolygonOptions, RhumbPolygonResult, RhumbPointOptions} from './rhumb-polygon';
|
|
28
|
+
export {GeodesicIntersections} from './geodesic-intersections';
|
|
29
|
+
export type {
|
|
30
|
+
GeodesicPath as GeodesicIntersectionPath,
|
|
31
|
+
IntersectionPoint,
|
|
32
|
+
IntersectionSearchOptions,
|
|
33
|
+
IntersectionSearch,
|
|
34
|
+
ClosestIntersection,
|
|
35
|
+
SegmentIntersection
|
|
36
|
+
} from './geodesic-intersections';
|
|
37
|
+
export {GeodesicPath} from './geodesic-path';
|
|
38
|
+
export type {GeodesicPathOptions} from './geodesic-path';
|
|
39
|
+
export {RhumbPath} from './rhumb-path';
|
|
40
|
+
export type {RhumbPathOptions} from './rhumb-path';
|
|
@@ -6,7 +6,7 @@ import {
|
|
|
6
6
|
subdividePolyline,
|
|
7
7
|
type SubdividePolylineOptions,
|
|
8
8
|
type SubdividedPolyline
|
|
9
|
-
} from '@math.gl/geometry';
|
|
9
|
+
} from '@math.gl/geometry/polygon';
|
|
10
10
|
import {Context, same, type Edge} from '../geographic-seams/edge';
|
|
11
11
|
import {GeographicSeamError} from '../geographic-seams/types';
|
|
12
12
|
import type {GeodesicParameters} from '../ellipsoid-geodesic';
|
package/src/geographic-cuts.ts
CHANGED
|
@@ -112,3 +112,24 @@ export type {
|
|
|
112
112
|
SubdivideGeographicCutRingOptions,
|
|
113
113
|
SubdividedGeographicCutRing
|
|
114
114
|
} from './geographic-seams/subdivide-cut';
|
|
115
|
+
|
|
116
|
+
export {
|
|
117
|
+
createOrthographicCutAtlas,
|
|
118
|
+
createOctahedralCutGraph,
|
|
119
|
+
createOctahedralCutAtlas,
|
|
120
|
+
GeographicCutAtlas
|
|
121
|
+
} from './geographic-atlas';
|
|
122
|
+
export type {
|
|
123
|
+
AtlasSubdivisionOptions,
|
|
124
|
+
SubdividedAtlasRing,
|
|
125
|
+
SubdividedAtlasPolyline,
|
|
126
|
+
GeographicAtlasOptions,
|
|
127
|
+
GeographicAtlasBoundary,
|
|
128
|
+
GeographicAtlasChart,
|
|
129
|
+
GeographicCutGraph,
|
|
130
|
+
GeographicAtlasSource,
|
|
131
|
+
GeographicAtlasEdge,
|
|
132
|
+
GeographicAtlasRing,
|
|
133
|
+
GeographicAtlasPolygon,
|
|
134
|
+
GeographicAtlasPolyline
|
|
135
|
+
} from './geographic-atlas';
|
|
@@ -7,7 +7,7 @@ import {
|
|
|
7
7
|
type SubdividePolylineOptions,
|
|
8
8
|
type SubdividedPolyline,
|
|
9
9
|
type PolylineEdgeSampler
|
|
10
|
-
} from '@math.gl/geometry';
|
|
10
|
+
} from '@math.gl/geometry/polygon';
|
|
11
11
|
import {GeodesicPath} from '../geodesic-path';
|
|
12
12
|
import {RhumbPath} from '../rhumb-path';
|
|
13
13
|
import {EllipsoidGeodesic} from '../ellipsoid-geodesic';
|
package/src/index.ts
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
// SPDX-FileCopyrightText: Copyright (c) vis.gl contributors
|
|
4
4
|
|
|
5
5
|
import {Matrix4} from '@math.gl/core/matrix';
|
|
6
|
-
import {HingeTree, type HingePanel} from '@math.gl/geometry';
|
|
6
|
+
import {HingeTree, type HingePanel} from '@math.gl/geometry/primitives';
|
|
7
7
|
import {
|
|
8
8
|
center,
|
|
9
9
|
cross,
|
|
@@ -52,7 +52,7 @@ export type {ProjectionDescriptor} from './projection-descriptor';
|
|
|
52
52
|
|
|
53
53
|
export type {ProjectionCoordinate, ProjectionOutput} from './scalar-output';
|
|
54
54
|
|
|
55
|
-
export type {SpheroidParameters} from '@math.gl/core';
|
|
55
|
+
export type {SpheroidParameters} from '@math.gl/core/types';
|
|
56
56
|
|
|
57
57
|
export {
|
|
58
58
|
ConfigurableProjectionEngine,
|
|
@@ -7,7 +7,7 @@ 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
9
|
async () => {
|
|
10
|
-
const projectionModule = await import('@math.gl/geospatial/projection
|
|
10
|
+
const projectionModule = await import('@math.gl/geospatial/projection-projections-aea');
|
|
11
11
|
return projectionModule.albersEqualArea;
|
|
12
12
|
}
|
|
13
13
|
);
|
|
@@ -8,5 +8,5 @@ export const lazyAzimuthalEquidistant: ProjectionDescriptor =
|
|
|
8
8
|
/* @__PURE__ */ createProjectionDescriptor(
|
|
9
9
|
{name: 'aeqd', aliases: ['Azimuthal_Equidistant']},
|
|
10
10
|
async () =>
|
|
11
|
-
(await import('@math.gl/geospatial/projection
|
|
11
|
+
(await import('@math.gl/geospatial/projection-projections-aeqd')).azimuthalEquidistant
|
|
12
12
|
);
|
|
@@ -7,7 +7,7 @@ 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
9
|
async () => {
|
|
10
|
-
const projectionModule = await import('@math.gl/geospatial/projection
|
|
10
|
+
const projectionModule = await import('@math.gl/geospatial/projection-projections-bonne');
|
|
11
11
|
return projectionModule.bonne;
|
|
12
12
|
}
|
|
13
13
|
);
|
|
@@ -7,7 +7,7 @@ import type {ProjectionDescriptor} from '../projection-descriptor';
|
|
|
7
7
|
export const lazyCassiniSoldner: ProjectionDescriptor = /* @__PURE__ */ createProjectionDescriptor(
|
|
8
8
|
{name: 'cass', aliases: ['Cassini', 'Cassini_Soldner']},
|
|
9
9
|
async () => {
|
|
10
|
-
const projectionModule = await import('@math.gl/geospatial/projection
|
|
10
|
+
const projectionModule = await import('@math.gl/geospatial/projection-projections-cass');
|
|
11
11
|
return projectionModule.cassiniSoldner;
|
|
12
12
|
}
|
|
13
13
|
);
|
|
@@ -8,5 +8,5 @@ export const lazyCylindricalEqualArea: ProjectionDescriptor =
|
|
|
8
8
|
/* @__PURE__ */ createProjectionDescriptor(
|
|
9
9
|
{name: 'cea', aliases: []},
|
|
10
10
|
async () =>
|
|
11
|
-
(await import('@math.gl/geospatial/projection
|
|
11
|
+
(await import('@math.gl/geospatial/projection-projections-cea')).cylindricalEqualArea
|
|
12
12
|
);
|
|
@@ -7,7 +7,7 @@ import type {ProjectionDescriptor} from '../projection-descriptor';
|
|
|
7
7
|
export const lazyEckertVI: ProjectionDescriptor = /* @__PURE__ */ createProjectionDescriptor(
|
|
8
8
|
{name: 'eck6', aliases: ['Eckert_VI']},
|
|
9
9
|
async () => {
|
|
10
|
-
const projectionModule = await import('@math.gl/geospatial/projection
|
|
10
|
+
const projectionModule = await import('@math.gl/geospatial/projection-projections-eck6');
|
|
11
11
|
return projectionModule.eckertVI;
|
|
12
12
|
}
|
|
13
13
|
);
|
|
@@ -11,5 +11,5 @@ export const lazyEquidistantCylindrical: ProjectionDescriptor =
|
|
|
11
11
|
aliases: ['Equirectangular', 'Equidistant_Cylindrical', 'Equidistant_Cylindrical_Spherical']
|
|
12
12
|
},
|
|
13
13
|
async () =>
|
|
14
|
-
(await import('@math.gl/geospatial/projection
|
|
14
|
+
(await import('@math.gl/geospatial/projection-projections-eqc')).equidistantCylindrical
|
|
15
15
|
);
|
|
@@ -8,7 +8,7 @@ export const lazyEquidistantConic: ProjectionDescriptor =
|
|
|
8
8
|
/* @__PURE__ */ createProjectionDescriptor(
|
|
9
9
|
{name: 'eqdc', aliases: ['Equidistant_Conic']},
|
|
10
10
|
async () => {
|
|
11
|
-
const projectionModule = await import('@math.gl/geospatial/projection
|
|
11
|
+
const projectionModule = await import('@math.gl/geospatial/projection-projections-eqdc');
|
|
12
12
|
return projectionModule.equidistantConic;
|
|
13
13
|
}
|
|
14
14
|
);
|
|
@@ -7,7 +7,7 @@ import type {ProjectionDescriptor} from '../projection-descriptor';
|
|
|
7
7
|
export const lazyEqualEarth: ProjectionDescriptor = /* @__PURE__ */ createProjectionDescriptor(
|
|
8
8
|
{name: 'eqearth', aliases: ['Equal Earth', 'Equal_Earth']},
|
|
9
9
|
async () => {
|
|
10
|
-
const projectionModule = await import('@math.gl/geospatial/projection
|
|
10
|
+
const projectionModule = await import('@math.gl/geospatial/projection-projections-eqearth');
|
|
11
11
|
return projectionModule.equalEarth;
|
|
12
12
|
}
|
|
13
13
|
);
|
|
@@ -7,7 +7,7 @@ import type {ProjectionDescriptor} from '../projection-descriptor';
|
|
|
7
7
|
export const lazyEquirectangular: ProjectionDescriptor = /* @__PURE__ */ createProjectionDescriptor(
|
|
8
8
|
{name: 'equi', aliases: []},
|
|
9
9
|
async () => {
|
|
10
|
-
const projectionModule = await import('@math.gl/geospatial/projection
|
|
10
|
+
const projectionModule = await import('@math.gl/geospatial/projection-projections-equi');
|
|
11
11
|
return projectionModule.equirectangular;
|
|
12
12
|
}
|
|
13
13
|
);
|
|
@@ -8,5 +8,5 @@ export const lazyExtendedTransverseMercator: ProjectionDescriptor =
|
|
|
8
8
|
/* @__PURE__ */ createProjectionDescriptor(
|
|
9
9
|
{name: 'etmerc', aliases: ['Extended_Transverse_Mercator', 'Extended Transverse Mercator']},
|
|
10
10
|
async () =>
|
|
11
|
-
(await import('@math.gl/geospatial/projection
|
|
11
|
+
(await import('@math.gl/geospatial/projection-projections-etmerc')).extendedTransverseMercator
|
|
12
12
|
);
|
|
@@ -7,7 +7,7 @@ import type {ProjectionDescriptor} from '../projection-descriptor';
|
|
|
7
7
|
export const lazyGeocentric: ProjectionDescriptor = /* @__PURE__ */ createProjectionDescriptor(
|
|
8
8
|
{name: 'geocent', aliases: ['Geocentric', 'geocentric', 'Geocent']},
|
|
9
9
|
async () => {
|
|
10
|
-
const projectionModule = await import('@math.gl/geospatial/projection
|
|
10
|
+
const projectionModule = await import('@math.gl/geospatial/projection-projections-geocent');
|
|
11
11
|
return projectionModule.geocentric;
|
|
12
12
|
}
|
|
13
13
|
);
|
|
@@ -7,7 +7,7 @@ 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
9
|
async () => {
|
|
10
|
-
const projectionModule = await import('@math.gl/geospatial/projection
|
|
10
|
+
const projectionModule = await import('@math.gl/geospatial/projection-projections-geos');
|
|
11
11
|
return projectionModule.geostationary;
|
|
12
12
|
}
|
|
13
13
|
);
|
|
@@ -7,7 +7,7 @@ import type {ProjectionDescriptor} from '../projection-descriptor';
|
|
|
7
7
|
export const lazyGnomonic: ProjectionDescriptor = /* @__PURE__ */ createProjectionDescriptor(
|
|
8
8
|
{name: 'gnom', aliases: []},
|
|
9
9
|
async () => {
|
|
10
|
-
const projectionModule = await import('@math.gl/geospatial/projection
|
|
10
|
+
const projectionModule = await import('@math.gl/geospatial/projection-projections-gnom');
|
|
11
11
|
return projectionModule.gnomonic;
|
|
12
12
|
}
|
|
13
13
|
);
|
|
@@ -8,6 +8,6 @@ export const lazyGaussSchreiberTransverseMercator: ProjectionDescriptor =
|
|
|
8
8
|
/* @__PURE__ */ createProjectionDescriptor(
|
|
9
9
|
{name: 'gstmerc', aliases: ['gstmerg']},
|
|
10
10
|
async () =>
|
|
11
|
-
(await import('@math.gl/geospatial/projection
|
|
11
|
+
(await import('@math.gl/geospatial/projection-projections-gstmerc'))
|
|
12
12
|
.gaussSchreiberTransverseMercator
|
|
13
13
|
);
|
|
@@ -15,7 +15,7 @@ export const lazyKrovak: ProjectionDescriptor = /* @__PURE__ */ createProjection
|
|
|
15
15
|
]
|
|
16
16
|
},
|
|
17
17
|
async () => {
|
|
18
|
-
const projectionModule = await import('@math.gl/geospatial/projection
|
|
18
|
+
const projectionModule = await import('@math.gl/geospatial/projection-projections-krovak');
|
|
19
19
|
return projectionModule.krovak;
|
|
20
20
|
}
|
|
21
21
|
);
|
|
@@ -8,5 +8,5 @@ export const lazyLambertAzimuthalEqualArea: ProjectionDescriptor =
|
|
|
8
8
|
/* @__PURE__ */ createProjectionDescriptor(
|
|
9
9
|
{name: 'laea', aliases: ['Lambert Azimuthal Equal Area', 'Lambert_Azimuthal_Equal_Area']},
|
|
10
10
|
async () =>
|
|
11
|
-
(await import('@math.gl/geospatial/projection
|
|
11
|
+
(await import('@math.gl/geospatial/projection-projections-laea')).lambertAzimuthalEqualArea
|
|
12
12
|
);
|
|
@@ -18,5 +18,5 @@ export const lazyLambertConformalConic: ProjectionDescriptor =
|
|
|
18
18
|
]
|
|
19
19
|
},
|
|
20
20
|
async () =>
|
|
21
|
-
(await import('@math.gl/geospatial/projection
|
|
21
|
+
(await import('@math.gl/geospatial/projection-projections-lcc')).lambertConformalConic
|
|
22
22
|
);
|
|
@@ -16,7 +16,7 @@ export const lazyMercator: ProjectionDescriptor = /* @__PURE__ */ createProjecti
|
|
|
16
16
|
]
|
|
17
17
|
},
|
|
18
18
|
async () => {
|
|
19
|
-
const projectionModule = await import('@math.gl/geospatial/projection
|
|
19
|
+
const projectionModule = await import('@math.gl/geospatial/projection-projections-merc');
|
|
20
20
|
return projectionModule.mercator;
|
|
21
21
|
}
|
|
22
22
|
);
|
|
@@ -8,7 +8,7 @@ export const lazyMillerCylindrical: ProjectionDescriptor =
|
|
|
8
8
|
/* @__PURE__ */ createProjectionDescriptor(
|
|
9
9
|
{name: 'mill', aliases: ['Miller_Cylindrical']},
|
|
10
10
|
async () => {
|
|
11
|
-
const projectionModule = await import('@math.gl/geospatial/projection
|
|
11
|
+
const projectionModule = await import('@math.gl/geospatial/projection-projections-mill');
|
|
12
12
|
return projectionModule.millerCylindrical;
|
|
13
13
|
}
|
|
14
14
|
);
|
|
@@ -7,7 +7,7 @@ import type {ProjectionDescriptor} from '../projection-descriptor';
|
|
|
7
7
|
export const lazyMollweide: ProjectionDescriptor = /* @__PURE__ */ createProjectionDescriptor(
|
|
8
8
|
{name: 'moll', aliases: ['Mollweide']},
|
|
9
9
|
async () => {
|
|
10
|
-
const projectionModule = await import('@math.gl/geospatial/projection
|
|
10
|
+
const projectionModule = await import('@math.gl/geospatial/projection-projections-moll');
|
|
11
11
|
return projectionModule.mollweide;
|
|
12
12
|
}
|
|
13
13
|
);
|
|
@@ -8,7 +8,7 @@ export const lazyNewZealandMapGrid: ProjectionDescriptor =
|
|
|
8
8
|
/* @__PURE__ */ createProjectionDescriptor(
|
|
9
9
|
{name: 'nzmg', aliases: ['New_Zealand_Map_Grid']},
|
|
10
10
|
async () => {
|
|
11
|
-
const projectionModule = await import('@math.gl/geospatial/projection
|
|
11
|
+
const projectionModule = await import('@math.gl/geospatial/projection-projections-nzmg');
|
|
12
12
|
return projectionModule.newZealandMapGrid;
|
|
13
13
|
}
|
|
14
14
|
);
|
|
@@ -16,7 +16,7 @@ export function lazyObliqueTransformation(
|
|
|
16
16
|
},
|
|
17
17
|
async () => {
|
|
18
18
|
const [{obliqueTransformation}, child] = await Promise.all([
|
|
19
|
-
import('@math.gl/geospatial/projection
|
|
19
|
+
import('@math.gl/geospatial/projection-projections-ob_tran'),
|
|
20
20
|
typeof wrapped === 'string' || 'create' in wrapped ? wrapped : wrapped.preload()
|
|
21
21
|
]);
|
|
22
22
|
return obliqueTransformation(child);
|
|
@@ -19,7 +19,7 @@ export const lazyObliqueMercator: ProjectionDescriptor = /* @__PURE__ */ createP
|
|
|
19
19
|
]
|
|
20
20
|
},
|
|
21
21
|
async () => {
|
|
22
|
-
const projectionModule = await import('@math.gl/geospatial/projection
|
|
22
|
+
const projectionModule = await import('@math.gl/geospatial/projection-projections-omerc');
|
|
23
23
|
return projectionModule.obliqueMercator;
|
|
24
24
|
}
|
|
25
25
|
);
|
|
@@ -7,7 +7,7 @@ import type {ProjectionDescriptor} from '../projection-descriptor';
|
|
|
7
7
|
export const lazyOrthographic: ProjectionDescriptor = /* @__PURE__ */ createProjectionDescriptor(
|
|
8
8
|
{name: 'ortho', aliases: []},
|
|
9
9
|
async () => {
|
|
10
|
-
const projectionModule = await import('@math.gl/geospatial/projection
|
|
10
|
+
const projectionModule = await import('@math.gl/geospatial/projection-projections-ortho');
|
|
11
11
|
return projectionModule.orthographic;
|
|
12
12
|
}
|
|
13
13
|
);
|
|
@@ -7,7 +7,7 @@ import type {ProjectionDescriptor} from '../projection-descriptor';
|
|
|
7
7
|
export const lazyPolyconic: ProjectionDescriptor = /* @__PURE__ */ createProjectionDescriptor(
|
|
8
8
|
{name: 'poly', aliases: ['Polyconic', 'American_Polyconic']},
|
|
9
9
|
async () => {
|
|
10
|
-
const projectionModule = await import('@math.gl/geospatial/projection
|
|
10
|
+
const projectionModule = await import('@math.gl/geospatial/projection-projections-poly');
|
|
11
11
|
return projectionModule.polyconic;
|
|
12
12
|
}
|
|
13
13
|
);
|
|
@@ -11,6 +11,6 @@ export const lazyQuadrilateralizedSphericalCube: ProjectionDescriptor =
|
|
|
11
11
|
aliases: ['Quadrilateralized Spherical Cube', 'Quadrilateralized_Spherical_Cube']
|
|
12
12
|
},
|
|
13
13
|
async () =>
|
|
14
|
-
(await import('@math.gl/geospatial/projection
|
|
14
|
+
(await import('@math.gl/geospatial/projection-projections-qsc'))
|
|
15
15
|
.quadrilateralizedSphericalCube
|
|
16
16
|
);
|
|
@@ -7,7 +7,7 @@ import type {ProjectionDescriptor} from '../projection-descriptor';
|
|
|
7
7
|
export const lazyRobinson: ProjectionDescriptor = /* @__PURE__ */ createProjectionDescriptor(
|
|
8
8
|
{name: 'robin', aliases: ['Robinson']},
|
|
9
9
|
async () => {
|
|
10
|
-
const projectionModule = await import('@math.gl/geospatial/projection
|
|
10
|
+
const projectionModule = await import('@math.gl/geospatial/projection-projections-robin');
|
|
11
11
|
return projectionModule.robinson;
|
|
12
12
|
}
|
|
13
13
|
);
|
|
@@ -7,7 +7,7 @@ import type {ProjectionDescriptor} from '../projection-descriptor';
|
|
|
7
7
|
export const lazySinusoidal: ProjectionDescriptor = /* @__PURE__ */ createProjectionDescriptor(
|
|
8
8
|
{name: 'sinu', aliases: ['Sinusoidal']},
|
|
9
9
|
async () => {
|
|
10
|
-
const projectionModule = await import('@math.gl/geospatial/projection
|
|
10
|
+
const projectionModule = await import('@math.gl/geospatial/projection-projections-sinu');
|
|
11
11
|
return projectionModule.sinusoidal;
|
|
12
12
|
}
|
|
13
13
|
);
|
|
@@ -8,5 +8,5 @@ export const lazySwissObliqueMercator: ProjectionDescriptor =
|
|
|
8
8
|
/* @__PURE__ */ createProjectionDescriptor(
|
|
9
9
|
{name: 'somerc', aliases: []},
|
|
10
10
|
async () =>
|
|
11
|
-
(await import('@math.gl/geospatial/projection
|
|
11
|
+
(await import('@math.gl/geospatial/projection-projections-somerc')).swissObliqueMercator
|
|
12
12
|
);
|
|
@@ -15,7 +15,7 @@ export const lazyStereographic: ProjectionDescriptor = /* @__PURE__ */ createPro
|
|
|
15
15
|
]
|
|
16
16
|
},
|
|
17
17
|
async () => {
|
|
18
|
-
const projectionModule = await import('@math.gl/geospatial/projection
|
|
18
|
+
const projectionModule = await import('@math.gl/geospatial/projection-projections-stere');
|
|
19
19
|
return projectionModule.stereographic;
|
|
20
20
|
}
|
|
21
21
|
);
|
|
@@ -16,5 +16,5 @@ export const lazyObliqueStereographic: ProjectionDescriptor =
|
|
|
16
16
|
]
|
|
17
17
|
},
|
|
18
18
|
async () =>
|
|
19
|
-
(await import('@math.gl/geospatial/projection
|
|
19
|
+
(await import('@math.gl/geospatial/projection-projections-sterea')).obliqueStereographic
|
|
20
20
|
);
|
|
@@ -18,5 +18,5 @@ export const lazyTransverseMercator: ProjectionDescriptor =
|
|
|
18
18
|
]
|
|
19
19
|
},
|
|
20
20
|
async () =>
|
|
21
|
-
(await import('@math.gl/geospatial/projection
|
|
21
|
+
(await import('@math.gl/geospatial/projection-projections-tmerc')).transverseMercator
|
|
22
22
|
);
|
|
@@ -8,7 +8,7 @@ export const lazyTiltedPerspective: ProjectionDescriptor =
|
|
|
8
8
|
/* @__PURE__ */ createProjectionDescriptor(
|
|
9
9
|
{name: 'tpers', aliases: ['Tilted_Perspective']},
|
|
10
10
|
async () => {
|
|
11
|
-
const projectionModule = await import('@math.gl/geospatial/projection
|
|
11
|
+
const projectionModule = await import('@math.gl/geospatial/projection-projections-tpers');
|
|
12
12
|
return projectionModule.tiltedPerspective;
|
|
13
13
|
}
|
|
14
14
|
);
|
|
@@ -8,5 +8,5 @@ export const lazyUniversalTransverseMercator: ProjectionDescriptor =
|
|
|
8
8
|
/* @__PURE__ */ createProjectionDescriptor(
|
|
9
9
|
{name: 'utm', aliases: ['Universal Transverse Mercator System']},
|
|
10
10
|
async () =>
|
|
11
|
-
(await import('@math.gl/geospatial/projection
|
|
11
|
+
(await import('@math.gl/geospatial/projection-projections-utm')).universalTransverseMercator
|
|
12
12
|
);
|
|
@@ -7,7 +7,7 @@ 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
9
|
async () => {
|
|
10
|
-
const projectionModule = await import('@math.gl/geospatial/projection
|
|
10
|
+
const projectionModule = await import('@math.gl/geospatial/projection-projections-vandg');
|
|
11
11
|
return projectionModule.vanDerGrinten;
|
|
12
12
|
}
|
|
13
13
|
);
|
|
@@ -3,8 +3,8 @@
|
|
|
3
3
|
// SPDX-FileCopyrightText: Copyright (c) vis.gl contributors
|
|
4
4
|
// SPDX-FileComment: Original geodesic edge adapter over the shared adaptive polyline subdivision engine.
|
|
5
5
|
|
|
6
|
-
import {subdividePolyline} from '@math.gl/geometry';
|
|
7
|
-
import type {SubdividePolylineOptions, SubdividedPolyline} from '@math.gl/geometry';
|
|
6
|
+
import {subdividePolyline} from '@math.gl/geometry/polygon';
|
|
7
|
+
import type {SubdividePolylineOptions, SubdividedPolyline} from '@math.gl/geometry/polygon';
|
|
8
8
|
import {GeodesicPath, validateGeographicPosition, type GeodesicPathOptions} from './geodesic-path';
|
|
9
9
|
|
|
10
10
|
export type SubdivideGeodesicPolylineOptions = Omit<
|
|
@@ -4,12 +4,12 @@
|
|
|
4
4
|
// SPDX-FileComment: Original adapter over math.gl subdivision and spheroid kernels. Motivation only: https://github.com/keplergl/kepler.gl/pull/3548 (closed, unmerged). No implementation copied.
|
|
5
5
|
|
|
6
6
|
import {spheroidToCartesian} from '@math.gl/core/matrix';
|
|
7
|
+
import {subdivideTriangleMesh} from '@math.gl/geometry/polygon';
|
|
7
8
|
import {
|
|
8
|
-
subdivideTriangleMesh,
|
|
9
9
|
type TriangleMesh,
|
|
10
10
|
type SubdivideTriangleMeshOptions,
|
|
11
11
|
type SubdividedTriangleMesh
|
|
12
|
-
} from '@math.gl/geometry';
|
|
12
|
+
} from '@math.gl/geometry/polygon';
|
|
13
13
|
|
|
14
14
|
/** Preserve the refinement discriminant when removing the globe adapter's fixed transform. */
|
|
15
15
|
type GlobeSubdivisionOptions<Options> = Options extends unknown
|
|
@@ -3,12 +3,12 @@
|
|
|
3
3
|
// SPDX-FileCopyrightText: Copyright (c) vis.gl contributors
|
|
4
4
|
// SPDX-FileComment: Original rhumb adapter for the existing adaptive subdivision engine.
|
|
5
5
|
|
|
6
|
-
import {subdividePolyline} from '@math.gl/geometry';
|
|
6
|
+
import {subdividePolyline} from '@math.gl/geometry/polygon';
|
|
7
7
|
import type {
|
|
8
8
|
SubdividePolylineOptions,
|
|
9
9
|
SubdividedPolyline,
|
|
10
10
|
PolylineEdgeSampler
|
|
11
|
-
} from '@math.gl/geometry';
|
|
11
|
+
} from '@math.gl/geometry/polygon';
|
|
12
12
|
import {RhumbPath, type RhumbPathOptions} from './rhumb-path';
|
|
13
13
|
import {validateGeographicPosition} from './geodesic-path';
|
|
14
14
|
|
package/src/terrain/geometry.ts
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
// SPDX-License-Identifier: MIT
|
|
3
3
|
// SPDX-FileCopyrightText: Copyright (c) vis.gl contributors
|
|
4
4
|
|
|
5
|
-
import {Geometry} from '@math.gl/geometry';
|
|
5
|
+
import {Geometry} from '@math.gl/geometry/primitives';
|
|
6
6
|
import type {HeightField} from './height-field';
|
|
7
7
|
|
|
8
8
|
export type HeightFieldGeometryOptions = {
|