2

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

Currently using r58.

El Developer
  • 3,300
  • 1
  • 19
  • 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
  • 2,979
  • 2
  • 18
  • 36
0

You could try printing the page to PDF.

mrdoob
  • 18,710
  • 3
  • 59
  • 60
  • 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