|
| 1 | +/// <reference types="node" /> |
| 2 | +import { CompositeDisposable, Disposable, Range, Point, TextEditor, TextEditorElement, CommandEvent, CursorPositionChangedEvent } from "atom"; |
| 3 | +import type { DatatipProvider } from "atom-ide-base"; |
| 4 | +import { ViewContainer } from "atom-ide-base/commons-ui/float-pane/ViewContainer"; |
| 5 | +import { ProviderRegistry } from "atom-ide-base/commons-atom/ProviderRegistry"; |
| 6 | +export declare class DataTipManager { |
| 7 | + subscriptions: CompositeDisposable; |
| 8 | + providerRegistry: ProviderRegistry<DatatipProvider>; |
| 9 | + watchedEditors: WeakSet<TextEditor>; |
| 10 | + editor: TextEditor | null; |
| 11 | + editorView: TextEditorElement | null; |
| 12 | + editorSubscriptions: CompositeDisposable | null; |
| 13 | + dataTipMarkerDisposables: CompositeDisposable | null; |
| 14 | + showDataTipOnCursorMove: boolean; |
| 15 | + showDataTipOnMouseMove: boolean; |
| 16 | + currentMarkerRange: Range | null; |
| 17 | + mouseMoveTimer: NodeJS.Timeout | null; |
| 18 | + cursorMoveTimer: NodeJS.Timeout | null; |
| 19 | + hoverTime: any; |
| 20 | + glowClass: string; |
| 21 | + constructor(); |
| 22 | + initialize(): void; |
| 23 | + dispose(): void; |
| 24 | + get datatipService(): ProviderRegistry<DatatipProvider>; |
| 25 | + watchEditor(editor: TextEditor): Disposable | undefined; |
| 26 | + updateCurrentEditor(editor: TextEditor): void; |
| 27 | + onCursorMoveEvt(evt: CursorPositionChangedEvent): void; |
| 28 | + onMouseMoveEvt(evt: MouseEvent): void; |
| 29 | + onMouseWheel(evt: WheelEvent): void; |
| 30 | + onCommandEvt(evt: CommandEvent): void; |
| 31 | + showDataTip(editor: TextEditor, position: Point, evt: CursorPositionChangedEvent | MouseEvent | null): Promise<void>; |
| 32 | + mountDataTipWithMarker(editor: TextEditor, range: Range, position: Point, view: ViewContainer): CompositeDisposable | null; |
| 33 | + unmountDataTip(): void; |
| 34 | +} |
0 commit comments