Search in sources :

Example 1 with SVGSVGElement

use of net.sf.latexdraw.parser.svg.SVGSVGElement in project latexdraw by arnobl.

the class TestSVGBase method setUp.

@BeforeEach
void setUp(final SVGShapesFactory svgfac) {
    factory = svgfac;
    doc = new SVGDocument();
    final SVGSVGElement root = doc.getFirstChild();
    root.setAttribute("xmlns:" + LNamespace.LATEXDRAW_NAMESPACE, LNamespace.LATEXDRAW_NAMESPACE_URI);
    root.appendChild(new SVGDefsElement(doc));
    root.setAttribute(SVGAttributes.SVG_VERSION, "1.1");
    root.setAttribute(SVGAttributes.SVG_BASE_PROFILE, "full");
}
Also used : SVGDefsElement(net.sf.latexdraw.parser.svg.SVGDefsElement) SVGDocument(net.sf.latexdraw.parser.svg.SVGDocument) SVGSVGElement(net.sf.latexdraw.parser.svg.SVGSVGElement) BeforeEach(org.junit.jupiter.api.BeforeEach)

Aggregations

SVGDefsElement (net.sf.latexdraw.parser.svg.SVGDefsElement)1 SVGDocument (net.sf.latexdraw.parser.svg.SVGDocument)1 SVGSVGElement (net.sf.latexdraw.parser.svg.SVGSVGElement)1 BeforeEach (org.junit.jupiter.api.BeforeEach)1