projectstorm / react-diagrams

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

Routing - want curved edges in links #879

Open SHRIRAM0509 opened 2 years ago

SHRIRAM0509 commented 2 years ago

I have been trying to implement a custom right-angled widget. When I tried to read the code, I found that points (SVG) are added every time a user moves and drags the link.

I tried adding a custom Path to create the curve, but it makes everything rigid. I want right-angled routing to be curved instead of it being at 90deg.

What I want: Screenshot from 2021-08-19 17-50-54

What I have: right angle links

It would be great if someone can help with this. Thanks.

aaron-michaux commented 2 years ago

My guess is that you have to create your own custom link, and in the render, spit out your own SVG.