@turf/concave
Advanced tools
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'); |
{ | ||
"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'); |
6855
72
60
Updated@turf/distance@^4.6.0
Updated@turf/tin@^4.6.0
Updated@turf/union@^4.6.0