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

    Class SetObjectsVisibilityCommand

    Changes the visibility of the given objects.

    Hierarchy

    • ObjectStateCommand<ObjectState>
      • SetObjectsVisibilityCommand
    Index

    Constructors

    • Parameters

      • _viewer: Viewer
      • uuids: Iterable<string>
      • newVisibility: boolean

      Returns SetObjectsVisibilityCommand

    Properties

    isUndoable: boolean = true

    Indicates whether the command is undoable and redoable

    isUpdatable: boolean = false

    Indicated whether the command can be updated

    name: "SetObjectsVisibilityCommand" = 'SetObjectsVisibilityCommand'

    Name of the command

    Accessors

    • get hasBeenExecuted(): boolean

      Returns boolean

    Methods

    • Cleans the command footprint.

      Returns Promise<void>

    • Parameters

      • cmd: this

      Returns boolean

    • Toggle the command

      Parameters

      Returns Promise<void | Partial<ObjectState>>

    • Undo the command

      Parameters

      Returns Promise<void>

    • Update the current state of the command and push the new state in history

      Parameters

      • ...params: unknown[]

      Returns Promise<void>