Skip to content

Commit

Permalink
var -> let
Browse files Browse the repository at this point in the history
  • Loading branch information
dkoes committed Feb 28, 2024
1 parent a64b4ec commit 4d7c346
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 3 deletions.
2 changes: 2 additions & 0 deletions src/GLModel.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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();
Expand Down
4 changes: 2 additions & 2 deletions src/WebGL/core/Geometry.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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];
Expand Down Expand Up @@ -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];
Expand Down
2 changes: 1 addition & 1 deletion viewer.html
Original file line number Diff line number Diff line change
Expand Up @@ -107,4 +107,4 @@ <h3>Selections</h3>
<div id='gldiv' style="width: 100%; height: 100vh;"></div>
</body>

</html>
</html>

0 comments on commit 4d7c346

Please sign in to comment.