poplar-annotation
Version:
web-based annotation tool for natural language processing (NLP) needs, inspired by brat rapid annotation tool.
25 lines (24 loc) • 1.29 kB
TypeScript
import { Config as ViewConfig } from "./View/View";
import { Config as StoreConfig } from "./Store/Store";
import { Config as TextSelectionHandlerConfig } from "./View/EventHandler/TextSelectionHandler";
import { Config as TwoLabelsClickedHandlerConfig } from "./View/EventHandler/TwoLabelsClickedHandler";
export interface ConfigInput {
readonly contentClasses?: Array<string>;
readonly labelClasses?: Array<string>;
readonly connectionClasses?: Array<string>;
readonly labelPadding?: number;
readonly lineHeight?: number;
readonly topContextMargin?: number;
readonly bracketWidth?: number;
readonly allowMultipleLabel?: "notAllowed" | "differentCategory" | "allowed";
readonly allowMultipleConnection?: "notAllowed" | "differentCategory" | "allowed";
readonly connectionWidthCalcMethod?: "text" | "line";
readonly labelWidthCalcMethod?: "max" | "label";
readonly labelOpacity?: number;
readonly selectingAreaStrip?: RegExp | null | undefined;
readonly unconnectedLineStyle?: "none" | "straight" | "curve";
readonly contentEditable?: boolean;
}
export interface Config extends ViewConfig, StoreConfig, TextSelectionHandlerConfig, TwoLabelsClickedHandlerConfig {
}
export declare function parseInput(input: ConfigInput): Config;