Improve/harmonize segmentations panel and add bulk visibility toggles

This commit is contained in:
igoroctaviano committed 2021-01-16 01:19:12 -03:00
1 parent efde6ed20e
commit 00fddc1550
9 files changed
+646 -466

No files matched your search

@@ -34,7 +34,11 @@ export default async function loadSegmentation(
* Cache each labelmap segments.
* This data is used to determine the active label map when a given segment is activated/clicked.
*/
segDisplaySet.labelmapSegments[labelmapIndex] = labelmapSegments.length ? Array.from(new Set(labelmapSegments.filter(a => !!a).reduce((a, b) => a.concat(b)))) : [];
segDisplaySet.labelmapSegments[labelmapIndex] = labelmapSegments.length
? Array.from(
new Set(labelmapSegments.filter(a => !!a).reduce((a, b) => a.concat(b)))
)
: [];
segDisplaySet.labelmapIndex = labelmapIndex;
/*
@@ -57,6 +61,8 @@ export default async function loadSegmentation(
console.log('Segmentation loaded.');
const event = new CustomEvent('extensiondicomsegmentationsegloaded');
document.dispatchEvent(event);
return labelmapIndex;
}
function _getNextLabelmapIndex(firstImageId) {