simple-table-core 3.8.9 → 3.9.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -205,6 +205,73 @@ export declare class AnimationCoordinator {
|
|
|
205
205
|
* sort/reorder FLIP-from-off-screen behavior is preserved.
|
|
206
206
|
*/
|
|
207
207
|
hasSnapshotEntryInContainer(cellId: string, currentContainer: HTMLElement): boolean;
|
|
208
|
+
/**
|
|
209
|
+
* Whether a vertical position transition should be animated. Rows that live
|
|
210
|
+
* only in the virtualization padding band (above/below the visible viewport)
|
|
211
|
+
* should teleport rather than FLIP — otherwise a mid-scroll sort animates
|
|
212
|
+
* hundreds of off-screen rows through the viewport at once.
|
|
213
|
+
*/
|
|
214
|
+
shouldAnimateVerticalTransition(args: {
|
|
215
|
+
beforeTop: number;
|
|
216
|
+
afterTop: number;
|
|
217
|
+
cellHeight: number;
|
|
218
|
+
container: HTMLElement;
|
|
219
|
+
}): boolean;
|
|
220
|
+
/**
|
|
221
|
+
* Whether a horizontal position transition should be animated. Same viewport
|
|
222
|
+
* gate as {@link shouldAnimateVerticalTransition} but for column slides.
|
|
223
|
+
*/
|
|
224
|
+
shouldAnimateHorizontalTransition(args: {
|
|
225
|
+
beforeLeft: number;
|
|
226
|
+
afterLeft: number;
|
|
227
|
+
cellWidth: number;
|
|
228
|
+
container: HTMLElement;
|
|
229
|
+
}): boolean;
|
|
230
|
+
/**
|
|
231
|
+
* Whether a cell's position change should participate in FLIP animation.
|
|
232
|
+
* Only axes that actually moved are checked against the viewport gate —
|
|
233
|
+
* a vertical sort must not inherit "visible" from an unchanged horizontal
|
|
234
|
+
* position (which would retain/mount every column in every padding-band row).
|
|
235
|
+
*/
|
|
236
|
+
shouldAnimateTransition(args: {
|
|
237
|
+
beforeTop: number;
|
|
238
|
+
afterTop: number;
|
|
239
|
+
beforeLeft: number;
|
|
240
|
+
afterLeft: number;
|
|
241
|
+
cellHeight: number;
|
|
242
|
+
cellWidth: number;
|
|
243
|
+
container: HTMLElement;
|
|
244
|
+
}): boolean;
|
|
245
|
+
/**
|
|
246
|
+
* Whether an incoming cell (in the snapshot but not previously in the DOM)
|
|
247
|
+
* should be mounted for this sort/reorder render. Padding-band rows that
|
|
248
|
+
* never intersect the visible viewport are deferred to the next scroll
|
|
249
|
+
* render so they do not pop into existence at animation start.
|
|
250
|
+
*/
|
|
251
|
+
shouldMountIncomingCell(args: {
|
|
252
|
+
cellId: string;
|
|
253
|
+
afterTop: number;
|
|
254
|
+
afterLeft: number;
|
|
255
|
+
cellHeight: number;
|
|
256
|
+
cellWidth: number;
|
|
257
|
+
container: HTMLElement;
|
|
258
|
+
}): boolean;
|
|
259
|
+
/**
|
|
260
|
+
* Whether the cell currently paints inside the body scrollers' clip rects.
|
|
261
|
+
* Outgoing retain decisions use this as a fallback when {@link shouldAnimateTransition}
|
|
262
|
+
* rejects a cell based on `style.top`/`style.left` alone: virtualization padding
|
|
263
|
+
* rows can sit with their leading edge outside the scroll band while still being
|
|
264
|
+
* partially visible on screen (common at the bottom when scrolled to the end).
|
|
265
|
+
*/
|
|
266
|
+
isCellRenderedInScrollerViewport(element: HTMLElement, container: HTMLElement): boolean;
|
|
267
|
+
/**
|
|
268
|
+
* Whether an outgoing DOM cell at a vertical scroll extreme (top or bottom of
|
|
269
|
+
* the dataset) should be retained even when {@link shouldAnimateTransition}
|
|
270
|
+
* rejects it on leading-edge grounds. Virtualization keeps a few overscan
|
|
271
|
+
* rows mounted above/below the strict viewport at max scroll; those rows
|
|
272
|
+
* must still slide out as ghosts when a sort evicts them.
|
|
273
|
+
*/
|
|
274
|
+
shouldRetainDomCellAtScrollExtrema(cellId: string, container: HTMLElement): boolean;
|
|
208
275
|
/**
|
|
209
276
|
* Hand a cell that the renderer would otherwise remove to the coordinator.
|
|
210
277
|
* The coordinator updates its absolute positioning to the post-change layout
|