import type { Geometry } from '../geometry'; import UIComponent, { UIComponentOptionsType } from './UIComponent'; /** * @classdesc * Class for tooltip, a tooltip used for showing some useful infomation attached to geometries on the map. * @category ui * @extends ui.UIComponent * @memberOf ui */ declare class ToolTip extends UIComponent { options: ToolTipOptionsType; /** * @param {String} content - content of tooltip * @param {Object} [options=null] - options defined in [ToolTip]{@link ToolTip#options} */ constructor(content: string, options?: ToolTipOptionsType); /** * Adds the UI Component to a geometry UIMarker Other graphic elements * @param {Geometry} owner - geometry to add. * @returns {UIComponent} this * @fires UIComponent#add */ addTo(owner: Geometry): this; /** * set ToolTip's content's css class name. * @param {String} css class name - set for ToolTip's content. */ setStyle(cssName: string): this; /** * get ToolTip's content's css class name * @returns {String} css class name - set for ToolTip's content. */ getStyle(): string; /** * get the UI Component's content * @returns {String} tooltip's content */ getContent(): string; buildOn(): HTMLElement; onMouseOut(): void; onMouseMove(e: any): void; /** * remove the tooltip, this method will be called by 'this.remove()' */ onRemove(): void; hideDom(): void; onEvent(): this; } export default ToolTip; export type ToolTipOptionsType = { width?: number; height?: number; animation?: string; containerClass?: string; cssName?: string; showTimeout?: number; } & UIComponentOptionsType; //# sourceMappingURL=ToolTip.d.ts.map