Gesture
The Gesture class that all gestures inherit from.
Test:
Constructor Summary
Public Constructor | ||
public |
Constructor function for the Gesture class. |
Member Summary
Public Members | ||
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'). |
Method Summary
Public Methods | ||
public |
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() - Event hook for the move of a gesture |
|
public |
Set the id of the gesture to be called during an event |
|
public |
Set the type of the gesture to be called during an event |
|
public |
start() - Event hook for the start of a gesture |
|
public |
update(object: *) Updates internal properties with new ones, only if the properties exist. |
Public Constructors
Public Members
Public Methods
public end(inputs: Array): null | Object source
end() - Event hook for the move of a gesture
Params:
Name | Type | Attribute | Description |
inputs | Array | The array of Inputs on the screen |
public getId(): String source
Return the id of the event. If the id does not exist, return the type.
public move(inputs: Array, state: Object): null | Object source
move() - Event hook for the move of a gesture
public setId(id: String) source
Set the id of the gesture to be called during an event
Params:
Name | Type | Attribute | Description |
id | String | The unique identifier of the gesture being created. |
public setType(type: String) source
Set the type of the gesture to be called during an event
Params:
Name | Type | Attribute | Description |
type | String | The unique identifier of the gesture being created. |
public start(inputs: Array): null | Object source
start() - Event hook for the start of a gesture
Params:
Name | Type | Attribute | Description |
inputs | Array | The array of Inputs on the screen |
public update(object: *) source
Updates internal properties with new ones, only if the properties exist.
Params:
Name | Type | Attribute | Description |
object | * |