Skip to content

Conversation

@GhadeerAlbattarni
Copy link
Contributor

@GhadeerAlbattarni GhadeerAlbattarni commented Jan 19, 2026

Context

Fixes #5659

This PR fixes the inability to hide/show individual measurements in microscopy mode using the eye icon in the measurements panel.
It Implements visibility toggle functionality in the dicom-microscopy extension

Changes

  • RoiAnnotation.js: Added isVisible property and setVisibility() method to track annotation visibility state
  • MicroscopyService.ts: Added toggleROIVisibility() method to coordinate visibility changes across all managed
    viewers
  • viewerManager.js: Added toggleROIVisibility() method to add/remove ROI from the dicom-microscopy-viewer
  • getCommandsModule.ts: Added toggleMeasurementVisibility command
  • MicroscopyPanel.tsx: Wired up the visibility toggle handler to the DataRow component

Results

Before
The measurement stays visible when the user clicks on the eye icon.

After
The measurement can be hidden and shown when the user clicks on the eye icon.

Screen.Recording.2026-01-18.at.7.52.46.PM.mov

Testing

  1. Open a study in microscopy mode
  2. Add few different markups
  3. In the right-side measurements panel, click the eye icon for a measurement
  4. Verify the measurement hides on the viewport
  5. Click again on the eye icon
  6. Verify the measurement shows again

Checklist

PR

  • My Pull Request title is descriptive, accurate and follows the
    semantic-release format and guidelines.

Code

  • My code has been well-documented (function documentation, inline comments,
    etc.)

Public Documentation Updates

  • The documentation page has been updated as necessary for any public API
    additions or removals.

Tested Environment

  • OS: macOS 10.15.4
  • Node version: v22.12.0
  • Browser: Chrome 83.0.4103.116

@netlify
Copy link

netlify bot commented Jan 19, 2026

Deploy Preview for ohif-dev ready!

Name Link
🔨 Latest commit f45031c
🔍 Latest deploy log https://app.netlify.com/projects/ohif-dev/deploys/696d859a760b3e0008bc1d0d
😎 Deploy Preview https://deploy-preview-5725--ohif-dev.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Bug] In microscopy mode measurements cannot be hidden

1 participant