Skip to content

[gephi-lite] adding layout controller on graph#302

Merged
sim51 merged 4 commits intodevfrom
bsi/layout-control
Feb 13, 2026
Merged

[gephi-lite] adding layout controller on graph#302
sim51 merged 4 commits intodevfrom
bsi/layout-control

Conversation

@sim51
Copy link
Collaborator

@sim51 sim51 commented Feb 6, 2026

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 :

  • 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 when an algo is running

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:

  • Bugfix
  • Feature
  • Code style update (formatting, renaming)
  • Refactoring (no functional changes, no api changes)
  • Build related changes
  • Documentation content changes
  • Other (please describe):

NOTE: Try to limit your pull request to one type, submit multiple pull requests if needed.

What is the current behavior?

Issue Number: N/A

NOTE: Describe the current behavior that you are modifying, or link to a relevant issue.

What is the new behavior?

NOTE: Describe the behavior or changes that are being added by this PR.

Other information

NOTE: Any other information that is important to this PR such as screenshots of how the component looks before and after the change.

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.
@sim51 sim51 force-pushed the bsi/layout-control branch from dd41a8c to 0420b5a Compare February 12, 2026 12:56
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.
@sim51 sim51 force-pushed the bsi/layout-control branch from cfe6c56 to 5e6150e Compare February 13, 2026 08:54
@sim51 sim51 merged commit a13db8a into dev Feb 13, 2026
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant