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