ignacioola / insights

A JavaScript library to visualize and navigate graphs
200 stars 42 forks source link

Focus on all matching instead of first matching #4

Open WCG-Khanh opened 10 years ago

WCG-Khanh commented 10 years ago

Each one of my clusters have "male" and "female" nodes. I want to be able to click on a button and have only the "female" nodes in focus and vice versa.

I can partially achieve that by creating a custom "filterByxxxxx" and able to show only "male" or "female" of that cluster, but the relation from parent to each node is not highlighted.

The "focus" feature accomplishes what I want to do, only it stops after it finds the first matching. Is there a way to set focus on all elements matching a criteria and not the "first" matching?