mirror of
https://github.com/chanzuckerberg/cellxgene.git
synced 2026-09-23 12:08:12 +08:00
run prettier(2.0.5) (#1438)
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user