LayoutCache
Defined in: src/layout/layoutCache.ts:68
An opt-in, caller-owned memo of dagre layout results.
Created with createLayoutCache and passed to a render function. The core is
stateless without one, so omitting it preserves existing behaviour exactly. Only
LayoutCache.clear and LayoutCache.stats are public: the lookup itself
is internal to render functions. An SVG, HTML or PNG render rejects an object that
createLayoutCache did not make (a hand-built object or a spread copy) with a
TypeError. Mermaid output ignores cache.
Methods
Section titled “Methods”clear()
Section titled “clear()”clear(): void;Defined in: src/layout/layoutCache.ts:70
Drop every entry. A long-lived host should call this when a document closes.
Returns
Section titled “Returns”void
stats()
Section titled “stats()”stats(): LayoutCacheStats;Defined in: src/layout/layoutCache.ts:72
Current counters.