Shumoku Docs

Search documentation

Shared docs and current release

Loading search…

日本語

@shumoku/core · 0.4.0 · function

createEngine

Source

Build an engine instance. Stateless across queries (every call returns the same answer for the same input given the same config). Memoization is allowed inside; the `fingerprint` is the cache key.

createEngine(config?: EngineConfig): LayoutEngine

Parameters

Parameter Type Description Default
config EngineConfig No additional description. {}

Returns

LayoutEngine

libs/@shumoku/core/src/layout/engine/index.ts:45