{"action":"created","issue":{"url":"https://api.github.com/repos/openseadragon/openseadragon/issues/1441","repository_url":"https://api.github.com/repos/openseadragon/openseadragon","labels_url":"https://api.github.com/repos/openseadragon/openseadragon/issues/1441/labels{/name}","comments_url":"https://api.github.com/repos/openseadragon/openseadragon/issues/1441/comments","events_url":"https://api.github.com/repos/openseadragon/openseadragon/issues/1441/events","html_url":"https://github.com/openseadragon/openseadragon/pull/1441","id":311273565,"number":1441,"title":"Adds flip/mirror slides feature.","user":{"login":"nelsonn3c","id":15673857,"avatar_url":"https://avatars0.githubusercontent.com/u/15673857?v=4","gravatar_id":"","url":"https://api.github.com/users/nelsonn3c","html_url":"https://github.com/nelsonn3c","followers_url":"https://api.github.com/users/nelsonn3c/followers","following_url":"https://api.github.com/users/nelsonn3c/following{/other_user}","gists_url":"https://api.github.com/users/nelsonn3c/gists{/gist_id}","starred_url":"https://api.github.com/users/nelsonn3c/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nelsonn3c/subscriptions","organizations_url":"https://api.github.com/users/nelsonn3c/orgs","repos_url":"https://api.github.com/users/nelsonn3c/repos","events_url":"https://api.github.com/users/nelsonn3c/events{/privacy}","received_events_url":"https://api.github.com/users/nelsonn3c/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":31,"created_at":"2018-04-04T15:13:52Z","updated_at":"2018-05-30T17:24:28Z","closed_at":null,"author_association":"NONE","pull_request":{"url":"https://api.github.com/repos/openseadragon/openseadragon/pulls/1441","html_url":"https://github.com/openseadragon/openseadragon/pull/1441","diff_url":"https://github.com/openseadragon/openseadragon/pull/1441.diff","patch_url":"https://github.com/openseadragon/openseadragon/pull/1441.patch"},"body":"This commit adds full support for a new OpenSeaDragon(OSD) feature - Mirror/Flip.\r\nIn order to fully support this new feature, the following OSD objects had to be modified:\r\n        - drawer.js:\r\n        - navigator\r\n        - openseadragon\r\n        - strings\r\n        - tiledImage\r\n\t- viewer\r\n\r\nAdditionally, a new flip button was created (similar to the existing ones).\r\n\r\nFlip Logic\r\n        Whenever the state is flip button is pressed, flip state is toogled, inverting all the controls and displays (the rotation direction is inverted as well).\r\n        This means that all viewer coordinates (including user inputs) must me inverted too.\r\n\r\nSummary of modifications\r\n        - drawer.js: modified _offsetForRotation to invert rotation angle on flipped state. Added a _flip method to scale/mirror canvas context.\r\n        - navigator.js: adds full flip support and inverts nagivator inputs.\r\n        - openseadragon.js: new buttons, flip state variable and showFlipControl variable.\r\n        - strings.js: flip tool help tips.\r\n        - tiledImage.js: flips the actual drawing canvas.\r\n\t- viewer.js: Added keyboardshortcuts to rotate 90degrees (r/R) and flip image (f/F). flip button state is stored here and flip order is set.\r\n\r\nThe flipped state is stored on viewer object."},"comment":{"url":"https://api.github.com/repos/openseadragon/openseadragon/issues/comments/393247561","html_url":"https://github.com/openseadragon/openseadragon/pull/1441#issuecomment-393247561","issue_url":"https://api.github.com/repos/openseadragon/openseadragon/issues/1441","id":393247561,"user":{"login":"iangilman","id":338989,"avatar_url":"https://avatars3.githubusercontent.com/u/338989?v=4","gravatar_id":"","url":"https://api.github.com/users/iangilman","html_url":"https://github.com/iangilman","followers_url":"https://api.github.com/users/iangilman/followers","following_url":"https://api.github.com/users/iangilman/following{/other_user}","gists_url":"https://api.github.com/users/iangilman/gists{/gist_id}","starred_url":"https://api.github.com/users/iangilman/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/iangilman/subscriptions","organizations_url":"https://api.github.com/users/iangilman/orgs","repos_url":"https://api.github.com/users/iangilman/repos","events_url":"https://api.github.com/users/iangilman/events{/privacy}","received_events_url":"https://api.github.com/users/iangilman/received_events","type":"User","site_admin":false},"created_at":"2018-05-30T17:24:27Z","updated_at":"2018-05-30T17:24:27Z","author_association":"MEMBER","body":"@nelsonn3c How's it going? Have you had a chance to take a look at the tests?\r\n"}}
{"actor":{"display_login":"iangilman"}}