feat(observatory): persist scene profiles and stable device view bindings

This commit is contained in:
DCCONSTRUCTIONS
2026-11-04 00:42:56 +03:00
parent b7b5ac9cf0
commit 14c3c7c2b6
33 changed files with 408 additions and 71 deletions
+5 -1
View File
@@ -1,12 +1,16 @@
import type {SceneSettings} from '../../spatial-ui/src/sceneSettings';
import type {ComponentType} from 'react';
import type {Sensor,SensorTransport} from './contracts';
import type {RerunHostFactory} from './rerunHost';
export interface SensorObservationView {id:string;label:string;layers?:{value:string;label:string}[]}
export interface SensorObservationView {id:string;label:string;header?:'overlay'|'flow';scene?:boolean;layers?:{value:string;label:string}[]}
/** Stable host slots let a session update its header without moving its media. */
export interface ObservationHeaderTargets {statusTarget:HTMLElement;actionsTarget:HTMLElement}
export interface CameraPresentation {rotations:Record<string,number>;panoramaYaw:number}
export interface SensorObservationProps {
/** Open the shared device workflow without navigation or an implicit command. */
configure?:(view?:string)=>void;reconnect?:()=>void;
sceneProfiles?:Record<string,SceneSettings>;onSceneChange?:(view:string,value:SceneSettings)=>void;
presentation?:CameraPresentation;onPresentationChange?:(value:CameraPresentation)=>void;
device:Sensor;transport:SensorTransport;enabled:boolean;fresh?:boolean;createRerunHost:RerunHostFactory;
views:({id:string;layer:string;target:HTMLElement}&ObservationHeaderTargets)[];