textchecker-element
Version:
Overlay text checker web compoentns.
17 lines (16 loc) • 617 B
TypeScript
import { AnnotationItem, TextCheckerState } from "./textchecker-store";
export declare type TextCheckerElementAttributes = {
targetElement: HTMLTextAreaElement;
hoverPadding: number;
};
export declare class TextCheckerElement extends HTMLElement {
private annotationBox;
private targetElement;
private store;
private hoverPadding;
constructor(args: TextCheckerElementAttributes);
connectedCallback(): void;
updateAnnotations(annotationItems: AnnotationItem[]): void;
renderAnnotationMarkers: (state: TextCheckerState) => void;
onMouseUpdate: (event: MouseEvent) => void;
}