diff options
| author | Acid Chicken (硫酸鶏) <root@acid-chicken.com> | 2018-07-18 02:04:07 +0900 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2018-07-18 02:04:07 +0900 |
| commit | e10de62a7a241f18396cfa6eb9f182361ef97e3a (patch) | |
| tree | 4e0af11c15981077b854336a890145f61573d44d /src | |
| parent | Update analog-clock.vue (diff) | |
| download | sharkey-e10de62a7a241f18396cfa6eb9f182361ef97e3a.tar.gz sharkey-e10de62a7a241f18396cfa6eb9f182361ef97e3a.tar.bz2 sharkey-e10de62a7a241f18396cfa6eb9f182361ef97e3a.zip | |
Update analog-clock.vue
Diffstat (limited to 'src')
| -rw-r--r-- | src/client/app/common/views/components/analog-clock.vue | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/src/client/app/common/views/components/analog-clock.vue b/src/client/app/common/views/components/analog-clock.vue index 6378194a0e..fd64119f7f 100644 --- a/src/client/app/common/views/components/analog-clock.vue +++ b/src/client/app/common/views/components/analog-clock.vue @@ -39,6 +39,10 @@ export default Vue.extend({ dark: { type: Boolean, default: false + }, + smooth: { + type: Boolean, + default: false } }, @@ -88,13 +92,13 @@ export default Vue.extend({ }, hAngle(): number { - return Math.PI * (this.h % 12 + (this.m + (this.s + this.ms / 1000) / 60) / 60) / 6; + return Math.PI * (this.h % 12 + (this.m + (this.s + this.ms * this.smooth / 1000) / 60) / 60) / 6; }, mAngle(): number { - return Math.PI * (this.m + (this.s + this.ms / 1000) / 60) / 30; + return Math.PI * (this.m + (this.s + this.ms * this.smooth / 1000) / 60) / 30; }, sAngle(): number { - return Math.PI * (this.s + this.ms / 1000) / 30; + return Math.PI * (this.s + this.ms * this.smooth / 1000) / 30; }, graduations(): any { |