Skip to main content

Class: FontAlgorithmCommand

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 FontAlgorithmCommand(id, algorithm): FontAlgorithmCommand

Parameters​

id​

string

algorithm​

TextAlgorithm

Returns​

FontAlgorithmCommand

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