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

    Interface RotateAdapter<TNode, TPose>

    Narrow adapter for useRotate. Mirrors ResizeAdapter's shape — rotate mutates pose only and never reparents. TPose is left fully generic so non-rect rotated poses (e.g. a RotatedPath) compose without changes.

    interface RotateAdapter<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
    Index

    Methods