@turf/boolean-contains
Advanced tools
Comparing version 5.0.4 to 5.1.0
@@ -198,4 +198,4 @@ import booleanPointInPolygon from '@turf/boolean-point-in-polygon'; | ||
* @private | ||
* @param {Array<number>} pair1 point [x,y] | ||
* @param {Array<number>} pair2 point [x,y] | ||
* @param {Position} pair1 point [x,y] | ||
* @param {Position} pair2 point [x,y] | ||
* @returns {boolean} true/false if coord pairs match | ||
@@ -202,0 +202,0 @@ */ |
12
main.js
@@ -191,6 +191,6 @@ 'use strict'; | ||
function doBBoxOverlap(bbox1, bbox2) { | ||
if (bbox1[0] > bbox2[0]) return false; | ||
if (bbox1[2] < bbox2[2]) return false; | ||
if (bbox1[1] > bbox2[1]) return false; | ||
if (bbox1[3] < bbox2[3]) return false; | ||
if (bbox1[0] > bbox2[0]) { return false; } | ||
if (bbox1[2] < bbox2[2]) { return false; } | ||
if (bbox1[1] > bbox2[1]) { return false; } | ||
if (bbox1[3] < bbox2[3]) { return false; } | ||
return true; | ||
@@ -203,4 +203,4 @@ } | ||
* @private | ||
* @param {Array<number>} pair1 point [x,y] | ||
* @param {Array<number>} pair2 point [x,y] | ||
* @param {Position} pair1 point [x,y] | ||
* @param {Position} pair2 point [x,y] | ||
* @returns {boolean} true/false if coord pairs match | ||
@@ -207,0 +207,0 @@ */ |
{ | ||
"name": "@turf/boolean-contains", | ||
"version": "5.0.4", | ||
"version": "5.1.0", | ||
"description": "turf boolean-contains module", | ||
"main": "main", | ||
"module": "index", | ||
"jsnext:main": "index", | ||
"main": "main.js", | ||
"module": "main.mjs", | ||
"types": "index.d.ts", | ||
@@ -12,3 +11,4 @@ "files": [ | ||
"index.d.ts", | ||
"main.js" | ||
"main.js", | ||
"main.mjs" | ||
], | ||
@@ -18,3 +18,4 @@ "scripts": { | ||
"test": "node -r @std/esm test.js", | ||
"bench": "node -r @std/esm bench.js" | ||
"bench": "node -r @std/esm bench.js", | ||
"docs": "node ../../scripts/generate-readmes" | ||
}, | ||
@@ -49,10 +50,11 @@ "repository": { | ||
"rollup": "*", | ||
"rollup-plugin-buble": "*", | ||
"tape": "*" | ||
}, | ||
"dependencies": { | ||
"@turf/bbox": "^5.0.4", | ||
"@turf/boolean-point-in-polygon": "^5.0.4", | ||
"@turf/boolean-point-on-line": "^5.0.4", | ||
"@turf/helpers": "^5.0.4", | ||
"@turf/invariant": "^5.0.4" | ||
"@turf/bbox": "^5.1.0", | ||
"@turf/boolean-point-in-polygon": "^5.1.0", | ||
"@turf/boolean-point-on-line": "^5.1.0", | ||
"@turf/helpers": "^5.1.0", | ||
"@turf/invariant": "^5.1.0" | ||
}, | ||
@@ -59,0 +61,0 @@ "@std/esm": { |
@@ -14,4 +14,4 @@ # @turf/boolean-contains | ||
- `feature1` **([Geometry](http://geojson.org/geojson-spec.html#geometry) \| [Feature](http://geojson.org/geojson-spec.html#feature-objects)<any>)** GeoJSON Feature or Geometry | ||
- `feature2` **([Geometry](http://geojson.org/geojson-spec.html#geometry) \| [Feature](http://geojson.org/geojson-spec.html#feature-objects)<any>)** GeoJSON Feature or Geometry | ||
- `feature1` **([Geometry](https://tools.ietf.org/html/rfc7946#section-3.1) \| [Feature](https://tools.ietf.org/html/rfc7946#section-3.2)<any>)** GeoJSON Feature or Geometry | ||
- `feature2` **([Geometry](https://tools.ietf.org/html/rfc7946#section-3.1) \| [Feature](https://tools.ietf.org/html/rfc7946#section-3.2)<any>)** GeoJSON Feature or Geometry | ||
@@ -18,0 +18,0 @@ **Examples** |
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
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
25014
7
596
9
Updated@turf/bbox@^5.1.0
Updated@turf/helpers@^5.1.0
Updated@turf/invariant@^5.1.0