@turf/buffer
Advanced tools
Comparing version
@@ -170,4 +170,4 @@ import center from '@turf/center'; | ||
function defineProjection(geojson) { | ||
const coords = center(geojson).geometry.coordinates; | ||
const rotation = [-coords[0], -coords[1]]; | ||
var coords = center(geojson).geometry.coordinates; | ||
var rotation = [-coords[0], -coords[1]]; | ||
return geoAzimuthalEquidistant().rotate(rotation).scale(earthRadius); | ||
@@ -174,0 +174,0 @@ } |
@@ -174,4 +174,4 @@ 'use strict'; | ||
function defineProjection(geojson) { | ||
const coords = center(geojson).geometry.coordinates; | ||
const rotation = [-coords[0], -coords[1]]; | ||
var coords = center(geojson).geometry.coordinates; | ||
var rotation = [-coords[0], -coords[1]]; | ||
return d3Geo.geoAzimuthalEquidistant().rotate(rotation).scale(helpers.earthRadius); | ||
@@ -178,0 +178,0 @@ } |
{ | ||
"name": "@turf/buffer", | ||
"version": "6.2.0-alpha.3", | ||
"version": "6.2.0", | ||
"description": "turf buffer module", | ||
@@ -48,3 +48,2 @@ "author": "Turf Authors", | ||
"docs": "node ../../scripts/generate-readmes", | ||
"posttest": "node -r esm ../../scripts/validate-es5-dependencies.js", | ||
"test": "npm-run-all test:*", | ||
@@ -55,3 +54,3 @@ "test:tape": "node -r esm test.js", | ||
"devDependencies": { | ||
"@turf/truncate": "^6.2.0-alpha.3", | ||
"@turf/truncate": "^6.2.0", | ||
"benchmark": "*", | ||
@@ -65,11 +64,11 @@ "load-json-file": "*", | ||
"dependencies": { | ||
"@turf/bbox": "^6.2.0-alpha.3", | ||
"@turf/center": "^6.2.0-alpha.3", | ||
"@turf/helpers": "^6.2.0-alpha.3", | ||
"@turf/meta": "^6.2.0-alpha.3", | ||
"@turf/projection": "^6.2.0-alpha.3", | ||
"@turf/bbox": "^6.2.0", | ||
"@turf/center": "^6.2.0", | ||
"@turf/helpers": "^6.2.0", | ||
"@turf/meta": "^6.2.0", | ||
"@turf/projection": "^6.2.0", | ||
"d3-geo": "1.7.1", | ||
"turf-jsts": "*" | ||
}, | ||
"gitHead": "dce9edfc705352e8cb9e0083c9330ba0e8d77409" | ||
"gitHead": "c277baf2b967a35efec75de9ae54869d20da5288" | ||
} |
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
Found 1 instance in 1 package
0
-100%18885
-26.58%7
-12.5%376
-31.88%Updated
Updated
Updated
Updated
Updated