Class TwoPanDataImpl

The user interaction data for two-touch pan interactions

Hierarchy

Implements

Constructors

Properties

Accessors

  • get diffClientX(): number
  • The translation vector between the x client position of the source and the y client position of the target.

    Returns number

  • get diffClientY(): number
  • The translation vector between the y client position of the source and the y client position of the target.

    Returns number

  • get diffPageX(): number
  • The translation vector between the x page position of the source and the x page position of the target.

    Returns number

  • get diffPageY(): number
  • The translation vector between the y page position of the source and the y page position of the target.

    Returns number

  • get diffScreenX(): number
  • The translation vector between the x screen position of the source and the x screen position of the target.

    Returns number

  • get diffScreenY(): number
  • The translation vector between the y screen position of the source and the y screen position of the target.

    Returns number

Methods

  • Returns true if the gesture (all the lines) is going to the left.

    Parameters

    • pxTolerance: number

      The pixel tolerance for considering the line horizontal.

    Returns boolean

  • Returns true if the gesture (all the lines) is going to the top.

    Parameters

    • pxTolerance: number

      The pixel tolerance for considering the line vertical.

    Returns boolean

  • The velocity of the move, in pixels per millisecond. For multi-touch, the velocity is the mean of all the touch velocities.

    Parameters

    • direction: "all" | "horiz" | "vert"

      The direciton to consider.

    Returns number

Generated using TypeDoc