{"action":"created","comment":{"url":"https://api.github.com/repos/cornerstonejs/cornerstoneTools/pulls/comments/205379991","pull_request_review_id":140635942,"id":205379991,"node_id":"MDI0OlB1bGxSZXF1ZXN0UmV2aWV3Q29tbWVudDIwNTM3OTk5MQ==","diff_hunk":"@@ -0,0 +1,1143 @@\n+/* eslint no-loop-func: 0 */ // --> OFF\n+/* eslint no-underscore-dangle: 0 */\n+import EVENTS from './../events.js';\n+import external from './../externalModules.js';\n+import baseAnnotationTool from './../base/baseAnnotationTool.js';\n+// State\n+import { addToolState, getToolState } from './../stateManagement/toolState.js';\n+import toolStyle from './../stateManagement/toolStyle.js';\n+import toolColors from './../stateManagement/toolColors.js';\n+import mouseToolEventDispatcher from './../eventDispatchers/mouseToolEventDispatcher.js';\n+// Manipulators\n+import drawHandles from './../manipulators/drawHandles.js';\n+// Implementation Logic\n+import pointInsideBoundingBox from '../util/pointInsideBoundingBox.js';\n+import calculateSUV from '../util/calculateSUV.js';\n+import dragObject from '../util/freehand/dragObject.js';\n+import dropObject from '../util/freehand/dropObject.js';\n+import insertOrDelete from '../util/freehand/insertOrDelete.js';\n+import freeHandArea from '../util/freehand/freeHandArea.js';\n+import calculateFreehandStatistics from '../util/freehand/calculateFreehandStatistics.js';\n+import freeHandIntersect from '../util/freehand/freeHandIntersect.js';\n+import { FreehandLineFinder } from '../util/freehand/FreehandLineFinder.js';","path":"src/fancy-tools/freehandTool.js","position":22,"original_position":22,"commit_id":"591ee3687c3e37af6abe0259b8ba18b59dd6c251","original_commit_id":"591ee3687c3e37af6abe0259b8ba18b59dd6c251","user":{"login":"JamesAPetts","id":25818497,"node_id":"MDQ6VXNlcjI1ODE4NDk3","avatar_url":"https://avatars0.githubusercontent.com/u/25818497?v=4","gravatar_id":"","url":"https://api.github.com/users/JamesAPetts","html_url":"https://github.com/JamesAPetts","followers_url":"https://api.github.com/users/JamesAPetts/followers","following_url":"https://api.github.com/users/JamesAPetts/following{/other_user}","gists_url":"https://api.github.com/users/JamesAPetts/gists{/gist_id}","starred_url":"https://api.github.com/users/JamesAPetts/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/JamesAPetts/subscriptions","organizations_url":"https://api.github.com/users/JamesAPetts/orgs","repos_url":"https://api.github.com/users/JamesAPetts/repos","events_url":"https://api.github.com/users/JamesAPetts/events{/privacy}","received_events_url":"https://api.github.com/users/JamesAPetts/received_events","type":"User","site_admin":false},"body":"Sure thing.","created_at":"2018-07-26T08:59:04Z","updated_at":"2018-07-26T08:59:04Z","html_url":"https://github.com/cornerstonejs/cornerstoneTools/pull/488#discussion_r205379991","pull_request_url":"https://api.github.com/repos/cornerstonejs/cornerstoneTools/pulls/488","author_association":"CONTRIBUTOR","_links":{"self":{"href":"https://api.github.com/repos/cornerstonejs/cornerstoneTools/pulls/comments/205379991"},"html":{"href":"https://github.com/cornerstonejs/cornerstoneTools/pull/488#discussion_r205379991"},"pull_request":{"href":"https://api.github.com/repos/cornerstonejs/cornerstoneTools/pulls/488"}},"in_reply_to_id":205195422},"pull_request":{"url":"https://api.github.com/repos/cornerstonejs/cornerstoneTools/pulls/488","id":203769146,"node_id":"MDExOlB1bGxSZXF1ZXN0MjAzNzY5MTQ2","html_url":"https://github.com/cornerstonejs/cornerstoneTools/pull/488","diff_url":"https://github.com/cornerstonejs/cornerstoneTools/pull/488.diff","patch_url":"https://github.com/cornerstonejs/cornerstoneTools/pull/488.patch","issue_url":"https://api.github.com/repos/cornerstonejs/cornerstoneTools/issues/488","number":488,"state":"open","locked":false,"title":"WIP: Migrating freehand tool to v3, and working on API utility for more complicated tools.","user":{"login":"JamesAPetts","id":25818497,"node_id":"MDQ6VXNlcjI1ODE4NDk3","avatar_url":"https://avatars0.githubusercontent.com/u/25818497?v=4","gravatar_id":"","url":"https://api.github.com/users/JamesAPetts","html_url":"https://github.com/JamesAPetts","followers_url":"https://api.github.com/users/JamesAPetts/followers","following_url":"https://api.github.com/users/JamesAPetts/following{/other_user}","gists_url":"https://api.github.com/users/JamesAPetts/gists{/gist_id}","starred_url":"https://api.github.com/users/JamesAPetts/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/JamesAPetts/subscriptions","organizations_url":"https://api.github.com/users/JamesAPetts/orgs","repos_url":"https://api.github.com/users/JamesAPetts/repos","events_url":"https://api.github.com/users/JamesAPetts/events{/privacy}","received_events_url":"https://api.github.com/users/JamesAPetts/received_events","type":"User","site_admin":false},"body":"Notes: I left 'isAwaitingMouseUp' with its current name for now, as there are a lot of dev branches, I'll review and tidy up the eventDispatcher when we have all the tools in.\r\n\r\nJ","created_at":"2018-07-25T09:07:08Z","updated_at":"2018-07-26T08:59:04Z","closed_at":null,"merged_at":null,"merge_commit_sha":"c1143fcc93494a3a4906861f1865be3da0880b82","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/cornerstonejs/cornerstoneTools/pulls/488/commits","review_comments_url":"https://api.github.com/repos/cornerstonejs/cornerstoneTools/pulls/488/comments","review_comment_url":"https://api.github.com/repos/cornerstonejs/cornerstoneTools/pulls/comments{/number}","comments_url":"https://api.github.com/repos/cornerstonejs/cornerstoneTools/issues/488/comments","statuses_url":"https://api.github.com/repos/cornerstonejs/cornerstoneTools/statuses/591ee3687c3e37af6abe0259b8ba18b59dd6c251","head":{"label":"JamesAPetts:vNext-freehand","ref":"vNext-freehand","sha":"591ee3687c3e37af6abe0259b8ba18b59dd6c251","user":{"login":"JamesAPetts","id":25818497,"node_id":"MDQ6VXNlcjI1ODE4NDk3","avatar_url":"https://avatars0.githubusercontent.com/u/25818497?v=4","gravatar_id":"","url":"https://api.github.com/users/JamesAPetts","html_url":"https://github.com/JamesAPetts","followers_url":"https://api.github.com/users/JamesAPetts/followers","following_url":"https://api.github.com/users/JamesAPetts/following{/other_user}","gists_url":"https://api.github.com/users/JamesAPetts/gists{/gist_id}","starred_url":"https://api.github.com/users/JamesAPetts/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/JamesAPetts/subscriptions","organizations_url":"https://api.github.com/users/JamesAPetts/orgs","repos_url":"https://api.github.com/users/JamesAPetts/repos","events_url":"https://api.github.com/users/JamesAPetts/events{/privacy}","received_events_url":"https://api.github.com/users/JamesAPetts/received_events","type":"User","site_admin":false},"repo":{"id":117533491,"node_id":"MDEwOlJlcG9zaXRvcnkxMTc1MzM0OTE=","name":"cornerstoneTools","full_name":"JamesAPetts/cornerstoneTools","owner":{"login":"JamesAPetts","id":25818497,"node_id":"MDQ6VXNlcjI1ODE4NDk3","avatar_url":"https://avatars0.githubusercontent.com/u/25818497?v=4","gravatar_id":"","url":"https://api.github.com/users/JamesAPetts","html_url":"https://github.com/JamesAPetts","followers_url":"https://api.github.com/users/JamesAPetts/followers","following_url":"https://api.github.com/users/JamesAPetts/following{/other_user}","gists_url":"https://api.github.com/users/JamesAPetts/gists{/gist_id}","starred_url":"https://api.github.com/users/JamesAPetts/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/JamesAPetts/subscriptions","organizations_url":"https://api.github.com/users/JamesAPetts/orgs","repos_url":"https://api.github.com/users/JamesAPetts/repos","events_url":"https://api.github.com/users/JamesAPetts/events{/privacy}","received_events_url":"https://api.github.com/users/JamesAPetts/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/JamesAPetts/cornerstoneTools","description":"A framework for tools built on top of Cornerstone.","fork":true,"url":"https://api.github.com/repos/JamesAPetts/cornerstoneTools","forks_url":"https://api.github.com/repos/JamesAPetts/cornerstoneTools/forks","keys_url":"https://api.github.com/repos/JamesAPetts/cornerstoneTools/keys{/key_id}","collaborators_url":"https://api.github.com/repos/JamesAPetts/cornerstoneTools/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/JamesAPetts/cornerstoneTools/teams","hooks_url":"https://api.github.com/repos/JamesAPetts/cornerstoneTools/hooks","issue_events_url":"https://api.github.com/repos/JamesAPetts/cornerstoneTools/issues/events{/number}","events_url":"https://api.github.com/repos/JamesAPetts/cornerstoneTools/events","assignees_url":"https://api.github.com/repos/JamesAPetts/cornerstoneTools/assignees{/user}","branches_url":"https://api.github.com/repos/JamesAPetts/cornerstoneTools/branches{/branch}","tags_url":"https://api.github.com/repos/JamesAPetts/cornerstoneTools/tags","blobs_url":"https://api.github.com/repos/JamesAPetts/cornerstoneTools/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/JamesAPetts/cornerstoneTools/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/JamesAPetts/cornerstoneTools/git/refs{/sha}","trees_url":"https://api.github.com/repos/JamesAPetts/cornerstoneTools/git/trees{/sha}","statuses_url":"https://api.github.com/repos/JamesAPetts/cornerstoneTools/statuses/{sha}","languages_url":"https://api.github.com/repos/JamesAPetts/cornerstoneTools/languages","stargazers_url":"https://api.github.com/repos/JamesAPetts/cornerstoneTools/stargazers","contributors_url":"https://api.github.com/repos/JamesAPetts/cornerstoneTools/contributors","subscribers_url":"https://api.github.com/repos/JamesAPetts/cornerstoneTools/subscribers","subscription_url":"https://api.github.com/repos/JamesAPetts/cornerstoneTools/subscription","commits_url":"https://api.github.com/repos/JamesAPetts/cornerstoneTools/commits{/sha}","git_commits_url":"https://api.github.com/repos/JamesAPetts/cornerstoneTools/git/commits{/sha}","comments_url":"https://api.github.com/repos/JamesAPetts/cornerstoneTools/comments{/number}","issue_comment_url":"https://api.github.com/repos/JamesAPetts/cornerstoneTools/issues/comments{/number}","contents_url":"https://api.github.com/repos/JamesAPetts/cornerstoneTools/contents/{+path}","compare_url":"https://api.github.com/repos/JamesAPetts/cornerstoneTools/compare/{base}...{head}","merges_url":"https://api.github.com/repos/JamesAPetts/cornerstoneTools/merges","archive_url":"https://api.github.com/repos/JamesAPetts/cornerstoneTools/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/JamesAPetts/cornerstoneTools/downloads","issues_url":"https://api.github.com/repos/JamesAPetts/cornerstoneTools/issues{/number}","pulls_url":"https://api.github.com/repos/JamesAPetts/cornerstoneTools/pulls{/number}","milestones_url":"https://api.github.com/repos/JamesAPetts/cornerstoneTools/milestones{/number}","notifications_url":"https://api.github.com/repos/JamesAPetts/cornerstoneTools/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/JamesAPetts/cornerstoneTools/labels{/name}","releases_url":"https://api.github.com/repos/JamesAPetts/cornerstoneTools/releases{/id}","deployments_url":"https://api.github.com/repos/JamesAPetts/cornerstoneTools/deployments","created_at":"2018-01-15T10:51:12Z","updated_at":"2018-04-25T13:59:46Z","pushed_at":"2018-07-25T15:41:36Z","git_url":"git://github.com/JamesAPetts/cornerstoneTools.git","ssh_url":"git@github.com:JamesAPetts/cornerstoneTools.git","clone_url":"https://github.com/JamesAPetts/cornerstoneTools.git","svn_url":"https://github.com/JamesAPetts/cornerstoneTools","homepage":"http://tools.cornerstonejs.org/","size":40200,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","has_issues":false,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":0,"license":{"key":"mit","name":"MIT License","spdx_id":"MIT","url":"https://api.github.com/licenses/mit","node_id":"MDc6TGljZW5zZTEz"},"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"cornerstonejs:vNext","ref":"vNext","sha":"b1364eff2e03e4dadabaec6c20f194f053de6ab8","user":{"login":"cornerstonejs","id":34072764,"node_id":"MDEyOk9yZ2FuaXphdGlvbjM0MDcyNzY0","avatar_url":"https://avatars1.githubusercontent.com/u/34072764?v=4","gravatar_id":"","url":"https://api.github.com/users/cornerstonejs","html_url":"https://github.com/cornerstonejs","followers_url":"https://api.github.com/users/cornerstonejs/followers","following_url":"https://api.github.com/users/cornerstonejs/following{/other_user}","gists_url":"https://api.github.com/users/cornerstonejs/gists{/gist_id}","starred_url":"https://api.github.com/users/cornerstonejs/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cornerstonejs/subscriptions","organizations_url":"https://api.github.com/users/cornerstonejs/orgs","repos_url":"https://api.github.com/users/cornerstonejs/repos","events_url":"https://api.github.com/users/cornerstonejs/events{/privacy}","received_events_url":"https://api.github.com/users/cornerstonejs/received_events","type":"Organization","site_admin":false},"repo":{"id":18408166,"node_id":"MDEwOlJlcG9zaXRvcnkxODQwODE2Ng==","name":"cornerstoneTools","full_name":"cornerstonejs/cornerstoneTools","owner":{"login":"cornerstonejs","id":34072764,"node_id":"MDEyOk9yZ2FuaXphdGlvbjM0MDcyNzY0","avatar_url":"https://avatars1.githubusercontent.com/u/34072764?v=4","gravatar_id":"","url":"https://api.github.com/users/cornerstonejs","html_url":"https://github.com/cornerstonejs","followers_url":"https://api.github.com/users/cornerstonejs/followers","following_url":"https://api.github.com/users/cornerstonejs/following{/other_user}","gists_url":"https://api.github.com/users/cornerstonejs/gists{/gist_id}","starred_url":"https://api.github.com/users/cornerstonejs/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cornerstonejs/subscriptions","organizations_url":"https://api.github.com/users/cornerstonejs/orgs","repos_url":"https://api.github.com/users/cornerstonejs/repos","events_url":"https://api.github.com/users/cornerstonejs/events{/privacy}","received_events_url":"https://api.github.com/users/cornerstonejs/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/cornerstonejs/cornerstoneTools","description":"A framework for tools built on top of Cornerstone.","fork":false,"url":"https://api.github.com/repos/cornerstonejs/cornerstoneTools","forks_url":"https://api.github.com/repos/cornerstonejs/cornerstoneTools/forks","keys_url":"https://api.github.com/repos/cornerstonejs/cornerstoneTools/keys{/key_id}","collaborators_url":"https://api.github.com/repos/cornerstonejs/cornerstoneTools/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/cornerstonejs/cornerstoneTools/teams","hooks_url":"https://api.github.com/repos/cornerstonejs/cornerstoneTools/hooks","issue_events_url":"https://api.github.com/repos/cornerstonejs/cornerstoneTools/issues/events{/number}","events_url":"https://api.github.com/repos/cornerstonejs/cornerstoneTools/events","assignees_url":"https://api.github.com/repos/cornerstonejs/cornerstoneTools/assignees{/user}","branches_url":"https://api.github.com/repos/cornerstonejs/cornerstoneTools/branches{/branch}","tags_url":"https://api.github.com/repos/cornerstonejs/cornerstoneTools/tags","blobs_url":"https://api.github.com/repos/cornerstonejs/cornerstoneTools/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/cornerstonejs/cornerstoneTools/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/cornerstonejs/cornerstoneTools/git/refs{/sha}","trees_url":"https://api.github.com/repos/cornerstonejs/cornerstoneTools/git/trees{/sha}","statuses_url":"https://api.github.com/repos/cornerstonejs/cornerstoneTools/statuses/{sha}","languages_url":"https://api.github.com/repos/cornerstonejs/cornerstoneTools/languages","stargazers_url":"https://api.github.com/repos/cornerstonejs/cornerstoneTools/stargazers","contributors_url":"https://api.github.com/repos/cornerstonejs/cornerstoneTools/contributors","subscribers_url":"https://api.github.com/repos/cornerstonejs/cornerstoneTools/subscribers","subscription_url":"https://api.github.com/repos/cornerstonejs/cornerstoneTools/subscription","commits_url":"https://api.github.com/repos/cornerstonejs/cornerstoneTools/commits{/sha}","git_commits_url":"https://api.github.com/repos/cornerstonejs/cornerstoneTools/git/commits{/sha}","comments_url":"https://api.github.com/repos/cornerstonejs/cornerstoneTools/comments{/number}","issue_comment_url":"https://api.github.com/repos/cornerstonejs/cornerstoneTools/issues/comments{/number}","contents_url":"https://api.github.com/repos/cornerstonejs/cornerstoneTools/contents/{+path}","compare_url":"https://api.github.com/repos/cornerstonejs/cornerstoneTools/compare/{base}...{head}","merges_url":"https://api.github.com/repos/cornerstonejs/cornerstoneTools/merges","archive_url":"https://api.github.com/repos/cornerstonejs/cornerstoneTools/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/cornerstonejs/cornerstoneTools/downloads","issues_url":"https://api.github.com/repos/cornerstonejs/cornerstoneTools/issues{/number}","pulls_url":"https://api.github.com/repos/cornerstonejs/cornerstoneTools/pulls{/number}","milestones_url":"https://api.github.com/repos/cornerstonejs/cornerstoneTools/milestones{/number}","notifications_url":"https://api.github.com/repos/cornerstonejs/cornerstoneTools/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/cornerstonejs/cornerstoneTools/labels{/name}","releases_url":"https://api.github.com/repos/cornerstonejs/cornerstoneTools/releases{/id}","deployments_url":"https://api.github.com/repos/cornerstonejs/cornerstoneTools/deployments","created_at":"2014-04-03T15:30:55Z","updated_at":"2018-07-25T07:19:43Z","pushed_at":"2018-07-26T07:03:05Z","git_url":"git://github.com/cornerstonejs/cornerstoneTools.git","ssh_url":"git@github.com:cornerstonejs/cornerstoneTools.git","clone_url":"https://github.com/cornerstonejs/cornerstoneTools.git","svn_url":"https://github.com/cornerstonejs/cornerstoneTools","homepage":"https://tools.cornerstonejs.org/","size":35824,"stargazers_count":153,"watchers_count":153,"language":"JavaScript","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":160,"mirror_url":null,"archived":false,"open_issues_count":71,"license":{"key":"mit","name":"MIT License","spdx_id":"MIT","url":"https://api.github.com/licenses/mit","node_id":"MDc6TGljZW5zZTEz"},"forks":160,"open_issues":71,"watchers":153,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/cornerstonejs/cornerstoneTools/pulls/488"},"html":{"href":"https://github.com/cornerstonejs/cornerstoneTools/pull/488"},"issue":{"href":"https://api.github.com/repos/cornerstonejs/cornerstoneTools/issues/488"},"comments":{"href":"https://api.github.com/repos/cornerstonejs/cornerstoneTools/issues/488/comments"},"review_comments":{"href":"https://api.github.com/repos/cornerstonejs/cornerstoneTools/pulls/488/comments"},"review_comment":{"href":"https://api.github.com/repos/cornerstonejs/cornerstoneTools/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/cornerstonejs/cornerstoneTools/pulls/488/commits"},"statuses":{"href":"https://api.github.com/repos/cornerstonejs/cornerstoneTools/statuses/591ee3687c3e37af6abe0259b8ba18b59dd6c251"}},"author_association":"CONTRIBUTOR"}}
{"actor":{"display_login":"JamesAPetts"}}