mirror of
https://activitypub.software/TransFem-org/Sharkey.git
synced 2024-12-15 05:05:42 +01:00
Update analog-clock.vue
This commit is contained in:
parent
e10de62a7a
commit
4713822122
1 changed files with 4 additions and 4 deletions
|
@ -79,7 +79,7 @@ export default Vue.extend({
|
||||||
},
|
},
|
||||||
|
|
||||||
ms(): number {
|
ms(): number {
|
||||||
return this.now.getMilliseconds();
|
return this.now.getMilliseconds() * this.smooth;
|
||||||
}
|
}
|
||||||
s(): number {
|
s(): number {
|
||||||
return this.now.getSeconds();
|
return this.now.getSeconds();
|
||||||
|
@ -92,13 +92,13 @@ export default Vue.extend({
|
||||||
},
|
},
|
||||||
|
|
||||||
hAngle(): number {
|
hAngle(): number {
|
||||||
return Math.PI * (this.h % 12 + (this.m + (this.s + this.ms * this.smooth / 1000) / 60) / 60) / 6;
|
return Math.PI * (this.h % 12 + (this.m + (this.s + this.ms / 1000) / 60) / 60) / 6;
|
||||||
},
|
},
|
||||||
mAngle(): number {
|
mAngle(): number {
|
||||||
return Math.PI * (this.m + (this.s + this.ms * this.smooth / 1000) / 60) / 30;
|
return Math.PI * (this.m + (this.s + this.ms / 1000) / 60) / 30;
|
||||||
},
|
},
|
||||||
sAngle(): number {
|
sAngle(): number {
|
||||||
return Math.PI * (this.s + this.ms * this.smooth / 1000) / 30;
|
return Math.PI * (this.s + this.ms / 1000) / 30;
|
||||||
},
|
},
|
||||||
|
|
||||||
graduations(): any {
|
graduations(): any {
|
||||||
|
|
Loading…
Reference in a new issue