HTMLGraph

Update Port

Updates specified properties of a port.

    
canvas.updatePort("port-1", {
  direction: -Math.PI,
});

  

When called without parameters, the coordinates of all edges connected to the port will be updated.

    
canvas.updatePort("port-1")

  

Parameters for updatePort:

NameTypeDescriptionRequiredDefault
idanyIdentifier of the port to updateyes
updateRequestPortUpdateRequestProperties to updateno{}

PortUpdateRequest Parameters

NameTypeDescriptionRequired
directionnumberRadian angle for edge directionno