mirror of
https://github.com/zen-browser/pdf.js.git
synced 2025-07-08 17:30:09 +02:00
Enable the ESLint operator-assignment
rule
This patch was generated automatically, using the `gulp lint --fix` command. Please find additional details about the ESLint rule at https://eslint.org/docs/rules/operator-assignment
This commit is contained in:
parent
de80590157
commit
901b24e8af
13 changed files with 35 additions and 36 deletions
|
@ -145,10 +145,10 @@ function addContextCurrentTransform(ctx) {
|
|||
|
||||
ctx.scale = function ctxScale(x, y) {
|
||||
const m = this._transformMatrix;
|
||||
m[0] = m[0] * x;
|
||||
m[1] = m[1] * x;
|
||||
m[2] = m[2] * y;
|
||||
m[3] = m[3] * y;
|
||||
m[0] *= x;
|
||||
m[1] *= x;
|
||||
m[2] *= y;
|
||||
m[3] *= y;
|
||||
|
||||
this._originalScale(x, y);
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue