You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Nov 24, 2023. It is now read-only.
I am trying to create a UI where when the user hovers over a rectangular region, I want to update an image in another pane (essentially showing a processed version of the selected part of the image).
Are the "active annotation" and the annotation being hovered over one and the same?
Is there a way to specify a callback that gets called when the activate annotation (or hovered over annotation if that's something different) changes?
I see that the renderContent attribute lets me specify a function that returns a component that gets displayed as an overlay on top of the image, but my impression is that's meant to be more of a pure function with no side effects? Is there some callback where I don't have to return a component but I can have a side effect like this.setState({activateAnnotation: annotation})?
Great component! Thanks!
The text was updated successfully, but these errors were encountered:
Hi there and thank you for an excellent project!
I am trying to create a UI where when the user hovers over a rectangular region, I want to update an image in another pane (essentially showing a processed version of the selected part of the image).
Are the "active annotation" and the annotation being hovered over one and the same?
Is there a way to specify a callback that gets called when the activate annotation (or hovered over annotation if that's something different) changes?
I see that the
renderContent
attribute lets me specify a function that returns a component that gets displayed as an overlay on top of the image, but my impression is that's meant to be more of a pure function with no side effects? Is there some callback where I don't have to return a component but I can have a side effect likethis.setState({activateAnnotation: annotation})
?Great component! Thanks!
The text was updated successfully, but these errors were encountered: