mirror of
https://github.com/scratchfoundation/paper.js.git
synced 2024-12-29 09:22:22 -05:00
Group: fix clipping.
This commit is contained in:
parent
2a1e00d127
commit
637e85b31b
1 changed files with 2 additions and 0 deletions
|
@ -12,11 +12,13 @@ Group = Item.extend({
|
|||
},
|
||||
|
||||
draw: function(ctx) {
|
||||
ctx.save();
|
||||
for (var i = 0, l = this.children.length; i < l; i++) {
|
||||
this.children[i].draw(ctx);
|
||||
if(this.clipped & i == 0)
|
||||
ctx.clip();
|
||||
}
|
||||
ctx.restore();
|
||||
},
|
||||
|
||||
getBounds: function() {
|
||||
|
|
Loading…
Reference in a new issue