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: () => voidMethods
bail()
bail(): thisbailToMark()
bailToMark(id: string): thisParameters
| Name | Description |
|---|---|
| |
Returns
thisbatch()
batch(fn: () => void, opts?: TLHistoryBatchOptions): thisParameters
| Name | Description |
|---|---|
| |
|
Returns
thisclear()
clear(): voidgetNumRedos()
getNumRedos(): numbergetNumUndos()
getNumUndos(): numberredo()
redo(): thissquashToMark()
squashToMark(id: string): thisParameters
| Name | Description |
|---|---|
| |
Returns
thisundo()
undo(): thisPrev
HandleSnapsNext
Mat