1 | import { Disposable, DisposableCollection } from '../common';
|
2 | import { MarkdownString } from '../common/markdown-rendering/markdown-string';
|
3 | import { MarkdownRenderer, MarkdownRendererFactory } from './markdown-rendering/markdown-renderer';
|
4 | import { PreferenceService } from './preferences';
|
5 | import '../../src/browser/style/hover-service.css';
|
6 | export declare type HoverPosition = 'left' | 'right' | 'top' | 'bottom';
|
7 | export declare namespace HoverPosition {
|
8 | function invertIfNecessary(position: HoverPosition, target: DOMRect, host: DOMRect, totalWidth: number, totalHeight: number): HoverPosition;
|
9 | }
|
10 | export interface HoverRequest {
|
11 | content: string | MarkdownString | HTMLElement;
|
12 | target: HTMLElement;
|
13 | |
14 |
|
15 |
|
16 |
|
17 |
|
18 | position: HoverPosition;
|
19 | }
|
20 | export declare class HoverService {
|
21 | protected static hostClassName: string;
|
22 | protected static styleSheetId: string;
|
23 | protected readonly preferences: PreferenceService;
|
24 | protected readonly markdownRendererFactory: MarkdownRendererFactory;
|
25 | protected _markdownRenderer: MarkdownRenderer | undefined;
|
26 | protected get markdownRenderer(): MarkdownRenderer;
|
27 | protected _hoverHost: HTMLElement | undefined;
|
28 | protected get hoverHost(): HTMLElement;
|
29 | protected pendingTimeout: Disposable | undefined;
|
30 | protected hoverTarget: HTMLElement | undefined;
|
31 | protected lastHidHover: number;
|
32 | protected readonly disposeOnHide: DisposableCollection;
|
33 | requestHover(request: HoverRequest): void;
|
34 | protected getHoverDelay(): number;
|
35 | protected renderHover(request: HoverRequest): Promise<void>;
|
36 | protected setHostPosition(target: HTMLElement, host: HTMLElement, position: HoverPosition): HoverPosition;
|
37 | protected listenForMouseOut(): void;
|
38 | cancelHover(): void;
|
39 | protected unRenderHover(): void;
|
40 | }
|
41 |
|
\ | No newline at end of file |