antonioru / beautiful-react-diagrams

💎 A collection of lightweight React components and hooks to build diagrams with ease 💎
https://antonioru.github.io/beautiful-react-diagrams/
MIT License
2.67k stars 175 forks source link

Ability to customize links #147

Closed obadakhalili closed 3 years ago

obadakhalili commented 3 years ago

Is your feature request related to a problem? Please describe. It would be nice if links can be customized the same way nodes are. For example, I really need to have double links going outward, but I cannot achieve that because the way the library is written, links are black boxes.

obadakhalili commented 3 years ago

And ports are not enough because a) not very convenient, b) they can't be connected while initializing the data.

stevechappell2000 commented 3 years ago

Not sure why you cannot connect while initializing. Define the links[ input: xx, output: yy]

obadakhalili commented 3 years ago

Completely missed the fact that I can have ports in inputs, not just nodes. Thanks. Though it would still be nice if links can be somehow customized, because linking 2 ports to imitate having double links is still a hack.