Skip to content

Commit

Permalink
CHORE: Update dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
HughePaul committed Aug 12, 2020
1 parent d933ee1 commit 278a4c4
Show file tree
Hide file tree
Showing 4 changed files with 1,234 additions and 926 deletions.
2 changes: 1 addition & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
language: node_js
node_js:
- "8"
- "10"
- "12"
- "14"
notifications:
email: false
sudo: false
7 changes: 5 additions & 2 deletions lib/pdf.js
Original file line number Diff line number Diff line change
Expand Up @@ -242,8 +242,11 @@ class PDF {
},
set width(v) {
if (state.width === v) return;
if (v === undefined) return state.left = state.right = 0;
state.right = state.pageWidth - state.left - v;
if (v === undefined) {
state.left = state.right = 0;
} else {
state.right = state.pageWidth - state.left - v;
}
},
};
return state;
Expand Down
Loading

0 comments on commit 278a4c4

Please sign in to comment.