Skip to content

Commit

Permalink
fix: Grab Cornerstone from external in Synchronizer (#1327)
Browse files Browse the repository at this point in the history
  • Loading branch information
swederik authored Nov 15, 2020
1 parent 18bfdf1 commit d9a2c2b
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/synchronization/Synchronizer.js
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,8 @@ function Synchronizer(event, handler) {
return;
}

const cornerstone = external.cornerstone;

initialData.distances = {};
initialData.imageIds = {
sourceElements: [],
Expand Down Expand Up @@ -377,7 +379,7 @@ function Synchronizer(event, handler) {
*/
this.displayImage = function(element, image, viewport) {
ignoreFiredEvents = true;
cornerstone.displayImage(element, image, viewport);
external.cornerstone.displayImage(element, image, viewport);
ignoreFiredEvents = false;
};

Expand All @@ -390,7 +392,7 @@ function Synchronizer(event, handler) {
*/
this.setViewport = function(element, viewport) {
ignoreFiredEvents = true;
cornerstone.setViewport(element, viewport);
external.cornerstone.setViewport(element, viewport);
ignoreFiredEvents = false;
};

Expand Down

0 comments on commit d9a2c2b

Please sign in to comment.