Merge pull request #19794 from Ledragon/master

Update d3-geo to version 1.7.1
This commit is contained in:
Benjamin Lichtman
2017-09-19 10:28:16 -07:00
committed by GitHub
2 changed files with 14 additions and 2 deletions

View File

@@ -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

View File

@@ -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 <https://github.com/Ledragon>, Tom Wanzek <https://github.com/tomwanzek>, Alex Ford <https://github.com/gustavderdrache>, Boris Yankov <https://github.com/borisyankov>
// 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
// ----------------------------------------------------------------------