Skip to content

Action

Action is a collection of transactions, which can be undone/redone as a whole.

Constructors

new Action()

new Action(name): Action

Parameters

name: string

Returns

Action

Source

core/transform.ts:54

Properties

name

name: string

Source

core/transform.ts:51


transactions

transactions: Transaction[]

Source

core/transform.ts:52

Methods

apply()

apply(transform): void

Parameters

transform: Transform

Returns

void

Source

core/transform.ts:63


push()

push(tx): void

Parameters

tx: Transaction

Returns

void

Source

core/transform.ts:59


unapply()

unapply(transform): void

Parameters

transform: Transform

Returns

void

Source

core/transform.ts:70