mirror of
https://github.com/scratchfoundation/paper.js.git
synced 2025-01-06 04:42:15 -05:00
Add TextItem#_clone to copy over characterStyle and paragraphStyle.
This commit is contained in:
parent
2c94b4270a
commit
f676cc026f
1 changed files with 6 additions and 0 deletions
|
@ -26,6 +26,12 @@ var TextItem = this.TextItem = Item.extend({
|
|||
this.setParagraphStyle();
|
||||
},
|
||||
|
||||
_clone: function(copy) {
|
||||
copy.setCharacterStyle(this._characterStyle);
|
||||
copy.setParagraphStyle(this._paragraphStyle);
|
||||
return this.base(copy);
|
||||
},
|
||||
|
||||
getCharacterStyle: function() {
|
||||
return this._characterStyle;
|
||||
},
|
||||
|
|
Loading…
Reference in a new issue