package.dist.components.essentials.title.d.ts Maven / Gradle / Ivy
import { Component } from '../component';
import { RenderTypes } from '../../interfaces/enums';
export declare class Title extends Component {
type: string;
renderType: RenderTypes;
render(animate?: boolean): void;
/**
* Truncates title creating ellipses and attaching tooltip for exposing full title.
*/
truncateTitle(title: any, maxWidth: number): void;
protected getMaxTitleWidth(): number;
/**
* Returns the index for a maximum length substring that is less than the width parameter.
* @param title the title node used for getting the text lengths of substrings
* @param start the start index for the binary search
* @param end the end index for the binary search
* @param width the width of the svg container that holds the title
*/
protected getSubstringIndex(title: any, start: number, end: number, width: number): number;
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy