UNPKG

poplar-annotation

Version:

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

26 lines (25 loc) 867 B
/** * 某一 "种" connection 的文字部分是一样的 * 只需预先构造,而后在使用时 cloneNode 即可 */ import { Base } from '../../../Infrastructure/Repository'; import { ConnectionCategory } from '../../../Store/ConnectionCategory'; import { Font } from '../../Font'; import { View } from '../../View'; export declare namespace ConnectionCategoryElement { class Factory { private store; private svgElement; constructor(store: ConnectionCategory.Entity, font: Font.ValueObject, classes: Array<string>); get id(): number; create(): SVGGElement; } export interface Config { readonly connectionClasses: Array<string>; } export class FactoryRepository extends Base.Repository<Factory> { private config; constructor(view: View, config: Config); } export {}; }