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