Builtin Library
README.md
dataView.virtual
Pure virtualization window math for Z.dataView — given a scroll position and
geometry, compute the inclusive range of row indices that are visible.
Exports
M.windowFor(scrollTop, viewportH, rowH, count, overscan) -> { first, last }— 1-based inclusive;last < firstwhen the dataset is empty.overscanextends the window above and below the visible band.
Notes
- Pure functions, no engine calls — unit-tested in the
editor_dataviewsuite. - Backs the row-window rendering; the same math would drive a future construction-virtualization provider.