mirror of
https://github.com/scratchfoundation/paper.js.git
synced 2025-01-04 03:45:58 -05:00
Minor tweaks.
This commit is contained in:
parent
b55d89acda
commit
0f19e72733
3 changed files with 4 additions and 2 deletions
|
@ -169,7 +169,7 @@ var Group = this.Group = Item.extend(/** @lends Group# */{
|
|||
if (clipItem) {
|
||||
param.clip = true;
|
||||
Item.draw(clipItem, ctx, param);
|
||||
delete param.clip;
|
||||
param.clip = false;
|
||||
}
|
||||
for (var i = 0, l = this._children.length; i < l; i++) {
|
||||
var item = this._children[i];
|
||||
|
|
|
@ -197,7 +197,7 @@ var CompoundPath = this.CompoundPath = PathItem.extend(/** @lends CompoundPath#
|
|||
var children = this._children,
|
||||
style = this._style;
|
||||
// Return early if the compound path doesn't have any children:
|
||||
if (children.length == 0)
|
||||
if (children.length === 0)
|
||||
return;
|
||||
ctx.beginPath();
|
||||
param.compound = true;
|
||||
|
|
|
@ -296,6 +296,8 @@ var Project = this.Project = PaperScopeItem.extend(/** @lends Project# */{
|
|||
matrix.applyToContext(ctx);
|
||||
var param = {
|
||||
offset: new Point(0, 0),
|
||||
// A stack of concatenated matrices, to keep track of the current
|
||||
// global matrix, since Canvas is not able tell us (yet).
|
||||
transforms: [matrix]
|
||||
};
|
||||
for (var i = 0, l = this.layers.length; i < l; i++)
|
||||
|
|
Loading…
Reference in a new issue