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

pretext-docs

Stars1
Forks0
UpdatedMarch 29, 2026 at 17:09

API reference for @chenglou/pretext — a pure JS/TS library for measuring and laying out multiline text without DOM reflows. Use when you need to look up a pretext function signature, understand the two-phase prepare/layout model, find the right function for a use case (height-only vs line content vs variable-width), check PrepareOptions or LayoutCursor types, or orient yourself before writing code that uses pretext. Also use when user says "pretext API", "pretext docs", "pretext types", "how does pretext work", "pretext functions", or "what does prepare/layout/layoutWithLines/walkLineRanges do".

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