21481 Commits

Author SHA1 Message Date
Tim van der Meij
40a8fdbca9
Upgrade @types/node to version 25.0.1
This is a major version bump, but the patch at
https://github.com/DefinitelyTyped/DefinitelyTyped/pull/73924
doesn't indicate any breaking changes that should impact us as it mainly
includes support for Node.js 25.
2025-12-22 16:26:37 +01:00
Tim van der Meij
c5db38dd86
Update dependencies to the most recent versions 2025-12-22 16:26:37 +01:00
Tim van der Meij
f7f963ef97
Merge pull request #20517 from calixteman/fix_unit_test_import_map
Fix unit tests in adding a comma in the JSON for imports
2025-12-22 16:25:09 +01:00
Calixte Denizet
8bcbf22ad4
Fix unit tests in adding a comma in the JSON for imports 2025-12-22 16:01:30 +01:00
Tim van der Meij
db6b0cd728
Merge pull request #20502 from timvandermeij/node-25
Run the CI tests in Node.js version 25 too
2025-12-22 15:07:12 +01:00
Tim van der Meij
b92f742a26
Run the CI tests in Node.js version 25 too
Node.js version 25 is the current (non-LTS) release, see
https://github.com/nodejs/release#release-schedule, so we should run the
tests with that version too to help catch any possible issues sooner.
2025-12-21 18:19:29 +01:00
Tim van der Meij
010e52e15d
Merge pull request #20507 from mozilla/dependabot/github_actions/actions/upload-artifact-6
Bump actions/upload-artifact from 5 to 6
2025-12-20 14:18:53 +01:00
calixteman
cdf34b65a4
Merge pull request #20495 from calixteman/new_sidebar
Change the sidebar for a views manager
2025-12-15 18:45:49 +01:00
calixteman
2367196a00
Change the sidebar for a views manager
Update the styles and HTML to reflect the new views manager concept.
For now, nothing about split/merge functionality is implemented or visible.
The new styles for the outline, attachments, and layers will be added later.

