2

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

Currently using r58.

El Developer
  • 3,345
  • 1
  • 21
  • 40

2 Answers2

3

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); 
yaku
  • 3,061
  • 2
  • 19
  • 38
0

You could try printing the page to PDF.

mrdoob
  • 19,334
  • 4
  • 63
  • 62
  • Thanks for the response, by printing you mean go to `File->Print->Save` As PDF? Or is there a method to save the frame of a renderer to a file? – El Developer Jul 01 '13 at 23:56