Clean up SVGExport node example.

This commit is contained in:
Jürg Lehni 2013-10-10 23:12:53 +02:00
parent 60732e8456
commit 4738847f30

View file

@ -40,11 +40,10 @@ with (paper) {
rect.rotate(45).scale(0.7);
var svg = new XMLSerializer().serializeToString(project.exportSVG());
console.log(svg);
fs.writeFile(path.resolve(__dirname, 'out.svg'),svg, function (err) {
if (err) throw err;
console.log('Saved!');
console.log('Saved!');
});
}
}