(line: number)
| 105 | |
| 106 | /** Vertical centre of a line — what an arc, a port and a connector all anchor to. */ |
| 107 | export function lineCentre(line: number): number { |
| 108 | return lineTop(line) + CODE_LINE_HEIGHT / 2; |
| 109 | } |
| 110 | |
| 111 | /** Total height of the scrolling document for a file of `totalLines`. */ |
| 112 | export function documentHeight(totalLines: number): number { |
no test coverage detected