diff --git a/src/apps/docking-viewer/index.ts b/src/apps/docking-viewer/index.ts index 8242e62030159354074c3e99d9e3f95bea9b57a9..a1fd579695a748004fc9e7559f294581fee2d2aa 100644 --- a/src/apps/docking-viewer/index.ts +++ b/src/apps/docking-viewer/index.ts @@ -166,7 +166,7 @@ class Viewer { structures.push({ ref: structureProperties?.ref || structure.ref }); } - // remove current structuresfrom hierarchy as they will be merged + // remove current structures from hierarchy as they will be merged // TODO only works with using loadStructuresFromUrlsAndMerge once // need some more API metho to work with the hierarchy this.plugin.managers.structure.hierarchy.updateCurrent(this.plugin.managers.structure.hierarchy.current.structures, 'remove'); diff --git a/src/mol-model-props/computed/representations/interactions-inter-unit-cylinder.ts b/src/mol-model-props/computed/representations/interactions-inter-unit-cylinder.ts index 5bd9d657428fd116cf57d395907704cbe733ba20..9a0d9164212b5f844665d350b75a970d7621513c 100644 --- a/src/mol-model-props/computed/representations/interactions-inter-unit-cylinder.ts +++ b/src/mol-model-props/computed/representations/interactions-inter-unit-cylinder.ts @@ -111,7 +111,7 @@ function createInterUnitInteractionCylinderMesh(ctx: VisualContext, structure: S } } - return parentDisplay === 'full' ? flagA && flagB : flagA !== flagB; + return parentDisplay === 'full' ? flagA && flagB : flagA === flagB; } else { assertUnreachable(parentDisplay); } diff --git a/src/mol-model-props/computed/representations/interactions-intra-unit-cylinder.ts b/src/mol-model-props/computed/representations/interactions-intra-unit-cylinder.ts index 64f180a9e5d83d26663ebd3a3e664c1a95d75297..e0289f7b75aeffbf37ba01dd2ff02a6194b75172 100644 --- a/src/mol-model-props/computed/representations/interactions-intra-unit-cylinder.ts +++ b/src/mol-model-props/computed/representations/interactions-intra-unit-cylinder.ts @@ -64,7 +64,7 @@ async function createIntraUnitInteractionsCylinderMesh(ctx: VisualContext, unit: if (childUnit) { if (parentDisplay === 'stub') { const f = a[edgeIndex]; - for (let i = offsets[f], jl = offsets[f + 1]; i < jl; ++i) { + for (let i = offsets[f], il = offsets[f + 1]; i < il; ++i) { const e = unit.elements[members[offsets[i]]]; if (!SortedArray.has(childUnit.elements, e)) return true; } @@ -73,18 +73,18 @@ async function createIntraUnitInteractionsCylinderMesh(ctx: VisualContext, unit: let flagB = false; const fA = a[edgeIndex]; - for (let i = offsets[fA], jl = offsets[fA + 1]; i < jl; ++i) { + for (let i = offsets[fA], il = offsets[fA + 1]; i < il; ++i) { const eA = unit.elements[members[offsets[i]]]; if (!SortedArray.has(childUnit.elements, eA)) flagA = true; } const fB = b[edgeIndex]; - for (let i = offsets[fB], jl = offsets[fB + 1]; i < jl; ++i) { + for (let i = offsets[fB], il = offsets[fB + 1]; i < il; ++i) { const eB = unit.elements[members[offsets[i]]]; if (!SortedArray.has(childUnit.elements, eB)) flagB = true; } - return parentDisplay === 'full' ? flagA && flagB : flagA !== flagB; + return parentDisplay === 'full' ? flagA && flagB : flagA === flagB; } else { assertUnreachable(parentDisplay); }