-
Notifications
You must be signed in to change notification settings - Fork 712
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
Fix for inaccurate bidrectional edges on edge hover #2342
Conversation
client/app/scripts/reducers/root.js
Outdated
const opposite = action.edgeId.split(EDGE_ID_SEPARATOR).reverse().join(EDGE_ID_SEPARATOR); | ||
highlightedEdgeIds = highlightedEdgeIds.add(opposite); | ||
} | ||
return highlightedEdgeIds; |
This comment was marked as abuse.
This comment was marked as abuse.
Sorry, something went wrong.
This comment was marked as abuse.
This comment was marked as abuse.
Sorry, something went wrong.
This comment was marked as abuse.
This comment was marked as abuse.
Sorry, something went wrong.
@fbarl Simplified with the approach you laid out. |
I absolutely agree the only proper way to do it would be not to include non-existent IDs there, but that's also something that could be done without bidirectionality information (if we intersect with the list of all edge IDs). That's what I plan to do in the next refactoring round by moving both |
I just discovered an issue that hopefully didn't leave a big mark so far, but is relevant for this story. Having
Then a big mess happens when A simple solution would be to set |
Nice catch! Updated the edge ID separator to several dashes |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM! Don't forget to (at least partially) squash the commits.
f48d086
to
7de074f
Compare
7de074f
to
451f6b2
Compare
df2190d
to
c7f6a07
Compare
Fix for #2341
Fixes a bug where bi-drectional arrows don't show up when mousing over the edge. Mousing over the node has always worked, but edge mouseover did not because only one edge is hover-able.
@fbarl Could you review please?