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

    Class SetObjectsOpacityCommand

    Changes the opacity of the given objects.

    Hierarchy

    • ObjectStateCommand<MeshState, number>
      • SetObjectsOpacityCommand
    Index

    Constructors

    • Parameters

      • viewer: Viewer
      • uuids: Iterable<string>
      • newOpacity: number
      • applyToLines: boolean = true

        Whether to apply the new opacity to the mesh edges as well

      Returns SetObjectsOpacityCommand

      True
      

    Properties

    isUndoable: boolean = true

    Indicates whether the command is undoable and redoable

    isUpdatable: boolean = true

    Indicated whether the command can be updated

    name: "SetObjectsOpacityCommand" = 'SetObjectsOpacityCommand'

    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<MeshState>>

    • Undo the command

      Parameters

      Returns Promise<void>

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

      Parameters

      • newOpacity: number

      Returns Promise<void>