MCPcopy
hub / github.com/chenglou/pretext / getInternalPrepared

Function getInternalPrepared

src/layout.ts:692–694  ·  view source on GitHub ↗
(prepared: PreparedText)

Source from the content-addressed store, hash-verified

690}
691
692function getInternalPrepared(prepared: PreparedText): InternalPreparedText {
693 return prepared as InternalPreparedText
694}
695
696// Layout prepared text at a given max width and caller-provided lineHeight.
697// Pure arithmetic on cached widths — no canvas calls, no DOM reads, no string

Callers 7

layoutFunction · 0.85
walkLineRangesFunction · 0.85
measureLineStatsFunction · 0.85
measureNaturalWidthFunction · 0.85
layoutNextLineFunction · 0.85
layoutNextLineRangeFunction · 0.85
layoutWithLinesFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…