@turf/union 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 +5 -9
- package/package.json +5 -4
package/README.md
CHANGED
|
@@ -8,10 +8,10 @@ Takes input [(Multi)Polygon(s)][1] and returns a combined polygon. If the input
|
|
|
8
8
|
|
|
9
9
|
### Parameters
|
|
10
10
|
|
|
11
|
-
* `polygon1` **[Feature][3]<([Polygon][
|
|
12
|
-
* `options` **[Object][
|
|
11
|
+
* `polygon1` **[Feature][3]<([Polygon][1] | [MultiPolygon][2])>** input Polygon features
|
|
12
|
+
* `options` **[Object][4]** Optional Parameters (optional, default `{}`)
|
|
13
13
|
|
|
14
|
-
* `options.properties` **[Object][
|
|
14
|
+
* `options.properties` **[Object][4]** Translate Properties to output Feature (optional, default `{}`)
|
|
15
15
|
|
|
16
16
|
### Examples
|
|
17
17
|
|
|
@@ -37,7 +37,7 @@ var union = turf.union(turf.featureCollection([poly1, poly2]));
|
|
|
37
37
|
var addToMap = [poly1, poly2, union];
|
|
38
38
|
```
|
|
39
39
|
|
|
40
|
-
Returns **[Feature][3]<([Polygon][
|
|
40
|
+
Returns **[Feature][3]<([Polygon][1] | [MultiPolygon][2])>** a combined [Polygon][1] or [MultiPolygon][2] feature, or null if the inputs are empty
|
|
41
41
|
|
|
42
42
|
[1]: https://tools.ietf.org/html/rfc7946#section-3.1.6
|
|
43
43
|
|
|
@@ -45,11 +45,7 @@ Returns **[Feature][3]<([Polygon][4] | [MultiPolygon][5])>** a combined [Polygon
|
|
|
45
45
|
|
|
46
46
|
[3]: https://tools.ietf.org/html/rfc7946#section-3.2
|
|
47
47
|
|
|
48
|
-
[4]: https://
|
|
49
|
-
|
|
50
|
-
[5]: https://tools.ietf.org/html/rfc7946#section-3.1.7
|
|
51
|
-
|
|
52
|
-
[6]: https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Object
|
|
48
|
+
[4]: https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Object
|
|
53
49
|
|
|
54
50
|
<!-- 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. -->
|
|
55
51
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@turf/union",
|
|
3
|
-
"version": "7.1.0
|
|
3
|
+
"version": "7.1.0",
|
|
4
4
|
"description": "turf union module",
|
|
5
5
|
"author": "Turf Authors",
|
|
6
6
|
"license": "MIT",
|
|
@@ -63,10 +63,11 @@
|
|
|
63
63
|
"write-json-file": "^5.0.0"
|
|
64
64
|
},
|
|
65
65
|
"dependencies": {
|
|
66
|
-
"@turf/helpers": "^7.1.0
|
|
67
|
-
"@turf/meta": "^7.1.0
|
|
66
|
+
"@turf/helpers": "^7.1.0",
|
|
67
|
+
"@turf/meta": "^7.1.0",
|
|
68
|
+
"@types/geojson": "^7946.0.10",
|
|
68
69
|
"polygon-clipping": "^0.15.3",
|
|
69
70
|
"tslib": "^2.6.2"
|
|
70
71
|
},
|
|
71
|
-
"gitHead": "
|
|
72
|
+
"gitHead": "68915eeebc9278bb40dec3f1034499698a0561ef"
|
|
72
73
|
}
|