diff --git a/types/d3-geo/d3-geo-tests.ts b/types/d3-geo/d3-geo-tests.ts index f698193878..e4b242d856 100644 --- a/types/d3-geo/d3-geo-tests.ts +++ b/types/d3-geo/d3-geo-tests.ts @@ -326,6 +326,7 @@ const mercatorRaw: d3Geo.GeoRawProjection = d3Geo.geoMercatorRaw(); const orthographicRaw: d3Geo.GeoRawProjection = d3Geo.geoOrthographicRaw(); const stereographicRaw: d3Geo.GeoRawProjection = d3Geo.geoStereographicRaw(); const transverseMercatorRaw: d3Geo.GeoRawProjection = d3Geo.geoTransverseMercatorRaw(); +const naturalEart1Raw: d3Geo.GeoRawProjection = d3Geo.geoNaturalEarth1Raw(); // Use Raw Projection ===================================================== @@ -351,6 +352,7 @@ const mercator: d3Geo.GeoProjection = d3Geo.geoMercator(); const orthographic: d3Geo.GeoProjection = d3Geo.geoOrthographic(); const stereographic: d3Geo.GeoProjection = d3Geo.geoStereographic(); const transverseMercator: d3Geo.GeoProjection = d3Geo.geoTransverseMercator(); +const natualEarth1: d3Geo.GeoProjection = d3Geo.geoNaturalEarth1(); // ---------------------------------------------------------------------- // Create New Projections diff --git a/types/d3-geo/index.d.ts b/types/d3-geo/index.d.ts index bff408ce6b..42a8af43af 100644 --- a/types/d3-geo/index.d.ts +++ b/types/d3-geo/index.d.ts @@ -1,9 +1,9 @@ -// Type definitions for D3JS d3-geo module 1.6 +// Type definitions for D3JS d3-geo module 1.7 // Project: https://github.com/d3/d3-geo/ // Definitions by: Hugues Stefanski , Tom Wanzek , Alex Ford , Boris Yankov // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped -// Last module patch version validated against: 1.6.1 +// Last module patch version validated against: 1.7.1 import * as GeoJSON from 'geojson'; @@ -1314,6 +1314,16 @@ export function geoTransverseMercator(): GeoProjection; */ export function geoTransverseMercatorRaw(): GeoRawProjection; +/** + * The Natural Earth projection is a pseudocylindrical projection designed by Tom Patterson. It is neither conformal nor equal-area, but appealing to the eye for small-scale maps of the whole world. + */ +export function geoNaturalEarth1(): GeoProjection; + +/** + * The raw pseudo-cylindircal Natural Earth projection. + */ +export function geoNaturalEarth1Raw(): GeoRawProjection; + // ---------------------------------------------------------------------- // Projection Transforms // ----------------------------------------------------------------------