Context specific commands
This commit is contained in:
parent
cf65e3a690
commit
46904ea39f
@ -182,5 +182,6 @@ function _getActiveViewportEnabledElement(viewports, activeIndex) {
|
|||||||
|
|
||||||
export default {
|
export default {
|
||||||
actions,
|
actions,
|
||||||
definitions
|
definitions,
|
||||||
|
defaultContext: 'ACTIVE_VIEWPORT::CORNERSTONE'
|
||||||
};
|
};
|
||||||
|
|||||||
@ -263,8 +263,12 @@ const definitions = {
|
|||||||
mpr2d: {
|
mpr2d: {
|
||||||
commandFn: actions.mpr2d,
|
commandFn: actions.mpr2d,
|
||||||
storeContexts: ['viewports'],
|
storeContexts: ['viewports'],
|
||||||
options: {}
|
options: {},
|
||||||
|
context: 'VIEWER'
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
export { definitions };
|
export default {
|
||||||
|
definitions,
|
||||||
|
defaultContext: 'ACTIVE_VIEWPORT::VTK'
|
||||||
|
};
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user