Class TouchTransition

This transition defines a touch move.

Hierarchy

Constructors

  • Defines a transition.

    Parameters

    • srcState: OutputState

      The source state of the transition.

    • tgtState: InputState

      The srcObject state of the transition.

    • eventType: "touchend" | "touchmove" | "touchstart"

      The type of touch event

    • Optional action: ((evt) => void)

      The action to execute when going through the transition

        • (evt): void
        • Parameters

          • evt: TouchEvent

          Returns void

    • Optional guard: ((evt) => boolean)

      The guard to fulfil to execute the transition

        • (evt): boolean
        • Parameters

          • evt: TouchEvent

          Returns boolean

    Returns TouchTransition

Properties

acceptedEvents: ReadonlySet<"input" | "auxclick" | "change" | "click" | "keydown" | "keyup" | "mousedown" | "mouseenter" | "mouseleave" | "mousemove" | "mouseout" | "mouseover" | "mouseup" | "scroll" | "touchend" | "touchmove" | "touchstart" | "wheel">
action: ((evt) => void)

Type declaration

    • (evt): void
    • Parameters

      • evt: TouchEvent

      Returns void

guard: ((evt) => boolean)

Type declaration

    • (evt): boolean
    • Parameters

      • evt: TouchEvent

      Returns boolean

Accessors

Methods

  • Returns ReadonlySet<"input" | "auxclick" | "change" | "click" | "keydown" | "keyup" | "mousedown" | "mouseenter" | "mouseleave" | "mousemove" | "mouseout" | "mouseover" | "mouseup" | "scroll" | "touchend" | "touchmove" | "touchstart" | "wheel">

    The set of events accepted by the transition.

Generated using TypeDoc