@launchmenu/core
Version: 
An environment for visual keyboard controlled applets
9 lines • 627 B
TypeScript
/**
 * Calculates the new position to jump to, based on the text, current position and direction
 * @param text The text to jump in, using the symbols and grouping them to determine the jump pos
 * @param pos The position the caret is currently in
 * @param direction The direction that should be jumped to (sign indicates direction, scale indicates number of groups to jump)
 * @param spaceIsGroup Whether to treat spaces as their own word group too
 */
export declare function getJumpTokenPos(text: string, pos: number, direction: number, spaceIsGroup?: boolean): number;
//# sourceMappingURL=getJumpTokenPos.d.ts.map