Upgrade dependencies

This commit is contained in:
Christian Paul 2019-10-10 19:50:50 +02:00
parent 54235a81b7
commit 184ce100d7
No known key found for this signature in database
GPG Key ID: D2CA0D5A16407395
4 changed files with 758 additions and 832 deletions

1570
package-lock.json generated

File diff suppressed because it is too large Load Diff

View File

@ -30,13 +30,13 @@
"license": "MIT", "license": "MIT",
"dependencies": { "dependencies": {
"@mapbox/vector-tile": "^1.3.1", "@mapbox/vector-tile": "^1.3.1",
"bluebird": "^3.5.5", "bluebird": "^3.7.0",
"bresenham": "0.0.4", "bresenham": "0.0.4",
"earcut": "^2.1.5", "earcut": "^2.2.1",
"keypress": "^0.2.1", "keypress": "^0.2.1",
"node-fetch": "^2.6.0", "node-fetch": "^2.6.0",
"pbf": "^3.2.0", "pbf": "^3.2.0",
"rbush": "^2.0.2", "rbush": "^3.0.1",
"simplify-js": "^1.2.3", "simplify-js": "^1.2.3",
"string-width": "^4.1.0", "string-width": "^4.1.0",
"term-mouse": "^0.2.0", "term-mouse": "^0.2.0",
@ -44,7 +44,7 @@
"x256": "0.0.2" "x256": "0.0.2"
}, },
"devDependencies": { "devDependencies": {
"eslint": "^5.16.0", "eslint": "^6.5.1",
"jest": "^24.8.0" "jest": "^24.9.0"
} }
} }

View File

@ -6,13 +6,13 @@
and to find labels underneath a mouse cursor's position and to find labels underneath a mouse cursor's position
*/ */
'use strict'; 'use strict';
const Rbush = require('rbush'); const RBush = require('rbush');
const stringWidth = require('string-width'); const stringWidth = require('string-width');
module.exports = class LabelBuffer { module.exports = class LabelBuffer {
constructor() { constructor() {
this.tree = Rbush(); this.tree = new RBush();
this.margin = 5; this.margin = 5;
} }

View File

@ -8,7 +8,7 @@
const VectorTile = require('@mapbox/vector-tile').VectorTile; const VectorTile = require('@mapbox/vector-tile').VectorTile;
const Protobuf = require('pbf'); const Protobuf = require('pbf');
const zlib = require('zlib'); const zlib = require('zlib');
const rbush = require('rbush'); const RBush = require('rbush');
const x256 = require('x256'); const x256 = require('x256');
const config = require('./config'); const config = require('./config');
@ -111,7 +111,7 @@ class Tile {
} }
} }
} }
const tree = rbush(18); const tree = new RBush(18);
tree.load(nodes); tree.load(nodes);
layers[name] = { layers[name] = {
extent: layer.extent, extent: layer.extent,