跳到主要内容
GitStars
登录
其他其他NOASSERTION

Repository dossier

chenglou/pretext

Fast, accurate & comprehensive text measurement & layout

Brief / README 摘要

查看原文

Pure JavaScript/TypeScript library for multiline text measurement & layout. Fast, accurate & supports all the languages you didn't even know about. Allows rendering to DOM, Canvas and SVG. Pretext side-steps the need for DOM measurements (e.g. getBoundingClientRect, offsetHeight), which trigger layout reflow, one of the most expensive operations in the browser. It implements its own text measurement logic, using the browsers' own font engine as ground truth (very AI-friendly iteration method). The demos are exemplary API usage patterns we encourage you to read. They don't ship in the npm packa…

01

相关推荐

浏览全部
01
mermaid-js/mermaid★ 90.9kTypeScript

Generation of diagrams like flowcharts or sequence diagrams from text in a similar manner as markdown

其他其他更新于 2026-10-25
02
excalidraw/excalidraw★ 134.5kTypeScript

Virtual whiteboard for sketching hand-drawn like diagrams

其他其他更新于 2026-10-25
03

Curated coding interview preparation materials for busy software engineers

其他其他更新于 2026-08-07
04
anomalyco/opencode★ 221.5kTypeScript

The open source coding agent.

其他其他更新于 2026-10-25
05
tonsky/FiraCode★ 82.1kClojure

Free monospaced font with programming ligatures

其他其他更新于 2026-07-28
06
lobehub/lobehub★ 83.5kTypeScript

🤯 LobeHub is your Chief Agent Operator, organizing your agents into 7×24 operations by hiring, scheduling, and reporting on your entire AI team.

其他人工智能更新于 2026-10-25