Skip to content

vyaz-monorepo / core/src / layoutTextFrame

Function: layoutTextFrame() ​

layoutTextFrame(frame, options?): TextFrameLayoutResult

Defined in: core/src/layout/TextFrameLayoutEngine.ts:328

Layout a full TextFrame (paragraphs stacked with Y-offset accumulation).

Uses a shared default engine with its own bounded prepared-line cache. For isolation, an explicit cache bound, or clearCache(), make your own via createLayoutEngine.

Parameters ​

frame ​

TextFrame

options? ​

LayoutOptions = {}

Returns ​

TextFrameLayoutResult

Released under the MIT License.