cytoscape / wineandcheesemap

http://www.wineandcheesemap.com/
MIT License
80 stars 51 forks source link

Zoom-out on unselect #8

Open eljeffeg opened 3 years ago

eljeffeg commented 3 years ago

It would seem to make sense to record the zoom and screen position prior to jumping into the radial layout. Then when you exit the layout, restoring that viewpoint. Otherwise, you lose your place in the graph.

Right now, it does this:

Click on: Auto Zoom In -> Tween Radial Layout
Click off: Tween Force Layout

It would be nice if it did this:

Click on: Auto Zoom In -> Tween Radial Layout
Click off: Tween Force Layout -> Auto Zoom out
maxkfranz commented 3 years ago

That's an interesting observation. It depends on whether the user is interested in going forwards or going backwards.

If the user clicks one one and then deselects it, either approach may be sensible.

If the user clicks a series of nodes (A, then B, then C), then it may feel unnatural to go back to A when you've deselected C. For long chains, the user may not remember -- or even care -- where they started.