Skip to content

KBE3D / KBCore / Cesium / HomeButtonViewModel

类: HomeButtonViewModel

The view model for HomeButton.

参数

The scene instance to use.

参数

The duration of the camera flight in seconds.

属性

tooltip

tooltip: string

Gets or sets the tooltip. This property is observable.


scene

scene: Scene

Gets the scene to control.


command

command: Command

Gets the Command that is executed when the button is clicked.


duration

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.

构造函数

构造函数

new HomeButtonViewModel(scene: Scene, duration?: number): HomeButtonViewModel

参数

scene

Scene

duration?

number

返回

HomeButtonViewModel

KBE3D @3.0.0 Copyright © 2024-present KBE3D