@turf/hex-grid
Advanced tools
Comparing version 3.3.3 to 3.5.2-alpha.d2c36ee7
@@ -22,5 +22,5 @@ var point = require('@turf/helpers').point; | ||
* @name hexGrid | ||
* @param {Array<number>} bbox bounding box in [minX, minY, maxX, maxY] order | ||
* @param {Array<number>} bbox extent in [minX, minY, maxX, maxY] order | ||
* @param {number} cellSize dimension of cell in specified units | ||
* @param {string} units used in calculating cellWidth ('miles' or 'kilometers') | ||
* @param {string} [units=kilometers] used in calculating cellSize, can be degrees, radians, miles, or kilometers | ||
* @param {boolean} triangles whether to return as triangles instead of hexagons | ||
@@ -30,6 +30,6 @@ * @return {FeatureCollection<Polygon>} a hexagonal grid | ||
* var bbox = [-96,31,-84,40]; | ||
* var cellWidth = 50; | ||
* var cellSize = 50; | ||
* var units = 'miles'; | ||
* | ||
* var hexgrid = turf.hexGrid(bbox, cellWidth, units); | ||
* var hexgrid = turf.hexGrid(bbox, cellSize, units); | ||
* | ||
@@ -36,0 +36,0 @@ * //=hexgrid |
{ | ||
"name": "@turf/hex-grid", | ||
"version": "3.3.3", | ||
"version": "3.5.2-alpha.d2c36ee7", | ||
"description": "", | ||
@@ -37,10 +37,10 @@ "main": "index.js", | ||
"tape": "^3.5.0", | ||
"@turf/bbox-polygon": "^3.3.3", | ||
"@turf/explode": "^3.3.3", | ||
"@turf/inside": "^3.3.3" | ||
"@turf/bbox-polygon": "^3.5.2-alpha.d2c36ee7", | ||
"@turf/explode": "^3.5.2-alpha.d2c36ee7", | ||
"@turf/inside": "^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,5 +11,5 @@ # @turf/hex-grid | ||
- `bbox` **[Array](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array)<[number](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Number)>** bounding box in [minX, minY, maxX, maxY] order | ||
- `bbox` **[Array](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array)<[number](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Number)>** extent in [minX, minY, maxX, maxY] order | ||
- `cellSize` **[number](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Number)** dimension of cell in specified units | ||
- `units` **[string](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String)** used in calculating cellWidth ('miles' or '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`) | ||
- `triangles` **[boolean](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Boolean)** whether to return as triangles instead of hexagons | ||
@@ -21,6 +21,6 @@ | ||
var bbox = [-96,31,-84,40]; | ||
var cellWidth = 50; | ||
var cellSize = 50; | ||
var units = 'miles'; | ||
var hexgrid = turf.hexGrid(bbox, cellWidth, units); | ||
var hexgrid = turf.hexGrid(bbox, cellSize, units); | ||
@@ -32,2 +32,6 @@ //=hexgrid | ||
<!-- 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. --> | ||
--- | ||
@@ -34,0 +38,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
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
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
13731
54
7
1
1