Field Notes
Field Notes home
Docs
Playground
Preparing search index...
@fieldnotes/core
HistoryStack
Class HistoryStack
Index
Constructors
constructor
Accessors
can
Redo
can
Undo
redo
Count
undo
Count
Methods
clear
load
Snapshot
on
Change
push
redo
snapshot
suspend
Notifications
undo
Constructors
constructor
new
HistoryStack
(
options
?:
HistoryStackOptions
)
:
HistoryStack
Parameters
options
:
HistoryStackOptions
= {}
Returns
HistoryStack
Accessors
can
Redo
get
canRedo
()
:
boolean
Returns
boolean
can
Undo
get
canUndo
()
:
boolean
Returns
boolean
redo
Count
get
redoCount
()
:
number
Returns
number
undo
Count
get
undoCount
()
:
number
Returns
number
Methods
clear
clear
()
:
void
Returns
void
load
Snapshot
loadSnapshot
(
snapshot
:
HistorySnapshot
)
:
void
Parameters
snapshot
:
HistorySnapshot
Returns
void
on
Change
onChange
(
listener
:
()
=>
void
)
:
()
=>
void
Parameters
listener
:
()
=>
void
Returns
()
=>
void
push
push
(
command
:
Command
)
:
void
Parameters
command
:
Command
Returns
void
redo
redo
(
store
:
ElementStore
)
:
boolean
Parameters
store
:
ElementStore
Returns
boolean
snapshot
snapshot
()
:
HistorySnapshot
Returns
HistorySnapshot
suspend
Notifications
suspendNotifications
()
:
{
discard
()
:
void
;
resume
()
:
void
}
Returns
{
discard
()
:
void
;
resume
()
:
void
}
undo
undo
(
store
:
ElementStore
)
:
boolean
Parameters
store
:
ElementStore
Returns
boolean
Settings
Member Visibility
Protected
Inherited
External
Theme
OS
Light
Dark
On This Page
Constructors
constructor
Accessors
can
Redo
can
Undo
redo
Count
undo
Count
Methods
clear
load
Snapshot
on
Change
push
redo
snapshot
suspend
Notifications
undo
Field Notes home
Docs
Playground
Field Notes
Loading...