ohif-viewer/extensions/cornerstone-dicom-rt/src/utils/initRTToolGroup.ts

8 lines
304 B
TypeScript

function createRTToolGroupAndAddTools(ToolGroupService, customizationService, toolGroupId) {
const { tools } = customizationService.get('cornerstone.overlayViewportTools') ?? {};
return ToolGroupService.createToolGroupAndAddTools(toolGroupId, tools);
}
export default createRTToolGroupAndAddTools;