@turf/truncate
Advanced tools
Comparing version 6.0.0 to 6.0.1
@@ -1,12 +0,13 @@ | ||
{ | ||
"name": "@turf/truncate", | ||
"version": "6.0.0", | ||
"version": "6.0.1", | ||
"description": "turf truncate module", | ||
"main": "index", | ||
"types": "index.d.ts", | ||
"files": [ | ||
"index.js", | ||
"index.ts" | ||
"index.d.ts" | ||
], | ||
"scripts": { | ||
"prepare": "tsc", | ||
"pretest": "tsc", | ||
@@ -41,3 +42,5 @@ "test": "node test.js", | ||
"tape": "*", | ||
"write-json-file": "*" | ||
"write-json-file": "*", | ||
"tslint": "*", | ||
"@types/tape": "*" | ||
}, | ||
@@ -44,0 +47,0 @@ "dependencies": { |
@@ -11,7 +11,7 @@ # @turf/truncate | ||
- `geojson` **[GeoJSON](https://tools.ietf.org/html/rfc7946#section-3)** any GeoJSON Feature, FeatureCollection, Geometry or GeometryCollection. | ||
- `options` **[Object](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object)** Optional parameters (optional, default `{}`) | ||
- `options.precision` **[number](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Number)** coordinate decimal precision (optional, default `6`) | ||
- `options.coordinates` **[number](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Number)** maximum number of coordinates (primarly used to remove z coordinates) (optional, default `3`) | ||
- `options.mutate` **[boolean](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Boolean)** allows GeoJSON input to be mutated (significant performance increase if true) (optional, default `false`) | ||
- `geojson` **[GeoJSON][1]** any GeoJSON Feature, FeatureCollection, Geometry or GeometryCollection. | ||
- `options` **[Object][2]** Optional parameters (optional, default `{}`) | ||
- `options.precision` **[number][3]** coordinate decimal precision (optional, default `6`) | ||
- `options.coordinates` **[number][3]** maximum number of coordinates (primarly used to remove z coordinates) (optional, default `3`) | ||
- `options.mutate` **[boolean][4]** allows GeoJSON input to be mutated (significant performance increase if true) (optional, default `false`) | ||
@@ -34,4 +34,12 @@ **Examples** | ||
Returns **[GeoJSON](https://tools.ietf.org/html/rfc7946#section-3)** layer with truncated geometry | ||
Returns **[GeoJSON][1]** layer with truncated geometry | ||
[1]: https://tools.ietf.org/html/rfc7946#section-3 | ||
[2]: https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Object | ||
[3]: https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Number | ||
[4]: https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Boolean | ||
<!-- This file is automatically generated. Please don't edit it directly: | ||
@@ -38,0 +46,0 @@ if you find an error, edit the source file (likely index.js), and re-run |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
67
0
7111
7
4
72