Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@turf/boolean-contains

Package Overview
Dependencies
Maintainers
0
Versions
35
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@turf/boolean-contains - npm Package Compare versions

Comparing version 7.0.0 to 7.1.0-alpha.7

15

dist/esm/index.js

@@ -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 {

14

package.json
{
"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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc