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

+6 -6
View File
@@ -83,7 +83,7 @@ function modeFactory({ modeConfiguration }) {
'AdvancedRenderingControls',
]);
toolbarService.updateSection(toolbarService.sections.advancedRenderingControlsSection, [
toolbarService.updateSection('AdvancedRenderingControls', [
'windowLevelMenuEmbedded',
'voiManualControlMenu',
'Colorbar',
@@ -101,7 +101,7 @@ function modeFactory({ modeConfiguration }) {
'windowLevelMenu',
]);
toolbarService.updateSection('moreToolsSection', [
toolbarService.updateSection('MoreTools', [
'Reset',
'rotate-right',
'flipHorizontal',
@@ -114,22 +114,22 @@ function modeFactory({ modeConfiguration }) {
'TagBrowser',
]);
toolbarService.updateSection('segmentationToolbox', [
toolbarService.updateSection(toolbarService.sections.segmentationToolbox, [
'SegmentationUtilities',
'SegmentationTools',
]);
toolbarService.updateSection('segmentationToolboxUtilitySection', [
toolbarService.updateSection('SegmentationUtilities', [
'LabelmapSlicePropagation',
'InterpolateLabelmap',
'SegmentBidirectional',
]);
toolbarService.updateSection('segmentationToolboxToolsSection', [
toolbarService.updateSection('SegmentationTools', [
'BrushTools',
'MarkerLabelmap',
'RegionSegmentPlus',
'Shapes',
]);
toolbarService.updateSection('brushToolsSection', ['Brush', 'Eraser', 'Threshold']);
toolbarService.updateSection('BrushTools', ['Brush', 'Eraser', 'Threshold']);
},
onModeExit: ({ servicesManager }: withAppTypes) => {
const {