mirror of
https://github.com/scratchfoundation/paper.js.git
synced 2025-01-03 19:45:44 -05:00
Allow Path#transformContent to be set to false too.
This commit is contained in:
parent
f3832e0780
commit
97d94e8401
2 changed files with 18 additions and 18 deletions
|
@ -124,24 +124,6 @@ var Group = Item.extend(/** @lends Group# */{
|
|||
return this._clipItem = null;
|
||||
},
|
||||
|
||||
/**
|
||||
* Specifies whether the group applies transformations directly to its
|
||||
* children, or whether they are to be stored in its {@link Item#matrix}
|
||||
*
|
||||
* @type Boolean
|
||||
* @default true
|
||||
* @bean
|
||||
*/
|
||||
getTransformContent: function() {
|
||||
return this._transformContent;
|
||||
},
|
||||
|
||||
setTransformContent: function(transform) {
|
||||
this._transformContent = transform;
|
||||
if (transform)
|
||||
this.applyMatrix();
|
||||
},
|
||||
|
||||
/**
|
||||
* Specifies whether the group item is to be clipped.
|
||||
* When setting to {@code true}, the first child in the group is
|
||||
|
|
|
@ -989,6 +989,24 @@ var Item = Base.extend(Callback, /** @lends Item# */{
|
|||
&& this._globalMatrix || null;
|
||||
},
|
||||
|
||||
/**
|
||||
* Specifies whether the group applies transformations directly to its
|
||||
* children, or whether they are to be stored in its {@link Item#matrix}
|
||||
*
|
||||
* @type Boolean
|
||||
* @default true
|
||||
* @bean
|
||||
*/
|
||||
getTransformContent: function() {
|
||||
return this._transformContent;
|
||||
},
|
||||
|
||||
setTransformContent: function(transform) {
|
||||
this._transformContent = transform;
|
||||
if (transform)
|
||||
this.applyMatrix();
|
||||
},
|
||||
|
||||
/**
|
||||
* {@grouptitle Project Hierarchy}
|
||||
* The project that this item belongs to.
|
||||
|
|
Loading…
Reference in a new issue