@turf/kinks
Advanced tools
Comparing version 3.10.5 to 3.13.0
@@ -1,19 +0,10 @@ | ||
/// <reference types="geojson" /> | ||
import {LineString, MultiLineString, Polygon, MultiPolygon, Points} from '@turf/helpers' | ||
type LineString = GeoJSON.Feature<GeoJSON.LineString> | GeoJSON.LineString; | ||
type MultiLineString = GeoJSON.Feature<GeoJSON.MultiLineString> | GeoJSON.MultiLineString; | ||
type Polygon = GeoJSON.Feature<GeoJSON.Polygon> | GeoJSON.Polygon; | ||
type MultiPolygon = GeoJSON.Feature<GeoJSON.MultiPolygon> | GeoJSON.MultiPolygon; | ||
type Points = GeoJSON.FeatureCollection<GeoJSON.Point>; | ||
type FeatureIn = LineString | MultiLineString | Polygon | MultiPolygon | ||
interface Kinks { | ||
/** | ||
* http://turfjs.org/docs/#kinks | ||
*/ | ||
(featureIn: LineString): Points; | ||
(featureIn: MultiLineString): Points; | ||
(featureIn: Polygon): Points; | ||
(featureIn: MultiPolygon): Points; | ||
} | ||
declare const kinks: Kinks; | ||
/** | ||
* http://turfjs.org/docs/#kinks | ||
*/ | ||
declare function kinks(featureIn: FeatureIn): Points; | ||
declare namespace kinks {} | ||
export = kinks; |
@@ -0,1 +1,3 @@ | ||
var point = require('@turf/helpers').point; | ||
/** | ||
@@ -5,3 +7,3 @@ * Takes a {@link LineString|linestring}, {@link MultiLineString|multi-linestring}, {@link MultiPolygon|multi-polygon}, or {@link Polygon|polygon} and returns {@link Point|points} at all self-intersections. | ||
* @name kinks | ||
* @param {Feature<LineString|MultiLineString|MultiPolygon|Polygon>} feature input feature | ||
* @param {Feature<LineString|MultiLineString|MultiPolygon|Polygon>} featureIn input feature | ||
* @returns {FeatureCollection<Point>} self-intersections | ||
@@ -34,5 +36,2 @@ * @example | ||
*/ | ||
var point = require('@turf/helpers').point; | ||
module.exports = function (featureIn) { | ||
@@ -39,0 +38,0 @@ var coordinates; |
{ | ||
"name": "@turf/kinks", | ||
"version": "3.10.5", | ||
"version": "3.13.0", | ||
"description": "turf kinks module", | ||
"main": "index.js", | ||
"dependencies": { | ||
"@turf/helpers": "^3.10.5" | ||
}, | ||
"devDependencies": { | ||
"benchmark": "^1.0.0", | ||
"tape": "^3.5.0" | ||
}, | ||
"types": "index.d.ts", | ||
"files": [ | ||
"index.js", | ||
"index.d.ts" | ||
], | ||
"scripts": { | ||
"test": "node test.js" | ||
"test": "node test.js", | ||
"bench": "node bench.js" | ||
}, | ||
@@ -31,3 +30,12 @@ "repository": { | ||
"homepage": "https://github.com/Turfjs/turf", | ||
"types": "index.d.ts" | ||
"devDependencies": { | ||
"@turf/meta": "^3.13.0", | ||
"benchmark": "^2.1.3", | ||
"load-json-file": "^2.0.0", | ||
"tape": "^3.5.0", | ||
"write-json-file": "^2.0.0" | ||
}, | ||
"dependencies": { | ||
"@turf/helpers": "^3.13.0" | ||
} | ||
} |
Sorry, the diff of this file is not supported yet
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
Filesystem access
Supply chain riskAccesses the file system, and could potentially read sensitive data.
Found 1 instance in 1 package
0
8856
5
5
126
1
Updated@turf/helpers@^3.13.0