mirror of
https://github.com/scratchfoundation/paper.js.git
synced 2024-12-29 09:22:22 -05:00
Simplify SVG node example.
This commit is contained in:
parent
8e44049f42
commit
dfc1b966cb
1 changed files with 1 additions and 1 deletions
|
@ -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) {
|
||||
|
|
Loading…
Reference in a new issue