diff --git a/.all-contributorsrc b/.all-contributorsrc index 5373f52ab..a28a72690 100644 --- a/.all-contributorsrc +++ b/.all-contributorsrc @@ -316,6 +316,15 @@ "contributions": [ "code" ] + }, + { + "login": "codepage949", + "name": "codepage949", + "avatar_url": "https://avatars2.githubusercontent.com/u/26968918?v=4", + "profile": "https://github.com/codepage949", + "contributions": [ + "code" + ] } ], "contributorsPerLine": 7 diff --git a/README.md b/README.md index c7f543fd4..f7616759b 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-31-orange.svg?style=flat-square)](#contributors) +[![All Contributors](https://img.shields.io/badge/all_contributors-32-orange.svg?style=flat-square)](#contributors) [![NPM version][npm-version-image]][npm-url] [![NPM downloads][npm-downloads-image]][npm-url] @@ -159,50 +159,12 @@ 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

πŸ“–
Amandeep Singh
Amandeep Singh

πŸ–‹
Madison Dickson
Madison Dickson

πŸ“–
Kevin Lee Drum
Kevin Lee Drum

πŸ’»
Makarand Bauskar
Makarand Bauskar

πŸ’»
Biharck Araujo
Biharck Araujo

πŸ’‘ πŸ“–
Devon Bernard
Devon Bernard

πŸ“–
Karl-Heinrich
Karl-Heinrich

πŸ› πŸ’» ⚠️
counterxing
counterxing

πŸ› πŸ’»
Jorge Lopes
Jorge Lopes

πŸ’¬
Gabriel Garrido
Gabriel Garrido

πŸ’»
ASVBPREAUBV
ASVBPREAUBV

πŸ“–
frolic06
frolic06

πŸ’»
- +| [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") [⚠️](https://github.com/cornerstonejs/cornerstoneTools/commits?author=mikehazell "Tests") | [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") | [Madison Dickson
Madison Dickson](http://mix3dstudios.com)
[πŸ“–](https://github.com/cornerstonejs/cornerstoneTools/commits?author=mix3d "Documentation") | +| [Kevin Lee Drum
Kevin Lee Drum](https://github.com/kevinleedrum)
[πŸ’»](https://github.com/cornerstonejs/cornerstoneTools/commits?author=kevinleedrum "Code") | [Makarand Bauskar
Makarand Bauskar](https://github.com/mmbauskar)
[πŸ’»](https://github.com/cornerstonejs/cornerstoneTools/commits?author=mbauskar "Code") | [Biharck Araujo
Biharck Araujo](http://www.biharck.com.br)
[πŸ’‘](#example-biharck "Examples") [πŸ“–](https://github.com/cornerstonejs/cornerstoneTools/commits?author=biharck "Documentation") | [Devon Bernard
Devon Bernard](https://www.linkedin.com/in/devonbernard)
[πŸ“–](https://github.com/cornerstonejs/cornerstoneTools/commits?author=DevonBernard "Documentation") | [Karl-Heinrich
Karl-Heinrich](https://github.com/Karl-Heinrich)
[πŸ›](https://github.com/cornerstonejs/cornerstoneTools/issues?q=author%3AKarl-Heinrich "Bug reports") [πŸ’»](https://github.com/cornerstonejs/cornerstoneTools/commits?author=Karl-Heinrich "Code") [⚠️](https://github.com/cornerstonejs/cornerstoneTools/commits?author=Karl-Heinrich "Tests") | [counterxing
counterxing](https://blog.xingbofeng.com/)
[πŸ›](https://github.com/cornerstonejs/cornerstoneTools/issues?q=author%3Axingbofeng "Bug reports") [πŸ’»](https://github.com/cornerstonejs/cornerstoneTools/commits?author=xingbofeng "Code") | [Jorge Lopes
Jorge Lopes](https://github.com/jlopes90)
[πŸ’¬](#question-jlopes90 "Answering Questions") | +| [Gabriel Garrido
Gabriel Garrido](http://garrido.io)
[πŸ’»](https://github.com/cornerstonejs/cornerstoneTools/commits?author=Ggpsv "Code") | [ASVBPREAUBV
ASVBPREAUBV](https://github.com/ASVBPREAUBV)
[πŸ“–](https://github.com/cornerstonejs/cornerstoneTools/commits?author=ASVBPREAUBV "Documentation") | [frolic06
frolic06](https://github.com/frolic06)
[πŸ’»](https://github.com/cornerstonejs/cornerstoneTools/commits?author=frolic06 "Code") | [codepage949
codepage949](https://github.com/codepage949)
[πŸ’»](https://github.com/cornerstonejs/cornerstoneTools/commits?author=codepage949 "Code") | This project follows the [all-contributors][all-contributors] specification. diff --git a/src/eventDispatchers/imageRenderedEventDispatcher.js b/src/eventDispatchers/imageRenderedEventDispatcher.js index 0d9ddb34b..f1385810b 100644 --- a/src/eventDispatchers/imageRenderedEventDispatcher.js +++ b/src/eventDispatchers/imageRenderedEventDispatcher.js @@ -31,9 +31,13 @@ const onImageRendered = function(evt) { onImageRenderedBrushEventHandler(evt); } + const context = eventData.canvasContext.canvas.getContext('2d'); + toolsToRender.forEach(tool => { if (tool.renderToolData) { + context.save(); tool.renderToolData(evt); + context.restore(); } }); };