Renderer does not need output

This commit is contained in:
Christian Paul 2022-05-01 14:01:01 +02:00
parent e4c448615f
commit 59d1934a34
2 changed files with 2 additions and 3 deletions

View File

@ -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();

View File

@ -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);