main.cesium.SceneModePicker.kt Maven / Gradle / Ivy
// Automatically generated - do not modify!
@file:Suppress(
"EXTERNAL_CLASS_CONSTRUCTOR_PROPERTY_PARAMETER",
)
package cesium
/**
* The SceneModePicker is a single button widget for switching between scene modes;
* shown to the left in its expanded state. Programatic switching of scene modes will
* be automatically reflected in the widget as long as the specified Scene
* is used to perform the change.
* ```
* // In HTML head, include a link to the SceneModePicker.css stylesheet,
* // and in the body, include:
* // Note: This code assumes you already have a Scene instance.
*
* var sceneModePicker = new SceneModePicker('sceneModePickerContainer', 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 for the scene to transition.
* Default value - `2.0`
* @see Online Documentation
*/
@JsName("\$cesium__SceneModePicker")
external class SceneModePicker(
var container: org.w3c.dom.Element,
scene: Scene,
duration: Double? = definedExternally,
) {
/**
* Gets the view model.
* @see Online Documentation
*/
var viewModel: SceneModePickerViewModel
/**
* @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()
}