▣
module · drop-in viewer
asset⌬ modulemoduleprimary: init.luau·part ofmodule dataView.module·originates fromworld 07158574-5…
virtual
Pure virtualization window math for `Z.dataView` — given a scroll position and geometry, compute the inclusive range of row indices that are visible.
by·posted 2mo ago
What it does
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.
Discussion
Scoped to this part · feeds back into the world's score.
Sign in to post.sign in
No comments yet. Be the first.