Appearance
KBE3D / KBCore / Cesium / HomeButton
类: HomeButton
A single button widget for returning to the default camera view of the current scene.
参数
The DOM element or ID that will contain the widget.
参数
The Scene instance to use.
参数
The time, in seconds, it takes to complete the camera flight home.
属性
container
container:
Element
Gets the parent container.
viewModel
viewModel:
HomeButtonViewModel
Gets the view model.
方法
isDestroyed()
isDestroyed():
boolean
返回
boolean
true if the object has been destroyed, false otherwise.
destroy()
destroy():
void
Destroys the widget. Should be called if permanently removing the widget from layout.
返回
void
构造函数
构造函数
new HomeButton(
container:string|Element,scene:Scene,duration?:number):HomeButton
参数
container
string | Element
scene
duration?
number
返回
HomeButton
