-
-
Notifications
You must be signed in to change notification settings - Fork 3.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Bug] Issue with Reference Line Tool Not Releasing in OHIF Image Viewer #3848
Comments
Adding this in this issue since I am trying to activate reference line as the default tool. Changed the setDefaultTool in modes\longitudinal\src\index.js as below
However I keep getting the error "node_modules@cornerstonejs\tools\src\utilities\planar\filterAnnotationsForDisplay.ts:50 Uncaught TypeError: Cannot read properties of null (reading 'indexOf')" Believe need to enable below listeners as done during the creation on ReferenceLines Tool Button Any pointers on how to do this in DefaultTool ? |
The problem with this solution is that it removes the (correct) behavior that the default tool is Windows Level (contrast). By default Reference Lines should be active as is Image Overlay. Furthermore, it does not solve the problem that when using a tool in one of the layout windows, it is not active for all of them. |
Agreed. modes\longitudinal\src\initToolGroups.js -
modes\longitudinal\src\moreTools.ts - Keep getting this error "node_modules@cornerstonejs\tools\src\utilities\planar\filterAnnotationsForDisplay.ts:50 Uncaught TypeError: Cannot read properties of null (reading 'indexOf')" |
I managed to get it working (although the 'indexOf' error still remains). The code with the solution is in: https://pastebin.com/RM4nLRfW |
@rmasad The URL above is not accessible. Could you please check. Did you manage to get ReferenceLines active in all the windows? |
rmasad well done. I managed to resolve this issue as well but its a hack. Posted in #3831 |
Went into the above bug and was able to verify the following:
|
I'm addressing this here #3961 |
We just release the OHIF 3.8, you can find more details here https://ohif.org/release-notes/3p8/ |
Describe the Bug
Once reference line tool selected, the tool does not seem to release properly. When selecting the tool, the previously selected tool (for example contrast change) is not selected (although it appears as active). Additionally, when the tool is selected again, it must be selected for each window (when using layouts).
Tested in 3.8-beta.27
Steps to Reproduce
The current behavior
The expected behavior
OS
MacOS 11.7
Node version
18
Browser
Chrome 118
The text was updated successfully, but these errors were encountered: