mirror of
https://github.com/scratchfoundation/paper.js.git
synced 2024-12-28 17:02:24 -05:00
Fix code style
This commit is contained in:
parent
96a5d2bec7
commit
f3e4c185fa
2 changed files with 2 additions and 2 deletions
|
@ -24,7 +24,7 @@ raster.onLoad = function() {
|
||||||
var fs = require('fs');
|
var fs = require('fs');
|
||||||
|
|
||||||
var svg = new paper.XMLSerializer().serializeToString(project.exportSVG());
|
var svg = new paper.XMLSerializer().serializeToString(project.exportSVG());
|
||||||
fs.writeFile(path.resolve('./out.svg'),svg, function (err) {
|
fs.writeFile(path.resolve('./out.svg'), svg, function (err) {
|
||||||
if (err) throw err;
|
if (err) throw err;
|
||||||
console.log('Saved!');
|
console.log('Saved!');
|
||||||
});
|
});
|
||||||
|
|
|
@ -45,7 +45,7 @@ with (paper) {
|
||||||
var svg = project.exportSVG({ asString: true });
|
var svg = project.exportSVG({ asString: true });
|
||||||
console.log(svg);
|
console.log(svg);
|
||||||
|
|
||||||
fs.writeFile(path.resolve('./out.svg'),svg, function (err) {
|
fs.writeFile(path.resolve('./out.svg'), svg, function (err) {
|
||||||
if (err) throw err;
|
if (err) throw err;
|
||||||
console.log('Saved!');
|
console.log('Saved!');
|
||||||
});
|
});
|
||||||
|
|
Loading…
Reference in a new issue