Skip to content

Commit 13cbc8c

Browse files
authored
Merge pull request #12 from cornerstonejs/fix-tool-props
fix(tool-props)
2 parents c3868a1 + 2e63767 commit 13cbc8c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/CornerstoneViewport/CornerstoneViewport.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ function initializeTools(cornerstoneTools, tools, element) {
2929
Array.from(tools).forEach(tool => {
3030
const apiTool = cornerstoneTools[`${tool.name}Tool`] || tool.apiTool;
3131
if (apiTool) {
32-
cornerstoneTools.addToolForElement(element, apiTool, tool.configuration);
32+
cornerstoneTools.addToolForElement(element, apiTool, tool.props);
3333
} else {
3434
throw new Error(`Tool not found: ${tool.name}Tool`);
3535
}
@@ -63,7 +63,7 @@ class CornerstoneViewport extends Component {
6363
{ name: 'Pan', mouseButtonMasks: [1, 4] },
6464
{
6565
name: 'Zoom',
66-
configuration: {
66+
props: {
6767
minScale: 0.3,
6868
maxScale: 25,
6969
preventZoomOutsideImage: true

0 commit comments

Comments
 (0)