@turf/boolean-contains
Advanced tools
Comparing version 7.0.0 to 7.1.0-alpha.7
@@ -1,4 +0,1 @@ | ||
var __defProp = Object.defineProperty; | ||
var __name = (target, value) => __defProp(target, "name", { value, configurable: true }); | ||
// index.ts | ||
@@ -68,3 +65,2 @@ import { bbox as calcBbox } from "@turf/bbox"; | ||
} | ||
__name(booleanContains, "booleanContains"); | ||
function isPolygonInMultiPolygon(multiPolygon, polygon) { | ||
@@ -75,3 +71,2 @@ return multiPolygon.coordinates.some( | ||
} | ||
__name(isPolygonInMultiPolygon, "isPolygonInMultiPolygon"); | ||
function isPointInMultiPoint(multiPoint, pt) { | ||
@@ -88,3 +83,2 @@ let i; | ||
} | ||
__name(isPointInMultiPoint, "isPointInMultiPoint"); | ||
function isMultiPointInMultiPoint(multiPoint1, multiPoint2) { | ||
@@ -105,3 +99,2 @@ for (const coord2 of multiPoint2.coordinates) { | ||
} | ||
__name(isMultiPointInMultiPoint, "isMultiPointInMultiPoint"); | ||
function isMultiPointOnLine(lineString, multiPoint) { | ||
@@ -122,3 +115,2 @@ let haveFoundInteriorPoint = false; | ||
} | ||
__name(isMultiPointOnLine, "isMultiPointOnLine"); | ||
function isMultiPointInPoly(polygon, multiPoint) { | ||
@@ -132,3 +124,2 @@ for (const coord of multiPoint.coordinates) { | ||
} | ||
__name(isMultiPointInPoly, "isMultiPointInPoly"); | ||
function isLineOnLine(lineString1, lineString2) { | ||
@@ -150,3 +141,2 @@ let haveFoundInteriorPoint = false; | ||
} | ||
__name(isLineOnLine, "isLineOnLine"); | ||
function isLineInPoly(polygon, linestring) { | ||
@@ -174,3 +164,2 @@ let output = false; | ||
} | ||
__name(isLineInPoly, "isLineInPoly"); | ||
function isPolyInPoly(feature1, feature2) { | ||
@@ -198,3 +187,2 @@ if (feature1.type === "Feature" && feature1.geometry === null) { | ||
} | ||
__name(isPolyInPoly, "isPolyInPoly"); | ||
function doBBoxOverlap(bbox1, bbox2) { | ||
@@ -215,11 +203,8 @@ if (bbox1[0] > bbox2[0]) { | ||
} | ||
__name(doBBoxOverlap, "doBBoxOverlap"); | ||
function compareCoords(pair1, pair2) { | ||
return pair1[0] === pair2[0] && pair1[1] === pair2[1]; | ||
} | ||
__name(compareCoords, "compareCoords"); | ||
function getMidpoint(pair1, pair2) { | ||
return [(pair1[0] + pair2[0]) / 2, (pair1[1] + pair2[1]) / 2]; | ||
} | ||
__name(getMidpoint, "getMidpoint"); | ||
var turf_boolean_contains_default = booleanContains; | ||
@@ -226,0 +211,0 @@ export { |
{ | ||
"name": "@turf/boolean-contains", | ||
"version": "7.0.0", | ||
"version": "7.1.0-alpha.7+0ce6ecca0", | ||
"description": "turf boolean-contains module", | ||
@@ -72,10 +72,10 @@ "author": "Turf Authors", | ||
"dependencies": { | ||
"@turf/bbox": "^7.0.0", | ||
"@turf/boolean-point-in-polygon": "^7.0.0", | ||
"@turf/boolean-point-on-line": "^7.0.0", | ||
"@turf/helpers": "^7.0.0", | ||
"@turf/invariant": "^7.0.0", | ||
"@turf/bbox": "^7.1.0-alpha.7+0ce6ecca0", | ||
"@turf/boolean-point-in-polygon": "^7.1.0-alpha.7+0ce6ecca0", | ||
"@turf/boolean-point-on-line": "^7.1.0-alpha.7+0ce6ecca0", | ||
"@turf/helpers": "^7.1.0-alpha.7+0ce6ecca0", | ||
"@turf/invariant": "^7.1.0-alpha.7+0ce6ecca0", | ||
"tslib": "^2.6.2" | ||
}, | ||
"gitHead": "3d3a7917025fbabe191dbddbc89754b86f9c7739" | ||
"gitHead": "0ce6ecca05829690270fec6d6bed2003495fe0ea" | ||
} |
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
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
Manifest confusion
Supply chain riskThis package has inconsistent metadata. This could be malicious or caused by an error when publishing the package.
Found 1 instance in 1 package
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
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
47606
466
1
1