Removing imageId from Measurement schema

This commit is contained in:
Bruno Alves de Faria committed 2017-08-15 07:50:20 -03:00
1 parent cf9136447e
commit 7bb25ae6aa
12 files changed
+66 -36

No files matched your search

@@ -7,10 +7,11 @@ OHIF.measurements.getImageDataUrl = ({
width=512,
height=512,
cacheImage=true,
imageId,
imagePath,
measurement
}) => {
imageId = imageId || measurement.imageId;
imagePath = imagePath || measurement.imagePath;
const imageId = OHIF.viewerbase.getImageIdForImagePath(imagePath);
return new Promise((resolve, reject) => {
const loadMethod = cacheImage ? 'loadAndCacheImage' : 'loadImage';