@turf/point-grid
Advanced tools
Comparing version 3.3.3 to 3.5.2-alpha.d2c36ee7
@@ -10,10 +10,10 @@ var point = require('@turf/helpers').point; | ||
* @param {number} cellSize the distance across each cell | ||
* @param {string} [units=kilometers] used in calculating cellWidth, can be degrees, radians, miles, or kilometers | ||
* @param {string} [units=kilometers] used in calculating cellSize, can be degrees, radians, miles, or kilometers | ||
* @return {FeatureCollection<Point>} grid of points | ||
* @example | ||
* var extent = [-70.823364, -33.553984, -70.473175, -33.302986]; | ||
* var cellWidth = 3; | ||
* var cellSize = 3; | ||
* var units = 'miles'; | ||
* | ||
* var grid = turf.pointGrid(extent, cellWidth, units); | ||
* var grid = turf.pointGrid(extent, cellSize, units); | ||
* | ||
@@ -20,0 +20,0 @@ * //=grid |
{ | ||
"name": "@turf/point-grid", | ||
"version": "3.3.3", | ||
"version": "3.5.2-alpha.d2c36ee7", | ||
"description": "", | ||
@@ -28,8 +28,8 @@ "main": "index.js", | ||
"tape": "^3.5.0", | ||
"@turf/bbox-polygon": "^3.3.3" | ||
"@turf/bbox-polygon": "^3.5.2-alpha.d2c36ee7" | ||
}, | ||
"dependencies": { | ||
"@turf/distance": "^3.3.3", | ||
"@turf/helpers": "^3.3.3" | ||
"@turf/distance": "^3.5.2-alpha.d2c36ee7", | ||
"@turf/helpers": "^3.5.2-alpha.d2c36ee7" | ||
} | ||
} |
@@ -11,3 +11,3 @@ # @turf/point-grid | ||
- `cellSize` **[number](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Number)** the distance across each cell | ||
- `units` **\[[string](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String)]** used in calculating cellWidth, can be degrees, radians, miles, or kilometers (optional, default `kilometers`) | ||
- `units` **\[[string](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String)]** used in calculating cellSize, can be degrees, radians, miles, or kilometers (optional, default `kilometers`) | ||
@@ -18,6 +18,6 @@ **Examples** | ||
var extent = [-70.823364, -33.553984, -70.473175, -33.302986]; | ||
var cellWidth = 3; | ||
var cellSize = 3; | ||
var units = 'miles'; | ||
var grid = turf.pointGrid(extent, cellWidth, units); | ||
var grid = turf.pointGrid(extent, cellSize, units); | ||
@@ -29,2 +29,6 @@ //=grid | ||
<!-- This file is automatically generated. Please don't edit it directly: | ||
if you find an error, edit the source file (likely index.js), and re-run | ||
./scripts/generate-readmes in the turf project. --> | ||
--- | ||
@@ -31,0 +35,0 @@ |
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
Found 1 instance in 1 package
7603
51
1
1