fix: remaining bugs for MPR and toolbar icon colors (#3026)

* feat: warn for overlapping segments

* fix: typo

* refactor mpr toggle and stack sync

* fix: wip for more general mpr

* fix: tool groups for mpr

* fix: changing of viewport id

* fix: viewport Id for the seg viewports

* fix

* update cornerstone version
This commit is contained in:
Alireza authored and GitHub committed 2022-11-21 10:44:19 -05:00
1 parent 6db4d7a917
commit 87eab39768
27 files changed
+726 -384

No files matched your search

@@ -122,6 +122,13 @@ class HangingProtocolService {
this.displaySetMatchDetails = new Map();
}
public getActiveProtocol(): {
protocol: HangingProtocol.Protocol;
stage: number;
} {
return { protocol: this.protocol, stage: this.stage };
}
public getDefaultProtocol(): HangingProtocol.Protocol {
return this.getProtocolById('default');
}
@@ -20,6 +20,10 @@ export default function sortInstances(instances: Array<any>) {
ImageOrientationPatient,
} = instances[Math.floor(instances.length / 2)]; // this prevents getting scout image as test image
if (!referenceImagePositionPatient || !ImageOrientationPatient) {
return instances;
}
const rowCosineVec = vec3.fromValues(
ImageOrientationPatient[0],
ImageOrientationPatient[1],