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
|
// Try to match series with images by default, to prevent weird display
|
||||||
// on SEG/SR containing studies
|
// on SEG/SR containing studies
|
||||||
{
|
{
|
||||||
|
weight: 10,
|
||||||
attribute: 'numImageFrames',
|
attribute: 'numImageFrames',
|
||||||
constraint: {
|
constraint: {
|
||||||
greaterThan: { value: 0 },
|
greaterThan: { value: 0 },
|
||||||
@ -106,11 +107,6 @@ function getHangingProtocolModule() {
|
|||||||
name: defaultProtocol.id,
|
name: defaultProtocol.id,
|
||||||
protocol: defaultProtocol,
|
protocol: defaultProtocol,
|
||||||
},
|
},
|
||||||
// Create a MxN hanging protocol available by default
|
|
||||||
{
|
|
||||||
name: hpMNGrid.id,
|
|
||||||
protocol: hpMNGrid,
|
|
||||||
},
|
|
||||||
// Create a MxN comparison hanging protocol available by default
|
// Create a MxN comparison hanging protocol available by default
|
||||||
{
|
{
|
||||||
name: hpMNCompare.id,
|
name: hpMNCompare.id,
|
||||||
@ -124,6 +120,11 @@ function getHangingProtocolModule() {
|
|||||||
name: hpScale.id,
|
name: hpScale.id,
|
||||||
protocol: hpScale,
|
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: {
|
defaultDisplaySetId: {
|
||||||
seriesMatchingRules: [
|
seriesMatchingRules: [
|
||||||
{
|
{
|
||||||
|
weight: 1,
|
||||||
attribute: 'numImageFrames',
|
attribute: 'numImageFrames',
|
||||||
constraint: {
|
constraint: {
|
||||||
greaterThan: { value: 0 },
|
greaterThan: { value: 0 },
|
||||||
|
|||||||
@ -156,7 +156,9 @@ function modeFactory({ modeConfiguration }) {
|
|||||||
/** List of extensions that are used by the mode */
|
/** List of extensions that are used by the mode */
|
||||||
extensions: extensionDependencies,
|
extensions: extensionDependencies,
|
||||||
/** HangingProtocol used by the mode */
|
/** 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 used by the mode */
|
||||||
sopClassHandlers: [ohif.sopClassHandler, segmentation.sopClassHandler],
|
sopClassHandlers: [ohif.sopClassHandler, segmentation.sopClassHandler],
|
||||||
/** hotkeys for mode */
|
/** hotkeys for mode */
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user