OHIF-91: Fixed reference lines so they only show up in relation to the active viewport
This commit is contained in:
parent
bd3af54c87
commit
5789e73996
@ -7731,6 +7731,14 @@ if (typeof cornerstoneTools === 'undefined') {
|
||||
return;
|
||||
}
|
||||
|
||||
var activeViewportIndex = Session.get('activeViewport');
|
||||
var viewportIndex = $('.imageViewerViewport').index(referenceElement);
|
||||
|
||||
// Only show reference lines in relation to the active viewport
|
||||
if (viewportIndex != activeViewportIndex) {
|
||||
return;
|
||||
}
|
||||
|
||||
var targetImagePlane = cornerstoneTools.metaData.get('imagePlane', targetImage.imageId);
|
||||
var referenceImagePlane = cornerstoneTools.metaData.get('imagePlane', referenceImage.imageId);
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user