fix: backward compatibility with toolbar service (#5052)

This commit is contained in:
Alireza authored and GitHub committed 2025-05-16 13:42:35 -04:00
1 parent c6b28654b5
commit 9b1b501d83
27 files changed
+198 -144

No files matched your search

+3 -3
View File
@@ -112,7 +112,7 @@ function modeFactory({ modeConfiguration }) {
'AdvancedRenderingControls',
]);
toolbarService.updateSection(toolbarService.sections.advancedRenderingControlsSection, [
toolbarService.updateSection('AdvancedRenderingControls', [
'windowLevelMenuEmbedded',
'voiManualControlMenu',
'Colorbar',
@@ -130,7 +130,7 @@ function modeFactory({ modeConfiguration }) {
'windowLevelMenu',
]);
toolbarService.updateSection(toolbarService.sections.measurementSection, [
toolbarService.updateSection('MeasurementTools', [
'Length',
'Bidirectional',
'ArrowAnnotate',
@@ -142,7 +142,7 @@ function modeFactory({ modeConfiguration }) {
'LivewireContour',
]);
toolbarService.updateSection(toolbarService.sections.moreToolsSection, [
toolbarService.updateSection('MoreTools', [
'Reset',
'rotate-right',
'flipHorizontal',
+3 -3
View File
@@ -25,21 +25,21 @@ const toolbarButtons: Button[] = [
id: 'MeasurementTools',
uiType: 'ohif.toolButtonList',
props: {
buttonSection: 'measurementSection',
buttonSection: true,
},
},
{
id: 'MoreTools',
uiType: 'ohif.toolButtonList',
props: {
buttonSection: 'moreToolsSection',
buttonSection: true,
},
},
{
id: 'AdvancedRenderingControls',
uiType: 'ohif.advancedRenderingControls',
props: {
buttonSection: 'advancedRenderingControlsSection',
buttonSection: true,
},
},
// tool defs