Skip to content

fix: stabilize slice clipping and tighten visual checks - #990

Merged
PaulHax merged 2 commits into
Kitware:mainfrom
PaulHax:layer-display-ci
Oct 25, 2026
Merged

PaulHax merged 2 commits into
Kitware:mainfrom
PaulHax:layer-display-ci

Conversation

@PaulHax

@PaulHax PaulHax commented Oct 22, 2026 •

Copy link
Copy Markdown
Collaborator

After replacing an oblique layout, hiding and showing the base image can change its camera clipping range because resize uses slice actor bounds while visibility restoration uses full image bounds. Use the full image bounds consistently during slice-view resize, and retain separate before, hidden, and restored screenshots for each visibility cycle. Keep immediate resizing tied to dimension changes so replacing image data can update its mappers before rendering.

Refresh the axial painting and coronal labelmap baselines with the pointer outside the view, and reduce their allowed pixel mismatch from 5% to 0.01%. Capture the composited viewport with the text overlays hidden so the comparison checks the image and painted geometry independently of font rasterization. Use the same threshold for difference warnings, and keep the checks that brush hovering leaves the painted image unchanged.

The overlay lifecycle test can exceed its timeout when view conversion and session restoration run together. Split those paths into separate cases and use a single-slice fixture for the save/reopen case, while retaining coverage of converting all three slice views.

@netlify

netlify Bot commented Oct 22, 2026 •

Copy link
Copy Markdown

✅ Deploy Preview for volview-dev ready!

Name Link
🔨 Latest commit 0ca8665
🔍 Latest deploy log https://app.netlify.com/projects/volview-dev/deploys/6ade43c78a7f63f1c3ff0530
😎 Deploy Preview https://deploy-preview-990--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 changed the title test(e2e): tighten painting checks and split overlay lifecycle coverage fix: stabilize slice clipping and tighten visual checks Oct 25, 2026
@PaulHax
PaulHax merged commit 2d6bf05 into Kitware:main Oct 25, 2026
8 checks passed
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