feat: state sync service and hanging protocol updates to preserve state (#3131)
* feat: Add state sync and use it to remember viewport grid info fix: Version updates Fixes for toggling MPR mode Fix the display when the interleaved load module fails Fix the memory of the state to restore correctly PR fixes for the state sync service PR fixes PR fixes PR fixes Added a hack warning to remove volumeDeactivate Fixes for TMTV colormap setting Fix the casing Missed renames fix: tests not running due to variance in ordering Reverting some fixes to change case PR changes - mostly comments and minor improvements fix: All display sets were being updated on drag and drop PR fixes - mostly renames PR fixes Test support for OHIF, for HP branch test: Add at least a minimal set of automated tests for hanging protocols Docs PR fixes Merge fixes DOCS updates Add an example of the mn hanging protocol PR fixes PR fixes PR fixes * Fix the drag and drop PR fixes * PR changes - update default keys for next/previous stage * fix: Was storing the custom viewport grid too aggressively Caused by a PR change misspelling a variable
This commit is contained in:
1 parent
b7fff77e17
commit
803f638401
87 files changed
+3413
-1919
No files matched your search
@@ -0,0 +1 @@
|
||||
export default (study, extraData) => Math.max(...(extraData?.displaySets?.map?.(ds => (ds.numImageFrames ?? 0))) || [0]);
|
||||
@@ -0,0 +1 @@
|
||||
export default (study, extraData) => extraData?.displaySets?.length;
|
||||
@@ -0,0 +1,5 @@
|
||||
export default (study, extraData) => {
|
||||
const ret = extraData?.displaySets?.filter(ds => ds.numImageFrames>0)?.length;
|
||||
console.log("number of display sets with images", ret);
|
||||
return ret;
|
||||
};
|
||||
@@ -0,0 +1,33 @@
|
||||
/**
|
||||
* This function extracts an attribute from the already matched display sets, and
|
||||
* compares it to the attribute in the current display set, and indicates if they match.
|
||||
* From 'this', it uses:
|
||||
* `sameAttribute` as the attribute name to look for
|
||||
* `sameDisplaySetId` as the display set id to look for
|
||||
* From `options`, it looks for
|
||||
*/
|
||||
export default function (displaySet, options) {
|
||||
const { sameAttribute, sameDisplaySetId } = this;
|
||||
if( !sameAttribute ) {
|
||||
console.log("sameAttribute not defined in", this);
|
||||
return `sameAttribute not defined in ${this.id}`;
|
||||
}
|
||||
if( !sameDisplaySetId ) {
|
||||
console.log("sameDisplaySetId not defined in", this);
|
||||
return `sameDisplaySetId not defined in ${this.id}`;
|
||||
}
|
||||
const { displaySetMatchDetails, displaySets } = options;
|
||||
const match = displaySetMatchDetails.get(sameDisplaySetId);
|
||||
if( !match ) {
|
||||
console.log("No match for display set", sameDisplaySetId);
|
||||
return false;
|
||||
}
|
||||
const { displaySetInstanceUID } = match;
|
||||
const altDisplaySet = displaySets.find(it => it.displaySetInstanceUID==displaySetInstanceUID);
|
||||
if( !altDisplaySet ) {
|
||||
console.log("No display set found with", displaySetInstanceUID, "in", displaySets);
|
||||
return false;
|
||||
}
|
||||
const testValue = altDisplaySet[sameAttribute];
|
||||
return testValue===displaySet[sameAttribute];
|
||||
}
|
||||
@@ -0,0 +1 @@
|
||||
export default (study, extraData) => extraData?.displaySets?.map(ds => ds.SeriesDescription);
|
||||
Reference in new issue
Block a user