@math.gl/geospatial 5.0.0-rc.2 → 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.
Files changed (232) hide show
  1. package/README.md +6 -6
  2. package/dist/coordinates.cjs +2523 -0
  3. package/dist/coordinates.cjs.map +6 -0
  4. package/dist/coordinates.d.ts +4 -0
  5. package/dist/coordinates.d.ts.map +1 -1
  6. package/dist/coordinates.js +2 -0
  7. package/dist/coordinates.js.map +1 -1
  8. package/dist/entries/ellipsoid.cjs +1209 -0
  9. package/dist/entries/ellipsoid.cjs.map +6 -0
  10. package/dist/entries/ellipsoid.d.ts +3 -19
  11. package/dist/entries/ellipsoid.d.ts.map +1 -1
  12. package/dist/entries/ellipsoid.js +1 -9
  13. package/dist/entries/ellipsoid.js.map +1 -1
  14. package/dist/expressions.cjs +726 -0
  15. package/dist/expressions.cjs.map +6 -0
  16. package/dist/geodesics.cjs +3195 -0
  17. package/dist/geodesics.cjs.map +6 -0
  18. package/dist/geodesics.d.ts +18 -0
  19. package/dist/geodesics.d.ts.map +1 -0
  20. package/dist/geodesics.js +13 -0
  21. package/dist/geodesics.js.map +1 -0
  22. package/dist/geographic-atlas/sampling.d.ts +1 -1
  23. package/dist/geographic-atlas/sampling.d.ts.map +1 -1
  24. package/dist/geographic-atlas/sampling.js +1 -1
  25. package/dist/geographic-atlas/sampling.js.map +1 -1
  26. package/dist/geographic-cuts.cjs +4160 -0
  27. package/dist/geographic-cuts.cjs.map +6 -0
  28. package/dist/geographic-cuts.d.ts +2 -0
  29. package/dist/geographic-cuts.d.ts.map +1 -1
  30. package/dist/geographic-cuts.js +1 -0
  31. package/dist/geographic-cuts.js.map +1 -1
  32. package/dist/geographic-seams/subdivide-cut.d.ts +1 -1
  33. package/dist/geographic-seams/subdivide-cut.d.ts.map +1 -1
  34. package/dist/geographic-seams/subdivide-cut.js +1 -1
  35. package/dist/geographic-seams/subdivide-cut.js.map +1 -1
  36. package/dist/geographic-seams/types.shared.cjs +32 -0
  37. package/dist/geographic-seams/types.shared.cjs.map +6 -0
  38. package/dist/globe.cjs +4223 -0
  39. package/dist/globe.cjs.map +6 -0
  40. package/dist/index.d.ts +2 -0
  41. package/dist/index.d.ts.map +1 -1
  42. package/dist/index.js +2 -0
  43. package/dist/index.js.map +1 -1
  44. package/dist/maps/map-transition.shared.cjs +364 -0
  45. package/dist/maps/map-transition.shared.cjs.map +6 -0
  46. package/dist/maps/myriahedral/unfold.d.ts +1 -1
  47. package/dist/maps/myriahedral/unfold.d.ts.map +1 -1
  48. package/dist/maps/myriahedral/unfold.js +1 -1
  49. package/dist/maps/myriahedral/unfold.js.map +1 -1
  50. package/dist/maps/presets.cjs +2 -2
  51. package/dist/maps/presets.cjs.map +2 -2
  52. package/dist/maps/transitions.cjs +3 -342
  53. package/dist/maps/transitions.cjs.map +3 -3
  54. package/dist/maps.cjs +15 -319
  55. package/dist/maps.cjs.map +3 -3
  56. package/dist/projection/experimental/core.cjs +63 -1317
  57. package/dist/projection/experimental/core.cjs.map +3 -3
  58. package/dist/projection/experimental/core.d.ts +1 -1
  59. package/dist/projection/experimental/core.d.ts.map +1 -1
  60. package/dist/projection/experimental/crs/projjson.cjs +26 -45
  61. package/dist/projection/experimental/crs/projjson.cjs.map +3 -3
  62. package/dist/projection/experimental/crs/types.shared.cjs +44 -0
  63. package/dist/projection/experimental/crs/types.shared.cjs.map +6 -0
  64. package/dist/projection/experimental/crs/wkt.cjs +36 -52
  65. package/dist/projection/experimental/crs/wkt.cjs.map +3 -3
  66. package/dist/projection/experimental/entries/projections/ob_tran.cjs +9 -23
  67. package/dist/projection/experimental/entries/projections/ob_tran.cjs.map +3 -3
  68. package/dist/projection/experimental/lazy-projections/aea.cjs +1 -1
  69. package/dist/projection/experimental/lazy-projections/aea.js +1 -1
  70. package/dist/projection/experimental/lazy-projections/aeqd.cjs +1 -1
  71. package/dist/projection/experimental/lazy-projections/aeqd.js +1 -1
  72. package/dist/projection/experimental/lazy-projections/bonne.cjs +1 -1
  73. package/dist/projection/experimental/lazy-projections/bonne.js +1 -1
  74. package/dist/projection/experimental/lazy-projections/cass.cjs +1 -1
  75. package/dist/projection/experimental/lazy-projections/cass.js +1 -1
  76. package/dist/projection/experimental/lazy-projections/cea.cjs +1 -1
  77. package/dist/projection/experimental/lazy-projections/cea.js +1 -1
  78. package/dist/projection/experimental/lazy-projections/eck6.cjs +1 -1
  79. package/dist/projection/experimental/lazy-projections/eck6.js +1 -1
  80. package/dist/projection/experimental/lazy-projections/eqc.cjs +1 -1
  81. package/dist/projection/experimental/lazy-projections/eqc.js +1 -1
  82. package/dist/projection/experimental/lazy-projections/eqdc.cjs +1 -1
  83. package/dist/projection/experimental/lazy-projections/eqdc.js +1 -1
  84. package/dist/projection/experimental/lazy-projections/eqearth.cjs +1 -1
  85. package/dist/projection/experimental/lazy-projections/eqearth.js +1 -1
  86. package/dist/projection/experimental/lazy-projections/equi.cjs +1 -1
  87. package/dist/projection/experimental/lazy-projections/equi.js +1 -1
  88. package/dist/projection/experimental/lazy-projections/etmerc.cjs +1 -1
  89. package/dist/projection/experimental/lazy-projections/etmerc.js +1 -1
  90. package/dist/projection/experimental/lazy-projections/geocent.cjs +1 -1
  91. package/dist/projection/experimental/lazy-projections/geocent.js +1 -1
  92. package/dist/projection/experimental/lazy-projections/geos.cjs +1 -1
  93. package/dist/projection/experimental/lazy-projections/geos.js +1 -1
  94. package/dist/projection/experimental/lazy-projections/gnom.cjs +1 -1
  95. package/dist/projection/experimental/lazy-projections/gnom.js +1 -1
  96. package/dist/projection/experimental/lazy-projections/gstmerc.cjs +1 -1
  97. package/dist/projection/experimental/lazy-projections/gstmerc.js +1 -1
  98. package/dist/projection/experimental/lazy-projections/index.cjs +60 -903
  99. package/dist/projection/experimental/lazy-projections/index.cjs.map +3 -3
  100. package/dist/projection/experimental/lazy-projections/krovak.cjs +1 -1
  101. package/dist/projection/experimental/lazy-projections/krovak.js +1 -1
  102. package/dist/projection/experimental/lazy-projections/laea.cjs +1 -1
  103. package/dist/projection/experimental/lazy-projections/laea.js +1 -1
  104. package/dist/projection/experimental/lazy-projections/lcc.cjs +1 -1
  105. package/dist/projection/experimental/lazy-projections/lcc.js +1 -1
  106. package/dist/projection/experimental/lazy-projections/merc.cjs +1 -1
  107. package/dist/projection/experimental/lazy-projections/merc.js +1 -1
  108. package/dist/projection/experimental/lazy-projections/mill.cjs +1 -1
  109. package/dist/projection/experimental/lazy-projections/mill.js +1 -1
  110. package/dist/projection/experimental/lazy-projections/moll.cjs +1 -1
  111. package/dist/projection/experimental/lazy-projections/moll.js +1 -1
  112. package/dist/projection/experimental/lazy-projections/nzmg.cjs +1 -1
  113. package/dist/projection/experimental/lazy-projections/nzmg.js +1 -1
  114. package/dist/projection/experimental/lazy-projections/ob_tran.cjs +1 -1
  115. package/dist/projection/experimental/lazy-projections/ob_tran.js +1 -1
  116. package/dist/projection/experimental/lazy-projections/omerc.cjs +1 -1
  117. package/dist/projection/experimental/lazy-projections/omerc.js +1 -1
  118. package/dist/projection/experimental/lazy-projections/ortho.cjs +1 -1
  119. package/dist/projection/experimental/lazy-projections/ortho.js +1 -1
  120. package/dist/projection/experimental/lazy-projections/poly.cjs +1 -1
  121. package/dist/projection/experimental/lazy-projections/poly.js +1 -1
  122. package/dist/projection/experimental/lazy-projections/qsc.cjs +1 -1
  123. package/dist/projection/experimental/lazy-projections/qsc.js +1 -1
  124. package/dist/projection/experimental/lazy-projections/robin.cjs +1 -1
  125. package/dist/projection/experimental/lazy-projections/robin.js +1 -1
  126. package/dist/projection/experimental/lazy-projections/sinu.cjs +1 -1
  127. package/dist/projection/experimental/lazy-projections/sinu.js +1 -1
  128. package/dist/projection/experimental/lazy-projections/somerc.cjs +1 -1
  129. package/dist/projection/experimental/lazy-projections/somerc.js +1 -1
  130. package/dist/projection/experimental/lazy-projections/stere.cjs +1 -1
  131. package/dist/projection/experimental/lazy-projections/stere.js +1 -1
  132. package/dist/projection/experimental/lazy-projections/sterea.cjs +1 -1
  133. package/dist/projection/experimental/lazy-projections/sterea.js +1 -1
  134. package/dist/projection/experimental/lazy-projections/tmerc.cjs +1 -1
  135. package/dist/projection/experimental/lazy-projections/tmerc.js +1 -1
  136. package/dist/projection/experimental/lazy-projections/tpers.cjs +1 -1
  137. package/dist/projection/experimental/lazy-projections/tpers.js +1 -1
  138. package/dist/projection/experimental/lazy-projections/utm.cjs +1 -1
  139. package/dist/projection/experimental/lazy-projections/utm.js +1 -1
  140. package/dist/projection/experimental/lazy-projections/vandg.cjs +1 -1
  141. package/dist/projection/experimental/lazy-projections/vandg.js +1 -1
  142. package/dist/projection/experimental/projection-engine.shared.cjs +1184 -0
  143. package/dist/projection/experimental/projection-engine.shared.cjs.map +6 -0
  144. package/dist/projection/experimental/typescript-projection.shared.cjs +1703 -0
  145. package/dist/projection/experimental/typescript-projection.shared.cjs.map +6 -0
  146. package/dist/projection/index.cjs +622 -1535
  147. package/dist/projection/index.cjs.map +3 -3
  148. package/dist/projection/pipeline.cjs +44 -58
  149. package/dist/projection/pipeline.cjs.map +3 -3
  150. package/dist/projection/transform-analysis.cjs +20 -936
  151. package/dist/projection/transform-analysis.cjs.map +3 -3
  152. package/dist/subdivide-geodesic-polyline.d.ts +1 -1
  153. package/dist/subdivide-geodesic-polyline.d.ts.map +1 -1
  154. package/dist/subdivide-geodesic-polyline.js +1 -1
  155. package/dist/subdivide-geodesic-polyline.js.map +1 -1
  156. package/dist/subdivide-globe-mesh.d.ts +1 -1
  157. package/dist/subdivide-globe-mesh.d.ts.map +1 -1
  158. package/dist/subdivide-globe-mesh.js +1 -1
  159. package/dist/subdivide-globe-mesh.js.map +1 -1
  160. package/dist/subdivide-rhumb-polyline.d.ts +1 -1
  161. package/dist/subdivide-rhumb-polyline.d.ts.map +1 -1
  162. package/dist/subdivide-rhumb-polyline.js +1 -1
  163. package/dist/subdivide-rhumb-polyline.js.map +1 -1
  164. package/dist/tasks/index.cjs +808 -2993
  165. package/dist/tasks/index.cjs.map +3 -3
  166. package/dist/terrain/geometry.d.ts +1 -1
  167. package/dist/terrain/geometry.d.ts.map +1 -1
  168. package/dist/terrain/geometry.js +1 -1
  169. package/dist/terrain/geometry.js.map +1 -1
  170. package/dist/terrain/index.cjs +2 -2
  171. package/dist/terrain/index.cjs.map +1 -1
  172. package/dist/tiles.cjs +354 -0
  173. package/dist/tiles.cjs.map +6 -0
  174. package/package.json +139 -117
  175. package/src/coordinates.ts +5 -0
  176. package/src/entries/ellipsoid.ts +7 -32
  177. package/src/geodesics.ts +40 -0
  178. package/src/geographic-atlas/sampling.ts +1 -1
  179. package/src/geographic-cuts.ts +21 -0
  180. package/src/geographic-seams/subdivide-cut.ts +1 -1
  181. package/src/index.ts +2 -0
  182. package/src/maps/myriahedral/unfold.ts +1 -1
  183. package/src/projection/experimental/core.ts +1 -1
  184. package/src/projection/experimental/lazy-projections/aea.ts +1 -1
  185. package/src/projection/experimental/lazy-projections/aeqd.ts +1 -1
  186. package/src/projection/experimental/lazy-projections/bonne.ts +1 -1
  187. package/src/projection/experimental/lazy-projections/cass.ts +1 -1
  188. package/src/projection/experimental/lazy-projections/cea.ts +1 -1
  189. package/src/projection/experimental/lazy-projections/eck6.ts +1 -1
  190. package/src/projection/experimental/lazy-projections/eqc.ts +1 -1
  191. package/src/projection/experimental/lazy-projections/eqdc.ts +1 -1
  192. package/src/projection/experimental/lazy-projections/eqearth.ts +1 -1
  193. package/src/projection/experimental/lazy-projections/equi.ts +1 -1
  194. package/src/projection/experimental/lazy-projections/etmerc.ts +1 -1
  195. package/src/projection/experimental/lazy-projections/geocent.ts +1 -1
  196. package/src/projection/experimental/lazy-projections/geos.ts +1 -1
  197. package/src/projection/experimental/lazy-projections/gnom.ts +1 -1
  198. package/src/projection/experimental/lazy-projections/gstmerc.ts +1 -1
  199. package/src/projection/experimental/lazy-projections/krovak.ts +1 -1
  200. package/src/projection/experimental/lazy-projections/laea.ts +1 -1
  201. package/src/projection/experimental/lazy-projections/lcc.ts +1 -1
  202. package/src/projection/experimental/lazy-projections/merc.ts +1 -1
  203. package/src/projection/experimental/lazy-projections/mill.ts +1 -1
  204. package/src/projection/experimental/lazy-projections/moll.ts +1 -1
  205. package/src/projection/experimental/lazy-projections/nzmg.ts +1 -1
  206. package/src/projection/experimental/lazy-projections/ob_tran.ts +1 -1
  207. package/src/projection/experimental/lazy-projections/omerc.ts +1 -1
  208. package/src/projection/experimental/lazy-projections/ortho.ts +1 -1
  209. package/src/projection/experimental/lazy-projections/poly.ts +1 -1
  210. package/src/projection/experimental/lazy-projections/qsc.ts +1 -1
  211. package/src/projection/experimental/lazy-projections/robin.ts +1 -1
  212. package/src/projection/experimental/lazy-projections/sinu.ts +1 -1
  213. package/src/projection/experimental/lazy-projections/somerc.ts +1 -1
  214. package/src/projection/experimental/lazy-projections/stere.ts +1 -1
  215. package/src/projection/experimental/lazy-projections/sterea.ts +1 -1
  216. package/src/projection/experimental/lazy-projections/tmerc.ts +1 -1
  217. package/src/projection/experimental/lazy-projections/tpers.ts +1 -1
  218. package/src/projection/experimental/lazy-projections/utm.ts +1 -1
  219. package/src/projection/experimental/lazy-projections/vandg.ts +1 -1
  220. package/src/subdivide-geodesic-polyline.ts +2 -2
  221. package/src/subdivide-globe-mesh.ts +2 -2
  222. package/src/subdivide-rhumb-polyline.ts +2 -2
  223. package/src/terrain/geometry.ts +1 -1
  224. package/dist/index.cjs +0 -18674
  225. package/dist/index.cjs.map +0 -6
  226. package/dist/turf-expressions.cjs +0 -1997
  227. package/dist/turf-expressions.cjs.map +0 -6
  228. package/dist/turf-expressions.d.ts +0 -3
  229. package/dist/turf-expressions.d.ts.map +0 -1
  230. package/dist/turf-expressions.js +0 -7
  231. package/dist/turf-expressions.js.map +0 -1
  232. package/src/turf-expressions.ts +0 -7
