* Return an options object with the given style. If `this.style === style`, * returns `this`.
(style)
| 4871 | |
| 4872 | |
| 4873 | havingStyle(style) { |
| 4874 | if (this.style === style) { |
| 4875 | return this; |
| 4876 | } else { |
| 4877 | return this.extend({ |
| 4878 | style: style, |
| 4879 | size: sizeAtStyle(this.textSize, style) |
| 4880 | }); |
| 4881 | } |
| 4882 | } |
| 4883 | /** |
| 4884 | * Return an options object with a cramped version of the current style. If |
| 4885 | * the current style is cramped, returns `this`. |
no test coverage detected