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

@turf/line-overlap

Package Overview
Dependencies
Maintainers
4
Versions
38
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@turf/line-overlap - npm Package Compare versions

Comparing version 4.5.2 to 4.6.0

21

index.js

@@ -16,20 +16,5 @@ var lineSegment = require('@turf/line-segment');

* @example
* var line1 = {
* "type": "Feature",
* "properties": {},
* "geometry": {
* "type": "LineString",
* "coordinates": [[115, -35], [125, -30], [135, -30], [145, -35]
* ]
* }
* }
* var line2 = {
* "type": "Feature",
* "properties": {},
* "geometry": {
* "type": "LineString",
* "coordinates": [[115, -25], [125, -30], [135, -30], [145, -25]
* ]
* }
* }
* var line1 = turf.lineString([[115, -35], [125, -30], [135, -30], [145, -35]]);
* var line2 = turf.lineString([[115, -25], [125, -30], [135, -30], [145, -25]]);
*
* var overlapping = turf.lineOverlap(line1, line2);

@@ -36,0 +21,0 @@ *

10

package.json
{
"name": "@turf/line-overlap",
"version": "4.5.2",
"version": "4.6.0",
"description": "turf line-overlap module",

@@ -42,6 +42,6 @@ "main": "index.js",

"dependencies": {
"@turf/helpers": "^4.5.2",
"@turf/invariant": "^4.5.2",
"@turf/line-segment": "^4.5.2",
"@turf/meta": "^4.5.2",
"@turf/helpers": "^4.6.0",
"@turf/invariant": "^4.6.0",
"@turf/line-segment": "^4.6.0",
"@turf/meta": "^4.6.0",
"deep-equal": "^1.0.1",

@@ -48,0 +48,0 @@ "geojson-rbush": "^1.0.1"

@@ -15,20 +15,5 @@ # @turf/line-overlap

```javascript
var line1 = {
"type": "Feature",
"properties": {},
"geometry": {
"type": "LineString",
"coordinates": [[115, -35], [125, -30], [135, -30], [145, -35]
]
}
}
var line2 = {
"type": "Feature",
"properties": {},
"geometry": {
"type": "LineString",
"coordinates": [[115, -25], [125, -30], [135, -30], [145, -25]
]
}
}
var line1 = turf.lineString([[115, -35], [125, -30], [135, -30], [145, -35]]);
var line2 = turf.lineString([[115, -25], [125, -30], [135, -30], [145, -25]]);
var overlapping = turf.lineOverlap(line1, line2);

@@ -35,0 +20,0 @@

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