Skip to content
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

fix(ruler): avoid error when manipulator returns no worldCoords #474

Merged
merged 2 commits into from
Oct 27, 2023
Merged

fix(ruler): avoid error when manipulator returns no worldCoords #474

merged 2 commits into from
Oct 27, 2023

Conversation

PaulHax
Copy link
Collaborator

@PaulHax PaulHax commented Oct 27, 2023

Seems that Paint is hurting too...

@netlify
Copy link

netlify bot commented Oct 27, 2023

Deploy Preview for volview-dev ready!

Built without sensitive environment variables

Name Link
🔨 Latest commit e670b7d
🔍 Latest deploy log https://app.netlify.com/sites/volview-dev/deploys/653c0cca7207b90008dece8b
😎 Deploy Preview https://deploy-preview-474--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.

@floryst
Copy link
Collaborator

floryst commented Oct 27, 2023

This looks to be an oversight on how we use worldCoords after the vtk.js@v28 upgrade.

Seems that Paint is hurting too...

It sounds like all of the widgets need to be checked for their usage of handleEvent and worldCoords handling. If paint (and others) are having issues, please also add those fixes to this PR.

Copy link
Collaborator

@floryst floryst left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Overall LGTM


if (!worldCoords) {
console.warn('Event cannot be converted to world coordinates');
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Redundant console.warn

Comment on lines +51 to +52
if (!worldCoords)
console.warn('Event cannot be converted to world coordinates');
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think our current manipulators shouldn't trigger this unless there's an error case, so this is a good add. If we start getting them legitimately, then we can remove it.

@floryst
Copy link
Collaborator

floryst commented Oct 27, 2023

LGTM!

@floryst floryst merged commit a695eb7 into Kitware:main Oct 27, 2023
6 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.

2 participants