@turf/polygon-smooth 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 +7 -11
- package/package.json +5 -4
package/README.md
CHANGED
|
@@ -9,10 +9,10 @@ Warning: may create degenerate polygons.
|
|
|
9
9
|
|
|
10
10
|
### Parameters
|
|
11
11
|
|
|
12
|
-
* `inputPolys` **([FeatureCollection][4]<([Polygon][
|
|
13
|
-
* `options` **[Object][
|
|
12
|
+
* `inputPolys` **([FeatureCollection][4]<([Polygon][1] | [MultiPolygon][2])> | [Feature][5]<([Polygon][1] | [MultiPolygon][2])> | [Polygon][1] | [MultiPolygon][2])** (Multi)Polygon(s) to smooth
|
|
13
|
+
* `options` **[Object][6]** Optional parameters (optional, default `{}`)
|
|
14
14
|
|
|
15
|
-
* `options.iterations` **[string][
|
|
15
|
+
* `options.iterations` **[string][7]** The number of times to smooth the polygon. A higher value means a smoother polygon. (optional, default `1`)
|
|
16
16
|
|
|
17
17
|
### Examples
|
|
18
18
|
|
|
@@ -25,7 +25,7 @@ var smoothed = turf.polygonSmooth(polygon, {iterations: 3})
|
|
|
25
25
|
var addToMap = [smoothed, polygon];
|
|
26
26
|
```
|
|
27
27
|
|
|
28
|
-
Returns **[FeatureCollection][4]<([Polygon][
|
|
28
|
+
Returns **[FeatureCollection][4]<([Polygon][1] | [MultiPolygon][2])>** FeatureCollection containing the smoothed polygon/multipoylgons
|
|
29
29
|
|
|
30
30
|
[1]: https://tools.ietf.org/html/rfc7946#section-3.1.6
|
|
31
31
|
|
|
@@ -35,15 +35,11 @@ Returns **[FeatureCollection][4]<([Polygon][5] | [MultiPolygon][6])>** FeatureCo
|
|
|
35
35
|
|
|
36
36
|
[4]: https://tools.ietf.org/html/rfc7946#section-3.3
|
|
37
37
|
|
|
38
|
-
[5]: https://tools.ietf.org/html/rfc7946#section-3.
|
|
38
|
+
[5]: https://tools.ietf.org/html/rfc7946#section-3.2
|
|
39
39
|
|
|
40
|
-
[6]: https://
|
|
40
|
+
[6]: https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Object
|
|
41
41
|
|
|
42
|
-
[7]: https://
|
|
43
|
-
|
|
44
|
-
[8]: https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Object
|
|
45
|
-
|
|
46
|
-
[9]: https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String
|
|
42
|
+
[7]: https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String
|
|
47
43
|
|
|
48
44
|
<!-- 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. -->
|
|
49
45
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@turf/polygon-smooth",
|
|
3
|
-
"version": "7.1.0
|
|
3
|
+
"version": "7.1.0",
|
|
4
4
|
"description": "turf polygon smooth module",
|
|
5
5
|
"author": "Turf Authors",
|
|
6
6
|
"contributors": [
|
|
@@ -67,9 +67,10 @@
|
|
|
67
67
|
"write-json-file": "^5.0.0"
|
|
68
68
|
},
|
|
69
69
|
"dependencies": {
|
|
70
|
-
"@turf/helpers": "^7.1.0
|
|
71
|
-
"@turf/meta": "^7.1.0
|
|
70
|
+
"@turf/helpers": "^7.1.0",
|
|
71
|
+
"@turf/meta": "^7.1.0",
|
|
72
|
+
"@types/geojson": "^7946.0.10",
|
|
72
73
|
"tslib": "^2.6.2"
|
|
73
74
|
},
|
|
74
|
-
"gitHead": "
|
|
75
|
+
"gitHead": "68915eeebc9278bb40dec3f1034499698a0561ef"
|
|
75
76
|
}
|