feat(observatory): persist scene profiles and stable device view bindings
This commit is contained in:
@@ -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)[];
|
||||
|
||||
Reference in New Issue
Block a user