Allow Path#transformContent to be set to false too.

This commit is contained in:
Jürg Lehni 2013-11-26 23:12:55 +01:00
parent f3832e0780
commit 97d94e8401
2 changed files with 18 additions and 18 deletions

View file

@ -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

View file

@ -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.