@turf/standard-deviational-ellipse
Advanced tools
Comparing version 6.4.0 to 6.5.0
import { coordAll, featureEach } from '@turf/meta'; | ||
import { getCoords } from '@turf/invariant'; | ||
import { featureCollection, isObject, isNumber } from '@turf/helpers'; | ||
import { isObject, isNumber, featureCollection } from '@turf/helpers'; | ||
import centerMean from '@turf/center-mean'; | ||
@@ -5,0 +5,0 @@ import pointsWithinPolygon from '@turf/points-within-polygon'; |
'use strict'; | ||
function _interopDefault (ex) { return (ex && (typeof ex === 'object') && 'default' in ex) ? ex['default'] : ex; } | ||
var meta = require('@turf/meta'); | ||
var invariant = require('@turf/invariant'); | ||
var helpers = require('@turf/helpers'); | ||
var centerMean = _interopDefault(require('@turf/center-mean')); | ||
var pointsWithinPolygon = _interopDefault(require('@turf/points-within-polygon')); | ||
var ellipse = _interopDefault(require('@turf/ellipse')); | ||
var centerMean = require('@turf/center-mean'); | ||
var pointsWithinPolygon = require('@turf/points-within-polygon'); | ||
var ellipse = require('@turf/ellipse'); | ||
function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; } | ||
var centerMean__default = /*#__PURE__*/_interopDefaultLegacy(centerMean); | ||
var pointsWithinPolygon__default = /*#__PURE__*/_interopDefaultLegacy(pointsWithinPolygon); | ||
var ellipse__default = /*#__PURE__*/_interopDefaultLegacy(ellipse); | ||
/** | ||
@@ -64,3 +68,3 @@ * Takes a {@link FeatureCollection} and returns a standard deviational ellipse, | ||
var numberOfFeatures = meta.coordAll(points).length; | ||
var meanCenter = centerMean(points, { weight: weightTerm }); | ||
var meanCenter = centerMean__default['default'](points, { weight: weightTerm }); | ||
@@ -117,3 +121,3 @@ // Calculate angle of rotation: | ||
var theEllipse = ellipse(meanCenter, sigmaX, sigmaY, { | ||
var theEllipse = ellipse__default['default'](meanCenter, sigmaX, sigmaY, { | ||
units: "degrees", | ||
@@ -124,3 +128,3 @@ angle: thetaDeg, | ||
}); | ||
var pointsWithinEllipse = pointsWithinPolygon( | ||
var pointsWithinEllipse = pointsWithinPolygon__default['default']( | ||
points, | ||
@@ -159,1 +163,2 @@ helpers.featureCollection([theEllipse]) | ||
module.exports = standardDeviationalEllipse; | ||
module.exports.default = standardDeviationalEllipse; |
{ | ||
"name": "@turf/standard-deviational-ellipse", | ||
"version": "6.4.0", | ||
"version": "6.5.0", | ||
"description": "turf standard-deviational-ellipse module", | ||
@@ -18,2 +18,3 @@ "author": "Turf Authors", | ||
}, | ||
"funding": "https://opencollective.com/turf", | ||
"publishConfig": { | ||
@@ -52,4 +53,4 @@ "access": "public" | ||
"devDependencies": { | ||
"@turf/random": "^6.4.0", | ||
"@turf/truncate": "^6.4.0", | ||
"@turf/random": "^6.5.0", | ||
"@turf/truncate": "^6.5.0", | ||
"benchmark": "*", | ||
@@ -63,10 +64,10 @@ "load-json-file": "*", | ||
"dependencies": { | ||
"@turf/center-mean": "^6.4.0", | ||
"@turf/ellipse": "^6.4.0", | ||
"@turf/helpers": "^6.4.0", | ||
"@turf/invariant": "^6.4.0", | ||
"@turf/meta": "^6.4.0", | ||
"@turf/points-within-polygon": "^6.4.0" | ||
"@turf/center-mean": "^6.5.0", | ||
"@turf/ellipse": "^6.5.0", | ||
"@turf/helpers": "^6.5.0", | ||
"@turf/invariant": "^6.5.0", | ||
"@turf/meta": "^6.5.0", | ||
"@turf/points-within-polygon": "^6.5.0" | ||
}, | ||
"gitHead": "1e62773cfc88c627cca8effcb5c14cfb65a905ac" | ||
"gitHead": "5375941072b90d489389db22b43bfe809d5e451e" | ||
} |
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
18580
315
0
Updated@turf/center-mean@^6.5.0
Updated@turf/ellipse@^6.5.0
Updated@turf/helpers@^6.5.0
Updated@turf/invariant@^6.5.0
Updated@turf/meta@^6.5.0