Skip to content

vyaz-monorepo / core/src / LayoutEngine

Interface: LayoutEngine ​

Defined in: core/src/layout/create-engine.ts:26

A layout engine with its own prepared-line cache.

Methods ​

clearCache() ​

clearCache(): void

Defined in: core/src/layout/create-engine.ts:30

Drop all cached prepared-line data.

Returns ​

void


layout() ​

layout(frame, options?): TextFrameLayoutResult

Defined in: core/src/layout/create-engine.ts:28

Lay out a full text frame. Same result shape as layoutTextFrame.

Parameters ​

frame ​

TextFrame

options? ​

LayoutOptions

Returns ​

TextFrameLayoutResult

Released under the MIT License.