Creating ohif:commands package
This commit is contained in:
1 parent
2f81c0e2e7
commit
dbbcbe6e67
6 files changed
+151
-48
No files matched your search
@@ -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 };
|
||||
Reference in new issue
Block a user