(a: Pt, b: Pt, stroke: string, w: number, o: number)
| 156 | })}/>`; |
| 157 | |
| 158 | const line = (a: Pt, b: Pt, stroke: string, w: number, o: number) => |
| 159 | `<line ${attrs({ x1: round(a.x), y1: round(a.y), x2: round(b.x), y2: round(b.y), stroke, "stroke-width": w, opacity: o, "stroke-linecap": "round" })}/>`; |
| 160 | |
| 161 | const circle = (p: Pt, r: number, fill: string) => |
| 162 | `<circle ${attrs({ cx: round(p.x), cy: round(p.y), r, fill })}/>`; |