SvgParameters

SvgParameters class

SVG parameters.

public class SvgParameters : joint.BaseJavaClass

Constructors

NameDescription
SvgParameters(object)Initializes a new instance of the SvgParameters class.

Methods

NameDescription
getSvgColorModePossible modes for filling color in svg file, RGB is default and supported by SVG 1.1. RGBA, HSL, HSLA is allowed in SVG 2.0 standard. Even in RGB opacity will be set through “fill-opacity” parameter.
init
isExplicitSizeInPixelsDoes SVG image contain explicit size in pixels (recommended) Default value: true.
isTextDrawnInTextElementDoes SVG image contain text as text element rather than paths (recommended) Default value: true.
setExplicitSizeInPixels(object)Does SVG image contain explicit size in pixels (recommended) Default value: true.
setSvgColorMode(object)Possible modes for filling color in svg file, RGB is default and supported by SVG 1.1. RGBA, HSL, HSLA is allowed in SVG 2.0 standard. Even in RGB opacity will be set through “fill-opacity” parameter.
setTextDrawnInTextElement(object)Does SVG image contain text as text element rather than paths (recommended) Default value: true.

See Also