mirror of
https://github.com/scratchfoundation/paper.js.git
synced 2025-01-05 20:32:00 -05:00
Do not use short-forms and syntax magic in core API.
This commit is contained in:
parent
728bf0441c
commit
49645f8a0d
1 changed files with 1 additions and 1 deletions
|
@ -733,7 +733,7 @@ var Item = this.Item = Base.extend({
|
|||
// Floor the offset and ceil the size, so we don't cut off any
|
||||
// antialiased pixels when drawing onto the temporary canvas.
|
||||
var itemOffset = bounds.getTopLeft().floor(),
|
||||
size = bounds.getSize().ceil().add(1, 1);
|
||||
size = bounds.getSize().ceil().add(new Size(1, 1));
|
||||
tempCanvas = CanvasProvider.getCanvas(size);
|
||||
|
||||
// Save the parent context, so we can draw onto it later
|
||||
|
|
Loading…
Reference in a new issue