This commit is contained in:
Lucàs
2023-06-20 21:44:53 +02:00
parent a420d5523b
commit 9ad92d140a
19 changed files with 6132 additions and 4 deletions
+14
View File
@@ -0,0 +1,14 @@
---
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'}
/>