@turf/convex
Advanced tools
Comparing version 4.5.2 to 4.6.0
56
index.js
@@ -16,50 +16,10 @@ var each = require('@turf/meta').coordEach, | ||
* @example | ||
* var points = { | ||
* "type": "FeatureCollection", | ||
* "features": [ | ||
* { | ||
* "type": "Feature", | ||
* "properties": {}, | ||
* "geometry": { | ||
* "type": "Point", | ||
* "coordinates": [10.195312, 43.755225] | ||
* } | ||
* }, { | ||
* "type": "Feature", | ||
* "properties": {}, | ||
* "geometry": { | ||
* "type": "Point", | ||
* "coordinates": [10.404052, 43.8424511] | ||
* } | ||
* }, { | ||
* "type": "Feature", | ||
* "properties": {}, | ||
* "geometry": { | ||
* "type": "Point", | ||
* "coordinates": [10.579833, 43.659924] | ||
* } | ||
* }, { | ||
* "type": "Feature", | ||
* "properties": {}, | ||
* "geometry": { | ||
* "type": "Point", | ||
* "coordinates": [10.360107, 43.516688] | ||
* } | ||
* }, { | ||
* "type": "Feature", | ||
* "properties": {}, | ||
* "geometry": { | ||
* "type": "Point", | ||
* "coordinates": [10.14038, 43.588348] | ||
* } | ||
* }, { | ||
* "type": "Feature", | ||
* "properties": {}, | ||
* "geometry": { | ||
* "type": "Point", | ||
* "coordinates": [10.195312, 43.755225] | ||
* } | ||
* } | ||
* ] | ||
* }; | ||
* var points = turf.featureCollection([ | ||
* turf.point([10.195312, 43.755225]), | ||
* turf.point([10.404052, 43.8424511]), | ||
* turf.point([10.579833, 43.659924]), | ||
* turf.point([10.360107, 43.516688]), | ||
* turf.point([10.14038, 43.588348]), | ||
* turf.point([10.195312, 43.755225]) | ||
* ]); | ||
* | ||
@@ -66,0 +26,0 @@ * var hull = turf.convex(points); |
{ | ||
"name": "@turf/convex", | ||
"version": "4.5.2", | ||
"version": "4.6.0", | ||
"description": "turf convex module", | ||
@@ -35,6 +35,6 @@ "main": "index.js", | ||
"dependencies": { | ||
"@turf/helpers": "^4.5.2", | ||
"@turf/meta": "^4.5.2", | ||
"@turf/helpers": "^4.6.0", | ||
"@turf/meta": "^4.6.0", | ||
"convex-hull": "^1.0.3" | ||
} | ||
} |
@@ -18,50 +18,10 @@ # @turf/convex | ||
```javascript | ||
var points = { | ||
"type": "FeatureCollection", | ||
"features": [ | ||
{ | ||
"type": "Feature", | ||
"properties": {}, | ||
"geometry": { | ||
"type": "Point", | ||
"coordinates": [10.195312, 43.755225] | ||
} | ||
}, { | ||
"type": "Feature", | ||
"properties": {}, | ||
"geometry": { | ||
"type": "Point", | ||
"coordinates": [10.404052, 43.8424511] | ||
} | ||
}, { | ||
"type": "Feature", | ||
"properties": {}, | ||
"geometry": { | ||
"type": "Point", | ||
"coordinates": [10.579833, 43.659924] | ||
} | ||
}, { | ||
"type": "Feature", | ||
"properties": {}, | ||
"geometry": { | ||
"type": "Point", | ||
"coordinates": [10.360107, 43.516688] | ||
} | ||
}, { | ||
"type": "Feature", | ||
"properties": {}, | ||
"geometry": { | ||
"type": "Point", | ||
"coordinates": [10.14038, 43.588348] | ||
} | ||
}, { | ||
"type": "Feature", | ||
"properties": {}, | ||
"geometry": { | ||
"type": "Point", | ||
"coordinates": [10.195312, 43.755225] | ||
} | ||
} | ||
] | ||
}; | ||
var points = turf.featureCollection([ | ||
turf.point([10.195312, 43.755225]), | ||
turf.point([10.404052, 43.8424511]), | ||
turf.point([10.579833, 43.659924]), | ||
turf.point([10.360107, 43.516688]), | ||
turf.point([10.14038, 43.588348]), | ||
turf.point([10.195312, 43.755225]) | ||
]); | ||
@@ -68,0 +28,0 @@ var hull = turf.convex(points); |
5692
56
59
Updated@turf/helpers@^4.6.0
Updated@turf/meta@^4.6.0