[Pkg-javascript-commits] [pdf.js] 01/210: Force default icon size for Text annotations without appearance stream
David Prévot
taffit at moszumanska.debian.org
Thu Jun 5 14:20:55 UTC 2014
This is an automated email from the git hooks/post-receive script.
taffit pushed a commit to branch upstream
in repository pdf.js.
commit 8d365b23ca592007c9d08c36f21080d9fc8308b7
Author: Tim van der Meij <timvandermeij at gmail.com>
Date: Fri Apr 18 21:11:56 2014 +0200
Force default icon size for Text annotations without appearance stream
---
src/shared/annotation.js | 3 +++
1 file changed, 3 insertions(+)
diff --git a/src/shared/annotation.js b/src/shared/annotation.js
index ff46ab9..0596bfd 100644
--- a/src/shared/annotation.js
+++ b/src/shared/annotation.js
@@ -21,6 +21,7 @@
'use strict';
+var DEFAULT_ICON_SIZE = 22; // px
var HIGHLIGHT_OFFSET = 4; // px
var SUPPORTED_TYPES = ['Link', 'Text', 'Widget'];
@@ -624,6 +625,8 @@ var TextAnnotation = (function TextAnnotationClosure() {
if (data.hasAppearance) {
data.name = 'NoIcon';
} else {
+ data.rect[1] = data.rect[3] - DEFAULT_ICON_SIZE;
+ data.rect[2] = data.rect[0] + DEFAULT_ICON_SIZE;
data.name = dict.has('Name') ? dict.get('Name').name : 'Note';
}
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-javascript/pdf.js.git
More information about the Pkg-javascript-commits
mailing list