Pretext is a pure JavaScript/TypeScript library for multiline text measurement and layout that avoids DOM reflow by implementing its own text measurement logic using the browser's font engine via Canvas. It exposes two main use cases: measuring paragraph height without touching the DOM (useful for virtualization, masonry
Sort: