15 lines
295 B
JavaScript
15 lines
295 B
JavaScript
|
|
import * as dcmjs from 'dcmjs';
|
||
|
|
|
||
|
|
/**
|
||
|
|
* Checks if dcmjs has support to determined tool
|
||
|
|
*
|
||
|
|
* @param {string} toolName
|
||
|
|
* @returns {boolean}
|
||
|
|
*/
|
||
|
|
const isToolSupported = toolName => {
|
||
|
|
const adapter = dcmjs.adapters.Cornerstone;
|
||
|
|
return !!adapter[toolName];
|
||
|
|
};
|
||
|
|
|
||
|
|
export default isToolSupported;
|