MCPcopy Index your code
hub / github.com/modem-dev/hunk / estimateDiffSectionBodyRows

Function estimateDiffSectionBodyRows

src/ui/diff/diffSectionGeometry.ts:348–355  ·  view source on GitHub ↗
(
  file: DiffFile,
  layout: Exclude<LayoutMode, "auto">,
  showHunkHeaders: boolean,
  theme: AppTheme,
)

Source from the content-addressed store, hash-verified

346
347/** Estimate the number of diff-body rows for one file section in the windowed path. */
348export 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. */
358export function estimateHunkAnchorBodyRow(

Callers 1

ui-lib.test.tsFile · 0.90

Calls 1

Tested by

no test coverage detected