{"action":"created","comment":{"url":"https://api.github.com/repos/oppia/oppia/pulls/comments/105570797","pull_request_review_id":26457091,"id":105570797,"diff_hunk":"@@ -69,11 +69,26 @@ oppia.directive('imageWithRegionsEditor', [\n         $scope.rectY = 0;\n         $scope.rectWidth = 0;\n         $scope.rectHeight = 0;\n-\n         // Is user currently drawing a new region?\n         $scope.userIsCurrentlyDrawing = false;\n         // Is user currently dragging an existing region?\n         $scope.userIsCurrentlyDragging = false;\n+        // Is user currently resizing an existing region?\n+        $scope.userIsCurrentlyResizing = false;\n+        // The horizontal direction along which user resize occurs\n+        // 1 -> Left -1 -> Right 0 -> No resize\n+        $scope.xDirection = 0;\n+        // The vertical direction along which user resize occurs\n+        // 1 -> Top -1 -> Bottom 0 -> No resize\n+        $scope.yDirection = 0;\n+        // Flags to check whether the direction changes while resizing\n+        $scope.yDirectionToggled = false;\n+        $scope.xDirectionToggled = false;\n+        // A boolean that is set whenever the cursor moves out of the\n+        // rectangular region while resizing.\n+        $scope.outOfRegion = false;","path":"extensions/objects/templates/ImageWithRegionsEditor.js","position":22,"original_position":22,"commit_id":"1d528c24fd8681536e621775d08f2dfef5c393fe","original_commit_id":"2526e32e0035c08fae73e21293c39e5fdb86cf2a","user":{"login":"seanlip","id":10575562,"avatar_url":"https://avatars3.githubusercontent.com/u/10575562?v=3","gravatar_id":"","url":"https://api.github.com/users/seanlip","html_url":"https://github.com/seanlip","followers_url":"https://api.github.com/users/seanlip/followers","following_url":"https://api.github.com/users/seanlip/following{/other_user}","gists_url":"https://api.github.com/users/seanlip/gists{/gist_id}","starred_url":"https://api.github.com/users/seanlip/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/seanlip/subscriptions","organizations_url":"https://api.github.com/users/seanlip/orgs","repos_url":"https://api.github.com/users/seanlip/repos","events_url":"https://api.github.com/users/seanlip/events{/privacy}","received_events_url":"https://api.github.com/users/seanlip/received_events","type":"User","site_admin":false},"body":"If we're still using this, can we call it $scope.movedOutOfRegion? Slightly clearer.","created_at":"2017-03-12T22:18:57Z","updated_at":"2017-03-12T22:33:11Z","html_url":"https://github.com/oppia/oppia/pull/3144#discussion_r105570797","pull_request_url":"https://api.github.com/repos/oppia/oppia/pulls/3144","_links":{"self":{"href":"https://api.github.com/repos/oppia/oppia/pulls/comments/105570797"},"html":{"href":"https://github.com/oppia/oppia/pull/3144#discussion_r105570797"},"pull_request":{"href":"https://api.github.com/repos/oppia/oppia/pulls/3144"}}},"pull_request":{"url":"https://api.github.com/repos/oppia/oppia/pulls/3144","id":108591471,"html_url":"https://github.com/oppia/oppia/pull/3144","diff_url":"https://github.com/oppia/oppia/pull/3144.diff","patch_url":"https://github.com/oppia/oppia/pull/3144.patch","issue_url":"https://api.github.com/repos/oppia/oppia/issues/3144","number":3144,"state":"open","locked":false,"title":"Fixes #3051: Image regions can be resized by clicking and dragging","user":{"login":"kirankonduru","id":13452436,"avatar_url":"https://avatars0.githubusercontent.com/u/13452436?v=3","gravatar_id":"","url":"https://api.github.com/users/kirankonduru","html_url":"https://github.com/kirankonduru","followers_url":"https://api.github.com/users/kirankonduru/followers","following_url":"https://api.github.com/users/kirankonduru/following{/other_user}","gists_url":"https://api.github.com/users/kirankonduru/gists{/gist_id}","starred_url":"https://api.github.com/users/kirankonduru/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kirankonduru/subscriptions","organizations_url":"https://api.github.com/users/kirankonduru/orgs","repos_url":"https://api.github.com/users/kirankonduru/repos","events_url":"https://api.github.com/users/kirankonduru/events{/privacy}","received_events_url":"https://api.github.com/users/kirankonduru/received_events","type":"User","site_admin":false},"body":"Fixes https://github.com/oppia/oppia/issues/3051. Image regions can now be resized in any direction by clicking and dragging inside the region in appropriate direction.\r\n","created_at":"2017-03-01T17:44:11Z","updated_at":"2017-03-12T22:33:12Z","closed_at":null,"merged_at":null,"merge_commit_sha":"7e9f8bc2f0c72387fbe98903814dec5d71ea659c","assignee":{"login":"tjiang11","id":11807091,"avatar_url":"https://avatars1.githubusercontent.com/u/11807091?v=3","gravatar_id":"","url":"https://api.github.com/users/tjiang11","html_url":"https://github.com/tjiang11","followers_url":"https://api.github.com/users/tjiang11/followers","following_url":"https://api.github.com/users/tjiang11/following{/other_user}","gists_url":"https://api.github.com/users/tjiang11/gists{/gist_id}","starred_url":"https://api.github.com/users/tjiang11/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tjiang11/subscriptions","organizations_url":"https://api.github.com/users/tjiang11/orgs","repos_url":"https://api.github.com/users/tjiang11/repos","events_url":"https://api.github.com/users/tjiang11/events{/privacy}","received_events_url":"https://api.github.com/users/tjiang11/received_events","type":"User","site_admin":false},"assignees":[{"login":"tjiang11","id":11807091,"avatar_url":"https://avatars1.githubusercontent.com/u/11807091?v=3","gravatar_id":"","url":"https://api.github.com/users/tjiang11","html_url":"https://github.com/tjiang11","followers_url":"https://api.github.com/users/tjiang11/followers","following_url":"https://api.github.com/users/tjiang11/following{/other_user}","gists_url":"https://api.github.com/users/tjiang11/gists{/gist_id}","starred_url":"https://api.github.com/users/tjiang11/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tjiang11/subscriptions","organizations_url":"https://api.github.com/users/tjiang11/orgs","repos_url":"https://api.github.com/users/tjiang11/repos","events_url":"https://api.github.com/users/tjiang11/events{/privacy}","received_events_url":"https://api.github.com/users/tjiang11/received_events","type":"User","site_admin":false}],"milestone":null,"commits_url":"https://api.github.com/repos/oppia/oppia/pulls/3144/commits","review_comments_url":"https://api.github.com/repos/oppia/oppia/pulls/3144/comments","review_comment_url":"https://api.github.com/repos/oppia/oppia/pulls/comments{/number}","comments_url":"https://api.github.com/repos/oppia/oppia/issues/3144/comments","statuses_url":"https://api.github.com/repos/oppia/oppia/statuses/1d528c24fd8681536e621775d08f2dfef5c393fe","head":{"label":"kirankonduru:resizeimg","ref":"resizeimg","sha":"1d528c24fd8681536e621775d08f2dfef5c393fe","user":{"login":"kirankonduru","id":13452436,"avatar_url":"https://avatars0.githubusercontent.com/u/13452436?v=3","gravatar_id":"","url":"https://api.github.com/users/kirankonduru","html_url":"https://github.com/kirankonduru","followers_url":"https://api.github.com/users/kirankonduru/followers","following_url":"https://api.github.com/users/kirankonduru/following{/other_user}","gists_url":"https://api.github.com/users/kirankonduru/gists{/gist_id}","starred_url":"https://api.github.com/users/kirankonduru/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kirankonduru/subscriptions","organizations_url":"https://api.github.com/users/kirankonduru/orgs","repos_url":"https://api.github.com/users/kirankonduru/repos","events_url":"https://api.github.com/users/kirankonduru/events{/privacy}","received_events_url":"https://api.github.com/users/kirankonduru/received_events","type":"User","site_admin":false},"repo":{"id":75614217,"name":"oppia","full_name":"kirankonduru/oppia","owner":{"login":"kirankonduru","id":13452436,"avatar_url":"https://avatars0.githubusercontent.com/u/13452436?v=3","gravatar_id":"","url":"https://api.github.com/users/kirankonduru","html_url":"https://github.com/kirankonduru","followers_url":"https://api.github.com/users/kirankonduru/followers","following_url":"https://api.github.com/users/kirankonduru/following{/other_user}","gists_url":"https://api.github.com/users/kirankonduru/gists{/gist_id}","starred_url":"https://api.github.com/users/kirankonduru/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kirankonduru/subscriptions","organizations_url":"https://api.github.com/users/kirankonduru/orgs","repos_url":"https://api.github.com/users/kirankonduru/repos","events_url":"https://api.github.com/users/kirankonduru/events{/privacy}","received_events_url":"https://api.github.com/users/kirankonduru/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/kirankonduru/oppia","description":"Tool for collaboratively building interactive lessons.","fork":true,"url":"https://api.github.com/repos/kirankonduru/oppia","forks_url":"https://api.github.com/repos/kirankonduru/oppia/forks","keys_url":"https://api.github.com/repos/kirankonduru/oppia/keys{/key_id}","collaborators_url":"https://api.github.com/repos/kirankonduru/oppia/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/kirankonduru/oppia/teams","hooks_url":"https://api.github.com/repos/kirankonduru/oppia/hooks","issue_events_url":"https://api.github.com/repos/kirankonduru/oppia/issues/events{/number}","events_url":"https://api.github.com/repos/kirankonduru/oppia/events","assignees_url":"https://api.github.com/repos/kirankonduru/oppia/assignees{/user}","branches_url":"https://api.github.com/repos/kirankonduru/oppia/branches{/branch}","tags_url":"https://api.github.com/repos/kirankonduru/oppia/tags","blobs_url":"https://api.github.com/repos/kirankonduru/oppia/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/kirankonduru/oppia/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/kirankonduru/oppia/git/refs{/sha}","trees_url":"https://api.github.com/repos/kirankonduru/oppia/git/trees{/sha}","statuses_url":"https://api.github.com/repos/kirankonduru/oppia/statuses/{sha}","languages_url":"https://api.github.com/repos/kirankonduru/oppia/languages","stargazers_url":"https://api.github.com/repos/kirankonduru/oppia/stargazers","contributors_url":"https://api.github.com/repos/kirankonduru/oppia/contributors","subscribers_url":"https://api.github.com/repos/kirankonduru/oppia/subscribers","subscription_url":"https://api.github.com/repos/kirankonduru/oppia/subscription","commits_url":"https://api.github.com/repos/kirankonduru/oppia/commits{/sha}","git_commits_url":"https://api.github.com/repos/kirankonduru/oppia/git/commits{/sha}","comments_url":"https://api.github.com/repos/kirankonduru/oppia/comments{/number}","issue_comment_url":"https://api.github.com/repos/kirankonduru/oppia/issues/comments{/number}","contents_url":"https://api.github.com/repos/kirankonduru/oppia/contents/{+path}","compare_url":"https://api.github.com/repos/kirankonduru/oppia/compare/{base}...{head}","merges_url":"https://api.github.com/repos/kirankonduru/oppia/merges","archive_url":"https://api.github.com/repos/kirankonduru/oppia/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/kirankonduru/oppia/downloads","issues_url":"https://api.github.com/repos/kirankonduru/oppia/issues{/number}","pulls_url":"https://api.github.com/repos/kirankonduru/oppia/pulls{/number}","milestones_url":"https://api.github.com/repos/kirankonduru/oppia/milestones{/number}","notifications_url":"https://api.github.com/repos/kirankonduru/oppia/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/kirankonduru/oppia/labels{/name}","releases_url":"https://api.github.com/repos/kirankonduru/oppia/releases{/id}","deployments_url":"https://api.github.com/repos/kirankonduru/oppia/deployments","created_at":"2016-12-05T10:30:33Z","updated_at":"2016-12-05T10:30:37Z","pushed_at":"2017-03-12T17:31:04Z","git_url":"git://github.com/kirankonduru/oppia.git","ssh_url":"git@github.com:kirankonduru/oppia.git","clone_url":"https://github.com/kirankonduru/oppia.git","svn_url":"https://github.com/kirankonduru/oppia","homepage":"https://www.oppia.org","size":49762,"stargazers_count":0,"watchers_count":0,"language":"Python","has_issues":false,"has_downloads":false,"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":"develop"}},"base":{"label":"oppia:develop","ref":"develop","sha":"2d4d29624afdeef699360189b1916b884b87124f","user":{"login":"oppia","id":11620230,"avatar_url":"https://avatars2.githubusercontent.com/u/11620230?v=3","gravatar_id":"","url":"https://api.github.com/users/oppia","html_url":"https://github.com/oppia","followers_url":"https://api.github.com/users/oppia/followers","following_url":"https://api.github.com/users/oppia/following{/other_user}","gists_url":"https://api.github.com/users/oppia/gists{/gist_id}","starred_url":"https://api.github.com/users/oppia/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/oppia/subscriptions","organizations_url":"https://api.github.com/users/oppia/orgs","repos_url":"https://api.github.com/users/oppia/repos","events_url":"https://api.github.com/users/oppia/events{/privacy}","received_events_url":"https://api.github.com/users/oppia/received_events","type":"Organization","site_admin":false},"repo":{"id":40687563,"name":"oppia","full_name":"oppia/oppia","owner":{"login":"oppia","id":11620230,"avatar_url":"https://avatars2.githubusercontent.com/u/11620230?v=3","gravatar_id":"","url":"https://api.github.com/users/oppia","html_url":"https://github.com/oppia","followers_url":"https://api.github.com/users/oppia/followers","following_url":"https://api.github.com/users/oppia/following{/other_user}","gists_url":"https://api.github.com/users/oppia/gists{/gist_id}","starred_url":"https://api.github.com/users/oppia/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/oppia/subscriptions","organizations_url":"https://api.github.com/users/oppia/orgs","repos_url":"https://api.github.com/users/oppia/repos","events_url":"https://api.github.com/users/oppia/events{/privacy}","received_events_url":"https://api.github.com/users/oppia/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/oppia/oppia","description":"Tool for collaboratively building interactive lessons.","fork":false,"url":"https://api.github.com/repos/oppia/oppia","forks_url":"https://api.github.com/repos/oppia/oppia/forks","keys_url":"https://api.github.com/repos/oppia/oppia/keys{/key_id}","collaborators_url":"https://api.github.com/repos/oppia/oppia/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/oppia/oppia/teams","hooks_url":"https://api.github.com/repos/oppia/oppia/hooks","issue_events_url":"https://api.github.com/repos/oppia/oppia/issues/events{/number}","events_url":"https://api.github.com/repos/oppia/oppia/events","assignees_url":"https://api.github.com/repos/oppia/oppia/assignees{/user}","branches_url":"https://api.github.com/repos/oppia/oppia/branches{/branch}","tags_url":"https://api.github.com/repos/oppia/oppia/tags","blobs_url":"https://api.github.com/repos/oppia/oppia/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/oppia/oppia/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/oppia/oppia/git/refs{/sha}","trees_url":"https://api.github.com/repos/oppia/oppia/git/trees{/sha}","statuses_url":"https://api.github.com/repos/oppia/oppia/statuses/{sha}","languages_url":"https://api.github.com/repos/oppia/oppia/languages","stargazers_url":"https://api.github.com/repos/oppia/oppia/stargazers","contributors_url":"https://api.github.com/repos/oppia/oppia/contributors","subscribers_url":"https://api.github.com/repos/oppia/oppia/subscribers","subscription_url":"https://api.github.com/repos/oppia/oppia/subscription","commits_url":"https://api.github.com/repos/oppia/oppia/commits{/sha}","git_commits_url":"https://api.github.com/repos/oppia/oppia/git/commits{/sha}","comments_url":"https://api.github.com/repos/oppia/oppia/comments{/number}","issue_comment_url":"https://api.github.com/repos/oppia/oppia/issues/comments{/number}","contents_url":"https://api.github.com/repos/oppia/oppia/contents/{+path}","compare_url":"https://api.github.com/repos/oppia/oppia/compare/{base}...{head}","merges_url":"https://api.github.com/repos/oppia/oppia/merges","archive_url":"https://api.github.com/repos/oppia/oppia/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/oppia/oppia/downloads","issues_url":"https://api.github.com/repos/oppia/oppia/issues{/number}","pulls_url":"https://api.github.com/repos/oppia/oppia/pulls{/number}","milestones_url":"https://api.github.com/repos/oppia/oppia/milestones{/number}","notifications_url":"https://api.github.com/repos/oppia/oppia/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/oppia/oppia/labels{/name}","releases_url":"https://api.github.com/repos/oppia/oppia/releases{/id}","deployments_url":"https://api.github.com/repos/oppia/oppia/deployments","created_at":"2015-08-14T00:16:14Z","updated_at":"2017-03-11T10:34:50Z","pushed_at":"2017-03-12T22:17:36Z","git_url":"git://github.com/oppia/oppia.git","ssh_url":"git@github.com:oppia/oppia.git","clone_url":"https://github.com/oppia/oppia.git","svn_url":"https://github.com/oppia/oppia","homepage":"https://www.oppia.org","size":50069,"stargazers_count":235,"watchers_count":235,"language":"Python","has_issues":true,"has_downloads":false,"has_wiki":true,"has_pages":false,"forks_count":378,"mirror_url":null,"open_issues_count":366,"forks":378,"open_issues":366,"watchers":235,"default_branch":"develop"}},"_links":{"self":{"href":"https://api.github.com/repos/oppia/oppia/pulls/3144"},"html":{"href":"https://github.com/oppia/oppia/pull/3144"},"issue":{"href":"https://api.github.com/repos/oppia/oppia/issues/3144"},"comments":{"href":"https://api.github.com/repos/oppia/oppia/issues/3144/comments"},"review_comments":{"href":"https://api.github.com/repos/oppia/oppia/pulls/3144/comments"},"review_comment":{"href":"https://api.github.com/repos/oppia/oppia/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/oppia/oppia/pulls/3144/commits"},"statuses":{"href":"https://api.github.com/repos/oppia/oppia/statuses/1d528c24fd8681536e621775d08f2dfef5c393fe"}}}}
{"actor":{"display_login":"seanlip"}}