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

    Interface SerializedNode<TData, TLayer, TPose>

    JSON-serializable shape of a single node. Mirrors AddNodeSpec but with function fields replaced by registry keys.

    interface SerializedNode<TData, TLayer extends string, TPose> {
        clipFromPoseKey?: string;
        data: TData;
        id: string;
        kind: "leaf" | "container";
        layer: TLayer;
        parent?: string;
        pose: TPose;
    }

    Type Parameters

    • TData
    • TLayer extends string
    • TPose
    Index

    Properties

    clipFromPoseKey?: string

    Registry key for the container's clip-path factory. Containers only; omitted when the container has no clip.

    data: TData
    id: string
    kind: "leaf" | "container"
    layer: TLayer
    parent?: string

    Parent id; omitted for roots.

    pose: TPose