feat(rerun): retain live playback and recover isolated viewer resources

This commit is contained in:
DCCONSTRUCTIONS
2026-11-04 00:42:54 +03:00
parent 669ada973f
commit 7a3c3c00b3
28 changed files with 1414 additions and 262 deletions
+6
View File
@@ -1,10 +1,16 @@
/** Native renderer capability supplied by each host, independent of device APIs. */
export interface LiveRerunViewer {
readonly ready?:boolean;
start:(source:string|string[]|null,parent:HTMLElement,options:{width:string;height:string;hide_welcome_screen:boolean;enable_history:boolean;theme?:'dark'|'light';allow_fullscreen?:boolean;panel_state_overrides?:Record<string,string>})=>Promise<void>;
open_channel:(name:string)=>{ready:boolean;send_rrd:(bytes:Uint8Array)=>void;close:()=>void};
override_panel_state:(panel:'top'|'blueprint'|'selection'|'time',state:'hidden'|'collapsed'|'expanded')=>void;
get_camera_eye?:()=>{position:readonly number[];lookTarget:readonly number[];eyeUp:readonly number[]}|null;
set_height_slice?:(lower:number|null,upper:number|null)=>boolean;
get_height_bounds?:()=>{min:number;max:number}|null;
get_active_recording_id:()=>string|null;
get_active_timeline:(id:string)=>string|null;
get_current_time?:(id:string,timeline:string)=>number;
get_playing?:(id:string)=>boolean;
get_time_range:(id:string,timeline:string)=>{min:number;max:number}|null;
set_active_timeline:(id:string,timeline:string)=>void;
set_current_time:(id:string,timeline:string,time:number)=>void;