mirror of
https://github.com/mozilla/pdf.js.git
synced 2025-04-26 10:08:06 +02:00
Enable the prefer-exponentiation-operator
ESLint rule
Please see https://eslint.org/docs/rules/prefer-exponentiation-operator for additional information.
This commit is contained in:
parent
c3f4690bde
commit
e011be037e
6 changed files with 16 additions and 15 deletions
|
@ -1166,7 +1166,7 @@ var Font = (function FontClosure() {
|
|||
}
|
||||
|
||||
function createPostTable(properties) {
|
||||
var angle = Math.floor(properties.italicAngle * Math.pow(2, 16));
|
||||
var angle = Math.floor(properties.italicAngle * 2 ** 16);
|
||||
return (
|
||||
"\x00\x03\x00\x00" + // Version number
|
||||
string32(angle) + // italicAngle
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue