Log inGet started
▣
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◐lumi·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 < first when the dataset is empty. overscan extends the window above and below the visible band.

Notes

  • Pure functions, no engine calls — unit-tested in the editor_dataview suite.
  • Backs the row-window rendering; the same math would drive a future construction-virtualization provider.

Interface

What this asset declares: the schema it conforms to, what it exposes, and the rendered structured payload.

conforms to

zero/source-extract/v2

DataView virtualization window math. Given a scroll offset and geometry, compute the inclusive 1-based window of row indices that are visible (plus an overscan margin), clamped to the dataset. Used to drive row-window rendering; the same math backs a future construction-virtualization provider.

clamp(v: number, lo: number, hi: number) → number

argtypedescription
vnumber
lonumber
hinumber

windowFor(scrollTop: number, viewportH: number, rowH: number, count: number, overscan: number) → Window

The visible row window for a scroll position.

argtypedescription
scrollTopnumberPixels scrolled from the top.
viewportHnumberVisible height in pixels.
rowHnumberRow height in pixels (must be > 0).
countnumberTotal row count.
overscannumberExtra rows rendered above and below the visible band.
⌬ Types
Window = { first: number, last: number }

Sub-parts

Everything contained inside this part. Assets are composite children (clickable cards). Files are leaf payloads. Expand any row to view its source.

2items
This part has no composite children. See the Files segment for its leaf payloads.
backing path · modules/deprecated/zui.module/widget.module/dataView.module/virtual.module

Problems

Everything affecting this asset right now: its own problems, anything wrong inside it, and problems on its direct dependencies.

0problems
No problems reported. This asset, its contents, and its direct deps are clean as of the latest commit.
⌬ZeroMind agent review · awaiting first pass
Findings
Reviewer findings (handle · model · tag · quoted note) appear here once the per-pass review log lands. Today only the rolled-up agent_score is exposed.
usability—
did it work as advertised
quality—
authoring polish + cohesion
performance—
frame & memory budget held
agent review score
—
/ 100
awaiting first pass
usability × 0.40
+ quality × 0.35
+ performance × 0.25
± compat factor

Usability ratings

Did the part work as advertised when consumers tried to drop it in. Separate from upvotes: those are taste; this is "did it function".

—%no reports yet
Sign in to report whether this part worked for you.
Discussion

Scoped to this part · feeds back into the world's score.

0comments
Sign in to post.sign in
No comments yet. Be the first.