@turf/flatten 6.4.0 → 7.0.0-alpha.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 -4
- package/dist/es/index.js +0 -0
- package/dist/js/index.js +1 -0
- package/index.d.ts +2 -2
- package/package.json +6 -5
package/README.md
CHANGED
|
@@ -6,11 +6,11 @@
|
|
|
6
6
|
|
|
7
7
|
Flattens any [GeoJSON][1] to a [FeatureCollection][2] inspired by [geojson-flatten][3].
|
|
8
8
|
|
|
9
|
-
|
|
9
|
+
### Parameters
|
|
10
10
|
|
|
11
|
-
|
|
11
|
+
* `geojson` **[GeoJSON][4]** any valid GeoJSON Object
|
|
12
12
|
|
|
13
|
-
|
|
13
|
+
### Examples
|
|
14
14
|
|
|
15
15
|
```javascript
|
|
16
16
|
var multiGeometry = turf.multiPolygon([
|
|
@@ -25,7 +25,7 @@ var flatten = turf.flatten(multiGeometry);
|
|
|
25
25
|
var addToMap = [flatten]
|
|
26
26
|
```
|
|
27
27
|
|
|
28
|
-
Returns **[FeatureCollection][5]
|
|
28
|
+
Returns **[FeatureCollection][5]\<any>** all Multi-Geometries are flattened into single Features
|
|
29
29
|
|
|
30
30
|
[1]: https://tools.ietf.org/html/rfc7946#section-3
|
|
31
31
|
|
package/dist/es/index.js
CHANGED
|
File without changes
|
package/dist/js/index.js
CHANGED
package/index.d.ts
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@turf/flatten",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "7.0.0-alpha.0",
|
|
4
4
|
"description": "turf flatten module",
|
|
5
5
|
"author": "Turf Authors",
|
|
6
6
|
"contributors": [
|
|
@@ -16,6 +16,7 @@
|
|
|
16
16
|
"type": "git",
|
|
17
17
|
"url": "git://github.com/Turfjs/turf.git"
|
|
18
18
|
},
|
|
19
|
+
"funding": "https://opencollective.com/turf",
|
|
19
20
|
"publishConfig": {
|
|
20
21
|
"access": "public"
|
|
21
22
|
},
|
|
@@ -47,7 +48,7 @@
|
|
|
47
48
|
"docs": "node ../../scripts/generate-readmes",
|
|
48
49
|
"test": "npm-run-all test:*",
|
|
49
50
|
"test:tape": "node -r esm test.js",
|
|
50
|
-
"test:types": "tsc --esModuleInterop --noEmit types.ts"
|
|
51
|
+
"test:types": "tsc --esModuleInterop --noEmit --strict types.ts"
|
|
51
52
|
},
|
|
52
53
|
"devDependencies": {
|
|
53
54
|
"benchmark": "*",
|
|
@@ -58,8 +59,8 @@
|
|
|
58
59
|
"write-json-file": "*"
|
|
59
60
|
},
|
|
60
61
|
"dependencies": {
|
|
61
|
-
"@turf/helpers": "^
|
|
62
|
-
"@turf/meta": "^
|
|
62
|
+
"@turf/helpers": "^7.0.0-alpha.0",
|
|
63
|
+
"@turf/meta": "^7.0.0-alpha.0"
|
|
63
64
|
},
|
|
64
|
-
"gitHead": "
|
|
65
|
+
"gitHead": "0edc4c491b999e5ace770a61e1cf549f7c004189"
|
|
65
66
|
}
|