From f33b6bd96ee474a51123decb049d3199126b67b1 Mon Sep 17 00:00:00 2001 From: Bill Date: Sat, 8 May 2021 23:27:01 -0400 Subject: [PATCH] Update RoomPreviewer --- src/nitro/room/preview/RoomPreviewer.ts | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/src/nitro/room/preview/RoomPreviewer.ts b/src/nitro/room/preview/RoomPreviewer.ts index 231c56ce..ffe1455a 100644 --- a/src/nitro/room/preview/RoomPreviewer.ts +++ b/src/nitro/room/preview/RoomPreviewer.ts @@ -850,4 +850,14 @@ export class RoomPreviewer { this._backgroundColor = color; } + + public get width(): number + { + return this._currentPreviewCanvasWidth; + } + + public get height(): number + { + return this._currentPreviewCanvasHeight; + } }