The 2D layer · interface
RowWindow
Which rows a scroll offset makes visible, so that a list costs a screenful rather than a list.
Explained in Sprites and tilemaps.
interface RowWindowimport type { RowWindow } from '@driftengine/ui2d';In depth
An asset browser with ten thousand entries has to cost what a screenful costs. Without this the scene tree is unusable the first time somebody opens a real project, which is the moment nobody wants to discover it.
Overscan is applied before clamping, not after. Applied after, a window near either end runs past the row count and a caller indexes rows that do not exist.
Properties
| Name | Type | Description |
|---|---|---|
first | number | |
count | number |