MCPcopy Create free account
hub / github.com/CatMuse/HiNote / onOpen

Method onOpen

src/views/hinote/HiNoteView.ts:105–130  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

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) {

Callers

nothing calls this directly

Calls 4

jumpToHighlightMethod · 0.95
checkViewPositionMethod · 0.95
updateViewLayoutMethod · 0.95
setupHiNoteViewFunction · 0.90

Tested by

no test coverage detected