-
Notifications
You must be signed in to change notification settings - Fork 68
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Feature request: reverse arrow style #77
Comments
It makes sense indeed. I'll have a look when I find some time! (sorry I took so long to answer, I guess I missed the notification!) |
solution should be the same as #79 |
Any update on this? This would be very nice to have: i just had to write a whole bunch of logic (useState, useEffect) in order to pass the children's ids back up to the parent component from whence arrows are drawn when a simple switch in direction would have been a one-liner. |
@mstykow This is not a particularly simple piece of work. You can always fork the library and put up a PR |
Should be solved by #139 😉 |
Thanks for this library @pierpo , it's very nice.
The way element relations work, all relations to a source element must be known at the time the source element is rendered. Sometimes it would be programmatically convenient to express all relations to a target element instead of a source element. We could accomplish this by adding a single flag to the arrow style that indicates that instead of being drawn forward, with the arrowhead pointing at the target, the arrow should be draw backward, with the arrowhead pointing at the source.
Then in
generateAllArrowMarkers
draw the arrowhead pointing at the source if thearrowForward
property isFalse
.The text was updated successfully, but these errors were encountered: