1
0
Fork 0

chore: Linter changes

This commit is contained in:
Joost De Cock 2021-04-24 10:16:31 +02:00
parent dfdfc46ded
commit f191151ee4
354 changed files with 2467 additions and 2472 deletions

View file

@ -8,7 +8,7 @@ import {
pointOnLine,
pointOnCurve,
curveEdge,
round
round,
} from './utils'
function Path(debug = false) {
@ -514,18 +514,18 @@ function lineBoundingBox(line) {
else
return {
topLeft: new Point(from.x, to.y),
bottomRight: new Point(to.x, from.y)
bottomRight: new Point(to.x, from.y),
}
} else if (from.x > to.x) {
if (from.y < to.y)
return {
topLeft: new Point(to.x, from.y),
bottomRight: new Point(from.x, to.y)
bottomRight: new Point(from.x, to.y),
}
else
return {
topLeft: new Point(to.x, to.y),
bottomRight: new Point(from.x, from.y)
bottomRight: new Point(from.x, from.y),
}
}
}
@ -535,7 +535,7 @@ function curveBoundingBox(curve) {
return {
topLeft: new Point(bb.x.min, bb.y.min),
bottomRight: new Point(bb.x.max, bb.y.max)
bottomRight: new Point(bb.x.max, bb.y.max),
}
}