Skip to content

fix(tools): show frame number in cine measurement details#880

Merged
PaulHax merged 1 commit into
Kitware:mainfrom
PaulHax:cine-measurement-slice
May 19, 2026
Merged

fix(tools): show frame number in cine measurement details#880
PaulHax merged 1 commit into
Kitware:mainfrom
PaulHax:cine-measurement-slice

Conversation

@PaulHax
Copy link
Copy Markdown
Collaborator

@PaulHax PaulHax commented May 18, 2026

Summary

  • Measurement detail rows for ruler/polygon/rectangle annotations on cine ultrasound were showing "Slice: 1" for every measurement, because cine annotations store frame and pin slice to 0 (src/core/annotations/locator.ts:61-80).
  • MeasurementToolDetails.vue and MeasurementRulerDetails.vue now render Frame: N when tool.frame != null, falling back to Slice: N for spatial volume annotations.
  • Added unit test src/components/__tests__/MeasurementDetails.spec.ts covering both branches for both detail components.

Measurement details rendered "Slice: 1" for ruler/polygon/rectangle
annotations on cine ultrasound, because cine annotations store
`frame` and pin `slice` to 0. Display "Frame: N" when `tool.frame`
is set.
@netlify
Copy link
Copy Markdown

netlify Bot commented May 18, 2026

Deploy Preview for volview-dev ready!

Name Link
🔨 Latest commit 9bd7f42
🔍 Latest deploy log https://app.netlify.com/projects/volview-dev/deploys/6a0ba79ee8ff5f0008b8e08d
😎 Deploy Preview https://deploy-preview-880--volview-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.

@PaulHax PaulHax added this pull request to the merge queue May 19, 2026
Merged via the queue into Kitware:main with commit a66d1cf May 19, 2026
8 checks passed
@PaulHax PaulHax deleted the cine-measurement-slice branch May 19, 2026 01:11
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.

1 participant