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

[editor] Add support for saving newly added Ink #15006

Merged
merged 1 commit into from
Jun 9, 2022

Conversation

calixteman
Copy link
Contributor

No description provided.

@@ -82,21 +82,24 @@ function parseDefaultAppearance(str) {
return new DefaultAppearanceEvaluator(str).parse();
}

function getPdfColor(color) {
function getPdfColor(color, g) {
Copy link
Collaborator

Choose a reason for hiding this comment

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

Looking at the call-sites and this function itself, the new parameter feels somewhat confusing and difficult to understand.
How about using a binary parameter instead, e.g. function getPdfColor(color, isStroke = false) {, since that feels a lot clearer overall.

@calixteman calixteman merged commit 5d88233 into mozilla:master Jun 9, 2022
@calixteman
Copy link
Contributor Author

I forgot to run the unit tests.
/botio unittest

@pdfjsbot
Copy link

pdfjsbot commented Jun 9, 2022

From: Bot.io (Linux m4)


Received

Command cmd_unittest from @calixteman received. Current queue size: 0

Live output at: http://54.241.84.105:8877/518a1041ba3989d/output.txt

@pdfjsbot
Copy link

pdfjsbot commented Jun 9, 2022

From: Bot.io (Windows)


Received

Command cmd_unittest from @calixteman received. Current queue size: 2

Live output at: http://54.193.163.58:8877/30ed649df8efe06/output.txt

@pdfjsbot
Copy link

pdfjsbot commented Jun 9, 2022

From: Bot.io (Linux m4)


Failed

Full output at http://54.241.84.105:8877/518a1041ba3989d/output.txt

Total script time: 3.23 mins

  • Unit Tests: FAILED

@pdfjsbot
Copy link

pdfjsbot commented Jun 9, 2022

From: Bot.io (Windows)


Success

Full output at http://54.193.163.58:8877/30ed649df8efe06/output.txt

Total script time: 7.00 mins

  • Unit Tests: Passed

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Add support for drawing
3 participants