Skip to content
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

Add additional semantic information on hovering graph nodes / edges #8565

Open
grtlr opened this issue Jan 2, 2025 · 0 comments
Open

Add additional semantic information on hovering graph nodes / edges #8565

grtlr opened this issue Jan 2, 2025 · 0 comments
Labels
enhancement New feature or request feat-graph-view Everything related to the graph view ui concerns graphical user interface

Comments

@grtlr
Copy link
Contributor

grtlr commented Jan 2, 2025

It would be very helpful to highlight semantically relevant nodes (or edges) to an item that is currently hovered. The most basic examples would be to highlight adjacent nodes / edges in a secondary color.

Relevant discussion on Discord here: https://discord.com/channels/1062300748202921994/1320772574271115384/1320772574271115384

Maybe we could have a hovering mode, set via blueprints, that defines how the hovering should behave:

  • Hovering highlights adjacent nodes
  • Hovering highlights reachable nodes
  • ...

To implement this, we would have to actually parse the resulting (combined) graph into petgraph for efficient queries. This is a little bit more involved, as petgraph does not have subgraphs, if I remember correctly. Also we would need to add the hover information to the state object, due to the immediate mode rendering. Note that in some cases, this might lead to a one-frame rendering delay.

@grtlr grtlr added enhancement New feature or request feat-graph-view Everything related to the graph view ui concerns graphical user interface labels Jan 2, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request feat-graph-view Everything related to the graph view ui concerns graphical user interface
Projects
None yet
Development

No branches or pull requests

1 participant