@turf/flatten 6.5.0 → 7.0.0-alpha.1
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 +0 -0
- package/index.d.ts +2 -2
- package/package.json +10 -8
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
|
File without changes
|
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.1",
|
|
4
4
|
"description": "turf flatten module",
|
|
5
5
|
"author": "Turf Authors",
|
|
6
6
|
"contributors": [
|
|
@@ -32,6 +32,7 @@
|
|
|
32
32
|
"exports": {
|
|
33
33
|
"./package.json": "./package.json",
|
|
34
34
|
".": {
|
|
35
|
+
"types": "./index.d.ts",
|
|
35
36
|
"import": "./dist/es/index.js",
|
|
36
37
|
"require": "./dist/js/index.js"
|
|
37
38
|
}
|
|
@@ -43,12 +44,12 @@
|
|
|
43
44
|
"index.d.ts"
|
|
44
45
|
],
|
|
45
46
|
"scripts": {
|
|
46
|
-
"bench": "
|
|
47
|
+
"bench": "tsx bench.js",
|
|
47
48
|
"build": "rollup -c ../../rollup.config.js && echo '{\"type\":\"module\"}' > dist/es/package.json",
|
|
48
|
-
"docs": "
|
|
49
|
+
"docs": "tsx ../../scripts/generate-readmes",
|
|
49
50
|
"test": "npm-run-all test:*",
|
|
50
|
-
"test:tape": "
|
|
51
|
-
"test:types": "tsc --esModuleInterop --noEmit types.ts"
|
|
51
|
+
"test:tape": "tsx test.js",
|
|
52
|
+
"test:types": "tsc --esModuleInterop --noEmit --strict types.ts"
|
|
52
53
|
},
|
|
53
54
|
"devDependencies": {
|
|
54
55
|
"benchmark": "*",
|
|
@@ -56,11 +57,12 @@
|
|
|
56
57
|
"npm-run-all": "*",
|
|
57
58
|
"rollup": "*",
|
|
58
59
|
"tape": "*",
|
|
60
|
+
"tsx": "*",
|
|
59
61
|
"write-json-file": "*"
|
|
60
62
|
},
|
|
61
63
|
"dependencies": {
|
|
62
|
-
"@turf/helpers": "^
|
|
63
|
-
"@turf/meta": "^
|
|
64
|
+
"@turf/helpers": "^7.0.0-alpha.1",
|
|
65
|
+
"@turf/meta": "^7.0.0-alpha.1"
|
|
64
66
|
},
|
|
65
|
-
"gitHead": "
|
|
67
|
+
"gitHead": "cf7a0c507b017ca066acffd0ce23bda5b393fb5a"
|
|
66
68
|
}
|