(totalLines: number)
| 110 | |
| 111 | /** Total height of the scrolling document for a file of `totalLines`. */ |
| 112 | export function documentHeight(totalLines: number): number { |
| 113 | return CODE_TOP_PAD + Math.max(0, totalLines) * CODE_LINE_HEIGHT + CODE_BOTTOM_PAD; |
| 114 | } |
| 115 | |
| 116 | /** |
| 117 | * The 1-based line at a vertical offset in the document. |
no outgoing calls
no test coverage detected