UNPKG

poplar-annotation

Version:

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

17 lines (16 loc) 558 B
import { Line } from "../Line"; import { TopContextUser } from "./TopContextUser"; export declare class TopContext { backgroundElement: SVGGElement; readonly belongTo: Line.ValueObject; svgElement: SVGGElement; readonly children: Set<TopContextUser>; constructor(belongTo: Line.ValueObject); get layer(): number; update(): void; render(): [SVGGElement, SVGGElement]; addChild(child: TopContextUser): number; renderChild(child: TopContextUser): void; removeChild(child: TopContextUser): void; remove(): void; }