@turf/simplify 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 CHANGED
@@ -7,15 +7,16 @@
7
7
  Takes a [GeoJSON][1] object and returns a simplified version. Internally uses
8
8
  [simplify-js][2] to perform simplification using the Ramer-Douglas-Peucker algorithm.
9
9
 
10
- **Parameters**
10
+ ### Parameters
11
11
 
12
- - `geojson` **[GeoJSON][3]** object to be simplified
13
- - `options` **[Object][4]** Optional parameters (optional, default `{}`)
14
- - `options.tolerance` **[number][5]** simplification tolerance (optional, default `1`)
15
- - `options.highQuality` **[boolean][6]** whether or not to spend more time to create a higher-quality simplification with a different algorithm (optional, default `false`)
16
- - `options.mutate` **[boolean][6]** allows GeoJSON input to be mutated (significant performance increase if true) (optional, default `false`)
12
+ * `geojson` **[GeoJSON][3]** object to be simplified
13
+ * `options` **[Object][4]** Optional parameters (optional, default `{}`)
17
14
 
18
- **Examples**
15
+ * `options.tolerance` **[number][5]** simplification tolerance (optional, default `1`)
16
+ * `options.highQuality` **[boolean][6]** whether or not to spend more time to create a higher-quality simplification with a different algorithm (optional, default `false`)
17
+ * `options.mutate` **[boolean][6]** allows GeoJSON input to be mutated (significant performance increase if true) (optional, default `false`)
18
+
19
+ ### Examples
19
20
 
20
21
  ```javascript
21
22
  var geojson = turf.polygon([[
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/simplify",
3
- "version": "6.5.0",
3
+ "version": "7.0.0-alpha.1",
4
4
  "description": "turf simplify module",
5
5
  "author": "Turf Authors",
6
6
  "contributors": [
@@ -33,6 +33,7 @@
33
33
  "exports": {
34
34
  "./package.json": "./package.json",
35
35
  ".": {
36
+ "types": "./index.d.ts",
36
37
  "import": "./dist/es/index.js",
37
38
  "require": "./dist/js/index.js"
38
39
  }
@@ -44,27 +45,28 @@
44
45
  "index.d.ts"
45
46
  ],
46
47
  "scripts": {
47
- "bench": "node -r esm bench.js",
48
+ "bench": "tsx bench.js",
48
49
  "build": "rollup -c ../../rollup.config.js && echo '{\"type\":\"module\"}' > dist/es/package.json",
49
- "docs": "node ../../scripts/generate-readmes",
50
+ "docs": "tsx ../../scripts/generate-readmes",
50
51
  "test": "npm-run-all test:*",
51
- "test:tape": "node -r esm test.js",
52
- "test:types": "tsc --esModuleInterop --noEmit types.ts"
52
+ "test:tape": "tsx test.js",
53
+ "test:types": "tsc --esModuleInterop --noEmit --strict types.ts"
53
54
  },
54
55
  "devDependencies": {
55
- "@turf/truncate": "^6.5.0",
56
+ "@turf/truncate": "^7.0.0-alpha.1",
56
57
  "benchmark": "*",
57
58
  "load-json-file": "*",
58
59
  "npm-run-all": "*",
59
60
  "rollup": "*",
60
61
  "tape": "*",
62
+ "tsx": "*",
61
63
  "write-json-file": "*"
62
64
  },
63
65
  "dependencies": {
64
- "@turf/clean-coords": "^6.5.0",
65
- "@turf/clone": "^6.5.0",
66
- "@turf/helpers": "^6.5.0",
67
- "@turf/meta": "^6.5.0"
66
+ "@turf/clean-coords": "^7.0.0-alpha.1",
67
+ "@turf/clone": "^7.0.0-alpha.1",
68
+ "@turf/helpers": "^7.0.0-alpha.1",
69
+ "@turf/meta": "^7.0.0-alpha.1"
68
70
  },
69
- "gitHead": "5375941072b90d489389db22b43bfe809d5e451e"
71
+ "gitHead": "cf7a0c507b017ca066acffd0ce23bda5b393fb5a"
70
72
  }