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

@turf/boolean-crosses

Package Overview
Dependencies
Maintainers
4
Versions
34
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@turf/boolean-crosses - npm Package Compare versions

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:

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