@turf/flip 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 +6 -5
- package/dist/es/index.js +0 -0
- package/dist/js/index.js +0 -0
- package/package.json +11 -9
package/README.md
CHANGED
|
@@ -6,13 +6,14 @@
|
|
|
6
6
|
|
|
7
7
|
Takes input features and flips all of their coordinates from `[x, y]` to `[y, x]`.
|
|
8
8
|
|
|
9
|
-
|
|
9
|
+
### Parameters
|
|
10
10
|
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
- `options.mutate` **[boolean][3]** allows GeoJSON input to be mutated (significant performance increase if true) (optional, default `false`)
|
|
11
|
+
* `geojson` **[GeoJSON][1]** input features
|
|
12
|
+
* `options` **[Object][2]** Optional parameters (optional, default `{}`)
|
|
14
13
|
|
|
15
|
-
**
|
|
14
|
+
* `options.mutate` **[boolean][3]** allows GeoJSON input to be mutated (significant performance increase if true) (optional, default `false`)
|
|
15
|
+
|
|
16
|
+
### Examples
|
|
16
17
|
|
|
17
18
|
```javascript
|
|
18
19
|
var serbia = turf.point([20.566406, 43.421008]);
|
package/dist/es/index.js
CHANGED
|
File without changes
|
package/dist/js/index.js
CHANGED
|
File without changes
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@turf/flip",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "7.0.0-alpha.1",
|
|
4
4
|
"description": "turf flip module",
|
|
5
5
|
"author": "Turf Authors",
|
|
6
6
|
"license": "MIT",
|
|
@@ -27,6 +27,7 @@
|
|
|
27
27
|
"exports": {
|
|
28
28
|
"./package.json": "./package.json",
|
|
29
29
|
".": {
|
|
30
|
+
"types": "./index.d.ts",
|
|
30
31
|
"import": "./dist/es/index.js",
|
|
31
32
|
"require": "./dist/js/index.js"
|
|
32
33
|
}
|
|
@@ -38,12 +39,12 @@
|
|
|
38
39
|
"index.d.ts"
|
|
39
40
|
],
|
|
40
41
|
"scripts": {
|
|
41
|
-
"bench": "
|
|
42
|
+
"bench": "tsx bench.js",
|
|
42
43
|
"build": "rollup -c ../../rollup.config.js && echo '{\"type\":\"module\"}' > dist/es/package.json",
|
|
43
|
-
"docs": "
|
|
44
|
+
"docs": "tsx ../../scripts/generate-readmes",
|
|
44
45
|
"test": "npm-run-all test:*",
|
|
45
|
-
"test:tape": "
|
|
46
|
-
"test:types": "tsc --esModuleInterop --noEmit types.ts"
|
|
46
|
+
"test:tape": "tsx test.js",
|
|
47
|
+
"test:types": "tsc --esModuleInterop --noEmit --strict types.ts"
|
|
47
48
|
},
|
|
48
49
|
"devDependencies": {
|
|
49
50
|
"benchmark": "*",
|
|
@@ -51,12 +52,13 @@
|
|
|
51
52
|
"npm-run-all": "*",
|
|
52
53
|
"rollup": "*",
|
|
53
54
|
"tape": "*",
|
|
55
|
+
"tsx": "*",
|
|
54
56
|
"write-json-file": "*"
|
|
55
57
|
},
|
|
56
58
|
"dependencies": {
|
|
57
|
-
"@turf/clone": "^
|
|
58
|
-
"@turf/helpers": "^
|
|
59
|
-
"@turf/meta": "^
|
|
59
|
+
"@turf/clone": "^7.0.0-alpha.1",
|
|
60
|
+
"@turf/helpers": "^7.0.0-alpha.1",
|
|
61
|
+
"@turf/meta": "^7.0.0-alpha.1"
|
|
60
62
|
},
|
|
61
|
-
"gitHead": "
|
|
63
|
+
"gitHead": "cf7a0c507b017ca066acffd0ce23bda5b393fb5a"
|
|
62
64
|
}
|