.. role:: clio-optional
   :class: clio-flag clio-flag-optional


###############
WebViewerConfig
###############

.. js:class:: wv.WebViewerConfig

   
   Index
   =====
   
   .. rubric:: Properties
   
   
   .. rst-class:: api-xref-list
   
   
   * :js:data:`~wv.WebViewerConfig.boundingPreviewMode`
   * :js:data:`~wv.WebViewerConfig.buffer`
   * :js:data:`~wv.WebViewerConfig.calculateDefaultViewAxes`
   * :js:data:`~wv.WebViewerConfig.container`
   * :js:data:`~wv.WebViewerConfig.containerId`
   * :js:data:`~wv.WebViewerConfig.defaultMeshLevel`
   * :js:data:`~wv.WebViewerConfig.defaultMetallicFactor`
   * :js:data:`~wv.WebViewerConfig.defaultRoughnessFactor`
   * :js:data:`~wv.WebViewerConfig.disableAutomaticBackgroundSheets`
   * :js:data:`~wv.WebViewerConfig.disableAutomaticFitWorld`
   * :js:data:`~wv.WebViewerConfig.disableAutomaticFloorplanOverlay`
   * :js:data:`~wv.WebViewerConfig.empty`
   * :js:data:`~wv.WebViewerConfig.enableShatteredModelUiViews`
   * :js:data:`~wv.WebViewerConfig.endpointUri`
   * :js:data:`~wv.WebViewerConfig.enginePath`
   * :js:data:`~wv.WebViewerConfig.memoryLimit`
   * :js:data:`~wv.WebViewerConfig.model`
   * :js:data:`~wv.WebViewerConfig.rendererType`
   * :js:data:`~wv.WebViewerConfig.sessionToken`
   * :js:data:`~wv.WebViewerConfig.streamCutoffScale`
   * :js:data:`~wv.WebViewerConfig.streamingMode`
   * :js:data:`~wv.WebViewerConfig.usePointerEvents`
   
   



.. rst-class:: kind-group kind-properties

.. rubric:: Properties
   :class: kind-group-title


.. js:data:: wv.WebViewerConfig.boundingPreviewMode

      .. rst-class:: clio-flags
      
         :clio-optional:`optional`
      
      .. rst-class:: sig-pretty-signature
      
         | boundingPreviewMode: :js:data:`BoundingPreviewMode <wv.BoundingPreviewMode>`
      
      Specifies what types of bounding previews should be rendered. DefaultValue is [[BoundingPreviewMode.All]].
      



.. js:data:: wv.WebViewerConfig.buffer

      .. rst-class:: clio-flags
      
         :clio-optional:`optional`
      
      .. rst-class:: sig-pretty-signature
      
         | buffer: *Uint8Array*
      
      Specifies a buffer containing a binary representation of an SCS file to load.
      



.. js:data:: wv.WebViewerConfig.calculateDefaultViewAxes

      .. rst-class:: clio-flags
      
         :clio-optional:`optional`
      
      .. rst-class:: sig-pretty-signature
      
         | calculateDefaultViewAxes: *boolean*
      
      If true, the default view axes will be calculated from the initial camera unless explicitly set during authoring time. Default value is ``true``\ .
      



.. js:data:: wv.WebViewerConfig.container

      .. rst-class:: clio-flags
      
         :clio-optional:`optional`
      
      .. rst-class:: sig-pretty-signature
      
         | container: *HTMLElement*
      
      A HTML element to use for the Web Viewer.
      



.. js:data:: wv.WebViewerConfig.containerId

      .. rst-class:: clio-flags
      
         :clio-optional:`optional`
      
      .. rst-class:: sig-pretty-signature
      
         | containerId: *string*
      
      The ID of the div element to use for the Web Viewer.
      



.. js:data:: wv.WebViewerConfig.defaultMeshLevel

      .. rst-class:: clio-flags
      
         :clio-optional:`optional`
      
      .. rst-class:: sig-pretty-signature
      
         | defaultMeshLevel: *number*
      
      Specifies which mesh detail level will be used to initially stream the model. The default value is ``0``\ .
      



.. js:data:: wv.WebViewerConfig.defaultMetallicFactor

      .. rst-class:: clio-flags
      
         :clio-optional:`optional`
      
      .. rst-class:: sig-pretty-signature
      
         | defaultMetallicFactor: *number*
      



.. js:data:: wv.WebViewerConfig.defaultRoughnessFactor

      .. rst-class:: clio-flags
      
         :clio-optional:`optional`
      
      .. rst-class:: sig-pretty-signature
      
         | defaultRoughnessFactor: *number*
      



