@infinite-list/data-model
Advanced tools
Comparing version 0.2.45-recycle-group.36 to 0.2.45-recycle-group.37
@@ -46,3 +46,3 @@ import Batchinator from '@x-oasis/batchinator'; | ||
get state(): ListState<ItemT>; | ||
addBuffer(recyclerType: string): import("@x-oasis/recycler/dist/FixedBuffer").default; | ||
addBuffer(recyclerType: string): any; | ||
cleanup(): void; | ||
@@ -49,0 +49,0 @@ resolveInitialActiveValue(active: boolean): boolean; |
@@ -17,4 +17,4 @@ import Heap from '@x-oasis/heap'; | ||
getNewPositionForValue(value: number): number; | ||
getMinValue(): any; | ||
getMaxValue(): any; | ||
getMinValue(): number; | ||
getMaxValue(): number; | ||
setPositionValue(position: number, value: number): void; | ||
@@ -21,0 +21,0 @@ replaceFurthestValuePosition(lowValue: number, highValue: number, newValue: number, useMinValueFn?: (options: { |
{ | ||
"name": "@infinite-list/data-model", | ||
"version": "0.2.45-recycle-group.36", | ||
"version": "0.2.45-recycle-group.37", | ||
"files": [ | ||
@@ -28,3 +28,3 @@ "dist", | ||
"@x-oasis/prefix-interval-tree": "^0.1.18", | ||
"@x-oasis/recycler": "^0.1.29", | ||
"@x-oasis/recycler": "^0.1.31", | ||
"@x-oasis/resolve-changed": "^0.1.14", | ||
@@ -31,0 +31,0 @@ "@x-oasis/select-value": "^0.1.14", |
@@ -547,2 +547,11 @@ import noop from '@x-oasis/noop'; | ||
}); | ||
if ( | ||
(this._stateResult as RecycleStateResult<ItemT>).recycleState | ||
.length && | ||
!recycleState.length | ||
) { | ||
this._recycler.reset(); | ||
} | ||
this._stateListener( | ||
@@ -721,3 +730,6 @@ { | ||
// exclusive. | ||
() => indexToOffsetMap[targetIndex] + this.getContainerOffset() | ||
() => | ||
indexToOffsetMap[targetIndex] == null | ||
? this.itemOffsetBeforeLayoutReady | ||
: indexToOffsetMap[targetIndex] + this.getContainerOffset() | ||
); | ||
@@ -744,3 +756,5 @@ | ||
itemLength && !itemMeta.isApproximateLayout | ||
? indexToOffsetMap[targetIndex] | ||
? indexToOffsetMap[targetIndex] == null | ||
? this.itemOffsetBeforeLayoutReady | ||
: indexToOffsetMap[targetIndex] | ||
: this.itemOffsetBeforeLayoutReady, | ||
@@ -747,0 +761,0 @@ position: 'buffered', |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
2286790
113
25999
Updated@x-oasis/recycler@^0.1.31