| 135652 | return ()=>df.touch(op).run(); |
| 135653 | } |
| 135654 | function simulation(nodes, _) { |
| 135655 | const sim = (0, _d3Force.forceSimulation)(nodes), stop = sim.stop, restart = sim.restart; |
| 135656 | let stopped = false; |
| 135657 | sim.stopped = ()=>stopped; |
| 135658 | sim.restart = ()=>(stopped = false, restart()); |
| 135659 | sim.stop = ()=>(stopped = true, stop()); |
| 135660 | return setup(sim, _, true).on("end", ()=>stopped = true); |
| 135661 | } |
| 135662 | function setup(sim, _, init, pulse) { |
| 135663 | var f = (0, _vegaUtil.array)(_.forces), i, n, p, name; |
| 135664 | for(i = 0, n = ForceParams.length; i < n; ++i){ |