-
Notifications
You must be signed in to change notification settings - Fork 10.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[api-minor] Get rid of CSS transform on each annotation in the annotation layer #15036
Conversation
I'm assuming, based on a very brief look at the code, that we no longer can easily avoid having both a |
333a597
to
d72e819
Compare
Also, with the last round of changes it seems that pdf.js/src/display/editor/annotation_editor_layer.js Lines 426 to 432 in 89cebcb
|
/botio test |
From: Bot.io (Linux m4)ReceivedCommand cmd_test from @Snuffleupagus received. Current queue size: 0 Live output at: http://54.241.84.105:8877/11c6759447a1ac9/output.txt |
From: Bot.io (Windows)ReceivedCommand cmd_test from @Snuffleupagus received. Current queue size: 0 Live output at: http://54.193.163.58:8877/3691ae9085a7771/output.txt |
From: Bot.io (Linux m4)FailedFull output at http://54.241.84.105:8877/11c6759447a1ac9/output.txt Total script time: 26.09 mins
Image differences available at: http://54.241.84.105:8877/11c6759447a1ac9/reftest-analyzer.html#web=eq.log |
From: Bot.io (Windows)FailedFull output at http://54.193.163.58:8877/3691ae9085a7771/output.txt Total script time: 28.35 mins
Image differences available at: http://54.193.163.58:8877/3691ae9085a7771/reftest-analyzer.html#web=eq.log |
/botio browsertest |
From: Bot.io (Linux m4)ReceivedCommand cmd_browsertest from @calixteman received. Current queue size: 0 Live output at: http://54.241.84.105:8877/277aa41f8d821d0/output.txt |
From: Bot.io (Windows)ReceivedCommand cmd_browsertest from @calixteman received. Current queue size: 0 Live output at: http://54.193.163.58:8877/88cb25d1f3c8a30/output.txt |
From: Bot.io (Windows)FailedFull output at http://54.193.163.58:8877/88cb25d1f3c8a30/output.txt Total script time: 20.99 mins
Image differences available at: http://54.193.163.58:8877/88cb25d1f3c8a30/reftest-analyzer.html#web=eq.log |
From: Bot.io (Linux m4)FailedFull output at http://54.241.84.105:8877/277aa41f8d821d0/output.txt Total script time: 21.90 mins
Image differences available at: http://54.241.84.105:8877/277aa41f8d821d0/reftest-analyzer.html#web=eq.log |
/botio browsertest |
From: Bot.io (Linux m4)ReceivedCommand cmd_browsertest from @calixteman received. Current queue size: 0 Live output at: http://54.241.84.105:8877/1fe7461cdabf122/output.txt |
From: Bot.io (Windows)ReceivedCommand cmd_browsertest from @calixteman received. Current queue size: 0 Live output at: http://54.193.163.58:8877/24c633e5dd31ec1/output.txt |
From: Bot.io (Windows)FailedFull output at http://54.193.163.58:8877/24c633e5dd31ec1/output.txt Total script time: 20.83 mins
Image differences available at: http://54.193.163.58:8877/24c633e5dd31ec1/reftest-analyzer.html#web=eq.log |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fixes #14935 I presume? Looks good to me with these comments addressed.
- each annotation has its coordinates/dimensions expressed in percentage, hence it's correctly positioned whatever the scale factor is; - the font sizes are expressed in percentage too and the main font size is scaled thanks a css var (--scale-factor); - the rotation is now applied on the div annotationLayer; - this patch improve the rendering of some strings where the glyph spacing was not correct (it's a Firefox bug); - it helps to simplify the code and it should slightly improve the update of page (on zoom or rotation).
/botio test |
From: Bot.io (Linux m4)ReceivedCommand cmd_test from @calixteman received. Current queue size: 0 Live output at: http://54.241.84.105:8877/ddac5c9b7097f20/output.txt |
From: Bot.io (Windows)ReceivedCommand cmd_test from @calixteman received. Current queue size: 0 Live output at: http://54.193.163.58:8877/b192910d4535352/output.txt |
From: Bot.io (Linux m4)FailedFull output at http://54.241.84.105:8877/ddac5c9b7097f20/output.txt Total script time: 25.53 mins
Image differences available at: http://54.241.84.105:8877/ddac5c9b7097f20/reftest-analyzer.html#web=eq.log |
From: Bot.io (Windows)FailedFull output at http://54.193.163.58:8877/b192910d4535352/output.txt Total script time: 28.25 mins
Image differences available at: http://54.193.163.58:8877/b192910d4535352/reftest-analyzer.html#web=eq.log |
/botio makeref |
From: Bot.io (Linux m4)ReceivedCommand cmd_makeref from @calixteman received. Current queue size: 0 Live output at: http://54.241.84.105:8877/6c8f21f60953ec8/output.txt |
From: Bot.io (Windows)ReceivedCommand cmd_makeref from @calixteman received. Current queue size: 0 Live output at: http://54.193.163.58:8877/51819cac3333fe7/output.txt |
From: Bot.io (Windows)SuccessFull output at http://54.193.163.58:8877/51819cac3333fe7/output.txt Total script time: 21.91 mins
|
From: Bot.io (Linux m4)SuccessFull output at http://54.241.84.105:8877/6c8f21f60953ec8/output.txt Total script time: 23.49 mins
|
Avoid having overflowing sections (#15036 follow-up)
hence it's correctly positioned whatever the scale factor is;
is scaled thanks a css var (--scale-factor);
was not correct (it's a Firefox bug);
page (on zoom or rotation).