cornerstonejs / cornerstoneTools

A framework for tools built on top of Cornerstone.
https://tools.cornerstonejs.org/
MIT License
577 stars 452 forks source link

Use multiple tools #1310

Open xiaozhidave opened 4 years ago

xiaozhidave commented 4 years ago

When I use the length tool on the canvas, I drag the mouse to the data measured by the previous angle tool and make changes. In the browser console, I can see the error message. The error position is in the cornerstonetool about the length measurement part Code, how to deal with this problem

xiaozhidave commented 4 years ago

I found the answer in the issue. I need to judge the parameters used in the updateCachedStats method of each tool. To determine whether it exists, this can solve the problem