mirror of
https://github.com/scratchfoundation/paper.js.git
synced 2025-07-28 22:59:36 -04:00
Pass on view matrix to Project#draw.
So selection drawing is not zoomed.
This commit is contained in:
parent
daca14efb8
commit
010209c70f
2 changed files with 4 additions and 6 deletions
src/project
|
@ -257,8 +257,10 @@ var Project = this.Project = PaperScopeItem.extend(/** @lends Project# */{
|
|||
* @type Symbol[]
|
||||
*/
|
||||
|
||||
draw: function(ctx) {
|
||||
draw: function(ctx, matrix) {
|
||||
ctx.save();
|
||||
if (matrix)
|
||||
matrix.applyToContext(ctx);
|
||||
var param = { offset: new Point(0, 0) };
|
||||
for (var i = 0, l = this.layers.length; i < l; i++)
|
||||
Item.draw(this.layers[i], ctx, param);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue