@turf/ellipse
Advanced tools
Comparing version 5.1.1 to 5.1.5
16
main.js
@@ -42,8 +42,8 @@ 'use strict'; | ||
// validation | ||
if (!center) { throw new Error('center is required'); } | ||
if (!xSemiAxis) { throw new Error('xSemiAxis is required'); } | ||
if (!ySemiAxis) { throw new Error('ySemiAxis is required'); } | ||
if (!helpers.isObject(options)) { throw new Error('options must be an object'); } | ||
if (!helpers.isNumber(steps)) { throw new Error('steps must be a number'); } | ||
if (!helpers.isNumber(angle)) { throw new Error('angle must be a number'); } | ||
if (!center) throw new Error('center is required'); | ||
if (!xSemiAxis) throw new Error('xSemiAxis is required'); | ||
if (!ySemiAxis) throw new Error('ySemiAxis is required'); | ||
if (!helpers.isObject(options)) throw new Error('options must be an object'); | ||
if (!helpers.isNumber(steps)) throw new Error('steps must be a number'); | ||
if (!helpers.isNumber(angle)) throw new Error('angle must be a number'); | ||
@@ -66,4 +66,4 @@ var centerCoords = invariant.getCoord(center); | ||
if (stepAngle < -90 && stepAngle >= -270) { x = -x; } | ||
if (stepAngle < -180 && stepAngle >= -360) { y = -y; } | ||
if (stepAngle < -90 && stepAngle >= -270) x = -x; | ||
if (stepAngle < -180 && stepAngle >= -360) y = -y; | ||
if (units === 'degrees') { | ||
@@ -70,0 +70,0 @@ var newx = x * Math.cos(angleRad) + y * Math.sin(angleRad); |
{ | ||
"name": "@turf/ellipse", | ||
"version": "5.1.1", | ||
"version": "5.1.5", | ||
"description": "turf ellipse module", | ||
"main": "main.js", | ||
"module": "main.mjs", | ||
"module": "main.es.js", | ||
"types": "index.d.ts", | ||
@@ -12,3 +12,3 @@ "files": [ | ||
"main.js", | ||
"main.mjs" | ||
"main.es.js" | ||
], | ||
@@ -18,2 +18,3 @@ "scripts": { | ||
"test": "node -r @std/esm test.js", | ||
"posttest": "node -r @std/esm ../../scripts/validate-es5-dependencies.js", | ||
"bench": "node -r @std/esm bench.js", | ||
@@ -42,6 +43,6 @@ "docs": "node ../../scripts/generate-readmes" | ||
"@std/esm": "*", | ||
"@turf/bbox-polygon": "^5.1.0", | ||
"@turf/circle": "^5.1.0", | ||
"@turf/destination": "^5.1.0", | ||
"@turf/truncate": "^5.1.0", | ||
"@turf/bbox-polygon": "^5.1.5", | ||
"@turf/circle": "^5.1.5", | ||
"@turf/destination": "^5.1.5", | ||
"@turf/truncate": "^5.1.5", | ||
"benchmark": "*", | ||
@@ -51,3 +52,2 @@ "glob": "*", | ||
"rollup": "*", | ||
"rollup-plugin-buble": "*", | ||
"tape": "*", | ||
@@ -57,6 +57,6 @@ "write-json-file": "*" | ||
"dependencies": { | ||
"@turf/helpers": "^5.1.0", | ||
"@turf/invariant": "^5.1.0", | ||
"@turf/rhumb-destination": "^5.1.0", | ||
"@turf/transform-rotate": "^5.1.0" | ||
"@turf/helpers": "^5.1.5", | ||
"@turf/invariant": "^5.1.5", | ||
"@turf/rhumb-destination": "^5.1.5", | ||
"@turf/transform-rotate": "^5.1.5" | ||
}, | ||
@@ -63,0 +63,0 @@ "@std/esm": { |
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
17173
12
Updated@turf/helpers@^5.1.5
Updated@turf/invariant@^5.1.5