()
| 115 | } |
| 116 | |
| 117 | apply() { |
| 118 | if (this.isFontOfStr) { |
| 119 | this.domRoot |
| 120 | .find(this.fontSelectorOrEditor as JQuery) |
| 121 | .css('font-size', this.scale + (this.usePxUnits ? 'px' : 'pt')); |
| 122 | } else { |
| 123 | (this.fontSelectorOrEditor as IEditor).updateOptions({ |
| 124 | fontSize: this.scale, |
| 125 | }); |
| 126 | } |
| 127 | } |
| 128 | |
| 129 | addState(state: any) { |
| 130 | state.fontScale = this.scale; |
no test coverage detected