fix(window-level): move window level region to more tools menu (#4215)
This commit is contained in:
parent
319b31d9a8
commit
33f4c18f26
@ -83,7 +83,6 @@ function modeFactory() {
|
|||||||
'MeasurementTools',
|
'MeasurementTools',
|
||||||
'Zoom',
|
'Zoom',
|
||||||
'WindowLevel',
|
'WindowLevel',
|
||||||
'WindowLevelRegion',
|
|
||||||
'Pan',
|
'Pan',
|
||||||
'Capture',
|
'Capture',
|
||||||
'Layout',
|
'Layout',
|
||||||
|
|||||||
@ -190,6 +190,14 @@ const moreTools = [
|
|||||||
commands: setToolActiveToolbar,
|
commands: setToolActiveToolbar,
|
||||||
evaluate: ['evaluate.cornerstoneTool', 'evaluate.isUS'],
|
evaluate: ['evaluate.cornerstoneTool', 'evaluate.isUS'],
|
||||||
}),
|
}),
|
||||||
|
createButton({
|
||||||
|
id: 'WindowLevelRegion',
|
||||||
|
icon: 'icon-tool-window-region',
|
||||||
|
label: 'Window Level Region',
|
||||||
|
tooltip: 'Window Level Region',
|
||||||
|
commands: setToolActiveToolbar,
|
||||||
|
evaluate: 'evaluate.cornerstoneTool',
|
||||||
|
}),
|
||||||
],
|
],
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
|||||||
@ -167,16 +167,6 @@ const toolbarButtons: Button[] = [
|
|||||||
],
|
],
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
{
|
|
||||||
id: 'WindowLevelRegion',
|
|
||||||
uiType: 'ohif.radioGroup',
|
|
||||||
props: {
|
|
||||||
icon: 'icon-tool-window-region',
|
|
||||||
label: 'Window Level Region',
|
|
||||||
commands: setToolActiveToolbar,
|
|
||||||
evaluate: 'evaluate.cornerstoneTool',
|
|
||||||
},
|
|
||||||
},
|
|
||||||
// Pan...
|
// Pan...
|
||||||
{
|
{
|
||||||
id: 'Pan',
|
id: 'Pan',
|
||||||
|
|||||||
@ -100,7 +100,6 @@ function modeFactory({ modeConfiguration }) {
|
|||||||
'Pan',
|
'Pan',
|
||||||
'TrackballRotate',
|
'TrackballRotate',
|
||||||
'WindowLevel',
|
'WindowLevel',
|
||||||
'WindowLevelRegion',
|
|
||||||
'Capture',
|
'Capture',
|
||||||
'Layout',
|
'Layout',
|
||||||
'Crosshairs',
|
'Crosshairs',
|
||||||
|
|||||||
@ -182,6 +182,14 @@ const moreTools = [
|
|||||||
commands: setToolActiveToolbar,
|
commands: setToolActiveToolbar,
|
||||||
evaluate: ['evaluate.cornerstoneTool', 'evaluate.isUS'],
|
evaluate: ['evaluate.cornerstoneTool', 'evaluate.isUS'],
|
||||||
}),
|
}),
|
||||||
|
createButton({
|
||||||
|
id: 'WindowLevelRegion',
|
||||||
|
icon: 'icon-tool-window-region',
|
||||||
|
label: 'Window Level Region',
|
||||||
|
tooltip: 'Window Level Region',
|
||||||
|
commands: setToolActiveToolbar,
|
||||||
|
evaluate: 'evaluate.cornerstoneTool',
|
||||||
|
}),
|
||||||
],
|
],
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
|||||||
@ -129,16 +129,6 @@ const toolbarButtons: Button[] = [
|
|||||||
evaluate: 'evaluate.cornerstoneTool',
|
evaluate: 'evaluate.cornerstoneTool',
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
{
|
|
||||||
id: 'WindowLevelRegion',
|
|
||||||
uiType: 'ohif.radioGroup',
|
|
||||||
props: {
|
|
||||||
icon: 'icon-tool-window-region',
|
|
||||||
label: 'Window Level Region',
|
|
||||||
commands: setToolActiveToolbar,
|
|
||||||
evaluate: 'evaluate.cornerstoneTool',
|
|
||||||
},
|
|
||||||
},
|
|
||||||
// Pan...
|
// Pan...
|
||||||
{
|
{
|
||||||
id: 'Pan',
|
id: 'Pan',
|
||||||
|
|||||||
@ -66,7 +66,6 @@ function modeFactory({ modeConfiguration }) {
|
|||||||
|
|
||||||
toolbarService.createButtonSection('primary', [
|
toolbarService.createButtonSection('primary', [
|
||||||
'WindowLevel',
|
'WindowLevel',
|
||||||
'WindowLevelRegion',
|
|
||||||
'Pan',
|
'Pan',
|
||||||
'Zoom',
|
'Zoom',
|
||||||
'TrackballRotate',
|
'TrackballRotate',
|
||||||
|
|||||||
@ -38,16 +38,6 @@ const toolbarButtons: Button[] = [
|
|||||||
evaluate: 'evaluate.cornerstoneTool',
|
evaluate: 'evaluate.cornerstoneTool',
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
{
|
|
||||||
id: 'WindowLevelRegion',
|
|
||||||
uiType: 'ohif.radioGroup',
|
|
||||||
props: {
|
|
||||||
icon: 'icon-tool-window-region',
|
|
||||||
label: 'Window Level Region',
|
|
||||||
commands: setToolActiveToolbar,
|
|
||||||
evaluate: 'evaluate.cornerstoneTool',
|
|
||||||
},
|
|
||||||
},
|
|
||||||
{
|
{
|
||||||
id: 'Pan',
|
id: 'Pan',
|
||||||
uiType: 'ohif.radioGroup',
|
uiType: 'ohif.radioGroup',
|
||||||
@ -261,6 +251,14 @@ const toolbarButtons: Button[] = [
|
|||||||
commands: setToolActiveToolbar,
|
commands: setToolActiveToolbar,
|
||||||
evaluate: ['evaluate.cornerstoneTool', 'evaluate.isUS'],
|
evaluate: ['evaluate.cornerstoneTool', 'evaluate.isUS'],
|
||||||
}),
|
}),
|
||||||
|
createButton({
|
||||||
|
id: 'WindowLevelRegion',
|
||||||
|
icon: 'icon-tool-window-region',
|
||||||
|
label: 'Window Level Region',
|
||||||
|
tooltip: 'Window Level Region',
|
||||||
|
commands: setToolActiveToolbar,
|
||||||
|
evaluate: 'evaluate.cornerstoneTool',
|
||||||
|
}),
|
||||||
],
|
],
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user