Skip to content

fix(core): wrap oversized text in fixed-width boxes - #27

Open
sean0407 wants to merge 1 commit into
quickdrawjs:mainfrom
sean0407:codex/wrap-unbroken-text
Open

sean0407 wants to merge 1 commit into
quickdrawjs:mainfrom
sean0407:codex/wrap-unbroken-text

Conversation

@sean0407

Copy link
Copy Markdown

Summary

textLayout
  wrap at whitespace boundaries
+ split oversized tokens at grapheme boundaries when a fixed width is set

Fixes #25.

Evidence

  • Before: Against upstream main, both new regression cases fail: an unbroken URL stays on one line, and the resulting grapheme text exceeds the fixed layout width.
  • After: npm test passes (150 Vitest tests and 3 sync relay tests); npm run typecheck passes; npm run build completes.

Merge Danger

Door: Two-way

The change only affects measured wrapping when a fixed width is set; autosized text keeps its existing path.

Blast Radius: Contained

@vercel

vercel Bot commented Oct 17, 2026

Copy link
Copy Markdown

@sean0407 is attempting to deploy a commit to the naman's projects Team on Vercel.

A member of the Team first needs to authorize it.

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Long URLs and unbroken text overflow fixed-width text boxes

1 participant