main.cesium.viewerPerformanceWatchdogMixin.kt Maven / Gradle / Ivy
// Automatically generated - do not modify!
package cesium
/**
* A mixin which adds the [PerformanceWatchdog] widget to the [Viewer] widget.
* Rather than being called directly, this function is normally passed as
* a parameter to [Viewer.extend], as shown in the example below.
* ```
* var viewer = new Viewer('cesiumContainer');
* viewer.extend(viewerPerformanceWatchdogMixin, {
* lowFrameRateMessage : 'Why is this going so slowly?'
* });
* ```
* @param [viewer] The viewer instance.
* @param [options] An object with properties.
* @see Online Documentation
*/
@JsName("\$cesium__viewerPerformanceWatchdogMixin")
external fun viewerPerformanceWatchdogMixin(
viewer: Viewer,
options: ViewerPerformanceWatchdogMixinOptions? = definedExternally,
)
/**
* @property [lowFrameRateMessage] The
* message to display when a low frame rate is detected. The message is interpeted as HTML, so make sure
* it comes from a trusted source so that your application is not vulnerable to cross-site scripting attacks.
* Default value - `'This application appears to be performing poorly on your system. Please try using a different web browser or updating your video drivers.'`
*/
@JsName("\$cesium__ViewerPerformanceWatchdogMixinOptions")
external interface ViewerPerformanceWatchdogMixinOptions {
var lowFrameRateMessage: String?
}