{"action":"created","issue":{"url":"https://api.github.com/repos/ayasdi/grapher/issues/1","labels_url":"https://api.github.com/repos/ayasdi/grapher/issues/1/labels{/name}","comments_url":"https://api.github.com/repos/ayasdi/grapher/issues/1/comments","events_url":"https://api.github.com/repos/ayasdi/grapher/issues/1/events","html_url":"https://github.com/ayasdi/grapher/issues/1","id":59277999,"number":1,"title":"[feature request] reverse indexing of mouse events","user":{"login":"milroc","id":542959,"avatar_url":"https://avatars.githubusercontent.com/u/542959?v=3","gravatar_id":"","url":"https://api.github.com/users/milroc","html_url":"https://github.com/milroc","followers_url":"https://api.github.com/users/milroc/followers","following_url":"https://api.github.com/users/milroc/following{/other_user}","gists_url":"https://api.github.com/users/milroc/gists{/gist_id}","starred_url":"https://api.github.com/users/milroc/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/milroc/subscriptions","organizations_url":"https://api.github.com/users/milroc/orgs","repos_url":"https://api.github.com/users/milroc/repos","events_url":"https://api.github.com/users/milroc/events{/privacy}","received_events_url":"https://api.github.com/users/milroc/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/ayasdi/grapher/labels/enhancement","name":"enhancement","color":"84b6eb"}],"state":"closed","locked":false,"assignee":{"login":"cixzhang","id":2781099,"avatar_url":"https://avatars.githubusercontent.com/u/2781099?v=3","gravatar_id":"","url":"https://api.github.com/users/cixzhang","html_url":"https://github.com/cixzhang","followers_url":"https://api.github.com/users/cixzhang/followers","following_url":"https://api.github.com/users/cixzhang/following{/other_user}","gists_url":"https://api.github.com/users/cixzhang/gists{/gist_id}","starred_url":"https://api.github.com/users/cixzhang/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cixzhang/subscriptions","organizations_url":"https://api.github.com/users/cixzhang/orgs","repos_url":"https://api.github.com/users/cixzhang/repos","events_url":"https://api.github.com/users/cixzhang/events{/privacy}","received_events_url":"https://api.github.com/users/cixzhang/received_events","type":"User","site_admin":false},"milestone":null,"comments":4,"created_at":"2015-02-27T18:52:43Z","updated_at":"2015-03-30T17:53:00Z","closed_at":"2015-03-30T17:53:00Z","body":"Given a point [x, y] find the nearest node or edge.\r\n\r\nI don't want to prescribe an implementation, but from the d3.js community, typically a voronoi is computed for this use case."},"comment":{"url":"https://api.github.com/repos/ayasdi/grapher/issues/comments/87771313","html_url":"https://github.com/ayasdi/grapher/issues/1#issuecomment-87771313","issue_url":"https://api.github.com/repos/ayasdi/grapher/issues/1","id":87771313,"user":{"login":"cixzhang","id":2781099,"avatar_url":"https://avatars.githubusercontent.com/u/2781099?v=3","gravatar_id":"","url":"https://api.github.com/users/cixzhang","html_url":"https://github.com/cixzhang","followers_url":"https://api.github.com/users/cixzhang/followers","following_url":"https://api.github.com/users/cixzhang/following{/other_user}","gists_url":"https://api.github.com/users/cixzhang/gists{/gist_id}","starred_url":"https://api.github.com/users/cixzhang/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cixzhang/subscriptions","organizations_url":"https://api.github.com/users/cixzhang/orgs","repos_url":"https://api.github.com/users/cixzhang/repos","events_url":"https://api.github.com/users/cixzhang/events{/privacy}","received_events_url":"https://api.github.com/users/cixzhang/received_events","type":"User","site_admin":false},"created_at":"2015-03-30T17:53:00Z","updated_at":"2015-03-30T17:53:00Z","body":"Grapher now has the following functions for converting between pixel and data positions:\r\n\r\n    grapher.getDataPosition(x, y); // converts display position to data position\r\n    grapher.getDisplayPosition(x, y); // converts data position to display position\r\n\r\nGrapher.target module (https://github.com/ayasdi/grapher-target) now does the reverse indexing including a nearest function for finding the nearest node or link."}}