{"action":"created","issue":{"url":"https://api.github.com/repos/kirill3333/react-avatar/issues/26","repository_url":"https://api.github.com/repos/kirill3333/react-avatar","labels_url":"https://api.github.com/repos/kirill3333/react-avatar/issues/26/labels{/name}","comments_url":"https://api.github.com/repos/kirill3333/react-avatar/issues/26/comments","events_url":"https://api.github.com/repos/kirill3333/react-avatar/issues/26/events","html_url":"https://github.com/kirill3333/react-avatar/issues/26","id":390772580,"node_id":"MDU6SXNzdWUzOTA3NzI1ODA=","number":26,"title":"The user defined cropRadius property is ignored.","user":{"login":"alekmarinov","id":7713270,"node_id":"MDQ6VXNlcjc3MTMyNzA=","avatar_url":"https://avatars0.githubusercontent.com/u/7713270?v=4","gravatar_id":"","url":"https://api.github.com/users/alekmarinov","html_url":"https://github.com/alekmarinov","followers_url":"https://api.github.com/users/alekmarinov/followers","following_url":"https://api.github.com/users/alekmarinov/following{/other_user}","gists_url":"https://api.github.com/users/alekmarinov/gists{/gist_id}","starred_url":"https://api.github.com/users/alekmarinov/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/alekmarinov/subscriptions","organizations_url":"https://api.github.com/users/alekmarinov/orgs","repos_url":"https://api.github.com/users/alekmarinov/repos","events_url":"https://api.github.com/users/alekmarinov/events{/privacy}","received_events_url":"https://api.github.com/users/alekmarinov/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2018-12-13T17:02:53Z","updated_at":"2018-12-13T19:07:41Z","closed_at":null,"author_association":"NONE","body":"It's very small issue but very annoying and trivial to fix.\r\nThe cropRadius property is obscured by **const cropRadius = imgWidth / 4;** in the init() method.\r\nFor my own purposes I modified it to:\r\n    const autoCropRadius = Math.max(this.props.minCropRadius, Math.min(imgWidth, imgHeight) / 2);\r\n    const cropRadius = this.props.cropRadius || autoCropRadius\r\nAlso remove the respective cropRadius property from defaults as its default value is auto computed based on the image size.\r\nThanks for this nice component anyway!"},"comment":{"url":"https://api.github.com/repos/kirill3333/react-avatar/issues/comments/447083822","html_url":"https://github.com/kirill3333/react-avatar/issues/26#issuecomment-447083822","issue_url":"https://api.github.com/repos/kirill3333/react-avatar/issues/26","id":447083822,"node_id":"MDEyOklzc3VlQ29tbWVudDQ0NzA4MzgyMg==","user":{"login":"kirill3333","id":1804678,"node_id":"MDQ6VXNlcjE4MDQ2Nzg=","avatar_url":"https://avatars2.githubusercontent.com/u/1804678?v=4","gravatar_id":"","url":"https://api.github.com/users/kirill3333","html_url":"https://github.com/kirill3333","followers_url":"https://api.github.com/users/kirill3333/followers","following_url":"https://api.github.com/users/kirill3333/following{/other_user}","gists_url":"https://api.github.com/users/kirill3333/gists{/gist_id}","starred_url":"https://api.github.com/users/kirill3333/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kirill3333/subscriptions","organizations_url":"https://api.github.com/users/kirill3333/orgs","repos_url":"https://api.github.com/users/kirill3333/repos","events_url":"https://api.github.com/users/kirill3333/events{/privacy}","received_events_url":"https://api.github.com/users/kirill3333/received_events","type":"User","site_admin":false},"created_at":"2018-12-13T19:07:41Z","updated_at":"2018-12-13T19:07:41Z","author_association":"OWNER","body":"@alekmarinov do you want to make PR?"}}
{"actor":{"display_login":"kirill3333"}}