@turf/concave 7.1.0-alpha.7 → 7.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +11 -13
- package/package.json +9 -8
package/README.md
CHANGED
|
@@ -9,12 +9,12 @@ Internally, this uses [turf-tin][2] to generate geometries.
|
|
|
9
9
|
|
|
10
10
|
### Parameters
|
|
11
11
|
|
|
12
|
-
* `points` **[FeatureCollection][3]<[Point][
|
|
13
|
-
* `options` **[Object][
|
|
12
|
+
* `points` **[FeatureCollection][3]<[Point][1]>** input points
|
|
13
|
+
* `options` **[Object][4]** Optional parameters (optional, default `{}`)
|
|
14
14
|
|
|
15
|
-
* `options.maxEdge` **[number][
|
|
15
|
+
* `options.maxEdge` **[number][5]** the length (in 'units') of an edge necessary for part of the
|
|
16
16
|
hull to become concave. (optional, default `Infinity`)
|
|
17
|
-
* `options.units` **[string][
|
|
17
|
+
* `options.units` **[string][6]** can be degrees, radians, miles, or kilometers (optional, default `'kilometers'`)
|
|
18
18
|
|
|
19
19
|
### Examples
|
|
20
20
|
|
|
@@ -35,7 +35,7 @@ var hull = turf.concave(points, options);
|
|
|
35
35
|
var addToMap = [points, hull]
|
|
36
36
|
```
|
|
37
37
|
|
|
38
|
-
Returns **([Feature][
|
|
38
|
+
Returns **([Feature][7]<([Polygon][8] | [MultiPolygon][9])> | null)** a concave hull (null value is returned if unable to compute hull)
|
|
39
39
|
|
|
40
40
|
[1]: https://tools.ietf.org/html/rfc7946#section-3.1.2
|
|
41
41
|
|
|
@@ -43,19 +43,17 @@ Returns **([Feature][8]<([Polygon][9] | [MultiPolygon][10])> | null)** a concave
|
|
|
43
43
|
|
|
44
44
|
[3]: https://tools.ietf.org/html/rfc7946#section-3.3
|
|
45
45
|
|
|
46
|
-
[4]: https://
|
|
46
|
+
[4]: https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Object
|
|
47
47
|
|
|
48
|
-
[5]: https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/
|
|
48
|
+
[5]: https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Number
|
|
49
49
|
|
|
50
|
-
[6]: https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/
|
|
50
|
+
[6]: https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String
|
|
51
51
|
|
|
52
|
-
[7]: https://
|
|
52
|
+
[7]: https://tools.ietf.org/html/rfc7946#section-3.2
|
|
53
53
|
|
|
54
|
-
[8]: https://tools.ietf.org/html/rfc7946#section-3.
|
|
54
|
+
[8]: https://tools.ietf.org/html/rfc7946#section-3.1.6
|
|
55
55
|
|
|
56
|
-
[9]: https://tools.ietf.org/html/rfc7946#section-3.1.
|
|
57
|
-
|
|
58
|
-
[10]: https://tools.ietf.org/html/rfc7946#section-3.1.7
|
|
56
|
+
[9]: https://tools.ietf.org/html/rfc7946#section-3.1.7
|
|
59
57
|
|
|
60
58
|
<!-- This file is automatically generated. Please don't edit it directly. If you find an error, edit the source file of the module in question (likely index.js or index.ts), and re-run "yarn docs" from the root of the turf project. -->
|
|
61
59
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@turf/concave",
|
|
3
|
-
"version": "7.1.0
|
|
3
|
+
"version": "7.1.0",
|
|
4
4
|
"description": "turf concave module",
|
|
5
5
|
"author": "Turf Authors",
|
|
6
6
|
"contributors": [
|
|
@@ -76,15 +76,16 @@
|
|
|
76
76
|
"write-json-file": "^5.0.0"
|
|
77
77
|
},
|
|
78
78
|
"dependencies": {
|
|
79
|
-
"@turf/clone": "^7.1.0
|
|
80
|
-
"@turf/distance": "^7.1.0
|
|
81
|
-
"@turf/helpers": "^7.1.0
|
|
82
|
-
"@turf/invariant": "^7.1.0
|
|
83
|
-
"@turf/meta": "^7.1.0
|
|
84
|
-
"@turf/tin": "^7.1.0
|
|
79
|
+
"@turf/clone": "^7.1.0",
|
|
80
|
+
"@turf/distance": "^7.1.0",
|
|
81
|
+
"@turf/helpers": "^7.1.0",
|
|
82
|
+
"@turf/invariant": "^7.1.0",
|
|
83
|
+
"@turf/meta": "^7.1.0",
|
|
84
|
+
"@turf/tin": "^7.1.0",
|
|
85
|
+
"@types/geojson": "^7946.0.10",
|
|
85
86
|
"topojson-client": "3.x",
|
|
86
87
|
"topojson-server": "3.x",
|
|
87
88
|
"tslib": "^2.6.2"
|
|
88
89
|
},
|
|
89
|
-
"gitHead": "
|
|
90
|
+
"gitHead": "68915eeebc9278bb40dec3f1034499698a0561ef"
|
|
90
91
|
}
|