HistoryManager
See source codeTable of contents
class HistoryManager<R extends UnknownRecord> {}
Constructor
Constructs a new instance of the HistoryManager
class
Parameters
Name | Description |
---|---|
|
|
Properties
dispose
readonly
readonly dispose: () => void
Methods
bail( )
bail(): this
bailToMark( )
bailToMark(id: string): this
Parameters
Name | Description |
---|---|
|
|
Returns
this
batch( )
batch(fn: () => void, opts?: TLHistoryBatchOptions): this
Parameters
Name | Description |
---|---|
|
|
|
Returns
this
clear( )
clear(): void
getNumRedos( )
getNumRedos(): number
getNumUndos( )
getNumUndos(): number
redo( )
redo(): this
squashToMark( )
squashToMark(id: string): this
Parameters
Name | Description |
---|---|
|
|
Returns
this
undo( )
undo(): this
Prev
HandleSnapsNext
Mat