Skip to main content

Interface: Command

Defined in: src/diagram/history.ts:11

Represents an atomic change to the state tracked by the command history, which could be performed and reverted later if needed.

See

CommandHistory

Properties

PropertyModifierTypeDescription

title?

readonly

string | TranslatedText

Command title to display in the UI.

Methods

invoke()

invoke(): Command

Defined in: src/diagram/history.ts:21

Performs the command action.

Returns

Command

Inverse command to reverse changes done by the action.