I have svg as shown below. Whenever I load this svg and try to get BBox of
its text it returns null. How to properly get the BBox?
Element eltText = document.getElementById("id3");
SVGRect svgRect = ((SVGOMTextElement)eltText).getBBox(); <-- returns null
<svg
xmlns="http://www.w3.org/2000/svg"
version="1.1"
id="id">
<g
id="id1"
transform="matrix(1,0,0,1,0,0)">
<rect
id="id2"
width="10"
height="10"
fill="none"
stroke="#ffffff"/>
<text
id="id3"
x="10"
y="10"
font-style="normal"
text-decoration="none"
font-weight="normal"
font-size="12"
font-family="none"
fill="red">
text</text>
</g>
</svg>
--
View this message in context:
http://batik.2283329.n4.nabble.com/getBBox-returns-null-tp4655273.html
Sent from the Batik - Users mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]