mirror of
https://github.com/scratchfoundation/paper.js.git
synced 2025-01-20 22:39:50 -05:00
Minor comment change.
This commit is contained in:
parent
8149fa830b
commit
1e72447a7d
1 changed files with 2 additions and 2 deletions
|
@ -1551,14 +1551,14 @@ var Item = Base.extend(Emitter, /** @lends Item# */{
|
||||||
// See Project#draw() for an explanation of new Base()
|
// See Project#draw() for an explanation of new Base()
|
||||||
this.draw(ctx, new Base({ matrices: [matrix] }));
|
this.draw(ctx, new Base({ matrices: [matrix] }));
|
||||||
ctx.restore();
|
ctx.restore();
|
||||||
|
// NOTE: We don't need to release the canvas since it belongs to the
|
||||||
|
// raster now!
|
||||||
raster.setCanvas(canvas);
|
raster.setCanvas(canvas);
|
||||||
}
|
}
|
||||||
raster.transform(new Matrix().translate(topLeft.add(size.divide(2)))
|
raster.transform(new Matrix().translate(topLeft.add(size.divide(2)))
|
||||||
// Take resolution into account and scale back to original size.
|
// Take resolution into account and scale back to original size.
|
||||||
.scale(1 / scale));
|
.scale(1 / scale));
|
||||||
raster.insertAbove(this);
|
raster.insertAbove(this);
|
||||||
// NOTE: We don't need to release the canvas since it now belongs to the
|
|
||||||
// Raster!
|
|
||||||
return raster;
|
return raster;
|
||||||
},
|
},
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue