feat(actions): simplify action corner api through the toolbarService (#5033)

This commit is contained in:
Alireza authored and GitHub committed 2025-05-15 12:08:12 -04:00
1 parent f71b88e639
commit 7c15bb8901
246 files changed
+7930 -4270

No files matched your search

+4 -4
View File
@@ -48,8 +48,8 @@ function modeFactory({ modeConfiguration }) {
// Init Default and SR ToolGroups
initToolGroups(extensionManager, toolGroupService, commandsManager);
toolbarService.addButtons([...toolbarButtons, ...moreTools]);
toolbarService.createButtonSection('primary', [
toolbarService.register([...toolbarButtons, ...moreTools]);
toolbarService.updateSection('primary', [
'measurementSection',
'Zoom',
'Pan',
@@ -61,7 +61,7 @@ function modeFactory({ modeConfiguration }) {
'moreToolsSection',
]);
toolbarService.createButtonSection('measurementSection', [
toolbarService.updateSection('measurementSection', [
'Length',
'Bidirectional',
'ArrowAnnotate',
@@ -73,7 +73,7 @@ function modeFactory({ modeConfiguration }) {
'LivewireContour',
]);
toolbarService.createButtonSection('moreToolsSection', [
toolbarService.updateSection('moreToolsSection', [
'Reset',
'rotate-right',
'flipHorizontal',