arbor icon indicating copy to clipboard operation
arbor copied to clipboard

stop() doesn't stop

Open gruppler opened this issue 12 years ago • 4 comments

If I stop the particle system while it's running, the system doesn't stop completely. The nodes seem to stop moving relative to their connected nodes, but the entire system continues to gravitate toward the center.

gruppler avatar Dec 14 '11 21:12 gruppler

It appears that the webworker continues to run for awhile after stopping. Is there a way to kill it, or can you add an option to not use webworkers?

gruppler avatar Dec 15 '11 16:12 gruppler

I have the same problem. After calling ParticleSystem.stop(), the method ParticleSystem._updateBound still gets called. Additionally, when adding edges to the graph, the simulation restarts. Both of these don't happen when web workers are disabled.

veu avatar Dec 31 '11 16:12 veu

I have a similar problem, the other way round (not using webworkers so far): I can stop and it stops immediately but I can't start again. Calling start(), the animation is still stopped. I can still add edges though, but they don't show.

kjyv avatar Nov 24 '12 17:11 kjyv

Debugging the non-minified version, I can see that calling start calls system.js:start which in turn calls state.kernel.start, however not passing any parameters that start needs (unpause) to actually continue running. I can fix my issue by changing system.js:75-77 to

start:function(unpause){
        state.kernel.start(unpause)
},

Actually, I'll add this as a new issue and provide a fork with the fix.

kjyv avatar Dec 04 '12 16:12 kjyv