{"action":"created","issue":{"url":"https://api.github.com/repos/Napari/napari-gui/issues/73","repository_url":"https://api.github.com/repos/Napari/napari-gui","labels_url":"https://api.github.com/repos/Napari/napari-gui/issues/73/labels{/name}","comments_url":"https://api.github.com/repos/Napari/napari-gui/issues/73/comments","events_url":"https://api.github.com/repos/Napari/napari-gui/issues/73/events","html_url":"https://github.com/Napari/napari-gui/pull/73","id":383951384,"node_id":"MDExOlB1bGxSZXF1ZXN0MjMzMjk2MDM4","number":73,"title":"add statusBar updates based on cursor","user":{"login":"sofroniewn","id":6531703,"node_id":"MDQ6VXNlcjY1MzE3MDM=","avatar_url":"https://avatars1.githubusercontent.com/u/6531703?v=4","gravatar_id":"","url":"https://api.github.com/users/sofroniewn","html_url":"https://github.com/sofroniewn","followers_url":"https://api.github.com/users/sofroniewn/followers","following_url":"https://api.github.com/users/sofroniewn/following{/other_user}","gists_url":"https://api.github.com/users/sofroniewn/gists{/gist_id}","starred_url":"https://api.github.com/users/sofroniewn/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sofroniewn/subscriptions","organizations_url":"https://api.github.com/users/sofroniewn/orgs","repos_url":"https://api.github.com/users/sofroniewn/repos","events_url":"https://api.github.com/users/sofroniewn/events{/privacy}","received_events_url":"https://api.github.com/users/sofroniewn/received_events","type":"User","site_admin":false},"labels":[{"id":1022379513,"node_id":"MDU6TGFiZWwxMDIyMzc5NTEz","url":"https://api.github.com/repos/Napari/napari-gui/labels/feature","name":"feature","color":"a2eeef","default":false}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":24,"created_at":"2018-11-24T02:12:59Z","updated_at":"2018-11-27T18:40:02Z","closed_at":null,"author_association":"CONTRIBUTOR","pull_request":{"url":"https://api.github.com/repos/Napari/napari-gui/pulls/73","html_url":"https://github.com/Napari/napari-gui/pull/73","diff_url":"https://github.com/Napari/napari-gui/pull/73.diff","patch_url":"https://github.com/Napari/napari-gui/pull/73.patch"},"body":"# What does this PR do? Why are doing this? References?\r\nThis PR adds the x,y mouse coordinates, slicer positions (if any), and the grayscale value of the top visible image layer to the status bar.\r\n\r\nRight now the first two axes are labeled x,y and the rest get numbered starting at 2. I can change this default behavior, or we can wait until we revisit axis labels in general.\r\n\r\nRight now the first two image indices are assumed to be the ones corresponding to the x,y image, but we will probably need to revisit this once me tackle the more general indexing.\r\n\r\nIf you move the cursor out of the view of the image it displays the last coordinate positions of the mouse. It could also not display anything, but I prefer this behavior. If you adjust the position of the sliders the values will update too.\r\n\r\nRight now it will just ignore any markers layers. I could instead have it show an index for the marker if desired.\r\n\r\nRight now it also assumes that there is just one image transform going from the window coordinates to the image coordinates, that of the first layer. If we had images shown next to each other instead of tiling it probably won't work as expected.\r\n\r\nAlso now it will work best if all image layers have the same dimension. We don't seem to strictly enforce this yet, but I think we're making a number of assumptions that it is the case, or am I wrong?\r\n\r\n![image](https://user-images.githubusercontent.com/6531703/48963615-3674a580-ef4b-11e8-8413-a49afb90db6b.png)\r\n\r\n\r\n## Type of change\r\n[Please delete options that are not relevant.]\r\n- [x] New feature (non-breaking change which adds functionality)\r\n\r\n## How Has This Been Tested?\r\n[Please describe the tests that you ran to verify your changes. Provide instructions so we can reproduce.]\r\n- [x] TestCase Run examples/layers.ipynb and interact with the gui\r\n\r\n\r\n## Final Checklist:\r\n- [x] My PR is the possible minimum work for the desired functionality\r\n- [ ] I have commented my code, particularly in hard-to-understand areas\r\n- [ ] I have made corresponding changes to the documentation\r\n- [ ] I have added tests that prove my fix is effective or that my feature works\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/Napari/napari-gui/issues/comments/442169679","html_url":"https://github.com/Napari/napari-gui/pull/73#issuecomment-442169679","issue_url":"https://api.github.com/repos/Napari/napari-gui/issues/73","id":442169679,"node_id":"MDEyOklzc3VlQ29tbWVudDQ0MjE2OTY3OQ==","user":{"login":"sofroniewn","id":6531703,"node_id":"MDQ6VXNlcjY1MzE3MDM=","avatar_url":"https://avatars1.githubusercontent.com/u/6531703?v=4","gravatar_id":"","url":"https://api.github.com/users/sofroniewn","html_url":"https://github.com/sofroniewn","followers_url":"https://api.github.com/users/sofroniewn/followers","following_url":"https://api.github.com/users/sofroniewn/following{/other_user}","gists_url":"https://api.github.com/users/sofroniewn/gists{/gist_id}","starred_url":"https://api.github.com/users/sofroniewn/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sofroniewn/subscriptions","organizations_url":"https://api.github.com/users/sofroniewn/orgs","repos_url":"https://api.github.com/users/sofroniewn/repos","events_url":"https://api.github.com/users/sofroniewn/events{/privacy}","received_events_url":"https://api.github.com/users/sofroniewn/received_events","type":"User","site_admin":false},"created_at":"2018-11-27T18:40:02Z","updated_at":"2018-11-27T18:40:02Z","author_association":"CONTRIBUTOR","body":"Sounds good - some details of the implementation are likely to change in #74 too, so probably best to wait until after that is merged also"}}
{"actor":{"display_login":"sofroniewn"}}