Closed kuehlc closed 4 years ago
https://docs.cornerstonejs.org/api.html#reset
cornerstone.reset(enabledDomElement)
Resets viewport
properties; would not clear annotations
@dannyrb Thanks! Don't know how I missed that in the docs.
@dannyrb is there a fuc to clear all annotations?
@ryanyr , you could clear toolState for a specific imageId, or "restoreToolstate" to a clean slate:
If you're depending on measurementmodified events, I don't think this would emit them. This would only apply to imageIdSpecific managers, so it's possible you'd have some stack, frameOfReference, etc. Manager still holding on to state.
@ryanyr , you could clear toolState for a specific imageId, or "restoreToolstate" to a clean slate:
If you're depending on measurementmodified events, I don't think this would emit them. This would only apply to imageIdSpecific managers, so it's possible you'd have some stack, frameOfReference, etc. Manager still holding on to state.
Thanks, it works!
Prerequisites
1076 Seems related, but unsure.
Description
I want to be able to reset an image/dicom to original state (before any wwwc changes or tool edits).