Home Reference Source Test
public class | source

Pinch

Extends:

GestureDistance → Pinch

An Pinch is defined as two inputs moving closer to each other. This gesture does not account for any start/end events to allow for the event to interact with the Pan and Pinch events.

Constructor Summary

Public Constructor
public

constructor(options: *)

Constructor function for the Pinch class.

Member Summary

Public Members
public

The type of the Gesture.

Inherited Summary

From class Gesture
public

The unique identifier for each gesture determined at bind time by the state object.

public

The generic string type of gesture ('expand'|'pan'|'pinch'|'rotate'|'swipe'|'tap').

public

end(inputs: Array): null | Object

end() - Event hook for the move of a gesture

public

Return the id of the event.

public

getType() - Returns the generic type of the gesture

public

move(inputs: Array, state: Object): null | Object

move() - Event hook for the move of a gesture

public

setId(id: String)

Set the id of the gesture to be called during an event

public

setType(type: String)

Set the type of the gesture to be called during an event

public

start(inputs: Array): null | Object

start() - Event hook for the start of a gesture

public

update(object: *)

Updates internal properties with new ones, only if the properties exist.

From class Distance
public

The minimum amount in pixels the inputs must move until it is fired.

public

The type of the Gesture.

public

move(inputs: Array, state: Object): Object | null

Event hook for the move of a gesture.

public

start(inputs: *)

start() - Event hook for the start of a gesture.

Public Constructors

public constructor(options: *) source

Constructor function for the Pinch class.

Override:

Distance#constructor

Params:

NameTypeAttributeDescription
options *

Public Members

public type: String source

The type of the Gesture.

Override:

Distance#type