- `exportToPdf` is time-sliced (`runPdfExport` + `PdfExportTuning` in `lib/utils/export/exportToPdf.ts`; internal, not exported from the package). Yields use `setTimeout(0)`, not `scheduler.yield()` (which resumes ahead of queued tasks and starves React's scheduler). The body is drawn as several autoTable calls: continuation chunks start at `startY: MARGIN` and a `willDrawPage` hook moves `data.cursor.y` to the previous `finalY` and sets `settings.showHead = 'never'` for that page only (bypasses autoTable's fit-below-startY page break, so breaks match a single call). Chunks are even-sized (alternate shading parity); foot only on the last chunk. `exportToPdf.browser.test.ts` checks drawing ops are identical to a single call
0 commit comments