1
0
Fork 0

gipy: Fix lint issues

master
Anton 2024-08-15 12:21:58 +02:00
parent 84aabfade4
commit d40a0100b8
2 changed files with 3 additions and 9 deletions

View File

@ -660,11 +660,11 @@ class Status {
towards = next_point;
}
let diff = towards.minus(this.projected_point);
direction = Math.atan2(diff.lat, diff.lon);
const direction = Math.atan2(diff.lat, diff.lon);
let full_angle = direction - this.angle;
c = this.projected_point.coordinates(
const c = this.projected_point.coordinates(
this.displayed_position,
this.adjusted_cos_direction,
this.adjusted_sin_direction,
@ -1394,7 +1394,7 @@ function ask_options(fn) {
g.flip();
function options_select(b, xy) {
end = false;
let end = false;
if (xy.y < height / 2 - 10) {
g.setColor(0, 0, 0).fillRect(10, 10, width - 10, height / 2 - 10);
g.setColor(1, 1, 1).setFont("Vector:30").setFontAlign(0,0).drawString("Forward", width/2, height/4);

View File

@ -1015,12 +1015,6 @@ module.exports = {
"no-undef"
]
},
"apps/gipy/app.js": {
"hash": "41f342e8ef6f2a87b3aea19b75ee45cfdfeff723b94281049e3ae0ec89cddba5",
"rules": [
"no-undef"
]
},
"apps/geissclk/precompute.js": {
"hash": "2317812a9e348e7883e93a4be9e294ad7accd4dc3f0e31ee00343e2412030f98",
"rules": [