import ContextEditionState from 'waves-ui-piper/src/states/context-edition-state.js'ContextEditionState
Extends:
A state to interact directly with layers time contexts.
Constructor Summary
| Public Constructor | ||
| public |
constructor(timeline: *) |
|
Member Summary
| Public Members | ||
| public |
currentLayer: * |
|
| public |
|
|
| public |
|
|
Method Summary
| Public Methods | ||
| public |
handleEvent(e: *) |
|
| public |
onMouseDown(e: *) |
|
| public |
onMouseMove(e: *) |
|
| public |
onMouseUp(e: *) |
|
Inherited Summary
| From class BaseState | ||
| public get |
Returns all registered layers. |
|
| public get |
Returns timeline tracks collection. |
|
| public |
A reference to the timeline on which the state should be installed. |
|
| 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: *) source
Returns timeline tracks collection.
Override:
BaseState#constructorParams:
| Name | Type | Attribute | Description |
| timeline | * |
Public Methods
public handleEvent(e: *) source
Main interface method to override when creating a new State. Handle event
from mouse or keyboard, should define behavior according to the event
(aka. mousedown, mouseup, ...).
Override:
BaseState#handleEventParams:
| Name | Type | Attribute | Description |
| e | * |
public onMouseDown(e: *) source
Params:
| Name | Type | Attribute | Description |
| e | * |
public onMouseMove(e: *) source
Params:
| Name | Type | Attribute | Description |
| e | * |
public onMouseUp(e: *) source
Params:
| Name | Type | Attribute | Description |
| e | * |