SvgParameters
SvgParameters class
SVG parameters.
new SvgParameters()
Methods
| Name | Description |
|---|---|
| getSvgColorMode() | Possible modes for filling color in svg file, RGB is default and supported by SVG 1.1. RGBA, HSL, HSLA is allowed in SVG |
| isExplicitSizeInPixels() | Does SVG image contain explicit size in pixels (recommended) Default value: true. |
| isTextDrawnInTextElement() | Does SVG image contain text as text element rather than paths (recommended) Default value: true. |
| setExplicitSizeInPixels() | Does SVG image contain explicit size in pixels (recommended) Default value: true. |
| setSvgColorMode() | Possible modes for filling color in svg file, RGB is default and supported by SVG 1.1. RGBA, HSL, HSLA is allowed in SVG |
| setTextDrawnInTextElement() | Does SVG image contain text as text element rather than paths (recommended) Default value: true. |
getSvgColorMode()
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
isExplicitSizeInPixels()
Does SVG image contain explicit size in pixels (recommended) Default value: true.
isTextDrawnInTextElement()
Does SVG image contain text as text element rather than paths (recommended) Default value: true.
setExplicitSizeInPixels()
Does SVG image contain explicit size in pixels (recommended) Default value: true.
setSvgColorMode()
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()
Does SVG image contain text as text element rather than paths (recommended) Default value: true.