* Return an options object with the given size and in at least `\textstyle`. * Returns `this` if appropriate.
(size)
| 4896 | |
| 4897 | |
| 4898 | havingSize(size) { |
| 4899 | if (this.size === size && this.textSize === size) { |
| 4900 | return this; |
| 4901 | } else { |
| 4902 | return this.extend({ |
| 4903 | style: this.style.text(), |
| 4904 | size: size, |
| 4905 | textSize: size, |
| 4906 | sizeMultiplier: sizeMultipliers[size - 1] |
| 4907 | }); |
| 4908 | } |
| 4909 | } |
| 4910 | /** |
| 4911 | * Like `this.havingSize(BASESIZE).havingStyle(style)`. If `style` is omitted, |
| 4912 | * changes to at least `\textstyle`. |
no test coverage detected