BaseState
State
instances are used to define the application logic by precising
specific user interaction cases, and how they impact the overal temporal
representation. The abstractions extending this base class should be
considered as the main interface between the visualization and the
application logic. All provided states should be seen as simple examples for
rapid prototyping,
States manage interactions like zooming, browsing, or editing the timeline. Customized states should extend this BaseState.
Constructor Summary
Public Constructor | ||
public |
constructor(timeline: *): TrackCollection Returns timeline tracks collection. |
Member Summary
Public Members | ||
public get |
Returns all registered layers. |
|
public |
A reference to the timeline on which the state should be installed. |
|
public get |
Returns timeline tracks collection. |
Method Summary
Public Methods | ||
public |
enter() Called when the timeline is entering the state. |
|
public |
exit() Called when the timeline is leaving the state. |
|
public |
handleEvent(e: WaveEvent, hitLayers: Array) Main interface method to override when creating a new |
Public Constructors
public constructor(timeline: *): TrackCollection source
Returns timeline tracks collection.
Params:
Name | Type | Attribute | Description |
timeline | * |