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

    Interface AlignBoundsProjection<TPose>

    Bounds analog of the gesture OriginProjection: reads an AABB from a pose and translates a pose. The rect default handles {x,y,width,height} poses; non-rect poses (Path, polygon) supply their own.

    interface AlignBoundsProjection<TPose> {
        boundsOf(pose: TPose): AlignBounds;
        translate(pose: TPose, dx: number, dy: number): TPose;
    }

    Type Parameters

    • TPose
    Index

    Methods