{"action":"created","comment":{"url":"https://api.github.com/repos/ppy/osu-web/pulls/comments/53905440","id":53905440,"diff_hunk":"@@ -0,0 +1,122 @@\n+###\r\n+# Copyright 2015 ppy Pty. Ltd.\r\n+#\r\n+# This file is part of osu!web. osu!web is distributed with the hope of\r\n+# attracting more community contributions to the core ecosystem of osu!.\r\n+#\r\n+# osu!web is free software: you can redistribute it and/or modify\r\n+# it under the terms of the Affero GNU General Public License version 3\r\n+# as published by the Free Software Foundation.\r\n+#\r\n+# osu!web is distributed WITHOUT ANY WARRANTY; without even the implied\r\n+# warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.\r\n+# See the GNU Affero General Public License for more details.\r\n+#\r\n+# You should have received a copy of the GNU Affero General Public License\r\n+# along with osu!web.  If not, see <http://www.gnu.org/licenses/>.\r\n+###\r\n+\r\n+class Status.Map\r\n+  constructor: (element, servers) ->\r\n+    growers = []\r\n+    offset = 40\r\n+    @width = $(element).width()\r\n+    @height = (@width*9.3/21)\r\n+    $(element).height(@height)\r\n+    force = d3.layout.force()\r\n+\r\n+    @maxWidth = 1350\r","path":"resources/assets/coffee/react/status/map.coffee","position":28,"original_position":28,"commit_id":"1769fd8ecbd0e8627e27aaa530afbbc3f6feeb6f","original_commit_id":"1769fd8ecbd0e8627e27aaa530afbbc3f6feeb6f","user":{"login":"nanaya","id":276295,"avatar_url":"https://avatars.githubusercontent.com/u/276295?v=3","gravatar_id":"","url":"https://api.github.com/users/nanaya","html_url":"https://github.com/nanaya","followers_url":"https://api.github.com/users/nanaya/followers","following_url":"https://api.github.com/users/nanaya/following{/other_user}","gists_url":"https://api.github.com/users/nanaya/gists{/gist_id}","starred_url":"https://api.github.com/users/nanaya/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nanaya/subscriptions","organizations_url":"https://api.github.com/users/nanaya/orgs","repos_url":"https://api.github.com/users/nanaya/repos","events_url":"https://api.github.com/users/nanaya/events{/privacy}","received_events_url":"https://api.github.com/users/nanaya/received_events","type":"User","site_admin":false},"body":"can't it just be calculated from height/maxHeight ratio?","created_at":"2016-02-24T08:07:40Z","updated_at":"2016-02-24T08:07:40Z","html_url":"https://github.com/ppy/osu-web/pull/395#discussion_r53905440","pull_request_url":"https://api.github.com/repos/ppy/osu-web/pulls/395","_links":{"self":{"href":"https://api.github.com/repos/ppy/osu-web/pulls/comments/53905440"},"html":{"href":"https://github.com/ppy/osu-web/pull/395#discussion_r53905440"},"pull_request":{"href":"https://api.github.com/repos/ppy/osu-web/pulls/395"}}},"pull_request":{"url":"https://api.github.com/repos/ppy/osu-web/pulls/395","id":60434083,"html_url":"https://github.com/ppy/osu-web/pull/395","diff_url":"https://github.com/ppy/osu-web/pull/395.diff","patch_url":"https://github.com/ppy/osu-web/pull/395.patch","issue_url":"https://api.github.com/repos/ppy/osu-web/issues/395","number":395,"state":"open","locked":false,"title":"osu!status page","user":{"login":"UnnoTed","id":9157736,"avatar_url":"https://avatars.githubusercontent.com/u/9157736?v=3","gravatar_id":"","url":"https://api.github.com/users/UnnoTed","html_url":"https://github.com/UnnoTed","followers_url":"https://api.github.com/users/UnnoTed/followers","following_url":"https://api.github.com/users/UnnoTed/following{/other_user}","gists_url":"https://api.github.com/users/UnnoTed/gists{/gist_id}","starred_url":"https://api.github.com/users/UnnoTed/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/UnnoTed/subscriptions","organizations_url":"https://api.github.com/users/UnnoTed/orgs","repos_url":"https://api.github.com/users/UnnoTed/repos","events_url":"https://api.github.com/users/UnnoTed/events{/privacy}","received_events_url":"https://api.github.com/users/UnnoTed/received_events","type":"User","site_admin":false},"body":"https://github.com/ppy/osu-web/issues/35\r\n\r\nresponsive\r\n\r\nmap was converTed to svg\r\n\r\npreview: \r\nhttps://www.youtube.com/watch?v=SrzEXubeFC0\r\n\r\napi json sample\r\nhttp://pastebin.com/fu9Gip54","created_at":"2016-02-24T00:10:03Z","updated_at":"2016-02-24T08:07:40Z","closed_at":null,"merged_at":null,"merge_commit_sha":"08a452dd2b373abad11508f895031b3098ab0918","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/ppy/osu-web/pulls/395/commits","review_comments_url":"https://api.github.com/repos/ppy/osu-web/pulls/395/comments","review_comment_url":"https://api.github.com/repos/ppy/osu-web/pulls/comments{/number}","comments_url":"https://api.github.com/repos/ppy/osu-web/issues/395/comments","statuses_url":"https://api.github.com/repos/ppy/osu-web/statuses/1769fd8ecbd0e8627e27aaa530afbbc3f6feeb6f","head":{"label":"UnnoTed:master","ref":"master","sha":"1769fd8ecbd0e8627e27aaa530afbbc3f6feeb6f","user":{"login":"UnnoTed","id":9157736,"avatar_url":"https://avatars.githubusercontent.com/u/9157736?v=3","gravatar_id":"","url":"https://api.github.com/users/UnnoTed","html_url":"https://github.com/UnnoTed","followers_url":"https://api.github.com/users/UnnoTed/followers","following_url":"https://api.github.com/users/UnnoTed/following{/other_user}","gists_url":"https://api.github.com/users/UnnoTed/gists{/gist_id}","starred_url":"https://api.github.com/users/UnnoTed/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/UnnoTed/subscriptions","organizations_url":"https://api.github.com/users/UnnoTed/orgs","repos_url":"https://api.github.com/users/UnnoTed/repos","events_url":"https://api.github.com/users/UnnoTed/events{/privacy}","received_events_url":"https://api.github.com/users/UnnoTed/received_events","type":"User","site_admin":false},"repo":{"id":51397479,"name":"osu-web","full_name":"UnnoTed/osu-web","owner":{"login":"UnnoTed","id":9157736,"avatar_url":"https://avatars.githubusercontent.com/u/9157736?v=3","gravatar_id":"","url":"https://api.github.com/users/UnnoTed","html_url":"https://github.com/UnnoTed","followers_url":"https://api.github.com/users/UnnoTed/followers","following_url":"https://api.github.com/users/UnnoTed/following{/other_user}","gists_url":"https://api.github.com/users/UnnoTed/gists{/gist_id}","starred_url":"https://api.github.com/users/UnnoTed/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/UnnoTed/subscriptions","organizations_url":"https://api.github.com/users/UnnoTed/orgs","repos_url":"https://api.github.com/users/UnnoTed/repos","events_url":"https://api.github.com/users/UnnoTed/events{/privacy}","received_events_url":"https://api.github.com/users/UnnoTed/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/UnnoTed/osu-web","description":"the future face of osu!","fork":true,"url":"https://api.github.com/repos/UnnoTed/osu-web","forks_url":"https://api.github.com/repos/UnnoTed/osu-web/forks","keys_url":"https://api.github.com/repos/UnnoTed/osu-web/keys{/key_id}","collaborators_url":"https://api.github.com/repos/UnnoTed/osu-web/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/UnnoTed/osu-web/teams","hooks_url":"https://api.github.com/repos/UnnoTed/osu-web/hooks","issue_events_url":"https://api.github.com/repos/UnnoTed/osu-web/issues/events{/number}","events_url":"https://api.github.com/repos/UnnoTed/osu-web/events","assignees_url":"https://api.github.com/repos/UnnoTed/osu-web/assignees{/user}","branches_url":"https://api.github.com/repos/UnnoTed/osu-web/branches{/branch}","tags_url":"https://api.github.com/repos/UnnoTed/osu-web/tags","blobs_url":"https://api.github.com/repos/UnnoTed/osu-web/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/UnnoTed/osu-web/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/UnnoTed/osu-web/git/refs{/sha}","trees_url":"https://api.github.com/repos/UnnoTed/osu-web/git/trees{/sha}","statuses_url":"https://api.github.com/repos/UnnoTed/osu-web/statuses/{sha}","languages_url":"https://api.github.com/repos/UnnoTed/osu-web/languages","stargazers_url":"https://api.github.com/repos/UnnoTed/osu-web/stargazers","contributors_url":"https://api.github.com/repos/UnnoTed/osu-web/contributors","subscribers_url":"https://api.github.com/repos/UnnoTed/osu-web/subscribers","subscription_url":"https://api.github.com/repos/UnnoTed/osu-web/subscription","commits_url":"https://api.github.com/repos/UnnoTed/osu-web/commits{/sha}","git_commits_url":"https://api.github.com/repos/UnnoTed/osu-web/git/commits{/sha}","comments_url":"https://api.github.com/repos/UnnoTed/osu-web/comments{/number}","issue_comment_url":"https://api.github.com/repos/UnnoTed/osu-web/issues/comments{/number}","contents_url":"https://api.github.com/repos/UnnoTed/osu-web/contents/{+path}","compare_url":"https://api.github.com/repos/UnnoTed/osu-web/compare/{base}...{head}","merges_url":"https://api.github.com/repos/UnnoTed/osu-web/merges","archive_url":"https://api.github.com/repos/UnnoTed/osu-web/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/UnnoTed/osu-web/downloads","issues_url":"https://api.github.com/repos/UnnoTed/osu-web/issues{/number}","pulls_url":"https://api.github.com/repos/UnnoTed/osu-web/pulls{/number}","milestones_url":"https://api.github.com/repos/UnnoTed/osu-web/milestones{/number}","notifications_url":"https://api.github.com/repos/UnnoTed/osu-web/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/UnnoTed/osu-web/labels{/name}","releases_url":"https://api.github.com/repos/UnnoTed/osu-web/releases{/id}","deployments_url":"https://api.github.com/repos/UnnoTed/osu-web/deployments","created_at":"2016-02-09T20:31:07Z","updated_at":"2016-02-09T20:31:09Z","pushed_at":"2016-02-24T00:06:04Z","git_url":"git://github.com/UnnoTed/osu-web.git","ssh_url":"git@github.com:UnnoTed/osu-web.git","clone_url":"https://github.com/UnnoTed/osu-web.git","svn_url":"https://github.com/UnnoTed/osu-web","homepage":null,"size":15328,"stargazers_count":0,"watchers_count":0,"language":"PHP","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"ppy:master","ref":"master","sha":"6bb4e2ace5db3f0c863678beac25863b5e38cc3f","user":{"login":"ppy","id":995763,"avatar_url":"https://avatars.githubusercontent.com/u/995763?v=3","gravatar_id":"","url":"https://api.github.com/users/ppy","html_url":"https://github.com/ppy","followers_url":"https://api.github.com/users/ppy/followers","following_url":"https://api.github.com/users/ppy/following{/other_user}","gists_url":"https://api.github.com/users/ppy/gists{/gist_id}","starred_url":"https://api.github.com/users/ppy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ppy/subscriptions","organizations_url":"https://api.github.com/users/ppy/orgs","repos_url":"https://api.github.com/users/ppy/repos","events_url":"https://api.github.com/users/ppy/events{/privacy}","received_events_url":"https://api.github.com/users/ppy/received_events","type":"Organization","site_admin":false},"repo":{"id":41410580,"name":"osu-web","full_name":"ppy/osu-web","owner":{"login":"ppy","id":995763,"avatar_url":"https://avatars.githubusercontent.com/u/995763?v=3","gravatar_id":"","url":"https://api.github.com/users/ppy","html_url":"https://github.com/ppy","followers_url":"https://api.github.com/users/ppy/followers","following_url":"https://api.github.com/users/ppy/following{/other_user}","gists_url":"https://api.github.com/users/ppy/gists{/gist_id}","starred_url":"https://api.github.com/users/ppy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ppy/subscriptions","organizations_url":"https://api.github.com/users/ppy/orgs","repos_url":"https://api.github.com/users/ppy/repos","events_url":"https://api.github.com/users/ppy/events{/privacy}","received_events_url":"https://api.github.com/users/ppy/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/ppy/osu-web","description":"the future face of osu!","fork":false,"url":"https://api.github.com/repos/ppy/osu-web","forks_url":"https://api.github.com/repos/ppy/osu-web/forks","keys_url":"https://api.github.com/repos/ppy/osu-web/keys{/key_id}","collaborators_url":"https://api.github.com/repos/ppy/osu-web/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/ppy/osu-web/teams","hooks_url":"https://api.github.com/repos/ppy/osu-web/hooks","issue_events_url":"https://api.github.com/repos/ppy/osu-web/issues/events{/number}","events_url":"https://api.github.com/repos/ppy/osu-web/events","assignees_url":"https://api.github.com/repos/ppy/osu-web/assignees{/user}","branches_url":"https://api.github.com/repos/ppy/osu-web/branches{/branch}","tags_url":"https://api.github.com/repos/ppy/osu-web/tags","blobs_url":"https://api.github.com/repos/ppy/osu-web/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/ppy/osu-web/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/ppy/osu-web/git/refs{/sha}","trees_url":"https://api.github.com/repos/ppy/osu-web/git/trees{/sha}","statuses_url":"https://api.github.com/repos/ppy/osu-web/statuses/{sha}","languages_url":"https://api.github.com/repos/ppy/osu-web/languages","stargazers_url":"https://api.github.com/repos/ppy/osu-web/stargazers","contributors_url":"https://api.github.com/repos/ppy/osu-web/contributors","subscribers_url":"https://api.github.com/repos/ppy/osu-web/subscribers","subscription_url":"https://api.github.com/repos/ppy/osu-web/subscription","commits_url":"https://api.github.com/repos/ppy/osu-web/commits{/sha}","git_commits_url":"https://api.github.com/repos/ppy/osu-web/git/commits{/sha}","comments_url":"https://api.github.com/repos/ppy/osu-web/comments{/number}","issue_comment_url":"https://api.github.com/repos/ppy/osu-web/issues/comments{/number}","contents_url":"https://api.github.com/repos/ppy/osu-web/contents/{+path}","compare_url":"https://api.github.com/repos/ppy/osu-web/compare/{base}...{head}","merges_url":"https://api.github.com/repos/ppy/osu-web/merges","archive_url":"https://api.github.com/repos/ppy/osu-web/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/ppy/osu-web/downloads","issues_url":"https://api.github.com/repos/ppy/osu-web/issues{/number}","pulls_url":"https://api.github.com/repos/ppy/osu-web/pulls{/number}","milestones_url":"https://api.github.com/repos/ppy/osu-web/milestones{/number}","notifications_url":"https://api.github.com/repos/ppy/osu-web/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/ppy/osu-web/labels{/name}","releases_url":"https://api.github.com/repos/ppy/osu-web/releases{/id}","deployments_url":"https://api.github.com/repos/ppy/osu-web/deployments","created_at":"2015-08-26T07:14:32Z","updated_at":"2016-02-24T03:47:08Z","pushed_at":"2016-02-24T06:31:13Z","git_url":"git://github.com/ppy/osu-web.git","ssh_url":"git@github.com:ppy/osu-web.git","clone_url":"https://github.com/ppy/osu-web.git","svn_url":"https://github.com/ppy/osu-web","homepage":null,"size":16041,"stargazers_count":138,"watchers_count":138,"language":"PHP","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":44,"mirror_url":null,"open_issues_count":50,"forks":44,"open_issues":50,"watchers":138,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/ppy/osu-web/pulls/395"},"html":{"href":"https://github.com/ppy/osu-web/pull/395"},"issue":{"href":"https://api.github.com/repos/ppy/osu-web/issues/395"},"comments":{"href":"https://api.github.com/repos/ppy/osu-web/issues/395/comments"},"review_comments":{"href":"https://api.github.com/repos/ppy/osu-web/pulls/395/comments"},"review_comment":{"href":"https://api.github.com/repos/ppy/osu-web/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/ppy/osu-web/pulls/395/commits"},"statuses":{"href":"https://api.github.com/repos/ppy/osu-web/statuses/1769fd8ecbd0e8627e27aaa530afbbc3f6feeb6f"}}}}