Creating ohif:commands package

This commit is contained in:
Bruno Alves de Faria authored and Erik Ziegler committed 2017-06-14 09:19:49 +02:00
1 parent 2f81c0e2e7
commit dbbcbe6e67
6 files changed
+151 -48

No files matched your search

+15
View File
@@ -0,0 +1,15 @@
import { ReactiveVar } from 'meteor/reactive-var';
import { OHIF } from 'meteor/ohif:core';
import { CommandsManager } from 'meteor/ohif:commands/client/classes/CommandsManager';
// Create context namespace using a ReactiveVar
const context = new ReactiveVar(null);
// Create commands namespace using a CommandsManager class instance
const commands = new CommandsManager(context);
// Append context namespace to OHIF namespace
OHIF.context = context;
// Export relevant objects
export { context, commands };