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 5.1.5 to 6.2.0-alpha.1

dist/es/index.js

70

package.json
{
"name": "@turf/ellipse",
"version": "5.1.5",
"version": "6.2.0-alpha.1",
"description": "turf ellipse module",
"main": "main.js",
"module": "main.es.js",
"types": "index.d.ts",
"files": [
"index.js",
"index.d.ts",
"main.js",
"main.es.js"
"author": "Turf Authors",
"contributors": [
"Moacir P. de Sá Pereira <@muziejus>"
],
"scripts": {
"pretest": "rollup -c ../../rollup.config.js",
"test": "node -r @std/esm test.js",
"posttest": "node -r @std/esm ../../scripts/validate-es5-dependencies.js",
"bench": "node -r @std/esm bench.js",
"docs": "node ../../scripts/generate-readmes"
"license": "MIT",
"bugs": {
"url": "https://github.com/Turfjs/turf/issues"
},
"homepage": "https://github.com/Turfjs/turf",
"repository": {

@@ -25,2 +18,5 @@ "type": "git",

},
"publishConfig": {
"access": "public"
},
"keywords": [

@@ -30,18 +26,25 @@ "turf",

],
"author": "Turf Authors",
"contributors": [
"Moacir P. de Sá Pereira <@muziejus>"
"main": "dist/js/index.js",
"module": "dist/es/index.js",
"types": "index.d.ts",
"sideEffects": false,
"files": [
"dist",
"index.d.ts"
],
"license": "MIT",
"bugs": {
"url": "https://github.com/Turfjs/turf/issues"
"scripts": {
"bench": "npm-run-all prepare bench:run",
"bench:run": "node bench.js",
"docs": "node ../../scripts/generate-readmes",
"posttest": "node -r esm ../../scripts/validate-es5-dependencies.js",
"prepare": "rollup -c ../../rollup.config.js",
"test": "npm-run-all prepare test:*",
"test:tape": "node -r esm test.js"
},
"homepage": "https://github.com/Turfjs/turf",
"devDependencies": {
"@mapbox/geojsonhint": "*",
"@std/esm": "*",
"@turf/bbox-polygon": "^5.1.5",
"@turf/circle": "^5.1.5",
"@turf/destination": "^5.1.5",
"@turf/truncate": "^5.1.5",
"@turf/bbox-polygon": "^6.2.0-alpha.1",
"@turf/circle": "^6.2.0-alpha.1",
"@turf/destination": "^6.2.0-alpha.1",
"@turf/truncate": "^6.2.0-alpha.1",
"benchmark": "*",

@@ -55,11 +58,8 @@ "glob": "*",

"dependencies": {
"@turf/helpers": "^5.1.5",
"@turf/invariant": "^5.1.5",
"@turf/rhumb-destination": "^5.1.5",
"@turf/transform-rotate": "^5.1.5"
"@turf/helpers": "^6.2.0-alpha.1",
"@turf/invariant": "^6.2.0-alpha.1",
"@turf/rhumb-destination": "^6.2.0-alpha.1",
"@turf/transform-rotate": "^6.2.0-alpha.1"
},
"@std/esm": {
"esm": "js",
"cjs": true
}
"gitHead": "fc519c045a8931c1e14eab9160a7e28391f8da02"
}

@@ -7,15 +7,15 @@ # @turf/ellipse

Takes a [Point](https://tools.ietf.org/html/rfc7946#section-3.1.2) and calculates the ellipse polygon given two semi-axes expressed in variable units and steps for precision.
Takes a [Point][1] and calculates the ellipse polygon given two semi-axes expressed in variable units and steps for precision.
**Parameters**
- `center` **[Coord](https://tools.ietf.org/html/rfc7946#section-3.1.1)** center point
- `xSemiAxis` **[number](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Number)** semi (major) axis of the ellipse along the x-axis
- `ySemiAxis` **[number](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Number)** semi (minor) axis of the ellipse along the y-axis
- `options` **[Object](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object)** Optional parameters (optional, default `{}`)
- `options.angle` **[number](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Number)** angle of rotation (along the vertical axis), from North in decimal degrees, negative clockwise (optional, default `0`)
- `options.pivot` **[Coord](https://tools.ietf.org/html/rfc7946#section-3.1.1)** point around which the rotation will be performed (optional, default `'origin'`)
- `options.steps` **[number](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Number)** number of steps (optional, default `64`)
- `options.units` **[string](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String)** unit of measurement for axes (optional, default `'kilometers'`)
- `options.properties` **[Object](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object)** properties (optional, default `{}`)
- `center` **[Coord][2]** center point
- `xSemiAxis` **[number][3]** semi (major) axis of the ellipse along the x-axis
- `ySemiAxis` **[number][3]** semi (minor) axis of the ellipse along the y-axis
- `options` **[Object][4]** Optional parameters (optional, default `{}`)
- `options.angle` **[number][3]** angle of rotation (along the vertical axis), from North in decimal degrees, negative clockwise (optional, default `0`)
- `options.pivot` **[Coord][2]** point around which the rotation will be performed (optional, default `'origin'`)
- `options.steps` **[number][3]** number of steps (optional, default `64`)
- `options.units` **[string][5]** unit of measurement for axes (optional, default `'kilometers'`)
- `options.properties` **[Object][4]** properties (optional, default `{}`)

@@ -34,4 +34,18 @@ **Examples**

Returns **[Feature](https://tools.ietf.org/html/rfc7946#section-3.2)&lt;[Polygon](https://tools.ietf.org/html/rfc7946#section-3.1.6)>** ellipse polygon
Returns **[Feature][6]&lt;[Polygon][7]>** ellipse polygon
[1]: https://tools.ietf.org/html/rfc7946#section-3.1.2
[2]: https://tools.ietf.org/html/rfc7946#section-3.1.1
[3]: https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Number
[4]: https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Object
[5]: https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String
[6]: https://tools.ietf.org/html/rfc7946#section-3.2
[7]: https://tools.ietf.org/html/rfc7946#section-3.1.6
<!-- This file is automatically generated. Please don't edit it directly:

@@ -38,0 +52,0 @@ if you find an error, edit the source file (likely index.js), and re-run

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