( current: LayoutDamageRows | null, previousRect: Pick<Rectangle, 'y' | 'height'> | undefined, nextRect: Pick<Rectangle, 'y' | 'height'> | undefined, )
| 42 | } |
| 43 | |
| 44 | export function addLayoutTransitionDamage( |
| 45 | current: LayoutDamageRows | null, |
| 46 | previousRect: Pick<Rectangle, 'y' | 'height'> | undefined, |
| 47 | nextRect: Pick<Rectangle, 'y' | 'height'> | undefined, |
| 48 | ): LayoutDamageRows | null { |
| 49 | let rows = current |
| 50 | if (previousRect) { |
| 51 | rows = addLayoutDamageRect(rows, previousRect) |
| 52 | } |
| 53 | if (nextRect) { |
| 54 | rows = addLayoutDamageRect(rows, nextRect) |
| 55 | } |
| 56 | return rows |
| 57 | } |
| 58 | |
| 59 | export function toFullWidthDamageRect( |
| 60 | rows: LayoutDamageRows | null, |
no test coverage detected