1
0
Fork 0
mirror of https://github.com/mozilla/pdf.js.git synced 2025-04-26 01:58:06 +02:00

Prevent the annotationLayer to be recreated when the page is redrawn

This allows interactive annotations to keep their states after a resize
This commit is contained in:
Samuel Chantaraud 2014-04-01 07:45:00 -04:00
parent 3940dc5a41
commit 7a4543e348
2 changed files with 87 additions and 54 deletions

View file

@ -129,6 +129,7 @@ var Annotation = (function AnnotationClosure() {
this.appearance = getDefaultAppearance(dict);
data.hasAppearance = !!this.appearance;
data.id = params.ref.num;
}
Annotation.prototype = {