.. js:data:: wv.WebViewerConfig.disableAutomaticBackgroundSheets

      .. rst-class:: clio-flags
      
         :clio-optional:`optional`
      
      .. rst-class:: sig-pretty-signature
      
         | disableAutomaticBackgroundSheets: *boolean*
      
      If true, then automatic generation of background sheets for drawings is not performed when the drawing is loaded.
      



.. js:data:: wv.WebViewerConfig.disableAutomaticFitWorld

      .. rst-class:: clio-flags
      
         :clio-optional:`optional`
      
      .. rst-class:: sig-pretty-signature
      
         | disableAutomaticFitWorld: *boolean*
      
      If true, disable automatic fitworld on camera activation when there is no camera on view
      



.. js:data:: wv.WebViewerConfig.disableAutomaticFloorplanOverlay

      .. rst-class:: clio-flags
      
         :clio-optional:`optional`
      
      .. rst-class:: sig-pretty-signature
      
         | disableAutomaticFloorplanOverlay: *boolean*
      
      If true, then the floorplan overlay capability will not be displayed automatically for BIM enabled models
      



.. js:data:: wv.WebViewerConfig.empty

      .. rst-class:: clio-flags
      
         :clio-optional:`optional`
      
      .. rst-class:: sig-pretty-signature
      
         | empty: *boolean*
      
      Whether the viewer should be started without connecting to a server or loading a model.
      



.. js:data:: wv.WebViewerConfig.enableShatteredModelUiViews

      .. rst-class:: clio-flags
      
         :clio-optional:`optional`
      
      .. rst-class:: sig-pretty-signature
      
         | enableShatteredModelUiViews: *boolean*
      
      If true, then CAD views contained within external models will populate the model tree UI.
      



.. js:data:: wv.WebViewerConfig.endpointUri

      .. rst-class:: clio-flags
      
         :clio-optional:`optional`
      
      .. rst-class:: sig-pretty-signature
      
         | endpointUri: *string*
      
      Specifies the endpoint to be used by the viewer. This can be of type: http, https or ws.
      



.. js:data:: wv.WebViewerConfig.enginePath

      .. rst-class:: clio-flags
      
         :clio-optional:`optional`
      
      .. rst-class:: sig-pretty-signature
      
         | enginePath: *string*
      
      Path containing the graphics engine ``.wasm`` files. Follows the same rules as the ``src`` attribute of an HTML ``script`` tag.
      



.. js:data:: wv.WebViewerConfig.memoryLimit

      .. rst-class:: clio-flags
      
         :clio-optional:`optional`
      
      .. rst-class:: sig-pretty-signature
      
         | memoryLimit: *number*
      
      Controls the amount of mesh data present on the client machine at given time. This value is expressed in `Mebibytes <https://en.wikipedia.org/wiki/Mebibyte>`__\ . Default value is ``0`` indicating no limit.
      



.. js:data:: wv.WebViewerConfig.model

      .. rst-class:: clio-flags
      
         :clio-optional:`optional`
      
      .. rst-class:: sig-pretty-signature
      
         | model: (*None* | *string*\ )
      
      Specifies the instance name to be loaded. This option is required if you specify an enpdointUri of type ``ws://`` or ``wss://``\ .
      



.. js:data:: wv.WebViewerConfig.rendererType

      .. rst-class:: clio-flags
      
         :clio-optional:`optional`
      
      .. rst-class:: sig-pretty-signature
      
         | rendererType: :js:data:`RendererType <wv.RendererType>`
      
      Specifies the renderer type to be used. Default value is [[RendererType.Client]].
      



.. js:data:: wv.WebViewerConfig.sessionToken

      .. rst-class:: clio-flags
      
         :clio-optional:`optional`
      
      .. rst-class:: sig-pretty-signature
      
         | sessionToken: *string*
      
      An arbitrary value used for authentication. If used, it must match the token expected by the server for connection to proceed.
      



.. js:data:: wv.WebViewerConfig.streamCutoffScale

      .. rst-class:: clio-flags
      
         :clio-optional:`optional`
      
      .. rst-class:: sig-pretty-signature
      
         | streamCutoffScale: *number*
      
      Specifies 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.
      



.. js:data:: wv.WebViewerConfig.streamingMode

      .. rst-class:: clio-flags
      
         :clio-optional:`optional`
      
      .. rst-class:: sig-pretty-signature
      
         | streamingMode: :js:data:`StreamingMode <wv.StreamingMode>`
      
      Sets the streaming mode that the viewer will use. Default value is [[StreamingMode.Interactive]].
      



.. js:data:: wv.WebViewerConfig.usePointerEvents

      .. rst-class:: clio-flags
      
         :clio-optional:`optional`
      
      .. rst-class:: sig-pretty-signature
      
         | usePointerEvents: *boolean*
      
      Specifies 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``\ .
      




