Skip to main content

Class: FontAlignmentCommand

An abstract base class from which to extend all potential element commands. These commands follow the command design pattern in software development. To learn more about this pattern take a look at the following link.

https://sourcemaking.com/design_patterns/command

Extends​

Constructors​

Constructor​

new FontAlignmentCommand(id, align): FontAlignmentCommand

Parameters​

id​

string

align​

"center" | "left" | "right"

Returns​

FontAlignmentCommand

Overrides​

CanvasCommand.constructor

Properties​

sequenceId?​

optional sequenceId?: string

Inherited from​

CanvasCommand.sequenceId

Methods​

apply()​

apply(state): object

Parameters​

state​

LayoutsState

Returns​

object

layouts​

layouts: object

Index Signature​

[key: string]: LayoutState

serializableWorkflow​

serializableWorkflow: SerializableWorkflow

Overrides​

CanvasCommand.apply


overrideOldState()​

overrideOldState(state): void

Parameters​

state​

LayoutsState

Returns​

void

Inherited from​

CanvasCommand.overrideOldState


undo()​

undo(): LayoutsState

Returns​

LayoutsState

Inherited from​

CanvasCommand.undo