mirror of
https://github.com/scratchfoundation/paper.js.git
synced 2025-01-20 22:39:50 -05:00
parent
da08e74374
commit
47a3490007
1 changed files with 2 additions and 1 deletions
|
@ -1103,7 +1103,8 @@ var Item = this.Item = Base.extend(Callback, {
|
|||
scale = (resolution || 72) / 72,
|
||||
canvas = CanvasProvider.getCanvas(bounds.getSize().multiply(scale)),
|
||||
ctx = canvas.getContext('2d'),
|
||||
matrix = new Matrix().scale(scale).translate(-bounds.x, -bounds.y);
|
||||
matrix = new Matrix().scale(scale).translate(-bounds.x, -bounds.y)
|
||||
.concatenate(this._matrix);
|
||||
matrix.applyToContext(ctx);
|
||||
// TODO: Decide how to handle _matrix
|
||||
this.draw(ctx, {});
|
||||
|
|
Loading…
Reference in a new issue