(a: Edges, b: Edges)
| 39 | |
| 40 | /** Add two edge values */ |
| 41 | export function addEdges(a: Edges, b: Edges): Edges { |
| 42 | return { |
| 43 | top: a.top + b.top, |
| 44 | right: a.right + b.right, |
| 45 | bottom: a.bottom + b.bottom, |
| 46 | left: a.left + b.left, |
| 47 | } |
| 48 | } |
| 49 | |
| 50 | /** Zero edges constant */ |
| 51 | export const ZERO_EDGES: Edges = { top: 0, right: 0, bottom: 0, left: 0 } |
nothing calls this directly
no outgoing calls
no test coverage detected