(a: number, b?: number, c?: number, d?: number)
| 28 | left: number, |
| 29 | ): Edges |
| 30 | export function edges(a: number, b?: number, c?: number, d?: number): Edges { |
| 31 | if (b === undefined) { |
| 32 | return { top: a, right: a, bottom: a, left: a } |
| 33 | } |
| 34 | if (c === undefined) { |
| 35 | return { top: a, right: b, bottom: a, left: b } |
| 36 | } |
| 37 | return { top: a, right: b, bottom: c, left: d! } |
| 38 | } |
| 39 | |
| 40 | /** Add two edge values */ |
| 41 | export function addEdges(a: Edges, b: Edges): Edges { |
nothing calls this directly
no outgoing calls
no test coverage detected