Skip to content

Commit

Permalink
🐛 fix: 修正 textStyle 缺失导致修改文本造成报错的问题
Browse files Browse the repository at this point in the history
  • Loading branch information
arvinxx committed Oct 20, 2022
1 parent 6fecc35 commit 1a44244
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/models/Layer/Text.ts
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,10 @@ class Text extends BaseLayer {
frame: this.frame.toSketchJSON(),
clippingMaskMode: 0,
hasClippingMask: this.hasClippingMask,
style: this.style.toSketchJSON(),
style: {
...this.style.toSketchJSON(),
textStyle: this.textStyle.toSketchJSON(),
},
attributedString: this.getSketchAttributedString(),
automaticallyDrawOnUnderlyingPath: false,
dontSynchroniseWithSymbol: false,
Expand Down

0 comments on commit 1a44244

Please sign in to comment.