AutoMovie API
    Preparing search index...

    Interface IAutoMovieDrawScene

    A subject made ready to draw: its scene, its delivery camera, its clock and raster, and how to put it at a second.

    The draw function holds one for the life of the page. Before every picture it calls seek and waits for it, then asks marks for the same second, applies the cell's inspection to scene, and draws through the camera the cell's view resolves to. A production's film and a motion case both fit it; nothing in it names what kind of subject it is.

    interface IAutoMovieDrawScene {
        camera: PerspectiveCamera;
        delivery?: IAutoMovieDeliveryContentAudit.IIntent;
        durationSeconds: number;
        fps: number;
        height: number;
        inspectPlaced?: (sample: IPlacedSample) => IAutoMovieInspectionDiagnostics;
        instants?: readonly { label: string; seconds: number }[];
        markKinds?: readonly string[];
        marks?: (seconds: number) => readonly IAutoMovieMark[];
        scene: Scene;
        views?: Readonly<
            Record<
                string,
                (
                    seconds: number,
                ) => {
                    position: readonly [number, number, number];
                    target: readonly [number, number, number];
                },
            >,
        >;
        width: number;
        dispose(): void;
        place?(seconds: number): void;
        seek(seconds: number): Promise<void>;
    }
    Index
    camera: PerspectiveCamera

    The delivery camera, which the film view draws through and whose field of view and clips the other views take.

    Optional source intent for auditing the delivered file.

    durationSeconds: number

    Running time in seconds.

    fps: number

    Frames per second of the subject's own grid.

    height: number

    Height in pixels of every picture drawn of the subject.

    inspectPlaced?: (sample: IPlacedSample) => IAutoMovieInspectionDiagnostics

    Optional production diagnostics, read synchronously after the outer seek is ready and before any inspection changes the scene.

    instants?: readonly { label: string; seconds: number }[]

    Instants the subject names, such as a motion case's beats, which captions and records of cells drawn at them carry; absent when it names none.

    markKinds?: readonly string[]

    Kind names the subject declares for its lifetime. Capture planning, drawing and Viewer controls admit them at empty frames. marks supplies geometry and styles at each second and can supply additional kinds.

    marks?: (seconds: number) => readonly IAutoMovieMark[]

    The marks the subject's owners supply at a second, asked for after seek; absent when it supplies none.

    scene: Scene

    The scene drawn, owned by the subject until dispose.

    views?: Readonly<
        Record<
            string,
            (
                seconds: number,
            ) => {
                position: readonly [number, number, number];
                target: readonly [number, number, number];
            },
        >,
    >

    The subject's own named views, each placing a camera in world metres at a second; absent when it has none.

    width: number

    Width in pixels of every picture drawn of the subject.

    • Place the scene at a second synchronously, leaving it exactly as an awaited seek to the same second would. Offered only by a subject whose placement needs nothing asynchronous; inspection uses it to sample motion between output frames and then places the drawn second again.

      Parameters

      • seconds: number

      Returns void

    • Put every object and the delivery camera at a second; objects may be replaced. The returned promise resolves once the subject is ready, including its textures. The draw host binds inspection after this placement, so no removed object's masks or measurements stand in for the current geometry.

      Parameters

      • seconds: number

      Returns Promise<void>