{"action":"created","issue":{"url":"https://api.github.com/repos/dhotson/springy/issues/81","repository_url":"https://api.github.com/repos/dhotson/springy","labels_url":"https://api.github.com/repos/dhotson/springy/issues/81/labels{/name}","comments_url":"https://api.github.com/repos/dhotson/springy/issues/81/comments","events_url":"https://api.github.com/repos/dhotson/springy/issues/81/events","html_url":"https://github.com/dhotson/springy/issues/81","id":144189260,"number":81,"title":"return absolute x,y position of each node","user":{"login":"Awakening-j","id":8085088,"avatar_url":"https://avatars.githubusercontent.com/u/8085088?v=3","gravatar_id":"","url":"https://api.github.com/users/Awakening-j","html_url":"https://github.com/Awakening-j","followers_url":"https://api.github.com/users/Awakening-j/followers","following_url":"https://api.github.com/users/Awakening-j/following{/other_user}","gists_url":"https://api.github.com/users/Awakening-j/gists{/gist_id}","starred_url":"https://api.github.com/users/Awakening-j/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Awakening-j/subscriptions","organizations_url":"https://api.github.com/users/Awakening-j/orgs","repos_url":"https://api.github.com/users/Awakening-j/repos","events_url":"https://api.github.com/users/Awakening-j/events{/privacy}","received_events_url":"https://api.github.com/users/Awakening-j/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":7,"created_at":"2016-03-29T08:06:31Z","updated_at":"2016-03-30T07:21:33Z","closed_at":null,"body":"Is there any API can return absolute x,y position of each node? I couldn't find it in `layout`  \r\n```\r\nvar layout = new Springy.Layout.ForceDirected(\r\n  graph,\r\n  400.0, // Spring stiffness\r\n  400.0, // Node repulsion\r\n  0.5 // Damping\r\n);\r\n```"},"comment":{"url":"https://api.github.com/repos/dhotson/springy/issues/comments/203285746","html_url":"https://github.com/dhotson/springy/issues/81#issuecomment-203285746","issue_url":"https://api.github.com/repos/dhotson/springy/issues/81","id":203285746,"user":{"login":"Awakening-j","id":8085088,"avatar_url":"https://avatars.githubusercontent.com/u/8085088?v=3","gravatar_id":"","url":"https://api.github.com/users/Awakening-j","html_url":"https://github.com/Awakening-j","followers_url":"https://api.github.com/users/Awakening-j/followers","following_url":"https://api.github.com/users/Awakening-j/following{/other_user}","gists_url":"https://api.github.com/users/Awakening-j/gists{/gist_id}","starred_url":"https://api.github.com/users/Awakening-j/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Awakening-j/subscriptions","organizations_url":"https://api.github.com/users/Awakening-j/orgs","repos_url":"https://api.github.com/users/Awakening-j/repos","events_url":"https://api.github.com/users/Awakening-j/events{/privacy}","received_events_url":"https://api.github.com/users/Awakening-j/received_events","type":"User","site_admin":false},"created_at":"2016-03-30T07:21:33Z","updated_at":"2016-03-30T07:21:33Z","body":"Ok, I may not explain well.  \r\nThe screenshot shows two graphs, one is springy, the other one is `html div`  \r\nand the absolute position of each `div` is using `toScreen` method which picked from springyui.js.  \r\nsee \r\n![2016-03-30 15 14 03](https://cloud.githubusercontent.com/assets/8085088/14134504/57e1b4d6-f68a-11e5-8a6f-b2edff08e3df.png)  \r\n\r\nWhat I mean is I'm converting canvas coordinate to window's using `toScreen` method, but the result shows the two graphs are not the same"}}