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

    Interface DropTarget<TPose>

    interface DropTarget<TPose> {
        hitBounds?: { height: number; width: number; x: number; y: number };
        meta?: unknown;
        origin: { x: number; y: number };
        pose: TPose;
    }

    Type Parameters

    • TPose
    Index

    Properties

    hitBounds?: { height: number; width: number; x: number; y: number }

    Optional axis-aligned region (world units) used by region-aware snaps (e.g. containedThenNearest). When present, a pointer inside this rect is treated as a containment hit on this target. Strategies that emit region-shaped targets (gutters, drop-zones) should populate this. Strategies whose targets are point-like (free-form, snap-point) can omit it and rely on origin-distance snaps.

    meta?: unknown

    Strategy-private metadata (e.g. cell coords for tile-grid).

    origin: { x: number; y: number }

    Reference point for distance metrics (snap algorithms).

    pose: TPose

    Where the dragged child lands if this target is picked.