Class BindingsImpl<H>

Implementation of Bindings. This class to be used in DI for creating binders and bindings.

Type Parameters

Hierarchy

Constructors

Properties

logger: Logger
observer: undefined | BindingsObserver
undoHistoryData: H

Accessors

Methods

  • Creates a binding that uses a bottom pan interaction (or swipe if minVelocity is used) interaction (one-touch).

    Type Parameters

    • A

    Parameters

    • pxTolerance: number

      The tolerance rate in pixels accepted while executing the pan

    • cancellable: boolean

      Whether the DnD can be cancelled by interacting with a dwell-and-spring element.

    • Optional minLength: number

      The minimal distance from the starting point to the release point for validating the pan

    • Optional minVelocity: number

      The pan while be a swipe: the minimal minVelocity to reach for validating the swipe. In pixels per second.

    • Optional accInit: A

    Returns PartialTouchSrcTgtTypedBinder<A>

  • Creates a binding that uses a vertical pan interaction (or swipe if minVelocity is used) interaction (one-touch).

    Type Parameters

    • A

    Parameters

    • pxTolerance: number

      The tolerance rate in pixels accepted while executing the pan

    • cancellable: boolean

      Whether the DnD can be cancelled by interacting with a dwell-and-spring element.

    • Optional minLength: number

      The minimal distance from the starting point to the release point for validating the pan

    • Optional minVelocity: number

      The pan while be a swipe: the minimal minVelocity to reach for validating the swipe. In pixels per second.

    • Optional accInit: A

    Returns PartialTouchSrcTgtTypedBinder<A>

  • Creates a binding that uses a left pan interaction (or swipe if minVelocity is used) interaction (one-touch).

    Type Parameters

    • A

    Parameters

    • pxTolerance: number

      The tolerance rate in pixels accepted while executing the pan

    • cancellable: boolean

      Whether the DnD can be cancelled by interacting with a dwell-and-spring element.

    • Optional minLength: number

      The minimal distance from the starting point to the release point for validating the pan

    • Optional minVelocity: number

      The pan while be a swipe: the minimal minVelocity to reach for validating the swipe. In pixels per second.

    • Optional accInit: A

    Returns PartialTouchSrcTgtTypedBinder<A>

  • Creates a binding that uses a right pan interaction (or swipe if minVelocity is used) interaction (one-touch).

    Type Parameters

    • A

    Parameters

    • pxTolerance: number

      The tolerance rate in pixels accepted while executing the pan

    • cancellable: boolean

      Whether the DnD can be cancelled by interacting with a dwell-and-spring element.

    • Optional minLength: number

      The minimal distance from the starting point to the release point for validating the pan

    • Optional minVelocity: number

      The pan while be a swipe: the minimal minVelocity to reach for validating the swipe. In pixels per second.

    • Optional accInit: A

    Returns PartialTouchSrcTgtTypedBinder<A>

  • Creates a binding that uses a top pan interaction (or swipe if minVelocity is used) interaction (one-touch).

    Type Parameters

    • A

    Parameters

    • pxTolerance: number

      The tolerance rate in pixels accepted while executing the pan

    • cancellable: boolean

      Whether the DnD can be cancelled by interacting with a dwell-and-spring element.

    • Optional minLength: number

      The minimal distance from the starting point to the release point for validating the pan

    • Optional minVelocity: number

      The pan while be a swipe: the minimal minVelocity to reach for validating the swipe. In pixels per second.

    • Optional accInit: A

    Returns PartialTouchSrcTgtTypedBinder<A>

  • Creates a binding that uses a vertical pan (or swipe if minVelocity is used) interaction (one-touch).

    Type Parameters

    • A

    Parameters

    • pxTolerance: number

      The tolerance rate in pixels accepted while executing the pan

    • cancellable: boolean

      Whether the DnD can be cancelled by interacting with a dwell-and-spring element.

    • Optional minLength: number

      The minimal distance from the starting point to the release point for validating the pan

    • Optional minVelocity: number

      The pan while be a swipe: the minimal minVelocity to reach for validating the swipe. In pixels per second.

    • Optional accInit: A

    Returns PartialTouchSrcTgtTypedBinder<A>

  • Creates a binding that uses a text interaction. This binder takes as argument a timeout value: using this text writing interaction, a user can write a sequence of letters and then stops for more than x milliseconds (x is the value of timeout). After this delay the binding executes the command. This is a mainstream optimisation that many text processing tools implement to limit the number of editing actions.

    Type Parameters

    • A

    Parameters

    • Optional timeout: number

      The timeout in milliseconds after which the interaction stops and the command produced.

    • Optional accInit: A

    Returns PartialTextInputTypedBinder<A>

  • Creates a binding that uses a bottom pan interaction (two-touch).

    Type Parameters

    • A

    Parameters

    • pxTolerance: number

      The tolerance rate in pixels accepted while executing the pan

    • Optional minLength: number

      The minimal distance from the starting point to the release point for validating the pan

    • Optional minVelocity: number

      The pan while be a swipe: the minimal minVelocity to reach for validating the swipe. In pixels per second.

    • Optional accInit: A

    Returns PartialTwoPanTypedBinder<A>

  • Creates a binding that uses a vertical pan interaction (two-touch).

    Type Parameters

    • A

    Parameters

    • pxTolerance: number

      The tolerance rate in pixels accepted while executing the pan

    • Optional minLength: number

      The minimal distance from the starting point to the release point for validating the pan

    • Optional minVelocity: number

      The pan while be a swipe: the minimal minVelocity to reach for validating the swipe. In pixels per second.

    • Optional accInit: A

    Returns PartialTwoPanTypedBinder<A>

  • Creates a binding that uses a left pan interaction (two-touch).

    Type Parameters

    • A

    Parameters

    • pxTolerance: number

      The tolerance rate in pixels accepted while executing the pan

    • Optional minLength: number

      The minimal distance from the starting point to the release point for validating the pan

    • Optional minVelocity: number

      The pan while be a swipe: the minimal minVelocity to reach for validating the swipe. In pixels per second.

    • Optional accInit: A

    Returns PartialTwoPanTypedBinder<A>

  • Creates a binding that uses a right pan interaction (two-touch).

    Type Parameters

    • A

    Parameters

    • pxTolerance: number

      The tolerance rate in pixels accepted while executing the pan

    • Optional minLength: number

      The minimal distance from the starting point to the release point for validating the pan

    • Optional minVelocity: number

      The pan while be a swipe: the minimal minVelocity to reach for validating the swipe. In pixels per second.

    • Optional accInit: A

    Returns PartialTwoPanTypedBinder<A>

  • Creates a binding that uses a top pan interaction (two-touch).

    Type Parameters

    • A

    Parameters

    • pxTolerance: number

      The tolerance rate in pixels accepted while executing the pan

    • Optional minLength: number

      The minimal distance from the starting point to the release point for validating the pan

    • Optional minVelocity: number

      The pan while be a swipe: the minimal minVelocity to reach for validating the swipe. In pixels per second.

    • Optional accInit: A

    Returns PartialTwoPanTypedBinder<A>

  • Creates a binding that uses a vertical pan interaction (two-touch).

    Type Parameters

    • A

    Parameters

    • pxTolerance: number

      The tolerance rate in pixels accepted while executing the pan

    • Optional minLength: number

      The minimal distance from the starting point to the release point for validating the pan

    • Optional minVelocity: number

      The pan while be a swipe: the minimal minVelocity to reach for validating the swipe. In pixels per second.

    • Optional accInit: A

    Returns PartialTwoPanTypedBinder<A>

Generated using TypeDoc