set canvas background (#157)

* prevent scrolling canvas on mobile

* set canvas background color
This commit is contained in:
dank074 2023-07-20 21:14:08 -05:00 committed by GitHub
parent 29abb568ae
commit 52ead76dd8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -334,7 +334,8 @@ export class FloorplanEditor
public clearCanvas(): void 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 public get renderer(): CanvasRenderingContext2D