2016-09-22 18:47:56 -03:00
|
|
|
import { Meteor } from 'meteor/meteor';
|
|
|
|
|
|
2016-08-03 11:13:48 -03:00
|
|
|
/*
|
|
|
|
|
* Defines the base OHIF object
|
|
|
|
|
*/
|
2016-07-12 15:37:53 -03:00
|
|
|
|
2016-09-20 12:23:57 -03:00
|
|
|
const OHIF = {
|
2016-09-20 17:47:44 -03:00
|
|
|
log: {},
|
2016-09-22 18:47:56 -03:00
|
|
|
ui: {},
|
2017-01-11 11:52:45 -02:00
|
|
|
utils: {},
|
2017-01-24 14:35:56 -02:00
|
|
|
viewer: {},
|
|
|
|
|
cornerstone: {}
|
2016-09-20 12:23:57 -03:00
|
|
|
};
|
2016-07-25 17:19:47 -03:00
|
|
|
|
2016-08-03 11:13:48 -03:00
|
|
|
// Expose the OHIF object to the client if it is on development mode
|
2017-01-16 12:47:29 -02:00
|
|
|
// @TODO: remove this after applying namespace to this package
|
|
|
|
|
if (Meteor.isClient) {
|
2016-08-03 11:13:48 -03:00
|
|
|
window.OHIF = OHIF;
|
|
|
|
|
}
|
2016-07-25 17:19:47 -03:00
|
|
|
|
2016-08-03 11:13:48 -03:00
|
|
|
export { OHIF };
|