Skip to content

Commit

Permalink
chore: lint fix
Browse files Browse the repository at this point in the history
  • Loading branch information
haakonflatval-cognite committed Jul 26, 2023
1 parent 1e317ae commit 1dfd0c3
Show file tree
Hide file tree
Showing 4 changed files with 23 additions and 8 deletions.
5 changes: 4 additions & 1 deletion viewer/packages/360-images/src/cache/Image360LoadingCache.ts
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,10 @@ export class Image360LoadingCache {
});
}

constructor(private readonly _imageCacheSize = 5, private readonly _downloadCacheSize = 3) {
constructor(
private readonly _imageCacheSize = 5,
private readonly _downloadCacheSize = 3
) {
this._loaded360Images = [];
this._inProgressDownloads = [];
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,5 +9,8 @@ import { CompletePointCloudAppearance } from './PointCloudAppearance';
* Represents an object collection that is associated with an appearance
*/
export class StyledPointCloudObjectCollection {
constructor(public objectCollection: PointCloudObjectCollection, public style: CompletePointCloudAppearance) {}
constructor(
public objectCollection: PointCloudObjectCollection,
public style: CompletePointCloudAppearance
) {}
}
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,10 @@ export class AutoTerminatingWorker {
private terminated: boolean = false;
private _wrappedWorker: Worker | undefined;

constructor(wrappedWorker: Worker, private readonly maxIdle: number) {
constructor(
wrappedWorker: Worker,
private readonly maxIdle: number
) {
this._wrappedWorker = wrappedWorker;
}

Expand Down Expand Up @@ -41,7 +44,10 @@ export class WorkerPool<T extends Worker> {
private readonly pool = new AsyncBlockingQueue<AutoTerminatingWorker>();
private poolSize = 0;

constructor(public maxWorkers: number, private readonly workerType: new () => T) {}
constructor(
public maxWorkers: number,
private readonly workerType: new () => T
) {}

/**
* Returns a worker promise which is resolved when one is available.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,10 +19,13 @@ export async function parseEpt(
const offset = data.offset;
const mins = data.mins;

const dimensions: Record<string, AttributeSchema> = schema.reduce((p, c) => {
p[c.name] = c;
return p;
}, {} as Record<string, AttributeSchema>);
const dimensions: Record<string, AttributeSchema> = schema.reduce(
(p, c) => {
p[c.name] = c;
return p;
},
{} as Record<string, AttributeSchema>
);

const dimOffset = (name: string) => {
let offset = 0;
Expand Down

0 comments on commit 1dfd0c3

Please sign in to comment.