(rows: readonly FileCallRow[])
| 350 | |
| 351 | /** Height the rail needs, so the document never ends above its last row. */ |
| 352 | export function railHeight(rows: readonly FileCallRow[]): number { |
| 353 | const last = rows[rows.length - 1]; |
| 354 | return last ? last.top + ROW_HEIGHT + CODE_BOTTOM_PAD : 0; |
| 355 | } |
| 356 | |
| 357 | /* ----------------------------------------------------------------- arcs -- */ |
| 358 |
no outgoing calls
no test coverage detected