@turf/union
Advanced tools
Comparing version 3.10.5 to 3.11.6
/// <reference types="geojson" /> | ||
type LineString = GeoJSON.Feature<GeoJSON.LineString>; | ||
type Polygon = GeoJSON.Feature<GeoJSON.Polygon>; | ||
type MultiLineString = GeoJSON.Feature<GeoJSON.MultiLineString>; | ||
type MultiPolygon = GeoJSON.Feature<GeoJSON.MultiPolygon>; | ||
type LineStrings = GeoJSON.FeatureCollection<GeoJSON.LineString>; | ||
type Polygons = GeoJSON.FeatureCollection<GeoJSON.Polygon>; | ||
type MultiLineStrings = GeoJSON.FeatureCollection<GeoJSON.MultiLineString>; | ||
type MultiPolygons = GeoJSON.FeatureCollection<GeoJSON.MultiPolygon>; | ||
type Features = GeoJSON.FeatureCollection<any>; | ||
type GeometryCollection = GeoJSON.GeometryCollection; | ||
interface UnionStatic { | ||
/** | ||
* http://turfjs.org/docs/#union | ||
*/ | ||
(feature: LineString, tolerance?: number, highQuality?: boolean): LineString; | ||
} | ||
declare const union: UnionStatic; | ||
declare namespace union { } | ||
export = union; | ||
/** | ||
* http://turfjs.org/docs/#union | ||
*/ | ||
declare function union(...features: Polygon[]): Polygon | MultiPolygon; | ||
declare namespace union {} | ||
export = union |
@@ -1,3 +0,1 @@ | ||
'use strict'; | ||
var jsts = require('jsts'); | ||
@@ -55,3 +53,3 @@ | ||
*/ | ||
var index_es6 = function () { | ||
module.exports = function () { | ||
var reader = new jsts.io.GeoJSONReader(); | ||
@@ -73,3 +71,1 @@ var result = reader.read(JSON.stringify(arguments[0].geometry)); | ||
}; | ||
module.exports = index_es6; |
{ | ||
"name": "@turf/union", | ||
"version": "3.10.5", | ||
"version": "3.11.6", | ||
"description": "find the union of geographic features", | ||
"main": "index.js", | ||
"jsnext:main": "index.es6.js", | ||
"types": "index.d.ts", | ||
"files": [ | ||
"index.js", | ||
"index.es6.js", | ||
"index.d.ts" | ||
@@ -15,4 +13,3 @@ ], | ||
"test": "node test.js", | ||
"pretest": "npm run rollup", | ||
"rollup": "rollup -c rollup.config.js" | ||
"bench": "node bench.js" | ||
}, | ||
@@ -36,3 +33,2 @@ "repository": { | ||
"glob": "~4.3.5", | ||
"rollup": "^0.41.4", | ||
"tape": "~3.5.0" | ||
@@ -39,0 +35,0 @@ }, |
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
3
6091
5
73