(p: Pt, s: string, fill: string, size = 15)
| 162 | `<circle ${attrs({ cx: round(p.x), cy: round(p.y), r, fill })}/>`; |
| 163 | |
| 164 | const text = (p: Pt, s: string, fill: string, size = 15) => |
| 165 | `<text ${attrs({ x: round(p.x), y: round(p.y), fill, "font-family": "ui-monospace,monospace", "font-size": size, "font-weight": 600 })}>${escapeXml(s)}</text>`; |
| 166 | |
| 167 | const round = (n: number) => Math.round(n * 100) / 100; |
| 168 | const escapeXml = (s: string) => |