@turf/dissolve
Advanced tools
Comparing version 5.1.1 to 5.1.5
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.1.1", | ||
"version": "5.1.5", | ||
"description": "turf dissolve module", | ||
"main": "main.js", | ||
"module": "main.mjs", | ||
"module": "main.es.js", | ||
"types": "index.d.ts", | ||
@@ -13,3 +13,3 @@ "files": [ | ||
"lib", | ||
"main.mjs" | ||
"main.es.js" | ||
], | ||
@@ -19,2 +19,3 @@ "scripts": { | ||
"test": "node -r @std/esm test.js", | ||
"posttest": "node -r @std/esm ../../scripts/validate-es5-dependencies.js", | ||
"bench": "node -r @std/esm bench.js", | ||
@@ -45,3 +46,2 @@ "docs": "node ../../scripts/generate-readmes" | ||
"rollup": "*", | ||
"rollup-plugin-buble": "*", | ||
"tape": "*", | ||
@@ -51,9 +51,9 @@ "write-json-file": "*" | ||
"dependencies": { | ||
"@turf/boolean-overlap": "^5.1.1", | ||
"@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", | ||
"@turf/boolean-overlap": "^5.1.5", | ||
"@turf/clone": "^5.1.5", | ||
"@turf/helpers": "^5.1.5", | ||
"@turf/invariant": "^5.1.5", | ||
"@turf/line-intersect": "^5.1.5", | ||
"@turf/meta": "^5.1.5", | ||
"@turf/union": "^5.1.5", | ||
"geojson-rbush": "2.1.0", | ||
@@ -60,0 +60,0 @@ "get-closest": "*" |
28011
6
Updated@turf/boolean-overlap@^5.1.5
Updated@turf/clone@^5.1.5
Updated@turf/helpers@^5.1.5
Updated@turf/invariant@^5.1.5
Updated@turf/line-intersect@^5.1.5
Updated@turf/meta@^5.1.5
Updated@turf/union@^5.1.5