Search results

PortDirective

Nodes Directive

<e-nodes>
<e-node>
<e-node-ports>
<e-node-port>
</e-node-port>
</e-node-ports>
</e-node>
</e-nodes>

Properties

addInfo

any

Allows the user to save custom information/data about a port

Defaults to undefined

constraints

any

Defines the constraints of port

Defaults to ‘None’

height

any

Sets the height of the port

Defaults to 12

horizontalAlignment

any

Sets the horizontal alignment of the port with respect to its immediate parent(node/connector)

  • Stretch - Stretches the diagram element throughout its immediate parent
  • Left - Aligns the diagram element at the left of its immediate parent
  • Right - Aligns the diagram element at the right of its immediate parent
  • Center - Aligns the diagram element at the center of its immediate parent
  • Auto - Aligns the diagram element based on the characteristics of its immediate parent

Defaults to ‘Center’

id

any

Defines the unique id of the port

Defaults to

margin

any

Defines the space that the port has to be moved from its actual position

Defaults to new Margin(0,0,0,0)

offset

any

Defines the position of the port with respect to the boundaries of nodes/connector

Defaults to new Point(0.5,0.5)

pathData

any

Defines the geometry of the port

Defaults to

shape

any

Defines the type of the port shape

  • X - Sets the decorator shape as X
  • Circle - Sets the decorator shape as Circle
  • Square - Sets the decorator shape as Square
  • Custom - Sets the decorator shape as Custom

Defaults to ‘Square’

style

any

Defines the appearance of the port

Defaults to {}

verticalAlignment

any

Sets the vertical alignment of the port with respect to its immediate parent(node/connector)

  • Stretch - Stretches the diagram element throughout its immediate parent
  • Top - Aligns the diagram element at the top of its immediate parent
  • Bottom - Aligns the diagram element at the bottom of its immediate parent
  • Center - Aligns the diagram element at the center of its immediate parent
  • Auto - Aligns the diagram element based on the characteristics of its immediate parent

Defaults to ‘Center’

visibility

any

Defines the type of the port visibility

  • Visible - Always shows the port
  • Hidden - Always hides the port
  • Hover - Shows the port when the mouse hovers over a node
  • Connect - Shows the port when a connection end point is dragged over a node

Defaults to ‘Connect’

width

any

Sets the width of the port

Defaults to 12