mirror of
https://github.com/scratchfoundation/paper.js.git
synced 2025-01-04 03:45:58 -05:00
Have CompoundPath always apply transformations by default.
This commit is contained in:
parent
d2b43b043a
commit
1333f59d54
2 changed files with 4 additions and 3 deletions
|
@ -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.
|
||||
|
|
|
@ -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++) {
|
||||
|
|
Loading…
Reference in a new issue