OptionalcacheWhether to cache geometry data in the browser if possible
OptionalfatSettings related to fat wireframes (currently used in selection visualization)
Optionalcache?: booleanWhether the fat wireframes should be cached, so they load faster the second time, default value is true
Optionalenabled?: booleanWhether fat wireframes are enabled at all, default value is true
Optionalpregenerate?: booleanWhether fat wireframes should be generated immediately when loading a model, this makes showing them later on faster, but takes a little more time to load the models, default value is false
OptionalhideWhether objects should be made invisible when clicking with the middle mouse button
OptionalnavigationCamera navigation mode. Defaults to default. Use a predefined mode or a custom name from navigationModes.
OptionalnavigationCustom named navigation configurations available through navigationMode and startNavigationMode.
OptionalnearPerspective near plane in meters. Defaults to "auto".
OptionalpreWhether triangle data should be pre-loaded. This speeds up the initial use of the laser measurement tools, and also temporarily circumvents a Chrome 149 introduced crash
OptionalrealtimeSettings that apply to realtime rendering
Optionalculling?: booleanWhether culling should be enabled. Determines which objecs do not have to be rendered by the GPU and can make a big difference in performance on larger models. The actual culling calculations are either done on the CPU or GPU (using WebGL or WebGPU) based on the available technologies
OptionalrenderingRendering settings
Optionalantialias?: booleanWhether to apply anti aliasing
OptionalrightFunction to call when the right-mouse is clicked, or more specifically when the contextmenu event is triggered.
OptionalshowWhether to show the "LOADER" div whenever a model is loading, this div can be styled by using the .viewer3d.loader CSS class
OptionalspatialSetting for spatial querying
OptionalimplementationPreferences?: SpatialQueryingPreference[]An array of SpatialQueryingPreference. This array sets a list of preferences, the first one having the highest priority. Based on actual availability of technology an implementation is chosen by the viewer. The default for this setting is an array with only the CPU setting defined
OptionaltechnologyWhich technologies are allowed to be used. The default setting only allows WebGL2, which is also a required technology for the viewer to work at all.
OptionalsharedArrayBuffer?: booleanSharedArrayBuffer minimizes memory copying between threads by allowing controlled shared access. SharedArrayBuffer is only available in a secure context and in cross-origin isolated environments. See also: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/SharedArrayBuffer
Optionaltransferable?: booleanWhen SharedArrayBuffer is not available/allowed, "transferable" is a good alternative, it also avoids copying data between threads, but does so by transferring ownership. Security restrictions for transferable are less, so chances of it being available are higher.
OptionalwebGl2?: booleanWebGL2 is always required for rendering
OptionalwebGpu?: booleanWebGPU is currently not used for rendering, but can significantly speed up culling and a few other functionalities
OptionalwebWorker?: booleanUsing web workers offloads work from the main thread and generally results in a much smoother viewing experience. WebWorkers are usually available, but there can be issues with build systems such as Vite/Webpack, which can often be a reason to disable web workers. The above issues can usually not be detected during runtime, therefore explicitly disabling web workers in those cases is needed.
OptionaltileTileSets
The settings available for the 3D Viewer