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](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](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](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](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](http://www.isomics.com)
[π¬](#question-pieper "Answering Questions") [π§](#tool-pieper "Tools") | [
Rodrigo Antinarelli](https://rodrigoea.com/)
[π»](https://github.com/cornerstonejs/cornerstoneTools/commits?author=rodrigolabs "Code") | [
Zaid Safadi](http://blog.zaidsafadi.com/)
[π¬](#question-Zaid-Safadi "Answering Questions") [π»](https://github.com/cornerstonejs/cornerstoneTools/commits?author=Zaid-Safadi "Code") |
+| :---: | :---: | :---: | :---: | :---: | :---: | :---: |
+| [
Gustavo AndrΓ© Lelis](https://github.com/galelis)
[π»](https://github.com/cornerstonejs/cornerstoneTools/commits?author=galelis "Code") | [
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](http://www.linkedin.com/in/alois-dreyfus/)
[π»](https://github.com/cornerstonejs/cornerstoneTools/commits?author=adreyfus "Code") | [
Tim Leslie](http://www.timl.id.au)
[π»](https://github.com/cornerstonejs/cornerstoneTools/commits?author=timleslie "Code") | [
diego0020](https://github.com/diego0020)
[π»](https://github.com/cornerstonejs/cornerstoneTools/commits?author=diego0020 "Code") | [
Evren Ozkan](https://github.com/evren217)
[π»](https://github.com/cornerstonejs/cornerstoneTools/commits?author=evren217 "Code") | [
Salvador Daniel Pelayo](https://github.com/daniel2101)
[π»](https://github.com/cornerstonejs/cornerstoneTools/commits?author=daniel2101 "Code") |
+| [
Juan Narvaez](https://github.com/jdnarvaez)
[π»](https://github.com/cornerstonejs/cornerstoneTools/commits?author=jdnarvaez "Code") | [
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](http://sisobus.com)
[π»](https://github.com/cornerstonejs/cornerstoneTools/commits?author=sisobus "Code") [π¬](#question-sisobus "Answering Questions") | [
Victor Saase](https://github.com/vsaase)
[π€](#ideas-vsaase "Ideas, Planning, & Feedback") | [
Michael Wasser](http://www.mikewasser.com)
[π](https://github.com/cornerstonejs/cornerstoneTools/commits?author=untoldone "Documentation") | [
Amandeep Singh](https://github.com/singhArmani)
[π](#content-singhArmani "Content") | [
Madison Dickson](http://mix3dstudios.com)
[π](https://github.com/cornerstonejs/cornerstoneTools/commits?author=mix3d "Documentation") |
+| [
Kevin Lee Drum](https://github.com/kevinleedrum)
[π»](https://github.com/cornerstonejs/cornerstoneTools/commits?author=kevinleedrum "Code") | [
Makarand Bauskar](https://github.com/mmbauskar)
[π»](https://github.com/cornerstonejs/cornerstoneTools/commits?author=mbauskar "Code") | [
Biharck Araujo](http://www.biharck.com.br)
[π‘](#example-biharck "Examples") [π](https://github.com/cornerstonejs/cornerstoneTools/commits?author=biharck "Documentation") | [
Devon Bernard](https://www.linkedin.com/in/devonbernard)
[π](https://github.com/cornerstonejs/cornerstoneTools/commits?author=DevonBernard "Documentation") | [
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](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](https://github.com/jlopes90)
[π¬](#question-jlopes90 "Answering Questions") |
+| [
Gabriel Garrido](http://garrido.io)
[π»](https://github.com/cornerstonejs/cornerstoneTools/commits?author=Ggpsv "Code") | [
ASVBPREAUBV](https://github.com/ASVBPREAUBV)
[π](https://github.com/cornerstonejs/cornerstoneTools/commits?author=ASVBPREAUBV "Documentation") | [
frolic06](https://github.com/frolic06)
[π»](https://github.com/cornerstonejs/cornerstoneTools/commits?author=frolic06 "Code") | [
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();
}
});
};