mozilla/pdf.js — pull request #4318 by dferer (2014-02-22 00:17:52+00:00)
Title: Improved annotations' display/behavior.

Added an "InteractiveAnnotation" class to homogenize appearance (highlighting) and user interactions (for now, used for text and link annotations).

Text annotations:
The appearance (AP) has priority over the icon (Name).
The popup extends horizontally (up to a limit) as well as vertically.
Reduced the title's font size.
The annotation's color (C) is used to color the popup's background.
On top of the mouseover show/hide behavior, a click on the icon will lock the annotation open (for mobile purposes). It can be closed with another click on either the icon or the popup.