SelectionIndicatorViewModel

external class SelectionIndicatorViewModel(    var scene: <Error class: unknown class>,     var selectionIndicatorElement: <Error class: unknown class>,     var container: <Error class: unknown class>)(source)

The view model for SelectionIndicator.

See also

Constructors

Link copied to clipboard
constructor(scene: <Error class: unknown class>, selectionIndicatorElement: <Error class: unknown class>, container: <Error class: unknown class>)

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
var container: <Error class: unknown class>

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
var position: <Error class: unknown class>

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

Link copied to clipboard
var scene: <Error class: unknown class>

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

Link copied to clipboard
var selectionIndicatorElement: <Error class: unknown class>

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.