projectstorm / react-diagrams

a super simple, no-nonsense diagramming library written in react that just works
https://projectstorm.cloud/react-diagrams
MIT License
8.51k stars 1.17k forks source link

port aligment on full width port #843

Closed flieks closed 3 years ago

flieks commented 3 years ago

Hi,

I made the port the full width of the NodeWidget and use the alignment to change the position of the link depending on the position of the other node's position. Problem is the link path takes the middle of the port to connect to: image

Is there a way to change this to the side ?

Thanks

drnguyenn commented 3 years ago

Have you tried to set the port width to fit-content ?

flieks commented 3 years ago

we are again trying with 2 ports. Thanks for the tip