new SceneModePickerViewModel(scene, duration)
View model of SceneModePicker.
| Name | Type | Default | Description |
|---|---|---|---|
scene |
Scene |
The scene to be transformed. |
|
duration |
Number | 2.0 |
optional
The duration of the scene transition animation, measured in seconds. |
Members
-
dropDownVisibleBoolean
-
Get or set whether the dropdown button is currently visible. This attribute is observable.
- Default Value: false
durationNumber
Get or set the duration (in seconds) of the scene mode transition animation. When the value is 0, the scene will immediately switch modes.
morphTo2DCommand
Obtain the instruction to convert to two-dimensional.
morphTo3DCommand
Obtain instructions for converting to 3D.
morphToColumbusViewCommand
Get instructions to convert to Columbus view.
sceneScene
Obtain the scene.
sceneModeSceneMode
Get or set the current scene mode. This attribute is observable.
selectedTooltipString
Get tooltips for the current activity. This attribute is observable.
toggleDropDownCommand
Get the command to switch dropdown boxes.
tooltip2DString
Get or set 2D tooltips. This attribute is observable.
- Default Value: '2D'
tooltip3DString
Get or set 3D tooltips. This attribute is observable.
- Default Value: '3D'
tooltipColumbusViewString
Get or set Columbus view tooltips. This attribute is observable.
- Default Value: 'Columbus View'
Methods
-
destroy()
-
Destroy the view model.
-
isDestroyed(){Boolean}
-
If this object is destroyed, return true; otherwise, return false.
Returns:
Type Description Boolean If the object has been destroyed, it is true; otherwise, it is false.