Skip to main content

Class: ResizeCommand

Updates the width and height of an element to reflect a new size. Negative values will be converted to their absolute value. ie. -10 will become 10.

Extends​

Constructors​

Constructor​

new ResizeCommand(id, width, height): ResizeCommand

Parameters​

id​

string

width​

number

height​

number

Returns​

ResizeCommand

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