diff options
| author | Oskar Nyberg <oskar@mullvad.net> | 2024-06-14 11:41:11 +0200 |
|---|---|---|
| committer | Oskar Nyberg <oskar@mullvad.net> | 2024-06-18 15:04:34 +0200 |
| commit | 59f21bba30b22a627d77184275a67a4d09daed23 (patch) | |
| tree | 0868fe15307d38ca85aec5a1369f33d4e680ff95 /gui/src/renderer/lib/3dmap.ts | |
| parent | 454df7dd6b0ff70c5eb63da5745e39e2b5c5897e (diff) | |
| download | mullvadvpn-59f21bba30b22a627d77184275a67a4d09daed23.tar.xz mullvadvpn-59f21bba30b22a627d77184275a67a4d09daed23.zip | |
Fix eslint errors
All changes in this commit were produced by running `npm run lint --
--fix`.
Diffstat (limited to 'gui/src/renderer/lib/3dmap.ts')
| -rw-r--r-- | gui/src/renderer/lib/3dmap.ts | 15 |
1 files changed, 12 insertions, 3 deletions
diff --git a/gui/src/renderer/lib/3dmap.ts b/gui/src/renderer/lib/3dmap.ts index f74efcf5df..ec4def0744 100644 --- a/gui/src/renderer/lib/3dmap.ts +++ b/gui/src/renderer/lib/3dmap.ts @@ -82,7 +82,10 @@ export interface Coordinate { } class Vector { - public constructor(public x: number, public y: number) {} + public constructor( + public x: number, + public y: number, + ) {} public static fromCoordinate(coordinate: Coordinate): Vector { return new Vector(coordinate.latitude, coordinate.longitude); @@ -138,7 +141,10 @@ class Globe { private programInfo: ProgramInfo; - public constructor(private gl: WebGL2RenderingContext, data: MapData) { + public constructor( + private gl: WebGL2RenderingContext, + data: MapData, + ) { this.landVertexBuffer = initArrayBuffer(gl, data.landPositions); this.oceanVertexBuffer = initArrayBuffer(gl, data.oceanPositions); @@ -240,7 +246,10 @@ class LocationMarker { private positionBuffer: WebGLBuffer; private colorBuffer: WebGLBuffer; - public constructor(private gl: WebGL2RenderingContext, color: ColorRgb) { + public constructor( + private gl: WebGL2RenderingContext, + color: ColorRgb, + ) { const white: ColorRgb = [1.0, 1.0, 1.0]; const black: ColorRgb = [0.0, 0.0, 0.0]; const rings = [ |
