This commit is contained in:
Timothy Jaeryang Baek committed 2026-05-09 06:34:03 +09:00
1 parent 1d892ce2c5
commit 1baf73bdd5
4 files changed
+40 -4

No files matched your search

@@ -117,8 +117,8 @@
el.style.contentVisibility = 'visible';
});
// Wait for DOM update/layout
await new Promise((r) => setTimeout(r, 100));
// Let the browser compute layout for the cloned element
await new Promise((r) => requestAnimationFrame(r));
// Render entire content once
const canvas = await html2canvas(clonedElement, {