Skip to content
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

Fix non-standard quadpoints orders for annotations #12696

Merged
merged 5 commits into from
Dec 6, 2020

Conversation

timvandermeij
Copy link
Contributor

@timvandermeij timvandermeij commented Dec 5, 2020

The commit messages contain more information about the individual changes.

Fixes #12675.
Fixes #6811.

…onElement` class

Using an object for the various constructor options makes extensions
easier and makes the code self-documenting.
…ement` class

Doing so avoids some code duplication.
… class

Not only does this reduce boilerplate since the documentation is the
same for all annotation classes, it also wasn't correct for the
annotation types that support quadpoints since they return an array of
section elements instead of a single one.
Each quadrilateral needs to have its own link element, so the first
quadrilateral can use the already created element, but the next
quadrilaterals need to clone that element.
@timvandermeij
Copy link
Contributor Author

/botio-linux preview

@pdfjsbot
Copy link

pdfjsbot commented Dec 5, 2020

From: Bot.io (Linux m4)


Received

Command cmd_preview from @timvandermeij received. Current queue size: 0

Live output at: http://54.67.70.0:8877/f6172955f75f14c/output.txt

@pdfjsbot
Copy link

pdfjsbot commented Dec 5, 2020

From: Bot.io (Linux m4)


Success

Full output at http://54.67.70.0:8877/f6172955f75f14c/output.txt

Total script time: 4.09 mins

Published

@timvandermeij
Copy link
Contributor Author

/botio test

@pdfjsbot
Copy link

pdfjsbot commented Dec 5, 2020

From: Bot.io (Linux m4)


Received

Command cmd_test from @timvandermeij received. Current queue size: 0

Live output at: http://54.67.70.0:8877/d2e207446046055/output.txt

@pdfjsbot
Copy link

pdfjsbot commented Dec 5, 2020

From: Bot.io (Windows)


Received

Command cmd_test from @timvandermeij received. Current queue size: 0

Live output at: http://3.101.106.178:8877/6cf102762f8be5a/output.txt

src/core/annotation.js Outdated Show resolved Hide resolved
@pdfjsbot
Copy link

pdfjsbot commented Dec 5, 2020

From: Bot.io (Linux m4)


Failed

Full output at http://54.67.70.0:8877/d2e207446046055/output.txt

Total script time: 25.53 mins

  • Font tests: Passed
  • Unit tests: FAILED
  • Regression tests: FAILED

Image differences available at: http://54.67.70.0:8877/d2e207446046055/reftest-analyzer.html#web=eq.log

@pdfjsbot
Copy link

pdfjsbot commented Dec 5, 2020

From: Bot.io (Windows)


Failed

Full output at http://3.101.106.178:8877/6cf102762f8be5a/output.txt

Total script time: 29.83 mins

  • Font tests: Passed
  • Unit tests: Passed
  • Regression tests: FAILED

Image differences available at: http://3.101.106.178:8877/6cf102762f8be5a/reftest-analyzer.html#web=eq.log

Copy link
Collaborator

@Snuffleupagus Snuffleupagus left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good to me, thank you!
Also, thanks for re-factoring the existing code, since this looks much better overall :-)

src/core/annotation.js Show resolved Hide resolved
This change requires us to use valid quadpoints arrays in the existing
unit tests too due to the normalization.
@timvandermeij
Copy link
Contributor Author

/botio makeref

@pdfjsbot
Copy link

pdfjsbot commented Dec 6, 2020

From: Bot.io (Windows)


Received

Command cmd_makeref from @timvandermeij received. Current queue size: 0

Live output at: http://3.101.106.178:8877/28e18832707f6cf/output.txt

@pdfjsbot
Copy link

pdfjsbot commented Dec 6, 2020

From: Bot.io (Linux m4)


Received

Command cmd_makeref from @timvandermeij received. Current queue size: 0

Live output at: http://54.67.70.0:8877/7e5ad2c26aeff99/output.txt

@pdfjsbot
Copy link

pdfjsbot commented Dec 6, 2020

From: Bot.io (Linux m4)


Success

Full output at http://54.67.70.0:8877/7e5ad2c26aeff99/output.txt

Total script time: 24.87 mins

  • Lint: Passed
  • Make references: Passed
  • Check references: Passed

@pdfjsbot
Copy link

pdfjsbot commented Dec 6, 2020

From: Bot.io (Windows)


Success

Full output at http://3.101.106.178:8877/28e18832707f6cf/output.txt

Total script time: 29.19 mins

  • Lint: Passed
  • Make references: Passed
  • Check references: Passed

@timvandermeij timvandermeij merged commit d784af3 into mozilla:master Dec 6, 2020
@timvandermeij timvandermeij deleted the annotation-quadpoints branch December 6, 2020 15:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Fix non-standard quadpoints orders for annotations Support quad points for annotations
4 participants