(n: number)
| 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) => |
| 169 | s.replace(/&/g, "&").replace(/</g, "<").replace(/>/g, ">"); |
| 170 |