问题
Is there a way to obtain the svg text (an image) from THREE.SVGRenderer
?
Currently using r58.
回答1:
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);
回答2:
You could try printing the page to PDF.
来源:https://stackoverflow.com/questions/17398134/three-svgrenderer-save-text-of-image