(partial?: Partial<Edges>)
| 52 | |
| 53 | /** Convert partial edges to full edges with defaults */ |
| 54 | export function resolveEdges(partial?: Partial<Edges>): Edges { |
| 55 | return { |
| 56 | top: partial?.top ?? 0, |
| 57 | right: partial?.right ?? 0, |
| 58 | bottom: partial?.bottom ?? 0, |
| 59 | left: partial?.left ?? 0, |
| 60 | } |
| 61 | } |
| 62 | |
| 63 | export function unionRect(a: Rectangle, b: Rectangle): Rectangle { |
| 64 | const minX = Math.min(a.x, b.x) |
nothing calls this directly
no outgoing calls
no test coverage detected