UNPKG

textchecker-element

Version:
17 lines (16 loc) 617 B
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; }