Registering tool commands
This commit is contained in:
1 parent
dbbcbe6e67
commit
fa7ad2c51e
7 files changed
+72
-16
No files matched your search
@@ -5,11 +5,14 @@ import { CommandsManager } from 'meteor/ohif:commands/client/classes/CommandsMan
|
||||
// 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;
|
||||
|
||||
// Create commands namespace using a CommandsManager class instance
|
||||
const commands = new CommandsManager(context);
|
||||
|
||||
// Append commands namespace to OHIF namespace
|
||||
OHIF.commands = commands;
|
||||
|
||||
// Export relevant objects
|
||||
export { context, commands };
|
||||
Reference in new issue
Block a user