projectstorm / react-diagrams

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

How to avoid or limit points with PortWidget #771

Closed davidsu06 closed 3 years ago

davidsu06 commented 3 years ago

Hi, I need to avoid or limit the creation of points when clicking a link, I'm currently using PortWidget.

Thanks for your help!

berabulut commented 3 years ago

This code does not allow any points in a link. It's inside my diagram constructor. this.diagramEngine.maxNumberPointsPerLink = 0;

davidsu06 commented 3 years ago

Thanks! It works perfectly. Do you maybe know how to show the link label when hovering the link?