SelectionIndicatorViewModel

external class SelectionIndicatorViewModel(var scene: Scene, var selectionIndicatorElement: Element, var container: Element)(source)

The view model for SelectionIndicator.

See also

Constructors

Link copied to clipboard
constructor(scene: Scene, selectionIndicatorElement: Element, container: Element)

Properties

Link copied to clipboard

Gets or sets the function for converting the world position of the object to the screen space position.

Link copied to clipboard

The DOM element that contains the widget.

Link copied to clipboard

Gets the visibility of the position indicator. This can be false even if an object is selected, when the selected object has no position.

Link copied to clipboard

Gets or sets the world position of the object for which to display the selection indicator.

Link copied to clipboard

The scene instance to use for screen-space coordinate conversion.

Link copied to clipboard

The element containing all elements that make up the selection indicator.

Link copied to clipboard

Gets or sets the visibility of the selection indicator.

Functions

Link copied to clipboard

Animate the indicator to draw attention to the selection.

Link copied to clipboard

Animate the indicator to release the selection.

Link copied to clipboard
fun update()

Updates the view of the selection indicator to match the position and content properties of the view model. This function should be called as part of the render loop.