Layout of link connection to ports

Hi,

I’d like to change the way my links access the ports. At this point, every link is drawn randomly. But my links should only connect horizontally. Is it possible for me to only allow links to start or stop horizontally?

This screenshot shows the correct and incorrect ways of connection.

Thanks in advance

Yes, by modifying the link’s or port’s fromSpot and toSpot.

Please read: GoJS Link Connection Points on Nodes -- Northwoods Software

Thanks a lot, worked like a charm.