From 24540d8d3d0819e7af728d3087bd6ddab4acb17d Mon Sep 17 00:00:00 2001 From: Amandeep Singh Date: Fri, 10 May 2019 19:26:24 +1000 Subject: [PATCH 1/4] implemented the CircleRoiTool to draw circle annotations --- .all-contributorsrc | 9 +++++++++ README.md | 8 +++++--- 2 files changed, 14 insertions(+), 3 deletions(-) diff --git a/.all-contributorsrc b/.all-contributorsrc index 57d4b68af..a508c977d 100644 --- a/.all-contributorsrc +++ b/.all-contributorsrc @@ -203,6 +203,15 @@ "contributions": [ "doc" ] + }, + { + "login": "singhArmani", + "name": "Amandeep Singh", + "avatar_url": "https://avatars2.githubusercontent.com/u/11068601?v=4", + "profile": "https://github.com/singhArmani", + "contributions": [ + "content" + ] } ], "contributorsPerLine": 7 diff --git a/README.md b/README.md index 1b386aa74..03ce76c95 100755 --- a/README.md +++ b/README.md @@ -12,7 +12,7 @@ [![Build Status][build-badge]][build] [![Coverage Status][coverage-badge]][coverage] -[![All Contributors](https://img.shields.io/badge/all_contributors-19-orange.svg?style=flat-square)](#contributors) +[![All Contributors](https://img.shields.io/badge/all_contributors-20-orange.svg?style=flat-square)](#contributors) [![NPM version][npm-version-image]][npm-url] [![NPM downloads][npm-downloads-image]][npm-url] @@ -146,8 +146,10 @@ Thanks goes to these people ([emoji key][emojis]): -
Chris Hafey
Chris Hafey

πŸ“– πŸ’» πŸ“ πŸ“’
Erik Ziegler
Erik Ziegler

πŸ’» πŸ“– πŸ‘€ 🚧 πŸš‡ πŸ’¬
Danny Brown
Danny Brown

πŸ’» πŸ“– πŸ‘€ 🚧 πŸš‡ πŸ”Œ πŸ’¬
James Petts
James Petts

πŸ’» πŸ‘€ πŸ”Œ πŸ“– πŸ’¬
Steve Pieper
Steve Pieper

πŸ’¬ πŸ”§
Rodrigo Antinarelli
Rodrigo Antinarelli

πŸ’»
Zaid Safadi
Zaid Safadi

πŸ’¬ πŸ’»
Gustavo AndrΓ© Lelis
Gustavo AndrΓ© Lelis

πŸ’»
Kofifus
Kofifus

πŸ’» πŸ”§ πŸ›
AloΓ―s Dreyfus
AloΓ―s Dreyfus

πŸ’»
Tim Leslie
Tim Leslie

πŸ’»
diego0020
diego0020

πŸ’»
Evren Ozkan
Evren Ozkan

πŸ’»
Salvador Daniel Pelayo
Salvador Daniel Pelayo

πŸ’»
Juan Narvaez
Juan Narvaez

πŸ’»
Mike
Mike

πŸ“– πŸ’»
Sangkeun Kim
Sangkeun Kim

πŸ’» πŸ’¬
Victor Saase
Victor Saase

πŸ€”
Michael Wasser
Michael Wasser

πŸ“–
- +| [Chris Hafey
Chris Hafey](https://www.linkedin.com/in/chafey)
[πŸ“–](https://github.com/cornerstonejs/cornerstoneTools/commits?author=chafey "Documentation") [πŸ’»](https://github.com/cornerstonejs/cornerstoneTools/commits?author=chafey "Code") [πŸ“](#blog-chafey "Blogposts") [πŸ“’](#talk-chafey "Talks") | [Erik Ziegler
Erik Ziegler](https://github.com/swederik)
[πŸ’»](https://github.com/cornerstonejs/cornerstoneTools/commits?author=swederik "Code") [πŸ“–](https://github.com/cornerstonejs/cornerstoneTools/commits?author=swederik "Documentation") [πŸ‘€](#review-swederik "Reviewed Pull Requests") [🚧](#maintenance-swederik "Maintenance") [πŸš‡](#infra-swederik "Infrastructure (Hosting, Build-Tools, etc)") [πŸ’¬](#question-swederik "Answering Questions") | [Danny Brown
Danny Brown](http://dannyrb.com/)
[πŸ’»](https://github.com/cornerstonejs/cornerstoneTools/commits?author=dannyrb "Code") [πŸ“–](https://github.com/cornerstonejs/cornerstoneTools/commits?author=dannyrb "Documentation") [πŸ‘€](#review-dannyrb "Reviewed Pull Requests") [🚧](#maintenance-dannyrb "Maintenance") [πŸš‡](#infra-dannyrb "Infrastructure (Hosting, Build-Tools, etc)") [πŸ”Œ](#plugin-dannyrb "Plugin/utility libraries") [πŸ’¬](#question-dannyrb "Answering Questions") | [James Petts
James Petts](https://github.com/JamesAPetts)
[πŸ’»](https://github.com/cornerstonejs/cornerstoneTools/commits?author=JamesAPetts "Code") [πŸ‘€](#review-JamesAPetts "Reviewed Pull Requests") [πŸ”Œ](#plugin-JamesAPetts "Plugin/utility libraries") [πŸ“–](https://github.com/cornerstonejs/cornerstoneTools/commits?author=JamesAPetts "Documentation") [πŸ’¬](#question-JamesAPetts "Answering Questions") | [Steve Pieper
Steve Pieper](http://www.isomics.com)
[πŸ’¬](#question-pieper "Answering Questions") [πŸ”§](#tool-pieper "Tools") | [Rodrigo Antinarelli
Rodrigo Antinarelli](https://rodrigoea.com/)
[πŸ’»](https://github.com/cornerstonejs/cornerstoneTools/commits?author=rodrigolabs "Code") | [Zaid Safadi
Zaid Safadi](http://blog.zaidsafadi.com/)
[πŸ’¬](#question-Zaid-Safadi "Answering Questions") [πŸ’»](https://github.com/cornerstonejs/cornerstoneTools/commits?author=Zaid-Safadi "Code") | +| :---: | :---: | :---: | :---: | :---: | :---: | :---: | +| [Gustavo AndrΓ© Lelis
Gustavo AndrΓ© Lelis](https://github.com/galelis)
[πŸ’»](https://github.com/cornerstonejs/cornerstoneTools/commits?author=galelis "Code") | [Kofifus
Kofifus](https://github.com/kofifus)
[πŸ’»](https://github.com/cornerstonejs/cornerstoneTools/commits?author=kofifus "Code") [πŸ”§](#tool-kofifus "Tools") [πŸ›](https://github.com/cornerstonejs/cornerstoneTools/issues?q=author%3Akofifus "Bug reports") | [AloΓ―s Dreyfus
AloΓ―s Dreyfus](http://www.linkedin.com/in/alois-dreyfus/)
[πŸ’»](https://github.com/cornerstonejs/cornerstoneTools/commits?author=adreyfus "Code") | [Tim Leslie
Tim Leslie](http://www.timl.id.au)
[πŸ’»](https://github.com/cornerstonejs/cornerstoneTools/commits?author=timleslie "Code") | [diego0020
diego0020](https://github.com/diego0020)
[πŸ’»](https://github.com/cornerstonejs/cornerstoneTools/commits?author=diego0020 "Code") | [Evren Ozkan
Evren Ozkan](https://github.com/evren217)
[πŸ’»](https://github.com/cornerstonejs/cornerstoneTools/commits?author=evren217 "Code") | [Salvador Daniel Pelayo
Salvador Daniel Pelayo](https://github.com/daniel2101)
[πŸ’»](https://github.com/cornerstonejs/cornerstoneTools/commits?author=daniel2101 "Code") | +| [Juan Narvaez
Juan Narvaez](https://github.com/jdnarvaez)
[πŸ’»](https://github.com/cornerstonejs/cornerstoneTools/commits?author=jdnarvaez "Code") | [Mike
Mike](https://github.com/mikehazell)
[πŸ“–](https://github.com/cornerstonejs/cornerstoneTools/commits?author=mikehazell "Documentation") [πŸ’»](https://github.com/cornerstonejs/cornerstoneTools/commits?author=mikehazell "Code") | [Sangkeun Kim
Sangkeun Kim](http://sisobus.com)
[πŸ’»](https://github.com/cornerstonejs/cornerstoneTools/commits?author=sisobus "Code") [πŸ’¬](#question-sisobus "Answering Questions") | [Victor Saase
Victor Saase](https://github.com/vsaase)
[πŸ€”](#ideas-vsaase "Ideas, Planning, & Feedback") | [Michael Wasser
Michael Wasser](http://www.mikewasser.com)
[πŸ“–](https://github.com/cornerstonejs/cornerstoneTools/commits?author=untoldone "Documentation") | [Amandeep Singh
Amandeep Singh](https://github.com/singhArmani)
[πŸ–‹](#content-singhArmani "Content") | This project follows the [all-contributors][all-contributors] specification. From 4fd3cd03e505ebbca29a2d954b34a8253016857f Mon Sep 17 00:00:00 2001 From: Amandeep Singh Date: Fri, 10 May 2019 19:32:40 +1000 Subject: [PATCH 2/4] implemented CircleRoiTool to draw circle annotations --- index.html | 3 +- package-lock.json | 47 +- src/index.js | 3 + src/tools/annotation/CircleRoiTool.js | 514 +++++++++++++++++++++ src/tools/annotation/CircleRoiTool.test.js | 248 ++++++++++ src/tools/annotation/index.js | 3 + 6 files changed, 784 insertions(+), 34 deletions(-) create mode 100644 src/tools/annotation/CircleRoiTool.js create mode 100644 src/tools/annotation/CircleRoiTool.test.js diff --git a/index.html b/index.html index 6d844b656..91a29d7e9 100644 --- a/index.html +++ b/index.html @@ -51,6 +51,7 @@
  • ArrowAnnotate
  • Angle
  • Bidirectional
  • +
  • CircleRoi
  • Cobb Angle
  • EllipticalRoi
  • Eraser
  • @@ -178,7 +179,7 @@