summaryrefslogtreecommitdiffhomepage
path: root/gui/src/renderer/lib
diff options
context:
space:
mode:
authorOskar Nyberg <oskar@mullvad.net>2024-06-14 11:41:11 +0200
committerOskar Nyberg <oskar@mullvad.net>2024-06-18 15:04:34 +0200
commit59f21bba30b22a627d77184275a67a4d09daed23 (patch)
tree0868fe15307d38ca85aec5a1369f33d4e680ff95 /gui/src/renderer/lib
parent454df7dd6b0ff70c5eb63da5745e39e2b5c5897e (diff)
downloadmullvadvpn-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')
-rw-r--r--gui/src/renderer/lib/3dmap.ts15
-rw-r--r--gui/src/renderer/lib/ip.ts5
2 files changed, 16 insertions, 4 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 = [
diff --git a/gui/src/renderer/lib/ip.ts b/gui/src/renderer/lib/ip.ts
index 2f68b68d78..94eb807d49 100644
--- a/gui/src/renderer/lib/ip.ts
+++ b/gui/src/renderer/lib/ip.ts
@@ -23,7 +23,10 @@ export abstract class IpAddress<G extends number[]> {
// Abstract class representing an IP range or subnet
export abstract class IpRange<G extends number[]> {
- public constructor(public readonly groups: G, public readonly prefixSize: number) {}
+ public constructor(
+ public readonly groups: G,
+ public readonly prefixSize: number,
+ ) {}
// Returns whether or not this subnet includes the provided IP
protected includes<T extends IpAddress<G>>(ip: T, groupSize: number): boolean {