@turf/ellipse
Advanced tools
Comparing version 6.4.0 to 6.5.0
@@ -1,2 +0,2 @@ | ||
import { degreesToRadians, polygon, isObject, isNumber } from '@turf/helpers'; | ||
import { isObject, isNumber, degreesToRadians, polygon } from '@turf/helpers'; | ||
import rhumbDestination from '@turf/rhumb-destination'; | ||
@@ -3,0 +3,0 @@ import transformRotate from '@turf/transform-rotate'; |
'use strict'; | ||
function _interopDefault (ex) { return (ex && (typeof ex === 'object') && 'default' in ex) ? ex['default'] : ex; } | ||
var helpers = require('@turf/helpers'); | ||
var rhumbDestination = _interopDefault(require('@turf/rhumb-destination')); | ||
var transformRotate = _interopDefault(require('@turf/transform-rotate')); | ||
var rhumbDestination = require('@turf/rhumb-destination'); | ||
var transformRotate = require('@turf/transform-rotate'); | ||
var invariant = require('@turf/invariant'); | ||
function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; } | ||
var rhumbDestination__default = /*#__PURE__*/_interopDefaultLegacy(rhumbDestination); | ||
var transformRotate__default = /*#__PURE__*/_interopDefaultLegacy(transformRotate); | ||
/** | ||
@@ -53,4 +56,4 @@ * Takes a {@link Point} and calculates the ellipse polygon given two semi-axes expressed in variable units and steps for precision. | ||
} else { | ||
xSemiAxis = rhumbDestination(center, xSemiAxis, 90, { units: units }); | ||
ySemiAxis = rhumbDestination(center, ySemiAxis, 0, { units: units }); | ||
xSemiAxis = rhumbDestination__default['default'](center, xSemiAxis, 90, { units: units }); | ||
ySemiAxis = rhumbDestination__default['default'](center, ySemiAxis, 0, { units: units }); | ||
xSemiAxis = invariant.getCoord(xSemiAxis)[0] - centerCoords[0]; | ||
@@ -91,3 +94,3 @@ ySemiAxis = invariant.getCoord(ySemiAxis)[1] - centerCoords[1]; | ||
} else { | ||
return transformRotate(helpers.polygon([coordinates], properties), angle, { | ||
return transformRotate__default['default'](helpers.polygon([coordinates], properties), angle, { | ||
pivot: pivot, | ||
@@ -111,1 +114,2 @@ }); | ||
module.exports = ellipse; | ||
module.exports.default = ellipse; |
{ | ||
"name": "@turf/ellipse", | ||
"version": "6.4.0", | ||
"version": "6.5.0", | ||
"description": "turf ellipse module", | ||
@@ -18,2 +18,3 @@ "author": "Turf Authors", | ||
}, | ||
"funding": "https://opencollective.com/turf", | ||
"publishConfig": { | ||
@@ -50,6 +51,6 @@ "access": "public" | ||
"@mapbox/geojsonhint": "*", | ||
"@turf/bbox-polygon": "^6.4.0", | ||
"@turf/circle": "^6.4.0", | ||
"@turf/destination": "^6.4.0", | ||
"@turf/truncate": "^6.4.0", | ||
"@turf/bbox-polygon": "^6.5.0", | ||
"@turf/circle": "^6.5.0", | ||
"@turf/destination": "^6.5.0", | ||
"@turf/truncate": "^6.5.0", | ||
"benchmark": "*", | ||
@@ -64,8 +65,8 @@ "glob": "*", | ||
"dependencies": { | ||
"@turf/helpers": "^6.4.0", | ||
"@turf/invariant": "^6.4.0", | ||
"@turf/rhumb-destination": "^6.4.0", | ||
"@turf/transform-rotate": "^6.4.0" | ||
"@turf/helpers": "^6.5.0", | ||
"@turf/invariant": "^6.5.0", | ||
"@turf/rhumb-destination": "^6.5.0", | ||
"@turf/transform-rotate": "^6.5.0" | ||
}, | ||
"gitHead": "1e62773cfc88c627cca8effcb5c14cfb65a905ac" | ||
"gitHead": "5375941072b90d489389db22b43bfe809d5e451e" | ||
} |
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
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
13360
211
0
Updated@turf/helpers@^6.5.0
Updated@turf/invariant@^6.5.0