uncharted-aske / HMI

Apache License 2.0
1 stars 0 forks source link

[FEATURE] Set full Bio graph as background context on query #183

Closed adamocarolli closed 3 years ago

adamocarolli commented 3 years ago

What

When a user makes a query I've restyled grafer's layers to fade out (background) the full graph context. And when no queries are made fade in (foreground) the full graph context.

Why

To highlight what the user is currently focusing on. Either the focus is on the query layers or when no queries present, the focus is on exploring the full graph.

How

Here I edit grafer's visual layer options from the Bio view via events. The visual layer options can be changed performantly, without re-rendering the whole graph. I'm editing these layers by accessing internal layer properties. (Currently, Grafer doesn't provide an interface for changing these properties.)

Testing

  1. Make a query in the bio view and observe how the larger graph context gets backgrounded.
  2. Clear the query and observe how the context gets foregrounded.
  3. Ensure that any combination of query paths sets the graph context correctly as bg/fg.

Screenshots

Backgrounded Context: Screen Shot 2021-04-09 at 1 39 53 PM Screen Shot 2021-04-19 at 2 29 34 PM Foregrounded Context: Screen Shot 2021-04-19 at 2 17 21 PM Screen Shot 2021-04-19 at 2 54 30 PM