(rect: NonNullable<SnapshotNode['rect']>, point: Point)
| 307 | } |
| 308 | |
| 309 | function containsPoint(rect: NonNullable<SnapshotNode['rect']>, point: Point): boolean { |
| 310 | return ( |
| 311 | point.x >= rect.x && |
| 312 | point.x <= rect.x + rect.width && |
| 313 | point.y >= rect.y && |
| 314 | point.y <= rect.y + rect.height |
| 315 | ); |
| 316 | } |
| 317 | |
| 318 | function isUsableRect(rect: SnapshotNode['rect']): rect is NonNullable<SnapshotNode['rect']> { |
| 319 | return Boolean(rect && rect.width > 0 && rect.height > 0); |
no outgoing calls
no test coverage detected
searching dependent graphs…