Fix lint errors
This commit is contained in:
parent
e96d575312
commit
f998ecd519
2 changed files with 3 additions and 3 deletions
|
@ -48,13 +48,13 @@ export function buildCoordinateGrid(extent: Extent) {
|
||||||
|
|
||||||
const annotations = [];
|
const annotations = [];
|
||||||
for (let i = 0; i < xPairs.length - 1; i++) {
|
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);
|
const label = createLabel(`${start.x.toFixed(0)}m`, start, Orientation.X);
|
||||||
annotations.push(label);
|
annotations.push(label);
|
||||||
}
|
}
|
||||||
|
|
||||||
for (let i = 0; i < yPairs.length - 1; i++) {
|
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);
|
const label = createLabel(`${start.y.toFixed(0)}m`, start, Orientation.Y);
|
||||||
annotations.push(label);
|
annotations.push(label);
|
||||||
}
|
}
|
||||||
|
|
|
@ -121,7 +121,7 @@ function onWindowResize(container: HTMLElement) {
|
||||||
|
|
||||||
function animate() {
|
function animate() {
|
||||||
// Set rotation of axes according to camera rotation
|
// Set rotation of axes according to camera rotation
|
||||||
let rot = new Euler();
|
const rot = new Euler();
|
||||||
rot.x = -camera.rotation.x;
|
rot.x = -camera.rotation.x;
|
||||||
rot.y = camera.rotation.y;
|
rot.y = camera.rotation.y;
|
||||||
rot.z = -camera.rotation.z;
|
rot.z = -camera.rotation.z;
|
||||||
|
|
Loading…
Add table
editor.link_modal.header
Reference in a new issue