@turf/difference
Advanced tools
Comparing version 3.10.3 to 3.10.4
@@ -0,0 +0,0 @@ var difference = require('./'); |
/// <reference types="geojson" /> | ||
type Polygon = GeoJSON.Feature<GeoJSON.Polygon>; | ||
type MultiPolygon = GeoJSON.Feature<GeoJSON.MultiPolygon>; | ||
@@ -8,4 +9,4 @@ /** | ||
*/ | ||
declare function difference(poly1: Polygon, poly2: Polygon): Polygon; | ||
declare function difference(poly1: Polygon, poly2: Polygon): Polygon|MultiPolygon; | ||
declare namespace difference { } | ||
export = difference; |
@@ -11,3 +11,3 @@ // depend on jsts for now https://github.com/bjornharrtell/jsts/blob/master/examples/overlay.html | ||
* @param {Feature<Polygon>} p2 Polygon feature to difference from `p1` | ||
* @return {Feature<Polygon>} a Polygon feature showing the area of `p1` excluding the area of `p2` | ||
* @return {Feature<(Polygon|MultiPolygon)>} a Polygon or MultiPolygon feature showing the area of `p1` excluding the area of `p2` | ||
* @example | ||
@@ -14,0 +14,0 @@ * var poly1 = { |
{ | ||
"name": "@turf/difference", | ||
"version": "3.10.3", | ||
"version": "3.10.4", | ||
"description": "[Turf](http://turfjs.org/) difference module", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
@@ -0,0 +0,0 @@ # @turf/difference |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
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
114
7412