Murali-group / GraphSpace

The interactive graph sharing website.
http://graphspace.org
GNU General Public License v2.0
30 stars 41 forks source link

Added functionality for default automatic layout and layout settings #339

Closed lohani2280 closed 5 years ago

lohani2280 commented 6 years ago

This PR refers to https://github.com/Murali-group/GraphSpace/issues/289. It accomplishes the goal to reduce the number of clicks required to set an automatic layout option as default.

I followed the solution one as proposed by @adbharadwaj and also agreed by @jlaw9 to solve the issue ,i.e, Show the button to set layout as default when an automatic algorithm has been applied. When user sets an automatic algorithm as default, save the layout currently generated layout as a manual layout and then set it as default. (All of this done behind the scene) You need to add this logic to set layout as default button. Problem with this issue is that we are not setting algorithm as default, rather we are saving and setting current layout as default.

In the gif below, I have tried to demonstrate the above solution default_layout