Home Manual Reference Source Repository
public class | source

EditionState

Extends:

BaseState → EditionState

A state to edit shapes in the more general way. Interact only with selected shapes.

Constructor Summary

Public Constructor
public

constructor(timeline: *)

Member Summary

Public Members
public
public
public

Method Summary

Public Methods
public

enter()

public

exit()

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 State.

Public Constructors

public constructor(timeline: *) source

Returns timeline tracks collection.

Override:

BaseState#constructor

Params:

NameTypeAttributeDescription
timeline *

Public Members

public currentEditedLayer: * source

public currentTarget: * source

public mouseDown: boolean source

Public Methods

public enter() source

Called when the timeline is entering the state.

Override:

BaseState#enter

public exit() source

Called when the timeline is leaving the state.

Override:

BaseState#exit

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#handleEvent

Params:

NameTypeAttributeDescription
e *

public onMouseDown(e: *) source

Params:

NameTypeAttributeDescription
e *

public onMouseMove(e: *) source

Params:

NameTypeAttributeDescription
e *

public onMouseUp(e: *) source

Params:

NameTypeAttributeDescription
e *