mirror of
https://github.com/scratchfoundation/paper.js.git
synced 2025-01-05 20:32:00 -05:00
Merge remote branch 'origin/master'
This commit is contained in:
commit
c309d3248e
2 changed files with 3 additions and 6 deletions
|
@ -699,11 +699,7 @@ var Item = this.Item = Base.extend({
|
|||
ctx.stroke();
|
||||
for (var i = 0; i < 8; i++) {
|
||||
ctx.beginPath();
|
||||
ctx.rect(
|
||||
Math.round(coords[i]) - 2,
|
||||
Math.round(coords[++i]) - 2,
|
||||
4, 4
|
||||
);
|
||||
ctx.rect(coords[i] - 2, coords[++i] - 2, 4, 4);
|
||||
ctx.fill();
|
||||
}
|
||||
},
|
||||
|
|
|
@ -159,7 +159,8 @@ var PaperScript = new function() {
|
|||
} catch (e) {
|
||||
}
|
||||
// Automatically redraw document at the end.
|
||||
doc && doc.redraw();
|
||||
if (doc)
|
||||
doc.redraw();
|
||||
return res;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue