feat(toolbox): Refactor Toolbar and Toolbox to enable sections (#4825)
This commit is contained in:
1 parent
86c12246ac
commit
cc5cdfb081
79 files changed
+3527
-2992
No files matched your search
+13
-3
@@ -1,5 +1,5 @@
|
||||
import { hotkeys, classes } from '@ohif/core';
|
||||
import toolbarButtons from './toolbarButtons.js';
|
||||
import { classes } from '@ohif/core';
|
||||
import toolbarButtons from './toolbarButtons';
|
||||
import { id } from './id.js';
|
||||
import initToolGroups from './initToolGroups.js';
|
||||
import setCrosshairsConfiguration from './utils/setCrosshairsConfiguration.js';
|
||||
@@ -96,11 +96,21 @@ function modeFactory({ modeConfiguration }) {
|
||||
'Crosshairs',
|
||||
'Pan',
|
||||
]);
|
||||
toolbarService.createButtonSection('ROIThresholdToolbox', [
|
||||
toolbarService.createButtonSection('measurementSection', [
|
||||
'Length',
|
||||
'Bidirectional',
|
||||
'ArrowAnnotate',
|
||||
'EllipticalROI',
|
||||
]);
|
||||
|
||||
toolbarService.createButtonSection('ROIThresholdToolbox', ['SegmentationTools']);
|
||||
toolbarService.createButtonSection('segmentationToolboxToolsSection', [
|
||||
'RectangleROIStartEndThreshold',
|
||||
'BrushTools',
|
||||
]);
|
||||
|
||||
toolbarService.createButtonSection('brushToolsSection', ['Brush', 'Eraser', 'Threshold']);
|
||||
|
||||
customizationService.setCustomizations({
|
||||
'panelSegmentation.tableMode': {
|
||||
$set: 'expanded',
|
||||
|
||||
Reference in new issue
Block a user