Skip to main content
Run any Skill in Manus
with one click

pretext

Stars3
Forks0
UpdatedApril 5, 2026 at 09:48

Multiline text measurement and line breaking without DOM layout (Pretext / @chenglou/pretext). Use when implementing virtualization (fixed/predictable row heights), masonry or custom text layouts, canvas/SVG text, textarea auto-height, shrink-to-fit width, or avoiding getBoundingClientRect/offsetHeight reflows. Also use when the user says Pretext, 文本测量, 无 DOM 换行高度, or line-break layout in TypeScript.

Installation

Install with Codex or Claude Copy this prompt, paste it into Codex, Claude, or another assistant, and let it review the skill page and install it for you.

SKILL.md
readonly