Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Implement support for Popup annotations
We already had most code ready for supporting Popup annotations, but it was only available for Text annotations. This patch implements the separation between Text (or any other annotation type for that matter) and Popup annotations. According to the specification they are two very separate entities and should thus be implemented that way. The main reason for this change is because Popup annotations are used with many other annotation types too. In order to support those, we first need to have proper support for Popup annotations. With this patch in place, implementing other annotation types will be much easier. A consequence of this patch is that the Text annotation code is greatly simplified. Essentially, a Text annotation is only a container with an image. The Popup annotation takes care of the rest. Finally, this change allows for a small bit of refactoring. We no longer need a separate wrapper as the Popup annotation has its own container, which acts as the wrapper. This means we can also remove the strange sanity check that belonged with it.
- Loading branch information