[gephi-lite] adding layout controller on graph#302
Merged
Conversation
916ed86 to
d279f29
Compare
cd9823f to
dd41a8c
Compare
On the graph page, you can start/stop/run the last used layout, directly on the graph. The lastUsedLayout is store in the session using the corresponding atom. Now when you are on a layout setting page : - you can close it even if the algo is running (the close button is on top of the loader) - you can't change the parameters of the running algo Moreover, I review the node drag'n'drop feature to restart the algo while you drag.
Nodes position should not be saved while a layout is running, they will be saved when the layout will be stopped.i Otherwise it triggers a reset of the sigma's graph, which leads to restart of the layout with the inital data.
dd41a8c to
0420b5a
Compare
When guessing the parameters, it's value is usually a long float number. With a step of 1, it breaks the html validation of the number (waiting an integer and not a float). By using 'any' as step it fixes the issue. Same for gravity, which had a step of 0.01 to follow the guesssing, but manually you want increase it by one.
While a layout is running, clickin on a layout item on the menu stop the running layout and set this layout as the latest (for buttons on the graphs). Now it's possible to change the layout parameter when its is already running. A restart is called. iOn the menu, display a spinner next the algo that is running.
cfe6c56 to
5e6150e
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
On the graph page, you can start/stop/run the last used layout, directly on the graph.
The lastUsedLayout is store in the session using the corresponding atom.
Now when you on a layout setting page :
Moreover, I review the node drag'n'drop feature to restart the algo while you drag.
Pull request type
Check the type of change your PR introduces:
What is the current behavior?
Issue Number: N/A
What is the new behavior?
Other information