@turf/boolean-overlap
Advanced tools
Comparing version 7.1.0 to 7.2.0
@@ -10,3 +10,3 @@ import { Feature, Geometry } from 'geojson'; | ||
* | ||
* @name booleanOverlap | ||
* @function | ||
* @param {Geometry|Feature<LineString|MultiLineString|Polygon|MultiPolygon>} feature1 input | ||
@@ -13,0 +13,0 @@ * @param {Geometry|Feature<LineString|MultiLineString|Polygon|MultiPolygon>} feature2 input |
@@ -15,4 +15,3 @@ // index.ts | ||
} | ||
if (type1 === "Point") | ||
throw new Error("Point geometry not supported"); | ||
if (type1 === "Point") throw new Error("Point geometry not supported"); | ||
if (geojsonEquality(feature1, feature2, { precision: 6 })) | ||
@@ -37,4 +36,3 @@ return false; | ||
segmentEach(feature2, (segment2) => { | ||
if (lineOverlap(segment1, segment2).features.length) | ||
overlap++; | ||
if (lineOverlap(segment1, segment2).features.length) overlap++; | ||
}); | ||
@@ -47,4 +45,3 @@ }); | ||
segmentEach(feature2, (segment2) => { | ||
if (lineIntersect(segment1, segment2).features.length) | ||
overlap++; | ||
if (lineIntersect(segment1, segment2).features.length) overlap++; | ||
}); | ||
@@ -51,0 +48,0 @@ }); |
{ | ||
"name": "@turf/boolean-overlap", | ||
"version": "7.1.0", | ||
"version": "7.2.0", | ||
"description": "turf boolean-overlap module", | ||
@@ -61,3 +61,3 @@ "author": "Turf Authors", | ||
"@types/benchmark": "^2.1.5", | ||
"@types/tape": "^4.2.32", | ||
"@types/tape": "^4.13.4", | ||
"benchmark": "^2.1.4", | ||
@@ -68,18 +68,18 @@ "boolean-shapely": "*", | ||
"npm-run-all": "^4.1.5", | ||
"tape": "^5.7.2", | ||
"tsup": "^8.0.1", | ||
"tsx": "^4.6.2", | ||
"typescript": "^5.2.2" | ||
"tape": "^5.9.0", | ||
"tsup": "^8.3.5", | ||
"tsx": "^4.19.2", | ||
"typescript": "^5.5.4" | ||
}, | ||
"dependencies": { | ||
"@turf/helpers": "^7.1.0", | ||
"@turf/invariant": "^7.1.0", | ||
"@turf/line-intersect": "^7.1.0", | ||
"@turf/line-overlap": "^7.1.0", | ||
"@turf/meta": "^7.1.0", | ||
"@turf/helpers": "^7.2.0", | ||
"@turf/invariant": "^7.2.0", | ||
"@turf/line-intersect": "^7.2.0", | ||
"@turf/line-overlap": "^7.2.0", | ||
"@turf/meta": "^7.2.0", | ||
"@types/geojson": "^7946.0.10", | ||
"geojson-equality-ts": "^1.0.2", | ||
"tslib": "^2.6.2" | ||
"tslib": "^2.8.1" | ||
}, | ||
"gitHead": "68915eeebc9278bb40dec3f1034499698a0561ef" | ||
"gitHead": "7b0f0374c4668cd569f8904c71e2ae7d941be867" | ||
} |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
22308
9
129
Updated@turf/helpers@^7.2.0
Updated@turf/invariant@^7.2.0
Updated@turf/line-intersect@^7.2.0
Updated@turf/line-overlap@^7.2.0
Updated@turf/meta@^7.2.0
Updatedtslib@^2.8.1