mirror of
https://github.com/scratchfoundation/paper.js.git
synced 2025-06-06 02:04:20 -04:00
Clean up SVGExport node example.
This commit is contained in:
parent
60732e8456
commit
4738847f30
1 changed files with 2 additions and 3 deletions
|
@ -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!');
|
||||
});
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue