Download mobile/modules/engine/src/utils/display/wrapper/index.ts from Anirudh1950/MentraOS: direct link, hf CLI and curl.
- Browser
- Download file 509 Bytes
-
https://huggingface.co/Anirudh1950/MentraOS/resolve/main/mobile/modules/engine/src/utils/display/wrapper/index.ts
- Command line
-
hf download hf://Anirudh1950/MentraOS/mobile/modules/engine/src/utils/display/wrapper/index.ts
-
curl -L -o index.ts https://huggingface.co/Anirudh1950/MentraOS/resolve/main/mobile/modules/engine/src/utils/display/wrapper/index.ts
509 Bytes
| /** | |
| * Text Wrapper Module | |
| * | |
| * Provides text wrapping with multiple break modes: | |
| * - 'character': Break mid-word with hyphen for 100% line utilization | |
| * - 'word': Break at word boundaries, hyphenate only if word > line width | |
| * - 'strict-word': Break at word boundaries only, no hyphenation | |
| */ | |
| // Main class | |
| export { TextWrapper } from "./TextWrapper" | |
| // Types | |
| export type { WrapOptions, WrapResult, LineMetrics, BreakMode } from "./types" | |
| export { DEFAULT_WRAP_OPTIONS } from "./types" | |