mirror of
https://github.com/storytold/storyteller-bevy.git
synced 2026-10-23 08:16:05 +00:00
added the studio mode viewing or editing
This commit is contained in:
@@ -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"))
|
||||
|
||||
Reference in New Issue
Block a user