Skip to content

Add Mouse & Cheese demo - #133

Closed
carobarbosaux wants to merge 1 commit into
chenglou:mainfrom
carobarbosaux:claude/custom-pretext-design-6Ipgp
Closed

carobarbosaux wants to merge 1 commit into
chenglou:mainfrom
carobarbosaux:claude/custom-pretext-design-6Ipgp

Conversation

@carobarbosaux

Copy link
Copy Markdown

A new demo page (/demos/mouse-cheese) showing Pretext's layoutNextLine() used for per-line variable-width layout: each story line gets a narrower available width while it overlaps the cheese block, so the text naturally wraps around the illustration. A slider resizes the cheese in real time and the text reflows without any DOM measurements in the resize path.

The cheese and mouse are inline SVGs (cute cartoon style). The demo is added to the demos index grid alongside the existing nine demos.

https://claude.ai/code/session_01P3CMU8eN1riSUg4EzCaMcA

…ration

A new demo page (/demos/mouse-cheese) showing Pretext's layoutNextLine()
used for per-line variable-width layout: each story line gets a narrower
available width while it overlaps the cheese block, so the text naturally
wraps around the illustration. A slider resizes the cheese in real time
and the text reflows without any DOM measurements in the resize path.

The cheese and mouse are inline SVGs (cute cartoon style). The demo is
added to the demos index grid alongside the existing nine demos.

https://claude.ai/code/session_01P3CMU8eN1riSUg4EzCaMcA
@chenglou

Copy link
Copy Markdown
Owner

Thanks for the fun demo! Text flowing around a moving shape is covered by the dynamic-layout and editorial-engine demos now, so I'll close this one. Appreciate it!

@chenglou chenglou closed this Sep 12, 2026
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.

3 participants