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

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

// Automatically generated - do not modify!

@file:JsModule("cesium")

@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. * * const 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 */ 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() }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy