@visactor/vgrammar-core
Version:
VGrammar is a visual grammar library
19 lines (18 loc) • 742 B
TypeScript
import type { IElement, IView, InteractionEventHandler, TooltipOptions } from '../types';
import { BaseTooltip } from './base-tooltip';
export declare class Tooltip extends BaseTooltip<TooltipOptions> {
static type: string;
type: string;
static defaultOptions: Omit<TooltipOptions, 'target'>;
protected _lastElement: IElement;
constructor(view: IView, options?: TooltipOptions);
protected getEvents(): ({
type: import("../types").EventType;
handler: InteractionEventHandler;
} | {
type: "none" | import("../types").EventType;
handler: (event: any) => void;
})[];
protected handleTooltipShow: InteractionEventHandler;
protected handleTooltipHide: (event: any) => void;
}