iink-ts - v4.0.0
    Preparing search index...

    Type Alias TGestureHandler

    Base interface for gesture handlers Each handler is responsible for applying a specific gesture type

    type TGestureHandler = {
        apply(
            gestureStroke: TStroke,
            gesture: TGesture,
        ): Promise<void | TSymbol[]>;
        gestureType: TGestureType;
    }

    Implemented by

    Index
    gestureType: TGestureType

    The type of gesture this handler manages

    • Apply the gesture to the model

      Parameters

      • gestureStroke: TStroke

        The stroke that forms the gesture

      • gesture: TGesture

        The detected gesture information

      Returns Promise<void | TSymbol[]>

      Promise that resolves when the gesture is applied