Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@turf/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/ellipse - npm Package Compare versions

Comparing version 6.4.0 to 6.5.0

2

dist/es/index.js

@@ -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"
}
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