Creating ohif:commands package
This commit is contained in:
1 parent
2f81c0e2e7
commit
dbbcbe6e67
6 files changed
+151
-48
No files matched your search
@@ -2,7 +2,7 @@ import { ReactiveVar } from 'meteor/reactive-var';
|
||||
import { HotkeysContext } from 'meteor/ohif:hotkeys/client/classes/HotkeysContext';
|
||||
|
||||
export class HotkeysManager {
|
||||
constructor() {
|
||||
constructor(retrieveFunction, storeFunction) {
|
||||
this.contexts = {};
|
||||
this.currentContextName = null;
|
||||
this.enabled = new ReactiveVar(true);
|
||||
|
||||
@@ -1,18 +1,11 @@
|
||||
import { OHIF } from 'meteor/ohif:core';
|
||||
import { HotkeysManager } from 'meteor/ohif:hotkeys/client/classes/HotkeysManager';
|
||||
|
||||
/**
|
||||
* Create hotkeys namespace using a HotkeysManager class instance
|
||||
*/
|
||||
// Create hotkeys namespace using a HotkeysManager class instance
|
||||
const hotkeys = new HotkeysManager();
|
||||
|
||||
/**
|
||||
* Append hotkeys namespace to OHIF namespace
|
||||
*/
|
||||
|
||||
// Append hotkeys namespace to OHIF namespace
|
||||
OHIF.hotkeys = hotkeys;
|
||||
|
||||
/**
|
||||
* Export relevant objects
|
||||
*/
|
||||
// Export relevant objects
|
||||
export { hotkeys };
|
||||
Reference in new issue
Block a user