@inweb/viewer-visualize
    Preparing search index...

    Interface ICommandService

    Defines the command executer service interface.

    interface ICommandService {
        executeCommand(id: string, ...args: any[]): any;
    }

    Hierarchy (View Summary)

    Index

    Methods

    • Executes the command denoted by the given command ID. If the command is not found, tries to set active dragger with the specified name.

      Parameters

      • id: string

        Command ID or dragger name.

      • ...args: any[]

        Parameters passed to the command handler function.

      Returns any

      Returns the result of the command handler function or new active dragger instance. Returns undefined if neither the command nor the dragger exists.