The ViewerBackgroundAPI provides a method to clear the background of a viewer.
This can be useful when restoring a snapshot that had a background image set (e.g. from an XR environment)
and you want to remove it to have a transparent background again.
Quick Start
Example
// Get the current viewerconstviewer = webvis.getViewer();// Clear the background and make it fully transparentviewer.clearBackground();
ViewerBackgroundAPI
Overview
The ViewerBackgroundAPI provides a method to clear the background of a viewer. This can be useful when restoring a snapshot that had a background image set (e.g. from an XR environment) and you want to remove it to have a transparent background again.
Quick Start
Example