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

@turf/circle

Package Overview
Dependencies
Maintainers
2
Versions
59
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@turf/circle - npm Package Compare versions

Comparing version 3.3.3 to 3.5.2-alpha.d2c36ee7

23

index.js

@@ -5,3 +5,2 @@ var destination = require('@turf/destination');

/**

@@ -13,16 +12,7 @@ * Takes a {@link Point} and calculates the circle polygon given a radius in degrees, radians, miles, or kilometers; and steps for precision.

* @param {number} radius radius of the circle
* @param {number} steps number of steps
* @param {String} [units=kilometers] miles, kilometers, degrees, or radians
* @param {number} [steps=64] number of steps
* @param {string} [units=kilometers] miles, kilometers, degrees, or radians
* @returns {Feature<Polygon>} circle polygon
* @example
* var center = {
* "type": "Feature",
* "properties": {
* "marker-color": "#0f0"
* },
* "geometry": {
* "type": "Point",
* "coordinates": [-75.343, 39.984]
* }
* };
* var center = point([-75.343, 39.984]);
* var radius = 5;

@@ -34,8 +24,3 @@ * var steps = 10;

*
* var result = {
* "type": "FeatureCollection",
* "features": [center, circle]
* };
*
* //=result
* //=circle
*/

@@ -42,0 +27,0 @@ module.exports = function (center, radius, steps, units) {

10

package.json
{
"name": "@turf/circle",
"version": "3.3.3",
"version": "3.5.2-alpha.d2c36ee7",
"description": "turf circle module",

@@ -34,9 +34,9 @@ "main": "index.js",

"tape": "^3.5.0",
"@turf/distance": "^3.3.3",
"@turf/inside": "^3.3.3"
"@turf/distance": "^3.5.2-alpha.d2c36ee7",
"@turf/inside": "^3.5.2-alpha.d2c36ee7"
},
"dependencies": {
"@turf/destination": "^3.3.3",
"@turf/helpers": "^3.3.3"
"@turf/destination": "^3.5.2-alpha.d2c36ee7",
"@turf/helpers": "^3.5.2-alpha.d2c36ee7"
}
}

@@ -11,4 +11,4 @@ # @turf/circle

- `radius` **[number](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Number)** radius of the circle
- `steps` **[number](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Number)** number of steps
- `units` **\[[String](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String)]** miles, kilometers, degrees, or radians (optional, default `kilometers`)
- `steps` **\[[number](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Number)]** number of steps (optional, default `64`)
- `units` **\[[string](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String)]** miles, kilometers, degrees, or radians (optional, default `kilometers`)

@@ -18,12 +18,3 @@ **Examples**

```javascript
var center = {
"type": "Feature",
"properties": {
"marker-color": "#0f0"
},
"geometry": {
"type": "Point",
"coordinates": [-75.343, 39.984]
}
};
var center = point([-75.343, 39.984]);
var radius = 5;

@@ -35,8 +26,3 @@ var steps = 10;

var result = {
"type": "FeatureCollection",
"features": [center, circle]
};
//=result
//=circle
```

@@ -46,2 +32,6 @@

<!-- This file is automatically generated. Please don't edit it directly:
if you find an error, edit the source file (likely index.js), and re-run
./scripts/generate-readmes in the turf project. -->
---

@@ -48,0 +38,0 @@

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