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

@turf/voronoi

Package Overview
Dependencies
Maintainers
7
Versions
25
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@turf/voronoi - npm Package Compare versions

Comparing version 6.5.0 to 7.0.0-alpha.0

4

index.d.ts

@@ -1,2 +0,2 @@

import { FeatureCollection, BBox, Point, Polygon } from "@turf/helpers";
import { FeatureCollection, BBox, Point, Polygon } from "geojson";

@@ -8,3 +8,3 @@ /**

points: FeatureCollection<Point>,
options: { bbox: BBox }
options?: { bbox: BBox }
): FeatureCollection<Polygon>;
{
"name": "@turf/voronoi",
"version": "6.5.0",
"version": "7.0.0-alpha.0",
"description": "turf voronoi module",

@@ -64,7 +64,7 @@ "author": "Turf Authors",

"dependencies": {
"@turf/helpers": "^6.5.0",
"@turf/invariant": "^6.5.0",
"@turf/helpers": "^7.0.0-alpha.0",
"@turf/invariant": "^7.0.0-alpha.0",
"d3-voronoi": "1.1.2"
},
"gitHead": "5375941072b90d489389db22b43bfe809d5e451e"
"gitHead": "0edc4c491b999e5ace770a61e1cf549f7c004189"
}

@@ -12,10 +12,11 @@ # @turf/voronoi

**Parameters**
### Parameters
- `points` **[FeatureCollection][1]&lt;[Point][2]>** to find the Voronoi polygons around.
- `options` **[Object][3]** Optional parameters (optional, default `{}`)
- `options.bbox` **[Array][4]&lt;[number][5]>** clipping rectangle, in [minX, minY, maxX, MaxY] order. (optional, default `[-180,-85,180,-85]`)
* `points` **[FeatureCollection][1]<[Point][2]>** to find the Voronoi polygons around.
* `options` **[Object][3]** Optional parameters (optional, default `{}`)
**Examples**
* `options.bbox` **[Array][4]<[number][5]>** clipping rectangle, in \[minX, minY, maxX, MaxY] order. (optional, default `[-180,-85,180,-85]`)
### Examples
```javascript

@@ -32,3 +33,3 @@ var options = {

Returns **[FeatureCollection][1]&lt;[Polygon][6]>** a set of polygons, one per input point.
Returns **[FeatureCollection][1]<[Polygon][6]>** a set of polygons, one per input point.

@@ -35,0 +36,0 @@ [1]: https://tools.ietf.org/html/rfc7946#section-3.3

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