Fixing issues with viewports linking
This commit is contained in:
1 parent
66c8db697f
commit
335c3526cc
4 files changed
+56
-21
No files matched your search
+2
-1
@@ -117,7 +117,8 @@ Template.dialogStudyAssociation.onCreated(() => {
|
||||
studyInstanceUids: studyInstanceUids,
|
||||
patientId: relatedStudies[0].patientId,
|
||||
earliestDate: studyDates[0],
|
||||
latestDate: studyDates[studyDates.length - 1]
|
||||
latestDate: studyDates[studyDates.length - 1],
|
||||
isLocked: false
|
||||
};
|
||||
|
||||
// Insert this timepoint into the Timepoints Collection
|
||||
|
||||
@@ -1,4 +1,5 @@
|
||||
import { $ } from 'meteor/jquery';
|
||||
import { _ } from 'meteor/underscore';
|
||||
import { OHIF } from 'meteor/ohif:core';
|
||||
import 'meteor/ohif:viewerbase';
|
||||
|
||||
@@ -63,7 +64,15 @@ function renderIntoViewport(viewportIndex, studyInstanceUid, seriesInstanceUid,
|
||||
}
|
||||
|
||||
function syncViewports(viewportsIndexes) {
|
||||
OHIF.viewer.stackImagePositionOffsetSynchronizer.activateByViewportIndexes(viewportsIndexes);
|
||||
const synchronizer = OHIF.viewer.stackImagePositionOffsetSynchronizer;
|
||||
const linkableViewports = synchronizer.getLinkableViewports();
|
||||
if (linkableViewports.length) {
|
||||
const linkableViewportsIndexes = _.pluck(linkableViewports, 'index');
|
||||
const indexes = _.intersection(linkableViewportsIndexes, viewportsIndexes);
|
||||
if (indexes.length) {
|
||||
OHIF.viewer.stackImagePositionOffsetSynchronizer.activateByViewportIndexes(indexes);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in new issue
Block a user