From 4ce2310b2fbf292ca35914659ced8999991f3441 Mon Sep 17 00:00:00 2001 From: wo-o29 Date: Sun, 31 Aug 2025 01:44:26 +0900 Subject: [PATCH] docs: add missing lane property and fix measureElement method reference in VirtualItem interface and docs --- docs/api/virtual-item.md | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/docs/api/virtual-item.md b/docs/api/virtual-item.md index 2393788b..726640cb 100644 --- a/docs/api/virtual-item.md +++ b/docs/api/virtual-item.md @@ -11,6 +11,7 @@ export interface VirtualItem { start: number end: number size: number + lane: number } ``` @@ -54,7 +55,7 @@ The ending pixel offset for the item. This value is not necessary for most layou size: number ``` -The size of the item. This is usually mapped to a css property like `width/height`. Before an item is measured with the `VirtualItem.measureElement` method, this will be the estimated size returned from your `estimateSize` virtualizer option. After an item is measured (if you choose to measure it at all), this value will be the number returned by your `measureElement` virtualizer option (which by default is configured to measure elements with `getBoundingClientRect()`). +The size of the item. This is usually mapped to a css property like `width/height`. Before an item is measured with the `Virtualizer.measureElement` method, this will be the estimated size returned from your `estimateSize` virtualizer option. After an item is measured (if you choose to measure it at all), this value will be the number returned by your `measureElement` virtualizer option (which by default is configured to measure elements with `getBoundingClientRect()`). ### `lane`