From 1333f59d54d31303eabb1d28324687ad8d7017dd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=BCrg=20Lehni?= Date: Thu, 18 Apr 2013 16:22:21 -0700 Subject: [PATCH] Have CompoundPath always apply transformations by default. --- src/path/CompoundPath.js | 2 ++ src/path/Path.js | 5 ++--- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/src/path/CompoundPath.js b/src/path/CompoundPath.js index 90c4ea9b..0e960e30 100644 --- a/src/path/CompoundPath.js +++ b/src/path/CompoundPath.js @@ -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. diff --git a/src/path/Path.js b/src/path/Path.js index 9b07863e..0ab5cae0 100644 --- a/src/path/Path.js +++ b/src/path/Path.js @@ -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++) {