Class GeneralTwoTouchDataImpl

The interaction data that stores all information related to two-touch based user interactions.

Hierarchy

Implements

Constructors

Properties

panData: LineTouchData
rotateData: RotationTouchData
scaleData: ScaleTouchData

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

  • 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