fix(seg): prevent segmentations from spreading to all viewports before hydration confirmation in 3D four-up (#5967)

This commit is contained in:
Ghadeer Albattarni authored and GitHub committed 2026-04-27 12:55:12 -04:00
1 parent c9c4f11b82
commit f8ccf9ff2e
23 files changed
+558 -39

No files matched your search

@@ -661,6 +661,12 @@ export default class HangingProtocolService extends PubSubService {
if (displaySet?.unsupported) {
throw new Error('Unsupported displaySet');
}
// Overlays (SEG, RTSTRUCT) share selectors with referenced volumes but must not
// sync to every matched viewport before hydration (would replace e.g. 3D primary).
if (displaySet?.isOverlayDisplaySet) {
return defaultReturn;
}
const protocol = this.protocol;
const protocolStage = protocol.stages[this.stageIndex];
const protocolViewports = protocolStage.viewports;
@@ -24,6 +24,13 @@ export type DisplaySetAndViewportOptions = {
displaySetOptions: DisplaySetOptions;
};
export interface ViewportUpdate {
viewportId?: string;
displaySetInstanceUIDs: string[];
viewportOptions?: ViewportOptions;
displaySetOptions?: DisplaySetOptions[];
}
export type DisplayArea = {
type?: 'SCALE' | 'FIT';
scale?: number;