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
:
Name | Type | Description | Required | Default |
---|---|---|---|---|
id | any | Identifier of the port to update | yes | |
updateRequest | PortUpdateRequest | Properties to update | no | {} |
PortUpdateRequest
Parameters
Name | Type | Description | Required |
---|---|---|---|
direction | number | Radian angle for edge direction | no |