@tanstack/virtual-core
Advanced tools
Comparing version 3.2.0 to 3.2.1
@@ -65,3 +65,3 @@ export * from './utils.js'; | ||
scrollPaddingEnd?: number; | ||
initialOffset?: number; | ||
initialOffset?: number | (() => number); | ||
getItemKey?: (index: number) => Key; | ||
@@ -68,0 +68,0 @@ rangeExtractor?: (range: Range) => number[]; |
@@ -595,3 +595,3 @@ import { memo, notUndefined, approxEqual } from "./utils.js"; | ||
this.scrollRect = this.options.initialRect; | ||
this.scrollOffset = this.options.initialOffset; | ||
this.scrollOffset = typeof this.options.initialOffset === "function" ? this.options.initialOffset() : this.options.initialOffset; | ||
this.measurementsCache = this.options.initialMeasurementsCache; | ||
@@ -598,0 +598,0 @@ this.measurementsCache.forEach((item) => { |
{ | ||
"name": "@tanstack/virtual-core", | ||
"version": "3.2.0", | ||
"version": "3.2.1", | ||
"description": "Headless UI for virtualizing scrollable elements in TS/JS + Frameworks", | ||
@@ -5,0 +5,0 @@ "author": "Tanner Linsley", |
@@ -265,3 +265,3 @@ import { approxEqual, memo, notUndefined } from './utils' | ||
scrollPaddingEnd?: number | ||
initialOffset?: number | ||
initialOffset?: number | (() => number) | ||
getItemKey?: (index: number) => Key | ||
@@ -324,3 +324,6 @@ rangeExtractor?: (range: Range) => number[] | ||
this.scrollRect = this.options.initialRect | ||
this.scrollOffset = this.options.initialOffset | ||
this.scrollOffset = | ||
typeof this.options.initialOffset === 'function' | ||
? this.options.initialOffset() | ||
: this.options.initialOffset | ||
this.measurementsCache = this.options.initialMeasurementsCache | ||
@@ -327,0 +330,0 @@ this.measurementsCache.forEach((item) => { |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
172877
2429