@@ -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';
@@ -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 {GeodesicPolygon} from '../geodesic-polygon';
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
- GeodesicPath as GeodesicIntersectionPath,
32
- IntersectionPoint,
33
- IntersectionSearchOptions,
34
- IntersectionSearch,
35
- ClosestIntersection,
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';
@@ -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';
@@ -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,6 +3,8 @@
3
3
  // SPDX-FileCopyrightText: Copyright (c) vis.gl contributors
4
4
 
5
5
  export * from './entries/ellipsoid';
6
+ export * from './geodesics';
7
+ export * from './coordinates';
6
8
  export * from './globe';
7
9
  export * from './tiles';
8
10
 
@@ -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/projections/aea');
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/projections/aeqd')).azimuthalEquidistant
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/projections/bonne');
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/projections/cass');
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/projections/cea')).cylindricalEqualArea
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/projections/eck6');
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/projections/eqc')).equidistantCylindrical
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/projections/eqdc');
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/projections/eqearth');
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/projections/equi');
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/projections/etmerc')).extendedTransverseMercator
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/projections/geocent');
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/projections/geos');
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/projections/gnom');
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/projections/gstmerc'))
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/projections/krovak');
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/projections/laea')).lambertAzimuthalEqualArea
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/projections/lcc')).lambertConformalConic
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/projections/merc');
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/projections/mill');
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/projections/moll');
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/projections/nzmg');
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/projections/ob_tran'),
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/projections/omerc');
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/projections/ortho');
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/projections/poly');
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/projections/qsc'))
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/projections/robin');
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/projections/sinu');
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/projections/somerc')).swissObliqueMercator
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/projections/stere');
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/projections/sterea')).obliqueStereographic
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/projections/tmerc')).transverseMercator
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/projections/tpers');
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/projections/utm')).universalTransverseMercator
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/projections/vandg');
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
 
@@ -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 = {