@syncfusion/ej2-progressbar
Version:
Essential JS 2 ProgressBar Component
68 lines (67 loc) • 1.9 kB
TypeScript
import { ProgressBar } from '../progressbar';
import { ProgressLocation } from '../utils/helper';
/**
* class for tooltip.
*/
export declare class ProgressTooltip {
private control;
/**
* Constructor for progress tooltip.
*
* @param {ProgressBar} control
*/
constructor(control: ProgressBar);
private text;
private svgTooltip;
private textFormat;
isRendered: boolean;
private fadeInInterval;
private previousPosition;
/**
* Method to render the tooltip for progress bar.
*/
tooltip(e?: PointerEvent | TouchEvent): void;
/**
* Function to delay tooltip at initial stage of circular progress.
*/
private tooltipDelay;
/**
* Function to animate tooltip.
*/
private toolTipAnimation;
private renderTooltip;
/**
* Function to get format of tooltip text.
*/
private format;
/**
* Function to remove tooltip.
*/
removeTooltip(duration: number): void;
/**
* Function to get arguments of tooltip.
*/
private triggerTooltipRender;
/**
* Function to pass arguments into svg tooltip.
*
* @param {ProgressBar} chart - The progress bar chart for which the tooltip is being created.
* @param {boolean} isFirst - A flag indicating whether this is the first tooltip.
* @param {ProgressLocation} location - The location where the tooltip should be displayed.
* @param {ProgressLocation} bounds - The bounds within which the tooltip should be confined.
* @returns {void}
* @private
*/
createTooltip(chart: ProgressBar, isFirst: boolean, location: ProgressLocation, bounds: ProgressLocation): void;
/**
* Get module name.
*/
protected getModuleName(): string;
/**
* To destroy the annotation.
*
* @returns {void}
* @private
*/
destroy(): void;
}