Measure and wrap browser text without reflow.
Guides developers in measuring and laying out multiline text in JavaScript or TypeScript without DOM layout measurements.
When to use it
Use for DOM-free text measurement, paragraph heights, canvas wrapping, text around images, or shrinkwrapped text widths.
It changes how the agent implements text measurement and layout, separating cached text preparation from repeated layout calculations.
What you provide
The examples and API guidance use the @chenglou/pretext library.
Requires a browser environment with the canvas API; server-side support is described as coming soon.
No additional actions listed.