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

    Class SetMapRotationCommand

    Hierarchy (View Summary)

    Index

    Constructors

    Properties

    isUndoable: true

    Indicates whether the command is undoable and redoable

    isUpdatable: boolean = true

    Indicated whether the command can be updated

    name: "SetMapRotationCommand" = 'SetMapRotationCommand'

    Name of the command

    oldRotation: number

    Accessors

    • get hasBeenExecuted(): boolean

      Returns boolean

    Methods

    • Cleans the command footprint.

      Returns Promise<void>

    • Actions to execute during the execute method

      Returns Promise<void>

    • Actions to execute during the undo method

      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

      • newRotation: number

      Returns Promise<void>