.
This commit is contained in:
@@ -606,7 +606,7 @@ export function loadCornerstone(main_element, db, images, annotations_to_load, l
|
|||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
function loadCornerstoneThumb(image) {
|
function loadCornerstoneThumb(image, id) {
|
||||||
let img = $("<div></div>").get(0);
|
let img = $("<div></div>").get(0);
|
||||||
img.id = "thumb-image-" + id;
|
img.id = "thumb-image-" + id;
|
||||||
img.class = "thumbnail";
|
img.class = "thumbnail";
|
||||||
@@ -667,14 +667,14 @@ export function loadCornerstone(main_element, db, images, annotations_to_load, l
|
|||||||
dfile
|
dfile
|
||||||
);
|
);
|
||||||
cornerstone.loadAndCacheImage(imageId).then(function (image) {
|
cornerstone.loadAndCacheImage(imageId).then(function (image) {
|
||||||
loadCornerstoneThumb(image);
|
loadCornerstoneThumb(image, id);
|
||||||
}); //.catch( function(error) {
|
}); //.catch( function(error) {
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
if (image_url.startsWith("wadouri")) {
|
if (image_url.startsWith("wadouri")) {
|
||||||
cornerstone.loadAndCacheImage(image_url).then(function (image) {
|
cornerstone.loadAndCacheImage(image_url).then(function (image) {
|
||||||
loadCornerstoneThumb(image);
|
loadCornerstoneThumb(image, id);
|
||||||
});
|
});
|
||||||
} else if ((!image_url.endsWith("dicom") && !image_url.endsWith("dcm")) || image_url.startsWith("base64")) {
|
} else if ((!image_url.endsWith("dicom") && !image_url.endsWith("dcm")) || image_url.startsWith("base64")) {
|
||||||
img = $("<img />", {
|
img = $("<img />", {
|
||||||
@@ -693,7 +693,7 @@ export function loadCornerstone(main_element, db, images, annotations_to_load, l
|
|||||||
|
|
||||||
let url = "wadouri:" + image_url;
|
let url = "wadouri:" + image_url;
|
||||||
cornerstone.loadAndCacheImage(url).then(function (image) {
|
cornerstone.loadAndCacheImage(url).then(function (image) {
|
||||||
loadCornerstoneThumb(image);
|
loadCornerstoneThumb(image, id);
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user