Have CompoundPath always apply transformations by default.

This commit is contained in:
Jürg Lehni 2013-04-18 16:22:21 -07:00
parent d2b43b043a
commit 1333f59d54
2 changed files with 4 additions and 3 deletions

View file

@ -25,6 +25,8 @@ var CompoundPath = this.CompoundPath = PathItem.extend(/** @lends CompoundPath#
_serializeFields: {
pathData: ''
},
// CompoundPaths directly apply transformations to their Paths by default.
applyMatrix: true,
/**
* Creates a new compound path item and places it in the active layer.

View file

@ -24,6 +24,8 @@ var Path = this.Path = PathItem.extend(/** @lends Path# */{
segments: [],
closed: false
},
// Paths directly apply transformations to the Segments by default.
applyMatrix: true,
/**
* Creates a new Path item and places it at the top of the active layer.
@ -300,9 +302,6 @@ var Path = this.Path = PathItem.extend(/** @lends Path# */{
return true;
},
// Paths directly apply transformation matrices to the Segments by default.
applyMatrix: true,
_applyMatrix: function(matrix) {
var coords = new Array(6);
for (var i = 0, l = this._segments.length; i < l; i++) {