@turf/hex-grid
Advanced tools
Comparing version 7.1.0 to 7.2.0
@@ -9,3 +9,3 @@ import { GeoJsonProperties, BBox, Feature, Polygon, FeatureCollection } from 'geojson'; | ||
* | ||
* @name hexGrid | ||
* @function | ||
* @param {BBox} bbox extent in [minX, minY, maxX, maxY] order | ||
@@ -12,0 +12,0 @@ * @param {number} cellSide length of the side of the the hexagons or triangles, in units. It will also coincide with the |
@@ -41,6 +41,4 @@ // index.ts | ||
const isOdd = x % 2 === 1; | ||
if (y === 0 && isOdd) | ||
continue; | ||
if (y === 0 && hasOffsetY) | ||
continue; | ||
if (y === 0 && isOdd) continue; | ||
if (y === 0 && hasOffsetY) continue; | ||
const center_x = x * x_interval + west - x_adjust; | ||
@@ -47,0 +45,0 @@ let center_y = y * y_interval + south + y_adjust; |
{ | ||
"name": "@turf/hex-grid", | ||
"version": "7.1.0", | ||
"version": "7.2.0", | ||
"description": "turf hex-grid module", | ||
@@ -65,24 +65,24 @@ "author": "Turf Authors", | ||
"devDependencies": { | ||
"@turf/bbox-polygon": "^7.1.0", | ||
"@turf/truncate": "^7.1.0", | ||
"@turf/bbox-polygon": "^7.2.0", | ||
"@turf/truncate": "^7.2.0", | ||
"@types/benchmark": "^2.1.5", | ||
"@types/tape": "^4.2.32", | ||
"@types/tape": "^4.13.4", | ||
"benchmark": "^2.1.4", | ||
"load-json-file": "^7.0.1", | ||
"npm-run-all": "^4.1.5", | ||
"tape": "^5.7.2", | ||
"tsup": "^8.0.1", | ||
"tsx": "^4.6.2", | ||
"typescript": "^5.2.2", | ||
"tape": "^5.9.0", | ||
"tsup": "^8.3.5", | ||
"tsx": "^4.19.2", | ||
"typescript": "^5.5.4", | ||
"write-json-file": "^5.0.0" | ||
}, | ||
"dependencies": { | ||
"@turf/distance": "^7.1.0", | ||
"@turf/helpers": "^7.1.0", | ||
"@turf/intersect": "^7.1.0", | ||
"@turf/invariant": "^7.1.0", | ||
"@turf/distance": "^7.2.0", | ||
"@turf/helpers": "^7.2.0", | ||
"@turf/intersect": "^7.2.0", | ||
"@turf/invariant": "^7.2.0", | ||
"@types/geojson": "^7946.0.10", | ||
"tslib": "^2.6.2" | ||
"tslib": "^2.8.1" | ||
}, | ||
"gitHead": "68915eeebc9278bb40dec3f1034499698a0561ef" | ||
"gitHead": "7b0f0374c4668cd569f8904c71e2ae7d941be867" | ||
} |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
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
39476
257
Updated@turf/distance@^7.2.0
Updated@turf/helpers@^7.2.0
Updated@turf/intersect@^7.2.0
Updated@turf/invariant@^7.2.0
Updatedtslib@^2.8.1