{"action":"created","issue":{"url":"https://api.github.com/repos/codeandcats/delaunay-animation-editor/issues/17","repository_url":"https://api.github.com/repos/codeandcats/delaunay-animation-editor","labels_url":"https://api.github.com/repos/codeandcats/delaunay-animation-editor/issues/17/labels{/name}","comments_url":"https://api.github.com/repos/codeandcats/delaunay-animation-editor/issues/17/comments","events_url":"https://api.github.com/repos/codeandcats/delaunay-animation-editor/issues/17/events","html_url":"https://github.com/codeandcats/delaunay-animation-editor/issues/17","id":166013568,"number":17,"title":"Holding shift while resizing image should keep aspect ratio","user":{"login":"codeandcats","id":6035934,"avatar_url":"https://avatars.githubusercontent.com/u/6035934?v=3","gravatar_id":"","url":"https://api.github.com/users/codeandcats","html_url":"https://github.com/codeandcats","followers_url":"https://api.github.com/users/codeandcats/followers","following_url":"https://api.github.com/users/codeandcats/following{/other_user}","gists_url":"https://api.github.com/users/codeandcats/gists{/gist_id}","starred_url":"https://api.github.com/users/codeandcats/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/codeandcats/subscriptions","organizations_url":"https://api.github.com/users/codeandcats/orgs","repos_url":"https://api.github.com/users/codeandcats/repos","events_url":"https://api.github.com/users/codeandcats/events{/privacy}","received_events_url":"https://api.github.com/users/codeandcats/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/codeandcats/delaunay-animation-editor/labels/enhancement","name":"enhancement","color":"84b6eb"},{"url":"https://api.github.com/repos/codeandcats/delaunay-animation-editor/labels/high-priority","name":"high-priority","color":"e99695"}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2016-07-18T03:28:28Z","updated_at":"2016-07-26T03:07:02Z","closed_at":null,"body":""},"comment":{"url":"https://api.github.com/repos/codeandcats/delaunay-animation-editor/issues/comments/235150371","html_url":"https://github.com/codeandcats/delaunay-animation-editor/issues/17#issuecomment-235150371","issue_url":"https://api.github.com/repos/codeandcats/delaunay-animation-editor/issues/17","id":235150371,"user":{"login":"codeandcats","id":6035934,"avatar_url":"https://avatars.githubusercontent.com/u/6035934?v=3","gravatar_id":"","url":"https://api.github.com/users/codeandcats","html_url":"https://github.com/codeandcats","followers_url":"https://api.github.com/users/codeandcats/followers","following_url":"https://api.github.com/users/codeandcats/following{/other_user}","gists_url":"https://api.github.com/users/codeandcats/gists{/gist_id}","starred_url":"https://api.github.com/users/codeandcats/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/codeandcats/subscriptions","organizations_url":"https://api.github.com/users/codeandcats/orgs","repos_url":"https://api.github.com/users/codeandcats/repos","events_url":"https://api.github.com/users/codeandcats/events{/privacy}","received_events_url":"https://api.github.com/users/codeandcats/received_events","type":"User","site_admin":false},"created_at":"2016-07-26T03:07:02Z","updated_at":"2016-07-26T03:07:02Z","body":"Formula for keeping aspect ratio is:\r\n```\r\nHot Aspect Ratio = Hot Width / Hot Height\r\nNew Width = Hot Aspect Ratio > Aspect Ratio ? Hot Width : Hot Height * Aspect Ratio\r\nNew Height = Hot Aspect Ratio > Aspect Ratio ? Hot Width /  Aspect Ratio : Hot Height\r\n```\r\nFor handling negatives, need to use Math.abs on widths and heights and use the min points as the start point for the hot rectangle."}}
{"actor":{"display_login":"codeandcats"}}