svgWrapText takes an SVGTextElement and number as its arguments. It wraps the SVGTextElement into the number of SVG pixels by adding multiple <tspan> elements if required and aligning them correctly.
<tspan>
The return value is void.
the text item to wrap.
the wrapping width in SVG pixels.
Generated using TypeDoc
svgWrapText takes an SVGTextElement and number as its arguments. It wraps the SVGTextElement into the number of SVG pixels by adding multiple
<tspan>elements if required and aligning them correctly.The return value is void.