Jonas Jenwald
4277205d78
Enable some Stylelint color-related rules to slightly reduce file sizes
...
- Use a consistent format for all alpha-values (this rule didn't require any code changes); see https://stylelint.io/user-guide/rules/alpha-value-notation
- Use modern and slightly shorter color notation, since [according to MDN](https://developer.mozilla.org/en-US/docs/Web/CSS/color_value/rgb#browser_compatibility ) that should be supported "everywhere" nowadays; see https://stylelint.io/user-guide/rules/color-function-notation/
- Use "short" hexadecimal colors whenever possible; see https://stylelint.io/user-guide/rules/color-hex-length/
- Help avoid adding broken hexadecimal colors (this rule didn't require any code changes); see https://stylelint.io/user-guide/rules/color-no-invalid-hex/
2023-10-05 17:51:21 +02:00
calixteman
a60f90ae94
Merge pull request #17075 from calixteman/issue17069_followup
...
Add a HTML containter for locked FreeText annotations in order to be able to display a popup (follow-up of #17070 )
2023-10-05 15:17:58 +02:00
Calixte Denizet
e737638a40
Add a HTML containter for locked FreeText annotations in order to be able to display a popup (follow-up iof #17070 )
2023-10-05 14:01:34 +02:00
calixteman
c4c24c6d18
Merge pull request #17070 from calixteman/17069
...
Update the noHTML flag to take into account the hasOwnCanvas one (fixes #17069 )
2023-10-05 11:10:40 +02:00
calixteman
66c3b239ae
Merge pull request #17072 from calixteman/resizer_role
...
[Editor] Add role=spinbutton to resizers when they're used with the keyboard
2023-10-04 23:13:44 +02:00
Calixte Denizet
335cea22b3
[Editor] Add role=spinbutton to resizers when they're used with the keyboard
2023-10-04 21:30:06 +02:00
Calixte Denizet
40b1d92044
Update the noHTML flag to take into account the hasOwnCanvas one ( fixes #17069 )
...
When an element has the hasOwnCanvas flag we must have an HTML container to attach
the canvas where the element will be rendered.
So the noHTML flag must take this information into account:
- in some cases the noHTML flag is resetted depending on the hasOwnCanvas value;
- in some others, the hasOwnCanvas flag is set depending on the value of noHTML.
2023-10-04 18:06:21 +02:00
calixteman
40d6b0e1bf
Merge pull request #17062 from calixteman/resize_keyboard
...
[Editor] Support resizing editors with the keyboard (bug 1854340)
2023-10-04 13:55:04 +02:00
Calixte Denizet
05ca3fd99b
[Editor] Support resizing editors with the keyboard (bug 1854340)
2023-10-04 12:57:37 +02:00
Jonas Jenwald
c377f2d488
Merge pull request #17060 from Snuffleupagus/issue-17056
...
Add support for "GoToE" actions with destinations (issue 17056)
2023-10-04 11:36:42 +02:00
Jonas Jenwald
bf9c33e60f
Add support for "GoToE" actions with destinations (issue 17056)
...
This shouldn't be very common in practice, since "GoToE" actions themselves seem quite uncommon; see PR 15537.
2023-10-04 11:14:23 +02:00
Jonas Jenwald
da4fdc76a3
Merge pull request #17063 from Snuffleupagus/version-4
...
Bump library version to `4.0`
2023-10-04 11:10:27 +02:00
calixteman
0e6d0ca7b6
Merge pull request #17067 from calixteman/issue17065
...
Compute correctly the bounding box of a transformed rectangle (fixes #17065 )
2023-10-03 23:58:11 +02:00
Calixte Denizet
1be9bbd2e1
Compute correctly the bounding box of a transformed rectangle ( fixes #17065 )
2023-10-03 23:50:59 +02:00
Jonas Jenwald
4245d87de5
Merge pull request #17066 from Snuffleupagus/issue-17064
...
Ensure that readonly TextWidget-annotations are rendered when forms are disabled (issue 17064)
2023-10-03 23:13:41 +02:00
Jonas Jenwald
f113320bd5
Ensure that readonly TextWidget-annotations are rendered when forms are disabled (issue 17064)
...
To reduced the risk of regressing something else, given that the issue only applies to a (for the default viewer) non-default configuration, this patch is purposely limited to only TextWidget-annotations in the display layer.
2023-10-03 21:26:08 +02:00
Jonas Jenwald
9cca13bb03
Bump library version to 4.0
2023-10-03 15:57:54 +02:00
Jonas Jenwald
426209c6e6
Merge pull request #16699 from Snuffleupagus/rm-svg
...
[api-major] Remove the SVG back-end (PR 15173 follow-up)
2023-10-03 15:13:14 +02:00
Jonas Jenwald
0edc490e1b
Merge pull request #16774 from Snuffleupagus/rm-deprecated-options
...
[api-major] Remove various deprecated functionality and options
2023-10-03 15:12:39 +02:00
calixteman
0cc8c6671c
Merge pull request #17059 from calixteman/fix_copy_paste_integration_test
...
Remove timeouts from the copy_paste integration test
2023-10-03 13:27:13 +02:00
Calixte Denizet
bb59f445a9
Remove timeouts from the copy_paste integration test
2023-10-03 11:55:18 +02:00
calixteman
0986e40842
Merge pull request #17058 from calixteman/alt_text_canvas
...
[Editor] Use the alt text to descibe the canvas used to display the image
2023-10-03 11:01:11 +02:00
Calixte Denizet
e3fbe2908a
[Editor] Use the alt text to descibe the canvas used to display the image
2023-10-02 23:28:11 +02:00
calixteman
59d94b549f
Merge pull request #17032 from calixteman/alt_text_rm_button
...
[Editor] Don't show the alt-text button when the alt-text dialog is visible
2023-10-02 22:19:18 +02:00
Calixte Denizet
eebd251552
[Editor] Don't show the alt-text button when the alt-text dialog is visible
...
This way, the button doens't cover the image.
2023-10-02 20:34:30 +02:00
calixteman
f5367f01ca
Merge pull request #17051 from calixteman/test_stamp_svg
...
Fix new intermittent failures with ink and stamp tests
2023-10-02 18:10:00 +02:00
Calixte Denizet
077d239b96
Fix new intermittent failures with ink and stamp tests
...
It happens only on windows with chrome.
For any reason, click event isn't correctly triggered and it seems work correctly
with pointerup.
And it seems that when drawing a svg on an OffscreenCanvas we need to wait
a little in order to be able to transfer it: it's why this patch adds
a check on the canvas content.
2023-10-02 15:04:44 +02:00
Jonas Jenwald
3ced0dec1b
[api-major] Remove the SVG back-end (PR 15173 follow-up)
...
This has been deprecated since version `2.15.349`, which is a year ago.
Removing this will also simplify some upcoming changes, specifically outputting of JavaScript modules in the builds.
2023-10-01 23:14:29 +02:00
Tim van der Meij
be53c7d6f5
Merge pull request #17053 from calixteman/issue17044
...
Add alt-text svg images to the dist (issue #17044 )
2023-10-01 18:11:24 +02:00
Calixte Denizet
0d9aef1a5e
Add alt-text svg images to the dist (issue #17044 )
2023-10-01 16:47:34 +02:00
Tim van der Meij
71bffcc7a9
Merge pull request #17052 from Snuffleupagus/web-pdfjsLib-export
...
Use a standard `export` statement in the `web/pdfjs.js` file
2023-10-01 12:09:36 +02:00
Jonas Jenwald
9624505f0f
Use a standard export
statement in the web/pdfjs.js
file
...
This removes the only remaining old and non-standard handling of exports in the `web/`-folder, since some initial attempts at outputting JavaScript modules in the builds have identified this file as a potential problem.
While this uses a hard-coded list, for overall simplicity, I don't believe that that's a big problem since:
- Generating this file automatically would require a bunch more parsing *every single time* that the library is built.
- The official API-surface doesn't change often enough for this to really impede development in any significant way.
- The added unit-test helps ensure that this list cannot accidentally become outdated.
2023-09-30 12:10:02 +02:00
calixteman
3ca63c68ea
Merge pull request #17050 from calixteman/editor_delete_invisible
...
[Editor] Make a deleted (when it was invisible) editor undoable
2023-09-29 18:06:55 +02:00
calixteman
7d7a7a46a0
Merge pull request #17049 from calixteman/fix_stamp_tests
...
Remove the timeouts from the stampEditor integration tests
2023-09-29 17:02:10 +02:00
calixteman
12ca22ba44
Merge pull request #17048 from calixteman/fix_ink_tests
...
Remove the timeouts from the inkEditor integration tests
2023-09-29 16:30:07 +02:00
Calixte Denizet
b65b079ceb
[Editor] Make a deleted (when it was invisible) editor undoable
...
When the editor is invisible (because on a non-rendered page) its parent is null.
But when we undo its deletion, we need to have a parent to attach it.
2023-09-29 16:19:11 +02:00
Calixte Denizet
b8c118db22
Remove the timeouts from the stampEditor integration tests
2023-09-29 15:57:16 +02:00
Calixte Denizet
627249f889
Remove the timeouts from the inkEditor integration tests
2023-09-29 15:01:52 +02:00
calixteman
46940a5a52
Merge pull request #17036 from calixteman/fix_test_freetext
...
[Editor] Remove almost all the waitForTimeout from the freetext integration tests
2023-09-29 11:41:53 +02:00
Calixte Denizet
55e5af2d01
[Editor] Remove almost all the waitForTimeout from the freetext integration tests
2023-09-29 11:14:21 +02:00
Jonas Jenwald
52862893f5
Merge pull request #17026 from Snuffleupagus/layerProperties-Object
...
Convert `layerProperties` to an Object (PR 15811 follow-up)
2023-09-28 18:44:32 +02:00
Jonas Jenwald
46d8d36721
Merge pull request #17027 from Snuffleupagus/update-Puppeteer
...
Update Puppeteer to the latest version
2023-09-28 18:43:52 +02:00
calixteman
b6d75e736a
Merge pull request #17038 from ayushmourya/master
...
Make downloadManager optional in JSDoc types
2023-09-28 17:23:33 +02:00
Jonas Jenwald
790b480bbc
Update Puppeteer to the latest version
...
This also required updating the `postinstall`-step to account for recent changes in Puppeteer.
2023-09-28 17:21:07 +02:00
Jonas Jenwald
03ce3b2d54
Convert layerProperties
to an Object (PR 15811 follow-up)
...
Given that this is accessed multiple times per page in the viewer, that leads to a number of (strictly speaking unneeded) function calls and allocated Objects for each invocation. By converting `layerProperties` to a, lazily initialized, Object we can avoid this.
2023-09-28 17:20:23 +02:00
Jonas Jenwald
3072efa064
Merge pull request #17035 from Snuffleupagus/postcss-discard-comments
...
Remove comments from the *built* CSS files
2023-09-28 15:54:06 +02:00
calixteman
d7d900c65d
Merge pull request #17045 from calixteman/resize_disable_mouse
...
[Editor] Disable pointer events in the parent layer while an editor is resized
2023-09-28 15:51:53 +02:00
Calixte Denizet
4f6fa35a28
[Editor] Disable pointer events in the parent layer while an editor is resized
2023-09-28 15:09:50 +02:00
calixteman
f78a5ff79e
Merge pull request #17043 from calixteman/bug1855641
...
StructParents entry isn't required on pages with no tagged contents (bug 1855641)
2023-09-28 14:43:18 +02:00
Calixte Denizet
f2196f7803
StructParents entry isn't required on pages with no tagged contents (bug 1855641)
2023-09-28 14:23:10 +02:00