()
| 103 | } |
| 104 | |
| 105 | async onOpen() { |
| 106 | this.setupResult = await setupHiNoteView({ |
| 107 | app: this.app, |
| 108 | component: this, |
| 109 | leaf: this.leaf, |
| 110 | containerEl: this.containerEl, |
| 111 | state: this.state, |
| 112 | plugin: this.plugin, |
| 113 | highlightManager: this.highlightManager, |
| 114 | highlightRepository: this.highlightRepository, |
| 115 | highlightService: this.highlightService, |
| 116 | licenseManager: this.licenseManager, |
| 117 | exportService: this.exportService, |
| 118 | canvasService: this.canvasService, |
| 119 | deviceManager: this.deviceManager!, |
| 120 | uiInitializer: this.uiInitializer!, |
| 121 | eventCoordinator: this.eventCoordinator!, |
| 122 | exportManager: this.exportManager!, |
| 123 | virtualHighlightManager: this.virtualHighlightManager!, |
| 124 | flashcardViewManager: this.flashcardViewManager!, |
| 125 | canvasUpdateDelay: HiNoteView.CANVAS_UPDATE_DELAY, |
| 126 | jumpToHighlight: async (highlight) => await this.jumpToHighlight(highlight), |
| 127 | checkViewPosition: async () => await this.checkViewPosition(), |
| 128 | updateViewLayout: async () => await this.updateViewLayout() |
| 129 | }); |
| 130 | } |
| 131 | |
| 132 | private async jumpToHighlight(highlight: HighlightInfo) { |
| 133 | if (this.state.isDraggedToMainView) { |
nothing calls this directly
no test coverage detected