(snapshot)
| 1585 | } |
| 1586 | |
| 1587 | function rootBounds(snapshot) { |
| 1588 | const match = snapshot.match( |
| 1589 | /Application(?:\s+#[^:\n]+)?:?.*?@([0-9.]+),([0-9.]+)\s+([0-9.]+)x([0-9.]+)/, |
| 1590 | ); |
| 1591 | if (!match) { |
| 1592 | return null; |
| 1593 | } |
| 1594 | return { |
| 1595 | x: Number(match[1]), |
| 1596 | y: Number(match[2]), |
| 1597 | width: Number(match[3]), |
| 1598 | height: Number(match[4]), |
| 1599 | }; |
| 1600 | } |
| 1601 | |
| 1602 | function uniquePoints(points) { |
| 1603 | const seen = new Set(); |
no outgoing calls
no test coverage detected