Remove Timer and add countdown

This commit is contained in:
Lucàs
2023-06-25 15:50:18 +02:00
parent b7ab6be308
commit 5fbdc9f88a
11 changed files with 102 additions and 218 deletions
-13
View File
@@ -1,13 +0,0 @@
---
import CircleState from '../models/CircleState';
export interface Props {
id?: string
circle: CircleState,
}
const {id, circle} = Astro.props
---
<circle id={id ?? ""} cx={circle.point.x} cy={circle.point.y} r={circle.radius ?? 2} fill={circle.fill ?? "none"} stroke={circle.stroke ?? "black"}>
<slot/>
</circle>
-14
View File
@@ -1,14 +0,0 @@
---
import LineState from '../models/LineState';
export interface Props {
line: LineState;
stroke?: number;
}
const {line, stroke} = Astro.props;
---
<line x1={line.a.x} y1={line.a.y}
x2={line.b.x} y2={line.b.y}
stroke={stroke ?? 'black'}
/>