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

    Command that fetches the shapes and texts of a plan's layers for a twin, in glTF pages, then adds its FloorPlan to the FloorPlanPlugin's controller (see FloorPlanController.createFloorPlan). Undoable.

    Hierarchy (View Summary)

    Index

    Constructors

    Properties

    _object: FloorPlan | null = null
    isUndoable: boolean = true

    Indicates whether the command is undoable and redoable

    isUpdatable: boolean = false

    Indicated whether the command can be updated

    name: "AddFloorPlanCommand" = 'AddFloorPlanCommand'

    Name of the command

    viewer: Viewer

    Accessors

    • get hasBeenExecuted(): boolean

      Returns boolean

    Methods

    • Releases the object of an undone addition for good, its engine objects removed.

      Returns Promise<void>

    • Actions to execute during the execute method

      Returns Promise<FloorPlan>

    • Actions to execute during the undo method

      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

      Parameters

      • ..._params: unknown[]

      Returns Promise<void>