Skip to content
This repository has been archived by the owner on Apr 2, 2023. It is now read-only.

How to override editAnnotation from from image.annotator inside plugin #197

Open
headkit opened this issue Apr 24, 2018 · 0 comments
Open

Comments

@headkit
Copy link

headkit commented Apr 24, 2018

hi!
I am new to this framework. I like it a lot - thanx for sharing it!

I want to make annotation rectangles clickable.
I first tried to add a mouseup event to the canvas and if the popup is visible then trigger the click event from the edit button. unfortunately this is not working because the rectangle is removed due to the

this._viewer.removeAnnotation(annotation);

in editAnnotation() from image.annotator

I then thought about overriding editAnnotation, adding a sceond parameter 'shouldRemoveRect' or something, but I don't know how to reach _viewver since it is private.

it may be that I did not understand the construction of the framework correctly. Could you please give me a hint how to solve this?
thnx!

@headkit headkit changed the title How to override in plugin How to override editAnnotation from from image.annotator inside plugin Apr 24, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant