UNPKG

poplar-annotation

Version:

web-based annotation tool for natural language processing (NLP) needs, inspired by brat rapid annotation tool.

27 lines (26 loc) 802 B
import { View } from '../../View'; import { Line } from "../Line/Line"; export declare class ContentEditor { private view; private _lineIndex; private cursorElement; private hiddenTextAreaElement; constructor(view: View); private parentSVGYOffset; private inComposition; private _characterIndex; get characterIndex(): number; set characterIndex(value: number); get lineIndex(): number; get line(): Line.ValueObject; set lineIndex(value: number); render(): [SVGPathElement, HTMLTextAreaElement]; avoidInLabel(direction: "backward" | "forward"): void; update(): void; caretChanged(y: number): void; private constructHiddenTextAreaElement; private constructCaretElement; hide(): void; show(): void; remove(): void; }