Add annotation loading in setUpDicomLegacy function
This commit is contained in:
@@ -385,9 +385,11 @@ async function setUpDicomLegacy(element) {
|
||||
// check stack type
|
||||
if (data_url.startsWith("data:image")) {
|
||||
let imageId = "base64://" + data_url.split(",")[1];
|
||||
loadAnnotation(imageId, annotation);
|
||||
|
||||
imageIds.push(imageId);
|
||||
} else if (data_url.startsWith("base64://") || data_url.startsWith("wadouri:")) {
|
||||
loadAnnotation(data_url, annotation);
|
||||
|
||||
imageIds.push(data_url);
|
||||
|
||||
@@ -426,6 +428,7 @@ async function setUpDicomLegacy(element) {
|
||||
url = "wadouri:" + url;
|
||||
}
|
||||
|
||||
loadAnnotation(url, annotation);
|
||||
imageIds.push(url);
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user