mirror of
https://github.com/rastapasta/mapscii.git
synced 2024-11-24 17:13:57 +01:00
Make Styler strict
This commit is contained in:
parent
fd40b57f51
commit
9d9ef31f7b
@ -8,11 +8,11 @@
|
|||||||
Compiles layer filter instructions into a chain of true/false returning
|
Compiles layer filter instructions into a chain of true/false returning
|
||||||
anonymous functions to improve rendering speed compared to realtime parsing.
|
anonymous functions to improve rendering speed compared to realtime parsing.
|
||||||
*/
|
*/
|
||||||
var Styler;
|
'use strict';
|
||||||
|
|
||||||
const fs = require('fs');
|
const fs = require('fs');
|
||||||
|
|
||||||
module.exports = class Styler {
|
class Styler {
|
||||||
constructor(file) {
|
constructor(file) {
|
||||||
this.styleById = {};
|
this.styleById = {};
|
||||||
this.styleByLayer = {};
|
this.styleByLayer = {};
|
||||||
@ -132,3 +132,5 @@ module.exports = class Styler {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
module.exports = Styler;
|
||||||
|
Loading…
Reference in New Issue
Block a user