mirror of
https://github.com/scratchfoundation/paper.js.git
synced 2025-01-07 13:22:07 -05:00
No need to merge Path#_serializeFields, simply keep in sync with Item#_serializeFields (excluding #children).
This commit is contained in:
parent
b05a21d6c9
commit
4346563fe4
1 changed files with 5 additions and 3 deletions
|
@ -24,10 +24,12 @@
|
||||||
// DOCS: Explain that path matrix is always applied with each transformation.
|
// DOCS: Explain that path matrix is always applied with each transformation.
|
||||||
var Path = this.Path = PathItem.extend(/** @lends Path# */{
|
var Path = this.Path = PathItem.extend(/** @lends Path# */{
|
||||||
_type: 'path',
|
_type: 'path',
|
||||||
_serializeFields: Base.merge(Item.prototype._serializeFields, {
|
_serializeFields: {
|
||||||
|
name: null,
|
||||||
segments: [],
|
segments: [],
|
||||||
closed: false
|
closed: false,
|
||||||
}),
|
matrix: new Matrix()
|
||||||
|
},
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 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.
|
||||||
|
|
Loading…
Reference in a new issue