Object
Allows the user to save custom information/data about a port
Defines the allowed direction for connections to the port
Defines the constraints of port
number
Sets the height of the port
string
Defines the unique id of the port
string[]
Defines the collection of the objects that are connected to a particular port
Defines the space that the port has to be moved from its actual position
string[]
Defines the collection of the objects that are connected to a particular port
string
Defines the geometry of the port
Defines the appearance of the port
<div id='diagram'></div>
let port: PointPortModel[] =
[{ id: 'port1', visibility: PortVisibility.Visible, shape: 'Circle', offset: { x: 0, y: 0 } },];
let nodes: NodeModel[] = [{
id: 'node1', width: 100, height: 100, offsetX: 100, offsetY: 100,
}];
nodes.ports = port;
let diagram: Diagram = new Diagram({
...
nodes : nodes,
...
});
diagram.appendTo('#diagram');
defines the tooltip for the Ports
Defines the type of the port visibility
number
Sets the width of the port