+1
-1
| { | ||
| "name": "bbox-fns", | ||
| "version": "0.20.0", | ||
| "version": "0.20.1", | ||
| "description": "Light-weight JavaScript Bounding Box Utility Functions", | ||
@@ -5,0 +5,0 @@ "main": "./index.js", |
+2
-2
@@ -6,6 +6,6 @@ "use_strict"; | ||
| function reproject(bbox, reproject, { async = false, density, nan_strategy = "throw" } = {}) { | ||
| function reproject(bbox, fwd, { async = false, density, nan_strategy = "throw" } = {}) { | ||
| const polygon = densePolygon(bbox, { density }); | ||
| const ring = polygon[0]; | ||
| const reprojected = ring.map(pt => reproject(pt)); | ||
| const reprojected = ring.map(pt => fwd(pt)); | ||
| if (async) { | ||
@@ -12,0 +12,0 @@ return Promise.all(reprojected).then(points => bboxArray(points, { nan_strategy })); |
44306
-0.03%