UNPKG

ngx-diagrams

Version:

> Light Weight, Modular, Typed Diagram Engine for Angular

29 lines (28 loc) 828 B
import { Observable } from 'rxjs'; import { NodeModel } from '../../models/node.model'; import { DefaultPortModel } from './default-port.model'; export declare class DefaultNodeModel extends NodeModel { name: string; color: string; height$: Observable<number>; width$: Observable<number>; constructor({ name, type, color, id }?: { name?: string; type?: string; id?: string; color?: string; }); addInPort({ name, type, id, linkType }: { name: string; type?: string; id?: string; linkType?: string; }): DefaultPortModel; addOutPort({ name, type, id, linkType, maximumLinks }: { name: string; type?: string; id?: string; linkType?: string; maximumLinks?: number; }): DefaultPortModel; }