Executes the command denoted by the given command. If the command is not found, tries to set active dragger with the specified name.
Command ID or dragger name.
Viewer instance that wants to execute the command.
Parameters passed to the command handler function.
Returns the result of the command handler function or new active dragger instance. Returns
undefined
if neither the command nor the dragger exists.
Returns the specified command or undefined
when the command doesn't exists.
Command ID.
Returns a list of registered commands.
Binds a command ID to a handler function. Registering a command with an existing ID twice overrides the existing handler.
Unique ID for the command.
Command handler function.
Optional
description: ICommandDescriptionCommand description.
Optional
thisArg: anyThe this
context used when invoking the handler function.
Registers an alias for a command.
Unique ID for the command.
Command alias string.
Defines the viewer commands registry interface.