Numbers are rounded to a tenth: an SVG full of 17 decimals is unreadable.
(n: number)
| 162 | |
| 163 | /** Numbers are rounded to a tenth: an SVG full of 17 decimals is unreadable. */ |
| 164 | function round(n: number): number { |
| 165 | return Math.round(n * 10) / 10; |
| 166 | } |
| 167 | |
| 168 | function rect( |
| 169 | x: number, |
no outgoing calls
no test coverage detected