Closed ftrotter closed 9 years ago
The code we'll need is:
forceToggle: () -> a = @a if a.force.alpha() > 0 a.force.stop() else a.force.resume()
Just need to make it accessible in dash, calls to this code from console gives desired behavior.
In 0.4.2 -- calls to alchemy.forceLayout.[ start | stop | toggle]() does what you think they would.
Currently the forceLocked configuration variable allows the force directed algo to be set initially, or ongoing...
But there are cases where you want to momentarily pause the application of the force in the graph for some reason, and then later you may want to restart it.
It is simplish to do this in the underlying D3 library... this should be exposed at the GA level...
-FT