UNPKG

367 BTypeScriptView Raw
1/**
2 * Measure width in pixels of a string displayed with styles provided by `className`.
3 * Should only be used if measuring can't be done with existing DOM elements.
4 */
5export declare function measureTextWidth(text: string, className?: string, containerElement?: HTMLElement): number;
6export declare function padWithZeroes(str: string, minLength: number): string;