Fix image-generator-demo

This commit is contained in:
Danny McGee
2024-03-20 18:41:51 -04:00
parent f0c30ea160
commit 9c0a8b020c
2 changed files with 7 additions and 0 deletions
@@ -5,6 +5,10 @@
background: #242433; background: #242433;
} }
sts-scene-data-provider {
display: contents;
}
// Layout utilities // Layout utilities
.v-start, .v-end, .h-start, .h-end, .h-center { .v-start, .v-end, .h-start, .h-end, .h-center {
position: absolute; position: absolute;
@@ -18,6 +18,7 @@ import { ImageInfo, LcmClient } from "./lcm-client";
import "@storyteller/studio-web/canvas-provider"; import "@storyteller/studio-web/canvas-provider";
import "@storyteller/studio-web/loading"; import "@storyteller/studio-web/loading";
// import "@storyteller/studio-web/scene-data-provider";
import "@storyteller/studio-web/scene-hierarchy"; import "@storyteller/studio-web/scene-hierarchy";
import "@storyteller/studio-web/studio"; import "@storyteller/studio-web/studio";
import "@storyteller/studio-web/transform-toolbar"; import "@storyteller/studio-web/transform-toolbar";
@@ -173,6 +174,7 @@ export class AppElement extends LitElement {
protected override render = () => html` protected override render = () => html`
<sts-canvas-provider class="app-root"> <sts-canvas-provider class="app-root">
<sts-scene-data-provider>
<div <div
class="hierarchy-wrapper" class="hierarchy-wrapper"
style=${styleMap({ width: `${this.hierarchyWidth}px` })} style=${styleMap({ width: `${this.hierarchyWidth}px` })}
@@ -297,6 +299,7 @@ export class AppElement extends LitElement {
${this.loading ? html` ${this.loading ? html`
<sts-loading></sts-loading> <sts-loading></sts-loading>
` : nothing} ` : nothing}
</sts-scene-data-provider>
</sts-canvas-provider> </sts-canvas-provider>
` `
} }