Open bastienJS opened 3 years ago
Hmmm I believe that if you want to change the link appearance, you'll probably have to build a custom link entity.
I've done it in my project, if you want to take a look here.
Thx I will have a look at it. I thought setting a color could be an easy link.setColor('rgb...') like your competitors do from https://github.com/wbkd/react-flow 👍
Well, digging a little bit I've found out that apparently the DefaultLink
has a setColor
method. Never used it though, so I'm not sure if it works as intended.
But overall, I think the idea of react-diagrams
is to offer a good basis where you can build upon and customize freely to your needs. That's different than any other "competitors", where you can more easily customize simple stuff, but you really can't change whatever you want.
How can I set the color of a link object? In the sample apps I have found nothing and the link object itself has no function to set any color like the nodes have...