Demonstrate tool configuration via App redux settings (using Freehand tool) (ohif-cornerstone-extension: 0.0.8, ohif-viewer 0.0.10)
This commit is contained in:
1 parent
e235980040
commit
b413527371
7 files changed
+40
-7
No files matched your search
+6
@@ -8,6 +8,11 @@ const { setViewportActive, setViewportSpecificData, clearViewportSpecificData }
|
||||
|
||||
const mapStateToProps = (state, ownProps) => {
|
||||
const activeButton = state.tools.buttons.find(tool => tool.active === true);
|
||||
let availableTools;
|
||||
|
||||
if (state.extensions && state.extensions.cornerstone && state.extensions.availableTools) {
|
||||
availableTools = state.extensions.availableTools;
|
||||
};
|
||||
|
||||
// If this is the active viewport, enable prefetching.
|
||||
const { viewportIndex } = ownProps;//.viewportData;
|
||||
@@ -18,6 +23,7 @@ const mapStateToProps = (state, ownProps) => {
|
||||
layout: state.viewports.layout,
|
||||
isActive,
|
||||
activeTool: activeButton && activeButton.command,
|
||||
availableTools,
|
||||
enableStackPrefetch: isActive,
|
||||
//stack: viewportSpecificData.stack,
|
||||
cineToolData: viewportSpecificData.cine,
|
||||
|
||||
Reference in new issue
Block a user