Fix annotation handling in setUpDicomLegacy function to support multiple annotations
This commit is contained in:
@@ -370,7 +370,7 @@ async function setUpDicomLegacy(element) {
|
|||||||
|
|
||||||
const images = element.dataset.url.split(",");
|
const images = element.dataset.url.split(",");
|
||||||
|
|
||||||
const annotation = element.dataset.annotations;
|
const annotations = element.dataset.annotations.split(",");
|
||||||
|
|
||||||
//console.log("Dicom - load imageId: ", imageIds);
|
//console.log("Dicom - load imageId: ", imageIds);
|
||||||
//for (let index = 0; index < imageIds.length; index++) {
|
//for (let index = 0; index < imageIds.length; index++) {
|
||||||
@@ -382,6 +382,8 @@ async function setUpDicomLegacy(element) {
|
|||||||
let imageIds = [];
|
let imageIds = [];
|
||||||
for (let i = 0; i < images.length; i++) {
|
for (let i = 0; i < images.length; i++) {
|
||||||
let data_url = images[i];
|
let data_url = images[i];
|
||||||
|
|
||||||
|
let annotation = annotations[i];
|
||||||
// check stack type
|
// check stack type
|
||||||
if (data_url.startsWith("data:image")) {
|
if (data_url.startsWith("data:image")) {
|
||||||
let imageId = "base64://" + data_url.split(",")[1];
|
let imageId = "base64://" + data_url.split(",")[1];
|
||||||
|
|||||||
Reference in New Issue
Block a user