UNPKG

ngx-diagrams

Version:

This library was generated with [Angular CLI](https://github.com/angular/angular-cli) version 7.2.0.

22 lines (21 loc) 619 B
import { PortModel } from '../../models/port.model'; import { LinkModel } from '../../models/link.model'; export interface DefaultPortModelConfig { id?: string; isInput?: boolean; name?: string; type?: string; label?: string; linkType?: string; } export declare class DefaultPortModel extends PortModel { in: boolean; label: string; links: { [id: string]: any; }; constructor({ isInput, name, type, id, label, linkType }?: DefaultPortModelConfig); link(port: PortModel): LinkModel; canLinkToPort(port: PortModel): boolean; createLinkModel(): LinkModel; }