Update Cornerstone libraries and use injection for $, Hammer, and Cornerstone

This commit is contained in:
Erik Ziegler committed 2017-10-26 15:51:25 +02:00
1 parent 315ec935d9
commit 012bba4480
6 files changed
+21 -9

No files matched your search

+12
View File
@@ -13,9 +13,21 @@ 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 { $ } from 'meteor/jquery';
import Hammer from 'hammerjs';
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
cornerstone.external.$ = $;
cornerstoneTools.external.$ = $;
cornerstoneTools.external.Hammer = Hammer;
cornerstoneTools.external.cornerstone = cornerstone;
cornerstoneWADOImageLoader.external.cornerstone = cornerstone;
export {
cornerstone,
cornerstoneTools,