MrBlenny / react-flow-chart

🌊 A flexible, stateless, declarative flow chart library for react.
https://mrblenny.github.io/react-flow-chart/index.html
MIT License
1.46k stars 307 forks source link

feature/show-arrow-heads #145

Closed davidanitoiu closed 4 years ago

davidanitoiu commented 4 years ago
aratabekov commented 4 years ago

@MrBlenny hi David. Thanks for the awesome project, this has been really helpful in my app. Me and my team really need arrow heads on links. Do you mind looking over this pull request and merge it if you think it's ok?

ajuhos commented 4 years ago

You should include the linkColor in the id of the marker def, otherwise having multiple link colors defined via properties won't have an effect on the arrow head. (I am not an SVG expert, but I think defs are cached based on id.)