feat(Mode): Ability to overwrite mode configuration and small improvements (#3580)
This commit is contained in:
1 parent
58d38495f0
commit
0493a0d587
9 files changed
+77
-11
No files matched your search
@@ -63,7 +63,7 @@ const extensionDependencies = {
|
||||
'@ohif/extension-dicom-video': '^3.0.1',
|
||||
};
|
||||
|
||||
function modeFactory() {
|
||||
function modeFactory({ modeConfiguration }) {
|
||||
let _activatePanelTriggersSubscriptions = [];
|
||||
return {
|
||||
// TODO: We're using this as a route segment
|
||||
@@ -244,6 +244,7 @@ function modeFactory() {
|
||||
dicomRt.sopClassHandler,
|
||||
],
|
||||
hotkeys: [...hotkeys.defaults.hotkeyBindings],
|
||||
...modeConfiguration,
|
||||
};
|
||||
}
|
||||
|
||||
|
||||
@@ -36,7 +36,7 @@ const extensionDependencies = {
|
||||
'@ohif/extension-dicom-microscopy': '^3.0.0',
|
||||
};
|
||||
|
||||
function modeFactory() {
|
||||
function modeFactory({ modeConfiguration }) {
|
||||
return {
|
||||
// TODO: We're using this as a route segment
|
||||
// We should not be.
|
||||
@@ -130,6 +130,7 @@ function modeFactory() {
|
||||
dicompdf.sopClassHandler,
|
||||
],
|
||||
hotkeys: [...hotkeys.defaults.hotkeyBindings],
|
||||
...modeConfiguration,
|
||||
};
|
||||
}
|
||||
|
||||
|
||||
@@ -238,6 +238,7 @@ function modeFactory({ modeConfiguration }) {
|
||||
hangingProtocol: tmtv.hangingProtocol,
|
||||
sopClassHandlers: [ohif.sopClassHandler],
|
||||
hotkeys: [...hotkeys.defaults.hotkeyBindings],
|
||||
...modeConfiguration,
|
||||
};
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user