Simplify SVG node example.

This commit is contained in:
Jürg Lehni 2013-11-26 17:33:03 +01:00
parent 8e44049f42
commit dfc1b966cb

View file

@ -39,7 +39,7 @@ with (paper) {
rect.rotate(45).scale(0.7);
var svg = new XMLSerializer().serializeToString(project.exportSVG());
var svg = project.exportSVG({ asString: true });
console.log(svg);
fs.writeFile(path.resolve(__dirname, 'out.svg'),svg, function (err) {