Interface for a class PointPort
Object
Allows the user to save custom information/data about a port
Defines the constraints of port
number
Sets the height of the port
string
Sets the horizontal alignment of the port with respect to its immediate parent(node/connector)
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
Defines the position of the port with respect to the boundaries of nodes/connector
string[]
Defines the collection of the objects that are connected to a particular port
string
Defines the geometry of the port
string
Defines the type of the port shape
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');
string
Sets the vertical alignment of the port with respect to its immediate parent(node/connector)
Defines the type of the port visibility
number
Sets the width of the port