diff --git a/app/three/utils/build-coordinate-grid.ts b/app/three/utils/build-coordinate-grid.ts index abf686c..77ee8ab 100644 --- a/app/three/utils/build-coordinate-grid.ts +++ b/app/three/utils/build-coordinate-grid.ts @@ -48,13 +48,13 @@ export function buildCoordinateGrid(extent: Extent) { const annotations = []; for (let i = 0; i < xPairs.length - 1; i++) { - const [start, _] = xPairs[i]; + const [start] = xPairs[i]; const label = createLabel(`${start.x.toFixed(0)}m`, start, Orientation.X); annotations.push(label); } for (let i = 0; i < yPairs.length - 1; i++) { - const [start, _] = yPairs[i]; + const [start] = yPairs[i]; const label = createLabel(`${start.y.toFixed(0)}m`, start, Orientation.Y); annotations.push(label); } diff --git a/app/three/utils/build-scene.ts b/app/three/utils/build-scene.ts index e4872fc..5a91dc9 100644 --- a/app/three/utils/build-scene.ts +++ b/app/three/utils/build-scene.ts @@ -121,7 +121,7 @@ function onWindowResize(container: HTMLElement) { function animate() { // Set rotation of axes according to camera rotation - let rot = new Euler(); + const rot = new Euler(); rot.x = -camera.rotation.x; rot.y = camera.rotation.y; rot.z = -camera.rotation.z;