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

    Interface CornerResizeScratch

    The fields buildAffordanceAt lifts out of a region's initialScratch when it turns a region hit into an AffordanceHit.

    Scratch is otherwise opaque — whatever the affordance wants to hand the action that picks up the drag. These few names are the exception: they mean the same thing to every affordance, and the actions that consume them (resizeAction, rotateAction) read them off AffordanceHit rather than out of scratch. An affordance that doesn't set them simply produces a hit without those fields.

    interface CornerResizeScratch {
        anchor: ResizeAnchor;
        fixedPoint: { x: number; y: number };
        targetId: string;
    }

    Hierarchy (View Summary)

    Index

    Properties

    anchor: ResizeAnchor

    Resize anchor identifying the OPPOSITE corner (the one that stays fixed). Matches the kit's existing ResizeAnchor convention.

    fixedPoint: { x: number; y: number }

    The fixed corner in world coords, with the target's rotation already applied. resizeAction scales from this point, and it has no access to the target transform, so the affordance resolves it here.

    targetId: string

    Id of the resize target. In multi-mode this is MULTI_RESIZE_TARGET_ID.