* Create font string from fontStyle, fontWeight, fontSize, fontFamily * @return {string}
(this: Model<LabelFontOption>)
| 56 | * @return {string} |
| 57 | */ |
| 58 | getFont(this: Model<LabelFontOption>) { |
| 59 | return getFont({ |
| 60 | fontStyle: this.getShallow('fontStyle'), |
| 61 | fontWeight: this.getShallow('fontWeight'), |
| 62 | fontSize: this.getShallow('fontSize'), |
| 63 | fontFamily: this.getShallow('fontFamily') |
| 64 | }, this.ecModel); |
| 65 | } |
| 66 | |
| 67 | getTextRect(this: Model<LabelRectRelatedOption> & TextStyleMixin, text: string): graphicUtil.BoundingRect { |
| 68 | const style: TextStyleProps = { |
no test coverage detected