weasel API - v0.8.0
    Preparing search index...

    Interface SceneNodeClientRectOpts

    Options for sceneNodeClientRect.

    interface SceneNodeClientRectOpts {
        canvas: Element;
        getWorldBounds: (id: string) => Bounds | null;
        id: string;
        view: View;
    }
    Index

    Properties

    canvas: Element

    The canvas element — supplies the client-coordinate origin.

    getWorldBounds: (id: string) => Bounds | null

    Resolve an id to its world-space AABB, or null when unknown. Typically adapts a pose resolver (e.g. from composeSelectionPose): (id) => { const p = resolvePose(id); return p ? boundsOfPath(p) : null; } — for rect poses the pose is its own AABB and can be returned directly.

    id: string

    Node (or container) id to locate.

    view: View

    Current viewport.