zent
Version:
一套前端设计语言和基于React的实现
10 lines (9 loc) • 309 B
TypeScript
export interface IGetCaretCoordinatesOption {
debug?: boolean;
}
declare function getCaretCoordinates(element: HTMLInputElement | HTMLTextAreaElement, position: number, { debug }: IGetCaretCoordinatesOption): {
top: number;
left: number;
height: number;
};
export default getCaretCoordinates;