Skip to content

Commit

Permalink
update dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
mourner committed Jul 6, 2024
1 parent e79209e commit af231c9
Show file tree
Hide file tree
Showing 3 changed files with 27 additions and 26 deletions.
44 changes: 22 additions & 22 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

7 changes: 4 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,12 +9,13 @@
],
"main": "polylabel.js",
"type": "module",
"sideEffects": false,
"dependencies": {
"tinyqueue": "^2.0.3"
"tinyqueue": "^3.0.0"
},
"devDependencies": {
"eslint": "^9.5.0",
"eslint-config-mourner": "^4.0.0"
"eslint": "^9.6.0",
"eslint-config-mourner": "^4.0.1"
},
"scripts": {
"pretest": "eslint *.js test/*.js",
Expand Down
2 changes: 1 addition & 1 deletion polylabel.js
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ export default function polylabel(polygon, precision = 1.0, debug = false) {
}

// a priority queue of cells in order of their "potential" (max distance to polygon)
const cellQueue = new Queue(undefined, (a, b) => b.max - a.max);
const cellQueue = new Queue([], (a, b) => b.max - a.max);

// take centroid as the first best guess
let bestCell = getCentroidCell(polygon);
Expand Down

0 comments on commit af231c9

Please sign in to comment.