SvgConfig

class SvgConfig()

Allows customization of an exported SVG.

Constructors


Constructors

SvgConfig.constructor()
Return type:SvgConfig

Properties

SvgConfig.linesClipProximityToPlane
Type: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)

SvgConfig.linesClipZNudgeFactor
Type: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)

SvgConfig.linesCssColor
Type:string

CSS compliant color string used to draw lines (default: “#000000”)

SvgConfig.linesDrawModelLinesEnabled
Type:boolean

Determines if the model lines will be included in the SVG output (default: true)

SvgConfig.linesStrokeWidth
Type: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)

SvgConfig.logDiagnostics
Type:boolean

Enables diagnostics logging. If running in-browser, this will go to the developer console (default: false)

SvgConfig.logProgress
Type:boolean

Enables progress logging. If running in-browser, this will go to the developer console (default: false)

SvgConfig.polygonsForceDrawCssColor
Type: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: “”)

SvgConfig.silhouettesEnabled
Type:boolean

Determines if silhouette lines will be drawn for the model (default: true)

SvgConfig.svgBackgroundCssColor
Type:string

If non-empty, an SVG <rect> element will be at the root with the given background color. (default: “”)

SvgConfig.svgXmlPrologEnabled
Type:boolean

If true, the standard XML prolog will be included in the output SVG (default: true)