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

    Interface SnapStrategy<TPose>

    Pluggable per-gesture snap rule; receives the proposed pose and returns a snapped pose or null to skip.

    interface SnapStrategy<TPose> {
        snap(
            pose: TPose,
            ctx: GestureContext<TPose, { id: string }>,
        ): TPose | null;
    }

    Type Parameters

    • TPose
    Index

    Methods

    Methods