(hop: WireFlowHop)
| 69 | |
| 70 | /** Exact rendered height of a card, which its CSS then pins. */ |
| 71 | export function cardHeight(hop: WireFlowHop): number { |
| 72 | const lines = hop.source?.lines?.length ?? 0; |
| 73 | const body = lines > 0 ? lines * CODE_LINE_HEIGHT + CODE_PADDING : NO_SOURCE_HEIGHT; |
| 74 | return HEADER_HEIGHT + body; |
| 75 | } |
| 76 | |
| 77 | /* --------------------------------------------------------------- end cap -- */ |
| 78 |
no outgoing calls
no test coverage detected