Comparing version 0.1.1 to 0.1.2
module.exports = function(bbox, factor, done){ | ||
var lowX = (((bbox[2] - bbox[0]) / 2) * factor) + bbox[0] | ||
var lowY = (((bbox[3] - bbox[1]) / 2) * factor) + bbox[1] | ||
var highX = (((bbox[2] - bbox[0]) / 2) * factor) + bbox[2] | ||
var highY = (((bbox[3] - bbox[1]) / 2) * factor) + bbox[3] | ||
var xDistance = ((bbox[2] - bbox[0]) / 2) * factor | ||
var yDistance = ((bbox[3] - bbox[1]) / 2) * factor | ||
var lowX = bbox[0] - xDistance | ||
var lowY = bbox[1] - yDistance | ||
var highX = xDistance + bbox[2] | ||
var highY = yDistance + bbox[3] | ||
var sized = [lowX, lowY, highX, highY] | ||
done(null, sized) | ||
} |
{ | ||
"name": "turf", | ||
"version": "0.1.1", | ||
"version": "0.1.2", | ||
"description": "a node.js library for performing geospatial operations with geojson", | ||
@@ -59,2 +59,2 @@ "main": "index.js", | ||
} | ||
} | ||
} |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
4414189
25105