Provides selection behaviour for the viewer Supports multi-selection as long as all objects are from the same vim.

Hierarchy

  • Selection

Constructors

Accessors

Methods

  • Adds focus highlight to a single object. Pass undefined to remove the highlight.

    Parameters

    • object: IObject

      The object to focus on, or undefined to remove the highlight.

    Returns void

  • Retrieves the bounding box of the selection. Returns undefined if there's no selection.

    Returns

    The bounding box of the selection or undefined if no selection exists.

    Parameters

    • Optional target: Box3 = ...

      Optional parameter to specify a box to use for the result.

    Returns Box3

  • Returns true if the given object is currently selected.

    Returns

    True if the object is selected, false otherwise.

    Parameters

    • object: IObject

      The object to check for selection.

    Returns boolean

  • Selects the given objects and unselects all other objects. Pass null, undefined, or an empty array as argument to clear selection.

    Parameters

    • object: IObject | IObject[]

      The object or array of objects to select, or null, undefined, or an empty array to clear the selection.

    Returns void

  • Toggles the selection state of the given objects:

    • Adds unselected elements of the given objects to the selection.
    • Removes selected elements of the given objects from the selection.

    Parameters

    • Rest ...objects: IObject[]

      The objects to toggle selection for.

    Returns void

Generated using TypeDoc