main.cesium.HomeButtonViewModel.kt Maven / Gradle / Ivy
// Automatically generated - do not modify!
@file:Suppress(
"EXTERNAL_CLASS_CONSTRUCTOR_PROPERTY_PARAMETER",
)
package cesium
/**
* The view model for [HomeButton].
* @see Online Documentation
*
* @constructor
* @property [scene] The scene instance to use.
* @param [duration] The duration of the camera flight in seconds.
* @see Online Documentation
*/
@JsName("\$cesium__HomeButtonViewModel")
external class HomeButtonViewModel(
var scene: Scene,
duration: Double? = definedExternally,
) {
/**
* Gets or sets the tooltip. This property is observable.
* @see Online Documentation
*/
var tooltip: String
/**
* Gets the Command that is executed when the button is clicked.
* @see Online Documentation
*/
var command: Command
/**
* 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.
* @see Online Documentation
*/
var duration: Double?
}