@turf/difference 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 +4 -6
- package/package.json +5 -4
package/README.md
CHANGED
|
@@ -8,7 +8,7 @@ Finds the difference between multiple [polygons][1] by clipping the subsequent p
|
|
|
8
8
|
|
|
9
9
|
### Parameters
|
|
10
10
|
|
|
11
|
-
* `features` **[FeatureCollection][2]<([Polygon][
|
|
11
|
+
* `features` **[FeatureCollection][2]<([Polygon][1] | [MultiPolygon][3])>** input Polygon features
|
|
12
12
|
|
|
13
13
|
### Examples
|
|
14
14
|
|
|
@@ -40,17 +40,15 @@ var difference = turf.difference(turf.featureCollection([polygon1, polygon2]));
|
|
|
40
40
|
var addToMap = [polygon1, polygon2, difference];
|
|
41
41
|
```
|
|
42
42
|
|
|
43
|
-
Returns **([Feature][
|
|
43
|
+
Returns **([Feature][4]<([Polygon][1] | [MultiPolygon][3])> | null)** a Polygon or MultiPolygon feature showing the area of `polygon1` excluding the area of `polygon2` (if empty returns `null`)
|
|
44
44
|
|
|
45
45
|
[1]: https://tools.ietf.org/html/rfc7946#section-3.1.6
|
|
46
46
|
|
|
47
47
|
[2]: https://tools.ietf.org/html/rfc7946#section-3.3
|
|
48
48
|
|
|
49
|
-
[3]: https://tools.ietf.org/html/rfc7946#section-3.1.
|
|
49
|
+
[3]: https://tools.ietf.org/html/rfc7946#section-3.1.7
|
|
50
50
|
|
|
51
|
-
[4]: https://tools.ietf.org/html/rfc7946#section-3.
|
|
52
|
-
|
|
53
|
-
[5]: https://tools.ietf.org/html/rfc7946#section-3.2
|
|
51
|
+
[4]: https://tools.ietf.org/html/rfc7946#section-3.2
|
|
54
52
|
|
|
55
53
|
<!-- 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. -->
|
|
56
54
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@turf/difference",
|
|
3
|
-
"version": "7.1.0
|
|
3
|
+
"version": "7.1.0",
|
|
4
4
|
"description": "turf difference module",
|
|
5
5
|
"author": "Turf Authors",
|
|
6
6
|
"license": "MIT",
|
|
@@ -62,10 +62,11 @@
|
|
|
62
62
|
"write-json-file": "^5.0.0"
|
|
63
63
|
},
|
|
64
64
|
"dependencies": {
|
|
65
|
-
"@turf/helpers": "^7.1.0
|
|
66
|
-
"@turf/meta": "^7.1.0
|
|
65
|
+
"@turf/helpers": "^7.1.0",
|
|
66
|
+
"@turf/meta": "^7.1.0",
|
|
67
|
+
"@types/geojson": "^7946.0.10",
|
|
67
68
|
"polygon-clipping": "^0.15.3",
|
|
68
69
|
"tslib": "^2.6.2"
|
|
69
70
|
},
|
|
70
|
-
"gitHead": "
|
|
71
|
+
"gitHead": "68915eeebc9278bb40dec3f1034499698a0561ef"
|
|
71
72
|
}
|