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

    Class SetObjectTransformCommand

    Set the transform of an object, it replaces the matrix of the object, not multiply it

    Hierarchy

    • ObjectStateCommand<ObjectState, Matrix4>
      • SetObjectTransformCommand
    Index

    Constructors

    • Parameters

      • viewer: Viewer
      • uuid: string
      • matrix: Matrix4

      Returns SetObjectTransformCommand

    Properties

    isUndoable: boolean = true

    Indicates whether the command is undoable and redoable

    isUpdatable: boolean = true

    Indicated whether the command can be updated

    name: "SetObjectTransformCommand" = 'SetObjectTransformCommand'

    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

      • newMatrix: Matrix4

      Returns Promise<void>