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

Restart the simulation without 100% heat. #26

Closed
mbostock opened this issue May 9, 2016 · 2 comments
Closed

Restart the simulation without 100% heat. #26

mbostock opened this issue May 9, 2016 · 2 comments
Assignees

Comments

@mbostock
Copy link
Member

mbostock commented May 9, 2016

Currently, simulation.restart sets iteration to zero, thereby setting alpha to one. There’s no way to set the maximum alpha or restart to a slightly later iteration, but I think we’ll need something like this for interactive dragging (#22).

@mbostock mbostock self-assigned this May 9, 2016
@mbostock
Copy link
Member Author

mbostock commented May 9, 2016

Related to this, one problem with simulation.alphaDecay(0) is that it always sets the alpha to 1. This sort of makes sense, but what if you want to set the alpha to another value less than one, but not have it decay further? That’d be nice, because then you could avoid having to call simulation.restart after every tick.

@mootari
Copy link

mootari commented Mar 23, 2018

Was the removal of the return value in .tick() intentional or by accident? (Return was introduced in #20).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

2 participants