(state: PaneState & ExecutorState)
| 894 | } |
| 895 | |
| 896 | async initLibraries(state: PaneState & ExecutorState): Promise<void> { |
| 897 | this.libsWidget = new LibsWidget( |
| 898 | this.currentLangId, |
| 899 | this.compiler, |
| 900 | this.libsButton, |
| 901 | state, |
| 902 | this.onLibsChanged.bind(this), |
| 903 | await LibUtils.getSupportedLibraries( |
| 904 | this.compiler ? this.compiler.libsArr : [], |
| 905 | this.currentLangId, |
| 906 | this.compiler?.remote ?? undefined, |
| 907 | ), |
| 908 | ); |
| 909 | // Wait for the lazily-loaded libraries to be selected before compiling or persisting state. |
| 910 | await this.libsWidget.stateLoaded; |
| 911 | } |
| 912 | |
| 913 | onFontScale(): void { |
| 914 | this.updateState(); |
no test coverage detected