@turf/boolean-intersects
Advanced tools
Comparing version 6.5.0 to 7.0.0-alpha.0
@@ -18,5 +18,5 @@ import booleanDisjoint from "@turf/boolean-disjoint"; | ||
export default function booleanIntersects(feature1, feature2) { | ||
var bool = false; | ||
flattenEach(feature1, function (flatten1) { | ||
flattenEach(feature2, function (flatten2) { | ||
let bool = false; | ||
flattenEach(feature1, (flatten1) => { | ||
flattenEach(feature2, (flatten2) => { | ||
if (bool === true) { | ||
@@ -23,0 +23,0 @@ return true; |
@@ -1,2 +0,2 @@ | ||
import { Feature, Geometry } from "@turf/helpers"; | ||
import { Feature, Geometry } from "geojson"; | ||
/** | ||
@@ -3,0 +3,0 @@ * Boolean-intersects returns (TRUE) two geometries intersect. |
"use strict"; | ||
var __importDefault = (this && this.__importDefault) || function (mod) { | ||
return (mod && mod.__esModule) ? mod : { "default": mod }; | ||
}; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
var boolean_disjoint_1 = __importDefault(require("@turf/boolean-disjoint")); | ||
var meta_1 = require("@turf/meta"); | ||
const tslib_1 = require("tslib"); | ||
const boolean_disjoint_1 = tslib_1.__importDefault(require("@turf/boolean-disjoint")); | ||
const meta_1 = require("@turf/meta"); | ||
/** | ||
@@ -23,5 +21,5 @@ * Boolean-intersects returns (TRUE) two geometries intersect. | ||
function booleanIntersects(feature1, feature2) { | ||
var bool = false; | ||
meta_1.flattenEach(feature1, function (flatten1) { | ||
meta_1.flattenEach(feature2, function (flatten2) { | ||
let bool = false; | ||
meta_1.flattenEach(feature1, (flatten1) => { | ||
meta_1.flattenEach(feature2, (flatten2) => { | ||
if (bool === true) { | ||
@@ -28,0 +26,0 @@ return true; |
{ | ||
"name": "@turf/boolean-intersects", | ||
"version": "6.5.0", | ||
"version": "7.0.0-alpha.0", | ||
"description": "turf boolean-intersects module", | ||
@@ -64,7 +64,8 @@ "author": "Turf Authors", | ||
"dependencies": { | ||
"@turf/boolean-disjoint": "^6.5.0", | ||
"@turf/helpers": "^6.5.0", | ||
"@turf/meta": "^6.5.0" | ||
"@turf/boolean-disjoint": "^7.0.0-alpha.0", | ||
"@turf/helpers": "^7.0.0-alpha.0", | ||
"@turf/meta": "^7.0.0-alpha.0", | ||
"tslib": "^2.3.0" | ||
}, | ||
"gitHead": "5375941072b90d489389db22b43bfe809d5e451e" | ||
"gitHead": "0edc4c491b999e5ace770a61e1cf549f7c004189" | ||
} |
@@ -9,8 +9,8 @@ # @turf/boolean-intersects | ||
**Parameters** | ||
### Parameters | ||
- `feature1` **([Geometry][1] \| [Feature][2]<any>)** GeoJSON Feature or Geometry | ||
- `feature2` **([Geometry][1] \| [Feature][2]<any>)** GeoJSON Feature or Geometry | ||
* `feature1` **([Geometry][1] | [Feature][2]\<any>)** GeoJSON Feature or Geometry | ||
* `feature2` **([Geometry][1] | [Feature][2]\<any>)** GeoJSON Feature or Geometry | ||
**Examples** | ||
### Examples | ||
@@ -17,0 +17,0 @@ ```javascript |
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
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
6925
4
76
1
+ Addedtslib@^2.3.0
+ Added@turf/boolean-disjoint@7.1.0(transitive)
+ Added@turf/boolean-point-in-polygon@7.1.0(transitive)
+ Added@turf/invariant@7.1.0(transitive)
+ Added@turf/line-intersect@7.1.0(transitive)
+ Added@turf/polygon-to-line@7.1.0(transitive)
+ Addedpoint-in-polygon-hao@1.1.0(transitive)
+ Addedsweepline-intersections@1.5.0(transitive)
+ Addedtinyqueue@2.0.3(transitive)
- Removed@turf/bbox@7.1.0(transitive)
- Removed@turf/boolean-disjoint@6.5.0(transitive)
- Removed@turf/boolean-point-in-polygon@6.5.0(transitive)
- Removed@turf/helpers@6.5.0(transitive)
- Removed@turf/invariant@6.5.0(transitive)
- Removed@turf/line-intersect@6.5.0(transitive)
- Removed@turf/line-segment@6.5.0(transitive)
- Removed@turf/meta@6.5.0(transitive)
- Removed@turf/polygon-to-line@6.5.0(transitive)
- Removed@types/geojson@7946.0.8(transitive)
- Removedgeojson-rbush@3.2.0(transitive)
- Removedquickselect@2.0.0(transitive)
- Removedrbush@3.0.1(transitive)
Updated@turf/helpers@^7.0.0-alpha.0
Updated@turf/meta@^7.0.0-alpha.0