
#########
SvgConfig
#########

.. js:class:: wv.SvgConfig

   Allows customization of an exported SVG.
   
   
   Index
   =====
   
   .. rubric:: Constructors
   
   
   .. rst-class:: api-xref-list
   
   
   * :js:func:`~wv.SvgConfig.constructor`
   
   .. rubric:: Properties
   
   
   .. rst-class:: api-xref-list
   
   
   * :js:data:`~wv.SvgConfig.linesClipProximityToPlane`
   * :js:data:`~wv.SvgConfig.linesClipZNudgeFactor`
   * :js:data:`~wv.SvgConfig.linesCssColor`
   * :js:data:`~wv.SvgConfig.linesDrawModelLinesEnabled`
   * :js:data:`~wv.SvgConfig.linesStrokeWidth`
   * :js:data:`~wv.SvgConfig.logDiagnostics`
   * :js:data:`~wv.SvgConfig.logProgress`
   * :js:data:`~wv.SvgConfig.polygonsForceDrawCssColor`
   * :js:data:`~wv.SvgConfig.silhouettesEnabled`
   * :js:data:`~wv.SvgConfig.svgBackgroundCssColor`
   * :js:data:`~wv.SvgConfig.svgXmlPrologEnabled`
   
   



.. rst-class:: kind-group kind-constructors

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


.. js:method:: wv.SvgConfig.constructor

      .. rst-class:: sig-pretty-signature
      
         | SvgConfig(): :js:class:`SvgConfig <wv.SvgConfig>`
      
      **Returns**\ : :js:class:`SvgConfig <wv.SvgConfig>`
      



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

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


.. js:data:: wv.SvgConfig.linesClipProximityToPlane

      .. rst-class:: sig-pretty-signature
      
         | linesClipProximityToPlane: *number*
      
      For line clipping, this factor determines how close a line can get to a triangle without getting clipped. Larger values will help small sections that shouldn't get clipped, but larger values may also allow hidden line sections to poke through. Z values are normalized to -32767 to 32767, so this value is relative to that scale. (default: 5.5)
      



.. js:data:: wv.SvgConfig.linesClipZNudgeFactor

      .. rst-class:: sig-pretty-signature
      
         | linesClipZNudgeFactor: *number*
      
      For line clipping, this value will be used to adjust line segment endpoints, bringing closer to the camera for positive values. This is helpful for z-fighting causing small sections of lines to be unintentionally clipped. Z values are normalized to -32767 to 32767, so this value is relative to that scale. (default: 5.5)
      



.. js:data:: wv.SvgConfig.linesCssColor

      .. rst-class:: sig-pretty-signature
      
         | linesCssColor: *string*
      
      CSS compliant color string used to draw lines (default: "#000000")
      



.. js:data:: wv.SvgConfig.linesDrawModelLinesEnabled

      .. rst-class:: sig-pretty-signature
      
         | linesDrawModelLinesEnabled: *boolean*
      
      Determines if the model lines will be included in the SVG output (default: true)
      



.. js:data:: wv.SvgConfig.linesStrokeWidth

      .. rst-class:: sig-pretty-signature
      
         | linesStrokeWidth: *number*
      
      Determines the output SVG line width for all lines in the model. This is relative to the SVG viewBox settings of -32767 to +32767 in both X and Y directions. (default: 20.0)
      



.. js:data:: wv.SvgConfig.logDiagnostics

      .. rst-class:: sig-pretty-signature
      
         | logDiagnostics: *boolean*
      
      Enables diagnostics logging. If running in-browser, this will go to the developer console (default: false)
      



.. js:data:: wv.SvgConfig.logProgress

      .. rst-class:: sig-pretty-signature
      
         | logProgress: *boolean*
      
      Enables progress logging. If running in-browser, this will go to the developer console (default: false)
      



.. js:data:: wv.SvgConfig.polygonsForceDrawCssColor

      .. rst-class:: sig-pretty-signature
      
         | polygonsForceDrawCssColor: *string*
      
      If set to a non-empty CSS string value, forces all polygons to be drawn as this color Example, to force all polygons to be white, use <code>PolygonsForceDrawColor="#ffffff"</code> (default: "")
      



.. js:data:: wv.SvgConfig.silhouettesEnabled

      .. rst-class:: sig-pretty-signature
      
         | silhouettesEnabled: *boolean*
      
      Determines if silhouette lines will be drawn for the model (default: true)
      



.. js:data:: wv.SvgConfig.svgBackgroundCssColor

      .. rst-class:: sig-pretty-signature
      
         | svgBackgroundCssColor: *string*
      
      If non-empty, an SVG <rect> element will be at the root with the given background color. (default: "")
      



.. js:data:: wv.SvgConfig.svgXmlPrologEnabled

      .. rst-class:: sig-pretty-signature
      
         | svgXmlPrologEnabled: *boolean*
      
      If true, the standard XML prolog will be included in the output SVG (default: true)
      




