mirror of
https://github.com/rastapasta/mapscii.git
synced 2024-11-21 15:43:08 +01:00
Upgrade dependencies
This commit is contained in:
parent
54235a81b7
commit
184ce100d7
1570
package-lock.json
generated
1570
package-lock.json
generated
File diff suppressed because it is too large
Load Diff
10
package.json
10
package.json
@ -30,13 +30,13 @@
|
||||
"license": "MIT",
|
||||
"dependencies": {
|
||||
"@mapbox/vector-tile": "^1.3.1",
|
||||
"bluebird": "^3.5.5",
|
||||
"bluebird": "^3.7.0",
|
||||
"bresenham": "0.0.4",
|
||||
"earcut": "^2.1.5",
|
||||
"earcut": "^2.2.1",
|
||||
"keypress": "^0.2.1",
|
||||
"node-fetch": "^2.6.0",
|
||||
"pbf": "^3.2.0",
|
||||
"rbush": "^2.0.2",
|
||||
"rbush": "^3.0.1",
|
||||
"simplify-js": "^1.2.3",
|
||||
"string-width": "^4.1.0",
|
||||
"term-mouse": "^0.2.0",
|
||||
@ -44,7 +44,7 @@
|
||||
"x256": "0.0.2"
|
||||
},
|
||||
"devDependencies": {
|
||||
"eslint": "^5.16.0",
|
||||
"jest": "^24.8.0"
|
||||
"eslint": "^6.5.1",
|
||||
"jest": "^24.9.0"
|
||||
}
|
||||
}
|
||||
|
@ -6,13 +6,13 @@
|
||||
and to find labels underneath a mouse cursor's position
|
||||
*/
|
||||
'use strict';
|
||||
const Rbush = require('rbush');
|
||||
const RBush = require('rbush');
|
||||
const stringWidth = require('string-width');
|
||||
|
||||
module.exports = class LabelBuffer {
|
||||
|
||||
constructor() {
|
||||
this.tree = Rbush();
|
||||
this.tree = new RBush();
|
||||
this.margin = 5;
|
||||
}
|
||||
|
||||
|
@ -8,7 +8,7 @@
|
||||
const VectorTile = require('@mapbox/vector-tile').VectorTile;
|
||||
const Protobuf = require('pbf');
|
||||
const zlib = require('zlib');
|
||||
const rbush = require('rbush');
|
||||
const RBush = require('rbush');
|
||||
const x256 = require('x256');
|
||||
|
||||
const config = require('./config');
|
||||
@ -111,7 +111,7 @@ class Tile {
|
||||
}
|
||||
}
|
||||
}
|
||||
const tree = rbush(18);
|
||||
const tree = new RBush(18);
|
||||
tree.load(nodes);
|
||||
layers[name] = {
|
||||
extent: layer.extent,
|
||||
|
Loading…
Reference in New Issue
Block a user