{"action":"created","issue":{"url":"https://api.github.com/repos/cytoscape/cytoscape.js-cose-bilkent/issues/13","repository_url":"https://api.github.com/repos/cytoscape/cytoscape.js-cose-bilkent","labels_url":"https://api.github.com/repos/cytoscape/cytoscape.js-cose-bilkent/issues/13/labels{/name}","comments_url":"https://api.github.com/repos/cytoscape/cytoscape.js-cose-bilkent/issues/13/comments","events_url":"https://api.github.com/repos/cytoscape/cytoscape.js-cose-bilkent/issues/13/events","html_url":"https://github.com/cytoscape/cytoscape.js-cose-bilkent/issues/13","id":147050099,"number":13,"title":"layout doesn t stop","user":{"login":"misu200","id":10162999,"avatar_url":"https://avatars.githubusercontent.com/u/10162999?v=3","gravatar_id":"","url":"https://api.github.com/users/misu200","html_url":"https://github.com/misu200","followers_url":"https://api.github.com/users/misu200/followers","following_url":"https://api.github.com/users/misu200/following{/other_user}","gists_url":"https://api.github.com/users/misu200/gists{/gist_id}","starred_url":"https://api.github.com/users/misu200/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/misu200/subscriptions","organizations_url":"https://api.github.com/users/misu200/orgs","repos_url":"https://api.github.com/users/misu200/repos","events_url":"https://api.github.com/users/misu200/events{/privacy}","received_events_url":"https://api.github.com/users/misu200/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2016-04-08T21:59:48Z","updated_at":"2016-04-21T12:29:04Z","closed_at":null,"body":"\r\nI have the following fragment of code where I try to stop a running layout:\r\n\r\n            var options = {\r\n              name: 'cose-bilkent',\r\n               // Called on `layoutready`\r\n              ready: function () {\r\n                  console.log(\"LAYOUT READY\");\r\n              },\r\n              // Called on `layoutstop`\r\n              stop: function () {\r\n                  console.log(\"LAYOUT STOP\");\r\n              },\r\n                   fit:true,padding:20,randomize:false,nodeRepulsion:40500,idealEdgeLength:70,edgeElasticity:0.45,nestingFactor:0.9,gravity:0.9,numIter:1000,tile:true,us eMultitasking:true,animate:false\r\n            }\r\n\r\n            var layout = cy.makeLayout(options);\r\n\r\n            layout.run();\r\n            console.log(\"DONE\");\r\n\r\n            setTimeout(function() {\r\n                console.log(\"LAYOUT_FORCED_STOP\");\r\n                layout.stop();\r\n            }, 5000);\r\nHowever it seems the layout doesn't stop after 5 seconds:\r\n\r\nDONE\r\nThread log: start thread\r\nLAYOUT_FORCED_STOP\r\nClassic CoSE layout finished after 1000 iterations\r\nTotal execution time: 10597 miliseconds.\r\nLAYOUT READY\r\nLAYOUT STOP"},"comment":{"url":"https://api.github.com/repos/cytoscape/cytoscape.js-cose-bilkent/issues/comments/212895911","html_url":"https://github.com/cytoscape/cytoscape.js-cose-bilkent/issues/13#issuecomment-212895911","issue_url":"https://api.github.com/repos/cytoscape/cytoscape.js-cose-bilkent/issues/13","id":212895911,"user":{"login":"maxkfranz","id":989043,"avatar_url":"https://avatars.githubusercontent.com/u/989043?v=3","gravatar_id":"","url":"https://api.github.com/users/maxkfranz","html_url":"https://github.com/maxkfranz","followers_url":"https://api.github.com/users/maxkfranz/followers","following_url":"https://api.github.com/users/maxkfranz/following{/other_user}","gists_url":"https://api.github.com/users/maxkfranz/gists{/gist_id}","starred_url":"https://api.github.com/users/maxkfranz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/maxkfranz/subscriptions","organizations_url":"https://api.github.com/users/maxkfranz/orgs","repos_url":"https://api.github.com/users/maxkfranz/repos","events_url":"https://api.github.com/users/maxkfranz/events{/privacy}","received_events_url":"https://api.github.com/users/maxkfranz/received_events","type":"User","site_admin":false},"created_at":"2016-04-21T12:29:04Z","updated_at":"2016-04-21T12:29:04Z","body":"@metincansiper Any idea why the layout would have this behaviour?"}}