new SceneModePickerViewModel
The view model for SceneModePicker.
Parameters:
Name | Type | Argument | Default | Description |
---|---|---|---|---|
scene |
Scene | The Scene to morph | ||
duration |
Number |
<optional> |
2000 | The duration of scene morph animations, in milliseconds |
Source:
Members
-
dropDownVisible :Boolean
-
Gets or sets whether the button drop-down is currently visible. This property is observable.
- Default Value:
- false
-
duration :Number
-
Gets or sets the the duration of scene mode transition animations in milliseconds. A value of zero causes the scene to instantly change modes.
-
morphTo2D :Command
-
Gets the command to morph to 2D.
-
morphTo3D :Command
-
Gets the command to morph to 3D.
-
morphToColumbusView :Command
-
Gets the command to morph to Columbus View.
-
scene :Scene
-
Gets the scene
-
sceneMode :SceneMode
-
Gets or sets the current SceneMode. This property is observable.
-
selectedTooltip :String
-
Gets the currently active tooltip. This property is observable.
-
toggleDropDown :Command
-
Gets the command to toggle the drop down box.
-
tooltip2D :String
-
Gets or sets the 2D tooltip. This property is observable.
- Default Value:
- '2D'
-
tooltip3D :String
-
Gets or sets the 3D tooltip. This property is observable.
- Default Value:
- '3D'
-
tooltipColumbusView :String
-
Gets or sets the Columbus View tooltip. This property is observable.
- Default Value:
- 'Columbus View'
Methods
-
destroy
-
Destroys the view model.
-
isDestroyed
-
Returns:
Boolean true if the object has been destroyed, false otherwise.