Update projection arg for d3.geoPath(), deprecate d3.geoClipExtent()

This commit is contained in:
Bryan Housel
2016-10-29 15:27:06 -04:00
parent b7f02a5752
commit 46b6086dcf
6 changed files with 7 additions and 8 deletions
+1 -1
View File
@@ -2,7 +2,7 @@ import * as d3 from 'd3';
export function svgPath(projection, graph, polygon) {
var cache = {},
clip = d3.geoClipExtent().extent(projection.clipExtent()).stream,
clip = d3.geoIdentity().clipExtent(projection.clipExtent()).stream,
project = projection.stream,
path = d3.geoPath()
.projection({stream: function(output) { return polygon ? project(output) : project(clip(output)); }});