How to rotate marker end automatically ? #1892
Unanswered
gitHoussem
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Hello everyone,
I have an issue making my custom marker end rotate automatically to follow the edge path. I'm noticing that the same issue exists in the official documentation in reactflow for marker ends https://reactflow.dev/examples/edges/markers (try moving node G for example - you will notice that the arrow head does not adjust its angle based on the edge direction)
In my case this is what i have :

This is the desired result after I move the destination node (painted) :
Note
This issue happens when I move nodes around, the edges paths get automatically updated, but the arrowhead for some reason are not following along with the rotation
My Custom Marker:
Custom Edge:
Thank you !
Beta Was this translation helpful? Give feedback.
All reactions