const _MwWrapper = require("../_mwbridge/_mw-wrapper.js");
/**
* SVG parameters.
*/
class SvgParameters extends _MwWrapper
{
constructor(mwObject)
{
super(mwObject);
this._initializeWrapperMembers();
}
_initializeWrapperMembers()
{
}
/**
* Does SVG image contain explicit size in pixels (recommended)
* Default value: true.
*/
isExplicitSizeInPixels()
{
return this.getJavaClass().isExplicitSizeInPixelsSync();
}
/**
* Does SVG image contain explicit size in pixels (recommended)
* Default value: true.
*/
setExplicitSizeInPixels(explicitSizeInPixels)
{
this.getJavaClass().setExplicitSizeInPixelsSync(explicitSizeInPixels);
}
/**
* Does SVG image contain text as text element rather than paths (recommended)
* Default value: true.
*/
isTextDrawnInTextElement()
{
return this.getJavaClass().isTextDrawnInTextElementSync();
}
/**
* Does SVG image contain text as text element rather than paths (recommended)
* Default value: true.
*/
setTextDrawnInTextElement(textDrawnInTextElement)
{
this.getJavaClass().setTextDrawnInTextElementSync(textDrawnInTextElement);
}
/**
* <p>
* 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
* </p>
*/
setSvgColorMode(svgColorMode)
{
this.getJavaClass().setSvgColorModeSync(svgColorMode);
}
/**
* 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
*/
getSvgColorMode()
{
return this.getJavaClass().getSvgColorModeSync();
}
}
module.exports = SvgParameters;