add log panel

This commit is contained in:
Ross
2021-10-30 10:26:18 +01:00
parent 11c06cd538
commit c51f72dcea
5 changed files with 415 additions and 19 deletions
+5 -3
View File
@@ -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;