Type Definitions
Version 8 preview
This page documents a preview of the Viewer SDK v8. APIs and content can still change before the final release.
ViewerConfig
Initial settings object passed to the Viewer3D constructor.
Properties
| startOnInitialize boolean | Set this to false if you want to defer the run to a later time by calling run() explicitly. |
| theme string | Set this to ‘light-theme’ if you want to use the light ui theme. Themes can be changed during execution by calling setTheme() and passing the theme’s name. |
| localStoragePrefix string | The local storage prefix for viewer. |
| childViewer boolean | Marks a viewer that is not the primary one of the page. |
| gpuWarningDetectionModes Array.<string> | GPU reasons that trigger the performance warning and FPS adjustment. Possible values: 'integrated-gpu', 'software-renderer'. |
| profileSettings | settings object to override the default viewer settings: ProfileSettings.Default. |
| extensions Array.<string> | Ids of extensions that need to be loaded always. Refer to Autodesk.Viewing.Extensions. |
| canvasConfig object | Allows to modify the default user input interactions with the viewer. For example, one could change the left-mouse click to isolate a node instead of selecting it. |
| navToolsConfig | Used to customize the parameters of the navigation tools on initialization. |