cornerstonejs / cornerstone3D

Cornerstone is a set of JavaScript libraries that can be used to build web-based medical imaging applications. It provides a framework to build radiology applications such as the OHIF Viewer.
https://cornerstonejs.org
MIT License
592 stars 302 forks source link

[Feature Request] delete Annotation v 1.84 #1635

Open VladimirKondratenko opened 1 day ago

VladimirKondratenko commented 1 day ago

What feature or change would you like to see made?

Good time, sorry, but i have question, i sent on email and open topic and without some answer. How i can delete annotation from one screen? Because nothing is happening in my code. When i using annotation.state.removeAllAnnotations() all worked, but cleared from all screens https://community.ohif.org/t/how-i-can-delete-annotation-from-one-screen/2066

Why should we prioritize this feature?

it's important for our project

sedghi commented 1 day ago

Did you call a render on viewport?

VladimirKondratenko commented 16 hours ago

yes, because annotation.state.removeAll Annotations() it's worked for me, but removed Annotation not worked, i dont have ideas image

VladimirKondratenko commented 14 hours ago

UPD havent ideas. Correctly i understand, then first parametr in the fucntion annotation.state.remove Annotations(nameTool, id my div, ). Example annotation.state.removed Annotations('Length', viewport )? image image