mirror of
https://github.com/FoggedLens/iD.git
synced 2026-05-30 03:39:36 +02:00
Update projection arg for d3.geoPath(), deprecate d3.geoClipExtent()
This commit is contained in:
+1
-1
@@ -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)); }});
|
||||
|
||||
Reference in New Issue
Block a user