build: declare scene policy ownership in the director export

This commit is contained in:
Sameh Khamis committed 2026-09-13 05:45:20 -07:00
1 parent 3164405108
commit ed172009e6
2 files changed
+6 -5

No files matched your search

+2 -1
View File
@@ -561,7 +561,8 @@
"src/app/stateChannel.js", "src/app/stateChannel.js",
"src/ui/scenes.js", "src/ui/scenes.js",
"src/ui/sceneControls.js", "src/ui/sceneControls.js",
"src/ui/scenePresentation.js" "src/ui/scenePresentation.js",
"src/contextModePolicy.js"
], ],
"external": ["cesium"] "external": ["cesium"]
} }
+4 -4
View File
@@ -394,10 +394,6 @@ export class SceneDirector {
} catch { /* toast is best-effort */ } } catch { /* toast is best-effort */ }
} }
/**
* Wire up all scene-panel DOM event listeners and render the initial UI state.
* Exits silently if the scene-select element is missing (headless/test mode).
*/
/** Immutable playback snapshots and completed editing actions. */ /** Immutable playback snapshots and completed editing actions. */
subscribe(listener, options) { return this._state.subscribe(listener, options); } subscribe(listener, options) { return this._state.subscribe(listener, options); }
@@ -408,6 +404,10 @@ export class SceneDirector {
this._publish({ type, sceneId: scene.id, sceneTitle: scene.title, shot, index }); this._publish({ type, sceneId: scene.id, sceneTitle: scene.title, shot, index });
} }
/**
* Wire up all scene-panel DOM event listeners and render the initial UI state.
* Exits silently if the scene-select element is missing (headless/test mode).
*/
_initUI() { _initUI() {
this._controls = new SceneControls({ this._controls = new SceneControls({
subscribe: (listener) => this.subscribe(listener), subscribe: (listener) => this.subscribe(listener),