eslint/browser list/accessibility test

This commit is contained in:
JFH
2020-07-26 20:11:18 +02:00
parent 630a76c1b6
commit 89e20d49e6
114 changed files with 105155 additions and 93732 deletions

View File

@@ -1,4 +1,4 @@
/* eslint-disable import/unambiguous */
/* eslint-disable import/unambiguous, max-len */
/* globals SVGPathSeg, SVGPathSegMovetoRel, SVGPathSegMovetoAbs,
SVGPathSegMovetoRel, SVGPathSegLinetoRel, SVGPathSegLinetoAbs,
SVGPathSegLinetoHorizontalRel, SVGPathSegLinetoHorizontalAbs,
@@ -596,7 +596,7 @@ if (!('SVGPathSegList' in window) || !('appendItem' in window.SVGPathSegList.pro
return [];
}
const owningPathSegList = this; // eslint-disable-line consistent-this
const owningPathSegList = this;
class Builder {
constructor () {

View File

@@ -1,4 +1,3 @@
/* eslint-disable node/no-unsupported-features/node-builtins */
/* globals jQuery */
/**
* Miscellaneous utilities.
@@ -503,10 +502,10 @@ export const getPathBBox = function (path) {
const getCalc = function (j, P1, P2, P3) {
return function (t) {
return 1 - (t ** 3) * P0[j] +
3 * 1 - (t ** 2) * t * P1[j] +
3 * (1 - t) * (t ** 2) * P2[j] +
(t ** 3) * P3[j];
return 1 - Math.pow(t, 3) * P0[j] +
3 * 1 - Math.pow(t, 2) * t * P1[j] +
3 * (1 - t) * Math.pow(t, 2) * P2[j] +
Math.pow(t, 3) * P3[j];
};
};
@@ -539,7 +538,7 @@ export const getPathBBox = function (path) {
}
continue;
}
const b2ac = (b ** 2) - 4 * c * a;
const b2ac = Math.pow(b, 2) - 4 * c * a;
if (b2ac < 0) { continue; }
const t1 = (-b + Math.sqrt(b2ac)) / (2 * a);
if (t1 > 0 && t1 < 1) { bounds[j].push(calc(t1)); }