mstefaniuk / graphviz.it

Graphviz fiddling website
http://graphviz.it
GNU Lesser General Public License v3.0
111 stars 12 forks source link

Center the viewport on a vertex of interest #10

Open sjackman opened 8 years ago

sjackman commented 8 years ago

I'm looking at a graph with 642 vertices. ⌘F highlights a vertex by name. Could it also center the viewport on that vertex? See for example http://graphviz.it/#/dcunTyOQ/2 and find vertex 447+.

mstefaniuk commented 8 years ago

@sjackman It would not be possible when you search for abra and you have two nodes abracadabra and abracadibra. I would prefer adding key shortcut to navigate from code token to graph. It should minimize ambiguity.

sjackman commented 8 years ago

When you have multiple hits in a word processing document, the GUI displays the number of matches and two arrows to cycle through the matches.

mstefaniuk commented 8 years ago

Shortcut ⌘F makes simple search on dot source and let it be like that. Navigation from source to graph is another thing. You can find source token by text (with ⌘F) or you can move cursor to it. Diagram focus should be another shortcut like in OO IDE navigation to interface definition or showing doc bubble. It should only work when text is a node or relation but not on attribute with color name.