Ir al contenido

ModelTransactionCommand

Defined in: undo/ModelTransactionCommand.ts:9

A command that records model changed events during a transaction and reverses them on undo (GoJS-compatible: model edits within a transaction are undoable).

new ModelTransactionCommand(model, events, name?): ModelTransactionCommand

Defined in: undo/ModelTransactionCommand.ts:14

Model

ChangedEvent[]

string = 'transaction'

ModelTransactionCommand

describe(): string

Defined in: undo/ModelTransactionCommand.ts:135

Get a description of the command.

string

Command.describe


execute(): void

Defined in: undo/ModelTransactionCommand.ts:20

Execute the command.

void

Command.execute


undo(): void

Defined in: undo/ModelTransactionCommand.ts:28

Undo the command.

void

Command.undo