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 Aug 2, 2023. It is now read-only.
One desired behaviour is to be able to remove individual highlights, e.g. when the user double-clicks on an already created highlight. Highlights are 1:1 with annotations which are many:1 with labels. Currently only entire labels can be removed, which causes all the label's highlights to be removed.
When an annotation is created, a "highlight" is made by wrapping the target text in <span style=...></span>, which is called highlightNode in the code. The dblclick event must be captured somehow and propagated to the parent component, but one issue here is that we cannot use Vue's emit because the node is not a Vue component, and Vue does not seem to be able to capture DOM event dblclick inside HighlightBox. I have not been able to get the two to work together.
The text was updated successfully, but these errors were encountered:
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
One desired behaviour is to be able to remove individual highlights, e.g. when the user double-clicks on an already created highlight. Highlights are 1:1 with annotations which are many:1 with labels. Currently only entire labels can be removed, which causes all the label's highlights to be removed.
When an annotation is created, a "highlight" is made by wrapping the target text in
<span style=...></span>
, which is calledhighlightNode
in the code. Thedblclick
event must be captured somehow and propagated to the parent component, but one issue here is that we cannot use Vue'semit
because the node is not a Vue component, and Vue does not seem to be able to capture DOM eventdblclick
inside HighlightBox. I have not been able to get the two to work together.The text was updated successfully, but these errors were encountered: