mirror of
https://github.com/rastapasta/mapscii.git
synced 2024-11-22 16:13:10 +01:00
Renderer does not need output
This commit is contained in:
parent
e4c448615f
commit
59d1934a34
@ -83,7 +83,7 @@ export default class Mapscii {
|
||||
|
||||
_initRenderer() {
|
||||
const style = JSON.parse(fs.readFileSync(this.config.styleFile, 'utf8'));
|
||||
this.renderer = new Renderer(this.config.output, this.tileSource, style);
|
||||
this.renderer = new Renderer(this.tileSource, style);
|
||||
|
||||
this.config.output.on('resize', () => {
|
||||
this._resizeRenderer();
|
||||
|
@ -14,8 +14,7 @@ import * as utils from './utils.js';
|
||||
import config from './config.js';
|
||||
|
||||
export default class Renderer {
|
||||
constructor(output, tileSource, style) {
|
||||
this.output = output;
|
||||
constructor(tileSource, style) {
|
||||
this.tileSource = tileSource;
|
||||
this.labelBuffer = new LabelBuffer();
|
||||
this.styler = new Styler(style);
|
||||
|
Loading…
Reference in New Issue
Block a user