Skip to main content

ConnectorEndpoint

A connector endpoint represents one of two endpoints on a ConnectorNode.

// attached, magneted onto edge:
{
// GUID of the node this attaches to
endpointNodeId: string

// Which side of the node it connects to
magnet: 'NONE' | 'AUTO' | 'TOP' | 'LEFT' | 'BOTTOM' | 'RIGHT'
} |

// attached, fixed position on node:
{
// GUID of the node this attaches to
endpointNodeId: string

// position relative to the attached node to adhere the endpoint
position: { x: number, y: number }
} |

// unattached, fixed to canvas:
{
// location on the canvas to position unattached endpoint
position: { x: number, y: number }
}