cornerstonejs / cornerstone3D

Cornerstone is a set of JavaScript libraries that can be used to build web-based medical imaging applications. It provides a framework to build radiology applications such as the OHIF Viewer.
https://cornerstonejs.org
MIT License
465 stars 249 forks source link

[Bug] Can't add PlanarFreehandROITool when 2 or more viewports with shared frame of reference are present #1316

Open kubanm3 opened 2 weeks ago

kubanm3 commented 2 weeks ago

Describe the Bug

When trying to use PlanarFreehandROITool it produces error when 2 or more vieports with shared frameofreference are present. PlanarFreehandROITool has to have calculate stats set to true for error to occur.

Steps to Reproduce

Open 2 vieports with shared frameofrerence add PlanarFreehandROITool annotation

The current behavior

Yuo get error in console and tool gets frozen. cant add annother annotation. image

The expected behavior

Annotation is added

OS

Ubutnut

Node version

20

Browser

Brave

sedghi commented 2 weeks ago

I apologize, but I am unable to reproduce the steps you provided. Could you please record a video demonstrating the issue? This would help me better understand and assist you.