Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

fix(wheneverImageLoaded): run callback when switching images #724

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

PaulHax
Copy link
Collaborator

@PaulHax PaulHax commented Mar 21, 2025

closes #721 (hopefully)

The CT-Neck to Prostate switching worked OK for me. Switching between Prostate and Fetus had cropping issues for me. This PR fixes Prostate/Fetus case and hoefully gets the CT-Neck/Prostate in the issue.

The bug is that the current implementation of wheneverImageLoaded only watches a derived boolean (hasImageData) that only toggles when the image goes from not-loaded to loaded. If the imageId changes from one valid ID to another (with both returning true), the callback never fires.

@PaulHax PaulHax requested a review from floryst March 21, 2025 13:05
Copy link

netlify bot commented Mar 21, 2025

Deploy Preview for volview-dev ready!

Built without sensitive environment variables

Name Link
🔨 Latest commit b9364a9
🔍 Latest deploy log https://app.netlify.com/sites/volview-dev/deploys/67dd64396ebebd00089dff1f
😎 Deploy Preview https://deploy-preview-724--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 site configuration.

The bug is that the current implementation of wheneverImageLoaded only watches a derived boolean (hasImageData) that only toggles when the image goes from not-loaded to loaded. If the imageId changes from one valid ID to another (with both returning true), the callback never fires.
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Bug: volume rendering is black after loading the head + neck example
1 participant