var -> let

This commit is contained in:
David Koes
2024-02-28 10:53:58 -05:00
parent a64b4ecf8e
commit 4d7c34616d
3 changed files with 5 additions and 3 deletions

View File

@@ -269,6 +269,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
private getSideBondV(atom:AtomSpec, atom2:AtomSpec, i:number) {
@@ -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();

View File

@@ -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];