@turf/dissolve
Advanced tools
Comparing version 5.0.6 to 5.1.0
12
main.js
@@ -141,3 +141,3 @@ 'use strict'; | ||
options = options || {}; | ||
if (!helpers.isObject(options)) throw new Error('options is invalid'); | ||
if (!helpers.isObject(options)) { throw new Error('options is invalid'); } | ||
var propertyName = options.propertyName; | ||
@@ -181,11 +181,11 @@ | ||
if (matchFeaturePosition === +i) return; | ||
if (matchFeaturePosition === +i) { return; } | ||
var matchFeature = features[matchFeaturePosition]; | ||
if (!matchFeature || !polygon) return; | ||
if (!matchFeature || !polygon) { return; } | ||
if (propertyName !== undefined && | ||
matchFeature.properties[propertyName] !== polygon.properties[propertyName]) return; | ||
matchFeature.properties[propertyName] !== polygon.properties[propertyName]) { return; } | ||
if (!overlap(polygon, matchFeature) || !ringsIntersect(polygon, matchFeature)) return; | ||
if (!overlap(polygon, matchFeature) || !ringsIntersect(polygon, matchFeature)) { return; } | ||
@@ -209,3 +209,3 @@ features[i] = turfUnion(polygon, matchFeature); | ||
if (featureChanged) { | ||
if (!polygon) continue; | ||
if (!polygon) { continue; } | ||
polygon.properties.origIndexPosition = i; | ||
@@ -212,0 +212,0 @@ tree.insert(polygon); |
{ | ||
"name": "@turf/dissolve", | ||
"version": "5.0.6", | ||
"version": "5.1.0", | ||
"description": "turf dissolve module", | ||
"main": "main", | ||
"module": "index", | ||
"jsnext:main": "index", | ||
"main": "main.js", | ||
"module": "main.mjs", | ||
"types": "index.d.ts", | ||
@@ -13,3 +12,4 @@ "files": [ | ||
"main.js", | ||
"lib" | ||
"lib", | ||
"main.mjs" | ||
], | ||
@@ -44,2 +44,3 @@ "scripts": { | ||
"rollup": "*", | ||
"rollup-plugin-buble": "*", | ||
"tape": "*", | ||
@@ -49,9 +50,9 @@ "write-json-file": "*" | ||
"dependencies": { | ||
"@turf/boolean-overlap": "^5.0.4", | ||
"@turf/clone": "^5.0.4", | ||
"@turf/helpers": "^5.0.4", | ||
"@turf/invariant": "^5.0.4", | ||
"@turf/line-intersect": "^5.0.4", | ||
"@turf/meta": "^5.0.4", | ||
"@turf/union": "*", | ||
"@turf/boolean-overlap": "^5.1.0", | ||
"@turf/clone": "^5.1.0", | ||
"@turf/helpers": "^5.1.0", | ||
"@turf/invariant": "^5.1.0", | ||
"@turf/line-intersect": "^5.1.0", | ||
"@turf/meta": "^5.1.0", | ||
"@turf/union": "^5.1.0", | ||
"geojson-rbush": "2.1.0", | ||
@@ -58,0 +59,0 @@ "get-closest": "*" |
@@ -12,3 +12,3 @@ # @turf/dissolve | ||
- `featureCollection` **[FeatureCollection](http://geojson.org/geojson-spec.html#feature-collection-objects)<[Polygon](http://geojson.org/geojson-spec.html#polygon)>** input feature collection to be dissolved | ||
- `featureCollection` **[FeatureCollection](https://tools.ietf.org/html/rfc7946#section-3.3)<[Polygon](https://tools.ietf.org/html/rfc7946#section-3.1.6)>** input feature collection to be dissolved | ||
- `options` **[Object](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object)** Optional parameters (optional, default `{}`) | ||
@@ -32,3 +32,3 @@ - `options.propertyName` **[string](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String)?** features with equals 'propertyName' in `properties` will be merged | ||
Returns **[FeatureCollection](http://geojson.org/geojson-spec.html#feature-collection-objects)<[Polygon](http://geojson.org/geojson-spec.html#polygon)>** a FeatureCollection containing the dissolved polygons | ||
Returns **[FeatureCollection](https://tools.ietf.org/html/rfc7946#section-3.3)<[Polygon](https://tools.ietf.org/html/rfc7946#section-3.1.6)>** a FeatureCollection containing the dissolved polygons | ||
@@ -35,0 +35,0 @@ <!-- This file is automatically generated. Please don't edit it directly: |
Wildcard dependency
QualityPackage has a dependency with a floating version range. This can cause issues if the dependency publishes a new major version.
Found 1 instance in 1 package
27984
8
600
1
7
+ Added@turf/union@5.1.5(transitive)
+ Addedturf-jsts@1.2.3(transitive)
- Removed@turf/helpers@7.2.0(transitive)
- Removed@turf/meta@7.2.0(transitive)
- Removed@turf/union@7.2.0(transitive)
- Removed@types/geojson@7946.0.15(transitive)
- Removedbignumber.js@9.1.2(transitive)
- Removedpolyclip-ts@0.16.8(transitive)
- Removedsplaytree-ts@1.0.2(transitive)
- Removedtslib@2.8.1(transitive)
Updated@turf/boolean-overlap@^5.1.0
Updated@turf/clone@^5.1.0
Updated@turf/helpers@^5.1.0
Updated@turf/invariant@^5.1.0
Updated@turf/line-intersect@^5.1.0
Updated@turf/meta@^5.1.0
Updated@turf/union@^5.1.0