@turf/simplify
Advanced tools
Comparing version
{ | ||
"name": "@turf/simplify", | ||
"version": "6.5.0", | ||
"version": "7.0.0-alpha.0", | ||
"description": "turf simplify module", | ||
@@ -52,6 +52,6 @@ "author": "Turf Authors", | ||
"test:tape": "node -r esm test.js", | ||
"test:types": "tsc --esModuleInterop --noEmit types.ts" | ||
"test:types": "tsc --esModuleInterop --noEmit --strict types.ts" | ||
}, | ||
"devDependencies": { | ||
"@turf/truncate": "^6.5.0", | ||
"@turf/truncate": "^7.0.0-alpha.0", | ||
"benchmark": "*", | ||
@@ -65,8 +65,8 @@ "load-json-file": "*", | ||
"dependencies": { | ||
"@turf/clean-coords": "^6.5.0", | ||
"@turf/clone": "^6.5.0", | ||
"@turf/helpers": "^6.5.0", | ||
"@turf/meta": "^6.5.0" | ||
"@turf/clean-coords": "^7.0.0-alpha.0", | ||
"@turf/clone": "^7.0.0-alpha.0", | ||
"@turf/helpers": "^7.0.0-alpha.0", | ||
"@turf/meta": "^7.0.0-alpha.0" | ||
}, | ||
"gitHead": "5375941072b90d489389db22b43bfe809d5e451e" | ||
"gitHead": "0edc4c491b999e5ace770a61e1cf549f7c004189" | ||
} |
@@ -10,12 +10,13 @@ # @turf/simplify | ||
**Parameters** | ||
### Parameters | ||
- `geojson` **[GeoJSON][3]** object to be simplified | ||
- `options` **[Object][4]** Optional parameters (optional, default `{}`) | ||
- `options.tolerance` **[number][5]** simplification tolerance (optional, default `1`) | ||
- `options.highQuality` **[boolean][6]** whether or not to spend more time to create a higher-quality simplification with a different algorithm (optional, default `false`) | ||
- `options.mutate` **[boolean][6]** allows GeoJSON input to be mutated (significant performance increase if true) (optional, default `false`) | ||
* `geojson` **[GeoJSON][3]** object to be simplified | ||
* `options` **[Object][4]** Optional parameters (optional, default `{}`) | ||
**Examples** | ||
* `options.tolerance` **[number][5]** simplification tolerance (optional, default `1`) | ||
* `options.highQuality` **[boolean][6]** whether or not to spend more time to create a higher-quality simplification with a different algorithm (optional, default `false`) | ||
* `options.mutate` **[boolean][6]** allows GeoJSON input to be mutated (significant performance increase if true) (optional, default `false`) | ||
### Examples | ||
```javascript | ||
@@ -22,0 +23,0 @@ var geojson = turf.polygon([[ |
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
Found 1 instance in 1 package
23740
0.24%89
1.14%1
Infinity%+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
- Removed
- Removed
- Removed
- Removed
- Removed
Updated
Updated
Updated