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

    Interface ResizeAdapter<TNode, TPose>

    Narrow adapter for useResize. Mirrors MoveAdapter's shape minus reparenting and snap-target lookup. TPose is constrained to { x, y, width, height } inline to avoid a circular import with interactions/types.ts.

    interface ResizeAdapter<TNode extends { id: string }, TPose> {
        applyOps?(ops: Op[], label: string): void;
        getNode(id: string): TNode | undefined;
        getPose(id: string): TPose;
        setPose(id: string, pose: TPose): void;
    }

    Type Parameters

    • TNode extends { id: string }
    • TPose

    Hierarchy (View Summary)

    Index

    Methods