Merge pull request #43 from jaller94/buffer

Only support maintained LTS versions of Node
pull/47/head
Christian Paul 2018-10-18 00:42:26 -07:00 zatwierdzone przez GitHub
commit 24737f3db9
Nie znaleziono w bazie danych klucza dla tego podpisu
ID klucza GPG: 4AEE18F83AFDEB23
4 zmienionych plików z 393 dodań i 521 usunięć

Wyświetl plik

@ -28,7 +28,7 @@ If you're on Windows, use the open source telnet client [PuTTY](https://www.chia
### 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

890
package-lock.json wygenerowano

Plik diff jest za duży Load Diff

Wyświetl plik

@ -15,7 +15,7 @@
"mapscii": "./bin/mapscii.sh"
},
"engines": {
"node": ">=4.5.0"
"node": ">=6.14.0"
},
"keywords": [
"map",
@ -29,21 +29,21 @@
"author": "Michael Straßburger <codepoet@cpan.org>",
"license": "MIT",
"dependencies": {
"@mapbox/vector-tile": "^1.3.0",
"bluebird": "^3.5.1",
"@mapbox/vector-tile": "^1.3.1",
"bluebird": "^3.5.2",
"bresenham": "0.0.4",
"earcut": "^2.1.2",
"earcut": "^2.1.3",
"keypress": "^0.2.1",
"node-fetch": "^1.7.3",
"node-fetch": "^2.2.0",
"pbf": "^3.1.0",
"rbush": "^2.0.1",
"simplify-js": "^1.2.1",
"rbush": "^2.0.2",
"simplify-js": "^1.2.3",
"string-width": "^2.1.1",
"term-mouse": "^0.2.0",
"userhome": "^1.0.0",
"x256": "0.0.2"
},
"devDependencies": {
"eslint": "^4.13.1"
"eslint": "^5.7.0"
}
}

Wyświetl plik

@ -46,9 +46,9 @@ class BrailleBuffer {
this.height = height;
const size = width*height/8;
this.pixelBuffer = new Buffer(size);
this.foregroundBuffer = new Buffer(size);
this.backgroundBuffer = new Buffer(size);
this.pixelBuffer = Buffer.alloc(size);
this.foregroundBuffer = Buffer.alloc(size);
this.backgroundBuffer = Buffer.alloc(size);
this._mapBraille();
this.clear();