run prettier(2.0.5) (#1438)

This commit is contained in:
Severiano Badajoz
2020-05-04 10:26:42 -07:00
committed by GitHub
parent b255e32548
commit 6cccc41c0f
118 changed files with 1979 additions and 1584 deletions
+3 -3
View File
@@ -20,7 +20,7 @@ class Camera {
this.prevEvent = {
clientX: 0,
clientY: 0,
type: 0
type: 0,
};
this.canvas = canvas;
this.viewMatrix = mat3.create();
@@ -43,11 +43,11 @@ class Camera {
const m = this.viewMatrix;
const dyRange = [
-panBound - (m[7] + 1) / m[4],
panBound - (m[7] - 1) / m[4]
panBound - (m[7] - 1) / m[4],
];
const dxRange = [
-panBound - (m[6] + 1) / m[0],
panBound - (m[6] - 1) / m[0]
panBound - (m[6] - 1) / m[0],
];
const dxClamped = clamp(dx, dxRange);