fix: unfold the letter cleanly out of its envelope #29
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "fix/letter-reveal"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Four fixes to how a letter comes out of its envelope, plus a
useRevealhook and aLetterPapercomponent. The canvas now firesonReadyso the paper only appears once it has its final height — that's what removes the jag mid-reveal.These had been sitting unpushed on my local main, so rebasing meant reconciling them with the quill work that landed since.
One thing worth a look in review: both sides had refactored the same function in
ComposeCanvas. I kept main's version wherever they overlapped, since itscreateCompositionTextboxcarries the cursor-drift fix — so mycreateDefaultTextboxis deleted rather than merged. What survives from this side is theonReadyhook and a!readOnlyguard that stops a reader seeing "Take a deep breath..." on an empty canvas. That guard makes the textbox nullable, hence the new optional chaining. Both branches together pushed the function past the complexity limit, so I split outresolveTextbox.76 tests, biome and tsc clean, build passes.