Frontend API

export class Port

A Port is either an input or output of a Node. It offers the possibility to connect nodes together.

For a functional purpose, a port has a name and a port. The name is the label that should be displayed, and the port correspond to the name used to differentiate two ports.

We use several inports or outports to offer different connexion functionality. For example, a node Addition could have to inports A and B and one outport sum. A and B are used to differentiate the two data to sum, and the outport is used to transmit the result to another node. We can link it to another sum node and sum the result with another B data. An so on.

Created by antoine on 09/06/17.

addConnectedEdge (id: string): void

Connect an edge to the port.