Files
ohif-viewer/extensions/cornerstone-dicom-sr/src/utils/isToolSupported.js
T
Bill Wallace 0e1a58da79 fix: Use @cornerstonejs/adapters (#3116)
Also update the sort series to be consistent, using a single version of the series sort, and fix an issue with longitudinal mode export.
2023-02-06 17:05:13 -05:00

15 lines
315 B
JavaScript

import { adaptersSR } from '@cornerstonejs/adapters';
/**
* Checks if dcmjs has support to determined tool
*
* @param {string} toolName
* @returns {boolean}
*/
const isToolSupported = toolName => {
const adapter = adaptersSR.Cornerstone3D;
return !!adapter[toolName];
};
export default isToolSupported;