fix: Re-enable hpScale module (#4237)

This commit is contained in:
Bill Wallace 2024-06-17 22:21:16 -04:00 committed by GitHub
parent c7a2000873
commit 2eab049d79
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
3 changed files with 10 additions and 6 deletions

View File

@ -42,6 +42,7 @@ const defaultProtocol = {
// Try to match series with images by default, to prevent weird display
// on SEG/SR containing studies
{
weight: 10,
attribute: 'numImageFrames',
constraint: {
greaterThan: { value: 0 },
@ -106,11 +107,6 @@ function getHangingProtocolModule() {
name: defaultProtocol.id,
protocol: defaultProtocol,
},
// Create a MxN hanging protocol available by default
{
name: hpMNGrid.id,
protocol: hpMNGrid,
},
// Create a MxN comparison hanging protocol available by default
{
name: hpMNCompare.id,
@ -124,6 +120,11 @@ function getHangingProtocolModule() {
name: hpScale.id,
protocol: hpScale,
},
// Create a MxN hanging protocol available by default
{
name: hpMNGrid.id,
protocol: hpMNGrid,
},
];
}

View File

@ -32,6 +32,7 @@ const hpScale: Types.HangingProtocol.Protocol = {
defaultDisplaySetId: {
seriesMatchingRules: [
{
weight: 1,
attribute: 'numImageFrames',
constraint: {
greaterThan: { value: 0 },

View File

@ -156,7 +156,9 @@ function modeFactory({ modeConfiguration }) {
/** List of extensions that are used by the mode */
extensions: extensionDependencies,
/** HangingProtocol used by the mode */
hangingProtocol: ['@ohif/mnGrid'],
// Commented out to just use the most applicable registered hanging protocol
// The example is used for a grid layout to specify that as a preferred layout
// hangingProtocol: ['@ohif/mnGrid'],
/** SopClassHandlers used by the mode */
sopClassHandlers: [ohif.sopClassHandler, segmentation.sopClassHandler],
/** hotkeys for mode */