Viewer configuration.
The Viewer's Camera. This is also found on Scene.camera.
The Viewer's CameraControl, which controls the Scene's Camera with mouse, touch and keyboard input.
The Viewer's CameraFlightAnimation, which is used to fly the Scene's Camera to given targets.
The Viewer's ID.
The viewer's locale service.
This is configured via the Viewer's constructor.
By default, this service will be an instance of LocaleService, which will just return null translations for all given strings and phrases.
Metadata about the Scene and the models and objects within it.
The Viewer's Scene.
Enter snapshot mode.
Switches rendering to a hidden snapshot canvas.
Exit snapshot mode using Viewer.endSnapshot.
Destroys this Viewer.
Exits snapshot mode.
Switches rendering back to the main canvas.
Logs an error message to the JavaScript developer console, prefixed with the ID of this Viewer.
The error message
Fires an event at this Viewer.
Event name
Event parameters
Gets a snapshot of this Viewer's Scene as a Base64-encoded image.
const imageData = viewer.getSnapshot({
width: 500,
height: 500,
format: "png"
});
String-encoded image data URI.
Logs a message to the JavaScript developer console, prefixed with the ID of this Viewer.
The message
Subscribes to an event fired at this Viewer.
The event
Callback fired on the event
Generated using TypeDoc
The 3D Viewer at the heart of the xeokit SDK.