{"action":"closed","number":566,"pull_request":{"url":"https://api.github.com/repos/cornerstonejs/cornerstoneTools/pulls/566","id":213584944,"node_id":"MDExOlB1bGxSZXF1ZXN0MjEzNTg0OTQ0","html_url":"https://github.com/cornerstonejs/cornerstoneTools/pull/566","diff_url":"https://github.com/cornerstonejs/cornerstoneTools/pull/566.diff","patch_url":"https://github.com/cornerstonejs/cornerstoneTools/pull/566.patch","issue_url":"https://api.github.com/repos/cornerstonejs/cornerstoneTools/issues/566","number":566,"state":"closed","locked":false,"title":"vNext brush layering to allow for overlapping segmentations.","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":"Hey all,\r\n\r\nEdit: No longer WIP. I think it has all the features we need for now packed nicely. At least until we have SVG brush support.\r\n\r\nFor now I add a UUID to the cornerstone element if its not present, we'll get a warning to remove this code when it is. The UUID PR has been merged to cornerstonejs/cornerstone#310. It will be in a semantic release soonish.\r\n\r\nChangelog:\r\n\r\n- Nuked `BrushEraserTool` and ported its functionality into ctrl+click of BrushTool.\r\n- Exposed an API on the `BaseBrushTool` which allows the user to hide/show segmentations on an element. The config data is stored per tool/element. So you could have segmentation 5 disabled on element 0, whilst element 1's segmentation 5 is visible.\r\n- Hidden segmentations are displayed with a softer alpha whilst that segmentation color is actively being drawn.\r\n-- Made a brush-specific demo that demonstrates the tool and the API.\r\n-- Made a Freehand demo whilst I was at it.\r\n\r\nBrush-specific demo:\r\n\r\nhttps://deploy-preview-566--cornerstone-tools.netlify.com/examples/brush/\r\n\r\nFreehand-specific demo:\r\n\r\nhttps://deploy-preview-566--cornerstone-tools.netlify.com/examples/freehand/\r\n","created_at":"2018-09-06T11:29:07Z","updated_at":"2018-09-20T11:14:13Z","closed_at":"2018-09-20T11:14:13Z","merged_at":"2018-09-20T11:14:13Z","merge_commit_sha":"1f7d41d15c795dc99f8e395713cf9d63094f49b0","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/cornerstonejs/cornerstoneTools/pulls/566/commits","review_comments_url":"https://api.github.com/repos/cornerstonejs/cornerstoneTools/pulls/566/comments","review_comment_url":"https://api.github.com/repos/cornerstonejs/cornerstoneTools/pulls/comments{/number}","comments_url":"https://api.github.com/repos/cornerstonejs/cornerstoneTools/issues/566/comments","statuses_url":"https://api.github.com/repos/cornerstonejs/cornerstoneTools/statuses/951b133e02f677e35347b35ada2936598a0c60f7","head":{"label":"JamesAPetts:vNext-ExperimentalBrushLayers","ref":"vNext-ExperimentalBrushLayers","sha":"951b133e02f677e35347b35ada2936598a0c60f7","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","private":false,"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},"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-09-20T11:08:23Z","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":41257,"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":"1b6c55e3eab02e86cd69ea2610a1f5f482e054bf","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","private":false,"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},"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-09-19T15:47:39Z","pushed_at":"2018-09-20T11:14:13Z","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":34012,"stargazers_count":167,"watchers_count":167,"language":"JavaScript","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":166,"mirror_url":null,"archived":false,"open_issues_count":52,"license":{"key":"mit","name":"MIT License","spdx_id":"MIT","url":"https://api.github.com/licenses/mit","node_id":"MDc6TGljZW5zZTEz"},"forks":166,"open_issues":52,"watchers":167,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/cornerstonejs/cornerstoneTools/pulls/566"},"html":{"href":"https://github.com/cornerstonejs/cornerstoneTools/pull/566"},"issue":{"href":"https://api.github.com/repos/cornerstonejs/cornerstoneTools/issues/566"},"comments":{"href":"https://api.github.com/repos/cornerstonejs/cornerstoneTools/issues/566/comments"},"review_comments":{"href":"https://api.github.com/repos/cornerstonejs/cornerstoneTools/pulls/566/comments"},"review_comment":{"href":"https://api.github.com/repos/cornerstonejs/cornerstoneTools/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/cornerstonejs/cornerstoneTools/pulls/566/commits"},"statuses":{"href":"https://api.github.com/repos/cornerstonejs/cornerstoneTools/statuses/951b133e02f677e35347b35ada2936598a0c60f7"}},"author_association":"CONTRIBUTOR","merged":true,"mergeable":null,"rebaseable":null,"mergeable_state":"unknown","merged_by":{"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},"comments":0,"review_comments":0,"maintainer_can_modify":false,"commits":15,"additions":1604,"deletions":332,"changed_files":18}}
{"actor":{"display_login":"JamesAPetts"}}