New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@turf/standard-deviational-ellipse

Package Overview
Dependencies
Maintainers
6
Versions
25
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@turf/standard-deviational-ellipse - npm Package Compare versions

Comparing version 6.4.0 to 6.5.0

2

dist/es/index.js
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"
}
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc