Tim van der Meij
455e89a295
Merge pull request #20367 from calixteman/bin_format_font_path
...
Use a binary format for the glyph paths
2025-10-16 20:39:29 +02:00
Calixte Denizet
bb2a1126e6
Use a binary format for the glyph paths
...
We used a SVG string which can be pass to the Path2D ctor but it's a bit slower than
building the path step by step.
Having numerical data instead of a string will help the font data serialization.
2025-10-16 15:52:51 +02:00
calixteman
745e42701f
Merge pull request #20361 from nicolo-ribaudo/reset-setTextMatrix
...
Reset `sameLineText` dependencies data on `setTextMatrix`
2025-10-16 09:00:46 +02:00
calixteman
238694891c
Merge pull request #20356 from timvandermeij/updates
...
Update dependencies and translations to the most recent versions
2025-10-16 08:17:41 +02:00
calixteman
79a7396583
Merge pull request #20363 from timvandermeij/python-3.14
...
Use Python 3.14 in the GitHub workflows
2025-10-16 08:16:06 +02:00
Nicolò Ribaudo
d79651e797
Reset sameLineText dependencies data on setTextMatrix
...
The position of the text rendered by `showText` is affected
incrementally by the preceding `showText` operations "on the same line".
For this reason, we keep track of all of them (with their dependencies)
in `sameLineText`.
`sameLineText` can be reset whenever we explicitly position the text
somewhere else. We were previously only doing it for `moveText`, and
this patch updates the code to also do it on `setTextMatrix` (which
resets `this.current.x/y` in `CanvasGraphics` to 0).
The complexity of subsequent `sameLineText` operations dependency
tracking grows quadratically with the number of operations on the same
line, so this patch fixes the performance problem when there are whole
pages of text that only use `setTextMatrix` and not `moveText`.
2025-10-15 17:56:30 +02:00
Tim van der Meij
0528885029
Use Python 3.14 in the GitHub workflows
...
Python 3.14 is the current stable version, released on October 7th. The
dependencies we use also support Python 3.14 now, most importantly
`fonttools` for which the OS-specific builds have been published (see
the `cp314` wheels on https://pypi.org/project/fonttools/#files ).
2025-10-14 21:48:21 +02:00
Tim van der Meij
6eef518883
Update translations to the most recent versions
2025-10-14 20:26:53 +02:00
Tim van der Meij
6bd5c7cdb3
Update dependencies to the most recent versions
2025-10-14 20:26:50 +02:00
Tim van der Meij
3eca60735b
Merge pull request #20358 from calixteman/intersector
...
Very slightly improve intersector performance
2025-10-14 20:25:40 +02:00
Tim van der Meij
30c04550c8
Merge pull request #20357 from mozilla/dependabot/github_actions/github/codeql-action-4
...
Bump github/codeql-action from 3 to 4
2025-10-14 20:21:13 +02:00
Calixte Denizet
aab521327b
Very slightly improve intersector performance
...
It just avoid useless computations.
2025-10-13 14:55:44 +02:00
dependabot[bot]
a3b5fcfa9d
Bump github/codeql-action from 3 to 4
...
Bumps [github/codeql-action](https://github.com/github/codeql-action ) from 3 to 4.
- [Release notes](https://github.com/github/codeql-action/releases )
- [Changelog](https://github.com/github/codeql-action/blob/main/CHANGELOG.md )
- [Commits](https://github.com/github/codeql-action/compare/v3...v4 )
---
updated-dependencies:
- dependency-name: github/codeql-action
dependency-version: '4'
dependency-type: direct:production
update-type: version-update:semver-major
...
Signed-off-by: dependabot[bot] <support@github.com>
2025-10-13 12:41:18 +00:00
calixteman
30fdf16071
Merge pull request #20354 from Aditi-1400/use-enum
...
Use enums instead of string for mesh shading figure type
2025-10-10 18:49:50 +02:00
calixteman
0d8a300777
Merge pull request #20353 from calixteman/improve_intersector
...
[Annotation] Improve the performance of the code for getting glyphs which belongs to annotations bounding boxes (bug 1987914)
2025-10-10 13:31:03 +02:00
Calixte Denizet
c4d436764c
[Annotation] Improve the performance of the code for getting glyphs which belongs to annotations bounding boxes (bug 1987914)
...
Instead of looking at every bbox, we use a grid (64x64) where each cell of the grid is associated with the bboxes
touching it.
In order to get the potential bboxes containing a point, we just have to compute the number of the cell containing
it and in using the associated described above, we can quickly know if the point is contained.
With the pdf in the mentioned bug, it's ~20 times faster.
2025-10-10 13:28:18 +02:00
calixteman
c8d8f9fbb4
Merge pull request #20352 from calixteman/improve_struct_tree_parser
...
Improve performance of the struct tree build (bug 1987914)
2025-10-10 13:27:11 +02:00
Aditi
e8d08c941c
Use enums instead of string for mesh shading figure type
2025-10-10 04:21:03 +05:30
Tim van der Meij
0fedfc9ceb
Merge pull request #20351 from calixteman/avoid_null
...
[Editor] Avoid to have a null button in the DOM when there's no comment manager
2025-10-09 20:57:20 +02:00
calixteman
16630b61bd
Merge pull request #20350 from calixteman/refactor_annotation_layer_a11y
...
[Annotation] Use the annotations rect in order to fix the order in the DOM (bug 1987914)
2025-10-09 20:53:08 +02:00
Calixte Denizet
f5a6dd4164
[Annotation] Use the annotations rect in order to fix the order in the DOM (bug 1987914)
...
It's just a partial fix for bug 1987914 but the time spent to add the annotations in the DOM
is divided by 5.
2025-10-09 17:43:49 +02:00
Calixte Denizet
9797dc0eb4
Improve performance of the struct tree build (bug 1987914)
...
For the pdf in bug 1987914, the overall time spent in `addTopLevelNode` is dropping from ~6s to ~70ms.
2025-10-09 16:08:56 +02:00
Calixte Denizet
16d0077387
[Editor] Avoid to have a null button in the DOM when there's no comment manager
2025-10-09 09:25:43 +02:00
calixteman
8ba18075f2
Merge pull request #20344 from calixteman/bug1992770
...
[Editor] Make sure that annotation positions in the DOM respect the visual order (bug 1992770)
2025-10-08 16:55:01 +02:00
calixteman
152324fdbd
Merge pull request #20347 from calixteman/bug1990826
...
[Editor] Remove the role radio for the editing buttons (bug 1990826)
2025-10-08 15:15:51 +02:00
Calixte Denizet
41dea1e38b
[Editor] Make sure that annotation positions in the DOM respect the visual order (bug 1992770)
2025-10-08 15:11:09 +02:00
Calixte Denizet
2d759a5f4b
[Editor] Remove the role radio for the editing buttons (bug 1990826)
2025-10-08 14:45:28 +02:00
calixteman
d83cbb28a9
Merge pull request #20341 from calixteman/bug1992868
...
[Editor] Make sure all editors are focusable with the keyboard (bug 1992868)
2025-10-07 22:34:10 +02:00
calixteman
262741634f
Merge pull request #20343 from calixteman/bug1992832
...
[Editor] Make sure the editor is focused after the comment has been deleted (bug 1992832)
2025-10-07 22:33:04 +02:00
Calixte Denizet
76e0de6c08
[Editor] Make sure the editor is focused after the comment has been deleted (bug 1992832)
2025-10-07 21:31:09 +02:00
Calixte Denizet
5c28346abc
[Editor] Make sure all editors are focusable with the keyboard (bug 1992868)
2025-10-07 21:15:26 +02:00
Tim van der Meij
1df2ee68b7
Merge pull request #20342 from calixteman/bug1992987
...
[Editor] Make sure that comment stuff is removed when an editor is deleted (bug 1992987)
2025-10-07 20:55:53 +02:00
Calixte Denizet
be987f2fbf
[Editor] Make sure that comment stuff is removed when an editor is deleted (bug 1992987)
2025-10-07 19:09:48 +02:00
Tim van der Meij
f4104326f3
Merge pull request #20338 from calixteman/test_date_tz
...
Add a test for PR #20320
2025-10-05 20:24:02 +02:00
calixteman
7f92a6e2be
Merge pull request #20335 from timvandermeij/setDims
...
[Editor] Remove obsolete arguments for `setDims` calls in the highlight code
2025-10-05 19:43:07 +02:00
calixteman
66763b33a4
Merge pull request #20337 from timvandermeij/updates
...
Update dependencies and translations to the most recent versions
2025-10-05 19:41:43 +02:00
Calixte Denizet
25ce14042f
Add a test for PR #20320
2025-10-05 19:38:37 +02:00
Tim van der Meij
44c498549c
Merge pull request #20339 from timvandermeij/bump
...
Bump the stable version in `pdfjs.config`
2025-10-05 19:07:21 +02:00
Tim van der Meij
66bf335a6c
Bump the stable version in pdfjs.config
2025-10-05 19:04:33 +02:00
Tim van der Meij
b9d9523871
Update translations to the most recent versions
2025-10-05 14:41:45 +02:00
Tim van der Meij
4f50eacdfc
Update dependencies to the most recent versions
2025-10-05 14:41:05 +02:00
Tim van der Meij
68ed5be9ac
[Editor] Remove obsolete arguments for setDims calls in the highlight code
...
The `width` and `height` arguments for `setDims` have been removed in
PR #20285 , but for two calls in the highlight code they remained. This
commit removes them as they are no longer used in the method itself.
Fixes 0722faa9.
2025-10-05 13:52:09 +02:00
calixteman
f56dc86014
Merge pull request #20333 from calixteman/issue20302
...
Fix incremental saving with hybrid references
v5.4.296
2025-10-04 20:31:09 +02:00
Calixte Denizet
19ff148163
Fix incremental saving with hybrid references
...
This patch removes some previous fixes which are now likely fixed by #17636 .
Fixes #20302 .
2025-10-04 18:31:55 +02:00
Tim van der Meij
6c3036836f
Merge pull request #20301 from mozilla/dependabot/npm_and_yarn/tar-fs-3.1.1
...
Bump tar-fs from 3.1.0 to 3.1.1
2025-10-04 14:59:34 +02:00
Tim van der Meij
d27cd6a4a1
Merge pull request #20334 from calixteman/issue20319
...
Only apply word spacing when there is a 0x20 in the text chunk
2025-10-04 14:47:30 +02:00
Calixte Denizet
4d15bfec0d
Only apply word spacing when there is a 0x20 in the text chunk
...
Fixes #20319 .
2025-10-03 22:18:02 +02:00
calixteman
4e7db4f59c
Merge pull request #20332 from calixteman/bug1992385
...
[Editor] Slightly move the resizer in the sidebar comment in order to make it easier to use (bug 1992385)
2025-10-03 18:36:52 +02:00
Calixte Denizet
3ecefa5e0c
[Editor] Slightly move the resizer in the sidebar comment in order to make it easier to use (bug 1992385)
...
And highlight the resizer when hovering it.
2025-10-03 17:07:42 +02:00
calixteman
e1de28c866
Merge pull request #20328 from calixteman/fix_dialog_position
...
[Editor] Make sure the comment dialog always have relative coordinates between 0% and 100%
2025-10-03 09:17:09 +02:00