@turf/simplify
Advanced tools
Comparing version 3.7.3 to 3.7.5
@@ -150,5 +150,5 @@ var simplify = require('simplify-js'); | ||
return simplify(coordinates.map(function (coord) { | ||
return {x: coord[0], y: coord[1]}; | ||
return {x: coord[0], y: coord[1], z: coord[2]}; | ||
}), tolerance, highQuality).map(function (coords) { | ||
return [coords.x, coords.y]; | ||
return (coords.z) ? [coords.x, coords.y, coords.z] : [coords.x, coords.y]; | ||
}); | ||
@@ -155,0 +155,0 @@ } |
{ | ||
"name": "@turf/simplify", | ||
"version": "3.7.3", | ||
"version": "3.7.5", | ||
"description": "simplify geographic shapes", | ||
@@ -10,3 +10,3 @@ "main": "index.js", | ||
"scripts": { | ||
"test": "tape test/*.js" | ||
"test": "tape test.js" | ||
}, | ||
@@ -13,0 +13,0 @@ "repository": { |
18260
7
330
2