{"action":"created","issue":{"url":"https://api.github.com/repos/palantir/plottable/issues/3087","repository_url":"https://api.github.com/repos/palantir/plottable","labels_url":"https://api.github.com/repos/palantir/plottable/issues/3087/labels{/name}","comments_url":"https://api.github.com/repos/palantir/plottable/issues/3087/comments","events_url":"https://api.github.com/repos/palantir/plottable/issues/3087/events","html_url":"https://github.com/palantir/plottable/pull/3087","id":165505449,"number":3087,"title":"Add onPan and onZoom to the PanZoom interaction","user":{"login":"SamMorrowDrums","id":4811358,"avatar_url":"https://avatars.githubusercontent.com/u/4811358?v=3","gravatar_id":"","url":"https://api.github.com/users/SamMorrowDrums","html_url":"https://github.com/SamMorrowDrums","followers_url":"https://api.github.com/users/SamMorrowDrums/followers","following_url":"https://api.github.com/users/SamMorrowDrums/following{/other_user}","gists_url":"https://api.github.com/users/SamMorrowDrums/gists{/gist_id}","starred_url":"https://api.github.com/users/SamMorrowDrums/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/SamMorrowDrums/subscriptions","organizations_url":"https://api.github.com/users/SamMorrowDrums/orgs","repos_url":"https://api.github.com/users/SamMorrowDrums/repos","events_url":"https://api.github.com/users/SamMorrowDrums/events{/privacy}","received_events_url":"https://api.github.com/users/SamMorrowDrums/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":11,"created_at":"2016-07-14T08:25:54Z","updated_at":"2016-07-21T22:47:16Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/palantir/plottable/pulls/3087","html_url":"https://github.com/palantir/plottable/pull/3087","diff_url":"https://github.com/palantir/plottable/pull/3087.diff","patch_url":"https://github.com/palantir/plottable/pull/3087.patch"},"body":"As mentioned in #3086 I am proposing to add events for Pan and Zoom, so that users can automatically retrieve more data for charts.\r\n\r\nThe proposed API is such:\r\n\r\n```javascript\r\npanZoomInteraction = new Plottable.Interactions.PanZoom();\r\n\r\npanZoomInteraction.onPan(callback);\r\npanZoomInteraction.offPan(callback);\r\n\r\npanZoomInteraction.onZoom(callback);\r\npanZoomInteraction.offZoom(callback);\r\n\r\n```\r\n\r\nCallbacks occur on the most applicable end event (touchend, dragend or scroll), in an attempt to minimise the number of calls where possible, as this will most likely be used for retrieving server data.\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/palantir/plottable/issues/comments/234407108","html_url":"https://github.com/palantir/plottable/pull/3087#issuecomment-234407108","issue_url":"https://api.github.com/repos/palantir/plottable/issues/3087","id":234407108,"user":{"login":"adidahiya","id":723999,"avatar_url":"https://avatars.githubusercontent.com/u/723999?v=3","gravatar_id":"","url":"https://api.github.com/users/adidahiya","html_url":"https://github.com/adidahiya","followers_url":"https://api.github.com/users/adidahiya/followers","following_url":"https://api.github.com/users/adidahiya/following{/other_user}","gists_url":"https://api.github.com/users/adidahiya/gists{/gist_id}","starred_url":"https://api.github.com/users/adidahiya/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/adidahiya/subscriptions","organizations_url":"https://api.github.com/users/adidahiya/orgs","repos_url":"https://api.github.com/users/adidahiya/repos","events_url":"https://api.github.com/users/adidahiya/events{/privacy}","received_events_url":"https://api.github.com/users/adidahiya/received_events","type":"User","site_admin":false},"created_at":"2016-07-21T22:47:16Z","updated_at":"2016-07-21T22:47:16Z","body":"@SamMorrowDrums sorry for the delay, this looks great!"}}
{"actor":{"display_login":"adidahiya"}}