mirror of https://github.com/espruino/BangleApps
gipy: Fix lint issues
parent
84aabfade4
commit
d40a0100b8
|
@ -660,11 +660,11 @@ class Status {
|
||||||
towards = next_point;
|
towards = next_point;
|
||||||
}
|
}
|
||||||
let diff = towards.minus(this.projected_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;
|
let full_angle = direction - this.angle;
|
||||||
|
|
||||||
c = this.projected_point.coordinates(
|
const c = this.projected_point.coordinates(
|
||||||
this.displayed_position,
|
this.displayed_position,
|
||||||
this.adjusted_cos_direction,
|
this.adjusted_cos_direction,
|
||||||
this.adjusted_sin_direction,
|
this.adjusted_sin_direction,
|
||||||
|
@ -1394,7 +1394,7 @@ function ask_options(fn) {
|
||||||
g.flip();
|
g.flip();
|
||||||
|
|
||||||
function options_select(b, xy) {
|
function options_select(b, xy) {
|
||||||
end = false;
|
let end = false;
|
||||||
if (xy.y < height / 2 - 10) {
|
if (xy.y < height / 2 - 10) {
|
||||||
g.setColor(0, 0, 0).fillRect(10, 10, width - 10, 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);
|
g.setColor(1, 1, 1).setFont("Vector:30").setFontAlign(0,0).drawString("Forward", width/2, height/4);
|
||||||
|
|
|
@ -1015,12 +1015,6 @@ module.exports = {
|
||||||
"no-undef"
|
"no-undef"
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
"apps/gipy/app.js": {
|
|
||||||
"hash": "41f342e8ef6f2a87b3aea19b75ee45cfdfeff723b94281049e3ae0ec89cddba5",
|
|
||||||
"rules": [
|
|
||||||
"no-undef"
|
|
||||||
]
|
|
||||||
},
|
|
||||||
"apps/geissclk/precompute.js": {
|
"apps/geissclk/precompute.js": {
|
||||||
"hash": "2317812a9e348e7883e93a4be9e294ad7accd4dc3f0e31ee00343e2412030f98",
|
"hash": "2317812a9e348e7883e93a4be9e294ad7accd4dc3f0e31ee00343e2412030f98",
|
||||||
"rules": [
|
"rules": [
|
||||||
|
|
Loading…
Reference in New Issue