Hi All,
I have declared one SVG file with symbols and gradients like in
\resources\svg\defs.svg. If I tried to use external gradient from my code, it
is not applying it properly.
Element rect = doc.createElementNS(svgNS, "rect");
rect.setAttributeNS(null, "x", "30");
rect.setAttributeNS(null, "y", "30");
rect.setAttributeNS(null, "id", "r2");
rect.setAttributeNS(null, "width", "13");
rect.setAttributeNS(null, "height", "13");
rect.setAttributeNS(null, "style", "fill:defs.svg#gradient_1");
Also how to change the element’s attributes values, which is available inside
the symbols/group?
<g id="extOther" style="stroke:crimson; stroke-width:4">
<rect x="-50" y="-50" width="100" height="100" style="fill:gold; stroke:none"/>
</g>
Here how to change the rectangle element's style attributes using group id?
Thanks,
Selva
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]