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

Bump deps #54

Merged
merged 3 commits into from
Apr 7, 2022
Merged

Bump deps #54

merged 3 commits into from
Apr 7, 2022

Conversation

bnmajor
Copy link
Collaborator

@bnmajor bnmajor commented Apr 6, 2022

This bumps the itk-vtk-viewer CDN to 11.12.4 and the itk-viewer-material-ui to 0.2.0 which resolves the array buffer error that I was seeing on data toggle. Tested against the cached spleen notebook, the unet notebook, and the example notebook that I had previously created with the reproducible errors.

This also fixes a bug with the color range that always set the range from the previous dataset without accounting for the new data range. The range is now computed from the max of both range min values and the min of both range max values.

The plugin will be ready to be bumped to v1.0.0 after these changes are merged in.

When toggling to the next image data check the previous color range against the
new range so that the values are not outside of the current data range.
@bnmajor bnmajor requested a review from thewtex April 6, 2022 15:43
@thewtex
Copy link
Member

thewtex commented Apr 7, 2022

Wooooohoooo!! Mint that 1.0.0!

CC @aylward

@thewtex thewtex merged commit 263d685 into KitwareMedical:main Apr 7, 2022
@@ -188,4 +180,15 @@ export async function updateStateSettings(name, component, send) {
nodes: state.actorContext.piecewiseFunctions.nodes
}
})
var rangeMin = Math.max(colorRange[0], state.actorContext.colorRange[0]);
var rangeMax = Math.min(colorRange[1], state.actorContext.colorRange[1]);
console.log('range: ', rangeMin, rangeMax);
Copy link
Member

Choose a reason for hiding this comment

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

@bnmajor debug code

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