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
565 stars 288 forks source link

[Bug] ReferenceLinesTool can render with solid line style rather that dashed line style #1500

Open John-Skinner opened 4 days ago

John-Skinner commented 4 days ago

Describe the Bug

When using arrowAnnotateTool when ReferenceLineTool is active, toggling between viewports can cause the ReferenceLineTool to become solid.

Steps to Reproduce

  1. load Neptune mrn 0000002 (part of the set used by viewer.ohif.org) with [basic viewer] mode
  2. switch layout to 2x1 (ie 2 across) scout will be in left, axial in right
  3. select length tool
  4. draw in scout
  5. select w/l tool
  6. click on axial
  7. The scout will now have a solid line rather than dotted line. Not expected.

The current behavior

without using length tool above, one sees dotted reference line rather than solid reference line. Dotted reference line is always expected. Using length tool and switching to axial viewport causes the reference line to be solid. That is not expected.

The expected behavior

The reference line is expected to be dotted line style at all times.

OS

Ubuntu

Node version

20

Browser

chrome Version 129.0.6668.100 (Official Build) (64-bit)

John-Skinner commented 4 days ago

Issue reproduced with viewer.ohif.org on 14-oct-2024 https://viewer.ohif.org/viewer?StudyInstanceUIDs=1.3.6.1.4.1.25403.345050719074.3824.20170125095258.1