added the studio mode viewing or editing

This commit is contained in:
Brooks Palin
2023-12-19 17:41:42 -07:00
parent 0a0acacfdb
commit cd0226f0fc
3 changed files with 21 additions and 2 deletions
+2
View File
@@ -14,6 +14,7 @@ export class ViewerElement extends LitElement {
@property() objectId?: string;
@property() skyboxId?: string;
@property() viewmode?: string = "viewer"
@inject(CANVAS_PROVIDER)
_canvasProvider?: CanvasProvider;
@@ -77,6 +78,7 @@ export class ViewerElement extends LitElement {
`#${this._canvasProvider!.canvasId}`,
"Storyteller Studio",
new ViewportSize(width, height),
this.viewmode
);
} catch (err) {
if (!(err as Error).message?.startsWith("Using exceptions for control flow"))