SvgConfig

class SvgConfig()

Allows customization of an exported SVG.

Constructors

SvgConfig.constructor()
SvgConfig(): SvgConfig

Returns: SvgConfig

Properties

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

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

SvgConfig.linesCssColor
linesCssColor: string

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

SvgConfig.linesDrawModelLinesEnabled
linesDrawModelLinesEnabled: boolean

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

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

SvgConfig.logDiagnostics
logDiagnostics: boolean

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

SvgConfig.logProgress
logProgress: boolean

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

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

SvgConfig.silhouettesEnabled
silhouettesEnabled: boolean

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

SvgConfig.svgBackgroundCssColor
svgBackgroundCssColor: string

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

SvgConfig.svgXmlPrologEnabled
svgXmlPrologEnabled: boolean

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