API reference: @salmonui/core/virtual
RowMetricsinterface
import type { RowMetrics } from '@salmonui/core/virtual';interface RowMetrics {
readonly count: number;
readonly totalHeight: number;
offsetOf(index: number): number;
heightOf(index: number): number;
indexAt(offset: number): number;
}
Vertical metrics of the visible row model. Offsets are in virtual px.
| Name | Signature | Description |
|---|---|---|
count | readonly count: number; | |
totalHeight | readonly totalHeight: number; | |
offsetOf | offsetOf(index: number): number; | Top offset of the row at |
heightOf | heightOf(index: number): number; | |
indexAt | indexAt(offset: number): number; | Index of the row that contains |