← Về thư mục
frontend/src/features/autocomplete/editor.ts
- EditorController · type · L21-L33 — type EditorController = { open: boolean; items: AcItem[]; idx: number; start: number; composing: boolean; dead: boolean; justPicked: boolean; a: { filename?: string | null }; ta: HTMLTextAreaElement; pop: HTMLElement; deb: ReturnType | 0; };
- edacDetect · function · L37-L39 — function edacDetect(ta: HTMLTextAreaElement): ReturnType
- edacItems · function · L41-L49 — function edacItems( a: { filename?: string | null }, ta: HTMLTextAreaElement, q: string, ): AcItem[]
- edacCaretXY · function · L51-L102 — function edacCaretXY(ta: HTMLTextAreaElement): { x: number; y: number; lh: number }
- edacClose · function · L104-L109 — function edacClose(ec: EditorController | null | undefined): void
- edacRender · function · L111-L127 — function edacRender(ec: EditorController): void
- edacPosition · function · L129-L144 — function edacPosition(ec: EditorController): void
- edacUpdate · function · L146-L164 — function edacUpdate(ec: EditorController): void
- edacPick · function · L166-L193 — function edacPick(ec: EditorController, i: number): void
- edacTeardown · function · L195-L202 — function edacTeardown(): void
- artifactForEditor · function · L204-L209 — function artifactForEditor(): { filename?: string | null }
- bindEditorAutocomplete · function · L211-L301 — function bindEditorAutocomplete( ta: HTMLTextAreaElement, a: { filename?: string | null } = artifactForEditor(), ): EditorController
- watchEditAreas · function · L305-L323 — function watchEditAreas(): void
- scan · function · L308-L314 — scan = (): void