Enabling devTools debugging on cornerstone libraries

This commit is contained in:
Bruno Alves de Faria committed 2018-02-27 07:14:54 -03:00
1 parent b0d6701558
commit 99b88f08b3
15 files changed
+52 -64

No files matched your search

+7 -23
View File
@@ -1,32 +1,18 @@
/**
* Import namespace...
*/
import { OHIF } from './namespace.js';
/**
* Import scripts that will populate the Cornerstone namespace as a side effect only import. This is effectively the public API...
*/
import * as cornerstone from 'cornerstone-core';
import * as cornerstoneTools from 'cornerstone-tools';
import * as cornerstoneMath from 'cornerstone-math';
import * as cornerstoneWADOImageLoader from 'cornerstone-wado-image-loader';
import * as dicomParser from 'dicom-parser';
import Hammer from 'hammerjs';
import * as cornerstone from 'cornerstone-core/dist/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/dist/dicomParser.js';
import './client/'; // which is actually: import './client/index.js';
// Inject the current cornerstone version into the
// WADO Image Loader and Tools libraries
//
// Note: You would also need to do this with Cornerstone Web Image Loader
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,
@@ -34,5 +20,3 @@ export {
cornerstoneWADOImageLoader,
dicomParser
};
export { OHIF };