{"action":"created","comment":{"url":"https://api.github.com/repos/antingshen/BeaverDam/pulls/comments/66367392","id":66367392,"diff_hunk":"@@ -1,67 +1,82 @@\n-class Shape {\n-    /**\n-     * Basic shape constructor.\n-     * @param x The starting x coordinate.\n-     * @param y The starting y coordinate.\n-     * @param w The width of the shape.\n-     * @param h The height of the shape;\n-     * @param fill The color of the shape;\n-     */\n-    constructor(x, y, w, h, fill) {\n-        this.x = x;\n-        this.y = y;\n-        this.w = w;\n-        this.h = h;\n-        this.fill = fill;\n+\n+// This class represents the box at a particular frame of one thing\n+class Box {\n+\n+    constructor(thing, frame, x, y, w, h, interpolated = true) {\n+        this.thing = thing; // The parent thing object that owns this keyframe\n+        this.frame = frame;\n+        this._x = x;\n+        this._y = y;\n+        this._w = w;\n+        this._h = h;\n+\n+        // true if interpolated, meaning if modified we must insert this back into parent thing as a new keyframe\n+        this.interpolated = interpolated;","path":"static/box.js","position":29,"original_position":29,"commit_id":"fc2f10661e9a6cdae46654dfd2f3860ad47502af","original_commit_id":"fc2f10661e9a6cdae46654dfd2f3860ad47502af","user":{"login":"antingshen","id":2498332,"avatar_url":"https://avatars.githubusercontent.com/u/2498332?v=3","gravatar_id":"","url":"https://api.github.com/users/antingshen","html_url":"https://github.com/antingshen","followers_url":"https://api.github.com/users/antingshen/followers","following_url":"https://api.github.com/users/antingshen/following{/other_user}","gists_url":"https://api.github.com/users/antingshen/gists{/gist_id}","starred_url":"https://api.github.com/users/antingshen/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/antingshen/subscriptions","organizations_url":"https://api.github.com/users/antingshen/orgs","repos_url":"https://api.github.com/users/antingshen/repos","events_url":"https://api.github.com/users/antingshen/events{/privacy}","received_events_url":"https://api.github.com/users/antingshen/received_events","type":"User","site_admin":false},"body":"Every frame has a box object, just so it's easier to draw everything. Think of Box as literally a data structure to store a box. The object will be interpolated on the spot and tossed away afterwards, unless it's `modified`","created_at":"2016-06-09T00:53:55Z","updated_at":"2016-06-09T00:53:55Z","html_url":"https://github.com/antingshen/BeaverDam/pull/7#discussion_r66367392","pull_request_url":"https://api.github.com/repos/antingshen/BeaverDam/pulls/7","_links":{"self":{"href":"https://api.github.com/repos/antingshen/BeaverDam/pulls/comments/66367392"},"html":{"href":"https://github.com/antingshen/BeaverDam/pull/7#discussion_r66367392"},"pull_request":{"href":"https://api.github.com/repos/antingshen/BeaverDam/pulls/7"}}},"pull_request":{"url":"https://api.github.com/repos/antingshen/BeaverDam/pulls/7","id":73139089,"html_url":"https://github.com/antingshen/BeaverDam/pull/7","diff_url":"https://github.com/antingshen/BeaverDam/pull/7.diff","patch_url":"https://github.com/antingshen/BeaverDam/pull/7.patch","issue_url":"https://api.github.com/repos/antingshen/BeaverDam/issues/7","number":7,"state":"open","locked":false,"title":"[WIP] added boxes & things, minor formatting changes","user":{"login":"antingshen","id":2498332,"avatar_url":"https://avatars.githubusercontent.com/u/2498332?v=3","gravatar_id":"","url":"https://api.github.com/users/antingshen","html_url":"https://github.com/antingshen","followers_url":"https://api.github.com/users/antingshen/followers","following_url":"https://api.github.com/users/antingshen/following{/other_user}","gists_url":"https://api.github.com/users/antingshen/gists{/gist_id}","starred_url":"https://api.github.com/users/antingshen/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/antingshen/subscriptions","organizations_url":"https://api.github.com/users/antingshen/orgs","repos_url":"https://api.github.com/users/antingshen/repos","events_url":"https://api.github.com/users/antingshen/events{/privacy}","received_events_url":"https://api.github.com/users/antingshen/received_events","type":"User","site_admin":false},"body":"","created_at":"2016-06-08T23:48:51Z","updated_at":"2016-06-09T00:53:55Z","closed_at":null,"merged_at":null,"merge_commit_sha":"86e281a9624cb65532b9efe8d4780479927c9209","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/antingshen/BeaverDam/pulls/7/commits","review_comments_url":"https://api.github.com/repos/antingshen/BeaverDam/pulls/7/comments","review_comment_url":"https://api.github.com/repos/antingshen/BeaverDam/pulls/comments{/number}","comments_url":"https://api.github.com/repos/antingshen/BeaverDam/issues/7/comments","statuses_url":"https://api.github.com/repos/antingshen/BeaverDam/statuses/fc2f10661e9a6cdae46654dfd2f3860ad47502af","head":{"label":"antingshen:time_dimension","ref":"time_dimension","sha":"fc2f10661e9a6cdae46654dfd2f3860ad47502af","user":{"login":"antingshen","id":2498332,"avatar_url":"https://avatars.githubusercontent.com/u/2498332?v=3","gravatar_id":"","url":"https://api.github.com/users/antingshen","html_url":"https://github.com/antingshen","followers_url":"https://api.github.com/users/antingshen/followers","following_url":"https://api.github.com/users/antingshen/following{/other_user}","gists_url":"https://api.github.com/users/antingshen/gists{/gist_id}","starred_url":"https://api.github.com/users/antingshen/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/antingshen/subscriptions","organizations_url":"https://api.github.com/users/antingshen/orgs","repos_url":"https://api.github.com/users/antingshen/repos","events_url":"https://api.github.com/users/antingshen/events{/privacy}","received_events_url":"https://api.github.com/users/antingshen/received_events","type":"User","site_admin":false},"repo":{"id":58971571,"name":"BeaverDam","full_name":"antingshen/BeaverDam","owner":{"login":"antingshen","id":2498332,"avatar_url":"https://avatars.githubusercontent.com/u/2498332?v=3","gravatar_id":"","url":"https://api.github.com/users/antingshen","html_url":"https://github.com/antingshen","followers_url":"https://api.github.com/users/antingshen/followers","following_url":"https://api.github.com/users/antingshen/following{/other_user}","gists_url":"https://api.github.com/users/antingshen/gists{/gist_id}","starred_url":"https://api.github.com/users/antingshen/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/antingshen/subscriptions","organizations_url":"https://api.github.com/users/antingshen/orgs","repos_url":"https://api.github.com/users/antingshen/repos","events_url":"https://api.github.com/users/antingshen/events{/privacy}","received_events_url":"https://api.github.com/users/antingshen/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/antingshen/BeaverDam","description":"Video annotation tool for deep learning training labels","fork":false,"url":"https://api.github.com/repos/antingshen/BeaverDam","forks_url":"https://api.github.com/repos/antingshen/BeaverDam/forks","keys_url":"https://api.github.com/repos/antingshen/BeaverDam/keys{/key_id}","collaborators_url":"https://api.github.com/repos/antingshen/BeaverDam/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/antingshen/BeaverDam/teams","hooks_url":"https://api.github.com/repos/antingshen/BeaverDam/hooks","issue_events_url":"https://api.github.com/repos/antingshen/BeaverDam/issues/events{/number}","events_url":"https://api.github.com/repos/antingshen/BeaverDam/events","assignees_url":"https://api.github.com/repos/antingshen/BeaverDam/assignees{/user}","branches_url":"https://api.github.com/repos/antingshen/BeaverDam/branches{/branch}","tags_url":"https://api.github.com/repos/antingshen/BeaverDam/tags","blobs_url":"https://api.github.com/repos/antingshen/BeaverDam/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/antingshen/BeaverDam/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/antingshen/BeaverDam/git/refs{/sha}","trees_url":"https://api.github.com/repos/antingshen/BeaverDam/git/trees{/sha}","statuses_url":"https://api.github.com/repos/antingshen/BeaverDam/statuses/{sha}","languages_url":"https://api.github.com/repos/antingshen/BeaverDam/languages","stargazers_url":"https://api.github.com/repos/antingshen/BeaverDam/stargazers","contributors_url":"https://api.github.com/repos/antingshen/BeaverDam/contributors","subscribers_url":"https://api.github.com/repos/antingshen/BeaverDam/subscribers","subscription_url":"https://api.github.com/repos/antingshen/BeaverDam/subscription","commits_url":"https://api.github.com/repos/antingshen/BeaverDam/commits{/sha}","git_commits_url":"https://api.github.com/repos/antingshen/BeaverDam/git/commits{/sha}","comments_url":"https://api.github.com/repos/antingshen/BeaverDam/comments{/number}","issue_comment_url":"https://api.github.com/repos/antingshen/BeaverDam/issues/comments{/number}","contents_url":"https://api.github.com/repos/antingshen/BeaverDam/contents/{+path}","compare_url":"https://api.github.com/repos/antingshen/BeaverDam/compare/{base}...{head}","merges_url":"https://api.github.com/repos/antingshen/BeaverDam/merges","archive_url":"https://api.github.com/repos/antingshen/BeaverDam/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/antingshen/BeaverDam/downloads","issues_url":"https://api.github.com/repos/antingshen/BeaverDam/issues{/number}","pulls_url":"https://api.github.com/repos/antingshen/BeaverDam/pulls{/number}","milestones_url":"https://api.github.com/repos/antingshen/BeaverDam/milestones{/number}","notifications_url":"https://api.github.com/repos/antingshen/BeaverDam/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/antingshen/BeaverDam/labels{/name}","releases_url":"https://api.github.com/repos/antingshen/BeaverDam/releases{/id}","deployments_url":"https://api.github.com/repos/antingshen/BeaverDam/deployments","created_at":"2016-05-16T22:15:11Z","updated_at":"2016-06-03T21:52:44Z","pushed_at":"2016-06-08T23:48:51Z","git_url":"git://github.com/antingshen/BeaverDam.git","ssh_url":"git@github.com:antingshen/BeaverDam.git","clone_url":"https://github.com/antingshen/BeaverDam.git","svn_url":"https://github.com/antingshen/BeaverDam","homepage":null,"size":13428,"stargazers_count":1,"watchers_count":1,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":5,"forks":0,"open_issues":5,"watchers":1,"default_branch":"master"}},"base":{"label":"antingshen:master","ref":"master","sha":"286d66a6a5a8283fef131adc1c1e496061696320","user":{"login":"antingshen","id":2498332,"avatar_url":"https://avatars.githubusercontent.com/u/2498332?v=3","gravatar_id":"","url":"https://api.github.com/users/antingshen","html_url":"https://github.com/antingshen","followers_url":"https://api.github.com/users/antingshen/followers","following_url":"https://api.github.com/users/antingshen/following{/other_user}","gists_url":"https://api.github.com/users/antingshen/gists{/gist_id}","starred_url":"https://api.github.com/users/antingshen/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/antingshen/subscriptions","organizations_url":"https://api.github.com/users/antingshen/orgs","repos_url":"https://api.github.com/users/antingshen/repos","events_url":"https://api.github.com/users/antingshen/events{/privacy}","received_events_url":"https://api.github.com/users/antingshen/received_events","type":"User","site_admin":false},"repo":{"id":58971571,"name":"BeaverDam","full_name":"antingshen/BeaverDam","owner":{"login":"antingshen","id":2498332,"avatar_url":"https://avatars.githubusercontent.com/u/2498332?v=3","gravatar_id":"","url":"https://api.github.com/users/antingshen","html_url":"https://github.com/antingshen","followers_url":"https://api.github.com/users/antingshen/followers","following_url":"https://api.github.com/users/antingshen/following{/other_user}","gists_url":"https://api.github.com/users/antingshen/gists{/gist_id}","starred_url":"https://api.github.com/users/antingshen/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/antingshen/subscriptions","organizations_url":"https://api.github.com/users/antingshen/orgs","repos_url":"https://api.github.com/users/antingshen/repos","events_url":"https://api.github.com/users/antingshen/events{/privacy}","received_events_url":"https://api.github.com/users/antingshen/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/antingshen/BeaverDam","description":"Video annotation tool for deep learning training labels","fork":false,"url":"https://api.github.com/repos/antingshen/BeaverDam","forks_url":"https://api.github.com/repos/antingshen/BeaverDam/forks","keys_url":"https://api.github.com/repos/antingshen/BeaverDam/keys{/key_id}","collaborators_url":"https://api.github.com/repos/antingshen/BeaverDam/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/antingshen/BeaverDam/teams","hooks_url":"https://api.github.com/repos/antingshen/BeaverDam/hooks","issue_events_url":"https://api.github.com/repos/antingshen/BeaverDam/issues/events{/number}","events_url":"https://api.github.com/repos/antingshen/BeaverDam/events","assignees_url":"https://api.github.com/repos/antingshen/BeaverDam/assignees{/user}","branches_url":"https://api.github.com/repos/antingshen/BeaverDam/branches{/branch}","tags_url":"https://api.github.com/repos/antingshen/BeaverDam/tags","blobs_url":"https://api.github.com/repos/antingshen/BeaverDam/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/antingshen/BeaverDam/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/antingshen/BeaverDam/git/refs{/sha}","trees_url":"https://api.github.com/repos/antingshen/BeaverDam/git/trees{/sha}","statuses_url":"https://api.github.com/repos/antingshen/BeaverDam/statuses/{sha}","languages_url":"https://api.github.com/repos/antingshen/BeaverDam/languages","stargazers_url":"https://api.github.com/repos/antingshen/BeaverDam/stargazers","contributors_url":"https://api.github.com/repos/antingshen/BeaverDam/contributors","subscribers_url":"https://api.github.com/repos/antingshen/BeaverDam/subscribers","subscription_url":"https://api.github.com/repos/antingshen/BeaverDam/subscription","commits_url":"https://api.github.com/repos/antingshen/BeaverDam/commits{/sha}","git_commits_url":"https://api.github.com/repos/antingshen/BeaverDam/git/commits{/sha}","comments_url":"https://api.github.com/repos/antingshen/BeaverDam/comments{/number}","issue_comment_url":"https://api.github.com/repos/antingshen/BeaverDam/issues/comments{/number}","contents_url":"https://api.github.com/repos/antingshen/BeaverDam/contents/{+path}","compare_url":"https://api.github.com/repos/antingshen/BeaverDam/compare/{base}...{head}","merges_url":"https://api.github.com/repos/antingshen/BeaverDam/merges","archive_url":"https://api.github.com/repos/antingshen/BeaverDam/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/antingshen/BeaverDam/downloads","issues_url":"https://api.github.com/repos/antingshen/BeaverDam/issues{/number}","pulls_url":"https://api.github.com/repos/antingshen/BeaverDam/pulls{/number}","milestones_url":"https://api.github.com/repos/antingshen/BeaverDam/milestones{/number}","notifications_url":"https://api.github.com/repos/antingshen/BeaverDam/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/antingshen/BeaverDam/labels{/name}","releases_url":"https://api.github.com/repos/antingshen/BeaverDam/releases{/id}","deployments_url":"https://api.github.com/repos/antingshen/BeaverDam/deployments","created_at":"2016-05-16T22:15:11Z","updated_at":"2016-06-03T21:52:44Z","pushed_at":"2016-06-08T23:48:51Z","git_url":"git://github.com/antingshen/BeaverDam.git","ssh_url":"git@github.com:antingshen/BeaverDam.git","clone_url":"https://github.com/antingshen/BeaverDam.git","svn_url":"https://github.com/antingshen/BeaverDam","homepage":null,"size":13428,"stargazers_count":1,"watchers_count":1,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":5,"forks":0,"open_issues":5,"watchers":1,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/antingshen/BeaverDam/pulls/7"},"html":{"href":"https://github.com/antingshen/BeaverDam/pull/7"},"issue":{"href":"https://api.github.com/repos/antingshen/BeaverDam/issues/7"},"comments":{"href":"https://api.github.com/repos/antingshen/BeaverDam/issues/7/comments"},"review_comments":{"href":"https://api.github.com/repos/antingshen/BeaverDam/pulls/7/comments"},"review_comment":{"href":"https://api.github.com/repos/antingshen/BeaverDam/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/antingshen/BeaverDam/pulls/7/commits"},"statuses":{"href":"https://api.github.com/repos/antingshen/BeaverDam/statuses/fc2f10661e9a6cdae46654dfd2f3860ad47502af"}}}}
{"actor":{"display_login":"antingshen"}}