logseq-graph-analysis icon indicating copy to clipboard operation
logseq-graph-analysis copied to clipboard

filter on hover

Open trashhalo opened this issue 2 years ago • 1 comments

implement reducers so that only adjacent nodes are displayed on hover (or fade out the rest of the graph, or highlight edges) eg : https://githubbox.com/jacomyal/sigma.js/tree/main/examples/use-reducers , so basically an interactive filter toggle... maybe it could take the same n-hops value from the slider?

trashhalo avatar Jul 18 '22 00:07 trashhalo

How about changing the event of "open a node's corresponding page" from "on click" to "on double-click". The current behavior is imho somewhat unexpected as it effectively doesn't allow to really interact with the graph as any click exits the graph and opens the page. The "double-click to open" is also very established and thus quite intuitive.

This would free up the "on click" for selecting individual (or multiple) nodes in the graph, for which one could then adjust additional optional neighborhood filters, etc. With just "on hover" you couldn't make such adjustments as you would have to move the cursor to the options panel first, hence losing the current "node highlight".

You could even combine both: "on click" changes the selection, while "on hover" previews a different node's selection. All while still being able to change filter settings without losing the selection.

regexident avatar Nov 12 '22 22:11 regexident