mirror of
https://github.com/rastapasta/mapscii.git
synced 2024-11-21 23:53:08 +01:00
Merge pull request #43 from jaller94/buffer
Only support maintained LTS versions of Node
This commit is contained in:
commit
24737f3db9
@ -28,7 +28,7 @@ If you're on Windows, use the open source telnet client [PuTTY](https://www.chia
|
|||||||
|
|
||||||
### With npm
|
### With npm
|
||||||
|
|
||||||
If you haven't already got Node.js >= version 4.5, then [go get it](http://nodejs.org/).
|
If you haven't already got Node.js >= version 6.14, then [go get it](http://nodejs.org/).
|
||||||
|
|
||||||
```
|
```
|
||||||
npm install -g mapscii
|
npm install -g mapscii
|
||||||
|
890
package-lock.json
generated
890
package-lock.json
generated
File diff suppressed because it is too large
Load Diff
16
package.json
16
package.json
@ -15,7 +15,7 @@
|
|||||||
"mapscii": "./bin/mapscii.sh"
|
"mapscii": "./bin/mapscii.sh"
|
||||||
},
|
},
|
||||||
"engines": {
|
"engines": {
|
||||||
"node": ">=4.5.0"
|
"node": ">=6.14.0"
|
||||||
},
|
},
|
||||||
"keywords": [
|
"keywords": [
|
||||||
"map",
|
"map",
|
||||||
@ -29,21 +29,21 @@
|
|||||||
"author": "Michael Straßburger <codepoet@cpan.org>",
|
"author": "Michael Straßburger <codepoet@cpan.org>",
|
||||||
"license": "MIT",
|
"license": "MIT",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@mapbox/vector-tile": "^1.3.0",
|
"@mapbox/vector-tile": "^1.3.1",
|
||||||
"bluebird": "^3.5.1",
|
"bluebird": "^3.5.2",
|
||||||
"bresenham": "0.0.4",
|
"bresenham": "0.0.4",
|
||||||
"earcut": "^2.1.2",
|
"earcut": "^2.1.3",
|
||||||
"keypress": "^0.2.1",
|
"keypress": "^0.2.1",
|
||||||
"node-fetch": "^1.7.3",
|
"node-fetch": "^2.2.0",
|
||||||
"pbf": "^3.1.0",
|
"pbf": "^3.1.0",
|
||||||
"rbush": "^2.0.1",
|
"rbush": "^2.0.2",
|
||||||
"simplify-js": "^1.2.1",
|
"simplify-js": "^1.2.3",
|
||||||
"string-width": "^2.1.1",
|
"string-width": "^2.1.1",
|
||||||
"term-mouse": "^0.2.0",
|
"term-mouse": "^0.2.0",
|
||||||
"userhome": "^1.0.0",
|
"userhome": "^1.0.0",
|
||||||
"x256": "0.0.2"
|
"x256": "0.0.2"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"eslint": "^4.13.1"
|
"eslint": "^5.7.0"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -46,9 +46,9 @@ class BrailleBuffer {
|
|||||||
this.height = height;
|
this.height = height;
|
||||||
|
|
||||||
const size = width*height/8;
|
const size = width*height/8;
|
||||||
this.pixelBuffer = new Buffer(size);
|
this.pixelBuffer = Buffer.alloc(size);
|
||||||
this.foregroundBuffer = new Buffer(size);
|
this.foregroundBuffer = Buffer.alloc(size);
|
||||||
this.backgroundBuffer = new Buffer(size);
|
this.backgroundBuffer = Buffer.alloc(size);
|
||||||
|
|
||||||
this._mapBraille();
|
this._mapBraille();
|
||||||
this.clear();
|
this.clear();
|
||||||
|
Loading…
Reference in New Issue
Block a user