Documentation - v20.0.0-dev
Preparing search index...
@stereograph/teiaviewer
CommandHistory
Class CommandHistory
Executes the command and keep track of the history of played commands.
Index
Constructors
constructor
Accessors
can
Redo
can
Undo
last
Command
redo
History
undo
History
Methods
clear
History
clear
Redo
History
clear
Undo
History
redo
Last
Command
undo
Last
Command
Constructors
constructor
new
CommandHistory
(
_viewer
:
Viewer
)
:
CommandHistory
Parameters
_viewer
:
Viewer
Returns
CommandHistory
Accessors
can
Redo
get
canRedo
()
:
boolean
Returns
boolean
can
Undo
get
canUndo
()
:
boolean
Returns
boolean
last
Command
get
lastCommand
()
:
Command
<
unknown
>
|
undefined
Returns
Command
<
unknown
>
|
undefined
redo
History
get
redoHistory
()
:
readonly
Command
<
unknown
>
[]
Returns
readonly
Command
<
unknown
>
[]
undo
History
get
undoHistory
()
:
readonly
Command
<
unknown
>
[]
Returns
readonly
Command
<
unknown
>
[]
Methods
clear
History
clearHistory
()
:
Promise
<
void
>
Returns
Promise
<
void
>
clear
Redo
History
clearRedoHistory
()
:
Promise
<
void
>
Returns
Promise
<
void
>
clear
Undo
History
clearUndoHistory
()
:
Promise
<
void
>
Returns
Promise
<
void
>
redo
Last
Command
redoLastCommand
(
options
?:
ExecuteCommandOptions
)
:
Promise
<
unknown
>
Parameters
options
:
ExecuteCommandOptions
= {}
Returns
Promise
<
unknown
>
undo
Last
Command
undoLastCommand
(
options
?:
UndoCommandOptions
)
:
Promise
<
void
|
undefined
>
Parameters
options
:
UndoCommandOptions
= {}
Returns
Promise
<
void
|
undefined
>
Settings
Member Visibility
Protected
Inherited
Theme
OS
Light
Dark
On This Page
Constructors
constructor
Accessors
can
Redo
can
Undo
last
Command
redo
History
undo
History
Methods
clear
History
clear
Redo
History
clear
Undo
History
redo
Last
Command
undo
Last
Command
Documentation - v20.0.0-dev
Loading...
Executes the command and keep track of the history of played commands.