Switch from cornerstoneTools.metaData (deprecated) to cornerstone.metaData
This commit is contained in:
1 parent
c5596128c1
commit
05d9a41f45
20 files changed
+33
-33
No files matched your search
+1
-1
@@ -408,7 +408,7 @@ const loadDisplaySetIntoViewport = (data, templateData) => {
|
||||
OHIF.viewer.data.loadedSeriesData = layoutManager.viewportData;
|
||||
|
||||
// Check if image plane (orientation / location) data is present for the current image
|
||||
const imagePlane = cornerstoneTools.metaData.get('imagePlane', image.imageId);
|
||||
const imagePlane = cornerstone.metaData.get('imagePlane', image.imageId);
|
||||
if (imagePlane && imagePlane.frameOfReferenceUID) {
|
||||
// If it is, add this element to the global synchronizer...
|
||||
OHIF.viewer.updateImageSynchronizer.add(element);
|
||||
|
||||
+2
-2
@@ -156,7 +156,7 @@ Template.viewportOverlay.helpers({
|
||||
return false;
|
||||
}
|
||||
|
||||
const instance = cornerstoneTools.metaData.get('instance', this.imageId);
|
||||
const instance = cornerstone.metaData.get('instance', this.imageId);
|
||||
if (!instance) {
|
||||
return '';
|
||||
}
|
||||
@@ -234,7 +234,7 @@ Template.viewportOverlay.helpers({
|
||||
});
|
||||
|
||||
// Get study data
|
||||
const study = cornerstoneTools.metaData.get('study', this.imageId);
|
||||
const study = cornerstone.metaData.get('study', this.imageId);
|
||||
if (!study) {
|
||||
return;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user