Socket
Socket
Sign inDemoInstall

@turf/intersect

Package Overview
Dependencies
Maintainers
4
Versions
63
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@turf/intersect - npm Package Compare versions

Comparing version 4.1.0 to 4.2.0

5

index.js

@@ -10,3 +10,3 @@ // depend on jsts for now http://bjornharrtell.github.io/jsts/

* @param {Feature<Polygon>} poly2 the second polygon
* @returns {(Feature|undefined)} returns a feature representing the point(s) they share (in case of a {@link Point} or {@link MultiPoint}), the borders they share (in case of a {@link LineString} or a {@link MultiLineString}), the area they share (in case of {@link Polygon} or {@link MultiPolygon}). If they do not share any point, returns `undefined`.
* @returns {Feature|undefined} returns a feature representing the point(s) they share (in case of a {@link Point} or {@link MultiPoint}), the borders they share (in case of a {@link LineString} or a {@link MultiLineString}), the area they share (in case of {@link Polygon} or {@link MultiPolygon}). If they do not share any point, returns `undefined`.
* @example

@@ -34,3 +34,4 @@ * var poly1 = turf.polygon([[

*
* //=intersection
* //addToMap
* var addToMap = [poly1, poly2, intersection]
*/

@@ -37,0 +38,0 @@ module.exports = function (poly1, poly2) {

2

package.json
{
"name": "@turf/intersect",
"version": "4.1.0",
"version": "4.2.0",
"description": "turf intersect module",

@@ -5,0 +5,0 @@ "main": "index.js",

@@ -36,3 +36,4 @@ # @turf/intersect

//=intersection
//addToMap
var addToMap = [poly1, poly2, intersection]
```

@@ -39,0 +40,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