ailon / markerjs2

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

Delay on render event #99

Closed mharper6008 closed 2 years ago

mharper6008 commented 2 years ago

When working with larger images (> 3MB) I'm getting a noticeable delay between clicking on the Ok/Save check and the firing of the render event. I'd like to be able to detect the click and update the UI to indicate that "something is happening", but but can't quite find a way to do this. Has anyone else experienced and/or found a solution? Thank you.

ailon commented 2 years ago

I think the most straightforward solution would be to trigger render from your own UI/buttons and then you can do whatever you need to do on click there.

See: https://markerjs.com/reference/classes/markerarea.html#startrenderandclose https://markerjs.com/reference/interfaces/istylesettings.html#resultbuttonblockvisible

mharper6008 commented 2 years ago

Ah, resultbuttonblockvisible was what I was missing to do that with a decent UI experience. Not sure how I didn't see that. Thank you!