new HomeButtonViewModel
The ViewModel for HomeButton.
Parameters:
Name | Type | Argument | Description |
---|---|---|---|
scene |
Scene | The Scene instance to use. | |
transitioner |
SceneTransitioner |
<optional> |
The SceneTransitioner instance to use. |
ellipsoid |
Ellipsoid |
<optional> |
The Scene's primary ellipsoid. |
Throws:
Scene
: scene is required.
Members
-
command :Command
-
The command for switching to home view.
-
ellipsoid :Ellipsoid
-
The primary ellipsoid for the scene.
-
scene :Scene
-
The scene.
-
tooltip :Observable
-
The current button tooltip.
-
transitioner :SceneTransitioner
-
The scene transitioner being used by the host application. If a transitioner is assigned, any running morphs will be completed when the home button is pressed.