Yury Delendik
85e95d34ed
Use RequireJS in the viewer, examples and tests.
2015-12-29 09:20:52 -06:00
Tim van der Meij
05b9d3730a
Merge pull request #6785 from yurydelendik/frameworks
...
Adds/modifies examples for node.js and webpack.
2015-12-21 22:44:58 +01:00
Yury Delendik
79c2f69c32
Adds/modifies examples for node.js and webpack.
2015-12-21 13:46:50 -06:00
Tim van der Meij
eb557d200f
Merge pull request #6787 from Snuffleupagus/issue-4914-test-annotations
...
Change test-case `issue4914` to an `annotations` test
2015-12-21 16:17:51 +01:00
Jonas Jenwald
ae4ec2e347
Change test-case issue4914
to an annotations
test
...
This PDF file (see issue 4914) originally regressed in PR 4318, and was subsequently fixed in PR 4915.
I added the PDF file as a (linked) test-case in PR 6481, in an effort to prevent regressions. Since we at that time didn't have the necessary framework in place, in order to correctly test annotations, this almost regressed *again* in PR https://github.com/mozilla/pdf.js/pull/6672#issuecomment-158689392 .
In that PDF file, some of the annotations are both printable and hidden, and should definitely *not* be visible on normal display. Hence this patch, which adds the `annotations` flag to the manifest in order to ensure that those annotations won't be rendered when `intent === 'display'`.
2015-12-21 15:41:18 +01:00
Yury Delendik
9f23e115e0
Merge pull request #6780 from timvandermeij/annotation-regression-tests
...
Implement annotation layer regression testing
2015-12-21 07:15:23 -06:00
Tim van der Meij
b7217a2274
Implement annotation layer regression testing
2015-12-20 13:45:56 +01:00
Jonas Jenwald
cfc0cc80ee
Merge pull request #6770 from timvandermeij/annotation-display-classes
...
Refactor annotation display layer code to use classes
2015-12-20 13:03:14 +01:00
Tim van der Meij
5b66ad626d
Refactor annotation display layer code to use classes
2015-12-19 19:31:37 +01:00
Tim van der Meij
9228e1ffcf
Merge pull request #6772 from Snuffleupagus/remove-s-in-AnnotationsLayerBuilder
...
Remove a superfluous "s" in `AnnotationsLayerBuilder` from files in web/
2015-12-18 21:06:46 +01:00
Yury Delendik
e45e7d0f3c
Merge pull request #6778 from tonyjin/fix-isExternalLinkTargetSet
...
Fixing externalLinkTarget
2015-12-18 13:33:15 -06:00
Tony Jin
f9e2091c5a
Fixing externalLinkTarget. isExternalLinkTargetSet was set to
...
wrong sharedUtil method.
2015-12-18 11:27:21 -08:00
Jonas Jenwald
3079dd937f
Remove a superfluous "s" in AnnotationsLayerBuilder
from files in web/
...
This patch makes the naming consistent with the `TextLayerBuilder`, and also the new `AnnotationLayer`, and should thus help reduce possible confusion when working with the code.
Please note that the files were renamed using `git mv`, in order to preserve blame.
2015-12-18 19:55:54 +01:00
Yury Delendik
42beb0c27b
Merge pull request #6767 from tonyjin/strip-link-referrer
...
Strip referrer from link annotation.
2015-12-18 12:27:15 -06:00
Yury Delendik
65de3d6268
Merge pull request #6765 from timvandermeij/unused
...
Remove unused variables
2015-12-18 10:43:40 -06:00
Yury Delendik
49437c879d
Republish the extension.
2015-12-18 10:33:12 -06:00
Yury Delendik
479d96eb24
Testing ability to auto-upgrade the addons.
2015-12-18 10:05:20 -06:00
Yury Delendik
e7311cdc6e
Fixes versions in update.rdf.
2015-12-18 09:44:18 -06:00
Yury Delendik
d98105fdbd
Fixes update extension github link.
2015-12-18 09:32:46 -06:00
Yury Delendik
b533f8a854
Merge pull request #6773 from yurydelendik/xpisign
...
Changing Firefox Addon ID
2015-12-18 09:13:18 -06:00
Yury Delendik
2fb9baf6f1
Changing Firefox Addon ID
...
.. to allow AMO publishing to the unlisted extensions for automatic signing.
2015-12-18 09:06:23 -06:00
Tony Jin
11f3deac56
Allow link rel to be customized. Defaults to 'noreferrer'
2015-12-17 10:36:53 -08:00
Brendan Dahl
a8d760d97f
Merge pull request #6766 from brendandahl/1.3
...
Bump versions to 1.3.
2015-12-16 15:14:00 -08:00
Tim van der Meij
df81b832bb
Remove unused variables
2015-12-16 23:52:16 +01:00
Brendan Dahl
0521c1a3be
Bump versions to 1.3.
2015-12-16 14:42:25 -08:00
Jonas Jenwald
f01911fcd9
Merge pull request #6764 from yurydelendik/rm-umd
...
Collapses UMD headers in bundled files.
2015-12-16 22:46:25 +01:00
Yury Delendik
2f704f5957
Collapses UMD headers in bundled files.
2015-12-16 07:42:54 -06:00
Jonas Jenwald
0a21c8c365
Merge pull request #6762 from Snuffleupagus/fix-Uint32ArrayView-exports
...
Only export `Uint32ArrayView` when it's actually defined, to prevent breaking e.g. the Firefox addon/built-in version
2015-12-16 11:24:41 +01:00
Jonas Jenwald
d4c026980e
Only export Uint32ArrayView
when it's actually defined, to prevent breaking e.g. the Firefox addon/built-in version
...
*This is a follow-up to PR 6683.*
2015-12-16 11:15:36 +01:00
Brendan Dahl
f1c64b6a2a
Merge pull request #6683 from yurydelendik/module-core
...
Adds UMD headers to core, display and shared files.
2015-12-15 17:10:21 -08:00
Tim van der Meij
a1aec826ea
Merge pull request #6758 from KamiHQ/fix-text-widget
...
Fix incorrect position of text widget
2015-12-16 00:29:39 +01:00
Xiliang Chen
8bf17f5df8
Fix incorrect position of text widget
2015-12-16 11:21:01 +13:00
Yury Delendik
b084dc09ee
Allows requirejs and node load fake worker files.
2015-12-15 13:24:39 -06:00
Yury Delendik
450edc95cc
UMD validation and generation tools.
2015-12-15 13:24:39 -06:00
Yury Delendik
6b60c8f4db
Adds UMD headers to core, display and shared files.
2015-12-15 13:24:39 -06:00
Tim van der Meij
1b5940edd2
Merge pull request #6714 from timvandermeij/annotation-web-to-src
...
[api-minor] Move annotation DOM manipulation logic to src/display/annotation_layer.js
2015-12-15 19:06:48 +01:00
Yury Delendik
7f34d40faf
Imports L10n.
2015-12-15 10:07:25 -06:00
Tim van der Meij
edce8daeac
Implement annotation layer rendering and updating in src/display/annotation_layer.js
2015-12-15 17:00:01 +01:00
Tim van der Meij
b1937e7670
Remove superfluous comments in the annotation layer code
2015-12-15 16:27:35 +01:00
Tim van der Meij
a6ba210c19
Merge pull request #6757 from timvandermeij/annotation-types
...
Implement constants for all annotation types
2015-12-15 15:52:55 +01:00
Tim van der Meij
8d36aad30a
Implement constants for all annotation types
...
Now we have a full list of all possible annotation types and the
numbering corresponds to the order in the specification. Not only is
this more consistent and complete, it also prevents having to add these
constants when a new annotation type is implemented.
Additionally fix an issue where a regular Widget annotation would not
have `data.annotationType` set. It was only set for a
TextWidgetAnnotation, but instead move it to the base Widget annotation
class to add it for all Widget annotations (since TextWidgetAnnotation
inherits from WidgetAnnotation it will have it too).
2015-12-15 15:23:55 +01:00
Tim van der Meij
f93a220736
Merge pull request #6684 from dsprenkels/issue-6296-radial-shading-size
...
shading-pattern: While drawing patterns, use transform to baseTransform first
2015-12-14 20:39:08 +01:00
Yury Delendik
f7ec866c39
Merge pull request #6747 from Snuffleupagus/issue-6742
...
Remove the superfluous `PDFJS.disableFontFace = false;` statement at the top of font_loader.js (issue 6742)
2015-12-12 12:53:56 -05:00
Yury Delendik
4485c79940
Merge pull request #6745 from Snuffleupagus/bug-1232071
...
Reset the `styleElement` when clearing out loaded fonts (bug 1232017)
2015-12-12 12:50:21 -05:00
Jonas Jenwald
12068490ed
Remove the superfluous PDFJS.disableFontFace = false;
statement at the top of font_loader.js (issue 6742)
...
Fixes 6742.
2015-12-12 12:39:56 +01:00
Jonas Jenwald
f0e4795302
Reset the styleElement
when clearing out loaded fonts (bug 1232017)
...
*This is a follow-up to PR 6571.*
Fixes https://bugzilla.mozilla.org/show_bug.cgi?id=1232071 .
2015-12-12 11:33:43 +01:00
Tim van der Meij
4d6f3c85e0
Merge pull request #6743 from Snuffleupagus/travis-newer-node-version
...
Update the Node.js version used by Travis, to prevent deprecation warnings in the output
2015-12-10 21:45:37 +01:00
Tim van der Meij
c6e9be8b24
Merge pull request #6733 from Snuffleupagus/travis-lint-with-make
...
Let Travis lint using `node make lint`, instead of a hard-coded command
2015-12-10 21:40:10 +01:00
Brendan Dahl
91b27aae46
Merge pull request #6651 from yurydelendik/fix-chars-scaling
...
Fix chars scaling for standard fonts. (redo of #4908 )
2015-12-10 14:18:48 -05:00
Jonas Jenwald
81e86c4e3d
Update the Node.js version used by Travis, to prevent deprecation warnings in the output
2015-12-10 13:15:32 +01:00