mirror of
https://github.com/mozilla/pdf.js.git
synced 2025-04-26 10:08:06 +02:00
Additional *manual* unicorn/prefer-ternary
changes
Not all cases could be automatically fixed, and the changes also triggered a number of `prefer-const` errors that needed to be handled manually.
This commit is contained in:
parent
674e7ee381
commit
c0fe96b8fe
13 changed files with 20 additions and 55 deletions
|
@ -839,8 +839,7 @@ class Annotation {
|
|||
|
||||
setRotation(mk, dict) {
|
||||
this.rotation = 0;
|
||||
let angle;
|
||||
angle = mk instanceof Dict ? mk.get("R") || 0 : dict.get("Rotate") || 0;
|
||||
let angle = mk instanceof Dict ? mk.get("R") || 0 : dict.get("Rotate") || 0;
|
||||
if (Number.isInteger(angle) && angle !== 0) {
|
||||
angle %= 360;
|
||||
if (angle < 0) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue