mirror of
https://github.com/billsonnn/nitro-react.git
synced 2025-01-18 21:36:27 +01:00
set canvas background (#157)
* prevent scrolling canvas on mobile * set canvas background color
This commit is contained in:
parent
29abb568ae
commit
52ead76dd8
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user