diff --git a/src/mol-geo/util.ts b/src/mol-geo/util.ts index 99cf5f6d6b765259a40068eb0f578571fec9ccbb..c09d0aae094e2b4c1b7ec1aa67ec4e362849f6d1 100644 --- a/src/mol-geo/util.ts +++ b/src/mol-geo/util.ts @@ -106,7 +106,7 @@ export function computeVertexNormals<T extends NumberArray> (vertices: NumberArr const cb = Vec3.zero() const ab = Vec3.zero() - for (let i = 0, il = vertices.length; i < il; i += 9) { + for (let i = 0, il = vertices.length; i < il; i += 9) { Vec3.fromArray(a, vertices, i) Vec3.fromArray(b, vertices, i + 3) Vec3.fromArray(c, vertices, i + 6) diff --git a/src/mol-state/action.ts b/src/mol-state/action.ts index 25d174ab039ebbc7aec567e75c11300833732e6d..07547cf5a3d7b91c34afd74b31a26f36c2b0bc44 100644 --- a/src/mol-state/action.ts +++ b/src/mol-state/action.ts @@ -107,13 +107,13 @@ namespace StateAction { display: typeof info.display === 'string' ? { name: info.display } : !!info.display - ? info.display - : { name: 'Unnamed State Action' }, + ? info.display + : { name: 'Unnamed State Action' }, params: typeof info.params === 'object' ? () => info.params as any : !!info.params - ? info.params as any - : void 0, + ? info.params as any + : void 0, isApplicable: info.isApplicable, ...(typeof def === 'function' ? { run: def } diff --git a/src/mol-util/async-queue.ts b/src/mol-util/async-queue.ts index b11407251a0cf6a76f6f89ba81852b6fceb01adb..2551fe58be781e8b4d7338b5519eaf1687ec38b7 100644 --- a/src/mol-util/async-queue.ts +++ b/src/mol-util/async-queue.ts @@ -29,7 +29,7 @@ export class AsyncQueue<T> { remove(v: T) { const rem = arrayRemoveInPlace(this.queue, v); if (rem) - this.signal.next({ v, stillPresent: false }) + this.signal.next({ v, stillPresent: false }) return rem; } diff --git a/src/mol-util/memoize.ts b/src/mol-util/memoize.ts index c91d1f3e748b06b689782da9439093d92d774061..0e9b8b82ade6b00dd12258bffffffc803ab112fc 100644 --- a/src/mol-util/memoize.ts +++ b/src/mol-util/memoize.ts @@ -4,7 +4,7 @@ * @author David Sehnal <david.sehnal@gmail.com> */ - /** Cache the latest result from calls to a function with any number of arguments */ +/** Cache the latest result from calls to a function with any number of arguments */ export function memoizeLatest<Args extends any[], T>(f: (...args: Args) => T): (...args: Args) => T { let lastArgs: any[] | undefined = void 0, value: any = void 0; return (...args) => { diff --git a/src/mol-util/now.ts b/src/mol-util/now.ts index 7a88af574b4b70147b5d99127c19d46abbd07ffb..1354ea96fc64947074c9a3fc7f702bf323e4945a 100644 --- a/src/mol-util/now.ts +++ b/src/mol-util/now.ts @@ -4,8 +4,8 @@ * @author David Sehnal <david.sehnal@gmail.com> */ -declare var process: any; -declare var window: any; +declare const process: any; +declare const window: any; const now: () => now.Timestamp = (function () { if (typeof window !== 'undefined' && window.performance) { diff --git a/src/mol-util/object.ts b/src/mol-util/object.ts index 38e194d55698eebbc39930a640678888b4d4e124..927d7c18003b8842d29c0dfcfda65b24813d348f 100644 --- a/src/mol-util/object.ts +++ b/src/mol-util/object.ts @@ -66,11 +66,11 @@ export function deepClone<T>(source: T): T { if (null === source || 'object' !== typeof source) return source; if (source instanceof Array) { - const copy: any[] = []; - for (let i = 0, len = source.length; i < len; i++) { - copy[i] = deepClone(source[i]); - } - return copy as any as T; + const copy: any[] = []; + for (let i = 0, len = source.length; i < len; i++) { + copy[i] = deepClone(source[i]); + } + return copy as any as T; } if (source instanceof Object) { diff --git a/src/perf-tests/structure.ts b/src/perf-tests/structure.ts index 00bd25ed5e45647b048409ac343a1a566e3da5f7..8f7d1ac4e6cd3db684566a39004a2e485c5ed0c5 100644 --- a/src/perf-tests/structure.ts +++ b/src/perf-tests/structure.ts @@ -380,11 +380,11 @@ export namespace PropertyAccess { } export async function run() { - // const { structures, models/*, mmcif*/ } = await getBcif('1cbs'); + // const { structures, models/* , mmcif */ } = await getBcif('1cbs'); // const { structures, models } = await getBcif('3j3q'); - const { structures, models /*, mmcif*/ } = await readCIF('e:/test/quick/1cbs_updated.cif'); - // const { structures: s1, /*, mmcif*/ } = await readCIF('e:/test/quick/1tqn_updated.cif'); + const { structures, models /* , mmcif */ } = await readCIF('e:/test/quick/1cbs_updated.cif'); + // const { structures: s1, /* , mmcif */ } = await readCIF('e:/test/quick/1tqn_updated.cif'); // testGrouping(structures[0]); // console.log('------');