mirror of
https://github.com/scratchfoundation/paper.js.git
synced 2025-01-20 22:39:50 -05:00
Move #applyMatrix setting to PathItem.
This commit is contained in:
parent
8d99aa5f95
commit
67203e753c
3 changed files with 2 additions and 4 deletions
|
@ -25,8 +25,6 @@ var CompoundPath = this.CompoundPath = PathItem.extend(/** @lends CompoundPath#
|
||||||
_serializeFields: {
|
_serializeFields: {
|
||||||
pathData: ''
|
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.
|
* Creates a new compound path item and places it in the active layer.
|
||||||
|
|
|
@ -24,8 +24,6 @@ var Path = this.Path = PathItem.extend(/** @lends Path# */{
|
||||||
segments: [],
|
segments: [],
|
||||||
closed: false
|
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.
|
* Creates a new Path item and places it at the top of the active layer.
|
||||||
|
|
|
@ -20,6 +20,8 @@
|
||||||
* @extends Item
|
* @extends Item
|
||||||
*/
|
*/
|
||||||
var PathItem = this.PathItem = Item.extend(/** @lends PathItem# */{
|
var PathItem = this.PathItem = Item.extend(/** @lends PathItem# */{
|
||||||
|
// All PathItems directly apply transformations by default.
|
||||||
|
applyMatrix: true,
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Returns all intersections between two {@link PathItem} items as an array
|
* Returns all intersections between two {@link PathItem} items as an array
|
||||||
|
|
Loading…
Reference in a new issue