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

@turf/boolean-disjoint

Package Overview
Dependencies
Maintainers
4
Versions
36
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@turf/boolean-disjoint - npm Package Compare versions

Comparing version 5.1.5 to 5.1.6

9

index.js

@@ -94,2 +94,7 @@ import booleanPointInPolygon from '@turf/boolean-point-in-polygon';

function isLineInPoly(polygon, lineString) {
for (var i = 0; i < lineString.coordinates.length; i++) {
if (booleanPointInPolygon(lineString.coordinates[i], polygon)) {
return true;
}
}
var doLinesIntersect = lineIntersect(lineString, polygonToLine(polygon));

@@ -123,2 +128,6 @@ if (doLinesIntersect.features.length > 0) {

}
var doLinesIntersect = lineIntersect(polygonToLine(feature1), polygonToLine(feature2));
if (doLinesIntersect.features.length > 0) {
return true;
}
return false;

@@ -125,0 +134,0 @@ }

@@ -94,2 +94,7 @@ import booleanPointInPolygon from '@turf/boolean-point-in-polygon';

function isLineInPoly(polygon, lineString) {
for (var i = 0; i < lineString.coordinates.length; i++) {
if (booleanPointInPolygon(lineString.coordinates[i], polygon)) {
return true;
}
}
var doLinesIntersect = lineIntersect(lineString, polygonToLine(polygon));

@@ -123,2 +128,6 @@ if (doLinesIntersect.features.length > 0) {

}
var doLinesIntersect = lineIntersect(polygonToLine(feature1), polygonToLine(feature2));
if (doLinesIntersect.features.length > 0) {
return true;
}
return false;

@@ -125,0 +134,0 @@ }

@@ -98,2 +98,7 @@ 'use strict';

function isLineInPoly(polygon, lineString) {
for (var i = 0; i < lineString.coordinates.length; i++) {
if (booleanPointInPolygon(lineString.coordinates[i], polygon)) {
return true;
}
}
var doLinesIntersect = lineIntersect(lineString, polygonToLine(polygon));

@@ -127,2 +132,6 @@ if (doLinesIntersect.features.length > 0) {

}
var doLinesIntersect = lineIntersect(polygonToLine(feature1), polygonToLine(feature2));
if (doLinesIntersect.features.length > 0) {
return true;
}
return false;

@@ -129,0 +138,0 @@ }

2

package.json
{
"name": "@turf/boolean-disjoint",
"version": "5.1.5",
"version": "5.1.6",
"description": "turf boolean-disjoint module",

@@ -5,0 +5,0 @@ "main": "main.js",

@@ -50,1 +50,6 @@ # @turf/boolean-disjoint

```
### Diagrams
![esri-disjoint](diagrams/esri-disjoint.gif)
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