Skip to content

Add predraw API for flawless async layout - #278

Merged
texodus merged 1 commit into
masterfrom
predraw
Jul 26, 2026
Merged

Add predraw API for flawless async layout#278
texodus merged 1 commit into
masterfrom
predraw

Conversation

@texodus

@texodus texodus commented Jul 26, 2026

Copy link
Copy Markdown
Member

This PR adds a new API, predraw(width: number, height: number, options?: PredrawOptions): Promise<() => void>, which allows embedding applications to separately stage the async and sync parts of regular-table rendering, such that multiple async drawing elements can be coordinated to prevent screen jitter.

const commit = await table.predraw(table.clientWidth, table.clientHeight);
requestAnimationFrame(() => commit());

@texodus texodus added the enhancement Feature requests or improvements label Jul 26, 2026
@texodus
texodus force-pushed the predraw branch 4 times, most recently from 4477541 to 3a4b7a5 Compare July 26, 2026 18:41
@texodus
texodus merged commit a8b43e0 into master Jul 26, 2026
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement Feature requests or improvements

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant