forked from FOSS/BangleApps
[ refactor ] Make one `let` to be `const` because it actually is one
parent
e578cab4e2
commit
74d7e4d6dd
|
@ -7,9 +7,8 @@ const settings = Object.assign(defaultSettings, require('Storage').readJSON('and
|
||||||
|
|
||||||
const c={"x":g.getWidth()/2,"y":g.getHeight()/2};
|
const c={"x":g.getWidth()/2,"y":g.getHeight()/2};
|
||||||
|
|
||||||
let zahlpos=[];
|
const zahlpos=(function() {
|
||||||
//calculates the Position of the numbers when app starts and saves them in an array
|
let z=[];
|
||||||
function setlet(){
|
|
||||||
let sk=1;
|
let sk=1;
|
||||||
for(let i=-10;i<50;i+=5){
|
for(let i=-10;i<50;i+=5){
|
||||||
let win=i*2*Math.PI/60;
|
let win=i*2*Math.PI/60;
|
||||||
|
@ -20,11 +19,11 @@ function setlet(){
|
||||||
if(sk==9){xsk+=10;}
|
if(sk==9){xsk+=10;}
|
||||||
if(sk==12){ysk+=10;}
|
if(sk==12){ysk+=10;}
|
||||||
if(sk==10){xsk+=3;}
|
if(sk==10){xsk+=3;}
|
||||||
zahlpos.push([sk,xsk,ysk]);
|
z.push([sk,xsk,ysk]);
|
||||||
sk+=1;
|
sk+=1;
|
||||||
}
|
}
|
||||||
}
|
return z;
|
||||||
setlet();
|
})();
|
||||||
|
|
||||||
let unlock = false;
|
let unlock = false;
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue