@turf/simplify
Advanced tools
Comparing version 3.5.2 to 3.6.3
@@ -11,4 +11,4 @@ var simplify = require('simplify-js'); | ||
* @param {Feature<(LineString|Polygon|MultiLineString|MultiPolygon)>|FeatureCollection|GeometryCollection} feature feature to be simplified | ||
* @param {number} tolerance simplification tolerance | ||
* @param {boolean} highQuality whether or not to spend more time to create | ||
* @param {number} [tolerance=1] simplification tolerance | ||
* @param {boolean} [highQuality=false] whether or not to spend more time to create | ||
* a higher-quality simplification with a different algorithm | ||
@@ -15,0 +15,0 @@ * @return {Feature<(LineString|Polygon|MultiLineString|MultiPolygon)>|FeatureCollection|GeometryCollection} a simplified feature |
{ | ||
"name": "@turf/simplify", | ||
"version": "3.5.2", | ||
"version": "3.6.3", | ||
"description": "simplify geographic shapes", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
@@ -10,5 +10,5 @@ # @turf/simplify | ||
- `feature` **([Feature](http://geojson.org/geojson-spec.html#feature-objects)<([LineString](http://geojson.org/geojson-spec.html#linestring) \| [Polygon](http://geojson.org/geojson-spec.html#polygon) \| [MultiLineString](http://geojson.org/geojson-spec.html#multilinestring) \| [MultiPolygon](http://geojson.org/geojson-spec.html#multipolygon))> | [FeatureCollection](http://geojson.org/geojson-spec.html#feature-collection-objects) \| [GeometryCollection](http://geojson.org/geojson-spec.html#geometrycollection))** feature to be simplified | ||
- `tolerance` **[number](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Number)** simplification tolerance | ||
- `highQuality` **[boolean](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Boolean)** whether or not to spend more time to create | ||
a higher-quality simplification with a different algorithm | ||
- `tolerance` **\[[number](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Number)]** simplification tolerance (optional, default `1`) | ||
- `highQuality` **\[[boolean](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Boolean)]** whether or not to spend more time to create | ||
a higher-quality simplification with a different algorithm (optional, default `false`) | ||
@@ -15,0 +15,0 @@ **Examples** |
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
13822
6
243
1