El Developer
El Developer

Reputation: 3346

THREE.SVGRenderer save text of image

Is there a way to obtain the svg text (an image) from THREE.SVGRenderer?

Currently using r58.

Upvotes: 2

Views: 1397

Answers (2)

yaku
yaku

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

mrdoob
mrdoob

Reputation: 19592

You could try printing the page to PDF.

Upvotes: 0

Related Questions