WebViewerConfig
-
class
WebViewerConfig() Index
Properties
boundingPreviewModebuffercalculateDefaultViewAxescontainercontainerIddefaultMeshLeveldefaultMetallicFactordefaultRoughnessFactordisableAutomaticBackgroundSheetsdisableAutomaticFitWorlddisableAutomaticFloorplanOverlayemptyenableShatteredModelUiViewsendpointUrienginePathmemoryLimitmodelrendererTypesessionTokenstreamCutoffScalestreamingModeusePointerEvents
Properties
-
WebViewerConfig.boundingPreviewMode optional
boundingPreviewMode:BoundingPreviewModeSpecifies what types of bounding previews should be rendered. DefaultValue is [[BoundingPreviewMode.All]].
-
WebViewerConfig.buffer optional
buffer: Uint8ArraySpecifies a buffer containing a binary representation of an SCS file to load.
-
WebViewerConfig.calculateDefaultViewAxes optional
calculateDefaultViewAxes: booleanIf true, the default view axes will be calculated from the initial camera unless explicitly set during authoring time. Default value is
true.
-
WebViewerConfig.container optional
container: HTMLElementA HTML element to use for the Web Viewer.
-
WebViewerConfig.containerId optional
containerId: stringThe ID of the div element to use for the Web Viewer.
-
WebViewerConfig.defaultMeshLevel optional
defaultMeshLevel: numberSpecifies which mesh detail level will be used to initially stream the model. The default value is
0.
-
WebViewerConfig.defaultMetallicFactor optional
defaultMetallicFactor: number
-
WebViewerConfig.defaultRoughnessFactor optional
defaultRoughnessFactor: number
-
WebViewerConfig.disableAutomaticBackgroundSheets optional
disableAutomaticBackgroundSheets: booleanIf true, then automatic generation of background sheets for drawings is not performed when the drawing is loaded.
-
WebViewerConfig.disableAutomaticFitWorld optional
disableAutomaticFitWorld: booleanIf true, disable automatic fitworld on camera activation when there is no camera on view
-
WebViewerConfig.disableAutomaticFloorplanOverlay optional
disableAutomaticFloorplanOverlay: booleanIf true, then the floorplan overlay capability will not be displayed automatically for BIM enabled models
-
WebViewerConfig.empty optional
empty: booleanWhether the viewer should be started without connecting to a server or loading a model.
-
WebViewerConfig.enableShatteredModelUiViews optional
enableShatteredModelUiViews: booleanIf true, then CAD views contained within external models will populate the model tree UI.
-
WebViewerConfig.endpointUri optional
endpointUri: stringSpecifies the endpoint to be used by the viewer. This can be of type: http, https or ws.
-
WebViewerConfig.enginePath optional
enginePath: stringPath containing the graphics engine
.wasmfiles. Follows the same rules as thesrcattribute of an HTMLscripttag.
-
WebViewerConfig.memoryLimit optional
memoryLimit: numberControls the amount of mesh data present on the client machine at given time. This value is expressed in Mebibytes. Default value is
0indicating no limit.
-
WebViewerConfig.model optional
model: (None | string)Specifies the instance name to be loaded. This option is required if you specify an enpdointUri of type
ws://orwss://.
-
WebViewerConfig.rendererType optional
rendererType:RendererTypeSpecifies the renderer type to be used. Default value is [[RendererType.Client]].
-
WebViewerConfig.sessionToken optional
sessionToken: stringAn arbitrary value used for authentication. If used, it must match the token expected by the server for connection to proceed.
-
WebViewerConfig.streamCutoffScale optional
streamCutoffScale: numberSpecifies a scale factor that will be applied to the streaming size cutoff.
In streaming sessions, an object whose projected size is lower than the cutoff will not be streamed until its projected size reaches the cutoff.
In file sessions, when loading a tree via XML, a file whose projected size is lower than the cutoff will not be requested until its projected size reaches the cutoff.
A value of 0 will disable the cutoff. The value should be in the interval of [0.0, 2.0]. If unspecified, this value will default to 1.0 for streaming sessions and 0.0 (disabled) for file based sessions.
-
WebViewerConfig.streamingMode optional
streamingMode:StreamingModeSets the streaming mode that the viewer will use. Default value is [[StreamingMode.Interactive]].
-
WebViewerConfig.usePointerEvents optional
usePointerEvents: booleanSpecifies whether pointer events should be used when available. Setting this option to false can be useful when using web views in GUI toolkits that rely on Internet Explorer. Default value is
true.