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

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

The newest version!
// Automatically generated - do not modify!

@file:JsModule("cesium")

@file:Suppress(
    "EXTERNAL_CLASS_CONSTRUCTOR_PROPERTY_PARAMETER",
)

package cesium

/**
 * The Timeline is a widget for displaying and controlling the current scene time.
 * @see Online Documentation
 *
 * @constructor
 * @property [container] The parent HTML container node for this widget.
 * @param [clock] The clock to use.
 * @see Online Documentation
 */
external class Timeline(
    var container: org.w3c.dom.Element,
    clock: Clock,
) {
    /**
     * @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()

    /**
     * Sets the view to the provided times.
     * @param [startTime] The start time.
     * @param [stopTime] The stop time.
     * @see Online Documentation
     */
    fun zoomTo(
        startTime: JulianDate,
        stopTime: JulianDate,
    )

    /**
     * Resizes the widget to match the container size.
     * @see Online Documentation
     */
    fun resize()
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy