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

@turf/concave

Package Overview
Dependencies
Maintainers
4
Versions
71
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@turf/concave - npm Package Compare versions

Comparing version 4.5.2 to 4.6.0

57

index.js

@@ -12,3 +12,2 @@ // 1. run tin on points

* Takes a set of {@link Point|points} and returns a concave hull polygon.
*
* Internally, this uses [turf-tin](https://github.com/Turfjs/turf-tin) to generate geometries.

@@ -22,50 +21,10 @@ *

* @example
* var points = {
* "type": "FeatureCollection",
* "features": [
* {
* "type": "Feature",
* "properties": {},
* "geometry": {
* "type": "Point",
* "coordinates": [-63.601226, 44.642643]
* }
* }, {
* "type": "Feature",
* "properties": {},
* "geometry": {
* "type": "Point",
* "coordinates": [-63.591442, 44.651436]
* }
* }, {
* "type": "Feature",
* "properties": {},
* "geometry": {
* "type": "Point",
* "coordinates": [-63.580799, 44.648749]
* }
* }, {
* "type": "Feature",
* "properties": {},
* "geometry": {
* "type": "Point",
* "coordinates": [-63.573589, 44.641788]
* }
* }, {
* "type": "Feature",
* "properties": {},
* "geometry": {
* "type": "Point",
* "coordinates": [-63.587665, 44.64533]
* }
* }, {
* "type": "Feature",
* "properties": {},
* "geometry": {
* "type": "Point",
* "coordinates": [-63.595218, 44.64765]
* }
* }
* ]
* };
* var points = turf.featureCollection([
* turf.point([-63.601226, 44.642643]),
* turf.point([-63.591442, 44.651436]),
* turf.point([-63.580799, 44.648749]),
* turf.point([-63.573589, 44.641788]),
* turf.point([-63.587665, 44.64533]),
* turf.point([-63.595218, 44.64765])
* ]);
*

@@ -72,0 +31,0 @@ * var hull = turf.concave(points, 1, 'miles');

10

package.json
{
"name": "@turf/concave",
"version": "4.5.2",
"version": "4.6.0",
"description": "turf concave module",

@@ -31,3 +31,3 @@ "main": "index.js",

"devDependencies": {
"@turf/helpers": "^4.5.2",
"@turf/helpers": "^4.6.0",
"benchmark": "^2.1.4",

@@ -38,6 +38,6 @@ "glob": "~4.3.5",

"dependencies": {
"@turf/distance": "^4.5.2",
"@turf/tin": "^4.5.2",
"@turf/union": "^4.5.2"
"@turf/distance": "^4.6.0",
"@turf/tin": "^4.6.0",
"@turf/union": "^4.6.0"
}
}

@@ -6,3 +6,2 @@ # @turf/concave

Takes a set of [points](http://geojson.org/geojson-spec.html#point) and returns a concave hull polygon.
Internally, this uses [turf-tin](https://github.com/Turfjs/turf-tin) to generate geometries.

@@ -19,50 +18,10 @@

```javascript
var points = {
"type": "FeatureCollection",
"features": [
{
"type": "Feature",
"properties": {},
"geometry": {
"type": "Point",
"coordinates": [-63.601226, 44.642643]
}
}, {
"type": "Feature",
"properties": {},
"geometry": {
"type": "Point",
"coordinates": [-63.591442, 44.651436]
}
}, {
"type": "Feature",
"properties": {},
"geometry": {
"type": "Point",
"coordinates": [-63.580799, 44.648749]
}
}, {
"type": "Feature",
"properties": {},
"geometry": {
"type": "Point",
"coordinates": [-63.573589, 44.641788]
}
}, {
"type": "Feature",
"properties": {},
"geometry": {
"type": "Point",
"coordinates": [-63.587665, 44.64533]
}
}, {
"type": "Feature",
"properties": {},
"geometry": {
"type": "Point",
"coordinates": [-63.595218, 44.64765]
}
}
]
};
var points = turf.featureCollection([
turf.point([-63.601226, 44.642643]),
turf.point([-63.591442, 44.651436]),
turf.point([-63.580799, 44.648749]),
turf.point([-63.573589, 44.641788]),
turf.point([-63.587665, 44.64533]),
turf.point([-63.595218, 44.64765])
]);

@@ -69,0 +28,0 @@ var hull = turf.concave(points, 1, 'miles');

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