( file: DiffFile, layout: Exclude<LayoutMode, "auto">, showHunkHeaders: boolean, theme: AppTheme, )
| 346 | |
| 347 | /** Estimate the number of diff-body rows for one file section in the windowed path. */ |
| 348 | export function estimateDiffSectionBodyRows( |
| 349 | file: DiffFile, |
| 350 | layout: Exclude<LayoutMode, "auto">, |
| 351 | showHunkHeaders: boolean, |
| 352 | theme: AppTheme, |
| 353 | ) { |
| 354 | return measureDiffSectionGeometry(file, layout, showHunkHeaders, theme).bodyHeight; |
| 355 | } |
| 356 | |
| 357 | /** Estimate the body-row position for the anchor that should represent the selected hunk. */ |
| 358 | export function estimateHunkAnchorBodyRow( |
no test coverage detected