.
This commit is contained in:
@@ -212,12 +212,11 @@ export function loadCornerstone(main_element, db, images, annotations_to_load, l
|
|||||||
|
|
||||||
|
|
||||||
function loadAnnotation(imageId, annotation) {
|
function loadAnnotation(imageId, annotation) {
|
||||||
console.log("loadAnnotations", imageId, annotation);
|
//console.log("loadAnnotations", imageId, annotation);
|
||||||
const toolStateManager = cornerstoneTools.globalImageIdSpecificToolStateManager;
|
const toolStateManager = cornerstoneTools.globalImageIdSpecificToolStateManager;
|
||||||
|
|
||||||
if (annotation == undefined || annotation.length < 1 || annotation == [undefined]) { return }
|
if (annotation == undefined || annotation.length < 1 || annotation == [undefined]) { return }
|
||||||
|
|
||||||
console.log("1234", annotation);
|
|
||||||
let tool_state_no_id = JSON.parse(annotation);
|
let tool_state_no_id = JSON.parse(annotation);
|
||||||
|
|
||||||
tool_state[imageId] = tool_state_no_id;
|
tool_state[imageId] = tool_state_no_id;
|
||||||
|
|||||||
Reference in New Issue
Block a user