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

    Interface ContainerNode<TData, TLayer, TPose>

    interface ContainerNode<TData, TLayer extends string, TPose = RectPose> {
        children: NodeId[];
        clipFromPose?: (pose: TPose) => Path | null;
        data: TData;
        id: NodeId;
        kind: "container";
        layer: TLayer;
        parent: NodeId | null;
        pose: TPose;
    }

    Type Parameters

    • TData
    • TLayer extends string
    • TPose = RectPose

    Hierarchy

    Index

    Properties

    children: NodeId[]
    clipFromPose?: (pose: TPose) => Path | null

    Optional clip-path source. Re-evaluated each render. Returning null means "no clip for this container right now"; an empty / zero-area path means "clip everything out" (children render nowhere). When set, the renderer rasterizes the returned path into the stencil buffer and paints descendants only where it covers.

    data: TData
    id: NodeId
    kind: "container"
    layer: TLayer
    parent: NodeId | null
    pose: TPose