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

.. js:class:: SvgConfig

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




Constructors
============

.. js:method:: SvgConfig.constructor

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





Properties
==========

.. js:data:: 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:: 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:: SvgConfig.linesCssColor

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



.. js:data:: 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:: 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:: 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:: 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:: 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:: SvgConfig.silhouettesEnabled

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



.. js:data:: 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:: SvgConfig.svgXmlPrologEnabled

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





