fast-mesh-wasm
    Preparing search index...

    Interface DragSession

    A drag of one mesh: every DragSession.move until DragSession.end is one undo step.

    The drag is over once it is ended or cancelled, and also when its step goes away without it: an undo(), redo(), clearHistory() or removeMesh() of the dragged mesh ends it first, and a cancelStep() (or an endStep() that closes the drag's step) abandons it. An endStep() lands a pending coalesced pose in the closing step first; a cancelStep() drops it with the step.

    interface DragSession {
        active: boolean;
        cancel(): void;
        end(): void;
        move(placement: PlacementInput): void;
    }
    Index
    active: boolean

    False once the drag is over: ended, cancelled, or ended or abandoned by the scene (undo(), redo(), clearHistory(), endStep(), cancelStep(), removeMesh() of the dragged mesh).

    • Puts the placement back to where the drag started and records nothing. A no-op once it is over.

      When no step was open at drag(), this reverts the drag's whole step, so edits made during the drag (including in steps opened inside it) are reverted too. Inside a caller's step, it restores the placement and closes the drag's levels, leaving the caller's step open.

      Returns void