All Downloads are FREE. Search and download functionalities are using the official Maven repository.

main.cesium.HomeButton.kt Maven / Gradle / Ivy

There is a newer version: 1.90.0-10
Show newest version
// Automatically generated - do not modify!

@file:Suppress(
    "EXTERNAL_CLASS_CONSTRUCTOR_PROPERTY_PARAMETER",
)

package cesium

/**
 * A single button widget for returning to the default camera view of the current scene.
 * @see Online Documentation
 *
 * @constructor
 * @property [container] The DOM element that will contain the widget.
 * @param [scene] The Scene instance to use.
 * @param [duration] The time, in seconds, it takes to complete the camera flight home.
 * @see Online Documentation
 */
@JsName("\$cesium__HomeButton")
external class HomeButton(
    var container: org.w3c.dom.Element,
    scene: Scene,
    duration: Double? = definedExternally,
) {
    /**
     * Gets the view model.
     * @see Online Documentation
     */
    var viewModel: HomeButtonViewModel

    /**
     * @return true if the object has been destroyed, false otherwise.
     * @see Online Documentation
     */
    fun isDestroyed(): Boolean

    /**
     * Destroys the widget.  Should be called if permanently
     * removing the widget from layout.
     * @see Online Documentation
     */
    fun destroy()
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy