Documentation - v20.0.0-dev
    Preparing search index...

    Changes the style of the lines of the given meshes (see SceneMesh.lineStyle): ribbons of a width and dashes, or 1 pixel wide with null. Undoable; a drag updates it.

    Hierarchy

    Index

    Constructors

    • Parameters

      • viewer: Viewer

        The viewer of the meshes.

      • uuids: Iterable<string>

        The meshes changed.

      • style: LineStyle | null

        The style of their lines; null: 1 pixel wide.

      Returns SetObjectsLineStyleCommand

    Properties

    _objects: SceneObject[]
    _state: PartialState<TState>
    isUndoable: boolean = true

    Indicates whether the command is undoable and redoable

    isUpdatable: boolean = true

    Indicated whether the command can be updated

    name: "SetObjectsLineStyleCommand" = 'SetObjectsLineStyleCommand'

    Name of the command

    viewer: Viewer

    Accessors

    • get hasBeenExecuted(): boolean

      Returns boolean

    Methods

    • Cleans the command footprint.

      Returns Promise<void>

    • Actions to execute during the execute method

      Returns Promise<Partial<MeshState & RestoreState>>

    • Actions to execute during the undo method

      Returns Promise<void>

    • Update the current state of the command when the update method is called

      Parameters

      Returns 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

      • ...params: (LineStyle | null)[]

        The new values of the command's state

      Returns Promise<void>