UNPKG

@launchmenu/core

Version:

An environment for visual keyboard controlled applets

15 lines 724 B
import { FC } from "react"; import { ISyntaxHighlighterSelectionProps } from "./_types/ISyntaxHighlighterSelectionProps"; /** * Retrieves the pixel size of the text * @param element The element to get the text from, assumes characters are individually separated * @param end The end of the range to measure * @returns The number of pixels */ export declare function measureText(element: Element, end: number): number; /** * Renders a cursor and selection at the right place in the passed child element. * Assumes all characters are in a separate elements. */ export declare const SyntaxHighlighterSelection: FC<ISyntaxHighlighterSelectionProps>; //# sourceMappingURL=SyntaxHighlighterSelection.d.ts.map