@turf/boolean-crosses
Advanced tools
Comparing version 4.5.2 to 4.6.0
13
index.js
@@ -19,7 +19,10 @@ var helpers = require('@turf/helpers'); | ||
* @param {Geometry|Feature<any>} feature2 GeoJSON Feature or Geometry | ||
* @returns {Boolean} true/false | ||
* @returns {boolean} true/false | ||
* @example | ||
* var cross = turf.booleanCrosses(feature1, feature2); | ||
* var line1 = turf.lineString([[-2, 2], [4, 2]]); | ||
* var line2 = turf.lineString([[1, 1], [1, 2], [1, 3], [1, 4]]); | ||
* | ||
* var cross = turf.booleanCrosses(line1, line2); | ||
* //=true | ||
*/ | ||
module.exports = function (feature1, feature2) { | ||
@@ -144,4 +147,4 @@ var type1 = getGeomType(feature1); | ||
* @param {Array} point coord pair of point to check | ||
* @param {Boolean} incEnd whether the point is allowed to fall on the line ends | ||
* @returns {Boolean} true/false | ||
* @param {boolean} incEnd whether the point is allowed to fall on the line ends | ||
* @returns {boolean} true/false | ||
*/ | ||
@@ -148,0 +151,0 @@ function isPointOnLineSegment(lineSegmentStart, lineSegmentEnd, point, incEnd) { |
{ | ||
"name": "@turf/boolean-crosses", | ||
"version": "4.5.2", | ||
"version": "4.6.0", | ||
"description": "turf boolean-crosses module", | ||
@@ -36,15 +36,15 @@ "main": "index.js", | ||
"devDependencies": { | ||
"benchmark": "^2.1.4", | ||
"boolean-shapely": "^0.1.2", | ||
"glob": "^7.1.2", | ||
"load-json-file": "^2.0.0", | ||
"tape": "^4.6.3" | ||
"benchmark": "2.1.4", | ||
"boolean-shapely": "0.1.2", | ||
"glob": "7.1.2", | ||
"load-json-file": "2.0.0", | ||
"tape": "4.7.0" | ||
}, | ||
"dependencies": { | ||
"@turf/helpers": "^4.5.2", | ||
"@turf/inside": "^4.5.2", | ||
"@turf/invariant": "^4.5.2", | ||
"@turf/line-intersect": "^4.5.2", | ||
"@turf/polygon-to-linestring": "^4.5.2" | ||
"@turf/helpers": "^4.6.0", | ||
"@turf/inside": "^4.6.0", | ||
"@turf/invariant": "^4.6.0", | ||
"@turf/line-intersect": "^4.6.0", | ||
"@turf/polygon-to-linestring": "^4.6.0" | ||
} | ||
} |
@@ -19,6 +19,10 @@ # @turf/boolean-crosses | ||
```javascript | ||
var cross = turf.booleanCrosses(feature1, feature2); | ||
var line1 = turf.lineString([[-2, 2], [4, 2]]); | ||
var line2 = turf.lineString([[1, 1], [1, 2], [1, 3], [1, 4]]); | ||
var cross = turf.booleanCrosses(line1, line2); | ||
//=true | ||
``` | ||
Returns **[Boolean](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Boolean)** true/false | ||
Returns **[boolean](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Boolean)** true/false | ||
@@ -25,0 +29,0 @@ <!-- This file is automatically generated. Please don't edit it directly: |
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
10783
168
52
Updated@turf/helpers@^4.6.0
Updated@turf/inside@^4.6.0
Updated@turf/invariant@^4.6.0
Updated@turf/line-intersect@^4.6.0