UNPKG

@carbon/charts

Version:
19 lines (18 loc) 804 B
import { Component } from '../component'; export declare class Title extends Component { type: string; render(): void; /** * Truncates title creating ellipses and attaching tooltip for exposing full title. */ truncateTitle(title: any, maxWidth: any): void; protected getMaxTitleWidth(): any; /** * 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: any, end: any, width: any): any; }