Skip to content

@graphty/graphty-element / index / SnapshotLayoutAnswer

Type Alias: SnapshotLayoutAnswer ​

SnapshotLayoutAnswer = F32 | Promise<F32>

Defined in: graphty-element/src/layout/SnapshotLayoutEngine.ts:87

The answer: dimensions numbers per row of input.graph, in scene units; NaN leaves a row unplaced. Returned directly, the element places the nodes in the same frame; returned as a promise, the layout stays unsettled until it resolves.