/** * Simple text width */ export default class TextRuler { private _style; private _sizes; private _span; constructor(_style?: any); style: any; /** * converts a pixel point to a caret position in text */ convertPointToCharacterPosition(text: any, point: any): number; calculateLineHeight(): any; /** * calculates the width & height of text */ calculateSize(text: any): any; /** * calculates the size of one character */ calculateCharacterSize(char: any): any; /** */ _getLetterSpacing(): any; /** * returns a temporary span which gets removed after * calculations */ _getTemporarySpan(): any; }