speech-to-element
Version:
Add real-time speech to text functionality into your website with no effort
8 lines (7 loc) • 491 B
TypeScript
export declare class Cursor {
static setOffsetForGeneric(element: HTMLElement, offset: number, countedText?: number): number;
static focusEndOfGeneric(element: HTMLElement): void;
static setOffsetForSafariGeneric(element: HTMLElement, newTextLength: number): void;
static setOffsetForPrimitive(element: HTMLInputElement, offset: number, scroll: boolean): void;
static getGenericElementCursorOffset(element: HTMLElement, selection: Selection, isStart: boolean): number;
}