mirror of
https://github.com/scratchfoundation/paper.js.git
synced 2025-08-28 22:08:54 -04:00
Switch to jsdom v8.3.0, now that it includes our node-canvas PR.
See https://github.com/tmpvar/jsdom/pull/1366
This commit is contained in:
parent
53c9a9530e
commit
f4e4e7ab9c
3 changed files with 9 additions and 2 deletions
|
@ -6,7 +6,7 @@ var path = require('path');
|
|||
var fs = require('fs');
|
||||
|
||||
paper.setup(new paper.Size(300, 600));
|
||||
paper.project.importSVG(/*'in.svg'*/'file://' + path.resolve('./in.svg'), {
|
||||
paper.project.importSVG('file://' + path.resolve('./in.svg'), {
|
||||
onLoad: function(item) {
|
||||
paper.view.exportFrames({
|
||||
amount: 1,
|
||||
|
@ -18,5 +18,8 @@ paper.project.importSVG(/*'in.svg'*/'file://' + path.resolve('./in.svg'), {
|
|||
console.log(event.percentage + '% complete, frame took: ' + event.delta);
|
||||
}
|
||||
});
|
||||
},
|
||||
onError: function(message) {
|
||||
console.error(message);
|
||||
}
|
||||
});
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue