|
|
@@ -260,8 +260,13 @@ class Annotator.Guest extends Annotator |
|
|
method: "showEditor"
|
|
|
params: annotation.$$tag
|
|
|
|
|
|
onAnchorMouseover: ->
|
|
|
onAnchorMouseout: ->
|
|
|
hiliteInViewer: (annotations, state) =>
|
|
|
@panel?.notify
|
|
|
method: "setHighlightState"
|
|
|
params:
|
|
|
tags: (a.$$tag for a in annotations)
|
|
|
state: state
|
|
|
|
|
|
onAnchorMousedown: ->
|
|
|
|
|
|
checkForStartSelection: (event) =>
|
|
|
@@ -304,6 +309,22 @@ class Annotator.Guest extends Annotator |
|
|
# Tell sidebar to show the viewer for these annotations
|
|
|
this.showViewer annotations
|
|
|
|
|
|
# When hovering on a highlight in highlighting mode,
|
|
|
# tell the sidebar to hilite the relevant annotations
|
|
|
onAnchorMouseover: (event) ->
|
|
|
if @visibleHighlights or @tool is 'highlight'
|
|
|
event.stopPropagation()
|
|
|
annotations = event.data.getAnnotations(event)
|
|
|
this.hiliteInViewer annotations, true
|
|
|
|
|
|
# When leaving a highlight (with the cursor) in highlighting mode,
|
|
|
# tell the sidebar to stop hiliting the relevant annotations
|
|
|
onAnchorMouseout: (event) ->
|
|
|
if @visibleHighlights or @tool is 'highlight'
|
|
|
event.stopPropagation()
|
|
|
annotations = event.data.getAnnotations(event)
|
|
|
this.hiliteInViewer annotations, false
|
|
|
|
|
|
# When clicking on a highlight in highlighting mode,
|
|
|
# tell the sidebar to bring up the viewer for the relevant annotations
|
|
|
onAnchorClick: (event) =>
|
|
|
|
0 comments on commit
944bfd3