@point-api/dropdown-react
Version:
HOC to add a Point API autocomplete dropdown
17 lines (16 loc) • 592 B
TypeScript
/**
* Get the line height of an HTMLElement
* @param element - the target element
* @returns the line height in px
*/
export declare function getLineHeight(element: HTMLElement): number;
/**
* Search a block of text and return all matched text
* @param re - the RegEx to match text against
* @param text - the block to search
* @returns a list of the found RegEx matches
*/
export declare function matchAll(re: RegExp, text: string): RegExpExecArray[];
export declare const CONTENT_REGEX: RegExp;
export declare const NAME_REGEX: RegExp;
export declare function getOrigin(): string;