Removing ohif-cornerstone as a dependency for ohif-viewerbase (Final step)
This commit is contained in:
1 parent
b866e6e6c7
commit
c2c8a43c3a
18 files changed
+436
-370
No files matched your search
@@ -1,6 +1,5 @@
|
||||
import { OHIF } from 'meteor/ohif:core';
|
||||
import { getImageId } from './getImageId';
|
||||
import { addMetaData } from './metaDataProvider';
|
||||
import { OHIFError } from './classes/OHIFError';
|
||||
|
||||
let stackMap = {};
|
||||
@@ -17,6 +16,7 @@ const stackUpdatedCallbacks = [];
|
||||
* @return {Array} Array with image IDs
|
||||
*/
|
||||
function createAndAddStack(stackMap, study, displaySet) {
|
||||
const metadataProvider = OHIF.viewer.metadataProvider;
|
||||
const numImages = displaySet.images.length;
|
||||
const imageIds = [];
|
||||
let imageId;
|
||||
@@ -38,13 +38,13 @@ function createAndAddStack(stackMap, study, displaySet) {
|
||||
metaData.frame = i;
|
||||
imageId = getImageId(image, i);
|
||||
imageIds.push(imageId);
|
||||
addMetaData(imageId, metaData);
|
||||
metadataProvider.addMetadata(imageId, metaData);
|
||||
}
|
||||
}
|
||||
else {
|
||||
imageId = getImageId(image);
|
||||
imageIds.push(imageId);
|
||||
addMetaData(imageId, metaData);
|
||||
metadataProvider.addMetadata(imageId, metaData);
|
||||
}
|
||||
});
|
||||
|
||||
|
||||
Reference in new issue
Block a user