The thumbnail view is now accessible with the keyboard.
2025-12-15 17:43:52 +01:00
calixteman
6517dede85
Merge pull request #20508 from calixteman/tree_follow_up
Fix some css in the tree view
2025-12-15 17:15:51 +01:00
Calixte Denizet
f42a120aac
Fix some css in the tree view
It's a follow-up of #20493.
And simplify a bit the js to have only one click listener in the tree instead of
having one on each toggler.
2025-12-15 16:19:10 +01:00
dependabot[bot]
0b60e9c213
Bump actions/upload-artifact from 5 to 6
Bumps [actions/upload-artifact](https://github.com/actions/upload-artifact) from 5 to 6.
- [Release notes](https://github.com/actions/upload-artifact/releases)
- [Commits](https://github.com/actions/upload-artifact/compare/v5...v6)

---
updated-dependencies:
- dependency-name: actions/upload-artifact
  dependency-version: '6'
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-12-15 12:05:28 +00:00
Tim van der Meij
6c746260a9
Merge pull request #20500 from calixteman/fix_menu_rtl
Fix the position of the checkmark when the menu is displayed in RTL
2025-12-13 14:26:33 +01:00
Tim van der Meij
8b4fae0a84
Merge pull request #20482 from Uzair-Ahmed-Shah/fix-issue-20420
Fix #20420: Prevent double decoding of file URL parameter
2025-12-13 14:22:47 +01:00
Calixte Denizet
9de04ef3de
Fix the position of the checkmark when the menu is displayed in RTL 2025-12-12 17:33:20 +01:00
calixteman
ff4529d127
Merge pull request #20492 from nicolo-ribaudo/simplify-markedcontent-text-layer
Simplify positioning of elements inside `markedContent`
2025-12-12 17:29:33 +01:00
calixteman
f824f38e30
Merge pull request #20499 from AtiX/master
Improves text rendering performance by skipping unnecessary pattern calculations
2025-12-12 17:28:22 +01:00
Nicolò Ribaudo
7e0c9395fb
Simplify positioning of elements inside markedContent
By setting `display: contents` on `.markedContent` containers, they stop
affecting the layout of their children. This means that we can always
position text layer `<span>` elements using percentages relative to the
page dimensions, rather than having two separate code paths.

For some reason this breaks the workaround for text selection flickering
in Chrome/Safari, which can be fixed by setting `user-select: text` on
the `.endOfContent` div (only in Chrome/Safari, as it would break
selection in Firefox).
2025-12-12 11:37:45 +01:00
Arthur Silber
9bc4175bde Improves text rendering performance by skipping unnecessary pattern calculations 2025-12-12 07:07:31 +01:00
Tim van der Meij
4af193bbfc
Merge pull request #20491 from nicolo-ribaudo/move-text-scaling-logic-to-css
Move text layer scaling logic to CSS
2025-12-11 20:53:14 +01:00
Tim van der Meij
d946f05841
Merge pull request #20440 from Gaurang-5/master
Fix infinite loop in JBIG2 decoder with >4 referred-to segments
2025-12-09 20:42:51 +01:00
Tim van der Meij
6075f6ee75
Merge pull request #20494 from calixteman/simplify_sidebar_resize
Use only one resize observer in the the sidebar
2025-12-09 20:39:09 +01:00
Tim van der Meij
171fede558
Merge pull request #20493 from calixteman/mv_tree
Move the css for tree object in its own file
2025-12-09 20:37:32 +01:00
Nicolò Ribaudo
eb2b7c2c86
Move text layer scaling logic to CSS
This commit moves all the logic to scale up&down `<span>`s in the text
layer, introduced in #18283, to CSS.

The motivation for this change is that #18283 is still not enough for
all cases. That PR fixed the problem in Chrome&Firefox desktop, which
allow users to set an actual minimum font size in the browser settings.
However, other browsers (e.g. the Chrome-based WebView on Android) have
more complex logic and they scale up small text rather than simply
applying a minimum.

A workaround for that behavior is probably out of scope for PDF.js
itself as it only affects not officially supported platforms. However,
having access to the actual expected font height (through
`--font-height`) allows embedders of PDF.js to implement a workaround by
themselves.
2025-12-09 13:12:20 +01:00
Calixte Denizet
83fa8e9df1
Use only one resize observer in the the sidebar
If the max-width is 50vw, then resizing the viewport will change the sidebar width
and the callbacks need to be called in such a case.
2025-12-08 20:34:00 +01:00
Calixte Denizet
3e59e7535d
Move the css for tree object in its own file 2025-12-08 20:05:43 +01:00
Uzair-Ahmed-Shah
a25448502d Fix #20420: Prevent double decoding of file URL parameter 2025-12-08 22:37:52 +05:30
calixteman
f75812b0af
Merge pull request #20346 from ryzokuken/binary-fontpath
Encode FontPath data into an ArrayBuffer
2025-12-08 13:59:23 +01:00
calixteman
2bb30fb38a
Merge pull request #20490 from calixteman/dot.vscode
Add .vscode to .gitignore
2025-12-08 10:01:44 +01:00
Calixte Denizet
6de24bab92
Add .vscode to .gitignore 2025-12-08 09:58:22 +01:00
calixteman
5b22189c24
Merge pull request #20485 from calixteman/lint_mc_css
Add a new linting task in order to detect unused/unknown css variables in the Firefox build
2025-12-08 09:48:18 +01:00
Calixte Denizet
4bf759404c
Add a new linting task in order to detect unused/unknown css variables in the Firefox build
The goal is to be able to catch the errors before making a release.
And fix some css issues (especially the missing css code for the newly added menu.css)
2025-12-08 09:44:33 +01:00
Tim van der Meij
de5709a7cd
Merge pull request #20454 from xiaobai2017666/russian-char
Extend getGlyphMapForStandardFonts with some Russian entries (issue 20453)
2025-12-07 18:28:41 +01:00
Gaurang Bhatia
ac8d80a8e4 Fix infinite loop in JBIG2 decoder with >4 referred-to segments and add regression test 2025-12-07 06:46:16 +05:30
Ujjwal Sharma
3a85770af1 Encode FontPath data into an ArrayBuffer
Serialize FontPath commands into a binary format
and store it in an ArrayBuffer so that it can
eventually be stored in a SharedArrayBuffer.
2025-12-06 03:00:48 +05:30
calixteman
36de2d976d
Merge pull request #20476 from calixteman/thumbnail_scroll
Use HTMLElement.scrollIntoView when showing a thumbnail
2025-12-05 09:59:11 +01:00
calixteman
8a42b82ecd
Merge pull request #20474 from calixteman/sidebar_resize_callbacks
Add some callbacks when resizing a sidebar
2025-12-05 08:54:24 +01:00
calixteman
30984435fe
Merge pull request #20483 from calixteman/menu
Add a menu class in order to be used in the new UI for the merge feature
2025-12-05 08:53:19 +01:00
calixteman
f29e6a92a1
Merge pull request #20472 from calixteman/bug1998046_2
Inject the text from the text layer in the MathML tags when they're in the struct tree (bug 1998046)
2025-12-05 08:52:16 +01:00
calixteman
79c72f2c9a
Inject the text from the text layer in the MathML tags when they're in the struct tree (bug 1998046)
This way, the screen readers can read the math content properly.
The elements in the text layer will also have aria-hidden="true"
to avoid duplication.
2025-12-04 22:13:26 +01:00
Calixte Denizet
4c6cc0a042
Add a menu class in order to be used in the new UI for the merge feature 2025-12-04 22:12:10 +01:00
calixteman
8435e8f4bb
Merge pull request #20471 from calixteman/bug1998046_1
Aria-hide the text content part of a MathML formula (bug 1998046)
2025-12-04 22:09:34 +01:00
Calixte Denizet
c51ceb750b
Add some callbacks when resizing a sidebar
And use a ResizeObserver in order to avoid to have to compare the width with min/max which can be in
an other unit than px.
2025-12-04 21:40:46 +01:00
calixteman
615965f3d9
Merge pull request #20470 from timvandermeij/updates
Update dependencies and translations to the most recent versions
2025-12-03 16:27:32 +01:00
Calixte Denizet
f9b857463b
Use HTMLElement.scrollIntoView when showing a thumbnail 2025-12-03 15:51:34 +01:00
calixteman
8e2963ccad
Merge pull request #20226 from lab-core/pointer-type-initialization
[Editor] Pointer type initialization only when the user changes the mode
2025-12-02 20:55:39 +01:00
Weismann
365cc69cae Extend getGlyphMapForStandardFonts with some Russian entries (issue 20453) 2025-12-01 10:21:27 +08:00
calixteman
87b3b5212e
Aria-hide the text content part of a MathML formula (bug 1998046)
It'll avoid to have the text content and the MathML content read by
screen readers.
2025-11-30 22:21:37 +01:00
Tim van der Meij
93a8312a37
Update translations to the most recent versions 2025-11-29 18:53:22 +01:00
Tim van der Meij
758856e664
Update dependencies to the most recent versions
Note that the `prettier` update requires a small bit of reformatting in
the Gulpfile so that linting keeps passing.
2025-11-29 18:52:33 +01:00