-
Notifications
You must be signed in to change notification settings - Fork 324
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
[Bug] #1617
Comments
can you paste the code? or better the example you are trying? |
// This is for debugging purposes const { const { ViewportType } = Enums; // Define a unique id for the volume // ======== Set up page ======== // const size = '500px'; element.style.width = size; content.appendChild(element); let segment1FillAlpha = 0.9; addSliderToToolbar({
}, addSliderToToolbar({
},
},
}, async function addSegmentationsToState(imageIds) { // // Add the segmentations to state // // Add some data to the segmentations segmentationImageIds = await imageLoader.createAndCacheDerivedLabelmapImages(imageIds, { /**
// Add tools to Cornerstone3D // Define tool groups to add the segmentation display tool to // Get Cornerstone imageIds for the source data and fetch metadata into RAM // const smallVolumeImageIds = [imageIds[0], imageIds[1]]; // Define a volume in memory // Add some segmentations based on the source data volume // Instantiate a rendering engine // Create the viewports toolGroup.addViewport(viewportId, renderingEngineId); // renderingEngine.enableElement(viewportInput); // Set the volume to load // Set volumes on the viewports // Add the segmentation representations to the viewport // Render the image run(); |
Describe the Bug
1732611369922.mp4
Selection status error
Steps to Reproduce
Click on the button imageID1 setActiveSegmentIndex (id, 1) into effect activeSegmentOutlineWidthDelta state at this time, Click imageID10 button again setActiveSegmentIndex (id, 10) activeSegmentOutlineWidthDelta is invalid at this time
The current behavior
The current page has a variety of colors, switch setActiveSegmentIndex effective, but after turning the page, the error (this time only the value of 1 is effective, other values are invalid), after turning the page setActiveSegmentIndex set to the current page SegmentIndex set invalid
The expected behavior
SetActiveSegmentIndex is set to 1, at this point 1 outlineWidth equals outlineWidth + activeSegmentOutlineWidthDelta, setActiveSegmentIndex set to 10, At this time of 10 outlineWidth equals outlineWidth + activeSegmentOutlineWidthDelta,
OS
window 11
Node version
19.0.0
Browser
chrome 131.0.6778.86
The text was updated successfully, but these errors were encountered: