@stereograph/teiaviewer - v17.8.0-dev
Preparing search index...
viewer
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
Methods
clear
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
()
:
undefined
|
Command
<
unknown
>
Returns
undefined
|
Command
<
unknown
>
Methods
clear
History
clearHistory
()
:
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
<
undefined
|
void
>
Parameters
options
:
UndoCommandOptions
= {}
Returns
Promise
<
undefined
|
void
>
Settings
Member Visibility
Inherited
Theme
OS
Light
Dark
On This Page
Constructors
constructor
Accessors
can
Redo
can
Undo
last
Command
Methods
clear
History
redo
Last
Command
undo
Last
Command
@stereograph/teiaviewer - v17.8.0-dev
Loading...
Executes the command and keep track of the history of played commands.