new HomeButtonViewModel(scene, durationopt)
The view model for
HomeButton
.
Parameters:
Name | Type | Attributes | Description |
---|---|---|---|
scene |
Scene | The scene instance to use. | |
duration |
Number |
<optional> |
The duration of the camera flight in seconds. |
Members
command :Command
Gets the Command that is executed when the button is clicked.
Type:
duration :Number|undefined
Gets or sets the the duration of the camera flight in seconds.
A value of zero causes the camera to instantly switch to home view.
The duration will be computed based on the distance when undefined.
Type:
- Number | undefined
scene :Scene
Gets the scene to control.
Type:
tooltip :String
Gets or sets the tooltip. This property is observable.
Type:
- String