Generate render tool.

This commit is contained in:
James A. Petts committed 2020-06-05 17:36:11 +02:00
1 parent 7bd041a02c
commit f4470c9625
13 files changed
+612 -47

No files matched your search

+21
View File
@@ -0,0 +1,21 @@
import cornerstoneTools from 'cornerstone-tools';
import DICOMSRDisplayTool from './tools/DICOMSRDisplayTool';
import TOOL_NAMES from './constants/toolNames';
const defaultConfig = {
TOOL_NAMES: {
DICOM_SR_DISPLAY_TOOL: 'DICOMSRDisplayTool',
},
};
/**
* @param {object} configuration
*/
export default function init({ configuration = {} }) {
const conifg = Object.assign({}, defaultConfig, configuration);
TOOL_NAMES.DICOM_SR_DISPLAY_TOOL = conifg.TOOL_NAMES.DICOM_SR_DISPLAY_TOOL;
cornerstoneTools.addTool(DICOMSRDisplayTool);
}