new HomeButton(container, scene, duration)
A single button widget used to return the default camera view of the current scene.
| Name | Type | Description |
|---|---|---|
container |
Element | String |
The DOM element or ID that contains the widget. |
scene |
Scene |
The scenario instance to be used. |
duration |
Number |
optional
The time (in seconds) required to complete the camera's return flight. |
Members
-
containerElement
-
Retrieve the parent container.
-
viewModel
-
Obtain the view model.
Methods
-
destroy()
-
Destruction of components. If you want to permanently delete a widget from the layout, you should call this command.
-
isDestroyed(){Boolean}
-
Returns:
Type Description Boolean If the object has been destroyed, it is true; otherwise, it is false.