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

    Class DownloadViewportScreenshotCommand

    Data command that computes an image based on the current viewport and start its download.

    Hierarchy (View Summary)

    • Command
      • DownloadViewportScreenshotCommand
    Index

    Constructors

    Properties

    isUndoable: boolean = false

    Indicates whether the command is undoable and redoable

    isUpdatable: boolean = false

    Indicated whether the command can be updated

    name: "DownloadViewportScreenshotCommand" = 'DownloadViewportScreenshotCommand'

    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>