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

    Interface BehaviorResult<TPose>

    Per-frame result a MoveBehavior.onMove can return.

    transform is the new uniform-group-transform channel: the gesture applies it to every dragged id, eliminating multi-select drift.

    pose is the legacy channel: a primary-id-only override. The hook routes it through a back-compat shim that derives a translate transform from the pose diff against origin.get(primaryId). Prefer transform in new behaviors; pose will be removed after one release cycle.

    snap announces a visual snap target; unchanged from the legacy contract.

    interface BehaviorResult<TPose> {
        pose?: TPose;
        snap?: SnapTarget<TPose> | null;
        transform?: GroupTransform;
    }

    Type Parameters

    • TPose
    Index

    Properties

    pose?: TPose

    Return transform instead. Legacy primary-only pose override; supported via internal shim.

    snap?: SnapTarget<TPose> | null
    transform?: GroupTransform

    Replace the proposed transform. Applied uniformly to every id.