fix: Re-enable hpScale module (#4237)
This commit is contained in:
parent
c7a2000873
commit
2eab049d79
@ -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,
|
||||
},
|
||||
];
|
||||
}
|
||||
|
||||
|
||||
@ -32,6 +32,7 @@ const hpScale: Types.HangingProtocol.Protocol = {
|
||||
defaultDisplaySetId: {
|
||||
seriesMatchingRules: [
|
||||
{
|
||||
weight: 1,
|
||||
attribute: 'numImageFrames',
|
||||
constraint: {
|
||||
greaterThan: { value: 0 },
|
||||
|
||||
@ -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 */
|
||||
|
||||
Loading…
Reference in New Issue
Block a user