cornerstonejs / react-cornerstone-viewport

Cornerstone medical image viewport component for React
https://react.cornerstonejs.org/
MIT License
96 stars 75 forks source link

Ability to modify tool's mode when component is updated. #126

Open burnpiro opened 2 years ago

burnpiro commented 2 years ago

Run setTool[mode] function when the list of tools provided as props has changed. Call executes on every update and updates the state of all provided tools. This allows turning tools ON/OFF without initializing the entire CornerstoneViewport component.

Resolves #117

netlify[bot] commented 2 years ago

✔️ Deploy Preview for react-cornerstone-viewport ready!

🔨 Explore the source changes: 9153bc9fc7926706c31fe9870201805461487506

🔍 Inspect the deploy log: https://app.netlify.com/sites/react-cornerstone-viewport/deploys/6153796193bc7e0007f313b8

😎 Browse the preview: https://deploy-preview-126--react-cornerstone-viewport.netlify.app/