add log panel
This commit is contained in:
@@ -2,7 +2,6 @@ import * as dicomViewer from "./dicomViewer.js"
|
||||
|
||||
|
||||
$(document).ready(function () {
|
||||
|
||||
loadDicomViewer();
|
||||
});
|
||||
|
||||
@@ -15,21 +14,24 @@ function loadDicomViewer(images_to_load, annotations_to_load) {
|
||||
|
||||
if (images_to_load != undefined) {
|
||||
images = images_to_load;
|
||||
} else if (images.indexOf(",") > 0) {
|
||||
} else {
|
||||
images = JSON.parse(images);
|
||||
}
|
||||
|
||||
console.log(images);
|
||||
|
||||
let annotations = single_dicom.dataset.annotations;
|
||||
if (annotations != undefined) {
|
||||
if (annotations_to_load != undefined) {
|
||||
annotations = annotations_to_load;
|
||||
} else if (annotations && annotations.indexOf(",") > 0) {
|
||||
console.log("annon2", annotations)
|
||||
annotations = JSON.parse(annotations);
|
||||
} else {
|
||||
annotations = undefined;
|
||||
}
|
||||
|
||||
console.log("annon1", annotations)
|
||||
|
||||
let load_as_stack;
|
||||
if (images.length > 5) {
|
||||
load_as_stack = true;
|
||||
|
||||
Reference in New Issue
Block a user