26 lines
1.2 KiB
JavaScript
26 lines
1.2 KiB
JavaScript
import Hammer from 'hammerjs';
|
|
// TODO: [PWV-379] delete local cornerstone.js and switch back to the npm library after
|
|
// merging https://github.com/cornerstonejs/cornerstone/pull/2
|
|
// import * as cornerstone from 'cornerstone-core/dist/cornerstone.js';
|
|
import * as cornerstone from './cornerstone.js';
|
|
import * as cornerstoneMath from 'cornerstone-math/dist/cornerstoneMath.js';
|
|
import * as cornerstoneTools from 'cornerstone-tools/dist/cornerstoneTools.js';
|
|
import * as cornerstoneWADOImageLoader from 'cornerstone-wado-image-loader/dist/cornerstoneWADOImageLoader.js';
|
|
import * as dicomParser from 'dicom-parser'; // Importing from dist breaks instance reference of dicomParser.DataSet class
|
|
|
|
cornerstoneTools.external.Hammer = Hammer;
|
|
cornerstoneTools.external.cornerstone = cornerstone;
|
|
cornerstoneTools.external.cornerstoneMath = cornerstoneMath;
|
|
cornerstoneWADOImageLoader.external.cornerstone = cornerstone;
|
|
cornerstoneWADOImageLoader.external.dicomParser = dicomParser;
|
|
|
|
// Export scripts that will populate the Cornerstone namespace as a side effect only import.
|
|
// This is effectively the public API...
|
|
export {
|
|
cornerstone,
|
|
cornerstoneTools,
|
|
cornerstoneMath,
|
|
cornerstoneWADOImageLoader,
|
|
dicomParser
|
|
};
|