-
-
Notifications
You must be signed in to change notification settings - Fork 26
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
Edge labels getting overlapped #50
Comments
Hey @NithishG ! This isn't an issue that's exclusive to The built-in smart edges by default will render labels as text roughly in the middle of the drawn line. If you want more control over when, where and how they are rendered, you'll need to use the |
This issue is related to this feature request: #25 |
Hey @tisoap, I agree that it's not an issue exclusive to Just to let you know we have a custom edge that uses So, can we do it in a different way where we can redraw the edge paths according to the user's will as per shown in the video Screen.Recording.2023-05-29.at.1.19.15.PM.mov |
By default, the label rendered does not have knowledge of other labels in the graph. Using the Your video suggestion maps to another feature request for adding draggable points in the Edge, which is also not officially supported by React Flow: #36 |
This issue is stale because it has been open for 7 days with no activity. |
This issue was closed because it has been inactive for 7 days since being marked as stale. |
Describe the Bug
We have used this library in our application for connecting two edges. Theres's an issue that we have noticed that the edge labels are getting overlapped one over the other as we have lot of nodes connecting each other.
Minimal Example
https://codesandbox.io/s/edge-overlapping-32omg0?file=/src/Flow.js
Steps to Reproduce the Bug or Issue
Go to the code sandbox, we can see the edge labels getting overlapped on each other.
Expected behavior
As a user, we would like the edges not getting overlapped and should be drawn in such a way that both the labels should be displayed properly.
Is there any way we can achieve this by providing or customising the props, that also would be much helpful for us.
Screenshots or Videos
Platform
Additional context
No response
The text was updated successfully, but these errors were encountered: