mirror of
https://github.com/scratchfoundation/paper.js.git
synced 2025-01-06 04:42:15 -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) {
|
if (clipItem) {
|
||||||
param.clip = true;
|
param.clip = true;
|
||||||
Item.draw(clipItem, ctx, param);
|
Item.draw(clipItem, ctx, param);
|
||||||
delete param.clip;
|
param.clip = false;
|
||||||
}
|
}
|
||||||
for (var i = 0, l = this._children.length; i < l; i++) {
|
for (var i = 0, l = this._children.length; i < l; i++) {
|
||||||
var item = this._children[i];
|
var item = this._children[i];
|
||||||
|
|
|
@ -197,7 +197,7 @@ var CompoundPath = this.CompoundPath = PathItem.extend(/** @lends CompoundPath#
|
||||||
var children = this._children,
|
var children = this._children,
|
||||||
style = this._style;
|
style = this._style;
|
||||||
// Return early if the compound path doesn't have any children:
|
// Return early if the compound path doesn't have any children:
|
||||||
if (children.length == 0)
|
if (children.length === 0)
|
||||||
return;
|
return;
|
||||||
ctx.beginPath();
|
ctx.beginPath();
|
||||||
param.compound = true;
|
param.compound = true;
|
||||||
|
|
|
@ -296,6 +296,8 @@ var Project = this.Project = PaperScopeItem.extend(/** @lends Project# */{
|
||||||
matrix.applyToContext(ctx);
|
matrix.applyToContext(ctx);
|
||||||
var param = {
|
var param = {
|
||||||
offset: new Point(0, 0),
|
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]
|
transforms: [matrix]
|
||||||
};
|
};
|
||||||
for (var i = 0, l = this.layers.length; i < l; i++)
|
for (var i = 0, l = this.layers.length; i < l; i++)
|
||||||
|
|
Loading…
Reference in a new issue