text
stringlengths
0
8.81k
Type
Default
Description
lowFrameRateMessage
string
'This application appears to be performing poorly on your system. Please try using a different web browser or updating your video drivers.'
optional
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.
Throws:
DeveloperError
: viewer is required.
Example:
const viewer = new Cesium.Viewer('cesiumContainer');
viewer.extend(Cesium.viewerPerformanceWatchdogMixin, {
lowFrameRateMessage : 'Why is this going so <em>slowly</em>?'
});
viewerVoxelInspectorMixin(viewer)
widgets/Source/Viewer/viewerVoxelInspectorMixin.js 16
A mixin which adds the VoxelInspector 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.
Name
Type
Description
viewer
Viewer
The viewer instance.
Example:
var viewer = new Cesium.Viewer('cesiumContainer');
viewer.extend(Cesium.viewerVoxelInspectorMixin);
writeTextToCanvas(text, options) → HTMLCanvasElement|undefined
engine/Source/Core/writeTextToCanvas.js 100
Writes the given text into a new canvas. The canvas will be sized to fit the text.
If text is blank, returns undefined.