ailon / markerjs2

Add image annotation to your web apps.
https://markerjs.com
Other
142 stars 39 forks source link

Request: make isUndoPossible public #117

Closed tarngerine closed 2 years ago

tarngerine commented 2 years ago

Making custom toolbar and would like to be able to query MarkerArea and see if I should display/enable undo/redo buttons

ailon commented 2 years ago

I guess I can expose isUndoPossible / isRedoPossible properties, if that's what you mean.

tarngerine commented 2 years ago

Yea, that would be helpful. My plan would be to use that in combination with a state changed event to check every time the marker area state changes (ie marker changes) and then show/hide the undo/redo buttons. On Aug 24, 2022, 3:45 AM -0500, Alan Mendelevich @.***>, wrote:

I guess I can expose isUndoPossible / isRedoPossible properties, if that's what you mean. — Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you authored the thread.Message ID: @.***>