mempool/frontend/src/app/components/clock-face/clock-face.component.ts

21 lines
443 B
TypeScript
Raw Normal View History

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;
faceStyle;
2023-04-15 05:26:18 +09:00
constructor() {}
2023-04-19 03:34:13 +09:00
ngOnChanges(): void {
this.faceStyle = {
width: `${this.size}px`,
height: `${this.size}px`,
};
2023-04-15 05:26:18 +09:00
}
}