跳到主要内容
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★ 91.0kTypeScript

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

其他其他更新于 2026-11-01
02
excalidraw/excalidraw★ 135.0kTypeScript

Virtual whiteboard for sketching hand-drawn like diagrams

其他其他更新于 2026-11-01
03

Curated coding interview preparation materials for busy software engineers

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

The open source coding agent.

其他其他更新于 2026-11-02
05
cheaper-inference/OmniRoute★ 83.7kTypeScript

Never stop coding. Free MIT AI gateway: one endpoint, 375 providers (150+ free), 1,400+ models Kimi, Claude, GPT, Gemini, GLM, DeepSeek, MiniMax. Works with Claude Code, Codex, Cursor, OpenCode, Cline & Copilot. Quota-aware auto-fallback, RTK+Caveman compression saves 15-95% tokens, MCP/A2A, Desktop/PWA. Built by 900+ contributors

其他人工智能更新于 2026-11-02
06
vitejs/vite★ 83.7kTypeScript

Next generation frontend tooling. It's fast!

其他前端更新于 2026-11-02