Reputation: 3346
Is there a way to obtain the svg text (an image) from THREE.SVGRenderer
?
Currently using r58.
Upvotes: 2
Views: 1397
Reputation: 3101
You should be able to access the SVG DOM with renderer.domElement
To convert that to XML string (if that is what you mean by "svg text"):
var XMLS = new XMLSerializer();
var svgfile = XMLS.serializeToString(renderer.domElement);
Upvotes: 3