set canvas background color

This commit is contained in:
dank074 2023-07-20 21:10:22 -05:00
parent 5e9cd11d71
commit 634cf678d5

View File

@ -334,7 +334,8 @@ export class FloorplanEditor
public clearCanvas(): void
{
this.renderer.clearRect(0, 0, this._renderer.canvas.width, this._renderer.canvas.height);
this.renderer.fillStyle = '0x000000';
this.renderer.fillRect(0, 0, this._renderer.canvas.width, this._renderer.canvas.height);
}
public get renderer(): CanvasRenderingContext2D