@stereograph/teiaviewer - v17.8.0-dev
    Preparing search index...

    Class Command<TData>Abstract

    Base class for commands

    Type Parameters

    • TData = void

    Hierarchy (View Summary)

    Index

    Constructors

    Properties

    isUndoable: boolean

    Indicates whether the command is undoable and redoable

    isUpdatable: boolean = false

    Indicated whether the command can be updated

    name: string

    Name of the command

    Accessors

    • get hasBeenExecuted(): boolean

      Returns boolean

    Methods

    • Cleans the command footprint.

      Returns Promise<void>

    • Parameters

      • cmd: this

      Returns boolean

    • Updates the command with a latest version of the required parameters.

      The update method can be called during continuous user interactions (such as mousemove, mousedrag or color changes) where the command to fire can be updated accordingly to the user inputs instead of creating a new command for each value.

      Note

      • The attribute isUpdatable indicates if a command can be updated (otherwise an error is thrown)

      Parameters

      • ..._params: unknown[]

      Returns Promise<void>