Luxar Viewer API Documentation - v2026.9.22
    Preparing search index...
    interface CaptureContextDeps {
        sceneManager: SceneManager;
        opts: RecordingOptions;
        recordingMode: RecordingMode;
        fps: number;
        signal: AbortSignal;
        captureBase: string;
        renderFrameToCanvas: () => Promise<HTMLCanvasElement>;
        downloadBlob: (blob: Blob, filename: string) => void;
    }
    Index
    sceneManager: SceneManager
    recordingMode: RecordingMode
    fps: number
    signal: AbortSignal
    captureBase: string

    One timestamped stem for the whole capture. generateFilename stamps new Date() on every call, so calling it per artifact — the ZIP's save-dialog name at setup, its fallback download name at finalize, the script's output base — hands out names that disagree whenever a capture crosses a second boundary.

    renderFrameToCanvas: () => Promise<HTMLCanvasElement>
    downloadBlob: (blob: Blob, filename: string) => void