-
Notifications
You must be signed in to change notification settings - Fork 444
fix(WSIViewport): add event listener for annotation removal #2461
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
base: main
Are you sure you want to change the base?
fix(WSIViewport): add event listener for annotation removal #2461
Conversation
… before calling postrender
|
can you pull from main, ci is failing |
…ized EVENTS import
…into fix/wsiViewport-delete-measurement CI fail
packages/core/src/enums/Events.ts
Outdated
| /** | ||
| * Triggers when a tools annotation has been removed. | ||
| */ | ||
| ANNOTATION_REMOVED = 'CORNERSTONE_TOOLS_ANNOTATION_REMOVED', |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm hesitant to add this in core, since we already have annotation removed in tools. So how about not do it here, and just use CORNERSTONE_TOOLS_ANNOTATION_REMOVED inside the wsi viewport?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done - that it how it was originally.
Merge branch 'main' of https://github.com/cornerstonejs/cornerstone3D into fix/wsiViewport-delete-measurement
Context
ticket: 18378695060
Measurement is deleted but the canvas is not refreshed.
DeleteMeasurementProblem.mp4
Changes & Results
Added listener for delete annotation that calls postRender.
Testing
Use patient SIIM, Ravi
DeleteAfter.mp4
Checklist
PR
semantic-release format and guidelines.
Code
etc.)