OptionalcacheWhether to cache geometry data in the browser if possible
OptionaldisableWhether to disable all the default key bindings
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
OptionalkeyPossible override the key bindings
OptionalautoRotate?: KeyBinding[]OptionalcolorObjectOpaque?: KeyBinding[]OptionalcolorObjectTransparent?: KeyBinding[]Optionalfocus?: KeyBinding[]OptionalhideObject?: KeyBinding[]Optionalorbit?: KeyBinding[]Optionalpan?: KeyBinding[]OptionalrightMouseClick?: (event: unknown, qid: Qid) => voidFunction to call when the right-mouse is clicked (or more specifically when the 'contextmenu' event is triggered)
Optionalsection?: KeyBinding[]OptionaloctWhether the octree should be enabled. This is currently used by (and required for) the rectangular selection tool
OptionalpickabilityWhether pickability should be enabled. Pickability is a state each object can have, it determines whether the objects is highlighted on hover and whether it can be selected by picking
OptionalrealtimeSettings that apply to realtime rendering
Optionalculling?: booleanWhether culling should be enabled. Moves some of the calculation from the GPU to the CPU
OptionalrenderingRendering settings
Optionalantialias?: booleanWhether to apply anti aliasing
OptionalshowWhether to show the "LOADER" div whenever a model is loading, this div can be styled by using the .viewer3d.loader CSS class
OptionaltileTileSets
OptionalwebWhether web workers should be used to aid rendering. When this is disabled (false), more work has to be done on the main thread, which could slow down realtime rendering When this is disabled, culling and rectangular selection are both not possible
The settings available for the 3D Viewer