Appearance
KBE3D / KBCore / Cesium / PerformanceWatchdog
类: PerformanceWatchdog
Monitors performance of the application and displays a message if poor performance is detected.
参数
Object with the following properties:
参数
The DOM element or ID that will contain the widget.
参数
The Scene for which to monitor performance.
参数
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.
属性
container
container:
Element
Gets the parent container.
viewModel
viewModel:
PerformanceWatchdogViewModel
Gets the view model.
方法
isDestroyed()
isDestroyed():
boolean
返回
boolean
true if the object has been destroyed, false otherwise.
destroy()
destroy():
void
Destroys the widget. Should be called if permanently removing the widget from layout.
返回
void
构造函数
构造函数
new PerformanceWatchdog(
options?: {container:string|Element;scene:Scene;lowFrameRateMessage?:string; }):PerformanceWatchdog
参数
options?
container
string | Element
scene
lowFrameRateMessage?
string
返回
PerformanceWatchdog
