Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

smoother mothion for node group collapse and expansion #53

Open
tedchwang opened this issue Dec 2, 2020 · 1 comment
Open

smoother mothion for node group collapse and expansion #53

tedchwang opened this issue Dec 2, 2020 · 1 comment
Labels
enhancement New feature or request

Comments

@tedchwang
Copy link
Collaborator

Is your feature request related to a problem? Please describe.
Currently the dependency graph of a model produces violent motions when a node group is collapsed or expanded, messing up the node layout that I had on screen, and making it difficult to follow which part of the graph has changed.

Describe the solution you'd like
Set forces to be very small and gradually increase them to the standard strength.

Describe alternatives you've considered
Setting link distences to be small and gradually increasing them. This is the current behavior and it does not produce good enough results.

@tedchwang tedchwang added the enhancement New feature or request label Dec 2, 2020
@tedchwang
Copy link
Collaborator Author

Perhaps:

  • add a "newlyEntered" class to nodes in newly expanded node groups
  • make the "collide" force and link force strengths depend on d.newlyEntered and simulation.alpha
  • remove "newlyEntered" class after simulation stops
  • see if we can skip labeling links that have one end changed from node to group (or group to node) not be considered as newlyEntered

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant