{"action":"created","issue":{"url":"https://api.github.com/repos/openseadragon/openseadragon/issues/888","repository_url":"https://api.github.com/repos/openseadragon/openseadragon","labels_url":"https://api.github.com/repos/openseadragon/openseadragon/issues/888/labels{/name}","comments_url":"https://api.github.com/repos/openseadragon/openseadragon/issues/888/comments","events_url":"https://api.github.com/repos/openseadragon/openseadragon/issues/888/events","html_url":"https://github.com/openseadragon/openseadragon/pull/888","id":142458973,"number":888,"title":"Add TiledImage.fitInBounds method.","user":{"login":"avandecreme","id":465389,"avatar_url":"https://avatars.githubusercontent.com/u/465389?v=3","gravatar_id":"","url":"https://api.github.com/users/avandecreme","html_url":"https://github.com/avandecreme","followers_url":"https://api.github.com/users/avandecreme/followers","following_url":"https://api.github.com/users/avandecreme/following{/other_user}","gists_url":"https://api.github.com/users/avandecreme/gists{/gist_id}","starred_url":"https://api.github.com/users/avandecreme/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/avandecreme/subscriptions","organizations_url":"https://api.github.com/users/avandecreme/orgs","repos_url":"https://api.github.com/users/avandecreme/repos","events_url":"https://api.github.com/users/avandecreme/events{/privacy}","received_events_url":"https://api.github.com/users/avandecreme/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":10,"created_at":"2016-03-21T20:21:14Z","updated_at":"2016-03-24T16:47:12Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/openseadragon/openseadragon/pulls/888","html_url":"https://github.com/openseadragon/openseadragon/pull/888","diff_url":"https://github.com/openseadragon/openseadragon/pull/888.diff","patch_url":"https://github.com/openseadragon/openseadragon/pull/888.patch"},"body":"I added a new \"enum\" `Placement` which is very similar to OverlayPlacement but with the added functionality to have handy boolean values.\r\nI am thinking of replacing https://github.com/openseadragon/openseadragon/blob/master/src/overlay.js#L54-L64 by `$.OverlayPlacement = $.Placement`. It should be backward compatible provided people did not use the previously assigned numbers.\r\n\r\nIt would be nice to be able to set the bounds directly from the constructor (and consequently from `viewer.addTiledImage`) but it doesn't look easily doable. Suggestions welcome :)"},"comment":{"url":"https://api.github.com/repos/openseadragon/openseadragon/issues/comments/200919115","html_url":"https://github.com/openseadragon/openseadragon/pull/888#issuecomment-200919115","issue_url":"https://api.github.com/repos/openseadragon/openseadragon/issues/888","id":200919115,"user":{"login":"iangilman","id":338989,"avatar_url":"https://avatars.githubusercontent.com/u/338989?v=3","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":"2016-03-24T16:47:12Z","updated_at":"2016-03-24T16:47:12Z","body":"@avandecreme Awesome, looks great!"}}