From 4d7c34616d68e9045944ed2c03e05db4ac94f9cc Mon Sep 17 00:00:00 2001 From: David Koes Date: Wed, 28 Feb 2024 10:53:58 -0500 Subject: [PATCH] var -> let --- src/GLModel.ts | 2 ++ src/WebGL/core/Geometry.ts | 4 ++-- viewer.html | 2 +- 3 files changed, 5 insertions(+), 3 deletions(-) diff --git a/src/GLModel.ts b/src/GLModel.ts index fba0e10fe..f1c9ffb54 100644 --- a/src/GLModel.ts +++ b/src/GLModel.ts @@ -268,6 +268,7 @@ export class GLModel { } return bestv; }; + //from atom, return a normalized vector v that is orthogonal and along which //it is appropraite to draw multiple bonds @@ -280,6 +281,7 @@ export class GLModel { var v = null; dir.sub(p1); + if (atom.bonds.length === 1) { if (atom2.bonds.length === 1) { v = dir.clone(); diff --git a/src/WebGL/core/Geometry.ts b/src/WebGL/core/Geometry.ts index ed69bfbd1..c29039c1e 100644 --- a/src/WebGL/core/Geometry.ts +++ b/src/WebGL/core/Geometry.ts @@ -227,7 +227,7 @@ export class GeometryGroup { ret += indent + " coordIndex [\n"; if(material.wireframe && this.faceArray) { - for (var i = 0; i < this.faceidx; i += 3) { + for (let i = 0; i < this.faceidx; i += 3) { x = this.faceArray?.[i]; y = this.faceArray?.[i + 1]; z = this.faceArray?.[i + 2]; @@ -293,7 +293,7 @@ export class GeometryGroup { //faces ret += indent + " coordIndex [\n"; - for (var i = 0; i < this.faceidx; i += 3) { + for (let i = 0; i < this.faceidx; i += 3) { x = this.faceArray?.[i]; y = this.faceArray?.[i + 1]; z = this.faceArray?.[i + 2]; diff --git a/viewer.html b/viewer.html index 0ae9a2994..0e727dff0 100644 --- a/viewer.html +++ b/viewer.html @@ -107,4 +107,4 @@

Selections

- \ No newline at end of file +