2023-04-19 03:34:13 +09:00
|
|
|
import { Component, Input, OnChanges } from '@angular/core';
|
2023-04-15 05:26:18 +09:00
|
|
|
|
|
|
|
@Component({
|
|
|
|
selector: 'app-clock-face',
|
|
|
|
templateUrl: './clock-face.component.html',
|
|
|
|
styleUrls: ['./clock-face.component.scss'],
|
|
|
|
})
|
2023-04-19 03:34:13 +09:00
|
|
|
export class ClockFaceComponent implements OnChanges {
|
|
|
|
@Input() size: number = 300;
|
2023-04-19 00:21:02 +09:00
|
|
|
faceStyle;
|
2023-04-15 05:26:18 +09:00
|
|
|
|
|
|
|
constructor() {}
|
|
|
|
|
2023-04-19 03:34:13 +09:00
|
|
|
ngOnChanges(): void {
|
2023-04-19 00:21:02 +09:00
|
|
|
this.faceStyle = {
|
|
|
|
width: `${this.size}px`,
|
|
|
|
height: `${this.size}px`,
|
|
|
|
};
|
2023-04-15 05:26:18 +09:00
|
|
|
}
|
|
|
|
}
|